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