markdown-flow-ui 0.2.26-dev.6 → 0.2.26-dev.7
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.
|
@@ -16,7 +16,7 @@ import so from "./useSlide.es.js";
|
|
|
16
16
|
import co from "./useWakePlayerFromIframe.es.js";
|
|
17
17
|
import { PlayerKeyboardShortcutContext as uo } from "./utils/playerKeyboardShortcutContext.es.js";
|
|
18
18
|
import { activatePlayerKeyboardShortcutOwner as fo } from "./utils/playerKeyboardShortcuts.es.js";
|
|
19
|
-
import { DEFAULT_MOBILE_VIEW_MODE as
|
|
19
|
+
import { DEFAULT_MOBILE_VIEW_MODE as vt, resolveMobileViewModeState as mo } from "./utils/mobileScreenMode.es.js";
|
|
20
20
|
import { shouldRenderInteractionOverlay as po, clampInteractionOverlayDragOffset as Vn, shouldPresentInteractionOverlay as yo } from "./utils/interactionPlayback.es.js";
|
|
21
21
|
import { resolveMarkdownScalingMode as ho } from "./utils/markdownScaling.es.js";
|
|
22
22
|
import { shouldWakePlayerControlsAfterNavigation as $t } from "./utils/playerNavigationContext.es.js";
|
|
@@ -35,7 +35,7 @@ import { getSlideLocaleTexts as ko, DEFAULT_SLIDE_BUFFERING_TEXTS as Lo } from "
|
|
|
35
35
|
/* empty css */
|
|
36
36
|
import zt from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
|
|
37
37
|
import Fo from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
|
|
38
|
-
const No = 2e3, Do = 300, Bo = 160, Vo = 16, qn = 3e3,
|
|
38
|
+
const No = 2e3, Do = 300, Bo = 160, Vo = 16, qn = 3e3, St = {
|
|
39
39
|
x: 0,
|
|
40
40
|
y: 0
|
|
41
41
|
}, Jt = 0.5, Ko = typeof window > "u" ? s : Wr, qo = [
|
|
@@ -65,15 +65,15 @@ const No = 2e3, Do = 300, Bo = 160, Vo = 16, qn = 3e3, vt = {
|
|
|
65
65
|
defaultButtonText: Ce,
|
|
66
66
|
defaultInputText: ce,
|
|
67
67
|
defaultSelectedValues: $e,
|
|
68
|
-
confirmButtonText:
|
|
68
|
+
confirmButtonText: It,
|
|
69
69
|
copyButtonText: W,
|
|
70
|
-
copiedButtonText:
|
|
70
|
+
copiedButtonText: bt,
|
|
71
71
|
onSend: Te,
|
|
72
72
|
onDragHandlePointerCancel: ze,
|
|
73
|
-
onDragHandlePointerDown:
|
|
73
|
+
onDragHandlePointerDown: Xe,
|
|
74
74
|
onDragHandlePointerMove: At,
|
|
75
|
-
onDragHandlePointerUp:
|
|
76
|
-
readonly:
|
|
75
|
+
onDragHandlePointerUp: Je,
|
|
76
|
+
readonly: We = !1
|
|
77
77
|
}) => /* @__PURE__ */ Ge("div", { className: "slide-player__interaction-card", children: [
|
|
78
78
|
/* @__PURE__ */ u(
|
|
79
79
|
"button",
|
|
@@ -82,9 +82,9 @@ const No = 2e3, Do = 300, Bo = 160, Vo = 16, qn = 3e3, vt = {
|
|
|
82
82
|
className: "slide-player__interaction-drag-handle",
|
|
83
83
|
"aria-label": z,
|
|
84
84
|
onPointerCancel: ze,
|
|
85
|
-
onPointerDown:
|
|
85
|
+
onPointerDown: Xe,
|
|
86
86
|
onPointerMove: At,
|
|
87
|
-
onPointerUp:
|
|
87
|
+
onPointerUp: Je,
|
|
88
88
|
children: /* @__PURE__ */ Ge("span", { className: "slide-player__interaction-drag-handle-icon", children: [
|
|
89
89
|
/* @__PURE__ */ u(zt, { "aria-hidden": "true" }),
|
|
90
90
|
/* @__PURE__ */ u(zt, { "aria-hidden": "true" }),
|
|
@@ -103,11 +103,11 @@ const No = 2e3, Do = 300, Bo = 160, Vo = 16, qn = 3e3, vt = {
|
|
|
103
103
|
defaultButtonText: Ce,
|
|
104
104
|
defaultInputText: ce,
|
|
105
105
|
defaultSelectedValues: $e,
|
|
106
|
-
confirmButtonText:
|
|
106
|
+
confirmButtonText: It,
|
|
107
107
|
copyButtonText: W,
|
|
108
|
-
copiedButtonText:
|
|
108
|
+
copiedButtonText: bt,
|
|
109
109
|
onSend: Te,
|
|
110
|
-
readonly:
|
|
110
|
+
readonly: We,
|
|
111
111
|
sandboxMode: "content"
|
|
112
112
|
}
|
|
113
113
|
) })
|
|
@@ -127,15 +127,15 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
127
127
|
playerCustomActions: Ce,
|
|
128
128
|
playerCustomActionPauseOnActive: ce = !0,
|
|
129
129
|
bufferingText: $e,
|
|
130
|
-
interactionTitle:
|
|
130
|
+
interactionTitle: It,
|
|
131
131
|
interactionTexts: W,
|
|
132
|
-
playerTexts:
|
|
132
|
+
playerTexts: bt,
|
|
133
133
|
playerAutoHideDelay: Te = 3e3,
|
|
134
134
|
markerAutoAdvanceDelay: ze = No,
|
|
135
|
-
showSlideProgress:
|
|
135
|
+
showSlideProgress: Xe = !1,
|
|
136
136
|
isSlideProgressGenerating: At = !1,
|
|
137
|
-
onSlideProgressNavigate:
|
|
138
|
-
interactionDefaultValueOptions:
|
|
137
|
+
onSlideProgressNavigate: Je,
|
|
138
|
+
interactionDefaultValueOptions: We,
|
|
139
139
|
onSend: jt,
|
|
140
140
|
onPlayerVisibilityChange: wt,
|
|
141
141
|
onMobileViewModeChange: Qt,
|
|
@@ -165,7 +165,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
165
165
|
} = Oo({
|
|
166
166
|
playerEnabled: z,
|
|
167
167
|
playerControlsVisibility: Ee
|
|
168
|
-
}),
|
|
168
|
+
}), je = Jr(), de = m(null), { resolvedDirection: er } = Qr(de, j), xt = m(null), Qe = m(null), nn = m(null), fe = m(null), Ze = m(!1), _e = m(null), et = m(null), Z = m(null), Oe = m(null), Me = m(null), me = m(null), ke = m(null), rn = m([]), pe = m(!1), H = m(null), Le = m(null), on = m(0), Pt = m(null), ln = m({
|
|
169
169
|
markerCount: 0,
|
|
170
170
|
currentIndex: -1,
|
|
171
171
|
canGoNext: !1
|
|
@@ -176,7 +176,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
176
176
|
currentIndex: a,
|
|
177
177
|
audioList: y,
|
|
178
178
|
audioSlideIndexes: ee,
|
|
179
|
-
currentAudioSequenceIndexes:
|
|
179
|
+
currentAudioSequenceIndexes: tt,
|
|
180
180
|
currentStepHasSpeakableElement: w,
|
|
181
181
|
currentInteractionElement: h,
|
|
182
182
|
canGoPrev: tr,
|
|
@@ -195,23 +195,23 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
195
195
|
), cn = S.length, nr = cn === 1, x = Zn && (S.length > 0 || y.length > 0 || !!h), rr = f(
|
|
196
196
|
() => ({
|
|
197
197
|
enabled: ue,
|
|
198
|
-
ownerId:
|
|
198
|
+
ownerId: je
|
|
199
199
|
}),
|
|
200
|
-
[ue,
|
|
200
|
+
[ue, je]
|
|
201
201
|
), Y = r(() => {
|
|
202
|
-
!ue || !x || fo(
|
|
203
|
-
}, [ue,
|
|
204
|
-
() =>
|
|
205
|
-
[y,
|
|
206
|
-
), [or, Ne] = p(!0), [
|
|
202
|
+
!ue || !x || fo(je);
|
|
203
|
+
}, [ue, je, x]), _ = f(
|
|
204
|
+
() => tt.map((e) => y[e]?.audioKey).filter((e) => !!e),
|
|
205
|
+
[y, tt]
|
|
206
|
+
), [or, Ne] = p(!0), [nt, te] = p(!1), [Ct, Tt] = p(!0), [De, un] = p(!0), [P, B] = p(null), [rt, dn] = p(null), Be = m(
|
|
207
207
|
null
|
|
208
|
-
), fn = m(null), [ir, mn] = p(null), [lr, I] = p(!1), [ar, Rt] = p(Wt), [O,
|
|
209
|
-
|
|
208
|
+
), fn = m(null), [ir, mn] = p(null), [lr, I] = p(!1), [ar, Rt] = p(Wt), [O, ot] = p(!1), it = m(/* @__PURE__ */ new Set()), [sr, lt] = p(!1), [pn, cr] = p(!0), [_t, Ot] = p(!1), [b, Mt] = p(), [ge, at] = p(!1), [yn, st] = p(!1), [E, kt] = p(
|
|
209
|
+
St
|
|
210
210
|
), [Lt, Ft] = p(!1), [
|
|
211
211
|
ur,
|
|
212
212
|
ve
|
|
213
|
-
] = p(0), [hn, dr] = p(!1), V = f(() => ro(), []), [
|
|
214
|
-
|
|
213
|
+
] = p(0), [hn, dr] = p(!1), V = f(() => ro(), []), [ct, Nt] = p(
|
|
214
|
+
vt
|
|
215
215
|
), [gn, Dt] = p(!1), [fr, vn] = p(
|
|
216
216
|
() => V ? Bn() : !1
|
|
217
217
|
), Se = f(() => Po(), []), {
|
|
@@ -223,46 +223,46 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
223
223
|
() => mo({
|
|
224
224
|
hasManualMobileViewMode: gn,
|
|
225
225
|
isMobileDevice: V,
|
|
226
|
-
mobileViewMode:
|
|
226
|
+
mobileViewMode: ct
|
|
227
227
|
}),
|
|
228
228
|
[
|
|
229
229
|
gn,
|
|
230
230
|
V,
|
|
231
231
|
fr,
|
|
232
|
-
|
|
232
|
+
ct
|
|
233
233
|
]
|
|
234
234
|
), In = m(ne), {
|
|
235
235
|
controlsVisible: K,
|
|
236
|
-
layoutReserved:
|
|
236
|
+
layoutReserved: ut
|
|
237
237
|
} = Mo({
|
|
238
238
|
isAutoVisible: or,
|
|
239
239
|
playerControlsVisibility: Q,
|
|
240
240
|
shouldMountPlayer: x
|
|
241
|
-
}), pr = Ie && K, yr = Ie &&
|
|
241
|
+
}), pr = Ie && K, yr = Ie && ut, hr = Ie || Sn, bn = hn && !V, gr = r(
|
|
242
242
|
(e) => {
|
|
243
243
|
Dt(!0), Nt(e);
|
|
244
244
|
},
|
|
245
245
|
[]
|
|
246
246
|
), An = r(() => {
|
|
247
|
-
Dt(!1), Nt(
|
|
247
|
+
Dt(!1), Nt(vt);
|
|
248
248
|
}, []), vr = r(() => {
|
|
249
249
|
An(), J?.onBack?.();
|
|
250
250
|
}, [J, An]), M = r(() => {
|
|
251
251
|
Z.current !== null && (window.clearTimeout(Z.current), Z.current = null);
|
|
252
252
|
}, []), k = r(() => {
|
|
253
253
|
Oe.current !== null && (window.clearTimeout(Oe.current), Oe.current = null);
|
|
254
|
-
}, []),
|
|
255
|
-
M(), k(),
|
|
256
|
-
}, [M, k]),
|
|
254
|
+
}, []), dt = r(() => {
|
|
255
|
+
M(), k(), at(!1), ve(0);
|
|
256
|
+
}, [M, k]), ft = r(
|
|
257
257
|
(e) => {
|
|
258
|
-
e &&
|
|
258
|
+
e && dt(), Ot(e);
|
|
259
259
|
},
|
|
260
|
-
[
|
|
260
|
+
[dt]
|
|
261
261
|
), wn = r(() => {
|
|
262
|
-
|
|
263
|
-
}, [
|
|
262
|
+
dt(), Ot((e) => !e);
|
|
263
|
+
}, [dt]), re = r(() => {
|
|
264
264
|
kt(
|
|
265
|
-
(e) => e.x ===
|
|
265
|
+
(e) => e.x === St.x && e.y === St.y ? e : St
|
|
266
266
|
), Ft(!1), ke.current = null, me.current = null;
|
|
267
267
|
}, []), { mountedStepStates: Sr, currentMountedStateIndex: Ir } = f(() => {
|
|
268
268
|
const e = [], t = /* @__PURE__ */ new Map();
|
|
@@ -287,7 +287,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
287
287
|
};
|
|
288
288
|
}, [a, an]), xn = f(() => String(a), [a]), C = f(() => P ? y.findIndex(
|
|
289
289
|
(e) => (e.audioKey ?? "") === P
|
|
290
|
-
) : -1, [y, P]),
|
|
290
|
+
) : -1, [y, P]), mt = f(
|
|
291
291
|
() => C >= 0 ? y[C] : void 0,
|
|
292
292
|
[y, C]
|
|
293
293
|
);
|
|
@@ -308,14 +308,14 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
308
308
|
ye,
|
|
309
309
|
U
|
|
310
310
|
]);
|
|
311
|
-
const br =
|
|
311
|
+
const br = mt?.element?.subtitle_cues ?? [], pt = f(
|
|
312
312
|
() => _[0] ?? "none",
|
|
313
313
|
[_]
|
|
314
314
|
), Bt = f(
|
|
315
315
|
() => ({
|
|
316
316
|
currentElement: wo({
|
|
317
317
|
currentAudioIndex: C,
|
|
318
|
-
currentAudioSequenceIndexes:
|
|
318
|
+
currentAudioSequenceIndexes: tt,
|
|
319
319
|
audioList: y,
|
|
320
320
|
currentInteractionElement: b,
|
|
321
321
|
currentStepElement: Fe
|
|
@@ -323,31 +323,31 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
323
323
|
currentIndex: a,
|
|
324
324
|
currentStepElement: Fe,
|
|
325
325
|
isActive: _t,
|
|
326
|
-
setActive:
|
|
326
|
+
setActive: ft,
|
|
327
327
|
toggleActive: wn
|
|
328
328
|
}),
|
|
329
329
|
[
|
|
330
330
|
b,
|
|
331
331
|
y,
|
|
332
332
|
C,
|
|
333
|
-
|
|
333
|
+
tt,
|
|
334
334
|
a,
|
|
335
335
|
Fe,
|
|
336
336
|
_t,
|
|
337
|
-
|
|
337
|
+
ft,
|
|
338
338
|
wn
|
|
339
339
|
]
|
|
340
|
-
),
|
|
340
|
+
), yt = f(
|
|
341
341
|
() => xo(
|
|
342
342
|
Ce,
|
|
343
343
|
Bt
|
|
344
344
|
),
|
|
345
345
|
[Bt, Ce]
|
|
346
|
-
), Vt =
|
|
346
|
+
), Vt = yt > 0, Kt = Vt && _t, Ar = f(
|
|
347
347
|
() => ({
|
|
348
|
-
"--slide-player-custom-action-count": String(
|
|
348
|
+
"--slide-player-custom-action-count": String(yt),
|
|
349
349
|
"--slide-player-mobile-control-count": String(
|
|
350
|
-
|
|
350
|
+
yt + 4
|
|
351
351
|
),
|
|
352
352
|
"--slide-interaction-drag-x": `${E.x}px`,
|
|
353
353
|
"--slide-interaction-drag-y": `${E.y}px`
|
|
@@ -355,7 +355,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
355
355
|
[
|
|
356
356
|
E.x,
|
|
357
357
|
E.y,
|
|
358
|
-
|
|
358
|
+
yt
|
|
359
359
|
]
|
|
360
360
|
), Pn = _.length > 0, En = f(() => h ? `${h.sequence_number ?? "none"}:${String(
|
|
361
361
|
h.content ?? ""
|
|
@@ -365,13 +365,13 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
365
365
|
), wr = f(
|
|
366
366
|
() => [
|
|
367
367
|
be,
|
|
368
|
-
|
|
368
|
+
mt?.audioKey ?? "none",
|
|
369
369
|
String(C)
|
|
370
370
|
].join("|"),
|
|
371
|
-
[C,
|
|
372
|
-
), Cn = !!f(() => !
|
|
373
|
-
(t) => t.audioKey ===
|
|
374
|
-
)?.audioUrl?.trim() ?? "", [y,
|
|
371
|
+
[C, mt?.audioKey, be]
|
|
372
|
+
), Cn = !!f(() => !pt || pt === "none" ? "" : y.find(
|
|
373
|
+
(t) => t.audioKey === pt
|
|
374
|
+
)?.audioUrl?.trim() ?? "", [y, pt]), oe = ce && Kt, Ve = f(
|
|
375
375
|
() => Co({
|
|
376
376
|
canGoNext: R,
|
|
377
377
|
currentAudioIndex: C,
|
|
@@ -405,10 +405,10 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
405
405
|
}, []), Ae = r(() => {
|
|
406
406
|
_e.current !== null && (window.clearTimeout(_e.current), _e.current = null);
|
|
407
407
|
}, []), G = r(() => {
|
|
408
|
-
|
|
408
|
+
et.current !== null && (window.clearTimeout(et.current), et.current = null);
|
|
409
409
|
}, []), L = r(
|
|
410
410
|
(e = {}) => {
|
|
411
|
-
Ae(), M(), k(), G(), B(null), Se.reset(), I(!1), Rt(Wt),
|
|
411
|
+
Ae(), M(), k(), G(), B(null), Se.reset(), I(!1), Rt(Wt), ot(!1), it.current = /* @__PURE__ */ new Set(), lt(!1), mn(null), e.preservePendingSubtitleJump || (Le.current = null), Mt(void 0), at(!1), ve(0);
|
|
412
412
|
},
|
|
413
413
|
[
|
|
414
414
|
Ae,
|
|
@@ -417,7 +417,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
417
417
|
k,
|
|
418
418
|
Se
|
|
419
419
|
]
|
|
420
|
-
),
|
|
420
|
+
), ht = r(
|
|
421
421
|
(e) => {
|
|
422
422
|
on.current += 1, mn({
|
|
423
423
|
...e,
|
|
@@ -428,11 +428,11 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
428
428
|
), we = r(() => {
|
|
429
429
|
const e = vo(
|
|
430
430
|
_,
|
|
431
|
-
|
|
431
|
+
it.current
|
|
432
432
|
);
|
|
433
433
|
return e ? (B(e), !0) : !1;
|
|
434
434
|
}, [_]), qe = r(() => {
|
|
435
|
-
M(), k(),
|
|
435
|
+
M(), k(), at(!1), ve(0), !we() && R && D();
|
|
436
436
|
}, [
|
|
437
437
|
R,
|
|
438
438
|
M,
|
|
@@ -446,7 +446,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
446
446
|
const t = () => {
|
|
447
447
|
Oe.current = null, ve(
|
|
448
448
|
Bo
|
|
449
|
-
),
|
|
449
|
+
), at(!0), H.current = null;
|
|
450
450
|
};
|
|
451
451
|
Oe.current = window.setTimeout(
|
|
452
452
|
t,
|
|
@@ -455,10 +455,10 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
455
455
|
},
|
|
456
456
|
[k]
|
|
457
457
|
), Ut = r(
|
|
458
|
-
() =>
|
|
458
|
+
() => Ze.current || !!de.current?.querySelector(".slide-player__controls:hover"),
|
|
459
459
|
[]
|
|
460
460
|
), g = r(
|
|
461
|
-
(e =
|
|
461
|
+
(e = nt) => {
|
|
462
462
|
!x || Q === "hidden" || (Ne(!0), q(), !(Q === "visible" || !e || Te <= 0 || Ut()) && (fe.current = window.setTimeout(() => {
|
|
463
463
|
if (Ut()) {
|
|
464
464
|
fe.current = null;
|
|
@@ -469,7 +469,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
469
469
|
},
|
|
470
470
|
[
|
|
471
471
|
q,
|
|
472
|
-
|
|
472
|
+
nt,
|
|
473
473
|
Ut,
|
|
474
474
|
Te,
|
|
475
475
|
Q,
|
|
@@ -486,11 +486,11 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
486
486
|
s(() => {
|
|
487
487
|
un(Ct);
|
|
488
488
|
}, [a, Ct, ce]), s(() => {
|
|
489
|
-
ce &&
|
|
489
|
+
ce && ft(!1);
|
|
490
490
|
}, [
|
|
491
491
|
a,
|
|
492
492
|
ce,
|
|
493
|
-
|
|
493
|
+
ft
|
|
494
494
|
]), s(() => {
|
|
495
495
|
Vt || Ot(!1);
|
|
496
496
|
}, [Vt]), s(() => () => {
|
|
@@ -515,7 +515,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
515
515
|
if (e)
|
|
516
516
|
return;
|
|
517
517
|
i();
|
|
518
|
-
const v =
|
|
518
|
+
const v = Qe.current?.querySelector(
|
|
519
519
|
'[data-active-step="true"]'
|
|
520
520
|
);
|
|
521
521
|
if (!v)
|
|
@@ -551,7 +551,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
551
551
|
};
|
|
552
552
|
return t = window.requestAnimationFrame(() => {
|
|
553
553
|
t = null, o();
|
|
554
|
-
}),
|
|
554
|
+
}), et.current = window.setTimeout(() => {
|
|
555
555
|
l();
|
|
556
556
|
}, To), () => {
|
|
557
557
|
e = !0, i(), G(), t !== null && window.cancelAnimationFrame(t);
|
|
@@ -565,10 +565,10 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
565
565
|
]), s(() => (wt?.(K), () => {
|
|
566
566
|
wt?.(!1);
|
|
567
567
|
}), [wt, K]), s(() => {
|
|
568
|
-
K || (
|
|
568
|
+
K || (Ze.current = !1);
|
|
569
569
|
}, [K]), s(() => {
|
|
570
|
-
V ||
|
|
571
|
-
}, [V,
|
|
570
|
+
V || ct === vt || (Dt(!1), Nt(vt));
|
|
571
|
+
}, [V, ct]), s(() => {
|
|
572
572
|
if (!V) {
|
|
573
573
|
vn(!1);
|
|
574
574
|
return;
|
|
@@ -640,10 +640,10 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
640
640
|
q(), Ne(!0);
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
nt || g(!0);
|
|
644
644
|
}, [
|
|
645
645
|
q,
|
|
646
|
-
|
|
646
|
+
nt,
|
|
647
647
|
Q,
|
|
648
648
|
x,
|
|
649
649
|
g
|
|
@@ -698,7 +698,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
698
698
|
slideElementList: S,
|
|
699
699
|
targetSlideIndex: l.slideIndex
|
|
700
700
|
})) {
|
|
701
|
-
Le.current = null, Et.current = !0, B(l.audioKey),
|
|
701
|
+
Le.current = null, Et.current = !0, B(l.audioKey), ht({
|
|
702
702
|
audioIndex: l.audioIndex,
|
|
703
703
|
timeMs: l.timeMs
|
|
704
704
|
});
|
|
@@ -747,7 +747,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
747
747
|
ie,
|
|
748
748
|
k,
|
|
749
749
|
L,
|
|
750
|
-
|
|
750
|
+
ht,
|
|
751
751
|
On,
|
|
752
752
|
x,
|
|
753
753
|
S,
|
|
@@ -778,8 +778,8 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
778
778
|
]), s(() => {
|
|
779
779
|
O && So(
|
|
780
780
|
_,
|
|
781
|
-
|
|
782
|
-
) &&
|
|
781
|
+
it.current
|
|
782
|
+
) && ot(!1);
|
|
783
783
|
}, [_, O]), s(() => {
|
|
784
784
|
if (Be.current)
|
|
785
785
|
return;
|
|
@@ -806,7 +806,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
806
806
|
}, [C, P]), s(() => {
|
|
807
807
|
C >= 0 || Se.reset();
|
|
808
808
|
}, [C, Se]), s(() => {
|
|
809
|
-
|
|
809
|
+
lt(!1);
|
|
810
810
|
}, [wr]);
|
|
811
811
|
const {
|
|
812
812
|
interactionDefaults: Mn,
|
|
@@ -816,9 +816,9 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
816
816
|
shouldAutoContinueInteraction: Ln
|
|
817
817
|
} = f(
|
|
818
818
|
() => Eo(b, {
|
|
819
|
-
interactionDefaultValueOptions:
|
|
819
|
+
interactionDefaultValueOptions: We
|
|
820
820
|
}),
|
|
821
|
-
[b,
|
|
821
|
+
[b, We]
|
|
822
822
|
), Rr = !!b?.readonly || Tr, He = po({
|
|
823
823
|
hasActiveInteraction: !!b,
|
|
824
824
|
isInteractionOverlayOpen: ge
|
|
@@ -844,7 +844,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
844
844
|
document.removeEventListener("fullscreenchange", e);
|
|
845
845
|
};
|
|
846
846
|
}, []), s(() => {
|
|
847
|
-
b && ge ||
|
|
847
|
+
b && ge || st(!1);
|
|
848
848
|
}, [b, ge]), s(() => {
|
|
849
849
|
re();
|
|
850
850
|
}, [b, re]), s(() => {
|
|
@@ -969,7 +969,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
971
|
}, []), Fn = r(() => {
|
|
972
|
-
const e =
|
|
972
|
+
const e = Qe.current;
|
|
973
973
|
e && e.scrollTo({
|
|
974
974
|
top: e.scrollHeight,
|
|
975
975
|
behavior: "smooth"
|
|
@@ -990,7 +990,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
990
990
|
), Lr = r(
|
|
991
991
|
(e, t) => {
|
|
992
992
|
const i = y[e.audioIndex]?.audioKey, l = ee[e.audioIndex];
|
|
993
|
-
return !i || l == null || !Ht(e) ? !1 : ($(t), H.current = null, I(!1),
|
|
993
|
+
return !i || l == null || !Ht(e) ? !1 : ($(t), H.current = null, I(!1), ot(!1), lt(!1), $t(t) && (te(!0), g(!0)), l === a ? (Le.current = null, L(), B(i), ht(e), !0) : (pe.current = !0, L(), Le.current = {
|
|
994
994
|
audioIndex: e.audioIndex,
|
|
995
995
|
audioKey: i,
|
|
996
996
|
slideIndex: l,
|
|
@@ -1003,7 +1003,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1003
1003
|
Ht,
|
|
1004
1004
|
a,
|
|
1005
1005
|
ye,
|
|
1006
|
-
|
|
1006
|
+
ht,
|
|
1007
1007
|
L,
|
|
1008
1008
|
g,
|
|
1009
1009
|
$
|
|
@@ -1030,12 +1030,12 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1030
1030
|
]
|
|
1031
1031
|
), Dr = r(
|
|
1032
1032
|
(e, t) => {
|
|
1033
|
-
e < 0 || e >= S.length || e === a || ($(t), pe.current = !0, H.current = null, I(!1), te(!0), g(!0), L(), ye(e),
|
|
1033
|
+
e < 0 || e >= S.length || e === a || ($(t), pe.current = !0, H.current = null, I(!1), te(!0), g(!0), L(), ye(e), Je?.(S[e], e));
|
|
1034
1034
|
},
|
|
1035
1035
|
[
|
|
1036
1036
|
a,
|
|
1037
1037
|
ye,
|
|
1038
|
-
|
|
1038
|
+
Je,
|
|
1039
1039
|
L,
|
|
1040
1040
|
g,
|
|
1041
1041
|
S,
|
|
@@ -1070,7 +1070,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1070
1070
|
const t = y[e]?.audioKey;
|
|
1071
1071
|
if (!t || !P || t !== P)
|
|
1072
1072
|
return;
|
|
1073
|
-
|
|
1073
|
+
it.current.add(t);
|
|
1074
1074
|
const n = _.findIndex(
|
|
1075
1075
|
(o) => o === t
|
|
1076
1076
|
);
|
|
@@ -1083,7 +1083,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1083
1083
|
B(l);
|
|
1084
1084
|
return;
|
|
1085
1085
|
}
|
|
1086
|
-
if (B(null),
|
|
1086
|
+
if (B(null), ot(!0), I(!1), R) {
|
|
1087
1087
|
const o = a + 1, v = S[o];
|
|
1088
1088
|
Cn && v?.type === "interaction" && (H.current = o), D();
|
|
1089
1089
|
return;
|
|
@@ -1100,15 +1100,15 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1100
1100
|
S
|
|
1101
1101
|
]
|
|
1102
1102
|
), Kr = r(() => {
|
|
1103
|
-
|
|
1103
|
+
Ze.current = !0, q(), x && Ne(!0);
|
|
1104
1104
|
}, [q, x]), qr = r(() => {
|
|
1105
|
-
|
|
1105
|
+
Ze.current = !1, g(!0);
|
|
1106
1106
|
}, [g]), Yt = r(
|
|
1107
1107
|
(e) => {
|
|
1108
1108
|
e.stopPropagation(), K && g(!0);
|
|
1109
1109
|
},
|
|
1110
1110
|
[K, g]
|
|
1111
|
-
),
|
|
1111
|
+
), gt = r(
|
|
1112
1112
|
(e, t) => {
|
|
1113
1113
|
const n = xt.current;
|
|
1114
1114
|
if (!n)
|
|
@@ -1148,7 +1148,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1148
1148
|
const o = {
|
|
1149
1149
|
x: E.x + i,
|
|
1150
1150
|
y: E.y + l
|
|
1151
|
-
}, v =
|
|
1151
|
+
}, v = gt(
|
|
1152
1152
|
e,
|
|
1153
1153
|
E
|
|
1154
1154
|
), A = Uo(
|
|
@@ -1164,17 +1164,17 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1164
1164
|
(le) => Hn(le, A) ? le : A
|
|
1165
1165
|
);
|
|
1166
1166
|
}, [
|
|
1167
|
-
|
|
1167
|
+
gt,
|
|
1168
1168
|
E,
|
|
1169
1169
|
Lt,
|
|
1170
|
-
|
|
1170
|
+
ut,
|
|
1171
1171
|
He
|
|
1172
1172
|
]);
|
|
1173
1173
|
const Ur = r(
|
|
1174
1174
|
(e) => {
|
|
1175
1175
|
if (Yt(e), e.button !== 0 || !e.currentTarget.isConnected || !Me.current)
|
|
1176
1176
|
return;
|
|
1177
|
-
const t =
|
|
1177
|
+
const t = gt(
|
|
1178
1178
|
Me.current,
|
|
1179
1179
|
E
|
|
1180
1180
|
);
|
|
@@ -1187,7 +1187,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1187
1187
|
}, Ft(!0));
|
|
1188
1188
|
},
|
|
1189
1189
|
[
|
|
1190
|
-
|
|
1190
|
+
gt,
|
|
1191
1191
|
E,
|
|
1192
1192
|
Yt
|
|
1193
1193
|
]
|
|
@@ -1231,7 +1231,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1231
1231
|
if (rn.current = he, !i)
|
|
1232
1232
|
return;
|
|
1233
1233
|
const l = window.requestAnimationFrame(() => {
|
|
1234
|
-
const o =
|
|
1234
|
+
const o = Qe.current, v = nn.current;
|
|
1235
1235
|
if (!o || !v)
|
|
1236
1236
|
return;
|
|
1237
1237
|
const A = o.getBoundingClientRect(), le = v.getBoundingClientRect(), Ye = o.scrollTop + (le.top - A.top);
|
|
@@ -1315,7 +1315,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1315
1315
|
yr && "slide__viewport-content--with-header",
|
|
1316
1316
|
nr ? "slide-content--single" : "grid gap-4"
|
|
1317
1317
|
),
|
|
1318
|
-
children: T.length > 0 ? /* @__PURE__ */ u("div", { className: "slide-stage", children: /* @__PURE__ */ u("div", { ref:
|
|
1318
|
+
children: T.length > 0 ? /* @__PURE__ */ u("div", { className: "slide-stage", children: /* @__PURE__ */ u("div", { ref: Qe, className: "slide-stage__layer w-full", children: Sr.map(
|
|
1319
1319
|
(e, t) => {
|
|
1320
1320
|
const n = t === Ir;
|
|
1321
1321
|
return /* @__PURE__ */ u(
|
|
@@ -1350,7 +1350,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1350
1350
|
ao,
|
|
1351
1351
|
{
|
|
1352
1352
|
extraBottomOffset: ur,
|
|
1353
|
-
hasPlayerGap:
|
|
1353
|
+
hasPlayerGap: ut,
|
|
1354
1354
|
isEnabled: pn && sr,
|
|
1355
1355
|
playbackTimeStore: Se,
|
|
1356
1356
|
subtitleCues: br
|
|
@@ -1363,18 +1363,18 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1363
1363
|
"data-player-keyboard-shortcuts-ignore": "true",
|
|
1364
1364
|
className: Pe(
|
|
1365
1365
|
"slide-interaction-overlay",
|
|
1366
|
-
|
|
1366
|
+
ut ? "slide-interaction-overlay--with-player" : "slide-interaction-overlay--standalone",
|
|
1367
1367
|
Lt && "slide-interaction-overlay--dragging"
|
|
1368
1368
|
),
|
|
1369
1369
|
onClick: Yt,
|
|
1370
1370
|
onPointerDownCapture: (e) => {
|
|
1371
|
-
Xt(e.target) &&
|
|
1371
|
+
Xt(e.target) && st(!0);
|
|
1372
1372
|
},
|
|
1373
1373
|
onFocusCapture: (e) => {
|
|
1374
|
-
Xt(e.target) &&
|
|
1374
|
+
Xt(e.target) && st(!0);
|
|
1375
1375
|
},
|
|
1376
1376
|
onInputCapture: (e) => {
|
|
1377
|
-
Xt(e.target) &&
|
|
1377
|
+
Xt(e.target) && st(!0);
|
|
1378
1378
|
},
|
|
1379
1379
|
style: Ar,
|
|
1380
1380
|
children: /* @__PURE__ */ u(
|
|
@@ -1397,7 +1397,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1397
1397
|
onDragHandlePointerMove: Hr,
|
|
1398
1398
|
onDragHandlePointerUp: Nn,
|
|
1399
1399
|
readonly: Rr,
|
|
1400
|
-
title: W?.title ??
|
|
1400
|
+
title: W?.title ?? It ?? N.interactionTexts.title
|
|
1401
1401
|
}
|
|
1402
1402
|
)
|
|
1403
1403
|
}
|
|
@@ -1414,7 +1414,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1414
1414
|
audioList: y,
|
|
1415
1415
|
className: Pe(
|
|
1416
1416
|
"absolute left-1/2 z-[2] -translate-x-1/2",
|
|
1417
|
-
bn ? "bottom-3" : "-bottom-3",
|
|
1417
|
+
Xe ? "bottom-9" : bn ? "bottom-3" : "-bottom-3",
|
|
1418
1418
|
X,
|
|
1419
1419
|
!K && "pointer-events-none opacity-0"
|
|
1420
1420
|
),
|
|
@@ -1429,7 +1429,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1429
1429
|
onAutoAdvanceToggle: un,
|
|
1430
1430
|
onLoadingChange: Br,
|
|
1431
1431
|
onPlaybackStarted: () => {
|
|
1432
|
-
|
|
1432
|
+
lt(!0);
|
|
1433
1433
|
},
|
|
1434
1434
|
onPlaybackCheckpoint: ({ audioKey: e, isComplete: t, timeMs: n }) => {
|
|
1435
1435
|
const i = y.findIndex(
|
|
@@ -1463,7 +1463,7 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1463
1463
|
canJumpToSubtitleTarget: Ht,
|
|
1464
1464
|
prevDisabled: !tr,
|
|
1465
1465
|
showControls: K,
|
|
1466
|
-
slideProgress:
|
|
1466
|
+
slideProgress: Xe ? {
|
|
1467
1467
|
ariaLabel: N.slideProgressAriaLabel,
|
|
1468
1468
|
currentIndex: a,
|
|
1469
1469
|
generatingLabel: N.slideProgressGeneratingLabel,
|
|
@@ -1472,14 +1472,14 @@ const $o = (c, d) => c.length === d.length && c.every((z, Ee) => {
|
|
|
1472
1472
|
totalSteps: cn
|
|
1473
1473
|
} : null,
|
|
1474
1474
|
subtitleSeekRequest: ir,
|
|
1475
|
-
playbackRestoreRequest:
|
|
1476
|
-
id:
|
|
1477
|
-
timeMs:
|
|
1475
|
+
playbackRestoreRequest: rt && rt.audioKey === mt?.audioKey ? {
|
|
1476
|
+
id: rt.id,
|
|
1477
|
+
timeMs: rt.timeMs
|
|
1478
1478
|
} : null,
|
|
1479
1479
|
onPlaybackRestoreComplete: (e) => {
|
|
1480
1480
|
Be.current?.id === e && (Be.current = null, dn(null));
|
|
1481
1481
|
},
|
|
1482
|
-
texts:
|
|
1482
|
+
texts: bt,
|
|
1483
1483
|
customActionContext: Bt,
|
|
1484
1484
|
customActions: Ce,
|
|
1485
1485
|
useAutoAdvanceToggle: Ve
|