@vplayer/react 0.1.2 → 0.1.4
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/components/player/index.d.ts +1 -1
- package/dist/index.js +1039 -1034
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { Children as t, cloneElement as n, createContext as r, createElement as i, forwardRef as a, isValidElement as o, memo as s, useCallback as c, useContext as l, useEffect as u, useId as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
3
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
4
|
+
import { flushSync as y } from "react-dom";
|
|
4
5
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var t = b("react");
|
|
6
|
+
var b = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), x = /* @__PURE__ */ b(((t, n) => {
|
|
7
|
+
n.exports = { ...e };
|
|
8
|
+
})), S = /* @__PURE__ */ b(((e) => {
|
|
9
|
+
var t = x();
|
|
10
10
|
function n(e, t) {
|
|
11
11
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
12
12
|
}
|
|
@@ -43,7 +43,7 @@ var y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
43
43
|
}
|
|
44
44
|
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
|
|
45
45
|
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
|
|
46
|
-
})),
|
|
46
|
+
})), C = /* @__PURE__ */ b(((e) => {
|
|
47
47
|
process.env.NODE_ENV !== "production" && (function() {
|
|
48
48
|
function t(e, t) {
|
|
49
49
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
@@ -86,13 +86,13 @@ var y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
86
86
|
return t();
|
|
87
87
|
}
|
|
88
88
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
89
|
-
var a =
|
|
89
|
+
var a = x(), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
|
|
90
90
|
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
91
91
|
})();
|
|
92
|
-
})),
|
|
93
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
94
|
-
})),
|
|
95
|
-
var t =
|
|
92
|
+
})), w = /* @__PURE__ */ b(((e, t) => {
|
|
93
|
+
process.env.NODE_ENV === "production" ? t.exports = S() : t.exports = C();
|
|
94
|
+
})), T = /* @__PURE__ */ b(((e) => {
|
|
95
|
+
var t = x(), n = w();
|
|
96
96
|
function r(e, t) {
|
|
97
97
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
98
98
|
}
|
|
@@ -136,13 +136,13 @@ var y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
136
136
|
f.hasValue = !0, f.value = p;
|
|
137
137
|
}, [p]), l(p), p;
|
|
138
138
|
};
|
|
139
|
-
})),
|
|
139
|
+
})), E = /* @__PURE__ */ b(((e) => {
|
|
140
140
|
process.env.NODE_ENV !== "production" && (function() {
|
|
141
141
|
function t(e, t) {
|
|
142
142
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
143
143
|
}
|
|
144
144
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
145
|
-
var n =
|
|
145
|
+
var n = x(), r = w(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
|
|
146
146
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
|
|
147
147
|
var d = o(null);
|
|
148
148
|
if (d.current === null) {
|
|
@@ -183,17 +183,17 @@ var y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
183
183
|
}, [p]), l(p), p;
|
|
184
184
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
185
185
|
})();
|
|
186
|
-
})),
|
|
187
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
188
|
-
})),
|
|
186
|
+
})), D = /* @__PURE__ */ b(((e, t) => {
|
|
187
|
+
process.env.NODE_ENV === "production" ? t.exports = T() : t.exports = E();
|
|
188
|
+
})), O = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), k = { current: [] }, A = !1, j = 0, te = /* @__PURE__ */ new Set(), ne = /* @__PURE__ */ new Map();
|
|
189
189
|
function re(e) {
|
|
190
190
|
let t = Array.from(e).sort((e, t) => e instanceof le && e.options.deps.includes(t) ? 1 : t instanceof le && t.options.deps.includes(e) ? -1 : 0);
|
|
191
191
|
for (let e of t) {
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
let t =
|
|
192
|
+
if (k.current.includes(e)) continue;
|
|
193
|
+
k.current.push(e), e.recompute();
|
|
194
|
+
let t = ee.get(e);
|
|
195
195
|
if (t) for (let e of t) {
|
|
196
|
-
let t =
|
|
196
|
+
let t = O.get(e);
|
|
197
197
|
t && re(t);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
@@ -213,22 +213,22 @@ function ae(e) {
|
|
|
213
213
|
for (let n of e.listeners) n(t);
|
|
214
214
|
}
|
|
215
215
|
function oe(e) {
|
|
216
|
-
if (
|
|
217
|
-
for (
|
|
216
|
+
if (j > 0 && !ne.has(e) && ne.set(e, e.prevState), te.add(e), !(j > 0) && !A) try {
|
|
217
|
+
for (A = !0; te.size > 0;) {
|
|
218
218
|
let e = Array.from(te);
|
|
219
219
|
te.clear();
|
|
220
220
|
for (let t of e) t.prevState = ne.get(t) ?? t.prevState, ie(t);
|
|
221
221
|
for (let t of e) {
|
|
222
|
-
let e =
|
|
223
|
-
e && (
|
|
222
|
+
let e = O.get(t);
|
|
223
|
+
e && (k.current.push(t), re(e));
|
|
224
224
|
}
|
|
225
225
|
for (let t of e) {
|
|
226
|
-
let e =
|
|
226
|
+
let e = O.get(t);
|
|
227
227
|
if (e) for (let t of e) ae(t);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
} finally {
|
|
231
|
-
|
|
231
|
+
A = !1, k.current = [], ne.clear();
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
//#endregion
|
|
@@ -298,22 +298,22 @@ var ce = class {
|
|
|
298
298
|
registerOnGraph(t = this.options.deps) {
|
|
299
299
|
for (let n of t) if (n instanceof e) n.registerOnGraph(), this.registerOnGraph(n.options.deps);
|
|
300
300
|
else if (n instanceof ce) {
|
|
301
|
-
let e =
|
|
302
|
-
e || (e = /* @__PURE__ */ new Set(),
|
|
303
|
-
let t =
|
|
304
|
-
t || (t = /* @__PURE__ */ new Set(),
|
|
301
|
+
let e = O.get(n);
|
|
302
|
+
e || (e = /* @__PURE__ */ new Set(), O.set(n, e)), e.add(this);
|
|
303
|
+
let t = ee.get(this);
|
|
304
|
+
t || (t = /* @__PURE__ */ new Set(), ee.set(this, t)), t.add(n);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
unregisterFromGraph(t = this.options.deps) {
|
|
308
308
|
for (let n of t) if (n instanceof e) this.unregisterFromGraph(n.options.deps);
|
|
309
309
|
else if (n instanceof ce) {
|
|
310
|
-
let e =
|
|
310
|
+
let e = O.get(n);
|
|
311
311
|
e && e.delete(this);
|
|
312
|
-
let t =
|
|
312
|
+
let t = ee.get(this);
|
|
313
313
|
t && t.delete(n);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
}, ue =
|
|
316
|
+
}, ue = D();
|
|
317
317
|
function de(e, t = (e) => e, n = {}) {
|
|
318
318
|
let r = n.equal ?? fe;
|
|
319
319
|
return (0, ue.useSyncExternalStoreWithSelector)(e.subscribe, () => e.state, () => e.state, t, r);
|
|
@@ -861,7 +861,7 @@ var Ie = "vplayer", Le = class {
|
|
|
861
861
|
} catch {}
|
|
862
862
|
this.fallback.clear();
|
|
863
863
|
}
|
|
864
|
-
},
|
|
864
|
+
}, M = {
|
|
865
865
|
VOLUME: "volume",
|
|
866
866
|
MUTED: "muted",
|
|
867
867
|
PLAYBACK_RATE: "playbackRate",
|
|
@@ -973,10 +973,11 @@ function Ge(e, t) {
|
|
|
973
973
|
return e;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
async function Ke(e, t) {
|
|
977
|
-
let
|
|
978
|
-
if (!
|
|
979
|
-
|
|
976
|
+
async function Ke(e, t, n) {
|
|
977
|
+
let r = await fetch(e, { signal: t });
|
|
978
|
+
if (!r.ok) throw Error(`Failed to fetch thumbnail VTT: ${r.status}`);
|
|
979
|
+
let i = r.url || e, a = await r.text();
|
|
980
|
+
return We(n ? await n(a, i) : a).map((e) => (e.src = Ge(e.src, i), e));
|
|
980
981
|
}
|
|
981
982
|
function qe(e, t) {
|
|
982
983
|
if (e.length === 0) return null;
|
|
@@ -1371,7 +1372,7 @@ function et(e) {
|
|
|
1371
1372
|
function b() {
|
|
1372
1373
|
x(), f = setInterval(() => {
|
|
1373
1374
|
let e = u;
|
|
1374
|
-
e && i.set(
|
|
1375
|
+
e && i.set(M.PLAYBACK_PROGRESS, {
|
|
1375
1376
|
time: e.currentTime,
|
|
1376
1377
|
duration: e.duration
|
|
1377
1378
|
});
|
|
@@ -1386,7 +1387,7 @@ function et(e) {
|
|
|
1386
1387
|
}), C = null;
|
|
1387
1388
|
function w() {
|
|
1388
1389
|
if (!n.persistPreferences) return;
|
|
1389
|
-
let e = i.get(
|
|
1390
|
+
let e = i.get(M.VOLUME), r = i.get(M.MUTED), a = i.get(M.PLAYBACK_RATE), o = i.get(M.LOOP), s = i.get(M.FLIP), c = i.get(M.ASPECT_RATIO);
|
|
1390
1391
|
t.setState((t) => ({
|
|
1391
1392
|
...t,
|
|
1392
1393
|
volume: e ?? t.volume,
|
|
@@ -1397,7 +1398,7 @@ function et(e) {
|
|
|
1397
1398
|
aspectRatio: Qe(c)
|
|
1398
1399
|
})), C = t.subscribe(() => {
|
|
1399
1400
|
let e = t.state;
|
|
1400
|
-
e.volume !== 1 && i.set(
|
|
1401
|
+
e.volume !== 1 && i.set(M.VOLUME, e.volume), e.isMuted && i.set(M.MUTED, !0), e.playbackRate !== 1 && i.set(M.PLAYBACK_RATE, e.playbackRate), e.isLooping ? i.set(M.LOOP, !0) : i.remove(M.LOOP), e.flip === "normal" ? i.remove(M.FLIP) : i.set(M.FLIP, e.flip), e.aspectRatio === "default" ? i.remove(M.ASPECT_RATIO) : i.set(M.ASPECT_RATIO, e.aspectRatio);
|
|
1401
1402
|
});
|
|
1402
1403
|
}
|
|
1403
1404
|
function T() {
|
|
@@ -1411,14 +1412,14 @@ function et(e) {
|
|
|
1411
1412
|
}));
|
|
1412
1413
|
return;
|
|
1413
1414
|
}
|
|
1414
|
-
let
|
|
1415
|
-
h =
|
|
1416
|
-
|
|
1415
|
+
let r = new AbortController();
|
|
1416
|
+
h = r, Ke(e, r.signal, n.transformThumbnailVTT).then((e) => {
|
|
1417
|
+
r.signal.aborted || t.setState((t) => ({
|
|
1417
1418
|
...t,
|
|
1418
1419
|
thumbnailCues: e
|
|
1419
1420
|
}));
|
|
1420
1421
|
}).catch((e) => {
|
|
1421
|
-
|
|
1422
|
+
r.signal.aborted || (console.warn("[vplayer] thumbnail VTT failed:", e), t.setState((e) => ({
|
|
1422
1423
|
...e,
|
|
1423
1424
|
thumbnailCues: []
|
|
1424
1425
|
})));
|
|
@@ -1510,11 +1511,11 @@ function et(e) {
|
|
|
1510
1511
|
let O = [];
|
|
1511
1512
|
function ee() {
|
|
1512
1513
|
for (let e of O) e();
|
|
1513
|
-
O = [], u && (u.destroy(), u = null,
|
|
1514
|
+
O = [], u && (u.destroy(), u = null, j.engine = null);
|
|
1514
1515
|
}
|
|
1515
1516
|
function k(e) {
|
|
1516
1517
|
let r = Me(n), i = Ne(e, n);
|
|
1517
|
-
u = i,
|
|
1518
|
+
u = i, j.engine = i, O = y(i), e.playsInline = !0, e.autoplay = !!n.autoPlay, e.preload = e.preload || "metadata", t.setState((t) => ({
|
|
1518
1519
|
...t,
|
|
1519
1520
|
status: "loading",
|
|
1520
1521
|
source: r,
|
|
@@ -1536,7 +1537,7 @@ function et(e) {
|
|
|
1536
1537
|
e.load(), k(e);
|
|
1537
1538
|
}
|
|
1538
1539
|
}
|
|
1539
|
-
let
|
|
1540
|
+
let j = {
|
|
1540
1541
|
store: t,
|
|
1541
1542
|
remote: v,
|
|
1542
1543
|
events: r,
|
|
@@ -1545,7 +1546,7 @@ function et(e) {
|
|
|
1545
1546
|
hotkeys: o,
|
|
1546
1547
|
engine: null,
|
|
1547
1548
|
updateOptions(e) {
|
|
1548
|
-
let r = typeof e.src == "string" && e.src !== n.src, i = Object.hasOwn(e, "type") && e.type !== n.type;
|
|
1549
|
+
let r = typeof e.src == "string" && e.src !== n.src, i = Object.hasOwn(e, "type") && e.type !== n.type, a = Object.hasOwn(e, "thumbnails") && e.thumbnails !== n.thumbnails;
|
|
1549
1550
|
n = {
|
|
1550
1551
|
...n,
|
|
1551
1552
|
...e
|
|
@@ -1558,7 +1559,7 @@ function et(e) {
|
|
|
1558
1559
|
activeSubtitle: e.subtitles ? t.activeSubtitle && e.subtitles.some((e) => e.lang === t.activeSubtitle.lang) ? t.activeSubtitle : e.subtitles.find((e) => e.default) ?? e.subtitles[0] ?? null : t.activeSubtitle,
|
|
1559
1560
|
activeQuality: e.qualities ? e.qualities.includes(t.activeQuality) ? t.activeQuality : e.qualities[0] ?? "Auto" : t.activeQuality
|
|
1560
1561
|
};
|
|
1561
|
-
}),
|
|
1562
|
+
}), a && E(e.thumbnails), (r || i) && A();
|
|
1562
1563
|
},
|
|
1563
1564
|
setThumbnails(e) {
|
|
1564
1565
|
n = {
|
|
@@ -1602,7 +1603,7 @@ function et(e) {
|
|
|
1602
1603
|
this.unmount(), S(), r.clear();
|
|
1603
1604
|
}
|
|
1604
1605
|
};
|
|
1605
|
-
return
|
|
1606
|
+
return j;
|
|
1606
1607
|
}
|
|
1607
1608
|
function tt(e, t) {
|
|
1608
1609
|
let n = null, r = null, i = null, a = typeof window < "u" && "ontouchstart" in window;
|
|
@@ -1748,24 +1749,24 @@ function ot() {
|
|
|
1748
1749
|
}
|
|
1749
1750
|
//#endregion
|
|
1750
1751
|
//#region src/components/player/context.tsx
|
|
1751
|
-
var st =
|
|
1752
|
-
function
|
|
1753
|
-
let e =
|
|
1752
|
+
var st = r(null);
|
|
1753
|
+
function N() {
|
|
1754
|
+
let e = l(st);
|
|
1754
1755
|
if (!e) throw Error("Player sub-components must be inside <VideoPlayer>");
|
|
1755
1756
|
return e;
|
|
1756
1757
|
}
|
|
1757
|
-
function
|
|
1758
|
-
let t =
|
|
1758
|
+
function P(e) {
|
|
1759
|
+
let t = N();
|
|
1759
1760
|
return typeof e == "function" ? de(t.mediaStore, e) : e ? de(t.mediaStore, (t) => t[e]) : de(t.mediaStore, (e) => e);
|
|
1760
1761
|
}
|
|
1761
1762
|
function ct() {
|
|
1762
|
-
return
|
|
1763
|
+
return N().mediaRemote;
|
|
1763
1764
|
}
|
|
1764
1765
|
function lt() {
|
|
1765
|
-
return
|
|
1766
|
+
return N().miniPlayer;
|
|
1766
1767
|
}
|
|
1767
1768
|
function ut() {
|
|
1768
|
-
let e =
|
|
1769
|
+
let e = N(), { mediaStore: t, mediaRemote: n, events: r, storage: i, hotkeys: a, i18n: o } = e;
|
|
1769
1770
|
return {
|
|
1770
1771
|
name: "__internal__",
|
|
1771
1772
|
store: t,
|
|
@@ -1792,39 +1793,39 @@ function ut() {
|
|
|
1792
1793
|
//#endregion
|
|
1793
1794
|
//#region src/components/player/components/auto-resume-overlay.tsx
|
|
1794
1795
|
var dt = () => {
|
|
1795
|
-
let e =
|
|
1796
|
-
|
|
1797
|
-
let t = r.storage.get(
|
|
1796
|
+
let e = P("duration"), t = P("isPlaying"), { labels: n } = N(), r = ut(), [i, a] = h(null);
|
|
1797
|
+
u(() => {
|
|
1798
|
+
let t = r.storage.get(M.PLAYBACK_PROGRESS);
|
|
1798
1799
|
t && t.time > 3 && Math.abs(t.duration - e) < 1 && a(t.time);
|
|
1799
1800
|
}, [r.storage, e]);
|
|
1800
|
-
let o =
|
|
1801
|
+
let o = c(() => {
|
|
1801
1802
|
i !== null && (r.remote.seek(i), r.remote.play()), a(null);
|
|
1802
|
-
}, [i, r.remote]),
|
|
1803
|
-
r.storage.remove(
|
|
1803
|
+
}, [i, r.remote]), s = c(() => {
|
|
1804
|
+
r.storage.remove(M.PLAYBACK_PROGRESS), a(null);
|
|
1804
1805
|
}, [r.storage]);
|
|
1805
|
-
return i === null || t ? null : /* @__PURE__ */
|
|
1806
|
+
return i === null || t ? null : /* @__PURE__ */ _("div", {
|
|
1806
1807
|
className: "vplayer__auto-resume-overlay",
|
|
1807
|
-
children: /* @__PURE__ */
|
|
1808
|
+
children: /* @__PURE__ */ v("div", {
|
|
1808
1809
|
className: "vplayer__auto-resume-content",
|
|
1809
|
-
children: [/* @__PURE__ */
|
|
1810
|
+
children: [/* @__PURE__ */ v("p", {
|
|
1810
1811
|
className: "vplayer__auto-resume-text",
|
|
1811
1812
|
children: [
|
|
1812
1813
|
n.continuePlay,
|
|
1813
1814
|
" ",
|
|
1814
|
-
/* @__PURE__ */
|
|
1815
|
+
/* @__PURE__ */ _("span", {
|
|
1815
1816
|
className: "font-medium text-white tabular-nums",
|
|
1816
1817
|
children: nt(i)
|
|
1817
1818
|
}),
|
|
1818
1819
|
"?"
|
|
1819
1820
|
]
|
|
1820
|
-
}), /* @__PURE__ */
|
|
1821
|
+
}), /* @__PURE__ */ v("div", {
|
|
1821
1822
|
className: "vplayer__auto-resume-actions",
|
|
1822
|
-
children: [/* @__PURE__ */
|
|
1823
|
+
children: [/* @__PURE__ */ _("button", {
|
|
1823
1824
|
onClick: o,
|
|
1824
1825
|
className: "vplayer__auto-resume-btn vplayer__auto-resume-btn--primary",
|
|
1825
1826
|
children: n.continue
|
|
1826
|
-
}), /* @__PURE__ */
|
|
1827
|
-
onClick:
|
|
1827
|
+
}), /* @__PURE__ */ _("button", {
|
|
1828
|
+
onClick: s,
|
|
1828
1829
|
className: "vplayer__auto-resume-btn",
|
|
1829
1830
|
children: n.continueStartOver
|
|
1830
1831
|
})]
|
|
@@ -1832,32 +1833,32 @@ var dt = () => {
|
|
|
1832
1833
|
})
|
|
1833
1834
|
});
|
|
1834
1835
|
}, ft = () => {
|
|
1835
|
-
let e =
|
|
1836
|
+
let e = P("isPlaying"), t = P("isLooping"), n = P("contextMenuItems") ?? [], r = P("contextMenuEnabled") !== !1, { labels: i } = N(), a = ct(), o = N().containerRef, s = m(null), [l, d] = h(!1), [f, p] = h({
|
|
1836
1837
|
x: 0,
|
|
1837
1838
|
y: 0
|
|
1838
1839
|
});
|
|
1839
|
-
|
|
1840
|
+
u(() => {
|
|
1840
1841
|
let e = o.current;
|
|
1841
1842
|
if (!e || !r) return;
|
|
1842
1843
|
let t = (e) => {
|
|
1843
|
-
e.preventDefault(), e.stopPropagation(),
|
|
1844
|
+
e.preventDefault(), e.stopPropagation(), p({
|
|
1844
1845
|
x: e.clientX,
|
|
1845
1846
|
y: e.clientY
|
|
1846
1847
|
}), d(!0);
|
|
1847
1848
|
};
|
|
1848
1849
|
return e.addEventListener("contextmenu", t), () => e.removeEventListener("contextmenu", t);
|
|
1849
|
-
}, [o, r]),
|
|
1850
|
-
if (!
|
|
1850
|
+
}, [o, r]), u(() => {
|
|
1851
|
+
if (!l) return;
|
|
1851
1852
|
let e = (e) => {
|
|
1852
|
-
|
|
1853
|
+
s.current && !s.current.contains(e.target) && d(!1);
|
|
1853
1854
|
}, t = (e) => {
|
|
1854
1855
|
e.key === "Escape" && d(!1);
|
|
1855
1856
|
};
|
|
1856
1857
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
1857
1858
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
1858
1859
|
};
|
|
1859
|
-
}, [
|
|
1860
|
-
let
|
|
1860
|
+
}, [l]);
|
|
1861
|
+
let g = c(() => d(!1), []), v = [
|
|
1861
1862
|
{
|
|
1862
1863
|
label: e ? i.contextMenuPause : i.contextMenuPlay,
|
|
1863
1864
|
onAction: () => {
|
|
@@ -1872,8 +1873,8 @@ var dt = () => {
|
|
|
1872
1873
|
},
|
|
1873
1874
|
...n
|
|
1874
1875
|
];
|
|
1875
|
-
return
|
|
1876
|
-
ref:
|
|
1876
|
+
return l ? /* @__PURE__ */ _("div", {
|
|
1877
|
+
ref: s,
|
|
1877
1878
|
className: "vplayer__contextmenu",
|
|
1878
1879
|
style: {
|
|
1879
1880
|
left: f.x,
|
|
@@ -1881,40 +1882,40 @@ var dt = () => {
|
|
|
1881
1882
|
},
|
|
1882
1883
|
role: "menu",
|
|
1883
1884
|
onKeyDown: (e) => {
|
|
1884
|
-
e.key === "Escape" &&
|
|
1885
|
+
e.key === "Escape" && g();
|
|
1885
1886
|
},
|
|
1886
|
-
children: v.map((e, t) => e.separator ? /* @__PURE__ */
|
|
1887
|
+
children: v.map((e, t) => e.separator ? /* @__PURE__ */ _("div", {
|
|
1887
1888
|
className: "vplayer__contextmenu-separator",
|
|
1888
1889
|
role: "separator"
|
|
1889
|
-
}, `sep-${t}`) : /* @__PURE__ */
|
|
1890
|
+
}, `sep-${t}`) : /* @__PURE__ */ _("button", {
|
|
1890
1891
|
className: "vplayer__contextmenu-item",
|
|
1891
1892
|
disabled: e.disabled,
|
|
1892
1893
|
onClick: () => {
|
|
1893
|
-
e.onAction(),
|
|
1894
|
+
e.onAction(), g();
|
|
1894
1895
|
},
|
|
1895
1896
|
style: { cursor: e.disabled ? "default" : "pointer" },
|
|
1896
1897
|
children: e.label
|
|
1897
1898
|
}, `item-${t}`))
|
|
1898
1899
|
}) : null;
|
|
1899
1900
|
}, pt = () => {
|
|
1900
|
-
let e =
|
|
1901
|
+
let e = P("error"), { labels: t, videoRef: n } = N(), r = c(() => {
|
|
1901
1902
|
let e = n.current;
|
|
1902
1903
|
e && e.load();
|
|
1903
1904
|
}, [n]);
|
|
1904
|
-
return e ? /* @__PURE__ */
|
|
1905
|
+
return e ? /* @__PURE__ */ _("div", {
|
|
1905
1906
|
className: "vplayer__error-overlay",
|
|
1906
|
-
children: /* @__PURE__ */
|
|
1907
|
+
children: /* @__PURE__ */ v("div", {
|
|
1907
1908
|
className: "vplayer__error-overlay-content",
|
|
1908
1909
|
children: [
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ _("p", {
|
|
1910
1911
|
className: "vplayer__error-overlay-message",
|
|
1911
1912
|
children: t.error
|
|
1912
1913
|
}),
|
|
1913
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ _("p", {
|
|
1914
1915
|
className: "vplayer__error-overlay-detail",
|
|
1915
1916
|
children: e.message
|
|
1916
1917
|
}),
|
|
1917
|
-
/* @__PURE__ */
|
|
1918
|
+
/* @__PURE__ */ _("button", {
|
|
1918
1919
|
onClick: r,
|
|
1919
1920
|
className: "vplayer__error-overlay-retry",
|
|
1920
1921
|
children: t.retry
|
|
@@ -1928,15 +1929,15 @@ var dt = () => {
|
|
|
1928
1929
|
"Loading",
|
|
1929
1930
|
"No Source"
|
|
1930
1931
|
], ht = () => {
|
|
1931
|
-
let e =
|
|
1932
|
+
let e = P(), t = P("infoPanelVisible"), { videoRef: n } = N();
|
|
1932
1933
|
if (!t) return null;
|
|
1933
|
-
let [r, i] =
|
|
1934
|
+
let [r, i] = h({
|
|
1934
1935
|
width: 0,
|
|
1935
1936
|
height: 0,
|
|
1936
1937
|
droppedFrames: 0,
|
|
1937
1938
|
networkState: 0
|
|
1938
1939
|
});
|
|
1939
|
-
return
|
|
1940
|
+
return u(() => {
|
|
1940
1941
|
let e = n.current;
|
|
1941
1942
|
if (!e) return;
|
|
1942
1943
|
let t = () => {
|
|
@@ -1952,70 +1953,70 @@ var dt = () => {
|
|
|
1952
1953
|
return () => {
|
|
1953
1954
|
e.removeEventListener("loadedmetadata", t), clearInterval(r);
|
|
1954
1955
|
};
|
|
1955
|
-
}, [n]), /* @__PURE__ */
|
|
1956
|
+
}, [n]), /* @__PURE__ */ v("div", {
|
|
1956
1957
|
className: "vplayer__info-panel",
|
|
1957
1958
|
children: [
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ _("div", { children: "Version: 1.0.0" }),
|
|
1960
|
+
/* @__PURE__ */ v("div", { children: [
|
|
1960
1961
|
"Duration: ",
|
|
1961
1962
|
e.duration.toFixed(2),
|
|
1962
1963
|
"s"
|
|
1963
1964
|
] }),
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
+
/* @__PURE__ */ v("div", { children: [
|
|
1965
1966
|
"Resolution: ",
|
|
1966
1967
|
r.width,
|
|
1967
1968
|
"×",
|
|
1968
1969
|
r.height
|
|
1969
1970
|
] }),
|
|
1970
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ v("div", { children: [
|
|
1971
1972
|
"Current: ",
|
|
1972
1973
|
e.currentTime.toFixed(2),
|
|
1973
1974
|
"s"
|
|
1974
1975
|
] }),
|
|
1975
|
-
/* @__PURE__ */
|
|
1976
|
+
/* @__PURE__ */ v("div", { children: [
|
|
1976
1977
|
"Volume: ",
|
|
1977
1978
|
(e.volume * 100).toFixed(0),
|
|
1978
1979
|
"%"
|
|
1979
1980
|
] }),
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
+
/* @__PURE__ */ v("div", { children: [
|
|
1981
1982
|
"Rate: ",
|
|
1982
1983
|
e.playbackRate,
|
|
1983
1984
|
"x"
|
|
1984
1985
|
] }),
|
|
1985
|
-
/* @__PURE__ */
|
|
1986
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ v("div", { children: ["Dropped: ", r.droppedFrames] }),
|
|
1987
|
+
/* @__PURE__ */ v("div", { children: ["Network: ", mt[r.networkState] ?? r.networkState] })
|
|
1987
1988
|
]
|
|
1988
1989
|
});
|
|
1989
1990
|
}, gt = () => {
|
|
1990
|
-
let e =
|
|
1991
|
-
return /* @__PURE__ */
|
|
1991
|
+
let e = P("controlsVisible"), t = P("currentTime"), n = P("duration"), r = P("bufferedPercent"), i = n > 0 ? t / n * 100 : 0;
|
|
1992
|
+
return /* @__PURE__ */ v("div", {
|
|
1992
1993
|
className: ot("vplayer__mini-progress", e ? "opacity-0" : "opacity-100"),
|
|
1993
1994
|
"aria-hidden": "true",
|
|
1994
|
-
children: [/* @__PURE__ */
|
|
1995
|
+
children: [/* @__PURE__ */ _("div", {
|
|
1995
1996
|
className: "vplayer__mini-progress-buffered",
|
|
1996
1997
|
style: { width: `${r}%` }
|
|
1997
|
-
}), /* @__PURE__ */
|
|
1998
|
+
}), /* @__PURE__ */ _("div", {
|
|
1998
1999
|
className: "vplayer__mini-progress-played",
|
|
1999
2000
|
style: { width: `${i}%` }
|
|
2000
2001
|
})]
|
|
2001
2002
|
});
|
|
2002
2003
|
}, _t = 3e3, vt = 1400;
|
|
2003
2004
|
function yt(e) {
|
|
2004
|
-
let t =
|
|
2005
|
+
let t = m(null), n = m(e.state.isPlaying), r = c(() => {
|
|
2005
2006
|
t.current &&= (clearTimeout(t.current), null);
|
|
2006
|
-
}, []), i =
|
|
2007
|
+
}, []), i = c(() => {
|
|
2007
2008
|
r(), e.state.isPlaying && e.setState((e) => ({
|
|
2008
2009
|
...e,
|
|
2009
2010
|
controlsVisible: !1
|
|
2010
2011
|
}));
|
|
2011
|
-
}, [r, e]), a =
|
|
2012
|
+
}, [r, e]), a = c((n = _t) => {
|
|
2012
2013
|
r(), t.current = setTimeout(() => {
|
|
2013
2014
|
t.current = null, e.state.isPlaying && e.setState((e) => ({
|
|
2014
2015
|
...e,
|
|
2015
2016
|
controlsVisible: !1
|
|
2016
2017
|
}));
|
|
2017
2018
|
}, n);
|
|
2018
|
-
}, [r, e]), o =
|
|
2019
|
+
}, [r, e]), o = c((t = _t) => {
|
|
2019
2020
|
e.setState((e) => ({
|
|
2020
2021
|
...e,
|
|
2021
2022
|
controlsVisible: !0
|
|
@@ -2025,7 +2026,7 @@ function yt(e) {
|
|
|
2025
2026
|
e,
|
|
2026
2027
|
a
|
|
2027
2028
|
]);
|
|
2028
|
-
|
|
2029
|
+
u(() => e.subscribe(() => {
|
|
2029
2030
|
let t = e.state.isPlaying;
|
|
2030
2031
|
t !== n.current && (n.current = t, t ? a(_t) : (r(), e.setState((e) => ({
|
|
2031
2032
|
...e,
|
|
@@ -2035,24 +2036,24 @@ function yt(e) {
|
|
|
2035
2036
|
r,
|
|
2036
2037
|
e,
|
|
2037
2038
|
a
|
|
2038
|
-
]),
|
|
2039
|
-
let
|
|
2039
|
+
]), u(() => () => r(), [r]);
|
|
2040
|
+
let s = p(() => ({
|
|
2040
2041
|
onMouseMove: () => o(),
|
|
2041
2042
|
onMouseEnter: () => o(),
|
|
2042
2043
|
onMouseLeave: () => a(vt),
|
|
2043
2044
|
onFocus: () => o(),
|
|
2044
2045
|
onBlur: () => a(vt)
|
|
2045
2046
|
}), [a, o]);
|
|
2046
|
-
return
|
|
2047
|
+
return p(() => ({
|
|
2047
2048
|
clearHideTimer: r,
|
|
2048
2049
|
hideControls: i,
|
|
2049
|
-
rootHandlers:
|
|
2050
|
+
rootHandlers: s,
|
|
2050
2051
|
scheduleHide: a,
|
|
2051
2052
|
showControls: o
|
|
2052
2053
|
}), [
|
|
2053
2054
|
r,
|
|
2054
2055
|
i,
|
|
2055
|
-
|
|
2056
|
+
s,
|
|
2056
2057
|
a,
|
|
2057
2058
|
o
|
|
2058
2059
|
]);
|
|
@@ -2078,14 +2079,14 @@ function bt(e) {
|
|
|
2078
2079
|
};
|
|
2079
2080
|
}
|
|
2080
2081
|
function xt(e, t) {
|
|
2081
|
-
let n =
|
|
2082
|
+
let n = p(() => bt(t), [t]), [r, i] = h(!1), a = c(() => {
|
|
2082
2083
|
n.enabled && i(!0);
|
|
2083
|
-
}, [n.enabled]), o =
|
|
2084
|
+
}, [n.enabled]), o = c(() => i(!1), []), s = c(() => {
|
|
2084
2085
|
n.enabled && i((e) => !e);
|
|
2085
2086
|
}, [n.enabled]);
|
|
2086
|
-
return
|
|
2087
|
+
return u(() => {
|
|
2087
2088
|
n.enabled || i(!1);
|
|
2088
|
-
}, [n.enabled]),
|
|
2089
|
+
}, [n.enabled]), u(() => {
|
|
2089
2090
|
if (!n.enabled || !n.auto) return;
|
|
2090
2091
|
let t = e.current;
|
|
2091
2092
|
if (!t || typeof IntersectionObserver > "u") return;
|
|
@@ -2097,7 +2098,7 @@ function xt(e, t) {
|
|
|
2097
2098
|
e,
|
|
2098
2099
|
n.auto,
|
|
2099
2100
|
n.enabled
|
|
2100
|
-
]),
|
|
2101
|
+
]), p(() => ({
|
|
2101
2102
|
enabled: n.enabled,
|
|
2102
2103
|
active: n.enabled && r,
|
|
2103
2104
|
auto: n.auto,
|
|
@@ -2105,7 +2106,7 @@ function xt(e, t) {
|
|
|
2105
2106
|
width: n.width,
|
|
2106
2107
|
enter: a,
|
|
2107
2108
|
exit: o,
|
|
2108
|
-
toggle:
|
|
2109
|
+
toggle: s
|
|
2109
2110
|
}), [
|
|
2110
2111
|
r,
|
|
2111
2112
|
n.auto,
|
|
@@ -2114,7 +2115,7 @@ function xt(e, t) {
|
|
|
2114
2115
|
n.width,
|
|
2115
2116
|
a,
|
|
2116
2117
|
o,
|
|
2117
|
-
|
|
2118
|
+
s
|
|
2118
2119
|
]);
|
|
2119
2120
|
}
|
|
2120
2121
|
function St() {
|
|
@@ -2132,8 +2133,8 @@ function St() {
|
|
|
2132
2133
|
//#endregion
|
|
2133
2134
|
//#region src/components/player/hooks/use-mobile-gestures.ts
|
|
2134
2135
|
function Ct(e, t) {
|
|
2135
|
-
let n = e ??
|
|
2136
|
-
return
|
|
2136
|
+
let n = e ?? N().mediaStore, r = t ?? ct();
|
|
2137
|
+
return p(() => tt(() => {
|
|
2137
2138
|
let e = n.state;
|
|
2138
2139
|
return {
|
|
2139
2140
|
currentTime: e.currentTime,
|
|
@@ -2149,18 +2150,18 @@ function Ct(e, t) {
|
|
|
2149
2150
|
//#endregion
|
|
2150
2151
|
//#region src/components/player/hooks/use-player.ts
|
|
2151
2152
|
function wt(e) {
|
|
2152
|
-
let t =
|
|
2153
|
+
let t = p(() => et(e), []), n = de(t.store), r = p(() => t.remote, [t]), i = c((e, n) => t.mount(n, e), [t]), a = c(() => t.unmount(), [t]), o = c((e) => {
|
|
2153
2154
|
t.initPlugins([e]);
|
|
2154
|
-
}, [t]),
|
|
2155
|
+
}, [t]), s = c((e) => {
|
|
2155
2156
|
t.updateOptions(e);
|
|
2156
2157
|
}, [t]);
|
|
2157
|
-
return
|
|
2158
|
+
return u(() => () => t.destroy(), [t]), {
|
|
2158
2159
|
state: n,
|
|
2159
2160
|
remote: r,
|
|
2160
2161
|
attach: i,
|
|
2161
2162
|
detach: a,
|
|
2162
2163
|
use: o,
|
|
2163
|
-
updateOptions:
|
|
2164
|
+
updateOptions: s,
|
|
2164
2165
|
instance: t
|
|
2165
2166
|
};
|
|
2166
2167
|
}
|
|
@@ -3010,7 +3011,7 @@ function dr(e) {
|
|
|
3010
3011
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
3011
3012
|
}
|
|
3012
3013
|
var fr = (e, t, n) => {
|
|
3013
|
-
let
|
|
3014
|
+
let r = t.inline ? ur : rr, a = Kn(r, t), o = t.mode || "svg", s = {}, c = t.style || {}, l = { ...o === "svg" ? ir : {} };
|
|
3014
3015
|
if (n) {
|
|
3015
3016
|
let e = Ut(n, !1, !0);
|
|
3016
3017
|
if (e) {
|
|
@@ -3053,7 +3054,7 @@ var fr = (e, t, n) => {
|
|
|
3053
3054
|
case "aria-hidden":
|
|
3054
3055
|
n !== !0 && n !== "true" && delete l["aria-hidden"];
|
|
3055
3056
|
break;
|
|
3056
|
-
default:
|
|
3057
|
+
default: r[e] === void 0 && (l[e] = n);
|
|
3057
3058
|
}
|
|
3058
3059
|
}
|
|
3059
3060
|
let u = on(e, a), d = u.attributes;
|
|
@@ -3063,7 +3064,7 @@ var fr = (e, t, n) => {
|
|
|
3063
3064
|
...c
|
|
3064
3065
|
}, Object.assign(l, d);
|
|
3065
3066
|
let e = 0, n = t.id;
|
|
3066
|
-
return typeof n == "string" && (n = n.replace(/-/g, "_")), l.dangerouslySetInnerHTML = { __html: nr(un(u.body, n ? () => n + "ID" + e++ : "iconifyReact")) },
|
|
3067
|
+
return typeof n == "string" && (n = n.replace(/-/g, "_")), l.dangerouslySetInnerHTML = { __html: nr(un(u.body, n ? () => n + "ID" + e++ : "iconifyReact")) }, i("svg", l);
|
|
3067
3068
|
}
|
|
3068
3069
|
let { body: f, width: p, height: m } = e, h = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), g = Xn(f, {
|
|
3069
3070
|
...d,
|
|
@@ -3078,7 +3079,7 @@ var fr = (e, t, n) => {
|
|
|
3078
3079
|
...ar,
|
|
3079
3080
|
...h ? or : sr,
|
|
3080
3081
|
...c
|
|
3081
|
-
},
|
|
3082
|
+
}, i("span", l);
|
|
3082
3083
|
};
|
|
3083
3084
|
if (Kt(!0), fn("", Tn), typeof document < "u" && typeof window < "u") {
|
|
3084
3085
|
let e = window;
|
|
@@ -3107,7 +3108,7 @@ if (Kt(!0), fn("", Tn), typeof document < "u" && typeof window < "u") {
|
|
|
3107
3108
|
}
|
|
3108
3109
|
}
|
|
3109
3110
|
function pr(e) {
|
|
3110
|
-
let [t, n] =
|
|
3111
|
+
let [t, n] = h(!!e.ssr), [r, a] = h({});
|
|
3111
3112
|
function o(t) {
|
|
3112
3113
|
if (t) {
|
|
3113
3114
|
let t = e.icon;
|
|
@@ -3123,13 +3124,13 @@ function pr(e) {
|
|
|
3123
3124
|
}
|
|
3124
3125
|
return { name: "" };
|
|
3125
3126
|
}
|
|
3126
|
-
let [s, c] =
|
|
3127
|
-
function
|
|
3128
|
-
let e =
|
|
3127
|
+
let [s, c] = h(o(!!e.ssr));
|
|
3128
|
+
function l() {
|
|
3129
|
+
let e = r.callback;
|
|
3129
3130
|
e && (e(), a({}));
|
|
3130
3131
|
}
|
|
3131
3132
|
function d(e) {
|
|
3132
|
-
if (JSON.stringify(s) !== JSON.stringify(e)) return
|
|
3133
|
+
if (JSON.stringify(s) !== JSON.stringify(e)) return l(), c(e), !0;
|
|
3133
3134
|
}
|
|
3134
3135
|
function f() {
|
|
3135
3136
|
var t;
|
|
@@ -3147,33 +3148,33 @@ function pr(e) {
|
|
|
3147
3148
|
data: r
|
|
3148
3149
|
}) && (r === void 0 ? a({ callback: Gn([n], f) }) : r && ((t = e.onLoad) == null || t.call(e, n)));
|
|
3149
3150
|
}
|
|
3150
|
-
|
|
3151
|
+
u(() => (n(!0), l), []), u(() => {
|
|
3151
3152
|
t && f();
|
|
3152
3153
|
}, [e.icon, t]);
|
|
3153
|
-
let { name: p, data:
|
|
3154
|
-
return
|
|
3154
|
+
let { name: p, data: m } = s;
|
|
3155
|
+
return m ? fr({
|
|
3155
3156
|
...Ot,
|
|
3156
|
-
...
|
|
3157
|
-
}, e, p) : e.children ? e.children : e.fallback ? e.fallback :
|
|
3157
|
+
...m
|
|
3158
|
+
}, e, p) : e.children ? e.children : e.fallback ? e.fallback : i("span", {});
|
|
3158
3159
|
}
|
|
3159
|
-
var
|
|
3160
|
+
var F = a((e, t) => pr({
|
|
3160
3161
|
...e,
|
|
3161
3162
|
_ref: t
|
|
3162
3163
|
}));
|
|
3163
|
-
|
|
3164
|
+
a((e, t) => pr({
|
|
3164
3165
|
inline: !0,
|
|
3165
3166
|
...e,
|
|
3166
3167
|
_ref: t
|
|
3167
3168
|
}));
|
|
3168
3169
|
//#endregion
|
|
3169
3170
|
//#region src/components/player/overlays.tsx
|
|
3170
|
-
var mr = () => /* @__PURE__ */
|
|
3171
|
-
let e =
|
|
3172
|
-
return /* @__PURE__ */
|
|
3171
|
+
var mr = () => /* @__PURE__ */ _("div", { className: ot("vplayer__top-gradient", !P("controlsVisible") && "vplayer__top-gradient--hidden") }), hr = () => {
|
|
3172
|
+
let e = P("isPlaying"), t = P("isEnded"), n = P("controlsVisible"), { icons: r } = N();
|
|
3173
|
+
return /* @__PURE__ */ _("div", {
|
|
3173
3174
|
className: ot("vplayer__overlay", !(!e && !t && n) && "vplayer__overlay--hidden"),
|
|
3174
|
-
children: /* @__PURE__ */
|
|
3175
|
+
children: /* @__PURE__ */ _("div", {
|
|
3175
3176
|
className: "vplayer__pause-orb",
|
|
3176
|
-
children: /* @__PURE__ */
|
|
3177
|
+
children: /* @__PURE__ */ _(F, {
|
|
3177
3178
|
icon: r.play,
|
|
3178
3179
|
className: "vplayer__pause-icon",
|
|
3179
3180
|
fill: "currentColor"
|
|
@@ -3181,25 +3182,25 @@ var mr = () => /* @__PURE__ */ g("div", { className: ot("vplayer__top-gradient",
|
|
|
3181
3182
|
})
|
|
3182
3183
|
});
|
|
3183
3184
|
}, gr = () => {
|
|
3184
|
-
let e =
|
|
3185
|
-
return /* @__PURE__ */
|
|
3185
|
+
let e = P("isBuffering"), { icons: t } = N();
|
|
3186
|
+
return /* @__PURE__ */ _("div", {
|
|
3186
3187
|
className: ot("vplayer__overlay", !e && "vplayer__overlay--hidden"),
|
|
3187
|
-
children: /* @__PURE__ */
|
|
3188
|
+
children: /* @__PURE__ */ _(F, {
|
|
3188
3189
|
icon: t.spinner,
|
|
3189
3190
|
className: "vplayer__spinner"
|
|
3190
3191
|
})
|
|
3191
3192
|
});
|
|
3192
3193
|
}, _r = () => {
|
|
3193
|
-
let e =
|
|
3194
|
-
return e ? /* @__PURE__ */
|
|
3194
|
+
let e = P("isEnded"), { labels: t, icons: n } = N(), r = ct();
|
|
3195
|
+
return e ? /* @__PURE__ */ v("div", {
|
|
3195
3196
|
className: "vplayer__overlay vplayer__overlay--ended",
|
|
3196
|
-
children: [/* @__PURE__ */
|
|
3197
|
+
children: [/* @__PURE__ */ _("p", {
|
|
3197
3198
|
className: "vplayer__ended-title",
|
|
3198
3199
|
children: t.endedTitle
|
|
3199
|
-
}), /* @__PURE__ */
|
|
3200
|
+
}), /* @__PURE__ */ v("button", {
|
|
3200
3201
|
onClick: r.togglePlay,
|
|
3201
3202
|
className: "vplayer__ended-button",
|
|
3202
|
-
children: [/* @__PURE__ */
|
|
3203
|
+
children: [/* @__PURE__ */ _(F, {
|
|
3203
3204
|
icon: n.replay,
|
|
3204
3205
|
width: 16
|
|
3205
3206
|
}), t.replay]
|
|
@@ -3226,7 +3227,7 @@ var mr = () => /* @__PURE__ */ g("div", { className: ot("vplayer__top-gradient",
|
|
|
3226
3227
|
configurable: !0,
|
|
3227
3228
|
writable: !0,
|
|
3228
3229
|
value: n
|
|
3229
|
-
}) : e[t] = n, wr = (e, t, n) => Cr(e, typeof t == "symbol" ? t : t + "", n), Tr = (e, t) => e.map((n, r) => e[(Math.max(t, 0) + r) % e.length]), Er = () => void 0, Dr = (e) => typeof e == "object" && !!e,
|
|
3230
|
+
}) : e[t] = n, wr = (e, t, n) => Cr(e, typeof t == "symbol" ? t : t + "", n), Tr = (e, t) => e.map((n, r) => e[(Math.max(t, 0) + r) % e.length]), Er = () => void 0, Dr = (e) => typeof e == "object" && !!e, I = (e) => e ? "" : void 0, Or = (e) => e ? "true" : void 0, kr = 1, Ar = 9, jr = 11, L = (e) => Dr(e) && e.nodeType === kr && typeof e.nodeName == "string", Mr = (e) => Dr(e) && e.nodeType === Ar, Nr = (e) => Dr(e) && e === e.window, Pr = (e) => L(e) ? e.localName || "" : "#document";
|
|
3230
3231
|
function Fr(e) {
|
|
3231
3232
|
return [
|
|
3232
3233
|
"html",
|
|
@@ -3234,13 +3235,13 @@ function Fr(e) {
|
|
|
3234
3235
|
"#document"
|
|
3235
3236
|
].includes(Pr(e));
|
|
3236
3237
|
}
|
|
3237
|
-
var Ir = (e) => Dr(e) && e.nodeType !== void 0, Lr = (e) => Ir(e) && e.nodeType === jr && "host" in e, Rr = (e) =>
|
|
3238
|
+
var Ir = (e) => Dr(e) && e.nodeType !== void 0, Lr = (e) => Ir(e) && e.nodeType === jr && "host" in e, Rr = (e) => L(e) && e.localName === "input", zr = (e) => !!e?.matches("a[href]"), Br = (e) => L(e) ? e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0 : !1;
|
|
3238
3239
|
function Vr(e) {
|
|
3239
3240
|
return e ? qr(e.getRootNode()) === e : !1;
|
|
3240
3241
|
}
|
|
3241
3242
|
var Hr = /(textarea|select)/;
|
|
3242
3243
|
function Ur(e) {
|
|
3243
|
-
if (e == null || !
|
|
3244
|
+
if (e == null || !L(e)) return !1;
|
|
3244
3245
|
try {
|
|
3245
3246
|
return Rr(e) && e.selectionStart != null || Hr.test(e.localName) || e.isContentEditable || e.getAttribute("contenteditable") === "true" || e.getAttribute("contenteditable") === "";
|
|
3246
3247
|
} catch {
|
|
@@ -3248,8 +3249,8 @@ function Ur(e) {
|
|
|
3248
3249
|
}
|
|
3249
3250
|
}
|
|
3250
3251
|
function Wr(e, t) {
|
|
3251
|
-
if (!e || !t || !
|
|
3252
|
-
if (
|
|
3252
|
+
if (!e || !t || !L(e) || !Ir(t)) return !1;
|
|
3253
|
+
if (L(t) && e === t || e.contains(t)) return !0;
|
|
3253
3254
|
let n = t.getRootNode?.();
|
|
3254
3255
|
if (n && Lr(n)) {
|
|
3255
3256
|
let n = t;
|
|
@@ -3266,8 +3267,8 @@ function Gr(e) {
|
|
|
3266
3267
|
function Kr(e) {
|
|
3267
3268
|
return Gr(e).documentElement;
|
|
3268
3269
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return Lr(e) ?
|
|
3270
|
+
function R(e) {
|
|
3271
|
+
return Lr(e) ? R(e.host) : Mr(e) ? e.defaultView ?? window : L(e) ? e.ownerDocument?.defaultView ?? window : window;
|
|
3271
3272
|
}
|
|
3272
3273
|
function qr(e) {
|
|
3273
3274
|
let t = e.activeElement;
|
|
@@ -3294,7 +3295,7 @@ function Yr(e) {
|
|
|
3294
3295
|
//#region ../../node_modules/@zag-js/dom-query/dist/computed-style.mjs
|
|
3295
3296
|
var Xr = /* @__PURE__ */ new WeakMap();
|
|
3296
3297
|
function Zr(e) {
|
|
3297
|
-
return Xr.has(e) || Xr.set(e,
|
|
3298
|
+
return Xr.has(e) || Xr.set(e, R(e).getComputedStyle(e)), Xr.get(e);
|
|
3298
3299
|
}
|
|
3299
3300
|
//#endregion
|
|
3300
3301
|
//#region ../../node_modules/@zag-js/dom-query/dist/controller.mjs
|
|
@@ -3342,7 +3343,7 @@ var ai = (e) => ni() && e.test(ri()), oi = (e) => ni() && e.test(ii()), si = ()
|
|
|
3342
3343
|
function mi(e) {
|
|
3343
3344
|
return e.composedPath?.() ?? e.nativeEvent?.composedPath?.();
|
|
3344
3345
|
}
|
|
3345
|
-
function
|
|
3346
|
+
function z(e) {
|
|
3346
3347
|
return mi(e)?.[0] ?? e.target;
|
|
3347
3348
|
}
|
|
3348
3349
|
function hi(e) {
|
|
@@ -3404,7 +3405,7 @@ function Mi(e, t = "client") {
|
|
|
3404
3405
|
y: n[`${t}Y`]
|
|
3405
3406
|
};
|
|
3406
3407
|
}
|
|
3407
|
-
var
|
|
3408
|
+
var B = (e, t, n, r) => {
|
|
3408
3409
|
let i = typeof e == "function" ? e() : e;
|
|
3409
3410
|
return i?.addEventListener(t, n, r), () => {
|
|
3410
3411
|
i?.removeEventListener(t, n, r);
|
|
@@ -3412,87 +3413,87 @@ var Ni = (e, t, n, r) => {
|
|
|
3412
3413
|
};
|
|
3413
3414
|
//#endregion
|
|
3414
3415
|
//#region ../../node_modules/@zag-js/dom-query/dist/form.mjs
|
|
3415
|
-
function
|
|
3416
|
-
let { type: n = "HTMLInputElement", property: r = "value" } = t, i =
|
|
3416
|
+
function Ni(e, t) {
|
|
3417
|
+
let { type: n = "HTMLInputElement", property: r = "value" } = t, i = R(e)[n].prototype;
|
|
3417
3418
|
return Object.getOwnPropertyDescriptor(i, r) ?? {};
|
|
3418
3419
|
}
|
|
3419
|
-
function
|
|
3420
|
+
function Pi(e) {
|
|
3420
3421
|
if (e.localName === "input") return "HTMLInputElement";
|
|
3421
3422
|
if (e.localName === "textarea") return "HTMLTextAreaElement";
|
|
3422
3423
|
if (e.localName === "select") return "HTMLSelectElement";
|
|
3423
3424
|
}
|
|
3424
|
-
function
|
|
3425
|
+
function Fi(e, t, n = "value") {
|
|
3425
3426
|
if (!e) return;
|
|
3426
|
-
let r =
|
|
3427
|
-
r &&
|
|
3427
|
+
let r = Pi(e);
|
|
3428
|
+
r && Ni(e, {
|
|
3428
3429
|
type: r,
|
|
3429
3430
|
property: n
|
|
3430
3431
|
}).set?.call(e, t), e.setAttribute(n, t);
|
|
3431
3432
|
}
|
|
3432
|
-
function
|
|
3433
|
+
function Ii(e, t) {
|
|
3433
3434
|
let { value: n, bubbles: r = !0 } = t;
|
|
3434
3435
|
if (!e) return;
|
|
3435
|
-
let i =
|
|
3436
|
+
let i = R(e);
|
|
3436
3437
|
if (!(e instanceof i.HTMLInputElement)) return;
|
|
3437
|
-
|
|
3438
|
+
Fi(e, `${n}`);
|
|
3438
3439
|
let a = new i.Event("input", { bubbles: r });
|
|
3439
|
-
e.dispatchEvent(
|
|
3440
|
+
e.dispatchEvent(Ui(a));
|
|
3440
3441
|
}
|
|
3441
|
-
function
|
|
3442
|
+
function Li(e) {
|
|
3442
3443
|
return e.matches("textarea, input, select, button");
|
|
3443
3444
|
}
|
|
3444
|
-
function
|
|
3445
|
+
function Ri(e, t) {
|
|
3445
3446
|
if (!e) return;
|
|
3446
|
-
let n =
|
|
3447
|
+
let n = Li(e) ? e.form : e.closest("form"), r = (e) => {
|
|
3447
3448
|
e.defaultPrevented || t();
|
|
3448
3449
|
};
|
|
3449
3450
|
return n?.addEventListener("reset", r, { passive: !0 }), () => n?.removeEventListener("reset", r);
|
|
3450
3451
|
}
|
|
3451
|
-
function
|
|
3452
|
+
function zi(e, t) {
|
|
3452
3453
|
let n = e?.closest("fieldset");
|
|
3453
3454
|
if (!n) return;
|
|
3454
3455
|
t(n.disabled);
|
|
3455
|
-
let r = new (
|
|
3456
|
+
let r = new (R(n)).MutationObserver(() => t(n.disabled));
|
|
3456
3457
|
return r.observe(n, {
|
|
3457
3458
|
attributes: !0,
|
|
3458
3459
|
attributeFilter: ["disabled"]
|
|
3459
3460
|
}), () => r.disconnect();
|
|
3460
3461
|
}
|
|
3461
|
-
function
|
|
3462
|
+
function Bi(e, t) {
|
|
3462
3463
|
if (!e) return;
|
|
3463
|
-
let { onFieldsetDisabledChange: n, onFormReset: r } = t, i = [
|
|
3464
|
+
let { onFieldsetDisabledChange: n, onFormReset: r } = t, i = [Ri(e, r), zi(e, n)];
|
|
3464
3465
|
return () => i.forEach((e) => e?.());
|
|
3465
3466
|
}
|
|
3466
|
-
var
|
|
3467
|
-
function
|
|
3468
|
-
return Object.prototype.hasOwnProperty.call(e,
|
|
3467
|
+
var Vi = /* @__PURE__ */ Symbol.for("zag.changeEvent");
|
|
3468
|
+
function Hi(e) {
|
|
3469
|
+
return Object.prototype.hasOwnProperty.call(e, Vi);
|
|
3469
3470
|
}
|
|
3470
|
-
function
|
|
3471
|
-
return
|
|
3471
|
+
function Ui(e) {
|
|
3472
|
+
return Hi(e) || Object.defineProperty(e, Vi, { value: !0 }), e;
|
|
3472
3473
|
}
|
|
3473
3474
|
//#endregion
|
|
3474
3475
|
//#region ../../node_modules/@zag-js/dom-query/dist/tabbable.mjs
|
|
3475
|
-
var
|
|
3476
|
-
function
|
|
3476
|
+
var Wi = (e) => L(e) && e.tagName === "IFRAME";
|
|
3477
|
+
function Gi(e) {
|
|
3477
3478
|
let t = e.getAttribute("tabindex");
|
|
3478
3479
|
return t ? parseInt(t, 10) : NaN;
|
|
3479
3480
|
}
|
|
3480
|
-
var
|
|
3481
|
-
function
|
|
3481
|
+
var Ki = (e) => Gi(e) < 0;
|
|
3482
|
+
function qi(e) {
|
|
3482
3483
|
return Rr(e) && e.type === "radio";
|
|
3483
3484
|
}
|
|
3484
|
-
function
|
|
3485
|
-
if (!
|
|
3486
|
-
let t = `input[type="radio"][name="${CSS.escape(e.name)}"]`, n = e.form ?? e.ownerDocument, r = Array.from(n.querySelectorAll(t)).filter((t) => t.form === e.form &&
|
|
3485
|
+
function Ji(e) {
|
|
3486
|
+
if (!qi(e) || !e.name || e.checked) return !0;
|
|
3487
|
+
let t = `input[type="radio"][name="${CSS.escape(e.name)}"]`, n = e.form ?? e.ownerDocument, r = Array.from(n.querySelectorAll(t)).filter((t) => t.form === e.form && Qi(t)), i = r.find((e) => e.checked);
|
|
3487
3488
|
return i ? i === e : r[0] === e;
|
|
3488
3489
|
}
|
|
3489
|
-
function
|
|
3490
|
+
function Yi(e, t) {
|
|
3490
3491
|
if (!t) return null;
|
|
3491
3492
|
if (t === !0) return e.shadowRoot || null;
|
|
3492
3493
|
let n = t(e);
|
|
3493
3494
|
return (n === !0 ? e.shadowRoot : n) || null;
|
|
3494
3495
|
}
|
|
3495
|
-
function
|
|
3496
|
+
function Xi(e, t, n) {
|
|
3496
3497
|
let r = [...e], i = [...e], a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
3497
3498
|
e.forEach((e, t) => o.set(e, t));
|
|
3498
3499
|
let s = 0;
|
|
@@ -3500,9 +3501,9 @@ function Zi(e, t, n) {
|
|
|
3500
3501
|
let e = i[s++];
|
|
3501
3502
|
if (!e || a.has(e)) continue;
|
|
3502
3503
|
a.add(e);
|
|
3503
|
-
let c =
|
|
3504
|
+
let c = Yi(e, t);
|
|
3504
3505
|
if (c) {
|
|
3505
|
-
let t = Array.from(c.querySelectorAll(
|
|
3506
|
+
let t = Array.from(c.querySelectorAll(Zi)).filter(n), a = o.get(e);
|
|
3506
3507
|
if (a !== void 0) {
|
|
3507
3508
|
let e = a + 1;
|
|
3508
3509
|
r.splice(e, 0, ...t), t.forEach((t, n) => {
|
|
@@ -3520,57 +3521,57 @@ function Zi(e, t, n) {
|
|
|
3520
3521
|
}
|
|
3521
3522
|
return r;
|
|
3522
3523
|
}
|
|
3523
|
-
var
|
|
3524
|
-
function
|
|
3525
|
-
return !
|
|
3524
|
+
var Zi = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";
|
|
3525
|
+
function Qi(e) {
|
|
3526
|
+
return !L(e) || e.closest("[inert]") ? !1 : e.matches(Zi) && Br(e);
|
|
3526
3527
|
}
|
|
3527
|
-
function
|
|
3528
|
+
function $i(e, t = {}) {
|
|
3528
3529
|
if (!e) return [];
|
|
3529
|
-
let { includeContainer: n, getShadowRoot: r } = t, i = Array.from(e.querySelectorAll(
|
|
3530
|
-
n &&
|
|
3530
|
+
let { includeContainer: n, getShadowRoot: r } = t, i = Array.from(e.querySelectorAll(Zi));
|
|
3531
|
+
n && ea(e) && i.unshift(e);
|
|
3531
3532
|
let a = [];
|
|
3532
|
-
for (let e of i) if (
|
|
3533
|
-
if (
|
|
3533
|
+
for (let e of i) if (ea(e)) {
|
|
3534
|
+
if (Wi(e) && e.contentDocument) {
|
|
3534
3535
|
let t = e.contentDocument.body;
|
|
3535
|
-
a.push(
|
|
3536
|
+
a.push(...$i(t, { getShadowRoot: r }));
|
|
3536
3537
|
continue;
|
|
3537
3538
|
}
|
|
3538
3539
|
a.push(e);
|
|
3539
3540
|
}
|
|
3540
3541
|
if (r) {
|
|
3541
|
-
let e =
|
|
3542
|
+
let e = Xi(a, r, ea);
|
|
3542
3543
|
return !e.length && n ? i : e;
|
|
3543
3544
|
}
|
|
3544
3545
|
return !a.length && n ? i : a;
|
|
3545
3546
|
}
|
|
3546
|
-
function
|
|
3547
|
-
return
|
|
3547
|
+
function ea(e) {
|
|
3548
|
+
return L(e) && e.tabIndex > 0 ? !0 : !Qi(e) || Ki(e) ? !1 : Ji(e);
|
|
3548
3549
|
}
|
|
3549
|
-
function
|
|
3550
|
-
let n =
|
|
3550
|
+
function ta(e, t = {}) {
|
|
3551
|
+
let n = $i(e, t);
|
|
3551
3552
|
return [n[0] || null, n[n.length - 1] || null];
|
|
3552
3553
|
}
|
|
3553
3554
|
//#endregion
|
|
3554
3555
|
//#region ../../node_modules/@zag-js/dom-query/dist/initial-focus.mjs
|
|
3555
|
-
function
|
|
3556
|
+
function na(e) {
|
|
3556
3557
|
let { root: t, getInitialEl: n, filter: r, enabled: i = !0 } = e;
|
|
3557
3558
|
if (!i) return;
|
|
3558
3559
|
let a = null;
|
|
3559
3560
|
if (a ||= typeof n == "function" ? n() : n, a ||= t?.querySelector("[data-autofocus],[autofocus]"), !a) {
|
|
3560
|
-
let e =
|
|
3561
|
+
let e = $i(t);
|
|
3561
3562
|
a = r ? e.filter(r)[0] : e[0];
|
|
3562
3563
|
}
|
|
3563
3564
|
return a || t || void 0;
|
|
3564
3565
|
}
|
|
3565
|
-
function
|
|
3566
|
+
function ra(e) {
|
|
3566
3567
|
let t = e.currentTarget;
|
|
3567
3568
|
if (!t) return !1;
|
|
3568
|
-
let [n, r] =
|
|
3569
|
+
let [n, r] = ta(t);
|
|
3569
3570
|
return !(Vr(n) && e.shiftKey || Vr(r) && !e.shiftKey || !n && !r);
|
|
3570
3571
|
}
|
|
3571
3572
|
//#endregion
|
|
3572
3573
|
//#region ../../node_modules/@zag-js/dom-query/dist/raf.mjs
|
|
3573
|
-
var
|
|
3574
|
+
var ia = class e {
|
|
3574
3575
|
constructor() {
|
|
3575
3576
|
wr(this, "id", null), wr(this, "fn_cleanup"), wr(this, "cleanup", () => {
|
|
3576
3577
|
this.cancel();
|
|
@@ -3591,11 +3592,11 @@ var aa = class e {
|
|
|
3591
3592
|
return this.id !== null;
|
|
3592
3593
|
}
|
|
3593
3594
|
};
|
|
3594
|
-
function
|
|
3595
|
-
let t =
|
|
3595
|
+
function V(e) {
|
|
3596
|
+
let t = ia.create();
|
|
3596
3597
|
return t.request(e), t.cleanup;
|
|
3597
3598
|
}
|
|
3598
|
-
function
|
|
3599
|
+
function aa(e) {
|
|
3599
3600
|
let t = /* @__PURE__ */ new Set();
|
|
3600
3601
|
function n(e) {
|
|
3601
3602
|
let n = globalThis.requestAnimationFrame(e);
|
|
@@ -3605,8 +3606,8 @@ function oa(e) {
|
|
|
3605
3606
|
t.forEach((e) => e());
|
|
3606
3607
|
};
|
|
3607
3608
|
}
|
|
3608
|
-
function
|
|
3609
|
-
let r =
|
|
3609
|
+
function oa(e, t, n) {
|
|
3610
|
+
let r = V(() => {
|
|
3610
3611
|
e.removeEventListener(t, i, !0), n();
|
|
3611
3612
|
}), i = () => {
|
|
3612
3613
|
r(), n();
|
|
@@ -3618,7 +3619,7 @@ function sa(e, t, n) {
|
|
|
3618
3619
|
}
|
|
3619
3620
|
//#endregion
|
|
3620
3621
|
//#region ../../node_modules/@zag-js/dom-query/dist/mutation-observer.mjs
|
|
3621
|
-
function
|
|
3622
|
+
function sa(e, t) {
|
|
3622
3623
|
if (!e) return;
|
|
3623
3624
|
let { attributes: n, callback: r } = t, i = new (e.ownerDocument.defaultView || window).MutationObserver((e) => {
|
|
3624
3625
|
for (let t of e) t.type === "attributes" && t.attributeName && n.includes(t.attributeName) && r(t);
|
|
@@ -3628,75 +3629,75 @@ function ca(e, t) {
|
|
|
3628
3629
|
attributeFilter: n
|
|
3629
3630
|
}), () => i.disconnect();
|
|
3630
3631
|
}
|
|
3631
|
-
function
|
|
3632
|
-
let { defer: n } = t, r = n ?
|
|
3632
|
+
function ca(e, t) {
|
|
3633
|
+
let { defer: n } = t, r = n ? V : (e) => e(), i = [];
|
|
3633
3634
|
return i.push(r(() => {
|
|
3634
3635
|
let n = typeof e == "function" ? e() : e;
|
|
3635
|
-
i.push(
|
|
3636
|
+
i.push(sa(n, t));
|
|
3636
3637
|
})), () => {
|
|
3637
3638
|
i.forEach((e) => e?.());
|
|
3638
3639
|
};
|
|
3639
3640
|
}
|
|
3640
3641
|
//#endregion
|
|
3641
3642
|
//#region ../../node_modules/@zag-js/dom-query/dist/navigate.mjs
|
|
3642
|
-
function
|
|
3643
|
+
function la(e) {
|
|
3643
3644
|
let t = () => {
|
|
3644
|
-
let t =
|
|
3645
|
+
let t = R(e);
|
|
3645
3646
|
e.dispatchEvent(new t.MouseEvent("click"));
|
|
3646
3647
|
};
|
|
3647
|
-
fi() ?
|
|
3648
|
+
fi() ? oa(e, "keyup", t) : queueMicrotask(t);
|
|
3648
3649
|
}
|
|
3649
3650
|
//#endregion
|
|
3650
3651
|
//#region ../../node_modules/@zag-js/dom-query/dist/overflow.mjs
|
|
3651
|
-
function
|
|
3652
|
+
function ua(e) {
|
|
3652
3653
|
let t = Jr(e);
|
|
3653
|
-
return Fr(t) ? Gr(t).body :
|
|
3654
|
+
return Fr(t) ? Gr(t).body : L(t) && ma(t) ? t : ua(t);
|
|
3654
3655
|
}
|
|
3655
|
-
function
|
|
3656
|
-
let n =
|
|
3657
|
-
return r ? t.concat(i, i.visualViewport || [],
|
|
3656
|
+
function da(e, t = []) {
|
|
3657
|
+
let n = ua(e), r = n === e.ownerDocument.body, i = R(n);
|
|
3658
|
+
return r ? t.concat(i, i.visualViewport || [], ma(n) ? n : []) : t.concat(n, da(n, []));
|
|
3658
3659
|
}
|
|
3659
|
-
var
|
|
3660
|
-
function
|
|
3661
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
3662
|
-
return
|
|
3660
|
+
var fa = /auto|scroll|overlay|hidden|clip/, pa = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
3661
|
+
function ma(e) {
|
|
3662
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = R(e).getComputedStyle(e);
|
|
3663
|
+
return fa.test(t + r + n) && !pa.has(i);
|
|
3663
3664
|
}
|
|
3664
|
-
function
|
|
3665
|
+
function ha(e) {
|
|
3665
3666
|
return e.scrollHeight > e.clientHeight || e.scrollWidth > e.clientWidth;
|
|
3666
3667
|
}
|
|
3667
|
-
function
|
|
3668
|
+
function ga(e, t) {
|
|
3668
3669
|
let { rootEl: n, ...r } = t || {};
|
|
3669
|
-
!e || !n || !
|
|
3670
|
+
!e || !n || !ma(n) || !ha(n) || e.scrollIntoView(r);
|
|
3670
3671
|
}
|
|
3671
3672
|
//#endregion
|
|
3672
3673
|
//#region ../../node_modules/@zag-js/dom-query/dist/text-selection.mjs
|
|
3673
|
-
var
|
|
3674
|
-
function
|
|
3674
|
+
var _a = "default", va = "", ya = /* @__PURE__ */ new WeakMap();
|
|
3675
|
+
function ba(e = {}) {
|
|
3675
3676
|
let { target: t, doc: n } = e, r = n ?? document, i = r.documentElement;
|
|
3676
|
-
return ui() ? (
|
|
3677
|
+
return ui() ? (_a === "default" && (va = i.style.webkitUserSelect, i.style.webkitUserSelect = "none"), _a = "disabled") : t && (ya.set(t, t.style.userSelect), t.style.userSelect = "none"), () => xa({
|
|
3677
3678
|
target: t,
|
|
3678
3679
|
doc: r
|
|
3679
3680
|
});
|
|
3680
3681
|
}
|
|
3681
|
-
function
|
|
3682
|
+
function xa(e = {}) {
|
|
3682
3683
|
let { target: t, doc: n } = e, r = (n ?? document).documentElement;
|
|
3683
3684
|
if (ui()) {
|
|
3684
|
-
if (
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3685
|
+
if (_a !== "disabled") return;
|
|
3686
|
+
_a = "restoring", setTimeout(() => {
|
|
3687
|
+
aa(() => {
|
|
3688
|
+
_a === "restoring" && (r.style.webkitUserSelect === "none" && (r.style.webkitUserSelect = va || ""), va = "", _a = "default");
|
|
3688
3689
|
});
|
|
3689
3690
|
}, 300);
|
|
3690
|
-
} else if (t &&
|
|
3691
|
-
let e =
|
|
3692
|
-
t.style.userSelect === "none" && (t.style.userSelect = e ?? ""), t.getAttribute("style") === "" && t.removeAttribute("style"),
|
|
3691
|
+
} else if (t && ya.has(t)) {
|
|
3692
|
+
let e = ya.get(t);
|
|
3693
|
+
t.style.userSelect === "none" && (t.style.userSelect = e ?? ""), t.getAttribute("style") === "" && t.removeAttribute("style"), ya.delete(t);
|
|
3693
3694
|
}
|
|
3694
3695
|
}
|
|
3695
|
-
function
|
|
3696
|
-
let { defer: t, target: n, ...r } = e, i = t ?
|
|
3696
|
+
function Sa(e = {}) {
|
|
3697
|
+
let { defer: t, target: n, ...r } = e, i = t ? V : (e) => e(), a = [];
|
|
3697
3698
|
return a.push(i(() => {
|
|
3698
3699
|
let e = typeof n == "function" ? n() : n;
|
|
3699
|
-
a.push(
|
|
3700
|
+
a.push(ba({
|
|
3700
3701
|
...r,
|
|
3701
3702
|
target: e
|
|
3702
3703
|
}));
|
|
@@ -3706,7 +3707,7 @@ function Ca(e = {}) {
|
|
|
3706
3707
|
}
|
|
3707
3708
|
//#endregion
|
|
3708
3709
|
//#region ../../node_modules/@zag-js/dom-query/dist/pointer-move.mjs
|
|
3709
|
-
function
|
|
3710
|
+
function Ca(e, t) {
|
|
3710
3711
|
let { onPointerMove: n, onPointerUp: r } = t, i = (e) => {
|
|
3711
3712
|
let t = Mi(e);
|
|
3712
3713
|
if (!(Math.sqrt(t.x ** 2 + t.y ** 2) < (e.pointerType === "touch" ? 10 : 5))) {
|
|
@@ -3725,11 +3726,11 @@ function wa(e, t) {
|
|
|
3725
3726
|
event: e
|
|
3726
3727
|
});
|
|
3727
3728
|
}, o = [
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3729
|
+
B(e, "pointermove", i, !1),
|
|
3730
|
+
B(e, "pointerup", a, !1),
|
|
3731
|
+
B(e, "pointercancel", a, !1),
|
|
3732
|
+
B(e, "contextmenu", a, !1),
|
|
3733
|
+
Sa({ doc: e })
|
|
3733
3734
|
];
|
|
3734
3735
|
return () => {
|
|
3735
3736
|
o.forEach((e) => e());
|
|
@@ -3737,20 +3738,20 @@ function wa(e, t) {
|
|
|
3737
3738
|
}
|
|
3738
3739
|
//#endregion
|
|
3739
3740
|
//#region ../../node_modules/@zag-js/dom-query/dist/query.mjs
|
|
3740
|
-
function
|
|
3741
|
+
function wa(e, t) {
|
|
3741
3742
|
return Array.from(e?.querySelectorAll(t) ?? []);
|
|
3742
3743
|
}
|
|
3743
|
-
var
|
|
3744
|
-
function
|
|
3744
|
+
var Ta = (e) => e.id;
|
|
3745
|
+
function Ea(e, t, n = Ta) {
|
|
3745
3746
|
return e.find((e) => n(e) === t);
|
|
3746
3747
|
}
|
|
3747
|
-
function
|
|
3748
|
-
let r =
|
|
3748
|
+
function Da(e, t, n = Ta) {
|
|
3749
|
+
let r = Ea(e, t, n);
|
|
3749
3750
|
return r ? e.indexOf(r) : -1;
|
|
3750
3751
|
}
|
|
3751
3752
|
//#endregion
|
|
3752
3753
|
//#region ../../node_modules/@zag-js/dom-query/dist/resize-observer.mjs
|
|
3753
|
-
function
|
|
3754
|
+
function Oa(e) {
|
|
3754
3755
|
let t = /* @__PURE__ */ new WeakMap(), n, r = /* @__PURE__ */ new WeakMap(), i = (e) => n || (n = new e.ResizeObserver((e) => {
|
|
3755
3756
|
for (let n of e) {
|
|
3756
3757
|
r.set(n.target, n);
|
|
@@ -3762,7 +3763,7 @@ function ka(e) {
|
|
|
3762
3763
|
observe: (n, r) => {
|
|
3763
3764
|
let a = t.get(n) || /* @__PURE__ */ new Set();
|
|
3764
3765
|
a.add(r), t.set(n, a);
|
|
3765
|
-
let o =
|
|
3766
|
+
let o = R(n);
|
|
3766
3767
|
return i(o).observe(n, e), () => {
|
|
3767
3768
|
let e = t.get(n);
|
|
3768
3769
|
e && (e.delete(r), e.size === 0 && (t.delete(n), i(o).unobserve(n)));
|
|
@@ -3773,30 +3774,30 @@ function ka(e) {
|
|
|
3773
3774
|
}
|
|
3774
3775
|
};
|
|
3775
3776
|
}
|
|
3776
|
-
var
|
|
3777
|
+
var ka = /* @__PURE__ */ Oa({ box: "border-box" }), Aa = (e) => e.split("").map((e) => {
|
|
3777
3778
|
let t = e.charCodeAt(0);
|
|
3778
3779
|
return t > 0 && t < 128 ? e : t >= 128 && t <= 255 ? `/x${t.toString(16)}`.replace("/", "\\") : "";
|
|
3779
|
-
}).join("").trim(),
|
|
3780
|
-
function
|
|
3781
|
-
let i = n ?
|
|
3782
|
-
return t.length === 1 && (a = a.filter((e) => r(e) !== n)), a.find((e) =>
|
|
3780
|
+
}).join("").trim(), ja = (e) => Aa(e.dataset?.valuetext ?? e.textContent ?? ""), Ma = (e, t) => e.trim().toLowerCase().startsWith(t.toLowerCase());
|
|
3781
|
+
function Na(e, t, n, r = Ta) {
|
|
3782
|
+
let i = n ? Da(e, n, r) : -1, a = n ? Tr(e, i) : e;
|
|
3783
|
+
return t.length === 1 && (a = a.filter((e) => r(e) !== n)), a.find((e) => Ma(ja(e), t));
|
|
3783
3784
|
}
|
|
3784
3785
|
//#endregion
|
|
3785
3786
|
//#region ../../node_modules/@zag-js/dom-query/dist/set.mjs
|
|
3786
|
-
function
|
|
3787
|
+
function Pa(e, t) {
|
|
3787
3788
|
if (!e) return Er;
|
|
3788
3789
|
let n = Object.keys(t).reduce((t, n) => (t[n] = e.style.getPropertyValue(n), t), {});
|
|
3789
|
-
return
|
|
3790
|
+
return Fa(n, t) ? Er : (Object.assign(e.style, t), () => {
|
|
3790
3791
|
Object.assign(e.style, n), e.style.length === 0 && e.removeAttribute("style");
|
|
3791
3792
|
});
|
|
3792
3793
|
}
|
|
3793
|
-
function
|
|
3794
|
+
function Fa(e, t) {
|
|
3794
3795
|
return Object.keys(e).every((n) => e[n] === t[n]);
|
|
3795
3796
|
}
|
|
3796
3797
|
//#endregion
|
|
3797
3798
|
//#region ../../node_modules/@zag-js/dom-query/dist/typeahead.mjs
|
|
3798
|
-
function
|
|
3799
|
-
let { state: n, activeId: r, key: i, timeout: a = 350, itemToId: o } = t, s = n.keysSoFar + i, c = s.length > 1 && Array.from(s).every((e) => e === s[0]) ? s[0] : s, l =
|
|
3799
|
+
function Ia(e, t) {
|
|
3800
|
+
let { state: n, activeId: r, key: i, timeout: a = 350, itemToId: o } = t, s = n.keysSoFar + i, c = s.length > 1 && Array.from(s).every((e) => e === s[0]) ? s[0] : s, l = Na(e.slice(), c, r, o);
|
|
3800
3801
|
function u() {
|
|
3801
3802
|
clearTimeout(n.timer), n.timer = -1;
|
|
3802
3803
|
}
|
|
@@ -3807,19 +3808,19 @@ function La(e, t) {
|
|
|
3807
3808
|
}
|
|
3808
3809
|
return d(s), l;
|
|
3809
3810
|
}
|
|
3810
|
-
var
|
|
3811
|
+
var La = /* @__PURE__ */ Object.assign(Ia, {
|
|
3811
3812
|
defaultOptions: {
|
|
3812
3813
|
keysSoFar: "",
|
|
3813
3814
|
timer: -1
|
|
3814
3815
|
},
|
|
3815
|
-
isValidEvent:
|
|
3816
|
+
isValidEvent: Ra
|
|
3816
3817
|
});
|
|
3817
|
-
function
|
|
3818
|
+
function Ra(e) {
|
|
3818
3819
|
return e.key.length === 1 && !e.ctrlKey && !e.metaKey;
|
|
3819
3820
|
}
|
|
3820
3821
|
//#endregion
|
|
3821
3822
|
//#region ../../node_modules/@zag-js/dom-query/dist/wait-for.mjs
|
|
3822
|
-
function
|
|
3823
|
+
function za(e, t, n) {
|
|
3823
3824
|
let { signal: r } = t;
|
|
3824
3825
|
return [new Promise((t, i) => {
|
|
3825
3826
|
let a = setTimeout(() => {
|
|
@@ -3834,9 +3835,9 @@ function Ba(e, t, n) {
|
|
|
3834
3835
|
});
|
|
3835
3836
|
}), () => t.abort()];
|
|
3836
3837
|
}
|
|
3837
|
-
function
|
|
3838
|
-
let { timeout: n, rootNode: r } = t, i =
|
|
3839
|
-
return
|
|
3838
|
+
function Ba(e, t) {
|
|
3839
|
+
let { timeout: n, rootNode: r } = t, i = R(r), a = Gr(r), o = new i.AbortController();
|
|
3840
|
+
return za(new Promise((t) => {
|
|
3840
3841
|
let n = e();
|
|
3841
3842
|
if (n) {
|
|
3842
3843
|
t(n);
|
|
@@ -3854,10 +3855,10 @@ function Va(e, t) {
|
|
|
3854
3855
|
}
|
|
3855
3856
|
//#endregion
|
|
3856
3857
|
//#region ../../node_modules/@zag-js/focus-visible/dist/index.mjs
|
|
3857
|
-
function
|
|
3858
|
+
function Va(e) {
|
|
3858
3859
|
return !(e.metaKey || !di() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
3859
3860
|
}
|
|
3860
|
-
var
|
|
3861
|
+
var Ha = /* @__PURE__ */ new Set([
|
|
3861
3862
|
"checkbox",
|
|
3862
3863
|
"radio",
|
|
3863
3864
|
"range",
|
|
@@ -3868,38 +3869,38 @@ var Ua = /* @__PURE__ */ new Set([
|
|
|
3868
3869
|
"submit",
|
|
3869
3870
|
"reset"
|
|
3870
3871
|
]);
|
|
3871
|
-
function
|
|
3872
|
-
let r = n ?
|
|
3873
|
-
return e = e || o instanceof a.HTMLInputElement && !
|
|
3872
|
+
function Ua(e, t, n) {
|
|
3873
|
+
let r = n ? z(n) : null, i = Gr(r), a = R(r), o = qr(i);
|
|
3874
|
+
return e = e || o instanceof a.HTMLInputElement && !Ha.has(o?.type) || o instanceof a.HTMLTextAreaElement || o instanceof a.HTMLElement && o.isContentEditable, !(e && t === "keyboard" && n instanceof a.KeyboardEvent && !Reflect.has(Ya, n.key));
|
|
3874
3875
|
}
|
|
3875
|
-
var
|
|
3876
|
+
var Wa = null, Ga = /* @__PURE__ */ new Set(), Ka = /* @__PURE__ */ new Map(), qa = !1, Ja = !1, Ya = {
|
|
3876
3877
|
Tab: !0,
|
|
3877
3878
|
Escape: !0
|
|
3878
3879
|
};
|
|
3879
|
-
function
|
|
3880
|
-
for (let n of
|
|
3880
|
+
function Xa(e, t) {
|
|
3881
|
+
for (let n of Ga) n(e, t);
|
|
3881
3882
|
}
|
|
3882
|
-
function
|
|
3883
|
-
|
|
3883
|
+
function Za(e) {
|
|
3884
|
+
qa = !0, Va(e) && (Wa = "keyboard", Xa("keyboard", e));
|
|
3884
3885
|
}
|
|
3885
|
-
function
|
|
3886
|
-
|
|
3886
|
+
function Qa(e) {
|
|
3887
|
+
Wa = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (qa = !0, Xa("pointer", e));
|
|
3887
3888
|
}
|
|
3888
3889
|
function $a(e) {
|
|
3889
|
-
bi(e) && (
|
|
3890
|
+
bi(e) && (qa = !0, Wa = "virtual");
|
|
3890
3891
|
}
|
|
3891
3892
|
function eo(e) {
|
|
3892
|
-
let t =
|
|
3893
|
-
t ===
|
|
3893
|
+
let t = z(e);
|
|
3894
|
+
t === R(t) || t === Gr(t) || !e.isTrusted || (!qa && !Ja && (Wa = "virtual", Xa("virtual", e)), qa = !1, Ja = !1);
|
|
3894
3895
|
}
|
|
3895
3896
|
function to() {
|
|
3896
|
-
|
|
3897
|
+
qa = !1, Ja = !0;
|
|
3897
3898
|
}
|
|
3898
3899
|
function no(e) {
|
|
3899
|
-
if (typeof window > "u" ||
|
|
3900
|
-
let t =
|
|
3900
|
+
if (typeof window > "u" || Ka.get(R(e))) return;
|
|
3901
|
+
let t = R(e), n = Gr(e), r = t.HTMLElement.prototype.focus;
|
|
3901
3902
|
function i() {
|
|
3902
|
-
|
|
3903
|
+
qa = !0, r.apply(this, arguments);
|
|
3903
3904
|
}
|
|
3904
3905
|
try {
|
|
3905
3906
|
Object.defineProperty(t.HTMLElement.prototype, "focus", {
|
|
@@ -3907,14 +3908,14 @@ function no(e) {
|
|
|
3907
3908
|
value: i
|
|
3908
3909
|
});
|
|
3909
3910
|
} catch {}
|
|
3910
|
-
n.addEventListener("keydown",
|
|
3911
|
+
n.addEventListener("keydown", Za, !0), n.addEventListener("keyup", Za, !0), n.addEventListener("click", $a, !0), t.addEventListener("focus", eo, !0), t.addEventListener("blur", to, !1), t.PointerEvent === void 0 ? (n.addEventListener("mousedown", Qa, !0), n.addEventListener("mousemove", Qa, !0), n.addEventListener("mouseup", Qa, !0)) : (n.addEventListener("pointerdown", Qa, !0), n.addEventListener("pointermove", Qa, !0), n.addEventListener("pointerup", Qa, !0)), t.addEventListener("beforeunload", () => {
|
|
3911
3912
|
ro(e);
|
|
3912
|
-
}, { once: !0 }),
|
|
3913
|
+
}, { once: !0 }), Ka.set(t, { focus: r });
|
|
3913
3914
|
}
|
|
3914
3915
|
var ro = (e, t) => {
|
|
3915
|
-
let n =
|
|
3916
|
+
let n = R(e), r = Gr(e);
|
|
3916
3917
|
t && r.removeEventListener("DOMContentLoaded", t);
|
|
3917
|
-
let i =
|
|
3918
|
+
let i = Ka.get(n);
|
|
3918
3919
|
if (i) {
|
|
3919
3920
|
try {
|
|
3920
3921
|
Object.defineProperty(n.HTMLElement.prototype, "focus", {
|
|
@@ -3922,32 +3923,32 @@ var ro = (e, t) => {
|
|
|
3922
3923
|
value: i.focus
|
|
3923
3924
|
});
|
|
3924
3925
|
} catch {}
|
|
3925
|
-
r.removeEventListener("keydown",
|
|
3926
|
+
r.removeEventListener("keydown", Za, !0), r.removeEventListener("keyup", Za, !0), r.removeEventListener("click", $a, !0), n.removeEventListener("focus", eo, !0), n.removeEventListener("blur", to, !1), n.PointerEvent === void 0 ? (r.removeEventListener("mousedown", Qa, !0), r.removeEventListener("mousemove", Qa, !0), r.removeEventListener("mouseup", Qa, !0)) : (r.removeEventListener("pointerdown", Qa, !0), r.removeEventListener("pointermove", Qa, !0), r.removeEventListener("pointerup", Qa, !0)), Ka.delete(n);
|
|
3926
3927
|
}
|
|
3927
3928
|
};
|
|
3928
3929
|
function io() {
|
|
3929
|
-
return
|
|
3930
|
+
return Wa;
|
|
3930
3931
|
}
|
|
3931
3932
|
function ao(e) {
|
|
3932
|
-
|
|
3933
|
+
Wa = e, Xa(e, null);
|
|
3933
3934
|
}
|
|
3934
3935
|
function oo() {
|
|
3935
|
-
return
|
|
3936
|
+
return Wa === "keyboard" || Wa === "virtual";
|
|
3936
3937
|
}
|
|
3937
3938
|
function so(e = {}) {
|
|
3938
3939
|
let { isTextInput: t, autoFocus: n, onChange: r, root: i } = e;
|
|
3939
3940
|
no(i), r?.({
|
|
3940
3941
|
isFocusVisible: n || oo(),
|
|
3941
|
-
modality:
|
|
3942
|
+
modality: Wa
|
|
3942
3943
|
});
|
|
3943
3944
|
let a = (e, n) => {
|
|
3944
|
-
|
|
3945
|
+
Ua(!!t, e, n) && r?.({
|
|
3945
3946
|
isFocusVisible: oo(),
|
|
3946
3947
|
modality: e
|
|
3947
3948
|
});
|
|
3948
3949
|
};
|
|
3949
|
-
return
|
|
3950
|
-
|
|
3950
|
+
return Ga.add(a), () => {
|
|
3951
|
+
Ga.delete(a);
|
|
3951
3952
|
};
|
|
3952
3953
|
}
|
|
3953
3954
|
//#endregion
|
|
@@ -3957,7 +3958,7 @@ var co = [
|
|
|
3957
3958
|
"right",
|
|
3958
3959
|
"bottom",
|
|
3959
3960
|
"left"
|
|
3960
|
-
], lo = Math.min,
|
|
3961
|
+
], lo = Math.min, H = Math.max, uo = Math.round, fo = Math.floor, po = (e) => ({
|
|
3961
3962
|
x: e,
|
|
3962
3963
|
y: e
|
|
3963
3964
|
}), mo = {
|
|
@@ -3967,7 +3968,7 @@ var co = [
|
|
|
3967
3968
|
top: "bottom"
|
|
3968
3969
|
};
|
|
3969
3970
|
function ho(e, t, n) {
|
|
3970
|
-
return
|
|
3971
|
+
return H(e, lo(t, n));
|
|
3971
3972
|
}
|
|
3972
3973
|
function go(e, t) {
|
|
3973
3974
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4180,15 +4181,15 @@ var Ro = 50, zo = async (e, t, n) => {
|
|
|
4180
4181
|
y: r
|
|
4181
4182
|
}, p = So(i), m = bo(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
4182
4183
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
4183
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = lo(d[_], T), D = lo(d[v], T), O = E, ee = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = ho(O, k, ee),
|
|
4184
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = lo(d[_], T), D = lo(d[v], T), O = E, ee = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = ho(O, k, ee), j = !c.arrow && vo(i) != null && k !== A && a.reference[m] / 2 - (k < O ? E : D) - h[m] / 2 < 0, te = j ? k < O ? k - O : k - ee : 0;
|
|
4184
4185
|
return {
|
|
4185
|
-
[p]: f[p] +
|
|
4186
|
+
[p]: f[p] + te,
|
|
4186
4187
|
data: {
|
|
4187
4188
|
[p]: A,
|
|
4188
|
-
centerOffset: k - A -
|
|
4189
|
-
...
|
|
4189
|
+
centerOffset: k - A - te,
|
|
4190
|
+
...j && { alignmentOffset: te }
|
|
4190
4191
|
},
|
|
4191
|
-
reset:
|
|
4192
|
+
reset: j
|
|
4192
4193
|
};
|
|
4193
4194
|
}
|
|
4194
4195
|
}), Vo = function(e) {
|
|
@@ -4399,8 +4400,8 @@ var qo = function(e) {
|
|
|
4399
4400
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
4400
4401
|
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = lo(h - u[g], v), x = lo(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
4401
4402
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
4402
|
-
let e =
|
|
4403
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
4403
|
+
let e = H(u.left, 0), t = H(u.right, 0), n = H(u.top, 0), r = H(u.bottom, 0);
|
|
4404
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : H(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : H(u.top, u.bottom));
|
|
4404
4405
|
}
|
|
4405
4406
|
await c({
|
|
4406
4407
|
...t,
|
|
@@ -4420,7 +4421,7 @@ function Zo() {
|
|
|
4420
4421
|
function Qo(e) {
|
|
4421
4422
|
return es(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4422
4423
|
}
|
|
4423
|
-
function
|
|
4424
|
+
function U(e) {
|
|
4424
4425
|
var t;
|
|
4425
4426
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4426
4427
|
}
|
|
@@ -4428,16 +4429,16 @@ function $o(e) {
|
|
|
4428
4429
|
return ((es(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
4429
4430
|
}
|
|
4430
4431
|
function es(e) {
|
|
4431
|
-
return Zo() ? e instanceof Node || e instanceof
|
|
4432
|
+
return Zo() ? e instanceof Node || e instanceof U(e).Node : !1;
|
|
4432
4433
|
}
|
|
4433
4434
|
function ts(e) {
|
|
4434
|
-
return Zo() ? e instanceof Element || e instanceof
|
|
4435
|
+
return Zo() ? e instanceof Element || e instanceof U(e).Element : !1;
|
|
4435
4436
|
}
|
|
4436
4437
|
function ns(e) {
|
|
4437
|
-
return Zo() ? e instanceof HTMLElement || e instanceof
|
|
4438
|
+
return Zo() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
|
|
4438
4439
|
}
|
|
4439
4440
|
function rs(e) {
|
|
4440
|
-
return !Zo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
4441
|
+
return !Zo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
|
|
4441
4442
|
}
|
|
4442
4443
|
function is(e) {
|
|
4443
4444
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = hs(e);
|
|
@@ -4477,7 +4478,7 @@ function ms(e) {
|
|
|
4477
4478
|
return /^(html|body|#document)$/.test(Qo(e));
|
|
4478
4479
|
}
|
|
4479
4480
|
function hs(e) {
|
|
4480
|
-
return
|
|
4481
|
+
return U(e).getComputedStyle(e);
|
|
4481
4482
|
}
|
|
4482
4483
|
function gs(e) {
|
|
4483
4484
|
return ts(e) ? {
|
|
@@ -4499,7 +4500,7 @@ function vs(e) {
|
|
|
4499
4500
|
}
|
|
4500
4501
|
function ys(e, t, n) {
|
|
4501
4502
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
4502
|
-
let r = vs(e), i = r === e.ownerDocument?.body, a =
|
|
4503
|
+
let r = vs(e), i = r === e.ownerDocument?.body, a = U(r);
|
|
4503
4504
|
if (i) {
|
|
4504
4505
|
let e = bs(a);
|
|
4505
4506
|
return t.concat(a, a.visualViewport || [], is(r) ? r : [], e && n ? ys(e) : []);
|
|
@@ -4532,14 +4533,14 @@ function Cs(e) {
|
|
|
4532
4533
|
}
|
|
4533
4534
|
var ws = /*#__PURE__*/ po(0);
|
|
4534
4535
|
function Ts(e) {
|
|
4535
|
-
let t =
|
|
4536
|
+
let t = U(e);
|
|
4536
4537
|
return !ps() || !t.visualViewport ? ws : {
|
|
4537
4538
|
x: t.visualViewport.offsetLeft,
|
|
4538
4539
|
y: t.visualViewport.offsetTop
|
|
4539
4540
|
};
|
|
4540
4541
|
}
|
|
4541
4542
|
function Es(e, t, n) {
|
|
4542
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
4543
|
+
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
4543
4544
|
}
|
|
4544
4545
|
function Ds(e, t, n, r) {
|
|
4545
4546
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -4547,10 +4548,10 @@ function Ds(e, t, n, r) {
|
|
|
4547
4548
|
t && (r ? ts(r) && (o = Cs(r)) : o = Cs(e));
|
|
4548
4549
|
let s = Es(a, n, r) ? Ts(a) : po(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
4549
4550
|
if (a) {
|
|
4550
|
-
let e =
|
|
4551
|
+
let e = U(a), t = r && ts(r) ? U(r) : r, n = e, i = bs(n);
|
|
4551
4552
|
for (; i && r && t !== n;) {
|
|
4552
4553
|
let e = Cs(i), t = i.getBoundingClientRect(), r = hs(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
4553
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
4554
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = bs(n);
|
|
4554
4555
|
}
|
|
4555
4556
|
}
|
|
4556
4557
|
return Fo({
|
|
@@ -4594,8 +4595,8 @@ function js(e) {
|
|
|
4594
4595
|
return Array.from(e.getClientRects());
|
|
4595
4596
|
}
|
|
4596
4597
|
function Ms(e) {
|
|
4597
|
-
let t = $o(e), n = gs(e), r = e.ownerDocument.body, i =
|
|
4598
|
-
return hs(r).direction === "rtl" && (o +=
|
|
4598
|
+
let t = $o(e), n = gs(e), r = e.ownerDocument.body, i = H(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = H(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Os(e), s = -n.scrollTop;
|
|
4599
|
+
return hs(r).direction === "rtl" && (o += H(t.clientWidth, r.clientWidth) - i), {
|
|
4599
4600
|
width: i,
|
|
4600
4601
|
height: a,
|
|
4601
4602
|
x: o,
|
|
@@ -4604,7 +4605,7 @@ function Ms(e) {
|
|
|
4604
4605
|
}
|
|
4605
4606
|
var Ns = 25;
|
|
4606
4607
|
function Ps(e, t) {
|
|
4607
|
-
let n =
|
|
4608
|
+
let n = U(e), r = $o(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
4608
4609
|
if (i) {
|
|
4609
4610
|
a = i.width, o = i.height;
|
|
4610
4611
|
let e = ps();
|
|
@@ -4665,7 +4666,7 @@ function zs(e) {
|
|
|
4665
4666
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? os(t) ? [] : Rs(t, this._c) : [].concat(n), r], o = Is(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4666
4667
|
for (let e = 1; e < a.length; e++) {
|
|
4667
4668
|
let n = Is(t, a[e], i);
|
|
4668
|
-
s =
|
|
4669
|
+
s = H(n.top, s), c = lo(n.right, c), l = lo(n.bottom, l), u = H(n.left, u);
|
|
4669
4670
|
}
|
|
4670
4671
|
return {
|
|
4671
4672
|
width: c - u,
|
|
@@ -4712,7 +4713,7 @@ function Us(e, t) {
|
|
|
4712
4713
|
return $o(e) === n && (n = n.ownerDocument.body), n;
|
|
4713
4714
|
}
|
|
4714
4715
|
function Ws(e, t) {
|
|
4715
|
-
let n =
|
|
4716
|
+
let n = U(e);
|
|
4716
4717
|
if (os(e)) return n;
|
|
4717
4718
|
if (!ns(e)) {
|
|
4718
4719
|
let t = _s(e);
|
|
@@ -4768,7 +4769,7 @@ function Ys(e, t) {
|
|
|
4768
4769
|
if (s || t(), !f || !p) return;
|
|
4769
4770
|
let m = fo(d), h = fo(i.clientWidth - (u + f)), g = fo(i.clientHeight - (d + p)), _ = fo(u), v = {
|
|
4770
4771
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
4771
|
-
threshold:
|
|
4772
|
+
threshold: H(0, lo(1, c)) || 1
|
|
4772
4773
|
}, y = !0;
|
|
4773
4774
|
function b(t) {
|
|
4774
4775
|
let n = t[0].intersectionRatio;
|
|
@@ -5017,7 +5018,7 @@ function dl(e) {
|
|
|
5017
5018
|
}
|
|
5018
5019
|
function fl(e, t) {
|
|
5019
5020
|
return {
|
|
5020
|
-
contextElement:
|
|
5021
|
+
contextElement: L(e) ? e : e?.contextElement,
|
|
5021
5022
|
getBoundingClientRect: () => {
|
|
5022
5023
|
let n = e, r = t?.(n);
|
|
5023
5024
|
return r || !n ? dl(r) : n.getBoundingClientRect();
|
|
@@ -5197,7 +5198,7 @@ function Pl(e, t) {
|
|
|
5197
5198
|
};
|
|
5198
5199
|
}
|
|
5199
5200
|
function Fl(e) {
|
|
5200
|
-
return e == null ? null :
|
|
5201
|
+
return e == null ? null : L(e) ? e : typeof e == "object" && e && "contextElement" in e && e.contextElement ? e.contextElement : e;
|
|
5201
5202
|
}
|
|
5202
5203
|
function Il(e, t, n = {}) {
|
|
5203
5204
|
let r = () => (typeof t == "function" ? t() : t) ?? null, i = () => {
|
|
@@ -5245,7 +5246,7 @@ function Il(e, t, n = {}) {
|
|
|
5245
5246
|
strategy: p
|
|
5246
5247
|
});
|
|
5247
5248
|
m?.(n);
|
|
5248
|
-
let i =
|
|
5249
|
+
let i = R(e), l = Sl(i, n.x), u = Sl(i, n.y);
|
|
5249
5250
|
if (Cl(g, l) || (e.style.setProperty("--x", `${l}px`), g = l), Cl(_, u) || (e.style.setProperty("--y", `${u}px`), _ = u), o.hideWhenDetached && (n.middlewareData.hide?.referenceHidden ? (e.style.setProperty("visibility", "hidden"), e.style.setProperty("pointer-events", "none")) : (e.style.removeProperty("visibility"), e.style.removeProperty("pointer-events"))), !v) {
|
|
5250
5251
|
let t = e.firstElementChild;
|
|
5251
5252
|
t && (e.style.setProperty("--z-index", Zr(t).zIndex), v = !0);
|
|
@@ -5262,7 +5263,7 @@ function Il(e, t, n = {}) {
|
|
|
5262
5263
|
};
|
|
5263
5264
|
}
|
|
5264
5265
|
function Ll(e, t, n = {}) {
|
|
5265
|
-
let { defer: r, ...i } = n, a = r ?
|
|
5266
|
+
let { defer: r, ...i } = n, a = r ? V : (e) => e(), o = [];
|
|
5266
5267
|
return o.push(a(() => {
|
|
5267
5268
|
o.push(Il(e, t, i));
|
|
5268
5269
|
})), () => {
|
|
@@ -5317,7 +5318,7 @@ function zl(e = {}) {
|
|
|
5317
5318
|
var Bl = (e, t) => {
|
|
5318
5319
|
let n = e.ids?.trigger;
|
|
5319
5320
|
return n == null ? t ? `tooltip:${e.id}:trigger:${t}` : `tooltip:${e.id}:trigger` : _c(n) ? n(t) : n;
|
|
5320
|
-
}, Vl = (e) => e.ids?.content ?? `tooltip:${e.id}:content`, Hl = (e) => e.ids?.arrow ?? `tooltip:${e.id}:arrow`, Ul = (e) => e.ids?.positioner ?? `tooltip:${e.id}:popper`, Wl = (e) => e.getById(Ul(e)), Gl = (e) =>
|
|
5321
|
+
}, Vl = (e) => e.ids?.content ?? `tooltip:${e.id}:content`, Hl = (e) => e.ids?.arrow ?? `tooltip:${e.id}:arrow`, Ul = (e) => e.ids?.positioner ?? `tooltip:${e.id}:popper`, Wl = (e) => e.getById(Ul(e)), Gl = (e) => wa(e.getDoc(), `[data-scope="tooltip"][data-part="trigger"][data-ownedby="${e.id}"]`), Kl = (e, t) => t == null ? Gl(e)[0] : e.getById(Bl(e, t)), W = al({
|
|
5321
5322
|
id: null,
|
|
5322
5323
|
prevId: null,
|
|
5323
5324
|
instant: !1
|
|
@@ -5354,9 +5355,9 @@ function ql(e, t) {
|
|
|
5354
5355
|
id: s,
|
|
5355
5356
|
"data-ownedby": a.id,
|
|
5356
5357
|
"data-value": n,
|
|
5357
|
-
"data-current":
|
|
5358
|
+
"data-current": I(r),
|
|
5358
5359
|
dir: o("dir"),
|
|
5359
|
-
"data-expanded":
|
|
5360
|
+
"data-expanded": I(u),
|
|
5360
5361
|
"data-state": u ? "open" : "closed",
|
|
5361
5362
|
"aria-describedby": u ? f : void 0,
|
|
5362
5363
|
onClick(e) {
|
|
@@ -5376,7 +5377,7 @@ function ql(e, t) {
|
|
|
5376
5377
|
});
|
|
5377
5378
|
},
|
|
5378
5379
|
onBlur(e) {
|
|
5379
|
-
e.defaultPrevented || p || c ===
|
|
5380
|
+
e.defaultPrevented || p || c === W.get("id") && ((e.relatedTarget ?? a.getDoc().activeElement)?.closest(`[data-ownedby="${a.id}"]`) ?? i({
|
|
5380
5381
|
type: "close",
|
|
5381
5382
|
src: "trigger.blur",
|
|
5382
5383
|
value: n,
|
|
@@ -5384,7 +5385,7 @@ function ql(e, t) {
|
|
|
5384
5385
|
}));
|
|
5385
5386
|
},
|
|
5386
5387
|
onPointerDown(e) {
|
|
5387
|
-
e.defaultPrevented || p || xi(e) && o("closeOnPointerDown") && c ===
|
|
5388
|
+
e.defaultPrevented || p || xi(e) && o("closeOnPointerDown") && c === W.get("id") && i({
|
|
5388
5389
|
type: "close",
|
|
5389
5390
|
src: "trigger.pointerdown",
|
|
5390
5391
|
value: n,
|
|
@@ -5437,13 +5438,13 @@ function ql(e, t) {
|
|
|
5437
5438
|
});
|
|
5438
5439
|
},
|
|
5439
5440
|
getContentProps() {
|
|
5440
|
-
let e =
|
|
5441
|
+
let e = W.get("id") === c, n = W.get("prevId") === c, a = W.get("instant") && (u && e || n);
|
|
5441
5442
|
return t.element({
|
|
5442
5443
|
...xr.content.attrs,
|
|
5443
5444
|
dir: o("dir"),
|
|
5444
5445
|
hidden: !u,
|
|
5445
5446
|
"data-state": u ? "open" : "closed",
|
|
5446
|
-
"data-instant":
|
|
5447
|
+
"data-instant": I(a),
|
|
5447
5448
|
role: l ? void 0 : "tooltip",
|
|
5448
5449
|
id: l ? void 0 : f,
|
|
5449
5450
|
"data-placement": r.get("currentPlacement"),
|
|
@@ -5471,7 +5472,7 @@ var Jl = (...e) => e.map((e) => e?.trim?.()).filter(Boolean).join(" "), Yl = /((
|
|
|
5471
5472
|
} else gc(t) && (t = Xl(t));
|
|
5472
5473
|
return Object.assign({}, e ?? {}, t ?? {});
|
|
5473
5474
|
};
|
|
5474
|
-
function
|
|
5475
|
+
function G(...e) {
|
|
5475
5476
|
let t = {};
|
|
5476
5477
|
for (let n of e) {
|
|
5477
5478
|
if (!n) continue;
|
|
@@ -5883,23 +5884,23 @@ var { and: Eu, not: Du } = xu(), Ou = Su({
|
|
|
5883
5884
|
},
|
|
5884
5885
|
implementations: {
|
|
5885
5886
|
guards: {
|
|
5886
|
-
noVisibleTooltip: () =>
|
|
5887
|
-
isVisible: ({ prop: e }) => e("id") ===
|
|
5887
|
+
noVisibleTooltip: () => W.get("id") === null,
|
|
5888
|
+
isVisible: ({ prop: e }) => e("id") === W.get("id"),
|
|
5888
5889
|
isInteractive: ({ prop: e }) => !!e("interactive"),
|
|
5889
5890
|
hasPointerMoveOpened: ({ context: e }) => !!e.get("hasPointerMoveOpened"),
|
|
5890
5891
|
isOpenControlled: ({ prop: e }) => e("open") !== void 0
|
|
5891
5892
|
},
|
|
5892
5893
|
actions: {
|
|
5893
5894
|
setGlobalId: ({ prop: e }) => {
|
|
5894
|
-
let t =
|
|
5895
|
-
|
|
5895
|
+
let t = W.get("id"), n = t !== null && t !== e("id");
|
|
5896
|
+
W.update({
|
|
5896
5897
|
id: e("id"),
|
|
5897
5898
|
prevId: n ? t : null,
|
|
5898
5899
|
instant: n
|
|
5899
5900
|
});
|
|
5900
5901
|
},
|
|
5901
5902
|
clearGlobalId: ({ prop: e }) => {
|
|
5902
|
-
e("id") ===
|
|
5903
|
+
e("id") === W.get("id") && W.update({
|
|
5903
5904
|
id: null,
|
|
5904
5905
|
prevId: null,
|
|
5905
5906
|
instant: !1
|
|
@@ -5969,7 +5970,7 @@ var { and: Eu, not: Du } = xu(), Ou = Su({
|
|
|
5969
5970
|
e.set("currentPlacement", t.placement);
|
|
5970
5971
|
}
|
|
5971
5972
|
})),
|
|
5972
|
-
trackPointerlockChange: ({ send: e, scope: t }) =>
|
|
5973
|
+
trackPointerlockChange: ({ send: e, scope: t }) => B(t.getDoc(), "pointerlockchange", () => e({
|
|
5973
5974
|
type: "close",
|
|
5974
5975
|
src: "pointerlock:change"
|
|
5975
5976
|
}), !1),
|
|
@@ -5977,7 +5978,7 @@ var { and: Eu, not: Du } = xu(), Ou = Su({
|
|
|
5977
5978
|
if (!t("closeOnScroll")) return;
|
|
5978
5979
|
let i = Kl(n, r.get("triggerValue"));
|
|
5979
5980
|
if (!i) return;
|
|
5980
|
-
let a =
|
|
5981
|
+
let a = da(i).map((t) => B(t, "scroll", () => {
|
|
5981
5982
|
e({
|
|
5982
5983
|
type: "close",
|
|
5983
5984
|
src: "scroll"
|
|
@@ -5993,15 +5994,15 @@ var { and: Eu, not: Du } = xu(), Ou = Su({
|
|
|
5993
5994
|
trackStore: ({ prop: e, send: t }) => {
|
|
5994
5995
|
let n;
|
|
5995
5996
|
return queueMicrotask(() => {
|
|
5996
|
-
n =
|
|
5997
|
-
|
|
5997
|
+
n = W.subscribe(() => {
|
|
5998
|
+
W.get("id") !== e("id") && t({
|
|
5998
5999
|
type: "close",
|
|
5999
6000
|
src: "id.change"
|
|
6000
6001
|
});
|
|
6001
6002
|
});
|
|
6002
6003
|
}), () => n?.();
|
|
6003
6004
|
},
|
|
6004
|
-
trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ?
|
|
6005
|
+
trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? B(document, "keydown", (t) => {
|
|
6005
6006
|
_i(t) || t.key === "Escape" && (t.stopPropagation(), e({
|
|
6006
6007
|
type: "close",
|
|
6007
6008
|
src: "keydown.escape"
|
|
@@ -6040,26 +6041,26 @@ function ku(e) {
|
|
|
6040
6041
|
function Au(e, t) {
|
|
6041
6042
|
return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`;
|
|
6042
6043
|
}
|
|
6043
|
-
function
|
|
6044
|
-
let { name: t, strict:
|
|
6045
|
-
|
|
6044
|
+
function K(e = {}) {
|
|
6045
|
+
let { name: t, strict: n = !0, hookName: i = "useContext", providerName: a = "Provider", errorMessage: o, defaultValue: s } = e, c = r(s);
|
|
6046
|
+
c.displayName = t;
|
|
6046
6047
|
function u() {
|
|
6047
|
-
let e = c
|
|
6048
|
-
if (!e &&
|
|
6048
|
+
let e = l(c);
|
|
6049
|
+
if (!e && n) {
|
|
6049
6050
|
let e = Error(o ?? Au(i, a));
|
|
6050
6051
|
throw e.name = "ContextError", yc(Error, "captureStackTrace") && _c(Error.captureStackTrace) && Error.captureStackTrace(e, u), e;
|
|
6051
6052
|
}
|
|
6052
6053
|
return e;
|
|
6053
6054
|
}
|
|
6054
6055
|
return [
|
|
6055
|
-
|
|
6056
|
+
c.Provider,
|
|
6056
6057
|
u,
|
|
6057
|
-
|
|
6058
|
+
c
|
|
6058
6059
|
];
|
|
6059
6060
|
}
|
|
6060
6061
|
//#endregion
|
|
6061
6062
|
//#region ../../node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js
|
|
6062
|
-
var [ju, Mu] =
|
|
6063
|
+
var [ju, Mu] = K({
|
|
6063
6064
|
name: "TooltipContext",
|
|
6064
6065
|
hookName: "useTooltipContext",
|
|
6065
6066
|
providerName: "<TooltipProvider />"
|
|
@@ -6084,22 +6085,22 @@ function Pu(e) {
|
|
|
6084
6085
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6085
6086
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6086
6087
|
}
|
|
6087
|
-
var Fu = (
|
|
6088
|
-
let
|
|
6089
|
-
let { asChild: s, children: c, ...l } =
|
|
6090
|
-
if (!s) return
|
|
6088
|
+
var Fu = (e) => {
|
|
6089
|
+
let r = s(a((r, a) => {
|
|
6090
|
+
let { asChild: s, children: c, ...l } = r;
|
|
6091
|
+
if (!s) return i(e, {
|
|
6091
6092
|
...l,
|
|
6092
|
-
ref:
|
|
6093
|
+
ref: a
|
|
6093
6094
|
}, c);
|
|
6094
|
-
if (!
|
|
6095
|
-
let u =
|
|
6096
|
-
return
|
|
6097
|
-
...
|
|
6098
|
-
ref:
|
|
6095
|
+
if (!o(c)) return null;
|
|
6096
|
+
let u = t.only(c), d = Pu(u);
|
|
6097
|
+
return n(u, {
|
|
6098
|
+
...G(l, u.props),
|
|
6099
|
+
ref: a ? Nu(a, d) : d
|
|
6099
6100
|
});
|
|
6100
6101
|
}));
|
|
6101
|
-
return
|
|
6102
|
-
},
|
|
6102
|
+
return r.displayName = e.displayName || e.name, r;
|
|
6103
|
+
}, q = (() => {
|
|
6103
6104
|
let e = /* @__PURE__ */ new Map();
|
|
6104
6105
|
return new Proxy(Fu, {
|
|
6105
6106
|
apply(e, t, n) {
|
|
@@ -6110,13 +6111,13 @@ var Fu = (n) => {
|
|
|
6110
6111
|
return e.has(r) || e.set(r, Fu(r)), e.get(r);
|
|
6111
6112
|
}
|
|
6112
6113
|
});
|
|
6113
|
-
})(), Iu = globalThis.document === void 0 ?
|
|
6114
|
+
})(), Iu = globalThis.document === void 0 ? u : f;
|
|
6114
6115
|
//#endregion
|
|
6115
6116
|
//#region ../../node_modules/@zag-js/react/dist/bindable.mjs
|
|
6116
6117
|
function Lu(e) {
|
|
6117
|
-
let t = e().value ?? e().defaultValue, n = e().isEqual ?? Object.is, [r] =
|
|
6118
|
+
let t = e().value ?? e().defaultValue, n = e().isEqual ?? Object.is, [r] = h(t), [i, a] = h(r), o = e().value !== void 0, s = m(i);
|
|
6118
6119
|
s.current = o ? e().value : i;
|
|
6119
|
-
let c =
|
|
6120
|
+
let c = m(s.current);
|
|
6120
6121
|
Iu(() => {
|
|
6121
6122
|
c.current = s.current;
|
|
6122
6123
|
}, [i, e().value]);
|
|
@@ -6135,7 +6136,7 @@ function Lu(e) {
|
|
|
6135
6136
|
ref: s,
|
|
6136
6137
|
get: u,
|
|
6137
6138
|
set(t) {
|
|
6138
|
-
(e().sync ?
|
|
6139
|
+
(e().sync ? y : Oc)(() => l(t));
|
|
6139
6140
|
},
|
|
6140
6141
|
invoke(t, n) {
|
|
6141
6142
|
e().onChange?.(t, n);
|
|
@@ -6146,9 +6147,9 @@ function Lu(e) {
|
|
|
6146
6147
|
};
|
|
6147
6148
|
}
|
|
6148
6149
|
Lu.cleanup = (e) => {
|
|
6149
|
-
|
|
6150
|
+
u(() => e, []);
|
|
6150
6151
|
}, Lu.ref = (e) => {
|
|
6151
|
-
let t =
|
|
6152
|
+
let t = m(e);
|
|
6152
6153
|
return {
|
|
6153
6154
|
get: () => t.current,
|
|
6154
6155
|
set: (e) => {
|
|
@@ -6159,7 +6160,7 @@ Lu.cleanup = (e) => {
|
|
|
6159
6160
|
//#endregion
|
|
6160
6161
|
//#region ../../node_modules/@zag-js/react/dist/refs.mjs
|
|
6161
6162
|
function Ru(e) {
|
|
6162
|
-
let t =
|
|
6163
|
+
let t = m(e);
|
|
6163
6164
|
return {
|
|
6164
6165
|
get(e) {
|
|
6165
6166
|
return t.current[e];
|
|
@@ -6172,18 +6173,18 @@ function Ru(e) {
|
|
|
6172
6173
|
//#endregion
|
|
6173
6174
|
//#region ../../node_modules/@zag-js/react/dist/track.mjs
|
|
6174
6175
|
var zu = (e, t) => {
|
|
6175
|
-
let n =
|
|
6176
|
-
|
|
6176
|
+
let n = m(!1), r = m(!1);
|
|
6177
|
+
u(() => {
|
|
6177
6178
|
if (n.current && r.current) return t();
|
|
6178
6179
|
r.current = !0;
|
|
6179
|
-
}, [...(e ?? []).map((e) => typeof e == "function" ? e() : e)]),
|
|
6180
|
+
}, [...(e ?? []).map((e) => typeof e == "function" ? e() : e)]), u(() => (n.current = !0, () => {
|
|
6180
6181
|
n.current = !1;
|
|
6181
6182
|
}), []);
|
|
6182
6183
|
};
|
|
6183
6184
|
//#endregion
|
|
6184
6185
|
//#region ../../node_modules/@zag-js/react/dist/machine.mjs
|
|
6185
6186
|
function Bu(e, t = {}) {
|
|
6186
|
-
let n =
|
|
6187
|
+
let n = p(() => {
|
|
6187
6188
|
let { id: e, ids: n, getRootNode: r } = t;
|
|
6188
6189
|
return Tu({
|
|
6189
6190
|
id: e,
|
|
@@ -6210,7 +6211,7 @@ function Bu(e, t = {}) {
|
|
|
6210
6211
|
return g;
|
|
6211
6212
|
},
|
|
6212
6213
|
getEvent() {
|
|
6213
|
-
return
|
|
6214
|
+
return f();
|
|
6214
6215
|
}
|
|
6215
6216
|
}), o = Vu(a), s = {
|
|
6216
6217
|
get(e) {
|
|
@@ -6226,7 +6227,7 @@ function Bu(e, t = {}) {
|
|
|
6226
6227
|
let t = o.current?.[e].get();
|
|
6227
6228
|
return o.current?.[e].hash(t);
|
|
6228
6229
|
}
|
|
6229
|
-
}, c =
|
|
6230
|
+
}, c = m(/* @__PURE__ */ new Map()), l = m(null), u = m(null), d = m({ type: "" }), f = () => ({
|
|
6230
6231
|
...d.current,
|
|
6231
6232
|
current() {
|
|
6232
6233
|
return d.current;
|
|
@@ -6248,10 +6249,10 @@ function Bu(e, t = {}) {
|
|
|
6248
6249
|
}) ?? {}), _ = () => ({
|
|
6249
6250
|
state: h(),
|
|
6250
6251
|
context: s,
|
|
6251
|
-
event:
|
|
6252
|
+
event: f(),
|
|
6252
6253
|
prop: i,
|
|
6253
6254
|
send: O,
|
|
6254
|
-
action:
|
|
6255
|
+
action: v,
|
|
6255
6256
|
guard: b,
|
|
6256
6257
|
track: zu,
|
|
6257
6258
|
refs: g,
|
|
@@ -6259,7 +6260,7 @@ function Bu(e, t = {}) {
|
|
|
6259
6260
|
flush: Uu,
|
|
6260
6261
|
scope: n,
|
|
6261
6262
|
choose: S
|
|
6262
|
-
}),
|
|
6263
|
+
}), v = (t) => {
|
|
6263
6264
|
let n = _c(t) ? t(_()) : t;
|
|
6264
6265
|
if (!n) return;
|
|
6265
6266
|
let r = n.map((t) => {
|
|
@@ -6287,7 +6288,7 @@ function Bu(e, t = {}) {
|
|
|
6287
6288
|
let r = e.computed[t];
|
|
6288
6289
|
return r({
|
|
6289
6290
|
context: s,
|
|
6290
|
-
event:
|
|
6291
|
+
event: f(),
|
|
6291
6292
|
prop: i,
|
|
6292
6293
|
refs: g,
|
|
6293
6294
|
scope: n,
|
|
@@ -6300,20 +6301,20 @@ function Bu(e, t = {}) {
|
|
|
6300
6301
|
if (r.forEach((e) => {
|
|
6301
6302
|
c.current.get(e.path)?.(), c.current.delete(e.path);
|
|
6302
6303
|
}), r.forEach((e) => {
|
|
6303
|
-
|
|
6304
|
-
}),
|
|
6304
|
+
v(e.state?.exit);
|
|
6305
|
+
}), v(l.current?.actions), i.forEach((e) => {
|
|
6305
6306
|
let t = x(e.state?.effects);
|
|
6306
6307
|
t && c.current.set(e.path, t);
|
|
6307
6308
|
}), n === "__init__") {
|
|
6308
|
-
|
|
6309
|
+
v(e.entry);
|
|
6309
6310
|
let t = x(e.effects);
|
|
6310
6311
|
t && c.current.set(wu, t);
|
|
6311
6312
|
}
|
|
6312
6313
|
i.forEach((e) => {
|
|
6313
|
-
|
|
6314
|
+
v(e.state?.entry);
|
|
6314
6315
|
});
|
|
6315
6316
|
}
|
|
6316
|
-
})), T =
|
|
6317
|
+
})), T = m(void 0), E = m(Cu.NotStarted);
|
|
6317
6318
|
Iu(() => {
|
|
6318
6319
|
queueMicrotask(() => {
|
|
6319
6320
|
let e = E.current === Cu.Started;
|
|
@@ -6325,7 +6326,7 @@ function Bu(e, t = {}) {
|
|
|
6325
6326
|
return () => {
|
|
6326
6327
|
let n = D();
|
|
6327
6328
|
r("unmounting..."), T.current = n, E.current = Cu.Stopped, t.forEach((e) => e?.()), c.current = /* @__PURE__ */ new Map(), l.current = null, queueMicrotask(() => {
|
|
6328
|
-
|
|
6329
|
+
v(e.exit), E.current = Cu.Stopped;
|
|
6329
6330
|
});
|
|
6330
6331
|
};
|
|
6331
6332
|
}, []);
|
|
@@ -6337,7 +6338,7 @@ function Bu(e, t = {}) {
|
|
|
6337
6338
|
if (!o) return;
|
|
6338
6339
|
l.current = o;
|
|
6339
6340
|
let s = gu(e, o.target ?? n, a);
|
|
6340
|
-
r("transition", t.type, o.target || n, `(${o.actions})`), s === n ? o.reenter ? w.invoke(n, n) :
|
|
6341
|
+
r("transition", t.type, o.target || n, `(${o.actions})`), s === n ? o.reenter ? w.invoke(n, n) : v(o.actions ?? []) : y(() => w.set(s));
|
|
6341
6342
|
});
|
|
6342
6343
|
};
|
|
6343
6344
|
return e.watch?.(_()), {
|
|
@@ -6348,12 +6349,12 @@ function Bu(e, t = {}) {
|
|
|
6348
6349
|
scope: n,
|
|
6349
6350
|
refs: g,
|
|
6350
6351
|
computed: C,
|
|
6351
|
-
event:
|
|
6352
|
+
event: f(),
|
|
6352
6353
|
getStatus: () => E.current
|
|
6353
6354
|
};
|
|
6354
6355
|
}
|
|
6355
6356
|
function Vu(e) {
|
|
6356
|
-
let t =
|
|
6357
|
+
let t = m(e);
|
|
6357
6358
|
return t.current = e, t;
|
|
6358
6359
|
}
|
|
6359
6360
|
function Hu(e) {
|
|
@@ -6364,14 +6365,14 @@ function Hu(e) {
|
|
|
6364
6365
|
}
|
|
6365
6366
|
function Uu(e) {
|
|
6366
6367
|
queueMicrotask(() => {
|
|
6367
|
-
|
|
6368
|
+
y(() => e());
|
|
6368
6369
|
});
|
|
6369
6370
|
}
|
|
6370
6371
|
//#endregion
|
|
6371
6372
|
//#region ../../node_modules/@zag-js/react/dist/normalize-props.mjs
|
|
6372
|
-
var Wu = ku((e) => e), Gu =
|
|
6373
|
-
let n =
|
|
6374
|
-
return /* @__PURE__ */
|
|
6373
|
+
var Wu = ku((e) => e), Gu = a((e, t) => {
|
|
6374
|
+
let n = G(Mu().getArrowProps(), e);
|
|
6375
|
+
return /* @__PURE__ */ _(q.div, {
|
|
6375
6376
|
...n,
|
|
6376
6377
|
ref: t
|
|
6377
6378
|
});
|
|
@@ -6379,9 +6380,9 @@ var Wu = ku((e) => e), Gu = i((e, t) => {
|
|
|
6379
6380
|
Gu.displayName = "TooltipArrow";
|
|
6380
6381
|
//#endregion
|
|
6381
6382
|
//#region ../../node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js
|
|
6382
|
-
var Ku =
|
|
6383
|
-
let n =
|
|
6384
|
-
return /* @__PURE__ */
|
|
6383
|
+
var Ku = a((e, t) => {
|
|
6384
|
+
let n = G(Mu().getArrowTipProps(), e);
|
|
6385
|
+
return /* @__PURE__ */ _(q.div, {
|
|
6385
6386
|
...n,
|
|
6386
6387
|
ref: t
|
|
6387
6388
|
});
|
|
@@ -6389,13 +6390,13 @@ var Ku = i((e, t) => {
|
|
|
6389
6390
|
Ku.displayName = "TooltipArrowTip";
|
|
6390
6391
|
//#endregion
|
|
6391
6392
|
//#region ../../node_modules/@ark-ui/react/dist/components/presence/use-presence-context.js
|
|
6392
|
-
var [qu, Ju] =
|
|
6393
|
+
var [qu, Ju] = K({
|
|
6393
6394
|
name: "PresenceContext",
|
|
6394
6395
|
hookName: "usePresenceContext",
|
|
6395
6396
|
providerName: "<PresenceProvider />"
|
|
6396
|
-
}), Yu =
|
|
6397
|
-
let n = Mu(), r = Ju(), i =
|
|
6398
|
-
return r.unmounted ? null : /* @__PURE__ */
|
|
6397
|
+
}), Yu = a((e, t) => {
|
|
6398
|
+
let n = Mu(), r = Ju(), i = G(n.getContentProps(), r.getPresenceProps(), e);
|
|
6399
|
+
return r.unmounted ? null : /* @__PURE__ */ _(q.div, {
|
|
6399
6400
|
...i,
|
|
6400
6401
|
ref: Nu(r.ref, t)
|
|
6401
6402
|
});
|
|
@@ -6403,9 +6404,9 @@ var [qu, Ju] = G({
|
|
|
6403
6404
|
Yu.displayName = "TooltipContent";
|
|
6404
6405
|
//#endregion
|
|
6405
6406
|
//#region ../../node_modules/@ark-ui/react/dist/components/tooltip/tooltip-context.js
|
|
6406
|
-
var Xu = (e) => e.children(Mu()), Zu =
|
|
6407
|
-
let n =
|
|
6408
|
-
return Ju().unmounted ? null : /* @__PURE__ */
|
|
6407
|
+
var Xu = (e) => e.children(Mu()), Zu = a((e, t) => {
|
|
6408
|
+
let n = G(Mu().getPositionerProps(), e);
|
|
6409
|
+
return Ju().unmounted ? null : /* @__PURE__ */ _(q.div, {
|
|
6409
6410
|
...n,
|
|
6410
6411
|
ref: t
|
|
6411
6412
|
});
|
|
@@ -6413,7 +6414,7 @@ var Xu = (e) => e.children(Mu()), Zu = i((e, t) => {
|
|
|
6413
6414
|
Zu.displayName = "TooltipPositioner";
|
|
6414
6415
|
//#endregion
|
|
6415
6416
|
//#region ../../node_modules/@ark-ui/react/dist/providers/environment/use-environment-context.js
|
|
6416
|
-
var [Qu, $u] =
|
|
6417
|
+
var [Qu, $u] = K({
|
|
6417
6418
|
name: "EnvironmentContext",
|
|
6418
6419
|
hookName: "useEnvironmentContext",
|
|
6419
6420
|
providerName: "<EnvironmentProvider />",
|
|
@@ -6423,7 +6424,7 @@ var [Qu, $u] = G({
|
|
|
6423
6424
|
getDocument: () => document,
|
|
6424
6425
|
getWindow: () => window
|
|
6425
6426
|
}
|
|
6426
|
-
}), [ed, td] =
|
|
6427
|
+
}), [ed, td] = K({
|
|
6427
6428
|
name: "LocaleContext",
|
|
6428
6429
|
hookName: "useLocaleContext",
|
|
6429
6430
|
providerName: "<LocaleProvider />",
|
|
@@ -6433,17 +6434,17 @@ var [Qu, $u] = G({
|
|
|
6433
6434
|
locale: "en-US"
|
|
6434
6435
|
}
|
|
6435
6436
|
}), nd = (e) => {
|
|
6436
|
-
let t =
|
|
6437
|
+
let t = d(), { getRootNode: n } = $u(), { dir: r } = td();
|
|
6437
6438
|
return ql(Bu(Ou, {
|
|
6438
6439
|
id: t,
|
|
6439
6440
|
dir: r,
|
|
6440
6441
|
getRootNode: n,
|
|
6441
6442
|
...e
|
|
6442
6443
|
}), Wu);
|
|
6443
|
-
},
|
|
6444
|
+
}, J = () => (e, t) => t.reduce((e, t) => {
|
|
6444
6445
|
let [n, r] = e, i = t;
|
|
6445
6446
|
return r[i] !== void 0 && (n[i] = r[i]), delete r[i], [n, r];
|
|
6446
|
-
}, [{}, { ...e }]), rd = (e) =>
|
|
6447
|
+
}, [{}, { ...e }]), rd = (e) => J()(e, [
|
|
6447
6448
|
"immediate",
|
|
6448
6449
|
"lazyMount",
|
|
6449
6450
|
"onExitComplete",
|
|
@@ -6455,10 +6456,10 @@ var [Qu, $u] = G({
|
|
|
6455
6456
|
//#region ../../node_modules/@ark-ui/react/dist/utils/use-event.js
|
|
6456
6457
|
function id(e, t = {}) {
|
|
6457
6458
|
let { sync: n = !1 } = t, r = ad(e);
|
|
6458
|
-
return
|
|
6459
|
+
return c((...e) => n ? queueMicrotask(() => r.current?.(...e)) : r.current?.(...e), [n, r]);
|
|
6459
6460
|
}
|
|
6460
6461
|
function ad(e) {
|
|
6461
|
-
let t =
|
|
6462
|
+
let t = m(e);
|
|
6462
6463
|
return t.current = e, t;
|
|
6463
6464
|
}
|
|
6464
6465
|
//#endregion
|
|
@@ -6555,7 +6556,7 @@ var sd = Su({
|
|
|
6555
6556
|
e("onExitComplete")?.();
|
|
6556
6557
|
let n = t.get("node");
|
|
6557
6558
|
if (!n) return;
|
|
6558
|
-
let r = new (
|
|
6559
|
+
let r = new (R(n)).CustomEvent("exitcomplete", { bubbles: !1 });
|
|
6559
6560
|
n.dispatchEvent(r);
|
|
6560
6561
|
},
|
|
6561
6562
|
setupNode: ({ refs: e, event: t }) => {
|
|
@@ -6575,7 +6576,7 @@ var sd = Su({
|
|
|
6575
6576
|
type: "UNMOUNT",
|
|
6576
6577
|
src: "visibilitychange"
|
|
6577
6578
|
});
|
|
6578
|
-
|
|
6579
|
+
V(() => {
|
|
6579
6580
|
if (r("present")) return;
|
|
6580
6581
|
let i = cd(t.get("styles"));
|
|
6581
6582
|
e.set("unmountAnimationName", i), i === "none" || i === e.get("prevAnimationName") || t.get("styles")?.display === "none" || t.get("styles")?.animationDuration === "0s" ? n({
|
|
@@ -6585,7 +6586,7 @@ var sd = Su({
|
|
|
6585
6586
|
});
|
|
6586
6587
|
},
|
|
6587
6588
|
setPrevAnimationName: ({ context: e, refs: t }) => {
|
|
6588
|
-
|
|
6589
|
+
V(() => {
|
|
6589
6590
|
e.set("prevAnimationName", cd(t.get("styles")));
|
|
6590
6591
|
});
|
|
6591
6592
|
},
|
|
@@ -6600,20 +6601,20 @@ var sd = Su({
|
|
|
6600
6601
|
(n.composedPath?.()?.[0] ?? n.target) === i && e.set("prevAnimationName", cd(t.get("styles")));
|
|
6601
6602
|
}, o = (a) => {
|
|
6602
6603
|
let o = cd(t.get("styles"));
|
|
6603
|
-
|
|
6604
|
+
z(a) === i && o === e.get("unmountAnimationName") && !r("present") && n({
|
|
6604
6605
|
type: "UNMOUNT",
|
|
6605
6606
|
src: "animationend"
|
|
6606
6607
|
});
|
|
6607
6608
|
}, s = (e) => {
|
|
6608
|
-
|
|
6609
|
+
z(e) === i && !r("present") && n({
|
|
6609
6610
|
type: "UNMOUNT",
|
|
6610
6611
|
src: "animationcancel"
|
|
6611
6612
|
});
|
|
6612
6613
|
};
|
|
6613
6614
|
i.addEventListener("animationstart", a), i.addEventListener("animationcancel", s), i.addEventListener("animationend", o);
|
|
6614
|
-
let c =
|
|
6615
|
+
let c = Pa(i, { animationFillMode: "forwards" });
|
|
6615
6616
|
return () => {
|
|
6616
|
-
i.removeEventListener("animationstart", a), i.removeEventListener("animationcancel", s), i.removeEventListener("animationend", o),
|
|
6617
|
+
i.removeEventListener("animationstart", a), i.removeEventListener("animationcancel", s), i.removeEventListener("animationend", o), aa(() => c());
|
|
6617
6618
|
};
|
|
6618
6619
|
} }
|
|
6619
6620
|
}
|
|
@@ -6624,7 +6625,7 @@ function cd(e) {
|
|
|
6624
6625
|
//#endregion
|
|
6625
6626
|
//#region ../../node_modules/@ark-ui/react/dist/components/presence/use-presence.js
|
|
6626
6627
|
var ld = (e = {}) => {
|
|
6627
|
-
let { lazyMount: t, unmountOnExit: n, present: r, skipAnimationOnMount: i = !1, ...a } = e, o =
|
|
6628
|
+
let { lazyMount: t, unmountOnExit: n, present: r, skipAnimationOnMount: i = !1, ...a } = e, o = m(!1), s = od(Bu(sd, {
|
|
6628
6629
|
...a,
|
|
6629
6630
|
present: r,
|
|
6630
6631
|
onExitComplete: id(e.onExitComplete)
|
|
@@ -6642,25 +6643,25 @@ var ld = (e = {}) => {
|
|
|
6642
6643
|
};
|
|
6643
6644
|
}, ud = (e) => {
|
|
6644
6645
|
let [t, { children: n, ...r }] = rd(e), i = nd(r);
|
|
6645
|
-
return /* @__PURE__ */
|
|
6646
|
+
return /* @__PURE__ */ _(ju, {
|
|
6646
6647
|
value: i,
|
|
6647
|
-
children: /* @__PURE__ */
|
|
6648
|
-
value: ld(
|
|
6648
|
+
children: /* @__PURE__ */ _(qu, {
|
|
6649
|
+
value: ld(G({ present: i.open }, t)),
|
|
6649
6650
|
children: n
|
|
6650
6651
|
})
|
|
6651
6652
|
});
|
|
6652
6653
|
}, dd = (e) => {
|
|
6653
6654
|
let [t, { value: n, children: r }] = rd(e);
|
|
6654
|
-
return /* @__PURE__ */
|
|
6655
|
+
return /* @__PURE__ */ _(ju, {
|
|
6655
6656
|
value: n,
|
|
6656
|
-
children: /* @__PURE__ */
|
|
6657
|
-
value: ld(
|
|
6657
|
+
children: /* @__PURE__ */ _(qu, {
|
|
6658
|
+
value: ld(G({ present: n.open }, t)),
|
|
6658
6659
|
children: r
|
|
6659
6660
|
})
|
|
6660
6661
|
});
|
|
6661
|
-
}, fd =
|
|
6662
|
-
let [n, r] = fd(e, ["value"]), i =
|
|
6663
|
-
return /* @__PURE__ */
|
|
6662
|
+
}, fd = J(), pd = a((e, t) => {
|
|
6663
|
+
let [n, r] = fd(e, ["value"]), i = G(Mu().getTriggerProps(n), r);
|
|
6664
|
+
return /* @__PURE__ */ _(q.button, {
|
|
6664
6665
|
...i,
|
|
6665
6666
|
ref: t
|
|
6666
6667
|
});
|
|
@@ -6675,7 +6676,7 @@ var md = Object.defineProperty, hd = (e, t) => {
|
|
|
6675
6676
|
enumerable: !0
|
|
6676
6677
|
});
|
|
6677
6678
|
return t || md(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
6678
|
-
},
|
|
6679
|
+
}, Y = /* @__PURE__ */ hd({
|
|
6679
6680
|
Arrow: () => Gu,
|
|
6680
6681
|
ArrowTip: () => Ku,
|
|
6681
6682
|
Content: () => Yu,
|
|
@@ -6685,32 +6686,32 @@ var md = Object.defineProperty, hd = (e, t) => {
|
|
|
6685
6686
|
RootProvider: () => dd,
|
|
6686
6687
|
Trigger: () => pd
|
|
6687
6688
|
}), gd = () => {
|
|
6688
|
-
let { labels: e, icons: t, mediaRemote: n } =
|
|
6689
|
-
return /* @__PURE__ */
|
|
6689
|
+
let { labels: e, icons: t, mediaRemote: n } = N();
|
|
6690
|
+
return /* @__PURE__ */ v(Y.Root, {
|
|
6690
6691
|
openDelay: 400,
|
|
6691
6692
|
closeDelay: 150,
|
|
6692
|
-
children: [/* @__PURE__ */
|
|
6693
|
+
children: [/* @__PURE__ */ _(Y.Trigger, {
|
|
6693
6694
|
onClick: () => n.takeScreenshot(),
|
|
6694
6695
|
"aria-label": e.screenshot,
|
|
6695
6696
|
className: "vplayer__button",
|
|
6696
|
-
children: /* @__PURE__ */
|
|
6697
|
+
children: /* @__PURE__ */ _(F, {
|
|
6697
6698
|
icon: t.screenshot,
|
|
6698
6699
|
width: 16
|
|
6699
6700
|
})
|
|
6700
|
-
}), /* @__PURE__ */
|
|
6701
|
+
}), /* @__PURE__ */ _(Y.Positioner, { children: /* @__PURE__ */ v(Y.Content, {
|
|
6701
6702
|
className: "vplayer__tooltip",
|
|
6702
|
-
children: [/* @__PURE__ */
|
|
6703
|
+
children: [/* @__PURE__ */ _(Y.Arrow, { children: /* @__PURE__ */ _(Y.ArrowTip, {}) }), e.screenshot]
|
|
6703
6704
|
}) })]
|
|
6704
6705
|
});
|
|
6705
|
-
},
|
|
6706
|
+
}, X = vr("menu").parts("arrow", "arrowTip", "content", "contextTrigger", "indicator", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "positioner", "separator", "trigger", "triggerItem").build(), _d = (e, t) => {
|
|
6706
6707
|
let n = e.ids?.trigger;
|
|
6707
6708
|
return n == null ? t ? `menu:${e.id}:trigger:${t}` : `menu:${e.id}:trigger` : _c(n) ? n(t) : n;
|
|
6708
6709
|
}, vd = (e, t) => {
|
|
6709
6710
|
let n = e.ids?.contextTrigger;
|
|
6710
6711
|
return n == null ? t ? `menu:${e.id}:ctx-trigger:${t}` : `menu:${e.id}:ctx-trigger` : _c(n) ? n(t) : n;
|
|
6711
|
-
}, yd = (e) => e.ids?.content ?? `menu:${e.id}:content`, bd = (e) => e.ids?.arrow ?? `menu:${e.id}:arrow`, xd = (e) => e.ids?.positioner ?? `menu:${e.id}:popper`, Sd = (e, t) => e.ids?.group?.(t) ?? `menu:${e.id}:group:${t}`, Cd = (e, t) => `${e.id}/${t}`, wd = (e) => e?.dataset.value ?? null, Td = (e, t) => e.ids?.groupLabel?.(t) ?? `menu:${e.id}:group-label:${t}`, Ed = (e) => e.getById(yd(e)), Dd = (e) => e.getById(xd(e)), Od = (e) => e.getById(_d(e)), kd = (e, t) => t ? e.getById(Cd(e, t)) : null, Ad = (e) => e.getById(vd(e)), jd = (e) =>
|
|
6712
|
+
}, yd = (e) => e.ids?.content ?? `menu:${e.id}:content`, bd = (e) => e.ids?.arrow ?? `menu:${e.id}:arrow`, xd = (e) => e.ids?.positioner ?? `menu:${e.id}:popper`, Sd = (e, t) => e.ids?.group?.(t) ?? `menu:${e.id}:group:${t}`, Cd = (e, t) => `${e.id}/${t}`, wd = (e) => e?.dataset.value ?? null, Td = (e, t) => e.ids?.groupLabel?.(t) ?? `menu:${e.id}:group-label:${t}`, Ed = (e) => e.getById(yd(e)), Dd = (e) => e.getById(xd(e)), Od = (e) => e.getById(_d(e)), kd = (e, t) => t ? e.getById(Cd(e, t)) : null, Ad = (e) => e.getById(vd(e)), jd = (e) => wa(e.getDoc(), `[data-scope="menu"][data-part="trigger"][data-ownedby="${e.id}"]`), Md = (e) => wa(e.getDoc(), `[data-scope="menu"][data-part="context-trigger"][data-ownedby="${e.id}"]`), Nd = (e, t) => t == null ? Od(e) ?? jd(e)[0] : e.getById(_d(e, t)), Pd = (e) => {
|
|
6712
6713
|
let t = `[role^="menuitem"][data-ownedby=${CSS.escape(yd(e))}]:not([data-disabled])`;
|
|
6713
|
-
return
|
|
6714
|
+
return wa(Ed(e), t);
|
|
6714
6715
|
}, Fd = (e) => oc(Pd(e)), Id = (e) => sc(Pd(e)), Ld = (e, t) => t ? e.id === t || e.dataset.value === t : !1, Rd = (e, t) => {
|
|
6715
6716
|
let n = Pd(e);
|
|
6716
6717
|
return lc(n, n.findIndex((e) => Ld(e, t.value)), { loop: t.loop ?? t.loopFocus });
|
|
@@ -6719,15 +6720,15 @@ var md = Object.defineProperty, hd = (e, t) => {
|
|
|
6719
6720
|
return dc(n, n.findIndex((e) => Ld(e, t.value)), { loop: t.loop ?? t.loopFocus });
|
|
6720
6721
|
}, Bd = (e, t) => {
|
|
6721
6722
|
let n = Pd(e), r = n.find((e) => Ld(e, t.value));
|
|
6722
|
-
return
|
|
6723
|
+
return La(n, {
|
|
6723
6724
|
state: t.typeaheadState,
|
|
6724
6725
|
key: t.key,
|
|
6725
6726
|
activeId: r?.id ?? null
|
|
6726
6727
|
});
|
|
6727
|
-
}, Vd = (e) =>
|
|
6728
|
+
}, Vd = (e) => L(e) && (e.dataset.disabled === "" || e.hasAttribute("disabled")), Hd = (e) => !!e?.getAttribute("role")?.startsWith("menuitem") && !!e?.hasAttribute("data-controls"), Ud = "menu:select";
|
|
6728
6729
|
function Wd(e, t) {
|
|
6729
6730
|
if (!e) return;
|
|
6730
|
-
let n = new (
|
|
6731
|
+
let n = new (R(e)).CustomEvent(Ud, { detail: { value: t } });
|
|
6731
6732
|
e.dispatchEvent(n);
|
|
6732
6733
|
}
|
|
6733
6734
|
function Gd(e) {
|
|
@@ -6735,7 +6736,7 @@ function Gd(e) {
|
|
|
6735
6736
|
return Ed(e) ?? e.getDoc().getElementById(t);
|
|
6736
6737
|
}
|
|
6737
6738
|
function Kd(e, t) {
|
|
6738
|
-
if (!
|
|
6739
|
+
if (!L(e)) return !1;
|
|
6739
6740
|
for (let n in t) {
|
|
6740
6741
|
let r = t[n], i = Gd(r.scope);
|
|
6741
6742
|
if (i && Wr(i, e)) return !0;
|
|
@@ -6883,13 +6884,13 @@ function of(e, t) {
|
|
|
6883
6884
|
function b(n) {
|
|
6884
6885
|
let { closeOnSelect: i, valueText: a, value: o } = n, c = _(n), l = Cd(s, o);
|
|
6885
6886
|
return t.element({
|
|
6886
|
-
...
|
|
6887
|
+
...X.item.attrs,
|
|
6887
6888
|
id: l,
|
|
6888
6889
|
role: "menuitem",
|
|
6889
6890
|
"aria-disabled": Or(c.disabled),
|
|
6890
|
-
"data-disabled":
|
|
6891
|
+
"data-disabled": I(c.disabled),
|
|
6891
6892
|
"data-ownedby": yd(s),
|
|
6892
|
-
"data-highlighted":
|
|
6893
|
+
"data-highlighted": I(c.highlighted),
|
|
6893
6894
|
"data-value": o,
|
|
6894
6895
|
"data-valuetext": a,
|
|
6895
6896
|
onDragStart(e) {
|
|
@@ -6986,12 +6987,12 @@ function of(e, t) {
|
|
|
6986
6987
|
getContextTriggerProps(e = {}) {
|
|
6987
6988
|
let { value: n } = e, i = n == null ? !1 : h === n, a = vd(s, n);
|
|
6988
6989
|
return t.element({
|
|
6989
|
-
...
|
|
6990
|
+
...X.contextTrigger.attrs,
|
|
6990
6991
|
dir: o("dir"),
|
|
6991
6992
|
id: a,
|
|
6992
6993
|
"data-ownedby": s.id,
|
|
6993
6994
|
"data-value": n,
|
|
6994
|
-
"data-current":
|
|
6995
|
+
"data-current": I(i),
|
|
6995
6996
|
"data-state": c ? "open" : "closed",
|
|
6996
6997
|
onPointerDown(e) {
|
|
6997
6998
|
e.pointerType !== "mouse" && r({
|
|
@@ -7026,12 +7027,12 @@ function of(e, t) {
|
|
|
7026
7027
|
},
|
|
7027
7028
|
getTriggerItemProps(e) {
|
|
7028
7029
|
let t = e.getTriggerProps();
|
|
7029
|
-
return
|
|
7030
|
+
return G(b({ value: t.id }), t);
|
|
7030
7031
|
},
|
|
7031
7032
|
getTriggerProps(i = {}) {
|
|
7032
7033
|
let { value: a } = i, u = a == null ? !1 : h === a, f = _d(s, a);
|
|
7033
7034
|
return t.button({
|
|
7034
|
-
...l ?
|
|
7035
|
+
...l ? X.triggerItem.attrs : X.trigger.attrs,
|
|
7035
7036
|
"data-placement": n.get("currentPlacement"),
|
|
7036
7037
|
type: "button",
|
|
7037
7038
|
dir: o("dir"),
|
|
@@ -7039,7 +7040,7 @@ function of(e, t) {
|
|
|
7039
7040
|
...a != null && {
|
|
7040
7041
|
"data-ownedby": s.id,
|
|
7041
7042
|
"data-value": a,
|
|
7042
|
-
"data-current":
|
|
7043
|
+
"data-current": I(u)
|
|
7043
7044
|
},
|
|
7044
7045
|
"data-uid": o("id"),
|
|
7045
7046
|
"aria-haspopup": d ? "menu" : "dialog",
|
|
@@ -7121,14 +7122,14 @@ function of(e, t) {
|
|
|
7121
7122
|
},
|
|
7122
7123
|
getIndicatorProps() {
|
|
7123
7124
|
return t.element({
|
|
7124
|
-
...
|
|
7125
|
+
...X.indicator.attrs,
|
|
7125
7126
|
dir: o("dir"),
|
|
7126
7127
|
"data-state": c ? "open" : "closed"
|
|
7127
7128
|
});
|
|
7128
7129
|
},
|
|
7129
7130
|
getPositionerProps() {
|
|
7130
7131
|
return t.element({
|
|
7131
|
-
...
|
|
7132
|
+
...X.positioner.attrs,
|
|
7132
7133
|
dir: o("dir"),
|
|
7133
7134
|
id: xd(s),
|
|
7134
7135
|
style: g.floating
|
|
@@ -7137,21 +7138,21 @@ function of(e, t) {
|
|
|
7137
7138
|
getArrowProps() {
|
|
7138
7139
|
return t.element({
|
|
7139
7140
|
id: bd(s),
|
|
7140
|
-
...
|
|
7141
|
+
...X.arrow.attrs,
|
|
7141
7142
|
dir: o("dir"),
|
|
7142
7143
|
style: g.arrow
|
|
7143
7144
|
});
|
|
7144
7145
|
},
|
|
7145
7146
|
getArrowTipProps() {
|
|
7146
7147
|
return t.element({
|
|
7147
|
-
...
|
|
7148
|
+
...X.arrowTip.attrs,
|
|
7148
7149
|
dir: o("dir"),
|
|
7149
7150
|
style: g.arrowTip
|
|
7150
7151
|
});
|
|
7151
7152
|
},
|
|
7152
7153
|
getContentProps() {
|
|
7153
7154
|
return t.element({
|
|
7154
|
-
...
|
|
7155
|
+
...X.content.attrs,
|
|
7155
7156
|
id: yd(s),
|
|
7156
7157
|
"aria-label": o("aria-label"),
|
|
7157
7158
|
hidden: !c,
|
|
@@ -7166,10 +7167,10 @@ function of(e, t) {
|
|
|
7166
7167
|
e.pointerType === "mouse" && r({ type: "MENU_POINTERENTER" });
|
|
7167
7168
|
},
|
|
7168
7169
|
onKeyDown(e) {
|
|
7169
|
-
if (e.defaultPrevented || !Wr(e.currentTarget,
|
|
7170
|
-
let t =
|
|
7170
|
+
if (e.defaultPrevented || !Wr(e.currentTarget, z(e))) return;
|
|
7171
|
+
let t = z(e);
|
|
7171
7172
|
if (!(t?.closest("[role=menu]") === e.currentTarget || t === e.currentTarget)) return;
|
|
7172
|
-
if (e.key === "Tab" && !
|
|
7173
|
+
if (e.key === "Tab" && !ra(e)) {
|
|
7173
7174
|
e.preventDefault();
|
|
7174
7175
|
return;
|
|
7175
7176
|
}
|
|
@@ -7215,7 +7216,7 @@ function of(e, t) {
|
|
|
7215
7216
|
},
|
|
7216
7217
|
getSeparatorProps() {
|
|
7217
7218
|
return t.element({
|
|
7218
|
-
...
|
|
7219
|
+
...X.separator.attrs,
|
|
7219
7220
|
role: "separator",
|
|
7220
7221
|
dir: o("dir"),
|
|
7221
7222
|
"aria-orientation": "horizontal"
|
|
@@ -7230,7 +7231,7 @@ function of(e, t) {
|
|
|
7230
7231
|
...b(s),
|
|
7231
7232
|
...t.element({
|
|
7232
7233
|
"data-type": n,
|
|
7233
|
-
...
|
|
7234
|
+
...X.item.attrs,
|
|
7234
7235
|
dir: o("dir"),
|
|
7235
7236
|
"data-value": s.value,
|
|
7236
7237
|
role: `menuitem${n}`,
|
|
@@ -7252,10 +7253,10 @@ function of(e, t) {
|
|
|
7252
7253
|
getItemIndicatorProps(e) {
|
|
7253
7254
|
let n = y(Dc(e)), r = n.checked ? "checked" : "unchecked";
|
|
7254
7255
|
return t.element({
|
|
7255
|
-
...
|
|
7256
|
+
...X.itemIndicator.attrs,
|
|
7256
7257
|
dir: o("dir"),
|
|
7257
|
-
"data-disabled":
|
|
7258
|
-
"data-highlighted":
|
|
7258
|
+
"data-disabled": I(n.disabled),
|
|
7259
|
+
"data-highlighted": I(n.highlighted),
|
|
7259
7260
|
"data-state": yc(e, "checked") ? r : void 0,
|
|
7260
7261
|
hidden: yc(e, "checked") ? !n.checked : void 0
|
|
7261
7262
|
});
|
|
@@ -7263,16 +7264,16 @@ function of(e, t) {
|
|
|
7263
7264
|
getItemTextProps(e) {
|
|
7264
7265
|
let n = y(Dc(e)), r = n.checked ? "checked" : "unchecked";
|
|
7265
7266
|
return t.element({
|
|
7266
|
-
...
|
|
7267
|
+
...X.itemText.attrs,
|
|
7267
7268
|
dir: o("dir"),
|
|
7268
|
-
"data-disabled":
|
|
7269
|
-
"data-highlighted":
|
|
7269
|
+
"data-disabled": I(n.disabled),
|
|
7270
|
+
"data-highlighted": I(n.highlighted),
|
|
7270
7271
|
"data-state": yc(e, "checked") ? r : void 0
|
|
7271
7272
|
});
|
|
7272
7273
|
},
|
|
7273
7274
|
getItemGroupLabelProps(e) {
|
|
7274
7275
|
return t.element({
|
|
7275
|
-
...
|
|
7276
|
+
...X.itemGroupLabel.attrs,
|
|
7276
7277
|
id: Td(s, e.htmlFor),
|
|
7277
7278
|
dir: o("dir")
|
|
7278
7279
|
});
|
|
@@ -7280,7 +7281,7 @@ function of(e, t) {
|
|
|
7280
7281
|
getItemGroupProps(e) {
|
|
7281
7282
|
return t.element({
|
|
7282
7283
|
id: Sd(s, e.id),
|
|
7283
|
-
...
|
|
7284
|
+
...X.itemGroup.attrs,
|
|
7284
7285
|
dir: o("dir"),
|
|
7285
7286
|
"aria-labelledby": Td(s, e.id),
|
|
7286
7287
|
role: "group"
|
|
@@ -7343,7 +7344,7 @@ function cf(e) {
|
|
|
7343
7344
|
//#region ../../node_modules/@zag-js/interact-outside/dist/index.mjs
|
|
7344
7345
|
var lf = "pointerdown.outside", uf = "focus.outside";
|
|
7345
7346
|
function df(e) {
|
|
7346
|
-
for (let t of e) if (
|
|
7347
|
+
for (let t of e) if (L(t) && Qi(t)) return !0;
|
|
7347
7348
|
return !1;
|
|
7348
7349
|
}
|
|
7349
7350
|
var ff = (e) => "clientY" in e;
|
|
@@ -7371,11 +7372,11 @@ function hf(e, t) {
|
|
|
7371
7372
|
function gf(e, t) {
|
|
7372
7373
|
let { exclude: n, onFocusOutside: r, onPointerDownOutside: i, onInteractOutside: a, defer: o, followControlledElements: s = !0 } = t;
|
|
7373
7374
|
if (!e) return;
|
|
7374
|
-
let c = Gr(e), l =
|
|
7375
|
+
let c = Gr(e), l = R(e), u = sf(l), d = cf(l);
|
|
7375
7376
|
function f(t, r) {
|
|
7376
|
-
if (!
|
|
7377
|
+
if (!L(r) || !r.isConnected || Wr(e, r) || pf(e, t) || s && ti(e, r)) return !1;
|
|
7377
7378
|
let i = c.querySelector(`[aria-controls="${e.id}"]`);
|
|
7378
|
-
return i && hf(t,
|
|
7379
|
+
return i && hf(t, ua(i)) || hf(t, ua(e)) ? !1 : !n?.(r);
|
|
7379
7380
|
}
|
|
7380
7381
|
let p = /* @__PURE__ */ new Set(), m = Lr(e?.getRootNode()), h = !1;
|
|
7381
7382
|
function g(t) {
|
|
@@ -7385,9 +7386,9 @@ function gf(e, t) {
|
|
|
7385
7386
|
};
|
|
7386
7387
|
c.addEventListener("pointerup", n, { once: !0 }), l.addEventListener("pointerup", n, { once: !0 });
|
|
7387
7388
|
function r(n) {
|
|
7388
|
-
let r = o && !si() ?
|
|
7389
|
+
let r = o && !si() ? V : (e) => e(), s = n ?? t, c = s?.composedPath?.() ?? [s?.target];
|
|
7389
7390
|
r(() => {
|
|
7390
|
-
let n = m ? c[0] :
|
|
7391
|
+
let n = m ? c[0] : z(t);
|
|
7391
7392
|
if (!(!e || !f(t, n))) {
|
|
7392
7393
|
if (i || a) {
|
|
7393
7394
|
let t = Ac(i, a);
|
|
@@ -7406,14 +7407,14 @@ function gf(e, t) {
|
|
|
7406
7407
|
}
|
|
7407
7408
|
});
|
|
7408
7409
|
}
|
|
7409
|
-
t.pointerType === "touch" ? (p.forEach((e) => e()), p.add(
|
|
7410
|
+
t.pointerType === "touch" ? (p.forEach((e) => e()), p.add(B(c, "click", r, { once: !0 })), p.add(d.addEventListener("click", r, { once: !0 })), p.add(u.addEventListener("click", r, { once: !0 }))) : r();
|
|
7410
7411
|
}
|
|
7411
7412
|
let _ = /* @__PURE__ */ new Set(), v = setTimeout(() => {
|
|
7412
|
-
_.add(
|
|
7413
|
+
_.add(B(c, "pointerdown", g, !0)), _.add(d.addEventListener("pointerdown", g, !0)), _.add(u.addEventListener("pointerdown", g, !0));
|
|
7413
7414
|
}, 0);
|
|
7414
7415
|
function y(t) {
|
|
7415
|
-
h || (o ?
|
|
7416
|
-
let n = t?.composedPath?.() ?? [t?.target], i = m ? n[0] :
|
|
7416
|
+
h || (o ? V : (e) => e())(() => {
|
|
7417
|
+
let n = t?.composedPath?.() ?? [t?.target], i = m ? n[0] : z(t);
|
|
7417
7418
|
if (!(!e || !f(t, i))) {
|
|
7418
7419
|
if (r || a) {
|
|
7419
7420
|
let t = Ac(r, a);
|
|
@@ -7425,19 +7426,19 @@ function gf(e, t) {
|
|
|
7425
7426
|
detail: {
|
|
7426
7427
|
originalEvent: t,
|
|
7427
7428
|
contextmenu: !1,
|
|
7428
|
-
focusable:
|
|
7429
|
+
focusable: Qi(i),
|
|
7429
7430
|
target: i
|
|
7430
7431
|
}
|
|
7431
7432
|
});
|
|
7432
7433
|
}
|
|
7433
7434
|
});
|
|
7434
7435
|
}
|
|
7435
|
-
return si() || (_.add(
|
|
7436
|
+
return si() || (_.add(B(c, "focusin", y, !0)), _.add(d.addEventListener("focusin", y, !0)), _.add(u.addEventListener("focusin", y, !0))), () => {
|
|
7436
7437
|
clearTimeout(v), p.forEach((e) => e()), _.forEach((e) => e());
|
|
7437
7438
|
};
|
|
7438
7439
|
}
|
|
7439
7440
|
function _f(e, t) {
|
|
7440
|
-
let { defer: n } = t, r = n ?
|
|
7441
|
+
let { defer: n } = t, r = n ? V : (e) => e(), i = [];
|
|
7441
7442
|
return i.push(r(() => {
|
|
7442
7443
|
let n = typeof e == "function" ? e() : e;
|
|
7443
7444
|
i.push(gf(n, t));
|
|
@@ -7452,13 +7453,13 @@ function vf(e, t, n) {
|
|
|
7452
7453
|
//#endregion
|
|
7453
7454
|
//#region ../../node_modules/@zag-js/dismissable/dist/escape-keydown.mjs
|
|
7454
7455
|
function yf(e, t) {
|
|
7455
|
-
return
|
|
7456
|
+
return B(Gr(e), "keydown", (e) => {
|
|
7456
7457
|
e.key === "Escape" && (e.isComposing || t?.(e));
|
|
7457
7458
|
}, { capture: !0 });
|
|
7458
7459
|
}
|
|
7459
7460
|
//#endregion
|
|
7460
7461
|
//#region ../../node_modules/@zag-js/dismissable/dist/layer-stack.mjs
|
|
7461
|
-
var bf = "layer:request-dismiss",
|
|
7462
|
+
var bf = "layer:request-dismiss", Z = {
|
|
7462
7463
|
layers: [],
|
|
7463
7464
|
branches: [],
|
|
7464
7465
|
recentlyRemoved: /* @__PURE__ */ new Set(),
|
|
@@ -7511,7 +7512,7 @@ var bf = "layer:request-dismiss", X = {
|
|
|
7511
7512
|
},
|
|
7512
7513
|
remove(e) {
|
|
7513
7514
|
let t = this.indexOf(e);
|
|
7514
|
-
t < 0 || (this.recentlyRemoved.add(e),
|
|
7515
|
+
t < 0 || (this.recentlyRemoved.add(e), aa(() => this.recentlyRemoved.delete(e)), t < this.count() - 1 && this.getNestedLayers(e).forEach((t) => Z.dismiss(t.node, e)), this.layers.splice(t, 1), this.syncLayers());
|
|
7515
7516
|
},
|
|
7516
7517
|
removeBranch(e) {
|
|
7517
7518
|
let t = this.branches.indexOf(e);
|
|
@@ -7559,8 +7560,8 @@ function Sf(e, t, n) {
|
|
|
7559
7560
|
//#region ../../node_modules/@zag-js/dismissable/dist/pointer-event-outside.mjs
|
|
7560
7561
|
var Cf;
|
|
7561
7562
|
function wf() {
|
|
7562
|
-
|
|
7563
|
-
e.style.pointerEvents =
|
|
7563
|
+
Z.layers.forEach(({ node: e }) => {
|
|
7564
|
+
e.style.pointerEvents = Z.isBelowPointerBlockingLayer(e) ? "none" : "auto";
|
|
7564
7565
|
});
|
|
7565
7566
|
}
|
|
7566
7567
|
function Tf(e) {
|
|
@@ -7568,16 +7569,16 @@ function Tf(e) {
|
|
|
7568
7569
|
}
|
|
7569
7570
|
function Ef(e, t) {
|
|
7570
7571
|
let n = Gr(e), r = [];
|
|
7571
|
-
return
|
|
7572
|
+
return Z.hasPointerBlockingLayer() && !n.body.hasAttribute("data-inert") && (Cf = document.body.style.pointerEvents, queueMicrotask(() => {
|
|
7572
7573
|
n.body.style.pointerEvents = "none", n.body.setAttribute("data-inert", "");
|
|
7573
7574
|
})), t?.forEach((e) => {
|
|
7574
|
-
let [t, n] =
|
|
7575
|
+
let [t, n] = Ba(() => {
|
|
7575
7576
|
let t = e();
|
|
7576
|
-
return
|
|
7577
|
+
return L(t) ? t : null;
|
|
7577
7578
|
}, { timeout: 1e3 });
|
|
7578
|
-
t.then((e) => r.push(
|
|
7579
|
+
t.then((e) => r.push(Pa(e, { pointerEvents: "auto" }))), r.push(n);
|
|
7579
7580
|
}), () => {
|
|
7580
|
-
|
|
7581
|
+
Z.hasPointerBlockingLayer() || (queueMicrotask(() => {
|
|
7581
7582
|
n.body.style.pointerEvents = Cf, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
|
|
7582
7583
|
}), r.forEach((e) => e()));
|
|
7583
7584
|
};
|
|
@@ -7598,22 +7599,22 @@ function Df(e, t) {
|
|
|
7598
7599
|
pointerBlocking: a,
|
|
7599
7600
|
requestDismiss: i
|
|
7600
7601
|
};
|
|
7601
|
-
|
|
7602
|
+
Z.add(l), wf();
|
|
7602
7603
|
function u(n) {
|
|
7603
|
-
let i =
|
|
7604
|
-
|
|
7604
|
+
let i = z(n.detail.originalEvent);
|
|
7605
|
+
Z.isBelowPointerBlockingLayer(e) || Z.isInBranch(i) || (t.onPointerDownOutside?.(n), t.onInteractOutside?.(n), !n.defaultPrevented && (s && console.log("onPointerDownOutside:", n.detail.originalEvent), r?.()));
|
|
7605
7606
|
}
|
|
7606
7607
|
function d(e) {
|
|
7607
|
-
let n =
|
|
7608
|
-
|
|
7608
|
+
let n = z(e.detail.originalEvent);
|
|
7609
|
+
Z.isInBranch(n) || (t.onFocusOutside?.(e), t.onInteractOutside?.(e), !e.defaultPrevented && (s && console.log("onFocusOutside:", e.detail.originalEvent), r?.()));
|
|
7609
7610
|
}
|
|
7610
7611
|
function f(n) {
|
|
7611
|
-
|
|
7612
|
+
Z.isTopMost(e) && (t.onEscapeKeyDown?.(n), !n.defaultPrevented && r && (n.preventDefault(), r()));
|
|
7612
7613
|
}
|
|
7613
7614
|
function p(n) {
|
|
7614
7615
|
if (!e) return !1;
|
|
7615
|
-
let r = typeof o == "function" ? o() : o, i = Array.isArray(r) ? r : [r], a = t.persistentElements?.map((e) => e()).filter(
|
|
7616
|
-
return a && i.push(...a), i.some((e) => Wr(e, n)) ||
|
|
7616
|
+
let r = typeof o == "function" ? o() : o, i = Array.isArray(r) ? r : [r], a = t.persistentElements?.map((e) => e()).filter(L);
|
|
7617
|
+
return a && i.push(...a), i.some((e) => Wr(e, n)) || Z.isInNestedLayer(e, n);
|
|
7617
7618
|
}
|
|
7618
7619
|
let m = [
|
|
7619
7620
|
a ? Ef(e, t.persistentElements) : void 0,
|
|
@@ -7626,11 +7627,11 @@ function Df(e, t) {
|
|
|
7626
7627
|
})
|
|
7627
7628
|
];
|
|
7628
7629
|
return () => {
|
|
7629
|
-
|
|
7630
|
+
Z.remove(e), wf(), Tf(e), m.forEach((e) => e?.());
|
|
7630
7631
|
};
|
|
7631
7632
|
}
|
|
7632
7633
|
function Of(e, t) {
|
|
7633
|
-
let { defer: n } = t, r = n ?
|
|
7634
|
+
let { defer: n } = t, r = n ? V : (e) => e(), i = [];
|
|
7634
7635
|
return i.push(r(() => {
|
|
7635
7636
|
let n = _c(e) ? e() : e;
|
|
7636
7637
|
i.push(Df(n, t));
|
|
@@ -7648,7 +7649,7 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
7648
7649
|
composite: !0,
|
|
7649
7650
|
loopFocus: !1,
|
|
7650
7651
|
navigate(e) {
|
|
7651
|
-
|
|
7652
|
+
la(e.node);
|
|
7652
7653
|
},
|
|
7653
7654
|
...e,
|
|
7654
7655
|
positioning: {
|
|
@@ -7699,7 +7700,7 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
7699
7700
|
parent: null,
|
|
7700
7701
|
children: {},
|
|
7701
7702
|
pointerRoutingLocked: !1,
|
|
7702
|
-
typeaheadState: { ...
|
|
7703
|
+
typeaheadState: { ...La.defaultOptions },
|
|
7703
7704
|
positioningOverride: {}
|
|
7704
7705
|
};
|
|
7705
7706
|
},
|
|
@@ -8159,7 +8160,7 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8159
8160
|
onRequestDismiss: n("onRequestDismiss"),
|
|
8160
8161
|
onFocusOutside(t) {
|
|
8161
8162
|
n("onFocusOutside")?.(t);
|
|
8162
|
-
let r =
|
|
8163
|
+
let r = z(t.detail.originalEvent);
|
|
8163
8164
|
if (s(r)) {
|
|
8164
8165
|
t.preventDefault();
|
|
8165
8166
|
return;
|
|
@@ -8173,7 +8174,7 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8173
8174
|
n("onEscapeKeyDown")?.(t), r.get("isSubmenu") && t.preventDefault(), Qd({ parent: e.get("parent") });
|
|
8174
8175
|
},
|
|
8175
8176
|
onPointerDownOutside(e) {
|
|
8176
|
-
if (n("onPointerDownOutside")?.(e), s(
|
|
8177
|
+
if (n("onPointerDownOutside")?.(e), s(z(e.detail.originalEvent)) && e.detail.contextmenu) {
|
|
8177
8178
|
e.preventDefault();
|
|
8178
8179
|
return;
|
|
8179
8180
|
}
|
|
@@ -8190,7 +8191,7 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8190
8191
|
},
|
|
8191
8192
|
trackPointerMove({ context: e, scope: t, send: n, refs: r }) {
|
|
8192
8193
|
let i = r.get("parent");
|
|
8193
|
-
if (i) return tf(i, !0),
|
|
8194
|
+
if (i) return tf(i, !0), B(t.getDoc(), "pointermove", (t) => {
|
|
8194
8195
|
$d(e.get("intentPolygon"), {
|
|
8195
8196
|
x: t.clientX,
|
|
8196
8197
|
y: t.clientY
|
|
@@ -8199,14 +8200,14 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8199
8200
|
},
|
|
8200
8201
|
scrollToHighlightedItem({ scope: e, computed: t }) {
|
|
8201
8202
|
let n = () => {
|
|
8202
|
-
io() !== "pointer" &&
|
|
8203
|
+
io() !== "pointer" && ga(e.getById(t("highlightedId")), {
|
|
8203
8204
|
rootEl: Ed(e),
|
|
8204
8205
|
block: "nearest"
|
|
8205
8206
|
});
|
|
8206
8207
|
};
|
|
8207
|
-
return
|
|
8208
|
+
return V(() => {
|
|
8208
8209
|
ao("virtual"), n();
|
|
8209
|
-
}),
|
|
8210
|
+
}), ca(() => Ed(e), {
|
|
8210
8211
|
defer: !0,
|
|
8211
8212
|
attributes: ["aria-activedescendant"],
|
|
8212
8213
|
callback: n
|
|
@@ -8299,9 +8300,9 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8299
8300
|
e.set("highlightedValue", null);
|
|
8300
8301
|
},
|
|
8301
8302
|
focusMenu({ scope: e }) {
|
|
8302
|
-
|
|
8303
|
+
V(() => {
|
|
8303
8304
|
let t = Ed(e);
|
|
8304
|
-
|
|
8305
|
+
na({
|
|
8305
8306
|
root: t,
|
|
8306
8307
|
enabled: !Wr(t, e.getActiveElement()),
|
|
8307
8308
|
filter(e) {
|
|
@@ -8311,13 +8312,13 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8311
8312
|
});
|
|
8312
8313
|
},
|
|
8313
8314
|
highlightFirstItem({ context: e, scope: t }) {
|
|
8314
|
-
(Ed(t) ? queueMicrotask :
|
|
8315
|
+
(Ed(t) ? queueMicrotask : V)(() => {
|
|
8315
8316
|
let n = Fd(t);
|
|
8316
8317
|
n && e.set("highlightedValue", wd(n));
|
|
8317
8318
|
});
|
|
8318
8319
|
},
|
|
8319
8320
|
highlightLastItem({ context: e, scope: t }) {
|
|
8320
|
-
(Ed(t) ? queueMicrotask :
|
|
8321
|
+
(Ed(t) ? queueMicrotask : V)(() => {
|
|
8321
8322
|
let n = Id(t);
|
|
8322
8323
|
n && e.set("highlightedValue", wd(n));
|
|
8323
8324
|
});
|
|
@@ -8422,14 +8423,14 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8422
8423
|
}
|
|
8423
8424
|
}
|
|
8424
8425
|
}
|
|
8425
|
-
}), [Nf,
|
|
8426
|
+
}), [Nf, Q] = K({
|
|
8426
8427
|
name: "MenuContext",
|
|
8427
8428
|
hookName: "useMenuContext",
|
|
8428
8429
|
providerName: "<MenuProvider />",
|
|
8429
8430
|
strict: !1
|
|
8430
|
-
}), Pf =
|
|
8431
|
-
let n =
|
|
8432
|
-
return /* @__PURE__ */
|
|
8431
|
+
}), Pf = a((e, t) => {
|
|
8432
|
+
let n = G(Q().getArrowProps(), e);
|
|
8433
|
+
return /* @__PURE__ */ _(q.div, {
|
|
8433
8434
|
...n,
|
|
8434
8435
|
ref: t
|
|
8435
8436
|
});
|
|
@@ -8437,9 +8438,9 @@ var { not: kf, and: Af, or: jf } = xu(), Mf = Su({
|
|
|
8437
8438
|
Pf.displayName = "MenuArrow";
|
|
8438
8439
|
//#endregion
|
|
8439
8440
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js
|
|
8440
|
-
var Ff =
|
|
8441
|
-
let n =
|
|
8442
|
-
return /* @__PURE__ */
|
|
8441
|
+
var Ff = a((e, t) => {
|
|
8442
|
+
let n = G(Q().getArrowTipProps(), e);
|
|
8443
|
+
return /* @__PURE__ */ _(q.div, {
|
|
8443
8444
|
...n,
|
|
8444
8445
|
ref: t
|
|
8445
8446
|
});
|
|
@@ -8447,15 +8448,15 @@ var Ff = i((e, t) => {
|
|
|
8447
8448
|
Ff.displayName = "MenuArrowTip";
|
|
8448
8449
|
//#endregion
|
|
8449
8450
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js
|
|
8450
|
-
var [If, Lf] =
|
|
8451
|
+
var [If, Lf] = K({
|
|
8451
8452
|
name: "MenuItemContext",
|
|
8452
8453
|
hookName: "useMenuItemContext",
|
|
8453
8454
|
providerName: "<MenuItemProvider />"
|
|
8454
|
-
}), [Rf, zf] =
|
|
8455
|
+
}), [Rf, zf] = K({
|
|
8455
8456
|
name: "MenuItemPropsContext",
|
|
8456
8457
|
hookName: "useMenuItemPropsContext",
|
|
8457
8458
|
providerName: "<MenuItemPropsProvider />"
|
|
8458
|
-
}), Bf =
|
|
8459
|
+
}), Bf = J(), Vf = a((e, t) => {
|
|
8459
8460
|
let [n, r] = Bf(e, [
|
|
8460
8461
|
"checked",
|
|
8461
8462
|
"closeOnSelect",
|
|
@@ -8466,12 +8467,12 @@ var [If, Lf] = G({
|
|
|
8466
8467
|
]), i = {
|
|
8467
8468
|
...n,
|
|
8468
8469
|
type: "checkbox"
|
|
8469
|
-
}, a =
|
|
8470
|
-
return /* @__PURE__ */
|
|
8470
|
+
}, a = Q(), o = G(a.getOptionItemProps(i), r);
|
|
8471
|
+
return /* @__PURE__ */ _(Rf, {
|
|
8471
8472
|
value: i,
|
|
8472
|
-
children: /* @__PURE__ */
|
|
8473
|
+
children: /* @__PURE__ */ _(If, {
|
|
8473
8474
|
value: a.getOptionItemState(i),
|
|
8474
|
-
children: /* @__PURE__ */
|
|
8475
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
8475
8476
|
...o,
|
|
8476
8477
|
ref: t
|
|
8477
8478
|
})
|
|
@@ -8481,9 +8482,9 @@ var [If, Lf] = G({
|
|
|
8481
8482
|
Vf.displayName = "MenuCheckboxItem";
|
|
8482
8483
|
//#endregion
|
|
8483
8484
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-content.js
|
|
8484
|
-
var Hf =
|
|
8485
|
-
let n =
|
|
8486
|
-
return r.unmounted ? null : /* @__PURE__ */
|
|
8485
|
+
var Hf = a((e, t) => {
|
|
8486
|
+
let n = Q(), r = Ju(), i = G(n.getContentProps(), r.getPresenceProps(), e);
|
|
8487
|
+
return r.unmounted ? null : /* @__PURE__ */ _(q.div, {
|
|
8487
8488
|
...i,
|
|
8488
8489
|
ref: Nu(r.ref, t)
|
|
8489
8490
|
});
|
|
@@ -8491,9 +8492,9 @@ var Hf = i((e, t) => {
|
|
|
8491
8492
|
Hf.displayName = "MenuContent";
|
|
8492
8493
|
//#endregion
|
|
8493
8494
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-context.js
|
|
8494
|
-
var Uf = (e) => e.children(
|
|
8495
|
-
let n =
|
|
8496
|
-
return /* @__PURE__ */
|
|
8495
|
+
var Uf = (e) => e.children(Q()), Wf = a((e, t) => {
|
|
8496
|
+
let n = G(Q().getContextTriggerProps(), e);
|
|
8497
|
+
return /* @__PURE__ */ _(q.button, {
|
|
8497
8498
|
...n,
|
|
8498
8499
|
ref: t
|
|
8499
8500
|
});
|
|
@@ -8501,9 +8502,9 @@ var Uf = (e) => e.children(Z()), Wf = i((e, t) => {
|
|
|
8501
8502
|
Wf.displayName = "MenuContextTrigger";
|
|
8502
8503
|
//#endregion
|
|
8503
8504
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js
|
|
8504
|
-
var Gf =
|
|
8505
|
-
let n =
|
|
8506
|
-
return /* @__PURE__ */
|
|
8505
|
+
var Gf = a((e, t) => {
|
|
8506
|
+
let n = G(Q().getIndicatorProps(), e);
|
|
8507
|
+
return /* @__PURE__ */ _(q.div, {
|
|
8507
8508
|
...n,
|
|
8508
8509
|
ref: t
|
|
8509
8510
|
});
|
|
@@ -8511,22 +8512,22 @@ var Gf = i((e, t) => {
|
|
|
8511
8512
|
Gf.displayName = "MenuIndicator";
|
|
8512
8513
|
//#endregion
|
|
8513
8514
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-item.js
|
|
8514
|
-
var Kf =
|
|
8515
|
+
var Kf = J(), qf = a((e, t) => {
|
|
8515
8516
|
let [n, r] = Kf(e, [
|
|
8516
8517
|
"closeOnSelect",
|
|
8517
8518
|
"disabled",
|
|
8518
8519
|
"value",
|
|
8519
8520
|
"valueText",
|
|
8520
8521
|
"onSelect"
|
|
8521
|
-
]), i =
|
|
8522
|
-
return
|
|
8522
|
+
]), i = Q(), a = G(i.getItemProps(n), r), o = i.getItemState(n);
|
|
8523
|
+
return u(() => i.addItemListener({
|
|
8523
8524
|
id: o.id,
|
|
8524
8525
|
onSelect: n.onSelect
|
|
8525
|
-
}), [o.id, n.onSelect]), /* @__PURE__ */
|
|
8526
|
+
}), [o.id, n.onSelect]), /* @__PURE__ */ _(Rf, {
|
|
8526
8527
|
value: n,
|
|
8527
|
-
children: /* @__PURE__ */
|
|
8528
|
+
children: /* @__PURE__ */ _(If, {
|
|
8528
8529
|
value: o,
|
|
8529
|
-
children: /* @__PURE__ */
|
|
8530
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
8530
8531
|
...a,
|
|
8531
8532
|
ref: t
|
|
8532
8533
|
})
|
|
@@ -8536,18 +8537,18 @@ var Kf = q(), qf = i((e, t) => {
|
|
|
8536
8537
|
qf.displayName = "MenuItem";
|
|
8537
8538
|
//#endregion
|
|
8538
8539
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-item-context.js
|
|
8539
|
-
var Jf = (e) => e.children(Lf()), [Yf, Xf] =
|
|
8540
|
+
var Jf = (e) => e.children(Lf()), [Yf, Xf] = K({
|
|
8540
8541
|
name: "MenuItemGroupContext",
|
|
8541
8542
|
hookName: "useMenuItemGroupContext",
|
|
8542
8543
|
providerName: "<MenuItemGroupProvider />"
|
|
8543
|
-
}), Zf =
|
|
8544
|
-
let [n, r] = Zf(e, ["id"]), i =
|
|
8545
|
-
id:
|
|
8544
|
+
}), Zf = J(), Qf = a((e, t) => {
|
|
8545
|
+
let [n, r] = Zf(e, ["id"]), i = Q(), a = {
|
|
8546
|
+
id: d(),
|
|
8546
8547
|
...n
|
|
8547
|
-
}, o =
|
|
8548
|
-
return /* @__PURE__ */
|
|
8548
|
+
}, o = G(i.getItemGroupProps(a), r);
|
|
8549
|
+
return /* @__PURE__ */ _(Yf, {
|
|
8549
8550
|
value: a,
|
|
8550
|
-
children: /* @__PURE__ */
|
|
8551
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
8551
8552
|
...o,
|
|
8552
8553
|
ref: t
|
|
8553
8554
|
})
|
|
@@ -8556,9 +8557,9 @@ var Jf = (e) => e.children(Lf()), [Yf, Xf] = G({
|
|
|
8556
8557
|
Qf.displayName = "MenuItemGroup";
|
|
8557
8558
|
//#endregion
|
|
8558
8559
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js
|
|
8559
|
-
var $f =
|
|
8560
|
-
let n =
|
|
8561
|
-
return /* @__PURE__ */
|
|
8560
|
+
var $f = a((e, t) => {
|
|
8561
|
+
let n = Q(), r = Xf(), i = G(n.getItemGroupLabelProps({ htmlFor: r.id }), e);
|
|
8562
|
+
return /* @__PURE__ */ _(q.div, {
|
|
8562
8563
|
...i,
|
|
8563
8564
|
ref: t
|
|
8564
8565
|
});
|
|
@@ -8566,9 +8567,9 @@ var $f = i((e, t) => {
|
|
|
8566
8567
|
$f.displayName = "MenuItemGroupLabel";
|
|
8567
8568
|
//#endregion
|
|
8568
8569
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js
|
|
8569
|
-
var ep =
|
|
8570
|
-
let n =
|
|
8571
|
-
return /* @__PURE__ */
|
|
8570
|
+
var ep = a((e, t) => {
|
|
8571
|
+
let n = Q(), r = zf(), i = G(n.getItemIndicatorProps(r), e);
|
|
8572
|
+
return /* @__PURE__ */ _(q.div, {
|
|
8572
8573
|
...i,
|
|
8573
8574
|
ref: t
|
|
8574
8575
|
});
|
|
@@ -8576,9 +8577,9 @@ var ep = i((e, t) => {
|
|
|
8576
8577
|
ep.displayName = "MenuItemIndicator";
|
|
8577
8578
|
//#endregion
|
|
8578
8579
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js
|
|
8579
|
-
var tp =
|
|
8580
|
-
let n =
|
|
8581
|
-
return /* @__PURE__ */
|
|
8580
|
+
var tp = a((e, t) => {
|
|
8581
|
+
let n = Q(), r = zf(), i = G(n.getItemTextProps(r), e);
|
|
8582
|
+
return /* @__PURE__ */ _(q.div, {
|
|
8582
8583
|
...i,
|
|
8583
8584
|
ref: t
|
|
8584
8585
|
});
|
|
@@ -8586,9 +8587,9 @@ var tp = i((e, t) => {
|
|
|
8586
8587
|
tp.displayName = "MenuItemText";
|
|
8587
8588
|
//#endregion
|
|
8588
8589
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js
|
|
8589
|
-
var np =
|
|
8590
|
-
let n =
|
|
8591
|
-
return Ju().unmounted ? null : /* @__PURE__ */
|
|
8590
|
+
var np = a((e, t) => {
|
|
8591
|
+
let n = G(Q().getPositionerProps(), e);
|
|
8592
|
+
return Ju().unmounted ? null : /* @__PURE__ */ _(q.div, {
|
|
8592
8593
|
...n,
|
|
8593
8594
|
ref: t
|
|
8594
8595
|
});
|
|
@@ -8596,23 +8597,23 @@ var np = i((e, t) => {
|
|
|
8596
8597
|
np.displayName = "MenuPositioner";
|
|
8597
8598
|
//#endregion
|
|
8598
8599
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js
|
|
8599
|
-
var rp =
|
|
8600
|
+
var rp = J(), ip = a((e, t) => {
|
|
8600
8601
|
let [n, r] = rp(e, [
|
|
8601
8602
|
"closeOnSelect",
|
|
8602
8603
|
"disabled",
|
|
8603
8604
|
"value",
|
|
8604
8605
|
"valueText"
|
|
8605
|
-
]), i =
|
|
8606
|
+
]), i = Q(), a = Xf(), o = {
|
|
8606
8607
|
...n,
|
|
8607
8608
|
checked: a.value === n.value,
|
|
8608
8609
|
type: "radio",
|
|
8609
8610
|
onCheckedChange: () => a.onValueChange?.({ value: n.value })
|
|
8610
|
-
}, s =
|
|
8611
|
-
return /* @__PURE__ */
|
|
8611
|
+
}, s = G(i.getOptionItemProps(o), r);
|
|
8612
|
+
return /* @__PURE__ */ _(Rf, {
|
|
8612
8613
|
value: o,
|
|
8613
|
-
children: /* @__PURE__ */
|
|
8614
|
+
children: /* @__PURE__ */ _(If, {
|
|
8614
8615
|
value: i.getOptionItemState(o),
|
|
8615
|
-
children: /* @__PURE__ */
|
|
8616
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
8616
8617
|
...s,
|
|
8617
8618
|
ref: t
|
|
8618
8619
|
})
|
|
@@ -8622,18 +8623,18 @@ var rp = q(), ip = i((e, t) => {
|
|
|
8622
8623
|
ip.displayName = "MenuRadioItem";
|
|
8623
8624
|
//#endregion
|
|
8624
8625
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js
|
|
8625
|
-
var ap =
|
|
8626
|
+
var ap = J(), op = a((e, t) => {
|
|
8626
8627
|
let [n, r] = ap(e, [
|
|
8627
8628
|
"id",
|
|
8628
8629
|
"onValueChange",
|
|
8629
8630
|
"value"
|
|
8630
|
-
]), i =
|
|
8631
|
-
id:
|
|
8631
|
+
]), i = Q(), a = {
|
|
8632
|
+
id: d(),
|
|
8632
8633
|
...n
|
|
8633
|
-
}, o =
|
|
8634
|
-
return /* @__PURE__ */
|
|
8634
|
+
}, o = G(i.getItemGroupProps({ id: a.id }), r);
|
|
8635
|
+
return /* @__PURE__ */ _(Yf, {
|
|
8635
8636
|
value: a,
|
|
8636
|
-
children: /* @__PURE__ */
|
|
8637
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
8637
8638
|
...o,
|
|
8638
8639
|
ref: t
|
|
8639
8640
|
})
|
|
@@ -8643,7 +8644,7 @@ op.displayName = "MenuRadioItemGroup";
|
|
|
8643
8644
|
//#endregion
|
|
8644
8645
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/use-menu.js
|
|
8645
8646
|
var sp = (e) => {
|
|
8646
|
-
let t =
|
|
8647
|
+
let t = d(), { getRootNode: n } = $u(), { dir: r } = td(), i = Bu(Mf, {
|
|
8647
8648
|
id: t,
|
|
8648
8649
|
dir: r,
|
|
8649
8650
|
getRootNode: n,
|
|
@@ -8654,23 +8655,23 @@ var sp = (e) => {
|
|
|
8654
8655
|
service: i
|
|
8655
8656
|
};
|
|
8656
8657
|
}, cp = (e) => {
|
|
8657
|
-
let t =
|
|
8658
|
-
|
|
8658
|
+
let t = m(e), n = m(!1);
|
|
8659
|
+
u(() => {
|
|
8659
8660
|
t.current = e;
|
|
8660
|
-
}),
|
|
8661
|
+
}), u(() => {
|
|
8661
8662
|
n.current !== !0 && (n.current = !0, t.current());
|
|
8662
8663
|
}, []);
|
|
8663
|
-
}, [lp, up] =
|
|
8664
|
+
}, [lp, up] = K({
|
|
8664
8665
|
name: "MenuMachineContext",
|
|
8665
8666
|
hookName: "useMenuMachineContext",
|
|
8666
8667
|
providerName: "<MenuMachineProvider />",
|
|
8667
8668
|
strict: !1
|
|
8668
|
-
}), [dp, fp] =
|
|
8669
|
+
}), [dp, fp] = K({
|
|
8669
8670
|
name: "MenuMachineContext",
|
|
8670
8671
|
hookName: "useMenuMachineContext",
|
|
8671
8672
|
providerName: "<MenuMachineProvider />",
|
|
8672
8673
|
strict: !1
|
|
8673
|
-
}), pp =
|
|
8674
|
+
}), pp = J(), mp = (e) => {
|
|
8674
8675
|
let [t, n] = rd(e), [r, i] = pp(n, [
|
|
8675
8676
|
"anchorPoint",
|
|
8676
8677
|
"aria-label",
|
|
@@ -8697,16 +8698,16 @@ var sp = (e) => {
|
|
|
8697
8698
|
"triggerValue",
|
|
8698
8699
|
"defaultTriggerValue",
|
|
8699
8700
|
"typeahead"
|
|
8700
|
-
]), a =
|
|
8701
|
+
]), a = Q(), o = up(), { api: s, service: l } = sp(r), u = ld(G({ present: s.open }, t));
|
|
8701
8702
|
return cp(() => {
|
|
8702
|
-
o && a && (a.setChild(l),
|
|
8703
|
-
}), /* @__PURE__ */
|
|
8704
|
-
value:
|
|
8705
|
-
children: /* @__PURE__ */
|
|
8703
|
+
o && a && (a.setChild(l), s.setParent(o));
|
|
8704
|
+
}), /* @__PURE__ */ _(dp, {
|
|
8705
|
+
value: c(() => a?.getTriggerItemProps(s), [s, a]),
|
|
8706
|
+
children: /* @__PURE__ */ _(lp, {
|
|
8706
8707
|
value: l,
|
|
8707
|
-
children: /* @__PURE__ */
|
|
8708
|
-
value:
|
|
8709
|
-
children: /* @__PURE__ */
|
|
8708
|
+
children: /* @__PURE__ */ _(Nf, {
|
|
8709
|
+
value: s,
|
|
8710
|
+
children: /* @__PURE__ */ _(qu, {
|
|
8710
8711
|
value: u,
|
|
8711
8712
|
...i
|
|
8712
8713
|
})
|
|
@@ -8714,25 +8715,25 @@ var sp = (e) => {
|
|
|
8714
8715
|
})
|
|
8715
8716
|
});
|
|
8716
8717
|
}, hp = (e) => {
|
|
8717
|
-
let t =
|
|
8718
|
+
let t = Q(), n = up(), [r, { value: i, children: a }] = rd(e), { api: o, service: s } = i, l = ld(G({ present: o.open }, r));
|
|
8718
8719
|
return cp(() => {
|
|
8719
|
-
n && t && (t.setChild(
|
|
8720
|
-
}), /* @__PURE__ */
|
|
8721
|
-
value:
|
|
8722
|
-
children: /* @__PURE__ */
|
|
8723
|
-
value:
|
|
8724
|
-
children: /* @__PURE__ */
|
|
8720
|
+
n && t && (t.setChild(s), o.setParent(n));
|
|
8721
|
+
}), /* @__PURE__ */ _(dp, {
|
|
8722
|
+
value: c(() => t?.getTriggerItemProps(o), [o, t]),
|
|
8723
|
+
children: /* @__PURE__ */ _(lp, {
|
|
8724
|
+
value: s,
|
|
8725
|
+
children: /* @__PURE__ */ _(Nf, {
|
|
8725
8726
|
value: o,
|
|
8726
|
-
children: /* @__PURE__ */
|
|
8727
|
+
children: /* @__PURE__ */ _(qu, {
|
|
8727
8728
|
value: l,
|
|
8728
8729
|
children: a
|
|
8729
8730
|
})
|
|
8730
8731
|
})
|
|
8731
8732
|
})
|
|
8732
8733
|
});
|
|
8733
|
-
}, gp =
|
|
8734
|
-
let n =
|
|
8735
|
-
return /* @__PURE__ */
|
|
8734
|
+
}, gp = a((e, t) => {
|
|
8735
|
+
let n = G(Q().getSeparatorProps(), e);
|
|
8736
|
+
return /* @__PURE__ */ _(q.hr, {
|
|
8736
8737
|
...n,
|
|
8737
8738
|
ref: t
|
|
8738
8739
|
});
|
|
@@ -8740,12 +8741,12 @@ var sp = (e) => {
|
|
|
8740
8741
|
gp.displayName = "MenuSeparator";
|
|
8741
8742
|
//#endregion
|
|
8742
8743
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js
|
|
8743
|
-
var _p =
|
|
8744
|
-
let [n, r] = _p(e, ["value"]), i =
|
|
8744
|
+
var _p = J(), vp = a((e, t) => {
|
|
8745
|
+
let [n, r] = _p(e, ["value"]), i = Q(), a = Ju(), o = i.getTriggerProps(n), s = G({
|
|
8745
8746
|
...o,
|
|
8746
8747
|
"aria-controls": a.unmounted ? void 0 : o["aria-controls"]
|
|
8747
8748
|
}, r);
|
|
8748
|
-
return /* @__PURE__ */
|
|
8749
|
+
return /* @__PURE__ */ _(q.button, {
|
|
8749
8750
|
...s,
|
|
8750
8751
|
ref: t
|
|
8751
8752
|
});
|
|
@@ -8753,11 +8754,11 @@ var _p = q(), vp = i((e, t) => {
|
|
|
8753
8754
|
vp.displayName = "MenuTrigger";
|
|
8754
8755
|
//#endregion
|
|
8755
8756
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js
|
|
8756
|
-
var yp =
|
|
8757
|
-
let n =
|
|
8758
|
-
return /* @__PURE__ */
|
|
8757
|
+
var yp = a((e, t) => {
|
|
8758
|
+
let n = G(fp()?.() ?? {}, e);
|
|
8759
|
+
return /* @__PURE__ */ _(Rf, {
|
|
8759
8760
|
value: { value: n["data-value"] },
|
|
8760
|
-
children: /* @__PURE__ */
|
|
8761
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
8761
8762
|
...n,
|
|
8762
8763
|
ref: t
|
|
8763
8764
|
})
|
|
@@ -8766,7 +8767,7 @@ var yp = i((e, t) => {
|
|
|
8766
8767
|
yp.displayName = "MenuTriggerItem";
|
|
8767
8768
|
//#endregion
|
|
8768
8769
|
//#region ../../node_modules/@ark-ui/react/dist/components/menu/menu.js
|
|
8769
|
-
var
|
|
8770
|
+
var $ = /* @__PURE__ */ hd({
|
|
8770
8771
|
Arrow: () => Pf,
|
|
8771
8772
|
ArrowTip: () => Ff,
|
|
8772
8773
|
CheckboxItem: () => Vf,
|
|
@@ -8788,7 +8789,7 @@ var Q = /* @__PURE__ */ hd({
|
|
|
8788
8789
|
Separator: () => gp,
|
|
8789
8790
|
Trigger: () => vp,
|
|
8790
8791
|
TriggerItem: () => yp
|
|
8791
|
-
}), bp = vr("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator").build(), xp = (e) => e.ids?.root ?? `slider:${e.id}`, Sp = (e, t) => e.ids?.thumb?.(t) ?? `slider:${e.id}:thumb:${t}`, Cp = (e, t) => e.ids?.hiddenInput?.(t) ?? `slider:${e.id}:input:${t}`, wp = (e) => e.ids?.control ?? `slider:${e.id}:control`, Tp = (e) => e.ids?.track ?? `slider:${e.id}:track`, Ep = (e) => e.ids?.range ?? `slider:${e.id}:range`, Dp = (e) => e.ids?.label ?? `slider:${e.id}:label`, Op = (e) => e.ids?.valueText ?? `slider:${e.id}:value-text`, kp = (e, t) => e.ids?.marker?.(t) ?? `slider:${e.id}:marker:${t}`, Ap = (e) => e.getById(xp(e)), jp = (e, t) => e.getById(Sp(e, t)), Mp = (e) =>
|
|
8792
|
+
}), bp = vr("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator").build(), xp = (e) => e.ids?.root ?? `slider:${e.id}`, Sp = (e, t) => e.ids?.thumb?.(t) ?? `slider:${e.id}:thumb:${t}`, Cp = (e, t) => e.ids?.hiddenInput?.(t) ?? `slider:${e.id}:input:${t}`, wp = (e) => e.ids?.control ?? `slider:${e.id}:control`, Tp = (e) => e.ids?.track ?? `slider:${e.id}:track`, Ep = (e) => e.ids?.range ?? `slider:${e.id}:range`, Dp = (e) => e.ids?.label ?? `slider:${e.id}:label`, Op = (e) => e.ids?.valueText ?? `slider:${e.id}:value-text`, kp = (e, t) => e.ids?.marker?.(t) ?? `slider:${e.id}:marker:${t}`, Ap = (e) => e.getById(xp(e)), jp = (e, t) => e.getById(Sp(e, t)), Mp = (e) => wa(Fp(e), "[role=slider]"), Np = (e) => Mp(e)[0], Pp = (e, t) => e.getById(Cp(e, t)), Fp = (e) => e.getById(wp(e)), Ip = (e, t, n) => t === "contain" ? (n === "vertical" ? e?.height ?? 0 : e?.width ?? 0) / 2 : 0, Lp = (e, t) => {
|
|
8792
8793
|
let { context: n, prop: r, scope: i, refs: a } = e, o = Fp(i);
|
|
8793
8794
|
if (!o) return;
|
|
8794
8795
|
let s = a.get("thumbDragOffset");
|
|
@@ -8822,7 +8823,7 @@ function Rp(e, t, n) {
|
|
|
8822
8823
|
var zp = (e, t) => {
|
|
8823
8824
|
t.forEach((t, n) => {
|
|
8824
8825
|
let r = Pp(e, n);
|
|
8825
|
-
r &&
|
|
8826
|
+
r && Ii(r, { value: t });
|
|
8826
8827
|
});
|
|
8827
8828
|
}, Bp = (e) => ({
|
|
8828
8829
|
left: e?.offsetLeft ?? 0,
|
|
@@ -9135,11 +9136,11 @@ function pm(e, t) {
|
|
|
9135
9136
|
return t.label({
|
|
9136
9137
|
...bp.label.attrs,
|
|
9137
9138
|
dir: a("dir"),
|
|
9138
|
-
"data-disabled":
|
|
9139
|
+
"data-disabled": I(m),
|
|
9139
9140
|
"data-orientation": a("orientation"),
|
|
9140
|
-
"data-invalid":
|
|
9141
|
-
"data-dragging":
|
|
9142
|
-
"data-focus":
|
|
9141
|
+
"data-invalid": I(h),
|
|
9142
|
+
"data-dragging": I(p),
|
|
9143
|
+
"data-focus": I(f),
|
|
9143
9144
|
id: Dp(s),
|
|
9144
9145
|
htmlFor: Cp(s, 0),
|
|
9145
9146
|
onClick(e) {
|
|
@@ -9154,11 +9155,11 @@ function pm(e, t) {
|
|
|
9154
9155
|
getRootProps() {
|
|
9155
9156
|
return t.element({
|
|
9156
9157
|
...bp.root.attrs,
|
|
9157
|
-
"data-disabled":
|
|
9158
|
+
"data-disabled": I(m),
|
|
9158
9159
|
"data-orientation": a("orientation"),
|
|
9159
|
-
"data-dragging":
|
|
9160
|
-
"data-invalid":
|
|
9161
|
-
"data-focus":
|
|
9160
|
+
"data-dragging": I(p),
|
|
9161
|
+
"data-invalid": I(h),
|
|
9162
|
+
"data-focus": I(f),
|
|
9162
9163
|
id: xp(s),
|
|
9163
9164
|
dir: a("dir"),
|
|
9164
9165
|
style: Zp(e)
|
|
@@ -9168,10 +9169,10 @@ function pm(e, t) {
|
|
|
9168
9169
|
return t.element({
|
|
9169
9170
|
...bp.valueText.attrs,
|
|
9170
9171
|
dir: a("dir"),
|
|
9171
|
-
"data-disabled":
|
|
9172
|
+
"data-disabled": I(m),
|
|
9172
9173
|
"data-orientation": a("orientation"),
|
|
9173
|
-
"data-invalid":
|
|
9174
|
-
"data-focus":
|
|
9174
|
+
"data-invalid": I(h),
|
|
9175
|
+
"data-focus": I(f),
|
|
9175
9176
|
id: Op(s)
|
|
9176
9177
|
});
|
|
9177
9178
|
},
|
|
@@ -9180,11 +9181,11 @@ function pm(e, t) {
|
|
|
9180
9181
|
...bp.track.attrs,
|
|
9181
9182
|
dir: a("dir"),
|
|
9182
9183
|
id: Tp(s),
|
|
9183
|
-
"data-disabled":
|
|
9184
|
-
"data-invalid":
|
|
9185
|
-
"data-dragging":
|
|
9184
|
+
"data-disabled": I(m),
|
|
9185
|
+
"data-invalid": I(h),
|
|
9186
|
+
"data-dragging": I(p),
|
|
9186
9187
|
"data-orientation": a("orientation"),
|
|
9187
|
-
"data-focus":
|
|
9188
|
+
"data-focus": I(f),
|
|
9188
9189
|
style: { position: "relative" }
|
|
9189
9190
|
});
|
|
9190
9191
|
},
|
|
@@ -9199,10 +9200,10 @@ function pm(e, t) {
|
|
|
9199
9200
|
"data-index": i,
|
|
9200
9201
|
"data-name": o,
|
|
9201
9202
|
id: Sp(s, i),
|
|
9202
|
-
"data-disabled":
|
|
9203
|
+
"data-disabled": I(m),
|
|
9203
9204
|
"data-orientation": a("orientation"),
|
|
9204
|
-
"data-focus":
|
|
9205
|
-
"data-dragging":
|
|
9205
|
+
"data-focus": I(f && d === i),
|
|
9206
|
+
"data-dragging": I(p && d === i),
|
|
9206
9207
|
draggable: !1,
|
|
9207
9208
|
"aria-disabled": Or(m),
|
|
9208
9209
|
"aria-label": x,
|
|
@@ -9314,10 +9315,10 @@ function pm(e, t) {
|
|
|
9314
9315
|
id: Ep(s),
|
|
9315
9316
|
...bp.range.attrs,
|
|
9316
9317
|
dir: a("dir"),
|
|
9317
|
-
"data-dragging":
|
|
9318
|
-
"data-focus":
|
|
9319
|
-
"data-invalid":
|
|
9320
|
-
"data-disabled":
|
|
9318
|
+
"data-dragging": I(p),
|
|
9319
|
+
"data-focus": I(f),
|
|
9320
|
+
"data-invalid": I(h),
|
|
9321
|
+
"data-disabled": I(m),
|
|
9321
9322
|
"data-orientation": a("orientation"),
|
|
9322
9323
|
style: Up(e)
|
|
9323
9324
|
});
|
|
@@ -9327,11 +9328,11 @@ function pm(e, t) {
|
|
|
9327
9328
|
...bp.control.attrs,
|
|
9328
9329
|
dir: a("dir"),
|
|
9329
9330
|
id: wp(s),
|
|
9330
|
-
"data-dragging":
|
|
9331
|
-
"data-disabled":
|
|
9331
|
+
"data-dragging": I(p),
|
|
9332
|
+
"data-disabled": I(m),
|
|
9332
9333
|
"data-orientation": a("orientation"),
|
|
9333
|
-
"data-invalid":
|
|
9334
|
-
"data-focus":
|
|
9334
|
+
"data-invalid": I(h),
|
|
9335
|
+
"data-focus": I(f),
|
|
9335
9336
|
style: Xp(),
|
|
9336
9337
|
onPointerDown(e) {
|
|
9337
9338
|
g && xi(e) && (Ci(e) || (r({
|
|
@@ -9360,7 +9361,7 @@ function pm(e, t) {
|
|
|
9360
9361
|
dir: a("dir"),
|
|
9361
9362
|
"data-orientation": a("orientation"),
|
|
9362
9363
|
"data-value": n.value,
|
|
9363
|
-
"data-disabled":
|
|
9364
|
+
"data-disabled": I(m),
|
|
9364
9365
|
"data-state": i,
|
|
9365
9366
|
style: r
|
|
9366
9367
|
});
|
|
@@ -9552,7 +9553,7 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9552
9553
|
guards: { hasIndex: ({ event: e }) => e.index != null },
|
|
9553
9554
|
effects: {
|
|
9554
9555
|
trackFormControlState({ context: e, scope: t }) {
|
|
9555
|
-
return
|
|
9556
|
+
return Bi(Ap(t), {
|
|
9556
9557
|
onFieldsetDisabledChange(t) {
|
|
9557
9558
|
e.set("fieldsetDisabled", t);
|
|
9558
9559
|
},
|
|
@@ -9562,7 +9563,7 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9562
9563
|
});
|
|
9563
9564
|
},
|
|
9564
9565
|
trackPointerMove({ scope: e, send: t }) {
|
|
9565
|
-
return
|
|
9566
|
+
return Ca(e.getDoc(), {
|
|
9566
9567
|
onPointerMove(e) {
|
|
9567
9568
|
t({
|
|
9568
9569
|
type: "POINTER_MOVE",
|
|
@@ -9580,7 +9581,7 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9580
9581
|
let n = il(Bp(t), ["width", "height"]);
|
|
9581
9582
|
mm(e.get("thumbSize"), n) || e.set("thumbSize", n);
|
|
9582
9583
|
}, i = Mp(t);
|
|
9583
|
-
return i.forEach(r), Ac(...i.map((e) =>
|
|
9584
|
+
return i.forEach(r), Ac(...i.map((e) => ka.observe(e, () => r(e))));
|
|
9584
9585
|
}
|
|
9585
9586
|
},
|
|
9586
9587
|
actions: {
|
|
@@ -9589,7 +9590,7 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9589
9590
|
},
|
|
9590
9591
|
syncInputElements({ context: e, scope: t }) {
|
|
9591
9592
|
e.get("value").forEach((e, n) => {
|
|
9592
|
-
|
|
9593
|
+
Fi(Pp(t, n), e.toString());
|
|
9593
9594
|
});
|
|
9594
9595
|
},
|
|
9595
9596
|
invokeOnChangeEnd({ prop: e, context: t }) {
|
|
@@ -9632,7 +9633,7 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9632
9633
|
});
|
|
9633
9634
|
},
|
|
9634
9635
|
focusActiveThumb({ scope: e, context: t }) {
|
|
9635
|
-
|
|
9636
|
+
V(() => {
|
|
9636
9637
|
jp(e, t.get("focusedIndex"))?.focus({ preventScroll: !0 });
|
|
9637
9638
|
});
|
|
9638
9639
|
},
|
|
@@ -9662,13 +9663,13 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9662
9663
|
}
|
|
9663
9664
|
}
|
|
9664
9665
|
}
|
|
9665
|
-
}), [_m, vm] =
|
|
9666
|
+
}), [_m, vm] = K({
|
|
9666
9667
|
name: "SliderContext",
|
|
9667
9668
|
hookName: "useSliderContext",
|
|
9668
9669
|
providerName: "<SliderProvider />"
|
|
9669
|
-
}), ym = (e) => e.children(vm()), bm =
|
|
9670
|
-
let n =
|
|
9671
|
-
return /* @__PURE__ */
|
|
9670
|
+
}), ym = (e) => e.children(vm()), bm = a((e, t) => {
|
|
9671
|
+
let n = G(vm().getControlProps(), e);
|
|
9672
|
+
return /* @__PURE__ */ _(q.div, {
|
|
9672
9673
|
...n,
|
|
9673
9674
|
ref: t
|
|
9674
9675
|
});
|
|
@@ -9676,13 +9677,13 @@ var mm = (e, t) => e?.width === t?.width && e?.height === t?.height, hm = (e, t,
|
|
|
9676
9677
|
bm.displayName = "SliderControl";
|
|
9677
9678
|
//#endregion
|
|
9678
9679
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/use-slider-thumb-props-context.js
|
|
9679
|
-
var [xm, Sm] =
|
|
9680
|
+
var [xm, Sm] = K({
|
|
9680
9681
|
name: "SliderThumbPropsContext",
|
|
9681
9682
|
hookName: "useSliderThumbPropsContext",
|
|
9682
9683
|
providerName: "<SliderThumbPropsProvider />"
|
|
9683
|
-
}), Cm =
|
|
9684
|
-
let n = vm(), { index: r } = Sm(), i =
|
|
9685
|
-
return /* @__PURE__ */
|
|
9684
|
+
}), Cm = a((e, t) => {
|
|
9685
|
+
let n = vm(), { index: r } = Sm(), i = G(n.getDraggingIndicatorProps({ index: r }), e);
|
|
9686
|
+
return /* @__PURE__ */ _(q.span, {
|
|
9686
9687
|
...i,
|
|
9687
9688
|
ref: t,
|
|
9688
9689
|
children: e.children || n.getThumbValue(r)
|
|
@@ -9691,9 +9692,9 @@ var [xm, Sm] = G({
|
|
|
9691
9692
|
Cm.displayName = "SliderDraggingIndicator";
|
|
9692
9693
|
//#endregion
|
|
9693
9694
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-hidden-input.js
|
|
9694
|
-
var wm =
|
|
9695
|
-
let n = vm(), r = Sm(), i =
|
|
9696
|
-
return /* @__PURE__ */
|
|
9695
|
+
var wm = a((e, t) => {
|
|
9696
|
+
let n = vm(), r = Sm(), i = G(n.getHiddenInputProps(r), e);
|
|
9697
|
+
return /* @__PURE__ */ _(q.input, {
|
|
9697
9698
|
...i,
|
|
9698
9699
|
ref: t
|
|
9699
9700
|
});
|
|
@@ -9701,9 +9702,9 @@ var wm = i((e, t) => {
|
|
|
9701
9702
|
wm.displayName = "SliderHiddenInput";
|
|
9702
9703
|
//#endregion
|
|
9703
9704
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-label.js
|
|
9704
|
-
var Tm =
|
|
9705
|
-
let n =
|
|
9706
|
-
return /* @__PURE__ */
|
|
9705
|
+
var Tm = a((e, t) => {
|
|
9706
|
+
let n = G(vm().getLabelProps(), e);
|
|
9707
|
+
return /* @__PURE__ */ _(q.label, {
|
|
9707
9708
|
...n,
|
|
9708
9709
|
ref: t
|
|
9709
9710
|
});
|
|
@@ -9711,9 +9712,9 @@ var Tm = i((e, t) => {
|
|
|
9711
9712
|
Tm.displayName = "SliderLabel";
|
|
9712
9713
|
//#endregion
|
|
9713
9714
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-marker.js
|
|
9714
|
-
var Em =
|
|
9715
|
-
let [n, r] = Em(e, ["value"]), i =
|
|
9716
|
-
return /* @__PURE__ */
|
|
9715
|
+
var Em = J(), Dm = a((e, t) => {
|
|
9716
|
+
let [n, r] = Em(e, ["value"]), i = G(vm().getMarkerProps(n), r);
|
|
9717
|
+
return /* @__PURE__ */ _(q.span, {
|
|
9717
9718
|
...i,
|
|
9718
9719
|
ref: t
|
|
9719
9720
|
});
|
|
@@ -9721,9 +9722,9 @@ var Em = q(), Dm = i((e, t) => {
|
|
|
9721
9722
|
Dm.displayName = "SliderMarker";
|
|
9722
9723
|
//#endregion
|
|
9723
9724
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-marker-group.js
|
|
9724
|
-
var Om =
|
|
9725
|
-
let n =
|
|
9726
|
-
return /* @__PURE__ */
|
|
9725
|
+
var Om = a((e, t) => {
|
|
9726
|
+
let n = G(vm().getMarkerGroupProps(), e);
|
|
9727
|
+
return /* @__PURE__ */ _(q.div, {
|
|
9727
9728
|
...n,
|
|
9728
9729
|
ref: t
|
|
9729
9730
|
});
|
|
@@ -9731,9 +9732,9 @@ var Om = i((e, t) => {
|
|
|
9731
9732
|
Om.displayName = "SliderMarkerGroup";
|
|
9732
9733
|
//#endregion
|
|
9733
9734
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-range.js
|
|
9734
|
-
var km =
|
|
9735
|
-
let n =
|
|
9736
|
-
return /* @__PURE__ */
|
|
9735
|
+
var km = a((e, t) => {
|
|
9736
|
+
let n = G(vm().getRangeProps(), e);
|
|
9737
|
+
return /* @__PURE__ */ _(q.div, {
|
|
9737
9738
|
...n,
|
|
9738
9739
|
ref: t
|
|
9739
9740
|
});
|
|
@@ -9742,14 +9743,14 @@ km.displayName = "SliderRange";
|
|
|
9742
9743
|
//#endregion
|
|
9743
9744
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/use-slider.js
|
|
9744
9745
|
var Am = (e) => {
|
|
9745
|
-
let t =
|
|
9746
|
+
let t = d(), { getRootNode: n } = $u(), { dir: r } = td();
|
|
9746
9747
|
return pm(Bu(gm, {
|
|
9747
9748
|
id: t,
|
|
9748
9749
|
dir: r,
|
|
9749
9750
|
getRootNode: n,
|
|
9750
9751
|
...e
|
|
9751
9752
|
}), Wu);
|
|
9752
|
-
}, jm =
|
|
9753
|
+
}, jm = J(), Mm = a((e, t) => {
|
|
9753
9754
|
let [n, r] = jm(e, [
|
|
9754
9755
|
"aria-label",
|
|
9755
9756
|
"aria-labelledby",
|
|
@@ -9775,10 +9776,10 @@ var Am = (e) => {
|
|
|
9775
9776
|
"thumbCollisionBehavior",
|
|
9776
9777
|
"thumbSize",
|
|
9777
9778
|
"value"
|
|
9778
|
-
]), i = Am(n), a =
|
|
9779
|
-
return /* @__PURE__ */
|
|
9779
|
+
]), i = Am(n), a = G(i.getRootProps(), r);
|
|
9780
|
+
return /* @__PURE__ */ _(_m, {
|
|
9780
9781
|
value: i,
|
|
9781
|
-
children: /* @__PURE__ */
|
|
9782
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
9782
9783
|
...a,
|
|
9783
9784
|
ref: t
|
|
9784
9785
|
})
|
|
@@ -9787,11 +9788,11 @@ var Am = (e) => {
|
|
|
9787
9788
|
Mm.displayName = "SliderRoot";
|
|
9788
9789
|
//#endregion
|
|
9789
9790
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-root-provider.js
|
|
9790
|
-
var Nm =
|
|
9791
|
-
let [{ value: n }, r] = Nm(e, ["value"]), i =
|
|
9792
|
-
return /* @__PURE__ */
|
|
9791
|
+
var Nm = J(), Pm = a((e, t) => {
|
|
9792
|
+
let [{ value: n }, r] = Nm(e, ["value"]), i = G(n.getRootProps(), r);
|
|
9793
|
+
return /* @__PURE__ */ _(_m, {
|
|
9793
9794
|
value: n,
|
|
9794
|
-
children: /* @__PURE__ */
|
|
9795
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
9795
9796
|
...i,
|
|
9796
9797
|
ref: t
|
|
9797
9798
|
})
|
|
@@ -9800,11 +9801,11 @@ var Nm = q(), Pm = i((e, t) => {
|
|
|
9800
9801
|
Pm.displayName = "SliderRootProvider";
|
|
9801
9802
|
//#endregion
|
|
9802
9803
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-thumb.js
|
|
9803
|
-
var Fm =
|
|
9804
|
-
let [n, r] = Fm(e, ["index", "name"]), i =
|
|
9805
|
-
return /* @__PURE__ */
|
|
9804
|
+
var Fm = J(), Im = a((e, t) => {
|
|
9805
|
+
let [n, r] = Fm(e, ["index", "name"]), i = G(vm().getThumbProps(n), r);
|
|
9806
|
+
return /* @__PURE__ */ _(xm, {
|
|
9806
9807
|
value: n,
|
|
9807
|
-
children: /* @__PURE__ */
|
|
9808
|
+
children: /* @__PURE__ */ _(q.div, {
|
|
9808
9809
|
...i,
|
|
9809
9810
|
ref: t
|
|
9810
9811
|
})
|
|
@@ -9813,9 +9814,9 @@ var Fm = q(), Im = i((e, t) => {
|
|
|
9813
9814
|
Im.displayName = "SliderThumb";
|
|
9814
9815
|
//#endregion
|
|
9815
9816
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-track.js
|
|
9816
|
-
var Lm =
|
|
9817
|
-
let n =
|
|
9818
|
-
return /* @__PURE__ */
|
|
9817
|
+
var Lm = a((e, t) => {
|
|
9818
|
+
let n = G(vm().getTrackProps(), e);
|
|
9819
|
+
return /* @__PURE__ */ _(q.div, {
|
|
9819
9820
|
...n,
|
|
9820
9821
|
ref: t
|
|
9821
9822
|
});
|
|
@@ -9823,9 +9824,9 @@ var Lm = i((e, t) => {
|
|
|
9823
9824
|
Lm.displayName = "SliderTrack";
|
|
9824
9825
|
//#endregion
|
|
9825
9826
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider-value-text.js
|
|
9826
|
-
var Rm =
|
|
9827
|
-
let { children: n, ...r } = e, i = vm(), a =
|
|
9828
|
-
return /* @__PURE__ */
|
|
9827
|
+
var Rm = a((e, t) => {
|
|
9828
|
+
let { children: n, ...r } = e, i = vm(), a = G(i.getValueTextProps(), r);
|
|
9829
|
+
return /* @__PURE__ */ _(q.span, {
|
|
9829
9830
|
...a,
|
|
9830
9831
|
ref: t,
|
|
9831
9832
|
children: n || i.value.join(", ")
|
|
@@ -9834,7 +9835,7 @@ var Rm = i((e, t) => {
|
|
|
9834
9835
|
Rm.displayName = "SliderValueText";
|
|
9835
9836
|
//#endregion
|
|
9836
9837
|
//#region ../../node_modules/@ark-ui/react/dist/components/slider/slider.js
|
|
9837
|
-
var
|
|
9838
|
+
var zm = /* @__PURE__ */ hd({
|
|
9838
9839
|
Context: () => ym,
|
|
9839
9840
|
Control: () => bm,
|
|
9840
9841
|
DraggingIndicator: () => Cm,
|
|
@@ -9851,11 +9852,11 @@ var $ = /* @__PURE__ */ hd({
|
|
|
9851
9852
|
});
|
|
9852
9853
|
//#endregion
|
|
9853
9854
|
//#region src/components/player/controls.tsx
|
|
9854
|
-
function
|
|
9855
|
-
return /* @__PURE__ */
|
|
9855
|
+
function Bm({ label: e, tooltip: t, children: n, onClick: r, disabled: i = !1 }) {
|
|
9856
|
+
return /* @__PURE__ */ v(Y.Root, {
|
|
9856
9857
|
openDelay: 400,
|
|
9857
9858
|
closeDelay: 150,
|
|
9858
|
-
children: [/* @__PURE__ */
|
|
9859
|
+
children: [/* @__PURE__ */ _(Y.Trigger, {
|
|
9859
9860
|
type: "button",
|
|
9860
9861
|
onClick: i ? void 0 : r,
|
|
9861
9862
|
"aria-label": e,
|
|
@@ -9863,17 +9864,17 @@ function zm({ label: e, tooltip: t, children: n, onClick: r, disabled: i = !1 })
|
|
|
9863
9864
|
disabled: i,
|
|
9864
9865
|
className: "vplayer__button",
|
|
9865
9866
|
children: n
|
|
9866
|
-
}), /* @__PURE__ */
|
|
9867
|
+
}), /* @__PURE__ */ _(Y.Positioner, { children: /* @__PURE__ */ v(Y.Content, {
|
|
9867
9868
|
className: "vplayer__tooltip",
|
|
9868
|
-
children: [/* @__PURE__ */
|
|
9869
|
+
children: [/* @__PURE__ */ _(Y.Arrow, { children: /* @__PURE__ */ _(Y.ArrowTip, {}) }), t]
|
|
9869
9870
|
}) })]
|
|
9870
9871
|
});
|
|
9871
9872
|
}
|
|
9872
|
-
function
|
|
9873
|
-
return /* @__PURE__ */
|
|
9873
|
+
function Vm({ label: e, tooltip: t, selected: n, onChange: r, children: i, disabled: a = !1 }) {
|
|
9874
|
+
return /* @__PURE__ */ v(Y.Root, {
|
|
9874
9875
|
openDelay: 400,
|
|
9875
9876
|
closeDelay: 150,
|
|
9876
|
-
children: [/* @__PURE__ */
|
|
9877
|
+
children: [/* @__PURE__ */ _(Y.Trigger, {
|
|
9877
9878
|
type: "button",
|
|
9878
9879
|
onClick: a ? void 0 : r,
|
|
9879
9880
|
"aria-label": e,
|
|
@@ -9882,37 +9883,37 @@ function Bm({ label: e, tooltip: t, selected: n, onChange: r, children: i, disab
|
|
|
9882
9883
|
disabled: a,
|
|
9883
9884
|
className: "vplayer__button",
|
|
9884
9885
|
children: i
|
|
9885
|
-
}), /* @__PURE__ */
|
|
9886
|
+
}), /* @__PURE__ */ _(Y.Positioner, { children: /* @__PURE__ */ v(Y.Content, {
|
|
9886
9887
|
className: "vplayer__tooltip",
|
|
9887
|
-
children: [/* @__PURE__ */
|
|
9888
|
+
children: [/* @__PURE__ */ _(Y.Arrow, { children: /* @__PURE__ */ _(Y.ArrowTip, {}) }), t]
|
|
9888
9889
|
}) })]
|
|
9889
9890
|
});
|
|
9890
9891
|
}
|
|
9891
|
-
var
|
|
9892
|
-
let e =
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
}, [p,
|
|
9896
|
-
let C =
|
|
9892
|
+
var Hm = () => {
|
|
9893
|
+
let e = P("currentTime"), t = P("duration"), n = P("bufferedPercent"), r = P("thumbnailCues"), { thumbnailPreview: i } = N(), a = ct(), [o, s] = h(null), [l, d] = h(null), f = Number.isFinite(t) && t > 0 ? t : 0, p = f > 0 ? e / f * 100 : 0, m = l ?? p, g = o !== null && f > 0 ? o * f : null, y = i.enabled && g !== null ? qe(r, g) : null, b = y ? i.fit === "contain" ? Math.min(i.width / y.w, i.height / y.h) : Math.max(i.width / y.w, i.height / y.h) : 1, x = y ? y.w * b : 0, S = y ? y.h * b : 0;
|
|
9894
|
+
u(() => {
|
|
9895
|
+
l !== null && Math.abs(p - l) <= .5 && d(null);
|
|
9896
|
+
}, [p, l]);
|
|
9897
|
+
let C = c((e) => {
|
|
9897
9898
|
let t = e.currentTarget.getBoundingClientRect();
|
|
9898
|
-
|
|
9899
|
+
s(Math.max(0, Math.min(1, (e.clientX - t.left) / t.width)));
|
|
9899
9900
|
}, []);
|
|
9900
|
-
return /* @__PURE__ */
|
|
9901
|
+
return /* @__PURE__ */ v("div", {
|
|
9901
9902
|
className: "vplayer__seek",
|
|
9902
|
-
onMouseLeave: () =>
|
|
9903
|
+
onMouseLeave: () => s(null),
|
|
9903
9904
|
children: [
|
|
9904
|
-
o !== null && y && /* @__PURE__ */
|
|
9905
|
+
o !== null && y && /* @__PURE__ */ _("div", {
|
|
9905
9906
|
className: "vplayer__seek-preview",
|
|
9906
9907
|
style: { left: `${o * 100}%` },
|
|
9907
|
-
children: /* @__PURE__ */
|
|
9908
|
+
children: /* @__PURE__ */ v("div", {
|
|
9908
9909
|
className: "vplayer__seek-preview-inner",
|
|
9909
|
-
children: [/* @__PURE__ */
|
|
9910
|
+
children: [/* @__PURE__ */ _("div", {
|
|
9910
9911
|
className: "vplayer__seek-preview-frame",
|
|
9911
9912
|
style: {
|
|
9912
9913
|
width: i.width,
|
|
9913
9914
|
height: i.height
|
|
9914
9915
|
},
|
|
9915
|
-
children: /* @__PURE__ */
|
|
9916
|
+
children: /* @__PURE__ */ _("div", {
|
|
9916
9917
|
className: "vplayer__seek-preview-sprite",
|
|
9917
9918
|
style: {
|
|
9918
9919
|
width: y.w,
|
|
@@ -9922,73 +9923,73 @@ var Vm = () => {
|
|
|
9922
9923
|
transform: `translate(${(i.width - x) / 2}px, ${(i.height - S) / 2}px) scale(${b})`
|
|
9923
9924
|
}
|
|
9924
9925
|
})
|
|
9925
|
-
}), i.showTime && /* @__PURE__ */
|
|
9926
|
+
}), i.showTime && /* @__PURE__ */ _("span", {
|
|
9926
9927
|
className: "vplayer__seek-preview-time",
|
|
9927
|
-
children: nt(
|
|
9928
|
+
children: nt(g ?? 0)
|
|
9928
9929
|
})]
|
|
9929
9930
|
})
|
|
9930
9931
|
}),
|
|
9931
|
-
/* @__PURE__ */
|
|
9932
|
-
value: [
|
|
9932
|
+
/* @__PURE__ */ _(zm.Root, {
|
|
9933
|
+
value: [m],
|
|
9933
9934
|
onValueChange: (e) => d(e.value[0]),
|
|
9934
9935
|
onValueChangeEnd: (t) => a.seek(f ? t.value[0] / 100 * f : e),
|
|
9935
9936
|
min: 0,
|
|
9936
9937
|
max: 100,
|
|
9937
9938
|
step: .01,
|
|
9938
9939
|
className: "vplayer__seek-slider",
|
|
9939
|
-
children: /* @__PURE__ */
|
|
9940
|
+
children: /* @__PURE__ */ v(zm.Control, {
|
|
9940
9941
|
className: "vplayer__seek-slider-control",
|
|
9941
9942
|
onPointerMove: C,
|
|
9942
|
-
children: [/* @__PURE__ */
|
|
9943
|
+
children: [/* @__PURE__ */ v(zm.Track, {
|
|
9943
9944
|
className: "vplayer__seek-track",
|
|
9944
|
-
children: [/* @__PURE__ */
|
|
9945
|
+
children: [/* @__PURE__ */ _("div", {
|
|
9945
9946
|
className: "vplayer__seek-buffered",
|
|
9946
9947
|
style: { width: `${n}%` }
|
|
9947
|
-
}), /* @__PURE__ */
|
|
9948
|
-
}), /* @__PURE__ */
|
|
9948
|
+
}), /* @__PURE__ */ _(zm.Range, { className: "vplayer__seek-progress" })]
|
|
9949
|
+
}), /* @__PURE__ */ _(zm.Thumb, {
|
|
9949
9950
|
index: 0,
|
|
9950
9951
|
className: "vplayer__seek-thumb",
|
|
9951
|
-
children: /* @__PURE__ */
|
|
9952
|
+
children: /* @__PURE__ */ _(zm.HiddenInput, {})
|
|
9952
9953
|
})]
|
|
9953
9954
|
})
|
|
9954
9955
|
}),
|
|
9955
|
-
o !== null && !y && /* @__PURE__ */
|
|
9956
|
+
o !== null && !y && /* @__PURE__ */ _("div", {
|
|
9956
9957
|
className: "vplayer__seek-tooltip",
|
|
9957
9958
|
style: { left: `${o * 100}%` },
|
|
9958
|
-
children: nt(
|
|
9959
|
+
children: nt(g ?? 0)
|
|
9959
9960
|
})
|
|
9960
9961
|
]
|
|
9961
9962
|
});
|
|
9962
|
-
},
|
|
9963
|
-
let t =
|
|
9964
|
-
return /* @__PURE__ */
|
|
9963
|
+
}, Um = ({ size: e = 20 }) => {
|
|
9964
|
+
let t = P("isPlaying"), n = P("isEnded"), { labels: r, icons: i } = N();
|
|
9965
|
+
return /* @__PURE__ */ _(Vm, {
|
|
9965
9966
|
selected: t,
|
|
9966
9967
|
onChange: ct().togglePlay,
|
|
9967
9968
|
label: t ? r.pause : r.play,
|
|
9968
9969
|
tooltip: t ? `${r.pause} (k)` : `${r.play} (k)`,
|
|
9969
|
-
children: n ? /* @__PURE__ */
|
|
9970
|
+
children: n ? /* @__PURE__ */ _(F, {
|
|
9970
9971
|
icon: i.replay,
|
|
9971
9972
|
width: e
|
|
9972
|
-
}) : /* @__PURE__ */
|
|
9973
|
+
}) : /* @__PURE__ */ _(F, {
|
|
9973
9974
|
icon: t ? i.pause : i.play,
|
|
9974
9975
|
width: e,
|
|
9975
9976
|
fill: "currentColor"
|
|
9976
9977
|
})
|
|
9977
9978
|
});
|
|
9978
|
-
},
|
|
9979
|
-
let { icons: t } =
|
|
9980
|
-
return /* @__PURE__ */
|
|
9979
|
+
}, Wm = ({ seconds: e }) => {
|
|
9980
|
+
let { icons: t } = N(), n = ct(), r = e > 0, i = r ? `Skip forward ${e}s` : `Skip back ${Math.abs(e)}s`;
|
|
9981
|
+
return /* @__PURE__ */ _(Bm, {
|
|
9981
9982
|
label: i,
|
|
9982
9983
|
tooltip: i,
|
|
9983
9984
|
onClick: () => n.skip(e),
|
|
9984
|
-
children: /* @__PURE__ */
|
|
9985
|
+
children: /* @__PURE__ */ _(F, {
|
|
9985
9986
|
icon: r ? t.skipForward : t.skipBack,
|
|
9986
9987
|
width: 18
|
|
9987
9988
|
})
|
|
9988
9989
|
});
|
|
9989
|
-
},
|
|
9990
|
-
let e =
|
|
9991
|
-
return /* @__PURE__ */
|
|
9990
|
+
}, Gm = () => {
|
|
9991
|
+
let e = P("currentTime"), t = P("duration");
|
|
9992
|
+
return /* @__PURE__ */ v("span", {
|
|
9992
9993
|
className: "vplayer__time",
|
|
9993
9994
|
children: [
|
|
9994
9995
|
nt(e),
|
|
@@ -9996,45 +9997,45 @@ var Vm = () => {
|
|
|
9996
9997
|
nt(t)
|
|
9997
9998
|
]
|
|
9998
9999
|
});
|
|
9999
|
-
},
|
|
10000
|
-
let e =
|
|
10001
|
-
return /* @__PURE__ */
|
|
10000
|
+
}, Km = () => {
|
|
10001
|
+
let e = P("volume"), t = P("isMuted"), { labels: n, icons: r } = N(), i = ct(), [a, o] = h(!1);
|
|
10002
|
+
return /* @__PURE__ */ v("div", {
|
|
10002
10003
|
className: "vplayer__volume",
|
|
10003
10004
|
onMouseEnter: () => o(!0),
|
|
10004
10005
|
onMouseLeave: () => o(!1),
|
|
10005
|
-
children: [/* @__PURE__ */
|
|
10006
|
+
children: [/* @__PURE__ */ _(Vm, {
|
|
10006
10007
|
selected: !t,
|
|
10007
10008
|
onChange: i.toggleMute,
|
|
10008
10009
|
label: t ? n.unmute : n.mute,
|
|
10009
10010
|
tooltip: t ? `${n.unmute} (m)` : `${n.mute} (m)`,
|
|
10010
|
-
children: /* @__PURE__ */
|
|
10011
|
+
children: /* @__PURE__ */ _(F, {
|
|
10011
10012
|
icon: t || e === 0 ? r.volumeOff : e < .5 ? r.volumeLow : r.volumeHigh,
|
|
10012
10013
|
width: 16
|
|
10013
10014
|
})
|
|
10014
|
-
}), /* @__PURE__ */
|
|
10015
|
+
}), /* @__PURE__ */ _("div", {
|
|
10015
10016
|
className: ot("vplayer__volume-slider", a && "vplayer__volume-slider--visible"),
|
|
10016
|
-
children: /* @__PURE__ */
|
|
10017
|
+
children: /* @__PURE__ */ _(zm.Root, {
|
|
10017
10018
|
value: [t ? 0 : e * 100],
|
|
10018
10019
|
onValueChange: (e) => i.setVolume(e.value[0] / 100),
|
|
10019
10020
|
min: 0,
|
|
10020
10021
|
max: 100,
|
|
10021
10022
|
step: 1,
|
|
10022
10023
|
className: "vplayer__volume-slider-track",
|
|
10023
|
-
children: /* @__PURE__ */
|
|
10024
|
+
children: /* @__PURE__ */ v(zm.Control, {
|
|
10024
10025
|
className: "vplayer__seek-slider-control",
|
|
10025
|
-
children: [/* @__PURE__ */
|
|
10026
|
+
children: [/* @__PURE__ */ _(zm.Track, {
|
|
10026
10027
|
className: "vplayer__seek-track",
|
|
10027
|
-
children: /* @__PURE__ */
|
|
10028
|
-
}), /* @__PURE__ */
|
|
10028
|
+
children: /* @__PURE__ */ _(zm.Range, { className: "vplayer__volume-fill" })
|
|
10029
|
+
}), /* @__PURE__ */ _(zm.Thumb, {
|
|
10029
10030
|
index: 0,
|
|
10030
10031
|
className: "vplayer__volume-thumb",
|
|
10031
|
-
children: /* @__PURE__ */
|
|
10032
|
+
children: /* @__PURE__ */ _(zm.HiddenInput, {})
|
|
10032
10033
|
})]
|
|
10033
10034
|
})
|
|
10034
10035
|
})
|
|
10035
10036
|
})]
|
|
10036
10037
|
});
|
|
10037
|
-
},
|
|
10038
|
+
}, qm = [
|
|
10038
10039
|
"default",
|
|
10039
10040
|
"16:9",
|
|
10040
10041
|
"4:3",
|
|
@@ -10042,282 +10043,282 @@ var Vm = () => {
|
|
|
10042
10043
|
"cover",
|
|
10043
10044
|
"fill"
|
|
10044
10045
|
];
|
|
10045
|
-
function
|
|
10046
|
+
function Jm(e, t) {
|
|
10046
10047
|
return t === "default" ? e.aspectRatioDefault : t === "16:9" ? e.aspectRatio16 : t === "4:3" ? e.aspectRatio4 : t === "21:9" ? e.aspectRatio21 : t === "cover" ? e.aspectRatioCover : e.aspectRatioFill;
|
|
10047
10048
|
}
|
|
10048
|
-
var
|
|
10049
|
-
let { labels: e, icons: t } =
|
|
10050
|
-
return /* @__PURE__ */
|
|
10049
|
+
var Ym = () => {
|
|
10050
|
+
let { labels: e, icons: t } = N(), n = ct(), r = P("playbackRate"), i = P("qualities"), a = P("activeQuality"), o = P("subtitleTracks"), s = P("activeSubtitle"), c = P("flip"), l = P("aspectRatio"), [u, d] = h(!1), [f, p] = h("main");
|
|
10051
|
+
return /* @__PURE__ */ v($.Root, {
|
|
10051
10052
|
open: u,
|
|
10052
10053
|
onOpenChange: (e) => {
|
|
10053
10054
|
d(e.open), e.open && p("main");
|
|
10054
10055
|
},
|
|
10055
10056
|
closeOnSelect: !1,
|
|
10056
10057
|
positioning: { placement: "top-end" },
|
|
10057
|
-
children: [/* @__PURE__ */
|
|
10058
|
+
children: [/* @__PURE__ */ _($.Trigger, {
|
|
10058
10059
|
className: "vplayer__button vplayer__button--trigger",
|
|
10059
10060
|
"aria-label": e.settings,
|
|
10060
|
-
children: /* @__PURE__ */
|
|
10061
|
+
children: /* @__PURE__ */ _(F, {
|
|
10061
10062
|
icon: t.settings,
|
|
10062
10063
|
width: 18
|
|
10063
10064
|
})
|
|
10064
|
-
}), /* @__PURE__ */
|
|
10065
|
+
}), /* @__PURE__ */ _($.Positioner, {
|
|
10065
10066
|
className: "vplayer__menu-positioner",
|
|
10066
|
-
children: /* @__PURE__ */
|
|
10067
|
+
children: /* @__PURE__ */ v($.Content, {
|
|
10067
10068
|
className: "vplayer__menu-popover vplayer__menu",
|
|
10068
10069
|
children: [
|
|
10069
|
-
f === "main" && /* @__PURE__ */
|
|
10070
|
-
/* @__PURE__ */
|
|
10070
|
+
f === "main" && /* @__PURE__ */ v(g, { children: [
|
|
10071
|
+
/* @__PURE__ */ v($.Item, {
|
|
10071
10072
|
value: "speed",
|
|
10072
10073
|
onSelect: () => p("speed"),
|
|
10073
10074
|
className: "vplayer__menu-item",
|
|
10074
|
-
children: [/* @__PURE__ */
|
|
10075
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10075
10076
|
className: "vplayer__menu-label",
|
|
10076
10077
|
children: e.speed
|
|
10077
|
-
}), /* @__PURE__ */
|
|
10078
|
+
}), /* @__PURE__ */ v("span", {
|
|
10078
10079
|
className: "vplayer__menu-value",
|
|
10079
10080
|
children: [r, "x"]
|
|
10080
10081
|
})]
|
|
10081
10082
|
}),
|
|
10082
|
-
i.length > 0 && /* @__PURE__ */
|
|
10083
|
+
i.length > 0 && /* @__PURE__ */ v($.Item, {
|
|
10083
10084
|
value: "quality",
|
|
10084
10085
|
onSelect: () => p("quality"),
|
|
10085
10086
|
className: "vplayer__menu-item",
|
|
10086
|
-
children: [/* @__PURE__ */
|
|
10087
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10087
10088
|
className: "vplayer__menu-label",
|
|
10088
10089
|
children: e.quality
|
|
10089
|
-
}), /* @__PURE__ */
|
|
10090
|
+
}), /* @__PURE__ */ _("span", {
|
|
10090
10091
|
className: "vplayer__menu-value",
|
|
10091
10092
|
children: a
|
|
10092
10093
|
})]
|
|
10093
10094
|
}),
|
|
10094
|
-
o.length > 0 && /* @__PURE__ */
|
|
10095
|
+
o.length > 0 && /* @__PURE__ */ v($.Item, {
|
|
10095
10096
|
value: "subtitles",
|
|
10096
10097
|
onSelect: () => p("subtitles"),
|
|
10097
10098
|
className: "vplayer__menu-item",
|
|
10098
|
-
children: [/* @__PURE__ */
|
|
10099
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10099
10100
|
className: "vplayer__menu-label",
|
|
10100
10101
|
children: e.subtitles
|
|
10101
|
-
}), /* @__PURE__ */
|
|
10102
|
+
}), /* @__PURE__ */ _("span", {
|
|
10102
10103
|
className: "vplayer__menu-value vplayer__menu-value--truncate",
|
|
10103
10104
|
children: s?.label ?? e.off
|
|
10104
10105
|
})]
|
|
10105
10106
|
}),
|
|
10106
|
-
/* @__PURE__ */
|
|
10107
|
+
/* @__PURE__ */ v($.Item, {
|
|
10107
10108
|
value: "flip",
|
|
10108
10109
|
onSelect: () => p("flip"),
|
|
10109
10110
|
className: "vplayer__menu-item",
|
|
10110
10111
|
children: [
|
|
10111
|
-
/* @__PURE__ */
|
|
10112
|
+
/* @__PURE__ */ _(F, {
|
|
10112
10113
|
icon: t.flip,
|
|
10113
10114
|
width: 14,
|
|
10114
10115
|
className: "vplayer__menu-icon"
|
|
10115
10116
|
}),
|
|
10116
|
-
/* @__PURE__ */
|
|
10117
|
+
/* @__PURE__ */ _("span", {
|
|
10117
10118
|
className: "vplayer__menu-label",
|
|
10118
10119
|
children: e.flip
|
|
10119
10120
|
}),
|
|
10120
|
-
/* @__PURE__ */
|
|
10121
|
+
/* @__PURE__ */ _("span", {
|
|
10121
10122
|
className: "vplayer__menu-value",
|
|
10122
10123
|
children: e.flipNormal
|
|
10123
10124
|
})
|
|
10124
10125
|
]
|
|
10125
10126
|
}),
|
|
10126
|
-
/* @__PURE__ */
|
|
10127
|
+
/* @__PURE__ */ v($.Item, {
|
|
10127
10128
|
value: "aspectRatio",
|
|
10128
10129
|
onSelect: () => p("aspectRatio"),
|
|
10129
10130
|
className: "vplayer__menu-item",
|
|
10130
10131
|
children: [
|
|
10131
|
-
/* @__PURE__ */
|
|
10132
|
+
/* @__PURE__ */ _(F, {
|
|
10132
10133
|
icon: t.aspectRatio,
|
|
10133
10134
|
width: 14,
|
|
10134
10135
|
className: "vplayer__menu-icon"
|
|
10135
10136
|
}),
|
|
10136
|
-
/* @__PURE__ */
|
|
10137
|
+
/* @__PURE__ */ _("span", {
|
|
10137
10138
|
className: "vplayer__menu-label",
|
|
10138
10139
|
children: e.aspectRatio
|
|
10139
10140
|
}),
|
|
10140
|
-
/* @__PURE__ */
|
|
10141
|
+
/* @__PURE__ */ _("span", {
|
|
10141
10142
|
className: "vplayer__menu-value",
|
|
10142
|
-
children:
|
|
10143
|
+
children: Jm(e, l)
|
|
10143
10144
|
})
|
|
10144
10145
|
]
|
|
10145
10146
|
})
|
|
10146
10147
|
] }),
|
|
10147
|
-
f === "speed" && /* @__PURE__ */
|
|
10148
|
-
/* @__PURE__ */
|
|
10148
|
+
f === "speed" && /* @__PURE__ */ v(g, { children: [
|
|
10149
|
+
/* @__PURE__ */ v($.Item, {
|
|
10149
10150
|
value: "back",
|
|
10150
10151
|
onSelect: () => p("main"),
|
|
10151
10152
|
className: "vplayer__menu-item",
|
|
10152
|
-
children: [/* @__PURE__ */
|
|
10153
|
+
children: [/* @__PURE__ */ _(F, {
|
|
10153
10154
|
icon: t.chevronLeft,
|
|
10154
10155
|
width: 14,
|
|
10155
10156
|
className: "vplayer__menu-icon"
|
|
10156
|
-
}), /* @__PURE__ */
|
|
10157
|
+
}), /* @__PURE__ */ _("span", {
|
|
10157
10158
|
className: "vplayer__menu-label",
|
|
10158
10159
|
children: e.speed
|
|
10159
10160
|
})]
|
|
10160
10161
|
}),
|
|
10161
|
-
/* @__PURE__ */
|
|
10162
|
+
/* @__PURE__ */ _($.Separator, { className: "vplayer__menu-separator" }),
|
|
10162
10163
|
[
|
|
10163
10164
|
.5,
|
|
10164
10165
|
1,
|
|
10165
10166
|
1.25,
|
|
10166
10167
|
1.5,
|
|
10167
10168
|
2
|
|
10168
|
-
].map((e) => /* @__PURE__ */
|
|
10169
|
+
].map((e) => /* @__PURE__ */ v($.Item, {
|
|
10169
10170
|
value: `speed-${e}`,
|
|
10170
10171
|
onSelect: () => {
|
|
10171
10172
|
n.setPlaybackRate(Number(e)), d(!1);
|
|
10172
10173
|
},
|
|
10173
10174
|
className: "vplayer__menu-item",
|
|
10174
|
-
children: [/* @__PURE__ */
|
|
10175
|
+
children: [/* @__PURE__ */ v("span", {
|
|
10175
10176
|
className: r === e ? "vplayer__menu-value--active" : "vplayer__menu-value--inactive",
|
|
10176
10177
|
children: [e, "x"]
|
|
10177
|
-
}), r === e && /* @__PURE__ */
|
|
10178
|
+
}), r === e && /* @__PURE__ */ _(F, {
|
|
10178
10179
|
icon: t.check,
|
|
10179
10180
|
width: 14,
|
|
10180
10181
|
className: "vplayer__menu-check"
|
|
10181
10182
|
})]
|
|
10182
10183
|
}, String(e)))
|
|
10183
10184
|
] }),
|
|
10184
|
-
f === "quality" && /* @__PURE__ */
|
|
10185
|
-
/* @__PURE__ */
|
|
10185
|
+
f === "quality" && /* @__PURE__ */ v(g, { children: [
|
|
10186
|
+
/* @__PURE__ */ v($.Item, {
|
|
10186
10187
|
value: "back",
|
|
10187
10188
|
onSelect: () => p("main"),
|
|
10188
10189
|
className: "vplayer__menu-item",
|
|
10189
|
-
children: [/* @__PURE__ */
|
|
10190
|
+
children: [/* @__PURE__ */ _(F, {
|
|
10190
10191
|
icon: t.chevronLeft,
|
|
10191
10192
|
width: 14,
|
|
10192
10193
|
className: "vplayer__menu-icon"
|
|
10193
|
-
}), /* @__PURE__ */
|
|
10194
|
+
}), /* @__PURE__ */ _("span", {
|
|
10194
10195
|
className: "vplayer__menu-label",
|
|
10195
10196
|
children: e.quality
|
|
10196
10197
|
})]
|
|
10197
10198
|
}),
|
|
10198
|
-
/* @__PURE__ */
|
|
10199
|
-
i.map((e) => /* @__PURE__ */
|
|
10199
|
+
/* @__PURE__ */ _($.Separator, { className: "vplayer__menu-separator" }),
|
|
10200
|
+
i.map((e) => /* @__PURE__ */ v($.Item, {
|
|
10200
10201
|
value: `quality-${e}`,
|
|
10201
10202
|
onSelect: () => {
|
|
10202
10203
|
n.setActiveQuality(e), d(!1);
|
|
10203
10204
|
},
|
|
10204
10205
|
className: "vplayer__menu-item",
|
|
10205
|
-
children: [/* @__PURE__ */
|
|
10206
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10206
10207
|
className: a === e ? "vplayer__menu-value--active" : "vplayer__menu-value--inactive",
|
|
10207
10208
|
children: e
|
|
10208
|
-
}), a === e && /* @__PURE__ */
|
|
10209
|
+
}), a === e && /* @__PURE__ */ _(F, {
|
|
10209
10210
|
icon: t.check,
|
|
10210
10211
|
width: 14,
|
|
10211
10212
|
className: "vplayer__menu-check"
|
|
10212
10213
|
})]
|
|
10213
10214
|
}, e))
|
|
10214
10215
|
] }),
|
|
10215
|
-
f === "flip" && /* @__PURE__ */
|
|
10216
|
-
/* @__PURE__ */
|
|
10216
|
+
f === "flip" && /* @__PURE__ */ v(g, { children: [
|
|
10217
|
+
/* @__PURE__ */ v($.Item, {
|
|
10217
10218
|
value: "back",
|
|
10218
10219
|
onSelect: () => p("main"),
|
|
10219
10220
|
className: "vplayer__menu-item",
|
|
10220
|
-
children: [/* @__PURE__ */
|
|
10221
|
+
children: [/* @__PURE__ */ _(F, {
|
|
10221
10222
|
icon: t.chevronLeft,
|
|
10222
10223
|
width: 14,
|
|
10223
10224
|
className: "vplayer__menu-icon"
|
|
10224
|
-
}), /* @__PURE__ */
|
|
10225
|
+
}), /* @__PURE__ */ _("span", {
|
|
10225
10226
|
className: "vplayer__menu-label",
|
|
10226
10227
|
children: e.flip
|
|
10227
10228
|
})]
|
|
10228
10229
|
}),
|
|
10229
|
-
/* @__PURE__ */
|
|
10230
|
+
/* @__PURE__ */ _($.Separator, { className: "vplayer__menu-separator" }),
|
|
10230
10231
|
[
|
|
10231
10232
|
"normal",
|
|
10232
10233
|
"horizontal",
|
|
10233
10234
|
"vertical"
|
|
10234
|
-
].map((r) => /* @__PURE__ */
|
|
10235
|
+
].map((r) => /* @__PURE__ */ v($.Item, {
|
|
10235
10236
|
value: `flip-${r}`,
|
|
10236
10237
|
onSelect: () => {
|
|
10237
10238
|
n.setFlip(r), d(!1);
|
|
10238
10239
|
},
|
|
10239
10240
|
className: "vplayer__menu-item",
|
|
10240
|
-
children: [/* @__PURE__ */
|
|
10241
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10241
10242
|
className: c === r ? "vplayer__menu-value--active" : "vplayer__menu-value--inactive",
|
|
10242
10243
|
children: r === "normal" ? e.flipNormal : r === "horizontal" ? e.flipHorizontal : e.flipVertical
|
|
10243
|
-
}), c === r && /* @__PURE__ */
|
|
10244
|
+
}), c === r && /* @__PURE__ */ _(F, {
|
|
10244
10245
|
icon: t.check,
|
|
10245
10246
|
width: 14,
|
|
10246
10247
|
className: "vplayer__menu-check"
|
|
10247
10248
|
})]
|
|
10248
10249
|
}, r))
|
|
10249
10250
|
] }),
|
|
10250
|
-
f === "aspectRatio" && /* @__PURE__ */
|
|
10251
|
-
/* @__PURE__ */
|
|
10251
|
+
f === "aspectRatio" && /* @__PURE__ */ v(g, { children: [
|
|
10252
|
+
/* @__PURE__ */ v($.Item, {
|
|
10252
10253
|
value: "back",
|
|
10253
10254
|
onSelect: () => p("main"),
|
|
10254
10255
|
className: "vplayer__menu-item",
|
|
10255
|
-
children: [/* @__PURE__ */
|
|
10256
|
+
children: [/* @__PURE__ */ _(F, {
|
|
10256
10257
|
icon: t.chevronLeft,
|
|
10257
10258
|
width: 14,
|
|
10258
10259
|
className: "vplayer__menu-icon"
|
|
10259
|
-
}), /* @__PURE__ */
|
|
10260
|
+
}), /* @__PURE__ */ _("span", {
|
|
10260
10261
|
className: "vplayer__menu-label",
|
|
10261
10262
|
children: e.aspectRatio
|
|
10262
10263
|
})]
|
|
10263
10264
|
}),
|
|
10264
|
-
/* @__PURE__ */
|
|
10265
|
-
|
|
10265
|
+
/* @__PURE__ */ _($.Separator, { className: "vplayer__menu-separator" }),
|
|
10266
|
+
qm.map((r) => /* @__PURE__ */ v($.Item, {
|
|
10266
10267
|
value: `aspect-${r}`,
|
|
10267
10268
|
onSelect: () => {
|
|
10268
10269
|
n.setAspectRatio(r), d(!1);
|
|
10269
10270
|
},
|
|
10270
10271
|
className: "vplayer__menu-item",
|
|
10271
|
-
children: [/* @__PURE__ */
|
|
10272
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10272
10273
|
className: l === r ? "vplayer__menu-value--active" : "vplayer__menu-value--inactive",
|
|
10273
|
-
children:
|
|
10274
|
-
}), l === r && /* @__PURE__ */
|
|
10274
|
+
children: Jm(e, r)
|
|
10275
|
+
}), l === r && /* @__PURE__ */ _(F, {
|
|
10275
10276
|
icon: t.check,
|
|
10276
10277
|
width: 14,
|
|
10277
10278
|
className: "vplayer__menu-check"
|
|
10278
10279
|
})]
|
|
10279
10280
|
}, r))
|
|
10280
10281
|
] }),
|
|
10281
|
-
f === "subtitles" && /* @__PURE__ */
|
|
10282
|
-
/* @__PURE__ */
|
|
10282
|
+
f === "subtitles" && /* @__PURE__ */ v(g, { children: [
|
|
10283
|
+
/* @__PURE__ */ v($.Item, {
|
|
10283
10284
|
value: "back",
|
|
10284
10285
|
onSelect: () => p("main"),
|
|
10285
10286
|
className: "vplayer__menu-item",
|
|
10286
|
-
children: [/* @__PURE__ */
|
|
10287
|
+
children: [/* @__PURE__ */ _(F, {
|
|
10287
10288
|
icon: t.chevronLeft,
|
|
10288
10289
|
width: 14,
|
|
10289
10290
|
className: "vplayer__menu-icon"
|
|
10290
|
-
}), /* @__PURE__ */
|
|
10291
|
+
}), /* @__PURE__ */ _("span", {
|
|
10291
10292
|
className: "vplayer__menu-label",
|
|
10292
10293
|
children: e.subtitles
|
|
10293
10294
|
})]
|
|
10294
10295
|
}),
|
|
10295
|
-
/* @__PURE__ */
|
|
10296
|
-
/* @__PURE__ */
|
|
10296
|
+
/* @__PURE__ */ _($.Separator, { className: "vplayer__menu-separator" }),
|
|
10297
|
+
/* @__PURE__ */ v($.Item, {
|
|
10297
10298
|
value: "off",
|
|
10298
10299
|
onSelect: () => {
|
|
10299
10300
|
n.setActiveSubtitle(null), d(!1);
|
|
10300
10301
|
},
|
|
10301
10302
|
className: "vplayer__menu-item",
|
|
10302
|
-
children: [/* @__PURE__ */
|
|
10303
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10303
10304
|
className: s ? "vplayer__menu-value--inactive" : "vplayer__menu-value--active",
|
|
10304
10305
|
children: e.off
|
|
10305
|
-
}), !s && /* @__PURE__ */
|
|
10306
|
+
}), !s && /* @__PURE__ */ _(F, {
|
|
10306
10307
|
icon: t.check,
|
|
10307
10308
|
width: 14,
|
|
10308
10309
|
className: "vplayer__menu-check"
|
|
10309
10310
|
})]
|
|
10310
10311
|
}),
|
|
10311
|
-
o.map((e) => /* @__PURE__ */
|
|
10312
|
+
o.map((e) => /* @__PURE__ */ v($.Item, {
|
|
10312
10313
|
value: `sub-${e.lang}`,
|
|
10313
10314
|
onSelect: () => {
|
|
10314
10315
|
n.setActiveSubtitle(o.find((t) => t.lang === e.lang) ?? null), d(!1);
|
|
10315
10316
|
},
|
|
10316
10317
|
className: "vplayer__menu-item",
|
|
10317
|
-
children: [/* @__PURE__ */
|
|
10318
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10318
10319
|
className: s?.lang === e.lang ? "vplayer__menu-value--active" : "vplayer__menu-value--inactive",
|
|
10319
10320
|
children: e.label
|
|
10320
|
-
}), s?.lang === e.lang && /* @__PURE__ */
|
|
10321
|
+
}), s?.lang === e.lang && /* @__PURE__ */ _(F, {
|
|
10321
10322
|
icon: t.check,
|
|
10322
10323
|
width: 14,
|
|
10323
10324
|
className: "vplayer__menu-check"
|
|
@@ -10328,77 +10329,77 @@ var Jm = () => {
|
|
|
10328
10329
|
})
|
|
10329
10330
|
})]
|
|
10330
10331
|
});
|
|
10331
|
-
},
|
|
10332
|
-
let { labels: e, icons: t } =
|
|
10333
|
-
return n.enabled ? /* @__PURE__ */
|
|
10332
|
+
}, Xm = () => {
|
|
10333
|
+
let { labels: e, icons: t } = N(), n = lt();
|
|
10334
|
+
return n.enabled ? /* @__PURE__ */ _(Vm, {
|
|
10334
10335
|
selected: n.active,
|
|
10335
10336
|
onChange: n.toggle,
|
|
10336
10337
|
label: n.active ? e.exitMiniPlayer : e.miniPlayer,
|
|
10337
10338
|
tooltip: n.active ? e.exitMiniPlayer : e.miniPlayer,
|
|
10338
|
-
children: /* @__PURE__ */
|
|
10339
|
+
children: /* @__PURE__ */ _(F, {
|
|
10339
10340
|
icon: n.active ? t.close : t.miniPlayer,
|
|
10340
10341
|
width: 16
|
|
10341
10342
|
})
|
|
10342
10343
|
}) : null;
|
|
10343
|
-
},
|
|
10344
|
-
let { labels: e, icons: t } =
|
|
10345
|
-
return /* @__PURE__ */
|
|
10344
|
+
}, Zm = () => {
|
|
10345
|
+
let { labels: e, icons: t } = N(), n = P("capabilities"), r = ct(), i = typeof document < "u" && !!document.pictureInPictureElement;
|
|
10346
|
+
return /* @__PURE__ */ _(Vm, {
|
|
10346
10347
|
selected: i,
|
|
10347
10348
|
onChange: r.togglePiP,
|
|
10348
10349
|
label: i ? e.pipExit : e.pip,
|
|
10349
10350
|
tooltip: i ? e.pipExit : e.pip,
|
|
10350
10351
|
disabled: !n.pictureInPicture,
|
|
10351
|
-
children: /* @__PURE__ */
|
|
10352
|
+
children: /* @__PURE__ */ _(F, {
|
|
10352
10353
|
icon: t.pip,
|
|
10353
10354
|
width: 16
|
|
10354
10355
|
})
|
|
10355
10356
|
});
|
|
10356
|
-
},
|
|
10357
|
-
let e =
|
|
10358
|
-
return /* @__PURE__ */
|
|
10357
|
+
}, Qm = () => {
|
|
10358
|
+
let e = P("isFullscreen"), t = P("capabilities"), { labels: n, icons: r } = N();
|
|
10359
|
+
return /* @__PURE__ */ _(Vm, {
|
|
10359
10360
|
selected: e,
|
|
10360
10361
|
onChange: ct().toggleFullscreen,
|
|
10361
10362
|
label: e ? n.fullscreenExit : n.fullscreen,
|
|
10362
10363
|
tooltip: e ? `${n.fullscreenExit} (f)` : `${n.fullscreen} (f)`,
|
|
10363
10364
|
disabled: !t.fullscreen,
|
|
10364
|
-
children: /* @__PURE__ */
|
|
10365
|
+
children: /* @__PURE__ */ _(F, {
|
|
10365
10366
|
icon: e ? r.fullscreenExit : r.fullscreen,
|
|
10366
10367
|
width: 18
|
|
10367
10368
|
})
|
|
10368
10369
|
});
|
|
10369
|
-
},
|
|
10370
|
-
function
|
|
10370
|
+
}, $m = () => /* @__PURE__ */ _(g, { children: P("controls").filter((e) => e.position === "left").toSorted(rh).map(ah) }), eh = () => /* @__PURE__ */ _(g, { children: P("controls").filter((e) => e.position === "right").toSorted(rh).map(ah) }), th = () => /* @__PURE__ */ _(g, { children: P("controls").filter((e) => e.position === "top").toSorted(rh).map(ah) }), nh = () => /* @__PURE__ */ _(g, { children: P("controls").filter((e) => e.position === "center").toSorted(rh).map(ah) });
|
|
10371
|
+
function rh(e, t) {
|
|
10371
10372
|
return e.index - t.index;
|
|
10372
10373
|
}
|
|
10373
|
-
var
|
|
10374
|
+
var ih = ({ def: e }) => {
|
|
10374
10375
|
let t = ut(), n = e.render;
|
|
10375
|
-
return /* @__PURE__ */
|
|
10376
|
+
return /* @__PURE__ */ _(n, { api: t });
|
|
10376
10377
|
};
|
|
10377
|
-
function
|
|
10378
|
-
return /* @__PURE__ */
|
|
10378
|
+
function ah(e) {
|
|
10379
|
+
return /* @__PURE__ */ _(ih, { def: e }, e.name);
|
|
10379
10380
|
}
|
|
10380
|
-
var
|
|
10381
|
-
let e =
|
|
10381
|
+
var oh = () => {
|
|
10382
|
+
let e = P("layers");
|
|
10382
10383
|
if (e.length === 0) return null;
|
|
10383
10384
|
let t = ut();
|
|
10384
|
-
return /* @__PURE__ */ g
|
|
10385
|
+
return /* @__PURE__ */ _(g, { children: e.map((e) => {
|
|
10385
10386
|
let n = e.render;
|
|
10386
|
-
return /* @__PURE__ */
|
|
10387
|
+
return /* @__PURE__ */ _(n, { api: t }, e.name);
|
|
10387
10388
|
}) });
|
|
10388
|
-
},
|
|
10389
|
-
let e =
|
|
10389
|
+
}, sh = () => {
|
|
10390
|
+
let e = P("settings");
|
|
10390
10391
|
if (e.length === 0) return null;
|
|
10391
10392
|
let t = ut();
|
|
10392
|
-
return /* @__PURE__ */ g
|
|
10393
|
+
return /* @__PURE__ */ _(g, { children: e.map((e) => {
|
|
10393
10394
|
if (e.render) {
|
|
10394
10395
|
let n = e.render;
|
|
10395
|
-
return /* @__PURE__ */
|
|
10396
|
+
return /* @__PURE__ */ _(n, { api: t }, e.name);
|
|
10396
10397
|
}
|
|
10397
10398
|
return null;
|
|
10398
10399
|
}) });
|
|
10399
|
-
},
|
|
10400
|
-
let e =
|
|
10401
|
-
return
|
|
10400
|
+
}, ch = () => {
|
|
10401
|
+
let e = P("notification"), t = ut().store, [n, r] = h(!1);
|
|
10402
|
+
return u(() => {
|
|
10402
10403
|
if (!e) {
|
|
10403
10404
|
r(!1);
|
|
10404
10405
|
return;
|
|
@@ -10411,97 +10412,97 @@ var ah = () => {
|
|
|
10411
10412
|
}));
|
|
10412
10413
|
}, e.duration);
|
|
10413
10414
|
return () => clearTimeout(n);
|
|
10414
|
-
}, [e, t]), !n || !e ? null : /* @__PURE__ */
|
|
10415
|
+
}, [e, t]), !n || !e ? null : /* @__PURE__ */ _("div", {
|
|
10415
10416
|
className: "vplayer__notice",
|
|
10416
|
-
children: /* @__PURE__ */
|
|
10417
|
+
children: /* @__PURE__ */ _("div", {
|
|
10417
10418
|
className: "vplayer__notice-inner",
|
|
10418
10419
|
children: e.message
|
|
10419
10420
|
})
|
|
10420
10421
|
});
|
|
10421
|
-
},
|
|
10422
|
-
className: ot("vplayer__controls", !
|
|
10423
|
-
children: [/* @__PURE__ */
|
|
10422
|
+
}, lh = ({ children: e }) => /* @__PURE__ */ v("div", {
|
|
10423
|
+
className: ot("vplayer__controls", !P("controlsVisible") && "vplayer__controls--hidden"),
|
|
10424
|
+
children: [/* @__PURE__ */ _("div", { className: "vplayer__controls-backdrop" }), /* @__PURE__ */ _("div", {
|
|
10424
10425
|
className: "vplayer__controls-content",
|
|
10425
10426
|
children: e
|
|
10426
10427
|
})]
|
|
10427
|
-
}),
|
|
10428
|
-
let e =
|
|
10429
|
-
return /* @__PURE__ */
|
|
10430
|
-
/* @__PURE__ */
|
|
10431
|
-
/* @__PURE__ */
|
|
10428
|
+
}), uh = () => /* @__PURE__ */ _("div", { className: "vplayer__spacer" }), dh = () => {
|
|
10429
|
+
let e = P("controlsVisible"), t = P("isPlaying"), n = P("isEnded"), { labels: r, icons: i, slots: a, miniPlayer: o } = N();
|
|
10430
|
+
return /* @__PURE__ */ v(g, { children: [
|
|
10431
|
+
/* @__PURE__ */ _(th, {}),
|
|
10432
|
+
/* @__PURE__ */ v("div", {
|
|
10432
10433
|
className: ot("vplayer__mini-chrome", !e && t && "vplayer__mini-chrome--hidden", n && "vplayer__mini-chrome--ended"),
|
|
10433
10434
|
children: [
|
|
10434
|
-
/* @__PURE__ */
|
|
10435
|
+
/* @__PURE__ */ v("div", {
|
|
10435
10436
|
className: "vplayer__mini-topbar",
|
|
10436
|
-
children: [/* @__PURE__ */
|
|
10437
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10437
10438
|
className: "vplayer__mini-title",
|
|
10438
10439
|
children: r.miniPlayer
|
|
10439
|
-
}), /* @__PURE__ */
|
|
10440
|
+
}), /* @__PURE__ */ _("button", {
|
|
10440
10441
|
type: "button",
|
|
10441
10442
|
"aria-label": r.exitMiniPlayer,
|
|
10442
10443
|
className: "vplayer__mini-close",
|
|
10443
10444
|
onClick: o.exit,
|
|
10444
|
-
children: /* @__PURE__ */
|
|
10445
|
+
children: /* @__PURE__ */ _(F, {
|
|
10445
10446
|
icon: i.close,
|
|
10446
10447
|
width: 16
|
|
10447
10448
|
})
|
|
10448
10449
|
})]
|
|
10449
10450
|
}),
|
|
10450
|
-
/* @__PURE__ */
|
|
10451
|
+
/* @__PURE__ */ _("div", {
|
|
10451
10452
|
role: "toolbar",
|
|
10452
10453
|
"aria-label": "Mini player controls",
|
|
10453
10454
|
className: "vplayer__mini-center-controls",
|
|
10454
|
-
children: a.playButton ?? /* @__PURE__ */
|
|
10455
|
+
children: a.playButton ?? /* @__PURE__ */ _(Um, { size: 24 })
|
|
10455
10456
|
}),
|
|
10456
|
-
/* @__PURE__ */
|
|
10457
|
+
/* @__PURE__ */ _("div", {
|
|
10457
10458
|
className: "vplayer__mini-bottom-controls",
|
|
10458
|
-
children: a.seekBar ?? /* @__PURE__ */
|
|
10459
|
+
children: a.seekBar ?? /* @__PURE__ */ _(Hm, {})
|
|
10459
10460
|
})
|
|
10460
10461
|
]
|
|
10461
10462
|
}),
|
|
10462
|
-
/* @__PURE__ */
|
|
10463
|
-
/* @__PURE__ */
|
|
10463
|
+
/* @__PURE__ */ _(oh, {}),
|
|
10464
|
+
/* @__PURE__ */ _(ch, {})
|
|
10464
10465
|
] });
|
|
10465
|
-
},
|
|
10466
|
-
let { slots: e, miniPlayer: t } =
|
|
10467
|
-
return t.active ? /* @__PURE__ */
|
|
10468
|
-
/* @__PURE__ */
|
|
10469
|
-
/* @__PURE__ */
|
|
10466
|
+
}, fh = () => {
|
|
10467
|
+
let { slots: e, miniPlayer: t } = N();
|
|
10468
|
+
return t.active ? /* @__PURE__ */ _(dh, {}) : /* @__PURE__ */ v(g, { children: [
|
|
10469
|
+
/* @__PURE__ */ _(th, {}),
|
|
10470
|
+
/* @__PURE__ */ v(lh, { children: [e.seekBar ?? /* @__PURE__ */ _(Hm, {}), /* @__PURE__ */ v("div", {
|
|
10470
10471
|
role: "toolbar",
|
|
10471
10472
|
"aria-label": "Playback controls",
|
|
10472
10473
|
className: "vplayer__controls-row",
|
|
10473
10474
|
children: [
|
|
10474
|
-
/* @__PURE__ */
|
|
10475
|
-
e.playButton ?? /* @__PURE__ */
|
|
10476
|
-
/* @__PURE__ */
|
|
10477
|
-
/* @__PURE__ */
|
|
10478
|
-
/* @__PURE__ */
|
|
10479
|
-
e.volumeControl ?? /* @__PURE__ */
|
|
10480
|
-
/* @__PURE__ */
|
|
10481
|
-
e.timeDisplay ?? /* @__PURE__ */
|
|
10482
|
-
/* @__PURE__ */
|
|
10483
|
-
e.settingsButton ?? /* @__PURE__ */
|
|
10484
|
-
e.miniPlayerButton ?? /* @__PURE__ */
|
|
10485
|
-
/* @__PURE__ */
|
|
10486
|
-
e.pipButton ?? /* @__PURE__ */
|
|
10487
|
-
e.fullscreenButton ?? /* @__PURE__ */
|
|
10475
|
+
/* @__PURE__ */ _(nh, {}),
|
|
10476
|
+
e.playButton ?? /* @__PURE__ */ _(Um, {}),
|
|
10477
|
+
/* @__PURE__ */ _(Wm, { seconds: -10 }),
|
|
10478
|
+
/* @__PURE__ */ _(Wm, { seconds: 10 }),
|
|
10479
|
+
/* @__PURE__ */ _($m, {}),
|
|
10480
|
+
e.volumeControl ?? /* @__PURE__ */ _(Km, {}),
|
|
10481
|
+
/* @__PURE__ */ _(uh, {}),
|
|
10482
|
+
e.timeDisplay ?? /* @__PURE__ */ _(Gm, {}),
|
|
10483
|
+
/* @__PURE__ */ _(gd, {}),
|
|
10484
|
+
e.settingsButton ?? /* @__PURE__ */ _(Ym, {}),
|
|
10485
|
+
e.miniPlayerButton ?? /* @__PURE__ */ _(Xm, {}),
|
|
10486
|
+
/* @__PURE__ */ _(eh, {}),
|
|
10487
|
+
e.pipButton ?? /* @__PURE__ */ _(Zm, {}),
|
|
10488
|
+
e.fullscreenButton ?? /* @__PURE__ */ _(Qm, {})
|
|
10488
10489
|
]
|
|
10489
10490
|
})] }),
|
|
10490
|
-
/* @__PURE__ */
|
|
10491
|
-
/* @__PURE__ */
|
|
10491
|
+
/* @__PURE__ */ _(oh, {}),
|
|
10492
|
+
/* @__PURE__ */ _(ch, {})
|
|
10492
10493
|
] });
|
|
10493
|
-
},
|
|
10494
|
-
let { slots: e, miniPlayer: t } =
|
|
10495
|
-
return /* @__PURE__ */
|
|
10496
|
-
/* @__PURE__ */
|
|
10497
|
-
!n && (e.pauseOverlay ?? /* @__PURE__ */
|
|
10498
|
-
!n && (e.bufferingOverlay ?? /* @__PURE__ */
|
|
10499
|
-
!n && (e.endOverlay ?? /* @__PURE__ */
|
|
10494
|
+
}, ph = () => {
|
|
10495
|
+
let { slots: e, miniPlayer: t } = N(), n = t.active;
|
|
10496
|
+
return /* @__PURE__ */ v(g, { children: [
|
|
10497
|
+
/* @__PURE__ */ _(fh, {}),
|
|
10498
|
+
!n && (e.pauseOverlay ?? /* @__PURE__ */ _(hr, {})),
|
|
10499
|
+
!n && (e.bufferingOverlay ?? /* @__PURE__ */ _(gr, {})),
|
|
10500
|
+
!n && (e.endOverlay ?? /* @__PURE__ */ _(_r, {}))
|
|
10500
10501
|
] });
|
|
10501
10502
|
};
|
|
10502
10503
|
//#endregion
|
|
10503
10504
|
//#region src/components/player/plugin-api.ts
|
|
10504
|
-
function
|
|
10505
|
+
function mh() {
|
|
10505
10506
|
return function(e, t) {
|
|
10506
10507
|
return {
|
|
10507
10508
|
name: e,
|
|
@@ -10586,16 +10587,16 @@ function ph() {
|
|
|
10586
10587
|
};
|
|
10587
10588
|
};
|
|
10588
10589
|
}
|
|
10589
|
-
var
|
|
10590
|
+
var hh = mh(), gh = (e, t) => hh(e, t);
|
|
10590
10591
|
//#endregion
|
|
10591
10592
|
//#region src/components/player/utils/merge.ts
|
|
10592
|
-
function
|
|
10593
|
+
function _h(e, t) {
|
|
10593
10594
|
return {
|
|
10594
10595
|
...e,
|
|
10595
10596
|
...t
|
|
10596
10597
|
};
|
|
10597
10598
|
}
|
|
10598
|
-
function
|
|
10599
|
+
function vh(e, t) {
|
|
10599
10600
|
return {
|
|
10600
10601
|
...e,
|
|
10601
10602
|
...t
|
|
@@ -10603,7 +10604,7 @@ function _h(e, t) {
|
|
|
10603
10604
|
}
|
|
10604
10605
|
//#endregion
|
|
10605
10606
|
//#region src/components/player/player.tsx
|
|
10606
|
-
function
|
|
10607
|
+
function yh(e) {
|
|
10607
10608
|
return e === !1 ? {
|
|
10608
10609
|
enabled: !1,
|
|
10609
10610
|
width: 180,
|
|
@@ -10627,144 +10628,146 @@ function vh(e) {
|
|
|
10627
10628
|
fit: e.fit ?? "cover"
|
|
10628
10629
|
};
|
|
10629
10630
|
}
|
|
10630
|
-
function
|
|
10631
|
-
let r =
|
|
10632
|
-
|
|
10631
|
+
function bh({ className: e = "", children: t, ...n }) {
|
|
10632
|
+
let r = m(null), i = m(null), a = m(null), o = n.src, s = n.poster, l = n.type, d = n.autoPlay, f = n.subtitles, h = n.qualities, g = n.thumbnails, y = n.transformThumbnailVTT, b = n.plugins, x = n.labels, S = n.icons, C = n.slots ?? {}, w = n.miniPlayer, T = n.thumbnailPreview, E = wt(n), { instance: D } = E;
|
|
10633
|
+
u(() => {
|
|
10633
10634
|
let e = a.current, t = i.current;
|
|
10634
|
-
return e && t &&
|
|
10635
|
-
}, [
|
|
10636
|
-
|
|
10635
|
+
return e && t && E.attach(t, e), () => E.detach();
|
|
10636
|
+
}, [E.attach, E.detach]), u(() => {
|
|
10637
|
+
D.updateOptions({
|
|
10637
10638
|
src: o,
|
|
10638
|
-
type:
|
|
10639
|
-
subtitles:
|
|
10639
|
+
type: l,
|
|
10640
|
+
subtitles: f,
|
|
10640
10641
|
qualities: h,
|
|
10641
|
-
thumbnails:
|
|
10642
|
+
thumbnails: g,
|
|
10643
|
+
transformThumbnailVTT: y,
|
|
10642
10644
|
autoPlay: d
|
|
10643
10645
|
});
|
|
10644
10646
|
}, [
|
|
10645
10647
|
o,
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
+
l,
|
|
10649
|
+
f,
|
|
10648
10650
|
h,
|
|
10649
|
-
|
|
10651
|
+
g,
|
|
10652
|
+
y,
|
|
10650
10653
|
d,
|
|
10651
|
-
|
|
10652
|
-
]),
|
|
10653
|
-
let
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
}, [
|
|
10657
|
-
if (!
|
|
10658
|
-
|
|
10654
|
+
D
|
|
10655
|
+
]), u(() => D.initPlugins(b ?? []), [b, D]);
|
|
10656
|
+
let O = yt(D.store), ee = de(D.store, (e) => e.controlsVisible), k = de(D.store, (e) => e.isPlaying), A = xt(r, w), j = p(() => yh(T), [T]);
|
|
10657
|
+
u(() => {
|
|
10658
|
+
A.active && (O.showControls(), O.scheduleHide(1400));
|
|
10659
|
+
}, [O, A.active]), u(() => {
|
|
10660
|
+
if (!k) {
|
|
10661
|
+
O.showControls();
|
|
10659
10662
|
return;
|
|
10660
10663
|
}
|
|
10661
|
-
let e =
|
|
10662
|
-
|
|
10664
|
+
let e = A.active ? 1400 : 3e3;
|
|
10665
|
+
O.scheduleHide(e);
|
|
10663
10666
|
let t = setTimeout(() => {
|
|
10664
|
-
|
|
10667
|
+
D.store.state.isPlaying && D.store.setState((e) => ({
|
|
10665
10668
|
...e,
|
|
10666
10669
|
controlsVisible: !1
|
|
10667
10670
|
}));
|
|
10668
10671
|
}, e);
|
|
10669
10672
|
return () => clearTimeout(t);
|
|
10670
10673
|
}, [
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10674
|
+
O,
|
|
10675
|
+
D.store,
|
|
10676
|
+
k,
|
|
10677
|
+
A.active
|
|
10675
10678
|
]);
|
|
10676
|
-
let te =
|
|
10677
|
-
e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target.isContentEditable || (
|
|
10678
|
-
}, [
|
|
10679
|
+
let te = c((e) => {
|
|
10680
|
+
e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target.isContentEditable || (O.showControls(), D.hotkeys.handleKeyDown(e));
|
|
10681
|
+
}, [D.hotkeys, O]), ne = p(() => _h(rt, x), [x]), re = p(() => vh(it, S), [S]), ie = p(() => ({
|
|
10679
10682
|
ref: a,
|
|
10680
10683
|
className: "vplayer__video",
|
|
10681
|
-
poster:
|
|
10684
|
+
poster: s,
|
|
10682
10685
|
autoPlay: d,
|
|
10683
10686
|
preload: "metadata",
|
|
10684
10687
|
playsInline: !0,
|
|
10685
|
-
onClick:
|
|
10688
|
+
onClick: D.remote.togglePlay
|
|
10686
10689
|
}), [
|
|
10687
|
-
|
|
10690
|
+
s,
|
|
10688
10691
|
d,
|
|
10689
|
-
|
|
10690
|
-
]), ae = Ct(
|
|
10691
|
-
|
|
10692
|
-
}, [
|
|
10692
|
+
D.remote.togglePlay
|
|
10693
|
+
]), ae = Ct(D.store, D.remote), oe = c((e) => {
|
|
10694
|
+
O.showControls(), ae.onTouchStart(e);
|
|
10695
|
+
}, [O, ae]), se = c((e) => ae.onTouchMove(e), [ae]), ce = c((e) => ae.onTouchEnd(e), [ae]), le = p(() => ({
|
|
10693
10696
|
containerRef: i,
|
|
10694
10697
|
videoRef: a,
|
|
10695
10698
|
labels: ne,
|
|
10696
10699
|
icons: re,
|
|
10697
|
-
slots:
|
|
10698
|
-
mediaStore:
|
|
10699
|
-
mediaRemote:
|
|
10700
|
-
events:
|
|
10701
|
-
storage:
|
|
10702
|
-
i18n:
|
|
10703
|
-
hotkeys:
|
|
10704
|
-
engine:
|
|
10705
|
-
instance:
|
|
10706
|
-
createPluginAPI:
|
|
10707
|
-
miniPlayer:
|
|
10708
|
-
thumbnailPreview:
|
|
10700
|
+
slots: C,
|
|
10701
|
+
mediaStore: D.store,
|
|
10702
|
+
mediaRemote: D.remote,
|
|
10703
|
+
events: D.events,
|
|
10704
|
+
storage: D.storage,
|
|
10705
|
+
i18n: D.i18n,
|
|
10706
|
+
hotkeys: D.hotkeys,
|
|
10707
|
+
engine: D.engine,
|
|
10708
|
+
instance: D,
|
|
10709
|
+
createPluginAPI: gh,
|
|
10710
|
+
miniPlayer: A,
|
|
10711
|
+
thumbnailPreview: j
|
|
10709
10712
|
}), [
|
|
10710
|
-
|
|
10713
|
+
D,
|
|
10711
10714
|
ne,
|
|
10712
10715
|
re,
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
]), ue =
|
|
10717
|
-
"--vplayer-mini-width": typeof
|
|
10718
|
-
"--vplayer-thumbnail-width": `${
|
|
10719
|
-
"--vplayer-thumbnail-height": `${
|
|
10720
|
-
"--vplayer-thumbnail-gap": `${
|
|
10716
|
+
C,
|
|
10717
|
+
A,
|
|
10718
|
+
j
|
|
10719
|
+
]), ue = p(() => ({
|
|
10720
|
+
"--vplayer-mini-width": typeof A.width == "number" ? `${A.width}px` : A.width,
|
|
10721
|
+
"--vplayer-thumbnail-width": `${j.width}px`,
|
|
10722
|
+
"--vplayer-thumbnail-height": `${j.height}px`,
|
|
10723
|
+
"--vplayer-thumbnail-gap": `${j.gap}px`
|
|
10721
10724
|
}), [
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10725
|
+
A.width,
|
|
10726
|
+
j.gap,
|
|
10727
|
+
j.height,
|
|
10728
|
+
j.width
|
|
10726
10729
|
]);
|
|
10727
|
-
return /* @__PURE__ */
|
|
10730
|
+
return /* @__PURE__ */ _(st.Provider, {
|
|
10728
10731
|
value: le,
|
|
10729
|
-
children: /* @__PURE__ */
|
|
10732
|
+
children: /* @__PURE__ */ _("div", {
|
|
10730
10733
|
ref: r,
|
|
10731
10734
|
className: "vplayer__anchor",
|
|
10732
|
-
children: /* @__PURE__ */
|
|
10735
|
+
children: /* @__PURE__ */ v("div", {
|
|
10733
10736
|
ref: i,
|
|
10734
10737
|
tabIndex: 0,
|
|
10735
10738
|
role: "application",
|
|
10736
10739
|
"aria-label": "Video player",
|
|
10737
10740
|
"data-testid": "vplayer-root",
|
|
10738
|
-
"data-mini-player":
|
|
10739
|
-
"data-mini-player-position":
|
|
10740
|
-
className: ot("vplayer", !
|
|
10741
|
+
"data-mini-player": A.active ? "true" : "false",
|
|
10742
|
+
"data-mini-player-position": A.position,
|
|
10743
|
+
className: ot("vplayer", !ee && "vplayer--controls-hidden", A.enabled && "vplayer--mini-enabled", A.active && "vplayer--mini", A.active && `vplayer--mini-${A.position}`, e),
|
|
10741
10744
|
style: ue,
|
|
10742
10745
|
onKeyDown: te,
|
|
10743
|
-
onMouseMove:
|
|
10744
|
-
onMouseEnter:
|
|
10745
|
-
onMouseLeave:
|
|
10746
|
-
onFocus:
|
|
10747
|
-
onBlur:
|
|
10746
|
+
onMouseMove: O.rootHandlers.onMouseMove,
|
|
10747
|
+
onMouseEnter: O.rootHandlers.onMouseEnter,
|
|
10748
|
+
onMouseLeave: O.rootHandlers.onMouseLeave,
|
|
10749
|
+
onFocus: O.rootHandlers.onFocus,
|
|
10750
|
+
onBlur: O.rootHandlers.onBlur,
|
|
10748
10751
|
onTouchStart: oe,
|
|
10749
10752
|
onTouchMove: se,
|
|
10750
10753
|
onTouchEnd: ce,
|
|
10751
|
-
onDoubleClick:
|
|
10754
|
+
onDoubleClick: D.remote.toggleFullscreen,
|
|
10752
10755
|
children: [
|
|
10753
|
-
/* @__PURE__ */
|
|
10756
|
+
/* @__PURE__ */ _("div", {
|
|
10754
10757
|
className: "vplayer__media-viewport",
|
|
10755
10758
|
"data-testid": "vplayer-media-viewport",
|
|
10756
|
-
children: /* @__PURE__ */
|
|
10759
|
+
children: /* @__PURE__ */ _("video", { ...ie })
|
|
10757
10760
|
}),
|
|
10758
|
-
t ?? /* @__PURE__ */
|
|
10759
|
-
/* @__PURE__ */
|
|
10760
|
-
|
|
10761
|
-
/* @__PURE__ */
|
|
10762
|
-
/* @__PURE__ */
|
|
10763
|
-
/* @__PURE__ */
|
|
10764
|
-
/* @__PURE__ */
|
|
10765
|
-
/* @__PURE__ */
|
|
10766
|
-
className: ot("vplayer__click-layer",
|
|
10767
|
-
onClick:
|
|
10761
|
+
t ?? /* @__PURE__ */ _(ph, {}),
|
|
10762
|
+
/* @__PURE__ */ _(mr, {}),
|
|
10763
|
+
A.active && /* @__PURE__ */ _(gt, {}),
|
|
10764
|
+
/* @__PURE__ */ _(pt, {}),
|
|
10765
|
+
/* @__PURE__ */ _(dt, {}),
|
|
10766
|
+
/* @__PURE__ */ _(ft, {}),
|
|
10767
|
+
/* @__PURE__ */ _(ht, {}),
|
|
10768
|
+
/* @__PURE__ */ _("div", {
|
|
10769
|
+
className: ot("vplayer__click-layer", ee && "vplayer__click-layer--hidden"),
|
|
10770
|
+
onClick: D.remote.togglePlay
|
|
10768
10771
|
})
|
|
10769
10772
|
]
|
|
10770
10773
|
})
|
|
@@ -10773,41 +10776,43 @@ function yh({ className: e = "", children: t, ...n }) {
|
|
|
10773
10776
|
}
|
|
10774
10777
|
//#endregion
|
|
10775
10778
|
//#region src/components/player/layout/compact-video-layout.tsx
|
|
10776
|
-
var
|
|
10777
|
-
let a = wt(e), { instance: o } = a, s =
|
|
10778
|
-
|
|
10779
|
+
var xh = () => /* @__PURE__ */ _(ph, {}), Sh = () => /* @__PURE__ */ _(ph, {}), Ch = ({ options: e, labels: t, icons: n, slots: r = {}, children: i }) => {
|
|
10780
|
+
let a = wt(e), { instance: o } = a, s = m(null), c = m(null), l = e.src, d = e.type, f = e.autoPlay, h = e.subtitles, g = e.qualities, v = e.thumbnails, y = e.transformThumbnailVTT, b = e.plugins;
|
|
10781
|
+
u(() => {
|
|
10779
10782
|
let e = s.current, t = c.current;
|
|
10780
10783
|
return e && t && a.attach(e, t), () => a.detach();
|
|
10781
|
-
}, [a.attach, a.detach]),
|
|
10784
|
+
}, [a.attach, a.detach]), u(() => {
|
|
10782
10785
|
o.updateOptions({
|
|
10783
|
-
src:
|
|
10786
|
+
src: l,
|
|
10784
10787
|
type: d,
|
|
10785
|
-
autoPlay:
|
|
10788
|
+
autoPlay: f,
|
|
10786
10789
|
subtitles: h,
|
|
10787
|
-
qualities:
|
|
10788
|
-
thumbnails: v
|
|
10790
|
+
qualities: g,
|
|
10791
|
+
thumbnails: v,
|
|
10792
|
+
transformThumbnailVTT: y
|
|
10789
10793
|
});
|
|
10790
10794
|
}, [
|
|
10791
|
-
|
|
10795
|
+
l,
|
|
10792
10796
|
d,
|
|
10793
|
-
|
|
10797
|
+
f,
|
|
10794
10798
|
h,
|
|
10795
|
-
|
|
10799
|
+
g,
|
|
10796
10800
|
v,
|
|
10801
|
+
y,
|
|
10797
10802
|
o
|
|
10798
|
-
]),
|
|
10799
|
-
let
|
|
10803
|
+
]), u(() => o.initPlugins(b ?? []), [b, o]);
|
|
10804
|
+
let x = _h(rt, t), S = vh(it, n), C = p(() => St(), []), w = p(() => ({
|
|
10800
10805
|
enabled: !0,
|
|
10801
10806
|
width: 180,
|
|
10802
10807
|
height: 101,
|
|
10803
10808
|
gap: 10,
|
|
10804
10809
|
showTime: !0,
|
|
10805
10810
|
fit: "cover"
|
|
10806
|
-
}), []),
|
|
10811
|
+
}), []), T = {
|
|
10807
10812
|
containerRef: s,
|
|
10808
10813
|
videoRef: c,
|
|
10809
|
-
labels:
|
|
10810
|
-
icons:
|
|
10814
|
+
labels: x,
|
|
10815
|
+
icons: S,
|
|
10811
10816
|
slots: r,
|
|
10812
10817
|
mediaStore: o.store,
|
|
10813
10818
|
mediaRemote: o.remote,
|
|
@@ -10817,14 +10822,14 @@ var bh = () => /* @__PURE__ */ g(fh, {}), xh = () => /* @__PURE__ */ g(fh, {}),
|
|
|
10817
10822
|
hotkeys: o.hotkeys,
|
|
10818
10823
|
engine: o.engine,
|
|
10819
10824
|
instance: o,
|
|
10820
|
-
createPluginAPI:
|
|
10821
|
-
miniPlayer:
|
|
10822
|
-
thumbnailPreview:
|
|
10825
|
+
createPluginAPI: gh,
|
|
10826
|
+
miniPlayer: C,
|
|
10827
|
+
thumbnailPreview: w
|
|
10823
10828
|
};
|
|
10824
|
-
return /* @__PURE__ */
|
|
10825
|
-
value:
|
|
10829
|
+
return /* @__PURE__ */ _(st.Provider, {
|
|
10830
|
+
value: T,
|
|
10826
10831
|
children: i
|
|
10827
10832
|
});
|
|
10828
10833
|
};
|
|
10829
10834
|
//#endregion
|
|
10830
|
-
export { dt as AutoResumeOverlay, gr as BufferingOverlay,
|
|
10835
|
+
export { dt as AutoResumeOverlay, gr as BufferingOverlay, xh as CompactVideoLayout, ft as ContextMenu, lh as ControlsBar, ph as DefaultVideoLayout, _r as EndOverlay, pt as ErrorOverlay, me as EventBus, Qm as FullscreenButton, he as HotkeyRegistry, ve as I18n, Sh as LargeVideoLayout, Xm as MiniPlayerButton, gt as MiniProgressBar, ch as NotificationOverlay, hr as PauseOverlay, Zm as PiPButton, Um as PlayButton, fh as PlayerChrome, Ch as PlayerProvider, nh as PluginControlsCenter, $m as PluginControlsLeft, eh as PluginControlsRight, th as PluginControlsTop, oh as PluginLayers, sh as PluginSettings, M as STORAGE_KEYS, gd as ScreenshotButton, Hm as SeekBar, Ym as SettingsTrigger, Wm as SkipButton, Le as Storage, Gm as TimeDisplay, mr as TopGradient, bh as VideoPlayer, Km as VolumeControl, tt as createGestureEngine, et as createPlayer, gh as createPluginAPI, mh as createPluginAPIBuilder, it as defaultPlayerIcons, rt as defaultPlayerLabels, Ve as fetchSubtitles, Ke as fetchThumbnails, nt as formatTime, He as getActiveCue, qe as getThumbnailAtTime, ze as parseSRT, We as parseThumbnailVTT, Be as parseVTT, lt as useMiniPlayer, wt as usePlayer, N as usePlayerContext, Ct as usePlayerGestures, ct as usePlayerRemote, P as usePlayerState, ut as usePluginAPI };
|