markdown-flow-ui 0.2.26-dev.1 → 0.2.26-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/_virtual/index.es3.js +4 -5
- package/dist/_virtual/index.es3.js.map +1 -1
- package/dist/_virtual/index.es4.js +5 -4
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es8.js +2 -2
- package/dist/_virtual/index.es9.js +2 -2
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.es.js +208 -213
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,60 +1,60 @@
|
|
|
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 Yr } from "react/jsx-runtime";
|
|
2
|
+
import { memo as Gr, useMemo as f, useId as $r, useRef as m, useCallback as r, useState as p, useEffect as s, useLayoutEffect as zr } from "react";
|
|
3
|
+
import { isSandboxInteractionMessage as Xr } from "../../lib/sandboxInteraction.es.js";
|
|
4
4
|
import { cn as we } from "../../lib/utils.es.js";
|
|
5
|
-
import { useResolvedDirection as
|
|
6
|
-
import { getMarkdownFlowDirection as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import { useResolvedDirection as Jr } from "../../lib/useResolvedDirection.es.js";
|
|
6
|
+
import { getMarkdownFlowDirection as Wr, getMarkdownFlowLanguage as jr } from "../../lib/locale.es.js";
|
|
7
|
+
import Qr from "../ui/loading-overlay-card.es.js";
|
|
8
|
+
import Zr from "../ContentRender/ContentRender.es.js";
|
|
9
9
|
import Ln 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 vt, resolveMobileViewModeState as
|
|
20
|
-
import { shouldRenderInteractionOverlay as
|
|
21
|
-
import { resolveMarkdownScalingMode as
|
|
11
|
+
import { isMobileDevice as eo, isLandscapeViewport as Dn, subscribeMobileDeviceChange as to } from "../../lib/mobileDevice.es.js";
|
|
12
|
+
import no from "./Player.es.js";
|
|
13
|
+
import ro from "./MarkdownSlideScaling.es.js";
|
|
14
|
+
import oo from "./SubtitleOverlay.es.js";
|
|
15
|
+
import io from "./useSlide.es.js";
|
|
16
|
+
import lo from "./useWakePlayerFromIframe.es.js";
|
|
17
|
+
import { PlayerKeyboardShortcutContext as ao } from "./utils/playerKeyboardShortcutContext.es.js";
|
|
18
|
+
import { activatePlayerKeyboardShortcutOwner as so } from "./utils/playerKeyboardShortcuts.es.js";
|
|
19
|
+
import { DEFAULT_MOBILE_VIEW_MODE as vt, resolveMobileViewModeState as co } from "./utils/mobileScreenMode.es.js";
|
|
20
|
+
import { shouldRenderInteractionOverlay as uo, clampInteractionOverlayDragOffset as Nn, shouldPresentInteractionOverlay as fo } from "./utils/interactionPlayback.es.js";
|
|
21
|
+
import { resolveMarkdownScalingMode as mo } from "./utils/markdownScaling.es.js";
|
|
22
22
|
import { shouldWakePlayerControlsAfterNavigation as Gt } from "./utils/playerNavigationContext.es.js";
|
|
23
|
-
import { shouldAutoAdvanceIntoAppendedMarker as
|
|
24
|
-
import { resolvePendingStepAudioKey as
|
|
25
|
-
import { getPlaybackSequenceTransition as
|
|
26
|
-
import { hasResolvedInteractionElement as
|
|
27
|
-
import { resolvePlayerCustomActionElement as
|
|
28
|
-
import { createPlaybackTimeStore as
|
|
29
|
-
import { resolveSlideInteractionState as
|
|
30
|
-
import { shouldUseAutoAdvanceToggle as
|
|
31
|
-
import { DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS as
|
|
32
|
-
import { resolveSilentStepAutoAdvanceBehavior as
|
|
33
|
-
import { resolveSlidePlayerVisibility as
|
|
34
|
-
import { getSlideLocaleTexts as
|
|
23
|
+
import { shouldAutoAdvanceIntoAppendedMarker as po } from "./utils/appendedMarkerAdvance.es.js";
|
|
24
|
+
import { resolvePendingStepAudioKey as yo, hasUnplayedStepAudio as ho } from "./utils/stepAudioProgress.es.js";
|
|
25
|
+
import { getPlaybackSequenceTransition as go, shouldStartDefaultAudioSequence as vo } from "./utils/playbackSequence.es.js";
|
|
26
|
+
import { hasResolvedInteractionElement as So, canReachSubtitleJumpTarget as Bn } from "./utils/subtitleJumpNavigation.es.js";
|
|
27
|
+
import { resolvePlayerCustomActionElement as Io, getPlayerCustomActionCount as bo } from "./utils/playerCustomActions.es.js";
|
|
28
|
+
import { createPlaybackTimeStore as Ao } from "./utils/playbackTimeStore.es.js";
|
|
29
|
+
import { resolveSlideInteractionState as wo } from "./utils/interactionResolution.es.js";
|
|
30
|
+
import { shouldUseAutoAdvanceToggle as xo } from "./utils/playerToggleMode.es.js";
|
|
31
|
+
import { DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS as Po, areImageOnlyStepIframeVisualsReady as Eo } from "./utils/imageOnlyStepVisualReady.es.js";
|
|
32
|
+
import { resolveSilentStepAutoAdvanceBehavior as Co } from "./utils/silentStepAutoAdvance.es.js";
|
|
33
|
+
import { resolveSlidePlayerVisibility as To, resolveSlidePlayerLayoutState as Ro } from "./utils/playerVisibility.es.js";
|
|
34
|
+
import { getSlideLocaleTexts as _o, DEFAULT_SLIDE_BUFFERING_TEXTS as Oo } from "./slideI18n.es.js";
|
|
35
35
|
/* empty css */
|
|
36
36
|
import $t from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
|
|
37
|
-
import
|
|
38
|
-
const
|
|
37
|
+
import Mo from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
|
|
38
|
+
const ko = 2e3, Fo = 300, Lo = 160, Do = 16, Vn = 3e3, St = {
|
|
39
39
|
x: 0,
|
|
40
40
|
y: 0
|
|
41
|
-
}, Xt = 0.5,
|
|
41
|
+
}, Xt = 0.5, No = typeof window > "u" ? s : zr, Bo = [
|
|
42
42
|
"button",
|
|
43
43
|
"input",
|
|
44
44
|
"textarea",
|
|
45
45
|
'[contenteditable=""]',
|
|
46
46
|
'[contenteditable="true"]',
|
|
47
47
|
'[contenteditable="plaintext-only"]'
|
|
48
|
-
].join(", "), Jt = "waitingForAudio",
|
|
48
|
+
].join(", "), Jt = "waitingForAudio", Vo = ({
|
|
49
49
|
x: c,
|
|
50
50
|
y: d
|
|
51
51
|
}) => ({
|
|
52
52
|
x: Number(c.toFixed(2)),
|
|
53
53
|
y: Number(d.toFixed(2))
|
|
54
|
-
}), Kn = (c) => Math.abs(c) >= Xt, qn = (c, d) => Math.abs(c.x - d.x) < Xt && Math.abs(c.y - d.y) < Xt,
|
|
54
|
+
}), Kn = (c) => Math.abs(c) >= Xt, qn = (c, d) => Math.abs(c.x - d.x) < Xt && Math.abs(c.y - d.y) < Xt, Ko = (c, d) => typeof c == "string" ? c : c[d] ?? c[Jt] ?? Oo[d], qo = (c, d) => typeof c == "string" ? c : {
|
|
55
55
|
...d,
|
|
56
56
|
...c
|
|
57
|
-
},
|
|
57
|
+
}, Uo = (c, d) => d ? c !== "loadingAudio" : !1, Un = Gr(
|
|
58
58
|
({
|
|
59
59
|
content: c,
|
|
60
60
|
title: d,
|
|
@@ -94,7 +94,7 @@ const Fo = 2e3, Lo = 300, Do = 160, No = 16, Vn = 3e3, St = {
|
|
|
94
94
|
),
|
|
95
95
|
/* @__PURE__ */ u("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ u("p", { className: "slide-player__interaction-title", children: d }) }),
|
|
96
96
|
/* @__PURE__ */ u("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ u(
|
|
97
|
-
|
|
97
|
+
Zr,
|
|
98
98
|
{
|
|
99
99
|
content: c,
|
|
100
100
|
locale: xe,
|
|
@@ -114,10 +114,10 @@ const Fo = 2e3, Lo = 300, Do = 160, No = 16, Vn = 3e3, St = {
|
|
|
114
114
|
] })
|
|
115
115
|
);
|
|
116
116
|
Un.displayName = "InteractionOverlayCard";
|
|
117
|
-
const
|
|
117
|
+
const Ho = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
118
118
|
const $ = d[xe];
|
|
119
119
|
return G.sequence_number === $?.sequence_number && G.type === $?.type && G.content === $?.content;
|
|
120
|
-
}), zt = (c) => c instanceof HTMLElement && !!c.closest(
|
|
120
|
+
}), zt = (c) => c instanceof HTMLElement && !!c.closest(Bo), Ti = ({
|
|
121
121
|
elementList: c = [],
|
|
122
122
|
locale: d,
|
|
123
123
|
playerEnabled: G,
|
|
@@ -131,7 +131,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
131
131
|
interactionTexts: X,
|
|
132
132
|
playerTexts: bt,
|
|
133
133
|
playerAutoHideDelay: Ee = 3e3,
|
|
134
|
-
markerAutoAdvanceDelay: ze =
|
|
134
|
+
markerAutoAdvanceDelay: ze = ko,
|
|
135
135
|
showSlideProgress: At = !1,
|
|
136
136
|
interactionDefaultValueOptions: Xe,
|
|
137
137
|
onSend: Je,
|
|
@@ -151,8 +151,8 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
151
151
|
onFocusCapture: Zt,
|
|
152
152
|
...Jn
|
|
153
153
|
}) => {
|
|
154
|
-
const J = zn ??
|
|
155
|
-
() =>
|
|
154
|
+
const J = zn ?? Wr(d), Te = Xn ?? jr(d), N = f(() => _o(d), [d]), Wn = f(
|
|
155
|
+
() => qo(
|
|
156
156
|
$e,
|
|
157
157
|
N.bufferingText
|
|
158
158
|
),
|
|
@@ -160,17 +160,17 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
160
160
|
), {
|
|
161
161
|
playerEnabled: jn,
|
|
162
162
|
playerControlsVisibility: W
|
|
163
|
-
} =
|
|
163
|
+
} = To({
|
|
164
164
|
playerEnabled: G,
|
|
165
165
|
playerControlsVisibility: xe
|
|
166
|
-
}), We =
|
|
166
|
+
}), We = $r(), ce = m(null), { resolvedDirection: Qn } = Jr(ce, J), wt = m(null), je = m(null), en = m(null), ue = m(null), Qe = m(!1), Re = m(null), Ze = m(null), j = m(null), _e = m(null), Oe = m(null), de = m(null), Me = m(null), tn = m([]), ke = m(!1), Q = m(null), Fe = m(null), nn = m(0), xt = m(null), rn = m({
|
|
167
167
|
markerCount: 0,
|
|
168
168
|
currentIndex: -1,
|
|
169
169
|
canGoNext: !1
|
|
170
170
|
}), Pt = m(!1), {
|
|
171
171
|
currentElementList: T,
|
|
172
172
|
stepElementLists: on,
|
|
173
|
-
slideElementList:
|
|
173
|
+
slideElementList: C,
|
|
174
174
|
currentIndex: a,
|
|
175
175
|
audioList: y,
|
|
176
176
|
audioSlideIndexes: Z,
|
|
@@ -182,48 +182,43 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
182
182
|
handlePrev: ln,
|
|
183
183
|
handleNext: L,
|
|
184
184
|
handleGoTo: tt
|
|
185
|
-
} =
|
|
185
|
+
} = io(c), Le = f(() => {
|
|
186
186
|
if (!(a < 0))
|
|
187
|
-
return
|
|
188
|
-
}, [a,
|
|
187
|
+
return C[a];
|
|
188
|
+
}, [a, C]), fe = f(
|
|
189
189
|
() => T.map(
|
|
190
190
|
(e, t) => `${e.sequence_number ?? `${e.type}-${t}`}:${String(e.is_new ?? "")}`
|
|
191
191
|
),
|
|
192
192
|
[T]
|
|
193
|
-
), an =
|
|
194
|
-
(e) => e.is_renderable !== !1
|
|
195
|
-
).length, er = Math.max(
|
|
196
|
-
x.slice(0, a + 1).filter((e) => e.is_renderable !== !1).length - 1,
|
|
197
|
-
0
|
|
198
|
-
), tr = an === 1, A = jn && (x.length > 0 || y.length > 0 || !!h), nr = f(
|
|
193
|
+
), an = C.length, er = an === 1, A = jn && (C.length > 0 || y.length > 0 || !!h), tr = f(
|
|
199
194
|
() => ({
|
|
200
195
|
enabled: se,
|
|
201
196
|
ownerId: We
|
|
202
197
|
}),
|
|
203
198
|
[se, We]
|
|
204
199
|
), H = r(() => {
|
|
205
|
-
!se || !A ||
|
|
200
|
+
!se || !A || so(We);
|
|
206
201
|
}, [se, We, A]), _ = f(
|
|
207
202
|
() => et.map((e) => y[e]?.audioKey).filter((e) => !!e),
|
|
208
203
|
[y, et]
|
|
209
|
-
), [
|
|
204
|
+
), [nr, De] = p(!0), [nt, me] = p(!1), [Et, Ct] = p(!0), [Ne, sn] = p(!0), [x, B] = p(null), [rt, cn] = p(null), Be = m(
|
|
210
205
|
null
|
|
211
|
-
), un = m(null), [
|
|
206
|
+
), un = m(null), [rr, dn] = p(null), [or, w] = p(!1), [ir, Tt] = p(Jt), [O, ot] = p(!1), it = m(/* @__PURE__ */ new Set()), [lr, lt] = p(!1), [fn, ar] = p(!0), [Rt, _t] = p(!1), [S, Ot] = p(), [pe, at] = p(!1), [mn, st] = p(!1), [P, Mt] = p(
|
|
212
207
|
St
|
|
213
208
|
), [kt, Ft] = p(!1), [
|
|
214
|
-
|
|
209
|
+
sr,
|
|
215
210
|
ye
|
|
216
|
-
] = p(0), [pn,
|
|
211
|
+
] = p(0), [pn, cr] = p(!1), V = f(() => eo(), []), [ct, Lt] = p(
|
|
217
212
|
vt
|
|
218
|
-
), [yn, Dt] = p(!1), [
|
|
213
|
+
), [yn, Dt] = p(!1), [ur, hn] = p(
|
|
219
214
|
() => V ? Dn() : !1
|
|
220
|
-
), he = f(() =>
|
|
215
|
+
), he = f(() => Ao(), []), {
|
|
221
216
|
effectiveMobileViewMode: ee,
|
|
222
217
|
isImmersiveMobileFullscreen: ge,
|
|
223
218
|
isNativeMobileFullscreen: gn,
|
|
224
|
-
shouldRotateFullscreenViewport:
|
|
219
|
+
shouldRotateFullscreenViewport: dr
|
|
225
220
|
} = f(
|
|
226
|
-
() =>
|
|
221
|
+
() => co({
|
|
227
222
|
hasManualMobileViewMode: yn,
|
|
228
223
|
isMobileDevice: V,
|
|
229
224
|
mobileViewMode: ct
|
|
@@ -231,24 +226,24 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
231
226
|
[
|
|
232
227
|
yn,
|
|
233
228
|
V,
|
|
234
|
-
|
|
229
|
+
ur,
|
|
235
230
|
ct
|
|
236
231
|
]
|
|
237
232
|
), vn = m(ee), {
|
|
238
233
|
controlsVisible: K,
|
|
239
234
|
layoutReserved: ut
|
|
240
|
-
} =
|
|
241
|
-
isAutoVisible:
|
|
235
|
+
} = Ro({
|
|
236
|
+
isAutoVisible: nr,
|
|
242
237
|
playerControlsVisibility: W,
|
|
243
238
|
shouldMountPlayer: A
|
|
244
|
-
}),
|
|
239
|
+
}), fr = ge && K, mr = ge && ut, pr = ge || gn, Sn = pn && !V, yr = r(
|
|
245
240
|
(e) => {
|
|
246
241
|
Dt(!0), Lt(e);
|
|
247
242
|
},
|
|
248
243
|
[]
|
|
249
244
|
), In = r(() => {
|
|
250
245
|
Dt(!1), Lt(vt);
|
|
251
|
-
}, []),
|
|
246
|
+
}, []), hr = r(() => {
|
|
252
247
|
In(), z?.onBack?.();
|
|
253
248
|
}, [z, In]), M = r(() => {
|
|
254
249
|
j.current !== null && (window.clearTimeout(j.current), j.current = null);
|
|
@@ -267,11 +262,11 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
267
262
|
Mt(
|
|
268
263
|
(e) => e.x === St.x && e.y === St.y ? e : St
|
|
269
264
|
), Ft(!1), Me.current = null, de.current = null;
|
|
270
|
-
}, []), { mountedStepStates:
|
|
265
|
+
}, []), { mountedStepStates: gr, currentMountedStateIndex: vr } = f(() => {
|
|
271
266
|
const e = [], t = /* @__PURE__ */ new Map();
|
|
272
267
|
return on.forEach((n, i) => {
|
|
273
268
|
const l = e.findIndex(
|
|
274
|
-
(o) =>
|
|
269
|
+
(o) => Ho(
|
|
275
270
|
o.elementList,
|
|
276
271
|
n
|
|
277
272
|
)
|
|
@@ -288,11 +283,11 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
288
283
|
mountedStepStates: e,
|
|
289
284
|
currentMountedStateIndex: a >= 0 ? t.get(a) ?? -1 : -1
|
|
290
285
|
};
|
|
291
|
-
}, [a, on]), An = f(() => String(a), [a]),
|
|
292
|
-
(e) => (e.audioKey ?? "") ===
|
|
293
|
-
) : -1, [y,
|
|
294
|
-
() =>
|
|
295
|
-
[y,
|
|
286
|
+
}, [a, on]), An = f(() => String(a), [a]), E = f(() => x ? y.findIndex(
|
|
287
|
+
(e) => (e.audioKey ?? "") === x
|
|
288
|
+
) : -1, [y, x]), mt = f(
|
|
289
|
+
() => E >= 0 ? y[E] : void 0,
|
|
290
|
+
[y, E]
|
|
296
291
|
);
|
|
297
292
|
s(() => {
|
|
298
293
|
if (!U || U.id === un.current)
|
|
@@ -311,13 +306,13 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
311
306
|
tt,
|
|
312
307
|
U
|
|
313
308
|
]);
|
|
314
|
-
const
|
|
309
|
+
const Sr = mt?.element?.subtitle_cues ?? [], pt = f(
|
|
315
310
|
() => _[0] ?? "none",
|
|
316
311
|
[_]
|
|
317
312
|
), Nt = f(
|
|
318
313
|
() => ({
|
|
319
|
-
currentElement:
|
|
320
|
-
currentAudioIndex:
|
|
314
|
+
currentElement: Io({
|
|
315
|
+
currentAudioIndex: E,
|
|
321
316
|
currentAudioSequenceIndexes: et,
|
|
322
317
|
audioList: y,
|
|
323
318
|
currentInteractionElement: S,
|
|
@@ -332,7 +327,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
332
327
|
[
|
|
333
328
|
S,
|
|
334
329
|
y,
|
|
335
|
-
|
|
330
|
+
E,
|
|
336
331
|
et,
|
|
337
332
|
a,
|
|
338
333
|
Le,
|
|
@@ -341,23 +336,23 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
341
336
|
bn
|
|
342
337
|
]
|
|
343
338
|
), yt = f(
|
|
344
|
-
() =>
|
|
339
|
+
() => bo(
|
|
345
340
|
Pe,
|
|
346
341
|
Nt
|
|
347
342
|
),
|
|
348
343
|
[Nt, Pe]
|
|
349
|
-
), Bt = yt > 0, Vt = Bt && Rt,
|
|
344
|
+
), Bt = yt > 0, Vt = Bt && Rt, Ir = f(
|
|
350
345
|
() => ({
|
|
351
346
|
"--slide-player-custom-action-count": String(yt),
|
|
352
347
|
"--slide-player-mobile-control-count": String(
|
|
353
348
|
yt + 4
|
|
354
349
|
),
|
|
355
|
-
"--slide-interaction-drag-x": `${
|
|
356
|
-
"--slide-interaction-drag-y": `${
|
|
350
|
+
"--slide-interaction-drag-x": `${P.x}px`,
|
|
351
|
+
"--slide-interaction-drag-y": `${P.y}px`
|
|
357
352
|
}),
|
|
358
353
|
[
|
|
359
|
-
|
|
360
|
-
|
|
354
|
+
P.x,
|
|
355
|
+
P.y,
|
|
361
356
|
yt
|
|
362
357
|
]
|
|
363
358
|
), wn = _.length > 0, xn = f(() => h ? `${h.sequence_number ?? "none"}:${String(
|
|
@@ -365,30 +360,30 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
365
360
|
)}` : "none", [h]), ve = f(
|
|
366
361
|
() => [An, xn].join("|"),
|
|
367
362
|
[xn, An]
|
|
368
|
-
),
|
|
363
|
+
), br = f(
|
|
369
364
|
() => [
|
|
370
365
|
ve,
|
|
371
366
|
mt?.audioKey ?? "none",
|
|
372
|
-
String(
|
|
367
|
+
String(E)
|
|
373
368
|
].join("|"),
|
|
374
|
-
[
|
|
369
|
+
[E, mt?.audioKey, ve]
|
|
375
370
|
), Pn = !!f(() => !pt || pt === "none" ? "" : y.find(
|
|
376
371
|
(t) => t.audioKey === pt
|
|
377
372
|
)?.audioUrl?.trim() ?? "", [y, pt]), ne = ae && Vt, Ve = f(
|
|
378
|
-
() =>
|
|
373
|
+
() => xo({
|
|
379
374
|
canGoNext: R,
|
|
380
|
-
currentAudioIndex:
|
|
375
|
+
currentAudioIndex: E,
|
|
381
376
|
currentStepHasSpeakableElement: b,
|
|
382
377
|
hasInteraction: !!h
|
|
383
378
|
}),
|
|
384
379
|
[
|
|
385
380
|
R,
|
|
386
|
-
|
|
381
|
+
E,
|
|
387
382
|
h,
|
|
388
383
|
b
|
|
389
384
|
]
|
|
390
385
|
), En = f(
|
|
391
|
-
() =>
|
|
386
|
+
() => Co({
|
|
392
387
|
currentElementList: T,
|
|
393
388
|
currentStepHasSpeakableElement: b,
|
|
394
389
|
currentInteractionElement: h,
|
|
@@ -403,7 +398,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
403
398
|
), Cn = En.delayMs, Ke = En.usesImageOnlyDelay, Kt = f(
|
|
404
399
|
() => `${a}:${fe.join("|")}`,
|
|
405
400
|
[a, fe]
|
|
406
|
-
), [
|
|
401
|
+
), [Ar, wr] = p(null), Tn = !Ke || Ar === Kt, q = r(() => {
|
|
407
402
|
ue.current !== null && (window.clearTimeout(ue.current), ue.current = null);
|
|
408
403
|
}, []), Se = r(() => {
|
|
409
404
|
Re.current !== null && (window.clearTimeout(Re.current), Re.current = null);
|
|
@@ -429,7 +424,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
429
424
|
},
|
|
430
425
|
[]
|
|
431
426
|
), Ie = r(() => {
|
|
432
|
-
const e =
|
|
427
|
+
const e = yo(
|
|
433
428
|
_,
|
|
434
429
|
it.current
|
|
435
430
|
);
|
|
@@ -448,12 +443,12 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
448
443
|
return;
|
|
449
444
|
const t = () => {
|
|
450
445
|
_e.current = null, ye(
|
|
451
|
-
|
|
446
|
+
Lo
|
|
452
447
|
), at(!0), Q.current = null;
|
|
453
448
|
};
|
|
454
449
|
_e.current = window.setTimeout(
|
|
455
450
|
t,
|
|
456
|
-
|
|
451
|
+
Fo
|
|
457
452
|
);
|
|
458
453
|
},
|
|
459
454
|
[k]
|
|
@@ -478,7 +473,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
478
473
|
W,
|
|
479
474
|
A
|
|
480
475
|
]
|
|
481
|
-
), Ue = !!
|
|
476
|
+
), Ue = !!So(h), re = !!h && !Ue, xr = r((e) => {
|
|
482
477
|
Ct(e);
|
|
483
478
|
}, []), be = r(
|
|
484
479
|
(e) => {
|
|
@@ -513,7 +508,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
513
508
|
const i = () => {
|
|
514
509
|
n?.(), n = null;
|
|
515
510
|
}, l = () => {
|
|
516
|
-
e || (i(), Y(),
|
|
511
|
+
e || (i(), Y(), wr(Kt));
|
|
517
512
|
}, o = () => {
|
|
518
513
|
if (e)
|
|
519
514
|
return;
|
|
@@ -526,7 +521,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
526
521
|
const I = Array.from(
|
|
527
522
|
v.querySelectorAll("iframe")
|
|
528
523
|
);
|
|
529
|
-
if (I.length === 0 ||
|
|
524
|
+
if (I.length === 0 || Eo(I)) {
|
|
530
525
|
l();
|
|
531
526
|
return;
|
|
532
527
|
}
|
|
@@ -556,7 +551,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
556
551
|
t = null, o();
|
|
557
552
|
}), Ze.current = window.setTimeout(() => {
|
|
558
553
|
l();
|
|
559
|
-
},
|
|
554
|
+
}, Po), () => {
|
|
560
555
|
e = !0, i(), Y(), t !== null && window.cancelAnimationFrame(t);
|
|
561
556
|
};
|
|
562
557
|
}, [
|
|
@@ -585,7 +580,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
585
580
|
"change",
|
|
586
581
|
t
|
|
587
582
|
);
|
|
588
|
-
const n =
|
|
583
|
+
const n = to(
|
|
589
584
|
e
|
|
590
585
|
);
|
|
591
586
|
return () => {
|
|
@@ -601,14 +596,14 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
601
596
|
}, [ee, te]), s(() => {
|
|
602
597
|
jt?.(Le, a);
|
|
603
598
|
}, [a, Le, jt]), s(() => {
|
|
604
|
-
const e = rn.current, t =
|
|
599
|
+
const e = rn.current, t = po(
|
|
605
600
|
{
|
|
606
601
|
previousMarkerCount: e.markerCount,
|
|
607
|
-
nextMarkerCount:
|
|
602
|
+
nextMarkerCount: C.length,
|
|
608
603
|
previousIndex: e.currentIndex,
|
|
609
604
|
previousCanGoNext: e.canGoNext,
|
|
610
605
|
nextCanGoNext: R,
|
|
611
|
-
currentAudioKey:
|
|
606
|
+
currentAudioKey: x,
|
|
612
607
|
hasCompletedCurrentStepAudio: O,
|
|
613
608
|
hasResolvedCurrentInteraction: Ue,
|
|
614
609
|
currentStepHasSpeakableElement: b,
|
|
@@ -618,13 +613,13 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
618
613
|
}
|
|
619
614
|
);
|
|
620
615
|
rn.current = {
|
|
621
|
-
markerCount:
|
|
616
|
+
markerCount: C.length,
|
|
622
617
|
currentIndex: a,
|
|
623
618
|
canGoNext: R
|
|
624
619
|
}, t && L();
|
|
625
620
|
}, [
|
|
626
621
|
R,
|
|
627
|
-
|
|
622
|
+
x,
|
|
628
623
|
a,
|
|
629
624
|
h,
|
|
630
625
|
b,
|
|
@@ -633,7 +628,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
633
628
|
Ue,
|
|
634
629
|
Ne,
|
|
635
630
|
Ve,
|
|
636
|
-
|
|
631
|
+
C.length
|
|
637
632
|
]), s(() => {
|
|
638
633
|
if (!A || W === "hidden") {
|
|
639
634
|
q(), De(!1);
|
|
@@ -654,12 +649,12 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
654
649
|
if (typeof window > "u")
|
|
655
650
|
return;
|
|
656
651
|
const e = (t) => {
|
|
657
|
-
t.origin === window.location.origin &&
|
|
652
|
+
t.origin === window.location.origin && Xr(t.data) && t.data.eventType === "click" && A && (H(), me(!0), g(!0));
|
|
658
653
|
};
|
|
659
654
|
return window.addEventListener("message", e), () => {
|
|
660
655
|
window.removeEventListener("message", e);
|
|
661
656
|
};
|
|
662
|
-
}, [H, A, g]),
|
|
657
|
+
}, [H, A, g]), lo({
|
|
663
658
|
sectionRef: ce,
|
|
664
659
|
enabled: A,
|
|
665
660
|
keyboardShortcutsEnabled: se,
|
|
@@ -676,14 +671,14 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
676
671
|
xt.current = ve;
|
|
677
672
|
return;
|
|
678
673
|
}
|
|
679
|
-
const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } =
|
|
674
|
+
const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = go({
|
|
680
675
|
previousResetKey: xt.current,
|
|
681
676
|
nextResetKey: ve,
|
|
682
|
-
currentAudioKey:
|
|
677
|
+
currentAudioKey: x,
|
|
683
678
|
hasCompletedCurrentStepAudio: O
|
|
684
679
|
});
|
|
685
680
|
xt.current = ve;
|
|
686
|
-
const n = Q.current === a && !!h, i =
|
|
681
|
+
const n = Q.current === a && !!h, i = fo({
|
|
687
682
|
hasInteraction: !!h,
|
|
688
683
|
shouldBlockPlaybackForInteraction: re,
|
|
689
684
|
shouldOpenInteractionOverlayAfterAudio: n,
|
|
@@ -698,7 +693,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
698
693
|
if (l?.slideIndex === a && Bn({
|
|
699
694
|
currentIndex: a,
|
|
700
695
|
resolvedCurrentInteractionElement: S,
|
|
701
|
-
slideElementList:
|
|
696
|
+
slideElementList: C,
|
|
702
697
|
targetSlideIndex: l.slideIndex
|
|
703
698
|
})) {
|
|
704
699
|
Fe.current = null, Pt.current = !0, B(l.audioKey), ht({
|
|
@@ -735,7 +730,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
735
730
|
T.length,
|
|
736
731
|
a,
|
|
737
732
|
h,
|
|
738
|
-
|
|
733
|
+
x,
|
|
739
734
|
ve,
|
|
740
735
|
b,
|
|
741
736
|
Ke,
|
|
@@ -753,7 +748,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
753
748
|
ht,
|
|
754
749
|
Rn,
|
|
755
750
|
A,
|
|
756
|
-
|
|
751
|
+
C,
|
|
757
752
|
Ie,
|
|
758
753
|
ne,
|
|
759
754
|
Ve
|
|
@@ -779,7 +774,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
779
774
|
ne,
|
|
780
775
|
re
|
|
781
776
|
]), s(() => {
|
|
782
|
-
O &&
|
|
777
|
+
O && ho(
|
|
783
778
|
_,
|
|
784
779
|
it.current
|
|
785
780
|
) && ot(!1);
|
|
@@ -787,8 +782,8 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
787
782
|
if (Be.current)
|
|
788
783
|
return;
|
|
789
784
|
const e = Pt.current;
|
|
790
|
-
Pt.current = !1,
|
|
791
|
-
currentAudioKey:
|
|
785
|
+
Pt.current = !1, vo({
|
|
786
|
+
currentAudioKey: x,
|
|
792
787
|
currentAudioSequenceLength: _.length,
|
|
793
788
|
currentStepHasSpeakableElement: b,
|
|
794
789
|
hasCompletedCurrentStepAudio: O,
|
|
@@ -797,7 +792,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
797
792
|
shouldSkipDefaultAudioStart: e
|
|
798
793
|
}) && Ie();
|
|
799
794
|
}, [
|
|
800
|
-
|
|
795
|
+
x,
|
|
801
796
|
_,
|
|
802
797
|
b,
|
|
803
798
|
O,
|
|
@@ -805,27 +800,27 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
805
800
|
re,
|
|
806
801
|
Ie
|
|
807
802
|
]), s(() => {
|
|
808
|
-
!
|
|
809
|
-
}, [
|
|
810
|
-
|
|
811
|
-
}, [
|
|
803
|
+
!x || E >= 0 || B(null);
|
|
804
|
+
}, [E, x]), s(() => {
|
|
805
|
+
E >= 0 || he.reset();
|
|
806
|
+
}, [E, he]), s(() => {
|
|
812
807
|
lt(!1);
|
|
813
|
-
}, [
|
|
808
|
+
}, [br]);
|
|
814
809
|
const {
|
|
815
810
|
interactionDefaults: _n,
|
|
816
|
-
interactionDefaultSelectedValues:
|
|
811
|
+
interactionDefaultSelectedValues: Pr,
|
|
817
812
|
hasResolvedInteractionInput: On,
|
|
818
|
-
isInteractionReadonly:
|
|
813
|
+
isInteractionReadonly: Er,
|
|
819
814
|
shouldAutoContinueInteraction: Mn
|
|
820
815
|
} = f(
|
|
821
|
-
() =>
|
|
816
|
+
() => wo(S, {
|
|
822
817
|
interactionDefaultValueOptions: Xe
|
|
823
818
|
}),
|
|
824
819
|
[S, Xe]
|
|
825
|
-
),
|
|
820
|
+
), Cr = !!S?.readonly || Er, He = uo({
|
|
826
821
|
hasActiveInteraction: !!S,
|
|
827
822
|
isInteractionOverlayOpen: pe
|
|
828
|
-
}),
|
|
823
|
+
}), Tr = r(
|
|
829
824
|
(e) => {
|
|
830
825
|
const n = [
|
|
831
826
|
...e.selectedValues ?? [],
|
|
@@ -841,7 +836,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
841
836
|
);
|
|
842
837
|
s(() => {
|
|
843
838
|
const e = () => {
|
|
844
|
-
|
|
839
|
+
cr(document.fullscreenElement === ce.current);
|
|
845
840
|
};
|
|
846
841
|
return e(), document.addEventListener("fullscreenchange", e), () => {
|
|
847
842
|
document.removeEventListener("fullscreenchange", e);
|
|
@@ -863,7 +858,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
863
858
|
e.getBoundingClientRect().height
|
|
864
859
|
);
|
|
865
860
|
ye(
|
|
866
|
-
i +
|
|
861
|
+
i + Do
|
|
867
862
|
);
|
|
868
863
|
};
|
|
869
864
|
if (t(), typeof ResizeObserver > "u")
|
|
@@ -897,7 +892,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
897
892
|
pe,
|
|
898
893
|
Mn
|
|
899
894
|
]);
|
|
900
|
-
const
|
|
895
|
+
const Rr = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ u(Yr, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ u(
|
|
901
896
|
Ln,
|
|
902
897
|
{
|
|
903
898
|
className: "content-render-iframe",
|
|
@@ -925,17 +920,17 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
925
920
|
type: "markdown",
|
|
926
921
|
content: e.content
|
|
927
922
|
}
|
|
928
|
-
) : null,
|
|
923
|
+
) : null, _r = (e = [], t = !1) => {
|
|
929
924
|
if (e.length === 0)
|
|
930
925
|
return null;
|
|
931
926
|
const n = e.filter(
|
|
932
927
|
(o) => o.is_renderable !== !1
|
|
933
|
-
).length, i = t && Gn ?
|
|
928
|
+
).length, i = t && Gn ? mo(e) : "disabled", l = e.reduce(
|
|
934
929
|
(o, v, I) => v.is_renderable !== !1 ? I : o,
|
|
935
930
|
-1
|
|
936
931
|
);
|
|
937
932
|
return /* @__PURE__ */ u(
|
|
938
|
-
|
|
933
|
+
ro,
|
|
939
934
|
{
|
|
940
935
|
className: "slide-stage__content flex w-full flex-col gap-4",
|
|
941
936
|
mode: i,
|
|
@@ -951,7 +946,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
951
946
|
n === 1 && o.is_renderable !== !1 && "slide-element--single",
|
|
952
947
|
I ? "pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0" : o.is_renderable === !1 && "hidden"
|
|
953
948
|
),
|
|
954
|
-
children:
|
|
949
|
+
children: Rr(o, {
|
|
955
950
|
replaceRootScreenHeightWithFull: n === 1 && o.type === "html" && o.is_renderable !== !1
|
|
956
951
|
})
|
|
957
952
|
},
|
|
@@ -960,7 +955,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
960
955
|
})
|
|
961
956
|
}
|
|
962
957
|
);
|
|
963
|
-
},
|
|
958
|
+
}, Or = r(() => {
|
|
964
959
|
const e = ce.current;
|
|
965
960
|
if (e) {
|
|
966
961
|
if (document.fullscreenElement === e) {
|
|
@@ -981,16 +976,16 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
981
976
|
(e) => Bn({
|
|
982
977
|
currentIndex: a,
|
|
983
978
|
resolvedCurrentInteractionElement: S,
|
|
984
|
-
slideElementList:
|
|
979
|
+
slideElementList: C,
|
|
985
980
|
targetSlideIndex: Z[e.audioIndex]
|
|
986
981
|
}),
|
|
987
982
|
[
|
|
988
983
|
S,
|
|
989
984
|
Z,
|
|
990
985
|
a,
|
|
991
|
-
|
|
986
|
+
C
|
|
992
987
|
]
|
|
993
|
-
),
|
|
988
|
+
), Mr = r(
|
|
994
989
|
(e, t) => {
|
|
995
990
|
const i = y[e.audioIndex]?.audioKey, l = Z[e.audioIndex];
|
|
996
991
|
return !i || l == null || !Ut(e) ? !1 : (be(t), Q.current = null, w(!1), ot(!1), lt(!1), Gt(t) && (me(!0), g(!0)), l === a ? (Fe.current = null, D(), B(i), ht(e), !0) : (ke.current = !0, D(), Fe.current = {
|
|
@@ -1011,7 +1006,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1011
1006
|
g,
|
|
1012
1007
|
be
|
|
1013
1008
|
]
|
|
1014
|
-
),
|
|
1009
|
+
), kr = r(
|
|
1015
1010
|
(e) => {
|
|
1016
1011
|
be(e), ke.current = !0, Q.current = null, w(!1), Gt(e) && (me(!0), g(!0)), D(), ln();
|
|
1017
1012
|
},
|
|
@@ -1021,7 +1016,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1021
1016
|
g,
|
|
1022
1017
|
be
|
|
1023
1018
|
]
|
|
1024
|
-
),
|
|
1019
|
+
), Fr = r(
|
|
1025
1020
|
(e) => {
|
|
1026
1021
|
be(e), ke.current = !0, Q.current = null, w(!1), Gt(e) && (me(!0), g(!0)), D(), L();
|
|
1027
1022
|
},
|
|
@@ -1031,7 +1026,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1031
1026
|
g,
|
|
1032
1027
|
be
|
|
1033
1028
|
]
|
|
1034
|
-
),
|
|
1029
|
+
), Lr = r(
|
|
1035
1030
|
({
|
|
1036
1031
|
loading: e,
|
|
1037
1032
|
reason: t
|
|
@@ -1044,7 +1039,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1044
1039
|
w(!1);
|
|
1045
1040
|
return;
|
|
1046
1041
|
}
|
|
1047
|
-
e && t && Tt(t), w(
|
|
1042
|
+
e && t && Tt(t), w(Uo(t, e));
|
|
1048
1043
|
},
|
|
1049
1044
|
[
|
|
1050
1045
|
b,
|
|
@@ -1055,10 +1050,10 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1055
1050
|
s(() => {
|
|
1056
1051
|
F && w(!1);
|
|
1057
1052
|
}, [F]);
|
|
1058
|
-
const
|
|
1053
|
+
const Dr = r(
|
|
1059
1054
|
(e) => {
|
|
1060
1055
|
const t = y[e]?.audioKey;
|
|
1061
|
-
if (!t || !
|
|
1056
|
+
if (!t || !x || t !== x)
|
|
1062
1057
|
return;
|
|
1063
1058
|
it.current.add(t);
|
|
1064
1059
|
const n = _.findIndex(
|
|
@@ -1074,7 +1069,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1074
1069
|
return;
|
|
1075
1070
|
}
|
|
1076
1071
|
if (B(null), ot(!0), w(!1), R) {
|
|
1077
|
-
const o = a + 1, v =
|
|
1072
|
+
const o = a + 1, v = C[o];
|
|
1078
1073
|
Pn && v?.type === "interaction" && (Q.current = o), L();
|
|
1079
1074
|
return;
|
|
1080
1075
|
}
|
|
@@ -1083,15 +1078,15 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1083
1078
|
y,
|
|
1084
1079
|
R,
|
|
1085
1080
|
a,
|
|
1086
|
-
|
|
1081
|
+
x,
|
|
1087
1082
|
_,
|
|
1088
1083
|
L,
|
|
1089
1084
|
Pn,
|
|
1090
|
-
|
|
1085
|
+
C
|
|
1091
1086
|
]
|
|
1092
|
-
),
|
|
1087
|
+
), Nr = r(() => {
|
|
1093
1088
|
Qe.current = !0, q(), A && De(!0);
|
|
1094
|
-
}, [q, A]),
|
|
1089
|
+
}, [q, A]), Br = r(() => {
|
|
1095
1090
|
Qe.current = !1, g(!0);
|
|
1096
1091
|
}, [g]), Ht = r(
|
|
1097
1092
|
(e) => {
|
|
@@ -1113,7 +1108,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1113
1108
|
},
|
|
1114
1109
|
[]
|
|
1115
1110
|
);
|
|
1116
|
-
|
|
1111
|
+
No(() => {
|
|
1117
1112
|
const e = Oe.current;
|
|
1118
1113
|
if (!He || !e) {
|
|
1119
1114
|
de.current = null;
|
|
@@ -1136,52 +1131,52 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1136
1131
|
return;
|
|
1137
1132
|
}
|
|
1138
1133
|
const o = {
|
|
1139
|
-
x:
|
|
1140
|
-
y:
|
|
1134
|
+
x: P.x + i,
|
|
1135
|
+
y: P.y + l
|
|
1141
1136
|
}, v = gt(
|
|
1142
1137
|
e,
|
|
1143
|
-
|
|
1144
|
-
), I =
|
|
1138
|
+
P
|
|
1139
|
+
), I = Vo(
|
|
1145
1140
|
v ? Nn(o, v) : o
|
|
1146
1141
|
);
|
|
1147
1142
|
de.current = {
|
|
1148
|
-
left: n.left + I.x -
|
|
1149
|
-
top: n.top + I.y -
|
|
1143
|
+
left: n.left + I.x - P.x,
|
|
1144
|
+
top: n.top + I.y - P.y
|
|
1150
1145
|
}, qn(
|
|
1151
1146
|
I,
|
|
1152
|
-
|
|
1147
|
+
P
|
|
1153
1148
|
) || Mt(
|
|
1154
1149
|
(oe) => qn(oe, I) ? oe : I
|
|
1155
1150
|
);
|
|
1156
1151
|
}, [
|
|
1157
1152
|
gt,
|
|
1158
|
-
|
|
1153
|
+
P,
|
|
1159
1154
|
kt,
|
|
1160
1155
|
ut,
|
|
1161
1156
|
He
|
|
1162
1157
|
]);
|
|
1163
|
-
const
|
|
1158
|
+
const Vr = r(
|
|
1164
1159
|
(e) => {
|
|
1165
1160
|
if (Ht(e), e.button !== 0 || !e.currentTarget.isConnected || !Oe.current)
|
|
1166
1161
|
return;
|
|
1167
1162
|
const t = gt(
|
|
1168
1163
|
Oe.current,
|
|
1169
|
-
|
|
1164
|
+
P
|
|
1170
1165
|
);
|
|
1171
1166
|
t && (e.preventDefault(), e.currentTarget.hasPointerCapture?.(e.pointerId) !== !0 && e.currentTarget.setPointerCapture(e.pointerId), Me.current = {
|
|
1172
1167
|
pointerId: e.pointerId,
|
|
1173
1168
|
startClientX: e.clientX,
|
|
1174
1169
|
startClientY: e.clientY,
|
|
1175
|
-
startOffset:
|
|
1170
|
+
startOffset: P,
|
|
1176
1171
|
bounds: t
|
|
1177
1172
|
}, Ft(!0));
|
|
1178
1173
|
},
|
|
1179
1174
|
[
|
|
1180
1175
|
gt,
|
|
1181
|
-
|
|
1176
|
+
P,
|
|
1182
1177
|
Ht
|
|
1183
1178
|
]
|
|
1184
|
-
),
|
|
1179
|
+
), Kr = r(
|
|
1185
1180
|
(e) => {
|
|
1186
1181
|
const t = Me.current;
|
|
1187
1182
|
!t || t.pointerId !== e.pointerId || (e.preventDefault(), e.stopPropagation(), Mt(
|
|
@@ -1201,17 +1196,17 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1201
1196
|
!t || t.pointerId !== e.pointerId || (e.stopPropagation(), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Me.current = null, Ft(!1));
|
|
1202
1197
|
},
|
|
1203
1198
|
[]
|
|
1204
|
-
),
|
|
1199
|
+
), qr = r(
|
|
1205
1200
|
(e) => {
|
|
1206
1201
|
H(), Qt?.(e);
|
|
1207
1202
|
},
|
|
1208
1203
|
[H, Qt]
|
|
1209
|
-
),
|
|
1204
|
+
), Ur = r(
|
|
1210
1205
|
(e) => {
|
|
1211
1206
|
H(), Zt?.(e);
|
|
1212
1207
|
},
|
|
1213
1208
|
[H, Zt]
|
|
1214
|
-
),
|
|
1209
|
+
), Hr = r(() => {
|
|
1215
1210
|
me(!0), g(!0);
|
|
1216
1211
|
}, [g]);
|
|
1217
1212
|
return s(() => {
|
|
@@ -1256,12 +1251,12 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1256
1251
|
),
|
|
1257
1252
|
dir: J,
|
|
1258
1253
|
lang: Te,
|
|
1259
|
-
onClick:
|
|
1260
|
-
onFocusCapture:
|
|
1261
|
-
onPointerDown:
|
|
1254
|
+
onClick: Hr,
|
|
1255
|
+
onFocusCapture: Ur,
|
|
1256
|
+
onPointerDown: qr,
|
|
1262
1257
|
...Jn,
|
|
1263
1258
|
children: [
|
|
1264
|
-
|
|
1259
|
+
pr ? /* @__PURE__ */ u(
|
|
1265
1260
|
"div",
|
|
1266
1261
|
{
|
|
1267
1262
|
"aria-hidden": "true",
|
|
@@ -1275,19 +1270,19 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1275
1270
|
className: we(
|
|
1276
1271
|
"slide__viewport relative h-full min-h-0 w-full",
|
|
1277
1272
|
ge && "slide__viewport--mobile-landscape",
|
|
1278
|
-
ge && !
|
|
1273
|
+
ge && !dr && "slide__viewport--mobile-landscape-native"
|
|
1279
1274
|
),
|
|
1280
1275
|
children: [
|
|
1281
|
-
|
|
1276
|
+
fr ? /* @__PURE__ */ Ge("div", { className: "slide-landscape-header", children: [
|
|
1282
1277
|
/* @__PURE__ */ u(
|
|
1283
1278
|
"button",
|
|
1284
1279
|
{
|
|
1285
1280
|
"aria-label": z?.backAriaLabel ?? N.fullscreenBackAriaLabel,
|
|
1286
1281
|
className: "slide-landscape-header__back",
|
|
1287
|
-
onClick:
|
|
1282
|
+
onClick: hr,
|
|
1288
1283
|
type: "button",
|
|
1289
1284
|
children: /* @__PURE__ */ u(
|
|
1290
|
-
|
|
1285
|
+
Mo,
|
|
1291
1286
|
{
|
|
1292
1287
|
className: "slide-landscape-header__icon h-6 w-6",
|
|
1293
1288
|
strokeWidth: 2.25
|
|
@@ -1302,12 +1297,12 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1302
1297
|
{
|
|
1303
1298
|
className: we(
|
|
1304
1299
|
"h-full min-h-0 w-full",
|
|
1305
|
-
|
|
1306
|
-
|
|
1300
|
+
mr && "slide__viewport-content--with-header",
|
|
1301
|
+
er ? "slide-content--single" : "grid gap-4"
|
|
1307
1302
|
),
|
|
1308
|
-
children: T.length > 0 ? /* @__PURE__ */ u("div", { className: "slide-stage", children: /* @__PURE__ */ u("div", { ref: je, className: "slide-stage__layer w-full", children:
|
|
1303
|
+
children: T.length > 0 ? /* @__PURE__ */ u("div", { className: "slide-stage", children: /* @__PURE__ */ u("div", { ref: je, className: "slide-stage__layer w-full", children: gr.map(
|
|
1309
1304
|
(e, t) => {
|
|
1310
|
-
const n = t ===
|
|
1305
|
+
const n = t === vr;
|
|
1311
1306
|
return /* @__PURE__ */ u(
|
|
1312
1307
|
"div",
|
|
1313
1308
|
{
|
|
@@ -1315,7 +1310,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1315
1310
|
"aria-hidden": !n || void 0,
|
|
1316
1311
|
className: "w-full h-full",
|
|
1317
1312
|
style: { display: n ? void 0 : "none" },
|
|
1318
|
-
children:
|
|
1313
|
+
children: _r(
|
|
1319
1314
|
e.elementList,
|
|
1320
1315
|
n
|
|
1321
1316
|
)
|
|
@@ -1326,24 +1321,24 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1326
1321
|
) }) }) : null
|
|
1327
1322
|
}
|
|
1328
1323
|
),
|
|
1329
|
-
|
|
1330
|
-
|
|
1324
|
+
or ? /* @__PURE__ */ u(
|
|
1325
|
+
Qr,
|
|
1331
1326
|
{
|
|
1332
|
-
message:
|
|
1327
|
+
message: Ko(
|
|
1333
1328
|
Wn,
|
|
1334
|
-
|
|
1329
|
+
ir
|
|
1335
1330
|
),
|
|
1336
1331
|
className: "absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2"
|
|
1337
1332
|
}
|
|
1338
1333
|
) : null,
|
|
1339
1334
|
/* @__PURE__ */ u(
|
|
1340
|
-
|
|
1335
|
+
oo,
|
|
1341
1336
|
{
|
|
1342
|
-
extraBottomOffset:
|
|
1337
|
+
extraBottomOffset: sr,
|
|
1343
1338
|
hasPlayerGap: ut,
|
|
1344
|
-
isEnabled: fn &&
|
|
1339
|
+
isEnabled: fn && lr,
|
|
1345
1340
|
playbackTimeStore: he,
|
|
1346
|
-
subtitleCues:
|
|
1341
|
+
subtitleCues: Sr
|
|
1347
1342
|
}
|
|
1348
1343
|
),
|
|
1349
1344
|
He ? /* @__PURE__ */ u(
|
|
@@ -1366,7 +1361,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1366
1361
|
onInputCapture: (e) => {
|
|
1367
1362
|
zt(e.target) && st(!0);
|
|
1368
1363
|
},
|
|
1369
|
-
style:
|
|
1364
|
+
style: Ir,
|
|
1370
1365
|
children: /* @__PURE__ */ u(
|
|
1371
1366
|
Un,
|
|
1372
1367
|
{
|
|
@@ -1377,27 +1372,27 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1377
1372
|
locale: d,
|
|
1378
1373
|
defaultButtonText: _n.buttonText ?? "",
|
|
1379
1374
|
defaultInputText: _n.inputText ?? "",
|
|
1380
|
-
defaultSelectedValues:
|
|
1375
|
+
defaultSelectedValues: Pr,
|
|
1381
1376
|
confirmButtonText: X?.confirmButtonText ?? N.interactionTexts.confirmButtonText,
|
|
1382
1377
|
copyButtonText: X?.copyButtonText ?? N.interactionTexts.copyButtonText,
|
|
1383
1378
|
copiedButtonText: X?.copiedButtonText ?? N.interactionTexts.copiedButtonText,
|
|
1384
|
-
onSend:
|
|
1379
|
+
onSend: Tr,
|
|
1385
1380
|
onDragHandlePointerCancel: Fn,
|
|
1386
|
-
onDragHandlePointerDown:
|
|
1387
|
-
onDragHandlePointerMove:
|
|
1381
|
+
onDragHandlePointerDown: Vr,
|
|
1382
|
+
onDragHandlePointerMove: Kr,
|
|
1388
1383
|
onDragHandlePointerUp: Fn,
|
|
1389
|
-
readonly:
|
|
1384
|
+
readonly: Cr,
|
|
1390
1385
|
title: X?.title ?? It ?? N.interactionTexts.title
|
|
1391
1386
|
}
|
|
1392
1387
|
)
|
|
1393
1388
|
}
|
|
1394
1389
|
) : null,
|
|
1395
1390
|
A ? /* @__PURE__ */ u(
|
|
1396
|
-
|
|
1391
|
+
ao.Provider,
|
|
1397
1392
|
{
|
|
1398
|
-
value:
|
|
1393
|
+
value: tr,
|
|
1399
1394
|
children: /* @__PURE__ */ u(
|
|
1400
|
-
|
|
1395
|
+
no,
|
|
1401
1396
|
{
|
|
1402
1397
|
dir: J === "auto" ? Qn : J,
|
|
1403
1398
|
lang: Te,
|
|
@@ -1408,7 +1403,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1408
1403
|
$,
|
|
1409
1404
|
!K && "pointer-events-none opacity-0"
|
|
1410
1405
|
),
|
|
1411
|
-
currentAudioIndex:
|
|
1406
|
+
currentAudioIndex: E,
|
|
1412
1407
|
defaultPlaying: Et,
|
|
1413
1408
|
enableKeyboardShortcuts: se,
|
|
1414
1409
|
isPlaybackPaused: ne,
|
|
@@ -1417,7 +1412,7 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1417
1412
|
isInteractionOpen: pe,
|
|
1418
1413
|
isSubtitleEnabled: fn,
|
|
1419
1414
|
onAutoAdvanceToggle: sn,
|
|
1420
|
-
onLoadingChange:
|
|
1415
|
+
onLoadingChange: Lr,
|
|
1421
1416
|
onPlaybackStarted: () => {
|
|
1422
1417
|
lt(!0);
|
|
1423
1418
|
},
|
|
@@ -1433,32 +1428,32 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1433
1428
|
timeMs: n
|
|
1434
1429
|
});
|
|
1435
1430
|
},
|
|
1436
|
-
onPlaybackPreferenceChange:
|
|
1431
|
+
onPlaybackPreferenceChange: xr,
|
|
1437
1432
|
onPlaybackTimeChange: he.setTime,
|
|
1438
1433
|
onSubtitleToggle: () => {
|
|
1439
|
-
|
|
1434
|
+
ar((e) => !e);
|
|
1440
1435
|
},
|
|
1441
1436
|
nextDisabled: !R,
|
|
1442
|
-
onEnded:
|
|
1443
|
-
onFullscreen:
|
|
1437
|
+
onEnded: Dr,
|
|
1438
|
+
onFullscreen: Or,
|
|
1444
1439
|
isFullscreen: pn,
|
|
1445
1440
|
mobileViewMode: ee,
|
|
1446
1441
|
settingsPortalContainer: wt.current,
|
|
1447
|
-
onMobileViewModeChange:
|
|
1448
|
-
onControlsPointerEnter:
|
|
1449
|
-
onControlsPointerLeave:
|
|
1450
|
-
onNext:
|
|
1451
|
-
onPrev:
|
|
1452
|
-
onSubtitleJump:
|
|
1442
|
+
onMobileViewModeChange: yr,
|
|
1443
|
+
onControlsPointerEnter: Nr,
|
|
1444
|
+
onControlsPointerLeave: Br,
|
|
1445
|
+
onNext: Fr,
|
|
1446
|
+
onPrev: kr,
|
|
1447
|
+
onSubtitleJump: Mr,
|
|
1453
1448
|
canJumpToSubtitleTarget: Ut,
|
|
1454
1449
|
prevDisabled: !Zn,
|
|
1455
1450
|
showControls: K,
|
|
1456
1451
|
slideProgress: At ? {
|
|
1457
1452
|
ariaLabel: N.slideProgressAriaLabel,
|
|
1458
|
-
currentIndex:
|
|
1453
|
+
currentIndex: a,
|
|
1459
1454
|
totalSteps: an
|
|
1460
1455
|
} : null,
|
|
1461
|
-
subtitleSeekRequest:
|
|
1456
|
+
subtitleSeekRequest: rr,
|
|
1462
1457
|
playbackRestoreRequest: rt && rt.audioKey === mt?.audioKey ? {
|
|
1463
1458
|
id: rt.id,
|
|
1464
1459
|
timeMs: rt.timeMs
|
|
@@ -1482,6 +1477,6 @@ const Yo = (c, d) => c.length === d.length && c.every((G, xe) => {
|
|
|
1482
1477
|
);
|
|
1483
1478
|
};
|
|
1484
1479
|
export {
|
|
1485
|
-
|
|
1480
|
+
Ti as default
|
|
1486
1481
|
};
|
|
1487
1482
|
//# sourceMappingURL=Slide.es.js.map
|