markdown-flow-ui 0.2.26-dev.7 → 0.2.26-dev.8

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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as H, jsx as s, Fragment as jt } from "react/jsx-runtime";
2
- import wr, { memo as Tr, useId as vr, useContext as kr, useRef as a, useState as Ge, useMemo as ce, useCallback as u, useEffect as m } from "react";
3
- import { getMarkdownFlowDirection as Lr, getMarkdownFlowLanguage as Ar } from "../../lib/locale.es.js";
4
- import { useDetachedLanguage as Cr } from "../../lib/useDetachedLanguage.es.js";
2
+ import wr, { memo as Tr, useId as vr, useContext as kr, useRef as a, useState as Ye, useMemo as ce, useCallback as u, useEffect as m } from "react";
3
+ import { getMarkdownFlowDirection as Lr, getMarkdownFlowLanguage as Cr } from "../../lib/locale.es.js";
4
+ import { useDetachedLanguage as Ar } from "../../lib/useDetachedLanguage.es.js";
5
5
  import { useResolvedDirection as xr } from "../../lib/useResolvedDirection.es.js";
6
6
  import { cn as Nr } from "../../lib/utils.es.js";
7
7
  import Er from "./MobilePlayerSettingsSheet.es.js";
@@ -15,28 +15,29 @@ import { shouldKeepPlayingAfterNavigation as Hr } from "./utils/playbackPreferen
15
15
  import { toPlayerCustomActionList as Dr } from "./utils/playerCustomActions.es.js";
16
16
  import { suppressPlayerControlsWakeAfterNavigation as Qe } from "./utils/playerNavigationContext.es.js";
17
17
  import { isPlaybackTimeCoveredBySegments as Xe, resolveSegmentSeekTarget as zt } from "./utils/segmentSeek.es.js";
18
- import { getSortedAudioSegments as Yt } from "./utils/audioSegments.es.js";
18
+ import { getSortedAudioSegments as Gt } from "./utils/audioSegments.es.js";
19
19
  import { getSubtitleCueJumpTarget as Jr, shouldClearSubtitleCueJumpTarget as Pr } from "./utils/subtitleCue.es.js";
20
20
  /* empty css */
21
21
  import Zr from "../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
22
22
  import jr from "../../node_modules/lucide-react/dist/esm/icons/volume-2.es.js";
23
23
  import zr from "../../node_modules/lucide-react/dist/esm/icons/skip-back.es.js";
24
- import Yr from "../../node_modules/lucide-react/dist/esm/icons/skip-forward.es.js";
25
- import Gr from "../../node_modules/lucide-react/dist/esm/icons/rewind.es.js";
24
+ import Gr from "../../node_modules/lucide-react/dist/esm/icons/skip-forward.es.js";
25
+ import Yr from "../../node_modules/lucide-react/dist/esm/icons/rewind.es.js";
26
26
  import Qr from "../../node_modules/lucide-react/dist/esm/icons/fast-forward.es.js";
27
27
  import Xr from "../../node_modules/lucide-react/dist/esm/icons/captions.es.js";
28
28
  import qr from "../../node_modules/lucide-react/dist/esm/icons/captions-off.es.js";
29
29
  import en from "../../node_modules/lucide-react/dist/esm/icons/scan-line.es.js";
30
30
  import tn from "../../node_modules/lucide-react/dist/esm/icons/maximize.es.js";
31
- const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
32
- if (typeof window > "u" || !d || Gt.has(d))
31
+ import rn from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.es.js";
32
+ const Yt = /* @__PURE__ */ new Map(), Qt = (d) => {
33
+ if (typeof window > "u" || !d || Yt.has(d))
33
34
  return;
34
35
  const p = window.document.createElement("audio");
35
- p.preload = "auto", p.setAttribute("playsinline", "true"), p.src = d, p.load(), Gt.set(d, p);
36
- }, rn = (d, p) => p !== null && p.audioList === d && p.subtitleCueLists.length === d.length && d.every((i, w) => {
36
+ p.preload = "auto", p.setAttribute("playsinline", "true"), p.src = d, p.load(), Yt.set(d, p);
37
+ }, nn = (d, p) => p !== null && p.audioList === d && p.subtitleCueLists.length === d.length && d.every((i, w) => {
37
38
  const T = i.element?.subtitle_cues;
38
39
  return p.subtitleCueLists[w] === T && p.subtitleCueLengths[w] === (T?.length ?? 0);
39
- }), nn = (d) => {
40
+ }), un = (d) => {
40
41
  const p = d.map(
41
42
  (i) => i.element?.subtitle_cues
42
43
  );
@@ -50,7 +51,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
50
51
  subtitleCues: i ?? []
51
52
  }))
