markdown-flow-ui 0.2.9-dev.2 → 0.2.10

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 (37) hide show
  1. package/dist/_virtual/index.cjs3.js +1 -1
  2. package/dist/_virtual/index.cjs4.js +1 -1
  3. package/dist/_virtual/index.cjs8.js +1 -1
  4. package/dist/_virtual/index.cjs9.js +1 -1
  5. package/dist/_virtual/index.es3.js +5 -4
  6. package/dist/_virtual/index.es3.js.map +1 -1
  7. package/dist/_virtual/index.es4.js +4 -5
  8. package/dist/_virtual/index.es4.js.map +1 -1
  9. package/dist/_virtual/index.es8.js +2 -2
  10. package/dist/_virtual/index.es9.js +2 -2
  11. package/dist/components/Slide/Slide.cjs.js +1 -1
  12. package/dist/components/Slide/Slide.cjs.js.map +1 -1
  13. package/dist/components/Slide/Slide.es.js +412 -402
  14. package/dist/components/Slide/Slide.es.js.map +1 -1
  15. package/dist/components/Slide/utils/stepAudioProgress.cjs.js +2 -0
  16. package/dist/components/Slide/utils/stepAudioProgress.cjs.js.map +1 -0
  17. package/dist/components/Slide/utils/stepAudioProgress.d.ts +22 -0
  18. package/dist/components/Slide/utils/stepAudioProgress.es.js +6 -0
  19. package/dist/components/Slide/utils/stepAudioProgress.es.js.map +1 -0
  20. package/dist/components/Slide/utils/stepAudioProgress.test.d.ts +1 -0
  21. package/dist/components/ui/inputGroup/textarea.cjs.js +1 -1
  22. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  23. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs.js +1 -1
  24. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  25. package/dist/node_modules/classnames/index.cjs.js +1 -1
  26. package/dist/node_modules/classnames/index.es.js +1 -1
  27. package/dist/node_modules/rc-input/es/BaseInput.cjs.js +1 -1
  28. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  29. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs.js +1 -1
  30. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  31. package/dist/node_modules/rc-textarea/es/TextArea.cjs.js +1 -1
  32. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  33. package/dist/node_modules/rc-textarea/es/index.cjs.js +1 -1
  34. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  35. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs.js +1 -1
  36. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  37. package/package.json +1 -1
@@ -1,58 +1,59 @@
1
1
  import { j as a } from "../../_virtual/jsx-runtime.es.js";
2
- import { memo as Tr, useMemo as d, useId as Cr, useRef as p, useCallback as r, useState as m, useEffect as c, useLayoutEffect as Pr } from "react";
3
- import { isSandboxInteractionMessage as Rr } from "../../lib/sandboxInteraction.es.js";
2
+ import { memo as Cr, useMemo as d, useId as Pr, useRef as m, useCallback as r, useState as p, useEffect as c, useLayoutEffect as Rr } from "react";
3
+ import { isSandboxInteractionMessage as _r } from "../../lib/sandboxInteraction.es.js";
4
4
  import { cn as ve } from "../../lib/utils.es.js";
5
- import _r from "../ui/loading-overlay-card.es.js";
6
- import Or from "../ContentRender/ContentRender.es.js";
7
- import In from "../ContentRender/IframeSandbox.es.js";
5
+ import Or from "../ui/loading-overlay-card.es.js";
6
+ import Mr from "../ContentRender/ContentRender.es.js";
7
+ import bn from "../ContentRender/IframeSandbox.es.js";
8
8
  import "../ui/inputGroup/input-group.es.js";
9
9
  import "../ContentRender/contentRenderI18n.es.js";
10
- import { isMobileDevice as Mr, isLandscapeViewport as bn, subscribeMobileDeviceChange as kr } from "../../lib/mobileDevice.es.js";
11
- import Fr from "./Player.es.js";
12
- import Lr from "./MarkdownSlideScaling.es.js";
13
- import Nr from "./SubtitleOverlay.es.js";
14
- import Br from "./useSlide.es.js";
15
- import Dr from "./useWakePlayerFromIframe.es.js";
16
- import { PlayerKeyboardShortcutContext as Vr } from "./utils/playerKeyboardShortcutContext.es.js";
17
- import { activatePlayerKeyboardShortcutOwner as jr } from "./utils/playerKeyboardShortcuts.es.js";
18
- import { DEFAULT_MOBILE_VIEW_MODE as nt, resolveMobileViewModeState as qr } from "./utils/mobileScreenMode.es.js";
19
- import { shouldRenderInteractionOverlay as Kr, clampInteractionOverlayDragOffset as xn, shouldPresentInteractionOverlay as Ur } from "./utils/interactionPlayback.es.js";
20
- import { resolveMarkdownScalingMode as Hr } from "./utils/markdownScaling.es.js";
21
- import { shouldWakePlayerControlsAfterNavigation as Pt } from "./utils/playerNavigationContext.es.js";
22
- import { shouldAutoAdvanceIntoAppendedMarker as Yr } from "./utils/appendedMarkerAdvance.es.js";
23
- import { getPlaybackSequenceTransition as Gr, shouldStartDefaultAudioSequence as $r } from "./utils/playbackSequence.es.js";
24
- import { hasResolvedInteractionElement as zr, canReachSubtitleJumpTarget as An } from "./utils/subtitleJumpNavigation.es.js";
25
- import { resolvePlayerCustomActionElement as Xr, getPlayerCustomActionCount as Jr } from "./utils/playerCustomActions.es.js";
26
- import { createPlaybackTimeStore as Wr } from "./utils/playbackTimeStore.es.js";
27
- import { resolveSlideInteractionState as Qr } from "./utils/interactionResolution.es.js";
28
- import { shouldUseAutoAdvanceToggle as Zr } from "./utils/playerToggleMode.es.js";
29
- import { DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS as eo, areImageOnlyStepIframeVisualsReady as to } from "./utils/imageOnlyStepVisualReady.es.js";
30
- import { resolveSilentStepAutoAdvanceBehavior as no } from "./utils/silentStepAutoAdvance.es.js";
31
- import { resolveSlidePlayerVisibility as ro } from "./utils/playerVisibility.es.js";
32
- import { getSlideLocaleTexts as oo, DEFAULT_SLIDE_BUFFERING_TEXTS as io } from "./slideI18n.es.js";
10
+ import { isMobileDevice as kr, isLandscapeViewport as xn, subscribeMobileDeviceChange as Fr } from "../../lib/mobileDevice.es.js";
11
+ import Lr from "./Player.es.js";
12
+ import Nr from "./MarkdownSlideScaling.es.js";
13
+ import Br from "./SubtitleOverlay.es.js";
14
+ import Dr from "./useSlide.es.js";
15
+ import Vr from "./useWakePlayerFromIframe.es.js";
16
+ import { PlayerKeyboardShortcutContext as jr } from "./utils/playerKeyboardShortcutContext.es.js";
17
+ import { activatePlayerKeyboardShortcutOwner as qr } from "./utils/playerKeyboardShortcuts.es.js";
18
+ import { DEFAULT_MOBILE_VIEW_MODE as ot, resolveMobileViewModeState as Kr } from "./utils/mobileScreenMode.es.js";
19
+ import { shouldRenderInteractionOverlay as Ur, clampInteractionOverlayDragOffset as An, shouldPresentInteractionOverlay as Hr } from "./utils/interactionPlayback.es.js";
20
+ import { resolveMarkdownScalingMode as Yr } from "./utils/markdownScaling.es.js";
21
+ import { shouldWakePlayerControlsAfterNavigation as Rt } from "./utils/playerNavigationContext.es.js";
22
+ import { shouldAutoAdvanceIntoAppendedMarker as Gr } from "./utils/appendedMarkerAdvance.es.js";
23
+ import { resolvePendingStepAudioKey as $r, hasUnplayedStepAudio as zr } from "./utils/stepAudioProgress.es.js";
24
+ import { getPlaybackSequenceTransition as Xr, shouldStartDefaultAudioSequence as Jr } from "./utils/playbackSequence.es.js";
25
+ import { hasResolvedInteractionElement as Wr, canReachSubtitleJumpTarget as wn } from "./utils/subtitleJumpNavigation.es.js";
26
+ import { resolvePlayerCustomActionElement as Qr, getPlayerCustomActionCount as Zr } from "./utils/playerCustomActions.es.js";
27
+ import { createPlaybackTimeStore as eo } from "./utils/playbackTimeStore.es.js";
28
+ import { resolveSlideInteractionState as to } from "./utils/interactionResolution.es.js";
29
+ import { shouldUseAutoAdvanceToggle as no } from "./utils/playerToggleMode.es.js";
30
+ import { DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS as ro, areImageOnlyStepIframeVisualsReady as oo } from "./utils/imageOnlyStepVisualReady.es.js";
31
+ import { resolveSilentStepAutoAdvanceBehavior as io } from "./utils/silentStepAutoAdvance.es.js";
32
+ import { resolveSlidePlayerVisibility as lo } from "./utils/playerVisibility.es.js";
33
+ import { getSlideLocaleTexts as ao, DEFAULT_SLIDE_BUFFERING_TEXTS as so } from "./slideI18n.es.js";
33
34
  /* empty css */
