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