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

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 (31) hide show
  1. package/dist/_virtual/index.cjs3.js +1 -1
  2. package/dist/_virtual/index.cjs4.js +1 -1
  3. package/dist/_virtual/index.cjs8.js +1 -1
  4. package/dist/_virtual/index.cjs9.js +1 -1
  5. package/dist/_virtual/index.es3.js +4 -5
  6. package/dist/_virtual/index.es3.js.map +1 -1
  7. package/dist/_virtual/index.es4.js +5 -4
  8. package/dist/_virtual/index.es4.js.map +1 -1
  9. package/dist/_virtual/index.es8.js +2 -2
  10. package/dist/_virtual/index.es9.js +2 -2
  11. package/dist/components/Slide/Slide.cjs.js +1 -1
  12. package/dist/components/Slide/Slide.cjs.js.map +1 -1
  13. package/dist/components/Slide/Slide.es.js +86 -86
  14. package/dist/components/Slide/Slide.es.js.map +1 -1
  15. package/dist/components/ui/inputGroup/textarea.cjs.js +1 -1
  16. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  17. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs.js +1 -1
  18. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  19. package/dist/node_modules/classnames/index.cjs.js +1 -1
  20. package/dist/node_modules/classnames/index.es.js +1 -1
  21. package/dist/node_modules/rc-input/es/BaseInput.cjs.js +1 -1
  22. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  23. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs.js +1 -1
  24. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  25. package/dist/node_modules/rc-textarea/es/TextArea.cjs.js +1 -1
  26. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  27. package/dist/node_modules/rc-textarea/es/index.cjs.js +1 -1
  28. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  29. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs.js +1 -1
  30. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  31. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { j as s } from "../../_virtual/jsx-runtime.es.js";
1
+ import { j as a } from "../../_virtual/jsx-runtime.es.js";
2
2
  import { memo as Tr, useMemo as d, useId as Cr, useRef as p, useCallback as r, useState as m, useEffect as c, useLayoutEffect as Pr } from "react";
3
3
  import { isSandboxInteractionMessage as Rr } from "../../lib/sandboxInteraction.es.js";
4
4
  import { cn as ve } from "../../lib/utils.es.js";
@@ -33,7 +33,7 @@ import { getSlideLocaleTexts as oo, DEFAULT_SLIDE_BUFFERING_TEXTS as io } from "
33
33
  /* empty css */
34
34
  import Rt from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
35
35
  import lo from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
