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.
Files changed (50) hide show
  1. package/dist/_virtual/index.cjs10.js +1 -1
  2. package/dist/_virtual/index.cjs5.js +1 -1
  3. package/dist/_virtual/index.cjs6.js +1 -1
  4. package/dist/_virtual/index.cjs8.js +1 -1
  5. package/dist/_virtual/index.cjs9.js +1 -1
  6. package/dist/_virtual/index.es10.js +2 -2
  7. package/dist/_virtual/index.es5.js +4 -4
  8. package/dist/_virtual/index.es6.js +4 -4
  9. package/dist/_virtual/index.es8.js +2 -3
  10. package/dist/_virtual/index.es8.js.map +1 -1
  11. package/dist/_virtual/index.es9.js +3 -2
  12. package/dist/_virtual/index.es9.js.map +1 -1
  13. package/dist/components/Slide/Player.cjs.js +1 -1
  14. package/dist/components/Slide/Player.cjs.js.map +1 -1
  15. package/dist/components/Slide/Player.d.ts +5 -1
  16. package/dist/components/Slide/Player.es.js +312 -288
  17. package/dist/components/Slide/Player.es.js.map +1 -1
  18. package/dist/components/Slide/Slide.cjs.js +1 -1
  19. package/dist/components/Slide/Slide.cjs.js.map +1 -1
  20. package/dist/components/Slide/Slide.d.ts +4 -2
  21. package/dist/components/Slide/Slide.es.js +448 -437
  22. package/dist/components/Slide/Slide.es.js.map +1 -1
  23. package/dist/components/Slide/Slide.stories.d.ts +1 -0
  24. package/dist/components/Slide/utils/audioCompletion.cjs.js +2 -0
  25. package/dist/components/Slide/utils/audioCompletion.cjs.js.map +1 -0
  26. package/dist/components/Slide/utils/audioCompletion.d.ts +7 -0
  27. package/dist/components/Slide/utils/audioCompletion.es.js +9 -0
  28. package/dist/components/Slide/utils/audioCompletion.es.js.map +1 -0
  29. package/dist/components/Slide/utils/audioCompletion.test.d.ts +1 -0
  30. 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
  31. 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
  32. 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
  33. package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs.js +1 -1
  34. package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +1 -1
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. package/dist/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.cjs.js +1 -1
  48. package/dist/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js +1 -1
  49. package/dist/markdown-flow-ui-lib.css +1 -1
  50. package/package.json +1 -1
