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