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.
Files changed (48) hide show
  1. package/dist/_virtual/index.cjs10.js +1 -1
  2. package/dist/_virtual/index.cjs8.js +1 -1
  3. package/dist/_virtual/index.cjs9.js +1 -1
  4. package/dist/_virtual/index.es10.js +2 -2
  5. package/dist/_virtual/index.es8.js +2 -3
  6. package/dist/_virtual/index.es8.js.map +1 -1
  7. package/dist/_virtual/index.es9.js +3 -2
  8. package/dist/_virtual/index.es9.js.map +1 -1
  9. package/dist/components/Slide/Player.cjs.js +1 -1
  10. package/dist/components/Slide/Player.cjs.js.map +1 -1
  11. package/dist/components/Slide/Player.d.ts +5 -1
  12. package/dist/components/Slide/Player.es.js +383 -355
  13. package/dist/components/Slide/Player.es.js.map +1 -1
  14. package/dist/components/Slide/Slide.cjs.js +1 -1
  15. package/dist/components/Slide/Slide.cjs.js.map +1 -1
  16. package/dist/components/Slide/Slide.d.ts +4 -2
  17. package/dist/components/Slide/Slide.es.js +448 -437
  18. package/dist/components/Slide/Slide.es.js.map +1 -1
  19. package/dist/components/Slide/Slide.stories.d.ts +1 -0
  20. package/dist/components/Slide/utils/audioCompletion.cjs.js +2 -0
  21. package/dist/components/Slide/utils/audioCompletion.cjs.js.map +1 -0
  22. package/dist/components/Slide/utils/audioCompletion.d.ts +7 -0
  23. package/dist/components/Slide/utils/audioCompletion.es.js +9 -0
  24. package/dist/components/Slide/utils/audioCompletion.es.js.map +1 -0
  25. package/dist/components/Slide/utils/audioCompletion.test.d.ts +1 -0
  26. package/dist/components/Slide/utils/playbackSource.cjs.js +2 -0
  27. package/dist/components/Slide/utils/playbackSource.cjs.js.map +1 -0
  28. package/dist/components/Slide/utils/playbackSource.d.ts +9 -0
  29. package/dist/components/Slide/utils/playbackSource.es.js +14 -0
  30. package/dist/components/Slide/utils/playbackSource.es.js.map +1 -0
  31. package/dist/components/Slide/utils/playbackSource.test.d.ts +1 -0
  32. 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
  33. 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
  34. 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
  35. package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs.js +1 -1
  36. package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/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-lib.css +1 -1
  48. package/package.json +1 -1
@@ -1,26 +1,28 @@
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 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 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))
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 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
+ 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__ */ r.jsx(
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__ */ r.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
41
+ /* @__PURE__ */ t.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
40
42
  ]
41
43
  }
42
- ), mr = () => /* @__PURE__ */ r.jsxs(
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__ */ r.jsx(
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__ */ r.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
60
+ /* @__PURE__ */ t.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
59
61
  ]
60
62
  }
61
- ), pr = ({
62
- audioList: R = [],
63
- className: v,
63
+ ), Sr = ({
64
+ audioList: N = [],
65
+ className: F,
64
66
  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,
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: Re,
74
- onNext: Te,
75
- onFullscreen: le,
76
- isFullscreen: ue = !1,
77
- mobileViewMode: Ce = rr,
78
- settingsPortalContainer: ve,
79
- onMobileViewModeChange: ae,
80
- onEnded: ce,
81
- onAutoAdvanceToggle: Le,
82
- onInteractionToggle: Ue,
83
- hasInteraction: Fe = !1,
84
- isInteractionOpen: Z = !1,
85
- isSubtitleEnabled: J = !0,
86
- prevDisabled: Pe = !1,
87
- nextDisabled: We = !1,
88
- showControls: Q = !0,
89
- customActions: ie,
90
- customActionContext: oe,
91
- texts: fe,
92
- ...Ve
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 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(
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, t) => e.segment_index - t.segment_index
98
+ (e, r) => e.segment_index - r.segment_index
97
99
  ),
98
100
  [f?.audioSegments]
99
- ), ye = O(
100
- () => tr(ie, oe),
101
- [oe, ie]
102
- ), ge = ye.length + 5, Be = O(
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(ge)
106
+ "--slide-player-mobile-control-count": String(be)
105
107
  }),
