@instructure/studio-player 0.2.10 → 0.2.12
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 -1
- package/dist/en-BlhWGmnp.js +101 -0
- package/dist/kl-BRha3TKE.js +101 -0
- package/dist/studio-player.es.js +359 -350
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/en-DRnzP2ly.js +0 -91
- package/dist/kl-DAr1HilW.js +0 -91
package/dist/studio-player.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import './index-DAULLpyh.css';var
|
|
2
|
-
var
|
|
3
|
-
var N = (e, n, o) =>
|
|
1
|
+
import './index-DAULLpyh.css';var De = Object.defineProperty;
|
|
2
|
+
var ze = (e, n, o) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
|
+
var N = (e, n, o) => ze(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as s, Fragment as ee } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as te, useContext as
|
|
6
|
-
import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as
|
|
7
|
-
import { initReactI18next as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as
|
|
11
|
-
const
|
|
5
|
+
import { createContext as te, useContext as x, useState as M, useCallback as p, useEffect as R, useMemo as Z, useRef as ve } from "react";
|
|
6
|
+
import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as Ue, Track as je, Captions as qe, usePlaybackRateOptions as We, useCaptionOptions as Ge, useVideoQualityOptions as Qe, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Ye, Poster as Xe, Time as re, TimeSlider as A, MuteButton as Je, VolumeSlider as z, MediaPlayer as et, MediaProvider as tt } from "@vidstack/react";
|
|
7
|
+
import { initReactI18next as nt, useTranslation as v } from "react-i18next";
|
|
8
|
+
import ot from "i18next";
|
|
9
|
+
import it from "i18next-resources-to-backend";
|
|
10
|
+
import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as Le, useInteractions as xe, FloatingFocusManager as at, FloatingArrow as Pe, shift as st, offset as ct } from "@floating-ui/react";
|
|
11
|
+
const lt = (e, n, o) => {
|
|
12
12
|
const i = e[n];
|
|
13
13
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((a, c) => {
|
|
14
14
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -21,9 +21,9 @@ const ct = (e, n, o) => {
|
|
|
21
21
|
);
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(e) =>
|
|
24
|
+
ot.use(nt).use(
|
|
25
|
+
it(
|
|
26
|
+
(e) => lt(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-BlhWGmnp.js"), "./locales/kl.json": () => import("./kl-BRha3TKE.js") }), `./locales/${e}.json`, 3)
|
|
27
27
|
)
|
|
28
28
|
).init({
|
|
29
29
|
fallbackLng: "en",
|
|
@@ -35,14 +35,14 @@ nt.use(tt).use(
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const Ne = te(null);
|
|
38
|
-
function
|
|
38
|
+
function rt({
|
|
39
39
|
children: e,
|
|
40
40
|
contextValue: n
|
|
41
41
|
}) {
|
|
42
42
|
return /* @__PURE__ */ t(Ne.Provider, { value: n, children: e });
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
44
|
+
function C() {
|
|
45
|
+
const e = x(Ne);
|
|
46
46
|
if (!e)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"useStudioPlayerContext must be used within a StudioPlayerContextProvider"
|
|
@@ -50,7 +50,7 @@ function v() {
|
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
52
|
const Me = te(null);
|
|
53
|
-
function
|
|
53
|
+
function ut({
|
|
54
54
|
hideFullScreen: e,
|
|
55
55
|
comments: n,
|
|
56
56
|
annotations: o,
|
|
@@ -61,11 +61,11 @@ function rt({
|
|
|
61
61
|
onInteractivePinClick: u,
|
|
62
62
|
interactiveMenuElements: m,
|
|
63
63
|
darkMode: h,
|
|
64
|
-
children:
|
|
64
|
+
children: g,
|
|
65
65
|
forceComments: y,
|
|
66
66
|
disableCaptionSettings: k
|
|
67
67
|
}) {
|
|
68
|
-
const
|
|
68
|
+
const b = {
|
|
69
69
|
hideFullScreen: e,
|
|
70
70
|
comments: n,
|
|
71
71
|
annotations: o,
|
|
@@ -82,28 +82,28 @@ function rt({
|
|
|
82
82
|
forceComments: y,
|
|
83
83
|
disableCaptionSettings: k
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */ t(Me.Provider, { value:
|
|
85
|
+
return /* @__PURE__ */ t(Me.Provider, { value: b, children: g });
|
|
86
86
|
}
|
|
87
87
|
function S() {
|
|
88
|
-
const e =
|
|
88
|
+
const e = x(Me);
|
|
89
89
|
if (!e)
|
|
90
90
|
throw new Error(
|
|
91
91
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
92
92
|
);
|
|
93
93
|
return e;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const dt = "_annotation-overlay_1kxzn_1", mt = {
|
|
96
96
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
97
|
-
annotationOverlay:
|
|
98
|
-
}, ue = 0.25,
|
|
97
|
+
annotationOverlay: dt
|
|
98
|
+
}, ue = 0.25, ht = (e, n) => {
|
|
99
99
|
let o = !1;
|
|
100
100
|
return (i) => {
|
|
101
101
|
const a = i.detail.currentTime;
|
|
102
102
|
a >= e.time && a < e.time + ue && !o && (o = !0, n(e)), (a < e.time || a >= e.time + ue) && o && (o = !1);
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
function
|
|
106
|
-
const n = q(), o =
|
|
105
|
+
function pt({ annotations: e }) {
|
|
106
|
+
const n = q(), o = C(), i = S(), [a, c] = M(
|
|
107
107
|
null
|
|
108
108
|
), l = p(
|
|
109
109
|
(m) => {
|
|
@@ -113,17 +113,17 @@ function ht({ annotations: e }) {
|
|
|
113
113
|
), u = () => {
|
|
114
114
|
i.interactive || (n == null || n.play(), o.enableInteractions()), c(null);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
116
|
+
return R(() => {
|
|
117
117
|
if (!n)
|
|
118
118
|
return;
|
|
119
119
|
const m = [];
|
|
120
120
|
for (const h of e) {
|
|
121
|
-
const
|
|
122
|
-
n.addEventListener("time-update",
|
|
121
|
+
const g = ht(h, l);
|
|
122
|
+
n.addEventListener("time-update", g), m.push(g);
|
|
123
123
|
}
|
|
124
124
|
if (a) {
|
|
125
125
|
const h = e.find(
|
|
126
|
-
(
|
|
126
|
+
(g) => g.id === a.id
|
|
127
127
|
);
|
|
128
128
|
h ? c(h) : (c(null), o.enableInteractions());
|
|
129
129
|
}
|
|
@@ -131,21 +131,21 @@ function ht({ annotations: e }) {
|
|
|
131
131
|
for (const h of m)
|
|
132
132
|
n.removeEventListener("time-update", h);
|
|
133
133
|
};
|
|
134
|
-
}, [n, e]), a ? /* @__PURE__ */ t("div", { className:
|
|
134
|
+
}, [n, e]), a ? /* @__PURE__ */ t("div", { className: mt.annotationOverlay, children: a.render(u) }) : null;
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const _t = "_media-buffering-indicator_1fwjr_1", ft = "_media-buffering-spinner_1fwjr_17", vt = "_media-buffering-spin_1fwjr_17", Ct = "_media-buffering-track_1fwjr_22", gt = "_media-buffering-track-fill_1fwjr_27", U = {
|
|
137
137
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
138
|
-
mediaBufferingIndicator:
|
|
138
|
+
mediaBufferingIndicator: _t,
|
|
139
139
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
140
|
-
mediaBufferingSpinner:
|
|
140
|
+
mediaBufferingSpinner: ft,
|
|
141
141
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
142
|
-
mediaBufferingSpin:
|
|
142
|
+
mediaBufferingSpin: vt,
|
|
143
143
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
144
|
-
mediaBufferingTrack:
|
|
144
|
+
mediaBufferingTrack: Ct,
|
|
145
145
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
146
|
-
mediaBufferingTrackFill:
|
|
146
|
+
mediaBufferingTrackFill: gt
|
|
147
147
|
};
|
|
148
|
-
function
|
|
148
|
+
function bt() {
|
|
149
149
|
return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(Y.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
|
|
150
150
|
/* @__PURE__ */ t(Y.Track, { className: U.mediaBufferingTrack, width: 8 }),
|
|
151
151
|
/* @__PURE__ */ t(
|
|
@@ -164,8 +164,8 @@ const Te = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0
|
|
|
164
164
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
165
165
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
166
166
|
] });
|
|
167
|
-
function
|
|
168
|
-
const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n &&
|
|
167
|
+
function wt() {
|
|
168
|
+
const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && Ue(n), a = C(), c = p(
|
|
169
169
|
(l) => {
|
|
170
170
|
e.toggleCaptions(l.nativeEvent);
|
|
171
171
|
},
|
|
@@ -178,19 +178,20 @@ function bt() {
|
|
|
178
178
|
className: "controls-button",
|
|
179
179
|
onClick: c,
|
|
180
180
|
"aria-label": "Captions",
|
|
181
|
+
"aria-pressed": i ? "true" : "false",
|
|
181
182
|
tabIndex: a.state.interactionsDisabled ? -1 : 0,
|
|
182
183
|
children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Te, { className: "controls-button-icon" })
|
|
183
184
|
}
|
|
184
185
|
) : null;
|
|
185
186
|
}
|
|
186
|
-
const
|
|
187
|
-
captions:
|
|
187
|
+
const kt = "_captions_13epz_1", yt = {
|
|
188
|
+
captions: kt
|
|
188
189
|
};
|
|
189
|
-
function
|
|
190
|
-
const n = _("hasCaptions"), o =
|
|
190
|
+
function Lt({ captions: e }) {
|
|
191
|
+
const n = _("hasCaptions"), o = C();
|
|
191
192
|
return /* @__PURE__ */ s(ee, { children: [
|
|
192
193
|
e.map((i) => /* @__PURE__ */ t(
|
|
193
|
-
|
|
194
|
+
je,
|
|
194
195
|
{
|
|
195
196
|
kind: "subtitles",
|
|
196
197
|
type: i.type,
|
|
@@ -210,12 +211,12 @@ function yt({ captions: e }) {
|
|
|
210
211
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
211
212
|
"--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
212
213
|
},
|
|
213
|
-
children: /* @__PURE__ */ t(
|
|
214
|
+
children: /* @__PURE__ */ t(qe, { className: yt.captions })
|
|
214
215
|
}
|
|
215
216
|
) : null
|
|
216
217
|
] });
|
|
217
218
|
}
|
|
218
|
-
const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5,
|
|
219
|
+
const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e) => {
|
|
219
220
|
const [, n] = M({});
|
|
220
221
|
return Z(() => {
|
|
221
222
|
let o = [];
|
|
@@ -234,20 +235,20 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
|
|
|
234
235
|
}
|
|
235
236
|
};
|
|
236
237
|
}, []);
|
|
237
|
-
},
|
|
238
|
+
}, Nt = (e, n, o) => {
|
|
238
239
|
let i = !1;
|
|
239
240
|
return (a) => {
|
|
240
241
|
const c = a.detail.currentTime;
|
|
241
242
|
c >= e.timestamp && c < e.timestamp + n && !i && (o.add(e), i = !0), (c < e.timestamp || c >= e.timestamp + n) && i && (o.remove(e), i = !1);
|
|
242
243
|
};
|
|
243
|
-
},
|
|
244
|
-
const o = q(), i =
|
|
245
|
-
return
|
|
244
|
+
}, Mt = (e, n = 5) => {
|
|
245
|
+
const o = q(), i = Pt(n);
|
|
246
|
+
return R(() => {
|
|
246
247
|
if (!o)
|
|
247
248
|
return;
|
|
248
249
|
const a = [];
|
|
249
250
|
for (const c of e) {
|
|
250
|
-
const l =
|
|
251
|
+
const l = Nt(c, Se, i);
|
|
251
252
|
a.push(l), o.addEventListener("time-update", l);
|
|
252
253
|
}
|
|
253
254
|
return o.dispatchEvent(
|
|
@@ -260,103 +261,106 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
|
|
|
260
261
|
i.clear();
|
|
261
262
|
};
|
|
262
263
|
}, [o, i, e]), i;
|
|
263
|
-
},
|
|
264
|
+
}, Tt = "_comments-overlay_2woxe_1", It = "_comments-container_2woxe_9", St = "_comment_2woxe_1", Ht = "_comment-text_2woxe_45", Vt = "_comment-author-avatar_2woxe_68", Bt = "_comment-author-name_2woxe_87", E = {
|
|
264
265
|
"comments-overlay": "_comments-overlay_2woxe_1",
|
|
265
|
-
commentsOverlay:
|
|
266
|
+
commentsOverlay: Tt,
|
|
266
267
|
"comments-container": "_comments-container_2woxe_9",
|
|
267
|
-
commentsContainer:
|
|
268
|
-
comment:
|
|
268
|
+
commentsContainer: It,
|
|
269
|
+
comment: St,
|
|
269
270
|
"comment-text": "_comment-text_2woxe_45",
|
|
270
|
-
commentText:
|
|
271
|
+
commentText: Ht,
|
|
271
272
|
"comment-author-avatar": "_comment-author-avatar_2woxe_68",
|
|
272
|
-
commentAuthorAvatar:
|
|
273
|
+
commentAuthorAvatar: Vt,
|
|
273
274
|
"comment-author-name": "_comment-author-name_2woxe_87",
|
|
274
|
-
commentAuthorName:
|
|
275
|
+
commentAuthorName: Bt
|
|
275
276
|
};
|
|
276
|
-
function
|
|
277
|
-
return /* @__PURE__ */ s("div", { className:
|
|
277
|
+
function Et({ comment: e }) {
|
|
278
|
+
return /* @__PURE__ */ s("div", { className: E.comment, onClick: () => {
|
|
279
|
+
var n;
|
|
280
|
+
return (n = e.onClick) == null ? void 0 : n.call(e, e);
|
|
281
|
+
}, children: [
|
|
278
282
|
/* @__PURE__ */ t(
|
|
279
283
|
"img",
|
|
280
284
|
{
|
|
281
|
-
className:
|
|
285
|
+
className: E.commentAuthorAvatar,
|
|
282
286
|
src: e.user.avatar,
|
|
283
287
|
alt: e.user.name
|
|
284
288
|
}
|
|
285
289
|
),
|
|
286
|
-
/* @__PURE__ */ t("span", { className:
|
|
287
|
-
/* @__PURE__ */ t("span", { className:
|
|
290
|
+
/* @__PURE__ */ t("span", { className: E.commentText, children: e.text }),
|
|
291
|
+
/* @__PURE__ */ t("span", { className: E.commentAuthorName, children: e.user.name })
|
|
288
292
|
] });
|
|
289
293
|
}
|
|
290
294
|
const Rt = 5;
|
|
291
|
-
function
|
|
292
|
-
const n =
|
|
295
|
+
function At({ comments: e }) {
|
|
296
|
+
const n = C(), o = Mt(e, Rt), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Et, { comment: c }, c.id));
|
|
293
297
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
294
298
|
"div",
|
|
295
299
|
{
|
|
296
|
-
className:
|
|
300
|
+
className: E.commentsOverlay,
|
|
297
301
|
style: {
|
|
298
302
|
flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
|
|
299
303
|
},
|
|
300
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
304
|
+
children: /* @__PURE__ */ t("div", { className: E.commentsContainer, children: i ? a.slice(-4) : a })
|
|
301
305
|
}
|
|
302
306
|
) : null;
|
|
303
307
|
}
|
|
304
|
-
const
|
|
305
|
-
root:
|
|
308
|
+
const Ot = "_root_1x28e_1", Ft = "_left-controls_1x28e_28", Zt = "_right-controls_1x28e_34", $t = "_indicators_1x28e_40", Kt = "_normal-timeline_1x28e_49", Dt = "_compact-timeline_1x28e_55", V = {
|
|
309
|
+
root: Ot,
|
|
306
310
|
"left-controls": "_left-controls_1x28e_28",
|
|
307
|
-
leftControls:
|
|
311
|
+
leftControls: Ft,
|
|
308
312
|
"right-controls": "_right-controls_1x28e_34",
|
|
309
|
-
rightControls:
|
|
310
|
-
indicators:
|
|
313
|
+
rightControls: Zt,
|
|
314
|
+
indicators: $t,
|
|
311
315
|
"normal-timeline": "_normal-timeline_1x28e_49",
|
|
312
|
-
normalTimeline:
|
|
316
|
+
normalTimeline: Kt,
|
|
313
317
|
"compact-timeline": "_compact-timeline_1x28e_55",
|
|
314
|
-
compactTimeline:
|
|
318
|
+
compactTimeline: Dt
|
|
315
319
|
};
|
|
316
|
-
function
|
|
320
|
+
function zt({
|
|
317
321
|
darkMode: e,
|
|
318
322
|
playerRef: n,
|
|
319
323
|
showCaptionsButton: o = !0
|
|
320
324
|
}) {
|
|
321
325
|
const i = q();
|
|
322
|
-
return
|
|
326
|
+
return R(() => {
|
|
323
327
|
i && (i.remoteControl.pauseControls(), n && (n.current = i));
|
|
324
328
|
}, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: V.root, children: [
|
|
325
329
|
/* @__PURE__ */ t(he, { className: V.normalTimeline }),
|
|
326
330
|
/* @__PURE__ */ s("div", { className: V.leftControls, children: [
|
|
327
|
-
/* @__PURE__ */ t(
|
|
328
|
-
/* @__PURE__ */ t(
|
|
331
|
+
/* @__PURE__ */ t(uo, {}),
|
|
332
|
+
/* @__PURE__ */ t(pi, {})
|
|
329
333
|
] }),
|
|
330
|
-
/* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(
|
|
334
|
+
/* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(Lo, {}) }),
|
|
331
335
|
/* @__PURE__ */ t(he, { className: V.compactTimeline }),
|
|
332
336
|
/* @__PURE__ */ s("div", { className: V.rightControls, children: [
|
|
333
|
-
o && /* @__PURE__ */ t(
|
|
337
|
+
o && /* @__PURE__ */ t(wt, {}),
|
|
334
338
|
/* @__PURE__ */ t(Rn, {}),
|
|
335
|
-
/* @__PURE__ */ t(
|
|
339
|
+
/* @__PURE__ */ t(Xn, {})
|
|
336
340
|
] })
|
|
337
341
|
] });
|
|
338
342
|
}
|
|
339
|
-
const P = te(null),
|
|
343
|
+
const P = te(null), Ut = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), jt = "_menu-hint_k49ve_1", qt = "_menu-button_k49ve_5", Wt = "_menu-label_k49ve_37", Gt = "_menu-icon_k49ve_42", j = {
|
|
340
344
|
"menu-hint": "_menu-hint_k49ve_1",
|
|
341
|
-
menuHint:
|
|
345
|
+
menuHint: jt,
|
|
342
346
|
"menu-button": "_menu-button_k49ve_5",
|
|
343
|
-
menuButton:
|
|
347
|
+
menuButton: qt,
|
|
344
348
|
"menu-label": "_menu-label_k49ve_37",
|
|
345
|
-
menuLabel:
|
|
349
|
+
menuLabel: Wt,
|
|
346
350
|
"menu-icon": "_menu-icon_k49ve_42",
|
|
347
|
-
menuIcon:
|
|
351
|
+
menuIcon: Gt
|
|
348
352
|
};
|
|
349
353
|
function $({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
350
354
|
return /* @__PURE__ */ s("button", { type: "button", className: j.menuButton, onClick: o, children: [
|
|
351
355
|
i && /* @__PURE__ */ t(i, { className: j.menuIcon }),
|
|
352
356
|
/* @__PURE__ */ t("span", { className: j.menuLabel, children: e }),
|
|
353
357
|
/* @__PURE__ */ t("span", { className: j.menuHint, children: n }),
|
|
354
|
-
/* @__PURE__ */ t(
|
|
358
|
+
/* @__PURE__ */ t(Ut, {})
|
|
355
359
|
] });
|
|
356
360
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
const e =
|
|
361
|
+
const Qt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "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" }) });
|
|
362
|
+
function Yt() {
|
|
363
|
+
const e = x(P), n = _("playbackRate"), { t: o } = v(), i = p(() => {
|
|
360
364
|
e && e.setPage("speed");
|
|
361
365
|
}, [e]);
|
|
362
366
|
return e ? /* @__PURE__ */ t(
|
|
@@ -365,12 +369,12 @@ function Qt() {
|
|
|
365
369
|
label: o("PLAYBACK_SPEED"),
|
|
366
370
|
hint: `${n}x`,
|
|
367
371
|
onClick: i,
|
|
368
|
-
Icon:
|
|
372
|
+
Icon: Qt
|
|
369
373
|
}
|
|
370
374
|
) : null;
|
|
371
375
|
}
|
|
372
|
-
function
|
|
373
|
-
const e =
|
|
376
|
+
function Xt() {
|
|
377
|
+
const e = x(P), n = _("hasCaptions"), o = _("textTrack"), { t: i } = v(), a = p(() => {
|
|
374
378
|
e && e.setPage("captions");
|
|
375
379
|
}, [e]);
|
|
376
380
|
return e && n ? /* @__PURE__ */ t(
|
|
@@ -391,8 +395,8 @@ const Jt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
|
|
|
391
395
|
/* @__PURE__ */ t("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" })
|
|
392
396
|
] })
|
|
393
397
|
] });
|
|
394
|
-
function
|
|
395
|
-
const e =
|
|
398
|
+
function en() {
|
|
399
|
+
const e = x(P), n = _("autoQuality"), o = _("quality"), { t: i } = v(), a = p(() => {
|
|
396
400
|
e && e.setPage("quality");
|
|
397
401
|
}, [e]);
|
|
398
402
|
return e && o ? /* @__PURE__ */ t(
|
|
@@ -405,19 +409,19 @@ function Xt() {
|
|
|
405
409
|
}
|
|
406
410
|
) : null;
|
|
407
411
|
}
|
|
408
|
-
const
|
|
412
|
+
const tn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 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" }) }), nn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 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" }) }), on = "_switch-track_vptv3_1", an = "_switch-thumb_vptv3_11", sn = "_switch-icon_vptv3_25", cn = "_switch-body_vptv3_31", ln = "_switch-label_vptv3_68", rn = "_menu-icon_vptv3_72", I = {
|
|
409
413
|
"switch-track": "_switch-track_vptv3_1",
|
|
410
|
-
switchTrack:
|
|
414
|
+
switchTrack: on,
|
|
411
415
|
"switch-thumb": "_switch-thumb_vptv3_11",
|
|
412
|
-
switchThumb:
|
|
416
|
+
switchThumb: an,
|
|
413
417
|
"switch-icon": "_switch-icon_vptv3_25",
|
|
414
|
-
switchIcon:
|
|
418
|
+
switchIcon: sn,
|
|
415
419
|
"switch-body": "_switch-body_vptv3_31",
|
|
416
|
-
switchBody:
|
|
420
|
+
switchBody: cn,
|
|
417
421
|
"switch-label": "_switch-label_vptv3_68",
|
|
418
|
-
switchLabel:
|
|
422
|
+
switchLabel: ln,
|
|
419
423
|
"menu-icon": "_menu-icon_vptv3_72",
|
|
420
|
-
menuIcon:
|
|
424
|
+
menuIcon: rn
|
|
421
425
|
};
|
|
422
426
|
function ne({
|
|
423
427
|
label: e,
|
|
@@ -443,18 +447,18 @@ function ne({
|
|
|
443
447
|
children: [
|
|
444
448
|
i && /* @__PURE__ */ t(i, { className: I.menuIcon }),
|
|
445
449
|
/* @__PURE__ */ t("span", { className: I.switchLabel, children: e }),
|
|
446
|
-
/* @__PURE__ */ t("div", { className: I.switchTrack, children: /* @__PURE__ */ t("div", { className: I.switchThumb, children: n ? /* @__PURE__ */ t(
|
|
450
|
+
/* @__PURE__ */ t("div", { className: I.switchTrack, children: /* @__PURE__ */ t("div", { className: I.switchThumb, children: n ? /* @__PURE__ */ t(tn, { className: I.switchIcon }) : /* @__PURE__ */ t(nn, { className: I.switchIcon }) }) })
|
|
447
451
|
]
|
|
448
452
|
}
|
|
449
453
|
);
|
|
450
454
|
}
|
|
451
|
-
const
|
|
452
|
-
function
|
|
453
|
-
const { t: e } =
|
|
455
|
+
const un = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
|
|
456
|
+
function dn() {
|
|
457
|
+
const { t: e } = v(), n = S(), o = C();
|
|
454
458
|
return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
|
|
455
459
|
ne,
|
|
456
460
|
{
|
|
457
|
-
Icon:
|
|
461
|
+
Icon: un,
|
|
458
462
|
label: e("COMMENTS"),
|
|
459
463
|
onClick: o.toggleComments,
|
|
460
464
|
checked: o.state.commentsEnabled
|
|
@@ -462,7 +466,7 @@ function un() {
|
|
|
462
466
|
) : null;
|
|
463
467
|
}
|
|
464
468
|
function H(e) {
|
|
465
|
-
|
|
469
|
+
R(() => {
|
|
466
470
|
const n = (o) => {
|
|
467
471
|
o.key === "Escape" && (e == null || e());
|
|
468
472
|
};
|
|
@@ -471,40 +475,40 @@ function H(e) {
|
|
|
471
475
|
};
|
|
472
476
|
}, []);
|
|
473
477
|
}
|
|
474
|
-
const
|
|
478
|
+
const mn = "_main-menu_7h96l_1", hn = {
|
|
475
479
|
"main-menu": "_main-menu_7h96l_1",
|
|
476
|
-
mainMenu:
|
|
480
|
+
mainMenu: mn
|
|
477
481
|
};
|
|
478
|
-
function
|
|
479
|
-
const e =
|
|
480
|
-
return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className:
|
|
481
|
-
/* @__PURE__ */ t(Qt, {}),
|
|
482
|
+
function pn() {
|
|
483
|
+
const e = x(P);
|
|
484
|
+
return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: hn.mainMenu, children: [
|
|
482
485
|
/* @__PURE__ */ t(Yt, {}),
|
|
483
|
-
/* @__PURE__ */ t(
|
|
484
|
-
/* @__PURE__ */ t(
|
|
486
|
+
/* @__PURE__ */ t(Xt, {}),
|
|
487
|
+
/* @__PURE__ */ t(dn, {}),
|
|
488
|
+
/* @__PURE__ */ t(en, {})
|
|
485
489
|
] });
|
|
486
490
|
}
|
|
487
|
-
const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }),
|
|
491
|
+
const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), _n = "_menu-container_1bjr3_1", fn = "_menu-options_1bjr3_6", vn = "_menu-heading_1bjr3_11", Cn = "_check-icon_1bjr3_27", gn = "_menu-item-label_1bjr3_33", bn = "_menu-item_1bjr3_33", wn = "_menu-back-button_1bjr3_66", r = {
|
|
488
492
|
"menu-container": "_menu-container_1bjr3_1",
|
|
489
|
-
menuContainer:
|
|
493
|
+
menuContainer: _n,
|
|
490
494
|
"menu-options": "_menu-options_1bjr3_6",
|
|
491
|
-
menuOptions:
|
|
495
|
+
menuOptions: fn,
|
|
492
496
|
"menu-heading": "_menu-heading_1bjr3_11",
|
|
493
|
-
menuHeading:
|
|
497
|
+
menuHeading: vn,
|
|
494
498
|
"check-icon": "_check-icon_1bjr3_27",
|
|
495
|
-
checkIcon:
|
|
499
|
+
checkIcon: Cn,
|
|
496
500
|
"menu-item-label": "_menu-item-label_1bjr3_33",
|
|
497
|
-
menuItemLabel:
|
|
501
|
+
menuItemLabel: gn,
|
|
498
502
|
"menu-item": "_menu-item_1bjr3_33",
|
|
499
|
-
menuItem:
|
|
503
|
+
menuItem: bn,
|
|
500
504
|
"menu-back-button": "_menu-back-button_1bjr3_66",
|
|
501
|
-
menuBackButton:
|
|
505
|
+
menuBackButton: wn
|
|
502
506
|
};
|
|
503
|
-
function
|
|
504
|
-
const e =
|
|
507
|
+
function kn() {
|
|
508
|
+
const e = x(P), n = We({
|
|
505
509
|
rates: B,
|
|
506
510
|
normalLabel: "1x"
|
|
507
|
-
}), { t: o } =
|
|
511
|
+
}), { t: o } = v();
|
|
508
512
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
509
513
|
/* @__PURE__ */ s(
|
|
510
514
|
"button",
|
|
@@ -538,8 +542,8 @@ function wn() {
|
|
|
538
542
|
)) })
|
|
539
543
|
] }) : null;
|
|
540
544
|
}
|
|
541
|
-
function
|
|
542
|
-
const e =
|
|
545
|
+
function yn() {
|
|
546
|
+
const e = x(P), n = _("textTrack"), { t: o } = v(), i = p(() => {
|
|
543
547
|
e && e.setPage("captionLanguage");
|
|
544
548
|
}, [e]);
|
|
545
549
|
return e ? /* @__PURE__ */ t(
|
|
@@ -551,8 +555,8 @@ function kn() {
|
|
|
551
555
|
}
|
|
552
556
|
) : null;
|
|
553
557
|
}
|
|
554
|
-
function
|
|
555
|
-
const { t: e } =
|
|
558
|
+
function Ln() {
|
|
559
|
+
const { t: e } = v(), n = C(), o = x(P), i = p(() => {
|
|
556
560
|
o && o.setPage("captionFontSize");
|
|
557
561
|
}, [o]);
|
|
558
562
|
return o ? /* @__PURE__ */ t(
|
|
@@ -565,7 +569,7 @@ function yn() {
|
|
|
565
569
|
) : null;
|
|
566
570
|
}
|
|
567
571
|
function xn() {
|
|
568
|
-
const { t: e } =
|
|
572
|
+
const { t: e } = v(), n = C();
|
|
569
573
|
return /* @__PURE__ */ t(
|
|
570
574
|
ne,
|
|
571
575
|
{
|
|
@@ -575,8 +579,8 @@ function xn() {
|
|
|
575
579
|
}
|
|
576
580
|
);
|
|
577
581
|
}
|
|
578
|
-
function
|
|
579
|
-
const { t: e } =
|
|
582
|
+
function Pn() {
|
|
583
|
+
const { t: e } = v(), n = C();
|
|
580
584
|
return /* @__PURE__ */ t(
|
|
581
585
|
ne,
|
|
582
586
|
{
|
|
@@ -586,8 +590,8 @@ function Ln() {
|
|
|
586
590
|
}
|
|
587
591
|
);
|
|
588
592
|
}
|
|
589
|
-
function
|
|
590
|
-
const e =
|
|
593
|
+
function Nn() {
|
|
594
|
+
const e = x(P), { t: n } = v(), { disableCaptionSettings: o } = C();
|
|
591
595
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
592
596
|
/* @__PURE__ */ s(
|
|
593
597
|
"button",
|
|
@@ -602,14 +606,14 @@ function Pn() {
|
|
|
602
606
|
}
|
|
603
607
|
),
|
|
604
608
|
/* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
|
|
605
|
-
!o && /* @__PURE__ */ t(
|
|
606
|
-
/* @__PURE__ */ t(
|
|
609
|
+
!o && /* @__PURE__ */ t(yn, {}),
|
|
610
|
+
/* @__PURE__ */ t(Ln, {}),
|
|
607
611
|
/* @__PURE__ */ t(xn, {}),
|
|
608
|
-
/* @__PURE__ */ t(
|
|
612
|
+
/* @__PURE__ */ t(Pn, {})
|
|
609
613
|
] }) : null;
|
|
610
614
|
}
|
|
611
|
-
function
|
|
612
|
-
const e =
|
|
615
|
+
function Mn() {
|
|
616
|
+
const e = x(P), n = Ge(), { t: o } = v();
|
|
613
617
|
return H(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
614
618
|
/* @__PURE__ */ s(
|
|
615
619
|
"button",
|
|
@@ -643,8 +647,8 @@ function Nn() {
|
|
|
643
647
|
)) })
|
|
644
648
|
] }) : null;
|
|
645
649
|
}
|
|
646
|
-
function
|
|
647
|
-
const e =
|
|
650
|
+
function Tn() {
|
|
651
|
+
const e = C(), n = x(P), { t: o } = v();
|
|
648
652
|
return H(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
649
653
|
/* @__PURE__ */ s(
|
|
650
654
|
"button",
|
|
@@ -681,8 +685,8 @@ function Mn() {
|
|
|
681
685
|
)) })
|
|
682
686
|
] }) : null;
|
|
683
687
|
}
|
|
684
|
-
function
|
|
685
|
-
const e =
|
|
688
|
+
function In() {
|
|
689
|
+
const e = x(P), n = Qe({ sort: "descending" }), o = _("autoQuality"), { t: i } = v();
|
|
686
690
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
687
691
|
/* @__PURE__ */ s(
|
|
688
692
|
"button",
|
|
@@ -716,15 +720,15 @@ function Tn() {
|
|
|
716
720
|
)) })
|
|
717
721
|
] }) : null;
|
|
718
722
|
}
|
|
719
|
-
const
|
|
720
|
-
main:
|
|
721
|
-
speed:
|
|
722
|
-
captions:
|
|
723
|
-
captionLanguage:
|
|
724
|
-
captionFontSize:
|
|
725
|
-
quality:
|
|
723
|
+
const Sn = {
|
|
724
|
+
main: pn,
|
|
725
|
+
speed: kn,
|
|
726
|
+
captions: Nn,
|
|
727
|
+
captionLanguage: Mn,
|
|
728
|
+
captionFontSize: Tn,
|
|
729
|
+
quality: In
|
|
726
730
|
};
|
|
727
|
-
function
|
|
731
|
+
function Hn() {
|
|
728
732
|
const [e, n] = M("main"), [o, i] = M(!1), a = p(() => {
|
|
729
733
|
i((T) => !T);
|
|
730
734
|
}, []), c = p((T) => {
|
|
@@ -733,7 +737,7 @@ function Sn() {
|
|
|
733
737
|
n("captions");
|
|
734
738
|
}, []), u = p(() => {
|
|
735
739
|
n("main");
|
|
736
|
-
}, []), m = Z(() =>
|
|
740
|
+
}, []), m = Z(() => Sn[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
|
|
737
741
|
open: o,
|
|
738
742
|
onOpenChange: (T) => {
|
|
739
743
|
i(T), u();
|
|
@@ -746,7 +750,7 @@ function Sn() {
|
|
|
746
750
|
element: h
|
|
747
751
|
})
|
|
748
752
|
]
|
|
749
|
-
}),
|
|
753
|
+
}), b = Le(k, { escapeKey: !1 }), { getReferenceProps: f, getFloatingProps: w } = xe([b]);
|
|
750
754
|
return {
|
|
751
755
|
Page: m,
|
|
752
756
|
open: o,
|
|
@@ -755,17 +759,17 @@ function Sn() {
|
|
|
755
759
|
backToCaptions: l,
|
|
756
760
|
backToMain: u,
|
|
757
761
|
arrowRef: h,
|
|
758
|
-
refs:
|
|
762
|
+
refs: g,
|
|
759
763
|
floatingStyles: y,
|
|
760
764
|
context: k,
|
|
761
765
|
getReferenceProps: f,
|
|
762
766
|
getFloatingProps: w
|
|
763
767
|
};
|
|
764
768
|
}
|
|
765
|
-
const
|
|
769
|
+
const Vn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Bn = "_settings-menu_hxlsv_1", En = "_arrow_hxlsv_15", de = {
|
|
766
770
|
"settings-menu": "_settings-menu_hxlsv_1",
|
|
767
|
-
settingsMenu:
|
|
768
|
-
arrow:
|
|
771
|
+
settingsMenu: Bn,
|
|
772
|
+
arrow: En
|
|
769
773
|
};
|
|
770
774
|
function Rn() {
|
|
771
775
|
const {
|
|
@@ -779,9 +783,9 @@ function Rn() {
|
|
|
779
783
|
getReferenceProps: u,
|
|
780
784
|
open: m,
|
|
781
785
|
refs: h,
|
|
782
|
-
setPage:
|
|
786
|
+
setPage: g,
|
|
783
787
|
toggle: y
|
|
784
|
-
} =
|
|
788
|
+
} = Hn(), k = C(), { t: b } = v();
|
|
785
789
|
return /* @__PURE__ */ s(ee, { children: [
|
|
786
790
|
/* @__PURE__ */ t(
|
|
787
791
|
"button",
|
|
@@ -789,15 +793,15 @@ function Rn() {
|
|
|
789
793
|
ref: h.setReference,
|
|
790
794
|
type: "button",
|
|
791
795
|
className: "controls-button",
|
|
792
|
-
"aria-label":
|
|
796
|
+
"aria-label": b("SETTINGS"),
|
|
793
797
|
onClick: y,
|
|
794
798
|
"aria-expanded": m,
|
|
795
799
|
tabIndex: k != null && k.state.interactionsDisabled ? -1 : 0,
|
|
796
800
|
...u(),
|
|
797
|
-
children: /* @__PURE__ */ t(
|
|
801
|
+
children: /* @__PURE__ */ t(Vn, { className: "controls-button-icon icon-rotate" })
|
|
798
802
|
}
|
|
799
803
|
),
|
|
800
|
-
m && /* @__PURE__ */ t(
|
|
804
|
+
m && /* @__PURE__ */ t(at, { context: a, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
|
|
801
805
|
"div",
|
|
802
806
|
{
|
|
803
807
|
className: de.settingsMenu,
|
|
@@ -808,7 +812,7 @@ function Rn() {
|
|
|
808
812
|
/* @__PURE__ */ t(
|
|
809
813
|
P.Provider,
|
|
810
814
|
{
|
|
811
|
-
value: { setPage:
|
|
815
|
+
value: { setPage: g, backToMain: i, backToCaptions: o, toggle: y },
|
|
812
816
|
children: /* @__PURE__ */ t(e, {})
|
|
813
817
|
}
|
|
814
818
|
),
|
|
@@ -828,118 +832,119 @@ function Rn() {
|
|
|
828
832
|
function He(e, n = 1e3) {
|
|
829
833
|
return function() {
|
|
830
834
|
const i = _("lastKeyboardAction"), [a, c] = M(!1), l = p(() => c(!1), []);
|
|
831
|
-
return
|
|
835
|
+
return R(() => {
|
|
832
836
|
c(!!i);
|
|
833
837
|
const u = setTimeout(l, n);
|
|
834
838
|
return () => clearTimeout(u);
|
|
835
839
|
}, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
|
|
836
840
|
};
|
|
837
841
|
}
|
|
838
|
-
const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { 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" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }),
|
|
842
|
+
const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { 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" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), On = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), Fn = "_feedback-overlay_v4lbu_1", Zn = "_feedback-message_v4lbu_14", $n = "_feedback-icon_v4lbu_30", Kn = "_feedback-icon-animation_v4lbu_1", L = {
|
|
839
843
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
840
|
-
feedbackOverlay:
|
|
844
|
+
feedbackOverlay: Fn,
|
|
841
845
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
842
|
-
feedbackMessage:
|
|
846
|
+
feedbackMessage: Zn,
|
|
843
847
|
"feedback-icon": "_feedback-icon_v4lbu_30",
|
|
844
|
-
feedbackIcon:
|
|
848
|
+
feedbackIcon: $n,
|
|
845
849
|
"feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
|
|
846
|
-
feedbackIconAnimation:
|
|
850
|
+
feedbackIconAnimation: Kn
|
|
847
851
|
};
|
|
848
|
-
function
|
|
852
|
+
function Dn() {
|
|
849
853
|
var o;
|
|
850
854
|
const e = Ce();
|
|
851
855
|
switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
|
|
852
856
|
case "togglePaused":
|
|
853
|
-
return /* @__PURE__ */ t("i", { className:
|
|
857
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(oe, {}) : /* @__PURE__ */ t(ie, {}) });
|
|
854
858
|
case "toggleCaptions":
|
|
855
859
|
case "nextCaptionLanguage":
|
|
856
860
|
case "previousCaptionLanguage":
|
|
857
|
-
return e.hasCaptions ? /* @__PURE__ */ t("i", { className:
|
|
861
|
+
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(Ie, {}) }) : null;
|
|
858
862
|
case "volumeUp":
|
|
859
863
|
case "volumeDown":
|
|
860
864
|
case "toggleMuted":
|
|
861
|
-
return /* @__PURE__ */ t("i", { className:
|
|
865
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ve, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Ee, {}) : /* @__PURE__ */ t(Be, {}) });
|
|
862
866
|
case "seekForward":
|
|
863
867
|
case "seekForward10":
|
|
864
|
-
return /* @__PURE__ */ t("i", { className:
|
|
868
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "right" }) });
|
|
865
869
|
case "seekBackward":
|
|
866
870
|
case "seekBackward10":
|
|
867
|
-
return /* @__PURE__ */ t("i", { className:
|
|
871
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(On, { className: "left" }) });
|
|
868
872
|
default:
|
|
869
873
|
return null;
|
|
870
874
|
}
|
|
871
875
|
}
|
|
872
|
-
function
|
|
876
|
+
function zn() {
|
|
873
877
|
var i;
|
|
874
|
-
const { t: e } =
|
|
878
|
+
const { t: e } = v(), n = Ce();
|
|
875
879
|
switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
|
|
876
880
|
case "toggleCaptions":
|
|
877
881
|
case "nextCaptionLanguage":
|
|
878
882
|
case "previousCaptionLanguage":
|
|
879
|
-
return /* @__PURE__ */ t("div", { className:
|
|
883
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
|
|
880
884
|
case "volumeUp":
|
|
881
885
|
case "volumeDown":
|
|
882
886
|
case "toggleMuted":
|
|
883
|
-
return /* @__PURE__ */ t("div", { className:
|
|
887
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME", { volume: (n.volume * 100).toFixed(0) }) });
|
|
884
888
|
case "increasePlaybackRate":
|
|
885
889
|
case "decreasePlaybackRate":
|
|
886
890
|
case "resetPlaybackRate":
|
|
887
|
-
return /* @__PURE__ */ t("div", { className:
|
|
891
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
|
|
888
892
|
case "seekForward":
|
|
889
|
-
return /* @__PURE__ */ t("div", { className:
|
|
893
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
|
|
890
894
|
case "seekForward10":
|
|
891
|
-
return /* @__PURE__ */ t("div", { className:
|
|
895
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
|
|
892
896
|
case "seekBackward":
|
|
893
|
-
return /* @__PURE__ */ t("div", { className:
|
|
897
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
|
|
894
898
|
case "seekBackward10":
|
|
895
|
-
return /* @__PURE__ */ t("div", { className:
|
|
899
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
|
|
896
900
|
default:
|
|
897
901
|
return null;
|
|
898
902
|
}
|
|
899
903
|
}
|
|
900
|
-
const
|
|
901
|
-
function
|
|
902
|
-
return /* @__PURE__ */ s("div", { className:
|
|
903
|
-
/* @__PURE__ */ t(
|
|
904
|
-
/* @__PURE__ */ t(
|
|
904
|
+
const Un = He(Dn, 500), jn = He(zn, 1e3);
|
|
905
|
+
function qn() {
|
|
906
|
+
return /* @__PURE__ */ s("div", { className: L.feedbackOverlay, children: [
|
|
907
|
+
/* @__PURE__ */ t(Un, {}),
|
|
908
|
+
/* @__PURE__ */ t(jn, {})
|
|
905
909
|
] });
|
|
906
910
|
}
|
|
907
|
-
const
|
|
911
|
+
const Wn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), Gn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), Qn = "_full-screen-button_1xm32_2", Yn = {
|
|
908
912
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
909
|
-
fullScreenButton:
|
|
913
|
+
fullScreenButton: Qn
|
|
910
914
|
};
|
|
911
|
-
function
|
|
912
|
-
const e = _("fullscreen"), n = v();
|
|
913
|
-
return
|
|
915
|
+
function Xn() {
|
|
916
|
+
const e = _("fullscreen"), n = C(), o = S(), { t: i } = v();
|
|
917
|
+
return o.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
914
918
|
ge,
|
|
915
919
|
{
|
|
916
920
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
917
|
-
className: `controls-button ${
|
|
918
|
-
|
|
921
|
+
className: `controls-button ${Yn.fullScreenButton}`,
|
|
922
|
+
"aria-label": i(e ? "EXIT_FSCREEN" : "FSCREEN"),
|
|
923
|
+
children: e ? /* @__PURE__ */ t(Gn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Wn, { className: "controls-button-icon" })
|
|
919
924
|
}
|
|
920
925
|
);
|
|
921
926
|
}
|
|
922
|
-
const Jn = "_gestures-container_1fn3b_1",
|
|
927
|
+
const Jn = "_gestures-container_1fn3b_1", eo = "_gesture_1fn3b_1", me = {
|
|
923
928
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
924
929
|
gesturesContainer: Jn,
|
|
925
|
-
gesture:
|
|
930
|
+
gesture: eo
|
|
926
931
|
};
|
|
927
|
-
function
|
|
932
|
+
function to() {
|
|
928
933
|
const e = W(), n = () => {
|
|
929
934
|
e.togglePaused();
|
|
930
935
|
};
|
|
931
936
|
return /* @__PURE__ */ t("div", { className: me.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: me.gesture, onClick: n }) });
|
|
932
937
|
}
|
|
933
|
-
const
|
|
938
|
+
const no = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.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" }) }), oo = "_keyboard-shortcuts-overlay_y5kv6_1", io = "_keyboard-shortcuts-button_y5kv6_67", ao = "_close-button_y5kv6_93", J = {
|
|
934
939
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
|
|
935
|
-
keyboardShortcutsOverlay:
|
|
940
|
+
keyboardShortcutsOverlay: oo,
|
|
936
941
|
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
|
|
937
|
-
keyboardShortcutsButton:
|
|
942
|
+
keyboardShortcutsButton: io,
|
|
938
943
|
"close-button": "_close-button_y5kv6_93",
|
|
939
|
-
closeButton:
|
|
944
|
+
closeButton: ao
|
|
940
945
|
};
|
|
941
|
-
function
|
|
942
|
-
const { t: n } =
|
|
946
|
+
function so({ onClose: e }) {
|
|
947
|
+
const { t: n } = v();
|
|
943
948
|
H(e);
|
|
944
949
|
const o = (i) => {
|
|
945
950
|
i && i.focus();
|
|
@@ -947,7 +952,7 @@ function ao({ onClose: e }) {
|
|
|
947
952
|
return /* @__PURE__ */ s(
|
|
948
953
|
"div",
|
|
949
954
|
{
|
|
950
|
-
className:
|
|
955
|
+
className: J.keyboardShortcutsOverlay,
|
|
951
956
|
tabIndex: 0,
|
|
952
957
|
ref: o,
|
|
953
958
|
children: [
|
|
@@ -957,10 +962,10 @@ function ao({ onClose: e }) {
|
|
|
957
962
|
"button",
|
|
958
963
|
{
|
|
959
964
|
type: "button",
|
|
960
|
-
className:
|
|
965
|
+
className: J.closeButton,
|
|
961
966
|
onClick: e,
|
|
962
967
|
"aria-label": n("CLOSE"),
|
|
963
|
-
children: /* @__PURE__ */ t(
|
|
968
|
+
children: /* @__PURE__ */ t(Re, {})
|
|
964
969
|
}
|
|
965
970
|
)
|
|
966
971
|
] }),
|
|
@@ -1051,134 +1056,135 @@ function ao({ onClose: e }) {
|
|
|
1051
1056
|
}
|
|
1052
1057
|
);
|
|
1053
1058
|
}
|
|
1054
|
-
function
|
|
1055
|
-
const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l =
|
|
1059
|
+
function co() {
|
|
1060
|
+
const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = C(), u = _("playing"), m = W(), { t: h } = v(), g = p(() => {
|
|
1056
1061
|
n(!0), l.disableInteractions(), u && (c(!0), m.pause());
|
|
1057
1062
|
}, [u, m, l]), y = p(() => {
|
|
1058
1063
|
n(!1), i(!0), l.enableInteractions(), a && (c(!1), m.play());
|
|
1059
1064
|
}, [a, m, l]), k = p(
|
|
1060
|
-
(
|
|
1065
|
+
(b) => o && (b == null ? void 0 : b.focus()),
|
|
1061
1066
|
[o]
|
|
1062
1067
|
);
|
|
1063
|
-
return e ? /* @__PURE__ */ t(
|
|
1068
|
+
return e ? /* @__PURE__ */ t(so, { onClose: y }) : /* @__PURE__ */ t(
|
|
1064
1069
|
"button",
|
|
1065
1070
|
{
|
|
1066
1071
|
ref: k,
|
|
1067
1072
|
"aria-label": h("KEYBOARD_SHORTCUTS"),
|
|
1068
1073
|
type: "button",
|
|
1069
|
-
className:
|
|
1070
|
-
onClick:
|
|
1074
|
+
className: J.keyboardShortcutsButton,
|
|
1075
|
+
onClick: g,
|
|
1071
1076
|
tabIndex: l.state.interactionsDisabled ? -1 : 0,
|
|
1072
|
-
children: /* @__PURE__ */ t(
|
|
1077
|
+
children: /* @__PURE__ */ t(no, {})
|
|
1073
1078
|
}
|
|
1074
1079
|
);
|
|
1075
1080
|
}
|
|
1076
|
-
const
|
|
1081
|
+
const lo = "_play-pause-button_kyuc5_1", ro = {
|
|
1077
1082
|
"play-pause-button": "_play-pause-button_kyuc5_1",
|
|
1078
|
-
playPauseButton:
|
|
1083
|
+
playPauseButton: lo
|
|
1079
1084
|
};
|
|
1080
|
-
function
|
|
1081
|
-
const e = q(), n =
|
|
1085
|
+
function uo() {
|
|
1086
|
+
const e = q(), n = C(), o = _("paused"), { t: i } = v();
|
|
1082
1087
|
return e ? /* @__PURE__ */ t(
|
|
1083
|
-
|
|
1088
|
+
Ye,
|
|
1084
1089
|
{
|
|
1090
|
+
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1085
1091
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1086
|
-
className: `${
|
|
1087
|
-
onKeyDown: (
|
|
1088
|
-
|
|
1092
|
+
className: `${ro.playPauseButton} controls-button`,
|
|
1093
|
+
onKeyDown: (a) => {
|
|
1094
|
+
a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
|
|
1089
1095
|
action: "togglePaused",
|
|
1090
|
-
event:
|
|
1096
|
+
event: a.nativeEvent
|
|
1091
1097
|
}));
|
|
1092
1098
|
},
|
|
1093
1099
|
children: o ? /* @__PURE__ */ t(ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(oe, { className: "controls-button-icon" })
|
|
1094
1100
|
}
|
|
1095
1101
|
) : null;
|
|
1096
1102
|
}
|
|
1097
|
-
const
|
|
1098
|
-
poster:
|
|
1103
|
+
const mo = "_poster_195hi_1", ho = {
|
|
1104
|
+
poster: mo
|
|
1099
1105
|
};
|
|
1100
|
-
function
|
|
1106
|
+
function po({ src: e }) {
|
|
1101
1107
|
const n = _("source");
|
|
1102
|
-
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(
|
|
1108
|
+
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Xe, { src: e, className: ho.poster });
|
|
1103
1109
|
}
|
|
1104
|
-
const
|
|
1110
|
+
const _o = "_small-layout-overlay_1vli4_1", fo = "_small-layout-button_1vli4_14", vo = "_small-layout-icon-play_1vli4_24", Co = "_small-layout-icon-pause_1vli4_30", go = "_full-screen-close-icon_1vli4_36", bo = "_fade-out_1vli4_1", O = {
|
|
1105
1111
|
"small-layout-overlay": "_small-layout-overlay_1vli4_1",
|
|
1106
|
-
smallLayoutOverlay:
|
|
1112
|
+
smallLayoutOverlay: _o,
|
|
1107
1113
|
"small-layout-button": "_small-layout-button_1vli4_14",
|
|
1108
|
-
smallLayoutButton:
|
|
1114
|
+
smallLayoutButton: fo,
|
|
1109
1115
|
"small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
|
|
1110
|
-
smallLayoutIconPlay:
|
|
1116
|
+
smallLayoutIconPlay: vo,
|
|
1111
1117
|
"small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
|
|
1112
|
-
smallLayoutIconPause:
|
|
1118
|
+
smallLayoutIconPause: Co,
|
|
1113
1119
|
"full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
|
|
1114
|
-
fullScreenCloseIcon:
|
|
1120
|
+
fullScreenCloseIcon: go,
|
|
1115
1121
|
"fade-out": "_fade-out_1vli4_1",
|
|
1116
|
-
fadeOut:
|
|
1122
|
+
fadeOut: bo
|
|
1117
1123
|
};
|
|
1118
|
-
function
|
|
1124
|
+
function wo() {
|
|
1119
1125
|
return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
|
|
1120
|
-
/* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(
|
|
1126
|
+
/* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Re, {}) }),
|
|
1121
1127
|
/* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
|
|
1122
1128
|
/* @__PURE__ */ t(ie, { className: O.smallLayoutIconPlay }),
|
|
1123
1129
|
/* @__PURE__ */ t(oe, { className: O.smallLayoutIconPause })
|
|
1124
1130
|
] })
|
|
1125
1131
|
] });
|
|
1126
1132
|
}
|
|
1127
|
-
const
|
|
1133
|
+
const ko = "_time-indicator_1rlpb_1", yo = {
|
|
1128
1134
|
"time-indicator": "_time-indicator_1rlpb_1",
|
|
1129
|
-
timeIndicator:
|
|
1135
|
+
timeIndicator: ko
|
|
1130
1136
|
};
|
|
1131
|
-
function
|
|
1132
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1137
|
+
function Lo() {
|
|
1138
|
+
return /* @__PURE__ */ s("div", { className: yo.timeIndicator, children: [
|
|
1133
1139
|
/* @__PURE__ */ t(re, { type: "current" }),
|
|
1134
1140
|
"/",
|
|
1135
1141
|
/* @__PURE__ */ t(re, { type: "duration" })
|
|
1136
1142
|
] });
|
|
1137
1143
|
}
|
|
1138
|
-
const xo = "_comment-markers_49pse_1",
|
|
1144
|
+
const xo = "_comment-markers_49pse_1", Po = "_comment-marker_49pse_1", No = "_timeline-wrapper_49pse_21", Mo = "_track_49pse_35", To = "_thumb_49pse_48", Io = "_root_49pse_62", So = "_track-inner_49pse_92", Ho = "_progress_49pse_98", Vo = "_track-fill_49pse_104", Bo = "_pins_49pse_121", Eo = "_pin-button_49pse_134", Ro = "_annotation-pin_49pse_154", Ao = "_quiz-pin_49pse_159", Oo = "_annotation-pin-child_49pse_164", Fo = "_quiz-pin-child_49pse_168", Zo = "_interactive-pin-container_49pse_173", $o = "_interactive-pin-wrapper_49pse_183", Ko = "_interactive-pin-icon_49pse_189", Do = "_interactive-pin_49pse_173", zo = "_bg_49pse_203", Uo = "_symbol_49pse_207", jo = "_interactive-pin-button_49pse_212", qo = "_interactive-pin-menu_49pse_232", Wo = "_interactive-pin-menu-item_49pse_246", Go = "_arrow_49pse_267", d = {
|
|
1139
1145
|
"comment-markers": "_comment-markers_49pse_1",
|
|
1140
1146
|
commentMarkers: xo,
|
|
1141
1147
|
"comment-marker": "_comment-marker_49pse_1",
|
|
1142
|
-
commentMarker:
|
|
1148
|
+
commentMarker: Po,
|
|
1143
1149
|
"timeline-wrapper": "_timeline-wrapper_49pse_21",
|
|
1144
|
-
timelineWrapper:
|
|
1145
|
-
track:
|
|
1146
|
-
thumb:
|
|
1147
|
-
root:
|
|
1150
|
+
timelineWrapper: No,
|
|
1151
|
+
track: Mo,
|
|
1152
|
+
thumb: To,
|
|
1153
|
+
root: Io,
|
|
1148
1154
|
"track-inner": "_track-inner_49pse_92",
|
|
1149
|
-
trackInner:
|
|
1150
|
-
progress:
|
|
1155
|
+
trackInner: So,
|
|
1156
|
+
progress: Ho,
|
|
1151
1157
|
"track-fill": "_track-fill_49pse_104",
|
|
1152
|
-
trackFill:
|
|
1153
|
-
pins:
|
|
1158
|
+
trackFill: Vo,
|
|
1159
|
+
pins: Bo,
|
|
1154
1160
|
"pin-button": "_pin-button_49pse_134",
|
|
1155
|
-
pinButton:
|
|
1161
|
+
pinButton: Eo,
|
|
1156
1162
|
"annotation-pin": "_annotation-pin_49pse_154",
|
|
1157
1163
|
annotationPin: Ro,
|
|
1158
1164
|
"quiz-pin": "_quiz-pin_49pse_159",
|
|
1159
|
-
quizPin:
|
|
1165
|
+
quizPin: Ao,
|
|
1160
1166
|
"annotation-pin-child": "_annotation-pin-child_49pse_164",
|
|
1161
|
-
annotationPinChild:
|
|
1167
|
+
annotationPinChild: Oo,
|
|
1162
1168
|
"quiz-pin-child": "_quiz-pin-child_49pse_168",
|
|
1163
|
-
quizPinChild:
|
|
1169
|
+
quizPinChild: Fo,
|
|
1164
1170
|
"interactive-pin-container": "_interactive-pin-container_49pse_173",
|
|
1165
|
-
interactivePinContainer:
|
|
1171
|
+
interactivePinContainer: Zo,
|
|
1166
1172
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_49pse_183",
|
|
1167
|
-
interactivePinWrapper:
|
|
1173
|
+
interactivePinWrapper: $o,
|
|
1168
1174
|
"interactive-pin-icon": "_interactive-pin-icon_49pse_189",
|
|
1169
|
-
interactivePinIcon:
|
|
1175
|
+
interactivePinIcon: Ko,
|
|
1170
1176
|
"interactive-pin": "_interactive-pin_49pse_173",
|
|
1171
|
-
interactivePin:
|
|
1172
|
-
bg:
|
|
1173
|
-
symbol:
|
|
1177
|
+
interactivePin: Do,
|
|
1178
|
+
bg: zo,
|
|
1179
|
+
symbol: Uo,
|
|
1174
1180
|
"interactive-pin-button": "_interactive-pin-button_49pse_212",
|
|
1175
|
-
interactivePinButton:
|
|
1181
|
+
interactivePinButton: jo,
|
|
1176
1182
|
"interactive-pin-menu": "_interactive-pin-menu_49pse_232",
|
|
1177
|
-
interactivePinMenu:
|
|
1183
|
+
interactivePinMenu: qo,
|
|
1178
1184
|
"interactive-pin-menu-item": "_interactive-pin-menu-item_49pse_246",
|
|
1179
|
-
interactivePinMenuItem:
|
|
1180
|
-
arrow:
|
|
1181
|
-
},
|
|
1185
|
+
interactivePinMenuItem: Wo,
|
|
1186
|
+
arrow: Go
|
|
1187
|
+
}, Qo = {
|
|
1182
1188
|
annotation: d.annotationPin,
|
|
1183
1189
|
quiz: d.quizPin
|
|
1184
1190
|
};
|
|
@@ -1188,7 +1194,7 @@ function Ae({
|
|
|
1188
1194
|
children: o,
|
|
1189
1195
|
onClick: i
|
|
1190
1196
|
}) {
|
|
1191
|
-
const a =
|
|
1197
|
+
const a = C();
|
|
1192
1198
|
return /* @__PURE__ */ t(
|
|
1193
1199
|
"button",
|
|
1194
1200
|
{
|
|
@@ -1200,7 +1206,7 @@ function Ae({
|
|
|
1200
1206
|
children: /* @__PURE__ */ s(
|
|
1201
1207
|
"svg",
|
|
1202
1208
|
{
|
|
1203
|
-
className:
|
|
1209
|
+
className: Qo[e],
|
|
1204
1210
|
width: "26",
|
|
1205
1211
|
height: "32",
|
|
1206
1212
|
viewBox: "0 0 26 32",
|
|
@@ -1214,7 +1220,7 @@ function Ae({
|
|
|
1214
1220
|
}
|
|
1215
1221
|
);
|
|
1216
1222
|
}
|
|
1217
|
-
function
|
|
1223
|
+
function Yo(e) {
|
|
1218
1224
|
return /* @__PURE__ */ t(Ae, { type: "annotation", ...e, children: /* @__PURE__ */ t(
|
|
1219
1225
|
"path",
|
|
1220
1226
|
{
|
|
@@ -1227,7 +1233,7 @@ function Qo(e) {
|
|
|
1227
1233
|
}
|
|
1228
1234
|
) });
|
|
1229
1235
|
}
|
|
1230
|
-
function
|
|
1236
|
+
function Xo(e) {
|
|
1231
1237
|
return /* @__PURE__ */ t(Ae, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: d.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
|
|
1232
1238
|
"text",
|
|
1233
1239
|
{
|
|
@@ -1250,7 +1256,7 @@ function Jo(e, n) {
|
|
|
1250
1256
|
onClick: () => n(o)
|
|
1251
1257
|
}));
|
|
1252
1258
|
}
|
|
1253
|
-
function
|
|
1259
|
+
function ei(e, n) {
|
|
1254
1260
|
const o = /* @__PURE__ */ new Map();
|
|
1255
1261
|
e.forEach((c) => {
|
|
1256
1262
|
var u;
|
|
@@ -1270,12 +1276,12 @@ function Xo(e, n) {
|
|
|
1270
1276
|
}), a++;
|
|
1271
1277
|
}), i;
|
|
1272
1278
|
}
|
|
1273
|
-
function
|
|
1279
|
+
function ti(e, n, o, i) {
|
|
1274
1280
|
switch (e.type) {
|
|
1275
1281
|
case "annotation": {
|
|
1276
1282
|
const a = () => i ? e.onClick() : o.seek(e.time);
|
|
1277
1283
|
return /* @__PURE__ */ t(
|
|
1278
|
-
|
|
1284
|
+
Yo,
|
|
1279
1285
|
{
|
|
1280
1286
|
position: e.time / n * 100,
|
|
1281
1287
|
onClick: a
|
|
@@ -1285,7 +1291,7 @@ function ei(e, n, o, i) {
|
|
|
1285
1291
|
}
|
|
1286
1292
|
case "quiz":
|
|
1287
1293
|
return /* @__PURE__ */ t(
|
|
1288
|
-
|
|
1294
|
+
Xo,
|
|
1289
1295
|
{
|
|
1290
1296
|
position: e.time / n * 100,
|
|
1291
1297
|
ordinal: e.ordinal,
|
|
@@ -1298,18 +1304,18 @@ function ei(e, n, o, i) {
|
|
|
1298
1304
|
return null;
|
|
1299
1305
|
}
|
|
1300
1306
|
}
|
|
1301
|
-
function
|
|
1307
|
+
function ni() {
|
|
1302
1308
|
const e = W(), n = _("duration"), o = S(), i = Z(() => [
|
|
1303
1309
|
...Jo(
|
|
1304
1310
|
o.annotations,
|
|
1305
1311
|
o.onAnnotationClick
|
|
1306
1312
|
),
|
|
1307
|
-
...
|
|
1308
|
-
].sort((c, l) => c.time - l.time).map((c) =>
|
|
1313
|
+
...ei(o.quizMarkers, o.onQuizMarkerClick)
|
|
1314
|
+
].sort((c, l) => c.time - l.time).map((c) => ti(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1309
1315
|
return /* @__PURE__ */ t("div", { className: d.pins, children: i });
|
|
1310
1316
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const e = _("duration"), n = S(), o =
|
|
1317
|
+
function oi() {
|
|
1318
|
+
const e = _("duration"), n = S(), o = C();
|
|
1313
1319
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
|
|
1314
1320
|
const a = Math.min(
|
|
1315
1321
|
Math.abs(e - i.timestamp),
|
|
@@ -1328,8 +1334,8 @@ function ni() {
|
|
|
1328
1334
|
);
|
|
1329
1335
|
}) }) : null;
|
|
1330
1336
|
}
|
|
1331
|
-
function
|
|
1332
|
-
const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((
|
|
1337
|
+
function ii({ currentTime: e, position: n }) {
|
|
1338
|
+
const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
|
|
1333
1339
|
a.interactiveMenuElements,
|
|
1334
1340
|
a.onInteractivePinClick,
|
|
1335
1341
|
e
|
|
@@ -1339,14 +1345,14 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1339
1345
|
whileElementsMounted: we,
|
|
1340
1346
|
placement: "top",
|
|
1341
1347
|
middleware: [
|
|
1342
|
-
|
|
1343
|
-
|
|
1348
|
+
st(),
|
|
1349
|
+
ct(6),
|
|
1344
1350
|
ke(),
|
|
1345
1351
|
ye({
|
|
1346
1352
|
element: l
|
|
1347
1353
|
})
|
|
1348
1354
|
]
|
|
1349
|
-
}),
|
|
1355
|
+
}), g = Le(h), { getReferenceProps: y, getFloatingProps: k } = xe([g]);
|
|
1350
1356
|
return /* @__PURE__ */ s(ee, { children: [
|
|
1351
1357
|
/* @__PURE__ */ t(
|
|
1352
1358
|
"button",
|
|
@@ -1405,13 +1411,13 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1405
1411
|
className: d.interactivePinMenu,
|
|
1406
1412
|
...k(),
|
|
1407
1413
|
children: [
|
|
1408
|
-
a.interactiveMenuElements.map(({ id:
|
|
1414
|
+
a.interactiveMenuElements.map(({ id: b, text: f, onClick: w }) => /* @__PURE__ */ s(
|
|
1409
1415
|
"button",
|
|
1410
1416
|
{
|
|
1411
1417
|
type: "button",
|
|
1412
1418
|
className: d.interactivePinMenuItem,
|
|
1413
1419
|
onClick: () => {
|
|
1414
|
-
w(
|
|
1420
|
+
w(b, e), i(!1);
|
|
1415
1421
|
},
|
|
1416
1422
|
children: [
|
|
1417
1423
|
/* @__PURE__ */ t(
|
|
@@ -1436,7 +1442,7 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1436
1442
|
f
|
|
1437
1443
|
]
|
|
1438
1444
|
},
|
|
1439
|
-
|
|
1445
|
+
b
|
|
1440
1446
|
)),
|
|
1441
1447
|
/* @__PURE__ */ t(
|
|
1442
1448
|
Pe,
|
|
@@ -1451,20 +1457,20 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1451
1457
|
)
|
|
1452
1458
|
] });
|
|
1453
1459
|
}
|
|
1454
|
-
function
|
|
1460
|
+
function ai() {
|
|
1455
1461
|
const e = _("duration"), n = _("currentTime"), o = n / e * 100;
|
|
1456
|
-
return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(
|
|
1462
|
+
return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(ii, { currentTime: n, position: o }) }) });
|
|
1457
1463
|
}
|
|
1458
|
-
function
|
|
1459
|
-
const e = _("paused"), n =
|
|
1460
|
-
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(
|
|
1464
|
+
function si() {
|
|
1465
|
+
const e = _("paused"), n = C();
|
|
1466
|
+
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ai, {}) : null;
|
|
1461
1467
|
}
|
|
1462
|
-
const
|
|
1468
|
+
const ci = `${d.progress} ${d.trackInner}`, li = `${d.trackFill} ${d.trackInner}`;
|
|
1463
1469
|
function he({ className: e }) {
|
|
1464
|
-
const n =
|
|
1470
|
+
const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
|
|
1465
1471
|
return /* @__PURE__ */ s("div", { className: c, children: [
|
|
1466
|
-
a ? /* @__PURE__ */ t(
|
|
1467
|
-
a || o || i ? /* @__PURE__ */ t(
|
|
1472
|
+
a ? /* @__PURE__ */ t(si, {}) : null,
|
|
1473
|
+
a || o || i ? /* @__PURE__ */ t(ni, {}) : null,
|
|
1468
1474
|
/* @__PURE__ */ s(
|
|
1469
1475
|
A.Root,
|
|
1470
1476
|
{
|
|
@@ -1472,33 +1478,34 @@ function he({ className: e }) {
|
|
|
1472
1478
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1473
1479
|
children: [
|
|
1474
1480
|
/* @__PURE__ */ s(A.Track, { className: d.track, children: [
|
|
1475
|
-
/* @__PURE__ */ t(A.Progress, { className:
|
|
1476
|
-
/* @__PURE__ */ t(A.TrackFill, { className:
|
|
1481
|
+
/* @__PURE__ */ t(A.Progress, { className: ci }),
|
|
1482
|
+
/* @__PURE__ */ t(A.TrackFill, { className: li })
|
|
1477
1483
|
] }),
|
|
1478
1484
|
/* @__PURE__ */ t(A.Thumb, { className: d.thumb })
|
|
1479
1485
|
]
|
|
1480
1486
|
}
|
|
1481
1487
|
),
|
|
1482
|
-
/* @__PURE__ */ t(
|
|
1488
|
+
/* @__PURE__ */ t(oi, {})
|
|
1483
1489
|
] });
|
|
1484
1490
|
}
|
|
1485
|
-
const
|
|
1486
|
-
wrapper:
|
|
1487
|
-
track:
|
|
1488
|
-
thumb:
|
|
1491
|
+
const ri = "_wrapper_12cb0_1", ui = "_track_12cb0_6", di = "_thumb_12cb0_18", mi = "_track-fill_12cb0_32", hi = "_root_12cb0_51", F = {
|
|
1492
|
+
wrapper: ri,
|
|
1493
|
+
track: ui,
|
|
1494
|
+
thumb: di,
|
|
1489
1495
|
"track-fill": "_track-fill_12cb0_32",
|
|
1490
|
-
trackFill:
|
|
1491
|
-
root:
|
|
1496
|
+
trackFill: mi,
|
|
1497
|
+
root: hi
|
|
1492
1498
|
};
|
|
1493
|
-
function
|
|
1494
|
-
const e = _("volume"), n = _("muted"), o = v();
|
|
1499
|
+
function pi() {
|
|
1500
|
+
const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
|
|
1495
1501
|
return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
|
|
1496
1502
|
/* @__PURE__ */ t(
|
|
1497
1503
|
Je,
|
|
1498
1504
|
{
|
|
1499
1505
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1500
1506
|
className: "controls-button",
|
|
1501
|
-
|
|
1507
|
+
"aria-label": a(i ? "VOLUME" : "MUTE"),
|
|
1508
|
+
children: i ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Be, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ee, { className: "controls-button-icon" })
|
|
1502
1509
|
}
|
|
1503
1510
|
),
|
|
1504
1511
|
/* @__PURE__ */ s(
|
|
@@ -1600,7 +1607,7 @@ const pe = {
|
|
|
1600
1607
|
function _e(e) {
|
|
1601
1608
|
return typeof e == "number" && !isNaN(e);
|
|
1602
1609
|
}
|
|
1603
|
-
function
|
|
1610
|
+
function _i(e, n = 1e3) {
|
|
1604
1611
|
let o = !1;
|
|
1605
1612
|
return () => {
|
|
1606
1613
|
o || (e(), o = !0, setTimeout(() => {
|
|
@@ -1619,7 +1626,7 @@ const fe = {
|
|
|
1619
1626
|
invert: !1,
|
|
1620
1627
|
comments: !1
|
|
1621
1628
|
};
|
|
1622
|
-
class
|
|
1629
|
+
class fi {
|
|
1623
1630
|
constructor() {
|
|
1624
1631
|
N(this, "playerId", "studio-player");
|
|
1625
1632
|
N(this, "mediaId", null);
|
|
@@ -1631,7 +1638,7 @@ class _i {
|
|
|
1631
1638
|
const n = (this.time ?? 0).toString();
|
|
1632
1639
|
localStorage.setItem(this.mediaId, n);
|
|
1633
1640
|
});
|
|
1634
|
-
N(this, "saveTimeThrottled",
|
|
1641
|
+
N(this, "saveTimeThrottled", _i(this.saveTime, 1e3));
|
|
1635
1642
|
// only used for useStudioPlayer hook's state initialization
|
|
1636
1643
|
N(this, "initializeState", (n) => {
|
|
1637
1644
|
const o = localStorage.getItem(this.playerId);
|
|
@@ -1719,8 +1726,8 @@ class _i {
|
|
|
1719
1726
|
localStorage.setItem(this.playerId, n);
|
|
1720
1727
|
}
|
|
1721
1728
|
}
|
|
1722
|
-
function
|
|
1723
|
-
const a = Z(() => new
|
|
1729
|
+
function vi(e, n, o, i) {
|
|
1730
|
+
const a = Z(() => new fi(), []), [c, l] = M(
|
|
1724
1731
|
a.initializeState(i)
|
|
1725
1732
|
), u = p(
|
|
1726
1733
|
(f) => {
|
|
@@ -1746,7 +1753,7 @@ function fi(e, n, o, i) {
|
|
|
1746
1753
|
captionsInvertColors: w
|
|
1747
1754
|
};
|
|
1748
1755
|
});
|
|
1749
|
-
}, [a]),
|
|
1756
|
+
}, [a]), g = p(() => {
|
|
1750
1757
|
l((f) => {
|
|
1751
1758
|
const w = !f.commentsEnabled;
|
|
1752
1759
|
return a.saveData("comments", w), {
|
|
@@ -1764,7 +1771,7 @@ function fi(e, n, o, i) {
|
|
|
1764
1771
|
...f,
|
|
1765
1772
|
interactionsDisabled: !0
|
|
1766
1773
|
}));
|
|
1767
|
-
}, []),
|
|
1774
|
+
}, []), b = Z(() => e ? {
|
|
1768
1775
|
...pe,
|
|
1769
1776
|
toggleFullscreen: []
|
|
1770
1777
|
} : pe, [e]);
|
|
@@ -1779,16 +1786,16 @@ function fi(e, n, o, i) {
|
|
|
1779
1786
|
toggleCaptionsInvertColors: h,
|
|
1780
1787
|
enableInteractions: y,
|
|
1781
1788
|
disableInteractions: k,
|
|
1782
|
-
toggleComments:
|
|
1789
|
+
toggleComments: g,
|
|
1783
1790
|
disableCaptionSettings: o
|
|
1784
1791
|
},
|
|
1785
|
-
shortcuts:
|
|
1792
|
+
shortcuts: b,
|
|
1786
1793
|
storage: a
|
|
1787
1794
|
};
|
|
1788
1795
|
}
|
|
1789
|
-
const
|
|
1796
|
+
const Ci = {}, X = () => {
|
|
1790
1797
|
};
|
|
1791
|
-
function
|
|
1798
|
+
function Ni({
|
|
1792
1799
|
title: e,
|
|
1793
1800
|
playerRef: n,
|
|
1794
1801
|
src: o,
|
|
@@ -1799,75 +1806,77 @@ function Pi({
|
|
|
1799
1806
|
locale: u = "en",
|
|
1800
1807
|
annotations: m = [],
|
|
1801
1808
|
quizMarkers: h = [],
|
|
1802
|
-
interactive:
|
|
1803
|
-
onAnnotationClick: y =
|
|
1804
|
-
onQuizMarkerClick: k =
|
|
1805
|
-
onInteractivePinClick:
|
|
1809
|
+
interactive: g = !1,
|
|
1810
|
+
onAnnotationClick: y = X,
|
|
1811
|
+
onQuizMarkerClick: k = X,
|
|
1812
|
+
onInteractivePinClick: b = X,
|
|
1806
1813
|
interactiveMenuElements: f = [],
|
|
1807
1814
|
darkMode: w = !1,
|
|
1808
1815
|
autoLoadCaptionSrc: T = "",
|
|
1809
1816
|
forceComments: ae,
|
|
1810
1817
|
disableCaptionSettings: Q,
|
|
1811
|
-
startAt: Oe
|
|
1818
|
+
startAt: Oe,
|
|
1819
|
+
crossOrigin: Fe
|
|
1812
1820
|
}) {
|
|
1813
|
-
const { contextValue: se, shortcuts:
|
|
1821
|
+
const { contextValue: se, shortcuts: Ze, storage: $e } = vi(
|
|
1814
1822
|
c,
|
|
1815
1823
|
ae ?? !1,
|
|
1816
1824
|
Q ?? !1,
|
|
1817
1825
|
Oe
|
|
1818
|
-
), { i18n: ce } =
|
|
1819
|
-
return
|
|
1826
|
+
), { i18n: ce } = v();
|
|
1827
|
+
return R(() => {
|
|
1820
1828
|
ce.changeLanguage(u);
|
|
1821
1829
|
}, [ce, u]), /* @__PURE__ */ t(
|
|
1822
|
-
|
|
1830
|
+
ut,
|
|
1823
1831
|
{
|
|
1824
1832
|
hideFullScreen: c,
|
|
1825
1833
|
comments: l,
|
|
1826
1834
|
annotations: m,
|
|
1827
1835
|
quizMarkers: h,
|
|
1828
|
-
interactive:
|
|
1836
|
+
interactive: g,
|
|
1829
1837
|
onAnnotationClick: y,
|
|
1830
1838
|
onQuizMarkerClick: k,
|
|
1831
|
-
onInteractivePinClick:
|
|
1839
|
+
onInteractivePinClick: b,
|
|
1832
1840
|
interactiveMenuElements: f,
|
|
1833
1841
|
darkMode: w,
|
|
1834
1842
|
forceComments: ae ?? !1,
|
|
1835
1843
|
disableCaptionSettings: Q ?? !1,
|
|
1836
|
-
children: /* @__PURE__ */ t(
|
|
1837
|
-
|
|
1844
|
+
children: /* @__PURE__ */ t(rt, { contextValue: se, children: /* @__PURE__ */ s(
|
|
1845
|
+
et,
|
|
1838
1846
|
{
|
|
1839
|
-
|
|
1847
|
+
crossOrigin: Fe,
|
|
1848
|
+
storage: $e,
|
|
1840
1849
|
title: e,
|
|
1841
1850
|
src: o,
|
|
1842
|
-
keyShortcuts:
|
|
1851
|
+
keyShortcuts: Ze,
|
|
1843
1852
|
playsInline: !0,
|
|
1844
1853
|
keyDisabled: se.state.interactionsDisabled,
|
|
1845
1854
|
onTextTracksChange: (D) => {
|
|
1846
1855
|
const le = D == null ? void 0 : D.findIndex(
|
|
1847
|
-
(
|
|
1856
|
+
(Ke) => Ke.src === T
|
|
1848
1857
|
);
|
|
1849
1858
|
le > -1 && (D[le].mode = "showing");
|
|
1850
1859
|
},
|
|
1851
1860
|
children: [
|
|
1852
|
-
/* @__PURE__ */ t(
|
|
1853
|
-
/* @__PURE__ */ s(
|
|
1854
|
-
/* @__PURE__ */ t(
|
|
1855
|
-
/* @__PURE__ */ t(
|
|
1856
|
-
/* @__PURE__ */ t(
|
|
1857
|
-
/* @__PURE__ */ t(
|
|
1858
|
-
/* @__PURE__ */ t(
|
|
1859
|
-
/* @__PURE__ */ t(
|
|
1860
|
-
/* @__PURE__ */ t(
|
|
1861
|
+
/* @__PURE__ */ t(co, {}),
|
|
1862
|
+
/* @__PURE__ */ s(tt, { className: Ci.mediaProvider, children: [
|
|
1863
|
+
/* @__PURE__ */ t(po, { src: a }),
|
|
1864
|
+
/* @__PURE__ */ t(qn, {}),
|
|
1865
|
+
/* @__PURE__ */ t(bt, {}),
|
|
1866
|
+
/* @__PURE__ */ t(Lt, { captions: i }),
|
|
1867
|
+
/* @__PURE__ */ t(to, {}),
|
|
1868
|
+
/* @__PURE__ */ t(At, { comments: l }),
|
|
1869
|
+
/* @__PURE__ */ t(wo, {})
|
|
1861
1870
|
] }),
|
|
1862
1871
|
/* @__PURE__ */ t(
|
|
1863
|
-
|
|
1872
|
+
zt,
|
|
1864
1873
|
{
|
|
1865
1874
|
darkMode: w,
|
|
1866
1875
|
playerRef: n,
|
|
1867
1876
|
showCaptionsButton: !Q
|
|
1868
1877
|
}
|
|
1869
1878
|
),
|
|
1870
|
-
/* @__PURE__ */ t(
|
|
1879
|
+
/* @__PURE__ */ t(pt, { annotations: m })
|
|
1871
1880
|
]
|
|
1872
1881
|
}
|
|
1873
1882
|
) })
|
|
@@ -1878,5 +1887,5 @@ export {
|
|
|
1878
1887
|
xt as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
1879
1888
|
Se as COMMENT_DURATION,
|
|
1880
1889
|
B as PLAYBACK_RATES,
|
|
1881
|
-
|
|
1890
|
+
Ni as StudioPlayer
|
|
1882
1891
|
};
|