markdown-flow-ui 0.1.128 → 0.1.129
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.
- package/dist/_virtual/index.cjs8.js +1 -1
- package/dist/_virtual/index.cjs9.js +1 -1
- package/dist/_virtual/index.es8.js +2 -2
- package/dist/_virtual/index.es9.js +2 -2
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/Slide/Player.cjs.js +1 -1
- package/dist/components/Slide/Player.cjs.js.map +1 -1
- package/dist/components/Slide/Player.d.ts +17 -1
- package/dist/components/Slide/Player.es.js +614 -543
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs.js +1 -1
- package/dist/components/Slide/Slide.cjs.js.map +1 -1
- package/dist/components/Slide/Slide.es.js +673 -595
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/constants.cjs.js +1 -1
- package/dist/components/Slide/constants.cjs.js.map +1 -1
- package/dist/components/Slide/constants.d.ts +2 -2
- package/dist/components/Slide/constants.es.js +2 -2
- package/dist/components/Slide/constants.es.js.map +1 -1
- package/dist/components/Slide/useSlide.cjs.js +1 -1
- package/dist/components/Slide/useSlide.cjs.js.map +1 -1
- package/dist/components/Slide/useSlide.d.ts +2 -0
- package/dist/components/Slide/useSlide.es.js +124 -105
- package/dist/components/Slide/useSlide.es.js.map +1 -1
- package/dist/components/Slide/utils/audioSegments.cjs.js +2 -0
- package/dist/components/Slide/utils/audioSegments.cjs.js.map +1 -0
- package/dist/components/Slide/utils/audioSegments.d.ts +2 -0
- package/dist/components/Slide/utils/audioSegments.es.js +21 -0
- package/dist/components/Slide/utils/audioSegments.es.js.map +1 -0
- package/dist/components/Slide/utils/audioSegments.test.d.ts +1 -0
- package/dist/components/Slide/utils/playbackSequence.cjs.js +1 -1
- package/dist/components/Slide/utils/playbackSequence.cjs.js.map +1 -1
- package/dist/components/Slide/utils/playbackSequence.d.ts +10 -0
- package/dist/components/Slide/utils/playbackSequence.es.js +15 -6
- package/dist/components/Slide/utils/playbackSequence.es.js.map +1 -1
- package/dist/components/Slide/utils/subtitleCue.cjs.js +2 -2
- package/dist/components/Slide/utils/subtitleCue.cjs.js.map +1 -1
- package/dist/components/Slide/utils/subtitleCue.d.ts +21 -0
- package/dist/components/Slide/utils/subtitleCue.es.js +146 -49
- package/dist/components/Slide/utils/subtitleCue.es.js.map +1 -1
- package/dist/components/Slide/utils/subtitleJumpNavigation.cjs.js +2 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.cjs.js.map +1 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +10 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.es.js +22 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.es.js.map +1 -0
- package/dist/components/Slide/utils/subtitleJumpNavigation.test.d.ts +1 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs.js +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/node_modules/classnames/index.cjs.js +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.cjs.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.cjs.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.es.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.es.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.cjs.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.cjs.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.es.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-cw.es.js.map +0 -1
|
@@ -1,644 +1,685 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { isSandboxInteractionMessage as
|
|
4
|
-
import { cn as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { j as o } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { memo as On, useId as jn, useRef as p, useMemo as d, useCallback as r, useState as f, useEffect as l } from "react";
|
|
3
|
+
import { isSandboxInteractionMessage as Ln } from "../../lib/sandboxInteraction.es.js";
|
|
4
|
+
import { cn as te } from "../../lib/utils.es.js";
|
|
5
|
+
import Kn from "../ui/loading-overlay-card.es.js";
|
|
6
|
+
import qn from "../ContentRender/ContentRender.es.js";
|
|
7
|
+
import Kt from "../ContentRender/IframeSandbox.es.js";
|
|
8
8
|
import "../ui/inputGroup/input-group.es.js";
|
|
9
|
-
import { getInteractionDefaultValues as
|
|
10
|
-
import { isMobileDevice as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { PlayerKeyboardShortcutContext as
|
|
16
|
-
import { activatePlayerKeyboardShortcutOwner as
|
|
17
|
-
import { DEFAULT_MOBILE_VIEW_MODE as
|
|
18
|
-
import { shouldPresentInteractionOverlay as
|
|
19
|
-
import { shouldWakePlayerControlsAfterNavigation as
|
|
20
|
-
import { shouldAutoAdvanceIntoAppendedMarker as
|
|
21
|
-
import { getPlaybackSequenceTransition as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
9
|
+
import { getInteractionDefaultValues as Vn, getInteractionDefaultSelectedValues as Dn } from "../../lib/interaction-defaults.es.js";
|
|
10
|
+
import { isMobileDevice as Un, isLandscapeViewport as qt, subscribeMobileDeviceChange as Gn } from "../../lib/mobileDevice.es.js";
|
|
11
|
+
import zn from "./Player.es.js";
|
|
12
|
+
import Hn from "./SubtitleOverlay.es.js";
|
|
13
|
+
import Jn from "./useSlide.es.js";
|
|
14
|
+
import Wn from "./useWakePlayerFromIframe.es.js";
|
|
15
|
+
import { PlayerKeyboardShortcutContext as $n } from "./utils/playerKeyboardShortcutContext.es.js";
|
|
16
|
+
import { activatePlayerKeyboardShortcutOwner as Yn } from "./utils/playerKeyboardShortcuts.es.js";
|
|
17
|
+
import { DEFAULT_MOBILE_VIEW_MODE as Me, resolveMobileViewModeState as Xn } from "./utils/mobileScreenMode.es.js";
|
|
18
|
+
import { shouldPresentInteractionOverlay as Qn } from "./utils/interactionPlayback.es.js";
|
|
19
|
+
import { shouldWakePlayerControlsAfterNavigation as Xe } from "./utils/playerNavigationContext.es.js";
|
|
20
|
+
import { shouldAutoAdvanceIntoAppendedMarker as Zn } from "./utils/appendedMarkerAdvance.es.js";
|
|
21
|
+
import { getPlaybackSequenceTransition as er, shouldStartDefaultAudioSequence as tr } from "./utils/playbackSequence.es.js";
|
|
22
|
+
import { hasResolvedInteractionElement as nr, canReachSubtitleJumpTarget as Vt } from "./utils/subtitleJumpNavigation.es.js";
|
|
23
|
+
import { resolvePlayerCustomActionElement as rr, getPlayerCustomActionCount as or } from "./utils/playerCustomActions.es.js";
|
|
24
|
+
import { createPlaybackTimeStore as sr } from "./utils/playbackTimeStore.es.js";
|
|
25
|
+
import { shouldUseAutoAdvanceToggle as ir } from "./utils/playerToggleMode.es.js";
|
|
25
26
|
/* empty css */
|
|
26
|
-
import
|
|
27
|
-
const
|
|
27
|
+
import lr from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
|
|
28
|
+
const ur = 2e3, cr = 300, ar = 160, dr = 16, Qe = "waitingForAudio", Dt = {
|
|
28
29
|
waitingForAudio: "Waiting for current slide audio...",
|
|
29
30
|
loadingAudio: "Loading current slide audio...",
|
|
30
31
|
waitingForMoreAudio: "Waiting for more current slide audio..."
|
|
31
|
-
},
|
|
32
|
+
}, fr = (b, P) => typeof b == "string" ? b : b[P] ?? b[Qe] ?? Dt[P], mr = (b, P) => P ? b !== "loadingAudio" : !1, Ut = On(
|
|
32
33
|
({
|
|
33
|
-
content:
|
|
34
|
-
title:
|
|
34
|
+
content: b,
|
|
35
|
+
title: P,
|
|
35
36
|
defaultButtonText: _,
|
|
36
|
-
defaultInputText:
|
|
37
|
-
defaultSelectedValues:
|
|
38
|
-
confirmButtonText:
|
|
39
|
-
copyButtonText:
|
|
40
|
-
copiedButtonText:
|
|
41
|
-
onSend:
|
|
42
|
-
readonly:
|
|
43
|
-
}) => /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
37
|
+
defaultInputText: ne,
|
|
38
|
+
defaultSelectedValues: E,
|
|
39
|
+
confirmButtonText: G,
|
|
40
|
+
copyButtonText: re,
|
|
41
|
+
copiedButtonText: Fe,
|
|
42
|
+
onSend: Be,
|
|
43
|
+
readonly: z = !1
|
|
44
|
+
}) => /* @__PURE__ */ o.jsxs("div", { className: "slide-player__interaction-card", children: [
|
|
45
|
+
/* @__PURE__ */ o.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ o.jsx("p", { className: "slide-player__interaction-title", children: P }) }),
|
|
46
|
+
/* @__PURE__ */ o.jsx("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ o.jsx(
|
|
47
|
+
qn,
|
|
47
48
|
{
|
|
48
|
-
content:
|
|
49
|
+
content: b,
|
|
49
50
|
defaultButtonText: _,
|
|
50
|
-
defaultInputText:
|
|
51
|
-
defaultSelectedValues:
|
|
52
|
-
confirmButtonText:
|
|
53
|
-
copyButtonText:
|
|
54
|
-
copiedButtonText:
|
|
55
|
-
onSend:
|
|
56
|
-
readonly:
|
|
51
|
+
defaultInputText: ne,
|
|
52
|
+
defaultSelectedValues: E,
|
|
53
|
+
confirmButtonText: G,
|
|
54
|
+
copyButtonText: re,
|
|
55
|
+
copiedButtonText: Fe,
|
|
56
|
+
onSend: Be,
|
|
57
|
+
readonly: z,
|
|
57
58
|
sandboxMode: "content"
|
|
58
59
|
}
|
|
59
60
|
) })
|
|
60
61
|
] })
|
|
61
62
|
);
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
return _.sequence_number ===
|
|
66
|
-
}),
|
|
67
|
-
elementList:
|
|
68
|
-
showPlayer:
|
|
63
|
+
Ut.displayName = "InteractionOverlayCard";
|
|
64
|
+
const pr = (b, P) => b.length === P.length && b.every((_, ne) => {
|
|
65
|
+
const E = P[ne];
|
|
66
|
+
return _.sequence_number === E?.sequence_number && _.type === E?.type && _.content === E?.content;
|
|
67
|
+
}), Gr = ({
|
|
68
|
+
elementList: b = [],
|
|
69
|
+
showPlayer: P = !0,
|
|
69
70
|
playerAlwaysVisible: _ = !1,
|
|
70
|
-
playerClassName:
|
|
71
|
-
fullscreenHeader:
|
|
72
|
-
playerCustomActions:
|
|
73
|
-
playerCustomActionPauseOnActive:
|
|
74
|
-
bufferingText:
|
|
75
|
-
interactionTitle:
|
|
76
|
-
interactionTexts:
|
|
77
|
-
playerTexts:
|
|
78
|
-
playerAutoHideDelay:
|
|
79
|
-
markerAutoAdvanceDelay:
|
|
80
|
-
interactionDefaultValueOptions:
|
|
81
|
-
onSend:
|
|
82
|
-
onPlayerVisibilityChange:
|
|
83
|
-
onMobileViewModeChange:
|
|
84
|
-
onStepChange:
|
|
85
|
-
enableKeyboardShortcuts:
|
|
86
|
-
enableIframeScaling:
|
|
87
|
-
disableLoadingOverlay:
|
|
88
|
-
className:
|
|
89
|
-
onPointerDown:
|
|
90
|
-
onFocusCapture:
|
|
91
|
-
...
|
|
71
|
+
playerClassName: ne,
|
|
72
|
+
fullscreenHeader: E,
|
|
73
|
+
playerCustomActions: G,
|
|
74
|
+
playerCustomActionPauseOnActive: re = !0,
|
|
75
|
+
bufferingText: Fe = Dt,
|
|
76
|
+
interactionTitle: Be,
|
|
77
|
+
interactionTexts: z,
|
|
78
|
+
playerTexts: Gt,
|
|
79
|
+
playerAutoHideDelay: Ne = 3e3,
|
|
80
|
+
markerAutoAdvanceDelay: Ze = ur,
|
|
81
|
+
interactionDefaultValueOptions: Se,
|
|
82
|
+
onSend: et,
|
|
83
|
+
onPlayerVisibilityChange: Oe,
|
|
84
|
+
onMobileViewModeChange: tt,
|
|
85
|
+
onStepChange: nt,
|
|
86
|
+
enableKeyboardShortcuts: H = !0,
|
|
87
|
+
enableIframeScaling: zt = !0,
|
|
88
|
+
disableLoadingOverlay: R = !1,
|
|
89
|
+
className: Ht,
|
|
90
|
+
onPointerDown: rt,
|
|
91
|
+
onFocusCapture: ot,
|
|
92
|
+
...Jt
|
|
92
93
|
}) => {
|
|
93
|
-
const
|
|
94
|
+
const ye = jn(), ge = p(null), st = p(null), je = p(null), it = p(null), oe = p(null), se = p(null), ie = p(null), le = p(null), lt = p(null), ut = p([]), ue = p(!1), V = p(null), ce = p(null), ct = p(0), at = p(null), dt = p({
|
|
94
95
|
markerCount: 0,
|
|
95
96
|
currentIndex: -1,
|
|
96
97
|
canGoNext: !1
|
|
97
|
-
}), {
|
|
98
|
-
currentElementList:
|
|
99
|
-
stepElementLists:
|
|
100
|
-
slideElementList:
|
|
101
|
-
currentIndex:
|
|
98
|
+
}), Le = p(!1), {
|
|
99
|
+
currentElementList: N,
|
|
100
|
+
stepElementLists: ft,
|
|
101
|
+
slideElementList: I,
|
|
102
|
+
currentIndex: i,
|
|
102
103
|
audioList: h,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
audioSlideIndexes: be,
|
|
105
|
+
currentAudioSequenceIndexes: Ie,
|
|
106
|
+
currentStepHasSpeakableElement: x,
|
|
107
|
+
currentInteractionElement: m,
|
|
108
|
+
canGoPrev: Wt,
|
|
107
109
|
canGoNext: w,
|
|
108
|
-
handlePrev:
|
|
109
|
-
handleNext: T
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
handlePrev: mt,
|
|
111
|
+
handleNext: T,
|
|
112
|
+
handleGoTo: pt
|
|
113
|
+
} = Jn(b), ae = d(() => {
|
|
114
|
+
if (!(i < 0))
|
|
115
|
+
return I[i];
|
|
116
|
+
}, [i, I]), $t = I.filter(
|
|
114
117
|
(e) => e.is_renderable !== !1
|
|
115
|
-
).length === 1, A =
|
|
118
|
+
).length === 1, A = P && (I.length > 0 || h.length > 0 || !!m), Yt = d(
|
|
116
119
|
() => ({
|
|
117
|
-
enabled:
|
|
118
|
-
ownerId:
|
|
120
|
+
enabled: H,
|
|
121
|
+
ownerId: ye
|
|
119
122
|
}),
|
|
120
|
-
[
|
|
121
|
-
),
|
|
122
|
-
!
|
|
123
|
-
}, [
|
|
124
|
-
() =>
|
|
125
|
-
[h,
|
|
126
|
-
), [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
] =
|
|
130
|
-
|
|
131
|
-
), [
|
|
132
|
-
() => O ?
|
|
133
|
-
),
|
|
134
|
-
effectiveMobileViewMode:
|
|
135
|
-
isImmersiveMobileFullscreen:
|
|
136
|
-
isNativeMobileFullscreen:
|
|
137
|
-
shouldRotateFullscreenViewport:
|
|
138
|
-
} =
|
|
139
|
-
() =>
|
|
140
|
-
hasManualMobileViewMode:
|
|
123
|
+
[H, ye]
|
|
124
|
+
), K = r(() => {
|
|
125
|
+
!H || !A || Yn(ye);
|
|
126
|
+
}, [H, ye, A]), k = d(
|
|
127
|
+
() => Ie.map((e) => h[e]?.audioKey).filter((e) => !!e),
|
|
128
|
+
[h, Ie]
|
|
129
|
+
), [ht, xe] = f(!0), [Ae, J] = f(!1), [de, vt] = f(!0), [fe, St] = f(!0), [y, q] = f(null), [Xt, yt] = f(null), [Qt, v] = f(!1), [Zt, Ke] = f(Qe), [M, qe] = f(!1), [en, we] = f(!1), [gt, tn] = f(!0), [Ve, De] = f(!1), [s, Ue] = f(), [Pe, _e] = f(!1), [
|
|
130
|
+
nn,
|
|
131
|
+
me
|
|
132
|
+
] = f(0), [bt, rn] = f(!1), O = d(() => Un(), []), [Ee, Ge] = f(
|
|
133
|
+
Me
|
|
134
|
+
), [It, ze] = f(!1), [on, xt] = f(
|
|
135
|
+
() => O ? qt() : !1
|
|
136
|
+
), W = d(() => sr(), []), {
|
|
137
|
+
effectiveMobileViewMode: $,
|
|
138
|
+
isImmersiveMobileFullscreen: Y,
|
|
139
|
+
isNativeMobileFullscreen: At,
|
|
140
|
+
shouldRotateFullscreenViewport: sn
|
|
141
|
+
} = d(
|
|
142
|
+
() => Xn({
|
|
143
|
+
hasManualMobileViewMode: It,
|
|
141
144
|
isMobileDevice: O,
|
|
142
|
-
mobileViewMode:
|
|
145
|
+
mobileViewMode: Ee
|
|
143
146
|
}),
|
|
144
147
|
[
|
|
145
|
-
|
|
148
|
+
It,
|
|
146
149
|
O,
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
on,
|
|
151
|
+
Ee
|
|
149
152
|
]
|
|
150
|
-
),
|
|
153
|
+
), ln = p($), F = A && (_ || ht), un = Y && F, cn = Y && F, an = Y || At, wt = bt && !O, dn = r(
|
|
151
154
|
(e) => {
|
|
152
|
-
|
|
155
|
+
ze(!0), Ge(e);
|
|
153
156
|
},
|
|
154
157
|
[]
|
|
155
|
-
),
|
|
156
|
-
|
|
157
|
-
}, []),
|
|
158
|
-
|
|
159
|
-
}, [
|
|
160
|
-
|
|
161
|
-
}, []),
|
|
162
|
-
|
|
163
|
-
}, []), { mountedStepStates:
|
|
158
|
+
), Pt = r(() => {
|
|
159
|
+
ze(!1), Ge(Me);
|
|
160
|
+
}, []), fn = r(() => {
|
|
161
|
+
Pt(), E?.onBack?.();
|
|
162
|
+
}, [E, Pt]), _t = r((e) => {
|
|
163
|
+
De(e);
|
|
164
|
+
}, []), Et = r(() => {
|
|
165
|
+
De((e) => !e);
|
|
166
|
+
}, []), { mountedStepStates: mn, currentMountedStateIndex: pn } = d(() => {
|
|
164
167
|
const e = [], t = /* @__PURE__ */ new Map();
|
|
165
|
-
return
|
|
166
|
-
const
|
|
167
|
-
(a) =>
|
|
168
|
+
return ft.forEach((u, c) => {
|
|
169
|
+
const n = e.findIndex(
|
|
170
|
+
(a) => pr(
|
|
168
171
|
a.elementList,
|
|
169
|
-
|
|
172
|
+
u
|
|
170
173
|
)
|
|
171
174
|
);
|
|
172
|
-
if (
|
|
173
|
-
e[
|
|
175
|
+
if (n >= 0) {
|
|
176
|
+
e[n]?.sourceStepIndexes.push(c), t.set(c, n);
|
|
174
177
|
return;
|
|
175
178
|
}
|
|
176
179
|
e.push({
|
|
177
|
-
elementList:
|
|
178
|
-
sourceStepIndexes: [
|
|
179
|
-
}), t.set(
|
|
180
|
+
elementList: u,
|
|
181
|
+
sourceStepIndexes: [c]
|
|
182
|
+
}), t.set(c, e.length - 1);
|
|
180
183
|
}), {
|
|
181
184
|
mountedStepStates: e,
|
|
182
|
-
currentMountedStateIndex:
|
|
185
|
+
currentMountedStateIndex: i >= 0 ? t.get(i) ?? -1 : -1
|
|
183
186
|
};
|
|
184
|
-
}, [
|
|
185
|
-
(e) => (e.audioKey ?? "") ===
|
|
186
|
-
) : -1, [h,
|
|
187
|
+
}, [i, ft]), Ct = d(() => String(i), [i]), g = d(() => y ? h.findIndex(
|
|
188
|
+
(e) => (e.audioKey ?? "") === y
|
|
189
|
+
) : -1, [h, y]), He = d(
|
|
187
190
|
() => g >= 0 ? h[g] : void 0,
|
|
188
191
|
[h, g]
|
|
189
|
-
),
|
|
190
|
-
() =>
|
|
191
|
-
[
|
|
192
|
-
),
|
|
192
|
+
), hn = He?.element?.subtitle_cues ?? [], Ce = d(
|
|
193
|
+
() => k[0] ?? "none",
|
|
194
|
+
[k]
|
|
195
|
+
), Je = d(
|
|
193
196
|
() => ({
|
|
194
|
-
currentElement:
|
|
197
|
+
currentElement: rr({
|
|
195
198
|
currentAudioIndex: g,
|
|
196
|
-
currentAudioSequenceIndexes:
|
|
199
|
+
currentAudioSequenceIndexes: Ie,
|
|
197
200
|
audioList: h,
|
|
198
|
-
currentInteractionElement:
|
|
199
|
-
currentStepElement:
|
|
201
|
+
currentInteractionElement: s,
|
|
202
|
+
currentStepElement: ae
|
|
200
203
|
}),
|
|
201
|
-
currentIndex:
|
|
202
|
-
currentStepElement:
|
|
203
|
-
isActive:
|
|
204
|
-
setActive:
|
|
205
|
-
toggleActive:
|
|
204
|
+
currentIndex: i,
|
|
205
|
+
currentStepElement: ae,
|
|
206
|
+
isActive: Ve,
|
|
207
|
+
setActive: _t,
|
|
208
|
+
toggleActive: Et
|
|
206
209
|
}),
|
|
207
210
|
[
|
|
208
|
-
|
|
211
|
+
s,
|
|
209
212
|
h,
|
|
210
213
|
g,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
Ie,
|
|
215
|
+
i,
|
|
216
|
+
ae,
|
|
217
|
+
Ve,
|
|
218
|
+
_t,
|
|
219
|
+
Et
|
|
217
220
|
]
|
|
218
|
-
),
|
|
219
|
-
() =>
|
|
220
|
-
|
|
221
|
-
|
|
221
|
+
), We = d(
|
|
222
|
+
() => or(
|
|
223
|
+
G,
|
|
224
|
+
Je
|
|
222
225
|
),
|
|
223
|
-
[
|
|
224
|
-
),
|
|
226
|
+
[Je, G]
|
|
227
|
+
), vn = d(
|
|
225
228
|
() => ({
|
|
226
|
-
"--slide-player-custom-action-count": String(
|
|
229
|
+
"--slide-player-custom-action-count": String(We),
|
|
227
230
|
"--slide-player-mobile-control-count": String(
|
|
228
|
-
|
|
231
|
+
We + 4
|
|
229
232
|
)
|
|
230
233
|
}),
|
|
231
|
-
[
|
|
232
|
-
),
|
|
233
|
-
|
|
234
|
-
)}` : "none", [
|
|
235
|
-
() => [
|
|
236
|
-
[
|
|
237
|
-
),
|
|
234
|
+
[We]
|
|
235
|
+
), Rt = k.length > 0, Tt = d(() => m ? `${m.sequence_number ?? "none"}:${String(
|
|
236
|
+
m.content ?? ""
|
|
237
|
+
)}` : "none", [m]), pe = d(
|
|
238
|
+
() => [Ct, Tt].join("|"),
|
|
239
|
+
[Tt, Ct]
|
|
240
|
+
), Sn = d(
|
|
238
241
|
() => [
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
pe,
|
|
243
|
+
He?.audioKey ?? "none",
|
|
241
244
|
String(g)
|
|
242
245
|
].join("|"),
|
|
243
|
-
[g,
|
|
244
|
-
),
|
|
245
|
-
(t) => t.audioKey ===
|
|
246
|
-
)?.audioUrl?.trim() ?? "", [h,
|
|
247
|
-
() =>
|
|
246
|
+
[g, He?.audioKey, pe]
|
|
247
|
+
), kt = !!d(() => !Ce || Ce === "none" ? "" : h.find(
|
|
248
|
+
(t) => t.audioKey === Ce
|
|
249
|
+
)?.audioUrl?.trim() ?? "", [h, Ce]), D = re && !!G && Ve, he = d(
|
|
250
|
+
() => ir({
|
|
248
251
|
canGoNext: w,
|
|
249
252
|
currentAudioIndex: g,
|
|
250
|
-
currentStepHasSpeakableElement:
|
|
251
|
-
hasInteraction: !!
|
|
253
|
+
currentStepHasSpeakableElement: x,
|
|
254
|
+
hasInteraction: !!m
|
|
252
255
|
}),
|
|
253
256
|
[
|
|
254
257
|
w,
|
|
255
258
|
g,
|
|
256
|
-
|
|
257
|
-
|
|
259
|
+
m,
|
|
260
|
+
x
|
|
258
261
|
]
|
|
259
|
-
),
|
|
260
|
-
ne.current !== null && (window.clearTimeout(ne.current), ne.current = null);
|
|
261
|
-
}, []), j = n(() => {
|
|
262
|
+
), U = r(() => {
|
|
262
263
|
oe.current !== null && (window.clearTimeout(oe.current), oe.current = null);
|
|
263
|
-
}, []),
|
|
264
|
+
}, []), j = r(() => {
|
|
265
|
+
ie.current !== null && (window.clearTimeout(ie.current), ie.current = null);
|
|
266
|
+
}, []), B = r(() => {
|
|
267
|
+
le.current !== null && (window.clearTimeout(le.current), le.current = null);
|
|
268
|
+
}, []), X = r(() => {
|
|
264
269
|
se.current !== null && (window.clearTimeout(se.current), se.current = null);
|
|
265
|
-
}, []),
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
270
|
+
}, []), L = r(
|
|
271
|
+
(e = {}) => {
|
|
272
|
+
X(), j(), B(), q(null), W.reset(), v(!1), Ke(Qe), qe(!1), we(!1), yt(null), e.preservePendingSubtitleJump || (ce.current = null), Ue(void 0), _e(!1), me(0);
|
|
273
|
+
},
|
|
274
|
+
[
|
|
275
|
+
X,
|
|
276
|
+
j,
|
|
277
|
+
B,
|
|
278
|
+
W
|
|
279
|
+
]
|
|
280
|
+
), Re = r(
|
|
281
|
+
(e) => {
|
|
282
|
+
ct.current += 1, yt({
|
|
283
|
+
...e,
|
|
284
|
+
id: ct.current
|
|
285
|
+
});
|
|
286
|
+
},
|
|
287
|
+
[]
|
|
288
|
+
), Q = r(() => {
|
|
289
|
+
const e = k[0];
|
|
290
|
+
return e ? (q(e), !0) : !1;
|
|
291
|
+
}, [k]), Te = r(() => {
|
|
292
|
+
j(), B(), _e(!1), me(0), !Q() && w && T();
|
|
279
293
|
}, [
|
|
280
294
|
w,
|
|
281
295
|
j,
|
|
282
|
-
|
|
296
|
+
B,
|
|
283
297
|
T,
|
|
284
|
-
|
|
285
|
-
]),
|
|
298
|
+
Q
|
|
299
|
+
]), Mt = r(
|
|
286
300
|
(e) => {
|
|
287
|
-
if (
|
|
301
|
+
if (B(), !e)
|
|
288
302
|
return;
|
|
289
303
|
const t = () => {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
),
|
|
304
|
+
le.current = null, me(
|
|
305
|
+
ar
|
|
306
|
+
), _e(!0), V.current = null;
|
|
293
307
|
};
|
|
294
|
-
|
|
308
|
+
le.current = window.setTimeout(
|
|
295
309
|
t,
|
|
296
|
-
|
|
310
|
+
cr
|
|
297
311
|
);
|
|
298
312
|
},
|
|
299
|
-
[
|
|
300
|
-
),
|
|
301
|
-
(e =
|
|
302
|
-
A && (
|
|
303
|
-
|
|
304
|
-
},
|
|
313
|
+
[B]
|
|
314
|
+
), S = r(
|
|
315
|
+
(e = Ae) => {
|
|
316
|
+
A && (xe(!0), U(), !(_ || !e || Ne <= 0) && (oe.current = window.setTimeout(() => {
|
|
317
|
+
xe(!1), oe.current = null;
|
|
318
|
+
}, Ne)));
|
|
305
319
|
},
|
|
306
320
|
[
|
|
307
|
-
|
|
308
|
-
|
|
321
|
+
U,
|
|
322
|
+
Ae,
|
|
309
323
|
_,
|
|
310
|
-
|
|
324
|
+
Ne,
|
|
311
325
|
A
|
|
312
326
|
]
|
|
313
|
-
),
|
|
314
|
-
|
|
315
|
-
}, []),
|
|
327
|
+
), ve = !!nr(m), Z = !!m && !ve, yn = r((e) => {
|
|
328
|
+
vt(e);
|
|
329
|
+
}, []), ee = r(
|
|
316
330
|
(e) => {
|
|
317
|
-
const t = e?.shouldContinuePlayback ??
|
|
318
|
-
|
|
331
|
+
const t = e?.shouldContinuePlayback ?? de;
|
|
332
|
+
vt(t);
|
|
319
333
|
},
|
|
320
|
-
[
|
|
334
|
+
[de]
|
|
321
335
|
);
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}, [
|
|
325
|
-
|
|
336
|
+
l(() => {
|
|
337
|
+
St(de), re && De(!1);
|
|
338
|
+
}, [i, de, re]), l(() => () => {
|
|
339
|
+
X(), U(), j(), B();
|
|
326
340
|
}, [
|
|
327
|
-
|
|
341
|
+
X,
|
|
328
342
|
j,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
]),
|
|
332
|
-
|
|
333
|
-
}), [
|
|
334
|
-
O ||
|
|
335
|
-
}, [O,
|
|
343
|
+
B,
|
|
344
|
+
U
|
|
345
|
+
]), l(() => (Oe?.(F), () => {
|
|
346
|
+
Oe?.(!1);
|
|
347
|
+
}), [Oe, F]), l(() => {
|
|
348
|
+
O || Ee === Me || (ze(!1), Ge(Me));
|
|
349
|
+
}, [O, Ee]), l(() => {
|
|
336
350
|
if (!O) {
|
|
337
|
-
|
|
351
|
+
xt(!1);
|
|
338
352
|
return;
|
|
339
353
|
}
|
|
340
354
|
const e = () => {
|
|
341
|
-
|
|
355
|
+
xt(qt());
|
|
342
356
|
};
|
|
343
|
-
return e(),
|
|
344
|
-
}, [O]),
|
|
345
|
-
|
|
346
|
-
}, [
|
|
347
|
-
|
|
348
|
-
}, [
|
|
349
|
-
|
|
350
|
-
}, [
|
|
351
|
-
const e =
|
|
357
|
+
return e(), Gn(e);
|
|
358
|
+
}, [O]), l(() => {
|
|
359
|
+
tt?.($);
|
|
360
|
+
}, [$, tt]), l(() => {
|
|
361
|
+
ln.current = $;
|
|
362
|
+
}, [$]), l(() => {
|
|
363
|
+
nt?.(ae, i);
|
|
364
|
+
}, [i, ae, nt]), l(() => {
|
|
365
|
+
const e = dt.current, t = Zn(
|
|
352
366
|
{
|
|
353
367
|
previousMarkerCount: e.markerCount,
|
|
354
|
-
nextMarkerCount:
|
|
368
|
+
nextMarkerCount: I.length,
|
|
355
369
|
previousIndex: e.currentIndex,
|
|
356
370
|
previousCanGoNext: e.canGoNext,
|
|
357
371
|
nextCanGoNext: w,
|
|
358
|
-
currentAudioKey:
|
|
359
|
-
hasCompletedCurrentStepAudio:
|
|
360
|
-
hasResolvedCurrentInteraction:
|
|
361
|
-
currentStepHasSpeakableElement:
|
|
362
|
-
currentInteractionElement:
|
|
363
|
-
isAutoAdvanceEnabled:
|
|
364
|
-
shouldUseSilentStepAutoAdvanceToggle:
|
|
372
|
+
currentAudioKey: y,
|
|
373
|
+
hasCompletedCurrentStepAudio: M,
|
|
374
|
+
hasResolvedCurrentInteraction: ve,
|
|
375
|
+
currentStepHasSpeakableElement: x,
|
|
376
|
+
currentInteractionElement: m,
|
|
377
|
+
isAutoAdvanceEnabled: fe,
|
|
378
|
+
shouldUseSilentStepAutoAdvanceToggle: he
|
|
365
379
|
}
|
|
366
380
|
);
|
|
367
|
-
|
|
368
|
-
markerCount:
|
|
369
|
-
currentIndex:
|
|
381
|
+
dt.current = {
|
|
382
|
+
markerCount: I.length,
|
|
383
|
+
currentIndex: i,
|
|
370
384
|
canGoNext: w
|
|
371
385
|
}, t && T();
|
|
372
386
|
}, [
|
|
373
387
|
w,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
388
|
+
y,
|
|
389
|
+
i,
|
|
390
|
+
m,
|
|
391
|
+
x,
|
|
378
392
|
T,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
ae,
|
|
393
|
+
M,
|
|
394
|
+
ve,
|
|
382
395
|
fe,
|
|
383
|
-
|
|
384
|
-
|
|
396
|
+
he,
|
|
397
|
+
I.length
|
|
398
|
+
]), l(() => {
|
|
385
399
|
if (!A) {
|
|
386
|
-
|
|
400
|
+
U(), xe(!1);
|
|
387
401
|
return;
|
|
388
402
|
}
|
|
389
403
|
if (_) {
|
|
390
|
-
|
|
404
|
+
U(), xe(!0);
|
|
391
405
|
return;
|
|
392
406
|
}
|
|
393
|
-
|
|
407
|
+
Ae || S(!0);
|
|
394
408
|
}, [
|
|
395
|
-
|
|
396
|
-
|
|
409
|
+
U,
|
|
410
|
+
Ae,
|
|
397
411
|
_,
|
|
398
412
|
A,
|
|
399
|
-
|
|
400
|
-
]),
|
|
413
|
+
S
|
|
414
|
+
]), l(() => {
|
|
401
415
|
if (typeof window > "u")
|
|
402
416
|
return;
|
|
403
417
|
const e = (t) => {
|
|
404
|
-
t.origin === window.location.origin &&
|
|
418
|
+
t.origin === window.location.origin && Ln(t.data) && t.data.eventType === "click" && A && (K(), J(!0), S(!0));
|
|
405
419
|
};
|
|
406
420
|
return window.addEventListener("message", e), () => {
|
|
407
421
|
window.removeEventListener("message", e);
|
|
408
422
|
};
|
|
409
|
-
}, [
|
|
410
|
-
sectionRef:
|
|
423
|
+
}, [K, A, S]), Wn({
|
|
424
|
+
sectionRef: ge,
|
|
411
425
|
enabled: A,
|
|
412
|
-
keyboardShortcutsEnabled:
|
|
413
|
-
onKeyboardShortcut:
|
|
426
|
+
keyboardShortcutsEnabled: H,
|
|
427
|
+
onKeyboardShortcut: K,
|
|
414
428
|
onWake: () => {
|
|
415
|
-
|
|
429
|
+
K(), J(!0), S(!0);
|
|
416
430
|
}
|
|
417
|
-
}),
|
|
418
|
-
const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } =
|
|
419
|
-
previousResetKey:
|
|
420
|
-
nextResetKey:
|
|
421
|
-
currentAudioKey:
|
|
422
|
-
hasCompletedCurrentStepAudio:
|
|
431
|
+
}), l(() => {
|
|
432
|
+
const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = er({
|
|
433
|
+
previousResetKey: at.current,
|
|
434
|
+
nextResetKey: pe,
|
|
435
|
+
currentAudioKey: y,
|
|
436
|
+
hasCompletedCurrentStepAudio: M
|
|
423
437
|
});
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
hasInteraction: !!
|
|
427
|
-
shouldBlockPlaybackForInteraction:
|
|
428
|
-
shouldOpenInteractionOverlayAfterAudio:
|
|
438
|
+
at.current = pe;
|
|
439
|
+
const u = V.current === i && !!m, c = Qn({
|
|
440
|
+
hasInteraction: !!m,
|
|
441
|
+
shouldBlockPlaybackForInteraction: Z,
|
|
442
|
+
shouldOpenInteractionOverlayAfterAudio: u,
|
|
429
443
|
hasPlaybackContextChanged: e,
|
|
430
|
-
hasResolvedCurrentInteraction:
|
|
431
|
-
currentStepHasSpeakableElement:
|
|
432
|
-
});
|
|
433
|
-
if (e &&
|
|
434
|
-
|
|
435
|
-
|
|
444
|
+
hasResolvedCurrentInteraction: ve,
|
|
445
|
+
currentStepHasSpeakableElement: x
|
|
446
|
+
}), n = ce.current, a = n?.slideIndex === i;
|
|
447
|
+
if (e && L({
|
|
448
|
+
preservePendingSubtitleJump: a
|
|
449
|
+
}), !(N.length === 0 && !m) && !D) {
|
|
450
|
+
if (n?.slideIndex === i && Vt({
|
|
451
|
+
currentIndex: i,
|
|
452
|
+
resolvedCurrentInteractionElement: s,
|
|
453
|
+
slideElementList: I,
|
|
454
|
+
targetSlideIndex: n.slideIndex
|
|
455
|
+
})) {
|
|
456
|
+
ce.current = null, Le.current = !0, q(n.audioKey), Re({
|
|
457
|
+
audioIndex: n.audioIndex,
|
|
458
|
+
timeMs: n.timeMs
|
|
459
|
+
});
|
|
436
460
|
return;
|
|
437
461
|
}
|
|
438
|
-
if (
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
462
|
+
if (m && Ue(m), c) {
|
|
463
|
+
Mt(m);
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
if (B(), V.current = null, !!t && !Q()) {
|
|
467
|
+
if (x) {
|
|
468
|
+
if (R) {
|
|
469
|
+
v(!1);
|
|
442
470
|
return;
|
|
443
471
|
}
|
|
444
|
-
|
|
472
|
+
v(!0);
|
|
445
473
|
return;
|
|
446
474
|
}
|
|
447
|
-
if (w && !(
|
|
448
|
-
return
|
|
449
|
-
|
|
450
|
-
},
|
|
451
|
-
|
|
475
|
+
if (w && !(he && !fe))
|
|
476
|
+
return se.current = window.setTimeout(() => {
|
|
477
|
+
se.current = null, T();
|
|
478
|
+
}, Ze), () => {
|
|
479
|
+
X();
|
|
452
480
|
};
|
|
453
481
|
}
|
|
454
482
|
}
|
|
455
483
|
}, [
|
|
484
|
+
s,
|
|
456
485
|
w,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
486
|
+
X,
|
|
487
|
+
N.length,
|
|
488
|
+
i,
|
|
489
|
+
m,
|
|
490
|
+
y,
|
|
491
|
+
pe,
|
|
492
|
+
x,
|
|
493
|
+
Ze,
|
|
464
494
|
T,
|
|
465
|
-
k,
|
|
466
|
-
C,
|
|
467
|
-
ae,
|
|
468
|
-
me,
|
|
469
|
-
Q,
|
|
470
495
|
M,
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
496
|
+
R,
|
|
497
|
+
fe,
|
|
498
|
+
ve,
|
|
499
|
+
Z,
|
|
500
|
+
B,
|
|
501
|
+
L,
|
|
502
|
+
Re,
|
|
503
|
+
Mt,
|
|
504
|
+
I,
|
|
505
|
+
Q,
|
|
506
|
+
D,
|
|
507
|
+
he
|
|
508
|
+
]), l(() => {
|
|
509
|
+
if (R || D || !x || Z) {
|
|
510
|
+
v(!1);
|
|
479
511
|
return;
|
|
480
512
|
}
|
|
481
|
-
if (
|
|
482
|
-
|
|
513
|
+
if (M) {
|
|
514
|
+
v(!1);
|
|
483
515
|
return;
|
|
484
516
|
}
|
|
485
|
-
if (
|
|
486
|
-
|
|
517
|
+
if (Rt) {
|
|
518
|
+
v(!1);
|
|
487
519
|
return;
|
|
488
520
|
}
|
|
489
|
-
|
|
490
|
-
}, [
|
|
491
|
-
bt,
|
|
492
|
-
b,
|
|
493
|
-
k,
|
|
494
|
-
C,
|
|
495
|
-
V,
|
|
496
|
-
Q
|
|
497
|
-
]), s(() => {
|
|
498
|
-
v || R.length === 0 || V || !b || Q || k || J();
|
|
521
|
+
Ke("waitingForAudio"), v(!0);
|
|
499
522
|
}, [
|
|
500
|
-
|
|
523
|
+
Rt,
|
|
524
|
+
x,
|
|
525
|
+
M,
|
|
501
526
|
R,
|
|
502
|
-
|
|
527
|
+
D,
|
|
528
|
+
Z
|
|
529
|
+
]), l(() => {
|
|
530
|
+
const e = Le.current;
|
|
531
|
+
Le.current = !1, tr({
|
|
532
|
+
currentAudioKey: y,
|
|
533
|
+
currentAudioSequenceLength: k.length,
|
|
534
|
+
currentStepHasSpeakableElement: x,
|
|
535
|
+
hasCompletedCurrentStepAudio: M,
|
|
536
|
+
shouldBlockPlaybackForInteraction: Z,
|
|
537
|
+
shouldPausePlaybackForCustomAction: D,
|
|
538
|
+
shouldSkipDefaultAudioStart: e
|
|
539
|
+
}) && Q();
|
|
540
|
+
}, [
|
|
541
|
+
y,
|
|
503
542
|
k,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
g >= 0 ||
|
|
511
|
-
}, [g,
|
|
512
|
-
|
|
513
|
-
}, [
|
|
514
|
-
|
|
515
|
-
|
|
543
|
+
x,
|
|
544
|
+
M,
|
|
545
|
+
D,
|
|
546
|
+
Z,
|
|
547
|
+
Q
|
|
548
|
+
]), l(() => {
|
|
549
|
+
!y || g >= 0 || q(null);
|
|
550
|
+
}, [g, y]), l(() => {
|
|
551
|
+
g >= 0 || W.reset();
|
|
552
|
+
}, [g, W]), l(() => {
|
|
553
|
+
we(!1);
|
|
554
|
+
}, [Sn]);
|
|
555
|
+
const Ft = d(() => {
|
|
556
|
+
if (!s)
|
|
516
557
|
return {};
|
|
517
|
-
const e = !!
|
|
518
|
-
return
|
|
519
|
-
typeof
|
|
520
|
-
|
|
521
|
-
e ? void 0 :
|
|
558
|
+
const e = !!s.user_input?.trim();
|
|
559
|
+
return Vn(
|
|
560
|
+
typeof s.content == "string" ? s.content : void 0,
|
|
561
|
+
s.user_input,
|
|
562
|
+
e ? void 0 : Se
|
|
522
563
|
);
|
|
523
|
-
}, [
|
|
524
|
-
if (!
|
|
564
|
+
}, [s, Se]), gn = d(() => {
|
|
565
|
+
if (!s)
|
|
525
566
|
return;
|
|
526
|
-
const e = !!
|
|
527
|
-
return
|
|
528
|
-
typeof
|
|
529
|
-
|
|
530
|
-
e ? void 0 :
|
|
567
|
+
const e = !!s.user_input?.trim();
|
|
568
|
+
return Dn(
|
|
569
|
+
typeof s.content == "string" ? s.content : void 0,
|
|
570
|
+
s.user_input,
|
|
571
|
+
e ? void 0 : Se
|
|
531
572
|
);
|
|
532
|
-
}, [
|
|
573
|
+
}, [s, Se]), Bt = !!s?.user_input?.trim(), Nt = !!s?.readonly || Bt, Ot = Nt || Bt, $e = !!s && Pe, bn = r(
|
|
533
574
|
(e) => {
|
|
534
|
-
const
|
|
575
|
+
const u = [
|
|
535
576
|
...e.selectedValues ?? [],
|
|
536
577
|
e.inputText?.trim() ?? "",
|
|
537
578
|
e.buttonText?.trim() ?? ""
|
|
538
579
|
].filter(Boolean).join(", ");
|
|
539
|
-
|
|
540
|
-
...
|
|
541
|
-
user_input:
|
|
542
|
-
}),
|
|
580
|
+
Ue((c) => !c || !u ? c : {
|
|
581
|
+
...c,
|
|
582
|
+
user_input: u
|
|
583
|
+
}), et?.(e, s), Te();
|
|
543
584
|
},
|
|
544
|
-
[
|
|
585
|
+
[s, Te, et]
|
|
545
586
|
);
|
|
546
|
-
|
|
587
|
+
l(() => {
|
|
547
588
|
const e = () => {
|
|
548
|
-
|
|
589
|
+
rn(document.fullscreenElement === ge.current);
|
|
549
590
|
};
|
|
550
591
|
return e(), document.addEventListener("fullscreenchange", e), () => {
|
|
551
592
|
document.removeEventListener("fullscreenchange", e);
|
|
552
593
|
};
|
|
553
|
-
}, []),
|
|
554
|
-
if (
|
|
555
|
-
|
|
594
|
+
}, []), l(() => {
|
|
595
|
+
if (!$e) {
|
|
596
|
+
me(0);
|
|
556
597
|
return;
|
|
557
598
|
}
|
|
558
|
-
const e =
|
|
599
|
+
const e = lt.current;
|
|
559
600
|
if (!e)
|
|
560
601
|
return;
|
|
561
602
|
const t = () => {
|
|
562
|
-
const
|
|
603
|
+
const c = Math.ceil(
|
|
563
604
|
e.getBoundingClientRect().height
|
|
564
605
|
);
|
|
565
|
-
|
|
566
|
-
|
|
606
|
+
me(
|
|
607
|
+
c + dr
|
|
567
608
|
);
|
|
568
609
|
};
|
|
569
610
|
if (t(), typeof ResizeObserver > "u")
|
|
570
611
|
return;
|
|
571
|
-
const
|
|
612
|
+
const u = new ResizeObserver(() => {
|
|
572
613
|
t();
|
|
573
614
|
});
|
|
574
|
-
return
|
|
575
|
-
|
|
615
|
+
return u.observe(e), () => {
|
|
616
|
+
u.disconnect();
|
|
576
617
|
};
|
|
577
|
-
}, [
|
|
578
|
-
if (j(), !(!
|
|
579
|
-
return
|
|
580
|
-
|
|
618
|
+
}, [$e]), l(() => {
|
|
619
|
+
if (j(), !(!Pe || !Ot))
|
|
620
|
+
return ie.current = window.setTimeout(() => {
|
|
621
|
+
ie.current = null, Te();
|
|
581
622
|
}, 2e3), () => {
|
|
582
623
|
j();
|
|
583
624
|
};
|
|
584
625
|
}, [
|
|
585
626
|
j,
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
627
|
+
Te,
|
|
628
|
+
Pe,
|
|
629
|
+
Ot
|
|
589
630
|
]);
|
|
590
|
-
const
|
|
591
|
-
|
|
631
|
+
const In = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ o.jsx(o.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ o.jsx(
|
|
632
|
+
Kt,
|
|
592
633
|
{
|
|
593
634
|
className: "content-render-iframe",
|
|
594
|
-
disableLoadingOverlay:
|
|
635
|
+
disableLoadingOverlay: R,
|
|
595
636
|
hideFullScreen: !0,
|
|
596
637
|
mode: "blackboard",
|
|
597
638
|
replaceRootScreenHeightWithFull: t.replaceRootScreenHeightWithFull,
|
|
598
639
|
type: "sandbox",
|
|
599
640
|
content: e.content,
|
|
600
|
-
enableScaling:
|
|
641
|
+
enableScaling: zt
|
|
601
642
|
}
|
|
602
|
-
) : /* @__PURE__ */
|
|
603
|
-
|
|
643
|
+
) : /* @__PURE__ */ o.jsx(
|
|
644
|
+
Kt,
|
|
604
645
|
{
|
|
605
646
|
className: "content-render-iframe",
|
|
606
|
-
disableLoadingOverlay:
|
|
647
|
+
disableLoadingOverlay: R,
|
|
607
648
|
hideFullScreen: !0,
|
|
608
649
|
mode: "blackboard",
|
|
609
650
|
type: "markdown",
|
|
610
651
|
content: e.content
|
|
611
652
|
}
|
|
612
|
-
) : null,
|
|
653
|
+
) : null, xn = (e = [], t = !1) => {
|
|
613
654
|
if (e.length === 0)
|
|
614
655
|
return null;
|
|
615
|
-
const
|
|
616
|
-
(
|
|
617
|
-
).length,
|
|
618
|
-
(
|
|
656
|
+
const u = e.filter(
|
|
657
|
+
(n) => n.is_renderable !== !1
|
|
658
|
+
).length, c = e.reduce(
|
|
659
|
+
(n, a, C) => a.is_renderable !== !1 ? C : n,
|
|
619
660
|
-1
|
|
620
661
|
);
|
|
621
|
-
return /* @__PURE__ */
|
|
622
|
-
const
|
|
623
|
-
return /* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ o.jsx("div", { className: "slide-stage__content flex w-full flex-col gap-4", children: e.map((n, a) => {
|
|
663
|
+
const C = n.type === "html" && n.is_renderable === !1;
|
|
664
|
+
return /* @__PURE__ */ o.jsx(
|
|
624
665
|
"div",
|
|
625
666
|
{
|
|
626
|
-
ref: t && a ===
|
|
627
|
-
"aria-hidden":
|
|
628
|
-
className:
|
|
667
|
+
ref: t && a === c ? it : null,
|
|
668
|
+
"aria-hidden": C || void 0,
|
|
669
|
+
className: te(
|
|
629
670
|
"w-full shrink-0",
|
|
630
|
-
|
|
631
|
-
|
|
671
|
+
u === 1 && n.is_renderable !== !1 && "slide-element--single",
|
|
672
|
+
C ? "pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0" : n.is_renderable === !1 && "hidden"
|
|
632
673
|
),
|
|
633
|
-
children:
|
|
634
|
-
replaceRootScreenHeightWithFull:
|
|
674
|
+
children: In(n, {
|
|
675
|
+
replaceRootScreenHeightWithFull: u === 1 && n.type === "html" && n.is_renderable !== !1
|
|
635
676
|
})
|
|
636
677
|
},
|
|
637
|
-
|
|
678
|
+
n.sequence_number ?? `${n.type}-${a}`
|
|
638
679
|
);
|
|
639
680
|
}) });
|
|
640
|
-
},
|
|
641
|
-
const e =
|
|
681
|
+
}, An = r(() => {
|
|
682
|
+
const e = ge.current;
|
|
642
683
|
if (e) {
|
|
643
684
|
if (document.fullscreenElement === e) {
|
|
644
685
|
document.exitFullscreen().catch(() => {
|
|
@@ -648,186 +689,220 @@ const tr = (S, I) => S.length === I.length && S.every((_, ee) => {
|
|
|
648
689
|
e.requestFullscreen?.().catch(() => {
|
|
649
690
|
});
|
|
650
691
|
}
|
|
651
|
-
}, []),
|
|
652
|
-
const e =
|
|
692
|
+
}, []), jt = r(() => {
|
|
693
|
+
const e = je.current;
|
|
653
694
|
e && e.scrollTo({
|
|
654
695
|
top: e.scrollHeight,
|
|
655
696
|
behavior: "smooth"
|
|
656
697
|
});
|
|
657
|
-
}, []),
|
|
698
|
+
}, []), Ye = r(
|
|
699
|
+
(e) => Vt({
|
|
700
|
+
currentIndex: i,
|
|
701
|
+
resolvedCurrentInteractionElement: s,
|
|
702
|
+
slideElementList: I,
|
|
703
|
+
targetSlideIndex: be[e.audioIndex]
|
|
704
|
+
}),
|
|
705
|
+
[
|
|
706
|
+
s,
|
|
707
|
+
be,
|
|
708
|
+
i,
|
|
709
|
+
I
|
|
710
|
+
]
|
|
711
|
+
), wn = r(
|
|
712
|
+
(e, t) => {
|
|
713
|
+
const c = h[e.audioIndex]?.audioKey, n = be[e.audioIndex];
|
|
714
|
+
return !c || n == null || !Ye(e) ? !1 : (ee(t), V.current = null, v(!1), qe(!1), we(!1), Xe(t) && (J(!0), S(!0)), n === i ? (ce.current = null, L(), q(c), Re(e), !0) : (ue.current = !0, L(), ce.current = {
|
|
715
|
+
audioIndex: e.audioIndex,
|
|
716
|
+
audioKey: c,
|
|
717
|
+
slideIndex: n,
|
|
718
|
+
timeMs: e.timeMs
|
|
719
|
+
}, pt(n), !0));
|
|
720
|
+
},
|
|
721
|
+
[
|
|
722
|
+
h,
|
|
723
|
+
be,
|
|
724
|
+
Ye,
|
|
725
|
+
i,
|
|
726
|
+
pt,
|
|
727
|
+
Re,
|
|
728
|
+
L,
|
|
729
|
+
S,
|
|
730
|
+
ee
|
|
731
|
+
]
|
|
732
|
+
), Pn = r(
|
|
658
733
|
(e) => {
|
|
659
|
-
|
|
734
|
+
ee(e), ue.current = !0, V.current = null, v(!1), Xe(e) && (J(!0), S(!0)), L(), mt();
|
|
660
735
|
},
|
|
661
736
|
[
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
737
|
+
mt,
|
|
738
|
+
L,
|
|
739
|
+
S,
|
|
740
|
+
ee
|
|
666
741
|
]
|
|
667
|
-
),
|
|
742
|
+
), _n = r(
|
|
668
743
|
(e) => {
|
|
669
|
-
|
|
744
|
+
ee(e), ue.current = !0, V.current = null, v(!1), Xe(e) && (J(!0), S(!0)), L(), T();
|
|
670
745
|
},
|
|
671
746
|
[
|
|
672
747
|
T,
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
748
|
+
L,
|
|
749
|
+
S,
|
|
750
|
+
ee
|
|
676
751
|
]
|
|
677
|
-
),
|
|
752
|
+
), En = r(
|
|
678
753
|
({
|
|
679
754
|
loading: e,
|
|
680
755
|
reason: t
|
|
681
756
|
}) => {
|
|
682
|
-
if (
|
|
683
|
-
|
|
757
|
+
if (R) {
|
|
758
|
+
v(!1);
|
|
684
759
|
return;
|
|
685
760
|
}
|
|
686
|
-
if (!
|
|
687
|
-
|
|
761
|
+
if (!x || M) {
|
|
762
|
+
v(!1);
|
|
688
763
|
return;
|
|
689
764
|
}
|
|
690
|
-
e && t &&
|
|
765
|
+
e && t && Ke(t), v(mr(t, e));
|
|
691
766
|
},
|
|
692
767
|
[
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
768
|
+
x,
|
|
769
|
+
M,
|
|
770
|
+
R
|
|
696
771
|
]
|
|
697
772
|
);
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}, [
|
|
701
|
-
const
|
|
773
|
+
l(() => {
|
|
774
|
+
R && v(!1);
|
|
775
|
+
}, [R]);
|
|
776
|
+
const Cn = r(
|
|
702
777
|
(e) => {
|
|
703
778
|
const t = h[e]?.audioKey;
|
|
704
|
-
if (!t || !
|
|
779
|
+
if (!t || !y || t !== y)
|
|
705
780
|
return;
|
|
706
|
-
const
|
|
781
|
+
const u = k.findIndex(
|
|
707
782
|
(a) => a === t
|
|
708
783
|
);
|
|
709
|
-
if (
|
|
710
|
-
|
|
784
|
+
if (u < 0) {
|
|
785
|
+
q(null);
|
|
711
786
|
return;
|
|
712
787
|
}
|
|
713
|
-
const
|
|
714
|
-
if (
|
|
715
|
-
|
|
788
|
+
const c = u + 1, n = k[c];
|
|
789
|
+
if (n) {
|
|
790
|
+
q(n);
|
|
716
791
|
return;
|
|
717
792
|
}
|
|
718
|
-
if (
|
|
719
|
-
const a =
|
|
720
|
-
|
|
793
|
+
if (q(null), qe(!0), v(!1), w) {
|
|
794
|
+
const a = i + 1, C = I[a];
|
|
795
|
+
kt && C?.type === "interaction" && (V.current = a), T();
|
|
721
796
|
return;
|
|
722
797
|
}
|
|
723
798
|
},
|
|
724
799
|
[
|
|
725
800
|
h,
|
|
726
801
|
w,
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
802
|
+
i,
|
|
803
|
+
y,
|
|
804
|
+
k,
|
|
730
805
|
T,
|
|
731
|
-
|
|
732
|
-
|
|
806
|
+
kt,
|
|
807
|
+
I
|
|
733
808
|
]
|
|
734
|
-
),
|
|
735
|
-
|
|
736
|
-
}, [
|
|
809
|
+
), Rn = r(() => {
|
|
810
|
+
s && _e((e) => !e);
|
|
811
|
+
}, [s]), Lt = r(
|
|
737
812
|
(e) => {
|
|
738
|
-
e.stopPropagation(), F &&
|
|
813
|
+
e.stopPropagation(), F && S(!0);
|
|
739
814
|
},
|
|
740
|
-
[
|
|
741
|
-
),
|
|
815
|
+
[ht, S]
|
|
816
|
+
), Tn = r(
|
|
742
817
|
(e) => {
|
|
743
|
-
|
|
818
|
+
K(), rt?.(e);
|
|
744
819
|
},
|
|
745
|
-
[
|
|
746
|
-
),
|
|
820
|
+
[K, rt]
|
|
821
|
+
), kn = r(
|
|
747
822
|
(e) => {
|
|
748
|
-
|
|
823
|
+
K(), ot?.(e);
|
|
749
824
|
},
|
|
750
|
-
[
|
|
751
|
-
),
|
|
752
|
-
|
|
753
|
-
}, [
|
|
754
|
-
() =>
|
|
825
|
+
[K, ot]
|
|
826
|
+
), Mn = r(() => {
|
|
827
|
+
J(!0), S(!0);
|
|
828
|
+
}, [S]), ke = d(
|
|
829
|
+
() => N.map(
|
|
755
830
|
(e, t) => `${e.sequence_number ?? `${e.type}-${t}`}:${String(e.is_new ?? "")}`
|
|
756
831
|
),
|
|
757
|
-
[
|
|
832
|
+
[N]
|
|
758
833
|
);
|
|
759
|
-
return
|
|
760
|
-
const e =
|
|
834
|
+
return l(() => {
|
|
835
|
+
const e = ut.current, c = (e.length > 0 && e.length < ke.length && e.every((a, C) => a === ke[C]) ? N.slice(e.length) : []).some(
|
|
761
836
|
(a) => a.is_new === !1
|
|
762
837
|
);
|
|
763
|
-
if (
|
|
838
|
+
if (ut.current = ke, !c)
|
|
764
839
|
return;
|
|
765
|
-
const
|
|
766
|
-
const a =
|
|
767
|
-
if (!a || !
|
|
840
|
+
const n = window.requestAnimationFrame(() => {
|
|
841
|
+
const a = je.current, C = it.current;
|
|
842
|
+
if (!a || !C)
|
|
768
843
|
return;
|
|
769
|
-
const
|
|
844
|
+
const Fn = a.getBoundingClientRect(), Bn = C.getBoundingClientRect(), Nn = a.scrollTop + (Bn.top - Fn.top);
|
|
770
845
|
a.scrollTo({
|
|
771
|
-
top: Math.max(
|
|
846
|
+
top: Math.max(Nn, 0),
|
|
772
847
|
behavior: "smooth"
|
|
773
848
|
});
|
|
774
849
|
});
|
|
775
850
|
return () => {
|
|
776
|
-
window.cancelAnimationFrame(
|
|
851
|
+
window.cancelAnimationFrame(n);
|
|
777
852
|
};
|
|
778
|
-
}, [
|
|
779
|
-
if (!
|
|
853
|
+
}, [N, ke]), l(() => {
|
|
854
|
+
if (!ue.current || (ue.current = !1, N.length === 0))
|
|
780
855
|
return;
|
|
781
856
|
const e = window.requestAnimationFrame(() => {
|
|
782
|
-
|
|
857
|
+
jt();
|
|
783
858
|
});
|
|
784
859
|
return () => {
|
|
785
860
|
window.cancelAnimationFrame(e);
|
|
786
861
|
};
|
|
787
|
-
}, [
|
|
862
|
+
}, [N, jt]), /* @__PURE__ */ o.jsxs(
|
|
788
863
|
"section",
|
|
789
864
|
{
|
|
790
|
-
ref:
|
|
791
|
-
className:
|
|
865
|
+
ref: ge,
|
|
866
|
+
className: te(
|
|
792
867
|
"relative h-full w-full",
|
|
793
868
|
O && "slide--mobile-device",
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
869
|
+
wt && "slide--browser-fullscreen",
|
|
870
|
+
Y && "slide--mobile-landscape",
|
|
871
|
+
At && "slide--mobile-landscape-native",
|
|
872
|
+
Ht
|
|
798
873
|
),
|
|
799
|
-
onClick:
|
|
800
|
-
onFocusCapture:
|
|
801
|
-
onPointerDown:
|
|
802
|
-
...
|
|
874
|
+
onClick: Mn,
|
|
875
|
+
onFocusCapture: kn,
|
|
876
|
+
onPointerDown: Tn,
|
|
877
|
+
...Jt,
|
|
803
878
|
children: [
|
|
804
|
-
|
|
879
|
+
an ? /* @__PURE__ */ o.jsx(
|
|
805
880
|
"div",
|
|
806
881
|
{
|
|
807
882
|
"aria-hidden": "true",
|
|
808
883
|
className: "pointer-events-none fixed left-0 top-0 z-[9999] h-[100vh] max-h-[100vh] w-[100vw]"
|
|
809
884
|
}
|
|
810
885
|
) : null,
|
|
811
|
-
/* @__PURE__ */
|
|
886
|
+
/* @__PURE__ */ o.jsxs(
|
|
812
887
|
"div",
|
|
813
888
|
{
|
|
814
|
-
ref:
|
|
815
|
-
className:
|
|
889
|
+
ref: st,
|
|
890
|
+
className: te(
|
|
816
891
|
"slide__viewport relative h-full min-h-0 w-full",
|
|
817
|
-
|
|
818
|
-
|
|
892
|
+
Y && "slide__viewport--mobile-landscape",
|
|
893
|
+
Y && !sn && "slide__viewport--mobile-landscape-native"
|
|
819
894
|
),
|
|
820
895
|
children: [
|
|
821
|
-
|
|
822
|
-
/* @__PURE__ */
|
|
896
|
+
un ? /* @__PURE__ */ o.jsxs("div", { className: "slide-landscape-header", children: [
|
|
897
|
+
/* @__PURE__ */ o.jsx(
|
|
823
898
|
"button",
|
|
824
899
|
{
|
|
825
|
-
"aria-label":
|
|
900
|
+
"aria-label": E?.backAriaLabel ?? "Back",
|
|
826
901
|
className: "slide-landscape-header__back",
|
|
827
|
-
onClick:
|
|
902
|
+
onClick: fn,
|
|
828
903
|
type: "button",
|
|
829
|
-
children: /* @__PURE__ */
|
|
830
|
-
|
|
904
|
+
children: /* @__PURE__ */ o.jsx(
|
|
905
|
+
lr,
|
|
831
906
|
{
|
|
832
907
|
className: "slide-landscape-header__icon h-6 w-6",
|
|
833
908
|
strokeWidth: 2.25
|
|
@@ -835,28 +910,28 @@ const tr = (S, I) => S.length === I.length && S.every((_, ee) => {
|
|
|
835
910
|
)
|
|
836
911
|
}
|
|
837
912
|
),
|
|
838
|
-
|
|
913
|
+
E?.content ? /* @__PURE__ */ o.jsx("div", { className: "min-w-0 flex-1 overflow-hidden", children: E.content }) : null
|
|
839
914
|
] }) : null,
|
|
840
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ o.jsx(
|
|
841
916
|
"div",
|
|
842
917
|
{
|
|
843
|
-
className:
|
|
918
|
+
className: te(
|
|
844
919
|
"h-full min-h-0 w-full",
|
|
845
|
-
|
|
846
|
-
|
|
920
|
+
cn && "slide__viewport-content--with-header",
|
|
921
|
+
$t ? "slide-content--single" : "grid gap-4"
|
|
847
922
|
),
|
|
848
|
-
children:
|
|
923
|
+
children: N.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ o.jsx("div", { ref: je, className: "slide-stage__layer w-full", children: mn.map(
|
|
849
924
|
(e, t) => {
|
|
850
|
-
const
|
|
851
|
-
return /* @__PURE__ */
|
|
925
|
+
const u = t === pn;
|
|
926
|
+
return /* @__PURE__ */ o.jsx(
|
|
852
927
|
"div",
|
|
853
928
|
{
|
|
854
|
-
"aria-hidden": !
|
|
929
|
+
"aria-hidden": !u || void 0,
|
|
855
930
|
className: "w-full h-full",
|
|
856
|
-
style: { display:
|
|
857
|
-
children:
|
|
931
|
+
style: { display: u ? void 0 : "none" },
|
|
932
|
+
children: xn(
|
|
858
933
|
e.elementList,
|
|
859
|
-
|
|
934
|
+
u
|
|
860
935
|
)
|
|
861
936
|
},
|
|
862
937
|
e.sourceStepIndexes[0] ?? t
|
|
@@ -865,104 +940,107 @@ const tr = (S, I) => S.length === I.length && S.every((_, ee) => {
|
|
|
865
940
|
) }) }) : null
|
|
866
941
|
}
|
|
867
942
|
),
|
|
868
|
-
|
|
869
|
-
|
|
943
|
+
Qt ? /* @__PURE__ */ o.jsx(
|
|
944
|
+
Kn,
|
|
870
945
|
{
|
|
871
|
-
message:
|
|
872
|
-
|
|
873
|
-
|
|
946
|
+
message: fr(
|
|
947
|
+
Fe,
|
|
948
|
+
Zt
|
|
874
949
|
),
|
|
875
950
|
className: "absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2"
|
|
876
951
|
}
|
|
877
952
|
) : null,
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
|
|
953
|
+
/* @__PURE__ */ o.jsx(
|
|
954
|
+
Hn,
|
|
880
955
|
{
|
|
881
|
-
extraBottomOffset:
|
|
956
|
+
extraBottomOffset: nn,
|
|
882
957
|
hasPlayerGap: F,
|
|
883
|
-
isEnabled:
|
|
958
|
+
isEnabled: gt && en,
|
|
884
959
|
isPlayerHidden: A && !F,
|
|
885
|
-
playbackTimeStore:
|
|
886
|
-
subtitleCues:
|
|
960
|
+
playbackTimeStore: W,
|
|
961
|
+
subtitleCues: hn
|
|
887
962
|
}
|
|
888
963
|
),
|
|
889
|
-
|
|
964
|
+
$e ? /* @__PURE__ */ o.jsx(
|
|
890
965
|
"div",
|
|
891
966
|
{
|
|
892
|
-
ref:
|
|
967
|
+
ref: lt,
|
|
893
968
|
"data-player-keyboard-shortcuts-ignore": "true",
|
|
894
|
-
className:
|
|
969
|
+
className: te(
|
|
895
970
|
"slide-interaction-overlay",
|
|
896
971
|
F && A ? "slide-interaction-overlay--with-player" : "slide-interaction-overlay--standalone"
|
|
897
972
|
),
|
|
898
|
-
onClick:
|
|
899
|
-
onPointerDown:
|
|
900
|
-
style:
|
|
901
|
-
children: /* @__PURE__ */
|
|
902
|
-
|
|
973
|
+
onClick: Lt,
|
|
974
|
+
onPointerDown: Lt,
|
|
975
|
+
style: vn,
|
|
976
|
+
children: /* @__PURE__ */ o.jsx(
|
|
977
|
+
Ut,
|
|
903
978
|
{
|
|
904
|
-
content: String(
|
|
905
|
-
defaultButtonText:
|
|
906
|
-
defaultInputText:
|
|
907
|
-
defaultSelectedValues:
|
|
908
|
-
confirmButtonText:
|
|
909
|
-
copyButtonText:
|
|
910
|
-
copiedButtonText:
|
|
911
|
-
onSend:
|
|
912
|
-
readonly:
|
|
913
|
-
title:
|
|
979
|
+
content: String(s?.content ?? ""),
|
|
980
|
+
defaultButtonText: Ft.buttonText ?? "",
|
|
981
|
+
defaultInputText: Ft.inputText ?? "",
|
|
982
|
+
defaultSelectedValues: gn,
|
|
983
|
+
confirmButtonText: z?.confirmButtonText,
|
|
984
|
+
copyButtonText: z?.copyButtonText,
|
|
985
|
+
copiedButtonText: z?.copiedButtonText,
|
|
986
|
+
onSend: bn,
|
|
987
|
+
readonly: Nt,
|
|
988
|
+
title: z?.title ?? Be ?? "Submit the content below to continue."
|
|
914
989
|
}
|
|
915
990
|
)
|
|
916
991
|
}
|
|
917
992
|
) : null,
|
|
918
|
-
A ? /* @__PURE__ */
|
|
919
|
-
|
|
993
|
+
A ? /* @__PURE__ */ o.jsx(
|
|
994
|
+
$n.Provider,
|
|
920
995
|
{
|
|
921
|
-
value:
|
|
922
|
-
children: /* @__PURE__ */
|
|
923
|
-
|
|
996
|
+
value: Yt,
|
|
997
|
+
children: /* @__PURE__ */ o.jsx(
|
|
998
|
+
zn,
|
|
924
999
|
{
|
|
925
1000
|
audioList: h,
|
|
926
|
-
className:
|
|
1001
|
+
className: te(
|
|
927
1002
|
"absolute left-1/2 z-[2] -translate-x-1/2",
|
|
928
|
-
|
|
929
|
-
|
|
1003
|
+
wt ? "bottom-3" : "-bottom-3",
|
|
1004
|
+
ne,
|
|
930
1005
|
!F && "pointer-events-none opacity-0"
|
|
931
1006
|
),
|
|
932
1007
|
currentAudioIndex: g,
|
|
933
|
-
defaultPlaying:
|
|
934
|
-
enableKeyboardShortcuts:
|
|
935
|
-
isPlaybackPaused:
|
|
936
|
-
isAutoAdvanceEnabled:
|
|
937
|
-
hasInteraction: !!
|
|
938
|
-
isInteractionOpen:
|
|
939
|
-
isSubtitleEnabled:
|
|
940
|
-
onAutoAdvanceToggle:
|
|
941
|
-
onLoadingChange:
|
|
1008
|
+
defaultPlaying: de,
|
|
1009
|
+
enableKeyboardShortcuts: H,
|
|
1010
|
+
isPlaybackPaused: D,
|
|
1011
|
+
isAutoAdvanceEnabled: fe,
|
|
1012
|
+
hasInteraction: !!s,
|
|
1013
|
+
isInteractionOpen: Pe,
|
|
1014
|
+
isSubtitleEnabled: gt,
|
|
1015
|
+
onAutoAdvanceToggle: St,
|
|
1016
|
+
onLoadingChange: En,
|
|
942
1017
|
onPlaybackStarted: () => {
|
|
943
|
-
|
|
1018
|
+
we(!0);
|
|
944
1019
|
},
|
|
945
|
-
onPlaybackPreferenceChange:
|
|
946
|
-
onPlaybackTimeChange:
|
|
1020
|
+
onPlaybackPreferenceChange: yn,
|
|
1021
|
+
onPlaybackTimeChange: W.setTime,
|
|
947
1022
|
onSubtitleToggle: () => {
|
|
948
|
-
|
|
1023
|
+
tn((e) => !e);
|
|
949
1024
|
},
|
|
950
1025
|
nextDisabled: !w,
|
|
951
|
-
onEnded:
|
|
952
|
-
onFullscreen:
|
|
953
|
-
isFullscreen:
|
|
954
|
-
mobileViewMode:
|
|
955
|
-
settingsPortalContainer:
|
|
956
|
-
onMobileViewModeChange:
|
|
957
|
-
onInteractionToggle:
|
|
958
|
-
onNext:
|
|
959
|
-
onPrev:
|
|
960
|
-
|
|
1026
|
+
onEnded: Cn,
|
|
1027
|
+
onFullscreen: An,
|
|
1028
|
+
isFullscreen: bt,
|
|
1029
|
+
mobileViewMode: $,
|
|
1030
|
+
settingsPortalContainer: st.current,
|
|
1031
|
+
onMobileViewModeChange: dn,
|
|
1032
|
+
onInteractionToggle: Rn,
|
|
1033
|
+
onNext: _n,
|
|
1034
|
+
onPrev: Pn,
|
|
1035
|
+
onSubtitleJump: wn,
|
|
1036
|
+
canJumpToSubtitleTarget: Ye,
|
|
1037
|
+
prevDisabled: !Wt,
|
|
961
1038
|
showControls: F,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1039
|
+
subtitleSeekRequest: Xt,
|
|
1040
|
+
texts: Gt,
|
|
1041
|
+
customActionContext: Je,
|
|
1042
|
+
customActions: G,
|
|
1043
|
+
useAutoAdvanceToggle: he
|
|
966
1044
|
}
|
|
967
1045
|
)
|
|
968
1046
|
}
|
|
@@ -975,6 +1053,6 @@ const tr = (S, I) => S.length === I.length && S.every((_, ee) => {
|
|
|
975
1053
|
);
|
|
976
1054
|
};
|
|
977
1055
|
export {
|
|
978
|
-
|
|
1056
|
+
Gr as default
|
|
979
1057
|
};
|
|
980
1058
|
//# sourceMappingURL=Slide.es.js.map
|