@arkitektbedriftene/fe-lib 0.4.16 → 0.4.18
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-38e85f9b.js → Checkbox-a342242a.js} +574 -562
- package/dist/rich-text.es.js +1 -1
- package/dist/ui/components/Dialog.d.ts +236 -2
- package/dist/ui/components/Form/ReactSelect.d.ts +96 -2
- package/dist/ui/components/Form/Select.d.ts +2 -1
- package/dist/ui.es.js +39 -29
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as L, jsxs as ee, Fragment as
|
|
1
|
+
import { jsx as L, jsxs as ee, Fragment as Mn } 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 nn, useEffect as on, useRef as Ln, createContext as Fn, useMemo as qe, useContext as rn, isValidElement as zn, cloneElement as Wn, useId as sn } from "react";
|
|
4
|
+
import * as Nn from "react-dom";
|
|
5
|
+
import { createPortal as jn } from "react-dom";
|
|
6
6
|
import * as He from "@radix-ui/react-toolbar";
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as Hn, h as Vn, i as _n, j as Yn, k as Xn } 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", C = "space",
|
|
10
|
+
import Kn from "react-select";
|
|
11
|
+
import * as ln from "@radix-ui/react-checkbox";
|
|
12
|
+
var N = "colors", X = "sizes", C = "space", Gn = { 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" }, Un = (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, Un))(t);
|
|
16
16
|
return r in e ? e[r] : e[r] = n(t, ...o);
|
|
17
17
|
};
|
|
18
|
-
}, he = Symbol.for("sxs.internal"),
|
|
18
|
+
}, he = Symbol.for("sxs.internal"), bt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), kt = (e) => {
|
|
19
19
|
for (const t in e)
|
|
20
20
|
return !0;
|
|
21
21
|
return !1;
|
|
22
|
-
}, { hasOwnProperty:
|
|
22
|
+
}, { hasOwnProperty: qn } = Object.prototype, dt = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Zn = /\s+(?![^()]*\))/, Ce = (e) => (t) => e(...typeof t == "string" ? String(t).split(Zn) : [t]), Tt = { 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 })) }, it = /([\d.]+)([^]*)/, Jn = (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, Qn = (e, t) => e in eo && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, o, r, i) => o + (r === "stretch" ? `-moz-available${i};${dt(e)}:${o}-webkit-fill-available` : `-moz-fit-content${i};${dt(e)}:${o}fit-content`) + i) : String(t), eo = { 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 + "-" : "", an = (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") + ")" : "")), to = /\s*,\s*(?![^()]*\))/, no = 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,46 +27,46 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, 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, (E) => E[1].toUpperCase()), k = typeof d == "object" && d && d.toString ===
|
|
30
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (E) => E[1].toUpperCase()), k = typeof d == "object" && d && d.toString === no && (!o.utils[S] || !m.length);
|
|
31
31
|
if (S in o.utils && !k) {
|
|
32
32
|
const E = o.utils[S];
|
|
33
33
|
if (E !== s) {
|
|
34
34
|
s = E, g(E(d)), s = null;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
} else if (S in
|
|
38
|
-
const E =
|
|
37
|
+
} else if (S in Tt) {
|
|
38
|
+
const E = Tt[S];
|
|
39
39
|
if (E !== l) {
|
|
40
40
|
l = E, g(E(d)), l = null;
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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 =
|
|
46
|
-
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(
|
|
45
|
+
const M = it.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(it, (I, R, w) => Number(R) + O * (T === ">" ? 1 : -1) + w) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? F.replace(it, (I, R, w) => Number(R) + O * (A === ">" ? -1 : 1) + w) : F) : "") + ")";
|
|
47
47
|
})), k) {
|
|
48
|
-
const E = x ? u.concat(f) : [...u], P = x ? [...m] :
|
|
49
|
-
i !== void 0 && r(
|
|
48
|
+
const E = x ? u.concat(f) : [...u], P = x ? [...m] : Jn(m, f.split(to));
|
|
49
|
+
i !== void 0 && r(It(...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 oo ? String(d) + "px" : String(d) : an(Qn(S, d ?? ""), o.prefix, o.themeMap[S]), i[0].push(`${x ? `${f} ` : `${dt(f)}:`}${d}`);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
var $, h;
|
|
55
55
|
};
|
|
56
|
-
g(c), i !== void 0 && r(
|
|
56
|
+
g(c), i !== void 0 && r(It(...i)), i = void 0;
|
|
57
57
|
};
|
|
58
58
|
a(e, t, n);
|
|
59
|
-
},
|
|
59
|
+
}, It = (e, t, n) => `${n.map((o) => `${o}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, oo = { 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 }, Bt = (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
|
-
o =
|
|
63
|
-
return
|
|
62
|
+
o = Bt(n % 52) + o;
|
|
63
|
+
return Bt(n % 52) + o;
|
|
64
64
|
})(((t, n) => {
|
|
65
65
|
let o = n.length;
|
|
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"], ro = (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", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
74
74
|
} catch {
|
|
75
75
|
return !1;
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, io = (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", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
106
106
|
}
|
|
107
107
|
const r = Object(e).styleSheets || [];
|
|
108
108
|
for (const l of r)
|
|
109
|
-
if (
|
|
109
|
+
if (ro(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", C = "space", Kn = { gap: C, gridGap: C, 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
|
+
so(s[a]);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
return o(), t;
|
|
146
|
-
},
|
|
146
|
+
}, so = (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", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
152
152
|
} catch {
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
|
-
}, ze = Symbol(),
|
|
155
|
+
}, ze = Symbol(), lo = De(), Pt = (e, t) => lo(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", C = "space", Kn = { gap: C, gridGap: C, 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(ao(r, e));
|
|
165
|
+
return o.type == null && (o.type = "span"), o.composers.size || o.composers.add(["PJLV", {}, [], [], {}, []]), co(e, o, t);
|
|
166
|
+
}), ao = ({ 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, qn.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, $, !kt($)];
|
|
178
178
|
s.push(h);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -185,12 +185,12 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, 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, !kt(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
|
+
}, co = (e, t, n) => {
|
|
193
|
+
const [o, r, i, s] = uo(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", C = "space", Kn = { gap: C, gridGap: C, 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 || fo;
|
|
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,7 +213,7 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, 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 =
|
|
216
|
+
const k = At(B, g, e.media), E = At(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) {
|
|
@@ -244,8 +244,8 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
244
244
|
const $ = d.className = [...p].join(" ");
|
|
245
245
|
return { type: t.type, className: $, selector: c, props: d, toString: () => $, deferredInjector: l };
|
|
246
246
|
};
|
|
247
|
-
return
|
|
248
|
-
},
|
|
247
|
+
return bt(m, { className: o, selector: c, [he]: t, toString: () => (n.rules.styled.cache.has(o) || m(), o) });
|
|
248
|
+
}, uo = (e) => {
|
|
249
249
|
let t = "";
|
|
250
250
|
const n = [], o = {}, r = [];
|
|
251
251
|
for (const [i, , , , s, l] of e) {
|
|
@@ -256,7 +256,7 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
return [t, n, o, new Set(r)];
|
|
259
|
-
},
|
|
259
|
+
}, At = (e, t, n, o) => {
|
|
260
260
|
const r = [];
|
|
261
261
|
e:
|
|
262
262
|
for (let [i, s, l] of e) {
|
|
@@ -289,7 +289,7 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
289
289
|
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s, m]);
|
|
290
290
|
}
|
|
291
291
|
return r;
|
|
292
|
-
},
|
|
292
|
+
}, fo = {}, mo = De(), go = (e, t) => mo(e, () => (...n) => {
|
|
293
293
|
const o = () => {
|
|
294
294
|
for (let r of n) {
|
|
295
295
|
r = typeof r == "object" && r || {};
|
|
@@ -308,8 +308,8 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
308
308
|
}
|
|
309
309
|
return "";
|
|
310
310
|
};
|
|
311
|
-
return
|
|
312
|
-
}),
|
|
311
|
+
return bt(o, { toString: o });
|
|
312
|
+
}), po = De(), ho = (e, t) => po(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);
|
|
@@ -320,10 +320,10 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
320
320
|
}
|
|
321
321
|
return o;
|
|
322
322
|
};
|
|
323
|
-
return
|
|
323
|
+
return bt(r, { get name() {
|
|
324
324
|
return r();
|
|
325
325
|
}, toString: r });
|
|
326
|
-
}),
|
|
326
|
+
}), bo = 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", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
336
336
|
toString() {
|
|
337
337
|
return this.computedValue;
|
|
338
338
|
}
|
|
339
|
-
},
|
|
339
|
+
}, yo = De(), vo = (e, t) => yo(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 = an(String(o[a][c]), e.prefix, a);
|
|
346
|
+
i[a][c] = new bo(c, u, a, e.prefix), s.push(`${m}:${u}`);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
const l = () => {
|
|
@@ -357,20 +357,20 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
357
357
|
return { ...i, get className() {
|
|
358
358
|
return l();
|
|
359
359
|
}, selector: r, toString: l };
|
|
360
|
-
}),
|
|
360
|
+
}), xo = De(), $o = De(), wo = (e) => {
|
|
361
361
|
const t = ((n) => {
|
|
362
362
|
let o = !1;
|
|
363
|
-
const r =
|
|
363
|
+
const r = xo(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 || { ...Gn }, utils: typeof i.utils == "object" && i.utils || {} }, u = io(a), f = { css: Pt(m, u), globalCss: go(m, u), keyframes: ho(m, u), createTheme: vo(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 }) =>
|
|
373
|
-
const r =
|
|
372
|
+
return t.styled = (({ config: n, sheet: o }) => $o(n, () => {
|
|
373
|
+
const r = Pt(n, o);
|
|
374
374
|
return (...i) => {
|
|
375
375
|
const s = r(...i), l = s[he].type, a = Re.forwardRef((c, m) => {
|
|
376
376
|
const u = c && c.as || l, { props: f, deferredInjector: d } = s(c);
|
|
@@ -380,8 +380,8 @@ var N = "colors", X = "sizes", C = "space", Kn = { gap: C, gridGap: C, columnGap
|
|
|
380
380
|
};
|
|
381
381
|
}))(t), t;
|
|
382
382
|
};
|
|
383
|
-
let
|
|
384
|
-
const
|
|
383
|
+
let Ot = 9999;
|
|
384
|
+
const Dt = () => (Ot--, Ot), { styled: W, css: Ve, keyframes: Me, globalCss: _i, getCssText: Yi } = wo({
|
|
385
385
|
theme: {
|
|
386
386
|
colors: {
|
|
387
387
|
gray50: "#F9FAFA",
|
|
@@ -499,32 +499,32 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Vi,
|
|
|
499
499
|
* By using createLayerBelow() we can order the list of layers.
|
|
500
500
|
* Layers higher up will be on top of layers lower down.
|
|
501
501
|
*/
|
|
502
|
-
toast:
|
|
503
|
-
overlayCard:
|
|
502
|
+
toast: Dt(),
|
|
503
|
+
overlayCard: Dt()
|
|
504
504
|
}
|
|
505
505
|
},
|
|
506
506
|
media: {
|
|
507
507
|
lg: "(min-width: 1200px)",
|
|
508
508
|
print: "print"
|
|
509
509
|
}
|
|
510
|
-
}),
|
|
510
|
+
}), So = Me({
|
|
511
511
|
"0%": {
|
|
512
512
|
transform: "rotate(0)"
|
|
513
513
|
},
|
|
514
514
|
"100%": {
|
|
515
515
|
transform: "rotate(360deg)"
|
|
516
516
|
}
|
|
517
|
-
}),
|
|
517
|
+
}), Ro = 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
|
+
}), Co = W("svg", {
|
|
525
|
+
animation: `${So} 2s linear infinite`
|
|
526
|
+
}), Eo = W("circle", {
|
|
527
|
+
animation: `${Ro} 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,
|
|
@@ -532,7 +532,7 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Vi,
|
|
|
532
532
|
strokeLinecap: "round",
|
|
533
533
|
strokeMiterlimit: 10,
|
|
534
534
|
strokeWidth: 12
|
|
535
|
-
}),
|
|
535
|
+
}), ko = W("div", {
|
|
536
536
|
lineHeight: 0,
|
|
537
537
|
flexShrink: 0,
|
|
538
538
|
variants: {
|
|
@@ -570,20 +570,20 @@ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Vi,
|
|
|
570
570
|
size: "sm",
|
|
571
571
|
color: "dark"
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), To = $e(
|
|
574
574
|
(e, t) => /* @__PURE__ */ L(
|
|
575
|
-
|
|
575
|
+
ko,
|
|
576
576
|
{
|
|
577
577
|
ref: t,
|
|
578
578
|
...e,
|
|
579
579
|
children: /* @__PURE__ */ L(
|
|
580
|
-
|
|
580
|
+
Co,
|
|
581
581
|
{
|
|
582
582
|
x: "0px",
|
|
583
583
|
y: "0px",
|
|
584
584
|
viewBox: "0 0 150 150",
|
|
585
585
|
children: /* @__PURE__ */ L(
|
|
586
|
-
|
|
586
|
+
Eo,
|
|
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: Vi,
|
|
|
594
594
|
)
|
|
595
595
|
}
|
|
596
596
|
)
|
|
597
|
-
),
|
|
597
|
+
), Io = 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: Vi,
|
|
|
752
752
|
color: "secondary",
|
|
753
753
|
size: "md"
|
|
754
754
|
}
|
|
755
|
-
}),
|
|
755
|
+
}), cn = $e(
|
|
756
756
|
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */ ee(
|
|
757
|
-
|
|
757
|
+
Io,
|
|
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: Vi,
|
|
|
765
765
|
...i,
|
|
766
766
|
children: [
|
|
767
767
|
e,
|
|
768
|
-
n && /* @__PURE__ */ L(
|
|
768
|
+
n && /* @__PURE__ */ L(To, { color: "inherit" })
|
|
769
769
|
]
|
|
770
770
|
}
|
|
771
771
|
))
|
|
772
|
-
),
|
|
772
|
+
), Bo = 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: Vi,
|
|
|
808
808
|
color: "info",
|
|
809
809
|
size: "md"
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
811
|
+
}), Xi = $e(
|
|
812
812
|
({ children: e, ...t }, n) => /* @__PURE__ */ L(
|
|
813
|
-
|
|
813
|
+
Bo,
|
|
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: Vi,
|
|
|
818
818
|
children: e
|
|
819
819
|
}
|
|
820
820
|
)
|
|
821
|
-
),
|
|
821
|
+
), Po = Me({
|
|
822
822
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
823
823
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
824
|
-
}),
|
|
824
|
+
}), Ao = Me({
|
|
825
825
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
826
826
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
827
|
-
}),
|
|
827
|
+
}), Oo = Me({
|
|
828
828
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
829
829
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
830
|
-
}),
|
|
830
|
+
}), Do = Me({
|
|
831
831
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
832
832
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
833
|
-
}),
|
|
833
|
+
}), Mo = 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: Vi,
|
|
|
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
|
+
}), Lo = 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: Oo },
|
|
849
|
+
'&[data-side="right"]': { animationName: Do },
|
|
850
|
+
'&[data-side="bottom"]': { animationName: Po },
|
|
851
|
+
'&[data-side="left"]': { animationName: Ao }
|
|
852
852
|
}
|
|
853
|
-
}),
|
|
853
|
+
}), un = W(
|
|
854
854
|
"div",
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
Mo,
|
|
856
|
+
Lo
|
|
857
857
|
);
|
|
858
858
|
function le(e) {
|
|
859
|
-
return
|
|
859
|
+
return dn(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 = (dn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function dn(e) {
|
|
870
870
|
return e instanceof Node || e instanceof q(e).Node;
|
|
871
871
|
}
|
|
872
872
|
function j(e) {
|
|
@@ -875,7 +875,7 @@ function j(e) {
|
|
|
875
875
|
function Z(e) {
|
|
876
876
|
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function ft(e) {
|
|
879
879
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
880
880
|
}
|
|
881
881
|
function _e(e) {
|
|
@@ -887,23 +887,23 @@ 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 Fo(e) {
|
|
891
891
|
return ["table", "td", "th"].includes(le(e));
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
const t =
|
|
893
|
+
function yt(e) {
|
|
894
|
+
const t = vt(), 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 zo(e) {
|
|
898
898
|
let t = ve(e);
|
|
899
899
|
for (; Z(t) && !Ae(t); ) {
|
|
900
|
-
if (
|
|
900
|
+
if (yt(t))
|
|
901
901
|
return t;
|
|
902
902
|
t = ve(t);
|
|
903
903
|
}
|
|
904
904
|
return null;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function vt() {
|
|
907
907
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
908
908
|
}
|
|
909
909
|
function Ae(e) {
|
|
@@ -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 ot(e) {
|
|
916
916
|
return j(e) ? {
|
|
917
917
|
scrollLeft: e.scrollLeft,
|
|
918
918
|
scrollTop: e.scrollTop
|
|
@@ -928,22 +928,22 @@ function ve(e) {
|
|
|
928
928
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
929
929
|
e.assignedSlot || // DOM Element detected.
|
|
930
930
|
e.parentNode || // ShadowRoot detected.
|
|
931
|
-
|
|
931
|
+
ft(e) && e.host || // Fallback.
|
|
932
932
|
ie(e)
|
|
933
933
|
);
|
|
934
|
-
return
|
|
934
|
+
return ft(t) ? t.host : t;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function fn(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 : fn(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 = fn(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 Wo(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;
|
|
@@ -957,7 +957,7 @@ function ye(e, t) {
|
|
|
957
957
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
958
958
|
if (e.contains(t))
|
|
959
959
|
return !0;
|
|
960
|
-
if (n &&
|
|
960
|
+
if (n && ft(n)) {
|
|
961
961
|
let o = t;
|
|
962
962
|
for (; o; ) {
|
|
963
963
|
if (e === o)
|
|
@@ -967,23 +967,23 @@ function ye(e, t) {
|
|
|
967
967
|
}
|
|
968
968
|
return !1;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function No() {
|
|
971
971
|
return /apple/i.test(navigator.vendor);
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function Ze(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 jo(e) {
|
|
978
978
|
return "nativeEvent" in e;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ho(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 st(e, t) {
|
|
987
987
|
if (t == null)
|
|
988
988
|
return !1;
|
|
989
989
|
if ("composedPath" in e)
|
|
@@ -994,23 +994,23 @@ function it(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 Vo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
998
|
+
function _o(e) {
|
|
999
|
+
return Z(e) && e.matches(Vo);
|
|
1000
1000
|
}
|
|
1001
|
-
const re = Math.min, Y = Math.max,
|
|
1001
|
+
const re = Math.min, Y = Math.max, Je = Math.round, Xe = Math.floor, ae = (e) => ({
|
|
1002
1002
|
x: e,
|
|
1003
1003
|
y: e
|
|
1004
|
-
}),
|
|
1004
|
+
}), Yo = {
|
|
1005
1005
|
left: "right",
|
|
1006
1006
|
right: "left",
|
|
1007
1007
|
bottom: "top",
|
|
1008
1008
|
top: "bottom"
|
|
1009
|
-
},
|
|
1009
|
+
}, Xo = {
|
|
1010
1010
|
start: "end",
|
|
1011
1011
|
end: "start"
|
|
1012
1012
|
};
|
|
1013
|
-
function
|
|
1013
|
+
function Mt(e, t, n) {
|
|
1014
1014
|
return Y(e, re(t, n));
|
|
1015
1015
|
}
|
|
1016
1016
|
function Le(e, t) {
|
|
@@ -1022,32 +1022,32 @@ function te(e) {
|
|
|
1022
1022
|
function Ye(e) {
|
|
1023
1023
|
return e.split("-")[1];
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function mn(e) {
|
|
1026
1026
|
return e === "x" ? "y" : "x";
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function gn(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 pn(e) {
|
|
1035
|
+
return mn(Fe(e));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function Ko(e, t, n) {
|
|
1038
1038
|
n === void 0 && (n = !1);
|
|
1039
|
-
const o = Ye(e), r =
|
|
1039
|
+
const o = Ye(e), r = pn(e), i = gn(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 = Qe(s)), [s, Qe(s)];
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const t =
|
|
1045
|
-
return [
|
|
1043
|
+
function Go(e) {
|
|
1044
|
+
const t = Qe(e);
|
|
1045
|
+
return [mt(e), t, mt(t)];
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
return e.replace(/start|end/g, (t) =>
|
|
1047
|
+
function mt(e) {
|
|
1048
|
+
return e.replace(/start|end/g, (t) => Xo[t]);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Uo(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 Go(e, t, n) {
|
|
|
1060
1060
|
return [];
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function qo(e, t, n, o) {
|
|
1064
1064
|
const r = Ye(e);
|
|
1065
|
-
let i =
|
|
1066
|
-
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(
|
|
1065
|
+
let i = Uo(te(e), n === "start", o);
|
|
1066
|
+
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(mt)))), i;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1068
|
+
function Qe(e) {
|
|
1069
|
+
return e.replace(/left|right|bottom|top/g, (t) => Yo[t]);
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Zo(e) {
|
|
1072
1072
|
return {
|
|
1073
1073
|
top: 0,
|
|
1074
1074
|
right: 0,
|
|
@@ -1077,8 +1077,8 @@ function qo(e) {
|
|
|
1077
1077
|
...e
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return typeof e != "number" ?
|
|
1080
|
+
function hn(e) {
|
|
1081
|
+
return typeof e != "number" ? Zo(e) : {
|
|
1082
1082
|
top: e,
|
|
1083
1083
|
right: e,
|
|
1084
1084
|
bottom: e,
|
|
@@ -1094,12 +1094,12 @@ function Oe(e) {
|
|
|
1094
1094
|
bottom: e.y + e.height
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function Lt(e, t, n) {
|
|
1098
1098
|
let {
|
|
1099
1099
|
reference: o,
|
|
1100
1100
|
floating: r
|
|
1101
1101
|
} = e;
|
|
1102
|
-
const i = Fe(t), s =
|
|
1102
|
+
const i = Fe(t), s = pn(t), l = gn(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 Jo = async (e, t, n) => {
|
|
1146
1146
|
const {
|
|
1147
1147
|
placement: o = "bottom",
|
|
1148
1148
|
strategy: r = "absolute",
|
|
@@ -1156,7 +1156,7 @@ const Zo = async (e, t, n) => {
|
|
|
1156
1156
|
}), {
|
|
1157
1157
|
x: m,
|
|
1158
1158
|
y: u
|
|
1159
|
-
} =
|
|
1159
|
+
} = Lt(c, o, a), f = o, d = {}, g = 0;
|
|
1160
1160
|
for (let p = 0; p < l.length; p++) {
|
|
1161
1161
|
const {
|
|
1162
1162
|
name: $,
|
|
@@ -1193,7 +1193,7 @@ const Zo = async (e, t, n) => {
|
|
|
1193
1193
|
}) : k.rects), {
|
|
1194
1194
|
x: m,
|
|
1195
1195
|
y: u
|
|
1196
|
-
} =
|
|
1196
|
+
} = Lt(c, f, a)), p = -1);
|
|
1197
1197
|
}
|
|
1198
1198
|
return {
|
|
1199
1199
|
x: m,
|
|
@@ -1203,7 +1203,7 @@ const Zo = async (e, t, n) => {
|
|
|
1203
1203
|
middlewareData: d
|
|
1204
1204
|
};
|
|
1205
1205
|
};
|
|
1206
|
-
async function
|
|
1206
|
+
async function xt(e, t) {
|
|
1207
1207
|
var n;
|
|
1208
1208
|
t === void 0 && (t = {});
|
|
1209
1209
|
const {
|
|
@@ -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 = hn(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 Qo = function(e) {
|
|
1251
1251
|
return e === void 0 && (e = {}), {
|
|
1252
1252
|
name: "flip",
|
|
1253
1253
|
options: e,
|
|
@@ -1271,12 +1271,12 @@ const Jo = 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], E = await
|
|
1274
|
+
const h = te(r), x = te(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Qe(l)] : Go(l));
|
|
1275
|
+
!f && g !== "none" && S.push(...qo(l, p, g, B));
|
|
1276
|
+
const k = [l, ...S], E = await xt(t, $), P = [];
|
|
1277
1277
|
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1278
1278
|
if (m && P.push(E[h]), u) {
|
|
1279
|
-
const M =
|
|
1279
|
+
const M = Ko(r, s, B);
|
|
1280
1280
|
P.push(E[M[0]], E[M[1]]);
|
|
1281
1281
|
}
|
|
1282
1282
|
if (T = [...T, {
|
|
@@ -1319,7 +1319,7 @@ const Jo = function(e) {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
};
|
|
1321
1321
|
};
|
|
1322
|
-
function
|
|
1322
|
+
function bn(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 hn(e) {
|
|
|
1328
1328
|
height: r - n
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function er(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(bn(r)));
|
|
1339
1339
|
}
|
|
1340
|
-
const
|
|
1340
|
+
const tr = function(e) {
|
|
1341
1341
|
return e === void 0 && (e = {}), {
|
|
1342
1342
|
name: "inline",
|
|
1343
1343
|
options: e,
|
|
@@ -1352,7 +1352,7 @@ const er = 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 = er(m), f = Oe(bn(m)), d = hn(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;
|
|
@@ -1399,7 +1399,7 @@ const er = function(e) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
1401
|
};
|
|
1402
|
-
async function
|
|
1402
|
+
async function nr(e, t) {
|
|
1403
1403
|
const {
|
|
1404
1404
|
placement: n,
|
|
1405
1405
|
platform: o,
|
|
@@ -1427,7 +1427,7 @@ async function tr(e, t) {
|
|
|
1427
1427
|
y: d * m
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
const
|
|
1430
|
+
const or = function(e) {
|
|
1431
1431
|
return e === void 0 && (e = 0), {
|
|
1432
1432
|
name: "offset",
|
|
1433
1433
|
options: e,
|
|
@@ -1438,7 +1438,7 @@ const nr = function(e) {
|
|
|
1438
1438
|
y: i,
|
|
1439
1439
|
placement: s,
|
|
1440
1440
|
middlewareData: l
|
|
1441
|
-
} = t, a = await
|
|
1441
|
+
} = t, a = await nr(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 nr = function(e) {
|
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
|
-
},
|
|
1452
|
+
}, rr = function(e) {
|
|
1453
1453
|
return e === void 0 && (e = {}), {
|
|
1454
1454
|
name: "shift",
|
|
1455
1455
|
options: e,
|
|
@@ -1477,15 +1477,15 @@ const nr = function(e) {
|
|
|
1477
1477
|
} = Le(e, t), c = {
|
|
1478
1478
|
x: n,
|
|
1479
1479
|
y: o
|
|
1480
|
-
}, m = await
|
|
1480
|
+
}, m = await xt(t, a), u = Fe(te(r)), f = mn(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];
|
|
1484
|
-
d =
|
|
1484
|
+
d = Mt(x, d, B);
|
|
1485
1485
|
}
|
|
1486
1486
|
if (s) {
|
|
1487
1487
|
const $ = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x = g + m[$], B = g - m[h];
|
|
1488
|
-
g =
|
|
1488
|
+
g = Mt(x, g, B);
|
|
1489
1489
|
}
|
|
1490
1490
|
const p = l.fn({
|
|
1491
1491
|
...t,
|
|
@@ -1501,7 +1501,7 @@ const nr = function(e) {
|
|
|
1501
1501
|
};
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
|
-
},
|
|
1504
|
+
}, ir = function(e) {
|
|
1505
1505
|
return e === void 0 && (e = {}), {
|
|
1506
1506
|
name: "size",
|
|
1507
1507
|
options: e,
|
|
@@ -1515,7 +1515,7 @@ const nr = function(e) {
|
|
|
1515
1515
|
apply: s = () => {
|
|
1516
1516
|
},
|
|
1517
1517
|
...l
|
|
1518
|
-
} = Le(e, t), a = await
|
|
1518
|
+
} = Le(e, t), a = await xt(t, l), c = te(n), m = Ye(n), u = Fe(n) === "y", {
|
|
1519
1519
|
width: f,
|
|
1520
1520
|
height: d
|
|
1521
1521
|
} = o.floating;
|
|
@@ -1548,51 +1548,51 @@ const nr = function(e) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
1550
|
};
|
|
1551
|
-
function
|
|
1551
|
+
function yn(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 = Je(n) !== i || Je(o) !== s;
|
|
1555
1555
|
return l && (n = i, o = s), {
|
|
1556
1556
|
width: n,
|
|
1557
1557
|
height: o,
|
|
1558
1558
|
$: l
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function $t(e) {
|
|
1562
1562
|
return j(e) ? e : e.contextElement;
|
|
1563
1563
|
}
|
|
1564
1564
|
function Pe(e) {
|
|
1565
|
-
const t =
|
|
1565
|
+
const t = $t(e);
|
|
1566
1566
|
if (!Z(t))
|
|
1567
1567
|
return ae(1);
|
|
1568
1568
|
const n = t.getBoundingClientRect(), {
|
|
1569
1569
|
width: o,
|
|
1570
1570
|
height: r,
|
|
1571
1571
|
$: i
|
|
1572
|
-
} =
|
|
1573
|
-
let s = (i ?
|
|
1572
|
+
} = yn(t);
|
|
1573
|
+
let s = (i ? Je(n.width) : n.width) / o, l = (i ? Je(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 sr = /* @__PURE__ */ ae(0);
|
|
1580
|
+
function vn(e) {
|
|
1581
1581
|
const t = q(e);
|
|
1582
|
-
return !
|
|
1582
|
+
return !vt() || !t.visualViewport ? sr : {
|
|
1583
1583
|
x: t.visualViewport.offsetLeft,
|
|
1584
1584
|
y: t.visualViewport.offsetTop
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function lr(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) {
|
|
1591
1591
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1592
|
-
const r = e.getBoundingClientRect(), i =
|
|
1592
|
+
const r = e.getBoundingClientRect(), i = $t(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 = lr(i, n, o) ? vn(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 ar = [":popover-open", ":modal"];
|
|
1613
|
+
function xn(e) {
|
|
1614
|
+
return ar.some((t) => {
|
|
1615
1615
|
try {
|
|
1616
1616
|
return e.matches(t);
|
|
1617
1617
|
} catch {
|
|
@@ -1619,14 +1619,14 @@ function vn(e) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function cr(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 ? xn(t.floating) : !1;
|
|
1630
1630
|
if (o === s || l && i)
|
|
1631
1631
|
return n;
|
|
1632
1632
|
let a = {
|
|
@@ -1634,7 +1634,7 @@ function ar(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 = ot(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 ar(e) {
|
|
|
1645
1645
|
y: n.y * c.y - a.scrollTop * c.y + m.y
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function ur(e) {
|
|
1649
1649
|
return Array.from(e.getClientRects());
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return xe(ie(e)).left +
|
|
1651
|
+
function $n(e) {
|
|
1652
|
+
return xe(ie(e)).left + ot(e).scrollLeft;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const t = ie(e), n =
|
|
1656
|
-
let s = -n.scrollLeft +
|
|
1654
|
+
function dr(e) {
|
|
1655
|
+
const t = ie(e), n = ot(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 + $n(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,12 +1662,12 @@ function ur(e) {
|
|
|
1662
1662
|
y: l
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function fr(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) {
|
|
1669
1669
|
i = r.width, s = r.height;
|
|
1670
|
-
const c =
|
|
1670
|
+
const c = vt();
|
|
1671
1671
|
(!c || c && t === "fixed") && (l = r.offsetLeft, a = r.offsetTop);
|
|
1672
1672
|
}
|
|
1673
1673
|
return {
|
|
@@ -1677,7 +1677,7 @@ function dr(e, t) {
|
|
|
1677
1677
|
y: a
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function mr(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,
|
|
@@ -1686,16 +1686,16 @@ function fr(e, t) {
|
|
|
1686
1686
|
y: c
|
|
1687
1687
|
};
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function Ft(e, t, n) {
|
|
1690
1690
|
let o;
|
|
1691
1691
|
if (t === "viewport")
|
|
1692
|
-
o =
|
|
1692
|
+
o = fr(e, n);
|
|
1693
1693
|
else if (t === "document")
|
|
1694
|
-
o =
|
|
1694
|
+
o = dr(ie(e));
|
|
1695
1695
|
else if (j(t))
|
|
1696
|
-
o =
|
|
1696
|
+
o = mr(t, n);
|
|
1697
1697
|
else {
|
|
1698
|
-
const r =
|
|
1698
|
+
const r = vn(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 wn(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" || wn(n, t);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function gr(e, t) {
|
|
1712
1712
|
const n = t.get(e);
|
|
1713
1713
|
if (n)
|
|
1714
1714
|
return n;
|
|
@@ -1716,22 +1716,22 @@ function mr(e, t) {
|
|
|
1716
1716
|
const i = J(e).position === "fixed";
|
|
1717
1717
|
let s = i ? ve(e) : e;
|
|
1718
1718
|
for (; j(s) && !Ae(s); ) {
|
|
1719
|
-
const l = J(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 &&
|
|
1719
|
+
const l = J(s), a = yt(s);
|
|
1720
|
+
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || _e(s) && !a && wn(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 pr(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" ?
|
|
1732
|
-
const u =
|
|
1731
|
+
const s = [...n === "clippingAncestors" ? gr(t, this._c) : [].concat(n), o], l = s[0], a = s.reduce((c, m) => {
|
|
1732
|
+
const u = Ft(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
|
+
}, Ft(t, l, r));
|
|
1735
1735
|
return {
|
|
1736
1736
|
width: a.right - a.left,
|
|
1737
1737
|
height: a.bottom - a.top,
|
|
@@ -1739,17 +1739,17 @@ function gr(e) {
|
|
|
1739
1739
|
y: a.top
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function hr(e) {
|
|
1743
1743
|
const {
|
|
1744
1744
|
width: t,
|
|
1745
1745
|
height: n
|
|
1746
|
-
} =
|
|
1746
|
+
} = yn(e);
|
|
1747
1747
|
return {
|
|
1748
1748
|
width: t,
|
|
1749
1749
|
height: n
|
|
1750
1750
|
};
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function br(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 hr(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 = ot(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 = $n(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,
|
|
@@ -1770,22 +1770,22 @@ function hr(e, t, n) {
|
|
|
1770
1770
|
height: s.height
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function zt(e, t) {
|
|
1774
1774
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function Sn(e, t) {
|
|
1777
1777
|
const n = q(e);
|
|
1778
|
-
if (!Z(e) ||
|
|
1778
|
+
if (!Z(e) || xn(e))
|
|
1779
1779
|
return n;
|
|
1780
|
-
let o =
|
|
1781
|
-
for (; o &&
|
|
1782
|
-
o =
|
|
1783
|
-
return o && (le(o) === "html" || le(o) === "body" && J(o).position === "static" && !
|
|
1780
|
+
let o = zt(e, t);
|
|
1781
|
+
for (; o && Fo(o) && J(o).position === "static"; )
|
|
1782
|
+
o = zt(o, t);
|
|
1783
|
+
return o && (le(o) === "html" || le(o) === "body" && J(o).position === "static" && !yt(o)) ? n : o || zo(e) || n;
|
|
1784
1784
|
}
|
|
1785
|
-
const
|
|
1786
|
-
const t = this.getOffsetParent ||
|
|
1785
|
+
const yr = async function(e) {
|
|
1786
|
+
const t = this.getOffsetParent || Sn, n = this.getDimensions;
|
|
1787
1787
|
return {
|
|
1788
|
-
reference:
|
|
1788
|
+
reference: br(e.reference, await t(e.floating), e.strategy),
|
|
1789
1789
|
floating: {
|
|
1790
1790
|
x: 0,
|
|
1791
1791
|
y: 0,
|
|
@@ -1793,22 +1793,22 @@ const br = async function(e) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
};
|
|
1796
|
-
function
|
|
1796
|
+
function vr(e) {
|
|
1797
1797
|
return J(e).direction === "rtl";
|
|
1798
1798
|
}
|
|
1799
|
-
const
|
|
1800
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1799
|
+
const xr = {
|
|
1800
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: cr,
|
|
1801
1801
|
getDocumentElement: ie,
|
|
1802
|
-
getClippingRect:
|
|
1803
|
-
getOffsetParent:
|
|
1804
|
-
getElementRects:
|
|
1805
|
-
getClientRects:
|
|
1806
|
-
getDimensions:
|
|
1802
|
+
getClippingRect: pr,
|
|
1803
|
+
getOffsetParent: Sn,
|
|
1804
|
+
getElementRects: yr,
|
|
1805
|
+
getClientRects: ur,
|
|
1806
|
+
getDimensions: hr,
|
|
1807
1807
|
getScale: Pe,
|
|
1808
1808
|
isElement: j,
|
|
1809
|
-
isRTL:
|
|
1809
|
+
isRTL: vr
|
|
1810
1810
|
};
|
|
1811
|
-
function
|
|
1811
|
+
function $r(e, t) {
|
|
1812
1812
|
let n = null, o;
|
|
1813
1813
|
const r = ie(e);
|
|
1814
1814
|
function i() {
|
|
@@ -1854,7 +1854,7 @@ function xr(e, t) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
return s(!0), i;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function wr(e, t, n, o) {
|
|
1858
1858
|
o === void 0 && (o = {});
|
|
1859
1859
|
const {
|
|
1860
1860
|
ancestorScroll: r = !0,
|
|
@@ -1862,13 +1862,13 @@ function $r(e, t, n, o) {
|
|
|
1862
1862
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1863
1863
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1864
1864
|
animationFrame: a = !1
|
|
1865
|
-
} = o, c =
|
|
1865
|
+
} = o, c = $t(e), m = r || i ? [...c ? se(c) : [], ...se(t)] : [];
|
|
1866
1866
|
m.forEach((h) => {
|
|
1867
1867
|
r && h.addEventListener("scroll", n, {
|
|
1868
1868
|
passive: !0
|
|
1869
1869
|
}), i && h.addEventListener("resize", n);
|
|
1870
1870
|
});
|
|
1871
|
-
const u = c && l ?
|
|
1871
|
+
const u = c && l ? $r(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 $r(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 Sr = rr, Rr = Qo, Ki = ir, Gi = tr, Cr = (e, t, n) => {
|
|
1894
1894
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1895
|
-
platform:
|
|
1895
|
+
platform: xr,
|
|
1896
1896
|
...n
|
|
1897
1897
|
}, i = {
|
|
1898
1898
|
...r.platform,
|
|
1899
1899
|
_c: o
|
|
1900
1900
|
};
|
|
1901
|
-
return
|
|
1901
|
+
return Jo(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" ? nn : on;
|
|
1907
|
+
function et(e, t) {
|
|
1908
1908
|
if (e === t)
|
|
1909
1909
|
return !0;
|
|
1910
1910
|
if (typeof e != typeof t)
|
|
@@ -1917,7 +1917,7 @@ function Qe(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 (!et(e[o], t[o]))
|
|
1921
1921
|
return !1;
|
|
1922
1922
|
return !0;
|
|
1923
1923
|
}
|
|
@@ -1928,27 +1928,27 @@ function Qe(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) && !et(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 Rn(e) {
|
|
1939
1939
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1942
|
-
const n =
|
|
1941
|
+
function Wt(e, t) {
|
|
1942
|
+
const n = Rn(e);
|
|
1943
1943
|
return Math.round(t * n) / n;
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Nt(e) {
|
|
1946
1946
|
const t = y.useRef(e);
|
|
1947
1947
|
return Ke(() => {
|
|
1948
1948
|
t.current = e;
|
|
1949
1949
|
}), t;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Er(e) {
|
|
1952
1952
|
e === void 0 && (e = {});
|
|
1953
1953
|
const {
|
|
1954
1954
|
placement: t = "bottom",
|
|
@@ -1970,12 +1970,12 @@ function Cr(e) {
|
|
|
1970
1970
|
middlewareData: {},
|
|
1971
1971
|
isPositioned: !1
|
|
1972
1972
|
}), [f, d] = y.useState(o);
|
|
1973
|
-
|
|
1973
|
+
et(f, o) || d(o);
|
|
1974
1974
|
const [g, p] = y.useState(null), [$, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1975
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 || $, E = y.useRef(null), P = y.useRef(null), T = y.useRef(m), D = a != null, A =
|
|
1978
|
+
}, []), S = i || g, k = s || $, E = y.useRef(null), P = y.useRef(null), T = y.useRef(m), D = a != null, A = Nt(a), F = Nt(r), M = y.useCallback(() => {
|
|
1979
1979
|
if (!E.current || !P.current)
|
|
1980
1980
|
return;
|
|
1981
1981
|
const R = {
|
|
@@ -1983,12 +1983,12 @@ function Cr(e) {
|
|
|
1983
1983
|
strategy: n,
|
|
1984
1984
|
middleware: f
|
|
1985
1985
|
};
|
|
1986
|
-
F.current && (R.platform = F.current),
|
|
1986
|
+
F.current && (R.platform = F.current), Cr(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 && !et(T.current, z) && (T.current = z, Nn.flushSync(() => {
|
|
1992
1992
|
u(z);
|
|
1993
1993
|
}));
|
|
1994
1994
|
});
|
|
@@ -2025,11 +2025,11 @@ function Cr(e) {
|
|
|
2025
2025
|
};
|
|
2026
2026
|
if (!v.floating)
|
|
2027
2027
|
return R;
|
|
2028
|
-
const w =
|
|
2028
|
+
const w = Wt(v.floating, m.x), z = Wt(v.floating, m.y);
|
|
2029
2029
|
return l ? {
|
|
2030
2030
|
...R,
|
|
2031
2031
|
transform: "translate(" + w + "px, " + z + "px)",
|
|
2032
|
-
...
|
|
2032
|
+
...Rn(v.floating) >= 1.5 && {
|
|
2033
2033
|
willChange: "transform"
|
|
2034
2034
|
}
|
|
2035
2035
|
} : {
|
|
@@ -2050,29 +2050,29 @@ function Cr(e) {
|
|
|
2050
2050
|
* tabbable 6.2.0
|
|
2051
2051
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2052
2052
|
*/
|
|
2053
|
-
var
|
|
2054
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
2053
|
+
var kr = ["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])"], gt = /* @__PURE__ */ kr.join(","), Cn = typeof Element > "u", je = Cn ? function() {
|
|
2054
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, tt = !Cn && 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
|
+
}, nt = 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
|
+
}, Tr = 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
|
+
}, Ir = function(t, n, o) {
|
|
2068
|
+
if (nt(t))
|
|
2069
2069
|
return [];
|
|
2070
|
-
var r = Array.prototype.slice.apply(t.querySelectorAll(
|
|
2071
|
-
return n && je.call(t,
|
|
2072
|
-
},
|
|
2070
|
+
var r = Array.prototype.slice.apply(t.querySelectorAll(gt));
|
|
2071
|
+
return n && je.call(t, gt) && r.unshift(t), r = r.filter(o), r;
|
|
2072
|
+
}, Br = 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 (!nt(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({
|
|
@@ -2080,10 +2080,10 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2080
2080
|
candidates: c
|
|
2081
2081
|
});
|
|
2082
2082
|
} else {
|
|
2083
|
-
var m = je.call(s,
|
|
2083
|
+
var m = je.call(s, gt);
|
|
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 = !nt(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
|
-
}, Cn = function(t) {
|
|
2099
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2100
2098
|
}, En = function(t) {
|
|
2099
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2100
|
+
}, kn = 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
|
-
}, Br = function(t, n) {
|
|
2105
|
-
var o = En(t);
|
|
2106
|
-
return o < 0 && n && !Cn(t) ? 0 : o;
|
|
2103
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Tr(t)) && !En(t) ? 0 : t.tabIndex;
|
|
2107
2104
|
}, Pr = function(t, n) {
|
|
2105
|
+
var o = kn(t);
|
|
2106
|
+
return o < 0 && n && !En(t) ? 0 : o;
|
|
2107
|
+
}, Ar = function(t, n) {
|
|
2108
2108
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2109
|
-
},
|
|
2109
|
+
}, Tn = function(t) {
|
|
2110
2110
|
return t.tagName === "INPUT";
|
|
2111
|
-
}, Ar = function(t) {
|
|
2112
|
-
return kn(t) && t.type === "hidden";
|
|
2113
2111
|
}, Or = function(t) {
|
|
2112
|
+
return Tn(t) && t.type === "hidden";
|
|
2113
|
+
}, Dr = 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
|
+
}, Mr = 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
|
+
}, Lr = function(t) {
|
|
2123
2123
|
if (!t.name)
|
|
2124
2124
|
return !0;
|
|
2125
|
-
var n = t.form ||
|
|
2125
|
+
var n = t.form || tt(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 = Mr(r, t.form);
|
|
2137
2137
|
return !i || i === t;
|
|
2138
|
-
}, Lr = function(t) {
|
|
2139
|
-
return kn(t) && t.type === "radio";
|
|
2140
2138
|
}, Fr = function(t) {
|
|
2141
|
-
return
|
|
2139
|
+
return Tn(t) && t.type === "radio";
|
|
2142
2140
|
}, zr = function(t) {
|
|
2143
|
-
|
|
2141
|
+
return Fr(t) && !Lr(t);
|
|
2142
|
+
}, Wr = function(t) {
|
|
2143
|
+
var n, o = t && tt(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 = tt(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
|
+
}, jt = function(t) {
|
|
2153
2153
|
var n = t.getBoundingClientRect(), o = n.width, r = n.height;
|
|
2154
2154
|
return o === 0 && r === 0;
|
|
2155
|
-
},
|
|
2155
|
+
}, Nr = 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 = tt(t);
|
|
2166
2166
|
if (a && !a.shadowRoot && r(a) === !0)
|
|
2167
|
-
return
|
|
2167
|
+
return jt(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 (Wr(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
|
-
return
|
|
2177
|
+
return jt(t);
|
|
2178
2178
|
return !1;
|
|
2179
|
-
},
|
|
2179
|
+
}, jr = 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
|
+
}, Hr = 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
|
-
|
|
2199
|
-
},
|
|
2200
|
-
return !(
|
|
2201
|
-
},
|
|
2197
|
+
nt(n) || Or(n) || Nr(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2198
|
+
Dr(n) || jr(n));
|
|
2199
|
+
}, Ht = function(t, n) {
|
|
2200
|
+
return !(zr(n) || kn(n) < 0 || !Hr(t, n));
|
|
2201
|
+
}, Vr = function(t) {
|
|
2202
2202
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2203
2203
|
return !!(isNaN(n) || n >= 0);
|
|
2204
|
-
},
|
|
2204
|
+
}, _r = 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 = Pr(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(Ar).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
|
+
}, In = function(t, n) {
|
|
2219
2219
|
n = n || {};
|
|
2220
2220
|
var o;
|
|
2221
|
-
return n.getShadowRoot ? o =
|
|
2222
|
-
filter:
|
|
2221
|
+
return n.getShadowRoot ? o = Br([t], n.includeContainer, {
|
|
2222
|
+
filter: Ht.bind(null, n),
|
|
2223
2223
|
flatten: !1,
|
|
2224
2224
|
getShadowRoot: n.getShadowRoot,
|
|
2225
|
-
shadowRootFilter:
|
|
2226
|
-
}) : o =
|
|
2225
|
+
shadowRootFilter: Vr
|
|
2226
|
+
}) : o = Ir(t, n.includeContainer, Ht.bind(null, n)), _r(o);
|
|
2227
2227
|
};
|
|
2228
|
-
const
|
|
2228
|
+
const Yr = y[/* @__PURE__ */ "useInsertionEffect".toString()], Xr = Yr || ((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 Xr(() => {
|
|
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,29 +2239,29 @@ function Te(e) {
|
|
|
2239
2239
|
return t.current == null ? void 0 : t.current(...o);
|
|
2240
2240
|
}, []);
|
|
2241
2241
|
}
|
|
2242
|
-
var Q = typeof document < "u" ?
|
|
2243
|
-
function
|
|
2244
|
-
return
|
|
2242
|
+
var Q = typeof document < "u" ? nn : on;
|
|
2243
|
+
function pt() {
|
|
2244
|
+
return pt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2245
2245
|
for (var t = 1; t < arguments.length; t++) {
|
|
2246
2246
|
var n = arguments[t];
|
|
2247
2247
|
for (var o in n)
|
|
2248
2248
|
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
2249
2249
|
}
|
|
2250
2250
|
return e;
|
|
2251
|
-
},
|
|
2251
|
+
}, pt.apply(this, arguments);
|
|
2252
2252
|
}
|
|
2253
|
-
let
|
|
2254
|
-
const
|
|
2255
|
-
function
|
|
2256
|
-
const [e, t] = y.useState(() =>
|
|
2253
|
+
let lt = !1, Kr = 0;
|
|
2254
|
+
const Vt = () => "floating-ui-" + Kr++;
|
|
2255
|
+
function Gr() {
|
|
2256
|
+
const [e, t] = y.useState(() => lt ? Vt() : void 0);
|
|
2257
2257
|
return Q(() => {
|
|
2258
|
-
e == null && t(
|
|
2258
|
+
e == null && t(Vt());
|
|
2259
2259
|
}, []), y.useEffect(() => {
|
|
2260
|
-
|
|
2260
|
+
lt || (lt = !0);
|
|
2261
2261
|
}, []), e;
|
|
2262
2262
|
}
|
|
2263
|
-
const
|
|
2264
|
-
function
|
|
2263
|
+
const Ur = y[/* @__PURE__ */ "useId".toString()], wt = Ur || Gr;
|
|
2264
|
+
function qr() {
|
|
2265
2265
|
const e = /* @__PURE__ */ new Map();
|
|
2266
2266
|
return {
|
|
2267
2267
|
emit(t, n) {
|
|
@@ -2277,24 +2277,24 @@ function Ur() {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
};
|
|
2279
2279
|
}
|
|
2280
|
-
const
|
|
2280
|
+
const Zr = /* @__PURE__ */ y.createContext(null), Jr = /* @__PURE__ */ y.createContext(null), St = () => {
|
|
2281
2281
|
var e;
|
|
2282
|
-
return ((e = y.useContext(
|
|
2283
|
-
},
|
|
2284
|
-
function
|
|
2282
|
+
return ((e = y.useContext(Zr)) == null ? void 0 : e.id) || null;
|
|
2283
|
+
}, Rt = () => y.useContext(Jr);
|
|
2284
|
+
function rt(e) {
|
|
2285
2285
|
return "data-floating-ui-" + e;
|
|
2286
2286
|
}
|
|
2287
2287
|
function Be(e) {
|
|
2288
|
-
const t =
|
|
2288
|
+
const t = Ln(e);
|
|
2289
2289
|
return Q(() => {
|
|
2290
2290
|
t.current = e;
|
|
2291
2291
|
}), t;
|
|
2292
2292
|
}
|
|
2293
|
-
const
|
|
2294
|
-
function
|
|
2295
|
-
return n && !
|
|
2293
|
+
const _t = /* @__PURE__ */ rt("safe-polygon");
|
|
2294
|
+
function at(e, t, n) {
|
|
2295
|
+
return n && !Ze(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function Qr(e, t) {
|
|
2298
2298
|
t === void 0 && (t = {});
|
|
2299
2299
|
const {
|
|
2300
2300
|
open: n,
|
|
@@ -2313,7 +2313,7 @@ function Jr(e, t) {
|
|
|
2313
2313
|
mouseOnly: f = !1,
|
|
2314
2314
|
restMs: d = 0,
|
|
2315
2315
|
move: g = !0
|
|
2316
|
-
} = t, p =
|
|
2316
|
+
} = t, p = Rt(), $ = St(), 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;
|
|
@@ -2344,14 +2344,14 @@ function Jr(e, t) {
|
|
|
2344
2344
|
}, [l, n, o, c, h, A]);
|
|
2345
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 = at(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;
|
|
2351
2351
|
}, []), O = y.useCallback(() => {
|
|
2352
2352
|
if (T.current) {
|
|
2353
2353
|
const b = pe(a.floating.current).body;
|
|
2354
|
-
b.style.pointerEvents = "", b.removeAttribute(
|
|
2354
|
+
b.style.pointerEvents = "", b.removeAttribute(_t), T.current = !1;
|
|
2355
2355
|
}
|
|
2356
2356
|
}, [a]);
|
|
2357
2357
|
return y.useEffect(() => {
|
|
@@ -2361,9 +2361,9 @@ function Jr(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 && !Ze(B.current) || d > 0 && at(x.current, "open") === 0)
|
|
2365
2365
|
return;
|
|
2366
|
-
const z =
|
|
2366
|
+
const z = at(x.current, "open", B.current);
|
|
2367
2367
|
z ? S.current = setTimeout(() => {
|
|
2368
2368
|
o(!0, w, "hover");
|
|
2369
2369
|
}, z) : o(!0, w, "hover");
|
|
@@ -2414,7 +2414,7 @@ function Jr(e, t) {
|
|
|
2414
2414
|
var b;
|
|
2415
2415
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && A()) {
|
|
2416
2416
|
const I = pe(l).body;
|
|
2417
|
-
if (I.setAttribute(
|
|
2417
|
+
if (I.setAttribute(_t, ""), I.style.pointerEvents = "none", T.current = !0, j(s) && l) {
|
|
2418
2418
|
var v;
|
|
2419
2419
|
const R = s, w = p == null || (v = p.nodesRef.current.find((z) => z.id === $)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2420
2420
|
return w && (w.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
@@ -2468,7 +2468,7 @@ function Ge(e, t) {
|
|
|
2468
2468
|
}), n = n.concat(o);
|
|
2469
2469
|
return n;
|
|
2470
2470
|
}
|
|
2471
|
-
const
|
|
2471
|
+
const Bn = () => ({
|
|
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 In = () => ({
|
|
|
2477
2477
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2478
2478
|
)
|
|
2479
2479
|
});
|
|
2480
|
-
function
|
|
2481
|
-
const n =
|
|
2480
|
+
function Pn(e, t) {
|
|
2481
|
+
const n = In(e, Bn());
|
|
2482
2482
|
t === "prev" && n.reverse();
|
|
2483
|
-
const o = n.indexOf(
|
|
2483
|
+
const o = n.indexOf(Wo(pe(e)));
|
|
2484
2484
|
return n.slice(o + 1)[0];
|
|
2485
2485
|
}
|
|
2486
|
-
function Qr() {
|
|
2487
|
-
return Bn(document.body, "next");
|
|
2488
|
-
}
|
|
2489
2486
|
function ei() {
|
|
2490
|
-
return
|
|
2487
|
+
return Pn(document.body, "next");
|
|
2491
2488
|
}
|
|
2492
|
-
function
|
|
2489
|
+
function ti() {
|
|
2490
|
+
return Pn(document.body, "prev");
|
|
2491
|
+
}
|
|
2492
|
+
function ct(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 ni(e) {
|
|
2497
|
+
In(e, Bn()).forEach((n) => {
|
|
2498
2498
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2499
2499
|
});
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2501
|
+
function oi(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 An = {
|
|
2508
2508
|
border: 0,
|
|
2509
2509
|
clip: "rect(0 0 0 0)",
|
|
2510
2510
|
height: "1px",
|
|
@@ -2517,14 +2517,14 @@ const Pn = {
|
|
|
2517
2517
|
top: 0,
|
|
2518
2518
|
left: 0
|
|
2519
2519
|
};
|
|
2520
|
-
let
|
|
2521
|
-
function
|
|
2522
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2520
|
+
let ri;
|
|
2521
|
+
function Yt(e) {
|
|
2522
|
+
e.key === "Tab" && (e.target, clearTimeout(ri));
|
|
2523
2523
|
}
|
|
2524
|
-
const
|
|
2524
|
+
const Xt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2525
2525
|
const [o, r] = y.useState();
|
|
2526
|
-
Q(() => (
|
|
2527
|
-
document.removeEventListener("keydown",
|
|
2526
|
+
Q(() => (No() && r("button"), document.addEventListener("keydown", Yt), () => {
|
|
2527
|
+
document.removeEventListener("keydown", Yt);
|
|
2528
2528
|
}), []);
|
|
2529
2529
|
const i = {
|
|
2530
2530
|
ref: n,
|
|
@@ -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
|
+
[rt("focus-guard")]: "",
|
|
2536
|
+
style: An
|
|
2537
2537
|
};
|
|
2538
|
-
return /* @__PURE__ */ y.createElement("span",
|
|
2539
|
-
}),
|
|
2540
|
-
function
|
|
2538
|
+
return /* @__PURE__ */ y.createElement("span", pt({}, t, i));
|
|
2539
|
+
}), On = /* @__PURE__ */ y.createContext(null), Kt = /* @__PURE__ */ rt("portal");
|
|
2540
|
+
function ii(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 =
|
|
2545
|
+
const [o, r] = y.useState(null), i = wt(), s = li(), l = y.useRef(null);
|
|
2546
2546
|
return Q(() => () => {
|
|
2547
2547
|
o == null || o.remove(), queueMicrotask(() => {
|
|
2548
2548
|
l.current = null;
|
|
@@ -2554,7 +2554,7 @@ function ri(e) {
|
|
|
2554
2554
|
if (!a)
|
|
2555
2555
|
return;
|
|
2556
2556
|
const c = document.createElement("div");
|
|
2557
|
-
c.id = i, c.setAttribute(
|
|
2557
|
+
c.id = i, c.setAttribute(Kt, ""), a.appendChild(c), l.current = c, r(c);
|
|
2558
2558
|
}, [t, i]), Q(() => {
|
|
2559
2559
|
if (l.current)
|
|
2560
2560
|
return;
|
|
@@ -2563,17 +2563,17 @@ function ri(e) {
|
|
|
2563
2563
|
let c = null;
|
|
2564
2564
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2565
2565
|
const m = document.createElement("div");
|
|
2566
|
-
m.id = i, m.setAttribute(
|
|
2566
|
+
m.id = i, m.setAttribute(Kt, ""), a = c || a, a.appendChild(m), l.current = m, r(m);
|
|
2567
2567
|
}, [t, n, i, s]), o;
|
|
2568
2568
|
}
|
|
2569
|
-
function
|
|
2569
|
+
function si(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 = ii({
|
|
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 ii(e) {
|
|
|
2587
2587
|
if (!i || !r || s != null && s.modal)
|
|
2588
2588
|
return;
|
|
2589
2589
|
function d(g) {
|
|
2590
|
-
i &&
|
|
2590
|
+
i && ct(g) && (g.type === "focusin" ? oi : ni)(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(On.Provider, {
|
|
2596
2596
|
value: y.useMemo(() => ({
|
|
2597
2597
|
preserveTabOrder: r,
|
|
2598
2598
|
beforeOutsideRef: a,
|
|
@@ -2602,43 +2602,43 @@ function ii(e) {
|
|
|
2602
2602
|
portalNode: i,
|
|
2603
2603
|
setFocusManagerState: l
|
|
2604
2604
|
}), [r, i])
|
|
2605
|
-
}, f && i && /* @__PURE__ */ y.createElement(
|
|
2605
|
+
}, f && i && /* @__PURE__ */ y.createElement(Xt, {
|
|
2606
2606
|
"data-type": "outside",
|
|
2607
2607
|
ref: a,
|
|
2608
2608
|
onFocus: (d) => {
|
|
2609
|
-
if (
|
|
2609
|
+
if (ct(d, i)) {
|
|
2610
2610
|
var g;
|
|
2611
2611
|
(g = m.current) == null || g.focus();
|
|
2612
2612
|
} else {
|
|
2613
|
-
const p =
|
|
2613
|
+
const p = ti() || (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: An
|
|
2620
|
+
}), i && /* @__PURE__ */ jn(t, i), f && i && /* @__PURE__ */ y.createElement(Xt, {
|
|
2621
2621
|
"data-type": "outside",
|
|
2622
2622
|
ref: c,
|
|
2623
2623
|
onFocus: (d) => {
|
|
2624
|
-
if (
|
|
2624
|
+
if (ct(d, i)) {
|
|
2625
2625
|
var g;
|
|
2626
2626
|
(g = u.current) == null || g.focus();
|
|
2627
2627
|
} else {
|
|
2628
|
-
const p =
|
|
2628
|
+
const p = ei() || (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
|
|
2635
|
-
function
|
|
2634
|
+
const li = () => y.useContext(On);
|
|
2635
|
+
function Gt(e) {
|
|
2636
2636
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2639
|
-
return
|
|
2638
|
+
function Ut(e) {
|
|
2639
|
+
return _o(e);
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2641
|
+
function ai(e, t) {
|
|
2642
2642
|
t === void 0 && (t = {});
|
|
2643
2643
|
const {
|
|
2644
2644
|
open: n,
|
|
@@ -2660,40 +2660,40 @@ function li(e, t) {
|
|
|
2660
2660
|
u.current = d.pointerType;
|
|
2661
2661
|
},
|
|
2662
2662
|
onMouseDown(d) {
|
|
2663
|
-
d.button === 0 && (
|
|
2663
|
+
d.button === 0 && (Ze(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
|
+
Ze(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
|
-
u.current = void 0, !(d.defaultPrevented || !m ||
|
|
2673
|
+
u.current = void 0, !(d.defaultPrevented || !m || Gt(d)) && (d.key === " " && !Ut(i) && (d.preventDefault(), f.current = !0), d.key === "Enter" && o(!(n && a), d.nativeEvent, "click"));
|
|
2674
2674
|
},
|
|
2675
2675
|
onKeyUp(d) {
|
|
2676
|
-
d.defaultPrevented || !m ||
|
|
2676
|
+
d.defaultPrevented || !m || Gt(d) || Ut(i) || d.key === " " && f.current && (f.current = !1, o(!(n && a), d.nativeEvent, "click"));
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
} : {}, [s, r, l, c, m, i, a, n, o]);
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2681
|
+
const ci = {
|
|
2682
2682
|
pointerdown: "onPointerDown",
|
|
2683
2683
|
mousedown: "onMouseDown",
|
|
2684
2684
|
click: "onClick"
|
|
2685
|
-
},
|
|
2685
|
+
}, ui = {
|
|
2686
2686
|
pointerdown: "onPointerDownCapture",
|
|
2687
2687
|
mousedown: "onMouseDownCapture",
|
|
2688
2688
|
click: "onClickCapture"
|
|
2689
|
-
},
|
|
2689
|
+
}, qt = (e) => {
|
|
2690
2690
|
var t, n;
|
|
2691
2691
|
return {
|
|
2692
2692
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
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 di(e, t) {
|
|
2697
2697
|
t === void 0 && (t = {});
|
|
2698
2698
|
const {
|
|
2699
2699
|
open: n,
|
|
@@ -2715,13 +2715,13 @@ function ui(e, t) {
|
|
|
2715
2715
|
ancestorScroll: p = !1,
|
|
2716
2716
|
bubbles: $,
|
|
2717
2717
|
capture: h
|
|
2718
|
-
} = t, x =
|
|
2718
|
+
} = t, x = Rt(), 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
|
+
} = qt($), {
|
|
2722
2722
|
escapeKey: D,
|
|
2723
2723
|
outsidePress: A
|
|
2724
|
-
} =
|
|
2724
|
+
} = qt(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,7 +2736,7 @@ function ui(e, t) {
|
|
|
2736
2736
|
}), !R)
|
|
2737
2737
|
return;
|
|
2738
2738
|
}
|
|
2739
|
-
o(!1,
|
|
2739
|
+
o(!1, jo(v) ? v.nativeEvent : v, "escape-key");
|
|
2740
2740
|
}), M = Te((v) => {
|
|
2741
2741
|
var I;
|
|
2742
2742
|
const R = () => {
|
|
@@ -2750,7 +2750,7 @@ function ui(e, t) {
|
|
|
2750
2750
|
const R = E.current;
|
|
2751
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 = "[" + rt("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 ui(e, t) {
|
|
|
2758
2758
|
break;
|
|
2759
2759
|
U = V;
|
|
2760
2760
|
}
|
|
2761
|
-
if (K.length && j(w) && !
|
|
2761
|
+
if (K.length && j(w) && !Ho(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 ui(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
const we = x && Ge(x.nodesRef.current, r).some((V) => {
|
|
2773
2773
|
var G;
|
|
2774
|
-
return
|
|
2774
|
+
return st(v, (G = V.context) == null ? void 0 : G.elements.floating);
|
|
2775
2775
|
});
|
|
2776
|
-
if (
|
|
2776
|
+
if (st(v, l) || st(v, s) || we)
|
|
2777
2777
|
return;
|
|
2778
2778
|
const ce = x ? Ge(x.nodesRef.current, r) : [];
|
|
2779
2779
|
if (ce.length > 0) {
|
|
@@ -2823,7 +2823,7 @@ function ui(e, t) {
|
|
|
2823
2823
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2824
2824
|
reference: {
|
|
2825
2825
|
onKeyDown: F,
|
|
2826
|
-
[
|
|
2826
|
+
[ci[g]]: (v) => {
|
|
2827
2827
|
d && o(!1, v.nativeEvent, "reference-press");
|
|
2828
2828
|
}
|
|
2829
2829
|
},
|
|
@@ -2835,15 +2835,15 @@ function ui(e, t) {
|
|
|
2835
2835
|
onMouseUp() {
|
|
2836
2836
|
E.current = !0;
|
|
2837
2837
|
},
|
|
2838
|
-
[
|
|
2838
|
+
[ui[f]]: () => {
|
|
2839
2839
|
k.current = !0;
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
2842
|
} : {}, [c, d, f, g, o, F]);
|
|
2843
2843
|
}
|
|
2844
|
-
let
|
|
2845
|
-
process.env.NODE_ENV !== "production" && (
|
|
2846
|
-
function
|
|
2844
|
+
let ht;
|
|
2845
|
+
process.env.NODE_ENV !== "production" && (ht = /* @__PURE__ */ new Set());
|
|
2846
|
+
function fi(e) {
|
|
2847
2847
|
var t;
|
|
2848
2848
|
e === void 0 && (e = {});
|
|
2849
2849
|
const {
|
|
@@ -2856,20 +2856,20 @@ function di(e) {
|
|
|
2856
2856
|
const T = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
2857
2857
|
if ((i = e.elements) != null && i.reference && !j(e.elements.reference)) {
|
|
2858
2858
|
var s;
|
|
2859
|
-
if (!((s =
|
|
2859
|
+
if (!((s = ht) != null && s.has(T))) {
|
|
2860
2860
|
var l;
|
|
2861
|
-
(l =
|
|
2861
|
+
(l = ht) == null || l.add(T), console.error(T);
|
|
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 = Er(e), f = Rt(), d = St() != 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(() => qr())[0], x = wt(), B = y.useCallback((T) => {
|
|
2873
2873
|
const D = j(T) ? {
|
|
2874
2874
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2875
2875
|
contextElement: T
|
|
@@ -2909,14 +2909,14 @@ function di(e) {
|
|
|
2909
2909
|
elements: E
|
|
2910
2910
|
}), [u, k, E, P]);
|
|
2911
2911
|
}
|
|
2912
|
-
const
|
|
2913
|
-
function
|
|
2912
|
+
const Zt = "active", Jt = "selected";
|
|
2913
|
+
function ut(e, t, n) {
|
|
2914
2914
|
const o = /* @__PURE__ */ new Map(), r = n === "item";
|
|
2915
2915
|
let i = e;
|
|
2916
2916
|
if (r && e) {
|
|
2917
2917
|
const {
|
|
2918
|
-
[
|
|
2919
|
-
[
|
|
2918
|
+
[Zt]: s,
|
|
2919
|
+
[Jt]: l,
|
|
2920
2920
|
...a
|
|
2921
2921
|
} = e;
|
|
2922
2922
|
i = a;
|
|
@@ -2931,7 +2931,7 @@ function ct(e, t, n) {
|
|
|
2931
2931
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2932
2932
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2933
2933
|
let [c, m] = a;
|
|
2934
|
-
if (!(r && [
|
|
2934
|
+
if (!(r && [Zt, Jt].includes(c)))
|
|
2935
2935
|
if (c.indexOf("on") === 0) {
|
|
2936
2936
|
if (o.has(c) || o.set(c, []), typeof m == "function") {
|
|
2937
2937
|
var u;
|
|
@@ -2946,10 +2946,10 @@ function ct(e, t, n) {
|
|
|
2946
2946
|
}), s), {})
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function mi(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) => ut(i, e, "reference"), t), o = y.useCallback((i) => ut(i, e, "floating"), t), r = y.useCallback(
|
|
2952
|
+
(i) => ut(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 fi(e) {
|
|
|
2962
2962
|
getItemProps: r
|
|
2963
2963
|
}), [n, o, r]);
|
|
2964
2964
|
}
|
|
2965
|
-
const
|
|
2966
|
-
function
|
|
2965
|
+
const gi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2966
|
+
function pi(e, t) {
|
|
2967
2967
|
var n;
|
|
2968
2968
|
t === void 0 && (t = {});
|
|
2969
2969
|
const {
|
|
@@ -2972,7 +2972,7 @@ function gi(e, t) {
|
|
|
2972
2972
|
} = e, {
|
|
2973
2973
|
enabled: i = !0,
|
|
2974
2974
|
role: s = "dialog"
|
|
2975
|
-
} = t, l = (n =
|
|
2975
|
+
} = t, l = (n = gi.get(s)) != null ? n : s, a = wt(), m = St() != null;
|
|
2976
2976
|
return y.useMemo(() => {
|
|
2977
2977
|
if (!i)
|
|
2978
2978
|
return {};
|
|
@@ -3044,11 +3044,11 @@ function gi(e, t) {
|
|
|
3044
3044
|
};
|
|
3045
3045
|
}, [i, s, l, o, r, a, m]);
|
|
3046
3046
|
}
|
|
3047
|
-
const
|
|
3047
|
+
const Qt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
3048
3048
|
function Ee(e, t) {
|
|
3049
3049
|
return typeof e == "function" ? e(t) : e;
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function hi(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 pi(e, t) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
}, [e, t]), n;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function bi(e, t) {
|
|
3061
3061
|
t === void 0 && (t = {});
|
|
3062
3062
|
const {
|
|
3063
3063
|
open: n,
|
|
@@ -3066,7 +3066,7 @@ function hi(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 = hi(n, s);
|
|
3070
3070
|
return Q(() => {
|
|
3071
3071
|
l && !u && m("unmounted");
|
|
3072
3072
|
}, [l, u]), Q(() => {
|
|
@@ -3087,7 +3087,7 @@ function hi(e, t) {
|
|
|
3087
3087
|
status: c
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
3090
|
-
function
|
|
3090
|
+
function yi(e, t) {
|
|
3091
3091
|
t === void 0 && (t = {});
|
|
3092
3092
|
const {
|
|
3093
3093
|
initial: n = {
|
|
@@ -3106,7 +3106,7 @@ function bi(e, t) {
|
|
|
3106
3106
|
})), {
|
|
3107
3107
|
isMounted: p,
|
|
3108
3108
|
status: $
|
|
3109
|
-
} =
|
|
3109
|
+
} = bi(e, {
|
|
3110
3110
|
duration: s
|
|
3111
3111
|
}), h = Be(n), x = Be(o), B = Be(r), S = Be(i);
|
|
3112
3112
|
return Q(() => {
|
|
@@ -3116,14 +3116,14 @@ function bi(e, t) {
|
|
|
3116
3116
|
...P,
|
|
3117
3117
|
...k
|
|
3118
3118
|
})), $ === "open" && g({
|
|
3119
|
-
transitionProperty: Object.keys(T).map(
|
|
3119
|
+
transitionProperty: Object.keys(T).map(Qt).join(","),
|
|
3120
3120
|
transitionDuration: u + "ms",
|
|
3121
3121
|
...P,
|
|
3122
3122
|
...T
|
|
3123
3123
|
}), $ === "close") {
|
|
3124
3124
|
const D = E || k;
|
|
3125
3125
|
g({
|
|
3126
|
-
transitionProperty: Object.keys(D).map(
|
|
3126
|
+
transitionProperty: Object.keys(D).map(Qt).join(","),
|
|
3127
3127
|
transitionDuration: f + "ms",
|
|
3128
3128
|
...P,
|
|
3129
3129
|
...D
|
|
@@ -3134,7 +3134,7 @@ function bi(e, t) {
|
|
|
3134
3134
|
styles: d
|
|
3135
3135
|
};
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3137
|
+
function en(e, t) {
|
|
3138
3138
|
const [n, o] = e;
|
|
3139
3139
|
let r = !1;
|
|
3140
3140
|
const i = t.length;
|
|
@@ -3144,10 +3144,10 @@ function Qt(e, t) {
|
|
|
3144
3144
|
}
|
|
3145
3145
|
return r;
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3147
|
+
function vi(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 xi(e) {
|
|
3151
3151
|
e === void 0 && (e = {});
|
|
3152
3152
|
const {
|
|
3153
3153
|
buffer: t = 0.5,
|
|
@@ -3181,7 +3181,7 @@ function vi(e) {
|
|
|
3181
3181
|
const {
|
|
3182
3182
|
clientX: E,
|
|
3183
3183
|
clientY: P
|
|
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 =
|
|
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 = vi(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
3185
|
if (F && (i = !0, !A))
|
|
3186
3186
|
return;
|
|
3187
3187
|
if (M && (i = !1), M && !A) {
|
|
@@ -3233,7 +3233,7 @@ function vi(e) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
3236
|
-
if (!
|
|
3236
|
+
if (!en([E, P], G)) {
|
|
3237
3237
|
if (i && !w)
|
|
3238
3238
|
return k();
|
|
3239
3239
|
if (!A && o) {
|
|
@@ -3241,7 +3241,7 @@ function vi(e) {
|
|
|
3241
3241
|
if (de !== null && de < 0.1)
|
|
3242
3242
|
return k();
|
|
3243
3243
|
}
|
|
3244
|
-
|
|
3244
|
+
en([E, P], ue([f, d])) ? !i && o && (r = window.setTimeout(k, 40)) : k();
|
|
3245
3245
|
}
|
|
3246
3246
|
};
|
|
3247
3247
|
};
|
|
@@ -3249,9 +3249,9 @@ function vi(e) {
|
|
|
3249
3249
|
blockPointerEvents: n
|
|
3250
3250
|
}, m;
|
|
3251
3251
|
}
|
|
3252
|
-
const ge = W("div"),
|
|
3252
|
+
const ge = W("div"), Ct = Fn(
|
|
3253
3253
|
{}
|
|
3254
|
-
),
|
|
3254
|
+
), Ui = ({
|
|
3255
3255
|
children: e,
|
|
3256
3256
|
offset: t,
|
|
3257
3257
|
open: n,
|
|
@@ -3261,13 +3261,13 @@ const ge = W("div"), Rt = Ln(
|
|
|
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 } = fi({
|
|
3265
3265
|
open: n,
|
|
3266
3266
|
onOpenChange: o,
|
|
3267
3267
|
placement: s,
|
|
3268
|
-
whileElementsMounted:
|
|
3269
|
-
middleware: [
|
|
3270
|
-
}), { isMounted: u, styles: f } =
|
|
3268
|
+
whileElementsMounted: wr,
|
|
3269
|
+
middleware: [or(t), Rr(), Sr()]
|
|
3270
|
+
}), { isMounted: u, styles: f } = yi(m, {
|
|
3271
3271
|
initial: ({ side: S }) => ({
|
|
3272
3272
|
opacity: 0,
|
|
3273
3273
|
transform: {
|
|
@@ -3277,16 +3277,16 @@ const ge = W("div"), Rt = Ln(
|
|
|
3277
3277
|
left: "translateX(-0.5rem)"
|
|
3278
3278
|
}[S]
|
|
3279
3279
|
})
|
|
3280
|
-
}), d =
|
|
3280
|
+
}), d = ai(m, { enabled: r === "click" }), g = Qr(m, {
|
|
3281
3281
|
enabled: r === "hover",
|
|
3282
3282
|
delay: i,
|
|
3283
|
-
handleClose:
|
|
3284
|
-
}), p =
|
|
3283
|
+
handleClose: xi()
|
|
3284
|
+
}), p = di(m), $ = pi(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = mi([
|
|
3285
3285
|
d,
|
|
3286
3286
|
g,
|
|
3287
3287
|
p,
|
|
3288
3288
|
$
|
|
3289
|
-
]), B =
|
|
3289
|
+
]), B = qe(
|
|
3290
3290
|
() => ({
|
|
3291
3291
|
getFloatingProps: h,
|
|
3292
3292
|
getReferenceProps: x,
|
|
@@ -3304,22 +3304,22 @@ const ge = W("div"), Rt = Ln(
|
|
|
3304
3304
|
f
|
|
3305
3305
|
]
|
|
3306
3306
|
);
|
|
3307
|
-
return /* @__PURE__ */ L(
|
|
3308
|
-
},
|
|
3309
|
-
const { getReferenceProps: t, refs: n } =
|
|
3310
|
-
return /* @__PURE__ */ L(
|
|
3307
|
+
return /* @__PURE__ */ L(Ct.Provider, { value: B, children: e });
|
|
3308
|
+
}, qi = ({ children: e }) => {
|
|
3309
|
+
const { getReferenceProps: t, refs: n } = rn(Ct);
|
|
3310
|
+
return /* @__PURE__ */ L(Mn, { children: zn(e) && Wn(e, {
|
|
3311
3311
|
ref: n.setReference,
|
|
3312
3312
|
...t()
|
|
3313
3313
|
}) });
|
|
3314
|
-
},
|
|
3314
|
+
}, Zi = ({ 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__ */ L(
|
|
3321
|
+
} = rn(Ct);
|
|
3322
|
+
return o ? /* @__PURE__ */ L(si, { children: /* @__PURE__ */ L(
|
|
3323
3323
|
ge,
|
|
3324
3324
|
{
|
|
3325
3325
|
ref: r.setFloating,
|
|
@@ -3328,10 +3328,10 @@ const ge = W("div"), Rt = Ln(
|
|
|
3328
3328
|
css: {
|
|
3329
3329
|
zIndex: "$overlayCard"
|
|
3330
3330
|
},
|
|
3331
|
-
children: /* @__PURE__ */ L(
|
|
3331
|
+
children: /* @__PURE__ */ L(un, { ...t, style: s, children: e })
|
|
3332
3332
|
}
|
|
3333
3333
|
) }) : null;
|
|
3334
|
-
},
|
|
3334
|
+
}, Ji = 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 = Ln(
|
|
|
3368
3368
|
defaultVariants: {
|
|
3369
3369
|
color: "primary"
|
|
3370
3370
|
}
|
|
3371
|
-
}),
|
|
3371
|
+
}), Qi = 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
|
+
}), es = W(He.ToggleGroup, {
|
|
3378
3378
|
display: "flex",
|
|
3379
3379
|
gap: "$1",
|
|
3380
3380
|
alignItems: "center"
|
|
3381
|
-
}),
|
|
3381
|
+
}), ts = 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
|
+
}), Dn = $e(({ css: e, ...t }, n) => /* @__PURE__ */ L(
|
|
3388
|
+
cn,
|
|
3389
3389
|
{
|
|
3390
3390
|
ref: n,
|
|
3391
3391
|
icon: !0,
|
|
@@ -3399,27 +3399,27 @@ const ge = W("div"), Rt = Ln(
|
|
|
3399
3399
|
},
|
|
3400
3400
|
...t
|
|
3401
3401
|
}
|
|
3402
|
-
)),
|
|
3402
|
+
)), ns = $e(
|
|
3403
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
|
+
Dn,
|
|
3410
3410
|
{
|
|
3411
3411
|
variant: "transparent",
|
|
3412
3412
|
color: "primary",
|
|
3413
3413
|
...n,
|
|
3414
3414
|
children: [
|
|
3415
3415
|
e,
|
|
3416
|
-
t && /* @__PURE__ */ L(
|
|
3416
|
+
t && /* @__PURE__ */ L(Hn, {})
|
|
3417
3417
|
]
|
|
3418
3418
|
}
|
|
3419
3419
|
)
|
|
3420
3420
|
}
|
|
3421
3421
|
)
|
|
3422
|
-
),
|
|
3422
|
+
), os = $e(({
|
|
3423
3423
|
children: e,
|
|
3424
3424
|
value: t,
|
|
3425
3425
|
...n
|
|
@@ -3430,7 +3430,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3430
3430
|
asChild: !0,
|
|
3431
3431
|
ref: o,
|
|
3432
3432
|
children: /* @__PURE__ */ L(
|
|
3433
|
-
|
|
3433
|
+
Dn,
|
|
3434
3434
|
{
|
|
3435
3435
|
variant: "transparent",
|
|
3436
3436
|
color: "primary",
|
|
@@ -3440,7 +3440,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3440
3440
|
}
|
|
3441
3441
|
)
|
|
3442
3442
|
}
|
|
3443
|
-
)),
|
|
3443
|
+
)), rs = W("div", {
|
|
3444
3444
|
color: "$$cardText",
|
|
3445
3445
|
backgroundColor: "$$cardBackground",
|
|
3446
3446
|
borderRadius: "$md",
|
|
@@ -3465,7 +3465,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3465
3465
|
variant: "primary",
|
|
3466
3466
|
elevation: "raised"
|
|
3467
3467
|
}
|
|
3468
|
-
}),
|
|
3468
|
+
}), $i = 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 = Ln(
|
|
|
3473
3473
|
display: "flex",
|
|
3474
3474
|
alignItems: "center",
|
|
3475
3475
|
gap: "$1"
|
|
3476
|
-
}),
|
|
3476
|
+
}), is = (e) => /* @__PURE__ */ L($i, { ...e }), ss = ({
|
|
3477
3477
|
children: e,
|
|
3478
3478
|
active: t = !1,
|
|
3479
3479
|
...n
|
|
3480
3480
|
}) => /* @__PURE__ */ L(
|
|
3481
|
-
|
|
3481
|
+
cn,
|
|
3482
3482
|
{
|
|
3483
3483
|
variant: "transparent",
|
|
3484
3484
|
color: "primary",
|
|
@@ -3491,12 +3491,12 @@ const ge = W("div"), Rt = Ln(
|
|
|
3491
3491
|
...n,
|
|
3492
3492
|
children: e
|
|
3493
3493
|
}
|
|
3494
|
-
),
|
|
3494
|
+
), wi = 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
|
+
}), Si = W(Ne.Content, {
|
|
3500
3500
|
backgroundColor: "white",
|
|
3501
3501
|
borderRadius: "$md",
|
|
3502
3502
|
position: "fixed",
|
|
@@ -3510,22 +3510,23 @@ const ge = W("div"), Rt = Ln(
|
|
|
3510
3510
|
maxHeight: "85vh",
|
|
3511
3511
|
padding: "$8",
|
|
3512
3512
|
"&:focus": { outline: "none" }
|
|
3513
|
-
}),
|
|
3513
|
+
}), ls = ({
|
|
3514
3514
|
children: e,
|
|
3515
3515
|
open: t,
|
|
3516
3516
|
onOpenChange: n,
|
|
3517
|
-
trigger: o
|
|
3517
|
+
trigger: o,
|
|
3518
|
+
css: r
|
|
3518
3519
|
}) => /* @__PURE__ */ ee(Ne.Root, { open: t, onOpenChange: n, children: [
|
|
3519
3520
|
o && /* @__PURE__ */ L(Ne.Trigger, { asChild: !0, children: o }),
|
|
3520
3521
|
/* @__PURE__ */ ee(Ne.Portal, { children: [
|
|
3521
|
-
/* @__PURE__ */ L(
|
|
3522
|
-
/* @__PURE__ */ L(
|
|
3522
|
+
/* @__PURE__ */ L(wi, {}),
|
|
3523
|
+
/* @__PURE__ */ L(Si, { css: r, children: e })
|
|
3523
3524
|
] })
|
|
3524
|
-
] }),
|
|
3525
|
+
] }), as = W("h2", {
|
|
3525
3526
|
fontSize: "$xl",
|
|
3526
3527
|
fontWeight: "$medium",
|
|
3527
3528
|
marginBottom: "$6"
|
|
3528
|
-
}),
|
|
3529
|
+
}), cs = W("div", {
|
|
3529
3530
|
display: "flex",
|
|
3530
3531
|
gap: "$2",
|
|
3531
3532
|
justifyContent: "flex-end",
|
|
@@ -3534,7 +3535,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3534
3535
|
padding: "$4",
|
|
3535
3536
|
borderBottomRightRadius: "$md",
|
|
3536
3537
|
borderBottomLeftRadius: "$md"
|
|
3537
|
-
}),
|
|
3538
|
+
}), us = W("div", {
|
|
3538
3539
|
display: "flex",
|
|
3539
3540
|
variants: {
|
|
3540
3541
|
direction: {
|
|
@@ -3569,16 +3570,16 @@ const ge = W("div"), Rt = Ln(
|
|
|
3569
3570
|
direction: "column",
|
|
3570
3571
|
gap: 4
|
|
3571
3572
|
}
|
|
3572
|
-
}),
|
|
3573
|
-
const t =
|
|
3573
|
+
}), tn = /* @__PURE__ */ new Map(), Ri = (e) => {
|
|
3574
|
+
const t = tn.get(e);
|
|
3574
3575
|
if (t)
|
|
3575
3576
|
return t;
|
|
3576
3577
|
let n = 0;
|
|
3577
3578
|
for (let l = 0; l < e.length; l++)
|
|
3578
3579
|
n = e.charCodeAt(l) + ((n << 5) - n);
|
|
3579
3580
|
const s = `hsl(${n % 360}, 80%, 40%)`;
|
|
3580
|
-
return
|
|
3581
|
-
},
|
|
3581
|
+
return tn.set(e, s), s;
|
|
3582
|
+
}, Ci = W("div", {
|
|
3582
3583
|
flex: "0 0 auto",
|
|
3583
3584
|
display: "inline-flex",
|
|
3584
3585
|
alignItems: "center",
|
|
@@ -3609,20 +3610,20 @@ const ge = W("div"), Rt = Ln(
|
|
|
3609
3610
|
defaultVariants: {
|
|
3610
3611
|
size: "md"
|
|
3611
3612
|
}
|
|
3612
|
-
}),
|
|
3613
|
+
}), ds = ({
|
|
3613
3614
|
css: e,
|
|
3614
3615
|
colorString: t,
|
|
3615
3616
|
...n
|
|
3616
3617
|
}) => {
|
|
3617
|
-
const o =
|
|
3618
|
-
() => t ?
|
|
3618
|
+
const o = qe(
|
|
3619
|
+
() => t ? Ri(t) : "$gray200",
|
|
3619
3620
|
[t]
|
|
3620
3621
|
);
|
|
3621
|
-
return /* @__PURE__ */ L(
|
|
3622
|
-
},
|
|
3622
|
+
return /* @__PURE__ */ L(Ci, { css: { backgroundColor: o, ...e }, ...n });
|
|
3623
|
+
}, Ei = W(un, {
|
|
3623
3624
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3624
3625
|
padding: "$1"
|
|
3625
|
-
}),
|
|
3626
|
+
}), Et = Ve({
|
|
3626
3627
|
padding: "$2 $2 $2 1.5rem",
|
|
3627
3628
|
fontSize: "$sm",
|
|
3628
3629
|
lineHeight: "1.25",
|
|
@@ -3645,7 +3646,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3645
3646
|
backgroundColor: "transparent"
|
|
3646
3647
|
}
|
|
3647
3648
|
}
|
|
3648
|
-
}),
|
|
3649
|
+
}), fs = ({
|
|
3649
3650
|
side: e = "bottom",
|
|
3650
3651
|
align: t = "center",
|
|
3651
3652
|
trigger: n,
|
|
@@ -3662,10 +3663,10 @@ const ge = W("div"), Rt = Ln(
|
|
|
3662
3663
|
align: t,
|
|
3663
3664
|
collisionPadding: 10,
|
|
3664
3665
|
sideOffset: r,
|
|
3665
|
-
children: /* @__PURE__ */ L(
|
|
3666
|
+
children: /* @__PURE__ */ L(Ei, { children: o })
|
|
3666
3667
|
}
|
|
3667
3668
|
) })
|
|
3668
|
-
] }),
|
|
3669
|
+
] }), ki = W(ne.ItemIndicator, {
|
|
3669
3670
|
position: "absolute",
|
|
3670
3671
|
left: 0,
|
|
3671
3672
|
top: 0,
|
|
@@ -3674,30 +3675,30 @@ const ge = W("div"), Rt = Ln(
|
|
|
3674
3675
|
display: "flex",
|
|
3675
3676
|
justifyContent: "center",
|
|
3676
3677
|
alignItems: "center"
|
|
3677
|
-
}),
|
|
3678
|
+
}), ms = W(ne.Separator, {
|
|
3678
3679
|
height: 1,
|
|
3679
3680
|
backgroundColor: "$gray200",
|
|
3680
3681
|
margin: 1
|
|
3681
|
-
}),
|
|
3682
|
+
}), gs = W(ne.Item, Et), ps = W(ne.Item, Et, {
|
|
3682
3683
|
padding: "$2",
|
|
3683
3684
|
display: "flex",
|
|
3684
3685
|
alignItems: "center",
|
|
3685
3686
|
gap: "$2"
|
|
3686
|
-
}),
|
|
3687
|
+
}), Ti = W(ne.CheckboxItem, Et), hs = ({
|
|
3687
3688
|
value: e,
|
|
3688
3689
|
onChange: t,
|
|
3689
3690
|
children: n
|
|
3690
3691
|
}) => /* @__PURE__ */ ee(
|
|
3691
|
-
|
|
3692
|
+
Ti,
|
|
3692
3693
|
{
|
|
3693
3694
|
checked: e,
|
|
3694
3695
|
onCheckedChange: t,
|
|
3695
3696
|
children: [
|
|
3696
|
-
/* @__PURE__ */ L(
|
|
3697
|
+
/* @__PURE__ */ L(ki, { children: /* @__PURE__ */ L(Vn, { size: "0.75rem" }) }),
|
|
3697
3698
|
n
|
|
3698
3699
|
]
|
|
3699
3700
|
}
|
|
3700
|
-
),
|
|
3701
|
+
), Ue = {
|
|
3701
3702
|
container: (e) => ({
|
|
3702
3703
|
...e,
|
|
3703
3704
|
minWidth: "200px"
|
|
@@ -3749,39 +3750,50 @@ const ge = W("div"), Rt = Ln(
|
|
|
3749
3750
|
zIndex: "var(--zIndices-overlayCard)"
|
|
3750
3751
|
})
|
|
3751
3752
|
}, Ii = {
|
|
3753
|
+
control: (e, t) => {
|
|
3754
|
+
var n;
|
|
3755
|
+
return {
|
|
3756
|
+
...(n = Ue.control) == null ? void 0 : n.call(Ue, e, t),
|
|
3757
|
+
border: "1px solid var(--colors-red500)",
|
|
3758
|
+
boxShadow: t.isFocused ? "0 0 0 4px var(--colors-red100)" : "none"
|
|
3759
|
+
};
|
|
3760
|
+
}
|
|
3761
|
+
}, Bi = {
|
|
3752
3762
|
IndicatorSeparator: () => null
|
|
3753
|
-
},
|
|
3763
|
+
}, Pi = ({
|
|
3754
3764
|
styles: e,
|
|
3755
3765
|
components: t,
|
|
3756
|
-
|
|
3766
|
+
error: n,
|
|
3767
|
+
...o
|
|
3757
3768
|
}) => {
|
|
3758
|
-
const
|
|
3769
|
+
const r = qe(
|
|
3759
3770
|
() => ({
|
|
3760
|
-
...
|
|
3761
|
-
...e
|
|
3771
|
+
...Ue,
|
|
3772
|
+
...e,
|
|
3773
|
+
...n ? Ii : void 0
|
|
3762
3774
|
}),
|
|
3763
|
-
[e]
|
|
3764
|
-
),
|
|
3775
|
+
[e, n]
|
|
3776
|
+
), i = qe(
|
|
3765
3777
|
() => ({
|
|
3766
|
-
...
|
|
3778
|
+
...Bi,
|
|
3767
3779
|
...t
|
|
3768
3780
|
}),
|
|
3769
3781
|
[t]
|
|
3770
3782
|
);
|
|
3771
|
-
return /* @__PURE__ */ L(
|
|
3772
|
-
},
|
|
3783
|
+
return /* @__PURE__ */ L(Kn, { components: i, styles: r, ...o });
|
|
3784
|
+
}, bs = ({
|
|
3773
3785
|
clearable: e = !0,
|
|
3774
3786
|
multi: t = !1,
|
|
3775
3787
|
...n
|
|
3776
3788
|
}) => (e = t ? !1 : e, /* @__PURE__ */ L(
|
|
3777
|
-
|
|
3789
|
+
Pi,
|
|
3778
3790
|
{
|
|
3779
3791
|
...n,
|
|
3780
3792
|
isClearable: e,
|
|
3781
3793
|
isMulti: t,
|
|
3782
3794
|
isSearchable: !0
|
|
3783
3795
|
}
|
|
3784
|
-
)),
|
|
3796
|
+
)), Ai = Ve({
|
|
3785
3797
|
display: "block",
|
|
3786
3798
|
width: "100%",
|
|
3787
3799
|
padding: "0.5rem 0.75rem",
|
|
@@ -3793,7 +3805,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3793
3805
|
"-webkit-appearance": "none",
|
|
3794
3806
|
"-moz-appearance": "none",
|
|
3795
3807
|
appearance: "none"
|
|
3796
|
-
}),
|
|
3808
|
+
}), Oi = Ve({
|
|
3797
3809
|
display: "block",
|
|
3798
3810
|
width: "100%",
|
|
3799
3811
|
background: "#fff",
|
|
@@ -3817,14 +3829,14 @@ const ge = W("div"), Rt = Ln(
|
|
|
3817
3829
|
}
|
|
3818
3830
|
}
|
|
3819
3831
|
}
|
|
3820
|
-
}),
|
|
3832
|
+
}), Di = W("input", Ai), Mi = W("div", Oi, {
|
|
3821
3833
|
display: "flex",
|
|
3822
3834
|
alignItems: "center",
|
|
3823
3835
|
gap: "$2",
|
|
3824
3836
|
width: "100%"
|
|
3825
|
-
}),
|
|
3837
|
+
}), ys = $e(
|
|
3826
3838
|
({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
|
|
3827
|
-
const c =
|
|
3839
|
+
const c = sn();
|
|
3828
3840
|
return s = s || c, /* @__PURE__ */ ee(ge, { css: r, children: [
|
|
3829
3841
|
t && /* @__PURE__ */ L(
|
|
3830
3842
|
ge,
|
|
@@ -3839,9 +3851,9 @@ const ge = W("div"), Rt = Ln(
|
|
|
3839
3851
|
children: t
|
|
3840
3852
|
}
|
|
3841
3853
|
),
|
|
3842
|
-
/* @__PURE__ */ ee(
|
|
3854
|
+
/* @__PURE__ */ ee(Mi, { error: !!n, children: [
|
|
3843
3855
|
/* @__PURE__ */ L(
|
|
3844
|
-
|
|
3856
|
+
Di,
|
|
3845
3857
|
{
|
|
3846
3858
|
id: s,
|
|
3847
3859
|
ref: a,
|
|
@@ -3864,7 +3876,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3864
3876
|
n && /* @__PURE__ */ L(
|
|
3865
3877
|
ge,
|
|
3866
3878
|
{
|
|
3867
|
-
as:
|
|
3879
|
+
as: _n,
|
|
3868
3880
|
css: { color: "$red600", marginRight: "$2" },
|
|
3869
3881
|
size: 24
|
|
3870
3882
|
}
|
|
@@ -3873,7 +3885,7 @@ const ge = W("div"), Rt = Ln(
|
|
|
3873
3885
|
typeof n == "string" && /* @__PURE__ */ L(ge, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
|
|
3874
3886
|
] });
|
|
3875
3887
|
}
|
|
3876
|
-
),
|
|
3888
|
+
), Li = W(ln.Root, {
|
|
3877
3889
|
display: "flex",
|
|
3878
3890
|
alignItems: "center",
|
|
3879
3891
|
justifyContent: "center",
|
|
@@ -3909,14 +3921,14 @@ const ge = W("div"), Rt = Ln(
|
|
|
3909
3921
|
defaultVariants: {
|
|
3910
3922
|
size: "md"
|
|
3911
3923
|
}
|
|
3912
|
-
}),
|
|
3924
|
+
}), Fi = W(ln.Indicator, {
|
|
3913
3925
|
"[data-icon]": {
|
|
3914
3926
|
display: "none"
|
|
3915
3927
|
},
|
|
3916
3928
|
"&[data-state=checked] [data-icon=checked], &[data-state=indeterminate] [data-icon=indeterminate]": {
|
|
3917
3929
|
display: "block"
|
|
3918
3930
|
}
|
|
3919
|
-
}),
|
|
3931
|
+
}), zi = W("label", {
|
|
3920
3932
|
flex: "0 1 auto",
|
|
3921
3933
|
variants: {
|
|
3922
3934
|
size: {
|
|
@@ -3934,70 +3946,70 @@ const ge = W("div"), Rt = Ln(
|
|
|
3934
3946
|
defaultVariants: {
|
|
3935
3947
|
size: "md"
|
|
3936
3948
|
}
|
|
3937
|
-
}),
|
|
3949
|
+
}), vs = ({
|
|
3938
3950
|
id: e,
|
|
3939
3951
|
size: t,
|
|
3940
3952
|
label: n,
|
|
3941
3953
|
...o
|
|
3942
3954
|
}) => {
|
|
3943
|
-
const r =
|
|
3955
|
+
const r = sn();
|
|
3944
3956
|
return e = e || r, /* @__PURE__ */ ee(ge, { css: { display: "flex", alignItems: "center", gap: "$2" }, children: [
|
|
3945
|
-
/* @__PURE__ */ L(
|
|
3946
|
-
/* @__PURE__ */ L(
|
|
3947
|
-
/* @__PURE__ */ L(
|
|
3957
|
+
/* @__PURE__ */ L(Li, { id: e, size: t, ...o, children: /* @__PURE__ */ ee(Fi, { children: [
|
|
3958
|
+
/* @__PURE__ */ L(Yn, { "data-icon": "indeterminate" }),
|
|
3959
|
+
/* @__PURE__ */ L(Xn, { "data-icon": "checked" })
|
|
3948
3960
|
] }) }),
|
|
3949
|
-
n && /* @__PURE__ */ L(
|
|
3961
|
+
n && /* @__PURE__ */ L(zi, { htmlFor: e, size: t, children: n })
|
|
3950
3962
|
] });
|
|
3951
3963
|
};
|
|
3952
3964
|
export {
|
|
3953
3965
|
Me as A,
|
|
3954
3966
|
ge as B,
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3967
|
+
bs as C,
|
|
3968
|
+
fs as D,
|
|
3969
|
+
_i as E,
|
|
3970
|
+
si as F,
|
|
3971
|
+
Yi as G,
|
|
3972
|
+
Xi as H,
|
|
3973
|
+
Ji as I,
|
|
3974
|
+
Dn as J,
|
|
3975
|
+
rs as K,
|
|
3976
|
+
as as L,
|
|
3977
|
+
us as M,
|
|
3978
|
+
is as N,
|
|
3979
|
+
un as O,
|
|
3980
|
+
Ui as P,
|
|
3981
|
+
ds as Q,
|
|
3982
|
+
Pi as R,
|
|
3983
|
+
To as S,
|
|
3984
|
+
ns as T,
|
|
3985
|
+
Ei as U,
|
|
3986
|
+
Et as V,
|
|
3987
|
+
hs as W,
|
|
3988
|
+
vs as X,
|
|
3989
|
+
ps as a,
|
|
3990
|
+
es as b,
|
|
3979
3991
|
Ve as c,
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3992
|
+
os as d,
|
|
3993
|
+
wr as e,
|
|
3994
|
+
Ki as f,
|
|
3995
|
+
Rr as g,
|
|
3996
|
+
Sr as h,
|
|
3997
|
+
mi as i,
|
|
3998
|
+
pi as j,
|
|
3999
|
+
Qi as k,
|
|
4000
|
+
ts as l,
|
|
4001
|
+
cn as m,
|
|
4002
|
+
gs as n,
|
|
4003
|
+
or as o,
|
|
4004
|
+
ms as p,
|
|
4005
|
+
ls as q,
|
|
4006
|
+
ss as r,
|
|
3995
4007
|
W as s,
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4008
|
+
ys as t,
|
|
4009
|
+
fi as u,
|
|
4010
|
+
cs as v,
|
|
4011
|
+
Gi as w,
|
|
4012
|
+
di as x,
|
|
4013
|
+
qi as y,
|
|
4014
|
+
Zi as z
|
|
4003
4015
|
};
|