markdown-flow-ui 0.3.11 → 0.3.13

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