52
53
  };
53
- }, un = () => /* @__PURE__ */ H(
54
+ }, ln = () => /* @__PURE__ */ H(
54
55
  "svg",
55
56
  {
56
57
  xmlns: "http://www.w3.org/2000/svg",
@@ -69,7 +70,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
69
70
  /* @__PURE__ */ s("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
70
71
  ]
71
72
  }
72
- ), ln = () => /* @__PURE__ */ H(
73
+ ), an = () => /* @__PURE__ */ H(
73
74
  "svg",
74
75
  {
75
76
  xmlns: "http://www.w3.org/2000/svg",
@@ -95,13 +96,13 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
95
96
  previous: "←",
96
97
  previousSubtitle: "Shift+←",
97
98
  subtitle: "C"
98
- }, an = 250, sn = 15e3, cn = (d, p) => d ? `${d} (${p})` : p, on = ({
99
+ }, sn = 250, cn = 15e3, on = (d, p) => d ? `${d} (${p})` : p, fn = ({
99
100
  audioList: d = [],
100
101
  className: p,
101
102
  currentAudioIndex: i = -1,
102
103
  defaultPlaying: w = !0,
103
104
  isPlaybackPaused: T = !1,
104
- isAutoAdvanceEnabled: Y = !0,
105
+ isAutoAdvanceEnabled: G = !0,
105
106
  useAutoAdvanceToggle: R = !1,
106
107
  onLoadingChange: qe,
107
108
  onPlaybackPreferenceChange: et,
@@ -122,8 +123,8 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
122
123
  onMobileViewModeChange: nt,
123
124
  onEnded: ut,
124
125
  onAutoAdvanceToggle: lt,
125
- onInteractionToggle: dn,
126
- hasInteraction: mn,
126
+ onInteractionToggle: mn,
127
+ hasInteraction: pn,
127
128
  isInteractionOpen: Te = !1,
128
129
  isSubtitleEnabled: Be = !0,
129
130
  prevDisabled: Re = !1,
@@ -142,36 +143,36 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
142
143
  onPointerDown: ot,
143
144
  ...Ve
144
145
  }) => {
145
- const $e = Ve.dir ?? Lr(ve), ft = Ve.lang ?? Ar(ve), nr = vr(), dt = kr(Wr), g = a(null), mt = a(null), pt = a(null), { resolvedDirection: ht, readDirection: gt } = xr(g, $e), ke = ht === "rtl", ur = Cr(g, ft), St = a(Te), O = a(null), Le = a(null), F = a(0), h = a(null), me = a(void 0), k = a([]), pe = a(
146
- R ? Y : w
147
- ), he = a(!1), yt = a(!1), L = a(!1), B = a(null), G = a(null), E = a(!1), c = a(!1), N = a(null), U = a(!1), Q = a(null), Ae = a(0), bt = a(() => {
148
- }), Ce = a(null), ge = a(null), _t = a(null), X = a(null), Mt = a(0), He = a(!1), De = a(!1), wt = a(ne), Tt = a(() => 0), vt = a(null), I = a("unknown"), [xe, S] = Ge(w), [kt, ue] = Ge(!1), [le, lr] = Ge({
146
+ const $e = Ve.dir ?? Lr(ve), ft = Ve.lang ?? Cr(ve), nr = vr(), dt = kr(Wr), g = a(null), mt = a(null), pt = a(null), { resolvedDirection: ht, readDirection: gt } = xr(g, $e), ke = ht === "rtl", ur = Ar(g, ft), St = a(Te), O = a(null), Le = a(null), F = a(0), h = a(null), me = a(void 0), k = a([]), pe = a(
147
+ R ? G : w
148
+ ), he = a(!1), yt = a(!1), L = a(!1), B = a(null), Y = a(null), E = a(!1), c = a(!1), N = a(null), U = a(!1), Q = a(null), Ce = a(0), bt = a(() => {
149
+ }), Ae = a(null), ge = a(null), _t = a(null), X = a(null), Mt = a(0), He = a(!1), De = a(!1), wt = a(ne), Tt = a(() => 0), vt = a(null), I = a("unknown"), [xe, S] = Ye(w), [kt, ue] = Ye(!1), [le, lr] = Ye({
149
150
  next: !1,
150
151
  previous: !1
151
- }), q = dt?.ownerId ?? nr, V = rr && (dt?.enabled ?? !0), f = i >= 0 ? d[i] : void 0, C = f?.audioUrl, Lt = f?.audioSegments, ar = Lt?.length ?? 0, W = ce(
152
- () => Yt(f),
152
+ }), q = dt?.ownerId ?? nr, V = rr && (dt?.enabled ?? !0), f = i >= 0 ? d[i] : void 0, A = f?.audioUrl, Lt = f?.audioSegments, ar = Lt?.length ?? 0, W = ce(
153
+ () => Gt(f),
153
154
  [f, ar, Lt]
154
155
  );
155
156
  let Ne = vt.current;
156
- rn(d, Ne) || (Ne = nn(d), vt.current = Ne);
157
- const At = Ne.tracks, Je = ce(
157
+ nn(d, Ne) || (Ne = un(d), vt.current = Ne);
158
+ const Ct = Ne.tracks, Je = ce(
158
159
  () => Dr(at, it),
159
160
  [it, at]
160
- ), Ct = Je.length + 6, ir = ce(
161
+ ), At = Je.length + 6, ir = ce(
161
162
  () => ({
162
- "--slide-player-mobile-control-count": String(Ct)
163
+ "--slide-player-mobile-control-count": String(At)
163
164
  }),
164
- [Ct]
165
+ [At]
165
166
  ), o = ce(
166
167
  () => ({
167
168
  ...Kr(ve),
168
169
  ...st
169
170
  }),
170
171
  [ve, st]
171
- ), Pe = ce(() => f ? f.audioKey ?? `${String(f.sequenceNumber ?? "none")}:${String(f.audioUrl ?? "")}` : "none", [f]), sr = R ? Y : xe, xt = R ? Y ? o.pauseAutoplayLabel : o.playAutoplayLabel : xe ? o.pauseLabel : o.playLabel, Nt = rt ? o.exitFullscreenLabel : o.enterFullscreenLabel, ee = u(
172
+ ), Pe = ce(() => f ? f.audioKey ?? `${String(f.sequenceNumber ?? "none")}:${String(f.audioUrl ?? "")}` : "none", [f]), sr = R ? G : xe, xt = R ? G ? o.pauseAutoplayLabel : o.playAutoplayLabel : xe ? o.pauseLabel : o.playLabel, Nt = rt ? o.exitFullscreenLabel : o.enterFullscreenLabel, ee = u(
172
173
  (e, t, r) => ({
173
174
  ariaKeyShortcuts: V ? r : void 0,
174
- title: V ? cn(e, t) : e
175
+ title: V ? on(e, t) : e
175
176
  }),
176
177
  [V]
177
178
  ), Et = ee(
@@ -218,8 +219,8 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
218
219
  m(() => {
219
220
  me.current = f;
220
221
  }, [f]), m(() => {
221
- pe.current = R ? Y : w;
222
- }, [w, Y, R]), m(() => {
222
+ pe.current = R ? G : w;
223
+ }, [w, G, R]), m(() => {
223
224
  Ie || ue(!1);
224
225
  }, [Ie]), m(() => {
225
226
  !St.current && Te && ue(!1), St.current = Te;
@@ -256,7 +257,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
256
257
  behavior: "smooth",
257
258
  left: t.offsetLeft - e.clientWidth / 2 + t.clientWidth / 2
258
259
  });
259
- }, [v?.currentIndex, v?.totalSteps]);
260
+ }, [v?.currentIndex]);
260
261
  const Ot = u((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), P = u(() => w && !T && !L.current && I.current !== "blocked", [w, T]), It = u((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), Vt = u(() => {
261
262
  const e = h.current;
262
263
  return e == null || e <= 0 ? 0 : k.current.slice(0, e).reduce(
@@ -268,7 +269,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
268
269
  0
269
270
  ), []), Ke = u(
270
271
  (e, t) => !e || T ? !1 : e.audioUrl ? !0 : Xe(
271
- Yt(e),
272
+ Gt(e),
272
273
  t
273
274
  ),
274
275
  [T]
@@ -279,7 +280,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
279
280
  currentTimeMs: t,
280
281
  direction: e,
281
282
  excludeTarget: r.excludeTarget,
282
- tracks: At
283
+ tracks: Ct
283
284
  });
284
285
  return !n || !Ke(
285
286
  d[n.audioIndex],
@@ -292,16 +293,16 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
292
293
  Ke,
293
294
  i,
294
295
  we,
295
- At
296
+ Ct
296
297
  ]
297
298
  ), Ze = u(
298
299
  (e, t = !1) => {
299
300
  const r = Math.max(Number(e), 0);
300
- if (!t && Ce.current !== null && Math.abs(
301
- r - Ce.current
302
- ) < an)
301
+ if (!t && Ae.current !== null && Math.abs(
302
+ r - Ae.current
303
+ ) < sn)
303
304
  return;
304
- Ce.current = r;
305
+ Ae.current = r;
305
306
  const n = {
306
307
  previous: Se("previous", r) !== null,
307
308
  next: Se("next", r) !== null
@@ -311,7 +312,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
311
312
  [Se]
312
313
  );
313
314
  m(() => {
314
- bt.current = Ze, Ze(Ae.current, !0);
315
+ bt.current = Ze, Ze(Ce.current, !0);
315
316
  }, [Ze]);
316
317
  const Z = u(() => {
317
318
  const e = g.current;
@@ -325,7 +326,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
325
326
  const K = u(
326
327
  (e) => {
327
328
  const t = Math.max(e, 0);
328
- Ae.current !== t && (Ae.current = t, Pr({
329
+ Ce.current !== t && (Ce.current = t, Pr({
329
330
  currentAudioIndex: i,
330
331
  currentTimeMs: t,
331
332
  target: ge.current
@@ -377,8 +378,8 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
377
378
  Q.current = window.requestAnimationFrame(e);
378
379
  }, [y]), ae = u(() => {
379
380
  const e = g.current;
380
- e && (M(), c.current = !1, L.current = !1, he.current = !1, B.current = null, N.current = null, E.current = !1, U.current = !1, G.current = null, e.pause(), e.removeAttribute("src"), e.load(), O.current = null, F.current = 0, h.current = null, K(0), S(!1), l(!1));
381
- }, [K, M, l]), A = u(
381
+ e && (M(), c.current = !1, L.current = !1, he.current = !1, B.current = null, N.current = null, E.current = !1, U.current = !1, Y.current = null, e.pause(), e.removeAttribute("src"), e.load(), O.current = null, F.current = 0, h.current = null, K(0), S(!1), l(!1));
382
+ }, [K, M, l]), C = u(
382
383
  (e) => {
383
384
  const t = g.current;
384
385
  if (!t)
@@ -396,24 +397,24 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
396
397
  const n = g.current, b = k.current[e];
397
398
  if (!n || !b)
398
399
  return !1;
399
- const re = It(b.audio_data), Ye = Math.max(
400
+ const re = It(b.audio_data), Ge = Math.max(
400
401
  Number(r.seekTimeSeconds ?? 0),
401
402
  0
402
403
  );
403
- F.current = e, h.current = null, E.current = !1, U.current = !0, G.current = "segment", K(
404
- te(e) + Ye * 1e3
404
+ F.current = e, h.current = null, E.current = !1, U.current = !0, Y.current = "segment", K(
405
+ te(e) + Ge * 1e3
405
406
  );
406
407
  const Zt = r.shouldResume ?? P();
407
408
  c.current = Zt, l(!1);
408
409
  const Mr = O.current !== re;
409
- return B.current = "segment", Mr && (n.pause(), n.removeAttribute("src"), n.load(), O.current = re, n.src = re, n.load()), N.current = Ye, n.readyState > 0 && (n.currentTime = Ye, N.current = null), Zt ? A(`start-segment:${t}`) : (c.current = !1, U.current = !1, n.pause(), S(!1), !0);
410
+ return B.current = "segment", Mr && (n.pause(), n.removeAttribute("src"), n.load(), O.current = re, n.src = re, n.load()), N.current = Ge, n.readyState > 0 && (n.currentTime = Ge, N.current = null), Zt ? C(`start-segment:${t}`) : (c.current = !1, U.current = !1, n.pause(), S(!1), !0);
410
411
  },
411
412
  [
412
413
  P,
413
414
  It,
414
415
  te,
415
416
  K,
416
- A,
417
+ C,
417
418
  l
418
419
  ]
419
420
  ), ie = u(
@@ -422,7 +423,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
422
423
  if (!r)
423
424
  return !1;
424
425
  const n = Math.max(Number(t), 0) / 1e3;
425
- return O.current !== e && (r.pause(), r.removeAttribute("src"), r.load(), O.current = e, B.current = "url", G.current = "url", r.src = e, r.load()), N.current = n, K(n * 1e3), r.readyState > 0 && (r.currentTime = n, N.current = null), !0;
426
+ return O.current !== e && (r.pause(), r.removeAttribute("src"), r.load(), O.current = e, B.current = "url", Y.current = "url", r.src = e, r.load()), N.current = n, K(n * 1e3), r.readyState > 0 && (r.currentTime = n, N.current = null), !0;
426
427
  },
427
428
  [K]
428
429
  ), Fe = u(
@@ -437,23 +438,23 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
437
438
  k.current,
438
439
  r
439
440
  ) : null;
440
- return Ce.current = null, M(), c.current = n, l(!1), n && (I.current = "manual", L.current = !1, $(!0)), b && (B.current === "segment" || !C) ? x(
441
+ return Ae.current = null, M(), c.current = n, l(!1), n && (I.current = "manual", L.current = !1, $(!0)), b && (B.current === "segment" || !A) ? x(
441
442
  b.segmentIndex,
442
443
  "subtitle-seek-segment",
443
444
  {
444
445
  seekTimeSeconds: b.segmentTimeSeconds,
445
446
  shouldResume: n
446
447
  }
447
- ) : C && ie(C, r) ? n ? A("subtitle-seek-url") : (c.current = !1, t.pause(), S(!1), !0) : !1;
448
+ ) : A && ie(A, r) ? n ? C("subtitle-seek-url") : (c.current = !1, t.pause(), S(!1), !0) : !1;
448
449
  },
449
450
  [
450
451
  f,
451
- C,
452
+ A,
452
453
  T,
453
454
  ie,
454
455
  x,
455
456
  M,
456
- A,
457
+ C,
457
458
  l,
458
459
  $
459
460
  ]
@@ -468,17 +469,17 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
468
469
  k.current,
469
470
  r
470
471
  ) : null;
471
- return c.current = !0, l(!1), n && (B.current === "segment" || !C) ? x(n.segmentIndex, "restore", {
472
+ return c.current = !0, l(!1), n && (B.current === "segment" || !A) ? x(n.segmentIndex, "restore", {
472
473
  seekTimeSeconds: n.segmentTimeSeconds,
473
474
  shouldResume: !0
474
- }) : !C || !ie(C, r) ? !1 : (A("restore"), !0);
475
+ }) : !A || !ie(A, r) ? !1 : (C("restore"), !0);
475
476
  },
476
477
  [
477
478
  f,
478
- C,
479
+ A,
479
480
  ie,
480
481
  x,
481
- A,
482
+ C,
482
483
  l
483
484
  ]
484
485
  ), ye = u(
@@ -552,14 +553,14 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
552
553
  m(() => {
553
554
  if (Le.current === Pe)
554
555
  return;
555
- j(!0), Le.current = Pe, F.current = 0, h.current = null, E.current = !1, L.current = !1, he.current = !1, c.current = !1, U.current = !1, B.current = null, G.current = null, O.current = null, M(), K(0), l(!1);
556
+ j(!0), Le.current = Pe, F.current = 0, h.current = null, E.current = !1, L.current = !1, he.current = !1, c.current = !1, U.current = !1, B.current = null, Y.current = null, O.current = null, M(), K(0), l(!1);
556
557
  const e = g.current;
557
558
  e && (De.current = !0, e.pause(), e.removeAttribute("src"), e.load(), De.current = !1, S(!1));
558
559
  }, [
559
560
  i,
560
561
  Pe,
561
562
  W.length,
562
- C,
563
+ A,
563
564
  j,
564
565
  K,
565
566
  M,
@@ -590,13 +591,13 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
590
591
  );
591
592
  return;
592
593
  }
593
- e.paused && (c.current = !0, A("external-resume"));
594
+ e.paused && (c.current = !0, C("external-resume"));
594
595
  }
595
596
  }
596
597
  }, [
597
598
  T,
598
599
  x,
599
- A,
600
+ C,
600
601
  l
601
602
  ]), m(() => {
602
603
  const e = g.current;
@@ -614,22 +615,22 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
614
615
  }
615
616
  const t = $r({
616
617
  activeSourceType: B.current,
617
- hasAudioUrl: !!C,
618
+ hasAudioUrl: !!A,
618
619
  segmentCount: W.length,
619
- preferredSourceType: G.current,
620
+ preferredSourceType: Y.current,
620
621
  waitingSegmentIndex: h.current
621
622
  });
622
- if (t && G.current !== t && (G.current = t), t === "url" && C) {
623
- const r = O.current !== C, n = P();
623
+ if (t && Y.current !== t && (Y.current = t), t === "url" && A) {
624
+ const r = O.current !== A, n = P();
624
625
  if (r) {
625
626
  const b = h.current !== null ? Vt() : 0;
626
- ie(C, b * 1e3);
627
+ ie(A, b * 1e3);
627
628
  }
628
629
  if (c.current = n, E.current = !1, U.current = !1, l(!1), !n) {
629
630
  c.current = !1, e.pause(), S(!1);
630
631
  return;
631
632
  }
632
- A(r ? "sync-url-init" : "sync-url");
633
+ C(r ? "sync-url-init" : "sync-url");
633
634
  return;
634
635
  }
635
636
  if (t === "segment" && h.current !== null) {
@@ -670,12 +671,12 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
670
671
  c.current = !1, e.pause(), S(!1);
671
672
  return;
672
673
  }
673
- e.paused && (c.current = !0, A("sync-paused-retry"));
674
+ e.paused && (c.current = !0, C("sync-paused-retry"));
674
675
  }, [
675
676
  f,
676
677
  i,
677
678
  W,
678
- C,
679
+ A,
679
680
  w,
680
681
  T,
681
682
  _,
@@ -683,7 +684,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
683
684
  ae,
684
685
  ie,
685
686
  x,
686
- A,
687
+ C,
687
688
  Vt,
688
689
  l
689
690
  ]), m(() => {
@@ -716,7 +717,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
716
717
  return;
717
718
  const e = window.setTimeout(() => {
718
719
  _.id !== X.current && (X.current = _.id, oe?.(_.id));
719
- }, sn);
720
+ }, cn);
720
721
  return () => {
721
722
  window.clearTimeout(e);
722
723
  };
@@ -737,13 +738,13 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
737
738
  De.current || E.current || U.current || (M(), y(), j(!0), S(!1));
738
739
  }, [j, M, y]), mr = u(() => {
739
740
  const e = g.current;
740
- e && N.current !== null && (e.currentTime = N.current, N.current = null), y(), !Ue("canplay-seek-finished") && (!c.current || !w || A("canplay"));
741
+ e && N.current !== null && (e.currentTime = N.current, N.current = null), y(), !Ue("canplay-seek-finished") && (!c.current || !w || C("canplay"));
741
742
  }, [
742
743
  i,
743
744
  w,
744
745
  Ue,
745
746
  y,
746
- A
747
+ C
747
748
  ]), pr = u(() => {
748
749
  const e = g.current;
749
750
  e && N.current !== null && (e.currentTime = N.current, N.current = null), y(), Ue("metadata-seek-finished");
@@ -785,7 +786,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
785
786
  [nt]
786
787
  ), je = u(() => {
787
788
  if (R) {
788
- const t = !Y;
789
+ const t = !G;
789
790
  return $(t), lt?.(t), !0;
790
791
  }
791
792
  const e = g.current;
@@ -795,16 +796,16 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
795
796
  W.length - 1
796
797
  ),
797
798
  "toggle"
798
- ), !0) : e.paused ? ($(!0), I.current = "manual", L.current = !1, c.current = !0, A("toggle-resume"), !0) : ($(!1), c.current = !1, L.current = !0, e.pause(), !0);
799
+ ), !0) : e.paused ? ($(!0), I.current = "manual", L.current = !1, c.current = !0, C("toggle-resume"), !0) : ($(!1), c.current = !1, L.current = !0, e.pause(), !0);
799
800
  }, [
800
801
  f,
801
802
  W.length,
802
- Y,
803
+ G,
803
804
  T,
804
805
  xe,
805
806
  lt,
806
807
  x,
807
- A,
808
+ C,
808
809
  l,
809
810
  $,
810
811
  R
@@ -860,7 +861,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
860
861
  document.removeEventListener("keydown", e);
861
862
  };
862
863
  }, [q, gt, V]), m(() => {
863
- be?.(Ae.current);
864
+ be?.(Ce.current);
864
865
  }, [be]), /* @__PURE__ */ H(
865
866
  "div",
866
867
  {
@@ -967,7 +968,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
967
968
  },
968
969
  title: Ut.title,
969
970
  type: "button",
970
- children: sr ? /* @__PURE__ */ s(un, {}) : /* @__PURE__ */ s(ln, {})
971
+ children: sr ? /* @__PURE__ */ s(ln, {}) : /* @__PURE__ */ s(an, {})
971
972
  }
