@aigamo/hydrangean-diva 0.0.1-alpha.20 → 0.0.1-alpha.21
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +239 -234
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { makeObservable as
|
|
1
|
+
import { makeObservable as Rr, action as y, computed as A, observable as Z, reaction as Or } from "mobx";
|
|
2
2
|
import * as te from "react";
|
|
3
3
|
import Dt, { forwardRef as _r, useContext as at, memo as ne, useState as W, useCallback as N, useMemo as De, createContext as zt, useEffect as kr, useLayoutEffect as Ar } from "react";
|
|
4
4
|
import Mr from "@emotion/cache";
|
|
5
|
-
import { useNostalgicDiva as U, findVideoService as Fr, NostalgicDivaProvider as jr,
|
|
6
|
-
import { EuiButton as re, useGeneratedHtmlId as
|
|
7
|
-
import { AddRegular as ct, PlayRegular as
|
|
5
|
+
import { useNostalgicDiva as U, findVideoService as Fr, NostalgicDivaProvider as jr, PlayerType as Nr, NostalgicDiva as $r, nullPlayerController as Dr } from "@aigamo/nostalgic-diva";
|
|
6
|
+
import { EuiButton as re, useGeneratedHtmlId as zr, EuiModalHeaderTitle as Br, EuiModalHeader as Lr, EuiForm as Vr, EuiFormRow as rt, EuiFieldText as St, EuiModalBody as Yr, EuiModalFooter as Wr, EuiButtonEmpty as Bt, EuiModal as Ur, useEuiTheme as Lt, EuiCheckbox as Vt, EuiTableHeaderCellCheckbox as qr, EuiTableHeader as Hr, EuiTableRowCell as nt, EuiTableRowCellCheckbox as Gr, EuiLink as Jr, EuiTableRow as Kr, EuiTable as Xr, EuiButtonIcon as q, EuiPopover as ze, EuiIcon as Y, EuiContextMenu as st, EuiTableHeaderCell as Ze, EuiCodeBlock as Zr, EuiFlyout as Qr, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Yt, EuiEmptyPrompt as en, EuiPageTemplate as lt, EuiRange as Wt, EuiBottomBar as tn } from "@elastic/eui";
|
|
7
|
+
import { AddRegular as ct, PlayRegular as rn, DismissRegular as ut, MoreHorizontalFilled as Ut, ArrowUploadRegular as nn, ArrowDownloadRegular as on, WindowDevToolsRegular as an, DeleteRegular as sn, ArrowShuffleFilled as ln, ArrowShuffleOffFilled as cn, PreviousFilled as un, SkipBack10Regular as qt, PauseFilled as dn, PlayFilled as fn, SkipForward30Regular as Ht, NextFilled as mn, ArrowRepeat1Filled as hn, ArrowRepeatAllFilled as vn, ArrowRepeatAllOffFilled as pn, OpenRegular as yn, Speaker2Regular as Gt, TopSpeedRegular as gn, NavigationPlayRegular as bn } from "@fluentui/react-icons";
|
|
8
8
|
import { observer as P } from "mobx-react-lite";
|
|
9
|
-
import { ReactSortable as
|
|
9
|
+
import { ReactSortable as Tn } from "react-sortablejs";
|
|
10
10
|
import { pull as Pt } from "lodash-es";
|
|
11
|
-
import
|
|
12
|
-
import { useRouter as
|
|
11
|
+
import En from "ajv";
|
|
12
|
+
import { useRouter as Cn } from "@tanstack/react-router";
|
|
13
13
|
const Jt = 81;
|
|
14
14
|
class Kt {
|
|
15
15
|
makeObservable(t, n) {
|
|
16
|
-
return
|
|
16
|
+
return Rr(t, n);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
class
|
|
19
|
+
class Yi {
|
|
20
20
|
makeObservable(t, n) {
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
var je = { exports: {} }, Ee = {};
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
28
|
-
|
|
25
|
+
var wt;
|
|
26
|
+
function xn() {
|
|
27
|
+
if (wt) return Ee;
|
|
28
|
+
wt = 1;
|
|
29
29
|
var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
30
30
|
function d(h, m, p) {
|
|
31
|
-
var T,
|
|
31
|
+
var T, w = {}, I = null, D = null;
|
|
32
32
|
p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && (D = m.ref);
|
|
33
|
-
for (T in m) i.call(m, T) && !l.hasOwnProperty(T) && (
|
|
34
|
-
if (h && h.defaultProps) for (T in m = h.defaultProps, m)
|
|
35
|
-
return { $$typeof: t, type: h, key: I, ref: D, props:
|
|
33
|
+
for (T in m) i.call(m, T) && !l.hasOwnProperty(T) && (w[T] = m[T]);
|
|
34
|
+
if (h && h.defaultProps) for (T in m = h.defaultProps, m) w[T] === void 0 && (w[T] = m[T]);
|
|
35
|
+
return { $$typeof: t, type: h, key: I, ref: D, props: w, _owner: a.current };
|
|
36
36
|
}
|
|
37
37
|
return Ee.Fragment = n, Ee.jsx = d, Ee.jsxs = d, Ee;
|
|
38
38
|
}
|
|
39
39
|
var Ce = {};
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"),
|
|
40
|
+
var Rt;
|
|
41
|
+
function In() {
|
|
42
|
+
return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
+
var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), M = Symbol.iterator, H = "@@iterator";
|
|
44
44
|
function Q(r) {
|
|
45
45
|
if (r === null || typeof r != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function xn() {
|
|
|
48
48
|
return typeof s == "function" ? s : null;
|
|
49
49
|
}
|
|
50
50
|
var B = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function R(r) {
|
|
52
52
|
{
|
|
53
53
|
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
|
|
54
54
|
u[v - 1] = arguments[v];
|
|
@@ -68,7 +68,7 @@ function xn() {
|
|
|
68
68
|
var _ = !1, c = !1, L = !1, me = !1, Se = !1, Pe;
|
|
69
69
|
Pe = Symbol.for("react.module.reference");
|
|
70
70
|
function Ve(r) {
|
|
71
|
-
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r === T || me || r === D || _ || c || L || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof ===
|
|
71
|
+
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r === T || me || r === D || _ || c || L || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === w || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -81,13 +81,13 @@ function xn() {
|
|
|
81
81
|
var E = s.displayName || s.name || "";
|
|
82
82
|
return E !== "" ? u + "(" + E + ")" : u;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function we(r) {
|
|
85
85
|
return r.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function K(r) {
|
|
88
88
|
if (r == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof r.tag == "number" &&
|
|
90
|
+
if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
91
91
|
return r.displayName || r.name || null;
|
|
92
92
|
if (typeof r == "string")
|
|
93
93
|
return r;
|
|
@@ -109,13 +109,13 @@ function xn() {
|
|
|
109
109
|
switch (r.$$typeof) {
|
|
110
110
|
case h:
|
|
111
111
|
var s = r;
|
|
112
|
-
return
|
|
112
|
+
return we(s) + ".Consumer";
|
|
113
113
|
case d:
|
|
114
114
|
var u = r;
|
|
115
|
-
return
|
|
115
|
+
return we(u._context) + ".Provider";
|
|
116
116
|
case m:
|
|
117
117
|
return Ye(r, r.render, "ForwardRef");
|
|
118
|
-
case
|
|
118
|
+
case w:
|
|
119
119
|
var v = r.displayName || null;
|
|
120
120
|
return v !== null ? v : K(r.type) || "Memo";
|
|
121
121
|
case I: {
|
|
@@ -129,14 +129,14 @@ function xn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var ee = Object.assign, ie = 0,
|
|
132
|
+
var ee = Object.assign, ie = 0, Re, Oe, he, _e, ve, ke, Ae;
|
|
133
133
|
function Me() {
|
|
134
134
|
}
|
|
135
135
|
Me.__reactDisabledLog = !0;
|
|
136
136
|
function We() {
|
|
137
137
|
{
|
|
138
138
|
if (ie === 0) {
|
|
139
|
-
|
|
139
|
+
Re = console.log, Oe = console.info, he = console.warn, _e = console.error, ve = console.group, ke = console.groupCollapsed, Ae = console.groupEnd;
|
|
140
140
|
var r = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -166,7 +166,7 @@ function xn() {
|
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
168
|
log: ee({}, r, {
|
|
169
|
-
value:
|
|
169
|
+
value: Re
|
|
170
170
|
}),
|
|
171
171
|
info: ee({}, r, {
|
|
172
172
|
value: Oe
|
|
@@ -188,7 +188,7 @@ function xn() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
ie < 0 &&
|
|
191
|
+
ie < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var pe = B.ReactCurrentDispatcher, ye;
|
|
@@ -305,7 +305,7 @@ function xn() {
|
|
|
305
305
|
switch (r.$$typeof) {
|
|
306
306
|
case m:
|
|
307
307
|
return be(r.render);
|
|
308
|
-
case
|
|
308
|
+
case w:
|
|
309
309
|
return oe(r.type, s, u);
|
|
310
310
|
case I: {
|
|
311
311
|
var v = r, E = v._payload, S = v._init;
|
|
@@ -340,7 +340,7 @@ function xn() {
|
|
|
340
340
|
} catch (k) {
|
|
341
341
|
g = k;
|
|
342
342
|
}
|
|
343
|
-
g && !(g instanceof Error) && (Fe(E),
|
|
343
|
+
g && !(g instanceof Error) && (Fe(E), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, b, typeof g), Fe(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Fe(E), R("Failed %s type: %s", u, g.message), Fe(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,7 +366,7 @@ function xn() {
|
|
|
366
366
|
}
|
|
367
367
|
function ht(r) {
|
|
368
368
|
if (cr(r))
|
|
369
|
-
return
|
|
369
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(r)), mt(r);
|
|
370
370
|
}
|
|
371
371
|
var vt = B.ReactCurrentOwner, ur = {
|
|
372
372
|
key: !0,
|
|
@@ -396,7 +396,7 @@ function xn() {
|
|
|
396
396
|
function hr(r, s) {
|
|
397
397
|
{
|
|
398
398
|
var u = function() {
|
|
399
|
-
pt || (pt = !0,
|
|
399
|
+
pt || (pt = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
400
400
|
};
|
|
401
401
|
u.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
402
402
|
get: u,
|
|
@@ -407,7 +407,7 @@ function xn() {
|
|
|
407
407
|
function vr(r, s) {
|
|
408
408
|
{
|
|
409
409
|
var u = function() {
|
|
410
|
-
yt || (yt = !0,
|
|
410
|
+
yt || (yt = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
411
411
|
};
|
|
412
412
|
u.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
413
413
|
get: u,
|
|
@@ -513,7 +513,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
513
513
|
return;
|
|
514
514
|
Tt[u] = !0;
|
|
515
515
|
var v = "";
|
|
516
|
-
r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r),
|
|
516
|
+
r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function Ct(r, s) {
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
545
545
|
u = s.propTypes;
|
|
546
546
|
else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
s.$$typeof ===
|
|
548
|
+
s.$$typeof === w))
|
|
549
549
|
u = s.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
@@ -555,9 +555,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
555
555
|
} else if (s.PropTypes !== void 0 && !Je) {
|
|
556
556
|
Je = !0;
|
|
557
557
|
var E = K(s);
|
|
558
|
-
|
|
558
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function Er(r) {
|
|
@@ -565,11 +565,11 @@ Check the top-level render call using <` + u + ">.");
|
|
|
565
565
|
for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
|
|
566
566
|
var v = s[u];
|
|
567
567
|
if (v !== "children" && v !== "key") {
|
|
568
|
-
de(r),
|
|
568
|
+
de(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
r.ref !== null && (de(r),
|
|
572
|
+
r.ref !== null && (de(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var xt = {};
|
|
@@ -582,7 +582,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
582
582
|
var z = gr();
|
|
583
583
|
z ? g += z : g += bt();
|
|
584
584
|
var k;
|
|
585
|
-
r === null ? k = "null" : He(r) ? k = "array" : r !== void 0 && r.$$typeof === t ? (k = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r,
|
|
585
|
+
r === null ? k = "null" : He(r) ? k = "array" : r !== void 0 && r.$$typeof === t ? (k = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, g);
|
|
586
586
|
}
|
|
587
587
|
var j = yr(r, s, u, E, S);
|
|
588
588
|
if (j == null)
|
|
@@ -596,17 +596,17 @@ Check the top-level render call using <` + u + ">.");
|
|
|
596
596
|
Ct(G[fe], r);
|
|
597
597
|
Object.freeze && Object.freeze(G);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
601
|
Ct(G, r);
|
|
602
602
|
}
|
|
603
603
|
if (Te.call(s, "key")) {
|
|
604
|
-
var ae = K(r), V = Object.keys(s).filter(function(
|
|
605
|
-
return
|
|
604
|
+
var ae = K(r), V = Object.keys(s).filter(function(wr) {
|
|
605
|
+
return wr !== "key";
|
|
606
606
|
}), Xe = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
607
|
if (!xt[ae + Xe]) {
|
|
608
608
|
var Pr = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
|
|
609
|
+
R(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -628,15 +628,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
628
628
|
})()), Ce;
|
|
629
629
|
}
|
|
630
630
|
var Ot;
|
|
631
|
-
function
|
|
632
|
-
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? je.exports =
|
|
631
|
+
function Sn() {
|
|
632
|
+
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? je.exports = xn() : je.exports = In()), je.exports;
|
|
633
633
|
}
|
|
634
|
-
var xe =
|
|
634
|
+
var xe = Sn(), Ne = { exports: {} }, C = {};
|
|
635
635
|
var _t;
|
|
636
|
-
function
|
|
636
|
+
function Pn() {
|
|
637
637
|
if (_t) return C;
|
|
638
638
|
_t = 1;
|
|
639
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112,
|
|
639
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, H = e ? Symbol.for("react.block") : 60121, Q = e ? Symbol.for("react.fundamental") : 60117, B = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
|
|
640
640
|
function F(c) {
|
|
641
641
|
if (typeof c == "object" && c !== null) {
|
|
642
642
|
var L = c.$$typeof;
|
|
@@ -648,7 +648,7 @@ function Sn() {
|
|
|
648
648
|
case i:
|
|
649
649
|
case l:
|
|
650
650
|
case a:
|
|
651
|
-
case
|
|
651
|
+
case w:
|
|
652
652
|
return c;
|
|
653
653
|
default:
|
|
654
654
|
switch (c = c && c.$$typeof, c) {
|
|
@@ -670,7 +670,7 @@ function Sn() {
|
|
|
670
670
|
function _(c) {
|
|
671
671
|
return F(c) === p;
|
|
672
672
|
}
|
|
673
|
-
return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = t, C.ForwardRef = T, C.Fragment = i, C.Lazy = M, C.Memo = D, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense =
|
|
673
|
+
return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = t, C.ForwardRef = T, C.Fragment = i, C.Lazy = M, C.Memo = D, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = w, C.isAsyncMode = function(c) {
|
|
674
674
|
return _(c) || F(c) === m;
|
|
675
675
|
}, C.isConcurrentMode = _, C.isContextConsumer = function(c) {
|
|
676
676
|
return F(c) === h;
|
|
@@ -693,19 +693,19 @@ function Sn() {
|
|
|
693
693
|
}, C.isStrictMode = function(c) {
|
|
694
694
|
return F(c) === a;
|
|
695
695
|
}, C.isSuspense = function(c) {
|
|
696
|
-
return F(c) ===
|
|
696
|
+
return F(c) === w;
|
|
697
697
|
}, C.isValidElementType = function(c) {
|
|
698
|
-
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c ===
|
|
698
|
+
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === w || c === I || typeof c == "object" && c !== null && (c.$$typeof === M || c.$$typeof === D || c.$$typeof === d || c.$$typeof === h || c.$$typeof === T || c.$$typeof === Q || c.$$typeof === B || c.$$typeof === R || c.$$typeof === H);
|
|
699
699
|
}, C.typeOf = F, C;
|
|
700
700
|
}
|
|
701
701
|
var x = {};
|
|
702
702
|
var kt;
|
|
703
|
-
function
|
|
703
|
+
function wn() {
|
|
704
704
|
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
705
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112,
|
|
705
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, H = e ? Symbol.for("react.block") : 60121, Q = e ? Symbol.for("react.fundamental") : 60117, B = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
|
|
706
706
|
function F(f) {
|
|
707
707
|
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
708
|
-
f === i || f === p || f === l || f === a || f ===
|
|
708
|
+
f === i || f === p || f === l || f === a || f === w || f === I || typeof f == "object" && f !== null && (f.$$typeof === M || f.$$typeof === D || f.$$typeof === d || f.$$typeof === h || f.$$typeof === T || f.$$typeof === Q || f.$$typeof === B || f.$$typeof === R || f.$$typeof === H);
|
|
709
709
|
}
|
|
710
710
|
function _(f) {
|
|
711
711
|
if (typeof f == "object" && f !== null) {
|
|
@@ -719,7 +719,7 @@ function Pn() {
|
|
|
719
719
|
case i:
|
|
720
720
|
case l:
|
|
721
721
|
case a:
|
|
722
|
-
case
|
|
722
|
+
case w:
|
|
723
723
|
return ue;
|
|
724
724
|
default:
|
|
725
725
|
var oe = ue && ue.$$typeof;
|
|
@@ -739,7 +739,7 @@ function Pn() {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
var c = m, L = p, me = h, Se = d, Pe = t, Ve = T, Ye = i,
|
|
742
|
+
var c = m, L = p, me = h, Se = d, Pe = t, Ve = T, Ye = i, we = M, K = D, ee = n, ie = l, Re = a, Oe = w, he = !1;
|
|
743
743
|
function _e(f) {
|
|
744
744
|
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ve(f) || _(f) === m;
|
|
745
745
|
}
|
|
@@ -777,17 +777,17 @@ function Pn() {
|
|
|
777
777
|
return _(f) === a;
|
|
778
778
|
}
|
|
779
779
|
function qe(f) {
|
|
780
|
-
return _(f) ===
|
|
780
|
+
return _(f) === w;
|
|
781
781
|
}
|
|
782
|
-
x.AsyncMode = c, x.ConcurrentMode = L, x.ContextConsumer = me, x.ContextProvider = Se, x.Element = Pe, x.ForwardRef = Ve, x.Fragment = Ye, x.Lazy =
|
|
782
|
+
x.AsyncMode = c, x.ConcurrentMode = L, x.ContextConsumer = me, x.ContextProvider = Se, x.Element = Pe, x.ForwardRef = Ve, x.Fragment = Ye, x.Lazy = we, x.Memo = K, x.Portal = ee, x.Profiler = ie, x.StrictMode = Re, x.Suspense = Oe, x.isAsyncMode = _e, x.isConcurrentMode = ve, x.isContextConsumer = ke, x.isContextProvider = Ae, x.isElement = Me, x.isForwardRef = We, x.isFragment = Ue, x.isLazy = pe, x.isMemo = ye, x.isPortal = le, x.isProfiler = ge, x.isStrictMode = ce, x.isSuspense = qe, x.isValidElementType = F, x.typeOf = _;
|
|
783
783
|
})()), x;
|
|
784
784
|
}
|
|
785
785
|
var At;
|
|
786
786
|
function Rn() {
|
|
787
|
-
return At || (At = 1, process.env.NODE_ENV === "production" ? Ne.exports =
|
|
787
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? Ne.exports = Pn() : Ne.exports = wn()), Ne.exports;
|
|
788
788
|
}
|
|
789
789
|
var Qe, Mt;
|
|
790
|
-
function
|
|
790
|
+
function On() {
|
|
791
791
|
if (Mt) return Qe;
|
|
792
792
|
Mt = 1;
|
|
793
793
|
var e = Rn(), t = {
|
|
@@ -828,17 +828,17 @@ function wn() {
|
|
|
828
828
|
function d(M) {
|
|
829
829
|
return e.isMemo(M) ? a : l[M.$$typeof] || t;
|
|
830
830
|
}
|
|
831
|
-
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, T = Object.getOwnPropertyDescriptor,
|
|
831
|
+
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, T = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, I = Object.prototype;
|
|
832
832
|
function D(M, H, Q) {
|
|
833
833
|
if (typeof H != "string") {
|
|
834
834
|
if (I) {
|
|
835
|
-
var B =
|
|
835
|
+
var B = w(H);
|
|
836
836
|
B && B !== I && D(M, B, Q);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
p && (
|
|
840
|
-
for (var F = d(M), _ = d(H), c = 0; c <
|
|
841
|
-
var L =
|
|
838
|
+
var R = m(H);
|
|
839
|
+
p && (R = R.concat(p(H)));
|
|
840
|
+
for (var F = d(M), _ = d(H), c = 0; c < R.length; ++c) {
|
|
841
|
+
var L = R[c];
|
|
842
842
|
if (!n[L] && !(Q && Q[L]) && !(_ && _[L]) && !(F && F[L])) {
|
|
843
843
|
var me = T(H, L);
|
|
844
844
|
try {
|
|
@@ -852,9 +852,9 @@ function wn() {
|
|
|
852
852
|
}
|
|
853
853
|
return Qe = D, Qe;
|
|
854
854
|
}
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
function
|
|
855
|
+
On();
|
|
856
|
+
var _n = !0;
|
|
857
|
+
function kn(e, t, n) {
|
|
858
858
|
var i = "";
|
|
859
859
|
return n.split(" ").forEach(function(a) {
|
|
860
860
|
e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
|
|
@@ -871,8 +871,8 @@ var Xt = function(t, n, i) {
|
|
|
871
871
|
// in node since emotion-server relies on whether a style is in
|
|
872
872
|
// the registered cache to know whether a style is global or not
|
|
873
873
|
// also, note that this check will be dead code eliminated in the browser
|
|
874
|
-
|
|
875
|
-
},
|
|
874
|
+
_n === !1) && t.registered[a] === void 0 && (t.registered[a] = n.styles);
|
|
875
|
+
}, An = function(t, n, i) {
|
|
876
876
|
Xt(t, n, i);
|
|
877
877
|
var a = t.key + "-" + n.name;
|
|
878
878
|
if (t.inserted[n.name] === void 0) {
|
|
@@ -882,7 +882,7 @@ var Xt = function(t, n, i) {
|
|
|
882
882
|
while (l !== void 0);
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
|
-
function
|
|
885
|
+
function Mn(e) {
|
|
886
886
|
for (var t = 0, n, i = 0, a = e.length; a >= 4; ++i, a -= 4)
|
|
887
887
|
n = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
|
|
888
888
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -901,7 +901,7 @@ function An(e) {
|
|
|
901
901
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
902
902
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
903
903
|
}
|
|
904
|
-
var
|
|
904
|
+
var Fn = {
|
|
905
905
|
animationIterationCount: 1,
|
|
906
906
|
aspectRatio: 1,
|
|
907
907
|
borderImageOutset: 1,
|
|
@@ -951,24 +951,24 @@ var Mn = {
|
|
|
951
951
|
strokeOpacity: 1,
|
|
952
952
|
strokeWidth: 1
|
|
953
953
|
};
|
|
954
|
-
function
|
|
954
|
+
function jn(e) {
|
|
955
955
|
var t = /* @__PURE__ */ Object.create(null);
|
|
956
956
|
return function(n) {
|
|
957
957
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
var
|
|
960
|
+
var Nn = /[A-Z]|^ms/g, $n = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(t) {
|
|
961
961
|
return t.charCodeAt(1) === 45;
|
|
962
962
|
}, Ft = function(t) {
|
|
963
963
|
return t != null && typeof t != "boolean";
|
|
964
|
-
}, et = /* @__PURE__ */
|
|
965
|
-
return Zt(e) ? e : e.replace(
|
|
964
|
+
}, et = /* @__PURE__ */ jn(function(e) {
|
|
965
|
+
return Zt(e) ? e : e.replace(Nn, "-$&").toLowerCase();
|
|
966
966
|
}), jt = function(t, n) {
|
|
967
967
|
switch (t) {
|
|
968
968
|
case "animation":
|
|
969
969
|
case "animationName":
|
|
970
970
|
if (typeof n == "string")
|
|
971
|
-
return n.replace(
|
|
971
|
+
return n.replace($n, function(i, a, l) {
|
|
972
972
|
return X = {
|
|
973
973
|
name: a,
|
|
974
974
|
styles: l,
|
|
@@ -976,7 +976,7 @@ var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(t) {
|
|
|
976
976
|
}, a;
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
|
-
return
|
|
979
|
+
return Fn[t] !== 1 && !Zt(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
980
980
|
};
|
|
981
981
|
function Ie(e, t, n) {
|
|
982
982
|
if (n == null)
|
|
@@ -1008,7 +1008,7 @@ function Ie(e, t, n) {
|
|
|
1008
1008
|
var h = l.styles + ";";
|
|
1009
1009
|
return h;
|
|
1010
1010
|
}
|
|
1011
|
-
return
|
|
1011
|
+
return Dn(e, t, n);
|
|
1012
1012
|
}
|
|
1013
1013
|
case "function": {
|
|
1014
1014
|
if (e !== void 0) {
|
|
@@ -1021,7 +1021,7 @@ function Ie(e, t, n) {
|
|
|
1021
1021
|
var T = n;
|
|
1022
1022
|
return T;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Dn(e, t, n) {
|
|
1025
1025
|
var i = "";
|
|
1026
1026
|
if (Array.isArray(n))
|
|
1027
1027
|
for (var a = 0; a < n.length; a++)
|
|
@@ -1051,7 +1051,7 @@ function $n(e, t, n) {
|
|
|
1051
1051
|
return i;
|
|
1052
1052
|
}
|
|
1053
1053
|
var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
|
|
1054
|
-
function
|
|
1054
|
+
function zn(e, t, n) {
|
|
1055
1055
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1056
1056
|
return e[0];
|
|
1057
1057
|
var i = !0, a = "";
|
|
@@ -1071,16 +1071,16 @@ function Dn(e, t, n) {
|
|
|
1071
1071
|
Nt.lastIndex = 0;
|
|
1072
1072
|
for (var p = "", T; (T = Nt.exec(a)) !== null; )
|
|
1073
1073
|
p += "-" + T[1];
|
|
1074
|
-
var
|
|
1074
|
+
var w = Mn(a) + p;
|
|
1075
1075
|
return {
|
|
1076
|
-
name:
|
|
1076
|
+
name: w,
|
|
1077
1077
|
styles: a,
|
|
1078
1078
|
next: X
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1081
|
+
var Bn = function(t) {
|
|
1082
1082
|
return t();
|
|
1083
|
-
},
|
|
1083
|
+
}, Ln = te.useInsertionEffect ? te.useInsertionEffect : !1, Vn = Ln || Bn, Qt = /* @__PURE__ */ te.createContext(
|
|
1084
1084
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1085
1085
|
// because this module is primarily intended for the browser and node
|
|
1086
1086
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1092,50 +1092,50 @@ var zn = function(t) {
|
|
|
1092
1092
|
}) : null
|
|
1093
1093
|
);
|
|
1094
1094
|
Qt.Provider;
|
|
1095
|
-
var
|
|
1095
|
+
var Yn = function(t) {
|
|
1096
1096
|
return /* @__PURE__ */ _r(function(n, i) {
|
|
1097
1097
|
var a = at(Qt);
|
|
1098
1098
|
return t(n, a, i);
|
|
1099
1099
|
});
|
|
1100
|
-
},
|
|
1100
|
+
}, Wn = /* @__PURE__ */ te.createContext({}), Be = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", er = function(t, n) {
|
|
1101
1101
|
var i = {};
|
|
1102
1102
|
for (var a in n)
|
|
1103
1103
|
Be.call(n, a) && (i[a] = n[a]);
|
|
1104
1104
|
return i[it] = t, i;
|
|
1105
|
-
},
|
|
1105
|
+
}, Un = function(t) {
|
|
1106
1106
|
var n = t.cache, i = t.serialized, a = t.isStringTag;
|
|
1107
|
-
return Xt(n, i, a),
|
|
1108
|
-
return
|
|
1107
|
+
return Xt(n, i, a), Vn(function() {
|
|
1108
|
+
return An(n, i, a);
|
|
1109
1109
|
}), null;
|
|
1110
|
-
},
|
|
1110
|
+
}, qn = /* @__PURE__ */ Yn(function(e, t, n) {
|
|
1111
1111
|
var i = e.css;
|
|
1112
1112
|
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
|
1113
1113
|
var a = e[it], l = [i], d = "";
|
|
1114
|
-
typeof e.className == "string" ? d =
|
|
1115
|
-
var h =
|
|
1114
|
+
typeof e.className == "string" ? d = kn(t.registered, l, e.className) : e.className != null && (d = e.className + " ");
|
|
1115
|
+
var h = zn(l, void 0, te.useContext(Wn));
|
|
1116
1116
|
d += t.key + "-" + h.name;
|
|
1117
1117
|
var m = {};
|
|
1118
1118
|
for (var p in e)
|
|
1119
1119
|
Be.call(e, p) && p !== "css" && p !== it && (m[p] = e[p]);
|
|
1120
|
-
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(
|
|
1120
|
+
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Un, {
|
|
1121
1121
|
cache: t,
|
|
1122
1122
|
serialized: h,
|
|
1123
1123
|
isStringTag: typeof a == "string"
|
|
1124
1124
|
}), /* @__PURE__ */ te.createElement(a, m));
|
|
1125
|
-
}), tr =
|
|
1125
|
+
}), tr = qn, Le = xe.Fragment, o = function(t, n, i) {
|
|
1126
1126
|
return Be.call(n, "css") ? xe.jsx(tr, er(t, n), i) : xe.jsx(t, n, i);
|
|
1127
1127
|
}, $ = function(t, n, i) {
|
|
1128
1128
|
return Be.call(n, "css") ? xe.jsxs(tr, er(t, n), i) : xe.jsxs(t, n, i);
|
|
1129
1129
|
};
|
|
1130
|
-
const
|
|
1130
|
+
const Hn = ({
|
|
1131
1131
|
onCancel: e,
|
|
1132
1132
|
onSave: t
|
|
1133
1133
|
}) => {
|
|
1134
|
-
const n =
|
|
1135
|
-
return /* @__PURE__ */ $(
|
|
1136
|
-
/* @__PURE__ */ o(
|
|
1137
|
-
/* @__PURE__ */ o(
|
|
1138
|
-
|
|
1134
|
+
const n = zr({ prefix: "modalForm" }), [i, a] = W(""), [l, d] = W(""), [h, m] = W(!1);
|
|
1135
|
+
return /* @__PURE__ */ $(Ur, { onClose: e, initialFocus: "[name=url]", children: [
|
|
1136
|
+
/* @__PURE__ */ o(Lr, { children: /* @__PURE__ */ o(Br, { children: "Add video" }) }),
|
|
1137
|
+
/* @__PURE__ */ o(Yr, { children: /* @__PURE__ */ $(
|
|
1138
|
+
Vr,
|
|
1139
1139
|
{
|
|
1140
1140
|
id: n,
|
|
1141
1141
|
component: "form",
|
|
@@ -1167,7 +1167,7 @@ const qn = ({
|
|
|
1167
1167
|
]
|
|
1168
1168
|
}
|
|
1169
1169
|
) }),
|
|
1170
|
-
/* @__PURE__ */ $(
|
|
1170
|
+
/* @__PURE__ */ $(Wr, { children: [
|
|
1171
1171
|
/* @__PURE__ */ o(Bt, { onClick: e, children: "Cancel" }),
|
|
1172
1172
|
/* @__PURE__ */ o(
|
|
1173
1173
|
re,
|
|
@@ -1201,7 +1201,7 @@ const qn = ({
|
|
|
1201
1201
|
}
|
|
1202
1202
|
),
|
|
1203
1203
|
t && /* @__PURE__ */ o(
|
|
1204
|
-
|
|
1204
|
+
Hn,
|
|
1205
1205
|
{
|
|
1206
1206
|
onCancel: () => n(!1),
|
|
1207
1207
|
onSave: i
|
|
@@ -1217,11 +1217,11 @@ const qn = ({
|
|
|
1217
1217
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1218
1218
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1219
1219
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1220
|
-
},
|
|
1220
|
+
}, Gn = P(
|
|
1221
1221
|
({ playQueueStore: e }) => {
|
|
1222
1222
|
const { euiTheme: t } = Lt();
|
|
1223
1223
|
return /* @__PURE__ */ $(
|
|
1224
|
-
|
|
1224
|
+
Hr,
|
|
1225
1225
|
{
|
|
1226
1226
|
style: {
|
|
1227
1227
|
position: "sticky",
|
|
@@ -1230,7 +1230,7 @@ const qn = ({
|
|
|
1230
1230
|
background: t.colors.backgroundBasePlain
|
|
1231
1231
|
},
|
|
1232
1232
|
children: [
|
|
1233
|
-
/* @__PURE__ */ o(
|
|
1233
|
+
/* @__PURE__ */ o(qr, { children: /* @__PURE__ */ o(
|
|
1234
1234
|
Vt,
|
|
1235
1235
|
{
|
|
1236
1236
|
id: "",
|
|
@@ -1247,7 +1247,7 @@ const qn = ({
|
|
|
1247
1247
|
}
|
|
1248
1248
|
);
|
|
1249
1249
|
}
|
|
1250
|
-
),
|
|
1250
|
+
), Jn = ne(
|
|
1251
1251
|
({
|
|
1252
1252
|
item: e,
|
|
1253
1253
|
closePopover: t
|
|
@@ -1283,7 +1283,7 @@ const qn = ({
|
|
|
1283
1283
|
},
|
|
1284
1284
|
{
|
|
1285
1285
|
name: "Move to the top",
|
|
1286
|
-
icon: /* @__PURE__ */ o(Y, { type:
|
|
1286
|
+
icon: /* @__PURE__ */ o(Y, { type: nn }),
|
|
1287
1287
|
onClick: async () => {
|
|
1288
1288
|
t(), e.moveToTop();
|
|
1289
1289
|
},
|
|
@@ -1291,7 +1291,7 @@ const qn = ({
|
|
|
1291
1291
|
},
|
|
1292
1292
|
{
|
|
1293
1293
|
name: "Move to the bottom",
|
|
1294
|
-
icon: /* @__PURE__ */ o(Y, { type:
|
|
1294
|
+
icon: /* @__PURE__ */ o(Y, { type: on }),
|
|
1295
1295
|
onClick: async () => {
|
|
1296
1296
|
t(), e.moveToBottom();
|
|
1297
1297
|
},
|
|
@@ -1323,7 +1323,7 @@ const qn = ({
|
|
|
1323
1323
|
);
|
|
1324
1324
|
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: n });
|
|
1325
1325
|
}
|
|
1326
|
-
),
|
|
1326
|
+
), Kn = ne(
|
|
1327
1327
|
({ item: e }) => {
|
|
1328
1328
|
const [t, n] = W(!1), i = N(() => n(!t), [t]), a = N(() => n(!1), []);
|
|
1329
1329
|
return /* @__PURE__ */ o(
|
|
@@ -1345,7 +1345,7 @@ const qn = ({
|
|
|
1345
1345
|
panelPaddingSize: "none",
|
|
1346
1346
|
anchorPosition: "leftCenter",
|
|
1347
1347
|
children: /* @__PURE__ */ o(
|
|
1348
|
-
|
|
1348
|
+
Jn,
|
|
1349
1349
|
{
|
|
1350
1350
|
item: e,
|
|
1351
1351
|
closePopover: a
|
|
@@ -1354,14 +1354,14 @@ const qn = ({
|
|
|
1354
1354
|
}
|
|
1355
1355
|
);
|
|
1356
1356
|
}
|
|
1357
|
-
),
|
|
1357
|
+
), Xn = P(
|
|
1358
1358
|
({ item: e }) => {
|
|
1359
1359
|
const t = U();
|
|
1360
1360
|
return /* @__PURE__ */ $(nt, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1361
1361
|
/* @__PURE__ */ o(
|
|
1362
1362
|
re,
|
|
1363
1363
|
{
|
|
1364
|
-
iconType:
|
|
1364
|
+
iconType: rn,
|
|
1365
1365
|
size: "s",
|
|
1366
1366
|
onClick: async () => {
|
|
1367
1367
|
e.isCurrent ? await t.setCurrentTime(0) : e.play();
|
|
@@ -1378,14 +1378,14 @@ const qn = ({
|
|
|
1378
1378
|
children: "Remove"
|
|
1379
1379
|
}
|
|
1380
1380
|
),
|
|
1381
|
-
/* @__PURE__ */ o(
|
|
1381
|
+
/* @__PURE__ */ o(Kn, { item: e })
|
|
1382
1382
|
] });
|
|
1383
1383
|
}
|
|
1384
|
-
),
|
|
1384
|
+
), Zn = P(
|
|
1385
1385
|
({ item: e }) => {
|
|
1386
1386
|
const t = U();
|
|
1387
|
-
return /* @__PURE__ */ $(
|
|
1388
|
-
/* @__PURE__ */ o(
|
|
1387
|
+
return /* @__PURE__ */ $(Kr, { isSelected: e.isCurrent, children: [
|
|
1388
|
+
/* @__PURE__ */ o(Gr, { children: /* @__PURE__ */ o(
|
|
1389
1389
|
Vt,
|
|
1390
1390
|
{
|
|
1391
1391
|
id: e.id.toString(),
|
|
@@ -1403,7 +1403,7 @@ const qn = ({
|
|
|
1403
1403
|
}
|
|
1404
1404
|
) }),
|
|
1405
1405
|
/* @__PURE__ */ o(nt, { children: /* @__PURE__ */ o(
|
|
1406
|
-
|
|
1406
|
+
Jr,
|
|
1407
1407
|
{
|
|
1408
1408
|
href: e.url,
|
|
1409
1409
|
target: "_blank",
|
|
@@ -1412,29 +1412,29 @@ const qn = ({
|
|
|
1412
1412
|
children: e.title
|
|
1413
1413
|
}
|
|
1414
1414
|
) }),
|
|
1415
|
-
/* @__PURE__ */ o(
|
|
1415
|
+
/* @__PURE__ */ o(Xn, { item: e })
|
|
1416
1416
|
] }, e.id);
|
|
1417
1417
|
}
|
|
1418
|
-
),
|
|
1418
|
+
), Qn = P(
|
|
1419
1419
|
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
1420
|
-
|
|
1420
|
+
Tn,
|
|
1421
1421
|
{
|
|
1422
1422
|
tag: "tbody",
|
|
1423
1423
|
list: e.items,
|
|
1424
1424
|
setList: (t) => e.setItems(t),
|
|
1425
|
-
children: e.items.map((t) => /* @__PURE__ */ o(
|
|
1425
|
+
children: e.items.map((t) => /* @__PURE__ */ o(Zn, { item: t }, t.id))
|
|
1426
1426
|
}
|
|
1427
1427
|
)
|
|
1428
|
-
),
|
|
1429
|
-
({ playQueueStore: e }) => /* @__PURE__ */ $(
|
|
1430
|
-
/* @__PURE__ */ o(
|
|
1431
|
-
/* @__PURE__ */ o(
|
|
1428
|
+
), ei = P(
|
|
1429
|
+
({ playQueueStore: e }) => /* @__PURE__ */ $(Xr, { children: [
|
|
1430
|
+
/* @__PURE__ */ o(Gn, { playQueueStore: e }),
|
|
1431
|
+
/* @__PURE__ */ o(Qn, { playQueueStore: e })
|
|
1432
1432
|
] })
|
|
1433
1433
|
);
|
|
1434
|
-
function
|
|
1434
|
+
function ti(e) {
|
|
1435
1435
|
return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
|
|
1436
1436
|
}
|
|
1437
|
-
const
|
|
1437
|
+
const ri = P(
|
|
1438
1438
|
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
1439
1439
|
re,
|
|
1440
1440
|
{
|
|
@@ -1450,13 +1450,13 @@ P(
|
|
|
1450
1450
|
const [t, n] = W(!1);
|
|
1451
1451
|
return /* @__PURE__ */ $(Le, { children: [
|
|
1452
1452
|
t && /* @__PURE__ */ o(
|
|
1453
|
-
|
|
1453
|
+
Qr,
|
|
1454
1454
|
{
|
|
1455
1455
|
type: "push",
|
|
1456
1456
|
size: "s",
|
|
1457
1457
|
onClose: () => n(!1),
|
|
1458
1458
|
children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
|
|
1459
|
-
|
|
1459
|
+
Zr,
|
|
1460
1460
|
{
|
|
1461
1461
|
language: "json",
|
|
1462
1462
|
overflowHeight: "100%",
|
|
@@ -1475,14 +1475,14 @@ P(
|
|
|
1475
1475
|
re,
|
|
1476
1476
|
{
|
|
1477
1477
|
onClick: () => n((i) => !i),
|
|
1478
|
-
iconType:
|
|
1478
|
+
iconType: an,
|
|
1479
1479
|
children: "Developer tools"
|
|
1480
1480
|
}
|
|
1481
1481
|
)
|
|
1482
1482
|
] });
|
|
1483
1483
|
}
|
|
1484
1484
|
);
|
|
1485
|
-
const
|
|
1485
|
+
const ni = P(
|
|
1486
1486
|
({ playQueueStore: e }) => {
|
|
1487
1487
|
const { euiTheme: t } = Lt(), n = N(
|
|
1488
1488
|
async (i) => {
|
|
@@ -1500,7 +1500,7 @@ const ri = P(
|
|
|
1500
1500
|
url: i.url,
|
|
1501
1501
|
type: a.type,
|
|
1502
1502
|
videoId: l,
|
|
1503
|
-
title: i.title || (
|
|
1503
|
+
title: i.title || (ti(h) ? h.title : l)
|
|
1504
1504
|
})
|
|
1505
1505
|
]);
|
|
1506
1506
|
}
|
|
@@ -1529,7 +1529,7 @@ const ri = P(
|
|
|
1529
1529
|
children: "Play next"
|
|
1530
1530
|
}
|
|
1531
1531
|
) }),
|
|
1532
|
-
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1532
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ri, { playQueueStore: e }) }),
|
|
1533
1533
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1534
1534
|
re,
|
|
1535
1535
|
{
|
|
@@ -1542,7 +1542,7 @@ const ri = P(
|
|
|
1542
1542
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1543
1543
|
re,
|
|
1544
1544
|
{
|
|
1545
|
-
iconType:
|
|
1545
|
+
iconType: sn,
|
|
1546
1546
|
onClick: e.clear,
|
|
1547
1547
|
disabled: e.isEmpty,
|
|
1548
1548
|
children: "Clear"
|
|
@@ -1569,19 +1569,19 @@ const ri = P(
|
|
|
1569
1569
|
}
|
|
1570
1570
|
),
|
|
1571
1571
|
e.isEmpty ? /* @__PURE__ */ o(
|
|
1572
|
-
|
|
1572
|
+
en,
|
|
1573
1573
|
{
|
|
1574
1574
|
title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
|
|
1575
1575
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
1576
1576
|
actions: /* @__PURE__ */ o($t, { onSave: n })
|
|
1577
1577
|
}
|
|
1578
|
-
) : /* @__PURE__ */ o(
|
|
1578
|
+
) : /* @__PURE__ */ o(ei, { playQueueStore: e })
|
|
1579
1579
|
] });
|
|
1580
1580
|
}
|
|
1581
|
-
), tt = new
|
|
1581
|
+
), tt = new En({
|
|
1582
1582
|
coerceTypes: !0
|
|
1583
1583
|
});
|
|
1584
|
-
function
|
|
1584
|
+
function ii(e, t) {
|
|
1585
1585
|
let n;
|
|
1586
1586
|
if (n = tt.getSchema(t), n === void 0 && (tt.addSchema(e, t), n = tt.getSchema(t)), n === void 0 || n.schema !== e)
|
|
1587
1587
|
throw new Error(
|
|
@@ -1591,7 +1591,7 @@ function ni(e, t) {
|
|
|
1591
1591
|
);
|
|
1592
1592
|
return n;
|
|
1593
1593
|
}
|
|
1594
|
-
const
|
|
1594
|
+
const oi = {
|
|
1595
1595
|
type: "object",
|
|
1596
1596
|
properties: {
|
|
1597
1597
|
url: {
|
|
@@ -1610,7 +1610,7 @@ const ii = {
|
|
|
1610
1610
|
required: ["url", "type", "videoId", "title"]
|
|
1611
1611
|
};
|
|
1612
1612
|
var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {});
|
|
1613
|
-
const
|
|
1613
|
+
const ai = {
|
|
1614
1614
|
type: "object",
|
|
1615
1615
|
properties: {
|
|
1616
1616
|
version: {
|
|
@@ -1629,7 +1629,7 @@ const oi = {
|
|
|
1629
1629
|
items: {
|
|
1630
1630
|
type: "array",
|
|
1631
1631
|
nullable: !0,
|
|
1632
|
-
items:
|
|
1632
|
+
items: oi
|
|
1633
1633
|
},
|
|
1634
1634
|
currentIndex: {
|
|
1635
1635
|
type: "integer",
|
|
@@ -1748,7 +1748,7 @@ class $e {
|
|
|
1748
1748
|
return this.playQueueStore.removeOtherItems(this);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
class
|
|
1751
|
+
class si {
|
|
1752
1752
|
constructor(t) {
|
|
1753
1753
|
this.observableStateProvider = t, t.makeObservable(this, {
|
|
1754
1754
|
interacted: Z,
|
|
@@ -1818,8 +1818,8 @@ class ai {
|
|
|
1818
1818
|
this.repeat = t.repeat ?? O.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((n) => this.createItem(n)) ?? [], this.currentIndex = t.currentIndex;
|
|
1819
1819
|
}
|
|
1820
1820
|
validateLocalStorageState(t) {
|
|
1821
|
-
return
|
|
1822
|
-
|
|
1821
|
+
return ii(
|
|
1822
|
+
ai,
|
|
1823
1823
|
"PlayQueueDto"
|
|
1824
1824
|
)(t);
|
|
1825
1825
|
}
|
|
@@ -1974,11 +1974,11 @@ class ai {
|
|
|
1974
1974
|
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
const nr = zt(void 0),
|
|
1977
|
+
const nr = zt(void 0), Wi = ({
|
|
1978
1978
|
children: e
|
|
1979
1979
|
}) => {
|
|
1980
1980
|
const [t] = W(
|
|
1981
|
-
() => new
|
|
1981
|
+
() => new si(new Kt())
|
|
1982
1982
|
), n = U();
|
|
1983
1983
|
return kr(() => Or(
|
|
1984
1984
|
() => t.currentItem,
|
|
@@ -1986,12 +1986,12 @@ const nr = zt(void 0), Yi = ({
|
|
|
1986
1986
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
|
|
1987
1987
|
}
|
|
1988
1988
|
), [t, n]), /* @__PURE__ */ o(nr.Provider, { value: t, children: e });
|
|
1989
|
-
}, ir = () => at(nr),
|
|
1989
|
+
}, ir = () => at(nr), li = ({
|
|
1990
1990
|
breadcrumbs: e,
|
|
1991
1991
|
tabs: t,
|
|
1992
1992
|
...n
|
|
1993
1993
|
}) => {
|
|
1994
|
-
const i =
|
|
1994
|
+
const i = Cn();
|
|
1995
1995
|
return /* @__PURE__ */ o(
|
|
1996
1996
|
lt.Header,
|
|
1997
1997
|
{
|
|
@@ -2018,32 +2018,32 @@ const nr = zt(void 0), Yi = ({
|
|
|
2018
2018
|
}))
|
|
2019
2019
|
}
|
|
2020
2020
|
);
|
|
2021
|
-
},
|
|
2021
|
+
}, Ui = () => {
|
|
2022
2022
|
const e = ir();
|
|
2023
2023
|
return /* @__PURE__ */ $(Le, { children: [
|
|
2024
2024
|
/* @__PURE__ */ o(
|
|
2025
|
-
|
|
2025
|
+
li,
|
|
2026
2026
|
{
|
|
2027
2027
|
pageTitle: "Play queue",
|
|
2028
2028
|
rightSideItems: []
|
|
2029
2029
|
}
|
|
2030
2030
|
),
|
|
2031
|
-
/* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(
|
|
2031
|
+
/* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ni, { playQueueStore: e }) })
|
|
2032
2032
|
] });
|
|
2033
|
-
},
|
|
2033
|
+
}, ci = P(
|
|
2034
2034
|
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2035
2035
|
q,
|
|
2036
2036
|
{
|
|
2037
2037
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2038
2038
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2039
|
-
iconType: e.shuffle ?
|
|
2039
|
+
iconType: e.shuffle ? ln : cn,
|
|
2040
2040
|
size: "s",
|
|
2041
2041
|
iconSize: "l",
|
|
2042
2042
|
onClick: e.toggleShuffle,
|
|
2043
2043
|
disabled: !0
|
|
2044
2044
|
}
|
|
2045
2045
|
)
|
|
2046
|
-
),
|
|
2046
|
+
), ui = P(
|
|
2047
2047
|
({ playQueueStore: e }) => {
|
|
2048
2048
|
const t = U(), n = N(async () => {
|
|
2049
2049
|
if (e.hasPreviousItem) {
|
|
@@ -2057,7 +2057,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2057
2057
|
{
|
|
2058
2058
|
title: "Previous",
|
|
2059
2059
|
"aria-label": "Previous",
|
|
2060
|
-
iconType:
|
|
2060
|
+
iconType: un,
|
|
2061
2061
|
size: "s",
|
|
2062
2062
|
iconSize: "l",
|
|
2063
2063
|
onClick: n,
|
|
@@ -2065,7 +2065,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2065
2065
|
}
|
|
2066
2066
|
);
|
|
2067
2067
|
}
|
|
2068
|
-
),
|
|
2068
|
+
), di = P(
|
|
2069
2069
|
({ playerStore: e, playQueueStore: t }) => {
|
|
2070
2070
|
const n = U(), i = N(async () => {
|
|
2071
2071
|
const a = await n.getCurrentTime();
|
|
@@ -2084,7 +2084,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2084
2084
|
}
|
|
2085
2085
|
);
|
|
2086
2086
|
}
|
|
2087
|
-
),
|
|
2087
|
+
), fi = P(
|
|
2088
2088
|
({ playerStore: e, playQueueStore: t }) => {
|
|
2089
2089
|
const n = U();
|
|
2090
2090
|
return /* @__PURE__ */ o(
|
|
@@ -2092,7 +2092,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2092
2092
|
{
|
|
2093
2093
|
title: "Pause",
|
|
2094
2094
|
"aria-label": "Pause",
|
|
2095
|
-
iconType:
|
|
2095
|
+
iconType: dn,
|
|
2096
2096
|
size: "s",
|
|
2097
2097
|
iconSize: "l",
|
|
2098
2098
|
onClick: () => n.pause(),
|
|
@@ -2100,7 +2100,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2100
2100
|
}
|
|
2101
2101
|
);
|
|
2102
2102
|
}
|
|
2103
|
-
),
|
|
2103
|
+
), mi = P(
|
|
2104
2104
|
({ playerStore: e, playQueueStore: t }) => {
|
|
2105
2105
|
const n = U();
|
|
2106
2106
|
return /* @__PURE__ */ o(
|
|
@@ -2108,7 +2108,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2108
2108
|
{
|
|
2109
2109
|
title: "Play",
|
|
2110
2110
|
"aria-label": "Play",
|
|
2111
|
-
iconType:
|
|
2111
|
+
iconType: fn,
|
|
2112
2112
|
size: "s",
|
|
2113
2113
|
iconSize: "l",
|
|
2114
2114
|
onClick: () => n.play(),
|
|
@@ -2116,7 +2116,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2116
2116
|
}
|
|
2117
2117
|
);
|
|
2118
2118
|
}
|
|
2119
|
-
),
|
|
2119
|
+
), hi = P(
|
|
2120
2120
|
({
|
|
2121
2121
|
playerStore: e,
|
|
2122
2122
|
playQueueStore: t
|
|
@@ -2138,36 +2138,36 @@ const nr = zt(void 0), Yi = ({
|
|
|
2138
2138
|
}
|
|
2139
2139
|
);
|
|
2140
2140
|
}
|
|
2141
|
-
),
|
|
2141
|
+
), vi = P(
|
|
2142
2142
|
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2143
2143
|
q,
|
|
2144
2144
|
{
|
|
2145
2145
|
title: "Next",
|
|
2146
2146
|
"aria-label": "Next",
|
|
2147
|
-
iconType:
|
|
2147
|
+
iconType: mn,
|
|
2148
2148
|
size: "s",
|
|
2149
2149
|
iconSize: "l",
|
|
2150
2150
|
onClick: e.next,
|
|
2151
2151
|
disabled: !e.hasNextItem
|
|
2152
2152
|
}
|
|
2153
2153
|
)
|
|
2154
|
-
),
|
|
2155
|
-
[O.Off]:
|
|
2156
|
-
[O.All]:
|
|
2157
|
-
[O.One]:
|
|
2158
|
-
},
|
|
2154
|
+
), pi = {
|
|
2155
|
+
[O.Off]: pn,
|
|
2156
|
+
[O.All]: vn,
|
|
2157
|
+
[O.One]: hn
|
|
2158
|
+
}, yi = P(
|
|
2159
2159
|
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2160
2160
|
q,
|
|
2161
2161
|
{
|
|
2162
2162
|
title: `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
|
|
2163
2163
|
"aria-label": `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
|
|
2164
|
-
iconType:
|
|
2164
|
+
iconType: pi[e.repeat],
|
|
2165
2165
|
size: "s",
|
|
2166
2166
|
iconSize: "l",
|
|
2167
2167
|
onClick: e.toggleRepeat
|
|
2168
2168
|
}
|
|
2169
2169
|
)
|
|
2170
|
-
),
|
|
2170
|
+
), gi = P(
|
|
2171
2171
|
({
|
|
2172
2172
|
playerStore: e,
|
|
2173
2173
|
playQueueStore: t
|
|
@@ -2179,41 +2179,41 @@ const nr = zt(void 0), Yi = ({
|
|
|
2179
2179
|
justifyContent: "center",
|
|
2180
2180
|
alignItems: "center",
|
|
2181
2181
|
children: [
|
|
2182
|
-
/* @__PURE__ */ o(li, { playQueueStore: t }),
|
|
2183
2182
|
/* @__PURE__ */ o(ci, { playQueueStore: t }),
|
|
2183
|
+
/* @__PURE__ */ o(ui, { playQueueStore: t }),
|
|
2184
2184
|
/* @__PURE__ */ o(
|
|
2185
|
-
|
|
2185
|
+
di,
|
|
2186
2186
|
{
|
|
2187
2187
|
playerStore: e,
|
|
2188
2188
|
playQueueStore: t
|
|
2189
2189
|
}
|
|
2190
2190
|
),
|
|
2191
2191
|
e.playing ? /* @__PURE__ */ o(
|
|
2192
|
-
|
|
2192
|
+
fi,
|
|
2193
2193
|
{
|
|
2194
2194
|
playerStore: e,
|
|
2195
2195
|
playQueueStore: t
|
|
2196
2196
|
}
|
|
2197
2197
|
) : /* @__PURE__ */ o(
|
|
2198
|
-
|
|
2198
|
+
mi,
|
|
2199
2199
|
{
|
|
2200
2200
|
playerStore: e,
|
|
2201
2201
|
playQueueStore: t
|
|
2202
2202
|
}
|
|
2203
2203
|
),
|
|
2204
2204
|
/* @__PURE__ */ o(
|
|
2205
|
-
|
|
2205
|
+
hi,
|
|
2206
2206
|
{
|
|
2207
2207
|
playerStore: e,
|
|
2208
2208
|
playQueueStore: t
|
|
2209
2209
|
}
|
|
2210
2210
|
),
|
|
2211
|
-
/* @__PURE__ */ o(
|
|
2212
|
-
/* @__PURE__ */ o(
|
|
2211
|
+
/* @__PURE__ */ o(vi, { playQueueStore: t }),
|
|
2212
|
+
/* @__PURE__ */ o(yi, { playQueueStore: t })
|
|
2213
2213
|
]
|
|
2214
2214
|
}
|
|
2215
2215
|
)
|
|
2216
|
-
),
|
|
2216
|
+
), bi = ne(
|
|
2217
2217
|
({ item: e, closePopover: t }) => {
|
|
2218
2218
|
const n = U(), i = De(
|
|
2219
2219
|
() => [
|
|
@@ -2222,7 +2222,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2222
2222
|
items: [
|
|
2223
2223
|
{
|
|
2224
2224
|
name: "Open in new tab",
|
|
2225
|
-
icon: /* @__PURE__ */ o(Y, { type:
|
|
2225
|
+
icon: /* @__PURE__ */ o(Y, { type: yn }),
|
|
2226
2226
|
onClick: async () => {
|
|
2227
2227
|
t(), await n.pause(), window.open(e.dto.url, "_blank");
|
|
2228
2228
|
}
|
|
@@ -2252,7 +2252,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2252
2252
|
);
|
|
2253
2253
|
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: i });
|
|
2254
2254
|
}
|
|
2255
|
-
),
|
|
2255
|
+
), Ti = ne(
|
|
2256
2256
|
({ item: e }) => {
|
|
2257
2257
|
const [t, n] = W(!1), i = N(() => n(!t), [t]), a = N(() => n(!1), []);
|
|
2258
2258
|
return /* @__PURE__ */ o(
|
|
@@ -2272,7 +2272,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2272
2272
|
panelPaddingSize: "none",
|
|
2273
2273
|
anchorPosition: "upLeft",
|
|
2274
2274
|
children: /* @__PURE__ */ o(
|
|
2275
|
-
|
|
2275
|
+
bi,
|
|
2276
2276
|
{
|
|
2277
2277
|
item: e,
|
|
2278
2278
|
closePopover: a
|
|
@@ -2281,7 +2281,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2281
2281
|
}
|
|
2282
2282
|
);
|
|
2283
2283
|
}
|
|
2284
|
-
),
|
|
2284
|
+
), Ei = P(
|
|
2285
2285
|
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2286
2286
|
se,
|
|
2287
2287
|
{
|
|
@@ -2289,10 +2289,10 @@ const nr = zt(void 0), Yi = ({
|
|
|
2289
2289
|
gutterSize: "s",
|
|
2290
2290
|
justifyContent: "flexStart",
|
|
2291
2291
|
alignItems: "center",
|
|
2292
|
-
children: e.currentItem && /* @__PURE__ */ o(
|
|
2292
|
+
children: e.currentItem && /* @__PURE__ */ o(Ti, { item: e.currentItem })
|
|
2293
2293
|
}
|
|
2294
2294
|
)
|
|
2295
|
-
),
|
|
2295
|
+
), Ci = P(
|
|
2296
2296
|
({ playerStore: e }) => /* @__PURE__ */ o(
|
|
2297
2297
|
q,
|
|
2298
2298
|
{
|
|
@@ -2304,7 +2304,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2304
2304
|
disabled: !e.controller.supports("setMuted")
|
|
2305
2305
|
}
|
|
2306
2306
|
)
|
|
2307
|
-
),
|
|
2307
|
+
), xi = P(
|
|
2308
2308
|
({
|
|
2309
2309
|
playerStore: e,
|
|
2310
2310
|
button: t,
|
|
@@ -2338,7 +2338,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2338
2338
|
justifyContent: "center",
|
|
2339
2339
|
alignItems: "center",
|
|
2340
2340
|
children: [
|
|
2341
|
-
/* @__PURE__ */ o(
|
|
2341
|
+
/* @__PURE__ */ o(Ci, { playerStore: e }),
|
|
2342
2342
|
/* @__PURE__ */ o(
|
|
2343
2343
|
Wt,
|
|
2344
2344
|
{
|
|
@@ -2357,11 +2357,11 @@ const nr = zt(void 0), Yi = ({
|
|
|
2357
2357
|
}
|
|
2358
2358
|
);
|
|
2359
2359
|
}
|
|
2360
|
-
),
|
|
2360
|
+
), Ii = P(
|
|
2361
2361
|
({ playerStore: e }) => {
|
|
2362
2362
|
const [t, n] = W(!1);
|
|
2363
2363
|
return /* @__PURE__ */ o(
|
|
2364
|
-
|
|
2364
|
+
xi,
|
|
2365
2365
|
{
|
|
2366
2366
|
playerStore: e,
|
|
2367
2367
|
button: /* @__PURE__ */ o(
|
|
@@ -2381,19 +2381,19 @@ const nr = zt(void 0), Yi = ({
|
|
|
2381
2381
|
}
|
|
2382
2382
|
);
|
|
2383
2383
|
}
|
|
2384
|
-
),
|
|
2384
|
+
), Si = ({
|
|
2385
2385
|
onClickPlayQueueButton: e
|
|
2386
2386
|
}) => /* @__PURE__ */ o(
|
|
2387
2387
|
q,
|
|
2388
2388
|
{
|
|
2389
2389
|
title: "Play queue",
|
|
2390
2390
|
"aria-label": "Play queue",
|
|
2391
|
-
iconType:
|
|
2391
|
+
iconType: bn,
|
|
2392
2392
|
size: "s",
|
|
2393
2393
|
iconSize: "l",
|
|
2394
2394
|
onClick: e
|
|
2395
2395
|
}
|
|
2396
|
-
),
|
|
2396
|
+
), Pi = P(
|
|
2397
2397
|
({
|
|
2398
2398
|
playerStore: e,
|
|
2399
2399
|
playQueueStore: t,
|
|
@@ -2416,14 +2416,14 @@ const nr = zt(void 0), Yi = ({
|
|
|
2416
2416
|
]), n();
|
|
2417
2417
|
}, [t, n]), [m, p] = W(), T = N(async () => {
|
|
2418
2418
|
await e.controller.getPlaybackRate().then((I) => p(I));
|
|
2419
|
-
}, [e]),
|
|
2419
|
+
}, [e]), w = De(
|
|
2420
2420
|
() => [
|
|
2421
2421
|
{
|
|
2422
2422
|
id: 0,
|
|
2423
2423
|
items: [
|
|
2424
2424
|
{
|
|
2425
2425
|
name: "Speed",
|
|
2426
|
-
icon: /* @__PURE__ */ o(Y, { type:
|
|
2426
|
+
icon: /* @__PURE__ */ o(Y, { type: gn }),
|
|
2427
2427
|
panel: 1,
|
|
2428
2428
|
onClick: T,
|
|
2429
2429
|
disabled: !e.controller.supports(
|
|
@@ -2483,9 +2483,9 @@ const nr = zt(void 0), Yi = ({
|
|
|
2483
2483
|
m
|
|
2484
2484
|
]
|
|
2485
2485
|
);
|
|
2486
|
-
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels:
|
|
2486
|
+
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: w });
|
|
2487
2487
|
}
|
|
2488
|
-
),
|
|
2488
|
+
), wi = ne(
|
|
2489
2489
|
({
|
|
2490
2490
|
playerStore: e,
|
|
2491
2491
|
playQueueStore: t,
|
|
@@ -2501,7 +2501,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2501
2501
|
panelPaddingSize: "none",
|
|
2502
2502
|
anchorPosition: "upRight",
|
|
2503
2503
|
children: /* @__PURE__ */ o(
|
|
2504
|
-
|
|
2504
|
+
Pi,
|
|
2505
2505
|
{
|
|
2506
2506
|
playerStore: e,
|
|
2507
2507
|
playQueueStore: t,
|
|
@@ -2514,7 +2514,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2514
2514
|
({ playerStore: e, playQueueStore: t }) => {
|
|
2515
2515
|
const [n, i] = W(!1);
|
|
2516
2516
|
return /* @__PURE__ */ o(
|
|
2517
|
-
|
|
2517
|
+
wi,
|
|
2518
2518
|
{
|
|
2519
2519
|
playerStore: e,
|
|
2520
2520
|
playQueueStore: t,
|
|
@@ -2534,7 +2534,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2534
2534
|
}
|
|
2535
2535
|
);
|
|
2536
2536
|
}
|
|
2537
|
-
),
|
|
2537
|
+
), Oi = ne(
|
|
2538
2538
|
({
|
|
2539
2539
|
playerStore: e,
|
|
2540
2540
|
playQueueStore: t,
|
|
@@ -2547,9 +2547,9 @@ const nr = zt(void 0), Yi = ({
|
|
|
2547
2547
|
justifyContent: "flexEnd",
|
|
2548
2548
|
alignItems: "center",
|
|
2549
2549
|
children: [
|
|
2550
|
-
/* @__PURE__ */ o(
|
|
2550
|
+
/* @__PURE__ */ o(Ii, { playerStore: e }),
|
|
2551
2551
|
n && /* @__PURE__ */ o(
|
|
2552
|
-
|
|
2552
|
+
Si,
|
|
2553
2553
|
{
|
|
2554
2554
|
onClickPlayQueueButton: n
|
|
2555
2555
|
}
|
|
@@ -2564,7 +2564,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2564
2564
|
]
|
|
2565
2565
|
}
|
|
2566
2566
|
)
|
|
2567
|
-
),
|
|
2567
|
+
), _i = P(
|
|
2568
2568
|
({ playerStore: e, playQueueStore: t }) => {
|
|
2569
2569
|
const n = U(), i = N(
|
|
2570
2570
|
(d) => {
|
|
@@ -2605,14 +2605,14 @@ const nr = zt(void 0), Yi = ({
|
|
|
2605
2605
|
}
|
|
2606
2606
|
);
|
|
2607
2607
|
}
|
|
2608
|
-
),
|
|
2608
|
+
), qi = P(
|
|
2609
2609
|
({
|
|
2610
2610
|
playerStore: e,
|
|
2611
2611
|
playQueueStore: t,
|
|
2612
2612
|
onClickPlayQueueButton: n
|
|
2613
|
-
}) => /* @__PURE__ */ o(
|
|
2613
|
+
}) => /* @__PURE__ */ o(tn, { paddingSize: "s", children: /* @__PURE__ */ $(se, { direction: "column", gutterSize: "none", children: [
|
|
2614
2614
|
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2615
|
-
|
|
2615
|
+
_i,
|
|
2616
2616
|
{
|
|
2617
2617
|
playerStore: e,
|
|
2618
2618
|
playQueueStore: t
|
|
@@ -2620,20 +2620,20 @@ const nr = zt(void 0), Yi = ({
|
|
|
2620
2620
|
) }),
|
|
2621
2621
|
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ $(se, { responsive: !1, children: [
|
|
2622
2622
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2623
|
-
|
|
2623
|
+
Ei,
|
|
2624
2624
|
{
|
|
2625
2625
|
playQueueStore: t
|
|
2626
2626
|
}
|
|
2627
2627
|
) }),
|
|
2628
2628
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2629
|
-
|
|
2629
|
+
gi,
|
|
2630
2630
|
{
|
|
2631
2631
|
playerStore: e,
|
|
2632
2632
|
playQueueStore: t
|
|
2633
2633
|
}
|
|
2634
2634
|
) }),
|
|
2635
2635
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2636
|
-
|
|
2636
|
+
Oi,
|
|
2637
2637
|
{
|
|
2638
2638
|
playerStore: e,
|
|
2639
2639
|
playQueueStore: t,
|
|
@@ -2642,10 +2642,10 @@ const nr = zt(void 0), Yi = ({
|
|
|
2642
2642
|
) })
|
|
2643
2643
|
] }) })
|
|
2644
2644
|
] }) })
|
|
2645
|
-
),
|
|
2645
|
+
), Hi = (e) => /* @__PURE__ */ o(jr, { ...e }), ot = {
|
|
2646
2646
|
width: 400,
|
|
2647
2647
|
height: 225
|
|
2648
|
-
},
|
|
2648
|
+
}, Gi = P(
|
|
2649
2649
|
({ children: e }) => {
|
|
2650
2650
|
const t = ir();
|
|
2651
2651
|
return /* @__PURE__ */ $(
|
|
@@ -2662,7 +2662,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2662
2662
|
}
|
|
2663
2663
|
);
|
|
2664
2664
|
}
|
|
2665
|
-
),
|
|
2665
|
+
), Ji = P(
|
|
2666
2666
|
({ playerStore: e, playQueueStore: t }) => {
|
|
2667
2667
|
const n = U(), i = N(async () => {
|
|
2668
2668
|
t.interacted && await n.play();
|
|
@@ -2688,6 +2688,11 @@ const nr = zt(void 0), Yi = ({
|
|
|
2688
2688
|
}
|
|
2689
2689
|
}, [t, e, n]), l = De(
|
|
2690
2690
|
() => ({
|
|
2691
|
+
services: {
|
|
2692
|
+
[Nr.YouTube]: {
|
|
2693
|
+
host: "https://www.youtube.com"
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2691
2696
|
onLoaded: i,
|
|
2692
2697
|
onPlay: e.onPlay,
|
|
2693
2698
|
onPause: e.onPause,
|
|
@@ -2711,7 +2716,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2711
2716
|
flexDirection: "column"
|
|
2712
2717
|
},
|
|
2713
2718
|
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: t.currentItem && /* @__PURE__ */ o(
|
|
2714
|
-
|
|
2719
|
+
$r,
|
|
2715
2720
|
{
|
|
2716
2721
|
src: t.currentItem.url,
|
|
2717
2722
|
options: l,
|
|
@@ -2722,8 +2727,8 @@ const nr = zt(void 0), Yi = ({
|
|
|
2722
2727
|
);
|
|
2723
2728
|
}
|
|
2724
2729
|
);
|
|
2725
|
-
class
|
|
2726
|
-
controller =
|
|
2730
|
+
class ki {
|
|
2731
|
+
controller = Dr;
|
|
2727
2732
|
playing = !1;
|
|
2728
2733
|
percent = 0;
|
|
2729
2734
|
seeking = !1;
|
|
@@ -2768,28 +2773,28 @@ class _i {
|
|
|
2768
2773
|
t !== void 0 && (this.seeking || (this.percent = t));
|
|
2769
2774
|
}
|
|
2770
2775
|
}
|
|
2771
|
-
const or = zt(void 0),
|
|
2776
|
+
const or = zt(void 0), Ki = ({
|
|
2772
2777
|
children: e
|
|
2773
2778
|
}) => {
|
|
2774
2779
|
const [t] = W(
|
|
2775
|
-
() => new
|
|
2780
|
+
() => new ki(new Kt())
|
|
2776
2781
|
);
|
|
2777
2782
|
return /* @__PURE__ */ o(or.Provider, { value: t, children: e });
|
|
2778
|
-
},
|
|
2783
|
+
}, Xi = () => at(or);
|
|
2779
2784
|
export {
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2785
|
+
qi as BottomBar,
|
|
2786
|
+
Hi as HydrangeanDivaProvider,
|
|
2787
|
+
Gi as MediaPlayerLayout,
|
|
2788
|
+
Ji as MiniPlayer,
|
|
2784
2789
|
Kt as MobXObservableStateProvider,
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
+
Yi as ObservableStateProvider,
|
|
2791
|
+
ni as PlayQueue,
|
|
2792
|
+
Ui as PlayQueuePage,
|
|
2793
|
+
Wi as PlayQueueStoreProvider,
|
|
2794
|
+
Ki as PlayerStoreProvider,
|
|
2790
2795
|
O as RepeatMode,
|
|
2791
2796
|
Jt as bottomBarHeight,
|
|
2792
2797
|
ir as usePlayQueueStore,
|
|
2793
|
-
|
|
2798
|
+
Xi as usePlayerStore
|
|
2794
2799
|
};
|
|
2795
2800
|
//# sourceMappingURL=index.es.js.map
|