@arkitektbedriftene/fe-lib 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Checkbox-f4ea3f0b.js → Checkbox-c1a7867d.js} +598 -547
- package/dist/rich-text.es.js +1 -1
- package/dist/ui/components/Avatar.d.ts +242 -0
- package/dist/ui/ui.d.ts +1 -0
- package/dist/ui.es.js +40 -39
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as L, jsxs as ee, Fragment as Dn } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import Re, { forwardRef as $e, useLayoutEffect as
|
|
4
|
-
import * as
|
|
5
|
-
import { createPortal as
|
|
3
|
+
import Re, { forwardRef as $e, useLayoutEffect as tn, useEffect as nn, useRef as Mn, createContext as Ln, useMemo as Ue, useContext as on, isValidElement as Fn, cloneElement as zn, useId as rn } from "react";
|
|
4
|
+
import * as Wn from "react-dom";
|
|
5
|
+
import { createPortal as Nn } from "react-dom";
|
|
6
6
|
import * as He from "@radix-ui/react-toolbar";
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as jn, h as Hn, i as Vn, j as _n, k as Yn } from "./index.esm-3266b7f8.js";
|
|
8
8
|
import * as Ne from "@radix-ui/react-dialog";
|
|
9
9
|
import * as ne from "@radix-ui/react-dropdown-menu";
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
var N = "colors", X = "sizes",
|
|
10
|
+
import Xn from "react-select";
|
|
11
|
+
import * as sn from "@radix-ui/react-checkbox";
|
|
12
|
+
var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap: C, gridColumnGap: C, rowGap: C, gridRowGap: C, inset: C, insetBlock: C, insetBlockEnd: C, insetBlockStart: C, insetInline: C, insetInlineEnd: C, insetInlineStart: C, margin: C, marginTop: C, marginRight: C, marginBottom: C, marginLeft: C, marginBlock: C, marginBlockEnd: C, marginBlockStart: C, marginInline: C, marginInlineEnd: C, marginInlineStart: C, padding: C, paddingTop: C, paddingRight: C, paddingBottom: C, paddingLeft: C, paddingBlock: C, paddingBlockEnd: C, paddingBlockStart: C, paddingInline: C, paddingInlineEnd: C, paddingInlineStart: C, top: C, right: C, bottom: C, left: C, scrollMargin: C, scrollMarginTop: C, scrollMarginRight: C, scrollMarginBottom: C, scrollMarginLeft: C, scrollMarginX: C, scrollMarginY: C, scrollMarginBlock: C, scrollMarginBlockEnd: C, scrollMarginBlockStart: C, scrollMarginInline: C, scrollMarginInlineEnd: C, scrollMarginInlineStart: C, scrollPadding: C, scrollPaddingTop: C, scrollPaddingRight: C, scrollPaddingBottom: C, scrollPaddingLeft: C, scrollPaddingX: C, scrollPaddingY: C, scrollPaddingBlock: C, scrollPaddingBlockEnd: C, scrollPaddingBlockStart: C, scrollPaddingInline: C, scrollPaddingInlineEnd: C, scrollPaddingInlineStart: C, fontSize: "fontSizes", background: N, backgroundColor: N, backgroundImage: N, borderImage: N, border: N, borderBlock: N, borderBlockEnd: N, borderBlockStart: N, borderBottom: N, borderBottomColor: N, borderColor: N, borderInline: N, borderInlineEnd: N, borderInlineStart: N, borderLeft: N, borderLeftColor: N, borderRight: N, borderRightColor: N, borderTop: N, borderTopColor: N, caretColor: N, color: N, columnRuleColor: N, fill: N, outline: N, outlineColor: N, stroke: N, textDecorationColor: N, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: X, minBlockSize: X, maxBlockSize: X, inlineSize: X, minInlineSize: X, maxInlineSize: X, width: X, minWidth: X, maxWidth: X, height: X, minHeight: X, maxHeight: X, flexBasis: X, gridTemplateColumns: X, gridTemplateRows: X, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, Gn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, De = () => {
|
|
13
13
|
const e = /* @__PURE__ */ Object.create(null);
|
|
14
14
|
return (t, n, ...o) => {
|
|
15
|
-
const r = ((i) => JSON.stringify(i,
|
|
15
|
+
const r = ((i) => JSON.stringify(i, Gn))(t);
|
|
16
16
|
return r in e ? e[r] : e[r] = n(t, ...o);
|
|
17
17
|
};
|
|
18
|
-
}, he = Symbol.for("sxs.internal"), ht = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)),
|
|
18
|
+
}, he = Symbol.for("sxs.internal"), ht = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Et = (e) => {
|
|
19
19
|
for (const t in e)
|
|
20
20
|
return !0;
|
|
21
21
|
return !1;
|
|
22
|
-
}, { hasOwnProperty:
|
|
22
|
+
}, { hasOwnProperty: Un } = Object.prototype, ut = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), qn = /\s+(?![^()]*\))/, Ce = (e) => (t) => e(...typeof t == "string" ? String(t).split(qn) : [t]), kt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: Ce((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: Ce((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: Ce((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: Ce((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: Ce((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: Ce((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, rt = /([\d.]+)([^]*)/, Zn = (e, t) => e.length ? e.reduce((n, o) => (n.push(...t.map((r) => r.includes("&") ? r.replace(/&/g, /[ +>|~]/.test(o) && /&.*&/.test(r) ? `:is(${o})` : o) : o + " " + r)), n), []) : t, Jn = (e, t) => e in Qn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, o, r, i) => o + (r === "stretch" ? `-moz-available${i};${ut(e)}:${o}-webkit-fill-available` : `-moz-fit-content${i};${ut(e)}:${o}fit-content`) + i) : String(t), Qn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, oe = (e) => e ? e + "-" : "", ln = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (o, r, i, s, l) => s == "$" == !!i ? o : (r || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? oe(t) + (l.includes("$") ? "" : oe(n)) + l.replace(/\$/g, "-") : l) + ")" + (r || s == "--" ? "*" + (r || "") + (i || "1") + ")" : "")), eo = /\s*,\s*(?![^()]*\))/, to = Object.prototype.toString, Ie = (e, t, n, o, r) => {
|
|
23
23
|
let i, s, l;
|
|
24
24
|
const a = (c, m, u) => {
|
|
25
25
|
let f, d;
|
|
@@ -27,28 +27,28 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
27
27
|
for (f in p) {
|
|
28
28
|
const x = f.charCodeAt(0) === 64, B = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
29
29
|
for (d of B) {
|
|
30
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (
|
|
30
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (E) => E[1].toUpperCase()), k = typeof d == "object" && d && d.toString === to && (!o.utils[S] || !m.length);
|
|
31
31
|
if (S in o.utils && !k) {
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
34
|
-
s =
|
|
32
|
+
const E = o.utils[S];
|
|
33
|
+
if (E !== s) {
|
|
34
|
+
s = E, g(E(d)), s = null;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
37
|
} else if (S in kt) {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
l =
|
|
38
|
+
const E = kt[S];
|
|
39
|
+
if (E !== l) {
|
|
40
|
+
l = E, g(E(d)), l = null;
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
if (x && ($ = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = $.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (
|
|
45
|
-
const M =
|
|
46
|
-
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(
|
|
44
|
+
if (x && ($ = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = $.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (E, P, T, D, A, F) => {
|
|
45
|
+
const M = rt.test(P), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [D, P] : [P, D];
|
|
46
|
+
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(rt, (I, R, w) => Number(R) + O * (T === ">" ? 1 : -1) + w) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? F.replace(rt, (I, R, w) => Number(R) + O * (A === ">" ? -1 : 1) + w) : F) : "") + ")";
|
|
47
47
|
})), k) {
|
|
48
|
-
const
|
|
49
|
-
i !== void 0 && r(Tt(...i)), i = void 0, a(d, P,
|
|
48
|
+
const E = x ? u.concat(f) : [...u], P = x ? [...m] : Zn(m, f.split(eo));
|
|
49
|
+
i !== void 0 && r(Tt(...i)), i = void 0, a(d, P, E);
|
|
50
50
|
} else
|
|
51
|
-
i === void 0 && (i = [[], m, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${oe(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in
|
|
51
|
+
i === void 0 && (i = [[], m, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${oe(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in no ? String(d) + "px" : String(d) : ln(Jn(S, d ?? ""), o.prefix, o.themeMap[S]), i[0].push(`${x ? `${f} ` : `${ut(f)}:`}${d}`);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
var $, h;
|
|
@@ -56,7 +56,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
56
56
|
g(c), i !== void 0 && r(Tt(...i)), i = void 0;
|
|
57
57
|
};
|
|
58
58
|
a(e, t, n);
|
|
59
|
-
}, Tt = (e, t, n) => `${n.map((o) => `${o}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`,
|
|
59
|
+
}, Tt = (e, t, n) => `${n.map((o) => `${o}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, no = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, It = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), be = (e) => ((t) => {
|
|
60
60
|
let n, o = "";
|
|
61
61
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
62
62
|
o = It(n % 52) + o;
|
|
@@ -66,7 +66,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
66
66
|
for (; o; )
|
|
67
67
|
t = 33 * t ^ n.charCodeAt(--o);
|
|
68
68
|
return t;
|
|
69
|
-
})(5381, JSON.stringify(e)) >>> 0), We = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"],
|
|
69
|
+
})(5381, JSON.stringify(e)) >>> 0), We = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], oo = (e) => {
|
|
70
70
|
if (e.href && !e.href.startsWith(location.origin))
|
|
71
71
|
return !1;
|
|
72
72
|
try {
|
|
@@ -74,7 +74,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
74
74
|
} catch {
|
|
75
75
|
return !1;
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, ro = (e) => {
|
|
78
78
|
let t;
|
|
79
79
|
const n = () => {
|
|
80
80
|
const { cssRules: r } = t.sheet;
|
|
@@ -106,7 +106,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
106
106
|
}
|
|
107
107
|
const r = Object(e).styleSheets || [];
|
|
108
108
|
for (const l of r)
|
|
109
|
-
if (
|
|
109
|
+
if (oo(l)) {
|
|
110
110
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
111
111
|
const m = Object(c[a]);
|
|
112
112
|
if (m.type !== 1)
|
|
@@ -139,11 +139,11 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
139
139
|
const c = We[l + 1], m = s[c] ? s[c].index : i.cssRules.length;
|
|
140
140
|
i.insertRule("@media{}", m), i.insertRule(`--sxs{--sxs:${l}}`, m), s[a] = { group: i.cssRules[m + 1], index: m, cache: /* @__PURE__ */ new Set([l]) };
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
io(s[a]);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
return o(), t;
|
|
146
|
-
},
|
|
146
|
+
}, io = (e) => {
|
|
147
147
|
const t = e.group;
|
|
148
148
|
let n = t.cssRules.length;
|
|
149
149
|
e.apply = (o) => {
|
|
@@ -152,7 +152,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
152
152
|
} catch {
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
|
-
}, ze = Symbol(),
|
|
155
|
+
}, ze = Symbol(), so = De(), Bt = (e, t) => so(e, () => (...n) => {
|
|
156
156
|
let o = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
157
157
|
for (const r of n)
|
|
158
158
|
if (r != null)
|
|
@@ -161,20 +161,20 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
161
161
|
for (const i of r[he].composers)
|
|
162
162
|
o.composers.add(i);
|
|
163
163
|
} else
|
|
164
|
-
r.constructor !== Object || r.$$typeof ? o.type == null && (o.type = r) : o.composers.add(
|
|
165
|
-
return o.type == null && (o.type = "span"), o.composers.size || o.composers.add(["PJLV", {}, [], [], {}, []]),
|
|
166
|
-
}),
|
|
164
|
+
r.constructor !== Object || r.$$typeof ? o.type == null && (o.type = r) : o.composers.add(lo(r, e));
|
|
165
|
+
return o.type == null && (o.type = "span"), o.composers.size || o.composers.add(["PJLV", {}, [], [], {}, []]), ao(e, o, t);
|
|
166
|
+
}), lo = ({ variants: e, compoundVariants: t, defaultVariants: n, ...o }, r) => {
|
|
167
167
|
const i = `${oe(r.prefix)}c-${be(o)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
|
|
168
168
|
for (const f in n)
|
|
169
169
|
a[f] = String(n[f]);
|
|
170
170
|
if (typeof e == "object" && e)
|
|
171
171
|
for (const f in e) {
|
|
172
|
-
m = a, u = f,
|
|
172
|
+
m = a, u = f, Un.call(m, u) || (a[f] = "undefined");
|
|
173
173
|
const d = e[f];
|
|
174
174
|
for (const g in d) {
|
|
175
175
|
const p = { [f]: String(g) };
|
|
176
176
|
String(g) === "undefined" && c.push(f);
|
|
177
|
-
const $ = d[g], h = [p, $, !
|
|
177
|
+
const $ = d[g], h = [p, $, !Et($)];
|
|
178
178
|
s.push(h);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -185,12 +185,12 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
185
185
|
d = typeof d == "object" && d || {};
|
|
186
186
|
for (const $ in g)
|
|
187
187
|
g[$] = String(g[$]);
|
|
188
|
-
const p = [g, d, !
|
|
188
|
+
const p = [g, d, !Et(d)];
|
|
189
189
|
l.push(p);
|
|
190
190
|
}
|
|
191
191
|
return [i, o, s, l, a, c];
|
|
192
|
-
},
|
|
193
|
-
const [o, r, i, s] =
|
|
192
|
+
}, ao = (e, t, n) => {
|
|
193
|
+
const [o, r, i, s] = co(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
|
194
194
|
function f() {
|
|
195
195
|
for (let d = 0; d < f[ze].length; d++) {
|
|
196
196
|
const [g, p] = f[ze][d];
|
|
@@ -200,7 +200,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
200
200
|
}
|
|
201
201
|
return f[ze] = [], f.rules = {}, We.forEach((d) => f.rules[d] = { apply: (g) => f[ze].push([d, g]) }), f;
|
|
202
202
|
})(n) : null, a = (l || n).rules, c = `.${o}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, m = (u) => {
|
|
203
|
-
u = typeof u == "object" && u ||
|
|
203
|
+
u = typeof u == "object" && u || uo;
|
|
204
204
|
const { css: f, ...d } = u, g = {};
|
|
205
205
|
for (const h in i)
|
|
206
206
|
if (delete d[h], h in u) {
|
|
@@ -213,23 +213,23 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
213
213
|
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ie(x, [`.${h}`], [], e, (P) => {
|
|
214
214
|
a.styled.apply(P);
|
|
215
215
|
}));
|
|
216
|
-
const k = Pt(B, g, e.media),
|
|
216
|
+
const k = Pt(B, g, e.media), E = Pt(S, g, e.media, !0);
|
|
217
217
|
for (const P of k)
|
|
218
218
|
if (P !== void 0)
|
|
219
219
|
for (const [T, D, A] of P) {
|
|
220
|
-
const
|
|
221
|
-
p.add(
|
|
220
|
+
const F = `${h}-${be(D)}-${T}`;
|
|
221
|
+
p.add(F);
|
|
222
222
|
const M = (A ? n.rules.resonevar : n.rules.onevar).cache, O = A ? a.resonevar : a.onevar;
|
|
223
|
-
M.has(
|
|
223
|
+
M.has(F) || (M.add(F), Ie(D, [`.${F}`], [], e, (b) => {
|
|
224
224
|
O.apply(b);
|
|
225
225
|
}));
|
|
226
226
|
}
|
|
227
|
-
for (const P of
|
|
227
|
+
for (const P of E)
|
|
228
228
|
if (P !== void 0)
|
|
229
229
|
for (const [T, D] of P) {
|
|
230
230
|
const A = `${h}-${be(D)}-${T}`;
|
|
231
|
-
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A), Ie(D, [`.${A}`], [], e, (
|
|
232
|
-
a.allvar.apply(
|
|
231
|
+
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A), Ie(D, [`.${A}`], [], e, (F) => {
|
|
232
|
+
a.allvar.apply(F);
|
|
233
233
|
}));
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -245,7 +245,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
245
245
|
return { type: t.type, className: $, selector: c, props: d, toString: () => $, deferredInjector: l };
|
|
246
246
|
};
|
|
247
247
|
return ht(m, { className: o, selector: c, [he]: t, toString: () => (n.rules.styled.cache.has(o) || m(), o) });
|
|
248
|
-
},
|
|
248
|
+
}, co = (e) => {
|
|
249
249
|
let t = "";
|
|
250
250
|
const n = [], o = {}, r = [];
|
|
251
251
|
for (const [i, , , , s, l] of e) {
|
|
@@ -289,7 +289,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
289
289
|
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s, m]);
|
|
290
290
|
}
|
|
291
291
|
return r;
|
|
292
|
-
},
|
|
292
|
+
}, uo = {}, fo = De(), mo = (e, t) => fo(e, () => (...n) => {
|
|
293
293
|
const o = () => {
|
|
294
294
|
for (let r of n) {
|
|
295
295
|
r = typeof r == "object" && r || {};
|
|
@@ -309,7 +309,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
309
309
|
return "";
|
|
310
310
|
};
|
|
311
311
|
return ht(o, { toString: o });
|
|
312
|
-
}),
|
|
312
|
+
}), go = De(), po = (e, t) => go(e, () => (n) => {
|
|
313
313
|
const o = `${oe(e.prefix)}k-${be(n)}`, r = () => {
|
|
314
314
|
if (!t.rules.global.cache.has(o)) {
|
|
315
315
|
t.rules.global.cache.add(o);
|
|
@@ -323,7 +323,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
323
323
|
return ht(r, { get name() {
|
|
324
324
|
return r();
|
|
325
325
|
}, toString: r });
|
|
326
|
-
}),
|
|
326
|
+
}), ho = class {
|
|
327
327
|
constructor(e, t, n, o) {
|
|
328
328
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = o == null ? "" : String(o);
|
|
329
329
|
}
|
|
@@ -336,14 +336,14 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
336
336
|
toString() {
|
|
337
337
|
return this.computedValue;
|
|
338
338
|
}
|
|
339
|
-
},
|
|
339
|
+
}, bo = De(), yo = (e, t) => bo(e, () => (n, o) => {
|
|
340
340
|
o = typeof n == "object" && n || Object(o);
|
|
341
341
|
const r = `.${n = (n = typeof n == "string" ? n : "") || `${oe(e.prefix)}t-${be(o)}`}`, i = {}, s = [];
|
|
342
342
|
for (const a in o) {
|
|
343
343
|
i[a] = {};
|
|
344
344
|
for (const c in o[a]) {
|
|
345
|
-
const m = `--${oe(e.prefix)}${a}-${c}`, u =
|
|
346
|
-
i[a][c] = new
|
|
345
|
+
const m = `--${oe(e.prefix)}${a}-${c}`, u = ln(String(o[a][c]), e.prefix, a);
|
|
346
|
+
i[a][c] = new ho(c, u, a, e.prefix), s.push(`${m}:${u}`);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
const l = () => {
|
|
@@ -357,19 +357,19 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
357
357
|
return { ...i, get className() {
|
|
358
358
|
return l();
|
|
359
359
|
}, selector: r, toString: l };
|
|
360
|
-
}),
|
|
360
|
+
}), vo = De(), xo = De(), $o = (e) => {
|
|
361
361
|
const t = ((n) => {
|
|
362
362
|
let o = !1;
|
|
363
|
-
const r =
|
|
363
|
+
const r = vo(n, (i) => {
|
|
364
364
|
o = !0;
|
|
365
|
-
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...
|
|
365
|
+
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Kn }, utils: typeof i.utils == "object" && i.utils || {} }, u = ro(a), f = { css: Bt(m, u), globalCss: mo(m, u), keyframes: po(m, u), createTheme: yo(m, u), reset() {
|
|
366
366
|
u.reset(), f.theme.toString();
|
|
367
367
|
}, theme: {}, sheet: u, config: m, prefix: s, getCssText: u.toString, toString: u.toString };
|
|
368
368
|
return String(f.theme = f.createTheme(c)), f;
|
|
369
369
|
});
|
|
370
370
|
return o || r.reset(), r;
|
|
371
371
|
})(e);
|
|
372
|
-
return t.styled = (({ config: n, sheet: o }) =>
|
|
372
|
+
return t.styled = (({ config: n, sheet: o }) => xo(n, () => {
|
|
373
373
|
const r = Bt(n, o);
|
|
374
374
|
return (...i) => {
|
|
375
375
|
const s = r(...i), l = s[he].type, a = Re.forwardRef((c, m) => {
|
|
@@ -381,7 +381,7 @@ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
|
|
|
381
381
|
}))(t), t;
|
|
382
382
|
};
|
|
383
383
|
let At = 9999;
|
|
384
|
-
const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss:
|
|
384
|
+
const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Vi, getCssText: _i } = $o({
|
|
385
385
|
theme: {
|
|
386
386
|
colors: {
|
|
387
387
|
gray50: "#F9FAFA",
|
|
@@ -507,24 +507,24 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
507
507
|
lg: "(min-width: 1200px)",
|
|
508
508
|
print: "print"
|
|
509
509
|
}
|
|
510
|
-
}),
|
|
510
|
+
}), wo = Me({
|
|
511
511
|
"0%": {
|
|
512
512
|
transform: "rotate(0)"
|
|
513
513
|
},
|
|
514
514
|
"100%": {
|
|
515
515
|
transform: "rotate(360deg)"
|
|
516
516
|
}
|
|
517
|
-
}),
|
|
517
|
+
}), So = Me({
|
|
518
518
|
"0%": {
|
|
519
519
|
strokeDashoffset: 600
|
|
520
520
|
},
|
|
521
521
|
"100%": {
|
|
522
522
|
strokeDashoffset: 0
|
|
523
523
|
}
|
|
524
|
-
}),
|
|
525
|
-
animation: `${
|
|
526
|
-
}),
|
|
527
|
-
animation: `${
|
|
524
|
+
}), Ro = W("svg", {
|
|
525
|
+
animation: `${wo} 2s linear infinite`
|
|
526
|
+
}), Co = W("circle", {
|
|
527
|
+
animation: `${So} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
528
528
|
fill: "transparent",
|
|
529
529
|
stroke: "currentColor",
|
|
530
530
|
strokeDasharray: 300,
|
|
@@ -570,20 +570,20 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
570
570
|
size: "sm",
|
|
571
571
|
color: "dark"
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
574
|
-
(e, t) => /* @__PURE__ */
|
|
573
|
+
}), ko = $e(
|
|
574
|
+
(e, t) => /* @__PURE__ */ L(
|
|
575
575
|
Eo,
|
|
576
576
|
{
|
|
577
577
|
ref: t,
|
|
578
578
|
...e,
|
|
579
|
-
children: /* @__PURE__ */
|
|
580
|
-
|
|
579
|
+
children: /* @__PURE__ */ L(
|
|
580
|
+
Ro,
|
|
581
581
|
{
|
|
582
582
|
x: "0px",
|
|
583
583
|
y: "0px",
|
|
584
584
|
viewBox: "0 0 150 150",
|
|
585
|
-
children: /* @__PURE__ */
|
|
586
|
-
|
|
585
|
+
children: /* @__PURE__ */ L(
|
|
586
|
+
Co,
|
|
587
587
|
{
|
|
588
588
|
cx: "75",
|
|
589
589
|
cy: "75",
|
|
@@ -594,7 +594,7 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
594
594
|
)
|
|
595
595
|
}
|
|
596
596
|
)
|
|
597
|
-
),
|
|
597
|
+
), To = W("button", {
|
|
598
598
|
appearance: "none",
|
|
599
599
|
margin: 0,
|
|
600
600
|
padding: 0,
|
|
@@ -752,9 +752,9 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
752
752
|
color: "secondary",
|
|
753
753
|
size: "md"
|
|
754
754
|
}
|
|
755
|
-
}),
|
|
755
|
+
}), an = $e(
|
|
756
756
|
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */ ee(
|
|
757
|
-
|
|
757
|
+
To,
|
|
758
758
|
{
|
|
759
759
|
ref: s,
|
|
760
760
|
type: "button",
|
|
@@ -765,11 +765,11 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
765
765
|
...i,
|
|
766
766
|
children: [
|
|
767
767
|
e,
|
|
768
|
-
n && /* @__PURE__ */
|
|
768
|
+
n && /* @__PURE__ */ L(ko, { color: "inherit" })
|
|
769
769
|
]
|
|
770
770
|
}
|
|
771
771
|
))
|
|
772
|
-
),
|
|
772
|
+
), Io = W("div", {
|
|
773
773
|
padding: "$3",
|
|
774
774
|
borderRadius: "$md",
|
|
775
775
|
variants: {
|
|
@@ -808,9 +808,9 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
808
808
|
color: "info",
|
|
809
809
|
size: "md"
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
812
|
-
({ children: e, ...t }, n) => /* @__PURE__ */
|
|
813
|
-
|
|
811
|
+
}), Yi = $e(
|
|
812
|
+
({ children: e, ...t }, n) => /* @__PURE__ */ L(
|
|
813
|
+
Io,
|
|
814
814
|
{
|
|
815
815
|
ref: n,
|
|
816
816
|
role: "alert",
|
|
@@ -818,19 +818,19 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
818
818
|
children: e
|
|
819
819
|
}
|
|
820
820
|
)
|
|
821
|
-
),
|
|
821
|
+
), Bo = Me({
|
|
822
822
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
823
823
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
824
|
-
}),
|
|
824
|
+
}), Po = Me({
|
|
825
825
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
826
826
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
827
|
-
}),
|
|
827
|
+
}), Ao = Me({
|
|
828
828
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
829
829
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
830
|
-
}),
|
|
830
|
+
}), Oo = Me({
|
|
831
831
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
832
832
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
833
|
-
}),
|
|
833
|
+
}), Do = Ve({
|
|
834
834
|
backgroundColor: "white",
|
|
835
835
|
boxShadow: "$overlayCard",
|
|
836
836
|
borderRadius: "$sm",
|
|
@@ -840,23 +840,23 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni,
|
|
|
840
840
|
// so for other popups that uses `OverlayCard` to work
|
|
841
841
|
// we need to explicitly set this.
|
|
842
842
|
pointerEvents: "auto"
|
|
843
|
-
}),
|
|
843
|
+
}), Mo = Ve({
|
|
844
844
|
animationDuration: "400ms",
|
|
845
845
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
846
846
|
willChange: "transform, opacity",
|
|
847
847
|
'&[data-state="open"]': {
|
|
848
|
-
'&[data-side="top"]': { animationName:
|
|
849
|
-
'&[data-side="right"]': { animationName:
|
|
850
|
-
'&[data-side="bottom"]': { animationName:
|
|
851
|
-
'&[data-side="left"]': { animationName:
|
|
848
|
+
'&[data-side="top"]': { animationName: Ao },
|
|
849
|
+
'&[data-side="right"]': { animationName: Oo },
|
|
850
|
+
'&[data-side="bottom"]': { animationName: Bo },
|
|
851
|
+
'&[data-side="left"]': { animationName: Po }
|
|
852
852
|
}
|
|
853
|
-
}),
|
|
853
|
+
}), cn = W(
|
|
854
854
|
"div",
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
Do,
|
|
856
|
+
Mo
|
|
857
857
|
);
|
|
858
858
|
function le(e) {
|
|
859
|
-
return
|
|
859
|
+
return un(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
860
860
|
}
|
|
861
861
|
function q(e) {
|
|
862
862
|
var t;
|
|
@@ -864,9 +864,9 @@ function q(e) {
|
|
|
864
864
|
}
|
|
865
865
|
function ie(e) {
|
|
866
866
|
var t;
|
|
867
|
-
return (t = (
|
|
867
|
+
return (t = (un(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function un(e) {
|
|
870
870
|
return e instanceof Node || e instanceof q(e).Node;
|
|
871
871
|
}
|
|
872
872
|
function j(e) {
|
|
@@ -887,14 +887,14 @@ function _e(e) {
|
|
|
887
887
|
} = J(e);
|
|
888
888
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Lo(e) {
|
|
891
891
|
return ["table", "td", "th"].includes(le(e));
|
|
892
892
|
}
|
|
893
893
|
function bt(e) {
|
|
894
894
|
const t = yt(), n = J(e);
|
|
895
895
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Fo(e) {
|
|
898
898
|
let t = ve(e);
|
|
899
899
|
for (; Z(t) && !Ae(t); ) {
|
|
900
900
|
if (bt(t))
|
|
@@ -912,7 +912,7 @@ function Ae(e) {
|
|
|
912
912
|
function J(e) {
|
|
913
913
|
return q(e).getComputedStyle(e);
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function nt(e) {
|
|
916
916
|
return j(e) ? {
|
|
917
917
|
scrollLeft: e.scrollLeft,
|
|
918
918
|
scrollTop: e.scrollTop
|
|
@@ -933,17 +933,17 @@ function ve(e) {
|
|
|
933
933
|
);
|
|
934
934
|
return dt(t) ? t.host : t;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function dn(e) {
|
|
937
937
|
const t = ve(e);
|
|
938
|
-
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t :
|
|
938
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : dn(t);
|
|
939
939
|
}
|
|
940
940
|
function se(e, t, n) {
|
|
941
941
|
var o;
|
|
942
942
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
943
|
-
const r =
|
|
943
|
+
const r = dn(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = q(r);
|
|
944
944
|
return i ? t.concat(s, s.visualViewport || [], _e(r) ? r : [], s.frameElement && n ? se(s.frameElement) : []) : t.concat(r, se(r, [], n));
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function zo(e) {
|
|
947
947
|
let t = e.activeElement;
|
|
948
948
|
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
949
949
|
var n;
|
|
@@ -967,23 +967,23 @@ function ye(e, t) {
|
|
|
967
967
|
}
|
|
968
968
|
return !1;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Wo() {
|
|
971
971
|
return /apple/i.test(navigator.vendor);
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function qe(e, t) {
|
|
974
974
|
const n = ["mouse", "pen"];
|
|
975
975
|
return t || n.push("", void 0), n.includes(e);
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function No(e) {
|
|
978
978
|
return "nativeEvent" in e;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function jo(e) {
|
|
981
981
|
return e.matches("html,body");
|
|
982
982
|
}
|
|
983
983
|
function pe(e) {
|
|
984
984
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function it(e, t) {
|
|
987
987
|
if (t == null)
|
|
988
988
|
return !1;
|
|
989
989
|
if ("composedPath" in e)
|
|
@@ -994,19 +994,19 @@ function rt(e, t) {
|
|
|
994
994
|
function ke(e) {
|
|
995
995
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
996
996
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
return Z(e) && e.matches(
|
|
997
|
+
const Ho = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
998
|
+
function Vo(e) {
|
|
999
|
+
return Z(e) && e.matches(Ho);
|
|
1000
1000
|
}
|
|
1001
|
-
const re = Math.min, Y = Math.max,
|
|
1001
|
+
const re = Math.min, Y = Math.max, Ze = Math.round, Xe = Math.floor, ae = (e) => ({
|
|
1002
1002
|
x: e,
|
|
1003
1003
|
y: e
|
|
1004
|
-
}),
|
|
1004
|
+
}), _o = {
|
|
1005
1005
|
left: "right",
|
|
1006
1006
|
right: "left",
|
|
1007
1007
|
bottom: "top",
|
|
1008
1008
|
top: "bottom"
|
|
1009
|
-
},
|
|
1009
|
+
}, Yo = {
|
|
1010
1010
|
start: "end",
|
|
1011
1011
|
end: "start"
|
|
1012
1012
|
};
|
|
@@ -1022,32 +1022,32 @@ function te(e) {
|
|
|
1022
1022
|
function Ye(e) {
|
|
1023
1023
|
return e.split("-")[1];
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function fn(e) {
|
|
1026
1026
|
return e === "x" ? "y" : "x";
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function mn(e) {
|
|
1029
1029
|
return e === "y" ? "height" : "width";
|
|
1030
1030
|
}
|
|
1031
1031
|
function Fe(e) {
|
|
1032
1032
|
return ["top", "bottom"].includes(te(e)) ? "y" : "x";
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
return
|
|
1034
|
+
function gn(e) {
|
|
1035
|
+
return fn(Fe(e));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function Xo(e, t, n) {
|
|
1038
1038
|
n === void 0 && (n = !1);
|
|
1039
|
-
const o = Ye(e), r =
|
|
1039
|
+
const o = Ye(e), r = gn(e), i = mn(r);
|
|
1040
1040
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1041
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1041
|
+
return t.reference[i] > t.floating[i] && (s = Je(s)), [s, Je(s)];
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const t =
|
|
1043
|
+
function Ko(e) {
|
|
1044
|
+
const t = Je(e);
|
|
1045
1045
|
return [ft(e), t, ft(t)];
|
|
1046
1046
|
}
|
|
1047
1047
|
function ft(e) {
|
|
1048
|
-
return e.replace(/start|end/g, (t) =>
|
|
1048
|
+
return e.replace(/start|end/g, (t) => Yo[t]);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Go(e, t, n) {
|
|
1051
1051
|
const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1052
1052
|
switch (e) {
|
|
1053
1053
|
case "top":
|
|
@@ -1060,15 +1060,15 @@ function Ko(e, t, n) {
|
|
|
1060
1060
|
return [];
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Uo(e, t, n, o) {
|
|
1064
1064
|
const r = Ye(e);
|
|
1065
|
-
let i =
|
|
1065
|
+
let i = Go(te(e), n === "start", o);
|
|
1066
1066
|
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(ft)))), i;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1068
|
+
function Je(e) {
|
|
1069
|
+
return e.replace(/left|right|bottom|top/g, (t) => _o[t]);
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function qo(e) {
|
|
1072
1072
|
return {
|
|
1073
1073
|
top: 0,
|
|
1074
1074
|
right: 0,
|
|
@@ -1077,8 +1077,8 @@ function Uo(e) {
|
|
|
1077
1077
|
...e
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return typeof e != "number" ?
|
|
1080
|
+
function pn(e) {
|
|
1081
|
+
return typeof e != "number" ? qo(e) : {
|
|
1082
1082
|
top: e,
|
|
1083
1083
|
right: e,
|
|
1084
1084
|
bottom: e,
|
|
@@ -1099,7 +1099,7 @@ function Mt(e, t, n) {
|
|
|
1099
1099
|
reference: o,
|
|
1100
1100
|
floating: r
|
|
1101
1101
|
} = e;
|
|
1102
|
-
const i = Fe(t), s =
|
|
1102
|
+
const i = Fe(t), s = gn(t), l = mn(s), a = te(t), c = i === "y", m = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, f = o[l] / 2 - r[l] / 2;
|
|
1103
1103
|
let d;
|
|
1104
1104
|
switch (a) {
|
|
1105
1105
|
case "top":
|
|
@@ -1142,7 +1142,7 @@ function Mt(e, t, n) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
return d;
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const Zo = async (e, t, n) => {
|
|
1146
1146
|
const {
|
|
1147
1147
|
placement: o = "bottom",
|
|
1148
1148
|
strategy: r = "absolute",
|
|
@@ -1219,7 +1219,7 @@ async function vt(e, t) {
|
|
|
1219
1219
|
elementContext: u = "floating",
|
|
1220
1220
|
altBoundary: f = !1,
|
|
1221
1221
|
padding: d = 0
|
|
1222
|
-
} = Le(t, e), g =
|
|
1222
|
+
} = Le(t, e), g = pn(d), $ = l[f ? u === "floating" ? "reference" : "floating" : u], h = Oe(await i.getClippingRect({
|
|
1223
1223
|
element: (n = await (i.isElement == null ? void 0 : i.isElement($))) == null || n ? $ : $.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
1224
1224
|
boundary: c,
|
|
1225
1225
|
rootBoundary: m,
|
|
@@ -1247,7 +1247,7 @@ async function vt(e, t) {
|
|
|
1247
1247
|
right: (k.right - h.right + g.right) / S.x
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
const
|
|
1250
|
+
const Jo = function(e) {
|
|
1251
1251
|
return e === void 0 && (e = {}), {
|
|
1252
1252
|
name: "flip",
|
|
1253
1253
|
options: e,
|
|
@@ -1271,13 +1271,13 @@ const Zo = function(e) {
|
|
|
1271
1271
|
} = Le(e, t);
|
|
1272
1272
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1273
1273
|
return {};
|
|
1274
|
-
const h = te(r), x = te(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [
|
|
1275
|
-
!f && g !== "none" && S.push(...
|
|
1276
|
-
const k = [l, ...S],
|
|
1274
|
+
const h = te(r), x = te(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Je(l)] : Ko(l));
|
|
1275
|
+
!f && g !== "none" && S.push(...Uo(l, p, g, B));
|
|
1276
|
+
const k = [l, ...S], E = await vt(t, $), P = [];
|
|
1277
1277
|
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1278
|
-
if (m && P.push(
|
|
1279
|
-
const M =
|
|
1280
|
-
P.push(
|
|
1278
|
+
if (m && P.push(E[h]), u) {
|
|
1279
|
+
const M = Xo(r, s, B);
|
|
1280
|
+
P.push(E[M[0]], E[M[1]]);
|
|
1281
1281
|
}
|
|
1282
1282
|
if (T = [...T, {
|
|
1283
1283
|
placement: r,
|
|
@@ -1299,8 +1299,8 @@ const Zo = function(e) {
|
|
|
1299
1299
|
if (!b)
|
|
1300
1300
|
switch (d) {
|
|
1301
1301
|
case "bestFit": {
|
|
1302
|
-
var
|
|
1303
|
-
const v = (
|
|
1302
|
+
var F;
|
|
1303
|
+
const v = (F = T.map((I) => [I.placement, I.overflows.filter((R) => R > 0).reduce((R, w) => R + w, 0)]).sort((I, R) => I[1] - R[1])[0]) == null ? void 0 : F[0];
|
|
1304
1304
|
v && (b = v);
|
|
1305
1305
|
break;
|
|
1306
1306
|
}
|
|
@@ -1319,7 +1319,7 @@ const Zo = function(e) {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
};
|
|
1321
1321
|
};
|
|
1322
|
-
function
|
|
1322
|
+
function hn(e) {
|
|
1323
1323
|
const t = re(...e.map((i) => i.left)), n = re(...e.map((i) => i.top)), o = Y(...e.map((i) => i.right)), r = Y(...e.map((i) => i.bottom));
|
|
1324
1324
|
return {
|
|
1325
1325
|
x: t,
|
|
@@ -1328,16 +1328,16 @@ function pn(e) {
|
|
|
1328
1328
|
height: r - n
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function Qo(e) {
|
|
1332
1332
|
const t = e.slice().sort((r, i) => r.y - i.y), n = [];
|
|
1333
1333
|
let o = null;
|
|
1334
1334
|
for (let r = 0; r < t.length; r++) {
|
|
1335
1335
|
const i = t[r];
|
|
1336
1336
|
!o || i.y - o.y > o.height / 2 ? n.push([i]) : n[n.length - 1].push(i), o = i;
|
|
1337
1337
|
}
|
|
1338
|
-
return n.map((r) => Oe(
|
|
1338
|
+
return n.map((r) => Oe(hn(r)));
|
|
1339
1339
|
}
|
|
1340
|
-
const
|
|
1340
|
+
const er = function(e) {
|
|
1341
1341
|
return e === void 0 && (e = {}), {
|
|
1342
1342
|
name: "inline",
|
|
1343
1343
|
options: e,
|
|
@@ -1352,13 +1352,13 @@ const Qo = function(e) {
|
|
|
1352
1352
|
padding: l = 2,
|
|
1353
1353
|
x: a,
|
|
1354
1354
|
y: c
|
|
1355
|
-
} = Le(e, t), m = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(o.reference)) || []), u =
|
|
1355
|
+
} = Le(e, t), m = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(o.reference)) || []), u = Qo(m), f = Oe(hn(m)), d = pn(l);
|
|
1356
1356
|
function g() {
|
|
1357
1357
|
if (u.length === 2 && u[0].left > u[1].right && a != null && c != null)
|
|
1358
1358
|
return u.find(($) => a > $.left - d.left && a < $.right + d.right && c > $.top - d.top && c < $.bottom + d.bottom) || f;
|
|
1359
1359
|
if (u.length >= 2) {
|
|
1360
1360
|
if (Fe(n) === "y") {
|
|
1361
|
-
const A = u[0],
|
|
1361
|
+
const A = u[0], F = u[u.length - 1], M = te(n) === "top", O = A.top, b = F.bottom, v = M ? A.left : F.left, I = M ? A.right : F.right, R = I - v, w = b - O;
|
|
1362
1362
|
return {
|
|
1363
1363
|
top: O,
|
|
1364
1364
|
bottom: b,
|
|
@@ -1370,15 +1370,15 @@ const Qo = function(e) {
|
|
|
1370
1370
|
y: O
|
|
1371
1371
|
};
|
|
1372
1372
|
}
|
|
1373
|
-
const $ = te(n) === "left", h = Y(...u.map((A) => A.right)), x = re(...u.map((A) => A.left)), B = u.filter((A) => $ ? A.left === x : A.right === h), S = B[0].top, k = B[B.length - 1].bottom,
|
|
1373
|
+
const $ = te(n) === "left", h = Y(...u.map((A) => A.right)), x = re(...u.map((A) => A.left)), B = u.filter((A) => $ ? A.left === x : A.right === h), S = B[0].top, k = B[B.length - 1].bottom, E = x, P = h, T = P - E, D = k - S;
|
|
1374
1374
|
return {
|
|
1375
1375
|
top: S,
|
|
1376
1376
|
bottom: k,
|
|
1377
|
-
left:
|
|
1377
|
+
left: E,
|
|
1378
1378
|
right: P,
|
|
1379
1379
|
width: T,
|
|
1380
1380
|
height: D,
|
|
1381
|
-
x:
|
|
1381
|
+
x: E,
|
|
1382
1382
|
y: S
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
@@ -1399,7 +1399,7 @@ const Qo = function(e) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
1401
|
};
|
|
1402
|
-
async function
|
|
1402
|
+
async function tr(e, t) {
|
|
1403
1403
|
const {
|
|
1404
1404
|
placement: n,
|
|
1405
1405
|
platform: o,
|
|
@@ -1427,7 +1427,7 @@ async function er(e, t) {
|
|
|
1427
1427
|
y: d * m
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
const
|
|
1430
|
+
const nr = function(e) {
|
|
1431
1431
|
return e === void 0 && (e = 0), {
|
|
1432
1432
|
name: "offset",
|
|
1433
1433
|
options: e,
|
|
@@ -1438,7 +1438,7 @@ const tr = function(e) {
|
|
|
1438
1438
|
y: i,
|
|
1439
1439
|
placement: s,
|
|
1440
1440
|
middlewareData: l
|
|
1441
|
-
} = t, a = await
|
|
1441
|
+
} = t, a = await tr(t, e);
|
|
1442
1442
|
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
1443
1443
|
x: r + a.x,
|
|
1444
1444
|
y: i + a.y,
|
|
@@ -1449,7 +1449,7 @@ const tr = function(e) {
|
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
|
-
},
|
|
1452
|
+
}, or = function(e) {
|
|
1453
1453
|
return e === void 0 && (e = {}), {
|
|
1454
1454
|
name: "shift",
|
|
1455
1455
|
options: e,
|
|
@@ -1477,7 +1477,7 @@ const tr = function(e) {
|
|
|
1477
1477
|
} = Le(e, t), c = {
|
|
1478
1478
|
x: n,
|
|
1479
1479
|
y: o
|
|
1480
|
-
}, m = await vt(t, a), u = Fe(te(r)), f =
|
|
1480
|
+
}, m = await vt(t, a), u = Fe(te(r)), f = fn(u);
|
|
1481
1481
|
let d = c[f], g = c[u];
|
|
1482
1482
|
if (i) {
|
|
1483
1483
|
const $ = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = d + m[$], B = d - m[h];
|
|
@@ -1501,7 +1501,7 @@ const tr = function(e) {
|
|
|
1501
1501
|
};
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
|
-
},
|
|
1504
|
+
}, rr = function(e) {
|
|
1505
1505
|
return e === void 0 && (e = {}), {
|
|
1506
1506
|
name: "size",
|
|
1507
1507
|
options: e,
|
|
@@ -1524,15 +1524,15 @@ const tr = function(e) {
|
|
|
1524
1524
|
const $ = d - a[g], h = f - a[p], x = !t.middlewareData.shift;
|
|
1525
1525
|
let B = $, S = h;
|
|
1526
1526
|
if (u) {
|
|
1527
|
-
const
|
|
1528
|
-
S = m || x ? re(h,
|
|
1527
|
+
const E = f - a.left - a.right;
|
|
1528
|
+
S = m || x ? re(h, E) : E;
|
|
1529
1529
|
} else {
|
|
1530
|
-
const
|
|
1531
|
-
B = m || x ? re($,
|
|
1530
|
+
const E = d - a.top - a.bottom;
|
|
1531
|
+
B = m || x ? re($, E) : E;
|
|
1532
1532
|
}
|
|
1533
1533
|
if (x && !m) {
|
|
1534
|
-
const
|
|
1535
|
-
u ? S = f - 2 * (
|
|
1534
|
+
const E = Y(a.left, 0), P = Y(a.right, 0), T = Y(a.top, 0), D = Y(a.bottom, 0);
|
|
1535
|
+
u ? S = f - 2 * (E !== 0 || P !== 0 ? E + P : Y(a.left, a.right)) : B = d - 2 * (T !== 0 || D !== 0 ? T + D : Y(a.top, a.bottom));
|
|
1536
1536
|
}
|
|
1537
1537
|
await s({
|
|
1538
1538
|
...t,
|
|
@@ -1548,10 +1548,10 @@ const tr = function(e) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
1550
|
};
|
|
1551
|
-
function
|
|
1551
|
+
function bn(e) {
|
|
1552
1552
|
const t = J(e);
|
|
1553
1553
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1554
|
-
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l =
|
|
1554
|
+
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = Ze(n) !== i || Ze(o) !== s;
|
|
1555
1555
|
return l && (n = i, o = s), {
|
|
1556
1556
|
width: n,
|
|
1557
1557
|
height: o,
|
|
@@ -1569,22 +1569,22 @@ function Pe(e) {
|
|
|
1569
1569
|
width: o,
|
|
1570
1570
|
height: r,
|
|
1571
1571
|
$: i
|
|
1572
|
-
} =
|
|
1573
|
-
let s = (i ?
|
|
1572
|
+
} = bn(t);
|
|
1573
|
+
let s = (i ? Ze(n.width) : n.width) / o, l = (i ? Ze(n.height) : n.height) / r;
|
|
1574
1574
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1575
1575
|
x: s,
|
|
1576
1576
|
y: l
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
|
-
const
|
|
1580
|
-
function
|
|
1579
|
+
const ir = /* @__PURE__ */ ae(0);
|
|
1580
|
+
function yn(e) {
|
|
1581
1581
|
const t = q(e);
|
|
1582
|
-
return !yt() || !t.visualViewport ?
|
|
1582
|
+
return !yt() || !t.visualViewport ? ir : {
|
|
1583
1583
|
x: t.visualViewport.offsetLeft,
|
|
1584
1584
|
y: t.visualViewport.offsetTop
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function sr(e, t, n) {
|
|
1588
1588
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1589
1589
|
}
|
|
1590
1590
|
function xe(e, t, n, o) {
|
|
@@ -1592,7 +1592,7 @@ function xe(e, t, n, o) {
|
|
|
1592
1592
|
const r = e.getBoundingClientRect(), i = xt(e);
|
|
1593
1593
|
let s = ae(1);
|
|
1594
1594
|
t && (o ? j(o) && (s = Pe(o)) : s = Pe(e));
|
|
1595
|
-
const l =
|
|
1595
|
+
const l = sr(i, n, o) ? yn(i) : ae(0);
|
|
1596
1596
|
let a = (r.left + l.x) / s.x, c = (r.top + l.y) / s.y, m = r.width / s.x, u = r.height / s.y;
|
|
1597
1597
|
if (i) {
|
|
1598
1598
|
const f = q(i), d = o && j(o) ? q(o) : o;
|
|
@@ -1609,9 +1609,9 @@ function xe(e, t, n, o) {
|
|
|
1609
1609
|
y: c
|
|
1610
1610
|
});
|
|
1611
1611
|
}
|
|
1612
|
-
const
|
|
1613
|
-
function
|
|
1614
|
-
return
|
|
1612
|
+
const lr = [":popover-open", ":modal"];
|
|
1613
|
+
function vn(e) {
|
|
1614
|
+
return lr.some((t) => {
|
|
1615
1615
|
try {
|
|
1616
1616
|
return e.matches(t);
|
|
1617
1617
|
} catch {
|
|
@@ -1619,14 +1619,14 @@ function yn(e) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function ar(e) {
|
|
1623
1623
|
let {
|
|
1624
1624
|
elements: t,
|
|
1625
1625
|
rect: n,
|
|
1626
1626
|
offsetParent: o,
|
|
1627
1627
|
strategy: r
|
|
1628
1628
|
} = e;
|
|
1629
|
-
const i = r === "fixed", s = ie(o), l = t ?
|
|
1629
|
+
const i = r === "fixed", s = ie(o), l = t ? vn(t.floating) : !1;
|
|
1630
1630
|
if (o === s || l && i)
|
|
1631
1631
|
return n;
|
|
1632
1632
|
let a = {
|
|
@@ -1634,7 +1634,7 @@ function lr(e) {
|
|
|
1634
1634
|
scrollTop: 0
|
|
1635
1635
|
}, c = ae(1);
|
|
1636
1636
|
const m = ae(0), u = Z(o);
|
|
1637
|
-
if ((u || !u && !i) && ((le(o) !== "body" || _e(s)) && (a =
|
|
1637
|
+
if ((u || !u && !i) && ((le(o) !== "body" || _e(s)) && (a = nt(o)), Z(o))) {
|
|
1638
1638
|
const f = xe(o);
|
|
1639
1639
|
c = Pe(o), m.x = f.x + o.clientLeft, m.y = f.y + o.clientTop;
|
|
1640
1640
|
}
|
|
@@ -1645,15 +1645,15 @@ function lr(e) {
|
|
|
1645
1645
|
y: n.y * c.y - a.scrollTop * c.y + m.y
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function cr(e) {
|
|
1649
1649
|
return Array.from(e.getClientRects());
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return xe(ie(e)).left +
|
|
1651
|
+
function xn(e) {
|
|
1652
|
+
return xe(ie(e)).left + nt(e).scrollLeft;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const t = ie(e), n =
|
|
1656
|
-
let s = -n.scrollLeft +
|
|
1654
|
+
function ur(e) {
|
|
1655
|
+
const t = ie(e), n = nt(e), o = e.ownerDocument.body, r = Y(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = Y(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1656
|
+
let s = -n.scrollLeft + xn(e);
|
|
1657
1657
|
const l = -n.scrollTop;
|
|
1658
1658
|
return J(o).direction === "rtl" && (s += Y(t.clientWidth, o.clientWidth) - r), {
|
|
1659
1659
|
width: r,
|
|
@@ -1662,7 +1662,7 @@ function cr(e) {
|
|
|
1662
1662
|
y: l
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function dr(e, t) {
|
|
1666
1666
|
const n = q(e), o = ie(e), r = n.visualViewport;
|
|
1667
1667
|
let i = o.clientWidth, s = o.clientHeight, l = 0, a = 0;
|
|
1668
1668
|
if (r) {
|
|
@@ -1677,7 +1677,7 @@ function ur(e, t) {
|
|
|
1677
1677
|
y: a
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function fr(e, t) {
|
|
1681
1681
|
const n = xe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Z(e) ? Pe(e) : ae(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = r * i.x, c = o * i.y;
|
|
1682
1682
|
return {
|
|
1683
1683
|
width: s,
|
|
@@ -1689,13 +1689,13 @@ function dr(e, t) {
|
|
|
1689
1689
|
function Lt(e, t, n) {
|
|
1690
1690
|
let o;
|
|
1691
1691
|
if (t === "viewport")
|
|
1692
|
-
o =
|
|
1692
|
+
o = dr(e, n);
|
|
1693
1693
|
else if (t === "document")
|
|
1694
|
-
o =
|
|
1694
|
+
o = ur(ie(e));
|
|
1695
1695
|
else if (j(t))
|
|
1696
|
-
o =
|
|
1696
|
+
o = fr(t, n);
|
|
1697
1697
|
else {
|
|
1698
|
-
const r =
|
|
1698
|
+
const r = yn(e);
|
|
1699
1699
|
o = {
|
|
1700
1700
|
...t,
|
|
1701
1701
|
x: t.x - r.x,
|
|
@@ -1704,11 +1704,11 @@ function Lt(e, t, n) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
return Oe(o);
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function $n(e, t) {
|
|
1708
1708
|
const n = ve(e);
|
|
1709
|
-
return n === t || !j(n) || Ae(n) ? !1 : J(n).position === "fixed" ||
|
|
1709
|
+
return n === t || !j(n) || Ae(n) ? !1 : J(n).position === "fixed" || $n(n, t);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function mr(e, t) {
|
|
1712
1712
|
const n = t.get(e);
|
|
1713
1713
|
if (n)
|
|
1714
1714
|
return n;
|
|
@@ -1717,18 +1717,18 @@ function fr(e, t) {
|
|
|
1717
1717
|
let s = i ? ve(e) : e;
|
|
1718
1718
|
for (; j(s) && !Ae(s); ) {
|
|
1719
1719
|
const l = J(s), a = bt(s);
|
|
1720
|
-
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || _e(s) && !a &&
|
|
1720
|
+
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || _e(s) && !a && $n(e, s)) ? o = o.filter((m) => m !== s) : r = l, s = ve(s);
|
|
1721
1721
|
}
|
|
1722
1722
|
return t.set(e, o), o;
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function gr(e) {
|
|
1725
1725
|
let {
|
|
1726
1726
|
element: t,
|
|
1727
1727
|
boundary: n,
|
|
1728
1728
|
rootBoundary: o,
|
|
1729
1729
|
strategy: r
|
|
1730
1730
|
} = e;
|
|
1731
|
-
const s = [...n === "clippingAncestors" ?
|
|
1731
|
+
const s = [...n === "clippingAncestors" ? mr(t, this._c) : [].concat(n), o], l = s[0], a = s.reduce((c, m) => {
|
|
1732
1732
|
const u = Lt(t, m, r);
|
|
1733
1733
|
return c.top = Y(u.top, c.top), c.right = re(u.right, c.right), c.bottom = re(u.bottom, c.bottom), c.left = Y(u.left, c.left), c;
|
|
1734
1734
|
}, Lt(t, l, r));
|
|
@@ -1739,17 +1739,17 @@ function mr(e) {
|
|
|
1739
1739
|
y: a.top
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function pr(e) {
|
|
1743
1743
|
const {
|
|
1744
1744
|
width: t,
|
|
1745
1745
|
height: n
|
|
1746
|
-
} =
|
|
1746
|
+
} = bn(e);
|
|
1747
1747
|
return {
|
|
1748
1748
|
width: t,
|
|
1749
1749
|
height: n
|
|
1750
1750
|
};
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function hr(e, t, n) {
|
|
1753
1753
|
const o = Z(t), r = ie(t), i = n === "fixed", s = xe(e, !0, i, t);
|
|
1754
1754
|
let l = {
|
|
1755
1755
|
scrollLeft: 0,
|
|
@@ -1757,11 +1757,11 @@ function pr(e, t, n) {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
const a = ae(0);
|
|
1759
1759
|
if (o || !o && !i)
|
|
1760
|
-
if ((le(t) !== "body" || _e(r)) && (l =
|
|
1760
|
+
if ((le(t) !== "body" || _e(r)) && (l = nt(t)), o) {
|
|
1761
1761
|
const u = xe(t, !0, i, t);
|
|
1762
1762
|
a.x = u.x + t.clientLeft, a.y = u.y + t.clientTop;
|
|
1763
1763
|
} else
|
|
1764
|
-
r && (a.x =
|
|
1764
|
+
r && (a.x = xn(r));
|
|
1765
1765
|
const c = s.left + l.scrollLeft - a.x, m = s.top + l.scrollTop - a.y;
|
|
1766
1766
|
return {
|
|
1767
1767
|
x: c,
|
|
@@ -1773,19 +1773,19 @@ function pr(e, t, n) {
|
|
|
1773
1773
|
function Ft(e, t) {
|
|
1774
1774
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function wn(e, t) {
|
|
1777
1777
|
const n = q(e);
|
|
1778
|
-
if (!Z(e) ||
|
|
1778
|
+
if (!Z(e) || vn(e))
|
|
1779
1779
|
return n;
|
|
1780
1780
|
let o = Ft(e, t);
|
|
1781
|
-
for (; o &&
|
|
1781
|
+
for (; o && Lo(o) && J(o).position === "static"; )
|
|
1782
1782
|
o = Ft(o, t);
|
|
1783
|
-
return o && (le(o) === "html" || le(o) === "body" && J(o).position === "static" && !bt(o)) ? n : o ||
|
|
1783
|
+
return o && (le(o) === "html" || le(o) === "body" && J(o).position === "static" && !bt(o)) ? n : o || Fo(e) || n;
|
|
1784
1784
|
}
|
|
1785
|
-
const
|
|
1786
|
-
const t = this.getOffsetParent ||
|
|
1785
|
+
const br = async function(e) {
|
|
1786
|
+
const t = this.getOffsetParent || wn, n = this.getDimensions;
|
|
1787
1787
|
return {
|
|
1788
|
-
reference:
|
|
1788
|
+
reference: hr(e.reference, await t(e.floating), e.strategy),
|
|
1789
1789
|
floating: {
|
|
1790
1790
|
x: 0,
|
|
1791
1791
|
y: 0,
|
|
@@ -1793,22 +1793,22 @@ const hr = async function(e) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
};
|
|
1796
|
-
function
|
|
1796
|
+
function yr(e) {
|
|
1797
1797
|
return J(e).direction === "rtl";
|
|
1798
1798
|
}
|
|
1799
|
-
const
|
|
1800
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1799
|
+
const vr = {
|
|
1800
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ar,
|
|
1801
1801
|
getDocumentElement: ie,
|
|
1802
|
-
getClippingRect:
|
|
1803
|
-
getOffsetParent:
|
|
1804
|
-
getElementRects:
|
|
1805
|
-
getClientRects:
|
|
1806
|
-
getDimensions:
|
|
1802
|
+
getClippingRect: gr,
|
|
1803
|
+
getOffsetParent: wn,
|
|
1804
|
+
getElementRects: br,
|
|
1805
|
+
getClientRects: cr,
|
|
1806
|
+
getDimensions: pr,
|
|
1807
1807
|
getScale: Pe,
|
|
1808
1808
|
isElement: j,
|
|
1809
|
-
isRTL:
|
|
1809
|
+
isRTL: yr
|
|
1810
1810
|
};
|
|
1811
|
-
function
|
|
1811
|
+
function xr(e, t) {
|
|
1812
1812
|
let n = null, o;
|
|
1813
1813
|
const r = ie(e);
|
|
1814
1814
|
function i() {
|
|
@@ -1831,11 +1831,11 @@ function vr(e, t) {
|
|
|
1831
1831
|
};
|
|
1832
1832
|
let B = !0;
|
|
1833
1833
|
function S(k) {
|
|
1834
|
-
const
|
|
1835
|
-
if (
|
|
1834
|
+
const E = k[0].intersectionRatio;
|
|
1835
|
+
if (E !== a) {
|
|
1836
1836
|
if (!B)
|
|
1837
1837
|
return s();
|
|
1838
|
-
|
|
1838
|
+
E ? s(!1, E) : o = setTimeout(() => {
|
|
1839
1839
|
s(!1, 1e-7);
|
|
1840
1840
|
}, 100);
|
|
1841
1841
|
}
|
|
@@ -1854,7 +1854,7 @@ function vr(e, t) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
return s(!0), i;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function $r(e, t, n, o) {
|
|
1858
1858
|
o === void 0 && (o = {});
|
|
1859
1859
|
const {
|
|
1860
1860
|
ancestorScroll: r = !0,
|
|
@@ -1868,7 +1868,7 @@ function xr(e, t, n, o) {
|
|
|
1868
1868
|
passive: !0
|
|
1869
1869
|
}), i && h.addEventListener("resize", n);
|
|
1870
1870
|
});
|
|
1871
|
-
const u = c && l ?
|
|
1871
|
+
const u = c && l ? xr(c, n) : null;
|
|
1872
1872
|
let f = -1, d = null;
|
|
1873
1873
|
s && (d = new ResizeObserver((h) => {
|
|
1874
1874
|
let [x] = h;
|
|
@@ -1890,21 +1890,21 @@ function xr(e, t, n, o) {
|
|
|
1890
1890
|
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(g);
|
|
1891
1891
|
};
|
|
1892
1892
|
}
|
|
1893
|
-
const
|
|
1893
|
+
const wr = or, Sr = Jo, Xi = rr, Ki = er, Rr = (e, t, n) => {
|
|
1894
1894
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1895
|
-
platform:
|
|
1895
|
+
platform: vr,
|
|
1896
1896
|
...n
|
|
1897
1897
|
}, i = {
|
|
1898
1898
|
...r.platform,
|
|
1899
1899
|
_c: o
|
|
1900
1900
|
};
|
|
1901
|
-
return
|
|
1901
|
+
return Zo(e, t, {
|
|
1902
1902
|
...r,
|
|
1903
1903
|
platform: i
|
|
1904
1904
|
});
|
|
1905
1905
|
};
|
|
1906
|
-
var Ke = typeof document < "u" ?
|
|
1907
|
-
function
|
|
1906
|
+
var Ke = typeof document < "u" ? tn : nn;
|
|
1907
|
+
function Qe(e, t) {
|
|
1908
1908
|
if (e === t)
|
|
1909
1909
|
return !0;
|
|
1910
1910
|
if (typeof e != typeof t)
|
|
@@ -1917,7 +1917,7 @@ function Je(e, t) {
|
|
|
1917
1917
|
if (n = e.length, n !== t.length)
|
|
1918
1918
|
return !1;
|
|
1919
1919
|
for (o = n; o-- !== 0; )
|
|
1920
|
-
if (!
|
|
1920
|
+
if (!Qe(e[o], t[o]))
|
|
1921
1921
|
return !1;
|
|
1922
1922
|
return !0;
|
|
1923
1923
|
}
|
|
@@ -1928,18 +1928,18 @@ function Je(e, t) {
|
|
|
1928
1928
|
return !1;
|
|
1929
1929
|
for (o = n; o-- !== 0; ) {
|
|
1930
1930
|
const i = r[o];
|
|
1931
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
1931
|
+
if (!(i === "_owner" && e.$$typeof) && !Qe(e[i], t[i]))
|
|
1932
1932
|
return !1;
|
|
1933
1933
|
}
|
|
1934
1934
|
return !0;
|
|
1935
1935
|
}
|
|
1936
1936
|
return e !== e && t !== t;
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function Sn(e) {
|
|
1939
1939
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1940
1940
|
}
|
|
1941
1941
|
function zt(e, t) {
|
|
1942
|
-
const n =
|
|
1942
|
+
const n = Sn(e);
|
|
1943
1943
|
return Math.round(t * n) / n;
|
|
1944
1944
|
}
|
|
1945
1945
|
function Wt(e) {
|
|
@@ -1948,7 +1948,7 @@ function Wt(e) {
|
|
|
1948
1948
|
t.current = e;
|
|
1949
1949
|
}), t;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Cr(e) {
|
|
1952
1952
|
e === void 0 && (e = {});
|
|
1953
1953
|
const {
|
|
1954
1954
|
placement: t = "bottom",
|
|
@@ -1970,29 +1970,29 @@ function Rr(e) {
|
|
|
1970
1970
|
middlewareData: {},
|
|
1971
1971
|
isPositioned: !1
|
|
1972
1972
|
}), [f, d] = y.useState(o);
|
|
1973
|
-
|
|
1973
|
+
Qe(f, o) || d(o);
|
|
1974
1974
|
const [g, p] = y.useState(null), [$, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1975
|
-
R !==
|
|
1975
|
+
R !== E.current && (E.current = R, p(R));
|
|
1976
1976
|
}, []), B = y.useCallback((R) => {
|
|
1977
1977
|
R !== P.current && (P.current = R, h(R));
|
|
1978
|
-
}, []), S = i || g, k = s || $,
|
|
1979
|
-
if (!
|
|
1978
|
+
}, []), S = i || g, k = s || $, E = y.useRef(null), P = y.useRef(null), T = y.useRef(m), D = a != null, A = Wt(a), F = Wt(r), M = y.useCallback(() => {
|
|
1979
|
+
if (!E.current || !P.current)
|
|
1980
1980
|
return;
|
|
1981
1981
|
const R = {
|
|
1982
1982
|
placement: t,
|
|
1983
1983
|
strategy: n,
|
|
1984
1984
|
middleware: f
|
|
1985
1985
|
};
|
|
1986
|
-
|
|
1986
|
+
F.current && (R.platform = F.current), Rr(E.current, P.current, R).then((w) => {
|
|
1987
1987
|
const z = {
|
|
1988
1988
|
...w,
|
|
1989
1989
|
isPositioned: !0
|
|
1990
1990
|
};
|
|
1991
|
-
O.current && !
|
|
1991
|
+
O.current && !Qe(T.current, z) && (T.current = z, Wn.flushSync(() => {
|
|
1992
1992
|
u(z);
|
|
1993
1993
|
}));
|
|
1994
1994
|
});
|
|
1995
|
-
}, [f, t, n,
|
|
1995
|
+
}, [f, t, n, F]);
|
|
1996
1996
|
Ke(() => {
|
|
1997
1997
|
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((R) => ({
|
|
1998
1998
|
...R,
|
|
@@ -2003,14 +2003,14 @@ function Rr(e) {
|
|
|
2003
2003
|
Ke(() => (O.current = !0, () => {
|
|
2004
2004
|
O.current = !1;
|
|
2005
2005
|
}), []), Ke(() => {
|
|
2006
|
-
if (S && (
|
|
2006
|
+
if (S && (E.current = S), k && (P.current = k), S && k) {
|
|
2007
2007
|
if (A.current)
|
|
2008
2008
|
return A.current(S, k, M);
|
|
2009
2009
|
M();
|
|
2010
2010
|
}
|
|
2011
2011
|
}, [S, k, M, A, D]);
|
|
2012
2012
|
const b = y.useMemo(() => ({
|
|
2013
|
-
reference:
|
|
2013
|
+
reference: E,
|
|
2014
2014
|
floating: P,
|
|
2015
2015
|
setReference: x,
|
|
2016
2016
|
setFloating: B
|
|
@@ -2029,7 +2029,7 @@ function Rr(e) {
|
|
|
2029
2029
|
return l ? {
|
|
2030
2030
|
...R,
|
|
2031
2031
|
transform: "translate(" + w + "px, " + z + "px)",
|
|
2032
|
-
...
|
|
2032
|
+
...Sn(v.floating) >= 1.5 && {
|
|
2033
2033
|
willChange: "transform"
|
|
2034
2034
|
}
|
|
2035
2035
|
} : {
|
|
@@ -2050,29 +2050,29 @@ function Rr(e) {
|
|
|
2050
2050
|
* tabbable 6.2.0
|
|
2051
2051
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2052
2052
|
*/
|
|
2053
|
-
var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], mt = /* @__PURE__ */ Er.join(","),
|
|
2054
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
2053
|
+
var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], mt = /* @__PURE__ */ Er.join(","), Rn = typeof Element > "u", je = Rn ? function() {
|
|
2054
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, et = !Rn && Element.prototype.getRootNode ? function(e) {
|
|
2055
2055
|
var t;
|
|
2056
2056
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
2057
2057
|
} : function(e) {
|
|
2058
2058
|
return e == null ? void 0 : e.ownerDocument;
|
|
2059
|
-
},
|
|
2059
|
+
}, tt = function e(t, n) {
|
|
2060
2060
|
var o;
|
|
2061
2061
|
n === void 0 && (n = !0);
|
|
2062
2062
|
var r = t == null || (o = t.getAttribute) === null || o === void 0 ? void 0 : o.call(t, "inert"), i = r === "" || r === "true", s = i || n && t && e(t.parentNode);
|
|
2063
2063
|
return s;
|
|
2064
|
-
},
|
|
2064
|
+
}, kr = function(t) {
|
|
2065
2065
|
var n, o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
2066
2066
|
return o === "" || o === "true";
|
|
2067
|
-
},
|
|
2068
|
-
if (
|
|
2067
|
+
}, Tr = function(t, n, o) {
|
|
2068
|
+
if (tt(t))
|
|
2069
2069
|
return [];
|
|
2070
2070
|
var r = Array.prototype.slice.apply(t.querySelectorAll(mt));
|
|
2071
2071
|
return n && je.call(t, mt) && r.unshift(t), r = r.filter(o), r;
|
|
2072
|
-
},
|
|
2072
|
+
}, Ir = function e(t, n, o) {
|
|
2073
2073
|
for (var r = [], i = Array.from(t); i.length; ) {
|
|
2074
2074
|
var s = i.shift();
|
|
2075
|
-
if (!
|
|
2075
|
+
if (!tt(s, !1))
|
|
2076
2076
|
if (s.tagName === "SLOT") {
|
|
2077
2077
|
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, o);
|
|
2078
2078
|
o.flatten ? r.push.apply(r, c) : r.push({
|
|
@@ -2083,7 +2083,7 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2083
2083
|
var m = je.call(s, mt);
|
|
2084
2084
|
m && o.filter(s) && (n || !t.includes(s)) && r.push(s);
|
|
2085
2085
|
var u = s.shadowRoot || // check for an undisclosed shadow
|
|
2086
|
-
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !
|
|
2086
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !tt(u, !1) && (!o.shadowRootFilter || o.shadowRootFilter(s));
|
|
2087
2087
|
if (u && f) {
|
|
2088
2088
|
var d = e(u === !0 ? s.children : u.children, !0, o);
|
|
2089
2089
|
o.flatten ? r.push.apply(r, d) : r.push({
|
|
@@ -2095,34 +2095,34 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
2097
|
return r;
|
|
2098
|
-
},
|
|
2098
|
+
}, Cn = function(t) {
|
|
2099
2099
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2100
2100
|
}, En = function(t) {
|
|
2101
2101
|
if (!t)
|
|
2102
2102
|
throw new Error("No node provided");
|
|
2103
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
2104
|
-
}, Ir = function(t, n) {
|
|
2105
|
-
var o = En(t);
|
|
2106
|
-
return o < 0 && n && !Rn(t) ? 0 : o;
|
|
2103
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || kr(t)) && !Cn(t) ? 0 : t.tabIndex;
|
|
2107
2104
|
}, Br = function(t, n) {
|
|
2105
|
+
var o = En(t);
|
|
2106
|
+
return o < 0 && n && !Cn(t) ? 0 : o;
|
|
2107
|
+
}, Pr = function(t, n) {
|
|
2108
2108
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2109
|
-
},
|
|
2109
|
+
}, kn = function(t) {
|
|
2110
2110
|
return t.tagName === "INPUT";
|
|
2111
|
-
}, Pr = function(t) {
|
|
2112
|
-
return Cn(t) && t.type === "hidden";
|
|
2113
2111
|
}, Ar = function(t) {
|
|
2112
|
+
return kn(t) && t.type === "hidden";
|
|
2113
|
+
}, Or = function(t) {
|
|
2114
2114
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
2115
2115
|
return o.tagName === "SUMMARY";
|
|
2116
2116
|
});
|
|
2117
2117
|
return n;
|
|
2118
|
-
},
|
|
2118
|
+
}, Dr = function(t, n) {
|
|
2119
2119
|
for (var o = 0; o < t.length; o++)
|
|
2120
2120
|
if (t[o].checked && t[o].form === n)
|
|
2121
2121
|
return t[o];
|
|
2122
|
-
},
|
|
2122
|
+
}, Mr = function(t) {
|
|
2123
2123
|
if (!t.name)
|
|
2124
2124
|
return !0;
|
|
2125
|
-
var n = t.form ||
|
|
2125
|
+
var n = t.form || et(t), o = function(l) {
|
|
2126
2126
|
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
2127
2127
|
}, r;
|
|
2128
2128
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -2133,26 +2133,26 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2133
2133
|
} catch (s) {
|
|
2134
2134
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
2135
2135
|
}
|
|
2136
|
-
var i =
|
|
2136
|
+
var i = Dr(r, t.form);
|
|
2137
2137
|
return !i || i === t;
|
|
2138
|
-
}, Mr = function(t) {
|
|
2139
|
-
return Cn(t) && t.type === "radio";
|
|
2140
2138
|
}, Lr = function(t) {
|
|
2141
|
-
return
|
|
2139
|
+
return kn(t) && t.type === "radio";
|
|
2142
2140
|
}, Fr = function(t) {
|
|
2143
|
-
|
|
2141
|
+
return Lr(t) && !Mr(t);
|
|
2142
|
+
}, zr = function(t) {
|
|
2143
|
+
var n, o = t && et(t), r = (n = o) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
2144
2144
|
if (o && o !== t) {
|
|
2145
2145
|
var s, l, a;
|
|
2146
2146
|
for (i = !!((s = r) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(r) || t != null && (a = t.ownerDocument) !== null && a !== void 0 && a.contains(t)); !i && r; ) {
|
|
2147
2147
|
var c, m, u;
|
|
2148
|
-
o =
|
|
2148
|
+
o = et(r), r = (c = o) === null || c === void 0 ? void 0 : c.host, i = !!((m = r) !== null && m !== void 0 && (u = m.ownerDocument) !== null && u !== void 0 && u.contains(r));
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
return i;
|
|
2152
2152
|
}, Nt = function(t) {
|
|
2153
2153
|
var n = t.getBoundingClientRect(), o = n.width, r = n.height;
|
|
2154
2154
|
return o === 0 && r === 0;
|
|
2155
|
-
},
|
|
2155
|
+
}, Wr = function(t, n) {
|
|
2156
2156
|
var o = n.displayCheck, r = n.getShadowRoot;
|
|
2157
2157
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2158
2158
|
return !0;
|
|
@@ -2162,21 +2162,21 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2162
2162
|
if (!o || o === "full" || o === "legacy-full") {
|
|
2163
2163
|
if (typeof r == "function") {
|
|
2164
2164
|
for (var l = t; t; ) {
|
|
2165
|
-
var a = t.parentElement, c =
|
|
2165
|
+
var a = t.parentElement, c = et(t);
|
|
2166
2166
|
if (a && !a.shadowRoot && r(a) === !0)
|
|
2167
2167
|
return Nt(t);
|
|
2168
2168
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2169
2169
|
}
|
|
2170
2170
|
t = l;
|
|
2171
2171
|
}
|
|
2172
|
-
if (
|
|
2172
|
+
if (zr(t))
|
|
2173
2173
|
return !t.getClientRects().length;
|
|
2174
2174
|
if (o !== "legacy-full")
|
|
2175
2175
|
return !0;
|
|
2176
2176
|
} else if (o === "non-zero-area")
|
|
2177
2177
|
return Nt(t);
|
|
2178
2178
|
return !1;
|
|
2179
|
-
},
|
|
2179
|
+
}, Nr = function(t) {
|
|
2180
2180
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2181
2181
|
for (var n = t.parentElement; n; ) {
|
|
2182
2182
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -2190,21 +2190,21 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2190
2190
|
n = n.parentElement;
|
|
2191
2191
|
}
|
|
2192
2192
|
return !1;
|
|
2193
|
-
},
|
|
2193
|
+
}, jr = function(t, n) {
|
|
2194
2194
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2195
2195
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2196
2196
|
// note related to `candidateSelectors`)
|
|
2197
|
-
|
|
2198
|
-
|
|
2197
|
+
tt(n) || Ar(n) || Wr(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2198
|
+
Or(n) || Nr(n));
|
|
2199
2199
|
}, jt = function(t, n) {
|
|
2200
|
-
return !(
|
|
2201
|
-
},
|
|
2200
|
+
return !(Fr(n) || En(n) < 0 || !jr(t, n));
|
|
2201
|
+
}, Hr = function(t) {
|
|
2202
2202
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2203
2203
|
return !!(isNaN(n) || n >= 0);
|
|
2204
|
-
},
|
|
2204
|
+
}, Vr = function e(t) {
|
|
2205
2205
|
var n = [], o = [];
|
|
2206
2206
|
return t.forEach(function(r, i) {
|
|
2207
|
-
var s = !!r.scopeParent, l = s ? r.scopeParent : r, a =
|
|
2207
|
+
var s = !!r.scopeParent, l = s ? r.scopeParent : r, a = Br(l, s), c = s ? e(r.candidates) : l;
|
|
2208
2208
|
a === 0 ? s ? n.push.apply(n, c) : n.push(l) : o.push({
|
|
2209
2209
|
documentOrder: i,
|
|
2210
2210
|
tabIndex: a,
|
|
@@ -2212,26 +2212,26 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2212
2212
|
isScope: s,
|
|
2213
2213
|
content: c
|
|
2214
2214
|
});
|
|
2215
|
-
}), o.sort(
|
|
2215
|
+
}), o.sort(Pr).reduce(function(r, i) {
|
|
2216
2216
|
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
2217
2217
|
}, []).concat(n);
|
|
2218
|
-
},
|
|
2218
|
+
}, Tn = function(t, n) {
|
|
2219
2219
|
n = n || {};
|
|
2220
2220
|
var o;
|
|
2221
|
-
return n.getShadowRoot ? o =
|
|
2221
|
+
return n.getShadowRoot ? o = Ir([t], n.includeContainer, {
|
|
2222
2222
|
filter: jt.bind(null, n),
|
|
2223
2223
|
flatten: !1,
|
|
2224
2224
|
getShadowRoot: n.getShadowRoot,
|
|
2225
|
-
shadowRootFilter:
|
|
2226
|
-
}) : o =
|
|
2225
|
+
shadowRootFilter: Hr
|
|
2226
|
+
}) : o = Tr(t, n.includeContainer, jt.bind(null, n)), Vr(o);
|
|
2227
2227
|
};
|
|
2228
|
-
const
|
|
2228
|
+
const _r = y[/* @__PURE__ */ "useInsertionEffect".toString()], Yr = _r || ((e) => e());
|
|
2229
2229
|
function Te(e) {
|
|
2230
2230
|
const t = y.useRef(() => {
|
|
2231
2231
|
if (process.env.NODE_ENV !== "production")
|
|
2232
2232
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2233
2233
|
});
|
|
2234
|
-
return
|
|
2234
|
+
return Yr(() => {
|
|
2235
2235
|
t.current = e;
|
|
2236
2236
|
}), y.useCallback(function() {
|
|
2237
2237
|
for (var n = arguments.length, o = new Array(n), r = 0; r < n; r++)
|
|
@@ -2239,7 +2239,7 @@ function Te(e) {
|
|
|
2239
2239
|
return t.current == null ? void 0 : t.current(...o);
|
|
2240
2240
|
}, []);
|
|
2241
2241
|
}
|
|
2242
|
-
var Q = typeof document < "u" ?
|
|
2242
|
+
var Q = typeof document < "u" ? tn : nn;
|
|
2243
2243
|
function gt() {
|
|
2244
2244
|
return gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2245
2245
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -2250,18 +2250,18 @@ function gt() {
|
|
|
2250
2250
|
return e;
|
|
2251
2251
|
}, gt.apply(this, arguments);
|
|
2252
2252
|
}
|
|
2253
|
-
let
|
|
2254
|
-
const Ht = () => "floating-ui-" +
|
|
2255
|
-
function
|
|
2256
|
-
const [e, t] = y.useState(() =>
|
|
2253
|
+
let st = !1, Xr = 0;
|
|
2254
|
+
const Ht = () => "floating-ui-" + Xr++;
|
|
2255
|
+
function Kr() {
|
|
2256
|
+
const [e, t] = y.useState(() => st ? Ht() : void 0);
|
|
2257
2257
|
return Q(() => {
|
|
2258
2258
|
e == null && t(Ht());
|
|
2259
2259
|
}, []), y.useEffect(() => {
|
|
2260
|
-
|
|
2260
|
+
st || (st = !0);
|
|
2261
2261
|
}, []), e;
|
|
2262
2262
|
}
|
|
2263
|
-
const
|
|
2264
|
-
function
|
|
2263
|
+
const Gr = y[/* @__PURE__ */ "useId".toString()], $t = Gr || Kr;
|
|
2264
|
+
function Ur() {
|
|
2265
2265
|
const e = /* @__PURE__ */ new Map();
|
|
2266
2266
|
return {
|
|
2267
2267
|
emit(t, n) {
|
|
@@ -2277,24 +2277,24 @@ function Gr() {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
};
|
|
2279
2279
|
}
|
|
2280
|
-
const
|
|
2280
|
+
const qr = /* @__PURE__ */ y.createContext(null), Zr = /* @__PURE__ */ y.createContext(null), wt = () => {
|
|
2281
2281
|
var e;
|
|
2282
|
-
return ((e = y.useContext(
|
|
2283
|
-
}, St = () => y.useContext(
|
|
2284
|
-
function
|
|
2282
|
+
return ((e = y.useContext(qr)) == null ? void 0 : e.id) || null;
|
|
2283
|
+
}, St = () => y.useContext(Zr);
|
|
2284
|
+
function ot(e) {
|
|
2285
2285
|
return "data-floating-ui-" + e;
|
|
2286
2286
|
}
|
|
2287
2287
|
function Be(e) {
|
|
2288
|
-
const t =
|
|
2288
|
+
const t = Mn(e);
|
|
2289
2289
|
return Q(() => {
|
|
2290
2290
|
t.current = e;
|
|
2291
2291
|
}), t;
|
|
2292
2292
|
}
|
|
2293
|
-
const Vt = /* @__PURE__ */
|
|
2294
|
-
function
|
|
2295
|
-
return n && !
|
|
2293
|
+
const Vt = /* @__PURE__ */ ot("safe-polygon");
|
|
2294
|
+
function lt(e, t, n) {
|
|
2295
|
+
return n && !qe(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function Jr(e, t) {
|
|
2298
2298
|
t === void 0 && (t = {});
|
|
2299
2299
|
const {
|
|
2300
2300
|
open: n,
|
|
@@ -2313,7 +2313,7 @@ function Zr(e, t) {
|
|
|
2313
2313
|
mouseOnly: f = !1,
|
|
2314
2314
|
restMs: d = 0,
|
|
2315
2315
|
move: g = !0
|
|
2316
|
-
} = t, p = St(), $ = wt(), h = Be(u), x = Be(m), B = y.useRef(), S = y.useRef(), k = y.useRef(),
|
|
2316
|
+
} = t, p = St(), $ = wt(), h = Be(u), x = Be(m), B = y.useRef(), S = y.useRef(), k = y.useRef(), E = y.useRef(), P = y.useRef(!0), T = y.useRef(!1), D = y.useRef(() => {
|
|
2317
2317
|
}), A = y.useCallback(() => {
|
|
2318
2318
|
var b;
|
|
2319
2319
|
const v = (b = r.current.openEvent) == null ? void 0 : b.type;
|
|
@@ -2326,7 +2326,7 @@ function Zr(e, t) {
|
|
|
2326
2326
|
let {
|
|
2327
2327
|
open: I
|
|
2328
2328
|
} = v;
|
|
2329
|
-
I || (clearTimeout(S.current), clearTimeout(
|
|
2329
|
+
I || (clearTimeout(S.current), clearTimeout(E.current), P.current = !0);
|
|
2330
2330
|
}
|
|
2331
2331
|
return i.on("openchange", b), () => {
|
|
2332
2332
|
i.off("openchange", b);
|
|
@@ -2342,9 +2342,9 @@ function Zr(e, t) {
|
|
|
2342
2342
|
v.removeEventListener("mouseleave", b);
|
|
2343
2343
|
};
|
|
2344
2344
|
}, [l, n, o, c, h, A]);
|
|
2345
|
-
const
|
|
2345
|
+
const F = y.useCallback(function(b, v, I) {
|
|
2346
2346
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2347
|
-
const R =
|
|
2347
|
+
const R = lt(x.current, "close", B.current);
|
|
2348
2348
|
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => o(!1, b, I), R)) : v && (clearTimeout(S.current), o(!1, b, I));
|
|
2349
2349
|
}, [x, o]), M = y.useCallback(() => {
|
|
2350
2350
|
D.current(), k.current = void 0;
|
|
@@ -2361,9 +2361,9 @@ function Zr(e, t) {
|
|
|
2361
2361
|
return r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1;
|
|
2362
2362
|
}
|
|
2363
2363
|
function v(w) {
|
|
2364
|
-
if (clearTimeout(S.current), P.current = !1, f && !
|
|
2364
|
+
if (clearTimeout(S.current), P.current = !1, f && !qe(B.current) || d > 0 && lt(x.current, "open") === 0)
|
|
2365
2365
|
return;
|
|
2366
|
-
const z =
|
|
2366
|
+
const z = lt(x.current, "open", B.current);
|
|
2367
2367
|
z ? S.current = setTimeout(() => {
|
|
2368
2368
|
o(!0, w, "hover");
|
|
2369
2369
|
}, z) : o(!0, w, "hover");
|
|
@@ -2373,14 +2373,14 @@ function Zr(e, t) {
|
|
|
2373
2373
|
return;
|
|
2374
2374
|
D.current();
|
|
2375
2375
|
const z = pe(l);
|
|
2376
|
-
if (clearTimeout(
|
|
2376
|
+
if (clearTimeout(E.current), h.current) {
|
|
2377
2377
|
n || clearTimeout(S.current), k.current = h.current({
|
|
2378
2378
|
...e,
|
|
2379
2379
|
tree: p,
|
|
2380
2380
|
x: w.clientX,
|
|
2381
2381
|
y: w.clientY,
|
|
2382
2382
|
onClose() {
|
|
2383
|
-
O(), M(),
|
|
2383
|
+
O(), M(), F(w, !0, "safe-polygon");
|
|
2384
2384
|
}
|
|
2385
2385
|
});
|
|
2386
2386
|
const U = k.current;
|
|
@@ -2389,7 +2389,7 @@ function Zr(e, t) {
|
|
|
2389
2389
|
};
|
|
2390
2390
|
return;
|
|
2391
2391
|
}
|
|
2392
|
-
(B.current === "touch" ? !ye(l, w.relatedTarget) : !0) &&
|
|
2392
|
+
(B.current === "touch" ? !ye(l, w.relatedTarget) : !0) && F(w);
|
|
2393
2393
|
}
|
|
2394
2394
|
function R(w) {
|
|
2395
2395
|
b() || h.current == null || h.current({
|
|
@@ -2398,7 +2398,7 @@ function Zr(e, t) {
|
|
|
2398
2398
|
x: w.clientX,
|
|
2399
2399
|
y: w.clientY,
|
|
2400
2400
|
onClose() {
|
|
2401
|
-
O(), M(),
|
|
2401
|
+
O(), M(), F(w);
|
|
2402
2402
|
}
|
|
2403
2403
|
})(w);
|
|
2404
2404
|
}
|
|
@@ -2410,7 +2410,7 @@ function Zr(e, t) {
|
|
|
2410
2410
|
n && w.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && w.removeEventListener("mousemove", v), w.removeEventListener("mouseenter", v), w.removeEventListener("mouseleave", I);
|
|
2411
2411
|
};
|
|
2412
2412
|
}
|
|
2413
|
-
}, [s, l, c, e, f, d, g,
|
|
2413
|
+
}, [s, l, c, e, f, d, g, F, M, O, o, n, p, x, h, r]), Q(() => {
|
|
2414
2414
|
var b;
|
|
2415
2415
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && A()) {
|
|
2416
2416
|
const I = pe(l).body;
|
|
@@ -2425,7 +2425,7 @@ function Zr(e, t) {
|
|
|
2425
2425
|
}, [c, n, $, l, s, p, h, A]), Q(() => {
|
|
2426
2426
|
n || (B.current = void 0, M(), O());
|
|
2427
2427
|
}, [n, M, O]), y.useEffect(() => () => {
|
|
2428
|
-
M(), clearTimeout(S.current), clearTimeout(
|
|
2428
|
+
M(), clearTimeout(S.current), clearTimeout(E.current), O();
|
|
2429
2429
|
}, [c, s, M, O]), y.useMemo(() => {
|
|
2430
2430
|
if (!c)
|
|
2431
2431
|
return {};
|
|
@@ -2437,7 +2437,7 @@ function Zr(e, t) {
|
|
|
2437
2437
|
onPointerDown: b,
|
|
2438
2438
|
onPointerEnter: b,
|
|
2439
2439
|
onMouseMove(v) {
|
|
2440
|
-
n || d === 0 || (clearTimeout(
|
|
2440
|
+
n || d === 0 || (clearTimeout(E.current), E.current = setTimeout(() => {
|
|
2441
2441
|
P.current || o(!0, v.nativeEvent, "hover");
|
|
2442
2442
|
}, d));
|
|
2443
2443
|
}
|
|
@@ -2447,11 +2447,11 @@ function Zr(e, t) {
|
|
|
2447
2447
|
clearTimeout(S.current);
|
|
2448
2448
|
},
|
|
2449
2449
|
onMouseLeave(v) {
|
|
2450
|
-
|
|
2450
|
+
F(v.nativeEvent, !1);
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
};
|
|
2454
|
-
}, [c, d, n, o,
|
|
2454
|
+
}, [c, d, n, o, F]);
|
|
2455
2455
|
}
|
|
2456
2456
|
function Ge(e, t) {
|
|
2457
2457
|
let n = e.filter((r) => {
|
|
@@ -2468,7 +2468,7 @@ function Ge(e, t) {
|
|
|
2468
2468
|
}), n = n.concat(o);
|
|
2469
2469
|
return n;
|
|
2470
2470
|
}
|
|
2471
|
-
const
|
|
2471
|
+
const In = () => ({
|
|
2472
2472
|
getShadowRoot: !0,
|
|
2473
2473
|
displayCheck: (
|
|
2474
2474
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2477,34 +2477,34 @@ const Tn = () => ({
|
|
|
2477
2477
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2478
2478
|
)
|
|
2479
2479
|
});
|
|
2480
|
-
function
|
|
2481
|
-
const n =
|
|
2480
|
+
function Bn(e, t) {
|
|
2481
|
+
const n = Tn(e, In());
|
|
2482
2482
|
t === "prev" && n.reverse();
|
|
2483
|
-
const o = n.indexOf(
|
|
2483
|
+
const o = n.indexOf(zo(pe(e)));
|
|
2484
2484
|
return n.slice(o + 1)[0];
|
|
2485
2485
|
}
|
|
2486
|
-
function Jr() {
|
|
2487
|
-
return In(document.body, "next");
|
|
2488
|
-
}
|
|
2489
2486
|
function Qr() {
|
|
2490
|
-
return
|
|
2487
|
+
return Bn(document.body, "next");
|
|
2488
|
+
}
|
|
2489
|
+
function ei() {
|
|
2490
|
+
return Bn(document.body, "prev");
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function at(e, t) {
|
|
2493
2493
|
const n = t || e.currentTarget, o = e.relatedTarget;
|
|
2494
2494
|
return !o || !ye(n, o);
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2497
|
-
|
|
2496
|
+
function ti(e) {
|
|
2497
|
+
Tn(e, In()).forEach((n) => {
|
|
2498
2498
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2499
2499
|
});
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2501
|
+
function ni(e) {
|
|
2502
2502
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
2503
2503
|
const o = n.dataset.tabindex;
|
|
2504
2504
|
delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
2505
2505
|
});
|
|
2506
2506
|
}
|
|
2507
|
-
const
|
|
2507
|
+
const Pn = {
|
|
2508
2508
|
border: 0,
|
|
2509
2509
|
clip: "rect(0 0 0 0)",
|
|
2510
2510
|
height: "1px",
|
|
@@ -2517,13 +2517,13 @@ const Bn = {
|
|
|
2517
2517
|
top: 0,
|
|
2518
2518
|
left: 0
|
|
2519
2519
|
};
|
|
2520
|
-
let
|
|
2520
|
+
let oi;
|
|
2521
2521
|
function _t(e) {
|
|
2522
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2522
|
+
e.key === "Tab" && (e.target, clearTimeout(oi));
|
|
2523
2523
|
}
|
|
2524
2524
|
const Yt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2525
2525
|
const [o, r] = y.useState();
|
|
2526
|
-
Q(() => (
|
|
2526
|
+
Q(() => (Wo() && r("button"), document.addEventListener("keydown", _t), () => {
|
|
2527
2527
|
document.removeEventListener("keydown", _t);
|
|
2528
2528
|
}), []);
|
|
2529
2529
|
const i = {
|
|
@@ -2532,17 +2532,17 @@ const Yt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2532
2532
|
// Role is only for VoiceOver
|
|
2533
2533
|
role: o,
|
|
2534
2534
|
"aria-hidden": o ? void 0 : !0,
|
|
2535
|
-
[
|
|
2536
|
-
style:
|
|
2535
|
+
[ot("focus-guard")]: "",
|
|
2536
|
+
style: Pn
|
|
2537
2537
|
};
|
|
2538
2538
|
return /* @__PURE__ */ y.createElement("span", gt({}, t, i));
|
|
2539
|
-
}),
|
|
2540
|
-
function
|
|
2539
|
+
}), An = /* @__PURE__ */ y.createContext(null), Xt = /* @__PURE__ */ ot("portal");
|
|
2540
|
+
function ri(e) {
|
|
2541
2541
|
let {
|
|
2542
2542
|
id: t,
|
|
2543
2543
|
root: n
|
|
2544
2544
|
} = e === void 0 ? {} : e;
|
|
2545
|
-
const [o, r] = y.useState(null), i = $t(), s =
|
|
2545
|
+
const [o, r] = y.useState(null), i = $t(), s = si(), l = y.useRef(null);
|
|
2546
2546
|
return Q(() => () => {
|
|
2547
2547
|
o == null || o.remove(), queueMicrotask(() => {
|
|
2548
2548
|
l.current = null;
|
|
@@ -2566,14 +2566,14 @@ function oi(e) {
|
|
|
2566
2566
|
m.id = i, m.setAttribute(Xt, ""), a = c || a, a.appendChild(m), l.current = m, r(m);
|
|
2567
2567
|
}, [t, n, i, s]), o;
|
|
2568
2568
|
}
|
|
2569
|
-
function
|
|
2569
|
+
function ii(e) {
|
|
2570
2570
|
let {
|
|
2571
2571
|
children: t,
|
|
2572
2572
|
id: n,
|
|
2573
2573
|
root: o = null,
|
|
2574
2574
|
preserveTabOrder: r = !0
|
|
2575
2575
|
} = e;
|
|
2576
|
-
const i =
|
|
2576
|
+
const i = ri({
|
|
2577
2577
|
id: n,
|
|
2578
2578
|
root: o
|
|
2579
2579
|
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), m = y.useRef(null), u = y.useRef(null), f = (
|
|
@@ -2587,12 +2587,12 @@ function ri(e) {
|
|
|
2587
2587
|
if (!i || !r || s != null && s.modal)
|
|
2588
2588
|
return;
|
|
2589
2589
|
function d(g) {
|
|
2590
|
-
i &&
|
|
2590
|
+
i && at(g) && (g.type === "focusin" ? ni : ti)(i);
|
|
2591
2591
|
}
|
|
2592
2592
|
return i.addEventListener("focusin", d, !0), i.addEventListener("focusout", d, !0), () => {
|
|
2593
2593
|
i.removeEventListener("focusin", d, !0), i.removeEventListener("focusout", d, !0);
|
|
2594
2594
|
};
|
|
2595
|
-
}, [i, r, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(
|
|
2595
|
+
}, [i, r, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(An.Provider, {
|
|
2596
2596
|
value: y.useMemo(() => ({
|
|
2597
2597
|
preserveTabOrder: r,
|
|
2598
2598
|
beforeOutsideRef: a,
|
|
@@ -2606,39 +2606,39 @@ function ri(e) {
|
|
|
2606
2606
|
"data-type": "outside",
|
|
2607
2607
|
ref: a,
|
|
2608
2608
|
onFocus: (d) => {
|
|
2609
|
-
if (
|
|
2609
|
+
if (at(d, i)) {
|
|
2610
2610
|
var g;
|
|
2611
2611
|
(g = m.current) == null || g.focus();
|
|
2612
2612
|
} else {
|
|
2613
|
-
const p =
|
|
2613
|
+
const p = ei() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2614
2614
|
p == null || p.focus();
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
2617
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2618
2618
|
"aria-owns": i.id,
|
|
2619
|
-
style:
|
|
2620
|
-
}), i && /* @__PURE__ */
|
|
2619
|
+
style: Pn
|
|
2620
|
+
}), i && /* @__PURE__ */ Nn(t, i), f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2621
2621
|
"data-type": "outside",
|
|
2622
2622
|
ref: c,
|
|
2623
2623
|
onFocus: (d) => {
|
|
2624
|
-
if (
|
|
2624
|
+
if (at(d, i)) {
|
|
2625
2625
|
var g;
|
|
2626
2626
|
(g = u.current) == null || g.focus();
|
|
2627
2627
|
} else {
|
|
2628
|
-
const p =
|
|
2628
|
+
const p = Qr() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2629
2629
|
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
|
|
2630
2630
|
}
|
|
2631
2631
|
}
|
|
2632
2632
|
}));
|
|
2633
2633
|
}
|
|
2634
|
-
const
|
|
2634
|
+
const si = () => y.useContext(An);
|
|
2635
2635
|
function Kt(e) {
|
|
2636
2636
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2637
2637
|
}
|
|
2638
2638
|
function Gt(e) {
|
|
2639
|
-
return
|
|
2639
|
+
return Vo(e);
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2641
|
+
function li(e, t) {
|
|
2642
2642
|
t === void 0 && (t = {});
|
|
2643
2643
|
const {
|
|
2644
2644
|
open: n,
|
|
@@ -2660,14 +2660,14 @@ function si(e, t) {
|
|
|
2660
2660
|
u.current = d.pointerType;
|
|
2661
2661
|
},
|
|
2662
2662
|
onMouseDown(d) {
|
|
2663
|
-
d.button === 0 && (
|
|
2663
|
+
d.button === 0 && (qe(u.current, !0) && c || l !== "click" && (n && a && (!r.current.openEvent || r.current.openEvent.type === "mousedown") ? o(!1, d.nativeEvent, "click") : (d.preventDefault(), o(!0, d.nativeEvent, "click"))));
|
|
2664
2664
|
},
|
|
2665
2665
|
onClick(d) {
|
|
2666
2666
|
if (l === "mousedown" && u.current) {
|
|
2667
2667
|
u.current = void 0;
|
|
2668
2668
|
return;
|
|
2669
2669
|
}
|
|
2670
|
-
|
|
2670
|
+
qe(u.current, !0) && c || (n && a && (!r.current.openEvent || r.current.openEvent.type === "click") ? o(!1, d.nativeEvent, "click") : o(!0, d.nativeEvent, "click"));
|
|
2671
2671
|
},
|
|
2672
2672
|
onKeyDown(d) {
|
|
2673
2673
|
u.current = void 0, !(d.defaultPrevented || !m || Kt(d)) && (d.key === " " && !Gt(i) && (d.preventDefault(), f.current = !0), d.key === "Enter" && o(!(n && a), d.nativeEvent, "click"));
|
|
@@ -2678,11 +2678,11 @@ function si(e, t) {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
} : {}, [s, r, l, c, m, i, a, n, o]);
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2681
|
+
const ai = {
|
|
2682
2682
|
pointerdown: "onPointerDown",
|
|
2683
2683
|
mousedown: "onMouseDown",
|
|
2684
2684
|
click: "onClick"
|
|
2685
|
-
},
|
|
2685
|
+
}, ci = {
|
|
2686
2686
|
pointerdown: "onPointerDownCapture",
|
|
2687
2687
|
mousedown: "onMouseDownCapture",
|
|
2688
2688
|
click: "onClickCapture"
|
|
@@ -2693,7 +2693,7 @@ const li = {
|
|
|
2693
2693
|
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2694
2694
|
};
|
|
2695
2695
|
};
|
|
2696
|
-
function
|
|
2696
|
+
function ui(e, t) {
|
|
2697
2697
|
t === void 0 && (t = {});
|
|
2698
2698
|
const {
|
|
2699
2699
|
open: n,
|
|
@@ -2715,13 +2715,13 @@ function ci(e, t) {
|
|
|
2715
2715
|
ancestorScroll: p = !1,
|
|
2716
2716
|
bubbles: $,
|
|
2717
2717
|
capture: h
|
|
2718
|
-
} = t, x = St(), B = Te(typeof u == "function" ? u : () => !1), S = typeof u == "function" ? B : u, k = y.useRef(!1),
|
|
2718
|
+
} = t, x = St(), B = Te(typeof u == "function" ? u : () => !1), S = typeof u == "function" ? B : u, k = y.useRef(!1), E = y.useRef(!1), {
|
|
2719
2719
|
escapeKey: P,
|
|
2720
2720
|
outsidePress: T
|
|
2721
2721
|
} = Ut($), {
|
|
2722
2722
|
escapeKey: D,
|
|
2723
2723
|
outsidePress: A
|
|
2724
|
-
} = Ut(h),
|
|
2724
|
+
} = Ut(h), F = Te((v) => {
|
|
2725
2725
|
if (!n || !c || !m || v.key !== "Escape")
|
|
2726
2726
|
return;
|
|
2727
2727
|
const I = x ? Ge(x.nodesRef.current, r) : [];
|
|
@@ -2736,21 +2736,21 @@ function ci(e, t) {
|
|
|
2736
2736
|
}), !R)
|
|
2737
2737
|
return;
|
|
2738
2738
|
}
|
|
2739
|
-
o(!1,
|
|
2739
|
+
o(!1, No(v) ? v.nativeEvent : v, "escape-key");
|
|
2740
2740
|
}), M = Te((v) => {
|
|
2741
2741
|
var I;
|
|
2742
2742
|
const R = () => {
|
|
2743
2743
|
var w;
|
|
2744
|
-
|
|
2744
|
+
F(v), (w = ke(v)) == null || w.removeEventListener("keydown", R);
|
|
2745
2745
|
};
|
|
2746
2746
|
(I = ke(v)) == null || I.addEventListener("keydown", R);
|
|
2747
2747
|
}), O = Te((v) => {
|
|
2748
2748
|
const I = k.current;
|
|
2749
2749
|
k.current = !1;
|
|
2750
|
-
const R =
|
|
2751
|
-
if (
|
|
2750
|
+
const R = E.current;
|
|
2751
|
+
if (E.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
|
|
2752
2752
|
return;
|
|
2753
|
-
const w = ke(v), z = "[" +
|
|
2753
|
+
const w = ke(v), z = "[" + ot("inert") + "]", K = pe(l).querySelectorAll(z);
|
|
2754
2754
|
let U = j(w) ? w : null;
|
|
2755
2755
|
for (; U && !Ae(U); ) {
|
|
2756
2756
|
const V = ve(U);
|
|
@@ -2758,7 +2758,7 @@ function ci(e, t) {
|
|
|
2758
2758
|
break;
|
|
2759
2759
|
U = V;
|
|
2760
2760
|
}
|
|
2761
|
-
if (K.length && j(w) && !
|
|
2761
|
+
if (K.length && j(w) && !jo(w) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2762
2762
|
!ye(w, l) && // If the target root element contains none of the markers, then the
|
|
2763
2763
|
// element was injected after the floating element rendered.
|
|
2764
2764
|
Array.from(K).every((V) => !ye(U, V)))
|
|
@@ -2771,9 +2771,9 @@ function ci(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
const we = x && Ge(x.nodesRef.current, r).some((V) => {
|
|
2773
2773
|
var G;
|
|
2774
|
-
return
|
|
2774
|
+
return it(v, (G = V.context) == null ? void 0 : G.elements.floating);
|
|
2775
2775
|
});
|
|
2776
|
-
if (
|
|
2776
|
+
if (it(v, l) || it(v, s) || we)
|
|
2777
2777
|
return;
|
|
2778
2778
|
const ce = x ? Ge(x.nodesRef.current, r) : [];
|
|
2779
2779
|
if (ce.length > 0) {
|
|
@@ -2804,7 +2804,7 @@ function ci(e, t) {
|
|
|
2804
2804
|
o(!1, w, "ancestor-scroll");
|
|
2805
2805
|
}
|
|
2806
2806
|
const I = pe(l);
|
|
2807
|
-
m && I.addEventListener("keydown", D ? M :
|
|
2807
|
+
m && I.addEventListener("keydown", D ? M : F, D), S && I.addEventListener(f, A ? b : O, A);
|
|
2808
2808
|
let R = [];
|
|
2809
2809
|
return p && (j(s) && (R = se(s)), j(l) && (R = R.concat(se(l))), !j(i) && i && i.contextElement && (R = R.concat(se(i.contextElement)))), R = R.filter((w) => {
|
|
2810
2810
|
var z;
|
|
@@ -2814,36 +2814,36 @@ function ci(e, t) {
|
|
|
2814
2814
|
passive: !0
|
|
2815
2815
|
});
|
|
2816
2816
|
}), () => {
|
|
2817
|
-
m && I.removeEventListener("keydown", D ? M :
|
|
2817
|
+
m && I.removeEventListener("keydown", D ? M : F, D), S && I.removeEventListener(f, A ? b : O, A), R.forEach((w) => {
|
|
2818
2818
|
w.removeEventListener("scroll", v);
|
|
2819
2819
|
});
|
|
2820
2820
|
};
|
|
2821
|
-
}, [a, l, s, i, m, S, f, n, o, p, c, P, T,
|
|
2821
|
+
}, [a, l, s, i, m, S, f, n, o, p, c, P, T, F, D, M, O, A, b]), y.useEffect(() => {
|
|
2822
2822
|
k.current = !1;
|
|
2823
2823
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2824
2824
|
reference: {
|
|
2825
|
-
onKeyDown:
|
|
2826
|
-
[
|
|
2825
|
+
onKeyDown: F,
|
|
2826
|
+
[ai[g]]: (v) => {
|
|
2827
2827
|
d && o(!1, v.nativeEvent, "reference-press");
|
|
2828
2828
|
}
|
|
2829
2829
|
},
|
|
2830
2830
|
floating: {
|
|
2831
|
-
onKeyDown:
|
|
2831
|
+
onKeyDown: F,
|
|
2832
2832
|
onMouseDown() {
|
|
2833
|
-
|
|
2833
|
+
E.current = !0;
|
|
2834
2834
|
},
|
|
2835
2835
|
onMouseUp() {
|
|
2836
|
-
|
|
2836
|
+
E.current = !0;
|
|
2837
2837
|
},
|
|
2838
|
-
[
|
|
2838
|
+
[ci[f]]: () => {
|
|
2839
2839
|
k.current = !0;
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
|
-
} : {}, [c, d, f, g, o,
|
|
2842
|
+
} : {}, [c, d, f, g, o, F]);
|
|
2843
2843
|
}
|
|
2844
2844
|
let pt;
|
|
2845
2845
|
process.env.NODE_ENV !== "production" && (pt = /* @__PURE__ */ new Set());
|
|
2846
|
-
function
|
|
2846
|
+
function di(e) {
|
|
2847
2847
|
var t;
|
|
2848
2848
|
e === void 0 && (e = {});
|
|
2849
2849
|
const {
|
|
@@ -2862,14 +2862,14 @@ function ui(e) {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
|
-
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, u =
|
|
2865
|
+
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, u = Cr(e), f = St(), d = wt() != null, g = Te((T, D, A) => {
|
|
2866
2866
|
T && ($.current.openEvent = D), h.emit("openchange", {
|
|
2867
2867
|
open: T,
|
|
2868
2868
|
event: D,
|
|
2869
2869
|
reason: A,
|
|
2870
2870
|
nested: d
|
|
2871
2871
|
}), o == null || o(T, D, A);
|
|
2872
|
-
}), p = y.useRef(null), $ = y.useRef({}), h = y.useState(() =>
|
|
2872
|
+
}), p = y.useRef(null), $ = y.useRef({}), h = y.useState(() => Ur())[0], x = $t(), B = y.useCallback((T) => {
|
|
2873
2873
|
const D = j(T) ? {
|
|
2874
2874
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2875
2875
|
contextElement: T
|
|
@@ -2885,20 +2885,20 @@ function ui(e) {
|
|
|
2885
2885
|
setReference: S,
|
|
2886
2886
|
setPositionReference: B,
|
|
2887
2887
|
domReference: p
|
|
2888
|
-
}), [u.refs, S, B]),
|
|
2888
|
+
}), [u.refs, S, B]), E = y.useMemo(() => ({
|
|
2889
2889
|
...u.elements,
|
|
2890
2890
|
domReference: m
|
|
2891
2891
|
}), [u.elements, m]), P = y.useMemo(() => ({
|
|
2892
2892
|
...u,
|
|
2893
2893
|
refs: k,
|
|
2894
|
-
elements:
|
|
2894
|
+
elements: E,
|
|
2895
2895
|
dataRef: $,
|
|
2896
2896
|
nodeId: r,
|
|
2897
2897
|
floatingId: x,
|
|
2898
2898
|
events: h,
|
|
2899
2899
|
open: n,
|
|
2900
2900
|
onOpenChange: g
|
|
2901
|
-
}), [u, r, x, h, n, g, k,
|
|
2901
|
+
}), [u, r, x, h, n, g, k, E]);
|
|
2902
2902
|
return Q(() => {
|
|
2903
2903
|
const T = f == null ? void 0 : f.nodesRef.current.find((D) => D.id === r);
|
|
2904
2904
|
T && (T.context = P);
|
|
@@ -2906,11 +2906,11 @@ function ui(e) {
|
|
|
2906
2906
|
...u,
|
|
2907
2907
|
context: P,
|
|
2908
2908
|
refs: k,
|
|
2909
|
-
elements:
|
|
2910
|
-
}), [u, k,
|
|
2909
|
+
elements: E
|
|
2910
|
+
}), [u, k, E, P]);
|
|
2911
2911
|
}
|
|
2912
2912
|
const qt = "active", Zt = "selected";
|
|
2913
|
-
function
|
|
2913
|
+
function ct(e, t, n) {
|
|
2914
2914
|
const o = /* @__PURE__ */ new Map(), r = n === "item";
|
|
2915
2915
|
let i = e;
|
|
2916
2916
|
if (r && e) {
|
|
@@ -2946,10 +2946,10 @@ function at(e, t, n) {
|
|
|
2946
2946
|
}), s), {})
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function fi(e) {
|
|
2950
2950
|
e === void 0 && (e = []);
|
|
2951
|
-
const t = e, n = y.useCallback((i) =>
|
|
2952
|
-
(i) =>
|
|
2951
|
+
const t = e, n = y.useCallback((i) => ct(i, e, "reference"), t), o = y.useCallback((i) => ct(i, e, "floating"), t), r = y.useCallback(
|
|
2952
|
+
(i) => ct(i, e, "item"),
|
|
2953
2953
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2954
2954
|
// should be as referentially stable as possible since it may be passed as
|
|
2955
2955
|
// a prop to many components. All `item` key values must therefore be
|
|
@@ -2962,8 +2962,8 @@ function di(e) {
|
|
|
2962
2962
|
getItemProps: r
|
|
2963
2963
|
}), [n, o, r]);
|
|
2964
2964
|
}
|
|
2965
|
-
const
|
|
2966
|
-
function
|
|
2965
|
+
const mi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2966
|
+
function gi(e, t) {
|
|
2967
2967
|
var n;
|
|
2968
2968
|
t === void 0 && (t = {});
|
|
2969
2969
|
const {
|
|
@@ -2972,7 +2972,7 @@ function mi(e, t) {
|
|
|
2972
2972
|
} = e, {
|
|
2973
2973
|
enabled: i = !0,
|
|
2974
2974
|
role: s = "dialog"
|
|
2975
|
-
} = t, l = (n =
|
|
2975
|
+
} = t, l = (n = mi.get(s)) != null ? n : s, a = $t(), m = wt() != null;
|
|
2976
2976
|
return y.useMemo(() => {
|
|
2977
2977
|
if (!i)
|
|
2978
2978
|
return {};
|
|
@@ -3045,10 +3045,10 @@ function mi(e, t) {
|
|
|
3045
3045
|
}, [i, s, l, o, r, a, m]);
|
|
3046
3046
|
}
|
|
3047
3047
|
const Jt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
3048
|
-
function
|
|
3048
|
+
function Ee(e, t) {
|
|
3049
3049
|
return typeof e == "function" ? e(t) : e;
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function pi(e, t) {
|
|
3052
3052
|
const [n, o] = y.useState(e);
|
|
3053
3053
|
return e && !n && o(!0), y.useEffect(() => {
|
|
3054
3054
|
if (!e) {
|
|
@@ -3057,7 +3057,7 @@ function gi(e, t) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
}, [e, t]), n;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function hi(e, t) {
|
|
3061
3061
|
t === void 0 && (t = {});
|
|
3062
3062
|
const {
|
|
3063
3063
|
open: n,
|
|
@@ -3066,7 +3066,7 @@ function pi(e, t) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
} = e, {
|
|
3068
3068
|
duration: r = 250
|
|
3069
|
-
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), u =
|
|
3069
|
+
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), u = pi(n, s);
|
|
3070
3070
|
return Q(() => {
|
|
3071
3071
|
l && !u && m("unmounted");
|
|
3072
3072
|
}, [l, u]), Q(() => {
|
|
@@ -3087,7 +3087,7 @@ function pi(e, t) {
|
|
|
3087
3087
|
status: c
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
3090
|
-
function
|
|
3090
|
+
function bi(e, t) {
|
|
3091
3091
|
t === void 0 && (t = {});
|
|
3092
3092
|
const {
|
|
3093
3093
|
initial: n = {
|
|
@@ -3101,16 +3101,16 @@ function hi(e, t) {
|
|
|
3101
3101
|
side: a,
|
|
3102
3102
|
placement: l
|
|
3103
3103
|
}), [a, l]), m = typeof s == "number", u = (m ? s : s.open) || 0, f = (m ? s : s.close) || 0, [d, g] = y.useState(() => ({
|
|
3104
|
-
...
|
|
3105
|
-
...
|
|
3104
|
+
...Ee(i, c),
|
|
3105
|
+
...Ee(n, c)
|
|
3106
3106
|
})), {
|
|
3107
3107
|
isMounted: p,
|
|
3108
3108
|
status: $
|
|
3109
|
-
} =
|
|
3109
|
+
} = hi(e, {
|
|
3110
3110
|
duration: s
|
|
3111
3111
|
}), h = Be(n), x = Be(o), B = Be(r), S = Be(i);
|
|
3112
3112
|
return Q(() => {
|
|
3113
|
-
const k =
|
|
3113
|
+
const k = Ee(h.current, c), E = Ee(B.current, c), P = Ee(S.current, c), T = Ee(x.current, c) || Object.keys(k).reduce((D, A) => (D[A] = "", D), {});
|
|
3114
3114
|
if ($ === "initial" && g((D) => ({
|
|
3115
3115
|
transitionProperty: D.transitionProperty,
|
|
3116
3116
|
...P,
|
|
@@ -3121,7 +3121,7 @@ function hi(e, t) {
|
|
|
3121
3121
|
...P,
|
|
3122
3122
|
...T
|
|
3123
3123
|
}), $ === "close") {
|
|
3124
|
-
const D =
|
|
3124
|
+
const D = E || k;
|
|
3125
3125
|
g({
|
|
3126
3126
|
transitionProperty: Object.keys(D).map(Jt).join(","),
|
|
3127
3127
|
transitionDuration: f + "ms",
|
|
@@ -3144,10 +3144,10 @@ function Qt(e, t) {
|
|
|
3144
3144
|
}
|
|
3145
3145
|
return r;
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3147
|
+
function yi(e, t) {
|
|
3148
3148
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function vi(e) {
|
|
3151
3151
|
e === void 0 && (e = {});
|
|
3152
3152
|
const {
|
|
3153
3153
|
buffer: t = 0.5,
|
|
@@ -3179,10 +3179,10 @@ function yi(e) {
|
|
|
3179
3179
|
if (clearTimeout(r), !p.domReference || !p.floating || g == null || f == null || d == null)
|
|
3180
3180
|
return;
|
|
3181
3181
|
const {
|
|
3182
|
-
clientX:
|
|
3182
|
+
clientX: E,
|
|
3183
3183
|
clientY: P
|
|
3184
|
-
} = S, T = [
|
|
3185
|
-
if (
|
|
3184
|
+
} = S, T = [E, P], D = ke(S), A = S.type === "mouseleave", F = ye(p.floating, D), M = ye(p.domReference, D), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], I = f > b.right - b.width / 2, R = d > b.bottom - b.height / 2, w = yi(T, O), z = b.width > O.width, K = b.height > O.height, U = (z ? O : b).left, we = (z ? O : b).right, ce = (K ? O : b).top, V = (K ? O : b).bottom;
|
|
3185
|
+
if (F && (i = !0, !A))
|
|
3186
3186
|
return;
|
|
3187
3187
|
if (M && (i = !1), M && !A) {
|
|
3188
3188
|
i = !0;
|
|
@@ -3233,7 +3233,7 @@ function yi(e) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
3236
|
-
if (!Qt([
|
|
3236
|
+
if (!Qt([E, P], G)) {
|
|
3237
3237
|
if (i && !w)
|
|
3238
3238
|
return k();
|
|
3239
3239
|
if (!A && o) {
|
|
@@ -3241,7 +3241,7 @@ function yi(e) {
|
|
|
3241
3241
|
if (de !== null && de < 0.1)
|
|
3242
3242
|
return k();
|
|
3243
3243
|
}
|
|
3244
|
-
Qt([
|
|
3244
|
+
Qt([E, P], ue([f, d])) ? !i && o && (r = window.setTimeout(k, 40)) : k();
|
|
3245
3245
|
}
|
|
3246
3246
|
};
|
|
3247
3247
|
};
|
|
@@ -3249,9 +3249,9 @@ function yi(e) {
|
|
|
3249
3249
|
blockPointerEvents: n
|
|
3250
3250
|
}, m;
|
|
3251
3251
|
}
|
|
3252
|
-
const ge = W("div"), Rt =
|
|
3252
|
+
const ge = W("div"), Rt = Ln(
|
|
3253
3253
|
{}
|
|
3254
|
-
),
|
|
3254
|
+
), Gi = ({
|
|
3255
3255
|
children: e,
|
|
3256
3256
|
offset: t,
|
|
3257
3257
|
open: n,
|
|
@@ -3261,13 +3261,13 @@ const ge = W("div"), Rt = Mn(
|
|
|
3261
3261
|
placement: s = "bottom",
|
|
3262
3262
|
role: l = "dialog"
|
|
3263
3263
|
}) => {
|
|
3264
|
-
const { refs: a, floatingStyles: c, context: m } =
|
|
3264
|
+
const { refs: a, floatingStyles: c, context: m } = di({
|
|
3265
3265
|
open: n,
|
|
3266
3266
|
onOpenChange: o,
|
|
3267
3267
|
placement: s,
|
|
3268
|
-
whileElementsMounted:
|
|
3269
|
-
middleware: [
|
|
3270
|
-
}), { isMounted: u, styles: f } =
|
|
3268
|
+
whileElementsMounted: $r,
|
|
3269
|
+
middleware: [nr(t), Sr(), wr()]
|
|
3270
|
+
}), { isMounted: u, styles: f } = bi(m, {
|
|
3271
3271
|
initial: ({ side: S }) => ({
|
|
3272
3272
|
opacity: 0,
|
|
3273
3273
|
transform: {
|
|
@@ -3277,16 +3277,16 @@ const ge = W("div"), Rt = Mn(
|
|
|
3277
3277
|
left: "translateX(-0.5rem)"
|
|
3278
3278
|
}[S]
|
|
3279
3279
|
})
|
|
3280
|
-
}), d =
|
|
3280
|
+
}), d = li(m, { enabled: r === "click" }), g = Jr(m, {
|
|
3281
3281
|
enabled: r === "hover",
|
|
3282
3282
|
delay: i,
|
|
3283
|
-
handleClose:
|
|
3284
|
-
}), p =
|
|
3283
|
+
handleClose: vi()
|
|
3284
|
+
}), p = ui(m), $ = gi(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = fi([
|
|
3285
3285
|
d,
|
|
3286
3286
|
g,
|
|
3287
3287
|
p,
|
|
3288
3288
|
$
|
|
3289
|
-
]), B =
|
|
3289
|
+
]), B = Ue(
|
|
3290
3290
|
() => ({
|
|
3291
3291
|
getFloatingProps: h,
|
|
3292
3292
|
getReferenceProps: x,
|
|
@@ -3304,22 +3304,22 @@ const ge = W("div"), Rt = Mn(
|
|
|
3304
3304
|
f
|
|
3305
3305
|
]
|
|
3306
3306
|
);
|
|
3307
|
-
return /* @__PURE__ */
|
|
3308
|
-
},
|
|
3309
|
-
const { getReferenceProps: t, refs: n } =
|
|
3310
|
-
return /* @__PURE__ */
|
|
3307
|
+
return /* @__PURE__ */ L(Rt.Provider, { value: B, children: e });
|
|
3308
|
+
}, Ui = ({ children: e }) => {
|
|
3309
|
+
const { getReferenceProps: t, refs: n } = on(Rt);
|
|
3310
|
+
return /* @__PURE__ */ L(Dn, { children: Fn(e) && zn(e, {
|
|
3311
3311
|
ref: n.setReference,
|
|
3312
3312
|
...t()
|
|
3313
3313
|
}) });
|
|
3314
|
-
},
|
|
3314
|
+
}, qi = ({ children: e, overlayCardProps: t }) => {
|
|
3315
3315
|
const {
|
|
3316
3316
|
getFloatingProps: n,
|
|
3317
3317
|
isMounted: o,
|
|
3318
3318
|
refs: r,
|
|
3319
3319
|
floatingStyles: i,
|
|
3320
3320
|
transitionStyles: s
|
|
3321
|
-
} =
|
|
3322
|
-
return o ? /* @__PURE__ */
|
|
3321
|
+
} = on(Rt);
|
|
3322
|
+
return o ? /* @__PURE__ */ L(ii, { children: /* @__PURE__ */ L(
|
|
3323
3323
|
ge,
|
|
3324
3324
|
{
|
|
3325
3325
|
ref: r.setFloating,
|
|
@@ -3328,10 +3328,10 @@ const ge = W("div"), Rt = Mn(
|
|
|
3328
3328
|
css: {
|
|
3329
3329
|
zIndex: "$overlayCard"
|
|
3330
3330
|
},
|
|
3331
|
-
children: /* @__PURE__ */
|
|
3331
|
+
children: /* @__PURE__ */ L(cn, { ...t, style: s, children: e })
|
|
3332
3332
|
}
|
|
3333
3333
|
) }) : null;
|
|
3334
|
-
},
|
|
3334
|
+
}, Zi = W("span", {
|
|
3335
3335
|
flex: "0 0 auto",
|
|
3336
3336
|
display: "inline-flex",
|
|
3337
3337
|
padding: "$1 $2",
|
|
@@ -3368,24 +3368,24 @@ const ge = W("div"), Rt = Mn(
|
|
|
3368
3368
|
defaultVariants: {
|
|
3369
3369
|
color: "primary"
|
|
3370
3370
|
}
|
|
3371
|
-
}),
|
|
3371
|
+
}), Ji = W(He.Root, {
|
|
3372
3372
|
backgroundColor: "$gray50",
|
|
3373
3373
|
display: "flex",
|
|
3374
3374
|
alignItems: "center",
|
|
3375
3375
|
padding: "$1",
|
|
3376
3376
|
gap: "$1"
|
|
3377
|
-
}),
|
|
3377
|
+
}), Qi = W(He.ToggleGroup, {
|
|
3378
3378
|
display: "flex",
|
|
3379
3379
|
gap: "$1",
|
|
3380
3380
|
alignItems: "center"
|
|
3381
|
-
}),
|
|
3381
|
+
}), es = W(He.Separator, {
|
|
3382
3382
|
width: "1px",
|
|
3383
3383
|
height: "1.5rem",
|
|
3384
3384
|
my: "$1",
|
|
3385
3385
|
mx: "$1",
|
|
3386
3386
|
backgroundColor: "$border"
|
|
3387
|
-
}),
|
|
3388
|
-
|
|
3387
|
+
}), On = $e(({ css: e, ...t }, n) => /* @__PURE__ */ L(
|
|
3388
|
+
an,
|
|
3389
3389
|
{
|
|
3390
3390
|
ref: n,
|
|
3391
3391
|
icon: !0,
|
|
@@ -3399,38 +3399,38 @@ const ge = W("div"), Rt = Mn(
|
|
|
3399
3399
|
},
|
|
3400
3400
|
...t
|
|
3401
3401
|
}
|
|
3402
|
-
)),
|
|
3403
|
-
({ children: e, dropdown: t, ...n }, o) => /* @__PURE__ */
|
|
3402
|
+
)), ts = $e(
|
|
3403
|
+
({ children: e, dropdown: t, ...n }, o) => /* @__PURE__ */ L(
|
|
3404
3404
|
He.Button,
|
|
3405
3405
|
{
|
|
3406
3406
|
asChild: !0,
|
|
3407
3407
|
ref: o,
|
|
3408
3408
|
children: /* @__PURE__ */ ee(
|
|
3409
|
-
|
|
3409
|
+
On,
|
|
3410
3410
|
{
|
|
3411
3411
|
variant: "transparent",
|
|
3412
3412
|
color: "primary",
|
|
3413
3413
|
...n,
|
|
3414
3414
|
children: [
|
|
3415
3415
|
e,
|
|
3416
|
-
t && /* @__PURE__ */
|
|
3416
|
+
t && /* @__PURE__ */ L(jn, {})
|
|
3417
3417
|
]
|
|
3418
3418
|
}
|
|
3419
3419
|
)
|
|
3420
3420
|
}
|
|
3421
3421
|
)
|
|
3422
|
-
),
|
|
3422
|
+
), ns = $e(({
|
|
3423
3423
|
children: e,
|
|
3424
3424
|
value: t,
|
|
3425
3425
|
...n
|
|
3426
|
-
}, o) => /* @__PURE__ */
|
|
3426
|
+
}, o) => /* @__PURE__ */ L(
|
|
3427
3427
|
He.ToggleItem,
|
|
3428
3428
|
{
|
|
3429
3429
|
value: t,
|
|
3430
3430
|
asChild: !0,
|
|
3431
3431
|
ref: o,
|
|
3432
|
-
children: /* @__PURE__ */
|
|
3433
|
-
|
|
3432
|
+
children: /* @__PURE__ */ L(
|
|
3433
|
+
On,
|
|
3434
3434
|
{
|
|
3435
3435
|
variant: "transparent",
|
|
3436
3436
|
color: "primary",
|
|
@@ -3440,7 +3440,7 @@ const ge = W("div"), Rt = Mn(
|
|
|
3440
3440
|
}
|
|
3441
3441
|
)
|
|
3442
3442
|
}
|
|
3443
|
-
)),
|
|
3443
|
+
)), os = W("div", {
|
|
3444
3444
|
color: "$$cardText",
|
|
3445
3445
|
backgroundColor: "$$cardBackground",
|
|
3446
3446
|
borderRadius: "$md",
|
|
@@ -3465,7 +3465,7 @@ const ge = W("div"), Rt = Mn(
|
|
|
3465
3465
|
variant: "primary",
|
|
3466
3466
|
elevation: "raised"
|
|
3467
3467
|
}
|
|
3468
|
-
}),
|
|
3468
|
+
}), xi = W("div", {
|
|
3469
3469
|
borderRadius: "$md",
|
|
3470
3470
|
padding: "$1",
|
|
3471
3471
|
border: "2px solid $blue100",
|
|
@@ -3473,12 +3473,12 @@ const ge = W("div"), Rt = Mn(
|
|
|
3473
3473
|
display: "flex",
|
|
3474
3474
|
alignItems: "center",
|
|
3475
3475
|
gap: "$1"
|
|
3476
|
-
}),
|
|
3476
|
+
}), rs = (e) => /* @__PURE__ */ L(xi, { ...e }), is = ({
|
|
3477
3477
|
children: e,
|
|
3478
3478
|
active: t = !1,
|
|
3479
3479
|
...n
|
|
3480
|
-
}) => /* @__PURE__ */
|
|
3481
|
-
|
|
3480
|
+
}) => /* @__PURE__ */ L(
|
|
3481
|
+
an,
|
|
3482
3482
|
{
|
|
3483
3483
|
variant: "transparent",
|
|
3484
3484
|
color: "primary",
|
|
@@ -3491,12 +3491,12 @@ const ge = W("div"), Rt = Mn(
|
|
|
3491
3491
|
...n,
|
|
3492
3492
|
children: e
|
|
3493
3493
|
}
|
|
3494
|
-
),
|
|
3494
|
+
), $i = W(Ne.Overlay, {
|
|
3495
3495
|
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
3496
3496
|
position: "fixed",
|
|
3497
3497
|
zIndex: "$overlayCard",
|
|
3498
3498
|
inset: 0
|
|
3499
|
-
}),
|
|
3499
|
+
}), wi = W(Ne.Content, {
|
|
3500
3500
|
backgroundColor: "white",
|
|
3501
3501
|
borderRadius: "$md",
|
|
3502
3502
|
position: "fixed",
|
|
@@ -3510,22 +3510,22 @@ const ge = W("div"), Rt = Mn(
|
|
|
3510
3510
|
maxHeight: "85vh",
|
|
3511
3511
|
padding: "$8",
|
|
3512
3512
|
"&:focus": { outline: "none" }
|
|
3513
|
-
}),
|
|
3513
|
+
}), ss = ({
|
|
3514
3514
|
children: e,
|
|
3515
3515
|
open: t,
|
|
3516
3516
|
onOpenChange: n,
|
|
3517
3517
|
trigger: o
|
|
3518
3518
|
}) => /* @__PURE__ */ ee(Ne.Root, { open: t, onOpenChange: n, children: [
|
|
3519
|
-
o && /* @__PURE__ */
|
|
3519
|
+
o && /* @__PURE__ */ L(Ne.Trigger, { asChild: !0, children: o }),
|
|
3520
3520
|
/* @__PURE__ */ ee(Ne.Portal, { children: [
|
|
3521
|
-
/* @__PURE__ */
|
|
3522
|
-
/* @__PURE__ */
|
|
3521
|
+
/* @__PURE__ */ L($i, {}),
|
|
3522
|
+
/* @__PURE__ */ L(wi, { children: e })
|
|
3523
3523
|
] })
|
|
3524
|
-
] }),
|
|
3524
|
+
] }), ls = W("h2", {
|
|
3525
3525
|
fontSize: "$xl",
|
|
3526
3526
|
fontWeight: "$medium",
|
|
3527
3527
|
marginBottom: "$6"
|
|
3528
|
-
}),
|
|
3528
|
+
}), as = W("div", {
|
|
3529
3529
|
display: "flex",
|
|
3530
3530
|
gap: "$2",
|
|
3531
3531
|
justifyContent: "flex-end",
|
|
@@ -3534,7 +3534,7 @@ const ge = W("div"), Rt = Mn(
|
|
|
3534
3534
|
padding: "$4",
|
|
3535
3535
|
borderBottomRightRadius: "$md",
|
|
3536
3536
|
borderBottomLeftRadius: "$md"
|
|
3537
|
-
}),
|
|
3537
|
+
}), cs = W("div", {
|
|
3538
3538
|
display: "flex",
|
|
3539
3539
|
variants: {
|
|
3540
3540
|
direction: {
|
|
@@ -3569,10 +3569,60 @@ const ge = W("div"), Rt = Mn(
|
|
|
3569
3569
|
direction: "column",
|
|
3570
3570
|
gap: 4
|
|
3571
3571
|
}
|
|
3572
|
-
}),
|
|
3572
|
+
}), en = /* @__PURE__ */ new Map(), Si = (e) => {
|
|
3573
|
+
const t = en.get(e);
|
|
3574
|
+
if (t)
|
|
3575
|
+
return t;
|
|
3576
|
+
let n = 0;
|
|
3577
|
+
for (let l = 0; l < e.length; l++)
|
|
3578
|
+
n = e.charCodeAt(l) + ((n << 5) - n);
|
|
3579
|
+
const s = `hsl(${n % 360}, 80%, 40%)`;
|
|
3580
|
+
return en.set(e, s), s;
|
|
3581
|
+
}, Ri = W("div", {
|
|
3582
|
+
flex: "0 0 auto",
|
|
3583
|
+
display: "inline-flex",
|
|
3584
|
+
alignItems: "center",
|
|
3585
|
+
justifyContent: "center",
|
|
3586
|
+
color: "white",
|
|
3587
|
+
borderRadius: "$full",
|
|
3588
|
+
transition: "background-color 150ms",
|
|
3589
|
+
userSelect: "none",
|
|
3590
|
+
variants: {
|
|
3591
|
+
size: {
|
|
3592
|
+
xs: {
|
|
3593
|
+
fontSize: "0.6rem",
|
|
3594
|
+
width: "1.50rem",
|
|
3595
|
+
height: "1.50rem"
|
|
3596
|
+
},
|
|
3597
|
+
sm: {
|
|
3598
|
+
fontSize: "0.8rem",
|
|
3599
|
+
width: "1.75rem",
|
|
3600
|
+
height: "1.75rem"
|
|
3601
|
+
},
|
|
3602
|
+
md: {
|
|
3603
|
+
fontSize: "0.9rem",
|
|
3604
|
+
width: "2rem",
|
|
3605
|
+
height: "2rem"
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
},
|
|
3609
|
+
defaultVariants: {
|
|
3610
|
+
size: "md"
|
|
3611
|
+
}
|
|
3612
|
+
}), us = ({
|
|
3613
|
+
css: e,
|
|
3614
|
+
colorString: t,
|
|
3615
|
+
...n
|
|
3616
|
+
}) => {
|
|
3617
|
+
const o = Ue(
|
|
3618
|
+
() => t ? Si(t) : "$gray200",
|
|
3619
|
+
[t]
|
|
3620
|
+
);
|
|
3621
|
+
return /* @__PURE__ */ L(Ri, { css: { backgroundColor: o, ...e }, ...n });
|
|
3622
|
+
}, Ci = W(cn, {
|
|
3573
3623
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3574
3624
|
padding: "$1"
|
|
3575
|
-
}),
|
|
3625
|
+
}), Ct = Ve({
|
|
3576
3626
|
padding: "$2 $2 $2 1.5rem",
|
|
3577
3627
|
fontSize: "$sm",
|
|
3578
3628
|
lineHeight: "1.25",
|
|
@@ -3595,7 +3645,7 @@ const ge = W("div"), Rt = Mn(
|
|
|
3595
3645
|
backgroundColor: "transparent"
|
|
3596
3646
|
}
|
|
3597
3647
|
}
|
|
3598
|
-
}),
|
|
3648
|
+
}), ds = ({
|
|
3599
3649
|
side: e = "bottom",
|
|
3600
3650
|
align: t = "center",
|
|
3601
3651
|
trigger: n,
|
|
@@ -3603,8 +3653,8 @@ const ge = W("div"), Rt = Mn(
|
|
|
3603
3653
|
sideOffset: r,
|
|
3604
3654
|
modal: i
|
|
3605
3655
|
}) => /* @__PURE__ */ ee(ne.Root, { modal: i, children: [
|
|
3606
|
-
/* @__PURE__ */
|
|
3607
|
-
/* @__PURE__ */
|
|
3656
|
+
/* @__PURE__ */ L(ne.Trigger, { asChild: !0, children: n }),
|
|
3657
|
+
/* @__PURE__ */ L(ne.Portal, { children: /* @__PURE__ */ L(
|
|
3608
3658
|
ne.Content,
|
|
3609
3659
|
{
|
|
3610
3660
|
asChild: !0,
|
|
@@ -3612,10 +3662,10 @@ const ge = W("div"), Rt = Mn(
|
|
|
3612
3662
|
align: t,
|
|
3613
3663
|
collisionPadding: 10,
|
|
3614
3664
|
sideOffset: r,
|
|
3615
|
-
children: /* @__PURE__ */
|
|
3665
|
+
children: /* @__PURE__ */ L(Ci, { children: o })
|
|
3616
3666
|
}
|
|
3617
3667
|
) })
|
|
3618
|
-
] }),
|
|
3668
|
+
] }), Ei = W(ne.ItemIndicator, {
|
|
3619
3669
|
position: "absolute",
|
|
3620
3670
|
left: 0,
|
|
3621
3671
|
top: 0,
|
|
@@ -3624,30 +3674,30 @@ const ge = W("div"), Rt = Mn(
|
|
|
3624
3674
|
display: "flex",
|
|
3625
3675
|
justifyContent: "center",
|
|
3626
3676
|
alignItems: "center"
|
|
3627
|
-
}),
|
|
3677
|
+
}), fs = W(ne.Separator, {
|
|
3628
3678
|
height: 1,
|
|
3629
3679
|
backgroundColor: "$gray200",
|
|
3630
3680
|
margin: 1
|
|
3631
|
-
}),
|
|
3681
|
+
}), ms = W(ne.Item, Ct), gs = W(ne.Item, Ct, {
|
|
3632
3682
|
padding: "$2",
|
|
3633
3683
|
display: "flex",
|
|
3634
3684
|
alignItems: "center",
|
|
3635
3685
|
gap: "$2"
|
|
3636
|
-
}),
|
|
3686
|
+
}), ki = W(ne.CheckboxItem, Ct), ps = ({
|
|
3637
3687
|
value: e,
|
|
3638
3688
|
onChange: t,
|
|
3639
3689
|
children: n
|
|
3640
3690
|
}) => /* @__PURE__ */ ee(
|
|
3641
|
-
|
|
3691
|
+
ki,
|
|
3642
3692
|
{
|
|
3643
3693
|
checked: e,
|
|
3644
3694
|
onCheckedChange: t,
|
|
3645
3695
|
children: [
|
|
3646
|
-
/* @__PURE__ */
|
|
3696
|
+
/* @__PURE__ */ L(Ei, { children: /* @__PURE__ */ L(Hn, { size: "0.75rem" }) }),
|
|
3647
3697
|
n
|
|
3648
3698
|
]
|
|
3649
3699
|
}
|
|
3650
|
-
),
|
|
3700
|
+
), Ti = {
|
|
3651
3701
|
container: (e) => ({
|
|
3652
3702
|
...e,
|
|
3653
3703
|
minWidth: "200px"
|
|
@@ -3698,40 +3748,40 @@ const ge = W("div"), Rt = Mn(
|
|
|
3698
3748
|
...e,
|
|
3699
3749
|
zIndex: "var(--zIndices-overlayCard)"
|
|
3700
3750
|
})
|
|
3701
|
-
},
|
|
3751
|
+
}, Ii = {
|
|
3702
3752
|
IndicatorSeparator: () => null
|
|
3703
|
-
},
|
|
3753
|
+
}, Bi = ({
|
|
3704
3754
|
styles: e,
|
|
3705
3755
|
components: t,
|
|
3706
3756
|
...n
|
|
3707
3757
|
}) => {
|
|
3708
|
-
const o =
|
|
3758
|
+
const o = Ue(
|
|
3709
3759
|
() => ({
|
|
3710
|
-
...
|
|
3760
|
+
...Ti,
|
|
3711
3761
|
...e
|
|
3712
3762
|
}),
|
|
3713
3763
|
[e]
|
|
3714
|
-
), r =
|
|
3764
|
+
), r = Ue(
|
|
3715
3765
|
() => ({
|
|
3716
|
-
...
|
|
3766
|
+
...Ii,
|
|
3717
3767
|
...t
|
|
3718
3768
|
}),
|
|
3719
3769
|
[t]
|
|
3720
3770
|
);
|
|
3721
|
-
return /* @__PURE__ */
|
|
3722
|
-
},
|
|
3771
|
+
return /* @__PURE__ */ L(Xn, { components: r, styles: o, ...n });
|
|
3772
|
+
}, hs = ({
|
|
3723
3773
|
clearable: e = !0,
|
|
3724
3774
|
multi: t = !1,
|
|
3725
3775
|
...n
|
|
3726
|
-
}) => (e = t ? !1 : e, /* @__PURE__ */
|
|
3727
|
-
|
|
3776
|
+
}) => (e = t ? !1 : e, /* @__PURE__ */ L(
|
|
3777
|
+
Bi,
|
|
3728
3778
|
{
|
|
3729
3779
|
...n,
|
|
3730
3780
|
isClearable: e,
|
|
3731
3781
|
isMulti: t,
|
|
3732
3782
|
isSearchable: !0
|
|
3733
3783
|
}
|
|
3734
|
-
)),
|
|
3784
|
+
)), Pi = Ve({
|
|
3735
3785
|
display: "block",
|
|
3736
3786
|
width: "100%",
|
|
3737
3787
|
padding: "0.5rem 0.75rem",
|
|
@@ -3743,7 +3793,7 @@ const ge = W("div"), Rt = Mn(
|
|
|
3743
3793
|
"-webkit-appearance": "none",
|
|
3744
3794
|
"-moz-appearance": "none",
|
|
3745
3795
|
appearance: "none"
|
|
3746
|
-
}),
|
|
3796
|
+
}), Ai = Ve({
|
|
3747
3797
|
display: "block",
|
|
3748
3798
|
width: "100%",
|
|
3749
3799
|
background: "#fff",
|
|
@@ -3767,16 +3817,16 @@ const ge = W("div"), Rt = Mn(
|
|
|
3767
3817
|
}
|
|
3768
3818
|
}
|
|
3769
3819
|
}
|
|
3770
|
-
}),
|
|
3820
|
+
}), Oi = W("input", Pi), Di = W("div", Ai, {
|
|
3771
3821
|
display: "flex",
|
|
3772
3822
|
alignItems: "center",
|
|
3773
3823
|
gap: "$2",
|
|
3774
3824
|
width: "100%"
|
|
3775
|
-
}),
|
|
3825
|
+
}), bs = $e(
|
|
3776
3826
|
({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
|
|
3777
|
-
const c =
|
|
3827
|
+
const c = rn();
|
|
3778
3828
|
return s = s || c, /* @__PURE__ */ ee(ge, { css: r, children: [
|
|
3779
|
-
t && /* @__PURE__ */
|
|
3829
|
+
t && /* @__PURE__ */ L(
|
|
3780
3830
|
ge,
|
|
3781
3831
|
{
|
|
3782
3832
|
as: "label",
|
|
@@ -3789,9 +3839,9 @@ const ge = W("div"), Rt = Mn(
|
|
|
3789
3839
|
children: t
|
|
3790
3840
|
}
|
|
3791
3841
|
),
|
|
3792
|
-
/* @__PURE__ */ ee(
|
|
3793
|
-
/* @__PURE__ */
|
|
3794
|
-
|
|
3842
|
+
/* @__PURE__ */ ee(Di, { error: !!n, children: [
|
|
3843
|
+
/* @__PURE__ */ L(
|
|
3844
|
+
Oi,
|
|
3795
3845
|
{
|
|
3796
3846
|
id: s,
|
|
3797
3847
|
ref: a,
|
|
@@ -3800,7 +3850,7 @@ const ge = W("div"), Rt = Mn(
|
|
|
3800
3850
|
...l
|
|
3801
3851
|
}
|
|
3802
3852
|
),
|
|
3803
|
-
i && /* @__PURE__ */
|
|
3853
|
+
i && /* @__PURE__ */ L(
|
|
3804
3854
|
ge,
|
|
3805
3855
|
{
|
|
3806
3856
|
css: {
|
|
@@ -3811,19 +3861,19 @@ const ge = W("div"), Rt = Mn(
|
|
|
3811
3861
|
children: i
|
|
3812
3862
|
}
|
|
3813
3863
|
),
|
|
3814
|
-
n && /* @__PURE__ */
|
|
3864
|
+
n && /* @__PURE__ */ L(
|
|
3815
3865
|
ge,
|
|
3816
3866
|
{
|
|
3817
|
-
as:
|
|
3867
|
+
as: Vn,
|
|
3818
3868
|
css: { color: "$red600", marginRight: "$2" },
|
|
3819
3869
|
size: 24
|
|
3820
3870
|
}
|
|
3821
3871
|
)
|
|
3822
3872
|
] }),
|
|
3823
|
-
typeof n == "string" && /* @__PURE__ */
|
|
3873
|
+
typeof n == "string" && /* @__PURE__ */ L(ge, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
|
|
3824
3874
|
] });
|
|
3825
3875
|
}
|
|
3826
|
-
),
|
|
3876
|
+
), Mi = W(sn.Root, {
|
|
3827
3877
|
display: "flex",
|
|
3828
3878
|
alignItems: "center",
|
|
3829
3879
|
justifyContent: "center",
|
|
@@ -3859,14 +3909,14 @@ const ge = W("div"), Rt = Mn(
|
|
|
3859
3909
|
defaultVariants: {
|
|
3860
3910
|
size: "md"
|
|
3861
3911
|
}
|
|
3862
|
-
}),
|
|
3912
|
+
}), Li = W(sn.Indicator, {
|
|
3863
3913
|
"[data-icon]": {
|
|
3864
3914
|
display: "none"
|
|
3865
3915
|
},
|
|
3866
3916
|
"&[data-state=checked] [data-icon=checked], &[data-state=indeterminate] [data-icon=indeterminate]": {
|
|
3867
3917
|
display: "block"
|
|
3868
3918
|
}
|
|
3869
|
-
}),
|
|
3919
|
+
}), Fi = W("label", {
|
|
3870
3920
|
flex: "0 1 auto",
|
|
3871
3921
|
variants: {
|
|
3872
3922
|
size: {
|
|
@@ -3884,69 +3934,70 @@ const ge = W("div"), Rt = Mn(
|
|
|
3884
3934
|
defaultVariants: {
|
|
3885
3935
|
size: "md"
|
|
3886
3936
|
}
|
|
3887
|
-
}),
|
|
3937
|
+
}), ys = ({
|
|
3888
3938
|
id: e,
|
|
3889
3939
|
size: t,
|
|
3890
3940
|
label: n,
|
|
3891
3941
|
...o
|
|
3892
3942
|
}) => {
|
|
3893
|
-
const r =
|
|
3943
|
+
const r = rn();
|
|
3894
3944
|
return e = e || r, /* @__PURE__ */ ee(ge, { css: { display: "flex", alignItems: "center", gap: "$2" }, children: [
|
|
3895
|
-
/* @__PURE__ */
|
|
3896
|
-
/* @__PURE__ */
|
|
3897
|
-
/* @__PURE__ */
|
|
3945
|
+
/* @__PURE__ */ L(Mi, { id: e, size: t, ...o, children: /* @__PURE__ */ ee(Li, { children: [
|
|
3946
|
+
/* @__PURE__ */ L(_n, { "data-icon": "indeterminate" }),
|
|
3947
|
+
/* @__PURE__ */ L(Yn, { "data-icon": "checked" })
|
|
3898
3948
|
] }) }),
|
|
3899
|
-
n && /* @__PURE__ */
|
|
3949
|
+
n && /* @__PURE__ */ L(Fi, { htmlFor: e, size: t, children: n })
|
|
3900
3950
|
] });
|
|
3901
3951
|
};
|
|
3902
3952
|
export {
|
|
3903
3953
|
Me as A,
|
|
3904
3954
|
ge as B,
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3955
|
+
hs as C,
|
|
3956
|
+
ds as D,
|
|
3957
|
+
Vi as E,
|
|
3958
|
+
ii as F,
|
|
3959
|
+
_i as G,
|
|
3960
|
+
Yi as H,
|
|
3961
|
+
Zi as I,
|
|
3962
|
+
On as J,
|
|
3963
|
+
os as K,
|
|
3964
|
+
ls as L,
|
|
3965
|
+
cs as M,
|
|
3966
|
+
rs as N,
|
|
3967
|
+
cn as O,
|
|
3968
|
+
Gi as P,
|
|
3969
|
+
us as Q,
|
|
3970
|
+
Bi as R,
|
|
3971
|
+
ko as S,
|
|
3972
|
+
ts as T,
|
|
3973
|
+
Ci as U,
|
|
3974
|
+
Ct as V,
|
|
3975
|
+
ps as W,
|
|
3976
|
+
ys as X,
|
|
3977
|
+
gs as a,
|
|
3978
|
+
Qi as b,
|
|
3928
3979
|
Ve as c,
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3980
|
+
ns as d,
|
|
3981
|
+
$r as e,
|
|
3982
|
+
Xi as f,
|
|
3983
|
+
Sr as g,
|
|
3984
|
+
wr as h,
|
|
3985
|
+
fi as i,
|
|
3986
|
+
gi as j,
|
|
3987
|
+
Ji as k,
|
|
3988
|
+
es as l,
|
|
3989
|
+
an as m,
|
|
3990
|
+
ms as n,
|
|
3991
|
+
nr as o,
|
|
3992
|
+
fs as p,
|
|
3993
|
+
ss as q,
|
|
3994
|
+
is as r,
|
|
3944
3995
|
W as s,
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3996
|
+
bs as t,
|
|
3997
|
+
di as u,
|
|
3998
|
+
as as v,
|
|
3999
|
+
Ki as w,
|
|
4000
|
+
ui as x,
|
|
4001
|
+
Ui as y,
|
|
4002
|
+
qi as z
|
|
3952
4003
|
};
|