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