@bluealba/pae-ui-react-core 4.1.2-develop-1324 → 4.1.2-develop-1326
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 +45 -45
- package/dist/index.esm.js +844 -816
- package/dist/index.systemjs.js +35 -35
- package/dist/index.umd.js +41 -41
- package/dist/src/rooms/hooks/useRoom.d.ts +27 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './index.css';var ti = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var b = (e, t, n) => (
|
|
4
|
+
var lo = (e, t, n) => t.has(e) || ti("Cannot " + n);
|
|
5
|
+
var b = (e, t, n) => (lo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? ti("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), O = (e, t, n, r) => (lo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), $ = (e, t, n) => (lo(e, t, "access private method"), n);
|
|
6
6
|
var Kn = (e, t, n, r) => ({
|
|
7
7
|
set _(o) {
|
|
8
8
|
O(e, t, o, n);
|
|
@@ -12,11 +12,11 @@ var Kn = (e, t, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import * as m from "react";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import us, { useState as Y, useEffect as ne, useCallback as ce, createContext as ds, useContext as fs, useMemo as Pe, forwardRef as W, Children as Au, isValidElement as ni, useLayoutEffect as Ou, useRef as Ea } from "react";
|
|
16
|
+
import uo, { navigateToUrl as Pu } from "single-spa";
|
|
17
17
|
import * as Sa from "react-dom";
|
|
18
18
|
import ju from "react-dom";
|
|
19
|
-
const
|
|
19
|
+
const n2 = {
|
|
20
20
|
auth: {
|
|
21
21
|
SESSION_EXPIRED: "platform:auth:session-expired"
|
|
22
22
|
},
|
|
@@ -27,7 +27,7 @@ const t2 = {
|
|
|
27
27
|
NAVBAR_STATE_CHANGED: "platform:shell:navbar-state-changed",
|
|
28
28
|
MENU_STATE_CHANGED: "platform:shell:menu-state-changed"
|
|
29
29
|
}
|
|
30
|
-
}, Pn = "__PAE_GLOBAL_STATE__", _a = "__PAE_REACTIVE_GLOBAL_STATE__", Ra = "__PAE_EXTENSIONS_POINTS_REGISTRY__",
|
|
30
|
+
}, Pn = "__PAE_GLOBAL_STATE__", _a = "__PAE_REACTIVE_GLOBAL_STATE__", Ra = "__PAE_EXTENSIONS_POINTS_REGISTRY__", Ro = "__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__", Du = "/auth/logout", Lu = (e, t) => {
|
|
31
31
|
const [n, r] = Y(t);
|
|
32
32
|
return ne(() => {
|
|
33
33
|
const o = e.subscribe((s) => {
|
|
@@ -39,19 +39,19 @@ const t2 = {
|
|
|
39
39
|
}, [r]), n;
|
|
40
40
|
}, Nu = (e, t, n) => n.map(
|
|
41
41
|
(r, o) => o === e ? t(r) : r
|
|
42
|
-
), ku = (e, t, n) => Nu(n.findIndex(e), t, n),
|
|
42
|
+
), ku = (e, t, n) => Nu(n.findIndex(e), t, n), To = (e, t) => typeof e == "function" ? e(t) : e, Ta = (e, t) => {
|
|
43
43
|
const n = Lu(e, t), r = ce((o) => {
|
|
44
|
-
e.next(
|
|
44
|
+
e.next(To(o, n));
|
|
45
45
|
}, [n]);
|
|
46
46
|
return [n, r];
|
|
47
47
|
}, Fr = () => Ta(
|
|
48
48
|
window[_a],
|
|
49
49
|
window[Pn]
|
|
50
|
-
), Br = () => Fr()[0].catalog,
|
|
50
|
+
), Br = () => Fr()[0].catalog, r2 = () => {
|
|
51
51
|
const e = Br(), t = ce((r) => {
|
|
52
52
|
window[_a].next({
|
|
53
53
|
...window[Pn],
|
|
54
|
-
catalog:
|
|
54
|
+
catalog: To(r, e)
|
|
55
55
|
});
|
|
56
56
|
}, [e]), n = ce((r, o) => {
|
|
57
57
|
t((s) => ku(
|
|
@@ -62,7 +62,7 @@ const t2 = {
|
|
|
62
62
|
...i,
|
|
63
63
|
ui: {
|
|
64
64
|
...i.ui,
|
|
65
|
-
customProps:
|
|
65
|
+
customProps: To(o, ((a = i.ui) == null ? void 0 : a.customProps) ?? {})
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
},
|
|
@@ -99,7 +99,7 @@ function Fu() {
|
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
100
|
*/
|
|
101
101
|
return function() {
|
|
102
|
-
var e =
|
|
102
|
+
var e = us, 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"), l = 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;
|
|
@@ -127,7 +127,7 @@ function Fu() {
|
|
|
127
127
|
var E = !1, _ = !1, A = !1, T = !1, I = !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 || I || v === o || v ===
|
|
130
|
+
return !!(typeof v == "string" || typeof v == "function" || v === r || v === s || I || v === o || v === l || 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.
|
|
@@ -159,7 +159,7 @@ function Fu() {
|
|
|
159
159
|
return "Profiler";
|
|
160
160
|
case o:
|
|
161
161
|
return "StrictMode";
|
|
162
|
-
case
|
|
162
|
+
case l:
|
|
163
163
|
return "Suspense";
|
|
164
164
|
case d:
|
|
165
165
|
return "SuspenseList";
|
|
@@ -192,7 +192,7 @@ function Fu() {
|
|
|
192
192
|
function Vn() {
|
|
193
193
|
}
|
|
194
194
|
Vn.__reactDisabledLog = !0;
|
|
195
|
-
function
|
|
195
|
+
function no() {
|
|
196
196
|
{
|
|
197
197
|
if (oe === 0) {
|
|
198
198
|
X = console.log, J = console.info, M = console.warn, se = console.error, we = console.group, xt = console.groupCollapsed, Hn = console.groupEnd;
|
|
@@ -215,7 +215,7 @@ function Fu() {
|
|
|
215
215
|
oe++;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ro() {
|
|
219
219
|
{
|
|
220
220
|
if (oe--, oe === 0) {
|
|
221
221
|
var v = {
|
|
@@ -282,7 +282,7 @@ function Fu() {
|
|
|
282
282
|
var q = Error.prepareStackTrace;
|
|
283
283
|
Error.prepareStackTrace = void 0;
|
|
284
284
|
var K;
|
|
285
|
-
K = En.current, En.current = null,
|
|
285
|
+
K = En.current, En.current = null, no();
|
|
286
286
|
try {
|
|
287
287
|
if (R) {
|
|
288
288
|
var U = function() {
|
|
@@ -335,7 +335,7 @@ function Fu() {
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
} finally {
|
|
338
|
-
zt = !1, En.current = K,
|
|
338
|
+
zt = !1, En.current = K, ro(), Error.prepareStackTrace = q;
|
|
339
339
|
}
|
|
340
340
|
var Kt = v ? v.displayName || v.name : "", Tt = Kt ? Et(Kt) : "";
|
|
341
341
|
return typeof v == "function" && St.set(v, Tt), Tt;
|
|
@@ -355,7 +355,7 @@ function Fu() {
|
|
|
355
355
|
if (typeof v == "string")
|
|
356
356
|
return Et(v);
|
|
357
357
|
switch (v) {
|
|
358
|
-
case
|
|
358
|
+
case l:
|
|
359
359
|
return Et("Suspense");
|
|
360
360
|
case d:
|
|
361
361
|
return Et("SuspenseList");
|
|
@@ -404,7 +404,7 @@ function Fu() {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
var au = Array.isArray;
|
|
407
|
-
function
|
|
407
|
+
function oo(v) {
|
|
408
408
|
return au(v);
|
|
409
409
|
}
|
|
410
410
|
function cu(v) {
|
|
@@ -521,7 +521,7 @@ function Fu() {
|
|
|
521
521
|
return gu(v, F, le, q, k, qs.current, U);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
var
|
|
524
|
+
var so = C.ReactCurrentOwner, Qs = C.ReactDebugCurrentFrame;
|
|
525
525
|
function Qt(v) {
|
|
526
526
|
if (v) {
|
|
527
527
|
var R = v._owner, P = Gt(v.type, v._source, R ? R.type : null);
|
|
@@ -529,15 +529,15 @@ function Fu() {
|
|
|
529
529
|
} else
|
|
530
530
|
Qs.setExtraStackFrame(null);
|
|
531
531
|
}
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
function
|
|
532
|
+
var io;
|
|
533
|
+
io = !1;
|
|
534
|
+
function ao(v) {
|
|
535
535
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
536
536
|
}
|
|
537
537
|
function Ks() {
|
|
538
538
|
{
|
|
539
|
-
if (
|
|
540
|
-
var v = H(
|
|
539
|
+
if (so.current) {
|
|
540
|
+
var v = H(so.current.type);
|
|
541
541
|
if (v)
|
|
542
542
|
return `
|
|
543
543
|
|
|
@@ -572,25 +572,25 @@ Check the top-level render call using <` + P + ">.");
|
|
|
572
572
|
return;
|
|
573
573
|
Ys[P] = !0;
|
|
574
574
|
var k = "";
|
|
575
|
-
v && v._owner && v._owner !==
|
|
575
|
+
v && v._owner && v._owner !== so.current && (k = " It was passed a child from " + H(v._owner.type) + "."), Qt(v), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, k), Qt(null);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function Xs(v, R) {
|
|
579
579
|
{
|
|
580
580
|
if (typeof v != "object")
|
|
581
581
|
return;
|
|
582
|
-
if (
|
|
582
|
+
if (oo(v))
|
|
583
583
|
for (var P = 0; P < v.length; P++) {
|
|
584
584
|
var k = v[P];
|
|
585
|
-
|
|
585
|
+
ao(k) && Zs(k, R);
|
|
586
586
|
}
|
|
587
|
-
else if (
|
|
587
|
+
else if (ao(v))
|
|
588
588
|
v._store && (v._store.validated = !0);
|
|
589
589
|
else if (v) {
|
|
590
590
|
var q = y(v);
|
|
591
591
|
if (typeof q == "function" && q !== v.entries)
|
|
592
592
|
for (var K = q.call(v), U; !(U = K.next()).done; )
|
|
593
|
-
|
|
593
|
+
ao(U.value) && Zs(U.value, R);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
}
|
|
@@ -611,8 +611,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
611
611
|
if (P) {
|
|
612
612
|
var k = H(R);
|
|
613
613
|
iu(P, v.props, "prop", k, v);
|
|
614
|
-
} else if (R.PropTypes !== void 0 && !
|
|
615
|
-
|
|
614
|
+
} else if (R.PropTypes !== void 0 && !io) {
|
|
615
|
+
io = !0;
|
|
616
616
|
var q = H(R);
|
|
617
617
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
618
618
|
}
|
|
@@ -641,7 +641,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
641
641
|
var le = vu();
|
|
642
642
|
le ? F += le : F += Ks();
|
|
643
643
|
var te;
|
|
644
|
-
v === null ? te = "null" :
|
|
644
|
+
v === null ? te = "null" : oo(v) ? te = "array" : v !== void 0 && v.$$typeof === t ? (te = "<" + (H(v.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : te = typeof v, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, F);
|
|
645
645
|
}
|
|
646
646
|
var re = yu(v, R, P, q, K);
|
|
647
647
|
if (re == null)
|
|
@@ -650,7 +650,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
650
650
|
var Se = R.children;
|
|
651
651
|
if (Se !== void 0)
|
|
652
652
|
if (k)
|
|
653
|
-
if (
|
|
653
|
+
if (oo(Se)) {
|
|
654
654
|
for (var Kt = 0; Kt < Se.length; Kt++)
|
|
655
655
|
Xs(Se[Kt], v);
|
|
656
656
|
Object.freeze && Object.freeze(Se);
|
|
@@ -662,15 +662,15 @@ Check the top-level render call using <` + P + ">.");
|
|
|
662
662
|
if (Rt.call(R, "key")) {
|
|
663
663
|
var Tt = H(v), pe = Object.keys(R).filter(function(Tu) {
|
|
664
664
|
return Tu !== "key";
|
|
665
|
-
}),
|
|
666
|
-
if (!Js[Tt +
|
|
665
|
+
}), co = pe.length > 0 ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
666
|
+
if (!Js[Tt + co]) {
|
|
667
667
|
var Ru = pe.length > 0 ? "{" + pe.join(": ..., ") + ": ...}" : "{}";
|
|
668
668
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
669
669
|
let props = %s;
|
|
670
670
|
<%s {...props} />
|
|
671
671
|
React keys must be passed directly to JSX without using spread:
|
|
672
672
|
let props = %s;
|
|
673
|
-
<%s key={someKey} {...props} />`,
|
|
673
|
+
<%s key={someKey} {...props} />`, co, Tt, Ru, Tt), Js[Tt + co] = !0;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
return v === r ? Cu(re) : wu(re), re;
|
|
@@ -687,34 +687,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
687
687
|
}(), _n;
|
|
688
688
|
}
|
|
689
689
|
Aa.exports = Fu();
|
|
690
|
-
var
|
|
691
|
-
const Oa =
|
|
690
|
+
var u = Aa.exports;
|
|
691
|
+
const Oa = ds(null), Pa = ({ module: e, children: t }) => /* @__PURE__ */ u.jsx(Oa.Provider, { value: e, children: t });
|
|
692
692
|
Pa.displayName = "PAEModule";
|
|
693
693
|
const Ur = () => {
|
|
694
|
-
const e =
|
|
694
|
+
const e = fs(Oa);
|
|
695
695
|
if (!e)
|
|
696
696
|
throw new Error("Module metadata was not setup yet !!");
|
|
697
697
|
return e;
|
|
698
698
|
};
|
|
699
|
-
function
|
|
699
|
+
function hs() {
|
|
700
700
|
if (!window[Pn])
|
|
701
701
|
throw new Error("PAE Global state not found.");
|
|
702
702
|
return window[Pn];
|
|
703
703
|
}
|
|
704
704
|
const ja = () => {
|
|
705
|
-
const { authUser: { applications: e } } =
|
|
705
|
+
const { authUser: { applications: e } } = hs();
|
|
706
706
|
return e || [];
|
|
707
707
|
}, Bu = (e) => ja().filter((t) => t.isGlobal || t.name === e).flatMap((t) => t.operations), Uu = () => {
|
|
708
708
|
const { application: e } = Ur();
|
|
709
709
|
return Pe(() => Bu(e), [e]);
|
|
710
|
-
}, Wu = (e) => (...t) => t.every((n) => e.some((r) => r.name === n)),
|
|
710
|
+
}, Wu = (e) => (...t) => t.every((n) => e.some((r) => r.name === n)), Wr = () => {
|
|
711
711
|
const [{ authUser: e }] = Fr(), t = Uu();
|
|
712
712
|
return {
|
|
713
713
|
authUser: e,
|
|
714
714
|
hasAccess: Pe(() => Wu(t), [t])
|
|
715
715
|
};
|
|
716
|
-
},
|
|
717
|
-
const { authUser: e } =
|
|
716
|
+
}, o2 = () => {
|
|
717
|
+
const { authUser: e } = Wr();
|
|
718
718
|
return !e || e.id === "anon";
|
|
719
719
|
}, Hu = () => {
|
|
720
720
|
var e;
|
|
@@ -730,12 +730,12 @@ const ja = () => {
|
|
|
730
730
|
}, Vu = (e) => {
|
|
731
731
|
var t, n;
|
|
732
732
|
return ((n = (t = Da(e)) == null ? void 0 : t.ui) == null ? void 0 : n.customProps) ?? {};
|
|
733
|
-
}, qu = (e) => e.replace(/\/+/g, "/"),
|
|
733
|
+
}, qu = (e) => e.replace(/\/+/g, "/"), s2 = (e, t = "only-base-path") => {
|
|
734
734
|
const { apiDocs: n, health: r, version: o, changelog: s } = (e == null ? void 0 : e.commonPaths) || {}, i = (a, c = "") => {
|
|
735
735
|
if (a === void 0 && !c) return;
|
|
736
|
-
const
|
|
737
|
-
if (t === "only-base-path") return
|
|
738
|
-
const d = qu(`${e.baseUrl}/${
|
|
736
|
+
const l = a ?? c;
|
|
737
|
+
if (t === "only-base-path") return l;
|
|
738
|
+
const d = qu(`${e.baseUrl}/${l}`);
|
|
739
739
|
return t === "with-module-base" ? d : `${document.location.origin}${d}`;
|
|
740
740
|
};
|
|
741
741
|
return {
|
|
@@ -745,24 +745,24 @@ const ja = () => {
|
|
|
745
745
|
changelogPath: i(s, "/changelog")
|
|
746
746
|
};
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function i2() {
|
|
749
749
|
window.open(Du, "_self");
|
|
750
750
|
}
|
|
751
|
-
const
|
|
751
|
+
const a2 = (e) => Pu(e), zu = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/, c2 = (e) => zu.test(e), l2 = (e, t = 2) => {
|
|
752
752
|
if (!e) return "";
|
|
753
753
|
const n = e.split(" ");
|
|
754
754
|
return n.length === 1 ? n.join("").slice(0, t) : n.map((r) => r[0]).join("").slice(0, t);
|
|
755
755
|
}, La = (e) => e.type === "app", Gu = (e) => e.modules.some(La) && e.route && e.route !== "/", Na = (e) => {
|
|
756
|
-
const { catalog: t } =
|
|
757
|
-
return
|
|
758
|
-
},
|
|
756
|
+
const { catalog: t } = hs();
|
|
757
|
+
return Hr(t.filter((n) => n.application === e));
|
|
758
|
+
}, Hr = (e = []) => e.find((t) => {
|
|
759
759
|
var n;
|
|
760
760
|
return La(t) && ((n = t.ui) == null ? void 0 : n.route) !== "/";
|
|
761
761
|
}), Qu = () => {
|
|
762
762
|
const e = Br();
|
|
763
763
|
return Pe(() => ja().map((n) => {
|
|
764
764
|
var s, i, a;
|
|
765
|
-
const r = Ku(e, n.name), o =
|
|
765
|
+
const r = Ku(e, n.name), o = Hr(r);
|
|
766
766
|
return {
|
|
767
767
|
name: n.name,
|
|
768
768
|
displayName: ((i = (s = o == null ? void 0 : o.ui) == null ? void 0 : s.customProps) == null ? void 0 : i.overrideApplicationDisplayName) ?? n.displayName,
|
|
@@ -781,7 +781,7 @@ const i2 = (e) => Pu(e), zu = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)
|
|
|
781
781
|
);
|
|
782
782
|
}, Zu = (e) => Pe(() => e ? Na(e.name) : void 0, [e]), gt = /* @__PURE__ */ new Map(), Xu = (e) => {
|
|
783
783
|
try {
|
|
784
|
-
const { catalog: t } =
|
|
784
|
+
const { catalog: t } = hs(), n = t.find((r) => r.name === e);
|
|
785
785
|
return n != null && n.version ? `${e}@${n.version}` : e;
|
|
786
786
|
} catch {
|
|
787
787
|
return e;
|
|
@@ -820,10 +820,10 @@ typeof window < "u" && (window.PAE = {
|
|
|
820
820
|
getModuleCacheKeys: () => Array.from(gt.keys())
|
|
821
821
|
});
|
|
822
822
|
const ed = (e) => {
|
|
823
|
-
const t = typeof e == "string" ? Na(e) :
|
|
823
|
+
const t = typeof e == "string" ? Na(e) : Hr(e == null ? void 0 : e.modules), n = ps(t == null ? void 0 : t.name);
|
|
824
824
|
return n == null ? void 0 : n.icon;
|
|
825
825
|
}, td = (e) => {
|
|
826
|
-
const t =
|
|
826
|
+
const t = Hr(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
829
|
const h = nd((e == null ? void 0 : e.operations) || []), p = (await a()).map((g) => {
|
|
@@ -836,16 +836,16 @@ const ed = (e) => {
|
|
|
836
836
|
return !C.length && !y ? null : { ...g, items: C };
|
|
837
837
|
}).filter(Boolean);
|
|
838
838
|
return o(!1), p;
|
|
839
|
-
},
|
|
839
|
+
}, l = async () => {
|
|
840
840
|
const h = await c();
|
|
841
841
|
e && i((p) => ({ ...p, [e.name]: h }));
|
|
842
842
|
};
|
|
843
843
|
ne(() => {
|
|
844
|
-
|
|
844
|
+
l();
|
|
845
845
|
}, [n == null ? void 0 : n.menu]);
|
|
846
846
|
const d = Pe(() => e ? s[e.name] || [] : [], [s, e]);
|
|
847
847
|
return { loading: r, menu: d };
|
|
848
|
-
}, nd = (e) => (t) => t.every((n) => e.some((r) => r.name === n)),
|
|
848
|
+
}, nd = (e) => (t) => t.every((n) => e.some((r) => r.name === n)), u2 = (e) => td(e);
|
|
849
849
|
function Z(e) {
|
|
850
850
|
return e != null && typeof e == "object" && e["@@functional/placeholder"] === !0;
|
|
851
851
|
}
|
|
@@ -950,7 +950,7 @@ const ka = () => {
|
|
|
950
950
|
}, ud = () => {
|
|
951
951
|
var e;
|
|
952
952
|
return (e = ka()) == null ? void 0 : e.name;
|
|
953
|
-
},
|
|
953
|
+
}, d2 = () => {
|
|
954
954
|
const e = ka(), t = Zu(e);
|
|
955
955
|
return ps(t == null ? void 0 : t.name);
|
|
956
956
|
}, Ia = (e, t) => {
|
|
@@ -1010,9 +1010,9 @@ const ka = () => {
|
|
|
1010
1010
|
if (!o.ok)
|
|
1011
1011
|
throw new Error(`Error publishing habits event ${o.statusText}`);
|
|
1012
1012
|
}, gd = "@bluealba/pae-habits-service", yd = () => {
|
|
1013
|
-
const { authUser: e } =
|
|
1013
|
+
const { authUser: e } = Wr(), t = Ur(), n = $a(gd);
|
|
1014
1014
|
return ce(md(n, e, t), [n, e, t]);
|
|
1015
|
-
},
|
|
1015
|
+
}, f2 = () => {
|
|
1016
1016
|
const e = yd();
|
|
1017
1017
|
return ce(
|
|
1018
1018
|
(t, n) => e([{ name: t, data: n }]),
|
|
@@ -1061,11 +1061,11 @@ function Rd(e) {
|
|
|
1061
1061
|
r.setAttribute("data-generated-fonts", "true");
|
|
1062
1062
|
const o = e.flatMap(
|
|
1063
1063
|
({ fontFamily: i, variants: a }) => a.map(
|
|
1064
|
-
({ path: c, fontWeight:
|
|
1064
|
+
({ path: c, fontWeight: l, format: d }) => `
|
|
1065
1065
|
@font-face {
|
|
1066
1066
|
font-family: "${i}";
|
|
1067
1067
|
src: url("${c}") ${_d(c, d)};
|
|
1068
|
-
font-weight: ${
|
|
1068
|
+
font-weight: ${l};
|
|
1069
1069
|
font-style: normal;
|
|
1070
1070
|
}
|
|
1071
1071
|
`
|
|
@@ -1087,17 +1087,17 @@ function Rd(e) {
|
|
|
1087
1087
|
!t && !(e != null && e.length) && n(!0);
|
|
1088
1088
|
}, [e, t]), { fontsLoaded: t };
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
return
|
|
1090
|
+
var Ao = function(e, t) {
|
|
1091
|
+
return Ao = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
1092
1092
|
n.__proto__ = r;
|
|
1093
1093
|
} || function(n, r) {
|
|
1094
1094
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
1095
|
-
},
|
|
1095
|
+
}, Ao(e, t);
|
|
1096
1096
|
};
|
|
1097
1097
|
function Fn(e, t) {
|
|
1098
1098
|
if (typeof t != "function" && t !== null)
|
|
1099
1099
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1100
|
-
|
|
1100
|
+
Ao(e, t);
|
|
1101
1101
|
function n() {
|
|
1102
1102
|
this.constructor = e;
|
|
1103
1103
|
}
|
|
@@ -1120,7 +1120,7 @@ function Ma(e, t) {
|
|
|
1120
1120
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
1121
1121
|
return n;
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Oo(e) {
|
|
1124
1124
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
1125
1125
|
if (n) return n.call(e);
|
|
1126
1126
|
if (e && typeof e.length == "number") return {
|
|
@@ -1130,7 +1130,7 @@ function Ao(e) {
|
|
|
1130
1130
|
};
|
|
1131
1131
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function Po(e, t) {
|
|
1134
1134
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1135
1135
|
if (!n) return e;
|
|
1136
1136
|
var r = n.call(e), o, s = [], i;
|
|
@@ -1161,7 +1161,7 @@ function Fa(e) {
|
|
|
1161
1161
|
}, n = e(t);
|
|
1162
1162
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
1163
1163
|
}
|
|
1164
|
-
var
|
|
1164
|
+
var fo = Fa(function(e) {
|
|
1165
1165
|
return function(n) {
|
|
1166
1166
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
1167
1167
|
` + n.map(function(r, o) {
|
|
@@ -1170,13 +1170,13 @@ var uo = Fa(function(e) {
|
|
|
1170
1170
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
1171
1171
|
};
|
|
1172
1172
|
});
|
|
1173
|
-
function
|
|
1173
|
+
function jo(e, t) {
|
|
1174
1174
|
if (e) {
|
|
1175
1175
|
var n = e.indexOf(t);
|
|
1176
1176
|
0 <= n && e.splice(n, 1);
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
|
-
var
|
|
1179
|
+
var Vr = function() {
|
|
1180
1180
|
function e(t) {
|
|
1181
1181
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
1182
1182
|
}
|
|
@@ -1188,9 +1188,9 @@ var Hr = function() {
|
|
|
1188
1188
|
if (i)
|
|
1189
1189
|
if (this._parentage = null, Array.isArray(i))
|
|
1190
1190
|
try {
|
|
1191
|
-
for (var a =
|
|
1192
|
-
var
|
|
1193
|
-
|
|
1191
|
+
for (var a = Oo(i), c = a.next(); !c.done; c = a.next()) {
|
|
1192
|
+
var l = c.value;
|
|
1193
|
+
l.remove(this);
|
|
1194
1194
|
}
|
|
1195
1195
|
} catch (f) {
|
|
1196
1196
|
t = { error: f };
|
|
@@ -1208,18 +1208,18 @@ var Hr = function() {
|
|
|
1208
1208
|
try {
|
|
1209
1209
|
d();
|
|
1210
1210
|
} catch (f) {
|
|
1211
|
-
s = f instanceof
|
|
1211
|
+
s = f instanceof fo ? f.errors : [f];
|
|
1212
1212
|
}
|
|
1213
1213
|
var h = this._finalizers;
|
|
1214
1214
|
if (h) {
|
|
1215
1215
|
this._finalizers = null;
|
|
1216
1216
|
try {
|
|
1217
|
-
for (var p =
|
|
1217
|
+
for (var p = Oo(h), g = p.next(); !g.done; g = p.next()) {
|
|
1218
1218
|
var w = g.value;
|
|
1219
1219
|
try {
|
|
1220
1220
|
si(w);
|
|
1221
1221
|
} catch (f) {
|
|
1222
|
-
s = s ?? [], f instanceof
|
|
1222
|
+
s = s ?? [], f instanceof fo ? s = Rr(Rr([], Po(s)), Po(f.errors)) : s.push(f);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
} catch (f) {
|
|
@@ -1233,7 +1233,7 @@ var Hr = function() {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
if (s)
|
|
1236
|
-
throw new
|
|
1236
|
+
throw new fo(s);
|
|
1237
1237
|
}
|
|
1238
1238
|
}, e.prototype.add = function(t) {
|
|
1239
1239
|
var n;
|
|
@@ -1256,17 +1256,17 @@ var Hr = function() {
|
|
|
1256
1256
|
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
1257
1257
|
}, e.prototype._removeParent = function(t) {
|
|
1258
1258
|
var n = this._parentage;
|
|
1259
|
-
n === t ? this._parentage = null : Array.isArray(n) &&
|
|
1259
|
+
n === t ? this._parentage = null : Array.isArray(n) && jo(n, t);
|
|
1260
1260
|
}, e.prototype.remove = function(t) {
|
|
1261
1261
|
var n = this._finalizers;
|
|
1262
|
-
n &&
|
|
1262
|
+
n && jo(n, t), t instanceof e && t._removeParent(this);
|
|
1263
1263
|
}, e.EMPTY = function() {
|
|
1264
1264
|
var t = new e();
|
|
1265
1265
|
return t.closed = !0, t;
|
|
1266
1266
|
}(), e;
|
|
1267
|
-
}(), Ba =
|
|
1267
|
+
}(), Ba = Vr.EMPTY;
|
|
1268
1268
|
function Ua(e) {
|
|
1269
|
-
return e instanceof
|
|
1269
|
+
return e instanceof Vr || e && "closed" in e && Ke(e.remove) && Ke(e.add) && Ke(e.unsubscribe);
|
|
1270
1270
|
}
|
|
1271
1271
|
function si(e) {
|
|
1272
1272
|
Ke(e) ? e() : e.unsubscribe();
|
|
@@ -1277,7 +1277,7 @@ var Td = {
|
|
|
1277
1277
|
setTimeout: function(e, t) {
|
|
1278
1278
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
1279
1279
|
n[r - 2] = arguments[r];
|
|
1280
|
-
return setTimeout.apply(void 0, Rr([e, t],
|
|
1280
|
+
return setTimeout.apply(void 0, Rr([e, t], Po(n)));
|
|
1281
1281
|
},
|
|
1282
1282
|
clearTimeout: function(e) {
|
|
1283
1283
|
return clearTimeout(e);
|
|
@@ -1301,7 +1301,7 @@ var Wa = function(e) {
|
|
|
1301
1301
|
return r.isStopped = !1, n ? (r.destination = n, Ua(n) && n.add(r)) : r.destination = Dd, r;
|
|
1302
1302
|
}
|
|
1303
1303
|
return t.create = function(n, r, o) {
|
|
1304
|
-
return new
|
|
1304
|
+
return new Do(n, r, o);
|
|
1305
1305
|
}, t.prototype.next = function(n) {
|
|
1306
1306
|
this.isStopped || this._next(n);
|
|
1307
1307
|
}, t.prototype.error = function(n) {
|
|
@@ -1325,7 +1325,7 @@ var Wa = function(e) {
|
|
|
1325
1325
|
this.unsubscribe();
|
|
1326
1326
|
}
|
|
1327
1327
|
}, t;
|
|
1328
|
-
}(
|
|
1328
|
+
}(Vr), Pd = function() {
|
|
1329
1329
|
function e(t) {
|
|
1330
1330
|
this.partialObserver = t;
|
|
1331
1331
|
}
|
|
@@ -1356,7 +1356,7 @@ var Wa = function(e) {
|
|
|
1356
1356
|
Zn(n);
|
|
1357
1357
|
}
|
|
1358
1358
|
}, e;
|
|
1359
|
-
}(),
|
|
1359
|
+
}(), Do = function(e) {
|
|
1360
1360
|
Fn(t, e);
|
|
1361
1361
|
function t(n, r, o) {
|
|
1362
1362
|
var s = e.call(this) || this, i;
|
|
@@ -1400,7 +1400,7 @@ var ai = function() {
|
|
|
1400
1400
|
var n = new e();
|
|
1401
1401
|
return n.source = this, n.operator = t, n;
|
|
1402
1402
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
1403
|
-
var o = this, s = $d(t) ? t : new
|
|
1403
|
+
var o = this, s = $d(t) ? t : new Do(t, n, r);
|
|
1404
1404
|
return mr(function() {
|
|
1405
1405
|
var i = o, a = i.operator, c = i.source;
|
|
1406
1406
|
s.add(a ? a.call(s, c) : c ? o._subscribe(s) : o._trySubscribe(s));
|
|
@@ -1414,7 +1414,7 @@ var ai = function() {
|
|
|
1414
1414
|
}, e.prototype.forEach = function(t, n) {
|
|
1415
1415
|
var r = this;
|
|
1416
1416
|
return n = ci(n), new n(function(o, s) {
|
|
1417
|
-
var i = new
|
|
1417
|
+
var i = new Do({
|
|
1418
1418
|
next: function(a) {
|
|
1419
1419
|
try {
|
|
1420
1420
|
t(a);
|
|
@@ -1485,12 +1485,12 @@ var Md = Fa(function(e) {
|
|
|
1485
1485
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1486
1486
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1487
1487
|
try {
|
|
1488
|
-
for (var i =
|
|
1488
|
+
for (var i = Oo(r.currentObservers), a = i.next(); !a.done; a = i.next()) {
|
|
1489
1489
|
var c = a.value;
|
|
1490
1490
|
c.next(n);
|
|
1491
1491
|
}
|
|
1492
|
-
} catch (
|
|
1493
|
-
o = { error:
|
|
1492
|
+
} catch (l) {
|
|
1493
|
+
o = { error: l };
|
|
1494
1494
|
} finally {
|
|
1495
1495
|
try {
|
|
1496
1496
|
a && !a.done && (s = i.return) && s.call(i);
|
|
@@ -1533,8 +1533,8 @@ var Md = Fa(function(e) {
|
|
|
1533
1533
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1534
1534
|
}, t.prototype._innerSubscribe = function(n) {
|
|
1535
1535
|
var r = this, o = this, s = o.hasError, i = o.isStopped, a = o.observers;
|
|
1536
|
-
return s || i ? Ba : (this.currentObservers = null, a.push(n), new
|
|
1537
|
-
r.currentObservers = null,
|
|
1536
|
+
return s || i ? Ba : (this.currentObservers = null, a.push(n), new Vr(function() {
|
|
1537
|
+
r.currentObservers = null, jo(a, n);
|
|
1538
1538
|
}));
|
|
1539
1539
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1540
1540
|
var r = this, o = r.hasError, s = r.thrownError, i = r.isStopped;
|
|
@@ -1588,36 +1588,36 @@ var Md = Fa(function(e) {
|
|
|
1588
1588
|
e.prototype.next.call(this, this._value = n);
|
|
1589
1589
|
}, t;
|
|
1590
1590
|
}(Ha);
|
|
1591
|
-
const
|
|
1591
|
+
const h2 = (e) => {
|
|
1592
1592
|
const { fontsLoaded: t } = Rd(e.fonts);
|
|
1593
1593
|
Cd(e.styleSheet);
|
|
1594
1594
|
const n = () => {
|
|
1595
1595
|
const r = new Fd(!0);
|
|
1596
|
-
window[
|
|
1596
|
+
window[Ro] = r;
|
|
1597
1597
|
};
|
|
1598
1598
|
ne(() => {
|
|
1599
|
-
t && window[
|
|
1599
|
+
t && window[Ro].next(!1);
|
|
1600
1600
|
}, [t]), ne(() => {
|
|
1601
1601
|
n();
|
|
1602
1602
|
}, []);
|
|
1603
|
-
},
|
|
1604
|
-
const e = window[
|
|
1603
|
+
}, p2 = () => {
|
|
1604
|
+
const e = window[Ro];
|
|
1605
1605
|
return Ta(e, e.getValue() ?? void 0);
|
|
1606
|
-
},
|
|
1606
|
+
}, Lo = "theme", ui = () => document.documentElement.dataset[Lo] === "dark" ? "dark" : "light", m2 = () => {
|
|
1607
1607
|
const [e, t] = Y(ui());
|
|
1608
1608
|
return ne(() => {
|
|
1609
1609
|
const n = document.documentElement, r = () => t(ui), o = new MutationObserver((s) => {
|
|
1610
1610
|
for (const i of s)
|
|
1611
|
-
i.type === "attributes" && i.attributeName === `data-${
|
|
1611
|
+
i.type === "attributes" && i.attributeName === `data-${Lo}` && r();
|
|
1612
1612
|
});
|
|
1613
1613
|
return o.observe(n, {
|
|
1614
1614
|
attributes: !0,
|
|
1615
|
-
attributeFilter: [`data-${
|
|
1615
|
+
attributeFilter: [`data-${Lo}`]
|
|
1616
1616
|
}), r(), () => {
|
|
1617
1617
|
o.disconnect();
|
|
1618
1618
|
};
|
|
1619
1619
|
}, []), e;
|
|
1620
|
-
},
|
|
1620
|
+
}, g2 = (e) => e !== void 0, y2 = (e) => e !== !0;
|
|
1621
1621
|
let Bd = { data: "" }, Ud = (e) => {
|
|
1622
1622
|
if (typeof window == "object") {
|
|
1623
1623
|
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), { innerHTML: " ", id: "_goober" });
|
|
@@ -1640,21 +1640,21 @@ let Bd = { data: "" }, Ud = (e) => {
|
|
|
1640
1640
|
return e;
|
|
1641
1641
|
}, Vd = (e, t, n, r, o) => {
|
|
1642
1642
|
let s = Va(e), i = qe[s] || (qe[s] = ((c) => {
|
|
1643
|
-
let
|
|
1644
|
-
for (;
|
|
1643
|
+
let l = 0, d = 11;
|
|
1644
|
+
for (; l < c.length; ) d = 101 * d + c.charCodeAt(l++) >>> 0;
|
|
1645
1645
|
return "go" + d;
|
|
1646
1646
|
})(s));
|
|
1647
1647
|
if (!qe[i]) {
|
|
1648
|
-
let c = s !== e ? e : ((
|
|
1648
|
+
let c = s !== e ? e : ((l) => {
|
|
1649
1649
|
let d, h, p = [{}];
|
|
1650
|
-
for (; d = Wd.exec(
|
|
1650
|
+
for (; d = Wd.exec(l.replace(Hd, "")); ) 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();
|
|
1651
1651
|
return p[0];
|
|
1652
1652
|
})(e);
|
|
1653
1653
|
qe[i] = st(o ? { ["@keyframes " + i]: c } : c, n ? "" : "." + i);
|
|
1654
1654
|
}
|
|
1655
1655
|
let a = n && qe.g ? qe.g : null;
|
|
1656
|
-
return n && (qe.g = qe[i]), ((c,
|
|
1657
|
-
h ?
|
|
1656
|
+
return n && (qe.g = qe[i]), ((c, l, d, h) => {
|
|
1657
|
+
h ? l.data = l.data.replace(h, c) : l.data.indexOf(c) === -1 && (l.data = d ? c + l.data : l.data + c);
|
|
1658
1658
|
})(qe[i], t, r, a), i;
|
|
1659
1659
|
}, qd = (e, t, n) => e.reduce((r, o, s) => {
|
|
1660
1660
|
let i = t[s];
|
|
@@ -1664,15 +1664,15 @@ let Bd = { data: "" }, Ud = (e) => {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
return r + o + (i ?? "");
|
|
1666
1666
|
}, "");
|
|
1667
|
-
function
|
|
1667
|
+
function qr(e) {
|
|
1668
1668
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
1669
1669
|
return Vd(n.unshift ? n.raw ? qd(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, o) => Object.assign(r, o && o.call ? o(t.p) : o), {}) : n, Ud(t.target), t.g, t.o, t.k);
|
|
1670
1670
|
}
|
|
1671
|
-
let qa,
|
|
1672
|
-
|
|
1673
|
-
let Ze =
|
|
1671
|
+
let qa, No, ko;
|
|
1672
|
+
qr.bind({ g: 1 });
|
|
1673
|
+
let Ze = qr.bind({ k: 1 });
|
|
1674
1674
|
function zd(e, t, n, r) {
|
|
1675
|
-
st.p = t, qa = e,
|
|
1675
|
+
st.p = t, qa = e, No = n, ko = r;
|
|
1676
1676
|
}
|
|
1677
1677
|
function Ct(e, t) {
|
|
1678
1678
|
let n = this || {};
|
|
@@ -1680,9 +1680,9 @@ function Ct(e, t) {
|
|
|
1680
1680
|
let r = arguments;
|
|
1681
1681
|
function o(s, i) {
|
|
1682
1682
|
let a = Object.assign({}, s), c = a.className || o.className;
|
|
1683
|
-
n.p = Object.assign({ theme:
|
|
1684
|
-
let
|
|
1685
|
-
return e[0] && (
|
|
1683
|
+
n.p = Object.assign({ theme: No && No() }, a), n.o = / *go\d+/.test(c), a.className = qr.apply(n, r) + (c ? " " + c : "");
|
|
1684
|
+
let l = e;
|
|
1685
|
+
return e[0] && (l = a.as || e, delete a.as), ko && l[0] && ko(a), qa(l, a);
|
|
1686
1686
|
}
|
|
1687
1687
|
return o;
|
|
1688
1688
|
};
|
|
@@ -1708,7 +1708,7 @@ var Gd = (e) => typeof e == "function", Tr = (e, t) => Gd(e) ? e(t) : e, Qd = /*
|
|
|
1708
1708
|
}, Zd = (e) => {
|
|
1709
1709
|
let t = gr.get(e);
|
|
1710
1710
|
t && clearTimeout(t);
|
|
1711
|
-
},
|
|
1711
|
+
}, Io = (e, t) => {
|
|
1712
1712
|
switch (t.type) {
|
|
1713
1713
|
case 0:
|
|
1714
1714
|
return { ...e, toasts: [t.toast, ...e.toasts].slice(0, Kd) };
|
|
@@ -1716,7 +1716,7 @@ var Gd = (e) => typeof e == "function", Tr = (e, t) => Gd(e) ? e(t) : e, Qd = /*
|
|
|
1716
1716
|
return t.toast.id && Zd(t.toast.id), { ...e, toasts: e.toasts.map((s) => s.id === t.toast.id ? { ...s, ...t.toast } : s) };
|
|
1717
1717
|
case 2:
|
|
1718
1718
|
let { toast: n } = t;
|
|
1719
|
-
return e.toasts.find((s) => s.id === n.id) ?
|
|
1719
|
+
return e.toasts.find((s) => s.id === n.id) ? Io(e, { type: 1, toast: n }) : Io(e, { type: 0, toast: n });
|
|
1720
1720
|
case 3:
|
|
1721
1721
|
let { toastId: r } = t;
|
|
1722
1722
|
return r ? fi(r) : e.toasts.forEach((s) => {
|
|
@@ -1731,7 +1731,7 @@ var Gd = (e) => typeof e == "function", Tr = (e, t) => Gd(e) ? e(t) : e, Qd = /*
|
|
|
1731
1731
|
return { ...e, pausedAt: void 0, toasts: e.toasts.map((s) => ({ ...s, pauseDuration: s.pauseDuration + o })) };
|
|
1732
1732
|
}
|
|
1733
1733
|
}, yr = [], vr = { toasts: [], pausedAt: void 0 }, Ht = (e) => {
|
|
1734
|
-
vr =
|
|
1734
|
+
vr = Io(vr, e), yr.forEach((t) => {
|
|
1735
1735
|
t(vr);
|
|
1736
1736
|
});
|
|
1737
1737
|
}, Xd = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Jd = (e = {}) => {
|
|
@@ -1787,7 +1787,7 @@ var tf = (e, t) => {
|
|
|
1787
1787
|
let r = ce(() => {
|
|
1788
1788
|
n && Ht({ type: 6, time: Date.now() });
|
|
1789
1789
|
}, [n]), o = ce((s, i) => {
|
|
1790
|
-
let { reverseOrder: a = !1, gutter: c = 8, defaultPosition:
|
|
1790
|
+
let { reverseOrder: a = !1, gutter: c = 8, defaultPosition: l } = i || {}, d = t.filter((g) => (g.position || l) === (s.position || l) && g.height), h = d.findIndex((g) => g.id === s.id), p = d.filter((g, w) => w < h && g.visible).length;
|
|
1791
1791
|
return d.filter((g) => g.visible).slice(...a ? [p + 1] : [0, p]).reduce((g, w) => g + (w.height || 0) + c, 0);
|
|
1792
1792
|
}, [t]);
|
|
1793
1793
|
return { toasts: t, handlers: { updateHeight: tf, startPause: nf, endPause: r, calculateOffset: o } };
|
|
@@ -1987,16 +1987,16 @@ var Tf = ({ id: e, className: t, style: n, onHeightUpdate: r, children: o }) =>
|
|
|
1987
1987
|
}, Af = (e, t) => {
|
|
1988
1988
|
let n = e.includes("top"), r = n ? { top: 0 } : { bottom: 0 }, o = e.includes("center") ? { justifyContent: "center" } : e.includes("right") ? { justifyContent: "flex-end" } : {};
|
|
1989
1989
|
return { left: 0, right: 0, display: "flex", position: "absolute", transition: za() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (n ? 1 : -1)}px)`, ...r, ...o };
|
|
1990
|
-
}, Of =
|
|
1990
|
+
}, Of = qr`
|
|
1991
1991
|
z-index: 9999;
|
|
1992
1992
|
> * {
|
|
1993
1993
|
pointer-events: auto;
|
|
1994
1994
|
}
|
|
1995
1995
|
`, Xn = 16, Pf = ({ reverseOrder: e, position: t = "top-center", toastOptions: n, gutter: r, children: o, containerStyle: s, containerClassName: i }) => {
|
|
1996
1996
|
let { toasts: a, handlers: c } = rf(n);
|
|
1997
|
-
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((
|
|
1998
|
-
let d =
|
|
1999
|
-
return m.createElement(Tf, { id:
|
|
1997
|
+
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((l) => {
|
|
1998
|
+
let d = l.position || t, h = c.calculateOffset(l, { reverseOrder: e, gutter: r, defaultPosition: t }), p = Af(d, h);
|
|
1999
|
+
return m.createElement(Tf, { id: l.id, key: l.id, onHeightUpdate: c.updateHeight, className: l.visible ? Of : "", style: p }, l.type === "custom" ? Tr(l.message, l) : o ? o(l) : m.createElement(Rf, { toast: l, position: d }));
|
|
2000
2000
|
}));
|
|
2001
2001
|
}, hi = xe;
|
|
2002
2002
|
const Ga = () => ({ notify: ce((t, n, r) => {
|
|
@@ -2033,7 +2033,7 @@ function fe() {
|
|
|
2033
2033
|
function jf(e, t) {
|
|
2034
2034
|
return typeof e == "function" ? e(t) : e;
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function $o(e) {
|
|
2037
2037
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
2038
2038
|
}
|
|
2039
2039
|
function Qa(e, t) {
|
|
@@ -2087,22 +2087,22 @@ function gs(e, t) {
|
|
|
2087
2087
|
function Bt(e) {
|
|
2088
2088
|
return JSON.stringify(
|
|
2089
2089
|
e,
|
|
2090
|
-
(t, n) =>
|
|
2090
|
+
(t, n) => Fo(n) ? Object.keys(n).sort().reduce((r, o) => (r[o] = n[o], r), {}) : n
|
|
2091
2091
|
);
|
|
2092
2092
|
}
|
|
2093
2093
|
function jn(e, t) {
|
|
2094
2094
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => jn(e[n], t[n])) : !1;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function Mo(e, t) {
|
|
2097
2097
|
if (e === t)
|
|
2098
2098
|
return e;
|
|
2099
2099
|
const n = gi(e) && gi(t);
|
|
2100
|
-
if (n ||
|
|
2100
|
+
if (n || Fo(e) && Fo(t)) {
|
|
2101
2101
|
const r = n ? e : Object.keys(e), o = r.length, s = n ? t : Object.keys(t), i = s.length, a = n ? [] : {};
|
|
2102
2102
|
let c = 0;
|
|
2103
|
-
for (let
|
|
2104
|
-
const d = n ?
|
|
2105
|
-
(!n && r.includes(d) || n) && e[d] === void 0 && t[d] === void 0 ? (a[d] = void 0, c++) : (a[d] =
|
|
2103
|
+
for (let l = 0; l < i; l++) {
|
|
2104
|
+
const d = n ? l : s[l];
|
|
2105
|
+
(!n && r.includes(d) || n) && e[d] === void 0 && t[d] === void 0 ? (a[d] = void 0, c++) : (a[d] = Mo(e[d], t[d]), a[d] === e[d] && e[d] !== void 0 && c++);
|
|
2106
2106
|
}
|
|
2107
2107
|
return o === i && c === o ? e : a;
|
|
2108
2108
|
}
|
|
@@ -2119,7 +2119,7 @@ function Ar(e, t) {
|
|
|
2119
2119
|
function gi(e) {
|
|
2120
2120
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function Fo(e) {
|
|
2123
2123
|
if (!yi(e))
|
|
2124
2124
|
return !1;
|
|
2125
2125
|
const t = e.constructor;
|
|
@@ -2136,18 +2136,18 @@ function Df(e) {
|
|
|
2136
2136
|
setTimeout(t, e);
|
|
2137
2137
|
});
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function Bo(e, t, n) {
|
|
2140
2140
|
if (typeof n.structuralSharing == "function")
|
|
2141
2141
|
return n.structuralSharing(e, t);
|
|
2142
2142
|
if (n.structuralSharing !== !1) {
|
|
2143
2143
|
try {
|
|
2144
|
-
return
|
|
2144
|
+
return Mo(e, t);
|
|
2145
2145
|
} catch (r) {
|
|
2146
2146
|
throw console.error(
|
|
2147
2147
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
|
|
2148
2148
|
), r;
|
|
2149
2149
|
}
|
|
2150
|
-
return
|
|
2150
|
+
return Mo(e, t);
|
|
2151
2151
|
}
|
|
2152
2152
|
return t;
|
|
2153
2153
|
}
|
|
@@ -2244,7 +2244,7 @@ var Pt, it, nn, ha, kf = (ha = class extends bn {
|
|
|
2244
2244
|
return b(this, rn);
|
|
2245
2245
|
}
|
|
2246
2246
|
}, rn = new WeakMap(), at = new WeakMap(), on = new WeakMap(), pa), Pr = new If();
|
|
2247
|
-
function
|
|
2247
|
+
function Uo() {
|
|
2248
2248
|
let e, t;
|
|
2249
2249
|
const n = new Promise((o, s) => {
|
|
2250
2250
|
e = o, t = s;
|
|
@@ -2277,19 +2277,19 @@ var Xa = class extends Error {
|
|
|
2277
2277
|
super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
2278
2278
|
}
|
|
2279
2279
|
};
|
|
2280
|
-
function
|
|
2280
|
+
function ho(e) {
|
|
2281
2281
|
return e instanceof Xa;
|
|
2282
2282
|
}
|
|
2283
2283
|
function Ja(e) {
|
|
2284
2284
|
let t = !1, n = 0, r = !1, o;
|
|
2285
|
-
const s =
|
|
2285
|
+
const s = Uo(), i = (f) => {
|
|
2286
2286
|
var y;
|
|
2287
2287
|
r || (p(new Xa(f)), (y = e.abort) == null || y.call(e));
|
|
2288
2288
|
}, a = () => {
|
|
2289
2289
|
t = !0;
|
|
2290
2290
|
}, c = () => {
|
|
2291
2291
|
t = !1;
|
|
2292
|
-
},
|
|
2292
|
+
}, l = () => ys.isFocused() && (e.networkMode === "always" || Pr.isOnline()) && e.canRun(), d = () => Za(e.networkMode) && e.canRun(), h = (f) => {
|
|
2293
2293
|
var y;
|
|
2294
2294
|
r || (r = !0, (y = e.onSuccess) == null || y.call(e, f), o == null || o(), s.resolve(f));
|
|
2295
2295
|
}, p = (f) => {
|
|
@@ -2298,7 +2298,7 @@ function Ja(e) {
|
|
|
2298
2298
|
}, g = () => new Promise((f) => {
|
|
2299
2299
|
var y;
|
|
2300
2300
|
o = (C) => {
|
|
2301
|
-
(r ||
|
|
2301
|
+
(r || l()) && f(C);
|
|
2302
2302
|
}, (y = e.onPause) == null || y.call(e);
|
|
2303
2303
|
}).then(() => {
|
|
2304
2304
|
var f;
|
|
@@ -2322,7 +2322,7 @@ function Ja(e) {
|
|
|
2322
2322
|
p(C);
|
|
2323
2323
|
return;
|
|
2324
2324
|
}
|
|
2325
|
-
n++, (A = e.onFail) == null || A.call(e, n, C), Df(E).then(() =>
|
|
2325
|
+
n++, (A = e.onFail) == null || A.call(e, n, C), Df(E).then(() => l() ? void 0 : g()).then(() => {
|
|
2326
2326
|
t ? p(C) : w();
|
|
2327
2327
|
});
|
|
2328
2328
|
});
|
|
@@ -2405,7 +2405,7 @@ var ie = Ff(), jt, ma, ec = (ma = class {
|
|
|
2405
2405
|
this.clearGcTimeout();
|
|
2406
2406
|
}
|
|
2407
2407
|
scheduleGc() {
|
|
2408
|
-
this.clearGcTimeout(),
|
|
2408
|
+
this.clearGcTimeout(), $o(this.gcTime) && O(this, jt, setTimeout(() => {
|
|
2409
2409
|
this.optionalRemove();
|
|
2410
2410
|
}, this.gcTime));
|
|
2411
2411
|
}
|
|
@@ -2445,7 +2445,7 @@ var ie = Ff(), jt, ma, ec = (ma = class {
|
|
|
2445
2445
|
!this.observers.length && this.state.fetchStatus === "idle" && b(this, _e).remove(this);
|
|
2446
2446
|
}
|
|
2447
2447
|
setData(t, n) {
|
|
2448
|
-
const r =
|
|
2448
|
+
const r = Bo(this.state.data, t, this.options);
|
|
2449
2449
|
return $(this, Re, ze).call(this, {
|
|
2450
2450
|
data: r,
|
|
2451
2451
|
type: "success",
|
|
@@ -2511,7 +2511,7 @@ var ie = Ff(), jt, ma, ec = (ma = class {
|
|
|
2511
2511
|
this.state.isInvalidated || $(this, Re, ze).call(this, { type: "invalidate" });
|
|
2512
2512
|
}
|
|
2513
2513
|
fetch(t, n) {
|
|
2514
|
-
var
|
|
2514
|
+
var l, d, h;
|
|
2515
2515
|
if (this.state.fetchStatus !== "idle") {
|
|
2516
2516
|
if (this.state.data !== void 0 && (n != null && n.cancelRefetch))
|
|
2517
2517
|
this.cancel({ silent: !0 });
|
|
@@ -2555,13 +2555,13 @@ var ie = Ff(), jt, ma, ec = (ma = class {
|
|
|
2555
2555
|
};
|
|
2556
2556
|
return o(p), p;
|
|
2557
2557
|
})();
|
|
2558
|
-
(
|
|
2558
|
+
(l = this.options.behavior) == null || l.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 });
|
|
2559
2559
|
const c = (p) => {
|
|
2560
2560
|
var g, w, f, y;
|
|
2561
|
-
|
|
2561
|
+
ho(p) && p.silent || $(this, Re, ze).call(this, {
|
|
2562
2562
|
type: "error",
|
|
2563
2563
|
error: p
|
|
2564
|
-
}),
|
|
2564
|
+
}), ho(p) || ((w = (g = b(this, _e).config).onError) == null || w.call(
|
|
2565
2565
|
g,
|
|
2566
2566
|
p,
|
|
2567
2567
|
this
|
|
@@ -2655,7 +2655,7 @@ var ie = Ff(), jt, ma, ec = (ma = class {
|
|
|
2655
2655
|
};
|
|
2656
2656
|
case "error":
|
|
2657
2657
|
const o = t.error;
|
|
2658
|
-
return
|
|
2658
|
+
return ho(o) && o.revert && b(this, an) ? { ...b(this, an), fetchStatus: "idle" } : {
|
|
2659
2659
|
...r,
|
|
2660
2660
|
error: o,
|
|
2661
2661
|
errorUpdateCount: r.errorUpdateCount + 1,
|
|
@@ -2821,7 +2821,7 @@ var ke, ya, Wf = (ya = class extends bn {
|
|
|
2821
2821
|
this.execute(this.state.variables);
|
|
2822
2822
|
}
|
|
2823
2823
|
async execute(t) {
|
|
2824
|
-
var s, i, a, c,
|
|
2824
|
+
var s, i, a, c, l, d, h, p, g, w, f, y, C, x, S, E, _, A, T, I;
|
|
2825
2825
|
const n = () => {
|
|
2826
2826
|
$(this, $e, nt).call(this, { type: "continue" });
|
|
2827
2827
|
};
|
|
@@ -2858,8 +2858,8 @@ var ke, ya, Wf = (ya = class extends bn {
|
|
|
2858
2858
|
});
|
|
2859
2859
|
}
|
|
2860
2860
|
const N = await b(this, Nt).start();
|
|
2861
|
-
return await ((d = (
|
|
2862
|
-
|
|
2861
|
+
return await ((d = (l = b(this, ue).config).onSuccess) == null ? void 0 : d.call(
|
|
2862
|
+
l,
|
|
2863
2863
|
N,
|
|
2864
2864
|
t,
|
|
2865
2865
|
this.state.context,
|
|
@@ -3087,7 +3087,7 @@ function vi(e) {
|
|
|
3087
3087
|
var d, h, p, g, w;
|
|
3088
3088
|
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) || [];
|
|
3089
3089
|
let a = { pages: [], pageParams: [] }, c = 0;
|
|
3090
|
-
const
|
|
3090
|
+
const l = async () => {
|
|
3091
3091
|
let f = !1;
|
|
3092
3092
|
const y = (S) => {
|
|
3093
3093
|
Object.defineProperty(S, "signal", {
|
|
@@ -3137,7 +3137,7 @@ function vi(e) {
|
|
|
3137
3137
|
var f, y;
|
|
3138
3138
|
return (y = (f = t.options).persister) == null ? void 0 : y.call(
|
|
3139
3139
|
f,
|
|
3140
|
-
|
|
3140
|
+
l,
|
|
3141
3141
|
{
|
|
3142
3142
|
client: t.client,
|
|
3143
3143
|
queryKey: t.queryKey,
|
|
@@ -3146,7 +3146,7 @@ function vi(e) {
|
|
|
3146
3146
|
},
|
|
3147
3147
|
n
|
|
3148
3148
|
);
|
|
3149
|
-
} : t.fetchFn =
|
|
3149
|
+
} : t.fetchFn = l;
|
|
3150
3150
|
}
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
@@ -3369,7 +3369,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3369
3369
|
clear() {
|
|
3370
3370
|
b(this, ee).clear(), b(this, ct).clear();
|
|
3371
3371
|
}
|
|
3372
|
-
}, ee = new WeakMap(), ct = new WeakMap(), lt = new WeakMap(), cn = new WeakMap(), ln = new WeakMap(), ut = new WeakMap(), un = new WeakMap(), dn = new WeakMap(), wa), ge, B, $n, de, kt, fn, dt, ft, Mn, hn, pn, It, $t, ht, mn, z, An,
|
|
3372
|
+
}, ee = new WeakMap(), ct = new WeakMap(), lt = new WeakMap(), cn = new WeakMap(), ln = new WeakMap(), ut = new WeakMap(), un = new WeakMap(), dn = new WeakMap(), wa), ge, B, $n, de, kt, fn, dt, ft, Mn, hn, pn, It, $t, ht, mn, z, An, Wo, Ho, Vo, qo, zo, Go, Qo, rc, Ca, Gf = (Ca = class extends bn {
|
|
3373
3373
|
constructor(t, n) {
|
|
3374
3374
|
super();
|
|
3375
3375
|
D(this, z);
|
|
@@ -3390,7 +3390,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3390
3390
|
D(this, $t);
|
|
3391
3391
|
D(this, ht);
|
|
3392
3392
|
D(this, mn, /* @__PURE__ */ new Set());
|
|
3393
|
-
this.options = n, O(this, ge, t), O(this, ft, null), O(this, dt,
|
|
3393
|
+
this.options = n, O(this, ge, t), O(this, ft, null), O(this, dt, Uo()), this.options.experimental_prefetchInRender || b(this, dt).reject(
|
|
3394
3394
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
3395
3395
|
), this.bindMethods(), this.setOptions(n);
|
|
3396
3396
|
}
|
|
@@ -3398,27 +3398,27 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3398
3398
|
this.refetch = this.refetch.bind(this);
|
|
3399
3399
|
}
|
|
3400
3400
|
onSubscribe() {
|
|
3401
|
-
this.listeners.size === 1 && (b(this, B).addObserver(this), wi(b(this, B), this.options) ? $(this, z, An).call(this) : this.updateResult(), $(this, z,
|
|
3401
|
+
this.listeners.size === 1 && (b(this, B).addObserver(this), wi(b(this, B), this.options) ? $(this, z, An).call(this) : this.updateResult(), $(this, z, qo).call(this));
|
|
3402
3402
|
}
|
|
3403
3403
|
onUnsubscribe() {
|
|
3404
3404
|
this.hasListeners() || this.destroy();
|
|
3405
3405
|
}
|
|
3406
3406
|
shouldFetchOnReconnect() {
|
|
3407
|
-
return
|
|
3407
|
+
return Ko(
|
|
3408
3408
|
b(this, B),
|
|
3409
3409
|
this.options,
|
|
3410
3410
|
this.options.refetchOnReconnect
|
|
3411
3411
|
);
|
|
3412
3412
|
}
|
|
3413
3413
|
shouldFetchOnWindowFocus() {
|
|
3414
|
-
return
|
|
3414
|
+
return Ko(
|
|
3415
3415
|
b(this, B),
|
|
3416
3416
|
this.options,
|
|
3417
3417
|
this.options.refetchOnWindowFocus
|
|
3418
3418
|
);
|
|
3419
3419
|
}
|
|
3420
3420
|
destroy() {
|
|
3421
|
-
this.listeners = /* @__PURE__ */ new Set(), $(this, z,
|
|
3421
|
+
this.listeners = /* @__PURE__ */ new Set(), $(this, z, zo).call(this), $(this, z, Go).call(this), b(this, B).removeObserver(this);
|
|
3422
3422
|
}
|
|
3423
3423
|
setOptions(t) {
|
|
3424
3424
|
const n = this.options, r = b(this, B);
|
|
@@ -3426,7 +3426,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3426
3426
|
throw new Error(
|
|
3427
3427
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
3428
3428
|
);
|
|
3429
|
-
$(this, z,
|
|
3429
|
+
$(this, z, Qo).call(this), b(this, B).setOptions(this.options), n._defaulted && !Ar(this.options, n) && b(this, ge).getQueryCache().notify({
|
|
3430
3430
|
type: "observerOptionsUpdated",
|
|
3431
3431
|
query: b(this, B),
|
|
3432
3432
|
observer: this
|
|
@@ -3437,9 +3437,9 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3437
3437
|
r,
|
|
3438
3438
|
this.options,
|
|
3439
3439
|
n
|
|
3440
|
-
) && $(this, z, An).call(this), this.updateResult(), o && (b(this, B) !== r || Ae(this.options.enabled, b(this, B)) !== Ae(n.enabled, b(this, B)) || yt(this.options.staleTime, b(this, B)) !== yt(n.staleTime, b(this, B))) && $(this, z,
|
|
3441
|
-
const s = $(this, z,
|
|
3442
|
-
o && (b(this, B) !== r || Ae(this.options.enabled, b(this, B)) !== Ae(n.enabled, b(this, B)) || s !== b(this, ht)) && $(this, z,
|
|
3440
|
+
) && $(this, z, An).call(this), this.updateResult(), o && (b(this, B) !== r || Ae(this.options.enabled, b(this, B)) !== Ae(n.enabled, b(this, B)) || yt(this.options.staleTime, b(this, B)) !== yt(n.staleTime, b(this, B))) && $(this, z, Wo).call(this);
|
|
3441
|
+
const s = $(this, z, Ho).call(this);
|
|
3442
|
+
o && (b(this, B) !== r || Ae(this.options.enabled, b(this, B)) !== Ae(n.enabled, b(this, B)) || s !== b(this, ht)) && $(this, z, Vo).call(this, s);
|
|
3443
3443
|
}
|
|
3444
3444
|
getOptimisticResult(t) {
|
|
3445
3445
|
const n = b(this, ge).getQueryCache().build(b(this, ge), t), r = this.createResult(n, t);
|
|
@@ -3476,7 +3476,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
createResult(t, n) {
|
|
3478
3478
|
var N;
|
|
3479
|
-
const r = b(this, B), o = this.options, s = b(this, de), i = b(this, kt), a = b(this, fn),
|
|
3479
|
+
const r = b(this, B), o = this.options, s = b(this, de), i = b(this, kt), a = b(this, fn), l = t !== r ? t.state : b(this, $n), { state: d } = t;
|
|
3480
3480
|
let h = { ...d }, p = !1, g;
|
|
3481
3481
|
if (n._optimisticResults) {
|
|
3482
3482
|
const L = this.hasListeners(), V = !L && wi(t, n), Q = L && Ci(t, r, n, o);
|
|
@@ -3493,7 +3493,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3493
3493
|
s != null && s.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData) ? (L = s.data, C = !0) : L = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
3494
3494
|
(N = b(this, pn)) == null ? void 0 : N.state.data,
|
|
3495
3495
|
b(this, pn)
|
|
3496
|
-
) : n.placeholderData, L !== void 0 && (y = "success", g =
|
|
3496
|
+
) : n.placeholderData, L !== void 0 && (y = "success", g = Bo(
|
|
3497
3497
|
s == null ? void 0 : s.data,
|
|
3498
3498
|
L,
|
|
3499
3499
|
n
|
|
@@ -3504,7 +3504,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3504
3504
|
g = b(this, hn);
|
|
3505
3505
|
else
|
|
3506
3506
|
try {
|
|
3507
|
-
O(this, Mn, n.select), g = n.select(g), g =
|
|
3507
|
+
O(this, Mn, n.select), g = n.select(g), g = Bo(s == null ? void 0 : s.data, g, n), O(this, hn, g), O(this, ft, null);
|
|
3508
3508
|
} catch (L) {
|
|
3509
3509
|
O(this, ft, L);
|
|
3510
3510
|
}
|
|
@@ -3525,7 +3525,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3525
3525
|
failureReason: h.fetchFailureReason,
|
|
3526
3526
|
errorUpdateCount: h.errorUpdateCount,
|
|
3527
3527
|
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
3528
|
-
isFetchedAfterMount: h.dataUpdateCount >
|
|
3528
|
+
isFetchedAfterMount: h.dataUpdateCount > l.dataUpdateCount || h.errorUpdateCount > l.errorUpdateCount,
|
|
3529
3529
|
isFetching: x,
|
|
3530
3530
|
isRefetching: x && !S,
|
|
3531
3531
|
isLoadingError: E && !A,
|
|
@@ -3540,7 +3540,7 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3540
3540
|
const L = (H) => {
|
|
3541
3541
|
I.status === "error" ? H.reject(I.error) : I.data !== void 0 && H.resolve(I.data);
|
|
3542
3542
|
}, V = () => {
|
|
3543
|
-
const H = O(this, dt, I.promise =
|
|
3543
|
+
const H = O(this, dt, I.promise = Uo());
|
|
3544
3544
|
L(H);
|
|
3545
3545
|
}, Q = b(this, dt);
|
|
3546
3546
|
switch (Q.status) {
|
|
@@ -3579,40 +3579,40 @@ var ee, ct, lt, cn, ln, ut, un, dn, wa, zf = (wa = class {
|
|
|
3579
3579
|
$(this, z, rc).call(this, { listeners: r() });
|
|
3580
3580
|
}
|
|
3581
3581
|
onQueryUpdate() {
|
|
3582
|
-
this.updateResult(), this.hasListeners() && $(this, z,
|
|
3582
|
+
this.updateResult(), this.hasListeners() && $(this, z, qo).call(this);
|
|
3583
3583
|
}
|
|
3584
3584
|
}, ge = new WeakMap(), B = new WeakMap(), $n = new WeakMap(), de = new WeakMap(), kt = new WeakMap(), fn = new WeakMap(), dt = new WeakMap(), ft = new WeakMap(), Mn = new WeakMap(), hn = new WeakMap(), pn = new WeakMap(), It = new WeakMap(), $t = new WeakMap(), ht = new WeakMap(), mn = new WeakMap(), z = new WeakSet(), An = function(t) {
|
|
3585
|
-
$(this, z,
|
|
3585
|
+
$(this, z, Qo).call(this);
|
|
3586
3586
|
let n = b(this, B).fetch(
|
|
3587
3587
|
this.options,
|
|
3588
3588
|
t
|
|
3589
3589
|
);
|
|
3590
3590
|
return t != null && t.throwOnError || (n = n.catch(fe)), n;
|
|
3591
|
-
},
|
|
3592
|
-
$(this, z,
|
|
3591
|
+
}, Wo = function() {
|
|
3592
|
+
$(this, z, zo).call(this);
|
|
3593
3593
|
const t = yt(
|
|
3594
3594
|
this.options.staleTime,
|
|
3595
3595
|
b(this, B)
|
|
3596
3596
|
);
|
|
3597
|
-
if (Ft || b(this, de).isStale ||
|
|
3597
|
+
if (Ft || b(this, de).isStale || !$o(t))
|
|
3598
3598
|
return;
|
|
3599
3599
|
const r = Qa(b(this, de).dataUpdatedAt, t) + 1;
|
|
3600
3600
|
O(this, It, setTimeout(() => {
|
|
3601
3601
|
b(this, de).isStale || this.updateResult();
|
|
3602
3602
|
}, r));
|
|
3603
|
-
},
|
|
3603
|
+
}, Ho = function() {
|
|
3604
3604
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(b(this, B)) : this.options.refetchInterval) ?? !1;
|
|
3605
|
-
},
|
|
3606
|
-
$(this, z,
|
|
3605
|
+
}, Vo = function(t) {
|
|
3606
|
+
$(this, z, Go).call(this), O(this, ht, t), !(Ft || Ae(this.options.enabled, b(this, B)) === !1 || !$o(b(this, ht)) || b(this, ht) === 0) && O(this, $t, setInterval(() => {
|
|
3607
3607
|
(this.options.refetchIntervalInBackground || ys.isFocused()) && $(this, z, An).call(this);
|
|
3608
3608
|
}, b(this, ht)));
|
|
3609
|
-
}, Vo = function() {
|
|
3610
|
-
$(this, z, Uo).call(this), $(this, z, Ho).call(this, $(this, z, Wo).call(this));
|
|
3611
3609
|
}, qo = function() {
|
|
3612
|
-
|
|
3610
|
+
$(this, z, Wo).call(this), $(this, z, Vo).call(this, $(this, z, Ho).call(this));
|
|
3613
3611
|
}, zo = function() {
|
|
3614
|
-
b(this,
|
|
3612
|
+
b(this, It) && (clearTimeout(b(this, It)), O(this, It, void 0));
|
|
3615
3613
|
}, Go = function() {
|
|
3614
|
+
b(this, $t) && (clearInterval(b(this, $t)), O(this, $t, void 0));
|
|
3615
|
+
}, Qo = function() {
|
|
3616
3616
|
const t = b(this, ge).getQueryCache().build(b(this, ge), this.options);
|
|
3617
3617
|
if (t === b(this, B))
|
|
3618
3618
|
return;
|
|
@@ -3632,9 +3632,9 @@ function Qf(e, t) {
|
|
|
3632
3632
|
return Ae(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
3633
3633
|
}
|
|
3634
3634
|
function wi(e, t) {
|
|
3635
|
-
return Qf(e, t) || e.state.data !== void 0 &&
|
|
3635
|
+
return Qf(e, t) || e.state.data !== void 0 && Ko(e, t, t.refetchOnMount);
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3637
|
+
function Ko(e, t, n) {
|
|
3638
3638
|
if (Ae(t.enabled, e) !== !1 && yt(t.staleTime, e) !== "static") {
|
|
3639
3639
|
const r = typeof n == "function" ? n(e) : n;
|
|
3640
3640
|
return r === "always" || r !== !1 && vs(e, t);
|
|
@@ -3650,7 +3650,7 @@ function vs(e, t) {
|
|
|
3650
3650
|
function Kf(e, t) {
|
|
3651
3651
|
return !Ar(e.getCurrentResult(), t);
|
|
3652
3652
|
}
|
|
3653
|
-
var pt, mt, ye, Qe, Ye, br,
|
|
3653
|
+
var pt, mt, ye, Qe, Ye, br, Yo, xa, Yf = (xa = class extends bn {
|
|
3654
3654
|
constructor(n, r) {
|
|
3655
3655
|
super();
|
|
3656
3656
|
D(this, Ye);
|
|
@@ -3677,14 +3677,14 @@ var pt, mt, ye, Qe, Ye, br, Ko, xa, Yf = (xa = class extends bn {
|
|
|
3677
3677
|
this.hasListeners() || (n = b(this, ye)) == null || n.removeObserver(this);
|
|
3678
3678
|
}
|
|
3679
3679
|
onMutationUpdate(n) {
|
|
3680
|
-
$(this, Ye, br).call(this), $(this, Ye,
|
|
3680
|
+
$(this, Ye, br).call(this), $(this, Ye, Yo).call(this, n);
|
|
3681
3681
|
}
|
|
3682
3682
|
getCurrentResult() {
|
|
3683
3683
|
return b(this, mt);
|
|
3684
3684
|
}
|
|
3685
3685
|
reset() {
|
|
3686
3686
|
var n;
|
|
3687
|
-
(n = b(this, ye)) == null || n.removeObserver(this), O(this, ye, void 0), $(this, Ye, br).call(this), $(this, Ye,
|
|
3687
|
+
(n = b(this, ye)) == null || n.removeObserver(this), O(this, ye, void 0), $(this, Ye, br).call(this), $(this, Ye, Yo).call(this);
|
|
3688
3688
|
}
|
|
3689
3689
|
mutate(n, r) {
|
|
3690
3690
|
var o;
|
|
@@ -3702,13 +3702,13 @@ var pt, mt, ye, Qe, Ye, br, Ko, xa, Yf = (xa = class extends bn {
|
|
|
3702
3702
|
mutate: this.mutate,
|
|
3703
3703
|
reset: this.reset
|
|
3704
3704
|
});
|
|
3705
|
-
},
|
|
3705
|
+
}, Yo = function(n) {
|
|
3706
3706
|
ie.batch(() => {
|
|
3707
|
-
var r, o, s, i, a, c,
|
|
3707
|
+
var r, o, s, i, a, c, l, d;
|
|
3708
3708
|
if (b(this, Qe) && this.hasListeners()) {
|
|
3709
3709
|
const h = b(this, mt).variables, p = b(this, mt).context;
|
|
3710
|
-
(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 = (
|
|
3711
|
-
|
|
3710
|
+
(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 = (l = b(this, Qe)).onSettled) == null || d.call(
|
|
3711
|
+
l,
|
|
3712
3712
|
void 0,
|
|
3713
3713
|
n.error,
|
|
3714
3714
|
h,
|
|
@@ -3731,7 +3731,7 @@ var pt, mt, ye, Qe, Ye, br, Ko, xa, Yf = (xa = class extends bn {
|
|
|
3731
3731
|
children: t
|
|
3732
3732
|
}) => (m.useEffect(() => (e.mount(), () => {
|
|
3733
3733
|
e.unmount();
|
|
3734
|
-
}), [e]), /* @__PURE__ */
|
|
3734
|
+
}), [e]), /* @__PURE__ */ u.jsx(oc.Provider, { value: e, children: t })), sc = m.createContext(!1), Xf = () => m.useContext(sc);
|
|
3735
3735
|
sc.Provider;
|
|
3736
3736
|
function Jf() {
|
|
3737
3737
|
let e = !1;
|
|
@@ -3783,7 +3783,7 @@ function ch(e, t, n) {
|
|
|
3783
3783
|
s,
|
|
3784
3784
|
i
|
|
3785
3785
|
)
|
|
3786
|
-
),
|
|
3786
|
+
), l = c.getOptimisticResult(i), d = !r && e.subscribed !== !1;
|
|
3787
3787
|
if (m.useSyncExternalStore(
|
|
3788
3788
|
m.useCallback(
|
|
3789
3789
|
(y) => {
|
|
@@ -3796,21 +3796,21 @@ function ch(e, t, n) {
|
|
|
3796
3796
|
() => c.getCurrentResult()
|
|
3797
3797
|
), m.useEffect(() => {
|
|
3798
3798
|
c.setOptions(i);
|
|
3799
|
-
}, [i, c]), ah(i,
|
|
3799
|
+
}, [i, c]), ah(i, l))
|
|
3800
3800
|
throw xi(i, c, o);
|
|
3801
3801
|
if (oh({
|
|
3802
|
-
result:
|
|
3802
|
+
result: l,
|
|
3803
3803
|
errorResetBoundary: o,
|
|
3804
3804
|
throwOnError: i.throwOnError,
|
|
3805
3805
|
query: s.getQueryCache().get(i.queryHash),
|
|
3806
3806
|
suspense: i.suspense
|
|
3807
3807
|
}))
|
|
3808
|
-
throw
|
|
3808
|
+
throw l.error;
|
|
3809
3809
|
if ((w = (g = s.getDefaultOptions().queries) == null ? void 0 : g._experimental_afterQuery) == null || w.call(
|
|
3810
3810
|
g,
|
|
3811
3811
|
i,
|
|
3812
|
-
|
|
3813
|
-
), i.experimental_prefetchInRender && !Ft && ih(
|
|
3812
|
+
l
|
|
3813
|
+
), i.experimental_prefetchInRender && !Ft && ih(l, r)) {
|
|
3814
3814
|
const y = a ? (
|
|
3815
3815
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
3816
3816
|
xi(i, c, o)
|
|
@@ -3822,7 +3822,7 @@ function ch(e, t, n) {
|
|
|
3822
3822
|
c.updateResult();
|
|
3823
3823
|
});
|
|
3824
3824
|
}
|
|
3825
|
-
return i.notifyOnChangeProps ?
|
|
3825
|
+
return i.notifyOnChangeProps ? l : c.trackResult(l);
|
|
3826
3826
|
}
|
|
3827
3827
|
function Ei(e, t) {
|
|
3828
3828
|
return ch(e, Gf);
|
|
@@ -3872,7 +3872,7 @@ const tr = {
|
|
|
3872
3872
|
enable: !0
|
|
3873
3873
|
// Default to enabled, can be overridden in individual queries
|
|
3874
3874
|
}, nr = (e) => e instanceof Error ? e.message : String(e), lh = (e, t, n) => {
|
|
3875
|
-
const r = bs(), { notify: o } = Ga(), { createFn: s, readFn: i, readByIdFn: a, updateFn: c, deleteFn:
|
|
3875
|
+
const r = bs(), { notify: o } = Ga(), { createFn: s, readFn: i, readByIdFn: a, updateFn: c, deleteFn: l, partialUpdateFn: d } = n, h = () => {
|
|
3876
3876
|
r.invalidateQueries({ queryKey: [e] });
|
|
3877
3877
|
}, p = (E, _, A, T) => o(
|
|
3878
3878
|
T != null && T.overrideSuccessMessage ? T == null ? void 0 : T.overrideSuccessMessage(E, _) : A,
|
|
@@ -3924,7 +3924,7 @@ const tr = {
|
|
|
3924
3924
|
}
|
|
3925
3925
|
}),
|
|
3926
3926
|
useDelete: (E) => er({
|
|
3927
|
-
mutationFn: (_) =>
|
|
3927
|
+
mutationFn: (_) => l(_),
|
|
3928
3928
|
onSuccess: () => {
|
|
3929
3929
|
h(), p(t, null, `${t} deleted successfully`, E);
|
|
3930
3930
|
},
|
|
@@ -3934,7 +3934,7 @@ const tr = {
|
|
|
3934
3934
|
}),
|
|
3935
3935
|
invalidateQueries: h
|
|
3936
3936
|
};
|
|
3937
|
-
},
|
|
3937
|
+
}, b2 = (e, t) => lh(e, t, {
|
|
3938
3938
|
createFn: (n) => fetch(e, {
|
|
3939
3939
|
method: "POST",
|
|
3940
3940
|
headers: {
|
|
@@ -3968,7 +3968,7 @@ const tr = {
|
|
|
3968
3968
|
SINGLE_TENANT: "single-tenant"
|
|
3969
3969
|
}, dh = {
|
|
3970
3970
|
COOKIE: "cookie"
|
|
3971
|
-
},
|
|
3971
|
+
}, po = "tenant", _i = "tenant", Ri = "tenant", fh = uh.SINGLE_TENANT, hh = dh.COOKIE, ph = {
|
|
3972
3972
|
mode: fh,
|
|
3973
3973
|
clientSideMode: hh,
|
|
3974
3974
|
tenantIDPProvisioningStrategy: "none"
|
|
@@ -4011,7 +4011,7 @@ var yh = {
|
|
|
4011
4011
|
);
|
|
4012
4012
|
}
|
|
4013
4013
|
};
|
|
4014
|
-
function
|
|
4014
|
+
function Zo(e, t) {
|
|
4015
4015
|
function n(o, s, i) {
|
|
4016
4016
|
if (!(typeof document > "u")) {
|
|
4017
4017
|
i = rr({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -4024,10 +4024,10 @@ function Yo(e, t) {
|
|
|
4024
4024
|
function r(o) {
|
|
4025
4025
|
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
4026
4026
|
for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, a = 0; a < s.length; a++) {
|
|
4027
|
-
var c = s[a].split("="),
|
|
4027
|
+
var c = s[a].split("="), l = c.slice(1).join("=");
|
|
4028
4028
|
try {
|
|
4029
4029
|
var d = decodeURIComponent(c[0]);
|
|
4030
|
-
if (i[d] = e.read(
|
|
4030
|
+
if (i[d] = e.read(l, d), o === d)
|
|
4031
4031
|
break;
|
|
4032
4032
|
} catch {
|
|
4033
4033
|
}
|
|
@@ -4049,10 +4049,10 @@ function Yo(e, t) {
|
|
|
4049
4049
|
);
|
|
4050
4050
|
},
|
|
4051
4051
|
withAttributes: function(o) {
|
|
4052
|
-
return
|
|
4052
|
+
return Zo(this.converter, rr({}, this.attributes, o));
|
|
4053
4053
|
},
|
|
4054
4054
|
withConverter: function(o) {
|
|
4055
|
-
return
|
|
4055
|
+
return Zo(rr({}, this.converter, o), this.attributes);
|
|
4056
4056
|
}
|
|
4057
4057
|
},
|
|
4058
4058
|
{
|
|
@@ -4061,13 +4061,13 @@ function Yo(e, t) {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
);
|
|
4063
4063
|
}
|
|
4064
|
-
var
|
|
4064
|
+
var mo = Zo(yh, { path: "/" });
|
|
4065
4065
|
class vh {
|
|
4066
4066
|
setTenant(t, n) {
|
|
4067
|
-
t ?
|
|
4067
|
+
t ? mo.set(po, t.name) : mo.remove(po), window.location.reload();
|
|
4068
4068
|
}
|
|
4069
4069
|
getCurrentTenantName() {
|
|
4070
|
-
return
|
|
4070
|
+
return mo.get(po);
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
4073
|
class bh {
|
|
@@ -4085,8 +4085,8 @@ class bh {
|
|
|
4085
4085
|
return t === "localhost" || /^\d+\.\d+\.\d+\.\d+$/.test(t) || n.length <= 2 ? t : n.slice(-2).join(".");
|
|
4086
4086
|
}
|
|
4087
4087
|
setTenant(t, n) {
|
|
4088
|
-
var
|
|
4089
|
-
const r = (
|
|
4088
|
+
var l;
|
|
4089
|
+
const r = (l = n.urlPatterns) == null ? void 0 : l.find(
|
|
4090
4090
|
(d) => d.patternType === "subdomain" && d.tenantId === t.id && d.isActive
|
|
4091
4091
|
);
|
|
4092
4092
|
if (!r)
|
|
@@ -4114,7 +4114,7 @@ const Ti = {
|
|
|
4114
4114
|
if (!r)
|
|
4115
4115
|
throw Error("No tenant permission");
|
|
4116
4116
|
return wh(e).setTenant(r, e), r;
|
|
4117
|
-
},
|
|
4117
|
+
}, w2 = () => {
|
|
4118
4118
|
const [e, t] = Fr(), {
|
|
4119
4119
|
tenants: n = [],
|
|
4120
4120
|
currentTenant: r,
|
|
@@ -4182,13 +4182,13 @@ class sr {
|
|
|
4182
4182
|
}), null;
|
|
4183
4183
|
}
|
|
4184
4184
|
}
|
|
4185
|
-
const
|
|
4185
|
+
const C2 = (e) => {
|
|
4186
4186
|
const t = $a("@bluealba/pae-nestjs-gateway-service"), n = ud();
|
|
4187
4187
|
if (!n)
|
|
4188
4188
|
throw new Error(
|
|
4189
4189
|
"You must call the useUserState hook within a PAE application."
|
|
4190
4190
|
);
|
|
4191
|
-
const [r, o] = Y(null), [s, i] = Y(!1), [a, c] = Y(!1), [
|
|
4191
|
+
const [r, o] = Y(null), [s, i] = Y(!1), [a, c] = Y(!1), [l, d] = Y(null), h = (x, S) => ce(
|
|
4192
4192
|
async ({
|
|
4193
4193
|
newValue: E,
|
|
4194
4194
|
shouldThrowError: _
|
|
@@ -4223,25 +4223,25 @@ const w2 = (e) => {
|
|
|
4223
4223
|
value: r ? r.value : null,
|
|
4224
4224
|
hasFetched: s,
|
|
4225
4225
|
loading: a,
|
|
4226
|
-
error:
|
|
4226
|
+
error: l,
|
|
4227
4227
|
setValue: C,
|
|
4228
4228
|
createValue: g,
|
|
4229
4229
|
updateValue: w,
|
|
4230
4230
|
deleteValue: f
|
|
4231
4231
|
};
|
|
4232
|
-
}, ic = "__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",
|
|
4232
|
+
}, ic = "__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__", x2 = ({ module: e, point: t, children: n }) => (bd(e, t, n ?? ic), null), Eh = ({ name: e, children: t, ...n }) => {
|
|
4233
4233
|
const r = vd(e);
|
|
4234
4234
|
if (r === ic)
|
|
4235
4235
|
return null;
|
|
4236
4236
|
if (!r)
|
|
4237
|
-
return /* @__PURE__ */
|
|
4237
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: t ?? null });
|
|
4238
4238
|
if (Sh(r)) {
|
|
4239
4239
|
const o = r;
|
|
4240
|
-
return /* @__PURE__ */
|
|
4240
|
+
return /* @__PURE__ */ u.jsx(o, { ...n });
|
|
4241
4241
|
} else
|
|
4242
4242
|
return r;
|
|
4243
|
-
}, Sh = (e) => typeof e == "function",
|
|
4244
|
-
const n = (r) => (t = t || e.displayName || e.name || "?", /* @__PURE__ */
|
|
4243
|
+
}, Sh = (e) => typeof e == "function", E2 = (e, t) => {
|
|
4244
|
+
const n = (r) => (t = t || e.displayName || e.name || "?", /* @__PURE__ */ u.jsx(Eh, { name: t, ...r, children: /* @__PURE__ */ u.jsx(e, { ...r }) }));
|
|
4245
4245
|
return n.displayName = `extensionPoint(${t})`, n;
|
|
4246
4246
|
}, Ai = "single-spa:app-change";
|
|
4247
4247
|
function _h() {
|
|
@@ -4256,7 +4256,7 @@ function _h() {
|
|
|
4256
4256
|
}, []), e;
|
|
4257
4257
|
}
|
|
4258
4258
|
function Oi() {
|
|
4259
|
-
return
|
|
4259
|
+
return uo.getAppNames().reduce((t, n) => (uo.getAppStatus(n) ? t[n] = uo.getAppStatus(n) : t[n] = "NOT_LOADED", t), {});
|
|
4260
4260
|
}
|
|
4261
4261
|
function Rh(e) {
|
|
4262
4262
|
const n = _h()[e] ?? "LOAD_ERROR";
|
|
@@ -4267,15 +4267,15 @@ function Rh(e) {
|
|
|
4267
4267
|
isBroken: n === "SKIP_BECAUSE_BROKEN" || n === "LOAD_ERROR"
|
|
4268
4268
|
};
|
|
4269
4269
|
}
|
|
4270
|
-
const ac = ({ appName: e }) => /* @__PURE__ */
|
|
4270
|
+
const ac = ({ appName: e }) => /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs("p", { children: [
|
|
4271
4271
|
"Loading ",
|
|
4272
4272
|
e,
|
|
4273
4273
|
"..."
|
|
4274
4274
|
] }) });
|
|
4275
4275
|
ac.displayName = "BaseLoading";
|
|
4276
|
-
const cc = ({ appName: e }) => /* @__PURE__ */
|
|
4277
|
-
/* @__PURE__ */
|
|
4278
|
-
/* @__PURE__ */
|
|
4276
|
+
const cc = ({ appName: e }) => /* @__PURE__ */ u.jsxs("div", { children: [
|
|
4277
|
+
/* @__PURE__ */ u.jsx("p", { children: "Something went wrong..." }),
|
|
4278
|
+
/* @__PURE__ */ u.jsxs("p", { children: [
|
|
4279
4279
|
"Failed to load ",
|
|
4280
4280
|
e
|
|
4281
4281
|
] })
|
|
@@ -4286,7 +4286,7 @@ const Th = {
|
|
|
4286
4286
|
display: "flex",
|
|
4287
4287
|
flexDirection: "column",
|
|
4288
4288
|
flex: 1
|
|
4289
|
-
}, lc = W((e, t) => /* @__PURE__ */
|
|
4289
|
+
}, lc = W((e, t) => /* @__PURE__ */ u.jsx("div", { ref: t, style: Th, ...e }));
|
|
4290
4290
|
lc.displayName = "BaseContainer";
|
|
4291
4291
|
const Ah = "pae-app:", Oh = W(({
|
|
4292
4292
|
appName: e,
|
|
@@ -4296,15 +4296,15 @@ const Ah = "pae-app:", Oh = W(({
|
|
|
4296
4296
|
...o
|
|
4297
4297
|
}, s) => {
|
|
4298
4298
|
const i = Rh(e);
|
|
4299
|
-
return /* @__PURE__ */
|
|
4299
|
+
return /* @__PURE__ */ u.jsxs(
|
|
4300
4300
|
r,
|
|
4301
4301
|
{
|
|
4302
4302
|
ref: s,
|
|
4303
4303
|
...o,
|
|
4304
4304
|
id: `${Ah}${e}`,
|
|
4305
4305
|
children: [
|
|
4306
|
-
i.isLoading && /* @__PURE__ */
|
|
4307
|
-
i.isBroken && /* @__PURE__ */
|
|
4306
|
+
i.isLoading && /* @__PURE__ */ u.jsx(t, { appName: e }),
|
|
4307
|
+
i.isBroken && /* @__PURE__ */ u.jsx(n, { appName: e })
|
|
4308
4308
|
]
|
|
4309
4309
|
}
|
|
4310
4310
|
);
|
|
@@ -4312,33 +4312,33 @@ const Ah = "pae-app:", Oh = W(({
|
|
|
4312
4312
|
Oh.displayName = "ModulePlaceHolder";
|
|
4313
4313
|
const uc = ({ operations: e, children: t, forbiddenContent: n }) => {
|
|
4314
4314
|
var o;
|
|
4315
|
-
const { hasAccess: r } =
|
|
4315
|
+
const { hasAccess: r } = Wr();
|
|
4316
4316
|
if (!r(...e)) {
|
|
4317
4317
|
if (!n) return null;
|
|
4318
4318
|
if (typeof n == "function")
|
|
4319
4319
|
if ((o = n == null ? void 0 : n.prototype) != null && o.isReactComponent) {
|
|
4320
4320
|
const s = n;
|
|
4321
|
-
return /* @__PURE__ */
|
|
4321
|
+
return /* @__PURE__ */ u.jsx(s, { operations: e });
|
|
4322
4322
|
} else
|
|
4323
4323
|
return n({ operations: e });
|
|
4324
|
-
return
|
|
4324
|
+
return us.isValidElement(n) ? n : null;
|
|
4325
4325
|
}
|
|
4326
4326
|
return t;
|
|
4327
4327
|
};
|
|
4328
4328
|
uc.displayName = "Authorized";
|
|
4329
|
-
const
|
|
4329
|
+
const S2 = ({ eventName: e, listener: t }) => (wd(e, t), null), Ph = () => /* @__PURE__ */ u.jsx("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", children: /* @__PURE__ */ u.jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2", d: "M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" }) }), jh = ({ applicationName: e }) => {
|
|
4330
4330
|
const t = ed(e);
|
|
4331
4331
|
if (t)
|
|
4332
4332
|
if (typeof t == "function") {
|
|
4333
4333
|
const n = t;
|
|
4334
|
-
return /* @__PURE__ */
|
|
4334
|
+
return /* @__PURE__ */ u.jsx(n, {});
|
|
4335
4335
|
} else
|
|
4336
4336
|
return t;
|
|
4337
|
-
return /* @__PURE__ */
|
|
4337
|
+
return /* @__PURE__ */ u.jsx(Ph, {});
|
|
4338
4338
|
};
|
|
4339
4339
|
jh.displayName = "ApplicationIcon";
|
|
4340
|
-
const
|
|
4341
|
-
const n = (r) => /* @__PURE__ */
|
|
4340
|
+
const _2 = (e, t) => {
|
|
4341
|
+
const n = (r) => /* @__PURE__ */ u.jsx(uc, { operations: t, children: /* @__PURE__ */ u.jsx(e, { ...r }) });
|
|
4342
4342
|
return n.displayName = "Authorized", n;
|
|
4343
4343
|
};
|
|
4344
4344
|
function dc(e) {
|
|
@@ -4372,7 +4372,7 @@ const Dh = "spinner__fakUN", Lh = "spinner-rotation__wUmPV", Nh = "button__8FA9H
|
|
|
4372
4372
|
"button--text-danger": "button--text-danger__Sw-ha",
|
|
4373
4373
|
buttonTextDanger: Bh,
|
|
4374
4374
|
icon: Uh
|
|
4375
|
-
},
|
|
4375
|
+
}, Xo = W(({
|
|
4376
4376
|
variant: e = "contained",
|
|
4377
4377
|
colorScheme: t = "primary",
|
|
4378
4378
|
loading: n = !1,
|
|
@@ -4386,20 +4386,20 @@ const Dh = "spinner__fakUN", Lh = "spinner-rotation__wUmPV", Nh = "button__8FA9H
|
|
|
4386
4386
|
ir[`button--${e}-${t}`],
|
|
4387
4387
|
o
|
|
4388
4388
|
);
|
|
4389
|
-
return /* @__PURE__ */
|
|
4389
|
+
return /* @__PURE__ */ u.jsxs(
|
|
4390
4390
|
"button",
|
|
4391
4391
|
{
|
|
4392
4392
|
ref: a,
|
|
4393
4393
|
className: c,
|
|
4394
4394
|
...i,
|
|
4395
4395
|
children: [
|
|
4396
|
-
n ? /* @__PURE__ */
|
|
4396
|
+
n ? /* @__PURE__ */ u.jsx("div", { className: ir.spinner }) : r && /* @__PURE__ */ u.jsx(r, { className: ir.icon }),
|
|
4397
4397
|
s
|
|
4398
4398
|
]
|
|
4399
4399
|
}
|
|
4400
4400
|
);
|
|
4401
4401
|
});
|
|
4402
|
-
|
|
4402
|
+
Xo.displayName = "Button";
|
|
4403
4403
|
const Wh = "Badges__5jpum", Hh = "Badges__5jpum", Vh = "Badge__95MWM", qh = "Badge__95MWM", zh = "Badge--primary__Rx-bS", Gh = "Badge--secondary__d92bT", Qh = "Badge--success__Kdo98", Kh = "Badge--warning__bf-Nn", Yh = "Badge--danger__HTj39", Zh = "Badge--small__y93Pj", Xh = "Badge--regular__aT5AL", Jh = "Badge--large__wORCH", wr = {
|
|
4404
4404
|
Badges: Wh,
|
|
4405
4405
|
badges: Hh,
|
|
@@ -4421,7 +4421,7 @@ const Wh = "Badges__5jpum", Hh = "Badges__5jpum", Vh = "Badge__95MWM", qh = "Bad
|
|
|
4421
4421
|
badgeRegular: Xh,
|
|
4422
4422
|
"Badge--large": "Badge--large__wORCH",
|
|
4423
4423
|
badgeLarge: Jh
|
|
4424
|
-
},
|
|
4424
|
+
}, Jo = {
|
|
4425
4425
|
aliceblue: [240, 248, 255],
|
|
4426
4426
|
antiquewhite: [250, 235, 215],
|
|
4427
4427
|
aqua: [0, 255, 255],
|
|
@@ -4571,8 +4571,8 @@ const Wh = "Badges__5jpum", Hh = "Badges__5jpum", Vh = "Badge__95MWM", qh = "Bad
|
|
|
4571
4571
|
yellow: [255, 255, 0],
|
|
4572
4572
|
yellowgreen: [154, 205, 50]
|
|
4573
4573
|
};
|
|
4574
|
-
for (const e in
|
|
4575
|
-
const Pi = Object.freeze(
|
|
4574
|
+
for (const e in Jo) Object.freeze(Jo[e]);
|
|
4575
|
+
const Pi = Object.freeze(Jo);
|
|
4576
4576
|
var ji = {
|
|
4577
4577
|
red: 0,
|
|
4578
4578
|
orange: 60,
|
|
@@ -4605,7 +4605,7 @@ function ep(e) {
|
|
|
4605
4605
|
} else if (t = /^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)) {
|
|
4606
4606
|
var c = t[1];
|
|
4607
4607
|
o = c.replace(/a$/, "");
|
|
4608
|
-
var
|
|
4608
|
+
var l = o === "cmyk" ? 4 : o === "gray" ? 1 : 3;
|
|
4609
4609
|
n = t[2].trim().split(/\s*[,\/]\s*|\s+/), o === "color" && (o = n.shift()), n = n.map(function(p, g) {
|
|
4610
4610
|
if (p[p.length - 1] === "%")
|
|
4611
4611
|
return p = parseFloat(p) / 100, g === 3 ? p : o === "rgb" ? p * 255 : o[0] === "h" || o[0] === "l" && !g ? p * 100 : o === "lab" ? p * 125 : o === "lch" ? g < 2 ? p * 150 : p * 360 : o[0] === "o" && !g ? p : o === "oklab" ? p * 0.4 : o === "oklch" ? g < 2 ? p * 0.4 : p * 360 : p;
|
|
@@ -4617,7 +4617,7 @@ function ep(e) {
|
|
|
4617
4617
|
if (p.endsWith("rad")) return parseFloat(p) * 180 / Math.PI;
|
|
4618
4618
|
}
|
|
4619
4619
|
return p === "none" ? 0 : parseFloat(p);
|
|
4620
|
-
}), r = n.length >
|
|
4620
|
+
}), r = n.length > l ? n.pop() : 1;
|
|
4621
4621
|
} else /[0-9](?:\s|\/|,)/.test(e) && (n = e.match(/([0-9]+)/g).map(function(p) {
|
|
4622
4622
|
return parseFloat(p);
|
|
4623
4623
|
}), o = ((h = (d = e.match(/([a-z])/ig)) == null ? void 0 : d.join("")) == null ? void 0 : h.toLowerCase()) || "rgb");
|
|
@@ -4639,7 +4639,7 @@ const tp = (e, t) => {
|
|
|
4639
4639
|
style: s,
|
|
4640
4640
|
...i
|
|
4641
4641
|
}, a) => {
|
|
4642
|
-
const c = r ? { color: r, background: tp(r, 0.1) } : {},
|
|
4642
|
+
const c = r ? { color: r, background: tp(r, 0.1) } : {}, l = j(
|
|
4643
4643
|
wr.Badge,
|
|
4644
4644
|
wr[`Badge--${o}`],
|
|
4645
4645
|
{
|
|
@@ -4647,7 +4647,7 @@ const tp = (e, t) => {
|
|
|
4647
4647
|
},
|
|
4648
4648
|
n
|
|
4649
4649
|
);
|
|
4650
|
-
return /* @__PURE__ */
|
|
4650
|
+
return /* @__PURE__ */ u.jsx("span", { ref: a, className: l, style: { ...s, ...c }, ...i, children: e });
|
|
4651
4651
|
});
|
|
4652
4652
|
fc.displayName = "Badge";
|
|
4653
4653
|
const hc = W(({
|
|
@@ -4656,7 +4656,7 @@ const hc = W(({
|
|
|
4656
4656
|
...n
|
|
4657
4657
|
}, r) => {
|
|
4658
4658
|
const o = j(wr.Badges, t);
|
|
4659
|
-
return /* @__PURE__ */
|
|
4659
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
4660
4660
|
});
|
|
4661
4661
|
hc.displayName = "Badges";
|
|
4662
4662
|
const np = ({
|
|
@@ -4666,7 +4666,7 @@ const np = ({
|
|
|
4666
4666
|
className: r,
|
|
4667
4667
|
style: o,
|
|
4668
4668
|
...s
|
|
4669
|
-
}) => /* @__PURE__ */
|
|
4669
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
4670
4670
|
"svg",
|
|
4671
4671
|
{
|
|
4672
4672
|
width: e,
|
|
@@ -4681,8 +4681,8 @@ const np = ({
|
|
|
4681
4681
|
style: o,
|
|
4682
4682
|
...s,
|
|
4683
4683
|
children: [
|
|
4684
|
-
/* @__PURE__ */
|
|
4685
|
-
/* @__PURE__ */
|
|
4684
|
+
/* @__PURE__ */ u.jsx("rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", ry: "1" }),
|
|
4685
|
+
/* @__PURE__ */ u.jsx("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" })
|
|
4686
4686
|
]
|
|
4687
4687
|
}
|
|
4688
4688
|
), rp = ({
|
|
@@ -4692,7 +4692,7 @@ const np = ({
|
|
|
4692
4692
|
className: r,
|
|
4693
4693
|
style: o,
|
|
4694
4694
|
...s
|
|
4695
|
-
}) => /* @__PURE__ */
|
|
4695
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
4696
4696
|
"svg",
|
|
4697
4697
|
{
|
|
4698
4698
|
width: e,
|
|
@@ -4707,18 +4707,18 @@ const np = ({
|
|
|
4707
4707
|
style: o,
|
|
4708
4708
|
...s,
|
|
4709
4709
|
children: [
|
|
4710
|
-
/* @__PURE__ */
|
|
4711
|
-
/* @__PURE__ */
|
|
4712
|
-
/* @__PURE__ */
|
|
4710
|
+
/* @__PURE__ */ u.jsx("rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", ry: "1" }),
|
|
4711
|
+
/* @__PURE__ */ u.jsx("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }),
|
|
4712
|
+
/* @__PURE__ */ u.jsx("path", { d: "m9 12 2 2 4-4" })
|
|
4713
4713
|
]
|
|
4714
4714
|
}
|
|
4715
4715
|
), op = "CopyToClipboardButton__2Nd2m", sp = {
|
|
4716
4716
|
CopyToClipboardButton: op
|
|
4717
|
-
},
|
|
4717
|
+
}, R2 = ({ content: e }) => {
|
|
4718
4718
|
const [t, n] = ip(), { notify: r } = Ga(), o = t ? rp : np, s = ce(async () => {
|
|
4719
4719
|
await n(e) && r("Copied to the Clipboard !", "success");
|
|
4720
4720
|
}, [e, r]);
|
|
4721
|
-
return /* @__PURE__ */
|
|
4721
|
+
return /* @__PURE__ */ u.jsx(o, { className: sp.CopyToClipboardButton, size: 18, onClick: s });
|
|
4722
4722
|
}, ip = () => {
|
|
4723
4723
|
const [e, t] = Y(!1);
|
|
4724
4724
|
return [e, async (r) => {
|
|
@@ -4746,7 +4746,7 @@ const np = ({
|
|
|
4746
4746
|
Di[`FieldGroup--${n}`],
|
|
4747
4747
|
t
|
|
4748
4748
|
);
|
|
4749
|
-
return /* @__PURE__ */
|
|
4749
|
+
return /* @__PURE__ */ u.jsx("div", { ref: o, className: s, ...r, children: e });
|
|
4750
4750
|
});
|
|
4751
4751
|
dp.displayName = "FieldGroup";
|
|
4752
4752
|
const fp = "Input__uS0sb", Li = {
|
|
@@ -4758,7 +4758,7 @@ const fp = "Input__uS0sb", Li = {
|
|
|
4758
4758
|
...n
|
|
4759
4759
|
}, r) => {
|
|
4760
4760
|
const o = j(Li.Input, t && Li.Error, e);
|
|
4761
|
-
return /* @__PURE__ */
|
|
4761
|
+
return /* @__PURE__ */ u.jsx("input", { ref: r, className: o, ...n });
|
|
4762
4762
|
});
|
|
4763
4763
|
ws.displayName = "Input";
|
|
4764
4764
|
const hp = {
|
|
@@ -4769,7 +4769,7 @@ const hp = {
|
|
|
4769
4769
|
...n
|
|
4770
4770
|
}, r) => {
|
|
4771
4771
|
const o = j(hp.Error, t);
|
|
4772
|
-
return /* @__PURE__ */
|
|
4772
|
+
return /* @__PURE__ */ u.jsx("span", { ref: r, className: o, ...n, children: e });
|
|
4773
4773
|
});
|
|
4774
4774
|
pp.displayName = "InputError";
|
|
4775
4775
|
const mp = "Label__VYUvW", Ni = {
|
|
@@ -4782,10 +4782,10 @@ const mp = "Label__VYUvW", Ni = {
|
|
|
4782
4782
|
...r
|
|
4783
4783
|
}, o) => {
|
|
4784
4784
|
const s = j(Ni.Label, n && Ni.Error, t);
|
|
4785
|
-
return /* @__PURE__ */
|
|
4785
|
+
return /* @__PURE__ */ u.jsx("label", { ref: o, className: s, ...r, children: e });
|
|
4786
4786
|
});
|
|
4787
4787
|
gp.displayName = "Label";
|
|
4788
|
-
const yp = "Select__giqpe", vp = "Chevron__YvhBd",
|
|
4788
|
+
const yp = "Select__giqpe", vp = "Chevron__YvhBd", es = {
|
|
4789
4789
|
Select: yp,
|
|
4790
4790
|
Chevron: vp
|
|
4791
4791
|
}, pc = W(({
|
|
@@ -4793,8 +4793,8 @@ const yp = "Select__giqpe", vp = "Chevron__YvhBd", Jo = {
|
|
|
4793
4793
|
className: t,
|
|
4794
4794
|
...n
|
|
4795
4795
|
}, r) => {
|
|
4796
|
-
const o = j(
|
|
4797
|
-
return /* @__PURE__ */
|
|
4796
|
+
const o = j(es.Option, t);
|
|
4797
|
+
return /* @__PURE__ */ u.jsx("option", { ref: r, className: o, ...n, children: e });
|
|
4798
4798
|
});
|
|
4799
4799
|
pc.displayName = "Option";
|
|
4800
4800
|
const mc = W(({
|
|
@@ -4802,10 +4802,10 @@ const mc = W(({
|
|
|
4802
4802
|
className: t,
|
|
4803
4803
|
...n
|
|
4804
4804
|
}, r) => {
|
|
4805
|
-
const o = j(
|
|
4806
|
-
return /* @__PURE__ */
|
|
4807
|
-
/* @__PURE__ */
|
|
4808
|
-
/* @__PURE__ */
|
|
4805
|
+
const o = j(es.Select, t);
|
|
4806
|
+
return /* @__PURE__ */ u.jsxs("div", { className: o, children: [
|
|
4807
|
+
/* @__PURE__ */ u.jsx("select", { ref: r, ...n, children: e }),
|
|
4808
|
+
/* @__PURE__ */ u.jsx("div", { className: es.Chevron, children: /* @__PURE__ */ u.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u.jsx("path", { d: "M4 6L8 10L12 6", stroke: "#818181", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
4809
4809
|
] });
|
|
4810
4810
|
});
|
|
4811
4811
|
mc.displayName = "Select";
|
|
@@ -4818,7 +4818,7 @@ const bp = "TextArea__pa-A0", wp = {
|
|
|
4818
4818
|
...n
|
|
4819
4819
|
}, r) => {
|
|
4820
4820
|
const o = j(wp.TextArea, t);
|
|
4821
|
-
return /* @__PURE__ */
|
|
4821
|
+
return /* @__PURE__ */ u.jsx("textarea", { ref: r, className: o, ...n, children: e });
|
|
4822
4822
|
});
|
|
4823
4823
|
Cp.displayName = "TextArea";
|
|
4824
4824
|
const xp = "SearchInput__4OFyE", Ep = "SearchIcon__YgnQy", Sp = "ClearIcon__ukRVr", _p = "SearchInput__ClearIcon__uzVoc", Rp = "SearchInput__SearchIcon__zoDG4", Rn = {
|
|
@@ -4840,10 +4840,10 @@ const xp = "SearchInput__4OFyE", Ep = "SearchIcon__YgnQy", Sp = "ClearIcon__ukRV
|
|
|
4840
4840
|
n && Rn.SearchInput__ClearIcon,
|
|
4841
4841
|
r && Rn.SearchInput__SearchIcon,
|
|
4842
4842
|
e
|
|
4843
|
-
), c = j(Rn.SearchIcon),
|
|
4844
|
-
return /* @__PURE__ */
|
|
4845
|
-
/* @__PURE__ */
|
|
4846
|
-
r && /* @__PURE__ */
|
|
4843
|
+
), c = j(Rn.SearchIcon), l = j(Rn.ClearIcon);
|
|
4844
|
+
return /* @__PURE__ */ u.jsxs("div", { className: a, children: [
|
|
4845
|
+
/* @__PURE__ */ u.jsx(ws, { ref: i, type: "text", placeholder: t, ...s }),
|
|
4846
|
+
r && /* @__PURE__ */ u.jsx(
|
|
4847
4847
|
"svg",
|
|
4848
4848
|
{
|
|
4849
4849
|
className: c,
|
|
@@ -4852,20 +4852,20 @@ const xp = "SearchInput__4OFyE", Ep = "SearchIcon__YgnQy", Sp = "ClearIcon__ukRV
|
|
|
4852
4852
|
viewBox: "0 0 14 14",
|
|
4853
4853
|
fill: "none",
|
|
4854
4854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4855
|
-
children: /* @__PURE__ */
|
|
4855
|
+
children: /* @__PURE__ */ u.jsx("path", { d: "M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z", stroke: "#A4A4A4", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4856
4856
|
}
|
|
4857
4857
|
),
|
|
4858
|
-
n && /* @__PURE__ */
|
|
4858
|
+
n && /* @__PURE__ */ u.jsx(
|
|
4859
4859
|
"svg",
|
|
4860
4860
|
{
|
|
4861
|
-
className:
|
|
4861
|
+
className: l,
|
|
4862
4862
|
width: "8",
|
|
4863
4863
|
height: "8",
|
|
4864
4864
|
viewBox: "0 0 8 8",
|
|
4865
4865
|
fill: "none",
|
|
4866
4866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4867
4867
|
onClick: o,
|
|
4868
|
-
children: /* @__PURE__ */
|
|
4868
|
+
children: /* @__PURE__ */ u.jsx("path", { d: "M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341", stroke: "#818181", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4869
4869
|
}
|
|
4870
4870
|
)
|
|
4871
4871
|
] });
|
|
@@ -4904,7 +4904,7 @@ const Tp = "SearchAutocomplete__vR9Hk", Ap = "AutocompleteItem__YIm7R", Op = "Au
|
|
|
4904
4904
|
},
|
|
4905
4905
|
t
|
|
4906
4906
|
);
|
|
4907
|
-
return /* @__PURE__ */
|
|
4907
|
+
return /* @__PURE__ */ u.jsx("div", { ref: s, className: i, ...o, children: e });
|
|
4908
4908
|
});
|
|
4909
4909
|
Cs.displayName = "DropdownList";
|
|
4910
4910
|
const On = W(({
|
|
@@ -4920,7 +4920,7 @@ const On = W(({
|
|
|
4920
4920
|
},
|
|
4921
4921
|
t
|
|
4922
4922
|
);
|
|
4923
|
-
return /* @__PURE__ */
|
|
4923
|
+
return /* @__PURE__ */ u.jsx("div", { ref: o, className: s, role: n ? "option" : void 0, ...r, children: e });
|
|
4924
4924
|
});
|
|
4925
4925
|
On.displayName = "AutocompleteItem";
|
|
4926
4926
|
const Mp = 300, Fp = {
|
|
@@ -4980,17 +4980,17 @@ const Mp = 300, Fp = {
|
|
|
4980
4980
|
...r
|
|
4981
4981
|
}, o) => {
|
|
4982
4982
|
const s = j(Mt.AutocompleteHighlighter, n), i = (a, c) => {
|
|
4983
|
-
const
|
|
4984
|
-
if (
|
|
4983
|
+
const l = a.toLowerCase().indexOf(c.toLowerCase());
|
|
4984
|
+
if (l === -1 || c.length === 0)
|
|
4985
4985
|
return a;
|
|
4986
|
-
const d = a.slice(0,
|
|
4987
|
-
return /* @__PURE__ */
|
|
4986
|
+
const d = a.slice(0, l), h = a.slice(l, l + c.length), p = a.slice(l + c.length);
|
|
4987
|
+
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4988
4988
|
d,
|
|
4989
|
-
/* @__PURE__ */
|
|
4989
|
+
/* @__PURE__ */ u.jsx("span", { className: Mt.AutocompleteHighlighter__match, children: h }),
|
|
4990
4990
|
i(p, c)
|
|
4991
4991
|
] });
|
|
4992
4992
|
};
|
|
4993
|
-
return /* @__PURE__ */
|
|
4993
|
+
return /* @__PURE__ */ u.jsx("div", { ref: o, className: s, ...r, children: i(e, t) });
|
|
4994
4994
|
});
|
|
4995
4995
|
yc.displayName = "AutocompleteHighlighter";
|
|
4996
4996
|
const Up = 5, Wp = W(({
|
|
@@ -5003,7 +5003,7 @@ const Up = 5, Wp = W(({
|
|
|
5003
5003
|
suggestionFetcher: i,
|
|
5004
5004
|
onAccept: a,
|
|
5005
5005
|
...c
|
|
5006
|
-
},
|
|
5006
|
+
}, l) => {
|
|
5007
5007
|
const {
|
|
5008
5008
|
query: d,
|
|
5009
5009
|
setQuery: h,
|
|
@@ -5019,19 +5019,19 @@ const Up = 5, Wp = W(({
|
|
|
5019
5019
|
}, S = () => {
|
|
5020
5020
|
a == null || a(null), f(null), h("");
|
|
5021
5021
|
}, E = j(Mt.SearchAutocomplete, t), _ = p.slice(0, r), A = p.slice(r);
|
|
5022
|
-
return /* @__PURE__ */
|
|
5023
|
-
/* @__PURE__ */
|
|
5022
|
+
return /* @__PURE__ */ u.jsxs("div", { ref: l, className: E, ...c, children: [
|
|
5023
|
+
/* @__PURE__ */ u.jsx(gc, { ...o, value: d, onChange: C, showClearButton: !!w, onClear: S }),
|
|
5024
5024
|
e,
|
|
5025
|
-
/* @__PURE__ */
|
|
5026
|
-
g ? /* @__PURE__ */
|
|
5027
|
-
/* @__PURE__ */
|
|
5028
|
-
T.description && /* @__PURE__ */
|
|
5025
|
+
/* @__PURE__ */ u.jsxs(Cs, { className: Mt.DropdownList, open: y && !w, role: "listbox", "aria-label": "Suggestions", children: [
|
|
5026
|
+
g ? /* @__PURE__ */ u.jsx(On, { children: "Loading..." }) : _.map((T) => /* @__PURE__ */ u.jsxs(On, { canBeSelected: !0, onClick: x.bind(null, T), children: [
|
|
5027
|
+
/* @__PURE__ */ u.jsx(yc, { text: T.label, query: d }),
|
|
5028
|
+
T.description && /* @__PURE__ */ u.jsx("span", { className: Mt.AutocompleteItemDescription, children: T.description })
|
|
5029
5029
|
] }, T.value)),
|
|
5030
|
-
!g && A.length > 0 && /* @__PURE__ */
|
|
5030
|
+
!g && A.length > 0 && /* @__PURE__ */ u.jsxs(On, { children: [
|
|
5031
5031
|
A.length,
|
|
5032
5032
|
" more results"
|
|
5033
5033
|
] }),
|
|
5034
|
-
y && p.length === 0 && !g && /* @__PURE__ */
|
|
5034
|
+
y && p.length === 0 && !g && /* @__PURE__ */ u.jsx(On, { children: "No results found" })
|
|
5035
5035
|
] })
|
|
5036
5036
|
] });
|
|
5037
5037
|
});
|
|
@@ -5041,17 +5041,17 @@ const Ot = (e) => {
|
|
|
5041
5041
|
return Au.forEach(e.children, (r) => {
|
|
5042
5042
|
const o = r.props.condition;
|
|
5043
5043
|
o === void 0 ? n = r : !t && o === !0 && (t = r);
|
|
5044
|
-
}), /* @__PURE__ */
|
|
5044
|
+
}), /* @__PURE__ */ u.jsx(u.Fragment, { children: t || n });
|
|
5045
5045
|
};
|
|
5046
5046
|
Ot.displayName = "Show";
|
|
5047
|
-
Ot.When = ({ condition: e, children: t }) => /* @__PURE__ */
|
|
5048
|
-
Ot.Else = ({ render: e, children: t }) => /* @__PURE__ */
|
|
5047
|
+
Ot.When = ({ condition: e, children: t }) => /* @__PURE__ */ u.jsx(u.Fragment, { children: e && t });
|
|
5048
|
+
Ot.Else = ({ render: e, children: t }) => /* @__PURE__ */ u.jsx(u.Fragment, { children: e || t });
|
|
5049
5049
|
function ki(e, t) {
|
|
5050
5050
|
if (typeof e == "function")
|
|
5051
5051
|
return e(t);
|
|
5052
5052
|
e != null && (e.current = t);
|
|
5053
5053
|
}
|
|
5054
|
-
function
|
|
5054
|
+
function zr(...e) {
|
|
5055
5055
|
return (t) => {
|
|
5056
5056
|
let n = !1;
|
|
5057
5057
|
const r = e.map((o) => {
|
|
@@ -5068,7 +5068,7 @@ function qr(...e) {
|
|
|
5068
5068
|
};
|
|
5069
5069
|
}
|
|
5070
5070
|
function Le(...e) {
|
|
5071
|
-
return m.useCallback(
|
|
5071
|
+
return m.useCallback(zr(...e), e);
|
|
5072
5072
|
}
|
|
5073
5073
|
var Hp = Symbol.for("react.lazy"), jr = m[" use ".trim().toString()];
|
|
5074
5074
|
function Vp(e) {
|
|
@@ -5084,10 +5084,10 @@ function qp(e) {
|
|
|
5084
5084
|
vc(s) && typeof jr == "function" && (s = jr(s._payload));
|
|
5085
5085
|
const a = m.Children.toArray(s), c = a.find(Kp);
|
|
5086
5086
|
if (c) {
|
|
5087
|
-
const
|
|
5088
|
-
return /* @__PURE__ */
|
|
5087
|
+
const l = c.props.children, d = a.map((h) => h === c ? m.Children.count(l) > 1 ? m.Children.only(null) : m.isValidElement(l) ? l.props.children : null : h);
|
|
5088
|
+
return /* @__PURE__ */ u.jsx(t, { ...i, ref: o, children: m.isValidElement(l) ? m.cloneElement(l, void 0, d) : null });
|
|
5089
5089
|
}
|
|
5090
|
-
return /* @__PURE__ */
|
|
5090
|
+
return /* @__PURE__ */ u.jsx(t, { ...i, ref: o, children: s });
|
|
5091
5091
|
});
|
|
5092
5092
|
return n.displayName = `${e}.Slot`, n;
|
|
5093
5093
|
}
|
|
@@ -5098,7 +5098,7 @@ function Gp(e) {
|
|
|
5098
5098
|
let { children: o, ...s } = n;
|
|
5099
5099
|
if (vc(o) && typeof jr == "function" && (o = jr(o._payload)), m.isValidElement(o)) {
|
|
5100
5100
|
const i = Zp(o), a = Yp(s, o.props);
|
|
5101
|
-
return o.type !== m.Fragment && (a.ref = r ?
|
|
5101
|
+
return o.type !== m.Fragment && (a.ref = r ? zr(r, i) : i), m.cloneElement(o, a);
|
|
5102
5102
|
}
|
|
5103
5103
|
return m.Children.count(o) > 1 ? m.Children.only(null) : null;
|
|
5104
5104
|
});
|
|
@@ -5128,10 +5128,10 @@ const Xp = "SkeletonListContainer__MKJhE", Jp = "Skeleton__Ovpiw", bc = {
|
|
|
5128
5128
|
SkeletonListContainer: Xp,
|
|
5129
5129
|
Skeleton: Jp
|
|
5130
5130
|
}, xs = W((e, t) => {
|
|
5131
|
-
const { children: n, className: r, loading: o, height: s = 48, width: i, borderRadius: a, style: c, ...
|
|
5131
|
+
const { children: n, className: r, loading: o, height: s = 48, width: i, borderRadius: a, style: c, ...l } = e;
|
|
5132
5132
|
if (!o && n) return n;
|
|
5133
5133
|
const d = ni(n) ? zp : "span";
|
|
5134
|
-
return /* @__PURE__ */
|
|
5134
|
+
return /* @__PURE__ */ u.jsx(
|
|
5135
5135
|
d,
|
|
5136
5136
|
{
|
|
5137
5137
|
ref: t,
|
|
@@ -5140,7 +5140,7 @@ const Xp = "SkeletonListContainer__MKJhE", Jp = "Skeleton__Ovpiw", bc = {
|
|
|
5140
5140
|
style: { ...c, width: i, minWidth: i, height: s, borderRadius: a },
|
|
5141
5141
|
"data-inline-skeleton": ni(n) ? void 0 : !0,
|
|
5142
5142
|
tabIndex: -1,
|
|
5143
|
-
...
|
|
5143
|
+
...l,
|
|
5144
5144
|
children: n
|
|
5145
5145
|
}
|
|
5146
5146
|
);
|
|
@@ -5148,7 +5148,7 @@ const Xp = "SkeletonListContainer__MKJhE", Jp = "Skeleton__Ovpiw", bc = {
|
|
|
5148
5148
|
xs.displayName = "Skeleton";
|
|
5149
5149
|
const e1 = (e) => {
|
|
5150
5150
|
const { numberOfItems: t, itemsGap: n = 2, itemProps: r } = e, o = Array.from({ length: t }, (s, i) => i + 1);
|
|
5151
|
-
return /* @__PURE__ */
|
|
5151
|
+
return /* @__PURE__ */ u.jsx("div", { className: j(bc.SkeletonListContainer), style: { gap: n }, children: o.map((s) => /* @__PURE__ */ u.jsx(xs, { loading: !0, ...r }, s)) });
|
|
5152
5152
|
};
|
|
5153
5153
|
e1.displayName = "SkeletonList";
|
|
5154
5154
|
function ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
@@ -5160,7 +5160,7 @@ function ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
5160
5160
|
function t1(e, t) {
|
|
5161
5161
|
const n = m.createContext(t), r = (s) => {
|
|
5162
5162
|
const { children: i, ...a } = s, c = m.useMemo(() => a, Object.values(a));
|
|
5163
|
-
return /* @__PURE__ */
|
|
5163
|
+
return /* @__PURE__ */ u.jsx(n.Provider, { value: c, children: i });
|
|
5164
5164
|
};
|
|
5165
5165
|
r.displayName = e + "Provider";
|
|
5166
5166
|
function o(s) {
|
|
@@ -5176,12 +5176,12 @@ function Es(e, t = []) {
|
|
|
5176
5176
|
function r(s, i) {
|
|
5177
5177
|
const a = m.createContext(i), c = n.length;
|
|
5178
5178
|
n = [...n, i];
|
|
5179
|
-
const
|
|
5179
|
+
const l = (h) => {
|
|
5180
5180
|
var C;
|
|
5181
5181
|
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));
|
|
5182
|
-
return /* @__PURE__ */
|
|
5182
|
+
return /* @__PURE__ */ u.jsx(f.Provider, { value: y, children: g });
|
|
5183
5183
|
};
|
|
5184
|
-
|
|
5184
|
+
l.displayName = s + "Provider";
|
|
5185
5185
|
function d(h, p) {
|
|
5186
5186
|
var f;
|
|
5187
5187
|
const g = ((f = p == null ? void 0 : p[e]) == null ? void 0 : f[c]) || a, w = m.useContext(g);
|
|
@@ -5189,7 +5189,7 @@ function Es(e, t = []) {
|
|
|
5189
5189
|
if (i !== void 0) return i;
|
|
5190
5190
|
throw new Error(`\`${h}\` must be used within \`${s}\``);
|
|
5191
5191
|
}
|
|
5192
|
-
return [
|
|
5192
|
+
return [l, d];
|
|
5193
5193
|
}
|
|
5194
5194
|
const o = () => {
|
|
5195
5195
|
const s = n.map((i) => m.createContext(i));
|
|
@@ -5212,8 +5212,8 @@ function n1(...e) {
|
|
|
5212
5212
|
scopeName: o.scopeName
|
|
5213
5213
|
}));
|
|
5214
5214
|
return function(s) {
|
|
5215
|
-
const i = r.reduce((a, { useScope: c, scopeName:
|
|
5216
|
-
const h = c(s)[`__scope${
|
|
5215
|
+
const i = r.reduce((a, { useScope: c, scopeName: l }) => {
|
|
5216
|
+
const h = c(s)[`__scope${l}`];
|
|
5217
5217
|
return { ...a, ...h };
|
|
5218
5218
|
}, {});
|
|
5219
5219
|
return m.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
@@ -5226,10 +5226,10 @@ function r1(e) {
|
|
|
5226
5226
|
const t = /* @__PURE__ */ o1(e), n = m.forwardRef((r, o) => {
|
|
5227
5227
|
const { children: s, ...i } = r, a = m.Children.toArray(s), c = a.find(i1);
|
|
5228
5228
|
if (c) {
|
|
5229
|
-
const
|
|
5230
|
-
return /* @__PURE__ */
|
|
5229
|
+
const l = c.props.children, d = a.map((h) => h === c ? m.Children.count(l) > 1 ? m.Children.only(null) : m.isValidElement(l) ? l.props.children : null : h);
|
|
5230
|
+
return /* @__PURE__ */ u.jsx(t, { ...i, ref: o, children: m.isValidElement(l) ? m.cloneElement(l, void 0, d) : null });
|
|
5231
5231
|
}
|
|
5232
|
-
return /* @__PURE__ */
|
|
5232
|
+
return /* @__PURE__ */ u.jsx(t, { ...i, ref: o, children: s });
|
|
5233
5233
|
});
|
|
5234
5234
|
return n.displayName = `${e}.Slot`, n;
|
|
5235
5235
|
}
|
|
@@ -5239,7 +5239,7 @@ function o1(e) {
|
|
|
5239
5239
|
const { children: o, ...s } = n;
|
|
5240
5240
|
if (m.isValidElement(o)) {
|
|
5241
5241
|
const i = c1(o), a = a1(s, o.props);
|
|
5242
|
-
return o.type !== m.Fragment && (a.ref = r ?
|
|
5242
|
+
return o.type !== m.Fragment && (a.ref = r ? zr(r, i) : i), m.cloneElement(o, a);
|
|
5243
5243
|
}
|
|
5244
5244
|
return m.Children.count(o) > 1 ? m.Children.only(null) : null;
|
|
5245
5245
|
});
|
|
@@ -5286,7 +5286,7 @@ var l1 = [
|
|
|
5286
5286
|
], be = l1.reduce((e, t) => {
|
|
5287
5287
|
const n = /* @__PURE__ */ r1(`Primitive.${t}`), r = m.forwardRef((o, s) => {
|
|
5288
5288
|
const { asChild: i, ...a } = o, c = i ? n : t;
|
|
5289
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
5289
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(c, { ...a, ref: s });
|
|
5290
5290
|
});
|
|
5291
5291
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
5292
5292
|
}, {});
|
|
@@ -5311,7 +5311,7 @@ function d1(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5311
5311
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
5312
5312
|
}, [n, t]);
|
|
5313
5313
|
}
|
|
5314
|
-
var f1 = "DismissableLayer",
|
|
5314
|
+
var f1 = "DismissableLayer", ts = "dismissableLayer.update", h1 = "dismissableLayer.pointerDownOutside", p1 = "dismissableLayer.focusOutside", Ii, wc = m.createContext({
|
|
5315
5315
|
layers: /* @__PURE__ */ new Set(),
|
|
5316
5316
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5317
5317
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5325,26 +5325,26 @@ var f1 = "DismissableLayer", es = "dismissableLayer.update", h1 = "dismissableLa
|
|
|
5325
5325
|
onInteractOutside: i,
|
|
5326
5326
|
onDismiss: a,
|
|
5327
5327
|
...c
|
|
5328
|
-
} = e,
|
|
5329
|
-
const I = T.target, N = [...
|
|
5328
|
+
} = e, l = 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 = Le(t, (T) => h(T)), f = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), C = f.indexOf(y), x = d ? f.indexOf(d) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, E = x >= C, _ = y1((T) => {
|
|
5329
|
+
const I = T.target, N = [...l.branches].some((L) => L.contains(I));
|
|
5330
5330
|
!E || N || (o == null || o(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
5331
5331
|
}, p), A = v1((T) => {
|
|
5332
5332
|
const I = T.target;
|
|
5333
|
-
[...
|
|
5333
|
+
[...l.branches].some((L) => L.contains(I)) || (s == null || s(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
5334
5334
|
}, p);
|
|
5335
5335
|
return d1((T) => {
|
|
5336
|
-
x ===
|
|
5336
|
+
x === l.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && a && (T.preventDefault(), a()));
|
|
5337
5337
|
}, p), m.useEffect(() => {
|
|
5338
5338
|
if (d)
|
|
5339
|
-
return n && (
|
|
5340
|
-
n &&
|
|
5339
|
+
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Ii = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), $i(), () => {
|
|
5340
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Ii);
|
|
5341
5341
|
};
|
|
5342
|
-
}, [d, p, n,
|
|
5343
|
-
d && (
|
|
5344
|
-
}, [d,
|
|
5342
|
+
}, [d, p, n, l]), m.useEffect(() => () => {
|
|
5343
|
+
d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), $i());
|
|
5344
|
+
}, [d, l]), m.useEffect(() => {
|
|
5345
5345
|
const T = () => g({});
|
|
5346
|
-
return document.addEventListener(
|
|
5347
|
-
}, []), /* @__PURE__ */
|
|
5346
|
+
return document.addEventListener(ts, T), () => document.removeEventListener(ts, T);
|
|
5347
|
+
}, []), /* @__PURE__ */ u.jsx(
|
|
5348
5348
|
be.div,
|
|
5349
5349
|
{
|
|
5350
5350
|
...c,
|
|
@@ -5372,7 +5372,7 @@ var m1 = "DismissableLayerBranch", g1 = m.forwardRef((e, t) => {
|
|
|
5372
5372
|
return n.branches.add(s), () => {
|
|
5373
5373
|
n.branches.delete(s);
|
|
5374
5374
|
};
|
|
5375
|
-
}, [n.branches]), /* @__PURE__ */
|
|
5375
|
+
}, [n.branches]), /* @__PURE__ */ u.jsx(be.div, { ...e, ref: o });
|
|
5376
5376
|
});
|
|
5377
5377
|
g1.displayName = m1;
|
|
5378
5378
|
function y1(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -5385,11 +5385,11 @@ function y1(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5385
5385
|
Cc(
|
|
5386
5386
|
h1,
|
|
5387
5387
|
n,
|
|
5388
|
-
|
|
5388
|
+
l,
|
|
5389
5389
|
{ discrete: !0 }
|
|
5390
5390
|
);
|
|
5391
5391
|
};
|
|
5392
|
-
const
|
|
5392
|
+
const l = { originalEvent: a };
|
|
5393
5393
|
a.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = c, t.addEventListener("click", o.current, { once: !0 })) : c();
|
|
5394
5394
|
} else
|
|
5395
5395
|
t.removeEventListener("click", o.current);
|
|
@@ -5420,7 +5420,7 @@ function v1(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5420
5420
|
};
|
|
5421
5421
|
}
|
|
5422
5422
|
function $i() {
|
|
5423
|
-
const e = new CustomEvent(
|
|
5423
|
+
const e = new CustomEvent(ts);
|
|
5424
5424
|
document.dispatchEvent(e);
|
|
5425
5425
|
}
|
|
5426
5426
|
function Cc(e, t, n, { discrete: r }) {
|
|
@@ -5448,7 +5448,7 @@ const C1 = ["top", "right", "bottom", "left"], bt = Math.min, Ce = Math.max, Dr
|
|
|
5448
5448
|
start: "end",
|
|
5449
5449
|
end: "start"
|
|
5450
5450
|
};
|
|
5451
|
-
function
|
|
5451
|
+
function ns(e, t, n) {
|
|
5452
5452
|
return Ce(e, bt(t, n));
|
|
5453
5453
|
}
|
|
5454
5454
|
function Xe(e, t) {
|
|
@@ -5481,9 +5481,9 @@ function _1(e, t, n) {
|
|
|
5481
5481
|
}
|
|
5482
5482
|
function R1(e) {
|
|
5483
5483
|
const t = Lr(e);
|
|
5484
|
-
return [
|
|
5484
|
+
return [rs(e), t, rs(t)];
|
|
5485
5485
|
}
|
|
5486
|
-
function
|
|
5486
|
+
function rs(e) {
|
|
5487
5487
|
return e.replace(/start|end/g, (t) => E1[t]);
|
|
5488
5488
|
}
|
|
5489
5489
|
const Mi = ["left", "right"], Fi = ["right", "left"], T1 = ["top", "bottom"], A1 = ["bottom", "top"];
|
|
@@ -5502,7 +5502,7 @@ function O1(e, t, n) {
|
|
|
5502
5502
|
function P1(e, t, n, r) {
|
|
5503
5503
|
const o = wn(e);
|
|
5504
5504
|
let s = O1(Je(e), n === "start", r);
|
|
5505
|
-
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(
|
|
5505
|
+
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(rs)))), s;
|
|
5506
5506
|
}
|
|
5507
5507
|
function Lr(e) {
|
|
5508
5508
|
return e.replace(/left|right|bottom|top/g, (t) => x1[t]);
|
|
@@ -5547,7 +5547,7 @@ function Bi(e, t, n) {
|
|
|
5547
5547
|
reference: r,
|
|
5548
5548
|
floating: o
|
|
5549
5549
|
} = e;
|
|
5550
|
-
const s = Be(t), i = Ts(t), a = Rs(i), c = Je(t),
|
|
5550
|
+
const s = Be(t), i = Ts(t), a = Rs(i), c = Je(t), l = 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;
|
|
5551
5551
|
let g;
|
|
5552
5552
|
switch (c) {
|
|
5553
5553
|
case "top":
|
|
@@ -5582,10 +5582,10 @@ function Bi(e, t, n) {
|
|
|
5582
5582
|
}
|
|
5583
5583
|
switch (wn(t)) {
|
|
5584
5584
|
case "start":
|
|
5585
|
-
g[i] -= p * (n &&
|
|
5585
|
+
g[i] -= p * (n && l ? -1 : 1);
|
|
5586
5586
|
break;
|
|
5587
5587
|
case "end":
|
|
5588
|
-
g[i] += p * (n &&
|
|
5588
|
+
g[i] += p * (n && l ? -1 : 1);
|
|
5589
5589
|
break;
|
|
5590
5590
|
}
|
|
5591
5591
|
return g;
|
|
@@ -5601,14 +5601,14 @@ async function D1(e, t) {
|
|
|
5601
5601
|
elements: a,
|
|
5602
5602
|
strategy: c
|
|
5603
5603
|
} = e, {
|
|
5604
|
-
boundary:
|
|
5604
|
+
boundary: l = "clippingAncestors",
|
|
5605
5605
|
rootBoundary: d = "viewport",
|
|
5606
5606
|
elementContext: h = "floating",
|
|
5607
5607
|
altBoundary: p = !1,
|
|
5608
5608
|
padding: g = 0
|
|
5609
5609
|
} = Xe(t, e), w = xc(g), y = a[p ? h === "floating" ? "reference" : "floating" : h], C = Nr(await s.getClippingRect({
|
|
5610
5610
|
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)),
|
|
5611
|
-
boundary:
|
|
5611
|
+
boundary: l,
|
|
5612
5612
|
rootBoundary: d,
|
|
5613
5613
|
strategy: c
|
|
5614
5614
|
})), x = h === "floating" ? {
|
|
@@ -5642,14 +5642,14 @@ const L1 = async (e, t, n) => {
|
|
|
5642
5642
|
middleware: s = [],
|
|
5643
5643
|
platform: i
|
|
5644
5644
|
} = n, a = s.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
5645
|
-
let
|
|
5645
|
+
let l = await i.getElementRects({
|
|
5646
5646
|
reference: e,
|
|
5647
5647
|
floating: t,
|
|
5648
5648
|
strategy: o
|
|
5649
5649
|
}), {
|
|
5650
5650
|
x: d,
|
|
5651
5651
|
y: h
|
|
5652
|
-
} = Bi(
|
|
5652
|
+
} = Bi(l, r, c), p = r, g = {}, w = 0;
|
|
5653
5653
|
for (let y = 0; y < a.length; y++) {
|
|
5654
5654
|
var f;
|
|
5655
5655
|
const {
|
|
@@ -5667,7 +5667,7 @@ const L1 = async (e, t, n) => {
|
|
|
5667
5667
|
placement: p,
|
|
5668
5668
|
strategy: o,
|
|
5669
5669
|
middlewareData: g,
|
|
5670
|
-
rects:
|
|
5670
|
+
rects: l,
|
|
5671
5671
|
platform: {
|
|
5672
5672
|
...i,
|
|
5673
5673
|
detectOverflow: (f = i.detectOverflow) != null ? f : D1
|
|
@@ -5683,14 +5683,14 @@ const L1 = async (e, t, n) => {
|
|
|
5683
5683
|
...g[C],
|
|
5684
5684
|
..._
|
|
5685
5685
|
}
|
|
5686
|
-
}, A && w <= 50 && (w++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (
|
|
5686
|
+
}, A && w <= 50 && (w++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (l = A.rects === !0 ? await i.getElementRects({
|
|
5687
5687
|
reference: e,
|
|
5688
5688
|
floating: t,
|
|
5689
5689
|
strategy: o
|
|
5690
5690
|
}) : A.rects), {
|
|
5691
5691
|
x: d,
|
|
5692
5692
|
y: h
|
|
5693
|
-
} = Bi(
|
|
5693
|
+
} = Bi(l, p, c)), y = -1);
|
|
5694
5694
|
}
|
|
5695
5695
|
return {
|
|
5696
5696
|
x: d,
|
|
@@ -5712,18 +5712,18 @@ const L1 = async (e, t, n) => {
|
|
|
5712
5712
|
elements: a,
|
|
5713
5713
|
middlewareData: c
|
|
5714
5714
|
} = t, {
|
|
5715
|
-
element:
|
|
5715
|
+
element: l,
|
|
5716
5716
|
padding: d = 0
|
|
5717
5717
|
} = Xe(e, t) || {};
|
|
5718
|
-
if (
|
|
5718
|
+
if (l == null)
|
|
5719
5719
|
return {};
|
|
5720
5720
|
const h = xc(d), p = {
|
|
5721
5721
|
x: n,
|
|
5722
5722
|
y: r
|
|
5723
|
-
}, g = Ts(o), w = Rs(g), f = await i.getDimensions(
|
|
5723
|
+
}, g = Ts(o), w = Rs(g), f = await i.getDimensions(l), 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(l));
|
|
5724
5724
|
let T = A ? A[S] : 0;
|
|
5725
5725
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(A))) && (T = a.floating[S] || s.floating[w]);
|
|
5726
|
-
const I = 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 + I, oe =
|
|
5726
|
+
const I = 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 + I, oe = ns(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;
|
|
5727
5727
|
return {
|
|
5728
5728
|
[g]: p[g] + J,
|
|
5729
5729
|
data: {
|
|
@@ -5748,7 +5748,7 @@ const L1 = async (e, t, n) => {
|
|
|
5748
5748
|
rects: i,
|
|
5749
5749
|
initialPlacement: a,
|
|
5750
5750
|
platform: c,
|
|
5751
|
-
elements:
|
|
5751
|
+
elements: l
|
|
5752
5752
|
} = t, {
|
|
5753
5753
|
mainAxis: d = !0,
|
|
5754
5754
|
crossAxis: h = !0,
|
|
@@ -5760,7 +5760,7 @@ const L1 = async (e, t, n) => {
|
|
|
5760
5760
|
} = Xe(e, t);
|
|
5761
5761
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
5762
5762
|
return {};
|
|
5763
|
-
const C = Je(o), x = Be(a), S = Je(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(
|
|
5763
|
+
const C = Je(o), x = Be(a), S = Je(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), _ = p || (S || !f ? [Lr(a)] : R1(a)), A = w !== "none";
|
|
5764
5764
|
!p && A && _.push(...P1(a, f, w, E));
|
|
5765
5765
|
const T = [a, ..._], I = await c.detectOverflow(t, y), N = [];
|
|
5766
5766
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -5877,7 +5877,7 @@ async function $1(e, t) {
|
|
|
5877
5877
|
placement: n,
|
|
5878
5878
|
platform: r,
|
|
5879
5879
|
elements: o
|
|
5880
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Je(n), a = wn(n), c = Be(n) === "y",
|
|
5880
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Je(n), a = wn(n), c = Be(n) === "y", l = Ec.has(i) ? -1 : 1, d = s && c ? -1 : 1, h = Xe(t, e);
|
|
5881
5881
|
let {
|
|
5882
5882
|
mainAxis: p,
|
|
5883
5883
|
crossAxis: g,
|
|
@@ -5893,9 +5893,9 @@ async function $1(e, t) {
|
|
|
5893
5893
|
};
|
|
5894
5894
|
return a && typeof w == "number" && (g = a === "end" ? w * -1 : w), c ? {
|
|
5895
5895
|
x: g * d,
|
|
5896
|
-
y: p *
|
|
5896
|
+
y: p * l
|
|
5897
5897
|
} : {
|
|
5898
|
-
x: p *
|
|
5898
|
+
x: p * l,
|
|
5899
5899
|
y: g * d
|
|
5900
5900
|
};
|
|
5901
5901
|
}
|
|
@@ -5946,19 +5946,19 @@ const M1 = function(e) {
|
|
|
5946
5946
|
};
|
|
5947
5947
|
}
|
|
5948
5948
|
},
|
|
5949
|
-
...
|
|
5949
|
+
...l
|
|
5950
5950
|
} = Xe(e, t), d = {
|
|
5951
5951
|
x: n,
|
|
5952
5952
|
y: r
|
|
5953
|
-
}, h = await s.detectOverflow(t,
|
|
5953
|
+
}, h = await s.detectOverflow(t, l), p = Be(Je(o)), g = _s(p);
|
|
5954
5954
|
let w = d[g], f = d[p];
|
|
5955
5955
|
if (i) {
|
|
5956
5956
|
const C = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", S = w + h[C], E = w - h[x];
|
|
5957
|
-
w =
|
|
5957
|
+
w = ns(S, w, E);
|
|
5958
5958
|
}
|
|
5959
5959
|
if (a) {
|
|
5960
5960
|
const C = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", S = f + h[C], E = f - h[x];
|
|
5961
|
-
f =
|
|
5961
|
+
f = ns(S, f, E);
|
|
5962
5962
|
}
|
|
5963
5963
|
const y = c.fn({
|
|
5964
5964
|
...t,
|
|
@@ -5991,7 +5991,7 @@ const M1 = function(e) {
|
|
|
5991
5991
|
} = t, {
|
|
5992
5992
|
offset: a = 0,
|
|
5993
5993
|
mainAxis: c = !0,
|
|
5994
|
-
crossAxis:
|
|
5994
|
+
crossAxis: l = !0
|
|
5995
5995
|
} = Xe(e, t), d = {
|
|
5996
5996
|
x: n,
|
|
5997
5997
|
y: r
|
|
@@ -6009,7 +6009,7 @@ const M1 = function(e) {
|
|
|
6009
6009
|
const S = p === "y" ? "height" : "width", E = s.reference[p] - s.floating[S] + y.mainAxis, _ = s.reference[p] + s.reference[S] - y.mainAxis;
|
|
6010
6010
|
g < E ? g = E : g > _ && (g = _);
|
|
6011
6011
|
}
|
|
6012
|
-
if (
|
|
6012
|
+
if (l) {
|
|
6013
6013
|
var C, x;
|
|
6014
6014
|
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);
|
|
6015
6015
|
w < _ ? w = _ : w > A && (w = A);
|
|
@@ -6034,8 +6034,8 @@ const M1 = function(e) {
|
|
|
6034
6034
|
} = t, {
|
|
6035
6035
|
apply: c = () => {
|
|
6036
6036
|
},
|
|
6037
|
-
...
|
|
6038
|
-
} = Xe(e, t), d = await i.detectOverflow(t,
|
|
6037
|
+
...l
|
|
6038
|
+
} = Xe(e, t), d = await i.detectOverflow(t, l), h = Je(o), p = wn(o), g = Be(o) === "y", {
|
|
6039
6039
|
width: w,
|
|
6040
6040
|
height: f
|
|
6041
6041
|
} = s.floating;
|
|
@@ -6061,7 +6061,7 @@ const M1 = function(e) {
|
|
|
6061
6061
|
}
|
|
6062
6062
|
};
|
|
6063
6063
|
};
|
|
6064
|
-
function
|
|
6064
|
+
function Gr() {
|
|
6065
6065
|
return typeof window < "u";
|
|
6066
6066
|
}
|
|
6067
6067
|
function Cn(e) {
|
|
@@ -6076,16 +6076,16 @@ function He(e) {
|
|
|
6076
6076
|
return (t = (Sc(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6077
6077
|
}
|
|
6078
6078
|
function Sc(e) {
|
|
6079
|
-
return
|
|
6079
|
+
return Gr() ? e instanceof Node || e instanceof Ee(e).Node : !1;
|
|
6080
6080
|
}
|
|
6081
6081
|
function je(e) {
|
|
6082
|
-
return
|
|
6082
|
+
return Gr() ? e instanceof Element || e instanceof Ee(e).Element : !1;
|
|
6083
6083
|
}
|
|
6084
6084
|
function We(e) {
|
|
6085
|
-
return
|
|
6085
|
+
return Gr() ? e instanceof HTMLElement || e instanceof Ee(e).HTMLElement : !1;
|
|
6086
6086
|
}
|
|
6087
6087
|
function Hi(e) {
|
|
6088
|
-
return !
|
|
6088
|
+
return !Gr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ee(e).ShadowRoot;
|
|
6089
6089
|
}
|
|
6090
6090
|
const W1 = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
6091
6091
|
function Un(e) {
|
|
@@ -6102,7 +6102,7 @@ function V1(e) {
|
|
|
6102
6102
|
return H1.has(Cn(e));
|
|
6103
6103
|
}
|
|
6104
6104
|
const q1 = [":popover-open", ":modal"];
|
|
6105
|
-
function
|
|
6105
|
+
function Qr(e) {
|
|
6106
6106
|
return q1.some((t) => {
|
|
6107
6107
|
try {
|
|
6108
6108
|
return e.matches(t);
|
|
@@ -6121,7 +6121,7 @@ function K1(e) {
|
|
|
6121
6121
|
for (; We(t) && !yn(t); ) {
|
|
6122
6122
|
if (As(t))
|
|
6123
6123
|
return t;
|
|
6124
|
-
if (
|
|
6124
|
+
if (Qr(t))
|
|
6125
6125
|
return null;
|
|
6126
6126
|
t = wt(t);
|
|
6127
6127
|
}
|
|
@@ -6137,7 +6137,7 @@ function yn(e) {
|
|
|
6137
6137
|
function De(e) {
|
|
6138
6138
|
return Ee(e).getComputedStyle(e);
|
|
6139
6139
|
}
|
|
6140
|
-
function
|
|
6140
|
+
function Kr(e) {
|
|
6141
6141
|
return je(e) ? {
|
|
6142
6142
|
scrollLeft: e.scrollLeft,
|
|
6143
6143
|
scrollTop: e.scrollTop
|
|
@@ -6167,12 +6167,12 @@ function Dn(e, t, n) {
|
|
|
6167
6167
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6168
6168
|
const o = _c(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Ee(o);
|
|
6169
6169
|
if (s) {
|
|
6170
|
-
const a =
|
|
6170
|
+
const a = os(i);
|
|
6171
6171
|
return t.concat(i, i.visualViewport || [], Un(o) ? o : [], a && n ? Dn(a) : []);
|
|
6172
6172
|
}
|
|
6173
6173
|
return t.concat(o, Dn(o, [], n));
|
|
6174
6174
|
}
|
|
6175
|
-
function
|
|
6175
|
+
function os(e) {
|
|
6176
6176
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
6177
6177
|
}
|
|
6178
6178
|
function Rc(e) {
|
|
@@ -6220,28 +6220,28 @@ function Ut(e, t, n, r) {
|
|
|
6220
6220
|
let i = Ue(1);
|
|
6221
6221
|
t && (r ? je(r) && (i = en(r)) : i = en(e));
|
|
6222
6222
|
const a = X1(s, n, r) ? Tc(s) : Ue(0);
|
|
6223
|
-
let c = (o.left + a.x) / i.x,
|
|
6223
|
+
let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, d = o.width / i.x, h = o.height / i.y;
|
|
6224
6224
|
if (s) {
|
|
6225
6225
|
const p = Ee(s), g = r && je(r) ? Ee(r) : r;
|
|
6226
|
-
let w = p, f =
|
|
6226
|
+
let w = p, f = os(w);
|
|
6227
6227
|
for (; f && r && g !== w; ) {
|
|
6228
6228
|
const y = en(f), C = f.getBoundingClientRect(), x = De(f), S = C.left + (f.clientLeft + parseFloat(x.paddingLeft)) * y.x, E = C.top + (f.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
6229
|
-
c *= y.x,
|
|
6229
|
+
c *= y.x, l *= y.y, d *= y.x, h *= y.y, c += S, l += E, w = Ee(f), f = os(w);
|
|
6230
6230
|
}
|
|
6231
6231
|
}
|
|
6232
6232
|
return Nr({
|
|
6233
6233
|
width: d,
|
|
6234
6234
|
height: h,
|
|
6235
6235
|
x: c,
|
|
6236
|
-
y:
|
|
6236
|
+
y: l
|
|
6237
6237
|
});
|
|
6238
6238
|
}
|
|
6239
|
-
function
|
|
6240
|
-
const n =
|
|
6239
|
+
function Yr(e, t) {
|
|
6240
|
+
const n = Kr(e).scrollLeft;
|
|
6241
6241
|
return t ? t.left + n : Ut(He(e)).left + n;
|
|
6242
6242
|
}
|
|
6243
6243
|
function Ac(e, t) {
|
|
6244
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
6244
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Yr(e, n), o = n.top + t.scrollTop;
|
|
6245
6245
|
return {
|
|
6246
6246
|
x: r,
|
|
6247
6247
|
y: o
|
|
@@ -6254,32 +6254,32 @@ function J1(e) {
|
|
|
6254
6254
|
offsetParent: r,
|
|
6255
6255
|
strategy: o
|
|
6256
6256
|
} = e;
|
|
6257
|
-
const s = o === "fixed", i = He(r), a = t ?
|
|
6257
|
+
const s = o === "fixed", i = He(r), a = t ? Qr(t.floating) : !1;
|
|
6258
6258
|
if (r === i || a && s)
|
|
6259
6259
|
return n;
|
|
6260
6260
|
let c = {
|
|
6261
6261
|
scrollLeft: 0,
|
|
6262
6262
|
scrollTop: 0
|
|
6263
|
-
},
|
|
6263
|
+
}, l = Ue(1);
|
|
6264
6264
|
const d = Ue(0), h = We(r);
|
|
6265
|
-
if ((h || !h && !s) && ((Cn(r) !== "body" || Un(i)) && (c =
|
|
6265
|
+
if ((h || !h && !s) && ((Cn(r) !== "body" || Un(i)) && (c = Kr(r)), We(r))) {
|
|
6266
6266
|
const g = Ut(r);
|
|
6267
|
-
|
|
6267
|
+
l = en(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
6268
6268
|
}
|
|
6269
6269
|
const p = i && !h && !s ? Ac(i, c) : Ue(0);
|
|
6270
6270
|
return {
|
|
6271
|
-
width: n.width *
|
|
6272
|
-
height: n.height *
|
|
6273
|
-
x: n.x *
|
|
6274
|
-
y: n.y *
|
|
6271
|
+
width: n.width * l.x,
|
|
6272
|
+
height: n.height * l.y,
|
|
6273
|
+
x: n.x * l.x - c.scrollLeft * l.x + d.x + p.x,
|
|
6274
|
+
y: n.y * l.y - c.scrollTop * l.y + d.y + p.y
|
|
6275
6275
|
};
|
|
6276
6276
|
}
|
|
6277
6277
|
function em(e) {
|
|
6278
6278
|
return Array.from(e.getClientRects());
|
|
6279
6279
|
}
|
|
6280
6280
|
function tm(e) {
|
|
6281
|
-
const t = He(e), n =
|
|
6282
|
-
let i = -n.scrollLeft +
|
|
6281
|
+
const t = He(e), n = Kr(e), r = e.ownerDocument.body, o = Ce(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ce(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6282
|
+
let i = -n.scrollLeft + Yr(e);
|
|
6283
6283
|
const a = -n.scrollTop;
|
|
6284
6284
|
return De(r).direction === "rtl" && (i += Ce(t.clientWidth, r.clientWidth) - o), {
|
|
6285
6285
|
width: o,
|
|
@@ -6297,11 +6297,11 @@ function nm(e, t) {
|
|
|
6297
6297
|
const d = Os();
|
|
6298
6298
|
(!d || d && t === "fixed") && (a = o.offsetLeft, c = o.offsetTop);
|
|
6299
6299
|
}
|
|
6300
|
-
const
|
|
6301
|
-
if (
|
|
6300
|
+
const l = Yr(r);
|
|
6301
|
+
if (l <= 0) {
|
|
6302
6302
|
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);
|
|
6303
6303
|
w <= Vi && (s -= w);
|
|
6304
|
-
} else
|
|
6304
|
+
} else l <= Vi && (s += l);
|
|
6305
6305
|
return {
|
|
6306
6306
|
width: s,
|
|
6307
6307
|
height: i,
|
|
@@ -6311,12 +6311,12 @@ function nm(e, t) {
|
|
|
6311
6311
|
}
|
|
6312
6312
|
const rm = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
6313
6313
|
function om(e, t) {
|
|
6314
|
-
const n = Ut(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = We(e) ? en(e) : Ue(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x,
|
|
6314
|
+
const n = Ut(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = We(e) ? en(e) : Ue(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, l = r * s.y;
|
|
6315
6315
|
return {
|
|
6316
6316
|
width: i,
|
|
6317
6317
|
height: a,
|
|
6318
6318
|
x: c,
|
|
6319
|
-
y:
|
|
6319
|
+
y: l
|
|
6320
6320
|
};
|
|
6321
6321
|
}
|
|
6322
6322
|
function qi(e, t, n) {
|
|
@@ -6362,9 +6362,9 @@ function im(e) {
|
|
|
6362
6362
|
rootBoundary: r,
|
|
6363
6363
|
strategy: o
|
|
6364
6364
|
} = e;
|
|
6365
|
-
const i = [...n === "clippingAncestors" ?
|
|
6365
|
+
const i = [...n === "clippingAncestors" ? Qr(t) ? [] : sm(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
|
|
6366
6366
|
const h = qi(t, d, o);
|
|
6367
|
-
return
|
|
6367
|
+
return l.top = Ce(h.top, l.top), l.right = bt(h.right, l.right), l.bottom = bt(h.bottom, l.bottom), l.left = Ce(h.left, l.left), l;
|
|
6368
6368
|
}, qi(t, a, o));
|
|
6369
6369
|
return {
|
|
6370
6370
|
width: c.right - c.left,
|
|
@@ -6390,15 +6390,15 @@ function cm(e, t, n) {
|
|
|
6390
6390
|
scrollTop: 0
|
|
6391
6391
|
};
|
|
6392
6392
|
const c = Ue(0);
|
|
6393
|
-
function
|
|
6394
|
-
c.x =
|
|
6393
|
+
function l() {
|
|
6394
|
+
c.x = Yr(o);
|
|
6395
6395
|
}
|
|
6396
6396
|
if (r || !r && !s)
|
|
6397
|
-
if ((Cn(t) !== "body" || Un(o)) && (a =
|
|
6397
|
+
if ((Cn(t) !== "body" || Un(o)) && (a = Kr(t)), r) {
|
|
6398
6398
|
const g = Ut(t, !0, s, t);
|
|
6399
6399
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
6400
|
-
} else o &&
|
|
6401
|
-
s && !r && o &&
|
|
6400
|
+
} else o && l();
|
|
6401
|
+
s && !r && o && l();
|
|
6402
6402
|
const d = o && !r && !s ? Ac(o, a) : Ue(0), h = i.left + a.scrollLeft - c.x - d.x, p = i.top + a.scrollTop - c.y - d.y;
|
|
6403
6403
|
return {
|
|
6404
6404
|
x: h,
|
|
@@ -6407,7 +6407,7 @@ function cm(e, t, n) {
|
|
|
6407
6407
|
height: i.height
|
|
6408
6408
|
};
|
|
6409
6409
|
}
|
|
6410
|
-
function
|
|
6410
|
+
function go(e) {
|
|
6411
6411
|
return De(e).position === "static";
|
|
6412
6412
|
}
|
|
6413
6413
|
function zi(e, t) {
|
|
@@ -6420,21 +6420,21 @@ function zi(e, t) {
|
|
|
6420
6420
|
}
|
|
6421
6421
|
function Pc(e, t) {
|
|
6422
6422
|
const n = Ee(e);
|
|
6423
|
-
if (
|
|
6423
|
+
if (Qr(e))
|
|
6424
6424
|
return n;
|
|
6425
6425
|
if (!We(e)) {
|
|
6426
6426
|
let o = wt(e);
|
|
6427
6427
|
for (; o && !yn(o); ) {
|
|
6428
|
-
if (je(o) && !
|
|
6428
|
+
if (je(o) && !go(o))
|
|
6429
6429
|
return o;
|
|
6430
6430
|
o = wt(o);
|
|
6431
6431
|
}
|
|
6432
6432
|
return n;
|
|
6433
6433
|
}
|
|
6434
6434
|
let r = zi(e, t);
|
|
6435
|
-
for (; r && V1(r) &&
|
|
6435
|
+
for (; r && V1(r) && go(r); )
|
|
6436
6436
|
r = zi(r, t);
|
|
6437
|
-
return r && yn(r) &&
|
|
6437
|
+
return r && yn(r) && go(r) && !As(r) ? n : r || K1(e) || n;
|
|
6438
6438
|
}
|
|
6439
6439
|
const lm = async function(e) {
|
|
6440
6440
|
const t = this.getOffsetParent || Pc, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -6475,12 +6475,12 @@ function fm(e, t) {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
function i(a, c) {
|
|
6477
6477
|
a === void 0 && (a = !1), c === void 0 && (c = 1), s();
|
|
6478
|
-
const
|
|
6478
|
+
const l = e.getBoundingClientRect(), {
|
|
6479
6479
|
left: d,
|
|
6480
6480
|
top: h,
|
|
6481
6481
|
width: p,
|
|
6482
6482
|
height: g
|
|
6483
|
-
} =
|
|
6483
|
+
} = l;
|
|
6484
6484
|
if (a || t(), !p || !g)
|
|
6485
6485
|
return;
|
|
6486
6486
|
const w = ar(h), f = ar(o.clientWidth - (d + p)), y = ar(o.clientHeight - (h + g)), C = ar(d), S = {
|
|
@@ -6497,7 +6497,7 @@ function fm(e, t) {
|
|
|
6497
6497
|
i(!1, 1e-7);
|
|
6498
6498
|
}, 1e3);
|
|
6499
6499
|
}
|
|
6500
|
-
T === 1 && !jc(
|
|
6500
|
+
T === 1 && !jc(l, e.getBoundingClientRect()) && i(), E = !1;
|
|
6501
6501
|
}
|
|
6502
6502
|
try {
|
|
6503
6503
|
n = new IntersectionObserver(_, {
|
|
@@ -6520,21 +6520,21 @@ function hm(e, t, n, r) {
|
|
|
6520
6520
|
elementResize: i = typeof ResizeObserver == "function",
|
|
6521
6521
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
6522
6522
|
animationFrame: c = !1
|
|
6523
|
-
} = r,
|
|
6523
|
+
} = r, l = Ps(e), d = o || s ? [...l ? Dn(l) : [], ...Dn(t)] : [];
|
|
6524
6524
|
d.forEach((C) => {
|
|
6525
6525
|
o && C.addEventListener("scroll", n, {
|
|
6526
6526
|
passive: !0
|
|
6527
6527
|
}), s && C.addEventListener("resize", n);
|
|
6528
6528
|
});
|
|
6529
|
-
const h =
|
|
6529
|
+
const h = l && a ? fm(l, n) : null;
|
|
6530
6530
|
let p = -1, g = null;
|
|
6531
6531
|
i && (g = new ResizeObserver((C) => {
|
|
6532
6532
|
let [x] = C;
|
|
6533
|
-
x && x.target ===
|
|
6533
|
+
x && x.target === l && g && (g.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
6534
6534
|
var S;
|
|
6535
6535
|
(S = g) == null || S.observe(t);
|
|
6536
6536
|
})), n();
|
|
6537
|
-
}),
|
|
6537
|
+
}), l && !c && g.observe(l), g.observe(t));
|
|
6538
6538
|
let w, f = c ? Ut(e) : null;
|
|
6539
6539
|
c && y();
|
|
6540
6540
|
function y() {
|
|
@@ -6600,7 +6600,7 @@ function Qi(e, t) {
|
|
|
6600
6600
|
const n = Dc(e);
|
|
6601
6601
|
return Math.round(t * n) / n;
|
|
6602
6602
|
}
|
|
6603
|
-
function
|
|
6603
|
+
function yo(e) {
|
|
6604
6604
|
const t = m.useRef(e);
|
|
6605
6605
|
return xr(() => {
|
|
6606
6606
|
t.current = e;
|
|
@@ -6619,7 +6619,7 @@ function Em(e) {
|
|
|
6619
6619
|
} = {},
|
|
6620
6620
|
transform: a = !0,
|
|
6621
6621
|
whileElementsMounted: c,
|
|
6622
|
-
open:
|
|
6622
|
+
open: l
|
|
6623
6623
|
} = e, [d, h] = m.useState({
|
|
6624
6624
|
x: 0,
|
|
6625
6625
|
y: 0,
|
|
@@ -6633,7 +6633,7 @@ function Em(e) {
|
|
|
6633
6633
|
M !== A.current && (A.current = M, f(M));
|
|
6634
6634
|
}, []), S = m.useCallback((M) => {
|
|
6635
6635
|
M !== T.current && (T.current = M, C(M));
|
|
6636
|
-
}, []), E = s || w, _ = i || y, A = m.useRef(null), T = m.useRef(null), I = m.useRef(d), N = c != null, L =
|
|
6636
|
+
}, []), E = s || w, _ = i || y, A = m.useRef(null), T = m.useRef(null), I = m.useRef(d), N = c != null, L = yo(c), V = yo(o), Q = yo(l), H = m.useCallback(() => {
|
|
6637
6637
|
if (!A.current || !T.current)
|
|
6638
6638
|
return;
|
|
6639
6639
|
const M = {
|
|
@@ -6656,11 +6656,11 @@ function Em(e) {
|
|
|
6656
6656
|
});
|
|
6657
6657
|
}, [p, t, n, V, Q]);
|
|
6658
6658
|
xr(() => {
|
|
6659
|
-
|
|
6659
|
+
l === !1 && I.current.isPositioned && (I.current.isPositioned = !1, h((M) => ({
|
|
6660
6660
|
...M,
|
|
6661
6661
|
isPositioned: !1
|
|
6662
6662
|
})));
|
|
6663
|
-
}, [
|
|
6663
|
+
}, [l]);
|
|
6664
6664
|
const G = m.useRef(!1);
|
|
6665
6665
|
xr(() => (G.current = !0, () => {
|
|
6666
6666
|
G.current = !1;
|
|
@@ -6753,7 +6753,7 @@ const Sm = (e) => {
|
|
|
6753
6753
|
});
|
|
6754
6754
|
var Dm = "Arrow", Lc = m.forwardRef((e, t) => {
|
|
6755
6755
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
6756
|
-
return /* @__PURE__ */
|
|
6756
|
+
return /* @__PURE__ */ u.jsx(
|
|
6757
6757
|
be.svg,
|
|
6758
6758
|
{
|
|
6759
6759
|
...s,
|
|
@@ -6762,7 +6762,7 @@ var Dm = "Arrow", Lc = m.forwardRef((e, t) => {
|
|
|
6762
6762
|
height: o,
|
|
6763
6763
|
viewBox: "0 0 30 10",
|
|
6764
6764
|
preserveAspectRatio: "none",
|
|
6765
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
6765
|
+
children: e.asChild ? n : /* @__PURE__ */ u.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
6766
6766
|
}
|
|
6767
6767
|
);
|
|
6768
6768
|
});
|
|
@@ -6779,8 +6779,8 @@ function Nm(e) {
|
|
|
6779
6779
|
const s = o[0];
|
|
6780
6780
|
let i, a;
|
|
6781
6781
|
if ("borderBoxSize" in s) {
|
|
6782
|
-
const c = s.borderBoxSize,
|
|
6783
|
-
i =
|
|
6782
|
+
const c = s.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
|
|
6783
|
+
i = l.inlineSize, a = l.blockSize;
|
|
6784
6784
|
} else
|
|
6785
6785
|
i = e.offsetWidth, a = e.offsetHeight;
|
|
6786
6786
|
n({ width: i, height: a });
|
|
@@ -6792,16 +6792,16 @@ function Nm(e) {
|
|
|
6792
6792
|
}
|
|
6793
6793
|
var js = "Popper", [Nc, kc] = Es(js), [km, Ic] = Nc(js), $c = (e) => {
|
|
6794
6794
|
const { __scopePopper: t, children: n } = e, [r, o] = m.useState(null);
|
|
6795
|
-
return /* @__PURE__ */
|
|
6795
|
+
return /* @__PURE__ */ u.jsx(km, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6796
6796
|
};
|
|
6797
6797
|
$c.displayName = js;
|
|
6798
6798
|
var Mc = "PopperAnchor", Fc = m.forwardRef(
|
|
6799
6799
|
(e, t) => {
|
|
6800
6800
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ic(Mc, n), i = m.useRef(null), a = Le(t, i), c = m.useRef(null);
|
|
6801
6801
|
return m.useEffect(() => {
|
|
6802
|
-
const
|
|
6803
|
-
c.current = (r == null ? void 0 : r.current) || i.current,
|
|
6804
|
-
}), r ? null : /* @__PURE__ */
|
|
6802
|
+
const l = c.current;
|
|
6803
|
+
c.current = (r == null ? void 0 : r.current) || i.current, l !== c.current && s.onAnchorChange(c.current);
|
|
6804
|
+
}), r ? null : /* @__PURE__ */ u.jsx(be.div, { ...o, ref: a });
|
|
6805
6805
|
}
|
|
6806
6806
|
);
|
|
6807
6807
|
Fc.displayName = Mc;
|
|
@@ -6816,14 +6816,14 @@ var Ds = "PopperContent", [Im, $m] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6816
6816
|
alignOffset: i = 0,
|
|
6817
6817
|
arrowPadding: a = 0,
|
|
6818
6818
|
avoidCollisions: c = !0,
|
|
6819
|
-
collisionBoundary:
|
|
6819
|
+
collisionBoundary: l = [],
|
|
6820
6820
|
collisionPadding: d = 0,
|
|
6821
6821
|
sticky: h = "partial",
|
|
6822
6822
|
hideWhenDetached: p = !1,
|
|
6823
6823
|
updatePositionStrategy: g = "optimized",
|
|
6824
6824
|
onPlaced: w,
|
|
6825
6825
|
...f
|
|
6826
|
-
} = e, y = Ic(Ds, n), [C, x] = m.useState(null), S = Le(t, (_t) => x(_t)), [E, _] = m.useState(null), A = Nm(E), T = (A == null ? void 0 : A.width) ?? 0, I = (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(
|
|
6826
|
+
} = e, y = Ic(Ds, n), [C, x] = m.useState(null), S = Le(t, (_t) => x(_t)), [E, _] = m.useState(null), A = Nm(E), T = (A == null ? void 0 : A.width) ?? 0, I = (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(l) ? l : [l], Q = V.length > 0, H = {
|
|
6827
6827
|
padding: L,
|
|
6828
6828
|
boundary: V.filter(Fm),
|
|
6829
6829
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6862,10 +6862,10 @@ var Ds = "PopperContent", [Im, $m] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6862
6862
|
vt(() => {
|
|
6863
6863
|
J && (xt == null || xt());
|
|
6864
6864
|
}, [J, xt]);
|
|
6865
|
-
const Hn = (qt = M.arrow) == null ? void 0 : qt.x, Vn = (Et = M.arrow) == null ? void 0 : Et.y,
|
|
6865
|
+
const Hn = (qt = M.arrow) == null ? void 0 : qt.x, Vn = (Et = M.arrow) == null ? void 0 : Et.y, no = ((zt = M.arrow) == null ? void 0 : zt.centerOffset) !== 0, [ro, En] = m.useState();
|
|
6866
6866
|
return vt(() => {
|
|
6867
6867
|
C && En(window.getComputedStyle(C).zIndex);
|
|
6868
|
-
}, [C]), /* @__PURE__ */
|
|
6868
|
+
}, [C]), /* @__PURE__ */ u.jsx(
|
|
6869
6869
|
"div",
|
|
6870
6870
|
{
|
|
6871
6871
|
ref: G.setFloating,
|
|
@@ -6875,7 +6875,7 @@ var Ds = "PopperContent", [Im, $m] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6875
6875
|
transform: J ? oe.transform : "translate(0, -200%)",
|
|
6876
6876
|
// keep off the page when measuring
|
|
6877
6877
|
minWidth: "max-content",
|
|
6878
|
-
zIndex:
|
|
6878
|
+
zIndex: ro,
|
|
6879
6879
|
"--radix-popper-transform-origin": [
|
|
6880
6880
|
(St = M.transformOrigin) == null ? void 0 : St.x,
|
|
6881
6881
|
(qn = M.transformOrigin) == null ? void 0 : qn.y
|
|
@@ -6889,7 +6889,7 @@ var Ds = "PopperContent", [Im, $m] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6889
6889
|
}
|
|
6890
6890
|
},
|
|
6891
6891
|
dir: e.dir,
|
|
6892
|
-
children: /* @__PURE__ */
|
|
6892
|
+
children: /* @__PURE__ */ u.jsx(
|
|
6893
6893
|
Im,
|
|
6894
6894
|
{
|
|
6895
6895
|
scope: n,
|
|
@@ -6897,8 +6897,8 @@ var Ds = "PopperContent", [Im, $m] = Nc(Ds), Bc = m.forwardRef(
|
|
|
6897
6897
|
onArrowChange: _,
|
|
6898
6898
|
arrowX: Hn,
|
|
6899
6899
|
arrowY: Vn,
|
|
6900
|
-
shouldHideArrow:
|
|
6901
|
-
children: /* @__PURE__ */
|
|
6900
|
+
shouldHideArrow: no,
|
|
6901
|
+
children: /* @__PURE__ */ u.jsx(
|
|
6902
6902
|
be.div,
|
|
6903
6903
|
{
|
|
6904
6904
|
"data-side": se,
|
|
@@ -6931,7 +6931,7 @@ var Uc = "PopperArrow", Mm = {
|
|
|
6931
6931
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6932
6932
|
// doesn't report size as we'd expect on SVG elements.
|
|
6933
6933
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
6934
|
-
/* @__PURE__ */
|
|
6934
|
+
/* @__PURE__ */ u.jsx(
|
|
6935
6935
|
"span",
|
|
6936
6936
|
{
|
|
6937
6937
|
ref: s.onArrowChange,
|
|
@@ -6954,7 +6954,7 @@ var Uc = "PopperArrow", Mm = {
|
|
|
6954
6954
|
}[s.placedSide],
|
|
6955
6955
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
6956
6956
|
},
|
|
6957
|
-
children: /* @__PURE__ */
|
|
6957
|
+
children: /* @__PURE__ */ u.jsx(
|
|
6958
6958
|
Lm,
|
|
6959
6959
|
{
|
|
6960
6960
|
...o,
|
|
@@ -6979,9 +6979,9 @@ var Bm = (e) => ({
|
|
|
6979
6979
|
options: e,
|
|
6980
6980
|
fn(t) {
|
|
6981
6981
|
var y, C, x;
|
|
6982
|
-
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, [
|
|
6982
|
+
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, [l, 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;
|
|
6983
6983
|
let w = "", f = "";
|
|
6984
|
-
return
|
|
6984
|
+
return l === "bottom" ? (w = i ? h : `${p}px`, f = `${-c}px`) : l === "top" ? (w = i ? h : `${p}px`, f = `${r.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, f = i ? h : `${g}px`) : l === "left" && (w = `${r.floating.width + c}px`, f = i ? h : `${g}px`), { data: { x: w, y: f } };
|
|
6985
6985
|
}
|
|
6986
6986
|
});
|
|
6987
6987
|
function Hc(e) {
|
|
@@ -6993,7 +6993,7 @@ var Um = $c, Wm = Fc, Hm = Bc, Vm = Wc, qm = "Portal", Ls = m.forwardRef((e, t)
|
|
|
6993
6993
|
const { container: n, ...r } = e, [o, s] = m.useState(!1);
|
|
6994
6994
|
vt(() => s(!0), []);
|
|
6995
6995
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
6996
|
-
return i ? ju.createPortal(/* @__PURE__ */
|
|
6996
|
+
return i ? ju.createPortal(/* @__PURE__ */ u.jsx(be.div, { ...r, ref: t }), i) : null;
|
|
6997
6997
|
});
|
|
6998
6998
|
Ls.displayName = qm;
|
|
6999
6999
|
function zm(e, t) {
|
|
@@ -7019,22 +7019,22 @@ function Gm(e) {
|
|
|
7019
7019
|
}
|
|
7020
7020
|
});
|
|
7021
7021
|
return m.useEffect(() => {
|
|
7022
|
-
const
|
|
7023
|
-
s.current = a === "mounted" ?
|
|
7022
|
+
const l = cr(r.current);
|
|
7023
|
+
s.current = a === "mounted" ? l : "none";
|
|
7024
7024
|
}, [a]), vt(() => {
|
|
7025
|
-
const
|
|
7025
|
+
const l = r.current, d = o.current;
|
|
7026
7026
|
if (d !== e) {
|
|
7027
|
-
const p = s.current, g = cr(
|
|
7028
|
-
e ? c("MOUNT") : g === "none" || (
|
|
7027
|
+
const p = s.current, g = cr(l);
|
|
7028
|
+
e ? c("MOUNT") : g === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(d && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
7029
7029
|
}
|
|
7030
7030
|
}, [e, c]), vt(() => {
|
|
7031
7031
|
if (t) {
|
|
7032
|
-
let
|
|
7032
|
+
let l;
|
|
7033
7033
|
const d = t.ownerDocument.defaultView ?? window, h = (g) => {
|
|
7034
7034
|
const f = cr(r.current).includes(CSS.escape(g.animationName));
|
|
7035
7035
|
if (g.target === t && f && (c("ANIMATION_END"), !o.current)) {
|
|
7036
7036
|
const y = t.style.animationFillMode;
|
|
7037
|
-
t.style.animationFillMode = "forwards",
|
|
7037
|
+
t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
|
|
7038
7038
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
|
|
7039
7039
|
});
|
|
7040
7040
|
}
|
|
@@ -7042,14 +7042,14 @@ function Gm(e) {
|
|
|
7042
7042
|
g.target === t && (s.current = cr(r.current));
|
|
7043
7043
|
};
|
|
7044
7044
|
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
|
|
7045
|
-
d.clearTimeout(
|
|
7045
|
+
d.clearTimeout(l), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", h), t.removeEventListener("animationend", h);
|
|
7046
7046
|
};
|
|
7047
7047
|
} else
|
|
7048
7048
|
c("ANIMATION_END");
|
|
7049
7049
|
}, [t, c]), {
|
|
7050
7050
|
isPresent: ["mounted", "unmountSuspended"].includes(a),
|
|
7051
|
-
ref: m.useCallback((
|
|
7052
|
-
r.current =
|
|
7051
|
+
ref: m.useCallback((l) => {
|
|
7052
|
+
r.current = l ? getComputedStyle(l) : null, n(l);
|
|
7053
7053
|
}, [])
|
|
7054
7054
|
};
|
|
7055
7055
|
}
|
|
@@ -7064,7 +7064,7 @@ function Qm(e) {
|
|
|
7064
7064
|
var Km = Symbol("radix.slottable");
|
|
7065
7065
|
// @__NO_SIDE_EFFECTS__
|
|
7066
7066
|
function Ym(e) {
|
|
7067
|
-
const t = ({ children: n }) => /* @__PURE__ */
|
|
7067
|
+
const t = ({ children: n }) => /* @__PURE__ */ u.jsx(u.Fragment, { children: n });
|
|
7068
7068
|
return t.displayName = `${e}.Slottable`, t.__radixId = Km, t;
|
|
7069
7069
|
}
|
|
7070
7070
|
var Zm = m[" useInsertionEffect ".trim().toString()] || vt;
|
|
@@ -7088,7 +7088,7 @@ function Vc({
|
|
|
7088
7088
|
), d.current = a;
|
|
7089
7089
|
}, [a, r]);
|
|
7090
7090
|
}
|
|
7091
|
-
const
|
|
7091
|
+
const l = m.useCallback(
|
|
7092
7092
|
(d) => {
|
|
7093
7093
|
var h;
|
|
7094
7094
|
if (a) {
|
|
@@ -7099,7 +7099,7 @@ function Vc({
|
|
|
7099
7099
|
},
|
|
7100
7100
|
[a, e, s, i]
|
|
7101
7101
|
);
|
|
7102
|
-
return [c,
|
|
7102
|
+
return [c, l];
|
|
7103
7103
|
}
|
|
7104
7104
|
function Xm({
|
|
7105
7105
|
defaultProp: e,
|
|
@@ -7129,7 +7129,7 @@ var eg = Object.freeze({
|
|
|
7129
7129
|
whiteSpace: "nowrap",
|
|
7130
7130
|
wordWrap: "normal"
|
|
7131
7131
|
}), tg = "VisuallyHidden", qc = m.forwardRef(
|
|
7132
|
-
(e, t) => /* @__PURE__ */
|
|
7132
|
+
(e, t) => /* @__PURE__ */ u.jsx(
|
|
7133
7133
|
be.span,
|
|
7134
7134
|
{
|
|
7135
7135
|
...e,
|
|
@@ -7139,9 +7139,9 @@ var eg = Object.freeze({
|
|
|
7139
7139
|
)
|
|
7140
7140
|
);
|
|
7141
7141
|
qc.displayName = tg;
|
|
7142
|
-
var ng = qc, [
|
|
7142
|
+
var ng = qc, [Zr] = Es("Tooltip", [
|
|
7143
7143
|
kc
|
|
7144
|
-
]),
|
|
7144
|
+
]), Xr = kc(), zc = "TooltipProvider", rg = 700, ss = "tooltip.open", [og, Ns] = Zr(zc), Gc = (e) => {
|
|
7145
7145
|
const {
|
|
7146
7146
|
__scopeTooltip: t,
|
|
7147
7147
|
delayDuration: n = rg,
|
|
@@ -7150,9 +7150,9 @@ var ng = qc, [Yr] = Es("Tooltip", [
|
|
|
7150
7150
|
children: s
|
|
7151
7151
|
} = e, i = m.useRef(!0), a = m.useRef(!1), c = m.useRef(0);
|
|
7152
7152
|
return m.useEffect(() => {
|
|
7153
|
-
const
|
|
7154
|
-
return () => window.clearTimeout(
|
|
7155
|
-
}, []), /* @__PURE__ */
|
|
7153
|
+
const l = c.current;
|
|
7154
|
+
return () => window.clearTimeout(l);
|
|
7155
|
+
}, []), /* @__PURE__ */ u.jsx(
|
|
7156
7156
|
og,
|
|
7157
7157
|
{
|
|
7158
7158
|
scope: t,
|
|
@@ -7168,8 +7168,8 @@ var ng = qc, [Yr] = Es("Tooltip", [
|
|
|
7168
7168
|
);
|
|
7169
7169
|
}, [r]),
|
|
7170
7170
|
isPointerInTransitRef: a,
|
|
7171
|
-
onPointerInTransitChange: m.useCallback((
|
|
7172
|
-
a.current =
|
|
7171
|
+
onPointerInTransitChange: m.useCallback((l) => {
|
|
7172
|
+
a.current = l;
|
|
7173
7173
|
}, []),
|
|
7174
7174
|
disableHoverableContent: o,
|
|
7175
7175
|
children: s
|
|
@@ -7177,7 +7177,7 @@ var ng = qc, [Yr] = Es("Tooltip", [
|
|
|
7177
7177
|
);
|
|
7178
7178
|
};
|
|
7179
7179
|
Gc.displayName = zc;
|
|
7180
|
-
var Ln = "Tooltip", [sg, Wn] =
|
|
7180
|
+
var Ln = "Tooltip", [sg, Wn] = Zr(Ln), Qc = (e) => {
|
|
7181
7181
|
const {
|
|
7182
7182
|
__scopeTooltip: t,
|
|
7183
7183
|
children: n,
|
|
@@ -7186,11 +7186,11 @@ var Ln = "Tooltip", [sg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7186
7186
|
onOpenChange: s,
|
|
7187
7187
|
disableHoverableContent: i,
|
|
7188
7188
|
delayDuration: a
|
|
7189
|
-
} = e, c = Ns(Ln, e.__scopeTooltip),
|
|
7189
|
+
} = e, c = Ns(Ln, e.__scopeTooltip), l = Xr(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({
|
|
7190
7190
|
prop: r,
|
|
7191
7191
|
defaultProp: o ?? !1,
|
|
7192
7192
|
onChange: (T) => {
|
|
7193
|
-
T ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
7193
|
+
T ? (c.onOpen(), document.dispatchEvent(new CustomEvent(ss))) : c.onClose(), s == null || s(T);
|
|
7194
7194
|
},
|
|
7195
7195
|
caller: Ln
|
|
7196
7196
|
}), S = m.useMemo(() => C ? y.current ? "delayed-open" : "instant-open" : "closed", [C]), E = m.useCallback(() => {
|
|
@@ -7204,7 +7204,7 @@ var Ln = "Tooltip", [sg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7204
7204
|
}, [f, x]);
|
|
7205
7205
|
return m.useEffect(() => () => {
|
|
7206
7206
|
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
7207
|
-
}, []), /* @__PURE__ */
|
|
7207
|
+
}, []), /* @__PURE__ */ u.jsx(Um, { ...l, children: /* @__PURE__ */ u.jsx(
|
|
7208
7208
|
sg,
|
|
7209
7209
|
{
|
|
7210
7210
|
scope: t,
|
|
@@ -7227,10 +7227,10 @@ var Ln = "Tooltip", [sg, Wn] = Yr(Ln), Qc = (e) => {
|
|
|
7227
7227
|
) });
|
|
7228
7228
|
};
|
|
7229
7229
|
Qc.displayName = Ln;
|
|
7230
|
-
var
|
|
7230
|
+
var is = "TooltipTrigger", Kc = m.forwardRef(
|
|
7231
7231
|
(e, t) => {
|
|
7232
|
-
const { __scopeTooltip: n, ...r } = e, o = Wn(
|
|
7233
|
-
return m.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */
|
|
7232
|
+
const { __scopeTooltip: n, ...r } = e, o = Wn(is, n), s = Ns(is, n), i = Xr(n), a = m.useRef(null), c = Le(t, a, o.onTriggerChange), l = m.useRef(!1), d = m.useRef(!1), h = m.useCallback(() => l.current = !1, []);
|
|
7233
|
+
return m.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ u.jsx(Wm, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
|
|
7234
7234
|
be.button,
|
|
7235
7235
|
{
|
|
7236
7236
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -7244,10 +7244,10 @@ var ss = "TooltipTrigger", Kc = m.forwardRef(
|
|
|
7244
7244
|
o.onTriggerLeave(), d.current = !1;
|
|
7245
7245
|
}),
|
|
7246
7246
|
onPointerDown: ve(e.onPointerDown, () => {
|
|
7247
|
-
o.open && o.onClose(),
|
|
7247
|
+
o.open && o.onClose(), l.current = !0, document.addEventListener("pointerup", h, { once: !0 });
|
|
7248
7248
|
}),
|
|
7249
7249
|
onFocus: ve(e.onFocus, () => {
|
|
7250
|
-
|
|
7250
|
+
l.current || o.onOpen();
|
|
7251
7251
|
}),
|
|
7252
7252
|
onBlur: ve(e.onBlur, o.onClose),
|
|
7253
7253
|
onClick: ve(e.onClick, o.onClose)
|
|
@@ -7255,21 +7255,21 @@ var ss = "TooltipTrigger", Kc = m.forwardRef(
|
|
|
7255
7255
|
) });
|
|
7256
7256
|
}
|
|
7257
7257
|
);
|
|
7258
|
-
Kc.displayName =
|
|
7259
|
-
var ks = "TooltipPortal", [ig, ag] =
|
|
7258
|
+
Kc.displayName = is;
|
|
7259
|
+
var ks = "TooltipPortal", [ig, ag] = Zr(ks, {
|
|
7260
7260
|
forceMount: void 0
|
|
7261
7261
|
}), Yc = (e) => {
|
|
7262
7262
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = Wn(ks, t);
|
|
7263
|
-
return /* @__PURE__ */
|
|
7263
|
+
return /* @__PURE__ */ u.jsx(ig, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(xn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ls, { asChild: !0, container: o, children: r }) }) });
|
|
7264
7264
|
};
|
|
7265
7265
|
Yc.displayName = ks;
|
|
7266
7266
|
var vn = "TooltipContent", Zc = m.forwardRef(
|
|
7267
7267
|
(e, t) => {
|
|
7268
7268
|
const n = ag(vn, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = Wn(vn, e.__scopeTooltip);
|
|
7269
|
-
return /* @__PURE__ */
|
|
7269
|
+
return /* @__PURE__ */ u.jsx(xn, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u.jsx(Xc, { side: o, ...s, ref: t }) : /* @__PURE__ */ u.jsx(cg, { side: o, ...s, ref: t }) });
|
|
7270
7270
|
}
|
|
7271
7271
|
), cg = m.forwardRef((e, t) => {
|
|
7272
|
-
const n = Wn(vn, e.__scopeTooltip), r = Ns(vn, e.__scopeTooltip), o = m.useRef(null), s = Le(t, o), [i, a] = m.useState(null), { trigger: c, onClose:
|
|
7272
|
+
const n = Wn(vn, e.__scopeTooltip), r = Ns(vn, e.__scopeTooltip), o = m.useRef(null), s = Le(t, o), [i, a] = m.useState(null), { trigger: c, onClose: l } = n, d = o.current, { onPointerInTransitChange: h } = r, p = m.useCallback(() => {
|
|
7273
7273
|
a(null), h(!1);
|
|
7274
7274
|
}, [h]), g = m.useCallback(
|
|
7275
7275
|
(w, f) => {
|
|
@@ -7289,12 +7289,12 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7289
7289
|
if (i) {
|
|
7290
7290
|
const w = (f) => {
|
|
7291
7291
|
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 = !mg(C, i);
|
|
7292
|
-
x ? p() : S && (p(),
|
|
7292
|
+
x ? p() : S && (p(), l());
|
|
7293
7293
|
};
|
|
7294
7294
|
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
7295
7295
|
}
|
|
7296
|
-
}, [c, d, i,
|
|
7297
|
-
}), [lg, ug] =
|
|
7296
|
+
}, [c, d, i, l, p]), /* @__PURE__ */ u.jsx(Xc, { ...e, ref: s });
|
|
7297
|
+
}), [lg, ug] = Zr(Ln, { isInside: !1 }), dg = /* @__PURE__ */ Ym("TooltipContent"), Xc = m.forwardRef(
|
|
7298
7298
|
(e, t) => {
|
|
7299
7299
|
const {
|
|
7300
7300
|
__scopeTooltip: n,
|
|
@@ -7303,8 +7303,8 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7303
7303
|
onEscapeKeyDown: s,
|
|
7304
7304
|
onPointerDownOutside: i,
|
|
7305
7305
|
...a
|
|
7306
|
-
} = e, c = Wn(vn, n),
|
|
7307
|
-
return m.useEffect(() => (document.addEventListener(
|
|
7306
|
+
} = e, c = Wn(vn, n), l = Xr(n), { onClose: d } = c;
|
|
7307
|
+
return m.useEffect(() => (document.addEventListener(ss, d), () => document.removeEventListener(ss, d)), [d]), m.useEffect(() => {
|
|
7308
7308
|
if (c.trigger) {
|
|
7309
7309
|
const h = (p) => {
|
|
7310
7310
|
const g = p.target;
|
|
@@ -7312,7 +7312,7 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7312
7312
|
};
|
|
7313
7313
|
return window.addEventListener("scroll", h, { capture: !0 }), () => window.removeEventListener("scroll", h, { capture: !0 });
|
|
7314
7314
|
}
|
|
7315
|
-
}, [c.trigger, d]), /* @__PURE__ */
|
|
7315
|
+
}, [c.trigger, d]), /* @__PURE__ */ u.jsx(
|
|
7316
7316
|
Ss,
|
|
7317
7317
|
{
|
|
7318
7318
|
asChild: !0,
|
|
@@ -7321,11 +7321,11 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7321
7321
|
onPointerDownOutside: i,
|
|
7322
7322
|
onFocusOutside: (h) => h.preventDefault(),
|
|
7323
7323
|
onDismiss: d,
|
|
7324
|
-
children: /* @__PURE__ */
|
|
7324
|
+
children: /* @__PURE__ */ u.jsxs(
|
|
7325
7325
|
Hm,
|
|
7326
7326
|
{
|
|
7327
7327
|
"data-state": c.stateAttribute,
|
|
7328
|
-
...
|
|
7328
|
+
...l,
|
|
7329
7329
|
...a,
|
|
7330
7330
|
ref: t,
|
|
7331
7331
|
style: {
|
|
@@ -7337,8 +7337,8 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7337
7337
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
7338
7338
|
},
|
|
7339
7339
|
children: [
|
|
7340
|
-
/* @__PURE__ */
|
|
7341
|
-
/* @__PURE__ */
|
|
7340
|
+
/* @__PURE__ */ u.jsx(dg, { children: r }),
|
|
7341
|
+
/* @__PURE__ */ u.jsx(lg, { scope: n, isInside: !0, children: /* @__PURE__ */ u.jsx(ng, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
7342
7342
|
]
|
|
7343
7343
|
}
|
|
7344
7344
|
)
|
|
@@ -7349,11 +7349,11 @@ var vn = "TooltipContent", Zc = m.forwardRef(
|
|
|
7349
7349
|
Zc.displayName = vn;
|
|
7350
7350
|
var Jc = "TooltipArrow", el = m.forwardRef(
|
|
7351
7351
|
(e, t) => {
|
|
7352
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
7352
|
+
const { __scopeTooltip: n, ...r } = e, o = Xr(n);
|
|
7353
7353
|
return ug(
|
|
7354
7354
|
Jc,
|
|
7355
7355
|
n
|
|
7356
|
-
).isInside ? null : /* @__PURE__ */
|
|
7356
|
+
).isInside ? null : /* @__PURE__ */ u.jsx(Vm, { ...o, ...r, ref: t });
|
|
7357
7357
|
}
|
|
7358
7358
|
);
|
|
7359
7359
|
el.displayName = Jc;
|
|
@@ -7415,8 +7415,8 @@ function mg(e, t) {
|
|
|
7415
7415
|
const { x: n, y: r } = e;
|
|
7416
7416
|
let o = !1;
|
|
7417
7417
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
7418
|
-
const a = t[s], c = t[i],
|
|
7419
|
-
d > r != p > r && n < (h -
|
|
7418
|
+
const a = t[s], c = t[i], l = a.x, d = a.y, h = c.x, p = c.y;
|
|
7419
|
+
d > r != p > r && n < (h - l) * (r - d) / (p - d) + l && (o = !o);
|
|
7420
7420
|
}
|
|
7421
7421
|
return o;
|
|
7422
7422
|
}
|
|
@@ -7453,7 +7453,7 @@ var vg = Gc, bg = Qc, wg = Kc, Cg = Yc, xg = Zc, Eg = el;
|
|
|
7453
7453
|
const Sg = "tooltip__nUuSh", _g = "tooltipArrow__W2w-f", Ki = {
|
|
7454
7454
|
tooltip: Sg,
|
|
7455
7455
|
tooltipArrow: _g
|
|
7456
|
-
},
|
|
7456
|
+
}, as = ({
|
|
7457
7457
|
children: e,
|
|
7458
7458
|
open: t,
|
|
7459
7459
|
displayName: n,
|
|
@@ -7464,19 +7464,19 @@ const Sg = "tooltip__nUuSh", _g = "tooltipArrow__W2w-f", Ki = {
|
|
|
7464
7464
|
side: a = "right",
|
|
7465
7465
|
sideOffset: c = 0
|
|
7466
7466
|
}) => {
|
|
7467
|
-
const [
|
|
7467
|
+
const [l, d] = Y(!1), h = t !== void 0, g = s ? !1 : h ? t : l, w = (f) => {
|
|
7468
7468
|
s || h || d(f);
|
|
7469
7469
|
};
|
|
7470
|
-
return /* @__PURE__ */
|
|
7471
|
-
/* @__PURE__ */
|
|
7472
|
-
/* @__PURE__ */
|
|
7470
|
+
return /* @__PURE__ */ u.jsx(vg, { delayDuration: i, children: /* @__PURE__ */ u.jsxs(bg, { open: g, onOpenChange: w, children: [
|
|
7471
|
+
/* @__PURE__ */ u.jsx(wg, { asChild: !0, children: e }),
|
|
7472
|
+
/* @__PURE__ */ u.jsx(Cg, { children: /* @__PURE__ */ u.jsxs(xg, { className: j(Ki.tooltip, o), side: a, sideOffset: c, children: [
|
|
7473
7473
|
n,
|
|
7474
7474
|
r,
|
|
7475
|
-
/* @__PURE__ */
|
|
7475
|
+
/* @__PURE__ */ u.jsx(Eg, { className: Ki.tooltipArrow })
|
|
7476
7476
|
] }) })
|
|
7477
7477
|
] }) });
|
|
7478
7478
|
};
|
|
7479
|
-
|
|
7479
|
+
as.displayName = "Tooltip";
|
|
7480
7480
|
const Rg = "spinner__qa7F6", Tg = "rotate__EqlXe", Ag = "spinner-dark__9A9-q", Og = "spinner-white__gRbtI", Pg = "spinner-success__otWGm", jg = "spinner-danger__Bq5DM", Dg = "spinner-warning__U900K", Yi = {
|
|
7481
7481
|
spinner: Rg,
|
|
7482
7482
|
rotate: Tg,
|
|
@@ -7496,7 +7496,7 @@ const Rg = "spinner__qa7F6", Tg = "rotate__EqlXe", Ag = "spinner-dark__9A9-q", O
|
|
|
7496
7496
|
Yi[`spinner-${t}`],
|
|
7497
7497
|
e
|
|
7498
7498
|
), s = r ?? Math.max(n / 12, 2);
|
|
7499
|
-
return /* @__PURE__ */
|
|
7499
|
+
return /* @__PURE__ */ u.jsx("span", { style: { width: n, height: n, borderWidth: s }, className: o });
|
|
7500
7500
|
};
|
|
7501
7501
|
Lg.displayName = "Spinner";
|
|
7502
7502
|
const Ng = "disabled__KpauE", kg = "checked__2-JV-", Ig = "thumb__fEuKD", lr = {
|
|
@@ -7515,17 +7515,17 @@ const Ng = "disabled__KpauE", kg = "checked__2-JV-", Ig = "thumb__fEuKD", lr = {
|
|
|
7515
7515
|
name: i,
|
|
7516
7516
|
"aria-label": a,
|
|
7517
7517
|
"aria-labelledby": c,
|
|
7518
|
-
"aria-describedby":
|
|
7518
|
+
"aria-describedby": l,
|
|
7519
7519
|
...d
|
|
7520
7520
|
}, h) => {
|
|
7521
|
-
const [p, g] =
|
|
7521
|
+
const [p, g] = us.useState(t), w = e !== void 0, f = w ? !!e : p, y = () => {
|
|
7522
7522
|
if (r) return;
|
|
7523
7523
|
const x = !f;
|
|
7524
7524
|
w || g(x), n == null || n(x);
|
|
7525
7525
|
}, C = (x) => {
|
|
7526
7526
|
(x.key === " " || x.key === "Enter") && (x.preventDefault(), y());
|
|
7527
7527
|
};
|
|
7528
|
-
return /* @__PURE__ */
|
|
7528
|
+
return /* @__PURE__ */ u.jsx(
|
|
7529
7529
|
"button",
|
|
7530
7530
|
{
|
|
7531
7531
|
ref: h,
|
|
@@ -7534,7 +7534,7 @@ const Ng = "disabled__KpauE", kg = "checked__2-JV-", Ig = "thumb__fEuKD", lr = {
|
|
|
7534
7534
|
"aria-checked": f,
|
|
7535
7535
|
"aria-label": a,
|
|
7536
7536
|
"aria-labelledby": c,
|
|
7537
|
-
"aria-describedby":
|
|
7537
|
+
"aria-describedby": l,
|
|
7538
7538
|
disabled: r,
|
|
7539
7539
|
id: o,
|
|
7540
7540
|
name: i,
|
|
@@ -7545,7 +7545,7 @@ const Ng = "disabled__KpauE", kg = "checked__2-JV-", Ig = "thumb__fEuKD", lr = {
|
|
|
7545
7545
|
onClick: y,
|
|
7546
7546
|
onKeyDown: C,
|
|
7547
7547
|
...d,
|
|
7548
|
-
children: /* @__PURE__ */
|
|
7548
|
+
children: /* @__PURE__ */ u.jsx("span", { className: lr.thumb, "aria-hidden": "true" })
|
|
7549
7549
|
}
|
|
7550
7550
|
);
|
|
7551
7551
|
}
|
|
@@ -7562,12 +7562,12 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7562
7562
|
tabsTriggerActive: qg,
|
|
7563
7563
|
tabsTriggerVertical: zg,
|
|
7564
7564
|
tabsContent: Gg
|
|
7565
|
-
}, tl =
|
|
7566
|
-
const e =
|
|
7565
|
+
}, tl = ds(null), Is = () => {
|
|
7566
|
+
const e = fs(tl);
|
|
7567
7567
|
if (!e)
|
|
7568
7568
|
throw new Error("Tabs components must be used within a Tabs provider");
|
|
7569
7569
|
return e;
|
|
7570
|
-
},
|
|
7570
|
+
}, T2 = ({
|
|
7571
7571
|
defaultValue: e,
|
|
7572
7572
|
value: t,
|
|
7573
7573
|
onValueChange: n,
|
|
@@ -7575,14 +7575,14 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7575
7575
|
className: o = "",
|
|
7576
7576
|
children: s
|
|
7577
7577
|
}) => {
|
|
7578
|
-
const [i, a] = Y(e || ""), c = t !== void 0,
|
|
7578
|
+
const [i, a] = Y(e || ""), c = t !== void 0, l = c ? t : i, d = (h) => {
|
|
7579
7579
|
c || a(h), n == null || n(h);
|
|
7580
7580
|
};
|
|
7581
|
-
return /* @__PURE__ */
|
|
7582
|
-
},
|
|
7581
|
+
return /* @__PURE__ */ u.jsx(tl.Provider, { value: { value: l, onValueChange: d, orientation: r }, children: /* @__PURE__ */ u.jsx("div", { className: j(Fe.tabsRoot, o), children: s }) });
|
|
7582
|
+
}, A2 = ({ className: e = "", children: t }) => {
|
|
7583
7583
|
const { orientation: n } = Is(), r = Ea(null), o = (s) => {
|
|
7584
|
-
var
|
|
7585
|
-
const i = (
|
|
7584
|
+
var l;
|
|
7585
|
+
const i = (l = r.current) == null ? void 0 : l.querySelectorAll('[role="tab"]:not([disabled])');
|
|
7586
7586
|
if (!i) return;
|
|
7587
7587
|
const a = Array.from(i).findIndex(
|
|
7588
7588
|
(d) => d === document.activeElement
|
|
@@ -7613,7 +7613,7 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7613
7613
|
d.focus(), d.click();
|
|
7614
7614
|
}
|
|
7615
7615
|
};
|
|
7616
|
-
return /* @__PURE__ */
|
|
7616
|
+
return /* @__PURE__ */ u.jsx(
|
|
7617
7617
|
"div",
|
|
7618
7618
|
{
|
|
7619
7619
|
ref: r,
|
|
@@ -7628,7 +7628,7 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7628
7628
|
children: t
|
|
7629
7629
|
}
|
|
7630
7630
|
);
|
|
7631
|
-
},
|
|
7631
|
+
}, O2 = ({
|
|
7632
7632
|
value: e,
|
|
7633
7633
|
disabled: t = !1,
|
|
7634
7634
|
className: n = "",
|
|
@@ -7637,7 +7637,7 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7637
7637
|
const { value: o, onValueChange: s, orientation: i } = Is(), a = o === e, c = () => {
|
|
7638
7638
|
t || s(e);
|
|
7639
7639
|
};
|
|
7640
|
-
return /* @__PURE__ */
|
|
7640
|
+
return /* @__PURE__ */ u.jsx(
|
|
7641
7641
|
"button",
|
|
7642
7642
|
{
|
|
7643
7643
|
role: "tab",
|
|
@@ -7656,13 +7656,13 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7656
7656
|
children: r
|
|
7657
7657
|
}
|
|
7658
7658
|
);
|
|
7659
|
-
},
|
|
7659
|
+
}, P2 = ({
|
|
7660
7660
|
value: e,
|
|
7661
7661
|
className: t = "",
|
|
7662
7662
|
children: n
|
|
7663
7663
|
}) => {
|
|
7664
7664
|
const { value: r } = Is();
|
|
7665
|
-
return r === e ? /* @__PURE__ */
|
|
7665
|
+
return r === e ? /* @__PURE__ */ u.jsx(
|
|
7666
7666
|
"div",
|
|
7667
7667
|
{
|
|
7668
7668
|
role: "tabpanel",
|
|
@@ -7673,29 +7673,29 @@ const Mg = "tabs-root__ELmdj", Fg = "tabs-list__rc10N", Bg = "tabs-list--horizon
|
|
|
7673
7673
|
children: n
|
|
7674
7674
|
}
|
|
7675
7675
|
) : null;
|
|
7676
|
-
}, Qg = ({ className: e, state: t = "open", onClick: n }) => t === "open" ? /* @__PURE__ */
|
|
7677
|
-
/* @__PURE__ */
|
|
7678
|
-
/* @__PURE__ */
|
|
7679
|
-
] }) : /* @__PURE__ */
|
|
7676
|
+
}, Qg = ({ className: e, state: t = "open", onClick: n }) => t === "open" ? /* @__PURE__ */ u.jsxs("svg", { className: e, onClick: n, xmlns: "http://www.w3.org/2000/svg", width: "1.5em", height: "1.5em", viewBox: "0 0 14 14", fill: "none", children: [
|
|
7677
|
+
/* @__PURE__ */ u.jsx("path", { d: "M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z", stroke: "#818181", strokeWidth: "1.16667", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
7678
|
+
/* @__PURE__ */ u.jsx("path", { d: "M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z", stroke: "#818181", strokeWidth: "1.16667", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
7679
|
+
] }) : /* @__PURE__ */ u.jsx("svg", { className: e, onClick: n, xmlns: "http://www.w3.org/2000/svg", width: "1.5em", height: "1.5em", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ u.jsx("path", { d: "M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744", stroke: "#818181", strokeWidth: "1.16667", strokeLinecap: "round", strokeLinejoin: "round" }) }), Kg = "PasswordInput__GDJDN", Yg = "eyeIcon__kDExG", Zi = {
|
|
7680
7680
|
PasswordInput: Kg,
|
|
7681
7681
|
eyeIcon: Yg
|
|
7682
|
-
},
|
|
7682
|
+
}, j2 = W((e, t) => {
|
|
7683
7683
|
const [n, r] = Y("password"), o = ce(() => {
|
|
7684
7684
|
r((s) => s === "password" ? "text" : "password");
|
|
7685
7685
|
}, [r]);
|
|
7686
|
-
return /* @__PURE__ */
|
|
7687
|
-
/* @__PURE__ */
|
|
7688
|
-
/* @__PURE__ */
|
|
7686
|
+
return /* @__PURE__ */ u.jsxs("div", { className: j(Zi.PasswordInput, e.className), children: [
|
|
7687
|
+
/* @__PURE__ */ u.jsx(ws, { type: n, ...e, ref: t }),
|
|
7688
|
+
/* @__PURE__ */ u.jsx(Qg, { className: Zi.eyeIcon, onClick: o, state: n === "password" ? "open" : "closed" })
|
|
7689
7689
|
] });
|
|
7690
7690
|
});
|
|
7691
|
-
var
|
|
7691
|
+
var vo = "focusScope.autoFocusOnMount", bo = "focusScope.autoFocusOnUnmount", Xi = { bubbles: !1, cancelable: !0 }, Zg = "FocusScope", nl = m.forwardRef((e, t) => {
|
|
7692
7692
|
const {
|
|
7693
7693
|
loop: n = !1,
|
|
7694
7694
|
trapped: r = !1,
|
|
7695
7695
|
onMountAutoFocus: o,
|
|
7696
7696
|
onUnmountAutoFocus: s,
|
|
7697
7697
|
...i
|
|
7698
|
-
} = e, [a, c] = m.useState(null),
|
|
7698
|
+
} = e, [a, c] = m.useState(null), l = gn(o), d = gn(s), h = m.useRef(null), p = Le(t, (f) => c(f)), g = m.useRef({
|
|
7699
7699
|
paused: !1,
|
|
7700
7700
|
pause() {
|
|
7701
7701
|
this.paused = !0;
|
|
@@ -7730,17 +7730,17 @@ var yo = "focusScope.autoFocusOnMount", vo = "focusScope.autoFocusOnUnmount", Xi
|
|
|
7730
7730
|
ea.add(g);
|
|
7731
7731
|
const f = document.activeElement;
|
|
7732
7732
|
if (!a.contains(f)) {
|
|
7733
|
-
const C = new CustomEvent(
|
|
7734
|
-
a.addEventListener(
|
|
7733
|
+
const C = new CustomEvent(vo, Xi);
|
|
7734
|
+
a.addEventListener(vo, l), a.dispatchEvent(C), C.defaultPrevented || (Xg(ry(rl(a)), { select: !0 }), document.activeElement === f && rt(a));
|
|
7735
7735
|
}
|
|
7736
7736
|
return () => {
|
|
7737
|
-
a.removeEventListener(
|
|
7738
|
-
const C = new CustomEvent(
|
|
7739
|
-
a.addEventListener(
|
|
7737
|
+
a.removeEventListener(vo, l), setTimeout(() => {
|
|
7738
|
+
const C = new CustomEvent(bo, Xi);
|
|
7739
|
+
a.addEventListener(bo, d), a.dispatchEvent(C), C.defaultPrevented || rt(f ?? document.body, { select: !0 }), a.removeEventListener(bo, d), ea.remove(g);
|
|
7740
7740
|
}, 0);
|
|
7741
7741
|
};
|
|
7742
7742
|
}
|
|
7743
|
-
}, [a,
|
|
7743
|
+
}, [a, l, d, g]);
|
|
7744
7744
|
const w = m.useCallback(
|
|
7745
7745
|
(f) => {
|
|
7746
7746
|
if (!n && !r || g.paused) return;
|
|
@@ -7752,7 +7752,7 @@ var yo = "focusScope.autoFocusOnMount", vo = "focusScope.autoFocusOnUnmount", Xi
|
|
|
7752
7752
|
},
|
|
7753
7753
|
[n, r, g.paused]
|
|
7754
7754
|
);
|
|
7755
|
-
return /* @__PURE__ */
|
|
7755
|
+
return /* @__PURE__ */ u.jsx(be.div, { tabIndex: -1, ...i, ref: p, onKeyDown: w });
|
|
7756
7756
|
});
|
|
7757
7757
|
nl.displayName = Zg;
|
|
7758
7758
|
function Xg(e, { select: t = !1 } = {}) {
|
|
@@ -7817,12 +7817,12 @@ function ta(e, t) {
|
|
|
7817
7817
|
function ry(e) {
|
|
7818
7818
|
return e.filter((t) => t.tagName !== "A");
|
|
7819
7819
|
}
|
|
7820
|
-
var
|
|
7820
|
+
var wo = 0;
|
|
7821
7821
|
function oy() {
|
|
7822
7822
|
m.useEffect(() => {
|
|
7823
7823
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
7824
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? na()), document.body.insertAdjacentElement("beforeend", e[1] ?? na()),
|
|
7825
|
-
|
|
7824
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? na()), document.body.insertAdjacentElement("beforeend", e[1] ?? na()), wo++, () => {
|
|
7825
|
+
wo === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), wo--;
|
|
7826
7826
|
};
|
|
7827
7827
|
}, []);
|
|
7828
7828
|
}
|
|
@@ -7831,7 +7831,7 @@ function na() {
|
|
|
7831
7831
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
7832
7832
|
}
|
|
7833
7833
|
var Er = "right-scroll-bar-position", Sr = "width-before-scroll-bar", sy = "with-scroll-bars-hidden", iy = "--removed-body-scroll-bar-size";
|
|
7834
|
-
function
|
|
7834
|
+
function Co(e, t) {
|
|
7835
7835
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
7836
7836
|
}
|
|
7837
7837
|
function ay(e, t) {
|
|
@@ -7859,7 +7859,7 @@ var cy = typeof window < "u" ? m.useLayoutEffect : m.useEffect, ra = /* @__PURE_
|
|
|
7859
7859
|
function ly(e, t) {
|
|
7860
7860
|
var n = ay(null, function(r) {
|
|
7861
7861
|
return e.forEach(function(o) {
|
|
7862
|
-
return
|
|
7862
|
+
return Co(o, r);
|
|
7863
7863
|
});
|
|
7864
7864
|
});
|
|
7865
7865
|
return cy(function() {
|
|
@@ -7867,9 +7867,9 @@ function ly(e, t) {
|
|
|
7867
7867
|
if (r) {
|
|
7868
7868
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
7869
7869
|
o.forEach(function(a) {
|
|
7870
|
-
s.has(a) ||
|
|
7870
|
+
s.has(a) || Co(a, null);
|
|
7871
7871
|
}), s.forEach(function(a) {
|
|
7872
|
-
o.has(a) ||
|
|
7872
|
+
o.has(a) || Co(a, i);
|
|
7873
7873
|
});
|
|
7874
7874
|
}
|
|
7875
7875
|
ra.set(n, e);
|
|
@@ -7918,12 +7918,12 @@ function dy(e, t) {
|
|
|
7918
7918
|
var c = function() {
|
|
7919
7919
|
var d = i;
|
|
7920
7920
|
i = [], d.forEach(s);
|
|
7921
|
-
},
|
|
7921
|
+
}, l = function() {
|
|
7922
7922
|
return Promise.resolve().then(c);
|
|
7923
7923
|
};
|
|
7924
|
-
|
|
7924
|
+
l(), n = {
|
|
7925
7925
|
push: function(d) {
|
|
7926
|
-
i.push(d),
|
|
7926
|
+
i.push(d), l();
|
|
7927
7927
|
},
|
|
7928
7928
|
filter: function(d) {
|
|
7929
7929
|
return i = i.filter(d), n;
|
|
@@ -7951,26 +7951,26 @@ ol.isSideCarExport = !0;
|
|
|
7951
7951
|
function hy(e, t) {
|
|
7952
7952
|
return e.useMedium(t), ol;
|
|
7953
7953
|
}
|
|
7954
|
-
var sl = fy(),
|
|
7955
|
-
},
|
|
7954
|
+
var sl = fy(), xo = function() {
|
|
7955
|
+
}, Jr = m.forwardRef(function(e, t) {
|
|
7956
7956
|
var n = m.useRef(null), r = m.useState({
|
|
7957
|
-
onScrollCapture:
|
|
7958
|
-
onWheelCapture:
|
|
7959
|
-
onTouchMoveCapture:
|
|
7960
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className,
|
|
7957
|
+
onScrollCapture: xo,
|
|
7958
|
+
onWheelCapture: xo,
|
|
7959
|
+
onTouchMoveCapture: xo
|
|
7960
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = 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 = ly([n, t]), T = Me(Me({}, E), o);
|
|
7961
7961
|
return m.createElement(
|
|
7962
7962
|
m.Fragment,
|
|
7963
7963
|
null,
|
|
7964
|
-
d && m.createElement(_, { sideCar: sl, removeScrollBar:
|
|
7964
|
+
d && m.createElement(_, { sideCar: sl, removeScrollBar: l, shards: h, noRelative: g, noIsolation: w, inert: f, setCallbacks: s, allowPinchZoom: !!y, lockRef: n, gapMode: S }),
|
|
7965
7965
|
i ? m.cloneElement(m.Children.only(a), Me(Me({}, T), { ref: A })) : m.createElement(x, Me({}, T, { className: c, ref: A }), a)
|
|
7966
7966
|
);
|
|
7967
7967
|
});
|
|
7968
|
-
|
|
7968
|
+
Jr.defaultProps = {
|
|
7969
7969
|
enabled: !0,
|
|
7970
7970
|
removeScrollBar: !0,
|
|
7971
7971
|
inert: !1
|
|
7972
7972
|
};
|
|
7973
|
-
|
|
7973
|
+
Jr.classNames = {
|
|
7974
7974
|
fullWidth: Sr,
|
|
7975
7975
|
zeroRight: Er
|
|
7976
7976
|
};
|
|
@@ -8023,11 +8023,11 @@ var vy = function() {
|
|
|
8023
8023
|
top: 0,
|
|
8024
8024
|
right: 0,
|
|
8025
8025
|
gap: 0
|
|
8026
|
-
},
|
|
8026
|
+
}, Eo = function(e) {
|
|
8027
8027
|
return parseInt(e || "", 10) || 0;
|
|
8028
8028
|
}, Cy = function(e) {
|
|
8029
8029
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
8030
|
-
return [
|
|
8030
|
+
return [Eo(n), Eo(r), Eo(o)];
|
|
8031
8031
|
}, xy = function(e) {
|
|
8032
8032
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
8033
8033
|
return wy;
|
|
@@ -8099,19 +8099,19 @@ var vy = function() {
|
|
|
8099
8099
|
return xy(o);
|
|
8100
8100
|
}, [o]);
|
|
8101
8101
|
return m.createElement(Ey, { styles: Sy(s, !t, o, n ? "" : "!important") });
|
|
8102
|
-
},
|
|
8102
|
+
}, cs = !1;
|
|
8103
8103
|
if (typeof window < "u")
|
|
8104
8104
|
try {
|
|
8105
8105
|
var ur = Object.defineProperty({}, "passive", {
|
|
8106
8106
|
get: function() {
|
|
8107
|
-
return
|
|
8107
|
+
return cs = !0, !0;
|
|
8108
8108
|
}
|
|
8109
8109
|
});
|
|
8110
8110
|
window.addEventListener("test", ur, ur), window.removeEventListener("test", ur, ur);
|
|
8111
8111
|
} catch {
|
|
8112
|
-
|
|
8112
|
+
cs = !1;
|
|
8113
8113
|
}
|
|
8114
|
-
var Yt =
|
|
8114
|
+
var Yt = cs ? { passive: !1 } : !1, Ty = function(e) {
|
|
8115
8115
|
return e.tagName === "TEXTAREA";
|
|
8116
8116
|
}, al = function(e, t) {
|
|
8117
8117
|
if (!(e instanceof Element))
|
|
@@ -8160,7 +8160,7 @@ var Yt = as ? { passive: !1 } : !1, Ty = function(e) {
|
|
|
8160
8160
|
}, Dy = function(e, t) {
|
|
8161
8161
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
8162
8162
|
}, Ly = function(e, t, n, r, o) {
|
|
8163
|
-
var s = Dy(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a),
|
|
8163
|
+
var s = Dy(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, d = i > 0, h = 0, p = 0;
|
|
8164
8164
|
do {
|
|
8165
8165
|
if (!a)
|
|
8166
8166
|
break;
|
|
@@ -8173,7 +8173,7 @@ var Yt = as ? { passive: !1 } : !1, Ty = function(e) {
|
|
|
8173
8173
|
!c && a !== document.body || // self content
|
|
8174
8174
|
c && (t.contains(a) || t === a)
|
|
8175
8175
|
);
|
|
8176
|
-
return (d && Math.abs(h) < 1 || !d && Math.abs(p) < 1) && (
|
|
8176
|
+
return (d && Math.abs(h) < 1 || !d && Math.abs(p) < 1) && (l = !0), l;
|
|
8177
8177
|
}, dr = function(e) {
|
|
8178
8178
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
8179
8179
|
}, ia = function(e) {
|
|
@@ -8240,7 +8240,7 @@ function $y(e) {
|
|
|
8240
8240
|
E && y.cancelable && y.preventDefault();
|
|
8241
8241
|
}
|
|
8242
8242
|
}
|
|
8243
|
-
}, []),
|
|
8243
|
+
}, []), l = m.useCallback(function(f, y, C, x) {
|
|
8244
8244
|
var S = { name: f, delta: y, target: C, should: x, shadowParent: My(C) };
|
|
8245
8245
|
t.current.push(S), setTimeout(function() {
|
|
8246
8246
|
t.current = t.current.filter(function(E) {
|
|
@@ -8250,9 +8250,9 @@ function $y(e) {
|
|
|
8250
8250
|
}, []), d = m.useCallback(function(f) {
|
|
8251
8251
|
n.current = dr(f), r.current = void 0;
|
|
8252
8252
|
}, []), h = m.useCallback(function(f) {
|
|
8253
|
-
|
|
8253
|
+
l(f.type, ia(f), f.target, a(f, e.lockRef.current));
|
|
8254
8254
|
}, []), p = m.useCallback(function(f) {
|
|
8255
|
-
|
|
8255
|
+
l(f.type, dr(f), f.target, a(f, e.lockRef.current));
|
|
8256
8256
|
}, []);
|
|
8257
8257
|
m.useEffect(function() {
|
|
8258
8258
|
return Zt.push(s), e.setCallbacks({
|
|
@@ -8280,15 +8280,15 @@ function My(e) {
|
|
|
8280
8280
|
}
|
|
8281
8281
|
const Fy = hy(sl, $y);
|
|
8282
8282
|
var ul = m.forwardRef(function(e, t) {
|
|
8283
|
-
return m.createElement(
|
|
8283
|
+
return m.createElement(Jr, Me({}, e, { ref: t, sideCar: Fy }));
|
|
8284
8284
|
});
|
|
8285
|
-
ul.classNames =
|
|
8285
|
+
ul.classNames = Jr.classNames;
|
|
8286
8286
|
var By = function(e) {
|
|
8287
8287
|
if (typeof document > "u")
|
|
8288
8288
|
return null;
|
|
8289
8289
|
var t = Array.isArray(e) ? e[0] : e;
|
|
8290
8290
|
return t.ownerDocument.body;
|
|
8291
|
-
}, Xt = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), hr = {},
|
|
8291
|
+
}, Xt = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), hr = {}, So = 0, dl = function(e) {
|
|
8292
8292
|
return e && (e.host || dl(e.parentNode));
|
|
8293
8293
|
}, Uy = function(e, t) {
|
|
8294
8294
|
return t.map(function(n) {
|
|
@@ -8302,10 +8302,10 @@ var By = function(e) {
|
|
|
8302
8302
|
}, Wy = function(e, t, n, r) {
|
|
8303
8303
|
var o = Uy(t, Array.isArray(e) ? e : [e]);
|
|
8304
8304
|
hr[n] || (hr[n] = /* @__PURE__ */ new WeakMap());
|
|
8305
|
-
var s = hr[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o),
|
|
8306
|
-
!h || a.has(h) || (a.add(h),
|
|
8305
|
+
var s = hr[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(h) {
|
|
8306
|
+
!h || a.has(h) || (a.add(h), l(h.parentNode));
|
|
8307
8307
|
};
|
|
8308
|
-
o.forEach(
|
|
8308
|
+
o.forEach(l);
|
|
8309
8309
|
var d = function(h) {
|
|
8310
8310
|
!h || c.has(h) || Array.prototype.forEach.call(h.children, function(p) {
|
|
8311
8311
|
if (a.has(p))
|
|
@@ -8319,11 +8319,11 @@ var By = function(e) {
|
|
|
8319
8319
|
}
|
|
8320
8320
|
});
|
|
8321
8321
|
};
|
|
8322
|
-
return d(t), a.clear(),
|
|
8322
|
+
return d(t), a.clear(), So++, function() {
|
|
8323
8323
|
i.forEach(function(h) {
|
|
8324
8324
|
var p = Xt.get(h) - 1, g = s.get(h) - 1;
|
|
8325
8325
|
Xt.set(h, p), s.set(h, g), p || (fr.has(h) || h.removeAttribute(r), fr.delete(h)), g || h.removeAttribute(n);
|
|
8326
|
-
}),
|
|
8326
|
+
}), So--, So || (Xt = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), hr = {});
|
|
8327
8327
|
};
|
|
8328
8328
|
}, Hy = function(e, t, n) {
|
|
8329
8329
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -8337,10 +8337,10 @@ function Vy(e) {
|
|
|
8337
8337
|
const t = /* @__PURE__ */ qy(e), n = m.forwardRef((r, o) => {
|
|
8338
8338
|
const { children: s, ...i } = r, a = m.Children.toArray(s), c = a.find(Gy);
|
|
8339
8339
|
if (c) {
|
|
8340
|
-
const
|
|
8341
|
-
return /* @__PURE__ */
|
|
8340
|
+
const l = c.props.children, d = a.map((h) => h === c ? m.Children.count(l) > 1 ? m.Children.only(null) : m.isValidElement(l) ? l.props.children : null : h);
|
|
8341
|
+
return /* @__PURE__ */ u.jsx(t, { ...i, ref: o, children: m.isValidElement(l) ? m.cloneElement(l, void 0, d) : null });
|
|
8342
8342
|
}
|
|
8343
|
-
return /* @__PURE__ */
|
|
8343
|
+
return /* @__PURE__ */ u.jsx(t, { ...i, ref: o, children: s });
|
|
8344
8344
|
});
|
|
8345
8345
|
return n.displayName = `${e}.Slot`, n;
|
|
8346
8346
|
}
|
|
@@ -8350,7 +8350,7 @@ function qy(e) {
|
|
|
8350
8350
|
const { children: o, ...s } = n;
|
|
8351
8351
|
if (m.isValidElement(o)) {
|
|
8352
8352
|
const i = Ky(o), a = Qy(s, o.props);
|
|
8353
|
-
return o.type !== m.Fragment && (a.ref = r ?
|
|
8353
|
+
return o.type !== m.Fragment && (a.ref = r ? zr(r, i) : i), m.cloneElement(o, a);
|
|
8354
8354
|
}
|
|
8355
8355
|
return m.Children.count(o) > 1 ? m.Children.only(null) : null;
|
|
8356
8356
|
});
|
|
@@ -8376,7 +8376,7 @@ function Ky(e) {
|
|
|
8376
8376
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
8377
8377
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
8378
8378
|
}
|
|
8379
|
-
var
|
|
8379
|
+
var eo = "Dialog", [fl] = Es(eo), [Yy, Ne] = fl(eo), hl = (e) => {
|
|
8380
8380
|
const {
|
|
8381
8381
|
__scopeDialog: t,
|
|
8382
8382
|
children: n,
|
|
@@ -8384,13 +8384,13 @@ var Jr = "Dialog", [fl] = Es(Jr), [Yy, Ne] = fl(Jr), hl = (e) => {
|
|
|
8384
8384
|
defaultOpen: o,
|
|
8385
8385
|
onOpenChange: s,
|
|
8386
8386
|
modal: i = !0
|
|
8387
|
-
} = e, a = m.useRef(null), c = m.useRef(null), [
|
|
8387
|
+
} = e, a = m.useRef(null), c = m.useRef(null), [l, d] = Vc({
|
|
8388
8388
|
prop: r,
|
|
8389
8389
|
defaultProp: o ?? !1,
|
|
8390
8390
|
onChange: s,
|
|
8391
|
-
caller:
|
|
8391
|
+
caller: eo
|
|
8392
8392
|
});
|
|
8393
|
-
return /* @__PURE__ */
|
|
8393
|
+
return /* @__PURE__ */ u.jsx(
|
|
8394
8394
|
Yy,
|
|
8395
8395
|
{
|
|
8396
8396
|
scope: t,
|
|
@@ -8399,7 +8399,7 @@ var Jr = "Dialog", [fl] = Es(Jr), [Yy, Ne] = fl(Jr), hl = (e) => {
|
|
|
8399
8399
|
contentId: Cr(),
|
|
8400
8400
|
titleId: Cr(),
|
|
8401
8401
|
descriptionId: Cr(),
|
|
8402
|
-
open:
|
|
8402
|
+
open: l,
|
|
8403
8403
|
onOpenChange: d,
|
|
8404
8404
|
onOpenToggle: m.useCallback(() => d((h) => !h), [d]),
|
|
8405
8405
|
modal: i,
|
|
@@ -8407,11 +8407,11 @@ var Jr = "Dialog", [fl] = Es(Jr), [Yy, Ne] = fl(Jr), hl = (e) => {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
);
|
|
8409
8409
|
};
|
|
8410
|
-
hl.displayName =
|
|
8410
|
+
hl.displayName = eo;
|
|
8411
8411
|
var pl = "DialogTrigger", Zy = m.forwardRef(
|
|
8412
8412
|
(e, t) => {
|
|
8413
8413
|
const { __scopeDialog: n, ...r } = e, o = Ne(pl, n), s = Le(t, o.triggerRef);
|
|
8414
|
-
return /* @__PURE__ */
|
|
8414
|
+
return /* @__PURE__ */ u.jsx(
|
|
8415
8415
|
be.button,
|
|
8416
8416
|
{
|
|
8417
8417
|
type: "button",
|
|
@@ -8431,13 +8431,13 @@ var $s = "DialogPortal", [Xy, ml] = fl($s, {
|
|
|
8431
8431
|
forceMount: void 0
|
|
8432
8432
|
}), gl = (e) => {
|
|
8433
8433
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Ne($s, t);
|
|
8434
|
-
return /* @__PURE__ */
|
|
8434
|
+
return /* @__PURE__ */ u.jsx(Xy, { scope: t, forceMount: n, children: m.Children.map(r, (i) => /* @__PURE__ */ u.jsx(xn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ls, { asChild: !0, container: o, children: i }) })) });
|
|
8435
8435
|
};
|
|
8436
8436
|
gl.displayName = $s;
|
|
8437
8437
|
var Ir = "DialogOverlay", yl = m.forwardRef(
|
|
8438
8438
|
(e, t) => {
|
|
8439
8439
|
const n = ml(Ir, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ne(Ir, e.__scopeDialog);
|
|
8440
|
-
return s.modal ? /* @__PURE__ */
|
|
8440
|
+
return s.modal ? /* @__PURE__ */ u.jsx(xn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(ev, { ...o, ref: t }) }) : null;
|
|
8441
8441
|
}
|
|
8442
8442
|
);
|
|
8443
8443
|
yl.displayName = Ir;
|
|
@@ -8447,7 +8447,7 @@ var Jy = /* @__PURE__ */ Vy("DialogOverlay.RemoveScroll"), ev = m.forwardRef(
|
|
|
8447
8447
|
return (
|
|
8448
8448
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
8449
8449
|
// ie. when `Overlay` and `Content` are siblings
|
|
8450
|
-
/* @__PURE__ */
|
|
8450
|
+
/* @__PURE__ */ u.jsx(ul, { as: Jy, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
8451
8451
|
be.div,
|
|
8452
8452
|
{
|
|
8453
8453
|
"data-state": Fs(o.open),
|
|
@@ -8461,7 +8461,7 @@ var Jy = /* @__PURE__ */ Vy("DialogOverlay.RemoveScroll"), ev = m.forwardRef(
|
|
|
8461
8461
|
), Wt = "DialogContent", vl = m.forwardRef(
|
|
8462
8462
|
(e, t) => {
|
|
8463
8463
|
const n = ml(Wt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ne(Wt, e.__scopeDialog);
|
|
8464
|
-
return /* @__PURE__ */
|
|
8464
|
+
return /* @__PURE__ */ u.jsx(xn, { present: r || s.open, children: s.modal ? /* @__PURE__ */ u.jsx(tv, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(nv, { ...o, ref: t }) });
|
|
8465
8465
|
}
|
|
8466
8466
|
);
|
|
8467
8467
|
vl.displayName = Wt;
|
|
@@ -8471,7 +8471,7 @@ var tv = m.forwardRef(
|
|
|
8471
8471
|
return m.useEffect(() => {
|
|
8472
8472
|
const s = r.current;
|
|
8473
8473
|
if (s) return Hy(s);
|
|
8474
|
-
}, []), /* @__PURE__ */
|
|
8474
|
+
}, []), /* @__PURE__ */ u.jsx(
|
|
8475
8475
|
bl,
|
|
8476
8476
|
{
|
|
8477
8477
|
...e,
|
|
@@ -8496,7 +8496,7 @@ var tv = m.forwardRef(
|
|
|
8496
8496
|
), nv = m.forwardRef(
|
|
8497
8497
|
(e, t) => {
|
|
8498
8498
|
const n = Ne(Wt, e.__scopeDialog), r = m.useRef(!1), o = m.useRef(!1);
|
|
8499
|
-
return /* @__PURE__ */
|
|
8499
|
+
return /* @__PURE__ */ u.jsx(
|
|
8500
8500
|
bl,
|
|
8501
8501
|
{
|
|
8502
8502
|
...e,
|
|
@@ -8508,19 +8508,19 @@ var tv = m.forwardRef(
|
|
|
8508
8508
|
(i = e.onCloseAutoFocus) == null || i.call(e, s), s.defaultPrevented || (r.current || (a = n.triggerRef.current) == null || a.focus(), s.preventDefault()), r.current = !1, o.current = !1;
|
|
8509
8509
|
},
|
|
8510
8510
|
onInteractOutside: (s) => {
|
|
8511
|
-
var c,
|
|
8511
|
+
var c, l;
|
|
8512
8512
|
(c = e.onInteractOutside) == null || c.call(e, s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
8513
8513
|
const i = s.target;
|
|
8514
|
-
((
|
|
8514
|
+
((l = n.triggerRef.current) == null ? void 0 : l.contains(i)) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
|
|
8515
8515
|
}
|
|
8516
8516
|
}
|
|
8517
8517
|
);
|
|
8518
8518
|
}
|
|
8519
8519
|
), bl = m.forwardRef(
|
|
8520
8520
|
(e, t) => {
|
|
8521
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Ne(Wt, n), c = m.useRef(null),
|
|
8522
|
-
return oy(), /* @__PURE__ */
|
|
8523
|
-
/* @__PURE__ */
|
|
8521
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Ne(Wt, n), c = m.useRef(null), l = Le(t, c);
|
|
8522
|
+
return oy(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
8523
|
+
/* @__PURE__ */ u.jsx(
|
|
8524
8524
|
nl,
|
|
8525
8525
|
{
|
|
8526
8526
|
asChild: !0,
|
|
@@ -8528,7 +8528,7 @@ var tv = m.forwardRef(
|
|
|
8528
8528
|
trapped: r,
|
|
8529
8529
|
onMountAutoFocus: o,
|
|
8530
8530
|
onUnmountAutoFocus: s,
|
|
8531
|
-
children: /* @__PURE__ */
|
|
8531
|
+
children: /* @__PURE__ */ u.jsx(
|
|
8532
8532
|
Ss,
|
|
8533
8533
|
{
|
|
8534
8534
|
role: "dialog",
|
|
@@ -8537,36 +8537,36 @@ var tv = m.forwardRef(
|
|
|
8537
8537
|
"aria-labelledby": a.titleId,
|
|
8538
8538
|
"data-state": Fs(a.open),
|
|
8539
8539
|
...i,
|
|
8540
|
-
ref:
|
|
8540
|
+
ref: l,
|
|
8541
8541
|
onDismiss: () => a.onOpenChange(!1)
|
|
8542
8542
|
}
|
|
8543
8543
|
)
|
|
8544
8544
|
}
|
|
8545
8545
|
),
|
|
8546
|
-
/* @__PURE__ */
|
|
8547
|
-
/* @__PURE__ */
|
|
8548
|
-
/* @__PURE__ */
|
|
8546
|
+
/* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
8547
|
+
/* @__PURE__ */ u.jsx(rv, { titleId: a.titleId }),
|
|
8548
|
+
/* @__PURE__ */ u.jsx(sv, { contentRef: c, descriptionId: a.descriptionId })
|
|
8549
8549
|
] })
|
|
8550
8550
|
] });
|
|
8551
8551
|
}
|
|
8552
8552
|
), Ms = "DialogTitle", wl = m.forwardRef(
|
|
8553
8553
|
(e, t) => {
|
|
8554
8554
|
const { __scopeDialog: n, ...r } = e, o = Ne(Ms, n);
|
|
8555
|
-
return /* @__PURE__ */
|
|
8555
|
+
return /* @__PURE__ */ u.jsx(be.h2, { id: o.titleId, ...r, ref: t });
|
|
8556
8556
|
}
|
|
8557
8557
|
);
|
|
8558
8558
|
wl.displayName = Ms;
|
|
8559
8559
|
var Cl = "DialogDescription", xl = m.forwardRef(
|
|
8560
8560
|
(e, t) => {
|
|
8561
8561
|
const { __scopeDialog: n, ...r } = e, o = Ne(Cl, n);
|
|
8562
|
-
return /* @__PURE__ */
|
|
8562
|
+
return /* @__PURE__ */ u.jsx(be.p, { id: o.descriptionId, ...r, ref: t });
|
|
8563
8563
|
}
|
|
8564
8564
|
);
|
|
8565
8565
|
xl.displayName = Cl;
|
|
8566
8566
|
var El = "DialogClose", Sl = m.forwardRef(
|
|
8567
8567
|
(e, t) => {
|
|
8568
8568
|
const { __scopeDialog: n, ...r } = e, o = Ne(El, n);
|
|
8569
|
-
return /* @__PURE__ */
|
|
8569
|
+
return /* @__PURE__ */ u.jsx(
|
|
8570
8570
|
be.button,
|
|
8571
8571
|
{
|
|
8572
8572
|
type: "button",
|
|
@@ -8581,7 +8581,7 @@ Sl.displayName = El;
|
|
|
8581
8581
|
function Fs(e) {
|
|
8582
8582
|
return e ? "open" : "closed";
|
|
8583
8583
|
}
|
|
8584
|
-
var _l = "DialogTitleWarning", [
|
|
8584
|
+
var _l = "DialogTitleWarning", [D2, Rl] = t1(_l, {
|
|
8585
8585
|
contentName: Wt,
|
|
8586
8586
|
titleName: Ms,
|
|
8587
8587
|
docsSlug: "dialog"
|
|
@@ -8618,7 +8618,7 @@ const hv = "Overlay__M5Z83", pv = "Content__wAkP4", ca = {
|
|
|
8618
8618
|
...n
|
|
8619
8619
|
}, r) => {
|
|
8620
8620
|
const o = j(Vt.Header, t);
|
|
8621
|
-
return /* @__PURE__ */
|
|
8621
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
8622
8622
|
});
|
|
8623
8623
|
Tl.displayName = "Header";
|
|
8624
8624
|
const Al = W(({
|
|
@@ -8627,7 +8627,7 @@ const Al = W(({
|
|
|
8627
8627
|
...n
|
|
8628
8628
|
}, r) => {
|
|
8629
8629
|
const o = j(Vt.Content, t);
|
|
8630
|
-
return /* @__PURE__ */
|
|
8630
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
8631
8631
|
});
|
|
8632
8632
|
Al.displayName = "Content";
|
|
8633
8633
|
const Ol = W(({
|
|
@@ -8636,7 +8636,7 @@ const Ol = W(({
|
|
|
8636
8636
|
...n
|
|
8637
8637
|
}, r) => {
|
|
8638
8638
|
const o = j(Vt.Footer, t);
|
|
8639
|
-
return /* @__PURE__ */
|
|
8639
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
8640
8640
|
});
|
|
8641
8641
|
Ol.displayName = "Footer";
|
|
8642
8642
|
const Pl = W(({
|
|
@@ -8645,7 +8645,7 @@ const Pl = W(({
|
|
|
8645
8645
|
...n
|
|
8646
8646
|
}, r) => {
|
|
8647
8647
|
const o = j(Vt.Title, t);
|
|
8648
|
-
return /* @__PURE__ */
|
|
8648
|
+
return /* @__PURE__ */ u.jsx(uv, { ref: r, className: o, ...n, children: e });
|
|
8649
8649
|
});
|
|
8650
8650
|
Pl.displayName = "Title";
|
|
8651
8651
|
const jl = W(({
|
|
@@ -8653,7 +8653,7 @@ const jl = W(({
|
|
|
8653
8653
|
...t
|
|
8654
8654
|
}, n) => {
|
|
8655
8655
|
const r = j(Vt.Close, e);
|
|
8656
|
-
return /* @__PURE__ */
|
|
8656
|
+
return /* @__PURE__ */ u.jsx(fv, { ref: n, asChild: !0, className: r, ...t, children: /* @__PURE__ */ u.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u.jsx("path", { d: "M11 1L1 11M1 1L11 11", stroke: "#A9A9A9", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) });
|
|
8657
8657
|
});
|
|
8658
8658
|
jl.displayName = "Close";
|
|
8659
8659
|
const Dl = W(({
|
|
@@ -8662,7 +8662,7 @@ const Dl = W(({
|
|
|
8662
8662
|
...n
|
|
8663
8663
|
}, r) => {
|
|
8664
8664
|
const o = j(Vt.Actions, t);
|
|
8665
|
-
return /* @__PURE__ */
|
|
8665
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
8666
8666
|
});
|
|
8667
8667
|
Dl.displayName = "Actions";
|
|
8668
8668
|
const Ll = W(({
|
|
@@ -8671,7 +8671,7 @@ const Ll = W(({
|
|
|
8671
8671
|
...n
|
|
8672
8672
|
}, r) => {
|
|
8673
8673
|
const o = j(Vt.Description, t);
|
|
8674
|
-
return /* @__PURE__ */
|
|
8674
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
8675
8675
|
});
|
|
8676
8676
|
Ll.displayName = "Description";
|
|
8677
8677
|
const he = ({
|
|
@@ -8683,11 +8683,11 @@ const he = ({
|
|
|
8683
8683
|
const o = () => {
|
|
8684
8684
|
t == null || t();
|
|
8685
8685
|
};
|
|
8686
|
-
return /* @__PURE__ */
|
|
8687
|
-
/* @__PURE__ */
|
|
8688
|
-
/* @__PURE__ */
|
|
8689
|
-
/* @__PURE__ */
|
|
8690
|
-
/* @__PURE__ */
|
|
8686
|
+
return /* @__PURE__ */ u.jsx(iv, { onOpenChange: o, open: n, children: /* @__PURE__ */ u.jsxs(av, { children: [
|
|
8687
|
+
/* @__PURE__ */ u.jsx(cv, { className: ca.Overlay }),
|
|
8688
|
+
/* @__PURE__ */ u.jsxs(lv, { children: [
|
|
8689
|
+
/* @__PURE__ */ u.jsx(dv, {}),
|
|
8690
|
+
/* @__PURE__ */ u.jsx("div", { className: j(ca.Content, r), children: e })
|
|
8691
8691
|
] })
|
|
8692
8692
|
] }) });
|
|
8693
8693
|
};
|
|
@@ -8705,25 +8705,25 @@ const Cv = "pill__vtGwB", xv = "pill--solid__F-mR4", Ev = "pill--outline__gC-mh"
|
|
|
8705
8705
|
pillSolid: xv,
|
|
8706
8706
|
"pill--outline": "pill--outline__gC-mh",
|
|
8707
8707
|
pillOutline: Ev
|
|
8708
|
-
},
|
|
8708
|
+
}, L2 = ({ children: e, variant: t = "solid", className: n }) => {
|
|
8709
8709
|
const r = j(
|
|
8710
8710
|
la.pill,
|
|
8711
8711
|
la[`pill--${t}`],
|
|
8712
8712
|
n
|
|
8713
8713
|
);
|
|
8714
|
-
return /* @__PURE__ */
|
|
8714
|
+
return /* @__PURE__ */ u.jsx("div", { className: r, children: e });
|
|
8715
8715
|
}, Sv = "DialogContent__-WjG9", _v = "Message__AUgVP", ua = {
|
|
8716
8716
|
DialogContent: Sv,
|
|
8717
8717
|
Message: _v
|
|
8718
|
-
}, Rv = ({ loading: e, title: t, children: n, className: r, onClose: o, onConfirm: s, ...i }) => /* @__PURE__ */
|
|
8719
|
-
/* @__PURE__ */
|
|
8720
|
-
/* @__PURE__ */
|
|
8721
|
-
/* @__PURE__ */
|
|
8718
|
+
}, Rv = ({ loading: e, title: t, children: n, className: r, onClose: o, onConfirm: s, ...i }) => /* @__PURE__ */ u.jsxs(he, { ...i, className: j(ua.DialogContent, r), children: [
|
|
8719
|
+
/* @__PURE__ */ u.jsxs(he.Header, { children: [
|
|
8720
|
+
/* @__PURE__ */ u.jsx(he.Title, { children: t }),
|
|
8721
|
+
/* @__PURE__ */ u.jsx(he.Close, { onClick: o })
|
|
8722
8722
|
] }),
|
|
8723
|
-
/* @__PURE__ */
|
|
8724
|
-
/* @__PURE__ */
|
|
8725
|
-
/* @__PURE__ */
|
|
8726
|
-
/* @__PURE__ */
|
|
8723
|
+
/* @__PURE__ */ u.jsx(he.Content, { children: typeof n == "string" ? /* @__PURE__ */ u.jsx("p", { className: ua.Message, children: n }) : n }),
|
|
8724
|
+
/* @__PURE__ */ u.jsx(he.Footer, { children: /* @__PURE__ */ u.jsxs(he.Actions, { children: [
|
|
8725
|
+
/* @__PURE__ */ u.jsx(Xo, { onClick: o, disabled: e, variant: "outlined", children: "Cancel" }),
|
|
8726
|
+
/* @__PURE__ */ u.jsx(Xo, { onClick: s, disabled: e, loading: e, variant: "contained", children: "Confirm" })
|
|
8727
8727
|
] }) })
|
|
8728
8728
|
] });
|
|
8729
8729
|
Rv.displayName = "ConfirmDialog";
|
|
@@ -8732,30 +8732,30 @@ const Tv = "container__AjtYJ", Av = "title__A2vCu", Ov = "description__bP6Ig", P
|
|
|
8732
8732
|
title: Av,
|
|
8733
8733
|
description: Ov,
|
|
8734
8734
|
mailToText: Pv
|
|
8735
|
-
}, Nl = () => /* @__PURE__ */
|
|
8736
|
-
/* @__PURE__ */
|
|
8737
|
-
/* @__PURE__ */
|
|
8738
|
-
/* @__PURE__ */
|
|
8739
|
-
/* @__PURE__ */
|
|
8740
|
-
/* @__PURE__ */
|
|
8741
|
-
/* @__PURE__ */
|
|
8742
|
-
/* @__PURE__ */
|
|
8743
|
-
/* @__PURE__ */
|
|
8744
|
-
/* @__PURE__ */
|
|
8745
|
-
/* @__PURE__ */
|
|
8746
|
-
/* @__PURE__ */
|
|
8747
|
-
/* @__PURE__ */
|
|
8748
|
-
/* @__PURE__ */
|
|
8735
|
+
}, Nl = () => /* @__PURE__ */ u.jsxs("svg", { width: "200", height: "200", viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
8736
|
+
/* @__PURE__ */ u.jsx("path", { d: "M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8737
|
+
/* @__PURE__ */ u.jsx("path", { d: "M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8738
|
+
/* @__PURE__ */ u.jsx("path", { d: "M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8739
|
+
/* @__PURE__ */ u.jsx("path", { d: "M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8740
|
+
/* @__PURE__ */ u.jsx("path", { d: "M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8741
|
+
/* @__PURE__ */ u.jsx("path", { d: "M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8742
|
+
/* @__PURE__ */ u.jsx("path", { d: "M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8743
|
+
/* @__PURE__ */ u.jsx("path", { d: "M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8744
|
+
/* @__PURE__ */ u.jsx("path", { d: "M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8745
|
+
/* @__PURE__ */ u.jsx("path", { d: "M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8746
|
+
/* @__PURE__ */ u.jsx("path", { d: "M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8747
|
+
/* @__PURE__ */ u.jsx("path", { d: "M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z", fill: "var(--pae-shell-color-secondary)" }),
|
|
8748
|
+
/* @__PURE__ */ u.jsx("path", { d: "M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z", fill: "var(--pae-shell-color-secondary)" })
|
|
8749
8749
|
] });
|
|
8750
8750
|
Nl.displayName = "WarningIcon";
|
|
8751
8751
|
const jv = "support@bluealba.com", Dv = "@bluealba/pae-shell-ui", kl = () => {
|
|
8752
8752
|
const { supportEmail: e = jv } = Vu(Dv), t = `mailto:${e}?Subject=Support`;
|
|
8753
|
-
return /* @__PURE__ */
|
|
8754
|
-
/* @__PURE__ */
|
|
8755
|
-
/* @__PURE__ */
|
|
8756
|
-
/* @__PURE__ */
|
|
8753
|
+
return /* @__PURE__ */ u.jsxs("div", { className: pr.container, children: [
|
|
8754
|
+
/* @__PURE__ */ u.jsx(Nl, {}),
|
|
8755
|
+
/* @__PURE__ */ u.jsx("div", { className: pr.title, children: "Oops! Something went wrong" }),
|
|
8756
|
+
/* @__PURE__ */ u.jsxs("div", { className: pr.description, children: [
|
|
8757
8757
|
"If the error persists, ",
|
|
8758
|
-
/* @__PURE__ */
|
|
8758
|
+
/* @__PURE__ */ u.jsx("a", { className: pr.mailToText, href: t, children: "contact the administrator." })
|
|
8759
8759
|
] })
|
|
8760
8760
|
] });
|
|
8761
8761
|
};
|
|
@@ -8804,7 +8804,7 @@ const Lv = "List__h09XG", Nv = "List__h09XG", kv = "Item__YMy2i", Iv = "Item__YM
|
|
|
8804
8804
|
},
|
|
8805
8805
|
t
|
|
8806
8806
|
);
|
|
8807
|
-
return /* @__PURE__ */
|
|
8807
|
+
return /* @__PURE__ */ u.jsx(
|
|
8808
8808
|
"li",
|
|
8809
8809
|
{
|
|
8810
8810
|
ref: s,
|
|
@@ -8823,7 +8823,7 @@ const $l = W(({
|
|
|
8823
8823
|
...n
|
|
8824
8824
|
}, r) => {
|
|
8825
8825
|
const o = j(Oe.Title, t);
|
|
8826
|
-
return /* @__PURE__ */
|
|
8826
|
+
return /* @__PURE__ */ u.jsx("h3", { ref: r, className: o, ...n, children: e });
|
|
8827
8827
|
});
|
|
8828
8828
|
$l.displayName = "Title";
|
|
8829
8829
|
const Ml = W(({
|
|
@@ -8832,13 +8832,13 @@ const Ml = W(({
|
|
|
8832
8832
|
...n
|
|
8833
8833
|
}, r) => {
|
|
8834
8834
|
const o = j(Oe.Description, t);
|
|
8835
|
-
return /* @__PURE__ */
|
|
8835
|
+
return /* @__PURE__ */ u.jsx("p", { ref: r, className: o, ...n, children: e });
|
|
8836
8836
|
});
|
|
8837
8837
|
Ml.displayName = "Description";
|
|
8838
8838
|
const Bs = ({
|
|
8839
8839
|
className: e,
|
|
8840
8840
|
...t
|
|
8841
|
-
}) => /* @__PURE__ */
|
|
8841
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
8842
8842
|
"svg",
|
|
8843
8843
|
{
|
|
8844
8844
|
width: "12",
|
|
@@ -8849,9 +8849,9 @@ const Bs = ({
|
|
|
8849
8849
|
className: e,
|
|
8850
8850
|
...t,
|
|
8851
8851
|
children: [
|
|
8852
|
-
/* @__PURE__ */
|
|
8853
|
-
/* @__PURE__ */
|
|
8854
|
-
/* @__PURE__ */
|
|
8852
|
+
/* @__PURE__ */ u.jsx("path", { d: "M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z", stroke: "#A9A9A9", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8853
|
+
/* @__PURE__ */ u.jsx("path", { d: "M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z", stroke: "#A9A9A9", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8854
|
+
/* @__PURE__ */ u.jsx("path", { d: "M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z", stroke: "#A9A9A9", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
8855
8855
|
]
|
|
8856
8856
|
}
|
|
8857
8857
|
);
|
|
@@ -8862,7 +8862,7 @@ const Fl = W(({
|
|
|
8862
8862
|
onClick: n,
|
|
8863
8863
|
...r
|
|
8864
8864
|
}, o) => {
|
|
8865
|
-
const s = Ea(null), [i, a] = Y(!1), c = j(Oe.Actions, t),
|
|
8865
|
+
const s = Ea(null), [i, a] = Y(!1), c = j(Oe.Actions, t), l = () => {
|
|
8866
8866
|
const w = Jt["DropdownList--open"], f = Jt["DropdownList--closed"];
|
|
8867
8867
|
document.querySelectorAll(`.${w}`).forEach((C) => {
|
|
8868
8868
|
C !== s.current && (C.classList.remove(w), C.classList.add(f));
|
|
@@ -8876,11 +8876,11 @@ const Fl = W(({
|
|
|
8876
8876
|
}, g = (w) => {
|
|
8877
8877
|
s.current && !s.current.contains(w.target) && h();
|
|
8878
8878
|
};
|
|
8879
|
-
return ne(() => (i ? (
|
|
8879
|
+
return ne(() => (i ? (l(), document.addEventListener("keydown", p), document.addEventListener("click", g)) : (document.removeEventListener("keydown", p), document.removeEventListener("click", g)), () => {
|
|
8880
8880
|
document.removeEventListener("keydown", p), document.removeEventListener("click", g);
|
|
8881
|
-
}), [i]), /* @__PURE__ */
|
|
8882
|
-
/* @__PURE__ */
|
|
8883
|
-
/* @__PURE__ */
|
|
8881
|
+
}), [i]), /* @__PURE__ */ u.jsxs("div", { ref: o, className: c, onClick: d, role: "button", tabIndex: 0, "data-testid": "actions", ...r, children: [
|
|
8882
|
+
/* @__PURE__ */ u.jsx(Bs, {}),
|
|
8883
|
+
/* @__PURE__ */ u.jsx(Cs, { align: "left", ref: s, open: i, "data-testid": "actions-dropdown", role: "menu", "aria-label": "Actions", children: e })
|
|
8884
8884
|
] });
|
|
8885
8885
|
});
|
|
8886
8886
|
Fl.displayName = "Actions";
|
|
@@ -8890,7 +8890,7 @@ const Bl = W(({
|
|
|
8890
8890
|
...n
|
|
8891
8891
|
}, r) => {
|
|
8892
8892
|
const o = j(Oe.Action, t);
|
|
8893
|
-
return /* @__PURE__ */
|
|
8893
|
+
return /* @__PURE__ */ u.jsx("button", { ref: r, className: o, ...n, children: e });
|
|
8894
8894
|
});
|
|
8895
8895
|
Bl.displayName = "Action";
|
|
8896
8896
|
const Ul = W(({
|
|
@@ -8899,7 +8899,7 @@ const Ul = W(({
|
|
|
8899
8899
|
...n
|
|
8900
8900
|
}, r) => {
|
|
8901
8901
|
const o = j(Oe.Icon, t);
|
|
8902
|
-
return /* @__PURE__ */
|
|
8902
|
+
return /* @__PURE__ */ u.jsx("div", { ref: r, className: o, ...n, children: e });
|
|
8903
8903
|
});
|
|
8904
8904
|
Ul.displayName = "Icon";
|
|
8905
8905
|
const tt = W(({
|
|
@@ -8917,7 +8917,7 @@ const tt = W(({
|
|
|
8917
8917
|
},
|
|
8918
8918
|
t
|
|
8919
8919
|
);
|
|
8920
|
-
return /* @__PURE__ */
|
|
8920
|
+
return /* @__PURE__ */ u.jsx("ul", { ref: s, className: i, role: "list", ...o, children: e });
|
|
8921
8921
|
});
|
|
8922
8922
|
tt.displayName = "List";
|
|
8923
8923
|
tt.Item = Il;
|
|
@@ -8940,7 +8940,7 @@ const e0 = "Navigation__uylxk", t0 = "PaginationContent__UpLw0", n0 = "Paginatio
|
|
|
8940
8940
|
}, Wl = ({
|
|
8941
8941
|
className: e,
|
|
8942
8942
|
...t
|
|
8943
|
-
}) => /* @__PURE__ */
|
|
8943
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
8944
8944
|
"svg",
|
|
8945
8945
|
{
|
|
8946
8946
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8955,8 +8955,8 @@ const e0 = "Navigation__uylxk", t0 = "PaginationContent__UpLw0", n0 = "Paginatio
|
|
|
8955
8955
|
className: e,
|
|
8956
8956
|
...t,
|
|
8957
8957
|
children: [
|
|
8958
|
-
/* @__PURE__ */
|
|
8959
|
-
/* @__PURE__ */
|
|
8958
|
+
/* @__PURE__ */ u.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
8959
|
+
/* @__PURE__ */ u.jsx("path", { d: "M9 6l6 6l-6 6" })
|
|
8960
8960
|
]
|
|
8961
8961
|
}
|
|
8962
8962
|
);
|
|
@@ -8964,7 +8964,7 @@ Wl.displayName = "ChevronRight";
|
|
|
8964
8964
|
const Hl = ({
|
|
8965
8965
|
className: e,
|
|
8966
8966
|
...t
|
|
8967
|
-
}) => /* @__PURE__ */
|
|
8967
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
8968
8968
|
"svg",
|
|
8969
8969
|
{
|
|
8970
8970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8979,13 +8979,13 @@ const Hl = ({
|
|
|
8979
8979
|
className: e,
|
|
8980
8980
|
...t,
|
|
8981
8981
|
children: [
|
|
8982
|
-
/* @__PURE__ */
|
|
8983
|
-
/* @__PURE__ */
|
|
8982
|
+
/* @__PURE__ */ u.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
8983
|
+
/* @__PURE__ */ u.jsx("path", { d: "M15 6l-6 6l6 6" })
|
|
8984
8984
|
]
|
|
8985
8985
|
}
|
|
8986
8986
|
);
|
|
8987
8987
|
Hl.displayName = "ChevronLeft";
|
|
8988
|
-
const Vl = ({ className: e, ...t }) => /* @__PURE__ */
|
|
8988
|
+
const Vl = ({ className: e, ...t }) => /* @__PURE__ */ u.jsx(
|
|
8989
8989
|
"nav",
|
|
8990
8990
|
{
|
|
8991
8991
|
role: "navigation",
|
|
@@ -8995,7 +8995,7 @@ const Vl = ({ className: e, ...t }) => /* @__PURE__ */ l.jsx(
|
|
|
8995
8995
|
}
|
|
8996
8996
|
);
|
|
8997
8997
|
Vl.displayName = "Pagination";
|
|
8998
|
-
const ql = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
8998
|
+
const ql = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
8999
8999
|
"ul",
|
|
9000
9000
|
{
|
|
9001
9001
|
ref: n,
|
|
@@ -9004,13 +9004,13 @@ const ql = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
9004
9004
|
}
|
|
9005
9005
|
));
|
|
9006
9006
|
ql.displayName = "PaginationContent";
|
|
9007
|
-
const _r = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
9007
|
+
const _r = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx("li", { ref: n, className: e, ...t }));
|
|
9008
9008
|
_r.displayName = "PaginationItem";
|
|
9009
|
-
const
|
|
9009
|
+
const to = ({
|
|
9010
9010
|
className: e,
|
|
9011
9011
|
isActive: t,
|
|
9012
9012
|
...n
|
|
9013
|
-
}) => /* @__PURE__ */
|
|
9013
|
+
}) => /* @__PURE__ */ u.jsx(
|
|
9014
9014
|
"a",
|
|
9015
9015
|
{
|
|
9016
9016
|
"aria-current": t ? "page" : void 0,
|
|
@@ -9018,20 +9018,20 @@ const eo = ({
|
|
|
9018
9018
|
...n
|
|
9019
9019
|
}
|
|
9020
9020
|
);
|
|
9021
|
-
|
|
9021
|
+
to.displayName = "PaginationLink";
|
|
9022
9022
|
const zl = ({
|
|
9023
9023
|
className: e,
|
|
9024
9024
|
disabled: t,
|
|
9025
9025
|
...n
|
|
9026
|
-
}) => /* @__PURE__ */
|
|
9027
|
-
|
|
9026
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
9027
|
+
to,
|
|
9028
9028
|
{
|
|
9029
9029
|
"aria-label": "Go to previous page",
|
|
9030
9030
|
className: j(t && et.Disabled, et.Prev, e),
|
|
9031
9031
|
...n,
|
|
9032
9032
|
children: [
|
|
9033
|
-
/* @__PURE__ */
|
|
9034
|
-
/* @__PURE__ */
|
|
9033
|
+
/* @__PURE__ */ u.jsx(Hl, {}),
|
|
9034
|
+
/* @__PURE__ */ u.jsx("span", { children: "Previous" })
|
|
9035
9035
|
]
|
|
9036
9036
|
}
|
|
9037
9037
|
);
|
|
@@ -9040,15 +9040,15 @@ const Gl = ({
|
|
|
9040
9040
|
className: e,
|
|
9041
9041
|
disabled: t,
|
|
9042
9042
|
...n
|
|
9043
|
-
}) => /* @__PURE__ */
|
|
9044
|
-
|
|
9043
|
+
}) => /* @__PURE__ */ u.jsxs(
|
|
9044
|
+
to,
|
|
9045
9045
|
{
|
|
9046
9046
|
"aria-label": "Go to next page",
|
|
9047
9047
|
className: j(t && et.Disabled, et.Next, e),
|
|
9048
9048
|
...n,
|
|
9049
9049
|
children: [
|
|
9050
|
-
/* @__PURE__ */
|
|
9051
|
-
/* @__PURE__ */
|
|
9050
|
+
/* @__PURE__ */ u.jsx("span", { children: "Next" }),
|
|
9051
|
+
/* @__PURE__ */ u.jsx(Wl, {})
|
|
9052
9052
|
]
|
|
9053
9053
|
}
|
|
9054
9054
|
);
|
|
@@ -9056,13 +9056,13 @@ Gl.displayName = "PaginationNext";
|
|
|
9056
9056
|
const Ql = ({
|
|
9057
9057
|
className: e,
|
|
9058
9058
|
...t
|
|
9059
|
-
}) => /* @__PURE__ */
|
|
9059
|
+
}) => /* @__PURE__ */ u.jsx(
|
|
9060
9060
|
"span",
|
|
9061
9061
|
{
|
|
9062
9062
|
"aria-hidden": !0,
|
|
9063
9063
|
className: j(et.PaginationEllipsis, e),
|
|
9064
9064
|
...t,
|
|
9065
|
-
children: /* @__PURE__ */
|
|
9065
|
+
children: /* @__PURE__ */ u.jsx(Bs, {})
|
|
9066
9066
|
}
|
|
9067
9067
|
);
|
|
9068
9068
|
Ql.displayName = "PaginationEllipsis";
|
|
@@ -9081,14 +9081,14 @@ var Kl = { exports: {} };
|
|
|
9081
9081
|
function c(f, y) {
|
|
9082
9082
|
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();
|
|
9083
9083
|
}
|
|
9084
|
-
function
|
|
9084
|
+
function l(f, y) {
|
|
9085
9085
|
return f.replace(/\$(\d{1,2})/g, function(C, x) {
|
|
9086
9086
|
return y[x] || "";
|
|
9087
9087
|
});
|
|
9088
9088
|
}
|
|
9089
9089
|
function d(f, y) {
|
|
9090
9090
|
return f.replace(y[0], function(C, x) {
|
|
9091
|
-
var S =
|
|
9091
|
+
var S = l(y[1], arguments);
|
|
9092
9092
|
return c(C === "" ? f[x - 1] : C, S);
|
|
9093
9093
|
});
|
|
9094
9094
|
}
|
|
@@ -9372,7 +9372,7 @@ const u0 = /* @__PURE__ */ Mu(l0), Yl = ({
|
|
|
9372
9372
|
count: e,
|
|
9373
9373
|
singularText: t,
|
|
9374
9374
|
children: n = (r, o) => `${r} ${o}`
|
|
9375
|
-
}) => /* @__PURE__ */
|
|
9375
|
+
}) => /* @__PURE__ */ u.jsx(u.Fragment, { children: n(e, u0(t, e)) });
|
|
9376
9376
|
Yl.displayName = "PluralizeCounter";
|
|
9377
9377
|
const d0 = "TableContainer__osh6Z", f0 = "TableHeader__sYa-8", h0 = "Table__2cIs3", p0 = "selectable__WsGg1", m0 = "Cell__ZEv-K", g0 = "Right__YoM1V", y0 = "Center__CF3tr", v0 = "Sortable__JIV1V", b0 = "SortIcon__f0bBy", w0 = "Active__rJjxB", C0 = "Rotate__7cwTK", x0 = "Pagination__sbqMP", E0 = "PointerNone__kQdQS", me = {
|
|
9378
9378
|
TableContainer: d0,
|
|
@@ -9391,17 +9391,17 @@ const d0 = "TableContainer__osh6Z", f0 = "TableHeader__sYa-8", h0 = "Table__2cIs
|
|
|
9391
9391
|
}, S0 = "EmptyStateContainer__Q9FEb", _0 = "Message__IHK6M", da = {
|
|
9392
9392
|
EmptyStateContainer: S0,
|
|
9393
9393
|
Message: _0
|
|
9394
|
-
}, Zl = ({ size: e = 64 }) => /* @__PURE__ */
|
|
9395
|
-
/* @__PURE__ */
|
|
9396
|
-
/* @__PURE__ */
|
|
9397
|
-
/* @__PURE__ */
|
|
9394
|
+
}, Zl = ({ size: e = 64 }) => /* @__PURE__ */ u.jsxs("svg", { width: e, height: e, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
9395
|
+
/* @__PURE__ */ u.jsxs("g", { clipPath: "url(#clip-path)", children: [
|
|
9396
|
+
/* @__PURE__ */ u.jsx("mask", { id: "mask0_1070_8032", style: { maskType: "luminance" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "64", height: "64", children: /* @__PURE__ */ u.jsx("path", { d: "M64 0H0V64H64V0Z", fill: "white" }) }),
|
|
9397
|
+
/* @__PURE__ */ u.jsx("g", { mask: "url(#mask0_1070_8032)", children: /* @__PURE__ */ u.jsx("path", { d: "M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z", fill: "currentColor" }) })
|
|
9398
9398
|
] }),
|
|
9399
|
-
/* @__PURE__ */
|
|
9399
|
+
/* @__PURE__ */ u.jsx("defs", { children: /* @__PURE__ */ u.jsx("clipPath", { id: "clip-path", children: /* @__PURE__ */ u.jsx("rect", { width: "64", height: "64", fill: "white" }) }) })
|
|
9400
9400
|
] });
|
|
9401
9401
|
Zl.displayName = "EmptyStateIcon";
|
|
9402
|
-
const Xl = ({ message: e = "No results found" }) => /* @__PURE__ */
|
|
9403
|
-
/* @__PURE__ */
|
|
9404
|
-
/* @__PURE__ */
|
|
9402
|
+
const Xl = ({ message: e = "No results found" }) => /* @__PURE__ */ u.jsxs("div", { className: j(da.EmptyStateContainer), children: [
|
|
9403
|
+
/* @__PURE__ */ u.jsx(Zl, {}),
|
|
9404
|
+
/* @__PURE__ */ u.jsx("p", { className: da.Message, children: e })
|
|
9405
9405
|
] });
|
|
9406
9406
|
Xl.displayName = "EmptyState";
|
|
9407
9407
|
const R0 = (e, t, n = 1) => {
|
|
@@ -9415,19 +9415,19 @@ const R0 = (e, t, n = 1) => {
|
|
|
9415
9415
|
return t + n < e - 1 && o("..."), o(e), r.map(String);
|
|
9416
9416
|
}, Jl = ({ page: e, totalPages: t, onPageChange: n }) => {
|
|
9417
9417
|
const r = e === 1, o = e === t;
|
|
9418
|
-
return /* @__PURE__ */
|
|
9419
|
-
/* @__PURE__ */
|
|
9418
|
+
return /* @__PURE__ */ u.jsx(Vl, { className: me.Pagination, children: /* @__PURE__ */ u.jsxs(ql, { children: [
|
|
9419
|
+
/* @__PURE__ */ u.jsx(_r, { children: /* @__PURE__ */ u.jsx(
|
|
9420
9420
|
zl,
|
|
9421
9421
|
{
|
|
9422
9422
|
className: j({ [me.PointerNone]: r }),
|
|
9423
9423
|
onClick: () => !r && n(e - 1)
|
|
9424
9424
|
}
|
|
9425
9425
|
) }),
|
|
9426
|
-
R0(t, e).map((s, i) => /* @__PURE__ */
|
|
9427
|
-
s === "..." && /* @__PURE__ */
|
|
9428
|
-
s !== "..." && /* @__PURE__ */
|
|
9426
|
+
R0(t, e).map((s, i) => /* @__PURE__ */ u.jsxs(_r, { children: [
|
|
9427
|
+
s === "..." && /* @__PURE__ */ u.jsx(Ql, {}),
|
|
9428
|
+
s !== "..." && /* @__PURE__ */ u.jsx(to, { isActive: +s === e, onClick: () => +s !== e && n(+s), children: s })
|
|
9429
9429
|
] }, i)),
|
|
9430
|
-
/* @__PURE__ */
|
|
9430
|
+
/* @__PURE__ */ u.jsx(_r, { children: /* @__PURE__ */ u.jsx(
|
|
9431
9431
|
Gl,
|
|
9432
9432
|
{
|
|
9433
9433
|
className: j({ [me.PointerNone]: o }),
|
|
@@ -9440,7 +9440,7 @@ Jl.displayName = "TablePagination";
|
|
|
9440
9440
|
const eu = ({
|
|
9441
9441
|
className: e,
|
|
9442
9442
|
...t
|
|
9443
|
-
}) => /* @__PURE__ */
|
|
9443
|
+
}) => /* @__PURE__ */ u.jsx(
|
|
9444
9444
|
"svg",
|
|
9445
9445
|
{
|
|
9446
9446
|
width: "12",
|
|
@@ -9450,12 +9450,12 @@ const eu = ({
|
|
|
9450
9450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9451
9451
|
className: e,
|
|
9452
9452
|
...t,
|
|
9453
|
-
children: /* @__PURE__ */
|
|
9453
|
+
children: /* @__PURE__ */ u.jsx("path", { d: "M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
9454
9454
|
}
|
|
9455
9455
|
);
|
|
9456
9456
|
eu.displayName = "ArrowDown";
|
|
9457
9457
|
const T0 = ({ columns: e, data: t, isLoading: n, totalCount: r = 0, headerLabel: o, sort: s, loadingConfig: i, pagination: a, onRowClick: c }) => {
|
|
9458
|
-
const { count:
|
|
9458
|
+
const { count: l = 5, height: d = 40 } = i || {}, h = (y) => y.sortName ?? y.name, p = (y) => j({
|
|
9459
9459
|
[me.Cell]: !0,
|
|
9460
9460
|
[me.Center]: y.align === "center",
|
|
9461
9461
|
[me.Right]: y.align === "right",
|
|
@@ -9473,22 +9473,22 @@ const T0 = ({ columns: e, data: t, isLoading: n, totalCount: r = 0, headerLabel:
|
|
|
9473
9473
|
const { field: C, direction: x, onSort: S } = s, E = h(y);
|
|
9474
9474
|
C === E ? S(E, x === "asc" ? "desc" : "asc") : S(E, "asc");
|
|
9475
9475
|
};
|
|
9476
|
-
return /* @__PURE__ */
|
|
9477
|
-
/* @__PURE__ */
|
|
9478
|
-
o && /* @__PURE__ */
|
|
9479
|
-
/* @__PURE__ */
|
|
9480
|
-
/* @__PURE__ */
|
|
9481
|
-
/* @__PURE__ */
|
|
9482
|
-
y.isSortable && /* @__PURE__ */
|
|
9476
|
+
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
9477
|
+
/* @__PURE__ */ u.jsxs("div", { className: me.TableContainer, children: [
|
|
9478
|
+
o && /* @__PURE__ */ u.jsx("div", { className: me.TableHeader, children: /* @__PURE__ */ u.jsx(Yl, { count: r, singularText: o, children: (y, C) => `${y} ${C}` }) }),
|
|
9479
|
+
/* @__PURE__ */ u.jsxs("table", { className: me.Table, children: [
|
|
9480
|
+
/* @__PURE__ */ u.jsx("thead", { children: /* @__PURE__ */ u.jsx("tr", { children: e.map((y) => /* @__PURE__ */ u.jsx("th", { children: /* @__PURE__ */ u.jsxs("div", { className: p(y), onClick: f(y), children: [
|
|
9481
|
+
/* @__PURE__ */ u.jsx("span", { children: y.displayName }),
|
|
9482
|
+
y.isSortable && /* @__PURE__ */ u.jsx(eu, { className: g(y) })
|
|
9483
9483
|
] }) }, y.name)) }) }),
|
|
9484
|
-
/* @__PURE__ */
|
|
9485
|
-
/* @__PURE__ */
|
|
9486
|
-
/* @__PURE__ */
|
|
9487
|
-
/* @__PURE__ */
|
|
9484
|
+
/* @__PURE__ */ u.jsx("tbody", { children: /* @__PURE__ */ u.jsxs(Ot, { children: [
|
|
9485
|
+
/* @__PURE__ */ u.jsx(Ot.When, { condition: n, children: [...Array(l).keys()].map((y) => /* @__PURE__ */ u.jsx("tr", { children: /* @__PURE__ */ u.jsx("td", { colSpan: e.length, style: { padding: 4 }, children: /* @__PURE__ */ u.jsx(xs, { height: d }) }) }, y)) }),
|
|
9486
|
+
/* @__PURE__ */ u.jsx(Ot.When, { condition: !t.length, children: /* @__PURE__ */ u.jsx("tr", { children: /* @__PURE__ */ u.jsx("td", { colSpan: e.length, children: /* @__PURE__ */ u.jsx(Xl, {}) }) }) }),
|
|
9487
|
+
/* @__PURE__ */ u.jsx(Ot.Else, { children: t.map((y, C) => /* @__PURE__ */ u.jsx("tr", { className: c && me.selectable, onClick: w(y), children: e.map((x) => /* @__PURE__ */ u.jsx("td", { style: x.width ? { width: x.width } : {}, children: /* @__PURE__ */ u.jsx("div", { className: p(x), children: x.cellRenderer ? x.cellRenderer(y) : x.valueGetter ? x.valueGetter(y) : y[x.name] }) }, `${x.name}-${C}`)) }, C)) })
|
|
9488
9488
|
] }) })
|
|
9489
9489
|
] })
|
|
9490
9490
|
] }),
|
|
9491
|
-
a && /* @__PURE__ */
|
|
9491
|
+
a && /* @__PURE__ */ u.jsx(Jl, { ...a })
|
|
9492
9492
|
] });
|
|
9493
9493
|
};
|
|
9494
9494
|
T0.displayName = "Table";
|
|
@@ -9498,7 +9498,7 @@ const A0 = "alert__LblpE", O0 = "destructive__bLNSM", P0 = "alertTitle__gblKf",
|
|
|
9498
9498
|
destructive: O0,
|
|
9499
9499
|
alertTitle: P0,
|
|
9500
9500
|
alertDescription: j0
|
|
9501
|
-
}, Us = ({ className: e, variant: t = "default", children: n, ...r }) => /* @__PURE__ */
|
|
9501
|
+
}, Us = ({ className: e, variant: t = "default", children: n, ...r }) => /* @__PURE__ */ u.jsx(
|
|
9502
9502
|
"div",
|
|
9503
9503
|
{
|
|
9504
9504
|
"data-slot": "alert",
|
|
@@ -9511,7 +9511,7 @@ const A0 = "alert__LblpE", O0 = "destructive__bLNSM", P0 = "alertTitle__gblKf",
|
|
|
9511
9511
|
children: e,
|
|
9512
9512
|
className: t,
|
|
9513
9513
|
...n
|
|
9514
|
-
}, r) => /* @__PURE__ */
|
|
9514
|
+
}, r) => /* @__PURE__ */ u.jsx(
|
|
9515
9515
|
"div",
|
|
9516
9516
|
{
|
|
9517
9517
|
ref: r,
|
|
@@ -9524,7 +9524,7 @@ const A0 = "alert__LblpE", O0 = "destructive__bLNSM", P0 = "alertTitle__gblKf",
|
|
|
9524
9524
|
children: e,
|
|
9525
9525
|
className: t,
|
|
9526
9526
|
...n
|
|
9527
|
-
}, r) => /* @__PURE__ */
|
|
9527
|
+
}, r) => /* @__PURE__ */ u.jsx(
|
|
9528
9528
|
"div",
|
|
9529
9529
|
{
|
|
9530
9530
|
ref: r,
|
|
@@ -9568,8 +9568,8 @@ function tu(e) {
|
|
|
9568
9568
|
function N0(e, t, n) {
|
|
9569
9569
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
9570
9570
|
}
|
|
9571
|
-
function
|
|
9572
|
-
return (
|
|
9571
|
+
function ls(e) {
|
|
9572
|
+
return (ls = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
9573
9573
|
return typeof t;
|
|
9574
9574
|
} : function(t) {
|
|
9575
9575
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
@@ -9587,10 +9587,10 @@ function nu(e, t) {
|
|
|
9587
9587
|
var i = document.getElementById(s);
|
|
9588
9588
|
return i || ((i = document.createElement("div")).id = s, document.body.appendChild(i)), i;
|
|
9589
9589
|
};
|
|
9590
|
-
}(t)) != "function") throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name, "'. Expected a function, received ").concat(
|
|
9590
|
+
}(t)) != "function") throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name, "'. Expected a function, received ").concat(ls(n)));
|
|
9591
9591
|
return function() {
|
|
9592
9592
|
var r = n(t);
|
|
9593
|
-
if (!(r instanceof HTMLElement)) throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name, "'. Expected HTMLElement, received ").concat(
|
|
9593
|
+
if (!(r instanceof HTMLElement)) throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name, "'. Expected HTMLElement, received ").concat(ls(r)));
|
|
9594
9594
|
return r;
|
|
9595
9595
|
};
|
|
9596
9596
|
}
|
|
@@ -9641,9 +9641,9 @@ function M0(e, t) {
|
|
|
9641
9641
|
var o = ru(e, t, function() {
|
|
9642
9642
|
n(this);
|
|
9643
9643
|
}), s = nu(e, t)(), i = function(a) {
|
|
9644
|
-
var c = a.reactDom,
|
|
9645
|
-
if (typeof p != "function") throw new Error('renderType "'.concat(
|
|
9646
|
-
switch (
|
|
9644
|
+
var c = a.reactDom, l = a.renderType, d = a.elementToRender, h = a.domElement, p = c[l];
|
|
9645
|
+
if (typeof p != "function") throw new Error('renderType "'.concat(l, '" did not return a function.'));
|
|
9646
|
+
switch (l) {
|
|
9647
9647
|
case "createRoot":
|
|
9648
9648
|
case "unstable_createRoot":
|
|
9649
9649
|
case "createBlockingRoot":
|
|
@@ -9692,8 +9692,8 @@ function ru(e, t, n) {
|
|
|
9692
9692
|
}
|
|
9693
9693
|
return a.prototype = Object.create(s.React.Component.prototype), a.prototype.render = function() {
|
|
9694
9694
|
return this.state.caughtError ? (s.errorBoundary || i.errorBoundary)(this.state.caughtError, this.state.caughtErrorInfo, this.props) : this.props.children;
|
|
9695
|
-
}, a.prototype.componentDidCatch = function(c,
|
|
9696
|
-
this.setState({ caughtError: c, caughtErrorInfo:
|
|
9695
|
+
}, a.prototype.componentDidCatch = function(c, l) {
|
|
9696
|
+
this.setState({ caughtError: c, caughtErrorInfo: l });
|
|
9697
9697
|
}, a;
|
|
9698
9698
|
}(e, t), o = e.React.createElement(e.errorBoundaryClass, t, o)), o = e.React.createElement(e.SingleSpaRoot, Mr(Mr({}, t), {}, { mountFinished: n, updateFinished: function() {
|
|
9699
9699
|
e.updateResolves[t.name] && (e.updateResolves[t.name].forEach(function(s) {
|
|
@@ -9709,9 +9709,9 @@ const W0 = (e) => {
|
|
|
9709
9709
|
if (!r)
|
|
9710
9710
|
throw new Error("Microfrontend did not receive any properties !!");
|
|
9711
9711
|
const o = Da(r.module.name);
|
|
9712
|
-
return /* @__PURE__ */
|
|
9713
|
-
/* @__PURE__ */
|
|
9714
|
-
/* @__PURE__ */
|
|
9712
|
+
return /* @__PURE__ */ u.jsx(Pa, { module: o, children: /* @__PURE__ */ u.jsxs(Zf, { client: t, children: [
|
|
9713
|
+
/* @__PURE__ */ u.jsx(e, { ...r }),
|
|
9714
|
+
/* @__PURE__ */ u.jsx(
|
|
9715
9715
|
Pf,
|
|
9716
9716
|
{
|
|
9717
9717
|
position: "top-right",
|
|
@@ -9720,16 +9720,16 @@ const W0 = (e) => {
|
|
|
9720
9720
|
)
|
|
9721
9721
|
] }) });
|
|
9722
9722
|
};
|
|
9723
|
-
},
|
|
9723
|
+
}, N2 = ({ rootComponent: e, ...t }) => I0({
|
|
9724
9724
|
// defaults
|
|
9725
9725
|
errorBoundary(n) {
|
|
9726
|
-
return console.error(n), /* @__PURE__ */
|
|
9726
|
+
return console.error(n), /* @__PURE__ */ u.jsx(kl, {});
|
|
9727
9727
|
},
|
|
9728
9728
|
// provided props
|
|
9729
9729
|
...t,
|
|
9730
9730
|
// wrappers
|
|
9731
9731
|
rootComponent: W0(e)
|
|
9732
|
-
}),
|
|
9732
|
+
}), k2 = (e) => {
|
|
9733
9733
|
const t = {
|
|
9734
9734
|
authUser: {
|
|
9735
9735
|
id: "testuser",
|
|
@@ -9768,17 +9768,17 @@ const W0 = (e) => {
|
|
|
9768
9768
|
}, ou = () => {
|
|
9769
9769
|
const [e] = Fr();
|
|
9770
9770
|
return e.featureFlags;
|
|
9771
|
-
},
|
|
9771
|
+
}, I2 = (e) => !!ou()[e], H0 = ({
|
|
9772
9772
|
flag: e,
|
|
9773
9773
|
children: t,
|
|
9774
9774
|
fallback: n = null,
|
|
9775
9775
|
invert: r = !1
|
|
9776
9776
|
}) => {
|
|
9777
9777
|
const s = ou()[e] === !0;
|
|
9778
|
-
return (r ? !s : s) ? /* @__PURE__ */
|
|
9778
|
+
return (r ? !s : s) ? /* @__PURE__ */ u.jsx(u.Fragment, { children: t }) : /* @__PURE__ */ u.jsx(u.Fragment, { children: n });
|
|
9779
9779
|
};
|
|
9780
9780
|
H0.displayName = "FeatureFlagGuard";
|
|
9781
|
-
const su =
|
|
9781
|
+
const su = ds(null);
|
|
9782
9782
|
function V0(e) {
|
|
9783
9783
|
const t = [
|
|
9784
9784
|
"#FF6B6B",
|
|
@@ -9808,11 +9808,11 @@ function V0(e) {
|
|
|
9808
9808
|
const r = Math.abs(n) % t.length;
|
|
9809
9809
|
return t[r];
|
|
9810
9810
|
}
|
|
9811
|
-
const
|
|
9811
|
+
const _o = {
|
|
9812
9812
|
JOIN_ROOM: "join_room",
|
|
9813
9813
|
LEAVE_ROOM: "leave_room",
|
|
9814
9814
|
USER_LIST: "user_list"
|
|
9815
|
-
},
|
|
9815
|
+
}, $2 = ({
|
|
9816
9816
|
children: e
|
|
9817
9817
|
}) => {
|
|
9818
9818
|
const t = hd("@bluealba/pae-rooms-service"), [n, r] = Y([]), [o, s] = Y("loading"), [i, a] = Y(null);
|
|
@@ -9824,7 +9824,7 @@ const So = {
|
|
|
9824
9824
|
}, f.addEventListener("message", async (y) => {
|
|
9825
9825
|
try {
|
|
9826
9826
|
const C = await c(y);
|
|
9827
|
-
C.event ===
|
|
9827
|
+
C.event === _o.USER_LIST && p(C.data);
|
|
9828
9828
|
} catch (C) {
|
|
9829
9829
|
console.error("Error parsing WebSocket message:", C);
|
|
9830
9830
|
}
|
|
@@ -9843,7 +9843,7 @@ const So = {
|
|
|
9843
9843
|
return JSON.parse(y);
|
|
9844
9844
|
} else
|
|
9845
9845
|
return JSON.parse(f.data);
|
|
9846
|
-
},
|
|
9846
|
+
}, l = (f, y) => {
|
|
9847
9847
|
i && i.readyState === WebSocket.OPEN && setTimeout(() => {
|
|
9848
9848
|
i.send(JSON.stringify({
|
|
9849
9849
|
event: f,
|
|
@@ -9851,12 +9851,13 @@ const So = {
|
|
|
9851
9851
|
}));
|
|
9852
9852
|
}, 100);
|
|
9853
9853
|
}, d = (f) => {
|
|
9854
|
-
|
|
9854
|
+
l(_o.JOIN_ROOM, { roomId: f });
|
|
9855
9855
|
}, h = (f) => {
|
|
9856
|
-
|
|
9856
|
+
l(_o.LEAVE_ROOM, { roomId: f });
|
|
9857
9857
|
}, p = (f) => {
|
|
9858
9858
|
r(f.map((y) => ({
|
|
9859
9859
|
...y,
|
|
9860
|
+
username: y.username.toLowerCase(),
|
|
9860
9861
|
color: V0(y.username)
|
|
9861
9862
|
})));
|
|
9862
9863
|
}, g = ce((f) => n.filter((y) => y.rooms.includes(f)), [n]), w = {
|
|
@@ -9865,32 +9866,58 @@ const So = {
|
|
|
9865
9866
|
joinRoom: d,
|
|
9866
9867
|
leaveRoom: h
|
|
9867
9868
|
};
|
|
9868
|
-
return /* @__PURE__ */
|
|
9869
|
+
return /* @__PURE__ */ u.jsx(su.Provider, { value: w, children: e });
|
|
9870
|
+
}, q0 = {
|
|
9871
|
+
autoJoin: !0,
|
|
9872
|
+
autoLeave: !0
|
|
9869
9873
|
};
|
|
9870
|
-
function
|
|
9871
|
-
const t =
|
|
9872
|
-
if (!
|
|
9874
|
+
function M2(e, t = q0) {
|
|
9875
|
+
const { autoJoin: n, autoLeave: r } = t, o = fs(su), { authUser: s } = Wr();
|
|
9876
|
+
if (!o)
|
|
9873
9877
|
throw new Error("useRoom must be used within RoomsProvider");
|
|
9874
|
-
|
|
9875
|
-
if (
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
+
const i = () => {
|
|
9879
|
+
if (n) {
|
|
9880
|
+
console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.", {
|
|
9881
|
+
roomId: e
|
|
9882
|
+
});
|
|
9883
|
+
return;
|
|
9884
|
+
}
|
|
9885
|
+
return o.joinRoom(e);
|
|
9886
|
+
}, a = () => {
|
|
9887
|
+
if (r) {
|
|
9888
|
+
console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.", {
|
|
9889
|
+
roomId: e
|
|
9890
|
+
});
|
|
9891
|
+
return;
|
|
9892
|
+
}
|
|
9893
|
+
return o.leaveRoom(e);
|
|
9894
|
+
};
|
|
9895
|
+
ne(() => {
|
|
9896
|
+
if (!(!e || o.status !== "connected"))
|
|
9897
|
+
return n && o.joinRoom(e), () => {
|
|
9898
|
+
r && o.leaveRoom(e);
|
|
9878
9899
|
};
|
|
9879
|
-
}, [
|
|
9880
|
-
|
|
9900
|
+
}, [o.status, e]);
|
|
9901
|
+
const c = o.getRoomUsers(e), l = c.findIndex((d) => d.username === (s == null ? void 0 : s.username)) !== -1;
|
|
9902
|
+
return {
|
|
9903
|
+
users: c,
|
|
9904
|
+
roomId: e,
|
|
9905
|
+
hasJoined: l,
|
|
9906
|
+
joinRoom: i,
|
|
9907
|
+
leaveRoom: a
|
|
9881
9908
|
};
|
|
9882
9909
|
}
|
|
9883
|
-
const
|
|
9884
|
-
container:
|
|
9885
|
-
avatarWrapper:
|
|
9886
|
-
avatar:
|
|
9887
|
-
overflowWrapper:
|
|
9888
|
-
overflowBadge:
|
|
9889
|
-
},
|
|
9910
|
+
const z0 = "container__LbyGQ", G0 = "avatarWrapper__HCQIZ", Q0 = "avatar__E453a", K0 = "overflowWrapper__ETnPO", Y0 = "overflowBadge__igBKT", Tn = {
|
|
9911
|
+
container: z0,
|
|
9912
|
+
avatarWrapper: G0,
|
|
9913
|
+
avatar: Q0,
|
|
9914
|
+
overflowWrapper: K0,
|
|
9915
|
+
overflowBadge: Y0
|
|
9916
|
+
}, Z0 = {
|
|
9890
9917
|
sm: 24,
|
|
9891
9918
|
md: 32,
|
|
9892
9919
|
lg: 40
|
|
9893
|
-
},
|
|
9920
|
+
}, F2 = ({
|
|
9894
9921
|
users: e,
|
|
9895
9922
|
maxVisible: t = 5,
|
|
9896
9923
|
size: n = "md",
|
|
@@ -9898,9 +9925,9 @@ const q0 = "container__LbyGQ", z0 = "avatarWrapper__HCQIZ", G0 = "avatar__E453a"
|
|
|
9898
9925
|
className: o = "",
|
|
9899
9926
|
onUserClick: s
|
|
9900
9927
|
}) => {
|
|
9901
|
-
const i =
|
|
9902
|
-
return /* @__PURE__ */
|
|
9903
|
-
a.map((h, p) => /* @__PURE__ */
|
|
9928
|
+
const i = Z0[n], a = Pe(() => e.slice(0, t), [e, t]), c = Pe(() => e.slice(t), [e, t]), l = Math.max(0, e.length - t), d = (h) => h.split(" ").map((p) => p[0]).join("").toUpperCase().slice(0, 2);
|
|
9929
|
+
return /* @__PURE__ */ u.jsxs("div", { className: j(Tn.container, o), children: [
|
|
9930
|
+
a.map((h, p) => /* @__PURE__ */ u.jsx(as, { tooltipContent: h.displayName, side: "bottom", children: /* @__PURE__ */ u.jsx(
|
|
9904
9931
|
"div",
|
|
9905
9932
|
{
|
|
9906
9933
|
className: Tn.avatarWrapper,
|
|
@@ -9908,7 +9935,7 @@ const q0 = "container__LbyGQ", z0 = "avatarWrapper__HCQIZ", G0 = "avatar__E453a"
|
|
|
9908
9935
|
marginLeft: p > 0 && r ? `-${i * 0.25}px` : void 0
|
|
9909
9936
|
},
|
|
9910
9937
|
onClick: () => s == null ? void 0 : s(h),
|
|
9911
|
-
children: /* @__PURE__ */
|
|
9938
|
+
children: /* @__PURE__ */ u.jsx(
|
|
9912
9939
|
"div",
|
|
9913
9940
|
{
|
|
9914
9941
|
className: Tn.avatar,
|
|
@@ -9924,19 +9951,19 @@ const q0 = "container__LbyGQ", z0 = "avatarWrapper__HCQIZ", G0 = "avatar__E453a"
|
|
|
9924
9951
|
)
|
|
9925
9952
|
}
|
|
9926
9953
|
) }, h.username)),
|
|
9927
|
-
|
|
9928
|
-
|
|
9954
|
+
l > 0 && /* @__PURE__ */ u.jsx(
|
|
9955
|
+
as,
|
|
9929
9956
|
{
|
|
9930
9957
|
side: "bottom",
|
|
9931
|
-
tooltipContent: /* @__PURE__ */
|
|
9932
|
-
children: /* @__PURE__ */
|
|
9958
|
+
tooltipContent: /* @__PURE__ */ u.jsx("div", { children: c.map((h) => /* @__PURE__ */ u.jsx("p", { children: h.displayName }, h.username)) }),
|
|
9959
|
+
children: /* @__PURE__ */ u.jsx(
|
|
9933
9960
|
"div",
|
|
9934
9961
|
{
|
|
9935
9962
|
className: Tn.overflowWrapper,
|
|
9936
9963
|
style: {
|
|
9937
9964
|
marginLeft: r ? `-${i * 0.25}px` : void 0
|
|
9938
9965
|
},
|
|
9939
|
-
children: /* @__PURE__ */
|
|
9966
|
+
children: /* @__PURE__ */ u.jsxs(
|
|
9940
9967
|
"div",
|
|
9941
9968
|
{
|
|
9942
9969
|
className: Tn.overflowBadge,
|
|
@@ -9947,7 +9974,7 @@ const q0 = "container__LbyGQ", z0 = "avatarWrapper__HCQIZ", G0 = "avatar__E453a"
|
|
|
9947
9974
|
},
|
|
9948
9975
|
children: [
|
|
9949
9976
|
"+",
|
|
9950
|
-
|
|
9977
|
+
l
|
|
9951
9978
|
]
|
|
9952
9979
|
}
|
|
9953
9980
|
)
|
|
@@ -9963,16 +9990,17 @@ export {
|
|
|
9963
9990
|
uc as Authorized,
|
|
9964
9991
|
fc as Badge,
|
|
9965
9992
|
hc as Badges,
|
|
9966
|
-
|
|
9993
|
+
Xo as Button,
|
|
9967
9994
|
rp as ClipboardCheckIcon,
|
|
9968
9995
|
np as ClipboardIcon,
|
|
9969
9996
|
Rv as ConfirmDialog,
|
|
9970
|
-
|
|
9997
|
+
R2 as CopyToClipboardButton,
|
|
9998
|
+
q0 as DEFAULT_OPTIONS,
|
|
9971
9999
|
he as Dialog,
|
|
9972
10000
|
Cs as DropdownList,
|
|
9973
10001
|
Xl as EmptyState,
|
|
9974
10002
|
kl as ErrorState,
|
|
9975
|
-
|
|
10003
|
+
x2 as ExtendExtensionPoint,
|
|
9976
10004
|
Eh as ExtensionPoint,
|
|
9977
10005
|
Qg as EyeIcon,
|
|
9978
10006
|
H0 as FeatureFlagGuard,
|
|
@@ -9986,16 +10014,16 @@ export {
|
|
|
9986
10014
|
ql as PaginationContent,
|
|
9987
10015
|
Ql as PaginationEllipsis,
|
|
9988
10016
|
_r as PaginationItem,
|
|
9989
|
-
|
|
10017
|
+
to as PaginationLink,
|
|
9990
10018
|
Gl as PaginationNext,
|
|
9991
10019
|
zl as PaginationPrevious,
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
10020
|
+
j2 as PasswordInput,
|
|
10021
|
+
L2 as Pill,
|
|
10022
|
+
S2 as PlatformEventListener,
|
|
10023
|
+
n2 as PlatformEvents,
|
|
9996
10024
|
Yl as PluralizeCounter,
|
|
9997
|
-
|
|
9998
|
-
|
|
10025
|
+
F2 as RoomAvatars,
|
|
10026
|
+
$2 as RoomsProvider,
|
|
9999
10027
|
Wp as SearchAutocomplete,
|
|
10000
10028
|
gc as SearchInput,
|
|
10001
10029
|
mc as Select,
|
|
@@ -10005,68 +10033,68 @@ export {
|
|
|
10005
10033
|
Lg as Spinner,
|
|
10006
10034
|
$g as Switch,
|
|
10007
10035
|
T0 as Table,
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10036
|
+
T2 as Tabs,
|
|
10037
|
+
P2 as TabsContent,
|
|
10038
|
+
A2 as TabsList,
|
|
10039
|
+
O2 as TabsTrigger,
|
|
10012
10040
|
Cp as TextArea,
|
|
10013
|
-
|
|
10014
|
-
|
|
10041
|
+
as as Tooltip,
|
|
10042
|
+
_2 as authorized,
|
|
10015
10043
|
Jt as dropdownListStyles,
|
|
10016
|
-
|
|
10044
|
+
E2 as extensionPoint,
|
|
10017
10045
|
V0 as generateUserColor,
|
|
10018
10046
|
ja as getApplications,
|
|
10019
|
-
|
|
10047
|
+
l2 as getInitials,
|
|
10020
10048
|
Bu as getOperations,
|
|
10021
10049
|
Wu as hasAccess,
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10050
|
+
N2 as initializeMicroFrontend,
|
|
10051
|
+
y2 as isPlatformCustomizationCompleted,
|
|
10052
|
+
c2 as isValidEmail,
|
|
10053
|
+
i2 as logout,
|
|
10054
|
+
a2 as navigateTo,
|
|
10055
|
+
g2 as platformHaveAnyCustomization,
|
|
10056
|
+
k2 as setupTestEnvironment,
|
|
10029
10057
|
ed as useApplicationIcon,
|
|
10030
10058
|
ps as useApplicationJSModule,
|
|
10031
|
-
|
|
10059
|
+
u2 as useApplicationMenu,
|
|
10032
10060
|
Zu as useApplicationUIModule,
|
|
10033
10061
|
Qu as useApplications,
|
|
10034
|
-
|
|
10062
|
+
Wr as useAuth,
|
|
10035
10063
|
Br as useCatalog,
|
|
10036
10064
|
ka as useCurrentApplication,
|
|
10037
10065
|
ud as useCurrentApplicationName,
|
|
10038
|
-
|
|
10066
|
+
d2 as useCurrentJSModule,
|
|
10039
10067
|
Rd as useDynamicFonts,
|
|
10040
10068
|
Cd as useDynamicStyleSheet,
|
|
10041
10069
|
bd as useExtendExtensionPoint,
|
|
10042
10070
|
vd as useExtensionPoint,
|
|
10043
|
-
|
|
10071
|
+
I2 as useFeatureFlag,
|
|
10044
10072
|
ou as useFeatureFlags,
|
|
10045
|
-
|
|
10046
|
-
|
|
10073
|
+
m2 as useGetPlatformTheme,
|
|
10074
|
+
o2 as useHasNoSession,
|
|
10047
10075
|
Iu as useLocation,
|
|
10048
10076
|
Da as useModule,
|
|
10049
|
-
|
|
10077
|
+
s2 as useModuleCommonPaths,
|
|
10050
10078
|
Hu as useModuleConfig,
|
|
10051
10079
|
Vu as useModuleConfigByName,
|
|
10052
10080
|
td as useModuleMenu,
|
|
10053
10081
|
Ur as useModuleMetadata,
|
|
10054
|
-
|
|
10082
|
+
r2 as useMutableCatalog,
|
|
10055
10083
|
Ga as useNotifications,
|
|
10056
10084
|
Uu as useOperations,
|
|
10057
|
-
|
|
10085
|
+
p2 as usePAECustomizationsLoadingState,
|
|
10058
10086
|
Fr as usePAEState,
|
|
10059
|
-
|
|
10087
|
+
h2 as usePlatformCustomization,
|
|
10060
10088
|
wd as usePlatformEventListener,
|
|
10061
|
-
|
|
10089
|
+
b2 as useResource,
|
|
10062
10090
|
lh as useResourceActions,
|
|
10063
|
-
|
|
10091
|
+
M2 as useRoom,
|
|
10064
10092
|
Ia as useServiceBaseURL,
|
|
10065
10093
|
$a as useServiceInvoker,
|
|
10066
10094
|
hd as useServiceWebSocketURL,
|
|
10067
|
-
|
|
10068
|
-
|
|
10095
|
+
w2 as useTenants,
|
|
10096
|
+
f2 as useTrackEvent,
|
|
10069
10097
|
yd as useTrackEvents,
|
|
10070
10098
|
Yu as useUIApplications,
|
|
10071
|
-
|
|
10099
|
+
C2 as useUserState
|
|
10072
10100
|
};
|