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

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 (33) hide show
  1. package/dist/_virtual/index.es3.js +5 -4
  2. package/dist/_virtual/index.es3.js.map +1 -1
  3. package/dist/_virtual/index.es4.js +4 -5
  4. package/dist/_virtual/index.es4.js.map +1 -1
  5. package/dist/_virtual/index.es8.js +2 -2
  6. package/dist/_virtual/index.es9.js +2 -2
  7. package/dist/_virtual/index3.cjs +1 -1
  8. package/dist/_virtual/index4.cjs +1 -1
  9. package/dist/_virtual/index8.cjs +1 -1
  10. package/dist/_virtual/index9.cjs +1 -1
  11. package/dist/assets/markdown-flow-ui.css +1 -1
  12. package/dist/components/Slide/Player.cjs +1 -1
  13. package/dist/components/Slide/Player.cjs.map +1 -1
  14. package/dist/components/Slide/Player.es.js +217 -204
  15. package/dist/components/Slide/Player.es.js.map +1 -1
  16. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  17. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  18. package/dist/markdown-flow-ui.css +1 -1
  19. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
  20. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  21. package/dist/node_modules/classnames/index.cjs +1 -1
  22. package/dist/node_modules/classnames/index.es.js +1 -1
  23. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  24. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  25. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  26. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  27. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  28. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  29. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  30. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  31. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  32. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  33. package/package.json +1 -1
@@ -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 Pe, 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";
@@ -16,27 +16,28 @@ import { toPlayerCustomActionList as Dr } from "./utils/playerCustomActions.es.j
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
18
  import { getSortedAudioSegments as Yt } from "./utils/audioSegments.es.js";
19
- import { getSubtitleCueJumpTarget as Jr, shouldClearSubtitleCueJumpTarget as Pr } from "./utils/subtitleCue.es.js";
19
+ import { getSubtitleCueJumpTarget as Jr, shouldClearSubtitleCueJumpTarget as Zr } from "./utils/subtitleCue.es.js";
20
20
  /* empty css */
