markdown-flow-ui 0.1.108-beta.2 → 0.1.108-beta.3

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 (41) hide show
  1. package/dist/_virtual/index.cjs4.js +1 -1
  2. package/dist/_virtual/index.cjs5.js +1 -1
  3. package/dist/_virtual/index.cjs6.js +1 -1
  4. package/dist/_virtual/index.cjs7.js +1 -1
  5. package/dist/_virtual/index.es4.js +4 -4
  6. package/dist/_virtual/index.es5.js +4 -4
  7. package/dist/_virtual/index.es6.js +2 -5
  8. package/dist/_virtual/index.es6.js.map +1 -1
  9. package/dist/_virtual/index.es7.js +5 -2
  10. package/dist/_virtual/index.es7.js.map +1 -1
  11. package/dist/components/Slide/Player.cjs.js +1 -1
  12. package/dist/components/Slide/Player.cjs.js.map +1 -1
  13. package/dist/components/Slide/Player.d.ts +2 -1
  14. package/dist/components/Slide/Player.es.js +160 -154
  15. package/dist/components/Slide/Player.es.js.map +1 -1
  16. package/dist/components/Slide/Slide.cjs.js +1 -1
  17. package/dist/components/Slide/Slide.cjs.js.map +1 -1
  18. package/dist/components/Slide/Slide.es.js +390 -377
  19. package/dist/components/Slide/Slide.es.js.map +1 -1
  20. package/dist/components/Slide/SubtitleOverlay.cjs.js +1 -1
  21. package/dist/components/Slide/SubtitleOverlay.cjs.js.map +1 -1
  22. package/dist/components/Slide/SubtitleOverlay.d.ts +2 -1
  23. package/dist/components/Slide/SubtitleOverlay.es.js +33 -32
  24. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  25. package/dist/components/ui/inputGroup/textarea.cjs.js +1 -1
  26. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  27. package/dist/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.cjs.js +1 -1
  28. package/dist/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  29. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-input@1.8.0_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-input/es/BaseInput.cjs.js +1 -1
  30. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-input@1.8.0_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-input/es/BaseInput.es.js +1 -1
  31. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/ResizableTextArea.cjs.js +1 -1
  32. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  33. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/TextArea.cjs.js +1 -1
  34. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  35. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/index.cjs.js +1 -1
  36. package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/index.es.js +1 -1
  37. package/dist/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs.js +1 -1
  38. package/dist/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.es.js +1 -1
  39. package/dist/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.cjs.js +1 -1
  40. package/dist/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js +1 -1
  41. package/package.json +1 -1
@@ -1,53 +1,53 @@
1
1
  import { j as n } from "../../_virtual/jsx-runtime.es.js";
2
- import { memo as on, useRef as h, useMemo as c, useState as m, useCallback as r, useEffect as a } from "react";
3
- import { isSandboxInteractionMessage as ln } from "../../lib/sandboxInteraction.es.js";
2
+ import { memo as an, useRef as v, useMemo as i, useState as m, useCallback as r, useEffect as c } from "react";
3
+ import { isSandboxInteractionMessage as un } from "../../lib/sandboxInteraction.es.js";
4
4
  import { cn as X } from "../../lib/utils.es.js";
5
- import sn from "../ui/loading-overlay-card.es.js";
6
- import cn from "../ContentRender/ContentRender.es.js";
7
- import gt from "../ContentRender/IframeSandbox.es.js";
5
+ import dn from "../ui/loading-overlay-card.es.js";
6
+ import fn from "../ContentRender/ContentRender.es.js";
7
+ import St from "../ContentRender/IframeSandbox.es.js";
8
8
  import "../ui/inputGroup/input-group.es.js";
9
- import { getInteractionDefaultValues as an, getInteractionDefaultSelectedValues as un } from "../../lib/interaction-defaults.es.js";
10
- import { isMobileDevice as dn, isLandscapeViewport as bt, subscribeMobileDeviceChange as fn } from "../../lib/mobileDevice.es.js";
11
- import mn from "./Player.es.js";
12
- import pn from "./SubtitleOverlay.es.js";
13
- import { DEFAULT_SLIDE_PLAYER_TEXTS as hn } from "./constants.es.js";
14
- import vn from "./SlideFullscreenHint.es.js";
15
- import yn from "./useSlide.es.js";
16
- import gn from "./useWakePlayerFromIframe.es.js";
17
- import { DEFAULT_MOBILE_VIEW_MODE as be, resolveMobileViewModeState as bn } from "./utils/mobileScreenMode.es.js";
18
- import { shouldPresentInteractionOverlay as Sn } from "./utils/interactionPlayback.es.js";
19
- import { getPlaybackSequenceTransition as xn } from "./utils/playbackSequence.es.js";
20
- import { resolvePlayerCustomActionElement as wn, getPlayerCustomActionCount as In } from "./utils/playerCustomActions.es.js";
21
- import { createPlaybackTimeStore as An } from "./utils/playbackTimeStore.es.js";
22
- import { shouldUseAutoAdvanceToggle as _n } from "./utils/playerToggleMode.es.js";
9
+ import { getInteractionDefaultValues as mn, getInteractionDefaultSelectedValues as pn } from "../../lib/interaction-defaults.es.js";
10
+ import { isMobileDevice as hn, isLandscapeViewport as xt, subscribeMobileDeviceChange as vn } from "../../lib/mobileDevice.es.js";
11
+ import yn from "./Player.es.js";
12
+ import bn from "./SubtitleOverlay.es.js";
13
+ import { DEFAULT_SLIDE_PLAYER_TEXTS as gn } from "./constants.es.js";
14
+ import Sn from "./SlideFullscreenHint.es.js";
15
+ import xn from "./useSlide.es.js";
16
+ import wn from "./useWakePlayerFromIframe.es.js";
17
+ import { DEFAULT_MOBILE_VIEW_MODE as Se, resolveMobileViewModeState as In } from "./utils/mobileScreenMode.es.js";
18
+ import { shouldPresentInteractionOverlay as An } from "./utils/interactionPlayback.es.js";
19
+ import { getPlaybackSequenceTransition as _n } from "./utils/playbackSequence.es.js";
20
+ import { resolvePlayerCustomActionElement as Tn, getPlayerCustomActionCount as En } from "./utils/playerCustomActions.es.js";
21
+ import { createPlaybackTimeStore as Pn } from "./utils/playbackTimeStore.es.js";
22
+ import { shouldUseAutoAdvanceToggle as Cn } from "./utils/playerToggleMode.es.js";
23
23
  /* empty css */
