@instructure/studio-player 0.3.9 → 0.3.10
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MediaPlayerInstance } from '@vidstack/react';
|
|
2
1
|
import { QuizMarker } from '../../types';
|
|
2
|
+
import { MediaPlayerInstance } from '@vidstack/react';
|
|
3
3
|
export declare function createQuizListener(marker: QuizMarker, showCb: (marker: QuizMarker, playerIsPlaying: boolean) => void, player: MediaPlayerInstance, markersShown: Record<string, boolean>, setMarkersShown: (markersShown: Record<string, boolean>) => void): (e: Event) => void;
|
|
4
4
|
export declare function useQuizMarkerListeners(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/studio-player.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './index-B3keTGCo.css';var nt = Object.defineProperty;
|
|
2
2
|
var ot = (e, n, o) => n in e ? nt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
3
|
var S = (e, n, o) => ot(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
|
-
import { jsx as t, jsxs as c, Fragment as
|
|
5
|
-
import { createContext as re, useContext as le, useState as L, useCallback as
|
|
6
|
-
import { useMediaPlayer as F, Spinner as ce, useMediaRemote as oe, useMediaState as
|
|
7
|
-
import { useMediaState as
|
|
8
|
-
import { initReactI18next as
|
|
4
|
+
import { jsx as t, jsxs as c, Fragment as j } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as re, useContext as le, useState as L, useCallback as f, useEffect as O, useMemo as E, useRef as G } from "react";
|
|
6
|
+
import { useMediaPlayer as F, Spinner as ce, useMediaRemote as oe, useMediaState as _, isTrackCaptionKind as it, Track as st, Captions as at, usePlaybackRateOptions as ct, useCaptionOptions as rt, useVideoQualityOptions as lt, useMediaStore as Ve, Poster as ut, FullscreenButton as dt, Time as Le, TimeSlider as $, VolumeSlider as J, isAudioProvider as mt, isVideoProvider as ht, MediaPlayer as pt, MediaProvider as ft } from "@vidstack/react";
|
|
7
|
+
import { useMediaState as fi, useMediaStore as _i } from "@vidstack/react";
|
|
8
|
+
import { initReactI18next as _t, useTranslation as C } from "react-i18next";
|
|
9
9
|
import Ct from "i18next";
|
|
10
10
|
import bt from "i18next-resources-to-backend";
|
|
11
|
-
import { useFloating as ue, autoUpdate as de, arrow as me, useDismiss as he, useInteractions as pe, FloatingFocusManager as
|
|
11
|
+
import { useFloating as ue, autoUpdate as de, arrow as me, useDismiss as he, useInteractions as pe, FloatingFocusManager as fe, FloatingArrow as _e, shift as Te, offset as Ee, useListNavigation as gt } from "@floating-ui/react";
|
|
12
12
|
const vt = (e, n, o) => {
|
|
13
13
|
const i = e[n];
|
|
14
14
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
|
|
@@ -22,7 +22,7 @@ const vt = (e, n, o) => {
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
Ct.use(
|
|
25
|
+
Ct.use(_t).use(
|
|
26
26
|
bt(
|
|
27
27
|
(e) => vt(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-p8Xpb7Qg.js"), "./locales/kl.json": () => import("./kl-Drx4juMa.js") }), `./locales/${e}.json`, 3)
|
|
28
28
|
)
|
|
@@ -120,7 +120,7 @@ const kt = "_annotation-overlay_1kxzn_1", Lt = {
|
|
|
120
120
|
function Mt({ annotations: e }) {
|
|
121
121
|
const n = F(), o = v(), i = M(), [s, a] = L(
|
|
122
122
|
null
|
|
123
|
-
), r =
|
|
123
|
+
), r = f(
|
|
124
124
|
(u) => {
|
|
125
125
|
n == null || n.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
126
126
|
},
|
|
@@ -180,7 +180,7 @@ const Oe = (e) => /* @__PURE__ */ c("svg", { width: 24, height: 24, viewBox: "0
|
|
|
180
180
|
/* @__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
181
|
] });
|
|
182
182
|
function Vt() {
|
|
183
|
-
const e = oe(), n =
|
|
183
|
+
const e = oe(), n = _("textTrack"), o = _("hasCaptions"), i = n && it(n), s = v(), a = f(
|
|
184
184
|
(r) => {
|
|
185
185
|
e.toggleCaptions(r.nativeEvent);
|
|
186
186
|
},
|
|
@@ -207,7 +207,7 @@ function Ze({ captions: e }) {
|
|
|
207
207
|
s,
|
|
208
208
|
i ?? {}
|
|
209
209
|
);
|
|
210
|
-
return /* @__PURE__ */ c(
|
|
210
|
+
return /* @__PURE__ */ c(j, { children: [
|
|
211
211
|
e.map((r) => /* @__PURE__ */ t(
|
|
212
212
|
st,
|
|
213
213
|
{
|
|
@@ -310,9 +310,9 @@ function Gt({ comment: e }) {
|
|
|
310
310
|
/* @__PURE__ */ t("span", { className: B.commentAuthorName, children: e.user.name })
|
|
311
311
|
] });
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
function
|
|
315
|
-
const n = v(), o = Zt(e,
|
|
313
|
+
const jt = 5;
|
|
314
|
+
function Qt({ comments: e }) {
|
|
315
|
+
const n = v(), o = Zt(e, jt), i = !!_("textTrack"), s = o.map((a) => /* @__PURE__ */ t(Gt, { comment: a }, a.id));
|
|
316
316
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
317
317
|
"div",
|
|
318
318
|
{
|
|
@@ -324,8 +324,8 @@ function Wt({ comments: e }) {
|
|
|
324
324
|
}
|
|
325
325
|
) : null;
|
|
326
326
|
}
|
|
327
|
-
const
|
|
328
|
-
root:
|
|
327
|
+
const Wt = "_root_1x28e_1", Yt = "_left-controls_1x28e_28", Xt = "_right-controls_1x28e_34", Jt = "_indicators_1x28e_40", en = "_normal-timeline_1x28e_49", tn = "_compact-timeline_1x28e_55", z = {
|
|
328
|
+
root: Wt,
|
|
329
329
|
"left-controls": "_left-controls_1x28e_28",
|
|
330
330
|
leftControls: Yt,
|
|
331
331
|
"right-controls": "_right-controls_1x28e_34",
|
|
@@ -369,7 +369,7 @@ const on = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
369
369
|
"menu-icon": "_menu-icon_k49ve_42",
|
|
370
370
|
menuIcon: ln
|
|
371
371
|
};
|
|
372
|
-
function
|
|
372
|
+
function Q({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
373
373
|
return /* @__PURE__ */ c(
|
|
374
374
|
"button",
|
|
375
375
|
{
|
|
@@ -390,11 +390,11 @@ function W({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
|
390
390
|
}
|
|
391
391
|
const un = (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" }) });
|
|
392
392
|
function dn() {
|
|
393
|
-
const e = H(), n =
|
|
393
|
+
const e = H(), n = _("playbackRate"), { t: o } = C(), i = f(() => {
|
|
394
394
|
e.setPage("speed");
|
|
395
395
|
}, [e]);
|
|
396
396
|
return /* @__PURE__ */ t(
|
|
397
|
-
|
|
397
|
+
Q,
|
|
398
398
|
{
|
|
399
399
|
label: o("PLAYBACK_SPEED"),
|
|
400
400
|
hint: `${n}x`,
|
|
@@ -404,11 +404,11 @@ function dn() {
|
|
|
404
404
|
);
|
|
405
405
|
}
|
|
406
406
|
function mn() {
|
|
407
|
-
const e = H(), n =
|
|
407
|
+
const e = H(), n = _("hasCaptions"), o = _("textTrack"), { t: i } = C(), s = f(() => {
|
|
408
408
|
e.setPage("captions");
|
|
409
409
|
}, [e]);
|
|
410
410
|
return n ? /* @__PURE__ */ t(
|
|
411
|
-
|
|
411
|
+
Q,
|
|
412
412
|
{
|
|
413
413
|
label: i("CAPTIONS"),
|
|
414
414
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
@@ -426,11 +426,11 @@ const hn = (e) => /* @__PURE__ */ c("svg", { width: 18, height: 18, viewBox: "0
|
|
|
426
426
|
] })
|
|
427
427
|
] });
|
|
428
428
|
function pn() {
|
|
429
|
-
const e = H(), n =
|
|
429
|
+
const e = H(), n = _("autoQuality"), o = _("quality"), { t: i } = C(), s = f(() => {
|
|
430
430
|
e.setPage("quality");
|
|
431
431
|
}, [e]);
|
|
432
432
|
return o ? /* @__PURE__ */ t(
|
|
433
|
-
|
|
433
|
+
Q,
|
|
434
434
|
{
|
|
435
435
|
label: i("QUALITY"),
|
|
436
436
|
hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
@@ -439,7 +439,7 @@ function pn() {
|
|
|
439
439
|
}
|
|
440
440
|
) : null;
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const fn = (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" }) }), _n = (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" }) }), Cn = "_switch-track_1d65g_1", bn = "_switch-thumb_1d65g_12", gn = "_switch-icon_1d65g_26", vn = "_switch-body_1d65g_32", wn = "_switch-label_1d65g_73", yn = "_menu-icon_1d65g_77", A = {
|
|
443
443
|
"switch-track": "_switch-track_1d65g_1",
|
|
444
444
|
switchTrack: Cn,
|
|
445
445
|
"switch-thumb": "_switch-thumb_1d65g_12",
|
|
@@ -471,7 +471,7 @@ function Ce({
|
|
|
471
471
|
children: [
|
|
472
472
|
i && /* @__PURE__ */ t(i, { className: A.menuIcon }),
|
|
473
473
|
/* @__PURE__ */ t("span", { className: A.switchLabel, children: e }),
|
|
474
|
-
/* @__PURE__ */ t("div", { className: A.switchTrack, children: /* @__PURE__ */ t("div", { className: A.switchThumb, children: n ? /* @__PURE__ */ t(
|
|
474
|
+
/* @__PURE__ */ t("div", { className: A.switchTrack, children: /* @__PURE__ */ t("div", { className: A.switchThumb, children: n ? /* @__PURE__ */ t(fn, { className: A.switchIcon }) : /* @__PURE__ */ t(_n, { className: A.switchIcon }) }) })
|
|
475
475
|
]
|
|
476
476
|
}
|
|
477
477
|
);
|
|
@@ -590,7 +590,7 @@ function Vn() {
|
|
|
590
590
|
}
|
|
591
591
|
);
|
|
592
592
|
}
|
|
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" }) }),
|
|
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" }) }), W = (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" }) }), Tn = "_menu-container_1lrzf_1", En = "_menu-heading_1lrzf_6", Rn = "_check-icon_1lrzf_22", An = "_menu-item-label_1lrzf_28", Bn = "_menu-item_1lrzf_28", On = "_menu-back-button_1lrzf_61", p = {
|
|
594
594
|
"menu-container": "_menu-container_1lrzf_1",
|
|
595
595
|
menuContainer: Tn,
|
|
596
596
|
"menu-heading": "_menu-heading_1lrzf_6",
|
|
@@ -627,7 +627,7 @@ function Fn() {
|
|
|
627
627
|
className: p.menuBackButton,
|
|
628
628
|
onClick: e.back,
|
|
629
629
|
children: [
|
|
630
|
-
/* @__PURE__ */ t(
|
|
630
|
+
/* @__PURE__ */ t(W, {}),
|
|
631
631
|
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
632
632
|
]
|
|
633
633
|
}
|
|
@@ -655,11 +655,11 @@ function Fn() {
|
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
function Zn() {
|
|
658
|
-
const e = H(), n =
|
|
658
|
+
const e = H(), n = _("textTrack"), { t: o } = C(), { disableCaptionSettings: i } = v(), s = f(() => {
|
|
659
659
|
e.setPage("captionLanguage");
|
|
660
660
|
}, [e]);
|
|
661
661
|
return i ? null : /* @__PURE__ */ t(
|
|
662
|
-
|
|
662
|
+
Q,
|
|
663
663
|
{
|
|
664
664
|
label: o("LANGUAGE"),
|
|
665
665
|
hint: (n == null ? void 0 : n.label) ?? o("OFF"),
|
|
@@ -668,11 +668,11 @@ function Zn() {
|
|
|
668
668
|
);
|
|
669
669
|
}
|
|
670
670
|
function zn() {
|
|
671
|
-
const { t: e } = C(), n = v(), o = H(), i =
|
|
671
|
+
const { t: e } = C(), n = v(), o = H(), i = f(() => {
|
|
672
672
|
o.setPage("captionFontSize");
|
|
673
673
|
}, [o]);
|
|
674
674
|
return /* @__PURE__ */ t(
|
|
675
|
-
|
|
675
|
+
Q,
|
|
676
676
|
{
|
|
677
677
|
label: e("CAPTION_FONT_SIZE"),
|
|
678
678
|
hint: `${n.state.captionsFontSizeMultiplier * 100}%`,
|
|
@@ -722,7 +722,7 @@ function $n() {
|
|
|
722
722
|
className: p.menuBackButton,
|
|
723
723
|
onClick: e.back,
|
|
724
724
|
children: [
|
|
725
|
-
/* @__PURE__ */ t(
|
|
725
|
+
/* @__PURE__ */ t(W, {}),
|
|
726
726
|
/* @__PURE__ */ t("span", { children: n("BACK") })
|
|
727
727
|
]
|
|
728
728
|
}
|
|
@@ -756,7 +756,7 @@ function Un() {
|
|
|
756
756
|
className: p.menuBackButton,
|
|
757
757
|
onClick: e.back,
|
|
758
758
|
children: [
|
|
759
|
-
/* @__PURE__ */ t(
|
|
759
|
+
/* @__PURE__ */ t(W, {}),
|
|
760
760
|
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
761
761
|
]
|
|
762
762
|
}
|
|
@@ -802,7 +802,7 @@ function qn() {
|
|
|
802
802
|
className: p.menuBackButton,
|
|
803
803
|
onClick: n.back,
|
|
804
804
|
children: [
|
|
805
|
-
/* @__PURE__ */ t(
|
|
805
|
+
/* @__PURE__ */ t(W, {}),
|
|
806
806
|
/* @__PURE__ */ t("span", { children: o("BACK") })
|
|
807
807
|
]
|
|
808
808
|
}
|
|
@@ -834,7 +834,7 @@ function qn() {
|
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
836
|
function Gn() {
|
|
837
|
-
const e = H(), n = lt({ sort: "descending" }), o =
|
|
837
|
+
const e = H(), n = lt({ sort: "descending" }), o = _("autoQuality"), { t: i } = C(), s = D();
|
|
838
838
|
return /* @__PURE__ */ c(
|
|
839
839
|
"div",
|
|
840
840
|
{
|
|
@@ -853,7 +853,7 @@ function Gn() {
|
|
|
853
853
|
className: p.menuBackButton,
|
|
854
854
|
onClick: e.back,
|
|
855
855
|
children: [
|
|
856
|
-
/* @__PURE__ */ t(
|
|
856
|
+
/* @__PURE__ */ t(W, {}),
|
|
857
857
|
/* @__PURE__ */ t("span", { children: i("BACK") })
|
|
858
858
|
]
|
|
859
859
|
}
|
|
@@ -879,7 +879,7 @@ function Gn() {
|
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
const Ke = re(null),
|
|
882
|
+
const Ke = re(null), jn = {
|
|
883
883
|
main: Vn,
|
|
884
884
|
speed: Fn,
|
|
885
885
|
captions: $n,
|
|
@@ -887,14 +887,14 @@ const Ke = re(null), Qn = {
|
|
|
887
887
|
captionFontSize: qn,
|
|
888
888
|
quality: Gn
|
|
889
889
|
};
|
|
890
|
-
function
|
|
891
|
-
const e = v(), [n, o] = L(["main"]), [i, s] = L(!1), a =
|
|
890
|
+
function Qn() {
|
|
891
|
+
const e = v(), [n, o] = L(["main"]), [i, s] = L(!1), a = f(() => {
|
|
892
892
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
893
|
-
}, [i]), r =
|
|
893
|
+
}, [i]), r = f((P) => {
|
|
894
894
|
o((T) => T.concat(P));
|
|
895
|
-
}, []), l =
|
|
895
|
+
}, []), l = f(() => {
|
|
896
896
|
o((P) => P.length > 1 ? P.slice(0, -1) : P);
|
|
897
|
-
}, []), u = E(() =>
|
|
897
|
+
}, []), u = E(() => jn[n[n.length - 1]], [n]), d = G(null), { refs: b, floatingStyles: w, context: k } = ue({
|
|
898
898
|
open: i,
|
|
899
899
|
onOpenChange: a,
|
|
900
900
|
placement: "top-end",
|
|
@@ -925,9 +925,9 @@ function Wn() {
|
|
|
925
925
|
contextValue: g
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
|
-
const
|
|
928
|
+
const Wn = "_settings-menu_7d0td_1", Yn = "_arrow_7d0td_19", Me = {
|
|
929
929
|
"settings-menu": "_settings-menu_7d0td_1",
|
|
930
|
-
settingsMenu:
|
|
930
|
+
settingsMenu: Wn,
|
|
931
931
|
arrow: Yn
|
|
932
932
|
};
|
|
933
933
|
function Xn() {
|
|
@@ -941,8 +941,8 @@ function Xn() {
|
|
|
941
941
|
open: r,
|
|
942
942
|
refs: l,
|
|
943
943
|
contextValue: u
|
|
944
|
-
} =
|
|
945
|
-
return /* @__PURE__ */ c(
|
|
944
|
+
} = Qn(), { t: d } = C();
|
|
945
|
+
return /* @__PURE__ */ c(j, { children: [
|
|
946
946
|
/* @__PURE__ */ t(
|
|
947
947
|
"button",
|
|
948
948
|
{
|
|
@@ -956,7 +956,7 @@ function Xn() {
|
|
|
956
956
|
children: /* @__PURE__ */ t(on, { className: "controls-button-icon icon-rotate" })
|
|
957
957
|
}
|
|
958
958
|
),
|
|
959
|
-
r && /* @__PURE__ */ t(
|
|
959
|
+
r && /* @__PURE__ */ t(fe, { context: o, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ c(
|
|
960
960
|
"div",
|
|
961
961
|
{
|
|
962
962
|
"aria-labelledby": "submenu",
|
|
@@ -967,7 +967,7 @@ function Xn() {
|
|
|
967
967
|
children: [
|
|
968
968
|
/* @__PURE__ */ t(Ke.Provider, { value: u, children: /* @__PURE__ */ t(e, {}) }),
|
|
969
969
|
/* @__PURE__ */ t(
|
|
970
|
-
|
|
970
|
+
_e,
|
|
971
971
|
{
|
|
972
972
|
ref: n,
|
|
973
973
|
context: o,
|
|
@@ -981,7 +981,7 @@ function Xn() {
|
|
|
981
981
|
}
|
|
982
982
|
function De(e, n = 1e3) {
|
|
983
983
|
return function() {
|
|
984
|
-
const i =
|
|
984
|
+
const i = _("lastKeyboardAction"), [s, a] = L(!1), r = f(() => a(!1), []);
|
|
985
985
|
return O(() => {
|
|
986
986
|
a(!!i);
|
|
987
987
|
const l = setTimeout(r, n);
|
|
@@ -1063,7 +1063,7 @@ const l1 = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
1063
1063
|
fullScreenButton: d1
|
|
1064
1064
|
};
|
|
1065
1065
|
function h1() {
|
|
1066
|
-
const e =
|
|
1066
|
+
const e = _("fullscreen"), n = F(), o = v(), i = M(), { t: s } = C();
|
|
1067
1067
|
return i.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
1068
1068
|
"button",
|
|
1069
1069
|
{
|
|
@@ -1079,18 +1079,18 @@ function h1() {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
);
|
|
1081
1081
|
}
|
|
1082
|
-
const p1 = "_gestures-container_1fn3b_1",
|
|
1082
|
+
const p1 = "_gestures-container_1fn3b_1", f1 = "_gesture_1fn3b_1", Pe = {
|
|
1083
1083
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
1084
1084
|
gesturesContainer: p1,
|
|
1085
|
-
gesture:
|
|
1085
|
+
gesture: f1
|
|
1086
1086
|
};
|
|
1087
|
-
function
|
|
1087
|
+
function _1() {
|
|
1088
1088
|
const e = oe(), n = () => {
|
|
1089
1089
|
e.togglePaused();
|
|
1090
1090
|
};
|
|
1091
1091
|
return /* @__PURE__ */ t("div", { className: Pe.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: Pe.gesture, onClick: n }) });
|
|
1092
1092
|
}
|
|
1093
|
-
const
|
|
1093
|
+
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: "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" }) }), C1 = "_controls-overlay_poi8b_1", b1 = "_keyboard-shortcuts-overlay_poi8b_11", g1 = "_screen-reader-content_poi8b_75", v1 = "_controls-button_poi8b_89", w1 = "_keyboard-shortcuts-button_poi8b_101", y1 = "_kebab-menu-button_poi8b_110", k1 = "_kebab-menu_poi8b_110", L1 = "_kebab-menu-item_poi8b_139", x1 = "_close-button_poi8b_178", M1 = "_arrow_poi8b_192", I = {
|
|
1094
1094
|
"controls-overlay": "_controls-overlay_poi8b_1",
|
|
1095
1095
|
controlsOverlay: C1,
|
|
1096
1096
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_poi8b_11",
|
|
@@ -1135,7 +1135,7 @@ function P1({ onClose: e }) {
|
|
|
1135
1135
|
className: I.closeButton,
|
|
1136
1136
|
onClick: e,
|
|
1137
1137
|
"aria-label": n("CLOSE"),
|
|
1138
|
-
children: /* @__PURE__ */ t(
|
|
1138
|
+
children: /* @__PURE__ */ t(je, {})
|
|
1139
1139
|
}
|
|
1140
1140
|
)
|
|
1141
1141
|
] }),
|
|
@@ -1255,7 +1255,7 @@ function R1() {
|
|
|
1255
1255
|
}), y = he(w), { getReferenceProps: N, getFloatingProps: h, getItemProps: g } = pe(
|
|
1256
1256
|
[y, k]
|
|
1257
1257
|
), { t: P } = C();
|
|
1258
|
-
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ c(
|
|
1258
|
+
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ c(j, { children: [
|
|
1259
1259
|
/* @__PURE__ */ t(
|
|
1260
1260
|
"button",
|
|
1261
1261
|
{
|
|
@@ -1270,7 +1270,7 @@ function R1() {
|
|
|
1270
1270
|
children: /* @__PURE__ */ t(N1, {})
|
|
1271
1271
|
}
|
|
1272
1272
|
),
|
|
1273
|
-
e && /* @__PURE__ */ t(
|
|
1273
|
+
e && /* @__PURE__ */ t(fe, { context: w, modal: !1, children: /* @__PURE__ */ c(
|
|
1274
1274
|
"div",
|
|
1275
1275
|
{
|
|
1276
1276
|
ref: d.setFloating,
|
|
@@ -1302,7 +1302,7 @@ function R1() {
|
|
|
1302
1302
|
)
|
|
1303
1303
|
),
|
|
1304
1304
|
/* @__PURE__ */ t(
|
|
1305
|
-
|
|
1305
|
+
_e,
|
|
1306
1306
|
{
|
|
1307
1307
|
ref: l,
|
|
1308
1308
|
context: w,
|
|
@@ -1316,11 +1316,11 @@ function R1() {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
const A1 = (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" }) });
|
|
1318
1318
|
function B1() {
|
|
1319
|
-
const [e, n] = L(!1), [o, i] = L(!1), [s, a] = L(!1), r = v(), l =
|
|
1319
|
+
const [e, n] = L(!1), [o, i] = L(!1), [s, a] = L(!1), r = v(), l = _("playing"), u = oe(), { t: d } = C(), b = f(() => {
|
|
1320
1320
|
n(!0), r.disableInteractions(), l && (a(!0), u.pause());
|
|
1321
|
-
}, [l, u, r]), w =
|
|
1321
|
+
}, [l, u, r]), w = f(() => {
|
|
1322
1322
|
n(!1), i(!0), r.enableInteractions(), s && (a(!1), u.play());
|
|
1323
|
-
}, [s, u, r]), k =
|
|
1323
|
+
}, [s, u, r]), k = f(
|
|
1324
1324
|
(y) => o && (y == null ? void 0 : y.focus()),
|
|
1325
1325
|
[o]
|
|
1326
1326
|
);
|
|
@@ -1345,7 +1345,7 @@ const O1 = "_play-pause-button_1834v_1", F1 = {
|
|
|
1345
1345
|
playPauseButton: O1
|
|
1346
1346
|
};
|
|
1347
1347
|
function Z1() {
|
|
1348
|
-
const e = F(), n = v(), o =
|
|
1348
|
+
const e = F(), n = v(), o = _("paused"), { t: i } = C();
|
|
1349
1349
|
return e ? /* @__PURE__ */ t(
|
|
1350
1350
|
"button",
|
|
1351
1351
|
{
|
|
@@ -1365,10 +1365,10 @@ const z1 = "_poster_195hi_1", K1 = {
|
|
|
1365
1365
|
poster: z1
|
|
1366
1366
|
};
|
|
1367
1367
|
function D1({ src: e }) {
|
|
1368
|
-
const n =
|
|
1368
|
+
const n = _("source");
|
|
1369
1369
|
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(ut, { src: e, className: K1.poster });
|
|
1370
1370
|
}
|
|
1371
|
-
const $1 = "_small-layout-overlay_1pd49_1", U1 = "_small-layout-button_1pd49_14", q1 = "_small-layout-icon-play_1pd49_24", G1 = "_small-layout-icon-pause_1pd49_30",
|
|
1371
|
+
const $1 = "_small-layout-overlay_1pd49_1", U1 = "_small-layout-button_1pd49_14", q1 = "_small-layout-icon-play_1pd49_24", G1 = "_small-layout-icon-pause_1pd49_30", j1 = "_full-screen-close-icon_1pd49_36", Q1 = "_fade-out_1pd49_1", U = {
|
|
1372
1372
|
"small-layout-overlay": "_small-layout-overlay_1pd49_1",
|
|
1373
1373
|
smallLayoutOverlay: $1,
|
|
1374
1374
|
"small-layout-button": "_small-layout-button_1pd49_14",
|
|
@@ -1378,14 +1378,14 @@ const $1 = "_small-layout-overlay_1pd49_1", U1 = "_small-layout-button_1pd49_14"
|
|
|
1378
1378
|
"small-layout-icon-pause": "_small-layout-icon-pause_1pd49_30",
|
|
1379
1379
|
smallLayoutIconPause: G1,
|
|
1380
1380
|
"full-screen-close-icon": "_full-screen-close-icon_1pd49_36",
|
|
1381
|
-
fullScreenCloseIcon:
|
|
1381
|
+
fullScreenCloseIcon: j1,
|
|
1382
1382
|
"fade-out": "_fade-out_1pd49_1",
|
|
1383
|
-
fadeOut:
|
|
1383
|
+
fadeOut: Q1
|
|
1384
1384
|
};
|
|
1385
|
-
function
|
|
1386
|
-
const e =
|
|
1385
|
+
function W1() {
|
|
1386
|
+
const e = _("paused");
|
|
1387
1387
|
return /* @__PURE__ */ c("div", { className: U.smallLayoutOverlay, children: [
|
|
1388
|
-
/* @__PURE__ */ t(dt, { className: U.fullScreenCloseIcon, children: /* @__PURE__ */ t(
|
|
1388
|
+
/* @__PURE__ */ t(dt, { className: U.fullScreenCloseIcon, children: /* @__PURE__ */ t(je, {}) }),
|
|
1389
1389
|
/* @__PURE__ */ t("i", { className: U.smallLayoutButton, children: e ? /* @__PURE__ */ t(ge, { className: U.smallLayoutIconPlay }) : /* @__PURE__ */ t(be, { className: U.smallLayoutIconPause }) })
|
|
1390
1390
|
] });
|
|
1391
1391
|
}
|
|
@@ -1400,7 +1400,7 @@ function J1() {
|
|
|
1400
1400
|
/* @__PURE__ */ t(Le, { type: "duration" })
|
|
1401
1401
|
] });
|
|
1402
1402
|
}
|
|
1403
|
-
const eo = "_comment-markers_fno42_1", to = "_comment-marker_fno42_1", no = "_timeline-wrapper_fno42_27", oo = "_track_fno42_41", io = "_thumb_fno42_52", so = "_root_fno42_66", ao = "_track-inner_fno42_96", co = "_progress_fno42_102", ro = "_track-fill_fno42_108", lo = "_pins_fno42_125", uo = "_pin-button_fno42_138", mo = "_annotation-pin_fno42_158", ho = "_quiz-pin_fno42_163", po = "_annotation-pin-child_fno42_168",
|
|
1403
|
+
const eo = "_comment-markers_fno42_1", to = "_comment-marker_fno42_1", no = "_timeline-wrapper_fno42_27", oo = "_track_fno42_41", io = "_thumb_fno42_52", so = "_root_fno42_66", ao = "_track-inner_fno42_96", co = "_progress_fno42_102", ro = "_track-fill_fno42_108", lo = "_pins_fno42_125", uo = "_pin-button_fno42_138", mo = "_annotation-pin_fno42_158", ho = "_quiz-pin_fno42_163", po = "_annotation-pin-child_fno42_168", fo = "_quiz-pin-child_fno42_172", _o = "_interactive-pin-container_fno42_177", Co = "_interactive-pin-wrapper_fno42_187", bo = "_interactive-pin-icon_fno42_193", go = "_interactive-pin_fno42_177", vo = "_bg_fno42_207", wo = "_symbol_fno42_211", yo = "_interactive-pin-button_fno42_216", ko = "_interactive-pin-menu_fno42_236", Lo = "_interactive-pin-menu-item_fno42_250", xo = "_arrow_fno42_271", m = {
|
|
1404
1404
|
"comment-markers": "_comment-markers_fno42_1",
|
|
1405
1405
|
commentMarkers: eo,
|
|
1406
1406
|
"comment-marker": "_comment-marker_fno42_1",
|
|
@@ -1425,9 +1425,9 @@ const eo = "_comment-markers_fno42_1", to = "_comment-marker_fno42_1", no = "_ti
|
|
|
1425
1425
|
"annotation-pin-child": "_annotation-pin-child_fno42_168",
|
|
1426
1426
|
annotationPinChild: po,
|
|
1427
1427
|
"quiz-pin-child": "_quiz-pin-child_fno42_172",
|
|
1428
|
-
quizPinChild:
|
|
1428
|
+
quizPinChild: fo,
|
|
1429
1429
|
"interactive-pin-container": "_interactive-pin-container_fno42_177",
|
|
1430
|
-
interactivePinContainer:
|
|
1430
|
+
interactivePinContainer: _o,
|
|
1431
1431
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_fno42_187",
|
|
1432
1432
|
interactivePinWrapper: Co,
|
|
1433
1433
|
"interactive-pin-icon": "_interactive-pin-icon_fno42_193",
|
|
@@ -1447,7 +1447,7 @@ const eo = "_comment-markers_fno42_1", to = "_comment-marker_fno42_1", no = "_ti
|
|
|
1447
1447
|
annotation: m.annotationPin,
|
|
1448
1448
|
quiz: m.quizPin
|
|
1449
1449
|
};
|
|
1450
|
-
function
|
|
1450
|
+
function Qe({
|
|
1451
1451
|
type: e,
|
|
1452
1452
|
position: n,
|
|
1453
1453
|
children: o,
|
|
@@ -1480,7 +1480,7 @@ function We({
|
|
|
1480
1480
|
);
|
|
1481
1481
|
}
|
|
1482
1482
|
function Po(e) {
|
|
1483
|
-
return /* @__PURE__ */ t(
|
|
1483
|
+
return /* @__PURE__ */ t(Qe, { type: "annotation", ...e, children: /* @__PURE__ */ t(
|
|
1484
1484
|
"path",
|
|
1485
1485
|
{
|
|
1486
1486
|
className: m.annotationPinChild,
|
|
@@ -1493,7 +1493,7 @@ function Po(e) {
|
|
|
1493
1493
|
) });
|
|
1494
1494
|
}
|
|
1495
1495
|
function No(e) {
|
|
1496
|
-
return /* @__PURE__ */ t(
|
|
1496
|
+
return /* @__PURE__ */ t(Qe, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
|
|
1497
1497
|
"text",
|
|
1498
1498
|
{
|
|
1499
1499
|
className: m.quizPinChild,
|
|
@@ -1564,7 +1564,7 @@ function So(e, n, o, i) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
function Vo() {
|
|
1567
|
-
const e = oe(), n =
|
|
1567
|
+
const e = oe(), n = _("duration"), o = M(), i = E(() => [
|
|
1568
1568
|
...Io(
|
|
1569
1569
|
o.annotations,
|
|
1570
1570
|
o.onAnnotationClick
|
|
@@ -1574,7 +1574,7 @@ function Vo() {
|
|
|
1574
1574
|
return /* @__PURE__ */ t("div", { className: m.pins, children: i });
|
|
1575
1575
|
}
|
|
1576
1576
|
function To() {
|
|
1577
|
-
const e =
|
|
1577
|
+
const e = _("duration"), n = M(), o = v();
|
|
1578
1578
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: m.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
|
|
1579
1579
|
"span",
|
|
1580
1580
|
{
|
|
@@ -1587,7 +1587,7 @@ function To() {
|
|
|
1587
1587
|
)) }) : null;
|
|
1588
1588
|
}
|
|
1589
1589
|
function Eo({ currentTime: e, position: n }) {
|
|
1590
|
-
const [o, i] = L(!1), s = M(), a =
|
|
1590
|
+
const [o, i] = L(!1), s = M(), a = f(() => s.interactiveMenuElements.length > 0 ? i((y) => !y) : s.onInteractivePinClick(e), [
|
|
1591
1591
|
s.interactiveMenuElements,
|
|
1592
1592
|
s.onInteractivePinClick,
|
|
1593
1593
|
e
|
|
@@ -1604,7 +1604,7 @@ function Eo({ currentTime: e, position: n }) {
|
|
|
1604
1604
|
})
|
|
1605
1605
|
]
|
|
1606
1606
|
}), b = he(d), { getReferenceProps: w, getFloatingProps: k } = pe([b]);
|
|
1607
|
-
return /* @__PURE__ */ c(
|
|
1607
|
+
return /* @__PURE__ */ c(j, { children: [
|
|
1608
1608
|
/* @__PURE__ */ t(
|
|
1609
1609
|
"button",
|
|
1610
1610
|
{
|
|
@@ -1655,7 +1655,7 @@ function Eo({ currentTime: e, position: n }) {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
),
|
|
1657
1657
|
o && /* @__PURE__ */ t(
|
|
1658
|
-
|
|
1658
|
+
fe,
|
|
1659
1659
|
{
|
|
1660
1660
|
order: ["floating", "content"],
|
|
1661
1661
|
context: d,
|
|
@@ -1704,7 +1704,7 @@ function Eo({ currentTime: e, position: n }) {
|
|
|
1704
1704
|
)
|
|
1705
1705
|
),
|
|
1706
1706
|
/* @__PURE__ */ t(
|
|
1707
|
-
|
|
1707
|
+
_e,
|
|
1708
1708
|
{
|
|
1709
1709
|
ref: r,
|
|
1710
1710
|
context: d,
|
|
@@ -1719,13 +1719,13 @@ function Eo({ currentTime: e, position: n }) {
|
|
|
1719
1719
|
] });
|
|
1720
1720
|
}
|
|
1721
1721
|
function Ro() {
|
|
1722
|
-
const e =
|
|
1722
|
+
const e = _("duration"), n = _("currentTime"), o = n / e * 100, { disableInteractivePinRanges: i } = M();
|
|
1723
1723
|
return i.some(
|
|
1724
1724
|
([a, r]) => n >= a && n <= r
|
|
1725
1725
|
) ? null : /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t(Eo, { currentTime: n, position: o }) }) });
|
|
1726
1726
|
}
|
|
1727
1727
|
function Ao() {
|
|
1728
|
-
const e =
|
|
1728
|
+
const e = _("paused"), n = v();
|
|
1729
1729
|
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(Ro, {}) : null;
|
|
1730
1730
|
}
|
|
1731
1731
|
const Bo = `${m.progress} ${m.trackInner}`, Oo = `${m.trackFill} ${m.trackInner}`;
|
|
@@ -1760,7 +1760,7 @@ const Fo = "_wrapper_12cb0_1", Zo = "_track_12cb0_6", zo = "_thumb_12cb0_18", Ko
|
|
|
1760
1760
|
root: Do
|
|
1761
1761
|
};
|
|
1762
1762
|
function $o() {
|
|
1763
|
-
const e = F(), n =
|
|
1763
|
+
const e = F(), n = _("volume"), o = _("muted"), i = v(), s = o || n === 0, { t: a } = C();
|
|
1764
1764
|
return /* @__PURE__ */ c("div", { className: q.wrapper, children: [
|
|
1765
1765
|
/* @__PURE__ */ t(
|
|
1766
1766
|
"button",
|
|
@@ -2007,7 +2007,7 @@ class qo {
|
|
|
2007
2007
|
function Go(e, n, o, i) {
|
|
2008
2008
|
const s = E(() => new qo(), []), [a, r] = L(
|
|
2009
2009
|
s.initializeState(i)
|
|
2010
|
-
), l =
|
|
2010
|
+
), l = f(
|
|
2011
2011
|
(h) => {
|
|
2012
2012
|
r((g) => (s.saveData("multiplier", h), {
|
|
2013
2013
|
...g,
|
|
@@ -2015,7 +2015,7 @@ function Go(e, n, o, i) {
|
|
|
2015
2015
|
}));
|
|
2016
2016
|
},
|
|
2017
2017
|
[s]
|
|
2018
|
-
), u =
|
|
2018
|
+
), u = f(() => {
|
|
2019
2019
|
r((h) => {
|
|
2020
2020
|
const g = !h.captionPositionOnTop;
|
|
2021
2021
|
return s.saveData("ontop", g), {
|
|
@@ -2023,7 +2023,7 @@ function Go(e, n, o, i) {
|
|
|
2023
2023
|
captionPositionOnTop: g
|
|
2024
2024
|
};
|
|
2025
2025
|
});
|
|
2026
|
-
}, [s]), d =
|
|
2026
|
+
}, [s]), d = f(() => {
|
|
2027
2027
|
r((h) => {
|
|
2028
2028
|
const g = !h.captionsInvertColors;
|
|
2029
2029
|
return s.saveData("invert", g), {
|
|
@@ -2031,7 +2031,7 @@ function Go(e, n, o, i) {
|
|
|
2031
2031
|
captionsInvertColors: g
|
|
2032
2032
|
};
|
|
2033
2033
|
});
|
|
2034
|
-
}, [s]), b =
|
|
2034
|
+
}, [s]), b = f(() => {
|
|
2035
2035
|
r((h) => {
|
|
2036
2036
|
const g = !h.commentsEnabled;
|
|
2037
2037
|
return s.saveData("comments", g), {
|
|
@@ -2039,17 +2039,17 @@ function Go(e, n, o, i) {
|
|
|
2039
2039
|
commentsEnabled: g
|
|
2040
2040
|
};
|
|
2041
2041
|
});
|
|
2042
|
-
}, [s]), w =
|
|
2042
|
+
}, [s]), w = f(() => {
|
|
2043
2043
|
r((h) => ({
|
|
2044
2044
|
...h,
|
|
2045
2045
|
interactionsDisabled: !1
|
|
2046
2046
|
}));
|
|
2047
|
-
}, []), k =
|
|
2047
|
+
}, []), k = f(() => {
|
|
2048
2048
|
r((h) => ({
|
|
2049
2049
|
...h,
|
|
2050
2050
|
interactionsDisabled: !0
|
|
2051
2051
|
}));
|
|
2052
|
-
}, []), y =
|
|
2052
|
+
}, []), y = f((h) => {
|
|
2053
2053
|
r((g) => ({
|
|
2054
2054
|
...g,
|
|
2055
2055
|
globalKeysDisabled: h
|
|
@@ -2077,20 +2077,20 @@ function Go(e, n, o, i) {
|
|
|
2077
2077
|
storage: s
|
|
2078
2078
|
};
|
|
2079
2079
|
}
|
|
2080
|
-
const
|
|
2081
|
-
function
|
|
2080
|
+
const jo = {};
|
|
2081
|
+
function Qo() {
|
|
2082
2082
|
const e = M();
|
|
2083
|
-
return /* @__PURE__ */ c(
|
|
2083
|
+
return /* @__PURE__ */ c(j, { children: [
|
|
2084
2084
|
/* @__PURE__ */ t(D1, { src: e.thumbnail }),
|
|
2085
2085
|
/* @__PURE__ */ t(Ge, {}),
|
|
2086
2086
|
/* @__PURE__ */ t(Be, {}),
|
|
2087
2087
|
/* @__PURE__ */ t(Ze, { captions: e.captions }),
|
|
2088
|
-
/* @__PURE__ */ t(
|
|
2089
|
-
/* @__PURE__ */ t(
|
|
2090
|
-
/* @__PURE__ */ t(
|
|
2088
|
+
/* @__PURE__ */ t(W1, {}),
|
|
2089
|
+
/* @__PURE__ */ t(_1, {}),
|
|
2090
|
+
/* @__PURE__ */ t(Qt, { comments: e.comments })
|
|
2091
2091
|
] });
|
|
2092
2092
|
}
|
|
2093
|
-
const
|
|
2093
|
+
const Wo = (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__ */ c("g", { id: "audio", children: [
|
|
2094
2094
|
/* @__PURE__ */ c("g", { id: "icon-file-base-2", children: [
|
|
2095
2095
|
/* @__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" }),
|
|
2096
2096
|
/* @__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" }),
|
|
@@ -2101,25 +2101,29 @@ const jo = (e) => /* @__PURE__ */ t("svg", { width: 56, height: 72, viewBox: "0
|
|
|
2101
2101
|
function Yo() {
|
|
2102
2102
|
const e = M();
|
|
2103
2103
|
return /* @__PURE__ */ c("div", { className: "audio-layout-wrapper", children: [
|
|
2104
|
-
/* @__PURE__ */ t(
|
|
2104
|
+
/* @__PURE__ */ t(Wo, {}),
|
|
2105
2105
|
/* @__PURE__ */ t(Ge, {}),
|
|
2106
2106
|
/* @__PURE__ */ t(Be, {}),
|
|
2107
2107
|
/* @__PURE__ */ t(Ze, { captions: e.captions })
|
|
2108
2108
|
] });
|
|
2109
2109
|
}
|
|
2110
|
-
function Xo(e, n
|
|
2110
|
+
function Xo(e, n) {
|
|
2111
|
+
return e.reduce((o, i) => (Object.keys(n).includes(i.id) || (o[i.id] = !0), o), n);
|
|
2112
|
+
}
|
|
2113
|
+
function Jo(e, n, o, i, s) {
|
|
2111
2114
|
return (a) => {
|
|
2112
|
-
const r = a.detail.currentTime, l = !o.paused;
|
|
2113
|
-
r >= e.time && !i[e.id] && (s({ ...i, [e.id]: !0 }), n(e, l));
|
|
2115
|
+
const r = a.detail.currentTime, l = !o.paused, u = Math.min(o.duration * 0.05, 2);
|
|
2116
|
+
r >= e.time && r < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), n(e, l));
|
|
2114
2117
|
};
|
|
2115
2118
|
}
|
|
2116
|
-
function
|
|
2119
|
+
function ei() {
|
|
2117
2120
|
const e = F(), { quizMarkers: n, onQuizMarkerShow: o } = M(), [i, s] = L(
|
|
2118
2121
|
n.reduce((a, r) => (a[r.id] = !1, a), {})
|
|
2119
2122
|
);
|
|
2120
2123
|
O(() => {
|
|
2121
2124
|
if (!e)
|
|
2122
2125
|
return;
|
|
2126
|
+
n.length > Object.keys(i).length && s(Xo(n, i));
|
|
2123
2127
|
const a = [], r = (l) => {
|
|
2124
2128
|
var b;
|
|
2125
2129
|
const u = (b = l == null ? void 0 : l.request) == null ? void 0 : b.detail, d = n.reduce((w, k) => (w[k.id] = k.time <= u, w), {});
|
|
@@ -2127,7 +2131,7 @@ function Jo() {
|
|
|
2127
2131
|
};
|
|
2128
2132
|
e.addEventListener("seeked", r);
|
|
2129
2133
|
for (const l of n) {
|
|
2130
|
-
const u =
|
|
2134
|
+
const u = Jo(
|
|
2131
2135
|
l,
|
|
2132
2136
|
o,
|
|
2133
2137
|
e,
|
|
@@ -2143,18 +2147,18 @@ function Jo() {
|
|
|
2143
2147
|
};
|
|
2144
2148
|
}, [n, e, i]);
|
|
2145
2149
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return
|
|
2150
|
+
function ti() {
|
|
2151
|
+
return ei(), null;
|
|
2148
2152
|
}
|
|
2149
|
-
function
|
|
2153
|
+
function ni(e) {
|
|
2150
2154
|
return Array.isArray(e) && typeof e[0] == "object";
|
|
2151
2155
|
}
|
|
2152
|
-
function
|
|
2153
|
-
return
|
|
2156
|
+
function oi(e) {
|
|
2157
|
+
return ni(e) && e.length === 1 ? e[0].src : e;
|
|
2154
2158
|
}
|
|
2155
2159
|
const ne = () => {
|
|
2156
2160
|
};
|
|
2157
|
-
function
|
|
2161
|
+
function mi({
|
|
2158
2162
|
title: e,
|
|
2159
2163
|
playerRef: n,
|
|
2160
2164
|
src: o,
|
|
@@ -2179,7 +2183,7 @@ function di({
|
|
|
2179
2183
|
disableStorage: Y = !1,
|
|
2180
2184
|
startAt: X,
|
|
2181
2185
|
crossOrigin: se,
|
|
2182
|
-
captionOffsetOverride:
|
|
2186
|
+
captionOffsetOverride: We,
|
|
2183
2187
|
disableInteractivePinRanges: Ye = []
|
|
2184
2188
|
}) {
|
|
2185
2189
|
const { contextValue: ae, shortcuts: Xe, storage: Je } = Go(
|
|
@@ -2191,7 +2195,7 @@ function di({
|
|
|
2191
2195
|
O(() => {
|
|
2192
2196
|
ve.changeLanguage(l);
|
|
2193
2197
|
}, [ve, l]);
|
|
2194
|
-
const [we, ye] = L("none"), et =
|
|
2198
|
+
const [we, ye] = L("none"), et = f((R) => {
|
|
2195
2199
|
mt(R) ? ye("audio") : ht(R) && ye("video");
|
|
2196
2200
|
}, []);
|
|
2197
2201
|
return /* @__PURE__ */ t(
|
|
@@ -2213,17 +2217,17 @@ function di({
|
|
|
2213
2217
|
forceComments: Z,
|
|
2214
2218
|
disableCaptionSettings: V,
|
|
2215
2219
|
disableStorage: Y,
|
|
2216
|
-
captionOffsetOverride:
|
|
2220
|
+
captionOffsetOverride: We,
|
|
2217
2221
|
disableInteractivePinRanges: Ye,
|
|
2218
2222
|
onQuizMarkerShow: y,
|
|
2219
2223
|
children: /* @__PURE__ */ t(wt, { contextValue: ae, children: /* @__PURE__ */ c(
|
|
2220
2224
|
pt,
|
|
2221
2225
|
{
|
|
2222
|
-
"data-version": "0.3.
|
|
2226
|
+
"data-version": "0.3.10",
|
|
2223
2227
|
crossOrigin: se,
|
|
2224
2228
|
storage: Y ? null : Je,
|
|
2225
2229
|
title: e,
|
|
2226
|
-
src:
|
|
2230
|
+
src: oi(o),
|
|
2227
2231
|
keyShortcuts: Xe,
|
|
2228
2232
|
playsInline: !0,
|
|
2229
2233
|
keyDisabled: ae.state.interactionsDisabled || ae.state.globalKeysDisabled,
|
|
@@ -2235,9 +2239,9 @@ function di({
|
|
|
2235
2239
|
},
|
|
2236
2240
|
onProviderSetup: et,
|
|
2237
2241
|
children: [
|
|
2238
|
-
/* @__PURE__ */ c(
|
|
2242
|
+
/* @__PURE__ */ c(ft, { className: jo.mediaProvider, children: [
|
|
2239
2243
|
we === "audio" && /* @__PURE__ */ t(Yo, {}),
|
|
2240
|
-
we === "video" && /* @__PURE__ */ t(
|
|
2244
|
+
we === "video" && /* @__PURE__ */ t(Qo, {})
|
|
2241
2245
|
] }),
|
|
2242
2246
|
/* @__PURE__ */ t(B1, {}),
|
|
2243
2247
|
/* @__PURE__ */ t(
|
|
@@ -2249,7 +2253,7 @@ function di({
|
|
|
2249
2253
|
}
|
|
2250
2254
|
),
|
|
2251
2255
|
/* @__PURE__ */ t(Mt, { annotations: u }),
|
|
2252
|
-
!!d.length && /* @__PURE__ */ t(
|
|
2256
|
+
!!d.length && /* @__PURE__ */ t(ti, {})
|
|
2253
2257
|
]
|
|
2254
2258
|
}
|
|
2255
2259
|
) })
|
|
@@ -2260,7 +2264,7 @@ export {
|
|
|
2260
2264
|
At as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
2261
2265
|
Bt as COMMENT_DURATION,
|
|
2262
2266
|
K as PLAYBACK_RATES,
|
|
2263
|
-
|
|
2264
|
-
|
|
2267
|
+
mi as StudioPlayer,
|
|
2268
|
+
fi as useMediaState,
|
|
2265
2269
|
_i as useMediaStore
|
|
2266
2270
|
};
|