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