@queuedash/ui 1.0.1 → 1.2.0
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/README.md +20 -0
- package/dist/main.js +14 -14
- package/dist/main.mjs +415 -412
- package/dist/src/utils/trpc.d.ts +18 -16
- package/dist/styles.css +20 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/main.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import I, { createContext as
|
|
2
|
+
import I, { createContext as mn, useState as te, useEffect as G, useCallback as X, useMemo as tt, useRef as N, createElement as w, useContext as er, Fragment as tr, forwardRef as F, Children as Vt, isValidElement as Vr, cloneElement as Si, useLayoutEffect as Ri, useReducer as Nf, memo as wu } from "react";
|
|
3
3
|
import * as jf from "react-dom";
|
|
4
4
|
import Hf, { flushSync as Cu, createPortal as Uf } from "react-dom";
|
|
5
5
|
var wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Vn = {}, qf = {
|
|
@@ -37,7 +37,7 @@ vo.jsxs = $u;
|
|
|
37
37
|
e.exports = vo;
|
|
38
38
|
})(qf);
|
|
39
39
|
const Br = Vn.Fragment, $ = Vn.jsx, j = Vn.jsxs;
|
|
40
|
-
class
|
|
40
|
+
class Xt {
|
|
41
41
|
constructor() {
|
|
42
42
|
this.listeners = [], this.subscribe = this.subscribe.bind(this);
|
|
43
43
|
}
|
|
@@ -73,7 +73,7 @@ function Yf(e, t, n) {
|
|
|
73
73
|
function xu(e, t) {
|
|
74
74
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function fn(e, t, n) {
|
|
77
77
|
return nr(e) ? typeof t == "function" ? {
|
|
78
78
|
...n,
|
|
79
79
|
queryKey: e,
|
|
@@ -213,7 +213,7 @@ function Xf() {
|
|
|
213
213
|
function Ta(e, t, n) {
|
|
214
214
|
return n.isDataEqual != null && n.isDataEqual(e, t) ? e : typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? Ru(e, t) : t;
|
|
215
215
|
}
|
|
216
|
-
class Jf extends
|
|
216
|
+
class Jf extends Xt {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(), this.setup = (t) => {
|
|
219
219
|
if (!Bn && window.addEventListener) {
|
|
@@ -252,7 +252,7 @@ class Jf extends Zt {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
const zr = new Jf();
|
|
255
|
-
class e0 extends
|
|
255
|
+
class e0 extends Xt {
|
|
256
256
|
constructor() {
|
|
257
257
|
super(), this.setup = (t) => {
|
|
258
258
|
if (!Bn && window.addEventListener) {
|
|
@@ -708,7 +708,7 @@ function o0(e) {
|
|
|
708
708
|
fetchStatus: "idle"
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
class a0 extends
|
|
711
|
+
class a0 extends Xt {
|
|
712
712
|
constructor(t) {
|
|
713
713
|
super(), this.config = t || {}, this.queries = [], this.queriesMap = {};
|
|
714
714
|
}
|
|
@@ -959,7 +959,7 @@ function Tu() {
|
|
|
959
959
|
variables: void 0
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
class s0 extends
|
|
962
|
+
class s0 extends Xt {
|
|
963
963
|
constructor(t) {
|
|
964
964
|
super(), this.config = t || {}, this.mutations = [], this.mutationId = 0;
|
|
965
965
|
}
|
|
@@ -1134,7 +1134,7 @@ class c0 {
|
|
|
1134
1134
|
return (r = this.queryCache.find(t, n)) == null ? void 0 : r.state.data;
|
|
1135
1135
|
}
|
|
1136
1136
|
ensureQueryData(t, n, r) {
|
|
1137
|
-
const o =
|
|
1137
|
+
const o = fn(t, n, r), a = this.getQueryData(o.queryKey);
|
|
1138
1138
|
return a ? Promise.resolve(a) : this.fetchQuery(o);
|
|
1139
1139
|
}
|
|
1140
1140
|
getQueriesData(t) {
|
|
@@ -1150,7 +1150,7 @@ class c0 {
|
|
|
1150
1150
|
const o = this.queryCache.find(t), a = o == null ? void 0 : o.state.data, i = Kf(n, a);
|
|
1151
1151
|
if (typeof i > "u")
|
|
1152
1152
|
return;
|
|
1153
|
-
const s =
|
|
1153
|
+
const s = fn(t), l = this.defaultQueryOptions(s);
|
|
1154
1154
|
return this.queryCache.build(this, l).setData(i, {
|
|
1155
1155
|
...r,
|
|
1156
1156
|
manual: !0
|
|
@@ -1218,7 +1218,7 @@ class c0 {
|
|
|
1218
1218
|
return a != null && a.throwOnError || (s = s.catch(Ue)), s;
|
|
1219
1219
|
}
|
|
1220
1220
|
fetchQuery(t, n, r) {
|
|
1221
|
-
const o =
|
|
1221
|
+
const o = fn(t, n, r), a = this.defaultQueryOptions(o);
|
|
1222
1222
|
typeof a.retry > "u" && (a.retry = !1);
|
|
1223
1223
|
const i = this.queryCache.build(this, a);
|
|
1224
1224
|
return i.isStaleByTime(a.staleTime) ? i.fetch(a) : Promise.resolve(i.state.data);
|
|
@@ -1227,7 +1227,7 @@ class c0 {
|
|
|
1227
1227
|
return this.fetchQuery(t, n, r).then(Ue).catch(Ue);
|
|
1228
1228
|
}
|
|
1229
1229
|
fetchInfiniteQuery(t, n, r) {
|
|
1230
|
-
const o =
|
|
1230
|
+
const o = fn(t, n, r);
|
|
1231
1231
|
return o.behavior = _a(), this.fetchQuery(o);
|
|
1232
1232
|
}
|
|
1233
1233
|
prefetchInfiniteQuery(t, n, r) {
|
|
@@ -1300,7 +1300,7 @@ class c0 {
|
|
|
1300
1300
|
this.queryCache.clear(), this.mutationCache.clear();
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
class Pi extends
|
|
1303
|
+
class Pi extends Xt {
|
|
1304
1304
|
constructor(t, n) {
|
|
1305
1305
|
super(), this.client = t, this.options = n, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(n);
|
|
1306
1306
|
}
|
|
@@ -1556,7 +1556,7 @@ function As(e, t, n, r) {
|
|
|
1556
1556
|
function Mi(e, t) {
|
|
1557
1557
|
return e.isStaleByTime(t.staleTime);
|
|
1558
1558
|
}
|
|
1559
|
-
class f0 extends
|
|
1559
|
+
class f0 extends Xt {
|
|
1560
1560
|
constructor(t, n) {
|
|
1561
1561
|
super(), this.client = t, this.queries = [], this.result = [], this.observers = [], this.observersMap = {}, n && this.setQueries(n);
|
|
1562
1562
|
}
|
|
@@ -1707,7 +1707,7 @@ class h0 extends Pi {
|
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
|
-
class p0 extends
|
|
1710
|
+
class p0 extends Xt {
|
|
1711
1711
|
constructor(t, n) {
|
|
1712
1712
|
super(), this.client = t, this.setOptions(n), this.bindMethods(), this.updateResult();
|
|
1713
1713
|
}
|
|
@@ -1795,11 +1795,11 @@ var ka = {}, g0 = {
|
|
|
1795
1795
|
* This source code is licensed under the MIT license found in the
|
|
1796
1796
|
* LICENSE file in the root directory of this source tree.
|
|
1797
1797
|
*/
|
|
1798
|
-
var
|
|
1798
|
+
var bn = I;
|
|
1799
1799
|
function v0(e, t) {
|
|
1800
1800
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
1801
1801
|
}
|
|
1802
|
-
var m0 = typeof Object.is == "function" ? Object.is : v0, b0 =
|
|
1802
|
+
var m0 = typeof Object.is == "function" ? Object.is : v0, b0 = bn.useState, y0 = bn.useEffect, w0 = bn.useLayoutEffect, C0 = bn.useDebugValue;
|
|
1803
1803
|
function $0(e, t) {
|
|
1804
1804
|
var n = t(), r = b0({ inst: { value: n, getSnapshot: t } }), o = r[0].inst, a = r[1];
|
|
1805
1805
|
return w0(function() {
|
|
@@ -1824,7 +1824,7 @@ function x0(e, t) {
|
|
|
1824
1824
|
return t();
|
|
1825
1825
|
}
|
|
1826
1826
|
var S0 = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x0 : $0;
|
|
1827
|
-
Du.useSyncExternalStore =
|
|
1827
|
+
Du.useSyncExternalStore = bn.useSyncExternalStore !== void 0 ? bn.useSyncExternalStore : S0;
|
|
1828
1828
|
(function(e) {
|
|
1829
1829
|
e.exports = Du;
|
|
1830
1830
|
})(g0);
|
|
@@ -1959,7 +1959,7 @@ function Bu(e, t) {
|
|
|
1959
1959
|
return a.notifyOnChangeProps ? s : i.trackResult(s);
|
|
1960
1960
|
}
|
|
1961
1961
|
function M0(e, t, n) {
|
|
1962
|
-
const r =
|
|
1962
|
+
const r = fn(e, t, n);
|
|
1963
1963
|
return Bu(r, Pi);
|
|
1964
1964
|
}
|
|
1965
1965
|
function T0(e, t, n) {
|
|
@@ -1983,7 +1983,7 @@ function T0(e, t, n) {
|
|
|
1983
1983
|
function _0() {
|
|
1984
1984
|
}
|
|
1985
1985
|
function D0(e, t, n) {
|
|
1986
|
-
const r =
|
|
1986
|
+
const r = fn(e, t, n);
|
|
1987
1987
|
return Bu(r, h0);
|
|
1988
1988
|
}
|
|
1989
1989
|
function A0(e) {
|
|
@@ -2628,7 +2628,7 @@ function eh(e, t) {
|
|
|
2628
2628
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function Bt(e, t, n) {
|
|
2632
2632
|
if (n || arguments.length === 2)
|
|
2633
2633
|
for (var r = 0, o = t.length, a; r < o; r++)
|
|
2634
2634
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
@@ -2694,7 +2694,7 @@ const nh = [
|
|
|
2694
2694
|
"ssrContext",
|
|
2695
2695
|
"ssrState",
|
|
2696
2696
|
"abortOnUnmount"
|
|
2697
|
-
], rh = /* @__PURE__ */
|
|
2697
|
+
], rh = /* @__PURE__ */ mn(null);
|
|
2698
2698
|
function oh(e) {
|
|
2699
2699
|
return Di((t) => {
|
|
2700
2700
|
const n = t;
|
|
@@ -3272,7 +3272,7 @@ function Yu(e, t, n) {
|
|
|
3272
3272
|
});
|
|
3273
3273
|
});
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function hn(e, t, n) {
|
|
3276
3276
|
n === void 0 && (n = "/");
|
|
3277
3277
|
let r = typeof t == "string" ? vt(t) : t, o = rr(r.pathname || "/", n);
|
|
3278
3278
|
if (o == null)
|
|
@@ -3594,7 +3594,7 @@ const ec = ["post", "put", "patch", "delete"], Ih = new Set(ec), Lh = ["get", ..
|
|
|
3594
3594
|
}, tc = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nc = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", qh = !nc;
|
|
3595
3595
|
function Vh(e) {
|
|
3596
3596
|
re(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
|
|
3597
|
-
let t = Yu(e.routes), n, r = null, o = /* @__PURE__ */ new Set(), a = null, i = null, s = null, l = e.hydrationData != null, u =
|
|
3597
|
+
let t = Yu(e.routes), n, r = null, o = /* @__PURE__ */ new Set(), a = null, i = null, s = null, l = e.hydrationData != null, u = hn(t, e.history.location, e.basename), c = null;
|
|
3598
3598
|
if (u == null) {
|
|
3599
3599
|
let M = lt(404, {
|
|
3600
3600
|
pathname: e.history.location.pathname
|
|
@@ -3756,7 +3756,7 @@ function Vh(e) {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
async function ee(M, _, A) {
|
|
3758
3758
|
p && p.abort(), p = null, v = M, m = (A && A.startUninterruptedRevalidation) === !0, Bo(f.location, f.matches), g = (A && A.preventScrollReset) === !0;
|
|
3759
|
-
let q = n || t, V = A && A.overrideNavigation, J =
|
|
3759
|
+
let q = n || t, V = A && A.overrideNavigation, J = hn(q, _, e.basename);
|
|
3760
3760
|
if (!J) {
|
|
3761
3761
|
let we = lt(404, {
|
|
3762
3762
|
pathname: _.pathname
|
|
@@ -3764,7 +3764,7 @@ function Vh(e) {
|
|
|
3764
3764
|
matches: Ze,
|
|
3765
3765
|
route: Qe
|
|
3766
3766
|
} = Qs(q);
|
|
3767
|
-
|
|
3767
|
+
rn(), ve(_, {
|
|
3768
3768
|
matches: Ze,
|
|
3769
3769
|
loaderData: {},
|
|
3770
3770
|
errors: {
|
|
@@ -3780,10 +3780,10 @@ function Vh(e) {
|
|
|
3780
3780
|
return;
|
|
3781
3781
|
}
|
|
3782
3782
|
p = new AbortController();
|
|
3783
|
-
let K =
|
|
3783
|
+
let K = _n(e.history, _, p.signal, A && A.submission), oe, B;
|
|
3784
3784
|
if (A && A.pendingError)
|
|
3785
3785
|
B = {
|
|
3786
|
-
[
|
|
3786
|
+
[pn(J).route.id]: A.pendingError
|
|
3787
3787
|
};
|
|
3788
3788
|
else if (A && A.submission && ut(A.submission.formMethod)) {
|
|
3789
3789
|
let we = await ye(K, _, A.submission, J, {
|
|
@@ -3831,11 +3831,11 @@ function Vh(e) {
|
|
|
3831
3831
|
routeId: oe.route.id
|
|
3832
3832
|
})
|
|
3833
3833
|
};
|
|
3834
|
-
else if (K = await
|
|
3834
|
+
else if (K = await Tn("action", M, oe, q, h.basename), M.signal.aborted)
|
|
3835
3835
|
return {
|
|
3836
3836
|
shortCircuited: !0
|
|
3837
3837
|
};
|
|
3838
|
-
if (
|
|
3838
|
+
if (gn(K)) {
|
|
3839
3839
|
let B;
|
|
3840
3840
|
return V && V.replace != null ? B = V.replace : B = K.location === f.location.pathname + f.location.search, await He(f, K, {
|
|
3841
3841
|
submission: A,
|
|
@@ -3845,7 +3845,7 @@ function Vh(e) {
|
|
|
3845
3845
|
};
|
|
3846
3846
|
}
|
|
3847
3847
|
if (Ln(K)) {
|
|
3848
|
-
let B =
|
|
3848
|
+
let B = pn(q, oe.route.id);
|
|
3849
3849
|
return (V && V.replace) !== !0 && (v = $e.Push), {
|
|
3850
3850
|
// Send back an empty object we can use to clear out any prior actionData
|
|
3851
3851
|
pendingActionData: {},
|
|
@@ -3880,7 +3880,7 @@ function Vh(e) {
|
|
|
3880
3880
|
formData: B.formData,
|
|
3881
3881
|
formEncType: B.formEncType
|
|
3882
3882
|
} : void 0), ue = n || t, [De, we] = Vs(e.history, f, A, Me, _, b, y, C, k, ue, e.basename, K, oe);
|
|
3883
|
-
if (
|
|
3883
|
+
if (rn((Te) => !(A && A.some((Xe) => Xe.route.id === Te)) || De && De.some((Xe) => Xe.route.id === Te)), De.length === 0 && we.length === 0)
|
|
3884
3884
|
return ve(_, se({
|
|
3885
3885
|
matches: A,
|
|
3886
3886
|
loaderData: {},
|
|
@@ -3919,7 +3919,7 @@ function Vh(e) {
|
|
|
3919
3919
|
let {
|
|
3920
3920
|
results: Ze,
|
|
3921
3921
|
loaderResults: Qe,
|
|
3922
|
-
fetcherResults:
|
|
3922
|
+
fetcherResults: Mn
|
|
3923
3923
|
} = await Se(f.matches, A, De, we, M);
|
|
3924
3924
|
if (M.signal.aborted)
|
|
3925
3925
|
return {
|
|
@@ -3935,8 +3935,8 @@ function Vh(e) {
|
|
|
3935
3935
|
};
|
|
3936
3936
|
let {
|
|
3937
3937
|
loaderData: br,
|
|
3938
|
-
errors:
|
|
3939
|
-
} = Gs(f, A, De, Qe, oe, we,
|
|
3938
|
+
errors: on
|
|
3939
|
+
} = Gs(f, A, De, Qe, oe, we, Mn, Q);
|
|
3940
3940
|
Q.forEach((Te, Xe) => {
|
|
3941
3941
|
Te.subscribe((Lt) => {
|
|
3942
3942
|
(Lt || Te.done) && Q.delete(Xe);
|
|
@@ -3945,7 +3945,7 @@ function Vh(e) {
|
|
|
3945
3945
|
let Go = gr(S);
|
|
3946
3946
|
return se({
|
|
3947
3947
|
loaderData: br,
|
|
3948
|
-
errors:
|
|
3948
|
+
errors: on
|
|
3949
3949
|
}, Go || we.length > 0 ? {
|
|
3950
3950
|
fetchers: new Map(f.fetchers)
|
|
3951
3951
|
} : {});
|
|
@@ -3956,10 +3956,10 @@ function Vh(e) {
|
|
|
3956
3956
|
function Ge(M, _, A, q) {
|
|
3957
3957
|
if (qh)
|
|
3958
3958
|
throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
|
|
3959
|
-
x.has(M) &&
|
|
3960
|
-
let J =
|
|
3959
|
+
x.has(M) && nn(M);
|
|
3960
|
+
let J = hn(n || t, A, e.basename);
|
|
3961
3961
|
if (!J) {
|
|
3962
|
-
|
|
3962
|
+
Pn(M, _, lt(404, {
|
|
3963
3963
|
pathname: A
|
|
3964
3964
|
}));
|
|
3965
3965
|
return;
|
|
@@ -3984,7 +3984,7 @@ function Vh(e) {
|
|
|
3984
3984
|
pathname: A,
|
|
3985
3985
|
routeId: _
|
|
3986
3986
|
});
|
|
3987
|
-
|
|
3987
|
+
Pn(M, _, at);
|
|
3988
3988
|
return;
|
|
3989
3989
|
}
|
|
3990
3990
|
let K = f.fetchers.get(M), oe = se({
|
|
@@ -3996,14 +3996,14 @@ function Vh(e) {
|
|
|
3996
3996
|
f.fetchers.set(M, oe), ie({
|
|
3997
3997
|
fetchers: new Map(f.fetchers)
|
|
3998
3998
|
});
|
|
3999
|
-
let B = new AbortController(), Me =
|
|
3999
|
+
let B = new AbortController(), Me = _n(e.history, A, B.signal, J);
|
|
4000
4000
|
x.set(M, B);
|
|
4001
|
-
let ue = await
|
|
4001
|
+
let ue = await Tn("action", Me, q, V, h.basename);
|
|
4002
4002
|
if (Me.signal.aborted) {
|
|
4003
4003
|
x.get(M) === B && x.delete(M);
|
|
4004
4004
|
return;
|
|
4005
4005
|
}
|
|
4006
|
-
if (
|
|
4006
|
+
if (gn(ue)) {
|
|
4007
4007
|
x.delete(M), T.add(M);
|
|
4008
4008
|
let at = se({
|
|
4009
4009
|
state: "loading"
|
|
@@ -4018,17 +4018,17 @@ function Vh(e) {
|
|
|
4018
4018
|
});
|
|
4019
4019
|
}
|
|
4020
4020
|
if (Ln(ue)) {
|
|
4021
|
-
|
|
4021
|
+
Pn(M, _, ue.error);
|
|
4022
4022
|
return;
|
|
4023
4023
|
}
|
|
4024
4024
|
if (qt(ue))
|
|
4025
4025
|
throw lt(400, {
|
|
4026
4026
|
type: "defer-action"
|
|
4027
4027
|
});
|
|
4028
|
-
let De = f.navigation.location || f.location, we =
|
|
4028
|
+
let De = f.navigation.location || f.location, we = _n(e.history, De, B.signal), Ze = n || t, Qe = f.navigation.state !== "idle" ? hn(Ze, f.navigation.location, e.basename) : f.matches;
|
|
4029
4029
|
re(Qe, "Didn't find any matches after fetcher action");
|
|
4030
|
-
let
|
|
4031
|
-
R.set(M,
|
|
4030
|
+
let Mn = ++E;
|
|
4031
|
+
R.set(M, Mn);
|
|
4032
4032
|
let mr = se({
|
|
4033
4033
|
state: "loading",
|
|
4034
4034
|
data: ue.data
|
|
@@ -4036,7 +4036,7 @@ function Vh(e) {
|
|
|
4036
4036
|
" _hasFetcherDoneAnything ": !0
|
|
4037
4037
|
});
|
|
4038
4038
|
f.fetchers.set(M, mr);
|
|
4039
|
-
let [br,
|
|
4039
|
+
let [br, on] = Vs(
|
|
4040
4040
|
e.history,
|
|
4041
4041
|
f,
|
|
4042
4042
|
Qe,
|
|
@@ -4054,7 +4054,7 @@ function Vh(e) {
|
|
|
4054
4054
|
void 0
|
|
4055
4055
|
// No need to send through errors since we short circuit above
|
|
4056
4056
|
);
|
|
4057
|
-
|
|
4057
|
+
on.filter((at) => at.key !== M).forEach((at) => {
|
|
4058
4058
|
let Qo = at.key, Rs = f.fetchers.get(Qo), Lf = {
|
|
4059
4059
|
state: "loading",
|
|
4060
4060
|
data: Rs && Rs.data,
|
|
@@ -4072,17 +4072,17 @@ function Vh(e) {
|
|
|
4072
4072
|
results: Go,
|
|
4073
4073
|
loaderResults: Te,
|
|
4074
4074
|
fetcherResults: Xe
|
|
4075
|
-
} = await Se(f.matches, Qe, br,
|
|
4075
|
+
} = await Se(f.matches, Qe, br, on, we);
|
|
4076
4076
|
if (B.signal.aborted)
|
|
4077
4077
|
return;
|
|
4078
|
-
R.delete(M), x.delete(M),
|
|
4078
|
+
R.delete(M), x.delete(M), on.forEach((at) => x.delete(at.key));
|
|
4079
4079
|
let Lt = Ws(Go);
|
|
4080
4080
|
if (Lt)
|
|
4081
4081
|
return He(f, Lt);
|
|
4082
4082
|
let {
|
|
4083
4083
|
loaderData: yr,
|
|
4084
4084
|
errors: zo
|
|
4085
|
-
} = Gs(f, f.matches, br, Te, void 0,
|
|
4085
|
+
} = Gs(f, f.matches, br, Te, void 0, on, Xe, Q), Ff = {
|
|
4086
4086
|
state: "idle",
|
|
4087
4087
|
data: ue.data,
|
|
4088
4088
|
formMethod: void 0,
|
|
@@ -4092,8 +4092,8 @@ function Vh(e) {
|
|
|
4092
4092
|
" _hasFetcherDoneAnything ": !0
|
|
4093
4093
|
};
|
|
4094
4094
|
f.fetchers.set(M, Ff);
|
|
4095
|
-
let If = gr(
|
|
4096
|
-
f.navigation.state === "loading" &&
|
|
4095
|
+
let If = gr(Mn);
|
|
4096
|
+
f.navigation.state === "loading" && Mn > S ? (re(v, "Expected pending action"), p && p.abort(), ve(f.navigation.location, {
|
|
4097
4097
|
matches: Qe,
|
|
4098
4098
|
loaderData: yr,
|
|
4099
4099
|
errors: zo,
|
|
@@ -4119,17 +4119,17 @@ function Vh(e) {
|
|
|
4119
4119
|
f.fetchers.set(M, oe), ie({
|
|
4120
4120
|
fetchers: new Map(f.fetchers)
|
|
4121
4121
|
});
|
|
4122
|
-
let B = new AbortController(), Me =
|
|
4122
|
+
let B = new AbortController(), Me = _n(e.history, A, B.signal);
|
|
4123
4123
|
x.set(M, B);
|
|
4124
|
-
let ue = await
|
|
4124
|
+
let ue = await Tn("loader", Me, q, V, h.basename);
|
|
4125
4125
|
if (qt(ue) && (ue = await ic(ue, Me.signal, !0) || ue), x.get(M) === B && x.delete(M), Me.signal.aborted)
|
|
4126
4126
|
return;
|
|
4127
|
-
if (
|
|
4127
|
+
if (gn(ue)) {
|
|
4128
4128
|
await He(f, ue);
|
|
4129
4129
|
return;
|
|
4130
4130
|
}
|
|
4131
4131
|
if (Ln(ue)) {
|
|
4132
|
-
let we =
|
|
4132
|
+
let we = pn(f.matches, _);
|
|
4133
4133
|
f.fetchers.delete(M), ie({
|
|
4134
4134
|
fetchers: new Map(f.fetchers),
|
|
4135
4135
|
errors: {
|
|
@@ -4209,7 +4209,7 @@ function Vh(e) {
|
|
|
4209
4209
|
});
|
|
4210
4210
|
}
|
|
4211
4211
|
async function Se(M, _, A, q, V) {
|
|
4212
|
-
let J = await Promise.all([...A.map((B) =>
|
|
4212
|
+
let J = await Promise.all([...A.map((B) => Tn("loader", V, B, _, h.basename)), ...q.map((B) => B.matches && B.match ? Tn("loader", _n(e.history, B.path, V.signal), B.match, B.matches, h.basename) : {
|
|
4213
4213
|
type: Ee.error,
|
|
4214
4214
|
error: lt(404, {
|
|
4215
4215
|
pathname: B.path
|
|
@@ -4222,12 +4222,12 @@ function Vh(e) {
|
|
|
4222
4222
|
};
|
|
4223
4223
|
}
|
|
4224
4224
|
function ot() {
|
|
4225
|
-
b = !0, y.push(...
|
|
4226
|
-
x.has(_) && (C.push(_),
|
|
4225
|
+
b = !0, y.push(...rn()), k.forEach((M, _) => {
|
|
4226
|
+
x.has(_) && (C.push(_), nn(_));
|
|
4227
4227
|
});
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4230
|
-
let q =
|
|
4229
|
+
function Pn(M, _, A) {
|
|
4230
|
+
let q = pn(f.matches, _);
|
|
4231
4231
|
Ct(M), ie({
|
|
4232
4232
|
errors: {
|
|
4233
4233
|
[q.route.id]: A
|
|
@@ -4236,9 +4236,9 @@ function Vh(e) {
|
|
|
4236
4236
|
});
|
|
4237
4237
|
}
|
|
4238
4238
|
function Ct(M) {
|
|
4239
|
-
x.has(M) &&
|
|
4239
|
+
x.has(M) && nn(M), k.delete(M), R.delete(M), T.delete(M), f.fetchers.delete(M);
|
|
4240
4240
|
}
|
|
4241
|
-
function
|
|
4241
|
+
function nn(M) {
|
|
4242
4242
|
let _ = x.get(M);
|
|
4243
4243
|
re(_, "Expected fetch controller: " + M), _.abort(), x.delete(M);
|
|
4244
4244
|
}
|
|
@@ -4269,7 +4269,7 @@ function Vh(e) {
|
|
|
4269
4269
|
for (let [A, q] of R)
|
|
4270
4270
|
if (q < M) {
|
|
4271
4271
|
let V = f.fetchers.get(A);
|
|
4272
|
-
re(V, "Expected fetcher: " + A), V.state === "loading" && (
|
|
4272
|
+
re(V, "Expected fetcher: " + A), V.state === "loading" && (nn(A), R.delete(A), _.push(A));
|
|
4273
4273
|
}
|
|
4274
4274
|
return pr(_), _.length > 0;
|
|
4275
4275
|
}
|
|
@@ -4303,7 +4303,7 @@ function Vh(e) {
|
|
|
4303
4303
|
}))
|
|
4304
4304
|
return J;
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function rn(M) {
|
|
4307
4307
|
let _ = [];
|
|
4308
4308
|
return Q.forEach((A, q) => {
|
|
4309
4309
|
(!M || M(q)) && (A.cancel(), _.push(q), Q.delete(q));
|
|
@@ -4437,7 +4437,7 @@ function Vs(e, t, n, r, o, a, i, s, l, u, c, d, h) {
|
|
|
4437
4437
|
return l.forEach((x, E) => {
|
|
4438
4438
|
if (!n.some((k) => k.route.id === x.routeId))
|
|
4439
4439
|
return;
|
|
4440
|
-
let S =
|
|
4440
|
+
let S = hn(u, x.path, c);
|
|
4441
4441
|
if (!S) {
|
|
4442
4442
|
C.push(se({
|
|
4443
4443
|
key: E
|
|
@@ -4496,7 +4496,7 @@ function Bs(e, t) {
|
|
|
4496
4496
|
}
|
|
4497
4497
|
return t.defaultShouldRevalidate;
|
|
4498
4498
|
}
|
|
4499
|
-
async function
|
|
4499
|
+
async function Tn(e, t, n, r, o, a, i, s) {
|
|
4500
4500
|
o === void 0 && (o = "/"), a === void 0 && (a = !1), i === void 0 && (i = !1);
|
|
4501
4501
|
let l, u, c, d = new Promise((g, p) => c = p), h = () => c();
|
|
4502
4502
|
t.signal.addEventListener("abort", h);
|
|
@@ -4574,7 +4574,7 @@ async function Mn(e, t, n, r, o, a, i, s) {
|
|
|
4574
4574
|
data: u
|
|
4575
4575
|
};
|
|
4576
4576
|
}
|
|
4577
|
-
function
|
|
4577
|
+
function _n(e, t, n, r) {
|
|
4578
4578
|
let o = e.createURL(ac(t)).toString(), a = {
|
|
4579
4579
|
signal: n
|
|
4580
4580
|
};
|
|
@@ -4598,8 +4598,8 @@ function Qh(e, t, n, r, o) {
|
|
|
4598
4598
|
let a = {}, i = null, s, l = !1, u = {};
|
|
4599
4599
|
return n.forEach((c, d) => {
|
|
4600
4600
|
let h = t[d].route.id;
|
|
4601
|
-
if (re(!
|
|
4602
|
-
let f =
|
|
4601
|
+
if (re(!gn(c), "Cannot handle redirect results in processLoaderData"), Ln(c)) {
|
|
4602
|
+
let f = pn(e, h), v = c.error;
|
|
4603
4603
|
r && (v = Object.values(r)[0], r = void 0), i = i || {}, i[f.route.id] == null && (i[f.route.id] = v), a[h] = void 0, l || (l = !0, s = Ju(c.error) ? c.error.status : 500), c.headers && (u[h] = c.headers);
|
|
4604
4604
|
} else
|
|
4605
4605
|
qt(c) ? (o.set(h, c.deferredData), a[h] = c.deferredData.data) : a[h] = c.data, c.statusCode != null && c.statusCode !== 200 && !l && (s = c.statusCode), c.headers && (u[h] = c.headers);
|
|
@@ -4623,11 +4623,11 @@ function Gs(e, t, n, r, o, a, i, s) {
|
|
|
4623
4623
|
re(i !== void 0 && i[c] !== void 0, "Did not find corresponding fetcher result");
|
|
4624
4624
|
let f = i[c];
|
|
4625
4625
|
if (Ln(f)) {
|
|
4626
|
-
let v =
|
|
4626
|
+
let v = pn(e.matches, h == null ? void 0 : h.route.id);
|
|
4627
4627
|
u && u[v.route.id] || (u = se({}, u, {
|
|
4628
4628
|
[v.route.id]: f.error
|
|
4629
4629
|
})), e.fetchers.delete(d);
|
|
4630
|
-
} else if (
|
|
4630
|
+
} else if (gn(f))
|
|
4631
4631
|
re(!1, "Unhandled fetcher revalidation redirect");
|
|
4632
4632
|
else if (qt(f))
|
|
4633
4633
|
re(!1, "Unhandled fetcher deferred data");
|
|
@@ -4658,7 +4658,7 @@ function zs(e, t, n, r) {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
return o;
|
|
4660
4660
|
}
|
|
4661
|
-
function
|
|
4661
|
+
function pn(e, t) {
|
|
4662
4662
|
return (t ? e.slice(0, e.findIndex((r) => r.route.id === t) + 1) : [...e]).reverse().find((r) => r.route.hasErrorBoundary === !0) || e[0];
|
|
4663
4663
|
}
|
|
4664
4664
|
function Qs(e) {
|
|
@@ -4687,7 +4687,7 @@ function lt(e, t) {
|
|
|
4687
4687
|
function Ws(e) {
|
|
4688
4688
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
4689
4689
|
let n = e[t];
|
|
4690
|
-
if (
|
|
4690
|
+
if (gn(n))
|
|
4691
4691
|
return n;
|
|
4692
4692
|
}
|
|
4693
4693
|
}
|
|
@@ -4706,7 +4706,7 @@ function qt(e) {
|
|
|
4706
4706
|
function Ln(e) {
|
|
4707
4707
|
return e.type === Ee.error;
|
|
4708
4708
|
}
|
|
4709
|
-
function
|
|
4709
|
+
function gn(e) {
|
|
4710
4710
|
return (e && e.type) === Ee.redirect;
|
|
4711
4711
|
}
|
|
4712
4712
|
function Kh(e) {
|
|
@@ -4835,7 +4835,7 @@ function ea(e) {
|
|
|
4835
4835
|
function o1(e, t, n) {
|
|
4836
4836
|
return t();
|
|
4837
4837
|
}
|
|
4838
|
-
const a1 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", i1 = !a1, s1 = i1 ? o1 : r1, l1 = "useSyncExternalStore" in O ? ((e) => e.useSyncExternalStore)(O) : s1, Fi = /* @__PURE__ */ O.createContext(null), Co = /* @__PURE__ */ O.createContext(null),
|
|
4838
|
+
const a1 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", i1 = !a1, s1 = i1 ? o1 : r1, l1 = "useSyncExternalStore" in O ? ((e) => e.useSyncExternalStore)(O) : s1, Fi = /* @__PURE__ */ O.createContext(null), Co = /* @__PURE__ */ O.createContext(null), Sn = /* @__PURE__ */ O.createContext(null), $o = /* @__PURE__ */ O.createContext(null), Jt = /* @__PURE__ */ O.createContext({
|
|
4839
4839
|
outlet: null,
|
|
4840
4840
|
matches: []
|
|
4841
4841
|
}), lc = /* @__PURE__ */ O.createContext(null);
|
|
@@ -4847,7 +4847,7 @@ function u1(e, t) {
|
|
|
4847
4847
|
let {
|
|
4848
4848
|
basename: r,
|
|
4849
4849
|
navigator: o
|
|
4850
|
-
} = O.useContext(
|
|
4850
|
+
} = O.useContext(Sn), {
|
|
4851
4851
|
hash: a,
|
|
4852
4852
|
pathname: i,
|
|
4853
4853
|
search: s
|
|
@@ -4863,7 +4863,7 @@ function u1(e, t) {
|
|
|
4863
4863
|
function or() {
|
|
4864
4864
|
return O.useContext($o) != null;
|
|
4865
4865
|
}
|
|
4866
|
-
function
|
|
4866
|
+
function Rn() {
|
|
4867
4867
|
return or() || re(!1), O.useContext($o).location;
|
|
4868
4868
|
}
|
|
4869
4869
|
function uc() {
|
|
@@ -4871,11 +4871,11 @@ function uc() {
|
|
|
4871
4871
|
let {
|
|
4872
4872
|
basename: e,
|
|
4873
4873
|
navigator: t
|
|
4874
|
-
} = O.useContext(
|
|
4874
|
+
} = O.useContext(Sn), {
|
|
4875
4875
|
matches: n
|
|
4876
|
-
} = O.useContext(
|
|
4876
|
+
} = O.useContext(Jt), {
|
|
4877
4877
|
pathname: r
|
|
4878
|
-
} =
|
|
4878
|
+
} = Rn(), o = JSON.stringify(wo(n).map((s) => s.pathnameBase)), a = O.useRef(!1);
|
|
4879
4879
|
return O.useEffect(() => {
|
|
4880
4880
|
a.current = !0;
|
|
4881
4881
|
}), O.useCallback(function(s, l) {
|
|
@@ -4892,7 +4892,7 @@ function uc() {
|
|
|
4892
4892
|
function c1() {
|
|
4893
4893
|
let {
|
|
4894
4894
|
matches: e
|
|
4895
|
-
} = O.useContext(
|
|
4895
|
+
} = O.useContext(Jt), t = e[e.length - 1];
|
|
4896
4896
|
return t ? t.params : {};
|
|
4897
4897
|
}
|
|
4898
4898
|
function Ii(e, t) {
|
|
@@ -4900,29 +4900,29 @@ function Ii(e, t) {
|
|
|
4900
4900
|
relative: n
|
|
4901
4901
|
} = t === void 0 ? {} : t, {
|
|
4902
4902
|
matches: r
|
|
4903
|
-
} = O.useContext(
|
|
4903
|
+
} = O.useContext(Jt), {
|
|
4904
4904
|
pathname: o
|
|
4905
|
-
} =
|
|
4905
|
+
} = Rn(), a = JSON.stringify(wo(r).map((i) => i.pathnameBase));
|
|
4906
4906
|
return O.useMemo(() => Ai(e, JSON.parse(a), o, n === "path"), [e, a, o, n]);
|
|
4907
4907
|
}
|
|
4908
4908
|
function d1(e, t) {
|
|
4909
4909
|
or() || re(!1);
|
|
4910
4910
|
let {
|
|
4911
4911
|
navigator: n
|
|
4912
|
-
} = O.useContext(
|
|
4912
|
+
} = O.useContext(Sn), r = O.useContext(Co), {
|
|
4913
4913
|
matches: o
|
|
4914
|
-
} = O.useContext(
|
|
4914
|
+
} = O.useContext(Jt), a = o[o.length - 1], i = a ? a.params : {};
|
|
4915
4915
|
a && a.pathname;
|
|
4916
4916
|
let s = a ? a.pathnameBase : "/";
|
|
4917
4917
|
a && a.route;
|
|
4918
|
-
let l =
|
|
4918
|
+
let l = Rn(), u;
|
|
4919
4919
|
if (t) {
|
|
4920
4920
|
var c;
|
|
4921
4921
|
let g = typeof t == "string" ? vt(t) : t;
|
|
4922
4922
|
s === "/" || (c = g.pathname) != null && c.startsWith(s) || re(!1), u = g;
|
|
4923
4923
|
} else
|
|
4924
4924
|
u = l;
|
|
4925
|
-
let d = u.pathname || "/", h = s === "/" ? d : d.slice(s.length) || "/", f =
|
|
4925
|
+
let d = u.pathname || "/", h = s === "/" ? d : d.slice(s.length) || "/", f = hn(e, {
|
|
4926
4926
|
pathname: h
|
|
4927
4927
|
}), v = g1(f && f.map((g) => Object.assign({}, g, {
|
|
4928
4928
|
params: Object.assign({}, i, g.params),
|
|
@@ -4988,7 +4988,7 @@ class h1 extends O.Component {
|
|
|
4988
4988
|
console.error("React Router caught the following error during render", t, n);
|
|
4989
4989
|
}
|
|
4990
4990
|
render() {
|
|
4991
|
-
return this.state.error ? /* @__PURE__ */ O.createElement(
|
|
4991
|
+
return this.state.error ? /* @__PURE__ */ O.createElement(Jt.Provider, {
|
|
4992
4992
|
value: this.props.routeContext
|
|
4993
4993
|
}, /* @__PURE__ */ O.createElement(lc.Provider, {
|
|
4994
4994
|
value: this.state.error,
|
|
@@ -5002,7 +5002,7 @@ function p1(e) {
|
|
|
5002
5002
|
match: n,
|
|
5003
5003
|
children: r
|
|
5004
5004
|
} = e, o = O.useContext(Fi);
|
|
5005
|
-
return o && o.static && o.staticContext && n.route.errorElement && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ O.createElement(
|
|
5005
|
+
return o && o.static && o.staticContext && n.route.errorElement && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ O.createElement(Jt.Provider, {
|
|
5006
5006
|
value: t
|
|
5007
5007
|
}, r);
|
|
5008
5008
|
}
|
|
@@ -5050,7 +5050,7 @@ function v1(e) {
|
|
|
5050
5050
|
return t || re(!1), t;
|
|
5051
5051
|
}
|
|
5052
5052
|
function m1(e) {
|
|
5053
|
-
let t = O.useContext(
|
|
5053
|
+
let t = O.useContext(Jt);
|
|
5054
5054
|
return t || re(!1), t;
|
|
5055
5055
|
}
|
|
5056
5056
|
function b1(e) {
|
|
@@ -5139,7 +5139,7 @@ function $1(e) {
|
|
|
5139
5139
|
key: f
|
|
5140
5140
|
};
|
|
5141
5141
|
}, [s, u, c, d, h, f]);
|
|
5142
|
-
return v == null ? null : /* @__PURE__ */ O.createElement(
|
|
5142
|
+
return v == null ? null : /* @__PURE__ */ O.createElement(Sn.Provider, {
|
|
5143
5143
|
value: l
|
|
5144
5144
|
}, /* @__PURE__ */ O.createElement($o.Provider, {
|
|
5145
5145
|
children: n,
|
|
@@ -5290,7 +5290,7 @@ const D1 = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
5290
5290
|
preventScrollReset: c
|
|
5291
5291
|
} = t, d = dc(t, E1), {
|
|
5292
5292
|
basename: h
|
|
5293
|
-
} = O.useContext(
|
|
5293
|
+
} = O.useContext(Sn), f, v = !1;
|
|
5294
5294
|
if (typeof u == "string" && A1.test(u) && (f = u, D1)) {
|
|
5295
5295
|
let b = new URL(window.location.href), y = u.startsWith("//") ? new URL(b.protocol + u) : new URL(u), C = rr(y.pathname, h);
|
|
5296
5296
|
y.origin === b.origin && C != null ? u = C + y.search + y.hash : v = !0;
|
|
@@ -5327,9 +5327,9 @@ const D1 = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
5327
5327
|
children: u
|
|
5328
5328
|
} = t, c = dc(t, P1), d = Ii(l, {
|
|
5329
5329
|
relative: c.relative
|
|
5330
|
-
}), h =
|
|
5330
|
+
}), h = Rn(), f = O.useContext(Co), {
|
|
5331
5331
|
navigator: v
|
|
5332
|
-
} = O.useContext(
|
|
5332
|
+
} = O.useContext(Sn), g = v.encodeLocation ? v.encodeLocation(d).pathname : d.pathname, p = h.pathname, m = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
|
|
5333
5333
|
o || (p = p.toLowerCase(), m = m ? m.toLowerCase() : null, g = g.toLowerCase());
|
|
5334
5334
|
let b = p === g || !i && p.startsWith(g) && p.charAt(g.length) === "/", y = m != null && (m === g || !i && m.startsWith(g) && m.charAt(g.length) === "/"), C = b ? r : void 0, x;
|
|
5335
5335
|
typeof a == "function" ? x = a({
|
|
@@ -5366,7 +5366,7 @@ function F1(e, t) {
|
|
|
5366
5366
|
state: o,
|
|
5367
5367
|
preventScrollReset: a,
|
|
5368
5368
|
relative: i
|
|
5369
|
-
} = t === void 0 ? {} : t, s = uc(), l =
|
|
5369
|
+
} = t === void 0 ? {} : t, s = uc(), l = Rn(), u = Ii(e, {
|
|
5370
5370
|
relative: i
|
|
5371
5371
|
});
|
|
5372
5372
|
return O.useCallback((c) => {
|
|
@@ -5383,7 +5383,7 @@ function F1(e, t) {
|
|
|
5383
5383
|
}, [l, s, u, r, o, n, e, a, i]);
|
|
5384
5384
|
}
|
|
5385
5385
|
function I1(e) {
|
|
5386
|
-
let t = O.useRef(Ha(e)), n = O.useRef(!1), r =
|
|
5386
|
+
let t = O.useRef(Ha(e)), n = O.useRef(!1), r = Rn(), o = O.useMemo(() => (
|
|
5387
5387
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
5388
5388
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
5389
5389
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
@@ -5426,7 +5426,7 @@ function me(...e) {
|
|
|
5426
5426
|
return X(ji(...e), e);
|
|
5427
5427
|
}
|
|
5428
5428
|
function N1(e, t) {
|
|
5429
|
-
const n = /* @__PURE__ */
|
|
5429
|
+
const n = /* @__PURE__ */ mn(t);
|
|
5430
5430
|
function r(a) {
|
|
5431
5431
|
const { children: i, ...s } = a, l = tt(
|
|
5432
5432
|
() => s,
|
|
@@ -5452,7 +5452,7 @@ function N1(e, t) {
|
|
|
5452
5452
|
function Ve(e, t = []) {
|
|
5453
5453
|
let n = [];
|
|
5454
5454
|
function r(a, i) {
|
|
5455
|
-
const s = /* @__PURE__ */
|
|
5455
|
+
const s = /* @__PURE__ */ mn(i), l = n.length;
|
|
5456
5456
|
n = [
|
|
5457
5457
|
...n,
|
|
5458
5458
|
i
|
|
@@ -5480,7 +5480,7 @@ function Ve(e, t = []) {
|
|
|
5480
5480
|
];
|
|
5481
5481
|
}
|
|
5482
5482
|
const o = () => {
|
|
5483
|
-
const a = n.map((i) => /* @__PURE__ */
|
|
5483
|
+
const a = n.map((i) => /* @__PURE__ */ mn(i));
|
|
5484
5484
|
return function(s) {
|
|
5485
5485
|
const l = (s == null ? void 0 : s[e]) || a;
|
|
5486
5486
|
return tt(
|
|
@@ -5533,7 +5533,7 @@ function j1(...e) {
|
|
|
5533
5533
|
};
|
|
5534
5534
|
return n.scopeName = t.scopeName, n;
|
|
5535
5535
|
}
|
|
5536
|
-
const
|
|
5536
|
+
const yn = /* @__PURE__ */ F((e, t) => {
|
|
5537
5537
|
const { children: n, ...r } = e, o = Vt.toArray(n), a = o.find(H1);
|
|
5538
5538
|
if (a) {
|
|
5539
5539
|
const i = a.props.children, s = o.map((l) => l === a ? Vt.count(i) > 1 ? Vt.only(null) : /* @__PURE__ */ Vr(i) ? i.props.children : null : l);
|
|
@@ -5545,7 +5545,7 @@ const bn = /* @__PURE__ */ F((e, t) => {
|
|
|
5545
5545
|
ref: t
|
|
5546
5546
|
}), n);
|
|
5547
5547
|
});
|
|
5548
|
-
|
|
5548
|
+
yn.displayName = "Slot";
|
|
5549
5549
|
const Ua = /* @__PURE__ */ F((e, t) => {
|
|
5550
5550
|
const { children: n, ...r } = e;
|
|
5551
5551
|
return /* @__PURE__ */ Vr(n) ? /* @__PURE__ */ Si(n, {
|
|
@@ -5594,7 +5594,7 @@ function Ui(e) {
|
|
|
5594
5594
|
}, g);
|
|
5595
5595
|
}, s = e + "CollectionSlot", l = /* @__PURE__ */ I.forwardRef((f, v) => {
|
|
5596
5596
|
const { scope: g, children: p } = f, m = a(s, g), b = me(v, m.collectionRef);
|
|
5597
|
-
return /* @__PURE__ */ I.createElement(
|
|
5597
|
+
return /* @__PURE__ */ I.createElement(yn, {
|
|
5598
5598
|
ref: b
|
|
5599
5599
|
}, p);
|
|
5600
5600
|
}), u = e + "CollectionItemSlot", c = "data-radix-collection-item", d = /* @__PURE__ */ I.forwardRef((f, v) => {
|
|
@@ -5602,7 +5602,7 @@ function Ui(e) {
|
|
|
5602
5602
|
return I.useEffect(() => (C.itemMap.set(b, {
|
|
5603
5603
|
ref: b,
|
|
5604
5604
|
...m
|
|
5605
|
-
}), () => void C.itemMap.delete(b))), /* @__PURE__ */ I.createElement(
|
|
5605
|
+
}), () => void C.itemMap.delete(b))), /* @__PURE__ */ I.createElement(yn, {
|
|
5606
5606
|
[c]: "",
|
|
5607
5607
|
ref: y
|
|
5608
5608
|
}, p);
|
|
@@ -5649,7 +5649,7 @@ const q1 = [
|
|
|
5649
5649
|
"ul"
|
|
5650
5650
|
], ce = q1.reduce((e, t) => {
|
|
5651
5651
|
const n = /* @__PURE__ */ F((r, o) => {
|
|
5652
|
-
const { asChild: a, ...i } = r, s = a ?
|
|
5652
|
+
const { asChild: a, ...i } = r, s = a ? yn : t;
|
|
5653
5653
|
return G(() => {
|
|
5654
5654
|
window[Symbol.for("radix-ui")] = !0;
|
|
5655
5655
|
}, []), /* @__PURE__ */ w(s, D({}, i, {
|
|
@@ -5692,7 +5692,7 @@ function V1(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5692
5692
|
}
|
|
5693
5693
|
const qa = "dismissableLayer.update", B1 = "dismissableLayer.pointerDownOutside", G1 = "dismissableLayer.focusOutside";
|
|
5694
5694
|
let tl;
|
|
5695
|
-
const fc = /* @__PURE__ */
|
|
5695
|
+
const fc = /* @__PURE__ */ mn({
|
|
5696
5696
|
layers: /* @__PURE__ */ new Set(),
|
|
5697
5697
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5698
5698
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5958,7 +5958,7 @@ const Vi = /* @__PURE__ */ F((e, t) => /* @__PURE__ */ w(ce.span, D({}, e, {
|
|
|
5958
5958
|
wordWrap: "normal",
|
|
5959
5959
|
...e.style
|
|
5960
5960
|
}
|
|
5961
|
-
}))), ep = Vi, pc = "ToastProvider", [Bi, tp, np] = Ui("Toast"), [gc,
|
|
5961
|
+
}))), ep = Vi, pc = "ToastProvider", [Bi, tp, np] = Ui("Toast"), [gc, q6] = Ve("Toast", [
|
|
5962
5962
|
np
|
|
5963
5963
|
]), [rp, Ro] = gc(pc), vc = (e) => {
|
|
5964
5964
|
const { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: o = "right", swipeThreshold: a = 50, children: i } = e, [s, l] = te(null), [u, c] = te(0), d = N(!1), h = N(!1);
|
|
@@ -6468,7 +6468,7 @@ var Pp = ["color"], Mp = /* @__PURE__ */ F(function(e, t) {
|
|
|
6468
6468
|
fillRule: "evenodd",
|
|
6469
6469
|
clipRule: "evenodd"
|
|
6470
6470
|
}));
|
|
6471
|
-
}), Ap = ["color"],
|
|
6471
|
+
}), Ap = ["color"], wn = /* @__PURE__ */ F(function(e, t) {
|
|
6472
6472
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = he(e, Ap);
|
|
6473
6473
|
return w("svg", Object.assign({
|
|
6474
6474
|
width: "15",
|
|
@@ -6916,7 +6916,7 @@ var Pp = ["color"], Mp = /* @__PURE__ */ F(function(e, t) {
|
|
|
6916
6916
|
const wg = O["useId".toString()] || (() => {
|
|
6917
6917
|
});
|
|
6918
6918
|
let Cg = 0;
|
|
6919
|
-
function
|
|
6919
|
+
function Gt(e) {
|
|
6920
6920
|
const [t, n] = O.useState(wg());
|
|
6921
6921
|
return ct(() => {
|
|
6922
6922
|
e || n(
|
|
@@ -6926,7 +6926,7 @@ function Bt(e) {
|
|
|
6926
6926
|
e
|
|
6927
6927
|
]), e || (t ? `radix-${t}` : "");
|
|
6928
6928
|
}
|
|
6929
|
-
const $g = /* @__PURE__ */
|
|
6929
|
+
const $g = /* @__PURE__ */ mn(void 0);
|
|
6930
6930
|
function Wi(e) {
|
|
6931
6931
|
const t = er($g);
|
|
6932
6932
|
return e || t || "ltr";
|
|
@@ -7023,7 +7023,7 @@ const na = "rovingFocusGroup.onEntryFocus", xg = {
|
|
|
7023
7023
|
)
|
|
7024
7024
|
})));
|
|
7025
7025
|
}), Tg = "RovingFocusGroupItem", _g = /* @__PURE__ */ F((e, t) => {
|
|
7026
|
-
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, tabStopId: a, ...i } = e, s =
|
|
7026
|
+
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, tabStopId: a, ...i } = e, s = Gt(), l = a || s, u = Eg(Tg, n), c = u.currentTabStopId === l, d = $c(n), { onFocusableItemAdd: h, onFocusableItemRemove: f } = u;
|
|
7027
7027
|
return G(() => {
|
|
7028
7028
|
if (r)
|
|
7029
7029
|
return h(), () => f();
|
|
@@ -7128,7 +7128,7 @@ const Sc = Pg, Rc = _g, Ig = /* @__PURE__ */ F((e, t) => {
|
|
|
7128
7128
|
e.disabled || s(!i);
|
|
7129
7129
|
})
|
|
7130
7130
|
}));
|
|
7131
|
-
}), Mo = "ToggleGroup", [Oc,
|
|
7131
|
+
}), Mo = "ToggleGroup", [Oc, V6] = Ve(Mo, [
|
|
7132
7132
|
Po
|
|
7133
7133
|
]), Ec = Po(), Lg = /* @__PURE__ */ I.forwardRef((e, t) => {
|
|
7134
7134
|
const { type: n, ...r } = e;
|
|
@@ -7340,7 +7340,7 @@ var zg = function() {
|
|
|
7340
7340
|
/* @__PURE__ */ j("div", { className: "w-full space-y-4", children: [
|
|
7341
7341
|
/* @__PURE__ */ $(il, { label: "Overview", icon: /* @__PURE__ */ $(Lp, { className: "mb-0.5", height: 16, width: 16 }), to: "../" }),
|
|
7342
7342
|
/* @__PURE__ */ $("div", { className: "h-px w-full bg-slate-100 dark:bg-slate-700" }),
|
|
7343
|
-
/* @__PURE__ */ $("div", { className: "w-full space-y-1", children: o ?
|
|
7343
|
+
/* @__PURE__ */ $("div", { className: "w-full space-y-1", children: o ? Bt([], new Array(10), !0).map(function(i, s) {
|
|
7344
7344
|
return /* @__PURE__ */ $(Ni, { className: "h-8" }, s);
|
|
7345
7345
|
}) : a ? /* @__PURE__ */ $(Wa, { message: "Could not fetch queues" }) : r == null ? void 0 : r.map(function(i) {
|
|
7346
7346
|
return /* @__PURE__ */ $(il, { to: "../".concat(i.name), label: i.displayName }, i.name);
|
|
@@ -8840,7 +8840,7 @@ function Hc(e, t) {
|
|
|
8840
8840
|
}
|
|
8841
8841
|
return n.length - r.length;
|
|
8842
8842
|
}
|
|
8843
|
-
const
|
|
8843
|
+
const Dn = {
|
|
8844
8844
|
alphanumeric: gv,
|
|
8845
8845
|
alphanumericCaseSensitive: vv,
|
|
8846
8846
|
text: mv,
|
|
@@ -8866,11 +8866,11 @@ const _n = {
|
|
|
8866
8866
|
for (const o of n) {
|
|
8867
8867
|
const a = o == null ? void 0 : o.getValue(e.id);
|
|
8868
8868
|
if (Object.prototype.toString.call(a) === "[object Date]")
|
|
8869
|
-
return
|
|
8869
|
+
return Dn.datetime;
|
|
8870
8870
|
if (typeof a == "string" && (r = !0, a.split(Xa).length > 1))
|
|
8871
|
-
return
|
|
8871
|
+
return Dn.alphanumeric;
|
|
8872
8872
|
}
|
|
8873
|
-
return r ?
|
|
8873
|
+
return r ? Dn.text : Dn.basic;
|
|
8874
8874
|
},
|
|
8875
8875
|
getAutoSortDir: () => {
|
|
8876
8876
|
const n = t.getFilteredRowModel().flatRows[0];
|
|
@@ -8880,7 +8880,7 @@ const _n = {
|
|
|
8880
8880
|
var n, r;
|
|
8881
8881
|
if (!e)
|
|
8882
8882
|
throw new Error();
|
|
8883
|
-
return Xr(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (r = t.options.sortingFns) == null ? void 0 : r[e.columnDef.sortingFn]) != null ? n :
|
|
8883
|
+
return Xr(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (r = t.options.sortingFns) == null ? void 0 : r[e.columnDef.sortingFn]) != null ? n : Dn[e.columnDef.sortingFn];
|
|
8884
8884
|
},
|
|
8885
8885
|
toggleSorting: (n, r) => {
|
|
8886
8886
|
const o = e.getNextSortingOrder(), a = typeof n < "u" && n !== null;
|
|
@@ -9324,7 +9324,7 @@ function _v(e) {
|
|
|
9324
9324
|
}
|
|
9325
9325
|
})), n.current;
|
|
9326
9326
|
}
|
|
9327
|
-
function
|
|
9327
|
+
function Kt(e) {
|
|
9328
9328
|
if (e === null || e === !0 || e === !1)
|
|
9329
9329
|
return NaN;
|
|
9330
9330
|
var t = Number(e);
|
|
@@ -9348,11 +9348,11 @@ function de(e) {
|
|
|
9348
9348
|
}
|
|
9349
9349
|
function Dv(e, t) {
|
|
9350
9350
|
pe(2, arguments);
|
|
9351
|
-
var n = de(e).getTime(), r =
|
|
9351
|
+
var n = de(e).getTime(), r = Kt(t);
|
|
9352
9352
|
return new Date(n + r);
|
|
9353
9353
|
}
|
|
9354
9354
|
var Av = {};
|
|
9355
|
-
function
|
|
9355
|
+
function On() {
|
|
9356
9356
|
return Av;
|
|
9357
9357
|
}
|
|
9358
9358
|
function Wn(e) {
|
|
@@ -9434,7 +9434,7 @@ function Bv(e, t, n) {
|
|
|
9434
9434
|
}
|
|
9435
9435
|
function Gv(e, t) {
|
|
9436
9436
|
pe(2, arguments);
|
|
9437
|
-
var n =
|
|
9437
|
+
var n = Kt(t);
|
|
9438
9438
|
return Dv(e, -n);
|
|
9439
9439
|
}
|
|
9440
9440
|
var zv = 864e5;
|
|
@@ -9475,7 +9475,7 @@ function Yv(e) {
|
|
|
9475
9475
|
function eo(e, t) {
|
|
9476
9476
|
var n, r, o, a, i, s, l, u;
|
|
9477
9477
|
pe(1, arguments);
|
|
9478
|
-
var c =
|
|
9478
|
+
var c = On(), d = Kt((n = (r = (o = (a = t == null ? void 0 : t.weekStartsOn) !== null && a !== void 0 ? a : t == null || (i = t.locale) === null || i === void 0 || (s = i.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && o !== void 0 ? o : c.weekStartsOn) !== null && r !== void 0 ? r : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && n !== void 0 ? n : 0);
|
|
9479
9479
|
if (!(d >= 0 && d <= 6))
|
|
9480
9480
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
9481
9481
|
var h = de(e), f = h.getUTCDay(), v = (f < d ? 7 : 0) + f - d;
|
|
@@ -9484,7 +9484,7 @@ function eo(e, t) {
|
|
|
9484
9484
|
function qc(e, t) {
|
|
9485
9485
|
var n, r, o, a, i, s, l, u;
|
|
9486
9486
|
pe(1, arguments);
|
|
9487
|
-
var c = de(e), d = c.getUTCFullYear(), h =
|
|
9487
|
+
var c = de(e), d = c.getUTCFullYear(), h = On(), f = Kt((n = (r = (o = (a = t == null ? void 0 : t.firstWeekContainsDate) !== null && a !== void 0 ? a : t == null || (i = t.locale) === null || i === void 0 || (s = i.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && o !== void 0 ? o : h.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
|
|
9488
9488
|
if (!(f >= 1 && f <= 7))
|
|
9489
9489
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
9490
9490
|
var v = new Date(0);
|
|
@@ -9497,7 +9497,7 @@ function qc(e, t) {
|
|
|
9497
9497
|
function Zv(e, t) {
|
|
9498
9498
|
var n, r, o, a, i, s, l, u;
|
|
9499
9499
|
pe(1, arguments);
|
|
9500
|
-
var c =
|
|
9500
|
+
var c = On(), d = Kt((n = (r = (o = (a = t == null ? void 0 : t.firstWeekContainsDate) !== null && a !== void 0 ? a : t == null || (i = t.locale) === null || i === void 0 || (s = i.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && o !== void 0 ? o : c.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), h = qc(e, t), f = new Date(0);
|
|
9501
9501
|
f.setUTCFullYear(h, 0, d), f.setUTCHours(0, 0, 0, 0);
|
|
9502
9502
|
var v = eo(f, t);
|
|
9503
9503
|
return v;
|
|
@@ -9567,7 +9567,7 @@ var e2 = {
|
|
|
9567
9567
|
}
|
|
9568
9568
|
};
|
|
9569
9569
|
const St = e2;
|
|
9570
|
-
var
|
|
9570
|
+
var an = {
|
|
9571
9571
|
am: "am",
|
|
9572
9572
|
pm: "pm",
|
|
9573
9573
|
midnight: "midnight",
|
|
@@ -9948,7 +9948,7 @@ var on = {
|
|
|
9948
9948
|
// AM, PM, midnight, noon
|
|
9949
9949
|
b: function(t, n, r) {
|
|
9950
9950
|
var o = t.getUTCHours(), a;
|
|
9951
|
-
switch (o === 12 ? a =
|
|
9951
|
+
switch (o === 12 ? a = an.noon : o === 0 ? a = an.midnight : a = o / 12 >= 1 ? "pm" : "am", n) {
|
|
9952
9952
|
case "b":
|
|
9953
9953
|
case "bb":
|
|
9954
9954
|
return r.dayPeriod(a, {
|
|
@@ -9976,7 +9976,7 @@ var on = {
|
|
|
9976
9976
|
// in the morning, in the afternoon, in the evening, at night
|
|
9977
9977
|
B: function(t, n, r) {
|
|
9978
9978
|
var o = t.getUTCHours(), a;
|
|
9979
|
-
switch (o >= 17 ? a =
|
|
9979
|
+
switch (o >= 17 ? a = an.evening : o >= 12 ? a = an.afternoon : o >= 4 ? a = an.morning : a = an.night, n) {
|
|
9980
9980
|
case "B":
|
|
9981
9981
|
case "BB":
|
|
9982
9982
|
case "BBB":
|
|
@@ -10336,7 +10336,7 @@ var b2 = {
|
|
|
10336
10336
|
return b2[t];
|
|
10337
10337
|
};
|
|
10338
10338
|
const w2 = y2;
|
|
10339
|
-
function
|
|
10339
|
+
function An(e) {
|
|
10340
10340
|
return function(t, n) {
|
|
10341
10341
|
var r = n != null && n.context ? String(n.context) : "standalone", o;
|
|
10342
10342
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -10443,26 +10443,26 @@ var C2 = {
|
|
|
10443
10443
|
return r + "th";
|
|
10444
10444
|
}, P2 = {
|
|
10445
10445
|
ordinalNumber: E2,
|
|
10446
|
-
era:
|
|
10446
|
+
era: An({
|
|
10447
10447
|
values: C2,
|
|
10448
10448
|
defaultWidth: "wide"
|
|
10449
10449
|
}),
|
|
10450
|
-
quarter:
|
|
10450
|
+
quarter: An({
|
|
10451
10451
|
values: $2,
|
|
10452
10452
|
defaultWidth: "wide",
|
|
10453
10453
|
argumentCallback: function(t) {
|
|
10454
10454
|
return t - 1;
|
|
10455
10455
|
}
|
|
10456
10456
|
}),
|
|
10457
|
-
month:
|
|
10457
|
+
month: An({
|
|
10458
10458
|
values: x2,
|
|
10459
10459
|
defaultWidth: "wide"
|
|
10460
10460
|
}),
|
|
10461
|
-
day:
|
|
10461
|
+
day: An({
|
|
10462
10462
|
values: S2,
|
|
10463
10463
|
defaultWidth: "wide"
|
|
10464
10464
|
}),
|
|
10465
|
-
dayPeriod:
|
|
10465
|
+
dayPeriod: An({
|
|
10466
10466
|
values: R2,
|
|
10467
10467
|
defaultWidth: "wide",
|
|
10468
10468
|
formattingValues: O2,
|
|
@@ -10470,7 +10470,7 @@ var C2 = {
|
|
|
10470
10470
|
})
|
|
10471
10471
|
};
|
|
10472
10472
|
const M2 = P2;
|
|
10473
|
-
function
|
|
10473
|
+
function kn(e) {
|
|
10474
10474
|
return function(t) {
|
|
10475
10475
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
|
|
10476
10476
|
if (!a)
|
|
@@ -10564,13 +10564,13 @@ var A2 = /^(\d+)(th|st|nd|rd)?/i, k2 = /\d+/i, F2 = {
|
|
|
10564
10564
|
return parseInt(t, 10);
|
|
10565
10565
|
}
|
|
10566
10566
|
}),
|
|
10567
|
-
era:
|
|
10567
|
+
era: kn({
|
|
10568
10568
|
matchPatterns: F2,
|
|
10569
10569
|
defaultMatchWidth: "wide",
|
|
10570
10570
|
parsePatterns: I2,
|
|
10571
10571
|
defaultParseWidth: "any"
|
|
10572
10572
|
}),
|
|
10573
|
-
quarter:
|
|
10573
|
+
quarter: kn({
|
|
10574
10574
|
matchPatterns: L2,
|
|
10575
10575
|
defaultMatchWidth: "wide",
|
|
10576
10576
|
parsePatterns: N2,
|
|
@@ -10579,19 +10579,19 @@ var A2 = /^(\d+)(th|st|nd|rd)?/i, k2 = /\d+/i, F2 = {
|
|
|
10579
10579
|
return t + 1;
|
|
10580
10580
|
}
|
|
10581
10581
|
}),
|
|
10582
|
-
month:
|
|
10582
|
+
month: kn({
|
|
10583
10583
|
matchPatterns: j2,
|
|
10584
10584
|
defaultMatchWidth: "wide",
|
|
10585
10585
|
parsePatterns: H2,
|
|
10586
10586
|
defaultParseWidth: "any"
|
|
10587
10587
|
}),
|
|
10588
|
-
day:
|
|
10588
|
+
day: kn({
|
|
10589
10589
|
matchPatterns: U2,
|
|
10590
10590
|
defaultMatchWidth: "wide",
|
|
10591
10591
|
parsePatterns: q2,
|
|
10592
10592
|
defaultParseWidth: "any"
|
|
10593
10593
|
}),
|
|
10594
|
-
dayPeriod:
|
|
10594
|
+
dayPeriod: kn({
|
|
10595
10595
|
matchPatterns: V2,
|
|
10596
10596
|
defaultMatchWidth: "any",
|
|
10597
10597
|
parsePatterns: B2,
|
|
@@ -10616,10 +10616,10 @@ var W2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, K2 = /P+p+|P+|
|
|
|
10616
10616
|
function J2(e, t, n) {
|
|
10617
10617
|
var r, o, a, i, s, l, u, c, d, h, f, v, g, p, m, b, y, C;
|
|
10618
10618
|
pe(2, arguments);
|
|
10619
|
-
var x = String(t), E =
|
|
10619
|
+
var x = String(t), E = On(), S = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : E.locale) !== null && r !== void 0 ? r : Ji, R = Kt((a = (i = (s = (l = n == null ? void 0 : n.firstWeekContainsDate) !== null && l !== void 0 ? l : n == null || (u = n.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && s !== void 0 ? s : E.firstWeekContainsDate) !== null && i !== void 0 ? i : (d = E.locale) === null || d === void 0 || (h = d.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
10620
10620
|
if (!(R >= 1 && R <= 7))
|
|
10621
10621
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
10622
|
-
var T =
|
|
10622
|
+
var T = Kt((f = (v = (g = (p = n == null ? void 0 : n.weekStartsOn) !== null && p !== void 0 ? p : n == null || (m = n.locale) === null || m === void 0 || (b = m.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && g !== void 0 ? g : E.weekStartsOn) !== null && v !== void 0 ? v : (y = E.locale) === null || y === void 0 || (C = y.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && f !== void 0 ? f : 0);
|
|
10623
10623
|
if (!(T >= 0 && T <= 6))
|
|
10624
10624
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
10625
10625
|
if (!S.localize)
|
|
@@ -10674,7 +10674,7 @@ var ml = 1440, tm = 2520, ca = 43200, nm = 86400;
|
|
|
10674
10674
|
function rm(e, t, n) {
|
|
10675
10675
|
var r, o;
|
|
10676
10676
|
pe(2, arguments);
|
|
10677
|
-
var a =
|
|
10677
|
+
var a = On(), i = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : a.locale) !== null && r !== void 0 ? r : Ji;
|
|
10678
10678
|
if (!i.formatDistance)
|
|
10679
10679
|
throw new RangeError("locale must contain formatDistance property");
|
|
10680
10680
|
var s = Nn(e, t);
|
|
@@ -10716,7 +10716,7 @@ var bl = 1e3 * 60, to = 60 * 24, yl = to * 30, wl = to * 365;
|
|
|
10716
10716
|
function om(e, t, n) {
|
|
10717
10717
|
var r, o, a;
|
|
10718
10718
|
pe(2, arguments);
|
|
10719
|
-
var i =
|
|
10719
|
+
var i = On(), s = (r = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : i.locale) !== null && r !== void 0 ? r : Ji;
|
|
10720
10720
|
if (!s.formatDistance)
|
|
10721
10721
|
throw new RangeError("locale must contain localize.formatDistance property");
|
|
10722
10722
|
var l = Nn(e, t);
|
|
@@ -10895,7 +10895,7 @@ function Gc(e) {
|
|
|
10895
10895
|
e[t] && (r && (r += " "), r += t);
|
|
10896
10896
|
return r;
|
|
10897
10897
|
}
|
|
10898
|
-
function
|
|
10898
|
+
function Cn() {
|
|
10899
10899
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
10900
10900
|
(e = arguments[n++]) && (t = Gc(e)) && (r && (r += " "), r += t);
|
|
10901
10901
|
return r;
|
|
@@ -10903,8 +10903,8 @@ function wn() {
|
|
|
10903
10903
|
var hm = function() {
|
|
10904
10904
|
return /* @__PURE__ */ j("div", { children: [
|
|
10905
10905
|
/* @__PURE__ */ $("div", { className: "rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800", children: /* @__PURE__ */ $("span", { className: "opacity-0", children: "Placeholder" }) }),
|
|
10906
|
-
|
|
10907
|
-
return /* @__PURE__ */ $("div", { className:
|
|
10906
|
+
Bt([], new Array(ei), !0).map(function(e, t) {
|
|
10907
|
+
return /* @__PURE__ */ $("div", { className: Cn("p-2", ei !== t + 1 ? "border-b border-slate-200 dark:border-slate-700" : ""), children: /* @__PURE__ */ $(Ni, { className: "h-6" }) }, t);
|
|
10908
10908
|
})
|
|
10909
10909
|
] });
|
|
10910
10910
|
};
|
|
@@ -10949,7 +10949,7 @@ function zc(e) {
|
|
|
10949
10949
|
e
|
|
10950
10950
|
]), t;
|
|
10951
10951
|
}
|
|
10952
|
-
const Qc = "Checkbox", [gm,
|
|
10952
|
+
const Qc = "Checkbox", [gm, B6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ */ F((e, t) => {
|
|
10953
10953
|
const { __scopeCheckbox: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: u, ...c } = e, [d, h] = te(null), f = me(
|
|
10954
10954
|
t,
|
|
10955
10955
|
(y) => h(y)
|
|
@@ -10974,7 +10974,7 @@ const Qc = "Checkbox", [gm, G6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ *
|
|
|
10974
10974
|
}, /* @__PURE__ */ w(ce.button, D({
|
|
10975
10975
|
type: "button",
|
|
10976
10976
|
role: "checkbox",
|
|
10977
|
-
"aria-checked":
|
|
10977
|
+
"aria-checked": zt(p) ? "mixed" : p,
|
|
10978
10978
|
"aria-required": i,
|
|
10979
10979
|
"data-state": Wc(p),
|
|
10980
10980
|
"data-disabled": s ? "" : void 0,
|
|
@@ -10987,7 +10987,7 @@ const Qc = "Checkbox", [gm, G6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ *
|
|
|
10987
10987
|
}),
|
|
10988
10988
|
onClick: W(e.onClick, (y) => {
|
|
10989
10989
|
m(
|
|
10990
|
-
(C) =>
|
|
10990
|
+
(C) => zt(C) ? !0 : !C
|
|
10991
10991
|
), g && (v.current = y.isPropagationStopped(), v.current || y.stopPropagation());
|
|
10992
10992
|
})
|
|
10993
10993
|
})), g && /* @__PURE__ */ w(Cm, {
|
|
@@ -11005,7 +11005,7 @@ const Qc = "Checkbox", [gm, G6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ *
|
|
|
11005
11005
|
}), ym = "CheckboxIndicator", wm = /* @__PURE__ */ F((e, t) => {
|
|
11006
11006
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, a = mm(ym, n);
|
|
11007
11007
|
return /* @__PURE__ */ w(rt, {
|
|
11008
|
-
present: r ||
|
|
11008
|
+
present: r || zt(a.state) || a.state === !0
|
|
11009
11009
|
}, /* @__PURE__ */ w(ce.span, D({
|
|
11010
11010
|
"data-state": Wc(a.state),
|
|
11011
11011
|
"data-disabled": a.disabled ? "" : void 0
|
|
@@ -11024,7 +11024,7 @@ const Qc = "Checkbox", [gm, G6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ *
|
|
|
11024
11024
|
const h = new Event("click", {
|
|
11025
11025
|
bubbles: r
|
|
11026
11026
|
});
|
|
11027
|
-
l.indeterminate =
|
|
11027
|
+
l.indeterminate = zt(n), d.call(l, zt(n) ? !1 : n), l.dispatchEvent(h);
|
|
11028
11028
|
}
|
|
11029
11029
|
}, [
|
|
11030
11030
|
i,
|
|
@@ -11033,7 +11033,7 @@ const Qc = "Checkbox", [gm, G6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ *
|
|
|
11033
11033
|
]), /* @__PURE__ */ w("input", D({
|
|
11034
11034
|
type: "checkbox",
|
|
11035
11035
|
"aria-hidden": !0,
|
|
11036
|
-
defaultChecked:
|
|
11036
|
+
defaultChecked: zt(n) ? !1 : n
|
|
11037
11037
|
}, o, {
|
|
11038
11038
|
tabIndex: -1,
|
|
11039
11039
|
ref: a,
|
|
@@ -11047,16 +11047,16 @@ const Qc = "Checkbox", [gm, G6] = Ve(Qc), [vm, mm] = gm(Qc), bm = /* @__PURE__ *
|
|
|
11047
11047
|
}
|
|
11048
11048
|
}));
|
|
11049
11049
|
};
|
|
11050
|
-
function
|
|
11050
|
+
function zt(e) {
|
|
11051
11051
|
return e === "indeterminate";
|
|
11052
11052
|
}
|
|
11053
11053
|
function Wc(e) {
|
|
11054
|
-
return
|
|
11054
|
+
return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
11055
11055
|
}
|
|
11056
11056
|
const $m = bm, xm = wm;
|
|
11057
11057
|
var $l = function(e) {
|
|
11058
11058
|
var t = e.className, n = X0(e, ["className"]);
|
|
11059
|
-
return /* @__PURE__ */ $($m, { className:
|
|
11059
|
+
return /* @__PURE__ */ $($m, { className: Cn("flex h-4 w-4 cursor-pointer rounded-sm border shadow-sm", t, {
|
|
11060
11060
|
"border-slate-300 hover:border-slate-500 hover:bg-slate-100": !n.checked,
|
|
11061
11061
|
"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600": n.checked === !0,
|
|
11062
11062
|
"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100": n.checked === "indeterminate"
|
|
@@ -11073,7 +11073,7 @@ var $l = function(e) {
|
|
|
11073
11073
|
/* @__PURE__ */ $("span", { children: t })
|
|
11074
11074
|
] });
|
|
11075
11075
|
};
|
|
11076
|
-
const Kc = "Progress", To = 100, [Sm,
|
|
11076
|
+
const Kc = "Progress", To = 100, [Sm, G6] = Ve(Kc), [Rm, Om] = Sm(Kc), Yc = /* @__PURE__ */ F((e, t) => {
|
|
11077
11077
|
const { __scopeProgress: n, value: r, max: o, getValueLabel: a = Mm, ...i } = e, s = ri(o) ? o : To, l = Xc(r, s) ? r : null, u = no(l) ? a(l, s) : void 0;
|
|
11078
11078
|
return /* @__PURE__ */ w(Rm, {
|
|
11079
11079
|
scope: n,
|
|
@@ -11140,23 +11140,23 @@ function _m(e, t) {
|
|
|
11140
11140
|
Defaulting to \`null\`.`;
|
|
11141
11141
|
}
|
|
11142
11142
|
const Dm = Yc, Am = Pm;
|
|
11143
|
-
function
|
|
11143
|
+
function en(e) {
|
|
11144
11144
|
return e.split("-")[0];
|
|
11145
11145
|
}
|
|
11146
11146
|
function ar(e) {
|
|
11147
11147
|
return e.split("-")[1];
|
|
11148
11148
|
}
|
|
11149
|
-
function
|
|
11150
|
-
return ["top", "bottom"].includes(
|
|
11149
|
+
function En(e) {
|
|
11150
|
+
return ["top", "bottom"].includes(en(e)) ? "x" : "y";
|
|
11151
11151
|
}
|
|
11152
11152
|
function ts(e) {
|
|
11153
11153
|
return e === "y" ? "height" : "width";
|
|
11154
11154
|
}
|
|
11155
11155
|
function xl(e, t, n) {
|
|
11156
11156
|
let { reference: r, floating: o } = e;
|
|
11157
|
-
const a = r.x + r.width / 2 - o.width / 2, i = r.y + r.height / 2 - o.height / 2, s =
|
|
11157
|
+
const a = r.x + r.width / 2 - o.width / 2, i = r.y + r.height / 2 - o.height / 2, s = En(t), l = ts(s), u = r[l] / 2 - o[l] / 2, c = s === "x";
|
|
11158
11158
|
let d;
|
|
11159
|
-
switch (
|
|
11159
|
+
switch (en(t)) {
|
|
11160
11160
|
case "top":
|
|
11161
11161
|
d = { x: a, y: r.y - o.height };
|
|
11162
11162
|
break;
|
|
@@ -11212,7 +11212,7 @@ const Sl = (e) => ({ name: "arrow", options: e, async fn(t) {
|
|
|
11212
11212
|
const { element: n, padding: r = 0 } = e ?? {}, { x: o, y: a, placement: i, rects: s, platform: l } = t;
|
|
11213
11213
|
if (n == null)
|
|
11214
11214
|
return {};
|
|
11215
|
-
const u = Jc(r), c = { x: o, y: a }, d =
|
|
11215
|
+
const u = Jc(r), c = { x: o, y: a }, d = En(i), h = ar(i), f = ts(d), v = await l.getDimensions(n), g = d === "y" ? "top" : "left", p = d === "y" ? "bottom" : "right", m = s.reference[f] + s.reference[d] - c[d] - s.floating[f], b = c[d] - s.reference[d], y = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(n));
|
|
11216
11216
|
let C = y ? d === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0;
|
|
11217
11217
|
C === 0 && (C = s.floating[f]);
|
|
11218
11218
|
const x = m / 2 - b / 2, E = u[g], S = C - v[f] - u[p], R = C / 2 - v[f] / 2 + x, T = oi(E, R, S), k = (h === "start" ? u[g] : u[p]) > 0 && R !== T && s.reference[f] <= s.floating[f];
|
|
@@ -11223,7 +11223,7 @@ function oo(e) {
|
|
|
11223
11223
|
}
|
|
11224
11224
|
function Lm(e, t, n) {
|
|
11225
11225
|
n === void 0 && (n = !1);
|
|
11226
|
-
const r = ar(e), o =
|
|
11226
|
+
const r = ar(e), o = En(e), a = ts(o);
|
|
11227
11227
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
11228
11228
|
return t.reference[a] > t.floating[a] && (i = oo(i)), { main: i, cross: oo(i) };
|
|
11229
11229
|
}
|
|
@@ -11236,7 +11236,7 @@ ed.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []);
|
|
|
11236
11236
|
const jm = function(e) {
|
|
11237
11237
|
return e === void 0 && (e = {}), { name: "flip", options: e, async fn(t) {
|
|
11238
11238
|
var n;
|
|
11239
|
-
const { placement: r, middlewareData: o, rects: a, initialPlacement: i, platform: s, elements: l } = t, { mainAxis: u = !0, crossAxis: c = !0, fallbackPlacements: d, fallbackStrategy: h = "bestFit", flipAlignment: f = !0, ...v } = e, g =
|
|
11239
|
+
const { placement: r, middlewareData: o, rects: a, initialPlacement: i, platform: s, elements: l } = t, { mainAxis: u = !0, crossAxis: c = !0, fallbackPlacements: d, fallbackStrategy: h = "bestFit", flipAlignment: f = !0, ...v } = e, g = en(r), p = d || (g === i || !f ? [oo(i)] : function(R) {
|
|
11240
11240
|
const T = oo(R);
|
|
11241
11241
|
return [Rl(R), T, Rl(T)];
|
|
11242
11242
|
}(i)), m = [i, ...p], b = await Kn(t, v), y = [];
|
|
@@ -11293,7 +11293,7 @@ const Hm = function(e) {
|
|
|
11293
11293
|
}, Um = function(e) {
|
|
11294
11294
|
return e === void 0 && (e = 0), { name: "offset", options: e, async fn(t) {
|
|
11295
11295
|
const { x: n, y: r } = t, o = await async function(a, i) {
|
|
11296
|
-
const { placement: s, platform: l, elements: u } = a, c = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), d =
|
|
11296
|
+
const { placement: s, platform: l, elements: u } = a, c = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), d = en(s), h = ar(s), f = En(s) === "x", v = ["left", "top"].includes(d) ? -1 : 1, g = c && f ? -1 : 1, p = typeof i == "function" ? i(a) : i;
|
|
11297
11297
|
let { mainAxis: m, crossAxis: b, alignmentAxis: y } = typeof p == "number" ? { mainAxis: p, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...p };
|
|
11298
11298
|
return h && typeof y == "number" && (b = h === "end" ? -1 * y : y), f ? { x: b * g, y: m * v } : { x: m * v, y: b * g };
|
|
11299
11299
|
}(t, e);
|
|
@@ -11308,7 +11308,7 @@ const qm = function(e) {
|
|
|
11308
11308
|
const { x: n, y: r, placement: o } = t, { mainAxis: a = !0, crossAxis: i = !1, limiter: s = { fn: (p) => {
|
|
11309
11309
|
let { x: m, y: b } = p;
|
|
11310
11310
|
return { x: m, y: b };
|
|
11311
|
-
} }, ...l } = e, u = { x: n, y: r }, c = await Kn(t, l), d =
|
|
11311
|
+
} }, ...l } = e, u = { x: n, y: r }, c = await Kn(t, l), d = En(en(o)), h = td(d);
|
|
11312
11312
|
let f = u[d], v = u[h];
|
|
11313
11313
|
if (a) {
|
|
11314
11314
|
const p = d === "y" ? "bottom" : "right";
|
|
@@ -11323,7 +11323,7 @@ const qm = function(e) {
|
|
|
11323
11323
|
} };
|
|
11324
11324
|
}, Vm = function(e) {
|
|
11325
11325
|
return e === void 0 && (e = {}), { options: e, fn(t) {
|
|
11326
|
-
const { x: n, y: r, placement: o, rects: a, middlewareData: i } = t, { offset: s = 0, mainAxis: l = !0, crossAxis: u = !0 } = e, c = { x: n, y: r }, d =
|
|
11326
|
+
const { x: n, y: r, placement: o, rects: a, middlewareData: i } = t, { offset: s = 0, mainAxis: l = !0, crossAxis: u = !0 } = e, c = { x: n, y: r }, d = En(o), h = td(d);
|
|
11327
11327
|
let f = c[d], v = c[h];
|
|
11328
11328
|
const g = typeof s == "function" ? s({ ...a, placement: o }) : s, p = typeof g == "number" ? { mainAxis: g, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...g };
|
|
11329
11329
|
if (l) {
|
|
@@ -11332,14 +11332,14 @@ const qm = function(e) {
|
|
|
11332
11332
|
}
|
|
11333
11333
|
if (u) {
|
|
11334
11334
|
var m, b, y, C;
|
|
11335
|
-
const x = d === "y" ? "width" : "height", E = ["top", "left"].includes(
|
|
11335
|
+
const x = d === "y" ? "width" : "height", E = ["top", "left"].includes(en(o)), S = a.reference[h] - a.floating[x] + (E && (m = (b = i.offset) == null ? void 0 : b[h]) != null ? m : 0) + (E ? 0 : p.crossAxis), R = a.reference[h] + a.reference[x] + (E ? 0 : (y = (C = i.offset) == null ? void 0 : C[h]) != null ? y : 0) - (E ? p.crossAxis : 0);
|
|
11336
11336
|
v < S ? v = S : v > R && (v = R);
|
|
11337
11337
|
}
|
|
11338
11338
|
return { [d]: f, [h]: v };
|
|
11339
11339
|
} };
|
|
11340
11340
|
}, Bm = function(e) {
|
|
11341
11341
|
return e === void 0 && (e = {}), { name: "size", options: e, async fn(t) {
|
|
11342
|
-
const { placement: n, rects: r, platform: o, elements: a } = t, { apply: i, ...s } = e, l = await Kn(t, s), u =
|
|
11342
|
+
const { placement: n, rects: r, platform: o, elements: a } = t, { apply: i, ...s } = e, l = await Kn(t, s), u = en(n), c = ar(n);
|
|
11343
11343
|
let d, h;
|
|
11344
11344
|
u === "top" || u === "bottom" ? (d = u, h = c === (await (o.isRTL == null ? void 0 : o.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = u, d = c === "end" ? "top" : "bottom");
|
|
11345
11345
|
const f = Ht(l.left, 0), v = Ht(l.right, 0), g = Ht(l.top, 0), p = Ht(l.bottom, 0), m = { availableHeight: r.floating.height - (["left", "right"].includes(n) ? 2 * (g !== 0 || p !== 0 ? g + p : Ht(l.top, l.bottom)) : l[d]), availableWidth: r.floating.width - (["top", "bottom"].includes(n) ? 2 * (f !== 0 || v !== 0 ? f + v : Ht(l.left, l.right)) : l[h]) }, b = await o.getDimensions(a.floating);
|
|
@@ -11769,14 +11769,14 @@ const Jm = (e) => {
|
|
|
11769
11769
|
ee,
|
|
11770
11770
|
S.anchor
|
|
11771
11771
|
]);
|
|
11772
|
-
const Se = Le !== null && Ge !== null, [ot,
|
|
11772
|
+
const Se = Le !== null && Ge !== null, [ot, Pn] = cd(wt), Ct = Ie(x);
|
|
11773
11773
|
ct(() => {
|
|
11774
11774
|
Se && (Ct == null || Ct());
|
|
11775
11775
|
}, [
|
|
11776
11776
|
Se,
|
|
11777
11777
|
Ct
|
|
11778
11778
|
]);
|
|
11779
|
-
const
|
|
11779
|
+
const nn = (o = Ae.arrow) === null || o === void 0 ? void 0 : o.x, pr = (a = Ae.arrow) === null || a === void 0 ? void 0 : a.y, qo = ((i = Ae.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [gr, Vo] = te();
|
|
11780
11780
|
ct(() => {
|
|
11781
11781
|
R && Vo(window.getComputedStyle(R).zIndex);
|
|
11782
11782
|
}, [
|
|
@@ -11801,9 +11801,9 @@ const Jm = (e) => {
|
|
|
11801
11801
|
Se,
|
|
11802
11802
|
ze
|
|
11803
11803
|
]);
|
|
11804
|
-
const
|
|
11804
|
+
const rn = {
|
|
11805
11805
|
"data-side": ot,
|
|
11806
|
-
"data-align":
|
|
11806
|
+
"data-align": Pn,
|
|
11807
11807
|
...E,
|
|
11808
11808
|
ref: k,
|
|
11809
11809
|
style: {
|
|
@@ -11836,14 +11836,14 @@ const Jm = (e) => {
|
|
|
11836
11836
|
scope: c,
|
|
11837
11837
|
placedSide: ot,
|
|
11838
11838
|
onArrowChange: Z,
|
|
11839
|
-
arrowX:
|
|
11839
|
+
arrowX: nn,
|
|
11840
11840
|
arrowY: pr,
|
|
11841
11841
|
shouldHideArrow: qo
|
|
11842
11842
|
}, $t ? /* @__PURE__ */ w(lb, {
|
|
11843
11843
|
scope: c,
|
|
11844
11844
|
hasParent: !0,
|
|
11845
11845
|
positionUpdateFns: ze
|
|
11846
|
-
}, /* @__PURE__ */ w(ce.div,
|
|
11846
|
+
}, /* @__PURE__ */ w(ce.div, rn)) : /* @__PURE__ */ w(ce.div, rn)));
|
|
11847
11847
|
}), db = "PopperArrow", fb = {
|
|
11848
11848
|
top: "bottom",
|
|
11849
11849
|
right: "left",
|
|
@@ -11924,7 +11924,7 @@ function cd(e) {
|
|
|
11924
11924
|
n
|
|
11925
11925
|
];
|
|
11926
11926
|
}
|
|
11927
|
-
const dd = rb, fd = ab, hd = cb, bb = hb, [ko,
|
|
11927
|
+
const dd = rb, fd = ab, hd = cb, bb = hb, [ko, z6] = Ve("Tooltip", [
|
|
11928
11928
|
Ao
|
|
11929
11929
|
]), Fo = Ao(), yb = "TooltipProvider", wb = 700, li = "tooltip.open", [Cb, os] = ko(yb), $b = (e) => {
|
|
11930
11930
|
const { __scopeTooltip: t, delayDuration: n = wb, skipDelayDuration: r = 300, disableHoverableContent: o = !1, children: a } = e, [i, s] = te(!0), l = N(!1), u = N(0);
|
|
@@ -11953,7 +11953,7 @@ const dd = rb, fd = ab, hd = cb, bb = hb, [ko, Q6] = Ve("Tooltip", [
|
|
|
11953
11953
|
disableHoverableContent: o
|
|
11954
11954
|
}, a);
|
|
11955
11955
|
}, as = "Tooltip", [xb, sr] = ko(as), Sb = (e) => {
|
|
11956
|
-
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = os(as, e.__scopeTooltip), u = Fo(t), [c, d] = te(null), h =
|
|
11956
|
+
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = os(as, e.__scopeTooltip), u = Fo(t), [c, d] = te(null), h = Gt(), f = N(0), v = i ?? l.disableHoverableContent, g = s ?? l.delayDuration, p = N(!1), [m = !1, b] = mt({
|
|
11957
11957
|
prop: r,
|
|
11958
11958
|
defaultProp: o,
|
|
11959
11959
|
onChange: (S) => {
|
|
@@ -12727,7 +12727,7 @@ if (typeof window < "u")
|
|
|
12727
12727
|
} catch {
|
|
12728
12728
|
ui = !1;
|
|
12729
12729
|
}
|
|
12730
|
-
var
|
|
12730
|
+
var sn = ui ? { passive: !1 } : !1, w5 = function(e) {
|
|
12731
12731
|
return e.tagName === "TEXTAREA";
|
|
12732
12732
|
}, Sd = function(e, t) {
|
|
12733
12733
|
var n = window.getComputedStyle(e);
|
|
@@ -12797,7 +12797,7 @@ var an = ui ? { passive: !1 } : !1, w5 = function(e) {
|
|
|
12797
12797
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
12798
12798
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
12799
12799
|
`);
|
|
12800
|
-
}, M5 = 0,
|
|
12800
|
+
}, M5 = 0, ln = [];
|
|
12801
12801
|
function T5(e) {
|
|
12802
12802
|
var t = O.useRef([]), n = O.useRef([0, 0]), r = O.useRef(), o = O.useState(M5++)[0], a = O.useState(function() {
|
|
12803
12803
|
return xd();
|
|
@@ -12834,7 +12834,7 @@ function T5(e) {
|
|
|
12834
12834
|
return O5(T, p, g, T === "h" ? y : C, !0);
|
|
12835
12835
|
}, []), l = O.useCallback(function(g) {
|
|
12836
12836
|
var p = g;
|
|
12837
|
-
if (!(!
|
|
12837
|
+
if (!(!ln.length || ln[ln.length - 1] !== a)) {
|
|
12838
12838
|
var m = "deltaY" in p ? Ul(p) : Mr(p), b = t.current.filter(function(x) {
|
|
12839
12839
|
return x.name === p.type && x.target === p.target && E5(x.delta, m);
|
|
12840
12840
|
})[0];
|
|
@@ -12864,14 +12864,14 @@ function T5(e) {
|
|
|
12864
12864
|
u(g.type, Mr(g), g.target, s(g, e.lockRef.current));
|
|
12865
12865
|
}, []);
|
|
12866
12866
|
O.useEffect(function() {
|
|
12867
|
-
return
|
|
12867
|
+
return ln.push(a), e.setCallbacks({
|
|
12868
12868
|
onScrollCapture: d,
|
|
12869
12869
|
onWheelCapture: d,
|
|
12870
12870
|
onTouchMoveCapture: h
|
|
12871
|
-
}), document.addEventListener("wheel", l,
|
|
12872
|
-
|
|
12871
|
+
}), document.addEventListener("wheel", l, sn), document.addEventListener("touchmove", l, sn), document.addEventListener("touchstart", c, sn), function() {
|
|
12872
|
+
ln = ln.filter(function(g) {
|
|
12873
12873
|
return g !== a;
|
|
12874
|
-
}), document.removeEventListener("wheel", l,
|
|
12874
|
+
}), document.removeEventListener("wheel", l, sn), document.removeEventListener("touchmove", l, sn), document.removeEventListener("touchstart", c, sn);
|
|
12875
12875
|
};
|
|
12876
12876
|
}, []);
|
|
12877
12877
|
var f = e.removeScrollBar, v = e.inert;
|
|
@@ -12893,7 +12893,7 @@ var D5 = function(e) {
|
|
|
12893
12893
|
return null;
|
|
12894
12894
|
var t = Array.isArray(e) ? e[0] : e;
|
|
12895
12895
|
return t.ownerDocument.body;
|
|
12896
|
-
},
|
|
12896
|
+
}, un = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), _r = {}, va = 0, Md = function(e) {
|
|
12897
12897
|
return e && (e.host || Md(e.parentNode));
|
|
12898
12898
|
}, A5 = function(e, t) {
|
|
12899
12899
|
return t.map(function(n) {
|
|
@@ -12916,16 +12916,16 @@ var D5 = function(e) {
|
|
|
12916
12916
|
if (s.has(h))
|
|
12917
12917
|
c(h);
|
|
12918
12918
|
else {
|
|
12919
|
-
var f = h.getAttribute(r), v = f !== null && f !== "false", g = (
|
|
12920
|
-
|
|
12919
|
+
var f = h.getAttribute(r), v = f !== null && f !== "false", g = (un.get(h) || 0) + 1, p = (a.get(h) || 0) + 1;
|
|
12920
|
+
un.set(h, g), a.set(h, p), i.push(h), g === 1 && v && Tr.set(h, !0), p === 1 && h.setAttribute(n, "true"), v || h.setAttribute(r, "true");
|
|
12921
12921
|
}
|
|
12922
12922
|
});
|
|
12923
12923
|
};
|
|
12924
12924
|
return c(t), s.clear(), va++, function() {
|
|
12925
12925
|
i.forEach(function(d) {
|
|
12926
|
-
var h =
|
|
12927
|
-
|
|
12928
|
-
}), va--, va || (
|
|
12926
|
+
var h = un.get(d) - 1, f = a.get(d) - 1;
|
|
12927
|
+
un.set(d, h), a.set(d, f), h || (Tr.has(d) || d.removeAttribute(r), Tr.delete(d)), f || d.removeAttribute(n);
|
|
12928
|
+
}), va--, va || (un = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), _r = {});
|
|
12929
12929
|
};
|
|
12930
12930
|
}, Td = function(e, t, n) {
|
|
12931
12931
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -12944,9 +12944,9 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
12944
12944
|
scope: t,
|
|
12945
12945
|
triggerRef: s,
|
|
12946
12946
|
contentRef: l,
|
|
12947
|
-
contentId:
|
|
12948
|
-
titleId:
|
|
12949
|
-
descriptionId:
|
|
12947
|
+
contentId: Gt(),
|
|
12948
|
+
titleId: Gt(),
|
|
12949
|
+
descriptionId: Gt(),
|
|
12950
12950
|
open: u,
|
|
12951
12951
|
onOpenChange: c,
|
|
12952
12952
|
onOpenToggle: X(
|
|
@@ -13000,7 +13000,7 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
13000
13000
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
13001
13001
|
// ie. when `Overlay` and `Content` are siblings
|
|
13002
13002
|
/* @__PURE__ */ w(Pd, {
|
|
13003
|
-
as:
|
|
13003
|
+
as: yn,
|
|
13004
13004
|
allowPinchZoom: !0,
|
|
13005
13005
|
shards: [
|
|
13006
13006
|
o.contentRef
|
|
@@ -13015,8 +13015,8 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
13015
13015
|
}
|
|
13016
13016
|
})))
|
|
13017
13017
|
);
|
|
13018
|
-
}),
|
|
13019
|
-
const n = Fd(
|
|
13018
|
+
}), $n = "DialogContent", V5 = /* @__PURE__ */ F((e, t) => {
|
|
13019
|
+
const n = Fd($n, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Ye($n, e.__scopeDialog);
|
|
13020
13020
|
return /* @__PURE__ */ w(rt, {
|
|
13021
13021
|
present: r || a.open
|
|
13022
13022
|
}, a.modal ? /* @__PURE__ */ w(B5, D({}, o, {
|
|
@@ -13025,7 +13025,7 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
13025
13025
|
ref: t
|
|
13026
13026
|
})));
|
|
13027
13027
|
}), B5 = /* @__PURE__ */ F((e, t) => {
|
|
13028
|
-
const n = Ye(
|
|
13028
|
+
const n = Ye($n, e.__scopeDialog), r = N(null), o = me(t, n.contentRef, r);
|
|
13029
13029
|
return G(() => {
|
|
13030
13030
|
const a = r.current;
|
|
13031
13031
|
if (a)
|
|
@@ -13048,7 +13048,7 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
13048
13048
|
)
|
|
13049
13049
|
}));
|
|
13050
13050
|
}), G5 = /* @__PURE__ */ F((e, t) => {
|
|
13051
|
-
const n = Ye(
|
|
13051
|
+
const n = Ye($n, e.__scopeDialog), r = N(!1);
|
|
13052
13052
|
return /* @__PURE__ */ w(Id, D({}, e, {
|
|
13053
13053
|
ref: t,
|
|
13054
13054
|
trapFocus: !1,
|
|
@@ -13069,7 +13069,7 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
13069
13069
|
}
|
|
13070
13070
|
}));
|
|
13071
13071
|
}), Id = /* @__PURE__ */ F((e, t) => {
|
|
13072
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = Ye(
|
|
13072
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = Ye($n, n), l = N(null), u = me(t, l);
|
|
13073
13073
|
return yd(), /* @__PURE__ */ w(tr, null, /* @__PURE__ */ w(md, {
|
|
13074
13074
|
asChild: !0,
|
|
13075
13075
|
loop: !0,
|
|
@@ -13115,8 +13115,8 @@ const _d = "Dialog", [Dd, Ad] = Ve(_d), [F5, Ye] = Dd(_d), I5 = (e) => {
|
|
|
13115
13115
|
function is(e) {
|
|
13116
13116
|
return e ? "open" : "closed";
|
|
13117
13117
|
}
|
|
13118
|
-
const Z5 = "DialogTitleWarning", [X5,
|
|
13119
|
-
contentName:
|
|
13118
|
+
const Z5 = "DialogTitleWarning", [X5, Q6] = N1(Z5, {
|
|
13119
|
+
contentName: $n,
|
|
13120
13120
|
titleName: Ld,
|
|
13121
13121
|
docsSlug: "dialog"
|
|
13122
13122
|
}), ss = I5, J5 = N5, ls = H5, us = U5, cs = V5, ds = z5, e9 = W5, Lo = Y5;
|
|
@@ -15126,9 +15126,9 @@ var lo = {}, Py = {
|
|
|
15126
15126
|
whitesmoke: [245, 245, 245],
|
|
15127
15127
|
yellow: [255, 255, 0],
|
|
15128
15128
|
yellowgreen: [154, 205, 50]
|
|
15129
|
-
},
|
|
15130
|
-
for (var Ca in
|
|
15131
|
-
|
|
15129
|
+
}, Qt = My, Jd = {};
|
|
15130
|
+
for (var Ca in Qt)
|
|
15131
|
+
Qt.hasOwnProperty(Ca) && (Jd[Qt[Ca]] = Ca);
|
|
15132
15132
|
var H = Py.exports = {
|
|
15133
15133
|
rgb: { channels: 3, labels: "rgb" },
|
|
15134
15134
|
hsl: { channels: 3, labels: "hsl" },
|
|
@@ -15187,15 +15187,15 @@ H.rgb.keyword = function(e) {
|
|
|
15187
15187
|
if (t)
|
|
15188
15188
|
return t;
|
|
15189
15189
|
var n = 1 / 0, r;
|
|
15190
|
-
for (var o in
|
|
15191
|
-
if (
|
|
15192
|
-
var a =
|
|
15190
|
+
for (var o in Qt)
|
|
15191
|
+
if (Qt.hasOwnProperty(o)) {
|
|
15192
|
+
var a = Qt[o], i = Dy(e, a);
|
|
15193
15193
|
i < n && (n = i, r = o);
|
|
15194
15194
|
}
|
|
15195
15195
|
return r;
|
|
15196
15196
|
};
|
|
15197
15197
|
H.keyword.rgb = function(e) {
|
|
15198
|
-
return
|
|
15198
|
+
return Qt[e];
|
|
15199
15199
|
};
|
|
15200
15200
|
H.rgb.xyz = function(e) {
|
|
15201
15201
|
var t = e[0] / 255, n = e[1] / 255, r = e[2] / 255;
|
|
@@ -15466,7 +15466,7 @@ var Ly = function(e) {
|
|
|
15466
15466
|
s.parent !== null && (n[i] = Iy(i, t));
|
|
15467
15467
|
}
|
|
15468
15468
|
return n;
|
|
15469
|
-
}, gi = lo, Ny = Ly,
|
|
15469
|
+
}, gi = lo, Ny = Ly, dn = {}, jy = Object.keys(gi);
|
|
15470
15470
|
function Hy(e) {
|
|
15471
15471
|
var t = function(n) {
|
|
15472
15472
|
return n == null ? n : (arguments.length > 1 && (n = Array.prototype.slice.call(arguments)), e(n));
|
|
@@ -15487,14 +15487,14 @@ function Uy(e) {
|
|
|
15487
15487
|
return "conversion" in e && (t.conversion = e.conversion), t;
|
|
15488
15488
|
}
|
|
15489
15489
|
jy.forEach(function(e) {
|
|
15490
|
-
|
|
15490
|
+
dn[e] = {}, Object.defineProperty(dn[e], "channels", { value: gi[e].channels }), Object.defineProperty(dn[e], "labels", { value: gi[e].labels });
|
|
15491
15491
|
var t = Ny(e), n = Object.keys(t);
|
|
15492
15492
|
n.forEach(function(r) {
|
|
15493
15493
|
var o = t[r];
|
|
15494
|
-
|
|
15494
|
+
dn[e][r] = Uy(o), dn[e][r].raw = Hy(o);
|
|
15495
15495
|
});
|
|
15496
15496
|
});
|
|
15497
|
-
var qy =
|
|
15497
|
+
var qy = dn, Fn = hi, Ne = qy, ys = [].slice, ef = [
|
|
15498
15498
|
// to be honest, I don't really feel like keyword belongs in color convert, but eh.
|
|
15499
15499
|
"keyword",
|
|
15500
15500
|
// gray conflicts with some method names, and has its own method defined.
|
|
@@ -15517,7 +15517,7 @@ function Pe(e, t) {
|
|
|
15517
15517
|
else if (e instanceof Pe)
|
|
15518
15518
|
this.model = e.model, this.color = e.color.slice(), this.valpha = e.valpha;
|
|
15519
15519
|
else if (typeof e == "string") {
|
|
15520
|
-
var o =
|
|
15520
|
+
var o = Fn.get(e);
|
|
15521
15521
|
if (o === null)
|
|
15522
15522
|
throw new Error("Unable to parse color from string: " + e);
|
|
15523
15523
|
this.model = o.model, r = Ne[this.model].channels, this.color = o.value.slice(0, r), this.valpha = typeof o.value[r] == "number" ? o.value[r] : 1;
|
|
@@ -15559,14 +15559,14 @@ Pe.prototype = {
|
|
|
15559
15559
|
return this[this.model]();
|
|
15560
15560
|
},
|
|
15561
15561
|
string: function(e) {
|
|
15562
|
-
var t = this.model in
|
|
15562
|
+
var t = this.model in Fn.to ? this : this.rgb();
|
|
15563
15563
|
t = t.round(typeof e == "number" ? e : 1);
|
|
15564
15564
|
var n = t.valpha === 1 ? t.color : t.color.concat(this.valpha);
|
|
15565
|
-
return
|
|
15565
|
+
return Fn.to[t.model](n);
|
|
15566
15566
|
},
|
|
15567
15567
|
percentString: function(e) {
|
|
15568
15568
|
var t = this.rgb().round(typeof e == "number" ? e : 1), n = t.valpha === 1 ? t.color : t.color.concat(this.valpha);
|
|
15569
|
-
return
|
|
15569
|
+
return Fn.to.rgb.percent(n);
|
|
15570
15570
|
},
|
|
15571
15571
|
array: function() {
|
|
15572
15572
|
return this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha);
|
|
@@ -15620,7 +15620,7 @@ Pe.prototype = {
|
|
|
15620
15620
|
return arguments.length ? new Pe(e) : Ne[this.model].keyword(this.color);
|
|
15621
15621
|
},
|
|
15622
15622
|
hex: function(e) {
|
|
15623
|
-
return arguments.length ? new Pe(e) :
|
|
15623
|
+
return arguments.length ? new Pe(e) : Fn.to.hex(this.rgb().round().color);
|
|
15624
15624
|
},
|
|
15625
15625
|
rgbNumber: function() {
|
|
15626
15626
|
var e = this.rgb().color;
|
|
@@ -15747,14 +15747,14 @@ function mi(e, t) {
|
|
|
15747
15747
|
typeof e[n] != "number" && (e[n] = 0);
|
|
15748
15748
|
return e;
|
|
15749
15749
|
}
|
|
15750
|
-
var Yl = Pe, zy = "Expected a function", Zl = "__lodash_placeholder__",
|
|
15750
|
+
var Yl = Pe, zy = "Expected a function", Zl = "__lodash_placeholder__", Yt = 1, jo = 2, Qy = 4, Wt = 8, Un = 16, vn = 32, Zn = 64, tf = 128, Wy = 256, nf = 512, Xl = 1 / 0, Ky = 9007199254740991, Yy = 17976931348623157e292, Jl = 0 / 0, Zy = [
|
|
15751
15751
|
["ary", tf],
|
|
15752
|
-
["bind",
|
|
15752
|
+
["bind", Yt],
|
|
15753
15753
|
["bindKey", jo],
|
|
15754
|
-
["curry",
|
|
15754
|
+
["curry", Wt],
|
|
15755
15755
|
["curryRight", Un],
|
|
15756
15756
|
["flip", nf],
|
|
15757
|
-
["partial",
|
|
15757
|
+
["partial", vn],
|
|
15758
15758
|
["partialRight", Zn],
|
|
15759
15759
|
["rearg", Wy]
|
|
15760
15760
|
], Xy = "[object Function]", Jy = "[object GeneratorFunction]", e8 = "[object Symbol]", t8 = /[\\^$.*+?()[\]{}|]/g, n8 = /^\s+|\s+$/g, r8 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, o8 = /\{\n\/\* \[wrapped with (.+)\] \*/, a8 = /,? & /, i8 = /^[-+]0x[0-9a-f]+$/i, s8 = /^0b[01]+$/i, l8 = /^\[object .+?Constructor\]$/, u8 = /^0o[0-7]+$/i, c8 = /^(?:0|[1-9]\d*)$/, d8 = parseInt, f8 = typeof wr == "object" && wr && wr.Object === Object && wr, h8 = typeof self == "object" && self && self.Object === Object && self, cr = f8 || h8 || Function("return this")();
|
|
@@ -15831,10 +15831,10 @@ var $8 = Function.prototype, af = Object.prototype, $a = cr["__core-js_shared__"
|
|
|
15831
15831
|
return t && t.length > 2 ? e : void 0;
|
|
15832
15832
|
}();
|
|
15833
15833
|
function E8(e) {
|
|
15834
|
-
return
|
|
15834
|
+
return xn(e) ? R8(e) : {};
|
|
15835
15835
|
}
|
|
15836
15836
|
function P8(e) {
|
|
15837
|
-
if (
|
|
15837
|
+
if (!xn(e) || j8(e))
|
|
15838
15838
|
return !1;
|
|
15839
15839
|
var t = V8(e) || C8(e) ? S8 : l8;
|
|
15840
15840
|
return t.test(U8(e));
|
|
@@ -15864,7 +15864,7 @@ function _8(e, t) {
|
|
|
15864
15864
|
return t;
|
|
15865
15865
|
}
|
|
15866
15866
|
function D8(e, t, n) {
|
|
15867
|
-
var r = t &
|
|
15867
|
+
var r = t & Yt, o = Xn(e);
|
|
15868
15868
|
function a() {
|
|
15869
15869
|
var i = this && this !== cr && this instanceof a ? o : e;
|
|
15870
15870
|
return i.apply(r ? n : this, arguments);
|
|
@@ -15893,7 +15893,7 @@ function Xn(e) {
|
|
|
15893
15893
|
return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
|
|
15894
15894
|
}
|
|
15895
15895
|
var n = E8(e.prototype), r = e.apply(n, t);
|
|
15896
|
-
return
|
|
15896
|
+
return xn(r) ? r : n;
|
|
15897
15897
|
};
|
|
15898
15898
|
}
|
|
15899
15899
|
function A8(e, t, n) {
|
|
@@ -15921,7 +15921,7 @@ function A8(e, t, n) {
|
|
|
15921
15921
|
return o;
|
|
15922
15922
|
}
|
|
15923
15923
|
function ws(e, t, n, r, o, a, i, s, l, u) {
|
|
15924
|
-
var c = t & tf, d = t &
|
|
15924
|
+
var c = t & tf, d = t & Yt, h = t & jo, f = t & (Wt | Un), v = t & nf, g = h ? void 0 : Xn(e);
|
|
15925
15925
|
function p() {
|
|
15926
15926
|
for (var m = arguments.length, b = Array(m), y = m; y--; )
|
|
15927
15927
|
b[y] = arguments[y];
|
|
@@ -15948,7 +15948,7 @@ function ws(e, t, n, r, o, a, i, s, l, u) {
|
|
|
15948
15948
|
return p;
|
|
15949
15949
|
}
|
|
15950
15950
|
function k8(e, t, n, r) {
|
|
15951
|
-
var o = t &
|
|
15951
|
+
var o = t & Yt, a = Xn(e);
|
|
15952
15952
|
function i() {
|
|
15953
15953
|
for (var s = -1, l = arguments.length, u = -1, c = r.length, d = Array(c + l), h = this && this !== cr && this instanceof i ? a : e; ++u < c; )
|
|
15954
15954
|
d[u] = r[u];
|
|
@@ -15959,8 +15959,8 @@ function k8(e, t, n, r) {
|
|
|
15959
15959
|
return i;
|
|
15960
15960
|
}
|
|
15961
15961
|
function uf(e, t, n, r, o, a, i, s, l, u) {
|
|
15962
|
-
var c = t &
|
|
15963
|
-
t |= c ?
|
|
15962
|
+
var c = t & Wt, d = c ? i : void 0, h = c ? void 0 : i, f = c ? a : void 0, v = c ? void 0 : a;
|
|
15963
|
+
t |= c ? vn : Zn, t &= ~(c ? Zn : vn), t & Qy || (t &= ~(Yt | jo));
|
|
15964
15964
|
var g = n(e, t, o, f, d, v, h, s, l, u);
|
|
15965
15965
|
return g.placeholder = r, df(g, e, t);
|
|
15966
15966
|
}
|
|
@@ -15969,7 +15969,7 @@ function F8(e, t, n, r, o, a, i, s) {
|
|
|
15969
15969
|
if (!l && typeof e != "function")
|
|
15970
15970
|
throw new TypeError(zy);
|
|
15971
15971
|
var u = r ? r.length : 0;
|
|
15972
|
-
if (u || (t &= ~(
|
|
15972
|
+
if (u || (t &= ~(vn | Zn), r = o = void 0), i = i === void 0 ? i : fo(ru(i), 0), s = s === void 0 ? s : ru(s), u -= o ? o.length : 0, t & Zn) {
|
|
15973
15973
|
var c = r, d = o;
|
|
15974
15974
|
r = o = void 0;
|
|
15975
15975
|
}
|
|
@@ -15985,10 +15985,10 @@ function F8(e, t, n, r, o, a, i, s) {
|
|
|
15985
15985
|
i,
|
|
15986
15986
|
s
|
|
15987
15987
|
];
|
|
15988
|
-
if (e = h[0], t = h[1], n = h[2], r = h[3], o = h[4], s = h[9] = h[9] == null ? l ? 0 : e.length : fo(h[9] - u, 0), !s && t & (
|
|
15988
|
+
if (e = h[0], t = h[1], n = h[2], r = h[3], o = h[4], s = h[9] = h[9] == null ? l ? 0 : e.length : fo(h[9] - u, 0), !s && t & (Wt | Un) && (t &= ~(Wt | Un)), !t || t == Yt)
|
|
15989
15989
|
var f = D8(e, t, n);
|
|
15990
15990
|
else
|
|
15991
|
-
t ==
|
|
15991
|
+
t == Wt || t == Un ? f = A8(e, t, s) : (t == vn || t == (Yt | vn)) && !o.length ? f = k8(e, t, n, r) : f = ws.apply(void 0, h);
|
|
15992
15992
|
return df(f, e, t);
|
|
15993
15993
|
}
|
|
15994
15994
|
function cf(e) {
|
|
@@ -16051,14 +16051,14 @@ function q8(e, t) {
|
|
|
16051
16051
|
}
|
|
16052
16052
|
function Cs(e, t, n) {
|
|
16053
16053
|
t = n ? void 0 : t;
|
|
16054
|
-
var r = F8(e,
|
|
16054
|
+
var r = F8(e, Wt, void 0, void 0, void 0, void 0, void 0, t);
|
|
16055
16055
|
return r.placeholder = Cs.placeholder, r;
|
|
16056
16056
|
}
|
|
16057
16057
|
function V8(e) {
|
|
16058
|
-
var t =
|
|
16058
|
+
var t = xn(e) ? lf.call(e) : "";
|
|
16059
16059
|
return t == Xy || t == Jy;
|
|
16060
16060
|
}
|
|
16061
|
-
function
|
|
16061
|
+
function xn(e) {
|
|
16062
16062
|
var t = typeof e;
|
|
16063
16063
|
return !!e && (t == "object" || t == "function");
|
|
16064
16064
|
}
|
|
@@ -16086,9 +16086,9 @@ function Q8(e) {
|
|
|
16086
16086
|
return e;
|
|
16087
16087
|
if (G8(e))
|
|
16088
16088
|
return Jl;
|
|
16089
|
-
if (
|
|
16089
|
+
if (xn(e)) {
|
|
16090
16090
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
16091
|
-
e =
|
|
16091
|
+
e = xn(t) ? t + "" : t;
|
|
16092
16092
|
}
|
|
16093
16093
|
if (typeof e != "string")
|
|
16094
16094
|
return e === 0 ? e : +e;
|
|
@@ -16140,7 +16140,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16140
16140
|
}, J8 = function(t) {
|
|
16141
16141
|
var n = Yl(t), r = Z8(n.array()), o = ms(r, 3), a = o[0], i = o[1], s = o[2], l = [X8(a), i, s], u = Y8(l);
|
|
16142
16142
|
return Yl.rgb(u).hex();
|
|
16143
|
-
},
|
|
16143
|
+
}, cn = function(t) {
|
|
16144
16144
|
return function(n) {
|
|
16145
16145
|
return {
|
|
16146
16146
|
className: [n.className, t.className].filter(Boolean).join(" "),
|
|
@@ -16159,7 +16159,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16159
16159
|
case "string":
|
|
16160
16160
|
return [n, t].filter(Boolean).join(" ");
|
|
16161
16161
|
case "object":
|
|
16162
|
-
return
|
|
16162
|
+
return cn({
|
|
16163
16163
|
className: t,
|
|
16164
16164
|
style: n
|
|
16165
16165
|
});
|
|
@@ -16167,7 +16167,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16167
16167
|
return function(a) {
|
|
16168
16168
|
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), l = 1; l < i; l++)
|
|
16169
16169
|
s[l - 1] = arguments[l];
|
|
16170
|
-
return
|
|
16170
|
+
return cn({
|
|
16171
16171
|
className: t
|
|
16172
16172
|
})(n.apply(void 0, [a].concat(s)));
|
|
16173
16173
|
};
|
|
@@ -16176,7 +16176,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16176
16176
|
case "object":
|
|
16177
16177
|
switch (o) {
|
|
16178
16178
|
case "string":
|
|
16179
|
-
return
|
|
16179
|
+
return cn({
|
|
16180
16180
|
className: n,
|
|
16181
16181
|
style: t
|
|
16182
16182
|
});
|
|
@@ -16186,7 +16186,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16186
16186
|
return function(a) {
|
|
16187
16187
|
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), l = 1; l < i; l++)
|
|
16188
16188
|
s[l - 1] = arguments[l];
|
|
16189
|
-
return
|
|
16189
|
+
return cn({
|
|
16190
16190
|
style: t
|
|
16191
16191
|
})(n.apply(void 0, [a].concat(s)));
|
|
16192
16192
|
};
|
|
@@ -16198,7 +16198,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16198
16198
|
return function(a) {
|
|
16199
16199
|
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), l = 1; l < i; l++)
|
|
16200
16200
|
s[l - 1] = arguments[l];
|
|
16201
|
-
return t.apply(void 0, [
|
|
16201
|
+
return t.apply(void 0, [cn(a)({
|
|
16202
16202
|
className: n
|
|
16203
16203
|
})].concat(s));
|
|
16204
16204
|
};
|
|
@@ -16206,7 +16206,7 @@ var ff = Yd, iu = Object.keys(ff), X8 = function(t) {
|
|
|
16206
16206
|
return function(a) {
|
|
16207
16207
|
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), l = 1; l < i; l++)
|
|
16208
16208
|
s[l - 1] = arguments[l];
|
|
16209
|
-
return t.apply(void 0, [
|
|
16209
|
+
return t.apply(void 0, [cn(a)({
|
|
16210
16210
|
style: n
|
|
16211
16211
|
})].concat(s));
|
|
16212
16212
|
};
|
|
@@ -16655,11 +16655,11 @@ const w3 = [
|
|
|
16655
16655
|
], $3 = [
|
|
16656
16656
|
...C3,
|
|
16657
16657
|
...pf
|
|
16658
|
-
], Ho = "Menu", [yi, x3, S3] = Ui(Ho), [
|
|
16658
|
+
], Ho = "Menu", [yi, x3, S3] = Ui(Ho), [tn, gf] = Ve(Ho, [
|
|
16659
16659
|
S3,
|
|
16660
16660
|
Ao,
|
|
16661
16661
|
Po
|
|
16662
|
-
]), $s = Ao(), vf = Po(), [R3, dr] =
|
|
16662
|
+
]), $s = Ao(), vf = Po(), [R3, dr] = tn(Ho), [O3, xs] = tn(Ho), E3 = (e) => {
|
|
16663
16663
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = $s(t), [l, u] = te(null), c = N(!1), d = Ie(a), h = Wi(o);
|
|
16664
16664
|
return G(() => {
|
|
16665
16665
|
const f = () => {
|
|
@@ -16705,7 +16705,7 @@ const w3 = [
|
|
|
16705
16705
|
return /* @__PURE__ */ w(fd, D({}, o, r, {
|
|
16706
16706
|
ref: t
|
|
16707
16707
|
}));
|
|
16708
|
-
}), mf = "MenuPortal", [M3, T3] =
|
|
16708
|
+
}), mf = "MenuPortal", [M3, T3] = tn(mf, {
|
|
16709
16709
|
forceMount: void 0
|
|
16710
16710
|
}), _3 = (e) => {
|
|
16711
16711
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = dr(mf, t);
|
|
@@ -16718,7 +16718,7 @@ const w3 = [
|
|
|
16718
16718
|
asChild: !0,
|
|
16719
16719
|
container: o
|
|
16720
16720
|
}, r)));
|
|
16721
|
-
}, _t = "MenuContent", [D3, bf] =
|
|
16721
|
+
}, _t = "MenuContent", [D3, bf] = tn(_t), A3 = /* @__PURE__ */ F((e, t) => {
|
|
16722
16722
|
const n = T3(_t, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = dr(_t, e.__scopeMenu), i = xs(_t, e.__scopeMenu);
|
|
16723
16723
|
return /* @__PURE__ */ w(yi.Provider, {
|
|
16724
16724
|
scope: e.__scopeMenu
|
|
@@ -16762,7 +16762,7 @@ const w3 = [
|
|
|
16762
16762
|
}));
|
|
16763
16763
|
}), yf = /* @__PURE__ */ F((e, t) => {
|
|
16764
16764
|
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: c, onFocusOutside: d, onInteractOutside: h, onDismiss: f, disableOutsideScroll: v, ...g } = e, p = dr(_t, n), m = xs(_t, n), b = $s(n), y = vf(n), C = x3(n), [x, E] = te(null), S = N(null), R = me(t, S, p.onContentChange), T = N(0), k = N(""), Q = N(0), Z = N(null), ae = N("right"), L = N(0), U = v ? Pd : tr, le = v ? {
|
|
16765
|
-
as:
|
|
16765
|
+
as: yn,
|
|
16766
16766
|
allowPinchZoom: !0
|
|
16767
16767
|
} : void 0, ie = (z) => {
|
|
16768
16768
|
var Y, ee;
|
|
@@ -16951,17 +16951,17 @@ const w3 = [
|
|
|
16951
16951
|
)
|
|
16952
16952
|
}))));
|
|
16953
16953
|
}), N3 = "MenuRadioGroup";
|
|
16954
|
-
|
|
16954
|
+
tn(N3, {
|
|
16955
16955
|
value: void 0,
|
|
16956
16956
|
onValueChange: () => {
|
|
16957
16957
|
}
|
|
16958
16958
|
});
|
|
16959
16959
|
const j3 = "MenuItemIndicator";
|
|
16960
|
-
|
|
16960
|
+
tn(j3, {
|
|
16961
16961
|
checked: !1
|
|
16962
16962
|
});
|
|
16963
16963
|
const H3 = "MenuSub";
|
|
16964
|
-
|
|
16964
|
+
tn(H3);
|
|
16965
16965
|
function U3(e) {
|
|
16966
16966
|
return e ? "open" : "closed";
|
|
16967
16967
|
}
|
|
@@ -17010,7 +17010,7 @@ function z3(e, t) {
|
|
|
17010
17010
|
function Ci(e) {
|
|
17011
17011
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
17012
17012
|
}
|
|
17013
|
-
const Q3 = E3, W3 = P3, K3 = _3, Y3 = A3, Z3 = I3, wf = "DropdownMenu", [X3,
|
|
17013
|
+
const Q3 = E3, W3 = P3, K3 = _3, Y3 = A3, Z3 = I3, wf = "DropdownMenu", [X3, W6] = Ve(wf, [
|
|
17014
17014
|
gf
|
|
17015
17015
|
]), fr = gf(), [J3, Cf] = X3(wf), e7 = (e) => {
|
|
17016
17016
|
const { __scopeDropdownMenu: t, children: n, dir: r, open: o, defaultOpen: a, onOpenChange: i, modal: s = !0 } = e, l = fr(t), u = N(null), [c = !1, d] = mt({
|
|
@@ -17020,9 +17020,9 @@ const Q3 = E3, W3 = P3, K3 = _3, Y3 = A3, Z3 = I3, wf = "DropdownMenu", [X3, K6]
|
|
|
17020
17020
|
});
|
|
17021
17021
|
return /* @__PURE__ */ w(J3, {
|
|
17022
17022
|
scope: t,
|
|
17023
|
-
triggerId:
|
|
17023
|
+
triggerId: Gt(),
|
|
17024
17024
|
triggerRef: u,
|
|
17025
|
-
contentId:
|
|
17025
|
+
contentId: Gt(),
|
|
17026
17026
|
open: c,
|
|
17027
17027
|
onOpenChange: d,
|
|
17028
17028
|
onOpenToggle: X(
|
|
@@ -17122,13 +17122,13 @@ var $f = function(e) {
|
|
|
17122
17122
|
queueName: n,
|
|
17123
17123
|
jobId: t.id
|
|
17124
17124
|
};
|
|
17125
|
-
return /* @__PURE__ */ $($f, { actions:
|
|
17125
|
+
return /* @__PURE__ */ $($f, { actions: Bt(Bt(Bt([], t.failedReason ? [
|
|
17126
17126
|
{
|
|
17127
17127
|
label: "Retry",
|
|
17128
17128
|
onSelect: function() {
|
|
17129
17129
|
a(u);
|
|
17130
17130
|
},
|
|
17131
|
-
icon: /* @__PURE__ */ $(
|
|
17131
|
+
icon: /* @__PURE__ */ $(wn, {})
|
|
17132
17132
|
}
|
|
17133
17133
|
] : [], !0), t.finishedAt ? [
|
|
17134
17134
|
{
|
|
@@ -17136,7 +17136,7 @@ var $f = function(e) {
|
|
|
17136
17136
|
onSelect: function() {
|
|
17137
17137
|
s(u);
|
|
17138
17138
|
},
|
|
17139
|
-
icon: /* @__PURE__ */ $(
|
|
17139
|
+
icon: /* @__PURE__ */ $(wn, {})
|
|
17140
17140
|
}
|
|
17141
17141
|
] : [
|
|
17142
17142
|
{
|
|
@@ -17155,9 +17155,9 @@ var $f = function(e) {
|
|
|
17155
17155
|
icon: /* @__PURE__ */ $(Eo, {})
|
|
17156
17156
|
}
|
|
17157
17157
|
], !1) });
|
|
17158
|
-
},
|
|
17158
|
+
}, Zt = function(e) {
|
|
17159
17159
|
var t = e.colorScheme, n = t === void 0 ? "slate" : t, r = e.variant, o = r === void 0 ? "outline" : r, a = e.size, i = a === void 0 ? "md" : a, s = e.icon, l = e.label, u = e.isLoading, c = e.onClick, d = e.disabled;
|
|
17160
|
-
return /* @__PURE__ */ j("button", { onClick: c, disabled: u || d, className:
|
|
17160
|
+
return /* @__PURE__ */ j("button", { onClick: c, disabled: u || d, className: Cn("flex items-center space-x-1 rounded-md border text-sm font-medium", {
|
|
17161
17161
|
"py-0.5": i === "sm",
|
|
17162
17162
|
"py-1": i === "md",
|
|
17163
17163
|
"py-1.5": i === "lg"
|
|
@@ -17201,7 +17201,7 @@ var $f = function(e) {
|
|
|
17201
17201
|
t.failedReason ? /* @__PURE__ */ j("div", { className: "space-y-2 border-b border-b-slate-200 py-4", children: [
|
|
17202
17202
|
/* @__PURE__ */ $("p", { className: "text-xs font-semibold uppercase text-slate-600", children: "Error" }),
|
|
17203
17203
|
/* @__PURE__ */ $("p", { className: "text-sm text-red-600", children: t.failedReason }),
|
|
17204
|
-
/* @__PURE__ */ $(
|
|
17204
|
+
/* @__PURE__ */ $(Zt, { label: "Retry", size: "sm", icon: /* @__PURE__ */ $(wn, { width: 14 }), onClick: function() {
|
|
17205
17205
|
o({
|
|
17206
17206
|
queueName: n,
|
|
17207
17207
|
jobId: t.id
|
|
@@ -17274,7 +17274,7 @@ var $f = function(e) {
|
|
|
17274
17274
|
var t = e.row.original.opts;
|
|
17275
17275
|
return /* @__PURE__ */ j("div", { className: "flex items-center space-x-2", children: [
|
|
17276
17276
|
t.priority ? /* @__PURE__ */ $(Er, { icon: /* @__PURE__ */ $(zp, { width: 12, height: 12 }), label: t.priority }) : null,
|
|
17277
|
-
t.attempts && t.attempts > 1 ? /* @__PURE__ */ $(Er, { icon: /* @__PURE__ */ $(
|
|
17277
|
+
t.attempts && t.attempts > 1 ? /* @__PURE__ */ $(Er, { icon: /* @__PURE__ */ $(wn, { width: 12, height: 12 }), label: t.attempts }) : null,
|
|
17278
17278
|
t.lifo ? /* @__PURE__ */ $(Er, { icon: /* @__PURE__ */ $(bg, { width: 12, height: 12 }), label: "LIFO" }) : null,
|
|
17279
17279
|
t.delay ? /* @__PURE__ */ $(Er, { icon: /* @__PURE__ */ $(Xp, { width: 12, height: 12 }), label: t.delay }) : null
|
|
17280
17280
|
] });
|
|
@@ -17332,7 +17332,7 @@ var $f = function(e) {
|
|
|
17332
17332
|
h.getSelectedRowModel().rows.length,
|
|
17333
17333
|
" selected"
|
|
17334
17334
|
] }),
|
|
17335
|
-
s === "completed" || s === "failed" ? /* @__PURE__ */ $(
|
|
17335
|
+
s === "completed" || s === "failed" ? /* @__PURE__ */ $(Zt, { label: s === "failed" ? "Retry" : "Rerun", icon: /* @__PURE__ */ $(wn, {}), size: "sm", onClick: function() {
|
|
17336
17336
|
h.getSelectedRowModel().rows.forEach(function(x) {
|
|
17337
17337
|
s === "failed" ? b({
|
|
17338
17338
|
queueName: i,
|
|
@@ -17343,7 +17343,7 @@ var $f = function(e) {
|
|
|
17343
17343
|
});
|
|
17344
17344
|
});
|
|
17345
17345
|
} }) : null,
|
|
17346
|
-
/* @__PURE__ */ $(
|
|
17346
|
+
/* @__PURE__ */ $(Zt, { label: "Delete", colorScheme: "red", icon: /* @__PURE__ */ $(Eo, {}), size: "sm", onClick: function() {
|
|
17347
17347
|
C({
|
|
17348
17348
|
queueName: i,
|
|
17349
17349
|
jobIds: h.getSelectedRowModel().rows.map(function(x) {
|
|
@@ -17364,7 +17364,7 @@ var $f = function(e) {
|
|
|
17364
17364
|
return /* @__PURE__ */ $(vd, { message: "".concat(r[t], " ").concat(am(n), " ago"), children: /* @__PURE__ */ j("div", { className: "flex items-center space-x-1.5", children: [
|
|
17365
17365
|
t === "added" && /* @__PURE__ */ $(Cc, { width: 14, height: 14, className: "rounded-full bg-cyan-50 text-cyan-900" }),
|
|
17366
17366
|
t === "processing" && /* @__PURE__ */ $(Dp, { width: 14, height: 14, className: "rounded-full bg-slate-50 text-slate-900" }),
|
|
17367
|
-
t === "retried" && /* @__PURE__ */ $(
|
|
17367
|
+
t === "retried" && /* @__PURE__ */ $(wn, { width: 14, height: 14, className: "rounded-full bg-amber-50 text-amber-900" }),
|
|
17368
17368
|
t === "completed" && /* @__PURE__ */ $(Gi, { width: 14, height: 14, className: "rounded-full bg-green-50 text-green-900" }),
|
|
17369
17369
|
t === "failed" && /* @__PURE__ */ $(zi, { width: 14, height: 14, className: "rounded-full bg-red-50 text-red-900" }),
|
|
17370
17370
|
/* @__PURE__ */ $("p", { className: "text-slate-900 dark:text-slate-200", children: J2(n, "".concat(t === "added" ? "MM/dd " : "", "HH:mm:ss")) })
|
|
@@ -17389,7 +17389,7 @@ var $f = function(e) {
|
|
|
17389
17389
|
] });
|
|
17390
17390
|
}, $i = function(e) {
|
|
17391
17391
|
var t = e.variant, n = e.message, r = e.onDismiss, o = te(!0), a = o[0], i = o[1], s = t === "success" ? /* @__PURE__ */ $(Gi, { className: "rounded-full bg-green-50" }) : /* @__PURE__ */ $(zi, { className: "rounded-full bg-red-50" });
|
|
17392
|
-
return /* @__PURE__ */ j(Op, { className:
|
|
17392
|
+
return /* @__PURE__ */ j(Op, { className: Cn("flex items-center space-x-1 rounded-md border bg-white/75 py-2 px-3 text-sm shadow-lg backdrop-blur-md", {
|
|
17393
17393
|
"border-red-50 text-red-900": t === "error",
|
|
17394
17394
|
"border-green-50 text-green-900": t === "success"
|
|
17395
17395
|
}), open: a, onOpenChange: function(l) {
|
|
@@ -17399,7 +17399,7 @@ var $f = function(e) {
|
|
|
17399
17399
|
/* @__PURE__ */ $(Ep, { asChild: !0, children: /* @__PURE__ */ $("p", { children: n }) })
|
|
17400
17400
|
] });
|
|
17401
17401
|
};
|
|
17402
|
-
const v7 = "AlertDialog", [m7,
|
|
17402
|
+
const v7 = "AlertDialog", [m7, K6] = Ve(v7, [
|
|
17403
17403
|
Ad
|
|
17404
17404
|
]), yt = Ad(), b7 = (e) => {
|
|
17405
17405
|
const { __scopeAlertDialog: t, ...n } = e, r = yt(t);
|
|
@@ -17472,73 +17472,76 @@ var H7 = function(e) {
|
|
|
17472
17472
|
/* @__PURE__ */ $(N7, { className: "mb-3 text-xl font-semibold text-slate-900", children: t }),
|
|
17473
17473
|
/* @__PURE__ */ $(j7, { className: "mb-6 text-slate-600", children: n }),
|
|
17474
17474
|
/* @__PURE__ */ j("div", { className: "flex justify-end space-x-3", children: [
|
|
17475
|
-
/* @__PURE__ */ $(L7, { asChild: !0, children: /* @__PURE__ */ $(
|
|
17475
|
+
/* @__PURE__ */ $(L7, { asChild: !0, children: /* @__PURE__ */ $(Zt, { label: "Cancel" }) }),
|
|
17476
17476
|
/* @__PURE__ */ $(I7, { asChild: !0, children: r })
|
|
17477
17477
|
] })
|
|
17478
17478
|
] })
|
|
17479
17479
|
] })
|
|
17480
17480
|
] });
|
|
17481
|
-
}, U7 =
|
|
17482
|
-
|
|
17483
|
-
|
|
17484
|
-
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17481
|
+
}, U7 = function(e) {
|
|
17482
|
+
var t = e.showCleanAllButton, n = e.queueName, r = e.status, o = e.queue, a = xe.queue.clean.useMutation(), i = a.mutate, s = a.isLoading, l = a.isSuccess, u = Bt(Bt([
|
|
17483
|
+
{
|
|
17484
|
+
name: "Completed",
|
|
17485
|
+
status: "completed"
|
|
17486
|
+
},
|
|
17487
|
+
{
|
|
17488
|
+
name: "Failed",
|
|
17489
|
+
status: "failed"
|
|
17490
|
+
},
|
|
17491
|
+
{
|
|
17492
|
+
name: "Active",
|
|
17493
|
+
status: "active"
|
|
17494
|
+
}
|
|
17495
|
+
], o && "prioritized" in o.counts ? [{ name: "Prioritized", status: "prioritized" }] : [], !0), [
|
|
17496
|
+
{
|
|
17497
|
+
name: "Waiting",
|
|
17498
|
+
status: "waiting"
|
|
17499
|
+
},
|
|
17500
|
+
{
|
|
17501
|
+
name: "Delayed",
|
|
17502
|
+
status: "delayed"
|
|
17503
|
+
},
|
|
17504
|
+
{
|
|
17505
|
+
name: "Paused",
|
|
17506
|
+
status: "paused"
|
|
17507
|
+
}
|
|
17508
|
+
], !1);
|
|
17508
17509
|
return /* @__PURE__ */ j("div", { className: "flex items-center justify-between", children: [
|
|
17509
|
-
/* @__PURE__ */ $("div", { className: "flex items-center space-x-3", children:
|
|
17510
|
-
var
|
|
17511
|
-
return /* @__PURE__ */ j(Li, { to: "?status=".concat(
|
|
17512
|
-
"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800": !
|
|
17513
|
-
"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":
|
|
17514
|
-
"bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":
|
|
17515
|
-
"bg-cyan-50 text-cyan-900":
|
|
17516
|
-
"bg-
|
|
17517
|
-
"bg-
|
|
17518
|
-
"bg-
|
|
17510
|
+
/* @__PURE__ */ $("div", { className: "flex items-center space-x-3", children: u.map(function(c) {
|
|
17511
|
+
var d = c.status === r;
|
|
17512
|
+
return /* @__PURE__ */ j(Li, { to: "?status=".concat(c.status), className: Cn("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out", {
|
|
17513
|
+
"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800": !d,
|
|
17514
|
+
"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50": d && c.status === "completed",
|
|
17515
|
+
"bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100": d && c.status === "failed",
|
|
17516
|
+
"bg-cyan-50 text-cyan-900": d && c.status === "active",
|
|
17517
|
+
"bg-purple-50 text-purple-900": d && c.status === "prioritized",
|
|
17518
|
+
"bg-amber-50 text-amber-900": d && c.status === "waiting",
|
|
17519
|
+
"bg-indigo-50 text-indigo-900": d && c.status === "delayed",
|
|
17520
|
+
"bg-stone-50 text-stone-900": d && c.status === "paused"
|
|
17519
17521
|
}), children: [
|
|
17520
|
-
/* @__PURE__ */ $("span", { children:
|
|
17521
|
-
o != null && o.counts[
|
|
17522
|
-
"bg-slate-400 text-slate-50": !
|
|
17523
|
-
"bg-green-600 text-green-50":
|
|
17524
|
-
"bg-red-600 text-red-50":
|
|
17525
|
-
"bg-cyan-600 text-cyan-50":
|
|
17526
|
-
"bg-
|
|
17527
|
-
"bg-
|
|
17528
|
-
"bg-
|
|
17529
|
-
|
|
17530
|
-
|
|
17522
|
+
/* @__PURE__ */ $("span", { children: c.name }),
|
|
17523
|
+
o != null && o.counts[c.status] ? /* @__PURE__ */ $("span", { className: Cn("rounded-md py-0.5 px-1.5 text-xs font-semibold", {
|
|
17524
|
+
"bg-slate-400 text-slate-50": !d,
|
|
17525
|
+
"bg-green-600 text-green-50": d && c.status === "completed",
|
|
17526
|
+
"bg-red-600 text-red-50": d && c.status === "failed",
|
|
17527
|
+
"bg-cyan-600 text-cyan-50": d && c.status === "active",
|
|
17528
|
+
"bg-purple-600 text-purple-50": d && c.status === "prioritized",
|
|
17529
|
+
"bg-amber-600 text-amber-50": d && c.status === "waiting",
|
|
17530
|
+
"bg-indigo-600 text-indigo-50": d && c.status === "delayed",
|
|
17531
|
+
"bg-stone-600 text-stone-50": d && c.status === "paused"
|
|
17532
|
+
}), children: o.counts[c.status] }) : null
|
|
17533
|
+
] }, c.name);
|
|
17531
17534
|
}) }),
|
|
17532
|
-
t ? /* @__PURE__ */ $(H7, { title: "Are you absolutely sure?", description: "This action cannot be undone. This will permanently remove all ".concat(r, " jobs from the queue."), action: /* @__PURE__ */ $(
|
|
17535
|
+
t ? /* @__PURE__ */ $(H7, { title: "Are you absolutely sure?", description: "This action cannot be undone. This will permanently remove all ".concat(r, " jobs from the queue."), action: /* @__PURE__ */ $(Zt, { variant: "filled", colorScheme: "red", label: "Yes, remove jobs", onClick: function() {
|
|
17533
17536
|
return i({
|
|
17534
17537
|
queueName: n,
|
|
17535
17538
|
status: r
|
|
17536
17539
|
});
|
|
17537
|
-
} }), children: /* @__PURE__ */ $(
|
|
17540
|
+
} }), children: /* @__PURE__ */ $(Zt, { colorScheme: "yellow", icon: /* @__PURE__ */ $(Eo, {}), label: "Clean all", size: "sm", isLoading: s }) }) : null,
|
|
17538
17541
|
l ? /* @__PURE__ */ $($i, { message: "All ".concat(r, " jobs have been removed"), variant: "success" }) : null
|
|
17539
17542
|
] });
|
|
17540
17543
|
};
|
|
17541
|
-
function
|
|
17544
|
+
function q7(e, t, n) {
|
|
17542
17545
|
return t in e ? Object.defineProperty(e, t, {
|
|
17543
17546
|
value: n,
|
|
17544
17547
|
enumerable: !0,
|
|
@@ -17560,14 +17563,14 @@ function gu(e) {
|
|
|
17560
17563
|
for (var t = 1; t < arguments.length; t++) {
|
|
17561
17564
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
17562
17565
|
t % 2 ? pu(Object(n), !0).forEach(function(r) {
|
|
17563
|
-
|
|
17566
|
+
q7(e, r, n[r]);
|
|
17564
17567
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pu(Object(n)).forEach(function(r) {
|
|
17565
17568
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
17566
17569
|
});
|
|
17567
17570
|
}
|
|
17568
17571
|
return e;
|
|
17569
17572
|
}
|
|
17570
|
-
function
|
|
17573
|
+
function V7(e, t) {
|
|
17571
17574
|
if (e == null)
|
|
17572
17575
|
return {};
|
|
17573
17576
|
var n = {}, r = Object.keys(e), o, a;
|
|
@@ -17575,10 +17578,10 @@ function B7(e, t) {
|
|
|
17575
17578
|
o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
17576
17579
|
return n;
|
|
17577
17580
|
}
|
|
17578
|
-
function
|
|
17581
|
+
function B7(e, t) {
|
|
17579
17582
|
if (e == null)
|
|
17580
17583
|
return {};
|
|
17581
|
-
var n =
|
|
17584
|
+
var n = V7(e, t), r, o;
|
|
17582
17585
|
if (Object.getOwnPropertySymbols) {
|
|
17583
17586
|
var a = Object.getOwnPropertySymbols(e);
|
|
17584
17587
|
for (o = 0; o < a.length; o++)
|
|
@@ -17586,14 +17589,14 @@ function G7(e, t) {
|
|
|
17586
17589
|
}
|
|
17587
17590
|
return n;
|
|
17588
17591
|
}
|
|
17589
|
-
function
|
|
17590
|
-
return
|
|
17592
|
+
function G7(e, t) {
|
|
17593
|
+
return z7(e) || Q7(e, t) || W7(e, t) || K7();
|
|
17591
17594
|
}
|
|
17592
|
-
function
|
|
17595
|
+
function z7(e) {
|
|
17593
17596
|
if (Array.isArray(e))
|
|
17594
17597
|
return e;
|
|
17595
17598
|
}
|
|
17596
|
-
function
|
|
17599
|
+
function Q7(e, t) {
|
|
17597
17600
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
|
|
17598
17601
|
var n = [], r = !0, o = !1, a = void 0;
|
|
17599
17602
|
try {
|
|
@@ -17612,7 +17615,7 @@ function W7(e, t) {
|
|
|
17612
17615
|
return n;
|
|
17613
17616
|
}
|
|
17614
17617
|
}
|
|
17615
|
-
function
|
|
17618
|
+
function W7(e, t) {
|
|
17616
17619
|
if (e) {
|
|
17617
17620
|
if (typeof e == "string")
|
|
17618
17621
|
return vu(e, t);
|
|
@@ -17629,11 +17632,11 @@ function vu(e, t) {
|
|
|
17629
17632
|
r[n] = e[n];
|
|
17630
17633
|
return r;
|
|
17631
17634
|
}
|
|
17632
|
-
function
|
|
17635
|
+
function K7() {
|
|
17633
17636
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17634
17637
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
17635
17638
|
}
|
|
17636
|
-
function
|
|
17639
|
+
function Y7(e, t, n) {
|
|
17637
17640
|
return t in e ? Object.defineProperty(e, t, {
|
|
17638
17641
|
value: n,
|
|
17639
17642
|
enumerable: !0,
|
|
@@ -17655,14 +17658,14 @@ function bu(e) {
|
|
|
17655
17658
|
for (var t = 1; t < arguments.length; t++) {
|
|
17656
17659
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
17657
17660
|
t % 2 ? mu(Object(n), !0).forEach(function(r) {
|
|
17658
|
-
|
|
17661
|
+
Y7(e, r, n[r]);
|
|
17659
17662
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mu(Object(n)).forEach(function(r) {
|
|
17660
17663
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
17661
17664
|
});
|
|
17662
17665
|
}
|
|
17663
17666
|
return e;
|
|
17664
17667
|
}
|
|
17665
|
-
function
|
|
17668
|
+
function Z7() {
|
|
17666
17669
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
17667
17670
|
t[n] = arguments[n];
|
|
17668
17671
|
return function(r) {
|
|
@@ -17671,7 +17674,7 @@ function X7() {
|
|
|
17671
17674
|
}, r);
|
|
17672
17675
|
};
|
|
17673
17676
|
}
|
|
17674
|
-
function
|
|
17677
|
+
function In(e) {
|
|
17675
17678
|
return function t() {
|
|
17676
17679
|
for (var n = this, r = arguments.length, o = new Array(r), a = 0; a < r; a++)
|
|
17677
17680
|
o[a] = arguments[a];
|
|
@@ -17685,35 +17688,35 @@ function Fn(e) {
|
|
|
17685
17688
|
function po(e) {
|
|
17686
17689
|
return {}.toString.call(e).includes("Object");
|
|
17687
17690
|
}
|
|
17688
|
-
function
|
|
17691
|
+
function X7(e) {
|
|
17689
17692
|
return !Object.keys(e).length;
|
|
17690
17693
|
}
|
|
17691
17694
|
function Jn(e) {
|
|
17692
17695
|
return typeof e == "function";
|
|
17693
17696
|
}
|
|
17694
|
-
function
|
|
17697
|
+
function J7(e, t) {
|
|
17695
17698
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
17696
17699
|
}
|
|
17697
|
-
function
|
|
17700
|
+
function e6(e, t) {
|
|
17698
17701
|
return po(t) || Dt("changeType"), Object.keys(t).some(function(n) {
|
|
17699
|
-
return !
|
|
17702
|
+
return !J7(e, n);
|
|
17700
17703
|
}) && Dt("changeField"), t;
|
|
17701
17704
|
}
|
|
17702
|
-
function
|
|
17705
|
+
function t6(e) {
|
|
17703
17706
|
Jn(e) || Dt("selectorType");
|
|
17704
17707
|
}
|
|
17705
|
-
function
|
|
17708
|
+
function n6(e) {
|
|
17706
17709
|
Jn(e) || po(e) || Dt("handlerType"), po(e) && Object.values(e).some(function(t) {
|
|
17707
17710
|
return !Jn(t);
|
|
17708
17711
|
}) && Dt("handlersType");
|
|
17709
17712
|
}
|
|
17710
|
-
function
|
|
17711
|
-
e || Dt("initialIsRequired"), po(e) || Dt("initialType"),
|
|
17713
|
+
function r6(e) {
|
|
17714
|
+
e || Dt("initialIsRequired"), po(e) || Dt("initialType"), X7(e) && Dt("initialContent");
|
|
17712
17715
|
}
|
|
17713
|
-
function
|
|
17716
|
+
function o6(e, t) {
|
|
17714
17717
|
throw new Error(e[t] || e.default);
|
|
17715
17718
|
}
|
|
17716
|
-
var
|
|
17719
|
+
var a6 = {
|
|
17717
17720
|
initialIsRequired: "initial state is required",
|
|
17718
17721
|
initialType: "initial state should be an object",
|
|
17719
17722
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -17723,18 +17726,18 @@ var i6 = {
|
|
|
17723
17726
|
changeType: "provided value of changes should be an object",
|
|
17724
17727
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
17725
17728
|
default: "an unknown error accured in `state-local` package"
|
|
17726
|
-
}, Dt =
|
|
17727
|
-
changes:
|
|
17728
|
-
selector:
|
|
17729
|
-
handler:
|
|
17730
|
-
initial:
|
|
17729
|
+
}, Dt = In(o6)(a6), kr = {
|
|
17730
|
+
changes: e6,
|
|
17731
|
+
selector: t6,
|
|
17732
|
+
handler: n6,
|
|
17733
|
+
initial: r6
|
|
17731
17734
|
};
|
|
17732
|
-
function
|
|
17735
|
+
function i6(e) {
|
|
17733
17736
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17734
17737
|
kr.initial(e), kr.handler(t);
|
|
17735
17738
|
var n = {
|
|
17736
17739
|
current: e
|
|
17737
|
-
}, r =
|
|
17740
|
+
}, r = In(u6)(n, t), o = In(l6)(n), a = In(kr.changes)(e), i = In(s6)(n);
|
|
17738
17741
|
function s() {
|
|
17739
17742
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(c) {
|
|
17740
17743
|
return c;
|
|
@@ -17742,30 +17745,30 @@ function s6(e) {
|
|
|
17742
17745
|
return kr.selector(u), u(n.current);
|
|
17743
17746
|
}
|
|
17744
17747
|
function l(u) {
|
|
17745
|
-
|
|
17748
|
+
Z7(r, o, a, i)(u);
|
|
17746
17749
|
}
|
|
17747
17750
|
return [s, l];
|
|
17748
17751
|
}
|
|
17749
|
-
function
|
|
17752
|
+
function s6(e, t) {
|
|
17750
17753
|
return Jn(t) ? t(e.current) : t;
|
|
17751
17754
|
}
|
|
17752
|
-
function
|
|
17755
|
+
function l6(e, t) {
|
|
17753
17756
|
return e.current = bu(bu({}, e.current), t), t;
|
|
17754
17757
|
}
|
|
17755
|
-
function
|
|
17758
|
+
function u6(e, t, n) {
|
|
17756
17759
|
return Jn(t) ? t(e.current) : Object.keys(n).forEach(function(r) {
|
|
17757
17760
|
var o;
|
|
17758
17761
|
return (o = t[r]) === null || o === void 0 ? void 0 : o.call(t, e.current[r]);
|
|
17759
17762
|
}), n;
|
|
17760
17763
|
}
|
|
17761
|
-
var
|
|
17762
|
-
create:
|
|
17763
|
-
},
|
|
17764
|
+
var c6 = {
|
|
17765
|
+
create: i6
|
|
17766
|
+
}, d6 = {
|
|
17764
17767
|
paths: {
|
|
17765
17768
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
|
|
17766
17769
|
}
|
|
17767
17770
|
};
|
|
17768
|
-
function
|
|
17771
|
+
function f6(e) {
|
|
17769
17772
|
return function t() {
|
|
17770
17773
|
for (var n = this, r = arguments.length, o = new Array(r), a = 0; a < r; a++)
|
|
17771
17774
|
o[a] = arguments[a];
|
|
@@ -17776,20 +17779,20 @@ function h6(e) {
|
|
|
17776
17779
|
};
|
|
17777
17780
|
};
|
|
17778
17781
|
}
|
|
17779
|
-
function
|
|
17782
|
+
function h6(e) {
|
|
17780
17783
|
return {}.toString.call(e).includes("Object");
|
|
17781
17784
|
}
|
|
17782
|
-
function
|
|
17783
|
-
return e || yu("configIsRequired"),
|
|
17785
|
+
function p6(e) {
|
|
17786
|
+
return e || yu("configIsRequired"), h6(e) || yu("configType"), e.urls ? (g6(), {
|
|
17784
17787
|
paths: {
|
|
17785
17788
|
vs: e.urls.monacoBase
|
|
17786
17789
|
}
|
|
17787
17790
|
}) : e;
|
|
17788
17791
|
}
|
|
17789
|
-
function
|
|
17792
|
+
function g6() {
|
|
17790
17793
|
console.warn(Sf.deprecation);
|
|
17791
17794
|
}
|
|
17792
|
-
function
|
|
17795
|
+
function v6(e, t) {
|
|
17793
17796
|
throw new Error(e[t] || e.default);
|
|
17794
17797
|
}
|
|
17795
17798
|
var Sf = {
|
|
@@ -17806,9 +17809,9 @@ var Sf = {
|
|
|
17806
17809
|
|
|
17807
17810
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
17808
17811
|
`
|
|
17809
|
-
}, yu =
|
|
17810
|
-
config:
|
|
17811
|
-
},
|
|
17812
|
+
}, yu = f6(v6)(Sf), m6 = {
|
|
17813
|
+
config: p6
|
|
17814
|
+
}, b6 = function() {
|
|
17812
17815
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
17813
17816
|
n[r] = arguments[r];
|
|
17814
17817
|
return function(o) {
|
|
@@ -17822,29 +17825,29 @@ function Rf(e, t) {
|
|
|
17822
17825
|
t[n] instanceof Object && e[n] && Object.assign(t[n], Rf(e[n], t[n]));
|
|
17823
17826
|
}), gu(gu({}, e), t);
|
|
17824
17827
|
}
|
|
17825
|
-
var
|
|
17828
|
+
var y6 = {
|
|
17826
17829
|
type: "cancelation",
|
|
17827
17830
|
msg: "operation is manually canceled"
|
|
17828
17831
|
};
|
|
17829
17832
|
function Sa(e) {
|
|
17830
17833
|
var t = !1, n = new Promise(function(r, o) {
|
|
17831
17834
|
e.then(function(a) {
|
|
17832
|
-
return t ? o(
|
|
17835
|
+
return t ? o(y6) : r(a);
|
|
17833
17836
|
}), e.catch(o);
|
|
17834
17837
|
});
|
|
17835
17838
|
return n.cancel = function() {
|
|
17836
17839
|
return t = !0;
|
|
17837
17840
|
}, n;
|
|
17838
17841
|
}
|
|
17839
|
-
var
|
|
17840
|
-
config:
|
|
17842
|
+
var w6 = c6.create({
|
|
17843
|
+
config: d6,
|
|
17841
17844
|
isInitialized: !1,
|
|
17842
17845
|
resolve: null,
|
|
17843
17846
|
reject: null,
|
|
17844
17847
|
monaco: null
|
|
17845
|
-
}), Of =
|
|
17846
|
-
function
|
|
17847
|
-
var t =
|
|
17848
|
+
}), Of = G7(w6, 2), hr = Of[0], Uo = Of[1];
|
|
17849
|
+
function C6(e) {
|
|
17850
|
+
var t = m6.config(e), n = t.monaco, r = B7(t, ["monaco"]);
|
|
17848
17851
|
Uo(function(o) {
|
|
17849
17852
|
return {
|
|
17850
17853
|
config: Rf(o.config, r),
|
|
@@ -17852,7 +17855,7 @@ function $6(e) {
|
|
|
17852
17855
|
};
|
|
17853
17856
|
});
|
|
17854
17857
|
}
|
|
17855
|
-
function
|
|
17858
|
+
function $6() {
|
|
17856
17859
|
var e = hr(function(t) {
|
|
17857
17860
|
var n = t.monaco, r = t.isInitialized, o = t.resolve;
|
|
17858
17861
|
return {
|
|
@@ -17868,30 +17871,30 @@ function x6() {
|
|
|
17868
17871
|
return e.resolve(e.monaco), Sa(Ra);
|
|
17869
17872
|
if (window.monaco && window.monaco.editor)
|
|
17870
17873
|
return Ef(window.monaco), e.resolve(window.monaco), Sa(Ra);
|
|
17871
|
-
|
|
17874
|
+
b6(x6, R6)(O6);
|
|
17872
17875
|
}
|
|
17873
17876
|
return Sa(Ra);
|
|
17874
17877
|
}
|
|
17875
|
-
function
|
|
17878
|
+
function x6(e) {
|
|
17876
17879
|
return document.body.appendChild(e);
|
|
17877
17880
|
}
|
|
17878
|
-
function
|
|
17881
|
+
function S6(e) {
|
|
17879
17882
|
var t = document.createElement("script");
|
|
17880
17883
|
return e && (t.src = e), t;
|
|
17881
17884
|
}
|
|
17882
|
-
function
|
|
17885
|
+
function R6(e) {
|
|
17883
17886
|
var t = hr(function(r) {
|
|
17884
17887
|
var o = r.config, a = r.reject;
|
|
17885
17888
|
return {
|
|
17886
17889
|
config: o,
|
|
17887
17890
|
reject: a
|
|
17888
17891
|
};
|
|
17889
|
-
}), n =
|
|
17892
|
+
}), n = S6("".concat(t.config.paths.vs, "/loader.js"));
|
|
17890
17893
|
return n.onload = function() {
|
|
17891
17894
|
return e();
|
|
17892
17895
|
}, n.onerror = t.reject, n;
|
|
17893
17896
|
}
|
|
17894
|
-
function
|
|
17897
|
+
function O6() {
|
|
17895
17898
|
var e = hr(function(n) {
|
|
17896
17899
|
var r = n.config, o = n.resolve, a = n.reject;
|
|
17897
17900
|
return {
|
|
@@ -17911,7 +17914,7 @@ function Ef(e) {
|
|
|
17911
17914
|
monaco: e
|
|
17912
17915
|
});
|
|
17913
17916
|
}
|
|
17914
|
-
function
|
|
17917
|
+
function E6() {
|
|
17915
17918
|
return hr(function(e) {
|
|
17916
17919
|
var t = e.monaco;
|
|
17917
17920
|
return t;
|
|
@@ -17923,9 +17926,9 @@ var Ra = new Promise(function(e, t) {
|
|
|
17923
17926
|
reject: t
|
|
17924
17927
|
});
|
|
17925
17928
|
}), Pf = {
|
|
17926
|
-
config:
|
|
17927
|
-
init:
|
|
17928
|
-
__getMonacoInstance:
|
|
17929
|
+
config: C6,
|
|
17930
|
+
init: $6,
|
|
17931
|
+
__getMonacoInstance: E6
|
|
17929
17932
|
};
|
|
17930
17933
|
function xi() {
|
|
17931
17934
|
return xi = Object.assign || function(e) {
|
|
@@ -17937,18 +17940,18 @@ function xi() {
|
|
|
17937
17940
|
return e;
|
|
17938
17941
|
}, xi.apply(this, arguments);
|
|
17939
17942
|
}
|
|
17940
|
-
const
|
|
17943
|
+
const P6 = {
|
|
17941
17944
|
display: "flex",
|
|
17942
17945
|
height: "100%",
|
|
17943
17946
|
width: "100%",
|
|
17944
17947
|
justifyContent: "center",
|
|
17945
17948
|
alignItems: "center"
|
|
17946
17949
|
};
|
|
17947
|
-
function
|
|
17950
|
+
function M6({
|
|
17948
17951
|
content: e
|
|
17949
17952
|
}) {
|
|
17950
17953
|
return /* @__PURE__ */ I.createElement("div", {
|
|
17951
|
-
style:
|
|
17954
|
+
style: P6
|
|
17952
17955
|
}, e);
|
|
17953
17956
|
}
|
|
17954
17957
|
const Oa = {
|
|
@@ -17979,7 +17982,7 @@ function Mf({
|
|
|
17979
17982
|
width: e,
|
|
17980
17983
|
height: t
|
|
17981
17984
|
}
|
|
17982
|
-
}, i), !n && /* @__PURE__ */ I.createElement(
|
|
17985
|
+
}, i), !n && /* @__PURE__ */ I.createElement(M6, {
|
|
17983
17986
|
content: r
|
|
17984
17987
|
}), /* @__PURE__ */ I.createElement("div", {
|
|
17985
17988
|
ref: o,
|
|
@@ -18011,18 +18014,18 @@ function We(e, t, n = !0) {
|
|
|
18011
18014
|
function qn() {
|
|
18012
18015
|
}
|
|
18013
18016
|
function go(e, t, n, r) {
|
|
18014
|
-
return
|
|
18017
|
+
return T6(e, r) || _6(e, t, n, r);
|
|
18015
18018
|
}
|
|
18016
|
-
function
|
|
18019
|
+
function T6(e, t) {
|
|
18017
18020
|
return e.editor.getModel(Df(e, t));
|
|
18018
18021
|
}
|
|
18019
|
-
function
|
|
18022
|
+
function _6(e, t, n, r) {
|
|
18020
18023
|
return e.editor.createModel(t, n, r && Df(e, r));
|
|
18021
18024
|
}
|
|
18022
18025
|
function Df(e, t) {
|
|
18023
18026
|
return e.Uri.parse(t);
|
|
18024
18027
|
}
|
|
18025
|
-
function
|
|
18028
|
+
function D6(e) {
|
|
18026
18029
|
return e === void 0;
|
|
18027
18030
|
}
|
|
18028
18031
|
function Af({
|
|
@@ -18149,7 +18152,7 @@ Af.defaultProps = {
|
|
|
18149
18152
|
beforeMount: qn,
|
|
18150
18153
|
onMount: qn
|
|
18151
18154
|
};
|
|
18152
|
-
function
|
|
18155
|
+
function A6(e) {
|
|
18153
18156
|
const t = N();
|
|
18154
18157
|
return G(() => {
|
|
18155
18158
|
t.current = e;
|
|
@@ -18182,7 +18185,7 @@ function Ss({
|
|
|
18182
18185
|
onChange: y,
|
|
18183
18186
|
onValidate: C
|
|
18184
18187
|
}) {
|
|
18185
|
-
const [x, E] = te(!1), [S, R] = te(!0), T = N(null), k = N(null), Q = N(null), Z = N(b), ae = N(m), L = N(null), U = N(r), le =
|
|
18188
|
+
const [x, E] = te(!1), [S, R] = te(!0), T = N(null), k = N(null), Q = N(null), Z = N(b), ae = N(m), L = N(null), U = N(r), le = A6(a), ie = N(!1);
|
|
18186
18189
|
_f(() => {
|
|
18187
18190
|
const Y = Pf.init();
|
|
18188
18191
|
return Y.then((ee) => (T.current = ee) && R(!1)).catch((ee) => (ee == null ? void 0 : ee.type) !== "cancelation" && console.error("Monaco initialization: error:", ee)), () => k.current ? z() : Y.cancel();
|
|
@@ -18200,7 +18203,7 @@ function Ss({
|
|
|
18200
18203
|
}, [r], x), We(() => {
|
|
18201
18204
|
T.current.editor.setModelLanguage(k.current.getModel(), o);
|
|
18202
18205
|
}, [o], x), We(() => {
|
|
18203
|
-
|
|
18206
|
+
D6(s) || k.current.revealLine(s);
|
|
18204
18207
|
}, [s], x), We(() => {
|
|
18205
18208
|
T.current.editor.setTheme(i);
|
|
18206
18209
|
}, [i], x);
|
|
@@ -18305,7 +18308,7 @@ Ss.defaultProps = {
|
|
|
18305
18308
|
onMount: qn,
|
|
18306
18309
|
onValidate: qn
|
|
18307
18310
|
};
|
|
18308
|
-
var
|
|
18311
|
+
var k6 = /* @__PURE__ */ wu(Ss), F6 = function(e) {
|
|
18309
18312
|
var t = e.queue, n = e.onDismiss, r = xe.queue.addJob.useMutation(), o = r.mutate, a = r.isLoading, i = r.isSuccess, s = te("{}"), l = s[0], u = s[1], c = N(null), d = te(null), h = d[0], f = d[1], v = function() {
|
|
18310
18313
|
var p, m;
|
|
18311
18314
|
(m = (p = c.current) === null || p === void 0 ? void 0 : p.getAction("editor.action.formatDocument")) === null || m === void 0 || m.run();
|
|
@@ -18325,7 +18328,7 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18325
18328
|
"Add job to ",
|
|
18326
18329
|
t.displayName.toLocaleLowerCase()
|
|
18327
18330
|
] }) }) }),
|
|
18328
|
-
/* @__PURE__ */ $("div", { onKeyDown: g, onBlur: v, className: "mb-6 border border-slate-200", children: /* @__PURE__ */ $(
|
|
18331
|
+
/* @__PURE__ */ $("div", { onKeyDown: g, onBlur: v, className: "mb-6 border border-slate-200", children: /* @__PURE__ */ $(k6, { height: "300px", language: "json", className: "rounded-md", options: {
|
|
18329
18332
|
minimap: {
|
|
18330
18333
|
enabled: !1
|
|
18331
18334
|
},
|
|
@@ -18689,7 +18692,7 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18689
18692
|
}), m.editor.setTheme("solarized-light");
|
|
18690
18693
|
} }) }),
|
|
18691
18694
|
/* @__PURE__ */ j("div", { children: [
|
|
18692
|
-
/* @__PURE__ */ $(
|
|
18695
|
+
/* @__PURE__ */ $(Zt, { label: "Add job", variant: "filled", disabled: a, onClick: function() {
|
|
18693
18696
|
var p;
|
|
18694
18697
|
if (c.current) {
|
|
18695
18698
|
(p = c.current.getAction("editor.action.formatDocument")) === null || p === void 0 || p.run();
|
|
@@ -18711,7 +18714,7 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18711
18714
|
] })
|
|
18712
18715
|
] })
|
|
18713
18716
|
] }) });
|
|
18714
|
-
},
|
|
18717
|
+
}, I6 = function(e) {
|
|
18715
18718
|
var t = e.queue, n = xe.queue.pause.useMutation().mutate, r = xe.queue.resume.useMutation().mutate, o = xe.queue.empty.useMutation().mutate, a = te(!1), i = a[0], s = a[1], l = {
|
|
18716
18719
|
queueName: t.name
|
|
18717
18720
|
};
|
|
@@ -18739,11 +18742,11 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18739
18742
|
icon: /* @__PURE__ */ $(Eo, {})
|
|
18740
18743
|
}
|
|
18741
18744
|
] }),
|
|
18742
|
-
i ? /* @__PURE__ */ $(
|
|
18745
|
+
i ? /* @__PURE__ */ $(F6, { queue: t, onDismiss: function() {
|
|
18743
18746
|
return s(!1);
|
|
18744
18747
|
} }) : null
|
|
18745
18748
|
] });
|
|
18746
|
-
},
|
|
18749
|
+
}, L6 = function() {
|
|
18747
18750
|
var e, t, n, r = c1().id, o = r, a = I1()[0], i = te("completed"), s = i[0], l = i[1], u = xe.job.list.useInfiniteQuery({
|
|
18748
18751
|
queueName: o,
|
|
18749
18752
|
limit: ei,
|
|
@@ -18772,11 +18775,11 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18772
18775
|
return /* @__PURE__ */ $(_c, { children: p.data === null ? /* @__PURE__ */ $(Wa, { message: "No queue found" }) : f ? /* @__PURE__ */ $(Wa, { message: "Could not fetch jobs" }) : /* @__PURE__ */ j("div", { children: [
|
|
18773
18776
|
/* @__PURE__ */ j("div", { className: "mb-6 flex items-center space-x-4", children: [
|
|
18774
18777
|
/* @__PURE__ */ $("h1", { className: "text-2xl font-bold text-slate-900 dark:text-slate-50", children: p.data ? p.data.displayName : /* @__PURE__ */ $(Ni, { className: "h-8 w-52 rounded-md" }) }),
|
|
18775
|
-
p.data ? /* @__PURE__ */ $(
|
|
18778
|
+
p.data ? /* @__PURE__ */ $(I6, { queue: p.data }) : null,
|
|
18776
18779
|
!((t = p.data) === null || t === void 0) && t.paused ? /* @__PURE__ */ $("div", { className: "flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 py-1 text-sm text-yellow-900 transition duration-150 ease-in-out", children: /* @__PURE__ */ $("span", { children: "Paused" }) }) : null
|
|
18777
18780
|
] }),
|
|
18778
18781
|
/* @__PURE__ */ j("div", { className: "space-y-4", children: [
|
|
18779
|
-
/* @__PURE__ */ $(
|
|
18782
|
+
/* @__PURE__ */ $(U7, { showCleanAllButton: m.length > 0, queueName: o, status: s, queue: p.data }),
|
|
18780
18783
|
/* @__PURE__ */ $(g7, { onBottomInView: function() {
|
|
18781
18784
|
v || !g || d();
|
|
18782
18785
|
}, status: s, totalJobs: ((n = c == null ? void 0 : c.pages.at(-1)) === null || n === void 0 ? void 0 : n.totalCount) || 0, jobs: m.map(function(b) {
|
|
@@ -18801,7 +18804,7 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18801
18804
|
" ",
|
|
18802
18805
|
o[n]
|
|
18803
18806
|
] }) }) });
|
|
18804
|
-
},
|
|
18807
|
+
}, N6 = function(e) {
|
|
18805
18808
|
var t = e.queueName, n = xe.queue.byName.useQuery({
|
|
18806
18809
|
queueName: t
|
|
18807
18810
|
}, {
|
|
@@ -18817,15 +18820,15 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18817
18820
|
/* @__PURE__ */ $(Ir, { count: n.data.counts.waiting, variant: "waiting" })
|
|
18818
18821
|
] })
|
|
18819
18822
|
] }) : null;
|
|
18820
|
-
},
|
|
18823
|
+
}, j6 = function() {
|
|
18821
18824
|
var e = xe.queue.list.useQuery().data;
|
|
18822
18825
|
return /* @__PURE__ */ $(_c, { children: /* @__PURE__ */ j("div", { children: [
|
|
18823
18826
|
/* @__PURE__ */ $("h1", { className: "mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50", children: "Queues" }),
|
|
18824
18827
|
/* @__PURE__ */ $("div", { className: "xl:max-w-2xl", children: e == null ? void 0 : e.map(function(t, n) {
|
|
18825
|
-
return /* @__PURE__ */ $("div", { className: (e == null ? void 0 : e.length) - 1 !== n ? "border-b border-slate-100 dark:border-slate-700" : "", children: /* @__PURE__ */ $(
|
|
18828
|
+
return /* @__PURE__ */ $("div", { className: (e == null ? void 0 : e.length) - 1 !== n ? "border-b border-slate-100 dark:border-slate-700" : "", children: /* @__PURE__ */ $(N6, { queueName: t.name }, t.name) }, t.name);
|
|
18826
18829
|
}) })
|
|
18827
18830
|
] }) });
|
|
18828
|
-
},
|
|
18831
|
+
}, Y6 = function(e) {
|
|
18829
18832
|
var t = e.apiUrl, n = e.basename, r = te(!1), o = r[0], a = r[1], i = te(function() {
|
|
18830
18833
|
return new c0();
|
|
18831
18834
|
})[0], s = te(function() {
|
|
@@ -18845,11 +18848,11 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18845
18848
|
var l = M1([
|
|
18846
18849
|
{
|
|
18847
18850
|
path: "/",
|
|
18848
|
-
element: /* @__PURE__ */ $(
|
|
18851
|
+
element: /* @__PURE__ */ $(j6, {})
|
|
18849
18852
|
},
|
|
18850
18853
|
{
|
|
18851
18854
|
path: "/:id",
|
|
18852
|
-
element: /* @__PURE__ */ $(
|
|
18855
|
+
element: /* @__PURE__ */ $(L6, {})
|
|
18853
18856
|
}
|
|
18854
18857
|
], {
|
|
18855
18858
|
basename: n
|
|
@@ -18857,5 +18860,5 @@ var F6 = /* @__PURE__ */ wu(Ss), I6 = function(e) {
|
|
|
18857
18860
|
return /* @__PURE__ */ $(xe.Provider, { client: s, queryClient: i, children: /* @__PURE__ */ $(R0, { client: i, children: /* @__PURE__ */ $(w1, { router: l }) }) });
|
|
18858
18861
|
};
|
|
18859
18862
|
export {
|
|
18860
|
-
|
|
18863
|
+
Y6 as QueueDashApp
|
|
18861
18864
|
};
|