106
- [ge]
107
- ), P = O(
108
+ [be]
109
+ ), V = z(
108
110
  () => ({
109
- ...er,
110
- ...fe
111
+ ...ur,
112
+ ...me
111
113
  }),
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
+ [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
- z.current = f;
117
+ X.current = f;
116
118
  }, [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);
125
- }, [R, f?.audioUrl, m]);
126
- const n = l(
127
- (e) => {
128
- pe.current !== e && (pe.current = e, te?.(e));
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
- [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(() => {
132
- 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),
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
- }, []), W = l((e) => e <= 0 ? 0 : k.current.slice(0, e).reduce(
138
- (t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
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
- ), []), 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(
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 t = Math.max(e, 0);
146
- I.current !== t && (I.current = t, q?.(t));
150
+ const r = Math.max(e, 0);
151
+ re.current !== r && (re.current = r, D?.(r));
147
152
  },
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)
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
- o();
158
- const t = h.current;
159
- if (!t || t.paused || t.ended) {
160
- F.current = null;
162
+ i();
163
+ const r = p.current;
164
+ if (!r || r.paused || r.ended) {
165
+ W.current = null;
161
166
  return;
162
167
  }
163
- F.current = window.requestAnimationFrame(e);
168
+ W.current = window.requestAnimationFrame(e);
164
169
  };
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(
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 t = h.current;
172
- if (!t)
176
+ const r = p.current;
177
+ if (!r)
173
178
  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;
177
- }).catch((V) => {
178
- T.current === "unknown" && _e(V) && (T.current = "blocked", s.current = !1, n(!1)), w.current = !1, i(!1);
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
- [_e, n]
182
- ), E = l(
183
- (e, t) => {
184
- const u = h.current, V = k.current[e];
185
- if (!u || !V)
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 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);
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
- C,
196
- be,
197
- W,
198
- g,
200
+ L,
201
+ xe,
202
+ B,
199
203
  _,
204
+ A,
200
205
  n
201
206
  ]
202
- ), D = l(
207
+ ), O = u(
203
208
  (e) => {
204
- d(), s.current = !1, S.current = !1, w.current = !1, o(), i(!1), n(!1), m >= 0 && ce?.(m);
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
- ce,
213
+ oe,
209
214
  d,
210
- o,
215
+ i,
211
216
  n
212
217
  ]
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) {
216
- E(e, "ended");
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 (V?.isAudioStreaming || !N) {
220
- x.current = e, a.current = e, S.current = !0, s.current = j, g(W(e)), i(!1), n(!0);
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
- D("segments-completed");
237
+ O("segments-completed");
224
238
  }, [
225
- j,
226
- D,
227
- W,
228
- g,
229
- E,
239
+ M,
240
+ O,
241
+ B,
242
+ _,
243
+ k,
230
244
  n
231
245
  ]);
232
246
  b(() => {
233
- if (me.current === re)
247
+ if (he.current === ne)
234
248
  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;
237
- e && (e.pause(), e.removeAttribute("src"), e.load(), i(!1));
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
- re,
241
- A.length,
242
- K,
243
- g,
254
+ ne,
255
+ w.length,
256
+ P,
257
+ _,
244
258
  d,
245
259
  n
246
260
  ]), b(() => {
247
- const e = h.current;
261
+ const e = p.current;
248
262
  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);
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 (!(!$.current || !z.current || y.current)) {
254
- if ($.current = !1, a.current !== null) {
255
- if (a.current < k.current.length) {
256
- E(a.current, "external-resume");
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
- s.current = !0, n(!0);
273
+ l.current = !0, n(!0, "waitingForMoreAudio");
260
274
  return;
261
275
  }
262
- if (!M.current && k.current.length > 0) {
263
- E(
276
+ if (!R.current && j.current.length > 0) {
277
+ k(
264
278
  Math.min(
265
- x.current,
266
- k.current.length - 1
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 && (s.current = !0, _("external-resume"));
286
+ e.paused && (l.current = !0, A("external-resume"));
273
287
  }
274
288
  }
275
289
  }, [
276
- L,
277
- E,
278
- _,
290
+ U,
291
+ k,
292
+ A,
279
293
  n
280
294
  ]), b(() => {
281
- const e = h.current;
282
- if (e) {
283
- if (!f) {
284
- H();
285
- return;
286
- }
287
- if (L) {
288
- s.current = !1, n(!1), e.pause(), i(!1);
289
- return;
290
- }
291
- if (K) {
292
- const t = M.current !== K, u = C();
293
- if (U.current === "segment" && !!M.current && a.current === null) {
294
- if (!u) {
295
- s.current = !1, e.pause(), i(!1);
296
- return;
297
- }
298
- e.paused && (s.current = !0, _("keep-segment-source"));
299
- return;
300
- }
301
- if (t) {
302
- 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);
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 (a.current !== null) {
313
- if (a.current < A.length) {
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
- if (!A.length) {
325
- if (f.isAudioStreaming) {
326
- a.current = x.current, S.current = !0, s.current = C(), i(!1), n(C());
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
- H();
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
- if (!j || y.current) {
343
- s.current = !1, e.pause(), i(!1);
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
- e.paused && (s.current = !0, _("sync-paused-retry"));
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
- A,
352
- K,
353
- j,
368
+ w,
369
+ P,
370
+ M,
371
+ U,
354
372
  L,
355
- C,
356
- g,
357
- H,
358
- E,
359
373
  _,
360
- xe,
374
+ H,
375
+ k,
376
+ A,
377
+ we,
361
378
  n
362
379
  ]), b(() => H, [H]), b(() => d, [d]);
363
- const $e = l(() => {
364
- o(), we(), i(!0), n(!1), ne?.();
380
+ const qe = u(() => {
381
+ i(), Me(), o(!0), n(!1), le?.();
365
382
  }, [
366
- ne,
367
- we,
368
- o,
383
+ le,
384
+ Me,
385
+ i,
369
386
  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");
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
- j,
378
- 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(() => {
384
- o();
385
- }, [o]), Me = l(() => {
386
- o();
387
- }, [o]), De = l(() => {
388
- const e = U.current === "url" || k.current.length === 0;
389
- if (d(), w.current = !1, e) {
390
- D("url-ended");
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
- }, [D, je, d]), Xe = l(() => {
395
- d(), o(), i(!1), n(!1);
396
- }, [d, o, n]), Ye = l(
420
+ }, [O, je, d]), Qe = u(() => {
421
+ d(), i(), o(!1), n(!1);
422
+ }, [d, i, n]), Ie = u(
397
423
  (e) => {
398
- ae?.(e), B(!1);
424
+ ie?.(e), $(!1);
399
425
  },
400
- [ae]
426
+ [ie]
401
427
  );
402
428
  return b(() => {
403
- q?.(I.current);
404
- }, [q]), /* @__PURE__ */ r.jsxs("div", { className: Ae("slide-player", v), ...Ve, children: [
405
- /* @__PURE__ */ r.jsx(
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: h,
434
+ ref: p,
409
435
  preload: "auto",
410
436
  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
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
- Q ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
423
- /* @__PURE__ */ r.jsx(
424
- Ie,
450
+ ee ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
451
+ /* @__PURE__ */ t.jsx(
452
+ nr,
425
453
  {
426
- container: ve,
454
+ container: Fe,
427
455
  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
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: J,
436
- onClose: () => B(!1),
437
- onOpenChange: B,
463
+ isSubtitleEnabled: I,
464
+ onClose: () => $(!1),
465
+ onOpenChange: $,
438
466
  onSubtitleToggle: se ?? (() => {
439
467
  }),
440
- onViewModeChange: Ye,
441
- open: he,
442
- viewMode: Ce
468
+ onViewModeChange: Ie,
469
+ open: ge,
470
+ viewMode: Le
443
471
  }
444
472
  ),
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(
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": he,
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
- B((e) => !e);
483
+ $((e) => !e);
456
484
  },
457
485
  type: "button",
458
- children: /* @__PURE__ */ r.jsx(
459
- nr,
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__ */ 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(
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": P.subtitleToggleAriaLabel,
472
- "aria-pressed": J,
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: J ? /* @__PURE__ */ r.jsx(lr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ r.jsx(
477
- ur,
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__ */ r.jsx(
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: Pe,
491
- onClick: Re,
518
+ disabled: Ve,
519
+ onClick: ve,
492
520
  type: "button",
493
- children: /* @__PURE__ */ r.jsx(ar, { className: "slide-player__icon", strokeWidth: 2.25 })
521
+ children: /* @__PURE__ */ t.jsx(mr, { className: "slide-player__icon", strokeWidth: 2.25 })
494
522
  }
495
523
  ),
496
- /* @__PURE__ */ r.jsx(
524
+ /* @__PURE__ */ t.jsx(
497
525
  "button",
498
526
  {
499
- "aria-label": Ze,
527
+ "aria-label": Oe,
500
528
  className: "slide-player__toggle slide-player__toggle--playback",
501
529
  onClick: () => {
502
- if (G) {
503
- Le?.(!Y);
530
+ if (Q) {
531
+ Ue?.(!J);
504
532
  return;
505
533
  }
506
- const e = h.current;
507
- if (!(L || !e || !f)) {
508
- 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();
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
- T.current = "manual", y.current = !1, s.current = !0, n(!0);
541
+ C.current = "manual", y.current = !1, l.current = !0, n(!0, "waitingForMoreAudio");
514
542
  return;
515
543
  }
516
- if (!e.src && A.length > 0) {
517
- T.current = "manual", y.current = !1, E(
544
+ if (!e.src && w.length > 0) {
545
+ C.current = "manual", y.current = !1, k(
518
546
  Math.min(
519
- x.current,
520
- A.length - 1
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
- T.current = "manual", y.current = !1, s.current = !0, _("toggle-resume");
555
+ C.current = "manual", y.current = !1, l.current = !0, A("toggle-resume");
528
556
  return;
529
557
  }
530
- s.current = !1, y.current = !0, e.pause();
558
+ l.current = !1, y.current = !0, e.pause();
531
559
  }
532
560
  },
533
561
  type: "button",
534
- children: Ke ? /* @__PURE__ */ r.jsx(dr, {}) : /* @__PURE__ */ r.jsx(mr, {})
562
+ children: He ? /* @__PURE__ */ t.jsx(_r, {}) : /* @__PURE__ */ t.jsx(br, {})
535
563
  }
536
564
  ),
537
- /* @__PURE__ */ r.jsx(
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: We,
543
- onClick: Te,
570
+ disabled: Be,
571
+ onClick: Ce,
544
572
  type: "button",
545
- children: /* @__PURE__ */ r.jsx(cr, { className: "slide-player__icon", strokeWidth: 2.25 })
573
+ children: /* @__PURE__ */ t.jsx(pr, { className: "slide-player__icon", strokeWidth: 2.25 })
546
574
  }
547
575
  ),
548
- le ? /* @__PURE__ */ r.jsx(
576
+ ae ? /* @__PURE__ */ t.jsx(
549
577
  "button",
550
578
  {
551
- "aria-label": ue ? "Exit fullscreen" : "Enter fullscreen",
579
+ "aria-label": ce ? "Exit fullscreen" : "Enter fullscreen",
552
580
  className: "slide-player__action slide-player__action--fullscreen",
553
- onClick: le,
581
+ onClick: ae,
554
582
  type: "button",
555
- children: ue ? /* @__PURE__ */ r.jsx(
556
- ir,
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__ */ r.jsx(
562
- or,
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__ */ 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(
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: Ae(
606
+ className: Te(
579
607
  "slide-player__action slide-player__action--notes",
580
- Z && "slide-player__action--active"
608
+ q && "slide-player__action--active"
581
609
  ),
582
- disabled: !Fe,
583
- onClick: Ue,
610
+ disabled: !Pe,
611
+ onClick: We,
584
612
  type: "button",
585
- children: /* @__PURE__ */ r.jsx(
586
- fr,
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
- }, hr = Qe(pr);
599
- hr.displayName = "Player";
626
+ }, xr = tr(Sr);
627
+ xr.displayName = "Player";
600
628
  export {
601
- hr as default
629
+ xr as default
602
630
  };
603
631
  //# sourceMappingURL=Player.es.js.map