24
- import Tn from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
25
- const En = 2e3, Pn = 300, Rn = 160, Cn = 16, St = on(
24
+ import Rn from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
25
+ const Fn = 2e3, Mn = 300, On = 160, Bn = 16, wt = an(
26
26
  ({
27
- content: j,
28
- title: k,
29
- defaultButtonText: b,
27
+ content: L,
28
+ title: j,
29
+ defaultButtonText: g,
30
30
  defaultInputText: J,
31
31
  defaultSelectedValues: S,
32
- confirmButtonText: V,
32
+ confirmButtonText: K,
33
33
  copyButtonText: Q,
34
- copiedButtonText: Se,
35
- onSend: xe,
36
- readonly: K = !1
34
+ copiedButtonText: xe,
35
+ onSend: we,
36
+ readonly: V = !1
37
37
  }) => /* @__PURE__ */ n.jsxs("div", { className: "slide-player__interaction-card", children: [
38
- /* @__PURE__ */ n.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ n.jsx("p", { className: "slide-player__interaction-title", children: k }) }),
38
+ /* @__PURE__ */ n.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ n.jsx("p", { className: "slide-player__interaction-title", children: j }) }),
39
39
  /* @__PURE__ */ n.jsx("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ n.jsx(
40
- cn,
40
+ fn,
41
41
  {
42
- content: j,
43
- defaultButtonText: b,
42
+ content: L,
43
+ defaultButtonText: g,
44
44
  defaultInputText: J,
45
45
  defaultSelectedValues: S,
46
- confirmButtonText: V,
46
+ confirmButtonText: K,
47
47
  copyButtonText: Q,
48
- copiedButtonText: Se,
49
- onSend: xe,
50
- readonly: K,
48
+ copiedButtonText: xe,
49
+ onSend: we,
50
+ readonly: V,
51
51
  enableTypewriter: !1,
52
52
  sandboxMode: "content"
53
53
  }
@@ -55,100 +55,100 @@ const En = 2e3, Pn = 300, Rn = 160, Cn = 16, St = on(
55
55
  /* @__PURE__ */ n.jsx("div", { className: "slide-player__interaction-arrow" })
56
56
  ] })
57
57
  );
