@livo-tv/blocks 1.1.0 → 1.3.0
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 +23 -0
- package/dist/index.cjs +630 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.js +568 -70
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as React7 from 'react';
|
|
3
3
|
import { createContext, useContext, useState, useRef, useId, useEffect, useCallback, useLayoutEffect } from 'react';
|
|
4
4
|
import { Loader2, AlertTriangle, Inbox, Monitor, Sun, Moon, Languages, Upload, Move, ZoomOut, ZoomIn, RotateCcw, RotateCw, Grid3X3, RefreshCw, X, User, Pencil, Check, Play, AlertCircle, VolumeX, Pause, Volume1, Volume2, Settings, Cast, PictureInPicture2, Minimize, Maximize, XIcon } from 'lucide-react';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
@@ -1196,7 +1196,7 @@ function Slider({
|
|
|
1196
1196
|
max = 100,
|
|
1197
1197
|
...props
|
|
1198
1198
|
}) {
|
|
1199
|
-
const _values =
|
|
1199
|
+
const _values = React7.useMemo(
|
|
1200
1200
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
1201
1201
|
[value, defaultValue, min, max]
|
|
1202
1202
|
);
|
|
@@ -2233,8 +2233,8 @@ function AvatarEditorDialog({
|
|
|
2233
2233
|
] });
|
|
2234
2234
|
}
|
|
2235
2235
|
function usePrefersReducedMotion() {
|
|
2236
|
-
const [reduced, setReduced] =
|
|
2237
|
-
|
|
2236
|
+
const [reduced, setReduced] = React7.useState(false);
|
|
2237
|
+
React7.useEffect(() => {
|
|
2238
2238
|
const media = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2239
2239
|
const sync = () => setReduced(media.matches);
|
|
2240
2240
|
sync();
|
|
@@ -2288,6 +2288,516 @@ function CurtainStage({
|
|
|
2288
2288
|
}
|
|
2289
2289
|
);
|
|
2290
2290
|
}
|
|
2291
|
+
function useMediaQuery2(query) {
|
|
2292
|
+
const [matches, setMatches] = useState(false);
|
|
2293
|
+
useEffect(() => {
|
|
2294
|
+
if (typeof window === "undefined" || !window.matchMedia) return;
|
|
2295
|
+
const mql = window.matchMedia(query);
|
|
2296
|
+
const onChange = () => setMatches(mql.matches);
|
|
2297
|
+
onChange();
|
|
2298
|
+
mql.addEventListener("change", onChange);
|
|
2299
|
+
return () => mql.removeEventListener("change", onChange);
|
|
2300
|
+
}, [query]);
|
|
2301
|
+
return matches;
|
|
2302
|
+
}
|
|
2303
|
+
function isVideoKind(kind) {
|
|
2304
|
+
return kind === "video";
|
|
2305
|
+
}
|
|
2306
|
+
function useElementInView(enabled) {
|
|
2307
|
+
const [node, setNode] = React7.useState(null);
|
|
2308
|
+
const [inView, setInView] = React7.useState(false);
|
|
2309
|
+
React7.useEffect(() => {
|
|
2310
|
+
if (!enabled || !node || typeof IntersectionObserver === "undefined") {
|
|
2311
|
+
setInView(false);
|
|
2312
|
+
return;
|
|
2313
|
+
}
|
|
2314
|
+
const observer = new IntersectionObserver(
|
|
2315
|
+
(entries) => {
|
|
2316
|
+
const entry = entries[0];
|
|
2317
|
+
setInView(Boolean(entry?.isIntersecting));
|
|
2318
|
+
},
|
|
2319
|
+
{ threshold: 0.35, rootMargin: "32px" }
|
|
2320
|
+
);
|
|
2321
|
+
observer.observe(node);
|
|
2322
|
+
return () => observer.disconnect();
|
|
2323
|
+
}, [enabled, node]);
|
|
2324
|
+
return [setNode, inView];
|
|
2325
|
+
}
|
|
2326
|
+
function CurtainPreview({
|
|
2327
|
+
kind,
|
|
2328
|
+
url,
|
|
2329
|
+
alt = "",
|
|
2330
|
+
className,
|
|
2331
|
+
playWhenVisible = true,
|
|
2332
|
+
frozen = false
|
|
2333
|
+
}) {
|
|
2334
|
+
const prefersReduced = useMediaQuery2("(prefers-reduced-motion: reduce)");
|
|
2335
|
+
const video = isVideoKind(kind);
|
|
2336
|
+
const observe = !frozen && playWhenVisible && video && !prefersReduced;
|
|
2337
|
+
const [setNode, inView] = useElementInView(observe);
|
|
2338
|
+
const shouldPlay = !frozen && video && !prefersReduced && (!playWhenVisible || inView);
|
|
2339
|
+
if (!url) {
|
|
2340
|
+
return /* @__PURE__ */ jsx(
|
|
2341
|
+
"div",
|
|
2342
|
+
{
|
|
2343
|
+
ref: setNode,
|
|
2344
|
+
className: cn("aspect-video rounded-md bg-skeleton", className),
|
|
2345
|
+
"aria-hidden": "true"
|
|
2346
|
+
}
|
|
2347
|
+
);
|
|
2348
|
+
}
|
|
2349
|
+
const stageKind = video ? "video" : "image";
|
|
2350
|
+
return /* @__PURE__ */ jsx(
|
|
2351
|
+
"div",
|
|
2352
|
+
{
|
|
2353
|
+
ref: setNode,
|
|
2354
|
+
className: cn(
|
|
2355
|
+
"aspect-video overflow-hidden rounded-md bg-black",
|
|
2356
|
+
className
|
|
2357
|
+
),
|
|
2358
|
+
children: /* @__PURE__ */ jsx(
|
|
2359
|
+
CurtainStage,
|
|
2360
|
+
{
|
|
2361
|
+
kind: stageKind,
|
|
2362
|
+
url,
|
|
2363
|
+
alt,
|
|
2364
|
+
reducedMotion: !shouldPlay,
|
|
2365
|
+
className: "h-full w-full"
|
|
2366
|
+
}
|
|
2367
|
+
)
|
|
2368
|
+
}
|
|
2369
|
+
);
|
|
2370
|
+
}
|
|
2371
|
+
var DEFAULT_CURTAIN_PICKER_LABELS = {
|
|
2372
|
+
select: "Curtain",
|
|
2373
|
+
none: "None",
|
|
2374
|
+
noneDescription: "Use the default curtain",
|
|
2375
|
+
defaultBadge: "Default",
|
|
2376
|
+
makeDefault: "Set as default",
|
|
2377
|
+
delete: "Delete",
|
|
2378
|
+
image: "Image",
|
|
2379
|
+
video: "Video",
|
|
2380
|
+
organization: "Organization",
|
|
2381
|
+
platform: "Catalog",
|
|
2382
|
+
groupOrganization: "Your curtains",
|
|
2383
|
+
groupPlatform: "Catalog",
|
|
2384
|
+
groupOther: "Other",
|
|
2385
|
+
emptyTitle: "No curtains yet",
|
|
2386
|
+
emptyDescription: "Upload an image or a short looping video."
|
|
2387
|
+
};
|
|
2388
|
+
var OWNER_GROUPS = [
|
|
2389
|
+
"organization",
|
|
2390
|
+
"platform",
|
|
2391
|
+
"other"
|
|
2392
|
+
];
|
|
2393
|
+
function ownerGroup(ownerType) {
|
|
2394
|
+
switch (ownerType) {
|
|
2395
|
+
case "organization":
|
|
2396
|
+
return "organization";
|
|
2397
|
+
case "platform":
|
|
2398
|
+
return "platform";
|
|
2399
|
+
default:
|
|
2400
|
+
return "other";
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
function kindLabel(kind, copy) {
|
|
2404
|
+
return kind === "video" ? copy.video : copy.image;
|
|
2405
|
+
}
|
|
2406
|
+
function ownerLabel(ownerType, copy) {
|
|
2407
|
+
if (ownerType === "organization") return copy.organization;
|
|
2408
|
+
if (ownerType === "platform") return copy.platform;
|
|
2409
|
+
return null;
|
|
2410
|
+
}
|
|
2411
|
+
function groupHeading(group, copy) {
|
|
2412
|
+
const headings = {
|
|
2413
|
+
organization: copy.groupOrganization,
|
|
2414
|
+
platform: copy.groupPlatform,
|
|
2415
|
+
other: copy.groupOther
|
|
2416
|
+
};
|
|
2417
|
+
return headings[group];
|
|
2418
|
+
}
|
|
2419
|
+
function gridClass(variant) {
|
|
2420
|
+
return variant === "compact" ? "grid grid-cols-3 gap-2 sm:grid-cols-4 lg:grid-cols-6" : "grid gap-4 sm:grid-cols-2 lg:grid-cols-3";
|
|
2421
|
+
}
|
|
2422
|
+
function selectionRing(selectable) {
|
|
2423
|
+
return selectable && "has-[:checked]:ring-ring has-[:checked]:ring-2 has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-2";
|
|
2424
|
+
}
|
|
2425
|
+
function resolvePreviewItem(selectedId, ready, allowNone) {
|
|
2426
|
+
if (selectedId) {
|
|
2427
|
+
return ready.find((curtain) => curtain.id === selectedId) ?? ready[0] ?? null;
|
|
2428
|
+
}
|
|
2429
|
+
if (allowNone) return null;
|
|
2430
|
+
return ready[0] ?? null;
|
|
2431
|
+
}
|
|
2432
|
+
function itemActions(item, onMakeDefault, onDelete, canMakeDefault, canDelete) {
|
|
2433
|
+
if (!item) return {};
|
|
2434
|
+
return {
|
|
2435
|
+
onMakeDefault: onMakeDefault && (canMakeDefault ? canMakeDefault(item) : !item.isDefault) ? () => onMakeDefault(item) : void 0,
|
|
2436
|
+
onDelete: onDelete && (canDelete ? canDelete(item) : true) ? () => onDelete(item) : void 0
|
|
2437
|
+
};
|
|
2438
|
+
}
|
|
2439
|
+
function CurtainPickerSkeleton({
|
|
2440
|
+
count = 6,
|
|
2441
|
+
variant = "default",
|
|
2442
|
+
className
|
|
2443
|
+
}) {
|
|
2444
|
+
if (variant === "compact") {
|
|
2445
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("space-y-4", className), "aria-hidden": "true", children: [
|
|
2446
|
+
/* @__PURE__ */ jsxs("div", { className: "max-w-sm space-y-3", children: [
|
|
2447
|
+
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-md bg-skeleton" }),
|
|
2448
|
+
/* @__PURE__ */ jsx("div", { className: "h-4 w-2/3 rounded bg-skeleton" }),
|
|
2449
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-1/2 rounded bg-skeleton" })
|
|
2450
|
+
] }),
|
|
2451
|
+
/* @__PURE__ */ jsx("ul", { className: gridClass("compact"), children: Array.from({ length: count }, (_, index) => /* @__PURE__ */ jsxs("li", { className: "space-y-1.5 rounded-lg border p-1.5", children: [
|
|
2452
|
+
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-md bg-skeleton" }),
|
|
2453
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-3/4 rounded bg-skeleton" })
|
|
2454
|
+
] }, index)) })
|
|
2455
|
+
] });
|
|
2456
|
+
}
|
|
2457
|
+
return /* @__PURE__ */ jsx("ul", { className: cn(gridClass(variant), className), "aria-hidden": "true", children: Array.from({ length: count }, (_, index) => /* @__PURE__ */ jsxs("li", { className: "space-y-3 rounded-xl border p-4", children: [
|
|
2458
|
+
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-md bg-skeleton" }),
|
|
2459
|
+
/* @__PURE__ */ jsx("div", { className: "h-4 w-2/3 rounded bg-skeleton" }),
|
|
2460
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-1/3 rounded bg-skeleton" })
|
|
2461
|
+
] }, index)) });
|
|
2462
|
+
}
|
|
2463
|
+
function CurtainPicker({
|
|
2464
|
+
curtains,
|
|
2465
|
+
value = null,
|
|
2466
|
+
onChange,
|
|
2467
|
+
allowNone = false,
|
|
2468
|
+
disabled = false,
|
|
2469
|
+
variant = "default",
|
|
2470
|
+
groupByOwner = false,
|
|
2471
|
+
onMakeDefault,
|
|
2472
|
+
onDelete,
|
|
2473
|
+
canMakeDefault,
|
|
2474
|
+
canDelete,
|
|
2475
|
+
labels,
|
|
2476
|
+
emptyAction,
|
|
2477
|
+
className,
|
|
2478
|
+
actionsPending = false
|
|
2479
|
+
}) {
|
|
2480
|
+
const copy = { ...DEFAULT_CURTAIN_PICKER_LABELS, ...labels };
|
|
2481
|
+
const groupName = React7.useId();
|
|
2482
|
+
const selectable = typeof onChange === "function";
|
|
2483
|
+
const compact = variant === "compact";
|
|
2484
|
+
const selectedId = value === "" ? null : value ?? null;
|
|
2485
|
+
const ready = curtains.filter((curtain) => curtain.publicUrl);
|
|
2486
|
+
const showEmpty = ready.length === 0 && !allowNone;
|
|
2487
|
+
const previewItem = resolvePreviewItem(selectedId, ready, allowNone);
|
|
2488
|
+
const selectedItem = selectedId ? ready.find((curtain) => curtain.id === selectedId) ?? null : null;
|
|
2489
|
+
const actionTarget = selectedItem ?? (!selectable ? previewItem : null);
|
|
2490
|
+
const compactActions = compact ? itemActions(
|
|
2491
|
+
actionTarget,
|
|
2492
|
+
onMakeDefault,
|
|
2493
|
+
onDelete,
|
|
2494
|
+
canMakeDefault,
|
|
2495
|
+
canDelete
|
|
2496
|
+
) : {};
|
|
2497
|
+
const grouped = React7.useMemo(() => {
|
|
2498
|
+
if (!groupByOwner) {
|
|
2499
|
+
return [{ group: null, items: ready }];
|
|
2500
|
+
}
|
|
2501
|
+
return OWNER_GROUPS.map((group) => ({
|
|
2502
|
+
group,
|
|
2503
|
+
items: ready.filter((curtain) => ownerGroup(curtain.ownerType) === group)
|
|
2504
|
+
})).filter((section) => section.items.length > 0);
|
|
2505
|
+
}, [groupByOwner, ready]);
|
|
2506
|
+
if (showEmpty) {
|
|
2507
|
+
return /* @__PURE__ */ jsx(
|
|
2508
|
+
EmptyState,
|
|
2509
|
+
{
|
|
2510
|
+
title: copy.emptyTitle,
|
|
2511
|
+
description: copy.emptyDescription,
|
|
2512
|
+
action: emptyAction,
|
|
2513
|
+
className
|
|
2514
|
+
}
|
|
2515
|
+
);
|
|
2516
|
+
}
|
|
2517
|
+
const noneTile = allowNone && selectable ? /* @__PURE__ */ jsx(
|
|
2518
|
+
NoneTile,
|
|
2519
|
+
{
|
|
2520
|
+
name: groupName,
|
|
2521
|
+
checked: selectedId === null,
|
|
2522
|
+
disabled,
|
|
2523
|
+
copy,
|
|
2524
|
+
compact,
|
|
2525
|
+
onSelect: () => onChange(null)
|
|
2526
|
+
}
|
|
2527
|
+
) : null;
|
|
2528
|
+
const sections = grouped.length === 0 && noneTile ? [{ group: null, items: [] }] : grouped;
|
|
2529
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(compact ? "space-y-4" : "space-y-6", className), children: [
|
|
2530
|
+
compact ? /* @__PURE__ */ jsx(
|
|
2531
|
+
SelectedPreview,
|
|
2532
|
+
{
|
|
2533
|
+
item: previewItem,
|
|
2534
|
+
copy,
|
|
2535
|
+
disabled,
|
|
2536
|
+
actionsPending,
|
|
2537
|
+
onMakeDefault: compactActions.onMakeDefault,
|
|
2538
|
+
onDelete: compactActions.onDelete
|
|
2539
|
+
}
|
|
2540
|
+
) : null,
|
|
2541
|
+
sections.map((section, index) => /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
|
|
2542
|
+
section.group ? /* @__PURE__ */ jsx("h3", { className: "text-muted-foreground text-sm font-medium", children: groupHeading(section.group, copy) }) : null,
|
|
2543
|
+
/* @__PURE__ */ jsxs("ul", { className: gridClass(variant), children: [
|
|
2544
|
+
index === 0 && noneTile ? /* @__PURE__ */ jsx("li", { children: noneTile }) : null,
|
|
2545
|
+
section.items.map((item) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
2546
|
+
CurtainPickerCard,
|
|
2547
|
+
{
|
|
2548
|
+
item,
|
|
2549
|
+
name: groupName,
|
|
2550
|
+
selectable,
|
|
2551
|
+
checked: selectedId === item.id,
|
|
2552
|
+
disabled,
|
|
2553
|
+
actionsPending,
|
|
2554
|
+
copy,
|
|
2555
|
+
compact,
|
|
2556
|
+
onSelect: onChange ? () => onChange(item.id) : void 0,
|
|
2557
|
+
onMakeDefault: compact ? void 0 : itemActions(
|
|
2558
|
+
item,
|
|
2559
|
+
onMakeDefault,
|
|
2560
|
+
onDelete,
|
|
2561
|
+
canMakeDefault,
|
|
2562
|
+
canDelete
|
|
2563
|
+
).onMakeDefault,
|
|
2564
|
+
onDelete: compact ? void 0 : itemActions(
|
|
2565
|
+
item,
|
|
2566
|
+
onMakeDefault,
|
|
2567
|
+
onDelete,
|
|
2568
|
+
canMakeDefault,
|
|
2569
|
+
canDelete
|
|
2570
|
+
).onDelete
|
|
2571
|
+
}
|
|
2572
|
+
) }, item.id))
|
|
2573
|
+
] })
|
|
2574
|
+
] }, section.group ?? "all"))
|
|
2575
|
+
] });
|
|
2576
|
+
}
|
|
2577
|
+
function SelectedPreview({
|
|
2578
|
+
item,
|
|
2579
|
+
copy,
|
|
2580
|
+
disabled,
|
|
2581
|
+
actionsPending,
|
|
2582
|
+
onMakeDefault,
|
|
2583
|
+
onDelete
|
|
2584
|
+
}) {
|
|
2585
|
+
const owner = item ? ownerLabel(item.ownerType, copy) : null;
|
|
2586
|
+
return /* @__PURE__ */ jsxs("div", { className: "max-w-sm space-y-3", children: [
|
|
2587
|
+
item ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2588
|
+
/* @__PURE__ */ jsx(
|
|
2589
|
+
CurtainPreview,
|
|
2590
|
+
{
|
|
2591
|
+
kind: item.kind,
|
|
2592
|
+
url: item.publicUrl,
|
|
2593
|
+
alt: "",
|
|
2594
|
+
className: "pointer-events-none"
|
|
2595
|
+
}
|
|
2596
|
+
),
|
|
2597
|
+
/* @__PURE__ */ jsx(
|
|
2598
|
+
ItemMeta,
|
|
2599
|
+
{
|
|
2600
|
+
title: item.title,
|
|
2601
|
+
detail: [kindLabel(item.kind, copy), owner].filter(Boolean).join(" \xB7 "),
|
|
2602
|
+
isDefault: item.isDefault,
|
|
2603
|
+
defaultBadge: copy.defaultBadge
|
|
2604
|
+
}
|
|
2605
|
+
)
|
|
2606
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2607
|
+
/* @__PURE__ */ jsx(
|
|
2608
|
+
"div",
|
|
2609
|
+
{
|
|
2610
|
+
className: "aspect-video rounded-md bg-gradient-to-br from-zinc-900 to-zinc-950",
|
|
2611
|
+
"aria-hidden": "true"
|
|
2612
|
+
}
|
|
2613
|
+
),
|
|
2614
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
2615
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium", children: copy.none }),
|
|
2616
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: copy.noneDescription })
|
|
2617
|
+
] })
|
|
2618
|
+
] }),
|
|
2619
|
+
/* @__PURE__ */ jsx(
|
|
2620
|
+
ManageActions,
|
|
2621
|
+
{
|
|
2622
|
+
disabled,
|
|
2623
|
+
actionsPending,
|
|
2624
|
+
copy,
|
|
2625
|
+
onMakeDefault,
|
|
2626
|
+
onDelete
|
|
2627
|
+
}
|
|
2628
|
+
)
|
|
2629
|
+
] });
|
|
2630
|
+
}
|
|
2631
|
+
function ItemMeta({
|
|
2632
|
+
title,
|
|
2633
|
+
detail,
|
|
2634
|
+
isDefault,
|
|
2635
|
+
defaultBadge
|
|
2636
|
+
}) {
|
|
2637
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
2638
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
2639
|
+
/* @__PURE__ */ jsx("p", { className: "truncate font-medium", children: title }),
|
|
2640
|
+
detail ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: detail }) : null
|
|
2641
|
+
] }),
|
|
2642
|
+
isDefault ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground shrink-0 text-xs", children: defaultBadge }) : null
|
|
2643
|
+
] });
|
|
2644
|
+
}
|
|
2645
|
+
function ManageActions({
|
|
2646
|
+
disabled,
|
|
2647
|
+
actionsPending,
|
|
2648
|
+
copy,
|
|
2649
|
+
onMakeDefault,
|
|
2650
|
+
onDelete
|
|
2651
|
+
}) {
|
|
2652
|
+
if (!onMakeDefault && !onDelete) return null;
|
|
2653
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
2654
|
+
onMakeDefault ? /* @__PURE__ */ jsx(
|
|
2655
|
+
Button,
|
|
2656
|
+
{
|
|
2657
|
+
type: "button",
|
|
2658
|
+
size: "sm",
|
|
2659
|
+
variant: "secondary",
|
|
2660
|
+
disabled: disabled || actionsPending,
|
|
2661
|
+
onClick: onMakeDefault,
|
|
2662
|
+
children: copy.makeDefault
|
|
2663
|
+
}
|
|
2664
|
+
) : null,
|
|
2665
|
+
onDelete ? /* @__PURE__ */ jsx(
|
|
2666
|
+
Button,
|
|
2667
|
+
{
|
|
2668
|
+
type: "button",
|
|
2669
|
+
size: "sm",
|
|
2670
|
+
variant: "destructive",
|
|
2671
|
+
disabled: disabled || actionsPending,
|
|
2672
|
+
onClick: onDelete,
|
|
2673
|
+
children: copy.delete
|
|
2674
|
+
}
|
|
2675
|
+
) : null
|
|
2676
|
+
] });
|
|
2677
|
+
}
|
|
2678
|
+
function NoneTile({
|
|
2679
|
+
name,
|
|
2680
|
+
checked,
|
|
2681
|
+
disabled,
|
|
2682
|
+
copy,
|
|
2683
|
+
compact,
|
|
2684
|
+
onSelect
|
|
2685
|
+
}) {
|
|
2686
|
+
return /* @__PURE__ */ jsxs(
|
|
2687
|
+
"label",
|
|
2688
|
+
{
|
|
2689
|
+
className: cn(
|
|
2690
|
+
"block cursor-pointer transition-shadow",
|
|
2691
|
+
compact ? "flex min-h-11 flex-col gap-1.5 rounded-lg border p-1.5" : "space-y-3 rounded-xl border p-4",
|
|
2692
|
+
"has-[:checked]:ring-ring has-[:checked]:ring-2",
|
|
2693
|
+
"has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-2",
|
|
2694
|
+
disabled && "pointer-events-none opacity-50"
|
|
2695
|
+
),
|
|
2696
|
+
children: [
|
|
2697
|
+
/* @__PURE__ */ jsx(
|
|
2698
|
+
"input",
|
|
2699
|
+
{
|
|
2700
|
+
type: "radio",
|
|
2701
|
+
name,
|
|
2702
|
+
value: "",
|
|
2703
|
+
checked,
|
|
2704
|
+
disabled,
|
|
2705
|
+
onChange: onSelect,
|
|
2706
|
+
className: "sr-only"
|
|
2707
|
+
}
|
|
2708
|
+
),
|
|
2709
|
+
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-md bg-gradient-to-br from-zinc-900 to-zinc-950" }),
|
|
2710
|
+
compact ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium", children: copy.none }) : /* @__PURE__ */ jsxs("div", { children: [
|
|
2711
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium", children: copy.none }),
|
|
2712
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: copy.noneDescription })
|
|
2713
|
+
] })
|
|
2714
|
+
]
|
|
2715
|
+
}
|
|
2716
|
+
);
|
|
2717
|
+
}
|
|
2718
|
+
function CurtainPickerCard({
|
|
2719
|
+
item,
|
|
2720
|
+
name,
|
|
2721
|
+
selectable,
|
|
2722
|
+
checked,
|
|
2723
|
+
disabled,
|
|
2724
|
+
actionsPending,
|
|
2725
|
+
copy,
|
|
2726
|
+
compact,
|
|
2727
|
+
onSelect,
|
|
2728
|
+
onMakeDefault,
|
|
2729
|
+
onDelete
|
|
2730
|
+
}) {
|
|
2731
|
+
const owner = ownerLabel(item.ownerType, copy);
|
|
2732
|
+
const media = /* @__PURE__ */ jsx(
|
|
2733
|
+
CurtainPreview,
|
|
2734
|
+
{
|
|
2735
|
+
kind: item.kind,
|
|
2736
|
+
url: item.publicUrl,
|
|
2737
|
+
alt: item.title,
|
|
2738
|
+
frozen: compact
|
|
2739
|
+
}
|
|
2740
|
+
);
|
|
2741
|
+
const meta = compact ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium", children: item.title }) : /* @__PURE__ */ jsx(
|
|
2742
|
+
ItemMeta,
|
|
2743
|
+
{
|
|
2744
|
+
title: item.title,
|
|
2745
|
+
detail: [kindLabel(item.kind, copy), owner].filter(Boolean).join(" \xB7 "),
|
|
2746
|
+
isDefault: item.isDefault,
|
|
2747
|
+
defaultBadge: copy.defaultBadge
|
|
2748
|
+
}
|
|
2749
|
+
);
|
|
2750
|
+
return /* @__PURE__ */ jsxs(
|
|
2751
|
+
"div",
|
|
2752
|
+
{
|
|
2753
|
+
className: cn(
|
|
2754
|
+
compact ? "rounded-lg border p-1.5" : "space-y-3 rounded-xl border p-4",
|
|
2755
|
+
selectionRing(selectable),
|
|
2756
|
+
disabled && "opacity-50"
|
|
2757
|
+
),
|
|
2758
|
+
children: [
|
|
2759
|
+
selectable && onSelect ? /* @__PURE__ */ jsxs(
|
|
2760
|
+
"label",
|
|
2761
|
+
{
|
|
2762
|
+
className: cn(
|
|
2763
|
+
compact ? "flex min-h-11 flex-col gap-1.5" : "block space-y-3",
|
|
2764
|
+
disabled ? "pointer-events-none" : "cursor-pointer"
|
|
2765
|
+
),
|
|
2766
|
+
children: [
|
|
2767
|
+
/* @__PURE__ */ jsx(
|
|
2768
|
+
"input",
|
|
2769
|
+
{
|
|
2770
|
+
type: "radio",
|
|
2771
|
+
name,
|
|
2772
|
+
value: item.id,
|
|
2773
|
+
checked,
|
|
2774
|
+
disabled,
|
|
2775
|
+
onChange: onSelect,
|
|
2776
|
+
className: "sr-only"
|
|
2777
|
+
}
|
|
2778
|
+
),
|
|
2779
|
+
media,
|
|
2780
|
+
meta
|
|
2781
|
+
]
|
|
2782
|
+
}
|
|
2783
|
+
) : /* @__PURE__ */ jsxs("div", { className: compact ? "space-y-1.5" : "space-y-3", children: [
|
|
2784
|
+
media,
|
|
2785
|
+
meta
|
|
2786
|
+
] }),
|
|
2787
|
+
compact ? null : /* @__PURE__ */ jsx(
|
|
2788
|
+
ManageActions,
|
|
2789
|
+
{
|
|
2790
|
+
disabled,
|
|
2791
|
+
actionsPending,
|
|
2792
|
+
copy,
|
|
2793
|
+
onMakeDefault,
|
|
2794
|
+
onDelete
|
|
2795
|
+
}
|
|
2796
|
+
)
|
|
2797
|
+
]
|
|
2798
|
+
}
|
|
2799
|
+
);
|
|
2800
|
+
}
|
|
2291
2801
|
function formatCountdown(ms) {
|
|
2292
2802
|
if (ms <= 0) return "0:00";
|
|
2293
2803
|
const total = Math.floor(ms / 1e3);
|
|
@@ -2309,8 +2819,8 @@ function WaitingRoom({
|
|
|
2309
2819
|
labels,
|
|
2310
2820
|
className
|
|
2311
2821
|
}) {
|
|
2312
|
-
const [now, setNow] =
|
|
2313
|
-
|
|
2822
|
+
const [now, setNow] = React7.useState(nowMs ?? Date.now());
|
|
2823
|
+
React7.useEffect(() => {
|
|
2314
2824
|
if (nowMs != null) {
|
|
2315
2825
|
setNow(nowMs);
|
|
2316
2826
|
return;
|
|
@@ -2582,27 +3092,27 @@ function useHlsPlayback({
|
|
|
2582
3092
|
onError,
|
|
2583
3093
|
onPlayingChange
|
|
2584
3094
|
}) {
|
|
2585
|
-
const videoRef =
|
|
2586
|
-
const hlsRef =
|
|
2587
|
-
const [state, setState] =
|
|
2588
|
-
const [qualities, setQualities] =
|
|
2589
|
-
const [activeLevel, setActiveLevel] =
|
|
2590
|
-
const [autoplayState, setAutoplayState] =
|
|
2591
|
-
const [error, setError] =
|
|
2592
|
-
const [reloadKey, setReloadKey] =
|
|
2593
|
-
const onErrorRef =
|
|
2594
|
-
const onPlayingChangeRef =
|
|
2595
|
-
|
|
3095
|
+
const videoRef = React7.useRef(null);
|
|
3096
|
+
const hlsRef = React7.useRef(null);
|
|
3097
|
+
const [state, setState] = React7.useState("idle");
|
|
3098
|
+
const [qualities, setQualities] = React7.useState([]);
|
|
3099
|
+
const [activeLevel, setActiveLevel] = React7.useState(-1);
|
|
3100
|
+
const [autoplayState, setAutoplayState] = React7.useState("none");
|
|
3101
|
+
const [error, setError] = React7.useState(null);
|
|
3102
|
+
const [reloadKey, setReloadKey] = React7.useState(0);
|
|
3103
|
+
const onErrorRef = React7.useRef(onError);
|
|
3104
|
+
const onPlayingChangeRef = React7.useRef(onPlayingChange);
|
|
3105
|
+
React7.useEffect(() => {
|
|
2596
3106
|
onErrorRef.current = onError;
|
|
2597
3107
|
onPlayingChangeRef.current = onPlayingChange;
|
|
2598
3108
|
}, [onError, onPlayingChange]);
|
|
2599
|
-
const retry =
|
|
3109
|
+
const retry = React7.useCallback(() => {
|
|
2600
3110
|
setError(null);
|
|
2601
3111
|
setState("loading");
|
|
2602
3112
|
setAutoplayState("none");
|
|
2603
3113
|
setReloadKey((k) => k + 1);
|
|
2604
3114
|
}, []);
|
|
2605
|
-
|
|
3115
|
+
React7.useEffect(() => {
|
|
2606
3116
|
const media = videoRef.current;
|
|
2607
3117
|
if (!media || !src || !active) {
|
|
2608
3118
|
setState("idle");
|
|
@@ -2872,7 +3382,7 @@ function useHlsPlayback({
|
|
|
2872
3382
|
destroyHls();
|
|
2873
3383
|
};
|
|
2874
3384
|
}, [src, mode, active, autoPlay, muted, reloadKey]);
|
|
2875
|
-
const setLevel =
|
|
3385
|
+
const setLevel = React7.useCallback((index) => {
|
|
2876
3386
|
const hls = hlsRef.current;
|
|
2877
3387
|
if (!hls) return;
|
|
2878
3388
|
hls.nextLevel = index;
|
|
@@ -2958,12 +3468,12 @@ function VideoPlayer({
|
|
|
2958
3468
|
className
|
|
2959
3469
|
}) {
|
|
2960
3470
|
const t = { ...DEFAULT_LABELS2, ...labels };
|
|
2961
|
-
const containerRef =
|
|
2962
|
-
const firstPlayFiredRef =
|
|
2963
|
-
const [userStarted, setUserStarted] =
|
|
3471
|
+
const containerRef = React7.useRef(null);
|
|
3472
|
+
const firstPlayFiredRef = React7.useRef(false);
|
|
3473
|
+
const [userStarted, setUserStarted] = React7.useState(false);
|
|
2964
3474
|
const active = autoPlay || !poster || userStarted;
|
|
2965
3475
|
const autoplayActive = autoPlay || userStarted;
|
|
2966
|
-
const handlePlayingChange =
|
|
3476
|
+
const handlePlayingChange = React7.useCallback(
|
|
2967
3477
|
(playing) => {
|
|
2968
3478
|
setIsPlaying(playing);
|
|
2969
3479
|
if (playing && !firstPlayFiredRef.current) {
|
|
@@ -2992,25 +3502,25 @@ function VideoPlayer({
|
|
|
2992
3502
|
onError,
|
|
2993
3503
|
onPlayingChange: handlePlayingChange
|
|
2994
3504
|
});
|
|
2995
|
-
const [isPlaying, setIsPlaying] =
|
|
2996
|
-
const [isMuted, setIsMuted] =
|
|
2997
|
-
const [volume, setVolume] =
|
|
2998
|
-
const [currentTime, setCurrentTime] =
|
|
2999
|
-
const [duration, setDuration] =
|
|
3000
|
-
const [buffered, setBuffered] =
|
|
3001
|
-
const [isFullscreen, setIsFullscreen] =
|
|
3002
|
-
const [pipActive, setPipActive] =
|
|
3003
|
-
const [controlsVisible, setControlsVisible] =
|
|
3004
|
-
const [playbackRate, setPlaybackRate] =
|
|
3005
|
-
const [openMenu, setOpenMenu] =
|
|
3505
|
+
const [isPlaying, setIsPlaying] = React7.useState(false);
|
|
3506
|
+
const [isMuted, setIsMuted] = React7.useState(muted);
|
|
3507
|
+
const [volume, setVolume] = React7.useState(1);
|
|
3508
|
+
const [currentTime, setCurrentTime] = React7.useState(0);
|
|
3509
|
+
const [duration, setDuration] = React7.useState(0);
|
|
3510
|
+
const [buffered, setBuffered] = React7.useState(0);
|
|
3511
|
+
const [isFullscreen, setIsFullscreen] = React7.useState(false);
|
|
3512
|
+
const [pipActive, setPipActive] = React7.useState(false);
|
|
3513
|
+
const [controlsVisible, setControlsVisible] = React7.useState(true);
|
|
3514
|
+
const [playbackRate, setPlaybackRate] = React7.useState(1);
|
|
3515
|
+
const [openMenu, setOpenMenu] = React7.useState(
|
|
3006
3516
|
null
|
|
3007
3517
|
);
|
|
3008
|
-
const [behindLive, setBehindLive] =
|
|
3009
|
-
const [webkitFullscreenSupported, setWebkitFullscreenSupported] =
|
|
3010
|
-
const hideTimerRef =
|
|
3518
|
+
const [behindLive, setBehindLive] = React7.useState(false);
|
|
3519
|
+
const [webkitFullscreenSupported, setWebkitFullscreenSupported] = React7.useState(false);
|
|
3520
|
+
const hideTimerRef = React7.useRef(null);
|
|
3011
3521
|
const pipSupported = typeof document !== "undefined" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled;
|
|
3012
3522
|
const fullscreenSupported = hasStandardFullscreen() || webkitFullscreenSupported;
|
|
3013
|
-
|
|
3523
|
+
React7.useEffect(() => {
|
|
3014
3524
|
const video = videoRef.current;
|
|
3015
3525
|
if (!video || !active) return;
|
|
3016
3526
|
const onTimeUpdate = () => {
|
|
@@ -3043,21 +3553,21 @@ function VideoPlayer({
|
|
|
3043
3553
|
video.removeEventListener("ratechange", onRate);
|
|
3044
3554
|
};
|
|
3045
3555
|
}, [videoRef, active, mode]);
|
|
3046
|
-
|
|
3556
|
+
React7.useEffect(() => {
|
|
3047
3557
|
const video = videoRef.current;
|
|
3048
3558
|
if (!paused || !video || !isPlaying) return;
|
|
3049
3559
|
video.pause();
|
|
3050
3560
|
}, [paused, videoRef, isPlaying]);
|
|
3051
|
-
|
|
3561
|
+
React7.useEffect(() => {
|
|
3052
3562
|
setWebkitFullscreenSupported(hasWebkitVideoFullscreen(videoRef.current));
|
|
3053
3563
|
videoRef.current?.setAttribute("x-webkit-airplay", "allow");
|
|
3054
3564
|
}, [videoRef, active]);
|
|
3055
|
-
|
|
3565
|
+
React7.useEffect(() => {
|
|
3056
3566
|
const onFsChange = () => setIsFullscreen(document.fullscreenElement === containerRef.current);
|
|
3057
3567
|
document.addEventListener("fullscreenchange", onFsChange);
|
|
3058
3568
|
return () => document.removeEventListener("fullscreenchange", onFsChange);
|
|
3059
3569
|
}, []);
|
|
3060
|
-
|
|
3570
|
+
React7.useEffect(() => {
|
|
3061
3571
|
const video = asWebkitVideo(videoRef.current);
|
|
3062
3572
|
if (!video) return;
|
|
3063
3573
|
const onBegin = () => setIsFullscreen(true);
|
|
@@ -3069,7 +3579,7 @@ function VideoPlayer({
|
|
|
3069
3579
|
video.removeEventListener("webkitendfullscreen", onEnd);
|
|
3070
3580
|
};
|
|
3071
3581
|
}, [videoRef, active]);
|
|
3072
|
-
|
|
3582
|
+
React7.useEffect(() => {
|
|
3073
3583
|
const video = videoRef.current;
|
|
3074
3584
|
if (!video) return;
|
|
3075
3585
|
const onEnter = () => setPipActive(true);
|
|
@@ -3081,18 +3591,18 @@ function VideoPlayer({
|
|
|
3081
3591
|
video.removeEventListener("leavepictureinpicture", onLeave);
|
|
3082
3592
|
};
|
|
3083
3593
|
}, [videoRef]);
|
|
3084
|
-
const scheduleHide =
|
|
3594
|
+
const scheduleHide = React7.useCallback(() => {
|
|
3085
3595
|
if (hideTimerRef.current) clearTimeout(hideTimerRef.current);
|
|
3086
3596
|
hideTimerRef.current = setTimeout(() => {
|
|
3087
3597
|
setControlsVisible(false);
|
|
3088
3598
|
setOpenMenu(null);
|
|
3089
3599
|
}, CONTROLS_HIDE_MS);
|
|
3090
3600
|
}, []);
|
|
3091
|
-
const revealControls =
|
|
3601
|
+
const revealControls = React7.useCallback(() => {
|
|
3092
3602
|
setControlsVisible(true);
|
|
3093
3603
|
scheduleHide();
|
|
3094
3604
|
}, [scheduleHide]);
|
|
3095
|
-
|
|
3605
|
+
React7.useEffect(() => {
|
|
3096
3606
|
return () => {
|
|
3097
3607
|
if (hideTimerRef.current) clearTimeout(hideTimerRef.current);
|
|
3098
3608
|
};
|
|
@@ -3595,16 +4105,16 @@ function videoInPictureInPicture(container) {
|
|
|
3595
4105
|
return container.contains(pip);
|
|
3596
4106
|
}
|
|
3597
4107
|
function useFeedExclusivePlayback(playbackId) {
|
|
3598
|
-
const containerRef =
|
|
3599
|
-
const [forcePaused, setForcePaused] =
|
|
3600
|
-
const requestPause =
|
|
4108
|
+
const containerRef = React7.useRef(null);
|
|
4109
|
+
const [forcePaused, setForcePaused] = React7.useState(false);
|
|
4110
|
+
const requestPause = React7.useCallback(() => {
|
|
3601
4111
|
if (videoInPictureInPicture(containerRef.current)) return;
|
|
3602
4112
|
setForcePaused(true);
|
|
3603
4113
|
}, []);
|
|
3604
|
-
|
|
4114
|
+
React7.useEffect(() => {
|
|
3605
4115
|
return registerFeedPlayer(playbackId, requestPause);
|
|
3606
4116
|
}, [playbackId, requestPause]);
|
|
3607
|
-
|
|
4117
|
+
React7.useEffect(() => {
|
|
3608
4118
|
const node = containerRef.current;
|
|
3609
4119
|
if (!node || typeof IntersectionObserver === "undefined") return;
|
|
3610
4120
|
const observer = new IntersectionObserver(
|
|
@@ -3620,14 +4130,14 @@ function useFeedExclusivePlayback(playbackId) {
|
|
|
3620
4130
|
observer.observe(node);
|
|
3621
4131
|
return () => observer.disconnect();
|
|
3622
4132
|
}, [requestPause]);
|
|
3623
|
-
|
|
4133
|
+
React7.useEffect(() => {
|
|
3624
4134
|
const onVisibility = () => {
|
|
3625
4135
|
if (document.hidden) requestPause();
|
|
3626
4136
|
};
|
|
3627
4137
|
document.addEventListener("visibilitychange", onVisibility);
|
|
3628
4138
|
return () => document.removeEventListener("visibilitychange", onVisibility);
|
|
3629
4139
|
}, [requestPause]);
|
|
3630
|
-
const onPlayingChange =
|
|
4140
|
+
const onPlayingChange = React7.useCallback(
|
|
3631
4141
|
(playing) => {
|
|
3632
4142
|
if (!playing) return;
|
|
3633
4143
|
setForcePaused(false);
|
|
@@ -3654,7 +4164,7 @@ function FeedVideoPlayer({
|
|
|
3654
4164
|
paused: exclusivePaused,
|
|
3655
4165
|
onPlayingChange: onExclusivePlayingChange
|
|
3656
4166
|
} = useFeedExclusivePlayback(playbackId);
|
|
3657
|
-
const handlePlayingChange =
|
|
4167
|
+
const handlePlayingChange = React7.useCallback(
|
|
3658
4168
|
(playing) => {
|
|
3659
4169
|
onExclusivePlayingChange(playing);
|
|
3660
4170
|
onPlayingChange?.(playing);
|
|
@@ -3681,8 +4191,8 @@ function FeedVideoPlayer({
|
|
|
3681
4191
|
);
|
|
3682
4192
|
}
|
|
3683
4193
|
function usePlaybackStats(statsUrl, { intervalMs = 15e3, enabled = true } = {}) {
|
|
3684
|
-
const [stats, setStats] =
|
|
3685
|
-
|
|
4194
|
+
const [stats, setStats] = React7.useState({});
|
|
4195
|
+
React7.useEffect(() => {
|
|
3686
4196
|
if (!statsUrl || !enabled) return;
|
|
3687
4197
|
let cancelled = false;
|
|
3688
4198
|
const controller = new AbortController();
|
|
@@ -3711,18 +4221,6 @@ function usePlaybackStats(statsUrl, { intervalMs = 15e3, enabled = true } = {})
|
|
|
3711
4221
|
}, [statsUrl, intervalMs, enabled]);
|
|
3712
4222
|
return stats;
|
|
3713
4223
|
}
|
|
3714
|
-
function useMediaQuery2(query) {
|
|
3715
|
-
const [matches, setMatches] = useState(false);
|
|
3716
|
-
useEffect(() => {
|
|
3717
|
-
if (typeof window === "undefined" || !window.matchMedia) return;
|
|
3718
|
-
const mql = window.matchMedia(query);
|
|
3719
|
-
const onChange = () => setMatches(mql.matches);
|
|
3720
|
-
onChange();
|
|
3721
|
-
mql.addEventListener("change", onChange);
|
|
3722
|
-
return () => mql.removeEventListener("change", onChange);
|
|
3723
|
-
}, [query]);
|
|
3724
|
-
return matches;
|
|
3725
|
-
}
|
|
3726
4224
|
|
|
3727
4225
|
// src/lib/avatar.ts
|
|
3728
4226
|
var EMPTY_COLORS = {
|
|
@@ -3805,6 +4303,6 @@ function avatarFallbackStyle(name) {
|
|
|
3805
4303
|
return getAvatarColors(name);
|
|
3806
4304
|
}
|
|
3807
4305
|
|
|
3808
|
-
export { AvatarEditor, AvatarEditorDialog, ConfirmDestructiveDialog, CurtainStage, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, EditableSection, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, ErrorState, FeedVideoPlayer, FieldMessage, LanguageContext, LanguageSwitcher, LoadingState, SafeImage, ThemeSwitcher, VideoPlayer, WaitingRoom, avatarFallbackStyle, castHlsUrl, cn, createLiveHlsConfig, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, getAvatarColors, getInitials, loadCastSender, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery2 as useMediaQuery, usePlaybackStats };
|
|
4306
|
+
export { AvatarEditor, AvatarEditorDialog, ConfirmDestructiveDialog, CurtainPicker, CurtainPickerSkeleton, CurtainPreview, CurtainStage, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, EditableSection, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, ErrorState, FeedVideoPlayer, FieldMessage, LanguageContext, LanguageSwitcher, LoadingState, SafeImage, ThemeSwitcher, VideoPlayer, WaitingRoom, avatarFallbackStyle, castHlsUrl, cn, createLiveHlsConfig, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, getAvatarColors, getInitials, loadCastSender, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery2 as useMediaQuery, usePlaybackStats };
|
|
3809
4307
|
//# sourceMappingURL=index.js.map
|
|
3810
4308
|
//# sourceMappingURL=index.js.map
|