@instructure/studio-player 0.2.4 → 0.2.5
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 +3 -1
- package/dist/studio-player.es.js +376 -369
- package/package.json +1 -1
package/dist/studio-player.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import './index-aLp7_0kW.css';var
|
|
2
|
-
var
|
|
3
|
-
var N = (e, n, o) =>
|
|
4
|
-
import { jsx as t, jsxs as s, Fragment as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import { useMediaPlayer as
|
|
7
|
-
import { initReactI18next as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useFloating as
|
|
11
|
-
const
|
|
1
|
+
import './index-aLp7_0kW.css';var Oe = Object.defineProperty;
|
|
2
|
+
var Fe = (e, n, o) => n in e ? Oe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
|
+
var N = (e, n, o) => Fe(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
|
+
import { jsx as t, jsxs as s, Fragment as X } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as ee, useContext as w, useState as P, useCallback as f, useEffect as R, useMemo as Z, useRef as pe } from "react";
|
|
6
|
+
import { useMediaPlayer as q, Spinner as Q, useMediaRemote as W, useMediaState as v, isTrackCaptionKind as Ze, Track as $e, Captions as ze, usePlaybackRateOptions as Ke, useCaptionOptions as De, useVideoQualityOptions as je, useMediaStore as _e, FullscreenButton as fe, PlayButton as Ue, Poster as qe, Time as ce, TimeSlider as E, MuteButton as We, VolumeSlider as D, MediaPlayer as Ge, MediaProvider as Qe } from "@vidstack/react";
|
|
7
|
+
import { initReactI18next as Ye, useTranslation as C } from "react-i18next";
|
|
8
|
+
import Je from "i18next";
|
|
9
|
+
import Xe from "i18next-resources-to-backend";
|
|
10
|
+
import { useFloating as ve, autoUpdate as be, flip as Ce, arrow as ge, useDismiss as ke, useInteractions as ye, FloatingFocusManager as et, FloatingArrow as we, shift as tt, offset as nt } from "@floating-ui/react";
|
|
11
|
+
const ot = (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 Xe = (e, n, o) => {
|
|
|
21
21
|
);
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(e) =>
|
|
24
|
+
Je.use(Ye).use(
|
|
25
|
+
Xe(
|
|
26
|
+
(e) => ot(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-DRnzP2ly.js"), "./locales/kl.json": () => import("./kl-DAr1HilW.js") }), `./locales/${e}.json`, 3)
|
|
27
27
|
)
|
|
28
28
|
).init({
|
|
29
29
|
fallbackLng: "en",
|
|
@@ -34,23 +34,23 @@ We.use(qe).use(
|
|
|
34
34
|
escapeValue: !1
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
const
|
|
38
|
-
function
|
|
37
|
+
const Le = ee(null);
|
|
38
|
+
function it({
|
|
39
39
|
children: e,
|
|
40
40
|
contextValue: n
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */ t(
|
|
42
|
+
return /* @__PURE__ */ t(Le.Provider, { value: n, children: e });
|
|
43
43
|
}
|
|
44
44
|
function g() {
|
|
45
|
-
const e = w(
|
|
45
|
+
const e = w(Le);
|
|
46
46
|
if (!e)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"useStudioPlayerContext must be used within a StudioPlayerContextProvider"
|
|
49
49
|
);
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
52
|
+
const Pe = ee(null);
|
|
53
|
+
function at({
|
|
54
54
|
hideFullScreen: e,
|
|
55
55
|
comments: n,
|
|
56
56
|
annotations: o,
|
|
@@ -78,28 +78,28 @@ function tt({
|
|
|
78
78
|
hasAnnotations: o.length > 0,
|
|
79
79
|
hasQuizmarkers: i.length > 0
|
|
80
80
|
};
|
|
81
|
-
return /* @__PURE__ */ t(
|
|
81
|
+
return /* @__PURE__ */ t(Pe.Provider, { value: d, children: b });
|
|
82
82
|
}
|
|
83
83
|
function I() {
|
|
84
|
-
const e = w(
|
|
84
|
+
const e = w(Pe);
|
|
85
85
|
if (!e)
|
|
86
86
|
throw new Error(
|
|
87
87
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
88
88
|
);
|
|
89
89
|
return e;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const st = "_annotation-overlay_1kxzn_1", ct = {
|
|
92
92
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
93
|
-
annotationOverlay:
|
|
94
|
-
},
|
|
93
|
+
annotationOverlay: st
|
|
94
|
+
}, le = 0.25, lt = (e, n) => {
|
|
95
95
|
let o = !1;
|
|
96
96
|
return (i) => {
|
|
97
97
|
const a = i.detail.currentTime;
|
|
98
|
-
a >= e.time && a < e.time +
|
|
98
|
+
a >= e.time && a < e.time + le && !o && (o = !0, n(e)), (a < e.time || a >= e.time + le) && o && (o = !1);
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const n =
|
|
101
|
+
function rt({ annotations: e }) {
|
|
102
|
+
const n = q(), o = g(), i = I(), [a, c] = P(
|
|
103
103
|
null
|
|
104
104
|
), l = f(
|
|
105
105
|
(h) => {
|
|
@@ -114,7 +114,7 @@ function at({ annotations: e }) {
|
|
|
114
114
|
return;
|
|
115
115
|
const h = [];
|
|
116
116
|
for (const p of e) {
|
|
117
|
-
const b =
|
|
117
|
+
const b = lt(p, l);
|
|
118
118
|
n.addEventListener("time-update", b), h.push(b);
|
|
119
119
|
}
|
|
120
120
|
if (a) {
|
|
@@ -127,41 +127,41 @@ function at({ annotations: e }) {
|
|
|
127
127
|
for (const p of h)
|
|
128
128
|
n.removeEventListener("time-update", p);
|
|
129
129
|
};
|
|
130
|
-
}, [n, e]), a ? /* @__PURE__ */ t("div", { className:
|
|
130
|
+
}, [n, e]), a ? /* @__PURE__ */ t("div", { className: ct.annotationOverlay, children: a.render(u) }) : null;
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const ut = "_media-buffering-indicator_1fwjr_1", dt = "_media-buffering-spinner_1fwjr_17", mt = "_media-buffering-spin_1fwjr_17", ht = "_media-buffering-track_1fwjr_22", pt = "_media-buffering-track-fill_1fwjr_27", j = {
|
|
133
133
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
134
|
-
mediaBufferingIndicator:
|
|
134
|
+
mediaBufferingIndicator: ut,
|
|
135
135
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
136
|
-
mediaBufferingSpinner:
|
|
136
|
+
mediaBufferingSpinner: dt,
|
|
137
137
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
138
|
-
mediaBufferingSpin:
|
|
138
|
+
mediaBufferingSpin: mt,
|
|
139
139
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
140
|
-
mediaBufferingTrack:
|
|
140
|
+
mediaBufferingTrack: ht,
|
|
141
141
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
142
|
-
mediaBufferingTrackFill:
|
|
142
|
+
mediaBufferingTrackFill: pt
|
|
143
143
|
};
|
|
144
|
-
function
|
|
145
|
-
return /* @__PURE__ */ t("div", { className:
|
|
146
|
-
/* @__PURE__ */ t(
|
|
144
|
+
function _t() {
|
|
145
|
+
return /* @__PURE__ */ t("div", { className: j.mediaBufferingIndicator, children: /* @__PURE__ */ s(Q.Root, { className: j.mediaBufferingSpinner, size: 96, children: [
|
|
146
|
+
/* @__PURE__ */ t(Q.Track, { className: j.mediaBufferingTrack, width: 8 }),
|
|
147
147
|
/* @__PURE__ */ t(
|
|
148
|
-
|
|
148
|
+
Q.TrackFill,
|
|
149
149
|
{
|
|
150
|
-
className:
|
|
150
|
+
className: j.mediaBufferingTrackFill,
|
|
151
151
|
width: 8
|
|
152
152
|
}
|
|
153
153
|
)
|
|
154
154
|
] }) });
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Ne = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
157
157
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
158
158
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ t("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" }) })
|
|
159
|
-
] }),
|
|
159
|
+
] }), xe = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
160
160
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
161
161
|
/* @__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" }) })
|
|
162
162
|
] });
|
|
163
|
-
function
|
|
164
|
-
const e =
|
|
163
|
+
function ft() {
|
|
164
|
+
const e = W(), n = v("textTrack"), o = v("hasCaptions"), i = n && Ze(n), a = g(), c = f(
|
|
165
165
|
(l) => {
|
|
166
166
|
e.toggleCaptions(l.nativeEvent);
|
|
167
167
|
},
|
|
@@ -175,18 +175,18 @@ function mt() {
|
|
|
175
175
|
onClick: c,
|
|
176
176
|
"aria-label": "Captions",
|
|
177
177
|
tabIndex: a.state.interactionsDisabled ? -1 : 0,
|
|
178
|
-
children: i ? /* @__PURE__ */ t(
|
|
178
|
+
children: i ? /* @__PURE__ */ t(xe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ne, { className: "controls-button-icon" })
|
|
179
179
|
}
|
|
180
180
|
) : null;
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
captions:
|
|
182
|
+
const vt = "_captions_13epz_1", bt = {
|
|
183
|
+
captions: vt
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function Ct({ captions: e }) {
|
|
186
186
|
const n = v("hasCaptions"), o = g();
|
|
187
|
-
return /* @__PURE__ */ s(
|
|
187
|
+
return /* @__PURE__ */ s(X, { children: [
|
|
188
188
|
e.map((i) => /* @__PURE__ */ t(
|
|
189
|
-
|
|
189
|
+
$e,
|
|
190
190
|
{
|
|
191
191
|
kind: "subtitles",
|
|
192
192
|
type: i.type,
|
|
@@ -206,12 +206,12 @@ function _t({ captions: e }) {
|
|
|
206
206
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
207
207
|
"--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
208
208
|
},
|
|
209
|
-
children: /* @__PURE__ */ t(
|
|
209
|
+
children: /* @__PURE__ */ t(ze, { className: bt.captions })
|
|
210
210
|
}
|
|
211
211
|
) : null
|
|
212
212
|
] });
|
|
213
213
|
}
|
|
214
|
-
const V = [0.5, 0.75, 1, 1.25, 1.5, 2],
|
|
214
|
+
const V = [0.5, 0.75, 1, 1.25, 1.5, 2], gt = [0.5, 1, 2, 3, 4], Me = 5, kt = (e) => {
|
|
215
215
|
const [, n] = P({});
|
|
216
216
|
return Z(() => {
|
|
217
217
|
let o = [];
|
|
@@ -227,20 +227,20 @@ const V = [0.5, 0.75, 1, 1.25, 1.5, 2], ft = [0.5, 1, 2, 3, 4], Pe = 5, vt = (e)
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}, []);
|
|
230
|
-
},
|
|
230
|
+
}, yt = (e, n, o) => {
|
|
231
231
|
let i = !1;
|
|
232
232
|
return (a) => {
|
|
233
233
|
const c = a.detail.currentTime;
|
|
234
234
|
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);
|
|
235
235
|
};
|
|
236
|
-
},
|
|
237
|
-
const o =
|
|
236
|
+
}, wt = (e, n = 5) => {
|
|
237
|
+
const o = q(), i = kt(n);
|
|
238
238
|
return R(() => {
|
|
239
239
|
if (!o)
|
|
240
240
|
return;
|
|
241
241
|
const a = [];
|
|
242
242
|
for (const c of e) {
|
|
243
|
-
const l =
|
|
243
|
+
const l = yt(c, Me, i);
|
|
244
244
|
a.push(l), o.addEventListener("time-update", l);
|
|
245
245
|
}
|
|
246
246
|
return () => {
|
|
@@ -248,20 +248,20 @@ const V = [0.5, 0.75, 1, 1.25, 1.5, 2], ft = [0.5, 1, 2, 3, 4], Pe = 5, vt = (e)
|
|
|
248
248
|
o.removeEventListener("time-update", c);
|
|
249
249
|
};
|
|
250
250
|
}, [o, i, e]), i;
|
|
251
|
-
},
|
|
251
|
+
}, Lt = "_comments-overlay_agbjl_1", Pt = "_comments-container_agbjl_9", Nt = "_comment_agbjl_1", xt = "_comment-text_agbjl_44", Mt = "_comment-author-avatar_agbjl_67", It = "_comment-author-name_agbjl_86", B = {
|
|
252
252
|
"comments-overlay": "_comments-overlay_agbjl_1",
|
|
253
|
-
commentsOverlay:
|
|
253
|
+
commentsOverlay: Lt,
|
|
254
254
|
"comments-container": "_comments-container_agbjl_9",
|
|
255
|
-
commentsContainer:
|
|
256
|
-
comment:
|
|
255
|
+
commentsContainer: Pt,
|
|
256
|
+
comment: Nt,
|
|
257
257
|
"comment-text": "_comment-text_agbjl_44",
|
|
258
|
-
commentText:
|
|
258
|
+
commentText: xt,
|
|
259
259
|
"comment-author-avatar": "_comment-author-avatar_agbjl_67",
|
|
260
|
-
commentAuthorAvatar:
|
|
260
|
+
commentAuthorAvatar: Mt,
|
|
261
261
|
"comment-author-name": "_comment-author-name_agbjl_86",
|
|
262
|
-
commentAuthorName:
|
|
262
|
+
commentAuthorName: It
|
|
263
263
|
};
|
|
264
|
-
function
|
|
264
|
+
function Tt({ comment: e }) {
|
|
265
265
|
return /* @__PURE__ */ s("div", { className: B.comment, onClick: e.onClick, children: [
|
|
266
266
|
/* @__PURE__ */ t(
|
|
267
267
|
"img",
|
|
@@ -275,9 +275,9 @@ function Nt({ comment: e }) {
|
|
|
275
275
|
/* @__PURE__ */ t("span", { className: B.commentAuthorName, children: e.user.name })
|
|
276
276
|
] });
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
function
|
|
280
|
-
const n = g(), o =
|
|
278
|
+
const St = 5;
|
|
279
|
+
function Ht({ comments: e }) {
|
|
280
|
+
const n = g(), o = wt(e, St), i = !!v("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Tt, { comment: c }, c.id));
|
|
281
281
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
282
282
|
"div",
|
|
283
283
|
{
|
|
@@ -289,57 +289,57 @@ function Mt({ comments: e }) {
|
|
|
289
289
|
}
|
|
290
290
|
) : null;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
root:
|
|
292
|
+
const Vt = "_root_fph0z_1", Bt = "_left-controls_fph0z_28", Rt = "_right-controls_fph0z_34", At = "_indicators_fph0z_40", Et = "_normal-timeline_fph0z_49", Ot = "_compact-timeline_fph0z_55", H = {
|
|
293
|
+
root: Vt,
|
|
294
294
|
"left-controls": "_left-controls_fph0z_28",
|
|
295
|
-
leftControls:
|
|
295
|
+
leftControls: Bt,
|
|
296
296
|
"right-controls": "_right-controls_fph0z_34",
|
|
297
|
-
rightControls:
|
|
298
|
-
indicators:
|
|
297
|
+
rightControls: Rt,
|
|
298
|
+
indicators: At,
|
|
299
299
|
"normal-timeline": "_normal-timeline_fph0z_49",
|
|
300
|
-
normalTimeline:
|
|
300
|
+
normalTimeline: Et,
|
|
301
301
|
"compact-timeline": "_compact-timeline_fph0z_55",
|
|
302
|
-
compactTimeline:
|
|
302
|
+
compactTimeline: Ot
|
|
303
303
|
};
|
|
304
|
-
function
|
|
305
|
-
const o =
|
|
304
|
+
function Ft({ darkMode: e, playerRef: n }) {
|
|
305
|
+
const o = q();
|
|
306
306
|
return R(() => {
|
|
307
307
|
o && (o.remoteControl.pauseControls(), n && (n.current = o));
|
|
308
308
|
}, [o, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: H.root, children: [
|
|
309
|
-
/* @__PURE__ */ t(
|
|
309
|
+
/* @__PURE__ */ t(de, { className: H.normalTimeline }),
|
|
310
310
|
/* @__PURE__ */ s("div", { className: H.leftControls, children: [
|
|
311
|
-
/* @__PURE__ */ t(
|
|
312
|
-
/* @__PURE__ */ t(
|
|
311
|
+
/* @__PURE__ */ t(ao, {}),
|
|
312
|
+
/* @__PURE__ */ t(ri, {})
|
|
313
313
|
] }),
|
|
314
|
-
/* @__PURE__ */ t("div", { className: H.indicators, children: /* @__PURE__ */ t(
|
|
315
|
-
/* @__PURE__ */ t(
|
|
314
|
+
/* @__PURE__ */ t("div", { className: H.indicators, children: /* @__PURE__ */ t(Co, {}) }),
|
|
315
|
+
/* @__PURE__ */ t(de, { className: H.compactTimeline }),
|
|
316
316
|
/* @__PURE__ */ s("div", { className: H.rightControls, children: [
|
|
317
|
-
/* @__PURE__ */ t(
|
|
318
|
-
/* @__PURE__ */ t(
|
|
319
|
-
/* @__PURE__ */ t(
|
|
317
|
+
/* @__PURE__ */ t(ft, {}),
|
|
318
|
+
/* @__PURE__ */ t(Sn, {}),
|
|
319
|
+
/* @__PURE__ */ t(qn, {})
|
|
320
320
|
] })
|
|
321
321
|
] });
|
|
322
322
|
}
|
|
323
|
-
const L =
|
|
323
|
+
const L = ee(null), Zt = (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" }) }), $t = "_menu-hint_k49ve_1", zt = "_menu-button_k49ve_5", Kt = "_menu-label_k49ve_37", Dt = "_menu-icon_k49ve_42", U = {
|
|
324
324
|
"menu-hint": "_menu-hint_k49ve_1",
|
|
325
|
-
menuHint:
|
|
325
|
+
menuHint: $t,
|
|
326
326
|
"menu-button": "_menu-button_k49ve_5",
|
|
327
|
-
menuButton:
|
|
327
|
+
menuButton: zt,
|
|
328
328
|
"menu-label": "_menu-label_k49ve_37",
|
|
329
|
-
menuLabel:
|
|
329
|
+
menuLabel: Kt,
|
|
330
330
|
"menu-icon": "_menu-icon_k49ve_42",
|
|
331
|
-
menuIcon:
|
|
331
|
+
menuIcon: Dt
|
|
332
332
|
};
|
|
333
333
|
function $({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
334
|
-
return /* @__PURE__ */ s("button", { type: "button", className:
|
|
335
|
-
i && /* @__PURE__ */ t(i, { className:
|
|
336
|
-
/* @__PURE__ */ t("span", { className:
|
|
337
|
-
/* @__PURE__ */ t("span", { className:
|
|
338
|
-
/* @__PURE__ */ t(
|
|
334
|
+
return /* @__PURE__ */ s("button", { type: "button", className: U.menuButton, onClick: o, children: [
|
|
335
|
+
i && /* @__PURE__ */ t(i, { className: U.menuIcon }),
|
|
336
|
+
/* @__PURE__ */ t("span", { className: U.menuLabel, children: e }),
|
|
337
|
+
/* @__PURE__ */ t("span", { className: U.menuHint, children: n }),
|
|
338
|
+
/* @__PURE__ */ t(Zt, {})
|
|
339
339
|
] });
|
|
340
340
|
}
|
|
341
|
-
const
|
|
342
|
-
function
|
|
341
|
+
const jt = (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" }) });
|
|
342
|
+
function Ut() {
|
|
343
343
|
const e = w(L), n = v("playbackRate"), { t: o } = C(), i = f(() => {
|
|
344
344
|
e && e.setPage("speed");
|
|
345
345
|
}, [e]);
|
|
@@ -349,11 +349,11 @@ function zt() {
|
|
|
349
349
|
label: o("PLAYBACK_SPEED"),
|
|
350
350
|
hint: `${n}x`,
|
|
351
351
|
onClick: i,
|
|
352
|
-
Icon:
|
|
352
|
+
Icon: jt
|
|
353
353
|
}
|
|
354
354
|
) : null;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function qt() {
|
|
357
357
|
const e = w(L), n = v("hasCaptions"), o = v("textTrack"), { t: i } = C(), a = f(() => {
|
|
358
358
|
e && e.setPage("captions");
|
|
359
359
|
}, [e]);
|
|
@@ -363,11 +363,11 @@ function Kt() {
|
|
|
363
363
|
label: i("CAPTIONS"),
|
|
364
364
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
365
365
|
onClick: a,
|
|
366
|
-
Icon:
|
|
366
|
+
Icon: Ne
|
|
367
367
|
}
|
|
368
368
|
) : null;
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const Wt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
371
371
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
372
372
|
/* @__PURE__ */ s("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
373
373
|
/* @__PURE__ */ t("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" }),
|
|
@@ -375,7 +375,7 @@ const Dt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
|
|
|
375
375
|
/* @__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" })
|
|
376
376
|
] })
|
|
377
377
|
] });
|
|
378
|
-
function
|
|
378
|
+
function Gt() {
|
|
379
379
|
const e = w(L), n = v("autoQuality"), o = v("quality"), { t: i } = C(), a = f(() => {
|
|
380
380
|
e && e.setPage("quality");
|
|
381
381
|
}, [e]);
|
|
@@ -385,25 +385,25 @@ function jt() {
|
|
|
385
385
|
label: i("QUALITY"),
|
|
386
386
|
hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
387
387
|
onClick: a,
|
|
388
|
-
Icon:
|
|
388
|
+
Icon: Wt
|
|
389
389
|
}
|
|
390
390
|
) : null;
|
|
391
391
|
}
|
|
392
|
-
const
|
|
392
|
+
const Qt = (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" }) }), Yt = (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" }) }), Jt = "_switch-track_vptv3_1", Xt = "_switch-thumb_vptv3_11", en = "_switch-icon_vptv3_25", tn = "_switch-body_vptv3_31", nn = "_switch-label_vptv3_68", on = "_menu-icon_vptv3_72", M = {
|
|
393
393
|
"switch-track": "_switch-track_vptv3_1",
|
|
394
|
-
switchTrack:
|
|
394
|
+
switchTrack: Jt,
|
|
395
395
|
"switch-thumb": "_switch-thumb_vptv3_11",
|
|
396
|
-
switchThumb:
|
|
396
|
+
switchThumb: Xt,
|
|
397
397
|
"switch-icon": "_switch-icon_vptv3_25",
|
|
398
|
-
switchIcon:
|
|
398
|
+
switchIcon: en,
|
|
399
399
|
"switch-body": "_switch-body_vptv3_31",
|
|
400
|
-
switchBody:
|
|
400
|
+
switchBody: tn,
|
|
401
401
|
"switch-label": "_switch-label_vptv3_68",
|
|
402
|
-
switchLabel:
|
|
402
|
+
switchLabel: nn,
|
|
403
403
|
"menu-icon": "_menu-icon_vptv3_72",
|
|
404
|
-
menuIcon:
|
|
404
|
+
menuIcon: on
|
|
405
405
|
};
|
|
406
|
-
function
|
|
406
|
+
function te({
|
|
407
407
|
label: e,
|
|
408
408
|
checked: n = !1,
|
|
409
409
|
onClick: o,
|
|
@@ -427,18 +427,18 @@ function ee({
|
|
|
427
427
|
children: [
|
|
428
428
|
i && /* @__PURE__ */ t(i, { className: M.menuIcon }),
|
|
429
429
|
/* @__PURE__ */ t("span", { className: M.switchLabel, children: e }),
|
|
430
|
-
/* @__PURE__ */ t("div", { className: M.switchTrack, children: /* @__PURE__ */ t("div", { className: M.switchThumb, children: n ? /* @__PURE__ */ t(
|
|
430
|
+
/* @__PURE__ */ t("div", { className: M.switchTrack, children: /* @__PURE__ */ t("div", { className: M.switchThumb, children: n ? /* @__PURE__ */ t(Qt, { className: M.switchIcon }) : /* @__PURE__ */ t(Yt, { className: M.switchIcon }) }) })
|
|
431
431
|
]
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
const
|
|
436
|
-
function
|
|
435
|
+
const an = (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" }) });
|
|
436
|
+
function sn() {
|
|
437
437
|
const { t: e } = C(), n = I(), o = g();
|
|
438
438
|
return n.hasComments ? /* @__PURE__ */ t(
|
|
439
|
-
|
|
439
|
+
te,
|
|
440
440
|
{
|
|
441
|
-
Icon:
|
|
441
|
+
Icon: an,
|
|
442
442
|
label: e("COMMENTS"),
|
|
443
443
|
onClick: o.toggleComments,
|
|
444
444
|
checked: o.state.commentsEnabled
|
|
@@ -455,37 +455,37 @@ function T(e) {
|
|
|
455
455
|
};
|
|
456
456
|
}, []);
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const cn = "_main-menu_7h96l_1", ln = {
|
|
459
459
|
"main-menu": "_main-menu_7h96l_1",
|
|
460
|
-
mainMenu:
|
|
460
|
+
mainMenu: cn
|
|
461
461
|
};
|
|
462
|
-
function
|
|
462
|
+
function rn() {
|
|
463
463
|
const e = w(L);
|
|
464
|
-
return T(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className:
|
|
465
|
-
/* @__PURE__ */ t(
|
|
466
|
-
/* @__PURE__ */ t(
|
|
467
|
-
/* @__PURE__ */ t(
|
|
468
|
-
/* @__PURE__ */ t(
|
|
464
|
+
return T(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: ln.mainMenu, children: [
|
|
465
|
+
/* @__PURE__ */ t(Ut, {}),
|
|
466
|
+
/* @__PURE__ */ t(qt, {}),
|
|
467
|
+
/* @__PURE__ */ t(sn, {}),
|
|
468
|
+
/* @__PURE__ */ t(Gt, {})
|
|
469
469
|
] });
|
|
470
470
|
}
|
|
471
|
-
const
|
|
471
|
+
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" }) }), z = (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" }) }), un = "_menu-container_1bjr3_1", dn = "_menu-options_1bjr3_6", mn = "_menu-heading_1bjr3_11", hn = "_check-icon_1bjr3_27", pn = "_menu-item-label_1bjr3_33", _n = "_menu-item_1bjr3_33", fn = "_menu-back-button_1bjr3_66", r = {
|
|
472
472
|
"menu-container": "_menu-container_1bjr3_1",
|
|
473
|
-
menuContainer:
|
|
473
|
+
menuContainer: un,
|
|
474
474
|
"menu-options": "_menu-options_1bjr3_6",
|
|
475
|
-
menuOptions:
|
|
475
|
+
menuOptions: dn,
|
|
476
476
|
"menu-heading": "_menu-heading_1bjr3_11",
|
|
477
|
-
menuHeading:
|
|
477
|
+
menuHeading: mn,
|
|
478
478
|
"check-icon": "_check-icon_1bjr3_27",
|
|
479
|
-
checkIcon:
|
|
479
|
+
checkIcon: hn,
|
|
480
480
|
"menu-item-label": "_menu-item-label_1bjr3_33",
|
|
481
|
-
menuItemLabel:
|
|
481
|
+
menuItemLabel: pn,
|
|
482
482
|
"menu-item": "_menu-item_1bjr3_33",
|
|
483
|
-
menuItem:
|
|
483
|
+
menuItem: _n,
|
|
484
484
|
"menu-back-button": "_menu-back-button_1bjr3_66",
|
|
485
|
-
menuBackButton:
|
|
485
|
+
menuBackButton: fn
|
|
486
486
|
};
|
|
487
|
-
function
|
|
488
|
-
const e = w(L), n =
|
|
487
|
+
function vn() {
|
|
488
|
+
const e = w(L), n = Ke({
|
|
489
489
|
rates: V,
|
|
490
490
|
normalLabel: "1x"
|
|
491
491
|
}), { t: o } = C();
|
|
@@ -514,7 +514,7 @@ function hn() {
|
|
|
514
514
|
},
|
|
515
515
|
className: r.menuItem,
|
|
516
516
|
children: [
|
|
517
|
-
/* @__PURE__ */ t(
|
|
517
|
+
/* @__PURE__ */ t(G, { className: r.checkIcon }),
|
|
518
518
|
/* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
|
|
519
519
|
]
|
|
520
520
|
},
|
|
@@ -522,7 +522,7 @@ function hn() {
|
|
|
522
522
|
)) })
|
|
523
523
|
] }) : null;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function bn() {
|
|
526
526
|
const e = w(L), n = v("textTrack"), { t: o } = C(), i = f(() => {
|
|
527
527
|
e && e.setPage("captionLanguage");
|
|
528
528
|
}, [e]);
|
|
@@ -535,7 +535,7 @@ function pn() {
|
|
|
535
535
|
}
|
|
536
536
|
) : null;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Cn() {
|
|
539
539
|
const { t: e } = C(), n = g(), o = w(L), i = f(() => {
|
|
540
540
|
o && o.setPage("captionFontSize");
|
|
541
541
|
}, [o]);
|
|
@@ -548,10 +548,10 @@ function _n() {
|
|
|
548
548
|
}
|
|
549
549
|
) : null;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function gn() {
|
|
552
552
|
const { t: e } = C(), n = g();
|
|
553
553
|
return /* @__PURE__ */ t(
|
|
554
|
-
|
|
554
|
+
te,
|
|
555
555
|
{
|
|
556
556
|
label: e("ON_TOP"),
|
|
557
557
|
onClick: n.toggleCaptionPositionOnTop,
|
|
@@ -559,10 +559,10 @@ function fn() {
|
|
|
559
559
|
}
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function kn() {
|
|
563
563
|
const { t: e } = C(), n = g();
|
|
564
564
|
return /* @__PURE__ */ t(
|
|
565
|
-
|
|
565
|
+
te,
|
|
566
566
|
{
|
|
567
567
|
label: e("INVERT_COLORS"),
|
|
568
568
|
onClick: n.toggleCaptionsInvertColors,
|
|
@@ -570,7 +570,7 @@ function vn() {
|
|
|
570
570
|
}
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function yn() {
|
|
574
574
|
const e = w(L), { t: n } = C();
|
|
575
575
|
return T(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
576
576
|
/* @__PURE__ */ s(
|
|
@@ -586,14 +586,14 @@ function bn() {
|
|
|
586
586
|
}
|
|
587
587
|
),
|
|
588
588
|
/* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
|
|
589
|
-
/* @__PURE__ */ t(
|
|
590
|
-
/* @__PURE__ */ t(
|
|
591
|
-
/* @__PURE__ */ t(
|
|
592
|
-
/* @__PURE__ */ t(
|
|
589
|
+
/* @__PURE__ */ t(bn, {}),
|
|
590
|
+
/* @__PURE__ */ t(Cn, {}),
|
|
591
|
+
/* @__PURE__ */ t(gn, {}),
|
|
592
|
+
/* @__PURE__ */ t(kn, {})
|
|
593
593
|
] }) : null;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
const e = w(L), n =
|
|
595
|
+
function wn() {
|
|
596
|
+
const e = w(L), n = De(), { t: o } = C();
|
|
597
597
|
return T(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
598
598
|
/* @__PURE__ */ s(
|
|
599
599
|
"button",
|
|
@@ -619,7 +619,7 @@ function Cn() {
|
|
|
619
619
|
},
|
|
620
620
|
className: r.menuItem,
|
|
621
621
|
children: [
|
|
622
|
-
/* @__PURE__ */ t(
|
|
622
|
+
/* @__PURE__ */ t(G, { className: r.checkIcon }),
|
|
623
623
|
/* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
|
|
624
624
|
]
|
|
625
625
|
},
|
|
@@ -627,7 +627,7 @@ function Cn() {
|
|
|
627
627
|
)) })
|
|
628
628
|
] }) : null;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ln() {
|
|
631
631
|
const e = g(), n = w(L), { t: o } = C();
|
|
632
632
|
return T(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
633
633
|
/* @__PURE__ */ s(
|
|
@@ -643,7 +643,7 @@ function gn() {
|
|
|
643
643
|
}
|
|
644
644
|
),
|
|
645
645
|
/* @__PURE__ */ t("strong", { className: r.menuHeading, children: o("CAPTIONS") }),
|
|
646
|
-
/* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children:
|
|
646
|
+
/* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: gt.map((i) => /* @__PURE__ */ s(
|
|
647
647
|
"button",
|
|
648
648
|
{
|
|
649
649
|
type: "button",
|
|
@@ -654,7 +654,7 @@ function gn() {
|
|
|
654
654
|
},
|
|
655
655
|
className: r.menuItem,
|
|
656
656
|
children: [
|
|
657
|
-
/* @__PURE__ */ t(
|
|
657
|
+
/* @__PURE__ */ t(G, { className: r.checkIcon }),
|
|
658
658
|
/* @__PURE__ */ s("span", { className: r.menuItemLabel, children: [
|
|
659
659
|
i * 100,
|
|
660
660
|
"%"
|
|
@@ -665,8 +665,8 @@ function gn() {
|
|
|
665
665
|
)) })
|
|
666
666
|
] }) : null;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
const e = w(L), n =
|
|
668
|
+
function Pn() {
|
|
669
|
+
const e = w(L), n = je({ sort: "descending" }), o = v("autoQuality"), { t: i } = C();
|
|
670
670
|
return T(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
671
671
|
/* @__PURE__ */ s(
|
|
672
672
|
"button",
|
|
@@ -692,7 +692,7 @@ function kn() {
|
|
|
692
692
|
},
|
|
693
693
|
className: r.menuItem,
|
|
694
694
|
children: [
|
|
695
|
-
/* @__PURE__ */ t(
|
|
695
|
+
/* @__PURE__ */ t(G, { className: r.checkIcon }),
|
|
696
696
|
/* @__PURE__ */ t("span", { className: r.menuItemLabel, children: c })
|
|
697
697
|
]
|
|
698
698
|
},
|
|
@@ -700,15 +700,15 @@ function kn() {
|
|
|
700
700
|
)) })
|
|
701
701
|
] }) : null;
|
|
702
702
|
}
|
|
703
|
-
const
|
|
704
|
-
main:
|
|
705
|
-
speed:
|
|
706
|
-
captions:
|
|
707
|
-
captionLanguage:
|
|
708
|
-
captionFontSize:
|
|
709
|
-
quality:
|
|
703
|
+
const Nn = {
|
|
704
|
+
main: rn,
|
|
705
|
+
speed: vn,
|
|
706
|
+
captions: yn,
|
|
707
|
+
captionLanguage: wn,
|
|
708
|
+
captionFontSize: Ln,
|
|
709
|
+
quality: Pn
|
|
710
710
|
};
|
|
711
|
-
function
|
|
711
|
+
function xn() {
|
|
712
712
|
const [e, n] = P("main"), [o, i] = P(!1), a = f(() => {
|
|
713
713
|
i((x) => !x);
|
|
714
714
|
}, []), c = f((x) => {
|
|
@@ -717,20 +717,20 @@ function wn() {
|
|
|
717
717
|
n("captions");
|
|
718
718
|
}, []), u = f(() => {
|
|
719
719
|
n("main");
|
|
720
|
-
}, []), h = Z(() =>
|
|
720
|
+
}, []), h = Z(() => Nn[e], [e]), p = pe(null), { refs: b, floatingStyles: d, context: _ } = ve({
|
|
721
721
|
open: o,
|
|
722
722
|
onOpenChange: (x) => {
|
|
723
723
|
i(x), u();
|
|
724
724
|
},
|
|
725
725
|
placement: "top-end",
|
|
726
|
-
whileElementsMounted:
|
|
726
|
+
whileElementsMounted: be,
|
|
727
727
|
middleware: [
|
|
728
|
-
|
|
729
|
-
|
|
728
|
+
Ce(),
|
|
729
|
+
ge({
|
|
730
730
|
element: p
|
|
731
731
|
})
|
|
732
732
|
]
|
|
733
|
-
}), k =
|
|
733
|
+
}), k = ke(_, { escapeKey: !1 }), { getReferenceProps: A, getFloatingProps: S } = ye([k]);
|
|
734
734
|
return {
|
|
735
735
|
Page: h,
|
|
736
736
|
open: o,
|
|
@@ -746,12 +746,12 @@ function wn() {
|
|
|
746
746
|
getFloatingProps: S
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
const
|
|
749
|
+
const Mn = (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" }) }), In = "_settings-menu_hxlsv_1", Tn = "_arrow_hxlsv_15", re = {
|
|
750
750
|
"settings-menu": "_settings-menu_hxlsv_1",
|
|
751
|
-
settingsMenu:
|
|
752
|
-
arrow:
|
|
751
|
+
settingsMenu: In,
|
|
752
|
+
arrow: Tn
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function Sn() {
|
|
755
755
|
const {
|
|
756
756
|
Page: e,
|
|
757
757
|
arrowRef: n,
|
|
@@ -765,8 +765,8 @@ function xn() {
|
|
|
765
765
|
refs: p,
|
|
766
766
|
setPage: b,
|
|
767
767
|
toggle: d
|
|
768
|
-
} =
|
|
769
|
-
return /* @__PURE__ */ s(
|
|
768
|
+
} = xn(), _ = g(), { t: k } = C();
|
|
769
|
+
return /* @__PURE__ */ s(X, { children: [
|
|
770
770
|
/* @__PURE__ */ t(
|
|
771
771
|
"button",
|
|
772
772
|
{
|
|
@@ -778,13 +778,13 @@ function xn() {
|
|
|
778
778
|
"aria-expanded": h,
|
|
779
779
|
tabIndex: _ != null && _.state.interactionsDisabled ? -1 : 0,
|
|
780
780
|
...u(),
|
|
781
|
-
children: /* @__PURE__ */ t(
|
|
781
|
+
children: /* @__PURE__ */ t(Mn, { className: "controls-button-icon icon-rotate" })
|
|
782
782
|
}
|
|
783
783
|
),
|
|
784
|
-
h && /* @__PURE__ */ t(
|
|
784
|
+
h && /* @__PURE__ */ t(et, { context: a, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
|
-
className:
|
|
787
|
+
className: re.settingsMenu,
|
|
788
788
|
ref: p.setFloating,
|
|
789
789
|
style: c,
|
|
790
790
|
...l(),
|
|
@@ -797,11 +797,11 @@ function xn() {
|
|
|
797
797
|
}
|
|
798
798
|
),
|
|
799
799
|
/* @__PURE__ */ t(
|
|
800
|
-
|
|
800
|
+
we,
|
|
801
801
|
{
|
|
802
802
|
ref: n,
|
|
803
803
|
context: a,
|
|
804
|
-
className:
|
|
804
|
+
className: re.arrow
|
|
805
805
|
}
|
|
806
806
|
)
|
|
807
807
|
]
|
|
@@ -809,7 +809,7 @@ function xn() {
|
|
|
809
809
|
) })
|
|
810
810
|
] });
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Ie(e, n = 1e3) {
|
|
813
813
|
return function() {
|
|
814
814
|
const i = v("lastKeyboardAction"), [a, c] = P(!1), l = f(() => c(!1), []);
|
|
815
815
|
return R(() => {
|
|
@@ -819,43 +819,43 @@ function Ne(e, n = 1e3) {
|
|
|
819
819
|
}, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
|
-
const
|
|
822
|
+
const ne = (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" }) }), 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 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Te = (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" }) }), Se = (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" }) }), He = (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" }) }), Hn = (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" }) }), 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: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), Bn = "_feedback-overlay_v4lbu_1", Rn = "_feedback-message_v4lbu_14", An = "_feedback-icon_v4lbu_30", En = "_feedback-icon-animation_v4lbu_1", y = {
|
|
823
823
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
824
|
-
feedbackOverlay:
|
|
824
|
+
feedbackOverlay: Bn,
|
|
825
825
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
826
|
-
feedbackMessage:
|
|
826
|
+
feedbackMessage: Rn,
|
|
827
827
|
"feedback-icon": "_feedback-icon_v4lbu_30",
|
|
828
|
-
feedbackIcon:
|
|
828
|
+
feedbackIcon: An,
|
|
829
829
|
"feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
|
|
830
|
-
feedbackIconAnimation:
|
|
830
|
+
feedbackIconAnimation: En
|
|
831
831
|
};
|
|
832
|
-
function
|
|
832
|
+
function On() {
|
|
833
833
|
var o;
|
|
834
|
-
const e =
|
|
834
|
+
const e = _e();
|
|
835
835
|
switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
|
|
836
836
|
case "togglePaused":
|
|
837
|
-
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(
|
|
837
|
+
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(ne, {}) : /* @__PURE__ */ t(oe, {}) });
|
|
838
838
|
case "toggleCaptions":
|
|
839
839
|
case "nextCaptionLanguage":
|
|
840
840
|
case "previousCaptionLanguage":
|
|
841
|
-
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: /* @__PURE__ */ t(
|
|
841
|
+
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: /* @__PURE__ */ t(xe, {}) }) : null;
|
|
842
842
|
case "volumeUp":
|
|
843
843
|
case "volumeDown":
|
|
844
844
|
case "toggleMuted":
|
|
845
|
-
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(
|
|
845
|
+
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Te, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(He, {}) : /* @__PURE__ */ t(Se, {}) });
|
|
846
846
|
case "seekForward":
|
|
847
847
|
case "seekForward10":
|
|
848
|
-
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: /* @__PURE__ */ t(
|
|
848
|
+
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: /* @__PURE__ */ t(Hn, { className: "right" }) });
|
|
849
849
|
case "seekBackward":
|
|
850
850
|
case "seekBackward10":
|
|
851
|
-
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: /* @__PURE__ */ t(
|
|
851
|
+
return /* @__PURE__ */ t("i", { className: y.feedbackIcon, children: /* @__PURE__ */ t(Vn, { className: "left" }) });
|
|
852
852
|
default:
|
|
853
853
|
return null;
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Fn() {
|
|
857
857
|
var i;
|
|
858
|
-
const { t: e } = C(), n =
|
|
858
|
+
const { t: e } = C(), n = _e();
|
|
859
859
|
switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
|
|
860
860
|
case "toggleCaptions":
|
|
861
861
|
case "nextCaptionLanguage":
|
|
@@ -881,48 +881,48 @@ function Rn() {
|
|
|
881
881
|
return null;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
const
|
|
885
|
-
function
|
|
884
|
+
const Zn = Ie(On, 500), $n = Ie(Fn, 1e3);
|
|
885
|
+
function zn() {
|
|
886
886
|
return /* @__PURE__ */ s("div", { className: y.feedbackOverlay, children: [
|
|
887
|
-
/* @__PURE__ */ t(
|
|
888
|
-
/* @__PURE__ */ t(
|
|
887
|
+
/* @__PURE__ */ t(Zn, {}),
|
|
888
|
+
/* @__PURE__ */ t($n, {})
|
|
889
889
|
] });
|
|
890
890
|
}
|
|
891
|
-
const
|
|
891
|
+
const Kn = (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" }) }), Dn = (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" }) }), jn = "_full-screen-button_1xm32_2", Un = {
|
|
892
892
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
893
|
-
fullScreenButton:
|
|
893
|
+
fullScreenButton: jn
|
|
894
894
|
};
|
|
895
|
-
function
|
|
895
|
+
function qn() {
|
|
896
896
|
const e = v("fullscreen"), n = g();
|
|
897
897
|
return I().hideFullScreen ? null : /* @__PURE__ */ t(
|
|
898
|
-
|
|
898
|
+
fe,
|
|
899
899
|
{
|
|
900
900
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
901
|
-
className: `controls-button ${
|
|
902
|
-
children: e ? /* @__PURE__ */ t(
|
|
901
|
+
className: `controls-button ${Un.fullScreenButton}`,
|
|
902
|
+
children: e ? /* @__PURE__ */ t(Dn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Kn, { className: "controls-button-icon" })
|
|
903
903
|
}
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
|
-
const
|
|
906
|
+
const Wn = "_gestures-container_1fn3b_1", Gn = "_gesture_1fn3b_1", ue = {
|
|
907
907
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
908
|
-
gesturesContainer:
|
|
909
|
-
gesture:
|
|
908
|
+
gesturesContainer: Wn,
|
|
909
|
+
gesture: Gn
|
|
910
910
|
};
|
|
911
|
-
function
|
|
912
|
-
const e =
|
|
911
|
+
function Qn() {
|
|
912
|
+
const e = W(), n = () => {
|
|
913
913
|
e.togglePaused();
|
|
914
914
|
};
|
|
915
|
-
return /* @__PURE__ */ t("div", { className:
|
|
915
|
+
return /* @__PURE__ */ t("div", { className: ue.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: ue.gesture, onClick: n }) });
|
|
916
916
|
}
|
|
917
|
-
const
|
|
917
|
+
const Yn = (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" }) }), Ve = (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" }) }), Jn = "_keyboard-shortcuts-overlay_y5kv6_1", Xn = "_keyboard-shortcuts-button_y5kv6_67", eo = "_close-button_y5kv6_93", J = {
|
|
918
918
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
|
|
919
|
-
keyboardShortcutsOverlay:
|
|
919
|
+
keyboardShortcutsOverlay: Jn,
|
|
920
920
|
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
|
|
921
|
-
keyboardShortcutsButton:
|
|
921
|
+
keyboardShortcutsButton: Xn,
|
|
922
922
|
"close-button": "_close-button_y5kv6_93",
|
|
923
|
-
closeButton:
|
|
923
|
+
closeButton: eo
|
|
924
924
|
};
|
|
925
|
-
function
|
|
925
|
+
function to({ onClose: e }) {
|
|
926
926
|
const { t: n } = C();
|
|
927
927
|
T(e);
|
|
928
928
|
const o = (i) => {
|
|
@@ -931,7 +931,7 @@ function Yn({ onClose: e }) {
|
|
|
931
931
|
return /* @__PURE__ */ s(
|
|
932
932
|
"div",
|
|
933
933
|
{
|
|
934
|
-
className:
|
|
934
|
+
className: J.keyboardShortcutsOverlay,
|
|
935
935
|
tabIndex: 0,
|
|
936
936
|
ref: o,
|
|
937
937
|
children: [
|
|
@@ -941,10 +941,10 @@ function Yn({ onClose: e }) {
|
|
|
941
941
|
"button",
|
|
942
942
|
{
|
|
943
943
|
type: "button",
|
|
944
|
-
className:
|
|
944
|
+
className: J.closeButton,
|
|
945
945
|
onClick: e,
|
|
946
946
|
"aria-label": n("CLOSE"),
|
|
947
|
-
children: /* @__PURE__ */ t(
|
|
947
|
+
children: /* @__PURE__ */ t(Ve, {})
|
|
948
948
|
}
|
|
949
949
|
)
|
|
950
950
|
] }),
|
|
@@ -1035,8 +1035,8 @@ function Yn({ onClose: e }) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
);
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
const [e, n] = P(!1), [o, i] = P(!1), [a, c] = P(!1), l = g(), u = v("playing"), h =
|
|
1038
|
+
function no() {
|
|
1039
|
+
const [e, n] = P(!1), [o, i] = P(!1), [a, c] = P(!1), l = g(), u = v("playing"), h = W(), { t: p } = C(), b = f(() => {
|
|
1040
1040
|
n(!0), l.disableInteractions(), u && (c(!0), h.pause());
|
|
1041
1041
|
}, [u, h, l]), d = f(() => {
|
|
1042
1042
|
n(!1), i(!0), l.enableInteractions(), a && (c(!1), h.play());
|
|
@@ -1044,129 +1044,129 @@ function Jn() {
|
|
|
1044
1044
|
(k) => o && (k == null ? void 0 : k.focus()),
|
|
1045
1045
|
[o]
|
|
1046
1046
|
);
|
|
1047
|
-
return e ? /* @__PURE__ */ t(
|
|
1047
|
+
return e ? /* @__PURE__ */ t(to, { onClose: d }) : /* @__PURE__ */ t(
|
|
1048
1048
|
"button",
|
|
1049
1049
|
{
|
|
1050
1050
|
ref: _,
|
|
1051
1051
|
"aria-label": p("KEYBOARD_SHORTCUTS"),
|
|
1052
1052
|
type: "button",
|
|
1053
|
-
className:
|
|
1053
|
+
className: J.keyboardShortcutsButton,
|
|
1054
1054
|
onClick: b,
|
|
1055
1055
|
tabIndex: l.state.interactionsDisabled ? -1 : 0,
|
|
1056
|
-
children: /* @__PURE__ */ t(
|
|
1056
|
+
children: /* @__PURE__ */ t(Yn, {})
|
|
1057
1057
|
}
|
|
1058
1058
|
);
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const oo = "_play-pause-button_kyuc5_1", io = {
|
|
1061
1061
|
"play-pause-button": "_play-pause-button_kyuc5_1",
|
|
1062
|
-
playPauseButton:
|
|
1062
|
+
playPauseButton: oo
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1065
|
-
const e =
|
|
1064
|
+
function ao() {
|
|
1065
|
+
const e = q(), n = g(), o = v("paused");
|
|
1066
1066
|
return e ? /* @__PURE__ */ t(
|
|
1067
|
-
|
|
1067
|
+
Ue,
|
|
1068
1068
|
{
|
|
1069
1069
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1070
|
-
className: `${
|
|
1070
|
+
className: `${io.playPauseButton} controls-button`,
|
|
1071
1071
|
onKeyDown: (i) => {
|
|
1072
1072
|
i.key === " " && (e == null || e.$state.lastKeyboardAction.set({
|
|
1073
1073
|
action: "togglePaused",
|
|
1074
1074
|
event: i.nativeEvent
|
|
1075
1075
|
}));
|
|
1076
1076
|
},
|
|
1077
|
-
children: o ? /* @__PURE__ */ t(
|
|
1077
|
+
children: o ? /* @__PURE__ */ t(oe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(ne, { className: "controls-button-icon" })
|
|
1078
1078
|
}
|
|
1079
1079
|
) : null;
|
|
1080
1080
|
}
|
|
1081
|
-
const
|
|
1082
|
-
poster:
|
|
1081
|
+
const so = "_poster_195hi_1", co = {
|
|
1082
|
+
poster: so
|
|
1083
1083
|
};
|
|
1084
|
-
function
|
|
1084
|
+
function lo({ src: e }) {
|
|
1085
1085
|
const n = v("source");
|
|
1086
|
-
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(
|
|
1086
|
+
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(qe, { src: e, className: co.poster });
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1088
|
+
const ro = "_small-layout-overlay_1vli4_1", uo = "_small-layout-button_1vli4_14", mo = "_small-layout-icon-play_1vli4_24", ho = "_small-layout-icon-pause_1vli4_30", po = "_full-screen-close-icon_1vli4_36", _o = "_fade-out_1vli4_1", O = {
|
|
1089
1089
|
"small-layout-overlay": "_small-layout-overlay_1vli4_1",
|
|
1090
|
-
smallLayoutOverlay:
|
|
1090
|
+
smallLayoutOverlay: ro,
|
|
1091
1091
|
"small-layout-button": "_small-layout-button_1vli4_14",
|
|
1092
|
-
smallLayoutButton:
|
|
1092
|
+
smallLayoutButton: uo,
|
|
1093
1093
|
"small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
|
|
1094
|
-
smallLayoutIconPlay:
|
|
1094
|
+
smallLayoutIconPlay: mo,
|
|
1095
1095
|
"small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
|
|
1096
|
-
smallLayoutIconPause:
|
|
1096
|
+
smallLayoutIconPause: ho,
|
|
1097
1097
|
"full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
|
|
1098
|
-
fullScreenCloseIcon:
|
|
1098
|
+
fullScreenCloseIcon: po,
|
|
1099
1099
|
"fade-out": "_fade-out_1vli4_1",
|
|
1100
|
-
fadeOut:
|
|
1100
|
+
fadeOut: _o
|
|
1101
1101
|
};
|
|
1102
|
-
function
|
|
1102
|
+
function fo() {
|
|
1103
1103
|
return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
|
|
1104
|
-
/* @__PURE__ */ t(
|
|
1104
|
+
/* @__PURE__ */ t(fe, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Ve, {}) }),
|
|
1105
1105
|
/* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
|
|
1106
|
-
/* @__PURE__ */ t(
|
|
1107
|
-
/* @__PURE__ */ t(
|
|
1106
|
+
/* @__PURE__ */ t(oe, { className: O.smallLayoutIconPlay }),
|
|
1107
|
+
/* @__PURE__ */ t(ne, { className: O.smallLayoutIconPause })
|
|
1108
1108
|
] })
|
|
1109
1109
|
] });
|
|
1110
1110
|
}
|
|
1111
|
-
const
|
|
1111
|
+
const vo = "_time-indicator_1rlpb_1", bo = {
|
|
1112
1112
|
"time-indicator": "_time-indicator_1rlpb_1",
|
|
1113
|
-
timeIndicator:
|
|
1113
|
+
timeIndicator: vo
|
|
1114
1114
|
};
|
|
1115
|
-
function
|
|
1116
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1117
|
-
/* @__PURE__ */ t(
|
|
1115
|
+
function Co() {
|
|
1116
|
+
return /* @__PURE__ */ s("div", { className: bo.timeIndicator, children: [
|
|
1117
|
+
/* @__PURE__ */ t(ce, { type: "current" }),
|
|
1118
1118
|
"/",
|
|
1119
|
-
/* @__PURE__ */ t(
|
|
1119
|
+
/* @__PURE__ */ t(ce, { type: "duration" })
|
|
1120
1120
|
] });
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const go = "_comment-markers_19b45_1", ko = "_comment-marker_19b45_1", yo = "_timeline-wrapper_19b45_21", wo = "_track_19b45_35", Lo = "_thumb_19b45_48", Po = "_root_19b45_62", No = "_track-inner_19b45_92", xo = "_progress_19b45_98", Mo = "_track-fill_19b45_104", Io = "_pins_19b45_121", To = "_pin-button_19b45_134", So = "_annotation-pin_19b45_154", Ho = "_quiz-pin_19b45_159", Vo = "_annotation-pin-child_19b45_164", Bo = "_quiz-pin-child_19b45_168", Ro = "_interactive-pin-container_19b45_173", Ao = "_interactive-pin-wrapper_19b45_183", Eo = "_interactive-pin-icon_19b45_189", Oo = "_interactive-pin_19b45_173", Fo = "_bg_19b45_203", Zo = "_symbol_19b45_207", $o = "_interactive-pin-button_19b45_212", zo = "_interactive-pin-menu_19b45_232", Ko = "_interactive-pin-menu-item_19b45_246", Do = "_arrow_19b45_267", m = {
|
|
1123
1123
|
"comment-markers": "_comment-markers_19b45_1",
|
|
1124
|
-
commentMarkers:
|
|
1124
|
+
commentMarkers: go,
|
|
1125
1125
|
"comment-marker": "_comment-marker_19b45_1",
|
|
1126
|
-
commentMarker:
|
|
1126
|
+
commentMarker: ko,
|
|
1127
1127
|
"timeline-wrapper": "_timeline-wrapper_19b45_21",
|
|
1128
|
-
timelineWrapper:
|
|
1129
|
-
track:
|
|
1130
|
-
thumb:
|
|
1131
|
-
root:
|
|
1128
|
+
timelineWrapper: yo,
|
|
1129
|
+
track: wo,
|
|
1130
|
+
thumb: Lo,
|
|
1131
|
+
root: Po,
|
|
1132
1132
|
"track-inner": "_track-inner_19b45_92",
|
|
1133
|
-
trackInner:
|
|
1134
|
-
progress:
|
|
1133
|
+
trackInner: No,
|
|
1134
|
+
progress: xo,
|
|
1135
1135
|
"track-fill": "_track-fill_19b45_104",
|
|
1136
|
-
trackFill:
|
|
1137
|
-
pins:
|
|
1136
|
+
trackFill: Mo,
|
|
1137
|
+
pins: Io,
|
|
1138
1138
|
"pin-button": "_pin-button_19b45_134",
|
|
1139
|
-
pinButton:
|
|
1139
|
+
pinButton: To,
|
|
1140
1140
|
"annotation-pin": "_annotation-pin_19b45_154",
|
|
1141
|
-
annotationPin:
|
|
1141
|
+
annotationPin: So,
|
|
1142
1142
|
"quiz-pin": "_quiz-pin_19b45_159",
|
|
1143
|
-
quizPin:
|
|
1143
|
+
quizPin: Ho,
|
|
1144
1144
|
"annotation-pin-child": "_annotation-pin-child_19b45_164",
|
|
1145
|
-
annotationPinChild:
|
|
1145
|
+
annotationPinChild: Vo,
|
|
1146
1146
|
"quiz-pin-child": "_quiz-pin-child_19b45_168",
|
|
1147
|
-
quizPinChild:
|
|
1147
|
+
quizPinChild: Bo,
|
|
1148
1148
|
"interactive-pin-container": "_interactive-pin-container_19b45_173",
|
|
1149
|
-
interactivePinContainer:
|
|
1149
|
+
interactivePinContainer: Ro,
|
|
1150
1150
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_19b45_183",
|
|
1151
|
-
interactivePinWrapper:
|
|
1151
|
+
interactivePinWrapper: Ao,
|
|
1152
1152
|
"interactive-pin-icon": "_interactive-pin-icon_19b45_189",
|
|
1153
|
-
interactivePinIcon:
|
|
1153
|
+
interactivePinIcon: Eo,
|
|
1154
1154
|
"interactive-pin": "_interactive-pin_19b45_173",
|
|
1155
|
-
interactivePin:
|
|
1156
|
-
bg:
|
|
1157
|
-
symbol:
|
|
1155
|
+
interactivePin: Oo,
|
|
1156
|
+
bg: Fo,
|
|
1157
|
+
symbol: Zo,
|
|
1158
1158
|
"interactive-pin-button": "_interactive-pin-button_19b45_212",
|
|
1159
|
-
interactivePinButton:
|
|
1159
|
+
interactivePinButton: $o,
|
|
1160
1160
|
"interactive-pin-menu": "_interactive-pin-menu_19b45_232",
|
|
1161
|
-
interactivePinMenu:
|
|
1161
|
+
interactivePinMenu: zo,
|
|
1162
1162
|
"interactive-pin-menu-item": "_interactive-pin-menu-item_19b45_246",
|
|
1163
|
-
interactivePinMenuItem:
|
|
1164
|
-
arrow:
|
|
1165
|
-
},
|
|
1163
|
+
interactivePinMenuItem: Ko,
|
|
1164
|
+
arrow: Do
|
|
1165
|
+
}, jo = {
|
|
1166
1166
|
annotation: m.annotationPin,
|
|
1167
1167
|
quiz: m.quizPin
|
|
1168
1168
|
};
|
|
1169
|
-
function
|
|
1169
|
+
function Be({
|
|
1170
1170
|
type: e,
|
|
1171
1171
|
position: n,
|
|
1172
1172
|
children: o,
|
|
@@ -1184,7 +1184,7 @@ function Se({
|
|
|
1184
1184
|
children: /* @__PURE__ */ s(
|
|
1185
1185
|
"svg",
|
|
1186
1186
|
{
|
|
1187
|
-
className:
|
|
1187
|
+
className: jo[e],
|
|
1188
1188
|
width: "26",
|
|
1189
1189
|
height: "32",
|
|
1190
1190
|
viewBox: "0 0 26 32",
|
|
@@ -1198,8 +1198,8 @@ function Se({
|
|
|
1198
1198
|
}
|
|
1199
1199
|
);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return /* @__PURE__ */ t(
|
|
1201
|
+
function Uo(e) {
|
|
1202
|
+
return /* @__PURE__ */ t(Be, { type: "annotation", ...e, children: /* @__PURE__ */ t(
|
|
1203
1203
|
"path",
|
|
1204
1204
|
{
|
|
1205
1205
|
className: m.annotationPinChild,
|
|
@@ -1211,8 +1211,8 @@ function zo(e) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
) });
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return /* @__PURE__ */ t(
|
|
1214
|
+
function qo(e) {
|
|
1215
|
+
return /* @__PURE__ */ t(Be, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
|
|
1216
1216
|
"text",
|
|
1217
1217
|
{
|
|
1218
1218
|
className: m.quizPinChild,
|
|
@@ -1225,7 +1225,7 @@ function Ko(e) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
) });
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Wo(e, n) {
|
|
1229
1229
|
return e.map((o, i) => ({
|
|
1230
1230
|
id: o.id,
|
|
1231
1231
|
time: o.time,
|
|
@@ -1234,7 +1234,7 @@ function Do(e, n) {
|
|
|
1234
1234
|
onClick: () => n(o)
|
|
1235
1235
|
}));
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Go(e, n) {
|
|
1238
1238
|
const o = /* @__PURE__ */ new Map();
|
|
1239
1239
|
e.forEach((c) => {
|
|
1240
1240
|
var u;
|
|
@@ -1254,12 +1254,12 @@ function jo(e, n) {
|
|
|
1254
1254
|
}), a++;
|
|
1255
1255
|
}), i;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Qo(e, n, o, i) {
|
|
1258
1258
|
switch (e.type) {
|
|
1259
1259
|
case "annotation": {
|
|
1260
1260
|
const a = () => i ? e.onClick() : o.seek(e.time);
|
|
1261
1261
|
return /* @__PURE__ */ t(
|
|
1262
|
-
|
|
1262
|
+
Uo,
|
|
1263
1263
|
{
|
|
1264
1264
|
position: e.time / n * 100,
|
|
1265
1265
|
onClick: a
|
|
@@ -1269,7 +1269,7 @@ function Uo(e, n, o, i) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
case "quiz":
|
|
1271
1271
|
return /* @__PURE__ */ t(
|
|
1272
|
-
|
|
1272
|
+
qo,
|
|
1273
1273
|
{
|
|
1274
1274
|
position: e.time / n * 100,
|
|
1275
1275
|
ordinal: e.ordinal,
|
|
@@ -1282,17 +1282,17 @@ function Uo(e, n, o, i) {
|
|
|
1282
1282
|
return null;
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1286
|
-
const e =
|
|
1287
|
-
...
|
|
1285
|
+
function Yo() {
|
|
1286
|
+
const e = W(), n = v("duration"), o = I(), i = Z(() => [
|
|
1287
|
+
...Wo(
|
|
1288
1288
|
o.annotations,
|
|
1289
1289
|
o.onAnnotationClick
|
|
1290
1290
|
),
|
|
1291
|
-
...
|
|
1292
|
-
].sort((c, l) => c.time - l.time).map((c) =>
|
|
1291
|
+
...Go(o.quizMarkers, o.onQuizMarkerClick)
|
|
1292
|
+
].sort((c, l) => c.time - l.time).map((c) => Qo(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1293
1293
|
return /* @__PURE__ */ t("div", { className: m.pins, children: i });
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Jo() {
|
|
1296
1296
|
const e = v("duration"), n = I(), o = g();
|
|
1297
1297
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: m.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
|
|
1298
1298
|
"span",
|
|
@@ -1300,32 +1300,32 @@ function Wo() {
|
|
|
1300
1300
|
className: m.commentMarker,
|
|
1301
1301
|
style: {
|
|
1302
1302
|
left: `${i.timestamp / e * 100}%`,
|
|
1303
|
-
width: `${
|
|
1303
|
+
width: `${Me / e * 100}%`
|
|
1304
1304
|
}
|
|
1305
1305
|
},
|
|
1306
1306
|
i.id
|
|
1307
1307
|
)) }) : null;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Xo({ currentTime: e, position: n }) {
|
|
1310
1310
|
const [o, i] = P(!1), a = I(), c = f(() => a.interactiveMenuElements.length > 0 ? i((k) => !k) : a.onInteractivePinClick(e), [
|
|
1311
1311
|
a.interactiveMenuElements,
|
|
1312
1312
|
a.onInteractivePinClick,
|
|
1313
1313
|
e
|
|
1314
|
-
]), l =
|
|
1314
|
+
]), l = pe(null), { refs: u, floatingStyles: h, context: p } = ve({
|
|
1315
1315
|
open: o,
|
|
1316
1316
|
onOpenChange: i,
|
|
1317
|
-
whileElementsMounted:
|
|
1317
|
+
whileElementsMounted: be,
|
|
1318
1318
|
placement: "top",
|
|
1319
1319
|
middleware: [
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1320
|
+
tt(),
|
|
1321
|
+
nt(6),
|
|
1322
|
+
Ce(),
|
|
1323
|
+
ge({
|
|
1324
1324
|
element: l
|
|
1325
1325
|
})
|
|
1326
1326
|
]
|
|
1327
|
-
}), b =
|
|
1328
|
-
return /* @__PURE__ */ s(
|
|
1327
|
+
}), b = ke(p), { getReferenceProps: d, getFloatingProps: _ } = ye([b]);
|
|
1328
|
+
return /* @__PURE__ */ s(X, { children: [
|
|
1329
1329
|
/* @__PURE__ */ t(
|
|
1330
1330
|
"button",
|
|
1331
1331
|
{
|
|
@@ -1417,7 +1417,7 @@ function Go({ currentTime: e, position: n }) {
|
|
|
1417
1417
|
k
|
|
1418
1418
|
)),
|
|
1419
1419
|
/* @__PURE__ */ t(
|
|
1420
|
-
|
|
1420
|
+
we,
|
|
1421
1421
|
{
|
|
1422
1422
|
ref: l,
|
|
1423
1423
|
context: p,
|
|
@@ -1429,20 +1429,20 @@ function Go({ currentTime: e, position: n }) {
|
|
|
1429
1429
|
)
|
|
1430
1430
|
] });
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function ei() {
|
|
1433
1433
|
const e = v("duration"), n = v("currentTime"), o = n / e * 100;
|
|
1434
|
-
return /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t(
|
|
1434
|
+
return /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t(Xo, { currentTime: n, position: o }) }) });
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function ti() {
|
|
1437
1437
|
const e = v("paused"), n = g();
|
|
1438
|
-
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(
|
|
1438
|
+
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ei, {}) : null;
|
|
1439
1439
|
}
|
|
1440
|
-
const
|
|
1441
|
-
function
|
|
1440
|
+
const ni = `${m.progress} ${m.trackInner}`, oi = `${m.trackFill} ${m.trackInner}`;
|
|
1441
|
+
function de({ className: e }) {
|
|
1442
1442
|
const n = g(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = I(), c = e ? `${m.timelineWrapper} ${e}` : m.timelineWrapper;
|
|
1443
1443
|
return /* @__PURE__ */ s("div", { className: c, children: [
|
|
1444
|
-
a ? /* @__PURE__ */ t(
|
|
1445
|
-
a || o || i ? /* @__PURE__ */ t(
|
|
1444
|
+
a ? /* @__PURE__ */ t(ti, {}) : null,
|
|
1445
|
+
a || o || i ? /* @__PURE__ */ t(Yo, {}) : null,
|
|
1446
1446
|
/* @__PURE__ */ s(
|
|
1447
1447
|
E.Root,
|
|
1448
1448
|
{
|
|
@@ -1450,49 +1450,49 @@ function le({ className: e }) {
|
|
|
1450
1450
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1451
1451
|
children: [
|
|
1452
1452
|
/* @__PURE__ */ s(E.Track, { className: m.track, children: [
|
|
1453
|
-
/* @__PURE__ */ t(E.Progress, { className:
|
|
1454
|
-
/* @__PURE__ */ t(E.TrackFill, { className:
|
|
1453
|
+
/* @__PURE__ */ t(E.Progress, { className: ni }),
|
|
1454
|
+
/* @__PURE__ */ t(E.TrackFill, { className: oi })
|
|
1455
1455
|
] }),
|
|
1456
1456
|
/* @__PURE__ */ t(E.Thumb, { className: m.thumb })
|
|
1457
1457
|
]
|
|
1458
1458
|
}
|
|
1459
1459
|
),
|
|
1460
|
-
/* @__PURE__ */ t(
|
|
1460
|
+
/* @__PURE__ */ t(Jo, {})
|
|
1461
1461
|
] });
|
|
1462
1462
|
}
|
|
1463
|
-
const
|
|
1464
|
-
wrapper:
|
|
1465
|
-
track:
|
|
1466
|
-
thumb:
|
|
1463
|
+
const ii = "_wrapper_12cb0_1", ai = "_track_12cb0_6", si = "_thumb_12cb0_18", ci = "_track-fill_12cb0_32", li = "_root_12cb0_51", F = {
|
|
1464
|
+
wrapper: ii,
|
|
1465
|
+
track: ai,
|
|
1466
|
+
thumb: si,
|
|
1467
1467
|
"track-fill": "_track-fill_12cb0_32",
|
|
1468
|
-
trackFill:
|
|
1469
|
-
root:
|
|
1468
|
+
trackFill: ci,
|
|
1469
|
+
root: li
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function ri() {
|
|
1472
1472
|
const e = v("volume"), n = v("muted"), o = g();
|
|
1473
1473
|
return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
|
|
1474
1474
|
/* @__PURE__ */ t(
|
|
1475
|
-
|
|
1475
|
+
We,
|
|
1476
1476
|
{
|
|
1477
1477
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1478
1478
|
className: "controls-button",
|
|
1479
|
-
children: n || e == 0 ? /* @__PURE__ */ t(
|
|
1479
|
+
children: n || e == 0 ? /* @__PURE__ */ t(Te, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Se, { className: "controls-button-icon" }) : /* @__PURE__ */ t(He, { className: "controls-button-icon" })
|
|
1480
1480
|
}
|
|
1481
1481
|
),
|
|
1482
1482
|
/* @__PURE__ */ s(
|
|
1483
|
-
|
|
1483
|
+
D.Root,
|
|
1484
1484
|
{
|
|
1485
1485
|
className: F.root,
|
|
1486
1486
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1487
1487
|
children: [
|
|
1488
|
-
/* @__PURE__ */ t(
|
|
1489
|
-
/* @__PURE__ */ t(
|
|
1488
|
+
/* @__PURE__ */ t(D.Track, { className: F.track, children: /* @__PURE__ */ t(D.TrackFill, { className: F.trackFill }) }),
|
|
1489
|
+
/* @__PURE__ */ t(D.Thumb, { className: F.thumb })
|
|
1490
1490
|
]
|
|
1491
1491
|
}
|
|
1492
1492
|
)
|
|
1493
1493
|
] });
|
|
1494
1494
|
}
|
|
1495
|
-
const
|
|
1495
|
+
const me = {
|
|
1496
1496
|
togglePaused: ["Space", "Enter", "k"],
|
|
1497
1497
|
seekForward: ["ArrowRight"],
|
|
1498
1498
|
seekBackward: ["ArrowLeft"],
|
|
@@ -1575,7 +1575,7 @@ const re = {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
1577
|
};
|
|
1578
|
-
function
|
|
1578
|
+
function ui(e, n = 1e3) {
|
|
1579
1579
|
let o = !1;
|
|
1580
1580
|
return () => {
|
|
1581
1581
|
o || (e(), o = !0, setTimeout(() => {
|
|
@@ -1583,7 +1583,7 @@ function si(e, n = 1e3) {
|
|
|
1583
1583
|
}, n));
|
|
1584
1584
|
};
|
|
1585
1585
|
}
|
|
1586
|
-
const
|
|
1586
|
+
const he = {
|
|
1587
1587
|
volume: 1,
|
|
1588
1588
|
muted: !1,
|
|
1589
1589
|
lang: null,
|
|
@@ -1594,18 +1594,18 @@ const ue = {
|
|
|
1594
1594
|
invert: !1,
|
|
1595
1595
|
comments: !1
|
|
1596
1596
|
};
|
|
1597
|
-
class
|
|
1597
|
+
class di {
|
|
1598
1598
|
constructor() {
|
|
1599
1599
|
N(this, "playerId", "studio-player");
|
|
1600
1600
|
N(this, "mediaId", null);
|
|
1601
|
-
N(this, "data",
|
|
1601
|
+
N(this, "data", he);
|
|
1602
1602
|
N(this, "time", null);
|
|
1603
1603
|
N(this, "saveTime", () => {
|
|
1604
1604
|
if (!this.mediaId) return;
|
|
1605
1605
|
const n = (this.time ?? 0).toString();
|
|
1606
1606
|
localStorage.setItem(this.mediaId, n);
|
|
1607
1607
|
});
|
|
1608
|
-
N(this, "saveTimeThrottled",
|
|
1608
|
+
N(this, "saveTimeThrottled", ui(this.saveTime, 1e3));
|
|
1609
1609
|
// only used for useStudioPlayer hook's state initialization
|
|
1610
1610
|
N(this, "initializeState", () => {
|
|
1611
1611
|
const n = localStorage.getItem(this.playerId);
|
|
@@ -1682,7 +1682,7 @@ class ci {
|
|
|
1682
1682
|
} catch {
|
|
1683
1683
|
}
|
|
1684
1684
|
this.data = {
|
|
1685
|
-
...
|
|
1685
|
+
...he,
|
|
1686
1686
|
...l
|
|
1687
1687
|
}, this.time = c ? +c : null;
|
|
1688
1688
|
}
|
|
@@ -1692,8 +1692,8 @@ class ci {
|
|
|
1692
1692
|
localStorage.setItem(this.playerId, n);
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1696
|
-
const n = Z(() => new
|
|
1695
|
+
function mi(e) {
|
|
1696
|
+
const n = Z(() => new di(), []), [o, i] = P(
|
|
1697
1697
|
n.initializeState
|
|
1698
1698
|
), a = f(
|
|
1699
1699
|
(d) => {
|
|
@@ -1738,9 +1738,9 @@ function li(e) {
|
|
|
1738
1738
|
interactionsDisabled: !0
|
|
1739
1739
|
}));
|
|
1740
1740
|
}, []), b = Z(() => e ? {
|
|
1741
|
-
...
|
|
1741
|
+
...me,
|
|
1742
1742
|
toggleFullscreen: []
|
|
1743
|
-
} :
|
|
1743
|
+
} : me, [e]);
|
|
1744
1744
|
return {
|
|
1745
1745
|
contextValue: {
|
|
1746
1746
|
state: o,
|
|
@@ -1755,9 +1755,9 @@ function li(e) {
|
|
|
1755
1755
|
storage: n
|
|
1756
1756
|
};
|
|
1757
1757
|
}
|
|
1758
|
-
const
|
|
1758
|
+
const hi = {}, Y = () => {
|
|
1759
1759
|
};
|
|
1760
|
-
function
|
|
1760
|
+
function yi({
|
|
1761
1761
|
title: e,
|
|
1762
1762
|
playerRef: n,
|
|
1763
1763
|
src: o,
|
|
@@ -1769,17 +1769,18 @@ function bi({
|
|
|
1769
1769
|
annotations: h = [],
|
|
1770
1770
|
quizMarkers: p = [],
|
|
1771
1771
|
interactive: b = !1,
|
|
1772
|
-
onAnnotationClick: d =
|
|
1773
|
-
onQuizMarkerClick: _ =
|
|
1774
|
-
onInteractivePinClick: k =
|
|
1772
|
+
onAnnotationClick: d = Y,
|
|
1773
|
+
onQuizMarkerClick: _ = Y,
|
|
1774
|
+
onInteractivePinClick: k = Y,
|
|
1775
1775
|
interactiveMenuElements: A = [],
|
|
1776
|
-
darkMode: S = !1
|
|
1776
|
+
darkMode: S = !1,
|
|
1777
|
+
autoLoadCaptionSrc: x = ""
|
|
1777
1778
|
}) {
|
|
1778
|
-
const { contextValue:
|
|
1779
|
+
const { contextValue: ie, shortcuts: Re, storage: Ae } = mi(c), { i18n: ae } = C();
|
|
1779
1780
|
return R(() => {
|
|
1780
|
-
|
|
1781
|
-
}, [
|
|
1782
|
-
|
|
1781
|
+
ae.changeLanguage(u);
|
|
1782
|
+
}, [ae, u]), /* @__PURE__ */ t(
|
|
1783
|
+
at,
|
|
1783
1784
|
{
|
|
1784
1785
|
hideFullScreen: c,
|
|
1785
1786
|
comments: l,
|
|
@@ -1791,28 +1792,34 @@ function bi({
|
|
|
1791
1792
|
onInteractivePinClick: k,
|
|
1792
1793
|
interactiveMenuElements: A,
|
|
1793
1794
|
darkMode: S,
|
|
1794
|
-
children: /* @__PURE__ */ t(
|
|
1795
|
-
|
|
1795
|
+
children: /* @__PURE__ */ t(it, { contextValue: ie, children: /* @__PURE__ */ s(
|
|
1796
|
+
Ge,
|
|
1796
1797
|
{
|
|
1797
|
-
storage:
|
|
1798
|
+
storage: Ae,
|
|
1798
1799
|
title: e,
|
|
1799
1800
|
src: o,
|
|
1800
|
-
keyShortcuts:
|
|
1801
|
+
keyShortcuts: Re,
|
|
1801
1802
|
playsInline: !0,
|
|
1802
|
-
keyDisabled:
|
|
1803
|
+
keyDisabled: ie.state.interactionsDisabled,
|
|
1804
|
+
onTextTracksChange: (K) => {
|
|
1805
|
+
const se = K == null ? void 0 : K.findIndex(
|
|
1806
|
+
(Ee) => Ee.src === x
|
|
1807
|
+
);
|
|
1808
|
+
se > -1 && (K[se].mode = "showing");
|
|
1809
|
+
},
|
|
1803
1810
|
children: [
|
|
1804
|
-
/* @__PURE__ */ t(
|
|
1805
|
-
/* @__PURE__ */ s(
|
|
1806
|
-
/* @__PURE__ */ t(
|
|
1807
|
-
/* @__PURE__ */ t(
|
|
1808
|
-
/* @__PURE__ */ t(
|
|
1809
|
-
/* @__PURE__ */ t(
|
|
1810
|
-
/* @__PURE__ */ t(
|
|
1811
|
-
/* @__PURE__ */ t(
|
|
1812
|
-
/* @__PURE__ */ t(
|
|
1811
|
+
/* @__PURE__ */ t(no, {}),
|
|
1812
|
+
/* @__PURE__ */ s(Qe, { className: hi.mediaProvider, children: [
|
|
1813
|
+
/* @__PURE__ */ t(lo, { src: a }),
|
|
1814
|
+
/* @__PURE__ */ t(zn, {}),
|
|
1815
|
+
/* @__PURE__ */ t(_t, {}),
|
|
1816
|
+
/* @__PURE__ */ t(Ct, { captions: i }),
|
|
1817
|
+
/* @__PURE__ */ t(Ht, { comments: l }),
|
|
1818
|
+
/* @__PURE__ */ t(fo, {}),
|
|
1819
|
+
/* @__PURE__ */ t(Qn, {})
|
|
1813
1820
|
] }),
|
|
1814
|
-
/* @__PURE__ */ t(
|
|
1815
|
-
/* @__PURE__ */ t(
|
|
1821
|
+
/* @__PURE__ */ t(Ft, { darkMode: S, playerRef: n }),
|
|
1822
|
+
/* @__PURE__ */ t(rt, { annotations: h })
|
|
1816
1823
|
]
|
|
1817
1824
|
}
|
|
1818
1825
|
) })
|
|
@@ -1820,8 +1827,8 @@ function bi({
|
|
|
1820
1827
|
);
|
|
1821
1828
|
}
|
|
1822
1829
|
export {
|
|
1823
|
-
|
|
1824
|
-
|
|
1830
|
+
gt as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
1831
|
+
Me as COMMENT_DURATION,
|
|
1825
1832
|
V as PLAYBACK_RATES,
|
|
1826
|
-
|
|
1833
|
+
yi as StudioPlayer
|
|
1827
1834
|
};
|