36
- const so = 2e3, ao = 300, co = 160, uo = 16, wn = 3e3, rt = {
36
+ const ao = 2e3, so = 300, co = 160, uo = 16, wn = 3e3, rt = {
37
37
  x: 0,
38
38
  y: 0
39
39
  }, Ot = 0.5, fo = typeof window > "u" ? c : Pr, mo = [
@@ -69,8 +69,8 @@ const so = 2e3, ao = 300, co = 160, uo = 16, wn = 3e3, rt = {
69
69
  onDragHandlePointerMove: Ie,
70
70
  onDragHandlePointerUp: je,
71
71
  readonly: qe = !1
72
- }) => /* @__PURE__ */ s.jsxs("div", { className: "slide-player__interaction-card", children: [
73
- /* @__PURE__ */ s.jsx(
72
+ }) => /* @__PURE__ */ a.jsxs("div", { className: "slide-player__interaction-card", children: [
73
+ /* @__PURE__ */ a.jsx(
74
74
  "button",
75
75
  {
76
76
  type: "button",
@@ -80,15 +80,15 @@ const so = 2e3, ao = 300, co = 160, uo = 16, wn = 3e3, rt = {
80
80
  onPointerDown: it,
81
81
  onPointerMove: Ie,
82
82
  onPointerUp: je,
83
- children: /* @__PURE__ */ s.jsxs("span", { className: "slide-player__interaction-drag-handle-icon", children: [
84
- /* @__PURE__ */ s.jsx(Rt, { "aria-hidden": "true" }),
85
- /* @__PURE__ */ s.jsx(Rt, { "aria-hidden": "true" }),
86
- /* @__PURE__ */ s.jsx(Rt, { "aria-hidden": "true" })
83
+ children: /* @__PURE__ */ a.jsxs("span", { className: "slide-player__interaction-drag-handle-icon", children: [
84
+ /* @__PURE__ */ a.jsx(Rt, { "aria-hidden": "true" }),
85
+ /* @__PURE__ */ a.jsx(Rt, { "aria-hidden": "true" }),
86
+ /* @__PURE__ */ a.jsx(Rt, { "aria-hidden": "true" })
87
87
  ] })
88
88
  }
89
89
  ),
90
- /* @__PURE__ */ s.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ s.jsx("p", { className: "slide-player__interaction-title", children: f }) }),
91
- /* @__PURE__ */ s.jsx("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ s.jsx(
90
+ /* @__PURE__ */ a.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ a.jsx("p", { className: "slide-player__interaction-title", children: f }) }),
91
+ /* @__PURE__ */ a.jsx("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ a.jsx(
92
92
  Or,
93
93
  {
94
94
  content: u,
@@ -124,7 +124,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
124
124
  interactionTexts: oe,
125
125
  playerTexts: it,
126
126
  playerAutoHideDelay: Ie = 3e3,
127
- markerAutoAdvanceDelay: je = so,
127
+ markerAutoAdvanceDelay: je = ao,
128
128
  interactionDefaultValueOptions: qe,
129
129
  onSend: kt,
130
130
  onPlayerVisibilityChange: lt,
@@ -151,15 +151,15 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
151
151
  } = ro({
152
152
  playerEnabled: H,
153
153
  playerControlsVisibility: Se
154
- }), Ke = Cr(), be = p(null), st = p(null), Ue = p(null), Dt = p(null), le = p(null), He = p(!1), xe = p(null), Ye = p(null), z = p(null), Ae = p(null), we = p(null), se = p(null), Ee = p(null), Vt = p([]), Te = p(!1), X = p(null), Ce = p(null), jt = p(0), qt = p(null), Kt = p({
154
+ }), Ke = Cr(), be = p(null), at = p(null), Ue = p(null), Dt = p(null), le = p(null), He = p(!1), xe = p(null), Ye = p(null), z = p(null), Ae = p(null), we = p(null), ae = p(null), Ee = p(null), Vt = p([]), Te = p(!1), X = p(null), Ce = p(null), jt = p(0), qt = p(null), Kt = p({
155
155
  markerCount: 0,
156
156
  currentIndex: -1,
157
157
  canGoNext: !1
158
- }), at = p(!1), {
158
+ }), st = p(!1), {
159
159
  currentElementList: R,
160
160
  stepElementLists: Ut,
161
161
  slideElementList: P,
162
- currentIndex: a,
162
+ currentIndex: s,
163
163
  audioList: I,
164
164
  audioSlideIndexes: Ge,
165
165
  currentAudioSequenceIndexes: $e,
@@ -171,9 +171,9 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
171
171
  handleNext: M,
172
172
  handleGoTo: Yt
173
173
  } = Br(u), Pe = d(() => {
174
- if (!(a < 0))
175
- return P[a];
176
- }, [a, P]), ae = d(
174
+ if (!(s < 0))
175
+ return P[s];
176
+ }, [s, P]), se = d(
177
177
  () => R.map(
178
178
  (e, t) => `${e.sequence_number ?? `${e.type}-${t}`}:${String(e.is_new ?? "")}`
179
179
  ),
@@ -233,7 +233,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
233
233
  }, []), W = r(() => {
234
234
  yt(
235
235
  (e) => e.x === rt.x && e.y === rt.y ? e : rt
236
- ), gt(!1), Ee.current = null, se.current = null;
236
+ ), gt(!1), Ee.current = null, ae.current = null;
237
237
  }, []), { mountedStepStates: Qn, currentMountedStateIndex: Zn } = d(() => {
238
238
  const e = [], t = /* @__PURE__ */ new Map();
239
239
  return Ut.forEach((n, i) => {
@@ -253,9 +253,9 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
253
253
  }), t.set(i, e.length - 1);
254
254
  }), {
255
255
  mountedStepStates: e,
256
- currentMountedStateIndex: a >= 0 ? t.get(a) ?? -1 : -1
256
+ currentMountedStateIndex: s >= 0 ? t.get(s) ?? -1 : -1
257
257
  };
258
- }, [a, Ut]), sn = d(() => String(a), [a]), C = d(() => w ? I.findIndex(
258
+ }, [s, Ut]), an = d(() => String(s), [s]), C = d(() => w ? I.findIndex(
259
259
  (e) => (e.audioKey ?? "") === w
260
260
  ) : -1, [I, w]), It = d(
261
261
  () => C >= 0 ? I[C] : void 0,
@@ -272,7 +272,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
272
272
  currentInteractionElement: h,
273
273
  currentStepElement: Pe
274
274
  }),
275
- currentIndex: a,
275
+ currentIndex: s,
276
276
  currentStepElement: Pe,
277
277
  isActive: ft,
278
278
  setActive: on,
@@ -283,7 +283,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
283
283
  I,
284
284
  C,
285
285
  $e,
286
- a,
286
+ s,
287
287
  Pe,
288
288
  ft,
289
289
  on,
@@ -309,11 +309,11 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
309
309
  E.y,
310
310
  xt
311
311
  ]
