@aigamo/hydrangean-diva 0.0.1-alpha.12 → 0.0.1-alpha.13
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,19 +5,19 @@ import { makeObservable as Rr, action as y, computed as _, observable as te, rea
|
|
|
5
5
|
import * as re from "react";
|
|
6
6
|
import zt, { forwardRef as Or, useContext as st, memo as Z, useState as q, useCallback as $, createContext as Lt, useEffect as _r, useLayoutEffect as Ar, useMemo as Vt } from "react";
|
|
7
7
|
import kr from "@emotion/cache";
|
|
8
|
-
import { EuiButton as ne, EuiModalHeaderTitle as Mr, EuiModalHeader as Fr, EuiForm as jr, EuiFormRow as tt, EuiFieldText as It, EuiModalBody as Nr, EuiModalFooter as $r, EuiButtonEmpty as Dr, EuiModal as zr, useEuiTheme as Yt, EuiCheckbox as Bt, EuiTableHeaderCellCheckbox as Lr, EuiTableHeader as Vr, EuiContextMenuItem as Yr, EuiContextMenuPanel as Br, EuiTableRowCell as rt, EuiTableRowCellCheckbox as Wr, EuiLink as Ur, EuiTableRow as qr, EuiTable as Hr, EuiButtonIcon as
|
|
9
|
-
import { AddRegular as ct, PlayRegular as Qr, DismissRegular as ut, MoreHorizontalFilled as qt, ArrowUploadRegular as en, ArrowDownloadRegular as tn, WindowDevToolsRegular as rn, DeleteRegular as nn, Speaker2Regular as Ht, TopSpeedRegular as on, SkipBack10Regular as an, SkipForward30Regular as sn, ArrowRepeat1Filled as ln, ArrowRepeatAllFilled as cn, ArrowRepeatAllOffFilled as un, ArrowShuffleFilled as fn, ArrowShuffleOffFilled as dn, PreviousFilled as mn, PauseFilled as hn, PlayFilled as vn, NextFilled as pn } from "@fluentui/react-icons";
|
|
8
|
+
import { EuiButton as ne, EuiModalHeaderTitle as Mr, EuiModalHeader as Fr, EuiForm as jr, EuiFormRow as tt, EuiFieldText as It, EuiModalBody as Nr, EuiModalFooter as $r, EuiButtonEmpty as Dr, EuiModal as zr, useEuiTheme as Yt, EuiCheckbox as Bt, EuiTableHeaderCellCheckbox as Lr, EuiTableHeader as Vr, EuiContextMenuItem as Yr, EuiContextMenuPanel as Br, EuiTableRowCell as rt, EuiTableRowCellCheckbox as Wr, EuiLink as Ur, EuiTableRow as qr, EuiTable as Hr, EuiButtonIcon as G, EuiPopover as lt, EuiIcon as H, EuiHorizontalRule as Pt, EuiTableHeaderCell as Xe, EuiCodeBlock as Gr, EuiFlyout as Jr, EuiFlexGroup as me, EuiFlexItem as J, EuiSpacer as Wt, EuiEmptyPrompt as Kr, EuiPageTemplate as nt, EuiRange as Ut, EuiContextMenu as Xr, EuiBottomBar as Zr } from "@elastic/eui";
|
|
9
|
+
import { AddRegular as ct, PlayRegular as Qr, DismissRegular as ut, MoreHorizontalFilled as qt, ArrowUploadRegular as en, ArrowDownloadRegular as tn, WindowDevToolsRegular as rn, DeleteRegular as nn, Speaker2Regular as Ht, TopSpeedRegular as on, SkipBack10Regular as an, SkipForward30Regular as sn, ArrowRepeat1Filled as ln, ArrowRepeatAllFilled as cn, ArrowRepeatAllOffFilled as un, ArrowShuffleFilled as fn, ArrowShuffleOffFilled as dn, PreviousFilled as mn, PauseFilled as hn, PlayFilled as vn, NextFilled as pn, NavigationPlayRegular as yn } from "@fluentui/react-icons";
|
|
10
10
|
import { observer as Y } from "mobx-react-lite";
|
|
11
|
-
import { findVideoService as
|
|
12
|
-
import { ReactSortable as
|
|
11
|
+
import { findVideoService as gn, useNostalgicDiva as ie, NostalgicDiva as bn } from "@aigamo/nostalgic-diva";
|
|
12
|
+
import { ReactSortable as En } from "react-sortablejs";
|
|
13
13
|
import { pull as Rt } from "lodash-es";
|
|
14
|
-
import
|
|
14
|
+
import Tn from "ajv";
|
|
15
15
|
class Gt {
|
|
16
16
|
makeObservable(e, n) {
|
|
17
17
|
return Rr(e, n);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
class
|
|
20
|
+
class _i {
|
|
21
21
|
makeObservable(e, n) {
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
@@ -33,7 +33,7 @@ var $e = { exports: {} }, xe = {};
|
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
35
|
var wt;
|
|
36
|
-
function
|
|
36
|
+
function xn() {
|
|
37
37
|
if (wt) return xe;
|
|
38
38
|
wt = 1;
|
|
39
39
|
var t = zt, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -57,7 +57,7 @@ var Se = {};
|
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/
|
|
59
59
|
var Ot;
|
|
60
|
-
function
|
|
60
|
+
function Sn() {
|
|
61
61
|
return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() {
|
|
62
62
|
var t = zt, e = 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"), f = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, B = "@@iterator";
|
|
63
63
|
function Q(r) {
|
|
@@ -103,7 +103,7 @@ function xn() {
|
|
|
103
103
|
function Oe(r) {
|
|
104
104
|
return r.displayName || "Context";
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function K(r) {
|
|
107
107
|
if (r == null)
|
|
108
108
|
return null;
|
|
109
109
|
if (typeof r.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
@@ -136,11 +136,11 @@ function xn() {
|
|
|
136
136
|
return Ye(r, r.render, "ForwardRef");
|
|
137
137
|
case P:
|
|
138
138
|
var v = r.displayName || null;
|
|
139
|
-
return v !== null ? v :
|
|
139
|
+
return v !== null ? v : K(r.type) || "Memo";
|
|
140
140
|
case D: {
|
|
141
141
|
var T = r, C = T._payload, b = T._init;
|
|
142
142
|
try {
|
|
143
|
-
return
|
|
143
|
+
return K(b(C));
|
|
144
144
|
} catch {
|
|
145
145
|
return null;
|
|
146
146
|
}
|
|
@@ -497,7 +497,7 @@ function xn() {
|
|
|
497
497
|
function bt() {
|
|
498
498
|
{
|
|
499
499
|
if (He.current) {
|
|
500
|
-
var r =
|
|
500
|
+
var r = K(He.current.type);
|
|
501
501
|
if (r)
|
|
502
502
|
return `
|
|
503
503
|
|
|
@@ -532,7 +532,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
532
532
|
return;
|
|
533
533
|
Et[u] = !0;
|
|
534
534
|
var v = "";
|
|
535
|
-
r && r._owner && r._owner !== He.current && (v = " It was passed a child from " +
|
|
535
|
+
r && r._owner && r._owner !== He.current && (v = " It was passed a child from " + K(r._owner.type) + "."), fe(r), I('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), fe(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function xt(r, s) {
|
|
@@ -569,11 +569,11 @@ Check the top-level render call using <` + u + ">.");
|
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (u) {
|
|
572
|
-
var v =
|
|
572
|
+
var v = K(s);
|
|
573
573
|
nr(u, r.props, "prop", v, r);
|
|
574
574
|
} else if (s.PropTypes !== void 0 && !Ge) {
|
|
575
575
|
Ge = !0;
|
|
576
|
-
var T =
|
|
576
|
+
var T = K(s);
|
|
577
577
|
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
578
578
|
}
|
|
579
579
|
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -601,7 +601,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
601
601
|
var N = vr();
|
|
602
602
|
N ? g += N : g += bt();
|
|
603
603
|
var O;
|
|
604
|
-
r === null ? O = "null" : qe(r) ? O = "array" : r !== void 0 && r.$$typeof === e ? (O = "<" + (
|
|
604
|
+
r === null ? O = "null" : qe(r) ? O = "array" : r !== void 0 && r.$$typeof === e ? (O = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof r, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
|
|
605
605
|
}
|
|
606
606
|
var M = hr(r, s, u, T, C);
|
|
607
607
|
if (M == null)
|
|
@@ -620,7 +620,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
620
620
|
xt(W, r);
|
|
621
621
|
}
|
|
622
622
|
if (Te.call(s, "key")) {
|
|
623
|
-
var se =
|
|
623
|
+
var se = K(r), V = Object.keys(s).filter(function(Cr) {
|
|
624
624
|
return Cr !== "key";
|
|
625
625
|
}), Ke = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
626
626
|
if (!St[se + Ke]) {
|
|
@@ -647,10 +647,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
647
647
|
}()), Se;
|
|
648
648
|
}
|
|
649
649
|
var _t;
|
|
650
|
-
function
|
|
651
|
-
return _t || (_t = 1, process.env.NODE_ENV === "production" ? $e.exports =
|
|
650
|
+
function Cn() {
|
|
651
|
+
return _t || (_t = 1, process.env.NODE_ENV === "production" ? $e.exports = xn() : $e.exports = Sn()), $e.exports;
|
|
652
652
|
}
|
|
653
|
-
var Ie =
|
|
653
|
+
var Ie = Cn(), De = { exports: {} }, x = {};
|
|
654
654
|
/** @license React v16.13.1
|
|
655
655
|
* react-is.production.min.js
|
|
656
656
|
*
|
|
@@ -660,7 +660,7 @@ var Ie = Sn(), De = { exports: {} }, x = {};
|
|
|
660
660
|
* LICENSE file in the root directory of this source tree.
|
|
661
661
|
*/
|
|
662
662
|
var At;
|
|
663
|
-
function
|
|
663
|
+
function In() {
|
|
664
664
|
if (At) return x;
|
|
665
665
|
At = 1;
|
|
666
666
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, f = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, P = t ? Symbol.for("react.suspense") : 60113, D = t ? Symbol.for("react.suspense_list") : 60120, j = t ? Symbol.for("react.memo") : 60115, A = t ? Symbol.for("react.lazy") : 60116, B = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, z = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
|
|
@@ -735,7 +735,7 @@ var S = {};
|
|
|
735
735
|
* LICENSE file in the root directory of this source tree.
|
|
736
736
|
*/
|
|
737
737
|
var kt;
|
|
738
|
-
function
|
|
738
|
+
function Pn() {
|
|
739
739
|
return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
740
740
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, f = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, P = t ? Symbol.for("react.suspense") : 60113, D = t ? Symbol.for("react.suspense_list") : 60120, j = t ? Symbol.for("react.memo") : 60115, A = t ? Symbol.for("react.lazy") : 60116, B = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, z = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
|
|
741
741
|
function k(d) {
|
|
@@ -774,7 +774,7 @@ function In() {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
var c = m, L = p, he = h, Re = f, we = e, Ve = E, Ye = i, Oe = A,
|
|
777
|
+
var c = m, L = p, he = h, Re = f, we = e, Ve = E, Ye = i, Oe = A, K = j, ee = n, oe = l, _e = a, Ae = P, ve = !1;
|
|
778
778
|
function ke(d) {
|
|
779
779
|
return ve || (ve = !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.")), pe(d) || w(d) === m;
|
|
780
780
|
}
|
|
@@ -814,18 +814,18 @@ function In() {
|
|
|
814
814
|
function Ue(d) {
|
|
815
815
|
return w(d) === P;
|
|
816
816
|
}
|
|
817
|
-
S.AsyncMode = c, S.ConcurrentMode = L, S.ContextConsumer = he, S.ContextProvider = Re, S.Element = we, S.ForwardRef = Ve, S.Fragment = Ye, S.Lazy = Oe, S.Memo =
|
|
817
|
+
S.AsyncMode = c, S.ConcurrentMode = L, S.ContextConsumer = he, S.ContextProvider = Re, S.Element = we, S.ForwardRef = Ve, S.Fragment = Ye, S.Lazy = Oe, S.Memo = K, S.Portal = ee, S.Profiler = oe, S.StrictMode = _e, S.Suspense = Ae, S.isAsyncMode = ke, S.isConcurrentMode = pe, S.isContextConsumer = Me, S.isContextProvider = Fe, S.isElement = je, S.isForwardRef = Be, S.isFragment = We, S.isLazy = ye, S.isMemo = ge, S.isPortal = le, S.isProfiler = be, S.isStrictMode = ce, S.isSuspense = Ue, S.isValidElementType = k, S.typeOf = w;
|
|
818
818
|
}()), S;
|
|
819
819
|
}
|
|
820
820
|
var Mt;
|
|
821
|
-
function
|
|
822
|
-
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? De.exports =
|
|
821
|
+
function Rn() {
|
|
822
|
+
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? De.exports = In() : De.exports = Pn()), De.exports;
|
|
823
823
|
}
|
|
824
824
|
var Ze, Ft;
|
|
825
|
-
function
|
|
825
|
+
function wn() {
|
|
826
826
|
if (Ft) return Ze;
|
|
827
827
|
Ft = 1;
|
|
828
|
-
var t =
|
|
828
|
+
var t = Rn(), e = {
|
|
829
829
|
childContextTypes: !0,
|
|
830
830
|
contextType: !0,
|
|
831
831
|
contextTypes: !0,
|
|
@@ -887,9 +887,9 @@ function Rn() {
|
|
|
887
887
|
}
|
|
888
888
|
return Ze = j, Ze;
|
|
889
889
|
}
|
|
890
|
-
|
|
891
|
-
var
|
|
892
|
-
function
|
|
890
|
+
wn();
|
|
891
|
+
var On = !0;
|
|
892
|
+
function _n(t, e, n) {
|
|
893
893
|
var i = "";
|
|
894
894
|
return n.split(" ").forEach(function(a) {
|
|
895
895
|
t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
|
|
@@ -906,8 +906,8 @@ var Jt = function(e, n, i) {
|
|
|
906
906
|
// in node since emotion-server relies on whether a style is in
|
|
907
907
|
// the registered cache to know whether a style is global or not
|
|
908
908
|
// also, note that this check will be dead code eliminated in the browser
|
|
909
|
-
|
|
910
|
-
},
|
|
909
|
+
On === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
|
|
910
|
+
}, An = function(e, n, i) {
|
|
911
911
|
Jt(e, n, i);
|
|
912
912
|
var a = e.key + "-" + n.name;
|
|
913
913
|
if (e.inserted[n.name] === void 0) {
|
|
@@ -917,7 +917,7 @@ var Jt = function(e, n, i) {
|
|
|
917
917
|
while (l !== void 0);
|
|
918
918
|
}
|
|
919
919
|
};
|
|
920
|
-
function
|
|
920
|
+
function kn(t) {
|
|
921
921
|
for (var e = 0, n, i = 0, a = t.length; a >= 4; ++i, a -= 4)
|
|
922
922
|
n = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
|
|
923
923
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -936,7 +936,7 @@ function An(t) {
|
|
|
936
936
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
937
937
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
938
938
|
}
|
|
939
|
-
var
|
|
939
|
+
var Mn = {
|
|
940
940
|
animationIterationCount: 1,
|
|
941
941
|
aspectRatio: 1,
|
|
942
942
|
borderImageOutset: 1,
|
|
@@ -986,24 +986,24 @@ var kn = {
|
|
|
986
986
|
strokeOpacity: 1,
|
|
987
987
|
strokeWidth: 1
|
|
988
988
|
};
|
|
989
|
-
function
|
|
989
|
+
function Fn(t) {
|
|
990
990
|
var e = /* @__PURE__ */ Object.create(null);
|
|
991
991
|
return function(n) {
|
|
992
992
|
return e[n] === void 0 && (e[n] = t(n)), e[n];
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
|
-
var
|
|
995
|
+
var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
|
|
996
996
|
return e.charCodeAt(1) === 45;
|
|
997
997
|
}, jt = function(e) {
|
|
998
998
|
return e != null && typeof e != "boolean";
|
|
999
|
-
}, Qe = /* @__PURE__ */
|
|
1000
|
-
return Kt(t) ? t : t.replace(
|
|
999
|
+
}, Qe = /* @__PURE__ */ Fn(function(t) {
|
|
1000
|
+
return Kt(t) ? t : t.replace(jn, "-$&").toLowerCase();
|
|
1001
1001
|
}), Nt = function(e, n) {
|
|
1002
1002
|
switch (e) {
|
|
1003
1003
|
case "animation":
|
|
1004
1004
|
case "animationName":
|
|
1005
1005
|
if (typeof n == "string")
|
|
1006
|
-
return n.replace(
|
|
1006
|
+
return n.replace(Nn, function(i, a, l) {
|
|
1007
1007
|
return X = {
|
|
1008
1008
|
name: a,
|
|
1009
1009
|
styles: l,
|
|
@@ -1011,7 +1011,7 @@ var Fn = /[A-Z]|^ms/g, jn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
|
|
|
1011
1011
|
}, a;
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
return
|
|
1014
|
+
return Mn[e] !== 1 && !Kt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1015
1015
|
};
|
|
1016
1016
|
function Pe(t, e, n) {
|
|
1017
1017
|
if (n == null)
|
|
@@ -1043,7 +1043,7 @@ function Pe(t, e, n) {
|
|
|
1043
1043
|
var h = l.styles + ";";
|
|
1044
1044
|
return h;
|
|
1045
1045
|
}
|
|
1046
|
-
return
|
|
1046
|
+
return $n(t, e, n);
|
|
1047
1047
|
}
|
|
1048
1048
|
case "function": {
|
|
1049
1049
|
if (t !== void 0) {
|
|
@@ -1056,7 +1056,7 @@ function Pe(t, e, n) {
|
|
|
1056
1056
|
var E = n;
|
|
1057
1057
|
return E;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function $n(t, e, n) {
|
|
1060
1060
|
var i = "";
|
|
1061
1061
|
if (Array.isArray(n))
|
|
1062
1062
|
for (var a = 0; a < n.length; a++)
|
|
@@ -1086,7 +1086,7 @@ function Nn(t, e, n) {
|
|
|
1086
1086
|
return i;
|
|
1087
1087
|
}
|
|
1088
1088
|
var $t = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
|
|
1089
|
-
function
|
|
1089
|
+
function Dn(t, e, n) {
|
|
1090
1090
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1091
1091
|
return t[0];
|
|
1092
1092
|
var i = !0, a = "";
|
|
@@ -1106,16 +1106,16 @@ function $n(t, e, n) {
|
|
|
1106
1106
|
$t.lastIndex = 0;
|
|
1107
1107
|
for (var p = "", E; (E = $t.exec(a)) !== null; )
|
|
1108
1108
|
p += "-" + E[1];
|
|
1109
|
-
var P =
|
|
1109
|
+
var P = kn(a) + p;
|
|
1110
1110
|
return {
|
|
1111
1111
|
name: P,
|
|
1112
1112
|
styles: a,
|
|
1113
1113
|
next: X
|
|
1114
1114
|
};
|
|
1115
1115
|
}
|
|
1116
|
-
var
|
|
1116
|
+
var zn = function(e) {
|
|
1117
1117
|
return e();
|
|
1118
|
-
},
|
|
1118
|
+
}, Ln = re.useInsertionEffect ? re.useInsertionEffect : !1, Vn = Ln || zn, Xt = /* @__PURE__ */ re.createContext(
|
|
1119
1119
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1120
1120
|
// because this module is primarily intended for the browser and node
|
|
1121
1121
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1127,42 +1127,42 @@ var Dn = function(e) {
|
|
|
1127
1127
|
}) : null
|
|
1128
1128
|
);
|
|
1129
1129
|
Xt.Provider;
|
|
1130
|
-
var
|
|
1130
|
+
var Yn = function(e) {
|
|
1131
1131
|
return /* @__PURE__ */ Or(function(n, i) {
|
|
1132
1132
|
var a = st(Xt);
|
|
1133
1133
|
return e(n, a, i);
|
|
1134
1134
|
});
|
|
1135
|
-
},
|
|
1135
|
+
}, Bn = /* @__PURE__ */ re.createContext({}), ze = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zt = function(e, n) {
|
|
1136
1136
|
var i = {};
|
|
1137
1137
|
for (var a in n)
|
|
1138
1138
|
ze.call(n, a) && (i[a] = n[a]);
|
|
1139
1139
|
return i[it] = e, i;
|
|
1140
|
-
},
|
|
1140
|
+
}, Wn = function(e) {
|
|
1141
1141
|
var n = e.cache, i = e.serialized, a = e.isStringTag;
|
|
1142
|
-
return Jt(n, i, a),
|
|
1143
|
-
return
|
|
1142
|
+
return Jt(n, i, a), Vn(function() {
|
|
1143
|
+
return An(n, i, a);
|
|
1144
1144
|
}), null;
|
|
1145
|
-
},
|
|
1145
|
+
}, Un = /* @__PURE__ */ Yn(function(t, e, n) {
|
|
1146
1146
|
var i = t.css;
|
|
1147
1147
|
typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
|
|
1148
1148
|
var a = t[it], l = [i], f = "";
|
|
1149
|
-
typeof t.className == "string" ? f =
|
|
1150
|
-
var h =
|
|
1149
|
+
typeof t.className == "string" ? f = _n(e.registered, l, t.className) : t.className != null && (f = t.className + " ");
|
|
1150
|
+
var h = Dn(l, void 0, re.useContext(Bn));
|
|
1151
1151
|
f += e.key + "-" + h.name;
|
|
1152
1152
|
var m = {};
|
|
1153
1153
|
for (var p in t)
|
|
1154
1154
|
ze.call(t, p) && p !== "css" && p !== it && (m[p] = t[p]);
|
|
1155
|
-
return m.className = f, n && (m.ref = n), /* @__PURE__ */ re.createElement(re.Fragment, null, /* @__PURE__ */ re.createElement(
|
|
1155
|
+
return m.className = f, n && (m.ref = n), /* @__PURE__ */ re.createElement(re.Fragment, null, /* @__PURE__ */ re.createElement(Wn, {
|
|
1156
1156
|
cache: e,
|
|
1157
1157
|
serialized: h,
|
|
1158
1158
|
isStringTag: typeof a == "string"
|
|
1159
1159
|
}), /* @__PURE__ */ re.createElement(a, m));
|
|
1160
|
-
}), Qt =
|
|
1160
|
+
}), Qt = Un, Le = Ie.Fragment, o = function(e, n, i) {
|
|
1161
1161
|
return ze.call(n, "css") ? Ie.jsx(Qt, Zt(e, n), i) : Ie.jsx(e, n, i);
|
|
1162
1162
|
}, F = function(e, n, i) {
|
|
1163
1163
|
return ze.call(n, "css") ? Ie.jsxs(Qt, Zt(e, n), i) : Ie.jsxs(e, n, i);
|
|
1164
1164
|
};
|
|
1165
|
-
const
|
|
1165
|
+
const qn = ({
|
|
1166
1166
|
onCancel: t,
|
|
1167
1167
|
onSave: e
|
|
1168
1168
|
}) => {
|
|
@@ -1209,14 +1209,14 @@ const Un = ({
|
|
|
1209
1209
|
] })
|
|
1210
1210
|
] });
|
|
1211
1211
|
};
|
|
1212
|
-
function
|
|
1212
|
+
function Hn(t) {
|
|
1213
1213
|
return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
|
|
1214
1214
|
}
|
|
1215
1215
|
const Dt = Z(
|
|
1216
1216
|
({ playQueueStore: t }) => {
|
|
1217
1217
|
const [e, n] = q(!1), i = $(
|
|
1218
1218
|
async (a) => {
|
|
1219
|
-
const l =
|
|
1219
|
+
const l = gn(a.url);
|
|
1220
1220
|
if (l !== void 0) {
|
|
1221
1221
|
const f = l.extractVideoId(a.url);
|
|
1222
1222
|
if (f !== void 0) {
|
|
@@ -1230,7 +1230,7 @@ const Dt = Z(
|
|
|
1230
1230
|
url: a.url,
|
|
1231
1231
|
type: l.type,
|
|
1232
1232
|
videoId: f,
|
|
1233
|
-
title: a.title || (
|
|
1233
|
+
title: a.title || (Hn(m) ? m.title : f)
|
|
1234
1234
|
})
|
|
1235
1235
|
]);
|
|
1236
1236
|
}
|
|
@@ -1250,7 +1250,7 @@ const Dt = Z(
|
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
1252
|
e && /* @__PURE__ */ o(
|
|
1253
|
-
|
|
1253
|
+
qn,
|
|
1254
1254
|
{
|
|
1255
1255
|
onCancel: () => n(!1),
|
|
1256
1256
|
onSave: i
|
|
@@ -1258,7 +1258,7 @@ const Dt = Z(
|
|
|
1258
1258
|
)
|
|
1259
1259
|
] });
|
|
1260
1260
|
}
|
|
1261
|
-
),
|
|
1261
|
+
), Gn = Y(
|
|
1262
1262
|
({ playQueueStore: t }) => {
|
|
1263
1263
|
const { euiTheme: e } = Yt();
|
|
1264
1264
|
return /* @__PURE__ */ F(
|
|
@@ -1288,7 +1288,7 @@ const Dt = Z(
|
|
|
1288
1288
|
}
|
|
1289
1289
|
);
|
|
1290
1290
|
}
|
|
1291
|
-
),
|
|
1291
|
+
), Jn = Z(
|
|
1292
1292
|
({
|
|
1293
1293
|
item: t,
|
|
1294
1294
|
closePopover: e
|
|
@@ -1372,14 +1372,14 @@ const Dt = Z(
|
|
|
1372
1372
|
)
|
|
1373
1373
|
] });
|
|
1374
1374
|
}
|
|
1375
|
-
),
|
|
1375
|
+
), Kn = Z(
|
|
1376
1376
|
({ item: t }) => {
|
|
1377
1377
|
const [e, n] = q(!1), i = $(() => n(!e), [e]), a = $(() => n(!1), []);
|
|
1378
1378
|
return /* @__PURE__ */ o(
|
|
1379
1379
|
lt,
|
|
1380
1380
|
{
|
|
1381
1381
|
button: /* @__PURE__ */ o(
|
|
1382
|
-
|
|
1382
|
+
G,
|
|
1383
1383
|
{
|
|
1384
1384
|
title: "More options",
|
|
1385
1385
|
"aria-label": "More options",
|
|
@@ -1394,7 +1394,7 @@ const Dt = Z(
|
|
|
1394
1394
|
panelPaddingSize: "none",
|
|
1395
1395
|
anchorPosition: "leftCenter",
|
|
1396
1396
|
children: /* @__PURE__ */ o(
|
|
1397
|
-
|
|
1397
|
+
Jn,
|
|
1398
1398
|
{
|
|
1399
1399
|
item: t,
|
|
1400
1400
|
closePopover: a
|
|
@@ -1403,7 +1403,7 @@ const Dt = Z(
|
|
|
1403
1403
|
}
|
|
1404
1404
|
);
|
|
1405
1405
|
}
|
|
1406
|
-
),
|
|
1406
|
+
), Xn = Y(
|
|
1407
1407
|
({ item: t }) => {
|
|
1408
1408
|
const e = ie();
|
|
1409
1409
|
return /* @__PURE__ */ F(rt, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
@@ -1427,10 +1427,10 @@ const Dt = Z(
|
|
|
1427
1427
|
children: "Remove"
|
|
1428
1428
|
}
|
|
1429
1429
|
),
|
|
1430
|
-
/* @__PURE__ */ o(
|
|
1430
|
+
/* @__PURE__ */ o(Kn, { item: t })
|
|
1431
1431
|
] });
|
|
1432
1432
|
}
|
|
1433
|
-
),
|
|
1433
|
+
), Zn = {
|
|
1434
1434
|
Audio: "",
|
|
1435
1435
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1436
1436
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1438,7 +1438,7 @@ const Dt = Z(
|
|
|
1438
1438
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1439
1439
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1440
1440
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1441
|
-
},
|
|
1441
|
+
}, Qn = Y(
|
|
1442
1442
|
({ item: t }) => {
|
|
1443
1443
|
const e = ie();
|
|
1444
1444
|
return /* @__PURE__ */ F(qr, { isSelected: t.isCurrent, children: [
|
|
@@ -1453,7 +1453,7 @@ const Dt = Z(
|
|
|
1453
1453
|
/* @__PURE__ */ o(rt, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
1454
1454
|
"img",
|
|
1455
1455
|
{
|
|
1456
|
-
src:
|
|
1456
|
+
src: Zn[t.type],
|
|
1457
1457
|
width: 16,
|
|
1458
1458
|
height: 16,
|
|
1459
1459
|
alt: t.type
|
|
@@ -1469,23 +1469,23 @@ const Dt = Z(
|
|
|
1469
1469
|
children: t.title
|
|
1470
1470
|
}
|
|
1471
1471
|
) }),
|
|
1472
|
-
/* @__PURE__ */ o(
|
|
1472
|
+
/* @__PURE__ */ o(Xn, { item: t })
|
|
1473
1473
|
] }, t.id);
|
|
1474
1474
|
}
|
|
1475
|
-
),
|
|
1475
|
+
), ei = Y(
|
|
1476
1476
|
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1477
|
-
|
|
1477
|
+
En,
|
|
1478
1478
|
{
|
|
1479
1479
|
tag: "tbody",
|
|
1480
1480
|
list: t.items,
|
|
1481
1481
|
setList: (e) => t.setItems(e),
|
|
1482
|
-
children: t.items.map((e) => /* @__PURE__ */ o(
|
|
1482
|
+
children: t.items.map((e) => /* @__PURE__ */ o(Qn, { item: e }, e.id))
|
|
1483
1483
|
}
|
|
1484
1484
|
)
|
|
1485
|
-
),
|
|
1485
|
+
), ti = Y(
|
|
1486
1486
|
({ playQueueStore: t }) => /* @__PURE__ */ F(Hr, { children: [
|
|
1487
|
-
/* @__PURE__ */ o(
|
|
1488
|
-
/* @__PURE__ */ o(
|
|
1487
|
+
/* @__PURE__ */ o(Gn, { playQueueStore: t }),
|
|
1488
|
+
/* @__PURE__ */ o(ei, { playQueueStore: t })
|
|
1489
1489
|
] })
|
|
1490
1490
|
);
|
|
1491
1491
|
Y(
|
|
@@ -1525,7 +1525,7 @@ Y(
|
|
|
1525
1525
|
] });
|
|
1526
1526
|
}
|
|
1527
1527
|
);
|
|
1528
|
-
const
|
|
1528
|
+
const ri = Y(
|
|
1529
1529
|
({ playQueueStore: t }) => {
|
|
1530
1530
|
const { euiTheme: e } = Yt();
|
|
1531
1531
|
return /* @__PURE__ */ F(Le, { children: [
|
|
@@ -1541,7 +1541,7 @@ const ti = Y(
|
|
|
1541
1541
|
background: e.colors.backgroundBasePlain
|
|
1542
1542
|
},
|
|
1543
1543
|
children: [
|
|
1544
|
-
/* @__PURE__ */ o(
|
|
1544
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1545
1545
|
ne,
|
|
1546
1546
|
{
|
|
1547
1547
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
@@ -1549,7 +1549,7 @@ const ti = Y(
|
|
|
1549
1549
|
children: "Play next"
|
|
1550
1550
|
}
|
|
1551
1551
|
) }),
|
|
1552
|
-
/* @__PURE__ */ o(
|
|
1552
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1553
1553
|
ne,
|
|
1554
1554
|
{
|
|
1555
1555
|
iconType: ct,
|
|
@@ -1558,7 +1558,7 @@ const ti = Y(
|
|
|
1558
1558
|
children: "Add to play queue"
|
|
1559
1559
|
}
|
|
1560
1560
|
) }),
|
|
1561
|
-
/* @__PURE__ */ o(
|
|
1561
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1562
1562
|
ne,
|
|
1563
1563
|
{
|
|
1564
1564
|
iconType: ut,
|
|
@@ -1567,7 +1567,7 @@ const ti = Y(
|
|
|
1567
1567
|
children: "Remove"
|
|
1568
1568
|
}
|
|
1569
1569
|
) }),
|
|
1570
|
-
/* @__PURE__ */ o(
|
|
1570
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1571
1571
|
ne,
|
|
1572
1572
|
{
|
|
1573
1573
|
iconType: nn,
|
|
@@ -1576,8 +1576,8 @@ const ti = Y(
|
|
|
1576
1576
|
children: "Clear"
|
|
1577
1577
|
}
|
|
1578
1578
|
) }),
|
|
1579
|
-
/* @__PURE__ */ o(
|
|
1580
|
-
/* @__PURE__ */ F(
|
|
1579
|
+
/* @__PURE__ */ o(J, { grow: !0 }),
|
|
1580
|
+
/* @__PURE__ */ F(J, { grow: !1, children: [
|
|
1581
1581
|
!1,
|
|
1582
1582
|
/* @__PURE__ */ o(Dt, { playQueueStore: t })
|
|
1583
1583
|
] })
|
|
@@ -1603,10 +1603,10 @@ const ti = Y(
|
|
|
1603
1603
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
1604
1604
|
actions: /* @__PURE__ */ o(Dt, { playQueueStore: t })
|
|
1605
1605
|
}
|
|
1606
|
-
) : /* @__PURE__ */ o(
|
|
1606
|
+
) : /* @__PURE__ */ o(ti, { playQueueStore: t })
|
|
1607
1607
|
] });
|
|
1608
1608
|
}
|
|
1609
|
-
),
|
|
1609
|
+
), Ai = Y(
|
|
1610
1610
|
({ playQueueStore: t }) => /* @__PURE__ */ F(Le, { children: [
|
|
1611
1611
|
/* @__PURE__ */ o(
|
|
1612
1612
|
nt.Header,
|
|
@@ -1615,12 +1615,12 @@ const ti = Y(
|
|
|
1615
1615
|
rightSideItems: []
|
|
1616
1616
|
}
|
|
1617
1617
|
),
|
|
1618
|
-
/* @__PURE__ */ o(nt.Section, { children: /* @__PURE__ */ o(
|
|
1618
|
+
/* @__PURE__ */ o(nt.Section, { children: /* @__PURE__ */ o(ri, { playQueueStore: t }) })
|
|
1619
1619
|
] })
|
|
1620
|
-
), et = new
|
|
1620
|
+
), et = new Tn({
|
|
1621
1621
|
coerceTypes: !0
|
|
1622
1622
|
});
|
|
1623
|
-
function
|
|
1623
|
+
function ni(t, e) {
|
|
1624
1624
|
let n;
|
|
1625
1625
|
if (n = et.getSchema(e), n === void 0 && (et.addSchema(t, e), n = et.getSchema(e)), n === void 0 || n.schema !== t)
|
|
1626
1626
|
throw new Error(
|
|
@@ -1630,7 +1630,7 @@ function ri(t, e) {
|
|
|
1630
1630
|
);
|
|
1631
1631
|
return n;
|
|
1632
1632
|
}
|
|
1633
|
-
const
|
|
1633
|
+
const ii = {
|
|
1634
1634
|
type: "object",
|
|
1635
1635
|
properties: {
|
|
1636
1636
|
url: {
|
|
@@ -1649,7 +1649,7 @@ const ni = {
|
|
|
1649
1649
|
required: ["url", "type", "videoId", "title"]
|
|
1650
1650
|
};
|
|
1651
1651
|
var R = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(R || {});
|
|
1652
|
-
const
|
|
1652
|
+
const oi = {
|
|
1653
1653
|
type: "object",
|
|
1654
1654
|
properties: {
|
|
1655
1655
|
version: {
|
|
@@ -1668,7 +1668,7 @@ const ii = {
|
|
|
1668
1668
|
items: {
|
|
1669
1669
|
type: "array",
|
|
1670
1670
|
nullable: !0,
|
|
1671
|
-
items:
|
|
1671
|
+
items: ii
|
|
1672
1672
|
},
|
|
1673
1673
|
currentIndex: {
|
|
1674
1674
|
type: "integer",
|
|
@@ -1787,7 +1787,7 @@ const ii = {
|
|
|
1787
1787
|
};
|
|
1788
1788
|
U(Ce, "nextId", 1);
|
|
1789
1789
|
let ot = Ce;
|
|
1790
|
-
class
|
|
1790
|
+
class ai {
|
|
1791
1791
|
constructor(e) {
|
|
1792
1792
|
U(this, "interacted", !1);
|
|
1793
1793
|
U(this, "items", []);
|
|
@@ -1858,8 +1858,8 @@ class oi {
|
|
|
1858
1858
|
this.repeat = e.repeat ?? R.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
|
|
1859
1859
|
}
|
|
1860
1860
|
validateLocalStorageState(e) {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1861
|
+
return ni(
|
|
1862
|
+
oi,
|
|
1863
1863
|
"PlayQueueDto"
|
|
1864
1864
|
)(e);
|
|
1865
1865
|
}
|
|
@@ -2015,11 +2015,11 @@ class oi {
|
|
|
2015
2015
|
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
|
-
const er = Lt(void 0),
|
|
2018
|
+
const er = Lt(void 0), ki = ({
|
|
2019
2019
|
children: t
|
|
2020
2020
|
}) => {
|
|
2021
2021
|
const [e] = q(
|
|
2022
|
-
() => new
|
|
2022
|
+
() => new ai(new Gt())
|
|
2023
2023
|
), n = ie();
|
|
2024
2024
|
return _r(() => wr(
|
|
2025
2025
|
() => e.currentItem,
|
|
@@ -2027,7 +2027,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2027
2027
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
|
|
2028
2028
|
}
|
|
2029
2029
|
), [e, n]), /* @__PURE__ */ o(er.Provider, { value: e, children: t });
|
|
2030
|
-
},
|
|
2030
|
+
}, si = () => st(er), tr = 81, li = Y(
|
|
2031
2031
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2032
2032
|
const n = ie(), i = $(
|
|
2033
2033
|
(f) => {
|
|
@@ -2068,7 +2068,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2068
2068
|
}
|
|
2069
2069
|
);
|
|
2070
2070
|
}
|
|
2071
|
-
),
|
|
2071
|
+
), ci = Z(
|
|
2072
2072
|
({ button: t, isOpen: e, closePopover: n }) => {
|
|
2073
2073
|
const [i, a] = q("0"), l = ie();
|
|
2074
2074
|
Ar(() => {
|
|
@@ -2098,7 +2098,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2098
2098
|
alignItems: "center",
|
|
2099
2099
|
children: [
|
|
2100
2100
|
/* @__PURE__ */ o(
|
|
2101
|
-
|
|
2101
|
+
G,
|
|
2102
2102
|
{
|
|
2103
2103
|
title: "Mute",
|
|
2104
2104
|
"aria-label": "Mute",
|
|
@@ -2124,7 +2124,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2124
2124
|
}
|
|
2125
2125
|
);
|
|
2126
2126
|
}
|
|
2127
|
-
),
|
|
2127
|
+
), ui = Z(
|
|
2128
2128
|
({
|
|
2129
2129
|
playQueueStore: t,
|
|
2130
2130
|
closePopover: e
|
|
@@ -2200,7 +2200,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2200
2200
|
);
|
|
2201
2201
|
return /* @__PURE__ */ o(Xr, { initialPanelId: 0, panels: m });
|
|
2202
2202
|
}
|
|
2203
|
-
),
|
|
2203
|
+
), fi = Z(
|
|
2204
2204
|
({
|
|
2205
2205
|
playQueueStore: t,
|
|
2206
2206
|
button: e,
|
|
@@ -2215,7 +2215,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2215
2215
|
panelPaddingSize: "none",
|
|
2216
2216
|
anchorPosition: "upRight",
|
|
2217
2217
|
children: /* @__PURE__ */ o(
|
|
2218
|
-
|
|
2218
|
+
ui,
|
|
2219
2219
|
{
|
|
2220
2220
|
playQueueStore: t,
|
|
2221
2221
|
closePopover: i
|
|
@@ -2223,11 +2223,11 @@ const er = Lt(void 0), _i = ({
|
|
|
2223
2223
|
)
|
|
2224
2224
|
}
|
|
2225
2225
|
)
|
|
2226
|
-
),
|
|
2226
|
+
), di = {
|
|
2227
2227
|
[R.Off]: un,
|
|
2228
2228
|
[R.All]: cn,
|
|
2229
2229
|
[R.One]: ln
|
|
2230
|
-
},
|
|
2230
|
+
}, mi = Y(
|
|
2231
2231
|
({
|
|
2232
2232
|
playerStore: t,
|
|
2233
2233
|
playQueueStore: e
|
|
@@ -2248,7 +2248,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2248
2248
|
alignItems: "center",
|
|
2249
2249
|
children: [
|
|
2250
2250
|
/* @__PURE__ */ o(
|
|
2251
|
-
|
|
2251
|
+
G,
|
|
2252
2252
|
{
|
|
2253
2253
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2254
2254
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
@@ -2260,7 +2260,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2260
2260
|
}
|
|
2261
2261
|
),
|
|
2262
2262
|
/* @__PURE__ */ o(
|
|
2263
|
-
|
|
2263
|
+
G,
|
|
2264
2264
|
{
|
|
2265
2265
|
title: "Previous",
|
|
2266
2266
|
"aria-label": "Previous",
|
|
@@ -2272,7 +2272,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2272
2272
|
}
|
|
2273
2273
|
),
|
|
2274
2274
|
t.playing ? /* @__PURE__ */ o(
|
|
2275
|
-
|
|
2275
|
+
G,
|
|
2276
2276
|
{
|
|
2277
2277
|
title: "Pause",
|
|
2278
2278
|
"aria-label": "Pause",
|
|
@@ -2283,7 +2283,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2283
2283
|
disabled: !e.canPlay
|
|
2284
2284
|
}
|
|
2285
2285
|
) : /* @__PURE__ */ o(
|
|
2286
|
-
|
|
2286
|
+
G,
|
|
2287
2287
|
{
|
|
2288
2288
|
title: "Play",
|
|
2289
2289
|
"aria-label": "Play",
|
|
@@ -2295,7 +2295,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2295
2295
|
}
|
|
2296
2296
|
),
|
|
2297
2297
|
/* @__PURE__ */ o(
|
|
2298
|
-
|
|
2298
|
+
G,
|
|
2299
2299
|
{
|
|
2300
2300
|
title: "Next",
|
|
2301
2301
|
"aria-label": "Next",
|
|
@@ -2307,11 +2307,11 @@ const er = Lt(void 0), _i = ({
|
|
|
2307
2307
|
}
|
|
2308
2308
|
),
|
|
2309
2309
|
/* @__PURE__ */ o(
|
|
2310
|
-
|
|
2310
|
+
G,
|
|
2311
2311
|
{
|
|
2312
2312
|
title: `Repeat: ${e.repeat === R.All ? "All" : e.repeat === R.One ? "One" : "Off"}`,
|
|
2313
2313
|
"aria-label": `Repeat: ${e.repeat === R.All ? "All" : e.repeat === R.One ? "One" : "Off"}`,
|
|
2314
|
-
iconType:
|
|
2314
|
+
iconType: di[e.repeat],
|
|
2315
2315
|
size: "s",
|
|
2316
2316
|
iconSize: "l",
|
|
2317
2317
|
onClick: e.toggleRepeat
|
|
@@ -2321,13 +2321,13 @@ const er = Lt(void 0), _i = ({
|
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
2323
|
}
|
|
2324
|
-
),
|
|
2324
|
+
), hi = Z(() => {
|
|
2325
2325
|
const [t, e] = q(!1);
|
|
2326
2326
|
return /* @__PURE__ */ o(
|
|
2327
|
-
|
|
2327
|
+
ci,
|
|
2328
2328
|
{
|
|
2329
2329
|
button: /* @__PURE__ */ o(
|
|
2330
|
-
|
|
2330
|
+
G,
|
|
2331
2331
|
{
|
|
2332
2332
|
title: "Volume",
|
|
2333
2333
|
"aria-label": "Volume",
|
|
@@ -2341,15 +2341,27 @@ const er = Lt(void 0), _i = ({
|
|
|
2341
2341
|
closePopover: () => e(!1)
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
|
-
}),
|
|
2344
|
+
}), vi = ({
|
|
2345
|
+
onClickPlayQueueButton: t
|
|
2346
|
+
}) => /* @__PURE__ */ o(
|
|
2347
|
+
G,
|
|
2348
|
+
{
|
|
2349
|
+
title: "Play queue",
|
|
2350
|
+
"aria-label": "Play queue",
|
|
2351
|
+
iconType: yn,
|
|
2352
|
+
size: "s",
|
|
2353
|
+
iconSize: "l",
|
|
2354
|
+
onClick: t
|
|
2355
|
+
}
|
|
2356
|
+
), pi = Z(
|
|
2345
2357
|
({ playQueueStore: t }) => {
|
|
2346
2358
|
const [e, n] = q(!1);
|
|
2347
2359
|
return /* @__PURE__ */ o(
|
|
2348
|
-
|
|
2360
|
+
fi,
|
|
2349
2361
|
{
|
|
2350
2362
|
playQueueStore: t,
|
|
2351
2363
|
button: /* @__PURE__ */ o(
|
|
2352
|
-
|
|
2364
|
+
G,
|
|
2353
2365
|
{
|
|
2354
2366
|
title: "More options",
|
|
2355
2367
|
"aria-label": "More options",
|
|
@@ -2364,8 +2376,11 @@ const er = Lt(void 0), _i = ({
|
|
|
2364
2376
|
}
|
|
2365
2377
|
);
|
|
2366
2378
|
}
|
|
2367
|
-
),
|
|
2368
|
-
({
|
|
2379
|
+
), yi = Z(
|
|
2380
|
+
({
|
|
2381
|
+
playQueueStore: t,
|
|
2382
|
+
onClickPlayQueueButton: e
|
|
2383
|
+
}) => /* @__PURE__ */ F(
|
|
2369
2384
|
me,
|
|
2370
2385
|
{
|
|
2371
2386
|
responsive: !1,
|
|
@@ -2373,33 +2388,44 @@ const er = Lt(void 0), _i = ({
|
|
|
2373
2388
|
justifyContent: "flexEnd",
|
|
2374
2389
|
alignItems: "center",
|
|
2375
2390
|
children: [
|
|
2376
|
-
/* @__PURE__ */ o(
|
|
2377
|
-
/* @__PURE__ */ o(
|
|
2391
|
+
/* @__PURE__ */ o(hi, {}),
|
|
2392
|
+
e && /* @__PURE__ */ o(
|
|
2393
|
+
vi,
|
|
2394
|
+
{
|
|
2395
|
+
onClickPlayQueueButton: e
|
|
2396
|
+
}
|
|
2397
|
+
),
|
|
2398
|
+
/* @__PURE__ */ o(pi, { playQueueStore: t })
|
|
2378
2399
|
]
|
|
2379
2400
|
}
|
|
2380
2401
|
)
|
|
2381
|
-
),
|
|
2382
|
-
({
|
|
2383
|
-
|
|
2384
|
-
|
|
2402
|
+
), Mi = Y(
|
|
2403
|
+
({
|
|
2404
|
+
playerStore: t,
|
|
2405
|
+
playQueueStore: e,
|
|
2406
|
+
onClickPlayQueueButton: n
|
|
2407
|
+
}) => /* @__PURE__ */ o(Zr, { paddingSize: "s", children: /* @__PURE__ */ F(me, { direction: "column", gutterSize: "none", children: [
|
|
2408
|
+
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2409
|
+
li,
|
|
2385
2410
|
{
|
|
2386
2411
|
playerStore: t,
|
|
2387
2412
|
playQueueStore: e
|
|
2388
2413
|
}
|
|
2389
2414
|
) }),
|
|
2390
|
-
/* @__PURE__ */ o(
|
|
2391
|
-
/* @__PURE__ */ o(
|
|
2392
|
-
/* @__PURE__ */ o(
|
|
2393
|
-
|
|
2415
|
+
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ F(me, { responsive: !1, children: [
|
|
2416
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" } }),
|
|
2417
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2418
|
+
mi,
|
|
2394
2419
|
{
|
|
2395
2420
|
playerStore: t,
|
|
2396
2421
|
playQueueStore: e
|
|
2397
2422
|
}
|
|
2398
2423
|
) }),
|
|
2399
|
-
/* @__PURE__ */ o(
|
|
2400
|
-
|
|
2424
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2425
|
+
yi,
|
|
2401
2426
|
{
|
|
2402
|
-
playQueueStore: e
|
|
2427
|
+
playQueueStore: e,
|
|
2428
|
+
onClickPlayQueueButton: n
|
|
2403
2429
|
}
|
|
2404
2430
|
) })
|
|
2405
2431
|
] }) })
|
|
@@ -2407,7 +2433,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2407
2433
|
), at = {
|
|
2408
2434
|
width: 16 * 25,
|
|
2409
2435
|
height: 9 * 25
|
|
2410
|
-
},
|
|
2436
|
+
}, Fi = Y(
|
|
2411
2437
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2412
2438
|
const n = ie(), i = $(async () => {
|
|
2413
2439
|
e.interacted && await n.play();
|
|
@@ -2456,7 +2482,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2456
2482
|
flexDirection: "column"
|
|
2457
2483
|
},
|
|
2458
2484
|
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
|
|
2459
|
-
|
|
2485
|
+
bn,
|
|
2460
2486
|
{
|
|
2461
2487
|
src: e.currentItem.url,
|
|
2462
2488
|
options: l
|
|
@@ -2465,9 +2491,9 @@ const er = Lt(void 0), _i = ({
|
|
|
2465
2491
|
}
|
|
2466
2492
|
);
|
|
2467
2493
|
}
|
|
2468
|
-
),
|
|
2494
|
+
), ji = Y(
|
|
2469
2495
|
({ children: t }) => {
|
|
2470
|
-
const e =
|
|
2496
|
+
const e = si();
|
|
2471
2497
|
return /* @__PURE__ */ F(
|
|
2472
2498
|
nt,
|
|
2473
2499
|
{
|
|
@@ -2483,7 +2509,7 @@ const er = Lt(void 0), _i = ({
|
|
|
2483
2509
|
);
|
|
2484
2510
|
}
|
|
2485
2511
|
);
|
|
2486
|
-
class
|
|
2512
|
+
class gi {
|
|
2487
2513
|
constructor(e) {
|
|
2488
2514
|
U(this, "playing", !1);
|
|
2489
2515
|
U(this, "percent", 0);
|
|
@@ -2523,27 +2549,27 @@ class pi {
|
|
|
2523
2549
|
e !== void 0 && (this.seeking || (this.percent = e));
|
|
2524
2550
|
}
|
|
2525
2551
|
}
|
|
2526
|
-
const rr = Lt(void 0),
|
|
2552
|
+
const rr = Lt(void 0), Ni = ({
|
|
2527
2553
|
children: t
|
|
2528
2554
|
}) => {
|
|
2529
2555
|
const [e] = q(
|
|
2530
|
-
() => new
|
|
2556
|
+
() => new gi(new Gt())
|
|
2531
2557
|
);
|
|
2532
2558
|
return /* @__PURE__ */ o(rr.Provider, { value: e, children: t });
|
|
2533
|
-
},
|
|
2559
|
+
}, $i = () => st(rr);
|
|
2534
2560
|
export {
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2561
|
+
Mi as BottomBar,
|
|
2562
|
+
Ai as HydrangeanDiva,
|
|
2563
|
+
ji as MediaPlayerLayout,
|
|
2564
|
+
Fi as MiniPlayer,
|
|
2539
2565
|
Gt as MobXObservableStateProvider,
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2566
|
+
_i as ObservableStateProvider,
|
|
2567
|
+
ki as PlayQueueStoreProvider,
|
|
2568
|
+
Ni as PlayerStoreProvider,
|
|
2543
2569
|
R as RepeatMode,
|
|
2544
2570
|
tr as bottomBarHeight,
|
|
2545
2571
|
at as miniPlayerSize,
|
|
2546
|
-
|
|
2547
|
-
|
|
2572
|
+
si as usePlayQueueStore,
|
|
2573
|
+
$i as usePlayerStore
|
|
2548
2574
|
};
|
|
2549
2575
|
//# sourceMappingURL=index.es.js.map
|