@instructure/studio-player 0.3.12 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -2
- package/dist/StudioPlayer/StudioPlayer.d.ts +4 -2
- package/dist/ar-B8l4Fn4I.js +111 -0
- package/dist/ca-D-9XXbq2.js +111 -0
- package/dist/cy-7BijMmgd.js +111 -0
- package/dist/da-DAY_l_21.js +111 -0
- package/dist/da-x-k12-CJ2niKwf.js +111 -0
- package/dist/de-ya8bO5Ja.js +111 -0
- package/dist/en-AU-x-unimelb-irzsO2mb.js +111 -0
- package/dist/en-D6AICPim.js +117 -0
- package/dist/en-GB-x-ukhe-G4m87b7j.js +111 -0
- package/dist/en_AU-DB3OHfTc.js +111 -0
- package/dist/en_CY-DhDZF-tZ.js +111 -0
- package/dist/{en-p8Xpb7Qg.js → en_GB-BK_q7w5s.js} +5 -5
- package/dist/es-DZ5Y82Uj.js +111 -0
- package/dist/es_ES-CQMBItY2.js +111 -0
- package/dist/fi-B4Pz1t-t.js +111 -0
- package/dist/fr-BteehQcx.js +111 -0
- package/dist/fr_CA-BHaXh8MX.js +111 -0
- package/dist/ga-Bx3a9UKG.js +111 -0
- package/dist/hi-DHG0_yeQ.js +111 -0
- package/dist/ht-C2IdMP2u.js +111 -0
- package/dist/id-uk30JX2p.js +111 -0
- package/dist/index-C75Fenqh.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/is-yOmqk5qU.js +111 -0
- package/dist/it-BM3Um8gU.js +111 -0
- package/dist/ja-BdL71P8g.js +111 -0
- package/dist/kl-BeSfwm2D.js +117 -0
- package/dist/languageTypes.d.ts +1 -0
- package/dist/mi-D2uHHivq.js +111 -0
- package/dist/ms--AuIVHSL.js +111 -0
- package/dist/nb-CXLIMCwW.js +111 -0
- package/dist/nb-x-k12-CxOnhM4J.js +111 -0
- package/dist/nl-CsVJ-oQV.js +111 -0
- package/dist/pl-BT0sRFhU.js +111 -0
- package/dist/pt-Anx8EAjZ.js +111 -0
- package/dist/pt_BR-Be3UULFe.js +111 -0
- package/dist/ru-DPUYT2zh.js +111 -0
- package/dist/sl-QnHcT_i1.js +111 -0
- package/dist/studio-player.es.js +909 -838
- package/dist/sv-D_WuG6Ug.js +111 -0
- package/dist/sv-x-k12-DLoiJ1OB.js +111 -0
- package/dist/th-CcE5hCow.js +111 -0
- package/dist/types.d.ts +0 -1
- package/dist/vi-De-Nfy-i.js +111 -0
- package/dist/zh-ClimEyGq.js +111 -0
- package/dist/zh-Hans-CU7SSIXE.js +111 -0
- package/dist/zh-Hant-BMd136-f.js +111 -0
- package/dist/zh_HK-Culy5KI5.js +111 -0
- package/package.json +1 -1
- package/dist/index-LiNlJlAO.css +0 -1
- package/dist/kl-Drx4juMa.js +0 -111
package/dist/studio-player.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './index-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as t, jsxs 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 ue, autoUpdate as de,
|
|
12
|
-
const
|
|
1
|
+
import './index-C75Fenqh.css';var st = Object.defineProperty;
|
|
2
|
+
var at = (e, n, o) => n in e ? st(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
|
+
var H = (e, n, o) => at(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
|
+
import { jsx as t, jsxs as l, Fragment as Y } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as ce, useContext as re, useState as x, useCallback as f, useEffect as F, useMemo as T, useRef as ne } from "react";
|
|
6
|
+
import { useMediaPlayer as Z, Spinner as le, useMediaRemote as oe, useMediaState as g, isTrackCaptionKind as lt, Track as ct, Captions as rt, usePlaybackRateOptions as ut, useCaptionOptions as dt, useVideoQualityOptions as mt, useMediaStore as He, Poster as ht, FullscreenButton as pt, Time as ke, TimeSlider as G, VolumeSlider as X, isAudioProvider as _t, isVideoProvider as Ct, MediaPlayer as ft, MediaProvider as gt } from "@vidstack/react";
|
|
7
|
+
import { useMediaState as Mi, useMediaStore as Ni } from "@vidstack/react";
|
|
8
|
+
import { initReactI18next as bt, useTranslation as _ } from "react-i18next";
|
|
9
|
+
import vt from "i18next";
|
|
10
|
+
import wt from "i18next-resources-to-backend";
|
|
11
|
+
import { useFloating as ue, autoUpdate as de, useDismiss as me, useInteractions as he, detectOverflow as yt, FloatingFocusManager as pe, shift as Se, offset as Te, arrow as Ve, useListNavigation as kt, FloatingArrow as Ae } from "@floating-ui/react";
|
|
12
|
+
const Lt = (e, n, o) => {
|
|
13
13
|
const i = e[n];
|
|
14
14
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
|
|
15
15
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -22,9 +22,9 @@ const yt = (e, n, o) => {
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(e) =>
|
|
25
|
+
vt.use(bt).use(
|
|
26
|
+
wt(
|
|
27
|
+
(e) => Lt(/* @__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,71 +35,73 @@ bt.use(gt).use(
|
|
|
35
35
|
escapeValue: !1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const
|
|
39
|
-
function
|
|
38
|
+
const Ee = ce(null);
|
|
39
|
+
function xt({
|
|
40
40
|
children: e,
|
|
41
41
|
contextValue: n
|
|
42
42
|
}) {
|
|
43
|
-
return /* @__PURE__ */ t(
|
|
43
|
+
return /* @__PURE__ */ t(Ee.Provider, { value: n, children: e });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const e = re(
|
|
45
|
+
function w() {
|
|
46
|
+
const e = re(Ee);
|
|
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 Be =
|
|
54
|
-
function
|
|
53
|
+
const Be = ce(null);
|
|
54
|
+
function Mt({
|
|
55
55
|
hideFullScreen: e,
|
|
56
56
|
comments: n,
|
|
57
57
|
captions: o,
|
|
58
58
|
thumbnail: i,
|
|
59
59
|
annotations: s,
|
|
60
60
|
quizMarkers: a,
|
|
61
|
-
interactive:
|
|
61
|
+
interactive: c,
|
|
62
62
|
onAnnotationClick: r,
|
|
63
|
-
onQuizMarkerClick:
|
|
64
|
-
onInteractivePinClick:
|
|
65
|
-
interactiveMenuElements:
|
|
66
|
-
kebabMenuElements:
|
|
63
|
+
onQuizMarkerClick: d,
|
|
64
|
+
onInteractivePinClick: p,
|
|
65
|
+
interactiveMenuElements: b,
|
|
66
|
+
kebabMenuElements: v,
|
|
67
67
|
darkMode: k,
|
|
68
68
|
children: y,
|
|
69
|
-
forceComments:
|
|
69
|
+
forceComments: P,
|
|
70
70
|
disableCaptionSettings: h,
|
|
71
|
-
disableStorage:
|
|
72
|
-
captionOffsetOverride:
|
|
73
|
-
disableInteractivePinRanges:
|
|
74
|
-
onQuizMarkerShow:
|
|
71
|
+
disableStorage: C,
|
|
72
|
+
captionOffsetOverride: V,
|
|
73
|
+
disableInteractivePinRanges: A,
|
|
74
|
+
onQuizMarkerShow: U,
|
|
75
|
+
onCaptionsDelete: S
|
|
75
76
|
}) {
|
|
76
|
-
const
|
|
77
|
+
const E = {
|
|
77
78
|
hideFullScreen: e,
|
|
78
79
|
comments: n,
|
|
79
80
|
captions: o,
|
|
80
81
|
thumbnail: i,
|
|
81
82
|
annotations: s,
|
|
82
83
|
quizMarkers: a,
|
|
83
|
-
interactive:
|
|
84
|
+
interactive: c,
|
|
84
85
|
onAnnotationClick: r,
|
|
85
|
-
onQuizMarkerClick:
|
|
86
|
-
onInteractivePinClick:
|
|
87
|
-
interactiveMenuElements:
|
|
88
|
-
kebabMenuElements:
|
|
86
|
+
onQuizMarkerClick: d,
|
|
87
|
+
onInteractivePinClick: p,
|
|
88
|
+
interactiveMenuElements: b,
|
|
89
|
+
kebabMenuElements: v,
|
|
89
90
|
darkMode: k,
|
|
90
91
|
hasComments: n.length > 0,
|
|
91
92
|
hasAnnotations: s.length > 0,
|
|
92
93
|
hasQuizmarkers: a.length > 0,
|
|
93
|
-
forceComments:
|
|
94
|
+
forceComments: P,
|
|
94
95
|
disableCaptionSettings: h,
|
|
95
|
-
disableStorage:
|
|
96
|
-
captionOffsetOverride:
|
|
97
|
-
disableInteractivePinRanges:
|
|
98
|
-
onQuizMarkerShow:
|
|
96
|
+
disableStorage: C,
|
|
97
|
+
captionOffsetOverride: V,
|
|
98
|
+
disableInteractivePinRanges: A,
|
|
99
|
+
onQuizMarkerShow: U,
|
|
100
|
+
onCaptionsDelete: S
|
|
99
101
|
};
|
|
100
|
-
return /* @__PURE__ */ t(Be.Provider, { value:
|
|
102
|
+
return /* @__PURE__ */ t(Be.Provider, { value: E, children: y });
|
|
101
103
|
}
|
|
102
|
-
function
|
|
104
|
+
function L() {
|
|
103
105
|
const e = re(Be);
|
|
104
106
|
if (!e)
|
|
105
107
|
throw new Error(
|
|
@@ -107,82 +109,82 @@ function M() {
|
|
|
107
109
|
);
|
|
108
110
|
return e;
|
|
109
111
|
}
|
|
110
|
-
const
|
|
112
|
+
const Nt = "_annotation-overlay_1kxzn_1", Pt = {
|
|
111
113
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
112
|
-
annotationOverlay:
|
|
113
|
-
},
|
|
114
|
+
annotationOverlay: Nt
|
|
115
|
+
}, Le = 0.25, It = (e, n) => {
|
|
114
116
|
let o = !1;
|
|
115
117
|
return (i) => {
|
|
116
118
|
const s = i.detail.currentTime;
|
|
117
|
-
s >= e.time && s < e.time +
|
|
119
|
+
s >= e.time && s < e.time + Le && !o && (o = !0, n(e)), (s < e.time || s >= e.time + Le) && o && (o = !1);
|
|
118
120
|
};
|
|
119
121
|
};
|
|
120
|
-
function
|
|
121
|
-
const n =
|
|
122
|
+
function Ht({ annotations: e }) {
|
|
123
|
+
const n = Z(), o = w(), i = L(), [s, a] = x(
|
|
122
124
|
null
|
|
123
|
-
),
|
|
124
|
-
(
|
|
125
|
-
n == null || n.pause(), i.interactive || o.disableInteractions(), a(
|
|
125
|
+
), c = f(
|
|
126
|
+
(d) => {
|
|
127
|
+
n == null || n.pause(), i.interactive || o.disableInteractions(), a(d);
|
|
126
128
|
},
|
|
127
129
|
[n, o]
|
|
128
130
|
), r = () => {
|
|
129
131
|
i.interactive || (n == null || n.play(), o.enableInteractions()), a(null);
|
|
130
132
|
};
|
|
131
|
-
return
|
|
133
|
+
return F(() => {
|
|
132
134
|
if (!n)
|
|
133
135
|
return;
|
|
134
|
-
const
|
|
135
|
-
for (const
|
|
136
|
-
const
|
|
137
|
-
n.addEventListener("time-update",
|
|
136
|
+
const d = [];
|
|
137
|
+
for (const p of e) {
|
|
138
|
+
const b = It(p, c);
|
|
139
|
+
n.addEventListener("time-update", b), d.push(b);
|
|
138
140
|
}
|
|
139
141
|
if (s) {
|
|
140
|
-
const
|
|
141
|
-
(
|
|
142
|
+
const p = e.find(
|
|
143
|
+
(b) => b.id === s.id
|
|
142
144
|
);
|
|
143
|
-
|
|
145
|
+
p ? a(p) : (a(null), o.enableInteractions());
|
|
144
146
|
}
|
|
145
147
|
return () => {
|
|
146
|
-
for (const
|
|
147
|
-
n.removeEventListener("time-update",
|
|
148
|
+
for (const p of d)
|
|
149
|
+
n.removeEventListener("time-update", p);
|
|
148
150
|
};
|
|
149
|
-
}, [n, e]), s ? /* @__PURE__ */ t("div", { className:
|
|
151
|
+
}, [n, e]), s ? /* @__PURE__ */ t("div", { className: Pt.annotationOverlay, children: s.render(r) }) : null;
|
|
150
152
|
}
|
|
151
|
-
const
|
|
153
|
+
const St = "_media-buffering-indicator_1fwjr_1", Tt = "_media-buffering-spinner_1fwjr_17", Vt = "_media-buffering-spin_1fwjr_17", At = "_media-buffering-track_1fwjr_22", Et = "_media-buffering-track-fill_1fwjr_27", J = {
|
|
152
154
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
153
|
-
mediaBufferingIndicator:
|
|
155
|
+
mediaBufferingIndicator: St,
|
|
154
156
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
155
|
-
mediaBufferingSpinner:
|
|
157
|
+
mediaBufferingSpinner: Tt,
|
|
156
158
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
157
|
-
mediaBufferingSpin:
|
|
159
|
+
mediaBufferingSpin: Vt,
|
|
158
160
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
159
|
-
mediaBufferingTrack:
|
|
161
|
+
mediaBufferingTrack: At,
|
|
160
162
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
161
|
-
mediaBufferingTrackFill:
|
|
163
|
+
mediaBufferingTrackFill: Et
|
|
162
164
|
};
|
|
163
|
-
function
|
|
164
|
-
return /* @__PURE__ */ t("div", { className:
|
|
165
|
-
/* @__PURE__ */ t(
|
|
165
|
+
function Re() {
|
|
166
|
+
return /* @__PURE__ */ t("div", { className: J.mediaBufferingIndicator, children: /* @__PURE__ */ l(le.Root, { className: J.mediaBufferingSpinner, size: 96, children: [
|
|
167
|
+
/* @__PURE__ */ t(le.Track, { className: J.mediaBufferingTrack, width: 8 }),
|
|
166
168
|
/* @__PURE__ */ t(
|
|
167
|
-
|
|
169
|
+
le.TrackFill,
|
|
168
170
|
{
|
|
169
|
-
className:
|
|
171
|
+
className: J.mediaBufferingTrackFill,
|
|
170
172
|
width: 8
|
|
171
173
|
}
|
|
172
174
|
)
|
|
173
175
|
] }) });
|
|
174
176
|
}
|
|
175
|
-
const
|
|
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: [
|
|
176
178
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
177
179
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
|
|
178
|
-
] }),
|
|
180
|
+
] }), Fe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
179
181
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
180
182
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
181
183
|
] });
|
|
182
|
-
function
|
|
183
|
-
const e = oe(), n =
|
|
184
|
-
(
|
|
185
|
-
e.toggleCaptions(
|
|
184
|
+
function Bt() {
|
|
185
|
+
const e = oe(), n = g("textTrack"), o = g("hasCaptions"), i = n && lt(n), s = w(), a = f(
|
|
186
|
+
(c) => {
|
|
187
|
+
e.toggleCaptions(c.nativeEvent);
|
|
186
188
|
},
|
|
187
189
|
[e]
|
|
188
190
|
);
|
|
@@ -195,29 +197,29 @@ function Et() {
|
|
|
195
197
|
"aria-label": "Captions",
|
|
196
198
|
"aria-pressed": i ? "true" : "false",
|
|
197
199
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
198
|
-
children: i ? /* @__PURE__ */ t(
|
|
200
|
+
children: i ? /* @__PURE__ */ t(Fe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Oe, { className: "controls-button-icon" })
|
|
199
201
|
}
|
|
200
202
|
) : null;
|
|
201
203
|
}
|
|
202
|
-
const
|
|
203
|
-
captions:
|
|
204
|
-
},
|
|
205
|
-
function
|
|
206
|
-
const n = e.length > 0, o =
|
|
204
|
+
const Rt = "_captions_1cu0g_1", Ot = {
|
|
205
|
+
captions: Rt
|
|
206
|
+
}, Ft = (e, n) => e ? n.top : n.bottom;
|
|
207
|
+
function Ze({ captions: e }) {
|
|
208
|
+
const n = e.length > 0, o = w(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = Ft(
|
|
207
209
|
s,
|
|
208
210
|
i ?? {}
|
|
209
211
|
);
|
|
210
|
-
return /* @__PURE__ */
|
|
211
|
-
e.map((
|
|
212
|
+
return /* @__PURE__ */ l(Y, { children: [
|
|
213
|
+
e.map((c) => /* @__PURE__ */ t(
|
|
212
214
|
ct,
|
|
213
215
|
{
|
|
214
216
|
kind: "subtitles",
|
|
215
|
-
type:
|
|
216
|
-
language:
|
|
217
|
-
label:
|
|
218
|
-
src:
|
|
217
|
+
type: c.type,
|
|
218
|
+
language: c.language,
|
|
219
|
+
label: c.label,
|
|
220
|
+
src: c.src
|
|
219
221
|
},
|
|
220
|
-
|
|
222
|
+
c.label
|
|
221
223
|
)),
|
|
222
224
|
n ? /* @__PURE__ */ t(
|
|
223
225
|
"div",
|
|
@@ -230,14 +232,14 @@ function ze({ captions: e }) {
|
|
|
230
232
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
231
233
|
"--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
232
234
|
},
|
|
233
|
-
children: /* @__PURE__ */ t(
|
|
235
|
+
children: /* @__PURE__ */ t(rt, { className: Ot.captions })
|
|
234
236
|
}
|
|
235
237
|
) : null
|
|
236
238
|
] });
|
|
237
239
|
}
|
|
238
|
-
const
|
|
240
|
+
const D = [0.5, 0.75, 1, 1.25, 1.5, 2], Zt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e) => {
|
|
239
241
|
const [, n] = x({});
|
|
240
|
-
return
|
|
242
|
+
return T(() => {
|
|
241
243
|
let o = [];
|
|
242
244
|
return {
|
|
243
245
|
add(i) {
|
|
@@ -254,21 +256,21 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Ot = [0.5, 1, 2, 3, 4], Ft = 5, Zt = (e)
|
|
|
254
256
|
}
|
|
255
257
|
};
|
|
256
258
|
}, []);
|
|
257
|
-
},
|
|
259
|
+
}, Dt = (e, n, o) => {
|
|
258
260
|
let i = !1;
|
|
259
261
|
return (s) => {
|
|
260
262
|
const a = s.detail.currentTime;
|
|
261
263
|
a >= e.timestamp && a < e.timestamp + n && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + n) && i && (o.remove(e), i = !1);
|
|
262
264
|
};
|
|
263
265
|
}, Kt = (e, n = 5) => {
|
|
264
|
-
const o =
|
|
265
|
-
return
|
|
266
|
+
const o = Z(), i = jt(n);
|
|
267
|
+
return F(() => {
|
|
266
268
|
if (!o)
|
|
267
269
|
return;
|
|
268
270
|
const s = [];
|
|
269
271
|
for (const a of e) {
|
|
270
|
-
const
|
|
271
|
-
s.push(
|
|
272
|
+
const c = Dt(a, zt, i);
|
|
273
|
+
s.push(c), o.addEventListener("time-update", c);
|
|
272
274
|
}
|
|
273
275
|
return o.dispatchEvent(
|
|
274
276
|
new CustomEvent("time-update", {
|
|
@@ -280,97 +282,97 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Ot = [0.5, 1, 2, 3, 4], Ft = 5, Zt = (e)
|
|
|
280
282
|
i.clear();
|
|
281
283
|
};
|
|
282
284
|
}, [o, i, e]), i;
|
|
283
|
-
},
|
|
285
|
+
}, $t = "_comments-overlay_1puzm_1", Ut = "_comments-container_1puzm_10", qt = "_comment_1puzm_1", Gt = "_comment-text_1puzm_47", Qt = "_comment-author-avatar_1puzm_70", Wt = "_comment-author-name_1puzm_89", O = {
|
|
284
286
|
"comments-overlay": "_comments-overlay_1puzm_1",
|
|
285
|
-
commentsOverlay:
|
|
287
|
+
commentsOverlay: $t,
|
|
286
288
|
"comments-container": "_comments-container_1puzm_10",
|
|
287
|
-
commentsContainer:
|
|
288
|
-
comment:
|
|
289
|
+
commentsContainer: Ut,
|
|
290
|
+
comment: qt,
|
|
289
291
|
"comment-text": "_comment-text_1puzm_47",
|
|
290
|
-
commentText:
|
|
292
|
+
commentText: Gt,
|
|
291
293
|
"comment-author-avatar": "_comment-author-avatar_1puzm_70",
|
|
292
|
-
commentAuthorAvatar:
|
|
294
|
+
commentAuthorAvatar: Qt,
|
|
293
295
|
"comment-author-name": "_comment-author-name_1puzm_89",
|
|
294
|
-
commentAuthorName:
|
|
296
|
+
commentAuthorName: Wt
|
|
295
297
|
};
|
|
296
|
-
function
|
|
297
|
-
return e.render ? e.render(e,
|
|
298
|
+
function Yt({ comment: e }) {
|
|
299
|
+
return e.render ? e.render(e, O) : /* @__PURE__ */ l("div", { className: O.comment, onClick: () => {
|
|
298
300
|
var n;
|
|
299
301
|
return (n = e.onClick) == null ? void 0 : n.call(e, e);
|
|
300
302
|
}, children: [
|
|
301
303
|
/* @__PURE__ */ t(
|
|
302
304
|
"img",
|
|
303
305
|
{
|
|
304
|
-
className:
|
|
306
|
+
className: O.commentAuthorAvatar,
|
|
305
307
|
src: e.user.avatar,
|
|
306
308
|
alt: e.user.name
|
|
307
309
|
}
|
|
308
310
|
),
|
|
309
|
-
/* @__PURE__ */ t("span", { className:
|
|
310
|
-
/* @__PURE__ */ t("span", { className:
|
|
311
|
+
/* @__PURE__ */ t("span", { className: O.commentText, children: e.text }),
|
|
312
|
+
/* @__PURE__ */ t("span", { className: O.commentAuthorName, children: e.user.name })
|
|
311
313
|
] });
|
|
312
314
|
}
|
|
313
|
-
const
|
|
314
|
-
function
|
|
315
|
-
const n =
|
|
315
|
+
const Xt = 5;
|
|
316
|
+
function Jt({ comments: e }) {
|
|
317
|
+
const n = w(), o = Kt(e, Xt), i = !!g("textTrack"), s = o.map((a) => /* @__PURE__ */ t(Yt, { comment: a }, a.id));
|
|
316
318
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
317
319
|
"div",
|
|
318
320
|
{
|
|
319
|
-
className:
|
|
321
|
+
className: O.commentsOverlay,
|
|
320
322
|
style: {
|
|
321
323
|
flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
|
|
322
324
|
},
|
|
323
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
325
|
+
children: /* @__PURE__ */ t("div", { className: O.commentsContainer, children: i ? s.slice(-4) : s })
|
|
324
326
|
}
|
|
325
327
|
) : null;
|
|
326
328
|
}
|
|
327
|
-
const
|
|
328
|
-
root:
|
|
329
|
-
"left-controls": "_left-
|
|
330
|
-
leftControls:
|
|
331
|
-
"right-controls": "_right-
|
|
332
|
-
rightControls:
|
|
333
|
-
indicators:
|
|
334
|
-
"normal-timeline": "_normal-
|
|
335
|
-
normalTimeline:
|
|
336
|
-
"compact-timeline": "_compact-
|
|
337
|
-
compactTimeline:
|
|
329
|
+
const en = "_root_h0dso_1", tn = "_left-controls_h0dso_28", nn = "_right-controls_h0dso_34", on = "_indicators_h0dso_40", sn = "_normal-timeline_h0dso_49", an = "_compact-timeline_h0dso_55", j = {
|
|
330
|
+
root: en,
|
|
331
|
+
"left-controls": "_left-controls_h0dso_28",
|
|
332
|
+
leftControls: tn,
|
|
333
|
+
"right-controls": "_right-controls_h0dso_34",
|
|
334
|
+
rightControls: nn,
|
|
335
|
+
indicators: on,
|
|
336
|
+
"normal-timeline": "_normal-timeline_h0dso_49",
|
|
337
|
+
normalTimeline: sn,
|
|
338
|
+
"compact-timeline": "_compact-timeline_h0dso_55",
|
|
339
|
+
compactTimeline: an
|
|
338
340
|
};
|
|
339
|
-
function
|
|
341
|
+
function ln({
|
|
340
342
|
darkMode: e,
|
|
341
343
|
playerRef: n,
|
|
342
344
|
showCaptionsButton: o = !0
|
|
343
345
|
}) {
|
|
344
|
-
const i =
|
|
345
|
-
return
|
|
346
|
+
const i = Z();
|
|
347
|
+
return F(() => {
|
|
346
348
|
i && (i.remoteControl.pauseControls(), n && (typeof n == "function" ? n(i) : n.current = i));
|
|
347
|
-
}, [i, n]), /* @__PURE__ */
|
|
348
|
-
/* @__PURE__ */ t(
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */ t(
|
|
351
|
-
/* @__PURE__ */ t(
|
|
349
|
+
}, [i, n]), /* @__PURE__ */ l("div", { "data-darkmode": e, className: j.root, children: [
|
|
350
|
+
/* @__PURE__ */ t(Me, { className: j.normalTimeline }),
|
|
351
|
+
/* @__PURE__ */ l("div", { className: j.leftControls, children: [
|
|
352
|
+
/* @__PURE__ */ t(Wo, {}),
|
|
353
|
+
/* @__PURE__ */ t(ti, {})
|
|
352
354
|
] }),
|
|
353
|
-
/* @__PURE__ */ t("div", { className:
|
|
354
|
-
/* @__PURE__ */ t(
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
o && /* @__PURE__ */ t(
|
|
357
|
-
/* @__PURE__ */ t(
|
|
358
|
-
/* @__PURE__ */ t(
|
|
355
|
+
/* @__PURE__ */ t("div", { className: j.indicators, children: /* @__PURE__ */ t(r1, {}) }),
|
|
356
|
+
/* @__PURE__ */ t(Me, { className: j.compactTimeline }),
|
|
357
|
+
/* @__PURE__ */ l("div", { className: j.rightControls, children: [
|
|
358
|
+
o && /* @__PURE__ */ t(Bt, {}),
|
|
359
|
+
/* @__PURE__ */ t(co, {}),
|
|
360
|
+
/* @__PURE__ */ t(Lo, {})
|
|
359
361
|
] })
|
|
360
362
|
] });
|
|
361
363
|
}
|
|
362
|
-
const
|
|
363
|
-
"menu-hint": "_menu-
|
|
364
|
-
menuHint:
|
|
365
|
-
"menu-button": "_menu-
|
|
366
|
-
menuButton:
|
|
367
|
-
"menu-label": "_menu-
|
|
368
|
-
menuLabel:
|
|
369
|
-
"menu-icon": "_menu-
|
|
370
|
-
menuIcon:
|
|
364
|
+
const cn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), rn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), un = "_menu-hint_1wiu5_1", dn = "_menu-button_1wiu5_5", mn = "_menu-label_1wiu5_37", hn = "_menu-icon_1wiu5_42", ee = {
|
|
365
|
+
"menu-hint": "_menu-hint_1wiu5_1",
|
|
366
|
+
menuHint: un,
|
|
367
|
+
"menu-button": "_menu-button_1wiu5_5",
|
|
368
|
+
menuButton: dn,
|
|
369
|
+
"menu-label": "_menu-label_1wiu5_37",
|
|
370
|
+
menuLabel: mn,
|
|
371
|
+
"menu-icon": "_menu-icon_1wiu5_42",
|
|
372
|
+
menuIcon: hn
|
|
371
373
|
};
|
|
372
|
-
function
|
|
373
|
-
return /* @__PURE__ */
|
|
374
|
+
function K({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
375
|
+
return /* @__PURE__ */ l(
|
|
374
376
|
"button",
|
|
375
377
|
{
|
|
376
378
|
type: "button",
|
|
@@ -378,88 +380,88 @@ function Q({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
|
378
380
|
"aria-label": e,
|
|
379
381
|
tabIndex: -1,
|
|
380
382
|
onClick: o,
|
|
381
|
-
className:
|
|
383
|
+
className: ee.menuButton,
|
|
382
384
|
children: [
|
|
383
|
-
i && /* @__PURE__ */ t(i, { className:
|
|
384
|
-
/* @__PURE__ */ t("span", { className:
|
|
385
|
-
/* @__PURE__ */ t("span", { className:
|
|
386
|
-
/* @__PURE__ */ t(
|
|
385
|
+
i && /* @__PURE__ */ t(i, { className: ee.menuIcon }),
|
|
386
|
+
/* @__PURE__ */ t("span", { className: ee.menuLabel, children: e }),
|
|
387
|
+
n && /* @__PURE__ */ t("span", { className: ee.menuHint, children: n }),
|
|
388
|
+
/* @__PURE__ */ t(rn, {})
|
|
387
389
|
]
|
|
388
390
|
}
|
|
389
391
|
);
|
|
390
392
|
}
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
const e =
|
|
393
|
+
const pn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
|
|
394
|
+
function _n() {
|
|
395
|
+
const e = N(), n = g("playbackRate"), { t: o } = _(), i = f(() => {
|
|
394
396
|
e.setPage("speed");
|
|
395
397
|
}, [e]);
|
|
396
398
|
return /* @__PURE__ */ t(
|
|
397
|
-
|
|
399
|
+
K,
|
|
398
400
|
{
|
|
399
401
|
label: o("PLAYBACK_SPEED"),
|
|
400
402
|
hint: `${n}x`,
|
|
401
403
|
onClick: i,
|
|
402
|
-
Icon:
|
|
404
|
+
Icon: pn
|
|
403
405
|
}
|
|
404
406
|
);
|
|
405
407
|
}
|
|
406
|
-
function
|
|
407
|
-
const e =
|
|
408
|
+
function Cn() {
|
|
409
|
+
const e = N(), n = g("hasCaptions"), o = g("textTrack"), { t: i } = _(), s = f(() => {
|
|
408
410
|
e.setPage("captions");
|
|
409
411
|
}, [e]);
|
|
410
412
|
return n ? /* @__PURE__ */ t(
|
|
411
|
-
|
|
413
|
+
K,
|
|
412
414
|
{
|
|
413
415
|
label: i("CAPTIONS"),
|
|
414
416
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
415
417
|
onClick: s,
|
|
416
|
-
Icon:
|
|
418
|
+
Icon: Oe
|
|
417
419
|
}
|
|
418
420
|
) : null;
|
|
419
421
|
}
|
|
420
|
-
const
|
|
422
|
+
const fn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
421
423
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
422
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ l("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
423
425
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.46326 3.85039H0V2.65039H2.46326C2.7388 1.36449 3.88181 0.400391 5.24999 0.400391C6.61818 0.400391 7.76119 1.36449 8.03673 2.65039H18V3.85039H8.03673C7.76119 5.13629 6.61818 6.10039 5.24999 6.10039C3.88181 6.10039 2.7388 5.13629 2.46326 3.85039ZM3.59999 3.25039C3.59999 2.33912 4.33872 1.60039 5.24999 1.60039C6.16126 1.60039 6.89999 2.33912 6.89999 3.25039C6.89999 4.16166 6.16126 4.90039 5.24999 4.90039C4.33872 4.90039 3.59999 4.16166 3.59999 3.25039Z", fill: "currentColor" }),
|
|
424
426
|
/* @__PURE__ */ t("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" }),
|
|
425
427
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
|
|
426
428
|
] })
|
|
427
429
|
] });
|
|
428
|
-
function
|
|
429
|
-
const e =
|
|
430
|
+
function gn() {
|
|
431
|
+
const e = N(), n = g("autoQuality"), o = g("quality"), { t: i } = _(), s = f(() => {
|
|
430
432
|
e.setPage("quality");
|
|
431
433
|
}, [e]);
|
|
432
434
|
return o ? /* @__PURE__ */ t(
|
|
433
|
-
|
|
435
|
+
K,
|
|
434
436
|
{
|
|
435
437
|
label: i("QUALITY"),
|
|
436
438
|
hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
437
439
|
onClick: s,
|
|
438
|
-
Icon:
|
|
440
|
+
Icon: fn
|
|
439
441
|
}
|
|
440
442
|
) : null;
|
|
441
443
|
}
|
|
442
|
-
const
|
|
443
|
-
"switch-track": "_switch-
|
|
444
|
-
switchTrack:
|
|
445
|
-
"switch-thumb": "_switch-
|
|
446
|
-
switchThumb:
|
|
447
|
-
"switch-icon": "_switch-
|
|
448
|
-
switchIcon:
|
|
449
|
-
"switch-body": "_switch-
|
|
450
|
-
switchBody:
|
|
451
|
-
"switch-label": "_switch-
|
|
452
|
-
switchLabel:
|
|
453
|
-
"menu-icon": "_menu-
|
|
454
|
-
menuIcon:
|
|
444
|
+
const bn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), vn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { 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" }) }), wn = "_switch-track_7nhpo_1", yn = "_switch-thumb_7nhpo_17", kn = "_switch-icon_7nhpo_31", Ln = "_switch-body_7nhpo_37", xn = "_switch-label_7nhpo_78", Mn = "_menu-icon_7nhpo_82", R = {
|
|
445
|
+
"switch-track": "_switch-track_7nhpo_1",
|
|
446
|
+
switchTrack: wn,
|
|
447
|
+
"switch-thumb": "_switch-thumb_7nhpo_17",
|
|
448
|
+
switchThumb: yn,
|
|
449
|
+
"switch-icon": "_switch-icon_7nhpo_31",
|
|
450
|
+
switchIcon: kn,
|
|
451
|
+
"switch-body": "_switch-body_7nhpo_37",
|
|
452
|
+
switchBody: Ln,
|
|
453
|
+
"switch-label": "_switch-label_7nhpo_78",
|
|
454
|
+
switchLabel: xn,
|
|
455
|
+
"menu-icon": "_menu-icon_7nhpo_82",
|
|
456
|
+
menuIcon: Mn
|
|
455
457
|
};
|
|
456
|
-
function
|
|
458
|
+
function _e({
|
|
457
459
|
label: e,
|
|
458
460
|
checked: n = !1,
|
|
459
461
|
onClick: o,
|
|
460
462
|
Icon: i
|
|
461
463
|
}) {
|
|
462
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ l(
|
|
463
465
|
"button",
|
|
464
466
|
{
|
|
465
467
|
className: R.switchBody,
|
|
@@ -471,30 +473,30 @@ function Ce({
|
|
|
471
473
|
children: [
|
|
472
474
|
i && /* @__PURE__ */ t(i, { className: R.menuIcon }),
|
|
473
475
|
/* @__PURE__ */ t("span", { className: R.switchLabel, children: e }),
|
|
474
|
-
/* @__PURE__ */ t("div", { className: R.switchTrack, children: /* @__PURE__ */ t("div", { className: R.switchThumb, children: n ? /* @__PURE__ */ t(
|
|
476
|
+
/* @__PURE__ */ t("div", { className: R.switchTrack, children: /* @__PURE__ */ t("div", { className: R.switchThumb, children: n ? /* @__PURE__ */ t(bn, { className: R.switchIcon }) : /* @__PURE__ */ t(vn, { className: R.switchIcon }) }) })
|
|
475
477
|
]
|
|
476
478
|
}
|
|
477
479
|
);
|
|
478
480
|
}
|
|
479
|
-
const
|
|
480
|
-
function
|
|
481
|
-
const { t: e } =
|
|
481
|
+
const Nn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
|
|
482
|
+
function Pn() {
|
|
483
|
+
const { t: e } = _(), n = L(), o = w();
|
|
482
484
|
return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
|
|
483
|
-
|
|
485
|
+
_e,
|
|
484
486
|
{
|
|
485
|
-
Icon:
|
|
487
|
+
Icon: Nn,
|
|
486
488
|
label: e("COMMENTS"),
|
|
487
489
|
onClick: o.toggleComments,
|
|
488
490
|
checked: o.state.commentsEnabled
|
|
489
491
|
}
|
|
490
492
|
) : null;
|
|
491
493
|
}
|
|
492
|
-
const
|
|
494
|
+
const In = "_main-menu_7h96l_1", Hn = {
|
|
493
495
|
"main-menu": "_main-menu_7h96l_1",
|
|
494
|
-
mainMenu:
|
|
496
|
+
mainMenu: In
|
|
495
497
|
};
|
|
496
|
-
function
|
|
497
|
-
|
|
498
|
+
function ze(e) {
|
|
499
|
+
F(() => {
|
|
498
500
|
const n = (o) => {
|
|
499
501
|
var i;
|
|
500
502
|
(i = e[o.key]) == null || i.call(e, o);
|
|
@@ -504,11 +506,11 @@ function Ke(e) {
|
|
|
504
506
|
};
|
|
505
507
|
}, [e]);
|
|
506
508
|
}
|
|
507
|
-
function
|
|
508
|
-
const n =
|
|
509
|
-
return
|
|
509
|
+
function Sn(e) {
|
|
510
|
+
const n = T(() => ({ Escape: e }), [e]);
|
|
511
|
+
return ze(n);
|
|
510
512
|
}
|
|
511
|
-
const
|
|
513
|
+
const N = () => {
|
|
512
514
|
const e = re(De);
|
|
513
515
|
if (!e)
|
|
514
516
|
throw new Error(
|
|
@@ -516,48 +518,48 @@ const H = () => {
|
|
|
516
518
|
);
|
|
517
519
|
return e;
|
|
518
520
|
};
|
|
519
|
-
function
|
|
521
|
+
function Tn(e, n) {
|
|
520
522
|
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(n);
|
|
521
523
|
return o[i - 1] ?? null;
|
|
522
524
|
}
|
|
523
|
-
function
|
|
525
|
+
function Vn(e, n) {
|
|
524
526
|
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(n);
|
|
525
527
|
return o[i + 1] ?? null;
|
|
526
528
|
}
|
|
527
|
-
function
|
|
529
|
+
function An(e) {
|
|
528
530
|
return e.querySelector("button");
|
|
529
531
|
}
|
|
530
|
-
function
|
|
532
|
+
function En(e) {
|
|
531
533
|
const n = Array.from(e.querySelectorAll("button"));
|
|
532
534
|
return n[n.length - 1] ?? null;
|
|
533
535
|
}
|
|
534
|
-
function
|
|
535
|
-
const e =
|
|
536
|
+
function z() {
|
|
537
|
+
const e = N(), n = ne(null), o = T(
|
|
536
538
|
() => ({
|
|
537
539
|
Escape: e.toggle,
|
|
538
540
|
ArrowUp: () => {
|
|
539
541
|
const i = document.activeElement;
|
|
540
542
|
if (i && n.current && n.current.contains(i)) {
|
|
541
|
-
const s =
|
|
543
|
+
const s = Tn(
|
|
542
544
|
n.current,
|
|
543
545
|
i
|
|
544
546
|
);
|
|
545
547
|
s == null || s.focus();
|
|
546
548
|
} else if (n.current) {
|
|
547
|
-
const s =
|
|
549
|
+
const s = En(n.current);
|
|
548
550
|
s == null || s.focus();
|
|
549
551
|
}
|
|
550
552
|
},
|
|
551
553
|
ArrowDown: () => {
|
|
552
554
|
const i = document.activeElement;
|
|
553
555
|
if (i && n.current && n.current.contains(i)) {
|
|
554
|
-
const s =
|
|
556
|
+
const s = Vn(
|
|
555
557
|
n.current,
|
|
556
558
|
i
|
|
557
559
|
);
|
|
558
560
|
s == null || s.focus();
|
|
559
561
|
} else if (n.current) {
|
|
560
|
-
const s =
|
|
562
|
+
const s = An(n.current);
|
|
561
563
|
s == null || s.focus();
|
|
562
564
|
}
|
|
563
565
|
},
|
|
@@ -569,97 +571,101 @@ function D() {
|
|
|
569
571
|
}),
|
|
570
572
|
[e]
|
|
571
573
|
);
|
|
572
|
-
return
|
|
574
|
+
return ze(o), n;
|
|
573
575
|
}
|
|
574
|
-
function
|
|
575
|
-
const e =
|
|
576
|
-
return /* @__PURE__ */
|
|
576
|
+
function Bn() {
|
|
577
|
+
const e = z(), { t: n } = _();
|
|
578
|
+
return /* @__PURE__ */ l(
|
|
577
579
|
"div",
|
|
578
580
|
{
|
|
579
581
|
ref: e,
|
|
580
582
|
id: "submenu",
|
|
581
583
|
"aria-label": n("MAIN_MENU"),
|
|
582
584
|
role: "menu",
|
|
583
|
-
className:
|
|
585
|
+
className: Hn.mainMenu,
|
|
584
586
|
children: [
|
|
585
|
-
/* @__PURE__ */ t(
|
|
586
|
-
/* @__PURE__ */ t(
|
|
587
|
-
/* @__PURE__ */ t(
|
|
588
|
-
/* @__PURE__ */ t(
|
|
587
|
+
/* @__PURE__ */ t(_n, {}),
|
|
588
|
+
/* @__PURE__ */ t(Cn, {}),
|
|
589
|
+
/* @__PURE__ */ t(Pn, {}),
|
|
590
|
+
/* @__PURE__ */ t(gn, {})
|
|
589
591
|
]
|
|
590
592
|
}
|
|
591
593
|
);
|
|
592
594
|
}
|
|
593
|
-
const ie = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }),
|
|
594
|
-
"menu-container": "_menu-
|
|
595
|
-
menuContainer:
|
|
596
|
-
"
|
|
597
|
-
|
|
598
|
-
"
|
|
599
|
-
|
|
600
|
-
"
|
|
601
|
-
|
|
602
|
-
"
|
|
603
|
-
|
|
604
|
-
"menu-
|
|
605
|
-
|
|
595
|
+
const ie = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), $ = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), Rn = "_menu-container_18cio_1", On = "_scrollable-buttons_18cio_2", Fn = "_menu-heading_18cio_9", Zn = "_check-icon_18cio_20", zn = "_trash-icon_18cio_21", jn = "_menu-item-label_18cio_34", Dn = "_menu-item_18cio_34", Kn = "_menu-back-button_18cio_71", u = {
|
|
596
|
+
"menu-container": "_menu-container_18cio_1",
|
|
597
|
+
menuContainer: Rn,
|
|
598
|
+
"scrollable-buttons": "_scrollable-buttons_18cio_2",
|
|
599
|
+
scrollableButtons: On,
|
|
600
|
+
"menu-heading": "_menu-heading_18cio_9",
|
|
601
|
+
menuHeading: Fn,
|
|
602
|
+
"check-icon": "_check-icon_18cio_20",
|
|
603
|
+
checkIcon: Zn,
|
|
604
|
+
"trash-icon": "_trash-icon_18cio_21",
|
|
605
|
+
trashIcon: zn,
|
|
606
|
+
"menu-item-label": "_menu-item-label_18cio_34",
|
|
607
|
+
menuItemLabel: jn,
|
|
608
|
+
"menu-item": "_menu-item_18cio_34",
|
|
609
|
+
menuItem: Dn,
|
|
610
|
+
"menu-back-button": "_menu-back-button_18cio_71",
|
|
611
|
+
menuBackButton: Kn
|
|
606
612
|
};
|
|
607
|
-
function
|
|
608
|
-
const e =
|
|
609
|
-
rates:
|
|
613
|
+
function $n() {
|
|
614
|
+
const e = N(), n = ut({
|
|
615
|
+
rates: D,
|
|
610
616
|
normalLabel: "1x"
|
|
611
|
-
}), { t: o } =
|
|
612
|
-
return /* @__PURE__ */
|
|
617
|
+
}), { t: o } = _(), i = z();
|
|
618
|
+
return /* @__PURE__ */ l(
|
|
613
619
|
"div",
|
|
614
620
|
{
|
|
615
621
|
ref: i,
|
|
616
622
|
id: "submenu",
|
|
617
623
|
"aria-label": o("SPEED_MENU"),
|
|
618
624
|
role: "menu",
|
|
619
|
-
className:
|
|
625
|
+
className: u.menuContainer,
|
|
620
626
|
children: [
|
|
621
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ l(
|
|
622
628
|
"button",
|
|
623
629
|
{
|
|
624
630
|
type: "button",
|
|
625
631
|
role: "menuitem",
|
|
626
632
|
tabIndex: -1,
|
|
627
|
-
className:
|
|
633
|
+
className: u.menuBackButton,
|
|
628
634
|
onClick: e.back,
|
|
629
635
|
children: [
|
|
630
|
-
/* @__PURE__ */ t(
|
|
636
|
+
/* @__PURE__ */ t($, {}),
|
|
631
637
|
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
632
638
|
]
|
|
633
639
|
}
|
|
634
640
|
),
|
|
635
|
-
/* @__PURE__ */ t("strong", { className:
|
|
636
|
-
n.map(({ value: s, label: a, select:
|
|
641
|
+
/* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("PLAYBACK_SPEED") }),
|
|
642
|
+
/* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
|
|
637
643
|
"button",
|
|
638
644
|
{
|
|
639
645
|
type: "button",
|
|
640
646
|
role: "menuitemradio",
|
|
641
647
|
"aria-label": a,
|
|
642
648
|
"aria-checked": r,
|
|
643
|
-
onClick: () =>
|
|
649
|
+
onClick: () => c(),
|
|
644
650
|
tabIndex: -1,
|
|
645
|
-
className:
|
|
651
|
+
className: u.menuItem,
|
|
646
652
|
children: [
|
|
647
|
-
/* @__PURE__ */ t(ie, { className:
|
|
648
|
-
/* @__PURE__ */ t("span", { className:
|
|
653
|
+
/* @__PURE__ */ t(ie, { className: u.checkIcon }),
|
|
654
|
+
/* @__PURE__ */ t("span", { className: u.menuItemLabel, children: a })
|
|
649
655
|
]
|
|
650
656
|
},
|
|
651
657
|
s
|
|
652
|
-
))
|
|
658
|
+
)) })
|
|
653
659
|
]
|
|
654
660
|
}
|
|
655
661
|
);
|
|
656
662
|
}
|
|
657
|
-
function
|
|
658
|
-
const e =
|
|
663
|
+
function Un() {
|
|
664
|
+
const e = N(), n = g("textTrack"), { t: o } = _(), { disableCaptionSettings: i } = w(), s = f(() => {
|
|
659
665
|
e.setPage("captionLanguage");
|
|
660
666
|
}, [e]);
|
|
661
667
|
return i ? null : /* @__PURE__ */ t(
|
|
662
|
-
|
|
668
|
+
K,
|
|
663
669
|
{
|
|
664
670
|
label: o("LANGUAGE"),
|
|
665
671
|
hint: (n == null ? void 0 : n.label) ?? o("OFF"),
|
|
@@ -667,12 +673,12 @@ function Kn() {
|
|
|
667
673
|
}
|
|
668
674
|
);
|
|
669
675
|
}
|
|
670
|
-
function
|
|
671
|
-
const { t: e } =
|
|
676
|
+
function qn() {
|
|
677
|
+
const { t: e } = _(), n = w(), o = N(), i = f(() => {
|
|
672
678
|
o.setPage("captionFontSize");
|
|
673
679
|
}, [o]);
|
|
674
680
|
return /* @__PURE__ */ t(
|
|
675
|
-
|
|
681
|
+
K,
|
|
676
682
|
{
|
|
677
683
|
label: e("CAPTION_FONT_SIZE"),
|
|
678
684
|
hint: `${n.state.captionsFontSizeMultiplier * 100}%`,
|
|
@@ -680,10 +686,10 @@ function Dn() {
|
|
|
680
686
|
}
|
|
681
687
|
);
|
|
682
688
|
}
|
|
683
|
-
function
|
|
684
|
-
const { t: e } =
|
|
689
|
+
function Gn() {
|
|
690
|
+
const { t: e } = _(), n = w();
|
|
685
691
|
return /* @__PURE__ */ t(
|
|
686
|
-
|
|
692
|
+
_e,
|
|
687
693
|
{
|
|
688
694
|
label: e("ON_TOP"),
|
|
689
695
|
onClick: n.toggleCaptionPositionOnTop,
|
|
@@ -691,10 +697,10 @@ function $n() {
|
|
|
691
697
|
}
|
|
692
698
|
);
|
|
693
699
|
}
|
|
694
|
-
function
|
|
695
|
-
const { t: e } =
|
|
700
|
+
function Qn() {
|
|
701
|
+
const { t: e } = _(), n = w();
|
|
696
702
|
return /* @__PURE__ */ t(
|
|
697
|
-
|
|
703
|
+
_e,
|
|
698
704
|
{
|
|
699
705
|
label: e("INVERT_COLORS"),
|
|
700
706
|
onClick: n.toggleCaptionsInvertColors,
|
|
@@ -702,113 +708,122 @@ function Un() {
|
|
|
702
708
|
}
|
|
703
709
|
);
|
|
704
710
|
}
|
|
705
|
-
function
|
|
706
|
-
const e =
|
|
707
|
-
|
|
711
|
+
function Wn() {
|
|
712
|
+
const e = N(), { t: n } = _(), o = f(() => {
|
|
713
|
+
e.setPage("captionManage");
|
|
714
|
+
}, [e]);
|
|
715
|
+
return /* @__PURE__ */ t(K, { label: n("CAPTIONS_MANAGE"), onClick: o });
|
|
716
|
+
}
|
|
717
|
+
function Yn() {
|
|
718
|
+
const e = N(), n = L(), { t: o } = _(), i = z();
|
|
719
|
+
return /* @__PURE__ */ l(
|
|
708
720
|
"div",
|
|
709
721
|
{
|
|
710
|
-
ref:
|
|
722
|
+
ref: i,
|
|
711
723
|
id: "submenu",
|
|
712
|
-
"aria-label":
|
|
724
|
+
"aria-label": o("CAPTIONS_MENU"),
|
|
713
725
|
role: "menu",
|
|
714
|
-
className:
|
|
726
|
+
className: u.menuContainer,
|
|
715
727
|
children: [
|
|
716
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ l(
|
|
717
729
|
"button",
|
|
718
730
|
{
|
|
719
731
|
type: "button",
|
|
720
732
|
role: "menuitem",
|
|
721
733
|
tabIndex: -1,
|
|
722
|
-
className:
|
|
734
|
+
className: u.menuBackButton,
|
|
723
735
|
onClick: e.back,
|
|
724
736
|
children: [
|
|
725
|
-
/* @__PURE__ */ t(
|
|
726
|
-
/* @__PURE__ */ t("span", { children:
|
|
737
|
+
/* @__PURE__ */ t($, {}),
|
|
738
|
+
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
727
739
|
]
|
|
728
740
|
}
|
|
729
741
|
),
|
|
730
|
-
/* @__PURE__ */ t("strong", { className:
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
742
|
+
/* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
743
|
+
/* @__PURE__ */ l("div", { className: u.scrollableButtons, children: [
|
|
744
|
+
/* @__PURE__ */ t(Un, {}),
|
|
745
|
+
/* @__PURE__ */ t(qn, {}),
|
|
746
|
+
/* @__PURE__ */ t(Gn, {}),
|
|
747
|
+
/* @__PURE__ */ t(Qn, {}),
|
|
748
|
+
n.onCaptionsDelete && /* @__PURE__ */ t(Wn, {})
|
|
749
|
+
] })
|
|
735
750
|
]
|
|
736
751
|
}
|
|
737
752
|
);
|
|
738
753
|
}
|
|
739
|
-
function
|
|
740
|
-
const e =
|
|
741
|
-
return /* @__PURE__ */
|
|
754
|
+
function Xn() {
|
|
755
|
+
const e = N(), n = dt(), { t: o } = _(), i = z();
|
|
756
|
+
return /* @__PURE__ */ l(
|
|
742
757
|
"div",
|
|
743
758
|
{
|
|
744
759
|
ref: i,
|
|
745
760
|
id: "submenu",
|
|
746
761
|
"aria-label": o("CAPTIONS_LANGUAGE_MENU"),
|
|
747
762
|
role: "menu",
|
|
748
|
-
className:
|
|
763
|
+
className: u.menuContainer,
|
|
749
764
|
children: [
|
|
750
|
-
/* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ l(
|
|
751
766
|
"button",
|
|
752
767
|
{
|
|
753
768
|
type: "button",
|
|
754
769
|
role: "menuitem",
|
|
755
770
|
tabIndex: -1,
|
|
756
|
-
className:
|
|
771
|
+
className: u.menuBackButton,
|
|
757
772
|
onClick: e.back,
|
|
758
773
|
children: [
|
|
759
|
-
/* @__PURE__ */ t(
|
|
774
|
+
/* @__PURE__ */ t($, {}),
|
|
760
775
|
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
761
776
|
]
|
|
762
777
|
}
|
|
763
778
|
),
|
|
764
|
-
/* @__PURE__ */ t("strong", { className:
|
|
765
|
-
n.map(({ value: s, label: a, select:
|
|
779
|
+
/* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
780
|
+
/* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
|
|
766
781
|
"button",
|
|
767
782
|
{
|
|
768
783
|
type: "button",
|
|
769
784
|
role: "menuitemradio",
|
|
770
785
|
"aria-checked": r,
|
|
771
|
-
onClick: () =>
|
|
786
|
+
onClick: () => c(),
|
|
772
787
|
tabIndex: -1,
|
|
773
|
-
className:
|
|
788
|
+
className: u.menuItem,
|
|
774
789
|
children: [
|
|
775
|
-
/* @__PURE__ */ t(ie, { className:
|
|
776
|
-
/* @__PURE__ */ t("span", { className:
|
|
790
|
+
/* @__PURE__ */ t(ie, { className: u.checkIcon }),
|
|
791
|
+
/* @__PURE__ */ t("span", { className: u.menuItemLabel, children: a })
|
|
777
792
|
]
|
|
778
793
|
},
|
|
779
794
|
s
|
|
780
|
-
))
|
|
795
|
+
)) })
|
|
781
796
|
]
|
|
782
797
|
}
|
|
783
798
|
);
|
|
784
799
|
}
|
|
785
|
-
function
|
|
786
|
-
const e =
|
|
787
|
-
return /* @__PURE__ */
|
|
800
|
+
function Jn() {
|
|
801
|
+
const e = w(), n = N(), { t: o } = _(), i = z();
|
|
802
|
+
return /* @__PURE__ */ l(
|
|
788
803
|
"div",
|
|
789
804
|
{
|
|
790
805
|
ref: i,
|
|
791
806
|
id: "submenu",
|
|
792
807
|
"aria-label": o("CAPTIONS_FONT_SIZE_MENU"),
|
|
793
808
|
role: "menu",
|
|
794
|
-
className:
|
|
809
|
+
className: u.menuContainer,
|
|
795
810
|
children: [
|
|
796
|
-
/* @__PURE__ */
|
|
811
|
+
/* @__PURE__ */ l(
|
|
797
812
|
"button",
|
|
798
813
|
{
|
|
799
814
|
type: "button",
|
|
800
815
|
role: "menuitem",
|
|
801
816
|
tabIndex: -1,
|
|
802
|
-
className:
|
|
817
|
+
className: u.menuBackButton,
|
|
803
818
|
onClick: n.back,
|
|
804
819
|
children: [
|
|
805
|
-
/* @__PURE__ */ t(
|
|
820
|
+
/* @__PURE__ */ t($, {}),
|
|
806
821
|
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
807
822
|
]
|
|
808
823
|
}
|
|
809
824
|
),
|
|
810
|
-
/* @__PURE__ */ t("strong", { className:
|
|
811
|
-
|
|
825
|
+
/* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
826
|
+
/* @__PURE__ */ t("div", { className: u.scrollableButtons, children: Zt.map((s) => /* @__PURE__ */ l(
|
|
812
827
|
"button",
|
|
813
828
|
{
|
|
814
829
|
type: "button",
|
|
@@ -818,252 +833,295 @@ function jn() {
|
|
|
818
833
|
e.setCaptionsFontSizeMultiplier(s);
|
|
819
834
|
},
|
|
820
835
|
tabIndex: -1,
|
|
821
|
-
className:
|
|
836
|
+
className: u.menuItem,
|
|
822
837
|
children: [
|
|
823
|
-
/* @__PURE__ */ t(ie, { className:
|
|
824
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ t(ie, { className: u.checkIcon }),
|
|
839
|
+
/* @__PURE__ */ l("span", { className: u.menuItemLabel, children: [
|
|
825
840
|
s * 100,
|
|
826
841
|
"%"
|
|
827
842
|
] })
|
|
828
843
|
]
|
|
829
844
|
},
|
|
830
845
|
s
|
|
831
|
-
))
|
|
846
|
+
)) })
|
|
832
847
|
]
|
|
833
848
|
}
|
|
834
849
|
);
|
|
835
850
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
851
|
+
const je = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "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 eo() {
|
|
853
|
+
const e = N(), n = L(), { t: o } = _(), i = z();
|
|
854
|
+
return /* @__PURE__ */ l(
|
|
855
|
+
"div",
|
|
856
|
+
{
|
|
857
|
+
ref: i,
|
|
858
|
+
id: "submenu",
|
|
859
|
+
"aria-label": o("CAPTIONS_MANAGE_MENU"),
|
|
860
|
+
role: "menu",
|
|
861
|
+
className: u.menuContainer,
|
|
862
|
+
children: [
|
|
863
|
+
/* @__PURE__ */ l(
|
|
864
|
+
"button",
|
|
865
|
+
{
|
|
866
|
+
type: "button",
|
|
867
|
+
role: "menuitem",
|
|
868
|
+
tabIndex: -1,
|
|
869
|
+
className: u.menuBackButton,
|
|
870
|
+
onClick: e.back,
|
|
871
|
+
children: [
|
|
872
|
+
/* @__PURE__ */ t($, {}),
|
|
873
|
+
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
874
|
+
]
|
|
875
|
+
}
|
|
876
|
+
),
|
|
877
|
+
/* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS_MANAGE") }),
|
|
878
|
+
/* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.captions.map((s) => /* @__PURE__ */ l(
|
|
879
|
+
"button",
|
|
880
|
+
{
|
|
881
|
+
type: "button",
|
|
882
|
+
role: "menuitem",
|
|
883
|
+
onClick: () => {
|
|
884
|
+
var a;
|
|
885
|
+
(a = n.onCaptionsDelete) == null || a.call(n, s);
|
|
886
|
+
},
|
|
887
|
+
tabIndex: -1,
|
|
888
|
+
className: u.menuItem,
|
|
889
|
+
children: [
|
|
890
|
+
/* @__PURE__ */ t(je, { className: u.trashIcon }),
|
|
891
|
+
/* @__PURE__ */ t("span", { className: u.menuItemLabel, children: o("CAPTION_DELETE", { language: s.label }) })
|
|
892
|
+
]
|
|
893
|
+
},
|
|
894
|
+
s.language
|
|
895
|
+
)) })
|
|
896
|
+
]
|
|
897
|
+
}
|
|
898
|
+
);
|
|
899
|
+
}
|
|
900
|
+
function to() {
|
|
901
|
+
const e = N(), n = mt({ sort: "descending" }), o = g("autoQuality"), { t: i } = _(), s = z();
|
|
902
|
+
return /* @__PURE__ */ l(
|
|
839
903
|
"div",
|
|
840
904
|
{
|
|
841
905
|
ref: s,
|
|
842
906
|
id: "submenu",
|
|
843
907
|
"aria-label": i("QUALITY_MENU"),
|
|
844
908
|
role: "menu",
|
|
845
|
-
className:
|
|
909
|
+
className: u.menuContainer,
|
|
846
910
|
children: [
|
|
847
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ l(
|
|
848
912
|
"button",
|
|
849
913
|
{
|
|
850
914
|
type: "button",
|
|
851
915
|
role: "menuitem",
|
|
852
916
|
tabIndex: -1,
|
|
853
|
-
className:
|
|
917
|
+
className: u.menuBackButton,
|
|
854
918
|
onClick: e.back,
|
|
855
919
|
children: [
|
|
856
|
-
/* @__PURE__ */ t(
|
|
920
|
+
/* @__PURE__ */ t($, {}),
|
|
857
921
|
/* @__PURE__ */ t("span", { children: i("BACK") })
|
|
858
922
|
]
|
|
859
923
|
}
|
|
860
924
|
),
|
|
861
|
-
/* @__PURE__ */ t("strong", { className:
|
|
862
|
-
n.map(({ value: a, label:
|
|
925
|
+
/* @__PURE__ */ t("strong", { className: u.menuHeading, children: i("QUALITY") }),
|
|
926
|
+
/* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.map(({ value: a, label: c, select: r, selected: d }) => /* @__PURE__ */ l(
|
|
863
927
|
"button",
|
|
864
928
|
{
|
|
865
929
|
type: "button",
|
|
866
930
|
role: "menuitemradio",
|
|
867
|
-
"aria-checked": a === "auto" && o ||
|
|
931
|
+
"aria-checked": a === "auto" && o || d && !o,
|
|
868
932
|
onClick: () => r(),
|
|
869
933
|
tabIndex: -1,
|
|
870
|
-
className:
|
|
934
|
+
className: u.menuItem,
|
|
871
935
|
children: [
|
|
872
|
-
/* @__PURE__ */ t(ie, { className:
|
|
873
|
-
/* @__PURE__ */ t("span", { className:
|
|
936
|
+
/* @__PURE__ */ t(ie, { className: u.checkIcon }),
|
|
937
|
+
/* @__PURE__ */ t("span", { className: u.menuItemLabel, children: c })
|
|
874
938
|
]
|
|
875
939
|
},
|
|
876
940
|
a
|
|
877
|
-
))
|
|
941
|
+
)) })
|
|
878
942
|
]
|
|
879
943
|
}
|
|
880
944
|
);
|
|
881
945
|
}
|
|
882
|
-
const De =
|
|
883
|
-
main:
|
|
884
|
-
speed:
|
|
885
|
-
captions:
|
|
886
|
-
captionLanguage:
|
|
887
|
-
captionFontSize:
|
|
888
|
-
|
|
946
|
+
const De = ce(null), no = {
|
|
947
|
+
main: Bn,
|
|
948
|
+
speed: $n,
|
|
949
|
+
captions: Yn,
|
|
950
|
+
captionLanguage: Xn,
|
|
951
|
+
captionFontSize: Jn,
|
|
952
|
+
captionManage: eo,
|
|
953
|
+
quality: to
|
|
954
|
+
}, oo = {
|
|
955
|
+
name: "middleware",
|
|
956
|
+
async fn(e) {
|
|
957
|
+
const n = await yt(e);
|
|
958
|
+
return {
|
|
959
|
+
x: e.x - n.right - 4,
|
|
960
|
+
y: e.y - 4
|
|
961
|
+
};
|
|
962
|
+
}
|
|
889
963
|
};
|
|
890
|
-
function
|
|
891
|
-
const e =
|
|
964
|
+
function io() {
|
|
965
|
+
const e = w(), [n, o] = x(["main"]), [i, s] = x(!1), a = f(() => {
|
|
892
966
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
893
|
-
}, [i]),
|
|
894
|
-
o((
|
|
895
|
-
}, []), r =
|
|
896
|
-
o((
|
|
897
|
-
}, []),
|
|
967
|
+
}, [i]), c = f((C) => {
|
|
968
|
+
o((V) => V.concat(C));
|
|
969
|
+
}, []), r = f(() => {
|
|
970
|
+
o((C) => C.length > 1 ? C.slice(0, -1) : C);
|
|
971
|
+
}, []), d = T(() => no[n[n.length - 1]], [n]), { refs: p, floatingStyles: b, context: v } = ue({
|
|
898
972
|
open: i,
|
|
899
973
|
onOpenChange: a,
|
|
900
974
|
placement: "top-end",
|
|
901
975
|
whileElementsMounted: de,
|
|
902
|
-
middleware: [
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
]
|
|
907
|
-
}), y = he(k, { escapeKey: !1 }), { getReferenceProps: N, getFloatingProps: h } = pe([y]), b = E(
|
|
908
|
-
() => ({ setPage: l, back: r, toggle: a }),
|
|
909
|
-
[r, l, a]
|
|
976
|
+
middleware: [oo]
|
|
977
|
+
}), k = me(v, { escapeKey: !1 }), { getReferenceProps: y, getFloatingProps: P } = he([k]), h = T(
|
|
978
|
+
() => ({ setPage: c, back: r, toggle: a }),
|
|
979
|
+
[r, c, a]
|
|
910
980
|
);
|
|
911
981
|
return {
|
|
912
|
-
Page:
|
|
982
|
+
Page: d,
|
|
913
983
|
open: i,
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
context: k,
|
|
984
|
+
refs: p,
|
|
985
|
+
floatingStyles: b,
|
|
986
|
+
context: v,
|
|
918
987
|
getReferenceProps() {
|
|
919
988
|
return {
|
|
920
|
-
...
|
|
989
|
+
...y(),
|
|
921
990
|
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
922
991
|
};
|
|
923
992
|
},
|
|
924
|
-
getFloatingProps:
|
|
925
|
-
contextValue:
|
|
993
|
+
getFloatingProps: P,
|
|
994
|
+
contextValue: h
|
|
926
995
|
};
|
|
927
996
|
}
|
|
928
|
-
const
|
|
929
|
-
"settings-menu": "_settings-
|
|
930
|
-
settingsMenu:
|
|
931
|
-
arrow:
|
|
997
|
+
const so = "_settings-menu_qaqbm_1", ao = "_arrow_qaqbm_37", lo = {
|
|
998
|
+
"settings-menu": "_settings-menu_qaqbm_1",
|
|
999
|
+
settingsMenu: so,
|
|
1000
|
+
arrow: ao
|
|
932
1001
|
};
|
|
933
|
-
function
|
|
1002
|
+
function co() {
|
|
934
1003
|
const {
|
|
935
1004
|
Page: e,
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
return /* @__PURE__ */ c(j, { children: [
|
|
1005
|
+
context: n,
|
|
1006
|
+
floatingStyles: o,
|
|
1007
|
+
getFloatingProps: i,
|
|
1008
|
+
getReferenceProps: s,
|
|
1009
|
+
open: a,
|
|
1010
|
+
refs: c,
|
|
1011
|
+
contextValue: r
|
|
1012
|
+
} = io(), { t: d } = _();
|
|
1013
|
+
return /* @__PURE__ */ l(Y, { children: [
|
|
946
1014
|
/* @__PURE__ */ t(
|
|
947
1015
|
"button",
|
|
948
1016
|
{
|
|
949
|
-
ref:
|
|
1017
|
+
ref: c.setReference,
|
|
950
1018
|
type: "button",
|
|
951
1019
|
className: "controls-button",
|
|
952
1020
|
"aria-label": d("SETTINGS"),
|
|
953
|
-
onClick:
|
|
954
|
-
"aria-expanded":
|
|
955
|
-
...
|
|
956
|
-
children: /* @__PURE__ */ t(
|
|
1021
|
+
onClick: r.toggle,
|
|
1022
|
+
"aria-expanded": a,
|
|
1023
|
+
...s(),
|
|
1024
|
+
children: /* @__PURE__ */ t(cn, { className: "controls-button-icon icon-rotate" })
|
|
957
1025
|
}
|
|
958
1026
|
),
|
|
959
|
-
|
|
1027
|
+
a && /* @__PURE__ */ t(pe, { context: n, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ t(
|
|
960
1028
|
"div",
|
|
961
1029
|
{
|
|
962
1030
|
"aria-labelledby": "submenu",
|
|
963
|
-
className:
|
|
964
|
-
ref:
|
|
965
|
-
style:
|
|
966
|
-
...
|
|
967
|
-
children:
|
|
968
|
-
/* @__PURE__ */ t(De.Provider, { value: u, children: /* @__PURE__ */ t(e, {}) }),
|
|
969
|
-
/* @__PURE__ */ t(
|
|
970
|
-
fe,
|
|
971
|
-
{
|
|
972
|
-
ref: n,
|
|
973
|
-
context: o,
|
|
974
|
-
className: Pe.arrow
|
|
975
|
-
}
|
|
976
|
-
)
|
|
977
|
-
]
|
|
1031
|
+
className: lo.settingsMenu,
|
|
1032
|
+
ref: c.setFloating,
|
|
1033
|
+
style: o,
|
|
1034
|
+
...i(),
|
|
1035
|
+
children: /* @__PURE__ */ t(De.Provider, { value: r, children: /* @__PURE__ */ t(e, {}) })
|
|
978
1036
|
}
|
|
979
1037
|
) })
|
|
980
1038
|
] });
|
|
981
1039
|
}
|
|
982
|
-
function
|
|
1040
|
+
function Ke(e, n = 1e3) {
|
|
983
1041
|
return function() {
|
|
984
|
-
const i =
|
|
985
|
-
return
|
|
1042
|
+
const i = g("lastKeyboardAction"), [s, a] = x(!1), c = f(() => a(!1), []);
|
|
1043
|
+
return F(() => {
|
|
986
1044
|
a(!!i);
|
|
987
|
-
const r = setTimeout(
|
|
1045
|
+
const r = setTimeout(c, n);
|
|
988
1046
|
return () => clearTimeout(r);
|
|
989
1047
|
}, [i, n]), s ? /* @__PURE__ */ t(e, {}) : null;
|
|
990
1048
|
};
|
|
991
1049
|
}
|
|
992
|
-
const
|
|
1050
|
+
const Ce = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), fe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), $e = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Ue = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), qe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), ro = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), uo = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), mo = "_feedback-overlay_v4lbu_1", ho = "_feedback-message_v4lbu_14", po = "_feedback-icon_v4lbu_30", _o = "_feedback-icon-animation_v4lbu_1", M = {
|
|
993
1051
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
994
|
-
feedbackOverlay:
|
|
1052
|
+
feedbackOverlay: mo,
|
|
995
1053
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
996
|
-
feedbackMessage:
|
|
1054
|
+
feedbackMessage: ho,
|
|
997
1055
|
"feedback-icon": "_feedback-icon_v4lbu_30",
|
|
998
|
-
feedbackIcon:
|
|
1056
|
+
feedbackIcon: po,
|
|
999
1057
|
"feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
|
|
1000
|
-
feedbackIconAnimation:
|
|
1058
|
+
feedbackIconAnimation: _o
|
|
1001
1059
|
};
|
|
1002
|
-
function
|
|
1060
|
+
function Co() {
|
|
1003
1061
|
var o;
|
|
1004
|
-
const e =
|
|
1062
|
+
const e = He();
|
|
1005
1063
|
switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
|
|
1006
1064
|
case "togglePaused":
|
|
1007
|
-
return /* @__PURE__ */ t("i", { className:
|
|
1065
|
+
return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(Ce, {}) : /* @__PURE__ */ t(fe, {}) });
|
|
1008
1066
|
case "toggleCaptions":
|
|
1009
1067
|
case "nextCaptionLanguage":
|
|
1010
1068
|
case "previousCaptionLanguage":
|
|
1011
|
-
return e.hasCaptions ? /* @__PURE__ */ t("i", { className:
|
|
1069
|
+
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(Fe, {}) }) : null;
|
|
1012
1070
|
case "volumeUp":
|
|
1013
1071
|
case "volumeDown":
|
|
1014
1072
|
case "toggleMuted":
|
|
1015
|
-
return /* @__PURE__ */ t("i", { className:
|
|
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, {}) });
|
|
1016
1074
|
case "seekForward":
|
|
1017
1075
|
case "seekForward10":
|
|
1018
|
-
return /* @__PURE__ */ t("i", { className:
|
|
1076
|
+
return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(ro, { className: "right" }) });
|
|
1019
1077
|
case "seekBackward":
|
|
1020
1078
|
case "seekBackward10":
|
|
1021
|
-
return /* @__PURE__ */ t("i", { className:
|
|
1079
|
+
return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(uo, { className: "left" }) });
|
|
1022
1080
|
default:
|
|
1023
1081
|
return null;
|
|
1024
1082
|
}
|
|
1025
1083
|
}
|
|
1026
|
-
function
|
|
1084
|
+
function fo() {
|
|
1027
1085
|
var i;
|
|
1028
|
-
const { t: e } =
|
|
1086
|
+
const { t: e } = _(), n = He();
|
|
1029
1087
|
switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
|
|
1030
1088
|
case "toggleCaptions":
|
|
1031
1089
|
case "nextCaptionLanguage":
|
|
1032
1090
|
case "previousCaptionLanguage":
|
|
1033
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1091
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
|
|
1034
1092
|
case "volumeUp":
|
|
1035
1093
|
case "volumeDown":
|
|
1036
1094
|
case "toggleMuted":
|
|
1037
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1095
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME_VALUE", { volume: (n.volume * 100).toFixed(0) }) });
|
|
1038
1096
|
case "increasePlaybackRate":
|
|
1039
1097
|
case "decreasePlaybackRate":
|
|
1040
1098
|
case "resetPlaybackRate":
|
|
1041
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1099
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
|
|
1042
1100
|
case "seekForward":
|
|
1043
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1101
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
|
|
1044
1102
|
case "seekForward10":
|
|
1045
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1103
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
|
|
1046
1104
|
case "seekBackward":
|
|
1047
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1105
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
|
|
1048
1106
|
case "seekBackward10":
|
|
1049
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1107
|
+
return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
|
|
1050
1108
|
default:
|
|
1051
1109
|
return null;
|
|
1052
1110
|
}
|
|
1053
1111
|
}
|
|
1054
|
-
const
|
|
1055
|
-
function
|
|
1056
|
-
return /* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */ t(
|
|
1058
|
-
/* @__PURE__ */ t(
|
|
1112
|
+
const go = Ke(Co, 500), bo = Ke(fo, 1e3);
|
|
1113
|
+
function Ge() {
|
|
1114
|
+
return /* @__PURE__ */ l("div", { className: M.feedbackOverlay, children: [
|
|
1115
|
+
/* @__PURE__ */ t(go, {}),
|
|
1116
|
+
/* @__PURE__ */ t(bo, {})
|
|
1059
1117
|
] });
|
|
1060
1118
|
}
|
|
1061
|
-
const
|
|
1119
|
+
const vo = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), wo = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), yo = "_full-screen-button_1xm32_2", ko = {
|
|
1062
1120
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
1063
|
-
fullScreenButton:
|
|
1121
|
+
fullScreenButton: yo
|
|
1064
1122
|
};
|
|
1065
|
-
function
|
|
1066
|
-
const e =
|
|
1123
|
+
function Lo() {
|
|
1124
|
+
const e = g("fullscreen"), n = Z(), o = w(), i = L(), { t: s } = _();
|
|
1067
1125
|
return i.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
1068
1126
|
"button",
|
|
1069
1127
|
{
|
|
@@ -1071,53 +1129,53 @@ function _1() {
|
|
|
1071
1129
|
type: "button",
|
|
1072
1130
|
"aria-label": s(e ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
|
|
1073
1131
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1074
|
-
className: `controls-button ${
|
|
1132
|
+
className: `controls-button ${ko.fullScreenButton}`,
|
|
1075
1133
|
onClick: () => {
|
|
1076
1134
|
e ? n == null || n.exitFullscreen() : n == null || n.enterFullscreen();
|
|
1077
1135
|
},
|
|
1078
|
-
children: e ? /* @__PURE__ */ t(
|
|
1136
|
+
children: e ? /* @__PURE__ */ t(wo, { className: "controls-button-icon" }) : /* @__PURE__ */ t(vo, { className: "controls-button-icon" })
|
|
1079
1137
|
}
|
|
1080
1138
|
);
|
|
1081
1139
|
}
|
|
1082
|
-
const
|
|
1140
|
+
const xo = "_gestures-container_1fn3b_1", Mo = "_gesture_1fn3b_1", xe = {
|
|
1083
1141
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
1084
|
-
gesturesContainer:
|
|
1085
|
-
gesture:
|
|
1142
|
+
gesturesContainer: xo,
|
|
1143
|
+
gesture: Mo
|
|
1086
1144
|
};
|
|
1087
|
-
function
|
|
1145
|
+
function No() {
|
|
1088
1146
|
const e = oe(), n = () => {
|
|
1089
1147
|
e.togglePaused();
|
|
1090
1148
|
};
|
|
1091
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1149
|
+
return /* @__PURE__ */ t("div", { className: xe.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: xe.gesture, onClick: n }) });
|
|
1092
1150
|
}
|
|
1093
|
-
const Qe = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }),
|
|
1151
|
+
const Qe = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), Po = "_controls-overlay_poi8b_1", Io = "_keyboard-shortcuts-overlay_poi8b_11", Ho = "_screen-reader-content_poi8b_75", So = "_controls-button_poi8b_89", To = "_keyboard-shortcuts-button_poi8b_101", Vo = "_kebab-menu-button_poi8b_110", Ao = "_kebab-menu_poi8b_110", Eo = "_kebab-menu-item_poi8b_139", Bo = "_close-button_poi8b_178", Ro = "_arrow_poi8b_192", I = {
|
|
1094
1152
|
"controls-overlay": "_controls-overlay_poi8b_1",
|
|
1095
|
-
controlsOverlay:
|
|
1153
|
+
controlsOverlay: Po,
|
|
1096
1154
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_poi8b_11",
|
|
1097
|
-
keyboardShortcutsOverlay:
|
|
1155
|
+
keyboardShortcutsOverlay: Io,
|
|
1098
1156
|
"screen-reader-content": "_screen-reader-content_poi8b_75",
|
|
1099
|
-
screenReaderContent:
|
|
1157
|
+
screenReaderContent: Ho,
|
|
1100
1158
|
"controls-button": "_controls-button_poi8b_89",
|
|
1101
|
-
controlsButton:
|
|
1159
|
+
controlsButton: So,
|
|
1102
1160
|
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_poi8b_101",
|
|
1103
|
-
keyboardShortcutsButton:
|
|
1161
|
+
keyboardShortcutsButton: To,
|
|
1104
1162
|
"kebab-menu-button": "_kebab-menu-button_poi8b_110",
|
|
1105
|
-
kebabMenuButton:
|
|
1163
|
+
kebabMenuButton: Vo,
|
|
1106
1164
|
"kebab-menu": "_kebab-menu_poi8b_110",
|
|
1107
|
-
kebabMenu:
|
|
1165
|
+
kebabMenu: Ao,
|
|
1108
1166
|
"kebab-menu-item": "_kebab-menu-item_poi8b_139",
|
|
1109
|
-
kebabMenuItem:
|
|
1167
|
+
kebabMenuItem: Eo,
|
|
1110
1168
|
"close-button": "_close-button_poi8b_178",
|
|
1111
|
-
closeButton:
|
|
1112
|
-
arrow:
|
|
1169
|
+
closeButton: Bo,
|
|
1170
|
+
arrow: Ro
|
|
1113
1171
|
};
|
|
1114
|
-
function
|
|
1115
|
-
const { t: n } =
|
|
1116
|
-
|
|
1172
|
+
function Oo({ onClose: e }) {
|
|
1173
|
+
const { t: n } = _();
|
|
1174
|
+
Sn(e);
|
|
1117
1175
|
const o = (i) => {
|
|
1118
1176
|
i && i.focus();
|
|
1119
1177
|
};
|
|
1120
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ l(
|
|
1121
1179
|
"div",
|
|
1122
1180
|
{
|
|
1123
1181
|
className: I.keyboardShortcutsOverlay,
|
|
@@ -1126,7 +1184,7 @@ function I1({ onClose: e }) {
|
|
|
1126
1184
|
role: "dialog",
|
|
1127
1185
|
"aria-label": n("KEYBOARD_SHORTCUTS"),
|
|
1128
1186
|
children: [
|
|
1129
|
-
/* @__PURE__ */
|
|
1187
|
+
/* @__PURE__ */ l("header", { children: [
|
|
1130
1188
|
/* @__PURE__ */ t("h2", { children: n("KEYBOARD_SHORTCUTS") }),
|
|
1131
1189
|
/* @__PURE__ */ t(
|
|
1132
1190
|
"button",
|
|
@@ -1139,85 +1197,85 @@ function I1({ onClose: e }) {
|
|
|
1139
1197
|
}
|
|
1140
1198
|
)
|
|
1141
1199
|
] }),
|
|
1142
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ l("table", { children: [
|
|
1143
1201
|
/* @__PURE__ */ t("caption", { className: I.screenReaderContent, children: n("KEYBOARD_SHORTCUTS") }),
|
|
1144
|
-
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */
|
|
1202
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
1145
1203
|
/* @__PURE__ */ t("th", { children: n("ACTION") }),
|
|
1146
1204
|
/* @__PURE__ */ t("th", { children: n("SHORTCUT") })
|
|
1147
1205
|
] }) }),
|
|
1148
|
-
/* @__PURE__ */
|
|
1149
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ l("tbody", { children: [
|
|
1207
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1150
1208
|
/* @__PURE__ */ t("td", { children: n("SEEK_BACKWARD", { seconds: 5 }) }),
|
|
1151
1209
|
/* @__PURE__ */ t("td", { children: n("LEFT_ARROW") })
|
|
1152
1210
|
] }),
|
|
1153
|
-
/* @__PURE__ */
|
|
1211
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1154
1212
|
/* @__PURE__ */ t("td", { children: n("SEEK_FORWARD", { seconds: 5 }) }),
|
|
1155
1213
|
/* @__PURE__ */ t("td", { children: n("RIGHT_ARROW") })
|
|
1156
1214
|
] }),
|
|
1157
|
-
/* @__PURE__ */
|
|
1215
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1158
1216
|
/* @__PURE__ */ t("td", { children: n("SEEK_BACKWARD", { seconds: 10 }) }),
|
|
1159
1217
|
/* @__PURE__ */ t("td", { children: "J" })
|
|
1160
1218
|
] }),
|
|
1161
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1162
1220
|
/* @__PURE__ */ t("td", { children: n("SEEK_FORWARD", { seconds: 10 }) }),
|
|
1163
1221
|
/* @__PURE__ */ t("td", { children: "L" })
|
|
1164
1222
|
] }),
|
|
1165
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1166
1224
|
/* @__PURE__ */ t("td", { children: n("INCREASE_VOLUME", { percent: 5 }) }),
|
|
1167
1225
|
/* @__PURE__ */ t("td", { children: n("UP_ARROW") })
|
|
1168
1226
|
] }),
|
|
1169
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1170
1228
|
/* @__PURE__ */ t("td", { children: n("DECREASE_VOLUME", { percent: 5 }) }),
|
|
1171
1229
|
/* @__PURE__ */ t("td", { children: n("DOWN_ARROW") })
|
|
1172
1230
|
] }),
|
|
1173
|
-
/* @__PURE__ */
|
|
1231
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1174
1232
|
/* @__PURE__ */ t("td", { children: n("TOGGLE_MUTED") }),
|
|
1175
1233
|
/* @__PURE__ */ t("td", { children: "M" })
|
|
1176
1234
|
] }),
|
|
1177
|
-
/* @__PURE__ */
|
|
1235
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1178
1236
|
/* @__PURE__ */ t("td", { children: n("TOGGLE_PLAY_PAUSE") }),
|
|
1179
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ l("td", { children: [
|
|
1180
1238
|
n("SPACE"),
|
|
1181
1239
|
", K"
|
|
1182
1240
|
] })
|
|
1183
1241
|
] }),
|
|
1184
|
-
/* @__PURE__ */
|
|
1242
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1185
1243
|
/* @__PURE__ */ t("td", { children: n("ENTER_FULLSCREEN") }),
|
|
1186
1244
|
/* @__PURE__ */ t("td", { children: "F" })
|
|
1187
1245
|
] }),
|
|
1188
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1189
1247
|
/* @__PURE__ */ t("td", { children: n("EXIT_FULLSCREEN") }),
|
|
1190
1248
|
/* @__PURE__ */ t("td", { children: "Esc, F" })
|
|
1191
1249
|
] }),
|
|
1192
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1193
1251
|
/* @__PURE__ */ t("td", { children: n("TOGGLE_CAPTIONS") }),
|
|
1194
1252
|
/* @__PURE__ */ t("td", { children: "C" })
|
|
1195
1253
|
] }),
|
|
1196
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1197
1255
|
/* @__PURE__ */ t("td", { children: n("NEXT_CAPTION_LANGUAGE") }),
|
|
1198
1256
|
/* @__PURE__ */ t("td", { children: "V" })
|
|
1199
1257
|
] }),
|
|
1200
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1201
1259
|
/* @__PURE__ */ t("td", { children: n("PREVIOUS_CAPTION_LANGUAGE") }),
|
|
1202
1260
|
/* @__PURE__ */ t("td", { children: "X" })
|
|
1203
1261
|
] }),
|
|
1204
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1205
1263
|
/* @__PURE__ */ t("td", { children: n("DECREASE_PLAYBACK_SPEED") }),
|
|
1206
1264
|
/* @__PURE__ */ t("td", { children: "A" })
|
|
1207
1265
|
] }),
|
|
1208
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1209
1267
|
/* @__PURE__ */ t("td", { children: n("RESET_PLAYBACK_SPEED") }),
|
|
1210
1268
|
/* @__PURE__ */ t("td", { children: "S" })
|
|
1211
1269
|
] }),
|
|
1212
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1213
1271
|
/* @__PURE__ */ t("td", { children: n("INCREASE_PLAYBACK_SPEED") }),
|
|
1214
1272
|
/* @__PURE__ */ t("td", { children: "D" })
|
|
1215
1273
|
] }),
|
|
1216
|
-
/* @__PURE__ */
|
|
1274
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1217
1275
|
/* @__PURE__ */ t("td", { children: n("JUMP_TO_START") }),
|
|
1218
1276
|
/* @__PURE__ */ t("td", { children: "0" })
|
|
1219
1277
|
] }),
|
|
1220
|
-
/* @__PURE__ */
|
|
1278
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
1221
1279
|
/* @__PURE__ */ t("td", { children: n("JUMP_TO_PERCENTAGE") }),
|
|
1222
1280
|
/* @__PURE__ */ t("td", { children: "1-9" })
|
|
1223
1281
|
] })
|
|
@@ -1227,85 +1285,85 @@ function I1({ onClose: e }) {
|
|
|
1227
1285
|
}
|
|
1228
1286
|
);
|
|
1229
1287
|
}
|
|
1230
|
-
const
|
|
1231
|
-
share: /* @__PURE__ */ t(
|
|
1232
|
-
transcript: /* @__PURE__ */ t(
|
|
1233
|
-
media: /* @__PURE__ */ t(
|
|
1234
|
-
delete: /* @__PURE__ */ t(
|
|
1235
|
-
},
|
|
1236
|
-
function
|
|
1237
|
-
const [e, n] = x(!1), [o, i] = x(null), s =
|
|
1288
|
+
const Fo = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.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" }) }), Zo = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "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__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "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__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.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" }) }), Do = {
|
|
1289
|
+
share: /* @__PURE__ */ t(Zo, {}),
|
|
1290
|
+
transcript: /* @__PURE__ */ t(zo, {}),
|
|
1291
|
+
media: /* @__PURE__ */ t(jo, {}),
|
|
1292
|
+
delete: /* @__PURE__ */ t(je, {})
|
|
1293
|
+
}, Ko = (e) => typeof e != "string";
|
|
1294
|
+
function $o() {
|
|
1295
|
+
const [e, n] = x(!1), [o, i] = x(null), s = w(), a = L(), c = () => {
|
|
1238
1296
|
n(!e), s.setGlobalKeysDisabled(!e);
|
|
1239
|
-
}, r =
|
|
1297
|
+
}, r = ne(null), d = ne([]), { refs: p, floatingStyles: b, context: v } = ue({
|
|
1240
1298
|
open: e,
|
|
1241
|
-
onOpenChange:
|
|
1299
|
+
onOpenChange: c,
|
|
1242
1300
|
whileElementsMounted: de,
|
|
1243
|
-
placement: "
|
|
1301
|
+
placement: "bottom-end",
|
|
1244
1302
|
middleware: [
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1303
|
+
Se(),
|
|
1304
|
+
Te(10),
|
|
1305
|
+
Ve({
|
|
1248
1306
|
element: r
|
|
1249
1307
|
})
|
|
1250
1308
|
]
|
|
1251
|
-
}), k =
|
|
1252
|
-
listRef:
|
|
1309
|
+
}), k = kt(v, {
|
|
1310
|
+
listRef: d,
|
|
1253
1311
|
activeIndex: o,
|
|
1254
1312
|
onNavigate: i
|
|
1255
|
-
}), y =
|
|
1313
|
+
}), y = me(v), { getReferenceProps: P, getFloatingProps: h, getItemProps: C } = he(
|
|
1256
1314
|
[y, k]
|
|
1257
|
-
), { t:
|
|
1258
|
-
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */
|
|
1315
|
+
), { t: V } = _();
|
|
1316
|
+
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(Y, { children: [
|
|
1259
1317
|
/* @__PURE__ */ t(
|
|
1260
1318
|
"button",
|
|
1261
1319
|
{
|
|
1262
|
-
"aria-label":
|
|
1320
|
+
"aria-label": V("KEBAB_MENU"),
|
|
1263
1321
|
type: "button",
|
|
1264
1322
|
className: `${I.controlsButton} ${I.kebabMenuButton}`,
|
|
1265
1323
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
1266
|
-
ref:
|
|
1267
|
-
...
|
|
1268
|
-
onClick: () =>
|
|
1324
|
+
ref: p.setReference,
|
|
1325
|
+
...P({
|
|
1326
|
+
onClick: () => c()
|
|
1269
1327
|
}),
|
|
1270
|
-
children: /* @__PURE__ */ t(
|
|
1328
|
+
children: /* @__PURE__ */ t(Fo, {})
|
|
1271
1329
|
}
|
|
1272
1330
|
),
|
|
1273
|
-
e && /* @__PURE__ */ t(
|
|
1331
|
+
e && /* @__PURE__ */ t(pe, { context: v, modal: !1, children: /* @__PURE__ */ l(
|
|
1274
1332
|
"div",
|
|
1275
1333
|
{
|
|
1276
|
-
ref:
|
|
1277
|
-
style:
|
|
1334
|
+
ref: p.setFloating,
|
|
1335
|
+
style: b,
|
|
1278
1336
|
className: I.kebabMenu,
|
|
1279
1337
|
...h(),
|
|
1280
1338
|
children: [
|
|
1281
1339
|
a.kebabMenuElements.map(
|
|
1282
|
-
({ id:
|
|
1340
|
+
({ id: A, text: U, icon: S, onClick: E }, q) => /* @__PURE__ */ l(
|
|
1283
1341
|
"button",
|
|
1284
1342
|
{
|
|
1285
|
-
tabIndex: o ===
|
|
1343
|
+
tabIndex: o === q ? 0 : -1,
|
|
1286
1344
|
type: "button",
|
|
1287
1345
|
className: I.kebabMenuItem,
|
|
1288
1346
|
ref: (se) => {
|
|
1289
|
-
|
|
1347
|
+
d.current[q] = se;
|
|
1290
1348
|
},
|
|
1291
|
-
...
|
|
1349
|
+
...C({
|
|
1292
1350
|
onClick: () => {
|
|
1293
|
-
|
|
1351
|
+
E(A), n(!1);
|
|
1294
1352
|
}
|
|
1295
1353
|
}),
|
|
1296
1354
|
children: [
|
|
1297
|
-
|
|
1298
|
-
|
|
1355
|
+
Ko(S) ? S : Do[S],
|
|
1356
|
+
U
|
|
1299
1357
|
]
|
|
1300
1358
|
},
|
|
1301
|
-
|
|
1359
|
+
A
|
|
1302
1360
|
)
|
|
1303
1361
|
),
|
|
1304
1362
|
/* @__PURE__ */ t(
|
|
1305
|
-
|
|
1363
|
+
Ae,
|
|
1306
1364
|
{
|
|
1307
1365
|
ref: r,
|
|
1308
|
-
context:
|
|
1366
|
+
context: v,
|
|
1309
1367
|
className: I.arrow
|
|
1310
1368
|
}
|
|
1311
1369
|
)
|
|
@@ -1314,90 +1372,90 @@ function B1() {
|
|
|
1314
1372
|
) })
|
|
1315
1373
|
] }) : null;
|
|
1316
1374
|
}
|
|
1317
|
-
const
|
|
1318
|
-
function
|
|
1319
|
-
const [e, n] = x(!1), [o, i] = x(!1), [s, a] = x(!1),
|
|
1320
|
-
n(!0),
|
|
1321
|
-
}, [r,
|
|
1322
|
-
n(!1), i(!0),
|
|
1323
|
-
}, [s,
|
|
1375
|
+
const Uo = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) });
|
|
1376
|
+
function qo() {
|
|
1377
|
+
const [e, n] = x(!1), [o, i] = x(!1), [s, a] = x(!1), c = w(), r = g("playing"), d = oe(), { t: p } = _(), b = f(() => {
|
|
1378
|
+
n(!0), c.disableInteractions(), r && (a(!0), d.pause());
|
|
1379
|
+
}, [r, d, c]), v = f(() => {
|
|
1380
|
+
n(!1), i(!0), c.enableInteractions(), s && (a(!1), d.play());
|
|
1381
|
+
}, [s, d, c]), k = f(
|
|
1324
1382
|
(y) => o && (y == null ? void 0 : y.focus()),
|
|
1325
1383
|
[o]
|
|
1326
1384
|
);
|
|
1327
|
-
return e ? /* @__PURE__ */ t(
|
|
1385
|
+
return e ? /* @__PURE__ */ t(Oo, { onClose: v }) : /* @__PURE__ */ l("div", { className: I.controlsOverlay, children: [
|
|
1328
1386
|
/* @__PURE__ */ t(
|
|
1329
1387
|
"button",
|
|
1330
1388
|
{
|
|
1331
1389
|
ref: k,
|
|
1332
|
-
"aria-label":
|
|
1390
|
+
"aria-label": p("KEYBOARD_SHORTCUTS"),
|
|
1333
1391
|
type: "button",
|
|
1334
1392
|
className: `${I.controlsButton} ${I.keyboardShortcutsButton}`,
|
|
1335
|
-
onClick:
|
|
1336
|
-
tabIndex:
|
|
1337
|
-
children: /* @__PURE__ */ t(
|
|
1393
|
+
onClick: b,
|
|
1394
|
+
tabIndex: c.state.interactionsDisabled ? -1 : 0,
|
|
1395
|
+
children: /* @__PURE__ */ t(Uo, {})
|
|
1338
1396
|
}
|
|
1339
1397
|
),
|
|
1340
|
-
/* @__PURE__ */ t(
|
|
1398
|
+
/* @__PURE__ */ t($o, {})
|
|
1341
1399
|
] });
|
|
1342
1400
|
}
|
|
1343
|
-
const
|
|
1401
|
+
const Go = "_play-pause-button_1834v_1", Qo = {
|
|
1344
1402
|
"play-pause-button": "_play-pause-button_1834v_1",
|
|
1345
|
-
playPauseButton:
|
|
1403
|
+
playPauseButton: Go
|
|
1346
1404
|
};
|
|
1347
|
-
function
|
|
1348
|
-
const e =
|
|
1405
|
+
function Wo() {
|
|
1406
|
+
const e = Z(), n = w(), o = g("paused"), { t: i } = _();
|
|
1349
1407
|
return e ? /* @__PURE__ */ t(
|
|
1350
1408
|
"button",
|
|
1351
1409
|
{
|
|
1352
1410
|
role: "button",
|
|
1353
1411
|
type: "button",
|
|
1354
|
-
className: `controls-button ${
|
|
1412
|
+
className: `controls-button ${Qo.playPauseButton}`,
|
|
1355
1413
|
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1356
1414
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1357
1415
|
onClick: () => {
|
|
1358
1416
|
e.paused ? e.remoteControl.play() : e.remoteControl.pause();
|
|
1359
1417
|
},
|
|
1360
|
-
children: o ? /* @__PURE__ */ t(
|
|
1418
|
+
children: o ? /* @__PURE__ */ t(fe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ce, { className: "controls-button-icon" })
|
|
1361
1419
|
}
|
|
1362
1420
|
) : null;
|
|
1363
1421
|
}
|
|
1364
|
-
const
|
|
1365
|
-
poster:
|
|
1422
|
+
const Yo = "_poster_195hi_1", Xo = {
|
|
1423
|
+
poster: Yo
|
|
1366
1424
|
};
|
|
1367
|
-
function
|
|
1368
|
-
const n =
|
|
1369
|
-
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(
|
|
1370
|
-
}
|
|
1371
|
-
const
|
|
1372
|
-
"small-layout-overlay": "_small-layout-
|
|
1373
|
-
smallLayoutOverlay:
|
|
1374
|
-
"small-layout-button": "_small-layout-
|
|
1375
|
-
smallLayoutButton:
|
|
1376
|
-
"small-layout-icon-play": "_small-layout-icon-
|
|
1377
|
-
smallLayoutIconPlay:
|
|
1378
|
-
"small-layout-icon-pause": "_small-layout-icon-
|
|
1379
|
-
smallLayoutIconPause:
|
|
1380
|
-
"full-screen-close-icon": "_full-screen-close-
|
|
1381
|
-
fullScreenCloseIcon:
|
|
1382
|
-
"fade-out": "_fade-
|
|
1383
|
-
fadeOut:
|
|
1425
|
+
function Jo({ src: e }) {
|
|
1426
|
+
const n = g("source");
|
|
1427
|
+
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(ht, { src: e, className: Xo.poster });
|
|
1428
|
+
}
|
|
1429
|
+
const e1 = "_small-layout-overlay_80lyi_1", t1 = "_small-layout-button_80lyi_14", n1 = "_small-layout-icon-play_80lyi_24", o1 = "_small-layout-icon-pause_80lyi_30", i1 = "_full-screen-close-icon_80lyi_36", s1 = "_fade-out_80lyi_1", Q = {
|
|
1430
|
+
"small-layout-overlay": "_small-layout-overlay_80lyi_1",
|
|
1431
|
+
smallLayoutOverlay: e1,
|
|
1432
|
+
"small-layout-button": "_small-layout-button_80lyi_14",
|
|
1433
|
+
smallLayoutButton: t1,
|
|
1434
|
+
"small-layout-icon-play": "_small-layout-icon-play_80lyi_24",
|
|
1435
|
+
smallLayoutIconPlay: n1,
|
|
1436
|
+
"small-layout-icon-pause": "_small-layout-icon-pause_80lyi_30",
|
|
1437
|
+
smallLayoutIconPause: o1,
|
|
1438
|
+
"full-screen-close-icon": "_full-screen-close-icon_80lyi_36",
|
|
1439
|
+
fullScreenCloseIcon: i1,
|
|
1440
|
+
"fade-out": "_fade-out_80lyi_1",
|
|
1441
|
+
fadeOut: s1
|
|
1384
1442
|
};
|
|
1385
|
-
function
|
|
1386
|
-
const e =
|
|
1387
|
-
return /* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */ t(
|
|
1389
|
-
/* @__PURE__ */ t("i", { className:
|
|
1443
|
+
function a1() {
|
|
1444
|
+
const e = g("paused");
|
|
1445
|
+
return /* @__PURE__ */ l("div", { className: Q.smallLayoutOverlay, children: [
|
|
1446
|
+
/* @__PURE__ */ t(pt, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ t(Qe, {}) }),
|
|
1447
|
+
/* @__PURE__ */ t("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ t(fe, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ t(Ce, { className: Q.smallLayoutIconPause }) })
|
|
1390
1448
|
] });
|
|
1391
1449
|
}
|
|
1392
|
-
const
|
|
1393
|
-
"time-indicator": "_time-
|
|
1394
|
-
timeIndicator:
|
|
1450
|
+
const l1 = "_time-indicator_1uygf_1", c1 = {
|
|
1451
|
+
"time-indicator": "_time-indicator_1uygf_1",
|
|
1452
|
+
timeIndicator: l1
|
|
1395
1453
|
};
|
|
1396
|
-
function
|
|
1397
|
-
return /* @__PURE__ */
|
|
1398
|
-
/* @__PURE__ */ t(
|
|
1454
|
+
function r1() {
|
|
1455
|
+
return /* @__PURE__ */ l("div", { className: c1.timeIndicator, children: [
|
|
1456
|
+
/* @__PURE__ */ t(ke, { type: "current" }),
|
|
1399
1457
|
"/",
|
|
1400
|
-
/* @__PURE__ */ t(
|
|
1458
|
+
/* @__PURE__ */ t(ke, { type: "duration" })
|
|
1401
1459
|
] });
|
|
1402
1460
|
}
|
|
1403
1461
|
function We(e) {
|
|
@@ -1409,56 +1467,56 @@ function We(e) {
|
|
|
1409
1467
|
} else for (o in e) e[o] && (i && (i += " "), i += o);
|
|
1410
1468
|
return i;
|
|
1411
1469
|
}
|
|
1412
|
-
function
|
|
1470
|
+
function u1() {
|
|
1413
1471
|
for (var e, n, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (n = We(e)) && (i && (i += " "), i += n);
|
|
1414
1472
|
return i;
|
|
1415
1473
|
}
|
|
1416
|
-
const
|
|
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 = {
|
|
1417
1475
|
"comment-markers": "_comment-markers_1ldxg_1",
|
|
1418
|
-
commentMarkers:
|
|
1476
|
+
commentMarkers: d1,
|
|
1419
1477
|
"comment-marker": "_comment-marker_1ldxg_1",
|
|
1420
|
-
commentMarker:
|
|
1478
|
+
commentMarker: m1,
|
|
1421
1479
|
"timeline-wrapper": "_timeline-wrapper_1ldxg_27",
|
|
1422
|
-
timelineWrapper:
|
|
1423
|
-
track:
|
|
1424
|
-
thumb:
|
|
1425
|
-
root:
|
|
1480
|
+
timelineWrapper: h1,
|
|
1481
|
+
track: p1,
|
|
1482
|
+
thumb: _1,
|
|
1483
|
+
root: C1,
|
|
1426
1484
|
"track-inner": "_track-inner_1ldxg_96",
|
|
1427
|
-
trackInner:
|
|
1428
|
-
progress:
|
|
1485
|
+
trackInner: f1,
|
|
1486
|
+
progress: g1,
|
|
1429
1487
|
"track-fill": "_track-fill_1ldxg_108",
|
|
1430
|
-
trackFill:
|
|
1431
|
-
pins:
|
|
1488
|
+
trackFill: b1,
|
|
1489
|
+
pins: v1,
|
|
1432
1490
|
"pin-button": "_pin-button_1ldxg_138",
|
|
1433
|
-
pinButton:
|
|
1491
|
+
pinButton: w1,
|
|
1434
1492
|
"annotation-pin": "_annotation-pin_1ldxg_158",
|
|
1435
|
-
annotationPin:
|
|
1493
|
+
annotationPin: y1,
|
|
1436
1494
|
"quiz-pin": "_quiz-pin_1ldxg_163",
|
|
1437
|
-
quizPin:
|
|
1495
|
+
quizPin: k1,
|
|
1438
1496
|
"pin-completed": "_pin-completed_1ldxg_168",
|
|
1439
|
-
pinCompleted:
|
|
1497
|
+
pinCompleted: L1,
|
|
1440
1498
|
"annotation-pin-child": "_annotation-pin-child_1ldxg_173",
|
|
1441
|
-
annotationPinChild:
|
|
1499
|
+
annotationPinChild: x1,
|
|
1442
1500
|
"quiz-pin-child": "_quiz-pin-child_1ldxg_177",
|
|
1443
|
-
quizPinChild:
|
|
1501
|
+
quizPinChild: M1,
|
|
1444
1502
|
"interactive-pin-container": "_interactive-pin-container_1ldxg_182",
|
|
1445
|
-
interactivePinContainer:
|
|
1503
|
+
interactivePinContainer: N1,
|
|
1446
1504
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_1ldxg_192",
|
|
1447
|
-
interactivePinWrapper:
|
|
1505
|
+
interactivePinWrapper: P1,
|
|
1448
1506
|
"interactive-pin-icon": "_interactive-pin-icon_1ldxg_198",
|
|
1449
|
-
interactivePinIcon:
|
|
1507
|
+
interactivePinIcon: I1,
|
|
1450
1508
|
"interactive-pin": "_interactive-pin_1ldxg_182",
|
|
1451
|
-
interactivePin:
|
|
1452
|
-
bg:
|
|
1453
|
-
symbol:
|
|
1509
|
+
interactivePin: H1,
|
|
1510
|
+
bg: S1,
|
|
1511
|
+
symbol: T1,
|
|
1454
1512
|
"interactive-pin-button": "_interactive-pin-button_1ldxg_221",
|
|
1455
|
-
interactivePinButton:
|
|
1513
|
+
interactivePinButton: V1,
|
|
1456
1514
|
"interactive-pin-menu": "_interactive-pin-menu_1ldxg_241",
|
|
1457
|
-
interactivePinMenu:
|
|
1515
|
+
interactivePinMenu: A1,
|
|
1458
1516
|
"interactive-pin-menu-item": "_interactive-pin-menu-item_1ldxg_255",
|
|
1459
|
-
interactivePinMenuItem:
|
|
1460
|
-
arrow:
|
|
1461
|
-
},
|
|
1517
|
+
interactivePinMenuItem: E1,
|
|
1518
|
+
arrow: B1
|
|
1519
|
+
}, R1 = {
|
|
1462
1520
|
annotation: m.annotationPin,
|
|
1463
1521
|
quiz: m.quizPin
|
|
1464
1522
|
};
|
|
@@ -1470,20 +1528,20 @@ function Ye({
|
|
|
1470
1528
|
id: s,
|
|
1471
1529
|
completed: a
|
|
1472
1530
|
}) {
|
|
1473
|
-
const
|
|
1531
|
+
const c = w();
|
|
1474
1532
|
return /* @__PURE__ */ t(
|
|
1475
1533
|
"button",
|
|
1476
1534
|
{
|
|
1477
1535
|
type: "button",
|
|
1478
|
-
tabIndex:
|
|
1536
|
+
tabIndex: c.state.interactionsDisabled ? -1 : 0,
|
|
1479
1537
|
className: m.pinButton,
|
|
1480
1538
|
style: { left: `${n}%` },
|
|
1481
1539
|
onClick: i,
|
|
1482
1540
|
"data-marker-id": s,
|
|
1483
|
-
children: /* @__PURE__ */
|
|
1541
|
+
children: /* @__PURE__ */ l(
|
|
1484
1542
|
"svg",
|
|
1485
1543
|
{
|
|
1486
|
-
className:
|
|
1544
|
+
className: u1(R1[e], [a && m.pinCompleted]),
|
|
1487
1545
|
width: "26",
|
|
1488
1546
|
height: "32",
|
|
1489
1547
|
viewBox: "0 0 26 32",
|
|
@@ -1497,7 +1555,7 @@ function Ye({
|
|
|
1497
1555
|
}
|
|
1498
1556
|
);
|
|
1499
1557
|
}
|
|
1500
|
-
function
|
|
1558
|
+
function O1(e) {
|
|
1501
1559
|
return /* @__PURE__ */ t(Ye, { type: "annotation", ...e, children: /* @__PURE__ */ t(
|
|
1502
1560
|
"path",
|
|
1503
1561
|
{
|
|
@@ -1510,8 +1568,18 @@ function So(e) {
|
|
|
1510
1568
|
}
|
|
1511
1569
|
) });
|
|
1512
1570
|
}
|
|
1513
|
-
function
|
|
1514
|
-
|
|
1571
|
+
function F1(e) {
|
|
1572
|
+
const n = e.completed ? /* @__PURE__ */ t(
|
|
1573
|
+
"path",
|
|
1574
|
+
{
|
|
1575
|
+
className: m.quizPinChild,
|
|
1576
|
+
transform: "translate(6, 6)",
|
|
1577
|
+
fillRule: "evenodd",
|
|
1578
|
+
clipRule: "evenodd",
|
|
1579
|
+
d: "M12.7156 2.33212L5.18253 9.86522L1.28337 5.96607L0 7.24944L5.18253 12.4329L13.9999 3.6164L12.7156 2.33212Z",
|
|
1580
|
+
fill: "currentColor"
|
|
1581
|
+
}
|
|
1582
|
+
) : /* @__PURE__ */ t(
|
|
1515
1583
|
"text",
|
|
1516
1584
|
{
|
|
1517
1585
|
className: m.quizPinChild,
|
|
@@ -1522,9 +1590,10 @@ function Vo(e) {
|
|
|
1522
1590
|
stroke: "none",
|
|
1523
1591
|
children: e.ordinal
|
|
1524
1592
|
}
|
|
1525
|
-
)
|
|
1593
|
+
);
|
|
1594
|
+
return /* @__PURE__ */ t(Ye, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : n });
|
|
1526
1595
|
}
|
|
1527
|
-
function
|
|
1596
|
+
function Z1(e, n) {
|
|
1528
1597
|
return e.map((o, i) => ({
|
|
1529
1598
|
id: o.id,
|
|
1530
1599
|
time: o.time,
|
|
@@ -1533,19 +1602,19 @@ function To(e, n) {
|
|
|
1533
1602
|
onClick: () => n(o)
|
|
1534
1603
|
}));
|
|
1535
1604
|
}
|
|
1536
|
-
function
|
|
1605
|
+
function z1(e, n) {
|
|
1537
1606
|
const o = /* @__PURE__ */ new Map();
|
|
1538
1607
|
e.forEach((a) => {
|
|
1539
1608
|
var r;
|
|
1540
|
-
const
|
|
1541
|
-
o.has(
|
|
1609
|
+
const c = a.time;
|
|
1610
|
+
o.has(c) || o.set(c, []), (r = o.get(c)) == null || r.push(a);
|
|
1542
1611
|
});
|
|
1543
1612
|
const i = [];
|
|
1544
1613
|
let s = 0;
|
|
1545
|
-
return o.forEach((a,
|
|
1614
|
+
return o.forEach((a, c) => {
|
|
1546
1615
|
i.push({
|
|
1547
1616
|
id: a.map((r) => r.id).join("-"),
|
|
1548
|
-
time:
|
|
1617
|
+
time: c,
|
|
1549
1618
|
type: "quiz",
|
|
1550
1619
|
ordinal: s + 1,
|
|
1551
1620
|
onClick: () => n(a),
|
|
@@ -1554,12 +1623,12 @@ function Eo(e, n) {
|
|
|
1554
1623
|
}), s++;
|
|
1555
1624
|
}), i;
|
|
1556
1625
|
}
|
|
1557
|
-
function
|
|
1626
|
+
function j1(e, n, o, i) {
|
|
1558
1627
|
switch (e.type) {
|
|
1559
1628
|
case "annotation": {
|
|
1560
1629
|
const s = () => i ? e.onClick() : o.seek(e.time);
|
|
1561
1630
|
return /* @__PURE__ */ t(
|
|
1562
|
-
|
|
1631
|
+
O1,
|
|
1563
1632
|
{
|
|
1564
1633
|
id: e.id,
|
|
1565
1634
|
position: e.time / n * 100,
|
|
@@ -1570,7 +1639,7 @@ function Ao(e, n, o, i) {
|
|
|
1570
1639
|
}
|
|
1571
1640
|
case "quiz":
|
|
1572
1641
|
return /* @__PURE__ */ t(
|
|
1573
|
-
|
|
1642
|
+
F1,
|
|
1574
1643
|
{
|
|
1575
1644
|
id: e.id,
|
|
1576
1645
|
position: e.time / n * 100,
|
|
@@ -1585,18 +1654,18 @@ function Ao(e, n, o, i) {
|
|
|
1585
1654
|
return null;
|
|
1586
1655
|
}
|
|
1587
1656
|
}
|
|
1588
|
-
function
|
|
1589
|
-
const e = oe(), n =
|
|
1590
|
-
...
|
|
1657
|
+
function D1() {
|
|
1658
|
+
const e = oe(), n = g("duration"), o = L(), i = T(() => [
|
|
1659
|
+
...Z1(
|
|
1591
1660
|
o.annotations,
|
|
1592
1661
|
o.onAnnotationClick
|
|
1593
1662
|
),
|
|
1594
|
-
...
|
|
1595
|
-
].sort((a,
|
|
1663
|
+
...z1(o.quizMarkers, o.onQuizMarkerClick)
|
|
1664
|
+
].sort((a, c) => a.time - c.time).map((a) => j1(a, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1596
1665
|
return /* @__PURE__ */ t("div", { className: m.pins, children: i });
|
|
1597
1666
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const e =
|
|
1667
|
+
function K1() {
|
|
1668
|
+
const e = g("duration"), n = L(), o = w();
|
|
1600
1669
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: m.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
|
|
1601
1670
|
"span",
|
|
1602
1671
|
{
|
|
@@ -1608,25 +1677,25 @@ function Bo() {
|
|
|
1608
1677
|
i.id
|
|
1609
1678
|
)) }) : null;
|
|
1610
1679
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const [o, i] = x(!1), s =
|
|
1680
|
+
function $1({ currentTime: e, position: n }) {
|
|
1681
|
+
const [o, i] = x(!1), s = L(), a = f(() => s.interactiveMenuElements.length > 0 ? i((y) => !y) : s.onInteractivePinClick(e), [
|
|
1613
1682
|
s.interactiveMenuElements,
|
|
1614
1683
|
s.onInteractivePinClick,
|
|
1615
1684
|
e
|
|
1616
|
-
]),
|
|
1685
|
+
]), c = ne(null), { refs: r, floatingStyles: d, context: p } = ue({
|
|
1617
1686
|
open: o,
|
|
1618
1687
|
onOpenChange: i,
|
|
1619
1688
|
whileElementsMounted: de,
|
|
1620
1689
|
placement: "top",
|
|
1621
1690
|
middleware: [
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
element:
|
|
1691
|
+
Se(),
|
|
1692
|
+
Te(6),
|
|
1693
|
+
Ve({
|
|
1694
|
+
element: c
|
|
1626
1695
|
})
|
|
1627
1696
|
]
|
|
1628
|
-
}),
|
|
1629
|
-
return /* @__PURE__ */
|
|
1697
|
+
}), b = me(p), { getReferenceProps: v, getFloatingProps: k } = he([b]);
|
|
1698
|
+
return /* @__PURE__ */ l(Y, { children: [
|
|
1630
1699
|
/* @__PURE__ */ t(
|
|
1631
1700
|
"button",
|
|
1632
1701
|
{
|
|
@@ -1635,8 +1704,8 @@ function Oo({ currentTime: e, position: n }) {
|
|
|
1635
1704
|
className: m.interactivePinButton,
|
|
1636
1705
|
ref: r.setReference,
|
|
1637
1706
|
style: { left: `${n}%` },
|
|
1638
|
-
...
|
|
1639
|
-
children: /* @__PURE__ */
|
|
1707
|
+
...v(),
|
|
1708
|
+
children: /* @__PURE__ */ l(
|
|
1640
1709
|
"svg",
|
|
1641
1710
|
{
|
|
1642
1711
|
className: m.interactivePin,
|
|
@@ -1677,21 +1746,21 @@ function Oo({ currentTime: e, position: n }) {
|
|
|
1677
1746
|
}
|
|
1678
1747
|
),
|
|
1679
1748
|
o && /* @__PURE__ */ t(
|
|
1680
|
-
|
|
1749
|
+
pe,
|
|
1681
1750
|
{
|
|
1682
1751
|
order: ["floating", "content"],
|
|
1683
|
-
context:
|
|
1752
|
+
context: p,
|
|
1684
1753
|
modal: !0,
|
|
1685
|
-
children: /* @__PURE__ */
|
|
1754
|
+
children: /* @__PURE__ */ l(
|
|
1686
1755
|
"div",
|
|
1687
1756
|
{
|
|
1688
1757
|
ref: r.setFloating,
|
|
1689
|
-
style:
|
|
1758
|
+
style: d,
|
|
1690
1759
|
className: m.interactivePinMenu,
|
|
1691
1760
|
...k(),
|
|
1692
1761
|
children: [
|
|
1693
1762
|
s.interactiveMenuElements.map(
|
|
1694
|
-
({ id: y, text:
|
|
1763
|
+
({ id: y, text: P, onClick: h }) => /* @__PURE__ */ l(
|
|
1695
1764
|
"button",
|
|
1696
1765
|
{
|
|
1697
1766
|
type: "button",
|
|
@@ -1719,17 +1788,17 @@ function Oo({ currentTime: e, position: n }) {
|
|
|
1719
1788
|
)
|
|
1720
1789
|
}
|
|
1721
1790
|
),
|
|
1722
|
-
|
|
1791
|
+
P
|
|
1723
1792
|
]
|
|
1724
1793
|
},
|
|
1725
1794
|
y
|
|
1726
1795
|
)
|
|
1727
1796
|
),
|
|
1728
1797
|
/* @__PURE__ */ t(
|
|
1729
|
-
|
|
1798
|
+
Ae,
|
|
1730
1799
|
{
|
|
1731
|
-
ref:
|
|
1732
|
-
context:
|
|
1800
|
+
ref: c,
|
|
1801
|
+
context: p,
|
|
1733
1802
|
className: m.arrow
|
|
1734
1803
|
}
|
|
1735
1804
|
)
|
|
@@ -1740,50 +1809,50 @@ function Oo({ currentTime: e, position: n }) {
|
|
|
1740
1809
|
)
|
|
1741
1810
|
] });
|
|
1742
1811
|
}
|
|
1743
|
-
function
|
|
1744
|
-
const e =
|
|
1812
|
+
function U1() {
|
|
1813
|
+
const e = g("duration"), n = g("currentTime"), o = n / e * 100, { disableInteractivePinRanges: i } = L();
|
|
1745
1814
|
return i.some(
|
|
1746
|
-
([a,
|
|
1747
|
-
) ? null : /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t(
|
|
1748
|
-
}
|
|
1749
|
-
function
|
|
1750
|
-
const e =
|
|
1751
|
-
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(
|
|
1752
|
-
}
|
|
1753
|
-
const
|
|
1754
|
-
function
|
|
1755
|
-
const n =
|
|
1756
|
-
return /* @__PURE__ */
|
|
1757
|
-
s ? /* @__PURE__ */ t(
|
|
1758
|
-
s || o || i ? /* @__PURE__ */ t(
|
|
1759
|
-
/* @__PURE__ */ t(
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
|
|
1815
|
+
([a, c]) => n >= a && n <= c
|
|
1816
|
+
) ? null : /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t($1, { currentTime: n, position: o }) }) });
|
|
1817
|
+
}
|
|
1818
|
+
function q1() {
|
|
1819
|
+
const e = g("paused"), n = w();
|
|
1820
|
+
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(U1, {}) : null;
|
|
1821
|
+
}
|
|
1822
|
+
const G1 = `${m.progress} ${m.trackInner}`, Q1 = `${m.trackFill} ${m.trackInner}`;
|
|
1823
|
+
function Me({ className: e }) {
|
|
1824
|
+
const n = w(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = L(), a = e ? `${m.timelineWrapper} ${e}` : m.timelineWrapper;
|
|
1825
|
+
return /* @__PURE__ */ l("div", { className: a, children: [
|
|
1826
|
+
s ? /* @__PURE__ */ t(q1, {}) : null,
|
|
1827
|
+
s || o || i ? /* @__PURE__ */ t(D1, {}) : null,
|
|
1828
|
+
/* @__PURE__ */ t(K1, {}),
|
|
1829
|
+
/* @__PURE__ */ l(
|
|
1830
|
+
G.Root,
|
|
1762
1831
|
{
|
|
1763
1832
|
className: m.root,
|
|
1764
1833
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1765
1834
|
children: [
|
|
1766
|
-
/* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */ t(
|
|
1768
|
-
/* @__PURE__ */ t(
|
|
1835
|
+
/* @__PURE__ */ l(G.Track, { className: m.track, children: [
|
|
1836
|
+
/* @__PURE__ */ t(G.Progress, { className: G1 }),
|
|
1837
|
+
/* @__PURE__ */ t(G.TrackFill, { className: Q1 })
|
|
1769
1838
|
] }),
|
|
1770
|
-
/* @__PURE__ */ t(
|
|
1839
|
+
/* @__PURE__ */ t(G.Thumb, { className: m.thumb })
|
|
1771
1840
|
]
|
|
1772
1841
|
}
|
|
1773
1842
|
)
|
|
1774
1843
|
] });
|
|
1775
1844
|
}
|
|
1776
|
-
const
|
|
1777
|
-
wrapper:
|
|
1778
|
-
track:
|
|
1779
|
-
thumb:
|
|
1845
|
+
const W1 = "_wrapper_12cb0_1", Y1 = "_track_12cb0_6", X1 = "_thumb_12cb0_18", J1 = "_track-fill_12cb0_32", ei = "_root_12cb0_51", W = {
|
|
1846
|
+
wrapper: W1,
|
|
1847
|
+
track: Y1,
|
|
1848
|
+
thumb: X1,
|
|
1780
1849
|
"track-fill": "_track-fill_12cb0_32",
|
|
1781
|
-
trackFill:
|
|
1782
|
-
root:
|
|
1850
|
+
trackFill: J1,
|
|
1851
|
+
root: ei
|
|
1783
1852
|
};
|
|
1784
|
-
function
|
|
1785
|
-
const e =
|
|
1786
|
-
return /* @__PURE__ */
|
|
1853
|
+
function ti() {
|
|
1854
|
+
const e = Z(), n = g("volume"), o = g("muted"), i = w(), s = o || n === 0, { t: a } = _();
|
|
1855
|
+
return /* @__PURE__ */ l("div", { className: W.wrapper, children: [
|
|
1787
1856
|
/* @__PURE__ */ t(
|
|
1788
1857
|
"button",
|
|
1789
1858
|
{
|
|
@@ -1795,23 +1864,23 @@ function jo() {
|
|
|
1795
1864
|
onClick: () => {
|
|
1796
1865
|
s ? e == null || e.remoteControl.unmute() : e == null || e.remoteControl.mute();
|
|
1797
1866
|
},
|
|
1798
|
-
children: s ? /* @__PURE__ */ t(
|
|
1867
|
+
children: s ? /* @__PURE__ */ t($e, { className: "controls-button-icon" }) : n < 0.5 ? /* @__PURE__ */ t(Ue, { className: "controls-button-icon" }) : /* @__PURE__ */ t(qe, { className: "controls-button-icon" })
|
|
1799
1868
|
}
|
|
1800
1869
|
),
|
|
1801
|
-
/* @__PURE__ */
|
|
1802
|
-
|
|
1870
|
+
/* @__PURE__ */ l(
|
|
1871
|
+
X.Root,
|
|
1803
1872
|
{
|
|
1804
|
-
className:
|
|
1873
|
+
className: W.root,
|
|
1805
1874
|
tabIndex: i.state.interactionsDisabled ? -1 : 0,
|
|
1806
1875
|
children: [
|
|
1807
|
-
/* @__PURE__ */ t(
|
|
1808
|
-
/* @__PURE__ */ t(
|
|
1876
|
+
/* @__PURE__ */ t(X.Track, { className: W.track, children: /* @__PURE__ */ t(X.TrackFill, { className: W.trackFill }) }),
|
|
1877
|
+
/* @__PURE__ */ t(X.Thumb, { className: W.thumb })
|
|
1809
1878
|
]
|
|
1810
1879
|
}
|
|
1811
1880
|
)
|
|
1812
1881
|
] });
|
|
1813
1882
|
}
|
|
1814
|
-
const
|
|
1883
|
+
const Ne = {
|
|
1815
1884
|
togglePaused: {
|
|
1816
1885
|
keys: ["Space", "Enter", "k"],
|
|
1817
1886
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
@@ -1858,8 +1927,8 @@ const He = {
|
|
|
1858
1927
|
decreasePlaybackRate: {
|
|
1859
1928
|
keys: ["a"],
|
|
1860
1929
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1861
|
-
const s =
|
|
1862
|
-
s >= 0 && (o.changePlaybackRate(
|
|
1930
|
+
const s = D.indexOf(n.playbackRate) - 1;
|
|
1931
|
+
s >= 0 && (o.changePlaybackRate(D[s]), n.$state.lastKeyboardAction.set({
|
|
1863
1932
|
action: "decreasePlaybackRate",
|
|
1864
1933
|
event: e
|
|
1865
1934
|
}));
|
|
@@ -1868,8 +1937,8 @@ const He = {
|
|
|
1868
1937
|
increasePlaybackRate: {
|
|
1869
1938
|
keys: ["d"],
|
|
1870
1939
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1871
|
-
const s =
|
|
1872
|
-
s <
|
|
1940
|
+
const s = D.indexOf(n.playbackRate) + 1;
|
|
1941
|
+
s < D.length && (o.changePlaybackRate(D[s]), n.$state.lastKeyboardAction.set({
|
|
1873
1942
|
action: "increasePlaybackRate",
|
|
1874
1943
|
event: e
|
|
1875
1944
|
}));
|
|
@@ -1903,10 +1972,10 @@ const He = {
|
|
|
1903
1972
|
}
|
|
1904
1973
|
}
|
|
1905
1974
|
};
|
|
1906
|
-
function
|
|
1975
|
+
function Pe(e) {
|
|
1907
1976
|
return typeof e == "number" && !isNaN(e);
|
|
1908
1977
|
}
|
|
1909
|
-
function
|
|
1978
|
+
function ni(e, n = 1e3) {
|
|
1910
1979
|
let o = !1;
|
|
1911
1980
|
return () => {
|
|
1912
1981
|
o || (e(), o = !0, setTimeout(() => {
|
|
@@ -1914,7 +1983,7 @@ function Qo(e, n = 1e3) {
|
|
|
1914
1983
|
}, n));
|
|
1915
1984
|
};
|
|
1916
1985
|
}
|
|
1917
|
-
const
|
|
1986
|
+
const Ie = {
|
|
1918
1987
|
volume: 1,
|
|
1919
1988
|
muted: !1,
|
|
1920
1989
|
lang: null,
|
|
@@ -1925,23 +1994,23 @@ const Ve = {
|
|
|
1925
1994
|
invert: !1,
|
|
1926
1995
|
comments: !1
|
|
1927
1996
|
};
|
|
1928
|
-
class
|
|
1997
|
+
class oi {
|
|
1929
1998
|
constructor() {
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1999
|
+
H(this, "playerId", "studio-player");
|
|
2000
|
+
H(this, "mediaId", null);
|
|
2001
|
+
H(this, "data", Ie);
|
|
2002
|
+
H(this, "time", null);
|
|
2003
|
+
H(this, "overrideTime", null);
|
|
2004
|
+
H(this, "saveTime", () => {
|
|
1936
2005
|
if (!this.mediaId) return;
|
|
1937
2006
|
const n = (this.time ?? 0).toString();
|
|
1938
2007
|
localStorage.setItem(this.mediaId, n);
|
|
1939
2008
|
});
|
|
1940
|
-
|
|
2009
|
+
H(this, "saveTimeThrottled", ni(this.saveTime, 1e3));
|
|
1941
2010
|
// only used for useStudioPlayer hook's state initialization
|
|
1942
|
-
|
|
2011
|
+
H(this, "initializeState", (n) => {
|
|
1943
2012
|
const o = localStorage.getItem(this.playerId);
|
|
1944
|
-
if (
|
|
2013
|
+
if (Pe(n) && n >= 0 && (this.overrideTime = n), o)
|
|
1945
2014
|
try {
|
|
1946
2015
|
this.data = JSON.parse(o);
|
|
1947
2016
|
} catch {
|
|
@@ -1956,7 +2025,7 @@ class Wo {
|
|
|
1956
2025
|
disableCaptionSettings: !1
|
|
1957
2026
|
};
|
|
1958
2027
|
});
|
|
1959
|
-
|
|
2028
|
+
H(this, "saveData", (n, o) => {
|
|
1960
2029
|
this.data = {
|
|
1961
2030
|
...this.data,
|
|
1962
2031
|
[n]: o
|
|
@@ -2009,16 +2078,16 @@ class Wo {
|
|
|
2009
2078
|
onChange(n, o, i = "studio-player") {
|
|
2010
2079
|
const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
|
|
2011
2080
|
this.playerId = i, this.mediaId = o;
|
|
2012
|
-
let
|
|
2081
|
+
let c = {};
|
|
2013
2082
|
if (s)
|
|
2014
2083
|
try {
|
|
2015
|
-
|
|
2084
|
+
c = JSON.parse(s);
|
|
2016
2085
|
} catch {
|
|
2017
2086
|
}
|
|
2018
2087
|
this.data = {
|
|
2019
|
-
...
|
|
2020
|
-
...
|
|
2021
|
-
},
|
|
2088
|
+
...Ie,
|
|
2089
|
+
...c
|
|
2090
|
+
}, Pe(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
2022
2091
|
}
|
|
2023
2092
|
save() {
|
|
2024
2093
|
if (!this.playerId) return;
|
|
@@ -2026,60 +2095,60 @@ class Wo {
|
|
|
2026
2095
|
localStorage.setItem(this.playerId, n);
|
|
2027
2096
|
}
|
|
2028
2097
|
}
|
|
2029
|
-
function
|
|
2030
|
-
const s =
|
|
2098
|
+
function ii(e, n, o, i) {
|
|
2099
|
+
const s = T(() => new oi(), []), [a, c] = x(
|
|
2031
2100
|
s.initializeState(i)
|
|
2032
|
-
), r =
|
|
2101
|
+
), r = f(
|
|
2033
2102
|
(h) => {
|
|
2034
|
-
|
|
2035
|
-
...
|
|
2103
|
+
c((C) => (s.saveData("multiplier", h), {
|
|
2104
|
+
...C,
|
|
2036
2105
|
captionsFontSizeMultiplier: h
|
|
2037
2106
|
}));
|
|
2038
2107
|
},
|
|
2039
2108
|
[s]
|
|
2040
|
-
),
|
|
2041
|
-
|
|
2042
|
-
const
|
|
2043
|
-
return s.saveData("ontop",
|
|
2109
|
+
), d = f(() => {
|
|
2110
|
+
c((h) => {
|
|
2111
|
+
const C = !h.captionPositionOnTop;
|
|
2112
|
+
return s.saveData("ontop", C), {
|
|
2044
2113
|
...h,
|
|
2045
|
-
captionPositionOnTop:
|
|
2114
|
+
captionPositionOnTop: C
|
|
2046
2115
|
};
|
|
2047
2116
|
});
|
|
2048
|
-
}, [s]),
|
|
2049
|
-
|
|
2050
|
-
const
|
|
2051
|
-
return s.saveData("invert",
|
|
2117
|
+
}, [s]), p = f(() => {
|
|
2118
|
+
c((h) => {
|
|
2119
|
+
const C = !h.captionsInvertColors;
|
|
2120
|
+
return s.saveData("invert", C), {
|
|
2052
2121
|
...h,
|
|
2053
|
-
captionsInvertColors:
|
|
2122
|
+
captionsInvertColors: C
|
|
2054
2123
|
};
|
|
2055
2124
|
});
|
|
2056
|
-
}, [s]),
|
|
2057
|
-
|
|
2058
|
-
const
|
|
2059
|
-
return s.saveData("comments",
|
|
2125
|
+
}, [s]), b = f(() => {
|
|
2126
|
+
c((h) => {
|
|
2127
|
+
const C = !h.commentsEnabled;
|
|
2128
|
+
return s.saveData("comments", C), {
|
|
2060
2129
|
...h,
|
|
2061
|
-
commentsEnabled:
|
|
2130
|
+
commentsEnabled: C
|
|
2062
2131
|
};
|
|
2063
2132
|
});
|
|
2064
|
-
}, [s]),
|
|
2065
|
-
|
|
2133
|
+
}, [s]), v = f(() => {
|
|
2134
|
+
c((h) => ({
|
|
2066
2135
|
...h,
|
|
2067
2136
|
interactionsDisabled: !1
|
|
2068
2137
|
}));
|
|
2069
|
-
}, []), k =
|
|
2070
|
-
|
|
2138
|
+
}, []), k = f(() => {
|
|
2139
|
+
c((h) => ({
|
|
2071
2140
|
...h,
|
|
2072
2141
|
interactionsDisabled: !0
|
|
2073
2142
|
}));
|
|
2074
|
-
}, []), y =
|
|
2075
|
-
|
|
2076
|
-
...
|
|
2143
|
+
}, []), y = f((h) => {
|
|
2144
|
+
c((C) => ({
|
|
2145
|
+
...C,
|
|
2077
2146
|
globalKeysDisabled: h
|
|
2078
2147
|
}));
|
|
2079
|
-
}, []),
|
|
2080
|
-
...
|
|
2148
|
+
}, []), P = T(() => e ? {
|
|
2149
|
+
...Ne,
|
|
2081
2150
|
toggleFullscreen: []
|
|
2082
|
-
} :
|
|
2151
|
+
} : Ne, [e]);
|
|
2083
2152
|
return {
|
|
2084
2153
|
contextValue: {
|
|
2085
2154
|
state: {
|
|
@@ -2087,197 +2156,199 @@ function Yo(e, n, o, i) {
|
|
|
2087
2156
|
commentsEnabled: n || a.commentsEnabled
|
|
2088
2157
|
},
|
|
2089
2158
|
setCaptionsFontSizeMultiplier: r,
|
|
2090
|
-
toggleCaptionPositionOnTop:
|
|
2091
|
-
toggleCaptionsInvertColors:
|
|
2092
|
-
enableInteractions:
|
|
2159
|
+
toggleCaptionPositionOnTop: d,
|
|
2160
|
+
toggleCaptionsInvertColors: p,
|
|
2161
|
+
enableInteractions: v,
|
|
2093
2162
|
disableInteractions: k,
|
|
2094
2163
|
setGlobalKeysDisabled: y,
|
|
2095
|
-
toggleComments:
|
|
2164
|
+
toggleComments: b,
|
|
2096
2165
|
disableCaptionSettings: o
|
|
2097
2166
|
},
|
|
2098
|
-
shortcuts:
|
|
2167
|
+
shortcuts: P,
|
|
2099
2168
|
storage: s
|
|
2100
2169
|
};
|
|
2101
2170
|
}
|
|
2102
|
-
const
|
|
2103
|
-
function
|
|
2104
|
-
const e =
|
|
2105
|
-
return /* @__PURE__ */
|
|
2106
|
-
/* @__PURE__ */ t(
|
|
2107
|
-
/* @__PURE__ */ t(
|
|
2108
|
-
/* @__PURE__ */ t(
|
|
2109
|
-
/* @__PURE__ */ t(
|
|
2110
|
-
/* @__PURE__ */ t(
|
|
2111
|
-
/* @__PURE__ */ t(
|
|
2112
|
-
/* @__PURE__ */ t(
|
|
2171
|
+
const si = {};
|
|
2172
|
+
function ai() {
|
|
2173
|
+
const e = L();
|
|
2174
|
+
return /* @__PURE__ */ l(Y, { children: [
|
|
2175
|
+
/* @__PURE__ */ t(Jo, { src: e.thumbnail }),
|
|
2176
|
+
/* @__PURE__ */ t(Ge, {}),
|
|
2177
|
+
/* @__PURE__ */ t(Re, {}),
|
|
2178
|
+
/* @__PURE__ */ t(Ze, { captions: e.captions }),
|
|
2179
|
+
/* @__PURE__ */ t(a1, {}),
|
|
2180
|
+
/* @__PURE__ */ t(No, {}),
|
|
2181
|
+
/* @__PURE__ */ t(Jt, { comments: e.comments })
|
|
2113
2182
|
] });
|
|
2114
2183
|
}
|
|
2115
|
-
const
|
|
2116
|
-
/* @__PURE__ */
|
|
2184
|
+
const li = (e) => /* @__PURE__ */ t("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
|
|
2185
|
+
/* @__PURE__ */ l("g", { id: "icon-file-base-2", children: [
|
|
2117
2186
|
/* @__PURE__ */ t("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" }),
|
|
2118
2187
|
/* @__PURE__ */ t("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" }),
|
|
2119
2188
|
/* @__PURE__ */ t("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" })
|
|
2120
2189
|
] }),
|
|
2121
2190
|
/* @__PURE__ */ t("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" })
|
|
2122
2191
|
] }) }) });
|
|
2123
|
-
function
|
|
2124
|
-
const e =
|
|
2125
|
-
return /* @__PURE__ */
|
|
2126
|
-
/* @__PURE__ */ t(
|
|
2127
|
-
/* @__PURE__ */ t(
|
|
2128
|
-
/* @__PURE__ */ t(
|
|
2129
|
-
/* @__PURE__ */ t(
|
|
2192
|
+
function ci() {
|
|
2193
|
+
const e = L();
|
|
2194
|
+
return /* @__PURE__ */ l("div", { className: "audio-layout-wrapper", children: [
|
|
2195
|
+
/* @__PURE__ */ t(li, {}),
|
|
2196
|
+
/* @__PURE__ */ t(Ge, {}),
|
|
2197
|
+
/* @__PURE__ */ t(Re, {}),
|
|
2198
|
+
/* @__PURE__ */ t(Ze, { captions: e.captions })
|
|
2130
2199
|
] });
|
|
2131
2200
|
}
|
|
2132
|
-
function
|
|
2201
|
+
function ri(e, n) {
|
|
2133
2202
|
return e.reduce((o, i) => (Object.keys(n).includes(i.id) || (o[i.id] = !0), o), n);
|
|
2134
2203
|
}
|
|
2135
|
-
function
|
|
2204
|
+
function ui(e, n, o, i, s) {
|
|
2136
2205
|
return (a) => {
|
|
2137
|
-
const
|
|
2138
|
-
|
|
2206
|
+
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 }), n(e, r));
|
|
2139
2208
|
};
|
|
2140
2209
|
}
|
|
2141
|
-
function
|
|
2142
|
-
const e =
|
|
2143
|
-
n.reduce((a,
|
|
2210
|
+
function di() {
|
|
2211
|
+
const e = Z(), { quizMarkers: n, onQuizMarkerShow: o } = L(), [i, s] = x(
|
|
2212
|
+
n.reduce((a, c) => (a[c.id] = !1, a), {})
|
|
2144
2213
|
);
|
|
2145
|
-
|
|
2214
|
+
F(() => {
|
|
2146
2215
|
if (!e)
|
|
2147
2216
|
return;
|
|
2148
|
-
n.length > Object.keys(i).length && s(
|
|
2149
|
-
const a = [],
|
|
2150
|
-
var
|
|
2151
|
-
const
|
|
2152
|
-
s({ ...i, ...
|
|
2217
|
+
n.length > Object.keys(i).length && s(ri(n, i));
|
|
2218
|
+
const a = [], c = (r) => {
|
|
2219
|
+
var b;
|
|
2220
|
+
const d = (b = r == null ? void 0 : r.request) == null ? void 0 : b.detail, p = n.reduce((v, k) => (v[k.id] = k.time <= d, v), {});
|
|
2221
|
+
s({ ...i, ...p });
|
|
2153
2222
|
};
|
|
2154
|
-
e.addEventListener("seeked",
|
|
2223
|
+
e.addEventListener("seeked", c);
|
|
2155
2224
|
for (const r of n) {
|
|
2156
|
-
const
|
|
2225
|
+
const d = ui(
|
|
2157
2226
|
r,
|
|
2158
2227
|
o,
|
|
2159
2228
|
e,
|
|
2160
2229
|
i,
|
|
2161
2230
|
s
|
|
2162
2231
|
);
|
|
2163
|
-
e.addEventListener("time-update",
|
|
2232
|
+
e.addEventListener("time-update", d), a.push(d);
|
|
2164
2233
|
}
|
|
2165
2234
|
return () => {
|
|
2166
2235
|
for (const r of a)
|
|
2167
2236
|
e.removeEventListener("time-update", r);
|
|
2168
|
-
e.removeEventListener("seeked",
|
|
2237
|
+
e.removeEventListener("seeked", c);
|
|
2169
2238
|
};
|
|
2170
2239
|
}, [n, e, i]);
|
|
2171
2240
|
}
|
|
2172
|
-
function
|
|
2173
|
-
return
|
|
2241
|
+
function mi() {
|
|
2242
|
+
return di(), null;
|
|
2174
2243
|
}
|
|
2175
|
-
function
|
|
2244
|
+
function hi(e) {
|
|
2176
2245
|
return Array.isArray(e) && typeof e[0] == "object";
|
|
2177
2246
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2247
|
+
function pi(e) {
|
|
2248
|
+
return hi(e) && e.length === 1 ? e[0].src : e;
|
|
2180
2249
|
}
|
|
2181
|
-
const
|
|
2250
|
+
const te = () => {
|
|
2182
2251
|
};
|
|
2183
|
-
function
|
|
2252
|
+
function ki({
|
|
2184
2253
|
title: e,
|
|
2185
2254
|
playerRef: n,
|
|
2186
2255
|
src: o,
|
|
2187
2256
|
captions: i = [],
|
|
2188
2257
|
thumbnail: s,
|
|
2189
2258
|
hideFullScreen: a = !1,
|
|
2190
|
-
comments:
|
|
2259
|
+
comments: c = [],
|
|
2191
2260
|
locale: r = "en",
|
|
2192
|
-
annotations:
|
|
2193
|
-
quizMarkers:
|
|
2194
|
-
interactive:
|
|
2195
|
-
onAnnotationClick:
|
|
2196
|
-
onQuizMarkerClick: k =
|
|
2197
|
-
onQuizMarkerShow: y =
|
|
2198
|
-
onInteractivePinClick:
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2261
|
+
annotations: d = [],
|
|
2262
|
+
quizMarkers: p = [],
|
|
2263
|
+
interactive: b = !1,
|
|
2264
|
+
onAnnotationClick: v = te,
|
|
2265
|
+
onQuizMarkerClick: k = te,
|
|
2266
|
+
onQuizMarkerShow: y = te,
|
|
2267
|
+
onInteractivePinClick: P = te,
|
|
2268
|
+
onCaptionsDelete: h,
|
|
2269
|
+
interactiveMenuElements: C = [],
|
|
2270
|
+
kebabMenuElements: V = [],
|
|
2271
|
+
darkMode: A = !1,
|
|
2272
|
+
autoLoadCaptionSrc: U = "",
|
|
2273
|
+
forceComments: S = !1,
|
|
2274
|
+
disableCaptionSettings: E = !1,
|
|
2275
|
+
disableStorage: q = !1,
|
|
2276
|
+
startAt: se,
|
|
2277
|
+
crossOrigin: Xe,
|
|
2278
|
+
captionOffsetOverride: Je,
|
|
2279
|
+
disableInteractivePinRanges: et = [],
|
|
2280
|
+
customOverlay: ge
|
|
2211
2281
|
}) {
|
|
2212
|
-
const { contextValue: ae, shortcuts:
|
|
2282
|
+
const { contextValue: ae, shortcuts: tt, storage: nt } = ii(
|
|
2213
2283
|
a,
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
), { i18n:
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
}, [
|
|
2221
|
-
const [
|
|
2222
|
-
|
|
2284
|
+
S,
|
|
2285
|
+
E,
|
|
2286
|
+
se
|
|
2287
|
+
), { i18n: be } = _();
|
|
2288
|
+
F(() => {
|
|
2289
|
+
be.changeLanguage(r);
|
|
2290
|
+
}, [be, r]);
|
|
2291
|
+
const [ve, we] = x("none"), ot = f((B) => {
|
|
2292
|
+
_t(B) ? we("audio") : Ct(B) && we("video");
|
|
2223
2293
|
}, []);
|
|
2224
2294
|
return /* @__PURE__ */ t(
|
|
2225
|
-
|
|
2295
|
+
Mt,
|
|
2226
2296
|
{
|
|
2227
2297
|
hideFullScreen: a,
|
|
2228
|
-
comments:
|
|
2298
|
+
comments: c,
|
|
2229
2299
|
captions: i,
|
|
2230
2300
|
thumbnail: s,
|
|
2231
|
-
annotations:
|
|
2232
|
-
quizMarkers:
|
|
2233
|
-
interactive:
|
|
2234
|
-
onAnnotationClick:
|
|
2301
|
+
annotations: d,
|
|
2302
|
+
quizMarkers: p,
|
|
2303
|
+
interactive: b,
|
|
2304
|
+
onAnnotationClick: v,
|
|
2235
2305
|
onQuizMarkerClick: k,
|
|
2236
|
-
onInteractivePinClick:
|
|
2237
|
-
interactiveMenuElements:
|
|
2238
|
-
kebabMenuElements:
|
|
2239
|
-
darkMode:
|
|
2240
|
-
forceComments:
|
|
2241
|
-
disableCaptionSettings:
|
|
2242
|
-
disableStorage:
|
|
2243
|
-
captionOffsetOverride:
|
|
2244
|
-
disableInteractivePinRanges:
|
|
2306
|
+
onInteractivePinClick: P,
|
|
2307
|
+
interactiveMenuElements: C,
|
|
2308
|
+
kebabMenuElements: V,
|
|
2309
|
+
darkMode: A,
|
|
2310
|
+
forceComments: S,
|
|
2311
|
+
disableCaptionSettings: E,
|
|
2312
|
+
disableStorage: q,
|
|
2313
|
+
captionOffsetOverride: Je,
|
|
2314
|
+
disableInteractivePinRanges: et,
|
|
2245
2315
|
onQuizMarkerShow: y,
|
|
2246
|
-
|
|
2316
|
+
onCaptionsDelete: h,
|
|
2317
|
+
children: /* @__PURE__ */ t(xt, { contextValue: ae, children: /* @__PURE__ */ l(
|
|
2247
2318
|
ft,
|
|
2248
2319
|
{
|
|
2249
|
-
"data-version": "0.3
|
|
2250
|
-
crossOrigin:
|
|
2251
|
-
storage:
|
|
2320
|
+
"data-version": "0.4.3",
|
|
2321
|
+
crossOrigin: Xe,
|
|
2322
|
+
storage: q ? null : nt,
|
|
2252
2323
|
title: e,
|
|
2253
|
-
src:
|
|
2254
|
-
keyShortcuts:
|
|
2324
|
+
src: pi(o),
|
|
2325
|
+
keyShortcuts: tt,
|
|
2255
2326
|
playsInline: !0,
|
|
2256
2327
|
keyDisabled: ae.state.interactionsDisabled || ae.state.globalKeysDisabled,
|
|
2257
|
-
onTextTracksChange: (
|
|
2258
|
-
const
|
|
2259
|
-
(
|
|
2328
|
+
onTextTracksChange: (B) => {
|
|
2329
|
+
const ye = B == null ? void 0 : B.findIndex(
|
|
2330
|
+
(it) => it.src === U
|
|
2260
2331
|
);
|
|
2261
|
-
|
|
2332
|
+
ye > -1 && (B[ye].mode = "showing");
|
|
2262
2333
|
},
|
|
2263
|
-
onProviderSetup:
|
|
2334
|
+
onProviderSetup: ot,
|
|
2264
2335
|
children: [
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
|
|
2267
|
-
|
|
2336
|
+
/* @__PURE__ */ l(gt, { className: si.mediaProvider, children: [
|
|
2337
|
+
ve === "audio" && /* @__PURE__ */ t(ci, {}),
|
|
2338
|
+
ve === "video" && /* @__PURE__ */ t(ai, {})
|
|
2268
2339
|
] }),
|
|
2269
|
-
/* @__PURE__ */ t(
|
|
2270
|
-
|
|
2340
|
+
/* @__PURE__ */ t(qo, {}),
|
|
2341
|
+
ge && ge(),
|
|
2271
2342
|
/* @__PURE__ */ t(
|
|
2272
|
-
|
|
2343
|
+
ln,
|
|
2273
2344
|
{
|
|
2274
|
-
darkMode:
|
|
2345
|
+
darkMode: A,
|
|
2275
2346
|
playerRef: n,
|
|
2276
|
-
showCaptionsButton: !
|
|
2347
|
+
showCaptionsButton: !E
|
|
2277
2348
|
}
|
|
2278
2349
|
),
|
|
2279
|
-
/* @__PURE__ */ t(
|
|
2280
|
-
!!
|
|
2350
|
+
/* @__PURE__ */ t(Ht, { annotations: d }),
|
|
2351
|
+
!!p.length && /* @__PURE__ */ t(mi, {})
|
|
2281
2352
|
]
|
|
2282
2353
|
}
|
|
2283
2354
|
) })
|
|
@@ -2285,10 +2356,10 @@ function fi({
|
|
|
2285
2356
|
);
|
|
2286
2357
|
}
|
|
2287
2358
|
export {
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2359
|
+
Zt as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
2360
|
+
zt as COMMENT_DURATION,
|
|
2361
|
+
D as PLAYBACK_RATES,
|
|
2362
|
+
ki as StudioPlayer,
|
|
2363
|
+
Mi as useMediaState,
|
|
2364
|
+
Ni as useMediaStore
|
|
2294
2365
|
};
|