58
- St.displayName = "InteractionOverlayCard";
59
- const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
60
- const S = k[J];
61
- return b.sequence_number === S?.sequence_number && b.type === S?.type && b.content === S?.content;
62
- }), lr = ({
63
- elementList: j = [],
64
- showPlayer: k = !0,
65
- playerAlwaysVisible: b = !1,
58
+ wt.displayName = "InteractionOverlayCard";
59
+ const Nn = (L, j) => L.length === j.length && L.every((g, J) => {
60
+ const S = j[J];
61
+ return g.sequence_number === S?.sequence_number && g.type === S?.type && g.content === S?.content;
62
+ }), cr = ({
63
+ elementList: L = [],
64
+ showPlayer: j = !0,
65
+ playerAlwaysVisible: g = !1,
66
66
  playerClassName: J,
67
67
  fullscreenHeader: S,
68
- playerCustomActions: V,
68
+ playerCustomActions: K,
69
69
  playerCustomActionPauseOnActive: Q = !0,
70
- bufferingText: Se = "Buffering...",
71
- interactionTitle: xe,
72
- interactionTexts: K,
73
- playerTexts: ke,
74
- playerAutoHideDelay: we = 3e3,
75
- markerAutoAdvanceDelay: Ve = En,
76
- interactionDefaultValueOptions: se,
77
- onSend: Ke,
78
- onPlayerVisibilityChange: Ie,
79
- onMobileViewModeChange: qe,
80
- onStepChange: De,
81
- enableIframeScaling: xt = !0,
82
- className: wt,
83
- onPointerDown: He,
84
- ...It
70
+ bufferingText: xe = "Buffering...",
71
+ interactionTitle: we,
72
+ interactionTexts: V,
73
+ playerTexts: Ve,
74
+ playerAutoHideDelay: Ie = 3e3,
75
+ markerAutoAdvanceDelay: qe = Fn,
76
+ interactionDefaultValueOptions: ie,
77
+ onSend: He,
78
+ onPlayerVisibilityChange: Ae,
79
+ onMobileViewModeChange: De,
80
+ onStepChange: Ue,
81
+ enableIframeScaling: It = !0,
82
+ className: At,
83
+ onPointerDown: ze,
84
+ ..._t
85
85
  }) => {
86
- const ie = h(null), Ue = h(null), Ae = h(null), ze = h(null), Z = h(null), ee = h(null), te = h(null), ne = h(null), $e = h(null), We = h([]), ce = h(!1), q = h(null), Ye = h(null), {
87
- currentElementList: R,
88
- stepElementLists: Ge,
89
- slideElementList: D,
86
+ const ce = v(null), $e = v(null), _e = v(null), We = v(null), Z = v(null), ee = v(null), te = v(null), ne = v(null), Ye = v(null), Ge = v([]), ae = v(!1), q = v(null), Xe = v(null), {
87
+ currentElementList: C,
88
+ stepElementLists: Je,
89
+ slideElementList: H,
90
90
  currentIndex: f,
91
91
  audioList: p,
92
- currentAudioSequenceIndexes: ae,
92
+ currentAudioSequenceIndexes: ue,
93
93
  currentStepHasSpeakableElement: x,
94
94
  currentInteractionElement: d,
95
- canGoPrev: At,
96
- canGoNext: C,
97
- handlePrev: Xe,
95
+ canGoPrev: Tt,
96
+ canGoNext: R,
97
+ handlePrev: Qe,
98
98
  handleNext: M
99
- } = yn(j), re = c(() => {
99
+ } = xn(L), re = i(() => {
100
100
  if (!(f < 0))
101
- return D[f];
102
- }, [f, D]), _t = D.filter(
101
+ return H[f];
102
+ }, [f, H]), Et = H.filter(
103
103
  (e) => e.is_renderable !== !1
104
- ).length === 1, w = k && (D.length > 0 || p.length > 0 || !!d), _ = c(
105
- () => ae.map((e) => p[e]?.audioKey).filter((e) => !!e),
106
- [p, ae]
107
- ), [Je, ue] = m(!0), [de, oe] = m(!1), [_e, Qe] = m(!0), [y, H] = m(null), [Tt, I] = m(!1), [O, Ze] = m(!1), [Te, Ee] = m(!1), [o, Pe] = m(), [fe, me] = m(!1), [
108
- Et,
104
+ ).length === 1, w = j && (H.length > 0 || p.length > 0 || !!d), _ = i(
105
+ () => ue.map((e) => p[e]?.audioKey).filter((e) => !!e),
106
+ [p, ue]
107
+ ), [Ze, de] = m(!0), [fe, oe] = m(!1), [Te, et] = m(!0), [b, D] = m(null), [Pt, I] = m(!1), [O, tt] = m(!1), [Ct, Ee] = m(!1), [Pe, Ce] = m(!1), [o, Re] = m(), [me, pe] = m(!1), [
108
+ Rt,
109
109
  le
110
- ] = m(0), [Pt, Rt] = m(!1), T = c(() => dn(), []), [pe, Re] = m(
111
- be
112
- ), [et, Ce] = m(!1), [Fe, tt] = m(
113
- () => T ? bt() : !1
114
- ), [Ct, he] = m(!1), U = c(() => An(), []), {
110
+ ] = m(0), [Ft, Mt] = m(!1), T = i(() => hn(), []), [he, Fe] = m(
111
+ Se
112
+ ), [nt, Me] = m(!1), [Oe, rt] = m(
113
+ () => T ? xt() : !1
114
+ ), [Ot, ve] = m(!1), U = i(() => Pn(), []), {
115
115
  effectiveMobileViewMode: B,
116
116
  isImmersiveMobileFullscreen: z,
117
- isNativeMobileFullscreen: nt,
118
- shouldRotateFullscreenViewport: Ft
119
- } = c(
120
- () => bn({
121
- hasManualMobileViewMode: et,
117
+ isNativeMobileFullscreen: ot,
118
+ shouldRotateFullscreenViewport: Bt
119
+ } = i(
120
+ () => In({
121
+ hasManualMobileViewMode: nt,
122
122
  isMobileDevice: T,
123
- mobileViewMode: pe
123
+ mobileViewMode: he
124
124
  }),
125
125
  [
126
- et,
126
+ nt,
127
127
  T,
128
- Fe,
129
- pe
128
+ Oe,
129
+ he
130
130
  ]
131
- ), rt = h(B), E = w && (b || Je), Mt = z && E, Ot = z && E, Bt = z || nt, Nt = ke?.fullscreenHintText ?? hn.fullscreenHintText, Lt = r(
131
+ ), lt = v(B), E = w && (g || Ze), Nt = z && E, kt = z && E, Lt = z || ot, jt = Ve?.fullscreenHintText ?? gn.fullscreenHintText, Kt = r(
132
132
  (e) => {
133
- Ce(!0), Re(e);
133
+ Me(!0), Fe(e);
134
134
  },
135
135
  []
136
- ), ot = r(() => {
137
- Ce(!1), Re(be);
138
- }, []), jt = r(() => {
139
- ot(), S?.onBack?.();
140
- }, [S, ot]), kt = r(() => {
141
- he(!1);
142
- }, []), lt = r((e) => {
143
- Ee(e);
144
- }, []), st = r(() => {
145
- Ee((e) => !e);
146
- }, []), { mountedStepStates: Vt, currentMountedStateIndex: Kt } = c(() => {
136
+ ), st = r(() => {
137
+ Me(!1), Fe(Se);
138
+ }, []), Vt = r(() => {
139
+ st(), S?.onBack?.();
140
+ }, [S, st]), qt = r(() => {
141
+ ve(!1);
142
+ }, []), it = r((e) => {
143
+ Ce(e);
144
+ }, []), ct = r(() => {
145
+ Ce((e) => !e);
146
+ }, []), { mountedStepStates: Ht, currentMountedStateIndex: Dt } = i(() => {
147
147
  const e = [], t = /* @__PURE__ */ new Map();
148
- return Ge.forEach((l, u) => {
148
+ return Je.forEach((l, u) => {
149
149
  const s = e.findIndex(
150
- (i) => Fn(
151
- i.elementList,
150
+ (a) => Nn(
151
+ a.elementList,
152
152
  l
153
153
  )
154
154
  );
@@ -164,75 +164,82 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
164
164
  mountedStepStates: e,
165
165
  currentMountedStateIndex: f >= 0 ? t.get(f) ?? -1 : -1
166
166
  };
167
- }, [f, Ge]), it = c(() => String(f), [f]), g = c(() => y ? p.findIndex(
168
- (e) => (e.audioKey ?? "") === y
169
- ) : -1, [p, y]), qt = c(
170
- () => g >= 0 ? p[g] : void 0,
171
- [p, g]
172
- )?.element?.subtitle_cues ?? [], ve = c(
167
+ }, [f, Je]), at = i(() => String(f), [f]), h = i(() => b ? p.findIndex(
168
+ (e) => (e.audioKey ?? "") === b
169
+ ) : -1, [p, b]), Be = i(
170
+ () => h >= 0 ? p[h] : void 0,
171
+ [p, h]
172
+ ), Ut = Be?.element?.subtitle_cues ?? [], ye = i(
173
173
  () => _[0] ?? "none",
174
174
  [_]
175
- ), Me = c(
175
+ ), Ne = i(
176
176
  () => ({
177
- currentElement: wn({
178
- currentAudioIndex: g,
179
- currentAudioSequenceIndexes: ae,
177
+ currentElement: Tn({
178
+ currentAudioIndex: h,
179
+ currentAudioSequenceIndexes: ue,
180
180
  audioList: p,
181
181
  currentInteractionElement: o,
182
182
  currentStepElement: re
183
183
  }),
184
184
  currentIndex: f,
185
185
  currentStepElement: re,
186
- isActive: Te,
187
- setActive: lt,
188
- toggleActive: st
186
+ isActive: Pe,
187
+ setActive: it,
188
+ toggleActive: ct
189
189
  }),
190
190
  [
191
191
  o,
192
192
  p,
193
- g,
194
- ae,
193
+ h,
194
+ ue,
195
195
  f,
196
196
  re,
197
- Te,
198
- lt,
199
- st
197
+ Pe,
198
+ it,
199
+ ct
200
200
  ]
201
- ), Oe = c(
202
- () => In(
203
- V,
204
- Me
201
+ ), ke = i(
202
+ () => En(
203
+ K,
204
+ Ne
205
205
  ),
206
- [Me, V]
207
- ), Dt = c(
206
+ [Ne, K]
207
+ ), zt = i(
208
208
  () => ({
209
- "--slide-player-custom-action-count": String(Oe),
209
+ "--slide-player-custom-action-count": String(ke),
210
210
  "--slide-player-mobile-control-count": String(
211
- Oe + 4
211
+ ke + 4
212
212
  )
213
213
  }),
214
- [Oe]
215
- ), ct = _.length > 0, at = c(() => d ? `${d.sequence_number ?? "none"}:${String(
214
+ [ke]
215
+ ), ut = _.length > 0, dt = i(() => d ? `${d.sequence_number ?? "none"}:${String(
216
216
  d.content ?? ""
217
- )}` : "none", [d]), Be = c(
218
- () => [it, at].join("|"),
219
- [at, it]
220
- ), ut = !!c(() => !ve || ve === "none" ? "" : p.find(
221
- (t) => t.audioKey === ve
222
- )?.audioUrl?.trim() ?? "", [p, ve]), N = Q && !!V && Te, Ne = c(
223
- () => _n({
224
- canGoNext: C,
225
- currentAudioIndex: g,
217
+ )}` : "none", [d]), se = i(
218
+ () => [at, dt].join("|"),
219
+ [dt, at]
220
+ ), $t = i(
221
+ () => [
222
+ se,
223
+ Be?.audioKey ?? "none",
224
+ String(h)
225
+ ].join("|"),
226
+ [h, Be?.audioKey, se]
227
+ ), ft = !!i(() => !ye || ye === "none" ? "" : p.find(
228
+ (t) => t.audioKey === ye
229
+ )?.audioUrl?.trim() ?? "", [p, ye]), N = Q && !!K && Pe, Le = i(
230
+ () => Cn({
231
+ canGoNext: R,
232
+ currentAudioIndex: h,
226
233
  currentStepHasSpeakableElement: x,
227
234
  hasInteraction: !!d
228
235
  }),
229
236
  [
230
- C,
231
- g,
237
+ R,
238
+ h,
232
239
  d,
233
240
  x
234
241
  ]
235
- ), L = r(() => {
242
+ ), k = r(() => {
236
243
  Z.current !== null && (window.clearTimeout(Z.current), Z.current = null);
237
244
  }, []), F = r(() => {
238
245
  te.current !== null && (window.clearTimeout(te.current), te.current = null);
@@ -241,7 +248,7 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
241
248
  }, []), $ = r(() => {
242
249
  ee.current !== null && (window.clearTimeout(ee.current), ee.current = null);
243
250
  }, []), W = r(() => {
244
- $(), F(), P(), H(null), U.reset(), I(!1), Ze(!1), Pe(void 0), me(!1), le(0);
251
+ $(), F(), P(), D(null), U.reset(), I(!1), tt(!1), Ee(!1), Re(void 0), pe(!1), le(0);
245
252
  }, [
246
253
  $,
247
254
  F,
@@ -249,131 +256,131 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
249
256
  U
250
257
  ]), Y = r(() => {
251
258
  const e = _[0];
252
- return e ? (H(e), !0) : !1;
253
- }, [_]), ye = r(() => {
254
- F(), P(), me(!1), le(0), !Y() && C && M();
259
+ return e ? (D(e), !0) : !1;
260
+ }, [_]), be = r(() => {
261
+ F(), P(), pe(!1), le(0), !Y() && R && M();
255
262
  }, [
256
- C,
263
+ R,
257
264
  F,
258
265
  P,
259
266
  M,
260
267
  Y
261
- ]), dt = r(
268
+ ]), mt = r(
262
269
  (e) => {
263
270
  if (P(), !e)
264
271
  return;
265
272
  const t = () => {
266
273
  ne.current = null, le(
267
- Rn
268
- ), me(!0), q.current = null;
274
+ On
275
+ ), pe(!0), q.current = null;
269
276
  };
270
277
  ne.current = window.setTimeout(
271
278
  t,
272
- Pn
279
+ Mn
273
280
  );
274
281
  },
275
282
  [P]
276
- ), v = r(
277
- (e = de) => {
278
- w && (ue(!0), L(), !(b || !e || we <= 0) && (Z.current = window.setTimeout(() => {
279
- ue(!1), Z.current = null;
280
- }, we)));
283
+ ), y = r(
284
+ (e = fe) => {
285
+ w && (de(!0), k(), !(g || !e || Ie <= 0) && (Z.current = window.setTimeout(() => {
286
+ de(!1), Z.current = null;
287
+ }, Ie)));
281
288
  },
282
289
  [
283
- L,
284
- de,
285
- b,
286
- we,
290
+ k,
291
+ fe,
292
+ g,
293
+ Ie,
287
294
  w
288
295
  ]
289
- ), Le = !!(d?.readonly || d?.user_input?.trim()), G = !!d && !Le;
290
- a(() => {
291
- Qe(!0), Q && Ee(!1);
292
- }, [f, Q]), a(() => () => {
293
- $(), L(), F(), P();
296
+ ), je = !!(d?.readonly || d?.user_input?.trim()), G = !!d && !je;
297
+ c(() => {
298
+ et(!0), Q && Ce(!1);
299
+ }, [f, Q]), c(() => () => {
300
+ $(), k(), F(), P();
294
301
  }, [
295
302
  $,
296
303
  F,
297
304
  P,
298
- L
299
- ]), a(() => (Ie?.(E), () => {
300
- Ie?.(!1);
301
- }), [Ie, E]), a(() => {
302
- T || pe === be || (Ce(!1), Re(be));
303
- }, [T, pe]), a(() => {
305
+ k
306
+ ]), c(() => (Ae?.(E), () => {
307
+ Ae?.(!1);
308
+ }), [Ae, E]), c(() => {
309
+ T || he === Se || (Me(!1), Fe(Se));
310
+ }, [T, he]), c(() => {
304
311
  if (!T) {
305
- tt(!1);
312
+ rt(!1);
306
313
  return;
307
314
  }
308
315
  const e = () => {
309
- tt(bt());
316
+ rt(xt());
310
317
  };
311
- return e(), fn(e);
312
- }, [T]), a(() => {
313
- qe?.(B);
314
- }, [B, qe]), a(() => {
315
- const l = rt.current !== "fullscreen" && B === "fullscreen" && !Fe;
316
- if (rt.current = B, !T) {
317
- he(!1);
318
+ return e(), vn(e);
319
+ }, [T]), c(() => {
320
+ De?.(B);
321
+ }, [B, De]), c(() => {
322
+ const l = lt.current !== "fullscreen" && B === "fullscreen" && !Oe;
323
+ if (lt.current = B, !T) {
324
+ ve(!1);
318
325
  return;
319
326
  }
320
327
  if (l) {
321
- he(!0);
328
+ ve(!0);
322
329
  return;
323
330
  }
324
- B !== "fullscreen" && he(!1);
325
- }, [B, T, Fe]), a(() => {
326
- De?.(re, f);
327
- }, [f, re, De]), a(() => {
331
+ B !== "fullscreen" && ve(!1);
332
+ }, [B, T, Oe]), c(() => {
333
+ Ue?.(re, f);
334
+ }, [f, re, Ue]), c(() => {
328
335
  if (!w) {
329
- L(), ue(!1);
336
+ k(), de(!1);
330
337
  return;
331
338
  }
332
- if (b) {
333
- L(), ue(!0);
339
+ if (g) {
340
+ k(), de(!0);
334
341
  return;
335
342
  }
336
- de || v(!0);
343
+ fe || y(!0);
337
344
  }, [
338
- L,
339
- de,
340
- b,
345
+ k,
346
+ fe,
347
+ g,
341
348
  w,
342
- v
343
- ]), a(() => {
349
+ y
350
+ ]), c(() => {
344
351
  if (typeof window > "u")
345
352
  return;
346
353
  const e = (t) => {
347
- t.origin === window.location.origin && ln(t.data) && t.data.eventType === "click" && w && (oe(!0), v(!0));
354
+ t.origin === window.location.origin && un(t.data) && t.data.eventType === "click" && w && (oe(!0), y(!0));
348
355
  };
349
356
  return window.addEventListener("message", e), () => {
350
357
  window.removeEventListener("message", e);
351
358
  };
352
- }, [w, v]), gn({
353
- sectionRef: ie,
359
+ }, [w, y]), wn({
360
+ sectionRef: ce,
354
361
  enabled: w,
355
362
  onWake: () => {
356
- oe(!0), v(!0);
363
+ oe(!0), y(!0);
357
364
  }
358
- }), a(() => {
359
- const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = xn({
360
- previousResetKey: Ye.current,
361
- nextResetKey: Be,
362
- currentAudioKey: y,
365
+ }), c(() => {
366
+ const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = _n({
367
+ previousResetKey: Xe.current,
368
+ nextResetKey: se,
369
+ currentAudioKey: b,
363
370
  hasCompletedCurrentStepAudio: O
364
371
  });
365
- Ye.current = Be;
366
- const l = q.current === f && !!d, u = Sn({
372
+ Xe.current = se;
373
+ const l = q.current === f && !!d, u = An({
367
374
  hasInteraction: !!d,
368
375
  shouldBlockPlaybackForInteraction: G,
369
376
  shouldOpenInteractionOverlayAfterAudio: l,
370
377
  hasPlaybackContextChanged: e,
371
- hasResolvedCurrentInteraction: Le,
378
+ hasResolvedCurrentInteraction: je,
372
379
  currentStepHasSpeakableElement: x
373
380
  });
374
- if (e && W(), !(R.length === 0 && !d) && !N) {
375
- if (d && Pe(d), u) {
376
- dt(d);
381
+ if (e && W(), !(C.length === 0 && !d) && !N) {
382
+ if (d && Re(d), u) {
383
+ mt(d);
377
384
  return;
378
385
  }
379
386
  if (P(), q.current = null, !!t && !Y()) {
@@ -381,35 +388,35 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
381
388
  I(!0);
382
389
  return;
383
390
  }
384
- if (C && !(Ne && !_e))
391
+ if (R && !(Le && !Te))
385
392
  return ee.current = window.setTimeout(() => {
386
393
  ee.current = null, M();
387
- }, Ve), () => {
394
+ }, qe), () => {
388
395
  $();
389
396
  };
390
397
  }
391
398
  }
392
399
  }, [
393
- C,
400
+ R,
394
401
  $,
395
- R.length,
402
+ C.length,
396
403
  d,
397
- y,
398
- Be,
404
+ b,
405
+ se,
399
406
  x,
400
- Ve,
407
+ qe,
401
408
  M,
402
409
  O,
403
- _e,
404
- Le,
410
+ Te,
411
+ je,
405
412
  G,
406
413
  P,
407
414
  W,
408
- dt,
415
+ mt,
409
416
  Y,
410
417
  N,
411
- Ne
412
- ]), a(() => {
418
+ Le
419
+ ]), c(() => {
413
420
  if (N || !x || G) {
414
421
  I(!1);
415
422
  return;
@@ -418,77 +425,79 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
418
425
  I(!1);
419
426
  return;
420
427
  }
421
- if (ct) {
428
+ if (ut) {
422
429
  I(!1);
423
430
  return;
424
431
  }
425
432
  I(!0);
426
433
  }, [
427
- ct,
434
+ ut,
428
435
  x,
429
436
  O,
430
437
  N,
431
438
  G
432
- ]), a(() => {
433
- y || _.length === 0 || N || !x || G || O || Y();
439
+ ]), c(() => {
440
+ b || _.length === 0 || N || !x || G || O || Y();
434
441
  }, [
435
- y,
442
+ b,
436
443
  _,
437
444
  x,
438
445
  O,
439
446
  N,
440
447
  G,
441
448
  Y
442
- ]), a(() => {
443
- !y || g >= 0 || H(null);
444
- }, [g, y]), a(() => {
445
- g >= 0 || U.reset();
446
- }, [g, U]);
447
- const ft = c(() => {
449
+ ]), c(() => {
450
+ !b || h >= 0 || D(null);
451
+ }, [h, b]), c(() => {
452
+ h >= 0 || U.reset();
453
+ }, [h, U]), c(() => {
454
+ Ee(!1);
455
+ }, [$t]);
456
+ const pt = i(() => {
448
457
  if (!o)
449
458
  return {};
450
459
  const e = !!o.user_input?.trim();
451
- return an(
460
+ return mn(
452
461
  typeof o.content == "string" ? o.content : void 0,
453
462
  o.user_input,
454
- e ? void 0 : se
463
+ e ? void 0 : ie
455
464
  );
456
- }, [o, se]), Ht = c(() => {
465
+ }, [o, ie]), Wt = i(() => {
457
466
  if (!o)
458
467
  return;
459
468
  const e = !!o.user_input?.trim();
460
- return un(
469
+ return pn(
461
470
  typeof o.content == "string" ? o.content : void 0,
462
471
  o.user_input,
463
- e ? void 0 : se
472
+ e ? void 0 : ie
464
473
  );
465
- }, [o, se]), mt = !!o?.user_input?.trim(), pt = !!o?.readonly || mt, ht = pt || mt, je = !!o && fe, Ut = r(
474
+ }, [o, ie]), ht = !!o?.user_input?.trim(), vt = !!o?.readonly || ht, yt = vt || ht, Ke = !!o && me, Yt = r(
466
475
  (e) => {
467
476
  const l = [
468
477
  ...e.selectedValues ?? [],
469
478
  e.inputText?.trim() ?? "",
470
479
  e.buttonText?.trim() ?? ""
471
480
  ].filter(Boolean).join(", ");
472
- Pe((u) => !u || !l ? u : {
481
+ Re((u) => !u || !l ? u : {
473
482
  ...u,
474
483
  user_input: l
475
- }), Ke?.(e, o), ye();
484
+ }), He?.(e, o), be();
476
485
  },
477
- [o, ye, Ke]
486
+ [o, be, He]
478
487
  );
479
- a(() => {
488
+ c(() => {
480
489
  const e = () => {
481
- Rt(document.fullscreenElement === ie.current);
490
+ Mt(document.fullscreenElement === ce.current);
482
491
  };
483
492
  return e(), document.addEventListener("fullscreenchange", e), () => {
484
493
  document.removeEventListener("fullscreenchange", e);
485
494
  };
486
- }, []), a(() => {
487
- if (!je) {
495
+ }, []), c(() => {
496
+ if (!Ke) {
488
497
  le(0);
489
498
  return;
490
499
  }
491
- const e = $e.current;
500
+ const e = Ye.current;
492
501
  if (!e)
493
502
  return;
494
503
  const t = () => {
@@ -496,7 +505,7 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
496
505
  e.getBoundingClientRect().height
497
506
  );
498
507
  le(
499
- u + Cn
508
+ u + Bn
500
509
  );
501
510
  };
502
511
  if (t(), typeof ResizeObserver > "u")
@@ -507,21 +516,21 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
507
516
  return l.observe(e), () => {
508
517
  l.disconnect();
509
518
  };
510
- }, [je]), a(() => {
511
- if (F(), !(!fe || !ht))
519
+ }, [Ke]), c(() => {
520
+ if (F(), !(!me || !yt))
512
521
  return te.current = window.setTimeout(() => {
513
- te.current = null, ye();
522
+ te.current = null, be();
514
523
  }, 2e3), () => {
515
524
  F();
516
525
  };
517
526
  }, [
518
527
  F,
519
- ye,
520
- fe,
521
- ht
528
+ be,
529
+ me,
530
+ yt
522
531
  ]);
523
- const zt = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ n.jsx(
524
- gt,
532
+ const Gt = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ n.jsx(
533
+ St,
525
534
  {
526
535
  className: "content-render-iframe",
527
536
  hideFullScreen: !0,
@@ -529,10 +538,10 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
529
538
  replaceRootScreenHeightWithFull: t.replaceRootScreenHeightWithFull,
530
539
  type: "sandbox",
531
540
  content: e.content,
532
- enableScaling: xt
541
+ enableScaling: It
533
542
  }
534
543
  ) : /* @__PURE__ */ n.jsx(
535
- gt,
544
+ St,
536
545
  {
537
546
  className: "content-render-iframe",
538
547
  hideFullScreen: !0,
@@ -540,36 +549,36 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
540
549
  type: "markdown",
541
550
  content: e.content
542
551
  }
543
- ) : null, $t = (e = [], t = !1) => {
552
+ ) : null, Xt = (e = [], t = !1) => {
544
553
  if (e.length === 0)
545
554
  return null;
546
555
  const l = e.filter(
547
556
  (s) => s.is_renderable !== !1
548
557
  ).length, u = e.reduce(
549
- (s, i, A) => i.is_renderable !== !1 ? A : s,
558
+ (s, a, A) => a.is_renderable !== !1 ? A : s,
550
559
  -1
551
560
  );
552
- return /* @__PURE__ */ n.jsx("div", { className: "slide-stage__content flex w-full flex-col gap-4", children: e.map((s, i) => {
561
+ return /* @__PURE__ */ n.jsx("div", { className: "slide-stage__content flex w-full flex-col gap-4", children: e.map((s, a) => {
553
562
  const A = s.type === "html" && s.is_renderable === !1;
554
563
  return /* @__PURE__ */ n.jsx(
555
564
  "div",
556
565
  {
557
- ref: t && i === u ? ze : null,
566
+ ref: t && a === u ? We : null,
558
567
  "aria-hidden": A || void 0,
559
568
  className: X(
560
569
  "w-full shrink-0",
561
570
  l === 1 && s.is_renderable !== !1 && "slide-element--single",
562
571
  A ? "pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0" : s.is_renderable === !1 && "hidden"
563
572
  ),
564
- children: zt(s, {
573
+ children: Gt(s, {
565
574
  replaceRootScreenHeightWithFull: l === 1 && s.type === "html" && s.is_renderable !== !1
566
575
  })
567
576
  },
568
- s.sequence_number ?? `${s.type}-${i}`
577
+ s.sequence_number ?? `${s.type}-${a}`
569
578
  );
570
579
  }) });
571
- }, Wt = r(() => {
572
- const e = ie.current;
580
+ }, Jt = r(() => {
581
+ const e = ce.current;
573
582
  if (e) {
574
583
  if (document.fullscreenElement === e) {
575
584
  document.exitFullscreen().catch(() => {
@@ -579,17 +588,17 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
579
588
  e.requestFullscreen?.().catch(() => {
580
589
  });
581
590
  }
582
- }, []), vt = r(() => {
583
- const e = Ae.current;
591
+ }, []), bt = r(() => {
592
+ const e = _e.current;
584
593
  e && e.scrollTo({
585
594
  top: e.scrollHeight,
586
595
  behavior: "smooth"
587
596
  });
588
- }, []), Yt = r(() => {
589
- ce.current = !0, q.current = null, oe(!0), I(!1), v(!0), W(), Xe();
590
- }, [Xe, W, v]), Gt = r(() => {
591
- ce.current = !0, q.current = null, oe(!0), I(!1), v(!0), W(), M();
592
- }, [M, W, v]), Xt = r(
597
+ }, []), Qt = r(() => {
598
+ ae.current = !0, q.current = null, oe(!0), I(!1), y(!0), W(), Qe();
599
+ }, [Qe, W, y]), Zt = r(() => {
600
+ ae.current = !0, q.current = null, oe(!0), I(!1), y(!0), W(), M();
601
+ }, [M, W, y]), en = r(
593
602
  (e) => {
594
603
  if (!x || O) {
595
604
  I(!1);
@@ -598,102 +607,102 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
598
607
  I(e);
599
608
  },
600
609
  [x, O]
601
- ), Jt = r(
610
+ ), tn = r(
602
611
  (e) => {
603
612
  const t = p[e]?.audioKey;
604
- if (!t || !y || t !== y)
613
+ if (!t || !b || t !== b)
605
614
  return;
606
615
  const l = _.findIndex(
607
- (i) => i === t
616
+ (a) => a === t
608
617
  );
609
618
  if (l < 0) {
610
- H(null);
619
+ D(null);
611
620
  return;
612
621
  }
613
622
  const u = l + 1, s = _[u];
614
623
  if (s) {
615
- H(s);
624
+ D(s);
616
625
  return;
617
626
  }
618
- if (H(null), Ze(!0), I(!1), C) {
619
- const i = f + 1, A = D[i];
620
- ut && A?.type === "interaction" && (q.current = i), M();
627
+ if (D(null), tt(!0), I(!1), R) {
628
+ const a = f + 1, A = H[a];
629
+ ft && A?.type === "interaction" && (q.current = a), M();
621
630
  }
622
631
  },
623
632
  [
624
633
  p,
625
- C,
634
+ R,
626
635
  f,
627
- y,
636
+ b,
628
637
  _,
629
638
  M,
630
- ut,
631
- D
639
+ ft,
640
+ H
632
641
  ]
633
- ), Qt = r(() => {
634
- o && me((e) => !e);
635
- }, [o]), yt = r(
642
+ ), nn = r(() => {
643
+ o && pe((e) => !e);
644
+ }, [o]), gt = r(
636
645
  (e) => {
637
- e.stopPropagation(), E && v(!0);
646
+ e.stopPropagation(), E && y(!0);
638
647
  },
639
- [Je, v]
640
- ), Zt = r(
648
+ [Ze, y]
649
+ ), rn = r(
641
650
  (e) => {
642
- He?.(e);
651
+ ze?.(e);
643
652
  },
644
- [He]
645
- ), en = r(() => {
646
- oe(!0), v(!0);
647
- }, [v]), ge = c(
648
- () => R.map(
653
+ [ze]
654
+ ), on = r(() => {
655
+ oe(!0), y(!0);
656
+ }, [y]), ge = i(
657
+ () => C.map(
649
658
  (e, t) => `${e.sequence_number ?? `${e.type}-${t}`}:${String(e.is_new ?? "")}`
650
659
  ),
651
- [R]
660
+ [C]
652
661
  );
653
- return a(() => {
654
- const e = We.current, u = (e.length > 0 && e.length < ge.length && e.every((i, A) => i === ge[A]) ? R.slice(e.length) : []).some(
655
- (i) => i.is_new === !1
662
+ return c(() => {
663
+ const e = Ge.current, u = (e.length > 0 && e.length < ge.length && e.every((a, A) => a === ge[A]) ? C.slice(e.length) : []).some(
664
+ (a) => a.is_new === !1
656
665
  );
657
- if (We.current = ge, !u)
666
+ if (Ge.current = ge, !u)
658
667
  return;
659
668
  const s = window.requestAnimationFrame(() => {
660
- const i = Ae.current, A = ze.current;
661
- if (!i || !A)
669
+ const a = _e.current, A = We.current;
670
+ if (!a || !A)
662
671
  return;
663
- const tn = i.getBoundingClientRect(), nn = A.getBoundingClientRect(), rn = i.scrollTop + (nn.top - tn.top);
664
- i.scrollTo({
665
- top: Math.max(rn, 0),
672
+ const ln = a.getBoundingClientRect(), sn = A.getBoundingClientRect(), cn = a.scrollTop + (sn.top - ln.top);
673
+ a.scrollTo({
674
+ top: Math.max(cn, 0),
666
675
  behavior: "smooth"
667
676
  });
668
677
  });
669
678
  return () => {
670
679
  window.cancelAnimationFrame(s);
671
680
  };
672
- }, [R, ge]), a(() => {
673
- if (!ce.current || (ce.current = !1, R.length === 0))
681
+ }, [C, ge]), c(() => {
682
+ if (!ae.current || (ae.current = !1, C.length === 0))
674
683
  return;
675
684
  const e = window.requestAnimationFrame(() => {
676
- vt();
685
+ bt();
677
686
  });
678
687
  return () => {
679
688
  window.cancelAnimationFrame(e);
680
689
  };
681
- }, [R, vt]), /* @__PURE__ */ n.jsxs(
690
+ }, [C, bt]), /* @__PURE__ */ n.jsxs(
682
691
  "section",
683
692
  {
684
- ref: ie,
693
+ ref: ce,
685
694
  className: X(
686
695
  "relative h-full w-full",
687
696
  T && "slide--mobile-device",
688
697
  z && "slide--mobile-landscape",
689
- nt && "slide--mobile-landscape-native",
690
- wt
698
+ ot && "slide--mobile-landscape-native",
699
+ At
691
700
  ),
692
- onClick: en,
693
- onPointerDown: Zt,
694
- ...It,
701
+ onClick: on,
702
+ onPointerDown: rn,
703
+ ..._t,
695
704
  children: [
696
- Bt ? /* @__PURE__ */ n.jsx(
705
+ Lt ? /* @__PURE__ */ n.jsx(
697
706
  "div",
698
707
  {
699
708
  "aria-hidden": "true",
@@ -703,22 +712,22 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
703
712
  /* @__PURE__ */ n.jsxs(
704
713
  "div",
705
714
  {
706
- ref: Ue,
715
+ ref: $e,
707
716
  className: X(
708
717
  "slide__viewport relative h-full min-h-0 w-full",
709
718
  z && "slide__viewport--mobile-landscape",
710
- z && !Ft && "slide__viewport--mobile-landscape-native"
719
+ z && !Bt && "slide__viewport--mobile-landscape-native"
711
720
  ),
712
721
  children: [
713
- Mt ? /* @__PURE__ */ n.jsxs("div", { className: "slide-landscape-header", children: [
722
+ Nt ? /* @__PURE__ */ n.jsxs("div", { className: "slide-landscape-header", children: [
714
723
  /* @__PURE__ */ n.jsx(
715
724
  "button",
716
725
  {
717
726
  "aria-label": S?.backAriaLabel ?? "Back",
718
727
  className: "slide-landscape-header__back",
719
- onClick: jt,
728
+ onClick: Vt,
720
729
  type: "button",
721
- children: /* @__PURE__ */ n.jsx(Tn, { className: "h-6 w-6 text-white", strokeWidth: 2.25 })
730
+ children: /* @__PURE__ */ n.jsx(Rn, { className: "h-6 w-6 text-white", strokeWidth: 2.25 })
722
731
  }
723
732
  ),
724
733
  S?.content ? /* @__PURE__ */ n.jsx("div", { className: "min-w-0 flex-1 overflow-hidden", children: S.content }) : null
@@ -728,19 +737,19 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
728
737
  {
729
738
  className: X(
730
739
  "h-full min-h-0 w-full",
731
- Ot && "slide__viewport-content--with-header",
732
- _t ? "slide-content--single" : "grid gap-4"
740
+ kt && "slide__viewport-content--with-header",
741
+ Et ? "slide-content--single" : "grid gap-4"
733
742
  ),
734
- children: R.length > 0 ? /* @__PURE__ */ n.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ n.jsx("div", { ref: Ae, className: "slide-stage__layer w-full", children: Vt.map(
743
+ children: C.length > 0 ? /* @__PURE__ */ n.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ n.jsx("div", { ref: _e, className: "slide-stage__layer w-full", children: Ht.map(
735
744
  (e, t) => {
736
- const l = t === Kt;
745
+ const l = t === Dt;
737
746
  return /* @__PURE__ */ n.jsx(
738
747
  "div",
739
748
  {
740
749
  "aria-hidden": !l || void 0,
741
750
  className: "w-full h-full",
742
751
  style: { display: l ? void 0 : "none" },
743
- children: $t(
752
+ children: Xt(
744
753
  e.elementList,
745
754
  l
746
755
  )
@@ -751,61 +760,62 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
751
760
  ) }) }) : null
752
761
  }
753
762
  ),
754
- Tt ? /* @__PURE__ */ n.jsx(
755
- sn,
763
+ Pt ? /* @__PURE__ */ n.jsx(
764
+ dn,
756
765
  {
757
- message: Se,
766
+ message: xe,
758
767
  className: "absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2"
759
768
  }
760
769
  ) : null,
761
770
  /* @__PURE__ */ n.jsx(
762
- vn,
771
+ Sn,
763
772
  {
764
- onClose: kt,
765
- open: Ct,
766
- text: Nt
773
+ onClose: qt,
774
+ open: Ot,
775
+ text: jt
767
776
  }
768
777
  ),
769
778
  /* @__PURE__ */ n.jsx(
770
- pn,
779
+ bn,
771
780
  {
772
- extraBottomOffset: Et,
781
+ extraBottomOffset: Rt,
773
782
  hasPlayerGap: E,
783
+ isEnabled: Ct,
774
784
  isPlayerHidden: w && !E,
775
785
  playbackTimeStore: U,
776
- subtitleCues: qt
786
+ subtitleCues: Ut
777
787
  }
778
788
  ),
779
- je ? /* @__PURE__ */ n.jsx(
789
+ Ke ? /* @__PURE__ */ n.jsx(
780
790
  "div",
781
791
  {
782
- ref: $e,
792
+ ref: Ye,
783
793
  className: X(
784
794
  "slide-interaction-overlay",
785
795
  E && w ? "slide-interaction-overlay--with-player" : "slide-interaction-overlay--standalone"
786
796
  ),
787
- onClick: yt,
788
- onPointerDown: yt,
789
- style: Dt,
797
+ onClick: gt,
798
+ onPointerDown: gt,
799
+ style: zt,
790
800
  children: /* @__PURE__ */ n.jsx(
791
- St,
801
+ wt,
792
802
  {
793
803
  content: String(o?.content ?? ""),
794
- defaultButtonText: ft.buttonText ?? "",
795
- defaultInputText: ft.inputText ?? "",
796
- defaultSelectedValues: Ht,
797
- confirmButtonText: K?.confirmButtonText,
798
- copyButtonText: K?.copyButtonText,
799
- copiedButtonText: K?.copiedButtonText,
800
- onSend: Ut,
801
- readonly: pt,
802
- title: K?.title ?? xe ?? "Submit the content below to continue."
804
+ defaultButtonText: pt.buttonText ?? "",
805
+ defaultInputText: pt.inputText ?? "",
806
+ defaultSelectedValues: Wt,
807
+ confirmButtonText: V?.confirmButtonText,
808
+ copyButtonText: V?.copyButtonText,
809
+ copiedButtonText: V?.copiedButtonText,
810
+ onSend: Yt,
811
+ readonly: vt,
812
+ title: V?.title ?? we ?? "Submit the content below to continue."
803
813
  }
804
814
  )
805
815
  }
806
816
  ) : null,
807
817
  w ? /* @__PURE__ */ n.jsx(
808
- mn,
818
+ yn,
809
819
  {
810
820
  audioList: p,
811
821
  className: X(
@@ -813,31 +823,34 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
813
823
  J,
814
824
  !E && "pointer-events-none opacity-0"
815
825
  ),
816
- currentAudioIndex: g,
826
+ currentAudioIndex: h,
817
827
  defaultPlaying: !0,
818
828
  isPlaybackPaused: N,
819
- isAutoAdvanceEnabled: _e,
829
+ isAutoAdvanceEnabled: Te,
820
830
  hasInteraction: !!o,
821
- isInteractionOpen: fe,
822
- onAutoAdvanceToggle: Qe,
823
- onLoadingChange: Xt,
831
+ isInteractionOpen: me,
832
+ onAutoAdvanceToggle: et,
833
+ onLoadingChange: en,
834
+ onPlaybackStarted: () => {
835
+ Ee(!0);
836
+ },
824
837
  onPlaybackTimeChange: U.setTime,
825
- nextDisabled: !C,
826
- onEnded: Jt,
827
- onFullscreen: Wt,
828
- isFullscreen: Pt,
838
+ nextDisabled: !R,
839
+ onEnded: tn,
840
+ onFullscreen: Jt,
841
+ isFullscreen: Ft,
829
842
  mobileViewMode: B,
830
- settingsPortalContainer: Ue.current,
831
- onMobileViewModeChange: Lt,
832
- onInteractionToggle: Qt,
833
- onNext: Gt,
834
- onPrev: Yt,
835
- prevDisabled: !At,
843
+ settingsPortalContainer: $e.current,
844
+ onMobileViewModeChange: Kt,
845
+ onInteractionToggle: nn,
846
+ onNext: Zt,
847
+ onPrev: Qt,
848
+ prevDisabled: !Tt,
836
849
  showControls: E,
837
- texts: ke,
838
- customActionContext: Me,
839
- customActions: V,
840
- useAutoAdvanceToggle: Ne
850
+ texts: Ve,
851
+ customActionContext: Ne,
852
+ customActions: K,
853
+ useAutoAdvanceToggle: Le
841
854
  }
842
855
  ) : null
843
856
  ]
@@ -848,6 +861,6 @@ const Fn = (j, k) => j.length === k.length && j.every((b, J) => {
848
861
  );
849
862
  };
850
863
  export {
851
- lr as default
864
+ cr as default
852
865
  };
853
866
  //# sourceMappingURL=Slide.es.js.map