@wyxos/vibe 3.1.8 → 3.1.9
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 +1 -0
- package/lib/components/viewer-core/removalState.d.ts +1 -0
- package/lib/components/viewer-core/useAutoResolveSource.d.ts +1 -0
- package/lib/components/viewer-core/useController.d.ts +2 -0
- package/lib/components/viewer-core/useDataSource.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +579 -576
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Comment as e, Fragment as t, Text as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, getCurrentScope as f, guardReactiveProps as p, h as m, isVNode as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onScopeDispose as C, openBlock as w, reactive as T, readonly as E, ref as D, renderList as
|
|
1
|
+
import { Comment as e, Fragment as t, Text as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, getCurrentScope as f, guardReactiveProps as p, h as m, isVNode as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onScopeDispose as C, openBlock as w, reactive as T, readonly as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, toDisplayString as j, toRef as M, unref as N, useAttrs as P, useSlots as F, vShow as I, watch as L, watchEffect as R, withCtx as z, withDirectives as B, withModifiers as ee } from "vue";
|
|
2
2
|
//#region node_modules/lucide-vue-next/dist/esm/shared/src/utils/hasA11yProp.js
|
|
3
|
-
var
|
|
3
|
+
var te = (e) => {
|
|
4
4
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
5
5
|
return !1;
|
|
6
6
|
}, V = (e) => e === "", H = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), U = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), W = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ne = (e) => {
|
|
@@ -24,7 +24,7 @@ var B = (e) => {
|
|
|
24
24
|
stroke: s,
|
|
25
25
|
"stroke-width": V(n) || V(r) || n === !0 || r === !0 ? Number(i || a || G["stroke-width"]) * 24 / Number(o) : i || a || G["stroke-width"],
|
|
26
26
|
class: H("lucide", c.class, ...e ? [`lucide-${U(ne(e))}-icon`, `lucide-${U(e)}`] : ["lucide-icon"]),
|
|
27
|
-
...!l.default && !
|
|
27
|
+
...!l.default && !te(c) && { "aria-hidden": "true" }
|
|
28
28
|
}, [...t.map((e) => m(...e)), ...l.default ? [l.default()] : []]), q = (e, t) => (n, { slots: r, attrs: i }) => m(K, {
|
|
29
29
|
...i,
|
|
30
30
|
...n,
|
|
@@ -179,10 +179,10 @@ var B = (e) => {
|
|
|
179
179
|
key: "5ykzw1"
|
|
180
180
|
}]
|
|
181
181
|
]);
|
|
182
|
-
function
|
|
182
|
+
function fe(e, t = 150) {
|
|
183
183
|
return pe(e, (e) => `${e.surface}|${e.occurrenceKey}|${e.url}|${e.kind}`, t);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Z(e, t = 150) {
|
|
186
186
|
return pe(e, (e) => `${e.surface}|${e.occurrenceKey}|${e.url}`, t);
|
|
187
187
|
}
|
|
188
188
|
function pe(e, t, n) {
|
|
@@ -437,23 +437,23 @@ function Ue() {
|
|
|
437
437
|
//#endregion
|
|
438
438
|
//#region src/components/viewer-core/useAutoResolveSource.ts
|
|
439
439
|
function We(e) {
|
|
440
|
-
let t = !!e.initialState?.items.length, n = D([]), r = D(0), a = D([]), o = D(!1), s = D(null), c = D(!t && typeof e.resolve == "function" ? "initializing" : "idle"), l = D(null), u =
|
|
441
|
-
|
|
440
|
+
let t = !!e.initialState?.items.length, n = D([]), r = D(0), a = D([]), o = D(!1), s = D(null), c = D(!t && typeof e.resolve == "function" ? "initializing" : "idle"), l = D(null), u = D(null), d = Ue(), f = d.remainingMs, p = D(null), m = D(!1), h = D(!0), g = D(!1), _ = /* @__PURE__ */ new Set(), v = null, y = null, b = 0, C = 0, w = i(() => He(e.fillDelayMs, Re)), T = i(() => He(e.fillDelayStepMs, ze)), E = i(() => typeof e.resolve == "function"), O = i(() => _e(e.pageSize)), k = i(() => we(n.value)), A = i(() => Te(k.value, e.removedIds.value)), j = i(() => r.value), M = i(() => ge(c.value) || m.value), N = i(() => Ge(n.value, e.removedIds.value)), P = i(() => Ke(n.value, e.removedIds.value)), F = i(() => P.value?.nextCursor ?? null), I = i(() => o.value ? null : N.value?.previousCursor ?? null), R = i(() => !!F.value), z = i(() => !!I.value), B = i(() => E.value && n.value.length > 0), ee = i(() => Te(we(a.value), e.removedIds.value)), te = i(() => Oe(n.value, e.removedIds.value, j.value)), V = i(() => !A.value.length && !M.value && !!s.value);
|
|
441
|
+
L(() => A.value.length, (e) => {
|
|
442
442
|
if (e === 0) {
|
|
443
443
|
r.value = 0;
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
|
-
o.value &&= (
|
|
447
|
-
}),
|
|
448
|
-
|
|
446
|
+
o.value &&= (ye(), !1), r.value > e - 1 && (r.value = e - 1);
|
|
447
|
+
}), L(() => r.value, () => {
|
|
448
|
+
h.value && ce();
|
|
449
449
|
}), S(() => {
|
|
450
|
-
|
|
450
|
+
pe() || e.resolve && H();
|
|
451
451
|
}), x(() => {
|
|
452
|
-
|
|
452
|
+
v?.abort(), v = null, d.clear(!0);
|
|
453
453
|
});
|
|
454
|
-
async function
|
|
455
|
-
|
|
456
|
-
let t = await
|
|
454
|
+
async function H() {
|
|
455
|
+
y = H;
|
|
456
|
+
let t = await de({
|
|
457
457
|
continueUntilFilled: !0,
|
|
458
458
|
cursor: e.initialCursor ?? null,
|
|
459
459
|
direction: "forward",
|
|
@@ -461,179 +461,179 @@ function We(e) {
|
|
|
461
461
|
});
|
|
462
462
|
t && (n.value = t.buckets, r.value = 0, Z());
|
|
463
463
|
}
|
|
464
|
-
async function H() {
|
|
465
|
-
if (!(h.value || A.value)) {
|
|
466
|
-
if (me("trailing") || !F.value) {
|
|
467
|
-
if (!R.value) return;
|
|
468
|
-
let e = await X("trailing");
|
|
469
|
-
e?.itemsLoaded === 0 && e.followCursor && await ce(e.followCursor);
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
await ce(N.value);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
464
|
async function U() {
|
|
476
|
-
if (!(
|
|
477
|
-
if (
|
|
478
|
-
|
|
465
|
+
if (!(g.value || M.value)) {
|
|
466
|
+
if (he("trailing") || !R.value) {
|
|
467
|
+
if (!B.value) return;
|
|
468
|
+
let e = await ue("trailing");
|
|
479
469
|
e?.itemsLoaded === 0 && e.followCursor && await le(e.followCursor);
|
|
480
470
|
return;
|
|
481
471
|
}
|
|
482
|
-
await le(
|
|
472
|
+
await le(F.value);
|
|
483
473
|
}
|
|
484
474
|
}
|
|
485
475
|
async function W() {
|
|
486
|
-
if (
|
|
487
|
-
if (
|
|
488
|
-
|
|
476
|
+
if (!(g.value || !z.value || M.value)) {
|
|
477
|
+
if (he("leading")) {
|
|
478
|
+
let e = await ue("leading");
|
|
479
|
+
e?.itemsLoaded === 0 && e.followCursor && await X(e.followCursor);
|
|
489
480
|
return;
|
|
490
481
|
}
|
|
491
|
-
await
|
|
482
|
+
await X(I.value);
|
|
492
483
|
}
|
|
493
484
|
}
|
|
494
485
|
async function ne() {
|
|
495
|
-
if (
|
|
496
|
-
|
|
486
|
+
if (V.value) {
|
|
487
|
+
if (n.value = [], r.value = 0, a.value = [], o.value = !1, s.value = null, c.value = E.value ? "initializing" : "idle", l.value = null, u.value = null, p.value = null, m.value = !1, _.clear(), v?.abort(), v = null, d.clear(!0), pe()) {
|
|
488
|
+
Z();
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
await H();
|
|
492
|
+
}
|
|
497
493
|
}
|
|
498
494
|
async function G() {
|
|
499
|
-
if (
|
|
500
|
-
|
|
495
|
+
if (V.value) return ne();
|
|
496
|
+
g.value || c.value !== "failed" || !y || (s.value = null, await y());
|
|
497
|
+
}
|
|
498
|
+
async function K() {
|
|
499
|
+
if (!a.value.length) return m.value = !1, Z();
|
|
500
|
+
n.value = [...n.value, ...a.value], a.value = [], m.value = !1, Z();
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
let n =
|
|
502
|
+
function q(t) {
|
|
503
|
+
let n = A.value;
|
|
504
504
|
if (!n.length) return;
|
|
505
505
|
let i = Q(t, 0, n.length - 1);
|
|
506
506
|
i !== r.value && (r.value = i, e.emit("update:activeIndex", i));
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
|
|
510
|
-
}
|
|
511
|
-
function re() {
|
|
512
|
-
h.value = !0, u.clear(!0);
|
|
508
|
+
function re(e) {
|
|
509
|
+
h.value = e;
|
|
513
510
|
}
|
|
514
511
|
function J() {
|
|
515
|
-
|
|
512
|
+
g.value = !0, d.clear(!0);
|
|
516
513
|
}
|
|
517
514
|
function Y() {
|
|
518
|
-
|
|
515
|
+
g.value = !1;
|
|
519
516
|
}
|
|
520
517
|
function ie() {
|
|
521
|
-
|
|
518
|
+
b += 1, v?.abort(), v = null, d.clear(!0), _.clear(), s.value = null, l.value = null, u.value = null, p.value = null, a.value.length > 0 && (n.value = [...n.value, ...a.value], a.value = []), m.value = !1, o.value = !1, Z();
|
|
522
519
|
}
|
|
523
|
-
function ae(
|
|
524
|
-
|
|
520
|
+
function ae() {
|
|
521
|
+
return Fe(A.value, j.value);
|
|
522
|
+
}
|
|
523
|
+
function oe(e = null, t = {}) {
|
|
524
|
+
if (A.value.length === 0) {
|
|
525
525
|
r.value = 0, !t.preserveTrailingPlaceholder && n.value.length > 0 && (o.value = !0);
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
528
|
if (e) {
|
|
529
|
-
let t =
|
|
529
|
+
let t = A.value.findIndex((t) => $(t) === e);
|
|
530
530
|
if (t >= 0) {
|
|
531
531
|
r.value = t;
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
if (t.preserveTrailingPlaceholder && r.value >=
|
|
536
|
-
r.value =
|
|
535
|
+
if (t.preserveTrailingPlaceholder && r.value >= A.value.length) {
|
|
536
|
+
r.value = A.value.length;
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
|
-
r.value = Ie(
|
|
539
|
+
r.value = Ie(A.value, j.value, e);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
a.value.length > 0 && !
|
|
541
|
+
function se() {
|
|
542
|
+
a.value.length > 0 && !ee.value.length && K();
|
|
543
543
|
}
|
|
544
|
-
async function
|
|
545
|
-
if (!(!
|
|
546
|
-
if (!
|
|
547
|
-
|
|
544
|
+
async function ce() {
|
|
545
|
+
if (!(!h.value || me())) {
|
|
546
|
+
if (!A.value.length) {
|
|
547
|
+
R.value && await U();
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
z.value && r.value < 3 && await W(), R.value && r.value >= A.value.length - 3 && await U();
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
async function
|
|
554
|
-
|
|
555
|
-
await
|
|
553
|
+
async function le(e) {
|
|
554
|
+
y = async () => {
|
|
555
|
+
await le(e);
|
|
556
556
|
};
|
|
557
|
-
let t = await
|
|
557
|
+
let t = await de({
|
|
558
558
|
continueUntilFilled: !0,
|
|
559
559
|
cursor: e,
|
|
560
560
|
direction: "forward",
|
|
561
561
|
phase: "loading"
|
|
562
562
|
});
|
|
563
563
|
if (t) {
|
|
564
|
-
if (t.canceled) return n.value = [...n.value, ...t.buckets], a.value = [],
|
|
565
|
-
if (a.value = t.buckets, !
|
|
566
|
-
|
|
564
|
+
if (t.canceled) return n.value = [...n.value, ...t.buckets], a.value = [], m.value = !1, Z();
|
|
565
|
+
if (a.value = t.buckets, !ee.value.length) return n.value = [...n.value, ...a.value], a.value = [], m.value = !1, Z();
|
|
566
|
+
m.value = !0;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
async function
|
|
570
|
-
|
|
571
|
-
await
|
|
569
|
+
async function X(e) {
|
|
570
|
+
y = async () => {
|
|
571
|
+
await X(e);
|
|
572
572
|
};
|
|
573
|
-
let t = await
|
|
573
|
+
let t = await de({
|
|
574
574
|
continueUntilFilled: !0,
|
|
575
575
|
cursor: e,
|
|
576
576
|
direction: "backward",
|
|
577
577
|
phase: "loading"
|
|
578
578
|
});
|
|
579
579
|
if (!t) return;
|
|
580
|
-
let r =
|
|
581
|
-
n.value = [...t.buckets, ...n.value],
|
|
580
|
+
let r = ae();
|
|
581
|
+
n.value = [...t.buckets, ...n.value], oe(r), Z();
|
|
582
582
|
}
|
|
583
|
-
async function
|
|
584
|
-
if (
|
|
585
|
-
await
|
|
583
|
+
async function ue(t) {
|
|
584
|
+
if (y = async () => {
|
|
585
|
+
await ue(t);
|
|
586
586
|
}, !e.resolve) return null;
|
|
587
|
-
let r = t === "leading" ?
|
|
587
|
+
let r = t === "leading" ? N.value : P.value;
|
|
588
588
|
if (!r) return null;
|
|
589
589
|
let i = ve(r.cursor);
|
|
590
|
-
if (
|
|
591
|
-
|
|
592
|
-
let a = ++
|
|
593
|
-
|
|
590
|
+
if (_.has(i)) return null;
|
|
591
|
+
_.add(i), s.value = null, c.value = "refreshing", l.value = null, u.value = null, p.value = null;
|
|
592
|
+
let a = ++b, o = typeof AbortController > "u" ? null : new AbortController();
|
|
593
|
+
v = o;
|
|
594
594
|
try {
|
|
595
595
|
let i = await e.resolve({
|
|
596
596
|
cursor: r.cursor,
|
|
597
|
-
pageSize:
|
|
597
|
+
pageSize: O.value,
|
|
598
598
|
signal: o?.signal
|
|
599
599
|
});
|
|
600
|
-
if (a !==
|
|
601
|
-
let s =
|
|
600
|
+
if (a !== b) return Z(), null;
|
|
601
|
+
let s = fe({
|
|
602
602
|
cursor: r.cursor,
|
|
603
603
|
nextCursor: i.nextPage,
|
|
604
604
|
nextItems: i.items,
|
|
605
605
|
previousCursor: i.previousPage ?? null,
|
|
606
606
|
previousItems: r.items
|
|
607
|
-
}), c =
|
|
608
|
-
return n.value = ke(n.value, r.cursor, s),
|
|
607
|
+
}), c = ae();
|
|
608
|
+
return n.value = ke(n.value, r.cursor, s), oe(c), Z(), {
|
|
609
609
|
followCursor: t === "leading" ? i.previousPage ?? null : i.nextPage,
|
|
610
610
|
itemsLoaded: i.items.length
|
|
611
611
|
};
|
|
612
612
|
} catch (e) {
|
|
613
|
-
return je(e) || a !==
|
|
613
|
+
return je(e) || a !== b ? (Z(), null) : (s.value = e instanceof Error ? e.message : "The viewer could not load items.", c.value = "failed", l.value = null, u.value = null, p.value = null, null);
|
|
614
614
|
} finally {
|
|
615
|
-
|
|
615
|
+
v === o && (v = null), _.delete(i);
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
async function
|
|
618
|
+
async function de(t) {
|
|
619
619
|
if (!e.resolve) return null;
|
|
620
|
-
let n = ++
|
|
621
|
-
for (s.value = null, c.value = t.phase, l.value = null,
|
|
622
|
-
if (n !==
|
|
623
|
-
if (i.length > 0 &&
|
|
624
|
-
let
|
|
625
|
-
if (r.has(
|
|
626
|
-
r.add(
|
|
627
|
-
let
|
|
628
|
-
|
|
620
|
+
let n = ++b, r = /* @__PURE__ */ new Set(), i = [], a = t.cursor, o = 0;
|
|
621
|
+
for (s.value = null, c.value = t.phase, l.value = null, u.value = null, p.value = null;;) {
|
|
622
|
+
if (n !== b) return Ne(i, t.direction, e.removedIds.value, !0);
|
|
623
|
+
if (i.length > 0 && g.value) return Ne(i, t.direction, e.removedIds.value, !1);
|
|
624
|
+
let f = ve(a);
|
|
625
|
+
if (r.has(f) || _.has(f)) break;
|
|
626
|
+
r.add(f), _.add(f);
|
|
627
|
+
let m = typeof AbortController > "u" ? null : new AbortController();
|
|
628
|
+
v = m;
|
|
629
629
|
try {
|
|
630
630
|
let r = await e.resolve({
|
|
631
631
|
cursor: a,
|
|
632
|
-
pageSize:
|
|
633
|
-
signal:
|
|
632
|
+
pageSize: O.value,
|
|
633
|
+
signal: m?.signal
|
|
634
634
|
});
|
|
635
|
-
if (n !==
|
|
636
|
-
let s =
|
|
635
|
+
if (n !== b) return Ne(i, t.direction, e.removedIds.value, !0);
|
|
636
|
+
let s = fe({
|
|
637
637
|
cursor: a,
|
|
638
638
|
nextCursor: r.nextPage,
|
|
639
639
|
nextItems: r.items,
|
|
@@ -641,55 +641,55 @@ function We(e) {
|
|
|
641
641
|
previousItems: []
|
|
642
642
|
});
|
|
643
643
|
i.push(s);
|
|
644
|
-
let
|
|
645
|
-
if (!t.continueUntilFilled ||
|
|
644
|
+
let f = i.reduce((t, n) => t + De(n, e.removedIds.value), 0), h = t.direction === "forward" ? s.nextCursor : s.previousCursor;
|
|
645
|
+
if (!t.continueUntilFilled || f >= O.value || !h) return u.value = null, {
|
|
646
646
|
canceled: !1,
|
|
647
647
|
buckets: t.direction === "backward" ? [...i].reverse() : i,
|
|
648
|
-
visibleCount:
|
|
648
|
+
visibleCount: f
|
|
649
649
|
};
|
|
650
|
-
if (
|
|
651
|
-
c.value = "filling", l.value =
|
|
652
|
-
let
|
|
653
|
-
if (await
|
|
654
|
-
a =
|
|
650
|
+
if (g.value) return Ne(i, t.direction, e.removedIds.value, !1);
|
|
651
|
+
c.value = "filling", l.value = f, u.value = h, p.value = O.value, o += 1;
|
|
652
|
+
let _ = Ve(o, w.value, T.value);
|
|
653
|
+
if (await d.wait(_), n !== b) return Ne(i, t.direction, e.removedIds.value, !0);
|
|
654
|
+
a = h;
|
|
655
655
|
} catch (r) {
|
|
656
|
-
return je(r) || n !==
|
|
656
|
+
return je(r) || n !== b ? Ne(i, t.direction, e.removedIds.value, !0) : (s.value = r instanceof Error ? r.message : "The viewer could not load items.", c.value = "failed", l.value = null, u.value = null, p.value = null, null);
|
|
657
657
|
} finally {
|
|
658
|
-
|
|
658
|
+
v === m && (v = null), _.delete(f);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
return Ne(i, t.direction, e.removedIds.value, !1);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function fe(e) {
|
|
664
664
|
let t = Me({
|
|
665
665
|
cursor: e.cursor,
|
|
666
666
|
nextCursor: e.nextCursor,
|
|
667
667
|
nextItems: e.nextItems,
|
|
668
668
|
previousCursor: e.previousCursor,
|
|
669
669
|
previousItems: e.previousItems,
|
|
670
|
-
sequence:
|
|
670
|
+
sequence: C
|
|
671
671
|
});
|
|
672
|
-
return
|
|
672
|
+
return C = t.nextSequence, t.bucket;
|
|
673
673
|
}
|
|
674
674
|
function Z() {
|
|
675
|
-
c.value = "idle", l.value = null,
|
|
675
|
+
c.value = "idle", l.value = null, u.value = null, p.value = null, d.clear();
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function pe() {
|
|
678
678
|
if (!e.initialState || !e.initialState.items.length) return !1;
|
|
679
679
|
let t = Pe({
|
|
680
680
|
initialState: e.initialState,
|
|
681
681
|
removedIds: e.removedIds.value,
|
|
682
|
-
sequence:
|
|
682
|
+
sequence: C
|
|
683
683
|
});
|
|
684
|
-
return n.value = t.buckets, r.value = t.activeIndex,
|
|
684
|
+
return n.value = t.buckets, r.value = t.activeIndex, C = t.nextSequence, o.value = !1, s.value = null, a.value = [], m.value = !1, !0;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function me() {
|
|
687
687
|
return c.value === "initializing";
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
return Le(t === "leading" ?
|
|
689
|
+
function he(t) {
|
|
690
|
+
return Le(t === "leading" ? N.value : P.value, e.removedIds.value, O.value);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function ye() {
|
|
693
693
|
let t = n.value.findIndex((t) => De(t, e.removedIds.value) > 0);
|
|
694
694
|
if (t < 0) return;
|
|
695
695
|
let r = t;
|
|
@@ -700,38 +700,39 @@ function We(e) {
|
|
|
700
700
|
n.value = n.value.slice(t, r + 1);
|
|
701
701
|
}
|
|
702
702
|
return {
|
|
703
|
-
activeIndex:
|
|
704
|
-
canRetryInitialLoad:
|
|
705
|
-
cancel:
|
|
706
|
-
canRefreshTrailingBoundary:
|
|
707
|
-
commitPendingAppend:
|
|
703
|
+
activeIndex: j,
|
|
704
|
+
canRetryInitialLoad: V,
|
|
705
|
+
cancel: ie,
|
|
706
|
+
canRefreshTrailingBoundary: B,
|
|
707
|
+
commitPendingAppend: K,
|
|
708
708
|
currentCursor: te,
|
|
709
709
|
errorMessage: s,
|
|
710
710
|
fillCollectedCount: l,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
711
|
+
fillCursor: u,
|
|
712
|
+
fillDelayRemainingMs: f,
|
|
713
|
+
fillTargetCount: p,
|
|
714
|
+
hasNextPage: R,
|
|
715
|
+
hasPreviousPage: z,
|
|
716
|
+
isAutoPrefetchEnabled: h,
|
|
717
|
+
isPageLoadingLocked: g,
|
|
718
|
+
items: A,
|
|
719
|
+
lockPageLoading: J,
|
|
720
|
+
loading: M,
|
|
721
|
+
maybePrefetchAround: ce,
|
|
722
|
+
nextCursor: F,
|
|
723
|
+
pendingAppendItems: ee,
|
|
723
724
|
phase: c,
|
|
724
|
-
prefetchNextPage:
|
|
725
|
-
prefetchPreviousPage:
|
|
726
|
-
previousCursor:
|
|
727
|
-
retryInitialLoad:
|
|
728
|
-
retry:
|
|
729
|
-
setActiveIndex:
|
|
730
|
-
setAutoPrefetchEnabled:
|
|
731
|
-
syncActiveIndexAfterVisibilityChange:
|
|
732
|
-
unlockPageLoading:
|
|
733
|
-
getActiveOccurrenceKey:
|
|
734
|
-
maybeCommitPendingAppendWhenFilteredOut:
|
|
725
|
+
prefetchNextPage: U,
|
|
726
|
+
prefetchPreviousPage: W,
|
|
727
|
+
previousCursor: I,
|
|
728
|
+
retryInitialLoad: ne,
|
|
729
|
+
retry: G,
|
|
730
|
+
setActiveIndex: q,
|
|
731
|
+
setAutoPrefetchEnabled: re,
|
|
732
|
+
syncActiveIndexAfterVisibilityChange: oe,
|
|
733
|
+
unlockPageLoading: Y,
|
|
734
|
+
getActiveOccurrenceKey: ae,
|
|
735
|
+
maybeCommitPendingAppendWhenFilteredOut: se
|
|
735
736
|
};
|
|
736
737
|
}
|
|
737
738
|
function Ge(e, t) {
|
|
@@ -802,6 +803,7 @@ function qe(e, t) {
|
|
|
802
803
|
currentCursor: l.currentCursor,
|
|
803
804
|
errorMessage: l.errorMessage,
|
|
804
805
|
fillCollectedCount: l.fillCollectedCount,
|
|
806
|
+
fillCursor: l.fillCursor,
|
|
805
807
|
fillDelayRemainingMs: l.fillDelayRemainingMs,
|
|
806
808
|
fillTargetCount: l.fillTargetCount,
|
|
807
809
|
getRemovedIds: r,
|
|
@@ -843,6 +845,7 @@ function Ye(e, t) {
|
|
|
843
845
|
currentCursor: null,
|
|
844
846
|
errorMessage: null,
|
|
845
847
|
fillCollectedCount: null,
|
|
848
|
+
fillCursor: null,
|
|
846
849
|
fillDelayRemainingMs: null,
|
|
847
850
|
fillTargetCount: null,
|
|
848
851
|
hasNextPage: !1,
|
|
@@ -859,23 +862,23 @@ function Ye(e, t) {
|
|
|
859
862
|
removedIds: [],
|
|
860
863
|
surfaceMode: "list"
|
|
861
864
|
}), c = i(() => a.value >= Je), l = i(() => c.value ? o.value : "fullscreen"), u = i(() => c.value && l.value === "fullscreen");
|
|
862
|
-
|
|
865
|
+
L(c, (e) => {
|
|
863
866
|
e && h();
|
|
864
|
-
}),
|
|
867
|
+
}), L(() => e.surfaceMode, () => {
|
|
865
868
|
h();
|
|
866
|
-
}),
|
|
869
|
+
}), L([l, () => n.pendingAppendItems.value.length], ([e, t]) => {
|
|
867
870
|
e === "list" || t <= 0 || n.commitPendingAppend();
|
|
868
|
-
}),
|
|
871
|
+
}), L([
|
|
869
872
|
() => n.items.value.length,
|
|
870
873
|
() => n.loading.value,
|
|
871
874
|
() => n.hasNextPage.value,
|
|
872
875
|
() => n.pendingAppendItems.value.length
|
|
873
876
|
], ([e, n, r, i]) => {
|
|
874
877
|
!c.value || e > 0 || o.value === "list" || n || r || i > 0 || (o.value = "list", t("update:surfaceMode", "list"));
|
|
875
|
-
}),
|
|
878
|
+
}), L(l, (e) => {
|
|
876
879
|
n.setAutoPrefetchEnabled(e === "fullscreen");
|
|
877
|
-
}, { immediate: !0 }),
|
|
878
|
-
s.activeIndex = n.activeIndex.value, s.currentCursor = n.currentCursor.value, s.errorMessage = n.errorMessage.value, s.fillCollectedCount = n.fillCollectedCount.value, s.fillDelayRemainingMs = n.fillDelayRemainingMs.value, s.fillTargetCount = n.fillTargetCount.value, s.hasNextPage = n.hasNextPage.value, s.hasPreviousPage = n.hasPreviousPage.value, s.itemCount = n.items.value.length, s.loadState = n.loading.value ? "loading" : n.errorMessage.value ? "failed" : "loaded", s.nextBoundaryLoadProgress = r.nextBoundaryLoadProgress, s.nextCursor = n.nextCursor.value, s.pageLoadingLocked = n.isPageLoadingLocked.value, s.phase = n.phase.value, s.previousBoundaryLoadProgress = r.previousBoundaryLoadProgress, s.previousCursor = n.previousCursor.value, s.removedCount = n.removedCount.value, s.removedIds = n.getRemovedIds(), s.surfaceMode = l.value;
|
|
880
|
+
}, { immediate: !0 }), R(() => {
|
|
881
|
+
s.activeIndex = n.activeIndex.value, s.currentCursor = n.currentCursor.value, s.errorMessage = n.errorMessage.value, s.fillCollectedCount = n.fillCollectedCount.value, s.fillCursor = n.fillCursor.value, s.fillDelayRemainingMs = n.fillDelayRemainingMs.value, s.fillTargetCount = n.fillTargetCount.value, s.hasNextPage = n.hasNextPage.value, s.hasPreviousPage = n.hasPreviousPage.value, s.itemCount = n.items.value.length, s.loadState = n.loading.value ? "loading" : n.errorMessage.value ? "failed" : "loaded", s.nextBoundaryLoadProgress = r.nextBoundaryLoadProgress, s.nextCursor = n.nextCursor.value, s.pageLoadingLocked = n.isPageLoadingLocked.value, s.phase = n.phase.value, s.previousBoundaryLoadProgress = r.previousBoundaryLoadProgress, s.previousCursor = n.previousCursor.value, s.removedCount = n.removedCount.value, s.removedIds = n.getRemovedIds(), s.surfaceMode = l.value;
|
|
879
882
|
}), S(() => {
|
|
880
883
|
m(), h(), window.addEventListener("keydown", p), window.addEventListener("resize", m);
|
|
881
884
|
}), x(() => {
|
|
@@ -954,7 +957,7 @@ var Ze = {
|
|
|
954
957
|
],
|
|
955
958
|
setup(e, { emit: t }) {
|
|
956
959
|
let n = e, r = t, l = D(null), u = D(!1), d = i(() => n.volumeControlLayout === "vertical"), f = i(() => C(n.volume, 0, 1)), p = i(() => Math.round(f.value * 100)), m = i(() => n.muted || f.value <= 0 ? de : f.value < .5 ? X : ue), h = i(() => n.muted || f.value <= 0 ? "Unmute active media" : "Mute active media"), g = i(() => d.value && !u.value ? "Show volume controls" : h.value), _ = i(() => n.volumeControlLayout === "vertical" ? { height: `${p.value}%` } : { width: `${p.value}%` });
|
|
957
|
-
|
|
960
|
+
L(d, (e) => {
|
|
958
961
|
e || (u.value = !1);
|
|
959
962
|
}), S(() => {
|
|
960
963
|
document.addEventListener("pointerdown", v);
|
|
@@ -979,7 +982,7 @@ var Ze = {
|
|
|
979
982
|
return Math.min(Math.max(e, t), n);
|
|
980
983
|
}
|
|
981
984
|
return (e, t) => (w(), s("div", Ze, [c("div", Qe, [
|
|
982
|
-
c("span", $e,
|
|
985
|
+
c("span", $e, j(n.currentTimeLabel), 1),
|
|
983
986
|
c("div", et, [
|
|
984
987
|
t[3] ||= c("div", { class: "absolute inset-x-0 top-1/2 h-px -translate-y-1/2 bg-white/12" }, null, -1),
|
|
985
988
|
c("div", {
|
|
@@ -999,7 +1002,7 @@ var Ze = {
|
|
|
999
1002
|
onInput: t[0] ||= (e) => r("seek-input", e)
|
|
1000
1003
|
}, null, 40, tt)
|
|
1001
1004
|
]),
|
|
1002
|
-
c("span", nt,
|
|
1005
|
+
c("span", nt, j(n.durationLabel), 1),
|
|
1003
1006
|
c("div", {
|
|
1004
1007
|
ref_key: "rootRef",
|
|
1005
1008
|
ref: l,
|
|
@@ -1030,7 +1033,7 @@ var Ze = {
|
|
|
1030
1033
|
"aria-label": g.value,
|
|
1031
1034
|
class: "inline-flex h-10 w-10 items-center justify-center border border-white/14 bg-black/50 text-[#f7f1ea]/82 backdrop-blur-[18px] transition hover:border-white/28 hover:bg-black/65",
|
|
1032
1035
|
onClick: y
|
|
1033
|
-
}, [(w(), a(
|
|
1036
|
+
}, [(w(), a(A(m.value), {
|
|
1034
1037
|
class: "h-4 w-4 stroke-[1.9]",
|
|
1035
1038
|
"aria-hidden": "true"
|
|
1036
1039
|
}))], 8, ct), n.volumeControlLayout === "horizontal" ? (w(), s("div", lt, [
|
|
@@ -1088,19 +1091,19 @@ var Ze = {
|
|
|
1088
1091
|
class: "pointer-events-auto inline-flex h-11 w-11 shrink-0 items-center justify-center border border-white/14 bg-black/40 text-[#f7f1ea]/78 backdrop-blur-[18px] transition hover:border-white/28 hover:bg-black/55",
|
|
1089
1092
|
"aria-label": "Back to list",
|
|
1090
1093
|
onClick: t[0] ||= (e) => r("back-to-list")
|
|
1091
|
-
}, [u(
|
|
1094
|
+
}, [u(N(re), {
|
|
1092
1095
|
class: "h-4 w-4 stroke-[2.2]",
|
|
1093
1096
|
"aria-hidden": "true"
|
|
1094
|
-
})])) : o("", !0), n.title ? (w(), s("h2", gt,
|
|
1095
|
-
n.loading ? (w(), a(
|
|
1097
|
+
})])) : o("", !0), n.title ? (w(), s("h2", gt, j(n.title), 1)) : o("", !0)]), c("div", _t, [c("span", vt, [
|
|
1098
|
+
n.loading ? (w(), a(N(oe), {
|
|
1096
1099
|
key: 0,
|
|
1097
1100
|
"data-testid": "vibe-pagination-spinner",
|
|
1098
1101
|
class: "h-3.5 w-3.5 animate-spin stroke-[1.9]",
|
|
1099
1102
|
"aria-hidden": "true"
|
|
1100
1103
|
})) : o("", !0),
|
|
1101
|
-
c("span", yt,
|
|
1102
|
-
n.paginationDetail ? (w(), s("span", bt,
|
|
1103
|
-
]),
|
|
1104
|
+
c("span", yt, j(n.currentIndex + 1) + " / " + j(n.total), 1),
|
|
1105
|
+
n.paginationDetail ? (w(), s("span", bt, j(n.paginationDetail), 1)) : o("", !0)
|
|
1106
|
+
]), k(e.$slots, "actions")])])]), n.showEndBadge ? (w(), s("div", xt, [...t[1] ||= [c("span", { class: "inline-flex items-center border border-amber-300/35 bg-black/40 px-4 py-3 text-[0.74rem] font-bold uppercase tracking-[0.2em] text-amber-200 backdrop-blur-[18px]" }, " End reached ", -1)]])) : o("", !0)]));
|
|
1104
1107
|
}
|
|
1105
1108
|
}), Ct = {
|
|
1106
1109
|
image: ae,
|
|
@@ -1200,7 +1203,7 @@ function Nt(e) {
|
|
|
1200
1203
|
maxPerDomain: 1,
|
|
1201
1204
|
maxVideoPerDomain: 1
|
|
1202
1205
|
}), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
|
|
1203
|
-
|
|
1206
|
+
L([
|
|
1204
1207
|
e.active,
|
|
1205
1208
|
e.items,
|
|
1206
1209
|
e.resolvedActiveIndex
|
|
@@ -1492,7 +1495,7 @@ function Gt(e) {
|
|
|
1492
1495
|
//#region src/components/viewer-core/useActivation.ts
|
|
1493
1496
|
function Kt(e) {
|
|
1494
1497
|
let t = !1;
|
|
1495
|
-
|
|
1498
|
+
L(e.enabled, async (t) => {
|
|
1496
1499
|
if (n(t), t) {
|
|
1497
1500
|
e.onResize(), await e.onEnable();
|
|
1498
1501
|
return;
|
|
@@ -1579,12 +1582,12 @@ function sn(e) {
|
|
|
1579
1582
|
let t = /* @__PURE__ */ new Map();
|
|
1580
1583
|
for (let n of e.items.value) t.set($(n), n);
|
|
1581
1584
|
return t;
|
|
1582
|
-
}), p = i(() => d.value ? r.value[d.value] ?? qt : qt), m = i(() => d.value ? p.value.duration : 0), h = i(() => m.value <= 0 ? 0 : cn(p.value.currentTime / m.value * 100, 0, 100)), g = i(() => u.value ?
|
|
1583
|
-
|
|
1585
|
+
}), p = i(() => d.value ? r.value[d.value] ?? qt : qt), m = i(() => d.value ? p.value.duration : 0), h = i(() => m.value <= 0 ? 0 : cn(p.value.currentTime / m.value * 100, 0, 100)), g = i(() => u.value ? R(u.value) : null);
|
|
1586
|
+
L(() => u.value, async () => {
|
|
1584
1587
|
await C();
|
|
1585
|
-
}),
|
|
1588
|
+
}), L(() => e.itemCount.value, async () => {
|
|
1586
1589
|
await C();
|
|
1587
|
-
}),
|
|
1590
|
+
}), L(() => e.loopFullscreenVideo.value, async () => {
|
|
1588
1591
|
await C();
|
|
1589
1592
|
});
|
|
1590
1593
|
function v(e, t) {
|
|
@@ -1658,7 +1661,7 @@ function sn(e) {
|
|
|
1658
1661
|
surface: "fullscreen"
|
|
1659
1662
|
});
|
|
1660
1663
|
}
|
|
1661
|
-
async function
|
|
1664
|
+
async function O(t, n) {
|
|
1662
1665
|
let r = K(t), i = U(t), a = Y(t) ?? e.activeMediaItem.value ?? e.activeItem.value;
|
|
1663
1666
|
if (r) {
|
|
1664
1667
|
r.pause();
|
|
@@ -1676,13 +1679,13 @@ function sn(e) {
|
|
|
1676
1679
|
surface: "fullscreen"
|
|
1677
1680
|
});
|
|
1678
1681
|
}
|
|
1679
|
-
function
|
|
1682
|
+
function k(e, t, n) {
|
|
1680
1683
|
e.button !== 0 || Date.now() < n || re(s.get(t) ?? null);
|
|
1681
1684
|
}
|
|
1682
|
-
function
|
|
1685
|
+
function A(e, t, n) {
|
|
1683
1686
|
e.button !== 0 || Date.now() < n || re(K(t));
|
|
1684
1687
|
}
|
|
1685
|
-
function
|
|
1688
|
+
function j(e) {
|
|
1686
1689
|
let t = q(), n = d.value;
|
|
1687
1690
|
if (!t || !n || !(e.target instanceof HTMLInputElement)) return;
|
|
1688
1691
|
let r = Number.parseFloat(e.target.value);
|
|
@@ -1690,40 +1693,40 @@ function sn(e) {
|
|
|
1690
1693
|
let i = cn(r, 0, m.value || 0);
|
|
1691
1694
|
ne(n, i, t), t.currentTime = i;
|
|
1692
1695
|
}
|
|
1693
|
-
function
|
|
1696
|
+
function M(e) {
|
|
1694
1697
|
let t = q(), n = d.value;
|
|
1695
1698
|
if (!t || !n || !(e.target instanceof HTMLInputElement)) return;
|
|
1696
1699
|
let r = cn(Number.parseFloat(e.target.value), 0, 1);
|
|
1697
1700
|
t.volume = r, t.muted = r <= 0, r > 0 && (o.value[n] = r), W(n, t);
|
|
1698
1701
|
}
|
|
1699
|
-
function
|
|
1702
|
+
function N() {
|
|
1700
1703
|
let e = q(), t = d.value;
|
|
1701
1704
|
!e || !t || (e.muted || e.volume <= 0 ? (e.volume = G(t), e.muted = !1, o.value[t] = e.volume) : (o.value[t] = e.volume, e.muted = !0), W(t, e));
|
|
1702
1705
|
}
|
|
1703
|
-
function
|
|
1706
|
+
function P(e) {
|
|
1704
1707
|
return !!t.value[e] && !n.value[e];
|
|
1705
1708
|
}
|
|
1706
|
-
function
|
|
1709
|
+
function F(e) {
|
|
1707
1710
|
return (r.value[e]?.ready ?? !1) && !r.value[e]?.errorKind;
|
|
1708
1711
|
}
|
|
1709
|
-
function
|
|
1712
|
+
function I(e) {
|
|
1710
1713
|
return e.url;
|
|
1711
1714
|
}
|
|
1712
|
-
function
|
|
1715
|
+
function R(e) {
|
|
1713
1716
|
return n.value[e] ?? r.value[e]?.errorKind ?? null;
|
|
1714
1717
|
}
|
|
1715
|
-
function
|
|
1716
|
-
let t =
|
|
1718
|
+
function z(e) {
|
|
1719
|
+
let t = R(e);
|
|
1717
1720
|
return t ? $t(t) : null;
|
|
1718
1721
|
}
|
|
1719
|
-
function
|
|
1720
|
-
return en(
|
|
1722
|
+
function B(e) {
|
|
1723
|
+
return en(R(e));
|
|
1721
1724
|
}
|
|
1722
|
-
function
|
|
1725
|
+
function ee(e) {
|
|
1723
1726
|
return `${e}:${a.value[e] ?? 0}`;
|
|
1724
1727
|
}
|
|
1725
|
-
async function
|
|
1726
|
-
if (!
|
|
1728
|
+
async function te(e) {
|
|
1729
|
+
if (!B(e)) return;
|
|
1727
1730
|
t.value[e] = !1, n.value[e] = null;
|
|
1728
1731
|
let r = U(e);
|
|
1729
1732
|
r.currentTime = 0, r.duration = 0, r.paused = !0, r.ready = !1, r.errorKind = null;
|
|
@@ -1793,29 +1796,29 @@ function sn(e) {
|
|
|
1793
1796
|
activeMediaDuration: m,
|
|
1794
1797
|
activeMediaProgress: h,
|
|
1795
1798
|
activeMediaState: p,
|
|
1796
|
-
getAssetErrorKind:
|
|
1797
|
-
getAssetErrorLabel:
|
|
1798
|
-
getAssetRenderKey:
|
|
1799
|
-
getImageSource:
|
|
1800
|
-
isImageReady:
|
|
1801
|
-
isMediaReady:
|
|
1802
|
-
canRetryAsset:
|
|
1799
|
+
getAssetErrorKind: R,
|
|
1800
|
+
getAssetErrorLabel: z,
|
|
1801
|
+
getAssetRenderKey: ee,
|
|
1802
|
+
getImageSource: I,
|
|
1803
|
+
isImageReady: P,
|
|
1804
|
+
isMediaReady: F,
|
|
1805
|
+
canRetryAsset: B,
|
|
1803
1806
|
mediaStates: r,
|
|
1804
|
-
onAudioCoverClick:
|
|
1807
|
+
onAudioCoverClick: A,
|
|
1805
1808
|
onImageError: E,
|
|
1806
1809
|
onImageLoad: T,
|
|
1807
|
-
onMediaError:
|
|
1810
|
+
onMediaError: O,
|
|
1808
1811
|
onMediaEvent: w,
|
|
1809
|
-
onMediaSeekInput:
|
|
1810
|
-
onMediaVolumeInput:
|
|
1811
|
-
onMediaVolumeToggle:
|
|
1812
|
-
onVideoClick:
|
|
1812
|
+
onMediaSeekInput: j,
|
|
1813
|
+
onMediaVolumeInput: M,
|
|
1814
|
+
onMediaVolumeToggle: N,
|
|
1815
|
+
onVideoClick: k,
|
|
1813
1816
|
registerAudioElement: y,
|
|
1814
1817
|
registerImageElement: b,
|
|
1815
1818
|
registerVideoElement: v,
|
|
1816
1819
|
resetAssetState: S,
|
|
1817
1820
|
resetMediaState: x,
|
|
1818
|
-
retryAsset:
|
|
1821
|
+
retryAsset: te,
|
|
1819
1822
|
syncMediaPlayback: C
|
|
1820
1823
|
};
|
|
1821
1824
|
}
|
|
@@ -1851,7 +1854,7 @@ function fn(e, t, n = {}) {
|
|
|
1851
1854
|
itemCount: r.value.length,
|
|
1852
1855
|
loading: s.value,
|
|
1853
1856
|
phase: e.phase
|
|
1854
|
-
})), f = i(() => !1), p = D(null), m = D(0), h = D(!1), g = D(1), _ = n.enabled ?? i(() => !0), v = null, y = 0, b = 0, x = 0, S = i(() => r.value.length === 0 ? 0 :
|
|
1857
|
+
})), f = i(() => !1), p = D(null), m = D(0), h = D(!1), g = D(1), _ = n.enabled ?? i(() => !0), v = null, y = 0, b = 0, x = 0, S = i(() => r.value.length === 0 ? 0 : P(a.value, 0, r.value.length - 1)), C = i(() => r.value[S.value] ?? null), w = i(() => C.value?.type === "audio" || C.value?.type === "video" ? C.value : null), T = sn({
|
|
1855
1858
|
items: r,
|
|
1856
1859
|
activeItem: C,
|
|
1857
1860
|
activeMediaItem: w,
|
|
@@ -1860,13 +1863,13 @@ function fn(e, t, n = {}) {
|
|
|
1860
1863
|
loopFullscreenVideo: l,
|
|
1861
1864
|
onAssetError: n.onAssetError,
|
|
1862
1865
|
onAssetLoad: n.onAssetLoad
|
|
1863
|
-
}), E = i(() => r.value.length > 0 && S.value === r.value.length - 1),
|
|
1866
|
+
}), E = i(() => r.value.length > 0 && S.value === r.value.length - 1), O = i(() => Gt({
|
|
1864
1867
|
errorMessage: o.value,
|
|
1865
1868
|
hasItems: r.value.length > 0,
|
|
1866
1869
|
hasNextPage: c.value,
|
|
1867
1870
|
phase: d.value,
|
|
1868
1871
|
surface: "fullscreen"
|
|
1869
|
-
})),
|
|
1872
|
+
})), k = i(() => O.value?.kind ?? null), A = i(() => O.value?.message ?? null), j = i(() => Math.min(96, g.value * .15 || 96)), M = i(() => ln(S.value, r.value.length)), N = i(() => un(r.value, S.value));
|
|
1870
1873
|
Kt({
|
|
1871
1874
|
enabled: _,
|
|
1872
1875
|
onDisable() {
|
|
@@ -1876,40 +1879,40 @@ function fn(e, t, n = {}) {
|
|
|
1876
1879
|
return T.syncMediaPlayback();
|
|
1877
1880
|
},
|
|
1878
1881
|
onKeydown: W,
|
|
1879
|
-
onResize:
|
|
1882
|
+
onResize: F
|
|
1880
1883
|
});
|
|
1881
|
-
function
|
|
1884
|
+
function P(e, t, n) {
|
|
1882
1885
|
return Math.min(Math.max(e, t), n);
|
|
1883
1886
|
}
|
|
1884
|
-
function
|
|
1887
|
+
function F() {
|
|
1885
1888
|
g.value = p.value?.clientHeight || window.innerHeight || 1;
|
|
1886
1889
|
}
|
|
1887
|
-
function F(e) {
|
|
1888
|
-
return r.value.length === 0 ? !1 : N(S.value + e, 0, r.value.length - 1) !== S.value;
|
|
1889
|
-
}
|
|
1890
1890
|
function I(e) {
|
|
1891
|
+
return r.value.length === 0 ? !1 : P(S.value + e, 0, r.value.length - 1) !== S.value;
|
|
1892
|
+
}
|
|
1893
|
+
function L(e) {
|
|
1891
1894
|
if (r.value.length === 0) return;
|
|
1892
|
-
let n =
|
|
1895
|
+
let n = P(S.value + e, 0, r.value.length - 1);
|
|
1893
1896
|
n !== S.value && t("update:activeIndex", n);
|
|
1894
1897
|
}
|
|
1895
|
-
function
|
|
1898
|
+
function R(e) {
|
|
1896
1899
|
let t = e > 0, n = e < 0;
|
|
1897
|
-
return t && !
|
|
1900
|
+
return t && !I(-1) || n && !I(1) ? e * .24 : e;
|
|
1898
1901
|
}
|
|
1899
|
-
function
|
|
1902
|
+
function z(e) {
|
|
1900
1903
|
!_.value || r.value.length === 0 || e.pointerType === "mouse" || he(e.target) || (v = e.pointerId, y = e.clientY, m.value = 0, h.value = !0, p.value?.setPointerCapture?.(e.pointerId));
|
|
1901
1904
|
}
|
|
1902
|
-
function
|
|
1903
|
-
!_.value || !h.value || v !== e.pointerId || (m.value =
|
|
1905
|
+
function B(e) {
|
|
1906
|
+
!_.value || !h.value || v !== e.pointerId || (m.value = R(e.clientY - y));
|
|
1904
1907
|
}
|
|
1905
|
-
function
|
|
1908
|
+
function ee(e) {
|
|
1906
1909
|
!_.value || v !== e.pointerId || (p.value?.releasePointerCapture?.(e.pointerId), V());
|
|
1907
1910
|
}
|
|
1908
|
-
function
|
|
1911
|
+
function te(e) {
|
|
1909
1912
|
!_.value || v !== e.pointerId || (p.value?.releasePointerCapture?.(e.pointerId), H());
|
|
1910
1913
|
}
|
|
1911
1914
|
function V() {
|
|
1912
|
-
Math.abs(m.value) >=
|
|
1915
|
+
Math.abs(m.value) >= j.value && (x = Date.now() + 250, L(m.value < 0 ? 1 : -1)), H();
|
|
1913
1916
|
}
|
|
1914
1917
|
function H() {
|
|
1915
1918
|
m.value = 0, h.value = !1, v = null;
|
|
@@ -1918,10 +1921,10 @@ function fn(e, t, n = {}) {
|
|
|
1918
1921
|
if (!_.value || r.value.length === 0 || h.value || he(e.target) || Math.abs(e.deltaY) < Math.max(Math.abs(e.deltaX), 24)) return;
|
|
1919
1922
|
e.preventDefault();
|
|
1920
1923
|
let t = Date.now();
|
|
1921
|
-
t < b || (b = t + 400,
|
|
1924
|
+
t < b || (b = t + 400, L(e.deltaY > 0 ? 1 : -1));
|
|
1922
1925
|
}
|
|
1923
1926
|
function W(e) {
|
|
1924
|
-
!_.value || r.value.length === 0 || me(e.target) || ((e.key === "ArrowDown" || e.key === "PageDown") && (e.preventDefault(),
|
|
1927
|
+
!_.value || r.value.length === 0 || me(e.target) || ((e.key === "ArrowDown" || e.key === "PageDown") && (e.preventDefault(), L(1)), (e.key === "ArrowUp" || e.key === "PageUp") && (e.preventDefault(), L(-1)));
|
|
1925
1928
|
}
|
|
1926
1929
|
function ne(e, t) {
|
|
1927
1930
|
T.onVideoClick(e, t, x);
|
|
@@ -1980,24 +1983,24 @@ function fn(e, t, n = {}) {
|
|
|
1980
1983
|
onMediaSeekInput: K,
|
|
1981
1984
|
onMediaVolumeInput: q,
|
|
1982
1985
|
onMediaVolumeToggle: re,
|
|
1983
|
-
onPointerCancel:
|
|
1984
|
-
onPointerDown:
|
|
1985
|
-
onPointerMove:
|
|
1986
|
-
onPointerUp:
|
|
1986
|
+
onPointerCancel: te,
|
|
1987
|
+
onPointerDown: z,
|
|
1988
|
+
onPointerMove: B,
|
|
1989
|
+
onPointerUp: ee,
|
|
1987
1990
|
onVideoClick: ne,
|
|
1988
1991
|
onWheel: U,
|
|
1989
1992
|
registerAudioElement: T.registerAudioElement,
|
|
1990
1993
|
registerImageElement: T.registerImageElement,
|
|
1991
1994
|
registerVideoElement: T.registerVideoElement,
|
|
1992
|
-
renderedItems:
|
|
1993
|
-
renderedRange:
|
|
1995
|
+
renderedItems: N,
|
|
1996
|
+
renderedRange: M,
|
|
1994
1997
|
resolvedActiveIndex: S,
|
|
1995
1998
|
resetAssetState: T.resetAssetState,
|
|
1996
1999
|
retryInitialLoad: async () => {},
|
|
1997
2000
|
retryAsset: T.retryAsset,
|
|
1998
2001
|
stageRef: p,
|
|
1999
|
-
statusKind:
|
|
2000
|
-
statusMessage:
|
|
2002
|
+
statusKind: k,
|
|
2003
|
+
statusMessage: A,
|
|
2001
2004
|
paginationDetail: u,
|
|
2002
2005
|
phase: d
|
|
2003
2006
|
};
|
|
@@ -2056,7 +2059,7 @@ function bn(e) {
|
|
|
2056
2059
|
let { r: e, g: t, b: n } = r.value;
|
|
2057
2060
|
return { background: `radial-gradient(circle at center, rgba(${e},${t},${n},0.42) 0%, transparent 44%), linear-gradient(180deg,#0b0c11,#06070b)` };
|
|
2058
2061
|
});
|
|
2059
|
-
|
|
2062
|
+
L(() => e.showDominantImageTone.value, (e) => {
|
|
2060
2063
|
e || (t.value = {});
|
|
2061
2064
|
});
|
|
2062
2065
|
function s(n, r) {
|
|
@@ -2081,16 +2084,16 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2081
2084
|
surface: {}
|
|
2082
2085
|
},
|
|
2083
2086
|
setup(e) {
|
|
2084
|
-
let t =
|
|
2085
|
-
return (n, r) => e.mode === "inline" ? (w(), s("div", g({ key: 0 },
|
|
2087
|
+
let t = P();
|
|
2088
|
+
return (n, r) => e.mode === "inline" ? (w(), s("div", g({ key: 0 }, N(t), {
|
|
2086
2089
|
"data-testid": "vibe-empty-state-inline",
|
|
2087
2090
|
"data-surface": e.surface,
|
|
2088
2091
|
class: ["pointer-events-none absolute z-[4] text-center", e.surface === "grid" ? "inset-x-0 top-[clamp(6rem,22vh,11rem)] flex justify-center px-6" : "inset-0 grid place-items-center px-[clamp(2rem,4vw,3rem)] py-[clamp(2rem,4vw,3rem)]"]
|
|
2089
|
-
}), [
|
|
2092
|
+
}), [k(n.$slots, "default", {}, () => [c("p", { class: v(["m-0 text-[0.82rem] font-medium tracking-[0.08em]", e.surface === "grid" ? "text-[#f7f1ea]/58" : "text-[#f7f1ea]/64"]) }, j(e.message), 3)])], 16, xn)) : (w(), s("div", g({ key: 1 }, N(t), { class: ["pointer-events-none absolute z-[4]", e.surface === "grid" ? "inset-x-0 bottom-0 flex justify-center px-6" : "bottom-[1.8rem] left-1/2 -translate-x-1/2 max-[720px]:bottom-[1.3rem]"] }), [k(n.$slots, "default", {}, () => [c("span", {
|
|
2090
2093
|
"data-testid": "vibe-empty-state-badge",
|
|
2091
2094
|
"data-surface": e.surface,
|
|
2092
2095
|
class: v(["inline-flex items-center border border-white/14 backdrop-blur-[18px]", e.surface === "grid" ? "bg-black/55 px-4 py-3 text-[0.82rem] font-medium tracking-[0.08em] text-[#f7f1ea]/72" : "w-auto bg-black/40 px-5 py-3 text-[0.82rem] font-medium tracking-[0.08em] text-[#f7f1ea]/74 max-[720px]:w-[calc(100%-2.5rem)] max-[720px]:justify-center"])
|
|
2093
|
-
},
|
|
2096
|
+
}, j(e.message), 11, Sn)])], 16));
|
|
2094
2097
|
}
|
|
2095
2098
|
}), wn = { class: "relative h-full min-h-0 overflow-hidden bg-[#05060a] text-[#f7f1ea]" }, Tn = {
|
|
2096
2099
|
key: 0,
|
|
@@ -2224,23 +2227,23 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2224
2227
|
},
|
|
2225
2228
|
emits: ["back-to-list", "update:activeIndex"],
|
|
2226
2229
|
setup(e, { emit: n }) {
|
|
2227
|
-
let d = e, f =
|
|
2230
|
+
let d = e, f = F(), m = n, h = fn(d, (e, t) => {
|
|
2228
2231
|
m("update:activeIndex", t);
|
|
2229
2232
|
}, {
|
|
2230
|
-
enabled:
|
|
2233
|
+
enabled: M(d, "active"),
|
|
2231
2234
|
onAssetError: d.reportAssetError ?? void 0,
|
|
2232
2235
|
onAssetLoad: d.reportAssetLoad ?? void 0
|
|
2233
2236
|
}), _ = D(typeof window > "u" ? rr : window.innerWidth || rr), C = Rt({
|
|
2234
|
-
active:
|
|
2237
|
+
active: M(d, "active"),
|
|
2235
2238
|
items: h.items,
|
|
2236
2239
|
resolvedActiveIndex: h.resolvedActiveIndex,
|
|
2237
2240
|
viewer: h
|
|
2238
|
-
}), T = i(() => gn(h.activeItem.value?.type ?? "image")), { activeSlideToneStyle: E, activeStageToneStyle:
|
|
2241
|
+
}), T = i(() => gn(h.activeItem.value?.type ?? "image")), { activeSlideToneStyle: E, activeStageToneStyle: P, updateFromImageElement: I } = bn({
|
|
2239
2242
|
activeItem: h.activeItem,
|
|
2240
2243
|
getItemKey: C.getItemKey,
|
|
2241
2244
|
isImageReady: h.isImageReady,
|
|
2242
|
-
showDominantImageTone:
|
|
2243
|
-
}),
|
|
2245
|
+
showDominantImageTone: M(d, "showDominantImageTone")
|
|
2246
|
+
}), L = i(() => h.activeMediaItem.value && !h.activeAssetErrorKind.value ? "bottom-[5.8rem] max-[720px]:bottom-[7.4rem]" : "bottom-[1.8rem] max-[720px]:bottom-[1.3rem]"), R = i(() => !!h.activeMediaItem.value && !h.activeAssetErrorKind.value), B = i(() => _.value < ir ? "vertical" : "horizontal"), te = i(() => R.value ? "pb-[5.75rem] max-[720px]:pb-[7rem]" : ""), V = i(() => d.activeIndex >= d.items.length && (d.loading || d.hasNextPage)), H = i(() => d.hasNextPage ? "Loading more items" : h.statusMessage.value ?? "Loading more items"), U = i(() => {
|
|
2244
2247
|
let e = h.activeItem.value;
|
|
2245
2248
|
return e ? {
|
|
2246
2249
|
hasNextPage: d.hasNextPage,
|
|
@@ -2257,19 +2260,19 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2257
2260
|
}), K = i(() => !G.value || !f["fullscreen-status"] ? [] : f["fullscreen-status"](G.value)), q = i(() => ({
|
|
2258
2261
|
gridTemplateColumns: Y.value ? "minmax(0, 1fr) 22rem" : "minmax(0, 1fr) 0rem",
|
|
2259
2262
|
transition: "grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1)"
|
|
2260
|
-
})), re = i(() => zt(W.value)), J = i(() => zt(ne.value)), Y = i(() => J.value && _.value >= rr), ie = i(() => J.value && !Y.value), ae = i(() => zt(K.value)), { emptyStateProps: X, showBadgeEmptyState: ue, showCustomEmptyState: de, showInlineEmptyState:
|
|
2261
|
-
emptyStateMode:
|
|
2263
|
+
})), re = i(() => zt(W.value)), J = i(() => zt(ne.value)), Y = i(() => J.value && _.value >= rr), ie = i(() => J.value && !Y.value), ae = i(() => zt(K.value)), { emptyStateProps: X, showBadgeEmptyState: ue, showCustomEmptyState: de, showInlineEmptyState: fe } = Ht({
|
|
2264
|
+
emptyStateMode: M(d, "emptyStateMode"),
|
|
2262
2265
|
itemCount: i(() => d.items.length),
|
|
2263
|
-
loading:
|
|
2266
|
+
loading: M(d, "loading"),
|
|
2264
2267
|
renderSlot: f["empty-state"],
|
|
2265
2268
|
surface: "fullscreen"
|
|
2266
2269
|
});
|
|
2267
2270
|
S(() => {
|
|
2268
|
-
window.addEventListener("resize",
|
|
2271
|
+
window.addEventListener("resize", Z);
|
|
2269
2272
|
}), x(() => {
|
|
2270
|
-
window.removeEventListener("resize",
|
|
2273
|
+
window.removeEventListener("resize", Z);
|
|
2271
2274
|
});
|
|
2272
|
-
function
|
|
2275
|
+
function Z() {
|
|
2273
2276
|
_.value = window.innerWidth || rr;
|
|
2274
2277
|
}
|
|
2275
2278
|
function pe(e, t, n) {
|
|
@@ -2298,7 +2301,7 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2298
2301
|
n instanceof HTMLMediaElement && n.readyState >= r && C.settleBackgroundPreload(e);
|
|
2299
2302
|
}
|
|
2300
2303
|
function ye(e, t) {
|
|
2301
|
-
|
|
2304
|
+
I(e, t);
|
|
2302
2305
|
}
|
|
2303
2306
|
function be(e, t) {
|
|
2304
2307
|
if (Q(t, e), !d.loopFullscreenVideo) return;
|
|
@@ -2313,7 +2316,7 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2313
2316
|
return (e, n) => (w(), s("div", wn, [
|
|
2314
2317
|
c("div", {
|
|
2315
2318
|
class: v(["absolute inset-0 transition-[background] duration-200", T.value]),
|
|
2316
|
-
style: b(
|
|
2319
|
+
style: b(N(P))
|
|
2317
2320
|
}, null, 6),
|
|
2318
2321
|
c("div", {
|
|
2319
2322
|
class: "relative z-[1] grid h-full min-h-0",
|
|
@@ -2322,170 +2325,170 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2322
2325
|
ref: "viewer.stageRef",
|
|
2323
2326
|
"data-testid": "vibe-stage",
|
|
2324
2327
|
class: "relative h-full min-h-0 touch-none overflow-hidden",
|
|
2325
|
-
onPointerdown: n[1] ||= (...e) =>
|
|
2326
|
-
onPointermove: n[2] ||= (...e) =>
|
|
2327
|
-
onPointerup: n[3] ||= (...e) =>
|
|
2328
|
-
onPointercancel: n[4] ||= (...e) =>
|
|
2329
|
-
onWheel: n[5] ||= (...e) =>
|
|
2330
|
-
}, [
|
|
2331
|
-
(w(!0), s(t, null,
|
|
2332
|
-
key:
|
|
2328
|
+
onPointerdown: n[1] ||= (...e) => N(h).onPointerDown && N(h).onPointerDown(...e),
|
|
2329
|
+
onPointermove: n[2] ||= (...e) => N(h).onPointerMove && N(h).onPointerMove(...e),
|
|
2330
|
+
onPointerup: n[3] ||= (...e) => N(h).onPointerUp && N(h).onPointerUp(...e),
|
|
2331
|
+
onPointercancel: n[4] ||= (...e) => N(h).onPointerCancel && N(h).onPointerCancel(...e),
|
|
2332
|
+
onWheel: n[5] ||= (...e) => N(h).onWheel && N(h).onWheel(...e)
|
|
2333
|
+
}, [N(h).activeItem.value ? (w(), s("div", Tn, [
|
|
2334
|
+
(w(!0), s(t, null, O(N(h).renderedItems.value, ({ item: r, index: i }) => (w(), s("article", {
|
|
2335
|
+
key: N(C).getItemKey(r),
|
|
2333
2336
|
"data-testid": "vibe-slide",
|
|
2334
2337
|
"data-item-id": r.id,
|
|
2335
|
-
"data-occurrence-key":
|
|
2338
|
+
"data-occurrence-key": N(C).getItemKey(r),
|
|
2336
2339
|
"data-index": i,
|
|
2337
|
-
"data-active": i ===
|
|
2338
|
-
"aria-hidden": i ===
|
|
2339
|
-
class: v(["absolute inset-0 flex h-full min-h-full items-center justify-center will-change-transform", i ===
|
|
2340
|
-
style: b(
|
|
2340
|
+
"data-active": i === N(h).resolvedActiveIndex.value,
|
|
2341
|
+
"aria-hidden": i === N(h).resolvedActiveIndex.value ? "false" : "true",
|
|
2342
|
+
class: v(["absolute inset-0 flex h-full min-h-full items-center justify-center will-change-transform", i === N(h).resolvedActiveIndex.value ? "pointer-events-auto" : "pointer-events-none"]),
|
|
2343
|
+
style: b(N(h).getSlideStyle(i))
|
|
2341
2344
|
}, [c("div", {
|
|
2342
|
-
class: v(["absolute inset-0 opacity-85",
|
|
2343
|
-
style: b(i ===
|
|
2344
|
-
}, null, 6),
|
|
2345
|
+
class: v(["absolute inset-0 opacity-85", N(_n)(r.type)]),
|
|
2346
|
+
style: b(i === N(h).resolvedActiveIndex.value && r.type === "image" ? N(E) : void 0)
|
|
2347
|
+
}, null, 6), N(h).isVisual(r) ? (w(), s("div", {
|
|
2345
2348
|
key: 0,
|
|
2346
|
-
class: v(["relative z-[1] flex h-full w-full items-center justify-center overflow-hidden", i ===
|
|
2347
|
-
}, [
|
|
2349
|
+
class: v(["relative z-[1] flex h-full w-full items-center justify-center overflow-hidden", i === N(h).resolvedActiveIndex.value ? te.value : ""])
|
|
2350
|
+
}, [N(C).isAssetLoading(i, r) ? (w(), s("div", Dn, [c("span", On, [u(N(oe), {
|
|
2348
2351
|
class: "h-5 w-5 animate-spin stroke-[1.9] text-[#f7f1ea]/78",
|
|
2349
2352
|
"aria-hidden": "true"
|
|
2350
|
-
})])])) : o("", !0),
|
|
2353
|
+
})])])) : o("", !0), N(C).isAssetErrored(i, r) ? (w(), s("div", {
|
|
2351
2354
|
key: 1,
|
|
2352
2355
|
"data-testid": "vibe-asset-error",
|
|
2353
|
-
"data-kind":
|
|
2356
|
+
"data-kind": N(C).getAssetErrorKind(r),
|
|
2354
2357
|
class: "grid h-full w-full place-items-center"
|
|
2355
2358
|
}, [c("div", An, [
|
|
2356
|
-
u(
|
|
2359
|
+
u(N(le), {
|
|
2357
2360
|
class: "h-7 w-7 stroke-[1.9] text-[#f7f1ea]/72",
|
|
2358
2361
|
"aria-hidden": "true"
|
|
2359
2362
|
}),
|
|
2360
|
-
c("p", jn,
|
|
2361
|
-
|
|
2363
|
+
c("p", jn, j(N(C).getAssetErrorLabel(r)), 1),
|
|
2364
|
+
N(h).canRetryAsset(N(C).getItemKey(r)) ? (w(), s("button", {
|
|
2362
2365
|
key: 0,
|
|
2363
2366
|
type: "button",
|
|
2364
2367
|
class: "inline-flex items-center justify-center border border-white/14 bg-black/35 px-4 py-2 text-[0.64rem] font-bold uppercase tracking-[0.22em] text-[#f7f1ea]/82 backdrop-blur-[18px] transition hover:border-white/28 hover:bg-black/50",
|
|
2365
|
-
onClick:
|
|
2368
|
+
onClick: ee((e) => N(h).retryAsset(N(C).getItemKey(r)), ["stop"])
|
|
2366
2369
|
}, " Retry ", 8, Mn)) : o("", !0)
|
|
2367
2370
|
])], 8, kn)) : r.type === "image" ? (w(), s("img", {
|
|
2368
|
-
key:
|
|
2369
|
-
src:
|
|
2371
|
+
key: N(h).getAssetRenderKey(N(C).getItemKey(r)),
|
|
2372
|
+
src: N(C).getFullscreenImageSource(i, r),
|
|
2370
2373
|
alt: r.title ?? "",
|
|
2371
2374
|
crossorigin: "anonymous",
|
|
2372
2375
|
draggable: "false",
|
|
2373
|
-
class: v(["block h-auto max-h-full w-auto max-w-full object-contain shadow-[0_40px_120px_-60px_rgba(0,0,0,0.9)] transition-opacity duration-300",
|
|
2376
|
+
class: v(["block h-auto max-h-full w-auto max-w-full object-contain shadow-[0_40px_120px_-60px_rgba(0,0,0,0.9)] transition-opacity duration-300", N(h).isImageReady(N(C).getItemKey(r)) ? "opacity-100" : "opacity-0"]),
|
|
2374
2377
|
ref_for: !0,
|
|
2375
|
-
ref: (e) => he(
|
|
2376
|
-
onLoad: (e) => pe(e,
|
|
2377
|
-
onError: (e) => me(
|
|
2378
|
+
ref: (e) => he(N(C).getItemKey(r), e),
|
|
2379
|
+
onLoad: (e) => pe(e, N(C).getItemKey(r), r.url),
|
|
2380
|
+
onError: (e) => me(N(C).getItemKey(r), r.url)
|
|
2378
2381
|
}, null, 42, Nn)) : (w(), s("video", {
|
|
2379
|
-
key:
|
|
2380
|
-
class: v(["block h-auto max-h-full w-auto max-w-full cursor-pointer object-contain shadow-[0_40px_120px_-60px_rgba(0,0,0,0.9)] transition-opacity duration-300",
|
|
2382
|
+
key: N(h).getAssetRenderKey(N(C).getItemKey(r)),
|
|
2383
|
+
class: v(["block h-auto max-h-full w-auto max-w-full cursor-pointer object-contain shadow-[0_40px_120px_-60px_rgba(0,0,0,0.9)] transition-opacity duration-300", N(h).isMediaReady(N(C).getItemKey(r)) ? "opacity-100" : "opacity-0"]),
|
|
2381
2384
|
playsinline: "",
|
|
2382
2385
|
loop: d.loopFullscreenVideo,
|
|
2383
|
-
src:
|
|
2384
|
-
preload:
|
|
2386
|
+
src: N(C).getFullscreenMediaSource(i, r),
|
|
2387
|
+
preload: N(C).getFullscreenMediaPreload(i),
|
|
2385
2388
|
ref_for: !0,
|
|
2386
|
-
ref: (e) => ge(
|
|
2387
|
-
onClick:
|
|
2388
|
-
onCanplay: (e) => Q(
|
|
2389
|
-
onDurationchange: (e) => Q(
|
|
2390
|
-
onEnded: (e) => be(e,
|
|
2391
|
-
onError: (e) => ve(
|
|
2392
|
-
onLoadstart: (e) => Q(
|
|
2393
|
-
onLoadedmetadata: (e) => Q(
|
|
2394
|
-
onPause: (e) => Q(
|
|
2395
|
-
onPlay: (e) => Q(
|
|
2396
|
-
onPlaying: (e) => Q(
|
|
2397
|
-
onSeeking: (e) => Q(
|
|
2398
|
-
onSeeked: (e) => Q(
|
|
2399
|
-
onStalled: (e) => Q(
|
|
2400
|
-
onTimeupdate: (e) => Q(
|
|
2401
|
-
onWaiting: (e) => Q(
|
|
2402
|
-
}, null, 42, Pn))], 2)) :
|
|
2389
|
+
ref: (e) => ge(N(C).getItemKey(r), e),
|
|
2390
|
+
onClick: ee((e) => N(h).onVideoClick(e, N(C).getItemKey(r)), ["stop"]),
|
|
2391
|
+
onCanplay: (e) => Q(N(C).getItemKey(r), e),
|
|
2392
|
+
onDurationchange: (e) => Q(N(C).getItemKey(r), e),
|
|
2393
|
+
onEnded: (e) => be(e, N(C).getItemKey(r)),
|
|
2394
|
+
onError: (e) => ve(N(C).getItemKey(r), r.url),
|
|
2395
|
+
onLoadstart: (e) => Q(N(C).getItemKey(r), e),
|
|
2396
|
+
onLoadedmetadata: (e) => Q(N(C).getItemKey(r), e),
|
|
2397
|
+
onPause: (e) => Q(N(C).getItemKey(r), e),
|
|
2398
|
+
onPlay: (e) => Q(N(C).getItemKey(r), e),
|
|
2399
|
+
onPlaying: (e) => Q(N(C).getItemKey(r), e),
|
|
2400
|
+
onSeeking: (e) => Q(N(C).getItemKey(r), e),
|
|
2401
|
+
onSeeked: (e) => Q(N(C).getItemKey(r), e),
|
|
2402
|
+
onStalled: (e) => Q(N(C).getItemKey(r), e),
|
|
2403
|
+
onTimeupdate: (e) => Q(N(C).getItemKey(r), e),
|
|
2404
|
+
onWaiting: (e) => Q(N(C).getItemKey(r), e)
|
|
2405
|
+
}, null, 42, Pn))], 2)) : N(h).isAudio(r) ? (w(), s("div", {
|
|
2403
2406
|
key: 1,
|
|
2404
|
-
class: v(["relative z-[1] grid w-full max-w-[1100px] justify-items-center gap-6 px-[clamp(2rem,4vw,3rem)] py-[clamp(2rem,4vw,3rem)] text-center", i ===
|
|
2407
|
+
class: v(["relative z-[1] grid w-full max-w-[1100px] justify-items-center gap-6 px-[clamp(2rem,4vw,3rem)] py-[clamp(2rem,4vw,3rem)] text-center", i === N(h).resolvedActiveIndex.value ? te.value : ""])
|
|
2405
2408
|
}, [c("div", Fn, [
|
|
2406
2409
|
c("button", {
|
|
2407
2410
|
type: "button",
|
|
2408
2411
|
class: "relative grid h-full w-full place-items-center border border-white/12 bg-[linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02)),radial-gradient(circle_at_center,rgba(16,185,129,0.14),transparent_58%)] text-[#f7f1ea] transition-[border-color,background] duration-200 hover:border-white/30 hover:bg-[linear-gradient(180deg,rgba(255,255,255,0.07),rgba(255,255,255,0.03)),radial-gradient(circle_at_center,rgba(16,185,129,0.18),transparent_58%)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#f7f1ea]",
|
|
2409
|
-
"aria-label":
|
|
2410
|
-
disabled: !!
|
|
2411
|
-
onClick: (e) =>
|
|
2412
|
+
"aria-label": N(h).mediaStates.value[N(C).getItemKey(r)]?.paused ?? !0 ? N(C).getMediaActionLabel("Play", r) : N(C).getMediaActionLabel("Pause", r),
|
|
2413
|
+
disabled: !!N(C).getAssetErrorKind(r),
|
|
2414
|
+
onClick: (e) => N(h).onAudioCoverClick(e, N(C).getItemKey(r))
|
|
2412
2415
|
}, [
|
|
2413
2416
|
n[6] ||= c("span", { class: "pointer-events-none absolute inset-0 border border-white/8 bg-[radial-gradient(circle,rgba(16,185,129,0.16),transparent_66%)]" }, null, -1),
|
|
2414
2417
|
n[7] ||= c("span", { class: "pointer-events-none absolute h-[clamp(220px,30vw,360px)] w-[clamp(220px,30vw,360px)] border border-white/8 bg-[radial-gradient(circle,rgba(255,255,255,0.08),transparent_62%)]" }, null, -1),
|
|
2415
|
-
c("span", Ln, [
|
|
2416
|
-
icon:
|
|
2418
|
+
c("span", Ln, [k(e.$slots, "item-icon", {
|
|
2419
|
+
icon: N(Tt)(r.type),
|
|
2417
2420
|
item: r
|
|
2418
|
-
}, () => [(w(), a(
|
|
2421
|
+
}, () => [(w(), a(A(N(Tt)(r.type)), {
|
|
2419
2422
|
class: "h-6 w-6 stroke-[1.9]",
|
|
2420
2423
|
"aria-hidden": "true"
|
|
2421
2424
|
}))])]),
|
|
2422
|
-
c("span", Rn, [(w(), a(
|
|
2425
|
+
c("span", Rn, [(w(), a(A(N(h).mediaStates.value[N(C).getItemKey(r)]?.paused ?? !0 ? N(ce) : N(se)), {
|
|
2423
2426
|
class: "h-4 w-4 stroke-2",
|
|
2424
2427
|
"aria-hidden": "true"
|
|
2425
2428
|
}))])
|
|
2426
2429
|
], 8, In),
|
|
2427
|
-
|
|
2430
|
+
N(C).isAssetLoading(i, r) ? (w(), s("div", zn, [c("span", Bn, [u(N(oe), {
|
|
2428
2431
|
class: "h-5 w-5 animate-spin stroke-[1.9] text-[#f7f1ea]/78",
|
|
2429
2432
|
"aria-hidden": "true"
|
|
2430
2433
|
})])])) : o("", !0),
|
|
2431
|
-
|
|
2434
|
+
N(C).getAssetErrorKind(r) ? (w(), s(t, { key: 1 }, [n[8] ||= c("div", { class: "pointer-events-none absolute inset-0 border border-white/8 bg-[radial-gradient(circle,rgba(239,68,68,0.12),transparent_66%)]" }, null, -1), c("div", {
|
|
2432
2435
|
"data-testid": "vibe-asset-error",
|
|
2433
|
-
"data-kind":
|
|
2436
|
+
"data-kind": N(C).getAssetErrorKind(r),
|
|
2434
2437
|
class: "relative z-[1] grid justify-items-center gap-4"
|
|
2435
2438
|
}, [
|
|
2436
|
-
u(
|
|
2439
|
+
u(N(le), {
|
|
2437
2440
|
class: "h-7 w-7 stroke-[1.9] text-[#f7f1ea]/72",
|
|
2438
2441
|
"aria-hidden": "true"
|
|
2439
2442
|
}),
|
|
2440
|
-
c("p", Hn,
|
|
2441
|
-
|
|
2443
|
+
c("p", Hn, j(N(C).getAssetErrorLabel(r)), 1),
|
|
2444
|
+
N(h).canRetryAsset(N(C).getItemKey(r)) ? (w(), s("button", {
|
|
2442
2445
|
key: 0,
|
|
2443
2446
|
type: "button",
|
|
2444
2447
|
class: "pointer-events-auto inline-flex items-center justify-center border border-white/14 bg-black/35 px-4 py-2 text-[0.64rem] font-bold uppercase tracking-[0.22em] text-[#f7f1ea]/82 backdrop-blur-[18px] transition hover:border-white/28 hover:bg-black/50",
|
|
2445
|
-
onClick:
|
|
2448
|
+
onClick: ee((e) => N(h).retryAsset(N(C).getItemKey(r)), ["stop"])
|
|
2446
2449
|
}, " Retry ", 8, Un)) : o("", !0)
|
|
2447
2450
|
], 8, Vn)], 64)) : o("", !0)
|
|
2448
2451
|
]), (w(), s("audio", {
|
|
2449
|
-
key:
|
|
2450
|
-
src:
|
|
2451
|
-
preload:
|
|
2452
|
+
key: N(h).getAssetRenderKey(N(C).getItemKey(r)),
|
|
2453
|
+
src: N(C).getFullscreenMediaSource(i, r),
|
|
2454
|
+
preload: N(C).getFullscreenMediaPreload(i),
|
|
2452
2455
|
class: "pointer-events-none absolute h-px w-px opacity-0",
|
|
2453
2456
|
ref_for: !0,
|
|
2454
|
-
ref: (e) => _e(
|
|
2455
|
-
onCanplay: (e) => Q(
|
|
2456
|
-
onDurationchange: (e) => Q(
|
|
2457
|
-
onError: (e) => ve(
|
|
2458
|
-
onLoadstart: (e) => Q(
|
|
2459
|
-
onLoadedmetadata: (e) => Q(
|
|
2460
|
-
onPause: (e) => Q(
|
|
2461
|
-
onPlay: (e) => Q(
|
|
2462
|
-
onPlaying: (e) => Q(
|
|
2463
|
-
onSeeking: (e) => Q(
|
|
2464
|
-
onSeeked: (e) => Q(
|
|
2465
|
-
onStalled: (e) => Q(
|
|
2466
|
-
onTimeupdate: (e) => Q(
|
|
2467
|
-
onWaiting: (e) => Q(
|
|
2468
|
-
}, null, 40, Wn))], 2)) : (w(), s("div", Gn, [c("div", Kn, [
|
|
2469
|
-
icon:
|
|
2457
|
+
ref: (e) => _e(N(C).getItemKey(r), e),
|
|
2458
|
+
onCanplay: (e) => Q(N(C).getItemKey(r), e),
|
|
2459
|
+
onDurationchange: (e) => Q(N(C).getItemKey(r), e),
|
|
2460
|
+
onError: (e) => ve(N(C).getItemKey(r), r.url),
|
|
2461
|
+
onLoadstart: (e) => Q(N(C).getItemKey(r), e),
|
|
2462
|
+
onLoadedmetadata: (e) => Q(N(C).getItemKey(r), e),
|
|
2463
|
+
onPause: (e) => Q(N(C).getItemKey(r), e),
|
|
2464
|
+
onPlay: (e) => Q(N(C).getItemKey(r), e),
|
|
2465
|
+
onPlaying: (e) => Q(N(C).getItemKey(r), e),
|
|
2466
|
+
onSeeking: (e) => Q(N(C).getItemKey(r), e),
|
|
2467
|
+
onSeeked: (e) => Q(N(C).getItemKey(r), e),
|
|
2468
|
+
onStalled: (e) => Q(N(C).getItemKey(r), e),
|
|
2469
|
+
onTimeupdate: (e) => Q(N(C).getItemKey(r), e),
|
|
2470
|
+
onWaiting: (e) => Q(N(C).getItemKey(r), e)
|
|
2471
|
+
}, null, 40, Wn))], 2)) : (w(), s("div", Gn, [c("div", Kn, [k(e.$slots, "item-icon", {
|
|
2472
|
+
icon: N(Tt)(r.type),
|
|
2470
2473
|
item: r
|
|
2471
|
-
}, () => [(w(), a(
|
|
2474
|
+
}, () => [(w(), a(A(N(Tt)(r.type)), {
|
|
2472
2475
|
class: "h-6 w-6 stroke-[1.9]",
|
|
2473
2476
|
"aria-hidden": "true"
|
|
2474
2477
|
}))])])]))], 14, En))), 128)),
|
|
2475
|
-
U.value && f["fullscreen-overlay"] ? (w(), s("div", qn, [c("div", Jn, [
|
|
2476
|
-
|
|
2478
|
+
U.value && f["fullscreen-overlay"] ? (w(), s("div", qn, [c("div", Jn, [k(e.$slots, "fullscreen-overlay", y(p(U.value)))])])) : o("", !0),
|
|
2479
|
+
N(h).activeItem.value ? (w(), a(St, {
|
|
2477
2480
|
key: 1,
|
|
2478
|
-
"current-index":
|
|
2481
|
+
"current-index": N(h).resolvedActiveIndex.value,
|
|
2479
2482
|
loading: d.loading,
|
|
2480
|
-
"pagination-detail":
|
|
2483
|
+
"pagination-detail": N(h).paginationDetail.value,
|
|
2481
2484
|
"show-back-to-list": d.showBackToList,
|
|
2482
|
-
"show-end-badge": d.showEndBadge &&
|
|
2483
|
-
title:
|
|
2484
|
-
total:
|
|
2485
|
+
"show-end-badge": d.showEndBadge && N(h).isAtEnd.value && !N(h).hasNextPage.value && !N(h).loading.value,
|
|
2486
|
+
title: N(h).activeItem.value.title ?? null,
|
|
2487
|
+
total: N(h).items.value.length,
|
|
2485
2488
|
onBackToList: n[0] ||= (e) => m("back-to-list")
|
|
2486
2489
|
}, l({ _: 2 }, [re.value && U.value ? {
|
|
2487
2490
|
name: "actions",
|
|
2488
|
-
fn:
|
|
2491
|
+
fn: z(() => [k(e.$slots, "fullscreen-header-actions", y(p(U.value)))]),
|
|
2489
2492
|
key: "0"
|
|
2490
2493
|
} : void 0]), 1032, [
|
|
2491
2494
|
"current-index",
|
|
@@ -2496,19 +2499,19 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2496
2499
|
"title",
|
|
2497
2500
|
"total"
|
|
2498
2501
|
])) : o("", !0),
|
|
2499
|
-
|
|
2502
|
+
R.value ? (w(), a(dt, {
|
|
2500
2503
|
key: 2,
|
|
2501
|
-
"current-time":
|
|
2502
|
-
"current-time-label":
|
|
2503
|
-
duration:
|
|
2504
|
-
"duration-label":
|
|
2505
|
-
muted:
|
|
2506
|
-
progress:
|
|
2507
|
-
volume:
|
|
2508
|
-
"volume-control-layout":
|
|
2509
|
-
onSeekInput:
|
|
2510
|
-
onVolumeInput:
|
|
2511
|
-
onVolumeToggle:
|
|
2504
|
+
"current-time": N(h).activeMediaState.value.currentTime,
|
|
2505
|
+
"current-time-label": N(h).formatPlaybackTime(N(h).activeMediaState.value.currentTime),
|
|
2506
|
+
duration: N(h).activeMediaDuration.value,
|
|
2507
|
+
"duration-label": N(h).formatPlaybackTime(N(h).activeMediaDuration.value),
|
|
2508
|
+
muted: N(h).activeMediaState.value.muted,
|
|
2509
|
+
progress: N(h).activeMediaProgress.value,
|
|
2510
|
+
volume: N(h).activeMediaState.value.volume,
|
|
2511
|
+
"volume-control-layout": B.value,
|
|
2512
|
+
onSeekInput: N(h).onMediaSeekInput,
|
|
2513
|
+
onVolumeInput: N(h).onMediaVolumeInput,
|
|
2514
|
+
onVolumeToggle: N(h).onMediaVolumeToggle
|
|
2512
2515
|
}, null, 8, [
|
|
2513
2516
|
"current-time",
|
|
2514
2517
|
"current-time-label",
|
|
@@ -2524,34 +2527,34 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2524
2527
|
])) : o("", !0),
|
|
2525
2528
|
G.value ? (w(), s("div", {
|
|
2526
2529
|
key: 3,
|
|
2527
|
-
class: v(["absolute left-1/2 z-[4] -translate-x-1/2",
|
|
2528
|
-
}, [ae.value ?
|
|
2530
|
+
class: v(["absolute left-1/2 z-[4] -translate-x-1/2", L.value])
|
|
2531
|
+
}, [ae.value ? k(e.$slots, "fullscreen-status", y(g({ key: 0 }, G.value))) : (w(), s("div", {
|
|
2529
2532
|
key: 1,
|
|
2530
2533
|
"data-testid": "vibe-fullscreen-status-badge",
|
|
2531
2534
|
class: v(["inline-flex w-auto items-center border border-white/14 bg-black/40 px-5 py-3 text-[0.75rem] font-bold uppercase tracking-[0.18em] text-[#f7f1ea]/74 backdrop-blur-[18px] max-[720px]:w-[calc(100%-2.5rem)] max-[720px]:justify-center", G.value.kind === "end" ? "border-amber-300/35 text-amber-200" : G.value.kind === "failed" ? "border-rose-400/45 text-rose-100" : ""])
|
|
2532
|
-
},
|
|
2533
|
-
])) : V.value ? (w(), s("div", Yn, [c("div", Xn, [c("span", Zn, [u(
|
|
2535
|
+
}, j(G.value.message), 3))], 2)) : o("", !0)
|
|
2536
|
+
])) : V.value ? (w(), s("div", Yn, [c("div", Xn, [c("span", Zn, [u(N(oe), {
|
|
2534
2537
|
class: "h-5 w-5 animate-spin stroke-[1.9] text-[#f7f1ea]/78",
|
|
2535
2538
|
"aria-hidden": "true"
|
|
2536
|
-
})]), c("p", Qn,
|
|
2539
|
+
})]), c("p", Qn, j(H.value), 1)])])) : N(fe) && N(X) ? (w(), a(Cn, {
|
|
2537
2540
|
key: 2,
|
|
2538
|
-
message:
|
|
2539
|
-
mode:
|
|
2540
|
-
surface:
|
|
2541
|
+
message: N(X).message,
|
|
2542
|
+
mode: N(X).mode,
|
|
2543
|
+
surface: N(X).surface
|
|
2541
2544
|
}, {
|
|
2542
|
-
default:
|
|
2545
|
+
default: z(() => [N(de) ? k(e.$slots, "empty-state", y(g({ key: 0 }, N(X)))) : o("", !0)]),
|
|
2543
2546
|
_: 3
|
|
2544
2547
|
}, 8, [
|
|
2545
2548
|
"message",
|
|
2546
2549
|
"mode",
|
|
2547
2550
|
"surface"
|
|
2548
|
-
])) : o("", !0),
|
|
2551
|
+
])) : o("", !0), N(ue) && N(X) ? (w(), a(Cn, {
|
|
2549
2552
|
key: 3,
|
|
2550
|
-
message:
|
|
2551
|
-
mode:
|
|
2552
|
-
surface:
|
|
2553
|
+
message: N(X).message,
|
|
2554
|
+
mode: N(X).mode,
|
|
2555
|
+
surface: N(X).surface
|
|
2553
2556
|
}, {
|
|
2554
|
-
default:
|
|
2557
|
+
default: z(() => [N(de) ? k(e.$slots, "empty-state", y(g({ key: 0 }, N(X)))) : o("", !0)]),
|
|
2555
2558
|
_: 3
|
|
2556
2559
|
}, 8, [
|
|
2557
2560
|
"message",
|
|
@@ -2565,7 +2568,7 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2565
2568
|
"leave-from-class": "translate-x-0 opacity-100",
|
|
2566
2569
|
"leave-to-class": "translate-x-full opacity-0"
|
|
2567
2570
|
}, {
|
|
2568
|
-
default:
|
|
2571
|
+
default: z(() => [Y.value && U.value ? (w(), s("aside", $n, [c("div", er, [k(e.$slots, "fullscreen-aside", y(p(U.value)))])])) : o("", !0)]),
|
|
2569
2572
|
_: 3
|
|
2570
2573
|
})], 4),
|
|
2571
2574
|
u(r, {
|
|
@@ -2576,7 +2579,7 @@ var xn = ["data-surface"], Sn = ["data-surface"], Cn = /* @__PURE__ */ d({
|
|
|
2576
2579
|
"leave-from-class": "translate-x-0 opacity-100",
|
|
2577
2580
|
"leave-to-class": "translate-x-full opacity-0"
|
|
2578
2581
|
}, {
|
|
2579
|
-
default:
|
|
2582
|
+
default: z(() => [ie.value && U.value ? (w(), s("aside", tr, [c("div", nr, [k(e.$slots, "fullscreen-aside", y(p(U.value)))])])) : o("", !0)]),
|
|
2580
2583
|
_: 3
|
|
2581
2584
|
})
|
|
2582
2585
|
]));
|
|
@@ -2699,7 +2702,7 @@ function Tr(e) {
|
|
|
2699
2702
|
}
|
|
2700
2703
|
function Er(e) {
|
|
2701
2704
|
let t = D(/* @__PURE__ */ new Set()), n = D(/* @__PURE__ */ new Set()), r = D(/* @__PURE__ */ new Map()), a = D(/* @__PURE__ */ new Map()), o = D(/* @__PURE__ */ new Map()), s = D(/* @__PURE__ */ new Set()), c = D(/* @__PURE__ */ new Map()), l = D(/* @__PURE__ */ new Map()), u = D(/* @__PURE__ */ new Set()), d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), p = i(() => Array.from(o.value.values()));
|
|
2702
|
-
|
|
2705
|
+
L(e.visibleIndices, (i) => {
|
|
2703
2706
|
if (!i.length) return;
|
|
2704
2707
|
let o = [];
|
|
2705
2708
|
for (let n of i) {
|
|
@@ -2722,7 +2725,7 @@ function Er(e) {
|
|
|
2722
2725
|
n.value = e, r.value = t, a.value = i;
|
|
2723
2726
|
}, Cr(o.length));
|
|
2724
2727
|
});
|
|
2725
|
-
}, { flush: "post" }),
|
|
2728
|
+
}, { flush: "post" }), L(() => e.items.value.map((e) => $(e)), (e) => {
|
|
2726
2729
|
if (!e.length || !o.value.size) return;
|
|
2727
2730
|
let t = new Set(e), n = null, r = null;
|
|
2728
2731
|
for (let e of o.value.keys()) t.has(e) && (n ||= new Map(o.value), r ||= new Set(s.value), n.delete(e), r.delete(e));
|
|
@@ -2972,21 +2975,21 @@ function Yr(e) {
|
|
|
2972
2975
|
progressDistancePx: n.value,
|
|
2973
2976
|
thresholdPx: Vr,
|
|
2974
2977
|
triggerEnabled: w.value
|
|
2975
|
-
})), E = i(() => e.items.value.length > 0 ? `${v.value + 1} / ${e.items.value.length}` : "0 / 0"),
|
|
2978
|
+
})), E = i(() => e.items.value.length > 0 ? `${v.value + 1} / ${e.items.value.length}` : "0 / 0"), O = i(() => Zr({
|
|
2976
2979
|
active: e.active.value,
|
|
2977
2980
|
maxScrollTop: se(),
|
|
2978
2981
|
progressDistancePx: n.value,
|
|
2979
2982
|
thresholdPx: Hr,
|
|
2980
2983
|
triggerEnabled: e.hasPreviousPage.value
|
|
2981
|
-
})),
|
|
2982
|
-
if (!
|
|
2983
|
-
let e = r.value / C.value *
|
|
2984
|
-
return Math.min(
|
|
2985
|
-
}),
|
|
2986
|
-
if (!
|
|
2984
|
+
})), k = i(() => Math.max(0, r.value - Gr * 2)), A = i(() => C.value > r.value + 1 && k.value > 0), j = i(() => {
|
|
2985
|
+
if (!A.value) return 0;
|
|
2986
|
+
let e = r.value / C.value * k.value;
|
|
2987
|
+
return Math.min(k.value, Math.max(Kr, e));
|
|
2988
|
+
}), M = i(() => {
|
|
2989
|
+
if (!A.value) return Gr;
|
|
2987
2990
|
let e = Math.max(0, C.value - r.value);
|
|
2988
|
-
return Gr + Math.max(0,
|
|
2989
|
-
}),
|
|
2991
|
+
return Gr + Math.max(0, k.value - j.value) * (e > 0 ? Xr(n.value / e, 0, 1) : 0);
|
|
2992
|
+
}), N = Er({
|
|
2990
2993
|
items: e.items,
|
|
2991
2994
|
visibleIndices: y,
|
|
2992
2995
|
positions: o,
|
|
@@ -2995,7 +2998,7 @@ function Yr(e) {
|
|
|
2995
2998
|
columnWidth: g,
|
|
2996
2999
|
scrollTop: n,
|
|
2997
3000
|
viewportHeight: r
|
|
2998
|
-
}),
|
|
3001
|
+
}), P = Fr({
|
|
2999
3002
|
direction: "top",
|
|
3000
3003
|
getAnimationLockMs(e) {
|
|
3001
3004
|
return Math.max(qr, Cr(e)) + Jr;
|
|
@@ -3007,7 +3010,7 @@ function Yr(e) {
|
|
|
3007
3010
|
},
|
|
3008
3011
|
loading: e.loading,
|
|
3009
3012
|
requestPage: e.requestPreviousPage
|
|
3010
|
-
}),
|
|
3013
|
+
}), F = Fr({
|
|
3011
3014
|
direction: "bottom",
|
|
3012
3015
|
getAnimationLockMs(e) {
|
|
3013
3016
|
return Cr(e) + Jr;
|
|
@@ -3019,8 +3022,8 @@ function Yr(e) {
|
|
|
3019
3022
|
},
|
|
3020
3023
|
loading: e.loading,
|
|
3021
3024
|
requestPage: e.requestNextPage
|
|
3022
|
-
}),
|
|
3023
|
-
|
|
3025
|
+
}), I = null, R = 0, z = null, B = null, ee = !1;
|
|
3026
|
+
L([
|
|
3024
3027
|
() => e.items.value,
|
|
3025
3028
|
h,
|
|
3026
3029
|
g
|
|
@@ -3035,15 +3038,15 @@ function Yr(e) {
|
|
|
3035
3038
|
position: n
|
|
3036
3039
|
}];
|
|
3037
3040
|
}), h = i.length > s.length && s.length > 0 && i[0] !== s[0], g = t.length === 0 && a.length > 0 && m.length > 0 && n.value > 0, y = m.length > 0 && n.value > Lr + Rr, b = h && n.value > Lr + Rr ? t[v.value] : null, x = b ? $(b) : null;
|
|
3038
|
-
y && K(wr() + Jr), g && G(),
|
|
3039
|
-
}, { immediate: !0 }),
|
|
3041
|
+
y && K(wr() + Jr), g && G(), te(), m.length > 0 && N.markLeave(m), p.length > 0 && (N.markEnter(p, h ? "top" : "bottom"), h ? P.onItemsMutated(p.length) : F.onItemsMutated(p.length)), N.playFlipMoveAnimation(c, new Set(p.map((e) => $(e))), h ? qr : void 0), x ? (await _(), ne(x, c)) : e.active.value && s.length > 0 && re();
|
|
3042
|
+
}, { immediate: !0 }), L([
|
|
3040
3043
|
() => e.pendingAppendItems.value.map((e) => $(e)),
|
|
3041
3044
|
h,
|
|
3042
3045
|
g,
|
|
3043
3046
|
r
|
|
3044
3047
|
], ([t]) => {
|
|
3045
3048
|
de(), t.length && (d.value = le([...e.items.value, ...e.pendingAppendItems.value]), ue());
|
|
3046
|
-
}, { immediate: !0 }),
|
|
3049
|
+
}, { immediate: !0 }), L(() => e.active.value, async (e, i) => {
|
|
3047
3050
|
let a = t.value;
|
|
3048
3051
|
if (!a) return;
|
|
3049
3052
|
if (!e) {
|
|
@@ -3053,17 +3056,17 @@ function Yr(e) {
|
|
|
3053
3056
|
if (i !== !1 || f.value == null) return;
|
|
3054
3057
|
await _();
|
|
3055
3058
|
let o = Math.max(0, C.value - r.value), s = Xr(f.value, 0, o);
|
|
3056
|
-
a.scrollTop = s, n.value = s,
|
|
3057
|
-
}),
|
|
3058
|
-
!t && !e.pendingAppendItems.value.length && !
|
|
3059
|
+
a.scrollTop = s, n.value = s, P.syncBoundary(), F.syncBoundary();
|
|
3060
|
+
}), L(() => e.loading.value, async (t) => {
|
|
3061
|
+
!t && !e.pendingAppendItems.value.length && !z && !ee && (d.value = null), P.onLoadingChange(t), F.onLoadingChange(t), await _();
|
|
3059
3062
|
}), S(async () => {
|
|
3060
|
-
Y(), await _(), v.value > 0 ? W(v.value, "center") : q(),
|
|
3063
|
+
Y(), await _(), v.value > 0 ? W(v.value, "center") : q(), P.syncBoundary(), F.syncBoundary(), typeof ResizeObserver < "u" ? (I = new ResizeObserver(() => {
|
|
3061
3064
|
Y();
|
|
3062
|
-
}), t.value &&
|
|
3065
|
+
}), t.value && I.observe(t.value)) : window.addEventListener("resize", Y);
|
|
3063
3066
|
}), x(() => {
|
|
3064
|
-
|
|
3067
|
+
I?.disconnect(), I = null, window.removeEventListener("resize", Y), de(), fe(), R &&= (cancelAnimationFrame(R), 0);
|
|
3065
3068
|
});
|
|
3066
|
-
function
|
|
3069
|
+
function te() {
|
|
3067
3070
|
let t = fr(e.items.value, {
|
|
3068
3071
|
columnCount: h.value,
|
|
3069
3072
|
columnWidth: g.value,
|
|
@@ -3077,21 +3080,21 @@ function Yr(e) {
|
|
|
3077
3080
|
})), s.value = t.heights, c.value = t.buckets, l.value = t.contentHeight, u.value = t.indexById;
|
|
3078
3081
|
}
|
|
3079
3082
|
function V() {
|
|
3080
|
-
e.active.value && (n.value = t.value?.scrollTop ?? 0, r.value = ie(),
|
|
3081
|
-
|
|
3083
|
+
e.active.value && (n.value = t.value?.scrollTop ?? 0, r.value = ie(), P.syncBoundary(), F.syncBoundary(), J(), !re() && (R ||= requestAnimationFrame(() => {
|
|
3084
|
+
R = 0, q();
|
|
3082
3085
|
})));
|
|
3083
3086
|
}
|
|
3084
3087
|
function H(t) {
|
|
3085
|
-
e.active.value && (
|
|
3088
|
+
e.active.value && (P.onWheel(t), F.onWheel(t), J());
|
|
3086
3089
|
}
|
|
3087
3090
|
function U(t) {
|
|
3088
3091
|
let n = e.items.value[t], r = n ? $(n) : "";
|
|
3089
3092
|
return {
|
|
3090
3093
|
height: `${s.value[t] ?? g.value}px`,
|
|
3091
3094
|
width: `${g.value}px`,
|
|
3092
|
-
transition: r ?
|
|
3093
|
-
transitionDelay: r ?
|
|
3094
|
-
transform:
|
|
3095
|
+
transition: r ? N.getCardTransition(r) : void 0,
|
|
3096
|
+
transitionDelay: r ? N.getCardTransitionDelay(r) : void 0,
|
|
3097
|
+
transform: N.getCardTransform(t)
|
|
3095
3098
|
};
|
|
3096
3099
|
}
|
|
3097
3100
|
function W(e, i) {
|
|
@@ -3112,11 +3115,11 @@ function Yr(e) {
|
|
|
3112
3115
|
n.value = 0;
|
|
3113
3116
|
return;
|
|
3114
3117
|
}
|
|
3115
|
-
e.scrollTop = 0, n.value = 0,
|
|
3118
|
+
e.scrollTop = 0, n.value = 0, P.syncBoundary(), F.syncBoundary();
|
|
3116
3119
|
}
|
|
3117
3120
|
function K(e) {
|
|
3118
|
-
|
|
3119
|
-
|
|
3121
|
+
fe(), p.value = !0, B = setTimeout(() => {
|
|
3122
|
+
B = null, p.value = !1;
|
|
3120
3123
|
}, Math.max(0, e));
|
|
3121
3124
|
}
|
|
3122
3125
|
function q() {
|
|
@@ -3135,7 +3138,7 @@ function Yr(e) {
|
|
|
3135
3138
|
return t ? (e.setActiveIndex(0), !0) : r ? (e.setActiveIndex(Math.max(0, e.items.value.length - 1)), !0) : !1;
|
|
3136
3139
|
}
|
|
3137
3140
|
function J() {
|
|
3138
|
-
|
|
3141
|
+
P.maybeRequestPage(), F.maybeRequestPage();
|
|
3139
3142
|
}
|
|
3140
3143
|
function Y() {
|
|
3141
3144
|
r.value = ie(), a.value = ae();
|
|
@@ -3154,7 +3157,7 @@ function Yr(e) {
|
|
|
3154
3157
|
return Math.max(0, e - r.value);
|
|
3155
3158
|
}
|
|
3156
3159
|
function ce() {
|
|
3157
|
-
return Mr(
|
|
3160
|
+
return Mr(j.value, M.value);
|
|
3158
3161
|
}
|
|
3159
3162
|
function le(e) {
|
|
3160
3163
|
return e.length ? fr(e, {
|
|
@@ -3177,38 +3180,38 @@ function Yr(e) {
|
|
|
3177
3180
|
}
|
|
3178
3181
|
function ue() {
|
|
3179
3182
|
let t = e.commitPendingAppend.value;
|
|
3180
|
-
typeof t == "function" && (
|
|
3181
|
-
|
|
3183
|
+
typeof t == "function" && (z = setTimeout(async () => {
|
|
3184
|
+
z = null, ee = !0;
|
|
3182
3185
|
try {
|
|
3183
3186
|
if (!e.pendingAppendItems.value.length) return;
|
|
3184
3187
|
await t(), await _(), await _();
|
|
3185
3188
|
} finally {
|
|
3186
|
-
d.value = null,
|
|
3189
|
+
d.value = null, ee = !1;
|
|
3187
3190
|
}
|
|
3188
3191
|
}, Wr));
|
|
3189
3192
|
}
|
|
3190
3193
|
function de() {
|
|
3191
|
-
|
|
3194
|
+
z &&= (clearTimeout(z), null);
|
|
3192
3195
|
}
|
|
3193
|
-
function
|
|
3194
|
-
|
|
3196
|
+
function fe() {
|
|
3197
|
+
B && (clearTimeout(B), B = null, p.value = !1);
|
|
3195
3198
|
}
|
|
3196
3199
|
return {
|
|
3197
3200
|
columnWidth: g,
|
|
3198
3201
|
containerHeight: C,
|
|
3199
3202
|
getCardStyle: U,
|
|
3200
|
-
getLeavingCardStyle:
|
|
3203
|
+
getLeavingCardStyle: N.getLeavingCardStyle,
|
|
3201
3204
|
getScrollbarThumbStyle: ce,
|
|
3202
|
-
leavingItems:
|
|
3205
|
+
leavingItems: N.leavingItems,
|
|
3203
3206
|
nextBoundaryLoadProgress: T,
|
|
3204
3207
|
onScroll: V,
|
|
3205
3208
|
onWheel: H,
|
|
3206
3209
|
paginationLabel: E,
|
|
3207
|
-
previousBoundaryLoadProgress:
|
|
3210
|
+
previousBoundaryLoadProgress: O,
|
|
3208
3211
|
renderedItems: b,
|
|
3209
3212
|
resolvedActiveIndex: v,
|
|
3210
3213
|
scrollToIndex: W,
|
|
3211
|
-
showScrollbar:
|
|
3214
|
+
showScrollbar: A,
|
|
3212
3215
|
scrollViewportRef: t
|
|
3213
3216
|
};
|
|
3214
3217
|
}
|
|
@@ -3321,9 +3324,9 @@ function fi(e) {
|
|
|
3321
3324
|
let t = typeof e.item.value.healthCheck?.url == "string" ? ni(e.item.value.healthCheck.url) : null;
|
|
3322
3325
|
return !t || t === e.attachedAssetUrl.value ? null : t;
|
|
3323
3326
|
}), r = null, a = 0, o = /* @__PURE__ */ new Map();
|
|
3324
|
-
|
|
3327
|
+
L(n, (e, n) => {
|
|
3325
3328
|
e !== n && (t.value = null, l(), a += 1);
|
|
3326
|
-
}),
|
|
3329
|
+
}), L([
|
|
3327
3330
|
n,
|
|
3328
3331
|
e.surfaceActive,
|
|
3329
3332
|
e.isInView,
|
|
@@ -3427,7 +3430,7 @@ var pi = ["aria-label"], mi = {
|
|
|
3427
3430
|
},
|
|
3428
3431
|
emits: ["open"],
|
|
3429
3432
|
setup(e, { emit: t }) {
|
|
3430
|
-
let n = e, r = t, l = i(() => oi(n.item)), d = D(!1), f = D(!1), p = D(!1), m = D(l.value.kind === "fallback"), h = D(!1), g = D(null), _ = D(null), y = D(null), b = D(null), C = D(null), T = D(l.value.kind === "fallback"), E = i(() => T.value ? n.surfaceActive ? d.value ? l.value.url : null : l.value.url : null),
|
|
3433
|
+
let n = e, r = t, l = i(() => oi(n.item)), d = D(!1), f = D(!1), p = D(!1), m = D(l.value.kind === "fallback"), h = D(!1), g = D(null), _ = D(null), y = D(null), b = D(null), C = D(null), T = D(l.value.kind === "fallback"), E = i(() => T.value ? n.surfaceActive ? d.value ? l.value.url : null : l.value.url : null), O = i(() => n.surfaceActive && d.value && (l.value.kind === "image" || l.value.kind === "video") && !!l.value.url), M = i(() => l.value.kind === "image" && !!E.value), P = i(() => l.value.kind === "video" && !!E.value), F = fi({
|
|
3431
3434
|
attachedAssetUrl: E,
|
|
3432
3435
|
getPriority: X,
|
|
3433
3436
|
isInView: d,
|
|
@@ -3436,19 +3439,19 @@ var pi = ["aria-label"], mi = {
|
|
|
3436
3439
|
loadErrorKind: g,
|
|
3437
3440
|
reportAssetError: n.reportAssetError,
|
|
3438
3441
|
surfaceActive: i(() => n.surfaceActive)
|
|
3439
|
-
}),
|
|
3440
|
-
|
|
3442
|
+
}), I = i(() => F.errorKind.value ?? g.value), R = i(() => !!I.value), z = i(() => en(I.value)), B = i(() => O.value && !g.value && (!T.value || !m.value)), te = null, V = null, H = /* @__PURE__ */ new Set();
|
|
3443
|
+
L([E, () => l.value.kind], () => {
|
|
3441
3444
|
let e = l.value.kind === "fallback";
|
|
3442
3445
|
m.value = e, h.value = !1, g.value = null, e && (T.value = !0);
|
|
3443
|
-
}),
|
|
3446
|
+
}), L(O, () => {
|
|
3444
3447
|
K();
|
|
3445
|
-
}),
|
|
3448
|
+
}), L([
|
|
3446
3449
|
d,
|
|
3447
3450
|
m,
|
|
3448
3451
|
E
|
|
3449
3452
|
], () => {
|
|
3450
3453
|
q();
|
|
3451
|
-
}),
|
|
3454
|
+
}), L(() => n.surfaceActive, (e) => {
|
|
3452
3455
|
if (!e) {
|
|
3453
3456
|
J(), q();
|
|
3454
3457
|
return;
|
|
@@ -3461,14 +3464,14 @@ var pi = ["aria-label"], mi = {
|
|
|
3461
3464
|
b.value = null, d.value = !0, K();
|
|
3462
3465
|
return;
|
|
3463
3466
|
}
|
|
3464
|
-
b.value = y.value.closest("[data-testid=\"vibe-list-scroll\"]"),
|
|
3467
|
+
b.value = y.value.closest("[data-testid=\"vibe-list-scroll\"]"), te = new IntersectionObserver((e) => {
|
|
3465
3468
|
for (let t of e) t.target === y.value && (n.surfaceActive && Y(t), K(), q());
|
|
3466
3469
|
}, {
|
|
3467
3470
|
root: b.value,
|
|
3468
3471
|
threshold: [0, 1]
|
|
3469
|
-
}),
|
|
3472
|
+
}), te.observe(y.value);
|
|
3470
3473
|
}), x(() => {
|
|
3471
|
-
re(),
|
|
3474
|
+
re(), F.release(), te?.disconnect(), te = null;
|
|
3472
3475
|
});
|
|
3473
3476
|
function U() {
|
|
3474
3477
|
ue(_.value) && (m.value = !0, g.value = null, ie(E.value ?? n.item.url), J());
|
|
@@ -3501,7 +3504,7 @@ var pi = ["aria-label"], mi = {
|
|
|
3501
3504
|
J();
|
|
3502
3505
|
return;
|
|
3503
3506
|
}
|
|
3504
|
-
if (!
|
|
3507
|
+
if (!O.value) {
|
|
3505
3508
|
re();
|
|
3506
3509
|
return;
|
|
3507
3510
|
}
|
|
@@ -3521,7 +3524,7 @@ var pi = ["aria-label"], mi = {
|
|
|
3521
3524
|
function q() {
|
|
3522
3525
|
let e = C.value;
|
|
3523
3526
|
if (!(!e || l.value.kind !== "video")) {
|
|
3524
|
-
if (
|
|
3527
|
+
if (I.value) {
|
|
3525
3528
|
e.pause();
|
|
3526
3529
|
return;
|
|
3527
3530
|
}
|
|
@@ -3560,7 +3563,7 @@ var pi = ["aria-label"], mi = {
|
|
|
3560
3563
|
}));
|
|
3561
3564
|
}
|
|
3562
3565
|
function ae() {
|
|
3563
|
-
if (!
|
|
3566
|
+
if (!z.value || F.retry()) return;
|
|
3564
3567
|
let e = $(n.item);
|
|
3565
3568
|
H.forEach((t) => {
|
|
3566
3569
|
t.startsWith(`${e}|`) && H.delete(t);
|
|
@@ -3590,10 +3593,10 @@ var pi = ["aria-label"], mi = {
|
|
|
3590
3593
|
function de() {
|
|
3591
3594
|
r("open");
|
|
3592
3595
|
}
|
|
3593
|
-
function
|
|
3596
|
+
function fe() {
|
|
3594
3597
|
f.value = !0;
|
|
3595
3598
|
}
|
|
3596
|
-
function
|
|
3599
|
+
function Z(e) {
|
|
3597
3600
|
let t = e.relatedTarget;
|
|
3598
3601
|
y.value && t instanceof Node && y.value.contains(t) || (f.value = !1);
|
|
3599
3602
|
}
|
|
@@ -3602,8 +3605,8 @@ var pi = ["aria-label"], mi = {
|
|
|
3602
3605
|
ref: y,
|
|
3603
3606
|
"data-testid": "vibe-list-card-inner",
|
|
3604
3607
|
class: v(["group relative h-full w-full overflow-hidden border bg-[#0a0b0f] text-[#f7f1ea] transition-[border-color,transform] duration-300", n.active ? "border-white/28" : "border-white/12 hover:border-white/24"]),
|
|
3605
|
-
onFocusin:
|
|
3606
|
-
onFocusout:
|
|
3608
|
+
onFocusin: fe,
|
|
3609
|
+
onFocusout: Z,
|
|
3607
3610
|
onPointerenter: t[0] ||= (e) => p.value = !0,
|
|
3608
3611
|
onPointerleave: t[1] ||= (e) => p.value = !1
|
|
3609
3612
|
}, [
|
|
@@ -3614,11 +3617,11 @@ var pi = ["aria-label"], mi = {
|
|
|
3614
3617
|
"aria-label": n.item.title || `Open item ${n.index + 1}`,
|
|
3615
3618
|
onClick: de
|
|
3616
3619
|
}, null, 8, pi),
|
|
3617
|
-
|
|
3620
|
+
B.value ? (w(), s("div", mi, [c("span", hi, [u(N(oe), {
|
|
3618
3621
|
class: "h-5 w-5 animate-spin stroke-[1.9] text-[#f7f1ea]/78",
|
|
3619
3622
|
"aria-hidden": "true"
|
|
3620
3623
|
})])])) : o("", !0),
|
|
3621
|
-
|
|
3624
|
+
M.value && E.value && !R.value ? (w(), s("img", {
|
|
3622
3625
|
key: 1,
|
|
3623
3626
|
ref_key: "imageRef",
|
|
3624
3627
|
ref: _,
|
|
@@ -3628,7 +3631,7 @@ var pi = ["aria-label"], mi = {
|
|
|
3628
3631
|
class: v(["block h-full w-full object-cover transition-opacity duration-300", m.value ? "pointer-events-none opacity-100" : "pointer-events-none opacity-0"]),
|
|
3629
3632
|
onLoad: U,
|
|
3630
3633
|
onError: W
|
|
3631
|
-
}, null, 42, gi)) :
|
|
3634
|
+
}, null, 42, gi)) : P.value && E.value && !R.value ? (w(), s("video", {
|
|
3632
3635
|
key: 2,
|
|
3633
3636
|
ref_key: "videoRef",
|
|
3634
3637
|
ref: C,
|
|
@@ -3644,31 +3647,31 @@ var pi = ["aria-label"], mi = {
|
|
|
3644
3647
|
onPlaying: ne,
|
|
3645
3648
|
onStalled: G,
|
|
3646
3649
|
onWaiting: G
|
|
3647
|
-
}, null, 42, _i)) :
|
|
3650
|
+
}, null, 42, _i)) : R.value ? (w(), s("div", {
|
|
3648
3651
|
key: 3,
|
|
3649
3652
|
"data-testid": "vibe-list-card-error",
|
|
3650
|
-
"data-kind":
|
|
3653
|
+
"data-kind": I.value,
|
|
3651
3654
|
class: "pointer-events-none relative z-[2] grid h-full w-full place-items-center bg-[radial-gradient(circle_at_center,rgba(239,68,68,0.12),transparent_65%),linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02))]"
|
|
3652
3655
|
}, [c("div", yi, [
|
|
3653
|
-
u(
|
|
3656
|
+
u(N(le), {
|
|
3654
3657
|
class: "h-6 w-6 stroke-[1.8] text-[#f7f1ea]/78",
|
|
3655
3658
|
"aria-hidden": "true"
|
|
3656
3659
|
}),
|
|
3657
|
-
c("span", bi,
|
|
3658
|
-
|
|
3660
|
+
c("span", bi, j(N($t)(I.value)), 1),
|
|
3661
|
+
z.value ? (w(), s("button", {
|
|
3659
3662
|
key: 0,
|
|
3660
3663
|
type: "button",
|
|
3661
3664
|
class: "pointer-events-auto inline-flex items-center justify-center border border-white/14 bg-black/35 px-3 py-2 text-[0.62rem] font-bold uppercase tracking-[0.22em] text-[#f7f1ea]/82 backdrop-blur-[18px] transition hover:border-white/28 hover:bg-black/50",
|
|
3662
|
-
onClick:
|
|
3665
|
+
onClick: ee(ae, ["stop"])
|
|
3663
3666
|
}, " Retry ")) : o("", !0)
|
|
3664
|
-
])], 8, vi)) : (w(), s("div", xi, [c("div", Si, [
|
|
3665
|
-
icon:
|
|
3667
|
+
])], 8, vi)) : (w(), s("div", xi, [c("div", Si, [k(e.$slots, "item-icon", {
|
|
3668
|
+
icon: N(Tt)(n.item.type),
|
|
3666
3669
|
item: n.item
|
|
3667
|
-
}, () => [(w(), a(
|
|
3670
|
+
}, () => [(w(), a(A(N(Tt)(n.item.type)), {
|
|
3668
3671
|
class: "h-6 w-6 stroke-[1.8] text-[#f7f1ea]/78",
|
|
3669
3672
|
"aria-hidden": "true"
|
|
3670
3673
|
}))])])])),
|
|
3671
|
-
c("div", Ci, [
|
|
3674
|
+
c("div", Ci, [k(e.$slots, "grid-item-overlay", {
|
|
3672
3675
|
active: n.active,
|
|
3673
3676
|
focused: f.value,
|
|
3674
3677
|
hovered: p.value,
|
|
@@ -3756,19 +3759,19 @@ var pi = ["aria-label"], mi = {
|
|
|
3756
3759
|
"update:activeIndex"
|
|
3757
3760
|
],
|
|
3758
3761
|
setup(e, { emit: n }) {
|
|
3759
|
-
let r = e, d =
|
|
3760
|
-
active:
|
|
3761
|
-
allowExhaustedNextPageRefresh:
|
|
3762
|
-
items:
|
|
3763
|
-
activeIndex:
|
|
3764
|
-
loading:
|
|
3765
|
-
hasNextPage:
|
|
3766
|
-
hasPreviousPage:
|
|
3767
|
-
paginationDetail:
|
|
3768
|
-
pendingAppendItems:
|
|
3769
|
-
commitPendingAppend:
|
|
3770
|
-
requestNextPage:
|
|
3771
|
-
requestPreviousPage:
|
|
3762
|
+
let r = e, d = F(), f = n, p = Yr({
|
|
3763
|
+
active: M(r, "active"),
|
|
3764
|
+
allowExhaustedNextPageRefresh: M(r, "allowExhaustedNextPageRefresh"),
|
|
3765
|
+
items: M(r, "items"),
|
|
3766
|
+
activeIndex: M(r, "activeIndex"),
|
|
3767
|
+
loading: M(r, "loading"),
|
|
3768
|
+
hasNextPage: M(r, "hasNextPage"),
|
|
3769
|
+
hasPreviousPage: M(r, "hasPreviousPage"),
|
|
3770
|
+
paginationDetail: M(r, "paginationDetail"),
|
|
3771
|
+
pendingAppendItems: M(r, "pendingAppendItems"),
|
|
3772
|
+
commitPendingAppend: M(r, "commitPendingAppend"),
|
|
3773
|
+
requestNextPage: M(r, "requestNextPage"),
|
|
3774
|
+
requestPreviousPage: M(r, "requestPreviousPage"),
|
|
3772
3775
|
setActiveIndex(e) {
|
|
3773
3776
|
f("update:activeIndex", e);
|
|
3774
3777
|
}
|
|
@@ -3789,42 +3792,42 @@ var pi = ["aria-label"], mi = {
|
|
|
3789
3792
|
message: h.value.message,
|
|
3790
3793
|
paginationDetail: r.paginationDetail,
|
|
3791
3794
|
total: r.items.length
|
|
3792
|
-
}), x = i(() => !_.value || !d["grid-status"] ? [] : d["grid-status"](_.value)), S = i(() => zt(x.value)), C = i(() => r.items.length + p.leavingItems.value.length), { emptyStateProps: T, showBadgeEmptyState: E, showCustomEmptyState: D, showInlineEmptyState:
|
|
3793
|
-
emptyStateMode:
|
|
3795
|
+
}), x = i(() => !_.value || !d["grid-status"] ? [] : d["grid-status"](_.value)), S = i(() => zt(x.value)), C = i(() => r.items.length + p.leavingItems.value.length), { emptyStateProps: T, showBadgeEmptyState: E, showCustomEmptyState: D, showInlineEmptyState: A } = Ht({
|
|
3796
|
+
emptyStateMode: M(r, "emptyStateMode"),
|
|
3794
3797
|
itemCount: C,
|
|
3795
|
-
loading:
|
|
3798
|
+
loading: M(r, "loading"),
|
|
3796
3799
|
renderSlot: d["empty-state"],
|
|
3797
3800
|
surface: "grid"
|
|
3798
3801
|
});
|
|
3799
|
-
return
|
|
3802
|
+
return L([p.nextBoundaryLoadProgress, p.previousBoundaryLoadProgress], ([e, t]) => {
|
|
3800
3803
|
f("boundary-load-progress", {
|
|
3801
3804
|
nextBoundaryLoadProgress: e,
|
|
3802
3805
|
previousBoundaryLoadProgress: t
|
|
3803
3806
|
});
|
|
3804
3807
|
}, { immediate: !0 }), (e, n) => (w(), s("div", Ti, [
|
|
3805
|
-
c("div", Ei, [c("span", Di, [c("span", Oi,
|
|
3808
|
+
c("div", Ei, [c("span", Di, [c("span", Oi, j(N(p).paginationLabel.value), 1), r.paginationDetail ? (w(), s("span", ki, j(r.paginationDetail), 1)) : o("", !0)])]),
|
|
3806
3809
|
c("div", {
|
|
3807
|
-
ref:
|
|
3810
|
+
ref: N(p).scrollViewportRef,
|
|
3808
3811
|
"data-testid": "vibe-list-scroll",
|
|
3809
3812
|
class: "h-full min-h-0 overflow-y-auto overflow-x-hidden [overflow-anchor:none] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
3810
|
-
onScroll: n[0] ||= (...e) =>
|
|
3811
|
-
onWheel: n[1] ||= (...e) =>
|
|
3813
|
+
onScroll: n[0] ||= (...e) => N(p).onScroll && N(p).onScroll(...e),
|
|
3814
|
+
onWheel: n[1] ||= (...e) => N(p).onWheel && N(p).onWheel(...e)
|
|
3812
3815
|
}, [c("div", {
|
|
3813
3816
|
"data-testid": "vibe-list-content",
|
|
3814
3817
|
class: "relative",
|
|
3815
|
-
style: b({ height: `${
|
|
3818
|
+
style: b({ height: `${N(p).containerHeight.value}px` })
|
|
3816
3819
|
}, [
|
|
3817
|
-
(w(!0), s(t, null,
|
|
3818
|
-
key:
|
|
3820
|
+
(w(!0), s(t, null, O(N(p).renderedItems.value, ({ item: t, index: n }) => (w(), s("article", {
|
|
3821
|
+
key: N($)(t),
|
|
3819
3822
|
"data-testid": "vibe-list-card",
|
|
3820
|
-
"data-active": n ===
|
|
3823
|
+
"data-active": n === N(p).resolvedActiveIndex.value ? "true" : "false",
|
|
3821
3824
|
"data-index": n,
|
|
3822
3825
|
"data-item-id": t.id,
|
|
3823
|
-
"data-occurrence-key":
|
|
3826
|
+
"data-occurrence-key": N($)(t),
|
|
3824
3827
|
class: "absolute will-change-transform",
|
|
3825
|
-
style: b(
|
|
3828
|
+
style: b(N(p).getCardStyle(n))
|
|
3826
3829
|
}, [u(wi, {
|
|
3827
|
-
active: n ===
|
|
3830
|
+
active: n === N(p).resolvedActiveIndex.value,
|
|
3828
3831
|
index: n,
|
|
3829
3832
|
item: t,
|
|
3830
3833
|
"report-asset-error": r.reportAssetError,
|
|
@@ -3833,11 +3836,11 @@ var pi = ["aria-label"], mi = {
|
|
|
3833
3836
|
onOpen: (e) => f("open-fullscreen", n)
|
|
3834
3837
|
}, l({ _: 2 }, [d["grid-item-overlay"] ? {
|
|
3835
3838
|
name: "grid-item-overlay",
|
|
3836
|
-
fn:
|
|
3839
|
+
fn: z((t) => [k(e.$slots, "grid-item-overlay", g({ ref_for: !0 }, t))]),
|
|
3837
3840
|
key: "0"
|
|
3838
3841
|
} : void 0, d["item-icon"] ? {
|
|
3839
3842
|
name: "item-icon",
|
|
3840
|
-
fn:
|
|
3843
|
+
fn: z((t) => [k(e.$slots, "item-icon", g({ ref_for: !0 }, t))]),
|
|
3841
3844
|
key: "1"
|
|
3842
3845
|
} : void 0]), 1032, [
|
|
3843
3846
|
"active",
|
|
@@ -3848,12 +3851,12 @@ var pi = ["aria-label"], mi = {
|
|
|
3848
3851
|
"surface-active",
|
|
3849
3852
|
"onOpen"
|
|
3850
3853
|
])], 12, Ai))), 128)),
|
|
3851
|
-
(w(!0), s(t, null,
|
|
3852
|
-
key: `leaving-${
|
|
3854
|
+
(w(!0), s(t, null, O(N(p).leavingItems.value, (t) => (w(), s("article", {
|
|
3855
|
+
key: `leaving-${N($)(t.item)}`,
|
|
3853
3856
|
"data-testid": "vibe-list-card-leaving",
|
|
3854
3857
|
"data-item-id": t.item.id,
|
|
3855
3858
|
class: "pointer-events-none absolute z-[2] will-change-[opacity,transform]",
|
|
3856
|
-
style: b(
|
|
3859
|
+
style: b(N(p).getLeavingCardStyle(t.item))
|
|
3857
3860
|
}, [u(wi, {
|
|
3858
3861
|
active: !1,
|
|
3859
3862
|
index: -1,
|
|
@@ -3863,20 +3866,20 @@ var pi = ["aria-label"], mi = {
|
|
|
3863
3866
|
"surface-active": !1
|
|
3864
3867
|
}, l({ _: 2 }, [d["item-icon"] ? {
|
|
3865
3868
|
name: "item-icon",
|
|
3866
|
-
fn:
|
|
3869
|
+
fn: z((t) => [k(e.$slots, "item-icon", g({ ref_for: !0 }, t))]),
|
|
3867
3870
|
key: "0"
|
|
3868
3871
|
} : void 0]), 1032, [
|
|
3869
3872
|
"item",
|
|
3870
3873
|
"report-asset-error",
|
|
3871
3874
|
"report-asset-load"
|
|
3872
3875
|
])], 12, ji))), 128)),
|
|
3873
|
-
|
|
3876
|
+
N(A) && N(T) ? (w(), a(Cn, {
|
|
3874
3877
|
key: 0,
|
|
3875
|
-
message:
|
|
3876
|
-
mode:
|
|
3877
|
-
surface:
|
|
3878
|
+
message: N(T).message,
|
|
3879
|
+
mode: N(T).mode,
|
|
3880
|
+
surface: N(T).surface
|
|
3878
3881
|
}, {
|
|
3879
|
-
default:
|
|
3882
|
+
default: z(() => [N(D) ? k(e.$slots, "empty-state", y(g({ key: 0 }, N(T)))) : o("", !0)]),
|
|
3880
3883
|
_: 3
|
|
3881
3884
|
}, 8, [
|
|
3882
3885
|
"message",
|
|
@@ -3884,28 +3887,28 @@ var pi = ["aria-label"], mi = {
|
|
|
3884
3887
|
"surface"
|
|
3885
3888
|
])) : o("", !0)
|
|
3886
3889
|
], 4)], 544),
|
|
3887
|
-
|
|
3890
|
+
N(p).showScrollbar.value ? (w(), s("div", Mi, [n[2] ||= c("div", { class: "absolute bottom-6 right-3 top-6 w-px bg-white/8" }, null, -1), c("div", {
|
|
3888
3891
|
"data-testid": "vibe-list-scrollbar-thumb",
|
|
3889
3892
|
class: v(["absolute right-[0.625rem] w-1 bg-white/34 transition-[height,transform,background-color,opacity] duration-300 ease-out", r.loading ? "bg-white/52" : "bg-white/34"]),
|
|
3890
|
-
style: b(
|
|
3893
|
+
style: b(N(p).getScrollbarThumbStyle())
|
|
3891
3894
|
}, null, 6)])) : o("", !0),
|
|
3892
|
-
d["grid-footer"] ? (w(), s("div", Ni, [c("div", Pi, [
|
|
3895
|
+
d["grid-footer"] ? (w(), s("div", Ni, [c("div", Pi, [k(e.$slots, "grid-footer")])])) : o("", !0),
|
|
3893
3896
|
_.value ? (w(), s("div", {
|
|
3894
3897
|
key: 2,
|
|
3895
3898
|
class: v(["pointer-events-none absolute inset-x-0 bottom-0 z-[3] flex justify-center px-6", d["grid-footer"] ? "pb-24" : "pb-6"])
|
|
3896
|
-
}, [S.value ?
|
|
3899
|
+
}, [S.value ? k(e.$slots, "grid-status", y(g({ key: 0 }, _.value))) : (w(), s("span", {
|
|
3897
3900
|
key: 1,
|
|
3898
3901
|
"data-testid": "vibe-grid-status-badge",
|
|
3899
3902
|
class: v(["inline-flex items-center border border-white/14 bg-black/55 px-4 py-3 text-[0.7rem] font-bold uppercase tracking-[0.18em] text-[#f7f1ea]/72 backdrop-blur-[18px]", _.value.kind === "end" ? "border-amber-300/35 text-amber-200" : _.value.kind === "failed" ? "border-rose-400/45 text-rose-100" : ""])
|
|
3900
|
-
},
|
|
3901
|
-
|
|
3903
|
+
}, j(_.value.message), 3))], 2)) : o("", !0),
|
|
3904
|
+
N(E) && N(T) ? (w(), a(Cn, {
|
|
3902
3905
|
key: 3,
|
|
3903
3906
|
class: v(["z-[3]", d["grid-footer"] ? "pb-24" : "pb-6"]),
|
|
3904
|
-
message:
|
|
3905
|
-
mode:
|
|
3906
|
-
surface:
|
|
3907
|
+
message: N(T).message,
|
|
3908
|
+
mode: N(T).mode,
|
|
3909
|
+
surface: N(T).surface
|
|
3907
3910
|
}, {
|
|
3908
|
-
default:
|
|
3911
|
+
default: z(() => [N(D) ? k(e.$slots, "empty-state", y(g({ key: 0 }, N(T)))) : o("", !0)]),
|
|
3909
3912
|
_: 3
|
|
3910
3913
|
}, 8, [
|
|
3911
3914
|
"class",
|
|
@@ -3946,9 +3949,9 @@ var pi = ["aria-label"], mi = {
|
|
|
3946
3949
|
"update:surfaceMode"
|
|
3947
3950
|
],
|
|
3948
3951
|
setup(e, { expose: n, emit: i }) {
|
|
3949
|
-
let d = e, f =
|
|
3952
|
+
let d = e, f = F(), m = i, h = Ye(d, m), g = fe((e) => {
|
|
3950
3953
|
m("asset-errors", e);
|
|
3951
|
-
}), _ =
|
|
3954
|
+
}), _ = Z((e) => {
|
|
3952
3955
|
m("asset-loads", e);
|
|
3953
3956
|
});
|
|
3954
3957
|
return x(() => {
|
|
@@ -3968,14 +3971,14 @@ var pi = ["aria-label"], mi = {
|
|
|
3968
3971
|
unlockPageLoading: h.unlockPageLoading
|
|
3969
3972
|
}), (e, n) => (w(), s("section", {
|
|
3970
3973
|
"data-testid": "vibe",
|
|
3971
|
-
"data-surface-mode":
|
|
3974
|
+
"data-surface-mode": N(h).surfaceMode.value,
|
|
3972
3975
|
class: "relative h-full min-h-0 overflow-hidden bg-[#05060a] text-[#f7f1ea]"
|
|
3973
|
-
}, [
|
|
3976
|
+
}, [N(h).canRetryInitialLoad.value ? (w(), s("button", {
|
|
3974
3977
|
key: 0,
|
|
3975
3978
|
type: "button",
|
|
3976
3979
|
class: "absolute left-5 top-5 z-30 inline-flex items-center border border-rose-400/55 bg-rose-500/18 px-4 py-2 text-xs font-medium uppercase tracking-[0.24em] text-white backdrop-blur transition hover:bg-rose-500/28",
|
|
3977
|
-
onClick: n[0] ||= (...e) =>
|
|
3978
|
-
}, " Retry ")) :
|
|
3980
|
+
onClick: n[0] ||= (...e) => N(h).retryInitialLoad && N(h).retryInitialLoad(...e)
|
|
3981
|
+
}, " Retry ")) : N(h).errorMessage.value && N(h).items.value.length > 0 ? (w(), s("div", Li, j(N(h).errorMessage.value), 1)) : o("", !0), N(h).isDesktop.value ? (w(), s(t, { key: 2 }, [u(r, {
|
|
3979
3982
|
appear: "",
|
|
3980
3983
|
"enter-active-class": "transition-[opacity,transform] duration-300 ease-out",
|
|
3981
3984
|
"enter-from-class": "translate-y-3 opacity-0",
|
|
@@ -3984,57 +3987,57 @@ var pi = ["aria-label"], mi = {
|
|
|
3984
3987
|
"leave-from-class": "translate-y-0 opacity-100",
|
|
3985
3988
|
"leave-to-class": "translate-y-3 opacity-0"
|
|
3986
3989
|
}, {
|
|
3987
|
-
default:
|
|
3990
|
+
default: z(() => [B(c("div", {
|
|
3988
3991
|
"data-testid": "vibe-list-surface",
|
|
3989
|
-
"data-visible":
|
|
3990
|
-
inert:
|
|
3992
|
+
"data-visible": N(h).surfaceMode.value === "list" ? "true" : "false",
|
|
3993
|
+
inert: N(h).surfaceMode.value !== "list",
|
|
3991
3994
|
class: "absolute inset-0 z-[2]"
|
|
3992
3995
|
}, [u(Fi, {
|
|
3993
|
-
active:
|
|
3994
|
-
"allow-exhausted-next-page-refresh":
|
|
3995
|
-
items:
|
|
3996
|
-
"active-index":
|
|
3997
|
-
"error-message":
|
|
3998
|
-
loading:
|
|
3999
|
-
"has-next-page":
|
|
4000
|
-
"has-previous-page":
|
|
4001
|
-
"pending-append-items":
|
|
4002
|
-
phase:
|
|
4003
|
-
"commit-pending-append":
|
|
4004
|
-
"pagination-detail":
|
|
4005
|
-
"report-asset-error":
|
|
4006
|
-
"report-asset-load":
|
|
4007
|
-
"request-next-page":
|
|
4008
|
-
"request-previous-page":
|
|
3996
|
+
active: N(h).surfaceMode.value === "list",
|
|
3997
|
+
"allow-exhausted-next-page-refresh": N(h).canRefreshExhaustedNextPage.value,
|
|
3998
|
+
items: N(h).items.value,
|
|
3999
|
+
"active-index": N(h).activeIndex.value,
|
|
4000
|
+
"error-message": N(h).errorMessage.value,
|
|
4001
|
+
loading: N(h).loading.value,
|
|
4002
|
+
"has-next-page": N(h).hasNextPage.value,
|
|
4003
|
+
"has-previous-page": N(h).hasPreviousPage.value,
|
|
4004
|
+
"pending-append-items": N(h).pendingAppendItems.value,
|
|
4005
|
+
phase: N(h).phase.value,
|
|
4006
|
+
"commit-pending-append": N(h).commitPendingAppend,
|
|
4007
|
+
"pagination-detail": N(h).paginationDetail.value,
|
|
4008
|
+
"report-asset-error": N(g).report,
|
|
4009
|
+
"report-asset-load": N(_).report,
|
|
4010
|
+
"request-next-page": N(h).prefetchNextPage,
|
|
4011
|
+
"request-previous-page": N(h).prefetchPreviousPage,
|
|
4009
4012
|
"empty-state-mode": d.emptyStateMode,
|
|
4010
4013
|
"show-status-badges": d.showStatusBadges ?? !0,
|
|
4011
|
-
onBoundaryLoadProgress:
|
|
4012
|
-
onOpenFullscreen:
|
|
4013
|
-
"onUpdate:activeIndex":
|
|
4014
|
+
onBoundaryLoadProgress: N(h).setBoundaryLoadProgress,
|
|
4015
|
+
onOpenFullscreen: N(h).openFullscreen,
|
|
4016
|
+
"onUpdate:activeIndex": N(h).setActiveIndex
|
|
4014
4017
|
}, l({ _: 2 }, [
|
|
4015
4018
|
f["empty-state"] ? {
|
|
4016
4019
|
name: "empty-state",
|
|
4017
|
-
fn:
|
|
4020
|
+
fn: z((t) => [k(e.$slots, "empty-state", y(p(t)))]),
|
|
4018
4021
|
key: "0"
|
|
4019
4022
|
} : void 0,
|
|
4020
4023
|
f["grid-footer"] ? {
|
|
4021
4024
|
name: "grid-footer",
|
|
4022
|
-
fn:
|
|
4025
|
+
fn: z(() => [k(e.$slots, "grid-footer")]),
|
|
4023
4026
|
key: "1"
|
|
4024
4027
|
} : void 0,
|
|
4025
4028
|
f["grid-item-overlay"] ? {
|
|
4026
4029
|
name: "grid-item-overlay",
|
|
4027
|
-
fn:
|
|
4030
|
+
fn: z((t) => [k(e.$slots, "grid-item-overlay", y(p(t)))]),
|
|
4028
4031
|
key: "2"
|
|
4029
4032
|
} : void 0,
|
|
4030
4033
|
f["grid-status"] ? {
|
|
4031
4034
|
name: "grid-status",
|
|
4032
|
-
fn:
|
|
4035
|
+
fn: z((t) => [k(e.$slots, "grid-status", y(p(t)))]),
|
|
4033
4036
|
key: "3"
|
|
4034
4037
|
} : void 0,
|
|
4035
4038
|
f["item-icon"] ? {
|
|
4036
4039
|
name: "item-icon",
|
|
4037
|
-
fn:
|
|
4040
|
+
fn: z((t) => [k(e.$slots, "item-icon", y(p(t)))]),
|
|
4038
4041
|
key: "4"
|
|
4039
4042
|
} : void 0
|
|
4040
4043
|
]), 1032, [
|
|
@@ -4059,7 +4062,7 @@ var pi = ["aria-label"], mi = {
|
|
|
4059
4062
|
"onBoundaryLoadProgress",
|
|
4060
4063
|
"onOpenFullscreen",
|
|
4061
4064
|
"onUpdate:activeIndex"
|
|
4062
|
-
])], 8, Ri), [[
|
|
4065
|
+
])], 8, Ri), [[I, N(h).surfaceMode.value === "list"]])]),
|
|
4063
4066
|
_: 3
|
|
4064
4067
|
}), u(r, {
|
|
4065
4068
|
appear: "",
|
|
@@ -4070,59 +4073,59 @@ var pi = ["aria-label"], mi = {
|
|
|
4070
4073
|
"leave-from-class": "translate-y-0 opacity-100",
|
|
4071
4074
|
"leave-to-class": "-translate-y-3 opacity-0"
|
|
4072
4075
|
}, {
|
|
4073
|
-
default:
|
|
4076
|
+
default: z(() => [B(c("div", {
|
|
4074
4077
|
"data-testid": "vibe-fullscreen-surface",
|
|
4075
|
-
"data-visible":
|
|
4076
|
-
inert:
|
|
4078
|
+
"data-visible": N(h).surfaceMode.value === "fullscreen" ? "true" : "false",
|
|
4079
|
+
inert: N(h).surfaceMode.value !== "fullscreen",
|
|
4077
4080
|
class: "absolute inset-0 z-[3]"
|
|
4078
4081
|
}, [u(ar, {
|
|
4079
|
-
items:
|
|
4080
|
-
active:
|
|
4081
|
-
"active-index":
|
|
4082
|
-
"error-message":
|
|
4083
|
-
loading:
|
|
4084
|
-
"has-next-page":
|
|
4085
|
-
"pagination-detail":
|
|
4086
|
-
phase:
|
|
4087
|
-
"report-asset-error":
|
|
4088
|
-
"report-asset-load":
|
|
4082
|
+
items: N(h).items.value,
|
|
4083
|
+
active: N(h).surfaceMode.value === "fullscreen",
|
|
4084
|
+
"active-index": N(h).activeIndex.value,
|
|
4085
|
+
"error-message": N(h).errorMessage.value,
|
|
4086
|
+
loading: N(h).loading.value,
|
|
4087
|
+
"has-next-page": N(h).hasNextPage.value,
|
|
4088
|
+
"pagination-detail": N(h).paginationDetail.value,
|
|
4089
|
+
phase: N(h).phase.value,
|
|
4090
|
+
"report-asset-error": N(g).report,
|
|
4091
|
+
"report-asset-load": N(_).report,
|
|
4089
4092
|
"empty-state-mode": d.emptyStateMode,
|
|
4090
4093
|
"loop-fullscreen-video": d.loopFullscreenVideo ?? !0,
|
|
4091
4094
|
"show-dominant-image-tone": d.showDominantImageTone ?? !0,
|
|
4092
4095
|
"show-end-badge": d.showEndBadge ?? !0,
|
|
4093
4096
|
"show-status-badges": d.showStatusBadges ?? !0,
|
|
4094
|
-
"show-back-to-list":
|
|
4095
|
-
onBackToList:
|
|
4096
|
-
"onUpdate:activeIndex":
|
|
4097
|
+
"show-back-to-list": N(h).showBackToList.value,
|
|
4098
|
+
onBackToList: N(h).returnToList,
|
|
4099
|
+
"onUpdate:activeIndex": N(h).setActiveIndex
|
|
4097
4100
|
}, l({ _: 2 }, [
|
|
4098
4101
|
f["empty-state"] ? {
|
|
4099
4102
|
name: "empty-state",
|
|
4100
|
-
fn:
|
|
4103
|
+
fn: z((t) => [k(e.$slots, "empty-state", y(p(t)))]),
|
|
4101
4104
|
key: "0"
|
|
4102
4105
|
} : void 0,
|
|
4103
4106
|
f["fullscreen-overlay"] ? {
|
|
4104
4107
|
name: "fullscreen-overlay",
|
|
4105
|
-
fn:
|
|
4108
|
+
fn: z((t) => [k(e.$slots, "fullscreen-overlay", y(p(t)))]),
|
|
4106
4109
|
key: "1"
|
|
4107
4110
|
} : void 0,
|
|
4108
4111
|
f["fullscreen-aside"] ? {
|
|
4109
4112
|
name: "fullscreen-aside",
|
|
4110
|
-
fn:
|
|
4113
|
+
fn: z((t) => [k(e.$slots, "fullscreen-aside", y(p(t)))]),
|
|
4111
4114
|
key: "2"
|
|
4112
4115
|
} : void 0,
|
|
4113
4116
|
f["fullscreen-header-actions"] ? {
|
|
4114
4117
|
name: "fullscreen-header-actions",
|
|
4115
|
-
fn:
|
|
4118
|
+
fn: z((t) => [k(e.$slots, "fullscreen-header-actions", y(p(t)))]),
|
|
4116
4119
|
key: "3"
|
|
4117
4120
|
} : void 0,
|
|
4118
4121
|
f["fullscreen-status"] ? {
|
|
4119
4122
|
name: "fullscreen-status",
|
|
4120
|
-
fn:
|
|
4123
|
+
fn: z((t) => [k(e.$slots, "fullscreen-status", y(p(t)))]),
|
|
4121
4124
|
key: "4"
|
|
4122
4125
|
} : void 0,
|
|
4123
4126
|
f["item-icon"] ? {
|
|
4124
4127
|
name: "item-icon",
|
|
4125
|
-
fn:
|
|
4128
|
+
fn: z((t) => [k(e.$slots, "item-icon", y(p(t)))]),
|
|
4126
4129
|
key: "5"
|
|
4127
4130
|
} : void 0
|
|
4128
4131
|
]), 1032, [
|
|
@@ -4144,60 +4147,60 @@ var pi = ["aria-label"], mi = {
|
|
|
4144
4147
|
"show-back-to-list",
|
|
4145
4148
|
"onBackToList",
|
|
4146
4149
|
"onUpdate:activeIndex"
|
|
4147
|
-
])], 8, zi), [[
|
|
4150
|
+
])], 8, zi), [[I, N(h).surfaceMode.value === "fullscreen"]])]),
|
|
4148
4151
|
_: 3
|
|
4149
|
-
})], 64)) :
|
|
4152
|
+
})], 64)) : N(h).items.value.length === 0 && N(h).loading.value ? (w(), s("div", Bi, [u(N(oe), {
|
|
4150
4153
|
class: "size-10 animate-spin text-[#f7f1ea]/82",
|
|
4151
4154
|
"aria-hidden": "true"
|
|
4152
4155
|
}), n[1] ||= c("p", { class: "m-0 text-[0.9rem] font-semibold uppercase tracking-[0.22em] text-[#f7f1ea]/72" }, " Loading... ", -1)])) : (w(), a(ar, {
|
|
4153
4156
|
key: 4,
|
|
4154
|
-
items:
|
|
4157
|
+
items: N(h).items.value,
|
|
4155
4158
|
active: !0,
|
|
4156
|
-
"active-index":
|
|
4157
|
-
"error-message":
|
|
4158
|
-
loading:
|
|
4159
|
-
"has-next-page":
|
|
4160
|
-
"pagination-detail":
|
|
4161
|
-
phase:
|
|
4162
|
-
"report-asset-error":
|
|
4163
|
-
"report-asset-load":
|
|
4159
|
+
"active-index": N(h).activeIndex.value,
|
|
4160
|
+
"error-message": N(h).errorMessage.value,
|
|
4161
|
+
loading: N(h).loading.value,
|
|
4162
|
+
"has-next-page": N(h).hasNextPage.value,
|
|
4163
|
+
"pagination-detail": N(h).paginationDetail.value,
|
|
4164
|
+
phase: N(h).phase.value,
|
|
4165
|
+
"report-asset-error": N(g).report,
|
|
4166
|
+
"report-asset-load": N(_).report,
|
|
4164
4167
|
"empty-state-mode": d.emptyStateMode,
|
|
4165
4168
|
"loop-fullscreen-video": d.loopFullscreenVideo ?? !0,
|
|
4166
4169
|
"show-dominant-image-tone": d.showDominantImageTone ?? !0,
|
|
4167
4170
|
"show-end-badge": d.showEndBadge ?? !0,
|
|
4168
4171
|
"show-status-badges": d.showStatusBadges ?? !0,
|
|
4169
4172
|
"show-back-to-list": !1,
|
|
4170
|
-
onBackToList:
|
|
4171
|
-
"onUpdate:activeIndex":
|
|
4173
|
+
onBackToList: N(h).returnToList,
|
|
4174
|
+
"onUpdate:activeIndex": N(h).setActiveIndex
|
|
4172
4175
|
}, l({ _: 2 }, [
|
|
4173
4176
|
f["empty-state"] ? {
|
|
4174
4177
|
name: "empty-state",
|
|
4175
|
-
fn:
|
|
4178
|
+
fn: z((t) => [k(e.$slots, "empty-state", y(p(t)))]),
|
|
4176
4179
|
key: "0"
|
|
4177
4180
|
} : void 0,
|
|
4178
4181
|
f["fullscreen-overlay"] ? {
|
|
4179
4182
|
name: "fullscreen-overlay",
|
|
4180
|
-
fn:
|
|
4183
|
+
fn: z((t) => [k(e.$slots, "fullscreen-overlay", y(p(t)))]),
|
|
4181
4184
|
key: "1"
|
|
4182
4185
|
} : void 0,
|
|
4183
4186
|
f["fullscreen-aside"] ? {
|
|
4184
4187
|
name: "fullscreen-aside",
|
|
4185
|
-
fn:
|
|
4188
|
+
fn: z((t) => [k(e.$slots, "fullscreen-aside", y(p(t)))]),
|
|
4186
4189
|
key: "2"
|
|
4187
4190
|
} : void 0,
|
|
4188
4191
|
f["fullscreen-header-actions"] ? {
|
|
4189
4192
|
name: "fullscreen-header-actions",
|
|
4190
|
-
fn:
|
|
4193
|
+
fn: z((t) => [k(e.$slots, "fullscreen-header-actions", y(p(t)))]),
|
|
4191
4194
|
key: "3"
|
|
4192
4195
|
} : void 0,
|
|
4193
4196
|
f["fullscreen-status"] ? {
|
|
4194
4197
|
name: "fullscreen-status",
|
|
4195
|
-
fn:
|
|
4198
|
+
fn: z((t) => [k(e.$slots, "fullscreen-status", y(p(t)))]),
|
|
4196
4199
|
key: "4"
|
|
4197
4200
|
} : void 0,
|
|
4198
4201
|
f["item-icon"] ? {
|
|
4199
4202
|
name: "item-icon",
|
|
4200
|
-
fn:
|
|
4203
|
+
fn: z((t) => [k(e.$slots, "item-icon", y(p(t)))]),
|
|
4201
4204
|
key: "5"
|
|
4202
4205
|
} : void 0
|
|
4203
4206
|
]), 1032, [
|