34
- import Rt from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
35
- import lo from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
36
- const ao = 2e3, so = 300, co = 160, uo = 16, wn = 3e3, rt = {
35
+ import _t from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
36
+ import co from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
37
+ const uo = 2e3, fo = 300, mo = 160, po = 16, En = 3e3, it = {
37
38
  x: 0,
38
39
  y: 0
39
- }, Ot = 0.5, fo = typeof window > "u" ? c : Pr, mo = [
40
+ }, Mt = 0.5, yo = typeof window > "u" ? c : Rr, ho = [
40
41
  "button",
41
42
  "input",
42
43
  "textarea",
43
44
  '[contenteditable=""]',
44
45
  '[contenteditable="true"]',
45
46
  '[contenteditable="plaintext-only"]'
46
- ].join(", "), Mt = "waitingForAudio", po = ({
47
+ ].join(", "), kt = "waitingForAudio", go = ({
47
48
  x: u,
48
49
  y: f
49
50
  }) => ({
50
51
  x: Number(u.toFixed(2)),
51
52
  y: Number(f.toFixed(2))
52
- }), En = (u) => Math.abs(u) >= Ot, Tn = (u, f) => Math.abs(u.x - f.x) < Ot && Math.abs(u.y - f.y) < Ot, yo = (u, f) => typeof u == "string" ? u : u[f] ?? u[Mt] ?? io[f], ho = (u, f) => typeof u == "string" ? u : {
53
+ }), Tn = (u) => Math.abs(u) >= Mt, Cn = (u, f) => Math.abs(u.x - f.x) < Mt && Math.abs(u.y - f.y) < Mt, vo = (u, f) => typeof u == "string" ? u : u[f] ?? u[kt] ?? so[f], So = (u, f) => typeof u == "string" ? u : {
53
54
  ...f,
54
55
  ...u
55
- }, go = (u, f) => f ? u !== "loadingAudio" : !1, Cn = Tr(
56
+ }, Io = (u, f) => f ? u !== "loadingAudio" : !1, Pn = Cr(
56
57
  ({
57
58
  content: u,
58
59
  title: f,
@@ -63,9 +64,9 @@ const ao = 2e3, so = 300, co = 160, uo = 16, wn = 3e3, rt = {
63
64
  confirmButtonText: ne,
64
65
  copyButtonText: re,
65
66
  copiedButtonText: Ve,
66
- onSend: ot,
67
+ onSend: lt,
67
68
  onDragHandlePointerCancel: oe,
68
- onDragHandlePointerDown: it,
69
+ onDragHandlePointerDown: at,
69
70
  onDragHandlePointerMove: Ie,
70
71
  onDragHandlePointerUp: je,
71
72
  readonly: qe = !1
@@ -77,19 +78,19 @@ const ao = 2e3, so = 300, co = 160, uo = 16, wn = 3e3, rt = {
77
78
  className: "slide-player__interaction-drag-handle",
78
79
  "aria-label": "Move interaction",
79
80
  onPointerCancel: oe,
80
- onPointerDown: it,
81
+ onPointerDown: at,
81
82
  onPointerMove: Ie,
82
83
  onPointerUp: je,
83
84
  children: /* @__PURE__ */ a.jsxs("span", { className: "slide-player__interaction-drag-handle-icon", children: [
84
- /* @__PURE__ */ a.jsx(Rt, { "aria-hidden": "true" }),
85
- /* @__PURE__ */ a.jsx(Rt, { "aria-hidden": "true" }),
86
- /* @__PURE__ */ a.jsx(Rt, { "aria-hidden": "true" })
85
+ /* @__PURE__ */ a.jsx(_t, { "aria-hidden": "true" }),
86
+ /* @__PURE__ */ a.jsx(_t, { "aria-hidden": "true" }),
87
+ /* @__PURE__ */ a.jsx(_t, { "aria-hidden": "true" })
87
88
  ] })
88
89
  }
89
90
  ),
90
91
  /* @__PURE__ */ a.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ a.jsx("p", { className: "slide-player__interaction-title", children: f }) }),
91
92
  /* @__PURE__ */ a.jsx("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ a.jsx(
92
- Or,
93
+ Mr,
93
94
  {
94
95
  content: u,
95
96
  locale: H,
@@ -99,18 +100,18 @@ const ao = 2e3, so = 300, co = 160, uo = 16, wn = 3e3, rt = {
99
100
  confirmButtonText: ne,
100
101
  copyButtonText: re,
101
102
  copiedButtonText: Ve,
102
- onSend: ot,
103
+ onSend: lt,
103
104
  readonly: qe,
104
105
  sandboxMode: "content"
105
106
  }
106
107
  ) })
107
108
  ] })
108
109
  );
109
- Cn.displayName = "InteractionOverlayCard";
110
- const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
110
+ Pn.displayName = "InteractionOverlayCard";
111
+ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
111
112
  const Y = f[Se];
112
113
  return H.sequence_number === Y?.sequence_number && H.type === Y?.type && H.content === Y?.content;
