@slashid/jump-page 1.0.18-hrd.0 → 1.0.19
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/package/main.js +611 -611
- package/package/main.js.map +1 -1
- package/package.json +5 -3
package/package/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import $, { useLayoutEffect as
|
|
2
|
+
import $, { useLayoutEffect as yn, forwardRef as Le, useCallback as Te, useState as ve, useMemo as we, createContext as Qe, useContext as mr, useEffect as ye, useRef as Ze, Children as Xe, isValidElement as or, createElement as _e, cloneElement as $o, Fragment as sd, useReducer as ld } from "react";
|
|
3
3
|
import { Errors as Me, SlashID as cd } from "@slashid/slashid";
|
|
4
4
|
import * as gr from "react-dom";
|
|
5
5
|
import { createPortal as ud, flushSync as dd } from "react-dom";
|
|
@@ -19,11 +19,11 @@ function fd() {
|
|
|
19
19
|
Za = 1;
|
|
20
20
|
var e = $, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function i(s, l, u) {
|
|
22
|
-
var d, f = {},
|
|
23
|
-
u !== void 0 && (
|
|
22
|
+
var d, f = {}, y = null, h = null;
|
|
23
|
+
u !== void 0 && (y = "" + u), l.key !== void 0 && (y = "" + l.key), l.ref !== void 0 && (h = l.ref);
|
|
24
24
|
for (d in l) r.call(l, d) && !a.hasOwnProperty(d) && (f[d] = l[d]);
|
|
25
25
|
if (s && s.defaultProps) for (d in l = s.defaultProps, l) f[d] === void 0 && (f[d] = l[d]);
|
|
26
|
-
return { $$typeof: t, type: s, key:
|
|
26
|
+
return { $$typeof: t, type: s, key: y, ref: h, props: f, _owner: o.current };
|
|
27
27
|
}
|
|
28
28
|
return sn.Fragment = n, sn.jsx = i, sn.jsxs = i, sn;
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ var ln = {};
|
|
|
40
40
|
var Xa;
|
|
41
41
|
function pd() {
|
|
42
42
|
return Xa || (Xa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var e = $, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
|
|
43
|
+
var e = $, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, p = "@@iterator";
|
|
44
44
|
function m(v) {
|
|
45
45
|
if (v === null || typeof v != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function pd() {
|
|
|
48
48
|
return typeof j == "function" ? j : null;
|
|
49
49
|
}
|
|
50
50
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function _(v) {
|
|
52
52
|
{
|
|
53
53
|
for (var j = arguments.length, P = new Array(j > 1 ? j - 1 : 0), V = 1; V < j; V++)
|
|
54
54
|
P[V - 1] = arguments[V];
|
|
@@ -68,7 +68,7 @@ function pd() {
|
|
|
68
68
|
var E = !1, C = !1, k = !1, S = !1, N = !1, O;
|
|
69
69
|
O = Symbol.for("react.module.reference");
|
|
70
70
|
function Z(v) {
|
|
71
|
-
return !!(typeof v == "string" || typeof v == "function" || v === r || v === a || N || v === o || v === u || v === d || S || v === h || E || C || k || typeof v == "object" && v !== null && (v.$$typeof ===
|
|
71
|
+
return !!(typeof v == "string" || typeof v == "function" || v === r || v === a || N || v === o || v === u || v === d || S || v === h || E || C || k || typeof v == "object" && v !== null && (v.$$typeof === y || v.$$typeof === f || v.$$typeof === i || v.$$typeof === s || v.$$typeof === l || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -87,7 +87,7 @@ function pd() {
|
|
|
87
87
|
function G(v) {
|
|
88
88
|
if (v == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof v.tag == "number" &&
|
|
90
|
+
if (typeof v.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof v == "function")
|
|
91
91
|
return v.displayName || v.name || null;
|
|
92
92
|
if (typeof v == "string")
|
|
93
93
|
return v;
|
|
@@ -118,7 +118,7 @@ function pd() {
|
|
|
118
118
|
case f:
|
|
119
119
|
var V = v.displayName || null;
|
|
120
120
|
return V !== null ? V : G(v.type) || "Memo";
|
|
121
|
-
case
|
|
121
|
+
case y: {
|
|
122
122
|
var ae = v, ue = ae._payload, te = ae._init;
|
|
123
123
|
try {
|
|
124
124
|
return G(te(ue));
|
|
@@ -188,7 +188,7 @@ function pd() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
Y < 0 &&
|
|
191
|
+
Y < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var ce = w.ReactCurrentDispatcher, I;
|
|
@@ -307,7 +307,7 @@ function pd() {
|
|
|
307
307
|
return be(v.render);
|
|
308
308
|
case f:
|
|
309
309
|
return Re(v.type, j, P);
|
|
310
|
-
case
|
|
310
|
+
case y: {
|
|
311
311
|
var V = v, ae = V._payload, ue = V._init;
|
|
312
312
|
try {
|
|
313
313
|
return Re(ue(ae), j, P);
|
|
@@ -340,7 +340,7 @@ function pd() {
|
|
|
340
340
|
} catch (he) {
|
|
341
341
|
Q = he;
|
|
342
342
|
}
|
|
343
|
-
Q && !(Q instanceof Error) && (nt(ae),
|
|
343
|
+
Q && !(Q instanceof Error) && (nt(ae), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", V || "React class", P, te, typeof Q), nt(null)), Q instanceof Error && !(Q.message in In) && (In[Q.message] = !0, nt(ae), _("Failed %s type: %s", P, Q.message), nt(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,7 +366,7 @@ function pd() {
|
|
|
366
366
|
}
|
|
367
367
|
function Da(v) {
|
|
368
368
|
if (Bu(v))
|
|
369
|
-
return
|
|
369
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Uu(v)), Aa(v);
|
|
370
370
|
}
|
|
371
371
|
var Fa = w.ReactCurrentOwner, Vu = {
|
|
372
372
|
key: !0,
|
|
@@ -396,7 +396,7 @@ function pd() {
|
|
|
396
396
|
function Ku(v, j) {
|
|
397
397
|
{
|
|
398
398
|
var P = function() {
|
|
399
|
-
$a || ($a = !0,
|
|
399
|
+
$a || ($a = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
400
400
|
};
|
|
401
401
|
P.isReactWarning = !0, Object.defineProperty(v, "key", {
|
|
402
402
|
get: P,
|
|
@@ -407,7 +407,7 @@ function pd() {
|
|
|
407
407
|
function Zu(v, j) {
|
|
408
408
|
{
|
|
409
409
|
var P = function() {
|
|
410
|
-
Ha || (Ha = !0,
|
|
410
|
+
Ha || (Ha = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
411
411
|
};
|
|
412
412
|
P.isReactWarning = !0, Object.defineProperty(v, "ref", {
|
|
413
413
|
get: P,
|
|
@@ -513,7 +513,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
513
513
|
return;
|
|
514
514
|
Va[P] = !0;
|
|
515
515
|
var V = "";
|
|
516
|
-
v && v._owner && v._owner !== Dr.current && (V = " It was passed a child from " + G(v._owner.type) + "."), Lt(v),
|
|
516
|
+
v && v._owner && v._owner !== Dr.current && (V = " It was passed a child from " + G(v._owner.type) + "."), Lt(v), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, V), Lt(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function Wa(v, j) {
|
|
@@ -555,9 +555,9 @@ Check the top-level render call using <` + P + ">.");
|
|
|
555
555
|
} else if (j.PropTypes !== void 0 && !Fr) {
|
|
556
556
|
Fr = !0;
|
|
557
557
|
var ae = G(j);
|
|
558
|
-
|
|
558
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function nd(v) {
|
|
@@ -565,11 +565,11 @@ Check the top-level render call using <` + P + ">.");
|
|
|
565
565
|
for (var j = Object.keys(v.props), P = 0; P < j.length; P++) {
|
|
566
566
|
var V = j[P];
|
|
567
567
|
if (V !== "children" && V !== "key") {
|
|
568
|
-
Lt(v),
|
|
568
|
+
Lt(v), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V), Lt(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
v.ref !== null && (Lt(v),
|
|
572
|
+
v.ref !== null && (Lt(v), _("Invalid attribute `ref` supplied to `React.Fragment`."), Lt(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function Ya(v, j, P, V, ae, ue) {
|
|
@@ -581,7 +581,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
581
581
|
var qe = Qu();
|
|
582
582
|
qe ? Q += qe : Q += Ba();
|
|
583
583
|
var he;
|
|
584
|
-
v === null ? he = "null" : Ar(v) ? he = "array" : v !== void 0 && v.$$typeof === t ? (he = "<" + (G(v.type) || "Unknown") + " />", Q = " Did you accidentally export a JSX literal instead of a component?") : he = typeof v,
|
|
584
|
+
v === null ? he = "null" : Ar(v) ? he = "array" : v !== void 0 && v.$$typeof === t ? (he = "<" + (G(v.type) || "Unknown") + " />", Q = " Did you accidentally export a JSX literal instead of a component?") : he = typeof v, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, Q);
|
|
585
585
|
}
|
|
586
586
|
var me = Ju(v, j, P, ae, ue);
|
|
587
587
|
if (me == null)
|
|
@@ -595,7 +595,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
595
595
|
Wa(Ae[Ot], v);
|
|
596
596
|
Object.freeze && Object.freeze(Ae);
|
|
597
597
|
} else
|
|
598
|
-
|
|
598
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
599
|
else
|
|
600
600
|
Wa(Ae, v);
|
|
601
601
|
}
|
|
@@ -630,7 +630,7 @@ function Ve() {
|
|
|
630
630
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Es(e)) && (r && (r += " "), r += t);
|
|
631
631
|
return r;
|
|
632
632
|
}
|
|
633
|
-
var md = "y2413r0", gd = "y2413r1", vd = "y2413r2",
|
|
633
|
+
var md = "y2413r0", gd = "y2413r1", vd = "y2413r2", yd = "y2413r3", Qa = "sid-theme-root";
|
|
634
634
|
function ks() {
|
|
635
635
|
return typeof window < "u" && globalThis === window;
|
|
636
636
|
}
|
|
@@ -638,7 +638,7 @@ function Ss({ theme: e, className: t }) {
|
|
|
638
638
|
return Ve(
|
|
639
639
|
Qa,
|
|
640
640
|
`${Qa}__${e}`,
|
|
641
|
-
|
|
641
|
+
yd,
|
|
642
642
|
{
|
|
643
643
|
[md]: e === "dark",
|
|
644
644
|
[vd]: e === "auto",
|
|
@@ -647,16 +647,16 @@ function Ss({ theme: e, className: t }) {
|
|
|
647
647
|
t
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function _d({ theme: e, className: t }) {
|
|
651
651
|
const n = Ss({ theme: e, className: t });
|
|
652
652
|
document.body.classList.add(...n.split(" "));
|
|
653
653
|
}
|
|
654
654
|
const qs = ({ children: e }) => /* @__PURE__ */ c.jsx("div", { className: Ss({ theme: "light" }), children: e }), bd = ({ children: e, theme: t = "light", className: n }) => {
|
|
655
655
|
const [r, o] = $.useState(!1);
|
|
656
|
-
return
|
|
656
|
+
return yn(() => {
|
|
657
657
|
r || o(!0);
|
|
658
|
-
}, [n, r, t]),
|
|
659
|
-
r &&
|
|
658
|
+
}, [n, r, t]), yn(() => {
|
|
659
|
+
r && _d({ theme: t, className: n });
|
|
660
660
|
}, [n, r, t]), r ? /* @__PURE__ */ c.jsx(c.Fragment, { children: e }) : /* @__PURE__ */ c.jsx(qs, { children: e });
|
|
661
661
|
};
|
|
662
662
|
function Cd({ children: e, theme: t = "light", className: n }) {
|
|
@@ -878,7 +878,7 @@ const Nd = () => /* @__PURE__ */ c.jsxs(
|
|
|
878
878
|
);
|
|
879
879
|
};
|
|
880
880
|
var Ld = "_1rf2mux3", Od = "_1rf2mux5", Ad = { blue: "_1rf2mux6 _1rf2mux4", red: "_1rf2mux7 _1rf2mux4", primary: "_1rf2mux8 _1rf2mux4", grey: "_1rf2mux9 _1rf2mux4" }, Dd = "_1rf2muxb", Fd = { blue: "_1rf2muxc _1rf2muxa", red: "_1rf2muxd _1rf2muxa", primary: "_1rf2muxe _1rf2muxa", grey: "_1rf2muxf _1rf2muxa" }, $d = "_1rf2muxh", Hd = { blue: "_1rf2muxi _1rf2muxg", red: "_1rf2muxj _1rf2muxg", primary: "_1rf2muxk _1rf2muxg", grey: "_1rf2muxl _1rf2muxg" }, Ud = "_1rf2muxm";
|
|
881
|
-
const
|
|
881
|
+
const _n = ({
|
|
882
882
|
children: e,
|
|
883
883
|
className: t,
|
|
884
884
|
variant: n = "blue",
|
|
@@ -1012,17 +1012,17 @@ var Zd = (e) => function() {
|
|
|
1012
1012
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
1013
1013
|
n[r] = arguments[r];
|
|
1014
1014
|
var o = Object.assign({}, ...n.map((l) => l.styles)), a = Object.keys(o), i = a.filter((l) => "mappings" in o[l]), s = (l) => {
|
|
1015
|
-
var u = [], d = {}, f = Hr({}, l),
|
|
1015
|
+
var u = [], d = {}, f = Hr({}, l), y = !1;
|
|
1016
1016
|
for (var h of i) {
|
|
1017
1017
|
var b = l[h];
|
|
1018
1018
|
if (b != null) {
|
|
1019
1019
|
var p = o[h];
|
|
1020
|
-
|
|
1020
|
+
y = !0;
|
|
1021
1021
|
for (var m of p.mappings)
|
|
1022
1022
|
d[m] = b, f[m] == null && delete f[m];
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
var w =
|
|
1025
|
+
var w = y ? Hr(Hr({}, d), f) : l, _ = function() {
|
|
1026
1026
|
var k = w[x], S = o[x];
|
|
1027
1027
|
try {
|
|
1028
1028
|
if (S.mappings)
|
|
@@ -1087,7 +1087,7 @@ var Zd = (e) => function() {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
1089
|
for (var x in w)
|
|
1090
|
-
var E =
|
|
1090
|
+
var E = _();
|
|
1091
1091
|
return e(u.join(" "));
|
|
1092
1092
|
};
|
|
1093
1093
|
return Object.assign(s, {
|
|
@@ -1266,7 +1266,7 @@ function Ls({ children: e, className: t, header: n = /* @__PURE__ */ c.jsx(cf, {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
const df = { "--sid-color-primary": "#DCDDE5" };
|
|
1268
1268
|
function ff({ type: e }) {
|
|
1269
|
-
return e === "neutral" ? /* @__PURE__ */ c.jsx("div", { style: df, children: /* @__PURE__ */ c.jsx(
|
|
1269
|
+
return e === "neutral" ? /* @__PURE__ */ c.jsx("div", { style: df, children: /* @__PURE__ */ c.jsx(_n, { variant: "primary", shouldAnimate: !1, children: /* @__PURE__ */ c.jsx(ei, {}) }) }) : /* @__PURE__ */ c.jsx(_n, { variant: e === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ c.jsx(ei, {}) });
|
|
1270
1270
|
}
|
|
1271
1271
|
const pf = (e) => {
|
|
1272
1272
|
switch (e) {
|
|
@@ -1296,7 +1296,7 @@ function co({ errorCode: e, type: t, redirectUri: n }) {
|
|
|
1296
1296
|
/* @__PURE__ */ c.jsx(ff, { type: t })
|
|
1297
1297
|
] });
|
|
1298
1298
|
}
|
|
1299
|
-
const mf = () => /* @__PURE__ */ c.jsx(
|
|
1299
|
+
const mf = () => /* @__PURE__ */ c.jsx(_n, { variant: "primary", children: /* @__PURE__ */ c.jsx("svg", { width: "21", height: "18", viewBox: "0 0 21 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c.jsx(
|
|
1300
1300
|
"path",
|
|
1301
1301
|
{
|
|
1302
1302
|
fillRule: "evenodd",
|
|
@@ -1307,7 +1307,7 @@ const mf = () => /* @__PURE__ */ c.jsx(yn, { variant: "primary", children: /* @_
|
|
|
1307
1307
|
) }) }), gf = 4e3;
|
|
1308
1308
|
function vf({ redirectUri: e, autoClose: t = !1 } = {}) {
|
|
1309
1309
|
const [n, r] = ve(t ? "autoclose" : "default");
|
|
1310
|
-
return e && window.location.replace(e),
|
|
1310
|
+
return e && window.location.replace(e), ye(() => {
|
|
1311
1311
|
if (t) {
|
|
1312
1312
|
const o = setTimeout(() => {
|
|
1313
1313
|
try {
|
|
@@ -1334,7 +1334,7 @@ function vf({ redirectUri: e, autoClose: t = !1 } = {}) {
|
|
|
1334
1334
|
/* @__PURE__ */ c.jsx(mf, {})
|
|
1335
1335
|
] });
|
|
1336
1336
|
}
|
|
1337
|
-
var
|
|
1337
|
+
var yf = "_8vopmj0", _f = "_8vopmj2";
|
|
1338
1338
|
function bf() {
|
|
1339
1339
|
const { language: e } = qn();
|
|
1340
1340
|
return we(() => of(e), [e]);
|
|
@@ -1357,11 +1357,11 @@ function xf({
|
|
|
1357
1357
|
} : {};
|
|
1358
1358
|
}
|
|
1359
1359
|
function wf({ message: e }) {
|
|
1360
|
-
return /* @__PURE__ */ c.jsx("span", { className:
|
|
1360
|
+
return /* @__PURE__ */ c.jsx("span", { className: _f, children: e });
|
|
1361
1361
|
}
|
|
1362
1362
|
function Ef() {
|
|
1363
1363
|
const e = bf(), { sdk: t } = qn(), [n, r] = ve(""), [o, a] = ve(""), [i, s] = ve(null), [l, u] = ve("initial");
|
|
1364
|
-
|
|
1364
|
+
ye(() => {
|
|
1365
1365
|
const h = (b) => {
|
|
1366
1366
|
s(
|
|
1367
1367
|
Ms(
|
|
@@ -1384,7 +1384,7 @@ function Ef() {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
}, f = (h) => {
|
|
1386
1386
|
r(h.target.value), s(null);
|
|
1387
|
-
},
|
|
1387
|
+
}, y = (h) => {
|
|
1388
1388
|
a(h.target.value), s(null);
|
|
1389
1389
|
};
|
|
1390
1390
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -1393,7 +1393,7 @@ function Ef() {
|
|
|
1393
1393
|
/* @__PURE__ */ c.jsx(lo, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "recover.password.details" })
|
|
1394
1394
|
] }),
|
|
1395
1395
|
/* @__PURE__ */ c.jsxs("form", { onSubmit: d, children: [
|
|
1396
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
1396
|
+
/* @__PURE__ */ c.jsxs("div", { className: yf, children: [
|
|
1397
1397
|
/* @__PURE__ */ c.jsx(
|
|
1398
1398
|
ti,
|
|
1399
1399
|
{
|
|
@@ -1415,7 +1415,7 @@ function Ef() {
|
|
|
1415
1415
|
placeholder: e("recover.password.input.placeholder"),
|
|
1416
1416
|
name: "passwordConfirm",
|
|
1417
1417
|
value: o ?? "",
|
|
1418
|
-
onChange:
|
|
1418
|
+
onChange: y,
|
|
1419
1419
|
className: Rs({ marginTop: "4" }),
|
|
1420
1420
|
error: !!i,
|
|
1421
1421
|
autoComplete: "new-password"
|
|
@@ -1481,7 +1481,7 @@ function Sf(e) {
|
|
|
1481
1481
|
function qf(e) {
|
|
1482
1482
|
return Jt(e, "RegExp");
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function yr(e) {
|
|
1485
1485
|
return !!(e && e.then && typeof e.then == "function");
|
|
1486
1486
|
}
|
|
1487
1487
|
function zf(e) {
|
|
@@ -1520,7 +1520,7 @@ function si(e, t) {
|
|
|
1520
1520
|
function jf(e, t, n = !1) {
|
|
1521
1521
|
return st(e) ? qf(t) ? t.test(e) : st(t) ? n ? e === t : e.includes(t) : !1 : !1;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function _r(e, t = [], n = !1) {
|
|
1524
1524
|
return t.some((r) => jf(e, r, n));
|
|
1525
1525
|
}
|
|
1526
1526
|
function Rf(e, t, n = 250, r, o, a, i) {
|
|
@@ -1562,8 +1562,8 @@ function uo(e, t, n, r, o, a, i, s) {
|
|
|
1562
1562
|
return Array.isArray(r.errors) && r.errors.forEach((u, d) => {
|
|
1563
1563
|
if (St(u, Error)) {
|
|
1564
1564
|
li(i, s);
|
|
1565
|
-
const f = e(t, u),
|
|
1566
|
-
ci(f, `errors[${d}]`,
|
|
1565
|
+
const f = e(t, u), y = l.length;
|
|
1566
|
+
ci(f, `errors[${d}]`, y, s), l = uo(
|
|
1567
1567
|
e,
|
|
1568
1568
|
t,
|
|
1569
1569
|
n,
|
|
@@ -1571,7 +1571,7 @@ function uo(e, t, n, r, o, a, i, s) {
|
|
|
1571
1571
|
o,
|
|
1572
1572
|
[f, ...l],
|
|
1573
1573
|
f,
|
|
1574
|
-
|
|
1574
|
+
y
|
|
1575
1575
|
);
|
|
1576
1576
|
}
|
|
1577
1577
|
}), l;
|
|
@@ -2111,7 +2111,7 @@ function Ks() {
|
|
|
2111
2111
|
return !1;
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function yo(e) {
|
|
2115
2115
|
return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
|
|
2116
2116
|
}
|
|
2117
2117
|
function np() {
|
|
@@ -2119,14 +2119,14 @@ function np() {
|
|
|
2119
2119
|
return !0;
|
|
2120
2120
|
if (!Ks())
|
|
2121
2121
|
return !1;
|
|
2122
|
-
if (
|
|
2122
|
+
if (yo(vo.fetch))
|
|
2123
2123
|
return !0;
|
|
2124
2124
|
let e = !1;
|
|
2125
2125
|
const t = vo.document;
|
|
2126
2126
|
if (t && typeof t.createElement == "function")
|
|
2127
2127
|
try {
|
|
2128
2128
|
const n = t.createElement("iframe");
|
|
2129
|
-
n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e =
|
|
2129
|
+
n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e = yo(n.contentWindow.fetch)), t.head.removeChild(n);
|
|
2130
2130
|
} catch (n) {
|
|
2131
2131
|
zn && F.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
|
|
2132
2132
|
}
|
|
@@ -2170,11 +2170,11 @@ function op() {
|
|
|
2170
2170
|
};
|
|
2171
2171
|
});
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function _o(e, t) {
|
|
2174
2174
|
return !!e && typeof e == "object" && !!e[t];
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2177
|
-
return typeof e == "string" ? e : e ?
|
|
2176
|
+
function yi(e) {
|
|
2177
|
+
return typeof e == "string" ? e : e ? _o(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
|
|
2178
2178
|
}
|
|
2179
2179
|
function ap(e) {
|
|
2180
2180
|
if (e.length === 0)
|
|
@@ -2182,14 +2182,14 @@ function ap(e) {
|
|
|
2182
2182
|
if (e.length === 2) {
|
|
2183
2183
|
const [n, r] = e;
|
|
2184
2184
|
return {
|
|
2185
|
-
url:
|
|
2186
|
-
method:
|
|
2185
|
+
url: yi(n),
|
|
2186
|
+
method: _o(r, "method") ? String(r.method).toUpperCase() : "GET"
|
|
2187
2187
|
};
|
|
2188
2188
|
}
|
|
2189
2189
|
const t = e[0];
|
|
2190
2190
|
return {
|
|
2191
|
-
url:
|
|
2192
|
-
method:
|
|
2191
|
+
url: yi(t),
|
|
2192
|
+
method: _o(t, "method") ? String(t.method).toUpperCase() : "GET"
|
|
2193
2193
|
};
|
|
2194
2194
|
}
|
|
2195
2195
|
let Dn = null;
|
|
@@ -2363,7 +2363,7 @@ function bo(e, t, n = 1 / 0, r = 1 / 0, o = vp()) {
|
|
|
2363
2363
|
if (t == null || // this matches null and undefined -> eqeq not eqeqeq
|
|
2364
2364
|
["number", "boolean", "string"].includes(typeof t) && !Tf(t))
|
|
2365
2365
|
return t;
|
|
2366
|
-
const s =
|
|
2366
|
+
const s = yp(e, t);
|
|
2367
2367
|
if (!s.startsWith("[object "))
|
|
2368
2368
|
return s;
|
|
2369
2369
|
if (t.__sentry_skip_normalization__)
|
|
@@ -2382,20 +2382,20 @@ function bo(e, t, n = 1 / 0, r = 1 / 0, o = vp()) {
|
|
|
2382
2382
|
}
|
|
2383
2383
|
const d = Array.isArray(t) ? [] : {};
|
|
2384
2384
|
let f = 0;
|
|
2385
|
-
const
|
|
2386
|
-
for (const h in
|
|
2387
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
2385
|
+
const y = Bs(t);
|
|
2386
|
+
for (const h in y) {
|
|
2387
|
+
if (!Object.prototype.hasOwnProperty.call(y, h))
|
|
2388
2388
|
continue;
|
|
2389
2389
|
if (f >= r) {
|
|
2390
2390
|
d[h] = "[MaxProperties ~]";
|
|
2391
2391
|
break;
|
|
2392
2392
|
}
|
|
2393
|
-
const b =
|
|
2393
|
+
const b = y[h];
|
|
2394
2394
|
d[h] = bo(h, b, l - 1, r, o), f++;
|
|
2395
2395
|
}
|
|
2396
2396
|
return i(t), d;
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function yp(e, t) {
|
|
2399
2399
|
try {
|
|
2400
2400
|
if (e === "domain" && t && typeof t == "object" && t._events)
|
|
2401
2401
|
return "[Domain]";
|
|
@@ -2419,13 +2419,13 @@ function _p(e, t) {
|
|
|
2419
2419
|
return `[${String(t)}]`;
|
|
2420
2420
|
if (typeof t == "bigint")
|
|
2421
2421
|
return `[BigInt: ${String(t)}]`;
|
|
2422
|
-
const n =
|
|
2422
|
+
const n = _p(t);
|
|
2423
2423
|
return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
|
|
2424
2424
|
} catch (n) {
|
|
2425
2425
|
return `**non-serializable** (${n})`;
|
|
2426
2426
|
}
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function _p(e) {
|
|
2429
2429
|
const t = Object.getPrototypeOf(e);
|
|
2430
2430
|
return t ? t.constructor.name : "null prototype";
|
|
2431
2431
|
}
|
|
@@ -2530,7 +2530,7 @@ class Pe {
|
|
|
2530
2530
|
__init3() {
|
|
2531
2531
|
this._setResult = (t, n) => {
|
|
2532
2532
|
if (this._state === ot.PENDING) {
|
|
2533
|
-
if (
|
|
2533
|
+
if (yr(n)) {
|
|
2534
2534
|
n.then(this._resolve, this._reject);
|
|
2535
2535
|
return;
|
|
2536
2536
|
}
|
|
@@ -2636,7 +2636,7 @@ function Sp(e, t) {
|
|
|
2636
2636
|
const [n, r] = e;
|
|
2637
2637
|
return [n, [...r, t]];
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function _i(e, t) {
|
|
2640
2640
|
const n = e[1];
|
|
2641
2641
|
for (const r of n) {
|
|
2642
2642
|
const o = r[0].type;
|
|
@@ -2759,12 +2759,12 @@ function Op(e, { statusCode: t, headers: n }, r = Date.now()) {
|
|
|
2759
2759
|
}, a = n && n["x-sentry-rate-limits"], i = n && n["retry-after"];
|
|
2760
2760
|
if (a)
|
|
2761
2761
|
for (const s of a.trim().split(",")) {
|
|
2762
|
-
const [l, u, , , d] = s.split(":", 5), f = parseInt(l, 10),
|
|
2762
|
+
const [l, u, , , d] = s.split(":", 5), f = parseInt(l, 10), y = (isNaN(f) ? 60 : f) * 1e3;
|
|
2763
2763
|
if (!u)
|
|
2764
|
-
o.all = r +
|
|
2764
|
+
o.all = r + y;
|
|
2765
2765
|
else
|
|
2766
2766
|
for (const h of u.split(";"))
|
|
2767
|
-
h === "metric_bucket" ? (!d || d.split(";").includes("custom")) && (o[h] = r +
|
|
2767
|
+
h === "metric_bucket" ? (!d || d.split(";").includes("custom")) && (o[h] = r + y) : o[h] = r + y;
|
|
2768
2768
|
}
|
|
2769
2769
|
else i ? o.all = r + Np(i, r) : t === 429 && (o.all = r + 60 * 1e3);
|
|
2770
2770
|
return o;
|
|
@@ -2783,7 +2783,7 @@ function ir(e, t, n, r = 0) {
|
|
|
2783
2783
|
o(t);
|
|
2784
2784
|
else {
|
|
2785
2785
|
const s = i({ ...t }, n);
|
|
2786
|
-
pe && i.id && s === null && F.log(`Event processor "${i.id}" dropped event`),
|
|
2786
|
+
pe && i.id && s === null && F.log(`Event processor "${i.id}" dropped event`), yr(s) ? s.then((l) => ir(e, l, n, r + 1).then(o)).then(null, a) : ir(e, s, n, r + 1).then(o).then(null, a);
|
|
2787
2787
|
}
|
|
2788
2788
|
});
|
|
2789
2789
|
}
|
|
@@ -2869,23 +2869,23 @@ function Bp(e, t, n, r, o, a) {
|
|
|
2869
2869
|
Vp(l, e), Yp(l, u), t.type === void 0 && Gp(l, e.stackParser);
|
|
2870
2870
|
const d = Zp(r, n.captureContext);
|
|
2871
2871
|
n.mechanism && Cn(l, n.mechanism);
|
|
2872
|
-
const f = o && o.getEventProcessors ? o.getEventProcessors() : [],
|
|
2872
|
+
const f = o && o.getEventProcessors ? o.getEventProcessors() : [], y = lh().getScopeData();
|
|
2873
2873
|
if (a) {
|
|
2874
2874
|
const m = a.getScopeData();
|
|
2875
|
-
Ei(
|
|
2875
|
+
Ei(y, m);
|
|
2876
2876
|
}
|
|
2877
2877
|
if (d) {
|
|
2878
2878
|
const m = d.getScopeData();
|
|
2879
|
-
Ei(
|
|
2879
|
+
Ei(y, m);
|
|
2880
2880
|
}
|
|
2881
|
-
const h = [...n.attachments || [], ...
|
|
2882
|
-
h.length && (n.attachments = h), ll(l,
|
|
2881
|
+
const h = [...n.attachments || [], ...y.attachments];
|
|
2882
|
+
h.length && (n.attachments = h), ll(l, y);
|
|
2883
2883
|
const b = [
|
|
2884
2884
|
...f,
|
|
2885
2885
|
// eslint-disable-next-line deprecation/deprecation
|
|
2886
2886
|
...ea(),
|
|
2887
2887
|
// Run scope event processors _after_ all other processors
|
|
2888
|
-
...
|
|
2888
|
+
...y.eventProcessors
|
|
2889
2889
|
];
|
|
2890
2890
|
return ir(b, l, n).then((m) => (m && Wp(m), typeof i == "number" && i > 0 ? Kp(m, i, s) : m));
|
|
2891
2891
|
}
|
|
@@ -3100,12 +3100,12 @@ function Ei(e, t) {
|
|
|
3100
3100
|
fingerprint: u,
|
|
3101
3101
|
eventProcessors: d,
|
|
3102
3102
|
attachments: f,
|
|
3103
|
-
propagationContext:
|
|
3103
|
+
propagationContext: y,
|
|
3104
3104
|
// eslint-disable-next-line deprecation/deprecation
|
|
3105
3105
|
transactionName: h,
|
|
3106
3106
|
span: b
|
|
3107
3107
|
} = t;
|
|
3108
|
-
un(e, "extra", n), un(e, "tags", r), un(e, "user", o), un(e, "contexts", a), un(e, "sdkProcessingMetadata", s), i && (e.level = i), h && (e.transactionName = h), b && (e.span = b), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), u.length && (e.fingerprint = [...e.fingerprint, ...u]), d.length && (e.eventProcessors = [...e.eventProcessors, ...d]), f.length && (e.attachments = [...e.attachments, ...f]), e.propagationContext = { ...e.propagationContext, ...
|
|
3108
|
+
un(e, "extra", n), un(e, "tags", r), un(e, "user", o), un(e, "contexts", a), un(e, "sdkProcessingMetadata", s), i && (e.level = i), h && (e.transactionName = h), b && (e.span = b), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), u.length && (e.fingerprint = [...e.fingerprint, ...u]), d.length && (e.eventProcessors = [...e.eventProcessors, ...d]), f.length && (e.attachments = [...e.attachments, ...f]), e.propagationContext = { ...e.propagationContext, ...y };
|
|
3109
3109
|
}
|
|
3110
3110
|
function un(e, t, n) {
|
|
3111
3111
|
if (n && Object.keys(n).length) {
|
|
@@ -3426,7 +3426,7 @@ class lt {
|
|
|
3426
3426
|
_eventProcessors: u,
|
|
3427
3427
|
_propagationContext: d,
|
|
3428
3428
|
_sdkProcessingMetadata: f,
|
|
3429
|
-
_transactionName:
|
|
3429
|
+
_transactionName: y,
|
|
3430
3430
|
_span: h
|
|
3431
3431
|
} = this;
|
|
3432
3432
|
return {
|
|
@@ -3441,7 +3441,7 @@ class lt {
|
|
|
3441
3441
|
eventProcessors: u,
|
|
3442
3442
|
propagationContext: d,
|
|
3443
3443
|
sdkProcessingMetadata: f,
|
|
3444
|
-
transactionName:
|
|
3444
|
+
transactionName: y,
|
|
3445
3445
|
span: h
|
|
3446
3446
|
};
|
|
3447
3447
|
}
|
|
@@ -3672,7 +3672,7 @@ class ul {
|
|
|
3672
3672
|
} catch (o) {
|
|
3673
3673
|
throw this.popScope(), o;
|
|
3674
3674
|
}
|
|
3675
|
-
return
|
|
3675
|
+
return yr(r) ? r.then(
|
|
3676
3676
|
(o) => (this.popScope(), o),
|
|
3677
3677
|
(o) => {
|
|
3678
3678
|
throw this.popScope(), o;
|
|
@@ -4018,11 +4018,11 @@ function vh(e, t) {
|
|
|
4018
4018
|
...t && { sentry_client: `${t.name}/${t.version}` }
|
|
4019
4019
|
});
|
|
4020
4020
|
}
|
|
4021
|
-
function
|
|
4021
|
+
function yh(e, t = {}) {
|
|
4022
4022
|
const n = typeof t == "string" ? t : t.tunnel, r = typeof t == "string" || !t._metadata ? void 0 : t._metadata.sdk;
|
|
4023
4023
|
return n || `${gh(e)}?${vh(e, r)}`;
|
|
4024
4024
|
}
|
|
4025
|
-
function
|
|
4025
|
+
function _h(e, t) {
|
|
4026
4026
|
const n = Hs(e);
|
|
4027
4027
|
if (!n)
|
|
4028
4028
|
return "";
|
|
@@ -4150,7 +4150,7 @@ class qh {
|
|
|
4150
4150
|
*/
|
|
4151
4151
|
constructor(t) {
|
|
4152
4152
|
if (this._options = t, this._integrations = {}, this._integrationsInitialized = !1, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], t.dsn ? this._dsn = Hs(t.dsn) : pe && F.warn("No DSN provided, client will not send events."), this._dsn) {
|
|
4153
|
-
const n =
|
|
4153
|
+
const n = yh(this._dsn, t);
|
|
4154
4154
|
this._transport = t.transport({
|
|
4155
4155
|
tunnel: this._options.tunnel,
|
|
4156
4156
|
recordDroppedEvent: this.recordDroppedEvent.bind(this),
|
|
@@ -4432,12 +4432,12 @@ class qh {
|
|
|
4432
4432
|
...r ? r.getPropagationContext() : void 0
|
|
4433
4433
|
};
|
|
4434
4434
|
if (!(s.contexts && s.contexts.trace) && l) {
|
|
4435
|
-
const { traceId: d, spanId: f, parentSpanId:
|
|
4435
|
+
const { traceId: d, spanId: f, parentSpanId: y, dsc: h } = l;
|
|
4436
4436
|
s.contexts = {
|
|
4437
4437
|
trace: {
|
|
4438
4438
|
trace_id: d,
|
|
4439
4439
|
span_id: f,
|
|
4440
|
-
parent_span_id:
|
|
4440
|
+
parent_span_id: y
|
|
4441
4441
|
},
|
|
4442
4442
|
...s.contexts
|
|
4443
4443
|
};
|
|
@@ -4489,8 +4489,8 @@ class qh {
|
|
|
4489
4489
|
"log"
|
|
4490
4490
|
)
|
|
4491
4491
|
);
|
|
4492
|
-
const d = l === "replay_event" ? "replay" : l,
|
|
4493
|
-
return this._prepareEvent(t, n, r,
|
|
4492
|
+
const d = l === "replay_event" ? "replay" : l, y = (t.sdkProcessingMetadata || {}).capturedSpanIsolationScope;
|
|
4493
|
+
return this._prepareEvent(t, n, r, y).then((h) => {
|
|
4494
4494
|
if (h === null)
|
|
4495
4495
|
throw this.recordDroppedEvent("event_processor", d, t), new Ke("An event processor returned `null`, will not send event.", "log");
|
|
4496
4496
|
if (n.data && n.data.__sentry__ === !0)
|
|
@@ -4507,8 +4507,8 @@ class qh {
|
|
|
4507
4507
|
}
|
|
4508
4508
|
const b = r && r.getSession();
|
|
4509
4509
|
if (!i && b && this._updateSessionFromEvent(b, h), i) {
|
|
4510
|
-
const m = h.sdkProcessingMetadata && h.sdkProcessingMetadata.spanCountBeforeProcessing || 0, w = h.spans ? h.spans.length : 0,
|
|
4511
|
-
|
|
4510
|
+
const m = h.sdkProcessingMetadata && h.sdkProcessingMetadata.spanCountBeforeProcessing || 0, w = h.spans ? h.spans.length : 0, _ = m - w;
|
|
4511
|
+
_ > 0 && this.recordDroppedEvent("before_send", "span", _);
|
|
4512
4512
|
}
|
|
4513
4513
|
const p = h.transaction_info;
|
|
4514
4514
|
if (i && p && h.transaction !== t.transaction) {
|
|
@@ -4571,7 +4571,7 @@ Reason: ${h}`
|
|
|
4571
4571
|
}
|
|
4572
4572
|
function zh(e, t) {
|
|
4573
4573
|
const n = `${t} must return \`null\` or a valid event.`;
|
|
4574
|
-
if (
|
|
4574
|
+
if (yr(e))
|
|
4575
4575
|
return e.then(
|
|
4576
4576
|
(r) => {
|
|
4577
4577
|
if (!Yt(r) && r !== null)
|
|
@@ -4630,18 +4630,18 @@ function gl(e, t, n = xp(
|
|
|
4630
4630
|
const o = (i) => n.drain(i);
|
|
4631
4631
|
function a(i) {
|
|
4632
4632
|
const s = [];
|
|
4633
|
-
if (
|
|
4634
|
-
const h = bi(
|
|
4633
|
+
if (_i(i, (f, y) => {
|
|
4634
|
+
const h = bi(y);
|
|
4635
4635
|
if (Lp(r, h)) {
|
|
4636
|
-
const b = ji(f,
|
|
4636
|
+
const b = ji(f, y);
|
|
4637
4637
|
e.recordDroppedEvent("ratelimit_backoff", h, b);
|
|
4638
4638
|
} else
|
|
4639
4639
|
s.push(f);
|
|
4640
4640
|
}), s.length === 0)
|
|
4641
4641
|
return Kt();
|
|
4642
4642
|
const l = en(i[0], s), u = (f) => {
|
|
4643
|
-
|
|
4644
|
-
const b = ji(
|
|
4643
|
+
_i(l, (y, h) => {
|
|
4644
|
+
const b = ji(y, h);
|
|
4645
4645
|
e.recordDroppedEvent(f, bi(h), b);
|
|
4646
4646
|
});
|
|
4647
4647
|
}, d = () => t({ body: qp(l, e.textEncoder) }).then(
|
|
@@ -4692,8 +4692,8 @@ const Nh = [
|
|
|
4692
4692
|
/^.*\/heartbeat$/,
|
|
4693
4693
|
/^.*\/health$/,
|
|
4694
4694
|
/^.*\/healthz$/
|
|
4695
|
-
],
|
|
4696
|
-
name:
|
|
4695
|
+
], yl = "InboundFilters", Lh = (e = {}) => ({
|
|
4696
|
+
name: yl,
|
|
4697
4697
|
// TODO v8: Remove this
|
|
4698
4698
|
setupOnce() {
|
|
4699
4699
|
},
|
|
@@ -4702,10 +4702,10 @@ const Nh = [
|
|
|
4702
4702
|
const o = r.getOptions(), a = Oh(e, o);
|
|
4703
4703
|
return Ah(t, a) ? null : t;
|
|
4704
4704
|
}
|
|
4705
|
-
}),
|
|
4705
|
+
}), _l = Lh;
|
|
4706
4706
|
Ct(
|
|
4707
|
-
|
|
4708
|
-
|
|
4707
|
+
yl,
|
|
4708
|
+
_l
|
|
4709
4709
|
);
|
|
4710
4710
|
function Oh(e = {}, t = {}) {
|
|
4711
4711
|
return {
|
|
@@ -4747,25 +4747,25 @@ Url: ${sr(e)}`
|
|
|
4747
4747
|
), !0);
|
|
4748
4748
|
}
|
|
4749
4749
|
function Dh(e, t) {
|
|
4750
|
-
return e.type || !t || !t.length ? !1 : Uh(e).some((n) =>
|
|
4750
|
+
return e.type || !t || !t.length ? !1 : Uh(e).some((n) => _r(n, t));
|
|
4751
4751
|
}
|
|
4752
4752
|
function Fh(e, t) {
|
|
4753
4753
|
if (e.type !== "transaction" || !t || !t.length)
|
|
4754
4754
|
return !1;
|
|
4755
4755
|
const n = e.transaction;
|
|
4756
|
-
return n ?
|
|
4756
|
+
return n ? _r(n, t) : !1;
|
|
4757
4757
|
}
|
|
4758
4758
|
function $h(e, t) {
|
|
4759
4759
|
if (!t || !t.length)
|
|
4760
4760
|
return !1;
|
|
4761
4761
|
const n = sr(e);
|
|
4762
|
-
return n ?
|
|
4762
|
+
return n ? _r(n, t) : !1;
|
|
4763
4763
|
}
|
|
4764
4764
|
function Hh(e, t) {
|
|
4765
4765
|
if (!t || !t.length)
|
|
4766
4766
|
return !0;
|
|
4767
4767
|
const n = sr(e);
|
|
4768
|
-
return n ?
|
|
4768
|
+
return n ? _r(n, t) : !0;
|
|
4769
4769
|
}
|
|
4770
4770
|
function Uh(e) {
|
|
4771
4771
|
const t = [];
|
|
@@ -5080,7 +5080,7 @@ let hn;
|
|
|
5080
5080
|
function a1() {
|
|
5081
5081
|
if (hn)
|
|
5082
5082
|
return hn;
|
|
5083
|
-
if (
|
|
5083
|
+
if (yo(re.fetch))
|
|
5084
5084
|
return hn = re.fetch.bind(re);
|
|
5085
5085
|
const e = re.document;
|
|
5086
5086
|
let t = re.fetch;
|
|
@@ -5177,17 +5177,17 @@ const p1 = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((
|
|
|
5177
5177
|
const [r, o] = El(t[1] || Er, t[2]);
|
|
5178
5178
|
return aa(o, r, t[3] ? +t[3] : void 0, t[4] ? +t[4] : void 0);
|
|
5179
5179
|
}
|
|
5180
|
-
}, g1 = [u1, m1], v1 = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,
|
|
5180
|
+
}, g1 = [u1, m1], v1 = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, y1 = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, _1 = (e) => {
|
|
5181
5181
|
const t = v1.exec(e);
|
|
5182
5182
|
if (t) {
|
|
5183
5183
|
if (t[3] && t[3].indexOf(" > eval") > -1) {
|
|
5184
|
-
const a =
|
|
5184
|
+
const a = y1.exec(t[3]);
|
|
5185
5185
|
a && (t[1] = t[1] || "eval", t[3] = a[1], t[4] = a[2], t[5] = "");
|
|
5186
5186
|
}
|
|
5187
5187
|
let r = t[3], o = t[1] || Er;
|
|
5188
5188
|
return [o, r] = El(o, r), aa(r, o, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
|
|
5189
5189
|
}
|
|
5190
|
-
}, b1 = [f1,
|
|
5190
|
+
}, b1 = [f1, _1], C1 = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i, x1 = (e) => {
|
|
5191
5191
|
const t = C1.exec(e);
|
|
5192
5192
|
return t ? aa(t[2], t[1] || Er, +t[3], t[4] ? +t[4] : void 0) : void 0;
|
|
5193
5193
|
}, w1 = [d1, x1], E1 = [g1, b1, w1], k1 = Gs(...E1), El = (e, t) => {
|
|
@@ -5758,7 +5758,7 @@ function J1(e) {
|
|
|
5758
5758
|
));
|
|
5759
5759
|
}
|
|
5760
5760
|
const Q1 = [
|
|
5761
|
-
|
|
5761
|
+
_l(),
|
|
5762
5762
|
Cl(),
|
|
5763
5763
|
Fl(),
|
|
5764
5764
|
Sl(),
|
|
@@ -5798,7 +5798,7 @@ const Oi = (e = {}, t = tt()) => {
|
|
|
5798
5798
|
...e.user
|
|
5799
5799
|
}), e.eventId || (e.eventId = t.lastEventId());
|
|
5800
5800
|
const a = re.document.createElement("script");
|
|
5801
|
-
a.async = !0, a.crossOrigin = "anonymous", a.src =
|
|
5801
|
+
a.async = !0, a.crossOrigin = "anonymous", a.src = _h(o, e), e.onLoad && (a.onload = e.onLoad);
|
|
5802
5802
|
const { onClose: i } = e;
|
|
5803
5803
|
if (i) {
|
|
5804
5804
|
const l = (u) => {
|
|
@@ -5842,7 +5842,7 @@ var Ai;
|
|
|
5842
5842
|
function om() {
|
|
5843
5843
|
if (Ai) return ie;
|
|
5844
5844
|
Ai = 1;
|
|
5845
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113,
|
|
5845
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
5846
5846
|
function x(C) {
|
|
5847
5847
|
if (typeof C == "object" && C !== null) {
|
|
5848
5848
|
var k = C.$$typeof;
|
|
@@ -5901,7 +5901,7 @@ function om() {
|
|
|
5901
5901
|
}, ie.isSuspense = function(C) {
|
|
5902
5902
|
return x(C) === f;
|
|
5903
5903
|
}, ie.isValidElementType = function(C) {
|
|
5904
|
-
return typeof C == "string" || typeof C == "function" || C === r || C === u || C === a || C === o || C === f || C ===
|
|
5904
|
+
return typeof C == "string" || typeof C == "function" || C === r || C === u || C === a || C === o || C === f || C === y || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === h || C.$$typeof === i || C.$$typeof === s || C.$$typeof === d || C.$$typeof === m || C.$$typeof === w || C.$$typeof === _ || C.$$typeof === p);
|
|
5905
5905
|
}, ie.typeOf = x, ie;
|
|
5906
5906
|
}
|
|
5907
5907
|
var se = {};
|
|
@@ -5916,10 +5916,10 @@ var se = {};
|
|
|
5916
5916
|
var Di;
|
|
5917
5917
|
function am() {
|
|
5918
5918
|
return Di || (Di = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5919
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113,
|
|
5919
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
5920
5920
|
function x(R) {
|
|
5921
5921
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
5922
|
-
R === r || R === u || R === a || R === o || R === f || R ===
|
|
5922
|
+
R === r || R === u || R === a || R === o || R === f || R === y || typeof R == "object" && R !== null && (R.$$typeof === b || R.$$typeof === h || R.$$typeof === i || R.$$typeof === s || R.$$typeof === d || R.$$typeof === m || R.$$typeof === w || R.$$typeof === _ || R.$$typeof === p);
|
|
5923
5923
|
}
|
|
5924
5924
|
function E(R) {
|
|
5925
5925
|
if (typeof R == "object" && R !== null) {
|
|
@@ -6042,17 +6042,17 @@ function sm() {
|
|
|
6042
6042
|
function i(b) {
|
|
6043
6043
|
return e.isMemo(b) ? o : a[b.$$typeof] || t;
|
|
6044
6044
|
}
|
|
6045
|
-
var s = Object.defineProperty, l = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf,
|
|
6045
|
+
var s = Object.defineProperty, l = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, y = Object.prototype;
|
|
6046
6046
|
function h(b, p, m) {
|
|
6047
6047
|
if (typeof p != "string") {
|
|
6048
|
-
if (
|
|
6048
|
+
if (y) {
|
|
6049
6049
|
var w = f(p);
|
|
6050
|
-
w && w !==
|
|
6050
|
+
w && w !== y && h(b, w, m);
|
|
6051
6051
|
}
|
|
6052
|
-
var
|
|
6053
|
-
u && (
|
|
6054
|
-
for (var x = i(b), E = i(p), C = 0; C <
|
|
6055
|
-
var k =
|
|
6052
|
+
var _ = l(p);
|
|
6053
|
+
u && (_ = _.concat(u(p)));
|
|
6054
|
+
for (var x = i(b), E = i(p), C = 0; C < _.length; ++C) {
|
|
6055
|
+
var k = _[C];
|
|
6056
6056
|
if (!n[k] && !(m && m[k]) && !(E && E[k]) && !(x && x[k])) {
|
|
6057
6057
|
var S = d(p, k);
|
|
6058
6058
|
try {
|
|
@@ -6163,16 +6163,16 @@ function Hl(e) {
|
|
|
6163
6163
|
return new Error(`This value was thrown as is, not through an Error: ${t}`);
|
|
6164
6164
|
}
|
|
6165
6165
|
function dm() {
|
|
6166
|
-
return /* @__PURE__ */ c.jsx(
|
|
6166
|
+
return /* @__PURE__ */ c.jsx(_n, { variant: "primary", children: /* @__PURE__ */ c.jsx(Ho, {}) });
|
|
6167
6167
|
}
|
|
6168
6168
|
function fm({ onSuccess: e, onError: t, flowType: n, onRedirectDiscovered: r }) {
|
|
6169
6169
|
const { sdk: o } = qn(), a = Ze(!1);
|
|
6170
|
-
return
|
|
6170
|
+
return ye(() => {
|
|
6171
6171
|
if (o)
|
|
6172
6172
|
return r && (o == null || o.subscribe("redirectUriDiscovered", r)), () => {
|
|
6173
6173
|
r && o.unsubscribe("redirectUriDiscovered", r);
|
|
6174
6174
|
};
|
|
6175
|
-
}, [o]),
|
|
6175
|
+
}, [o]), ye(() => {
|
|
6176
6176
|
if (a.current) return;
|
|
6177
6177
|
async function i() {
|
|
6178
6178
|
try {
|
|
@@ -6223,7 +6223,7 @@ const pm = {
|
|
|
6223
6223
|
}, hm = Qe(pm);
|
|
6224
6224
|
var sa = { color: { background: "var(--sid-color-background)", foreground: "var(--sid-color-foreground)", tertiary: "var(--sid-color-tertiary)" } }, mm = { default: "_1v32gdc2 _1v32gdc1", short: "_1v32gdc3 _1v32gdc1" };
|
|
6225
6225
|
const gm = ({ className: e, variant: t = "default" }) => /* @__PURE__ */ c.jsx("div", { className: ne(mm[t], e) });
|
|
6226
|
-
var vm = { primary: "_154fc2o2 _154fc2o0", secondary: "_154fc2o3 _154fc2o0", secondaryMd: "_154fc2o4 _154fc2o0 _154fc2o1", neutral: "_154fc2o5 _154fc2o0", neutralMd: "_154fc2o6 _154fc2o0 _154fc2o1", ghost: "_154fc2o7 _154fc2o0", ghostMd: "_154fc2o8 _154fc2o0 _154fc2o1" },
|
|
6226
|
+
var vm = { primary: "_154fc2o2 _154fc2o0", secondary: "_154fc2o3 _154fc2o0", secondaryMd: "_154fc2o4 _154fc2o0 _154fc2o1", neutral: "_154fc2o5 _154fc2o0", neutralMd: "_154fc2o6 _154fc2o0 _154fc2o1", ghost: "_154fc2o7 _154fc2o0", ghostMd: "_154fc2o8 _154fc2o0 _154fc2o1" }, ym = "_154fc2o9", _m = "_154fc2oa", bm = { primary: "_154fc2ob", secondary: "_154fc2oc", secondaryMd: "_154fc2od", neutral: "_154fc2oe", neutralMd: "_154fc2of", ghost: "_154fc2og", ghostMd: "_154fc2oh" };
|
|
6227
6227
|
const Pt = Le(
|
|
6228
6228
|
({
|
|
6229
6229
|
children: e,
|
|
@@ -6248,12 +6248,12 @@ const Pt = Le(
|
|
|
6248
6248
|
"sid-button",
|
|
6249
6249
|
`sid-button--${o}`,
|
|
6250
6250
|
vm[o],
|
|
6251
|
-
{ [
|
|
6251
|
+
{ [ym]: s },
|
|
6252
6252
|
n
|
|
6253
6253
|
),
|
|
6254
6254
|
onClick: t,
|
|
6255
6255
|
children: l ? /* @__PURE__ */ c.jsx(gm, { variant: "short", className: bm[o] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6256
|
-
i ? /* @__PURE__ */ c.jsx("i", { className:
|
|
6256
|
+
i ? /* @__PURE__ */ c.jsx("i", { className: _m, children: i }) : null,
|
|
6257
6257
|
e
|
|
6258
6258
|
] })
|
|
6259
6259
|
}
|
|
@@ -7148,7 +7148,7 @@ const Zm = ({
|
|
|
7148
7148
|
onChange: s,
|
|
7149
7149
|
onFlagChange: l
|
|
7150
7150
|
}) => {
|
|
7151
|
-
|
|
7151
|
+
yn(() => {
|
|
7152
7152
|
Bm();
|
|
7153
7153
|
}, []);
|
|
7154
7154
|
const u = Te(
|
|
@@ -7228,16 +7228,16 @@ function Nt(e, t = []) {
|
|
|
7228
7228
|
i
|
|
7229
7229
|
];
|
|
7230
7230
|
function u(f) {
|
|
7231
|
-
const { scope:
|
|
7231
|
+
const { scope: y, children: h, ...b } = f, p = (y == null ? void 0 : y[e][l]) || s, m = we(
|
|
7232
7232
|
() => b,
|
|
7233
7233
|
Object.values(b)
|
|
7234
7234
|
);
|
|
7235
|
-
return /* @__PURE__ */
|
|
7235
|
+
return /* @__PURE__ */ _e(p.Provider, {
|
|
7236
7236
|
value: m
|
|
7237
7237
|
}, h);
|
|
7238
7238
|
}
|
|
7239
|
-
function d(f,
|
|
7240
|
-
const h = (
|
|
7239
|
+
function d(f, y) {
|
|
7240
|
+
const h = (y == null ? void 0 : y[e][l]) || s, b = mr(h);
|
|
7241
7241
|
if (b)
|
|
7242
7242
|
return b;
|
|
7243
7243
|
if (i !== void 0)
|
|
@@ -7318,11 +7318,11 @@ const lr = /* @__PURE__ */ Le((e, t) => {
|
|
|
7318
7318
|
const { children: n, ...r } = e, o = Xe.toArray(n), a = o.find(ng);
|
|
7319
7319
|
if (a) {
|
|
7320
7320
|
const i = a.props.children, s = o.map((l) => l === a ? Xe.count(i) > 1 ? Xe.only(null) : /* @__PURE__ */ or(i) ? i.props.children : null : l);
|
|
7321
|
-
return /* @__PURE__ */
|
|
7321
|
+
return /* @__PURE__ */ _e(So, Ce({}, r, {
|
|
7322
7322
|
ref: t
|
|
7323
7323
|
}), /* @__PURE__ */ or(i) ? /* @__PURE__ */ $o(i, void 0, s) : null);
|
|
7324
7324
|
}
|
|
7325
|
-
return /* @__PURE__ */
|
|
7325
|
+
return /* @__PURE__ */ _e(So, Ce({}, r, {
|
|
7326
7326
|
ref: t
|
|
7327
7327
|
}), n);
|
|
7328
7328
|
});
|
|
@@ -7335,7 +7335,7 @@ const So = /* @__PURE__ */ Le((e, t) => {
|
|
|
7335
7335
|
}) : Xe.count(n) > 1 ? Xe.only(null) : null;
|
|
7336
7336
|
});
|
|
7337
7337
|
So.displayName = "SlotClone";
|
|
7338
|
-
const tg = ({ children: e }) => /* @__PURE__ */
|
|
7338
|
+
const tg = ({ children: e }) => /* @__PURE__ */ _e(sd, null, e);
|
|
7339
7339
|
function ng(e) {
|
|
7340
7340
|
return /* @__PURE__ */ or(e) && e.type === tg;
|
|
7341
7341
|
}
|
|
@@ -7374,21 +7374,21 @@ function Jl(e) {
|
|
|
7374
7374
|
collectionRef: m
|
|
7375
7375
|
}, p);
|
|
7376
7376
|
}, s = e + "CollectionSlot", l = /* @__PURE__ */ $.forwardRef((h, b) => {
|
|
7377
|
-
const { scope: p, children: m } = h, w = a(s, p),
|
|
7377
|
+
const { scope: p, children: m } = h, w = a(s, p), _ = wn(b, w.collectionRef);
|
|
7378
7378
|
return /* @__PURE__ */ $.createElement(lr, {
|
|
7379
|
-
ref:
|
|
7379
|
+
ref: _
|
|
7380
7380
|
}, m);
|
|
7381
7381
|
}), u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = /* @__PURE__ */ $.forwardRef((h, b) => {
|
|
7382
|
-
const { scope: p, children: m, ...w } = h,
|
|
7383
|
-
return $.useEffect(() => (E.itemMap.set(
|
|
7384
|
-
ref:
|
|
7382
|
+
const { scope: p, children: m, ...w } = h, _ = $.useRef(null), x = wn(b, _), E = a(u, p);
|
|
7383
|
+
return $.useEffect(() => (E.itemMap.set(_, {
|
|
7384
|
+
ref: _,
|
|
7385
7385
|
...w
|
|
7386
|
-
}), () => void E.itemMap.delete(
|
|
7386
|
+
}), () => void E.itemMap.delete(_))), /* @__PURE__ */ $.createElement(lr, {
|
|
7387
7387
|
[d]: "",
|
|
7388
7388
|
ref: x
|
|
7389
7389
|
}, m);
|
|
7390
7390
|
});
|
|
7391
|
-
function
|
|
7391
|
+
function y(h) {
|
|
7392
7392
|
const b = a(e + "CollectionConsumer", h);
|
|
7393
7393
|
return $.useCallback(() => {
|
|
7394
7394
|
const p = b.collectionRef.current;
|
|
@@ -7396,7 +7396,7 @@ function Jl(e) {
|
|
|
7396
7396
|
return [];
|
|
7397
7397
|
const m = Array.from(p.querySelectorAll(`[${d}]`));
|
|
7398
7398
|
return Array.from(b.itemMap.values()).sort(
|
|
7399
|
-
(w,
|
|
7399
|
+
(w, _) => m.indexOf(w.ref.current) - m.indexOf(_.ref.current)
|
|
7400
7400
|
);
|
|
7401
7401
|
}, [
|
|
7402
7402
|
b.collectionRef,
|
|
@@ -7409,7 +7409,7 @@ function Jl(e) {
|
|
|
7409
7409
|
Slot: l,
|
|
7410
7410
|
ItemSlot: f
|
|
7411
7411
|
},
|
|
7412
|
-
|
|
7412
|
+
y,
|
|
7413
7413
|
r
|
|
7414
7414
|
];
|
|
7415
7415
|
}
|
|
@@ -7421,7 +7421,7 @@ function Je(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
7421
7421
|
}
|
|
7422
7422
|
function da(e) {
|
|
7423
7423
|
const t = Ze(e);
|
|
7424
|
-
return
|
|
7424
|
+
return ye(() => {
|
|
7425
7425
|
t.current = e;
|
|
7426
7426
|
}), we(
|
|
7427
7427
|
() => (...n) => {
|
|
@@ -7455,7 +7455,7 @@ function Sr({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
function og({ defaultProp: e, onChange: t }) {
|
|
7457
7457
|
const n = ve(e), [r] = n, o = Ze(r), a = da(t);
|
|
7458
|
-
return
|
|
7458
|
+
return ye(() => {
|
|
7459
7459
|
o.current !== r && (a(r), o.current = r);
|
|
7460
7460
|
}, [
|
|
7461
7461
|
r,
|
|
@@ -7483,9 +7483,9 @@ const ag = [
|
|
|
7483
7483
|
], It = ag.reduce((e, t) => {
|
|
7484
7484
|
const n = /* @__PURE__ */ Le((r, o) => {
|
|
7485
7485
|
const { asChild: a, ...i } = r, s = a ? lr : t;
|
|
7486
|
-
return
|
|
7486
|
+
return ye(() => {
|
|
7487
7487
|
window[Symbol.for("radix-ui")] = !0;
|
|
7488
|
-
}, []), /* @__PURE__ */
|
|
7488
|
+
}, []), /* @__PURE__ */ _e(s, Ce({}, i, {
|
|
7489
7489
|
ref: o
|
|
7490
7490
|
}));
|
|
7491
7491
|
});
|
|
@@ -7493,7 +7493,7 @@ const ag = [
|
|
|
7493
7493
|
...e,
|
|
7494
7494
|
[t]: n
|
|
7495
7495
|
};
|
|
7496
|
-
}, {}), qo = globalThis != null && globalThis.document ?
|
|
7496
|
+
}, {}), qo = globalThis != null && globalThis.document ? yn : () => {
|
|
7497
7497
|
};
|
|
7498
7498
|
function ig(e, t) {
|
|
7499
7499
|
return ld((n, r) => t[n][r] ?? n, e);
|
|
@@ -7521,7 +7521,7 @@ function sg(e) {
|
|
|
7521
7521
|
MOUNT: "mounted"
|
|
7522
7522
|
}
|
|
7523
7523
|
});
|
|
7524
|
-
return
|
|
7524
|
+
return ye(() => {
|
|
7525
7525
|
const u = Vn(r.current);
|
|
7526
7526
|
a.current = s === "mounted" ? u : "none";
|
|
7527
7527
|
}, [
|
|
@@ -7529,8 +7529,8 @@ function sg(e) {
|
|
|
7529
7529
|
]), qo(() => {
|
|
7530
7530
|
const u = r.current, d = o.current;
|
|
7531
7531
|
if (d !== e) {
|
|
7532
|
-
const f = a.current,
|
|
7533
|
-
e ? l("MOUNT") :
|
|
7532
|
+
const f = a.current, y = Vn(u);
|
|
7533
|
+
e ? l("MOUNT") : y === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(d && f !== y ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
7534
7534
|
}
|
|
7535
7535
|
}, [
|
|
7536
7536
|
e,
|
|
@@ -7538,8 +7538,8 @@ function sg(e) {
|
|
|
7538
7538
|
]), qo(() => {
|
|
7539
7539
|
if (t) {
|
|
7540
7540
|
const u = (f) => {
|
|
7541
|
-
const
|
|
7542
|
-
f.target === t &&
|
|
7541
|
+
const y = Vn(r.current).includes(f.animationName);
|
|
7542
|
+
f.target === t && y && dd(
|
|
7543
7543
|
() => l("ANIMATION_END")
|
|
7544
7544
|
);
|
|
7545
7545
|
}, d = (f) => {
|
|
@@ -7662,7 +7662,7 @@ const [oc, c5] = qr(Rn), [ac, u5] = qr(Rn, {
|
|
|
7662
7662
|
), u = $.useCallback(
|
|
7663
7663
|
(d) => s(
|
|
7664
7664
|
(f = []) => f.filter(
|
|
7665
|
-
(
|
|
7665
|
+
(y) => y !== d
|
|
7666
7666
|
)
|
|
7667
7667
|
),
|
|
7668
7668
|
[
|
|
@@ -7680,12 +7680,12 @@ const [oc, c5] = qr(Rn), [ac, u5] = qr(Rn, {
|
|
|
7680
7680
|
}, /* @__PURE__ */ $.createElement(ic, Ce({}, a, {
|
|
7681
7681
|
ref: t
|
|
7682
7682
|
}))));
|
|
7683
|
-
}), [
|
|
7684
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: a = "vertical", ...i } = e, s = $.useRef(null), l = wn(s, t), u = pg(n), d = fa(o) === "ltr", f = Je(e.onKeyDown, (
|
|
7683
|
+
}), [yg, d5] = qr(Rn), ic = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
7684
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: a = "vertical", ...i } = e, s = $.useRef(null), l = wn(s, t), u = pg(n), d = fa(o) === "ltr", f = Je(e.onKeyDown, (y) => {
|
|
7685
7685
|
var h;
|
|
7686
|
-
if (!fg.includes(
|
|
7686
|
+
if (!fg.includes(y.key))
|
|
7687
7687
|
return;
|
|
7688
|
-
const b =
|
|
7688
|
+
const b = y.target, p = u().filter((N) => {
|
|
7689
7689
|
var O;
|
|
7690
7690
|
return !((O = N.ref.current) !== null && O !== void 0 && O.disabled);
|
|
7691
7691
|
}), m = p.findIndex(
|
|
@@ -7693,19 +7693,19 @@ const [oc, c5] = qr(Rn), [ac, u5] = qr(Rn, {
|
|
|
7693
7693
|
), w = p.length;
|
|
7694
7694
|
if (m === -1)
|
|
7695
7695
|
return;
|
|
7696
|
-
|
|
7697
|
-
let
|
|
7696
|
+
y.preventDefault();
|
|
7697
|
+
let _ = m;
|
|
7698
7698
|
const x = 0, E = w - 1, C = () => {
|
|
7699
|
-
|
|
7699
|
+
_ = m + 1, _ > E && (_ = x);
|
|
7700
7700
|
}, k = () => {
|
|
7701
|
-
|
|
7701
|
+
_ = m - 1, _ < x && (_ = E);
|
|
7702
7702
|
};
|
|
7703
|
-
switch (
|
|
7703
|
+
switch (y.key) {
|
|
7704
7704
|
case "Home":
|
|
7705
|
-
|
|
7705
|
+
_ = x;
|
|
7706
7706
|
break;
|
|
7707
7707
|
case "End":
|
|
7708
|
-
|
|
7708
|
+
_ = E;
|
|
7709
7709
|
break;
|
|
7710
7710
|
case "ArrowRight":
|
|
7711
7711
|
a === "horizontal" && (d ? C() : k());
|
|
@@ -7720,10 +7720,10 @@ const [oc, c5] = qr(Rn), [ac, u5] = qr(Rn, {
|
|
|
7720
7720
|
a === "vertical" && k();
|
|
7721
7721
|
break;
|
|
7722
7722
|
}
|
|
7723
|
-
const S =
|
|
7723
|
+
const S = _ % w;
|
|
7724
7724
|
(h = p[S].ref.current) === null || h === void 0 || h.focus();
|
|
7725
7725
|
});
|
|
7726
|
-
return /* @__PURE__ */ $.createElement(
|
|
7726
|
+
return /* @__PURE__ */ $.createElement(yg, {
|
|
7727
7727
|
scope: n,
|
|
7728
7728
|
disabled: r,
|
|
7729
7729
|
direction: o,
|
|
@@ -7735,7 +7735,7 @@ const [oc, c5] = qr(Rn), [ac, u5] = qr(Rn, {
|
|
|
7735
7735
|
ref: l,
|
|
7736
7736
|
onKeyDown: r ? void 0 : f
|
|
7737
7737
|
}))));
|
|
7738
|
-
}),
|
|
7738
|
+
}), _g = "AccordionItem", [f5, p5] = qr(_g);
|
|
7739
7739
|
var Se = function() {
|
|
7740
7740
|
return Se = Object.assign || function(e) {
|
|
7741
7741
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
@@ -7874,7 +7874,7 @@ var fc = cc(), Zr = function() {
|
|
|
7874
7874
|
onScrollCapture: Zr,
|
|
7875
7875
|
onWheelCapture: Zr,
|
|
7876
7876
|
onTouchMoveCapture: Zr
|
|
7877
|
-
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards,
|
|
7877
|
+
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, y = e.sideCar, h = e.noIsolation, b = e.inert, p = e.allowPinchZoom, m = e.as, w = m === void 0 ? "div" : m, _ = pa(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = y, E = lc([n, t]), C = Se(Se({}, _), o);
|
|
7878
7878
|
return g.createElement(
|
|
7879
7879
|
g.Fragment,
|
|
7880
7880
|
null,
|
|
@@ -8075,16 +8075,16 @@ var At = zo ? { passive: !1 } : !1, Ag = function(e) {
|
|
|
8075
8075
|
}, Ug = function(e, t) {
|
|
8076
8076
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
8077
8077
|
}, Bg = function(e, t, n, r, o) {
|
|
8078
|
-
var a = Ug(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), u = !1, d = i > 0, f = 0,
|
|
8078
|
+
var a = Ug(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), u = !1, d = i > 0, f = 0, y = 0;
|
|
8079
8079
|
do {
|
|
8080
8080
|
var h = gc(e, s), b = h[0], p = h[1], m = h[2], w = p - m - a * b;
|
|
8081
|
-
(b || w) && mc(e, s) && (f += w,
|
|
8081
|
+
(b || w) && mc(e, s) && (f += w, y += b), s = s.parentNode;
|
|
8082
8082
|
} while (
|
|
8083
8083
|
// portaled content
|
|
8084
8084
|
!l && s !== document.body || // self content
|
|
8085
8085
|
l && (t.contains(s) || t === s)
|
|
8086
8086
|
);
|
|
8087
|
-
return (d && f === 0 || !d &&
|
|
8087
|
+
return (d && f === 0 || !d && y === 0) && (u = !0), u;
|
|
8088
8088
|
}, Wn = function(e) {
|
|
8089
8089
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
8090
8090
|
}, Ki = function(e) {
|
|
@@ -8121,7 +8121,7 @@ function Yg(e) {
|
|
|
8121
8121
|
var s = g.useCallback(function(p, m) {
|
|
8122
8122
|
if ("touches" in p && p.touches.length === 2)
|
|
8123
8123
|
return !i.current.allowPinchZoom;
|
|
8124
|
-
var w = Wn(p),
|
|
8124
|
+
var w = Wn(p), _ = n.current, x = "deltaX" in p ? p.deltaX : _[0] - w[0], E = "deltaY" in p ? p.deltaY : _[1] - w[1], C, k = p.target, S = Math.abs(x) > Math.abs(E) ? "h" : "v";
|
|
8125
8125
|
if ("touches" in p && S === "h" && k.type === "range")
|
|
8126
8126
|
return !1;
|
|
8127
8127
|
var N = Yi(S, k);
|
|
@@ -8136,22 +8136,22 @@ function Yg(e) {
|
|
|
8136
8136
|
}, []), l = g.useCallback(function(p) {
|
|
8137
8137
|
var m = p;
|
|
8138
8138
|
if (!(!Dt.length || Dt[Dt.length - 1] !== a)) {
|
|
8139
|
-
var w = "deltaY" in m ? Ki(m) : Wn(m),
|
|
8139
|
+
var w = "deltaY" in m ? Ki(m) : Wn(m), _ = t.current.filter(function(C) {
|
|
8140
8140
|
return C.name === m.type && C.target === m.target && Vg(C.delta, w);
|
|
8141
8141
|
})[0];
|
|
8142
|
-
if (
|
|
8142
|
+
if (_ && _.should) {
|
|
8143
8143
|
m.cancelable && m.preventDefault();
|
|
8144
8144
|
return;
|
|
8145
8145
|
}
|
|
8146
|
-
if (!
|
|
8146
|
+
if (!_) {
|
|
8147
8147
|
var x = (i.current.shards || []).map(Zi).filter(Boolean).filter(function(C) {
|
|
8148
8148
|
return C.contains(m.target);
|
|
8149
8149
|
}), E = x.length > 0 ? s(m, x[0]) : !i.current.noIsolation;
|
|
8150
8150
|
E && m.cancelable && m.preventDefault();
|
|
8151
8151
|
}
|
|
8152
8152
|
}
|
|
8153
|
-
}, []), u = g.useCallback(function(p, m, w,
|
|
8154
|
-
var x = { name: p, delta: m, target: w, should:
|
|
8153
|
+
}, []), u = g.useCallback(function(p, m, w, _) {
|
|
8154
|
+
var x = { name: p, delta: m, target: w, should: _ };
|
|
8155
8155
|
t.current.push(x), setTimeout(function() {
|
|
8156
8156
|
t.current = t.current.filter(function(E) {
|
|
8157
8157
|
return E !== x;
|
|
@@ -8161,14 +8161,14 @@ function Yg(e) {
|
|
|
8161
8161
|
n.current = Wn(p), r.current = void 0;
|
|
8162
8162
|
}, []), f = g.useCallback(function(p) {
|
|
8163
8163
|
u(p.type, Ki(p), p.target, s(p, e.lockRef.current));
|
|
8164
|
-
}, []),
|
|
8164
|
+
}, []), y = g.useCallback(function(p) {
|
|
8165
8165
|
u(p.type, Wn(p), p.target, s(p, e.lockRef.current));
|
|
8166
8166
|
}, []);
|
|
8167
8167
|
g.useEffect(function() {
|
|
8168
8168
|
return Dt.push(a), e.setCallbacks({
|
|
8169
8169
|
onScrollCapture: f,
|
|
8170
8170
|
onWheelCapture: f,
|
|
8171
|
-
onTouchMoveCapture:
|
|
8171
|
+
onTouchMoveCapture: y
|
|
8172
8172
|
}), document.addEventListener("wheel", l, At), document.addEventListener("touchmove", l, At), document.addEventListener("touchstart", d, At), function() {
|
|
8173
8173
|
Dt = Dt.filter(function(p) {
|
|
8174
8174
|
return p !== a;
|
|
@@ -8212,19 +8212,19 @@ var Xg = function(e) {
|
|
|
8212
8212
|
};
|
|
8213
8213
|
o.forEach(u);
|
|
8214
8214
|
var d = function(f) {
|
|
8215
|
-
!f || l.has(f) || Array.prototype.forEach.call(f.children, function(
|
|
8216
|
-
if (s.has(
|
|
8217
|
-
d(
|
|
8215
|
+
!f || l.has(f) || Array.prototype.forEach.call(f.children, function(y) {
|
|
8216
|
+
if (s.has(y))
|
|
8217
|
+
d(y);
|
|
8218
8218
|
else {
|
|
8219
|
-
var h =
|
|
8220
|
-
Ft.set(
|
|
8219
|
+
var h = y.getAttribute(r), b = h !== null && h !== "false", p = (Ft.get(y) || 0) + 1, m = (a.get(y) || 0) + 1;
|
|
8220
|
+
Ft.set(y, p), a.set(y, m), i.push(y), p === 1 && b && Yn.set(y, !0), m === 1 && y.setAttribute(n, "true"), b || y.setAttribute(r, "true");
|
|
8221
8221
|
}
|
|
8222
8222
|
});
|
|
8223
8223
|
};
|
|
8224
8224
|
return d(t), s.clear(), Jr++, function() {
|
|
8225
8225
|
i.forEach(function(f) {
|
|
8226
|
-
var
|
|
8227
|
-
Ft.set(f,
|
|
8226
|
+
var y = Ft.get(f) - 1, h = a.get(f) - 1;
|
|
8227
|
+
Ft.set(f, y), a.set(f, h), y || (Yn.has(f) || f.removeAttribute(r), Yn.delete(f)), h || f.removeAttribute(n);
|
|
8228
8228
|
}), Jr--, Jr || (Ft = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Kn = {});
|
|
8229
8229
|
};
|
|
8230
8230
|
}, ev = function(e, t, n) {
|
|
@@ -8234,9 +8234,9 @@ var Xg = function(e) {
|
|
|
8234
8234
|
return null;
|
|
8235
8235
|
};
|
|
8236
8236
|
};
|
|
8237
|
-
const
|
|
8237
|
+
const yc = "Dialog", [_c, h5] = Nt(yc), [m5, g5] = _c(yc), tv = "DialogPortal", [v5, y5] = _c(tv, {
|
|
8238
8238
|
forceMount: void 0
|
|
8239
|
-
}), bc = "Switch", [nv,
|
|
8239
|
+
}), bc = "Switch", [nv, _5] = Nt(bc), [b5, C5] = nv(bc);
|
|
8240
8240
|
var rv = "q9c0is3", ov = "q9c0is5", av = { blue: "q9c0is6 q9c0is4", red: "q9c0is7 q9c0is4", primary: "q9c0is8 q9c0is4", grey: "q9c0is9 q9c0is4" }, iv = "q9c0isb", sv = { blue: "q9c0isc q9c0isa", red: "q9c0isd q9c0isa", primary: "q9c0ise q9c0isa", grey: "q9c0isf q9c0isa" }, lv = "q9c0ish", cv = { blue: "q9c0isi q9c0isg", red: "q9c0isj q9c0isg", primary: "q9c0isk q9c0isg", grey: "q9c0isl q9c0isg" }, uv = "q9c0ism";
|
|
8241
8241
|
const dv = ({
|
|
8242
8242
|
children: e,
|
|
@@ -8370,21 +8370,21 @@ function Qr(e) {
|
|
|
8370
8370
|
}
|
|
8371
8371
|
return e;
|
|
8372
8372
|
}
|
|
8373
|
-
var
|
|
8373
|
+
var yv = (e) => function() {
|
|
8374
8374
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
8375
8375
|
n[r] = arguments[r];
|
|
8376
8376
|
var o = Object.assign({}, ...n.map((l) => l.styles)), a = Object.keys(o), i = a.filter((l) => "mappings" in o[l]), s = (l) => {
|
|
8377
|
-
var u = [], d = {}, f = Qr({}, l),
|
|
8377
|
+
var u = [], d = {}, f = Qr({}, l), y = !1;
|
|
8378
8378
|
for (var h of i) {
|
|
8379
8379
|
var b = l[h];
|
|
8380
8380
|
if (b != null) {
|
|
8381
8381
|
var p = o[h];
|
|
8382
|
-
|
|
8382
|
+
y = !0;
|
|
8383
8383
|
for (var m of p.mappings)
|
|
8384
8384
|
d[m] = b, f[m] == null && delete f[m];
|
|
8385
8385
|
}
|
|
8386
8386
|
}
|
|
8387
|
-
var w =
|
|
8387
|
+
var w = y ? Qr(Qr({}, d), f) : l, _ = function() {
|
|
8388
8388
|
var C = w[x], k = o[x];
|
|
8389
8389
|
try {
|
|
8390
8390
|
if (k.mappings)
|
|
@@ -8449,14 +8449,14 @@ var _v = (e) => function() {
|
|
|
8449
8449
|
}
|
|
8450
8450
|
};
|
|
8451
8451
|
for (var x in w)
|
|
8452
|
-
var E =
|
|
8452
|
+
var E = _();
|
|
8453
8453
|
return e(u.join(" "));
|
|
8454
8454
|
};
|
|
8455
8455
|
return Object.assign(s, {
|
|
8456
8456
|
properties: new Set(a)
|
|
8457
8457
|
});
|
|
8458
|
-
},
|
|
8459
|
-
return _v
|
|
8458
|
+
}, _v = (e) => e, bv = function() {
|
|
8459
|
+
return yv(_v)(...arguments);
|
|
8460
8460
|
}, it = bv({ conditions: { defaultCondition: "lightMode", conditionNames: ["lightMode", "darkMode"], responsiveArray: void 0 }, styles: { color: { values: { background: { conditions: { lightMode: "kqvzqt0", darkMode: "kqvzqt1" }, defaultClass: "kqvzqt0" }, mute: { conditions: { lightMode: "kqvzqt2", darkMode: "kqvzqt3" }, defaultClass: "kqvzqt2" }, panel: { conditions: { lightMode: "kqvzqt4", darkMode: "kqvzqt5" }, defaultClass: "kqvzqt4" }, foreground: { conditions: { lightMode: "kqvzqt6", darkMode: "kqvzqt7" }, defaultClass: "kqvzqt6" }, contrast: { conditions: { lightMode: "kqvzqt8", darkMode: "kqvzqt9" }, defaultClass: "kqvzqt8" }, secondary: { conditions: { lightMode: "kqvzqta", darkMode: "kqvzqtb" }, defaultClass: "kqvzqta" }, tertiary: { conditions: { lightMode: "kqvzqtc", darkMode: "kqvzqtd" }, defaultClass: "kqvzqtc" }, placeholder: { conditions: { lightMode: "kqvzqte", darkMode: "kqvzqtf" }, defaultClass: "kqvzqte" }, smooth: { conditions: { lightMode: "kqvzqtg", darkMode: "kqvzqth" }, defaultClass: "kqvzqtg" }, subtle: { conditions: { lightMode: "kqvzqti", darkMode: "kqvzqtj" }, defaultClass: "kqvzqti" }, soft: { conditions: { lightMode: "kqvzqtk", darkMode: "kqvzqtl" }, defaultClass: "kqvzqtk" }, offset: { conditions: { lightMode: "kqvzqtm", darkMode: "kqvzqtn" }, defaultClass: "kqvzqtm" }, primary: { conditions: { lightMode: "kqvzqto", darkMode: "kqvzqtp" }, defaultClass: "kqvzqto" }, primaryHover: { conditions: { lightMode: "kqvzqtq", darkMode: "kqvzqtr" }, defaultClass: "kqvzqtq" }, transparent: { conditions: { lightMode: "kqvzqts", darkMode: "kqvzqtt" }, defaultClass: "kqvzqts" }, error: { conditions: { lightMode: "kqvzqtu", darkMode: "kqvzqtv" }, defaultClass: "kqvzqtu" }, auxiliary: { conditions: { lightMode: "kqvzqtw", darkMode: "kqvzqtx" }, defaultClass: "kqvzqtw" }, success: { conditions: { lightMode: "kqvzqty", darkMode: "kqvzqtz" }, defaultClass: "kqvzqty" }, foregroundSuccess: { conditions: { lightMode: "kqvzqt10", darkMode: "kqvzqt11" }, defaultClass: "kqvzqt10" }, backgroundSuccess: { conditions: { lightMode: "kqvzqt12", darkMode: "kqvzqt13" }, defaultClass: "kqvzqt12" }, failure: { conditions: { lightMode: "kqvzqt14", darkMode: "kqvzqt15" }, defaultClass: "kqvzqt14" }, foregroundFailure: { conditions: { lightMode: "kqvzqt16", darkMode: "kqvzqt17" }, defaultClass: "kqvzqt16" }, backgroundFailure: { conditions: { lightMode: "kqvzqt18", darkMode: "kqvzqt19" }, defaultClass: "kqvzqt18" } } }, backgroundColor: { values: { background: { conditions: { lightMode: "kqvzqt1a", darkMode: "kqvzqt1b" }, defaultClass: "kqvzqt1a" }, mute: { conditions: { lightMode: "kqvzqt1c", darkMode: "kqvzqt1d" }, defaultClass: "kqvzqt1c" }, panel: { conditions: { lightMode: "kqvzqt1e", darkMode: "kqvzqt1f" }, defaultClass: "kqvzqt1e" }, foreground: { conditions: { lightMode: "kqvzqt1g", darkMode: "kqvzqt1h" }, defaultClass: "kqvzqt1g" }, contrast: { conditions: { lightMode: "kqvzqt1i", darkMode: "kqvzqt1j" }, defaultClass: "kqvzqt1i" }, secondary: { conditions: { lightMode: "kqvzqt1k", darkMode: "kqvzqt1l" }, defaultClass: "kqvzqt1k" }, tertiary: { conditions: { lightMode: "kqvzqt1m", darkMode: "kqvzqt1n" }, defaultClass: "kqvzqt1m" }, placeholder: { conditions: { lightMode: "kqvzqt1o", darkMode: "kqvzqt1p" }, defaultClass: "kqvzqt1o" }, smooth: { conditions: { lightMode: "kqvzqt1q", darkMode: "kqvzqt1r" }, defaultClass: "kqvzqt1q" }, subtle: { conditions: { lightMode: "kqvzqt1s", darkMode: "kqvzqt1t" }, defaultClass: "kqvzqt1s" }, soft: { conditions: { lightMode: "kqvzqt1u", darkMode: "kqvzqt1v" }, defaultClass: "kqvzqt1u" }, offset: { conditions: { lightMode: "kqvzqt1w", darkMode: "kqvzqt1x" }, defaultClass: "kqvzqt1w" }, primary: { conditions: { lightMode: "kqvzqt1y", darkMode: "kqvzqt1z" }, defaultClass: "kqvzqt1y" }, primaryHover: { conditions: { lightMode: "kqvzqt20", darkMode: "kqvzqt21" }, defaultClass: "kqvzqt20" }, transparent: { conditions: { lightMode: "kqvzqt22", darkMode: "kqvzqt23" }, defaultClass: "kqvzqt22" }, error: { conditions: { lightMode: "kqvzqt24", darkMode: "kqvzqt25" }, defaultClass: "kqvzqt24" }, auxiliary: { conditions: { lightMode: "kqvzqt26", darkMode: "kqvzqt27" }, defaultClass: "kqvzqt26" }, success: { conditions: { lightMode: "kqvzqt28", darkMode: "kqvzqt29" }, defaultClass: "kqvzqt28" }, foregroundSuccess: { conditions: { lightMode: "kqvzqt2a", darkMode: "kqvzqt2b" }, defaultClass: "kqvzqt2a" }, backgroundSuccess: { conditions: { lightMode: "kqvzqt2c", darkMode: "kqvzqt2d" }, defaultClass: "kqvzqt2c" }, failure: { conditions: { lightMode: "kqvzqt2e", darkMode: "kqvzqt2f" }, defaultClass: "kqvzqt2e" }, foregroundFailure: { conditions: { lightMode: "kqvzqt2g", darkMode: "kqvzqt2h" }, defaultClass: "kqvzqt2g" }, backgroundFailure: { conditions: { lightMode: "kqvzqt2i", darkMode: "kqvzqt2j" }, defaultClass: "kqvzqt2i" } } } } }, { conditions: void 0, styles: { marginY: { mappings: ["marginTop", "marginBottom"] }, marginX: { mappings: ["marginLeft", "marginRight"] }, gap: { values: { 0: { defaultClass: "kqvzqt2k" }, 1: { defaultClass: "kqvzqt2l" }, 2: { defaultClass: "kqvzqt2m" }, 3: { defaultClass: "kqvzqt2n" }, 4: { defaultClass: "kqvzqt2o" }, 5: { defaultClass: "kqvzqt2p" }, 6: { defaultClass: "kqvzqt2q" }, 7: { defaultClass: "kqvzqt2r" }, 8: { defaultClass: "kqvzqt2s" }, 9: { defaultClass: "kqvzqt2t" }, 10: { defaultClass: "kqvzqt2u" }, 11: { defaultClass: "kqvzqt2v" }, 12: { defaultClass: "kqvzqt2w" }, 13: { defaultClass: "kqvzqt2x" }, 14: { defaultClass: "kqvzqt2y" }, 15: { defaultClass: "kqvzqt2z" }, 16: { defaultClass: "kqvzqt30" }, 20: { defaultClass: "kqvzqt31" }, 24: { defaultClass: "kqvzqt32" }, 28: { defaultClass: "kqvzqt33" }, 32: { defaultClass: "kqvzqt34" }, 36: { defaultClass: "kqvzqt35" }, 40: { defaultClass: "kqvzqt36" }, 44: { defaultClass: "kqvzqt37" }, 48: { defaultClass: "kqvzqt38" }, 52: { defaultClass: "kqvzqt39" }, 56: { defaultClass: "kqvzqt3a" }, 60: { defaultClass: "kqvzqt3b" }, 64: { defaultClass: "kqvzqt3c" }, 68: { defaultClass: "kqvzqt3d" }, 72: { defaultClass: "kqvzqt3e" }, 76: { defaultClass: "kqvzqt3f" }, 80: { defaultClass: "kqvzqt3g" }, 96: { defaultClass: "kqvzqt3h" }, px: { defaultClass: "kqvzqt3i" }, "0.25": { defaultClass: "kqvzqt3j" }, "0.5": { defaultClass: "kqvzqt3k" }, "0.75": { defaultClass: "kqvzqt3l" }, "1.5": { defaultClass: "kqvzqt3m" }, "2.5": { defaultClass: "kqvzqt3n" }, "3.5": { defaultClass: "kqvzqt3o" } } }, marginTop: { values: { 0: { defaultClass: "kqvzqt3p" }, 1: { defaultClass: "kqvzqt3q" }, 2: { defaultClass: "kqvzqt3r" }, 3: { defaultClass: "kqvzqt3s" }, 4: { defaultClass: "kqvzqt3t" }, 5: { defaultClass: "kqvzqt3u" }, 6: { defaultClass: "kqvzqt3v" }, 7: { defaultClass: "kqvzqt3w" }, 8: { defaultClass: "kqvzqt3x" }, 9: { defaultClass: "kqvzqt3y" }, 10: { defaultClass: "kqvzqt3z" }, 11: { defaultClass: "kqvzqt40" }, 12: { defaultClass: "kqvzqt41" }, 13: { defaultClass: "kqvzqt42" }, 14: { defaultClass: "kqvzqt43" }, 15: { defaultClass: "kqvzqt44" }, 16: { defaultClass: "kqvzqt45" }, 20: { defaultClass: "kqvzqt46" }, 24: { defaultClass: "kqvzqt47" }, 28: { defaultClass: "kqvzqt48" }, 32: { defaultClass: "kqvzqt49" }, 36: { defaultClass: "kqvzqt4a" }, 40: { defaultClass: "kqvzqt4b" }, 44: { defaultClass: "kqvzqt4c" }, 48: { defaultClass: "kqvzqt4d" }, 52: { defaultClass: "kqvzqt4e" }, 56: { defaultClass: "kqvzqt4f" }, 60: { defaultClass: "kqvzqt4g" }, 64: { defaultClass: "kqvzqt4h" }, 68: { defaultClass: "kqvzqt4i" }, 72: { defaultClass: "kqvzqt4j" }, 76: { defaultClass: "kqvzqt4k" }, 80: { defaultClass: "kqvzqt4l" }, 96: { defaultClass: "kqvzqt4m" }, px: { defaultClass: "kqvzqt4n" }, "0.25": { defaultClass: "kqvzqt4o" }, "0.5": { defaultClass: "kqvzqt4p" }, "0.75": { defaultClass: "kqvzqt4q" }, "1.5": { defaultClass: "kqvzqt4r" }, "2.5": { defaultClass: "kqvzqt4s" }, "3.5": { defaultClass: "kqvzqt4t" } } }, marginBottom: { values: { 0: { defaultClass: "kqvzqt4u" }, 1: { defaultClass: "kqvzqt4v" }, 2: { defaultClass: "kqvzqt4w" }, 3: { defaultClass: "kqvzqt4x" }, 4: { defaultClass: "kqvzqt4y" }, 5: { defaultClass: "kqvzqt4z" }, 6: { defaultClass: "kqvzqt50" }, 7: { defaultClass: "kqvzqt51" }, 8: { defaultClass: "kqvzqt52" }, 9: { defaultClass: "kqvzqt53" }, 10: { defaultClass: "kqvzqt54" }, 11: { defaultClass: "kqvzqt55" }, 12: { defaultClass: "kqvzqt56" }, 13: { defaultClass: "kqvzqt57" }, 14: { defaultClass: "kqvzqt58" }, 15: { defaultClass: "kqvzqt59" }, 16: { defaultClass: "kqvzqt5a" }, 20: { defaultClass: "kqvzqt5b" }, 24: { defaultClass: "kqvzqt5c" }, 28: { defaultClass: "kqvzqt5d" }, 32: { defaultClass: "kqvzqt5e" }, 36: { defaultClass: "kqvzqt5f" }, 40: { defaultClass: "kqvzqt5g" }, 44: { defaultClass: "kqvzqt5h" }, 48: { defaultClass: "kqvzqt5i" }, 52: { defaultClass: "kqvzqt5j" }, 56: { defaultClass: "kqvzqt5k" }, 60: { defaultClass: "kqvzqt5l" }, 64: { defaultClass: "kqvzqt5m" }, 68: { defaultClass: "kqvzqt5n" }, 72: { defaultClass: "kqvzqt5o" }, 76: { defaultClass: "kqvzqt5p" }, 80: { defaultClass: "kqvzqt5q" }, 96: { defaultClass: "kqvzqt5r" }, px: { defaultClass: "kqvzqt5s" }, "0.25": { defaultClass: "kqvzqt5t" }, "0.5": { defaultClass: "kqvzqt5u" }, "0.75": { defaultClass: "kqvzqt5v" }, "1.5": { defaultClass: "kqvzqt5w" }, "2.5": { defaultClass: "kqvzqt5x" }, "3.5": { defaultClass: "kqvzqt5y" } } }, marginLeft: { values: { 0: { defaultClass: "kqvzqt5z" }, 1: { defaultClass: "kqvzqt60" }, 2: { defaultClass: "kqvzqt61" }, 3: { defaultClass: "kqvzqt62" }, 4: { defaultClass: "kqvzqt63" }, 5: { defaultClass: "kqvzqt64" }, 6: { defaultClass: "kqvzqt65" }, 7: { defaultClass: "kqvzqt66" }, 8: { defaultClass: "kqvzqt67" }, 9: { defaultClass: "kqvzqt68" }, 10: { defaultClass: "kqvzqt69" }, 11: { defaultClass: "kqvzqt6a" }, 12: { defaultClass: "kqvzqt6b" }, 13: { defaultClass: "kqvzqt6c" }, 14: { defaultClass: "kqvzqt6d" }, 15: { defaultClass: "kqvzqt6e" }, 16: { defaultClass: "kqvzqt6f" }, 20: { defaultClass: "kqvzqt6g" }, 24: { defaultClass: "kqvzqt6h" }, 28: { defaultClass: "kqvzqt6i" }, 32: { defaultClass: "kqvzqt6j" }, 36: { defaultClass: "kqvzqt6k" }, 40: { defaultClass: "kqvzqt6l" }, 44: { defaultClass: "kqvzqt6m" }, 48: { defaultClass: "kqvzqt6n" }, 52: { defaultClass: "kqvzqt6o" }, 56: { defaultClass: "kqvzqt6p" }, 60: { defaultClass: "kqvzqt6q" }, 64: { defaultClass: "kqvzqt6r" }, 68: { defaultClass: "kqvzqt6s" }, 72: { defaultClass: "kqvzqt6t" }, 76: { defaultClass: "kqvzqt6u" }, 80: { defaultClass: "kqvzqt6v" }, 96: { defaultClass: "kqvzqt6w" }, px: { defaultClass: "kqvzqt6x" }, "0.25": { defaultClass: "kqvzqt6y" }, "0.5": { defaultClass: "kqvzqt6z" }, "0.75": { defaultClass: "kqvzqt70" }, "1.5": { defaultClass: "kqvzqt71" }, "2.5": { defaultClass: "kqvzqt72" }, "3.5": { defaultClass: "kqvzqt73" } } }, marginRight: { values: { 0: { defaultClass: "kqvzqt74" }, 1: { defaultClass: "kqvzqt75" }, 2: { defaultClass: "kqvzqt76" }, 3: { defaultClass: "kqvzqt77" }, 4: { defaultClass: "kqvzqt78" }, 5: { defaultClass: "kqvzqt79" }, 6: { defaultClass: "kqvzqt7a" }, 7: { defaultClass: "kqvzqt7b" }, 8: { defaultClass: "kqvzqt7c" }, 9: { defaultClass: "kqvzqt7d" }, 10: { defaultClass: "kqvzqt7e" }, 11: { defaultClass: "kqvzqt7f" }, 12: { defaultClass: "kqvzqt7g" }, 13: { defaultClass: "kqvzqt7h" }, 14: { defaultClass: "kqvzqt7i" }, 15: { defaultClass: "kqvzqt7j" }, 16: { defaultClass: "kqvzqt7k" }, 20: { defaultClass: "kqvzqt7l" }, 24: { defaultClass: "kqvzqt7m" }, 28: { defaultClass: "kqvzqt7n" }, 32: { defaultClass: "kqvzqt7o" }, 36: { defaultClass: "kqvzqt7p" }, 40: { defaultClass: "kqvzqt7q" }, 44: { defaultClass: "kqvzqt7r" }, 48: { defaultClass: "kqvzqt7s" }, 52: { defaultClass: "kqvzqt7t" }, 56: { defaultClass: "kqvzqt7u" }, 60: { defaultClass: "kqvzqt7v" }, 64: { defaultClass: "kqvzqt7w" }, 68: { defaultClass: "kqvzqt7x" }, 72: { defaultClass: "kqvzqt7y" }, 76: { defaultClass: "kqvzqt7z" }, 80: { defaultClass: "kqvzqt80" }, 96: { defaultClass: "kqvzqt81" }, px: { defaultClass: "kqvzqt82" }, "0.25": { defaultClass: "kqvzqt83" }, "0.5": { defaultClass: "kqvzqt84" }, "0.75": { defaultClass: "kqvzqt85" }, "1.5": { defaultClass: "kqvzqt86" }, "2.5": { defaultClass: "kqvzqt87" }, "3.5": { defaultClass: "kqvzqt88" } } } } }), Cv = hv({ defaultClassName: "_1qam6z30", variantClassNames: { size: { xs: "_1qam6z31", sm: "_1qam6z32", base: "_1qam6z33", xl: "_1qam6z34", "2xl-title": "_1qam6z35" }, weight: { medium: "_1qam6z36", semibold: "_1qam6z37", bold: "_1qam6z38" }, color: { contrast: "_1qam6z39", tertiary: "_1qam6z3a", placeholder: "_1qam6z3b", white: "_1qam6z3c", success: "_1qam6z3d", failure: "_1qam6z3e" } }, defaultVariants: { size: "base", weight: "medium" }, compoundVariants: [] });
|
|
8461
8461
|
const xv = {
|
|
8462
8462
|
text: {}
|
|
@@ -8519,14 +8519,14 @@ function ma(e, t = []) {
|
|
|
8519
8519
|
const s = g.createContext(i), l = n.length;
|
|
8520
8520
|
n = [...n, i];
|
|
8521
8521
|
const u = (f) => {
|
|
8522
|
-
var
|
|
8523
|
-
const { scope: h, children: b, ...p } = f, m = ((
|
|
8522
|
+
var y;
|
|
8523
|
+
const { scope: h, children: b, ...p } = f, m = ((y = h == null ? void 0 : h[e]) == null ? void 0 : y[l]) || s, w = g.useMemo(() => p, Object.values(p));
|
|
8524
8524
|
return /* @__PURE__ */ c.jsx(m.Provider, { value: w, children: b });
|
|
8525
8525
|
};
|
|
8526
8526
|
u.displayName = a + "Provider";
|
|
8527
|
-
function d(f,
|
|
8527
|
+
function d(f, y) {
|
|
8528
8528
|
var h;
|
|
8529
|
-
const b = ((h =
|
|
8529
|
+
const b = ((h = y == null ? void 0 : y[e]) == null ? void 0 : h[l]) || s, p = g.useContext(b);
|
|
8530
8530
|
if (p)
|
|
8531
8531
|
return p;
|
|
8532
8532
|
if (i !== void 0)
|
|
@@ -8642,19 +8642,19 @@ function Rv(e) {
|
|
|
8642
8642
|
i.displayName = t;
|
|
8643
8643
|
const s = e + "CollectionSlot", l = $.forwardRef(
|
|
8644
8644
|
(h, b) => {
|
|
8645
|
-
const { scope: p, children: m } = h, w = a(s, p),
|
|
8646
|
-
return /* @__PURE__ */ c.jsx(En, { ref:
|
|
8645
|
+
const { scope: p, children: m } = h, w = a(s, p), _ = ke(b, w.collectionRef);
|
|
8646
|
+
return /* @__PURE__ */ c.jsx(En, { ref: _, children: m });
|
|
8647
8647
|
}
|
|
8648
8648
|
);
|
|
8649
8649
|
l.displayName = s;
|
|
8650
8650
|
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = $.forwardRef(
|
|
8651
8651
|
(h, b) => {
|
|
8652
|
-
const { scope: p, children: m, ...w } = h,
|
|
8653
|
-
return $.useEffect(() => (E.itemMap.set(
|
|
8652
|
+
const { scope: p, children: m, ...w } = h, _ = $.useRef(null), x = ke(b, _), E = a(u, p);
|
|
8653
|
+
return $.useEffect(() => (E.itemMap.set(_, { ref: _, ...w }), () => void E.itemMap.delete(_))), /* @__PURE__ */ c.jsx(En, { [d]: "", ref: x, children: m });
|
|
8654
8654
|
}
|
|
8655
8655
|
);
|
|
8656
8656
|
f.displayName = u;
|
|
8657
|
-
function
|
|
8657
|
+
function y(h) {
|
|
8658
8658
|
const b = a(e + "CollectionConsumer", h);
|
|
8659
8659
|
return $.useCallback(() => {
|
|
8660
8660
|
const p = b.collectionRef.current;
|
|
@@ -8662,13 +8662,13 @@ function Rv(e) {
|
|
|
8662
8662
|
return [];
|
|
8663
8663
|
const m = Array.from(p.querySelectorAll(`[${d}]`));
|
|
8664
8664
|
return Array.from(b.itemMap.values()).sort(
|
|
8665
|
-
(w,
|
|
8665
|
+
(w, _) => m.indexOf(w.ref.current) - m.indexOf(_.ref.current)
|
|
8666
8666
|
);
|
|
8667
8667
|
}, [b.collectionRef, b.itemMap]);
|
|
8668
8668
|
}
|
|
8669
8669
|
return [
|
|
8670
8670
|
{ Provider: i, Slot: l, ItemSlot: f },
|
|
8671
|
-
|
|
8671
|
+
y,
|
|
8672
8672
|
r
|
|
8673
8673
|
];
|
|
8674
8674
|
}
|
|
@@ -8736,21 +8736,21 @@ var Ov = "DismissableLayer", jo = "dismissableLayer.update", Av = "dismissableLa
|
|
|
8736
8736
|
onInteractOutside: i,
|
|
8737
8737
|
onDismiss: s,
|
|
8738
8738
|
...l
|
|
8739
|
-
} = e, u = g.useContext(wc), [d, f] = g.useState(null),
|
|
8739
|
+
} = e, u = g.useContext(wc), [d, f] = g.useState(null), y = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = g.useState({}), b = ke(t, (S) => f(S)), p = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), w = p.indexOf(m), _ = d ? p.indexOf(d) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= w, C = Hv((S) => {
|
|
8740
8740
|
const N = S.target, O = [...u.branches].some((Z) => Z.contains(N));
|
|
8741
8741
|
!E || O || (o == null || o(S), i == null || i(S), S.defaultPrevented || s == null || s());
|
|
8742
|
-
},
|
|
8742
|
+
}, y), k = Uv((S) => {
|
|
8743
8743
|
const N = S.target;
|
|
8744
8744
|
[...u.branches].some((O) => O.contains(N)) || (a == null || a(S), i == null || i(S), S.defaultPrevented || s == null || s());
|
|
8745
|
-
},
|
|
8745
|
+
}, y);
|
|
8746
8746
|
return Lv((S) => {
|
|
8747
|
-
|
|
8748
|
-
},
|
|
8747
|
+
_ === u.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
|
|
8748
|
+
}, y), g.useEffect(() => {
|
|
8749
8749
|
if (d)
|
|
8750
|
-
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ns =
|
|
8751
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (
|
|
8750
|
+
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ns = y.body.style.pointerEvents, y.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), rs(), () => {
|
|
8751
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (y.body.style.pointerEvents = ns);
|
|
8752
8752
|
};
|
|
8753
|
-
}, [d,
|
|
8753
|
+
}, [d, y, n, u]), g.useEffect(() => () => {
|
|
8754
8754
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), rs());
|
|
8755
8755
|
}, [d, u]), g.useEffect(() => {
|
|
8756
8756
|
const S = () => h({});
|
|
@@ -8858,7 +8858,7 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", as
|
|
|
8858
8858
|
onMountAutoFocus: o,
|
|
8859
8859
|
onUnmountAutoFocus: a,
|
|
8860
8860
|
...i
|
|
8861
|
-
} = e, [s, l] = g.useState(null), u = ct(o), d = ct(a), f = g.useRef(null),
|
|
8861
|
+
} = e, [s, l] = g.useState(null), u = ct(o), d = ct(a), f = g.useRef(null), y = ke(t, (p) => l(p)), h = g.useRef({
|
|
8862
8862
|
paused: !1,
|
|
8863
8863
|
pause() {
|
|
8864
8864
|
this.paused = !0;
|
|
@@ -8885,9 +8885,9 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", as
|
|
|
8885
8885
|
E.removedNodes.length > 0 && ht(s);
|
|
8886
8886
|
};
|
|
8887
8887
|
document.addEventListener("focusin", p), document.addEventListener("focusout", m);
|
|
8888
|
-
const
|
|
8889
|
-
return s &&
|
|
8890
|
-
document.removeEventListener("focusin", p), document.removeEventListener("focusout", m),
|
|
8888
|
+
const _ = new MutationObserver(w);
|
|
8889
|
+
return s && _.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
8890
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", m), _.disconnect();
|
|
8891
8891
|
};
|
|
8892
8892
|
}
|
|
8893
8893
|
}, [r, s, h.paused]), g.useEffect(() => {
|
|
@@ -8912,13 +8912,13 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", as
|
|
|
8912
8912
|
return;
|
|
8913
8913
|
const m = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, w = document.activeElement;
|
|
8914
8914
|
if (m && w) {
|
|
8915
|
-
const
|
|
8916
|
-
x && E ? !p.shiftKey && w === E ? (p.preventDefault(), n && ht(x, { select: !0 })) : p.shiftKey && w === x && (p.preventDefault(), n && ht(E, { select: !0 })) : w ===
|
|
8915
|
+
const _ = p.currentTarget, [x, E] = Wv(_);
|
|
8916
|
+
x && E ? !p.shiftKey && w === E ? (p.preventDefault(), n && ht(x, { select: !0 })) : p.shiftKey && w === x && (p.preventDefault(), n && ht(E, { select: !0 })) : w === _ && p.preventDefault();
|
|
8917
8917
|
}
|
|
8918
8918
|
},
|
|
8919
8919
|
[n, r, h.paused]
|
|
8920
8920
|
);
|
|
8921
|
-
return /* @__PURE__ */ c.jsx(xe.div, { tabIndex: -1, ...i, ref:
|
|
8921
|
+
return /* @__PURE__ */ c.jsx(xe.div, { tabIndex: -1, ...i, ref: y, onKeyDown: b });
|
|
8922
8922
|
});
|
|
8923
8923
|
Sc.displayName = Vv;
|
|
8924
8924
|
function Gv(e, { select: t = !1 } = {}) {
|
|
@@ -8998,7 +8998,7 @@ function ga(e) {
|
|
|
8998
8998
|
n((r) => r ?? String(Qv++));
|
|
8999
8999
|
}, [e]), t ? `radix-${t}` : "";
|
|
9000
9000
|
}
|
|
9001
|
-
const e0 = ["top", "right", "bottom", "left"],
|
|
9001
|
+
const e0 = ["top", "right", "bottom", "left"], yt = Math.min, Ne = Math.max, cr = Math.round, Zn = Math.floor, _t = (e) => ({
|
|
9002
9002
|
x: e,
|
|
9003
9003
|
y: e
|
|
9004
9004
|
}), t0 = {
|
|
@@ -9011,7 +9011,7 @@ const e0 = ["top", "right", "bottom", "left"], _t = Math.min, Ne = Math.max, cr
|
|
|
9011
9011
|
end: "start"
|
|
9012
9012
|
};
|
|
9013
9013
|
function Ro(e, t, n) {
|
|
9014
|
-
return Ne(e,
|
|
9014
|
+
return Ne(e, yt(t, n));
|
|
9015
9015
|
}
|
|
9016
9016
|
function ut(e, t) {
|
|
9017
9017
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -9025,18 +9025,18 @@ function tn(e) {
|
|
|
9025
9025
|
function va(e) {
|
|
9026
9026
|
return e === "x" ? "y" : "x";
|
|
9027
9027
|
}
|
|
9028
|
-
function
|
|
9028
|
+
function ya(e) {
|
|
9029
9029
|
return e === "y" ? "height" : "width";
|
|
9030
9030
|
}
|
|
9031
9031
|
function nn(e) {
|
|
9032
9032
|
return ["top", "bottom"].includes(dt(e)) ? "y" : "x";
|
|
9033
9033
|
}
|
|
9034
|
-
function
|
|
9034
|
+
function _a(e) {
|
|
9035
9035
|
return va(nn(e));
|
|
9036
9036
|
}
|
|
9037
9037
|
function r0(e, t, n) {
|
|
9038
9038
|
n === void 0 && (n = !1);
|
|
9039
|
-
const r = tn(e), o =
|
|
9039
|
+
const r = tn(e), o = _a(e), a = ya(o);
|
|
9040
9040
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
9041
9041
|
return t.reference[a] > t.floating[a] && (i = ur(i)), [i, ur(i)];
|
|
9042
9042
|
}
|
|
@@ -9099,7 +9099,7 @@ function cs(e, t, n) {
|
|
|
9099
9099
|
reference: r,
|
|
9100
9100
|
floating: o
|
|
9101
9101
|
} = e;
|
|
9102
|
-
const a = nn(t), i =
|
|
9102
|
+
const a = nn(t), i = _a(t), s = ya(i), l = dt(t), u = a === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, y = r[s] / 2 - o[s] / 2;
|
|
9103
9103
|
let h;
|
|
9104
9104
|
switch (l) {
|
|
9105
9105
|
case "top":
|
|
@@ -9134,10 +9134,10 @@ function cs(e, t, n) {
|
|
|
9134
9134
|
}
|
|
9135
9135
|
switch (tn(t)) {
|
|
9136
9136
|
case "start":
|
|
9137
|
-
h[i] -=
|
|
9137
|
+
h[i] -= y * (n && u ? -1 : 1);
|
|
9138
9138
|
break;
|
|
9139
9139
|
case "end":
|
|
9140
|
-
h[i] +=
|
|
9140
|
+
h[i] += y * (n && u ? -1 : 1);
|
|
9141
9141
|
break;
|
|
9142
9142
|
}
|
|
9143
9143
|
return h;
|
|
@@ -9156,13 +9156,13 @@ const l0 = async (e, t, n) => {
|
|
|
9156
9156
|
}), {
|
|
9157
9157
|
x: d,
|
|
9158
9158
|
y: f
|
|
9159
|
-
} = cs(u, r, l),
|
|
9159
|
+
} = cs(u, r, l), y = r, h = {}, b = 0;
|
|
9160
9160
|
for (let p = 0; p < s.length; p++) {
|
|
9161
9161
|
const {
|
|
9162
9162
|
name: m,
|
|
9163
9163
|
fn: w
|
|
9164
9164
|
} = s[p], {
|
|
9165
|
-
x:
|
|
9165
|
+
x: _,
|
|
9166
9166
|
y: x,
|
|
9167
9167
|
data: E,
|
|
9168
9168
|
reset: C
|
|
@@ -9170,7 +9170,7 @@ const l0 = async (e, t, n) => {
|
|
|
9170
9170
|
x: d,
|
|
9171
9171
|
y: f,
|
|
9172
9172
|
initialPlacement: r,
|
|
9173
|
-
placement:
|
|
9173
|
+
placement: y,
|
|
9174
9174
|
strategy: o,
|
|
9175
9175
|
middlewareData: h,
|
|
9176
9176
|
rects: u,
|
|
@@ -9180,28 +9180,28 @@ const l0 = async (e, t, n) => {
|
|
|
9180
9180
|
floating: t
|
|
9181
9181
|
}
|
|
9182
9182
|
});
|
|
9183
|
-
if (d =
|
|
9183
|
+
if (d = _ ?? d, f = x ?? f, h = {
|
|
9184
9184
|
...h,
|
|
9185
9185
|
[m]: {
|
|
9186
9186
|
...h[m],
|
|
9187
9187
|
...E
|
|
9188
9188
|
}
|
|
9189
9189
|
}, C && b <= 50) {
|
|
9190
|
-
b++, typeof C == "object" && (C.placement && (
|
|
9190
|
+
b++, typeof C == "object" && (C.placement && (y = C.placement), C.rects && (u = C.rects === !0 ? await i.getElementRects({
|
|
9191
9191
|
reference: e,
|
|
9192
9192
|
floating: t,
|
|
9193
9193
|
strategy: o
|
|
9194
9194
|
}) : C.rects), {
|
|
9195
9195
|
x: d,
|
|
9196
9196
|
y: f
|
|
9197
|
-
} = cs(u,
|
|
9197
|
+
} = cs(u, y, l)), p = -1;
|
|
9198
9198
|
continue;
|
|
9199
9199
|
}
|
|
9200
9200
|
}
|
|
9201
9201
|
return {
|
|
9202
9202
|
x: d,
|
|
9203
9203
|
y: f,
|
|
9204
|
-
placement:
|
|
9204
|
+
placement: y,
|
|
9205
9205
|
strategy: o,
|
|
9206
9206
|
middlewareData: h
|
|
9207
9207
|
};
|
|
@@ -9220,9 +9220,9 @@ async function kn(e, t) {
|
|
|
9220
9220
|
boundary: u = "clippingAncestors",
|
|
9221
9221
|
rootBoundary: d = "viewport",
|
|
9222
9222
|
elementContext: f = "floating",
|
|
9223
|
-
altBoundary:
|
|
9223
|
+
altBoundary: y = !1,
|
|
9224
9224
|
padding: h = 0
|
|
9225
|
-
} = ut(t, e), b = zc(h), p = s[
|
|
9225
|
+
} = ut(t, e), b = zc(h), p = s[y ? f === "floating" ? "reference" : "floating" : f], m = dr(await a.getClippingRect({
|
|
9226
9226
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(p))) == null || n ? p : p.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
9227
9227
|
boundary: u,
|
|
9228
9228
|
rootBoundary: d,
|
|
@@ -9231,7 +9231,7 @@ async function kn(e, t) {
|
|
|
9231
9231
|
...i.floating,
|
|
9232
9232
|
x: r,
|
|
9233
9233
|
y: o
|
|
9234
|
-
} : i.reference,
|
|
9234
|
+
} : i.reference, _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), x = await (a.isElement == null ? void 0 : a.isElement(_)) ? await (a.getScale == null ? void 0 : a.getScale(_)) || {
|
|
9235
9235
|
x: 1,
|
|
9236
9236
|
y: 1
|
|
9237
9237
|
} : {
|
|
@@ -9239,7 +9239,7 @@ async function kn(e, t) {
|
|
|
9239
9239
|
y: 1
|
|
9240
9240
|
}, E = dr(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
9241
9241
|
rect: w,
|
|
9242
|
-
offsetParent:
|
|
9242
|
+
offsetParent: _,
|
|
9243
9243
|
strategy: l
|
|
9244
9244
|
}) : w);
|
|
9245
9245
|
return {
|
|
@@ -9267,15 +9267,15 @@ const us = (e) => ({
|
|
|
9267
9267
|
} = ut(e, t) || {};
|
|
9268
9268
|
if (u == null)
|
|
9269
9269
|
return {};
|
|
9270
|
-
const f = zc(d),
|
|
9270
|
+
const f = zc(d), y = {
|
|
9271
9271
|
x: n,
|
|
9272
9272
|
y: r
|
|
9273
|
-
}, h =
|
|
9273
|
+
}, h = _a(o), b = ya(h), p = await i.getDimensions(u), m = h === "y", w = m ? "top" : "left", _ = m ? "bottom" : "right", x = m ? "clientHeight" : "clientWidth", E = a.reference[b] + a.reference[h] - y[h] - a.floating[b], C = y[h] - a.reference[h], k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
9274
9274
|
let S = k ? k[x] : 0;
|
|
9275
9275
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(k))) && (S = s.floating[x] || a.floating[b]);
|
|
9276
|
-
const N = E / 2 - C / 2, O = S / 2 - p[b] / 2 - 1, Z =
|
|
9276
|
+
const N = E / 2 - C / 2, O = S / 2 - p[b] / 2 - 1, Z = yt(f[w], O), K = yt(f[_], O), H = Z, G = S - p[b] - K, L = S / 2 - p[b] / 2 + N, Y = Ro(H, L, G), A = !l.arrow && tn(o) != null && L != Y && a.reference[b] / 2 - (L < H ? Z : K) - p[b] / 2 < 0, U = A ? L < H ? L - H : L - G : 0;
|
|
9277
9277
|
return {
|
|
9278
|
-
[h]:
|
|
9278
|
+
[h]: y[h] + U,
|
|
9279
9279
|
data: {
|
|
9280
9280
|
[h]: Y,
|
|
9281
9281
|
centerOffset: L - Y - U,
|
|
@@ -9302,7 +9302,7 @@ const us = (e) => ({
|
|
|
9302
9302
|
} = t, {
|
|
9303
9303
|
mainAxis: d = !0,
|
|
9304
9304
|
crossAxis: f = !0,
|
|
9305
|
-
fallbackPlacements:
|
|
9305
|
+
fallbackPlacements: y,
|
|
9306
9306
|
fallbackStrategy: h = "bestFit",
|
|
9307
9307
|
fallbackAxisSideDirection: b = "none",
|
|
9308
9308
|
flipAlignment: p = !0,
|
|
@@ -9310,8 +9310,8 @@ const us = (e) => ({
|
|
|
9310
9310
|
} = ut(e, t);
|
|
9311
9311
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
9312
9312
|
return {};
|
|
9313
|
-
const w = dt(o),
|
|
9314
|
-
!
|
|
9313
|
+
const w = dt(o), _ = dt(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = y || (_ || !p ? [ur(s)] : o0(s));
|
|
9314
|
+
!y && b !== "none" && E.push(...i0(s, p, b, x));
|
|
9315
9315
|
const C = [s, ...E], k = await kn(t, m), S = [];
|
|
9316
9316
|
let N = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
9317
9317
|
if (d && S.push(k[w]), f) {
|
|
@@ -9418,7 +9418,7 @@ async function d0(e, t) {
|
|
|
9418
9418
|
elements: o
|
|
9419
9419
|
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = dt(n), s = tn(n), l = nn(n) === "y", u = ["left", "top"].includes(i) ? -1 : 1, d = a && l ? -1 : 1, f = ut(t, e);
|
|
9420
9420
|
let {
|
|
9421
|
-
mainAxis:
|
|
9421
|
+
mainAxis: y,
|
|
9422
9422
|
crossAxis: h,
|
|
9423
9423
|
alignmentAxis: b
|
|
9424
9424
|
} = typeof f == "number" ? {
|
|
@@ -9433,9 +9433,9 @@ async function d0(e, t) {
|
|
|
9433
9433
|
};
|
|
9434
9434
|
return s && typeof b == "number" && (h = s === "end" ? b * -1 : b), l ? {
|
|
9435
9435
|
x: h * d,
|
|
9436
|
-
y:
|
|
9436
|
+
y: y * u
|
|
9437
9437
|
} : {
|
|
9438
|
-
x:
|
|
9438
|
+
x: y * u,
|
|
9439
9439
|
y: h * d
|
|
9440
9440
|
};
|
|
9441
9441
|
}
|
|
@@ -9471,11 +9471,11 @@ const f0 = function(e) {
|
|
|
9471
9471
|
fn: (m) => {
|
|
9472
9472
|
let {
|
|
9473
9473
|
x: w,
|
|
9474
|
-
y
|
|
9474
|
+
y: _
|
|
9475
9475
|
} = m;
|
|
9476
9476
|
return {
|
|
9477
9477
|
x: w,
|
|
9478
|
-
y
|
|
9478
|
+
y: _
|
|
9479
9479
|
};
|
|
9480
9480
|
}
|
|
9481
9481
|
},
|
|
@@ -9483,19 +9483,19 @@ const f0 = function(e) {
|
|
|
9483
9483
|
} = ut(e, t), u = {
|
|
9484
9484
|
x: n,
|
|
9485
9485
|
y: r
|
|
9486
|
-
}, d = await kn(t, l), f = nn(dt(o)),
|
|
9487
|
-
let h = u[
|
|
9486
|
+
}, d = await kn(t, l), f = nn(dt(o)), y = va(f);
|
|
9487
|
+
let h = u[y], b = u[f];
|
|
9488
9488
|
if (a) {
|
|
9489
|
-
const m =
|
|
9490
|
-
h = Ro(
|
|
9489
|
+
const m = y === "y" ? "top" : "left", w = y === "y" ? "bottom" : "right", _ = h + d[m], x = h - d[w];
|
|
9490
|
+
h = Ro(_, h, x);
|
|
9491
9491
|
}
|
|
9492
9492
|
if (i) {
|
|
9493
|
-
const m = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right",
|
|
9494
|
-
b = Ro(
|
|
9493
|
+
const m = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", _ = b + d[m], x = b - d[w];
|
|
9494
|
+
b = Ro(_, b, x);
|
|
9495
9495
|
}
|
|
9496
9496
|
const p = s.fn({
|
|
9497
9497
|
...t,
|
|
9498
|
-
[
|
|
9498
|
+
[y]: h,
|
|
9499
9499
|
[f]: b
|
|
9500
9500
|
});
|
|
9501
9501
|
return {
|
|
@@ -9524,8 +9524,8 @@ const f0 = function(e) {
|
|
|
9524
9524
|
} = ut(e, t), d = {
|
|
9525
9525
|
x: n,
|
|
9526
9526
|
y: r
|
|
9527
|
-
}, f = nn(o),
|
|
9528
|
-
let h = d[
|
|
9527
|
+
}, f = nn(o), y = va(f);
|
|
9528
|
+
let h = d[y], b = d[f];
|
|
9529
9529
|
const p = ut(s, t), m = typeof p == "number" ? {
|
|
9530
9530
|
mainAxis: p,
|
|
9531
9531
|
crossAxis: 0
|
|
@@ -9535,16 +9535,16 @@ const f0 = function(e) {
|
|
|
9535
9535
|
...p
|
|
9536
9536
|
};
|
|
9537
9537
|
if (l) {
|
|
9538
|
-
const x =
|
|
9538
|
+
const x = y === "y" ? "height" : "width", E = a.reference[y] - a.floating[x] + m.mainAxis, C = a.reference[y] + a.reference[x] - m.mainAxis;
|
|
9539
9539
|
h < E ? h = E : h > C && (h = C);
|
|
9540
9540
|
}
|
|
9541
9541
|
if (u) {
|
|
9542
|
-
var w,
|
|
9543
|
-
const x =
|
|
9542
|
+
var w, _;
|
|
9543
|
+
const x = y === "y" ? "width" : "height", E = ["top", "left"].includes(dt(o)), C = a.reference[f] - a.floating[x] + (E && ((w = i.offset) == null ? void 0 : w[f]) || 0) + (E ? 0 : m.crossAxis), k = a.reference[f] + a.reference[x] + (E ? 0 : ((_ = i.offset) == null ? void 0 : _[f]) || 0) - (E ? m.crossAxis : 0);
|
|
9544
9544
|
b < C ? b = C : b > k && (b = k);
|
|
9545
9545
|
}
|
|
9546
9546
|
return {
|
|
9547
|
-
[
|
|
9547
|
+
[y]: h,
|
|
9548
9548
|
[f]: b
|
|
9549
9549
|
};
|
|
9550
9550
|
}
|
|
@@ -9564,23 +9564,23 @@ const f0 = function(e) {
|
|
|
9564
9564
|
},
|
|
9565
9565
|
...s
|
|
9566
9566
|
} = ut(e, t), l = await kn(t, s), u = dt(n), d = tn(n), f = nn(n) === "y", {
|
|
9567
|
-
width:
|
|
9567
|
+
width: y,
|
|
9568
9568
|
height: h
|
|
9569
9569
|
} = r.floating;
|
|
9570
9570
|
let b, p;
|
|
9571
9571
|
u === "top" || u === "bottom" ? (b = u, p = d === (await (o.isRTL == null ? void 0 : o.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (p = u, b = d === "end" ? "top" : "bottom");
|
|
9572
|
-
const m = h - l[b], w =
|
|
9572
|
+
const m = h - l[b], w = y - l[p], _ = !t.middlewareData.shift;
|
|
9573
9573
|
let x = m, E = w;
|
|
9574
9574
|
if (f) {
|
|
9575
|
-
const k =
|
|
9576
|
-
E = d ||
|
|
9575
|
+
const k = y - l.left - l.right;
|
|
9576
|
+
E = d || _ ? yt(w, k) : k;
|
|
9577
9577
|
} else {
|
|
9578
9578
|
const k = h - l.top - l.bottom;
|
|
9579
|
-
x = d ||
|
|
9579
|
+
x = d || _ ? yt(m, k) : k;
|
|
9580
9580
|
}
|
|
9581
|
-
if (
|
|
9581
|
+
if (_ && !d) {
|
|
9582
9582
|
const k = Ne(l.left, 0), S = Ne(l.right, 0), N = Ne(l.top, 0), O = Ne(l.bottom, 0);
|
|
9583
|
-
f ? E =
|
|
9583
|
+
f ? E = y - 2 * (k !== 0 || S !== 0 ? k + S : Ne(l.left, l.right)) : x = h - 2 * (N !== 0 || O !== 0 ? N + O : Ne(l.top, l.bottom));
|
|
9584
9584
|
}
|
|
9585
9585
|
await i({
|
|
9586
9586
|
...t,
|
|
@@ -9588,7 +9588,7 @@ const f0 = function(e) {
|
|
|
9588
9588
|
availableHeight: x
|
|
9589
9589
|
});
|
|
9590
9590
|
const C = await o.getDimensions(a.floating);
|
|
9591
|
-
return
|
|
9591
|
+
return y !== C.width || h !== C.height ? {
|
|
9592
9592
|
reset: {
|
|
9593
9593
|
rects: !0
|
|
9594
9594
|
}
|
|
@@ -9700,7 +9700,7 @@ function xa(e) {
|
|
|
9700
9700
|
function Gt(e) {
|
|
9701
9701
|
const t = xa(e);
|
|
9702
9702
|
if (!et(t))
|
|
9703
|
-
return
|
|
9703
|
+
return _t(1);
|
|
9704
9704
|
const n = t.getBoundingClientRect(), {
|
|
9705
9705
|
width: r,
|
|
9706
9706
|
height: o,
|
|
@@ -9712,30 +9712,30 @@ function Gt(e) {
|
|
|
9712
9712
|
y: s
|
|
9713
9713
|
};
|
|
9714
9714
|
}
|
|
9715
|
-
const
|
|
9715
|
+
const y0 = /* @__PURE__ */ _t(0);
|
|
9716
9716
|
function Mc(e) {
|
|
9717
9717
|
const t = Ie(e);
|
|
9718
|
-
return !Ca() || !t.visualViewport ?
|
|
9718
|
+
return !Ca() || !t.visualViewport ? y0 : {
|
|
9719
9719
|
x: t.visualViewport.offsetLeft,
|
|
9720
9720
|
y: t.visualViewport.offsetTop
|
|
9721
9721
|
};
|
|
9722
9722
|
}
|
|
9723
|
-
function
|
|
9723
|
+
function _0(e, t, n) {
|
|
9724
9724
|
return t === void 0 && (t = !1), !n || t && n !== Ie(e) ? !1 : t;
|
|
9725
9725
|
}
|
|
9726
9726
|
function Tt(e, t, n, r) {
|
|
9727
9727
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
9728
9728
|
const o = e.getBoundingClientRect(), a = xa(e);
|
|
9729
|
-
let i =
|
|
9729
|
+
let i = _t(1);
|
|
9730
9730
|
t && (r ? ft(r) && (i = Gt(r)) : i = Gt(e));
|
|
9731
|
-
const s =
|
|
9731
|
+
const s = _0(a, n, r) ? Mc(a) : _t(0);
|
|
9732
9732
|
let l = (o.left + s.x) / i.x, u = (o.top + s.y) / i.y, d = o.width / i.x, f = o.height / i.y;
|
|
9733
9733
|
if (a) {
|
|
9734
|
-
const
|
|
9735
|
-
let b =
|
|
9736
|
-
for (; b && r && h !==
|
|
9737
|
-
const p = Gt(b), m = b.getBoundingClientRect(), w = He(b),
|
|
9738
|
-
l *= p.x, u *= p.y, d *= p.x, f *= p.y, l +=
|
|
9734
|
+
const y = Ie(a), h = r && ft(r) ? Ie(r) : r;
|
|
9735
|
+
let b = y.frameElement;
|
|
9736
|
+
for (; b && r && h !== y; ) {
|
|
9737
|
+
const p = Gt(b), m = b.getBoundingClientRect(), w = He(b), _ = m.left + (b.clientLeft + parseFloat(w.paddingLeft)) * p.x, x = m.top + (b.clientTop + parseFloat(w.paddingTop)) * p.y;
|
|
9738
|
+
l *= p.x, u *= p.y, d *= p.x, f *= p.y, l += _, u += x, b = Ie(b).frameElement;
|
|
9739
9739
|
}
|
|
9740
9740
|
}
|
|
9741
9741
|
return dr({
|
|
@@ -9757,8 +9757,8 @@ function b0(e) {
|
|
|
9757
9757
|
let i = {
|
|
9758
9758
|
scrollLeft: 0,
|
|
9759
9759
|
scrollTop: 0
|
|
9760
|
-
}, s =
|
|
9761
|
-
const l =
|
|
9760
|
+
}, s = _t(1);
|
|
9761
|
+
const l = _t(0);
|
|
9762
9762
|
if ((o || !o && r !== "fixed") && ((bt(n) !== "body" || Mn(a)) && (i = jr(n)), et(n))) {
|
|
9763
9763
|
const u = Tt(n);
|
|
9764
9764
|
s = Gt(n), l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
|
|
@@ -9803,7 +9803,7 @@ function w0(e, t) {
|
|
|
9803
9803
|
};
|
|
9804
9804
|
}
|
|
9805
9805
|
function E0(e, t) {
|
|
9806
|
-
const n = Tt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = et(e) ? Gt(e) :
|
|
9806
|
+
const n = Tt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = et(e) ? Gt(e) : _t(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, u = r * a.y;
|
|
9807
9807
|
return {
|
|
9808
9808
|
width: i,
|
|
9809
9809
|
height: s,
|
|
@@ -9855,7 +9855,7 @@ function S0(e) {
|
|
|
9855
9855
|
} = e;
|
|
9856
9856
|
const a = [...n === "clippingAncestors" ? k0(t, this._c) : [].concat(n), r], i = a[0], s = a.reduce((l, u) => {
|
|
9857
9857
|
const d = hs(t, u, o);
|
|
9858
|
-
return l.top = Ne(d.top, l.top), l.right =
|
|
9858
|
+
return l.top = Ne(d.top, l.top), l.right = yt(d.right, l.right), l.bottom = yt(d.bottom, l.bottom), l.left = Ne(d.left, l.left), l;
|
|
9859
9859
|
}, hs(t, i, o));
|
|
9860
9860
|
return {
|
|
9861
9861
|
width: s.right - s.left,
|
|
@@ -9873,7 +9873,7 @@ function z0(e, t, n) {
|
|
|
9873
9873
|
scrollLeft: 0,
|
|
9874
9874
|
scrollTop: 0
|
|
9875
9875
|
};
|
|
9876
|
-
const l =
|
|
9876
|
+
const l = _t(0);
|
|
9877
9877
|
if (r || !r && !a)
|
|
9878
9878
|
if ((bt(t) !== "body" || Mn(o)) && (s = jr(t)), r) {
|
|
9879
9879
|
const u = Tt(t, !0, a, t);
|
|
@@ -9942,25 +9942,25 @@ function M0(e, t) {
|
|
|
9942
9942
|
left: u,
|
|
9943
9943
|
top: d,
|
|
9944
9944
|
width: f,
|
|
9945
|
-
height:
|
|
9945
|
+
height: y
|
|
9946
9946
|
} = e.getBoundingClientRect();
|
|
9947
|
-
if (s || t(), !f || !
|
|
9947
|
+
if (s || t(), !f || !y)
|
|
9948
9948
|
return;
|
|
9949
|
-
const h = Zn(d), b = Zn(o.clientWidth - (u + f)), p = Zn(o.clientHeight - (d +
|
|
9949
|
+
const h = Zn(d), b = Zn(o.clientWidth - (u + f)), p = Zn(o.clientHeight - (d + y)), m = Zn(u), w = {
|
|
9950
9950
|
rootMargin: -h + "px " + -b + "px " + -p + "px " + -m + "px",
|
|
9951
|
-
threshold: Ne(0,
|
|
9951
|
+
threshold: Ne(0, yt(1, l)) || 1
|
|
9952
9952
|
};
|
|
9953
|
-
let
|
|
9953
|
+
let _ = !0;
|
|
9954
9954
|
function x(E) {
|
|
9955
9955
|
const C = E[0].intersectionRatio;
|
|
9956
9956
|
if (C !== l) {
|
|
9957
|
-
if (!
|
|
9957
|
+
if (!_)
|
|
9958
9958
|
return i();
|
|
9959
9959
|
C ? i(!1, C) : r = setTimeout(() => {
|
|
9960
9960
|
i(!1, 1e-7);
|
|
9961
9961
|
}, 100);
|
|
9962
9962
|
}
|
|
9963
|
-
|
|
9963
|
+
_ = !1;
|
|
9964
9964
|
}
|
|
9965
9965
|
try {
|
|
9966
9966
|
n = new IntersectionObserver(x, {
|
|
@@ -9990,10 +9990,10 @@ function P0(e, t, n, r) {
|
|
|
9990
9990
|
}), a && w.addEventListener("resize", n);
|
|
9991
9991
|
});
|
|
9992
9992
|
const f = u && s ? M0(u, n) : null;
|
|
9993
|
-
let
|
|
9993
|
+
let y = -1, h = null;
|
|
9994
9994
|
i && (h = new ResizeObserver((w) => {
|
|
9995
|
-
let [
|
|
9996
|
-
|
|
9995
|
+
let [_] = w;
|
|
9996
|
+
_ && _.target === u && h && (h.unobserve(t), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
|
|
9997
9997
|
h && h.observe(t);
|
|
9998
9998
|
})), n();
|
|
9999
9999
|
}), u && !l && h.observe(u), h.observe(t));
|
|
@@ -10043,7 +10043,7 @@ const N0 = (e, t, n) => {
|
|
|
10043
10043
|
}
|
|
10044
10044
|
};
|
|
10045
10045
|
};
|
|
10046
|
-
var rr = typeof document < "u" ?
|
|
10046
|
+
var rr = typeof document < "u" ? yn : ye;
|
|
10047
10047
|
function fr(e, t) {
|
|
10048
10048
|
if (e === t)
|
|
10049
10049
|
return !0;
|
|
@@ -10109,9 +10109,9 @@ function L0(e) {
|
|
|
10109
10109
|
placement: t,
|
|
10110
10110
|
middlewareData: {},
|
|
10111
10111
|
isPositioned: !1
|
|
10112
|
-
}), [
|
|
10113
|
-
fr(
|
|
10114
|
-
const [b, p] = g.useState(null), [m, w] = g.useState(null),
|
|
10112
|
+
}), [y, h] = g.useState(r);
|
|
10113
|
+
fr(y, r) || h(r);
|
|
10114
|
+
const [b, p] = g.useState(null), [m, w] = g.useState(null), _ = g.useCallback((A) => {
|
|
10115
10115
|
A != k.current && (k.current = A, p(A));
|
|
10116
10116
|
}, [p]), x = g.useCallback((A) => {
|
|
10117
10117
|
A !== S.current && (S.current = A, w(A));
|
|
@@ -10121,7 +10121,7 @@ function L0(e) {
|
|
|
10121
10121
|
const A = {
|
|
10122
10122
|
placement: t,
|
|
10123
10123
|
strategy: n,
|
|
10124
|
-
middleware:
|
|
10124
|
+
middleware: y
|
|
10125
10125
|
};
|
|
10126
10126
|
Z.current && (A.platform = Z.current), N0(k.current, S.current, A).then((U) => {
|
|
10127
10127
|
const J = {
|
|
@@ -10132,7 +10132,7 @@ function L0(e) {
|
|
|
10132
10132
|
f(J);
|
|
10133
10133
|
}));
|
|
10134
10134
|
});
|
|
10135
|
-
}, [
|
|
10135
|
+
}, [y, t, n, Z]);
|
|
10136
10136
|
rr(() => {
|
|
10137
10137
|
u === !1 && N.current.isPositioned && (N.current.isPositioned = !1, f((A) => ({
|
|
10138
10138
|
...A,
|
|
@@ -10152,9 +10152,9 @@ function L0(e) {
|
|
|
10152
10152
|
const G = g.useMemo(() => ({
|
|
10153
10153
|
reference: k,
|
|
10154
10154
|
floating: S,
|
|
10155
|
-
setReference:
|
|
10155
|
+
setReference: _,
|
|
10156
10156
|
setFloating: x
|
|
10157
|
-
}), [
|
|
10157
|
+
}), [_, x]), L = g.useMemo(() => ({
|
|
10158
10158
|
reference: E,
|
|
10159
10159
|
floating: C
|
|
10160
10160
|
}), [E, C]), Y = g.useMemo(() => {
|
|
@@ -10247,13 +10247,13 @@ var Ea = "PopperContent", [$0, H0] = Ac(Ea), Bc = g.forwardRef(
|
|
|
10247
10247
|
side: u = "bottom",
|
|
10248
10248
|
sideOffset: d = 0,
|
|
10249
10249
|
align: f = "center",
|
|
10250
|
-
alignOffset:
|
|
10250
|
+
alignOffset: y = 0,
|
|
10251
10251
|
arrowPadding: h = 0,
|
|
10252
10252
|
avoidCollisions: b = !0,
|
|
10253
10253
|
collisionBoundary: p = [],
|
|
10254
10254
|
collisionPadding: m = 0,
|
|
10255
10255
|
sticky: w = "partial",
|
|
10256
|
-
hideWhenDetached:
|
|
10256
|
+
hideWhenDetached: _ = !1,
|
|
10257
10257
|
updatePositionStrategy: x = "optimized",
|
|
10258
10258
|
onPlaced: E,
|
|
10259
10259
|
...C
|
|
@@ -10273,7 +10273,7 @@ var Ea = "PopperContent", [$0, H0] = Ac(Ea), Bc = g.forwardRef(
|
|
|
10273
10273
|
reference: k.anchor
|
|
10274
10274
|
},
|
|
10275
10275
|
middleware: [
|
|
10276
|
-
f0({ mainAxis: d + L, alignmentAxis:
|
|
10276
|
+
f0({ mainAxis: d + L, alignmentAxis: y }),
|
|
10277
10277
|
b && p0({
|
|
10278
10278
|
mainAxis: !0,
|
|
10279
10279
|
crossAxis: !1,
|
|
@@ -10290,7 +10290,7 @@ var Ea = "PopperContent", [$0, H0] = Ac(Ea), Bc = g.forwardRef(
|
|
|
10290
10290
|
}),
|
|
10291
10291
|
Z && I0({ element: Z, padding: h }),
|
|
10292
10292
|
V0({ arrowWidth: G, arrowHeight: L }),
|
|
10293
|
-
|
|
10293
|
+
_ && u0({ strategy: "referenceHidden", ...z })
|
|
10294
10294
|
]
|
|
10295
10295
|
}), [de, ce] = Wc(D), I = ct(E);
|
|
10296
10296
|
$e(() => {
|
|
@@ -10413,7 +10413,7 @@ var V0 = (e) => ({
|
|
|
10413
10413
|
options: e,
|
|
10414
10414
|
fn(t) {
|
|
10415
10415
|
var n, r, o;
|
|
10416
|
-
const { placement: a, rects: i, middlewareData: s } = t, l = ((n = s.arrow) == null ? void 0 : n.centerOffset) !== 0, u = l ? 0 : e.arrowWidth, d = l ? 0 : e.arrowHeight, [f,
|
|
10416
|
+
const { placement: a, rects: i, middlewareData: s } = t, l = ((n = s.arrow) == null ? void 0 : n.centerOffset) !== 0, u = l ? 0 : e.arrowWidth, d = l ? 0 : e.arrowHeight, [f, y] = Wc(a), h = { start: "0%", center: "50%", end: "100%" }[y], b = (((r = s.arrow) == null ? void 0 : r.x) ?? 0) + u / 2, p = (((o = s.arrow) == null ? void 0 : o.y) ?? 0) + d / 2;
|
|
10417
10417
|
let m = "", w = "";
|
|
10418
10418
|
return f === "bottom" ? (m = l ? h : `${b}px`, w = `${-d}px`) : f === "top" ? (m = l ? h : `${b}px`, w = `${i.floating.height + d}px`) : f === "right" ? (m = `${-d}px`, w = l ? h : `${p}px`) : f === "left" && (m = `${i.floating.width + d}px`, w = l ? h : `${p}px`), { data: { x: m, y: w } };
|
|
10419
10419
|
}
|
|
@@ -10423,7 +10423,7 @@ function Wc(e) {
|
|
|
10423
10423
|
return [t, n];
|
|
10424
10424
|
}
|
|
10425
10425
|
var G0 = $c, W0 = Uc, Y0 = Bc, K0 = Gc;
|
|
10426
|
-
function
|
|
10426
|
+
function ys({
|
|
10427
10427
|
prop: e,
|
|
10428
10428
|
defaultProp: t,
|
|
10429
10429
|
onChange: n = () => {
|
|
@@ -10484,11 +10484,11 @@ var Kc = cc(), oo = function() {
|
|
|
10484
10484
|
onScrollCapture: oo,
|
|
10485
10485
|
onWheelCapture: oo,
|
|
10486
10486
|
onTouchMoveCapture: oo
|
|
10487
|
-
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards,
|
|
10487
|
+
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, y = e.sideCar, h = e.noIsolation, b = e.inert, p = e.allowPinchZoom, m = e.as, w = m === void 0 ? "div" : m, _ = e.gapMode, x = pa(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = y, C = lc([n, t]), k = Se(Se({}, x), o);
|
|
10488
10488
|
return g.createElement(
|
|
10489
10489
|
g.Fragment,
|
|
10490
10490
|
null,
|
|
10491
|
-
d && g.createElement(E, { sideCar: Kc, removeScrollBar: u, shards: f, noIsolation: h, inert: b, setCallbacks: a, allowPinchZoom: !!p, lockRef: n, gapMode:
|
|
10491
|
+
d && g.createElement(E, { sideCar: Kc, removeScrollBar: u, shards: f, noIsolation: h, inert: b, setCallbacks: a, allowPinchZoom: !!p, lockRef: n, gapMode: _ }),
|
|
10492
10492
|
i ? g.cloneElement(g.Children.only(s), Se(Se({}, k), { ref: C })) : g.createElement(w, Se({}, k, { className: l, ref: C }), s)
|
|
10493
10493
|
);
|
|
10494
10494
|
});
|
|
@@ -10524,11 +10524,11 @@ var $t = Po ? { passive: !1 } : !1, Q0 = function(e) {
|
|
|
10524
10524
|
n[t] !== "hidden" && // contains scroll inside self
|
|
10525
10525
|
!(n.overflowY === n.overflowX && !Q0(e) && n[t] === "visible")
|
|
10526
10526
|
);
|
|
10527
|
-
},
|
|
10527
|
+
}, ey = function(e) {
|
|
10528
10528
|
return Zc(e, "overflowY");
|
|
10529
|
-
},
|
|
10529
|
+
}, ty = function(e) {
|
|
10530
10530
|
return Zc(e, "overflowX");
|
|
10531
|
-
},
|
|
10531
|
+
}, _s = function(e, t) {
|
|
10532
10532
|
var n = t.ownerDocument, r = t;
|
|
10533
10533
|
do {
|
|
10534
10534
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
@@ -10541,14 +10541,14 @@ var $t = Po ? { passive: !1 } : !1, Q0 = function(e) {
|
|
|
10541
10541
|
r = r.parentNode;
|
|
10542
10542
|
} while (r && r !== n.body);
|
|
10543
10543
|
return !1;
|
|
10544
|
-
},
|
|
10544
|
+
}, ny = function(e) {
|
|
10545
10545
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
10546
10546
|
return [
|
|
10547
10547
|
t,
|
|
10548
10548
|
n,
|
|
10549
10549
|
r
|
|
10550
10550
|
];
|
|
10551
|
-
},
|
|
10551
|
+
}, ry = function(e) {
|
|
10552
10552
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
10553
10553
|
return [
|
|
10554
10554
|
t,
|
|
@@ -10556,38 +10556,38 @@ var $t = Po ? { passive: !1 } : !1, Q0 = function(e) {
|
|
|
10556
10556
|
r
|
|
10557
10557
|
];
|
|
10558
10558
|
}, Xc = function(e, t) {
|
|
10559
|
-
return e === "v" ?
|
|
10559
|
+
return e === "v" ? ey(t) : ty(t);
|
|
10560
10560
|
}, Jc = function(e, t) {
|
|
10561
|
-
return e === "v" ?
|
|
10562
|
-
},
|
|
10561
|
+
return e === "v" ? ny(t) : ry(t);
|
|
10562
|
+
}, oy = function(e, t) {
|
|
10563
10563
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
10564
|
-
},
|
|
10565
|
-
var a =
|
|
10564
|
+
}, ay = function(e, t, n, r, o) {
|
|
10565
|
+
var a = oy(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), u = !1, d = i > 0, f = 0, y = 0;
|
|
10566
10566
|
do {
|
|
10567
10567
|
var h = Jc(e, s), b = h[0], p = h[1], m = h[2], w = p - m - a * b;
|
|
10568
|
-
(b || w) && Xc(e, s) && (f += w,
|
|
10568
|
+
(b || w) && Xc(e, s) && (f += w, y += b), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
|
|
10569
10569
|
} while (
|
|
10570
10570
|
// portaled content
|
|
10571
10571
|
!l && s !== document.body || // self content
|
|
10572
10572
|
l && (t.contains(s) || t === s)
|
|
10573
10573
|
);
|
|
10574
|
-
return (d && Math.abs(f) < 1 || !d && Math.abs(
|
|
10574
|
+
return (d && Math.abs(f) < 1 || !d && Math.abs(y) < 1) && (u = !0), u;
|
|
10575
10575
|
}, Jn = function(e) {
|
|
10576
10576
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
10577
10577
|
}, bs = function(e) {
|
|
10578
10578
|
return [e.deltaX, e.deltaY];
|
|
10579
10579
|
}, Cs = function(e) {
|
|
10580
10580
|
return e && "current" in e ? e.current : e;
|
|
10581
|
-
},
|
|
10581
|
+
}, iy = function(e, t) {
|
|
10582
10582
|
return e[0] === t[0] && e[1] === t[1];
|
|
10583
|
-
},
|
|
10583
|
+
}, sy = function(e) {
|
|
10584
10584
|
return `
|
|
10585
10585
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
10586
10586
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
10587
10587
|
`);
|
|
10588
|
-
},
|
|
10589
|
-
function
|
|
10590
|
-
var t = g.useRef([]), n = g.useRef([0, 0]), r = g.useRef(), o = g.useState(
|
|
10588
|
+
}, ly = 0, Ht = [];
|
|
10589
|
+
function cy(e) {
|
|
10590
|
+
var t = g.useRef([]), n = g.useRef([0, 0]), r = g.useRef(), o = g.useState(ly++)[0], a = g.useState(ha)[0], i = g.useRef(e);
|
|
10591
10591
|
g.useEffect(function() {
|
|
10592
10592
|
i.current = e;
|
|
10593
10593
|
}, [e]), g.useEffect(function() {
|
|
@@ -10606,37 +10606,37 @@ function c_(e) {
|
|
|
10606
10606
|
var s = g.useCallback(function(p, m) {
|
|
10607
10607
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
10608
10608
|
return !i.current.allowPinchZoom;
|
|
10609
|
-
var w = Jn(p),
|
|
10609
|
+
var w = Jn(p), _ = n.current, x = "deltaX" in p ? p.deltaX : _[0] - w[0], E = "deltaY" in p ? p.deltaY : _[1] - w[1], C, k = p.target, S = Math.abs(x) > Math.abs(E) ? "h" : "v";
|
|
10610
10610
|
if ("touches" in p && S === "h" && k.type === "range")
|
|
10611
10611
|
return !1;
|
|
10612
|
-
var N =
|
|
10612
|
+
var N = _s(S, k);
|
|
10613
10613
|
if (!N)
|
|
10614
10614
|
return !0;
|
|
10615
|
-
if (N ? C = S : (C = S === "v" ? "h" : "v", N =
|
|
10615
|
+
if (N ? C = S : (C = S === "v" ? "h" : "v", N = _s(S, k)), !N)
|
|
10616
10616
|
return !1;
|
|
10617
10617
|
if (!r.current && "changedTouches" in p && (x || E) && (r.current = C), !C)
|
|
10618
10618
|
return !0;
|
|
10619
10619
|
var O = r.current || C;
|
|
10620
|
-
return
|
|
10620
|
+
return ay(O, m, p, O === "h" ? x : E);
|
|
10621
10621
|
}, []), l = g.useCallback(function(p) {
|
|
10622
10622
|
var m = p;
|
|
10623
10623
|
if (!(!Ht.length || Ht[Ht.length - 1] !== a)) {
|
|
10624
|
-
var w = "deltaY" in m ? bs(m) : Jn(m),
|
|
10625
|
-
return C.name === m.type && (C.target === m.target || m.target === C.shadowParent) &&
|
|
10624
|
+
var w = "deltaY" in m ? bs(m) : Jn(m), _ = t.current.filter(function(C) {
|
|
10625
|
+
return C.name === m.type && (C.target === m.target || m.target === C.shadowParent) && iy(C.delta, w);
|
|
10626
10626
|
})[0];
|
|
10627
|
-
if (
|
|
10627
|
+
if (_ && _.should) {
|
|
10628
10628
|
m.cancelable && m.preventDefault();
|
|
10629
10629
|
return;
|
|
10630
10630
|
}
|
|
10631
|
-
if (!
|
|
10631
|
+
if (!_) {
|
|
10632
10632
|
var x = (i.current.shards || []).map(Cs).filter(Boolean).filter(function(C) {
|
|
10633
10633
|
return C.contains(m.target);
|
|
10634
10634
|
}), E = x.length > 0 ? s(m, x[0]) : !i.current.noIsolation;
|
|
10635
10635
|
E && m.cancelable && m.preventDefault();
|
|
10636
10636
|
}
|
|
10637
10637
|
}
|
|
10638
|
-
}, []), u = g.useCallback(function(p, m, w,
|
|
10639
|
-
var x = { name: p, delta: m, target: w, should:
|
|
10638
|
+
}, []), u = g.useCallback(function(p, m, w, _) {
|
|
10639
|
+
var x = { name: p, delta: m, target: w, should: _, shadowParent: uy(w) };
|
|
10640
10640
|
t.current.push(x), setTimeout(function() {
|
|
10641
10641
|
t.current = t.current.filter(function(E) {
|
|
10642
10642
|
return E !== x;
|
|
@@ -10646,14 +10646,14 @@ function c_(e) {
|
|
|
10646
10646
|
n.current = Jn(p), r.current = void 0;
|
|
10647
10647
|
}, []), f = g.useCallback(function(p) {
|
|
10648
10648
|
u(p.type, bs(p), p.target, s(p, e.lockRef.current));
|
|
10649
|
-
}, []),
|
|
10649
|
+
}, []), y = g.useCallback(function(p) {
|
|
10650
10650
|
u(p.type, Jn(p), p.target, s(p, e.lockRef.current));
|
|
10651
10651
|
}, []);
|
|
10652
10652
|
g.useEffect(function() {
|
|
10653
10653
|
return Ht.push(a), e.setCallbacks({
|
|
10654
10654
|
onScrollCapture: f,
|
|
10655
10655
|
onWheelCapture: f,
|
|
10656
|
-
onTouchMoveCapture:
|
|
10656
|
+
onTouchMoveCapture: y
|
|
10657
10657
|
}), document.addEventListener("wheel", l, $t), document.addEventListener("touchmove", l, $t), document.addEventListener("touchstart", d, $t), function() {
|
|
10658
10658
|
Ht = Ht.filter(function(p) {
|
|
10659
10659
|
return p !== a;
|
|
@@ -10664,24 +10664,24 @@ function c_(e) {
|
|
|
10664
10664
|
return g.createElement(
|
|
10665
10665
|
g.Fragment,
|
|
10666
10666
|
null,
|
|
10667
|
-
b ? g.createElement(a, { styles:
|
|
10667
|
+
b ? g.createElement(a, { styles: sy(o) }) : null,
|
|
10668
10668
|
h ? g.createElement(pc, { gapMode: e.gapMode }) : null
|
|
10669
10669
|
);
|
|
10670
10670
|
}
|
|
10671
|
-
function
|
|
10671
|
+
function uy(e) {
|
|
10672
10672
|
for (var t = null; e !== null; )
|
|
10673
10673
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
10674
10674
|
return t;
|
|
10675
10675
|
}
|
|
10676
|
-
const
|
|
10676
|
+
const dy = dc(Kc, cy);
|
|
10677
10677
|
var Qc = g.forwardRef(function(e, t) {
|
|
10678
|
-
return g.createElement(Rr, Se({}, e, { ref: t, sideCar:
|
|
10678
|
+
return g.createElement(Rr, Se({}, e, { ref: t, sideCar: dy }));
|
|
10679
10679
|
});
|
|
10680
10680
|
Qc.classNames = Rr.classNames;
|
|
10681
|
-
var
|
|
10682
|
-
|
|
10681
|
+
var fy = [" ", "Enter", "ArrowUp", "ArrowDown"], py = [" ", "Enter"], Pn = "Select", [Mr, Pr, hy] = Rv(Pn), [rn, x5] = ma(Pn, [
|
|
10682
|
+
hy,
|
|
10683
10683
|
Dc
|
|
10684
|
-
]), Nr = Dc(), [
|
|
10684
|
+
]), Nr = Dc(), [my, xt] = rn(Pn), [gy, vy] = rn(Pn), eu = (e) => {
|
|
10685
10685
|
const {
|
|
10686
10686
|
__scopeSelect: t,
|
|
10687
10687
|
children: n,
|
|
@@ -10694,26 +10694,26 @@ var f_ = [" ", "Enter", "ArrowUp", "ArrowDown"], p_ = [" ", "Enter"], Pn = "Sele
|
|
|
10694
10694
|
dir: u,
|
|
10695
10695
|
name: d,
|
|
10696
10696
|
autoComplete: f,
|
|
10697
|
-
disabled:
|
|
10697
|
+
disabled: y,
|
|
10698
10698
|
required: h,
|
|
10699
10699
|
form: b
|
|
10700
|
-
} = e, p = Nr(t), [m, w] = g.useState(null), [
|
|
10700
|
+
} = e, p = Nr(t), [m, w] = g.useState(null), [_, x] = g.useState(null), [E, C] = g.useState(!1), k = Pv(u), [S = !1, N] = ys({
|
|
10701
10701
|
prop: r,
|
|
10702
10702
|
defaultProp: o,
|
|
10703
10703
|
onChange: a
|
|
10704
|
-
}), [O, Z] =
|
|
10704
|
+
}), [O, Z] = ys({
|
|
10705
10705
|
prop: i,
|
|
10706
10706
|
defaultProp: s,
|
|
10707
10707
|
onChange: l
|
|
10708
10708
|
}), K = g.useRef(null), H = m ? b || !!m.closest("form") : !0, [G, L] = g.useState(/* @__PURE__ */ new Set()), Y = Array.from(G).map((A) => A.props.value).join(";");
|
|
10709
10709
|
return /* @__PURE__ */ c.jsx(G0, { ...p, children: /* @__PURE__ */ c.jsxs(
|
|
10710
|
-
|
|
10710
|
+
my,
|
|
10711
10711
|
{
|
|
10712
10712
|
required: h,
|
|
10713
10713
|
scope: t,
|
|
10714
10714
|
trigger: m,
|
|
10715
10715
|
onTriggerChange: w,
|
|
10716
|
-
valueNode:
|
|
10716
|
+
valueNode: _,
|
|
10717
10717
|
onValueNodeChange: x,
|
|
10718
10718
|
valueNodeHasChildren: E,
|
|
10719
10719
|
onValueNodeHasChildrenChange: C,
|
|
@@ -10724,10 +10724,10 @@ var f_ = [" ", "Enter", "ArrowUp", "ArrowDown"], p_ = [" ", "Enter"], Pn = "Sele
|
|
|
10724
10724
|
onOpenChange: N,
|
|
10725
10725
|
dir: k,
|
|
10726
10726
|
triggerPointerDownPosRef: K,
|
|
10727
|
-
disabled:
|
|
10727
|
+
disabled: y,
|
|
10728
10728
|
children: [
|
|
10729
10729
|
/* @__PURE__ */ c.jsx(Mr.Provider, { scope: t, children: /* @__PURE__ */ c.jsx(
|
|
10730
|
-
|
|
10730
|
+
gy,
|
|
10731
10731
|
{
|
|
10732
10732
|
scope: e.__scopeSelect,
|
|
10733
10733
|
onNativeOptionAdd: g.useCallback((A) => {
|
|
@@ -10752,7 +10752,7 @@ var f_ = [" ", "Enter", "ArrowUp", "ArrowDown"], p_ = [" ", "Enter"], Pn = "Sele
|
|
|
10752
10752
|
autoComplete: f,
|
|
10753
10753
|
value: O,
|
|
10754
10754
|
onChange: (A) => Z(A.target.value),
|
|
10755
|
-
disabled:
|
|
10755
|
+
disabled: y,
|
|
10756
10756
|
form: b,
|
|
10757
10757
|
children: [
|
|
10758
10758
|
O === void 0 ? /* @__PURE__ */ c.jsx("option", { value: "" }) : null,
|
|
@@ -10768,9 +10768,9 @@ var f_ = [" ", "Enter", "ArrowUp", "ArrowDown"], p_ = [" ", "Enter"], Pn = "Sele
|
|
|
10768
10768
|
eu.displayName = Pn;
|
|
10769
10769
|
var tu = "SelectTrigger", nu = g.forwardRef(
|
|
10770
10770
|
(e, t) => {
|
|
10771
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Nr(n), i = xt(tu, n), s = i.disabled || r, l = ke(t, i.onTriggerChange), u = Pr(n), d = g.useRef("touch"), [f,
|
|
10772
|
-
const m = u().filter((x) => !x.disabled), w = m.find((x) => x.value === i.value),
|
|
10773
|
-
|
|
10771
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Nr(n), i = xt(tu, n), s = i.disabled || r, l = ke(t, i.onTriggerChange), u = Pr(n), d = g.useRef("touch"), [f, y, h] = wu((p) => {
|
|
10772
|
+
const m = u().filter((x) => !x.disabled), w = m.find((x) => x.value === i.value), _ = Eu(m, p, w);
|
|
10773
|
+
_ !== void 0 && i.onValueChange(_.value);
|
|
10774
10774
|
}), b = (p) => {
|
|
10775
10775
|
s || (i.onOpenChange(!0), h()), p && (i.triggerPointerDownPosRef.current = {
|
|
10776
10776
|
x: Math.round(p.pageX),
|
|
@@ -10803,7 +10803,7 @@ var tu = "SelectTrigger", nu = g.forwardRef(
|
|
|
10803
10803
|
}),
|
|
10804
10804
|
onKeyDown: ge(o.onKeyDown, (p) => {
|
|
10805
10805
|
const m = f.current !== "";
|
|
10806
|
-
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 &&
|
|
10806
|
+
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && y(p.key), !(m && p.key === " ") && fy.includes(p.key) && (b(), p.preventDefault());
|
|
10807
10807
|
})
|
|
10808
10808
|
}
|
|
10809
10809
|
) });
|
|
@@ -10827,13 +10827,13 @@ var ru = "SelectValue", ou = g.forwardRef(
|
|
|
10827
10827
|
}
|
|
10828
10828
|
);
|
|
10829
10829
|
ou.displayName = ru;
|
|
10830
|
-
var
|
|
10830
|
+
var yy = "SelectIcon", au = g.forwardRef(
|
|
10831
10831
|
(e, t) => {
|
|
10832
10832
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
10833
10833
|
return /* @__PURE__ */ c.jsx(xe.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
|
|
10834
10834
|
}
|
|
10835
10835
|
);
|
|
10836
|
-
au.displayName =
|
|
10836
|
+
au.displayName = yy;
|
|
10837
10837
|
var jt = "SelectContent", iu = g.forwardRef(
|
|
10838
10838
|
(e, t) => {
|
|
10839
10839
|
const n = xt(jt, e.__scopeSelect), [r, o] = g.useState();
|
|
@@ -10850,7 +10850,7 @@ var jt = "SelectContent", iu = g.forwardRef(
|
|
|
10850
10850
|
}
|
|
10851
10851
|
);
|
|
10852
10852
|
iu.displayName = jt;
|
|
10853
|
-
var Ue = 10, [su, wt] = rn(jt),
|
|
10853
|
+
var Ue = 10, [su, wt] = rn(jt), _y = "SelectContentImpl", lu = g.forwardRef(
|
|
10854
10854
|
(e, t) => {
|
|
10855
10855
|
const {
|
|
10856
10856
|
__scopeSelect: n,
|
|
@@ -10865,14 +10865,14 @@ var Ue = 10, [su, wt] = rn(jt), y_ = "SelectContentImpl", lu = g.forwardRef(
|
|
|
10865
10865
|
align: u,
|
|
10866
10866
|
alignOffset: d,
|
|
10867
10867
|
arrowPadding: f,
|
|
10868
|
-
collisionBoundary:
|
|
10868
|
+
collisionBoundary: y,
|
|
10869
10869
|
collisionPadding: h,
|
|
10870
10870
|
sticky: b,
|
|
10871
10871
|
hideWhenDetached: p,
|
|
10872
10872
|
avoidCollisions: m,
|
|
10873
10873
|
//
|
|
10874
10874
|
...w
|
|
10875
|
-
} = e,
|
|
10875
|
+
} = e, _ = xt(jt, n), [x, E] = g.useState(null), [C, k] = g.useState(null), S = ke(t, (I) => E(I)), [N, O] = g.useState(null), [Z, K] = g.useState(
|
|
10876
10876
|
null
|
|
10877
10877
|
), H = Pr(n), [G, L] = g.useState(!1), Y = g.useRef(!1);
|
|
10878
10878
|
g.useEffect(() => {
|
|
@@ -10894,7 +10894,7 @@ var Ue = 10, [su, wt] = rn(jt), y_ = "SelectContentImpl", lu = g.forwardRef(
|
|
|
10894
10894
|
g.useEffect(() => {
|
|
10895
10895
|
G && U();
|
|
10896
10896
|
}, [G, U]);
|
|
10897
|
-
const { onOpenChange: J, triggerPointerDownPosRef: z } =
|
|
10897
|
+
const { onOpenChange: J, triggerPointerDownPosRef: z } = _;
|
|
10898
10898
|
g.useEffect(() => {
|
|
10899
10899
|
if (x) {
|
|
10900
10900
|
let I = { x: 0, y: 0 };
|
|
@@ -10923,22 +10923,22 @@ var Ue = 10, [su, wt] = rn(jt), y_ = "SelectContentImpl", lu = g.forwardRef(
|
|
|
10923
10923
|
}), D = g.useCallback(
|
|
10924
10924
|
(I, X, oe) => {
|
|
10925
10925
|
const W = !Y.current && !oe;
|
|
10926
|
-
(
|
|
10926
|
+
(_.value !== void 0 && _.value === X || W) && (O(I), W && (Y.current = !0));
|
|
10927
10927
|
},
|
|
10928
|
-
[
|
|
10928
|
+
[_.value]
|
|
10929
10929
|
), M = g.useCallback(() => x == null ? void 0 : x.focus(), [x]), B = g.useCallback(
|
|
10930
10930
|
(I, X, oe) => {
|
|
10931
10931
|
const W = !Y.current && !oe;
|
|
10932
|
-
(
|
|
10932
|
+
(_.value !== void 0 && _.value === X || W) && K(I);
|
|
10933
10933
|
},
|
|
10934
|
-
[
|
|
10934
|
+
[_.value]
|
|
10935
10935
|
), de = r === "popper" ? No : cu, ce = de === No ? {
|
|
10936
10936
|
side: s,
|
|
10937
10937
|
sideOffset: l,
|
|
10938
10938
|
align: u,
|
|
10939
10939
|
alignOffset: d,
|
|
10940
10940
|
arrowPadding: f,
|
|
10941
|
-
collisionBoundary:
|
|
10941
|
+
collisionBoundary: y,
|
|
10942
10942
|
collisionPadding: h,
|
|
10943
10943
|
sticky: b,
|
|
10944
10944
|
hideWhenDetached: p,
|
|
@@ -10964,13 +10964,13 @@ var Ue = 10, [su, wt] = rn(jt), y_ = "SelectContentImpl", lu = g.forwardRef(
|
|
|
10964
10964
|
Sc,
|
|
10965
10965
|
{
|
|
10966
10966
|
asChild: !0,
|
|
10967
|
-
trapped:
|
|
10967
|
+
trapped: _.open,
|
|
10968
10968
|
onMountAutoFocus: (I) => {
|
|
10969
10969
|
I.preventDefault();
|
|
10970
10970
|
},
|
|
10971
10971
|
onUnmountAutoFocus: ge(o, (I) => {
|
|
10972
10972
|
var X;
|
|
10973
|
-
(X =
|
|
10973
|
+
(X = _.trigger) == null || X.focus({ preventScroll: !0 }), I.preventDefault();
|
|
10974
10974
|
}),
|
|
10975
10975
|
children: /* @__PURE__ */ c.jsx(
|
|
10976
10976
|
Ec,
|
|
@@ -10980,14 +10980,14 @@ var Ue = 10, [su, wt] = rn(jt), y_ = "SelectContentImpl", lu = g.forwardRef(
|
|
|
10980
10980
|
onEscapeKeyDown: a,
|
|
10981
10981
|
onPointerDownOutside: i,
|
|
10982
10982
|
onFocusOutside: (I) => I.preventDefault(),
|
|
10983
|
-
onDismiss: () =>
|
|
10983
|
+
onDismiss: () => _.onOpenChange(!1),
|
|
10984
10984
|
children: /* @__PURE__ */ c.jsx(
|
|
10985
10985
|
de,
|
|
10986
10986
|
{
|
|
10987
10987
|
role: "listbox",
|
|
10988
|
-
id:
|
|
10989
|
-
"data-state":
|
|
10990
|
-
dir:
|
|
10988
|
+
id: _.contentId,
|
|
10989
|
+
"data-state": _.open ? "open" : "closed",
|
|
10990
|
+
dir: _.dir,
|
|
10991
10991
|
onContextMenu: (I) => I.preventDefault(),
|
|
10992
10992
|
...w,
|
|
10993
10993
|
...ce,
|
|
@@ -11022,9 +11022,9 @@ var Ue = 10, [su, wt] = rn(jt), y_ = "SelectContentImpl", lu = g.forwardRef(
|
|
|
11022
11022
|
);
|
|
11023
11023
|
}
|
|
11024
11024
|
);
|
|
11025
|
-
lu.displayName =
|
|
11026
|
-
var
|
|
11027
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = xt(jt, n), i = wt(jt, n), [s, l] = g.useState(null), [u, d] = g.useState(null), f = ke(t, (S) => d(S)),
|
|
11025
|
+
lu.displayName = _y;
|
|
11026
|
+
var by = "SelectItemAlignedPosition", cu = g.forwardRef((e, t) => {
|
|
11027
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = xt(jt, n), i = wt(jt, n), [s, l] = g.useState(null), [u, d] = g.useState(null), f = ke(t, (S) => d(S)), y = Pr(n), h = g.useRef(!1), b = g.useRef(!0), { viewport: p, selectedItem: m, selectedItemText: w, focusSelectedItem: _ } = i, x = g.useCallback(() => {
|
|
11028
11028
|
if (a.trigger && a.valueNode && s && u && p && m && w) {
|
|
11029
11029
|
const S = a.trigger.getBoundingClientRect(), N = u.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), Z = w.getBoundingClientRect();
|
|
11030
11030
|
if (a.dir !== "rtl") {
|
|
@@ -11045,7 +11045,7 @@ var b_ = "SelectItemAlignedPosition", cu = g.forwardRef((e, t) => {
|
|
|
11045
11045
|
]);
|
|
11046
11046
|
s.style.minWidth = be + "px", s.style.right = Ye + "px";
|
|
11047
11047
|
}
|
|
11048
|
-
const K =
|
|
11048
|
+
const K = y(), H = window.innerHeight - Ue * 2, G = p.scrollHeight, L = window.getComputedStyle(u), Y = parseInt(L.borderTopWidth, 10), A = parseInt(L.paddingTop, 10), U = parseInt(L.borderBottomWidth, 10), J = parseInt(L.paddingBottom, 10), z = Y + A + G + J + U, q = Math.min(m.offsetHeight * 5, z), T = window.getComputedStyle(p), D = parseInt(T.paddingTop, 10), M = parseInt(T.paddingBottom, 10), B = S.top + S.height / 2 - Ue, de = H - B, ce = m.offsetHeight / 2, I = m.offsetTop + ce, X = Y + A + I, oe = z - X;
|
|
11049
11049
|
if (X <= B) {
|
|
11050
11050
|
const W = K.length > 0 && m === K[K.length - 1].ref.current;
|
|
11051
11051
|
s.style.bottom = "0px";
|
|
@@ -11068,7 +11068,7 @@ var b_ = "SelectItemAlignedPosition", cu = g.forwardRef((e, t) => {
|
|
|
11068
11068
|
s.style.margin = `${Ue}px 0`, s.style.minHeight = q + "px", s.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
|
|
11069
11069
|
}
|
|
11070
11070
|
}, [
|
|
11071
|
-
|
|
11071
|
+
y,
|
|
11072
11072
|
a.trigger,
|
|
11073
11073
|
a.valueNode,
|
|
11074
11074
|
s,
|
|
@@ -11086,12 +11086,12 @@ var b_ = "SelectItemAlignedPosition", cu = g.forwardRef((e, t) => {
|
|
|
11086
11086
|
}, [u]);
|
|
11087
11087
|
const k = g.useCallback(
|
|
11088
11088
|
(S) => {
|
|
11089
|
-
S && b.current === !0 && (x(),
|
|
11089
|
+
S && b.current === !0 && (x(), _ == null || _(), b.current = !1);
|
|
11090
11090
|
},
|
|
11091
|
-
[x,
|
|
11091
|
+
[x, _]
|
|
11092
11092
|
);
|
|
11093
11093
|
return /* @__PURE__ */ c.jsx(
|
|
11094
|
-
|
|
11094
|
+
xy,
|
|
11095
11095
|
{
|
|
11096
11096
|
scope: n,
|
|
11097
11097
|
contentWrapper: s,
|
|
@@ -11127,8 +11127,8 @@ var b_ = "SelectItemAlignedPosition", cu = g.forwardRef((e, t) => {
|
|
|
11127
11127
|
}
|
|
11128
11128
|
);
|
|
11129
11129
|
});
|
|
11130
|
-
cu.displayName =
|
|
11131
|
-
var
|
|
11130
|
+
cu.displayName = by;
|
|
11131
|
+
var Cy = "SelectPopperPosition", No = g.forwardRef((e, t) => {
|
|
11132
11132
|
const {
|
|
11133
11133
|
__scopeSelect: n,
|
|
11134
11134
|
align: r = "start",
|
|
@@ -11156,8 +11156,8 @@ var C_ = "SelectPopperPosition", No = g.forwardRef((e, t) => {
|
|
|
11156
11156
|
}
|
|
11157
11157
|
);
|
|
11158
11158
|
});
|
|
11159
|
-
No.displayName =
|
|
11160
|
-
var [
|
|
11159
|
+
No.displayName = Cy;
|
|
11160
|
+
var [xy, ka] = rn(jt, {}), Io = "SelectViewport", uu = g.forwardRef(
|
|
11161
11161
|
(e, t) => {
|
|
11162
11162
|
const { __scopeSelect: n, nonce: r, ...o } = e, a = wt(Io, n), i = ka(Io, n), s = ke(t, a.onViewportChange), l = g.useRef(0);
|
|
11163
11163
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -11191,13 +11191,13 @@ var [x_, ka] = rn(jt, {}), Io = "SelectViewport", uu = g.forwardRef(
|
|
|
11191
11191
|
...o.style
|
|
11192
11192
|
},
|
|
11193
11193
|
onScroll: ge(o.onScroll, (u) => {
|
|
11194
|
-
const d = u.currentTarget, { contentWrapper: f, shouldExpandOnScrollRef:
|
|
11195
|
-
if (
|
|
11194
|
+
const d = u.currentTarget, { contentWrapper: f, shouldExpandOnScrollRef: y } = i;
|
|
11195
|
+
if (y != null && y.current && f) {
|
|
11196
11196
|
const h = Math.abs(l.current - d.scrollTop);
|
|
11197
11197
|
if (h > 0) {
|
|
11198
11198
|
const b = window.innerHeight - Ue * 2, p = parseFloat(f.style.minHeight), m = parseFloat(f.style.height), w = Math.max(p, m);
|
|
11199
11199
|
if (w < b) {
|
|
11200
|
-
const
|
|
11200
|
+
const _ = w + h, x = Math.min(b, _), E = _ - x;
|
|
11201
11201
|
f.style.height = x + "px", f.style.bottom === "0px" && (d.scrollTop = E > 0 ? E : 0, f.style.justifyContent = "flex-end");
|
|
11202
11202
|
}
|
|
11203
11203
|
}
|
|
@@ -11210,21 +11210,21 @@ var [x_, ka] = rn(jt, {}), Io = "SelectViewport", uu = g.forwardRef(
|
|
|
11210
11210
|
}
|
|
11211
11211
|
);
|
|
11212
11212
|
uu.displayName = Io;
|
|
11213
|
-
var du = "SelectGroup", [
|
|
11213
|
+
var du = "SelectGroup", [wy, Ey] = rn(du), fu = g.forwardRef(
|
|
11214
11214
|
(e, t) => {
|
|
11215
11215
|
const { __scopeSelect: n, ...r } = e, o = ga();
|
|
11216
|
-
return /* @__PURE__ */ c.jsx(
|
|
11216
|
+
return /* @__PURE__ */ c.jsx(wy, { scope: n, id: o, children: /* @__PURE__ */ c.jsx(xe.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
11217
11217
|
}
|
|
11218
11218
|
);
|
|
11219
11219
|
fu.displayName = du;
|
|
11220
|
-
var pu = "SelectLabel",
|
|
11220
|
+
var pu = "SelectLabel", ky = g.forwardRef(
|
|
11221
11221
|
(e, t) => {
|
|
11222
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
11222
|
+
const { __scopeSelect: n, ...r } = e, o = Ey(pu, n);
|
|
11223
11223
|
return /* @__PURE__ */ c.jsx(xe.div, { id: o.id, ...r, ref: t });
|
|
11224
11224
|
}
|
|
11225
11225
|
);
|
|
11226
|
-
|
|
11227
|
-
var pr = "SelectItem", [
|
|
11226
|
+
ky.displayName = pu;
|
|
11227
|
+
var pr = "SelectItem", [Sy, hu] = rn(pr), mu = g.forwardRef(
|
|
11228
11228
|
(e, t) => {
|
|
11229
11229
|
const {
|
|
11230
11230
|
__scopeSelect: n,
|
|
@@ -11232,11 +11232,11 @@ var pr = "SelectItem", [S_, hu] = rn(pr), mu = g.forwardRef(
|
|
|
11232
11232
|
disabled: o = !1,
|
|
11233
11233
|
textValue: a,
|
|
11234
11234
|
...i
|
|
11235
|
-
} = e, s = xt(pr, n), l = wt(pr, n), u = s.value === r, [d, f] = g.useState(a ?? ""), [
|
|
11235
|
+
} = e, s = xt(pr, n), l = wt(pr, n), u = s.value === r, [d, f] = g.useState(a ?? ""), [y, h] = g.useState(!1), b = ke(
|
|
11236
11236
|
t,
|
|
11237
|
-
(
|
|
11237
|
+
(_) => {
|
|
11238
11238
|
var x;
|
|
11239
|
-
return (x = l.itemRefCallback) == null ? void 0 : x.call(l,
|
|
11239
|
+
return (x = l.itemRefCallback) == null ? void 0 : x.call(l, _, r, o);
|
|
11240
11240
|
}
|
|
11241
11241
|
), p = ga(), m = g.useRef("touch"), w = () => {
|
|
11242
11242
|
o || (s.onValueChange(r), s.onOpenChange(!1));
|
|
@@ -11246,15 +11246,15 @@ var pr = "SelectItem", [S_, hu] = rn(pr), mu = g.forwardRef(
|
|
|
11246
11246
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
11247
11247
|
);
|
|
11248
11248
|
return /* @__PURE__ */ c.jsx(
|
|
11249
|
-
|
|
11249
|
+
Sy,
|
|
11250
11250
|
{
|
|
11251
11251
|
scope: n,
|
|
11252
11252
|
value: r,
|
|
11253
11253
|
disabled: o,
|
|
11254
11254
|
textId: p,
|
|
11255
11255
|
isSelected: u,
|
|
11256
|
-
onItemTextChange: g.useCallback((
|
|
11257
|
-
f((x) => x || ((
|
|
11256
|
+
onItemTextChange: g.useCallback((_) => {
|
|
11257
|
+
f((x) => x || ((_ == null ? void 0 : _.textContent) ?? "").trim());
|
|
11258
11258
|
}, []),
|
|
11259
11259
|
children: /* @__PURE__ */ c.jsx(
|
|
11260
11260
|
Mr.ItemSlot,
|
|
@@ -11268,8 +11268,8 @@ var pr = "SelectItem", [S_, hu] = rn(pr), mu = g.forwardRef(
|
|
|
11268
11268
|
{
|
|
11269
11269
|
role: "option",
|
|
11270
11270
|
"aria-labelledby": p,
|
|
11271
|
-
"data-highlighted":
|
|
11272
|
-
"aria-selected": u &&
|
|
11271
|
+
"data-highlighted": y ? "" : void 0,
|
|
11272
|
+
"aria-selected": u && y,
|
|
11273
11273
|
"data-state": u ? "checked" : "unchecked",
|
|
11274
11274
|
"aria-disabled": o || void 0,
|
|
11275
11275
|
"data-disabled": o ? "" : void 0,
|
|
@@ -11284,20 +11284,20 @@ var pr = "SelectItem", [S_, hu] = rn(pr), mu = g.forwardRef(
|
|
|
11284
11284
|
onPointerUp: ge(i.onPointerUp, () => {
|
|
11285
11285
|
m.current === "mouse" && w();
|
|
11286
11286
|
}),
|
|
11287
|
-
onPointerDown: ge(i.onPointerDown, (
|
|
11288
|
-
m.current =
|
|
11287
|
+
onPointerDown: ge(i.onPointerDown, (_) => {
|
|
11288
|
+
m.current = _.pointerType;
|
|
11289
11289
|
}),
|
|
11290
|
-
onPointerMove: ge(i.onPointerMove, (
|
|
11290
|
+
onPointerMove: ge(i.onPointerMove, (_) => {
|
|
11291
11291
|
var x;
|
|
11292
|
-
m.current =
|
|
11292
|
+
m.current = _.pointerType, o ? (x = l.onItemLeave) == null || x.call(l) : m.current === "mouse" && _.currentTarget.focus({ preventScroll: !0 });
|
|
11293
11293
|
}),
|
|
11294
|
-
onPointerLeave: ge(i.onPointerLeave, (
|
|
11294
|
+
onPointerLeave: ge(i.onPointerLeave, (_) => {
|
|
11295
11295
|
var x;
|
|
11296
|
-
|
|
11296
|
+
_.currentTarget === document.activeElement && ((x = l.onItemLeave) == null || x.call(l));
|
|
11297
11297
|
}),
|
|
11298
|
-
onKeyDown: ge(i.onKeyDown, (
|
|
11298
|
+
onKeyDown: ge(i.onKeyDown, (_) => {
|
|
11299
11299
|
var x;
|
|
11300
|
-
((x = l.searchRef) == null ? void 0 : x.current) !== "" &&
|
|
11300
|
+
((x = l.searchRef) == null ? void 0 : x.current) !== "" && _.key === " " || (py.includes(_.key) && w(), _.key === " " && _.preventDefault());
|
|
11301
11301
|
})
|
|
11302
11302
|
}
|
|
11303
11303
|
)
|
|
@@ -11310,33 +11310,33 @@ var pr = "SelectItem", [S_, hu] = rn(pr), mu = g.forwardRef(
|
|
|
11310
11310
|
mu.displayName = pr;
|
|
11311
11311
|
var mn = "SelectItemText", gu = g.forwardRef(
|
|
11312
11312
|
(e, t) => {
|
|
11313
|
-
const { __scopeSelect: n, className: r, style: o, ...a } = e, i = xt(mn, n), s = wt(mn, n), l = hu(mn, n), u =
|
|
11313
|
+
const { __scopeSelect: n, className: r, style: o, ...a } = e, i = xt(mn, n), s = wt(mn, n), l = hu(mn, n), u = vy(mn, n), [d, f] = g.useState(null), y = ke(
|
|
11314
11314
|
t,
|
|
11315
11315
|
(w) => f(w),
|
|
11316
11316
|
l.onItemTextChange,
|
|
11317
11317
|
(w) => {
|
|
11318
|
-
var
|
|
11319
|
-
return (
|
|
11318
|
+
var _;
|
|
11319
|
+
return (_ = s.itemTextRefCallback) == null ? void 0 : _.call(s, w, l.value, l.disabled);
|
|
11320
11320
|
}
|
|
11321
11321
|
), h = d == null ? void 0 : d.textContent, b = g.useMemo(
|
|
11322
11322
|
() => /* @__PURE__ */ c.jsx("option", { value: l.value, disabled: l.disabled, children: h }, l.value),
|
|
11323
11323
|
[l.disabled, l.value, h]
|
|
11324
11324
|
), { onNativeOptionAdd: p, onNativeOptionRemove: m } = u;
|
|
11325
11325
|
return $e(() => (p(b), () => m(b)), [p, m, b]), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
11326
|
-
/* @__PURE__ */ c.jsx(xe.span, { id: l.textId, ...a, ref:
|
|
11326
|
+
/* @__PURE__ */ c.jsx(xe.span, { id: l.textId, ...a, ref: y }),
|
|
11327
11327
|
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? gr.createPortal(a.children, i.valueNode) : null
|
|
11328
11328
|
] });
|
|
11329
11329
|
}
|
|
11330
11330
|
);
|
|
11331
11331
|
gu.displayName = mn;
|
|
11332
|
-
var vu = "SelectItemIndicator",
|
|
11332
|
+
var vu = "SelectItemIndicator", yu = g.forwardRef(
|
|
11333
11333
|
(e, t) => {
|
|
11334
11334
|
const { __scopeSelect: n, ...r } = e;
|
|
11335
11335
|
return hu(vu, n).isSelected ? /* @__PURE__ */ c.jsx(xe.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
11336
11336
|
}
|
|
11337
11337
|
);
|
|
11338
|
-
|
|
11339
|
-
var Lo = "SelectScrollUpButton",
|
|
11338
|
+
yu.displayName = vu;
|
|
11339
|
+
var Lo = "SelectScrollUpButton", qy = g.forwardRef((e, t) => {
|
|
11340
11340
|
const n = wt(Lo, e.__scopeSelect), r = ka(Lo, e.__scopeSelect), [o, a] = g.useState(!1), i = ke(t, r.onScrollButtonChange);
|
|
11341
11341
|
return $e(() => {
|
|
11342
11342
|
if (n.viewport && n.isPositioned) {
|
|
@@ -11359,8 +11359,8 @@ var Lo = "SelectScrollUpButton", q_ = g.forwardRef((e, t) => {
|
|
|
11359
11359
|
}
|
|
11360
11360
|
) : null;
|
|
11361
11361
|
});
|
|
11362
|
-
|
|
11363
|
-
var Oo = "SelectScrollDownButton",
|
|
11362
|
+
qy.displayName = Lo;
|
|
11363
|
+
var Oo = "SelectScrollDownButton", _u = g.forwardRef((e, t) => {
|
|
11364
11364
|
const n = wt(Oo, e.__scopeSelect), r = ka(Oo, e.__scopeSelect), [o, a] = g.useState(!1), i = ke(t, r.onScrollButtonChange);
|
|
11365
11365
|
return $e(() => {
|
|
11366
11366
|
if (n.viewport && n.isPositioned) {
|
|
@@ -11383,7 +11383,7 @@ var Oo = "SelectScrollDownButton", yu = g.forwardRef((e, t) => {
|
|
|
11383
11383
|
}
|
|
11384
11384
|
) : null;
|
|
11385
11385
|
});
|
|
11386
|
-
|
|
11386
|
+
_u.displayName = Oo;
|
|
11387
11387
|
var bu = g.forwardRef((e, t) => {
|
|
11388
11388
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = wt("SelectScrollButton", n), i = g.useRef(null), s = Pr(n), l = g.useCallback(() => {
|
|
11389
11389
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
@@ -11411,20 +11411,20 @@ var bu = g.forwardRef((e, t) => {
|
|
|
11411
11411
|
})
|
|
11412
11412
|
}
|
|
11413
11413
|
);
|
|
11414
|
-
}),
|
|
11414
|
+
}), zy = "SelectSeparator", Ty = g.forwardRef(
|
|
11415
11415
|
(e, t) => {
|
|
11416
11416
|
const { __scopeSelect: n, ...r } = e;
|
|
11417
11417
|
return /* @__PURE__ */ c.jsx(xe.div, { "aria-hidden": !0, ...r, ref: t });
|
|
11418
11418
|
}
|
|
11419
11419
|
);
|
|
11420
|
-
|
|
11421
|
-
var Ao = "SelectArrow",
|
|
11420
|
+
Ty.displayName = zy;
|
|
11421
|
+
var Ao = "SelectArrow", jy = g.forwardRef(
|
|
11422
11422
|
(e, t) => {
|
|
11423
11423
|
const { __scopeSelect: n, ...r } = e, o = Nr(n), a = xt(Ao, n), i = wt(Ao, n);
|
|
11424
11424
|
return a.open && i.position === "popper" ? /* @__PURE__ */ c.jsx(K0, { ...o, ...r, ref: t }) : null;
|
|
11425
11425
|
}
|
|
11426
11426
|
);
|
|
11427
|
-
|
|
11427
|
+
jy.displayName = Ao;
|
|
11428
11428
|
function Cu(e) {
|
|
11429
11429
|
return e === "" || e === void 0;
|
|
11430
11430
|
}
|
|
@@ -11460,18 +11460,18 @@ function wu(e) {
|
|
|
11460
11460
|
}
|
|
11461
11461
|
function Eu(e, t, n) {
|
|
11462
11462
|
const r = t.length > 1 && Array.from(t).every((s) => s === t[0]) ? t[0] : t, o = n ? e.indexOf(n) : -1;
|
|
11463
|
-
let a =
|
|
11463
|
+
let a = Ry(e, Math.max(o, 0));
|
|
11464
11464
|
r.length === 1 && (a = a.filter((s) => s !== n));
|
|
11465
11465
|
const i = a.find(
|
|
11466
11466
|
(s) => s.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
11467
11467
|
);
|
|
11468
11468
|
return i !== n ? i : void 0;
|
|
11469
11469
|
}
|
|
11470
|
-
function
|
|
11470
|
+
function Ry(e, t) {
|
|
11471
11471
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
11472
11472
|
}
|
|
11473
|
-
var
|
|
11474
|
-
const
|
|
11473
|
+
var My = eu, Py = nu, Ny = ou, Iy = au, Ly = iu, Oy = uu, Ay = fu, Dy = mu, Fy = gu, $y = yu, Hy = _u, Uy = "_1wo163v0", By = "_1wo163v1", Vy = "_1wo163v2", Gy = "_1wo163v3", Wy = "_1wo163v4", Yy = "_1wo163v5", Ky = "_1wo163v6", Zy = "_1wo163v7", Xy = "_1wo163v8", Jy = "_1wo163v9";
|
|
11474
|
+
const Qy = ({
|
|
11475
11475
|
label: e,
|
|
11476
11476
|
items: t,
|
|
11477
11477
|
defaultValue: n,
|
|
@@ -11487,64 +11487,64 @@ const Q_ = ({
|
|
|
11487
11487
|
},
|
|
11488
11488
|
[o]
|
|
11489
11489
|
);
|
|
11490
|
-
return /* @__PURE__ */ c.jsxs("div", { className: ne("sid-dropdown",
|
|
11491
|
-
/* @__PURE__ */ c.jsx("label", { className: ne("sid-dropdown__trigger__label",
|
|
11490
|
+
return /* @__PURE__ */ c.jsxs("div", { className: ne("sid-dropdown", Jy), children: [
|
|
11491
|
+
/* @__PURE__ */ c.jsx("label", { className: ne("sid-dropdown__trigger__label", By), children: e }),
|
|
11492
11492
|
/* @__PURE__ */ c.jsxs(
|
|
11493
|
-
|
|
11493
|
+
My,
|
|
11494
11494
|
{
|
|
11495
11495
|
disabled: s,
|
|
11496
11496
|
onValueChange: d,
|
|
11497
11497
|
defaultValue: n,
|
|
11498
11498
|
children: [
|
|
11499
11499
|
/* @__PURE__ */ c.jsxs(
|
|
11500
|
-
|
|
11500
|
+
Py,
|
|
11501
11501
|
{
|
|
11502
|
-
className: ne("sid-dropdown__trigger",
|
|
11502
|
+
className: ne("sid-dropdown__trigger", Uy, a),
|
|
11503
11503
|
children: [
|
|
11504
|
-
/* @__PURE__ */ c.jsx("div", { className: ne("sid-dropdown__trigger__input",
|
|
11505
|
-
/* @__PURE__ */ c.jsx(
|
|
11504
|
+
/* @__PURE__ */ c.jsx("div", { className: ne("sid-dropdown__trigger__input", Vy), children: /* @__PURE__ */ c.jsx(Ny, { placeholder: r }) }),
|
|
11505
|
+
/* @__PURE__ */ c.jsx(Iy, { className: Ky, children: /* @__PURE__ */ c.jsx(
|
|
11506
11506
|
Gl,
|
|
11507
11507
|
{
|
|
11508
|
-
className: ne("sid-dropdown__trigger__icon",
|
|
11508
|
+
className: ne("sid-dropdown__trigger__icon", Zy)
|
|
11509
11509
|
}
|
|
11510
11510
|
) })
|
|
11511
11511
|
]
|
|
11512
11512
|
}
|
|
11513
11513
|
),
|
|
11514
11514
|
/* @__PURE__ */ c.jsxs(
|
|
11515
|
-
|
|
11515
|
+
Ly,
|
|
11516
11516
|
{
|
|
11517
11517
|
...i,
|
|
11518
11518
|
className: ne(
|
|
11519
11519
|
"sid-dropdown__popover",
|
|
11520
|
-
|
|
11520
|
+
Gy,
|
|
11521
11521
|
i == null ? void 0 : i.className
|
|
11522
11522
|
),
|
|
11523
11523
|
children: [
|
|
11524
11524
|
/* @__PURE__ */ c.jsx(
|
|
11525
|
-
|
|
11525
|
+
Oy,
|
|
11526
11526
|
{
|
|
11527
|
-
className: ne("sid-dropdown__viewport",
|
|
11528
|
-
children: /* @__PURE__ */ c.jsx(
|
|
11529
|
-
|
|
11527
|
+
className: ne("sid-dropdown__viewport", Wy),
|
|
11528
|
+
children: /* @__PURE__ */ c.jsx(Ay, { children: t.map((f) => /* @__PURE__ */ c.jsxs(
|
|
11529
|
+
Dy,
|
|
11530
11530
|
{
|
|
11531
11531
|
className: ne(
|
|
11532
11532
|
"sid-dropdown__item",
|
|
11533
11533
|
f.value === l && "sid-dropdown__item--selected",
|
|
11534
|
-
|
|
11534
|
+
Yy
|
|
11535
11535
|
),
|
|
11536
11536
|
value: f.value,
|
|
11537
11537
|
textValue: f.textValue,
|
|
11538
11538
|
children: [
|
|
11539
|
-
/* @__PURE__ */ c.jsx(
|
|
11540
|
-
/* @__PURE__ */ c.jsx($
|
|
11539
|
+
/* @__PURE__ */ c.jsx(Fy, { children: f.label }),
|
|
11540
|
+
/* @__PURE__ */ c.jsx($y, { className: Xy, children: /* @__PURE__ */ c.jsx(Fm, { className: "sid-dropdown__item--selected__icon" }) })
|
|
11541
11541
|
]
|
|
11542
11542
|
},
|
|
11543
11543
|
f.value
|
|
11544
11544
|
)) })
|
|
11545
11545
|
}
|
|
11546
11546
|
),
|
|
11547
|
-
/* @__PURE__ */ c.jsx(
|
|
11547
|
+
/* @__PURE__ */ c.jsx(Hy, {})
|
|
11548
11548
|
]
|
|
11549
11549
|
}
|
|
11550
11550
|
)
|
|
@@ -11552,30 +11552,30 @@ const Q_ = ({
|
|
|
11552
11552
|
}
|
|
11553
11553
|
)
|
|
11554
11554
|
] });
|
|
11555
|
-
}, ao = "rovingFocusGroup.onEntryFocus",
|
|
11555
|
+
}, ao = "rovingFocusGroup.onEntryFocus", e_ = {
|
|
11556
11556
|
bubbles: !1,
|
|
11557
11557
|
cancelable: !0
|
|
11558
|
-
}, Sa = "RovingFocusGroup", [Do, ku,
|
|
11559
|
-
|
|
11560
|
-
]), [
|
|
11558
|
+
}, Sa = "RovingFocusGroup", [Do, ku, t_] = Jl(Sa), [n_, Su] = Nt(Sa, [
|
|
11559
|
+
t_
|
|
11560
|
+
]), [r_, o_] = n_(Sa), a_ = /* @__PURE__ */ Le((e, t) => /* @__PURE__ */ _e(Do.Provider, {
|
|
11561
11561
|
scope: e.__scopeRovingFocusGroup
|
|
11562
|
-
}, /* @__PURE__ */
|
|
11562
|
+
}, /* @__PURE__ */ _e(Do.Slot, {
|
|
11563
11563
|
scope: e.__scopeRovingFocusGroup
|
|
11564
|
-
}, /* @__PURE__ */
|
|
11564
|
+
}, /* @__PURE__ */ _e(i_, Ce({}, e, {
|
|
11565
11565
|
ref: t
|
|
11566
|
-
}))))),
|
|
11567
|
-
const { __scopeRovingFocusGroup: n, orientation: r, loop: o = !1, dir: a, currentTabStopId: i, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: l, onEntryFocus: u, ...d } = e, f = Ze(null),
|
|
11566
|
+
}))))), i_ = /* @__PURE__ */ Le((e, t) => {
|
|
11567
|
+
const { __scopeRovingFocusGroup: n, orientation: r, loop: o = !1, dir: a, currentTabStopId: i, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: l, onEntryFocus: u, ...d } = e, f = Ze(null), y = wn(t, f), h = fa(a), [b = null, p] = Sr({
|
|
11568
11568
|
prop: i,
|
|
11569
11569
|
defaultProp: s,
|
|
11570
11570
|
onChange: l
|
|
11571
|
-
}), [m, w] = ve(!1),
|
|
11572
|
-
return
|
|
11571
|
+
}), [m, w] = ve(!1), _ = da(u), x = ku(n), E = Ze(!1), [C, k] = ve(0);
|
|
11572
|
+
return ye(() => {
|
|
11573
11573
|
const S = f.current;
|
|
11574
11574
|
if (S)
|
|
11575
|
-
return S.addEventListener(ao,
|
|
11575
|
+
return S.addEventListener(ao, _), () => S.removeEventListener(ao, _);
|
|
11576
11576
|
}, [
|
|
11577
|
-
|
|
11578
|
-
]), /* @__PURE__ */
|
|
11577
|
+
_
|
|
11578
|
+
]), /* @__PURE__ */ _e(r_, {
|
|
11579
11579
|
scope: n,
|
|
11580
11580
|
orientation: r,
|
|
11581
11581
|
dir: h,
|
|
@@ -11603,11 +11603,11 @@ const Q_ = ({
|
|
|
11603
11603
|
),
|
|
11604
11604
|
[]
|
|
11605
11605
|
)
|
|
11606
|
-
}, /* @__PURE__ */
|
|
11606
|
+
}, /* @__PURE__ */ _e(It.div, Ce({
|
|
11607
11607
|
tabIndex: m || C === 0 ? -1 : 0,
|
|
11608
11608
|
"data-orientation": r
|
|
11609
11609
|
}, d, {
|
|
11610
|
-
ref:
|
|
11610
|
+
ref: y,
|
|
11611
11611
|
style: {
|
|
11612
11612
|
outline: "none",
|
|
11613
11613
|
...e.style
|
|
@@ -11618,7 +11618,7 @@ const Q_ = ({
|
|
|
11618
11618
|
onFocus: Je(e.onFocus, (S) => {
|
|
11619
11619
|
const N = !E.current;
|
|
11620
11620
|
if (S.target === S.currentTarget && N && !m) {
|
|
11621
|
-
const O = new CustomEvent(ao,
|
|
11621
|
+
const O = new CustomEvent(ao, e_);
|
|
11622
11622
|
if (S.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
|
|
11623
11623
|
const Z = x().filter(
|
|
11624
11624
|
(L) => L.focusable
|
|
@@ -11643,21 +11643,21 @@ const Q_ = ({
|
|
|
11643
11643
|
() => w(!1)
|
|
11644
11644
|
)
|
|
11645
11645
|
})));
|
|
11646
|
-
}),
|
|
11647
|
-
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, tabStopId: a, ...i } = e, s = ec(), l = a || s, u =
|
|
11648
|
-
return
|
|
11646
|
+
}), s_ = "RovingFocusGroupItem", l_ = /* @__PURE__ */ Le((e, t) => {
|
|
11647
|
+
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, tabStopId: a, ...i } = e, s = ec(), l = a || s, u = o_(s_, n), d = u.currentTabStopId === l, f = ku(n), { onFocusableItemAdd: y, onFocusableItemRemove: h } = u;
|
|
11648
|
+
return ye(() => {
|
|
11649
11649
|
if (r)
|
|
11650
|
-
return
|
|
11650
|
+
return y(), () => h();
|
|
11651
11651
|
}, [
|
|
11652
11652
|
r,
|
|
11653
|
-
|
|
11653
|
+
y,
|
|
11654
11654
|
h
|
|
11655
|
-
]), /* @__PURE__ */
|
|
11655
|
+
]), /* @__PURE__ */ _e(Do.ItemSlot, {
|
|
11656
11656
|
scope: n,
|
|
11657
11657
|
id: l,
|
|
11658
11658
|
focusable: r,
|
|
11659
11659
|
active: o
|
|
11660
|
-
}, /* @__PURE__ */
|
|
11660
|
+
}, /* @__PURE__ */ _e(It.span, Ce({
|
|
11661
11661
|
tabIndex: d ? 0 : -1,
|
|
11662
11662
|
"data-orientation": u.orientation
|
|
11663
11663
|
}, i, {
|
|
@@ -11676,7 +11676,7 @@ const Q_ = ({
|
|
|
11676
11676
|
}
|
|
11677
11677
|
if (b.target !== b.currentTarget)
|
|
11678
11678
|
return;
|
|
11679
|
-
const p =
|
|
11679
|
+
const p = d_(b, u.orientation, u.dir);
|
|
11680
11680
|
if (p !== void 0) {
|
|
11681
11681
|
b.preventDefault();
|
|
11682
11682
|
let m = f().filter(
|
|
@@ -11689,7 +11689,7 @@ const Q_ = ({
|
|
|
11689
11689
|
else if (p === "prev" || p === "next") {
|
|
11690
11690
|
p === "prev" && m.reverse();
|
|
11691
11691
|
const w = m.indexOf(b.currentTarget);
|
|
11692
|
-
m = u.loop ?
|
|
11692
|
+
m = u.loop ? f_(m, w + 1) : m.slice(w + 1);
|
|
11693
11693
|
}
|
|
11694
11694
|
setTimeout(
|
|
11695
11695
|
() => qu(m)
|
|
@@ -11697,7 +11697,7 @@ const Q_ = ({
|
|
|
11697
11697
|
}
|
|
11698
11698
|
})
|
|
11699
11699
|
})));
|
|
11700
|
-
}),
|
|
11700
|
+
}), c_ = {
|
|
11701
11701
|
ArrowLeft: "prev",
|
|
11702
11702
|
ArrowUp: "prev",
|
|
11703
11703
|
ArrowRight: "next",
|
|
@@ -11707,11 +11707,11 @@ const Q_ = ({
|
|
|
11707
11707
|
PageDown: "last",
|
|
11708
11708
|
End: "last"
|
|
11709
11709
|
};
|
|
11710
|
-
function
|
|
11710
|
+
function u_(e, t) {
|
|
11711
11711
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
11712
11712
|
}
|
|
11713
|
-
function
|
|
11714
|
-
const r =
|
|
11713
|
+
function d_(e, t, n) {
|
|
11714
|
+
const r = u_(e.key, n);
|
|
11715
11715
|
if (!(t === "vertical" && [
|
|
11716
11716
|
"ArrowLeft",
|
|
11717
11717
|
"ArrowRight"
|
|
@@ -11719,7 +11719,7 @@ function dy(e, t, n) {
|
|
|
11719
11719
|
"ArrowUp",
|
|
11720
11720
|
"ArrowDown"
|
|
11721
11721
|
].includes(r)))
|
|
11722
|
-
return
|
|
11722
|
+
return c_[r];
|
|
11723
11723
|
}
|
|
11724
11724
|
function qu(e) {
|
|
11725
11725
|
const t = document.activeElement;
|
|
@@ -11727,55 +11727,55 @@ function qu(e) {
|
|
|
11727
11727
|
if (n === t || (n.focus(), document.activeElement !== t))
|
|
11728
11728
|
return;
|
|
11729
11729
|
}
|
|
11730
|
-
function
|
|
11730
|
+
function f_(e, t) {
|
|
11731
11731
|
return e.map(
|
|
11732
11732
|
(n, r) => e[(t + r) % e.length]
|
|
11733
11733
|
);
|
|
11734
11734
|
}
|
|
11735
|
-
const
|
|
11735
|
+
const p_ = a_, h_ = l_, zu = "Tabs", [m_, w5] = Nt(zu, [
|
|
11736
11736
|
Su
|
|
11737
|
-
]), Tu = Su(), [
|
|
11738
|
-
const { __scopeTabs: n, value: r, onValueChange: o, defaultValue: a, orientation: i = "horizontal", dir: s, activationMode: l = "automatic", ...u } = e, d = fa(s), [f,
|
|
11737
|
+
]), Tu = Su(), [g_, qa] = m_(zu), v_ = /* @__PURE__ */ Le((e, t) => {
|
|
11738
|
+
const { __scopeTabs: n, value: r, onValueChange: o, defaultValue: a, orientation: i = "horizontal", dir: s, activationMode: l = "automatic", ...u } = e, d = fa(s), [f, y] = Sr({
|
|
11739
11739
|
prop: r,
|
|
11740
11740
|
onChange: o,
|
|
11741
11741
|
defaultProp: a
|
|
11742
11742
|
});
|
|
11743
|
-
return /* @__PURE__ */
|
|
11743
|
+
return /* @__PURE__ */ _e(g_, {
|
|
11744
11744
|
scope: n,
|
|
11745
11745
|
baseId: ec(),
|
|
11746
11746
|
value: f,
|
|
11747
|
-
onValueChange:
|
|
11747
|
+
onValueChange: y,
|
|
11748
11748
|
orientation: i,
|
|
11749
11749
|
dir: d,
|
|
11750
11750
|
activationMode: l
|
|
11751
|
-
}, /* @__PURE__ */
|
|
11751
|
+
}, /* @__PURE__ */ _e(It.div, Ce({
|
|
11752
11752
|
dir: d,
|
|
11753
11753
|
"data-orientation": i
|
|
11754
11754
|
}, u, {
|
|
11755
11755
|
ref: t
|
|
11756
11756
|
})));
|
|
11757
|
-
}),
|
|
11758
|
-
const { __scopeTabs: n, loop: r = !0, ...o } = e, a = qa(
|
|
11759
|
-
return /* @__PURE__ */
|
|
11757
|
+
}), y_ = "TabsList", __ = /* @__PURE__ */ Le((e, t) => {
|
|
11758
|
+
const { __scopeTabs: n, loop: r = !0, ...o } = e, a = qa(y_, n), i = Tu(n);
|
|
11759
|
+
return /* @__PURE__ */ _e(p_, Ce({
|
|
11760
11760
|
asChild: !0
|
|
11761
11761
|
}, i, {
|
|
11762
11762
|
orientation: a.orientation,
|
|
11763
11763
|
dir: a.dir,
|
|
11764
11764
|
loop: r
|
|
11765
|
-
}), /* @__PURE__ */
|
|
11765
|
+
}), /* @__PURE__ */ _e(It.div, Ce({
|
|
11766
11766
|
role: "tablist",
|
|
11767
11767
|
"aria-orientation": a.orientation
|
|
11768
11768
|
}, o, {
|
|
11769
11769
|
ref: t
|
|
11770
11770
|
})));
|
|
11771
|
-
}),
|
|
11772
|
-
const { __scopeTabs: n, value: r, disabled: o = !1, ...a } = e, i = qa(
|
|
11773
|
-
return /* @__PURE__ */
|
|
11771
|
+
}), b_ = "TabsTrigger", C_ = /* @__PURE__ */ Le((e, t) => {
|
|
11772
|
+
const { __scopeTabs: n, value: r, disabled: o = !1, ...a } = e, i = qa(b_, n), s = Tu(n), l = ju(i.baseId, r), u = Ru(i.baseId, r), d = r === i.value;
|
|
11773
|
+
return /* @__PURE__ */ _e(h_, Ce({
|
|
11774
11774
|
asChild: !0
|
|
11775
11775
|
}, s, {
|
|
11776
11776
|
focusable: !o,
|
|
11777
11777
|
active: d
|
|
11778
|
-
}), /* @__PURE__ */
|
|
11778
|
+
}), /* @__PURE__ */ _e(It.button, Ce({
|
|
11779
11779
|
type: "button",
|
|
11780
11780
|
role: "tab",
|
|
11781
11781
|
"aria-selected": d,
|
|
@@ -11800,24 +11800,24 @@ const py = ay, hy = ly, zu = "Tabs", [my, w5] = Nt(zu, [
|
|
|
11800
11800
|
!d && !o && f && i.onValueChange(r);
|
|
11801
11801
|
})
|
|
11802
11802
|
})));
|
|
11803
|
-
}),
|
|
11804
|
-
const { __scopeTabs: n, value: r, forceMount: o, children: a, ...i } = e, s = qa(
|
|
11805
|
-
return
|
|
11806
|
-
const
|
|
11803
|
+
}), x_ = "TabsContent", w_ = /* @__PURE__ */ Le((e, t) => {
|
|
11804
|
+
const { __scopeTabs: n, value: r, forceMount: o, children: a, ...i } = e, s = qa(x_, n), l = ju(s.baseId, r), u = Ru(s.baseId, r), d = r === s.value, f = Ze(d);
|
|
11805
|
+
return ye(() => {
|
|
11806
|
+
const y = requestAnimationFrame(
|
|
11807
11807
|
() => f.current = !1
|
|
11808
11808
|
);
|
|
11809
|
-
return () => cancelAnimationFrame(
|
|
11810
|
-
}, []), /* @__PURE__ */
|
|
11809
|
+
return () => cancelAnimationFrame(y);
|
|
11810
|
+
}, []), /* @__PURE__ */ _e(
|
|
11811
11811
|
Ql,
|
|
11812
11812
|
{
|
|
11813
11813
|
present: o || d
|
|
11814
11814
|
},
|
|
11815
|
-
({ present:
|
|
11815
|
+
({ present: y }) => /* @__PURE__ */ _e(It.div, Ce({
|
|
11816
11816
|
"data-state": d ? "active" : "inactive",
|
|
11817
11817
|
"data-orientation": s.orientation,
|
|
11818
11818
|
role: "tabpanel",
|
|
11819
11819
|
"aria-labelledby": l,
|
|
11820
|
-
hidden: !
|
|
11820
|
+
hidden: !y,
|
|
11821
11821
|
id: u,
|
|
11822
11822
|
tabIndex: 0
|
|
11823
11823
|
}, i, {
|
|
@@ -11826,7 +11826,7 @@ const py = ay, hy = ly, zu = "Tabs", [my, w5] = Nt(zu, [
|
|
|
11826
11826
|
...e.style,
|
|
11827
11827
|
animationDuration: f.current ? "0s" : void 0
|
|
11828
11828
|
}
|
|
11829
|
-
}),
|
|
11829
|
+
}), y && a)
|
|
11830
11830
|
);
|
|
11831
11831
|
});
|
|
11832
11832
|
function ju(e, t) {
|
|
@@ -11835,9 +11835,9 @@ function ju(e, t) {
|
|
|
11835
11835
|
function Ru(e, t) {
|
|
11836
11836
|
return `${e}-content-${t}`;
|
|
11837
11837
|
}
|
|
11838
|
-
const
|
|
11839
|
-
var
|
|
11840
|
-
const
|
|
11838
|
+
const E_ = v_, k_ = __, S_ = C_, q_ = w_;
|
|
11839
|
+
var z_ = "_1bc2uou0", T_ = "_1bc2uou1";
|
|
11840
|
+
const j_ = ({
|
|
11841
11841
|
className: e,
|
|
11842
11842
|
tabs: t,
|
|
11843
11843
|
defaultValue: n,
|
|
@@ -11845,36 +11845,36 @@ const jy = ({
|
|
|
11845
11845
|
}) => {
|
|
11846
11846
|
var o;
|
|
11847
11847
|
return t.length ? /* @__PURE__ */ c.jsxs(
|
|
11848
|
-
|
|
11848
|
+
E_,
|
|
11849
11849
|
{
|
|
11850
11850
|
"data-testid": r,
|
|
11851
11851
|
className: ne("sid-tabs", e),
|
|
11852
11852
|
defaultValue: n ?? ((o = t[0]) == null ? void 0 : o.id),
|
|
11853
11853
|
children: [
|
|
11854
|
-
/* @__PURE__ */ c.jsx(
|
|
11855
|
-
|
|
11854
|
+
/* @__PURE__ */ c.jsx(k_, { className: z_, "aria-label": "SlashID Tabs", children: t.map(({ id: a, title: i }) => /* @__PURE__ */ c.jsx(
|
|
11855
|
+
S_,
|
|
11856
11856
|
{
|
|
11857
11857
|
"data-testid": `sid-tabs-trigger-${a}`,
|
|
11858
|
-
className:
|
|
11858
|
+
className: T_,
|
|
11859
11859
|
value: a,
|
|
11860
11860
|
children: i
|
|
11861
11861
|
},
|
|
11862
11862
|
a
|
|
11863
11863
|
)) }),
|
|
11864
|
-
t.map(({ id: a, content: i }) => /* @__PURE__ */ c.jsx(
|
|
11864
|
+
t.map(({ id: a, content: i }) => /* @__PURE__ */ c.jsx(q_, { value: a, children: i }, a))
|
|
11865
11865
|
]
|
|
11866
11866
|
}
|
|
11867
11867
|
) : null;
|
|
11868
|
-
},
|
|
11868
|
+
}, R_ = (e) => {
|
|
11869
11869
|
const t = globalThis.document.getElementById(e);
|
|
11870
11870
|
if (t !== null)
|
|
11871
11871
|
return t;
|
|
11872
11872
|
const n = document.createElement("div");
|
|
11873
11873
|
return n.id = e, document.body.appendChild(n), n;
|
|
11874
|
-
},
|
|
11875
|
-
const r =
|
|
11874
|
+
}, M_ = ({ to: e, children: t, renderKey: n }) => {
|
|
11875
|
+
const r = R_(e);
|
|
11876
11876
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: ud(t, r, n) });
|
|
11877
|
-
},
|
|
11877
|
+
}, P_ = [
|
|
11878
11878
|
"--sid-color-background",
|
|
11879
11879
|
"--sid-color-mute",
|
|
11880
11880
|
"--sid-color-panel",
|
|
@@ -11907,7 +11907,7 @@ const jy = ({
|
|
|
11907
11907
|
"--sid-form-border-radius",
|
|
11908
11908
|
"--sid-form-logo-width"
|
|
11909
11909
|
];
|
|
11910
|
-
var
|
|
11910
|
+
var N_ = { exports: {} };
|
|
11911
11911
|
(function(e) {
|
|
11912
11912
|
var t = function(n) {
|
|
11913
11913
|
var r = Object.prototype, o = r.hasOwnProperty, a = Object.defineProperty || function(z, q, T) {
|
|
@@ -11928,11 +11928,11 @@ var Ny = { exports: {} };
|
|
|
11928
11928
|
return z[q] = T;
|
|
11929
11929
|
};
|
|
11930
11930
|
}
|
|
11931
|
-
function
|
|
11931
|
+
function y(z, q, T, D) {
|
|
11932
11932
|
var M = q && q.prototype instanceof x ? q : x, B = Object.create(M.prototype), de = new A(D || []);
|
|
11933
11933
|
return a(B, "_invoke", { value: H(z, T, de) }), B;
|
|
11934
11934
|
}
|
|
11935
|
-
n.wrap =
|
|
11935
|
+
n.wrap = y;
|
|
11936
11936
|
function h(z, q, T) {
|
|
11937
11937
|
try {
|
|
11938
11938
|
return { type: "normal", arg: z.call(q, T) };
|
|
@@ -11940,7 +11940,7 @@ var Ny = { exports: {} };
|
|
|
11940
11940
|
return { type: "throw", arg: D };
|
|
11941
11941
|
}
|
|
11942
11942
|
}
|
|
11943
|
-
var b = "suspendedStart", p = "suspendedYield", m = "executing", w = "completed",
|
|
11943
|
+
var b = "suspendedStart", p = "suspendedYield", m = "executing", w = "completed", _ = {};
|
|
11944
11944
|
function x() {
|
|
11945
11945
|
}
|
|
11946
11946
|
function E() {
|
|
@@ -12031,7 +12031,7 @@ var Ny = { exports: {} };
|
|
|
12031
12031
|
}), n.AsyncIterator = K, n.async = function(z, q, T, D, M) {
|
|
12032
12032
|
M === void 0 && (M = Promise);
|
|
12033
12033
|
var B = new K(
|
|
12034
|
-
|
|
12034
|
+
y(z, q, T, D),
|
|
12035
12035
|
M
|
|
12036
12036
|
);
|
|
12037
12037
|
return n.isGeneratorFunction(q) ? B : B.next().then(function(de) {
|
|
@@ -12053,7 +12053,7 @@ var Ny = { exports: {} };
|
|
|
12053
12053
|
if (de) {
|
|
12054
12054
|
var ce = G(de, T);
|
|
12055
12055
|
if (ce) {
|
|
12056
|
-
if (ce ===
|
|
12056
|
+
if (ce === _)
|
|
12057
12057
|
continue;
|
|
12058
12058
|
return ce;
|
|
12059
12059
|
}
|
|
@@ -12069,7 +12069,7 @@ var Ny = { exports: {} };
|
|
|
12069
12069
|
D = m;
|
|
12070
12070
|
var I = h(z, q, T);
|
|
12071
12071
|
if (I.type === "normal") {
|
|
12072
|
-
if (D = T.done ? w : p, I.arg ===
|
|
12072
|
+
if (D = T.done ? w : p, I.arg === _)
|
|
12073
12073
|
continue;
|
|
12074
12074
|
return {
|
|
12075
12075
|
value: I.arg,
|
|
@@ -12085,18 +12085,18 @@ var Ny = { exports: {} };
|
|
|
12085
12085
|
if (D === i)
|
|
12086
12086
|
return q.delegate = null, T === "throw" && z.iterator.return && (q.method = "return", q.arg = i, G(z, q), q.method === "throw") || T !== "return" && (q.method = "throw", q.arg = new TypeError(
|
|
12087
12087
|
"The iterator does not provide a '" + T + "' method"
|
|
12088
|
-
)),
|
|
12088
|
+
)), _;
|
|
12089
12089
|
var M = h(D, z.iterator, q.arg);
|
|
12090
12090
|
if (M.type === "throw")
|
|
12091
|
-
return q.method = "throw", q.arg = M.arg, q.delegate = null,
|
|
12091
|
+
return q.method = "throw", q.arg = M.arg, q.delegate = null, _;
|
|
12092
12092
|
var B = M.arg;
|
|
12093
12093
|
if (!B)
|
|
12094
|
-
return q.method = "throw", q.arg = new TypeError("iterator result is not an object"), q.delegate = null,
|
|
12094
|
+
return q.method = "throw", q.arg = new TypeError("iterator result is not an object"), q.delegate = null, _;
|
|
12095
12095
|
if (B.done)
|
|
12096
12096
|
q[z.resultName] = B.value, q.next = z.nextLoc, q.method !== "return" && (q.method = "next", q.arg = i);
|
|
12097
12097
|
else
|
|
12098
12098
|
return B;
|
|
12099
|
-
return q.delegate = null,
|
|
12099
|
+
return q.delegate = null, _;
|
|
12100
12100
|
}
|
|
12101
12101
|
Z(O), f(O, d, "Generator"), f(O, l, function() {
|
|
12102
12102
|
return this;
|
|
@@ -12203,18 +12203,18 @@ var Ny = { exports: {} };
|
|
|
12203
12203
|
}
|
|
12204
12204
|
M && (z === "break" || z === "continue") && M.tryLoc <= q && q <= M.finallyLoc && (M = null);
|
|
12205
12205
|
var B = M ? M.completion : {};
|
|
12206
|
-
return B.type = z, B.arg = q, M ? (this.method = "next", this.next = M.finallyLoc,
|
|
12206
|
+
return B.type = z, B.arg = q, M ? (this.method = "next", this.next = M.finallyLoc, _) : this.complete(B);
|
|
12207
12207
|
},
|
|
12208
12208
|
complete: function(z, q) {
|
|
12209
12209
|
if (z.type === "throw")
|
|
12210
12210
|
throw z.arg;
|
|
12211
|
-
return z.type === "break" || z.type === "continue" ? this.next = z.arg : z.type === "return" ? (this.rval = this.arg = z.arg, this.method = "return", this.next = "end") : z.type === "normal" && q && (this.next = q),
|
|
12211
|
+
return z.type === "break" || z.type === "continue" ? this.next = z.arg : z.type === "return" ? (this.rval = this.arg = z.arg, this.method = "return", this.next = "end") : z.type === "normal" && q && (this.next = q), _;
|
|
12212
12212
|
},
|
|
12213
12213
|
finish: function(z) {
|
|
12214
12214
|
for (var q = this.tryEntries.length - 1; q >= 0; --q) {
|
|
12215
12215
|
var T = this.tryEntries[q];
|
|
12216
12216
|
if (T.finallyLoc === z)
|
|
12217
|
-
return this.complete(T.completion, T.afterLoc), Y(T),
|
|
12217
|
+
return this.complete(T.completion, T.afterLoc), Y(T), _;
|
|
12218
12218
|
}
|
|
12219
12219
|
},
|
|
12220
12220
|
catch: function(z) {
|
|
@@ -12236,7 +12236,7 @@ var Ny = { exports: {} };
|
|
|
12236
12236
|
iterator: U(z),
|
|
12237
12237
|
resultName: q,
|
|
12238
12238
|
nextLoc: T
|
|
12239
|
-
}, this.method === "next" && (this.arg = i),
|
|
12239
|
+
}, this.method === "next" && (this.arg = i), _;
|
|
12240
12240
|
}
|
|
12241
12241
|
}, n;
|
|
12242
12242
|
}(
|
|
@@ -12251,8 +12251,8 @@ var Ny = { exports: {} };
|
|
|
12251
12251
|
} catch {
|
|
12252
12252
|
typeof globalThis == "object" ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t);
|
|
12253
12253
|
}
|
|
12254
|
-
})(
|
|
12255
|
-
const
|
|
12254
|
+
})(N_);
|
|
12255
|
+
const I_ = {
|
|
12256
12256
|
sid: void 0,
|
|
12257
12257
|
user: void 0,
|
|
12258
12258
|
anonymousUser: void 0,
|
|
@@ -12272,40 +12272,40 @@ const Iy = {
|
|
|
12272
12272
|
__syncExternalState: async () => {
|
|
12273
12273
|
},
|
|
12274
12274
|
__orgSwitchingState: { state: "idle" }
|
|
12275
|
-
},
|
|
12276
|
-
|
|
12277
|
-
const
|
|
12275
|
+
}, L_ = Qe(I_);
|
|
12276
|
+
L_.displayName = "SlashIDContext";
|
|
12277
|
+
const O_ = [
|
|
12278
12278
|
"email_address",
|
|
12279
12279
|
"phone_number",
|
|
12280
12280
|
"username"
|
|
12281
|
-
],
|
|
12281
|
+
], A_ = [
|
|
12282
12282
|
"webauthn",
|
|
12283
12283
|
"otp_via_email",
|
|
12284
12284
|
"email_link",
|
|
12285
12285
|
"password",
|
|
12286
12286
|
"totp"
|
|
12287
|
-
],
|
|
12288
|
-
function
|
|
12287
|
+
], D_ = ["otp_via_sms", "sms_link", "password"], F_ = ["password"], $_ = ["oidc", "saml"];
|
|
12288
|
+
function H_(e) {
|
|
12289
12289
|
return "allowedHandleTypes" in e ? e.allowedHandleTypes.every(
|
|
12290
|
-
(t) =>
|
|
12290
|
+
(t) => O_.includes(t)
|
|
12291
12291
|
) : !1;
|
|
12292
12292
|
}
|
|
12293
12293
|
function io(e, t) {
|
|
12294
|
-
return
|
|
12294
|
+
return H_(e) ? e.allowedHandleTypes.includes(t) : t !== "username";
|
|
12295
12295
|
}
|
|
12296
|
-
function
|
|
12296
|
+
function U_(e) {
|
|
12297
12297
|
const t = /* @__PURE__ */ new Set();
|
|
12298
|
-
return
|
|
12298
|
+
return A_.includes(e.method) && io(e, "email_address") && t.add("email_address"), D_.includes(e.method) && io(e, "phone_number") && t.add("phone_number"), F_.includes(e.method) && io(e, "username") && t.add("username"), t;
|
|
12299
12299
|
}
|
|
12300
12300
|
function za(e) {
|
|
12301
12301
|
const t = /* @__PURE__ */ new Set();
|
|
12302
12302
|
return e.forEach((n) => {
|
|
12303
|
-
|
|
12303
|
+
U_(n).forEach(
|
|
12304
12304
|
(r) => t.add(r)
|
|
12305
12305
|
);
|
|
12306
12306
|
}), Array.from(t);
|
|
12307
12307
|
}
|
|
12308
|
-
function
|
|
12308
|
+
function B_(e, t) {
|
|
12309
12309
|
return e.filter(
|
|
12310
12310
|
(n) => za([n]).includes(t)
|
|
12311
12311
|
);
|
|
@@ -12314,19 +12314,19 @@ function Mu(e) {
|
|
|
12314
12314
|
return e.method === "oidc";
|
|
12315
12315
|
}
|
|
12316
12316
|
function Fo(e) {
|
|
12317
|
-
return $
|
|
12317
|
+
return $_.includes(e.method);
|
|
12318
12318
|
}
|
|
12319
12319
|
function Ta(e) {
|
|
12320
12320
|
return e.method !== "oidc";
|
|
12321
12321
|
}
|
|
12322
|
-
function
|
|
12322
|
+
function V_(e) {
|
|
12323
12323
|
return e.some(Fo) && e.some((t) => !Fo(t));
|
|
12324
12324
|
}
|
|
12325
12325
|
function Qn(e, t) {
|
|
12326
12326
|
if (!(!e || e.type !== t))
|
|
12327
12327
|
return e.value;
|
|
12328
12328
|
}
|
|
12329
|
-
function
|
|
12329
|
+
function G_(e) {
|
|
12330
12330
|
for (const t of ua())
|
|
12331
12331
|
if (e.startsWith(t.dial_code))
|
|
12332
12332
|
return {
|
|
@@ -12335,7 +12335,7 @@ function Gy(e) {
|
|
|
12335
12335
|
countryCode: Yl(t.dial_code).code
|
|
12336
12336
|
};
|
|
12337
12337
|
}
|
|
12338
|
-
const hr = (e) => /* @__PURE__ */ c.jsx(kv, { ...e }),
|
|
12338
|
+
const hr = (e) => /* @__PURE__ */ c.jsx(kv, { ...e }), W_ = {
|
|
12339
12339
|
"": "NYI",
|
|
12340
12340
|
"footer.branding": "Top-tier security by SlashID",
|
|
12341
12341
|
"initial.title": "Welcome to SlashID",
|
|
@@ -12560,7 +12560,7 @@ const hr = (e) => /* @__PURE__ */ c.jsx(kv, { ...e }), Wy = {
|
|
|
12560
12560
|
if (t === n || t === `'${n}'` || t === `"${n}"`)
|
|
12561
12561
|
return !0;
|
|
12562
12562
|
return !1;
|
|
12563
|
-
}),
|
|
12563
|
+
}), Y_ = (e) => {
|
|
12564
12564
|
const t = e.toString().match(Ir);
|
|
12565
12565
|
if (!t)
|
|
12566
12566
|
return null;
|
|
@@ -12572,7 +12572,7 @@ const hr = (e) => /* @__PURE__ */ c.jsx(kv, { ...e }), Wy = {
|
|
|
12572
12572
|
return !1;
|
|
12573
12573
|
const [r] = n;
|
|
12574
12574
|
return !!t.test(r);
|
|
12575
|
-
},
|
|
12575
|
+
}, K_ = (e) => Lr(e, ja), Z_ = (e) => Lr(e, Ra), X_ = (e) => Lr(e, Pu), J_ = (e) => (t) => !(Array.isArray(t) || !e.some((n) => n === t)), Q_ = (e) => {
|
|
12576
12576
|
const t = e.toString().match(Ir);
|
|
12577
12577
|
return !(!t || Lu(t).length !== t.length);
|
|
12578
12578
|
}, e2 = (e) => {
|
|
@@ -12583,19 +12583,19 @@ const hr = (e) => /* @__PURE__ */ c.jsx(kv, { ...e }), Wy = {
|
|
|
12583
12583
|
}
|
|
12584
12584
|
}, t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12585
12585
|
__proto__: null,
|
|
12586
|
-
exactValidator:
|
|
12586
|
+
exactValidator: J_,
|
|
12587
12587
|
fontFamilyRegExp: Ir,
|
|
12588
|
-
fontFamilyValidator:
|
|
12589
|
-
hexValidator:
|
|
12588
|
+
fontFamilyValidator: Q_,
|
|
12589
|
+
hexValidator: Z_,
|
|
12590
12590
|
hexValueRegExp: Ra,
|
|
12591
12591
|
pixelValueRegExp: ja,
|
|
12592
|
-
pxValidator:
|
|
12593
|
-
rgbaValidator:
|
|
12592
|
+
pxValidator: K_,
|
|
12593
|
+
rgbaValidator: X_,
|
|
12594
12594
|
supportedFonts: Iu,
|
|
12595
12595
|
urlValidator: e2,
|
|
12596
12596
|
validate: Lr
|
|
12597
12597
|
}, Symbol.toStringTag, { value: "Module" })), n2 = {
|
|
12598
|
-
text:
|
|
12598
|
+
text: W_,
|
|
12599
12599
|
factors: [{ method: "webauthn" }, { method: "email_link" }],
|
|
12600
12600
|
logo: /* @__PURE__ */ c.jsx(Wl, {}),
|
|
12601
12601
|
storeLastHandle: !1,
|
|
@@ -12651,7 +12651,7 @@ const m2 = ({ variant: e = "red" }) => /* @__PURE__ */ c.jsx(
|
|
|
12651
12651
|
async function v2(e) {
|
|
12652
12652
|
return Me.isTimeoutError(e) ? "timeout" : Me.isInvalidEmailAddressFormatError(e) ? "invalidEmailAddressFormat" : Me.isInvalidPhoneNumberFormatError(e) ? "invalidPhoneNumberFormat" : Me.isAPIResponseError(e) ? "response" : Me.isRateLimitError(e) ? "rateLimit" : Me.isNonReachableHandleTypeError(e) ? "recoverNonReachableHandleType" : Me.isNoPasswordSetError(e) ? "noPasswordSet" : Me.isSelfRegistrationNotAllowedError(e) ? "selfRegistrationNotAllowed" : Me.isSignUpAwaitingApprovalError(e) ? "signUpAwaitingApproval" : Me.isSignInAwaitingApprovalError(e) ? "signInAwaitingApproval" : "unknown";
|
|
12653
12653
|
}
|
|
12654
|
-
function
|
|
12654
|
+
function y2(e) {
|
|
12655
12655
|
switch (e) {
|
|
12656
12656
|
case "selfRegistrationNotAllowed":
|
|
12657
12657
|
return {
|
|
@@ -12662,7 +12662,7 @@ function _2(e) {
|
|
|
12662
12662
|
return;
|
|
12663
12663
|
}
|
|
12664
12664
|
}
|
|
12665
|
-
function
|
|
12665
|
+
function _2(e) {
|
|
12666
12666
|
switch (e) {
|
|
12667
12667
|
case "timeout":
|
|
12668
12668
|
return {
|
|
@@ -12804,14 +12804,14 @@ const w2 = ({ children: e }) => {
|
|
|
12804
12804
|
w2.displayName = "Form.Error";
|
|
12805
12805
|
const E2 = ({ flowState: e }) => {
|
|
12806
12806
|
const { text: t } = je(), [n, r] = ve(null);
|
|
12807
|
-
if (
|
|
12807
|
+
if (ye(() => {
|
|
12808
12808
|
r(null), (async () => {
|
|
12809
12809
|
const d = await v2(e.context.error);
|
|
12810
12810
|
r(d);
|
|
12811
12811
|
})();
|
|
12812
12812
|
}, [e.context.error]), !n)
|
|
12813
12813
|
return /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
12814
|
-
const { title: o, description: a, retry: i } =
|
|
12814
|
+
const { title: o, description: a, retry: i } = _2(n), s = b2(n), l = y2(n), u = g2.includes(n);
|
|
12815
12815
|
return /* @__PURE__ */ c.jsxs("article", { "data-testid": "sid-form-error-state", children: [
|
|
12816
12816
|
/* @__PURE__ */ c.jsx(
|
|
12817
12817
|
wm,
|
|
@@ -13018,10 +13018,10 @@ const A2 = {
|
|
|
13018
13018
|
const u = (d) => {
|
|
13019
13019
|
if (d.preventDefault(), !o.current.handleType || !o.current.handleValue || !a)
|
|
13020
13020
|
return;
|
|
13021
|
-
const { handleType: f, handleValue:
|
|
13021
|
+
const { handleType: f, handleValue: y, flag: h } = o.current;
|
|
13022
13022
|
f === "phone_number" && !h || r(a, {
|
|
13023
13023
|
type: f,
|
|
13024
|
-
value: f === "phone_number" ? `${h.dial_code}${
|
|
13024
|
+
value: f === "phone_number" ? `${h.dial_code}${y}` : y
|
|
13025
13025
|
});
|
|
13026
13026
|
};
|
|
13027
13027
|
return typeof e == "function" ? /* @__PURE__ */ c.jsx("div", { "data-testid": "sid-form-initial-function", children: e({ handleSubmit: r, factors: s, handleTypes: l, text: n }) }) : Xe.count(e) > 0 ? /* @__PURE__ */ c.jsx(
|
|
@@ -13057,7 +13057,7 @@ const A2 = {
|
|
|
13057
13057
|
defaultValue: Qn(t, a[0])
|
|
13058
13058
|
}
|
|
13059
13059
|
) }) : /* @__PURE__ */ c.jsx(
|
|
13060
|
-
|
|
13060
|
+
j_,
|
|
13061
13061
|
{
|
|
13062
13062
|
testId: "sid-handle-type-tabs",
|
|
13063
13063
|
className: it({ marginY: "6" }),
|
|
@@ -13142,21 +13142,21 @@ const tr = ({
|
|
|
13142
13142
|
defaultValue: n
|
|
13143
13143
|
}) => {
|
|
13144
13144
|
const { setSelectedFactor: r, submitPayloadRef: o, lastFactor: a } = on(), i = we(
|
|
13145
|
-
() =>
|
|
13145
|
+
() => B_(t, e).filter((_) => !Mu(_)),
|
|
13146
13146
|
[t, e]
|
|
13147
|
-
), { text: s, defaultCountryCode: l } = je(), { registerField: u, values: d, resetForm: f } = Or(),
|
|
13147
|
+
), { text: s, defaultCountryCode: l } = je(), { registerField: u, values: d, resetForm: f } = Or(), y = i.length > 1, h = G_(n ?? ""), [b, p] = ve(
|
|
13148
13148
|
ca((h == null ? void 0 : h.countryCode) ?? l)
|
|
13149
|
-
), m = we(() => a && Ta(a) && i.find(({ method:
|
|
13150
|
-
|
|
13149
|
+
), m = we(() => a && Ta(a) && i.find(({ method: _ }) => a.method === _) ? a : i[0], [i, a]);
|
|
13150
|
+
ye(() => {
|
|
13151
13151
|
r(m);
|
|
13152
|
-
}, [m, r]),
|
|
13152
|
+
}, [m, r]), ye(() => f, [f]), ye(() => {
|
|
13153
13153
|
o.current.flag = b;
|
|
13154
|
-
}, [b, o]),
|
|
13155
|
-
const
|
|
13154
|
+
}, [b, o]), ye(() => {
|
|
13155
|
+
const _ = d[e];
|
|
13156
13156
|
o.current = {
|
|
13157
13157
|
...o.current,
|
|
13158
13158
|
handleType: e,
|
|
13159
|
-
handleValue:
|
|
13159
|
+
handleValue: _
|
|
13160
13160
|
};
|
|
13161
13161
|
}, [e, o, d]);
|
|
13162
13162
|
const w = we(() => e === "phone_number" ? /* @__PURE__ */ c.jsx(
|
|
@@ -13172,8 +13172,8 @@ const tr = ({
|
|
|
13172
13172
|
flag: b,
|
|
13173
13173
|
onChange: u(e, {
|
|
13174
13174
|
defaultValue: h == null ? void 0 : h.number,
|
|
13175
|
-
validator: (
|
|
13176
|
-
if (!o2(
|
|
13175
|
+
validator: (_) => {
|
|
13176
|
+
if (!o2(_))
|
|
13177
13177
|
return { message: s["validationError.phoneNumber"] };
|
|
13178
13178
|
}
|
|
13179
13179
|
}),
|
|
@@ -13191,8 +13191,8 @@ const tr = ({
|
|
|
13191
13191
|
value: d[e] ?? "",
|
|
13192
13192
|
onChange: u(e, {
|
|
13193
13193
|
defaultValue: n,
|
|
13194
|
-
validator: (
|
|
13195
|
-
if (!i2(
|
|
13194
|
+
validator: (_) => {
|
|
13195
|
+
if (!i2(_))
|
|
13196
13196
|
return { message: s["validationError.username"] };
|
|
13197
13197
|
}
|
|
13198
13198
|
})
|
|
@@ -13209,8 +13209,8 @@ const tr = ({
|
|
|
13209
13209
|
value: d[e] ?? "",
|
|
13210
13210
|
onChange: u(e, {
|
|
13211
13211
|
defaultValue: n,
|
|
13212
|
-
validator: (
|
|
13213
|
-
if (!a2(
|
|
13212
|
+
validator: (_) => {
|
|
13213
|
+
if (!a2(_))
|
|
13214
13214
|
return { message: s["validationError.email"] };
|
|
13215
13215
|
}
|
|
13216
13216
|
})
|
|
@@ -13225,18 +13225,18 @@ const tr = ({
|
|
|
13225
13225
|
h
|
|
13226
13226
|
]);
|
|
13227
13227
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
13228
|
-
|
|
13229
|
-
|
|
13228
|
+
y && /* @__PURE__ */ c.jsx(
|
|
13229
|
+
Qy,
|
|
13230
13230
|
{
|
|
13231
13231
|
defaultValue: m.method,
|
|
13232
13232
|
className: it({ marginBottom: "3", marginTop: "6" }),
|
|
13233
13233
|
label: s["initial.authenticationMethod"],
|
|
13234
|
-
items: i.map((
|
|
13235
|
-
label: s[A2[
|
|
13236
|
-
value:
|
|
13234
|
+
items: i.map((_) => ({
|
|
13235
|
+
label: s[A2[_.method]],
|
|
13236
|
+
value: _.method
|
|
13237
13237
|
})),
|
|
13238
|
-
onChange: (
|
|
13239
|
-
const x = i.find((E) => E.method ===
|
|
13238
|
+
onChange: (_) => {
|
|
13239
|
+
const x = i.find((E) => E.method === _);
|
|
13240
13240
|
r(x);
|
|
13241
13241
|
},
|
|
13242
13242
|
contentProps: {
|
|
@@ -13278,7 +13278,7 @@ const La = ({
|
|
|
13278
13278
|
La.displayName = "Header";
|
|
13279
13279
|
const Du = () => {
|
|
13280
13280
|
const { factors: e, text: t } = je(), n = we(
|
|
13281
|
-
() =>
|
|
13281
|
+
() => V_(e),
|
|
13282
13282
|
[e]
|
|
13283
13283
|
);
|
|
13284
13284
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: n && /* @__PURE__ */ c.jsx(Zl, { children: t["initial.divider"] }) });
|
|
@@ -13311,7 +13311,7 @@ an.OIDC = Fu;
|
|
|
13311
13311
|
an.SSO = Oa;
|
|
13312
13312
|
var F2 = "sluhu72";
|
|
13313
13313
|
const $2 = Le(
|
|
13314
|
-
({ buttonClassName: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13314
|
+
({ buttonClassName: e, ...t }, n) => /* @__PURE__ */ c.jsx(M_, { to: "sid-cookie-button", children: /* @__PURE__ */ c.jsx(
|
|
13315
13315
|
Pt,
|
|
13316
13316
|
{
|
|
13317
13317
|
...t,
|
|
@@ -13339,13 +13339,13 @@ function fn(...e) {
|
|
|
13339
13339
|
return null;
|
|
13340
13340
|
};
|
|
13341
13341
|
}
|
|
13342
|
-
const H2 = (e) => Object.entries(e), U2 = new Set(
|
|
13342
|
+
const H2 = (e) => Object.entries(e), U2 = new Set(P_), B2 = {
|
|
13343
13343
|
"--sid-color-primary": fn(Et, dn),
|
|
13344
13344
|
"--sid-color-primary-hover": fn(Et, dn),
|
|
13345
13345
|
"--sid-color-secondary": fn(Et, dn),
|
|
13346
13346
|
"--sid-color-tertiary": fn(Et, dn),
|
|
13347
13347
|
"--sid-color-foreground": fn(Et, dn),
|
|
13348
|
-
"--sid-font-family":
|
|
13348
|
+
"--sid-font-family": Y_,
|
|
13349
13349
|
"--sid-form-logo-width": er,
|
|
13350
13350
|
"--sid-form-border-radius": er,
|
|
13351
13351
|
"--sid-button-border-radius": er,
|
|
@@ -13376,7 +13376,7 @@ const H2 = (e) => Object.entries(e), U2 = new Set(Py), B2 = {
|
|
|
13376
13376
|
...t2
|
|
13377
13377
|
}, Y2 = { "--sid-color-primary": "#DCDDE5" };
|
|
13378
13378
|
function ws() {
|
|
13379
|
-
return /* @__PURE__ */ c.jsx("div", { style: Y2, children: /* @__PURE__ */ c.jsx(
|
|
13379
|
+
return /* @__PURE__ */ c.jsx("div", { style: Y2, children: /* @__PURE__ */ c.jsx(_n, { variant: "primary", children: /* @__PURE__ */ c.jsx(Ho, {}) }) });
|
|
13380
13380
|
}
|
|
13381
13381
|
const K2 = async (e) => {
|
|
13382
13382
|
if (await Me.isPersonExistsError(e.error))
|
|
@@ -13406,9 +13406,9 @@ function e5(e) {
|
|
|
13406
13406
|
}
|
|
13407
13407
|
function t5() {
|
|
13408
13408
|
const [e, t] = ve({ state: "initial" }), [n, r] = ve(void 0), { sdk: o, state: a, setLogo: i } = qn();
|
|
13409
|
-
|
|
13409
|
+
ye(() => {
|
|
13410
13410
|
if (e.state !== "initial") return;
|
|
13411
|
-
async function
|
|
13411
|
+
async function _() {
|
|
13412
13412
|
if (!o) return;
|
|
13413
13413
|
t({ state: "parsing-url" });
|
|
13414
13414
|
let x = [];
|
|
@@ -13429,7 +13429,7 @@ function t5() {
|
|
|
13429
13429
|
const C = Q2(x);
|
|
13430
13430
|
t({ state: "progress", challenges: x, flowType: C });
|
|
13431
13431
|
}
|
|
13432
|
-
|
|
13432
|
+
_();
|
|
13433
13433
|
}, [a, e.state, o]);
|
|
13434
13434
|
const s = Te(() => {
|
|
13435
13435
|
e.state === "progress" && t({
|
|
@@ -13438,19 +13438,19 @@ function t5() {
|
|
|
13438
13438
|
flowType: e.flowType
|
|
13439
13439
|
});
|
|
13440
13440
|
}, [e]), l = Te(
|
|
13441
|
-
({ error:
|
|
13441
|
+
({ error: _ }) => {
|
|
13442
13442
|
e.state === "progress" && t({
|
|
13443
13443
|
state: "error",
|
|
13444
13444
|
challenges: e.challenges,
|
|
13445
13445
|
flowType: e.flowType,
|
|
13446
|
-
error:
|
|
13446
|
+
error: _
|
|
13447
13447
|
});
|
|
13448
13448
|
},
|
|
13449
13449
|
[e]
|
|
13450
|
-
), [u, d] = ve(void 0), f = (
|
|
13451
|
-
d(
|
|
13452
|
-
}, [
|
|
13453
|
-
|
|
13450
|
+
), [u, d] = ve(void 0), f = (_) => {
|
|
13451
|
+
d(_.redirectUri);
|
|
13452
|
+
}, [y, h] = ve(null);
|
|
13453
|
+
ye(() => {
|
|
13454
13454
|
(async () => {
|
|
13455
13455
|
if (a === "ready")
|
|
13456
13456
|
switch (e.state) {
|
|
@@ -13467,13 +13467,13 @@ function t5() {
|
|
|
13467
13467
|
}
|
|
13468
13468
|
})();
|
|
13469
13469
|
}, [a, e.state]);
|
|
13470
|
-
const b =
|
|
13471
|
-
({ children:
|
|
13470
|
+
const b = y !== null, m = we(() => ["success", "error"].includes(e.state), [e.state]) && !b, w = Te(
|
|
13471
|
+
({ children: _ = /* @__PURE__ */ c.jsx(c.Fragment, {}) }) => /* @__PURE__ */ c.jsx(
|
|
13472
13472
|
Ls,
|
|
13473
13473
|
{
|
|
13474
13474
|
style: { ...(n == null ? void 0 : n.themeVars) && n.themeVars },
|
|
13475
13475
|
...(n == null ? void 0 : n.showBadge) === !1 && { footer: /* @__PURE__ */ c.jsx(c.Fragment, {}) },
|
|
13476
|
-
children:
|
|
13476
|
+
children: _
|
|
13477
13477
|
}
|
|
13478
13478
|
),
|
|
13479
13479
|
[n]
|
|
@@ -13486,12 +13486,12 @@ function t5() {
|
|
|
13486
13486
|
flowType: e.flowType,
|
|
13487
13487
|
onRedirectDiscovered: f
|
|
13488
13488
|
}
|
|
13489
|
-
) }) : e.state === "success" ? /* @__PURE__ */ c.jsx(w, { children: /* @__PURE__ */ c.jsx(vf, { redirectUri: u, autoClose: n == null ? void 0 : n.autoClose }) }) : e.state === "error" && b ? /* @__PURE__ */ c.jsx(w, { children: /* @__PURE__ */ c.jsx(co, { type: "error", errorCode:
|
|
13489
|
+
) }) : e.state === "success" ? /* @__PURE__ */ c.jsx(w, { children: /* @__PURE__ */ c.jsx(vf, { redirectUri: u, autoClose: n == null ? void 0 : n.autoClose }) }) : e.state === "error" && b ? /* @__PURE__ */ c.jsx(w, { children: /* @__PURE__ */ c.jsx(co, { type: "error", errorCode: y, redirectUri: u }) }) : /* @__PURE__ */ c.jsx(w, {});
|
|
13490
13490
|
}
|
|
13491
13491
|
var n5 = "d0vxn40";
|
|
13492
13492
|
function E5({ environment: e = "production" }) {
|
|
13493
13493
|
const t = ks(), [n, r] = ve("initial"), [o, a] = ve(/* @__PURE__ */ c.jsx(Ts, {})), i = Ze(void 0);
|
|
13494
|
-
|
|
13494
|
+
ye(() => {
|
|
13495
13495
|
n === "initial" && (rm({
|
|
13496
13496
|
dsn: Ui.sentryDSN,
|
|
13497
13497
|
environment: Ui.environment
|