21
- import Zr from "../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
21
+ import Gr 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
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";
25
+ import Pr 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 Pt = /* @__PURE__ */ new Map(), Qt = (d) => {
33
+ if (typeof window > "u" || !d || Pt.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) => {
37
- const T = i.element?.subtitle_cues;
38
- return p.subtitleCueLists[w] === T && p.subtitleCueLengths[w] === (T?.length ?? 0);
39
- }), nn = (d) => {
36
+ p.preload = "auto", p.setAttribute("playsinline", "true"), p.src = d, p.load(), Pt.set(d, p);
37
+ }, nn = (d, p) => p !== null && p.audioList === d && p.subtitleCueLists.length === d.length && d.every((i, T) => {
38
+ const v = i.element?.subtitle_cues;
39
+ return p.subtitleCueLists[T] === v && p.subtitleCueLengths[T] === (v?.length ?? 0);
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,12 +96,12 @@ 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
- defaultPlaying: w = !0,
103
- isPlaybackPaused: T = !1,
103
+ defaultPlaying: T = !0,
104
+ isPlaybackPaused: v = !1,
104
105
  isAutoAdvanceEnabled: Y = !0,
105
106
  useAutoAdvanceToggle: R = !1,
106
107
  onLoadingChange: qe,
@@ -108,7 +109,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
108
109
  onPlaybackStarted: tt,
109
110
  onPlaybackTimeChange: be,
110
111
  onPlaybackCheckpoint: ne,
111
- playbackRestoreRequest: _ = null,
112
+ playbackRestoreRequest: M = null,
112
113
  onPlaybackRestoreComplete: oe,
113
114
  onSubtitleToggle: fe,
114
115
  onPrev: _e,
@@ -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,
@@ -131,7 +132,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
131
132
  showControls: Ie = !0,
132
133
  onControlsPointerEnter: er,
133
134
  onControlsPointerLeave: tr,
134
- slideProgress: v = null,
135
+ slideProgress: g = null,
135
136
  enableKeyboardShortcuts: rr = !0,
136
137
  subtitleSeekRequest: D = null,
137
138
  customActions: at,
@@ -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), S = a(null), mt = a(null), pt = a(null), { resolvedDirection: ht, readDirection: gt } = xr(S, $e), ke = ht === "rtl", ur = Ar(S, 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 ? Y : T
148
+ ), he = a(!1), yt = a(!1), L = a(!1), B = a(null), P = 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, y] = Pe(T), [kt, ue] = Pe(!1), [le, lr] = Pe({
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
+ }), 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(
152
153
  () => Yt(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
+ ), Ze = 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
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 ? Y : T;
223
+ }, [T, Y, R]), m(() => {
223
224
  Ie || ue(!1);
224
225
  }, [Ie]), m(() => {
225
226
  !St.current && Te && ue(!1), St.current = Te;
@@ -256,8 +257,8 @@ 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
- 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(() => {
260
+ }, [g?.currentIndex]);
261
+ const Ot = u((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), Z = u(() => T && !v && !L.current && I.current !== "blocked", [T, v]), 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(
263
264
  (t, r) => t + Math.max(Number(r.duration_ms ?? 0), 0),
@@ -267,11 +268,11 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
267
268
  (t, r) => t + Math.max(Number(r.duration_ms ?? 0), 0),
268
269
  0
269
270
  ), []), Ke = u(
270
- (e, t) => !e || T ? !1 : e.audioUrl ? !0 : Xe(
271
+ (e, t) => !e || v ? !1 : e.audioUrl ? !0 : Xe(
271
272
  Yt(e),
272
273
  t
273
274
  ),
274
- [T]
275
+ [v]
275
276
  ), Se = u(
276
277
  (e, t, r = {}) => {
277
278
  const n = Jr({
@@ -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,49 +293,49 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
292
293
  Ke,
293
294
  i,
294
295
  we,
295
- At
296
+ Ct
296
297
  ]
297
- ), Ze = u(
298
+ ), Ge = 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
308
309
  };
309
- lr((b) => b.previous === n.previous && b.next === n.next ? b : n);
310
+ lr((_) => _.previous === n.previous && _.next === n.next ? _ : n);
310
311
  },
311
312
  [Se]
312
313
  );
313
314
  m(() => {
314
- bt.current = Ze, Ze(Ae.current, !0);
315
- }, [Ze]);
316
- const Z = u(() => {
317
- const e = g.current;
315
+ bt.current = Ge, Ge(Ce.current, !0);
316
+ }, [Ge]);
317
+ const G = u(() => {
318
+ const e = S.current;
318
319
  return e ? B.current === "segment" ? te(F.current) + Math.max(e.currentTime, 0) * 1e3 : N.current !== null && e.readyState === 0 ? N.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : h.current != null ? te(h.current) : 0;
319
320
  }, [te]);
320
321
  m(() => {
321
322
  wt.current = ne;
322
323
  }, [ne]), m(() => {
323
- Tt.current = Z;
324
- }, [Z]);
324
+ Tt.current = G;
325
+ }, [G]);
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, Zr({
329
330
  currentAudioIndex: i,
330
331
  currentTimeMs: t,
331
332
  target: ge.current
332
333
  }) && (ge.current = null), be?.(t), bt.current(t));
333
334
  },
334
335
  [i, be]
335
- ), y = u(() => {
336
- K(Z());
337
- }, [Z, K]), j = u(
336
+ ), b = u(() => {
337
+ K(G());
338
+ }, [G, K]), j = u(
338
339
  (e = !1, t = !1) => {
339
340
  const r = Le.current;
340
341
  if (!ne || !r)
@@ -343,10 +344,10 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
343
344
  !e && n - Mt.current < 5e3 || (Mt.current = n, He.current = t, ne({
344
345
  audioKey: r,
345
346
  isComplete: t,
346
- timeMs: Z()
347
+ timeMs: G()
347
348
  }));
348
349
  },
349
- [Z, ne]
350
+ [G, ne]
350
351
  );
