aravint-ui-navigation 1.0.68 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +56 -11
- package/dist/navigation.cjs.js +8 -8
- package/dist/navigation.es.js +242 -242
- package/package.json +1 -1
package/dist/navigation.es.js
CHANGED
|
@@ -13,8 +13,8 @@ const Oa = ({
|
|
|
13
13
|
tabButtonClassName: s = "",
|
|
14
14
|
contentClassName: c = "thin-scrollbar",
|
|
15
15
|
showTabNumbers: a = !0,
|
|
16
|
-
showContent:
|
|
17
|
-
animated:
|
|
16
|
+
showContent: u = !0,
|
|
17
|
+
animated: d = !0
|
|
18
18
|
}) => {
|
|
19
19
|
var k;
|
|
20
20
|
const f = r !== void 0, [m, h] = Mr(
|
|
@@ -77,7 +77,7 @@ const Oa = ({
|
|
|
77
77
|
borderBottomLeftRadius: 12,
|
|
78
78
|
borderBottomRightRadius: 12,
|
|
79
79
|
boxShadow: "0 2px 6px rgba(0,0,0,.05)",
|
|
80
|
-
transition:
|
|
80
|
+
transition: d ? "opacity .2s ease" : void 0,
|
|
81
81
|
opacity: 1,
|
|
82
82
|
flex: 1,
|
|
83
83
|
overflowY: "auto",
|
|
@@ -210,7 +210,7 @@ const Oa = ({
|
|
|
210
210
|
})
|
|
211
211
|
}
|
|
212
212
|
),
|
|
213
|
-
|
|
213
|
+
u && b && /* @__PURE__ */ W("div", { style: E, className: c, children: b.content })
|
|
214
214
|
]
|
|
215
215
|
}
|
|
216
216
|
);
|
|
@@ -221,7 +221,7 @@ const Oa = ({
|
|
|
221
221
|
i ? "rs-stepper__circle--active" : "",
|
|
222
222
|
o === "rejected" ? "rs-stepper__circle--rejected" : "",
|
|
223
223
|
n === 0 && o === "pending" ? "rs-stepper__circle--start" : ""
|
|
224
|
-
].filter(Boolean).join(" "),
|
|
224
|
+
].filter(Boolean).join(" "), u = [
|
|
225
225
|
"rs-stepper__title",
|
|
226
226
|
o === "pending" ? "rs-stepper__title--pending" : "",
|
|
227
227
|
i ? "rs-stepper__title--active" : "",
|
|
@@ -233,7 +233,7 @@ const Oa = ({
|
|
|
233
233
|
/* @__PURE__ */ W("div", { className: a, children: c }),
|
|
234
234
|
(o === "completed" || o === "rejected") && /* @__PURE__ */ W("span", { className: `rs-stepper__check${o === "rejected" ? " rs-stepper__check--rejected" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ W(xo, {}) })
|
|
235
235
|
] }),
|
|
236
|
-
/* @__PURE__ */ W("div", { className:
|
|
236
|
+
/* @__PURE__ */ W("div", { className: u, children: s }),
|
|
237
237
|
r.date && /* @__PURE__ */ W("div", { className: "rs-stepper__date", children: r.date }),
|
|
238
238
|
t && r.time && /* @__PURE__ */ W("div", { className: "rs-stepper__time", children: r.time })
|
|
239
239
|
] });
|
|
@@ -249,13 +249,13 @@ const ko = ({
|
|
|
249
249
|
showTime: s = !0,
|
|
250
250
|
orientation: c = "responsive"
|
|
251
251
|
}) => {
|
|
252
|
-
const a = e.length,
|
|
252
|
+
const a = e.length, u = t ?? 1, d = t !== void 0 && t > a && e.every((E) => !("status" in E)), f = Math.max(1, Math.min(u, a)), m = d ? Math.max(0, a - 1) : Math.max(0, Math.min(a - 1, f - 1)), h = go(
|
|
253
253
|
() => e.map((E, k) => {
|
|
254
254
|
let j;
|
|
255
|
-
return "status" in E ? j = E.status :
|
|
255
|
+
return "status" in E ? j = E.status : d || k < m ? j = "completed" : k === m ? j = "active" : j = "pending", { step: E, index: k, status: j };
|
|
256
256
|
}),
|
|
257
|
-
[e, m,
|
|
258
|
-
), g = h.length > 0 && h.every((E) => E.status === "completed"), y =
|
|
257
|
+
[e, m, d]
|
|
258
|
+
), g = h.length > 0 && h.every((E) => E.status === "completed"), y = d || g, b = a > 0 ? 100 / a / 2 : 0, x = h.reduce(
|
|
259
259
|
(E, k) => k.status === "completed" || k.status === "active" || k.status === "current" || k.status === "rejected" ? k.index : E,
|
|
260
260
|
-1
|
|
261
261
|
), w = a > 1 ? y ? 100 : Math.max(0, x) / (a - 1) * 100 : 0, O = x >= 0 ? r : i, C = y ? r : i, D = {
|
|
@@ -299,11 +299,11 @@ function _o() {
|
|
|
299
299
|
if (hr) return qe;
|
|
300
300
|
hr = 1;
|
|
301
301
|
var e = Ir, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
302
|
-
function s(c, a,
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
for (
|
|
306
|
-
if (c && c.defaultProps) for (
|
|
302
|
+
function s(c, a, u) {
|
|
303
|
+
var d, f = {}, m = null, h = null;
|
|
304
|
+
u !== void 0 && (m = "" + u), a.key !== void 0 && (m = "" + a.key), a.ref !== void 0 && (h = a.ref);
|
|
305
|
+
for (d in a) n.call(a, d) && !i.hasOwnProperty(d) && (f[d] = a[d]);
|
|
306
|
+
if (c && c.defaultProps) for (d in a = c.defaultProps, a) f[d] === void 0 && (f[d] = a[d]);
|
|
307
307
|
return { $$typeof: t, type: c, key: m, ref: h, props: f, _owner: o.current };
|
|
308
308
|
}
|
|
309
309
|
return qe.Fragment = r, qe.jsx = s, qe.jsxs = s, qe;
|
|
@@ -321,7 +321,7 @@ var st = {};
|
|
|
321
321
|
var gr;
|
|
322
322
|
function Eo() {
|
|
323
323
|
return gr || (gr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
324
|
-
var e = Ir, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"),
|
|
324
|
+
var e = Ir, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, y = "@@iterator";
|
|
325
325
|
function b(l) {
|
|
326
326
|
if (l === null || typeof l != "object")
|
|
327
327
|
return null;
|
|
@@ -349,7 +349,7 @@ function Eo() {
|
|
|
349
349
|
var C = !1, D = !1, N = !1, E = !1, k = !1, j;
|
|
350
350
|
j = Symbol.for("react.module.reference");
|
|
351
351
|
function B(l) {
|
|
352
|
-
return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || k || l === o || l ===
|
|
352
|
+
return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || k || l === o || l === u || l === d || E || l === h || C || D || N || typeof l == "object" && l !== null && (l.$$typeof === m || l.$$typeof === f || l.$$typeof === s || l.$$typeof === c || l.$$typeof === a || // This needs to include all possible module reference object
|
|
353
353
|
// types supported by any Flight configuration anywhere since
|
|
354
354
|
// we don't know which Flight build this will end up being used
|
|
355
355
|
// with.
|
|
@@ -381,9 +381,9 @@ function Eo() {
|
|
|
381
381
|
return "Profiler";
|
|
382
382
|
case o:
|
|
383
383
|
return "StrictMode";
|
|
384
|
-
case d:
|
|
385
|
-
return "Suspense";
|
|
386
384
|
case u:
|
|
385
|
+
return "Suspense";
|
|
386
|
+
case d:
|
|
387
387
|
return "SuspenseList";
|
|
388
388
|
}
|
|
389
389
|
if (typeof l == "object")
|
|
@@ -577,9 +577,9 @@ function Eo() {
|
|
|
577
577
|
if (typeof l == "string")
|
|
578
578
|
return ye(l);
|
|
579
579
|
switch (l) {
|
|
580
|
-
case d:
|
|
581
|
-
return ye("Suspense");
|
|
582
580
|
case u:
|
|
581
|
+
return ye("Suspense");
|
|
582
|
+
case d:
|
|
583
583
|
return ye("SuspenseList");
|
|
584
584
|
}
|
|
585
585
|
if (typeof l == "object")
|
|
@@ -929,16 +929,16 @@ function Ur() {
|
|
|
929
929
|
const vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, br = Ur, Co = (e, t) => (r) => {
|
|
930
930
|
var n;
|
|
931
931
|
if ((t == null ? void 0 : t.variants) == null) return br(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
932
|
-
const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
935
|
-
const m = vr(
|
|
936
|
-
return o[
|
|
937
|
-
}), c = r && Object.entries(r).reduce((
|
|
938
|
-
let [f, m] =
|
|
939
|
-
return m === void 0 || (
|
|
940
|
-
}, {}), a = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((
|
|
941
|
-
let { class: f, className: m, ...h } =
|
|
932
|
+
const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((u) => {
|
|
933
|
+
const d = r == null ? void 0 : r[u], f = i == null ? void 0 : i[u];
|
|
934
|
+
if (d === null) return null;
|
|
935
|
+
const m = vr(d) || vr(f);
|
|
936
|
+
return o[u][m];
|
|
937
|
+
}), c = r && Object.entries(r).reduce((u, d) => {
|
|
938
|
+
let [f, m] = d;
|
|
939
|
+
return m === void 0 || (u[f] = m), u;
|
|
940
|
+
}, {}), a = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((u, d) => {
|
|
941
|
+
let { class: f, className: m, ...h } = d;
|
|
942
942
|
return Object.entries(h).every((g) => {
|
|
943
943
|
let [y, b] = g;
|
|
944
944
|
return Array.isArray(b) ? b.includes({
|
|
@@ -949,10 +949,10 @@ const vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, br = Ur, C
|
|
|
949
949
|
...c
|
|
950
950
|
}[y] === b;
|
|
951
951
|
}) ? [
|
|
952
|
-
...
|
|
952
|
+
...u,
|
|
953
953
|
f,
|
|
954
954
|
m
|
|
955
|
-
] :
|
|
955
|
+
] : u;
|
|
956
956
|
}, []);
|
|
957
957
|
return br(e, s, a, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
958
958
|
}, Vt = "-", To = (e) => {
|
|
@@ -1061,7 +1061,7 @@ const vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, br = Ur, C
|
|
|
1061
1061
|
} = e;
|
|
1062
1062
|
let n = (o) => {
|
|
1063
1063
|
const i = [];
|
|
1064
|
-
let s = 0, c = 0, a = 0,
|
|
1064
|
+
let s = 0, c = 0, a = 0, u;
|
|
1065
1065
|
for (let g = 0; g < o.length; g++) {
|
|
1066
1066
|
let y = o[g];
|
|
1067
1067
|
if (s === 0 && c === 0) {
|
|
@@ -1070,13 +1070,13 @@ const vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, br = Ur, C
|
|
|
1070
1070
|
continue;
|
|
1071
1071
|
}
|
|
1072
1072
|
if (y === "/") {
|
|
1073
|
-
|
|
1073
|
+
u = g;
|
|
1074
1074
|
continue;
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
1077
|
y === "[" ? s++ : y === "]" ? s-- : y === "(" ? c++ : y === ")" && c--;
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const d = i.length === 0 ? o : o.substring(a), f = Ao(d), m = f !== d, h = u && u > a ? u - a : void 0;
|
|
1080
1080
|
return {
|
|
1081
1081
|
modifiers: i,
|
|
1082
1082
|
hasImportantModifier: m,
|
|
@@ -1126,26 +1126,26 @@ const vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, br = Ur, C
|
|
|
1126
1126
|
sortModifiers: i
|
|
1127
1127
|
} = t, s = [], c = e.trim().split(Lo);
|
|
1128
1128
|
let a = "";
|
|
1129
|
-
for (let
|
|
1130
|
-
const
|
|
1129
|
+
for (let u = c.length - 1; u >= 0; u -= 1) {
|
|
1130
|
+
const d = c[u], {
|
|
1131
1131
|
isExternal: f,
|
|
1132
1132
|
modifiers: m,
|
|
1133
1133
|
hasImportantModifier: h,
|
|
1134
1134
|
baseClassName: g,
|
|
1135
1135
|
maybePostfixModifierPosition: y
|
|
1136
|
-
} = r(
|
|
1136
|
+
} = r(d);
|
|
1137
1137
|
if (f) {
|
|
1138
|
-
a =
|
|
1138
|
+
a = d + (a.length > 0 ? " " + a : a);
|
|
1139
1139
|
continue;
|
|
1140
1140
|
}
|
|
1141
1141
|
let b = !!y, x = n(b ? g.substring(0, y) : g);
|
|
1142
1142
|
if (!x) {
|
|
1143
1143
|
if (!b) {
|
|
1144
|
-
a =
|
|
1144
|
+
a = d + (a.length > 0 ? " " + a : a);
|
|
1145
1145
|
continue;
|
|
1146
1146
|
}
|
|
1147
1147
|
if (x = n(g), !x) {
|
|
1148
|
-
a =
|
|
1148
|
+
a = d + (a.length > 0 ? " " + a : a);
|
|
1149
1149
|
continue;
|
|
1150
1150
|
}
|
|
1151
1151
|
b = !1;
|
|
@@ -1159,7 +1159,7 @@ const vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, br = Ur, C
|
|
|
1159
1159
|
const E = D[N];
|
|
1160
1160
|
s.push(O + E);
|
|
1161
1161
|
}
|
|
1162
|
-
a =
|
|
1162
|
+
a = d + (a.length > 0 ? " " + a : a);
|
|
1163
1163
|
}
|
|
1164
1164
|
return a;
|
|
1165
1165
|
};
|
|
@@ -1180,15 +1180,15 @@ const Gr = (e) => {
|
|
|
1180
1180
|
function Mo(e, ...t) {
|
|
1181
1181
|
let r, n, o, i = s;
|
|
1182
1182
|
function s(a) {
|
|
1183
|
-
const
|
|
1184
|
-
return r = Fo(
|
|
1183
|
+
const u = t.reduce((d, f) => f(d), e());
|
|
1184
|
+
return r = Fo(u), n = r.cache.get, o = r.cache.set, i = c, c(a);
|
|
1185
1185
|
}
|
|
1186
1186
|
function c(a) {
|
|
1187
|
-
const
|
|
1188
|
-
if (
|
|
1189
|
-
return
|
|
1190
|
-
const
|
|
1191
|
-
return o(a,
|
|
1187
|
+
const u = n(a);
|
|
1188
|
+
if (u)
|
|
1189
|
+
return u;
|
|
1190
|
+
const d = $o(a, r);
|
|
1191
|
+
return o(a, d), d;
|
|
1192
1192
|
}
|
|
1193
1193
|
return function() {
|
|
1194
1194
|
return i(Io.apply(null, arguments));
|
|
@@ -1209,7 +1209,7 @@ const te = (e) => {
|
|
|
1209
1209
|
const n = Kr.exec(e);
|
|
1210
1210
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
1211
1211
|
}, Qr = (e) => e === "position" || e === "percentage", qr = (e) => e === "image" || e === "url", Zr = (e) => e === "length" || e === "size" || e === "bg-size", en = (e) => e === "length", ni = (e) => e === "number", oi = (e) => e === "family-name", tn = (e) => e === "shadow", ii = () => {
|
|
1212
|
-
const e = te("color"), t = te("font"), r = te("text"), n = te("font-weight"), o = te("tracking"), i = te("leading"), s = te("breakpoint"), c = te("container"), a = te("spacing"),
|
|
1212
|
+
const e = te("color"), t = te("font"), r = te("text"), n = te("font-weight"), o = te("tracking"), i = te("leading"), s = te("breakpoint"), c = te("container"), a = te("spacing"), u = te("radius"), d = te("shadow"), f = te("inset-shadow"), m = te("text-shadow"), h = te("drop-shadow"), g = te("blur"), y = te("perspective"), b = te("aspect"), x = te("ease"), w = te("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
1213
1213
|
"center",
|
|
1214
1214
|
"top",
|
|
1215
1215
|
"bottom",
|
|
@@ -1240,7 +1240,7 @@ const te = (e) => {
|
|
|
1240
1240
|
"",
|
|
1241
1241
|
"none",
|
|
1242
1242
|
"full",
|
|
1243
|
-
|
|
1243
|
+
u,
|
|
1244
1244
|
S,
|
|
1245
1245
|
T
|
|
1246
1246
|
], q = () => ["", z, Ze, Le], ge = () => ["solid", "dashed", "dotted", "double"], Te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => [z, Pt, _r, kr], ye = () => [
|
|
@@ -2599,7 +2599,7 @@ const te = (e) => {
|
|
|
2599
2599
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2600
2600
|
"",
|
|
2601
2601
|
"none",
|
|
2602
|
-
|
|
2602
|
+
d,
|
|
2603
2603
|
lt,
|
|
2604
2604
|
at
|
|
2605
2605
|
]
|
|
@@ -3717,20 +3717,20 @@ function nn(e, t = []) {
|
|
|
3717
3717
|
function n(i, s) {
|
|
3718
3718
|
const c = p.createContext(s), a = r.length;
|
|
3719
3719
|
r = [...r, s];
|
|
3720
|
-
const
|
|
3720
|
+
const u = (f) => {
|
|
3721
3721
|
var m;
|
|
3722
3722
|
const { scope: h, children: g, ...y } = f, b = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[a]) || c, x = p.useMemo(() => y, Object.values(y));
|
|
3723
3723
|
return /* @__PURE__ */ P.jsx(b.Provider, { value: x, children: g });
|
|
3724
3724
|
};
|
|
3725
|
-
|
|
3726
|
-
function
|
|
3725
|
+
u.displayName = i + "Provider";
|
|
3726
|
+
function d(f, m) {
|
|
3727
3727
|
var h;
|
|
3728
3728
|
const g = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[a]) || c, y = p.useContext(g);
|
|
3729
3729
|
if (y) return y;
|
|
3730
3730
|
if (s !== void 0) return s;
|
|
3731
3731
|
throw new Error(`\`${f}\` must be used within \`${i}\``);
|
|
3732
3732
|
}
|
|
3733
|
-
return [
|
|
3733
|
+
return [u, d];
|
|
3734
3734
|
}
|
|
3735
3735
|
const o = () => {
|
|
3736
3736
|
const i = r.map((s) => p.createContext(s));
|
|
@@ -3754,8 +3754,8 @@ function li(...e) {
|
|
|
3754
3754
|
}));
|
|
3755
3755
|
return function(o) {
|
|
3756
3756
|
const i = n.reduce((s, { useScope: c, scopeName: a }) => {
|
|
3757
|
-
const
|
|
3758
|
-
return { ...s, ...
|
|
3757
|
+
const u = c(o)[`__scope${a}`];
|
|
3758
|
+
return { ...s, ...u };
|
|
3759
3759
|
}, {});
|
|
3760
3760
|
return p.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
3761
3761
|
};
|
|
@@ -3767,8 +3767,8 @@ function ci(e) {
|
|
|
3767
3767
|
const t = /* @__PURE__ */ ui(e), r = p.forwardRef((n, o) => {
|
|
3768
3768
|
const { children: i, ...s } = n, c = p.Children.toArray(i), a = c.find(fi);
|
|
3769
3769
|
if (a) {
|
|
3770
|
-
const
|
|
3771
|
-
return /* @__PURE__ */ P.jsx(t, { ...s, ref: o, children: p.isValidElement(
|
|
3770
|
+
const u = a.props.children, d = c.map((f) => f === a ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : f);
|
|
3771
|
+
return /* @__PURE__ */ P.jsx(t, { ...s, ref: o, children: p.isValidElement(u) ? p.cloneElement(u, void 0, d) : null });
|
|
3772
3772
|
}
|
|
3773
3773
|
return /* @__PURE__ */ P.jsx(t, { ...s, ref: o, children: i });
|
|
3774
3774
|
});
|
|
@@ -3871,23 +3871,23 @@ var vi = "DismissableLayer", $t = "dismissableLayer.update", bi = "dismissableLa
|
|
|
3871
3871
|
onInteractOutside: s,
|
|
3872
3872
|
onDismiss: c,
|
|
3873
3873
|
...a
|
|
3874
|
-
} = e,
|
|
3875
|
-
const k = E.target, j = [...
|
|
3874
|
+
} = e, u = p.useContext(sn), [d, f] = p.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = p.useState({}), g = Me(t, (E) => f(E)), y = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = y.indexOf(b), w = d ? y.indexOf(d) : -1, O = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, D = _i((E) => {
|
|
3875
|
+
const k = E.target, j = [...u.branches].some((B) => B.contains(k));
|
|
3876
3876
|
!C || j || (o == null || o(E), s == null || s(E), E.defaultPrevented || c == null || c());
|
|
3877
3877
|
}, m), N = Ei((E) => {
|
|
3878
3878
|
const k = E.target;
|
|
3879
|
-
[...
|
|
3879
|
+
[...u.branches].some((j) => j.contains(k)) || (i == null || i(E), s == null || s(E), E.defaultPrevented || c == null || c());
|
|
3880
3880
|
}, m);
|
|
3881
3881
|
return yi((E) => {
|
|
3882
|
-
w ===
|
|
3882
|
+
w === u.layers.size - 1 && (n == null || n(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
|
|
3883
3883
|
}, m), p.useEffect(() => {
|
|
3884
|
-
if (
|
|
3885
|
-
return r && (
|
|
3886
|
-
r &&
|
|
3884
|
+
if (d)
|
|
3885
|
+
return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Rr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Cr(), () => {
|
|
3886
|
+
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Rr);
|
|
3887
3887
|
};
|
|
3888
|
-
}, [
|
|
3889
|
-
|
|
3890
|
-
}, [
|
|
3888
|
+
}, [d, m, r, u]), p.useEffect(() => () => {
|
|
3889
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Cr());
|
|
3890
|
+
}, [d, u]), p.useEffect(() => {
|
|
3891
3891
|
const E = () => h({});
|
|
3892
3892
|
return document.addEventListener($t, E), () => document.removeEventListener($t, E);
|
|
3893
3893
|
}, []), /* @__PURE__ */ P.jsx(
|
|
@@ -3931,11 +3931,11 @@ function _i(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3931
3931
|
ln(
|
|
3932
3932
|
bi,
|
|
3933
3933
|
r,
|
|
3934
|
-
|
|
3934
|
+
u,
|
|
3935
3935
|
{ discrete: !0 }
|
|
3936
3936
|
);
|
|
3937
3937
|
};
|
|
3938
|
-
const
|
|
3938
|
+
const u = { originalEvent: c };
|
|
3939
3939
|
c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
|
|
3940
3940
|
} else
|
|
3941
3941
|
t.removeEventListener("click", o.current);
|
|
@@ -4091,18 +4091,18 @@ function Or(e, t, r) {
|
|
|
4091
4091
|
reference: n,
|
|
4092
4092
|
floating: o
|
|
4093
4093
|
} = e;
|
|
4094
|
-
const i = pe(t), s = Gt(t), c = Yt(s), a = _e(t),
|
|
4094
|
+
const i = pe(t), s = Gt(t), c = Yt(s), a = _e(t), u = i === "y", d = n.x + n.width / 2 - o.width / 2, f = n.y + n.height / 2 - o.height / 2, m = n[c] / 2 - o[c] / 2;
|
|
4095
4095
|
let h;
|
|
4096
4096
|
switch (a) {
|
|
4097
4097
|
case "top":
|
|
4098
4098
|
h = {
|
|
4099
|
-
x:
|
|
4099
|
+
x: d,
|
|
4100
4100
|
y: n.y - o.height
|
|
4101
4101
|
};
|
|
4102
4102
|
break;
|
|
4103
4103
|
case "bottom":
|
|
4104
4104
|
h = {
|
|
4105
|
-
x:
|
|
4105
|
+
x: d,
|
|
4106
4106
|
y: n.y + n.height
|
|
4107
4107
|
};
|
|
4108
4108
|
break;
|
|
@@ -4126,10 +4126,10 @@ function Or(e, t, r) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
switch (Je(t)) {
|
|
4128
4128
|
case "start":
|
|
4129
|
-
h[s] -= m * (r &&
|
|
4129
|
+
h[s] -= m * (r && u ? -1 : 1);
|
|
4130
4130
|
break;
|
|
4131
4131
|
case "end":
|
|
4132
|
-
h[s] += m * (r &&
|
|
4132
|
+
h[s] += m * (r && u ? -1 : 1);
|
|
4133
4133
|
break;
|
|
4134
4134
|
}
|
|
4135
4135
|
return h;
|
|
@@ -4145,15 +4145,15 @@ async function Li(e, t) {
|
|
|
4145
4145
|
elements: c,
|
|
4146
4146
|
strategy: a
|
|
4147
4147
|
} = e, {
|
|
4148
|
-
boundary:
|
|
4149
|
-
rootBoundary:
|
|
4148
|
+
boundary: u = "clippingAncestors",
|
|
4149
|
+
rootBoundary: d = "viewport",
|
|
4150
4150
|
elementContext: f = "floating",
|
|
4151
4151
|
altBoundary: m = !1,
|
|
4152
4152
|
padding: h = 0
|
|
4153
4153
|
} = ke(t, e), g = cn(h), y = c[m ? f === "floating" ? "reference" : "floating" : f], b = mt(await i.getClippingRect({
|
|
4154
4154
|
element: (r = await (i.isElement == null ? void 0 : i.isElement(y))) == null || r ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
4155
|
-
boundary:
|
|
4156
|
-
rootBoundary:
|
|
4155
|
+
boundary: u,
|
|
4156
|
+
rootBoundary: d,
|
|
4157
4157
|
strategy: a
|
|
4158
4158
|
})), x = f === "floating" ? {
|
|
4159
4159
|
x: n,
|
|
@@ -4189,14 +4189,14 @@ const $i = 50, Ii = async (e, t, r) => {
|
|
|
4189
4189
|
...s,
|
|
4190
4190
|
detectOverflow: Li
|
|
4191
4191
|
}, a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
4192
|
-
let
|
|
4192
|
+
let u = await s.getElementRects({
|
|
4193
4193
|
reference: e,
|
|
4194
4194
|
floating: t,
|
|
4195
4195
|
strategy: o
|
|
4196
4196
|
}), {
|
|
4197
|
-
x:
|
|
4197
|
+
x: d,
|
|
4198
4198
|
y: f
|
|
4199
|
-
} = Or(
|
|
4199
|
+
} = Or(u, n, a), m = n, h = 0;
|
|
4200
4200
|
const g = {};
|
|
4201
4201
|
for (let y = 0; y < i.length; y++) {
|
|
4202
4202
|
const b = i[y];
|
|
@@ -4211,33 +4211,33 @@ const $i = 50, Ii = async (e, t, r) => {
|
|
|
4211
4211
|
data: D,
|
|
4212
4212
|
reset: N
|
|
4213
4213
|
} = await w({
|
|
4214
|
-
x:
|
|
4214
|
+
x: d,
|
|
4215
4215
|
y: f,
|
|
4216
4216
|
initialPlacement: n,
|
|
4217
4217
|
placement: m,
|
|
4218
4218
|
strategy: o,
|
|
4219
4219
|
middlewareData: g,
|
|
4220
|
-
rects:
|
|
4220
|
+
rects: u,
|
|
4221
4221
|
platform: c,
|
|
4222
4222
|
elements: {
|
|
4223
4223
|
reference: e,
|
|
4224
4224
|
floating: t
|
|
4225
4225
|
}
|
|
4226
4226
|
});
|
|
4227
|
-
|
|
4227
|
+
d = O ?? d, f = C ?? f, g[x] = {
|
|
4228
4228
|
...g[x],
|
|
4229
4229
|
...D
|
|
4230
|
-
}, N && h < $i && (h++, typeof N == "object" && (N.placement && (m = N.placement), N.rects && (
|
|
4230
|
+
}, N && h < $i && (h++, typeof N == "object" && (N.placement && (m = N.placement), N.rects && (u = N.rects === !0 ? await s.getElementRects({
|
|
4231
4231
|
reference: e,
|
|
4232
4232
|
floating: t,
|
|
4233
4233
|
strategy: o
|
|
4234
4234
|
}) : N.rects), {
|
|
4235
|
-
x:
|
|
4235
|
+
x: d,
|
|
4236
4236
|
y: f
|
|
4237
|
-
} = Or(
|
|
4237
|
+
} = Or(u, m, a)), y = -1);
|
|
4238
4238
|
}
|
|
4239
4239
|
return {
|
|
4240
|
-
x:
|
|
4240
|
+
x: d,
|
|
4241
4241
|
y: f,
|
|
4242
4242
|
placement: m,
|
|
4243
4243
|
strategy: o,
|
|
@@ -4256,15 +4256,15 @@ const $i = 50, Ii = async (e, t, r) => {
|
|
|
4256
4256
|
elements: c,
|
|
4257
4257
|
middlewareData: a
|
|
4258
4258
|
} = t, {
|
|
4259
|
-
element:
|
|
4260
|
-
padding:
|
|
4259
|
+
element: u,
|
|
4260
|
+
padding: d = 0
|
|
4261
4261
|
} = ke(e, t) || {};
|
|
4262
|
-
if (
|
|
4262
|
+
if (u == null)
|
|
4263
4263
|
return {};
|
|
4264
|
-
const f = cn(
|
|
4264
|
+
const f = cn(d), m = {
|
|
4265
4265
|
x: r,
|
|
4266
4266
|
y: n
|
|
4267
|
-
}, h = Gt(o), g = Yt(h), y = await s.getDimensions(
|
|
4267
|
+
}, h = Gt(o), g = Yt(h), y = await s.getDimensions(u), b = h === "y", x = b ? "top" : "left", w = b ? "bottom" : "right", O = b ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[h] - m[h] - i.floating[g], D = m[h] - i.reference[h], N = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
4268
4268
|
let E = N ? N[O] : 0;
|
|
4269
4269
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(N))) && (E = c.floating[O] || i.floating[g]);
|
|
4270
4270
|
const k = C / 2 - D / 2, j = E / 2 - y[g] / 2 - 1, B = Pe(f[x], j), J = Pe(f[w], j), Y = B, V = E - y[g] - J, L = E / 2 - y[g] / 2 + k, X = It(Y, L, V), I = !a.arrow && Je(o) != null && L !== X && i.reference[g] / 2 - (L < Y ? B : J) - y[g] / 2 < 0, M = I ? L < Y ? L - Y : L - V : 0;
|
|
@@ -4292,9 +4292,9 @@ const $i = 50, Ii = async (e, t, r) => {
|
|
|
4292
4292
|
rects: s,
|
|
4293
4293
|
initialPlacement: c,
|
|
4294
4294
|
platform: a,
|
|
4295
|
-
elements:
|
|
4295
|
+
elements: u
|
|
4296
4296
|
} = t, {
|
|
4297
|
-
mainAxis:
|
|
4297
|
+
mainAxis: d = !0,
|
|
4298
4298
|
crossAxis: f = !0,
|
|
4299
4299
|
fallbackPlacements: m,
|
|
4300
4300
|
fallbackStrategy: h = "bestFit",
|
|
@@ -4304,11 +4304,11 @@ const $i = 50, Ii = async (e, t, r) => {
|
|
|
4304
4304
|
} = ke(e, t);
|
|
4305
4305
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
4306
4306
|
return {};
|
|
4307
|
-
const x = _e(o), w = pe(c), O = _e(c) === c, C = await (a.isRTL == null ? void 0 : a.isRTL(
|
|
4307
|
+
const x = _e(o), w = pe(c), O = _e(c) === c, C = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), D = m || (O || !y ? [pt(c)] : Ni(c)), N = g !== "none";
|
|
4308
4308
|
!m && N && D.push(...zi(c, y, g, C));
|
|
4309
4309
|
const E = [c, ...D], k = await a.detectOverflow(t, b), j = [];
|
|
4310
4310
|
let B = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
4311
|
-
if (
|
|
4311
|
+
if (d && j.push(k[x]), f) {
|
|
4312
4312
|
const L = Pi(o, s, C);
|
|
4313
4313
|
j.push(k[L[0]], k[L[1]]);
|
|
4314
4314
|
}
|
|
@@ -4421,7 +4421,7 @@ async function Hi(e, t) {
|
|
|
4421
4421
|
placement: r,
|
|
4422
4422
|
platform: n,
|
|
4423
4423
|
elements: o
|
|
4424
|
-
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = _e(r), c = Je(r), a = pe(r) === "y",
|
|
4424
|
+
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = _e(r), c = Je(r), a = pe(r) === "y", u = un.has(s) ? -1 : 1, d = i && a ? -1 : 1, f = ke(t, e);
|
|
4425
4425
|
let {
|
|
4426
4426
|
mainAxis: m,
|
|
4427
4427
|
crossAxis: h,
|
|
@@ -4436,11 +4436,11 @@ async function Hi(e, t) {
|
|
|
4436
4436
|
alignmentAxis: f.alignmentAxis
|
|
4437
4437
|
};
|
|
4438
4438
|
return c && typeof g == "number" && (h = c === "end" ? g * -1 : g), a ? {
|
|
4439
|
-
x: h *
|
|
4440
|
-
y: m *
|
|
4439
|
+
x: h * d,
|
|
4440
|
+
y: m * u
|
|
4441
4441
|
} : {
|
|
4442
|
-
x: m *
|
|
4443
|
-
y: h *
|
|
4442
|
+
x: m * u,
|
|
4443
|
+
y: h * d
|
|
4444
4444
|
};
|
|
4445
4445
|
}
|
|
4446
4446
|
const Vi = function(e) {
|
|
@@ -4490,12 +4490,12 @@ const Vi = function(e) {
|
|
|
4490
4490
|
};
|
|
4491
4491
|
}
|
|
4492
4492
|
},
|
|
4493
|
-
...
|
|
4494
|
-
} = ke(e, t),
|
|
4493
|
+
...u
|
|
4494
|
+
} = ke(e, t), d = {
|
|
4495
4495
|
x: r,
|
|
4496
4496
|
y: n
|
|
4497
|
-
}, f = await i.detectOverflow(t,
|
|
4498
|
-
let g =
|
|
4497
|
+
}, f = await i.detectOverflow(t, u), m = pe(_e(o)), h = Ut(m);
|
|
4498
|
+
let g = d[h], y = d[m];
|
|
4499
4499
|
if (s) {
|
|
4500
4500
|
const x = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", O = g + f[x], C = g - f[w];
|
|
4501
4501
|
g = It(O, g, C);
|
|
@@ -4535,12 +4535,12 @@ const Vi = function(e) {
|
|
|
4535
4535
|
} = t, {
|
|
4536
4536
|
offset: c = 0,
|
|
4537
4537
|
mainAxis: a = !0,
|
|
4538
|
-
crossAxis:
|
|
4539
|
-
} = ke(e, t),
|
|
4538
|
+
crossAxis: u = !0
|
|
4539
|
+
} = ke(e, t), d = {
|
|
4540
4540
|
x: r,
|
|
4541
4541
|
y: n
|
|
4542
4542
|
}, f = pe(o), m = Ut(f);
|
|
4543
|
-
let h =
|
|
4543
|
+
let h = d[m], g = d[f];
|
|
4544
4544
|
const y = ke(c, t), b = typeof y == "number" ? {
|
|
4545
4545
|
mainAxis: y,
|
|
4546
4546
|
crossAxis: 0
|
|
@@ -4553,7 +4553,7 @@ const Vi = function(e) {
|
|
|
4553
4553
|
const O = m === "y" ? "height" : "width", C = i.reference[m] - i.floating[O] + b.mainAxis, D = i.reference[m] + i.reference[O] - b.mainAxis;
|
|
4554
4554
|
h < C ? h = C : h > D && (h = D);
|
|
4555
4555
|
}
|
|
4556
|
-
if (
|
|
4556
|
+
if (u) {
|
|
4557
4557
|
var x, w;
|
|
4558
4558
|
const O = m === "y" ? "width" : "height", C = un.has(_e(o)), D = i.reference[f] - i.floating[O] + (C && ((x = s.offset) == null ? void 0 : x[f]) || 0) + (C ? 0 : b.crossAxis), N = i.reference[f] + i.reference[O] + (C ? 0 : ((w = s.offset) == null ? void 0 : w[f]) || 0) - (C ? b.crossAxis : 0);
|
|
4559
4559
|
g < D ? g = D : g > N && (g = N);
|
|
@@ -4578,18 +4578,18 @@ const Vi = function(e) {
|
|
|
4578
4578
|
} = t, {
|
|
4579
4579
|
apply: a = () => {
|
|
4580
4580
|
},
|
|
4581
|
-
...
|
|
4582
|
-
} = ke(e, t),
|
|
4581
|
+
...u
|
|
4582
|
+
} = ke(e, t), d = await s.detectOverflow(t, u), f = _e(o), m = Je(o), h = pe(o) === "y", {
|
|
4583
4583
|
width: g,
|
|
4584
4584
|
height: y
|
|
4585
4585
|
} = i.floating;
|
|
4586
4586
|
let b, x;
|
|
4587
4587
|
f === "top" || f === "bottom" ? (b = f, x = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (x = f, b = m === "end" ? "top" : "bottom");
|
|
4588
|
-
const w = y -
|
|
4588
|
+
const w = y - d.top - d.bottom, O = g - d.left - d.right, C = Pe(y - d[b], w), D = Pe(g - d[x], O), N = !t.middlewareData.shift;
|
|
4589
4589
|
let E = C, k = D;
|
|
4590
4590
|
if ((r = t.middlewareData.shift) != null && r.enabled.x && (k = O), (n = t.middlewareData.shift) != null && n.enabled.y && (E = w), N && !m) {
|
|
4591
|
-
const B = ie(
|
|
4592
|
-
h ? k = g - 2 * (B !== 0 || J !== 0 ? B + J : ie(
|
|
4591
|
+
const B = ie(d.left, 0), J = ie(d.right, 0), Y = ie(d.top, 0), V = ie(d.bottom, 0);
|
|
4592
|
+
h ? k = g - 2 * (B !== 0 || J !== 0 ? B + J : ie(d.left, d.right)) : E = y - 2 * (Y !== 0 || V !== 0 ? Y + V : ie(d.top, d.bottom));
|
|
4593
4593
|
}
|
|
4594
4594
|
await a({
|
|
4595
4595
|
...t,
|
|
@@ -4764,20 +4764,20 @@ function Ie(e, t, r, n) {
|
|
|
4764
4764
|
let s = me(1);
|
|
4765
4765
|
t && (n ? ue(n) && (s = Ue(n)) : s = Ue(e));
|
|
4766
4766
|
const c = Zi(i, r, n) ? mn(i) : me(0);
|
|
4767
|
-
let a = (o.left + c.x) / s.x,
|
|
4767
|
+
let a = (o.left + c.x) / s.x, u = (o.top + c.y) / s.y, d = o.width / s.x, f = o.height / s.y;
|
|
4768
4768
|
if (i) {
|
|
4769
4769
|
const m = se(i), h = n && ue(n) ? se(n) : n;
|
|
4770
4770
|
let g = m, y = Wt(g);
|
|
4771
4771
|
for (; y && n && h !== g; ) {
|
|
4772
4772
|
const b = Ue(y), x = y.getBoundingClientRect(), w = de(y), O = x.left + (y.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = x.top + (y.clientTop + parseFloat(w.paddingTop)) * b.y;
|
|
4773
|
-
a *= b.x,
|
|
4773
|
+
a *= b.x, u *= b.y, d *= b.x, f *= b.y, a += O, u += C, g = se(y), y = Wt(g);
|
|
4774
4774
|
}
|
|
4775
4775
|
}
|
|
4776
4776
|
return mt({
|
|
4777
|
-
width:
|
|
4777
|
+
width: d,
|
|
4778
4778
|
height: f,
|
|
4779
4779
|
x: a,
|
|
4780
|
-
y:
|
|
4780
|
+
y: u
|
|
4781
4781
|
});
|
|
4782
4782
|
}
|
|
4783
4783
|
function xt(e, t) {
|
|
@@ -4804,18 +4804,18 @@ function es(e) {
|
|
|
4804
4804
|
let a = {
|
|
4805
4805
|
scrollLeft: 0,
|
|
4806
4806
|
scrollTop: 0
|
|
4807
|
-
},
|
|
4808
|
-
const
|
|
4807
|
+
}, u = me(1);
|
|
4808
|
+
const d = me(0), f = Ee(n);
|
|
4809
4809
|
if ((f || !f && !i) && ((Qe(n) !== "body" || rt(s)) && (a = bt(n)), f)) {
|
|
4810
4810
|
const h = Ie(n);
|
|
4811
|
-
|
|
4811
|
+
u = Ue(n), d.x = h.x + n.clientLeft, d.y = h.y + n.clientTop;
|
|
4812
4812
|
}
|
|
4813
4813
|
const m = s && !f && !i ? hn(s, a) : me(0);
|
|
4814
4814
|
return {
|
|
4815
|
-
width: r.width *
|
|
4816
|
-
height: r.height *
|
|
4817
|
-
x: r.x *
|
|
4818
|
-
y: r.y *
|
|
4815
|
+
width: r.width * u.x,
|
|
4816
|
+
height: r.height * u.y,
|
|
4817
|
+
x: r.x * u.x - a.scrollLeft * u.x + d.x + m.x,
|
|
4818
|
+
y: r.y * u.y - a.scrollTop * u.y + d.y + m.y
|
|
4819
4819
|
};
|
|
4820
4820
|
}
|
|
4821
4821
|
function ts(e) {
|
|
@@ -4838,14 +4838,14 @@ function ns(e, t) {
|
|
|
4838
4838
|
let i = n.clientWidth, s = n.clientHeight, c = 0, a = 0;
|
|
4839
4839
|
if (o) {
|
|
4840
4840
|
i = o.width, s = o.height;
|
|
4841
|
-
const
|
|
4842
|
-
(!
|
|
4841
|
+
const d = Kt();
|
|
4842
|
+
(!d || d && t === "fixed") && (c = o.offsetLeft, a = o.offsetTop);
|
|
4843
4843
|
}
|
|
4844
|
-
const
|
|
4845
|
-
if (
|
|
4846
|
-
const
|
|
4844
|
+
const u = xt(n);
|
|
4845
|
+
if (u <= 0) {
|
|
4846
|
+
const d = n.ownerDocument, f = d.body, m = getComputedStyle(f), h = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(n.clientWidth - f.clientWidth - h);
|
|
4847
4847
|
g <= Dr && (i -= g);
|
|
4848
|
-
} else
|
|
4848
|
+
} else u <= Dr && (i += u);
|
|
4849
4849
|
return {
|
|
4850
4850
|
width: i,
|
|
4851
4851
|
height: s,
|
|
@@ -4854,12 +4854,12 @@ function ns(e, t) {
|
|
|
4854
4854
|
};
|
|
4855
4855
|
}
|
|
4856
4856
|
function os(e, t) {
|
|
4857
|
-
const r = Ie(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = Ee(e) ? Ue(e) : me(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x,
|
|
4857
|
+
const r = Ie(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = Ee(e) ? Ue(e) : me(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, u = n * i.y;
|
|
4858
4858
|
return {
|
|
4859
4859
|
width: s,
|
|
4860
4860
|
height: c,
|
|
4861
4861
|
x: a,
|
|
4862
|
-
y:
|
|
4862
|
+
y: u
|
|
4863
4863
|
};
|
|
4864
4864
|
}
|
|
4865
4865
|
function Ar(e, t, r) {
|
|
@@ -4894,7 +4894,7 @@ function is(e, t) {
|
|
|
4894
4894
|
let s = i ? Ne(e) : e;
|
|
4895
4895
|
for (; ue(s) && !Ye(s); ) {
|
|
4896
4896
|
const c = de(s), a = Xt(s);
|
|
4897
|
-
!a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && o && (o.position === "absolute" || o.position === "fixed") || rt(s) && !a && gn(e, s)) ? n = n.filter((
|
|
4897
|
+
!a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && o && (o.position === "absolute" || o.position === "fixed") || rt(s) && !a && gn(e, s)) ? n = n.filter((u) => u !== s) : o = c, s = Ne(s);
|
|
4898
4898
|
}
|
|
4899
4899
|
return t.set(e, n), n;
|
|
4900
4900
|
}
|
|
@@ -4906,15 +4906,15 @@ function ss(e) {
|
|
|
4906
4906
|
strategy: o
|
|
4907
4907
|
} = e;
|
|
4908
4908
|
const i = [...r === "clippingAncestors" ? vt(t) ? [] : is(t, this._c) : [].concat(r), n], s = Ar(t, i[0], o);
|
|
4909
|
-
let c = s.top, a = s.right,
|
|
4909
|
+
let c = s.top, a = s.right, u = s.bottom, d = s.left;
|
|
4910
4910
|
for (let f = 1; f < i.length; f++) {
|
|
4911
4911
|
const m = Ar(t, i[f], o);
|
|
4912
|
-
c = ie(m.top, c), a = Pe(m.right, a),
|
|
4912
|
+
c = ie(m.top, c), a = Pe(m.right, a), u = Pe(m.bottom, u), d = ie(m.left, d);
|
|
4913
4913
|
}
|
|
4914
4914
|
return {
|
|
4915
|
-
width: a -
|
|
4916
|
-
height:
|
|
4917
|
-
x:
|
|
4915
|
+
width: a - d,
|
|
4916
|
+
height: u - c,
|
|
4917
|
+
x: d,
|
|
4918
4918
|
y: c
|
|
4919
4919
|
};
|
|
4920
4920
|
}
|
|
@@ -4935,16 +4935,16 @@ function ls(e, t, r) {
|
|
|
4935
4935
|
scrollTop: 0
|
|
4936
4936
|
};
|
|
4937
4937
|
const a = me(0);
|
|
4938
|
-
function
|
|
4938
|
+
function u() {
|
|
4939
4939
|
a.x = xt(o);
|
|
4940
4940
|
}
|
|
4941
4941
|
if (n || !n && !i)
|
|
4942
4942
|
if ((Qe(t) !== "body" || rt(o)) && (c = bt(t)), n) {
|
|
4943
4943
|
const h = Ie(t, !0, i, t);
|
|
4944
4944
|
a.x = h.x + t.clientLeft, a.y = h.y + t.clientTop;
|
|
4945
|
-
} else o &&
|
|
4946
|
-
i && !n && o &&
|
|
4947
|
-
const
|
|
4945
|
+
} else o && u();
|
|
4946
|
+
i && !n && o && u();
|
|
4947
|
+
const d = o && !n && !i ? hn(o, c) : me(0), f = s.left + c.scrollLeft - a.x - d.x, m = s.top + c.scrollTop - a.y - d.y;
|
|
4948
4948
|
return {
|
|
4949
4949
|
x: f,
|
|
4950
4950
|
y: m,
|
|
@@ -5020,15 +5020,15 @@ function fs(e, t) {
|
|
|
5020
5020
|
}
|
|
5021
5021
|
function s(c, a) {
|
|
5022
5022
|
c === void 0 && (c = !1), a === void 0 && (a = 1), i();
|
|
5023
|
-
const
|
|
5024
|
-
left:
|
|
5023
|
+
const u = e.getBoundingClientRect(), {
|
|
5024
|
+
left: d,
|
|
5025
5025
|
top: f,
|
|
5026
5026
|
width: m,
|
|
5027
5027
|
height: h
|
|
5028
|
-
} =
|
|
5028
|
+
} = u;
|
|
5029
5029
|
if (c || t(), !m || !h)
|
|
5030
5030
|
return;
|
|
5031
|
-
const g = ct(f), y = ct(o.clientWidth - (
|
|
5031
|
+
const g = ct(f), y = ct(o.clientWidth - (d + m)), b = ct(o.clientHeight - (f + h)), x = ct(d), w = {
|
|
5032
5032
|
rootMargin: -g + "px " + -y + "px " + -b + "px " + -x + "px",
|
|
5033
5033
|
threshold: ie(0, Pe(1, a)) || 1
|
|
5034
5034
|
};
|
|
@@ -5042,7 +5042,7 @@ function fs(e, t) {
|
|
|
5042
5042
|
s(!1, 1e-7);
|
|
5043
5043
|
}, 1e3);
|
|
5044
5044
|
}
|
|
5045
|
-
N === 1 && !vn(
|
|
5045
|
+
N === 1 && !vn(u, e.getBoundingClientRect()) && s(), O = !1;
|
|
5046
5046
|
}
|
|
5047
5047
|
try {
|
|
5048
5048
|
r = new IntersectionObserver(C, {
|
|
@@ -5065,21 +5065,21 @@ function ps(e, t, r, n) {
|
|
|
5065
5065
|
elementResize: s = typeof ResizeObserver == "function",
|
|
5066
5066
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
5067
5067
|
animationFrame: a = !1
|
|
5068
|
-
} = n,
|
|
5069
|
-
|
|
5068
|
+
} = n, u = Jt(e), d = o || i ? [...u ? et(u) : [], ...t ? et(t) : []] : [];
|
|
5069
|
+
d.forEach((x) => {
|
|
5070
5070
|
o && x.addEventListener("scroll", r, {
|
|
5071
5071
|
passive: !0
|
|
5072
5072
|
}), i && x.addEventListener("resize", r);
|
|
5073
5073
|
});
|
|
5074
|
-
const f =
|
|
5074
|
+
const f = u && c ? fs(u, r) : null;
|
|
5075
5075
|
let m = -1, h = null;
|
|
5076
5076
|
s && (h = new ResizeObserver((x) => {
|
|
5077
5077
|
let [w] = x;
|
|
5078
|
-
w && w.target ===
|
|
5078
|
+
w && w.target === u && h && t && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
5079
5079
|
var O;
|
|
5080
5080
|
(O = h) == null || O.observe(t);
|
|
5081
5081
|
})), r();
|
|
5082
|
-
}),
|
|
5082
|
+
}), u && !a && h.observe(u), t && h.observe(t));
|
|
5083
5083
|
let g, y = a ? Ie(e) : null;
|
|
5084
5084
|
a && b();
|
|
5085
5085
|
function b() {
|
|
@@ -5088,7 +5088,7 @@ function ps(e, t, r, n) {
|
|
|
5088
5088
|
}
|
|
5089
5089
|
return r(), () => {
|
|
5090
5090
|
var x;
|
|
5091
|
-
|
|
5091
|
+
d.forEach((w) => {
|
|
5092
5092
|
o && w.removeEventListener("scroll", r), i && w.removeEventListener("resize", r);
|
|
5093
5093
|
}), f == null || f(), (x = h) == null || x.disconnect(), h = null, a && cancelAnimationFrame(g);
|
|
5094
5094
|
};
|
|
@@ -5164,8 +5164,8 @@ function _s(e) {
|
|
|
5164
5164
|
} = {},
|
|
5165
5165
|
transform: c = !0,
|
|
5166
5166
|
whileElementsMounted: a,
|
|
5167
|
-
open:
|
|
5168
|
-
} = e, [
|
|
5167
|
+
open: u
|
|
5168
|
+
} = e, [d, f] = p.useState({
|
|
5169
5169
|
x: 0,
|
|
5170
5170
|
y: 0,
|
|
5171
5171
|
strategy: r,
|
|
@@ -5178,7 +5178,7 @@ function _s(e) {
|
|
|
5178
5178
|
_ !== N.current && (N.current = _, y(_));
|
|
5179
5179
|
}, []), O = p.useCallback((_) => {
|
|
5180
5180
|
_ !== E.current && (E.current = _, x(_));
|
|
5181
|
-
}, []), C = i || g, D = s || b, N = p.useRef(null), E = p.useRef(null), k = p.useRef(
|
|
5181
|
+
}, []), C = i || g, D = s || b, N = p.useRef(null), E = p.useRef(null), k = p.useRef(d), j = a != null, B = At(a), J = At(o), Y = At(u), V = p.useCallback(() => {
|
|
5182
5182
|
if (!N.current || !E.current)
|
|
5183
5183
|
return;
|
|
5184
5184
|
const _ = {
|
|
@@ -5201,11 +5201,11 @@ function _s(e) {
|
|
|
5201
5201
|
});
|
|
5202
5202
|
}, [m, t, r, J, Y]);
|
|
5203
5203
|
dt(() => {
|
|
5204
|
-
|
|
5204
|
+
u === !1 && k.current.isPositioned && (k.current.isPositioned = !1, f((_) => ({
|
|
5205
5205
|
..._,
|
|
5206
5206
|
isPositioned: !1
|
|
5207
5207
|
})));
|
|
5208
|
-
}, [
|
|
5208
|
+
}, [u]);
|
|
5209
5209
|
const L = p.useRef(!1);
|
|
5210
5210
|
dt(() => (L.current = !0, () => {
|
|
5211
5211
|
L.current = !1;
|
|
@@ -5232,7 +5232,7 @@ function _s(e) {
|
|
|
5232
5232
|
};
|
|
5233
5233
|
if (!I.floating)
|
|
5234
5234
|
return _;
|
|
5235
|
-
const K = Lr(I.floating,
|
|
5235
|
+
const K = Lr(I.floating, d.x), re = Lr(I.floating, d.y);
|
|
5236
5236
|
return c ? {
|
|
5237
5237
|
..._,
|
|
5238
5238
|
transform: "translate(" + K + "px, " + re + "px)",
|
|
@@ -5244,14 +5244,14 @@ function _s(e) {
|
|
|
5244
5244
|
left: K,
|
|
5245
5245
|
top: re
|
|
5246
5246
|
};
|
|
5247
|
-
}, [r, c, I.floating,
|
|
5247
|
+
}, [r, c, I.floating, d.x, d.y]);
|
|
5248
5248
|
return p.useMemo(() => ({
|
|
5249
|
-
...
|
|
5249
|
+
...d,
|
|
5250
5250
|
update: V,
|
|
5251
5251
|
refs: X,
|
|
5252
5252
|
elements: I,
|
|
5253
5253
|
floatingStyles: M
|
|
5254
|
-
}), [
|
|
5254
|
+
}), [d, V, X, I, M]);
|
|
5255
5255
|
}
|
|
5256
5256
|
const Es = (e) => {
|
|
5257
5257
|
function t(r) {
|
|
@@ -5348,8 +5348,8 @@ function As(e) {
|
|
|
5348
5348
|
const i = o[0];
|
|
5349
5349
|
let s, c;
|
|
5350
5350
|
if ("borderBoxSize" in i) {
|
|
5351
|
-
const a = i.borderBoxSize,
|
|
5352
|
-
s =
|
|
5351
|
+
const a = i.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
|
|
5352
|
+
s = u.inlineSize, c = u.blockSize;
|
|
5353
5353
|
} else
|
|
5354
5354
|
s = e.offsetWidth, c = e.offsetHeight;
|
|
5355
5355
|
r({ width: s, height: c });
|
|
@@ -5368,8 +5368,8 @@ var Rn = "PopperAnchor", Cn = p.forwardRef(
|
|
|
5368
5368
|
(e, t) => {
|
|
5369
5369
|
const { __scopePopper: r, virtualRef: n, ...o } = e, i = _n(Rn, r), s = p.useRef(null), c = Me(t, s), a = p.useRef(null);
|
|
5370
5370
|
return p.useEffect(() => {
|
|
5371
|
-
const
|
|
5372
|
-
a.current = (n == null ? void 0 : n.current) || s.current,
|
|
5371
|
+
const u = a.current;
|
|
5372
|
+
a.current = (n == null ? void 0 : n.current) || s.current, u !== a.current && i.onAnchorChange(a.current);
|
|
5373
5373
|
}), n ? null : /* @__PURE__ */ P.jsx(je.div, { ...o, ref: c });
|
|
5374
5374
|
}
|
|
5375
5375
|
);
|
|
@@ -5379,8 +5379,8 @@ var qt = "PopperContent", [Fs, Ls] = wn(qt), Tn = p.forwardRef(
|
|
|
5379
5379
|
var r, n, o, i, s, c;
|
|
5380
5380
|
const {
|
|
5381
5381
|
__scopePopper: a,
|
|
5382
|
-
side:
|
|
5383
|
-
sideOffset:
|
|
5382
|
+
side: u = "bottom",
|
|
5383
|
+
sideOffset: d = 0,
|
|
5384
5384
|
align: f = "center",
|
|
5385
5385
|
alignOffset: m = 0,
|
|
5386
5386
|
arrowPadding: h = 0,
|
|
@@ -5392,7 +5392,7 @@ var qt = "PopperContent", [Fs, Ls] = wn(qt), Tn = p.forwardRef(
|
|
|
5392
5392
|
updatePositionStrategy: O = "optimized",
|
|
5393
5393
|
onPlaced: C,
|
|
5394
5394
|
...D
|
|
5395
|
-
} = e, N = _n(qt, a), [E, k] = p.useState(null), j = Me(t, (Ae) => k(Ae)), [B, J] = p.useState(null), Y = As(B), V = (Y == null ? void 0 : Y.width) ?? 0, L = (Y == null ? void 0 : Y.height) ?? 0, X =
|
|
5395
|
+
} = e, N = _n(qt, a), [E, k] = p.useState(null), j = Me(t, (Ae) => k(Ae)), [B, J] = p.useState(null), Y = As(B), V = (Y == null ? void 0 : Y.width) ?? 0, L = (Y == null ? void 0 : Y.height) ?? 0, X = u + (f !== "center" ? "-" + f : ""), I = typeof b == "number" ? b : { top: 0, right: 0, bottom: 0, left: 0, ...b }, M = Array.isArray(y) ? y : [y], _ = M.length > 0, K = {
|
|
5396
5396
|
padding: I,
|
|
5397
5397
|
boundary: M.filter(Is),
|
|
5398
5398
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5408,7 +5408,7 @@ var qt = "PopperContent", [Fs, Ls] = wn(qt), Tn = p.forwardRef(
|
|
|
5408
5408
|
reference: N.anchor
|
|
5409
5409
|
},
|
|
5410
5410
|
middleware: [
|
|
5411
|
-
Rs({ mainAxis:
|
|
5411
|
+
Rs({ mainAxis: d + L, alignmentAxis: m }),
|
|
5412
5412
|
g && Cs({
|
|
5413
5413
|
mainAxis: !0,
|
|
5414
5414
|
crossAxis: !1,
|
|
@@ -5548,9 +5548,9 @@ var Ms = (e) => ({
|
|
|
5548
5548
|
options: e,
|
|
5549
5549
|
fn(t) {
|
|
5550
5550
|
var r, n, o;
|
|
5551
|
-
const { placement: i, rects: s, middlewareData: c } = t, a = ((r = c.arrow) == null ? void 0 : r.centerOffset) !== 0,
|
|
5551
|
+
const { placement: i, rects: s, middlewareData: c } = t, a = ((r = c.arrow) == null ? void 0 : r.centerOffset) !== 0, u = a ? 0 : e.arrowWidth, d = a ? 0 : e.arrowHeight, [f, m] = Pn(i), h = { start: "0%", center: "50%", end: "100%" }[m], g = (((n = c.arrow) == null ? void 0 : n.x) ?? 0) + u / 2, y = (((o = c.arrow) == null ? void 0 : o.y) ?? 0) + d / 2;
|
|
5552
5552
|
let b = "", x = "";
|
|
5553
|
-
return f === "bottom" ? (b = a ? h : `${g}px`, x = `${-
|
|
5553
|
+
return f === "bottom" ? (b = a ? h : `${g}px`, x = `${-d}px`) : f === "top" ? (b = a ? h : `${g}px`, x = `${s.floating.height + d}px`) : f === "right" ? (b = `${-d}px`, x = a ? h : `${y}px`) : f === "left" && (b = `${s.floating.width + d}px`, x = a ? h : `${y}px`), { data: { x: b, y: x } };
|
|
5554
5554
|
}
|
|
5555
5555
|
});
|
|
5556
5556
|
function Pn(e) {
|
|
@@ -5588,22 +5588,22 @@ function Gs(e) {
|
|
|
5588
5588
|
}
|
|
5589
5589
|
});
|
|
5590
5590
|
return p.useEffect(() => {
|
|
5591
|
-
const
|
|
5592
|
-
i.current = c === "mounted" ?
|
|
5591
|
+
const u = ut(n.current);
|
|
5592
|
+
i.current = c === "mounted" ? u : "none";
|
|
5593
5593
|
}, [c]), Oe(() => {
|
|
5594
|
-
const
|
|
5595
|
-
if (
|
|
5596
|
-
const f = i.current, m = ut(
|
|
5597
|
-
e ? a("MOUNT") : m === "none" || (
|
|
5594
|
+
const u = n.current, d = o.current;
|
|
5595
|
+
if (d !== e) {
|
|
5596
|
+
const f = i.current, m = ut(u);
|
|
5597
|
+
e ? a("MOUNT") : m === "none" || (u == null ? void 0 : u.display) === "none" ? a("UNMOUNT") : a(d && f !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
5598
5598
|
}
|
|
5599
5599
|
}, [e, a]), Oe(() => {
|
|
5600
5600
|
if (t) {
|
|
5601
|
-
let
|
|
5602
|
-
const
|
|
5601
|
+
let u;
|
|
5602
|
+
const d = t.ownerDocument.defaultView ?? window, f = (h) => {
|
|
5603
5603
|
const g = ut(n.current).includes(CSS.escape(h.animationName));
|
|
5604
5604
|
if (h.target === t && g && (a("ANIMATION_END"), !o.current)) {
|
|
5605
5605
|
const y = t.style.animationFillMode;
|
|
5606
|
-
t.style.animationFillMode = "forwards",
|
|
5606
|
+
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
5607
5607
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
|
|
5608
5608
|
});
|
|
5609
5609
|
}
|
|
@@ -5611,14 +5611,14 @@ function Gs(e) {
|
|
|
5611
5611
|
h.target === t && (i.current = ut(n.current));
|
|
5612
5612
|
};
|
|
5613
5613
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
5614
|
-
|
|
5614
|
+
d.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
5615
5615
|
};
|
|
5616
5616
|
} else
|
|
5617
5617
|
a("ANIMATION_END");
|
|
5618
5618
|
}, [t, a]), {
|
|
5619
5619
|
isPresent: ["mounted", "unmountSuspended"].includes(c),
|
|
5620
|
-
ref: p.useCallback((
|
|
5621
|
-
n.current =
|
|
5620
|
+
ref: p.useCallback((u) => {
|
|
5621
|
+
n.current = u ? getComputedStyle(u) : null, r(u);
|
|
5622
5622
|
}, [])
|
|
5623
5623
|
};
|
|
5624
5624
|
}
|
|
@@ -5643,26 +5643,26 @@ function Js({
|
|
|
5643
5643
|
onChange: r
|
|
5644
5644
|
}), c = e !== void 0, a = c ? e : o;
|
|
5645
5645
|
{
|
|
5646
|
-
const
|
|
5646
|
+
const d = p.useRef(e !== void 0);
|
|
5647
5647
|
p.useEffect(() => {
|
|
5648
|
-
const f =
|
|
5648
|
+
const f = d.current;
|
|
5649
5649
|
f !== c && console.warn(
|
|
5650
5650
|
`${n} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
5651
|
-
),
|
|
5651
|
+
), d.current = c;
|
|
5652
5652
|
}, [c, n]);
|
|
5653
5653
|
}
|
|
5654
|
-
const
|
|
5655
|
-
(
|
|
5654
|
+
const u = p.useCallback(
|
|
5655
|
+
(d) => {
|
|
5656
5656
|
var f;
|
|
5657
5657
|
if (c) {
|
|
5658
|
-
const m = qs(
|
|
5658
|
+
const m = qs(d) ? d(e) : d;
|
|
5659
5659
|
m !== e && ((f = s.current) == null || f.call(s, m));
|
|
5660
5660
|
} else
|
|
5661
|
-
i(
|
|
5661
|
+
i(d);
|
|
5662
5662
|
},
|
|
5663
5663
|
[c, e, i, s]
|
|
5664
5664
|
);
|
|
5665
|
-
return [a,
|
|
5665
|
+
return [a, u];
|
|
5666
5666
|
}
|
|
5667
5667
|
function Qs({
|
|
5668
5668
|
defaultProp: e,
|
|
@@ -5713,8 +5713,8 @@ var ta = jn, [wt] = nn("Tooltip", [
|
|
|
5713
5713
|
children: i
|
|
5714
5714
|
} = e, s = p.useRef(!0), c = p.useRef(!1), a = p.useRef(0);
|
|
5715
5715
|
return p.useEffect(() => {
|
|
5716
|
-
const
|
|
5717
|
-
return () => window.clearTimeout(
|
|
5716
|
+
const u = a.current;
|
|
5717
|
+
return () => window.clearTimeout(u);
|
|
5718
5718
|
}, []), /* @__PURE__ */ P.jsx(
|
|
5719
5719
|
na,
|
|
5720
5720
|
{
|
|
@@ -5731,8 +5731,8 @@ var ta = jn, [wt] = nn("Tooltip", [
|
|
|
5731
5731
|
);
|
|
5732
5732
|
}, [n]),
|
|
5733
5733
|
isPointerInTransitRef: c,
|
|
5734
|
-
onPointerInTransitChange: p.useCallback((
|
|
5735
|
-
c.current =
|
|
5734
|
+
onPointerInTransitChange: p.useCallback((u) => {
|
|
5735
|
+
c.current = u;
|
|
5736
5736
|
}, []),
|
|
5737
5737
|
disableHoverableContent: o,
|
|
5738
5738
|
children: i
|
|
@@ -5749,7 +5749,7 @@ var tt = "Tooltip", [oa, nt] = wt(tt), zn = (e) => {
|
|
|
5749
5749
|
onOpenChange: i,
|
|
5750
5750
|
disableHoverableContent: s,
|
|
5751
5751
|
delayDuration: c
|
|
5752
|
-
} = e, a = er(tt, e.__scopeTooltip),
|
|
5752
|
+
} = e, a = er(tt, e.__scopeTooltip), u = kt(t), [d, f] = p.useState(null), m = Ti(), h = p.useRef(0), g = s ?? a.disableHoverableContent, y = c ?? a.delayDuration, b = p.useRef(!1), [x, w] = Js({
|
|
5753
5753
|
prop: n,
|
|
5754
5754
|
defaultProp: o ?? !1,
|
|
5755
5755
|
onChange: (E) => {
|
|
@@ -5767,14 +5767,14 @@ var tt = "Tooltip", [oa, nt] = wt(tt), zn = (e) => {
|
|
|
5767
5767
|
}, [y, w]);
|
|
5768
5768
|
return p.useEffect(() => () => {
|
|
5769
5769
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
5770
|
-
}, []), /* @__PURE__ */ P.jsx(Ws, { ...
|
|
5770
|
+
}, []), /* @__PURE__ */ P.jsx(Ws, { ...u, children: /* @__PURE__ */ P.jsx(
|
|
5771
5771
|
oa,
|
|
5772
5772
|
{
|
|
5773
5773
|
scope: t,
|
|
5774
5774
|
contentId: m,
|
|
5775
5775
|
open: x,
|
|
5776
5776
|
stateAttribute: O,
|
|
5777
|
-
trigger:
|
|
5777
|
+
trigger: d,
|
|
5778
5778
|
onTriggerChange: f,
|
|
5779
5779
|
onTriggerEnter: p.useCallback(() => {
|
|
5780
5780
|
a.isOpenDelayedRef.current ? N() : C();
|
|
@@ -5792,7 +5792,7 @@ var tt = "Tooltip", [oa, nt] = wt(tt), zn = (e) => {
|
|
|
5792
5792
|
zn.displayName = tt;
|
|
5793
5793
|
var Ht = "TooltipTrigger", Fn = p.forwardRef(
|
|
5794
5794
|
(e, t) => {
|
|
5795
|
-
const { __scopeTooltip: r, ...n } = e, o = nt(Ht, r), i = er(Ht, r), s = kt(r), c = p.useRef(null), a = Me(t, c, o.onTriggerChange),
|
|
5795
|
+
const { __scopeTooltip: r, ...n } = e, o = nt(Ht, r), i = er(Ht, r), s = kt(r), c = p.useRef(null), a = Me(t, c, o.onTriggerChange), u = p.useRef(!1), d = p.useRef(!1), f = p.useCallback(() => u.current = !1, []);
|
|
5796
5796
|
return p.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ P.jsx(Bs, { asChild: !0, ...s, children: /* @__PURE__ */ P.jsx(
|
|
5797
5797
|
je.button,
|
|
5798
5798
|
{
|
|
@@ -5801,16 +5801,16 @@ var Ht = "TooltipTrigger", Fn = p.forwardRef(
|
|
|
5801
5801
|
...n,
|
|
5802
5802
|
ref: a,
|
|
5803
5803
|
onPointerMove: we(e.onPointerMove, (m) => {
|
|
5804
|
-
m.pointerType !== "touch" && !
|
|
5804
|
+
m.pointerType !== "touch" && !d.current && !i.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
|
|
5805
5805
|
}),
|
|
5806
5806
|
onPointerLeave: we(e.onPointerLeave, () => {
|
|
5807
|
-
o.onTriggerLeave(),
|
|
5807
|
+
o.onTriggerLeave(), d.current = !1;
|
|
5808
5808
|
}),
|
|
5809
5809
|
onPointerDown: we(e.onPointerDown, () => {
|
|
5810
|
-
o.open && o.onClose(),
|
|
5810
|
+
o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
5811
5811
|
}),
|
|
5812
5812
|
onFocus: we(e.onFocus, () => {
|
|
5813
|
-
|
|
5813
|
+
u.current || o.onOpen();
|
|
5814
5814
|
}),
|
|
5815
5815
|
onBlur: we(e.onBlur, o.onClose),
|
|
5816
5816
|
onClick: we(e.onClick, o.onClose)
|
|
@@ -5832,7 +5832,7 @@ var Ge = "TooltipContent", $n = p.forwardRef(
|
|
|
5832
5832
|
return /* @__PURE__ */ P.jsx(Zt, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ P.jsx(In, { side: o, ...i, ref: t }) : /* @__PURE__ */ P.jsx(aa, { side: o, ...i, ref: t }) });
|
|
5833
5833
|
}
|
|
5834
5834
|
), aa = p.forwardRef((e, t) => {
|
|
5835
|
-
const r = nt(Ge, e.__scopeTooltip), n = er(Ge, e.__scopeTooltip), o = p.useRef(null), i = Me(t, o), [s, c] = p.useState(null), { trigger: a, onClose:
|
|
5835
|
+
const r = nt(Ge, e.__scopeTooltip), n = er(Ge, e.__scopeTooltip), o = p.useRef(null), i = Me(t, o), [s, c] = p.useState(null), { trigger: a, onClose: u } = r, d = o.current, { onPointerInTransitChange: f } = n, m = p.useCallback(() => {
|
|
5836
5836
|
c(null), f(!1);
|
|
5837
5837
|
}, [f]), h = p.useCallback(
|
|
5838
5838
|
(g, y) => {
|
|
@@ -5842,21 +5842,21 @@ var Ge = "TooltipContent", $n = p.forwardRef(
|
|
|
5842
5842
|
[f]
|
|
5843
5843
|
);
|
|
5844
5844
|
return p.useEffect(() => () => m(), [m]), p.useEffect(() => {
|
|
5845
|
-
if (a &&
|
|
5846
|
-
const g = (b) => h(b,
|
|
5847
|
-
return a.addEventListener("pointerleave", g),
|
|
5848
|
-
a.removeEventListener("pointerleave", g),
|
|
5845
|
+
if (a && d) {
|
|
5846
|
+
const g = (b) => h(b, d), y = (b) => h(b, a);
|
|
5847
|
+
return a.addEventListener("pointerleave", g), d.addEventListener("pointerleave", y), () => {
|
|
5848
|
+
a.removeEventListener("pointerleave", g), d.removeEventListener("pointerleave", y);
|
|
5849
5849
|
};
|
|
5850
5850
|
}
|
|
5851
|
-
}, [a,
|
|
5851
|
+
}, [a, d, h, m]), p.useEffect(() => {
|
|
5852
5852
|
if (s) {
|
|
5853
5853
|
const g = (y) => {
|
|
5854
|
-
const b = y.target, x = { x: y.clientX, y: y.clientY }, w = (a == null ? void 0 : a.contains(b)) || (
|
|
5855
|
-
w ? m() : O && (m(),
|
|
5854
|
+
const b = y.target, x = { x: y.clientX, y: y.clientY }, w = (a == null ? void 0 : a.contains(b)) || (d == null ? void 0 : d.contains(b)), O = !ma(x, s);
|
|
5855
|
+
w ? m() : O && (m(), u());
|
|
5856
5856
|
};
|
|
5857
5857
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
5858
5858
|
}
|
|
5859
|
-
}, [a,
|
|
5859
|
+
}, [a, d, s, u, m]), /* @__PURE__ */ P.jsx(In, { ...e, ref: i });
|
|
5860
5860
|
}), [la, ca] = wt(tt, { isInside: !1 }), ua = /* @__PURE__ */ di("TooltipContent"), In = p.forwardRef(
|
|
5861
5861
|
(e, t) => {
|
|
5862
5862
|
const {
|
|
@@ -5866,16 +5866,16 @@ var Ge = "TooltipContent", $n = p.forwardRef(
|
|
|
5866
5866
|
onEscapeKeyDown: i,
|
|
5867
5867
|
onPointerDownOutside: s,
|
|
5868
5868
|
...c
|
|
5869
|
-
} = e, a = nt(Ge, r),
|
|
5870
|
-
return p.useEffect(() => (document.addEventListener(Bt,
|
|
5869
|
+
} = e, a = nt(Ge, r), u = kt(r), { onClose: d } = a;
|
|
5870
|
+
return p.useEffect(() => (document.addEventListener(Bt, d), () => document.removeEventListener(Bt, d)), [d]), p.useEffect(() => {
|
|
5871
5871
|
if (a.trigger) {
|
|
5872
5872
|
const f = (m) => {
|
|
5873
5873
|
const h = m.target;
|
|
5874
|
-
h != null && h.contains(a.trigger) &&
|
|
5874
|
+
h != null && h.contains(a.trigger) && d();
|
|
5875
5875
|
};
|
|
5876
5876
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
5877
5877
|
}
|
|
5878
|
-
}, [a.trigger,
|
|
5878
|
+
}, [a.trigger, d]), /* @__PURE__ */ P.jsx(
|
|
5879
5879
|
an,
|
|
5880
5880
|
{
|
|
5881
5881
|
asChild: !0,
|
|
@@ -5883,12 +5883,12 @@ var Ge = "TooltipContent", $n = p.forwardRef(
|
|
|
5883
5883
|
onEscapeKeyDown: i,
|
|
5884
5884
|
onPointerDownOutside: s,
|
|
5885
5885
|
onFocusOutside: (f) => f.preventDefault(),
|
|
5886
|
-
onDismiss:
|
|
5886
|
+
onDismiss: d,
|
|
5887
5887
|
children: /* @__PURE__ */ P.jsxs(
|
|
5888
5888
|
Hs,
|
|
5889
5889
|
{
|
|
5890
5890
|
"data-state": a.stateAttribute,
|
|
5891
|
-
...
|
|
5891
|
+
...u,
|
|
5892
5892
|
...c,
|
|
5893
5893
|
ref: t,
|
|
5894
5894
|
style: {
|
|
@@ -5978,8 +5978,8 @@ function ma(e, t) {
|
|
|
5978
5978
|
const { x: r, y: n } = e;
|
|
5979
5979
|
let o = !1;
|
|
5980
5980
|
for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
|
|
5981
|
-
const c = t[i], a = t[s],
|
|
5982
|
-
|
|
5981
|
+
const c = t[i], a = t[s], u = c.x, d = c.y, f = a.x, m = a.y;
|
|
5982
|
+
d > n != m > n && r < (f - u) * (n - d) / (m - d) + u && (o = !o);
|
|
5983
5983
|
}
|
|
5984
5984
|
return o;
|
|
5985
5985
|
}
|
|
@@ -6023,7 +6023,7 @@ const Hn = ya, Vn = va, Un = ba, rr = p.forwardRef(
|
|
|
6023
6023
|
children: i,
|
|
6024
6024
|
...s
|
|
6025
6025
|
}, c) => {
|
|
6026
|
-
const a = r === "rich",
|
|
6026
|
+
const a = r === "rich", u = n ?? !a, d = {
|
|
6027
6027
|
zIndex: 99999,
|
|
6028
6028
|
backgroundColor: a ? "#FFFFFF" : "#000000",
|
|
6029
6029
|
color: a ? "#111827" : "#FFFFFF",
|
|
@@ -6048,12 +6048,12 @@ const Hn = ya, Vn = va, Un = ba, rr = p.forwardRef(
|
|
|
6048
6048
|
{
|
|
6049
6049
|
ref: c,
|
|
6050
6050
|
sideOffset: t,
|
|
6051
|
-
style:
|
|
6051
|
+
style: d,
|
|
6052
6052
|
className: e ?? "",
|
|
6053
6053
|
...s,
|
|
6054
6054
|
children: [
|
|
6055
6055
|
i,
|
|
6056
|
-
|
|
6056
|
+
u && /* @__PURE__ */ P.jsx(
|
|
6057
6057
|
wa,
|
|
6058
6058
|
{
|
|
6059
6059
|
width: 10,
|
|
@@ -6105,8 +6105,8 @@ const ka = Co(
|
|
|
6105
6105
|
leftIcon: s,
|
|
6106
6106
|
datatestid: c,
|
|
6107
6107
|
rightIcon: a,
|
|
6108
|
-
style:
|
|
6109
|
-
iconButton:
|
|
6108
|
+
style: u,
|
|
6109
|
+
iconButton: d = !1,
|
|
6110
6110
|
tooltipLabel: f,
|
|
6111
6111
|
saveColor: m = "#003B71",
|
|
6112
6112
|
deleteColor: h = "#FF6070",
|
|
@@ -6123,7 +6123,7 @@ const ka = Co(
|
|
|
6123
6123
|
cancel: { backgroundColor: y },
|
|
6124
6124
|
outline: { backgroundColor: b }
|
|
6125
6125
|
}[t],
|
|
6126
|
-
...
|
|
6126
|
+
...u
|
|
6127
6127
|
}, C = /* @__PURE__ */ P.jsx(
|
|
6128
6128
|
"button",
|
|
6129
6129
|
{
|
|
@@ -6141,7 +6141,7 @@ const ka = Co(
|
|
|
6141
6141
|
] })
|
|
6142
6142
|
}
|
|
6143
6143
|
);
|
|
6144
|
-
return
|
|
6144
|
+
return d ? /* @__PURE__ */ P.jsx(Hn, { children: /* @__PURE__ */ P.jsxs(Vn, { children: [
|
|
6145
6145
|
/* @__PURE__ */ P.jsx(Un, { asChild: !0, children: C }),
|
|
6146
6146
|
f && /* @__PURE__ */ P.jsx(rr, { children: f })
|
|
6147
6147
|
] }) }) : C;
|
|
@@ -6218,26 +6218,26 @@ const Ea = ({ text: e = "", maxLength: t = 20, className: r = "" }) => {
|
|
|
6218
6218
|
}
|
|
6219
6219
|
)
|
|
6220
6220
|
] }),
|
|
6221
|
-
e.map((c, a) => /* @__PURE__ */ W("div", { className: "summary-detail-card__row", children: c.map((
|
|
6222
|
-
const f =
|
|
6221
|
+
e.map((c, a) => /* @__PURE__ */ W("div", { className: "summary-detail-card__row", children: c.map((u, d) => {
|
|
6222
|
+
const f = typeof u.value == "string" || typeof u.value == "number", m = f ? String(u.value) : "";
|
|
6223
6223
|
return /* @__PURE__ */ le(
|
|
6224
6224
|
"div",
|
|
6225
6225
|
{
|
|
6226
6226
|
className: "summary-detail-card__field",
|
|
6227
|
-
style: { "--dc-span":
|
|
6227
|
+
style: { "--dc-span": u.span ?? 1 },
|
|
6228
6228
|
children: [
|
|
6229
|
-
/* @__PURE__ */ W("p", { className: "summary-detail-card__label", children:
|
|
6229
|
+
/* @__PURE__ */ W("p", { className: "summary-detail-card__label", children: u.label }),
|
|
6230
6230
|
/* @__PURE__ */ W(
|
|
6231
6231
|
"div",
|
|
6232
6232
|
{
|
|
6233
|
-
className: `summary-detail-card__value ${
|
|
6234
|
-
style: { color:
|
|
6235
|
-
children: f.length > $r &&
|
|
6233
|
+
className: `summary-detail-card__value ${u.size === "lg" ? " summary-detail-card__value--lg" : ""}`,
|
|
6234
|
+
style: { color: u.valueColor },
|
|
6235
|
+
children: f && m.length > $r && u.label === "Description" ? /* @__PURE__ */ W(Ra, { text: m, limit: $r }) : f ? /* @__PURE__ */ W(Ea, { text: m, maxLength: 20 }) : u.value
|
|
6236
6236
|
}
|
|
6237
6237
|
)
|
|
6238
6238
|
]
|
|
6239
6239
|
},
|
|
6240
|
-
|
|
6240
|
+
d
|
|
6241
6241
|
);
|
|
6242
6242
|
}) }, a))
|
|
6243
6243
|
]
|