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