@aigamo/hydrangean-diva 0.0.1-alpha.66 → 0.0.1-alpha.67
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +129 -123
- package/dist/index.es.js.map +1 -1
- package/dist/src/features/media-player.mini-player/stores/MiniPlayerStore.d.ts +1 -2
- package/dist/src/features/media-player.mini-player.abstractions/interfaces/IMiniPlayerStore.d.ts +0 -1
- package/dist/src/features/media-player.play-queue/stores/PlayQueueStore.d.ts +2 -0
- package/dist/src/features/media-player.play-queue.abstractions/interfaces/IPlayQueueStore.d.ts +1 -0
- package/package.json +5 -7
- package/dist/src/api/apis/MediaPlayerPlaylistsApi.d.ts +0 -79
- package/dist/src/api/apis/index.d.ts +0 -1
- package/dist/src/api/index.d.ts +0 -3
- package/dist/src/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosGetPlaylistResponseDto.d.ts +0 -22
- package/dist/src/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosListPlaylistsResponseDto.d.ts +0 -22
- package/dist/src/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosListTracksResponseDto.d.ts +0 -22
- package/dist/src/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto.d.ts +0 -38
- package/dist/src/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto.d.ts +0 -56
- package/dist/src/api/models/HydrangeanDivaMediaPlayerEndpointsPlaylistsCreatePlaylistRequest.d.ts +0 -32
- package/dist/src/api/models/HydrangeanDivaMediaPlayerEndpointsPlaylistsRenamePlaylistRequest.d.ts +0 -32
- package/dist/src/api/models/index.d.ts +0 -7
- package/dist/src/api/runtime.d.ts +0 -184
- package/dist/src/features/media-player.playlists/helpers/mediaPlayerPlaylistsApi.d.ts +0 -2
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 ht, memo as D, useCallback as I, useMemo as J, useLayoutEffect as yt } from "react";
|
|
3
|
+
import gt from "ajv";
|
|
4
|
+
import { computed as c, action as i, makeObservable as M, observable as R, reaction as vt } 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 N, EuiHideFor as $, EuiIcon as h, EuiContextMenu as Y, EuiPopover as K, EuiButtonEmpty as ge, EuiFormRow as te, EuiRange as Ve, 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 He, EuiTableHeaderMobile as Ue, EuiCheckbox as W, EuiTableHeader as Ae, EuiTableHeaderCellCheckbox as qe, EuiTableHeaderCell as U, EuiTableRowCell as q, EuiTableRow as Fe, EuiTableRowCellCheckbox as Ge, 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 Je, ArrowShuffleOffFilled as Ke, PreviousFilled as xt, SkipBack10Regular as We, PauseFilled as wt, PlayFilled as kt, SkipForward30Regular as Ye, NextFilled as Ot, ArrowRepeat1Filled as Bt, ArrowRepeatAllFilled as At, ArrowRepeatAllOffFilled as Ft, OpenRegular as Rt, Speaker2Regular as Xe, TopSpeedRegular as Mt, DismissRegular as L, MoreHorizontalFilled as le, NavigationPlayRegular as Qt, AddRegular as V, DeleteRegular as Qe, PlayRegular as ae, ArrowUploadRegular as Ze, ArrowDownloadRegular as et, 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 tt = 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 rt = 81, Ee = new Map(
|
|
|
32
32
|
bottomBar: "BottomBarStore",
|
|
33
33
|
playlistList: "PlaylistListStore",
|
|
34
34
|
playlist: (t) => `PlaylistStore/${t}`
|
|
35
|
-
},
|
|
35
|
+
}, ot = oe(void 0), F = () => re(ot), be = new gt({
|
|
36
36
|
coerceTypes: !0
|
|
37
37
|
});
|
|
38
38
|
function Ne(t, e) {
|
|
@@ -64,7 +64,7 @@ const _t = {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
class
|
|
67
|
+
class rt {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
this.bottomBar = e, M(this);
|
|
70
70
|
}
|
|
@@ -86,10 +86,10 @@ class st {
|
|
|
86
86
|
}
|
|
87
87
|
g([
|
|
88
88
|
c.struct
|
|
89
|
-
],
|
|
89
|
+
], rt.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 rt(this);
|
|
93
93
|
}
|
|
94
94
|
localStorageState;
|
|
95
95
|
repeat = b.Off;
|
|
@@ -267,34 +267,33 @@ g([
|
|
|
267
267
|
g([
|
|
268
268
|
i.bound
|
|
269
269
|
], v.prototype, "removeFromPlayQueue", 1);
|
|
270
|
-
const
|
|
270
|
+
const nt = oe(void 0), ce = () => re(nt), st = oe(void 0), it = () => re(st), Lt = ({
|
|
271
271
|
children: t
|
|
272
272
|
}) => {
|
|
273
|
-
const e =
|
|
273
|
+
const e = it(), 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,
|
|
280
|
-
for (var n =
|
|
281
|
-
(a = t[l]) && (n =
|
|
282
|
-
return
|
|
277
|
+
), /* @__PURE__ */ o(ot.Provider, { value: s, children: t });
|
|
278
|
+
}, lt = oe(void 0), jt = () => re(lt);
|
|
279
|
+
var $t = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, j = (t, e, r, s) => {
|
|
280
|
+
for (var n = Vt(e, r), l = t.length - 1, a; l >= 0; l--)
|
|
281
|
+
(a = t[l]) && (n = a(e, r, n) || n);
|
|
282
|
+
return n && $t(e, r, n), n;
|
|
283
283
|
};
|
|
284
|
-
class
|
|
284
|
+
class _ {
|
|
285
285
|
constructor(e, r, s) {
|
|
286
286
|
this.player = e, this.playQueue = r, this.bottomBar = s, M(this);
|
|
287
287
|
}
|
|
288
|
-
interacted
|
|
288
|
+
get interacted() {
|
|
289
|
+
return this.playQueue.interacted;
|
|
290
|
+
}
|
|
289
291
|
get controller() {
|
|
290
292
|
return this.player.controller;
|
|
291
293
|
}
|
|
292
294
|
get currentItem() {
|
|
293
295
|
return this.playQueue.currentItem;
|
|
294
296
|
}
|
|
295
|
-
interact() {
|
|
296
|
-
this.interacted = !0;
|
|
297
|
-
}
|
|
298
297
|
async onLoaded() {
|
|
299
298
|
this.interacted && await this.controller.play();
|
|
300
299
|
}
|
|
@@ -332,44 +331,41 @@ class N {
|
|
|
332
331
|
this.player.onControllerChange(e);
|
|
333
332
|
}
|
|
334
333
|
}
|
|
335
|
-
|
|
336
|
-
R
|
|
337
|
-
], N.prototype, "interacted", 2);
|
|
338
|
-
L([
|
|
334
|
+
j([
|
|
339
335
|
c
|
|
340
|
-
],
|
|
341
|
-
|
|
336
|
+
], _.prototype, "interacted");
|
|
337
|
+
j([
|
|
342
338
|
c
|
|
343
|
-
],
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
],
|
|
347
|
-
|
|
339
|
+
], _.prototype, "controller");
|
|
340
|
+
j([
|
|
341
|
+
c
|
|
342
|
+
], _.prototype, "currentItem");
|
|
343
|
+
j([
|
|
348
344
|
i.bound
|
|
349
|
-
],
|
|
350
|
-
|
|
345
|
+
], _.prototype, "onLoaded");
|
|
346
|
+
j([
|
|
351
347
|
i.bound
|
|
352
|
-
],
|
|
353
|
-
|
|
348
|
+
], _.prototype, "onPlay");
|
|
349
|
+
j([
|
|
354
350
|
i.bound
|
|
355
|
-
],
|
|
356
|
-
|
|
351
|
+
], _.prototype, "onPause");
|
|
352
|
+
j([
|
|
357
353
|
i.bound
|
|
358
|
-
],
|
|
359
|
-
|
|
354
|
+
], _.prototype, "onEnded");
|
|
355
|
+
j([
|
|
360
356
|
i.bound
|
|
361
|
-
],
|
|
362
|
-
|
|
357
|
+
], _.prototype, "onTimeUpdate");
|
|
358
|
+
j([
|
|
363
359
|
i.bound
|
|
364
|
-
],
|
|
360
|
+
], _.prototype, "onControllerChange");
|
|
365
361
|
const Ht = ({
|
|
366
362
|
children: t
|
|
367
363
|
}) => {
|
|
368
|
-
const e =
|
|
369
|
-
() => new
|
|
364
|
+
const e = it(), r = ce(), s = F(), [n] = C(
|
|
365
|
+
() => new _(e, r, s)
|
|
370
366
|
);
|
|
371
|
-
return /* @__PURE__ */ o(
|
|
372
|
-
},
|
|
367
|
+
return /* @__PURE__ */ o(lt.Provider, { value: n, children: t });
|
|
368
|
+
}, at = {
|
|
373
369
|
type: "object",
|
|
374
370
|
properties: {
|
|
375
371
|
url: {
|
|
@@ -405,7 +401,7 @@ const Ht = ({
|
|
|
405
401
|
items: {
|
|
406
402
|
type: "array",
|
|
407
403
|
nullable: !0,
|
|
408
|
-
items:
|
|
404
|
+
items: at
|
|
409
405
|
},
|
|
410
406
|
currentIndex: {
|
|
411
407
|
type: "integer",
|
|
@@ -573,7 +569,7 @@ var Kt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, u = (t, e,
|
|
|
573
569
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
574
570
|
return s && n && Kt(e, r, n), n;
|
|
575
571
|
};
|
|
576
|
-
class
|
|
572
|
+
class ct {
|
|
577
573
|
constructor(e) {
|
|
578
574
|
this.playQueue = e, M(this);
|
|
579
575
|
}
|
|
@@ -595,13 +591,14 @@ class ut {
|
|
|
595
591
|
}
|
|
596
592
|
u([
|
|
597
593
|
c.struct
|
|
598
|
-
],
|
|
594
|
+
], ct.prototype, "state", 1);
|
|
599
595
|
class p {
|
|
596
|
+
interacted = !1;
|
|
600
597
|
localStorageState;
|
|
601
598
|
items = [];
|
|
602
599
|
currentId;
|
|
603
600
|
constructor() {
|
|
604
|
-
M(this), this.localStorageState = new
|
|
601
|
+
M(this), this.localStorageState = new ct(this);
|
|
605
602
|
}
|
|
606
603
|
createItemFromDto(e) {
|
|
607
604
|
return Jt.fromDto(this, {
|
|
@@ -668,8 +665,11 @@ class p {
|
|
|
668
665
|
setItems(e) {
|
|
669
666
|
this.items = e;
|
|
670
667
|
}
|
|
668
|
+
interact() {
|
|
669
|
+
this.interacted = !0;
|
|
670
|
+
}
|
|
671
671
|
clear() {
|
|
672
|
-
this.currentIndex = void 0, this.items = [];
|
|
672
|
+
this.interact(), this.currentIndex = void 0, this.items = [];
|
|
673
673
|
}
|
|
674
674
|
unselectAll() {
|
|
675
675
|
for (const e of this.items)
|
|
@@ -680,7 +680,7 @@ class p {
|
|
|
680
680
|
e.select();
|
|
681
681
|
}
|
|
682
682
|
setCurrentItem(e) {
|
|
683
|
-
this.currentId = e?.id;
|
|
683
|
+
this.interact(), this.currentId = e?.id;
|
|
684
684
|
}
|
|
685
685
|
setNextItems(e) {
|
|
686
686
|
this.currentIndex !== void 0 && this.items.splice(this.currentIndex + 1, 0, ...e);
|
|
@@ -718,7 +718,7 @@ class p {
|
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
720
|
const { currentIndex: r } = this;
|
|
721
|
-
r !== void 0 && (this.items.splice(r, 0, ...e), this.currentIndex = r);
|
|
721
|
+
r !== void 0 && (this.interact(), this.items.splice(r, 0, ...e), this.currentIndex = r);
|
|
722
722
|
}
|
|
723
723
|
moveItem(e, r) {
|
|
724
724
|
const s = this.items.splice(this.items.indexOf(e), 1)[0];
|
|
@@ -734,7 +734,7 @@ class p {
|
|
|
734
734
|
pe(
|
|
735
735
|
this.items,
|
|
736
736
|
e.find((l) => l === r)
|
|
737
|
-
), this.currentItem !== r && (n ? await this.goToFirst() : this.currentIndex = s);
|
|
737
|
+
), this.currentItem !== r && (this.interact(), n ? await this.goToFirst() : this.currentIndex = s);
|
|
738
738
|
}
|
|
739
739
|
async removeSelectedItems() {
|
|
740
740
|
await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
|
|
@@ -752,16 +752,19 @@ class p {
|
|
|
752
752
|
);
|
|
753
753
|
}
|
|
754
754
|
async previous() {
|
|
755
|
-
this.currentIndex !== void 0 && this.hasPreviousItem && this.currentIndex
|
|
755
|
+
this.currentIndex !== void 0 && this.hasPreviousItem && (this.interact(), this.currentIndex--);
|
|
756
756
|
}
|
|
757
757
|
async next() {
|
|
758
|
-
this.currentIndex !== void 0 && this.hasNextItem && this.currentIndex
|
|
758
|
+
this.currentIndex !== void 0 && this.hasNextItem && (this.interact(), this.currentIndex++);
|
|
759
759
|
}
|
|
760
760
|
addItemFromDto(e) {
|
|
761
761
|
const r = this.createItemFromDto(e);
|
|
762
762
|
return this.addItems([r]);
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
+
u([
|
|
766
|
+
R
|
|
767
|
+
], p.prototype, "interacted", 2);
|
|
765
768
|
u([
|
|
766
769
|
R
|
|
767
770
|
], p.prototype, "items", 2);
|
|
@@ -822,6 +825,9 @@ u([
|
|
|
822
825
|
u([
|
|
823
826
|
i.bound
|
|
824
827
|
], p.prototype, "setItems", 1);
|
|
828
|
+
u([
|
|
829
|
+
i.bound
|
|
830
|
+
], p.prototype, "interact", 1);
|
|
825
831
|
u([
|
|
826
832
|
i.bound
|
|
827
833
|
], p.prototype, "clear", 1);
|
|
@@ -891,12 +897,12 @@ const Yt = ({
|
|
|
891
897
|
e.localStorageState
|
|
892
898
|
);
|
|
893
899
|
const r = ne();
|
|
894
|
-
return
|
|
900
|
+
return ht(() => vt(
|
|
895
901
|
() => e.currentItem,
|
|
896
902
|
async (s, n) => {
|
|
897
903
|
s === void 0 || n === void 0 || s.type === n.type && s.videoId === n.videoId && await r.setCurrentTime(0);
|
|
898
904
|
}
|
|
899
|
-
), [e, r]), /* @__PURE__ */ o(
|
|
905
|
+
), [e, r]), /* @__PURE__ */ o(nt.Provider, { value: e, children: t });
|
|
900
906
|
};
|
|
901
907
|
var Xt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, z = (t, e, r, s) => {
|
|
902
908
|
for (var n = s > 1 ? void 0 : s ? Zt(e, r) : e, l = t.length - 1, a; l >= 0; l--)
|
|
@@ -976,10 +982,10 @@ const eo = ({
|
|
|
976
982
|
children: t
|
|
977
983
|
}) => {
|
|
978
984
|
const [e] = C(() => new Q());
|
|
979
|
-
return /* @__PURE__ */ o(
|
|
980
|
-
},
|
|
985
|
+
return /* @__PURE__ */ o(st.Provider, { value: e, children: t });
|
|
986
|
+
}, dt = oe(
|
|
981
987
|
void 0
|
|
982
|
-
), to = () => re(
|
|
988
|
+
), to = () => re(dt);
|
|
983
989
|
var oo = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, fe = (t, e, r, s) => {
|
|
984
990
|
for (var n = s > 1 ? void 0 : s ? ro(e, r) : e, l = t.length - 1, a; l >= 0; l--)
|
|
985
991
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
@@ -1015,7 +1021,7 @@ var no = Object.defineProperty, so = Object.getOwnPropertyDescriptor, de = (t, e
|
|
|
1015
1021
|
(a = t[l]) && (n = (s ? a(e, r, n) : a(n)) || n);
|
|
1016
1022
|
return s && n && no(e, r, n), n;
|
|
1017
1023
|
};
|
|
1018
|
-
class
|
|
1024
|
+
class ut {
|
|
1019
1025
|
constructor(e) {
|
|
1020
1026
|
this.playlistList = e, M(this);
|
|
1021
1027
|
}
|
|
@@ -1042,12 +1048,12 @@ class mt {
|
|
|
1042
1048
|
}
|
|
1043
1049
|
de([
|
|
1044
1050
|
c.struct
|
|
1045
|
-
],
|
|
1051
|
+
], ut.prototype, "state", 1);
|
|
1046
1052
|
class ue {
|
|
1047
1053
|
localStorageState;
|
|
1048
1054
|
items = [];
|
|
1049
1055
|
constructor() {
|
|
1050
|
-
M(this), this.localStorageState = new
|
|
1056
|
+
M(this), this.localStorageState = new ut(this);
|
|
1051
1057
|
}
|
|
1052
1058
|
createItem(e) {
|
|
1053
1059
|
return new X(this, crypto.randomUUID(), e);
|
|
@@ -1081,7 +1087,7 @@ const io = ({
|
|
|
1081
1087
|
return he(
|
|
1082
1088
|
ve.playlistList,
|
|
1083
1089
|
e.localStorageState
|
|
1084
|
-
), /* @__PURE__ */ o(
|
|
1090
|
+
), /* @__PURE__ */ o(dt.Provider, { value: e, children: t });
|
|
1085
1091
|
}, Qr = ({
|
|
1086
1092
|
children: t,
|
|
1087
1093
|
nostalgicDivaProps: e
|
|
@@ -1108,7 +1114,7 @@ const io = ({
|
|
|
1108
1114
|
{
|
|
1109
1115
|
panelled: !0,
|
|
1110
1116
|
style: {
|
|
1111
|
-
minBlockSize: `max(460px, 100vh - ${
|
|
1117
|
+
minBlockSize: `max(460px, 100vh - ${tt}px)`
|
|
1112
1118
|
},
|
|
1113
1119
|
children: [
|
|
1114
1120
|
t,
|
|
@@ -1124,7 +1130,7 @@ const io = ({
|
|
|
1124
1130
|
{
|
|
1125
1131
|
title: `Shuffle: ${t.shuffle ? "On" : "Off"}`,
|
|
1126
1132
|
"aria-label": `Shuffle: ${t.shuffle ? "On" : "Off"}`,
|
|
1127
|
-
iconType: t.shuffle ?
|
|
1133
|
+
iconType: t.shuffle ? Je : Ke,
|
|
1128
1134
|
size: "s",
|
|
1129
1135
|
iconSize: "l",
|
|
1130
1136
|
onClick: t.toggleShuffle,
|
|
@@ -1152,7 +1158,7 @@ const io = ({
|
|
|
1152
1158
|
{
|
|
1153
1159
|
title: "Skip back 10 seconds",
|
|
1154
1160
|
"aria-label": "Skip back 10 seconds",
|
|
1155
|
-
iconType:
|
|
1161
|
+
iconType: We,
|
|
1156
1162
|
size: "s",
|
|
1157
1163
|
iconSize: "l",
|
|
1158
1164
|
onClick: t.skipBack10,
|
|
@@ -1194,7 +1200,7 @@ const io = ({
|
|
|
1194
1200
|
{
|
|
1195
1201
|
title: "Skip forward 30 seconds",
|
|
1196
1202
|
"aria-label": "Skip forward 30 seconds",
|
|
1197
|
-
iconType:
|
|
1203
|
+
iconType: Ye,
|
|
1198
1204
|
size: "s",
|
|
1199
1205
|
iconSize: "l",
|
|
1200
1206
|
onClick: t.skipForward30,
|
|
@@ -1215,7 +1221,7 @@ const io = ({
|
|
|
1215
1221
|
disabled: !t.canNext
|
|
1216
1222
|
}
|
|
1217
1223
|
);
|
|
1218
|
-
}),
|
|
1224
|
+
}), pt = {
|
|
1219
1225
|
[b.Off]: Ft,
|
|
1220
1226
|
[b.All]: At,
|
|
1221
1227
|
[b.One]: Bt
|
|
@@ -1226,7 +1232,7 @@ const io = ({
|
|
|
1226
1232
|
{
|
|
1227
1233
|
title: `Repeat: ${t.repeat === b.All ? "All" : t.repeat === b.One ? "One" : "Off"}`,
|
|
1228
1234
|
"aria-label": `Repeat: ${t.repeat === b.All ? "All" : t.repeat === b.One ? "One" : "Off"}`,
|
|
1229
|
-
iconType:
|
|
1235
|
+
iconType: pt[t.repeat],
|
|
1230
1236
|
size: "s",
|
|
1231
1237
|
iconSize: "l",
|
|
1232
1238
|
onClick: t.toggleRepeat,
|
|
@@ -1236,7 +1242,7 @@ const io = ({
|
|
|
1236
1242
|
}), go = d(() => {
|
|
1237
1243
|
const t = F();
|
|
1238
1244
|
return /* @__PURE__ */ m(
|
|
1239
|
-
|
|
1245
|
+
N,
|
|
1240
1246
|
{
|
|
1241
1247
|
responsive: !1,
|
|
1242
1248
|
gutterSize: "s",
|
|
@@ -1337,7 +1343,7 @@ const io = ({
|
|
|
1337
1343
|
), bo = d(() => {
|
|
1338
1344
|
const t = F();
|
|
1339
1345
|
return /* @__PURE__ */ o(
|
|
1340
|
-
|
|
1346
|
+
N,
|
|
1341
1347
|
{
|
|
1342
1348
|
responsive: !1,
|
|
1343
1349
|
gutterSize: "s",
|
|
@@ -1353,7 +1359,7 @@ const io = ({
|
|
|
1353
1359
|
{
|
|
1354
1360
|
title: "Mute",
|
|
1355
1361
|
"aria-label": "Mute",
|
|
1356
|
-
iconType:
|
|
1362
|
+
iconType: Xe,
|
|
1357
1363
|
size: "s",
|
|
1358
1364
|
iconSize: "l",
|
|
1359
1365
|
disabled: !t.controller.supports("setMuted")
|
|
@@ -1362,7 +1368,7 @@ const io = ({
|
|
|
1362
1368
|
}), So = d(
|
|
1363
1369
|
({ button: t, isOpen: e, closePopover: r }) => {
|
|
1364
1370
|
const s = F(), [n, l] = C("0"), a = ne();
|
|
1365
|
-
|
|
1371
|
+
yt(() => {
|
|
1366
1372
|
e && a.getVolume().then((y) => {
|
|
1367
1373
|
y !== void 0 && l(Math.floor(y * 100).toString());
|
|
1368
1374
|
});
|
|
@@ -1381,7 +1387,7 @@ const io = ({
|
|
|
1381
1387
|
closePopover: r,
|
|
1382
1388
|
anchorPosition: "upRight",
|
|
1383
1389
|
children: /* @__PURE__ */ o(te, { children: /* @__PURE__ */ m(
|
|
1384
|
-
|
|
1390
|
+
N,
|
|
1385
1391
|
{
|
|
1386
1392
|
responsive: !1,
|
|
1387
1393
|
gutterSize: "s",
|
|
@@ -1390,7 +1396,7 @@ const io = ({
|
|
|
1390
1396
|
children: [
|
|
1391
1397
|
/* @__PURE__ */ o(Io, {}),
|
|
1392
1398
|
/* @__PURE__ */ o(
|
|
1393
|
-
|
|
1399
|
+
Ve,
|
|
1394
1400
|
{
|
|
1395
1401
|
min: 0,
|
|
1396
1402
|
max: 100,
|
|
@@ -1417,7 +1423,7 @@ const io = ({
|
|
|
1417
1423
|
{
|
|
1418
1424
|
title: "Volume",
|
|
1419
1425
|
"aria-label": "Volume",
|
|
1420
|
-
iconType:
|
|
1426
|
+
iconType: Xe,
|
|
1421
1427
|
size: "s",
|
|
1422
1428
|
iconSize: "l",
|
|
1423
1429
|
onClick: () => r(!e),
|
|
@@ -1477,13 +1483,13 @@ const io = ({
|
|
|
1477
1483
|
},
|
|
1478
1484
|
a({
|
|
1479
1485
|
name: "Skip back 10 seconds",
|
|
1480
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
1486
|
+
icon: /* @__PURE__ */ o(h, { type: We }),
|
|
1481
1487
|
onClick: e.skipBack10,
|
|
1482
1488
|
disabled: !e.canSkipBack10
|
|
1483
1489
|
}),
|
|
1484
1490
|
a({
|
|
1485
1491
|
name: "Skip forward 30 seconds",
|
|
1486
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
1492
|
+
icon: /* @__PURE__ */ o(h, { type: Ye }),
|
|
1487
1493
|
onClick: e.skipForward30,
|
|
1488
1494
|
disabled: !e.canSkipForward30
|
|
1489
1495
|
}),
|
|
@@ -1492,7 +1498,7 @@ const io = ({
|
|
|
1492
1498
|
icon: /* @__PURE__ */ o(
|
|
1493
1499
|
h,
|
|
1494
1500
|
{
|
|
1495
|
-
type: e.shuffle ?
|
|
1501
|
+
type: e.shuffle ? Je : Ke
|
|
1496
1502
|
}
|
|
1497
1503
|
),
|
|
1498
1504
|
onClick: e.toggleShuffle,
|
|
@@ -1504,7 +1510,7 @@ const io = ({
|
|
|
1504
1510
|
icon: /* @__PURE__ */ o(
|
|
1505
1511
|
h,
|
|
1506
1512
|
{
|
|
1507
|
-
type:
|
|
1513
|
+
type: pt[e.repeat]
|
|
1508
1514
|
}
|
|
1509
1515
|
),
|
|
1510
1516
|
onClick: e.toggleRepeat,
|
|
@@ -1516,7 +1522,7 @@ const io = ({
|
|
|
1516
1522
|
},
|
|
1517
1523
|
a({
|
|
1518
1524
|
name: "Remove from play queue",
|
|
1519
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
1525
|
+
icon: /* @__PURE__ */ o(h, { type: L }),
|
|
1520
1526
|
onClick: e.removeFromPlayQueue,
|
|
1521
1527
|
disabled: !e.canRemoveFromPlayQueue
|
|
1522
1528
|
})
|
|
@@ -1579,7 +1585,7 @@ const io = ({
|
|
|
1579
1585
|
);
|
|
1580
1586
|
}), ko = D(
|
|
1581
1587
|
({ onClickPlayQueueButton: t }) => /* @__PURE__ */ m(
|
|
1582
|
-
|
|
1588
|
+
N,
|
|
1583
1589
|
{
|
|
1584
1590
|
responsive: !1,
|
|
1585
1591
|
gutterSize: "s",
|
|
@@ -1621,7 +1627,7 @@ const io = ({
|
|
|
1621
1627
|
[t, e]
|
|
1622
1628
|
);
|
|
1623
1629
|
return /* @__PURE__ */ o(
|
|
1624
|
-
|
|
1630
|
+
Ve,
|
|
1625
1631
|
{
|
|
1626
1632
|
min: 0,
|
|
1627
1633
|
max: 100,
|
|
@@ -1637,9 +1643,9 @@ const io = ({
|
|
|
1637
1643
|
}
|
|
1638
1644
|
);
|
|
1639
1645
|
}), zr = d(
|
|
1640
|
-
({ onClickPlayQueueButton: t }) => /* @__PURE__ */ o(Pt, { paddingSize: "s", children: /* @__PURE__ */ m(
|
|
1646
|
+
({ onClickPlayQueueButton: t }) => /* @__PURE__ */ o(Pt, { paddingSize: "s", children: /* @__PURE__ */ m(N, { direction: "column", gutterSize: "none", children: [
|
|
1641
1647
|
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ o(Oo, {}) }),
|
|
1642
|
-
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ m(
|
|
1648
|
+
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ m(N, { responsive: !1, children: [
|
|
1643
1649
|
/* @__PURE__ */ o(B, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(bo, {}) }),
|
|
1644
1650
|
/* @__PURE__ */ o(B, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(go, {}) }),
|
|
1645
1651
|
/* @__PURE__ */ o(B, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
@@ -1661,13 +1667,13 @@ const io = ({
|
|
|
1661
1667
|
}),
|
|
1662
1668
|
[t]
|
|
1663
1669
|
);
|
|
1664
|
-
return
|
|
1670
|
+
return /* @__PURE__ */ o(
|
|
1665
1671
|
"div",
|
|
1666
1672
|
{
|
|
1667
1673
|
css: {
|
|
1668
1674
|
position: "fixed",
|
|
1669
1675
|
right: 0,
|
|
1670
|
-
bottom:
|
|
1676
|
+
bottom: tt,
|
|
1671
1677
|
width: Se.width,
|
|
1672
1678
|
height: Se.height,
|
|
1673
1679
|
zIndex: 998,
|
|
@@ -1814,7 +1820,7 @@ const Ao = H.create(
|
|
|
1814
1820
|
}),
|
|
1815
1821
|
r({
|
|
1816
1822
|
name: "Remove",
|
|
1817
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
1823
|
+
icon: /* @__PURE__ */ o(h, { type: L }),
|
|
1818
1824
|
onClick: t.removeSelectedItems,
|
|
1819
1825
|
disabled: !t.canRemoveSelectedItems
|
|
1820
1826
|
}),
|
|
@@ -1862,7 +1868,7 @@ const Ao = H.create(
|
|
|
1862
1868
|
({ playQueue: t }) => {
|
|
1863
1869
|
const { euiTheme: e } = ie();
|
|
1864
1870
|
return /* @__PURE__ */ m(
|
|
1865
|
-
|
|
1871
|
+
N,
|
|
1866
1872
|
{
|
|
1867
1873
|
alignItems: "center",
|
|
1868
1874
|
gutterSize: "m",
|
|
@@ -1887,7 +1893,7 @@ const Ao = H.create(
|
|
|
1887
1893
|
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(
|
|
1888
1894
|
O,
|
|
1889
1895
|
{
|
|
1890
|
-
iconType:
|
|
1896
|
+
iconType: L,
|
|
1891
1897
|
onClick: t.removeSelectedItems,
|
|
1892
1898
|
disabled: !t.canRemoveSelectedItems,
|
|
1893
1899
|
children: "Remove"
|
|
@@ -1903,7 +1909,7 @@ const Ao = H.create(
|
|
|
1903
1909
|
}
|
|
1904
1910
|
) })
|
|
1905
1911
|
] }),
|
|
1906
|
-
/* @__PURE__ */ o(
|
|
1912
|
+
/* @__PURE__ */ o(He, { sizes: ["xs"], children: /* @__PURE__ */ o(Mo, { playQueue: t }) }),
|
|
1907
1913
|
/* @__PURE__ */ o(B, { grow: !0 }),
|
|
1908
1914
|
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(_e, { onFulfilled: t.addItemFromDto }) })
|
|
1909
1915
|
]
|
|
@@ -1914,8 +1920,8 @@ const Ao = H.create(
|
|
|
1914
1920
|
({ playQueue: t }) => {
|
|
1915
1921
|
const { euiTheme: e } = ie();
|
|
1916
1922
|
return /* @__PURE__ */ m(G, { children: [
|
|
1917
|
-
/* @__PURE__ */ o(
|
|
1918
|
-
|
|
1923
|
+
/* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ o(
|
|
1924
|
+
N,
|
|
1919
1925
|
{
|
|
1920
1926
|
responsive: !1,
|
|
1921
1927
|
justifyContent: "spaceBetween",
|
|
@@ -1942,7 +1948,7 @@ const Ao = H.create(
|
|
|
1942
1948
|
background: e.colors.backgroundBasePlain
|
|
1943
1949
|
},
|
|
1944
1950
|
children: [
|
|
1945
|
-
/* @__PURE__ */ o(
|
|
1951
|
+
/* @__PURE__ */ o(qe, { children: /* @__PURE__ */ o(
|
|
1946
1952
|
W,
|
|
1947
1953
|
{
|
|
1948
1954
|
id: "",
|
|
@@ -2013,13 +2019,13 @@ const Ao = H.create(
|
|
|
2013
2019
|
},
|
|
2014
2020
|
r({
|
|
2015
2021
|
name: "Move to the top",
|
|
2016
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2022
|
+
icon: /* @__PURE__ */ o(h, { type: Ze }),
|
|
2017
2023
|
onClick: t.moveToTop,
|
|
2018
2024
|
disabled: !t.canMoveToTop
|
|
2019
2025
|
}),
|
|
2020
2026
|
r({
|
|
2021
2027
|
name: "Move to the bottom",
|
|
2022
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2028
|
+
icon: /* @__PURE__ */ o(h, { type: et }),
|
|
2023
2029
|
onClick: t.moveToBottom,
|
|
2024
2030
|
disabled: !t.canMoveToBottom
|
|
2025
2031
|
}),
|
|
@@ -2028,7 +2034,7 @@ const Ao = H.create(
|
|
|
2028
2034
|
},
|
|
2029
2035
|
r({
|
|
2030
2036
|
name: "Remove",
|
|
2031
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2037
|
+
icon: /* @__PURE__ */ o(h, { type: L }),
|
|
2032
2038
|
onClick: t.remove,
|
|
2033
2039
|
className: "eui-showFor--xs--flex"
|
|
2034
2040
|
}),
|
|
@@ -2101,7 +2107,7 @@ const Ao = H.create(
|
|
|
2101
2107
|
/* @__PURE__ */ o(
|
|
2102
2108
|
O,
|
|
2103
2109
|
{
|
|
2104
|
-
iconType:
|
|
2110
|
+
iconType: L,
|
|
2105
2111
|
size: "s",
|
|
2106
2112
|
onClick: t.remove,
|
|
2107
2113
|
children: "Remove"
|
|
@@ -2113,7 +2119,7 @@ const Ao = H.create(
|
|
|
2113
2119
|
}
|
|
2114
2120
|
), _o = d(
|
|
2115
2121
|
({ item: t }) => /* @__PURE__ */ m(Fe, { isSelected: t.isCurrent, hasSelection: !0, hasActions: !0, children: [
|
|
2116
|
-
/* @__PURE__ */ o(
|
|
2122
|
+
/* @__PURE__ */ o(Ge, { children: /* @__PURE__ */ o(
|
|
2117
2123
|
W,
|
|
2118
2124
|
{
|
|
2119
2125
|
id: t.id.toString(),
|
|
@@ -2311,7 +2317,7 @@ const Ao = H.create(
|
|
|
2311
2317
|
}),
|
|
2312
2318
|
r({
|
|
2313
2319
|
name: "Remove",
|
|
2314
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2320
|
+
icon: /* @__PURE__ */ o(h, { type: L }),
|
|
2315
2321
|
onClick: t.removeSelectedItems,
|
|
2316
2322
|
disabled: !t.canRemoveSelectedItems
|
|
2317
2323
|
})
|
|
@@ -2347,7 +2353,7 @@ const Ao = H.create(
|
|
|
2347
2353
|
({ playlist: t }) => {
|
|
2348
2354
|
const { euiTheme: e } = ie();
|
|
2349
2355
|
return /* @__PURE__ */ m(
|
|
2350
|
-
|
|
2356
|
+
N,
|
|
2351
2357
|
{
|
|
2352
2358
|
alignItems: "center",
|
|
2353
2359
|
gutterSize: "m",
|
|
@@ -2372,14 +2378,14 @@ const Ao = H.create(
|
|
|
2372
2378
|
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(
|
|
2373
2379
|
O,
|
|
2374
2380
|
{
|
|
2375
|
-
iconType:
|
|
2381
|
+
iconType: L,
|
|
2376
2382
|
onClick: t.removeSelectedItems,
|
|
2377
2383
|
disabled: !t.canRemoveSelectedItems,
|
|
2378
2384
|
children: "Remove"
|
|
2379
2385
|
}
|
|
2380
2386
|
) })
|
|
2381
2387
|
] }),
|
|
2382
|
-
/* @__PURE__ */ o(
|
|
2388
|
+
/* @__PURE__ */ o(He, { sizes: ["xs"], children: /* @__PURE__ */ o(qo, { playlist: t }) }),
|
|
2383
2389
|
/* @__PURE__ */ o(B, { grow: !0 }),
|
|
2384
2390
|
/* @__PURE__ */ o(B, { grow: !1, children: /* @__PURE__ */ o(_e, { onFulfilled: t.addItemFromDto }) })
|
|
2385
2391
|
]
|
|
@@ -2388,8 +2394,8 @@ const Ao = H.create(
|
|
|
2388
2394
|
}
|
|
2389
2395
|
), Jo = d(
|
|
2390
2396
|
({ playlist: t }) => /* @__PURE__ */ m(G, { children: [
|
|
2391
|
-
/* @__PURE__ */ o(
|
|
2392
|
-
|
|
2397
|
+
/* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ o(
|
|
2398
|
+
N,
|
|
2393
2399
|
{
|
|
2394
2400
|
responsive: !1,
|
|
2395
2401
|
justifyContent: "spaceBetween",
|
|
@@ -2407,7 +2413,7 @@ const Ao = H.create(
|
|
|
2407
2413
|
}
|
|
2408
2414
|
) }),
|
|
2409
2415
|
/* @__PURE__ */ m(Ae, { children: [
|
|
2410
|
-
/* @__PURE__ */ o(
|
|
2416
|
+
/* @__PURE__ */ o(qe, { children: /* @__PURE__ */ o(
|
|
2411
2417
|
W,
|
|
2412
2418
|
{
|
|
2413
2419
|
id: "",
|
|
@@ -2475,13 +2481,13 @@ const Ao = H.create(
|
|
|
2475
2481
|
},
|
|
2476
2482
|
r({
|
|
2477
2483
|
name: "Move to the top",
|
|
2478
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2484
|
+
icon: /* @__PURE__ */ o(h, { type: Ze }),
|
|
2479
2485
|
onClick: t.moveToTop,
|
|
2480
2486
|
disabled: !t.canMoveToTop
|
|
2481
2487
|
}),
|
|
2482
2488
|
r({
|
|
2483
2489
|
name: "Move to the bottom",
|
|
2484
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2490
|
+
icon: /* @__PURE__ */ o(h, { type: et }),
|
|
2485
2491
|
onClick: t.moveToBottom,
|
|
2486
2492
|
disabled: !t.canMoveToBottom
|
|
2487
2493
|
}),
|
|
@@ -2490,7 +2496,7 @@ const Ao = H.create(
|
|
|
2490
2496
|
},
|
|
2491
2497
|
r({
|
|
2492
2498
|
name: "Remove",
|
|
2493
|
-
icon: /* @__PURE__ */ o(h, { type:
|
|
2499
|
+
icon: /* @__PURE__ */ o(h, { type: L }),
|
|
2494
2500
|
onClick: t.remove,
|
|
2495
2501
|
className: "eui-showFor--xs--flex"
|
|
2496
2502
|
}),
|
|
@@ -2559,7 +2565,7 @@ const Ao = H.create(
|
|
|
2559
2565
|
/* @__PURE__ */ o(
|
|
2560
2566
|
O,
|
|
2561
2567
|
{
|
|
2562
|
-
iconType:
|
|
2568
|
+
iconType: L,
|
|
2563
2569
|
size: "s",
|
|
2564
2570
|
onClick: t.remove,
|
|
2565
2571
|
children: "Remove"
|
|
@@ -2570,7 +2576,7 @@ const Ao = H.create(
|
|
|
2570
2576
|
] })
|
|
2571
2577
|
), Xo = d(
|
|
2572
2578
|
({ item: t }) => /* @__PURE__ */ m(Fe, { isSelected: t.isCurrent, hasSelection: !0, hasActions: !0, children: [
|
|
2573
|
-
/* @__PURE__ */ o(
|
|
2579
|
+
/* @__PURE__ */ o(Ge, { children: /* @__PURE__ */ o(
|
|
2574
2580
|
W,
|
|
2575
2581
|
{
|
|
2576
2582
|
id: t.id.toString(),
|
|
@@ -2859,11 +2865,11 @@ const ar = {
|
|
|
2859
2865
|
items: {
|
|
2860
2866
|
type: "array",
|
|
2861
2867
|
nullable: !0,
|
|
2862
|
-
items:
|
|
2868
|
+
items: at
|
|
2863
2869
|
}
|
|
2864
2870
|
}
|
|
2865
2871
|
};
|
|
2866
|
-
class
|
|
2872
|
+
class mt {
|
|
2867
2873
|
constructor(e) {
|
|
2868
2874
|
this.playlist = e, M(this);
|
|
2869
2875
|
}
|
|
@@ -2885,10 +2891,10 @@ class yt {
|
|
|
2885
2891
|
}
|
|
2886
2892
|
S([
|
|
2887
2893
|
c.struct
|
|
2888
|
-
],
|
|
2894
|
+
], mt.prototype, "state", 1);
|
|
2889
2895
|
class P {
|
|
2890
2896
|
constructor(e) {
|
|
2891
|
-
this.playQueue = e, M(this), this.localStorageState = new
|
|
2897
|
+
this.playQueue = e, M(this), this.localStorageState = new mt(this);
|
|
2892
2898
|
}
|
|
2893
2899
|
localStorageState;
|
|
2894
2900
|
items = [];
|
|
@@ -3249,14 +3255,14 @@ export {
|
|
|
3249
3255
|
Qr as HydrangeanDivaProvider,
|
|
3250
3256
|
Dr as MediaPlayerLayout,
|
|
3251
3257
|
Er as MiniPlayer,
|
|
3252
|
-
|
|
3258
|
+
nt as PlayQueueContext,
|
|
3253
3259
|
Nr as PlayQueuePage,
|
|
3254
3260
|
$o as PlayQueueSection,
|
|
3255
3261
|
_r as PlaylistDetailsPage,
|
|
3256
|
-
|
|
3262
|
+
dt as PlaylistListContext,
|
|
3257
3263
|
Lr as PlaylistListPage,
|
|
3258
3264
|
b as RepeatMode,
|
|
3259
|
-
|
|
3265
|
+
tt as bottomBarHeight,
|
|
3260
3266
|
ce as usePlayQueue,
|
|
3261
3267
|
to as usePlaylistList,
|
|
3262
3268
|
Ee as videoServiceIcons
|