972
973
  ),
973
974
  /* @__PURE__ */ s(
@@ -998,7 +999,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
998
999
  title: Wt.title,
999
1000
  type: "button",
1000
1001
  children: /* @__PURE__ */ s(
1001
- Yr,
1002
+ Gr,
1002
1003
  {
1003
1004
  className: "slide-player__icon",
1004
1005
  strokeWidth: 2.25
@@ -1018,7 +1019,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1018
1019
  },
1019
1020
  title: Ft.title,
1020
1021
  type: "button",
1021
- children: /* @__PURE__ */ s(Gr, { className: "slide-player__icon", strokeWidth: 2.25 })
1022
+ children: /* @__PURE__ */ s(Yr, { className: "slide-player__icon", strokeWidth: 2.25 })
1022
1023
  }
1023
1024
  ),
1024
1025
  /* @__PURE__ */ s(
@@ -1126,10 +1127,18 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1126
1127
  ) })
1127
1128
  }
1128
1129
  ),
1129
- v.isGenerating ? /* @__PURE__ */ H("span", { className: "slide-player__slide-progress-generating", children: [
1130
- /* @__PURE__ */ s("span", { "aria-hidden": "true" }),
1131
- v.generatingLabel
1132
- ] }) : null
1130
+ /* @__PURE__ */ H(
1131
+ "span",
1132
+ {
1133
+ "aria-hidden": !v.isGenerating,
1134
+ className: "slide-player__slide-progress-generating",
1135
+ "data-visible": v.isGenerating ? "true" : "false",
1136
+ children: [
1137
+ /* @__PURE__ */ s(rn, { "aria-hidden": "true" }),
1138
+ v.generatingLabel
1139
+ ]
1140
+ }
1141
+ )
1133
1142
  ]
1134
1143
  }
1135
1144
  ) : null
@@ -1137,9 +1146,9 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1137
1146
  ]
1138
1147
  }
1139
1148
  );
1140
- }, fn = Tr(on);
1141
- fn.displayName = "Player";
1149
+ }, dn = Tr(fn);
1150
+ dn.displayName = "Player";
1142
1151
  export {
1143
- fn as default
1152
+ dn as default
1144
1153
  };
1145
1154
  //# sourceMappingURL=Player.es.js.map