@@ -1,26 +1,27 @@
1
- import { j as r } from "../../_virtual/jsx-runtime.es.js";
2
- import Je, { memo as Qe, useRef as c, useState as ke, useMemo as O, useEffect as b, useCallback as l } from "react";
3
- import { cn as Ae } from "../../lib/utils.es.js";
4
- import Ie from "./MobilePlayerSettingsSheet.es.js";
5
- import { DEFAULT_SLIDE_PLAYER_TEXTS as er } from "./constants.es.js";
6
- import { DEFAULT_MOBILE_VIEW_MODE as rr } from "./utils/mobileScreenMode.es.js";
7
- import { toPlayerCustomActionList as tr } from "./utils/playerCustomActions.es.js";
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 nr 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";
10
- import sr 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";
11
- import lr 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";
12
- import ur 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";
13
- 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/rotate-ccw.es.js";
14
- 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/rotate-cw.es.js";
15
- 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/scan-line.es.js";
16
- 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/maximize.es.js";
17
- 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/file-pen-line.es.js";
18
- const Ee = /* @__PURE__ */ new Map(), Ne = (R) => {
19
- if (typeof window > "u" || !R || Ee.has(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(), Ee.set(R, v);
23
- }, dr = () => /* @__PURE__ */ r.jsxs(
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__ */ r.jsx(
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__ */ r.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
40
+ /* @__PURE__ */ t.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
40
41
  ]
41
42
  }
42
- ), mr = () => /* @__PURE__ */ r.jsxs(
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__ */ r.jsx(
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__ */ r.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
59
+ /* @__PURE__ */ t.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
59
60
  ]
60
61
  }
61
- ), pr = ({
62
+ ), _r = ({
62
63
  audioList: R = [],
63
64
  className: v,
64
65
  currentAudioIndex: m = -1,
65
- defaultPlaying: j = !0,
66
- isPlaybackPaused: L = !1,
67
- isAutoAdvanceEnabled: Y = !0,
68
- useAutoAdvanceToggle: G = !1,
69
- onLoadingChange: te,
70
- onPlaybackStarted: ne,
71
- onPlaybackTimeChange: q,
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: Re,
74
- onNext: Te,
74
+ onPrev: Te,
75
+ onNext: Ce,
75
76
  onFullscreen: le,
76
- isFullscreen: ue = !1,
77
- mobileViewMode: Ce = rr,
77
+ isFullscreen: ae = !1,
78
+ mobileViewMode: Le = ur,
78
79
  settingsPortalContainer: ve,
79
- onMobileViewModeChange: ae,
80
- onEnded: ce,
81
- onAutoAdvanceToggle: Le,
80
+ onMobileViewModeChange: ce,
81
+ onEnded: ie,
82
+ onAutoAdvanceToggle: Fe,
82
83
  onInteractionToggle: Ue,
83
- hasInteraction: Fe = !1,
84
- isInteractionOpen: Z = !1,
85
- isSubtitleEnabled: J = !0,
84
+ hasInteraction: We = !1,
85
+ isInteractionOpen: $ = !1,
86
+ isSubtitleEnabled: Q = !0,
86
87
  prevDisabled: Pe = !1,
87
- nextDisabled: We = !1,
88
- showControls: Q = !0,
89
- customActions: ie,
90
- customActionContext: oe,
91
- texts: fe,
92
- ...Ve
88
+ nextDisabled: Ve = !1,
89
+ showControls: I = !0,
90
+ customActions: oe,
91
+ customActionContext: fe,
92
+ texts: de,
93
+ ...Be
93
94
  }) => {
94
- const h = c(null), de = c(Z), M = c(null), me = c(null), x = c(0), a = c(null), z = c(void 0), k = c([]), $ = c(!1), pe = c(!1), y = c(!1), U = c(null), S = c(!1), s = c(!1), p = c(null), w = c(!1), F = c(null), I = c(0), T = c("unknown"), [ee, i] = ke(j), [he, B] = ke(!1), f = m >= 0 ? R[m] : void 0, K = f?.audioUrl, A = O(
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, t) => e.segment_index - t.segment_index
97
+ (e, r) => e.segment_index - r.segment_index
97
98
  ),
98
99
  [f?.audioSegments]
99
- ), ye = O(
100
- () => tr(ie, oe),
101
- [oe, ie]
102
- ), ge = ye.length + 5, Be = O(
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(ge)
105
+ "--slide-player-mobile-control-count": String(_e)
105
106
  }),
