@aigamo/hydrangean-diva 0.0.1-alpha.64 → 0.0.1-alpha.66
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/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as o, Fragment as G, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { createContext as oe, useContext as re, useState as C, useEffect as
|
|
3
|
-
import
|
|
4
|
-
import { computed as c, action as i, makeObservable as M, observable as R, reaction as
|
|
2
|
+
import { createContext as oe, useContext as re, useState as C, useEffect as Ve, memo as D, useCallback as I, useMemo as J, useLayoutEffect as gt } from "react";
|
|
3
|
+
import vt from "ajv";
|
|
4
|
+
import { computed as c, action as i, makeObservable as M, observable as R, reaction as He } from "mobx";
|
|
5
5
|
import { useLocalStorageState as he } from "@aigamo/route-sphere";
|
|
6
6
|
import { pull as pe } from "lodash-es";
|
|
7
7
|
import { useNostalgicDiva as ne, nullPlayerController as ft, NostalgicDivaProvider as bt, NostalgicDiva as It, findVideoService as St } from "@aigamo/nostalgic-diva";
|
|
8
|
-
import { EuiPageTemplate as se, EuiSpacer as ye, EuiButtonIcon as A, EuiFlexGroup as
|
|
8
|
+
import { EuiPageTemplate as se, EuiSpacer as ye, EuiButtonIcon as A, EuiFlexGroup as _, EuiHideFor as $, EuiIcon as h, EuiContextMenu as Y, EuiPopover as K, EuiButtonEmpty as ge, EuiFormRow as te, EuiRange as Ue, EuiBottomBar as Pt, EuiFlexItem as B, useGeneratedHtmlId as Ce, EuiModal as Te, EuiModalHeader as xe, EuiModalHeaderTitle as we, EuiModalBody as ke, EuiForm as Oe, EuiFieldText as me, EuiModalFooter as Be, EuiButton as O, useEuiTheme as ie, EuiShowFor as qe, EuiTableHeaderMobile as Ge, EuiCheckbox as W, EuiTableHeader as Ae, EuiTableHeaderCellCheckbox as Je, EuiTableHeaderCell as U, EuiTableRowCell as q, EuiTableRow as Fe, EuiTableRowCellCheckbox as Ke, EuiLink as Re, EuiTable as Me, EuiEmptyPrompt as Ct, EuiConfirmModal as Tt } from "@elastic/eui";
|
|
9
9
|
import { observer as d } from "mobx-react-lite";
|
|
10
|
-
import { ArrowShuffleFilled as
|
|
10
|
+
import { ArrowShuffleFilled as We, ArrowShuffleOffFilled as Ye, PreviousFilled as xt, SkipBack10Regular as Xe, PauseFilled as wt, PlayFilled as kt, SkipForward30Regular as Ze, NextFilled as Ot, ArrowRepeat1Filled as Bt, ArrowRepeatAllFilled as At, ArrowRepeatAllOffFilled as Ft, OpenRegular as Rt, Speaker2Regular as et, TopSpeedRegular as Mt, DismissRegular as j, MoreHorizontalFilled as le, NavigationPlayRegular as Qt, AddRegular as V, DeleteRegular as Qe, PlayRegular as ae, ArrowUploadRegular as tt, ArrowDownloadRegular as ot, RenameRegular as Dt } from "@fluentui/react-icons";
|
|
11
11
|
import H from "ez-modal-react";
|
|
12
12
|
import { ReactSortable as De } from "react-sortablejs";
|
|
13
13
|
import { useRouter as ze } from "@tanstack/react-router";
|
|
14
|
-
const
|
|
14
|
+
const rt = 81, Ee = new Map(
|
|
15
15
|
Object.entries({
|
|
16
16
|
Audio: "",
|
|
17
17
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
@@ -32,7 +32,7 @@ const ot = 81, Ee = new Map(
|
|
|
32
32
|
bottomBar: "BottomBarStore",
|
|
33
33
|
playlistList: "PlaylistListStore",
|
|
34
34
|
playlist: (t) => `PlaylistStore/${t}`
|
|
35
|
-
},
|
|
35
|
+
}, nt = oe(void 0), F = () => re(nt), be = new vt({
|
|
36
36
|
coerceTypes: !0
|
|
37
37
|
});
|
|
38
38
|
function Ne(t, e) {
|
|
@@ -50,7 +50,7 @@ var b = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t)
|
|
|
50
50
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
51
51
|
return s && n && Et(e, r, n), n;
|
|
52
52
|
};
|
|
53
|
-
const
|
|
53
|
+
const _t = {
|
|
54
54
|
type: "object",
|
|
55
55
|
properties: {
|
|
56
56
|
repeat: {
|
|
@@ -64,7 +64,7 @@ const Lt = {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
class
|
|
67
|
+
class st {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
this.bottomBar = e, M(this);
|
|
70
70
|
}
|
|
@@ -79,17 +79,17 @@ class nt {
|
|
|
79
79
|
}
|
|
80
80
|
validateState(e) {
|
|
81
81
|
return Ne(
|
|
82
|
-
|
|
82
|
+
_t,
|
|
83
83
|
"BottomBarLocalStorageState"
|
|
84
84
|
)(e);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
g([
|
|
88
88
|
c.struct
|
|
89
|
-
],
|
|
89
|
+
], st.prototype, "state", 1);
|
|
90
90
|
class v {
|
|
91
91
|
constructor(e, r) {
|
|
92
|
-
this.player = e, this.playQueue = r, M(this), this.localStorageState = new
|
|
92
|
+
this.player = e, this.playQueue = r, M(this), this.localStorageState = new st(this);
|
|
93
93
|
}
|
|
94
94
|
localStorageState;
|
|
95
95
|
repeat = b.Off;
|
|
@@ -267,16 +267,16 @@ g([
|
|
|
267
267
|
g([
|
|
268
268
|
i.bound
|
|
269
269
|
], v.prototype, "removeFromPlayQueue", 1);
|
|
270
|
-
const
|
|
270
|
+
const it = oe(void 0), ce = () => re(it), lt = oe(void 0), at = () => re(lt), Lt = ({
|
|
271
271
|
children: t
|
|
272
272
|
}) => {
|
|
273
|
-
const e =
|
|
273
|
+
const e = at(), r = ce(), [s] = C(() => new v(e, r));
|
|
274
274
|
return he(
|
|
275
275
|
ve.bottomBar,
|
|
276
276
|
s.localStorageState
|
|
277
|
-
), /* @__PURE__ */ o(
|
|
278
|
-
},
|
|
279
|
-
var $t = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor,
|
|
277
|
+
), /* @__PURE__ */ o(nt.Provider, { value: s, children: t });
|
|
278
|
+
}, ct = oe(void 0), jt = () => re(ct);
|
|
279
|
+
var $t = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, L = (t, e, r, s) => {
|
|
280
280
|
for (var n = s > 1 ? void 0 : s ? Vt(e, r) : e, l = t.length - 1, a; l >= 0; l--)
|
|
281
281
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
282
282
|
return s && n && $t(e, r, n), n;
|
|
@@ -332,44 +332,44 @@ class N {
|
|
|
332
332
|
this.player.onControllerChange(e);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
L([
|
|
336
336
|
R
|
|
337
337
|
], N.prototype, "interacted", 2);
|
|
338
|
-
|
|
338
|
+
L([
|
|
339
339
|
c
|
|
340
340
|
], N.prototype, "controller", 1);
|
|
341
|
-
|
|
341
|
+
L([
|
|
342
342
|
c
|
|
343
343
|
], N.prototype, "currentItem", 1);
|
|
344
|
-
|
|
344
|
+
L([
|
|
345
345
|
i.bound
|
|
346
346
|
], N.prototype, "interact", 1);
|
|
347
|
-
|
|
347
|
+
L([
|
|
348
348
|
i.bound
|
|
349
349
|
], N.prototype, "onLoaded", 1);
|
|
350
|
-
|
|
350
|
+
L([
|
|
351
351
|
i.bound
|
|
352
352
|
], N.prototype, "onPlay", 1);
|
|
353
|
-
|
|
353
|
+
L([
|
|
354
354
|
i.bound
|
|
355
355
|
], N.prototype, "onPause", 1);
|
|
356
|
-
|
|
356
|
+
L([
|
|
357
357
|
i.bound
|
|
358
358
|
], N.prototype, "onEnded", 1);
|
|
359
|
-
|
|
359
|
+
L([
|
|
360
360
|
i.bound
|
|
361
361
|
], N.prototype, "onTimeUpdate", 1);
|
|
362
|
-
|
|
362
|
+
L([
|
|
363
363
|
i.bound
|
|
364
364
|
], N.prototype, "onControllerChange", 1);
|
|
365
365
|
const Ht = ({
|
|
366
366
|
children: t
|
|
367
367
|
}) => {
|
|
368
|
-
const e =
|
|
368
|
+
const e = at(), r = ce(), s = F(), [n] = C(
|
|
369
369
|
() => new N(e, r, s)
|
|
370
370
|
);
|
|
371
|
-
return /* @__PURE__ */ o(
|
|
372
|
-
},
|
|
371
|
+
return /* @__PURE__ */ o(ct.Provider, { value: n, children: t });
|
|
372
|
+
}, dt = {
|
|
373
373
|
type: "object",
|
|
374
374
|
properties: {
|
|
375
375
|
url: {
|
|
@@ -405,7 +405,7 @@ const Ht = ({
|
|
|
405
405
|
items: {
|
|
406
406
|
type: "array",
|
|
407
407
|
nullable: !0,
|
|
408
|
-
items:
|
|
408
|
+
items: dt
|
|
409
409
|
},
|
|
410
410
|
currentIndex: {
|
|
411
411
|
type: "integer",
|
|
@@ -573,7 +573,7 @@ var Kt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, u = (t, e,
|
|
|
573
573
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
574
574
|
return s && n && Kt(e, r, n), n;
|
|
575
575
|
};
|
|
576
|
-
class
|
|
576
|
+
class ut {
|
|
577
577
|
constructor(e) {
|
|
578
578
|
this.playQueue = e, M(this);
|
|
579
579
|
}
|
|
@@ -595,13 +595,13 @@ class dt {
|
|
|
595
595
|
}
|
|
596
596
|
u([
|
|
597
597
|
c.struct
|
|
598
|
-
],
|
|
598
|
+
], ut.prototype, "state", 1);
|
|
599
599
|
class p {
|
|
600
600
|
localStorageState;
|
|
601
601
|
items = [];
|
|
602
602
|
currentId;
|
|
603
603
|
constructor() {
|
|
604
|
-
M(this), this.localStorageState = new
|
|
604
|
+
M(this), this.localStorageState = new ut(this);
|
|
605
605
|
}
|
|
606
606
|
createItemFromDto(e) {
|
|
607
607
|
return Jt.fromDto(this, {
|
|
@@ -891,12 +891,12 @@ const Yt = ({
|
|
|
891
891
|
e.localStorageState
|
|
892
892
|
);
|
|
893
893
|
const r = ne();
|
|
894
|
-
return
|
|
894
|
+
return Ve(() => He(
|
|
895
895
|
() => e.currentItem,
|
|
896
896
|
async (s, n) => {
|
|
897
897
|
s === void 0 || n === void 0 || s.type === n.type && s.videoId === n.videoId && await r.setCurrentTime(0);
|
|
898
898
|
}
|
|
899
|
-
), [e, r]), /* @__PURE__ */ o(
|
|
899
|
+
), [e, r]), /* @__PURE__ */ o(it.Provider, { value: e, children: t });
|
|
900
900
|
};
|
|
901
901
|
var Xt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, z = (t, e, r, s) => {
|
|
902
902
|
for (var n = s > 1 ? void 0 : s ? Zt(e, r) : e, l = t.length - 1, a; l >= 0; l--)
|
|
@@ -976,10 +976,10 @@ const eo = ({
|
|
|
976
976
|
children: t
|
|
977
977
|
}) => {
|
|
978
978
|
const [e] = C(() => new Q());
|
|
979
|
-
return /* @__PURE__ */ o(
|
|
980
|
-
},
|
|
979
|
+
return /* @__PURE__ */ o(lt.Provider, { value: e, children: t });
|
|
980
|
+
}, pt = oe(
|
|
981
981
|
void 0
|
|
982
|
-
), to = () => re(
|
|
982
|
+
), to = () => re(pt);
|
|
983
983
|
var oo = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, fe = (t, e, r, s) => {
|
|
984
984
|
for (var n = s > 1 ? void 0 : s ? ro(e, r) : e, l = t.length - 1, a; l >= 0; l--)
|
|
985
985
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
@@ -1015,7 +1015,7 @@ var no = Object.defineProperty, so = Object.getOwnPropertyDescriptor, de = (t, e
|
|
|
1015
1015
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
1016
1016
|
return s && n && no(e, r, n), n;
|
|
1017
1017
|
};
|
|
1018
|
-
class
|
|
1018
|
+
class mt {
|
|
1019
1019
|
constructor(e) {
|
|
1020
1020
|
this.playlistList = e, M(this);
|
|
1021
1021
|
}
|
|
@@ -1042,12 +1042,12 @@ class pt {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
de([
|
|
1044
1044
|
c.struct
|
|
1045
|
-
],
|
|
1045
|
+
], mt.prototype, "state", 1);
|
|
1046
1046
|
class ue {
|
|
1047
1047
|
localStorageState;
|
|
1048
1048
|
items = [];
|
|
1049
1049
|
constructor() {
|
|
1050
|
-
M(this), this.localStorageState = new
|
|
1050
|
+
M(this), this.localStorageState = new mt(this);
|
|
1051
1051
|
}
|
|
1052
1052
|
createItem(e) {
|
|
1053
1053
|
return new X(this, crypto.randomUUID(), e);
|
|
@@ -1081,7 +1081,7 @@ const io = ({
|
|
|
1081
1081
|
return he(
|
|
1082
1082
|
ve.playlistList,
|
|
1083
1083
|
e.localStorageState
|
|
1084
|
-
), /* @__PURE__ */ o(
|
|
1084
|
+
), /* @__PURE__ */ o(pt.Provider, { value: e, children: t });
|
|
1085
1085
|
}, Qr = ({
|
|
1086
1086
|
children: t,
|
|
1087
1087
|
nostalgicDivaProps: e
|
|
@@ -1091,7 +1091,7 @@ const io = ({
|
|
|
1091
1091
|
components: [
|
|
1092
1092
|
eo,
|
|
1093
1093
|
Yt,
|
|
1094
|
-
|
|
1094
|
+
Lt,
|
|
1095
1095
|
Ht,
|
|
1096
1096
|
io
|
|
1097
1097
|
],
|
|
@@ -1108,7 +1108,7 @@ const io = ({
|
|
|
1108
1108
|
{
|
|
1109
1109
|
panelled: !0,
|
|
1110
1110
|
style: {
|
|
1111
|
-
minBlockSize: `max(460px, 100vh - ${
|
|
1111
|
+
minBlockSize: `max(460px, 100vh - ${rt}px)`
|
|
1112
1112
|
},
|
|
1113
1113
|
children: [
|
|
1114
1114
|
t,
|
|
@@ -1124,7 +1124,7 @@ const io = ({
|
|
|
1124
1124
|
{
|
|
1125
1125
|
title: `Shuffle: ${t.shuffle ? "On" : "Off"}`,
|
|
1126
1126
|
"aria-label": `Shuffle: ${t.shuffle ? "On" : "Off"}`,
|
|
1127
|
-
iconType: t.shuffle ?
|
|
1127
|
+
iconType: t.shuffle ? We : Ye,
|
|
1128
1128
|
size: "s",
|
|
1129
1129
|
iconSize: "l",
|
|
1130
1130
|
onClick: t.toggleShuffle,
|
|
@@ -1152,7 +1152,7 @@ const io = ({
|
|
|
1152
1152
|
{
|
|
1153
1153
|
title: "Skip back 10 seconds",
|
|
1154
1154
|
"aria-label": "Skip back 10 seconds",
|
|
1155
|
-
iconType:
|
|
1155
|
+
iconType: Xe,
|
|
1156
1156
|
size: "s",
|
|
1157
1157
|
iconSize: "l",
|
|
1158
1158
|
onClick: t.skipBack10,
|
|
@@ -1194,7 +1194,7 @@ const io = ({
|
|
|
1194
1194
|
{
|
|
1195
1195
|
title: "Skip forward 30 seconds",
|
|
1196
1196
|
"aria-label": "Skip forward 30 seconds",
|
|
1197
|
-
iconType:
|
|
1197
|
+
iconType: Ze,
|
|
1198
1198
|
size: "s",
|
|
1199
1199
|
iconSize: "l",
|
|
1200
1200
|
onClick: t.skipForward30,
|
|
@@ -1215,7 +1215,7 @@ const io = ({
|
|
|
1215
1215
|
disabled: !t.canNext
|
|
1216
1216
|
}
|
|
1217
1217
|
);
|
|
1218
|
-
}),
|
|
1218
|
+
}), ht = {
|
|
1219
1219
|
[b.Off]: Ft,
|
|
1220
1220
|
[b.All]: At,
|
|
1221
1221
|
[b.One]: Bt
|
|
@@ -1226,7 +1226,7 @@ const io = ({
|
|
|
1226
1226
|
{
|
|
1227
1227
|
title: `Repeat: ${t.repeat === b.All ? "All" : t.repeat === b.One ? "One" : "Off"}`,
|
|
1228
1228
|
"aria-label": `Repeat: ${t.repeat === b.All ? "All" : t.repeat === b.One ? "One" : "Off"}`,
|
|
1229
|
-
iconType:
|
|
1229
|
+
iconType: ht[t.repeat],
|
|
1230
1230
|
size: "s",
|
|
1231
1231
|
iconSize: "l",
|
|
1232
1232
|
onClick: t.toggleRepeat,
|
|
@@ -1236,7 +1236,7 @@ const io = ({
|
|
|
1236
1236
|
}), go = d(() => {
|
|
1237
1237
|
const t = F();
|
|
1238
1238
|
return /* @__PURE__ */ m(
|
|
1239
|
-
|
|
1239
|
+
_,
|
|
1240
1240
|
{
|
|
1241
1241
|
responsive: !1,
|
|
1242
1242
|
gutterSize: "s",
|
|
@@ -1337,7 +1337,7 @@ const io = ({
|
|
|
1337
1337
|
), bo = d(() => {
|
|
1338
1338
|
const t = F();
|
|
1339
1339
|
return /* @__PURE__ */ o(
|
|
1340
|
-
|
|
1340
|
+
_,
|
|
1341
1341
|
{
|
|
1342
1342
|
responsive: !1,
|
|
1343
1343
|
gutterSize: "s",
|
|
@@ -1353,7 +1353,7 @@ const io = ({
|
|
|
1353
1353
|
{
|
|
1354
1354
|
title: "Mute",
|
|
1355
1355
|
"aria-label": "Mute",
|
|
1356
|
-
iconType:
|
|
1356
|
+
iconType: et,
|
|
1357
1357
|
size: "s",
|
|
1358
1358
|
iconSize: "l",
|
|
1359
1359
|
disabled: !t.controller.supports("setMuted")
|
|
@@ -1362,7 +1362,7 @@ const io = ({
|
|
|
1362
1362
|
}), So = d(
|
|
1363
1363
|
({ button: t, isOpen: e, closePopover: r }) => {
|
|
1364
1364
|
const s = F(), [n, l] = C("0"), a = ne();
|
|
1365
|
-
|
|
1365
|
+
gt(() => {
|
|
1366
1366
|
e && a.getVolume().then((y) => {
|
|
1367
1367
|
y !== void 0 && l(Math.floor(y * 100).toString());
|
|
1368
1368
|
});
|
|
@@ -1381,7 +1381,7 @@ const io = ({
|
|
|
1381
1381
|
closePopover: r,
|
|
1382
1382
|
anchorPosition: "upRight",
|
|
1383
1383
|
children: /* @__PURE__ */ o(te, { children: /* @__PURE__ */ m(
|
|
1384
|
-
|
|
1384
|
+
_,
|
|
1385
1385
|
{
|
|
1386
1386
|
responsive: !1,
|
|
1387
1387
|
gutterSize: "s",
|
|
@@ -1390,7 +1390,7 @@ const io = ({
|
|
|
1390
1390
|
children: [
|
|
1391
1391
|
/* @__PURE__ */ o(Io, {}),
|
|
1392
1392
|
/* @__PURE__ */ o(
|
|
1393
|
-
|
|
1393
|
+
Ue,
|
|
1394
1394
|
{
|
|
1395
1395
|
min: 0,
|
|
1396
1396
|
max: 100,
|
|
@@ -1417,7 +1417,7 @@ const io = ({
|
|
|
1417
1417
|
{
|
|
1418
1418
|
title: "Volume",
|
|
1419
1419
|
"aria-label": "Volume",
|
|
1420
|
-
iconType:
|
|
1420
|
+
iconType: et,
|
|
1421
1421
|
size: "s",
|
|
1422
1422
|
iconSize: "l",
|
|
1423
1423
|
onClick: () => r(!e),
|
|
@@ -1477,13 +1477,13 @@ const io = ({
|
|
|
1477
1477
|
},
|
|
1478
1478
|
a({
|
|
1479
1479
|
name: "Skip back 10 seconds",
|
|
1480
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
1480
|
+
icon: /* @__PURE__ */ o(h, { type: Xe }),
|
|
1481
1481
|
onClick: e.skipBack10,
|
|
1482
1482
|
disabled: !e.canSkipBack10
|
|
1483
1483
|
}),
|
|
1484
1484
|
a({
|
|
1485
1485
|
name: "Skip forward 30 seconds",
|
|
1486
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
1486
|
+
icon: /* @__PURE__ */ o(h, { type: Ze }),
|
|
1487
1487
|
onClick: e.skipForward30,
|
|
1488
1488
|
disabled: !e.canSkipForward30
|
|
1489
1489
|
}),
|
|
@@ -1492,7 +1492,7 @@ const io = ({
|
|
|
1492
1492
|
icon: /* @__PURE__ */ o(
|
|
1493
1493
|
h,
|
|
1494
1494
|
{
|
|
1495
|
-
type: e.shuffle ?
|
|
1495
|
+
type: e.shuffle ? We : Ye
|
|
1496
1496
|
}
|
|
1497
1497
|
),
|
|
1498
1498
|
onClick: e.toggleShuffle,
|
|
@@ -1504,7 +1504,7 @@ const io = ({
|
|
|
1504
1504
|
icon: /* @__PURE__ */ o(
|
|
1505
1505
|
h,
|
|
1506
1506
|
{
|
|
1507
|
-
type:
|
|
1507
|
+
type: ht[e.repeat]
|
|
1508
1508
|
}
|
|
1509
1509
|
),
|
|
1510
1510
|
onClick: e.toggleRepeat,
|
|
@@ -1579,7 +1579,7 @@ const io = ({
|
|
|
1579
1579
|
);
|
|
1580
1580
|
}), ko = D(
|
|
1581
1581
|
({ onClickPlayQueueButton: t }) => /* @__PURE__ */ m(
|
|
1582
|
-
|
|
1582
|
+
_,
|
|
1583
1583
|
{
|
|
1584
1584
|
responsive: !1,
|
|
1585
1585
|
gutterSize: "s",
|
|
@@ -1621,7 +1621,7 @@ const io = ({
|
|
|
1621
1621
|
[t, e]
|
|
1622
1622
|
);
|
|
1623
1623
|
return /* @__PURE__ */ o(
|
|
1624
|
-
|
|
1624
|
+
Ue,
|
|
1625
1625
|
{
|
|
1626
1626
|
min: 0,
|
|
1627
1627
|
max: 100,
|
|
@@ -1637,9 +1637,9 @@ const io = ({
|
|
|
1637
1637
|
}
|
|
1638
1638
|
);
|
|
1639
1639
|
}), zr = d(
|
|
1640
|
-
({ onClickPlayQueueButton: t }) => /* @__PURE__ */ o(Pt, { paddingSize: "s", children: /* @__PURE__ */ m(
|
|
1640
|
+
({ onClickPlayQueueButton: t }) => /* @__PURE__ */ o(Pt, { paddingSize: "s", children: /* @__PURE__ */ m(_, { direction: "column", gutterSize: "none", children: [
|
|
1641
1641
|
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ o(Oo, {}) }),
|
|
1642
|
-
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ m(
|
|
1642
|
+
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ m(_, { responsive: !1, children: [
|
|
1643
1643
|
/* @__PURE__ */ o(B, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(bo, {}) }),
|
|
1644
1644
|
/* @__PURE__ */ o(B, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(go, {}) }),
|
|
1645
1645
|
/* @__PURE__ */ o(B, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
@@ -1661,15 +1661,13 @@ const io = ({
|
|
|
1661
1661
|
}),
|
|
1662
1662
|
[t]
|
|
1663
1663
|
);
|
|
1664
|
-
return Ve(() => (
|
|
1665
|
-
window.removeEventListener("click", t.interact);
|
|
1666
|
-
}), [t]), /* @__PURE__ */ o(
|
|
1664
|
+
return Ve(() => He(() => t.currentItem, t.interact), [t]), /* @__PURE__ */ o(
|
|
1667
1665
|
"div",
|
|
1668
1666
|
{
|
|
1669
1667
|
css: {
|
|
1670
1668
|
position: "fixed",
|
|
1671
1669
|
right: 0,
|
|
1672
|
-
bottom:
|
|
1670
|
+
bottom: rt,
|
|
1673
1671
|
width: Se.width,
|
|
1674
1672
|
height: Se.height,
|
|
1675
1673
|
zIndex: 998,
|
|
@@ -1760,7 +1758,7 @@ const Ao = H.create(
|
|
|
1760
1758
|
] })
|
|
1761
1759
|
] });
|
|
1762
1760
|
}
|
|
1763
|
-
),
|
|
1761
|
+
), _e = D(
|
|
1764
1762
|
({ onFulfilled: t }) => /* @__PURE__ */ o(
|
|
1765
1763
|
O,
|
|
1766
1764
|
{
|
|
@@ -1864,7 +1862,7 @@ const Ao = H.create(
|
|
|
1864
1862
|
({ playQueue: t }) => {
|
|
1865
1863
|
const { euiTheme: e } = ie();
|
|
1866
1864
|
return /* @__PURE__ */ m(
|
|
1867
|
-
|
|
1865
|
+
_,
|
|
1868
1866
|
{
|
|
1869
1867
|
alignItems: "center",
|
|
1870
1868
|
gutterSize: "m",
|
|
@@ -1905,9 +1903,9 @@ const Ao = H.create(
|
|
|
1905
1903
|
}
|
|
1906
1904
|
) })
|
|
1907
1905
|
] }),
|
|
1908
|
-
/* @__PURE__ */ o(
|
|
1906
|
+
/* @__PURE__ */ o(qe, { sizes: ["xs"], children: /* @__PURE__ */ o(Mo, { playQueue: t }) }),
|
|
1909
1907
|
/* @__PURE__ */ o(B, { grow: !0 }),
|
|
1910
|
-
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(
|
|
1908
|
+
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(_e, { onFulfilled: t.addItemFromDto }) })
|
|
1911
1909
|
]
|
|
1912
1910
|
}
|
|
1913
1911
|
);
|
|
@@ -1916,8 +1914,8 @@ const Ao = H.create(
|
|
|
1916
1914
|
({ playQueue: t }) => {
|
|
1917
1915
|
const { euiTheme: e } = ie();
|
|
1918
1916
|
return /* @__PURE__ */ m(G, { children: [
|
|
1919
|
-
/* @__PURE__ */ o(
|
|
1920
|
-
|
|
1917
|
+
/* @__PURE__ */ o(Ge, { children: /* @__PURE__ */ o(
|
|
1918
|
+
_,
|
|
1921
1919
|
{
|
|
1922
1920
|
responsive: !1,
|
|
1923
1921
|
justifyContent: "spaceBetween",
|
|
@@ -1944,7 +1942,7 @@ const Ao = H.create(
|
|
|
1944
1942
|
background: e.colors.backgroundBasePlain
|
|
1945
1943
|
},
|
|
1946
1944
|
children: [
|
|
1947
|
-
/* @__PURE__ */ o(
|
|
1945
|
+
/* @__PURE__ */ o(Je, { children: /* @__PURE__ */ o(
|
|
1948
1946
|
W,
|
|
1949
1947
|
{
|
|
1950
1948
|
id: "",
|
|
@@ -2015,13 +2013,13 @@ const Ao = H.create(
|
|
|
2015
2013
|
},
|
|
2016
2014
|
r({
|
|
2017
2015
|
name: "Move to the top",
|
|
2018
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2016
|
+
icon: /* @__PURE__ */ o(h, { type: tt }),
|
|
2019
2017
|
onClick: t.moveToTop,
|
|
2020
2018
|
disabled: !t.canMoveToTop
|
|
2021
2019
|
}),
|
|
2022
2020
|
r({
|
|
2023
2021
|
name: "Move to the bottom",
|
|
2024
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2022
|
+
icon: /* @__PURE__ */ o(h, { type: ot }),
|
|
2025
2023
|
onClick: t.moveToBottom,
|
|
2026
2024
|
disabled: !t.canMoveToBottom
|
|
2027
2025
|
}),
|
|
@@ -2113,9 +2111,9 @@ const Ao = H.create(
|
|
|
2113
2111
|
/* @__PURE__ */ o(Eo, { item: t })
|
|
2114
2112
|
] });
|
|
2115
2113
|
}
|
|
2116
|
-
),
|
|
2114
|
+
), _o = d(
|
|
2117
2115
|
({ item: t }) => /* @__PURE__ */ m(Fe, { isSelected: t.isCurrent, hasSelection: !0, hasActions: !0, children: [
|
|
2118
|
-
/* @__PURE__ */ o(
|
|
2116
|
+
/* @__PURE__ */ o(Ke, { children: /* @__PURE__ */ o(
|
|
2119
2117
|
W,
|
|
2120
2118
|
{
|
|
2121
2119
|
id: t.id.toString(),
|
|
@@ -2145,20 +2143,20 @@ const Ao = H.create(
|
|
|
2145
2143
|
),
|
|
2146
2144
|
/* @__PURE__ */ o(No, { item: t })
|
|
2147
2145
|
] })
|
|
2148
|
-
),
|
|
2146
|
+
), Lo = d(
|
|
2149
2147
|
({ playQueue: t }) => /* @__PURE__ */ o(
|
|
2150
2148
|
De,
|
|
2151
2149
|
{
|
|
2152
2150
|
tag: "tbody",
|
|
2153
2151
|
list: t.items,
|
|
2154
2152
|
setList: (e) => t.setItems(e),
|
|
2155
|
-
children: t.items.map((e) => /* @__PURE__ */ o(
|
|
2153
|
+
children: t.items.map((e) => /* @__PURE__ */ o(_o, { item: e }, e.id))
|
|
2156
2154
|
}
|
|
2157
2155
|
)
|
|
2158
2156
|
), jo = d(
|
|
2159
2157
|
({ playQueue: t }) => /* @__PURE__ */ m(Me, { children: [
|
|
2160
2158
|
/* @__PURE__ */ o(Do, { playQueue: t }),
|
|
2161
|
-
/* @__PURE__ */ o(
|
|
2159
|
+
/* @__PURE__ */ o(Lo, { playQueue: t })
|
|
2162
2160
|
] })
|
|
2163
2161
|
), $o = d(
|
|
2164
2162
|
({ playQueue: t }) => {
|
|
@@ -2183,7 +2181,7 @@ const Ao = H.create(
|
|
|
2183
2181
|
title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
|
|
2184
2182
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
2185
2183
|
actions: /* @__PURE__ */ o(
|
|
2186
|
-
|
|
2184
|
+
_e,
|
|
2187
2185
|
{
|
|
2188
2186
|
onFulfilled: t.addItemFromDto
|
|
2189
2187
|
}
|
|
@@ -2192,7 +2190,7 @@ const Ao = H.create(
|
|
|
2192
2190
|
) : /* @__PURE__ */ o(jo, { playQueue: t })
|
|
2193
2191
|
] });
|
|
2194
2192
|
}
|
|
2195
|
-
),
|
|
2193
|
+
), Le = ({
|
|
2196
2194
|
breadcrumbs: t,
|
|
2197
2195
|
tabs: e,
|
|
2198
2196
|
...r
|
|
@@ -2228,7 +2226,7 @@ const Ao = H.create(
|
|
|
2228
2226
|
const t = ce();
|
|
2229
2227
|
return /* @__PURE__ */ m(G, { children: [
|
|
2230
2228
|
/* @__PURE__ */ o(
|
|
2231
|
-
|
|
2229
|
+
Le,
|
|
2232
2230
|
{
|
|
2233
2231
|
pageTitle: "Play queue",
|
|
2234
2232
|
rightSideItems: []
|
|
@@ -2349,7 +2347,7 @@ const Ao = H.create(
|
|
|
2349
2347
|
({ playlist: t }) => {
|
|
2350
2348
|
const { euiTheme: e } = ie();
|
|
2351
2349
|
return /* @__PURE__ */ m(
|
|
2352
|
-
|
|
2350
|
+
_,
|
|
2353
2351
|
{
|
|
2354
2352
|
alignItems: "center",
|
|
2355
2353
|
gutterSize: "m",
|
|
@@ -2381,17 +2379,17 @@ const Ao = H.create(
|
|
|
2381
2379
|
}
|
|
2382
2380
|
) })
|
|
2383
2381
|
] }),
|
|
2384
|
-
/* @__PURE__ */ o(
|
|
2382
|
+
/* @__PURE__ */ o(qe, { sizes: ["xs"], children: /* @__PURE__ */ o(qo, { playlist: t }) }),
|
|
2385
2383
|
/* @__PURE__ */ o(B, { grow: !0 }),
|
|
2386
|
-
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(
|
|
2384
|
+
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(_e, { onFulfilled: t.addItemFromDto }) })
|
|
2387
2385
|
]
|
|
2388
2386
|
}
|
|
2389
2387
|
);
|
|
2390
2388
|
}
|
|
2391
2389
|
), Jo = d(
|
|
2392
2390
|
({ playlist: t }) => /* @__PURE__ */ m(G, { children: [
|
|
2393
|
-
/* @__PURE__ */ o(
|
|
2394
|
-
|
|
2391
|
+
/* @__PURE__ */ o(Ge, { children: /* @__PURE__ */ o(
|
|
2392
|
+
_,
|
|
2395
2393
|
{
|
|
2396
2394
|
responsive: !1,
|
|
2397
2395
|
justifyContent: "spaceBetween",
|
|
@@ -2409,7 +2407,7 @@ const Ao = H.create(
|
|
|
2409
2407
|
}
|
|
2410
2408
|
) }),
|
|
2411
2409
|
/* @__PURE__ */ m(Ae, { children: [
|
|
2412
|
-
/* @__PURE__ */ o(
|
|
2410
|
+
/* @__PURE__ */ o(Je, { children: /* @__PURE__ */ o(
|
|
2413
2411
|
W,
|
|
2414
2412
|
{
|
|
2415
2413
|
id: "",
|
|
@@ -2477,13 +2475,13 @@ const Ao = H.create(
|
|
|
2477
2475
|
},
|
|
2478
2476
|
r({
|
|
2479
2477
|
name: "Move to the top",
|
|
2480
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2478
|
+
icon: /* @__PURE__ */ o(h, { type: tt }),
|
|
2481
2479
|
onClick: t.moveToTop,
|
|
2482
2480
|
disabled: !t.canMoveToTop
|
|
2483
2481
|
}),
|
|
2484
2482
|
r({
|
|
2485
2483
|
name: "Move to the bottom",
|
|
2486
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2484
|
+
icon: /* @__PURE__ */ o(h, { type: ot }),
|
|
2487
2485
|
onClick: t.moveToBottom,
|
|
2488
2486
|
disabled: !t.canMoveToBottom
|
|
2489
2487
|
}),
|
|
@@ -2572,7 +2570,7 @@ const Ao = H.create(
|
|
|
2572
2570
|
] })
|
|
2573
2571
|
), Xo = d(
|
|
2574
2572
|
({ item: t }) => /* @__PURE__ */ m(Fe, { isSelected: t.isCurrent, hasSelection: !0, hasActions: !0, children: [
|
|
2575
|
-
/* @__PURE__ */ o(
|
|
2573
|
+
/* @__PURE__ */ o(Ke, { children: /* @__PURE__ */ o(
|
|
2576
2574
|
W,
|
|
2577
2575
|
{
|
|
2578
2576
|
id: t.id.toString(),
|
|
@@ -2861,11 +2859,11 @@ const ar = {
|
|
|
2861
2859
|
items: {
|
|
2862
2860
|
type: "array",
|
|
2863
2861
|
nullable: !0,
|
|
2864
|
-
items:
|
|
2862
|
+
items: dt
|
|
2865
2863
|
}
|
|
2866
2864
|
}
|
|
2867
2865
|
};
|
|
2868
|
-
class
|
|
2866
|
+
class yt {
|
|
2869
2867
|
constructor(e) {
|
|
2870
2868
|
this.playlist = e, M(this);
|
|
2871
2869
|
}
|
|
@@ -2887,10 +2885,10 @@ class ht {
|
|
|
2887
2885
|
}
|
|
2888
2886
|
S([
|
|
2889
2887
|
c.struct
|
|
2890
|
-
],
|
|
2888
|
+
], yt.prototype, "state", 1);
|
|
2891
2889
|
class P {
|
|
2892
2890
|
constructor(e) {
|
|
2893
|
-
this.playQueue = e, M(this), this.localStorageState = new
|
|
2891
|
+
this.playQueue = e, M(this), this.localStorageState = new yt(this);
|
|
2894
2892
|
}
|
|
2895
2893
|
localStorageState;
|
|
2896
2894
|
items = [];
|
|
@@ -3070,7 +3068,7 @@ const cr = ({ onClick: t }) => /* @__PURE__ */ o(O, { onClick: t, iconType: ae,
|
|
|
3070
3068
|
onFulfilled: e
|
|
3071
3069
|
}) => /* @__PURE__ */ o(O, { onClick: () => H.show(Vo, {
|
|
3072
3070
|
playlistListItem: t
|
|
3073
|
-
}).then(e), iconType: Qe, children: "Delete" }),
|
|
3071
|
+
}).then(e), iconType: Qe, children: "Delete" }), _r = d(
|
|
3074
3072
|
({ playlistListItem: t }) => {
|
|
3075
3073
|
const e = ve.playlist(
|
|
3076
3074
|
t.id
|
|
@@ -3086,7 +3084,7 @@ const cr = ({ onClick: t }) => /* @__PURE__ */ o(O, { onClick: t, iconType: ae,
|
|
|
3086
3084
|
}, [t, n, e]);
|
|
3087
3085
|
return /* @__PURE__ */ m(G, { children: [
|
|
3088
3086
|
/* @__PURE__ */ o(
|
|
3089
|
-
|
|
3087
|
+
Le,
|
|
3090
3088
|
{
|
|
3091
3089
|
pageTitle: t.name,
|
|
3092
3090
|
breadcrumbs: [
|
|
@@ -3216,7 +3214,7 @@ const cr = ({ onClick: t }) => /* @__PURE__ */ o(O, { onClick: t, iconType: ae,
|
|
|
3216
3214
|
/* @__PURE__ */ o(vr, { playlistList: t })
|
|
3217
3215
|
] })
|
|
3218
3216
|
), br = () => /* @__PURE__ */ o(
|
|
3219
|
-
|
|
3217
|
+
Le,
|
|
3220
3218
|
{
|
|
3221
3219
|
pageTitle: "Playlists",
|
|
3222
3220
|
breadcrumbs: [
|
|
@@ -3239,7 +3237,7 @@ const cr = ({ onClick: t }) => /* @__PURE__ */ o(O, { onClick: t, iconType: ae,
|
|
|
3239
3237
|
/* @__PURE__ */ o(fr, { playlistList: t })
|
|
3240
3238
|
] });
|
|
3241
3239
|
}
|
|
3242
|
-
),
|
|
3240
|
+
), Lr = D(() => {
|
|
3243
3241
|
const t = to();
|
|
3244
3242
|
return /* @__PURE__ */ m(G, { children: [
|
|
3245
3243
|
/* @__PURE__ */ o(br, {}),
|
|
@@ -3251,14 +3249,14 @@ export {
|
|
|
3251
3249
|
Qr as HydrangeanDivaProvider,
|
|
3252
3250
|
Dr as MediaPlayerLayout,
|
|
3253
3251
|
Er as MiniPlayer,
|
|
3254
|
-
|
|
3252
|
+
it as PlayQueueContext,
|
|
3255
3253
|
Nr as PlayQueuePage,
|
|
3256
3254
|
$o as PlayQueueSection,
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3255
|
+
_r as PlaylistDetailsPage,
|
|
3256
|
+
pt as PlaylistListContext,
|
|
3257
|
+
Lr as PlaylistListPage,
|
|
3260
3258
|
b as RepeatMode,
|
|
3261
|
-
|
|
3259
|
+
rt as bottomBarHeight,
|
|
3262
3260
|
ce as usePlayQueue,
|
|
3263
3261
|
to as usePlaylistList,
|
|
3264
3262
|
Ee as videoServiceIcons
|