@instructure/studio-player 0.3.2 → 0.3.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/dist/studio-player.es.js +37 -37
- package/package.json +1 -1
package/dist/studio-player.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import './index-lpAko5-j.css';var et = Object.defineProperty;
|
|
|
2
2
|
var tt = (e, n, o) => n in e ? et(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
3
|
var I = (e, n, o) => tt(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as a, Fragment as j } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as ce, useContext as le, useState as x, useCallback as
|
|
6
|
-
import { useMediaPlayer as z, Spinner as se, useMediaRemote as te, useMediaState as
|
|
5
|
+
import { createContext as ce, useContext as le, useState as x, useCallback as _, useEffect as Z, useMemo as S, useRef as W } from "react";
|
|
6
|
+
import { useMediaPlayer as z, Spinner as se, useMediaRemote as te, useMediaState as C, isTrackCaptionKind as nt, Track as ot, Captions as it, usePlaybackRateOptions as st, useCaptionOptions as at, useVideoQualityOptions as ct, useMediaStore as Ve, Poster as lt, FullscreenButton as rt, Time as ke, TimeSlider as U, VolumeSlider as X, isAudioProvider as ut, isVideoProvider as dt, MediaPlayer as mt, MediaProvider as ht } from "@vidstack/react";
|
|
7
7
|
import { useMediaState as si, useMediaStore as ai } from "@vidstack/react";
|
|
8
8
|
import { initReactI18next as pt, useTranslation as f } from "react-i18next";
|
|
9
9
|
import _t from "i18next";
|
|
@@ -112,7 +112,7 @@ const wt = "_annotation-overlay_1kxzn_1", yt = {
|
|
|
112
112
|
function Lt({ annotations: e }) {
|
|
113
113
|
const n = z(), o = g(), i = H(), [s, c] = x(
|
|
114
114
|
null
|
|
115
|
-
), l =
|
|
115
|
+
), l = _(
|
|
116
116
|
(u) => {
|
|
117
117
|
n == null || n.pause(), i.interactive || o.disableInteractions(), c(u);
|
|
118
118
|
},
|
|
@@ -172,7 +172,7 @@ const Oe = (e) => /* @__PURE__ */ a("svg", { width: 24, height: 24, viewBox: "0
|
|
|
172
172
|
/* @__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" }) })
|
|
173
173
|
] });
|
|
174
174
|
function Ht() {
|
|
175
|
-
const e = te(), n =
|
|
175
|
+
const e = te(), n = C("textTrack"), o = C("hasCaptions"), i = n && nt(n), s = g(), c = _(
|
|
176
176
|
(l) => {
|
|
177
177
|
e.toggleCaptions(l.nativeEvent);
|
|
178
178
|
},
|
|
@@ -195,7 +195,7 @@ const Vt = "_captions_1s87p_1", St = {
|
|
|
195
195
|
captions: Vt
|
|
196
196
|
};
|
|
197
197
|
function Ze({ captions: e }) {
|
|
198
|
-
const n =
|
|
198
|
+
const n = e.length > 0, o = g();
|
|
199
199
|
return /* @__PURE__ */ a(j, { children: [
|
|
200
200
|
e.map((i) => /* @__PURE__ */ t(
|
|
201
201
|
ot,
|
|
@@ -300,7 +300,7 @@ function Dt({ comment: e }) {
|
|
|
300
300
|
}
|
|
301
301
|
const $t = 5;
|
|
302
302
|
function Ut({ comments: e }) {
|
|
303
|
-
const n = g(), o = At(e, $t), i = !!
|
|
303
|
+
const n = g(), o = At(e, $t), i = !!C("textTrack"), s = o.map((c) => /* @__PURE__ */ t(Dt, { comment: c }, c.id));
|
|
304
304
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
305
305
|
"div",
|
|
306
306
|
{
|
|
@@ -378,7 +378,7 @@ function Q({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
|
378
378
|
}
|
|
379
379
|
const an = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "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" }) });
|
|
380
380
|
function cn() {
|
|
381
|
-
const e = P(), n =
|
|
381
|
+
const e = P(), n = C("playbackRate"), { t: o } = f(), i = _(() => {
|
|
382
382
|
e.setPage("speed");
|
|
383
383
|
}, [e]);
|
|
384
384
|
return /* @__PURE__ */ t(
|
|
@@ -392,7 +392,7 @@ function cn() {
|
|
|
392
392
|
);
|
|
393
393
|
}
|
|
394
394
|
function ln() {
|
|
395
|
-
const e = P(), n =
|
|
395
|
+
const e = P(), n = C("hasCaptions"), o = C("textTrack"), { t: i } = f(), s = _(() => {
|
|
396
396
|
e.setPage("captions");
|
|
397
397
|
}, [e]);
|
|
398
398
|
return n ? /* @__PURE__ */ t(
|
|
@@ -414,7 +414,7 @@ const rn = (e) => /* @__PURE__ */ a("svg", { width: 18, height: 18, viewBox: "0
|
|
|
414
414
|
] })
|
|
415
415
|
] });
|
|
416
416
|
function un() {
|
|
417
|
-
const e = P(), n =
|
|
417
|
+
const e = P(), n = C("autoQuality"), o = C("quality"), { t: i } = f(), s = _(() => {
|
|
418
418
|
e.setPage("quality");
|
|
419
419
|
}, [e]);
|
|
420
420
|
return o ? /* @__PURE__ */ t(
|
|
@@ -643,7 +643,7 @@ function Rn() {
|
|
|
643
643
|
);
|
|
644
644
|
}
|
|
645
645
|
function An() {
|
|
646
|
-
const e = P(), n =
|
|
646
|
+
const e = P(), n = C("textTrack"), { t: o } = f(), { disableCaptionSettings: i } = g(), s = _(() => {
|
|
647
647
|
e.setPage("captionLanguage");
|
|
648
648
|
}, [e]);
|
|
649
649
|
return i ? null : /* @__PURE__ */ t(
|
|
@@ -656,7 +656,7 @@ function An() {
|
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
658
|
function Bn() {
|
|
659
|
-
const { t: e } = f(), n = g(), o = P(), i =
|
|
659
|
+
const { t: e } = f(), n = g(), o = P(), i = _(() => {
|
|
660
660
|
o.setPage("captionFontSize");
|
|
661
661
|
}, [o]);
|
|
662
662
|
return /* @__PURE__ */ t(
|
|
@@ -822,7 +822,7 @@ function Kn() {
|
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
function Dn() {
|
|
825
|
-
const e = P(), n = ct({ sort: "descending" }), o =
|
|
825
|
+
const e = P(), n = ct({ sort: "descending" }), o = C("autoQuality"), { t: i } = f(), s = K();
|
|
826
826
|
return /* @__PURE__ */ a(
|
|
827
827
|
"div",
|
|
828
828
|
{
|
|
@@ -876,11 +876,11 @@ const De = ce(null), $n = {
|
|
|
876
876
|
quality: Dn
|
|
877
877
|
};
|
|
878
878
|
function Un() {
|
|
879
|
-
const e = g(), [n, o] = x(["main"]), [i, s] = x(!1), c =
|
|
879
|
+
const e = g(), [n, o] = x(["main"]), [i, s] = x(!1), c = _(() => {
|
|
880
880
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
881
|
-
}, [i]), l =
|
|
881
|
+
}, [i]), l = _((V) => {
|
|
882
882
|
o((T) => T.concat(V));
|
|
883
|
-
}, []), r =
|
|
883
|
+
}, []), r = _(() => {
|
|
884
884
|
o((V) => V.length > 1 ? V.slice(0, -1) : V);
|
|
885
885
|
}, []), u = S(() => $n[n[n.length - 1]], [n]), p = W(null), { refs: v, floatingStyles: y, context: k } = re({
|
|
886
886
|
open: i,
|
|
@@ -970,7 +970,7 @@ function Wn() {
|
|
|
970
970
|
}
|
|
971
971
|
function $e(e, n = 1e3) {
|
|
972
972
|
return function() {
|
|
973
|
-
const i =
|
|
973
|
+
const i = C("lastKeyboardAction"), [s, c] = x(!1), l = _(() => c(!1), []);
|
|
974
974
|
return Z(() => {
|
|
975
975
|
c(!!i);
|
|
976
976
|
const r = setTimeout(l, n);
|
|
@@ -1052,7 +1052,7 @@ const s1 = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
1052
1052
|
fullScreenButton: c1
|
|
1053
1053
|
};
|
|
1054
1054
|
function r1() {
|
|
1055
|
-
const e =
|
|
1055
|
+
const e = C("fullscreen"), n = z(), o = g(), i = H(), { t: s } = f();
|
|
1056
1056
|
return i.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
1057
1057
|
"button",
|
|
1058
1058
|
{
|
|
@@ -1306,11 +1306,11 @@ function V1() {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
const S1 = (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" }) });
|
|
1308
1308
|
function T1() {
|
|
1309
|
-
const [e, n] = x(!1), [o, i] = x(!1), [s, c] = x(!1), l = g(), r =
|
|
1309
|
+
const [e, n] = x(!1), [o, i] = x(!1), [s, c] = x(!1), l = g(), r = C("playing"), u = te(), { t: p } = f(), v = _(() => {
|
|
1310
1310
|
n(!0), l.disableInteractions(), r && (c(!0), u.pause());
|
|
1311
|
-
}, [r, u, l]), y =
|
|
1311
|
+
}, [r, u, l]), y = _(() => {
|
|
1312
1312
|
n(!1), i(!0), l.enableInteractions(), s && (c(!1), u.play());
|
|
1313
|
-
}, [s, u, l]), k =
|
|
1313
|
+
}, [s, u, l]), k = _(
|
|
1314
1314
|
(w) => o && (w == null ? void 0 : w.focus()),
|
|
1315
1315
|
[o]
|
|
1316
1316
|
);
|
|
@@ -1335,7 +1335,7 @@ const E1 = "_play-pause-button_1834v_1", R1 = {
|
|
|
1335
1335
|
playPauseButton: E1
|
|
1336
1336
|
};
|
|
1337
1337
|
function A1() {
|
|
1338
|
-
const e = z(), n = g(), o =
|
|
1338
|
+
const e = z(), n = g(), o = C("paused"), { t: i } = f();
|
|
1339
1339
|
return e ? /* @__PURE__ */ t(
|
|
1340
1340
|
"button",
|
|
1341
1341
|
{
|
|
@@ -1355,7 +1355,7 @@ const B1 = "_poster_195hi_1", O1 = {
|
|
|
1355
1355
|
poster: B1
|
|
1356
1356
|
};
|
|
1357
1357
|
function F1({ src: e }) {
|
|
1358
|
-
const n =
|
|
1358
|
+
const n = C("source");
|
|
1359
1359
|
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(lt, { src: e, className: O1.poster });
|
|
1360
1360
|
}
|
|
1361
1361
|
const Z1 = "_small-layout-overlay_1pd49_1", z1 = "_small-layout-button_1pd49_14", K1 = "_small-layout-icon-play_1pd49_24", D1 = "_small-layout-icon-pause_1pd49_30", $1 = "_full-screen-close-icon_1pd49_36", U1 = "_fade-out_1pd49_1", q = {
|
|
@@ -1373,7 +1373,7 @@ const Z1 = "_small-layout-overlay_1pd49_1", z1 = "_small-layout-button_1pd49_14"
|
|
|
1373
1373
|
fadeOut: U1
|
|
1374
1374
|
};
|
|
1375
1375
|
function q1() {
|
|
1376
|
-
const e =
|
|
1376
|
+
const e = C("paused");
|
|
1377
1377
|
return /* @__PURE__ */ a("div", { className: q.smallLayoutOverlay, children: [
|
|
1378
1378
|
/* @__PURE__ */ t(rt, { className: q.fullScreenCloseIcon, children: /* @__PURE__ */ t(je, {}) }),
|
|
1379
1379
|
/* @__PURE__ */ t("i", { className: q.smallLayoutButton, children: e ? /* @__PURE__ */ t(be, { className: q.smallLayoutIconPlay }) : /* @__PURE__ */ t(fe, { className: q.smallLayoutIconPause }) })
|
|
@@ -1554,7 +1554,7 @@ function No(e, n, o, i) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
function Po() {
|
|
1557
|
-
const e = te(), n =
|
|
1557
|
+
const e = te(), n = C("duration"), o = H(), i = S(() => [
|
|
1558
1558
|
...xo(
|
|
1559
1559
|
o.annotations,
|
|
1560
1560
|
o.onAnnotationClick
|
|
@@ -1564,7 +1564,7 @@ function Po() {
|
|
|
1564
1564
|
return /* @__PURE__ */ t("div", { className: d.pins, children: i });
|
|
1565
1565
|
}
|
|
1566
1566
|
function Io() {
|
|
1567
|
-
const e =
|
|
1567
|
+
const e = C("duration"), n = H(), o = g();
|
|
1568
1568
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
|
|
1569
1569
|
const s = Math.min(
|
|
1570
1570
|
Math.abs(e - i.timestamp),
|
|
@@ -1584,7 +1584,7 @@ function Io() {
|
|
|
1584
1584
|
}) }) : null;
|
|
1585
1585
|
}
|
|
1586
1586
|
function Ho({ currentTime: e, position: n }) {
|
|
1587
|
-
const [o, i] = x(!1), s = H(), c =
|
|
1587
|
+
const [o, i] = x(!1), s = H(), c = _(() => s.interactiveMenuElements.length > 0 ? i((w) => !w) : s.onInteractivePinClick(e), [
|
|
1588
1588
|
s.interactiveMenuElements,
|
|
1589
1589
|
s.onInteractivePinClick,
|
|
1590
1590
|
e
|
|
@@ -1707,11 +1707,11 @@ function Ho({ currentTime: e, position: n }) {
|
|
|
1707
1707
|
] });
|
|
1708
1708
|
}
|
|
1709
1709
|
function Vo() {
|
|
1710
|
-
const e =
|
|
1710
|
+
const e = C("duration"), n = C("currentTime"), o = n / e * 100;
|
|
1711
1711
|
return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(Ho, { currentTime: n, position: o }) }) });
|
|
1712
1712
|
}
|
|
1713
1713
|
function So() {
|
|
1714
|
-
const e =
|
|
1714
|
+
const e = C("paused"), n = g();
|
|
1715
1715
|
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(Vo, {}) : null;
|
|
1716
1716
|
}
|
|
1717
1717
|
const To = `${d.progress} ${d.trackInner}`, Eo = `${d.trackFill} ${d.trackInner}`;
|
|
@@ -1746,7 +1746,7 @@ const Ro = "_wrapper_12cb0_1", Ao = "_track_12cb0_6", Bo = "_thumb_12cb0_18", Oo
|
|
|
1746
1746
|
root: Fo
|
|
1747
1747
|
};
|
|
1748
1748
|
function Zo() {
|
|
1749
|
-
const e = z(), n =
|
|
1749
|
+
const e = z(), n = C("volume"), o = C("muted"), i = g(), s = o || n === 0, { t: c } = f();
|
|
1750
1750
|
return /* @__PURE__ */ a("div", { className: G.wrapper, children: [
|
|
1751
1751
|
/* @__PURE__ */ t(
|
|
1752
1752
|
"button",
|
|
@@ -1993,7 +1993,7 @@ class Ko {
|
|
|
1993
1993
|
function Do(e, n, o, i) {
|
|
1994
1994
|
const s = S(() => new Ko(), []), [c, l] = x(
|
|
1995
1995
|
s.initializeState(i)
|
|
1996
|
-
), r =
|
|
1996
|
+
), r = _(
|
|
1997
1997
|
(m) => {
|
|
1998
1998
|
l((b) => (s.saveData("multiplier", m), {
|
|
1999
1999
|
...b,
|
|
@@ -2001,7 +2001,7 @@ function Do(e, n, o, i) {
|
|
|
2001
2001
|
}));
|
|
2002
2002
|
},
|
|
2003
2003
|
[s]
|
|
2004
|
-
), u =
|
|
2004
|
+
), u = _(() => {
|
|
2005
2005
|
l((m) => {
|
|
2006
2006
|
const b = !m.captionPositionOnTop;
|
|
2007
2007
|
return s.saveData("ontop", b), {
|
|
@@ -2009,7 +2009,7 @@ function Do(e, n, o, i) {
|
|
|
2009
2009
|
captionPositionOnTop: b
|
|
2010
2010
|
};
|
|
2011
2011
|
});
|
|
2012
|
-
}, [s]), p =
|
|
2012
|
+
}, [s]), p = _(() => {
|
|
2013
2013
|
l((m) => {
|
|
2014
2014
|
const b = !m.captionsInvertColors;
|
|
2015
2015
|
return s.saveData("invert", b), {
|
|
@@ -2017,7 +2017,7 @@ function Do(e, n, o, i) {
|
|
|
2017
2017
|
captionsInvertColors: b
|
|
2018
2018
|
};
|
|
2019
2019
|
});
|
|
2020
|
-
}, [s]), v =
|
|
2020
|
+
}, [s]), v = _(() => {
|
|
2021
2021
|
l((m) => {
|
|
2022
2022
|
const b = !m.commentsEnabled;
|
|
2023
2023
|
return s.saveData("comments", b), {
|
|
@@ -2025,17 +2025,17 @@ function Do(e, n, o, i) {
|
|
|
2025
2025
|
commentsEnabled: b
|
|
2026
2026
|
};
|
|
2027
2027
|
});
|
|
2028
|
-
}, [s]), y =
|
|
2028
|
+
}, [s]), y = _(() => {
|
|
2029
2029
|
l((m) => ({
|
|
2030
2030
|
...m,
|
|
2031
2031
|
interactionsDisabled: !1
|
|
2032
2032
|
}));
|
|
2033
|
-
}, []), k =
|
|
2033
|
+
}, []), k = _(() => {
|
|
2034
2034
|
l((m) => ({
|
|
2035
2035
|
...m,
|
|
2036
2036
|
interactionsDisabled: !0
|
|
2037
2037
|
}));
|
|
2038
|
-
}, []), w =
|
|
2038
|
+
}, []), w = _((m) => {
|
|
2039
2039
|
l((b) => ({
|
|
2040
2040
|
...b,
|
|
2041
2041
|
globalKeysDisabled: m
|
|
@@ -2128,7 +2128,7 @@ function ni({
|
|
|
2128
2128
|
Z(() => {
|
|
2129
2129
|
ge.changeLanguage(r);
|
|
2130
2130
|
}, [ge, r]);
|
|
2131
|
-
const [ve, we] = x("none"), Xe =
|
|
2131
|
+
const [ve, we] = x("none"), Xe = _((E) => {
|
|
2132
2132
|
ut(E) ? we("audio") : dt(E) && we("video");
|
|
2133
2133
|
}, []);
|
|
2134
2134
|
return /* @__PURE__ */ t(
|