106
- [ge]
107
- ), P = O(
107
+ [_e]
108
+ ), W = q(
108
109
  () => ({
109
- ...er,
110
- ...fe
110
+ ...nr,
111
+ ...de
111
112
  }),
112
- [fe]
113
- ), re = O(() => f ? f.audioKey ?? `${String(f.sequenceNumber ?? "none")}:${String(f.audioUrl ?? "")}` : "none", [f]), Ke = G ? Y : ee, Ze = G ? Y ? "Pause autoplay" : "Play autoplay" : ee ? "Pause" : "Play";
114
- b(() => {
115
- z.current = f;
116
- }, [f]), b(() => {
117
- Q || B(!1);
118
- }, [Q]), b(() => {
119
- !de.current && Z && B(!1), de.current = Z;
120
- }, [Z]), b(() => {
121
- k.current = A;
122
- }, [A]), b(() => {
123
- const e = f?.audioUrl, t = m >= 0 ? R[m + 1]?.audioUrl : void 0;
124
- Ne(e), Ne(t);
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 = l(
127
- (e) => {
128
- pe.current !== e && (pe.current = e, te?.(e));
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
- [te]
131
- ), _e = l((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), C = l(() => j && !L && !y.current && T.current !== "blocked", [j, L]), be = l((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), xe = l(() => {
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 : k.current.slice(0, e).reduce(
134
- (t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
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
- }, []), W = l((e) => e <= 0 ? 0 : k.current.slice(0, e).reduce(
138
- (t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
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
- ), []), Se = l(() => {
141
- const e = h.current;
142
- return e ? U.current === "segment" ? W(x.current) + Math.max(e.currentTime, 0) * 1e3 : p.current !== null && e.readyState === 0 ? p.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : a.current != null ? W(a.current) : 0;
143
- }, [W]), g = l(
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 t = Math.max(e, 0);
146
- I.current !== t && (I.current = t, q?.(t));
149
+ const r = Math.max(e, 0);
150
+ ee.current !== r && (ee.current = r, z?.(r));
147
151
  },
148
- [q]
149
- ), o = l(() => {
150
- g(Se());
151
- }, [Se, g]), d = l(() => {
152
- typeof window > "u" || F.current === null || (window.cancelAnimationFrame(F.current), F.current = null);
153
- }, []), we = l(() => {
154
- if (typeof window > "u" || F.current !== null)
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 t = h.current;
159
- if (!t || t.paused || t.ended) {
160
- F.current = null;
162
+ const r = p.current;
163
+ if (!r || r.paused || r.ended) {
164
+ U.current = null;
161
165
  return;
162
166
  }
163
- F.current = window.requestAnimationFrame(e);
167
+ U.current = window.requestAnimationFrame(e);
164
168
  };
165
- F.current = window.requestAnimationFrame(e);
166
- }, [o]), H = l(() => {
167
- const e = h.current;
168
- e && (d(), s.current = !1, y.current = !1, $.current = !1, U.current = null, p.current = null, S.current = !1, w.current = !1, e.pause(), e.removeAttribute("src"), e.load(), M.current = null, x.current = 0, a.current = null, g(0), i(!1), n(!1));
169
- }, [g, d, n]), _ = l(
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 t = h.current;
172
- if (!t)
175
+ const r = p.current;
176
+ if (!r)
173
177
  return !1;
174
- const u = t.play();
175
- return u && typeof u.then == "function" && u.then(() => {
176
- T.current === "unknown" && (T.current = "auto"), s.current = !1, w.current = !1;
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
- T.current === "unknown" && _e(V) && (T.current = "blocked", s.current = !1, n(!1)), w.current = !1, i(!1);
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
- [_e, n]
182
- ), E = l(
183
- (e, t) => {
184
- const u = h.current, V = k.current[e];
185
- if (!u || !V)
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 = be(V.audio_data);
188
- x.current = e, a.current = null, S.current = !1, w.current = !0, g(W(e));
189
- const X = C();
190
- s.current = X, n(!1);
191
- const Ge = M.current !== N;
192
- return U.current = "segment", Ge && (u.pause(), u.removeAttribute("src"), u.load(), M.current = N, u.src = N, u.load()), p.current = 0, u.readyState > 0 && (u.currentTime = 0, p.current = null), X ? _(`start-segment:${t}`) : (s.current = !1, w.current = !1, u.pause(), i(!1), !0);
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
- C,
196
- be,
197
- W,
198
- g,
199
+ L,
200
+ Se,
201
+ P,
199
202
  _,
203
+ b,
200
204
  n
201
205
  ]
202
- ), D = l(
206
+ ), Z = u(
203
207
  (e) => {
204
- d(), s.current = !1, S.current = !1, w.current = !1, o(), i(!1), n(!1), m >= 0 && ce?.(m);
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
- ce,
212
+ ie,
209
213
  d,
210
214
  o,
211
215
  n
212
216
  ]
213
- ), je = l(() => {
214
- const e = x.current + 1, t = k.current, u = t[e], V = z.current, N = t.some((X) => X.is_final);
215
- if (u) {
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, S.current = !0, s.current = j, g(W(e)), i(!1), n(!0);
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
- D("segments-completed");
236
+ Z("segments-completed");
224
237
  }, [
225
- j,
226
- D,
227
- W,
228
- g,
238
+ A,
239
+ Z,
240
+ P,
241
+ _,
229
242
  E,
230
243
  n
231
244
  ]);
232
- b(() => {
233
- if (me.current === re)
245
+ S(() => {
246
+ if (pe.current === te)
234
247
  return;
235
- me.current = re, x.current = 0, a.current = null, S.current = !1, y.current = !1, $.current = !1, s.current = !1, w.current = !1, U.current = null, M.current = null, d(), g(0), n(!1);
236
- const e = h.current;
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
- re,
241
- A.length,
253
+ te,
254
+ k.length,
242
255
  K,
243
- g,
256
+ _,
244
257
  d,
245
258
  n
246
- ]), b(() => {
247
- const e = h.current;
259
+ ]), S(() => {
260
+ const e = p.current;
248
261
  if (e) {
249
- if (L) {
250
- $.current = !!(z.current && !y.current && (!e.paused || s.current || a.current !== null)), s.current = !1, n(!1), e.pause(), i(!1);
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 (!(!$.current || !z.current || y.current)) {
254
- if ($.current = !1, a.current !== null) {
255
- if (a.current < k.current.length) {
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 && k.current.length > 0) {
275
+ if (!M.current && j.current.length > 0) {
263
276
  E(
264
277
  Math.min(
265
278
  x.current,
266
- k.current.length - 1
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, _("external-resume"));
285
+ e.paused && (s.current = !0, b("external-resume"));
273
286
  }
274
287
  }
275
288
  }, [
276
- L,
289
+ F,
277
290
  E,
278
- _,
291
+ b,
279
292
  n
280
- ]), b(() => {
281
- const e = h.current;
293
+ ]), S(() => {
294
+ const e = p.current;
282
295
  if (e) {
283
296
  if (!f) {
284
- H();
297
+ O();
285
298
  return;
286
299
  }
287
- if (L) {
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 t = M.current !== K, u = C();
293
- if (U.current === "segment" && !!M.current && a.current === null) {
294
- if (!u) {
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, _("keep-segment-source"));
311
+ e.paused && (s.current = !0, b("keep-segment-source"));
299
312
  return;
300
313
  }
301
- if (t) {
314
+ if (r) {
302
315
  const N = a.current !== null ? xe() : 0;
303
- e.pause(), e.removeAttribute("src"), e.load(), M.current = K, U.current = "url", e.src = K, e.load(), p.current = N, g(N * 1e3), e.readyState > 0 && (e.currentTime = N, p.current = null);
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 = u, S.current = !1, w.current = !1, n(!1), !u) {
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
- _(t ? "sync-url-init" : "sync-url");
322
+ b(r ? "sync-url-init" : "sync-url");
310
323
  return;
311
324
  }
312
325
  if (a.current !== null) {
313
- if (a.current < A.length) {
314
- if (y.current) {
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
- S.current = !0, s.current = C(), i(!1), n(C());
334
+ y.current = !0, s.current = L(), i(!1), n(L());
322
335
  return;
323
336
  }
324
- if (!A.length) {
337
+ if (!k.length) {
325
338
  if (f.isAudioStreaming) {
326
- a.current = x.current, S.current = !0, s.current = C(), i(!1), n(C());
339
+ a.current = x.current, y.current = !0, s.current = L(), i(!1), n(L());
327
340
  return;
328
341
  }
329
- H();
342
+ O();
330
343
  return;
331
344
  }
332
345
  if (!M.current) {
333
346
  E(
334
347
  Math.min(
335
348
  x.current,
336
- A.length - 1
349
+ k.length - 1
337
350
  ),
338
351
  "effect-init"
339
352
  );
340
353
  return;
341
354
  }
342
- if (!j || y.current) {
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, _("sync-paused-retry"));
359
+ e.paused && (s.current = !0, b("sync-paused-retry"));
347
360
  }
348
361
  }, [
349
362
  f,
350
363
  m,
351
- A,
364
+ k,
352
365
  K,
353
- j,
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
- ]), b(() => H, [H]), b(() => d, [d]);
363
- const $e = l(() => {
364
- o(), we(), i(!0), n(!1), ne?.();
375
+ ]), S(() => O, [O]), S(() => d, [d]);
376
+ const He = u(() => {
377
+ o(), Ae(), i(!0), n(!1), ue?.();
365
378
  }, [
366
- ne,
367
- we,
379
+ ue,
380
+ Ae,
368
381
  o,
369
382
  n
370
- ]), He = l(() => {
371
- S.current || w.current || (d(), o(), i(!1));
372
- }, [m, d, o]), Oe = l(() => {
373
- const e = h.current;
374
- e && p.current !== null && (e.currentTime = p.current, p.current = null), o(), !(!s.current || !j) && _("canplay");
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
- j,
390
+ A,
391
+ X,
378
392
  o,
379
- _
380
- ]), qe = l(() => {
381
- const e = h.current;
382
- e && p.current !== null && (e.currentTime = p.current, p.current = null), o();
383
- }, [m, o]), ze = l(() => {
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]), Me = l(() => {
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]), De = l(() => {
388
- const e = U.current === "url" || k.current.length === 0;
409
+ }, [o]), Ge = u(() => {
410
+ const e = T.current === "url" || j.current.length === 0;
389
411
  if (d(), w.current = !1, e) {
390
- D("url-ended");
412
+ Z("url-ended");
391
413
  return;
392
414
  }
393
- je();
394
- }, [D, je, d]), Xe = l(() => {
415
+ Me();
416
+ }, [Z, Me, d]), Je = u(() => {
395
417
  d(), o(), i(!1), n(!1);
396
- }, [d, o, n]), Ye = l(
418
+ }, [d, o, n]), Qe = u(
397
419
  (e) => {
398
- ae?.(e), B(!1);
420
+ ce?.(e), B(!1);
399
421
  },
400
- [ae]
422
+ [ce]
401
423
  );
402
- return b(() => {
403
- q?.(I.current);
404
- }, [q]), /* @__PURE__ */ r.jsxs("div", { className: Ae("slide-player", v), ...Ve, children: [
405
- /* @__PURE__ */ r.jsx(
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: h,
430
+ ref: p,
409
431
  preload: "auto",
410
432
  playsInline: !0,
411
- onLoadedMetadata: qe,
412
- onCanPlay: Oe,
413
- onPlay: $e,
414
- onPause: He,
415
- onSeeking: Me,
416
- onSeeked: Me,
417
- onTimeUpdate: ze,
418
- onEnded: De,
419
- onError: Xe
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
- Q ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
423
- /* @__PURE__ */ r.jsx(
424
- Ie,
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: P.fullscreenLabel,
429
- nonFullscreen: P.nonFullscreenLabel,
430
- screen: P.screenLabel,
431
- subtitle: P.subtitleLabel,
432
- subtitleToggle: P.subtitleToggleAriaLabel,
433
- title: P.settingsTitle
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: J,
459
+ isSubtitleEnabled: Q,
436
460
  onClose: () => B(!1),
437
461
  onOpenChange: B,
438
462
  onSubtitleToggle: se ?? (() => {
439
463
  }),
440
- onViewModeChange: Ye,
441
- open: he,
442
- viewMode: Ce
464
+ onViewModeChange: Qe,
465
+ open: ge,
466
+ viewMode: Le
443
467
  }
444
468
  ),
445
- /* @__PURE__ */ r.jsxs("div", { className: "slide-player__controls", style: Be, children: [
446
- /* @__PURE__ */ r.jsxs("div", { className: "slide-player__group", children: [
447
- /* @__PURE__ */ r.jsx(
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": he,
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__ */ r.jsx(
459
- nr,
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__ */ r.jsx("button", { "aria-label": "Volume", className: "hidden", type: "button", children: /* @__PURE__ */ r.jsx(sr, { className: "slide-player__icon", strokeWidth: 2.25 }) }),
468
- /* @__PURE__ */ r.jsx(
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": P.subtitleToggleAriaLabel,
472
- "aria-pressed": J,
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: J ? /* @__PURE__ */ r.jsx(lr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ r.jsx(
477
- ur,
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__ */ r.jsx(
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: Re,
515
+ onClick: Te,
492
516
  type: "button",
493
- children: /* @__PURE__ */ r.jsx(ar, { className: "slide-player__icon", strokeWidth: 2.25 })
517
+ children: /* @__PURE__ */ t.jsx(fr, { className: "slide-player__icon", strokeWidth: 2.25 })
494
518
  }
495
519
  ),
496
- /* @__PURE__ */ r.jsx(
520
+ /* @__PURE__ */ t.jsx(
497
521
  "button",
498
522
  {
499
- "aria-label": Ze,
523
+ "aria-label": $e,
500
524
  className: "slide-player__toggle slide-player__toggle--playback",
501
525
  onClick: () => {
502
- if (G) {
503
- Le?.(!Y);
526
+ if (J) {
527
+ Fe?.(!G);
504
528
  return;
505
529
  }
506
- const e = h.current;
507
- if (!(L || !e || !f)) {
530
+ const e = p.current;
531
+ if (!(F || !e || !f)) {
508
532
  if (a.current !== null) {
509
- if (ee) {
510
- s.current = !1, y.current = !0, a.current = null, S.current = !1, i(!1), n(!1), e.pause();
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
- T.current = "manual", y.current = !1, s.current = !0, n(!0);
537
+ C.current = "manual", g.current = !1, s.current = !0, n(!0, "waitingForMoreAudio");
514
538
  return;
515
539
  }
516
- if (!e.src && A.length > 0) {
517
- T.current = "manual", y.current = !1, E(
540
+ if (!e.src && k.length > 0) {
541
+ C.current = "manual", g.current = !1, E(
518
542
  Math.min(
519
543
  x.current,
520
- A.length - 1
544
+ k.length - 1
521
545
  ),
522
546
  "toggle"
523
547
  );
524
548
  return;
525
549
  }
526
550
  if (e.paused) {
527
- T.current = "manual", y.current = !1, s.current = !0, _("toggle-resume");
551
+ C.current = "manual", g.current = !1, s.current = !0, b("toggle-resume");
528
552
  return;
529
553
  }
530
- s.current = !1, y.current = !0, e.pause();
554
+ s.current = !1, g.current = !0, e.pause();
531
555
  }
532
556
  },
533
557
  type: "button",
534
- children: Ke ? /* @__PURE__ */ r.jsx(dr, {}) : /* @__PURE__ */ r.jsx(mr, {})
558
+ children: Ze ? /* @__PURE__ */ t.jsx(gr, {}) : /* @__PURE__ */ t.jsx(yr, {})
535
559
  }
536
560
  ),
537
- /* @__PURE__ */ r.jsx(
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: We,
543
- onClick: Te,
566
+ disabled: Ve,
567
+ onClick: Ce,
544
568
  type: "button",
545
- children: /* @__PURE__ */ r.jsx(cr, { className: "slide-player__icon", strokeWidth: 2.25 })
569
+ children: /* @__PURE__ */ t.jsx(dr, { className: "slide-player__icon", strokeWidth: 2.25 })
546
570
  }
547
571
  ),
548
- le ? /* @__PURE__ */ r.jsx(
572
+ le ? /* @__PURE__ */ t.jsx(
549
573
  "button",
550
574
  {
551
- "aria-label": ue ? "Exit fullscreen" : "Enter fullscreen",
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: ue ? /* @__PURE__ */ r.jsx(
556
- ir,
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__ */ r.jsx(
562
- or,
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__ */ r.jsx("div", { className: "slide-player__separator" }),
572
- /* @__PURE__ */ r.jsxs("div", { className: "slide-player__group", children: [
573
- ye.map((e, t) => /* @__PURE__ */ r.jsx(Je.Fragment, { children: e }, `custom-action-${t}`)),
574
- /* @__PURE__ */ r.jsx(
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: Ae(
602
+ className: Ee(
579
603
  "slide-player__action slide-player__action--notes",
580
- Z && "slide-player__action--active"
604
+ $ && "slide-player__action--active"
581
605
  ),
582
- disabled: !Fe,
606
+ disabled: !We,
583
607
  onClick: Ue,
584
608
  type: "button",
585
- children: /* @__PURE__ */ r.jsx(
586
- fr,
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
- }, hr = Qe(pr);
599
- hr.displayName = "Player";
622
+ }, br = rr(_r);
623
+ br.displayName = "Player";
600
624
  export {
601
- hr as default
625
+ br as default
602
626
  };
603
627
  //# sourceMappingURL=Player.es.js.map