markdown-flow-ui 0.1.128 → 0.2.0
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/components/ContentRender/ContentRender.cjs.js +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.js.map +1 -1
- package/dist/components/ContentRender/ContentRender.d.ts +4 -0
- package/dist/components/ContentRender/ContentRender.es.js +217 -211
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.cjs.js +3 -3
- package/dist/components/ContentRender/IframeSandbox.cjs.js.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.d.ts +3 -0
- package/dist/components/ContentRender/IframeSandbox.es.js +199 -186
- package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.js +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.js.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.d.ts +3 -0
- package/dist/components/ContentRender/MarkdownFlowInput.es.js +35 -32
- package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.stories.d.ts +6 -0
- package/dist/components/ContentRender/SandboxApp.cjs.js +2 -2
- package/dist/components/ContentRender/SandboxApp.cjs.js.map +1 -1
- package/dist/components/ContentRender/SandboxApp.d.ts +3 -0
- package/dist/components/ContentRender/SandboxApp.es.js +117 -104
- package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs.js +2 -0
- package/dist/components/ContentRender/contentRenderI18n.cjs.js.map +1 -0
- package/dist/components/ContentRender/contentRenderI18n.d.ts +15 -0
- package/dist/components/ContentRender/contentRenderI18n.es.js +59 -0
- package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -0
- package/dist/components/ContentRender/index.cjs.js +1 -1
- package/dist/components/ContentRender/index.d.ts +1 -0
- package/dist/components/ContentRender/index.es.js +1 -0
- package/dist/components/ContentRender/index.es.js.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.js +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.js.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.d.ts +3 -1
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +131 -124
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.js +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +3 -0
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js +18 -15
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.stories.d.ts +6 -0
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -0
- package/dist/components/MarkdownFlow/index.cjs.js +1 -1
- package/dist/components/MarkdownFlow/index.es.js +1 -0
- package/dist/components/MarkdownFlow/index.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.js +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -2
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +23 -22
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.stories.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs.js +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +0 -2
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -24
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/index.d.ts +1 -1
- package/dist/components/Slide/Player.cjs.js +1 -1
- package/dist/components/Slide/Player.cjs.js.map +1 -1
- package/dist/components/Slide/Player.d.ts +30 -30
- package/dist/components/Slide/Player.es.js +721 -638
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs.js +1 -1
- package/dist/components/Slide/Slide.cjs.js.map +1 -1
- package/dist/components/Slide/Slide.d.ts +22 -4
- package/dist/components/Slide/Slide.es.js +758 -638
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/Slide.stories.d.ts +19 -20
- package/dist/components/Slide/constants.d.ts +0 -24
- package/dist/components/Slide/index.d.ts +2 -1
- package/dist/components/Slide/slideI18n.cjs.js +2 -0
- package/dist/components/Slide/slideI18n.cjs.js.map +1 -0
- package/dist/components/Slide/slideI18n.d.ts +44 -0
- package/dist/components/Slide/slideI18n.es.js +162 -0
- package/dist/components/Slide/slideI18n.es.js.map +1 -0
- package/dist/components/Slide/useSlide.cjs.js +1 -1
- package/dist/components/Slide/useSlide.cjs.js.map +1 -1
- package/dist/components/Slide/useSlide.d.ts +2 -0
- package/dist/components/Slide/useSlide.es.js +124 -105
- package/dist/components/Slide/useSlide.es.js.map +1 -1
- package/dist/components/Slide/utils/audioSegments.cjs.js +2 -0
- package/dist/components/Slide/utils/audioSegments.cjs.js.map +1 -0
- package/dist/components/Slide/utils/audioSegments.d.ts +2 -0
- package/dist/components/Slide/utils/audioSegments.es.js +21 -0
- package/dist/components/Slide/utils/audioSegments.es.js.map +1 -0
- package/dist/components/Slide/utils/audioSegments.test.d.ts +1 -0
- package/dist/components/Slide/utils/playbackSequence.cjs.js +1 -1
- package/dist/components/Slide/utils/playbackSequence.cjs.js.map +1 -1
- package/dist/components/Slide/utils/playbackSequence.d.ts +10 -0
- package/dist/components/Slide/utils/playbackSequence.es.js +15 -6
- package/dist/components/Slide/utils/playbackSequence.es.js.map +1 -1
- package/dist/components/Slide/utils/playerVisibility.cjs.js +2 -0
- package/dist/components/Slide/utils/playerVisibility.cjs.js.map +1 -0
- package/dist/components/Slide/utils/playerVisibility.d.ts +10 -0
- package/dist/components/Slide/utils/playerVisibility.es.js +11 -0
- package/dist/components/Slide/utils/playerVisibility.es.js.map +1 -0
- package/dist/components/Slide/utils/playerVisibility.test.d.ts +1 -0
- package/dist/components/Slide/utils/subtitleCue.cjs.js +2 -2
- package/dist/components/Slide/utils/subtitleCue.cjs.js.map +1 -1
- package/dist/components/Slide/utils/subtitleCue.d.ts +21 -0
- package/dist/components/Slide/utils/subtitleCue.es.js +146 -49
- package/dist/components/Slide/utils/subtitleCue.es.js.map +1 -1
- package/dist/components/Slide/utils/subtitleJumpNavigation.cjs.js +2 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.cjs.js.map +1 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +10 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.es.js +22 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.es.js.map +1 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.test.d.ts +1 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/editor.d.ts +3 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +14 -13
- package/dist/index.es.js.map +1 -1
- package/dist/lib/locale.cjs.js +2 -0
- package/dist/lib/locale.cjs.js.map +1 -0
- package/dist/lib/locale.d.ts +4 -0
- package/dist/lib/locale.es.js +19 -0
- package/dist/lib/locale.es.js.map +1 -0
- package/dist/lib/localeTextMap.cjs.js +2 -0
- package/dist/lib/localeTextMap.cjs.js.map +1 -0
- package/dist/lib/localeTextMap.d.ts +4 -0
- package/dist/lib/localeTextMap.es.js +5 -0
- package/dist/lib/localeTextMap.es.js.map +1 -0
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js.map +1 -0
- package/dist/renderer.cjs.js +1 -1
- package/dist/renderer.d.ts +1 -0
- package/dist/renderer.es.js +15 -14
- package/dist/renderer.es.js.map +1 -1
- package/dist/slide.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/Slide/constants.cjs.js +0 -2
- package/dist/components/Slide/constants.cjs.js.map +0 -1
- package/dist/components/Slide/constants.es.js +0 -28
- package/dist/components/Slide/constants.es.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.cjs.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.cjs.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.es.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.es.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.cjs.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.cjs.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.es.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.es.js.map +0 -1
|
@@ -1,36 +1,54 @@
|
|
|
1
1
|
import { j as n } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_MOBILE_VIEW_MODE as
|
|
7
|
-
import { hasReachedAudioEnd as
|
|
8
|
-
import { PlayerKeyboardShortcutContext as
|
|
9
|
-
import { activatePlayerKeyboardShortcutOwner as
|
|
10
|
-
import { resolveAudioPlaybackSourceType as
|
|
11
|
-
import { shouldKeepPlayingAfterNavigation as
|
|
12
|
-
import { toPlayerCustomActionList as
|
|
13
|
-
import { suppressPlayerControlsWakeAfterNavigation as
|
|
14
|
-
import { isPlaybackTimeCoveredBySegments as
|
|
15
|
-
import {
|
|
2
|
+
import rr, { memo as nr, useId as ur, useContext as sr, useRef as o, useState as Fe, useMemo as te, useCallback as r, useEffect as S } from "react";
|
|
3
|
+
import { cn as Lt } from "../../lib/utils.es.js";
|
|
4
|
+
import lr from "./MobilePlayerSettingsSheet.es.js";
|
|
5
|
+
import { getSlidePlayerTexts as ar } from "./slideI18n.es.js";
|
|
6
|
+
import { DEFAULT_MOBILE_VIEW_MODE as cr } from "./utils/mobileScreenMode.es.js";
|
|
7
|
+
import { hasReachedAudioEnd as ir } from "./utils/audioCompletion.es.js";
|
|
8
|
+
import { PlayerKeyboardShortcutContext as or } from "./utils/playerKeyboardShortcutContext.es.js";
|
|
9
|
+
import { activatePlayerKeyboardShortcutOwner as fr, registerPlayerKeyboardShortcutOwner as dr, isActivePlayerKeyboardShortcutOwner as mr, getPlayerKeyboardShortcutAction as pr, shouldIgnorePlayerKeyboardShortcutEvent as hr } from "./utils/playerKeyboardShortcuts.es.js";
|
|
10
|
+
import { resolveAudioPlaybackSourceType as yr } from "./utils/playbackSource.es.js";
|
|
11
|
+
import { shouldKeepPlayingAfterNavigation as br } from "./utils/playbackPreference.es.js";
|
|
12
|
+
import { toPlayerCustomActionList as Sr } from "./utils/playerCustomActions.es.js";
|
|
13
|
+
import { suppressPlayerControlsWakeAfterNavigation as Pe } from "./utils/playerNavigationContext.es.js";
|
|
14
|
+
import { isPlaybackTimeCoveredBySegments as vt, resolveSegmentSeekTarget as gr } from "./utils/segmentSeek.es.js";
|
|
15
|
+
import { getSortedAudioSegments as At } from "./utils/audioSegments.es.js";
|
|
16
|
+
import { getSubtitleCueJumpTarget as _r, shouldClearSubtitleCueJumpTarget as xr } from "./utils/subtitleCue.es.js";
|
|
16
17
|
/* empty css */
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
const
|
|
29
|
-
if (typeof window > "u" || !
|
|
18
|
+
import kr from "../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
|
|
19
|
+
import wr from "../../node_modules/lucide-react/dist/esm/icons/volume-2.es.js";
|
|
20
|
+
import Mr from "../../node_modules/lucide-react/dist/esm/icons/skip-back.es.js";
|
|
21
|
+
import Cr from "../../node_modules/lucide-react/dist/esm/icons/skip-forward.es.js";
|
|
22
|
+
import Tr from "../../node_modules/lucide-react/dist/esm/icons/rewind.es.js";
|
|
23
|
+
import Lr from "../../node_modules/lucide-react/dist/esm/icons/fast-forward.es.js";
|
|
24
|
+
import vr from "../../node_modules/lucide-react/dist/esm/icons/captions.es.js";
|
|
25
|
+
import Ar from "../../node_modules/lucide-react/dist/esm/icons/captions-off.es.js";
|
|
26
|
+
import jr from "../../node_modules/lucide-react/dist/esm/icons/scan-line.es.js";
|
|
27
|
+
import Nr from "../../node_modules/lucide-react/dist/esm/icons/maximize.es.js";
|
|
28
|
+
import Rr from "../../node_modules/lucide-react/dist/esm/icons/file-pen-line.es.js";
|
|
29
|
+
const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
30
|
+
if (typeof window > "u" || !f || jt.has(f))
|
|
30
31
|
return;
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
},
|
|
32
|
+
const d = window.document.createElement("audio");
|
|
33
|
+
d.preload = "auto", d.setAttribute("playsinline", "true"), d.src = f, d.load(), jt.set(f, d);
|
|
34
|
+
}, Er = (f, d) => d !== null && d.audioList === f && d.subtitleCueLists.length === f.length && f.every((a, _) => {
|
|
35
|
+
const x = a.element?.subtitle_cues;
|
|
36
|
+
return d.subtitleCueLists[_] === x && d.subtitleCueLengths[_] === (x?.length ?? 0);
|
|
37
|
+
}), Kr = (f) => {
|
|
38
|
+
const d = f.map(
|
|
39
|
+
(a) => a.element?.subtitle_cues
|
|
40
|
+
);
|
|
41
|
+
return {
|
|
42
|
+
audioList: f,
|
|
43
|
+
subtitleCueLists: d,
|
|
44
|
+
subtitleCueLengths: d.map(
|
|
45
|
+
(a) => a?.length ?? 0
|
|
46
|
+
),
|
|
47
|
+
tracks: d.map((a) => ({
|
|
48
|
+
subtitleCues: a ?? []
|
|
49
|
+
}))
|
|
50
|
+
};
|
|
51
|
+
}, Ur = () => /* @__PURE__ */ n.jsxs(
|
|
34
52
|
"svg",
|
|
35
53
|
{
|
|
36
54
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -49,7 +67,7 @@ const _t = /* @__PURE__ */ new Map(), xt = (R) => {
|
|
|
49
67
|
/* @__PURE__ */ n.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
|
|
50
68
|
]
|
|
51
69
|
}
|
|
52
|
-
),
|
|
70
|
+
), Fr = () => /* @__PURE__ */ n.jsxs(
|
|
53
71
|
"svg",
|
|
54
72
|
{
|
|
55
73
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -68,7 +86,7 @@ const _t = /* @__PURE__ */ new Map(), xt = (R) => {
|
|
|
68
86
|
/* @__PURE__ */ n.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
|
|
69
87
|
]
|
|
70
88
|
}
|
|
71
|
-
),
|
|
89
|
+
), J = {
|
|
72
90
|
fullscreen: "F",
|
|
73
91
|
next: "→",
|
|
74
92
|
nextSubtitle: "Shift+→",
|
|
@@ -77,386 +95,425 @@ const _t = /* @__PURE__ */ new Map(), xt = (R) => {
|
|
|
77
95
|
previous: "←",
|
|
78
96
|
previousSubtitle: "Shift+←",
|
|
79
97
|
subtitle: "C"
|
|
80
|
-
},
|
|
81
|
-
audioList:
|
|
82
|
-
className:
|
|
83
|
-
currentAudioIndex:
|
|
84
|
-
defaultPlaying:
|
|
85
|
-
isPlaybackPaused:
|
|
86
|
-
isAutoAdvanceEnabled:
|
|
98
|
+
}, Pr = 250, Wr = (f, d) => f ? `${f} (${d})` : d, Br = ({
|
|
99
|
+
audioList: f = [],
|
|
100
|
+
className: d,
|
|
101
|
+
currentAudioIndex: a = -1,
|
|
102
|
+
defaultPlaying: _ = !0,
|
|
103
|
+
isPlaybackPaused: x = !1,
|
|
104
|
+
isAutoAdvanceEnabled: Z = !0,
|
|
87
105
|
useAutoAdvanceToggle: F = !1,
|
|
88
|
-
onLoadingChange:
|
|
89
|
-
onPlaybackPreferenceChange:
|
|
90
|
-
onPlaybackStarted:
|
|
91
|
-
onPlaybackTimeChange:
|
|
92
|
-
onSubtitleToggle:
|
|
93
|
-
onPrev:
|
|
94
|
-
onNext:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
onLoadingChange: We,
|
|
107
|
+
onPlaybackPreferenceChange: Be,
|
|
108
|
+
onPlaybackStarted: Oe,
|
|
109
|
+
onPlaybackTimeChange: oe,
|
|
110
|
+
onSubtitleToggle: re,
|
|
111
|
+
onPrev: fe,
|
|
112
|
+
onNext: de,
|
|
113
|
+
onSubtitleJump: me,
|
|
114
|
+
canJumpToSubtitleTarget: Te,
|
|
115
|
+
onFullscreen: ne,
|
|
116
|
+
isFullscreen: Ve = !1,
|
|
117
|
+
mobileViewMode: Rt = cr,
|
|
118
|
+
settingsPortalContainer: Et,
|
|
119
|
+
onMobileViewModeChange: He,
|
|
120
|
+
onEnded: $e,
|
|
121
|
+
onAutoAdvanceToggle: Je,
|
|
122
|
+
onInteractionToggle: pe,
|
|
123
|
+
hasInteraction: Le = !1,
|
|
124
|
+
isInteractionOpen: ue = !1,
|
|
125
|
+
isSubtitleEnabled: ve = !0,
|
|
126
|
+
prevDisabled: Ae = !1,
|
|
127
|
+
nextDisabled: je = !1,
|
|
128
|
+
showControls: Ne = !0,
|
|
129
|
+
onControlsPointerEnter: Kt,
|
|
130
|
+
onControlsPointerLeave: Ut,
|
|
131
|
+
enableKeyboardShortcuts: Ft = !0,
|
|
132
|
+
subtitleSeekRequest: O = null,
|
|
133
|
+
customActions: Ze,
|
|
134
|
+
customActionContext: ze,
|
|
135
|
+
locale: Ye,
|
|
136
|
+
texts: De,
|
|
137
|
+
onFocusCapture: Ge,
|
|
138
|
+
onPointerDown: Qe,
|
|
139
|
+
...Pt
|
|
116
140
|
}) => {
|
|
117
|
-
const
|
|
118
|
-
F ?
|
|
119
|
-
),
|
|
120
|
-
}),
|
|
141
|
+
const Wt = ur(), Xe = sr(or), M = o(null), qe = o(ue), E = o(null), Ie = o(null), K = o(0), m = o(null), he = o(void 0), j = o([]), se = o(
|
|
142
|
+
F ? Z : _
|
|
143
|
+
), le = o(!1), et = o(!1), k = o(!1), U = o(null), z = o(null), v = o(!1), c = o(!1), w = o(null), N = o(!1), Y = o(null), ye = o(0), tt = o(() => {
|
|
144
|
+
}), be = o(null), ae = o(null), rt = o(null), nt = o(null), P = o("unknown"), [Se, h] = Fe(_), [ut, X] = Fe(!1), [q, Bt] = Fe({
|
|
121
145
|
next: !1,
|
|
122
146
|
previous: !1
|
|
123
|
-
}),
|
|
124
|
-
() =>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
[Pe, We]
|
|
134
|
-
), De = Ye.length + 7, vt = Y(
|
|
147
|
+
}), D = Xe?.ownerId ?? Wt, W = Ft && (Xe?.enabled ?? !0), p = a >= 0 ? f[a] : void 0, T = p?.audioUrl, st = p?.audioSegments, Ot = st?.length ?? 0, R = te(
|
|
148
|
+
() => At(p),
|
|
149
|
+
[p, Ot, st]
|
|
150
|
+
);
|
|
151
|
+
let ge = nt.current;
|
|
152
|
+
Er(f, ge) || (ge = Kr(f), nt.current = ge);
|
|
153
|
+
const lt = ge.tracks, at = te(
|
|
154
|
+
() => Sr(Ze, ze),
|
|
155
|
+
[ze, Ze]
|
|
156
|
+
), ct = at.length + 7, Vt = te(
|
|
135
157
|
() => ({
|
|
136
|
-
"--slide-player-mobile-control-count": String(
|
|
158
|
+
"--slide-player-mobile-control-count": String(ct)
|
|
137
159
|
}),
|
|
138
|
-
[
|
|
139
|
-
),
|
|
160
|
+
[ct]
|
|
161
|
+
), i = te(
|
|
140
162
|
() => ({
|
|
141
|
-
...
|
|
142
|
-
...
|
|
163
|
+
...ar(Ye),
|
|
164
|
+
...De
|
|
143
165
|
}),
|
|
144
|
-
[
|
|
145
|
-
),
|
|
166
|
+
[Ye, De]
|
|
167
|
+
), Re = te(() => p ? p.audioKey ?? `${String(p.sequenceNumber ?? "none")}:${String(p.audioUrl ?? "")}` : "none", [p]), Ht = F ? Z : Se, it = F ? Z ? i.pauseAutoplayLabel : i.playAutoplayLabel : Se ? i.pauseLabel : i.playLabel, ot = Ve ? i.exitFullscreenLabel : i.enterFullscreenLabel, V = r(
|
|
146
168
|
(e, t, s) => ({
|
|
147
|
-
ariaKeyShortcuts:
|
|
148
|
-
title:
|
|
169
|
+
ariaKeyShortcuts: W ? s : void 0,
|
|
170
|
+
title: W ? Wr(e, t) : e
|
|
149
171
|
}),
|
|
150
|
-
[
|
|
151
|
-
),
|
|
152
|
-
|
|
153
|
-
|
|
172
|
+
[W]
|
|
173
|
+
), ft = V(
|
|
174
|
+
i.subtitleToggleAriaLabel,
|
|
175
|
+
J.subtitle,
|
|
154
176
|
"c"
|
|
155
|
-
),
|
|
156
|
-
|
|
157
|
-
|
|
177
|
+
), dt = V(
|
|
178
|
+
i.previousLabel,
|
|
179
|
+
J.previous,
|
|
158
180
|
"ArrowLeft"
|
|
159
|
-
),
|
|
160
|
-
|
|
161
|
-
|
|
181
|
+
), mt = V(
|
|
182
|
+
i.previousSubtitleLabel,
|
|
183
|
+
J.previousSubtitle,
|
|
162
184
|
"Shift+ArrowLeft"
|
|
163
|
-
),
|
|
164
|
-
|
|
165
|
-
|
|
185
|
+
), pt = V(
|
|
186
|
+
it,
|
|
187
|
+
J.playback,
|
|
166
188
|
"Space"
|
|
167
|
-
),
|
|
168
|
-
|
|
169
|
-
|
|
189
|
+
), ht = V(
|
|
190
|
+
i.nextLabel,
|
|
191
|
+
J.next,
|
|
170
192
|
"ArrowRight"
|
|
171
|
-
),
|
|
172
|
-
|
|
173
|
-
|
|
193
|
+
), yt = V(
|
|
194
|
+
i.nextSubtitleLabel,
|
|
195
|
+
J.nextSubtitle,
|
|
174
196
|
"Shift+ArrowRight"
|
|
175
|
-
),
|
|
176
|
-
|
|
177
|
-
|
|
197
|
+
), bt = V(
|
|
198
|
+
ot,
|
|
199
|
+
J.fullscreen,
|
|
178
200
|
"f"
|
|
179
|
-
),
|
|
180
|
-
|
|
181
|
-
|
|
201
|
+
), St = V(
|
|
202
|
+
i.notesLabel,
|
|
203
|
+
J.notes,
|
|
182
204
|
"n"
|
|
183
|
-
),
|
|
184
|
-
|
|
185
|
-
}, [
|
|
205
|
+
), _e = r(() => {
|
|
206
|
+
W && fr(D);
|
|
207
|
+
}, [D, W]), $t = r(
|
|
186
208
|
(e) => {
|
|
187
|
-
|
|
209
|
+
_e(), Qe?.(e);
|
|
188
210
|
},
|
|
189
|
-
[
|
|
190
|
-
),
|
|
211
|
+
[_e, Qe]
|
|
212
|
+
), Jt = r(
|
|
191
213
|
(e) => {
|
|
192
|
-
|
|
214
|
+
_e(), Ge?.(e);
|
|
193
215
|
},
|
|
194
|
-
[
|
|
216
|
+
[_e, Ge]
|
|
195
217
|
);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}, [
|
|
199
|
-
|
|
200
|
-
}, [
|
|
201
|
-
|
|
202
|
-
}, [
|
|
203
|
-
!
|
|
204
|
-
}, [
|
|
205
|
-
j.current =
|
|
206
|
-
}, [
|
|
207
|
-
const e =
|
|
208
|
-
|
|
209
|
-
}, [
|
|
210
|
-
const
|
|
218
|
+
S(() => {
|
|
219
|
+
he.current = p;
|
|
220
|
+
}, [p]), S(() => {
|
|
221
|
+
se.current = F ? Z : _;
|
|
222
|
+
}, [_, Z, F]), S(() => {
|
|
223
|
+
Ne || X(!1);
|
|
224
|
+
}, [Ne]), S(() => {
|
|
225
|
+
!qe.current && ue && X(!1), qe.current = ue;
|
|
226
|
+
}, [ue]), S(() => {
|
|
227
|
+
j.current = R;
|
|
228
|
+
}, [R]), S(() => {
|
|
229
|
+
const e = p?.audioUrl, t = a >= 0 ? f[a + 1]?.audioUrl : void 0;
|
|
230
|
+
Nt(e), Nt(t);
|
|
231
|
+
}, [f, p?.audioUrl, a]);
|
|
232
|
+
const l = r(
|
|
211
233
|
(e, t = null) => {
|
|
212
|
-
|
|
234
|
+
et.current === e && (!e || t === null) || (et.current = e, We?.({
|
|
213
235
|
loading: e,
|
|
214
236
|
reason: e ? t : null
|
|
215
237
|
}));
|
|
216
238
|
},
|
|
217
|
-
[
|
|
239
|
+
[We]
|
|
218
240
|
), B = r(
|
|
219
241
|
(e) => {
|
|
220
|
-
|
|
242
|
+
se.current = e, Be?.(e);
|
|
221
243
|
},
|
|
222
|
-
[
|
|
223
|
-
),
|
|
224
|
-
shouldContinuePlayback:
|
|
244
|
+
[Be]
|
|
245
|
+
), G = r(() => F ? {
|
|
246
|
+
shouldContinuePlayback: se.current
|
|
225
247
|
} : {
|
|
226
|
-
shouldContinuePlayback:
|
|
227
|
-
defaultPlaying:
|
|
228
|
-
isPausedByUser:
|
|
248
|
+
shouldContinuePlayback: br({
|
|
249
|
+
defaultPlaying: se.current,
|
|
250
|
+
isPausedByUser: k.current
|
|
229
251
|
})
|
|
230
|
-
}, [F]),
|
|
231
|
-
const e =
|
|
252
|
+
}, [F]), gt = r((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), H = r(() => _ && !x && !k.current && P.current !== "blocked", [_, x]), _t = r((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), xt = r(() => {
|
|
253
|
+
const e = m.current;
|
|
232
254
|
return e == null || e <= 0 ? 0 : j.current.slice(0, e).reduce(
|
|
233
255
|
(t, s) => t + Math.max(Number(s.duration_ms ?? 0), 0),
|
|
234
256
|
0
|
|
235
257
|
) / 1e3;
|
|
236
|
-
}, []),
|
|
258
|
+
}, []), Q = r((e) => e <= 0 ? 0 : j.current.slice(0, e).reduce(
|
|
237
259
|
(t, s) => t + Math.max(Number(s.duration_ms ?? 0), 0),
|
|
238
260
|
0
|
|
239
|
-
), []),
|
|
240
|
-
(e) => !
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
261
|
+
), []), xe = r(
|
|
262
|
+
(e, t) => !e || x ? !1 : e.audioUrl ? !0 : vt(
|
|
263
|
+
At(e),
|
|
264
|
+
t
|
|
265
|
+
),
|
|
266
|
+
[x]
|
|
267
|
+
), ce = r(
|
|
268
|
+
(e, t, s = {}) => {
|
|
269
|
+
const u = _r({
|
|
270
|
+
currentAudioIndex: a,
|
|
245
271
|
currentTimeMs: t,
|
|
246
272
|
direction: e,
|
|
247
|
-
|
|
273
|
+
excludeTarget: s.excludeTarget,
|
|
274
|
+
tracks: lt
|
|
248
275
|
});
|
|
249
|
-
return
|
|
276
|
+
return !u || !xe(
|
|
277
|
+
f[u.audioIndex],
|
|
278
|
+
u.timeMs
|
|
279
|
+
) || u.audioIndex !== a && (!me || Te && !Te(u)) ? null : u;
|
|
250
280
|
},
|
|
251
|
-
[
|
|
252
|
-
|
|
281
|
+
[
|
|
282
|
+
f,
|
|
283
|
+
Te,
|
|
284
|
+
xe,
|
|
285
|
+
a,
|
|
286
|
+
me,
|
|
287
|
+
lt
|
|
288
|
+
]
|
|
289
|
+
), Ee = r(
|
|
253
290
|
(e, t = !1) => {
|
|
254
291
|
const s = Math.max(Number(e), 0);
|
|
255
|
-
if (!t &&
|
|
256
|
-
s -
|
|
257
|
-
) <
|
|
292
|
+
if (!t && be.current !== null && Math.abs(
|
|
293
|
+
s - be.current
|
|
294
|
+
) < Pr)
|
|
258
295
|
return;
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
previous:
|
|
262
|
-
next:
|
|
296
|
+
be.current = s;
|
|
297
|
+
const u = {
|
|
298
|
+
previous: ce("previous", s) !== null,
|
|
299
|
+
next: ce("next", s) !== null
|
|
263
300
|
};
|
|
264
|
-
|
|
301
|
+
Bt((b) => b.previous === u.previous && b.next === u.next ? b : u);
|
|
265
302
|
},
|
|
266
|
-
[
|
|
303
|
+
[ce]
|
|
267
304
|
);
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}, [
|
|
271
|
-
const
|
|
272
|
-
const e =
|
|
273
|
-
return e ? U.current === "segment" ?
|
|
274
|
-
}, [
|
|
305
|
+
S(() => {
|
|
306
|
+
tt.current = Ee, Ee(ye.current, !0);
|
|
307
|
+
}, [Ee]);
|
|
308
|
+
const ke = r(() => {
|
|
309
|
+
const e = M.current;
|
|
310
|
+
return e ? U.current === "segment" ? Q(K.current) + Math.max(e.currentTime, 0) * 1e3 : w.current !== null && e.readyState === 0 ? w.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : m.current != null ? Q(m.current) : 0;
|
|
311
|
+
}, [Q]), C = r(
|
|
275
312
|
(e) => {
|
|
276
313
|
const t = Math.max(e, 0);
|
|
277
|
-
|
|
314
|
+
ye.current !== t && (ye.current = t, xr({
|
|
315
|
+
currentAudioIndex: a,
|
|
316
|
+
currentTimeMs: t,
|
|
317
|
+
target: ae.current
|
|
318
|
+
}) && (ae.current = null), oe?.(t), tt.current(t));
|
|
278
319
|
},
|
|
279
|
-
[
|
|
280
|
-
),
|
|
281
|
-
|
|
282
|
-
}, [
|
|
283
|
-
typeof window > "u" ||
|
|
284
|
-
}, []),
|
|
285
|
-
if (typeof window > "u" ||
|
|
320
|
+
[a, oe]
|
|
321
|
+
), y = r(() => {
|
|
322
|
+
C(ke());
|
|
323
|
+
}, [ke, C]), g = r(() => {
|
|
324
|
+
typeof window > "u" || Y.current === null || (window.cancelAnimationFrame(Y.current), Y.current = null);
|
|
325
|
+
}, []), kt = r(() => {
|
|
326
|
+
if (typeof window > "u" || Y.current !== null)
|
|
286
327
|
return;
|
|
287
328
|
const e = () => {
|
|
288
|
-
|
|
289
|
-
const t =
|
|
329
|
+
y();
|
|
330
|
+
const t = M.current;
|
|
290
331
|
if (!t || t.paused || t.ended) {
|
|
291
|
-
|
|
332
|
+
Y.current = null;
|
|
292
333
|
return;
|
|
293
334
|
}
|
|
294
|
-
|
|
335
|
+
Y.current = window.requestAnimationFrame(e);
|
|
295
336
|
};
|
|
296
|
-
|
|
297
|
-
}, [
|
|
298
|
-
const e =
|
|
299
|
-
e && (
|
|
300
|
-
}, [
|
|
337
|
+
Y.current = window.requestAnimationFrame(e);
|
|
338
|
+
}, [y]), I = r(() => {
|
|
339
|
+
const e = M.current;
|
|
340
|
+
e && (g(), c.current = !1, k.current = !1, le.current = !1, U.current = null, w.current = null, v.current = !1, N.current = !1, z.current = null, e.pause(), e.removeAttribute("src"), e.load(), E.current = null, K.current = 0, m.current = null, C(0), h(!1), l(!1));
|
|
341
|
+
}, [C, g, l]), L = r(
|
|
301
342
|
(e) => {
|
|
302
|
-
const t =
|
|
343
|
+
const t = M.current;
|
|
303
344
|
if (!t)
|
|
304
345
|
return !1;
|
|
305
346
|
const s = t.play();
|
|
306
347
|
return s && typeof s.then == "function" && s.then(() => {
|
|
307
|
-
|
|
308
|
-
}).catch((
|
|
309
|
-
|
|
348
|
+
P.current === "unknown" && (P.current = "auto"), c.current = !1, N.current = !1;
|
|
349
|
+
}).catch((u) => {
|
|
350
|
+
P.current === "unknown" && gt(u) && (P.current = "blocked", c.current = !1, l(!1)), N.current = !1, h(!1);
|
|
310
351
|
}), !0;
|
|
311
352
|
},
|
|
312
|
-
[
|
|
313
|
-
),
|
|
353
|
+
[gt, l]
|
|
354
|
+
), A = r(
|
|
314
355
|
(e, t, s = {}) => {
|
|
315
|
-
const
|
|
316
|
-
if (!
|
|
356
|
+
const u = M.current, b = j.current[e];
|
|
357
|
+
if (!u || !b)
|
|
317
358
|
return !1;
|
|
318
|
-
const
|
|
359
|
+
const $ = _t(b.audio_data), Ce = Math.max(
|
|
319
360
|
Number(s.seekTimeSeconds ?? 0),
|
|
320
361
|
0
|
|
321
362
|
);
|
|
322
|
-
K.current = e,
|
|
323
|
-
|
|
363
|
+
K.current = e, m.current = null, v.current = !1, N.current = !0, z.current = "segment", C(
|
|
364
|
+
Q(e) + Ce * 1e3
|
|
324
365
|
);
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
return U.current = "segment",
|
|
366
|
+
const Tt = s.shouldResume ?? H();
|
|
367
|
+
c.current = Tt, l(!1);
|
|
368
|
+
const tr = E.current !== $;
|
|
369
|
+
return U.current = "segment", tr && (u.pause(), u.removeAttribute("src"), u.load(), E.current = $, u.src = $, u.load()), w.current = Ce, u.readyState > 0 && (u.currentTime = Ce, w.current = null), Tt ? L(`start-segment:${t}`) : (c.current = !1, N.current = !1, u.pause(), h(!1), !0);
|
|
329
370
|
},
|
|
330
371
|
[
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
372
|
+
H,
|
|
373
|
+
_t,
|
|
374
|
+
Q,
|
|
375
|
+
C,
|
|
376
|
+
L,
|
|
377
|
+
l
|
|
337
378
|
]
|
|
338
|
-
),
|
|
379
|
+
), we = r(
|
|
339
380
|
(e) => {
|
|
340
|
-
const t =
|
|
341
|
-
if (!t || !
|
|
381
|
+
const t = M.current;
|
|
382
|
+
if (!t || !p || x)
|
|
342
383
|
return !1;
|
|
343
|
-
const s = Math.max(Number(e), 0),
|
|
384
|
+
const s = Math.max(Number(e), 0), u = !t.paused && !t.ended || c.current || N.current || m.current !== null && se.current && !k.current, b = vt(
|
|
344
385
|
j.current,
|
|
345
386
|
s
|
|
346
|
-
) ?
|
|
387
|
+
) ? gr(
|
|
347
388
|
j.current,
|
|
348
389
|
s
|
|
349
390
|
) : null;
|
|
350
|
-
if (
|
|
351
|
-
return
|
|
352
|
-
|
|
391
|
+
if (be.current = null, g(), c.current = u, l(!1), u && (P.current = "manual", k.current = !1, B(!0)), b && (U.current === "segment" || !T))
|
|
392
|
+
return A(
|
|
393
|
+
b.segmentIndex,
|
|
353
394
|
"subtitle-seek-segment",
|
|
354
395
|
{
|
|
355
|
-
seekTimeSeconds:
|
|
356
|
-
shouldResume:
|
|
396
|
+
seekTimeSeconds: b.segmentTimeSeconds,
|
|
397
|
+
shouldResume: u
|
|
357
398
|
}
|
|
358
399
|
);
|
|
359
|
-
if (
|
|
360
|
-
const
|
|
361
|
-
return E.current !==
|
|
400
|
+
if (T) {
|
|
401
|
+
const $ = s / 1e3;
|
|
402
|
+
return E.current !== T && (t.pause(), t.removeAttribute("src"), t.load(), E.current = T, U.current = "url", z.current = "url", t.src = T, t.load()), w.current = $, C(s), t.readyState > 0 && (t.currentTime = $, w.current = null), u ? L("subtitle-seek-url") : (c.current = !1, t.pause(), h(!1), !0);
|
|
362
403
|
}
|
|
363
404
|
return !1;
|
|
364
405
|
},
|
|
365
406
|
[
|
|
366
|
-
|
|
367
|
-
g,
|
|
407
|
+
p,
|
|
368
408
|
T,
|
|
369
409
|
x,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
410
|
+
C,
|
|
411
|
+
A,
|
|
412
|
+
g,
|
|
413
|
+
L,
|
|
414
|
+
l,
|
|
374
415
|
B
|
|
375
416
|
]
|
|
376
|
-
),
|
|
417
|
+
), ie = r(
|
|
377
418
|
(e) => {
|
|
378
|
-
const t =
|
|
419
|
+
const t = ce(
|
|
379
420
|
e,
|
|
380
|
-
|
|
421
|
+
ke(),
|
|
422
|
+
{
|
|
423
|
+
excludeTarget: e === "previous" ? ae.current : null
|
|
424
|
+
}
|
|
381
425
|
);
|
|
382
|
-
|
|
426
|
+
if (t === null)
|
|
427
|
+
return !1;
|
|
428
|
+
if (t.audioIndex === a) {
|
|
429
|
+
const u = we(t.timeMs);
|
|
430
|
+
return u && (ae.current = t), u;
|
|
431
|
+
}
|
|
432
|
+
const s = !!me?.(
|
|
433
|
+
t,
|
|
434
|
+
Pe(G())
|
|
435
|
+
);
|
|
436
|
+
return s && (ae.current = t), s;
|
|
383
437
|
},
|
|
384
438
|
[
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
439
|
+
a,
|
|
440
|
+
ke,
|
|
441
|
+
G,
|
|
442
|
+
ce,
|
|
443
|
+
me,
|
|
444
|
+
we
|
|
388
445
|
]
|
|
389
|
-
),
|
|
446
|
+
), ee = r(
|
|
390
447
|
(e) => {
|
|
391
|
-
|
|
448
|
+
g(), c.current = !1, v.current = !1, N.current = !1, y(), h(!1), l(!1), a >= 0 && $e?.(a);
|
|
392
449
|
},
|
|
393
450
|
[
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
451
|
+
a,
|
|
452
|
+
$e,
|
|
453
|
+
g,
|
|
454
|
+
y,
|
|
455
|
+
l
|
|
399
456
|
]
|
|
400
|
-
),
|
|
457
|
+
), Me = r(
|
|
401
458
|
(e) => {
|
|
402
|
-
const t =
|
|
403
|
-
return !t || U.current !== "url" || !
|
|
459
|
+
const t = M.current;
|
|
460
|
+
return !t || U.current !== "url" || !ir({
|
|
404
461
|
currentTimeSeconds: Math.max(t.currentTime, 0),
|
|
405
462
|
durationSeconds: t.duration
|
|
406
|
-
}) ? !1 : (
|
|
463
|
+
}) ? !1 : (c.current = !1, t.pause(), ee(e), !0);
|
|
407
464
|
},
|
|
408
|
-
[
|
|
409
|
-
),
|
|
410
|
-
const e = K.current + 1, t = j.current, s = t[e],
|
|
465
|
+
[ee]
|
|
466
|
+
), wt = r(() => {
|
|
467
|
+
const e = K.current + 1, t = j.current, s = t[e], u = he.current, b = t.some(($) => $.is_final);
|
|
411
468
|
if (s) {
|
|
412
|
-
|
|
469
|
+
A(e, "ended");
|
|
413
470
|
return;
|
|
414
471
|
}
|
|
415
|
-
if (
|
|
416
|
-
K.current = e,
|
|
472
|
+
if (u?.isAudioStreaming || !b) {
|
|
473
|
+
K.current = e, m.current = e, v.current = !0, c.current = _, C(Q(e)), h(!1), l(!0, "waitingForMoreAudio");
|
|
417
474
|
return;
|
|
418
475
|
}
|
|
419
|
-
|
|
476
|
+
ee("segments-completed");
|
|
420
477
|
}, [
|
|
421
|
-
|
|
478
|
+
_,
|
|
479
|
+
ee,
|
|
422
480
|
Q,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
u
|
|
481
|
+
C,
|
|
482
|
+
A,
|
|
483
|
+
l
|
|
427
484
|
]);
|
|
428
|
-
|
|
429
|
-
if (
|
|
485
|
+
S(() => {
|
|
486
|
+
if (Ie.current === Re)
|
|
430
487
|
return;
|
|
431
|
-
|
|
432
|
-
const e =
|
|
433
|
-
e && (e.pause(), e.removeAttribute("src"), e.load(),
|
|
488
|
+
Ie.current = Re, K.current = 0, m.current = null, v.current = !1, k.current = !1, le.current = !1, c.current = !1, N.current = !1, U.current = null, z.current = null, E.current = null, g(), C(0), l(!1);
|
|
489
|
+
const e = M.current;
|
|
490
|
+
e && (e.pause(), e.removeAttribute("src"), e.load(), h(!1));
|
|
434
491
|
}, [
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
492
|
+
a,
|
|
493
|
+
Re,
|
|
494
|
+
R.length,
|
|
495
|
+
T,
|
|
496
|
+
C,
|
|
438
497
|
g,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
]), y(() => {
|
|
443
|
-
const e = _.current;
|
|
498
|
+
l
|
|
499
|
+
]), S(() => {
|
|
500
|
+
const e = M.current;
|
|
444
501
|
if (e) {
|
|
445
|
-
if (
|
|
446
|
-
|
|
502
|
+
if (x) {
|
|
503
|
+
le.current = !!(he.current && !k.current && (!e.paused || c.current || m.current !== null)), c.current = !1, l(!1), e.pause(), h(!1);
|
|
447
504
|
return;
|
|
448
505
|
}
|
|
449
|
-
if (!(!
|
|
450
|
-
if (
|
|
451
|
-
if (
|
|
452
|
-
|
|
506
|
+
if (!(!le.current || !he.current || k.current)) {
|
|
507
|
+
if (le.current = !1, m.current !== null) {
|
|
508
|
+
if (m.current < j.current.length) {
|
|
509
|
+
A(m.current, "external-resume");
|
|
453
510
|
return;
|
|
454
511
|
}
|
|
455
|
-
|
|
512
|
+
c.current = !0, l(!0, "waitingForMoreAudio");
|
|
456
513
|
return;
|
|
457
514
|
}
|
|
458
515
|
if (!E.current && j.current.length > 0) {
|
|
459
|
-
|
|
516
|
+
A(
|
|
460
517
|
Math.min(
|
|
461
518
|
K.current,
|
|
462
519
|
j.current.length - 1
|
|
@@ -465,470 +522,496 @@ const _t = /* @__PURE__ */ new Map(), xt = (R) => {
|
|
|
465
522
|
);
|
|
466
523
|
return;
|
|
467
524
|
}
|
|
468
|
-
e.paused && (
|
|
525
|
+
e.paused && (c.current = !0, L("external-resume"));
|
|
469
526
|
}
|
|
470
527
|
}
|
|
471
528
|
}, [
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
]),
|
|
477
|
-
const e =
|
|
529
|
+
x,
|
|
530
|
+
A,
|
|
531
|
+
L,
|
|
532
|
+
l
|
|
533
|
+
]), S(() => {
|
|
534
|
+
const e = M.current;
|
|
478
535
|
if (!e)
|
|
479
536
|
return;
|
|
480
|
-
if (!
|
|
481
|
-
|
|
537
|
+
if (!p) {
|
|
538
|
+
I();
|
|
482
539
|
return;
|
|
483
540
|
}
|
|
484
|
-
if (
|
|
485
|
-
|
|
541
|
+
if (x) {
|
|
542
|
+
c.current = !1, l(!1), e.pause(), h(!1);
|
|
486
543
|
return;
|
|
487
544
|
}
|
|
488
|
-
const t =
|
|
545
|
+
const t = yr({
|
|
489
546
|
activeSourceType: U.current,
|
|
490
|
-
hasAudioUrl: !!
|
|
491
|
-
segmentCount:
|
|
492
|
-
preferredSourceType:
|
|
493
|
-
waitingSegmentIndex:
|
|
547
|
+
hasAudioUrl: !!T,
|
|
548
|
+
segmentCount: R.length,
|
|
549
|
+
preferredSourceType: z.current,
|
|
550
|
+
waitingSegmentIndex: m.current
|
|
494
551
|
});
|
|
495
|
-
if (t &&
|
|
496
|
-
const s = E.current !==
|
|
552
|
+
if (t && z.current !== t && (z.current = t), t === "url" && T) {
|
|
553
|
+
const s = E.current !== T, u = H();
|
|
497
554
|
if (s) {
|
|
498
|
-
const
|
|
499
|
-
e.pause(), e.removeAttribute("src"), e.load(), E.current =
|
|
555
|
+
const b = m.current !== null ? xt() : 0;
|
|
556
|
+
e.pause(), e.removeAttribute("src"), e.load(), E.current = T, U.current = "url", e.src = T, e.load(), w.current = b, C(b * 1e3), e.readyState > 0 && (e.currentTime = b, w.current = null);
|
|
500
557
|
}
|
|
501
|
-
if (
|
|
502
|
-
|
|
558
|
+
if (c.current = u, v.current = !1, N.current = !1, l(!1), !u) {
|
|
559
|
+
c.current = !1, e.pause(), h(!1);
|
|
503
560
|
return;
|
|
504
561
|
}
|
|
505
|
-
|
|
562
|
+
L(s ? "sync-url-init" : "sync-url");
|
|
506
563
|
return;
|
|
507
564
|
}
|
|
508
|
-
if (t === "segment" &&
|
|
509
|
-
if (
|
|
510
|
-
if (
|
|
511
|
-
|
|
565
|
+
if (t === "segment" && m.current !== null) {
|
|
566
|
+
if (m.current < R.length) {
|
|
567
|
+
if (k.current) {
|
|
568
|
+
h(!1), l(!1);
|
|
512
569
|
return;
|
|
513
570
|
}
|
|
514
|
-
|
|
571
|
+
A(m.current, "wait-resume");
|
|
515
572
|
return;
|
|
516
573
|
}
|
|
517
|
-
|
|
574
|
+
v.current = !0, c.current = H(), h(!1), l(H());
|
|
518
575
|
return;
|
|
519
576
|
}
|
|
520
|
-
if (t === "segment" && !
|
|
521
|
-
if (
|
|
522
|
-
|
|
577
|
+
if (t === "segment" && !R.length) {
|
|
578
|
+
if (p.isAudioStreaming) {
|
|
579
|
+
m.current = K.current, v.current = !0, c.current = H(), h(!1), l(H());
|
|
523
580
|
return;
|
|
524
581
|
}
|
|
525
|
-
|
|
582
|
+
I();
|
|
526
583
|
return;
|
|
527
584
|
}
|
|
528
585
|
if (t === "segment" && !E.current) {
|
|
529
|
-
|
|
586
|
+
A(
|
|
530
587
|
Math.min(
|
|
531
588
|
K.current,
|
|
532
|
-
|
|
589
|
+
R.length - 1
|
|
533
590
|
),
|
|
534
591
|
"effect-init"
|
|
535
592
|
);
|
|
536
593
|
return;
|
|
537
594
|
}
|
|
538
595
|
if (t !== "segment") {
|
|
539
|
-
|
|
596
|
+
I();
|
|
540
597
|
return;
|
|
541
598
|
}
|
|
542
|
-
if (!
|
|
543
|
-
|
|
599
|
+
if (!_ || k.current) {
|
|
600
|
+
c.current = !1, e.pause(), h(!1);
|
|
544
601
|
return;
|
|
545
602
|
}
|
|
546
|
-
e.paused && (
|
|
603
|
+
e.paused && (c.current = !0, L("sync-paused-retry"));
|
|
547
604
|
}, [
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
g,
|
|
552
|
-
L,
|
|
605
|
+
p,
|
|
606
|
+
a,
|
|
607
|
+
R,
|
|
553
608
|
T,
|
|
554
|
-
|
|
609
|
+
_,
|
|
555
610
|
x,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
611
|
+
H,
|
|
612
|
+
C,
|
|
613
|
+
I,
|
|
614
|
+
A,
|
|
615
|
+
L,
|
|
616
|
+
xt,
|
|
617
|
+
l
|
|
618
|
+
]), S(() => {
|
|
619
|
+
if (!O || O.id === rt.current || O.audioIndex !== a)
|
|
620
|
+
return;
|
|
621
|
+
const e = f[O.audioIndex];
|
|
622
|
+
xe(e, O.timeMs) && (rt.current = O.id, we(O.timeMs));
|
|
564
623
|
}, [
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
e && S.current !== null && (e.currentTime = S.current, S.current = null), m(), !Se("canplay-seek-finished") && (!l.current || !L || M("canplay"));
|
|
624
|
+
f,
|
|
625
|
+
xe,
|
|
626
|
+
a,
|
|
627
|
+
we,
|
|
628
|
+
O
|
|
629
|
+
]), S(() => I, [I]), S(() => g, [g]);
|
|
630
|
+
const Zt = r(() => {
|
|
631
|
+
y(), kt(), h(!0), l(!1), Oe?.();
|
|
574
632
|
}, [
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
633
|
+
Oe,
|
|
634
|
+
kt,
|
|
635
|
+
y,
|
|
636
|
+
l
|
|
637
|
+
]), zt = r(() => {
|
|
638
|
+
v.current || N.current || (g(), y(), h(!1));
|
|
639
|
+
}, [a, g, y]), Yt = r(() => {
|
|
640
|
+
const e = M.current;
|
|
641
|
+
e && w.current !== null && (e.currentTime = w.current, w.current = null), y(), !Me("canplay-seek-finished") && (!c.current || !_ || L("canplay"));
|
|
642
|
+
}, [
|
|
643
|
+
a,
|
|
644
|
+
_,
|
|
645
|
+
Me,
|
|
646
|
+
y,
|
|
647
|
+
L
|
|
648
|
+
]), Dt = r(() => {
|
|
649
|
+
const e = M.current;
|
|
650
|
+
e && w.current !== null && (e.currentTime = w.current, w.current = null), y(), Me("metadata-seek-finished");
|
|
651
|
+
}, [a, Me, y]), Gt = r(() => {
|
|
652
|
+
y();
|
|
653
|
+
}, [y]), Qt = r(() => {
|
|
654
|
+
v.current || l(!0, "loadingAudio");
|
|
655
|
+
}, [l]), Xt = r(() => {
|
|
656
|
+
if (v.current) {
|
|
657
|
+
l(!0, "waitingForMoreAudio");
|
|
590
658
|
return;
|
|
591
659
|
}
|
|
592
|
-
|
|
593
|
-
}, [
|
|
594
|
-
|
|
595
|
-
}, [
|
|
660
|
+
l(!0, "loadingAudio");
|
|
661
|
+
}, [l]), Mt = r(() => {
|
|
662
|
+
y();
|
|
663
|
+
}, [y]), qt = r(() => {
|
|
596
664
|
const e = U.current === "url" || j.current.length === 0;
|
|
597
|
-
if (
|
|
598
|
-
|
|
665
|
+
if (g(), N.current = !1, e) {
|
|
666
|
+
ee("url-ended");
|
|
599
667
|
return;
|
|
600
668
|
}
|
|
601
|
-
|
|
602
|
-
}, [
|
|
603
|
-
|
|
604
|
-
}, [
|
|
669
|
+
wt();
|
|
670
|
+
}, [ee, wt, g]), It = r(() => {
|
|
671
|
+
g(), y(), h(!1), l(!1);
|
|
672
|
+
}, [g, y, l]), er = r(
|
|
605
673
|
(e) => {
|
|
606
|
-
|
|
674
|
+
He?.(e), X(!1);
|
|
607
675
|
},
|
|
608
|
-
[
|
|
609
|
-
),
|
|
676
|
+
[He]
|
|
677
|
+
), Ke = r(() => {
|
|
610
678
|
if (F) {
|
|
611
|
-
const t =
|
|
612
|
-
return B(t),
|
|
679
|
+
const t = !Z;
|
|
680
|
+
return B(t), Je?.(t), !0;
|
|
613
681
|
}
|
|
614
|
-
const e =
|
|
615
|
-
return
|
|
682
|
+
const e = M.current;
|
|
683
|
+
return x || !e || !p ? !1 : m.current !== null ? Se ? (B(!1), c.current = !1, k.current = !0, m.current = null, v.current = !1, h(!1), l(!1), e.pause(), !0) : (B(!0), P.current = "manual", k.current = !1, c.current = !0, l(!0, "waitingForMoreAudio"), !0) : !e.src && R.length > 0 ? (B(!0), P.current = "manual", k.current = !1, A(
|
|
616
684
|
Math.min(
|
|
617
685
|
K.current,
|
|
618
|
-
|
|
686
|
+
R.length - 1
|
|
619
687
|
),
|
|
620
688
|
"toggle"
|
|
621
|
-
), !0) : e.paused ? (B(!0),
|
|
689
|
+
), !0) : e.paused ? (B(!0), P.current = "manual", k.current = !1, c.current = !0, L("toggle-resume"), !0) : (B(!1), c.current = !1, k.current = !0, e.pause(), !0);
|
|
622
690
|
}, [
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
691
|
+
p,
|
|
692
|
+
R.length,
|
|
693
|
+
Z,
|
|
694
|
+
x,
|
|
695
|
+
Se,
|
|
696
|
+
Je,
|
|
697
|
+
A,
|
|
698
|
+
L,
|
|
699
|
+
l,
|
|
632
700
|
B,
|
|
633
701
|
F
|
|
634
702
|
]);
|
|
635
|
-
|
|
636
|
-
if (
|
|
637
|
-
return
|
|
638
|
-
}, [
|
|
639
|
-
const
|
|
703
|
+
S(() => {
|
|
704
|
+
if (W)
|
|
705
|
+
return dr(D);
|
|
706
|
+
}, [D, W]);
|
|
707
|
+
const Ue = te(
|
|
640
708
|
() => ({
|
|
641
|
-
fullscreen: () =>
|
|
642
|
-
interaction: () =>
|
|
643
|
-
next: () =>
|
|
644
|
-
|
|
709
|
+
fullscreen: () => ne ? (ne(), !0) : !1,
|
|
710
|
+
interaction: () => pe ? (Le && pe(), !0) : !1,
|
|
711
|
+
next: () => de ? (je || de(
|
|
712
|
+
Pe(G())
|
|
645
713
|
), !0) : !1,
|
|
646
|
-
nextSubtitle: () =>
|
|
647
|
-
previous: () =>
|
|
648
|
-
|
|
714
|
+
nextSubtitle: () => q.next ? ie("next") : !0,
|
|
715
|
+
previous: () => fe ? (Ae || fe(
|
|
716
|
+
Pe(G())
|
|
649
717
|
), !0) : !1,
|
|
650
|
-
previousSubtitle: () =>
|
|
651
|
-
subtitle: () =>
|
|
652
|
-
togglePlayback: () => (
|
|
718
|
+
previousSubtitle: () => q.previous ? ie("previous") : !0,
|
|
719
|
+
subtitle: () => re ? (re(), !0) : !1,
|
|
720
|
+
togglePlayback: () => (Ke(), !0)
|
|
653
721
|
}),
|
|
654
722
|
[
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
723
|
+
G,
|
|
724
|
+
Le,
|
|
725
|
+
ie,
|
|
726
|
+
je,
|
|
727
|
+
ne,
|
|
728
|
+
pe,
|
|
729
|
+
de,
|
|
660
730
|
fe,
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
X.previous,
|
|
667
|
-
Ae
|
|
731
|
+
re,
|
|
732
|
+
Ae,
|
|
733
|
+
q.next,
|
|
734
|
+
q.previous,
|
|
735
|
+
Ke
|
|
668
736
|
]
|
|
669
|
-
),
|
|
670
|
-
return
|
|
671
|
-
|
|
672
|
-
}, [
|
|
673
|
-
if (!
|
|
737
|
+
), Ct = o(Ue);
|
|
738
|
+
return S(() => {
|
|
739
|
+
Ct.current = Ue;
|
|
740
|
+
}, [Ue]), S(() => {
|
|
741
|
+
if (!W || typeof document > "u")
|
|
674
742
|
return;
|
|
675
743
|
const e = (t) => {
|
|
676
|
-
if (!
|
|
744
|
+
if (!mr(D))
|
|
677
745
|
return;
|
|
678
|
-
const s =
|
|
679
|
-
if (!s ||
|
|
746
|
+
const s = pr(t);
|
|
747
|
+
if (!s || hr(t, s))
|
|
680
748
|
return;
|
|
681
|
-
let
|
|
682
|
-
const
|
|
683
|
-
|
|
749
|
+
let u = !1;
|
|
750
|
+
const b = Ct.current[s];
|
|
751
|
+
u = b(), u && t.preventDefault();
|
|
684
752
|
};
|
|
685
753
|
return document.addEventListener("keydown", e), () => {
|
|
686
754
|
document.removeEventListener("keydown", e);
|
|
687
755
|
};
|
|
688
|
-
}, [
|
|
689
|
-
|
|
690
|
-
}, [
|
|
756
|
+
}, [D, W]), S(() => {
|
|
757
|
+
oe?.(ye.current);
|
|
758
|
+
}, [oe]), /* @__PURE__ */ n.jsxs(
|
|
691
759
|
"div",
|
|
692
760
|
{
|
|
693
|
-
...
|
|
694
|
-
"data-slide-player-shortcut-owner":
|
|
695
|
-
className:
|
|
696
|
-
onFocusCapture:
|
|
697
|
-
onPointerDown:
|
|
761
|
+
...Pt,
|
|
762
|
+
"data-slide-player-shortcut-owner": D,
|
|
763
|
+
className: Lt("slide-player", d),
|
|
764
|
+
onFocusCapture: Jt,
|
|
765
|
+
onPointerDown: $t,
|
|
698
766
|
children: [
|
|
699
767
|
/* @__PURE__ */ n.jsx(
|
|
700
768
|
"audio",
|
|
701
769
|
{
|
|
702
|
-
ref:
|
|
770
|
+
ref: M,
|
|
703
771
|
preload: "auto",
|
|
704
772
|
playsInline: !0,
|
|
705
|
-
onLoadStart:
|
|
706
|
-
onLoadedMetadata:
|
|
707
|
-
onCanPlay:
|
|
708
|
-
onPlay:
|
|
709
|
-
onPause:
|
|
710
|
-
onWaiting:
|
|
711
|
-
onSeeking:
|
|
712
|
-
onSeeked:
|
|
713
|
-
onTimeUpdate:
|
|
714
|
-
onEnded:
|
|
715
|
-
onError:
|
|
773
|
+
onLoadStart: Qt,
|
|
774
|
+
onLoadedMetadata: Dt,
|
|
775
|
+
onCanPlay: Yt,
|
|
776
|
+
onPlay: Zt,
|
|
777
|
+
onPause: zt,
|
|
778
|
+
onWaiting: Xt,
|
|
779
|
+
onSeeking: Mt,
|
|
780
|
+
onSeeked: Mt,
|
|
781
|
+
onTimeUpdate: Gt,
|
|
782
|
+
onEnded: qt,
|
|
783
|
+
onError: It
|
|
716
784
|
}
|
|
717
785
|
),
|
|
718
|
-
|
|
786
|
+
Ne ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
719
787
|
/* @__PURE__ */ n.jsx(
|
|
720
|
-
|
|
788
|
+
lr,
|
|
721
789
|
{
|
|
722
|
-
container:
|
|
790
|
+
container: Et,
|
|
723
791
|
labels: {
|
|
724
|
-
closeSettings:
|
|
725
|
-
fullscreen:
|
|
726
|
-
nonFullscreen:
|
|
727
|
-
screen:
|
|
728
|
-
screenMode:
|
|
729
|
-
subtitle:
|
|
730
|
-
subtitleToggle:
|
|
731
|
-
title:
|
|
792
|
+
closeSettings: i.closeSettingsLabel,
|
|
793
|
+
fullscreen: i.fullscreenLabel,
|
|
794
|
+
nonFullscreen: i.nonFullscreenLabel,
|
|
795
|
+
screen: i.screenLabel,
|
|
796
|
+
screenMode: i.screenModeLabel,
|
|
797
|
+
subtitle: i.subtitleLabel,
|
|
798
|
+
subtitleToggle: i.subtitleToggleAriaLabel,
|
|
799
|
+
title: i.settingsTitle
|
|
732
800
|
},
|
|
733
|
-
isSubtitleEnabled:
|
|
734
|
-
onClose: () =>
|
|
735
|
-
onOpenChange:
|
|
736
|
-
onSubtitleToggle:
|
|
801
|
+
isSubtitleEnabled: ve,
|
|
802
|
+
onClose: () => X(!1),
|
|
803
|
+
onOpenChange: X,
|
|
804
|
+
onSubtitleToggle: re ?? (() => {
|
|
737
805
|
}),
|
|
738
|
-
onViewModeChange:
|
|
739
|
-
open:
|
|
740
|
-
viewMode:
|
|
806
|
+
onViewModeChange: er,
|
|
807
|
+
open: ut,
|
|
808
|
+
viewMode: Rt
|
|
741
809
|
}
|
|
742
810
|
),
|
|
743
|
-
/* @__PURE__ */ n.jsxs(
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
},
|
|
755
|
-
type: "button",
|
|
756
|
-
children: /* @__PURE__ */ n.jsx(
|
|
757
|
-
ir,
|
|
811
|
+
/* @__PURE__ */ n.jsxs(
|
|
812
|
+
"div",
|
|
813
|
+
{
|
|
814
|
+
className: "slide-player__controls",
|
|
815
|
+
onPointerEnter: Kt,
|
|
816
|
+
onPointerLeave: Ut,
|
|
817
|
+
style: Vt,
|
|
818
|
+
children: [
|
|
819
|
+
/* @__PURE__ */ n.jsxs("div", { className: "slide-player__group", children: [
|
|
820
|
+
/* @__PURE__ */ n.jsx(
|
|
821
|
+
"button",
|
|
758
822
|
{
|
|
759
|
-
|
|
760
|
-
|
|
823
|
+
"aria-expanded": ut,
|
|
824
|
+
"aria-haspopup": "dialog",
|
|
825
|
+
"aria-label": i.moreOptionsAriaLabel,
|
|
826
|
+
className: "slide-player__action slide-player__action--mobile-more",
|
|
827
|
+
onClick: () => {
|
|
828
|
+
X((e) => !e);
|
|
829
|
+
},
|
|
830
|
+
type: "button",
|
|
831
|
+
children: /* @__PURE__ */ n.jsx(
|
|
832
|
+
kr,
|
|
833
|
+
{
|
|
834
|
+
className: "slide-player__icon",
|
|
835
|
+
strokeWidth: 2.25
|
|
836
|
+
}
|
|
837
|
+
)
|
|
761
838
|
}
|
|
762
|
-
)
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
/* @__PURE__ */ n.jsx(
|
|
766
|
-
"button",
|
|
767
|
-
{
|
|
768
|
-
"aria-label": a.volumeAriaLabel,
|
|
769
|
-
className: "hidden",
|
|
770
|
-
type: "button",
|
|
771
|
-
children: /* @__PURE__ */ n.jsx(cr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
772
|
-
}
|
|
773
|
-
),
|
|
774
|
-
/* @__PURE__ */ n.jsx(
|
|
775
|
-
"button",
|
|
776
|
-
{
|
|
777
|
-
"aria-label": a.subtitleToggleAriaLabel,
|
|
778
|
-
"aria-keyshortcuts": Qe.ariaKeyShortcuts,
|
|
779
|
-
"aria-pressed": xe,
|
|
780
|
-
className: "slide-player__action slide-player__action--subtitle",
|
|
781
|
-
onClick: ee,
|
|
782
|
-
title: Qe.title,
|
|
783
|
-
type: "button",
|
|
784
|
-
children: xe ? /* @__PURE__ */ n.jsx(or, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ n.jsx(
|
|
785
|
-
fr,
|
|
839
|
+
),
|
|
840
|
+
/* @__PURE__ */ n.jsx(
|
|
841
|
+
"button",
|
|
786
842
|
{
|
|
787
|
-
|
|
788
|
-
|
|
843
|
+
"aria-label": i.volumeAriaLabel,
|
|
844
|
+
className: "hidden",
|
|
845
|
+
type: "button",
|
|
846
|
+
children: /* @__PURE__ */ n.jsx(wr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
789
847
|
}
|
|
790
|
-
)
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
/* @__PURE__ */ n.jsx(
|
|
794
|
-
"button",
|
|
795
|
-
{
|
|
796
|
-
"aria-keyshortcuts": tt.ariaKeyShortcuts,
|
|
797
|
-
"aria-label": a.previousSubtitleLabel,
|
|
798
|
-
className: "slide-player__action slide-player__action--prev-subtitle",
|
|
799
|
-
disabled: !X.previous,
|
|
800
|
-
onClick: () => {
|
|
801
|
-
ae("previous");
|
|
802
|
-
},
|
|
803
|
-
title: tt.title,
|
|
804
|
-
type: "button",
|
|
805
|
-
children: /* @__PURE__ */ n.jsx(dr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
806
|
-
}
|
|
807
|
-
),
|
|
808
|
-
/* @__PURE__ */ n.jsx(
|
|
809
|
-
"button",
|
|
810
|
-
{
|
|
811
|
-
"aria-keyshortcuts": et.ariaKeyShortcuts,
|
|
812
|
-
"aria-label": a.previousLabel,
|
|
813
|
-
className: "slide-player__action slide-player__action--prev",
|
|
814
|
-
disabled: ke,
|
|
815
|
-
onClick: () => {
|
|
816
|
-
ce?.(se());
|
|
817
|
-
},
|
|
818
|
-
title: et.title,
|
|
819
|
-
type: "button",
|
|
820
|
-
children: /* @__PURE__ */ n.jsx(mr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
821
|
-
}
|
|
822
|
-
),
|
|
823
|
-
/* @__PURE__ */ n.jsx(
|
|
824
|
-
"button",
|
|
825
|
-
{
|
|
826
|
-
"aria-label": Xe,
|
|
827
|
-
"aria-keyshortcuts": rt.ariaKeyShortcuts,
|
|
828
|
-
className: "slide-player__toggle slide-player__toggle--playback",
|
|
829
|
-
onClick: () => {
|
|
830
|
-
Ae();
|
|
831
|
-
},
|
|
832
|
-
title: rt.title,
|
|
833
|
-
type: "button",
|
|
834
|
-
children: Rt ? /* @__PURE__ */ n.jsx(gr, {}) : /* @__PURE__ */ n.jsx(_r, {})
|
|
835
|
-
}
|
|
836
|
-
),
|
|
837
|
-
/* @__PURE__ */ n.jsx(
|
|
838
|
-
"button",
|
|
839
|
-
{
|
|
840
|
-
"aria-keyshortcuts": nt.ariaKeyShortcuts,
|
|
841
|
-
"aria-label": a.nextLabel,
|
|
842
|
-
className: "slide-player__action slide-player__action--next",
|
|
843
|
-
disabled: we,
|
|
844
|
-
onClick: () => {
|
|
845
|
-
oe?.(se());
|
|
846
|
-
},
|
|
847
|
-
title: nt.title,
|
|
848
|
-
type: "button",
|
|
849
|
-
children: /* @__PURE__ */ n.jsx(pr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
850
|
-
}
|
|
851
|
-
),
|
|
852
|
-
/* @__PURE__ */ n.jsx(
|
|
853
|
-
"button",
|
|
854
|
-
{
|
|
855
|
-
"aria-keyshortcuts": ut.ariaKeyShortcuts,
|
|
856
|
-
"aria-label": a.nextSubtitleLabel,
|
|
857
|
-
className: "slide-player__action slide-player__action--next-subtitle",
|
|
858
|
-
disabled: !X.next,
|
|
859
|
-
onClick: () => {
|
|
860
|
-
ae("next");
|
|
861
|
-
},
|
|
862
|
-
title: ut.title,
|
|
863
|
-
type: "button",
|
|
864
|
-
children: /* @__PURE__ */ n.jsx(
|
|
865
|
-
hr,
|
|
848
|
+
),
|
|
849
|
+
/* @__PURE__ */ n.jsx(
|
|
850
|
+
"button",
|
|
866
851
|
{
|
|
867
|
-
|
|
868
|
-
|
|
852
|
+
"aria-label": it,
|
|
853
|
+
"aria-keyshortcuts": pt.ariaKeyShortcuts,
|
|
854
|
+
className: "slide-player__toggle slide-player__toggle--playback",
|
|
855
|
+
onClick: () => {
|
|
856
|
+
Ke();
|
|
857
|
+
},
|
|
858
|
+
title: pt.title,
|
|
859
|
+
type: "button",
|
|
860
|
+
children: Ht ? /* @__PURE__ */ n.jsx(Ur, {}) : /* @__PURE__ */ n.jsx(Fr, {})
|
|
869
861
|
}
|
|
870
|
-
)
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
te ? /* @__PURE__ */ n.jsx(
|
|
874
|
-
"button",
|
|
875
|
-
{
|
|
876
|
-
"aria-label": Ge,
|
|
877
|
-
"aria-keyshortcuts": st.ariaKeyShortcuts,
|
|
878
|
-
className: "slide-player__action slide-player__action--fullscreen",
|
|
879
|
-
onClick: te,
|
|
880
|
-
title: st.title,
|
|
881
|
-
type: "button",
|
|
882
|
-
children: Ee ? /* @__PURE__ */ n.jsx(
|
|
883
|
-
yr,
|
|
862
|
+
),
|
|
863
|
+
/* @__PURE__ */ n.jsx(
|
|
864
|
+
"button",
|
|
884
865
|
{
|
|
885
|
-
|
|
886
|
-
|
|
866
|
+
"aria-keyshortcuts": dt.ariaKeyShortcuts,
|
|
867
|
+
"aria-label": i.previousLabel,
|
|
868
|
+
className: "slide-player__action slide-player__action--prev",
|
|
869
|
+
disabled: Ae,
|
|
870
|
+
onClick: () => {
|
|
871
|
+
fe?.(G());
|
|
872
|
+
},
|
|
873
|
+
title: dt.title,
|
|
874
|
+
type: "button",
|
|
875
|
+
children: /* @__PURE__ */ n.jsx(Mr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
887
876
|
}
|
|
888
|
-
)
|
|
889
|
-
|
|
877
|
+
),
|
|
878
|
+
/* @__PURE__ */ n.jsx(
|
|
879
|
+
"button",
|
|
890
880
|
{
|
|
891
|
-
|
|
892
|
-
|
|
881
|
+
"aria-keyshortcuts": ht.ariaKeyShortcuts,
|
|
882
|
+
"aria-label": i.nextLabel,
|
|
883
|
+
className: "slide-player__action slide-player__action--next",
|
|
884
|
+
disabled: je,
|
|
885
|
+
onClick: () => {
|
|
886
|
+
de?.(G());
|
|
887
|
+
},
|
|
888
|
+
title: ht.title,
|
|
889
|
+
type: "button",
|
|
890
|
+
children: /* @__PURE__ */ n.jsx(
|
|
891
|
+
Cr,
|
|
892
|
+
{
|
|
893
|
+
className: "slide-player__icon",
|
|
894
|
+
strokeWidth: 2.25
|
|
895
|
+
}
|
|
896
|
+
)
|
|
897
|
+
}
|
|
898
|
+
),
|
|
899
|
+
/* @__PURE__ */ n.jsx(
|
|
900
|
+
"button",
|
|
901
|
+
{
|
|
902
|
+
"aria-keyshortcuts": mt.ariaKeyShortcuts,
|
|
903
|
+
"aria-label": i.previousSubtitleLabel,
|
|
904
|
+
className: "slide-player__action slide-player__action--prev-subtitle",
|
|
905
|
+
disabled: !q.previous,
|
|
906
|
+
onClick: () => {
|
|
907
|
+
ie("previous");
|
|
908
|
+
},
|
|
909
|
+
title: mt.title,
|
|
910
|
+
type: "button",
|
|
911
|
+
children: /* @__PURE__ */ n.jsx(Tr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
912
|
+
}
|
|
913
|
+
),
|
|
914
|
+
/* @__PURE__ */ n.jsx(
|
|
915
|
+
"button",
|
|
916
|
+
{
|
|
917
|
+
"aria-keyshortcuts": yt.ariaKeyShortcuts,
|
|
918
|
+
"aria-label": i.nextSubtitleLabel,
|
|
919
|
+
className: "slide-player__action slide-player__action--next-subtitle",
|
|
920
|
+
disabled: !q.next,
|
|
921
|
+
onClick: () => {
|
|
922
|
+
ie("next");
|
|
923
|
+
},
|
|
924
|
+
title: yt.title,
|
|
925
|
+
type: "button",
|
|
926
|
+
children: /* @__PURE__ */ n.jsx(
|
|
927
|
+
Lr,
|
|
928
|
+
{
|
|
929
|
+
className: "slide-player__icon",
|
|
930
|
+
strokeWidth: 2.25
|
|
931
|
+
}
|
|
932
|
+
)
|
|
933
|
+
}
|
|
934
|
+
),
|
|
935
|
+
/* @__PURE__ */ n.jsx(
|
|
936
|
+
"button",
|
|
937
|
+
{
|
|
938
|
+
"aria-label": i.subtitleToggleAriaLabel,
|
|
939
|
+
"aria-keyshortcuts": ft.ariaKeyShortcuts,
|
|
940
|
+
"aria-pressed": ve,
|
|
941
|
+
className: "slide-player__action slide-player__action--subtitle",
|
|
942
|
+
onClick: re,
|
|
943
|
+
title: ft.title,
|
|
944
|
+
type: "button",
|
|
945
|
+
children: ve ? /* @__PURE__ */ n.jsx(vr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ n.jsx(
|
|
946
|
+
Ar,
|
|
947
|
+
{
|
|
948
|
+
className: "slide-player__icon",
|
|
949
|
+
strokeWidth: 2.25
|
|
950
|
+
}
|
|
951
|
+
)
|
|
893
952
|
}
|
|
894
|
-
)
|
|
895
|
-
}
|
|
896
|
-
) : null
|
|
897
|
-
] }),
|
|
898
|
-
/* @__PURE__ */ n.jsx("div", { className: "slide-player__separator" }),
|
|
899
|
-
/* @__PURE__ */ n.jsxs("div", { className: "slide-player__group", children: [
|
|
900
|
-
Ye.map((e, t) => /* @__PURE__ */ n.jsx(Ht.Fragment, { children: e }, `custom-action-${t}`)),
|
|
901
|
-
/* @__PURE__ */ n.jsx(
|
|
902
|
-
"button",
|
|
903
|
-
{
|
|
904
|
-
"aria-label": a.notesLabel,
|
|
905
|
-
"aria-keyshortcuts": lt.ariaKeyShortcuts,
|
|
906
|
-
className: bt(
|
|
907
|
-
"slide-player__action slide-player__action--notes",
|
|
908
|
-
re && "slide-player__action--active"
|
|
909
953
|
),
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
954
|
+
ne ? /* @__PURE__ */ n.jsx(
|
|
955
|
+
"button",
|
|
956
|
+
{
|
|
957
|
+
"aria-label": ot,
|
|
958
|
+
"aria-keyshortcuts": bt.ariaKeyShortcuts,
|
|
959
|
+
className: "slide-player__action slide-player__action--fullscreen",
|
|
960
|
+
onClick: ne,
|
|
961
|
+
title: bt.title,
|
|
962
|
+
type: "button",
|
|
963
|
+
children: Ve ? /* @__PURE__ */ n.jsx(
|
|
964
|
+
jr,
|
|
965
|
+
{
|
|
966
|
+
className: "slide-player__icon",
|
|
967
|
+
strokeWidth: 2.25
|
|
968
|
+
}
|
|
969
|
+
) : /* @__PURE__ */ n.jsx(
|
|
970
|
+
Nr,
|
|
971
|
+
{
|
|
972
|
+
className: "slide-player__icon",
|
|
973
|
+
strokeWidth: 2.25
|
|
974
|
+
}
|
|
975
|
+
)
|
|
976
|
+
}
|
|
977
|
+
) : null
|
|
978
|
+
] }),
|
|
979
|
+
/* @__PURE__ */ n.jsx("div", { className: "slide-player__separator" }),
|
|
980
|
+
/* @__PURE__ */ n.jsxs("div", { className: "slide-player__group", children: [
|
|
981
|
+
at.map((e, t) => /* @__PURE__ */ n.jsx(rr.Fragment, { children: e }, `custom-action-${t}`)),
|
|
982
|
+
/* @__PURE__ */ n.jsx(
|
|
983
|
+
"button",
|
|
916
984
|
{
|
|
917
|
-
|
|
918
|
-
|
|
985
|
+
"aria-label": i.notesLabel,
|
|
986
|
+
"aria-keyshortcuts": St.ariaKeyShortcuts,
|
|
987
|
+
className: Lt(
|
|
988
|
+
"slide-player__action slide-player__action--notes",
|
|
989
|
+
ue && "slide-player__action--active"
|
|
990
|
+
),
|
|
991
|
+
disabled: !Le,
|
|
992
|
+
onClick: pe,
|
|
993
|
+
title: St.title,
|
|
994
|
+
type: "button",
|
|
995
|
+
children: /* @__PURE__ */ n.jsx(
|
|
996
|
+
Rr,
|
|
997
|
+
{
|
|
998
|
+
className: "slide-player__icon",
|
|
999
|
+
strokeWidth: 2.25
|
|
1000
|
+
}
|
|
1001
|
+
)
|
|
919
1002
|
}
|
|
920
1003
|
)
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
1004
|
+
] })
|
|
1005
|
+
]
|
|
1006
|
+
}
|
|
1007
|
+
)
|
|
925
1008
|
] }) : null
|
|
926
1009
|
]
|
|
927
1010
|
}
|
|
928
1011
|
);
|
|
929
|
-
},
|
|
930
|
-
|
|
1012
|
+
}, Or = nr(Br);
|
|
1013
|
+
Or.displayName = "Player";
|
|
931
1014
|
export {
|
|
932
|
-
|
|
1015
|
+
Or as default
|
|
933
1016
|
};
|
|
934
1017
|
//# sourceMappingURL=Player.es.js.map
|