@instructure/studio-player 0.4.3 → 0.4.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/studio-player.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import './index-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import { useMediaPlayer as
|
|
7
|
-
import { useMediaState as
|
|
8
|
-
import { initReactI18next as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useFloating as
|
|
12
|
-
const
|
|
13
|
-
const i = e[
|
|
1
|
+
import './index-BhO_pnkp.css';var it = Object.defineProperty;
|
|
2
|
+
var st = (e, t, o) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var S = (e, t, o) => st(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { jsx as n, jsxs as l, Fragment as X } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as re, useContext as ue, useState as M, useCallback as f, useEffect as D, useMemo as B, useRef as oe } from "react";
|
|
6
|
+
import { useMediaPlayer as T, Spinner as ce, useMediaRemote as ie, useMediaState as g, isTrackCaptionKind as at, Track as lt, Captions as ct, usePlaybackRateOptions as rt, useCaptionOptions as ut, useVideoQualityOptions as dt, Poster as mt, FullscreenButton as ht, Time as Le, TimeSlider as Q, VolumeSlider as J, isAudioProvider as pt, isVideoProvider as _t, isYouTubeProvider as Ct, isVimeoProvider as ft, MediaPlayer as bt, MediaProvider as gt } from "@vidstack/react";
|
|
7
|
+
import { useMediaState as xi, useMediaStore as Mi } from "@vidstack/react";
|
|
8
|
+
import { initReactI18next as vt, useTranslation as _ } from "react-i18next";
|
|
9
|
+
import wt from "i18next";
|
|
10
|
+
import yt from "i18next-resources-to-backend";
|
|
11
|
+
import { useFloating as de, autoUpdate as me, useDismiss as he, useInteractions as pe, detectOverflow as kt, FloatingFocusManager as _e, shift as Se, offset as Te, arrow as Ee, useListNavigation as Lt, FloatingArrow as Ve } from "@floating-ui/react";
|
|
12
|
+
const xt = (e, t, o) => {
|
|
13
|
+
const i = e[t];
|
|
14
14
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
|
|
15
15
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
16
16
|
a.bind(
|
|
17
17
|
null,
|
|
18
18
|
new Error(
|
|
19
|
-
"Unknown variable dynamic import: " +
|
|
19
|
+
"Unknown variable dynamic import: " + t + (t.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
|
|
20
20
|
)
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(e) =>
|
|
25
|
+
wt.use(vt).use(
|
|
26
|
+
yt(
|
|
27
|
+
(e) => xt(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-B8l4Fn4I.js"), "./locales/ca.json": () => import("./ca-D-9XXbq2.js"), "./locales/cy.json": () => import("./cy-7BijMmgd.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-CJ2niKwf.js"), "./locales/da.json": () => import("./da-DAY_l_21.js"), "./locales/de.json": () => import("./de-ya8bO5Ja.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-irzsO2mb.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-G4m87b7j.js"), "./locales/en.json": () => import("./en-D6AICPim.js"), "./locales/en_AU.json": () => import("./en_AU-DB3OHfTc.js"), "./locales/en_CY.json": () => import("./en_CY-DhDZF-tZ.js"), "./locales/en_GB.json": () => import("./en_GB-BK_q7w5s.js"), "./locales/es.json": () => import("./es-DZ5Y82Uj.js"), "./locales/es_ES.json": () => import("./es_ES-CQMBItY2.js"), "./locales/fi.json": () => import("./fi-B4Pz1t-t.js"), "./locales/fr.json": () => import("./fr-BteehQcx.js"), "./locales/fr_CA.json": () => import("./fr_CA-BHaXh8MX.js"), "./locales/ga.json": () => import("./ga-Bx3a9UKG.js"), "./locales/hi.json": () => import("./hi-DHG0_yeQ.js"), "./locales/ht.json": () => import("./ht-C2IdMP2u.js"), "./locales/id.json": () => import("./id-uk30JX2p.js"), "./locales/is.json": () => import("./is-yOmqk5qU.js"), "./locales/it.json": () => import("./it-BM3Um8gU.js"), "./locales/ja.json": () => import("./ja-BdL71P8g.js"), "./locales/kl.json": () => import("./kl-BeSfwm2D.js"), "./locales/mi.json": () => import("./mi-D2uHHivq.js"), "./locales/ms.json": () => import("./ms--AuIVHSL.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-CxOnhM4J.js"), "./locales/nb.json": () => import("./nb-CXLIMCwW.js"), "./locales/nl.json": () => import("./nl-CsVJ-oQV.js"), "./locales/pl.json": () => import("./pl-BT0sRFhU.js"), "./locales/pt.json": () => import("./pt-Anx8EAjZ.js"), "./locales/pt_BR.json": () => import("./pt_BR-Be3UULFe.js"), "./locales/ru.json": () => import("./ru-DPUYT2zh.js"), "./locales/sl.json": () => import("./sl-QnHcT_i1.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-DLoiJ1OB.js"), "./locales/sv.json": () => import("./sv-D_WuG6Ug.js"), "./locales/th.json": () => import("./th-CcE5hCow.js"), "./locales/vi.json": () => import("./vi-De-Nfy-i.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-CU7SSIXE.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-BMd136-f.js"), "./locales/zh.json": () => import("./zh-ClimEyGq.js"), "./locales/zh_HK.json": () => import("./zh_HK-Culy5KI5.js") }), `./locales/${e}.json`, 3)
|
|
28
28
|
)
|
|
29
29
|
).init({
|
|
30
30
|
fallbackLng: "en",
|
|
@@ -35,25 +35,25 @@ vt.use(bt).use(
|
|
|
35
35
|
escapeValue: !1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const
|
|
39
|
-
function
|
|
38
|
+
const Be = re(null);
|
|
39
|
+
function Mt({
|
|
40
40
|
children: e,
|
|
41
|
-
contextValue:
|
|
41
|
+
contextValue: t
|
|
42
42
|
}) {
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ n(Be.Provider, { value: t, children: e });
|
|
44
44
|
}
|
|
45
45
|
function w() {
|
|
46
|
-
const e =
|
|
46
|
+
const e = ue(Be);
|
|
47
47
|
if (!e)
|
|
48
48
|
throw new Error(
|
|
49
49
|
"useStudioPlayerContext must be used within a StudioPlayerContextProvider"
|
|
50
50
|
);
|
|
51
51
|
return e;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
53
|
+
const Ae = re(null);
|
|
54
|
+
function Nt({
|
|
55
55
|
hideFullScreen: e,
|
|
56
|
-
comments:
|
|
56
|
+
comments: t,
|
|
57
57
|
captions: o,
|
|
58
58
|
thumbnail: i,
|
|
59
59
|
annotations: s,
|
|
@@ -61,22 +61,22 @@ function Mt({
|
|
|
61
61
|
interactive: c,
|
|
62
62
|
onAnnotationClick: r,
|
|
63
63
|
onQuizMarkerClick: d,
|
|
64
|
-
onInteractivePinClick:
|
|
64
|
+
onInteractivePinClick: h,
|
|
65
65
|
interactiveMenuElements: b,
|
|
66
66
|
kebabMenuElements: v,
|
|
67
67
|
darkMode: k,
|
|
68
68
|
children: y,
|
|
69
|
-
forceComments:
|
|
70
|
-
disableCaptionSettings:
|
|
69
|
+
forceComments: I,
|
|
70
|
+
disableCaptionSettings: p,
|
|
71
71
|
disableStorage: C,
|
|
72
|
-
captionOffsetOverride:
|
|
73
|
-
disableInteractivePinRanges:
|
|
74
|
-
onQuizMarkerShow:
|
|
75
|
-
onCaptionsDelete:
|
|
72
|
+
captionOffsetOverride: A,
|
|
73
|
+
disableInteractivePinRanges: R,
|
|
74
|
+
onQuizMarkerShow: q,
|
|
75
|
+
onCaptionsDelete: V
|
|
76
76
|
}) {
|
|
77
|
-
const
|
|
77
|
+
const O = {
|
|
78
78
|
hideFullScreen: e,
|
|
79
|
-
comments:
|
|
79
|
+
comments: t,
|
|
80
80
|
captions: o,
|
|
81
81
|
thumbnail: i,
|
|
82
82
|
annotations: s,
|
|
@@ -84,111 +84,111 @@ function Mt({
|
|
|
84
84
|
interactive: c,
|
|
85
85
|
onAnnotationClick: r,
|
|
86
86
|
onQuizMarkerClick: d,
|
|
87
|
-
onInteractivePinClick:
|
|
87
|
+
onInteractivePinClick: h,
|
|
88
88
|
interactiveMenuElements: b,
|
|
89
89
|
kebabMenuElements: v,
|
|
90
90
|
darkMode: k,
|
|
91
|
-
hasComments:
|
|
91
|
+
hasComments: t.length > 0,
|
|
92
92
|
hasAnnotations: s.length > 0,
|
|
93
93
|
hasQuizmarkers: a.length > 0,
|
|
94
|
-
forceComments:
|
|
95
|
-
disableCaptionSettings:
|
|
94
|
+
forceComments: I,
|
|
95
|
+
disableCaptionSettings: p,
|
|
96
96
|
disableStorage: C,
|
|
97
|
-
captionOffsetOverride:
|
|
98
|
-
disableInteractivePinRanges:
|
|
99
|
-
onQuizMarkerShow:
|
|
100
|
-
onCaptionsDelete:
|
|
97
|
+
captionOffsetOverride: A,
|
|
98
|
+
disableInteractivePinRanges: R,
|
|
99
|
+
onQuizMarkerShow: q,
|
|
100
|
+
onCaptionsDelete: V
|
|
101
101
|
};
|
|
102
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ n(Ae.Provider, { value: O, children: y });
|
|
103
103
|
}
|
|
104
104
|
function L() {
|
|
105
|
-
const e =
|
|
105
|
+
const e = ue(Ae);
|
|
106
106
|
if (!e)
|
|
107
107
|
throw new Error(
|
|
108
108
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
109
109
|
);
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const Pt = "_annotation-overlay_1kxzn_1", It = {
|
|
113
113
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
114
|
-
annotationOverlay:
|
|
115
|
-
},
|
|
114
|
+
annotationOverlay: Pt
|
|
115
|
+
}, xe = 0.25, Ht = (e, t) => {
|
|
116
116
|
let o = !1;
|
|
117
117
|
return (i) => {
|
|
118
118
|
const s = i.detail.currentTime;
|
|
119
|
-
s >= e.time && s < e.time +
|
|
119
|
+
s >= e.time && s < e.time + xe && !o && (o = !0, t(e)), (s < e.time || s >= e.time + xe) && o && (o = !1);
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
function
|
|
123
|
-
const
|
|
122
|
+
function St({ annotations: e }) {
|
|
123
|
+
const t = T(), o = w(), i = L(), [s, a] = M(
|
|
124
124
|
null
|
|
125
125
|
), c = f(
|
|
126
126
|
(d) => {
|
|
127
|
-
|
|
127
|
+
t == null || t.pause(), i.interactive || o.disableInteractions(), a(d);
|
|
128
128
|
},
|
|
129
|
-
[
|
|
129
|
+
[t, o]
|
|
130
130
|
), r = () => {
|
|
131
|
-
i.interactive || (
|
|
131
|
+
i.interactive || (t == null || t.play(), o.enableInteractions()), a(null);
|
|
132
132
|
};
|
|
133
|
-
return
|
|
134
|
-
if (!
|
|
133
|
+
return D(() => {
|
|
134
|
+
if (!t)
|
|
135
135
|
return;
|
|
136
136
|
const d = [];
|
|
137
|
-
for (const
|
|
138
|
-
const b =
|
|
139
|
-
|
|
137
|
+
for (const h of e) {
|
|
138
|
+
const b = Ht(h, c);
|
|
139
|
+
t.addEventListener("time-update", b), d.push(b);
|
|
140
140
|
}
|
|
141
141
|
if (s) {
|
|
142
|
-
const
|
|
142
|
+
const h = e.find(
|
|
143
143
|
(b) => b.id === s.id
|
|
144
144
|
);
|
|
145
|
-
|
|
145
|
+
h ? a(h) : (a(null), o.enableInteractions());
|
|
146
146
|
}
|
|
147
147
|
return () => {
|
|
148
|
-
for (const
|
|
149
|
-
|
|
148
|
+
for (const h of d)
|
|
149
|
+
t.removeEventListener("time-update", h);
|
|
150
150
|
};
|
|
151
|
-
}, [
|
|
151
|
+
}, [t, e]), s ? /* @__PURE__ */ n("div", { className: It.annotationOverlay, children: s.render(r) }) : null;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Tt = "_media-buffering-indicator_1fwjr_1", Et = "_media-buffering-spinner_1fwjr_17", Vt = "_media-buffering-spin_1fwjr_17", Bt = "_media-buffering-track_1fwjr_22", At = "_media-buffering-track-fill_1fwjr_27", ee = {
|
|
154
154
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
155
|
-
mediaBufferingIndicator:
|
|
155
|
+
mediaBufferingIndicator: Tt,
|
|
156
156
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
157
|
-
mediaBufferingSpinner:
|
|
157
|
+
mediaBufferingSpinner: Et,
|
|
158
158
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
159
159
|
mediaBufferingSpin: Vt,
|
|
160
160
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
161
|
-
mediaBufferingTrack:
|
|
161
|
+
mediaBufferingTrack: Bt,
|
|
162
162
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
163
|
-
mediaBufferingTrackFill:
|
|
163
|
+
mediaBufferingTrackFill: At
|
|
164
164
|
};
|
|
165
165
|
function Re() {
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
|
|
166
|
+
return /* @__PURE__ */ n("div", { className: ee.mediaBufferingIndicator, children: /* @__PURE__ */ l(ce.Root, { className: ee.mediaBufferingSpinner, size: 96, children: [
|
|
167
|
+
/* @__PURE__ */ n(ce.Track, { className: ee.mediaBufferingTrack, width: 8 }),
|
|
168
|
+
/* @__PURE__ */ n(
|
|
169
|
+
ce.TrackFill,
|
|
170
170
|
{
|
|
171
|
-
className:
|
|
171
|
+
className: ee.mediaBufferingTrackFill,
|
|
172
172
|
width: 8
|
|
173
173
|
}
|
|
174
174
|
)
|
|
175
175
|
] }) });
|
|
176
176
|
}
|
|
177
177
|
const Oe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
179
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
|
|
180
180
|
] }), Fe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
182
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ n("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
183
183
|
] });
|
|
184
|
-
function
|
|
185
|
-
const e =
|
|
184
|
+
function Rt() {
|
|
185
|
+
const e = ie(), t = g("textTrack"), o = g("hasCaptions"), i = t && at(t), s = w(), a = f(
|
|
186
186
|
(c) => {
|
|
187
187
|
e.toggleCaptions(c.nativeEvent);
|
|
188
188
|
},
|
|
189
189
|
[e]
|
|
190
190
|
);
|
|
191
|
-
return o ? /* @__PURE__ */
|
|
191
|
+
return o ? /* @__PURE__ */ n(
|
|
192
192
|
"button",
|
|
193
193
|
{
|
|
194
194
|
type: "button",
|
|
@@ -197,21 +197,21 @@ function Bt() {
|
|
|
197
197
|
"aria-label": "Captions",
|
|
198
198
|
"aria-pressed": i ? "true" : "false",
|
|
199
199
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
200
|
-
children: i ? /* @__PURE__ */
|
|
200
|
+
children: i ? /* @__PURE__ */ n(Fe, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Oe, { className: "controls-button-icon" })
|
|
201
201
|
}
|
|
202
202
|
) : null;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
captions:
|
|
206
|
-
},
|
|
204
|
+
const Ot = "_captions_1cu0g_1", Ft = {
|
|
205
|
+
captions: Ot
|
|
206
|
+
}, Zt = (e, t) => e ? t.top : t.bottom;
|
|
207
207
|
function Ze({ captions: e }) {
|
|
208
|
-
const
|
|
208
|
+
const t = e.length > 0, o = w(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = Zt(
|
|
209
209
|
s,
|
|
210
210
|
i ?? {}
|
|
211
211
|
);
|
|
212
|
-
return /* @__PURE__ */ l(
|
|
213
|
-
e.map((c) => /* @__PURE__ */
|
|
214
|
-
|
|
212
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
213
|
+
e.map((c) => /* @__PURE__ */ n(
|
|
214
|
+
lt,
|
|
215
215
|
{
|
|
216
216
|
kind: "subtitles",
|
|
217
217
|
type: c.type,
|
|
@@ -221,7 +221,7 @@ function Ze({ captions: e }) {
|
|
|
221
221
|
},
|
|
222
222
|
c.label
|
|
223
223
|
)),
|
|
224
|
-
|
|
224
|
+
t ? /* @__PURE__ */ n(
|
|
225
225
|
"div",
|
|
226
226
|
{
|
|
227
227
|
style: {
|
|
@@ -232,44 +232,44 @@ function Ze({ captions: e }) {
|
|
|
232
232
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
233
233
|
"--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
234
234
|
},
|
|
235
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ n(ct, { className: Ft.captions })
|
|
236
236
|
}
|
|
237
237
|
) : null
|
|
238
238
|
] });
|
|
239
239
|
}
|
|
240
|
-
const
|
|
241
|
-
const [,
|
|
242
|
-
return
|
|
240
|
+
const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Dt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e) => {
|
|
241
|
+
const [, t] = M({});
|
|
242
|
+
return B(() => {
|
|
243
243
|
let o = [];
|
|
244
244
|
return {
|
|
245
245
|
add(i) {
|
|
246
|
-
o.length >= e && o.shift(), o.push(i),
|
|
246
|
+
o.length >= e && o.shift(), o.push(i), t({});
|
|
247
247
|
},
|
|
248
248
|
remove(i) {
|
|
249
|
-
o = o.filter((s) => s !== i),
|
|
249
|
+
o = o.filter((s) => s !== i), t({});
|
|
250
250
|
},
|
|
251
251
|
clear() {
|
|
252
|
-
o = [],
|
|
252
|
+
o = [], t({});
|
|
253
253
|
},
|
|
254
254
|
map(i) {
|
|
255
255
|
return o.map(i);
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}, []);
|
|
259
|
-
},
|
|
259
|
+
}, Kt = (e, t, o) => {
|
|
260
260
|
let i = !1;
|
|
261
261
|
return (s) => {
|
|
262
262
|
const a = s.detail.currentTime;
|
|
263
|
-
a >= e.timestamp && a < e.timestamp +
|
|
263
|
+
a >= e.timestamp && a < e.timestamp + t && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + t) && i && (o.remove(e), i = !1);
|
|
264
264
|
};
|
|
265
|
-
},
|
|
266
|
-
const o =
|
|
267
|
-
return
|
|
265
|
+
}, $t = (e, t = 5) => {
|
|
266
|
+
const o = T(), i = jt(t);
|
|
267
|
+
return D(() => {
|
|
268
268
|
if (!o)
|
|
269
269
|
return;
|
|
270
270
|
const s = [];
|
|
271
271
|
for (const a of e) {
|
|
272
|
-
const c =
|
|
272
|
+
const c = Kt(a, zt, i);
|
|
273
273
|
s.push(c), o.addEventListener("time-update", c);
|
|
274
274
|
}
|
|
275
275
|
return o.dispatchEvent(
|
|
@@ -282,96 +282,96 @@ const D = [0.5, 0.75, 1, 1.25, 1.5, 2], Zt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e)
|
|
|
282
282
|
i.clear();
|
|
283
283
|
};
|
|
284
284
|
}, [o, i, e]), i;
|
|
285
|
-
},
|
|
285
|
+
}, Ut = "_comments-overlay_1puzm_1", qt = "_comments-container_1puzm_10", Gt = "_comment_1puzm_1", Qt = "_comment-text_1puzm_47", Wt = "_comment-author-avatar_1puzm_70", Yt = "_comment-author-name_1puzm_89", Z = {
|
|
286
286
|
"comments-overlay": "_comments-overlay_1puzm_1",
|
|
287
|
-
commentsOverlay:
|
|
287
|
+
commentsOverlay: Ut,
|
|
288
288
|
"comments-container": "_comments-container_1puzm_10",
|
|
289
|
-
commentsContainer:
|
|
290
|
-
comment:
|
|
289
|
+
commentsContainer: qt,
|
|
290
|
+
comment: Gt,
|
|
291
291
|
"comment-text": "_comment-text_1puzm_47",
|
|
292
|
-
commentText:
|
|
292
|
+
commentText: Qt,
|
|
293
293
|
"comment-author-avatar": "_comment-author-avatar_1puzm_70",
|
|
294
|
-
commentAuthorAvatar:
|
|
294
|
+
commentAuthorAvatar: Wt,
|
|
295
295
|
"comment-author-name": "_comment-author-name_1puzm_89",
|
|
296
|
-
commentAuthorName:
|
|
296
|
+
commentAuthorName: Yt
|
|
297
297
|
};
|
|
298
|
-
function
|
|
299
|
-
return e.render ? e.render(e,
|
|
300
|
-
var
|
|
301
|
-
return (
|
|
298
|
+
function Xt({ comment: e }) {
|
|
299
|
+
return e.render ? e.render(e, Z) : /* @__PURE__ */ l("div", { className: Z.comment, onClick: () => {
|
|
300
|
+
var t;
|
|
301
|
+
return (t = e.onClick) == null ? void 0 : t.call(e, e);
|
|
302
302
|
}, children: [
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ n(
|
|
304
304
|
"img",
|
|
305
305
|
{
|
|
306
|
-
className:
|
|
306
|
+
className: Z.commentAuthorAvatar,
|
|
307
307
|
src: e.user.avatar,
|
|
308
308
|
alt: e.user.name
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ n("span", { className: Z.commentText, children: e.text }),
|
|
312
|
+
/* @__PURE__ */ n("span", { className: Z.commentAuthorName, children: e.user.name })
|
|
313
313
|
] });
|
|
314
314
|
}
|
|
315
|
-
const
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
return e.length > 0 &&
|
|
315
|
+
const Jt = 5;
|
|
316
|
+
function en({ comments: e }) {
|
|
317
|
+
const t = w(), o = $t(e, Jt), i = !!g("textTrack"), s = o.map((a) => /* @__PURE__ */ n(Xt, { comment: a }, a.id));
|
|
318
|
+
return e.length > 0 && t.state.commentsEnabled ? /* @__PURE__ */ n(
|
|
319
319
|
"div",
|
|
320
320
|
{
|
|
321
|
-
className:
|
|
321
|
+
className: Z.commentsOverlay,
|
|
322
322
|
style: {
|
|
323
|
-
flexDirection:
|
|
323
|
+
flexDirection: t.state.captionPositionOnTop && i ? "column-reverse" : "column"
|
|
324
324
|
},
|
|
325
|
-
children: /* @__PURE__ */
|
|
325
|
+
children: /* @__PURE__ */ n("div", { className: Z.commentsContainer, children: i ? s.slice(-4) : s })
|
|
326
326
|
}
|
|
327
327
|
) : null;
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
root:
|
|
329
|
+
const tn = "_root_h0dso_1", nn = "_left-controls_h0dso_28", on = "_right-controls_h0dso_34", sn = "_indicators_h0dso_40", an = "_normal-timeline_h0dso_49", ln = "_compact-timeline_h0dso_55", j = {
|
|
330
|
+
root: tn,
|
|
331
331
|
"left-controls": "_left-controls_h0dso_28",
|
|
332
|
-
leftControls:
|
|
332
|
+
leftControls: nn,
|
|
333
333
|
"right-controls": "_right-controls_h0dso_34",
|
|
334
|
-
rightControls:
|
|
335
|
-
indicators:
|
|
334
|
+
rightControls: on,
|
|
335
|
+
indicators: sn,
|
|
336
336
|
"normal-timeline": "_normal-timeline_h0dso_49",
|
|
337
|
-
normalTimeline:
|
|
337
|
+
normalTimeline: an,
|
|
338
338
|
"compact-timeline": "_compact-timeline_h0dso_55",
|
|
339
|
-
compactTimeline:
|
|
339
|
+
compactTimeline: ln
|
|
340
340
|
};
|
|
341
|
-
function
|
|
341
|
+
function cn({
|
|
342
342
|
darkMode: e,
|
|
343
|
-
playerRef:
|
|
343
|
+
playerRef: t,
|
|
344
344
|
showCaptionsButton: o = !0
|
|
345
345
|
}) {
|
|
346
|
-
const i =
|
|
347
|
-
return
|
|
348
|
-
i && (i.remoteControl.pauseControls(),
|
|
349
|
-
}, [i,
|
|
350
|
-
/* @__PURE__ */
|
|
346
|
+
const i = T();
|
|
347
|
+
return D(() => {
|
|
348
|
+
i && (i.remoteControl.pauseControls(), t && (typeof t == "function" ? t(i) : t.current = i));
|
|
349
|
+
}, [i, t]), /* @__PURE__ */ l("div", { "data-darkmode": e, className: j.root, children: [
|
|
350
|
+
/* @__PURE__ */ n(Ne, { className: j.normalTimeline }),
|
|
351
351
|
/* @__PURE__ */ l("div", { className: j.leftControls, children: [
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ n(Yo, {}),
|
|
353
|
+
/* @__PURE__ */ n(ei, {})
|
|
354
354
|
] }),
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ n("div", { className: j.indicators, children: /* @__PURE__ */ n(u1, {}) }),
|
|
356
|
+
/* @__PURE__ */ n(Ne, { className: j.compactTimeline }),
|
|
357
357
|
/* @__PURE__ */ l("div", { className: j.rightControls, children: [
|
|
358
|
-
o && /* @__PURE__ */
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
/* @__PURE__ */
|
|
358
|
+
o && /* @__PURE__ */ n(Rt, {}),
|
|
359
|
+
/* @__PURE__ */ n(ro, {}),
|
|
360
|
+
/* @__PURE__ */ n(xo, {})
|
|
361
361
|
] })
|
|
362
362
|
] });
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const rn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), un = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), dn = "_menu-hint_1wiu5_1", mn = "_menu-button_1wiu5_5", hn = "_menu-label_1wiu5_37", pn = "_menu-icon_1wiu5_42", te = {
|
|
365
365
|
"menu-hint": "_menu-hint_1wiu5_1",
|
|
366
|
-
menuHint:
|
|
366
|
+
menuHint: dn,
|
|
367
367
|
"menu-button": "_menu-button_1wiu5_5",
|
|
368
|
-
menuButton:
|
|
368
|
+
menuButton: mn,
|
|
369
369
|
"menu-label": "_menu-label_1wiu5_37",
|
|
370
|
-
menuLabel:
|
|
370
|
+
menuLabel: hn,
|
|
371
371
|
"menu-icon": "_menu-icon_1wiu5_42",
|
|
372
|
-
menuIcon:
|
|
372
|
+
menuIcon: pn
|
|
373
373
|
};
|
|
374
|
-
function
|
|
374
|
+
function $({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
375
375
|
return /* @__PURE__ */ l(
|
|
376
376
|
"button",
|
|
377
377
|
{
|
|
@@ -380,37 +380,37 @@ function K({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
|
380
380
|
"aria-label": e,
|
|
381
381
|
tabIndex: -1,
|
|
382
382
|
onClick: o,
|
|
383
|
-
className:
|
|
383
|
+
className: te.menuButton,
|
|
384
384
|
children: [
|
|
385
|
-
i && /* @__PURE__ */
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
|
|
388
|
-
/* @__PURE__ */
|
|
385
|
+
i && /* @__PURE__ */ n(i, { className: te.menuIcon }),
|
|
386
|
+
/* @__PURE__ */ n("span", { className: te.menuLabel, children: e }),
|
|
387
|
+
t && /* @__PURE__ */ n("span", { className: te.menuHint, children: t }),
|
|
388
|
+
/* @__PURE__ */ n(un, {})
|
|
389
389
|
]
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
|
-
const
|
|
394
|
-
function
|
|
395
|
-
const e =
|
|
393
|
+
const _n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "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" }) });
|
|
394
|
+
function Cn() {
|
|
395
|
+
const e = P(), t = g("playbackRate"), { t: o } = _(), i = f(() => {
|
|
396
396
|
e.setPage("speed");
|
|
397
397
|
}, [e]);
|
|
398
|
-
return /* @__PURE__ */
|
|
399
|
-
|
|
398
|
+
return /* @__PURE__ */ n(
|
|
399
|
+
$,
|
|
400
400
|
{
|
|
401
401
|
label: o("PLAYBACK_SPEED"),
|
|
402
|
-
hint: `${
|
|
402
|
+
hint: `${t}x`,
|
|
403
403
|
onClick: i,
|
|
404
|
-
Icon:
|
|
404
|
+
Icon: _n
|
|
405
405
|
}
|
|
406
406
|
);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
const e =
|
|
408
|
+
function fn() {
|
|
409
|
+
const e = P(), t = g("hasCaptions"), o = g("textTrack"), { t: i } = _(), s = f(() => {
|
|
410
410
|
e.setPage("captions");
|
|
411
411
|
}, [e]);
|
|
412
|
-
return
|
|
413
|
-
|
|
412
|
+
return t ? /* @__PURE__ */ n(
|
|
413
|
+
$,
|
|
414
414
|
{
|
|
415
415
|
label: i("CAPTIONS"),
|
|
416
416
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
@@ -419,200 +419,200 @@ function Cn() {
|
|
|
419
419
|
}
|
|
420
420
|
) : null;
|
|
421
421
|
}
|
|
422
|
-
const
|
|
423
|
-
/* @__PURE__ */
|
|
422
|
+
const bn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
423
|
+
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ n("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
424
424
|
/* @__PURE__ */ l("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.46326 3.85039H0V2.65039H2.46326C2.7388 1.36449 3.88181 0.400391 5.24999 0.400391C6.61818 0.400391 7.76119 1.36449 8.03673 2.65039H18V3.85039H8.03673C7.76119 5.13629 6.61818 6.10039 5.24999 6.10039C3.88181 6.10039 2.7388 5.13629 2.46326 3.85039ZM3.59999 3.25039C3.59999 2.33912 4.33872 1.60039 5.24999 1.60039C6.16126 1.60039 6.89999 2.33912 6.89999 3.25039C6.89999 4.16166 6.16126 4.90039 5.24999 4.90039C4.33872 4.90039 3.59999 4.16166 3.59999 3.25039Z", fill: "currentColor" }),
|
|
426
|
+
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 8.40039H9.46326C9.7388 7.11449 10.8818 6.15039 12.25 6.15039C13.6182 6.15039 14.7612 7.11449 15.0367 8.40039H18V9.60039H15.0367C14.7612 10.8863 13.6182 11.8504 12.25 11.8504C10.8818 11.8504 9.7388 10.8863 9.46326 9.60039H0V8.40039ZM12.25 7.35039C11.3387 7.35039 10.6 8.08912 10.6 9.00039C10.6 9.91166 11.3387 10.6504 12.25 10.6504C13.1613 10.6504 13.9 9.91166 13.9 9.00039C13.9 8.08912 13.1613 7.35039 12.25 7.35039Z", fill: "currentColor" }),
|
|
427
|
+
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
|
|
428
428
|
] })
|
|
429
429
|
] });
|
|
430
430
|
function gn() {
|
|
431
|
-
const e =
|
|
431
|
+
const e = P(), t = g("autoQuality"), o = g("quality"), { t: i } = _(), s = f(() => {
|
|
432
432
|
e.setPage("quality");
|
|
433
433
|
}, [e]);
|
|
434
|
-
return o ? /* @__PURE__ */
|
|
435
|
-
|
|
434
|
+
return o ? /* @__PURE__ */ n(
|
|
435
|
+
$,
|
|
436
436
|
{
|
|
437
437
|
label: i("QUALITY"),
|
|
438
|
-
hint:
|
|
438
|
+
hint: t ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
439
439
|
onClick: s,
|
|
440
|
-
Icon:
|
|
440
|
+
Icon: bn
|
|
441
441
|
}
|
|
442
442
|
) : null;
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const vn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), wn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 9.64706,12 4,17.64706 6.35293,20 12,14.35293 17.64706,20 20,17.64706 14.35293,12 20,6.35293 17.64706,4 12,9.64706 6.35293,4 4,6.35293 Z", fill: "currentColor" }) }), yn = "_switch-track_7nhpo_1", kn = "_switch-thumb_7nhpo_17", Ln = "_switch-icon_7nhpo_31", xn = "_switch-body_7nhpo_37", Mn = "_switch-label_7nhpo_78", Nn = "_menu-icon_7nhpo_82", F = {
|
|
445
445
|
"switch-track": "_switch-track_7nhpo_1",
|
|
446
|
-
switchTrack:
|
|
446
|
+
switchTrack: yn,
|
|
447
447
|
"switch-thumb": "_switch-thumb_7nhpo_17",
|
|
448
|
-
switchThumb:
|
|
448
|
+
switchThumb: kn,
|
|
449
449
|
"switch-icon": "_switch-icon_7nhpo_31",
|
|
450
|
-
switchIcon:
|
|
450
|
+
switchIcon: Ln,
|
|
451
451
|
"switch-body": "_switch-body_7nhpo_37",
|
|
452
|
-
switchBody:
|
|
452
|
+
switchBody: xn,
|
|
453
453
|
"switch-label": "_switch-label_7nhpo_78",
|
|
454
|
-
switchLabel:
|
|
454
|
+
switchLabel: Mn,
|
|
455
455
|
"menu-icon": "_menu-icon_7nhpo_82",
|
|
456
|
-
menuIcon:
|
|
456
|
+
menuIcon: Nn
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function Ce({
|
|
459
459
|
label: e,
|
|
460
|
-
checked:
|
|
460
|
+
checked: t = !1,
|
|
461
461
|
onClick: o,
|
|
462
462
|
Icon: i
|
|
463
463
|
}) {
|
|
464
464
|
return /* @__PURE__ */ l(
|
|
465
465
|
"button",
|
|
466
466
|
{
|
|
467
|
-
className:
|
|
467
|
+
className: F.switchBody,
|
|
468
468
|
role: "checkbox",
|
|
469
469
|
"aria-label": e,
|
|
470
|
-
"aria-checked":
|
|
470
|
+
"aria-checked": t,
|
|
471
471
|
onClick: o,
|
|
472
472
|
tabIndex: -1,
|
|
473
473
|
children: [
|
|
474
|
-
i && /* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
/* @__PURE__ */
|
|
474
|
+
i && /* @__PURE__ */ n(i, { className: F.menuIcon }),
|
|
475
|
+
/* @__PURE__ */ n("span", { className: F.switchLabel, children: e }),
|
|
476
|
+
/* @__PURE__ */ n("div", { className: F.switchTrack, children: /* @__PURE__ */ n("div", { className: F.switchThumb, children: t ? /* @__PURE__ */ n(vn, { className: F.switchIcon }) : /* @__PURE__ */ n(wn, { className: F.switchIcon }) }) })
|
|
477
477
|
]
|
|
478
478
|
}
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
|
-
const
|
|
482
|
-
function
|
|
483
|
-
const { t: e } = _(),
|
|
484
|
-
return !
|
|
485
|
-
|
|
481
|
+
const Pn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
|
|
482
|
+
function In() {
|
|
483
|
+
const { t: e } = _(), t = L(), o = w();
|
|
484
|
+
return !t.forceComments && t.hasComments ? /* @__PURE__ */ n(
|
|
485
|
+
Ce,
|
|
486
486
|
{
|
|
487
|
-
Icon:
|
|
487
|
+
Icon: Pn,
|
|
488
488
|
label: e("COMMENTS"),
|
|
489
489
|
onClick: o.toggleComments,
|
|
490
490
|
checked: o.state.commentsEnabled
|
|
491
491
|
}
|
|
492
492
|
) : null;
|
|
493
493
|
}
|
|
494
|
-
const
|
|
494
|
+
const Hn = "_main-menu_7h96l_1", Sn = {
|
|
495
495
|
"main-menu": "_main-menu_7h96l_1",
|
|
496
|
-
mainMenu:
|
|
496
|
+
mainMenu: Hn
|
|
497
497
|
};
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
const
|
|
498
|
+
function De(e) {
|
|
499
|
+
D(() => {
|
|
500
|
+
const t = (o) => {
|
|
501
501
|
var i;
|
|
502
502
|
(i = e[o.key]) == null || i.call(e, o);
|
|
503
503
|
};
|
|
504
|
-
return document.addEventListener("keydown",
|
|
505
|
-
document.removeEventListener("keydown",
|
|
504
|
+
return document.addEventListener("keydown", t, { passive: !0 }), () => {
|
|
505
|
+
document.removeEventListener("keydown", t);
|
|
506
506
|
};
|
|
507
507
|
}, [e]);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
const
|
|
511
|
-
return
|
|
509
|
+
function Tn(e) {
|
|
510
|
+
const t = B(() => ({ Escape: e }), [e]);
|
|
511
|
+
return De(t);
|
|
512
512
|
}
|
|
513
|
-
const
|
|
514
|
-
const e =
|
|
513
|
+
const P = () => {
|
|
514
|
+
const e = ue(je);
|
|
515
515
|
if (!e)
|
|
516
516
|
throw new Error(
|
|
517
517
|
"useCustomSettingsMenuContext must be used within a CustomSettingsMenuContext.Provider"
|
|
518
518
|
);
|
|
519
519
|
return e;
|
|
520
520
|
};
|
|
521
|
-
function
|
|
522
|
-
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(
|
|
521
|
+
function En(e, t) {
|
|
522
|
+
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
523
523
|
return o[i - 1] ?? null;
|
|
524
524
|
}
|
|
525
|
-
function Vn(e,
|
|
526
|
-
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(
|
|
525
|
+
function Vn(e, t) {
|
|
526
|
+
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
527
527
|
return o[i + 1] ?? null;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Bn(e) {
|
|
530
530
|
return e.querySelector("button");
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
const
|
|
534
|
-
return
|
|
532
|
+
function An(e) {
|
|
533
|
+
const t = Array.from(e.querySelectorAll("button"));
|
|
534
|
+
return t[t.length - 1] ?? null;
|
|
535
535
|
}
|
|
536
536
|
function z() {
|
|
537
|
-
const e =
|
|
537
|
+
const e = P(), t = oe(null), o = B(
|
|
538
538
|
() => ({
|
|
539
539
|
Escape: e.toggle,
|
|
540
540
|
ArrowUp: () => {
|
|
541
541
|
const i = document.activeElement;
|
|
542
|
-
if (i &&
|
|
543
|
-
const s =
|
|
544
|
-
|
|
542
|
+
if (i && t.current && t.current.contains(i)) {
|
|
543
|
+
const s = En(
|
|
544
|
+
t.current,
|
|
545
545
|
i
|
|
546
546
|
);
|
|
547
547
|
s == null || s.focus();
|
|
548
|
-
} else if (
|
|
549
|
-
const s =
|
|
548
|
+
} else if (t.current) {
|
|
549
|
+
const s = An(t.current);
|
|
550
550
|
s == null || s.focus();
|
|
551
551
|
}
|
|
552
552
|
},
|
|
553
553
|
ArrowDown: () => {
|
|
554
554
|
const i = document.activeElement;
|
|
555
|
-
if (i &&
|
|
555
|
+
if (i && t.current && t.current.contains(i)) {
|
|
556
556
|
const s = Vn(
|
|
557
|
-
|
|
557
|
+
t.current,
|
|
558
558
|
i
|
|
559
559
|
);
|
|
560
560
|
s == null || s.focus();
|
|
561
|
-
} else if (
|
|
562
|
-
const s =
|
|
561
|
+
} else if (t.current) {
|
|
562
|
+
const s = Bn(t.current);
|
|
563
563
|
s == null || s.focus();
|
|
564
564
|
}
|
|
565
565
|
},
|
|
566
566
|
ArrowRight: () => {
|
|
567
567
|
const i = document.activeElement;
|
|
568
|
-
i &&
|
|
568
|
+
i && t.current && t.current.contains(i) && i.click();
|
|
569
569
|
},
|
|
570
570
|
ArrowLeft: e.back
|
|
571
571
|
}),
|
|
572
572
|
[e]
|
|
573
573
|
);
|
|
574
|
-
return
|
|
574
|
+
return De(o), t;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
const e = z(), { t
|
|
576
|
+
function Rn() {
|
|
577
|
+
const e = z(), { t } = _();
|
|
578
578
|
return /* @__PURE__ */ l(
|
|
579
579
|
"div",
|
|
580
580
|
{
|
|
581
581
|
ref: e,
|
|
582
582
|
id: "submenu",
|
|
583
|
-
"aria-label":
|
|
583
|
+
"aria-label": t("MAIN_MENU"),
|
|
584
584
|
role: "menu",
|
|
585
|
-
className:
|
|
585
|
+
className: Sn.mainMenu,
|
|
586
586
|
children: [
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ n(Cn, {}),
|
|
588
|
+
/* @__PURE__ */ n(fn, {}),
|
|
589
|
+
/* @__PURE__ */ n(In, {}),
|
|
590
|
+
/* @__PURE__ */ n(gn, {})
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
);
|
|
594
594
|
}
|
|
595
|
-
const
|
|
595
|
+
const se = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), U = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), On = "_menu-container_18cio_1", Fn = "_scrollable-buttons_18cio_2", Zn = "_menu-heading_18cio_9", Dn = "_check-icon_18cio_20", zn = "_trash-icon_18cio_21", jn = "_menu-item-label_18cio_34", Kn = "_menu-item_18cio_34", $n = "_menu-back-button_18cio_71", u = {
|
|
596
596
|
"menu-container": "_menu-container_18cio_1",
|
|
597
|
-
menuContainer:
|
|
597
|
+
menuContainer: On,
|
|
598
598
|
"scrollable-buttons": "_scrollable-buttons_18cio_2",
|
|
599
|
-
scrollableButtons:
|
|
599
|
+
scrollableButtons: Fn,
|
|
600
600
|
"menu-heading": "_menu-heading_18cio_9",
|
|
601
|
-
menuHeading:
|
|
601
|
+
menuHeading: Zn,
|
|
602
602
|
"check-icon": "_check-icon_18cio_20",
|
|
603
|
-
checkIcon:
|
|
603
|
+
checkIcon: Dn,
|
|
604
604
|
"trash-icon": "_trash-icon_18cio_21",
|
|
605
605
|
trashIcon: zn,
|
|
606
606
|
"menu-item-label": "_menu-item-label_18cio_34",
|
|
607
607
|
menuItemLabel: jn,
|
|
608
608
|
"menu-item": "_menu-item_18cio_34",
|
|
609
|
-
menuItem:
|
|
609
|
+
menuItem: Kn,
|
|
610
610
|
"menu-back-button": "_menu-back-button_18cio_71",
|
|
611
|
-
menuBackButton:
|
|
611
|
+
menuBackButton: $n
|
|
612
612
|
};
|
|
613
|
-
function
|
|
614
|
-
const e =
|
|
615
|
-
rates:
|
|
613
|
+
function Un() {
|
|
614
|
+
const e = P(), t = rt({
|
|
615
|
+
rates: K,
|
|
616
616
|
normalLabel: "1x"
|
|
617
617
|
}), { t: o } = _(), i = z();
|
|
618
618
|
return /* @__PURE__ */ l(
|
|
@@ -633,13 +633,13 @@ function $n() {
|
|
|
633
633
|
className: u.menuBackButton,
|
|
634
634
|
onClick: e.back,
|
|
635
635
|
children: [
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ n(U, {}),
|
|
637
|
+
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
638
638
|
]
|
|
639
639
|
}
|
|
640
640
|
),
|
|
641
|
-
/* @__PURE__ */
|
|
642
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("PLAYBACK_SPEED") }),
|
|
642
|
+
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
|
|
643
643
|
"button",
|
|
644
644
|
{
|
|
645
645
|
type: "button",
|
|
@@ -650,8 +650,8 @@ function $n() {
|
|
|
650
650
|
tabIndex: -1,
|
|
651
651
|
className: u.menuItem,
|
|
652
652
|
children: [
|
|
653
|
-
/* @__PURE__ */
|
|
654
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
654
|
+
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: a })
|
|
655
655
|
]
|
|
656
656
|
},
|
|
657
657
|
s
|
|
@@ -660,62 +660,62 @@ function $n() {
|
|
|
660
660
|
}
|
|
661
661
|
);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const e =
|
|
663
|
+
function qn() {
|
|
664
|
+
const e = P(), t = g("textTrack"), { t: o } = _(), { disableCaptionSettings: i } = w(), s = f(() => {
|
|
665
665
|
e.setPage("captionLanguage");
|
|
666
666
|
}, [e]);
|
|
667
|
-
return i ? null : /* @__PURE__ */
|
|
668
|
-
|
|
667
|
+
return i ? null : /* @__PURE__ */ n(
|
|
668
|
+
$,
|
|
669
669
|
{
|
|
670
670
|
label: o("LANGUAGE"),
|
|
671
|
-
hint: (
|
|
671
|
+
hint: (t == null ? void 0 : t.label) ?? o("OFF"),
|
|
672
672
|
onClick: s
|
|
673
673
|
}
|
|
674
674
|
);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
const { t: e } = _(),
|
|
676
|
+
function Gn() {
|
|
677
|
+
const { t: e } = _(), t = w(), o = P(), i = f(() => {
|
|
678
678
|
o.setPage("captionFontSize");
|
|
679
679
|
}, [o]);
|
|
680
|
-
return /* @__PURE__ */
|
|
681
|
-
|
|
680
|
+
return /* @__PURE__ */ n(
|
|
681
|
+
$,
|
|
682
682
|
{
|
|
683
683
|
label: e("CAPTION_FONT_SIZE"),
|
|
684
|
-
hint: `${
|
|
684
|
+
hint: `${t.state.captionsFontSizeMultiplier * 100}%`,
|
|
685
685
|
onClick: i
|
|
686
686
|
}
|
|
687
687
|
);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
const { t: e } = _(),
|
|
691
|
-
return /* @__PURE__ */
|
|
692
|
-
|
|
689
|
+
function Qn() {
|
|
690
|
+
const { t: e } = _(), t = w();
|
|
691
|
+
return /* @__PURE__ */ n(
|
|
692
|
+
Ce,
|
|
693
693
|
{
|
|
694
694
|
label: e("ON_TOP"),
|
|
695
|
-
onClick:
|
|
696
|
-
checked:
|
|
695
|
+
onClick: t.toggleCaptionPositionOnTop,
|
|
696
|
+
checked: t.state.captionPositionOnTop
|
|
697
697
|
}
|
|
698
698
|
);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
const { t: e } = _(),
|
|
702
|
-
return /* @__PURE__ */
|
|
703
|
-
|
|
700
|
+
function Wn() {
|
|
701
|
+
const { t: e } = _(), t = w();
|
|
702
|
+
return /* @__PURE__ */ n(
|
|
703
|
+
Ce,
|
|
704
704
|
{
|
|
705
705
|
label: e("INVERT_COLORS"),
|
|
706
|
-
onClick:
|
|
707
|
-
checked:
|
|
706
|
+
onClick: t.toggleCaptionsInvertColors,
|
|
707
|
+
checked: t.state.captionsInvertColors
|
|
708
708
|
}
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
const e =
|
|
711
|
+
function Yn() {
|
|
712
|
+
const e = P(), { t } = _(), o = f(() => {
|
|
713
713
|
e.setPage("captionManage");
|
|
714
714
|
}, [e]);
|
|
715
|
-
return /* @__PURE__ */
|
|
715
|
+
return /* @__PURE__ */ n($, { label: t("CAPTIONS_MANAGE"), onClick: o });
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
const e =
|
|
717
|
+
function Xn() {
|
|
718
|
+
const e = P(), t = L(), { t: o } = _(), i = z();
|
|
719
719
|
return /* @__PURE__ */ l(
|
|
720
720
|
"div",
|
|
721
721
|
{
|
|
@@ -734,25 +734,25 @@ function Yn() {
|
|
|
734
734
|
className: u.menuBackButton,
|
|
735
735
|
onClick: e.back,
|
|
736
736
|
children: [
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
737
|
+
/* @__PURE__ */ n(U, {}),
|
|
738
|
+
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
739
739
|
]
|
|
740
740
|
}
|
|
741
741
|
),
|
|
742
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
743
743
|
/* @__PURE__ */ l("div", { className: u.scrollableButtons, children: [
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
|
|
744
|
+
/* @__PURE__ */ n(qn, {}),
|
|
745
|
+
/* @__PURE__ */ n(Gn, {}),
|
|
746
|
+
/* @__PURE__ */ n(Qn, {}),
|
|
747
|
+
/* @__PURE__ */ n(Wn, {}),
|
|
748
|
+
t.onCaptionsDelete && /* @__PURE__ */ n(Yn, {})
|
|
749
749
|
] })
|
|
750
750
|
]
|
|
751
751
|
}
|
|
752
752
|
);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
const e =
|
|
754
|
+
function Jn() {
|
|
755
|
+
const e = P(), t = ut(), { t: o } = _(), i = z();
|
|
756
756
|
return /* @__PURE__ */ l(
|
|
757
757
|
"div",
|
|
758
758
|
{
|
|
@@ -771,13 +771,13 @@ function Xn() {
|
|
|
771
771
|
className: u.menuBackButton,
|
|
772
772
|
onClick: e.back,
|
|
773
773
|
children: [
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ n(U, {}),
|
|
775
|
+
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
776
776
|
]
|
|
777
777
|
}
|
|
778
778
|
),
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
780
|
+
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
|
|
781
781
|
"button",
|
|
782
782
|
{
|
|
783
783
|
type: "button",
|
|
@@ -787,8 +787,8 @@ function Xn() {
|
|
|
787
787
|
tabIndex: -1,
|
|
788
788
|
className: u.menuItem,
|
|
789
789
|
children: [
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
791
|
+
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: a })
|
|
792
792
|
]
|
|
793
793
|
},
|
|
794
794
|
s
|
|
@@ -797,8 +797,8 @@ function Xn() {
|
|
|
797
797
|
}
|
|
798
798
|
);
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
const e = w(),
|
|
800
|
+
function eo() {
|
|
801
|
+
const e = w(), t = P(), { t: o } = _(), i = z();
|
|
802
802
|
return /* @__PURE__ */ l(
|
|
803
803
|
"div",
|
|
804
804
|
{
|
|
@@ -815,15 +815,15 @@ function Jn() {
|
|
|
815
815
|
role: "menuitem",
|
|
816
816
|
tabIndex: -1,
|
|
817
817
|
className: u.menuBackButton,
|
|
818
|
-
onClick:
|
|
818
|
+
onClick: t.back,
|
|
819
819
|
children: [
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ n(U, {}),
|
|
821
|
+
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
822
822
|
]
|
|
823
823
|
}
|
|
824
824
|
),
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
826
|
+
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: Dt.map((s) => /* @__PURE__ */ l(
|
|
827
827
|
"button",
|
|
828
828
|
{
|
|
829
829
|
type: "button",
|
|
@@ -835,7 +835,7 @@ function Jn() {
|
|
|
835
835
|
tabIndex: -1,
|
|
836
836
|
className: u.menuItem,
|
|
837
837
|
children: [
|
|
838
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
839
839
|
/* @__PURE__ */ l("span", { className: u.menuItemLabel, children: [
|
|
840
840
|
s * 100,
|
|
841
841
|
"%"
|
|
@@ -848,9 +848,9 @@ function Jn() {
|
|
|
848
848
|
}
|
|
849
849
|
);
|
|
850
850
|
}
|
|
851
|
-
const
|
|
852
|
-
function
|
|
853
|
-
const e =
|
|
851
|
+
const ze = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) });
|
|
852
|
+
function to() {
|
|
853
|
+
const e = P(), t = L(), { t: o } = _(), i = z();
|
|
854
854
|
return /* @__PURE__ */ l(
|
|
855
855
|
"div",
|
|
856
856
|
{
|
|
@@ -869,26 +869,26 @@ function eo() {
|
|
|
869
869
|
className: u.menuBackButton,
|
|
870
870
|
onClick: e.back,
|
|
871
871
|
children: [
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ n(U, {}),
|
|
873
|
+
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
874
874
|
]
|
|
875
875
|
}
|
|
876
876
|
),
|
|
877
|
-
/* @__PURE__ */
|
|
878
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS_MANAGE") }),
|
|
878
|
+
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.captions.map((s) => /* @__PURE__ */ l(
|
|
879
879
|
"button",
|
|
880
880
|
{
|
|
881
881
|
type: "button",
|
|
882
882
|
role: "menuitem",
|
|
883
883
|
onClick: () => {
|
|
884
884
|
var a;
|
|
885
|
-
(a =
|
|
885
|
+
(a = t.onCaptionsDelete) == null || a.call(t, s);
|
|
886
886
|
},
|
|
887
887
|
tabIndex: -1,
|
|
888
888
|
className: u.menuItem,
|
|
889
889
|
children: [
|
|
890
|
-
/* @__PURE__ */
|
|
891
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ n(ze, { className: u.trashIcon }),
|
|
891
|
+
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: o("CAPTION_DELETE", { language: s.label }) })
|
|
892
892
|
]
|
|
893
893
|
},
|
|
894
894
|
s.language
|
|
@@ -897,8 +897,8 @@ function eo() {
|
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
901
|
-
const e =
|
|
900
|
+
function no() {
|
|
901
|
+
const e = P(), t = dt({ sort: "descending" }), o = g("autoQuality"), { t: i } = _(), s = z();
|
|
902
902
|
return /* @__PURE__ */ l(
|
|
903
903
|
"div",
|
|
904
904
|
{
|
|
@@ -917,13 +917,13 @@ function to() {
|
|
|
917
917
|
className: u.menuBackButton,
|
|
918
918
|
onClick: e.back,
|
|
919
919
|
children: [
|
|
920
|
-
/* @__PURE__ */
|
|
921
|
-
/* @__PURE__ */
|
|
920
|
+
/* @__PURE__ */ n(U, {}),
|
|
921
|
+
/* @__PURE__ */ n("span", { children: i("BACK") })
|
|
922
922
|
]
|
|
923
923
|
}
|
|
924
924
|
),
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
-
/* @__PURE__ */
|
|
925
|
+
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: i("QUALITY") }),
|
|
926
|
+
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.map(({ value: a, label: c, select: r, selected: d }) => /* @__PURE__ */ l(
|
|
927
927
|
"button",
|
|
928
928
|
{
|
|
929
929
|
type: "button",
|
|
@@ -933,8 +933,8 @@ function to() {
|
|
|
933
933
|
tabIndex: -1,
|
|
934
934
|
className: u.menuItem,
|
|
935
935
|
children: [
|
|
936
|
-
/* @__PURE__ */
|
|
937
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
937
|
+
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: c })
|
|
938
938
|
]
|
|
939
939
|
},
|
|
940
940
|
a
|
|
@@ -943,45 +943,45 @@ function to() {
|
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
945
|
}
|
|
946
|
-
const
|
|
947
|
-
main:
|
|
948
|
-
speed:
|
|
949
|
-
captions:
|
|
950
|
-
captionLanguage:
|
|
951
|
-
captionFontSize:
|
|
952
|
-
captionManage:
|
|
953
|
-
quality:
|
|
954
|
-
},
|
|
946
|
+
const je = re(null), oo = {
|
|
947
|
+
main: Rn,
|
|
948
|
+
speed: Un,
|
|
949
|
+
captions: Xn,
|
|
950
|
+
captionLanguage: Jn,
|
|
951
|
+
captionFontSize: eo,
|
|
952
|
+
captionManage: to,
|
|
953
|
+
quality: no
|
|
954
|
+
}, io = {
|
|
955
955
|
name: "middleware",
|
|
956
956
|
async fn(e) {
|
|
957
|
-
const
|
|
957
|
+
const t = await kt(e);
|
|
958
958
|
return {
|
|
959
|
-
x: e.x -
|
|
959
|
+
x: e.x - t.right - 4,
|
|
960
960
|
y: e.y - 4
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
|
-
function
|
|
965
|
-
const e = w(), [
|
|
964
|
+
function so() {
|
|
965
|
+
const e = w(), [t, o] = M(["main"]), [i, s] = M(!1), a = f(() => {
|
|
966
966
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
967
967
|
}, [i]), c = f((C) => {
|
|
968
|
-
o((
|
|
968
|
+
o((A) => A.concat(C));
|
|
969
969
|
}, []), r = f(() => {
|
|
970
970
|
o((C) => C.length > 1 ? C.slice(0, -1) : C);
|
|
971
|
-
}, []), d =
|
|
971
|
+
}, []), d = B(() => oo[t[t.length - 1]], [t]), { refs: h, floatingStyles: b, context: v } = de({
|
|
972
972
|
open: i,
|
|
973
973
|
onOpenChange: a,
|
|
974
974
|
placement: "top-end",
|
|
975
|
-
whileElementsMounted:
|
|
976
|
-
middleware: [
|
|
977
|
-
}), k =
|
|
975
|
+
whileElementsMounted: me,
|
|
976
|
+
middleware: [io]
|
|
977
|
+
}), k = he(v, { escapeKey: !1 }), { getReferenceProps: y, getFloatingProps: I } = pe([k]), p = B(
|
|
978
978
|
() => ({ setPage: c, back: r, toggle: a }),
|
|
979
979
|
[r, c, a]
|
|
980
980
|
);
|
|
981
981
|
return {
|
|
982
982
|
Page: d,
|
|
983
983
|
open: i,
|
|
984
|
-
refs:
|
|
984
|
+
refs: h,
|
|
985
985
|
floatingStyles: b,
|
|
986
986
|
context: v,
|
|
987
987
|
getReferenceProps() {
|
|
@@ -990,28 +990,28 @@ function io() {
|
|
|
990
990
|
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
991
991
|
};
|
|
992
992
|
},
|
|
993
|
-
getFloatingProps:
|
|
994
|
-
contextValue:
|
|
993
|
+
getFloatingProps: I,
|
|
994
|
+
contextValue: p
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
const
|
|
997
|
+
const ao = "_settings-menu_qaqbm_1", lo = "_arrow_qaqbm_37", co = {
|
|
998
998
|
"settings-menu": "_settings-menu_qaqbm_1",
|
|
999
|
-
settingsMenu:
|
|
1000
|
-
arrow:
|
|
999
|
+
settingsMenu: ao,
|
|
1000
|
+
arrow: lo
|
|
1001
1001
|
};
|
|
1002
|
-
function
|
|
1002
|
+
function ro() {
|
|
1003
1003
|
const {
|
|
1004
1004
|
Page: e,
|
|
1005
|
-
context:
|
|
1005
|
+
context: t,
|
|
1006
1006
|
floatingStyles: o,
|
|
1007
1007
|
getFloatingProps: i,
|
|
1008
1008
|
getReferenceProps: s,
|
|
1009
1009
|
open: a,
|
|
1010
1010
|
refs: c,
|
|
1011
1011
|
contextValue: r
|
|
1012
|
-
} =
|
|
1013
|
-
return /* @__PURE__ */ l(
|
|
1014
|
-
/* @__PURE__ */
|
|
1012
|
+
} = so(), { t: d } = _();
|
|
1013
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
1014
|
+
/* @__PURE__ */ n(
|
|
1015
1015
|
"button",
|
|
1016
1016
|
{
|
|
1017
1017
|
ref: c.setReference,
|
|
@@ -1021,263 +1021,270 @@ function co() {
|
|
|
1021
1021
|
onClick: r.toggle,
|
|
1022
1022
|
"aria-expanded": a,
|
|
1023
1023
|
...s(),
|
|
1024
|
-
children: /* @__PURE__ */
|
|
1024
|
+
children: /* @__PURE__ */ n(rn, { className: "controls-button-icon icon-rotate" })
|
|
1025
1025
|
}
|
|
1026
1026
|
),
|
|
1027
|
-
a && /* @__PURE__ */
|
|
1027
|
+
a && /* @__PURE__ */ n(_e, { context: t, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ n(
|
|
1028
1028
|
"div",
|
|
1029
1029
|
{
|
|
1030
1030
|
"aria-labelledby": "submenu",
|
|
1031
|
-
className:
|
|
1031
|
+
className: co.settingsMenu,
|
|
1032
1032
|
ref: c.setFloating,
|
|
1033
1033
|
style: o,
|
|
1034
1034
|
...i(),
|
|
1035
|
-
children: /* @__PURE__ */
|
|
1035
|
+
children: /* @__PURE__ */ n(je.Provider, { value: r, children: /* @__PURE__ */ n(e, {}) })
|
|
1036
1036
|
}
|
|
1037
1037
|
) })
|
|
1038
1038
|
] });
|
|
1039
1039
|
}
|
|
1040
|
-
function Ke(e,
|
|
1040
|
+
function Ke(e, t = 1e3) {
|
|
1041
1041
|
return function() {
|
|
1042
|
-
const i =
|
|
1043
|
-
return
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1042
|
+
const i = T(), [s, a] = M(null), c = f(() => a(null), []);
|
|
1043
|
+
return D(() => {
|
|
1044
|
+
if (!i)
|
|
1045
|
+
return () => {
|
|
1046
|
+
};
|
|
1047
|
+
const r = new AbortController();
|
|
1048
|
+
let d;
|
|
1049
|
+
return i.addEventListener(
|
|
1050
|
+
"keyboardAction",
|
|
1051
|
+
(h) => {
|
|
1052
|
+
clearTimeout(d);
|
|
1053
|
+
const b = h.detail;
|
|
1054
|
+
a(/* @__PURE__ */ n(e, { action: b })), d = setTimeout(c, t);
|
|
1055
|
+
},
|
|
1056
|
+
{ signal: r.signal }
|
|
1057
|
+
), () => {
|
|
1058
|
+
clearTimeout(d), r.abort();
|
|
1059
|
+
};
|
|
1060
|
+
}, [t]), s;
|
|
1048
1061
|
};
|
|
1049
1062
|
}
|
|
1050
|
-
const
|
|
1051
|
-
"feedback-overlay": "_feedback-
|
|
1052
|
-
feedbackOverlay:
|
|
1053
|
-
"feedback-message": "_feedback-
|
|
1054
|
-
feedbackMessage:
|
|
1055
|
-
"feedback-icon": "_feedback-
|
|
1056
|
-
feedbackIcon:
|
|
1057
|
-
"feedback-icon-animation": "_feedback-icon-
|
|
1058
|
-
feedbackIconAnimation:
|
|
1063
|
+
const fe = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), be = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), uo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), mo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), $e = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Ue = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), qe = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 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" }) }), ho = "_feedback-overlay_3kkqe_1", po = "_feedback-message_3kkqe_14", _o = "_feedback-icon_3kkqe_30", Co = "_feedback-icon-animation_3kkqe_1", N = {
|
|
1064
|
+
"feedback-overlay": "_feedback-overlay_3kkqe_1",
|
|
1065
|
+
feedbackOverlay: ho,
|
|
1066
|
+
"feedback-message": "_feedback-message_3kkqe_14",
|
|
1067
|
+
feedbackMessage: po,
|
|
1068
|
+
"feedback-icon": "_feedback-icon_3kkqe_30",
|
|
1069
|
+
feedbackIcon: _o,
|
|
1070
|
+
"feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
|
|
1071
|
+
feedbackIconAnimation: Co
|
|
1059
1072
|
};
|
|
1060
|
-
function
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1073
|
+
function fo({ action: e }) {
|
|
1074
|
+
const t = T();
|
|
1075
|
+
if (!t)
|
|
1076
|
+
return null;
|
|
1077
|
+
switch (e) {
|
|
1064
1078
|
case "togglePaused":
|
|
1065
|
-
return /* @__PURE__ */
|
|
1066
|
-
case "toggleCaptions":
|
|
1067
|
-
case "nextCaptionLanguage":
|
|
1068
|
-
case "previousCaptionLanguage":
|
|
1069
|
-
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(Fe, {}) }) : null;
|
|
1070
|
-
case "volumeUp":
|
|
1071
|
-
case "volumeDown":
|
|
1072
|
-
case "toggleMuted":
|
|
1073
|
-
return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t($e, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(qe, {}) : /* @__PURE__ */ t(Ue, {}) });
|
|
1079
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(fe, {}) : /* @__PURE__ */ n(be, {}) });
|
|
1074
1080
|
case "seekForward":
|
|
1075
1081
|
case "seekForward10":
|
|
1076
|
-
return /* @__PURE__ */
|
|
1082
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(uo, { className: "right" }) });
|
|
1077
1083
|
case "seekBackward":
|
|
1078
1084
|
case "seekBackward10":
|
|
1079
|
-
return /* @__PURE__ */
|
|
1085
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(mo, { className: "left" }) });
|
|
1086
|
+
case "captionsChange":
|
|
1087
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Fe, {}) });
|
|
1088
|
+
case "volumeChange":
|
|
1089
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.muted || t.volume === 0 ? /* @__PURE__ */ n($e, {}) : t.volume >= 0.5 ? /* @__PURE__ */ n(qe, {}) : /* @__PURE__ */ n(Ue, {}) });
|
|
1080
1090
|
default:
|
|
1081
1091
|
return null;
|
|
1082
1092
|
}
|
|
1083
1093
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
case "
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
case "
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
case "decreasePlaybackRate":
|
|
1098
|
-
case "resetPlaybackRate":
|
|
1099
|
-
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
|
|
1094
|
+
function bo({ action: e }) {
|
|
1095
|
+
const { t } = _(), o = T();
|
|
1096
|
+
if (!o)
|
|
1097
|
+
return null;
|
|
1098
|
+
switch (e) {
|
|
1099
|
+
case "captionsChange":
|
|
1100
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: o.textTracks.selected ? t("CAPTION_LANGUAGE", {
|
|
1101
|
+
language: o.textTracks.selected.label
|
|
1102
|
+
}) : `${t("CAPTIONS")}: ${t("OFF")}` });
|
|
1103
|
+
case "volumeChange":
|
|
1104
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: o.muted || o.volume === 0 ? t("MUTED") : t("VOLUME_VALUE", { volume: (o.volume * 100).toFixed(0) }) });
|
|
1105
|
+
case "playbackRateChange":
|
|
1106
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("PLAYBACK_SPEED_MESSAGE", { speed: o.playbackRate }) });
|
|
1100
1107
|
case "seekForward":
|
|
1101
|
-
return /* @__PURE__ */
|
|
1108
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 5 }) });
|
|
1102
1109
|
case "seekForward10":
|
|
1103
|
-
return /* @__PURE__ */
|
|
1110
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 10 }) });
|
|
1104
1111
|
case "seekBackward":
|
|
1105
|
-
return /* @__PURE__ */
|
|
1112
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 5 }) });
|
|
1106
1113
|
case "seekBackward10":
|
|
1107
|
-
return /* @__PURE__ */
|
|
1114
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 10 }) });
|
|
1108
1115
|
default:
|
|
1109
1116
|
return null;
|
|
1110
1117
|
}
|
|
1111
1118
|
}
|
|
1112
|
-
const go = Ke(
|
|
1119
|
+
const go = Ke(fo, 300), vo = Ke(bo, 1e3);
|
|
1113
1120
|
function Ge() {
|
|
1114
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1115
|
-
/* @__PURE__ */
|
|
1116
|
-
/* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ l("div", { className: N.feedbackOverlay, children: [
|
|
1122
|
+
/* @__PURE__ */ n(go, {}),
|
|
1123
|
+
/* @__PURE__ */ n(vo, {})
|
|
1117
1124
|
] });
|
|
1118
1125
|
}
|
|
1119
|
-
const
|
|
1126
|
+
const wo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), yo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), ko = "_full-screen-button_1xm32_2", Lo = {
|
|
1120
1127
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
1121
|
-
fullScreenButton:
|
|
1128
|
+
fullScreenButton: ko
|
|
1122
1129
|
};
|
|
1123
|
-
function
|
|
1124
|
-
const e = g("fullscreen"),
|
|
1125
|
-
return i.hideFullScreen ? null : /* @__PURE__ */
|
|
1130
|
+
function xo() {
|
|
1131
|
+
const e = g("fullscreen"), t = T(), o = w(), i = L(), { t: s } = _();
|
|
1132
|
+
return i.hideFullScreen ? null : /* @__PURE__ */ n(
|
|
1126
1133
|
"button",
|
|
1127
1134
|
{
|
|
1128
1135
|
role: "button",
|
|
1129
1136
|
type: "button",
|
|
1130
1137
|
"aria-label": s(e ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
|
|
1131
1138
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1132
|
-
className: `controls-button ${
|
|
1139
|
+
className: `controls-button ${Lo.fullScreenButton}`,
|
|
1133
1140
|
onClick: () => {
|
|
1134
|
-
e ?
|
|
1141
|
+
e ? t == null || t.exitFullscreen() : t == null || t.enterFullscreen();
|
|
1135
1142
|
},
|
|
1136
|
-
children: e ? /* @__PURE__ */
|
|
1143
|
+
children: e ? /* @__PURE__ */ n(yo, { className: "controls-button-icon" }) : /* @__PURE__ */ n(wo, { className: "controls-button-icon" })
|
|
1137
1144
|
}
|
|
1138
1145
|
);
|
|
1139
1146
|
}
|
|
1140
|
-
const
|
|
1147
|
+
const Mo = "_gestures-container_1fn3b_1", No = "_gesture_1fn3b_1", Me = {
|
|
1141
1148
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
1142
|
-
gesturesContainer:
|
|
1143
|
-
gesture:
|
|
1149
|
+
gesturesContainer: Mo,
|
|
1150
|
+
gesture: No
|
|
1144
1151
|
};
|
|
1145
|
-
function
|
|
1146
|
-
const e =
|
|
1152
|
+
function Po() {
|
|
1153
|
+
const e = ie(), t = () => {
|
|
1147
1154
|
e.togglePaused();
|
|
1148
1155
|
};
|
|
1149
|
-
return /* @__PURE__ */
|
|
1156
|
+
return /* @__PURE__ */ n("div", { className: Me.gesturesContainer, children: /* @__PURE__ */ n("div", { "aria-hidden": !0, className: Me.gesture, onClick: t }) });
|
|
1150
1157
|
}
|
|
1151
|
-
const Qe = (e) => /* @__PURE__ */
|
|
1158
|
+
const Qe = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), Io = "_controls-overlay_poi8b_1", Ho = "_keyboard-shortcuts-overlay_poi8b_11", So = "_screen-reader-content_poi8b_75", To = "_controls-button_poi8b_89", Eo = "_keyboard-shortcuts-button_poi8b_101", Vo = "_kebab-menu-button_poi8b_110", Bo = "_kebab-menu_poi8b_110", Ao = "_kebab-menu-item_poi8b_139", Ro = "_close-button_poi8b_178", Oo = "_arrow_poi8b_192", H = {
|
|
1152
1159
|
"controls-overlay": "_controls-overlay_poi8b_1",
|
|
1153
|
-
controlsOverlay:
|
|
1160
|
+
controlsOverlay: Io,
|
|
1154
1161
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_poi8b_11",
|
|
1155
|
-
keyboardShortcutsOverlay:
|
|
1162
|
+
keyboardShortcutsOverlay: Ho,
|
|
1156
1163
|
"screen-reader-content": "_screen-reader-content_poi8b_75",
|
|
1157
|
-
screenReaderContent:
|
|
1164
|
+
screenReaderContent: So,
|
|
1158
1165
|
"controls-button": "_controls-button_poi8b_89",
|
|
1159
|
-
controlsButton:
|
|
1166
|
+
controlsButton: To,
|
|
1160
1167
|
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_poi8b_101",
|
|
1161
|
-
keyboardShortcutsButton:
|
|
1168
|
+
keyboardShortcutsButton: Eo,
|
|
1162
1169
|
"kebab-menu-button": "_kebab-menu-button_poi8b_110",
|
|
1163
1170
|
kebabMenuButton: Vo,
|
|
1164
1171
|
"kebab-menu": "_kebab-menu_poi8b_110",
|
|
1165
|
-
kebabMenu:
|
|
1172
|
+
kebabMenu: Bo,
|
|
1166
1173
|
"kebab-menu-item": "_kebab-menu-item_poi8b_139",
|
|
1167
|
-
kebabMenuItem:
|
|
1174
|
+
kebabMenuItem: Ao,
|
|
1168
1175
|
"close-button": "_close-button_poi8b_178",
|
|
1169
|
-
closeButton:
|
|
1170
|
-
arrow:
|
|
1176
|
+
closeButton: Ro,
|
|
1177
|
+
arrow: Oo
|
|
1171
1178
|
};
|
|
1172
|
-
function
|
|
1173
|
-
const { t
|
|
1174
|
-
|
|
1179
|
+
function Fo({ onClose: e }) {
|
|
1180
|
+
const { t } = _();
|
|
1181
|
+
Tn(e);
|
|
1175
1182
|
const o = (i) => {
|
|
1176
1183
|
i && i.focus();
|
|
1177
1184
|
};
|
|
1178
1185
|
return /* @__PURE__ */ l(
|
|
1179
1186
|
"div",
|
|
1180
1187
|
{
|
|
1181
|
-
className:
|
|
1188
|
+
className: H.keyboardShortcutsOverlay,
|
|
1182
1189
|
tabIndex: 0,
|
|
1183
1190
|
ref: o,
|
|
1184
1191
|
role: "dialog",
|
|
1185
|
-
"aria-label":
|
|
1192
|
+
"aria-label": t("KEYBOARD_SHORTCUTS"),
|
|
1186
1193
|
children: [
|
|
1187
1194
|
/* @__PURE__ */ l("header", { children: [
|
|
1188
|
-
/* @__PURE__ */
|
|
1189
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ n("h2", { children: t("KEYBOARD_SHORTCUTS") }),
|
|
1196
|
+
/* @__PURE__ */ n(
|
|
1190
1197
|
"button",
|
|
1191
1198
|
{
|
|
1192
1199
|
type: "button",
|
|
1193
|
-
className:
|
|
1200
|
+
className: H.closeButton,
|
|
1194
1201
|
onClick: e,
|
|
1195
|
-
"aria-label":
|
|
1196
|
-
children: /* @__PURE__ */
|
|
1202
|
+
"aria-label": t("CLOSE"),
|
|
1203
|
+
children: /* @__PURE__ */ n(Qe, {})
|
|
1197
1204
|
}
|
|
1198
1205
|
)
|
|
1199
1206
|
] }),
|
|
1200
1207
|
/* @__PURE__ */ l("table", { children: [
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ n("caption", { className: H.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
|
|
1209
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
1210
|
+
/* @__PURE__ */ n("th", { children: t("ACTION") }),
|
|
1211
|
+
/* @__PURE__ */ n("th", { children: t("SHORTCUT") })
|
|
1205
1212
|
] }) }),
|
|
1206
1213
|
/* @__PURE__ */ l("tbody", { children: [
|
|
1207
1214
|
/* @__PURE__ */ l("tr", { children: [
|
|
1208
|
-
/* @__PURE__ */
|
|
1209
|
-
/* @__PURE__ */
|
|
1215
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 5 }) }),
|
|
1216
|
+
/* @__PURE__ */ n("td", { children: t("LEFT_ARROW") })
|
|
1210
1217
|
] }),
|
|
1211
1218
|
/* @__PURE__ */ l("tr", { children: [
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 5 }) }),
|
|
1220
|
+
/* @__PURE__ */ n("td", { children: t("RIGHT_ARROW") })
|
|
1214
1221
|
] }),
|
|
1215
1222
|
/* @__PURE__ */ l("tr", { children: [
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 10 }) }),
|
|
1224
|
+
/* @__PURE__ */ n("td", { children: "J" })
|
|
1218
1225
|
] }),
|
|
1219
1226
|
/* @__PURE__ */ l("tr", { children: [
|
|
1220
|
-
/* @__PURE__ */
|
|
1221
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 10 }) }),
|
|
1228
|
+
/* @__PURE__ */ n("td", { children: "L" })
|
|
1222
1229
|
] }),
|
|
1223
1230
|
/* @__PURE__ */ l("tr", { children: [
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1231
|
+
/* @__PURE__ */ n("td", { children: t("INCREASE_VOLUME", { percent: 5 }) }),
|
|
1232
|
+
/* @__PURE__ */ n("td", { children: t("UP_ARROW") })
|
|
1226
1233
|
] }),
|
|
1227
1234
|
/* @__PURE__ */ l("tr", { children: [
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1235
|
+
/* @__PURE__ */ n("td", { children: t("DECREASE_VOLUME", { percent: 5 }) }),
|
|
1236
|
+
/* @__PURE__ */ n("td", { children: t("DOWN_ARROW") })
|
|
1230
1237
|
] }),
|
|
1231
1238
|
/* @__PURE__ */ l("tr", { children: [
|
|
1232
|
-
/* @__PURE__ */
|
|
1233
|
-
/* @__PURE__ */
|
|
1239
|
+
/* @__PURE__ */ n("td", { children: t("TOGGLE_MUTED") }),
|
|
1240
|
+
/* @__PURE__ */ n("td", { children: "M" })
|
|
1234
1241
|
] }),
|
|
1235
1242
|
/* @__PURE__ */ l("tr", { children: [
|
|
1236
|
-
/* @__PURE__ */
|
|
1243
|
+
/* @__PURE__ */ n("td", { children: t("TOGGLE_PLAY_PAUSE") }),
|
|
1237
1244
|
/* @__PURE__ */ l("td", { children: [
|
|
1238
|
-
|
|
1245
|
+
t("SPACE"),
|
|
1239
1246
|
", K"
|
|
1240
1247
|
] })
|
|
1241
1248
|
] }),
|
|
1242
1249
|
/* @__PURE__ */ l("tr", { children: [
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ n("td", { children: t("ENTER_FULLSCREEN") }),
|
|
1251
|
+
/* @__PURE__ */ n("td", { children: "F" })
|
|
1245
1252
|
] }),
|
|
1246
1253
|
/* @__PURE__ */ l("tr", { children: [
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ n("td", { children: t("EXIT_FULLSCREEN") }),
|
|
1255
|
+
/* @__PURE__ */ n("td", { children: "Esc, F" })
|
|
1249
1256
|
] }),
|
|
1250
1257
|
/* @__PURE__ */ l("tr", { children: [
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ n("td", { children: t("TOGGLE_CAPTIONS") }),
|
|
1259
|
+
/* @__PURE__ */ n("td", { children: "C" })
|
|
1253
1260
|
] }),
|
|
1254
1261
|
/* @__PURE__ */ l("tr", { children: [
|
|
1255
|
-
/* @__PURE__ */
|
|
1256
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ n("td", { children: t("NEXT_CAPTION_LANGUAGE") }),
|
|
1263
|
+
/* @__PURE__ */ n("td", { children: "V" })
|
|
1257
1264
|
] }),
|
|
1258
1265
|
/* @__PURE__ */ l("tr", { children: [
|
|
1259
|
-
/* @__PURE__ */
|
|
1260
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ n("td", { children: t("PREVIOUS_CAPTION_LANGUAGE") }),
|
|
1267
|
+
/* @__PURE__ */ n("td", { children: "X" })
|
|
1261
1268
|
] }),
|
|
1262
1269
|
/* @__PURE__ */ l("tr", { children: [
|
|
1263
|
-
/* @__PURE__ */
|
|
1264
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ n("td", { children: t("DECREASE_PLAYBACK_SPEED") }),
|
|
1271
|
+
/* @__PURE__ */ n("td", { children: "A" })
|
|
1265
1272
|
] }),
|
|
1266
1273
|
/* @__PURE__ */ l("tr", { children: [
|
|
1267
|
-
/* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */
|
|
1274
|
+
/* @__PURE__ */ n("td", { children: t("RESET_PLAYBACK_SPEED") }),
|
|
1275
|
+
/* @__PURE__ */ n("td", { children: "S" })
|
|
1269
1276
|
] }),
|
|
1270
1277
|
/* @__PURE__ */ l("tr", { children: [
|
|
1271
|
-
/* @__PURE__ */
|
|
1272
|
-
/* @__PURE__ */
|
|
1278
|
+
/* @__PURE__ */ n("td", { children: t("INCREASE_PLAYBACK_SPEED") }),
|
|
1279
|
+
/* @__PURE__ */ n("td", { children: "D" })
|
|
1273
1280
|
] }),
|
|
1274
1281
|
/* @__PURE__ */ l("tr", { children: [
|
|
1275
|
-
/* @__PURE__ */
|
|
1276
|
-
/* @__PURE__ */
|
|
1282
|
+
/* @__PURE__ */ n("td", { children: t("JUMP_TO_START") }),
|
|
1283
|
+
/* @__PURE__ */ n("td", { children: "0" })
|
|
1277
1284
|
] }),
|
|
1278
1285
|
/* @__PURE__ */ l("tr", { children: [
|
|
1279
|
-
/* @__PURE__ */
|
|
1280
|
-
/* @__PURE__ */
|
|
1286
|
+
/* @__PURE__ */ n("td", { children: t("JUMP_TO_PERCENTAGE") }),
|
|
1287
|
+
/* @__PURE__ */ n("td", { children: "1-9" })
|
|
1281
1288
|
] })
|
|
1282
1289
|
] })
|
|
1283
1290
|
] })
|
|
@@ -1285,86 +1292,86 @@ function Oo({ onClose: e }) {
|
|
|
1285
1292
|
}
|
|
1286
1293
|
);
|
|
1287
1294
|
}
|
|
1288
|
-
const
|
|
1289
|
-
share: /* @__PURE__ */
|
|
1290
|
-
transcript: /* @__PURE__ */
|
|
1291
|
-
media: /* @__PURE__ */
|
|
1292
|
-
delete: /* @__PURE__ */
|
|
1293
|
-
},
|
|
1294
|
-
function
|
|
1295
|
-
const [e,
|
|
1296
|
-
|
|
1297
|
-
}, r =
|
|
1295
|
+
const Zo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), Do = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), zo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), jo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), Ko = {
|
|
1296
|
+
share: /* @__PURE__ */ n(Do, {}),
|
|
1297
|
+
transcript: /* @__PURE__ */ n(zo, {}),
|
|
1298
|
+
media: /* @__PURE__ */ n(jo, {}),
|
|
1299
|
+
delete: /* @__PURE__ */ n(ze, {})
|
|
1300
|
+
}, $o = (e) => typeof e != "string";
|
|
1301
|
+
function Uo() {
|
|
1302
|
+
const [e, t] = M(!1), [o, i] = M(null), s = w(), a = L(), c = () => {
|
|
1303
|
+
t(!e), s.setGlobalKeysDisabled(!e);
|
|
1304
|
+
}, r = oe(null), d = oe([]), { refs: h, floatingStyles: b, context: v } = de({
|
|
1298
1305
|
open: e,
|
|
1299
1306
|
onOpenChange: c,
|
|
1300
|
-
whileElementsMounted:
|
|
1307
|
+
whileElementsMounted: me,
|
|
1301
1308
|
placement: "bottom-end",
|
|
1302
1309
|
middleware: [
|
|
1303
1310
|
Se(),
|
|
1304
1311
|
Te(10),
|
|
1305
|
-
|
|
1312
|
+
Ee({
|
|
1306
1313
|
element: r
|
|
1307
1314
|
})
|
|
1308
1315
|
]
|
|
1309
|
-
}), k =
|
|
1316
|
+
}), k = Lt(v, {
|
|
1310
1317
|
listRef: d,
|
|
1311
1318
|
activeIndex: o,
|
|
1312
1319
|
onNavigate: i
|
|
1313
|
-
}), y =
|
|
1320
|
+
}), y = he(v), { getReferenceProps: I, getFloatingProps: p, getItemProps: C } = pe(
|
|
1314
1321
|
[y, k]
|
|
1315
|
-
), { t:
|
|
1316
|
-
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(
|
|
1317
|
-
/* @__PURE__ */
|
|
1322
|
+
), { t: A } = _();
|
|
1323
|
+
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(X, { children: [
|
|
1324
|
+
/* @__PURE__ */ n(
|
|
1318
1325
|
"button",
|
|
1319
1326
|
{
|
|
1320
|
-
"aria-label":
|
|
1327
|
+
"aria-label": A("KEBAB_MENU"),
|
|
1321
1328
|
type: "button",
|
|
1322
|
-
className: `${
|
|
1329
|
+
className: `${H.controlsButton} ${H.kebabMenuButton}`,
|
|
1323
1330
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
1324
|
-
ref:
|
|
1325
|
-
...
|
|
1331
|
+
ref: h.setReference,
|
|
1332
|
+
...I({
|
|
1326
1333
|
onClick: () => c()
|
|
1327
1334
|
}),
|
|
1328
|
-
children: /* @__PURE__ */
|
|
1335
|
+
children: /* @__PURE__ */ n(Zo, {})
|
|
1329
1336
|
}
|
|
1330
1337
|
),
|
|
1331
|
-
e && /* @__PURE__ */
|
|
1338
|
+
e && /* @__PURE__ */ n(_e, { context: v, modal: !1, children: /* @__PURE__ */ l(
|
|
1332
1339
|
"div",
|
|
1333
1340
|
{
|
|
1334
|
-
ref:
|
|
1341
|
+
ref: h.setFloating,
|
|
1335
1342
|
style: b,
|
|
1336
|
-
className:
|
|
1337
|
-
...
|
|
1343
|
+
className: H.kebabMenu,
|
|
1344
|
+
...p(),
|
|
1338
1345
|
children: [
|
|
1339
1346
|
a.kebabMenuElements.map(
|
|
1340
|
-
({ id:
|
|
1347
|
+
({ id: R, text: q, icon: V, onClick: O }, G) => /* @__PURE__ */ l(
|
|
1341
1348
|
"button",
|
|
1342
1349
|
{
|
|
1343
|
-
tabIndex: o ===
|
|
1350
|
+
tabIndex: o === G ? 0 : -1,
|
|
1344
1351
|
type: "button",
|
|
1345
|
-
className:
|
|
1346
|
-
ref: (
|
|
1347
|
-
d.current[
|
|
1352
|
+
className: H.kebabMenuItem,
|
|
1353
|
+
ref: (ae) => {
|
|
1354
|
+
d.current[G] = ae;
|
|
1348
1355
|
},
|
|
1349
1356
|
...C({
|
|
1350
1357
|
onClick: () => {
|
|
1351
|
-
|
|
1358
|
+
O(R), t(!1);
|
|
1352
1359
|
}
|
|
1353
1360
|
}),
|
|
1354
1361
|
children: [
|
|
1355
|
-
|
|
1356
|
-
|
|
1362
|
+
$o(V) ? V : Ko[V],
|
|
1363
|
+
q
|
|
1357
1364
|
]
|
|
1358
1365
|
},
|
|
1359
|
-
|
|
1366
|
+
R
|
|
1360
1367
|
)
|
|
1361
1368
|
),
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
-
|
|
1369
|
+
/* @__PURE__ */ n(
|
|
1370
|
+
Ve,
|
|
1364
1371
|
{
|
|
1365
1372
|
ref: r,
|
|
1366
1373
|
context: v,
|
|
1367
|
-
className:
|
|
1374
|
+
className: H.arrow
|
|
1368
1375
|
}
|
|
1369
1376
|
)
|
|
1370
1377
|
]
|
|
@@ -1372,182 +1379,166 @@ function $o() {
|
|
|
1372
1379
|
) })
|
|
1373
1380
|
] }) : null;
|
|
1374
1381
|
}
|
|
1375
|
-
const
|
|
1376
|
-
function
|
|
1377
|
-
const [e,
|
|
1378
|
-
|
|
1382
|
+
const qo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) });
|
|
1383
|
+
function Go() {
|
|
1384
|
+
const [e, t] = M(!1), [o, i] = M(!1), [s, a] = M(!1), c = w(), r = g("playing"), d = ie(), { t: h } = _(), b = f(() => {
|
|
1385
|
+
t(!0), c.disableInteractions(), r && (a(!0), d.pause());
|
|
1379
1386
|
}, [r, d, c]), v = f(() => {
|
|
1380
|
-
|
|
1387
|
+
t(!1), i(!0), c.enableInteractions(), s && (a(!1), d.play());
|
|
1381
1388
|
}, [s, d, c]), k = f(
|
|
1382
1389
|
(y) => o && (y == null ? void 0 : y.focus()),
|
|
1383
1390
|
[o]
|
|
1384
1391
|
);
|
|
1385
|
-
return e ? /* @__PURE__ */
|
|
1386
|
-
/* @__PURE__ */
|
|
1392
|
+
return e ? /* @__PURE__ */ n(Fo, { onClose: v }) : /* @__PURE__ */ l("div", { className: H.controlsOverlay, children: [
|
|
1393
|
+
/* @__PURE__ */ n(
|
|
1387
1394
|
"button",
|
|
1388
1395
|
{
|
|
1389
1396
|
ref: k,
|
|
1390
|
-
"aria-label":
|
|
1397
|
+
"aria-label": h("KEYBOARD_SHORTCUTS"),
|
|
1391
1398
|
type: "button",
|
|
1392
|
-
className: `${
|
|
1399
|
+
className: `${H.controlsButton} ${H.keyboardShortcutsButton}`,
|
|
1393
1400
|
onClick: b,
|
|
1394
1401
|
tabIndex: c.state.interactionsDisabled ? -1 : 0,
|
|
1395
|
-
children: /* @__PURE__ */
|
|
1402
|
+
children: /* @__PURE__ */ n(qo, {})
|
|
1396
1403
|
}
|
|
1397
1404
|
),
|
|
1398
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ n(Uo, {})
|
|
1399
1406
|
] });
|
|
1400
1407
|
}
|
|
1401
|
-
const
|
|
1408
|
+
const Qo = "_play-pause-button_1834v_1", Wo = {
|
|
1402
1409
|
"play-pause-button": "_play-pause-button_1834v_1",
|
|
1403
|
-
playPauseButton:
|
|
1410
|
+
playPauseButton: Qo
|
|
1404
1411
|
};
|
|
1405
|
-
function
|
|
1406
|
-
const e =
|
|
1407
|
-
return e ? /* @__PURE__ */
|
|
1412
|
+
function Yo() {
|
|
1413
|
+
const e = T(), t = w(), o = g("paused"), { t: i } = _();
|
|
1414
|
+
return e ? /* @__PURE__ */ n(
|
|
1408
1415
|
"button",
|
|
1409
1416
|
{
|
|
1410
1417
|
role: "button",
|
|
1411
1418
|
type: "button",
|
|
1412
|
-
className: `controls-button ${
|
|
1419
|
+
className: `controls-button ${Wo.playPauseButton}`,
|
|
1413
1420
|
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1414
|
-
tabIndex:
|
|
1421
|
+
tabIndex: t.state.interactionsDisabled ? -1 : 0,
|
|
1415
1422
|
onClick: () => {
|
|
1416
1423
|
e.paused ? e.remoteControl.play() : e.remoteControl.pause();
|
|
1417
1424
|
},
|
|
1418
|
-
children: o ? /* @__PURE__ */
|
|
1425
|
+
children: o ? /* @__PURE__ */ n(be, { className: "controls-button-icon" }) : /* @__PURE__ */ n(fe, { className: "controls-button-icon" })
|
|
1419
1426
|
}
|
|
1420
1427
|
) : null;
|
|
1421
1428
|
}
|
|
1422
|
-
const
|
|
1423
|
-
poster:
|
|
1429
|
+
const Xo = "_poster_195hi_1", Jo = {
|
|
1430
|
+
poster: Xo
|
|
1424
1431
|
};
|
|
1425
|
-
function
|
|
1426
|
-
const
|
|
1427
|
-
return
|
|
1432
|
+
function e1({ src: e }) {
|
|
1433
|
+
const t = g("source");
|
|
1434
|
+
return t.type === "video/youtube" || t.type === "video/vimeo" ? null : /* @__PURE__ */ n(mt, { src: e, className: Jo.poster });
|
|
1428
1435
|
}
|
|
1429
|
-
const
|
|
1436
|
+
const t1 = "_small-layout-overlay_80lyi_1", n1 = "_small-layout-button_80lyi_14", o1 = "_small-layout-icon-play_80lyi_24", i1 = "_small-layout-icon-pause_80lyi_30", s1 = "_full-screen-close-icon_80lyi_36", a1 = "_fade-out_80lyi_1", W = {
|
|
1430
1437
|
"small-layout-overlay": "_small-layout-overlay_80lyi_1",
|
|
1431
|
-
smallLayoutOverlay:
|
|
1438
|
+
smallLayoutOverlay: t1,
|
|
1432
1439
|
"small-layout-button": "_small-layout-button_80lyi_14",
|
|
1433
|
-
smallLayoutButton:
|
|
1440
|
+
smallLayoutButton: n1,
|
|
1434
1441
|
"small-layout-icon-play": "_small-layout-icon-play_80lyi_24",
|
|
1435
|
-
smallLayoutIconPlay:
|
|
1442
|
+
smallLayoutIconPlay: o1,
|
|
1436
1443
|
"small-layout-icon-pause": "_small-layout-icon-pause_80lyi_30",
|
|
1437
|
-
smallLayoutIconPause:
|
|
1444
|
+
smallLayoutIconPause: i1,
|
|
1438
1445
|
"full-screen-close-icon": "_full-screen-close-icon_80lyi_36",
|
|
1439
|
-
fullScreenCloseIcon:
|
|
1446
|
+
fullScreenCloseIcon: s1,
|
|
1440
1447
|
"fade-out": "_fade-out_80lyi_1",
|
|
1441
|
-
fadeOut:
|
|
1448
|
+
fadeOut: a1
|
|
1442
1449
|
};
|
|
1443
|
-
function
|
|
1450
|
+
function l1() {
|
|
1444
1451
|
const e = g("paused");
|
|
1445
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
/* @__PURE__ */
|
|
1452
|
+
return /* @__PURE__ */ l("div", { className: W.smallLayoutOverlay, children: [
|
|
1453
|
+
/* @__PURE__ */ n(ht, { className: W.fullScreenCloseIcon, children: /* @__PURE__ */ n(Qe, {}) }),
|
|
1454
|
+
/* @__PURE__ */ n("i", { className: W.smallLayoutButton, children: e ? /* @__PURE__ */ n(be, { className: W.smallLayoutIconPlay }) : /* @__PURE__ */ n(fe, { className: W.smallLayoutIconPause }) })
|
|
1448
1455
|
] });
|
|
1449
1456
|
}
|
|
1450
|
-
const
|
|
1457
|
+
const c1 = "_time-indicator_1uygf_1", r1 = {
|
|
1451
1458
|
"time-indicator": "_time-indicator_1uygf_1",
|
|
1452
|
-
timeIndicator:
|
|
1459
|
+
timeIndicator: c1
|
|
1453
1460
|
};
|
|
1454
|
-
function
|
|
1455
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1456
|
-
/* @__PURE__ */
|
|
1461
|
+
function u1() {
|
|
1462
|
+
return /* @__PURE__ */ l("div", { className: r1.timeIndicator, children: [
|
|
1463
|
+
/* @__PURE__ */ n(Le, { type: "current" }),
|
|
1457
1464
|
"/",
|
|
1458
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ n(Le, { type: "duration" })
|
|
1459
1466
|
] });
|
|
1460
1467
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
if (typeof e == "string" || typeof e == "number") i += e;
|
|
1464
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1465
|
-
var s = e.length;
|
|
1466
|
-
for (n = 0; n < s; n++) e[n] && (o = We(e[n])) && (i && (i += " "), i += o);
|
|
1467
|
-
} else for (o in e) e[o] && (i && (i += " "), i += o);
|
|
1468
|
-
return i;
|
|
1469
|
-
}
|
|
1470
|
-
function u1() {
|
|
1471
|
-
for (var e, n, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (n = We(e)) && (i && (i += " "), i += n);
|
|
1472
|
-
return i;
|
|
1473
|
-
}
|
|
1474
|
-
const d1 = "_comment-markers_1ldxg_1", m1 = "_comment-marker_1ldxg_1", h1 = "_timeline-wrapper_1ldxg_27", p1 = "_track_1ldxg_41", _1 = "_thumb_1ldxg_52", C1 = "_root_1ldxg_66", f1 = "_track-inner_1ldxg_96", g1 = "_progress_1ldxg_102", b1 = "_track-fill_1ldxg_108", v1 = "_pins_1ldxg_125", w1 = "_pin-button_1ldxg_138", y1 = "_annotation-pin_1ldxg_158", k1 = "_quiz-pin_1ldxg_163", L1 = "_pin-completed_1ldxg_168", x1 = "_annotation-pin-child_1ldxg_173", M1 = "_quiz-pin-child_1ldxg_177", N1 = "_interactive-pin-container_1ldxg_182", P1 = "_interactive-pin-wrapper_1ldxg_192", I1 = "_interactive-pin-icon_1ldxg_198", H1 = "_interactive-pin_1ldxg_182", S1 = "_bg_1ldxg_212", T1 = "_symbol_1ldxg_216", V1 = "_interactive-pin-button_1ldxg_221", A1 = "_interactive-pin-menu_1ldxg_241", E1 = "_interactive-pin-menu-item_1ldxg_255", B1 = "_arrow_1ldxg_276", m = {
|
|
1475
|
-
"comment-markers": "_comment-markers_1ldxg_1",
|
|
1468
|
+
const d1 = "_comment-markers_1rxwh_1", m1 = "_comment-marker_1rxwh_1", h1 = "_timeline-wrapper_1rxwh_27", p1 = "_track_1rxwh_41", _1 = "_thumb_1rxwh_52", C1 = "_root_1rxwh_66", f1 = "_track-inner_1rxwh_96", b1 = "_progress_1rxwh_102", g1 = "_track-fill_1rxwh_108", v1 = "_pins_1rxwh_125", w1 = "_pin-button_1rxwh_138", y1 = "_annotation-pin_1rxwh_158", k1 = "_quiz-pin_1rxwh_163", L1 = "_annotation-pin-child_1rxwh_168", x1 = "_quiz-pin-child_1rxwh_172", M1 = "_interactive-pin-container_1rxwh_177", N1 = "_interactive-pin-wrapper_1rxwh_187", P1 = "_interactive-pin-icon_1rxwh_193", I1 = "_interactive-pin_1rxwh_177", H1 = "_bg_1rxwh_207", S1 = "_symbol_1rxwh_211", T1 = "_interactive-pin-button_1rxwh_216", E1 = "_interactive-pin-menu_1rxwh_236", V1 = "_interactive-pin-menu-item_1rxwh_250", B1 = "_arrow_1rxwh_271", m = {
|
|
1469
|
+
"comment-markers": "_comment-markers_1rxwh_1",
|
|
1476
1470
|
commentMarkers: d1,
|
|
1477
|
-
"comment-marker": "_comment-
|
|
1471
|
+
"comment-marker": "_comment-marker_1rxwh_1",
|
|
1478
1472
|
commentMarker: m1,
|
|
1479
|
-
"timeline-wrapper": "_timeline-
|
|
1473
|
+
"timeline-wrapper": "_timeline-wrapper_1rxwh_27",
|
|
1480
1474
|
timelineWrapper: h1,
|
|
1481
1475
|
track: p1,
|
|
1482
1476
|
thumb: _1,
|
|
1483
1477
|
root: C1,
|
|
1484
|
-
"track-inner": "_track-
|
|
1478
|
+
"track-inner": "_track-inner_1rxwh_96",
|
|
1485
1479
|
trackInner: f1,
|
|
1486
|
-
progress:
|
|
1487
|
-
"track-fill": "_track-
|
|
1488
|
-
trackFill:
|
|
1480
|
+
progress: b1,
|
|
1481
|
+
"track-fill": "_track-fill_1rxwh_108",
|
|
1482
|
+
trackFill: g1,
|
|
1489
1483
|
pins: v1,
|
|
1490
|
-
"pin-button": "_pin-
|
|
1484
|
+
"pin-button": "_pin-button_1rxwh_138",
|
|
1491
1485
|
pinButton: w1,
|
|
1492
|
-
"annotation-pin": "_annotation-
|
|
1486
|
+
"annotation-pin": "_annotation-pin_1rxwh_158",
|
|
1493
1487
|
annotationPin: y1,
|
|
1494
|
-
"quiz-pin": "_quiz-
|
|
1488
|
+
"quiz-pin": "_quiz-pin_1rxwh_163",
|
|
1495
1489
|
quizPin: k1,
|
|
1496
|
-
"pin-
|
|
1497
|
-
|
|
1498
|
-
"
|
|
1499
|
-
|
|
1500
|
-
"
|
|
1501
|
-
|
|
1502
|
-
"interactive-pin-
|
|
1503
|
-
|
|
1504
|
-
"interactive-pin-
|
|
1505
|
-
|
|
1506
|
-
"interactive-pin
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
"interactive-pin-
|
|
1513
|
-
|
|
1514
|
-
"interactive-pin-menu": "_interactive-pin-
|
|
1515
|
-
|
|
1516
|
-
"interactive-pin-menu-item": "_interactive-pin-menu-item_1ldxg_255",
|
|
1517
|
-
interactivePinMenuItem: E1,
|
|
1490
|
+
"annotation-pin-child": "_annotation-pin-child_1rxwh_168",
|
|
1491
|
+
annotationPinChild: L1,
|
|
1492
|
+
"quiz-pin-child": "_quiz-pin-child_1rxwh_172",
|
|
1493
|
+
quizPinChild: x1,
|
|
1494
|
+
"interactive-pin-container": "_interactive-pin-container_1rxwh_177",
|
|
1495
|
+
interactivePinContainer: M1,
|
|
1496
|
+
"interactive-pin-wrapper": "_interactive-pin-wrapper_1rxwh_187",
|
|
1497
|
+
interactivePinWrapper: N1,
|
|
1498
|
+
"interactive-pin-icon": "_interactive-pin-icon_1rxwh_193",
|
|
1499
|
+
interactivePinIcon: P1,
|
|
1500
|
+
"interactive-pin": "_interactive-pin_1rxwh_177",
|
|
1501
|
+
interactivePin: I1,
|
|
1502
|
+
bg: H1,
|
|
1503
|
+
symbol: S1,
|
|
1504
|
+
"interactive-pin-button": "_interactive-pin-button_1rxwh_216",
|
|
1505
|
+
interactivePinButton: T1,
|
|
1506
|
+
"interactive-pin-menu": "_interactive-pin-menu_1rxwh_236",
|
|
1507
|
+
interactivePinMenu: E1,
|
|
1508
|
+
"interactive-pin-menu-item": "_interactive-pin-menu-item_1rxwh_250",
|
|
1509
|
+
interactivePinMenuItem: V1,
|
|
1518
1510
|
arrow: B1
|
|
1519
|
-
},
|
|
1511
|
+
}, A1 = {
|
|
1520
1512
|
annotation: m.annotationPin,
|
|
1521
1513
|
quiz: m.quizPin
|
|
1522
1514
|
};
|
|
1523
|
-
function
|
|
1515
|
+
function We({
|
|
1524
1516
|
type: e,
|
|
1525
|
-
position:
|
|
1517
|
+
position: t,
|
|
1526
1518
|
children: o,
|
|
1527
1519
|
onClick: i,
|
|
1528
|
-
id: s
|
|
1529
|
-
completed: a
|
|
1520
|
+
id: s
|
|
1530
1521
|
}) {
|
|
1531
|
-
const
|
|
1532
|
-
return /* @__PURE__ */
|
|
1522
|
+
const a = w();
|
|
1523
|
+
return /* @__PURE__ */ n(
|
|
1533
1524
|
"button",
|
|
1534
1525
|
{
|
|
1535
1526
|
type: "button",
|
|
1536
|
-
tabIndex:
|
|
1527
|
+
tabIndex: a.state.interactionsDisabled ? -1 : 0,
|
|
1537
1528
|
className: m.pinButton,
|
|
1538
|
-
style: { left: `${
|
|
1529
|
+
style: { left: `${t}%` },
|
|
1539
1530
|
onClick: i,
|
|
1540
1531
|
"data-marker-id": s,
|
|
1541
1532
|
children: /* @__PURE__ */ l(
|
|
1542
1533
|
"svg",
|
|
1543
1534
|
{
|
|
1544
|
-
className:
|
|
1535
|
+
className: A1[e],
|
|
1545
1536
|
width: "26",
|
|
1546
1537
|
height: "32",
|
|
1547
1538
|
viewBox: "0 0 26 32",
|
|
1548
1539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1549
1540
|
children: [
|
|
1550
|
-
/* @__PURE__ */
|
|
1541
|
+
/* @__PURE__ */ n("path", { d: "M25.5 13C25.5 15.4774 24.7798 17.785 23.5376 19.7268C21.932 22.1411 20.1501 23.9459 18.2945 25.7433C18.0942 25.9373 17.8929 26.1314 17.6908 26.3262C16.157 27.8047 14.5793 29.3256 13.0545 31.2007C11.5227 29.3377 9.93394 27.8282 8.39067 26.362C8.17552 26.1576 7.96126 25.954 7.74816 25.7505C5.87029 23.9566 4.07076 22.1526 2.46259 19.7271C1.22024 17.7852 0.5 15.4775 0.5 13C0.5 6.09644 6.09644 0.5 13 0.5C19.9036 0.5 25.5 6.09644 25.5 13Z" }),
|
|
1551
1542
|
o
|
|
1552
1543
|
]
|
|
1553
1544
|
}
|
|
@@ -1555,8 +1546,8 @@ function Ye({
|
|
|
1555
1546
|
}
|
|
1556
1547
|
);
|
|
1557
1548
|
}
|
|
1558
|
-
function
|
|
1559
|
-
return /* @__PURE__ */
|
|
1549
|
+
function R1(e) {
|
|
1550
|
+
return /* @__PURE__ */ n(We, { type: "annotation", ...e, children: /* @__PURE__ */ n(
|
|
1560
1551
|
"path",
|
|
1561
1552
|
{
|
|
1562
1553
|
className: m.annotationPinChild,
|
|
@@ -1568,8 +1559,8 @@ function O1(e) {
|
|
|
1568
1559
|
}
|
|
1569
1560
|
) });
|
|
1570
1561
|
}
|
|
1571
|
-
function
|
|
1572
|
-
const
|
|
1562
|
+
function O1(e) {
|
|
1563
|
+
const t = e.completed ? /* @__PURE__ */ n(
|
|
1573
1564
|
"path",
|
|
1574
1565
|
{
|
|
1575
1566
|
className: m.quizPinChild,
|
|
@@ -1579,7 +1570,7 @@ function F1(e) {
|
|
|
1579
1570
|
d: "M12.7156 2.33212L5.18253 9.86522L1.28337 5.96607L0 7.24944L5.18253 12.4329L13.9999 3.6164L12.7156 2.33212Z",
|
|
1580
1571
|
fill: "currentColor"
|
|
1581
1572
|
}
|
|
1582
|
-
) : /* @__PURE__ */
|
|
1573
|
+
) : /* @__PURE__ */ n(
|
|
1583
1574
|
"text",
|
|
1584
1575
|
{
|
|
1585
1576
|
className: m.quizPinChild,
|
|
@@ -1591,18 +1582,18 @@ function F1(e) {
|
|
|
1591
1582
|
children: e.ordinal
|
|
1592
1583
|
}
|
|
1593
1584
|
);
|
|
1594
|
-
return /* @__PURE__ */
|
|
1585
|
+
return /* @__PURE__ */ n(We, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
|
|
1595
1586
|
}
|
|
1596
|
-
function
|
|
1587
|
+
function F1(e, t) {
|
|
1597
1588
|
return e.map((o, i) => ({
|
|
1598
1589
|
id: o.id,
|
|
1599
1590
|
time: o.time,
|
|
1600
1591
|
type: "annotation",
|
|
1601
1592
|
ordinal: i + 1,
|
|
1602
|
-
onClick: () =>
|
|
1593
|
+
onClick: () => t(o)
|
|
1603
1594
|
}));
|
|
1604
1595
|
}
|
|
1605
|
-
function
|
|
1596
|
+
function Z1(e, t) {
|
|
1606
1597
|
const o = /* @__PURE__ */ new Map();
|
|
1607
1598
|
e.forEach((a) => {
|
|
1608
1599
|
var r;
|
|
@@ -1617,32 +1608,32 @@ function z1(e, n) {
|
|
|
1617
1608
|
time: c,
|
|
1618
1609
|
type: "quiz",
|
|
1619
1610
|
ordinal: s + 1,
|
|
1620
|
-
onClick: () =>
|
|
1611
|
+
onClick: () => t(a),
|
|
1621
1612
|
multiple: a.length > 1,
|
|
1622
1613
|
completed: a.every((r) => r.completed)
|
|
1623
1614
|
}), s++;
|
|
1624
1615
|
}), i;
|
|
1625
1616
|
}
|
|
1626
|
-
function
|
|
1617
|
+
function D1(e, t, o, i) {
|
|
1627
1618
|
switch (e.type) {
|
|
1628
1619
|
case "annotation": {
|
|
1629
1620
|
const s = () => i ? e.onClick() : o.seek(e.time);
|
|
1630
|
-
return /* @__PURE__ */
|
|
1631
|
-
|
|
1621
|
+
return /* @__PURE__ */ n(
|
|
1622
|
+
R1,
|
|
1632
1623
|
{
|
|
1633
1624
|
id: e.id,
|
|
1634
|
-
position: e.time /
|
|
1625
|
+
position: e.time / t * 100,
|
|
1635
1626
|
onClick: s
|
|
1636
1627
|
},
|
|
1637
1628
|
e.id
|
|
1638
1629
|
);
|
|
1639
1630
|
}
|
|
1640
1631
|
case "quiz":
|
|
1641
|
-
return /* @__PURE__ */
|
|
1642
|
-
|
|
1632
|
+
return /* @__PURE__ */ n(
|
|
1633
|
+
O1,
|
|
1643
1634
|
{
|
|
1644
1635
|
id: e.id,
|
|
1645
|
-
position: e.time /
|
|
1636
|
+
position: e.time / t * 100,
|
|
1646
1637
|
ordinal: e.ordinal,
|
|
1647
1638
|
multiple: e.multiple,
|
|
1648
1639
|
onClick: e.onClick,
|
|
@@ -1654,19 +1645,19 @@ function j1(e, n, o, i) {
|
|
|
1654
1645
|
return null;
|
|
1655
1646
|
}
|
|
1656
1647
|
}
|
|
1657
|
-
function
|
|
1658
|
-
const e =
|
|
1659
|
-
...
|
|
1648
|
+
function z1() {
|
|
1649
|
+
const e = ie(), t = g("duration"), o = L(), i = B(() => [
|
|
1650
|
+
...F1(
|
|
1660
1651
|
o.annotations,
|
|
1661
1652
|
o.onAnnotationClick
|
|
1662
1653
|
),
|
|
1663
|
-
...
|
|
1664
|
-
].sort((a, c) => a.time - c.time).map((a) =>
|
|
1665
|
-
return /* @__PURE__ */
|
|
1654
|
+
...Z1(o.quizMarkers, o.onQuizMarkerClick)
|
|
1655
|
+
].sort((a, c) => a.time - c.time).map((a) => D1(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
|
|
1656
|
+
return /* @__PURE__ */ n("div", { className: m.pins, children: i });
|
|
1666
1657
|
}
|
|
1667
|
-
function
|
|
1668
|
-
const e = g("duration"),
|
|
1669
|
-
return
|
|
1658
|
+
function j1() {
|
|
1659
|
+
const e = g("duration"), t = L(), o = w();
|
|
1660
|
+
return e > 0 && t.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ n("div", { className: m.commentMarkers, children: t.comments.map((i) => /* @__PURE__ */ n(
|
|
1670
1661
|
"span",
|
|
1671
1662
|
{
|
|
1672
1663
|
className: m.commentMarker,
|
|
@@ -1677,33 +1668,33 @@ function K1() {
|
|
|
1677
1668
|
i.id
|
|
1678
1669
|
)) }) : null;
|
|
1679
1670
|
}
|
|
1680
|
-
function
|
|
1681
|
-
const [o, i] =
|
|
1671
|
+
function K1({ currentTime: e, position: t }) {
|
|
1672
|
+
const [o, i] = M(!1), s = L(), a = f(() => s.interactiveMenuElements.length > 0 ? i((y) => !y) : s.onInteractivePinClick(e), [
|
|
1682
1673
|
s.interactiveMenuElements,
|
|
1683
1674
|
s.onInteractivePinClick,
|
|
1684
1675
|
e
|
|
1685
|
-
]), c =
|
|
1676
|
+
]), c = oe(null), { refs: r, floatingStyles: d, context: h } = de({
|
|
1686
1677
|
open: o,
|
|
1687
1678
|
onOpenChange: i,
|
|
1688
|
-
whileElementsMounted:
|
|
1679
|
+
whileElementsMounted: me,
|
|
1689
1680
|
placement: "top",
|
|
1690
1681
|
middleware: [
|
|
1691
1682
|
Se(),
|
|
1692
1683
|
Te(6),
|
|
1693
|
-
|
|
1684
|
+
Ee({
|
|
1694
1685
|
element: c
|
|
1695
1686
|
})
|
|
1696
1687
|
]
|
|
1697
|
-
}), b =
|
|
1698
|
-
return /* @__PURE__ */ l(
|
|
1699
|
-
/* @__PURE__ */
|
|
1688
|
+
}), b = he(h), { getReferenceProps: v, getFloatingProps: k } = pe([b]);
|
|
1689
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
1690
|
+
/* @__PURE__ */ n(
|
|
1700
1691
|
"button",
|
|
1701
1692
|
{
|
|
1702
1693
|
type: "button",
|
|
1703
1694
|
onClick: a,
|
|
1704
1695
|
className: m.interactivePinButton,
|
|
1705
1696
|
ref: r.setReference,
|
|
1706
|
-
style: { left: `${
|
|
1697
|
+
style: { left: `${t}%` },
|
|
1707
1698
|
...v(),
|
|
1708
1699
|
children: /* @__PURE__ */ l(
|
|
1709
1700
|
"svg",
|
|
@@ -1715,21 +1706,21 @@ function $1({ currentTime: e, position: n }) {
|
|
|
1715
1706
|
viewBox: "0 0 36 44",
|
|
1716
1707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1717
1708
|
children: [
|
|
1718
|
-
/* @__PURE__ */
|
|
1709
|
+
/* @__PURE__ */ n(
|
|
1719
1710
|
"path",
|
|
1720
1711
|
{
|
|
1721
1712
|
className: m.bg,
|
|
1722
1713
|
d: "M 33.1703,27.499961 C 34.9615,24.721661 36,21.418761 36,17.874961 36,8.0028612 27.9411,-3.8819277e-5 18,-3.8819277e-5 8.0588999,-3.8819277e-5 -1.5e-7,8.0028612 -1.5e-7,17.874961 c 0,3.5438 1.03844995,6.8467 2.82964995,9.625 4.5447501,6.8094 10.1600502,10.1014 15.2487502,16.5 5.0364,-6.3985 10.5573,-9.7259 15.0919,-16.5 z"
|
|
1723
1714
|
}
|
|
1724
1715
|
),
|
|
1725
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ n(
|
|
1726
1717
|
"path",
|
|
1727
1718
|
{
|
|
1728
1719
|
className: m.symbol,
|
|
1729
1720
|
d: "m 35.499961,17.877772 c 0,3.443549 -1.008198,6.652061 -2.747494,9.351891 -2.235095,3.338633 -4.71529,5.832631 -7.286584,8.306425 -0.277599,0.267143 -0.556499,0.534085 -0.836198,0.801928 -2.174595,2.082232 -4.40389,4.216673 -6.553385,6.870196 -2.158995,-2.636621 -4.40379,-4.754859 -6.591985,-6.819788 -0.2979,-0.281145 -0.594699,-0.561289 -0.890198,-0.841534 C 7.9918219,33.077896 5.4869279,30.584698 3.2477829,27.230063 1.5082968,24.530133 0.50003905,21.321521 0.50003905,17.877772 0.50003905,8.2835422 8.3317219,0.50000048 18,0.50000048 c 9.668278,0 17.499961,7.78354172 17.499961,17.37777152 z"
|
|
1730
1721
|
}
|
|
1731
1722
|
),
|
|
1732
|
-
/* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ n(
|
|
1733
1724
|
"path",
|
|
1734
1725
|
{
|
|
1735
1726
|
className: m.interactivePinIcon,
|
|
@@ -1745,11 +1736,11 @@ function $1({ currentTime: e, position: n }) {
|
|
|
1745
1736
|
)
|
|
1746
1737
|
}
|
|
1747
1738
|
),
|
|
1748
|
-
o && /* @__PURE__ */
|
|
1749
|
-
|
|
1739
|
+
o && /* @__PURE__ */ n(
|
|
1740
|
+
_e,
|
|
1750
1741
|
{
|
|
1751
1742
|
order: ["floating", "content"],
|
|
1752
|
-
context:
|
|
1743
|
+
context: h,
|
|
1753
1744
|
modal: !0,
|
|
1754
1745
|
children: /* @__PURE__ */ l(
|
|
1755
1746
|
"div",
|
|
@@ -1760,16 +1751,16 @@ function $1({ currentTime: e, position: n }) {
|
|
|
1760
1751
|
...k(),
|
|
1761
1752
|
children: [
|
|
1762
1753
|
s.interactiveMenuElements.map(
|
|
1763
|
-
({ id: y, text:
|
|
1754
|
+
({ id: y, text: I, onClick: p }) => /* @__PURE__ */ l(
|
|
1764
1755
|
"button",
|
|
1765
1756
|
{
|
|
1766
1757
|
type: "button",
|
|
1767
1758
|
className: m.interactivePinMenuItem,
|
|
1768
1759
|
onClick: () => {
|
|
1769
|
-
|
|
1760
|
+
p(y, e), i(!1);
|
|
1770
1761
|
},
|
|
1771
1762
|
children: [
|
|
1772
|
-
/* @__PURE__ */
|
|
1763
|
+
/* @__PURE__ */ n(
|
|
1773
1764
|
"svg",
|
|
1774
1765
|
{
|
|
1775
1766
|
width: "16",
|
|
@@ -1777,7 +1768,7 @@ function $1({ currentTime: e, position: n }) {
|
|
|
1777
1768
|
viewBox: "0 0 16 16",
|
|
1778
1769
|
fill: "none",
|
|
1779
1770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1780
|
-
children: /* @__PURE__ */
|
|
1771
|
+
children: /* @__PURE__ */ n(
|
|
1781
1772
|
"path",
|
|
1782
1773
|
{
|
|
1783
1774
|
fillRule: "evenodd",
|
|
@@ -1788,17 +1779,17 @@ function $1({ currentTime: e, position: n }) {
|
|
|
1788
1779
|
)
|
|
1789
1780
|
}
|
|
1790
1781
|
),
|
|
1791
|
-
|
|
1782
|
+
I
|
|
1792
1783
|
]
|
|
1793
1784
|
},
|
|
1794
1785
|
y
|
|
1795
1786
|
)
|
|
1796
1787
|
),
|
|
1797
|
-
/* @__PURE__ */
|
|
1798
|
-
|
|
1788
|
+
/* @__PURE__ */ n(
|
|
1789
|
+
Ve,
|
|
1799
1790
|
{
|
|
1800
1791
|
ref: c,
|
|
1801
|
-
context:
|
|
1792
|
+
context: h,
|
|
1802
1793
|
className: m.arrow
|
|
1803
1794
|
}
|
|
1804
1795
|
)
|
|
@@ -1809,51 +1800,51 @@ function $1({ currentTime: e, position: n }) {
|
|
|
1809
1800
|
)
|
|
1810
1801
|
] });
|
|
1811
1802
|
}
|
|
1812
|
-
function
|
|
1813
|
-
const e = g("duration"),
|
|
1803
|
+
function $1() {
|
|
1804
|
+
const e = g("duration"), t = g("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = L();
|
|
1814
1805
|
return i.some(
|
|
1815
|
-
([a, c]) =>
|
|
1816
|
-
) ? null : /* @__PURE__ */
|
|
1806
|
+
([a, c]) => t >= a && t <= c
|
|
1807
|
+
) ? null : /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(K1, { currentTime: t, position: o }) }) });
|
|
1817
1808
|
}
|
|
1818
|
-
function
|
|
1819
|
-
const e = g("paused"),
|
|
1820
|
-
return e && !
|
|
1809
|
+
function U1() {
|
|
1810
|
+
const e = g("paused"), t = w();
|
|
1811
|
+
return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n($1, {}) : null;
|
|
1821
1812
|
}
|
|
1822
|
-
const
|
|
1823
|
-
function
|
|
1824
|
-
const
|
|
1813
|
+
const q1 = `${m.progress} ${m.trackInner}`, G1 = `${m.trackFill} ${m.trackInner}`;
|
|
1814
|
+
function Ne({ className: e }) {
|
|
1815
|
+
const t = w(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = L(), a = e ? `${m.timelineWrapper} ${e}` : m.timelineWrapper;
|
|
1825
1816
|
return /* @__PURE__ */ l("div", { className: a, children: [
|
|
1826
|
-
s ? /* @__PURE__ */
|
|
1827
|
-
s || o || i ? /* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1817
|
+
s ? /* @__PURE__ */ n(U1, {}) : null,
|
|
1818
|
+
s || o || i ? /* @__PURE__ */ n(z1, {}) : null,
|
|
1819
|
+
/* @__PURE__ */ n(j1, {}),
|
|
1829
1820
|
/* @__PURE__ */ l(
|
|
1830
|
-
|
|
1821
|
+
Q.Root,
|
|
1831
1822
|
{
|
|
1832
1823
|
className: m.root,
|
|
1833
|
-
tabIndex:
|
|
1824
|
+
tabIndex: t.state.interactionsDisabled ? -1 : 0,
|
|
1834
1825
|
children: [
|
|
1835
|
-
/* @__PURE__ */ l(
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ l(Q.Track, { className: m.track, children: [
|
|
1827
|
+
/* @__PURE__ */ n(Q.Progress, { className: q1 }),
|
|
1828
|
+
/* @__PURE__ */ n(Q.TrackFill, { className: G1 })
|
|
1838
1829
|
] }),
|
|
1839
|
-
/* @__PURE__ */
|
|
1830
|
+
/* @__PURE__ */ n(Q.Thumb, { className: m.thumb })
|
|
1840
1831
|
]
|
|
1841
1832
|
}
|
|
1842
1833
|
)
|
|
1843
1834
|
] });
|
|
1844
1835
|
}
|
|
1845
|
-
const
|
|
1846
|
-
wrapper:
|
|
1847
|
-
track:
|
|
1848
|
-
thumb:
|
|
1836
|
+
const Q1 = "_wrapper_12cb0_1", W1 = "_track_12cb0_6", Y1 = "_thumb_12cb0_18", X1 = "_track-fill_12cb0_32", J1 = "_root_12cb0_51", Y = {
|
|
1837
|
+
wrapper: Q1,
|
|
1838
|
+
track: W1,
|
|
1839
|
+
thumb: Y1,
|
|
1849
1840
|
"track-fill": "_track-fill_12cb0_32",
|
|
1850
|
-
trackFill:
|
|
1851
|
-
root:
|
|
1841
|
+
trackFill: X1,
|
|
1842
|
+
root: J1
|
|
1852
1843
|
};
|
|
1853
|
-
function
|
|
1854
|
-
const e =
|
|
1855
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1856
|
-
/* @__PURE__ */
|
|
1844
|
+
function ei() {
|
|
1845
|
+
const e = T(), t = g("volume"), o = g("muted"), i = w(), s = o || t === 0, { t: a } = _();
|
|
1846
|
+
return /* @__PURE__ */ l("div", { className: Y.wrapper, children: [
|
|
1847
|
+
/* @__PURE__ */ n(
|
|
1857
1848
|
"button",
|
|
1858
1849
|
{
|
|
1859
1850
|
role: "button",
|
|
@@ -1864,126 +1855,141 @@ function ti() {
|
|
|
1864
1855
|
onClick: () => {
|
|
1865
1856
|
s ? e == null || e.remoteControl.unmute() : e == null || e.remoteControl.mute();
|
|
1866
1857
|
},
|
|
1867
|
-
children: s ? /* @__PURE__ */
|
|
1858
|
+
children: s ? /* @__PURE__ */ n($e, { className: "controls-button-icon" }) : t < 0.5 ? /* @__PURE__ */ n(Ue, { className: "controls-button-icon" }) : /* @__PURE__ */ n(qe, { className: "controls-button-icon" })
|
|
1868
1859
|
}
|
|
1869
1860
|
),
|
|
1870
1861
|
/* @__PURE__ */ l(
|
|
1871
|
-
|
|
1862
|
+
J.Root,
|
|
1872
1863
|
{
|
|
1873
|
-
className:
|
|
1864
|
+
className: Y.root,
|
|
1874
1865
|
tabIndex: i.state.interactionsDisabled ? -1 : 0,
|
|
1875
1866
|
children: [
|
|
1876
|
-
/* @__PURE__ */
|
|
1877
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ n(J.Track, { className: Y.track, children: /* @__PURE__ */ n(J.TrackFill, { className: Y.trackFill }) }),
|
|
1868
|
+
/* @__PURE__ */ n(J.Thumb, { className: Y.thumb })
|
|
1878
1869
|
]
|
|
1879
1870
|
}
|
|
1880
1871
|
)
|
|
1881
1872
|
] });
|
|
1882
1873
|
}
|
|
1883
|
-
|
|
1874
|
+
function x(e, t) {
|
|
1875
|
+
e.dispatchEvent(
|
|
1876
|
+
new CustomEvent("keyboardAction", {
|
|
1877
|
+
detail: t
|
|
1878
|
+
})
|
|
1879
|
+
);
|
|
1880
|
+
}
|
|
1881
|
+
const Pe = {
|
|
1884
1882
|
togglePaused: {
|
|
1885
1883
|
keys: ["Space", "Enter", "k"],
|
|
1886
|
-
|
|
1884
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1887
1885
|
var i;
|
|
1888
|
-
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1886
|
+
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o), x(e, "togglePaused"));
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
seekForward: {
|
|
1890
|
+
keys: ["ArrowRight"],
|
|
1891
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1892
|
+
t.seek(e.currentTime + 5, o), x(e, "seekForward");
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
seekBackward: {
|
|
1896
|
+
keys: ["ArrowLeft"],
|
|
1897
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1898
|
+
t.seek(e.currentTime - 5, o), x(e, "seekBackward");
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
volumeUp: {
|
|
1902
|
+
keys: ["ArrowUp"],
|
|
1903
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1904
|
+
t.changeVolume(e.volume + 0.05, o), x(e, "volumeChange");
|
|
1905
|
+
}
|
|
1906
|
+
},
|
|
1907
|
+
volumeDown: {
|
|
1908
|
+
keys: ["ArrowDown"],
|
|
1909
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1910
|
+
t.changeVolume(e.volume - 0.05, o), x(e, "volumeChange");
|
|
1892
1911
|
}
|
|
1893
1912
|
},
|
|
1894
|
-
seekForward: ["ArrowRight"],
|
|
1895
|
-
seekBackward: ["ArrowLeft"],
|
|
1896
|
-
volumeUp: ["ArrowUp"],
|
|
1897
|
-
volumeDown: ["ArrowDown"],
|
|
1898
1913
|
toggleFullscreen: ["f"],
|
|
1899
|
-
toggleMuted:
|
|
1900
|
-
|
|
1914
|
+
toggleMuted: {
|
|
1915
|
+
keys: ["m"],
|
|
1916
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1917
|
+
t.toggleMuted(o), x(e, "volumeChange");
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
toggleCaptions: {
|
|
1921
|
+
keys: ["c"],
|
|
1922
|
+
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1923
|
+
t.toggleCaptions(o), x(e, "captionsChange");
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1901
1926
|
nextCaptionLanguage: {
|
|
1902
1927
|
keys: ["v"],
|
|
1903
|
-
|
|
1904
|
-
const i =
|
|
1905
|
-
o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
|
|
1906
|
-
s >=
|
|
1907
|
-
"showing"
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
event: e
|
|
1911
|
-
});
|
|
1928
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1929
|
+
const i = t.textTracks.selectedIndex, s = i + 1;
|
|
1930
|
+
o.changeTextTrackMode(i, "hidden", e), o.changeTextTrackMode(
|
|
1931
|
+
s >= t.textTracks.length ? 0 : s,
|
|
1932
|
+
"showing",
|
|
1933
|
+
e
|
|
1934
|
+
), x(t, "captionsChange");
|
|
1912
1935
|
}
|
|
1913
1936
|
},
|
|
1914
1937
|
previousCaptionLanguage: {
|
|
1915
1938
|
keys: ["x"],
|
|
1916
|
-
|
|
1917
|
-
const i =
|
|
1918
|
-
o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
|
|
1919
|
-
s < 0 ?
|
|
1920
|
-
"showing"
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
event: e
|
|
1924
|
-
});
|
|
1939
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1940
|
+
const i = t.textTracks.selectedIndex, s = i - 1;
|
|
1941
|
+
o.changeTextTrackMode(i, "hidden", e), o.changeTextTrackMode(
|
|
1942
|
+
s < 0 ? t.textTracks.length - 1 : s,
|
|
1943
|
+
"showing",
|
|
1944
|
+
e
|
|
1945
|
+
), x(t, "captionsChange");
|
|
1925
1946
|
}
|
|
1926
1947
|
},
|
|
1927
1948
|
decreasePlaybackRate: {
|
|
1928
1949
|
keys: ["a"],
|
|
1929
|
-
|
|
1930
|
-
const s =
|
|
1931
|
-
s >= 0 && (o.changePlaybackRate(
|
|
1932
|
-
action: "decreasePlaybackRate",
|
|
1933
|
-
event: e
|
|
1934
|
-
}));
|
|
1950
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1951
|
+
const s = K.indexOf(t.playbackRate) - 1;
|
|
1952
|
+
s >= 0 && (o.changePlaybackRate(K[s], e), x(t, "playbackRateChange"));
|
|
1935
1953
|
}
|
|
1936
1954
|
},
|
|
1937
1955
|
increasePlaybackRate: {
|
|
1938
1956
|
keys: ["d"],
|
|
1939
|
-
|
|
1940
|
-
const s =
|
|
1941
|
-
s <
|
|
1942
|
-
action: "increasePlaybackRate",
|
|
1943
|
-
event: e
|
|
1944
|
-
}));
|
|
1957
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1958
|
+
const s = K.indexOf(t.playbackRate) + 1;
|
|
1959
|
+
s < K.length && (o.changePlaybackRate(K[s], e), x(t, "playbackRateChange"));
|
|
1945
1960
|
}
|
|
1946
1961
|
},
|
|
1947
1962
|
resetPlaybackRate: {
|
|
1948
1963
|
keys: ["s"],
|
|
1949
|
-
|
|
1950
|
-
o.changePlaybackRate(1),
|
|
1951
|
-
action: "resetPlaybackRate",
|
|
1952
|
-
event: e
|
|
1953
|
-
});
|
|
1964
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1965
|
+
o.changePlaybackRate(1, e), x(t, "playbackRateChange");
|
|
1954
1966
|
}
|
|
1955
1967
|
},
|
|
1956
1968
|
seekForward10Seconds: {
|
|
1957
1969
|
keys: ["l"],
|
|
1958
|
-
|
|
1959
|
-
o.seek(
|
|
1960
|
-
action: "seekForward10",
|
|
1961
|
-
event: e
|
|
1962
|
-
});
|
|
1970
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1971
|
+
o.seek(t.currentTime + 10, e), x(t, "seekForward10");
|
|
1963
1972
|
}
|
|
1964
1973
|
},
|
|
1965
1974
|
seekBackward10Seconds: {
|
|
1966
1975
|
keys: ["j"],
|
|
1967
|
-
|
|
1968
|
-
o.seek(
|
|
1969
|
-
action: "seekBackward10",
|
|
1970
|
-
event: e
|
|
1971
|
-
});
|
|
1976
|
+
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1977
|
+
o.seek(t.currentTime - 10, e), x(t, "seekBackward10");
|
|
1972
1978
|
}
|
|
1973
1979
|
}
|
|
1974
1980
|
};
|
|
1975
|
-
function
|
|
1981
|
+
function Ie(e) {
|
|
1976
1982
|
return typeof e == "number" && !isNaN(e);
|
|
1977
1983
|
}
|
|
1978
|
-
function
|
|
1984
|
+
function ti(e, t = 1e3) {
|
|
1979
1985
|
let o = !1;
|
|
1980
1986
|
return () => {
|
|
1981
1987
|
o || (e(), o = !0, setTimeout(() => {
|
|
1982
1988
|
o = !1;
|
|
1983
|
-
},
|
|
1989
|
+
}, t));
|
|
1984
1990
|
};
|
|
1985
1991
|
}
|
|
1986
|
-
const
|
|
1992
|
+
const He = {
|
|
1987
1993
|
volume: 1,
|
|
1988
1994
|
muted: !1,
|
|
1989
1995
|
lang: null,
|
|
@@ -1994,23 +2000,23 @@ const Ie = {
|
|
|
1994
2000
|
invert: !1,
|
|
1995
2001
|
comments: !1
|
|
1996
2002
|
};
|
|
1997
|
-
class
|
|
2003
|
+
class ni {
|
|
1998
2004
|
constructor() {
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
+
S(this, "playerId", "studio-player");
|
|
2006
|
+
S(this, "mediaId", null);
|
|
2007
|
+
S(this, "data", He);
|
|
2008
|
+
S(this, "time", null);
|
|
2009
|
+
S(this, "overrideTime", null);
|
|
2010
|
+
S(this, "saveTime", () => {
|
|
2005
2011
|
if (!this.mediaId) return;
|
|
2006
|
-
const
|
|
2007
|
-
localStorage.setItem(this.mediaId,
|
|
2012
|
+
const t = (this.time ?? 0).toString();
|
|
2013
|
+
localStorage.setItem(this.mediaId, t);
|
|
2008
2014
|
});
|
|
2009
|
-
|
|
2015
|
+
S(this, "saveTimeThrottled", ti(this.saveTime, 1e3));
|
|
2010
2016
|
// only used for useStudioPlayer hook's state initialization
|
|
2011
|
-
|
|
2017
|
+
S(this, "initializeState", (t) => {
|
|
2012
2018
|
const o = localStorage.getItem(this.playerId);
|
|
2013
|
-
if (
|
|
2019
|
+
if (Ie(t) && t >= 0 && (this.overrideTime = t), o)
|
|
2014
2020
|
try {
|
|
2015
2021
|
this.data = JSON.parse(o);
|
|
2016
2022
|
} catch {
|
|
@@ -2025,10 +2031,10 @@ class oi {
|
|
|
2025
2031
|
disableCaptionSettings: !1
|
|
2026
2032
|
};
|
|
2027
2033
|
});
|
|
2028
|
-
|
|
2034
|
+
S(this, "saveData", (t, o) => {
|
|
2029
2035
|
this.data = {
|
|
2030
2036
|
...this.data,
|
|
2031
|
-
[
|
|
2037
|
+
[t]: o
|
|
2032
2038
|
}, this.save();
|
|
2033
2039
|
});
|
|
2034
2040
|
}
|
|
@@ -2041,41 +2047,41 @@ class oi {
|
|
|
2041
2047
|
async getLang() {
|
|
2042
2048
|
return this.data.lang;
|
|
2043
2049
|
}
|
|
2044
|
-
async setLang(
|
|
2045
|
-
this.data.lang =
|
|
2050
|
+
async setLang(t) {
|
|
2051
|
+
this.data.lang = t, this.save();
|
|
2046
2052
|
}
|
|
2047
2053
|
async getVolume() {
|
|
2048
2054
|
return this.data.volume;
|
|
2049
2055
|
}
|
|
2050
|
-
async setVolume(
|
|
2051
|
-
this.data.volume =
|
|
2056
|
+
async setVolume(t) {
|
|
2057
|
+
this.data.volume = t, this.save();
|
|
2052
2058
|
}
|
|
2053
2059
|
async getMuted() {
|
|
2054
2060
|
return this.data.muted;
|
|
2055
2061
|
}
|
|
2056
|
-
async setMuted(
|
|
2057
|
-
this.data.muted =
|
|
2062
|
+
async setMuted(t) {
|
|
2063
|
+
this.data.muted = t, this.save();
|
|
2058
2064
|
}
|
|
2059
2065
|
async getTime() {
|
|
2060
2066
|
return this.time;
|
|
2061
2067
|
}
|
|
2062
|
-
async setTime(
|
|
2063
|
-
const i =
|
|
2064
|
-
this.time = i ? null :
|
|
2068
|
+
async setTime(t, o) {
|
|
2069
|
+
const i = t < 0;
|
|
2070
|
+
this.time = i ? null : t, i || o ? this.saveTime() : this.saveTimeThrottled();
|
|
2065
2071
|
}
|
|
2066
2072
|
async getCaptions() {
|
|
2067
2073
|
return this.data.captions;
|
|
2068
2074
|
}
|
|
2069
|
-
async setCaptions(
|
|
2070
|
-
this.data.captions =
|
|
2075
|
+
async setCaptions(t) {
|
|
2076
|
+
this.data.captions = t, this.save();
|
|
2071
2077
|
}
|
|
2072
2078
|
async getPlaybackRate() {
|
|
2073
2079
|
return this.data.rate;
|
|
2074
2080
|
}
|
|
2075
|
-
async setPlaybackRate(
|
|
2076
|
-
this.data.rate =
|
|
2081
|
+
async setPlaybackRate(t) {
|
|
2082
|
+
this.data.rate = t, this.save();
|
|
2077
2083
|
}
|
|
2078
|
-
onChange(
|
|
2084
|
+
onChange(t, o, i = "studio-player") {
|
|
2079
2085
|
const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
|
|
2080
2086
|
this.playerId = i, this.mediaId = o;
|
|
2081
2087
|
let c = {};
|
|
@@ -2085,144 +2091,144 @@ class oi {
|
|
|
2085
2091
|
} catch {
|
|
2086
2092
|
}
|
|
2087
2093
|
this.data = {
|
|
2088
|
-
...
|
|
2094
|
+
...He,
|
|
2089
2095
|
...c
|
|
2090
|
-
},
|
|
2096
|
+
}, Ie(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
2091
2097
|
}
|
|
2092
2098
|
save() {
|
|
2093
2099
|
if (!this.playerId) return;
|
|
2094
|
-
const
|
|
2095
|
-
localStorage.setItem(this.playerId,
|
|
2100
|
+
const t = JSON.stringify(this.data);
|
|
2101
|
+
localStorage.setItem(this.playerId, t);
|
|
2096
2102
|
}
|
|
2097
2103
|
}
|
|
2098
|
-
function
|
|
2099
|
-
const s =
|
|
2104
|
+
function oi(e, t, o, i) {
|
|
2105
|
+
const s = B(() => new ni(), []), [a, c] = M(
|
|
2100
2106
|
s.initializeState(i)
|
|
2101
2107
|
), r = f(
|
|
2102
|
-
(
|
|
2103
|
-
c((C) => (s.saveData("multiplier",
|
|
2108
|
+
(p) => {
|
|
2109
|
+
c((C) => (s.saveData("multiplier", p), {
|
|
2104
2110
|
...C,
|
|
2105
|
-
captionsFontSizeMultiplier:
|
|
2111
|
+
captionsFontSizeMultiplier: p
|
|
2106
2112
|
}));
|
|
2107
2113
|
},
|
|
2108
2114
|
[s]
|
|
2109
2115
|
), d = f(() => {
|
|
2110
|
-
c((
|
|
2111
|
-
const C = !
|
|
2116
|
+
c((p) => {
|
|
2117
|
+
const C = !p.captionPositionOnTop;
|
|
2112
2118
|
return s.saveData("ontop", C), {
|
|
2113
|
-
...
|
|
2119
|
+
...p,
|
|
2114
2120
|
captionPositionOnTop: C
|
|
2115
2121
|
};
|
|
2116
2122
|
});
|
|
2117
|
-
}, [s]),
|
|
2118
|
-
c((
|
|
2119
|
-
const C = !
|
|
2123
|
+
}, [s]), h = f(() => {
|
|
2124
|
+
c((p) => {
|
|
2125
|
+
const C = !p.captionsInvertColors;
|
|
2120
2126
|
return s.saveData("invert", C), {
|
|
2121
|
-
...
|
|
2127
|
+
...p,
|
|
2122
2128
|
captionsInvertColors: C
|
|
2123
2129
|
};
|
|
2124
2130
|
});
|
|
2125
2131
|
}, [s]), b = f(() => {
|
|
2126
|
-
c((
|
|
2127
|
-
const C = !
|
|
2132
|
+
c((p) => {
|
|
2133
|
+
const C = !p.commentsEnabled;
|
|
2128
2134
|
return s.saveData("comments", C), {
|
|
2129
|
-
...
|
|
2135
|
+
...p,
|
|
2130
2136
|
commentsEnabled: C
|
|
2131
2137
|
};
|
|
2132
2138
|
});
|
|
2133
2139
|
}, [s]), v = f(() => {
|
|
2134
|
-
c((
|
|
2135
|
-
...
|
|
2140
|
+
c((p) => ({
|
|
2141
|
+
...p,
|
|
2136
2142
|
interactionsDisabled: !1
|
|
2137
2143
|
}));
|
|
2138
2144
|
}, []), k = f(() => {
|
|
2139
|
-
c((
|
|
2140
|
-
...
|
|
2145
|
+
c((p) => ({
|
|
2146
|
+
...p,
|
|
2141
2147
|
interactionsDisabled: !0
|
|
2142
2148
|
}));
|
|
2143
|
-
}, []), y = f((
|
|
2149
|
+
}, []), y = f((p) => {
|
|
2144
2150
|
c((C) => ({
|
|
2145
2151
|
...C,
|
|
2146
|
-
globalKeysDisabled:
|
|
2152
|
+
globalKeysDisabled: p
|
|
2147
2153
|
}));
|
|
2148
|
-
}, []),
|
|
2149
|
-
...
|
|
2154
|
+
}, []), I = B(() => e ? {
|
|
2155
|
+
...Pe,
|
|
2150
2156
|
toggleFullscreen: []
|
|
2151
|
-
} :
|
|
2157
|
+
} : Pe, [e]);
|
|
2152
2158
|
return {
|
|
2153
2159
|
contextValue: {
|
|
2154
2160
|
state: {
|
|
2155
2161
|
...a,
|
|
2156
|
-
commentsEnabled:
|
|
2162
|
+
commentsEnabled: t || a.commentsEnabled
|
|
2157
2163
|
},
|
|
2158
2164
|
setCaptionsFontSizeMultiplier: r,
|
|
2159
2165
|
toggleCaptionPositionOnTop: d,
|
|
2160
|
-
toggleCaptionsInvertColors:
|
|
2166
|
+
toggleCaptionsInvertColors: h,
|
|
2161
2167
|
enableInteractions: v,
|
|
2162
2168
|
disableInteractions: k,
|
|
2163
2169
|
setGlobalKeysDisabled: y,
|
|
2164
2170
|
toggleComments: b,
|
|
2165
2171
|
disableCaptionSettings: o
|
|
2166
2172
|
},
|
|
2167
|
-
shortcuts:
|
|
2173
|
+
shortcuts: I,
|
|
2168
2174
|
storage: s
|
|
2169
2175
|
};
|
|
2170
2176
|
}
|
|
2171
|
-
const
|
|
2172
|
-
function
|
|
2177
|
+
const ii = {};
|
|
2178
|
+
function si() {
|
|
2173
2179
|
const e = L();
|
|
2174
|
-
return /* @__PURE__ */ l(
|
|
2175
|
-
/* @__PURE__ */
|
|
2176
|
-
/* @__PURE__ */
|
|
2177
|
-
/* @__PURE__ */
|
|
2178
|
-
/* @__PURE__ */
|
|
2179
|
-
/* @__PURE__ */
|
|
2180
|
-
/* @__PURE__ */
|
|
2181
|
-
/* @__PURE__ */
|
|
2180
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
2181
|
+
/* @__PURE__ */ n(e1, { src: e.thumbnail }),
|
|
2182
|
+
/* @__PURE__ */ n(Ge, {}),
|
|
2183
|
+
/* @__PURE__ */ n(Re, {}),
|
|
2184
|
+
/* @__PURE__ */ n(Ze, { captions: e.captions }),
|
|
2185
|
+
/* @__PURE__ */ n(l1, {}),
|
|
2186
|
+
/* @__PURE__ */ n(Po, {}),
|
|
2187
|
+
/* @__PURE__ */ n(en, { comments: e.comments })
|
|
2182
2188
|
] });
|
|
2183
2189
|
}
|
|
2184
|
-
const
|
|
2190
|
+
const ai = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
|
|
2185
2191
|
/* @__PURE__ */ l("g", { id: "icon-file-base-2", children: [
|
|
2186
|
-
/* @__PURE__ */
|
|
2187
|
-
/* @__PURE__ */
|
|
2188
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z", fill: "#FFFFFF" }),
|
|
2193
|
+
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", id: "icon-file-base", fill: "#FFFFFF" }),
|
|
2194
|
+
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", fill: "#384A58" })
|
|
2189
2195
|
] }),
|
|
2190
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ n("path", { d: "M14.7142857,14.2824 L14.7142857,13 L13.2857143,13.2548 L13.2857143,23.0912 C12.8642857,22.9106 12.3785714,22.8 11.8571429,22.8 C10.2771429,22.8 9,23.7408 9,24.9 C9,26.0592 10.2771429,27 11.8571429,27 C12.3785714,27 12.8642857,26.8894 13.2857143,26.7088 C14.1371429,26.3448 14.7142857,25.6756 14.7142857,24.9 L14.7142857,17.0824 C17.5714286,17.0824 19,20 19,21.4 C19,15.8 16.1428571,14.2824 14.7142857,14.2824", id: "Fill-776", fill: "#384A58" })
|
|
2191
2197
|
] }) }) });
|
|
2192
|
-
function
|
|
2198
|
+
function li() {
|
|
2193
2199
|
const e = L();
|
|
2194
2200
|
return /* @__PURE__ */ l("div", { className: "audio-layout-wrapper", children: [
|
|
2195
|
-
/* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */
|
|
2201
|
+
/* @__PURE__ */ n(ai, {}),
|
|
2202
|
+
/* @__PURE__ */ n(Ge, {}),
|
|
2203
|
+
/* @__PURE__ */ n(Re, {}),
|
|
2204
|
+
/* @__PURE__ */ n(Ze, { captions: e.captions })
|
|
2199
2205
|
] });
|
|
2200
2206
|
}
|
|
2201
|
-
function
|
|
2202
|
-
return e.reduce((o, i) => (Object.keys(
|
|
2207
|
+
function ci(e, t) {
|
|
2208
|
+
return e.reduce((o, i) => (Object.keys(t).includes(i.id) || (o[i.id] = !0), o), t);
|
|
2203
2209
|
}
|
|
2204
|
-
function
|
|
2210
|
+
function ri(e, t, o, i, s) {
|
|
2205
2211
|
return (a) => {
|
|
2206
2212
|
const c = a.detail.currentTime, r = !o.paused, d = Math.min(o.duration * 0.05, 2);
|
|
2207
|
-
c >= e.time && c < e.time + d && !i[e.id] && (s({ ...i, [e.id]: !0 }),
|
|
2213
|
+
c >= e.time && c < e.time + d && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, r));
|
|
2208
2214
|
};
|
|
2209
2215
|
}
|
|
2210
|
-
function
|
|
2211
|
-
const e =
|
|
2212
|
-
|
|
2216
|
+
function ui() {
|
|
2217
|
+
const e = T(), { quizMarkers: t, onQuizMarkerShow: o } = L(), [i, s] = M(
|
|
2218
|
+
t.reduce((a, c) => (a[c.id] = !1, a), {})
|
|
2213
2219
|
);
|
|
2214
|
-
|
|
2220
|
+
D(() => {
|
|
2215
2221
|
if (!e)
|
|
2216
2222
|
return;
|
|
2217
|
-
|
|
2223
|
+
t.length > Object.keys(i).length && s(ci(t, i));
|
|
2218
2224
|
const a = [], c = (r) => {
|
|
2219
2225
|
var b;
|
|
2220
|
-
const d = (b = r == null ? void 0 : r.request) == null ? void 0 : b.detail,
|
|
2221
|
-
s({ ...i, ...
|
|
2226
|
+
const d = (b = r == null ? void 0 : r.request) == null ? void 0 : b.detail, h = t.reduce((v, k) => (v[k.id] = k.time <= d, v), {});
|
|
2227
|
+
s({ ...i, ...h });
|
|
2222
2228
|
};
|
|
2223
2229
|
e.addEventListener("seeked", c);
|
|
2224
|
-
for (const r of
|
|
2225
|
-
const d =
|
|
2230
|
+
for (const r of t) {
|
|
2231
|
+
const d = ri(
|
|
2226
2232
|
r,
|
|
2227
2233
|
o,
|
|
2228
2234
|
e,
|
|
@@ -2236,22 +2242,22 @@ function di() {
|
|
|
2236
2242
|
e.removeEventListener("time-update", r);
|
|
2237
2243
|
e.removeEventListener("seeked", c);
|
|
2238
2244
|
};
|
|
2239
|
-
}, [
|
|
2245
|
+
}, [t, e, i]);
|
|
2240
2246
|
}
|
|
2241
|
-
function
|
|
2242
|
-
return
|
|
2247
|
+
function di() {
|
|
2248
|
+
return ui(), null;
|
|
2243
2249
|
}
|
|
2244
|
-
function
|
|
2250
|
+
function mi(e) {
|
|
2245
2251
|
return Array.isArray(e) && typeof e[0] == "object";
|
|
2246
2252
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
2253
|
+
function hi(e) {
|
|
2254
|
+
return mi(e) && e.length === 1 ? e[0].src : e;
|
|
2249
2255
|
}
|
|
2250
|
-
const
|
|
2256
|
+
const ne = () => {
|
|
2251
2257
|
};
|
|
2252
|
-
function
|
|
2258
|
+
function yi({
|
|
2253
2259
|
title: e,
|
|
2254
|
-
playerRef:
|
|
2260
|
+
playerRef: t,
|
|
2255
2261
|
src: o,
|
|
2256
2262
|
captions: i = [],
|
|
2257
2263
|
thumbnail: s,
|
|
@@ -2259,96 +2265,96 @@ function ki({
|
|
|
2259
2265
|
comments: c = [],
|
|
2260
2266
|
locale: r = "en",
|
|
2261
2267
|
annotations: d = [],
|
|
2262
|
-
quizMarkers:
|
|
2268
|
+
quizMarkers: h = [],
|
|
2263
2269
|
interactive: b = !1,
|
|
2264
|
-
onAnnotationClick: v =
|
|
2265
|
-
onQuizMarkerClick: k =
|
|
2266
|
-
onQuizMarkerShow: y =
|
|
2267
|
-
onInteractivePinClick:
|
|
2268
|
-
onCaptionsDelete:
|
|
2270
|
+
onAnnotationClick: v = ne,
|
|
2271
|
+
onQuizMarkerClick: k = ne,
|
|
2272
|
+
onQuizMarkerShow: y = ne,
|
|
2273
|
+
onInteractivePinClick: I = ne,
|
|
2274
|
+
onCaptionsDelete: p,
|
|
2269
2275
|
interactiveMenuElements: C = [],
|
|
2270
|
-
kebabMenuElements:
|
|
2271
|
-
darkMode:
|
|
2272
|
-
autoLoadCaptionSrc:
|
|
2273
|
-
forceComments:
|
|
2274
|
-
disableCaptionSettings:
|
|
2275
|
-
disableStorage:
|
|
2276
|
-
startAt:
|
|
2277
|
-
crossOrigin:
|
|
2278
|
-
captionOffsetOverride:
|
|
2279
|
-
disableInteractivePinRanges:
|
|
2276
|
+
kebabMenuElements: A = [],
|
|
2277
|
+
darkMode: R = !1,
|
|
2278
|
+
autoLoadCaptionSrc: q = "",
|
|
2279
|
+
forceComments: V = !1,
|
|
2280
|
+
disableCaptionSettings: O = !1,
|
|
2281
|
+
disableStorage: G = !1,
|
|
2282
|
+
startAt: ae,
|
|
2283
|
+
crossOrigin: Ye,
|
|
2284
|
+
captionOffsetOverride: Xe,
|
|
2285
|
+
disableInteractivePinRanges: Je = [],
|
|
2280
2286
|
customOverlay: ge
|
|
2281
2287
|
}) {
|
|
2282
|
-
const { contextValue:
|
|
2288
|
+
const { contextValue: le, shortcuts: et, storage: tt } = oi(
|
|
2283
2289
|
a,
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
), { i18n:
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
}, [
|
|
2291
|
-
const [
|
|
2292
|
-
|
|
2290
|
+
V,
|
|
2291
|
+
O,
|
|
2292
|
+
ae
|
|
2293
|
+
), { i18n: ve } = _();
|
|
2294
|
+
D(() => {
|
|
2295
|
+
ve.changeLanguage(r);
|
|
2296
|
+
}, [ve, r]);
|
|
2297
|
+
const [we, ye] = M("none"), nt = f((E) => {
|
|
2298
|
+
pt(E) ? ye("audio") : (_t(E) || Ct(E) || ft(E)) && ye("video");
|
|
2293
2299
|
}, []);
|
|
2294
|
-
return /* @__PURE__ */
|
|
2295
|
-
|
|
2300
|
+
return /* @__PURE__ */ n(
|
|
2301
|
+
Nt,
|
|
2296
2302
|
{
|
|
2297
2303
|
hideFullScreen: a,
|
|
2298
2304
|
comments: c,
|
|
2299
2305
|
captions: i,
|
|
2300
2306
|
thumbnail: s,
|
|
2301
2307
|
annotations: d,
|
|
2302
|
-
quizMarkers:
|
|
2308
|
+
quizMarkers: h,
|
|
2303
2309
|
interactive: b,
|
|
2304
2310
|
onAnnotationClick: v,
|
|
2305
2311
|
onQuizMarkerClick: k,
|
|
2306
|
-
onInteractivePinClick:
|
|
2312
|
+
onInteractivePinClick: I,
|
|
2307
2313
|
interactiveMenuElements: C,
|
|
2308
|
-
kebabMenuElements:
|
|
2309
|
-
darkMode:
|
|
2310
|
-
forceComments:
|
|
2311
|
-
disableCaptionSettings:
|
|
2312
|
-
disableStorage:
|
|
2313
|
-
captionOffsetOverride:
|
|
2314
|
-
disableInteractivePinRanges:
|
|
2314
|
+
kebabMenuElements: A,
|
|
2315
|
+
darkMode: R,
|
|
2316
|
+
forceComments: V,
|
|
2317
|
+
disableCaptionSettings: O,
|
|
2318
|
+
disableStorage: G,
|
|
2319
|
+
captionOffsetOverride: Xe,
|
|
2320
|
+
disableInteractivePinRanges: Je,
|
|
2315
2321
|
onQuizMarkerShow: y,
|
|
2316
|
-
onCaptionsDelete:
|
|
2317
|
-
children: /* @__PURE__ */
|
|
2318
|
-
|
|
2322
|
+
onCaptionsDelete: p,
|
|
2323
|
+
children: /* @__PURE__ */ n(Mt, { contextValue: le, children: /* @__PURE__ */ l(
|
|
2324
|
+
bt,
|
|
2319
2325
|
{
|
|
2320
|
-
"data-version": "0.4.
|
|
2321
|
-
crossOrigin:
|
|
2322
|
-
storage:
|
|
2326
|
+
"data-version": "0.4.5",
|
|
2327
|
+
crossOrigin: Ye,
|
|
2328
|
+
storage: G ? null : tt,
|
|
2323
2329
|
title: e,
|
|
2324
|
-
src:
|
|
2325
|
-
keyShortcuts:
|
|
2330
|
+
src: hi(o),
|
|
2331
|
+
keyShortcuts: et,
|
|
2326
2332
|
playsInline: !0,
|
|
2327
|
-
keyDisabled:
|
|
2328
|
-
onTextTracksChange: (
|
|
2329
|
-
const
|
|
2330
|
-
(
|
|
2333
|
+
keyDisabled: le.state.interactionsDisabled || le.state.globalKeysDisabled,
|
|
2334
|
+
onTextTracksChange: (E) => {
|
|
2335
|
+
const ke = E == null ? void 0 : E.findIndex(
|
|
2336
|
+
(ot) => ot.src === q
|
|
2331
2337
|
);
|
|
2332
|
-
|
|
2338
|
+
ke > -1 && (E[ke].mode = "showing");
|
|
2333
2339
|
},
|
|
2334
|
-
onProviderSetup:
|
|
2340
|
+
onProviderSetup: nt,
|
|
2335
2341
|
children: [
|
|
2336
|
-
/* @__PURE__ */ l(gt, { className:
|
|
2337
|
-
|
|
2338
|
-
|
|
2342
|
+
/* @__PURE__ */ l(gt, { className: ii.mediaProvider, children: [
|
|
2343
|
+
we === "audio" && /* @__PURE__ */ n(li, {}),
|
|
2344
|
+
we === "video" && /* @__PURE__ */ n(si, {})
|
|
2339
2345
|
] }),
|
|
2340
|
-
/* @__PURE__ */
|
|
2346
|
+
/* @__PURE__ */ n(Go, {}),
|
|
2341
2347
|
ge && ge(),
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
|
|
2348
|
+
/* @__PURE__ */ n(
|
|
2349
|
+
cn,
|
|
2344
2350
|
{
|
|
2345
|
-
darkMode:
|
|
2346
|
-
playerRef:
|
|
2347
|
-
showCaptionsButton: !
|
|
2351
|
+
darkMode: R,
|
|
2352
|
+
playerRef: t,
|
|
2353
|
+
showCaptionsButton: !O
|
|
2348
2354
|
}
|
|
2349
2355
|
),
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
!!
|
|
2356
|
+
/* @__PURE__ */ n(St, { annotations: d }),
|
|
2357
|
+
!!h.length && /* @__PURE__ */ n(di, {})
|
|
2352
2358
|
]
|
|
2353
2359
|
}
|
|
2354
2360
|
) })
|
|
@@ -2356,10 +2362,10 @@ function ki({
|
|
|
2356
2362
|
);
|
|
2357
2363
|
}
|
|
2358
2364
|
export {
|
|
2359
|
-
|
|
2365
|
+
Dt as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
2360
2366
|
zt as COMMENT_DURATION,
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2367
|
+
K as PLAYBACK_RATES,
|
|
2368
|
+
yi as StudioPlayer,
|
|
2369
|
+
xi as useMediaState,
|
|
2370
|
+
Mi as useMediaStore
|
|
2365
2371
|
};
|