@instructure/studio-player 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/en-BlhWGmnp.js +101 -0
- package/dist/kl-BRha3TKE.js +101 -0
- package/dist/studio-player.es.js +142 -138
- package/package.json +1 -1
- package/dist/en-DRnzP2ly.js +0 -91
- package/dist/kl-DAr1HilW.js +0 -91
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
const t = "Action", o = "Annotations", n = "Auto ({{quality}})p", e = "Back", s = "Font Size", c = "Caption Language: {{language}}", E = "Captions", A = "Close", S = "Comments", a = "Continue", T = "Decrease Playback Speed", C = "Decrease Volume by {{percent}}%", O = "Down Arrow", _ = "Enter Fullscreen", P = "Exit Fullscreen", N = "Increase Playback Speed", R = "Increase Volume by {{percent}}%", r = "Invert Colors", L = "Jump to specific percentage (1-10%, 2-20%, etc)", l = "Jump to Start", u = "Keyboard Shortcuts", U = "Language", p = "Left Arrow", I = "Muted", g = "Next Caption Language", i = "Off", G = "On Top", d = "Playback Speed", D = "Playback Speed: {{speed}}x", M = "Previous Caption Language", F = "Quality", y = "Reset Playback Speed", K = "Right Arrow", b = "Seek backward: {{seconds}} seconds", k = "Seek forward: {{seconds}} seconds", B = "Settings", Y = "Shortcut", V = "Space", f = "Toggle Captions", m = "Toggle Muted", w = "Toggle Play/Pause", W = "Up Arrow", x = "Volume", J = "Exit fullscreen", h = "Fullscreen", H = "Play", X = "Pause", v = "Mute", Q = {
|
|
2
|
+
ACTION: t,
|
|
3
|
+
ANNOTATIONS: o,
|
|
4
|
+
AUTO: n,
|
|
5
|
+
BACK: e,
|
|
6
|
+
CAPTION_FONT_SIZE: s,
|
|
7
|
+
CAPTION_LANGUAGE: c,
|
|
8
|
+
CAPTIONS: E,
|
|
9
|
+
CLOSE: A,
|
|
10
|
+
COMMENTS: S,
|
|
11
|
+
CONTINUE: a,
|
|
12
|
+
DECREASE_PLAYBACK_SPEED: T,
|
|
13
|
+
DECREASE_VOLUME: C,
|
|
14
|
+
DOWN_ARROW: O,
|
|
15
|
+
ENTER_FULLSCREEN: _,
|
|
16
|
+
EXIT_FULLSCREEN: P,
|
|
17
|
+
INCREASE_PLAYBACK_SPEED: N,
|
|
18
|
+
INCREASE_VOLUME: R,
|
|
19
|
+
INVERT_COLORS: r,
|
|
20
|
+
JUMP_TO_PERCENTAGE: L,
|
|
21
|
+
JUMP_TO_START: l,
|
|
22
|
+
KEYBOARD_SHORTCUTS: u,
|
|
23
|
+
LANGUAGE: U,
|
|
24
|
+
LEFT_ARROW: p,
|
|
25
|
+
MUTED: I,
|
|
26
|
+
NEXT_CAPTION_LANGUAGE: g,
|
|
27
|
+
OFF: i,
|
|
28
|
+
ON_TOP: G,
|
|
29
|
+
PLAYBACK_SPEED: d,
|
|
30
|
+
PLAYBACK_SPEED_MESSAGE: D,
|
|
31
|
+
PREVIOUS_CAPTION_LANGUAGE: M,
|
|
32
|
+
QUALITY: F,
|
|
33
|
+
RESET_PLAYBACK_SPEED: y,
|
|
34
|
+
RIGHT_ARROW: K,
|
|
35
|
+
SEEK_BACKWARD: b,
|
|
36
|
+
SEEK_FORWARD: k,
|
|
37
|
+
SETTINGS: B,
|
|
38
|
+
SHORTCUT: Y,
|
|
39
|
+
SPACE: V,
|
|
40
|
+
TOGGLE_CAPTIONS: f,
|
|
41
|
+
TOGGLE_MUTED: m,
|
|
42
|
+
TOGGLE_PLAY_PAUSE: w,
|
|
43
|
+
UP_ARROW: W,
|
|
44
|
+
VOLUME: x,
|
|
45
|
+
EXIT_FSCREEN: J,
|
|
46
|
+
FSCREEN: h,
|
|
47
|
+
PLAY: H,
|
|
48
|
+
PAUSE: X,
|
|
49
|
+
MUTE: v
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
t as ACTION,
|
|
53
|
+
o as ANNOTATIONS,
|
|
54
|
+
n as AUTO,
|
|
55
|
+
e as BACK,
|
|
56
|
+
E as CAPTIONS,
|
|
57
|
+
s as CAPTION_FONT_SIZE,
|
|
58
|
+
c as CAPTION_LANGUAGE,
|
|
59
|
+
A as CLOSE,
|
|
60
|
+
S as COMMENTS,
|
|
61
|
+
a as CONTINUE,
|
|
62
|
+
T as DECREASE_PLAYBACK_SPEED,
|
|
63
|
+
C as DECREASE_VOLUME,
|
|
64
|
+
O as DOWN_ARROW,
|
|
65
|
+
_ as ENTER_FULLSCREEN,
|
|
66
|
+
J as EXIT_FSCREEN,
|
|
67
|
+
P as EXIT_FULLSCREEN,
|
|
68
|
+
h as FSCREEN,
|
|
69
|
+
N as INCREASE_PLAYBACK_SPEED,
|
|
70
|
+
R as INCREASE_VOLUME,
|
|
71
|
+
r as INVERT_COLORS,
|
|
72
|
+
L as JUMP_TO_PERCENTAGE,
|
|
73
|
+
l as JUMP_TO_START,
|
|
74
|
+
u as KEYBOARD_SHORTCUTS,
|
|
75
|
+
U as LANGUAGE,
|
|
76
|
+
p as LEFT_ARROW,
|
|
77
|
+
v as MUTE,
|
|
78
|
+
I as MUTED,
|
|
79
|
+
g as NEXT_CAPTION_LANGUAGE,
|
|
80
|
+
i as OFF,
|
|
81
|
+
G as ON_TOP,
|
|
82
|
+
X as PAUSE,
|
|
83
|
+
H as PLAY,
|
|
84
|
+
d as PLAYBACK_SPEED,
|
|
85
|
+
D as PLAYBACK_SPEED_MESSAGE,
|
|
86
|
+
M as PREVIOUS_CAPTION_LANGUAGE,
|
|
87
|
+
F as QUALITY,
|
|
88
|
+
y as RESET_PLAYBACK_SPEED,
|
|
89
|
+
K as RIGHT_ARROW,
|
|
90
|
+
b as SEEK_BACKWARD,
|
|
91
|
+
k as SEEK_FORWARD,
|
|
92
|
+
B as SETTINGS,
|
|
93
|
+
Y as SHORTCUT,
|
|
94
|
+
V as SPACE,
|
|
95
|
+
f as TOGGLE_CAPTIONS,
|
|
96
|
+
m as TOGGLE_MUTED,
|
|
97
|
+
w as TOGGLE_PLAY_PAUSE,
|
|
98
|
+
W as UP_ARROW,
|
|
99
|
+
x as VOLUME,
|
|
100
|
+
Q as default
|
|
101
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
const o = "qeq", E = "ghItlh", n = "jIghoS ({{quality}})p", I = "qa' yIbuS", t = "lo'ta'", c = "yIngwIj Hol: {{language}}", s = "yIngwIj", A = "chaw'", S = "qechmey", T = "taH", _ = "yIjDu' qachDaq jIqeq", O = "tInwIj qachDaq HablI' veS", e = "SoQmey 'ugh", N = "nIvbogh jIpIj", a = "jIqeqpuma' jIpIj", C = "yIjDu' qachDaq Qab", R = "tInwIj qachDaq Qab", h = "lujmuS mewbeH", q = "jItuvHa'wI' (1-10%, 2-20%, ghob)", u = "yItlhutlhmeH jIjlo'", P = "pu'chuqHom nIHneHmey", D = "Hol", L = "chay' SoQ", j = "batlh", y = "qel yIngwIj Hol", U = "Hoch", l = "QI'ta' qorDaq", H = "yIjDu' veS", m = "yIjDu' veS: {{speed}}x", G = "yIngwIj Hol tInmoH", g = "HIQ", b = "yIjDu' qachDaq reset", w = "SoQmey 'ugh", Q = "Hovmey yIbuS: {{seconds}}", M = "yIbuS: {{seconds}}", p = "nIvbogh", K = "pu'chuqHom", F = "mIw", Y = "yIngwIj lo'ta' nIbuS", v = "mIw tImlaw'", B = "qeq je muSmeH nIvbogh", W = "QoQ SoQ", V = "qur", d = "mey' 'echpu'DIch", r = "enechpu'DIch", X = "yItlh", x = "Qo'noS", J = "ghll", f = {
|
|
2
|
+
ACTION: o,
|
|
3
|
+
ANNOTATIONS: E,
|
|
4
|
+
AUTO: n,
|
|
5
|
+
BACK: I,
|
|
6
|
+
CAPTION_FONT_SIZE: t,
|
|
7
|
+
CAPTION_LANGUAGE: c,
|
|
8
|
+
CAPTIONS: s,
|
|
9
|
+
CLOSE: A,
|
|
10
|
+
COMMENTS: S,
|
|
11
|
+
CONTINUE: T,
|
|
12
|
+
DECREASE_PLAYBACK_SPEED: _,
|
|
13
|
+
DECREASE_VOLUME: O,
|
|
14
|
+
DOWN_ARROW: e,
|
|
15
|
+
ENTER_FULLSCREEN: N,
|
|
16
|
+
EXIT_FULLSCREEN: a,
|
|
17
|
+
INCREASE_PLAYBACK_SPEED: C,
|
|
18
|
+
INCREASE_VOLUME: R,
|
|
19
|
+
INVERT_COLORS: h,
|
|
20
|
+
JUMP_TO_PERCENTAGE: q,
|
|
21
|
+
JUMP_TO_START: u,
|
|
22
|
+
KEYBOARD_SHORTCUTS: P,
|
|
23
|
+
LANGUAGE: D,
|
|
24
|
+
LEFT_ARROW: L,
|
|
25
|
+
MUTED: j,
|
|
26
|
+
NEXT_CAPTION_LANGUAGE: y,
|
|
27
|
+
OFF: U,
|
|
28
|
+
ON_TOP: l,
|
|
29
|
+
PLAYBACK_SPEED: H,
|
|
30
|
+
PLAYBACK_SPEED_MESSAGE: m,
|
|
31
|
+
PREVIOUS_CAPTION_LANGUAGE: G,
|
|
32
|
+
QUALITY: g,
|
|
33
|
+
RESET_PLAYBACK_SPEED: b,
|
|
34
|
+
RIGHT_ARROW: w,
|
|
35
|
+
SEEK_BACKWARD: Q,
|
|
36
|
+
SEEK_FORWARD: M,
|
|
37
|
+
SETTINGS: p,
|
|
38
|
+
SHORTCUT: K,
|
|
39
|
+
SPACE: F,
|
|
40
|
+
TOGGLE_CAPTIONS: Y,
|
|
41
|
+
TOGGLE_MUTED: v,
|
|
42
|
+
TOGGLE_PLAY_PAUSE: B,
|
|
43
|
+
UP_ARROW: W,
|
|
44
|
+
VOLUME: V,
|
|
45
|
+
EXIT_FSCREEN: d,
|
|
46
|
+
FSCREEN: r,
|
|
47
|
+
PLAY: X,
|
|
48
|
+
PAUSE: x,
|
|
49
|
+
MUTE: J
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
o as ACTION,
|
|
53
|
+
E as ANNOTATIONS,
|
|
54
|
+
n as AUTO,
|
|
55
|
+
I as BACK,
|
|
56
|
+
s as CAPTIONS,
|
|
57
|
+
t as CAPTION_FONT_SIZE,
|
|
58
|
+
c as CAPTION_LANGUAGE,
|
|
59
|
+
A as CLOSE,
|
|
60
|
+
S as COMMENTS,
|
|
61
|
+
T as CONTINUE,
|
|
62
|
+
_ as DECREASE_PLAYBACK_SPEED,
|
|
63
|
+
O as DECREASE_VOLUME,
|
|
64
|
+
e as DOWN_ARROW,
|
|
65
|
+
N as ENTER_FULLSCREEN,
|
|
66
|
+
d as EXIT_FSCREEN,
|
|
67
|
+
a as EXIT_FULLSCREEN,
|
|
68
|
+
r as FSCREEN,
|
|
69
|
+
C as INCREASE_PLAYBACK_SPEED,
|
|
70
|
+
R as INCREASE_VOLUME,
|
|
71
|
+
h as INVERT_COLORS,
|
|
72
|
+
q as JUMP_TO_PERCENTAGE,
|
|
73
|
+
u as JUMP_TO_START,
|
|
74
|
+
P as KEYBOARD_SHORTCUTS,
|
|
75
|
+
D as LANGUAGE,
|
|
76
|
+
L as LEFT_ARROW,
|
|
77
|
+
J as MUTE,
|
|
78
|
+
j as MUTED,
|
|
79
|
+
y as NEXT_CAPTION_LANGUAGE,
|
|
80
|
+
U as OFF,
|
|
81
|
+
l as ON_TOP,
|
|
82
|
+
x as PAUSE,
|
|
83
|
+
X as PLAY,
|
|
84
|
+
H as PLAYBACK_SPEED,
|
|
85
|
+
m as PLAYBACK_SPEED_MESSAGE,
|
|
86
|
+
G as PREVIOUS_CAPTION_LANGUAGE,
|
|
87
|
+
g as QUALITY,
|
|
88
|
+
b as RESET_PLAYBACK_SPEED,
|
|
89
|
+
w as RIGHT_ARROW,
|
|
90
|
+
Q as SEEK_BACKWARD,
|
|
91
|
+
M as SEEK_FORWARD,
|
|
92
|
+
p as SETTINGS,
|
|
93
|
+
K as SHORTCUT,
|
|
94
|
+
F as SPACE,
|
|
95
|
+
Y as TOGGLE_CAPTIONS,
|
|
96
|
+
v as TOGGLE_MUTED,
|
|
97
|
+
B as TOGGLE_PLAY_PAUSE,
|
|
98
|
+
W as UP_ARROW,
|
|
99
|
+
V as VOLUME,
|
|
100
|
+
f as default
|
|
101
|
+
};
|
package/dist/studio-player.es.js
CHANGED
|
@@ -2,12 +2,12 @@ import './index-DAULLpyh.css';var Ke = Object.defineProperty;
|
|
|
2
2
|
var De = (e, n, o) => n in e ? Ke(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
3
|
var N = (e, n, o) => De(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as s, Fragment as ee } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as te, useContext as
|
|
6
|
-
import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as ze, Track as Ue, Captions as je, usePlaybackRateOptions as qe, useCaptionOptions as We, useVideoQualityOptions as Ge, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Qe, Poster as Ye, Time as re, TimeSlider as A, MuteButton as
|
|
7
|
-
import { initReactI18next as tt, useTranslation as
|
|
5
|
+
import { createContext as te, useContext as x, useState as M, useCallback as p, useEffect as R, useMemo as Z, useRef as ve } from "react";
|
|
6
|
+
import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as ze, Track as Ue, Captions as je, usePlaybackRateOptions as qe, useCaptionOptions as We, useVideoQualityOptions as Ge, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Qe, Poster as Ye, Time as re, TimeSlider as A, MuteButton as Xe, VolumeSlider as z, MediaPlayer as Je, MediaProvider as et } from "@vidstack/react";
|
|
7
|
+
import { initReactI18next as tt, useTranslation as v } from "react-i18next";
|
|
8
8
|
import nt from "i18next";
|
|
9
9
|
import ot from "i18next-resources-to-backend";
|
|
10
|
-
import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as
|
|
10
|
+
import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as Le, useInteractions as xe, FloatingFocusManager as it, FloatingArrow as Pe, shift as at, offset as st } from "@floating-ui/react";
|
|
11
11
|
const ct = (e, n, o) => {
|
|
12
12
|
const i = e[n];
|
|
13
13
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((a, c) => {
|
|
@@ -23,7 +23,7 @@ const ct = (e, n, o) => {
|
|
|
23
23
|
};
|
|
24
24
|
nt.use(tt).use(
|
|
25
25
|
ot(
|
|
26
|
-
(e) => ct(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-
|
|
26
|
+
(e) => ct(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-BlhWGmnp.js"), "./locales/kl.json": () => import("./kl-BRha3TKE.js") }), `./locales/${e}.json`, 3)
|
|
27
27
|
)
|
|
28
28
|
).init({
|
|
29
29
|
fallbackLng: "en",
|
|
@@ -41,8 +41,8 @@ function lt({
|
|
|
41
41
|
}) {
|
|
42
42
|
return /* @__PURE__ */ t(Ne.Provider, { value: n, children: e });
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
44
|
+
function C() {
|
|
45
|
+
const e = x(Ne);
|
|
46
46
|
if (!e)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"useStudioPlayerContext must be used within a StudioPlayerContextProvider"
|
|
@@ -61,11 +61,11 @@ function rt({
|
|
|
61
61
|
onInteractivePinClick: u,
|
|
62
62
|
interactiveMenuElements: m,
|
|
63
63
|
darkMode: h,
|
|
64
|
-
children:
|
|
64
|
+
children: g,
|
|
65
65
|
forceComments: y,
|
|
66
66
|
disableCaptionSettings: k
|
|
67
67
|
}) {
|
|
68
|
-
const
|
|
68
|
+
const b = {
|
|
69
69
|
hideFullScreen: e,
|
|
70
70
|
comments: n,
|
|
71
71
|
annotations: o,
|
|
@@ -82,10 +82,10 @@ function rt({
|
|
|
82
82
|
forceComments: y,
|
|
83
83
|
disableCaptionSettings: k
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */ t(Me.Provider, { value:
|
|
85
|
+
return /* @__PURE__ */ t(Me.Provider, { value: b, children: g });
|
|
86
86
|
}
|
|
87
87
|
function S() {
|
|
88
|
-
const e =
|
|
88
|
+
const e = x(Me);
|
|
89
89
|
if (!e)
|
|
90
90
|
throw new Error(
|
|
91
91
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
@@ -103,7 +103,7 @@ const ut = "_annotation-overlay_1kxzn_1", dt = {
|
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
function ht({ annotations: e }) {
|
|
106
|
-
const n = q(), o =
|
|
106
|
+
const n = q(), o = C(), i = S(), [a, c] = M(
|
|
107
107
|
null
|
|
108
108
|
), l = p(
|
|
109
109
|
(m) => {
|
|
@@ -113,17 +113,17 @@ function ht({ annotations: e }) {
|
|
|
113
113
|
), u = () => {
|
|
114
114
|
i.interactive || (n == null || n.play(), o.enableInteractions()), c(null);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
116
|
+
return R(() => {
|
|
117
117
|
if (!n)
|
|
118
118
|
return;
|
|
119
119
|
const m = [];
|
|
120
120
|
for (const h of e) {
|
|
121
|
-
const
|
|
122
|
-
n.addEventListener("time-update",
|
|
121
|
+
const g = mt(h, l);
|
|
122
|
+
n.addEventListener("time-update", g), m.push(g);
|
|
123
123
|
}
|
|
124
124
|
if (a) {
|
|
125
125
|
const h = e.find(
|
|
126
|
-
(
|
|
126
|
+
(g) => g.id === a.id
|
|
127
127
|
);
|
|
128
128
|
h ? c(h) : (c(null), o.enableInteractions());
|
|
129
129
|
}
|
|
@@ -165,7 +165,7 @@ const Te = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0
|
|
|
165
165
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
166
166
|
] });
|
|
167
167
|
function bt() {
|
|
168
|
-
const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && ze(n), a =
|
|
168
|
+
const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && ze(n), a = C(), c = p(
|
|
169
169
|
(l) => {
|
|
170
170
|
e.toggleCaptions(l.nativeEvent);
|
|
171
171
|
},
|
|
@@ -178,6 +178,7 @@ function bt() {
|
|
|
178
178
|
className: "controls-button",
|
|
179
179
|
onClick: c,
|
|
180
180
|
"aria-label": "Captions",
|
|
181
|
+
"aria-pressed": i ? "true" : "false",
|
|
181
182
|
tabIndex: a.state.interactionsDisabled ? -1 : 0,
|
|
182
183
|
children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Te, { className: "controls-button-icon" })
|
|
183
184
|
}
|
|
@@ -187,7 +188,7 @@ const wt = "_captions_13epz_1", kt = {
|
|
|
187
188
|
captions: wt
|
|
188
189
|
};
|
|
189
190
|
function yt({ captions: e }) {
|
|
190
|
-
const n = _("hasCaptions"), o =
|
|
191
|
+
const n = _("hasCaptions"), o = C();
|
|
191
192
|
return /* @__PURE__ */ s(ee, { children: [
|
|
192
193
|
e.map((i) => /* @__PURE__ */ t(
|
|
193
194
|
Ue,
|
|
@@ -215,7 +216,7 @@ function yt({ captions: e }) {
|
|
|
215
216
|
) : null
|
|
216
217
|
] });
|
|
217
218
|
}
|
|
218
|
-
const B = [0.5, 0.75, 1, 1.25, 1.5, 2],
|
|
219
|
+
const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, xt = (e) => {
|
|
219
220
|
const [, n] = M({});
|
|
220
221
|
return Z(() => {
|
|
221
222
|
let o = [];
|
|
@@ -241,8 +242,8 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
|
|
|
241
242
|
c >= e.timestamp && c < e.timestamp + n && !i && (o.add(e), i = !0), (c < e.timestamp || c >= e.timestamp + n) && i && (o.remove(e), i = !1);
|
|
242
243
|
};
|
|
243
244
|
}, Nt = (e, n = 5) => {
|
|
244
|
-
const o = q(), i =
|
|
245
|
-
return
|
|
245
|
+
const o = q(), i = xt(n);
|
|
246
|
+
return R(() => {
|
|
246
247
|
if (!o)
|
|
247
248
|
return;
|
|
248
249
|
const a = [];
|
|
@@ -260,7 +261,7 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
|
|
|
260
261
|
i.clear();
|
|
261
262
|
};
|
|
262
263
|
}, [o, i, e]), i;
|
|
263
|
-
}, Mt = "_comments-overlay_2woxe_1", Tt = "_comments-container_2woxe_9", It = "_comment_2woxe_1", St = "_comment-text_2woxe_45", Ht = "_comment-author-avatar_2woxe_68", Vt = "_comment-author-name_2woxe_87",
|
|
264
|
+
}, Mt = "_comments-overlay_2woxe_1", Tt = "_comments-container_2woxe_9", It = "_comment_2woxe_1", St = "_comment-text_2woxe_45", Ht = "_comment-author-avatar_2woxe_68", Vt = "_comment-author-name_2woxe_87", E = {
|
|
264
265
|
"comments-overlay": "_comments-overlay_2woxe_1",
|
|
265
266
|
commentsOverlay: Mt,
|
|
266
267
|
"comments-container": "_comments-container_2woxe_9",
|
|
@@ -274,30 +275,30 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
|
|
|
274
275
|
commentAuthorName: Vt
|
|
275
276
|
};
|
|
276
277
|
function Bt({ comment: e }) {
|
|
277
|
-
return /* @__PURE__ */ s("div", { className:
|
|
278
|
+
return /* @__PURE__ */ s("div", { className: E.comment, onClick: e.onClick, children: [
|
|
278
279
|
/* @__PURE__ */ t(
|
|
279
280
|
"img",
|
|
280
281
|
{
|
|
281
|
-
className:
|
|
282
|
+
className: E.commentAuthorAvatar,
|
|
282
283
|
src: e.user.avatar,
|
|
283
284
|
alt: e.user.name
|
|
284
285
|
}
|
|
285
286
|
),
|
|
286
|
-
/* @__PURE__ */ t("span", { className:
|
|
287
|
-
/* @__PURE__ */ t("span", { className:
|
|
287
|
+
/* @__PURE__ */ t("span", { className: E.commentText, children: e.text }),
|
|
288
|
+
/* @__PURE__ */ t("span", { className: E.commentAuthorName, children: e.user.name })
|
|
288
289
|
] });
|
|
289
290
|
}
|
|
290
|
-
const
|
|
291
|
-
function
|
|
292
|
-
const n =
|
|
291
|
+
const Et = 5;
|
|
292
|
+
function Rt({ comments: e }) {
|
|
293
|
+
const n = C(), o = Nt(e, Et), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
|
|
293
294
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
294
295
|
"div",
|
|
295
296
|
{
|
|
296
|
-
className:
|
|
297
|
+
className: E.commentsOverlay,
|
|
297
298
|
style: {
|
|
298
299
|
flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
|
|
299
300
|
},
|
|
300
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
301
|
+
children: /* @__PURE__ */ t("div", { className: E.commentsContainer, children: i ? a.slice(-4) : a })
|
|
301
302
|
}
|
|
302
303
|
) : null;
|
|
303
304
|
}
|
|
@@ -319,7 +320,7 @@ function Dt({
|
|
|
319
320
|
showCaptionsButton: o = !0
|
|
320
321
|
}) {
|
|
321
322
|
const i = q();
|
|
322
|
-
return
|
|
323
|
+
return R(() => {
|
|
323
324
|
i && (i.remoteControl.pauseControls(), n && (n.current = i));
|
|
324
325
|
}, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: V.root, children: [
|
|
325
326
|
/* @__PURE__ */ t(he, { className: V.normalTimeline }),
|
|
@@ -331,7 +332,7 @@ function Dt({
|
|
|
331
332
|
/* @__PURE__ */ t(he, { className: V.compactTimeline }),
|
|
332
333
|
/* @__PURE__ */ s("div", { className: V.rightControls, children: [
|
|
333
334
|
o && /* @__PURE__ */ t(bt, {}),
|
|
334
|
-
/* @__PURE__ */ t(
|
|
335
|
+
/* @__PURE__ */ t(En, {}),
|
|
335
336
|
/* @__PURE__ */ t(Yn, {})
|
|
336
337
|
] })
|
|
337
338
|
] });
|
|
@@ -356,7 +357,7 @@ function $({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
|
356
357
|
}
|
|
357
358
|
const Gt = (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" }) });
|
|
358
359
|
function Qt() {
|
|
359
|
-
const e =
|
|
360
|
+
const e = x(P), n = _("playbackRate"), { t: o } = v(), i = p(() => {
|
|
360
361
|
e && e.setPage("speed");
|
|
361
362
|
}, [e]);
|
|
362
363
|
return e ? /* @__PURE__ */ t(
|
|
@@ -370,7 +371,7 @@ function Qt() {
|
|
|
370
371
|
) : null;
|
|
371
372
|
}
|
|
372
373
|
function Yt() {
|
|
373
|
-
const e =
|
|
374
|
+
const e = x(P), n = _("hasCaptions"), o = _("textTrack"), { t: i } = v(), a = p(() => {
|
|
374
375
|
e && e.setPage("captions");
|
|
375
376
|
}, [e]);
|
|
376
377
|
return e && n ? /* @__PURE__ */ t(
|
|
@@ -383,7 +384,7 @@ function Yt() {
|
|
|
383
384
|
}
|
|
384
385
|
) : null;
|
|
385
386
|
}
|
|
386
|
-
const
|
|
387
|
+
const Xt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
387
388
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
388
389
|
/* @__PURE__ */ s("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
389
390
|
/* @__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" }),
|
|
@@ -391,8 +392,8 @@ const Jt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
|
|
|
391
392
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
|
|
392
393
|
] })
|
|
393
394
|
] });
|
|
394
|
-
function
|
|
395
|
-
const e =
|
|
395
|
+
function Jt() {
|
|
396
|
+
const e = x(P), n = _("autoQuality"), o = _("quality"), { t: i } = v(), a = p(() => {
|
|
396
397
|
e && e.setPage("quality");
|
|
397
398
|
}, [e]);
|
|
398
399
|
return e && o ? /* @__PURE__ */ t(
|
|
@@ -401,7 +402,7 @@ function Xt() {
|
|
|
401
402
|
label: i("QUALITY"),
|
|
402
403
|
hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
403
404
|
onClick: a,
|
|
404
|
-
Icon:
|
|
405
|
+
Icon: Xt
|
|
405
406
|
}
|
|
406
407
|
) : null;
|
|
407
408
|
}
|
|
@@ -450,7 +451,7 @@ function ne({
|
|
|
450
451
|
}
|
|
451
452
|
const 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: "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" }) });
|
|
452
453
|
function un() {
|
|
453
|
-
const { t: e } =
|
|
454
|
+
const { t: e } = v(), n = S(), o = C();
|
|
454
455
|
return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
|
|
455
456
|
ne,
|
|
456
457
|
{
|
|
@@ -462,7 +463,7 @@ function un() {
|
|
|
462
463
|
) : null;
|
|
463
464
|
}
|
|
464
465
|
function H(e) {
|
|
465
|
-
|
|
466
|
+
R(() => {
|
|
466
467
|
const n = (o) => {
|
|
467
468
|
o.key === "Escape" && (e == null || e());
|
|
468
469
|
};
|
|
@@ -476,12 +477,12 @@ const dn = "_main-menu_7h96l_1", mn = {
|
|
|
476
477
|
mainMenu: dn
|
|
477
478
|
};
|
|
478
479
|
function hn() {
|
|
479
|
-
const e =
|
|
480
|
+
const e = x(P);
|
|
480
481
|
return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: mn.mainMenu, children: [
|
|
481
482
|
/* @__PURE__ */ t(Qt, {}),
|
|
482
483
|
/* @__PURE__ */ t(Yt, {}),
|
|
483
484
|
/* @__PURE__ */ t(un, {}),
|
|
484
|
-
/* @__PURE__ */ t(
|
|
485
|
+
/* @__PURE__ */ t(Jt, {})
|
|
485
486
|
] });
|
|
486
487
|
}
|
|
487
488
|
const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), pn = "_menu-container_1bjr3_1", _n = "_menu-options_1bjr3_6", fn = "_menu-heading_1bjr3_11", vn = "_check-icon_1bjr3_27", Cn = "_menu-item-label_1bjr3_33", gn = "_menu-item_1bjr3_33", bn = "_menu-back-button_1bjr3_66", r = {
|
|
@@ -501,10 +502,10 @@ const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0
|
|
|
501
502
|
menuBackButton: bn
|
|
502
503
|
};
|
|
503
504
|
function wn() {
|
|
504
|
-
const e =
|
|
505
|
+
const e = x(P), n = qe({
|
|
505
506
|
rates: B,
|
|
506
507
|
normalLabel: "1x"
|
|
507
|
-
}), { t: o } =
|
|
508
|
+
}), { t: o } = v();
|
|
508
509
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
509
510
|
/* @__PURE__ */ s(
|
|
510
511
|
"button",
|
|
@@ -539,7 +540,7 @@ function wn() {
|
|
|
539
540
|
] }) : null;
|
|
540
541
|
}
|
|
541
542
|
function kn() {
|
|
542
|
-
const e =
|
|
543
|
+
const e = x(P), n = _("textTrack"), { t: o } = v(), i = p(() => {
|
|
543
544
|
e && e.setPage("captionLanguage");
|
|
544
545
|
}, [e]);
|
|
545
546
|
return e ? /* @__PURE__ */ t(
|
|
@@ -552,7 +553,7 @@ function kn() {
|
|
|
552
553
|
) : null;
|
|
553
554
|
}
|
|
554
555
|
function yn() {
|
|
555
|
-
const { t: e } =
|
|
556
|
+
const { t: e } = v(), n = C(), o = x(P), i = p(() => {
|
|
556
557
|
o && o.setPage("captionFontSize");
|
|
557
558
|
}, [o]);
|
|
558
559
|
return o ? /* @__PURE__ */ t(
|
|
@@ -564,8 +565,8 @@ function yn() {
|
|
|
564
565
|
}
|
|
565
566
|
) : null;
|
|
566
567
|
}
|
|
567
|
-
function
|
|
568
|
-
const { t: e } =
|
|
568
|
+
function Ln() {
|
|
569
|
+
const { t: e } = v(), n = C();
|
|
569
570
|
return /* @__PURE__ */ t(
|
|
570
571
|
ne,
|
|
571
572
|
{
|
|
@@ -575,8 +576,8 @@ function xn() {
|
|
|
575
576
|
}
|
|
576
577
|
);
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
-
const { t: e } =
|
|
579
|
+
function xn() {
|
|
580
|
+
const { t: e } = v(), n = C();
|
|
580
581
|
return /* @__PURE__ */ t(
|
|
581
582
|
ne,
|
|
582
583
|
{
|
|
@@ -587,7 +588,7 @@ function Ln() {
|
|
|
587
588
|
);
|
|
588
589
|
}
|
|
589
590
|
function Pn() {
|
|
590
|
-
const e =
|
|
591
|
+
const e = x(P), { t: n } = v(), { disableCaptionSettings: o } = C();
|
|
591
592
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
592
593
|
/* @__PURE__ */ s(
|
|
593
594
|
"button",
|
|
@@ -604,12 +605,12 @@ function Pn() {
|
|
|
604
605
|
/* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
|
|
605
606
|
!o && /* @__PURE__ */ t(kn, {}),
|
|
606
607
|
/* @__PURE__ */ t(yn, {}),
|
|
607
|
-
/* @__PURE__ */ t(
|
|
608
|
-
/* @__PURE__ */ t(
|
|
608
|
+
/* @__PURE__ */ t(Ln, {}),
|
|
609
|
+
/* @__PURE__ */ t(xn, {})
|
|
609
610
|
] }) : null;
|
|
610
611
|
}
|
|
611
612
|
function Nn() {
|
|
612
|
-
const e =
|
|
613
|
+
const e = x(P), n = We(), { t: o } = v();
|
|
613
614
|
return H(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
614
615
|
/* @__PURE__ */ s(
|
|
615
616
|
"button",
|
|
@@ -644,7 +645,7 @@ function Nn() {
|
|
|
644
645
|
] }) : null;
|
|
645
646
|
}
|
|
646
647
|
function Mn() {
|
|
647
|
-
const e =
|
|
648
|
+
const e = C(), n = x(P), { t: o } = v();
|
|
648
649
|
return H(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
649
650
|
/* @__PURE__ */ s(
|
|
650
651
|
"button",
|
|
@@ -659,7 +660,7 @@ function Mn() {
|
|
|
659
660
|
}
|
|
660
661
|
),
|
|
661
662
|
/* @__PURE__ */ t("strong", { className: r.menuHeading, children: o("CAPTIONS") }),
|
|
662
|
-
/* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children:
|
|
663
|
+
/* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: Lt.map((i) => /* @__PURE__ */ s(
|
|
663
664
|
"button",
|
|
664
665
|
{
|
|
665
666
|
type: "button",
|
|
@@ -682,7 +683,7 @@ function Mn() {
|
|
|
682
683
|
] }) : null;
|
|
683
684
|
}
|
|
684
685
|
function Tn() {
|
|
685
|
-
const e =
|
|
686
|
+
const e = x(P), n = Ge({ sort: "descending" }), o = _("autoQuality"), { t: i } = v();
|
|
686
687
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
687
688
|
/* @__PURE__ */ s(
|
|
688
689
|
"button",
|
|
@@ -733,7 +734,7 @@ function Sn() {
|
|
|
733
734
|
n("captions");
|
|
734
735
|
}, []), u = p(() => {
|
|
735
736
|
n("main");
|
|
736
|
-
}, []), m = Z(() => In[e], [e]), h = ve(null), { refs:
|
|
737
|
+
}, []), m = Z(() => In[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
|
|
737
738
|
open: o,
|
|
738
739
|
onOpenChange: (T) => {
|
|
739
740
|
i(T), u();
|
|
@@ -746,7 +747,7 @@ function Sn() {
|
|
|
746
747
|
element: h
|
|
747
748
|
})
|
|
748
749
|
]
|
|
749
|
-
}),
|
|
750
|
+
}), b = Le(k, { escapeKey: !1 }), { getReferenceProps: f, getFloatingProps: w } = xe([b]);
|
|
750
751
|
return {
|
|
751
752
|
Page: m,
|
|
752
753
|
open: o,
|
|
@@ -755,7 +756,7 @@ function Sn() {
|
|
|
755
756
|
backToCaptions: l,
|
|
756
757
|
backToMain: u,
|
|
757
758
|
arrowRef: h,
|
|
758
|
-
refs:
|
|
759
|
+
refs: g,
|
|
759
760
|
floatingStyles: y,
|
|
760
761
|
context: k,
|
|
761
762
|
getReferenceProps: f,
|
|
@@ -767,7 +768,7 @@ const Hn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
767
768
|
settingsMenu: Vn,
|
|
768
769
|
arrow: Bn
|
|
769
770
|
};
|
|
770
|
-
function
|
|
771
|
+
function En() {
|
|
771
772
|
const {
|
|
772
773
|
Page: e,
|
|
773
774
|
arrowRef: n,
|
|
@@ -779,9 +780,9 @@ function Rn() {
|
|
|
779
780
|
getReferenceProps: u,
|
|
780
781
|
open: m,
|
|
781
782
|
refs: h,
|
|
782
|
-
setPage:
|
|
783
|
+
setPage: g,
|
|
783
784
|
toggle: y
|
|
784
|
-
} = Sn(), k =
|
|
785
|
+
} = Sn(), k = C(), { t: b } = v();
|
|
785
786
|
return /* @__PURE__ */ s(ee, { children: [
|
|
786
787
|
/* @__PURE__ */ t(
|
|
787
788
|
"button",
|
|
@@ -789,7 +790,7 @@ function Rn() {
|
|
|
789
790
|
ref: h.setReference,
|
|
790
791
|
type: "button",
|
|
791
792
|
className: "controls-button",
|
|
792
|
-
"aria-label":
|
|
793
|
+
"aria-label": b("SETTINGS"),
|
|
793
794
|
onClick: y,
|
|
794
795
|
"aria-expanded": m,
|
|
795
796
|
tabIndex: k != null && k.state.interactionsDisabled ? -1 : 0,
|
|
@@ -808,7 +809,7 @@ function Rn() {
|
|
|
808
809
|
/* @__PURE__ */ t(
|
|
809
810
|
P.Provider,
|
|
810
811
|
{
|
|
811
|
-
value: { setPage:
|
|
812
|
+
value: { setPage: g, backToMain: i, backToCaptions: o, toggle: y },
|
|
812
813
|
children: /* @__PURE__ */ t(e, {})
|
|
813
814
|
}
|
|
814
815
|
),
|
|
@@ -828,14 +829,14 @@ function Rn() {
|
|
|
828
829
|
function He(e, n = 1e3) {
|
|
829
830
|
return function() {
|
|
830
831
|
const i = _("lastKeyboardAction"), [a, c] = M(!1), l = p(() => c(!1), []);
|
|
831
|
-
return
|
|
832
|
+
return R(() => {
|
|
832
833
|
c(!!i);
|
|
833
834
|
const u = setTimeout(l, n);
|
|
834
835
|
return () => clearTimeout(u);
|
|
835
836
|
}, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
|
|
836
837
|
};
|
|
837
838
|
}
|
|
838
|
-
const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }),
|
|
839
|
+
const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), Rn = (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" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), On = "_feedback-overlay_v4lbu_1", Fn = "_feedback-message_v4lbu_14", Zn = "_feedback-icon_v4lbu_30", $n = "_feedback-icon-animation_v4lbu_1", L = {
|
|
839
840
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
840
841
|
feedbackOverlay: On,
|
|
841
842
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
@@ -850,56 +851,56 @@ function Kn() {
|
|
|
850
851
|
const e = Ce();
|
|
851
852
|
switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
|
|
852
853
|
case "togglePaused":
|
|
853
|
-
return /* @__PURE__ */ t("i", { className:
|
|
854
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(oe, {}) : /* @__PURE__ */ t(ie, {}) });
|
|
854
855
|
case "toggleCaptions":
|
|
855
856
|
case "nextCaptionLanguage":
|
|
856
857
|
case "previousCaptionLanguage":
|
|
857
|
-
return e.hasCaptions ? /* @__PURE__ */ t("i", { className:
|
|
858
|
+
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(Ie, {}) }) : null;
|
|
858
859
|
case "volumeUp":
|
|
859
860
|
case "volumeDown":
|
|
860
861
|
case "toggleMuted":
|
|
861
|
-
return /* @__PURE__ */ t("i", { className:
|
|
862
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ve, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Ee, {}) : /* @__PURE__ */ t(Be, {}) });
|
|
862
863
|
case "seekForward":
|
|
863
864
|
case "seekForward10":
|
|
864
|
-
return /* @__PURE__ */ t("i", { className:
|
|
865
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(Rn, { className: "right" }) });
|
|
865
866
|
case "seekBackward":
|
|
866
867
|
case "seekBackward10":
|
|
867
|
-
return /* @__PURE__ */ t("i", { className:
|
|
868
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "left" }) });
|
|
868
869
|
default:
|
|
869
870
|
return null;
|
|
870
871
|
}
|
|
871
872
|
}
|
|
872
873
|
function Dn() {
|
|
873
874
|
var i;
|
|
874
|
-
const { t: e } =
|
|
875
|
+
const { t: e } = v(), n = Ce();
|
|
875
876
|
switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
|
|
876
877
|
case "toggleCaptions":
|
|
877
878
|
case "nextCaptionLanguage":
|
|
878
879
|
case "previousCaptionLanguage":
|
|
879
|
-
return /* @__PURE__ */ t("div", { className:
|
|
880
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
|
|
880
881
|
case "volumeUp":
|
|
881
882
|
case "volumeDown":
|
|
882
883
|
case "toggleMuted":
|
|
883
|
-
return /* @__PURE__ */ t("div", { className:
|
|
884
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME", { volume: (n.volume * 100).toFixed(0) }) });
|
|
884
885
|
case "increasePlaybackRate":
|
|
885
886
|
case "decreasePlaybackRate":
|
|
886
887
|
case "resetPlaybackRate":
|
|
887
|
-
return /* @__PURE__ */ t("div", { className:
|
|
888
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
|
|
888
889
|
case "seekForward":
|
|
889
|
-
return /* @__PURE__ */ t("div", { className:
|
|
890
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
|
|
890
891
|
case "seekForward10":
|
|
891
|
-
return /* @__PURE__ */ t("div", { className:
|
|
892
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
|
|
892
893
|
case "seekBackward":
|
|
893
|
-
return /* @__PURE__ */ t("div", { className:
|
|
894
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
|
|
894
895
|
case "seekBackward10":
|
|
895
|
-
return /* @__PURE__ */ t("div", { className:
|
|
896
|
+
return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
|
|
896
897
|
default:
|
|
897
898
|
return null;
|
|
898
899
|
}
|
|
899
900
|
}
|
|
900
901
|
const zn = He(Kn, 500), Un = He(Dn, 1e3);
|
|
901
902
|
function jn() {
|
|
902
|
-
return /* @__PURE__ */ s("div", { className:
|
|
903
|
+
return /* @__PURE__ */ s("div", { className: L.feedbackOverlay, children: [
|
|
903
904
|
/* @__PURE__ */ t(zn, {}),
|
|
904
905
|
/* @__PURE__ */ t(Un, {})
|
|
905
906
|
] });
|
|
@@ -909,20 +910,21 @@ const qn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
909
910
|
fullScreenButton: Gn
|
|
910
911
|
};
|
|
911
912
|
function Yn() {
|
|
912
|
-
const e = _("fullscreen"), n = v();
|
|
913
|
-
return
|
|
913
|
+
const e = _("fullscreen"), n = C(), o = S(), { t: i } = v();
|
|
914
|
+
return o.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
914
915
|
ge,
|
|
915
916
|
{
|
|
916
917
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
917
918
|
className: `controls-button ${Qn.fullScreenButton}`,
|
|
919
|
+
"aria-label": i(e ? "EXIT_FSCREEN" : "FSCREEN"),
|
|
918
920
|
children: e ? /* @__PURE__ */ t(Wn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(qn, { className: "controls-button-icon" })
|
|
919
921
|
}
|
|
920
922
|
);
|
|
921
923
|
}
|
|
922
|
-
const
|
|
924
|
+
const Xn = "_gestures-container_1fn3b_1", Jn = "_gesture_1fn3b_1", me = {
|
|
923
925
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
924
|
-
gesturesContainer:
|
|
925
|
-
gesture:
|
|
926
|
+
gesturesContainer: Xn,
|
|
927
|
+
gesture: Jn
|
|
926
928
|
};
|
|
927
929
|
function eo() {
|
|
928
930
|
const e = W(), n = () => {
|
|
@@ -930,7 +932,7 @@ function eo() {
|
|
|
930
932
|
};
|
|
931
933
|
return /* @__PURE__ */ t("div", { className: me.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: me.gesture, onClick: n }) });
|
|
932
934
|
}
|
|
933
|
-
const to = (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" }) }),
|
|
935
|
+
const to = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), no = "_keyboard-shortcuts-overlay_y5kv6_1", oo = "_keyboard-shortcuts-button_y5kv6_67", io = "_close-button_y5kv6_93", J = {
|
|
934
936
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
|
|
935
937
|
keyboardShortcutsOverlay: no,
|
|
936
938
|
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
|
|
@@ -939,7 +941,7 @@ const to = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0
|
|
|
939
941
|
closeButton: io
|
|
940
942
|
};
|
|
941
943
|
function ao({ onClose: e }) {
|
|
942
|
-
const { t: n } =
|
|
944
|
+
const { t: n } = v();
|
|
943
945
|
H(e);
|
|
944
946
|
const o = (i) => {
|
|
945
947
|
i && i.focus();
|
|
@@ -947,7 +949,7 @@ function ao({ onClose: e }) {
|
|
|
947
949
|
return /* @__PURE__ */ s(
|
|
948
950
|
"div",
|
|
949
951
|
{
|
|
950
|
-
className:
|
|
952
|
+
className: J.keyboardShortcutsOverlay,
|
|
951
953
|
tabIndex: 0,
|
|
952
954
|
ref: o,
|
|
953
955
|
children: [
|
|
@@ -957,10 +959,10 @@ function ao({ onClose: e }) {
|
|
|
957
959
|
"button",
|
|
958
960
|
{
|
|
959
961
|
type: "button",
|
|
960
|
-
className:
|
|
962
|
+
className: J.closeButton,
|
|
961
963
|
onClick: e,
|
|
962
964
|
"aria-label": n("CLOSE"),
|
|
963
|
-
children: /* @__PURE__ */ t(
|
|
965
|
+
children: /* @__PURE__ */ t(Re, {})
|
|
964
966
|
}
|
|
965
967
|
)
|
|
966
968
|
] }),
|
|
@@ -1052,12 +1054,12 @@ function ao({ onClose: e }) {
|
|
|
1052
1054
|
);
|
|
1053
1055
|
}
|
|
1054
1056
|
function so() {
|
|
1055
|
-
const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l =
|
|
1057
|
+
const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = C(), u = _("playing"), m = W(), { t: h } = v(), g = p(() => {
|
|
1056
1058
|
n(!0), l.disableInteractions(), u && (c(!0), m.pause());
|
|
1057
1059
|
}, [u, m, l]), y = p(() => {
|
|
1058
1060
|
n(!1), i(!0), l.enableInteractions(), a && (c(!1), m.play());
|
|
1059
1061
|
}, [a, m, l]), k = p(
|
|
1060
|
-
(
|
|
1062
|
+
(b) => o && (b == null ? void 0 : b.focus()),
|
|
1061
1063
|
[o]
|
|
1062
1064
|
);
|
|
1063
1065
|
return e ? /* @__PURE__ */ t(ao, { onClose: y }) : /* @__PURE__ */ t(
|
|
@@ -1066,8 +1068,8 @@ function so() {
|
|
|
1066
1068
|
ref: k,
|
|
1067
1069
|
"aria-label": h("KEYBOARD_SHORTCUTS"),
|
|
1068
1070
|
type: "button",
|
|
1069
|
-
className:
|
|
1070
|
-
onClick:
|
|
1071
|
+
className: J.keyboardShortcutsButton,
|
|
1072
|
+
onClick: g,
|
|
1071
1073
|
tabIndex: l.state.interactionsDisabled ? -1 : 0,
|
|
1072
1074
|
children: /* @__PURE__ */ t(to, {})
|
|
1073
1075
|
}
|
|
@@ -1078,16 +1080,17 @@ const co = "_play-pause-button_kyuc5_1", lo = {
|
|
|
1078
1080
|
playPauseButton: co
|
|
1079
1081
|
};
|
|
1080
1082
|
function ro() {
|
|
1081
|
-
const e = q(), n =
|
|
1083
|
+
const e = q(), n = C(), o = _("paused"), { t: i } = v();
|
|
1082
1084
|
return e ? /* @__PURE__ */ t(
|
|
1083
1085
|
Qe,
|
|
1084
1086
|
{
|
|
1087
|
+
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1085
1088
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1086
1089
|
className: `${lo.playPauseButton} controls-button`,
|
|
1087
|
-
onKeyDown: (
|
|
1088
|
-
|
|
1090
|
+
onKeyDown: (a) => {
|
|
1091
|
+
a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
|
|
1089
1092
|
action: "togglePaused",
|
|
1090
|
-
event:
|
|
1093
|
+
event: a.nativeEvent
|
|
1091
1094
|
}));
|
|
1092
1095
|
},
|
|
1093
1096
|
children: o ? /* @__PURE__ */ t(ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(oe, { className: "controls-button-icon" })
|
|
@@ -1117,7 +1120,7 @@ const po = "_small-layout-overlay_1vli4_1", _o = "_small-layout-button_1vli4_14"
|
|
|
1117
1120
|
};
|
|
1118
1121
|
function bo() {
|
|
1119
1122
|
return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
|
|
1120
|
-
/* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(
|
|
1123
|
+
/* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Re, {}) }),
|
|
1121
1124
|
/* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
|
|
1122
1125
|
/* @__PURE__ */ t(ie, { className: O.smallLayoutIconPlay }),
|
|
1123
1126
|
/* @__PURE__ */ t(oe, { className: O.smallLayoutIconPause })
|
|
@@ -1135,11 +1138,11 @@ function yo() {
|
|
|
1135
1138
|
/* @__PURE__ */ t(re, { type: "duration" })
|
|
1136
1139
|
] });
|
|
1137
1140
|
}
|
|
1138
|
-
const
|
|
1141
|
+
const Lo = "_comment-markers_49pse_1", xo = "_comment-marker_49pse_1", Po = "_timeline-wrapper_49pse_21", No = "_track_49pse_35", Mo = "_thumb_49pse_48", To = "_root_49pse_62", Io = "_track-inner_49pse_92", So = "_progress_49pse_98", Ho = "_track-fill_49pse_104", Vo = "_pins_49pse_121", Bo = "_pin-button_49pse_134", Eo = "_annotation-pin_49pse_154", Ro = "_quiz-pin_49pse_159", Ao = "_annotation-pin-child_49pse_164", Oo = "_quiz-pin-child_49pse_168", Fo = "_interactive-pin-container_49pse_173", Zo = "_interactive-pin-wrapper_49pse_183", $o = "_interactive-pin-icon_49pse_189", Ko = "_interactive-pin_49pse_173", Do = "_bg_49pse_203", zo = "_symbol_49pse_207", Uo = "_interactive-pin-button_49pse_212", jo = "_interactive-pin-menu_49pse_232", qo = "_interactive-pin-menu-item_49pse_246", Wo = "_arrow_49pse_267", d = {
|
|
1139
1142
|
"comment-markers": "_comment-markers_49pse_1",
|
|
1140
|
-
commentMarkers:
|
|
1143
|
+
commentMarkers: Lo,
|
|
1141
1144
|
"comment-marker": "_comment-marker_49pse_1",
|
|
1142
|
-
commentMarker:
|
|
1145
|
+
commentMarker: xo,
|
|
1143
1146
|
"timeline-wrapper": "_timeline-wrapper_49pse_21",
|
|
1144
1147
|
timelineWrapper: Po,
|
|
1145
1148
|
track: No,
|
|
@@ -1154,9 +1157,9 @@ const xo = "_comment-markers_49pse_1", Lo = "_comment-marker_49pse_1", Po = "_ti
|
|
|
1154
1157
|
"pin-button": "_pin-button_49pse_134",
|
|
1155
1158
|
pinButton: Bo,
|
|
1156
1159
|
"annotation-pin": "_annotation-pin_49pse_154",
|
|
1157
|
-
annotationPin:
|
|
1160
|
+
annotationPin: Eo,
|
|
1158
1161
|
"quiz-pin": "_quiz-pin_49pse_159",
|
|
1159
|
-
quizPin:
|
|
1162
|
+
quizPin: Ro,
|
|
1160
1163
|
"annotation-pin-child": "_annotation-pin-child_49pse_164",
|
|
1161
1164
|
annotationPinChild: Ao,
|
|
1162
1165
|
"quiz-pin-child": "_quiz-pin-child_49pse_168",
|
|
@@ -1188,7 +1191,7 @@ function Ae({
|
|
|
1188
1191
|
children: o,
|
|
1189
1192
|
onClick: i
|
|
1190
1193
|
}) {
|
|
1191
|
-
const a =
|
|
1194
|
+
const a = C();
|
|
1192
1195
|
return /* @__PURE__ */ t(
|
|
1193
1196
|
"button",
|
|
1194
1197
|
{
|
|
@@ -1241,7 +1244,7 @@ function Yo(e) {
|
|
|
1241
1244
|
}
|
|
1242
1245
|
) });
|
|
1243
1246
|
}
|
|
1244
|
-
function
|
|
1247
|
+
function Xo(e, n) {
|
|
1245
1248
|
return e.map((o, i) => ({
|
|
1246
1249
|
id: o.id,
|
|
1247
1250
|
time: o.time,
|
|
@@ -1250,7 +1253,7 @@ function Jo(e, n) {
|
|
|
1250
1253
|
onClick: () => n(o)
|
|
1251
1254
|
}));
|
|
1252
1255
|
}
|
|
1253
|
-
function
|
|
1256
|
+
function Jo(e, n) {
|
|
1254
1257
|
const o = /* @__PURE__ */ new Map();
|
|
1255
1258
|
e.forEach((c) => {
|
|
1256
1259
|
var u;
|
|
@@ -1300,16 +1303,16 @@ function ei(e, n, o, i) {
|
|
|
1300
1303
|
}
|
|
1301
1304
|
function ti() {
|
|
1302
1305
|
const e = W(), n = _("duration"), o = S(), i = Z(() => [
|
|
1303
|
-
...
|
|
1306
|
+
...Xo(
|
|
1304
1307
|
o.annotations,
|
|
1305
1308
|
o.onAnnotationClick
|
|
1306
1309
|
),
|
|
1307
|
-
...
|
|
1310
|
+
...Jo(o.quizMarkers, o.onQuizMarkerClick)
|
|
1308
1311
|
].sort((c, l) => c.time - l.time).map((c) => ei(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1309
1312
|
return /* @__PURE__ */ t("div", { className: d.pins, children: i });
|
|
1310
1313
|
}
|
|
1311
1314
|
function ni() {
|
|
1312
|
-
const e = _("duration"), n = S(), o =
|
|
1315
|
+
const e = _("duration"), n = S(), o = C();
|
|
1313
1316
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
|
|
1314
1317
|
const a = Math.min(
|
|
1315
1318
|
Math.abs(e - i.timestamp),
|
|
@@ -1329,7 +1332,7 @@ function ni() {
|
|
|
1329
1332
|
}) }) : null;
|
|
1330
1333
|
}
|
|
1331
1334
|
function oi({ currentTime: e, position: n }) {
|
|
1332
|
-
const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((
|
|
1335
|
+
const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
|
|
1333
1336
|
a.interactiveMenuElements,
|
|
1334
1337
|
a.onInteractivePinClick,
|
|
1335
1338
|
e
|
|
@@ -1346,7 +1349,7 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1346
1349
|
element: l
|
|
1347
1350
|
})
|
|
1348
1351
|
]
|
|
1349
|
-
}),
|
|
1352
|
+
}), g = Le(h), { getReferenceProps: y, getFloatingProps: k } = xe([g]);
|
|
1350
1353
|
return /* @__PURE__ */ s(ee, { children: [
|
|
1351
1354
|
/* @__PURE__ */ t(
|
|
1352
1355
|
"button",
|
|
@@ -1405,13 +1408,13 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1405
1408
|
className: d.interactivePinMenu,
|
|
1406
1409
|
...k(),
|
|
1407
1410
|
children: [
|
|
1408
|
-
a.interactiveMenuElements.map(({ id:
|
|
1411
|
+
a.interactiveMenuElements.map(({ id: b, text: f, onClick: w }) => /* @__PURE__ */ s(
|
|
1409
1412
|
"button",
|
|
1410
1413
|
{
|
|
1411
1414
|
type: "button",
|
|
1412
1415
|
className: d.interactivePinMenuItem,
|
|
1413
1416
|
onClick: () => {
|
|
1414
|
-
w(
|
|
1417
|
+
w(b, e), i(!1);
|
|
1415
1418
|
},
|
|
1416
1419
|
children: [
|
|
1417
1420
|
/* @__PURE__ */ t(
|
|
@@ -1436,7 +1439,7 @@ function oi({ currentTime: e, position: n }) {
|
|
|
1436
1439
|
f
|
|
1437
1440
|
]
|
|
1438
1441
|
},
|
|
1439
|
-
|
|
1442
|
+
b
|
|
1440
1443
|
)),
|
|
1441
1444
|
/* @__PURE__ */ t(
|
|
1442
1445
|
Pe,
|
|
@@ -1456,12 +1459,12 @@ function ii() {
|
|
|
1456
1459
|
return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(oi, { currentTime: n, position: o }) }) });
|
|
1457
1460
|
}
|
|
1458
1461
|
function ai() {
|
|
1459
|
-
const e = _("paused"), n =
|
|
1462
|
+
const e = _("paused"), n = C();
|
|
1460
1463
|
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ii, {}) : null;
|
|
1461
1464
|
}
|
|
1462
1465
|
const si = `${d.progress} ${d.trackInner}`, ci = `${d.trackFill} ${d.trackInner}`;
|
|
1463
1466
|
function he({ className: e }) {
|
|
1464
|
-
const n =
|
|
1467
|
+
const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
|
|
1465
1468
|
return /* @__PURE__ */ s("div", { className: c, children: [
|
|
1466
1469
|
a ? /* @__PURE__ */ t(ai, {}) : null,
|
|
1467
1470
|
a || o || i ? /* @__PURE__ */ t(ti, {}) : null,
|
|
@@ -1491,14 +1494,15 @@ const li = "_wrapper_12cb0_1", ri = "_track_12cb0_6", ui = "_thumb_12cb0_18", di
|
|
|
1491
1494
|
root: mi
|
|
1492
1495
|
};
|
|
1493
1496
|
function hi() {
|
|
1494
|
-
const e = _("volume"), n = _("muted"), o = v();
|
|
1497
|
+
const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
|
|
1495
1498
|
return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
|
|
1496
1499
|
/* @__PURE__ */ t(
|
|
1497
|
-
|
|
1500
|
+
Xe,
|
|
1498
1501
|
{
|
|
1499
1502
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1500
1503
|
className: "controls-button",
|
|
1501
|
-
|
|
1504
|
+
"aria-label": a(i ? "VOLUME" : "MUTE"),
|
|
1505
|
+
children: i ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Be, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ee, { className: "controls-button-icon" })
|
|
1502
1506
|
}
|
|
1503
1507
|
),
|
|
1504
1508
|
/* @__PURE__ */ s(
|
|
@@ -1746,7 +1750,7 @@ function fi(e, n, o, i) {
|
|
|
1746
1750
|
captionsInvertColors: w
|
|
1747
1751
|
};
|
|
1748
1752
|
});
|
|
1749
|
-
}, [a]),
|
|
1753
|
+
}, [a]), g = p(() => {
|
|
1750
1754
|
l((f) => {
|
|
1751
1755
|
const w = !f.commentsEnabled;
|
|
1752
1756
|
return a.saveData("comments", w), {
|
|
@@ -1764,7 +1768,7 @@ function fi(e, n, o, i) {
|
|
|
1764
1768
|
...f,
|
|
1765
1769
|
interactionsDisabled: !0
|
|
1766
1770
|
}));
|
|
1767
|
-
}, []),
|
|
1771
|
+
}, []), b = Z(() => e ? {
|
|
1768
1772
|
...pe,
|
|
1769
1773
|
toggleFullscreen: []
|
|
1770
1774
|
} : pe, [e]);
|
|
@@ -1779,14 +1783,14 @@ function fi(e, n, o, i) {
|
|
|
1779
1783
|
toggleCaptionsInvertColors: h,
|
|
1780
1784
|
enableInteractions: y,
|
|
1781
1785
|
disableInteractions: k,
|
|
1782
|
-
toggleComments:
|
|
1786
|
+
toggleComments: g,
|
|
1783
1787
|
disableCaptionSettings: o
|
|
1784
1788
|
},
|
|
1785
|
-
shortcuts:
|
|
1789
|
+
shortcuts: b,
|
|
1786
1790
|
storage: a
|
|
1787
1791
|
};
|
|
1788
1792
|
}
|
|
1789
|
-
const vi = {},
|
|
1793
|
+
const vi = {}, X = () => {
|
|
1790
1794
|
};
|
|
1791
1795
|
function Pi({
|
|
1792
1796
|
title: e,
|
|
@@ -1799,10 +1803,10 @@ function Pi({
|
|
|
1799
1803
|
locale: u = "en",
|
|
1800
1804
|
annotations: m = [],
|
|
1801
1805
|
quizMarkers: h = [],
|
|
1802
|
-
interactive:
|
|
1803
|
-
onAnnotationClick: y =
|
|
1804
|
-
onQuizMarkerClick: k =
|
|
1805
|
-
onInteractivePinClick:
|
|
1806
|
+
interactive: g = !1,
|
|
1807
|
+
onAnnotationClick: y = X,
|
|
1808
|
+
onQuizMarkerClick: k = X,
|
|
1809
|
+
onInteractivePinClick: b = X,
|
|
1806
1810
|
interactiveMenuElements: f = [],
|
|
1807
1811
|
darkMode: w = !1,
|
|
1808
1812
|
autoLoadCaptionSrc: T = "",
|
|
@@ -1815,8 +1819,8 @@ function Pi({
|
|
|
1815
1819
|
ae ?? !1,
|
|
1816
1820
|
Q ?? !1,
|
|
1817
1821
|
Oe
|
|
1818
|
-
), { i18n: ce } =
|
|
1819
|
-
return
|
|
1822
|
+
), { i18n: ce } = v();
|
|
1823
|
+
return R(() => {
|
|
1820
1824
|
ce.changeLanguage(u);
|
|
1821
1825
|
}, [ce, u]), /* @__PURE__ */ t(
|
|
1822
1826
|
rt,
|
|
@@ -1825,16 +1829,16 @@ function Pi({
|
|
|
1825
1829
|
comments: l,
|
|
1826
1830
|
annotations: m,
|
|
1827
1831
|
quizMarkers: h,
|
|
1828
|
-
interactive:
|
|
1832
|
+
interactive: g,
|
|
1829
1833
|
onAnnotationClick: y,
|
|
1830
1834
|
onQuizMarkerClick: k,
|
|
1831
|
-
onInteractivePinClick:
|
|
1835
|
+
onInteractivePinClick: b,
|
|
1832
1836
|
interactiveMenuElements: f,
|
|
1833
1837
|
darkMode: w,
|
|
1834
1838
|
forceComments: ae ?? !1,
|
|
1835
1839
|
disableCaptionSettings: Q ?? !1,
|
|
1836
1840
|
children: /* @__PURE__ */ t(lt, { contextValue: se, children: /* @__PURE__ */ s(
|
|
1837
|
-
|
|
1841
|
+
Je,
|
|
1838
1842
|
{
|
|
1839
1843
|
storage: Ze,
|
|
1840
1844
|
title: e,
|
|
@@ -1855,7 +1859,7 @@ function Pi({
|
|
|
1855
1859
|
/* @__PURE__ */ t(jn, {}),
|
|
1856
1860
|
/* @__PURE__ */ t(gt, {}),
|
|
1857
1861
|
/* @__PURE__ */ t(yt, { captions: i }),
|
|
1858
|
-
/* @__PURE__ */ t(
|
|
1862
|
+
/* @__PURE__ */ t(Rt, { comments: l }),
|
|
1859
1863
|
/* @__PURE__ */ t(bo, {}),
|
|
1860
1864
|
/* @__PURE__ */ t(eo, {})
|
|
1861
1865
|
] }),
|
|
@@ -1875,7 +1879,7 @@ function Pi({
|
|
|
1875
1879
|
);
|
|
1876
1880
|
}
|
|
1877
1881
|
export {
|
|
1878
|
-
|
|
1882
|
+
Lt as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
1879
1883
|
Se as COMMENT_DURATION,
|
|
1880
1884
|
B as PLAYBACK_RATES,
|
|
1881
1885
|
Pi as StudioPlayer
|
package/package.json
CHANGED
package/dist/en-DRnzP2ly.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
const o = "Action", t = "Annotations", n = "Auto ({{quality}})p", e = "Back", s = "Font Size", c = "Caption Language: {{language}}", E = "Captions", A = "Close", S = "Comments", a = "Continue", T = "Decrease Playback Speed", O = "Decrease Volume by {{percent}}%", C = "Down Arrow", _ = "Enter Fullscreen", P = "Exit Fullscreen", N = "Increase Playback Speed", R = "Increase Volume by {{percent}}%", r = "Invert Colors", L = "Jump to specific percentage (1-10%, 2-20%, etc)", u = "Jump to Start", l = "Keyboard Shortcuts", p = "Language", U = "Left Arrow", I = "Muted", g = "Next Caption Language", G = "Off", i = "On Top", d = "Playback Speed", D = "Playback Speed: {{speed}}x", M = "Previous Caption Language", y = "Quality", K = "Reset Playback Speed", F = "Right Arrow", b = "Seek backward: {{seconds}} seconds", k = "Seek forward: {{seconds}} seconds", B = "Settings", m = "Shortcut", V = "Space", Y = "Toggle Captions", w = "Toggle Muted", W = "Toggle Play/Pause", f = "Up Arrow", x = "Volume: {{volume}}%", J = {
|
|
2
|
-
ACTION: o,
|
|
3
|
-
ANNOTATIONS: t,
|
|
4
|
-
AUTO: n,
|
|
5
|
-
BACK: e,
|
|
6
|
-
CAPTION_FONT_SIZE: s,
|
|
7
|
-
CAPTION_LANGUAGE: c,
|
|
8
|
-
CAPTIONS: E,
|
|
9
|
-
CLOSE: A,
|
|
10
|
-
COMMENTS: S,
|
|
11
|
-
CONTINUE: a,
|
|
12
|
-
DECREASE_PLAYBACK_SPEED: T,
|
|
13
|
-
DECREASE_VOLUME: O,
|
|
14
|
-
DOWN_ARROW: C,
|
|
15
|
-
ENTER_FULLSCREEN: _,
|
|
16
|
-
EXIT_FULLSCREEN: P,
|
|
17
|
-
INCREASE_PLAYBACK_SPEED: N,
|
|
18
|
-
INCREASE_VOLUME: R,
|
|
19
|
-
INVERT_COLORS: r,
|
|
20
|
-
JUMP_TO_PERCENTAGE: L,
|
|
21
|
-
JUMP_TO_START: u,
|
|
22
|
-
KEYBOARD_SHORTCUTS: l,
|
|
23
|
-
LANGUAGE: p,
|
|
24
|
-
LEFT_ARROW: U,
|
|
25
|
-
MUTED: I,
|
|
26
|
-
NEXT_CAPTION_LANGUAGE: g,
|
|
27
|
-
OFF: G,
|
|
28
|
-
ON_TOP: i,
|
|
29
|
-
PLAYBACK_SPEED: d,
|
|
30
|
-
PLAYBACK_SPEED_MESSAGE: D,
|
|
31
|
-
PREVIOUS_CAPTION_LANGUAGE: M,
|
|
32
|
-
QUALITY: y,
|
|
33
|
-
RESET_PLAYBACK_SPEED: K,
|
|
34
|
-
RIGHT_ARROW: F,
|
|
35
|
-
SEEK_BACKWARD: b,
|
|
36
|
-
SEEK_FORWARD: k,
|
|
37
|
-
SETTINGS: B,
|
|
38
|
-
SHORTCUT: m,
|
|
39
|
-
SPACE: V,
|
|
40
|
-
TOGGLE_CAPTIONS: Y,
|
|
41
|
-
TOGGLE_MUTED: w,
|
|
42
|
-
TOGGLE_PLAY_PAUSE: W,
|
|
43
|
-
UP_ARROW: f,
|
|
44
|
-
VOLUME: x
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
o as ACTION,
|
|
48
|
-
t as ANNOTATIONS,
|
|
49
|
-
n as AUTO,
|
|
50
|
-
e as BACK,
|
|
51
|
-
E as CAPTIONS,
|
|
52
|
-
s as CAPTION_FONT_SIZE,
|
|
53
|
-
c as CAPTION_LANGUAGE,
|
|
54
|
-
A as CLOSE,
|
|
55
|
-
S as COMMENTS,
|
|
56
|
-
a as CONTINUE,
|
|
57
|
-
T as DECREASE_PLAYBACK_SPEED,
|
|
58
|
-
O as DECREASE_VOLUME,
|
|
59
|
-
C as DOWN_ARROW,
|
|
60
|
-
_ as ENTER_FULLSCREEN,
|
|
61
|
-
P as EXIT_FULLSCREEN,
|
|
62
|
-
N as INCREASE_PLAYBACK_SPEED,
|
|
63
|
-
R as INCREASE_VOLUME,
|
|
64
|
-
r as INVERT_COLORS,
|
|
65
|
-
L as JUMP_TO_PERCENTAGE,
|
|
66
|
-
u as JUMP_TO_START,
|
|
67
|
-
l as KEYBOARD_SHORTCUTS,
|
|
68
|
-
p as LANGUAGE,
|
|
69
|
-
U as LEFT_ARROW,
|
|
70
|
-
I as MUTED,
|
|
71
|
-
g as NEXT_CAPTION_LANGUAGE,
|
|
72
|
-
G as OFF,
|
|
73
|
-
i as ON_TOP,
|
|
74
|
-
d as PLAYBACK_SPEED,
|
|
75
|
-
D as PLAYBACK_SPEED_MESSAGE,
|
|
76
|
-
M as PREVIOUS_CAPTION_LANGUAGE,
|
|
77
|
-
y as QUALITY,
|
|
78
|
-
K as RESET_PLAYBACK_SPEED,
|
|
79
|
-
F as RIGHT_ARROW,
|
|
80
|
-
b as SEEK_BACKWARD,
|
|
81
|
-
k as SEEK_FORWARD,
|
|
82
|
-
B as SETTINGS,
|
|
83
|
-
m as SHORTCUT,
|
|
84
|
-
V as SPACE,
|
|
85
|
-
Y as TOGGLE_CAPTIONS,
|
|
86
|
-
w as TOGGLE_MUTED,
|
|
87
|
-
W as TOGGLE_PLAY_PAUSE,
|
|
88
|
-
f as UP_ARROW,
|
|
89
|
-
x as VOLUME,
|
|
90
|
-
J as default
|
|
91
|
-
};
|
package/dist/kl-DAr1HilW.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
const o = "qeq", I = "ghItlh", n = "jIghoS ({{quality}})p", t = "qa' yIbuS", E = "lo'ta'", c = "yIngwIj Hol: {{language}}", s = "yIngwIj", A = "chaw'", S = "qechmey", T = "taH", O = "yIjDu' qachDaq jIqeq", _ = "tInwIj qachDaq HablI' veS", a = "SoQmey 'ugh", e = "nIvbogh jIpIj", N = "jIqeqpuma' jIpIj", C = "yIjDu' qachDaq Qab", R = "tInwIj qachDaq Qab", q = "lujmuS mewbeH", j = "jItuvHa'wI' (1-10%, 2-20%, ghob)", u = "yItlhutlhmeH jIjlo'", P = "pu'chuqHom nIHneHmey", D = "Hol", L = "chay' SoQ", h = "batlh", y = "qel yIngwIj Hol", H = "Hoch", U = "QI'ta' qorDaq", l = "yIjDu' veS", m = "yIjDu' veS: {{speed}}x", G = "yIngwIj Hol tInmoH", g = "HIQ", w = "yIjDu' qachDaq reset", b = "SoQmey 'ugh", Q = "Hovmey yIbuS: {{seconds}}", K = "yIbuS: {{seconds}}", M = "nIvbogh", v = "pu'chuqHom", p = "mIw", B = "yIngwIj lo'ta' nIbuS", Y = "mIw tImlaw'", F = "qeq je muSmeH nIvbogh", W = "QoQ SoQ", V = "tInwIj: {{volume}}%", d = {
|
|
2
|
-
ACTION: o,
|
|
3
|
-
ANNOTATIONS: I,
|
|
4
|
-
AUTO: n,
|
|
5
|
-
BACK: t,
|
|
6
|
-
CAPTION_FONT_SIZE: E,
|
|
7
|
-
CAPTION_LANGUAGE: c,
|
|
8
|
-
CAPTIONS: s,
|
|
9
|
-
CLOSE: A,
|
|
10
|
-
COMMENTS: S,
|
|
11
|
-
CONTINUE: T,
|
|
12
|
-
DECREASE_PLAYBACK_SPEED: O,
|
|
13
|
-
DECREASE_VOLUME: _,
|
|
14
|
-
DOWN_ARROW: a,
|
|
15
|
-
ENTER_FULLSCREEN: e,
|
|
16
|
-
EXIT_FULLSCREEN: N,
|
|
17
|
-
INCREASE_PLAYBACK_SPEED: C,
|
|
18
|
-
INCREASE_VOLUME: R,
|
|
19
|
-
INVERT_COLORS: q,
|
|
20
|
-
JUMP_TO_PERCENTAGE: j,
|
|
21
|
-
JUMP_TO_START: u,
|
|
22
|
-
KEYBOARD_SHORTCUTS: P,
|
|
23
|
-
LANGUAGE: D,
|
|
24
|
-
LEFT_ARROW: L,
|
|
25
|
-
MUTED: h,
|
|
26
|
-
NEXT_CAPTION_LANGUAGE: y,
|
|
27
|
-
OFF: H,
|
|
28
|
-
ON_TOP: U,
|
|
29
|
-
PLAYBACK_SPEED: l,
|
|
30
|
-
PLAYBACK_SPEED_MESSAGE: m,
|
|
31
|
-
PREVIOUS_CAPTION_LANGUAGE: G,
|
|
32
|
-
QUALITY: g,
|
|
33
|
-
RESET_PLAYBACK_SPEED: w,
|
|
34
|
-
RIGHT_ARROW: b,
|
|
35
|
-
SEEK_BACKWARD: Q,
|
|
36
|
-
SEEK_FORWARD: K,
|
|
37
|
-
SETTINGS: M,
|
|
38
|
-
SHORTCUT: v,
|
|
39
|
-
SPACE: p,
|
|
40
|
-
TOGGLE_CAPTIONS: B,
|
|
41
|
-
TOGGLE_MUTED: Y,
|
|
42
|
-
TOGGLE_PLAY_PAUSE: F,
|
|
43
|
-
UP_ARROW: W,
|
|
44
|
-
VOLUME: V
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
o as ACTION,
|
|
48
|
-
I as ANNOTATIONS,
|
|
49
|
-
n as AUTO,
|
|
50
|
-
t as BACK,
|
|
51
|
-
s as CAPTIONS,
|
|
52
|
-
E as CAPTION_FONT_SIZE,
|
|
53
|
-
c as CAPTION_LANGUAGE,
|
|
54
|
-
A as CLOSE,
|
|
55
|
-
S as COMMENTS,
|
|
56
|
-
T as CONTINUE,
|
|
57
|
-
O as DECREASE_PLAYBACK_SPEED,
|
|
58
|
-
_ as DECREASE_VOLUME,
|
|
59
|
-
a as DOWN_ARROW,
|
|
60
|
-
e as ENTER_FULLSCREEN,
|
|
61
|
-
N as EXIT_FULLSCREEN,
|
|
62
|
-
C as INCREASE_PLAYBACK_SPEED,
|
|
63
|
-
R as INCREASE_VOLUME,
|
|
64
|
-
q as INVERT_COLORS,
|
|
65
|
-
j as JUMP_TO_PERCENTAGE,
|
|
66
|
-
u as JUMP_TO_START,
|
|
67
|
-
P as KEYBOARD_SHORTCUTS,
|
|
68
|
-
D as LANGUAGE,
|
|
69
|
-
L as LEFT_ARROW,
|
|
70
|
-
h as MUTED,
|
|
71
|
-
y as NEXT_CAPTION_LANGUAGE,
|
|
72
|
-
H as OFF,
|
|
73
|
-
U as ON_TOP,
|
|
74
|
-
l as PLAYBACK_SPEED,
|
|
75
|
-
m as PLAYBACK_SPEED_MESSAGE,
|
|
76
|
-
G as PREVIOUS_CAPTION_LANGUAGE,
|
|
77
|
-
g as QUALITY,
|
|
78
|
-
w as RESET_PLAYBACK_SPEED,
|
|
79
|
-
b as RIGHT_ARROW,
|
|
80
|
-
Q as SEEK_BACKWARD,
|
|
81
|
-
K as SEEK_FORWARD,
|
|
82
|
-
M as SETTINGS,
|
|
83
|
-
v as SHORTCUT,
|
|
84
|
-
p as SPACE,
|
|
85
|
-
B as TOGGLE_CAPTIONS,
|
|
86
|
-
Y as TOGGLE_MUTED,
|
|
87
|
-
F as TOGGLE_PLAY_PAUSE,
|
|
88
|
-
W as UP_ARROW,
|
|
89
|
-
V as VOLUME,
|
|
90
|
-
d as default
|
|
91
|
-
};
|