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