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