markdown-flow-ui 0.3.9 → 0.3.11

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