312
- ), an = k.length > 0, cn = d(() => y ? `${y.sequence_number ?? "none"}:${String(
312
+ ), sn = k.length > 0, cn = d(() => y ? `${y.sequence_number ?? "none"}:${String(
313
313
  y.content ?? ""
314
314
  )}` : "none", [y]), Me = d(
315
- () => [sn, cn].join("|"),
316
- [cn, sn]
315
+ () => [an, cn].join("|"),
316
+ [cn, an]
317
317
  ), nr = d(
318
318
  () => [
319
319
  Me,
@@ -350,8 +350,8 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
350
350
  je
351
351
  ]
352
352
  ), fn = dn.delayMs, Fe = dn.usesImageOnlyDelay, At = d(
353
- () => `${a}:${ae.join("|")}`,
354
- [a, ae]
353
+ () => `${s}:${se.join("|")}`,
354
+ [s, se]
355
355
  ), [rr, or] = m(null), mn = !Fe || rr === At, V = r(() => {
356
356
  le.current !== null && (window.clearTimeout(le.current), le.current = null);
357
357
  }, []), L = r(() => {
@@ -403,7 +403,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
403
403
  };
404
404
  Ae.current = window.setTimeout(
405
405
  t,
406
- ao
406
+ so
407
407
  );
408
408
  },
409
409
  [N]
@@ -438,9 +438,9 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
438
438
  );
439
439
  c(() => {
440
440
  $t(ct);
441
- }, [a, ct, re]), c(() => {
441
+ }, [s, ct, re]), c(() => {
442
442
  re && mt(!1);
443
- }, [a, re]), c(() => () => {
443
+ }, [s, re]), c(() => () => {
444
444
  me(), U(), V(), L(), N();
445
445
  }, [
446
446
  me,
@@ -506,7 +506,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
506
506
  }, [
507
507
  U,
508
508
  R,
509
- a,
509
+ s,
510
510
  At,
511
511
  Fe
512
512
  ]), c(() => (lt?.(T), () => {
@@ -543,8 +543,8 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
543
543
  }, [J, Ft]), c(() => {
544
544
  tn.current !== J && W(), tn.current = J;
545
545
  }, [J, W]), c(() => {
546
- Lt?.(Pe, a);
547
- }, [a, Pe, Lt]), c(() => {
546
+ Lt?.(Pe, s);
547
+ }, [s, Pe, Lt]), c(() => {
548
548
  const e = Kt.current, t = Yr(
549
549
  {
550
550
  previousMarkerCount: e.markerCount,
@@ -563,13 +563,13 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
563
563
  );
564
564
  Kt.current = {
565
565
  markerCount: P.length,
566
- currentIndex: a,
566
+ currentIndex: s,
567
567
  canGoNext: _
568
568
  }, t && M();
569
569
  }, [
570
570
  _,
571
571
  w,
572
- a,
572
+ s,
573
573
  y,
574
574
  x,
575
575
  M,
@@ -623,24 +623,24 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
623
623
  hasCompletedCurrentStepAudio: F
624
624
  });
625
625
  qt.current = Me;
626
- const n = X.current === a && !!y, i = Ur({
626
+ const n = X.current === s && !!y, i = Ur({
627
627
  hasInteraction: !!y,
628
628
  shouldBlockPlaybackForInteraction: ye,
629
629
  shouldOpenInteractionOverlayAfterAudio: n,
630
630
  hasPlaybackContextChanged: e,
631
631
  hasResolvedCurrentInteraction: Ne,
632
632
  currentStepHasSpeakableElement: x
633
- }), l = Ce.current, o = l?.slideIndex === a;
633
+ }), l = Ce.current, o = l?.slideIndex === s;
634
634
  if (e && B({
635
635
  preservePendingSubtitleJump: o
636
636
  }), !(R.length === 0 && !y) && !Q) {
637
- if (l?.slideIndex === a && An({
638
- currentIndex: a,
637
+ if (l?.slideIndex === s && An({
638
+ currentIndex: s,
639
639
  resolvedCurrentInteractionElement: h,
640
640
  slideElementList: P,
641
641
  targetSlideIndex: l.slideIndex
642
642
  })) {
643
- Ce.current = null, at.current = !0, K(l.audioKey), et({
643
+ Ce.current = null, st.current = !0, K(l.audioKey), et({
644
644
  audioIndex: l.audioIndex,
645
645
  timeMs: l.timeMs
646
646
  });
@@ -672,7 +672,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
672
672
  _,
673
673
  me,
674
674
  R.length,
675
- a,
675
+ s,
676
676
  y,
677
677
  w,
678
678
  Me,
@@ -704,21 +704,21 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
704
704
  A(!1);
705
705
  return;
706
706
  }
707
- if (an) {
707
+ if (sn) {
708
708
  A(!1);
709
709
  return;
710
710
  }
711
711
  ut("waitingForAudio"), A(!0);
712
712
  }, [
713
- an,
713
+ sn,
714
714
  x,
715
715
  F,
716
716
  O,
717
717
  Q,
718
718
  ye
719
719
  ]), c(() => {
720
- const e = at.current;
721
- at.current = !1, $r({
720
+ const e = st.current;
721
+ st.current = !1, $r({
722
722
  currentAudioKey: w,
723
723
  currentAudioSequenceLength: k.length,
724
724
  currentStepHasSpeakableElement: x,
@@ -746,14 +746,14 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
746
746
  interactionDefaults: yn,
747
747
  interactionDefaultSelectedValues: lr,
748
748
  hasResolvedInteractionInput: hn,
749
- isInteractionReadonly: sr,
749
+ isInteractionReadonly: ar,
750
750
  shouldAutoContinueInteraction: gn
751
751
  } = d(
752
752
  () => Qr(h, {
753
753
  interactionDefaultValueOptions: qe
754
754
  }),
755
755
  [h, qe]
756
- ), ar = !!h?.readonly || sr, Be = Kr({
756
+ ), sr = !!h?.readonly || ar, Be = Kr({
757
757
  hasActiveInteraction: !!h,
758
758
  isInteractionOverlayOpen: ue
759
759
  }), cr = r(
@@ -828,7 +828,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
828
828
  ue,
829
829
  gn
830
830
  ]);
831
- const ur = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ s.jsx(
831
+ const ur = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ a.jsx(
832
832
  In,
833
833
  {
834
834
  className: "content-render-iframe",
@@ -841,7 +841,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
841
841
  content: e.content,
842
842
  enableScaling: Pn
843
843
  }
844
- ) : /* @__PURE__ */ s.jsx(
844
+ ) : /* @__PURE__ */ a.jsx(
845
845
  In,
846
846
  {
847
847
  className: "content-render-iframe",
@@ -861,14 +861,14 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
861
861
  (o, S, b) => S.is_renderable !== !1 ? b : o,
862
862
  -1
863
863
  );
864
- return /* @__PURE__ */ s.jsx(
864
+ return /* @__PURE__ */ a.jsx(
865
865
  Lr,
866
866
  {
867
867
  className: "slide-stage__content flex w-full flex-col gap-4",
868
868
  mode: i,
869
869
  children: e.map((o, S) => {
870
870
  const b = o.type === "html" && o.is_renderable === !1;
871
- return /* @__PURE__ */ s.jsx(
871
+ return /* @__PURE__ */ a.jsx(
872
872
  "div",
873
873
  {
874
874
  ref: t && S === l ? Dt : null,
@@ -906,7 +906,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
906
906
  });
907
907
  }, []), Et = r(
908
908
  (e) => An({
909
- currentIndex: a,
909
+ currentIndex: s,
910
910
  resolvedCurrentInteractionElement: h,
911
911
  slideElementList: P,
912
912
  targetSlideIndex: Ge[e.audioIndex]
@@ -914,13 +914,13 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
914
914
  [
915
915
  h,
916
916
  Ge,
917
- a,
917
+ s,
918
918
  P
919
919
  ]
920
920
  ), mr = r(
921
921
  (e, t) => {
922
922
  const i = I[e.audioIndex]?.audioKey, l = Ge[e.audioIndex];
923
- return !i || l == null || !Et(e) ? !1 : (he(t), X.current = null, A(!1), dt(!1), Xe(!1), Pt(t) && (ce(!0), v(!0)), l === a ? (Ce.current = null, B(), K(i), et(e), !0) : (Te.current = !0, B(), Ce.current = {
923
+ return !i || l == null || !Et(e) ? !1 : (he(t), X.current = null, A(!1), dt(!1), Xe(!1), Pt(t) && (ce(!0), v(!0)), l === s ? (Ce.current = null, B(), K(i), et(e), !0) : (Te.current = !0, B(), Ce.current = {
924
924
  audioIndex: e.audioIndex,
925
925
  audioKey: i,
926
926
  slideIndex: l,
@@ -931,7 +931,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
931
931
  I,
932
932
  Ge,
933
933
  Et,
934
- a,
934
+ s,
935
935
  Yt,
936
936
  et,
937
937
  B,
@@ -1000,7 +1000,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1000
1000
  return;
1001
1001
  }
1002
1002
  if (K(null), dt(!0), A(!1), _) {
1003
- const o = a + 1, S = P[o];
1003
+ const o = s + 1, S = P[o];
1004
1004
  un && S?.type === "interaction" && (X.current = o), M();
1005
1005
  return;
1006
1006
  }
@@ -1008,7 +1008,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1008
1008
  [
1009
1009
  I,
1010
1010
  _,
1011
- a,
1011
+ s,
1012
1012
  w,
1013
1013
  k,
1014
1014
  M,
@@ -1028,7 +1028,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1028
1028
  [T, v]
1029
1029
  ), tt = r(
1030
1030
  (e, t) => {
1031
- const n = st.current;
1031
+ const n = at.current;
1032
1032
  if (!n)
1033
1033
  return null;
1034
1034
  const i = e.getBoundingClientRect(), l = n.getBoundingClientRect();
@@ -1044,12 +1044,12 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1044
1044
  fo(() => {
1045
1045
  const e = we.current;
1046
1046
  if (!Be || !e) {
1047
- se.current = null;
1047
+ ae.current = null;
1048
1048
  return;
1049
1049
  }
1050
- const t = se.current, n = e.getBoundingClientRect();
1050
+ const t = ae.current, n = e.getBoundingClientRect();
1051
1051
  if (!t || ht) {
1052
- se.current = {
1052
+ ae.current = {
1053
1053
  left: n.left,
1054
1054
  top: n.top
1055
1055
  };
@@ -1057,7 +1057,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1057
1057
  }
1058
1058
  const i = t.left - n.left, l = t.top - n.top;
1059
1059
  if (!En(i) && !En(l)) {
1060
- se.current = {
1060
+ ae.current = {
1061
1061
  left: n.left,
1062
1062
  top: n.top
1063
1063
  };
@@ -1072,7 +1072,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1072
1072
  ), b = po(
1073
1073
  S ? xn(o, S) : o
1074
1074
  );
1075
- se.current = {
1075
+ ae.current = {
1076
1076
  left: n.left + b.x - E.x,
1077
1077
  top: n.top + b.y - E.y
1078
1078
  }, Tn(
@@ -1097,7 +1097,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1097
1097
  we.current,
1098
1098
  E
1099
1099
  );
1100
- t && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), Ee.current = {
1100
+ t && (e.preventDefault(), e.currentTarget.hasPointerCapture?.(e.pointerId) !== !0 && e.currentTarget.setPointerCapture(e.pointerId), Ee.current = {
1101
1101
  pointerId: e.pointerId,
1102
1102
  startClientX: e.clientX,
1103
1103
  startClientY: e.clientY,
@@ -1144,10 +1144,10 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1144
1144
  ce(!0), v(!0);
1145
1145
  }, [v]);
1146
1146
  return c(() => {
1147
- const e = Vt.current, i = (e.length > 0 && e.length < ae.length && e.every((o, S) => o === ae[S]) ? R.slice(e.length) : []).some(
1147
+ const e = Vt.current, i = (e.length > 0 && e.length < se.length && e.every((o, S) => o === se[S]) ? R.slice(e.length) : []).some(
1148
1148
  (o) => o.is_new === !1
1149
1149
  );
1150
- if (Vt.current = ae, !i)
1150
+ if (Vt.current = se, !i)
1151
1151
  return;
1152
1152
  const l = window.requestAnimationFrame(() => {
1153
1153
  const o = Ue.current, S = Dt.current;
@@ -1162,7 +1162,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1162
1162
  return () => {
1163
1163
  window.cancelAnimationFrame(l);
1164
1164
  };
1165
- }, [R, ae]), c(() => {
1165
+ }, [R, se]), c(() => {
1166
1166
  if (!Te.current || (Te.current = !1, R.length === 0))
1167
1167
  return;
1168
1168
  const e = window.requestAnimationFrame(() => {
@@ -1171,7 +1171,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1171
1171
  return () => {
1172
1172
  window.cancelAnimationFrame(e);
1173
1173
  };
1174
- }, [R, vn]), /* @__PURE__ */ s.jsxs(
1174
+ }, [R, vn]), /* @__PURE__ */ a.jsxs(
1175
1175
  "section",
1176
1176
  {
1177
1177
  ref: be,
@@ -1188,32 +1188,32 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1188
1188
  onPointerDown: Ar,
1189
1189
  ...On,
1190
1190
  children: [
1191
- Xn ? /* @__PURE__ */ s.jsx(
1191
+ Xn ? /* @__PURE__ */ a.jsx(
1192
1192
  "div",
1193
1193
  {
1194
1194
  "aria-hidden": "true",
1195
1195
  className: "pointer-events-none fixed left-0 top-0 z-[9999] h-[100vh] max-h-[100vh] w-[100vw]"
1196
1196
  }
1197
1197
  ) : null,
1198
- /* @__PURE__ */ s.jsxs(
1198
+ /* @__PURE__ */ a.jsxs(
1199
1199
  "div",
1200
1200
  {
1201
- ref: st,
1201
+ ref: at,
1202
1202
  className: ve(
1203
1203
  "slide__viewport relative h-full min-h-0 w-full",
1204
1204
  fe && "slide__viewport--mobile-landscape",
1205
1205
  fe && !Gn && "slide__viewport--mobile-landscape-native"
1206
1206
  ),
1207
1207
  children: [
1208
- $n ? /* @__PURE__ */ s.jsxs("div", { className: "slide-landscape-header", children: [
1209
- /* @__PURE__ */ s.jsx(
1208
+ $n ? /* @__PURE__ */ a.jsxs("div", { className: "slide-landscape-header", children: [
1209
+ /* @__PURE__ */ a.jsx(
1210
1210
  "button",
1211
1211
  {
1212
1212
  "aria-label": G?.backAriaLabel ?? $.fullscreenBackAriaLabel,
1213
1213
  className: "slide-landscape-header__back",
1214
1214
  onClick: Wn,
1215
1215
  type: "button",
1216
- children: /* @__PURE__ */ s.jsx(
1216
+ children: /* @__PURE__ */ a.jsx(
1217
1217
  lo,
1218
1218
  {
1219
1219
  className: "slide-landscape-header__icon h-6 w-6",
@@ -1222,9 +1222,9 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1222
1222
  )
1223
1223
  }
1224
1224
  ),
1225
- G?.content ? /* @__PURE__ */ s.jsx("div", { className: "min-w-0 flex-1 overflow-hidden", children: G.content }) : null
1225
+ G?.content ? /* @__PURE__ */ a.jsx("div", { className: "min-w-0 flex-1 overflow-hidden", children: G.content }) : null
1226
1226
  ] }) : null,
1227
- /* @__PURE__ */ s.jsx(
1227
+ /* @__PURE__ */ a.jsx(
1228
1228
  "div",
1229
1229
  {
1230
1230
  className: ve(
@@ -1232,10 +1232,10 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1232
1232
  zn && "slide__viewport-content--with-header",
1233
1233
  Ln ? "slide-content--single" : "grid gap-4"
1234
1234
  ),
1235
- children: R.length > 0 ? /* @__PURE__ */ s.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ s.jsx("div", { ref: Ue, className: "slide-stage__layer w-full", children: Qn.map(
1235
+ children: R.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ a.jsx("div", { ref: Ue, className: "slide-stage__layer w-full", children: Qn.map(
1236
1236
  (e, t) => {
1237
1237
  const n = t === Zn;
1238
- return /* @__PURE__ */ s.jsx(
1238
+ return /* @__PURE__ */ a.jsx(
1239
1239
  "div",
1240
1240
  {
1241
1241
  "data-active-step": n ? "true" : void 0,
@@ -1253,7 +1253,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1253
1253
  ) }) }) : null
1254
1254
  }
1255
1255
  ),
1256
- Vn ? /* @__PURE__ */ s.jsx(
1256
+ Vn ? /* @__PURE__ */ a.jsx(
1257
1257
  _r,
1258
1258
  {
1259
1259
  message: yo(
@@ -1263,7 +1263,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1263
1263
  className: "absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2"
1264
1264
  }
1265
1265
  ) : null,
1266
- /* @__PURE__ */ s.jsx(
1266
+ /* @__PURE__ */ a.jsx(
1267
1267
  Nr,
1268
1268
  {
1269
1269
  extraBottomOffset: Un,
@@ -1274,7 +1274,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1274
1274
  subtitleCues: er
1275
1275
  }
1276
1276
  ),
1277
- Be ? /* @__PURE__ */ s.jsx(
1277
+ Be ? /* @__PURE__ */ a.jsx(
1278
1278
  "div",
1279
1279
  {
1280
1280
  ref: we,
@@ -1295,7 +1295,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1295
1295
  _t(e.target) && We(!0);
1296
1296
  },
1297
1297
  style: tr,
1298
- children: /* @__PURE__ */ s.jsx(
1298
+ children: /* @__PURE__ */ a.jsx(
1299
1299
  Cn,
1300
1300
  {
1301
1301
  content: String(h?.content ?? ""),
@@ -1311,17 +1311,17 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1311
1311
  onDragHandlePointerDown: br,
1312
1312
  onDragHandlePointerMove: xr,
1313
1313
  onDragHandlePointerUp: Sn,
1314
- readonly: ar,
1314
+ readonly: sr,
1315
1315
  title: oe?.title ?? ot ?? $.interactionTexts.title
1316
1316
  }
1317
1317
  )
1318
1318
  }
1319
1319
  ) : null,
1320
- g ? /* @__PURE__ */ s.jsx(
1320
+ g ? /* @__PURE__ */ a.jsx(
1321
1321
  Vr.Provider,
1322
1322
  {
1323
1323
  value: Nn,
1324
- children: /* @__PURE__ */ s.jsx(
1324
+ children: /* @__PURE__ */ a.jsx(
1325
1325
  Fr,
1326
1326
  {
1327
1327
  audioList: I,
@@ -1355,7 +1355,7 @@ const vo = (u, f) => u.length === f.length && u.every((H, Se) => {
1355
1355
  onFullscreen: fr,
1356
1356
  isFullscreen: Wt,
1357
1357
  mobileViewMode: J,
1358
- settingsPortalContainer: st.current,
1358
+ settingsPortalContainer: at.current,
1359
1359
  onMobileViewModeChange: Jn,
1360
1360
  onControlsPointerEnter: Sr,
1361
1361
  onControlsPointerLeave: Ir,