@bluealba/pae-ui-react-core 4.1.0 → 4.1.1-develop-1316
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +9 -9
- package/dist/index.esm.js +390 -392
- package/dist/index.systemjs.js +9 -9
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -99,11 +99,11 @@ function Fu() {
|
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
100
|
*/
|
|
101
101
|
return function() {
|
|
102
|
-
var e = ls, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"),
|
|
102
|
+
var e = ls, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), w = Symbol.iterator, f = "@@iterator";
|
|
103
103
|
function y(v) {
|
|
104
104
|
if (v === null || typeof v != "object")
|
|
105
105
|
return null;
|
|
106
|
-
var R = w && v[w] || v[
|
|
106
|
+
var R = w && v[w] || v[f];
|
|
107
107
|
return typeof R == "function" ? R : null;
|
|
108
108
|
}
|
|
109
109
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -127,7 +127,7 @@ function Fu() {
|
|
|
127
127
|
var E = !1, _ = !1, A = !1, T = !1, k = !1, N;
|
|
128
128
|
N = Symbol.for("react.module.reference");
|
|
129
129
|
function L(v) {
|
|
130
|
-
return !!(typeof v == "string" || typeof v == "function" || v === r || v === s || k || v === o || v === u || v === d || T || v === g || E || _ || A || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof ===
|
|
130
|
+
return !!(typeof v == "string" || typeof v == "function" || v === r || v === s || k || v === o || v === u || v === d || T || v === g || E || _ || A || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === h || v.$$typeof === i || v.$$typeof === a || v.$$typeof === c || // This needs to include all possible module reference object
|
|
131
131
|
// types supported by any Flight configuration anywhere since
|
|
132
132
|
// we don't know which Flight build this will end up being used
|
|
133
133
|
// with.
|
|
@@ -174,7 +174,7 @@ function Fu() {
|
|
|
174
174
|
return Q(P._context) + ".Provider";
|
|
175
175
|
case c:
|
|
176
176
|
return V(v, v.render, "ForwardRef");
|
|
177
|
-
case
|
|
177
|
+
case h:
|
|
178
178
|
var I = v.displayName || null;
|
|
179
179
|
return I !== null ? I : H(v.type) || "Memo";
|
|
180
180
|
case p: {
|
|
@@ -364,7 +364,7 @@ function Fu() {
|
|
|
364
364
|
switch (v.$$typeof) {
|
|
365
365
|
case c:
|
|
366
366
|
return _t(v.render);
|
|
367
|
-
case
|
|
367
|
+
case h:
|
|
368
368
|
return Gt(v.type, R, P);
|
|
369
369
|
case p: {
|
|
370
370
|
var I = v, q = I._payload, K = I._init;
|
|
@@ -604,7 +604,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
604
604
|
P = R.propTypes;
|
|
605
605
|
else if (typeof R == "object" && (R.$$typeof === c || // Note: Memo only checks outer props here.
|
|
606
606
|
// Inner props are checked in the reconciler.
|
|
607
|
-
R.$$typeof ===
|
|
607
|
+
R.$$typeof === h))
|
|
608
608
|
P = R.propTypes;
|
|
609
609
|
else
|
|
610
610
|
return;
|
|
@@ -826,19 +826,19 @@ const ed = (e) => {
|
|
|
826
826
|
const t = Wr(e == null ? void 0 : e.modules), n = ps(t == null ? void 0 : t.name), [r, o] = Y(!1), [s, i] = Y({}), a = async () => (typeof (n == null ? void 0 : n.menu) == "function" ? await n.menu() : n == null ? void 0 : n.menu) || [], c = async () => {
|
|
827
827
|
if (!(n != null && n.menu)) return [];
|
|
828
828
|
o(!0);
|
|
829
|
-
const
|
|
830
|
-
const { operations: w, items:
|
|
831
|
-
if (w != null && w.length && !
|
|
832
|
-
const C = (
|
|
829
|
+
const h = nd((e == null ? void 0 : e.operations) || []), p = (await a()).map((g) => {
|
|
830
|
+
const { operations: w, items: f, path: y } = g;
|
|
831
|
+
if (w != null && w.length && !h(w)) return null;
|
|
832
|
+
const C = (f || []).filter((x) => {
|
|
833
833
|
var S;
|
|
834
|
-
return !((S = x == null ? void 0 : x.operations) != null && S.length) ||
|
|
834
|
+
return !((S = x == null ? void 0 : x.operations) != null && S.length) || h(x.operations);
|
|
835
835
|
});
|
|
836
836
|
return !C.length && !y ? null : { ...g, items: C };
|
|
837
837
|
}).filter(Boolean);
|
|
838
838
|
return o(!1), p;
|
|
839
839
|
}, u = async () => {
|
|
840
|
-
const
|
|
841
|
-
e && i((p) => ({ ...p, [e.name]:
|
|
840
|
+
const h = await c();
|
|
841
|
+
e && i((p) => ({ ...p, [e.name]: h }));
|
|
842
842
|
};
|
|
843
843
|
ne(() => {
|
|
844
844
|
u();
|
|
@@ -1178,8 +1178,8 @@ var Hr = function() {
|
|
|
1178
1178
|
var u = c.value;
|
|
1179
1179
|
u.remove(this);
|
|
1180
1180
|
}
|
|
1181
|
-
} catch (
|
|
1182
|
-
t = { error:
|
|
1181
|
+
} catch (f) {
|
|
1182
|
+
t = { error: f };
|
|
1183
1183
|
} finally {
|
|
1184
1184
|
try {
|
|
1185
1185
|
c && !c.done && (n = a.return) && n.call(a);
|
|
@@ -1193,23 +1193,23 @@ var Hr = function() {
|
|
|
1193
1193
|
if (Ke(d))
|
|
1194
1194
|
try {
|
|
1195
1195
|
d();
|
|
1196
|
-
} catch (
|
|
1197
|
-
s =
|
|
1196
|
+
} catch (f) {
|
|
1197
|
+
s = f instanceof uo ? f.errors : [f];
|
|
1198
1198
|
}
|
|
1199
|
-
var
|
|
1200
|
-
if (
|
|
1199
|
+
var h = this._finalizers;
|
|
1200
|
+
if (h) {
|
|
1201
1201
|
this._finalizers = null;
|
|
1202
1202
|
try {
|
|
1203
|
-
for (var p = Ao(
|
|
1203
|
+
for (var p = Ao(h), g = p.next(); !g.done; g = p.next()) {
|
|
1204
1204
|
var w = g.value;
|
|
1205
1205
|
try {
|
|
1206
1206
|
si(w);
|
|
1207
|
-
} catch (
|
|
1208
|
-
s = s ?? [],
|
|
1207
|
+
} catch (f) {
|
|
1208
|
+
s = s ?? [], f instanceof uo ? s = Rr(Rr([], Oo(s)), Oo(f.errors)) : s.push(f);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
} catch (
|
|
1212
|
-
r = { error:
|
|
1211
|
+
} catch (f) {
|
|
1212
|
+
r = { error: f };
|
|
1213
1213
|
} finally {
|
|
1214
1214
|
try {
|
|
1215
1215
|
g && !g.done && (o = p.return) && o.call(p);
|
|
@@ -1632,15 +1632,15 @@ let Md = { data: "" }, Fd = (e) => {
|
|
|
1632
1632
|
})(s));
|
|
1633
1633
|
if (!qe[i]) {
|
|
1634
1634
|
let c = s !== e ? e : ((u) => {
|
|
1635
|
-
let d,
|
|
1636
|
-
for (; d = Bd.exec(u.replace(Ud, "")); ) d[4] ? p.shift() : d[3] ? (
|
|
1635
|
+
let d, h, p = [{}];
|
|
1636
|
+
for (; d = Bd.exec(u.replace(Ud, "")); ) d[4] ? p.shift() : d[3] ? (h = d[3].replace(di, " ").trim(), p.unshift(p[0][h] = p[0][h] || {})) : p[0][d[1]] = d[2].replace(di, " ").trim();
|
|
1637
1637
|
return p[0];
|
|
1638
1638
|
})(e);
|
|
1639
1639
|
qe[i] = st(o ? { ["@keyframes " + i]: c } : c, n ? "" : "." + i);
|
|
1640
1640
|
}
|
|
1641
1641
|
let a = n && qe.g ? qe.g : null;
|
|
1642
|
-
return n && (qe.g = qe[i]), ((c, u, d,
|
|
1643
|
-
|
|
1642
|
+
return n && (qe.g = qe[i]), ((c, u, d, h) => {
|
|
1643
|
+
h ? u.data = u.data.replace(h, c) : u.data.indexOf(c) === -1 && (u.data = d ? c + u.data : u.data + c);
|
|
1644
1644
|
})(qe[i], t, r, a), i;
|
|
1645
1645
|
}, Hd = (e, t, n) => e.reduce((r, o, s) => {
|
|
1646
1646
|
let i = t[s];
|
|
@@ -1773,7 +1773,7 @@ var Jd = (e, t) => {
|
|
|
1773
1773
|
let r = ce(() => {
|
|
1774
1774
|
n && Ht({ type: 6, time: Date.now() });
|
|
1775
1775
|
}, [n]), o = ce((s, i) => {
|
|
1776
|
-
let { reverseOrder: a = !1, gutter: c = 8, defaultPosition: u } = i || {}, d = t.filter((g) => (g.position || u) === (s.position || u) && g.height),
|
|
1776
|
+
let { reverseOrder: a = !1, gutter: c = 8, defaultPosition: u } = i || {}, d = t.filter((g) => (g.position || u) === (s.position || u) && g.height), h = d.findIndex((g) => g.id === s.id), p = d.filter((g, w) => w < h && g.visible).length;
|
|
1777
1777
|
return d.filter((g) => g.visible).slice(...a ? [p + 1] : [0, p]).reduce((g, w) => g + (w.height || 0) + c, 0);
|
|
1778
1778
|
}, [t]);
|
|
1779
1779
|
return { toasts: t, handlers: { updateHeight: Jd, startPause: ef, endPause: r, calculateOffset: o } };
|
|
@@ -1981,7 +1981,7 @@ var _f = ({ id: e, className: t, style: n, onHeightUpdate: r, children: o }) =>
|
|
|
1981
1981
|
`, Xn = 16, Af = ({ reverseOrder: e, position: t = "top-center", toastOptions: n, gutter: r, children: o, containerStyle: s, containerClassName: i }) => {
|
|
1982
1982
|
let { toasts: a, handlers: c } = tf(n);
|
|
1983
1983
|
return m.createElement("div", { style: { position: "fixed", zIndex: 9999, top: Xn, left: Xn, right: Xn, bottom: Xn, pointerEvents: "none", ...s }, className: i, onMouseEnter: c.startPause, onMouseLeave: c.endPause }, a.map((u) => {
|
|
1984
|
-
let d = u.position || t,
|
|
1984
|
+
let d = u.position || t, h = c.calculateOffset(u, { reverseOrder: e, gutter: r, defaultPosition: t }), p = Rf(d, h);
|
|
1985
1985
|
return m.createElement(_f, { id: u.id, key: u.id, onHeightUpdate: c.updateHeight, className: u.visible ? Tf : "", style: p }, u.type === "custom" ? Tr(u.message, u) : o ? o(u) : m.createElement(Sf, { toast: u, position: d }));
|
|
1986
1986
|
}));
|
|
1987
1987
|
}, hi = xe;
|
|
@@ -2268,38 +2268,38 @@ function fo(e) {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
function Ja(e) {
|
|
2270
2270
|
let t = !1, n = 0, r = !1, o;
|
|
2271
|
-
const s = Bo(), i = (
|
|
2271
|
+
const s = Bo(), i = (f) => {
|
|
2272
2272
|
var y;
|
|
2273
|
-
r || (p(new Xa(
|
|
2273
|
+
r || (p(new Xa(f)), (y = e.abort) == null || y.call(e));
|
|
2274
2274
|
}, a = () => {
|
|
2275
2275
|
t = !0;
|
|
2276
2276
|
}, c = () => {
|
|
2277
2277
|
t = !1;
|
|
2278
|
-
}, u = () => ys.isFocused() && (e.networkMode === "always" || Pr.isOnline()) && e.canRun(), d = () => Za(e.networkMode) && e.canRun(),
|
|
2278
|
+
}, u = () => ys.isFocused() && (e.networkMode === "always" || Pr.isOnline()) && e.canRun(), d = () => Za(e.networkMode) && e.canRun(), h = (f) => {
|
|
2279
2279
|
var y;
|
|
2280
|
-
r || (r = !0, (y = e.onSuccess) == null || y.call(e,
|
|
2281
|
-
}, p = (
|
|
2280
|
+
r || (r = !0, (y = e.onSuccess) == null || y.call(e, f), o == null || o(), s.resolve(f));
|
|
2281
|
+
}, p = (f) => {
|
|
2282
2282
|
var y;
|
|
2283
|
-
r || (r = !0, (y = e.onError) == null || y.call(e,
|
|
2284
|
-
}, g = () => new Promise((
|
|
2283
|
+
r || (r = !0, (y = e.onError) == null || y.call(e, f), o == null || o(), s.reject(f));
|
|
2284
|
+
}, g = () => new Promise((f) => {
|
|
2285
2285
|
var y;
|
|
2286
2286
|
o = (C) => {
|
|
2287
|
-
(r || u()) &&
|
|
2287
|
+
(r || u()) && f(C);
|
|
2288
2288
|
}, (y = e.onPause) == null || y.call(e);
|
|
2289
2289
|
}).then(() => {
|
|
2290
|
-
var
|
|
2291
|
-
o = void 0, r || (
|
|
2290
|
+
var f;
|
|
2291
|
+
o = void 0, r || (f = e.onContinue) == null || f.call(e);
|
|
2292
2292
|
}), w = () => {
|
|
2293
2293
|
if (r)
|
|
2294
2294
|
return;
|
|
2295
|
-
let
|
|
2295
|
+
let f;
|
|
2296
2296
|
const y = n === 0 ? e.initialPromise : void 0;
|
|
2297
2297
|
try {
|
|
2298
|
-
|
|
2298
|
+
f = y ?? e.fn();
|
|
2299
2299
|
} catch (C) {
|
|
2300
|
-
|
|
2300
|
+
f = Promise.reject(C);
|
|
2301
2301
|
}
|
|
2302
|
-
Promise.resolve(
|
|
2302
|
+
Promise.resolve(f).then(h).catch((C) => {
|
|
2303
2303
|
var A;
|
|
2304
2304
|
if (r)
|
|
2305
2305
|
return;
|
|
@@ -2497,7 +2497,7 @@ var ie = $f(), jt, ma, ec = (ma = class {
|
|
|
2497
2497
|
this.state.isInvalidated || $(this, Re, ze).call(this, { type: "invalidate" });
|
|
2498
2498
|
}
|
|
2499
2499
|
fetch(t, n) {
|
|
2500
|
-
var u, d,
|
|
2500
|
+
var u, d, h;
|
|
2501
2501
|
if (this.state.fetchStatus !== "idle") {
|
|
2502
2502
|
if (this.state.data !== void 0 && (n != null && n.cancelRefetch))
|
|
2503
2503
|
this.cancel({ silent: !0 });
|
|
@@ -2518,12 +2518,12 @@ var ie = $f(), jt, ma, ec = (ma = class {
|
|
|
2518
2518
|
});
|
|
2519
2519
|
}, s = () => {
|
|
2520
2520
|
const p = Ka(this.options, n), w = (() => {
|
|
2521
|
-
const
|
|
2521
|
+
const f = {
|
|
2522
2522
|
client: b(this, Dt),
|
|
2523
2523
|
queryKey: this.queryKey,
|
|
2524
2524
|
meta: this.meta
|
|
2525
2525
|
};
|
|
2526
|
-
return o(
|
|
2526
|
+
return o(f), f;
|
|
2527
2527
|
})();
|
|
2528
2528
|
return O(this, Lt, !1), this.options.persister ? this.options.persister(
|
|
2529
2529
|
p,
|
|
@@ -2541,9 +2541,9 @@ var ie = $f(), jt, ma, ec = (ma = class {
|
|
|
2541
2541
|
};
|
|
2542
2542
|
return o(p), p;
|
|
2543
2543
|
})();
|
|
2544
|
-
(u = this.options.behavior) == null || u.onFetch(a, this), O(this, an, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((d = a.fetchOptions) == null ? void 0 : d.meta)) && $(this, Re, ze).call(this, { type: "fetch", meta: (
|
|
2544
|
+
(u = this.options.behavior) == null || u.onFetch(a, this), O(this, an, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((d = a.fetchOptions) == null ? void 0 : d.meta)) && $(this, Re, ze).call(this, { type: "fetch", meta: (h = a.fetchOptions) == null ? void 0 : h.meta });
|
|
2545
2545
|
const c = (p) => {
|
|
2546
|
-
var g, w,
|
|
2546
|
+
var g, w, f, y;
|
|
2547
2547
|
fo(p) && p.silent || $(this, Re, ze).call(this, {
|
|
2548
2548
|
type: "error",
|
|
2549
2549
|
error: p
|
|
@@ -2551,8 +2551,8 @@ var ie = $f(), jt, ma, ec = (ma = class {
|
|
|
2551
2551
|
g,
|
|
2552
2552
|
p,
|
|
2553
2553
|
this
|
|
2554
|
-
), (y = (
|
|
2555
|
-
|
|
2554
|
+
), (y = (f = b(this, _e).config).onSettled) == null || y.call(
|
|
2555
|
+
f,
|
|
2556
2556
|
this.state.data,
|
|
2557
2557
|
p,
|
|
2558
2558
|
this
|
|
@@ -2563,7 +2563,7 @@ var ie = $f(), jt, ma, ec = (ma = class {
|
|
|
2563
2563
|
fn: a.fetchFn,
|
|
2564
2564
|
abort: r.abort.bind(r),
|
|
2565
2565
|
onSuccess: (p) => {
|
|
2566
|
-
var g, w,
|
|
2566
|
+
var g, w, f, y;
|
|
2567
2567
|
if (p === void 0) {
|
|
2568
2568
|
console.error(
|
|
2569
2569
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
@@ -2576,8 +2576,8 @@ var ie = $f(), jt, ma, ec = (ma = class {
|
|
|
2576
2576
|
c(C);
|
|
2577
2577
|
return;
|
|
2578
2578
|
}
|
|
2579
|
-
(w = (g = b(this, _e).config).onSuccess) == null || w.call(g, p, this), (y = (
|
|
2580
|
-
|
|
2579
|
+
(w = (g = b(this, _e).config).onSuccess) == null || w.call(g, p, this), (y = (f = b(this, _e).config).onSettled) == null || y.call(
|
|
2580
|
+
f,
|
|
2581
2581
|
p,
|
|
2582
2582
|
this.state.error,
|
|
2583
2583
|
this
|
|
@@ -2807,7 +2807,7 @@ var Ne, ya, Bf = (ya = class extends bn {
|
|
|
2807
2807
|
this.execute(this.state.variables);
|
|
2808
2808
|
}
|
|
2809
2809
|
async execute(t) {
|
|
2810
|
-
var s, i, a, c, u, d,
|
|
2810
|
+
var s, i, a, c, u, d, h, p, g, w, f, y, C, x, S, E, _, A, T, k;
|
|
2811
2811
|
const n = () => {
|
|
2812
2812
|
$(this, ke, nt).call(this, { type: "continue" });
|
|
2813
2813
|
};
|
|
@@ -2850,14 +2850,14 @@ var Ne, ya, Bf = (ya = class extends bn {
|
|
|
2850
2850
|
t,
|
|
2851
2851
|
this.state.context,
|
|
2852
2852
|
this
|
|
2853
|
-
)), await ((p = (
|
|
2853
|
+
)), await ((p = (h = this.options).onSuccess) == null ? void 0 : p.call(h, N, t, this.state.context)), await ((w = (g = b(this, ue).config).onSettled) == null ? void 0 : w.call(
|
|
2854
2854
|
g,
|
|
2855
2855
|
N,
|
|
2856
2856
|
null,
|
|
2857
2857
|
this.state.variables,
|
|
2858
2858
|
this.state.context,
|
|
2859
2859
|
this
|
|
2860
|
-
)), await ((y = (
|
|
2860
|
+
)), await ((y = (f = this.options).onSettled) == null ? void 0 : y.call(f, N, null, t, this.state.context)), $(this, ke, nt).call(this, { type: "success", data: N }), N;
|
|
2861
2861
|
} catch (N) {
|
|
2862
2862
|
try {
|
|
2863
2863
|
throw await ((x = (C = b(this, ue).config).onError) == null ? void 0 : x.call(
|
|
@@ -3070,20 +3070,20 @@ function Jn(e) {
|
|
|
3070
3070
|
function vi(e) {
|
|
3071
3071
|
return {
|
|
3072
3072
|
onFetch: (t, n) => {
|
|
3073
|
-
var d,
|
|
3074
|
-
const r = t.options, o = (p = (
|
|
3073
|
+
var d, h, p, g, w;
|
|
3074
|
+
const r = t.options, o = (p = (h = (d = t.fetchOptions) == null ? void 0 : d.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : p.direction, s = ((g = t.state.data) == null ? void 0 : g.pages) || [], i = ((w = t.state.data) == null ? void 0 : w.pageParams) || [];
|
|
3075
3075
|
let a = { pages: [], pageParams: [] }, c = 0;
|
|
3076
3076
|
const u = async () => {
|
|
3077
|
-
let
|
|
3077
|
+
let f = !1;
|
|
3078
3078
|
const y = (S) => {
|
|
3079
3079
|
Object.defineProperty(S, "signal", {
|
|
3080
3080
|
enumerable: !0,
|
|
3081
|
-
get: () => (t.signal.aborted ?
|
|
3082
|
-
|
|
3081
|
+
get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
|
|
3082
|
+
f = !0;
|
|
3083
3083
|
}), t.signal)
|
|
3084
3084
|
});
|
|
3085
3085
|
}, C = Ka(t.options, t.fetchOptions), x = async (S, E, _) => {
|
|
3086
|
-
if (
|
|
3086
|
+
if (f)
|
|
3087
3087
|
return Promise.reject();
|
|
3088
3088
|
if (E == null && S.pages.length)
|
|
3089
3089
|
return Promise.resolve(S);
|
|
@@ -3120,9 +3120,9 @@ function vi(e) {
|
|
|
3120
3120
|
return a;
|
|
3121
3121
|
};
|
|
3122
3122
|
t.options.persister ? t.fetchFn = () => {
|
|
3123
|
-
var
|
|
3124
|
-
return (y = (
|
|
3125
|
-
|
|
3123
|
+
var f, y;
|
|
3124
|
+
return (y = (f = t.options).persister) == null ? void 0 : y.call(
|
|
3125
|
+
f,
|
|
3126
3126
|
u,
|
|
3127
3127
|
{
|
|
3128
3128
|
client: t.client,
|
|
@@ -3463,16 +3463,16 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, Vf = (wa = class {
|
|
|
3463
3463
|
createResult(t, n) {
|
|
3464
3464
|
var N;
|
|
3465
3465
|
const r = b(this, B), o = this.options, s = b(this, de), i = b(this, It), a = b(this, fn), u = t !== r ? t.state : b(this, $n), { state: d } = t;
|
|
3466
|
-
let
|
|
3466
|
+
let h = { ...d }, p = !1, g;
|
|
3467
3467
|
if (n._optimisticResults) {
|
|
3468
3468
|
const L = this.hasListeners(), V = !L && wi(t, n), Q = L && Ci(t, r, n, o);
|
|
3469
|
-
(V || Q) && (
|
|
3470
|
-
...
|
|
3469
|
+
(V || Q) && (h = {
|
|
3470
|
+
...h,
|
|
3471
3471
|
...tc(d.data, t.options)
|
|
3472
|
-
}), n._optimisticResults === "isRestoring" && (
|
|
3472
|
+
}), n._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
3473
3473
|
}
|
|
3474
|
-
let { error: w, errorUpdatedAt:
|
|
3475
|
-
g =
|
|
3474
|
+
let { error: w, errorUpdatedAt: f, status: y } = h;
|
|
3475
|
+
g = h.data;
|
|
3476
3476
|
let C = !1;
|
|
3477
3477
|
if (n.placeholderData !== void 0 && g === void 0 && y === "pending") {
|
|
3478
3478
|
let L;
|
|
@@ -3494,28 +3494,28 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, Vf = (wa = class {
|
|
|
3494
3494
|
} catch (L) {
|
|
3495
3495
|
O(this, ft, L);
|
|
3496
3496
|
}
|
|
3497
|
-
b(this, ft) && (w = b(this, ft), g = b(this, hn),
|
|
3498
|
-
const x =
|
|
3497
|
+
b(this, ft) && (w = b(this, ft), g = b(this, hn), f = Date.now(), y = "error");
|
|
3498
|
+
const x = h.fetchStatus === "fetching", S = y === "pending", E = y === "error", _ = S && x, A = g !== void 0, k = {
|
|
3499
3499
|
status: y,
|
|
3500
|
-
fetchStatus:
|
|
3500
|
+
fetchStatus: h.fetchStatus,
|
|
3501
3501
|
isPending: S,
|
|
3502
3502
|
isSuccess: y === "success",
|
|
3503
3503
|
isError: E,
|
|
3504
3504
|
isInitialLoading: _,
|
|
3505
3505
|
isLoading: _,
|
|
3506
3506
|
data: g,
|
|
3507
|
-
dataUpdatedAt:
|
|
3507
|
+
dataUpdatedAt: h.dataUpdatedAt,
|
|
3508
3508
|
error: w,
|
|
3509
|
-
errorUpdatedAt:
|
|
3510
|
-
failureCount:
|
|
3511
|
-
failureReason:
|
|
3512
|
-
errorUpdateCount:
|
|
3513
|
-
isFetched:
|
|
3514
|
-
isFetchedAfterMount:
|
|
3509
|
+
errorUpdatedAt: f,
|
|
3510
|
+
failureCount: h.fetchFailureCount,
|
|
3511
|
+
failureReason: h.fetchFailureReason,
|
|
3512
|
+
errorUpdateCount: h.errorUpdateCount,
|
|
3513
|
+
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
3514
|
+
isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
|
|
3515
3515
|
isFetching: x,
|
|
3516
3516
|
isRefetching: x && !S,
|
|
3517
3517
|
isLoadingError: E && !A,
|
|
3518
|
-
isPaused:
|
|
3518
|
+
isPaused: h.fetchStatus === "paused",
|
|
3519
3519
|
isPlaceholderData: p,
|
|
3520
3520
|
isRefetchError: E && A,
|
|
3521
3521
|
isStale: vs(t, n),
|
|
@@ -3692,17 +3692,17 @@ var pt, mt, ye, Qe, Ye, br, Ko, xa, Qf = (xa = class extends bn {
|
|
|
3692
3692
|
ie.batch(() => {
|
|
3693
3693
|
var r, o, s, i, a, c, u, d;
|
|
3694
3694
|
if (b(this, Qe) && this.hasListeners()) {
|
|
3695
|
-
const
|
|
3696
|
-
(n == null ? void 0 : n.type) === "success" ? ((o = (r = b(this, Qe)).onSuccess) == null || o.call(r, n.data,
|
|
3695
|
+
const h = b(this, mt).variables, p = b(this, mt).context;
|
|
3696
|
+
(n == null ? void 0 : n.type) === "success" ? ((o = (r = b(this, Qe)).onSuccess) == null || o.call(r, n.data, h, p), (i = (s = b(this, Qe)).onSettled) == null || i.call(s, n.data, null, h, p)) : (n == null ? void 0 : n.type) === "error" && ((c = (a = b(this, Qe)).onError) == null || c.call(a, n.error, h, p), (d = (u = b(this, Qe)).onSettled) == null || d.call(
|
|
3697
3697
|
u,
|
|
3698
3698
|
void 0,
|
|
3699
3699
|
n.error,
|
|
3700
|
-
|
|
3700
|
+
h,
|
|
3701
3701
|
p
|
|
3702
3702
|
));
|
|
3703
3703
|
}
|
|
3704
|
-
this.listeners.forEach((
|
|
3705
|
-
|
|
3704
|
+
this.listeners.forEach((h) => {
|
|
3705
|
+
h(b(this, mt));
|
|
3706
3706
|
});
|
|
3707
3707
|
});
|
|
3708
3708
|
}, xa), oc = m.createContext(
|
|
@@ -3752,14 +3752,14 @@ var Xf = m.createContext(Zf()), Jf = () => m.useContext(Xf), eh = (e, t) => {
|
|
|
3752
3752
|
n.clearReset();
|
|
3753
3753
|
});
|
|
3754
3754
|
function ih(e, t, n) {
|
|
3755
|
-
var
|
|
3755
|
+
var h, p, g, w, f;
|
|
3756
3756
|
if (typeof e != "object" || Array.isArray(e))
|
|
3757
3757
|
throw new Error(
|
|
3758
3758
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
3759
3759
|
);
|
|
3760
3760
|
const r = Yf(), o = Jf(), s = bs(), i = s.defaultQueryOptions(e);
|
|
3761
|
-
(p = (
|
|
3762
|
-
|
|
3761
|
+
(p = (h = s.getDefaultOptions().queries) == null ? void 0 : h._experimental_beforeQuery) == null || p.call(
|
|
3762
|
+
h,
|
|
3763
3763
|
i
|
|
3764
3764
|
), i.queryFn || console.error(
|
|
3765
3765
|
`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
@@ -3802,7 +3802,7 @@ function ih(e, t, n) {
|
|
|
3802
3802
|
xi(i, c, o)
|
|
3803
3803
|
) : (
|
|
3804
3804
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
3805
|
-
(
|
|
3805
|
+
(f = s.getQueryCache().get(i.queryHash)) == null ? void 0 : f.promise
|
|
3806
3806
|
);
|
|
3807
3807
|
y == null || y.catch(fe).finally(() => {
|
|
3808
3808
|
c.updateResult();
|
|
@@ -3858,7 +3858,7 @@ const tr = {
|
|
|
3858
3858
|
enable: !0
|
|
3859
3859
|
// Default to enabled, can be overridden in individual queries
|
|
3860
3860
|
}, nr = (e) => e instanceof Error ? e.message : String(e), ah = (e, t, n) => {
|
|
3861
|
-
const r = bs(), { notify: o } = Ga(), { createFn: s, readFn: i, readByIdFn: a, updateFn: c, deleteFn: u, partialUpdateFn: d } = n,
|
|
3861
|
+
const r = bs(), { notify: o } = Ga(), { createFn: s, readFn: i, readByIdFn: a, updateFn: c, deleteFn: u, partialUpdateFn: d } = n, h = () => {
|
|
3862
3862
|
r.invalidateQueries({ queryKey: [e] });
|
|
3863
3863
|
}, p = (E, _, A, T) => o(
|
|
3864
3864
|
T != null && T.overrideSuccessMessage ? T == null ? void 0 : T.overrideSuccessMessage(E, _) : A,
|
|
@@ -3871,7 +3871,7 @@ const tr = {
|
|
|
3871
3871
|
useCreate: (E) => er({
|
|
3872
3872
|
mutationFn: (_) => s(_),
|
|
3873
3873
|
onSuccess: (_) => {
|
|
3874
|
-
|
|
3874
|
+
h(), p(t, _, `${t} created successfully`, E);
|
|
3875
3875
|
},
|
|
3876
3876
|
onError: (_) => {
|
|
3877
3877
|
g(t, _, `Error creating ${t}: ${nr(_)}`, E);
|
|
@@ -3894,7 +3894,7 @@ const tr = {
|
|
|
3894
3894
|
useUpdate: (E) => er({
|
|
3895
3895
|
mutationFn: ({ id: _, data: A }) => c(_, A),
|
|
3896
3896
|
onSuccess: (_) => {
|
|
3897
|
-
|
|
3897
|
+
h(), p(t, _, `${t} updated successfully`, E);
|
|
3898
3898
|
},
|
|
3899
3899
|
onError: (_) => {
|
|
3900
3900
|
g(t, _, `Error updating ${t}: ${nr(_)}`, E);
|
|
@@ -3903,7 +3903,7 @@ const tr = {
|
|
|
3903
3903
|
usePartialUpdate: (E) => d && er({
|
|
3904
3904
|
mutationFn: ({ id: _, data: A }) => d(_, A),
|
|
3905
3905
|
onSuccess: (_) => {
|
|
3906
|
-
|
|
3906
|
+
h(), p(t, _, `${t} updated successfully`, E);
|
|
3907
3907
|
},
|
|
3908
3908
|
onError: (_) => {
|
|
3909
3909
|
g(t, _, `Error updating ${t}: ${nr(_)}`, E);
|
|
@@ -3912,13 +3912,13 @@ const tr = {
|
|
|
3912
3912
|
useDelete: (E) => er({
|
|
3913
3913
|
mutationFn: (_) => u(_),
|
|
3914
3914
|
onSuccess: () => {
|
|
3915
|
-
|
|
3915
|
+
h(), p(t, null, `${t} deleted successfully`, E);
|
|
3916
3916
|
},
|
|
3917
3917
|
onError: (_) => {
|
|
3918
3918
|
g(t, _, `Error deleting ${t}: ${nr(_)}`, E);
|
|
3919
3919
|
}
|
|
3920
3920
|
}),
|
|
3921
|
-
invalidateQueries:
|
|
3921
|
+
invalidateQueries: h
|
|
3922
3922
|
};
|
|
3923
3923
|
}, g2 = (e, t) => ah(e, t, {
|
|
3924
3924
|
createFn: (n) => fetch(e, {
|
|
@@ -4174,7 +4174,7 @@ const v2 = (e) => {
|
|
|
4174
4174
|
throw new Error(
|
|
4175
4175
|
"You must call the useUserState hook within a PAE application."
|
|
4176
4176
|
);
|
|
4177
|
-
const [r, o] = Y(null), [s, i] = Y(!1), [a, c] = Y(!1), [u, d] = Y(null),
|
|
4177
|
+
const [r, o] = Y(null), [s, i] = Y(!1), [a, c] = Y(!1), [u, d] = Y(null), h = (x, S) => ce(
|
|
4178
4178
|
async ({
|
|
4179
4179
|
newValue: E,
|
|
4180
4180
|
shouldThrowError: _
|
|
@@ -4191,7 +4191,7 @@ const v2 = (e) => {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
},
|
|
4193
4193
|
[t, n, e]
|
|
4194
|
-
), p =
|
|
4194
|
+
), p = h(sr.get, "fetch"), g = h(sr.create, "create"), w = h(sr.update, "update"), f = h(sr.delete, "delete"), y = ce(async () => {
|
|
4195
4195
|
try {
|
|
4196
4196
|
await p();
|
|
4197
4197
|
} finally {
|
|
@@ -4213,7 +4213,7 @@ const v2 = (e) => {
|
|
|
4213
4213
|
setValue: C,
|
|
4214
4214
|
createValue: g,
|
|
4215
4215
|
updateValue: w,
|
|
4216
|
-
deleteValue:
|
|
4216
|
+
deleteValue: f
|
|
4217
4217
|
};
|
|
4218
4218
|
}, ic = "__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__", b2 = ({ module: e, point: t, children: n }) => (yd(e, t, n ?? ic), null), Ch = ({ name: e, children: t, ...n }) => {
|
|
4219
4219
|
const r = gd(e);
|
|
@@ -4568,7 +4568,7 @@ var ji = {
|
|
|
4568
4568
|
purple: 300
|
|
4569
4569
|
};
|
|
4570
4570
|
function Xh(e) {
|
|
4571
|
-
var d,
|
|
4571
|
+
var d, h;
|
|
4572
4572
|
var t, n = [], r = 1, o;
|
|
4573
4573
|
if (typeof e == "number")
|
|
4574
4574
|
return { space: "rgb", values: [e >>> 16, (e & 65280) >>> 8, e & 255], alpha: 1 };
|
|
@@ -4606,7 +4606,7 @@ function Xh(e) {
|
|
|
4606
4606
|
}), r = n.length > u ? n.pop() : 1;
|
|
4607
4607
|
} else /[0-9](?:\s|\/|,)/.test(e) && (n = e.match(/([0-9]+)/g).map(function(p) {
|
|
4608
4608
|
return parseFloat(p);
|
|
4609
|
-
}), o = ((
|
|
4609
|
+
}), o = ((h = (d = e.match(/([a-z])/ig)) == null ? void 0 : d.join("")) == null ? void 0 : h.toLowerCase()) || "rgb");
|
|
4610
4610
|
return {
|
|
4611
4611
|
space: o,
|
|
4612
4612
|
values: n,
|
|
@@ -4969,10 +4969,10 @@ const kp = 300, $p = {
|
|
|
4969
4969
|
const u = a.toLowerCase().indexOf(c.toLowerCase());
|
|
4970
4970
|
if (u === -1 || c.length === 0)
|
|
4971
4971
|
return a;
|
|
4972
|
-
const d = a.slice(0, u),
|
|
4972
|
+
const d = a.slice(0, u), h = a.slice(u, u + c.length), p = a.slice(u + c.length);
|
|
4973
4973
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
4974
4974
|
d,
|
|
4975
|
-
/* @__PURE__ */ l.jsx("span", { className: Mt.AutocompleteHighlighter__match, children:
|
|
4975
|
+
/* @__PURE__ */ l.jsx("span", { className: Mt.AutocompleteHighlighter__match, children: h }),
|
|
4976
4976
|
i(p, c)
|
|
4977
4977
|
] });
|
|
4978
4978
|
};
|
|
@@ -4992,18 +4992,18 @@ const Fp = 5, Bp = W(({
|
|
|
4992
4992
|
}, u) => {
|
|
4993
4993
|
const {
|
|
4994
4994
|
query: d,
|
|
4995
|
-
setQuery:
|
|
4995
|
+
setQuery: h,
|
|
4996
4996
|
suggestions: p,
|
|
4997
4997
|
loading: g
|
|
4998
4998
|
} = Mp({
|
|
4999
4999
|
suggestionFetcher: i,
|
|
5000
5000
|
canAdd: n
|
|
5001
|
-
}), [w,
|
|
5002
|
-
|
|
5001
|
+
}), [w, f] = Y(null), y = d.length > 0, C = (T) => {
|
|
5002
|
+
h(T.target.value);
|
|
5003
5003
|
}, x = (T) => {
|
|
5004
|
-
a == null || a(T), s ? (
|
|
5004
|
+
a == null || a(T), s ? (f(T), h(T.value)) : h("");
|
|
5005
5005
|
}, S = () => {
|
|
5006
|
-
a == null || a(null),
|
|
5006
|
+
a == null || a(null), f(null), h("");
|
|
5007
5007
|
}, E = j(Mt.SearchAutocomplete, t), _ = p.slice(0, r), A = p.slice(r);
|
|
5008
5008
|
return /* @__PURE__ */ l.jsxs("div", { ref: u, className: E, ...c, children: [
|
|
5009
5009
|
/* @__PURE__ */ l.jsx(gc, { ...o, value: d, onChange: C, showClearButton: !!w, onClear: S }),
|
|
@@ -5070,7 +5070,7 @@ function Hp(e) {
|
|
|
5070
5070
|
vc(s) && typeof jr == "function" && (s = jr(s._payload));
|
|
5071
5071
|
const a = m.Children.toArray(s), c = a.find(Gp);
|
|
5072
5072
|
if (c) {
|
|
5073
|
-
const u = c.props.children, d = a.map((
|
|
5073
|
+
const u = c.props.children, d = a.map((h) => h === c ? m.Children.count(u) > 1 ? m.Children.only(null) : m.isValidElement(u) ? u.props.children : null : h);
|
|
5074
5074
|
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: m.isValidElement(u) ? m.cloneElement(u, void 0, d) : null });
|
|
5075
5075
|
}
|
|
5076
5076
|
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: s });
|
|
@@ -5162,18 +5162,18 @@ function Es(e, t = []) {
|
|
|
5162
5162
|
function r(s, i) {
|
|
5163
5163
|
const a = m.createContext(i), c = n.length;
|
|
5164
5164
|
n = [...n, i];
|
|
5165
|
-
const u = (
|
|
5165
|
+
const u = (h) => {
|
|
5166
5166
|
var C;
|
|
5167
|
-
const { scope: p, children: g, ...w } =
|
|
5168
|
-
return /* @__PURE__ */ l.jsx(
|
|
5167
|
+
const { scope: p, children: g, ...w } = h, f = ((C = p == null ? void 0 : p[e]) == null ? void 0 : C[c]) || a, y = m.useMemo(() => w, Object.values(w));
|
|
5168
|
+
return /* @__PURE__ */ l.jsx(f.Provider, { value: y, children: g });
|
|
5169
5169
|
};
|
|
5170
5170
|
u.displayName = s + "Provider";
|
|
5171
|
-
function d(
|
|
5172
|
-
var
|
|
5173
|
-
const g = ((
|
|
5171
|
+
function d(h, p) {
|
|
5172
|
+
var f;
|
|
5173
|
+
const g = ((f = p == null ? void 0 : p[e]) == null ? void 0 : f[c]) || a, w = m.useContext(g);
|
|
5174
5174
|
if (w) return w;
|
|
5175
5175
|
if (i !== void 0) return i;
|
|
5176
|
-
throw new Error(`\`${
|
|
5176
|
+
throw new Error(`\`${h}\` must be used within \`${s}\``);
|
|
5177
5177
|
}
|
|
5178
5178
|
return [u, d];
|
|
5179
5179
|
}
|
|
@@ -5199,8 +5199,8 @@ function e1(...e) {
|
|
|
5199
5199
|
}));
|
|
5200
5200
|
return function(s) {
|
|
5201
5201
|
const i = r.reduce((a, { useScope: c, scopeName: u }) => {
|
|
5202
|
-
const
|
|
5203
|
-
return { ...a, ...
|
|
5202
|
+
const h = c(s)[`__scope${u}`];
|
|
5203
|
+
return { ...a, ...h };
|
|
5204
5204
|
}, {});
|
|
5205
5205
|
return m.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
5206
5206
|
};
|
|
@@ -5212,7 +5212,7 @@ function t1(e) {
|
|
|
5212
5212
|
const t = /* @__PURE__ */ n1(e), n = m.forwardRef((r, o) => {
|
|
5213
5213
|
const { children: s, ...i } = r, a = m.Children.toArray(s), c = a.find(o1);
|
|
5214
5214
|
if (c) {
|
|
5215
|
-
const u = c.props.children, d = a.map((
|
|
5215
|
+
const u = c.props.children, d = a.map((h) => h === c ? m.Children.count(u) > 1 ? m.Children.only(null) : m.isValidElement(u) ? u.props.children : null : h);
|
|
5216
5216
|
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: m.isValidElement(u) ? m.cloneElement(u, void 0, d) : null });
|
|
5217
5217
|
}
|
|
5218
5218
|
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: s });
|
|
@@ -5311,7 +5311,7 @@ var u1 = "DismissableLayer", es = "dismissableLayer.update", d1 = "dismissableLa
|
|
|
5311
5311
|
onInteractOutside: i,
|
|
5312
5312
|
onDismiss: a,
|
|
5313
5313
|
...c
|
|
5314
|
-
} = e, u = m.useContext(wc), [d,
|
|
5314
|
+
} = e, u = m.useContext(wc), [d, h] = m.useState(null), p = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = m.useState({}), w = De(t, (T) => h(T)), f = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), C = f.indexOf(y), x = d ? f.indexOf(d) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, E = x >= C, _ = m1((T) => {
|
|
5315
5315
|
const k = T.target, N = [...u.branches].some((L) => L.contains(k));
|
|
5316
5316
|
!E || N || (o == null || o(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
5317
5317
|
}, p), A = g1((T) => {
|
|
@@ -5533,7 +5533,7 @@ function Bi(e, t, n) {
|
|
|
5533
5533
|
reference: r,
|
|
5534
5534
|
floating: o
|
|
5535
5535
|
} = e;
|
|
5536
|
-
const s = Fe(t), i = Ts(t), a = Rs(i), c = Je(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2,
|
|
5536
|
+
const s = Fe(t), i = Ts(t), a = Rs(i), c = Je(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, h = r.y + r.height / 2 - o.height / 2, p = r[a] / 2 - o[a] / 2;
|
|
5537
5537
|
let g;
|
|
5538
5538
|
switch (c) {
|
|
5539
5539
|
case "top":
|
|
@@ -5551,13 +5551,13 @@ function Bi(e, t, n) {
|
|
|
5551
5551
|
case "right":
|
|
5552
5552
|
g = {
|
|
5553
5553
|
x: r.x + r.width,
|
|
5554
|
-
y:
|
|
5554
|
+
y: h
|
|
5555
5555
|
};
|
|
5556
5556
|
break;
|
|
5557
5557
|
case "left":
|
|
5558
5558
|
g = {
|
|
5559
5559
|
x: r.x - o.width,
|
|
5560
|
-
y:
|
|
5560
|
+
y: h
|
|
5561
5561
|
};
|
|
5562
5562
|
break;
|
|
5563
5563
|
default:
|
|
@@ -5589,15 +5589,15 @@ async function P1(e, t) {
|
|
|
5589
5589
|
} = e, {
|
|
5590
5590
|
boundary: u = "clippingAncestors",
|
|
5591
5591
|
rootBoundary: d = "viewport",
|
|
5592
|
-
elementContext:
|
|
5592
|
+
elementContext: h = "floating",
|
|
5593
5593
|
altBoundary: p = !1,
|
|
5594
5594
|
padding: g = 0
|
|
5595
|
-
} = Xe(t, e), w = xc(g), y = a[p ?
|
|
5595
|
+
} = Xe(t, e), w = xc(g), y = a[p ? h === "floating" ? "reference" : "floating" : h], C = Nr(await s.getClippingRect({
|
|
5596
5596
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(y))) == null || n ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
5597
5597
|
boundary: u,
|
|
5598
5598
|
rootBoundary: d,
|
|
5599
5599
|
strategy: c
|
|
5600
|
-
})), x =
|
|
5600
|
+
})), x = h === "floating" ? {
|
|
5601
5601
|
x: r,
|
|
5602
5602
|
y: o,
|
|
5603
5603
|
width: i.floating.width,
|
|
@@ -5634,10 +5634,10 @@ const j1 = async (e, t, n) => {
|
|
|
5634
5634
|
strategy: o
|
|
5635
5635
|
}), {
|
|
5636
5636
|
x: d,
|
|
5637
|
-
y:
|
|
5637
|
+
y: h
|
|
5638
5638
|
} = Bi(u, r, c), p = r, g = {}, w = 0;
|
|
5639
5639
|
for (let y = 0; y < a.length; y++) {
|
|
5640
|
-
var
|
|
5640
|
+
var f;
|
|
5641
5641
|
const {
|
|
5642
5642
|
name: C,
|
|
5643
5643
|
fn: x
|
|
@@ -5648,7 +5648,7 @@ const j1 = async (e, t, n) => {
|
|
|
5648
5648
|
reset: A
|
|
5649
5649
|
} = await x({
|
|
5650
5650
|
x: d,
|
|
5651
|
-
y:
|
|
5651
|
+
y: h,
|
|
5652
5652
|
initialPlacement: r,
|
|
5653
5653
|
placement: p,
|
|
5654
5654
|
strategy: o,
|
|
@@ -5656,14 +5656,14 @@ const j1 = async (e, t, n) => {
|
|
|
5656
5656
|
rects: u,
|
|
5657
5657
|
platform: {
|
|
5658
5658
|
...i,
|
|
5659
|
-
detectOverflow: (
|
|
5659
|
+
detectOverflow: (f = i.detectOverflow) != null ? f : P1
|
|
5660
5660
|
},
|
|
5661
5661
|
elements: {
|
|
5662
5662
|
reference: e,
|
|
5663
5663
|
floating: t
|
|
5664
5664
|
}
|
|
5665
5665
|
});
|
|
5666
|
-
d = S ?? d,
|
|
5666
|
+
d = S ?? d, h = E ?? h, g = {
|
|
5667
5667
|
...g,
|
|
5668
5668
|
[C]: {
|
|
5669
5669
|
...g[C],
|
|
@@ -5675,12 +5675,12 @@ const j1 = async (e, t, n) => {
|
|
|
5675
5675
|
strategy: o
|
|
5676
5676
|
}) : A.rects), {
|
|
5677
5677
|
x: d,
|
|
5678
|
-
y:
|
|
5678
|
+
y: h
|
|
5679
5679
|
} = Bi(u, p, c)), y = -1);
|
|
5680
5680
|
}
|
|
5681
5681
|
return {
|
|
5682
5682
|
x: d,
|
|
5683
|
-
y:
|
|
5683
|
+
y: h,
|
|
5684
5684
|
placement: p,
|
|
5685
5685
|
strategy: o,
|
|
5686
5686
|
middlewareData: g
|
|
@@ -5703,13 +5703,13 @@ const j1 = async (e, t, n) => {
|
|
|
5703
5703
|
} = Xe(e, t) || {};
|
|
5704
5704
|
if (u == null)
|
|
5705
5705
|
return {};
|
|
5706
|
-
const
|
|
5706
|
+
const h = xc(d), p = {
|
|
5707
5707
|
x: n,
|
|
5708
5708
|
y: r
|
|
5709
|
-
}, g = Ts(o), w = Rs(g),
|
|
5709
|
+
}, g = Ts(o), w = Rs(g), f = await i.getDimensions(u), y = g === "y", C = y ? "top" : "left", x = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", E = s.reference[w] + s.reference[g] - p[g] - s.floating[w], _ = p[g] - s.reference[g], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
5710
5710
|
let T = A ? A[S] : 0;
|
|
5711
5711
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(A))) && (T = a.floating[S] || s.floating[w]);
|
|
5712
|
-
const k = E / 2 - _ / 2, N = T / 2 -
|
|
5712
|
+
const k = E / 2 - _ / 2, N = T / 2 - f[w] / 2 - 1, L = bt(h[C], N), V = bt(h[x], N), Q = L, H = T - f[w] - V, G = T / 2 - f[w] / 2 + k, oe = ts(Q, G, H), X = !c.arrow && wn(o) != null && G !== oe && s.reference[w] / 2 - (G < Q ? L : V) - f[w] / 2 < 0, J = X ? G < Q ? G - Q : G - H : 0;
|
|
5713
5713
|
return {
|
|
5714
5714
|
[g]: p[g] + J,
|
|
5715
5715
|
data: {
|
|
@@ -5737,20 +5737,20 @@ const j1 = async (e, t, n) => {
|
|
|
5737
5737
|
elements: u
|
|
5738
5738
|
} = t, {
|
|
5739
5739
|
mainAxis: d = !0,
|
|
5740
|
-
crossAxis:
|
|
5740
|
+
crossAxis: h = !0,
|
|
5741
5741
|
fallbackPlacements: p,
|
|
5742
5742
|
fallbackStrategy: g = "bestFit",
|
|
5743
5743
|
fallbackAxisSideDirection: w = "none",
|
|
5744
|
-
flipAlignment:
|
|
5744
|
+
flipAlignment: f = !0,
|
|
5745
5745
|
...y
|
|
5746
5746
|
} = Xe(e, t);
|
|
5747
5747
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
5748
5748
|
return {};
|
|
5749
|
-
const C = Je(o), x = Fe(a), S = Je(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), _ = p || (S || !
|
|
5750
|
-
!p && A && _.push(...A1(a,
|
|
5749
|
+
const C = Je(o), x = Fe(a), S = Je(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), _ = p || (S || !f ? [Lr(a)] : S1(a)), A = w !== "none";
|
|
5750
|
+
!p && A && _.push(...A1(a, f, w, E));
|
|
5751
5751
|
const T = [a, ..._], k = await c.detectOverflow(t, y), N = [];
|
|
5752
5752
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
5753
|
-
if (d && N.push(k[C]),
|
|
5753
|
+
if (d && N.push(k[C]), h) {
|
|
5754
5754
|
const G = E1(o, i, E);
|
|
5755
5755
|
N.push(k[G[0]], k[G[1]]);
|
|
5756
5756
|
}
|
|
@@ -5760,7 +5760,7 @@ const j1 = async (e, t, n) => {
|
|
|
5760
5760
|
}], !N.every((G) => G <= 0)) {
|
|
5761
5761
|
var V, Q;
|
|
5762
5762
|
const G = (((V = s.flip) == null ? void 0 : V.index) || 0) + 1, oe = T[G];
|
|
5763
|
-
if (oe && (!(
|
|
5763
|
+
if (oe && (!(h === "alignment" ? x !== Fe(oe) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5764
5764
|
// overflows the main axis.
|
|
5765
5765
|
L.every((M) => Fe(M.placement) === x ? M.overflows[0] > 0 : !0)))
|
|
5766
5766
|
return {
|
|
@@ -5863,19 +5863,19 @@ async function I1(e, t) {
|
|
|
5863
5863
|
placement: n,
|
|
5864
5864
|
platform: r,
|
|
5865
5865
|
elements: o
|
|
5866
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Je(n), a = wn(n), c = Fe(n) === "y", u = Ec.has(i) ? -1 : 1, d = s && c ? -1 : 1,
|
|
5866
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Je(n), a = wn(n), c = Fe(n) === "y", u = Ec.has(i) ? -1 : 1, d = s && c ? -1 : 1, h = Xe(t, e);
|
|
5867
5867
|
let {
|
|
5868
5868
|
mainAxis: p,
|
|
5869
5869
|
crossAxis: g,
|
|
5870
5870
|
alignmentAxis: w
|
|
5871
|
-
} = typeof
|
|
5872
|
-
mainAxis:
|
|
5871
|
+
} = typeof h == "number" ? {
|
|
5872
|
+
mainAxis: h,
|
|
5873
5873
|
crossAxis: 0,
|
|
5874
5874
|
alignmentAxis: null
|
|
5875
5875
|
} : {
|
|
5876
|
-
mainAxis:
|
|
5877
|
-
crossAxis:
|
|
5878
|
-
alignmentAxis:
|
|
5876
|
+
mainAxis: h.mainAxis || 0,
|
|
5877
|
+
crossAxis: h.crossAxis || 0,
|
|
5878
|
+
alignmentAxis: h.alignmentAxis
|
|
5879
5879
|
};
|
|
5880
5880
|
return a && typeof w == "number" && (g = a === "end" ? w * -1 : w), c ? {
|
|
5881
5881
|
x: g * d,
|
|
@@ -5936,20 +5936,20 @@ const k1 = function(e) {
|
|
|
5936
5936
|
} = Xe(e, t), d = {
|
|
5937
5937
|
x: n,
|
|
5938
5938
|
y: r
|
|
5939
|
-
},
|
|
5940
|
-
let w = d[g],
|
|
5939
|
+
}, h = await s.detectOverflow(t, u), p = Fe(Je(o)), g = _s(p);
|
|
5940
|
+
let w = d[g], f = d[p];
|
|
5941
5941
|
if (i) {
|
|
5942
|
-
const C = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", S = w +
|
|
5942
|
+
const C = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", S = w + h[C], E = w - h[x];
|
|
5943
5943
|
w = ts(S, w, E);
|
|
5944
5944
|
}
|
|
5945
5945
|
if (a) {
|
|
5946
|
-
const C = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", S =
|
|
5947
|
-
|
|
5946
|
+
const C = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", S = f + h[C], E = f - h[x];
|
|
5947
|
+
f = ts(S, f, E);
|
|
5948
5948
|
}
|
|
5949
5949
|
const y = c.fn({
|
|
5950
5950
|
...t,
|
|
5951
5951
|
[g]: w,
|
|
5952
|
-
[p]:
|
|
5952
|
+
[p]: f
|
|
5953
5953
|
});
|
|
5954
5954
|
return {
|
|
5955
5955
|
...y,
|
|
@@ -5981,15 +5981,15 @@ const k1 = function(e) {
|
|
|
5981
5981
|
} = Xe(e, t), d = {
|
|
5982
5982
|
x: n,
|
|
5983
5983
|
y: r
|
|
5984
|
-
},
|
|
5985
|
-
let g = d[p], w = d[
|
|
5986
|
-
const
|
|
5987
|
-
mainAxis:
|
|
5984
|
+
}, h = Fe(o), p = _s(h);
|
|
5985
|
+
let g = d[p], w = d[h];
|
|
5986
|
+
const f = Xe(a, t), y = typeof f == "number" ? {
|
|
5987
|
+
mainAxis: f,
|
|
5988
5988
|
crossAxis: 0
|
|
5989
5989
|
} : {
|
|
5990
5990
|
mainAxis: 0,
|
|
5991
5991
|
crossAxis: 0,
|
|
5992
|
-
...
|
|
5992
|
+
...f
|
|
5993
5993
|
};
|
|
5994
5994
|
if (c) {
|
|
5995
5995
|
const S = p === "y" ? "height" : "width", E = s.reference[p] - s.floating[S] + y.mainAxis, _ = s.reference[p] + s.reference[S] - y.mainAxis;
|
|
@@ -5997,12 +5997,12 @@ const k1 = function(e) {
|
|
|
5997
5997
|
}
|
|
5998
5998
|
if (u) {
|
|
5999
5999
|
var C, x;
|
|
6000
|
-
const S = p === "y" ? "width" : "height", E = Ec.has(Je(o)), _ = s.reference[
|
|
6000
|
+
const S = p === "y" ? "width" : "height", E = Ec.has(Je(o)), _ = s.reference[h] - s.floating[S] + (E && ((C = i.offset) == null ? void 0 : C[h]) || 0) + (E ? 0 : y.crossAxis), A = s.reference[h] + s.reference[S] + (E ? 0 : ((x = i.offset) == null ? void 0 : x[h]) || 0) - (E ? y.crossAxis : 0);
|
|
6001
6001
|
w < _ ? w = _ : w > A && (w = A);
|
|
6002
6002
|
}
|
|
6003
6003
|
return {
|
|
6004
6004
|
[p]: g,
|
|
6005
|
-
[
|
|
6005
|
+
[h]: w
|
|
6006
6006
|
};
|
|
6007
6007
|
}
|
|
6008
6008
|
};
|
|
@@ -6021,17 +6021,17 @@ const k1 = function(e) {
|
|
|
6021
6021
|
apply: c = () => {
|
|
6022
6022
|
},
|
|
6023
6023
|
...u
|
|
6024
|
-
} = Xe(e, t), d = await i.detectOverflow(t, u),
|
|
6024
|
+
} = Xe(e, t), d = await i.detectOverflow(t, u), h = Je(o), p = wn(o), g = Fe(o) === "y", {
|
|
6025
6025
|
width: w,
|
|
6026
|
-
height:
|
|
6026
|
+
height: f
|
|
6027
6027
|
} = s.floating;
|
|
6028
6028
|
let y, C;
|
|
6029
|
-
|
|
6030
|
-
const x =
|
|
6029
|
+
h === "top" || h === "bottom" ? (y = h, C = p === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (C = h, y = p === "end" ? "top" : "bottom");
|
|
6030
|
+
const x = f - d.top - d.bottom, S = w - d.left - d.right, E = bt(f - d[y], x), _ = bt(w - d[C], S), A = !t.middlewareData.shift;
|
|
6031
6031
|
let T = E, k = _;
|
|
6032
6032
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = S), (r = t.middlewareData.shift) != null && r.enabled.y && (T = x), A && !p) {
|
|
6033
6033
|
const L = Ce(d.left, 0), V = Ce(d.right, 0), Q = Ce(d.top, 0), H = Ce(d.bottom, 0);
|
|
6034
|
-
g ? k = w - 2 * (L !== 0 || V !== 0 ? L + V : Ce(d.left, d.right)) : T =
|
|
6034
|
+
g ? k = w - 2 * (L !== 0 || V !== 0 ? L + V : Ce(d.left, d.right)) : T = f - 2 * (Q !== 0 || H !== 0 ? Q + H : Ce(d.top, d.bottom));
|
|
6035
6035
|
}
|
|
6036
6036
|
await c({
|
|
6037
6037
|
...t,
|
|
@@ -6039,7 +6039,7 @@ const k1 = function(e) {
|
|
|
6039
6039
|
availableHeight: T
|
|
6040
6040
|
});
|
|
6041
6041
|
const N = await i.getDimensions(a.floating);
|
|
6042
|
-
return w !== N.width ||
|
|
6042
|
+
return w !== N.width || f !== N.height ? {
|
|
6043
6043
|
reset: {
|
|
6044
6044
|
rects: !0
|
|
6045
6045
|
}
|
|
@@ -6206,18 +6206,18 @@ function Ut(e, t, n, r) {
|
|
|
6206
6206
|
let i = Be(1);
|
|
6207
6207
|
t && (r ? Pe(r) && (i = en(r)) : i = en(e));
|
|
6208
6208
|
const a = Y1(s, n, r) ? Tc(s) : Be(0);
|
|
6209
|
-
let c = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, d = o.width / i.x,
|
|
6209
|
+
let c = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, d = o.width / i.x, h = o.height / i.y;
|
|
6210
6210
|
if (s) {
|
|
6211
6211
|
const p = Ee(s), g = r && Pe(r) ? Ee(r) : r;
|
|
6212
|
-
let w = p,
|
|
6213
|
-
for (;
|
|
6214
|
-
const y = en(
|
|
6215
|
-
c *= y.x, u *= y.y, d *= y.x,
|
|
6212
|
+
let w = p, f = rs(w);
|
|
6213
|
+
for (; f && r && g !== w; ) {
|
|
6214
|
+
const y = en(f), C = f.getBoundingClientRect(), x = je(f), S = C.left + (f.clientLeft + parseFloat(x.paddingLeft)) * y.x, E = C.top + (f.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
6215
|
+
c *= y.x, u *= y.y, d *= y.x, h *= y.y, c += S, u += E, w = Ee(f), f = rs(w);
|
|
6216
6216
|
}
|
|
6217
6217
|
}
|
|
6218
6218
|
return Nr({
|
|
6219
6219
|
width: d,
|
|
6220
|
-
height:
|
|
6220
|
+
height: h,
|
|
6221
6221
|
x: c,
|
|
6222
6222
|
y: u
|
|
6223
6223
|
});
|
|
@@ -6247,12 +6247,12 @@ function Z1(e) {
|
|
|
6247
6247
|
scrollLeft: 0,
|
|
6248
6248
|
scrollTop: 0
|
|
6249
6249
|
}, u = Be(1);
|
|
6250
|
-
const d = Be(0),
|
|
6251
|
-
if ((
|
|
6250
|
+
const d = Be(0), h = We(r);
|
|
6251
|
+
if ((h || !h && !s) && ((Cn(r) !== "body" || Un(i)) && (c = Qr(r)), We(r))) {
|
|
6252
6252
|
const g = Ut(r);
|
|
6253
6253
|
u = en(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
6254
6254
|
}
|
|
6255
|
-
const p = i && !
|
|
6255
|
+
const p = i && !h && !s ? Ac(i, c) : Be(0);
|
|
6256
6256
|
return {
|
|
6257
6257
|
width: n.width * u.x,
|
|
6258
6258
|
height: n.height * u.y,
|
|
@@ -6285,7 +6285,7 @@ function em(e, t) {
|
|
|
6285
6285
|
}
|
|
6286
6286
|
const u = Kr(r);
|
|
6287
6287
|
if (u <= 0) {
|
|
6288
|
-
const d = r.ownerDocument,
|
|
6288
|
+
const d = r.ownerDocument, h = d.body, p = getComputedStyle(h), g = d.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, w = Math.abs(r.clientWidth - h.clientWidth - g);
|
|
6289
6289
|
w <= Vi && (s -= w);
|
|
6290
6290
|
} else u <= Vi && (s += u);
|
|
6291
6291
|
return {
|
|
@@ -6349,8 +6349,8 @@ function om(e) {
|
|
|
6349
6349
|
strategy: o
|
|
6350
6350
|
} = e;
|
|
6351
6351
|
const i = [...n === "clippingAncestors" ? Gr(t) ? [] : rm(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((u, d) => {
|
|
6352
|
-
const
|
|
6353
|
-
return u.top = Ce(
|
|
6352
|
+
const h = qi(t, d, o);
|
|
6353
|
+
return u.top = Ce(h.top, u.top), u.right = bt(h.right, u.right), u.bottom = bt(h.bottom, u.bottom), u.left = Ce(h.left, u.left), u;
|
|
6354
6354
|
}, qi(t, a, o));
|
|
6355
6355
|
return {
|
|
6356
6356
|
width: c.right - c.left,
|
|
@@ -6385,9 +6385,9 @@ function im(e, t, n) {
|
|
|
6385
6385
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
6386
6386
|
} else o && u();
|
|
6387
6387
|
s && !r && o && u();
|
|
6388
|
-
const d = o && !r && !s ? Ac(o, a) : Be(0),
|
|
6388
|
+
const d = o && !r && !s ? Ac(o, a) : Be(0), h = i.left + a.scrollLeft - c.x - d.x, p = i.top + a.scrollTop - c.y - d.y;
|
|
6389
6389
|
return {
|
|
6390
|
-
x:
|
|
6390
|
+
x: h,
|
|
6391
6391
|
y: p,
|
|
6392
6392
|
width: i.width,
|
|
6393
6393
|
height: i.height
|
|
@@ -6463,14 +6463,14 @@ function um(e, t) {
|
|
|
6463
6463
|
a === void 0 && (a = !1), c === void 0 && (c = 1), s();
|
|
6464
6464
|
const u = e.getBoundingClientRect(), {
|
|
6465
6465
|
left: d,
|
|
6466
|
-
top:
|
|
6466
|
+
top: h,
|
|
6467
6467
|
width: p,
|
|
6468
6468
|
height: g
|
|
6469
6469
|
} = u;
|
|
6470
6470
|
if (a || t(), !p || !g)
|
|
6471
6471
|
return;
|
|
6472
|
-
const w = ar(
|
|
6473
|
-
rootMargin: -w + "px " + -
|
|
6472
|
+
const w = ar(h), f = ar(o.clientWidth - (d + p)), y = ar(o.clientHeight - (h + g)), C = ar(d), S = {
|
|
6473
|
+
rootMargin: -w + "px " + -f + "px " + -y + "px " + -C + "px",
|
|
6474
6474
|
threshold: Ce(0, bt(1, c)) || 1
|
|
6475
6475
|
};
|
|
6476
6476
|
let E = !0;
|
|
@@ -6512,7 +6512,7 @@ function dm(e, t, n, r) {
|
|
|
6512
6512
|
passive: !0
|
|
6513
6513
|
}), s && C.addEventListener("resize", n);
|
|
6514
6514
|
});
|
|
6515
|
-
const
|
|
6515
|
+
const h = u && a ? um(u, n) : null;
|
|
6516
6516
|
let p = -1, g = null;
|
|
6517
6517
|
i && (g = new ResizeObserver((C) => {
|
|
6518
6518
|
let [x] = C;
|
|
@@ -6521,17 +6521,17 @@ function dm(e, t, n, r) {
|
|
|
6521
6521
|
(S = g) == null || S.observe(t);
|
|
6522
6522
|
})), n();
|
|
6523
6523
|
}), u && !c && g.observe(u), g.observe(t));
|
|
6524
|
-
let w,
|
|
6524
|
+
let w, f = c ? Ut(e) : null;
|
|
6525
6525
|
c && y();
|
|
6526
6526
|
function y() {
|
|
6527
6527
|
const C = Ut(e);
|
|
6528
|
-
|
|
6528
|
+
f && !jc(f, C) && n(), f = C, w = requestAnimationFrame(y);
|
|
6529
6529
|
}
|
|
6530
6530
|
return n(), () => {
|
|
6531
6531
|
var C;
|
|
6532
6532
|
d.forEach((x) => {
|
|
6533
6533
|
o && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
|
|
6534
|
-
}),
|
|
6534
|
+
}), h == null || h(), (C = g) == null || C.disconnect(), g = null, c && cancelAnimationFrame(w);
|
|
6535
6535
|
};
|
|
6536
6536
|
}
|
|
6537
6537
|
const fm = k1, hm = $1, pm = L1, mm = F1, gm = N1, Gi = D1, ym = M1, vm = (e, t, n) => {
|
|
@@ -6606,7 +6606,7 @@ function Cm(e) {
|
|
|
6606
6606
|
transform: a = !0,
|
|
6607
6607
|
whileElementsMounted: c,
|
|
6608
6608
|
open: u
|
|
6609
|
-
} = e, [d,
|
|
6609
|
+
} = e, [d, h] = m.useState({
|
|
6610
6610
|
x: 0,
|
|
6611
6611
|
y: 0,
|
|
6612
6612
|
strategy: n,
|
|
@@ -6615,8 +6615,8 @@ function Cm(e) {
|
|
|
6615
6615
|
isPositioned: !1
|
|
6616
6616
|
}), [p, g] = m.useState(r);
|
|
6617
6617
|
Ir(p, r) || g(r);
|
|
6618
|
-
const [w,
|
|
6619
|
-
M !== A.current && (A.current = M,
|
|
6618
|
+
const [w, f] = m.useState(null), [y, C] = m.useState(null), x = m.useCallback((M) => {
|
|
6619
|
+
M !== A.current && (A.current = M, f(M));
|
|
6620
6620
|
}, []), S = m.useCallback((M) => {
|
|
6621
6621
|
M !== T.current && (T.current = M, C(M));
|
|
6622
6622
|
}, []), E = s || w, _ = i || y, A = m.useRef(null), T = m.useRef(null), k = m.useRef(d), N = c != null, L = go(c), V = go(o), Q = go(u), H = m.useCallback(() => {
|
|
@@ -6637,12 +6637,12 @@ function Cm(e) {
|
|
|
6637
6637
|
isPositioned: Q.current !== !1
|
|
6638
6638
|
};
|
|
6639
6639
|
G.current && !Ir(k.current, we) && (k.current = we, Sa.flushSync(() => {
|
|
6640
|
-
|
|
6640
|
+
h(we);
|
|
6641
6641
|
}));
|
|
6642
6642
|
});
|
|
6643
6643
|
}, [p, t, n, V, Q]);
|
|
6644
6644
|
xr(() => {
|
|
6645
|
-
u === !1 && k.current.isPositioned && (k.current.isPositioned = !1,
|
|
6645
|
+
u === !1 && k.current.isPositioned && (k.current.isPositioned = !1, h((M) => ({
|
|
6646
6646
|
...M,
|
|
6647
6647
|
isPositioned: !1
|
|
6648
6648
|
})));
|
|
@@ -6804,11 +6804,11 @@ var Ds = "PopperContent", [Nm, Im] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6804
6804
|
avoidCollisions: c = !0,
|
|
6805
6805
|
collisionBoundary: u = [],
|
|
6806
6806
|
collisionPadding: d = 0,
|
|
6807
|
-
sticky:
|
|
6807
|
+
sticky: h = "partial",
|
|
6808
6808
|
hideWhenDetached: p = !1,
|
|
6809
6809
|
updatePositionStrategy: g = "optimized",
|
|
6810
6810
|
onPlaced: w,
|
|
6811
|
-
...
|
|
6811
|
+
...f
|
|
6812
6812
|
} = e, y = kc(Ds, n), [C, x] = m.useState(null), S = De(t, (_t) => x(_t)), [E, _] = m.useState(null), A = Dm(E), T = (A == null ? void 0 : A.width) ?? 0, k = (A == null ? void 0 : A.height) ?? 0, N = r + (s !== "center" ? "-" + s : ""), L = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(u) ? u : [u], Q = V.length > 0, H = {
|
|
6813
6813
|
padding: L,
|
|
6814
6814
|
boundary: V.filter($m),
|
|
@@ -6829,7 +6829,7 @@ var Ds = "PopperContent", [Nm, Im] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6829
6829
|
c && Sm({
|
|
6830
6830
|
mainAxis: !0,
|
|
6831
6831
|
crossAxis: !1,
|
|
6832
|
-
limiter:
|
|
6832
|
+
limiter: h === "partial" ? _m() : void 0,
|
|
6833
6833
|
...H
|
|
6834
6834
|
}),
|
|
6835
6835
|
c && Rm({ ...H }),
|
|
@@ -6889,10 +6889,10 @@ var Ds = "PopperContent", [Nm, Im] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6889
6889
|
{
|
|
6890
6890
|
"data-side": se,
|
|
6891
6891
|
"data-align": we,
|
|
6892
|
-
...
|
|
6892
|
+
...f,
|
|
6893
6893
|
ref: S,
|
|
6894
6894
|
style: {
|
|
6895
|
-
...
|
|
6895
|
+
...f.style,
|
|
6896
6896
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
6897
6897
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
6898
6898
|
animation: J ? void 0 : "none"
|
|
@@ -6965,9 +6965,9 @@ var Mm = (e) => ({
|
|
|
6965
6965
|
options: e,
|
|
6966
6966
|
fn(t) {
|
|
6967
6967
|
var y, C, x;
|
|
6968
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((y = o.arrow) == null ? void 0 : y.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [u, d] = Hc(n),
|
|
6969
|
-
let w = "",
|
|
6970
|
-
return u === "bottom" ? (w = i ?
|
|
6968
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((y = o.arrow) == null ? void 0 : y.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [u, d] = Hc(n), h = { start: "0%", center: "50%", end: "100%" }[d], p = (((C = o.arrow) == null ? void 0 : C.x) ?? 0) + a / 2, g = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
|
|
6969
|
+
let w = "", f = "";
|
|
6970
|
+
return u === "bottom" ? (w = i ? h : `${p}px`, f = `${-c}px`) : u === "top" ? (w = i ? h : `${p}px`, f = `${r.floating.height + c}px`) : u === "right" ? (w = `${-c}px`, f = i ? h : `${g}px`) : u === "left" && (w = `${r.floating.width + c}px`, f = i ? h : `${g}px`), { data: { x: w, y: f } };
|
|
6971
6971
|
}
|
|
6972
6972
|
});
|
|
6973
6973
|
function Hc(e) {
|
|
@@ -7016,9 +7016,9 @@ function qm(e) {
|
|
|
7016
7016
|
}, [e, c]), vt(() => {
|
|
7017
7017
|
if (t) {
|
|
7018
7018
|
let u;
|
|
7019
|
-
const d = t.ownerDocument.defaultView ?? window,
|
|
7020
|
-
const
|
|
7021
|
-
if (g.target === t &&
|
|
7019
|
+
const d = t.ownerDocument.defaultView ?? window, h = (g) => {
|
|
7020
|
+
const f = cr(r.current).includes(CSS.escape(g.animationName));
|
|
7021
|
+
if (g.target === t && f && (c("ANIMATION_END"), !o.current)) {
|
|
7022
7022
|
const y = t.style.animationFillMode;
|
|
7023
7023
|
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
7024
7024
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
|
|
@@ -7027,8 +7027,8 @@ function qm(e) {
|
|
|
7027
7027
|
}, p = (g) => {
|
|
7028
7028
|
g.target === t && (s.current = cr(r.current));
|
|
7029
7029
|
};
|
|
7030
|
-
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel",
|
|
7031
|
-
d.clearTimeout(u), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel",
|
|
7030
|
+
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
|
|
7031
|
+
d.clearTimeout(u), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", h), t.removeEventListener("animationend", h);
|
|
7032
7032
|
};
|
|
7033
7033
|
} else
|
|
7034
7034
|
c("ANIMATION_END");
|
|
@@ -7068,18 +7068,18 @@ function Vc({
|
|
|
7068
7068
|
{
|
|
7069
7069
|
const d = m.useRef(e !== void 0);
|
|
7070
7070
|
m.useEffect(() => {
|
|
7071
|
-
const
|
|
7072
|
-
|
|
7073
|
-
`${r} is changing from ${
|
|
7071
|
+
const h = d.current;
|
|
7072
|
+
h !== a && console.warn(
|
|
7073
|
+
`${r} is changing from ${h ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
7074
7074
|
), d.current = a;
|
|
7075
7075
|
}, [a, r]);
|
|
7076
7076
|
}
|
|
7077
7077
|
const u = m.useCallback(
|
|
7078
7078
|
(d) => {
|
|
7079
|
-
var
|
|
7079
|
+
var h;
|
|
7080
7080
|
if (a) {
|
|
7081
7081
|
const p = Zm(d) ? d(e) : d;
|
|
7082
|
-
p !== e && ((
|
|
7082
|
+
p !== e && ((h = i.current) == null || h.call(i, p));
|
|
7083
7083
|
} else
|
|
7084
7084
|
s(d);
|
|
7085
7085
|
},
|
|
@@ -7172,7 +7172,7 @@ var Ln = "Tooltip", [rg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7172
7172
|
onOpenChange: s,
|
|
7173
7173
|
disableHoverableContent: i,
|
|
7174
7174
|
delayDuration: a
|
|
7175
|
-
} = e, c = Ns(Ln, e.__scopeTooltip), u = Zr(t), [d,
|
|
7175
|
+
} = e, c = Ns(Ln, e.__scopeTooltip), u = Zr(t), [d, h] = m.useState(null), p = Cr(), g = m.useRef(0), w = i ?? c.disableHoverableContent, f = a ?? c.delayDuration, y = m.useRef(!1), [C, x] = Vc({
|
|
7176
7176
|
prop: r,
|
|
7177
7177
|
defaultProp: o ?? !1,
|
|
7178
7178
|
onChange: (T) => {
|
|
@@ -7186,8 +7186,8 @@ var Ln = "Tooltip", [rg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7186
7186
|
}, [x]), A = m.useCallback(() => {
|
|
7187
7187
|
window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
7188
7188
|
y.current = !0, x(!0), g.current = 0;
|
|
7189
|
-
},
|
|
7190
|
-
}, [
|
|
7189
|
+
}, f);
|
|
7190
|
+
}, [f, x]);
|
|
7191
7191
|
return m.useEffect(() => () => {
|
|
7192
7192
|
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
7193
7193
|
}, []), /* @__PURE__ */ l.jsx(Fm, { ...u, children: /* @__PURE__ */ l.jsx(
|
|
@@ -7198,7 +7198,7 @@ var Ln = "Tooltip", [rg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7198
7198
|
open: C,
|
|
7199
7199
|
stateAttribute: S,
|
|
7200
7200
|
trigger: d,
|
|
7201
|
-
onTriggerChange:
|
|
7201
|
+
onTriggerChange: h,
|
|
7202
7202
|
onTriggerEnter: m.useCallback(() => {
|
|
7203
7203
|
c.isOpenDelayedRef.current ? A() : E();
|
|
7204
7204
|
}, [c.isOpenDelayedRef, A, E]),
|
|
@@ -7215,8 +7215,8 @@ var Ln = "Tooltip", [rg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7215
7215
|
Qc.displayName = Ln;
|
|
7216
7216
|
var ss = "TooltipTrigger", Kc = m.forwardRef(
|
|
7217
7217
|
(e, t) => {
|
|
7218
|
-
const { __scopeTooltip: n, ...r } = e, o = Wn(ss, n), s = Ns(ss, n), i = Zr(n), a = m.useRef(null), c = De(t, a, o.onTriggerChange), u = m.useRef(!1), d = m.useRef(!1),
|
|
7219
|
-
return m.useEffect(() => () => document.removeEventListener("pointerup",
|
|
7218
|
+
const { __scopeTooltip: n, ...r } = e, o = Wn(ss, n), s = Ns(ss, n), i = Zr(n), a = m.useRef(null), c = De(t, a, o.onTriggerChange), u = m.useRef(!1), d = m.useRef(!1), h = m.useCallback(() => u.current = !1, []);
|
|
7219
|
+
return m.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ l.jsx(Bm, { asChild: !0, ...i, children: /* @__PURE__ */ l.jsx(
|
|
7220
7220
|
be.button,
|
|
7221
7221
|
{
|
|
7222
7222
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -7230,7 +7230,7 @@ var ss = "TooltipTrigger", Kc = m.forwardRef(
|
|
|
7230
7230
|
o.onTriggerLeave(), d.current = !1;
|
|
7231
7231
|
}),
|
|
7232
7232
|
onPointerDown: ve(e.onPointerDown, () => {
|
|
7233
|
-
o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup",
|
|
7233
|
+
o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup", h, { once: !0 });
|
|
7234
7234
|
}),
|
|
7235
7235
|
onFocus: ve(e.onFocus, () => {
|
|
7236
7236
|
u.current || o.onOpen();
|
|
@@ -7255,26 +7255,26 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7255
7255
|
return /* @__PURE__ */ l.jsx(xn, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ l.jsx(Xc, { side: o, ...s, ref: t }) : /* @__PURE__ */ l.jsx(ig, { side: o, ...s, ref: t }) });
|
|
7256
7256
|
}
|
|
7257
7257
|
), ig = m.forwardRef((e, t) => {
|
|
7258
|
-
const n = Wn(vn, e.__scopeTooltip), r = Ns(vn, e.__scopeTooltip), o = m.useRef(null), s = De(t, o), [i, a] = m.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange:
|
|
7259
|
-
a(null),
|
|
7260
|
-
}, [
|
|
7261
|
-
(w,
|
|
7262
|
-
const y = w.currentTarget, C = { x: w.clientX, y: w.clientY }, x = ug(C, y.getBoundingClientRect()), S = dg(C, x), E = fg(
|
|
7263
|
-
a(_),
|
|
7258
|
+
const n = Wn(vn, e.__scopeTooltip), r = Ns(vn, e.__scopeTooltip), o = m.useRef(null), s = De(t, o), [i, a] = m.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: h } = r, p = m.useCallback(() => {
|
|
7259
|
+
a(null), h(!1);
|
|
7260
|
+
}, [h]), g = m.useCallback(
|
|
7261
|
+
(w, f) => {
|
|
7262
|
+
const y = w.currentTarget, C = { x: w.clientX, y: w.clientY }, x = ug(C, y.getBoundingClientRect()), S = dg(C, x), E = fg(f.getBoundingClientRect()), _ = pg([...S, ...E]);
|
|
7263
|
+
a(_), h(!0);
|
|
7264
7264
|
},
|
|
7265
|
-
[
|
|
7265
|
+
[h]
|
|
7266
7266
|
);
|
|
7267
7267
|
return m.useEffect(() => () => p(), [p]), m.useEffect(() => {
|
|
7268
7268
|
if (c && d) {
|
|
7269
|
-
const w = (y) => g(y, d),
|
|
7270
|
-
return c.addEventListener("pointerleave", w), d.addEventListener("pointerleave",
|
|
7271
|
-
c.removeEventListener("pointerleave", w), d.removeEventListener("pointerleave",
|
|
7269
|
+
const w = (y) => g(y, d), f = (y) => g(y, c);
|
|
7270
|
+
return c.addEventListener("pointerleave", w), d.addEventListener("pointerleave", f), () => {
|
|
7271
|
+
c.removeEventListener("pointerleave", w), d.removeEventListener("pointerleave", f);
|
|
7272
7272
|
};
|
|
7273
7273
|
}
|
|
7274
7274
|
}, [c, d, g, p]), m.useEffect(() => {
|
|
7275
7275
|
if (i) {
|
|
7276
|
-
const w = (
|
|
7277
|
-
const y =
|
|
7276
|
+
const w = (f) => {
|
|
7277
|
+
const y = f.target, C = { x: f.clientX, y: f.clientY }, x = (c == null ? void 0 : c.contains(y)) || (d == null ? void 0 : d.contains(y)), S = !hg(C, i);
|
|
7278
7278
|
x ? p() : S && (p(), u());
|
|
7279
7279
|
};
|
|
7280
7280
|
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
@@ -7292,11 +7292,11 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7292
7292
|
} = e, c = Wn(vn, n), u = Zr(n), { onClose: d } = c;
|
|
7293
7293
|
return m.useEffect(() => (document.addEventListener(os, d), () => document.removeEventListener(os, d)), [d]), m.useEffect(() => {
|
|
7294
7294
|
if (c.trigger) {
|
|
7295
|
-
const
|
|
7295
|
+
const h = (p) => {
|
|
7296
7296
|
const g = p.target;
|
|
7297
7297
|
g != null && g.contains(c.trigger) && d();
|
|
7298
7298
|
};
|
|
7299
|
-
return window.addEventListener("scroll",
|
|
7299
|
+
return window.addEventListener("scroll", h, { capture: !0 }), () => window.removeEventListener("scroll", h, { capture: !0 });
|
|
7300
7300
|
}
|
|
7301
7301
|
}, [c.trigger, d]), /* @__PURE__ */ l.jsx(
|
|
7302
7302
|
Ss,
|
|
@@ -7305,7 +7305,7 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7305
7305
|
disableOutsidePointerEvents: !1,
|
|
7306
7306
|
onEscapeKeyDown: s,
|
|
7307
7307
|
onPointerDownOutside: i,
|
|
7308
|
-
onFocusOutside: (
|
|
7308
|
+
onFocusOutside: (h) => h.preventDefault(),
|
|
7309
7309
|
onDismiss: d,
|
|
7310
7310
|
children: /* @__PURE__ */ l.jsxs(
|
|
7311
7311
|
Um,
|
|
@@ -7401,8 +7401,8 @@ function hg(e, t) {
|
|
|
7401
7401
|
const { x: n, y: r } = e;
|
|
7402
7402
|
let o = !1;
|
|
7403
7403
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
7404
|
-
const a = t[s], c = t[i], u = a.x, d = a.y,
|
|
7405
|
-
d > r != p > r && n < (
|
|
7404
|
+
const a = t[s], c = t[i], u = a.x, d = a.y, h = c.x, p = c.y;
|
|
7405
|
+
d > r != p > r && n < (h - u) * (r - d) / (p - d) + u && (o = !o);
|
|
7406
7406
|
}
|
|
7407
7407
|
return o;
|
|
7408
7408
|
}
|
|
@@ -7450,8 +7450,8 @@ const xg = "tooltip__nUuSh", Eg = "tooltipArrow__W2w-f", Ki = {
|
|
|
7450
7450
|
side: a = "right",
|
|
7451
7451
|
sideOffset: c = 0
|
|
7452
7452
|
}) => {
|
|
7453
|
-
const [u, d] = Y(!1),
|
|
7454
|
-
s ||
|
|
7453
|
+
const [u, d] = Y(!1), h = t !== void 0, g = s ? !1 : h ? t : u, w = (f) => {
|
|
7454
|
+
s || h || d(f);
|
|
7455
7455
|
};
|
|
7456
7456
|
return /* @__PURE__ */ l.jsx(gg, { delayDuration: i, children: /* @__PURE__ */ l.jsxs(yg, { open: g, onOpenChange: w, children: [
|
|
7457
7457
|
/* @__PURE__ */ l.jsx(vg, { asChild: !0, children: e }),
|
|
@@ -7503,10 +7503,10 @@ const Dg = "disabled__KpauE", Lg = "checked__2-JV-", Ng = "thumb__fEuKD", lr = {
|
|
|
7503
7503
|
"aria-labelledby": c,
|
|
7504
7504
|
"aria-describedby": u,
|
|
7505
7505
|
...d
|
|
7506
|
-
},
|
|
7507
|
-
const [p, g] = ls.useState(t), w = e !== void 0,
|
|
7506
|
+
}, h) => {
|
|
7507
|
+
const [p, g] = ls.useState(t), w = e !== void 0, f = w ? !!e : p, y = () => {
|
|
7508
7508
|
if (r) return;
|
|
7509
|
-
const x = !
|
|
7509
|
+
const x = !f;
|
|
7510
7510
|
w || g(x), n == null || n(x);
|
|
7511
7511
|
}, C = (x) => {
|
|
7512
7512
|
(x.key === " " || x.key === "Enter") && (x.preventDefault(), y());
|
|
@@ -7514,10 +7514,10 @@ const Dg = "disabled__KpauE", Lg = "checked__2-JV-", Ng = "thumb__fEuKD", lr = {
|
|
|
7514
7514
|
return /* @__PURE__ */ l.jsx(
|
|
7515
7515
|
"button",
|
|
7516
7516
|
{
|
|
7517
|
-
ref:
|
|
7517
|
+
ref: h,
|
|
7518
7518
|
type: "button",
|
|
7519
7519
|
role: "switch",
|
|
7520
|
-
"aria-checked":
|
|
7520
|
+
"aria-checked": f,
|
|
7521
7521
|
"aria-label": a,
|
|
7522
7522
|
"aria-labelledby": c,
|
|
7523
7523
|
"aria-describedby": u,
|
|
@@ -7525,7 +7525,7 @@ const Dg = "disabled__KpauE", Lg = "checked__2-JV-", Ng = "thumb__fEuKD", lr = {
|
|
|
7525
7525
|
id: o,
|
|
7526
7526
|
name: i,
|
|
7527
7527
|
className: j(lr.switch, {
|
|
7528
|
-
[lr.checked]:
|
|
7528
|
+
[lr.checked]: f,
|
|
7529
7529
|
[lr.disabled]: r
|
|
7530
7530
|
}),
|
|
7531
7531
|
onClick: y,
|
|
@@ -7561,8 +7561,8 @@ const kg = "tabs-root__ELmdj", $g = "tabs-list__rc10N", Mg = "tabs-list--horizon
|
|
|
7561
7561
|
className: o = "",
|
|
7562
7562
|
children: s
|
|
7563
7563
|
}) => {
|
|
7564
|
-
const [i, a] = Y(e || ""), c = t !== void 0, u = c ? t : i, d = (
|
|
7565
|
-
c || a(
|
|
7564
|
+
const [i, a] = Y(e || ""), c = t !== void 0, u = c ? t : i, d = (h) => {
|
|
7565
|
+
c || a(h), n == null || n(h);
|
|
7566
7566
|
};
|
|
7567
7567
|
return /* @__PURE__ */ l.jsx(tl.Provider, { value: { value: u, onValueChange: d, orientation: r }, children: /* @__PURE__ */ l.jsx("div", { className: j(Me.tabsRoot, o), children: s }) });
|
|
7568
7568
|
}, _2 = ({ className: e = "", children: t }) => {
|
|
@@ -7681,7 +7681,7 @@ var yo = "focusScope.autoFocusOnMount", vo = "focusScope.autoFocusOnUnmount", Xi
|
|
|
7681
7681
|
onMountAutoFocus: o,
|
|
7682
7682
|
onUnmountAutoFocus: s,
|
|
7683
7683
|
...i
|
|
7684
|
-
} = e, [a, c] = m.useState(null), u = gn(o), d = gn(s),
|
|
7684
|
+
} = e, [a, c] = m.useState(null), u = gn(o), d = gn(s), h = m.useRef(null), p = De(t, (f) => c(f)), g = m.useRef({
|
|
7685
7685
|
paused: !1,
|
|
7686
7686
|
pause() {
|
|
7687
7687
|
this.paused = !0;
|
|
@@ -7692,48 +7692,48 @@ var yo = "focusScope.autoFocusOnMount", vo = "focusScope.autoFocusOnUnmount", Xi
|
|
|
7692
7692
|
}).current;
|
|
7693
7693
|
m.useEffect(() => {
|
|
7694
7694
|
if (r) {
|
|
7695
|
-
let
|
|
7695
|
+
let f = function(S) {
|
|
7696
7696
|
if (g.paused || !a) return;
|
|
7697
7697
|
const E = S.target;
|
|
7698
|
-
a.contains(E) ?
|
|
7698
|
+
a.contains(E) ? h.current = E : rt(h.current, { select: !0 });
|
|
7699
7699
|
}, y = function(S) {
|
|
7700
7700
|
if (g.paused || !a) return;
|
|
7701
7701
|
const E = S.relatedTarget;
|
|
7702
|
-
E !== null && (a.contains(E) || rt(
|
|
7702
|
+
E !== null && (a.contains(E) || rt(h.current, { select: !0 }));
|
|
7703
7703
|
}, C = function(S) {
|
|
7704
7704
|
if (document.activeElement === document.body)
|
|
7705
7705
|
for (const _ of S)
|
|
7706
7706
|
_.removedNodes.length > 0 && rt(a);
|
|
7707
7707
|
};
|
|
7708
|
-
document.addEventListener("focusin",
|
|
7708
|
+
document.addEventListener("focusin", f), document.addEventListener("focusout", y);
|
|
7709
7709
|
const x = new MutationObserver(C);
|
|
7710
7710
|
return a && x.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
7711
|
-
document.removeEventListener("focusin",
|
|
7711
|
+
document.removeEventListener("focusin", f), document.removeEventListener("focusout", y), x.disconnect();
|
|
7712
7712
|
};
|
|
7713
7713
|
}
|
|
7714
7714
|
}, [r, a, g.paused]), m.useEffect(() => {
|
|
7715
7715
|
if (a) {
|
|
7716
7716
|
ea.add(g);
|
|
7717
|
-
const
|
|
7718
|
-
if (!a.contains(
|
|
7717
|
+
const f = document.activeElement;
|
|
7718
|
+
if (!a.contains(f)) {
|
|
7719
7719
|
const C = new CustomEvent(yo, Xi);
|
|
7720
|
-
a.addEventListener(yo, u), a.dispatchEvent(C), C.defaultPrevented || (Yg(ty(rl(a)), { select: !0 }), document.activeElement ===
|
|
7720
|
+
a.addEventListener(yo, u), a.dispatchEvent(C), C.defaultPrevented || (Yg(ty(rl(a)), { select: !0 }), document.activeElement === f && rt(a));
|
|
7721
7721
|
}
|
|
7722
7722
|
return () => {
|
|
7723
7723
|
a.removeEventListener(yo, u), setTimeout(() => {
|
|
7724
7724
|
const C = new CustomEvent(vo, Xi);
|
|
7725
|
-
a.addEventListener(vo, d), a.dispatchEvent(C), C.defaultPrevented || rt(
|
|
7725
|
+
a.addEventListener(vo, d), a.dispatchEvent(C), C.defaultPrevented || rt(f ?? document.body, { select: !0 }), a.removeEventListener(vo, d), ea.remove(g);
|
|
7726
7726
|
}, 0);
|
|
7727
7727
|
};
|
|
7728
7728
|
}
|
|
7729
7729
|
}, [a, u, d, g]);
|
|
7730
7730
|
const w = m.useCallback(
|
|
7731
|
-
(
|
|
7731
|
+
(f) => {
|
|
7732
7732
|
if (!n && !r || g.paused) return;
|
|
7733
|
-
const y =
|
|
7733
|
+
const y = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, C = document.activeElement;
|
|
7734
7734
|
if (y && C) {
|
|
7735
|
-
const x =
|
|
7736
|
-
S && E ? !
|
|
7735
|
+
const x = f.currentTarget, [S, E] = Zg(x);
|
|
7736
|
+
S && E ? !f.shiftKey && C === E ? (f.preventDefault(), n && rt(S, { select: !0 })) : f.shiftKey && C === S && (f.preventDefault(), n && rt(E, { select: !0 })) : C === x && f.preventDefault();
|
|
7737
7737
|
}
|
|
7738
7738
|
},
|
|
7739
7739
|
[n, r, g.paused]
|
|
@@ -7943,11 +7943,11 @@ var sl = uy(), Co = function() {
|
|
|
7943
7943
|
onScrollCapture: Co,
|
|
7944
7944
|
onWheelCapture: Co,
|
|
7945
7945
|
onTouchMoveCapture: Co
|
|
7946
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled,
|
|
7946
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, h = e.shards, p = e.sideCar, g = e.noRelative, w = e.noIsolation, f = e.inert, y = e.allowPinchZoom, C = e.as, x = C === void 0 ? "div" : C, S = e.gapMode, E = Ma(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = p, A = ay([n, t]), T = $e($e({}, E), o);
|
|
7947
7947
|
return m.createElement(
|
|
7948
7948
|
m.Fragment,
|
|
7949
7949
|
null,
|
|
7950
|
-
d && m.createElement(_, { sideCar: sl, removeScrollBar: u, shards:
|
|
7950
|
+
d && m.createElement(_, { sideCar: sl, removeScrollBar: u, shards: h, noRelative: g, noIsolation: w, inert: f, setCallbacks: s, allowPinchZoom: !!y, lockRef: n, gapMode: S }),
|
|
7951
7951
|
i ? m.cloneElement(m.Children.only(a), $e($e({}, T), { ref: A })) : m.createElement(x, $e({}, T, { className: c, ref: A }), a)
|
|
7952
7952
|
);
|
|
7953
7953
|
});
|
|
@@ -8146,12 +8146,12 @@ var Yt = as ? { passive: !1 } : !1, _y = function(e) {
|
|
|
8146
8146
|
}, Py = function(e, t) {
|
|
8147
8147
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
8148
8148
|
}, jy = function(e, t, n, r, o) {
|
|
8149
|
-
var s = Py(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), u = !1, d = i > 0,
|
|
8149
|
+
var s = Py(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), u = !1, d = i > 0, h = 0, p = 0;
|
|
8150
8150
|
do {
|
|
8151
8151
|
if (!a)
|
|
8152
8152
|
break;
|
|
8153
|
-
var g = ll(e, a), w = g[0],
|
|
8154
|
-
(w || C) && cl(e, a) && (
|
|
8153
|
+
var g = ll(e, a), w = g[0], f = g[1], y = g[2], C = f - y - s * w;
|
|
8154
|
+
(w || C) && cl(e, a) && (h += C, p += w);
|
|
8155
8155
|
var x = a.parentNode;
|
|
8156
8156
|
a = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
|
|
8157
8157
|
} while (
|
|
@@ -8159,7 +8159,7 @@ var Yt = as ? { passive: !1 } : !1, _y = function(e) {
|
|
|
8159
8159
|
!c && a !== document.body || // self content
|
|
8160
8160
|
c && (t.contains(a) || t === a)
|
|
8161
8161
|
);
|
|
8162
|
-
return (d && Math.abs(
|
|
8162
|
+
return (d && Math.abs(h) < 1 || !d && Math.abs(p) < 1) && (u = !0), u;
|
|
8163
8163
|
}, dr = function(e) {
|
|
8164
8164
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
8165
8165
|
}, ia = function(e) {
|
|
@@ -8181,21 +8181,21 @@ function Iy(e) {
|
|
|
8181
8181
|
}, [e]), m.useEffect(function() {
|
|
8182
8182
|
if (e.inert) {
|
|
8183
8183
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
8184
|
-
var
|
|
8185
|
-
return
|
|
8184
|
+
var f = Rr([e.lockRef.current], (e.shards || []).map(aa), !0).filter(Boolean);
|
|
8185
|
+
return f.forEach(function(y) {
|
|
8186
8186
|
return y.classList.add("allow-interactivity-".concat(o));
|
|
8187
8187
|
}), function() {
|
|
8188
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
8188
|
+
document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(y) {
|
|
8189
8189
|
return y.classList.remove("allow-interactivity-".concat(o));
|
|
8190
8190
|
});
|
|
8191
8191
|
};
|
|
8192
8192
|
}
|
|
8193
8193
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
8194
|
-
var a = m.useCallback(function(
|
|
8195
|
-
if ("touches" in
|
|
8194
|
+
var a = m.useCallback(function(f, y) {
|
|
8195
|
+
if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
|
|
8196
8196
|
return !i.current.allowPinchZoom;
|
|
8197
|
-
var C = dr(
|
|
8198
|
-
if ("touches" in
|
|
8197
|
+
var C = dr(f), x = n.current, S = "deltaX" in f ? f.deltaX : x[0] - C[0], E = "deltaY" in f ? f.deltaY : x[1] - C[1], _, A = f.target, T = Math.abs(S) > Math.abs(E) ? "h" : "v";
|
|
8198
|
+
if ("touches" in f && T === "h" && A.type === "range")
|
|
8199
8199
|
return !1;
|
|
8200
8200
|
var k = window.getSelection(), N = k && k.anchorNode, L = N ? N === A || N.contains(A) : !1;
|
|
8201
8201
|
if (L)
|
|
@@ -8205,12 +8205,12 @@ function Iy(e) {
|
|
|
8205
8205
|
return !0;
|
|
8206
8206
|
if (V ? _ = T : (_ = T === "v" ? "h" : "v", V = sa(T, A)), !V)
|
|
8207
8207
|
return !1;
|
|
8208
|
-
if (!r.current && "changedTouches" in
|
|
8208
|
+
if (!r.current && "changedTouches" in f && (S || E) && (r.current = _), !_)
|
|
8209
8209
|
return !0;
|
|
8210
8210
|
var Q = r.current || _;
|
|
8211
|
-
return jy(Q, y,
|
|
8212
|
-
}, []), c = m.useCallback(function(
|
|
8213
|
-
var y =
|
|
8211
|
+
return jy(Q, y, f, Q === "h" ? S : E);
|
|
8212
|
+
}, []), c = m.useCallback(function(f) {
|
|
8213
|
+
var y = f;
|
|
8214
8214
|
if (!(!Zt.length || Zt[Zt.length - 1] !== s)) {
|
|
8215
8215
|
var C = "deltaY" in y ? ia(y) : dr(y), x = t.current.filter(function(_) {
|
|
8216
8216
|
return _.name === y.type && (_.target === y.target || y.target === _.shadowParent) && Dy(_.delta, C);
|
|
@@ -8226,28 +8226,28 @@ function Iy(e) {
|
|
|
8226
8226
|
E && y.cancelable && y.preventDefault();
|
|
8227
8227
|
}
|
|
8228
8228
|
}
|
|
8229
|
-
}, []), u = m.useCallback(function(
|
|
8230
|
-
var S = { name:
|
|
8229
|
+
}, []), u = m.useCallback(function(f, y, C, x) {
|
|
8230
|
+
var S = { name: f, delta: y, target: C, should: x, shadowParent: ky(C) };
|
|
8231
8231
|
t.current.push(S), setTimeout(function() {
|
|
8232
8232
|
t.current = t.current.filter(function(E) {
|
|
8233
8233
|
return E !== S;
|
|
8234
8234
|
});
|
|
8235
8235
|
}, 1);
|
|
8236
|
-
}, []), d = m.useCallback(function(
|
|
8237
|
-
n.current = dr(
|
|
8238
|
-
}, []),
|
|
8239
|
-
u(
|
|
8240
|
-
}, []), p = m.useCallback(function(
|
|
8241
|
-
u(
|
|
8236
|
+
}, []), d = m.useCallback(function(f) {
|
|
8237
|
+
n.current = dr(f), r.current = void 0;
|
|
8238
|
+
}, []), h = m.useCallback(function(f) {
|
|
8239
|
+
u(f.type, ia(f), f.target, a(f, e.lockRef.current));
|
|
8240
|
+
}, []), p = m.useCallback(function(f) {
|
|
8241
|
+
u(f.type, dr(f), f.target, a(f, e.lockRef.current));
|
|
8242
8242
|
}, []);
|
|
8243
8243
|
m.useEffect(function() {
|
|
8244
8244
|
return Zt.push(s), e.setCallbacks({
|
|
8245
|
-
onScrollCapture:
|
|
8246
|
-
onWheelCapture:
|
|
8245
|
+
onScrollCapture: h,
|
|
8246
|
+
onWheelCapture: h,
|
|
8247
8247
|
onTouchMoveCapture: p
|
|
8248
8248
|
}), document.addEventListener("wheel", c, Yt), document.addEventListener("touchmove", c, Yt), document.addEventListener("touchstart", d, Yt), function() {
|
|
8249
|
-
Zt = Zt.filter(function(
|
|
8250
|
-
return
|
|
8249
|
+
Zt = Zt.filter(function(f) {
|
|
8250
|
+
return f !== s;
|
|
8251
8251
|
}), document.removeEventListener("wheel", c, Yt), document.removeEventListener("touchmove", c, Yt), document.removeEventListener("touchstart", d, Yt);
|
|
8252
8252
|
};
|
|
8253
8253
|
}, []);
|
|
@@ -8288,27 +8288,27 @@ var My = function(e) {
|
|
|
8288
8288
|
}, By = function(e, t, n, r) {
|
|
8289
8289
|
var o = Fy(t, Array.isArray(e) ? e : [e]);
|
|
8290
8290
|
hr[n] || (hr[n] = /* @__PURE__ */ new WeakMap());
|
|
8291
|
-
var s = hr[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), u = function(
|
|
8292
|
-
!
|
|
8291
|
+
var s = hr[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), u = function(h) {
|
|
8292
|
+
!h || a.has(h) || (a.add(h), u(h.parentNode));
|
|
8293
8293
|
};
|
|
8294
8294
|
o.forEach(u);
|
|
8295
|
-
var d = function(
|
|
8296
|
-
!
|
|
8295
|
+
var d = function(h) {
|
|
8296
|
+
!h || c.has(h) || Array.prototype.forEach.call(h.children, function(p) {
|
|
8297
8297
|
if (a.has(p))
|
|
8298
8298
|
d(p);
|
|
8299
8299
|
else
|
|
8300
8300
|
try {
|
|
8301
|
-
var g = p.getAttribute(r), w = g !== null && g !== "false",
|
|
8302
|
-
Xt.set(p,
|
|
8301
|
+
var g = p.getAttribute(r), w = g !== null && g !== "false", f = (Xt.get(p) || 0) + 1, y = (s.get(p) || 0) + 1;
|
|
8302
|
+
Xt.set(p, f), s.set(p, y), i.push(p), f === 1 && w && fr.set(p, !0), y === 1 && p.setAttribute(n, "true"), w || p.setAttribute(r, "true");
|
|
8303
8303
|
} catch (C) {
|
|
8304
8304
|
console.error("aria-hidden: cannot operate on ", p, C);
|
|
8305
8305
|
}
|
|
8306
8306
|
});
|
|
8307
8307
|
};
|
|
8308
8308
|
return d(t), a.clear(), Eo++, function() {
|
|
8309
|
-
i.forEach(function(
|
|
8310
|
-
var p = Xt.get(
|
|
8311
|
-
Xt.set(
|
|
8309
|
+
i.forEach(function(h) {
|
|
8310
|
+
var p = Xt.get(h) - 1, g = s.get(h) - 1;
|
|
8311
|
+
Xt.set(h, p), s.set(h, g), p || (fr.has(h) || h.removeAttribute(r), fr.delete(h)), g || h.removeAttribute(n);
|
|
8312
8312
|
}), Eo--, Eo || (Xt = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), hr = {});
|
|
8313
8313
|
};
|
|
8314
8314
|
}, Uy = function(e, t, n) {
|
|
@@ -8323,7 +8323,7 @@ function Wy(e) {
|
|
|
8323
8323
|
const t = /* @__PURE__ */ Hy(e), n = m.forwardRef((r, o) => {
|
|
8324
8324
|
const { children: s, ...i } = r, a = m.Children.toArray(s), c = a.find(qy);
|
|
8325
8325
|
if (c) {
|
|
8326
|
-
const u = c.props.children, d = a.map((
|
|
8326
|
+
const u = c.props.children, d = a.map((h) => h === c ? m.Children.count(u) > 1 ? m.Children.only(null) : m.isValidElement(u) ? u.props.children : null : h);
|
|
8327
8327
|
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: m.isValidElement(u) ? m.cloneElement(u, void 0, d) : null });
|
|
8328
8328
|
}
|
|
8329
8329
|
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: s });
|
|
@@ -8387,7 +8387,7 @@ var Jr = "Dialog", [fl] = Es(Jr), [Qy, Le] = fl(Jr), hl = (e) => {
|
|
|
8387
8387
|
descriptionId: Cr(),
|
|
8388
8388
|
open: u,
|
|
8389
8389
|
onOpenChange: d,
|
|
8390
|
-
onOpenToggle: m.useCallback(() => d((
|
|
8390
|
+
onOpenToggle: m.useCallback(() => d((h) => !h), [d]),
|
|
8391
8391
|
modal: i,
|
|
8392
8392
|
children: n
|
|
8393
8393
|
}
|
|
@@ -8849,18 +8849,18 @@ const Fl = W(({
|
|
|
8849
8849
|
...r
|
|
8850
8850
|
}, o) => {
|
|
8851
8851
|
const s = Ea(null), [i, a] = Y(!1), c = j(Oe.Actions, t), u = () => {
|
|
8852
|
-
const w = Jt["DropdownList--open"],
|
|
8852
|
+
const w = Jt["DropdownList--open"], f = Jt["DropdownList--closed"];
|
|
8853
8853
|
document.querySelectorAll(`.${w}`).forEach((C) => {
|
|
8854
|
-
C !== s.current && (C.classList.remove(w), C.classList.add(
|
|
8854
|
+
C !== s.current && (C.classList.remove(w), C.classList.add(f));
|
|
8855
8855
|
});
|
|
8856
8856
|
}, d = (w) => {
|
|
8857
|
-
w.stopPropagation(), i ?
|
|
8858
|
-
},
|
|
8857
|
+
w.stopPropagation(), i ? h() : (a(!0), n == null || n(w));
|
|
8858
|
+
}, h = () => {
|
|
8859
8859
|
a(!1);
|
|
8860
8860
|
}, p = (w) => {
|
|
8861
|
-
w.key === "Escape" &&
|
|
8861
|
+
w.key === "Escape" && h();
|
|
8862
8862
|
}, g = (w) => {
|
|
8863
|
-
s.current && !s.current.contains(w.target) &&
|
|
8863
|
+
s.current && !s.current.contains(w.target) && h();
|
|
8864
8864
|
};
|
|
8865
8865
|
return ne(() => (i ? (u(), document.addEventListener("keydown", p), document.addEventListener("click", g)) : (document.removeEventListener("keydown", p), document.removeEventListener("click", g)), () => {
|
|
8866
8866
|
document.removeEventListener("keydown", p), document.removeEventListener("click", g);
|
|
@@ -9061,25 +9061,25 @@ var Kl = { exports: {} };
|
|
|
9061
9061
|
typeof i0 == "function" ? e.exports = r() : n.pluralize = r();
|
|
9062
9062
|
})($u, function() {
|
|
9063
9063
|
var n = [], r = [], o = {}, s = {}, i = {};
|
|
9064
|
-
function a(
|
|
9065
|
-
return typeof
|
|
9064
|
+
function a(f) {
|
|
9065
|
+
return typeof f == "string" ? new RegExp("^" + f + "$", "i") : f;
|
|
9066
9066
|
}
|
|
9067
|
-
function c(
|
|
9068
|
-
return
|
|
9067
|
+
function c(f, y) {
|
|
9068
|
+
return f === y ? y : f === f.toLowerCase() ? y.toLowerCase() : f === f.toUpperCase() ? y.toUpperCase() : f[0] === f[0].toUpperCase() ? y.charAt(0).toUpperCase() + y.substr(1).toLowerCase() : y.toLowerCase();
|
|
9069
9069
|
}
|
|
9070
|
-
function u(
|
|
9071
|
-
return
|
|
9070
|
+
function u(f, y) {
|
|
9071
|
+
return f.replace(/\$(\d{1,2})/g, function(C, x) {
|
|
9072
9072
|
return y[x] || "";
|
|
9073
9073
|
});
|
|
9074
9074
|
}
|
|
9075
|
-
function d(
|
|
9076
|
-
return
|
|
9075
|
+
function d(f, y) {
|
|
9076
|
+
return f.replace(y[0], function(C, x) {
|
|
9077
9077
|
var S = u(y[1], arguments);
|
|
9078
|
-
return c(C === "" ?
|
|
9078
|
+
return c(C === "" ? f[x - 1] : C, S);
|
|
9079
9079
|
});
|
|
9080
9080
|
}
|
|
9081
|
-
function f
|
|
9082
|
-
if (!
|
|
9081
|
+
function h(f, y, C) {
|
|
9082
|
+
if (!f.length || o.hasOwnProperty(f))
|
|
9083
9083
|
return y;
|
|
9084
9084
|
for (var x = C.length; x--; ) {
|
|
9085
9085
|
var S = C[x];
|
|
@@ -9087,20 +9087,20 @@ var Kl = { exports: {} };
|
|
|
9087
9087
|
}
|
|
9088
9088
|
return y;
|
|
9089
9089
|
}
|
|
9090
|
-
function p(
|
|
9090
|
+
function p(f, y, C) {
|
|
9091
9091
|
return function(x) {
|
|
9092
9092
|
var S = x.toLowerCase();
|
|
9093
|
-
return y.hasOwnProperty(S) ? c(x, S) :
|
|
9093
|
+
return y.hasOwnProperty(S) ? c(x, S) : f.hasOwnProperty(S) ? c(x, f[S]) : h(S, x, C);
|
|
9094
9094
|
};
|
|
9095
9095
|
}
|
|
9096
|
-
function g(
|
|
9096
|
+
function g(f, y, C, x) {
|
|
9097
9097
|
return function(S) {
|
|
9098
9098
|
var E = S.toLowerCase();
|
|
9099
|
-
return y.hasOwnProperty(E) ? !0 :
|
|
9099
|
+
return y.hasOwnProperty(E) ? !0 : f.hasOwnProperty(E) ? !1 : h(E, E, C) === E;
|
|
9100
9100
|
};
|
|
9101
9101
|
}
|
|
9102
|
-
function w(
|
|
9103
|
-
var x = y === 1 ? w.singular(
|
|
9102
|
+
function w(f, y, C) {
|
|
9103
|
+
var x = y === 1 ? w.singular(f) : w.plural(f);
|
|
9104
9104
|
return (C ? y + " " : "") + x;
|
|
9105
9105
|
}
|
|
9106
9106
|
return w.plural = p(
|
|
@@ -9119,18 +9119,18 @@ var Kl = { exports: {} };
|
|
|
9119
9119
|
s,
|
|
9120
9120
|
i,
|
|
9121
9121
|
r
|
|
9122
|
-
), w.addPluralRule = function(
|
|
9123
|
-
n.push([a(
|
|
9124
|
-
}, w.addSingularRule = function(
|
|
9125
|
-
r.push([a(
|
|
9126
|
-
}, w.addUncountableRule = function(
|
|
9127
|
-
if (typeof
|
|
9128
|
-
o[
|
|
9122
|
+
), w.addPluralRule = function(f, y) {
|
|
9123
|
+
n.push([a(f), y]);
|
|
9124
|
+
}, w.addSingularRule = function(f, y) {
|
|
9125
|
+
r.push([a(f), y]);
|
|
9126
|
+
}, w.addUncountableRule = function(f) {
|
|
9127
|
+
if (typeof f == "string") {
|
|
9128
|
+
o[f.toLowerCase()] = !0;
|
|
9129
9129
|
return;
|
|
9130
9130
|
}
|
|
9131
|
-
w.addPluralRule(
|
|
9132
|
-
}, w.addIrregularRule = function(
|
|
9133
|
-
y = y.toLowerCase(),
|
|
9131
|
+
w.addPluralRule(f, "$0"), w.addSingularRule(f, "$0");
|
|
9132
|
+
}, w.addIrregularRule = function(f, y) {
|
|
9133
|
+
y = y.toLowerCase(), f = f.toLowerCase(), i[f] = y, s[y] = f;
|
|
9134
9134
|
}, [
|
|
9135
9135
|
// Pronouns.
|
|
9136
9136
|
["I", "we"],
|
|
@@ -9184,8 +9184,8 @@ var Kl = { exports: {} };
|
|
|
9184
9184
|
["groove", "grooves"],
|
|
9185
9185
|
["pickaxe", "pickaxes"],
|
|
9186
9186
|
["passerby", "passersby"]
|
|
9187
|
-
].forEach(function(
|
|
9188
|
-
return w.addIrregularRule(
|
|
9187
|
+
].forEach(function(f) {
|
|
9188
|
+
return w.addIrregularRule(f[0], f[1]);
|
|
9189
9189
|
}), [
|
|
9190
9190
|
[/s?$/i, "s"],
|
|
9191
9191
|
[/[^\u0000-\u007F]$/i, "$0"],
|
|
@@ -9212,8 +9212,8 @@ var Kl = { exports: {} };
|
|
|
9212
9212
|
[/eaux$/i, "$0"],
|
|
9213
9213
|
[/m[ae]n$/i, "men"],
|
|
9214
9214
|
["thou", "you"]
|
|
9215
|
-
].forEach(function(
|
|
9216
|
-
return w.addPluralRule(
|
|
9215
|
+
].forEach(function(f) {
|
|
9216
|
+
return w.addPluralRule(f[0], f[1]);
|
|
9217
9217
|
}), [
|
|
9218
9218
|
[/s$/i, ""],
|
|
9219
9219
|
[/(ss)$/i, "$1"],
|
|
@@ -9238,8 +9238,8 @@ var Kl = { exports: {} };
|
|
|
9238
9238
|
[/(child)ren$/i, "$1"],
|
|
9239
9239
|
[/(eau)x?$/i, "$1"],
|
|
9240
9240
|
[/men$/i, "man"]
|
|
9241
|
-
].forEach(function(
|
|
9242
|
-
return w.addSingularRule(
|
|
9241
|
+
].forEach(function(f) {
|
|
9242
|
+
return w.addSingularRule(f[0], f[1]);
|
|
9243
9243
|
}), [
|
|
9244
9244
|
// Singular words with no plurals.
|
|
9245
9245
|
"adulthood",
|
|
@@ -9441,29 +9441,29 @@ const eu = ({
|
|
|
9441
9441
|
);
|
|
9442
9442
|
eu.displayName = "ArrowDown";
|
|
9443
9443
|
const _0 = ({ columns: e, data: t, isLoading: n, totalCount: r = 0, headerLabel: o, sort: s, loadingConfig: i, pagination: a, onRowClick: c }) => {
|
|
9444
|
-
const { count: u = 5, height: d = 40 } = i || {},
|
|
9444
|
+
const { count: u = 5, height: d = 40 } = i || {}, h = (y) => y.sortName ?? y.name, p = (y) => j({
|
|
9445
9445
|
[me.Cell]: !0,
|
|
9446
9446
|
[me.Center]: y.align === "center",
|
|
9447
9447
|
[me.Right]: y.align === "right",
|
|
9448
9448
|
[me.Sortable]: y.isSortable
|
|
9449
9449
|
}), g = (y) => {
|
|
9450
9450
|
if (!s) return "";
|
|
9451
|
-
const C =
|
|
9451
|
+
const C = h(y);
|
|
9452
9452
|
return j({
|
|
9453
9453
|
[me.SortIcon]: !0,
|
|
9454
9454
|
[me.Active]: y.isSortable && s.field === C,
|
|
9455
9455
|
[me.Rotate]: s.field === C && s.direction === "asc"
|
|
9456
9456
|
});
|
|
9457
|
-
}, w = (y) => () => c == null ? void 0 : c(y),
|
|
9457
|
+
}, w = (y) => () => c == null ? void 0 : c(y), f = (y) => () => {
|
|
9458
9458
|
if (!s || !y.isSortable) return;
|
|
9459
|
-
const { field: C, direction: x, onSort: S } = s, E =
|
|
9459
|
+
const { field: C, direction: x, onSort: S } = s, E = h(y);
|
|
9460
9460
|
C === E ? S(E, x === "asc" ? "desc" : "asc") : S(E, "asc");
|
|
9461
9461
|
};
|
|
9462
9462
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
9463
9463
|
/* @__PURE__ */ l.jsxs("div", { className: me.TableContainer, children: [
|
|
9464
9464
|
o && /* @__PURE__ */ l.jsx("div", { className: me.TableHeader, children: /* @__PURE__ */ l.jsx(Yl, { count: r, singularText: o, children: (y, C) => `${y} ${C}` }) }),
|
|
9465
9465
|
/* @__PURE__ */ l.jsxs("table", { className: me.Table, children: [
|
|
9466
|
-
/* @__PURE__ */ l.jsx("thead", { children: /* @__PURE__ */ l.jsx("tr", { children: e.map((y) => /* @__PURE__ */ l.jsx("th", { children: /* @__PURE__ */ l.jsxs("div", { className: p(y), onClick:
|
|
9466
|
+
/* @__PURE__ */ l.jsx("thead", { children: /* @__PURE__ */ l.jsx("tr", { children: e.map((y) => /* @__PURE__ */ l.jsx("th", { children: /* @__PURE__ */ l.jsxs("div", { className: p(y), onClick: f(y), children: [
|
|
9467
9467
|
/* @__PURE__ */ l.jsx("span", { children: y.displayName }),
|
|
9468
9468
|
y.isSortable && /* @__PURE__ */ l.jsx(eu, { className: g(y) })
|
|
9469
9469
|
] }) }, y.name)) }) }),
|
|
@@ -9627,20 +9627,20 @@ function k0(e, t) {
|
|
|
9627
9627
|
var o = ru(e, t, function() {
|
|
9628
9628
|
n(this);
|
|
9629
9629
|
}), s = nu(e, t)(), i = function(a) {
|
|
9630
|
-
var c = a.reactDom, u = a.renderType, d = a.elementToRender,
|
|
9630
|
+
var c = a.reactDom, u = a.renderType, d = a.elementToRender, h = a.domElement, p = c[u];
|
|
9631
9631
|
if (typeof p != "function") throw new Error('renderType "'.concat(u, '" did not return a function.'));
|
|
9632
9632
|
switch (u) {
|
|
9633
9633
|
case "createRoot":
|
|
9634
9634
|
case "unstable_createRoot":
|
|
9635
9635
|
case "createBlockingRoot":
|
|
9636
9636
|
case "unstable_createBlockingRoot":
|
|
9637
|
-
var g = p(
|
|
9637
|
+
var g = p(h);
|
|
9638
9638
|
return g.render(d), g;
|
|
9639
9639
|
case "hydrateRoot":
|
|
9640
|
-
return p(
|
|
9640
|
+
return p(h, d);
|
|
9641
9641
|
case "hydrate":
|
|
9642
9642
|
default:
|
|
9643
|
-
return p(d,
|
|
9643
|
+
return p(d, h), null;
|
|
9644
9644
|
}
|
|
9645
9645
|
}({ elementToRender: o, domElement: s, reactDom: Ws(e), renderType: F0(e) });
|
|
9646
9646
|
e.domElements[t.name] = s, e.renderResults[t.name] = i;
|
|
@@ -9804,53 +9804,52 @@ const So = {
|
|
|
9804
9804
|
const t = ka("@bluealba/pae-rooms-service"), [n, r] = Y([]), [o, s] = Y("loading"), [i, a] = Y(null);
|
|
9805
9805
|
ne(() => {
|
|
9806
9806
|
if (t) {
|
|
9807
|
-
const
|
|
9808
|
-
return
|
|
9807
|
+
const f = new WebSocket(t);
|
|
9808
|
+
return f.onopen = () => {
|
|
9809
9809
|
s("connected");
|
|
9810
|
-
},
|
|
9810
|
+
}, f.addEventListener("message", async (y) => {
|
|
9811
9811
|
try {
|
|
9812
|
-
const
|
|
9813
|
-
|
|
9814
|
-
} catch (
|
|
9815
|
-
console.error("Error parsing WebSocket message:",
|
|
9812
|
+
const C = await c(y);
|
|
9813
|
+
C.event === So.USER_LIST && p(C.data);
|
|
9814
|
+
} catch (C) {
|
|
9815
|
+
console.error("Error parsing WebSocket message:", C);
|
|
9816
9816
|
}
|
|
9817
|
-
}),
|
|
9817
|
+
}), f.onclose = () => {
|
|
9818
9818
|
s("closed");
|
|
9819
|
-
},
|
|
9819
|
+
}, f.onerror = () => {
|
|
9820
9820
|
s("error");
|
|
9821
|
-
}, a(
|
|
9822
|
-
|
|
9821
|
+
}, a(f), () => {
|
|
9822
|
+
f.close();
|
|
9823
9823
|
};
|
|
9824
9824
|
}
|
|
9825
9825
|
}, [t]);
|
|
9826
|
-
const c = async (
|
|
9827
|
-
if (
|
|
9828
|
-
const
|
|
9829
|
-
return JSON.parse(
|
|
9826
|
+
const c = async (f) => {
|
|
9827
|
+
if (f.data instanceof Blob) {
|
|
9828
|
+
const y = await f.data.text();
|
|
9829
|
+
return JSON.parse(y);
|
|
9830
9830
|
} else
|
|
9831
|
-
return JSON.parse(
|
|
9832
|
-
}, u = (
|
|
9833
|
-
i && i.send(JSON.stringify({
|
|
9834
|
-
event:
|
|
9835
|
-
data:
|
|
9836
|
-
}));
|
|
9837
|
-
}, d = (w) => {
|
|
9838
|
-
i && i.send(JSON.stringify({
|
|
9839
|
-
event: So.LEAVE_ROOM,
|
|
9840
|
-
data: { roomId: w }
|
|
9831
|
+
return JSON.parse(f.data);
|
|
9832
|
+
}, u = (f, y) => {
|
|
9833
|
+
i && i.readyState === WebSocket.OPEN && i.send(JSON.stringify({
|
|
9834
|
+
event: f,
|
|
9835
|
+
data: y
|
|
9841
9836
|
}));
|
|
9842
|
-
},
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9837
|
+
}, d = (f) => {
|
|
9838
|
+
u(So.JOIN_ROOM, { roomId: f });
|
|
9839
|
+
}, h = (f) => {
|
|
9840
|
+
u(So.LEAVE_ROOM, { roomId: f });
|
|
9841
|
+
}, p = (f) => {
|
|
9842
|
+
r(f.map((y) => ({
|
|
9843
|
+
...y,
|
|
9844
|
+
color: W0(y.username)
|
|
9846
9845
|
})));
|
|
9847
|
-
},
|
|
9846
|
+
}, g = ce((f) => n.filter((y) => y.rooms.includes(f)), [n]), w = {
|
|
9848
9847
|
status: o,
|
|
9849
|
-
getRoomUsers:
|
|
9850
|
-
joinRoom:
|
|
9851
|
-
leaveRoom:
|
|
9848
|
+
getRoomUsers: g,
|
|
9849
|
+
joinRoom: d,
|
|
9850
|
+
leaveRoom: h
|
|
9852
9851
|
};
|
|
9853
|
-
return /* @__PURE__ */ l.jsx(su.Provider, { value:
|
|
9852
|
+
return /* @__PURE__ */ l.jsx(su.Provider, { value: w, children: e });
|
|
9854
9853
|
};
|
|
9855
9854
|
function I2(e) {
|
|
9856
9855
|
const t = ds(su);
|
|
@@ -9883,16 +9882,16 @@ const H0 = "container__LbyGQ", V0 = "avatarWrapper__HCQIZ", q0 = "avatar__E453a"
|
|
|
9883
9882
|
className: o = "",
|
|
9884
9883
|
onUserClick: s
|
|
9885
9884
|
}) => {
|
|
9886
|
-
const i = Q0[n], a = Ue(() => e.slice(0, t), [e, t]), c = Ue(() => e.slice(t), [e, t]), u = Math.max(0, e.length - t), d = (
|
|
9885
|
+
const i = Q0[n], a = Ue(() => e.slice(0, t), [e, t]), c = Ue(() => e.slice(t), [e, t]), u = Math.max(0, e.length - t), d = (h) => h.split(" ").map((p) => p[0]).join("").toUpperCase().slice(0, 2);
|
|
9887
9886
|
return /* @__PURE__ */ l.jsxs("div", { className: j(Tn.container, o), children: [
|
|
9888
|
-
a.map((
|
|
9887
|
+
a.map((h, p) => /* @__PURE__ */ l.jsx(is, { tooltipContent: h.displayName, side: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
9889
9888
|
"div",
|
|
9890
9889
|
{
|
|
9891
9890
|
className: Tn.avatarWrapper,
|
|
9892
9891
|
style: {
|
|
9893
9892
|
marginLeft: p > 0 && r ? `-${i * 0.25}px` : void 0
|
|
9894
9893
|
},
|
|
9895
|
-
onClick: () => s == null ? void 0 : s(
|
|
9894
|
+
onClick: () => s == null ? void 0 : s(h),
|
|
9896
9895
|
children: /* @__PURE__ */ l.jsx(
|
|
9897
9896
|
"div",
|
|
9898
9897
|
{
|
|
@@ -9900,21 +9899,20 @@ const H0 = "container__LbyGQ", V0 = "avatarWrapper__HCQIZ", q0 = "avatar__E453a"
|
|
|
9900
9899
|
style: {
|
|
9901
9900
|
width: i,
|
|
9902
9901
|
height: i,
|
|
9903
|
-
backgroundColor:
|
|
9902
|
+
backgroundColor: h.color,
|
|
9904
9903
|
fontSize: n === "sm" ? "10px" : n === "md" ? "12px" : "14px",
|
|
9905
9904
|
cursor: s ? "pointer" : "default"
|
|
9906
9905
|
},
|
|
9907
|
-
children: d(
|
|
9906
|
+
children: d(h.displayName)
|
|
9908
9907
|
}
|
|
9909
9908
|
)
|
|
9910
|
-
}
|
|
9911
|
-
|
|
9912
|
-
) })),
|
|
9909
|
+
}
|
|
9910
|
+
) }, h.username)),
|
|
9913
9911
|
u > 0 && /* @__PURE__ */ l.jsx(
|
|
9914
9912
|
is,
|
|
9915
9913
|
{
|
|
9916
9914
|
side: "bottom",
|
|
9917
|
-
tooltipContent: /* @__PURE__ */ l.jsx("div", { children: c.map((
|
|
9915
|
+
tooltipContent: /* @__PURE__ */ l.jsx("div", { children: c.map((h) => /* @__PURE__ */ l.jsx("p", { children: h.displayName }, h.username)) }),
|
|
9918
9916
|
children: /* @__PURE__ */ l.jsx(
|
|
9919
9917
|
"div",
|
|
9920
9918
|
{
|