113
- }), _t = (u) => u instanceof HTMLElement && !!u.closest(mo), ni = ({
114
+ }), Ot = (u) => u instanceof HTMLElement && !!u.closest(ho), li = ({
114
115
  elementList: u = [],
115
116
  locale: f,
116
117
  playerEnabled: H,
@@ -120,44 +121,44 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
120
121
  playerCustomActions: ne,
121
122
  playerCustomActionPauseOnActive: re = !0,
122
123
  bufferingText: Ve,
123
- interactionTitle: ot,
124
+ interactionTitle: lt,
124
125
  interactionTexts: oe,
125
- playerTexts: it,
126
+ playerTexts: at,
126
127
  playerAutoHideDelay: Ie = 3e3,
127
- markerAutoAdvanceDelay: je = ao,
128
+ markerAutoAdvanceDelay: je = uo,
128
129
  interactionDefaultValueOptions: qe,
129
- onSend: kt,
130
- onPlayerVisibilityChange: lt,
131
- onMobileViewModeChange: Ft,
132
- onStepChange: Lt,
130
+ onSend: Ft,
131
+ onPlayerVisibilityChange: st,
132
+ onMobileViewModeChange: Lt,
133
+ onStepChange: Nt,
133
134
  enableKeyboardShortcuts: ie = !0,
134
- enableIframeScaling: Pn = !0,
135
- enableMarkdownScaling: Rn = !0,
136
- disableLoadingOverlay: O = !1,
137
- className: _n,
138
- onPointerDown: Nt,
139
- onFocusCapture: Bt,
140
- ...On
135
+ enableIframeScaling: Rn = !0,
136
+ enableMarkdownScaling: _n = !0,
137
+ disableLoadingOverlay: k = !1,
138
+ className: On,
139
+ onPointerDown: Bt,
140
+ onFocusCapture: Dt,
141
+ ...Mn
141
142
  }) => {
142
- const $ = d(() => oo(f), [f]), Mn = d(
143
- () => ho(
143
+ const $ = d(() => ao(f), [f]), kn = d(
144
+ () => So(
144
145
  Ve,
145
146
  $.bufferingText
146
147
  ),
147
148
  [Ve, $.bufferingText]
148
149
  ), {
149
- playerEnabled: kn,
150
+ playerEnabled: Fn,
150
151
  playerControlsVisibility: j
151
- } = ro({
152
+ } = lo({
152
153
  playerEnabled: H,
153
154
  playerControlsVisibility: Se
154
- }), Ke = Cr(), be = p(null), at = p(null), Ue = p(null), Dt = p(null), le = p(null), He = p(!1), xe = p(null), Ye = p(null), z = p(null), Ae = p(null), we = p(null), ae = p(null), Ee = p(null), Vt = p([]), Te = p(!1), X = p(null), Ce = p(null), jt = p(0), qt = p(null), Kt = p({
155
+ }), Ke = Pr(), be = m(null), ct = m(null), Ue = m(null), Vt = m(null), le = m(null), He = m(!1), xe = m(null), Ye = m(null), z = m(null), Ae = m(null), we = m(null), ae = m(null), Ee = m(null), jt = m([]), Te = m(!1), X = m(null), Ce = m(null), qt = m(0), Kt = m(null), Ut = m({
155
156
  markerCount: 0,
156
157
  currentIndex: -1,
157
158
  canGoNext: !1
158
- }), st = p(!1), {
159
+ }), ut = m(!1), {
159
160
  currentElementList: R,
160
- stepElementLists: Ut,
161
+ stepElementLists: Ht,
161
162
  slideElementList: P,
162
163
  currentIndex: s,
163
164
  audioList: I,
@@ -165,12 +166,12 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
165
166
  currentAudioSequenceIndexes: $e,
166
167
  currentStepHasSpeakableElement: x,
167
168
  currentInteractionElement: y,
168
- canGoPrev: Fn,
169
+ canGoPrev: Ln,
169
170
  canGoNext: _,
170
- handlePrev: Ht,
171
- handleNext: M,
172
- handleGoTo: Yt
173
- } = Br(u), Pe = d(() => {
171
+ handlePrev: Yt,
172
+ handleNext: F,
173
+ handleGoTo: Gt
174
+ } = Dr(u), Pe = d(() => {
174
175
  if (!(s < 0))
175
176
  return P[s];
176
177
  }, [s, P]), se = d(
@@ -178,67 +179,67 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
178
179
  (e, t) => `${e.sequence_number ?? `${e.type}-${t}`}:${String(e.is_new ?? "")}`
179
180
  ),
180
181
  [R]
181
- ), Ln = P.filter(
182
+ ), Nn = P.filter(
182
183
  (e) => e.is_renderable !== !1
183
- ).length === 1, g = kn && (P.length > 0 || I.length > 0 || !!y), Nn = d(
184
+ ).length === 1, g = Fn && (P.length > 0 || I.length > 0 || !!y), Bn = d(
184
185
  () => ({
185
186
  enabled: ie,
186
187
  ownerId: Ke
187
188
  }),
188
189
  [ie, Ke]
189
190
  ), q = r(() => {
190
- !ie || !g || jr(Ke);
191
- }, [ie, Ke, g]), k = d(
191
+ !ie || !g || qr(Ke);
192
+ }, [ie, Ke, g]), O = d(
192
193
  () => $e.map((e) => I[e]?.audioKey).filter((e) => !!e),
193
194
  [I, $e]
194
- ), [Bn, Re] = m(!0), [ze, ce] = m(!1), [ct, Gt] = m(!0), [_e, $t] = m(!0), [w, K] = m(null), [Dn, zt] = m(null), [Vn, A] = m(!1), [jn, ut] = m(Mt), [F, dt] = m(!1), [qn, Xe] = m(!1), [Xt, Kn] = m(!0), [ft, mt] = m(!1), [h, pt] = m(), [ue, Je] = m(!1), [Jt, We] = m(!1), [E, yt] = m(
195
- rt
196
- ), [ht, gt] = m(!1), [
197
- Un,
195
+ ), [Dn, Re] = p(!0), [ze, ce] = p(!1), [dt, $t] = p(!0), [_e, zt] = p(!0), [w, K] = p(null), [Vn, Xt] = p(null), [jn, A] = p(!1), [qn, ft] = p(kt), [M, Xe] = p(!1), Je = m(/* @__PURE__ */ new Set()), [Kn, We] = p(!1), [Jt, Un] = p(!0), [mt, pt] = p(!1), [h, yt] = p(), [ue, Qe] = p(!1), [Wt, Ze] = p(!1), [E, ht] = p(
196
+ it
197
+ ), [gt, vt] = p(!1), [
198
+ Hn,
198
199
  Oe
199
- ] = m(0), [Wt, Hn] = m(!1), D = d(() => Mr(), []), [Qe, vt] = m(
200
- nt
201
- ), [Qt, St] = m(!1), [Yn, Zt] = m(
202
- () => D ? bn() : !1
203
- ), de = d(() => Wr(), []), {
200
+ ] = p(0), [Qt, Yn] = p(!1), D = d(() => kr(), []), [et, St] = p(
201
+ ot
202
+ ), [Zt, It] = p(!1), [Gn, en] = p(
203
+ () => D ? xn() : !1
204
+ ), de = d(() => eo(), []), {
204
205
  effectiveMobileViewMode: J,
205
206
  isImmersiveMobileFullscreen: fe,
206
- isNativeMobileFullscreen: en,
207
- shouldRotateFullscreenViewport: Gn
207
+ isNativeMobileFullscreen: tn,
208
+ shouldRotateFullscreenViewport: $n
208
209
  } = d(
209
- () => qr({
210
- hasManualMobileViewMode: Qt,
210
+ () => Kr({
211
+ hasManualMobileViewMode: Zt,
211
212
  isMobileDevice: D,
212
- mobileViewMode: Qe
213
+ mobileViewMode: et
213
214
  }),
214
215
  [
215
- Qt,
216
+ Zt,
216
217
  D,
217
- Yn,
218
- Qe
218
+ Gn,
219
+ et
219
220
  ]
220
- ), tn = p(J), T = g && j !== "hidden" && (j === "visible" || Bn), $n = fe && T, zn = fe && T, Xn = fe || en, nn = Wt && !D, Jn = r(
221
+ ), nn = m(J), T = g && j !== "hidden" && (j === "visible" || Dn), zn = fe && T, Xn = fe && T, Jn = fe || tn, rn = Qt && !D, Wn = r(
221
222
  (e) => {
222
- St(!0), vt(e);
223
+ It(!0), St(e);
223
224
  },
224
225
  []
225
- ), rn = r(() => {
226
- St(!1), vt(nt);
227
- }, []), Wn = r(() => {
228
- rn(), G?.onBack?.();
229
- }, [G, rn]), on = r((e) => {
230
- mt(e);
231
- }, []), ln = r(() => {
232
- mt((e) => !e);
226
+ ), on = r(() => {
227
+ It(!1), St(ot);
228
+ }, []), Qn = r(() => {
229
+ on(), G?.onBack?.();
230
+ }, [G, on]), ln = r((e) => {
231
+ pt(e);
232
+ }, []), an = r(() => {
233
+ pt((e) => !e);
233
234
  }, []), W = r(() => {
234
- yt(
235
- (e) => e.x === rt.x && e.y === rt.y ? e : rt
236
- ), gt(!1), Ee.current = null, ae.current = null;
237
- }, []), { mountedStepStates: Qn, currentMountedStateIndex: Zn } = d(() => {
235
+ ht(
236
+ (e) => e.x === it.x && e.y === it.y ? e : it
237
+ ), vt(!1), Ee.current = null, ae.current = null;
238
+ }, []), { mountedStepStates: Zn, currentMountedStateIndex: er } = d(() => {
238
239
  const e = [], t = /* @__PURE__ */ new Map();
239
- return Ut.forEach((n, i) => {
240
+ return Ht.forEach((n, i) => {
240
241
  const l = e.findIndex(
241
- (o) => vo(
242
+ (o) => bo(
242
243
  o.elementList,
243
244
  n
244
245
  )
@@ -255,17 +256,17 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
255
256
  mountedStepStates: e,
256
257
  currentMountedStateIndex: s >= 0 ? t.get(s) ?? -1 : -1
257
258
  };
258
- }, [s, Ut]), an = d(() => String(s), [s]), C = d(() => w ? I.findIndex(
259
+ }, [s, Ht]), sn = d(() => String(s), [s]), C = d(() => w ? I.findIndex(
259
260
  (e) => (e.audioKey ?? "") === w
260
- ) : -1, [I, w]), It = d(
261
+ ) : -1, [I, w]), bt = d(
261
262
  () => C >= 0 ? I[C] : void 0,
262
263
  [I, C]
263
- ), er = It?.element?.subtitle_cues ?? [], Ze = d(
264
- () => k[0] ?? "none",
265
- [k]
266
- ), bt = d(
264
+ ), tr = bt?.element?.subtitle_cues ?? [], tt = d(
265
+ () => O[0] ?? "none",
266
+ [O]
267
+ ), xt = d(
267
268
  () => ({
268
- currentElement: Xr({
269
+ currentElement: Qr({
269
270
  currentAudioIndex: C,
270
271
  currentAudioSequenceIndexes: $e,
271
272
  audioList: I,
@@ -274,9 +275,9 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
274
275
  }),
275
276
  currentIndex: s,
276
277
  currentStepElement: Pe,
277
- isActive: ft,
278
- setActive: on,
279
- toggleActive: ln
278
+ isActive: mt,
279
+ setActive: ln,
280
+ toggleActive: an
280
281
  }),
281
282
  [
282
283
  h,
@@ -285,21 +286,21 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
285
286
  $e,
286
287
  s,
287
288
  Pe,
288
- ft,
289
- on,
290
- ln
289
+ mt,
290
+ ln,
291
+ an
291
292
  ]
292
- ), xt = d(
293
- () => Jr(
293
+ ), At = d(
294
+ () => Zr(
294
295
  ne,
295
- bt
296
+ xt
296
297
  ),
297
- [bt, ne]
298
- ), tr = d(
298
+ [xt, ne]
299
+ ), nr = d(
299
300
  () => ({
300
- "--slide-player-custom-action-count": String(xt),
301
+ "--slide-player-custom-action-count": String(At),
301
302
  "--slide-player-mobile-control-count": String(
302
- xt + 4
303
+ At + 4
303
304
  ),
304
305
  "--slide-interaction-drag-x": `${E.x}px`,
305
306
  "--slide-interaction-drag-y": `${E.y}px`
@@ -307,24 +308,24 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
307
308
  [
308
309
  E.x,
309
310
  E.y,
310
- xt
311
+ At
311
312
  ]
312
- ), sn = k.length > 0, cn = d(() => y ? `${y.sequence_number ?? "none"}:${String(
313
+ ), cn = O.length > 0, un = d(() => y ? `${y.sequence_number ?? "none"}:${String(
313
314
  y.content ?? ""
314
315
  )}` : "none", [y]), Me = d(
315
- () => [an, cn].join("|"),
316
- [cn, an]
317
- ), nr = d(
316
+ () => [sn, un].join("|"),
317
+ [un, sn]
318
+ ), rr = d(
318
319
  () => [
319
320
  Me,
320
- It?.audioKey ?? "none",
321
+ bt?.audioKey ?? "none",
321
322
  String(C)
322
323
  ].join("|"),
323
- [C, It?.audioKey, Me]
324
- ), un = !!d(() => !Ze || Ze === "none" ? "" : I.find(
325
- (t) => t.audioKey === Ze
326
- )?.audioUrl?.trim() ?? "", [I, Ze]), Q = re && !!ne && ft, ke = d(
327
- () => Zr({
324
+ [C, bt?.audioKey, Me]
325
+ ), dn = !!d(() => !tt || tt === "none" ? "" : I.find(
326
+ (t) => t.audioKey === tt
327
+ )?.audioUrl?.trim() ?? "", [I, tt]), Q = re && !!ne && mt, ke = d(
328
+ () => no({
328
329
  canGoNext: _,
329
330
  currentAudioIndex: C,
330
331
  currentStepHasSpeakableElement: x,
@@ -336,8 +337,8 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
336
337
  y,
337
338
  x
338
339
  ]
339
- ), dn = d(
340
- () => no({
340
+ ), fn = d(
341
+ () => io({
341
342
  currentElementList: R,
342
343
  currentStepHasSpeakableElement: x,
343
344
  currentInteractionElement: y,
@@ -349,10 +350,10 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
349
350
  x,
350
351
  je
351
352
  ]
352
- ), fn = dn.delayMs, Fe = dn.usesImageOnlyDelay, At = d(
353
+ ), mn = fn.delayMs, Fe = fn.usesImageOnlyDelay, wt = d(
353
354
  () => `${s}:${se.join("|")}`,
354
355
  [s, se]
355
- ), [rr, or] = m(null), mn = !Fe || rr === At, V = r(() => {
356
+ ), [or, ir] = p(null), pn = !Fe || or === wt, V = r(() => {
356
357
  le.current !== null && (window.clearTimeout(le.current), le.current = null);
357
358
  }, []), L = r(() => {
358
359
  z.current !== null && (window.clearTimeout(z.current), z.current = null);
@@ -364,7 +365,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
364
365
  Ye.current !== null && (window.clearTimeout(Ye.current), Ye.current = null);
365
366
  }, []), B = r(
366
367
  (e = {}) => {
367
- me(), L(), N(), U(), K(null), de.reset(), A(!1), ut(Mt), dt(!1), Xe(!1), zt(null), e.preservePendingSubtitleJump || (Ce.current = null), pt(void 0), Je(!1), Oe(0);
368
+ me(), L(), N(), U(), K(null), de.reset(), A(!1), ft(kt), Xe(!1), Je.current = /* @__PURE__ */ new Set(), We(!1), Xt(null), e.preservePendingSubtitleJump || (Ce.current = null), yt(void 0), Qe(!1), Oe(0);
368
369
  },
369
370
  [
370
371
  me,
@@ -373,47 +374,50 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
373
374
  N,
374
375
  de
375
376
  ]
376
- ), et = r(
377
+ ), nt = r(
377
378
  (e) => {
378
- jt.current += 1, zt({
379
+ qt.current += 1, Xt({
379
380
  ...e,
380
- id: jt.current
381
+ id: qt.current
381
382
  });
382
383
  },
383
384
  []
384
385
  ), pe = r(() => {
385
- const e = k[0];
386
+ const e = $r(
387
+ O,
388
+ Je.current
389
+ );
386
390
  return e ? (K(e), !0) : !1;
387
- }, [k]), Le = r(() => {
388
- L(), N(), Je(!1), Oe(0), !pe() && _ && M();
391
+ }, [O]), Le = r(() => {
392
+ L(), N(), Qe(!1), Oe(0), !pe() && _ && F();
389
393
  }, [
390
394
  _,
391
395
  L,
392
396
  N,
393
- M,
397
+ F,
394
398
  pe
395
- ]), pn = r(
399
+ ]), yn = r(
396
400
  (e) => {
397
401
  if (N(), !e)
398
402
  return;
399
403
  const t = () => {
400
404
  Ae.current = null, Oe(
401
- co
402
- ), Je(!0), X.current = null;
405
+ mo
406
+ ), Qe(!0), X.current = null;
403
407
  };
404
408
  Ae.current = window.setTimeout(
405
409
  t,
406
- so
410
+ fo
407
411
  );
408
412
  },
409
413
  [N]
410
- ), wt = r(
414
+ ), Et = r(
411
415
  () => He.current || !!be.current?.querySelector(".slide-player__controls:hover"),
412
416
  []
413
417
  ), v = r(
414
418
  (e = ze) => {
415
- !g || j === "hidden" || (Re(!0), V(), !(j === "visible" || !e || Ie <= 0 || wt()) && (le.current = window.setTimeout(() => {
416
- if (wt()) {
419
+ !g || j === "hidden" || (Re(!0), V(), !(j === "visible" || !e || Ie <= 0 || Et()) && (le.current = window.setTimeout(() => {
420
+ if (Et()) {
417
421
  le.current = null;
418
422
  return;
419
423
  }
@@ -423,23 +427,23 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
423
427
  [
424
428
  V,
425
429
  ze,
426
- wt,
430
+ Et,
427
431
  Ie,
428
432
  j,
429
433
  g
430
434
  ]
431
- ), Ne = !!zr(y), ye = !!y && !Ne, ir = r((e) => {
432
- Gt(e);
435
+ ), Ne = !!Wr(y), ye = !!y && !Ne, lr = r((e) => {
436
+ $t(e);
433
437
  }, []), he = r(
434
438
  (e) => {
435
- e && Gt(e.shouldContinuePlayback);
439
+ e && $t(e.shouldContinuePlayback);
436
440
  },
437
441
  []
438
442
  );
439
443
  c(() => {
440
- $t(ct);
441
- }, [s, ct, re]), c(() => {
442
- re && mt(!1);
444
+ zt(dt);
445
+ }, [s, dt, re]), c(() => {
446
+ re && pt(!1);
443
447
  }, [s, re]), c(() => () => {
444
448
  me(), U(), V(), L(), N();
445
449
  }, [
@@ -457,7 +461,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
457
461
  const i = () => {
458
462
  n?.(), n = null;
459
463
  }, l = () => {
460
- e || (i(), U(), or(At));
464
+ e || (i(), U(), ir(wt));
461
465
  }, o = () => {
462
466
  if (e)
463
467
  return;
@@ -470,7 +474,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
470
474
  const b = Array.from(
471
475
  S.querySelectorAll("iframe")
472
476
  );
473
- if (b.length === 0 || to(b)) {
477
+ if (b.length === 0 || oo(b)) {
474
478
  l();
475
479
  return;
476
480
  }
@@ -478,7 +482,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
478
482
  e || (t !== null && window.cancelAnimationFrame(t), t = window.requestAnimationFrame(() => {
479
483
  t = null, o();
480
484
  }));
481
- }, Ct = (ee, ge, te) => {
485
+ }, Pt = (ee, ge, te) => {
482
486
  ee.addEventListener(ge, te, { once: !0 }), Z.push(
483
487
  () => ee.removeEventListener(ge, te)
484
488
  );
@@ -486,11 +490,11 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
486
490
  b.forEach((ee) => {
487
491
  const ge = ee.contentDocument;
488
492
  if (!ge || ge.readyState !== "complete") {
489
- Ct(ee, "load", De);
493
+ Pt(ee, "load", De);
490
494
  return;
491
495
  }
492
496
  Array.from(ge.images).filter((te) => !te.complete).forEach((te) => {
493
- Ct(te, "load", De), Ct(te, "error", De);
497
+ Pt(te, "load", De), Pt(te, "error", De);
494
498
  });
495
499
  }), n = () => {
496
500
  Z.forEach((ee) => ee());
@@ -500,28 +504,28 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
500
504
  t = null, o();
501
505
  }), Ye.current = window.setTimeout(() => {
502
506
  l();
503
- }, eo), () => {
507
+ }, ro), () => {
504
508
  e = !0, i(), U(), t !== null && window.cancelAnimationFrame(t);
505
509
  };
506
510
  }, [
507
511
  U,
508
512
  R,
509
513
  s,
510
- At,
514
+ wt,
511
515
  Fe
512
- ]), c(() => (lt?.(T), () => {
513
- lt?.(!1);
514
- }), [lt, T]), c(() => {
516
+ ]), c(() => (st?.(T), () => {
517
+ st?.(!1);
518
+ }), [st, T]), c(() => {
515
519
  T || (He.current = !1);
516
520
  }, [T]), c(() => {
517
- D || Qe === nt || (St(!1), vt(nt));
518
- }, [D, Qe]), c(() => {
521
+ D || et === ot || (It(!1), St(ot));
522
+ }, [D, et]), c(() => {
519
523
  if (!D) {
520
- Zt(!1);
524
+ en(!1);
521
525
  return;
522
526
  }
523
527
  const e = () => {
524
- Zt(bn()), W();
528
+ en(xn()), W();
525
529
  }, t = () => {
526
530
  W();
527
531
  };
@@ -529,7 +533,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
529
533
  "change",
530
534
  t
531
535
  );
532
- const n = kr(
536
+ const n = Fr(
533
537
  e
534
538
  );
535
539
  return () => {
@@ -539,13 +543,13 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
539
543
  );
540
544
  };
541
545
  }, [D, W]), c(() => {
542
- Ft?.(J);
543
- }, [J, Ft]), c(() => {
544
- tn.current !== J && W(), tn.current = J;
546
+ Lt?.(J);
547
+ }, [J, Lt]), c(() => {
548
+ nn.current !== J && W(), nn.current = J;
545
549
  }, [J, W]), c(() => {
546
- Lt?.(Pe, s);
547
- }, [s, Pe, Lt]), c(() => {
548
- const e = Kt.current, t = Yr(
550
+ Nt?.(Pe, s);
551
+ }, [s, Pe, Nt]), c(() => {
552
+ const e = Ut.current, t = Gr(
549
553
  {
550
554
  previousMarkerCount: e.markerCount,
551
555
  nextMarkerCount: P.length,
@@ -553,7 +557,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
553
557
  previousCanGoNext: e.canGoNext,
554
558
  nextCanGoNext: _,
555
559
  currentAudioKey: w,
556
- hasCompletedCurrentStepAudio: F,
560
+ hasCompletedCurrentStepAudio: M,
557
561
  hasResolvedCurrentInteraction: Ne,
558
562
  currentStepHasSpeakableElement: x,
559
563
  currentInteractionElement: y,
@@ -561,19 +565,19 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
561
565
  shouldUseSilentStepAutoAdvanceToggle: ke
562
566
  }
563
567
  );
564
- Kt.current = {
568
+ Ut.current = {
565
569
  markerCount: P.length,
566
570
  currentIndex: s,
567
571
  canGoNext: _
568
- }, t && M();
572
+ }, t && F();
569
573
  }, [
570
574
  _,
571
575
  w,
572
576
  s,
573
577
  y,
574
578
  x,
575
- M,
576
579
  F,
580
+ M,
577
581
  Ne,
578
582
  _e,
579
583
  ke,
@@ -598,12 +602,12 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
598
602
  if (typeof window > "u")
599
603
  return;
600
604
  const e = (t) => {
601
- t.origin === window.location.origin && Rr(t.data) && t.data.eventType === "click" && g && (q(), ce(!0), v(!0));
605
+ t.origin === window.location.origin && _r(t.data) && t.data.eventType === "click" && g && (q(), ce(!0), v(!0));
602
606
  };
603
607
  return window.addEventListener("message", e), () => {
604
608
  window.removeEventListener("message", e);
605
609
  };
606
- }, [q, g, v]), Dr({
610
+ }, [q, g, v]), Vr({
607
611
  sectionRef: be,
608
612
  enabled: g,
609
613
  keyboardShortcutsEnabled: ie,
@@ -616,14 +620,14 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
616
620
  B();
617
621
  return;
618
622
  }
619
- const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = Gr({
620
- previousResetKey: qt.current,
623
+ const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = Xr({
624
+ previousResetKey: Kt.current,
621
625
  nextResetKey: Me,
622
626
  currentAudioKey: w,
623
- hasCompletedCurrentStepAudio: F
627
+ hasCompletedCurrentStepAudio: M
624
628
  });
625
- qt.current = Me;
626
- const n = X.current === s && !!y, i = Ur({
629
+ Kt.current = Me;
630
+ const n = X.current === s && !!y, i = Hr({
627
631
  hasInteraction: !!y,
628
632
  shouldBlockPlaybackForInteraction: ye,
629
633
  shouldOpenInteractionOverlayAfterAudio: n,
@@ -634,35 +638,35 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
634
638
  if (e && B({
635
639
  preservePendingSubtitleJump: o
636
640
  }), !(R.length === 0 && !y) && !Q) {
637
- if (l?.slideIndex === s && An({
641
+ if (l?.slideIndex === s && wn({
638
642
  currentIndex: s,
639
643
  resolvedCurrentInteractionElement: h,
640
644
  slideElementList: P,
641
645
  targetSlideIndex: l.slideIndex
642
646
  })) {
643
- Ce.current = null, st.current = !0, K(l.audioKey), et({
647
+ Ce.current = null, ut.current = !0, K(l.audioKey), nt({
644
648
  audioIndex: l.audioIndex,
645
649
  timeMs: l.timeMs
646
650
  });
647
651
  return;
648
652
  }
649
- if (y && pt(y), i) {
650
- pn(y);
653
+ if (y && yt(y), i) {
654
+ yn(y);
651
655
  return;
652
656
  }
653
657
  if (N(), X.current = null, !!t && !pe()) {
654
658
  if (x) {
655
- if (O) {
659
+ if (k) {
656
660
  A(!1);
657
661
  return;
658
662
  }
659
663
  A(!0);
660
664
  return;
661
665
  }
662
- if (_ && !(ke && !_e) && !(Fe && !mn))
666
+ if (_ && !(ke && !_e) && !(Fe && !pn))
663
667
  return xe.current = window.setTimeout(() => {
664
- xe.current = null, M();
665
- }, fn), () => {
668
+ xe.current = null, F();
669
+ }, mn), () => {
666
670
  me();
667
671
  };
668
672
  }
@@ -678,60 +682,65 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
678
682
  Me,
679
683
  x,
680
684
  Fe,
685
+ pn,
681
686
  mn,
682
- fn,
683
- M,
684
687
  F,
685
- O,
688
+ M,
689
+ k,
686
690
  _e,
687
691
  Ne,
688
692
  ye,
689
693
  N,
690
694
  B,
691
- et,
692
- pn,
695
+ nt,
696
+ yn,
693
697
  g,
694
698
  P,
695
699
  pe,
696
700
  Q,
697
701
  ke
698
702
  ]), c(() => {
699
- if (O || Q || !x || ye) {
703
+ if (k || Q || !x || ye) {
700
704
  A(!1);
701
705
  return;
702
706
  }
703
- if (F) {
707
+ if (M) {
704
708
  A(!1);
705
709
  return;
706
710
  }
707
- if (sn) {
711
+ if (cn) {
708
712
  A(!1);
709
713
  return;
710
714
  }
711
- ut("waitingForAudio"), A(!0);
715
+ ft("waitingForAudio"), A(!0);
712
716
  }, [
713
- sn,
717
+ cn,
714
718
  x,
715
- F,
716
- O,
719
+ M,
720
+ k,
717
721
  Q,
718
722
  ye
719
723
  ]), c(() => {
720
- const e = st.current;
721
- st.current = !1, $r({
724
+ M && zr(
725
+ O,
726
+ Je.current
727
+ ) && Xe(!1);
728
+ }, [O, M]), c(() => {
729
+ const e = ut.current;
730
+ ut.current = !1, Jr({
722
731
  currentAudioKey: w,
723
- currentAudioSequenceLength: k.length,
732
+ currentAudioSequenceLength: O.length,
724
733
  currentStepHasSpeakableElement: x,
725
- hasCompletedCurrentStepAudio: F,
734
+ hasCompletedCurrentStepAudio: M,
726
735
  shouldBlockPlaybackForInteraction: ye,
727
736
  shouldPausePlaybackForCustomAction: Q,
728
737
  shouldSkipDefaultAudioStart: e
729
738
  }) && pe();
730
739
  }, [
731
740
  w,
732
- k,
741
+ O,
733
742
  x,
734
- F,
743
+ M,
735
744
  Q,
736
745
  ye,
737
746
  pe
@@ -740,45 +749,45 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
740
749
  }, [C, w]), c(() => {
741
750
  C >= 0 || de.reset();
742
751
  }, [C, de]), c(() => {
743
- Xe(!1);
744
- }, [nr]);
752
+ We(!1);
753
+ }, [rr]);
745
754
  const {
746
- interactionDefaults: yn,
747
- interactionDefaultSelectedValues: lr,
748
- hasResolvedInteractionInput: hn,
749
- isInteractionReadonly: ar,
750
- shouldAutoContinueInteraction: gn
755
+ interactionDefaults: hn,
756
+ interactionDefaultSelectedValues: ar,
757
+ hasResolvedInteractionInput: gn,
758
+ isInteractionReadonly: sr,
759
+ shouldAutoContinueInteraction: vn
751
760
  } = d(
752
- () => Qr(h, {
761
+ () => to(h, {
753
762
  interactionDefaultValueOptions: qe
754
763
  }),
755
764
  [h, qe]
756
- ), sr = !!h?.readonly || ar, Be = Kr({
765
+ ), cr = !!h?.readonly || sr, Be = Ur({
757
766
  hasActiveInteraction: !!h,
758
767
  isInteractionOverlayOpen: ue
759
- }), cr = r(
768
+ }), ur = r(
760
769
  (e) => {
761
770
  const n = [
762
771
  ...e.selectedValues ?? [],
763
772
  e.inputText?.trim() ?? "",
764
773
  e.buttonText?.trim() ?? ""
765
774
  ].filter(Boolean).join(", ");
766
- pt((i) => !i || !n ? i : {
775
+ yt((i) => !i || !n ? i : {
767
776
  ...i,
768
777
  user_input: n
769
- }), kt?.(e, h), Le();
778
+ }), Ft?.(e, h), Le();
770
779
  },
771
- [h, Le, kt]
780
+ [h, Le, Ft]
772
781
  );
773
782
  c(() => {
774
783
  const e = () => {
775
- Hn(document.fullscreenElement === be.current);
784
+ Yn(document.fullscreenElement === be.current);
776
785
  };
777
786
  return e(), document.addEventListener("fullscreenchange", e), () => {
778
787
  document.removeEventListener("fullscreenchange", e);
779
788
  };
780
789
  }, []), c(() => {
781
- h && ue || We(!1);
790
+ h && ue || Ze(!1);
782
791
  }, [h, ue]), c(() => {
783
792
  W();
784
793
  }, [h, W]), c(() => {
@@ -794,7 +803,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
794
803
  e.getBoundingClientRect().height
795
804
  );
796
805
  Oe(
797
- i + uo
806
+ i + po
798
807
  );
799
808
  };
800
809
  if (t(), typeof ResizeObserver > "u")
@@ -807,62 +816,62 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
807
816
  };
808
817
  }, [Be]), c(() => {
809
818
  if (L(), !!ue) {
810
- if (gn)
819
+ if (vn)
811
820
  return z.current = window.setTimeout(() => {
812
821
  z.current = null, Le();
813
- }, wn), () => {
822
+ }, En), () => {
814
823
  L();
815
824
  };
816
- if (!(Jt || !hn))
825
+ if (!(Wt || !gn))
817
826
  return z.current = window.setTimeout(() => {
818
827
  z.current = null, Le();
819
- }, wn), () => {
828
+ }, En), () => {
820
829
  L();
821
830
  };
822
831
  }
823
832
  }, [
824
833
  L,
825
834
  Le,
826
- Jt,
827
- hn,
835
+ Wt,
836
+ gn,
828
837
  ue,
829
- gn
838
+ vn
830
839
  ]);
831
- const ur = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ a.jsx(
832
- In,
840
+ const dr = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ a.jsx(
841
+ bn,
833
842
  {
834
843
  className: "content-render-iframe",
835
- disableLoadingOverlay: O,
844
+ disableLoadingOverlay: k,
836
845
  hideFullScreen: !0,
837
846
  locale: f,
838
847
  mode: "blackboard",
839
848
  replaceRootScreenHeightWithFull: t.replaceRootScreenHeightWithFull,
840
849
  type: "sandbox",
841
850
  content: e.content,
842
- enableScaling: Pn
851
+ enableScaling: Rn
843
852
  }
844
853
  ) : /* @__PURE__ */ a.jsx(
845
- In,
854
+ bn,
846
855
  {
847
856
  className: "content-render-iframe",
848
- disableLoadingOverlay: O,
857
+ disableLoadingOverlay: k,
849
858
  hideFullScreen: !0,
850
859
  locale: f,
851
860
  mode: "blackboard",
852
861
  type: "markdown",
853
862
  content: e.content
854
863
  }
855
- ) : null, dr = (e = [], t = !1) => {
864
+ ) : null, fr = (e = [], t = !1) => {
856
865
  if (e.length === 0)
857
866
  return null;
858
867
  const n = e.filter(
859
868
  (o) => o.is_renderable !== !1
860
- ).length, i = t && Rn ? Hr(e) : "disabled", l = e.reduce(
869
+ ).length, i = t && _n ? Yr(e) : "disabled", l = e.reduce(
861
870
  (o, S, b) => S.is_renderable !== !1 ? b : o,
862
871
  -1
863
872
  );
864
873
  return /* @__PURE__ */ a.jsx(
865
- Lr,
874
+ Nr,
866
875
  {
867
876
  className: "slide-stage__content flex w-full flex-col gap-4",
868
877
  mode: i,
@@ -871,14 +880,14 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
871
880
  return /* @__PURE__ */ a.jsx(
872
881
  "div",
873
882
  {
874
- ref: t && S === l ? Dt : null,
883
+ ref: t && S === l ? Vt : null,
875
884
  "aria-hidden": b || void 0,
876
885
  className: ve(
877
886
  "w-full shrink-0",
878
887
  n === 1 && o.is_renderable !== !1 && "slide-element--single",
879
888
  b ? "pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0" : o.is_renderable === !1 && "hidden"
880
889
  ),
881
- children: ur(o, {
890
+ children: dr(o, {
882
891
  replaceRootScreenHeightWithFull: n === 1 && o.type === "html" && o.is_renderable !== !1
883
892
  })
884
893
  },
@@ -887,7 +896,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
887
896
  })
888
897
  }
889
898
  );
890
- }, fr = r(() => {
899
+ }, mr = r(() => {
891
900
  const e = be.current;
892
901
  if (e) {
893
902
  if (document.fullscreenElement === e) {
@@ -898,14 +907,14 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
898
907
  e.requestFullscreen?.().catch(() => {
899
908
  });
900
909
  }
901
- }, []), vn = r(() => {
910
+ }, []), Sn = r(() => {
902
911
  const e = Ue.current;
903
912
  e && e.scrollTo({
904
913
  top: e.scrollHeight,
905
914
  behavior: "smooth"
906
915
  });
907
- }, []), Et = r(
908
- (e) => An({
916
+ }, []), Tt = r(
917
+ (e) => wn({
909
918
  currentIndex: s,
910
919
  resolvedCurrentInteractionElement: h,
911
920
  slideElementList: P,
@@ -917,91 +926,92 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
917
926
  s,
918
927
  P
919
928
  ]
920
- ), mr = r(
929
+ ), pr = r(
921
930
  (e, t) => {
922
931
  const i = I[e.audioIndex]?.audioKey, l = Ge[e.audioIndex];
923
- return !i || l == null || !Et(e) ? !1 : (he(t), X.current = null, A(!1), dt(!1), Xe(!1), Pt(t) && (ce(!0), v(!0)), l === s ? (Ce.current = null, B(), K(i), et(e), !0) : (Te.current = !0, B(), Ce.current = {
932
+ return !i || l == null || !Tt(e) ? !1 : (he(t), X.current = null, A(!1), Xe(!1), We(!1), Rt(t) && (ce(!0), v(!0)), l === s ? (Ce.current = null, B(), K(i), nt(e), !0) : (Te.current = !0, B(), Ce.current = {
924
933
  audioIndex: e.audioIndex,
925
934
  audioKey: i,
926
935
  slideIndex: l,
927
936
  timeMs: e.timeMs
928
- }, Yt(l), !0));
937
+ }, Gt(l), !0));
929
938
  },
930
939
  [
931
940
  I,
932
941
  Ge,
933
- Et,
942
+ Tt,
934
943
  s,
935
- Yt,
936
- et,
944
+ Gt,
945
+ nt,
937
946
  B,
938
947
  v,
939
948
  he
940
949
  ]
941
- ), pr = r(
950
+ ), yr = r(
942
951
  (e) => {
943
- he(e), Te.current = !0, X.current = null, A(!1), Pt(e) && (ce(!0), v(!0)), B(), Ht();
952
+ he(e), Te.current = !0, X.current = null, A(!1), Rt(e) && (ce(!0), v(!0)), B(), Yt();
944
953
  },
945
954
  [
946
- Ht,
955
+ Yt,
947
956
  B,
948
957
  v,
949
958
  he
950
959
  ]
951
- ), yr = r(
960
+ ), hr = r(
952
961
  (e) => {
953
- he(e), Te.current = !0, X.current = null, A(!1), Pt(e) && (ce(!0), v(!0)), B(), M();
962
+ he(e), Te.current = !0, X.current = null, A(!1), Rt(e) && (ce(!0), v(!0)), B(), F();
954
963
  },
955
964
  [
956
- M,
965
+ F,
957
966
  B,
958
967
  v,
959
968
  he
960
969
  ]
961
- ), hr = r(
970
+ ), gr = r(
962
971
  ({
963
972
  loading: e,
964
973
  reason: t
965
974
  }) => {
966
- if (O) {
975
+ if (k) {
967
976
  A(!1);
968
977
  return;
969
978
  }
970
- if (!x || F) {
979
+ if (!x || M) {
971
980
  A(!1);
972
981
  return;
973
982
  }
974
- e && t && ut(t), A(go(t, e));
983
+ e && t && ft(t), A(Io(t, e));
975
984
  },
976
985
  [
977
986
  x,
978
- F,
979
- O
987
+ M,
988
+ k
980
989
  ]
981
990
  );
982
991
  c(() => {
983
- O && A(!1);
984
- }, [O]);
985
- const gr = r(
992
+ k && A(!1);
993
+ }, [k]);
994
+ const vr = r(
986
995
  (e) => {
987
996
  const t = I[e]?.audioKey;
988
997
  if (!t || !w || t !== w)
989
998
  return;
990
- const n = k.findIndex(
999
+ Je.current.add(t);
1000
+ const n = O.findIndex(
991
1001
  (o) => o === t
992
1002
  );
993
1003
  if (n < 0) {
994
1004
  K(null);
995
1005
  return;
996
1006
  }
997
- const i = n + 1, l = k[i];
1007
+ const i = n + 1, l = O[i];
998
1008
  if (l) {
999
1009
  K(l);
1000
1010
  return;
1001
1011
  }
1002
- if (K(null), dt(!0), A(!1), _) {
1012
+ if (K(null), Xe(!0), A(!1), _) {
1003
1013
  const o = s + 1, S = P[o];
1004
- un && S?.type === "interaction" && (X.current = o), M();
1014
+ dn && S?.type === "interaction" && (X.current = o), F();
1005
1015
  return;
1006
1016
  }
1007
1017
  },
@@ -1010,25 +1020,25 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1010
1020
  _,
1011
1021
  s,
1012
1022
  w,
1013
- k,
1014
- M,
1015
- un,
1023
+ O,
1024
+ F,
1025
+ dn,
1016
1026
  P
1017
1027
  ]
1018
- ), vr = r(() => {
1019
- h && Je((e) => !e);
1020
- }, [h]), Sr = r(() => {
1028
+ ), Sr = r(() => {
1029
+ h && Qe((e) => !e);
1030
+ }, [h]), Ir = r(() => {
1021
1031
  He.current = !0, V(), g && Re(!0);
1022
- }, [V, g]), Ir = r(() => {
1032
+ }, [V, g]), br = r(() => {
1023
1033
  He.current = !1, v(!0);
1024
- }, [v]), Tt = r(
1034
+ }, [v]), Ct = r(
1025
1035
  (e) => {
1026
1036
  e.stopPropagation(), T && v(!0);
1027
1037
  },
1028
1038
  [T, v]
1029
- ), tt = r(
1039
+ ), rt = r(
1030
1040
  (e, t) => {
1031
- const n = at.current;
1041
+ const n = ct.current;
1032
1042
  if (!n)
1033
1043
  return null;
1034
1044
  const i = e.getBoundingClientRect(), l = n.getBoundingClientRect();
@@ -1041,14 +1051,14 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1041
1051
  },
1042
1052
  []
1043
1053
  );
1044
- fo(() => {
1054
+ yo(() => {
1045
1055
  const e = we.current;
1046
1056
  if (!Be || !e) {
1047
1057
  ae.current = null;
1048
1058
  return;
1049
1059
  }
1050
1060
  const t = ae.current, n = e.getBoundingClientRect();
1051
- if (!t || ht) {
1061
+ if (!t || gt) {
1052
1062
  ae.current = {
1053
1063
  left: n.left,
1054
1064
  top: n.top
@@ -1056,7 +1066,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1056
1066
  return;
1057
1067
  }
1058
1068
  const i = t.left - n.left, l = t.top - n.top;
1059
- if (!En(i) && !En(l)) {
1069
+ if (!Tn(i) && !Tn(l)) {
1060
1070
  ae.current = {
1061
1071
  left: n.left,
1062
1072
  top: n.top
@@ -1066,34 +1076,34 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1066
1076
  const o = {
1067
1077
  x: E.x + i,
1068
1078
  y: E.y + l
1069
- }, S = tt(
1079
+ }, S = rt(
1070
1080
  e,
1071
1081
  E
1072
- ), b = po(
1073
- S ? xn(o, S) : o
1082
+ ), b = go(
1083
+ S ? An(o, S) : o
1074
1084
  );
1075
1085
  ae.current = {
1076
1086
  left: n.left + b.x - E.x,
1077
1087
  top: n.top + b.y - E.y
1078
- }, Tn(
1088
+ }, Cn(
1079
1089
  b,
1080
1090
  E
1081
- ) || yt(
1082
- (Z) => Tn(Z, b) ? Z : b
1091
+ ) || ht(
1092
+ (Z) => Cn(Z, b) ? Z : b
1083
1093
  );
1084
1094
  }, [
1085
- tt,
1095
+ rt,
1086
1096
  E,
1087
- ht,
1097
+ gt,
1088
1098
  T,
1089
1099
  g,
1090
1100
  Be
1091
1101
  ]);
1092
- const br = r(
1102
+ const xr = r(
1093
1103
  (e) => {
1094
- if (Tt(e), e.button !== 0 || !e.currentTarget.isConnected || !we.current)
1104
+ if (Ct(e), e.button !== 0 || !e.currentTarget.isConnected || !we.current)
1095
1105
  return;
1096
- const t = tt(
1106
+ const t = rt(
1097
1107
  we.current,
1098
1108
  E
1099
1109
  );
@@ -1103,18 +1113,18 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1103
1113
  startClientY: e.clientY,
1104
1114
  startOffset: E,
1105
1115
  bounds: t
1106
- }, gt(!0));
1116
+ }, vt(!0));
1107
1117
  },
1108
1118
  [
1109
- tt,
1119
+ rt,
1110
1120
  E,
1111
- Tt
1121
+ Ct
1112
1122
  ]
1113
- ), xr = r(
1123
+ ), Ar = r(
1114
1124
  (e) => {
1115
1125
  const t = Ee.current;
1116
- !t || t.pointerId !== e.pointerId || (e.preventDefault(), e.stopPropagation(), yt(
1117
- xn(
1126
+ !t || t.pointerId !== e.pointerId || (e.preventDefault(), e.stopPropagation(), ht(
1127
+ An(
1118
1128
  {
1119
1129
  x: t.startOffset.x + e.clientX - t.startClientX,
1120
1130
  y: t.startOffset.y + e.clientY - t.startClientY
@@ -1124,33 +1134,33 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1124
1134
  ));
1125
1135
  },
1126
1136
  []
1127
- ), Sn = r(
1137
+ ), In = r(
1128
1138
  (e) => {
1129
1139
  const t = Ee.current;
1130
- !t || t.pointerId !== e.pointerId || (e.stopPropagation(), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ee.current = null, gt(!1));
1140
+ !t || t.pointerId !== e.pointerId || (e.stopPropagation(), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ee.current = null, vt(!1));
1131
1141
  },
1132
1142
  []
1133
- ), Ar = r(
1134
- (e) => {
1135
- q(), Nt?.(e);
1136
- },
1137
- [q, Nt]
1138
1143
  ), wr = r(
1139
1144
  (e) => {
1140
1145
  q(), Bt?.(e);
1141
1146
  },
1142
1147
  [q, Bt]
1143
- ), Er = r(() => {
1148
+ ), Er = r(
1149
+ (e) => {
1150
+ q(), Dt?.(e);
1151
+ },
1152
+ [q, Dt]
1153
+ ), Tr = r(() => {
1144
1154
  ce(!0), v(!0);
1145
1155
  }, [v]);
1146
1156
  return c(() => {
1147
- const e = Vt.current, i = (e.length > 0 && e.length < se.length && e.every((o, S) => o === se[S]) ? R.slice(e.length) : []).some(
1157
+ const e = jt.current, i = (e.length > 0 && e.length < se.length && e.every((o, S) => o === se[S]) ? R.slice(e.length) : []).some(
1148
1158
  (o) => o.is_new === !1
1149
1159
  );
1150
- if (Vt.current = se, !i)
1160
+ if (jt.current = se, !i)
1151
1161
  return;
1152
1162
  const l = window.requestAnimationFrame(() => {
1153
- const o = Ue.current, S = Dt.current;
1163
+ const o = Ue.current, S = Vt.current;
1154
1164
  if (!o || !S)
1155
1165
  return;
1156
1166
  const b = o.getBoundingClientRect(), Z = S.getBoundingClientRect(), De = o.scrollTop + (Z.top - b.top);
@@ -1166,29 +1176,29 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1166
1176
  if (!Te.current || (Te.current = !1, R.length === 0))
1167
1177
  return;
1168
1178
  const e = window.requestAnimationFrame(() => {
1169
- vn();
1179
+ Sn();
1170
1180
  });
1171
1181
  return () => {
1172
1182
  window.cancelAnimationFrame(e);
1173
1183
  };
1174
- }, [R, vn]), /* @__PURE__ */ a.jsxs(
1184
+ }, [R, Sn]), /* @__PURE__ */ a.jsxs(
1175
1185
  "section",
1176
1186
  {
1177
1187
  ref: be,
1178
1188
  className: ve(
1179
1189
  "relative h-full w-full",
1180
1190
  D && "slide--mobile-device",
1181
- nn && "slide--browser-fullscreen",
1191
+ rn && "slide--browser-fullscreen",
1182
1192
  fe && "slide--mobile-landscape",
1183
- en && "slide--mobile-landscape-native",
1184
- _n
1193
+ tn && "slide--mobile-landscape-native",
1194
+ On
1185
1195
  ),
1186
- onClick: Er,
1187
- onFocusCapture: wr,
1188
- onPointerDown: Ar,
1189
- ...On,
1196
+ onClick: Tr,
1197
+ onFocusCapture: Er,
1198
+ onPointerDown: wr,
1199
+ ...Mn,
1190
1200
  children: [
1191
- Xn ? /* @__PURE__ */ a.jsx(
1201
+ Jn ? /* @__PURE__ */ a.jsx(
1192
1202
  "div",
1193
1203
  {
1194
1204
  "aria-hidden": "true",
@@ -1198,23 +1208,23 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1198
1208
  /* @__PURE__ */ a.jsxs(
1199
1209
  "div",
1200
1210
  {
1201
- ref: at,
1211
+ ref: ct,
1202
1212
  className: ve(
1203
1213
  "slide__viewport relative h-full min-h-0 w-full",
1204
1214
  fe && "slide__viewport--mobile-landscape",
1205
- fe && !Gn && "slide__viewport--mobile-landscape-native"
1215
+ fe && !$n && "slide__viewport--mobile-landscape-native"
1206
1216
  ),
1207
1217
  children: [
1208
- $n ? /* @__PURE__ */ a.jsxs("div", { className: "slide-landscape-header", children: [
1218
+ zn ? /* @__PURE__ */ a.jsxs("div", { className: "slide-landscape-header", children: [
1209
1219
  /* @__PURE__ */ a.jsx(
1210
1220
  "button",
1211
1221
  {
1212
1222
  "aria-label": G?.backAriaLabel ?? $.fullscreenBackAriaLabel,
1213
1223
  className: "slide-landscape-header__back",
1214
- onClick: Wn,
1224
+ onClick: Qn,
1215
1225
  type: "button",
1216
1226
  children: /* @__PURE__ */ a.jsx(
1217
- lo,
1227
+ co,
1218
1228
  {
1219
1229
  className: "slide-landscape-header__icon h-6 w-6",
1220
1230
  strokeWidth: 2.25
@@ -1229,12 +1239,12 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1229
1239
  {
1230
1240
  className: ve(
1231
1241
  "h-full min-h-0 w-full",
1232
- zn && "slide__viewport-content--with-header",
1233
- Ln ? "slide-content--single" : "grid gap-4"
1242
+ Xn && "slide__viewport-content--with-header",
1243
+ Nn ? "slide-content--single" : "grid gap-4"
1234
1244
  ),
1235
- children: R.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ a.jsx("div", { ref: Ue, className: "slide-stage__layer w-full", children: Qn.map(
1245
+ children: R.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ a.jsx("div", { ref: Ue, className: "slide-stage__layer w-full", children: Zn.map(
1236
1246
  (e, t) => {
1237
- const n = t === Zn;
1247
+ const n = t === er;
1238
1248
  return /* @__PURE__ */ a.jsx(
1239
1249
  "div",
1240
1250
  {
@@ -1242,7 +1252,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1242
1252
  "aria-hidden": !n || void 0,
1243
1253
  className: "w-full h-full",
1244
1254
  style: { display: n ? void 0 : "none" },
1245
- children: dr(
1255
+ children: fr(
1246
1256
  e.elementList,
1247
1257
  n
1248
1258
  )
@@ -1253,25 +1263,25 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1253
1263
  ) }) }) : null
1254
1264
  }
1255
1265
  ),
1256
- Vn ? /* @__PURE__ */ a.jsx(
1257
- _r,
1266
+ jn ? /* @__PURE__ */ a.jsx(
1267
+ Or,
1258
1268
  {
1259
- message: yo(
1260
- Mn,
1261
- jn
1269
+ message: vo(
1270
+ kn,
1271
+ qn
1262
1272
  ),
1263
1273
  className: "absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2"
1264
1274
  }
1265
1275
  ) : null,
1266
1276
  /* @__PURE__ */ a.jsx(
1267
- Nr,
1277
+ Br,
1268
1278
  {
1269
- extraBottomOffset: Un,
1279
+ extraBottomOffset: Hn,
1270
1280
  hasPlayerGap: T,
1271
- isEnabled: Xt && qn,
1281
+ isEnabled: Jt && Kn,
1272
1282
  isPlayerHidden: g && !T,
1273
1283
  playbackTimeStore: de,
1274
- subtitleCues: er
1284
+ subtitleCues: tr
1275
1285
  }
1276
1286
  ),
1277
1287
  Be ? /* @__PURE__ */ a.jsx(
@@ -1282,93 +1292,93 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1282
1292
  className: ve(
1283
1293
  "slide-interaction-overlay",
1284
1294
  T && g ? "slide-interaction-overlay--with-player" : "slide-interaction-overlay--standalone",
1285
- ht && "slide-interaction-overlay--dragging"
1295
+ gt && "slide-interaction-overlay--dragging"
1286
1296
  ),
1287
- onClick: Tt,
1297
+ onClick: Ct,
1288
1298
  onPointerDownCapture: (e) => {
1289
- _t(e.target) && We(!0);
1299
+ Ot(e.target) && Ze(!0);
1290
1300
  },
1291
1301
  onFocusCapture: (e) => {
1292
- _t(e.target) && We(!0);
1302
+ Ot(e.target) && Ze(!0);
1293
1303
  },
1294
1304
  onInputCapture: (e) => {
1295
- _t(e.target) && We(!0);
1305
+ Ot(e.target) && Ze(!0);
1296
1306
  },
1297
- style: tr,
1307
+ style: nr,
1298
1308
  children: /* @__PURE__ */ a.jsx(
1299
- Cn,
1309
+ Pn,
1300
1310
  {
1301
1311
  content: String(h?.content ?? ""),
1302
1312
  locale: f,
1303
- defaultButtonText: yn.buttonText ?? "",
1304
- defaultInputText: yn.inputText ?? "",
1305
- defaultSelectedValues: lr,
1313
+ defaultButtonText: hn.buttonText ?? "",
1314
+ defaultInputText: hn.inputText ?? "",
1315
+ defaultSelectedValues: ar,
1306
1316
  confirmButtonText: oe?.confirmButtonText ?? $.interactionTexts.confirmButtonText,
1307
1317
  copyButtonText: oe?.copyButtonText ?? $.interactionTexts.copyButtonText,
1308
1318
  copiedButtonText: oe?.copiedButtonText ?? $.interactionTexts.copiedButtonText,
1309
- onSend: cr,
1310
- onDragHandlePointerCancel: Sn,
1311
- onDragHandlePointerDown: br,
1312
- onDragHandlePointerMove: xr,
1313
- onDragHandlePointerUp: Sn,
1314
- readonly: sr,
1315
- title: oe?.title ?? ot ?? $.interactionTexts.title
1319
+ onSend: ur,
1320
+ onDragHandlePointerCancel: In,
1321
+ onDragHandlePointerDown: xr,
1322
+ onDragHandlePointerMove: Ar,
1323
+ onDragHandlePointerUp: In,
1324
+ readonly: cr,
1325
+ title: oe?.title ?? lt ?? $.interactionTexts.title
1316
1326
  }
1317
1327
  )
1318
1328
  }
1319
1329
  ) : null,
1320
1330
  g ? /* @__PURE__ */ a.jsx(
1321
- Vr.Provider,
1331
+ jr.Provider,
1322
1332
  {
1323
- value: Nn,
1333
+ value: Bn,
1324
1334
  children: /* @__PURE__ */ a.jsx(
1325
- Fr,
1335
+ Lr,
1326
1336
  {
1327
1337
  audioList: I,
1328
1338
  className: ve(
1329
1339
  "absolute left-1/2 z-[2] -translate-x-1/2",
1330
- nn ? "bottom-3" : "-bottom-3",
1340
+ rn ? "bottom-3" : "-bottom-3",
1331
1341
  Y,
1332
1342
  !T && "pointer-events-none opacity-0"
1333
1343
  ),
1334
1344
  currentAudioIndex: C,
1335
- defaultPlaying: ct,
1345
+ defaultPlaying: dt,
1336
1346
  enableKeyboardShortcuts: ie,
1337
1347
  isPlaybackPaused: Q,
1338
1348
  isAutoAdvanceEnabled: _e,
1339
1349
  locale: f,
1340
1350
  hasInteraction: !!h,
1341
1351
  isInteractionOpen: ue,
1342
- isSubtitleEnabled: Xt,
1343
- onAutoAdvanceToggle: $t,
1344
- onLoadingChange: hr,
1352
+ isSubtitleEnabled: Jt,
1353
+ onAutoAdvanceToggle: zt,
1354
+ onLoadingChange: gr,
1345
1355
  onPlaybackStarted: () => {
1346
- Xe(!0);
1356
+ We(!0);
1347
1357
  },
1348
- onPlaybackPreferenceChange: ir,
1358
+ onPlaybackPreferenceChange: lr,
1349
1359
  onPlaybackTimeChange: de.setTime,
1350
1360
  onSubtitleToggle: () => {
1351
- Kn((e) => !e);
1361
+ Un((e) => !e);
1352
1362
  },
1353
1363
  nextDisabled: !_,
1354
- onEnded: gr,
1355
- onFullscreen: fr,
1356
- isFullscreen: Wt,
1364
+ onEnded: vr,
1365
+ onFullscreen: mr,
1366
+ isFullscreen: Qt,
1357
1367
  mobileViewMode: J,
1358
- settingsPortalContainer: at.current,
1359
- onMobileViewModeChange: Jn,
1360
- onControlsPointerEnter: Sr,
1361
- onControlsPointerLeave: Ir,
1362
- onInteractionToggle: vr,
1363
- onNext: yr,
1364
- onPrev: pr,
1365
- onSubtitleJump: mr,
1366
- canJumpToSubtitleTarget: Et,
1367
- prevDisabled: !Fn,
1368
+ settingsPortalContainer: ct.current,
1369
+ onMobileViewModeChange: Wn,
1370
+ onControlsPointerEnter: Ir,
1371
+ onControlsPointerLeave: br,
1372
+ onInteractionToggle: Sr,
1373
+ onNext: hr,
1374
+ onPrev: yr,
1375
+ onSubtitleJump: pr,
1376
+ canJumpToSubtitleTarget: Tt,
1377
+ prevDisabled: !Ln,
1368
1378
  showControls: T,
1369
- subtitleSeekRequest: Dn,
1370
- texts: it,
1371
- customActionContext: bt,
1379
+ subtitleSeekRequest: Vn,
1380
+ texts: at,
1381
+ customActionContext: xt,
1372
1382
  customActions: ne,
1373
1383
  useAutoAdvanceToggle: ke
1374
1384
  }
@@ -1383,6 +1393,6 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1383
1393
  );
1384
1394
  };
1385
1395
  export {
1386
- ni as default
1396
+ li as default
1387
1397
  };
1388
1398
  //# sourceMappingURL=Slide.es.js.map