@aigamo/hydrangean-diva 0.0.1-alpha.59 → 0.0.1-alpha.60
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
|
@@ -5,14 +5,24 @@ import Fo from "ajv";
|
|
|
5
5
|
import { computed as f, action as u, makeObservable as ae, observable as te, reaction as Mo } from "mobx";
|
|
6
6
|
import { useLocalStorageState as bt } from "@aigamo/route-sphere";
|
|
7
7
|
import { pull as vt } from "lodash-es";
|
|
8
|
-
import { useNostalgicDiva as Ge, nullPlayerController as Do, NostalgicDivaProvider as Bo, NostalgicDiva as $o, findVideoService as
|
|
9
|
-
import { EuiPageTemplate as Je, EuiSpacer as St, EuiButtonIcon as ie, EuiHideFor as mt, EuiFlexGroup as be, EuiIcon as z, EuiContextMenu as Pt, EuiButtonEmpty as It, EuiPopover as Ke, EuiFormRow as Ve, EuiRange as Dr, EuiFlexItem as K, EuiBottomBar as
|
|
8
|
+
import { useNostalgicDiva as Ge, nullPlayerController as Do, NostalgicDivaProvider as Bo, NostalgicDiva as $o, findVideoService as jo } from "@aigamo/nostalgic-diva";
|
|
9
|
+
import { EuiPageTemplate as Je, EuiSpacer as St, EuiButtonIcon as ie, EuiHideFor as mt, EuiFlexGroup as be, EuiIcon as z, EuiContextMenu as Pt, EuiButtonEmpty as It, EuiPopover as Ke, EuiFormRow as Ve, EuiRange as Dr, EuiFlexItem as K, EuiBottomBar as No, useGeneratedHtmlId as Vt, EuiModalHeaderTitle as Ut, EuiModalHeader as Wt, EuiForm as qt, EuiFieldText as gt, EuiModalBody as Ht, EuiModalFooter as Gt, EuiButton as J, EuiModal as Jt, useEuiTheme as Xe, EuiCheckbox as Ct, EuiTableHeaderCellCheckbox as Br, EuiTableHeaderCell as Te, EuiTableHeader as Kt, EuiTableRowCell as xe, EuiTableRowCellCheckbox as $r, EuiLink as Xt, EuiTableRow as Zt, EuiTable as er, EuiEmptyPrompt as Lo, EuiConfirmModal as Qo } from "@elastic/eui";
|
|
10
10
|
import { observer as P } from "mobx-react-lite";
|
|
11
|
-
import { ArrowShuffleFilled as zo, ArrowShuffleOffFilled as Yo, PreviousFilled as Vo, SkipBack10Regular as
|
|
11
|
+
import { ArrowShuffleFilled as zo, ArrowShuffleOffFilled as Yo, PreviousFilled as Vo, SkipBack10Regular as jr, PauseFilled as Uo, PlayFilled as Wo, SkipForward30Regular as Nr, NextFilled as qo, ArrowRepeat1Filled as Ho, ArrowRepeatAllFilled as Go, ArrowRepeatAllOffFilled as Jo, OpenRegular as Ko, Speaker2Regular as Lr, TopSpeedRegular as Xo, DismissRegular as Ze, MoreHorizontalFilled as tr, NavigationPlayRegular as Zo, AddRegular as ke, DeleteRegular as Qr, ArrowUploadRegular as zr, ArrowDownloadRegular as Yr, PlayRegular as rr, RenameRegular as en } from "@fluentui/react-icons";
|
|
12
12
|
import Se from "ez-modal-react";
|
|
13
13
|
import { ReactSortable as or } from "react-sortablejs";
|
|
14
14
|
import { useRouter as nr } from "@tanstack/react-router";
|
|
15
|
-
const Vr = 81
|
|
15
|
+
const Vr = 81, ir = new Map(
|
|
16
|
+
Object.entries({
|
|
17
|
+
Audio: "",
|
|
18
|
+
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
19
|
+
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
20
|
+
SoundCloud: "https://soundcloud.com/favicon.ico",
|
|
21
|
+
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
22
|
+
Vimeo: "https://vimeo.com/favicon.ico",
|
|
23
|
+
YouTube: "https://www.youtube.com/favicon.ico"
|
|
24
|
+
})
|
|
25
|
+
);
|
|
16
26
|
var yt = { exports: {} }, ze = {};
|
|
17
27
|
var Cr;
|
|
18
28
|
function tn() {
|
|
@@ -183,27 +193,27 @@ function rn() {
|
|
|
183
193
|
Pe < 0 && F("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
184
194
|
}
|
|
185
195
|
}
|
|
186
|
-
var $e = re.ReactCurrentDispatcher,
|
|
196
|
+
var $e = re.ReactCurrentDispatcher, je;
|
|
187
197
|
function we(n, c, p) {
|
|
188
198
|
{
|
|
189
|
-
if (
|
|
199
|
+
if (je === void 0)
|
|
190
200
|
try {
|
|
191
201
|
throw Error();
|
|
192
202
|
} catch (E) {
|
|
193
203
|
var v = E.stack.trim().match(/\n( *(at )?)/);
|
|
194
|
-
|
|
204
|
+
je = v && v[1] || "";
|
|
195
205
|
}
|
|
196
206
|
return `
|
|
197
|
-
` +
|
|
207
|
+
` + je + n;
|
|
198
208
|
}
|
|
199
209
|
}
|
|
200
|
-
var
|
|
210
|
+
var Ne = !1, Ee;
|
|
201
211
|
{
|
|
202
212
|
var At = typeof WeakMap == "function" ? WeakMap : Map;
|
|
203
213
|
Ee = new At();
|
|
204
214
|
}
|
|
205
215
|
function h(n, c) {
|
|
206
|
-
if (!n ||
|
|
216
|
+
if (!n || Ne)
|
|
207
217
|
return "";
|
|
208
218
|
{
|
|
209
219
|
var p = Ee.get(n);
|
|
@@ -211,7 +221,7 @@ function rn() {
|
|
|
211
221
|
return p;
|
|
212
222
|
}
|
|
213
223
|
var v;
|
|
214
|
-
|
|
224
|
+
Ne = !0;
|
|
215
225
|
var E = Error.prepareStackTrace;
|
|
216
226
|
Error.prepareStackTrace = void 0;
|
|
217
227
|
var k;
|
|
@@ -268,7 +278,7 @@ function rn() {
|
|
|
268
278
|
}
|
|
269
279
|
}
|
|
270
280
|
} finally {
|
|
271
|
-
|
|
281
|
+
Ne = !1, $e.current = k, _t(), Error.prepareStackTrace = E;
|
|
272
282
|
}
|
|
273
283
|
var _e = n ? n.displayName || n.name : "", Ce = _e ? we(_e) : "";
|
|
274
284
|
return typeof n == "function" && Ee.set(n, Ce), Ce;
|
|
@@ -756,13 +766,13 @@ function an() {
|
|
|
756
766
|
function $e(h) {
|
|
757
767
|
return L(h) === q;
|
|
758
768
|
}
|
|
759
|
-
function
|
|
769
|
+
function je(h) {
|
|
760
770
|
return L(h) === W;
|
|
761
771
|
}
|
|
762
772
|
function we(h) {
|
|
763
773
|
return L(h) === r;
|
|
764
774
|
}
|
|
765
|
-
function
|
|
775
|
+
function Ne(h) {
|
|
766
776
|
return L(h) === s;
|
|
767
777
|
}
|
|
768
778
|
function Ee(h) {
|
|
@@ -771,7 +781,7 @@ function an() {
|
|
|
771
781
|
function At(h) {
|
|
772
782
|
return L(h) === T;
|
|
773
783
|
}
|
|
774
|
-
O.AsyncMode = d, O.ConcurrentMode = oe, O.ContextConsumer = Me, O.ContextProvider = nt, O.Element = it, O.ForwardRef = Et, O.Fragment = Rt, O.Lazy = at, O.Memo = fe, O.Portal = ve, O.Profiler = Pe, O.StrictMode = st, O.Suspense = lt, O.isAsyncMode = ct, O.isConcurrentMode = Be, O.isContextConsumer = ut, O.isContextProvider = dt, O.isElement = pt, O.isForwardRef = Ot, O.isFragment = _t, O.isLazy = $e, O.isMemo =
|
|
784
|
+
O.AsyncMode = d, O.ConcurrentMode = oe, O.ContextConsumer = Me, O.ContextProvider = nt, O.Element = it, O.ForwardRef = Et, O.Fragment = Rt, O.Lazy = at, O.Memo = fe, O.Portal = ve, O.Profiler = Pe, O.StrictMode = st, O.Suspense = lt, O.isAsyncMode = ct, O.isConcurrentMode = Be, O.isContextConsumer = ut, O.isContextProvider = dt, O.isElement = pt, O.isForwardRef = Ot, O.isFragment = _t, O.isLazy = $e, O.isMemo = je, O.isPortal = we, O.isProfiler = Ne, O.isStrictMode = Ee, O.isSuspense = At, O.isValidElementType = H, O.typeOf = L;
|
|
775
785
|
})()), O;
|
|
776
786
|
}
|
|
777
787
|
var Rr;
|
|
@@ -953,7 +963,7 @@ var yn = /[A-Z]|^ms/g, hn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Wr = function(t) {
|
|
|
953
963
|
return t.charCodeAt(1) === 45;
|
|
954
964
|
}, _r = function(t) {
|
|
955
965
|
return t != null && typeof t != "boolean";
|
|
956
|
-
},
|
|
966
|
+
}, jt = /* @__PURE__ */ mn(function(e) {
|
|
957
967
|
return Wr(e) ? e : e.replace(yn, "-$&").toLowerCase();
|
|
958
968
|
}), Ar = function(t, r) {
|
|
959
969
|
switch (t) {
|
|
@@ -1023,16 +1033,16 @@ function vn(e, t, r) {
|
|
|
1023
1033
|
var l = r[s];
|
|
1024
1034
|
if (typeof l != "object") {
|
|
1025
1035
|
var y = l;
|
|
1026
|
-
_r(y) && (a +=
|
|
1036
|
+
_r(y) && (a += jt(s) + ":" + Ar(s, y) + ";");
|
|
1027
1037
|
} else if (Array.isArray(l) && typeof l[0] == "string" && t == null)
|
|
1028
1038
|
for (var m = 0; m < l.length; m++)
|
|
1029
|
-
_r(l[m]) && (a +=
|
|
1039
|
+
_r(l[m]) && (a += jt(s) + ":" + Ar(s, l[m]) + ";");
|
|
1030
1040
|
else {
|
|
1031
1041
|
var g = We(e, t, l);
|
|
1032
1042
|
switch (s) {
|
|
1033
1043
|
case "animation":
|
|
1034
1044
|
case "animationName": {
|
|
1035
|
-
a +=
|
|
1045
|
+
a += jt(s) + ":" + g + ";";
|
|
1036
1046
|
break;
|
|
1037
1047
|
}
|
|
1038
1048
|
default:
|
|
@@ -1130,12 +1140,12 @@ const wn = ({
|
|
|
1130
1140
|
bottomBar: "BottomBarStore",
|
|
1131
1141
|
playlistList: "PlaylistListStore",
|
|
1132
1142
|
playlist: (e) => `PlaylistStore/${e}`
|
|
1133
|
-
}, Jr = qe(void 0), X = () => Ae(Jr),
|
|
1143
|
+
}, Jr = qe(void 0), X = () => Ae(Jr), Nt = new Fo({
|
|
1134
1144
|
coerceTypes: !0
|
|
1135
1145
|
});
|
|
1136
|
-
function
|
|
1146
|
+
function ar(e, t) {
|
|
1137
1147
|
let r;
|
|
1138
|
-
if (r =
|
|
1148
|
+
if (r = Nt.getSchema(t), r === void 0 && (Nt.addSchema(e, t), r = Nt.getSchema(t)), r === void 0 || r.schema !== e)
|
|
1139
1149
|
throw new Error(
|
|
1140
1150
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1141
1151
|
e
|
|
@@ -1176,7 +1186,7 @@ class Kr {
|
|
|
1176
1186
|
this.bottomBar.repeat = t.repeat ?? B.Off, this.bottomBar.shuffle = t.shuffle ?? !1;
|
|
1177
1187
|
}
|
|
1178
1188
|
validateState(t) {
|
|
1179
|
-
return
|
|
1189
|
+
return ar(
|
|
1180
1190
|
On,
|
|
1181
1191
|
"BottomBarLocalStorageState"
|
|
1182
1192
|
)(t);
|
|
@@ -1516,7 +1526,7 @@ var Bn = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, V = (e, t,
|
|
|
1516
1526
|
(l = e[s]) && (i = (a ? l(t, r, i) : l(i)) || i);
|
|
1517
1527
|
return a && i && Bn(t, r, i), i;
|
|
1518
1528
|
};
|
|
1519
|
-
const
|
|
1529
|
+
const j = class Qt {
|
|
1520
1530
|
constructor(t, r) {
|
|
1521
1531
|
this.playQueue = t, this.dto = r, ae(this), this.id = Qt.nextId++;
|
|
1522
1532
|
}
|
|
@@ -1604,72 +1614,72 @@ const N = class Qt {
|
|
|
1604
1614
|
};
|
|
1605
1615
|
V([
|
|
1606
1616
|
te
|
|
1607
|
-
],
|
|
1617
|
+
], j.prototype, "isSelected", 2);
|
|
1608
1618
|
V([
|
|
1609
1619
|
f
|
|
1610
|
-
],
|
|
1620
|
+
], j.prototype, "isCurrent", 1);
|
|
1611
1621
|
V([
|
|
1612
1622
|
f
|
|
1613
|
-
],
|
|
1623
|
+
], j.prototype, "index", 1);
|
|
1614
1624
|
V([
|
|
1615
1625
|
f
|
|
1616
|
-
],
|
|
1626
|
+
], j.prototype, "isFirst", 1);
|
|
1617
1627
|
V([
|
|
1618
1628
|
f
|
|
1619
|
-
],
|
|
1629
|
+
], j.prototype, "isLast", 1);
|
|
1620
1630
|
V([
|
|
1621
1631
|
f
|
|
1622
|
-
],
|
|
1632
|
+
], j.prototype, "canMoveToTop", 1);
|
|
1623
1633
|
V([
|
|
1624
1634
|
f
|
|
1625
|
-
],
|
|
1635
|
+
], j.prototype, "canMoveToBottom", 1);
|
|
1626
1636
|
V([
|
|
1627
1637
|
f
|
|
1628
|
-
],
|
|
1638
|
+
], j.prototype, "canRemoveToTop", 1);
|
|
1629
1639
|
V([
|
|
1630
1640
|
f
|
|
1631
|
-
],
|
|
1641
|
+
], j.prototype, "canRemoveOthers", 1);
|
|
1632
1642
|
V([
|
|
1633
1643
|
u.bound
|
|
1634
|
-
],
|
|
1644
|
+
], j.prototype, "unselect", 1);
|
|
1635
1645
|
V([
|
|
1636
1646
|
u.bound
|
|
1637
|
-
],
|
|
1647
|
+
], j.prototype, "select", 1);
|
|
1638
1648
|
V([
|
|
1639
1649
|
u.bound
|
|
1640
|
-
],
|
|
1650
|
+
], j.prototype, "toggleSelected", 1);
|
|
1641
1651
|
V([
|
|
1642
1652
|
u.bound
|
|
1643
|
-
],
|
|
1653
|
+
], j.prototype, "play", 1);
|
|
1644
1654
|
V([
|
|
1645
1655
|
u.bound
|
|
1646
|
-
],
|
|
1656
|
+
], j.prototype, "remove", 1);
|
|
1647
1657
|
V([
|
|
1648
1658
|
u.bound
|
|
1649
|
-
],
|
|
1659
|
+
], j.prototype, "playFirst", 1);
|
|
1650
1660
|
V([
|
|
1651
1661
|
u.bound
|
|
1652
|
-
],
|
|
1662
|
+
], j.prototype, "playNext", 1);
|
|
1653
1663
|
V([
|
|
1654
1664
|
u.bound
|
|
1655
|
-
],
|
|
1665
|
+
], j.prototype, "addToPlayQueue", 1);
|
|
1656
1666
|
V([
|
|
1657
1667
|
u.bound
|
|
1658
|
-
],
|
|
1668
|
+
], j.prototype, "moveToTop", 1);
|
|
1659
1669
|
V([
|
|
1660
1670
|
u.bound
|
|
1661
|
-
],
|
|
1671
|
+
], j.prototype, "moveToBottom", 1);
|
|
1662
1672
|
V([
|
|
1663
1673
|
u.bound
|
|
1664
|
-
],
|
|
1674
|
+
], j.prototype, "removeToTop", 1);
|
|
1665
1675
|
V([
|
|
1666
1676
|
u.bound
|
|
1667
|
-
],
|
|
1668
|
-
let
|
|
1669
|
-
var
|
|
1677
|
+
], j.prototype, "removeOthers", 1);
|
|
1678
|
+
let jn = j;
|
|
1679
|
+
var Nn = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, b = (e, t, r, a) => {
|
|
1670
1680
|
for (var i = a > 1 ? void 0 : a ? Ln(t, r) : t, s = e.length - 1, l; s >= 0; s--)
|
|
1671
1681
|
(l = e[s]) && (i = (a ? l(t, r, i) : l(i)) || i);
|
|
1672
|
-
return a && i &&
|
|
1682
|
+
return a && i && Nn(t, r, i), i;
|
|
1673
1683
|
};
|
|
1674
1684
|
class oo {
|
|
1675
1685
|
constructor(t) {
|
|
@@ -1688,7 +1698,7 @@ class oo {
|
|
|
1688
1698
|
) ?? [], this.playQueue.currentIndex = t.currentIndex;
|
|
1689
1699
|
}
|
|
1690
1700
|
validateState(t) {
|
|
1691
|
-
return
|
|
1701
|
+
return ar(Dn, "PlayQueueDto")(t);
|
|
1692
1702
|
}
|
|
1693
1703
|
}
|
|
1694
1704
|
b([
|
|
@@ -1702,7 +1712,7 @@ class S {
|
|
|
1702
1712
|
ae(this), this.localStorageState = new oo(this);
|
|
1703
1713
|
}
|
|
1704
1714
|
createItemFromDto(t) {
|
|
1705
|
-
return
|
|
1715
|
+
return jn.fromDto(this, {
|
|
1706
1716
|
url: t.url,
|
|
1707
1717
|
type: t.type,
|
|
1708
1718
|
videoId: t.videoId,
|
|
@@ -2250,7 +2260,7 @@ const Jn = ({
|
|
|
2250
2260
|
{
|
|
2251
2261
|
title: "Skip back 10 seconds",
|
|
2252
2262
|
"aria-label": "Skip back 10 seconds",
|
|
2253
|
-
iconType:
|
|
2263
|
+
iconType: jr,
|
|
2254
2264
|
size: "s",
|
|
2255
2265
|
iconSize: "l",
|
|
2256
2266
|
onClick: e.skipBack10,
|
|
@@ -2292,7 +2302,7 @@ const Jn = ({
|
|
|
2292
2302
|
{
|
|
2293
2303
|
title: "Skip forward 30 seconds",
|
|
2294
2304
|
"aria-label": "Skip forward 30 seconds",
|
|
2295
|
-
iconType:
|
|
2305
|
+
iconType: Nr,
|
|
2296
2306
|
size: "s",
|
|
2297
2307
|
iconSize: "l",
|
|
2298
2308
|
onClick: e.skipForward30,
|
|
@@ -2351,15 +2361,7 @@ const Jn = ({
|
|
|
2351
2361
|
]
|
|
2352
2362
|
}
|
|
2353
2363
|
);
|
|
2354
|
-
}),
|
|
2355
|
-
Audio: "",
|
|
2356
|
-
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
2357
|
-
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
2358
|
-
SoundCloud: "https://soundcloud.com/favicon.ico",
|
|
2359
|
-
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
2360
|
-
Vimeo: "https://vimeo.com/favicon.ico",
|
|
2361
|
-
YouTube: "https://www.youtube.com/favicon.ico"
|
|
2362
|
-
}, si = de(
|
|
2364
|
+
}), si = de(
|
|
2363
2365
|
({ item: e, closePopover: t }) => {
|
|
2364
2366
|
const r = $(
|
|
2365
2367
|
({
|
|
@@ -2420,7 +2422,7 @@ const Jn = ({
|
|
|
2420
2422
|
button: /* @__PURE__ */ o(
|
|
2421
2423
|
It,
|
|
2422
2424
|
{
|
|
2423
|
-
iconType:
|
|
2425
|
+
iconType: ir.get(e.type),
|
|
2424
2426
|
size: "s",
|
|
2425
2427
|
onClick: a,
|
|
2426
2428
|
children: e.title
|
|
@@ -2577,13 +2579,13 @@ const Jn = ({
|
|
|
2577
2579
|
},
|
|
2578
2580
|
{
|
|
2579
2581
|
name: "Skip back 10 seconds",
|
|
2580
|
-
icon: /* @__PURE__ */ o(z, { type:
|
|
2582
|
+
icon: /* @__PURE__ */ o(z, { type: jr }),
|
|
2581
2583
|
onClick: a,
|
|
2582
2584
|
disabled: !t.canSkipBack10
|
|
2583
2585
|
},
|
|
2584
2586
|
{
|
|
2585
2587
|
name: "Skip forward 30 seconds",
|
|
2586
|
-
icon: /* @__PURE__ */ o(z, { type:
|
|
2588
|
+
icon: /* @__PURE__ */ o(z, { type: Nr }),
|
|
2587
2589
|
onClick: i,
|
|
2588
2590
|
disabled: !t.canSkipForward30
|
|
2589
2591
|
},
|
|
@@ -2721,7 +2723,7 @@ const Jn = ({
|
|
|
2721
2723
|
}
|
|
2722
2724
|
);
|
|
2723
2725
|
}), Ia = P(
|
|
2724
|
-
({ onClickPlayQueueButton: e }) => /* @__PURE__ */ o(
|
|
2726
|
+
({ onClickPlayQueueButton: e }) => /* @__PURE__ */ o(No, { paddingSize: "s", children: /* @__PURE__ */ w(be, { direction: "column", gutterSize: "none", children: [
|
|
2725
2727
|
/* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(gi, {}) }),
|
|
2726
2728
|
/* @__PURE__ */ o(K, { children: /* @__PURE__ */ w(be, { responsive: !1, children: [
|
|
2727
2729
|
/* @__PURE__ */ o(K, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(ci, {}) }),
|
|
@@ -2789,7 +2791,7 @@ const Si = Se.create(
|
|
|
2789
2791
|
g.preventDefault();
|
|
2790
2792
|
try {
|
|
2791
2793
|
m(!0);
|
|
2792
|
-
const I =
|
|
2794
|
+
const I = jo(a);
|
|
2793
2795
|
if (I === void 0)
|
|
2794
2796
|
return;
|
|
2795
2797
|
const T = I.extractVideoId(a);
|
|
@@ -3090,7 +3092,7 @@ const Si = Se.create(
|
|
|
3090
3092
|
/* @__PURE__ */ o(xe, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
3091
3093
|
"img",
|
|
3092
3094
|
{
|
|
3093
|
-
src:
|
|
3095
|
+
src: ir.get(e.type),
|
|
3094
3096
|
width: 16,
|
|
3095
3097
|
height: 16,
|
|
3096
3098
|
alt: e.type
|
|
@@ -3408,7 +3410,7 @@ const Si = Se.create(
|
|
|
3408
3410
|
),
|
|
3409
3411
|
/* @__PURE__ */ o(Bi, { item: e })
|
|
3410
3412
|
] })
|
|
3411
|
-
),
|
|
3413
|
+
), ji = P(
|
|
3412
3414
|
({ item: e }) => /* @__PURE__ */ w(Zt, { isSelected: e.isCurrent, children: [
|
|
3413
3415
|
/* @__PURE__ */ o($r, { children: /* @__PURE__ */ o(
|
|
3414
3416
|
Ct,
|
|
@@ -3421,7 +3423,7 @@ const Si = Se.create(
|
|
|
3421
3423
|
/* @__PURE__ */ o(xe, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
3422
3424
|
"img",
|
|
3423
3425
|
{
|
|
3424
|
-
src:
|
|
3426
|
+
src: ir.get(e.type),
|
|
3425
3427
|
width: 16,
|
|
3426
3428
|
height: 16,
|
|
3427
3429
|
alt: e.type
|
|
@@ -3430,20 +3432,20 @@ const Si = Se.create(
|
|
|
3430
3432
|
/* @__PURE__ */ o(xe, { children: /* @__PURE__ */ o(Xt, { href: e.url, target: "_blank", external: !0, children: e.title }) }),
|
|
3431
3433
|
/* @__PURE__ */ o($i, { item: e })
|
|
3432
3434
|
] })
|
|
3433
|
-
),
|
|
3435
|
+
), Ni = P(
|
|
3434
3436
|
({ playlist: e }) => /* @__PURE__ */ o(
|
|
3435
3437
|
or,
|
|
3436
3438
|
{
|
|
3437
3439
|
tag: "tbody",
|
|
3438
3440
|
list: e.items,
|
|
3439
3441
|
setList: (t) => e.setItems(t),
|
|
3440
|
-
children: e.items.map((t) => /* @__PURE__ */ o(
|
|
3442
|
+
children: e.items.map((t) => /* @__PURE__ */ o(ji, { item: t }, t.id))
|
|
3441
3443
|
}
|
|
3442
3444
|
)
|
|
3443
3445
|
), Li = P(
|
|
3444
3446
|
({ playlist: e }) => /* @__PURE__ */ w(er, { children: [
|
|
3445
3447
|
/* @__PURE__ */ o(Mi, { playlist: e }),
|
|
3446
|
-
/* @__PURE__ */ o(
|
|
3448
|
+
/* @__PURE__ */ o(Ni, { playlist: e })
|
|
3447
3449
|
] })
|
|
3448
3450
|
), Qi = P(
|
|
3449
3451
|
({ playlist: e }) => {
|
|
@@ -3519,7 +3521,7 @@ var Yi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, U = (e, t,
|
|
|
3519
3521
|
(l = e[s]) && (i = (a ? l(t, r, i) : l(i)) || i);
|
|
3520
3522
|
return a && i && Yi(t, r, i), i;
|
|
3521
3523
|
};
|
|
3522
|
-
const
|
|
3524
|
+
const N = class Yt {
|
|
3523
3525
|
constructor(t, r, a) {
|
|
3524
3526
|
this.playQueue = t, this.playlist = r, this.dto = a, ae(this), this.id = Yt.nextId++;
|
|
3525
3527
|
}
|
|
@@ -3612,68 +3614,68 @@ const j = class Yt {
|
|
|
3612
3614
|
};
|
|
3613
3615
|
U([
|
|
3614
3616
|
te
|
|
3615
|
-
],
|
|
3617
|
+
], N.prototype, "isSelected", 2);
|
|
3616
3618
|
U([
|
|
3617
3619
|
f
|
|
3618
|
-
],
|
|
3620
|
+
], N.prototype, "isCurrent", 1);
|
|
3619
3621
|
U([
|
|
3620
3622
|
f
|
|
3621
|
-
],
|
|
3623
|
+
], N.prototype, "index", 1);
|
|
3622
3624
|
U([
|
|
3623
3625
|
f
|
|
3624
|
-
],
|
|
3626
|
+
], N.prototype, "isFirst", 1);
|
|
3625
3627
|
U([
|
|
3626
3628
|
f
|
|
3627
|
-
],
|
|
3629
|
+
], N.prototype, "isLast", 1);
|
|
3628
3630
|
U([
|
|
3629
3631
|
f
|
|
3630
|
-
],
|
|
3632
|
+
], N.prototype, "canMoveToTop", 1);
|
|
3631
3633
|
U([
|
|
3632
3634
|
f
|
|
3633
|
-
],
|
|
3635
|
+
], N.prototype, "canMoveToBottom", 1);
|
|
3634
3636
|
U([
|
|
3635
3637
|
f
|
|
3636
|
-
],
|
|
3638
|
+
], N.prototype, "canRemoveToTop", 1);
|
|
3637
3639
|
U([
|
|
3638
3640
|
f
|
|
3639
|
-
],
|
|
3641
|
+
], N.prototype, "canRemoveOthers", 1);
|
|
3640
3642
|
U([
|
|
3641
3643
|
u.bound
|
|
3642
|
-
],
|
|
3644
|
+
], N.prototype, "unselect", 1);
|
|
3643
3645
|
U([
|
|
3644
3646
|
u.bound
|
|
3645
|
-
],
|
|
3647
|
+
], N.prototype, "select", 1);
|
|
3646
3648
|
U([
|
|
3647
3649
|
u.bound
|
|
3648
|
-
],
|
|
3650
|
+
], N.prototype, "toggleSelected", 1);
|
|
3649
3651
|
U([
|
|
3650
3652
|
u.bound
|
|
3651
|
-
],
|
|
3653
|
+
], N.prototype, "play", 1);
|
|
3652
3654
|
U([
|
|
3653
3655
|
u.bound
|
|
3654
|
-
],
|
|
3656
|
+
], N.prototype, "remove", 1);
|
|
3655
3657
|
U([
|
|
3656
3658
|
u.bound
|
|
3657
|
-
],
|
|
3659
|
+
], N.prototype, "playFirst", 1);
|
|
3658
3660
|
U([
|
|
3659
3661
|
u.bound
|
|
3660
|
-
],
|
|
3662
|
+
], N.prototype, "playNext", 1);
|
|
3661
3663
|
U([
|
|
3662
3664
|
u.bound
|
|
3663
|
-
],
|
|
3665
|
+
], N.prototype, "addToPlayQueue", 1);
|
|
3664
3666
|
U([
|
|
3665
3667
|
u.bound
|
|
3666
|
-
],
|
|
3668
|
+
], N.prototype, "moveToTop", 1);
|
|
3667
3669
|
U([
|
|
3668
3670
|
u.bound
|
|
3669
|
-
],
|
|
3671
|
+
], N.prototype, "moveToBottom", 1);
|
|
3670
3672
|
U([
|
|
3671
3673
|
u.bound
|
|
3672
|
-
],
|
|
3674
|
+
], N.prototype, "removeToTop", 1);
|
|
3673
3675
|
U([
|
|
3674
3676
|
u.bound
|
|
3675
|
-
],
|
|
3676
|
-
let Ui =
|
|
3677
|
+
], N.prototype, "removeOthers", 1);
|
|
3678
|
+
let Ui = N;
|
|
3677
3679
|
var Wi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, M = (e, t, r, a) => {
|
|
3678
3680
|
for (var i = a > 1 ? void 0 : a ? qi(t, r) : t, s = e.length - 1, l; s >= 0; s--)
|
|
3679
3681
|
(l = e[s]) && (i = (a ? l(t, r, i) : l(i)) || i);
|
|
@@ -3707,7 +3709,7 @@ class ao {
|
|
|
3707
3709
|
this.playlist.items = t.items?.map((r) => this.playlist.createItemFromDto(r)) ?? [];
|
|
3708
3710
|
}
|
|
3709
3711
|
validateState(t) {
|
|
3710
|
-
return
|
|
3712
|
+
return ar(
|
|
3711
3713
|
Hi,
|
|
3712
3714
|
"PlaylistLocalStorageState"
|
|
3713
3715
|
)(t);
|
|
@@ -4088,6 +4090,7 @@ export {
|
|
|
4088
4090
|
B as RepeatMode,
|
|
4089
4091
|
Vr as bottomBarHeight,
|
|
4090
4092
|
tt as usePlayQueue,
|
|
4091
|
-
Un as usePlaylistList
|
|
4093
|
+
Un as usePlaylistList,
|
|
4094
|
+
ir as videoServiceIcons
|
|
4092
4095
|
};
|
|
4093
4096
|
//# sourceMappingURL=index.es.js.map
|