351
352
  m(
352
353
  () => () => {
@@ -360,14 +361,14 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
360
361
  ), m(() => {
361
362
  He.current = !1;
362
363
  }, [i]);
363
- const M = u(() => {
364
+ const w = u(() => {
364
365
  typeof window > "u" || Q.current === null || (window.cancelAnimationFrame(Q.current), Q.current = null);
365
366
  }, []), $t = u(() => {
366
367
  if (typeof window > "u" || Q.current !== null)
367
368
  return;
368
369
  const e = () => {
369
- y();
370
- const t = g.current;
370
+ b();
371
+ const t = S.current;
371
372
  if (!t || t.paused || t.ended) {
372
373
  Q.current = null;
373
374
  return;
@@ -375,91 +376,91 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
375
376
  Q.current = window.requestAnimationFrame(e);
376
377
  };
377
378
  Q.current = window.requestAnimationFrame(e);
378
- }, [y]), ae = u(() => {
379
- 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(
379
+ }, [b]), ae = u(() => {
380
+ const e = S.current;
381
+ e && (w(), c.current = !1, L.current = !1, he.current = !1, B.current = null, N.current = null, E.current = !1, U.current = !1, P.current = null, e.pause(), e.removeAttribute("src"), e.load(), O.current = null, F.current = 0, h.current = null, K(0), y(!1), l(!1));
382
+ }, [K, w, l]), C = u(
382
383
  (e) => {
383
- const t = g.current;
384
+ const t = S.current;
384
385
  if (!t)
385
386
  return !1;
386
387
  const r = t.play();
387
388
  return r && typeof r.then == "function" && r.then(() => {
388
389
  I.current === "unknown" && (I.current = "auto"), c.current = !1, U.current = !1;
389
390
  }).catch((n) => {
390
- I.current === "unknown" && Ot(n) && (I.current = "blocked", c.current = !1, l(!1)), U.current = !1, S(!1);
391
+ I.current === "unknown" && Ot(n) && (I.current = "blocked", c.current = !1, l(!1)), U.current = !1, y(!1);
391
392
  }), !0;
392
393
  },
393
394
  [Ot, l]
394
395
  ), x = u(
395
396
  (e, t, r = {}) => {
396
- const n = g.current, b = k.current[e];
397
- if (!n || !b)
397
+ const n = S.current, _ = k.current[e];
398
+ if (!n || !_)
398
399
  return !1;
399
- const re = It(b.audio_data), Ye = Math.max(
400
+ const re = It(_.audio_data), Ye = 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
+ F.current = e, h.current = null, E.current = !1, U.current = !0, P.current = "segment", K(
404
405
  te(e) + Ye * 1e3
405
406
  );
406
- const Zt = r.shouldResume ?? P();
407
- c.current = Zt, l(!1);
407
+ const Gt = r.shouldResume ?? Z();
408
+ c.current = Gt, 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 = Ye, n.readyState > 0 && (n.currentTime = Ye, N.current = null), Gt ? C(`start-segment:${t}`) : (c.current = !1, U.current = !1, n.pause(), y(!1), !0);
410
411
  },
411
412
  [
412
- P,
413
+ Z,
413
414
  It,
414
415
  te,
415
416
  K,
416
- A,
417
+ C,
417
418
  l
418
419
  ]
419
420
  ), ie = u(
420
421
  (e, t) => {
421
- const r = g.current;
422
+ const r = S.current;
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", P.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(
429
430
  (e) => {
430
- const t = g.current;
431
- if (!t || !f || T)
431
+ const t = S.current;
432
+ if (!t || !f || v)
432
433
  return !1;
433
- const r = Math.max(Number(e), 0), n = !t.paused && !t.ended || c.current || U.current || h.current !== null && pe.current && !L.current, b = Xe(
434
+ const r = Math.max(Number(e), 0), n = !t.paused && !t.ended || c.current || U.current || h.current !== null && pe.current && !L.current, _ = Xe(
434
435
  k.current,
435
436
  r
436
437
  ) ? zt(
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
- b.segmentIndex,
441
+ return Ae.current = null, w(), c.current = n, l(!1), n && (I.current = "manual", L.current = !1, $(!0)), _ && (B.current === "segment" || !A) ? x(
442
+ _.segmentIndex,
442
443
  "subtitle-seek-segment",
443
444
  {
444
- seekTimeSeconds: b.segmentTimeSeconds,
445
+ seekTimeSeconds: _.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(), y(!1), !0) : !1;
448
449
  },
449
450
  [
450
451
  f,
451
- C,
452
- T,
452
+ A,
453
+ v,
453
454
  ie,
454
455
  x,
455
- M,
456
- A,
456
+ w,
457
+ C,
457
458
  l,
458
459
  $
459
460
  ]
460
461
  ), Ht = u(
461
462
  (e) => {
462
- if (!g.current || !f)
463
+ if (!S.current || !f)
463
464
  return !1;
464
465
  const r = Math.max(Number(e), 0), n = Xe(
465
466
  k.current,
@@ -468,24 +469,24 @@ 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(
485
486
  (e) => {
486
487
  const t = Se(
487
488
  e,
488
- Z(),
489
+ G(),
489
490
  {
490
491
  excludeTarget: e === "previous" ? ge.current : null
491
492
  }
@@ -504,7 +505,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
504
505
  },
505
506
  [
506
507
  i,
507
- Z,
508
+ G,
508
509
  J,
509
510
  Se,
510
511
  we,
@@ -512,18 +513,18 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
512
513
  ]
513
514
  ), se = u(
514
515
  (e) => {
515
- M(), c.current = !1, E.current = !1, U.current = !1, y(), S(!1), l(!1), i >= 0 && ut?.(i);
516
+ w(), c.current = !1, E.current = !1, U.current = !1, b(), y(!1), l(!1), i >= 0 && ut?.(i);
516
517
  },
517
518
  [
518
519
  i,
519
520
  ut,
520
- M,
521
- y,
521
+ w,
522
+ b,
522
523
  l
523
524
  ]
524
525
  ), Ue = u(
525
526
  (e) => {
526
- const t = g.current;
527
+ const t = S.current;
527
528
  return !t || B.current !== "url" || !Ur({
528
529
  currentTimeSeconds: Math.max(t.currentTime, 0),
529
530
  durationSeconds: t.duration
@@ -531,18 +532,18 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
531
532
  },
532
533
  [se]
533
534
  ), Dt = u(() => {
534
- const e = F.current + 1, t = k.current, r = t[e], n = me.current, b = t.some((re) => re.is_final);
535
+ const e = F.current + 1, t = k.current, r = t[e], n = me.current, _ = t.some((re) => re.is_final);
535
536
  if (r) {
536
537
  x(e, "ended");
537
538
  return;
538
539
  }
539
- if (n?.isAudioStreaming || !b) {
540
- F.current = e, h.current = e, E.current = !0, c.current = w, K(te(e)), S(!1), l(!0, "waitingForMoreAudio");
540
+ if (n?.isAudioStreaming || !_) {
541
+ F.current = e, h.current = e, E.current = !0, c.current = T, K(te(e)), y(!1), l(!0, "waitingForMoreAudio");
541
542
  return;
542
543
  }
543
544
  se("segments-completed");
544
545
  }, [
545
- w,
546
+ T,
546
547
  se,
547
548
  te,
548
549
  K,
@@ -550,25 +551,25 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
550
551
  l
551
552
  ]);
552
553
  m(() => {
553
- if (Le.current === Pe)
554
+ if (Le.current === Ze)
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
- const e = g.current;
557
- e && (De.current = !0, e.pause(), e.removeAttribute("src"), e.load(), De.current = !1, S(!1));
556
+ j(!0), Le.current = Ze, F.current = 0, h.current = null, E.current = !1, L.current = !1, he.current = !1, c.current = !1, U.current = !1, B.current = null, P.current = null, O.current = null, w(), K(0), l(!1);
557
+ const e = S.current;
558
+ e && (De.current = !0, e.pause(), e.removeAttribute("src"), e.load(), De.current = !1, y(!1));
558
559
  }, [
559
560
  i,
560
- Pe,
561
+ Ze,
561
562
  W.length,
562
- C,
563
+ A,
563
564
  j,
564
565
  K,
565
- M,
566
+ w,
566
567
  l
567
568
  ]), m(() => {
568
- const e = g.current;
569
+ const e = S.current;
569
570
  if (e) {
570
- if (T) {
571
- he.current = !!(me.current && !L.current && (!e.paused || c.current || h.current !== null)), c.current = !1, l(!1), e.pause(), S(!1);
571
+ if (v) {
572
+ he.current = !!(me.current && !L.current && (!e.paused || c.current || h.current !== null)), c.current = !1, l(!1), e.pause(), y(!1);
572
573
  return;
573
574
  }
574
575
  if (!(!he.current || !me.current || L.current)) {
@@ -590,63 +591,63 @@ 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
- T,
598
+ v,
598
599
  x,
599
- A,
600
+ C,
600
601
  l
601
602
  ]), m(() => {
602
- const e = g.current;
603
+ const e = S.current;
603
604
  if (!e)
604
605
  return;
605
606
  if (!f) {
606
607
  ae();
607
608
  return;
608
609
  }
609
- if (_ && _.id !== X.current)
610
+ if (M && M.id !== X.current)
610
611
  return;
611
- if (T) {
612
- c.current = !1, l(!1), e.pause(), S(!1);
612
+ if (v) {
613
+ c.current = !1, l(!1), e.pause(), y(!1);
613
614
  return;
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: P.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 && P.current !== t && (P.current = t), t === "url" && A) {
624
+ const r = O.current !== A, n = Z();
624
625
  if (r) {
625
- const b = h.current !== null ? Vt() : 0;
626
- ie(C, b * 1e3);
626
+ const _ = h.current !== null ? Vt() : 0;
627
+ ie(A, _ * 1e3);
627
628
  }
628
629
  if (c.current = n, E.current = !1, U.current = !1, l(!1), !n) {
629
- c.current = !1, e.pause(), S(!1);
630
+ c.current = !1, e.pause(), y(!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) {
636
637
  if (h.current < W.length) {
637
638
  if (L.current) {
638
- S(!1), l(!1);
639
+ y(!1), l(!1);
639
640
  return;
640
641
  }
641
642
  x(h.current, "wait-resume");
642
643
  return;
643
644
  }
644
- E.current = !0, c.current = P(), S(!1), l(P());
645
+ E.current = !0, c.current = Z(), y(!1), l(Z());
645
646
  return;
646
647
  }
647
648
  if (t === "segment" && !W.length) {
648
649
  if (f.isAudioStreaming) {
649
- h.current = F.current, E.current = !0, c.current = P(), S(!1), l(P());
650
+ h.current = F.current, E.current = !0, c.current = Z(), y(!1), l(Z());
650
651
  return;
651
652
  }
652
653
  ae();
@@ -666,24 +667,24 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
666
667
  ae();
667
668
  return;
668
669
  }
669
- if (!w || L.current) {
670
- c.current = !1, e.pause(), S(!1);
670
+ if (!T || L.current) {
671
+ c.current = !1, e.pause(), y(!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
- w,
679
+ A,
680
680
  T,
681
- _,
682
- P,
681
+ v,
682
+ M,
683
+ Z,
683
684
  ae,
684
685
  ie,
685
686
  x,
686
- A,
687
+ C,
687
688
  Vt,
688
689
  l
689
690
  ]), m(() => {
@@ -698,25 +699,25 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
698
699
  Fe,
699
700
  D
700
701
  ]), m(() => {
701
- if (!(!_ || _.id === X.current || i < 0)) {
702
- if (Ht(_.timeMs)) {
703
- X.current = _.id, oe?.(_.id);
702
+ if (!(!M || M.id === X.current || i < 0)) {
703
+ if (Ht(M.timeMs)) {
704
+ X.current = M.id, oe?.(M.id);
704
705
  return;
705
706
  }
706
- f?.isAudioStreaming || (X.current = _.id, oe?.(_.id));
707
+ f?.isAudioStreaming || (X.current = M.id, oe?.(M.id));
707
708
  }
708
709
  }, [
709
710
  f?.isAudioStreaming,
710
711
  i,
711
712
  oe,
712
- _,
713
+ M,
713
714
  Ht
714
715
  ]), m(() => {
715
- if (!_ || _.id === X.current || i < 0 || !f?.isAudioStreaming)
716
+ if (!M || M.id === X.current || i < 0 || !f?.isAudioStreaming)
716
717
  return;
717
718
  const e = window.setTimeout(() => {
718
- _.id !== X.current && (X.current = _.id, oe?.(_.id));
719
- }, sn);
719
+ M.id !== X.current && (X.current = M.id, oe?.(M.id));
720
+ }, cn);
720
721
  return () => {
721
722
  window.clearTimeout(e);
722
723
  };
@@ -724,32 +725,32 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
724
725
  f?.isAudioStreaming,
725
726
  i,
726
727
  oe,
727
- _
728
- ]), m(() => ae, [ae]), m(() => M, [M]);
728
+ M
729
+ ]), m(() => ae, [ae]), m(() => w, [w]);
729
730
  const fr = u(() => {
730
- y(), $t(), S(!0), l(!1), tt?.();
731
+ b(), $t(), y(!0), l(!1), tt?.();
731
732
  }, [
732
733
  tt,
733
734
  $t,
734
- y,
735
+ b,
735
736
  l
736
737
  ]), dr = u(() => {
737
- De.current || E.current || U.current || (M(), y(), j(!0), S(!1));
738
- }, [j, M, y]), mr = u(() => {
739
- 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"));
738
+ De.current || E.current || U.current || (w(), b(), j(!0), y(!1));
739
+ }, [j, w, b]), mr = u(() => {
740
+ const e = S.current;
741
+ e && N.current !== null && (e.currentTime = N.current, N.current = null), b(), !Ue("canplay-seek-finished") && (!c.current || !T || C("canplay"));
741
742
  }, [
742
743
  i,
743
- w,
744
+ T,
744
745
  Ue,
745
- y,
746
- A
746
+ b,
747
+ C
747
748
  ]), pr = u(() => {
748
- const e = g.current;
749
- e && N.current !== null && (e.currentTime = N.current, N.current = null), y(), Ue("metadata-seek-finished");
750
- }, [i, Ue, y]), hr = u(() => {
751
- y(), j();
752
- }, [j, y]), gr = u(() => {
749
+ const e = S.current;
750
+ e && N.current !== null && (e.currentTime = N.current, N.current = null), b(), Ue("metadata-seek-finished");
751
+ }, [i, Ue, b]), hr = u(() => {
752
+ b(), j();
753
+ }, [j, b]), gr = u(() => {
753
754
  E.current || l(!0, "loadingAudio");
754
755
  }, [l]), Sr = u(() => {
755
756
  if (E.current) {
@@ -758,15 +759,15 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
758
759
  }
759
760
  l(!0, "loadingAudio");
760
761
  }, [l]), Jt = u(() => {
761
- y();
762
- }, [y]), yr = u(() => {
762
+ b();
763
+ }, [b]), yr = u(() => {
763
764
  const e = me.current, t = B.current === "url" || k.current.length === 0, r = !!k.current[F.current + 1], n = k.current.some(
764
765
  (re) => re.is_final
765
- ), b = !!e?.isAudioStreaming;
766
+ ), _ = !!e?.isAudioStreaming;
766
767
  if (j(
767
768
  !0,
768
- t || !b && !r && n
769
- ), M(), U.current = !1, t) {
769
+ t || !_ && !r && n
770
+ ), w(), U.current = !1, t) {
770
771
  se("url-ended");
771
772
  return;
772
773
  }
@@ -775,10 +776,10 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
775
776
  j,
776
777
  se,
777
778
  Dt,
778
- M
779
+ w
779
780
  ]), br = u(() => {
780
- M(), y(), S(!1), l(!1);
781
- }, [M, y, l]), _r = u(
781
+ w(), b(), y(!1), l(!1);
782
+ }, [w, b, l]), _r = u(
782
783
  (e) => {
783
784
  nt?.(e), ue(!1);
784
785
  },
@@ -788,23 +789,23 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
788
789
  const t = !Y;
789
790
  return $(t), lt?.(t), !0;
790
791
  }
791
- const e = g.current;
792
- return T || !e || !f ? !1 : h.current !== null ? xe ? ($(!1), c.current = !1, L.current = !0, h.current = null, E.current = !1, S(!1), l(!1), e.pause(), !0) : ($(!0), I.current = "manual", L.current = !1, c.current = !0, l(!0, "waitingForMoreAudio"), !0) : !e.src && W.length > 0 ? ($(!0), I.current = "manual", L.current = !1, x(
792
+ const e = S.current;
793
+ return v || !e || !f ? !1 : h.current !== null ? xe ? ($(!1), c.current = !1, L.current = !0, h.current = null, E.current = !1, y(!1), l(!1), e.pause(), !0) : ($(!0), I.current = "manual", L.current = !1, c.current = !0, l(!0, "waitingForMoreAudio"), !0) : !e.src && W.length > 0 ? ($(!0), I.current = "manual", L.current = !1, x(
793
794
  Math.min(
794
795
  F.current,
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
803
  Y,
803
- T,
804
+ v,
804
805
  xe,
805
806
  lt,
806
807
  x,
807
- A,
808
+ C,
808
809
  l,
809
810
  $,
810
811
  R
@@ -840,9 +841,9 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
840
841
  le.previous,
841
842
  je
842
843
  ]
843
- ), Pt = a(ze);
844
+ ), Zt = a(ze);
844
845
  return m(() => {
845
- Pt.current = ze;
846
+ Zt.current = ze;
846
847
  }, [ze]), m(() => {
847
848
  if (!V || typeof document > "u")
848
849
  return;
@@ -853,14 +854,14 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
853
854
  if (!r || Vr(t, r))
854
855
  return;
855
856
  let n = !1;
856
- const b = Pt.current[r];
857
- n = b(), n && t.preventDefault();
857
+ const _ = Zt.current[r];
858
+ n = _(), n && t.preventDefault();
858
859
  };
859
860
  return document.addEventListener("keydown", e), () => {
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
  {
@@ -868,14 +869,18 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
868
869
  dir: $e,
869
870
  lang: ft,
870
871
  "data-slide-player-shortcut-owner": q,
871
- className: Nr("slide-player", p),
872
+ className: Nr(
873
+ "slide-player",
874
+ g && (g.totalSteps > 1 || g.isGenerating) && "slide-player--with-slide-progress",
875
+ p
876
+ ),
872
877
  onFocusCapture: or,
873
878
  onPointerDown: cr,
874
879
  children: [
875
880
  /* @__PURE__ */ s(
876
881
  "audio",
877
882
  {
878
- ref: g,
883
+ ref: S,
879
884
  preload: "auto",
880
885
  playsInline: !0,
881
886
  onLoadStart: gr,
@@ -939,7 +944,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
939
944
  },
940
945
  type: "button",
941
946
  children: /* @__PURE__ */ s(
942
- Zr,
947
+ Gr,
943
948
  {
944
949
  className: "slide-player__icon",
945
950
  strokeWidth: 2.25
@@ -967,7 +972,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
967
972
  },
968
973
  title: Ut.title,
969
974
  type: "button",
970
- children: sr ? /* @__PURE__ */ s(un, {}) : /* @__PURE__ */ s(ln, {})
975
+ children: sr ? /* @__PURE__ */ s(ln, {}) : /* @__PURE__ */ s(an, {})
971
976
  }
972
977
  ),
973
978
  /* @__PURE__ */ s(
@@ -1018,7 +1023,7 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1018
1023
  },
1019
1024
  title: Ft.title,
1020
1025
  type: "button",
1021
- children: /* @__PURE__ */ s(Gr, { className: "slide-player__icon", strokeWidth: 2.25 })
1026
+ children: /* @__PURE__ */ s(Pr, { className: "slide-player__icon", strokeWidth: 2.25 })
1022
1027
  }
1023
1028
  ),
1024
1029
  /* @__PURE__ */ s(
@@ -1093,10 +1098,10 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1093
1098
  ]
1094
1099
  }
1095
1100
  ),
1096
- v && (v.totalSteps > 1 || v.isGenerating) ? /* @__PURE__ */ H(
1101
+ g && (g.totalSteps > 1 || g.isGenerating) ? /* @__PURE__ */ H(
1097
1102
  "div",
1098
1103
  {
1099
- "aria-label": v.ariaLabel,
1104
+ "aria-label": g.ariaLabel,
1100
1105
  className: "slide-player__slide-progress",
1101
1106
  role: "navigation",
1102
1107
  children: [
@@ -1106,19 +1111,19 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1106
1111
  className: "slide-player__slide-progress-viewport",
1107
1112
  ref: mt,
1108
1113
  children: /* @__PURE__ */ s("div", { className: "slide-player__slide-progress-track", children: Array.from(
1109
- { length: v.totalSteps },
1114
+ { length: g.totalSteps },
1110
1115
  (e, t) => /* @__PURE__ */ s(
1111
1116
  "button",
1112
1117
  {
1113
- "aria-current": t === v.currentIndex ? "step" : void 0,
1114
- "aria-label": `${v.ariaLabel} ${t + 1}`,
1118
+ "aria-current": t === g.currentIndex ? "step" : void 0,
1119
+ "aria-label": `${g.ariaLabel} ${t + 1}`,
1115
1120
  className: "slide-player__slide-progress-segment",
1116
- "data-state": t < v.currentIndex ? "completed" : t === v.currentIndex ? "current" : "upcoming",
1117
- onClick: () => v.onNavigate?.(
1121
+ "data-state": t < g.currentIndex ? "completed" : t === g.currentIndex ? "current" : "upcoming",
1122
+ onClick: () => g.onNavigate?.(
1118
1123
  t,
1119
1124
  J()
1120
1125
  ),
1121
- ref: t === v.currentIndex ? pt : void 0,
1126
+ ref: t === g.currentIndex ? pt : void 0,
1122
1127
  type: "button"
1123
1128
  },
1124
1129
  t
@@ -1126,10 +1131,18 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1126
1131
  ) })
1127
1132
  }
1128
1133
  ),
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
1134
+ /* @__PURE__ */ H(
1135
+ "span",
1136
+ {
1137
+ "aria-hidden": !g.isGenerating,
1138
+ className: "slide-player__slide-progress-generating",
1139
+ "data-visible": g.isGenerating ? "true" : "false",
1140
+ children: [
1141
+ /* @__PURE__ */ s(rn, { "aria-hidden": "true" }),
1142
+ g.generatingLabel
1143
+ ]
1144
+ }
1145
+ )
1133
1146
  ]
1134
1147
  }
1135
1148
  ) : null
@@ -1137,9 +1150,9 @@ const Gt = /* @__PURE__ */ new Map(), Qt = (d) => {
1137
1150
  ]
1138
1151
  }
1139
1152
  );
1140
- }, fn = Tr(on);
1141
- fn.displayName = "Player";
1153
+ }, dn = Tr(fn);
1154
+ dn.displayName = "Player";
1142
1155
  export {
1143
- fn as default
1156
+ dn as default
1144
1157
  };
1145
1158
  //# sourceMappingURL=Player.es.js.map