markdown-flow-ui 0.1.115 → 0.1.116-beta.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/_virtual/index.cjs10.js +1 -1
- package/dist/_virtual/index.cjs8.js +1 -1
- package/dist/_virtual/index.cjs9.js +1 -1
- package/dist/_virtual/index.es10.js +2 -2
- package/dist/_virtual/index.es8.js +2 -3
- package/dist/_virtual/index.es8.js.map +1 -1
- package/dist/_virtual/index.es9.js +3 -2
- package/dist/_virtual/index.es9.js.map +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 +5 -1
- package/dist/components/Slide/Player.es.js +383 -355
- 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 +4 -2
- package/dist/components/Slide/Slide.es.js +448 -437
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/Slide.stories.d.ts +1 -0
- package/dist/components/Slide/utils/audioCompletion.cjs.js +2 -0
- package/dist/components/Slide/utils/audioCompletion.cjs.js.map +1 -0
- package/dist/components/Slide/utils/audioCompletion.d.ts +7 -0
- package/dist/components/Slide/utils/audioCompletion.es.js +9 -0
- package/dist/components/Slide/utils/audioCompletion.es.js.map +1 -0
- package/dist/components/Slide/utils/audioCompletion.test.d.ts +1 -0
- package/dist/components/Slide/utils/playbackSource.cjs.js +2 -0
- package/dist/components/Slide/utils/playbackSource.cjs.js.map +1 -0
- package/dist/components/Slide/utils/playbackSource.d.ts +9 -0
- package/dist/components/Slide/utils/playbackSource.es.js +14 -0
- package/dist/components/Slide/utils/playbackSource.es.js.map +1 -0
- package/dist/components/Slide/utils/playbackSource.test.d.ts +1 -0
- package/dist/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.cjs.js.map +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.es.js +1 -1
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
import { DEFAULT_SLIDE_PLAYER_TEXTS as
|
|
6
|
-
import { DEFAULT_MOBILE_VIEW_MODE as
|
|
7
|
-
import {
|
|
1
|
+
import { j as t } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import rr, { memo as tr, useRef as a, useState as Ee, useMemo as z, useEffect as b, useCallback as u } from "react";
|
|
3
|
+
import { cn as Te } from "../../lib/utils.es.js";
|
|
4
|
+
import nr from "./MobilePlayerSettingsSheet.es.js";
|
|
5
|
+
import { DEFAULT_SLIDE_PLAYER_TEXTS as ur } from "./constants.es.js";
|
|
6
|
+
import { DEFAULT_MOBILE_VIEW_MODE as lr } from "./utils/mobileScreenMode.es.js";
|
|
7
|
+
import { hasReachedAudioEnd as sr } from "./utils/audioCompletion.es.js";
|
|
8
|
+
import { resolveAudioPlaybackSourceType as ar } from "./utils/playbackSource.es.js";
|
|
9
|
+
import { toPlayerCustomActionList as cr } from "./utils/playerCustomActions.es.js";
|
|
8
10
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
19
|
-
if (typeof window > "u" || !
|
|
11
|
+
import ir from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
|
|
12
|
+
import or from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/volume-2.es.js";
|
|
13
|
+
import fr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/captions.es.js";
|
|
14
|
+
import dr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/captions-off.es.js";
|
|
15
|
+
import mr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/rotate-ccw.es.js";
|
|
16
|
+
import pr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/rotate-cw.es.js";
|
|
17
|
+
import hr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/scan-line.es.js";
|
|
18
|
+
import yr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/maximize.es.js";
|
|
19
|
+
import gr from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/file-pen-line.es.js";
|
|
20
|
+
const Ne = /* @__PURE__ */ new Map(), Re = (N) => {
|
|
21
|
+
if (typeof window > "u" || !N || Ne.has(N))
|
|
20
22
|
return;
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
},
|
|
23
|
+
const F = window.document.createElement("audio");
|
|
24
|
+
F.preload = "auto", F.setAttribute("playsinline", "true"), F.src = N, F.load(), Ne.set(N, F);
|
|
25
|
+
}, _r = () => /* @__PURE__ */ t.jsxs(
|
|
24
26
|
"svg",
|
|
25
27
|
{
|
|
26
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -29,17 +31,17 @@ const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
|
|
|
29
31
|
viewBox: "0 0 34 34",
|
|
30
32
|
fill: "none",
|
|
31
33
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ t.jsx(
|
|
33
35
|
"path",
|
|
34
36
|
{
|
|
35
37
|
d: "M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",
|
|
36
38
|
fill: "#0A0A0A"
|
|
37
39
|
}
|
|
38
40
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ t.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
|
|
40
42
|
]
|
|
41
43
|
}
|
|
42
|
-
),
|
|
44
|
+
), br = () => /* @__PURE__ */ t.jsxs(
|
|
43
45
|
"svg",
|
|
44
46
|
{
|
|
45
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -48,415 +50,441 @@ const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
|
|
|
48
50
|
viewBox: "0 0 34 34",
|
|
49
51
|
fill: "none",
|
|
50
52
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ t.jsx(
|
|
52
54
|
"path",
|
|
53
55
|
{
|
|
54
56
|
d: "M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",
|
|
55
57
|
fill: "#0A0A0A"
|
|
56
58
|
}
|
|
57
59
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ t.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
|
|
59
61
|
]
|
|
60
62
|
}
|
|
61
|
-
),
|
|
62
|
-
audioList:
|
|
63
|
-
className:
|
|
63
|
+
), Sr = ({
|
|
64
|
+
audioList: N = [],
|
|
65
|
+
className: F,
|
|
64
66
|
currentAudioIndex: m = -1,
|
|
65
|
-
defaultPlaying:
|
|
66
|
-
isPlaybackPaused:
|
|
67
|
-
isAutoAdvanceEnabled:
|
|
68
|
-
useAutoAdvanceToggle:
|
|
69
|
-
onLoadingChange:
|
|
70
|
-
onPlaybackStarted:
|
|
71
|
-
onPlaybackTimeChange:
|
|
67
|
+
defaultPlaying: M = !0,
|
|
68
|
+
isPlaybackPaused: U = !1,
|
|
69
|
+
isAutoAdvanceEnabled: J = !0,
|
|
70
|
+
useAutoAdvanceToggle: Q = !1,
|
|
71
|
+
onLoadingChange: ue,
|
|
72
|
+
onPlaybackStarted: le,
|
|
73
|
+
onPlaybackTimeChange: D,
|
|
72
74
|
onSubtitleToggle: se,
|
|
73
|
-
onPrev:
|
|
74
|
-
onNext:
|
|
75
|
-
onFullscreen:
|
|
76
|
-
isFullscreen:
|
|
77
|
-
mobileViewMode:
|
|
78
|
-
settingsPortalContainer:
|
|
79
|
-
onMobileViewModeChange:
|
|
80
|
-
onEnded:
|
|
81
|
-
onAutoAdvanceToggle:
|
|
82
|
-
onInteractionToggle:
|
|
83
|
-
hasInteraction:
|
|
84
|
-
isInteractionOpen:
|
|
85
|
-
isSubtitleEnabled:
|
|
86
|
-
prevDisabled:
|
|
87
|
-
nextDisabled:
|
|
88
|
-
showControls:
|
|
89
|
-
customActions:
|
|
90
|
-
customActionContext:
|
|
91
|
-
texts:
|
|
92
|
-
...
|
|
75
|
+
onPrev: ve,
|
|
76
|
+
onNext: Ce,
|
|
77
|
+
onFullscreen: ae,
|
|
78
|
+
isFullscreen: ce = !1,
|
|
79
|
+
mobileViewMode: Le = lr,
|
|
80
|
+
settingsPortalContainer: Fe,
|
|
81
|
+
onMobileViewModeChange: ie,
|
|
82
|
+
onEnded: oe,
|
|
83
|
+
onAutoAdvanceToggle: Ue,
|
|
84
|
+
onInteractionToggle: We,
|
|
85
|
+
hasInteraction: Pe = !1,
|
|
86
|
+
isInteractionOpen: q = !1,
|
|
87
|
+
isSubtitleEnabled: I = !0,
|
|
88
|
+
prevDisabled: Ve = !1,
|
|
89
|
+
nextDisabled: Be = !1,
|
|
90
|
+
showControls: ee = !0,
|
|
91
|
+
customActions: fe,
|
|
92
|
+
customActionContext: de,
|
|
93
|
+
texts: me,
|
|
94
|
+
...Ze
|
|
93
95
|
}) => {
|
|
94
|
-
const
|
|
96
|
+
const p = a(null), pe = a(q), R = a(null), he = a(null), S = a(0), c = a(null), X = a(void 0), j = a([]), K = a(!1), ye = a(!1), y = a(!1), v = a(null), Z = a(null), g = a(!1), l = a(!1), h = a(null), x = a(!1), W = a(null), re = a(0), C = a("unknown"), [te, o] = Ee(M), [ge, $] = Ee(!1), f = m >= 0 ? N[m] : void 0, P = f?.audioUrl, w = z(
|
|
95
97
|
() => [...f?.audioSegments ?? []].sort(
|
|
96
|
-
(e,
|
|
98
|
+
(e, r) => e.segment_index - r.segment_index
|
|
97
99
|
),
|
|
98
100
|
[f?.audioSegments]
|
|
99
|
-
),
|
|
100
|
-
() =>
|
|
101
|
-
[
|
|
102
|
-
),
|
|
101
|
+
), _e = z(
|
|
102
|
+
() => cr(fe, de),
|
|
103
|
+
[de, fe]
|
|
104
|
+
), be = _e.length + 5, $e = z(
|
|
103
105
|
() => ({
|
|
104
|
-
"--slide-player-mobile-control-count": String(
|
|
106
|
+
"--slide-player-mobile-control-count": String(be)
|
|
105
107
|
}),
|
|
106
|
-
[
|
|
107
|
-
),
|
|
108
|
+
[be]
|
|
109
|
+
), V = z(
|
|
108
110
|
() => ({
|
|
109
|
-
...
|
|
110
|
-
...
|
|
111
|
+
...ur,
|
|
112
|
+
...me
|
|
111
113
|
}),
|
|
112
|
-
[
|
|
113
|
-
),
|
|
114
|
+
[me]
|
|
115
|
+
), ne = z(() => f ? f.audioKey ?? `${String(f.sequenceNumber ?? "none")}:${String(f.audioUrl ?? "")}` : "none", [f]), He = Q ? J : te, Oe = Q ? J ? "Pause autoplay" : "Play autoplay" : te ? "Pause" : "Play";
|
|
114
116
|
b(() => {
|
|
115
|
-
|
|
117
|
+
X.current = f;
|
|
116
118
|
}, [f]), b(() => {
|
|
117
|
-
|
|
118
|
-
}, [
|
|
119
|
-
!
|
|
120
|
-
}, [
|
|
121
|
-
|
|
122
|
-
}, [
|
|
123
|
-
const e = f?.audioUrl,
|
|
124
|
-
|
|
125
|
-
}, [
|
|
126
|
-
const n =
|
|
127
|
-
(e) => {
|
|
128
|
-
|
|
119
|
+
ee || $(!1);
|
|
120
|
+
}, [ee]), b(() => {
|
|
121
|
+
!pe.current && q && $(!1), pe.current = q;
|
|
122
|
+
}, [q]), b(() => {
|
|
123
|
+
j.current = w;
|
|
124
|
+
}, [w]), b(() => {
|
|
125
|
+
const e = f?.audioUrl, r = m >= 0 ? N[m + 1]?.audioUrl : void 0;
|
|
126
|
+
Re(e), Re(r);
|
|
127
|
+
}, [N, f?.audioUrl, m]);
|
|
128
|
+
const n = u(
|
|
129
|
+
(e, r = null) => {
|
|
130
|
+
ye.current === e && (!e || r === null) || (ye.current = e, ue?.({
|
|
131
|
+
loading: e,
|
|
132
|
+
reason: e ? r : null
|
|
133
|
+
}));
|
|
129
134
|
},
|
|
130
|
-
[
|
|
131
|
-
),
|
|
132
|
-
const e =
|
|
133
|
-
return e == null || e <= 0 ? 0 :
|
|
134
|
-
(
|
|
135
|
+
[ue]
|
|
136
|
+
), Se = u((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), L = u(() => M && !U && !y.current && C.current !== "blocked", [M, U]), xe = u((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), we = u(() => {
|
|
137
|
+
const e = c.current;
|
|
138
|
+
return e == null || e <= 0 ? 0 : j.current.slice(0, e).reduce(
|
|
139
|
+
(r, s) => r + Math.max(Number(s.duration_ms ?? 0), 0),
|
|
135
140
|
0
|
|
136
141
|
) / 1e3;
|
|
137
|
-
}, []),
|
|
138
|
-
(
|
|
142
|
+
}, []), B = u((e) => e <= 0 ? 0 : j.current.slice(0, e).reduce(
|
|
143
|
+
(r, s) => r + Math.max(Number(s.duration_ms ?? 0), 0),
|
|
139
144
|
0
|
|
140
|
-
), []),
|
|
141
|
-
const e =
|
|
142
|
-
return e ?
|
|
143
|
-
}, [
|
|
145
|
+
), []), Ae = u(() => {
|
|
146
|
+
const e = p.current;
|
|
147
|
+
return e ? v.current === "segment" ? B(S.current) + Math.max(e.currentTime, 0) * 1e3 : h.current !== null && e.readyState === 0 ? h.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : c.current != null ? B(c.current) : 0;
|
|
148
|
+
}, [B]), _ = u(
|
|
144
149
|
(e) => {
|
|
145
|
-
const
|
|
146
|
-
|
|
150
|
+
const r = Math.max(e, 0);
|
|
151
|
+
re.current !== r && (re.current = r, D?.(r));
|
|
147
152
|
},
|
|
148
|
-
[
|
|
149
|
-
),
|
|
150
|
-
|
|
151
|
-
}, [
|
|
152
|
-
typeof window > "u" ||
|
|
153
|
-
}, []),
|
|
154
|
-
if (typeof window > "u" ||
|
|
153
|
+
[D]
|
|
154
|
+
), i = u(() => {
|
|
155
|
+
_(Ae());
|
|
156
|
+
}, [Ae, _]), d = u(() => {
|
|
157
|
+
typeof window > "u" || W.current === null || (window.cancelAnimationFrame(W.current), W.current = null);
|
|
158
|
+
}, []), Me = u(() => {
|
|
159
|
+
if (typeof window > "u" || W.current !== null)
|
|
155
160
|
return;
|
|
156
161
|
const e = () => {
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
if (!
|
|
160
|
-
|
|
162
|
+
i();
|
|
163
|
+
const r = p.current;
|
|
164
|
+
if (!r || r.paused || r.ended) {
|
|
165
|
+
W.current = null;
|
|
161
166
|
return;
|
|
162
167
|
}
|
|
163
|
-
|
|
168
|
+
W.current = window.requestAnimationFrame(e);
|
|
164
169
|
};
|
|
165
|
-
|
|
166
|
-
}, [
|
|
167
|
-
const e =
|
|
168
|
-
e && (d(),
|
|
169
|
-
}, [
|
|
170
|
+
W.current = window.requestAnimationFrame(e);
|
|
171
|
+
}, [i]), H = u(() => {
|
|
172
|
+
const e = p.current;
|
|
173
|
+
e && (d(), l.current = !1, y.current = !1, K.current = !1, v.current = null, h.current = null, g.current = !1, x.current = !1, Z.current = null, e.pause(), e.removeAttribute("src"), e.load(), R.current = null, S.current = 0, c.current = null, _(0), o(!1), n(!1));
|
|
174
|
+
}, [_, d, n]), A = u(
|
|
170
175
|
(e) => {
|
|
171
|
-
const
|
|
172
|
-
if (!
|
|
176
|
+
const r = p.current;
|
|
177
|
+
if (!r)
|
|
173
178
|
return !1;
|
|
174
|
-
const
|
|
175
|
-
return
|
|
176
|
-
|
|
177
|
-
}).catch((
|
|
178
|
-
|
|
179
|
+
const s = r.play();
|
|
180
|
+
return s && typeof s.then == "function" && s.then(() => {
|
|
181
|
+
C.current === "unknown" && (C.current = "auto"), l.current = !1, x.current = !1;
|
|
182
|
+
}).catch((E) => {
|
|
183
|
+
C.current === "unknown" && Se(E) && (C.current = "blocked", l.current = !1, n(!1)), x.current = !1, o(!1);
|
|
179
184
|
}), !0;
|
|
180
185
|
},
|
|
181
|
-
[
|
|
182
|
-
),
|
|
183
|
-
(e,
|
|
184
|
-
const
|
|
185
|
-
if (!
|
|
186
|
+
[Se, n]
|
|
187
|
+
), k = u(
|
|
188
|
+
(e, r) => {
|
|
189
|
+
const s = p.current, E = j.current[e];
|
|
190
|
+
if (!s || !E)
|
|
186
191
|
return !1;
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
return
|
|
192
|
+
const T = xe(E.audio_data);
|
|
193
|
+
S.current = e, c.current = null, g.current = !1, x.current = !0, Z.current = "segment", _(B(e));
|
|
194
|
+
const G = L();
|
|
195
|
+
l.current = G, n(!1);
|
|
196
|
+
const er = R.current !== T;
|
|
197
|
+
return v.current = "segment", er && (s.pause(), s.removeAttribute("src"), s.load(), R.current = T, s.src = T, s.load()), h.current = 0, s.readyState > 0 && (s.currentTime = 0, h.current = null), G ? A(`start-segment:${r}`) : (l.current = !1, x.current = !1, s.pause(), o(!1), !0);
|
|
193
198
|
},
|
|
194
199
|
[
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
g,
|
|
200
|
+
L,
|
|
201
|
+
xe,
|
|
202
|
+
B,
|
|
199
203
|
_,
|
|
204
|
+
A,
|
|
200
205
|
n
|
|
201
206
|
]
|
|
202
|
-
),
|
|
207
|
+
), O = u(
|
|
203
208
|
(e) => {
|
|
204
|
-
d(),
|
|
209
|
+
d(), l.current = !1, g.current = !1, x.current = !1, i(), o(!1), n(!1), m >= 0 && oe?.(m);
|
|
205
210
|
},
|
|
206
211
|
[
|
|
207
212
|
m,
|
|
208
|
-
|
|
213
|
+
oe,
|
|
209
214
|
d,
|
|
210
|
-
|
|
215
|
+
i,
|
|
211
216
|
n
|
|
212
217
|
]
|
|
213
|
-
),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
), Y = u(
|
|
219
|
+
(e) => {
|
|
220
|
+
const r = p.current;
|
|
221
|
+
return !r || v.current !== "url" || !sr({
|
|
222
|
+
currentTimeSeconds: Math.max(r.currentTime, 0),
|
|
223
|
+
durationSeconds: r.duration
|
|
224
|
+
}) ? !1 : (l.current = !1, r.pause(), O(e), !0);
|
|
225
|
+
},
|
|
226
|
+
[O]
|
|
227
|
+
), je = u(() => {
|
|
228
|
+
const e = S.current + 1, r = j.current, s = r[e], E = X.current, T = r.some((G) => G.is_final);
|
|
229
|
+
if (s) {
|
|
230
|
+
k(e, "ended");
|
|
217
231
|
return;
|
|
218
232
|
}
|
|
219
|
-
if (
|
|
220
|
-
|
|
233
|
+
if (E?.isAudioStreaming || !T) {
|
|
234
|
+
S.current = e, c.current = e, g.current = !0, l.current = M, _(B(e)), o(!1), n(!0, "waitingForMoreAudio");
|
|
221
235
|
return;
|
|
222
236
|
}
|
|
223
|
-
|
|
237
|
+
O("segments-completed");
|
|
224
238
|
}, [
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
239
|
+
M,
|
|
240
|
+
O,
|
|
241
|
+
B,
|
|
242
|
+
_,
|
|
243
|
+
k,
|
|
230
244
|
n
|
|
231
245
|
]);
|
|
232
246
|
b(() => {
|
|
233
|
-
if (
|
|
247
|
+
if (he.current === ne)
|
|
234
248
|
return;
|
|
235
|
-
|
|
236
|
-
const e =
|
|
237
|
-
e && (e.pause(), e.removeAttribute("src"), e.load(),
|
|
249
|
+
he.current = ne, S.current = 0, c.current = null, g.current = !1, y.current = !1, K.current = !1, l.current = !1, x.current = !1, v.current = null, Z.current = null, R.current = null, d(), _(0), n(!1);
|
|
250
|
+
const e = p.current;
|
|
251
|
+
e && (e.pause(), e.removeAttribute("src"), e.load(), o(!1));
|
|
238
252
|
}, [
|
|
239
253
|
m,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
254
|
+
ne,
|
|
255
|
+
w.length,
|
|
256
|
+
P,
|
|
257
|
+
_,
|
|
244
258
|
d,
|
|
245
259
|
n
|
|
246
260
|
]), b(() => {
|
|
247
|
-
const e =
|
|
261
|
+
const e = p.current;
|
|
248
262
|
if (e) {
|
|
249
|
-
if (
|
|
250
|
-
|
|
263
|
+
if (U) {
|
|
264
|
+
K.current = !!(X.current && !y.current && (!e.paused || l.current || c.current !== null)), l.current = !1, n(!1), e.pause(), o(!1);
|
|
251
265
|
return;
|
|
252
266
|
}
|
|
253
|
-
if (!(
|
|
254
|
-
if (
|
|
255
|
-
if (
|
|
256
|
-
|
|
267
|
+
if (!(!K.current || !X.current || y.current)) {
|
|
268
|
+
if (K.current = !1, c.current !== null) {
|
|
269
|
+
if (c.current < j.current.length) {
|
|
270
|
+
k(c.current, "external-resume");
|
|
257
271
|
return;
|
|
258
272
|
}
|
|
259
|
-
|
|
273
|
+
l.current = !0, n(!0, "waitingForMoreAudio");
|
|
260
274
|
return;
|
|
261
275
|
}
|
|
262
|
-
if (!
|
|
263
|
-
|
|
276
|
+
if (!R.current && j.current.length > 0) {
|
|
277
|
+
k(
|
|
264
278
|
Math.min(
|
|
265
|
-
|
|
266
|
-
|
|
279
|
+
S.current,
|
|
280
|
+
j.current.length - 1
|
|
267
281
|
),
|
|
268
282
|
"external-resume-init"
|
|
269
283
|
);
|
|
270
284
|
return;
|
|
271
285
|
}
|
|
272
|
-
e.paused && (
|
|
286
|
+
e.paused && (l.current = !0, A("external-resume"));
|
|
273
287
|
}
|
|
274
288
|
}
|
|
275
289
|
}, [
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
290
|
+
U,
|
|
291
|
+
k,
|
|
292
|
+
A,
|
|
279
293
|
n
|
|
280
294
|
]), b(() => {
|
|
281
|
-
const e =
|
|
282
|
-
if (e)
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
if (s.current = u, S.current = !1, w.current = !1, n(!1), !u) {
|
|
306
|
-
s.current = !1, e.pause(), i(!1);
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
_(t ? "sync-url-init" : "sync-url");
|
|
310
|
-
return;
|
|
295
|
+
const e = p.current;
|
|
296
|
+
if (!e)
|
|
297
|
+
return;
|
|
298
|
+
if (!f) {
|
|
299
|
+
H();
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
if (U) {
|
|
303
|
+
l.current = !1, n(!1), e.pause(), o(!1);
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
const r = ar({
|
|
307
|
+
activeSourceType: v.current,
|
|
308
|
+
hasAudioUrl: !!P,
|
|
309
|
+
segmentCount: w.length,
|
|
310
|
+
preferredSourceType: Z.current,
|
|
311
|
+
waitingSegmentIndex: c.current
|
|
312
|
+
});
|
|
313
|
+
if (r && Z.current !== r && (Z.current = r), r === "url" && P) {
|
|
314
|
+
const s = R.current !== P, E = L();
|
|
315
|
+
if (s) {
|
|
316
|
+
const T = c.current !== null ? we() : 0;
|
|
317
|
+
e.pause(), e.removeAttribute("src"), e.load(), R.current = P, v.current = "url", e.src = P, e.load(), h.current = T, _(T * 1e3), e.readyState > 0 && (e.currentTime = T, h.current = null);
|
|
311
318
|
}
|
|
312
|
-
if (
|
|
313
|
-
|
|
314
|
-
if (y.current) {
|
|
315
|
-
i(!1), n(!1);
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
E(a.current, "wait-resume");
|
|
319
|
-
return;
|
|
320
|
-
}
|
|
321
|
-
S.current = !0, s.current = C(), i(!1), n(C());
|
|
319
|
+
if (l.current = E, g.current = !1, x.current = !1, n(!1), !E) {
|
|
320
|
+
l.current = !1, e.pause(), o(!1);
|
|
322
321
|
return;
|
|
323
322
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
323
|
+
A(s ? "sync-url-init" : "sync-url");
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
if (r === "segment" && c.current !== null) {
|
|
327
|
+
if (c.current < w.length) {
|
|
328
|
+
if (y.current) {
|
|
329
|
+
o(!1), n(!1);
|
|
327
330
|
return;
|
|
328
331
|
}
|
|
329
|
-
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
if (!M.current) {
|
|
333
|
-
E(
|
|
334
|
-
Math.min(
|
|
335
|
-
x.current,
|
|
336
|
-
A.length - 1
|
|
337
|
-
),
|
|
338
|
-
"effect-init"
|
|
339
|
-
);
|
|
332
|
+
k(c.current, "wait-resume");
|
|
340
333
|
return;
|
|
341
334
|
}
|
|
342
|
-
|
|
343
|
-
|
|
335
|
+
g.current = !0, l.current = L(), o(!1), n(L());
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
if (r === "segment" && !w.length) {
|
|
339
|
+
if (f.isAudioStreaming) {
|
|
340
|
+
c.current = S.current, g.current = !0, l.current = L(), o(!1), n(L());
|
|
344
341
|
return;
|
|
345
342
|
}
|
|
346
|
-
|
|
343
|
+
H();
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (r === "segment" && !R.current) {
|
|
347
|
+
k(
|
|
348
|
+
Math.min(
|
|
349
|
+
S.current,
|
|
350
|
+
w.length - 1
|
|
351
|
+
),
|
|
352
|
+
"effect-init"
|
|
353
|
+
);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
if (r !== "segment") {
|
|
357
|
+
H();
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
if (!M || y.current) {
|
|
361
|
+
l.current = !1, e.pause(), o(!1);
|
|
362
|
+
return;
|
|
347
363
|
}
|
|
364
|
+
e.paused && (l.current = !0, A("sync-paused-retry"));
|
|
348
365
|
}, [
|
|
349
366
|
f,
|
|
350
367
|
m,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
368
|
+
w,
|
|
369
|
+
P,
|
|
370
|
+
M,
|
|
371
|
+
U,
|
|
354
372
|
L,
|
|
355
|
-
C,
|
|
356
|
-
g,
|
|
357
|
-
H,
|
|
358
|
-
E,
|
|
359
373
|
_,
|
|
360
|
-
|
|
374
|
+
H,
|
|
375
|
+
k,
|
|
376
|
+
A,
|
|
377
|
+
we,
|
|
361
378
|
n
|
|
362
379
|
]), b(() => H, [H]), b(() => d, [d]);
|
|
363
|
-
const
|
|
364
|
-
|
|
380
|
+
const qe = u(() => {
|
|
381
|
+
i(), Me(), o(!0), n(!1), le?.();
|
|
365
382
|
}, [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
383
|
+
le,
|
|
384
|
+
Me,
|
|
385
|
+
i,
|
|
369
386
|
n
|
|
370
|
-
]),
|
|
371
|
-
|
|
372
|
-
}, [m, d,
|
|
373
|
-
const e =
|
|
374
|
-
e &&
|
|
387
|
+
]), Ke = u(() => {
|
|
388
|
+
g.current || x.current || (d(), i(), o(!1));
|
|
389
|
+
}, [m, d, i]), ze = u(() => {
|
|
390
|
+
const e = p.current;
|
|
391
|
+
e && h.current !== null && (e.currentTime = h.current, h.current = null), i(), !Y("canplay-seek-finished") && (!l.current || !M || A("canplay"));
|
|
375
392
|
}, [
|
|
376
393
|
m,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
if (
|
|
390
|
-
|
|
394
|
+
M,
|
|
395
|
+
Y,
|
|
396
|
+
i,
|
|
397
|
+
A
|
|
398
|
+
]), De = u(() => {
|
|
399
|
+
const e = p.current;
|
|
400
|
+
e && h.current !== null && (e.currentTime = h.current, h.current = null), i(), Y("metadata-seek-finished");
|
|
401
|
+
}, [m, Y, i]), Xe = u(() => {
|
|
402
|
+
i();
|
|
403
|
+
}, [i]), Ye = u(() => {
|
|
404
|
+
g.current || n(!0, "loadingAudio");
|
|
405
|
+
}, [n]), Ge = u(() => {
|
|
406
|
+
if (g.current) {
|
|
407
|
+
n(!0, "waitingForMoreAudio");
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
n(!0, "loadingAudio");
|
|
411
|
+
}, [n]), ke = u(() => {
|
|
412
|
+
i();
|
|
413
|
+
}, [i]), Je = u(() => {
|
|
414
|
+
const e = v.current === "url" || j.current.length === 0;
|
|
415
|
+
if (d(), x.current = !1, e) {
|
|
416
|
+
O("url-ended");
|
|
391
417
|
return;
|
|
392
418
|
}
|
|
393
419
|
je();
|
|
394
|
-
}, [
|
|
395
|
-
d(),
|
|
396
|
-
}, [d,
|
|
420
|
+
}, [O, je, d]), Qe = u(() => {
|
|
421
|
+
d(), i(), o(!1), n(!1);
|
|
422
|
+
}, [d, i, n]), Ie = u(
|
|
397
423
|
(e) => {
|
|
398
|
-
|
|
424
|
+
ie?.(e), $(!1);
|
|
399
425
|
},
|
|
400
|
-
[
|
|
426
|
+
[ie]
|
|
401
427
|
);
|
|
402
428
|
return b(() => {
|
|
403
|
-
|
|
404
|
-
}, [
|
|
405
|
-
/* @__PURE__ */
|
|
429
|
+
D?.(re.current);
|
|
430
|
+
}, [D]), /* @__PURE__ */ t.jsxs("div", { className: Te("slide-player", F), ...Ze, children: [
|
|
431
|
+
/* @__PURE__ */ t.jsx(
|
|
406
432
|
"audio",
|
|
407
433
|
{
|
|
408
|
-
ref:
|
|
434
|
+
ref: p,
|
|
409
435
|
preload: "auto",
|
|
410
436
|
playsInline: !0,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
437
|
+
onLoadStart: Ye,
|
|
438
|
+
onLoadedMetadata: De,
|
|
439
|
+
onCanPlay: ze,
|
|
440
|
+
onPlay: qe,
|
|
441
|
+
onPause: Ke,
|
|
442
|
+
onWaiting: Ge,
|
|
443
|
+
onSeeking: ke,
|
|
444
|
+
onSeeked: ke,
|
|
445
|
+
onTimeUpdate: Xe,
|
|
446
|
+
onEnded: Je,
|
|
447
|
+
onError: Qe
|
|
420
448
|
}
|
|
421
449
|
),
|
|
422
|
-
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
|
|
450
|
+
ee ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
451
|
+
/* @__PURE__ */ t.jsx(
|
|
452
|
+
nr,
|
|
425
453
|
{
|
|
426
|
-
container:
|
|
454
|
+
container: Fe,
|
|
427
455
|
labels: {
|
|
428
|
-
fullscreen:
|
|
429
|
-
nonFullscreen:
|
|
430
|
-
screen:
|
|
431
|
-
subtitle:
|
|
432
|
-
subtitleToggle:
|
|
433
|
-
title:
|
|
456
|
+
fullscreen: V.fullscreenLabel,
|
|
457
|
+
nonFullscreen: V.nonFullscreenLabel,
|
|
458
|
+
screen: V.screenLabel,
|
|
459
|
+
subtitle: V.subtitleLabel,
|
|
460
|
+
subtitleToggle: V.subtitleToggleAriaLabel,
|
|
461
|
+
title: V.settingsTitle
|
|
434
462
|
},
|
|
435
|
-
isSubtitleEnabled:
|
|
436
|
-
onClose: () =>
|
|
437
|
-
onOpenChange:
|
|
463
|
+
isSubtitleEnabled: I,
|
|
464
|
+
onClose: () => $(!1),
|
|
465
|
+
onOpenChange: $,
|
|
438
466
|
onSubtitleToggle: se ?? (() => {
|
|
439
467
|
}),
|
|
440
|
-
onViewModeChange:
|
|
441
|
-
open:
|
|
442
|
-
viewMode:
|
|
468
|
+
onViewModeChange: Ie,
|
|
469
|
+
open: ge,
|
|
470
|
+
viewMode: Le
|
|
443
471
|
}
|
|
444
472
|
),
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ t.jsxs("div", { className: "slide-player__controls", style: $e, children: [
|
|
474
|
+
/* @__PURE__ */ t.jsxs("div", { className: "slide-player__group", children: [
|
|
475
|
+
/* @__PURE__ */ t.jsx(
|
|
448
476
|
"button",
|
|
449
477
|
{
|
|
450
|
-
"aria-expanded":
|
|
478
|
+
"aria-expanded": ge,
|
|
451
479
|
"aria-haspopup": "dialog",
|
|
452
480
|
"aria-label": "More options",
|
|
453
481
|
className: "slide-player__action slide-player__action--mobile-more",
|
|
454
482
|
onClick: () => {
|
|
455
|
-
|
|
483
|
+
$((e) => !e);
|
|
456
484
|
},
|
|
457
485
|
type: "button",
|
|
458
|
-
children: /* @__PURE__ */
|
|
459
|
-
|
|
486
|
+
children: /* @__PURE__ */ t.jsx(
|
|
487
|
+
ir,
|
|
460
488
|
{
|
|
461
489
|
className: "slide-player__icon",
|
|
462
490
|
strokeWidth: 2.25
|
|
@@ -464,17 +492,17 @@ const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
|
|
|
464
492
|
)
|
|
465
493
|
}
|
|
466
494
|
),
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ t.jsx("button", { "aria-label": "Volume", className: "hidden", type: "button", children: /* @__PURE__ */ t.jsx(or, { className: "slide-player__icon", strokeWidth: 2.25 }) }),
|
|
496
|
+
/* @__PURE__ */ t.jsx(
|
|
469
497
|
"button",
|
|
470
498
|
{
|
|
471
|
-
"aria-label":
|
|
472
|
-
"aria-pressed":
|
|
499
|
+
"aria-label": V.subtitleToggleAriaLabel,
|
|
500
|
+
"aria-pressed": I,
|
|
473
501
|
className: "slide-player__action slide-player__action--subtitle",
|
|
474
502
|
onClick: se,
|
|
475
503
|
type: "button",
|
|
476
|
-
children:
|
|
477
|
-
|
|
504
|
+
children: I ? /* @__PURE__ */ t.jsx(fr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ t.jsx(
|
|
505
|
+
dr,
|
|
478
506
|
{
|
|
479
507
|
className: "slide-player__icon",
|
|
480
508
|
strokeWidth: 2.25
|
|
@@ -482,84 +510,84 @@ const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
|
|
|
482
510
|
)
|
|
483
511
|
}
|
|
484
512
|
),
|
|
485
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ t.jsx(
|
|
486
514
|
"button",
|
|
487
515
|
{
|
|
488
516
|
"aria-label": "Rewind",
|
|
489
517
|
className: "slide-player__action slide-player__action--prev",
|
|
490
|
-
disabled:
|
|
491
|
-
onClick:
|
|
518
|
+
disabled: Ve,
|
|
519
|
+
onClick: ve,
|
|
492
520
|
type: "button",
|
|
493
|
-
children: /* @__PURE__ */
|
|
521
|
+
children: /* @__PURE__ */ t.jsx(mr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
494
522
|
}
|
|
495
523
|
),
|
|
496
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ t.jsx(
|
|
497
525
|
"button",
|
|
498
526
|
{
|
|
499
|
-
"aria-label":
|
|
527
|
+
"aria-label": Oe,
|
|
500
528
|
className: "slide-player__toggle slide-player__toggle--playback",
|
|
501
529
|
onClick: () => {
|
|
502
|
-
if (
|
|
503
|
-
|
|
530
|
+
if (Q) {
|
|
531
|
+
Ue?.(!J);
|
|
504
532
|
return;
|
|
505
533
|
}
|
|
506
|
-
const e =
|
|
507
|
-
if (!(
|
|
508
|
-
if (
|
|
509
|
-
if (
|
|
510
|
-
|
|
534
|
+
const e = p.current;
|
|
535
|
+
if (!(U || !e || !f)) {
|
|
536
|
+
if (c.current !== null) {
|
|
537
|
+
if (te) {
|
|
538
|
+
l.current = !1, y.current = !0, c.current = null, g.current = !1, o(!1), n(!1), e.pause();
|
|
511
539
|
return;
|
|
512
540
|
}
|
|
513
|
-
|
|
541
|
+
C.current = "manual", y.current = !1, l.current = !0, n(!0, "waitingForMoreAudio");
|
|
514
542
|
return;
|
|
515
543
|
}
|
|
516
|
-
if (!e.src &&
|
|
517
|
-
|
|
544
|
+
if (!e.src && w.length > 0) {
|
|
545
|
+
C.current = "manual", y.current = !1, k(
|
|
518
546
|
Math.min(
|
|
519
|
-
|
|
520
|
-
|
|
547
|
+
S.current,
|
|
548
|
+
w.length - 1
|
|
521
549
|
),
|
|
522
550
|
"toggle"
|
|
523
551
|
);
|
|
524
552
|
return;
|
|
525
553
|
}
|
|
526
554
|
if (e.paused) {
|
|
527
|
-
|
|
555
|
+
C.current = "manual", y.current = !1, l.current = !0, A("toggle-resume");
|
|
528
556
|
return;
|
|
529
557
|
}
|
|
530
|
-
|
|
558
|
+
l.current = !1, y.current = !0, e.pause();
|
|
531
559
|
}
|
|
532
560
|
},
|
|
533
561
|
type: "button",
|
|
534
|
-
children:
|
|
562
|
+
children: He ? /* @__PURE__ */ t.jsx(_r, {}) : /* @__PURE__ */ t.jsx(br, {})
|
|
535
563
|
}
|
|
536
564
|
),
|
|
537
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ t.jsx(
|
|
538
566
|
"button",
|
|
539
567
|
{
|
|
540
568
|
"aria-label": "Forward",
|
|
541
569
|
className: "slide-player__action slide-player__action--next",
|
|
542
|
-
disabled:
|
|
543
|
-
onClick:
|
|
570
|
+
disabled: Be,
|
|
571
|
+
onClick: Ce,
|
|
544
572
|
type: "button",
|
|
545
|
-
children: /* @__PURE__ */
|
|
573
|
+
children: /* @__PURE__ */ t.jsx(pr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
546
574
|
}
|
|
547
575
|
),
|
|
548
|
-
|
|
576
|
+
ae ? /* @__PURE__ */ t.jsx(
|
|
549
577
|
"button",
|
|
550
578
|
{
|
|
551
|
-
"aria-label":
|
|
579
|
+
"aria-label": ce ? "Exit fullscreen" : "Enter fullscreen",
|
|
552
580
|
className: "slide-player__action slide-player__action--fullscreen",
|
|
553
|
-
onClick:
|
|
581
|
+
onClick: ae,
|
|
554
582
|
type: "button",
|
|
555
|
-
children:
|
|
556
|
-
|
|
583
|
+
children: ce ? /* @__PURE__ */ t.jsx(
|
|
584
|
+
hr,
|
|
557
585
|
{
|
|
558
586
|
className: "slide-player__icon",
|
|
559
587
|
strokeWidth: 2.25
|
|
560
588
|
}
|
|
561
|
-
) : /* @__PURE__ */
|
|
562
|
-
|
|
589
|
+
) : /* @__PURE__ */ t.jsx(
|
|
590
|
+
yr,
|
|
563
591
|
{
|
|
564
592
|
className: "slide-player__icon",
|
|
565
593
|
strokeWidth: 2.25
|
|
@@ -568,22 +596,22 @@ const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
|
|
|
568
596
|
}
|
|
569
597
|
) : null
|
|
570
598
|
] }),
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
|
|
574
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ t.jsx("div", { className: "slide-player__separator" }),
|
|
600
|
+
/* @__PURE__ */ t.jsxs("div", { className: "slide-player__group", children: [
|
|
601
|
+
_e.map((e, r) => /* @__PURE__ */ t.jsx(rr.Fragment, { children: e }, `custom-action-${r}`)),
|
|
602
|
+
/* @__PURE__ */ t.jsx(
|
|
575
603
|
"button",
|
|
576
604
|
{
|
|
577
605
|
"aria-label": "Notes",
|
|
578
|
-
className:
|
|
606
|
+
className: Te(
|
|
579
607
|
"slide-player__action slide-player__action--notes",
|
|
580
|
-
|
|
608
|
+
q && "slide-player__action--active"
|
|
581
609
|
),
|
|
582
|
-
disabled: !
|
|
583
|
-
onClick:
|
|
610
|
+
disabled: !Pe,
|
|
611
|
+
onClick: We,
|
|
584
612
|
type: "button",
|
|
585
|
-
children: /* @__PURE__ */
|
|
586
|
-
|
|
613
|
+
children: /* @__PURE__ */ t.jsx(
|
|
614
|
+
gr,
|
|
587
615
|
{
|
|
588
616
|
className: "slide-player__icon",
|
|
589
617
|
strokeWidth: 2.25
|
|
@@ -595,9 +623,9 @@ const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
|
|
|
595
623
|
] })
|
|
596
624
|
] }) : null
|
|
597
625
|
] });
|
|
598
|
-
},
|
|
599
|
-
|
|
626
|
+
}, xr = tr(Sr);
|
|
627
|
+
xr.displayName = "Player";
|
|
600
628
|
export {
|
|
601
|
-
|
|
629
|
+
xr as default
|
|
602
630
|
};
|
|
603
631
|
//# sourceMappingURL=Player.es.js.map
|