@arkitektbedriftene/fe-lib 0.4.9 → 0.4.10
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/{TextInput-c4d1672c.js → TextInput-832f6509.js} +676 -684
- package/dist/rich-text.es.js +18 -17
- package/dist/ui/components/Dialog.d.ts +4 -3
- package/dist/ui.es.js +39 -38
- package/package.json +11 -10
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as z, jsxs as
|
|
1
|
+
import { jsx as z, jsxs as se, Fragment as Pn } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import Se, { forwardRef as xe, useLayoutEffect as
|
|
4
|
-
import * as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import * as
|
|
3
|
+
import Se, { forwardRef as xe, useLayoutEffect as en, useEffect as tn, useRef as An, createContext as On, useMemo as ct, useContext as nn, isValidElement as Dn, cloneElement as Mn, useId as Ln } from "react";
|
|
4
|
+
import * as Fn from "react-dom";
|
|
5
|
+
import { createPortal as zn } from "react-dom";
|
|
6
|
+
import * as He from "@radix-ui/react-toolbar";
|
|
7
7
|
import { g as Wn, h as Nn, i as jn } from "./index.esm-b848a615.js";
|
|
8
|
+
import * as Ne from "@radix-ui/react-dialog";
|
|
8
9
|
import * as te from "@radix-ui/react-dropdown-menu";
|
|
9
10
|
import Hn from "react-select";
|
|
10
11
|
var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: W, backgroundColor: W, backgroundImage: W, borderImage: W, border: W, borderBlock: W, borderBlockEnd: W, borderBlockStart: W, borderBottom: W, borderBottomColor: W, borderColor: W, borderInline: W, borderInlineEnd: W, borderInlineStart: W, borderLeft: W, borderLeftColor: W, borderRight: W, borderRightColor: W, borderTop: W, borderTopColor: W, caretColor: W, color: W, columnRuleColor: W, fill: W, outline: W, outlineColor: W, stroke: W, textDecorationColor: W, 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" }, _n = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, De = () => {
|
|
@@ -13,52 +14,52 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
13
14
|
const r = ((i) => JSON.stringify(i, _n))(t);
|
|
14
15
|
return r in e ? e[r] : e[r] = n(t, ...o);
|
|
15
16
|
};
|
|
16
|
-
}, pe = Symbol.for("sxs.internal"), ht = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)),
|
|
17
|
+
}, pe = Symbol.for("sxs.internal"), ht = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Ct = (e) => {
|
|
17
18
|
for (const t in e)
|
|
18
19
|
return !0;
|
|
19
20
|
return !1;
|
|
20
|
-
}, { hasOwnProperty: Yn } = Object.prototype,
|
|
21
|
+
}, { hasOwnProperty: Yn } = Object.prototype, ut = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Xn = /\s+(?![^()]*\))/, Re = (e) => (t) => e(...typeof t == "string" ? String(t).split(Xn) : [t]), kt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: Re((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: Re((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: Re((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: Re((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: Re((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: Re((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, ot = /([\d.]+)([^]*)/, Kn = (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, Gn = (e, t) => e in Un && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, o, r, i) => o + (r === "stretch" ? `-moz-available${i};${ut(e)}:${o}-webkit-fill-available` : `-moz-fit-content${i};${ut(e)}:${o}fit-content`) + i) : String(t), Un = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ne = (e) => e ? e + "-" : "", on = (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 === "$" ? ne(t) + (l.includes("$") ? "" : ne(n)) + l.replace(/\$/g, "-") : l) + ")" + (r || s == "--" ? "*" + (r || "") + (i || "1") + ")" : "")), qn = /\s*,\s*(?![^()]*\))/, Zn = Object.prototype.toString, Ie = (e, t, n, o, r) => {
|
|
21
22
|
let i, s, l;
|
|
22
|
-
const a = (c,
|
|
23
|
+
const a = (c, m, u) => {
|
|
23
24
|
let f, d;
|
|
24
|
-
const
|
|
25
|
+
const g = (p) => {
|
|
25
26
|
for (f in p) {
|
|
26
|
-
const x = f.charCodeAt(0) === 64,
|
|
27
|
-
for (d of
|
|
28
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString === Zn && (!o.utils[S] || !
|
|
27
|
+
const x = f.charCodeAt(0) === 64, B = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
28
|
+
for (d of B) {
|
|
29
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString === Zn && (!o.utils[S] || !m.length);
|
|
29
30
|
if (S in o.utils && !k) {
|
|
30
31
|
const C = o.utils[S];
|
|
31
32
|
if (C !== s) {
|
|
32
|
-
s = C,
|
|
33
|
+
s = C, g(C(d)), s = null;
|
|
33
34
|
continue;
|
|
34
35
|
}
|
|
35
|
-
} else if (S in
|
|
36
|
-
const C =
|
|
36
|
+
} else if (S in kt) {
|
|
37
|
+
const C = kt[S];
|
|
37
38
|
if (C !== l) {
|
|
38
|
-
l = C,
|
|
39
|
+
l = C, g(C(d)), l = null;
|
|
39
40
|
continue;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
if (x && (w = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C,
|
|
43
|
-
const M =
|
|
44
|
-
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(
|
|
43
|
+
if (x && (w = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C, P, T, D, A, L) => {
|
|
44
|
+
const M = ot.test(P), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [D, P] : [P, D];
|
|
45
|
+
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(ot, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? L.replace(ot, (I, R, $) => Number(R) + O * (A === ">" ? -1 : 1) + $) : L) : "") + ")";
|
|
45
46
|
})), k) {
|
|
46
|
-
const C = x ? u.concat(f) : [...u],
|
|
47
|
-
i !== void 0 && r(
|
|
47
|
+
const C = x ? u.concat(f) : [...u], P = x ? [...m] : Kn(m, f.split(qn));
|
|
48
|
+
i !== void 0 && r(Tt(...i)), i = void 0, a(d, P, C);
|
|
48
49
|
} else
|
|
49
|
-
i === void 0 && (i = [[],
|
|
50
|
+
i === void 0 && (i = [[], m, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${ne(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in Jn ? String(d) + "px" : String(d) : on(Gn(S, d ?? ""), o.prefix, o.themeMap[S]), i[0].push(`${x ? `${f} ` : `${ut(f)}:`}${d}`);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
var w, h;
|
|
53
54
|
};
|
|
54
|
-
|
|
55
|
+
g(c), i !== void 0 && r(Tt(...i)), i = void 0;
|
|
55
56
|
};
|
|
56
57
|
a(e, t, n);
|
|
57
|
-
},
|
|
58
|
+
}, Tt = (e, t, n) => `${n.map((o) => `${o}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, Jn = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, It = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), he = (e) => ((t) => {
|
|
58
59
|
let n, o = "";
|
|
59
60
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
60
|
-
o =
|
|
61
|
-
return
|
|
61
|
+
o = It(n % 52) + o;
|
|
62
|
+
return It(n % 52) + o;
|
|
62
63
|
})(((t, n) => {
|
|
63
64
|
let o = n.length;
|
|
64
65
|
for (; o; )
|
|
@@ -106,27 +107,27 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
106
107
|
for (const l of r)
|
|
107
108
|
if (Qn(l)) {
|
|
108
109
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
110
|
+
const m = Object(c[a]);
|
|
111
|
+
if (m.type !== 1)
|
|
111
112
|
continue;
|
|
112
113
|
const u = Object(c[a + 1]);
|
|
113
114
|
if (u.type !== 4)
|
|
114
115
|
continue;
|
|
115
116
|
++a;
|
|
116
|
-
const { cssText: f } =
|
|
117
|
+
const { cssText: f } = m;
|
|
117
118
|
if (!f.startsWith("--sxs"))
|
|
118
119
|
continue;
|
|
119
|
-
const d = f.slice(14, -3).trim().split(/\s+/),
|
|
120
|
-
|
|
120
|
+
const d = f.slice(14, -3).trim().split(/\s+/), g = We[d[0]];
|
|
121
|
+
g && (t || (t = { sheet: l, reset: o, rules: {}, toString: n }), t.rules[g] = { group: u, index: a, cache: new Set(d) });
|
|
121
122
|
}
|
|
122
123
|
if (t)
|
|
123
124
|
break;
|
|
124
125
|
}
|
|
125
126
|
if (!t) {
|
|
126
|
-
const l = (a, c) => ({ type: c, cssRules: [], insertRule(
|
|
127
|
-
this.cssRules.splice(u, 0, l(
|
|
127
|
+
const l = (a, c) => ({ type: c, cssRules: [], insertRule(m, u) {
|
|
128
|
+
this.cssRules.splice(u, 0, l(m, { import: 3, undefined: 1 }[(m.toLowerCase().match(/^@([a-z]+)/) || [])[1]] || 4));
|
|
128
129
|
}, get cssText() {
|
|
129
|
-
return a === "@media{}" ? `@media{${[].map.call(this.cssRules, (
|
|
130
|
+
return a === "@media{}" ? `@media{${[].map.call(this.cssRules, (m) => m.cssText).join("")}}` : a;
|
|
130
131
|
} });
|
|
131
132
|
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset: o, toString: n };
|
|
132
133
|
}
|
|
@@ -134,8 +135,8 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
134
135
|
for (let l = We.length - 1; l >= 0; --l) {
|
|
135
136
|
const a = We[l];
|
|
136
137
|
if (!s[a]) {
|
|
137
|
-
const c = We[l + 1],
|
|
138
|
-
i.insertRule("@media{}",
|
|
138
|
+
const c = We[l + 1], m = s[c] ? s[c].index : i.cssRules.length;
|
|
139
|
+
i.insertRule("@media{}", m), i.insertRule(`--sxs{--sxs:${l}}`, m), s[a] = { group: i.cssRules[m + 1], index: m, cache: /* @__PURE__ */ new Set([l]) };
|
|
139
140
|
}
|
|
140
141
|
to(s[a]);
|
|
141
142
|
}
|
|
@@ -167,23 +168,23 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
167
168
|
a[f] = String(n[f]);
|
|
168
169
|
if (typeof e == "object" && e)
|
|
169
170
|
for (const f in e) {
|
|
170
|
-
|
|
171
|
+
m = a, u = f, Yn.call(m, u) || (a[f] = "undefined");
|
|
171
172
|
const d = e[f];
|
|
172
|
-
for (const
|
|
173
|
-
const p = { [f]: String(
|
|
174
|
-
String(
|
|
175
|
-
const w = d[
|
|
173
|
+
for (const g in d) {
|
|
174
|
+
const p = { [f]: String(g) };
|
|
175
|
+
String(g) === "undefined" && c.push(f);
|
|
176
|
+
const w = d[g], h = [p, w, !Ct(w)];
|
|
176
177
|
s.push(h);
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
|
-
var
|
|
180
|
+
var m, u;
|
|
180
181
|
if (typeof t == "object" && t)
|
|
181
182
|
for (const f of t) {
|
|
182
|
-
let { css: d, ...
|
|
183
|
+
let { css: d, ...g } = f;
|
|
183
184
|
d = typeof d == "object" && d || {};
|
|
184
|
-
for (const w in
|
|
185
|
-
|
|
186
|
-
const p = [
|
|
185
|
+
for (const w in g)
|
|
186
|
+
g[w] = String(g[w]);
|
|
187
|
+
const p = [g, d, !Ct(d)];
|
|
187
188
|
l.push(p);
|
|
188
189
|
}
|
|
189
190
|
return [i, o, s, l, a, c];
|
|
@@ -191,49 +192,49 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
191
192
|
const [o, r, i, s] = io(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
|
192
193
|
function f() {
|
|
193
194
|
for (let d = 0; d < f[ze].length; d++) {
|
|
194
|
-
const [
|
|
195
|
-
u.rules[
|
|
195
|
+
const [g, p] = f[ze][d];
|
|
196
|
+
u.rules[g].apply(p);
|
|
196
197
|
}
|
|
197
198
|
return f[ze] = [], null;
|
|
198
199
|
}
|
|
199
|
-
return f[ze] = [], f.rules = {}, We.forEach((d) => f.rules[d] = { apply: (
|
|
200
|
-
})(n) : null, a = (l || n).rules, c = `.${o}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`,
|
|
200
|
+
return f[ze] = [], f.rules = {}, We.forEach((d) => f.rules[d] = { apply: (g) => f[ze].push([d, g]) }), f;
|
|
201
|
+
})(n) : null, a = (l || n).rules, c = `.${o}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, m = (u) => {
|
|
201
202
|
u = typeof u == "object" && u || so;
|
|
202
|
-
const { css: f, ...d } = u,
|
|
203
|
+
const { css: f, ...d } = u, g = {};
|
|
203
204
|
for (const h in i)
|
|
204
205
|
if (delete d[h], h in u) {
|
|
205
206
|
let x = u[h];
|
|
206
|
-
typeof x == "object" && x ?
|
|
207
|
+
typeof x == "object" && x ? g[h] = { "@initial": i[h], ...x } : (x = String(x), g[h] = x !== "undefined" || s.has(h) ? x : i[h]);
|
|
207
208
|
} else
|
|
208
|
-
|
|
209
|
+
g[h] = i[h];
|
|
209
210
|
const p = /* @__PURE__ */ new Set([...r]);
|
|
210
|
-
for (const [h, x,
|
|
211
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h),
|
|
212
|
-
a.styled.apply(
|
|
211
|
+
for (const [h, x, B, S] of t.composers) {
|
|
212
|
+
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ie(x, [`.${h}`], [], e, (P) => {
|
|
213
|
+
a.styled.apply(P);
|
|
213
214
|
}));
|
|
214
|
-
const k =
|
|
215
|
-
for (const
|
|
216
|
-
if (
|
|
217
|
-
for (const [T, D, A] of
|
|
215
|
+
const k = Pt(B, g, e.media), C = Pt(S, g, e.media, !0);
|
|
216
|
+
for (const P of k)
|
|
217
|
+
if (P !== void 0)
|
|
218
|
+
for (const [T, D, A] of P) {
|
|
218
219
|
const L = `${h}-${he(D)}-${T}`;
|
|
219
220
|
p.add(L);
|
|
220
221
|
const M = (A ? n.rules.resonevar : n.rules.onevar).cache, O = A ? a.resonevar : a.onevar;
|
|
221
|
-
M.has(L) || (M.add(L),
|
|
222
|
+
M.has(L) || (M.add(L), Ie(D, [`.${L}`], [], e, (b) => {
|
|
222
223
|
O.apply(b);
|
|
223
224
|
}));
|
|
224
225
|
}
|
|
225
|
-
for (const
|
|
226
|
-
if (
|
|
227
|
-
for (const [T, D] of
|
|
226
|
+
for (const P of C)
|
|
227
|
+
if (P !== void 0)
|
|
228
|
+
for (const [T, D] of P) {
|
|
228
229
|
const A = `${h}-${he(D)}-${T}`;
|
|
229
|
-
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A),
|
|
230
|
+
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A), Ie(D, [`.${A}`], [], e, (L) => {
|
|
230
231
|
a.allvar.apply(L);
|
|
231
232
|
}));
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
235
|
if (typeof f == "object" && f) {
|
|
235
236
|
const h = `${o}-i${he(f)}-css`;
|
|
236
|
-
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h),
|
|
237
|
+
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), Ie(f, [`.${h}`], [], e, (x) => {
|
|
237
238
|
a.inline.apply(x);
|
|
238
239
|
}));
|
|
239
240
|
}
|
|
@@ -242,7 +243,7 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
242
243
|
const w = d.className = [...p].join(" ");
|
|
243
244
|
return { type: t.type, className: w, selector: c, props: d, toString: () => w, deferredInjector: l };
|
|
244
245
|
};
|
|
245
|
-
return ht(
|
|
246
|
+
return ht(m, { className: o, selector: c, [pe]: t, toString: () => (n.rules.styled.cache.has(o) || m(), o) });
|
|
246
247
|
}, io = (e) => {
|
|
247
248
|
let t = "";
|
|
248
249
|
const n = [], o = {}, r = [];
|
|
@@ -254,13 +255,13 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
return [t, n, o, new Set(r)];
|
|
257
|
-
},
|
|
258
|
+
}, Pt = (e, t, n, o) => {
|
|
258
259
|
const r = [];
|
|
259
260
|
e:
|
|
260
261
|
for (let [i, s, l] of e) {
|
|
261
262
|
if (l)
|
|
262
263
|
continue;
|
|
263
|
-
let a, c = 0,
|
|
264
|
+
let a, c = 0, m = !1;
|
|
264
265
|
for (a in i) {
|
|
265
266
|
const u = i[a];
|
|
266
267
|
let f = t[a];
|
|
@@ -268,23 +269,23 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
268
269
|
if (typeof f != "object" || !f)
|
|
269
270
|
continue e;
|
|
270
271
|
{
|
|
271
|
-
let d,
|
|
272
|
+
let d, g, p = 0;
|
|
272
273
|
for (const w in f) {
|
|
273
274
|
if (u === String(f[w])) {
|
|
274
275
|
if (w !== "@initial") {
|
|
275
276
|
const h = w.slice(1);
|
|
276
|
-
(
|
|
277
|
+
(g = g || []).push(h in n ? n[h] : w.replace(/^@media ?/, "")), m = !0;
|
|
277
278
|
}
|
|
278
279
|
c += p, d = !0;
|
|
279
280
|
}
|
|
280
281
|
++p;
|
|
281
282
|
}
|
|
282
|
-
if (
|
|
283
|
+
if (g && g.length && (s = { ["@media " + g.join(", ")]: s }), !d)
|
|
283
284
|
continue e;
|
|
284
285
|
}
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
|
-
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s,
|
|
288
|
+
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s, m]);
|
|
288
289
|
}
|
|
289
290
|
return r;
|
|
290
291
|
}, so = {}, lo = De(), ao = (e, t) => lo(e, () => (...n) => {
|
|
@@ -299,7 +300,7 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
299
300
|
l = l.includes('"') || l.includes("'") ? l : `"${l}"`, t.sheet.insertRule(`@import ${l};`, s++);
|
|
300
301
|
delete r["@import"];
|
|
301
302
|
}
|
|
302
|
-
|
|
303
|
+
Ie(r, [], [], e, (s) => {
|
|
303
304
|
t.rules.global.apply(s);
|
|
304
305
|
});
|
|
305
306
|
}
|
|
@@ -312,7 +313,7 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
312
313
|
if (!t.rules.global.cache.has(o)) {
|
|
313
314
|
t.rules.global.cache.add(o);
|
|
314
315
|
const i = [];
|
|
315
|
-
|
|
316
|
+
Ie(n, [], [], e, (l) => i.push(l));
|
|
316
317
|
const s = `@keyframes ${o}{${i.join("")}}`;
|
|
317
318
|
t.rules.global.apply(s);
|
|
318
319
|
}
|
|
@@ -334,14 +335,14 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
334
335
|
toString() {
|
|
335
336
|
return this.computedValue;
|
|
336
337
|
}
|
|
337
|
-
},
|
|
338
|
+
}, mo = De(), go = (e, t) => mo(e, () => (n, o) => {
|
|
338
339
|
o = typeof n == "object" && n || Object(o);
|
|
339
340
|
const r = `.${n = (n = typeof n == "string" ? n : "") || `${ne(e.prefix)}t-${he(o)}`}`, i = {}, s = [];
|
|
340
341
|
for (const a in o) {
|
|
341
342
|
i[a] = {};
|
|
342
343
|
for (const c in o[a]) {
|
|
343
|
-
const
|
|
344
|
-
i[a][c] = new fo(c, u, a, e.prefix), s.push(`${
|
|
344
|
+
const m = `--${ne(e.prefix)}${a}-${c}`, u = on(String(o[a][c]), e.prefix, a);
|
|
345
|
+
i[a][c] = new fo(c, u, a, e.prefix), s.push(`${m}:${u}`);
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
const l = () => {
|
|
@@ -360,9 +361,9 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
360
361
|
let o = !1;
|
|
361
362
|
const r = po(n, (i) => {
|
|
362
363
|
o = !0;
|
|
363
|
-
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 || {},
|
|
364
|
+
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 || { ...Vn }, utils: typeof i.utils == "object" && i.utils || {} }, u = eo(a), f = { css: Bt(m, u), globalCss: ao(m, u), keyframes: uo(m, u), createTheme: go(m, u), reset() {
|
|
364
365
|
u.reset(), f.theme.toString();
|
|
365
|
-
}, theme: {}, sheet: u, config:
|
|
366
|
+
}, theme: {}, sheet: u, config: m, prefix: s, getCssText: u.toString, toString: u.toString };
|
|
366
367
|
return String(f.theme = f.createTheme(c)), f;
|
|
367
368
|
});
|
|
368
369
|
return o || r.reset(), r;
|
|
@@ -370,16 +371,16 @@ var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap
|
|
|
370
371
|
return t.styled = (({ config: n, sheet: o }) => ho(n, () => {
|
|
371
372
|
const r = Bt(n, o);
|
|
372
373
|
return (...i) => {
|
|
373
|
-
const s = r(...i), l = s[pe].type, a = Se.forwardRef((c,
|
|
374
|
+
const s = r(...i), l = s[pe].type, a = Se.forwardRef((c, m) => {
|
|
374
375
|
const u = c && c.as || l, { props: f, deferredInjector: d } = s(c);
|
|
375
|
-
return delete f.as, f.ref =
|
|
376
|
+
return delete f.as, f.ref = m, d ? Se.createElement(Se.Fragment, null, Se.createElement(u, f), Se.createElement(d, null)) : Se.createElement(u, f);
|
|
376
377
|
});
|
|
377
378
|
return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[pe] = s[pe], a;
|
|
378
379
|
};
|
|
379
380
|
}))(t), t;
|
|
380
381
|
};
|
|
381
|
-
let
|
|
382
|
-
const
|
|
382
|
+
let At = 9999;
|
|
383
|
+
const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Di, getCssText: Mi } = bo({
|
|
383
384
|
theme: {
|
|
384
385
|
colors: {
|
|
385
386
|
gray50: "#F9FAFA",
|
|
@@ -497,8 +498,8 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
497
498
|
* By using createLayerBelow() we can order the list of layers.
|
|
498
499
|
* Layers higher up will be on top of layers lower down.
|
|
499
500
|
*/
|
|
500
|
-
toast:
|
|
501
|
-
overlayCard:
|
|
501
|
+
toast: Ot(),
|
|
502
|
+
overlayCard: Ot()
|
|
502
503
|
}
|
|
503
504
|
},
|
|
504
505
|
media: {
|
|
@@ -519,9 +520,9 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
519
520
|
"100%": {
|
|
520
521
|
strokeDashoffset: 0
|
|
521
522
|
}
|
|
522
|
-
}), xo =
|
|
523
|
+
}), xo = N("svg", {
|
|
523
524
|
animation: `${yo} 2s linear infinite`
|
|
524
|
-
}), wo =
|
|
525
|
+
}), wo = N("circle", {
|
|
525
526
|
animation: `${vo} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
526
527
|
fill: "transparent",
|
|
527
528
|
stroke: "currentColor",
|
|
@@ -530,7 +531,7 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
530
531
|
strokeLinecap: "round",
|
|
531
532
|
strokeMiterlimit: 10,
|
|
532
533
|
strokeWidth: 12
|
|
533
|
-
}), $o =
|
|
534
|
+
}), $o = N("div", {
|
|
534
535
|
lineHeight: 0,
|
|
535
536
|
flexShrink: 0,
|
|
536
537
|
variants: {
|
|
@@ -592,7 +593,7 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
592
593
|
)
|
|
593
594
|
}
|
|
594
595
|
)
|
|
595
|
-
), Ro =
|
|
596
|
+
), Ro = N("button", {
|
|
596
597
|
appearance: "none",
|
|
597
598
|
margin: 0,
|
|
598
599
|
padding: 0,
|
|
@@ -750,8 +751,8 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
750
751
|
color: "secondary",
|
|
751
752
|
size: "md"
|
|
752
753
|
}
|
|
753
|
-
}),
|
|
754
|
-
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */
|
|
754
|
+
}), rn = xe(
|
|
755
|
+
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */ se(
|
|
755
756
|
Ro,
|
|
756
757
|
{
|
|
757
758
|
ref: s,
|
|
@@ -767,7 +768,7 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
767
768
|
]
|
|
768
769
|
}
|
|
769
770
|
))
|
|
770
|
-
), Eo =
|
|
771
|
+
), Eo = N("div", {
|
|
771
772
|
padding: "$3",
|
|
772
773
|
borderRadius: "$md",
|
|
773
774
|
variants: {
|
|
@@ -806,7 +807,7 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
806
807
|
color: "info",
|
|
807
808
|
size: "md"
|
|
808
809
|
}
|
|
809
|
-
}),
|
|
810
|
+
}), Li = xe(
|
|
810
811
|
({ children: e, ...t }, n) => /* @__PURE__ */ z(
|
|
811
812
|
Eo,
|
|
812
813
|
{
|
|
@@ -828,7 +829,7 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
828
829
|
}), Io = Me({
|
|
829
830
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
830
831
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
831
|
-
}),
|
|
832
|
+
}), Bo = Ve({
|
|
832
833
|
backgroundColor: "white",
|
|
833
834
|
boxShadow: "$overlayCard",
|
|
834
835
|
borderRadius: "$sm",
|
|
@@ -838,7 +839,7 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
838
839
|
// so for other popups that uses `OverlayCard` to work
|
|
839
840
|
// we need to explicitly set this.
|
|
840
841
|
pointerEvents: "auto"
|
|
841
|
-
}),
|
|
842
|
+
}), Po = Ve({
|
|
842
843
|
animationDuration: "400ms",
|
|
843
844
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
844
845
|
willChange: "transform, opacity",
|
|
@@ -848,13 +849,13 @@ const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi,
|
|
|
848
849
|
'&[data-side="bottom"]': { animationName: Co },
|
|
849
850
|
'&[data-side="left"]': { animationName: ko }
|
|
850
851
|
}
|
|
851
|
-
}),
|
|
852
|
+
}), sn = N(
|
|
852
853
|
"div",
|
|
853
|
-
|
|
854
|
-
|
|
854
|
+
Bo,
|
|
855
|
+
Po
|
|
855
856
|
);
|
|
856
|
-
function
|
|
857
|
-
return
|
|
857
|
+
function le(e) {
|
|
858
|
+
return ln(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
858
859
|
}
|
|
859
860
|
function q(e) {
|
|
860
861
|
var t;
|
|
@@ -862,21 +863,21 @@ function q(e) {
|
|
|
862
863
|
}
|
|
863
864
|
function re(e) {
|
|
864
865
|
var t;
|
|
865
|
-
return (t = (
|
|
866
|
+
return (t = (ln(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
866
867
|
}
|
|
867
|
-
function
|
|
868
|
+
function ln(e) {
|
|
868
869
|
return e instanceof Node || e instanceof q(e).Node;
|
|
869
870
|
}
|
|
870
|
-
function
|
|
871
|
+
function j(e) {
|
|
871
872
|
return e instanceof Element || e instanceof q(e).Element;
|
|
872
873
|
}
|
|
873
874
|
function Z(e) {
|
|
874
875
|
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
+
function dt(e) {
|
|
877
878
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
878
879
|
}
|
|
879
|
-
function
|
|
880
|
+
function _e(e) {
|
|
880
881
|
const {
|
|
881
882
|
overflow: t,
|
|
882
883
|
overflowX: n,
|
|
@@ -886,7 +887,7 @@ function Ve(e) {
|
|
|
886
887
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
887
888
|
}
|
|
888
889
|
function Ao(e) {
|
|
889
|
-
return ["table", "td", "th"].includes(
|
|
890
|
+
return ["table", "td", "th"].includes(le(e));
|
|
890
891
|
}
|
|
891
892
|
function bt(e) {
|
|
892
893
|
const t = yt(), n = J(e);
|
|
@@ -905,13 +906,13 @@ function yt() {
|
|
|
905
906
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
906
907
|
}
|
|
907
908
|
function Ae(e) {
|
|
908
|
-
return ["html", "body", "#document"].includes(
|
|
909
|
+
return ["html", "body", "#document"].includes(le(e));
|
|
909
910
|
}
|
|
910
911
|
function J(e) {
|
|
911
912
|
return q(e).getComputedStyle(e);
|
|
912
913
|
}
|
|
913
|
-
function
|
|
914
|
-
return
|
|
914
|
+
function tt(e) {
|
|
915
|
+
return j(e) ? {
|
|
915
916
|
scrollLeft: e.scrollLeft,
|
|
916
917
|
scrollTop: e.scrollTop
|
|
917
918
|
} : {
|
|
@@ -920,26 +921,26 @@ function et(e) {
|
|
|
920
921
|
};
|
|
921
922
|
}
|
|
922
923
|
function ye(e) {
|
|
923
|
-
if (
|
|
924
|
+
if (le(e) === "html")
|
|
924
925
|
return e;
|
|
925
926
|
const t = (
|
|
926
927
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
927
928
|
e.assignedSlot || // DOM Element detected.
|
|
928
929
|
e.parentNode || // ShadowRoot detected.
|
|
929
|
-
|
|
930
|
+
dt(e) && e.host || // Fallback.
|
|
930
931
|
re(e)
|
|
931
932
|
);
|
|
932
|
-
return
|
|
933
|
+
return dt(t) ? t.host : t;
|
|
933
934
|
}
|
|
934
|
-
function
|
|
935
|
+
function an(e) {
|
|
935
936
|
const t = ye(e);
|
|
936
|
-
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) &&
|
|
937
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : an(t);
|
|
937
938
|
}
|
|
938
939
|
function ie(e, t, n) {
|
|
939
940
|
var o;
|
|
940
941
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
941
|
-
const r =
|
|
942
|
-
return i ? t.concat(s, s.visualViewport || [],
|
|
942
|
+
const r = an(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = q(r);
|
|
943
|
+
return i ? t.concat(s, s.visualViewport || [], _e(r) ? r : [], s.frameElement && n ? ie(s.frameElement) : []) : t.concat(r, ie(r, [], n));
|
|
943
944
|
}
|
|
944
945
|
function Do(e) {
|
|
945
946
|
let t = e.activeElement;
|
|
@@ -955,7 +956,7 @@ function be(e, t) {
|
|
|
955
956
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
956
957
|
if (e.contains(t))
|
|
957
958
|
return !0;
|
|
958
|
-
if (n &&
|
|
959
|
+
if (n && dt(n)) {
|
|
959
960
|
let o = t;
|
|
960
961
|
for (; o; ) {
|
|
961
962
|
if (e === o)
|
|
@@ -968,7 +969,7 @@ function be(e, t) {
|
|
|
968
969
|
function Mo() {
|
|
969
970
|
return /apple/i.test(navigator.vendor);
|
|
970
971
|
}
|
|
971
|
-
function
|
|
972
|
+
function Ue(e, t) {
|
|
972
973
|
const n = ["mouse", "pen"];
|
|
973
974
|
return t || n.push("", void 0), n.includes(e);
|
|
974
975
|
}
|
|
@@ -978,10 +979,10 @@ function Lo(e) {
|
|
|
978
979
|
function Fo(e) {
|
|
979
980
|
return e.matches("html,body");
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function ge(e) {
|
|
982
983
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
983
984
|
}
|
|
984
|
-
function
|
|
985
|
+
function rt(e, t) {
|
|
985
986
|
if (t == null)
|
|
986
987
|
return !1;
|
|
987
988
|
if ("composedPath" in e)
|
|
@@ -996,7 +997,7 @@ const zo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([co
|
|
|
996
997
|
function Wo(e) {
|
|
997
998
|
return Z(e) && e.matches(zo);
|
|
998
999
|
}
|
|
999
|
-
const oe = Math.min, Y = Math.max,
|
|
1000
|
+
const oe = Math.min, Y = Math.max, qe = Math.round, Xe = Math.floor, ae = (e) => ({
|
|
1000
1001
|
x: e,
|
|
1001
1002
|
y: e
|
|
1002
1003
|
}), No = {
|
|
@@ -1008,7 +1009,7 @@ const oe = Math.min, Y = Math.max, Ue = Math.round, Ye = Math.floor, le = (e) =>
|
|
|
1008
1009
|
start: "end",
|
|
1009
1010
|
end: "start"
|
|
1010
1011
|
};
|
|
1011
|
-
function
|
|
1012
|
+
function Dt(e, t, n) {
|
|
1012
1013
|
return Y(e, oe(t, n));
|
|
1013
1014
|
}
|
|
1014
1015
|
function Le(e, t) {
|
|
@@ -1017,32 +1018,32 @@ function Le(e, t) {
|
|
|
1017
1018
|
function ee(e) {
|
|
1018
1019
|
return e.split("-")[0];
|
|
1019
1020
|
}
|
|
1020
|
-
function
|
|
1021
|
+
function Ye(e) {
|
|
1021
1022
|
return e.split("-")[1];
|
|
1022
1023
|
}
|
|
1023
|
-
function
|
|
1024
|
+
function cn(e) {
|
|
1024
1025
|
return e === "x" ? "y" : "x";
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
+
function un(e) {
|
|
1027
1028
|
return e === "y" ? "height" : "width";
|
|
1028
1029
|
}
|
|
1029
1030
|
function Fe(e) {
|
|
1030
1031
|
return ["top", "bottom"].includes(ee(e)) ? "y" : "x";
|
|
1031
1032
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1033
|
+
function dn(e) {
|
|
1034
|
+
return cn(Fe(e));
|
|
1034
1035
|
}
|
|
1035
1036
|
function Ho(e, t, n) {
|
|
1036
1037
|
n === void 0 && (n = !1);
|
|
1037
|
-
const o =
|
|
1038
|
+
const o = Ye(e), r = dn(e), i = un(r);
|
|
1038
1039
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1039
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1040
|
+
return t.reference[i] > t.floating[i] && (s = Ze(s)), [s, Ze(s)];
|
|
1040
1041
|
}
|
|
1041
1042
|
function Vo(e) {
|
|
1042
|
-
const t =
|
|
1043
|
-
return [
|
|
1043
|
+
const t = Ze(e);
|
|
1044
|
+
return [ft(e), t, ft(t)];
|
|
1044
1045
|
}
|
|
1045
|
-
function
|
|
1046
|
+
function ft(e) {
|
|
1046
1047
|
return e.replace(/start|end/g, (t) => jo[t]);
|
|
1047
1048
|
}
|
|
1048
1049
|
function _o(e, t, n) {
|
|
@@ -1059,11 +1060,11 @@ function _o(e, t, n) {
|
|
|
1059
1060
|
}
|
|
1060
1061
|
}
|
|
1061
1062
|
function Yo(e, t, n, o) {
|
|
1062
|
-
const r =
|
|
1063
|
+
const r = Ye(e);
|
|
1063
1064
|
let i = _o(ee(e), n === "start", o);
|
|
1064
|
-
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(
|
|
1065
|
+
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(ft)))), i;
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
+
function Ze(e) {
|
|
1067
1068
|
return e.replace(/left|right|bottom|top/g, (t) => No[t]);
|
|
1068
1069
|
}
|
|
1069
1070
|
function Xo(e) {
|
|
@@ -1075,7 +1076,7 @@ function Xo(e) {
|
|
|
1075
1076
|
...e
|
|
1076
1077
|
};
|
|
1077
1078
|
}
|
|
1078
|
-
function
|
|
1079
|
+
function fn(e) {
|
|
1079
1080
|
return typeof e != "number" ? Xo(e) : {
|
|
1080
1081
|
top: e,
|
|
1081
1082
|
right: e,
|
|
@@ -1092,23 +1093,23 @@ function Oe(e) {
|
|
|
1092
1093
|
bottom: e.y + e.height
|
|
1093
1094
|
};
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
+
function Mt(e, t, n) {
|
|
1096
1097
|
let {
|
|
1097
1098
|
reference: o,
|
|
1098
1099
|
floating: r
|
|
1099
1100
|
} = e;
|
|
1100
|
-
const i = Fe(t), s =
|
|
1101
|
+
const i = Fe(t), s = dn(t), l = un(s), a = ee(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;
|
|
1101
1102
|
let d;
|
|
1102
1103
|
switch (a) {
|
|
1103
1104
|
case "top":
|
|
1104
1105
|
d = {
|
|
1105
|
-
x:
|
|
1106
|
+
x: m,
|
|
1106
1107
|
y: o.y - r.height
|
|
1107
1108
|
};
|
|
1108
1109
|
break;
|
|
1109
1110
|
case "bottom":
|
|
1110
1111
|
d = {
|
|
1111
|
-
x:
|
|
1112
|
+
x: m,
|
|
1112
1113
|
y: o.y + o.height
|
|
1113
1114
|
};
|
|
1114
1115
|
break;
|
|
@@ -1130,7 +1131,7 @@ function Lt(e, t, n) {
|
|
|
1130
1131
|
y: o.y
|
|
1131
1132
|
};
|
|
1132
1133
|
}
|
|
1133
|
-
switch (
|
|
1134
|
+
switch (Ye(t)) {
|
|
1134
1135
|
case "start":
|
|
1135
1136
|
d[s] -= f * (n && c ? -1 : 1);
|
|
1136
1137
|
break;
|
|
@@ -1152,20 +1153,20 @@ const Ko = async (e, t, n) => {
|
|
|
1152
1153
|
floating: t,
|
|
1153
1154
|
strategy: r
|
|
1154
1155
|
}), {
|
|
1155
|
-
x:
|
|
1156
|
+
x: m,
|
|
1156
1157
|
y: u
|
|
1157
|
-
} =
|
|
1158
|
+
} = Mt(c, o, a), f = o, d = {}, g = 0;
|
|
1158
1159
|
for (let p = 0; p < l.length; p++) {
|
|
1159
1160
|
const {
|
|
1160
1161
|
name: w,
|
|
1161
1162
|
fn: h
|
|
1162
1163
|
} = l[p], {
|
|
1163
1164
|
x,
|
|
1164
|
-
y:
|
|
1165
|
+
y: B,
|
|
1165
1166
|
data: S,
|
|
1166
1167
|
reset: k
|
|
1167
1168
|
} = await h({
|
|
1168
|
-
x:
|
|
1169
|
+
x: m,
|
|
1169
1170
|
y: u,
|
|
1170
1171
|
initialPlacement: o,
|
|
1171
1172
|
placement: f,
|
|
@@ -1178,23 +1179,23 @@ const Ko = async (e, t, n) => {
|
|
|
1178
1179
|
floating: t
|
|
1179
1180
|
}
|
|
1180
1181
|
});
|
|
1181
|
-
|
|
1182
|
+
m = x ?? m, u = B ?? u, d = {
|
|
1182
1183
|
...d,
|
|
1183
1184
|
[w]: {
|
|
1184
1185
|
...d[w],
|
|
1185
1186
|
...S
|
|
1186
1187
|
}
|
|
1187
|
-
}, k &&
|
|
1188
|
+
}, k && g <= 50 && (g++, typeof k == "object" && (k.placement && (f = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
|
|
1188
1189
|
reference: e,
|
|
1189
1190
|
floating: t,
|
|
1190
1191
|
strategy: r
|
|
1191
1192
|
}) : k.rects), {
|
|
1192
|
-
x:
|
|
1193
|
+
x: m,
|
|
1193
1194
|
y: u
|
|
1194
|
-
} =
|
|
1195
|
+
} = Mt(c, f, a)), p = -1);
|
|
1195
1196
|
}
|
|
1196
1197
|
return {
|
|
1197
|
-
x:
|
|
1198
|
+
x: m,
|
|
1198
1199
|
y: u,
|
|
1199
1200
|
placement: f,
|
|
1200
1201
|
strategy: r,
|
|
@@ -1213,20 +1214,20 @@ async function vt(e, t) {
|
|
|
1213
1214
|
strategy: a
|
|
1214
1215
|
} = e, {
|
|
1215
1216
|
boundary: c = "clippingAncestors",
|
|
1216
|
-
rootBoundary:
|
|
1217
|
+
rootBoundary: m = "viewport",
|
|
1217
1218
|
elementContext: u = "floating",
|
|
1218
1219
|
altBoundary: f = !1,
|
|
1219
1220
|
padding: d = 0
|
|
1220
|
-
} = Le(t, e),
|
|
1221
|
+
} = Le(t, e), g = fn(d), w = l[f ? u === "floating" ? "reference" : "floating" : u], h = Oe(await i.getClippingRect({
|
|
1221
1222
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
1222
1223
|
boundary: c,
|
|
1223
|
-
rootBoundary:
|
|
1224
|
+
rootBoundary: m,
|
|
1224
1225
|
strategy: a
|
|
1225
1226
|
})), x = u === "floating" ? {
|
|
1226
1227
|
...s.floating,
|
|
1227
1228
|
x: o,
|
|
1228
1229
|
y: r
|
|
1229
|
-
} : s.reference,
|
|
1230
|
+
} : s.reference, B = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), S = await (i.isElement == null ? void 0 : i.isElement(B)) ? await (i.getScale == null ? void 0 : i.getScale(B)) || {
|
|
1230
1231
|
x: 1,
|
|
1231
1232
|
y: 1
|
|
1232
1233
|
} : {
|
|
@@ -1235,14 +1236,14 @@ async function vt(e, t) {
|
|
|
1235
1236
|
}, k = Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1236
1237
|
elements: l,
|
|
1237
1238
|
rect: x,
|
|
1238
|
-
offsetParent:
|
|
1239
|
+
offsetParent: B,
|
|
1239
1240
|
strategy: a
|
|
1240
1241
|
}) : x);
|
|
1241
1242
|
return {
|
|
1242
|
-
top: (h.top - k.top +
|
|
1243
|
-
bottom: (k.bottom - h.bottom +
|
|
1244
|
-
left: (h.left - k.left +
|
|
1245
|
-
right: (k.right - h.right +
|
|
1243
|
+
top: (h.top - k.top + g.top) / S.y,
|
|
1244
|
+
bottom: (k.bottom - h.bottom + g.bottom) / S.y,
|
|
1245
|
+
left: (h.left - k.left + g.left) / S.x,
|
|
1246
|
+
right: (k.right - h.right + g.right) / S.x
|
|
1246
1247
|
};
|
|
1247
1248
|
}
|
|
1248
1249
|
const Go = function(e) {
|
|
@@ -1259,28 +1260,28 @@ const Go = function(e) {
|
|
|
1259
1260
|
platform: a,
|
|
1260
1261
|
elements: c
|
|
1261
1262
|
} = t, {
|
|
1262
|
-
mainAxis:
|
|
1263
|
+
mainAxis: m = !0,
|
|
1263
1264
|
crossAxis: u = !0,
|
|
1264
1265
|
fallbackPlacements: f,
|
|
1265
1266
|
fallbackStrategy: d = "bestFit",
|
|
1266
|
-
fallbackAxisSideDirection:
|
|
1267
|
+
fallbackAxisSideDirection: g = "none",
|
|
1267
1268
|
flipAlignment: p = !0,
|
|
1268
1269
|
...w
|
|
1269
1270
|
} = Le(e, t);
|
|
1270
1271
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1271
1272
|
return {};
|
|
1272
|
-
const h = ee(r), x = ee(l) === l,
|
|
1273
|
-
!f &&
|
|
1274
|
-
const k = [l, ...S], C = await vt(t, w),
|
|
1273
|
+
const h = ee(r), x = ee(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ze(l)] : Vo(l));
|
|
1274
|
+
!f && g !== "none" && S.push(...Yo(l, p, g, B));
|
|
1275
|
+
const k = [l, ...S], C = await vt(t, w), P = [];
|
|
1275
1276
|
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1276
|
-
if (
|
|
1277
|
-
const M = Ho(r, s,
|
|
1278
|
-
|
|
1277
|
+
if (m && P.push(C[h]), u) {
|
|
1278
|
+
const M = Ho(r, s, B);
|
|
1279
|
+
P.push(C[M[0]], C[M[1]]);
|
|
1279
1280
|
}
|
|
1280
1281
|
if (T = [...T, {
|
|
1281
1282
|
placement: r,
|
|
1282
|
-
overflows:
|
|
1283
|
-
}], !
|
|
1283
|
+
overflows: P
|
|
1284
|
+
}], !P.every((M) => M <= 0)) {
|
|
1284
1285
|
var D, A;
|
|
1285
1286
|
const M = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, O = k[M];
|
|
1286
1287
|
if (O)
|
|
@@ -1317,7 +1318,7 @@ const Go = function(e) {
|
|
|
1317
1318
|
}
|
|
1318
1319
|
};
|
|
1319
1320
|
};
|
|
1320
|
-
function
|
|
1321
|
+
function mn(e) {
|
|
1321
1322
|
const t = oe(...e.map((i) => i.left)), n = oe(...e.map((i) => i.top)), o = Y(...e.map((i) => i.right)), r = Y(...e.map((i) => i.bottom));
|
|
1322
1323
|
return {
|
|
1323
1324
|
x: t,
|
|
@@ -1333,7 +1334,7 @@ function Uo(e) {
|
|
|
1333
1334
|
const i = t[r];
|
|
1334
1335
|
!o || i.y - o.y > o.height / 2 ? n.push([i]) : n[n.length - 1].push(i), o = i;
|
|
1335
1336
|
}
|
|
1336
|
-
return n.map((r) => Oe(
|
|
1337
|
+
return n.map((r) => Oe(mn(r)));
|
|
1337
1338
|
}
|
|
1338
1339
|
const qo = function(e) {
|
|
1339
1340
|
return e === void 0 && (e = {}), {
|
|
@@ -1350,8 +1351,8 @@ const qo = function(e) {
|
|
|
1350
1351
|
padding: l = 2,
|
|
1351
1352
|
x: a,
|
|
1352
1353
|
y: c
|
|
1353
|
-
} = Le(e, t),
|
|
1354
|
-
function
|
|
1354
|
+
} = Le(e, t), m = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(o.reference)) || []), u = Uo(m), f = Oe(mn(m)), d = fn(l);
|
|
1355
|
+
function g() {
|
|
1355
1356
|
if (u.length === 2 && u[0].left > u[1].right && a != null && c != null)
|
|
1356
1357
|
return u.find((w) => a > w.left - d.left && a < w.right + d.right && c > w.top - d.top && c < w.bottom + d.bottom) || f;
|
|
1357
1358
|
if (u.length >= 2) {
|
|
@@ -1368,12 +1369,12 @@ const qo = function(e) {
|
|
|
1368
1369
|
y: O
|
|
1369
1370
|
};
|
|
1370
1371
|
}
|
|
1371
|
-
const w = ee(n) === "left", h = Y(...u.map((A) => A.right)), x = oe(...u.map((A) => A.left)),
|
|
1372
|
+
const w = ee(n) === "left", h = Y(...u.map((A) => A.right)), x = oe(...u.map((A) => A.left)), B = u.filter((A) => w ? A.left === x : A.right === h), S = B[0].top, k = B[B.length - 1].bottom, C = x, P = h, T = P - C, D = k - S;
|
|
1372
1373
|
return {
|
|
1373
1374
|
top: S,
|
|
1374
1375
|
bottom: k,
|
|
1375
1376
|
left: C,
|
|
1376
|
-
right:
|
|
1377
|
+
right: P,
|
|
1377
1378
|
width: T,
|
|
1378
1379
|
height: D,
|
|
1379
1380
|
x: C,
|
|
@@ -1384,7 +1385,7 @@ const qo = function(e) {
|
|
|
1384
1385
|
}
|
|
1385
1386
|
const p = await i.getElementRects({
|
|
1386
1387
|
reference: {
|
|
1387
|
-
getBoundingClientRect:
|
|
1388
|
+
getBoundingClientRect: g
|
|
1388
1389
|
},
|
|
1389
1390
|
floating: o.floating,
|
|
1390
1391
|
strategy: s
|
|
@@ -1402,11 +1403,11 @@ async function Zo(e, t) {
|
|
|
1402
1403
|
placement: n,
|
|
1403
1404
|
platform: o,
|
|
1404
1405
|
elements: r
|
|
1405
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ee(n), l =
|
|
1406
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ee(n), l = Ye(n), a = Fe(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, u = Le(t, e);
|
|
1406
1407
|
let {
|
|
1407
1408
|
mainAxis: f,
|
|
1408
1409
|
crossAxis: d,
|
|
1409
|
-
alignmentAxis:
|
|
1410
|
+
alignmentAxis: g
|
|
1410
1411
|
} = typeof u == "number" ? {
|
|
1411
1412
|
mainAxis: u,
|
|
1412
1413
|
crossAxis: 0,
|
|
@@ -1417,12 +1418,12 @@ async function Zo(e, t) {
|
|
|
1417
1418
|
alignmentAxis: null,
|
|
1418
1419
|
...u
|
|
1419
1420
|
};
|
|
1420
|
-
return l && typeof
|
|
1421
|
-
x: d *
|
|
1421
|
+
return l && typeof g == "number" && (d = l === "end" ? g * -1 : g), a ? {
|
|
1422
|
+
x: d * m,
|
|
1422
1423
|
y: f * c
|
|
1423
1424
|
} : {
|
|
1424
1425
|
x: f * c,
|
|
1425
|
-
y: d *
|
|
1426
|
+
y: d * m
|
|
1426
1427
|
};
|
|
1427
1428
|
}
|
|
1428
1429
|
const Jo = function(e) {
|
|
@@ -1475,20 +1476,20 @@ const Jo = function(e) {
|
|
|
1475
1476
|
} = Le(e, t), c = {
|
|
1476
1477
|
x: n,
|
|
1477
1478
|
y: o
|
|
1478
|
-
},
|
|
1479
|
-
let d = c[f],
|
|
1479
|
+
}, m = await vt(t, a), u = Fe(ee(r)), f = cn(u);
|
|
1480
|
+
let d = c[f], g = c[u];
|
|
1480
1481
|
if (i) {
|
|
1481
|
-
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = d +
|
|
1482
|
-
d =
|
|
1482
|
+
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = d + m[w], B = d - m[h];
|
|
1483
|
+
d = Dt(x, d, B);
|
|
1483
1484
|
}
|
|
1484
1485
|
if (s) {
|
|
1485
|
-
const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x =
|
|
1486
|
-
|
|
1486
|
+
const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x = g + m[w], B = g - m[h];
|
|
1487
|
+
g = Dt(x, g, B);
|
|
1487
1488
|
}
|
|
1488
1489
|
const p = l.fn({
|
|
1489
1490
|
...t,
|
|
1490
1491
|
[f]: d,
|
|
1491
|
-
[u]:
|
|
1492
|
+
[u]: g
|
|
1492
1493
|
});
|
|
1493
1494
|
return {
|
|
1494
1495
|
...p,
|
|
@@ -1513,29 +1514,29 @@ const Jo = function(e) {
|
|
|
1513
1514
|
apply: s = () => {
|
|
1514
1515
|
},
|
|
1515
1516
|
...l
|
|
1516
|
-
} = Le(e, t), a = await vt(t, l), c = ee(n),
|
|
1517
|
+
} = Le(e, t), a = await vt(t, l), c = ee(n), m = Ye(n), u = Fe(n) === "y", {
|
|
1517
1518
|
width: f,
|
|
1518
1519
|
height: d
|
|
1519
1520
|
} = o.floating;
|
|
1520
|
-
let
|
|
1521
|
-
c === "top" || c === "bottom" ? (
|
|
1522
|
-
const w = d - a[
|
|
1523
|
-
let
|
|
1521
|
+
let g, p;
|
|
1522
|
+
c === "top" || c === "bottom" ? (g = c, p = m === (await (r.isRTL == null ? void 0 : r.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (p = c, g = m === "end" ? "top" : "bottom");
|
|
1523
|
+
const w = d - a[g], h = f - a[p], x = !t.middlewareData.shift;
|
|
1524
|
+
let B = w, S = h;
|
|
1524
1525
|
if (u) {
|
|
1525
1526
|
const C = f - a.left - a.right;
|
|
1526
|
-
S =
|
|
1527
|
+
S = m || x ? oe(h, C) : C;
|
|
1527
1528
|
} else {
|
|
1528
1529
|
const C = d - a.top - a.bottom;
|
|
1529
|
-
|
|
1530
|
+
B = m || x ? oe(w, C) : C;
|
|
1530
1531
|
}
|
|
1531
|
-
if (x && !
|
|
1532
|
-
const C = Y(a.left, 0),
|
|
1533
|
-
u ? S = f - 2 * (C !== 0 ||
|
|
1532
|
+
if (x && !m) {
|
|
1533
|
+
const C = Y(a.left, 0), P = Y(a.right, 0), T = Y(a.top, 0), D = Y(a.bottom, 0);
|
|
1534
|
+
u ? S = f - 2 * (C !== 0 || P !== 0 ? C + P : Y(a.left, a.right)) : B = d - 2 * (T !== 0 || D !== 0 ? T + D : Y(a.top, a.bottom));
|
|
1534
1535
|
}
|
|
1535
1536
|
await s({
|
|
1536
1537
|
...t,
|
|
1537
1538
|
availableWidth: S,
|
|
1538
|
-
availableHeight:
|
|
1539
|
+
availableHeight: B
|
|
1539
1540
|
});
|
|
1540
1541
|
const k = await r.getDimensions(i.floating);
|
|
1541
1542
|
return f !== k.width || d !== k.height ? {
|
|
@@ -1546,10 +1547,10 @@ const Jo = function(e) {
|
|
|
1546
1547
|
}
|
|
1547
1548
|
};
|
|
1548
1549
|
};
|
|
1549
|
-
function
|
|
1550
|
+
function gn(e) {
|
|
1550
1551
|
const t = J(e);
|
|
1551
1552
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1552
|
-
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l =
|
|
1553
|
+
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = qe(n) !== i || qe(o) !== s;
|
|
1553
1554
|
return l && (n = i, o = s), {
|
|
1554
1555
|
width: n,
|
|
1555
1556
|
height: o,
|
|
@@ -1557,25 +1558,25 @@ function hn(e) {
|
|
|
1557
1558
|
};
|
|
1558
1559
|
}
|
|
1559
1560
|
function xt(e) {
|
|
1560
|
-
return
|
|
1561
|
+
return j(e) ? e : e.contextElement;
|
|
1561
1562
|
}
|
|
1562
1563
|
function Pe(e) {
|
|
1563
1564
|
const t = xt(e);
|
|
1564
1565
|
if (!Z(t))
|
|
1565
|
-
return
|
|
1566
|
+
return ae(1);
|
|
1566
1567
|
const n = t.getBoundingClientRect(), {
|
|
1567
1568
|
width: o,
|
|
1568
1569
|
height: r,
|
|
1569
1570
|
$: i
|
|
1570
|
-
} =
|
|
1571
|
-
let s = (i ?
|
|
1571
|
+
} = gn(t);
|
|
1572
|
+
let s = (i ? qe(n.width) : n.width) / o, l = (i ? qe(n.height) : n.height) / r;
|
|
1572
1573
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1573
1574
|
x: s,
|
|
1574
1575
|
y: l
|
|
1575
1576
|
};
|
|
1576
1577
|
}
|
|
1577
|
-
const tr = /* @__PURE__ */
|
|
1578
|
-
function
|
|
1578
|
+
const tr = /* @__PURE__ */ ae(0);
|
|
1579
|
+
function pn(e) {
|
|
1579
1580
|
const t = q(e);
|
|
1580
1581
|
return !yt() || !t.visualViewport ? tr : {
|
|
1581
1582
|
x: t.visualViewport.offsetLeft,
|
|
@@ -1588,27 +1589,27 @@ function nr(e, t, n) {
|
|
|
1588
1589
|
function ve(e, t, n, o) {
|
|
1589
1590
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1590
1591
|
const r = e.getBoundingClientRect(), i = xt(e);
|
|
1591
|
-
let s =
|
|
1592
|
-
t && (o ?
|
|
1593
|
-
const l = nr(i, n, o) ?
|
|
1594
|
-
let a = (r.left + l.x) / s.x, c = (r.top + l.y) / s.y,
|
|
1592
|
+
let s = ae(1);
|
|
1593
|
+
t && (o ? j(o) && (s = Pe(o)) : s = Pe(e));
|
|
1594
|
+
const l = nr(i, n, o) ? pn(i) : ae(0);
|
|
1595
|
+
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;
|
|
1595
1596
|
if (i) {
|
|
1596
|
-
const f = q(i), d = o &&
|
|
1597
|
-
let
|
|
1598
|
-
for (; p && o && d !==
|
|
1599
|
-
const w = Pe(p), h = p.getBoundingClientRect(), x = J(p),
|
|
1600
|
-
a *= w.x, c *= w.y,
|
|
1597
|
+
const f = q(i), d = o && j(o) ? q(o) : o;
|
|
1598
|
+
let g = f, p = g.frameElement;
|
|
1599
|
+
for (; p && o && d !== g; ) {
|
|
1600
|
+
const w = Pe(p), h = p.getBoundingClientRect(), x = J(p), B = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
1601
|
+
a *= w.x, c *= w.y, m *= w.x, u *= w.y, a += B, c += S, g = q(p), p = g.frameElement;
|
|
1601
1602
|
}
|
|
1602
1603
|
}
|
|
1603
1604
|
return Oe({
|
|
1604
|
-
width:
|
|
1605
|
+
width: m,
|
|
1605
1606
|
height: u,
|
|
1606
1607
|
x: a,
|
|
1607
1608
|
y: c
|
|
1608
1609
|
});
|
|
1609
1610
|
}
|
|
1610
1611
|
const or = [":popover-open", ":modal"];
|
|
1611
|
-
function
|
|
1612
|
+
function hn(e) {
|
|
1612
1613
|
return or.some((t) => {
|
|
1613
1614
|
try {
|
|
1614
1615
|
return e.matches(t);
|
|
@@ -1624,34 +1625,34 @@ function rr(e) {
|
|
|
1624
1625
|
offsetParent: o,
|
|
1625
1626
|
strategy: r
|
|
1626
1627
|
} = e;
|
|
1627
|
-
const i = r === "fixed", s = re(o), l = t ?
|
|
1628
|
+
const i = r === "fixed", s = re(o), l = t ? hn(t.floating) : !1;
|
|
1628
1629
|
if (o === s || l && i)
|
|
1629
1630
|
return n;
|
|
1630
1631
|
let a = {
|
|
1631
1632
|
scrollLeft: 0,
|
|
1632
1633
|
scrollTop: 0
|
|
1633
|
-
}, c =
|
|
1634
|
-
const
|
|
1635
|
-
if ((u || !u && !i) && ((
|
|
1634
|
+
}, c = ae(1);
|
|
1635
|
+
const m = ae(0), u = Z(o);
|
|
1636
|
+
if ((u || !u && !i) && ((le(o) !== "body" || _e(s)) && (a = tt(o)), Z(o))) {
|
|
1636
1637
|
const f = ve(o);
|
|
1637
|
-
c = Pe(o),
|
|
1638
|
+
c = Pe(o), m.x = f.x + o.clientLeft, m.y = f.y + o.clientTop;
|
|
1638
1639
|
}
|
|
1639
1640
|
return {
|
|
1640
1641
|
width: n.width * c.x,
|
|
1641
1642
|
height: n.height * c.y,
|
|
1642
|
-
x: n.x * c.x - a.scrollLeft * c.x +
|
|
1643
|
-
y: n.y * c.y - a.scrollTop * c.y +
|
|
1643
|
+
x: n.x * c.x - a.scrollLeft * c.x + m.x,
|
|
1644
|
+
y: n.y * c.y - a.scrollTop * c.y + m.y
|
|
1644
1645
|
};
|
|
1645
1646
|
}
|
|
1646
1647
|
function ir(e) {
|
|
1647
1648
|
return Array.from(e.getClientRects());
|
|
1648
1649
|
}
|
|
1649
|
-
function
|
|
1650
|
-
return ve(re(e)).left +
|
|
1650
|
+
function bn(e) {
|
|
1651
|
+
return ve(re(e)).left + tt(e).scrollLeft;
|
|
1651
1652
|
}
|
|
1652
1653
|
function sr(e) {
|
|
1653
|
-
const t = re(e), n =
|
|
1654
|
-
let s = -n.scrollLeft +
|
|
1654
|
+
const t = re(e), n = tt(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);
|
|
1655
|
+
let s = -n.scrollLeft + bn(e);
|
|
1655
1656
|
const l = -n.scrollTop;
|
|
1656
1657
|
return J(o).direction === "rtl" && (s += Y(t.clientWidth, o.clientWidth) - r), {
|
|
1657
1658
|
width: r,
|
|
@@ -1676,7 +1677,7 @@ function lr(e, t) {
|
|
|
1676
1677
|
};
|
|
1677
1678
|
}
|
|
1678
1679
|
function ar(e, t) {
|
|
1679
|
-
const n = ve(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Z(e) ? Pe(e) :
|
|
1680
|
+
const n = ve(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;
|
|
1680
1681
|
return {
|
|
1681
1682
|
width: s,
|
|
1682
1683
|
height: l,
|
|
@@ -1684,16 +1685,16 @@ function ar(e, t) {
|
|
|
1684
1685
|
y: c
|
|
1685
1686
|
};
|
|
1686
1687
|
}
|
|
1687
|
-
function
|
|
1688
|
+
function Lt(e, t, n) {
|
|
1688
1689
|
let o;
|
|
1689
1690
|
if (t === "viewport")
|
|
1690
1691
|
o = lr(e, n);
|
|
1691
1692
|
else if (t === "document")
|
|
1692
1693
|
o = sr(re(e));
|
|
1693
|
-
else if (
|
|
1694
|
+
else if (j(t))
|
|
1694
1695
|
o = ar(t, n);
|
|
1695
1696
|
else {
|
|
1696
|
-
const r =
|
|
1697
|
+
const r = pn(e);
|
|
1697
1698
|
o = {
|
|
1698
1699
|
...t,
|
|
1699
1700
|
x: t.x - r.x,
|
|
@@ -1702,20 +1703,20 @@ function Ft(e, t, n) {
|
|
|
1702
1703
|
}
|
|
1703
1704
|
return Oe(o);
|
|
1704
1705
|
}
|
|
1705
|
-
function
|
|
1706
|
+
function yn(e, t) {
|
|
1706
1707
|
const n = ye(e);
|
|
1707
|
-
return n === t || !
|
|
1708
|
+
return n === t || !j(n) || Ae(n) ? !1 : J(n).position === "fixed" || yn(n, t);
|
|
1708
1709
|
}
|
|
1709
1710
|
function cr(e, t) {
|
|
1710
1711
|
const n = t.get(e);
|
|
1711
1712
|
if (n)
|
|
1712
1713
|
return n;
|
|
1713
|
-
let o = ie(e, [], !1).filter((l) =>
|
|
1714
|
+
let o = ie(e, [], !1).filter((l) => j(l) && le(l) !== "body"), r = null;
|
|
1714
1715
|
const i = J(e).position === "fixed";
|
|
1715
1716
|
let s = i ? ye(e) : e;
|
|
1716
|
-
for (;
|
|
1717
|
+
for (; j(s) && !Ae(s); ) {
|
|
1717
1718
|
const l = J(s), a = bt(s);
|
|
1718
|
-
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) ||
|
|
1719
|
+
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || _e(s) && !a && yn(e, s)) ? o = o.filter((m) => m !== s) : r = l, s = ye(s);
|
|
1719
1720
|
}
|
|
1720
1721
|
return t.set(e, o), o;
|
|
1721
1722
|
}
|
|
@@ -1726,10 +1727,10 @@ function ur(e) {
|
|
|
1726
1727
|
rootBoundary: o,
|
|
1727
1728
|
strategy: r
|
|
1728
1729
|
} = e;
|
|
1729
|
-
const s = [...n === "clippingAncestors" ? cr(t, this._c) : [].concat(n), o], l = s[0], a = s.reduce((c,
|
|
1730
|
-
const u =
|
|
1730
|
+
const s = [...n === "clippingAncestors" ? cr(t, this._c) : [].concat(n), o], l = s[0], a = s.reduce((c, m) => {
|
|
1731
|
+
const u = Lt(t, m, r);
|
|
1731
1732
|
return c.top = Y(u.top, c.top), c.right = oe(u.right, c.right), c.bottom = oe(u.bottom, c.bottom), c.left = Y(u.left, c.left), c;
|
|
1732
|
-
},
|
|
1733
|
+
}, Lt(t, l, r));
|
|
1733
1734
|
return {
|
|
1734
1735
|
width: a.right - a.left,
|
|
1735
1736
|
height: a.bottom - a.top,
|
|
@@ -1741,7 +1742,7 @@ function dr(e) {
|
|
|
1741
1742
|
const {
|
|
1742
1743
|
width: t,
|
|
1743
1744
|
height: n
|
|
1744
|
-
} =
|
|
1745
|
+
} = gn(e);
|
|
1745
1746
|
return {
|
|
1746
1747
|
width: t,
|
|
1747
1748
|
height: n
|
|
@@ -1753,35 +1754,35 @@ function fr(e, t, n) {
|
|
|
1753
1754
|
scrollLeft: 0,
|
|
1754
1755
|
scrollTop: 0
|
|
1755
1756
|
};
|
|
1756
|
-
const a =
|
|
1757
|
+
const a = ae(0);
|
|
1757
1758
|
if (o || !o && !i)
|
|
1758
|
-
if ((
|
|
1759
|
+
if ((le(t) !== "body" || _e(r)) && (l = tt(t)), o) {
|
|
1759
1760
|
const u = ve(t, !0, i, t);
|
|
1760
1761
|
a.x = u.x + t.clientLeft, a.y = u.y + t.clientTop;
|
|
1761
1762
|
} else
|
|
1762
|
-
r && (a.x =
|
|
1763
|
-
const c = s.left + l.scrollLeft - a.x,
|
|
1763
|
+
r && (a.x = bn(r));
|
|
1764
|
+
const c = s.left + l.scrollLeft - a.x, m = s.top + l.scrollTop - a.y;
|
|
1764
1765
|
return {
|
|
1765
1766
|
x: c,
|
|
1766
|
-
y:
|
|
1767
|
+
y: m,
|
|
1767
1768
|
width: s.width,
|
|
1768
1769
|
height: s.height
|
|
1769
1770
|
};
|
|
1770
1771
|
}
|
|
1771
|
-
function
|
|
1772
|
+
function Ft(e, t) {
|
|
1772
1773
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1773
1774
|
}
|
|
1774
|
-
function
|
|
1775
|
+
function vn(e, t) {
|
|
1775
1776
|
const n = q(e);
|
|
1776
|
-
if (!Z(e) ||
|
|
1777
|
+
if (!Z(e) || hn(e))
|
|
1777
1778
|
return n;
|
|
1778
|
-
let o =
|
|
1779
|
+
let o = Ft(e, t);
|
|
1779
1780
|
for (; o && Ao(o) && J(o).position === "static"; )
|
|
1780
|
-
o =
|
|
1781
|
-
return o && (
|
|
1781
|
+
o = Ft(o, t);
|
|
1782
|
+
return o && (le(o) === "html" || le(o) === "body" && J(o).position === "static" && !bt(o)) ? n : o || Oo(e) || n;
|
|
1782
1783
|
}
|
|
1783
|
-
const
|
|
1784
|
-
const t = this.getOffsetParent ||
|
|
1784
|
+
const mr = async function(e) {
|
|
1785
|
+
const t = this.getOffsetParent || vn, n = this.getDimensions;
|
|
1785
1786
|
return {
|
|
1786
1787
|
reference: fr(e.reference, await t(e.floating), e.strategy),
|
|
1787
1788
|
floating: {
|
|
@@ -1791,20 +1792,20 @@ const gr = async function(e) {
|
|
|
1791
1792
|
}
|
|
1792
1793
|
};
|
|
1793
1794
|
};
|
|
1794
|
-
function
|
|
1795
|
+
function gr(e) {
|
|
1795
1796
|
return J(e).direction === "rtl";
|
|
1796
1797
|
}
|
|
1797
1798
|
const pr = {
|
|
1798
1799
|
convertOffsetParentRelativeRectToViewportRelativeRect: rr,
|
|
1799
1800
|
getDocumentElement: re,
|
|
1800
1801
|
getClippingRect: ur,
|
|
1801
|
-
getOffsetParent:
|
|
1802
|
-
getElementRects:
|
|
1802
|
+
getOffsetParent: vn,
|
|
1803
|
+
getElementRects: mr,
|
|
1803
1804
|
getClientRects: ir,
|
|
1804
1805
|
getDimensions: dr,
|
|
1805
1806
|
getScale: Pe,
|
|
1806
|
-
isElement:
|
|
1807
|
-
isRTL:
|
|
1807
|
+
isElement: j,
|
|
1808
|
+
isRTL: gr
|
|
1808
1809
|
};
|
|
1809
1810
|
function hr(e, t) {
|
|
1810
1811
|
let n = null, o;
|
|
@@ -1817,27 +1818,27 @@ function hr(e, t) {
|
|
|
1817
1818
|
l === void 0 && (l = !1), a === void 0 && (a = 1), i();
|
|
1818
1819
|
const {
|
|
1819
1820
|
left: c,
|
|
1820
|
-
top:
|
|
1821
|
+
top: m,
|
|
1821
1822
|
width: u,
|
|
1822
1823
|
height: f
|
|
1823
1824
|
} = e.getBoundingClientRect();
|
|
1824
1825
|
if (l || t(), !u || !f)
|
|
1825
1826
|
return;
|
|
1826
|
-
const d =
|
|
1827
|
-
rootMargin: -d + "px " + -
|
|
1827
|
+
const d = Xe(m), g = Xe(r.clientWidth - (c + u)), p = Xe(r.clientHeight - (m + f)), w = Xe(c), x = {
|
|
1828
|
+
rootMargin: -d + "px " + -g + "px " + -p + "px " + -w + "px",
|
|
1828
1829
|
threshold: Y(0, oe(1, a)) || 1
|
|
1829
1830
|
};
|
|
1830
|
-
let
|
|
1831
|
+
let B = !0;
|
|
1831
1832
|
function S(k) {
|
|
1832
1833
|
const C = k[0].intersectionRatio;
|
|
1833
1834
|
if (C !== a) {
|
|
1834
|
-
if (!
|
|
1835
|
+
if (!B)
|
|
1835
1836
|
return s();
|
|
1836
1837
|
C ? s(!1, C) : o = setTimeout(() => {
|
|
1837
1838
|
s(!1, 1e-7);
|
|
1838
1839
|
}, 100);
|
|
1839
1840
|
}
|
|
1840
|
-
|
|
1841
|
+
B = !1;
|
|
1841
1842
|
}
|
|
1842
1843
|
try {
|
|
1843
1844
|
n = new IntersectionObserver(S, {
|
|
@@ -1860,8 +1861,8 @@ function br(e, t, n, o) {
|
|
|
1860
1861
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1861
1862
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1862
1863
|
animationFrame: a = !1
|
|
1863
|
-
} = o, c = xt(e),
|
|
1864
|
-
|
|
1864
|
+
} = o, c = xt(e), m = r || i ? [...c ? ie(c) : [], ...ie(t)] : [];
|
|
1865
|
+
m.forEach((h) => {
|
|
1865
1866
|
r && h.addEventListener("scroll", n, {
|
|
1866
1867
|
passive: !0
|
|
1867
1868
|
}), i && h.addEventListener("resize", n);
|
|
@@ -1871,24 +1872,24 @@ function br(e, t, n, o) {
|
|
|
1871
1872
|
s && (d = new ResizeObserver((h) => {
|
|
1872
1873
|
let [x] = h;
|
|
1873
1874
|
x && x.target === c && d && (d.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1874
|
-
var
|
|
1875
|
-
(
|
|
1875
|
+
var B;
|
|
1876
|
+
(B = d) == null || B.observe(t);
|
|
1876
1877
|
})), n();
|
|
1877
1878
|
}), c && !a && d.observe(c), d.observe(t));
|
|
1878
|
-
let
|
|
1879
|
+
let g, p = a ? ve(e) : null;
|
|
1879
1880
|
a && w();
|
|
1880
1881
|
function w() {
|
|
1881
1882
|
const h = ve(e);
|
|
1882
|
-
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h,
|
|
1883
|
+
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, g = requestAnimationFrame(w);
|
|
1883
1884
|
}
|
|
1884
1885
|
return n(), () => {
|
|
1885
1886
|
var h;
|
|
1886
|
-
|
|
1887
|
+
m.forEach((x) => {
|
|
1887
1888
|
r && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
|
|
1888
|
-
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(
|
|
1889
|
+
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(g);
|
|
1889
1890
|
};
|
|
1890
1891
|
}
|
|
1891
|
-
const yr = Qo, vr = Go,
|
|
1892
|
+
const yr = Qo, vr = Go, Fi = er, zi = qo, xr = (e, t, n) => {
|
|
1892
1893
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1893
1894
|
platform: pr,
|
|
1894
1895
|
...n
|
|
@@ -1901,8 +1902,8 @@ const yr = Qo, vr = Go, Li = er, Fi = qo, xr = (e, t, n) => {
|
|
|
1901
1902
|
platform: i
|
|
1902
1903
|
});
|
|
1903
1904
|
};
|
|
1904
|
-
var
|
|
1905
|
-
function
|
|
1905
|
+
var Ke = typeof document < "u" ? en : tn;
|
|
1906
|
+
function Je(e, t) {
|
|
1906
1907
|
if (e === t)
|
|
1907
1908
|
return !0;
|
|
1908
1909
|
if (typeof e != typeof t)
|
|
@@ -1915,7 +1916,7 @@ function Ze(e, t) {
|
|
|
1915
1916
|
if (n = e.length, n !== t.length)
|
|
1916
1917
|
return !1;
|
|
1917
1918
|
for (o = n; o-- !== 0; )
|
|
1918
|
-
if (!
|
|
1919
|
+
if (!Je(e[o], t[o]))
|
|
1919
1920
|
return !1;
|
|
1920
1921
|
return !0;
|
|
1921
1922
|
}
|
|
@@ -1926,23 +1927,23 @@ function Ze(e, t) {
|
|
|
1926
1927
|
return !1;
|
|
1927
1928
|
for (o = n; o-- !== 0; ) {
|
|
1928
1929
|
const i = r[o];
|
|
1929
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
1930
|
+
if (!(i === "_owner" && e.$$typeof) && !Je(e[i], t[i]))
|
|
1930
1931
|
return !1;
|
|
1931
1932
|
}
|
|
1932
1933
|
return !0;
|
|
1933
1934
|
}
|
|
1934
1935
|
return e !== e && t !== t;
|
|
1935
1936
|
}
|
|
1936
|
-
function
|
|
1937
|
+
function xn(e) {
|
|
1937
1938
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1938
1939
|
}
|
|
1939
|
-
function
|
|
1940
|
-
const n =
|
|
1940
|
+
function zt(e, t) {
|
|
1941
|
+
const n = xn(e);
|
|
1941
1942
|
return Math.round(t * n) / n;
|
|
1942
1943
|
}
|
|
1943
|
-
function
|
|
1944
|
+
function Wt(e) {
|
|
1944
1945
|
const t = y.useRef(e);
|
|
1945
|
-
return
|
|
1946
|
+
return Ke(() => {
|
|
1946
1947
|
t.current = e;
|
|
1947
1948
|
}), t;
|
|
1948
1949
|
}
|
|
@@ -1960,7 +1961,7 @@ function wr(e) {
|
|
|
1960
1961
|
transform: l = !0,
|
|
1961
1962
|
whileElementsMounted: a,
|
|
1962
1963
|
open: c
|
|
1963
|
-
} = e, [
|
|
1964
|
+
} = e, [m, u] = y.useState({
|
|
1964
1965
|
x: 0,
|
|
1965
1966
|
y: 0,
|
|
1966
1967
|
strategy: n,
|
|
@@ -1968,40 +1969,40 @@ function wr(e) {
|
|
|
1968
1969
|
middlewareData: {},
|
|
1969
1970
|
isPositioned: !1
|
|
1970
1971
|
}), [f, d] = y.useState(o);
|
|
1971
|
-
|
|
1972
|
-
const [
|
|
1972
|
+
Je(f, o) || d(o);
|
|
1973
|
+
const [g, p] = y.useState(null), [w, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1973
1974
|
R !== C.current && (C.current = R, p(R));
|
|
1974
|
-
}, []),
|
|
1975
|
-
R !==
|
|
1976
|
-
}, []), S = i ||
|
|
1977
|
-
if (!C.current || !
|
|
1975
|
+
}, []), B = y.useCallback((R) => {
|
|
1976
|
+
R !== P.current && (P.current = R, h(R));
|
|
1977
|
+
}, []), S = i || g, k = s || w, C = y.useRef(null), P = y.useRef(null), T = y.useRef(m), D = a != null, A = Wt(a), L = Wt(r), M = y.useCallback(() => {
|
|
1978
|
+
if (!C.current || !P.current)
|
|
1978
1979
|
return;
|
|
1979
1980
|
const R = {
|
|
1980
1981
|
placement: t,
|
|
1981
1982
|
strategy: n,
|
|
1982
1983
|
middleware: f
|
|
1983
1984
|
};
|
|
1984
|
-
L.current && (R.platform = L.current), xr(C.current,
|
|
1985
|
+
L.current && (R.platform = L.current), xr(C.current, P.current, R).then(($) => {
|
|
1985
1986
|
const F = {
|
|
1986
1987
|
...$,
|
|
1987
1988
|
isPositioned: !0
|
|
1988
1989
|
};
|
|
1989
|
-
O.current && !
|
|
1990
|
+
O.current && !Je(T.current, F) && (T.current = F, Fn.flushSync(() => {
|
|
1990
1991
|
u(F);
|
|
1991
1992
|
}));
|
|
1992
1993
|
});
|
|
1993
1994
|
}, [f, t, n, L]);
|
|
1994
|
-
|
|
1995
|
+
Ke(() => {
|
|
1995
1996
|
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((R) => ({
|
|
1996
1997
|
...R,
|
|
1997
1998
|
isPositioned: !1
|
|
1998
1999
|
})));
|
|
1999
2000
|
}, [c]);
|
|
2000
2001
|
const O = y.useRef(!1);
|
|
2001
|
-
|
|
2002
|
+
Ke(() => (O.current = !0, () => {
|
|
2002
2003
|
O.current = !1;
|
|
2003
|
-
}), []),
|
|
2004
|
-
if (S && (C.current = S), k && (
|
|
2004
|
+
}), []), Ke(() => {
|
|
2005
|
+
if (S && (C.current = S), k && (P.current = k), S && k) {
|
|
2005
2006
|
if (A.current)
|
|
2006
2007
|
return A.current(S, k, M);
|
|
2007
2008
|
M();
|
|
@@ -2009,10 +2010,10 @@ function wr(e) {
|
|
|
2009
2010
|
}, [S, k, M, A, D]);
|
|
2010
2011
|
const b = y.useMemo(() => ({
|
|
2011
2012
|
reference: C,
|
|
2012
|
-
floating:
|
|
2013
|
+
floating: P,
|
|
2013
2014
|
setReference: x,
|
|
2014
|
-
setFloating:
|
|
2015
|
-
}), [x,
|
|
2015
|
+
setFloating: B
|
|
2016
|
+
}), [x, B]), v = y.useMemo(() => ({
|
|
2016
2017
|
reference: S,
|
|
2017
2018
|
floating: k
|
|
2018
2019
|
}), [S, k]), I = y.useMemo(() => {
|
|
@@ -2023,11 +2024,11 @@ function wr(e) {
|
|
|
2023
2024
|
};
|
|
2024
2025
|
if (!v.floating)
|
|
2025
2026
|
return R;
|
|
2026
|
-
const $ =
|
|
2027
|
+
const $ = zt(v.floating, m.x), F = zt(v.floating, m.y);
|
|
2027
2028
|
return l ? {
|
|
2028
2029
|
...R,
|
|
2029
2030
|
transform: "translate(" + $ + "px, " + F + "px)",
|
|
2030
|
-
|
|
2031
|
+
...xn(v.floating) >= 1.5 && {
|
|
2031
2032
|
willChange: "transform"
|
|
2032
2033
|
}
|
|
2033
2034
|
} : {
|
|
@@ -2035,26 +2036,26 @@ function wr(e) {
|
|
|
2035
2036
|
left: $,
|
|
2036
2037
|
top: F
|
|
2037
2038
|
};
|
|
2038
|
-
}, [n, l, v.floating,
|
|
2039
|
+
}, [n, l, v.floating, m.x, m.y]);
|
|
2039
2040
|
return y.useMemo(() => ({
|
|
2040
|
-
...
|
|
2041
|
+
...m,
|
|
2041
2042
|
update: M,
|
|
2042
2043
|
refs: b,
|
|
2043
2044
|
elements: v,
|
|
2044
2045
|
floatingStyles: I
|
|
2045
|
-
}), [
|
|
2046
|
+
}), [m, M, b, v, I]);
|
|
2046
2047
|
}
|
|
2047
2048
|
/*!
|
|
2048
2049
|
* tabbable 6.2.0
|
|
2049
2050
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2050
2051
|
*/
|
|
2051
|
-
var $r = ["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])"],
|
|
2052
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
2052
|
+
var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], mt = /* @__PURE__ */ $r.join(","), wn = typeof Element > "u", je = wn ? function() {
|
|
2053
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qe = !wn && Element.prototype.getRootNode ? function(e) {
|
|
2053
2054
|
var t;
|
|
2054
2055
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
2055
2056
|
} : function(e) {
|
|
2056
2057
|
return e == null ? void 0 : e.ownerDocument;
|
|
2057
|
-
},
|
|
2058
|
+
}, et = function e(t, n) {
|
|
2058
2059
|
var o;
|
|
2059
2060
|
n === void 0 && (n = !0);
|
|
2060
2061
|
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,14 +2064,14 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2063
2064
|
var n, o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
2064
2065
|
return o === "" || o === "true";
|
|
2065
2066
|
}, Rr = function(t, n, o) {
|
|
2066
|
-
if (
|
|
2067
|
+
if (et(t))
|
|
2067
2068
|
return [];
|
|
2068
|
-
var r = Array.prototype.slice.apply(t.querySelectorAll(
|
|
2069
|
-
return n &&
|
|
2069
|
+
var r = Array.prototype.slice.apply(t.querySelectorAll(mt));
|
|
2070
|
+
return n && je.call(t, mt) && r.unshift(t), r = r.filter(o), r;
|
|
2070
2071
|
}, Er = function e(t, n, o) {
|
|
2071
2072
|
for (var r = [], i = Array.from(t); i.length; ) {
|
|
2072
2073
|
var s = i.shift();
|
|
2073
|
-
if (!
|
|
2074
|
+
if (!et(s, !1))
|
|
2074
2075
|
if (s.tagName === "SLOT") {
|
|
2075
2076
|
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, o);
|
|
2076
2077
|
o.flatten ? r.push.apply(r, c) : r.push({
|
|
@@ -2078,10 +2079,10 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2078
2079
|
candidates: c
|
|
2079
2080
|
});
|
|
2080
2081
|
} else {
|
|
2081
|
-
var
|
|
2082
|
-
|
|
2082
|
+
var m = je.call(s, mt);
|
|
2083
|
+
m && o.filter(s) && (n || !t.includes(s)) && r.push(s);
|
|
2083
2084
|
var u = s.shadowRoot || // check for an undisclosed shadow
|
|
2084
|
-
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !
|
|
2085
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !et(u, !1) && (!o.shadowRootFilter || o.shadowRootFilter(s));
|
|
2085
2086
|
if (u && f) {
|
|
2086
2087
|
var d = e(u === !0 ? s.children : u.children, !0, o);
|
|
2087
2088
|
o.flatten ? r.push.apply(r, d) : r.push({
|
|
@@ -2093,34 +2094,34 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2093
2094
|
}
|
|
2094
2095
|
}
|
|
2095
2096
|
return r;
|
|
2096
|
-
},
|
|
2097
|
+
}, $n = function(t) {
|
|
2097
2098
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2098
|
-
},
|
|
2099
|
+
}, Sn = function(t) {
|
|
2099
2100
|
if (!t)
|
|
2100
2101
|
throw new Error("No node provided");
|
|
2101
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Sr(t)) &&
|
|
2102
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Sr(t)) && !$n(t) ? 0 : t.tabIndex;
|
|
2102
2103
|
}, Cr = function(t, n) {
|
|
2103
|
-
var o =
|
|
2104
|
-
return o < 0 && n &&
|
|
2104
|
+
var o = Sn(t);
|
|
2105
|
+
return o < 0 && n && !$n(t) ? 0 : o;
|
|
2105
2106
|
}, kr = function(t, n) {
|
|
2106
2107
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2107
|
-
},
|
|
2108
|
+
}, Rn = function(t) {
|
|
2108
2109
|
return t.tagName === "INPUT";
|
|
2109
2110
|
}, Tr = function(t) {
|
|
2110
|
-
return
|
|
2111
|
+
return Rn(t) && t.type === "hidden";
|
|
2111
2112
|
}, Ir = function(t) {
|
|
2112
2113
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
2113
2114
|
return o.tagName === "SUMMARY";
|
|
2114
2115
|
});
|
|
2115
2116
|
return n;
|
|
2116
|
-
},
|
|
2117
|
+
}, Br = function(t, n) {
|
|
2117
2118
|
for (var o = 0; o < t.length; o++)
|
|
2118
2119
|
if (t[o].checked && t[o].form === n)
|
|
2119
2120
|
return t[o];
|
|
2120
|
-
},
|
|
2121
|
+
}, Pr = function(t) {
|
|
2121
2122
|
if (!t.name)
|
|
2122
2123
|
return !0;
|
|
2123
|
-
var n = t.form ||
|
|
2124
|
+
var n = t.form || Qe(t), o = function(l) {
|
|
2124
2125
|
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
2125
2126
|
}, r;
|
|
2126
2127
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -2131,38 +2132,38 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2131
2132
|
} catch (s) {
|
|
2132
2133
|
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;
|
|
2133
2134
|
}
|
|
2134
|
-
var i =
|
|
2135
|
+
var i = Br(r, t.form);
|
|
2135
2136
|
return !i || i === t;
|
|
2136
2137
|
}, Ar = function(t) {
|
|
2137
|
-
return
|
|
2138
|
+
return Rn(t) && t.type === "radio";
|
|
2138
2139
|
}, Or = function(t) {
|
|
2139
|
-
return Ar(t) && !
|
|
2140
|
+
return Ar(t) && !Pr(t);
|
|
2140
2141
|
}, Dr = function(t) {
|
|
2141
|
-
var n, o = t &&
|
|
2142
|
+
var n, o = t && Qe(t), r = (n = o) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
2142
2143
|
if (o && o !== t) {
|
|
2143
2144
|
var s, l, a;
|
|
2144
2145
|
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; ) {
|
|
2145
|
-
var c,
|
|
2146
|
-
o =
|
|
2146
|
+
var c, m, u;
|
|
2147
|
+
o = Qe(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));
|
|
2147
2148
|
}
|
|
2148
2149
|
}
|
|
2149
2150
|
return i;
|
|
2150
|
-
},
|
|
2151
|
+
}, Nt = function(t) {
|
|
2151
2152
|
var n = t.getBoundingClientRect(), o = n.width, r = n.height;
|
|
2152
2153
|
return o === 0 && r === 0;
|
|
2153
2154
|
}, Mr = function(t, n) {
|
|
2154
2155
|
var o = n.displayCheck, r = n.getShadowRoot;
|
|
2155
2156
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2156
2157
|
return !0;
|
|
2157
|
-
var i =
|
|
2158
|
-
if (
|
|
2158
|
+
var i = je.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
|
|
2159
|
+
if (je.call(s, "details:not([open]) *"))
|
|
2159
2160
|
return !0;
|
|
2160
2161
|
if (!o || o === "full" || o === "legacy-full") {
|
|
2161
2162
|
if (typeof r == "function") {
|
|
2162
2163
|
for (var l = t; t; ) {
|
|
2163
|
-
var a = t.parentElement, c =
|
|
2164
|
+
var a = t.parentElement, c = Qe(t);
|
|
2164
2165
|
if (a && !a.shadowRoot && r(a) === !0)
|
|
2165
|
-
return
|
|
2166
|
+
return Nt(t);
|
|
2166
2167
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2167
2168
|
}
|
|
2168
2169
|
t = l;
|
|
@@ -2172,7 +2173,7 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2172
2173
|
if (o !== "legacy-full")
|
|
2173
2174
|
return !0;
|
|
2174
2175
|
} else if (o === "non-zero-area")
|
|
2175
|
-
return
|
|
2176
|
+
return Nt(t);
|
|
2176
2177
|
return !1;
|
|
2177
2178
|
}, Lr = function(t) {
|
|
2178
2179
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
@@ -2181,7 +2182,7 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2181
2182
|
for (var o = 0; o < n.children.length; o++) {
|
|
2182
2183
|
var r = n.children.item(o);
|
|
2183
2184
|
if (r.tagName === "LEGEND")
|
|
2184
|
-
return
|
|
2185
|
+
return je.call(n, "fieldset[disabled] *") ? !0 : !r.contains(t);
|
|
2185
2186
|
}
|
|
2186
2187
|
return !0;
|
|
2187
2188
|
}
|
|
@@ -2192,10 +2193,10 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2192
2193
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2193
2194
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2194
2195
|
// note related to `candidateSelectors`)
|
|
2195
|
-
|
|
2196
|
+
et(n) || Tr(n) || Mr(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2196
2197
|
Ir(n) || Lr(n));
|
|
2197
|
-
},
|
|
2198
|
-
return !(Or(n) ||
|
|
2198
|
+
}, jt = function(t, n) {
|
|
2199
|
+
return !(Or(n) || Sn(n) < 0 || !Fr(t, n));
|
|
2199
2200
|
}, zr = function(t) {
|
|
2200
2201
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2201
2202
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -2213,15 +2214,15 @@ var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2213
2214
|
}), o.sort(kr).reduce(function(r, i) {
|
|
2214
2215
|
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
2215
2216
|
}, []).concat(n);
|
|
2216
|
-
},
|
|
2217
|
+
}, En = function(t, n) {
|
|
2217
2218
|
n = n || {};
|
|
2218
2219
|
var o;
|
|
2219
2220
|
return n.getShadowRoot ? o = Er([t], n.includeContainer, {
|
|
2220
|
-
filter:
|
|
2221
|
+
filter: jt.bind(null, n),
|
|
2221
2222
|
flatten: !1,
|
|
2222
2223
|
getShadowRoot: n.getShadowRoot,
|
|
2223
2224
|
shadowRootFilter: zr
|
|
2224
|
-
}) : o = Rr(t, n.includeContainer,
|
|
2225
|
+
}) : o = Rr(t, n.includeContainer, jt.bind(null, n)), Wr(o);
|
|
2225
2226
|
};
|
|
2226
2227
|
const Nr = y[/* @__PURE__ */ "useInsertionEffect".toString()], jr = Nr || ((e) => e());
|
|
2227
2228
|
function ke(e) {
|
|
@@ -2237,7 +2238,7 @@ function ke(e) {
|
|
|
2237
2238
|
return t.current == null ? void 0 : t.current(...o);
|
|
2238
2239
|
}, []);
|
|
2239
2240
|
}
|
|
2240
|
-
var Q = typeof document < "u" ?
|
|
2241
|
+
var Q = typeof document < "u" ? en : tn;
|
|
2241
2242
|
function gt() {
|
|
2242
2243
|
return gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2243
2244
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -2248,14 +2249,14 @@ function gt() {
|
|
|
2248
2249
|
return e;
|
|
2249
2250
|
}, gt.apply(this, arguments);
|
|
2250
2251
|
}
|
|
2251
|
-
let
|
|
2252
|
-
const
|
|
2252
|
+
let it = !1, Hr = 0;
|
|
2253
|
+
const Ht = () => "floating-ui-" + Hr++;
|
|
2253
2254
|
function Vr() {
|
|
2254
|
-
const [e, t] = y.useState(() =>
|
|
2255
|
+
const [e, t] = y.useState(() => it ? Ht() : void 0);
|
|
2255
2256
|
return Q(() => {
|
|
2256
|
-
e == null && t(
|
|
2257
|
+
e == null && t(Ht());
|
|
2257
2258
|
}, []), y.useEffect(() => {
|
|
2258
|
-
|
|
2259
|
+
it || (it = !0);
|
|
2259
2260
|
}, []), e;
|
|
2260
2261
|
}
|
|
2261
2262
|
const _r = y[/* @__PURE__ */ "useId".toString()], wt = _r || Vr;
|
|
@@ -2279,18 +2280,18 @@ const Xr = /* @__PURE__ */ y.createContext(null), Kr = /* @__PURE__ */ y.createC
|
|
|
2279
2280
|
var e;
|
|
2280
2281
|
return ((e = y.useContext(Xr)) == null ? void 0 : e.id) || null;
|
|
2281
2282
|
}, St = () => y.useContext(Kr);
|
|
2282
|
-
function
|
|
2283
|
+
function nt(e) {
|
|
2283
2284
|
return "data-floating-ui-" + e;
|
|
2284
2285
|
}
|
|
2285
|
-
function
|
|
2286
|
-
const t =
|
|
2286
|
+
function Be(e) {
|
|
2287
|
+
const t = An(e);
|
|
2287
2288
|
return Q(() => {
|
|
2288
2289
|
t.current = e;
|
|
2289
2290
|
}), t;
|
|
2290
2291
|
}
|
|
2291
|
-
const
|
|
2292
|
-
function
|
|
2293
|
-
return n && !
|
|
2292
|
+
const Vt = /* @__PURE__ */ nt("safe-polygon");
|
|
2293
|
+
function st(e, t, n) {
|
|
2294
|
+
return n && !Ue(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2294
2295
|
}
|
|
2295
2296
|
function Gr(e, t) {
|
|
2296
2297
|
t === void 0 && (t = {});
|
|
@@ -2306,12 +2307,12 @@ function Gr(e, t) {
|
|
|
2306
2307
|
refs: a
|
|
2307
2308
|
} = e, {
|
|
2308
2309
|
enabled: c = !0,
|
|
2309
|
-
delay:
|
|
2310
|
+
delay: m = 0,
|
|
2310
2311
|
handleClose: u = null,
|
|
2311
2312
|
mouseOnly: f = !1,
|
|
2312
2313
|
restMs: d = 0,
|
|
2313
|
-
move:
|
|
2314
|
-
} = t, p = St(), w = $t(), h =
|
|
2314
|
+
move: g = !0
|
|
2315
|
+
} = t, p = St(), w = $t(), h = Be(u), x = Be(m), B = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), P = y.useRef(!0), T = y.useRef(!1), D = y.useRef(() => {
|
|
2315
2316
|
}), A = y.useCallback(() => {
|
|
2316
2317
|
var b;
|
|
2317
2318
|
const v = (b = r.current.openEvent) == null ? void 0 : b.type;
|
|
@@ -2324,7 +2325,7 @@ function Gr(e, t) {
|
|
|
2324
2325
|
let {
|
|
2325
2326
|
open: I
|
|
2326
2327
|
} = v;
|
|
2327
|
-
I || (clearTimeout(S.current), clearTimeout(C.current),
|
|
2328
|
+
I || (clearTimeout(S.current), clearTimeout(C.current), P.current = !0);
|
|
2328
2329
|
}
|
|
2329
2330
|
return i.on("openchange", b), () => {
|
|
2330
2331
|
i.off("openchange", b);
|
|
@@ -2335,21 +2336,21 @@ function Gr(e, t) {
|
|
|
2335
2336
|
function b(I) {
|
|
2336
2337
|
A() && o(!1, I, "hover");
|
|
2337
2338
|
}
|
|
2338
|
-
const v =
|
|
2339
|
+
const v = ge(l).documentElement;
|
|
2339
2340
|
return v.addEventListener("mouseleave", b), () => {
|
|
2340
2341
|
v.removeEventListener("mouseleave", b);
|
|
2341
2342
|
};
|
|
2342
2343
|
}, [l, n, o, c, h, A]);
|
|
2343
2344
|
const L = y.useCallback(function(b, v, I) {
|
|
2344
2345
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2345
|
-
const R =
|
|
2346
|
+
const R = st(x.current, "close", B.current);
|
|
2346
2347
|
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => o(!1, b, I), R)) : v && (clearTimeout(S.current), o(!1, b, I));
|
|
2347
2348
|
}, [x, o]), M = y.useCallback(() => {
|
|
2348
2349
|
D.current(), k.current = void 0;
|
|
2349
2350
|
}, []), O = y.useCallback(() => {
|
|
2350
2351
|
if (T.current) {
|
|
2351
|
-
const b =
|
|
2352
|
-
b.style.pointerEvents = "", b.removeAttribute(
|
|
2352
|
+
const b = ge(a.floating.current).body;
|
|
2353
|
+
b.style.pointerEvents = "", b.removeAttribute(Vt), T.current = !1;
|
|
2353
2354
|
}
|
|
2354
2355
|
}, [a]);
|
|
2355
2356
|
return y.useEffect(() => {
|
|
@@ -2359,9 +2360,9 @@ function Gr(e, t) {
|
|
|
2359
2360
|
return r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1;
|
|
2360
2361
|
}
|
|
2361
2362
|
function v($) {
|
|
2362
|
-
if (clearTimeout(S.current),
|
|
2363
|
+
if (clearTimeout(S.current), P.current = !1, f && !Ue(B.current) || d > 0 && st(x.current, "open") === 0)
|
|
2363
2364
|
return;
|
|
2364
|
-
const F =
|
|
2365
|
+
const F = st(x.current, "open", B.current);
|
|
2365
2366
|
F ? S.current = setTimeout(() => {
|
|
2366
2367
|
o(!0, $, "hover");
|
|
2367
2368
|
}, F) : o(!0, $, "hover");
|
|
@@ -2370,7 +2371,7 @@ function Gr(e, t) {
|
|
|
2370
2371
|
if (b())
|
|
2371
2372
|
return;
|
|
2372
2373
|
D.current();
|
|
2373
|
-
const F =
|
|
2374
|
+
const F = ge(l);
|
|
2374
2375
|
if (clearTimeout(C.current), h.current) {
|
|
2375
2376
|
n || clearTimeout(S.current), k.current = h.current({
|
|
2376
2377
|
...e,
|
|
@@ -2387,7 +2388,7 @@ function Gr(e, t) {
|
|
|
2387
2388
|
};
|
|
2388
2389
|
return;
|
|
2389
2390
|
}
|
|
2390
|
-
(
|
|
2391
|
+
(B.current === "touch" ? !be(l, $.relatedTarget) : !0) && L($);
|
|
2391
2392
|
}
|
|
2392
2393
|
function R($) {
|
|
2393
2394
|
b() || h.current == null || h.current({
|
|
@@ -2400,19 +2401,19 @@ function Gr(e, t) {
|
|
|
2400
2401
|
}
|
|
2401
2402
|
})($);
|
|
2402
2403
|
}
|
|
2403
|
-
if (
|
|
2404
|
+
if (j(s)) {
|
|
2404
2405
|
const $ = s;
|
|
2405
|
-
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R),
|
|
2406
|
+
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), g && $.addEventListener("mousemove", v, {
|
|
2406
2407
|
once: !0
|
|
2407
2408
|
}), $.addEventListener("mouseenter", v), $.addEventListener("mouseleave", I), () => {
|
|
2408
|
-
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R),
|
|
2409
|
+
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && $.removeEventListener("mousemove", v), $.removeEventListener("mouseenter", v), $.removeEventListener("mouseleave", I);
|
|
2409
2410
|
};
|
|
2410
2411
|
}
|
|
2411
|
-
}, [s, l, c, e, f, d,
|
|
2412
|
+
}, [s, l, c, e, f, d, g, L, M, O, o, n, p, x, h, r]), Q(() => {
|
|
2412
2413
|
var b;
|
|
2413
2414
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && A()) {
|
|
2414
|
-
const I =
|
|
2415
|
-
if (I.setAttribute(
|
|
2415
|
+
const I = ge(l).body;
|
|
2416
|
+
if (I.setAttribute(Vt, ""), I.style.pointerEvents = "none", T.current = !0, j(s) && l) {
|
|
2416
2417
|
var v;
|
|
2417
2418
|
const R = s, $ = p == null || (v = p.nodesRef.current.find((F) => F.id === w)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2418
2419
|
return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
@@ -2421,14 +2422,14 @@ function Gr(e, t) {
|
|
|
2421
2422
|
}
|
|
2422
2423
|
}
|
|
2423
2424
|
}, [c, n, w, l, s, p, h, A]), Q(() => {
|
|
2424
|
-
n || (
|
|
2425
|
+
n || (B.current = void 0, M(), O());
|
|
2425
2426
|
}, [n, M, O]), y.useEffect(() => () => {
|
|
2426
2427
|
M(), clearTimeout(S.current), clearTimeout(C.current), O();
|
|
2427
2428
|
}, [c, s, M, O]), y.useMemo(() => {
|
|
2428
2429
|
if (!c)
|
|
2429
2430
|
return {};
|
|
2430
2431
|
function b(v) {
|
|
2431
|
-
|
|
2432
|
+
B.current = v.pointerType;
|
|
2432
2433
|
}
|
|
2433
2434
|
return {
|
|
2434
2435
|
reference: {
|
|
@@ -2436,7 +2437,7 @@ function Gr(e, t) {
|
|
|
2436
2437
|
onPointerEnter: b,
|
|
2437
2438
|
onMouseMove(v) {
|
|
2438
2439
|
n || d === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2439
|
-
|
|
2440
|
+
P.current || o(!0, v.nativeEvent, "hover");
|
|
2440
2441
|
}, d));
|
|
2441
2442
|
}
|
|
2442
2443
|
},
|
|
@@ -2451,7 +2452,7 @@ function Gr(e, t) {
|
|
|
2451
2452
|
};
|
|
2452
2453
|
}, [c, d, n, o, L]);
|
|
2453
2454
|
}
|
|
2454
|
-
function
|
|
2455
|
+
function Ge(e, t) {
|
|
2455
2456
|
let n = e.filter((r) => {
|
|
2456
2457
|
var i;
|
|
2457
2458
|
return r.parentId === t && ((i = r.context) == null ? void 0 : i.open);
|
|
@@ -2466,7 +2467,7 @@ function Ke(e, t) {
|
|
|
2466
2467
|
}), n = n.concat(o);
|
|
2467
2468
|
return n;
|
|
2468
2469
|
}
|
|
2469
|
-
const
|
|
2470
|
+
const Cn = () => ({
|
|
2470
2471
|
getShadowRoot: !0,
|
|
2471
2472
|
displayCheck: (
|
|
2472
2473
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2475,24 +2476,24 @@ const Tn = () => ({
|
|
|
2475
2476
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2476
2477
|
)
|
|
2477
2478
|
});
|
|
2478
|
-
function
|
|
2479
|
-
const n =
|
|
2479
|
+
function kn(e, t) {
|
|
2480
|
+
const n = En(e, Cn());
|
|
2480
2481
|
t === "prev" && n.reverse();
|
|
2481
|
-
const o = n.indexOf(Do(
|
|
2482
|
+
const o = n.indexOf(Do(ge(e)));
|
|
2482
2483
|
return n.slice(o + 1)[0];
|
|
2483
2484
|
}
|
|
2484
2485
|
function Ur() {
|
|
2485
|
-
return
|
|
2486
|
+
return kn(document.body, "next");
|
|
2486
2487
|
}
|
|
2487
2488
|
function qr() {
|
|
2488
|
-
return
|
|
2489
|
+
return kn(document.body, "prev");
|
|
2489
2490
|
}
|
|
2490
|
-
function
|
|
2491
|
+
function lt(e, t) {
|
|
2491
2492
|
const n = t || e.currentTarget, o = e.relatedTarget;
|
|
2492
2493
|
return !o || !be(n, o);
|
|
2493
2494
|
}
|
|
2494
2495
|
function Zr(e) {
|
|
2495
|
-
|
|
2496
|
+
En(e, Cn()).forEach((n) => {
|
|
2496
2497
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2497
2498
|
});
|
|
2498
2499
|
}
|
|
@@ -2502,7 +2503,7 @@ function Jr(e) {
|
|
|
2502
2503
|
delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
2503
2504
|
});
|
|
2504
2505
|
}
|
|
2505
|
-
const
|
|
2506
|
+
const Tn = {
|
|
2506
2507
|
border: 0,
|
|
2507
2508
|
clip: "rect(0 0 0 0)",
|
|
2508
2509
|
height: "1px",
|
|
@@ -2516,13 +2517,13 @@ const Pn = {
|
|
|
2516
2517
|
left: 0
|
|
2517
2518
|
};
|
|
2518
2519
|
let Qr;
|
|
2519
|
-
function
|
|
2520
|
+
function _t(e) {
|
|
2520
2521
|
e.key === "Tab" && (e.target, clearTimeout(Qr));
|
|
2521
2522
|
}
|
|
2522
|
-
const
|
|
2523
|
+
const Yt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2523
2524
|
const [o, r] = y.useState();
|
|
2524
|
-
Q(() => (Mo() && r("button"), document.addEventListener("keydown",
|
|
2525
|
-
document.removeEventListener("keydown",
|
|
2525
|
+
Q(() => (Mo() && r("button"), document.addEventListener("keydown", _t), () => {
|
|
2526
|
+
document.removeEventListener("keydown", _t);
|
|
2526
2527
|
}), []);
|
|
2527
2528
|
const i = {
|
|
2528
2529
|
ref: n,
|
|
@@ -2530,11 +2531,11 @@ const Xt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2530
2531
|
// Role is only for VoiceOver
|
|
2531
2532
|
role: o,
|
|
2532
2533
|
"aria-hidden": o ? void 0 : !0,
|
|
2533
|
-
[
|
|
2534
|
-
style:
|
|
2534
|
+
[nt("focus-guard")]: "",
|
|
2535
|
+
style: Tn
|
|
2535
2536
|
};
|
|
2536
2537
|
return /* @__PURE__ */ y.createElement("span", gt({}, t, i));
|
|
2537
|
-
}),
|
|
2538
|
+
}), In = /* @__PURE__ */ y.createContext(null), Xt = /* @__PURE__ */ nt("portal");
|
|
2538
2539
|
function ei(e) {
|
|
2539
2540
|
let {
|
|
2540
2541
|
id: t,
|
|
@@ -2552,16 +2553,16 @@ function ei(e) {
|
|
|
2552
2553
|
if (!a)
|
|
2553
2554
|
return;
|
|
2554
2555
|
const c = document.createElement("div");
|
|
2555
|
-
c.id = i, c.setAttribute(
|
|
2556
|
+
c.id = i, c.setAttribute(Xt, ""), a.appendChild(c), l.current = c, r(c);
|
|
2556
2557
|
}, [t, i]), Q(() => {
|
|
2557
2558
|
if (l.current)
|
|
2558
2559
|
return;
|
|
2559
2560
|
let a = n || (s == null ? void 0 : s.portalNode);
|
|
2560
|
-
a && !
|
|
2561
|
+
a && !j(a) && (a = a.current), a = a || document.body;
|
|
2561
2562
|
let c = null;
|
|
2562
2563
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2564
|
+
const m = document.createElement("div");
|
|
2565
|
+
m.id = i, m.setAttribute(Xt, ""), a = c || a, a.appendChild(m), l.current = m, r(m);
|
|
2565
2566
|
}, [t, n, i, s]), o;
|
|
2566
2567
|
}
|
|
2567
2568
|
function ti(e) {
|
|
@@ -2574,7 +2575,7 @@ function ti(e) {
|
|
|
2574
2575
|
const i = ei({
|
|
2575
2576
|
id: n,
|
|
2576
2577
|
root: o
|
|
2577
|
-
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null),
|
|
2578
|
+
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), m = y.useRef(null), u = y.useRef(null), f = (
|
|
2578
2579
|
// The FocusManager and therefore floating element are currently open/
|
|
2579
2580
|
// rendered.
|
|
2580
2581
|
!!s && // Guards are only for non-modal focus management.
|
|
@@ -2584,29 +2585,29 @@ function ti(e) {
|
|
|
2584
2585
|
return y.useEffect(() => {
|
|
2585
2586
|
if (!i || !r || s != null && s.modal)
|
|
2586
2587
|
return;
|
|
2587
|
-
function d(
|
|
2588
|
-
i &&
|
|
2588
|
+
function d(g) {
|
|
2589
|
+
i && lt(g) && (g.type === "focusin" ? Jr : Zr)(i);
|
|
2589
2590
|
}
|
|
2590
2591
|
return i.addEventListener("focusin", d, !0), i.addEventListener("focusout", d, !0), () => {
|
|
2591
2592
|
i.removeEventListener("focusin", d, !0), i.removeEventListener("focusout", d, !0);
|
|
2592
2593
|
};
|
|
2593
|
-
}, [i, r, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(
|
|
2594
|
+
}, [i, r, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(In.Provider, {
|
|
2594
2595
|
value: y.useMemo(() => ({
|
|
2595
2596
|
preserveTabOrder: r,
|
|
2596
2597
|
beforeOutsideRef: a,
|
|
2597
2598
|
afterOutsideRef: c,
|
|
2598
|
-
beforeInsideRef:
|
|
2599
|
+
beforeInsideRef: m,
|
|
2599
2600
|
afterInsideRef: u,
|
|
2600
2601
|
portalNode: i,
|
|
2601
2602
|
setFocusManagerState: l
|
|
2602
2603
|
}), [r, i])
|
|
2603
|
-
}, f && i && /* @__PURE__ */ y.createElement(
|
|
2604
|
+
}, f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2604
2605
|
"data-type": "outside",
|
|
2605
2606
|
ref: a,
|
|
2606
2607
|
onFocus: (d) => {
|
|
2607
|
-
if (
|
|
2608
|
-
var
|
|
2609
|
-
(
|
|
2608
|
+
if (lt(d, i)) {
|
|
2609
|
+
var g;
|
|
2610
|
+
(g = m.current) == null || g.focus();
|
|
2610
2611
|
} else {
|
|
2611
2612
|
const p = qr() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2612
2613
|
p == null || p.focus();
|
|
@@ -2614,14 +2615,14 @@ function ti(e) {
|
|
|
2614
2615
|
}
|
|
2615
2616
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2616
2617
|
"aria-owns": i.id,
|
|
2617
|
-
style:
|
|
2618
|
-
}), i && /* @__PURE__ */
|
|
2618
|
+
style: Tn
|
|
2619
|
+
}), i && /* @__PURE__ */ zn(t, i), f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2619
2620
|
"data-type": "outside",
|
|
2620
2621
|
ref: c,
|
|
2621
2622
|
onFocus: (d) => {
|
|
2622
|
-
if (
|
|
2623
|
-
var
|
|
2624
|
-
(
|
|
2623
|
+
if (lt(d, i)) {
|
|
2624
|
+
var g;
|
|
2625
|
+
(g = u.current) == null || g.focus();
|
|
2625
2626
|
} else {
|
|
2626
2627
|
const p = Ur() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2627
2628
|
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
|
|
@@ -2629,11 +2630,11 @@ function ti(e) {
|
|
|
2629
2630
|
}
|
|
2630
2631
|
}));
|
|
2631
2632
|
}
|
|
2632
|
-
const ni = () => y.useContext(
|
|
2633
|
-
function
|
|
2633
|
+
const ni = () => y.useContext(In);
|
|
2634
|
+
function Kt(e) {
|
|
2634
2635
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2635
2636
|
}
|
|
2636
|
-
function
|
|
2637
|
+
function Gt(e) {
|
|
2637
2638
|
return Wo(e);
|
|
2638
2639
|
}
|
|
2639
2640
|
function oi(e, t) {
|
|
@@ -2650,7 +2651,7 @@ function oi(e, t) {
|
|
|
2650
2651
|
event: l = "click",
|
|
2651
2652
|
toggle: a = !0,
|
|
2652
2653
|
ignoreMouse: c = !1,
|
|
2653
|
-
keyboardHandlers:
|
|
2654
|
+
keyboardHandlers: m = !0
|
|
2654
2655
|
} = t, u = y.useRef(), f = y.useRef(!1);
|
|
2655
2656
|
return y.useMemo(() => s ? {
|
|
2656
2657
|
reference: {
|
|
@@ -2658,23 +2659,23 @@ function oi(e, t) {
|
|
|
2658
2659
|
u.current = d.pointerType;
|
|
2659
2660
|
},
|
|
2660
2661
|
onMouseDown(d) {
|
|
2661
|
-
d.button === 0 && (
|
|
2662
|
+
d.button === 0 && (Ue(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"))));
|
|
2662
2663
|
},
|
|
2663
2664
|
onClick(d) {
|
|
2664
2665
|
if (l === "mousedown" && u.current) {
|
|
2665
2666
|
u.current = void 0;
|
|
2666
2667
|
return;
|
|
2667
2668
|
}
|
|
2668
|
-
|
|
2669
|
+
Ue(u.current, !0) && c || (n && a && (!r.current.openEvent || r.current.openEvent.type === "click") ? o(!1, d.nativeEvent, "click") : o(!0, d.nativeEvent, "click"));
|
|
2669
2670
|
},
|
|
2670
2671
|
onKeyDown(d) {
|
|
2671
|
-
u.current = void 0, !(d.defaultPrevented || !
|
|
2672
|
+
u.current = void 0, !(d.defaultPrevented || !m || Kt(d)) && (d.key === " " && !Gt(i) && (d.preventDefault(), f.current = !0), d.key === "Enter" && o(!(n && a), d.nativeEvent, "click"));
|
|
2672
2673
|
},
|
|
2673
2674
|
onKeyUp(d) {
|
|
2674
|
-
d.defaultPrevented || !
|
|
2675
|
+
d.defaultPrevented || !m || Kt(d) || Gt(i) || d.key === " " && f.current && (f.current = !1, o(!(n && a), d.nativeEvent, "click"));
|
|
2675
2676
|
}
|
|
2676
2677
|
}
|
|
2677
|
-
} : {}, [s, r, l, c,
|
|
2678
|
+
} : {}, [s, r, l, c, m, i, a, n, o]);
|
|
2678
2679
|
}
|
|
2679
2680
|
const ri = {
|
|
2680
2681
|
pointerdown: "onPointerDown",
|
|
@@ -2684,7 +2685,7 @@ const ri = {
|
|
|
2684
2685
|
pointerdown: "onPointerDownCapture",
|
|
2685
2686
|
mousedown: "onMouseDownCapture",
|
|
2686
2687
|
click: "onClickCapture"
|
|
2687
|
-
},
|
|
2688
|
+
}, Ut = (e) => {
|
|
2688
2689
|
var t, n;
|
|
2689
2690
|
return {
|
|
2690
2691
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
@@ -2705,25 +2706,25 @@ function si(e, t) {
|
|
|
2705
2706
|
dataRef: a
|
|
2706
2707
|
} = e, {
|
|
2707
2708
|
enabled: c = !0,
|
|
2708
|
-
escapeKey:
|
|
2709
|
+
escapeKey: m = !0,
|
|
2709
2710
|
outsidePress: u = !0,
|
|
2710
2711
|
outsidePressEvent: f = "pointerdown",
|
|
2711
2712
|
referencePress: d = !1,
|
|
2712
|
-
referencePressEvent:
|
|
2713
|
+
referencePressEvent: g = "pointerdown",
|
|
2713
2714
|
ancestorScroll: p = !1,
|
|
2714
2715
|
bubbles: w,
|
|
2715
2716
|
capture: h
|
|
2716
|
-
} = t, x = St(),
|
|
2717
|
-
escapeKey:
|
|
2717
|
+
} = t, x = St(), B = ke(typeof u == "function" ? u : () => !1), S = typeof u == "function" ? B : u, k = y.useRef(!1), C = y.useRef(!1), {
|
|
2718
|
+
escapeKey: P,
|
|
2718
2719
|
outsidePress: T
|
|
2719
|
-
} =
|
|
2720
|
+
} = Ut(w), {
|
|
2720
2721
|
escapeKey: D,
|
|
2721
2722
|
outsidePress: A
|
|
2722
|
-
} =
|
|
2723
|
-
if (!n || !c || !
|
|
2723
|
+
} = Ut(h), L = ke((v) => {
|
|
2724
|
+
if (!n || !c || !m || v.key !== "Escape")
|
|
2724
2725
|
return;
|
|
2725
|
-
const I = x ?
|
|
2726
|
-
if (!
|
|
2726
|
+
const I = x ? Ge(x.nodesRef.current, r) : [];
|
|
2727
|
+
if (!P && (v.stopPropagation(), I.length > 0)) {
|
|
2727
2728
|
let R = !0;
|
|
2728
2729
|
if (I.forEach(($) => {
|
|
2729
2730
|
var F;
|
|
@@ -2748,37 +2749,37 @@ function si(e, t) {
|
|
|
2748
2749
|
const R = C.current;
|
|
2749
2750
|
if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
|
|
2750
2751
|
return;
|
|
2751
|
-
const $ = Ce(v), F = "[" +
|
|
2752
|
-
let U =
|
|
2752
|
+
const $ = Ce(v), F = "[" + nt("inert") + "]", K = ge(l).querySelectorAll(F);
|
|
2753
|
+
let U = j($) ? $ : null;
|
|
2753
2754
|
for (; U && !Ae(U); ) {
|
|
2754
2755
|
const V = ye(U);
|
|
2755
|
-
if (Ae(V) || !
|
|
2756
|
+
if (Ae(V) || !j(V))
|
|
2756
2757
|
break;
|
|
2757
2758
|
U = V;
|
|
2758
2759
|
}
|
|
2759
|
-
if (K.length &&
|
|
2760
|
+
if (K.length && j($) && !Fo($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2760
2761
|
!be($, l) && // If the target root element contains none of the markers, then the
|
|
2761
2762
|
// element was injected after the floating element rendered.
|
|
2762
2763
|
Array.from(K).every((V) => !be(U, V)))
|
|
2763
2764
|
return;
|
|
2764
2765
|
if (Z($) && l) {
|
|
2765
2766
|
const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, G = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
|
|
2766
|
-
let
|
|
2767
|
-
if (G && J($).direction === "rtl" && (
|
|
2767
|
+
let ue = G && v.offsetX > $.clientWidth;
|
|
2768
|
+
if (G && J($).direction === "rtl" && (ue = v.offsetX <= $.offsetWidth - $.clientWidth), ue || V && v.offsetY > $.clientHeight)
|
|
2768
2769
|
return;
|
|
2769
2770
|
}
|
|
2770
|
-
const we = x &&
|
|
2771
|
+
const we = x && Ge(x.nodesRef.current, r).some((V) => {
|
|
2771
2772
|
var G;
|
|
2772
|
-
return
|
|
2773
|
+
return rt(v, (G = V.context) == null ? void 0 : G.elements.floating);
|
|
2773
2774
|
});
|
|
2774
|
-
if (
|
|
2775
|
+
if (rt(v, l) || rt(v, s) || we)
|
|
2775
2776
|
return;
|
|
2776
|
-
const
|
|
2777
|
-
if (
|
|
2777
|
+
const ce = x ? Ge(x.nodesRef.current, r) : [];
|
|
2778
|
+
if (ce.length > 0) {
|
|
2778
2779
|
let V = !0;
|
|
2779
|
-
if (
|
|
2780
|
-
var
|
|
2781
|
-
if ((
|
|
2780
|
+
if (ce.forEach((G) => {
|
|
2781
|
+
var ue;
|
|
2782
|
+
if ((ue = G.context) != null && ue.open && !G.context.dataRef.current.__outsidePressBubbles) {
|
|
2782
2783
|
V = !1;
|
|
2783
2784
|
return;
|
|
2784
2785
|
}
|
|
@@ -2797,14 +2798,14 @@ function si(e, t) {
|
|
|
2797
2798
|
return y.useEffect(() => {
|
|
2798
2799
|
if (!n || !c)
|
|
2799
2800
|
return;
|
|
2800
|
-
a.current.__escapeKeyBubbles =
|
|
2801
|
+
a.current.__escapeKeyBubbles = P, a.current.__outsidePressBubbles = T;
|
|
2801
2802
|
function v($) {
|
|
2802
2803
|
o(!1, $, "ancestor-scroll");
|
|
2803
2804
|
}
|
|
2804
|
-
const I =
|
|
2805
|
-
|
|
2805
|
+
const I = ge(l);
|
|
2806
|
+
m && I.addEventListener("keydown", D ? M : L, D), S && I.addEventListener(f, A ? b : O, A);
|
|
2806
2807
|
let R = [];
|
|
2807
|
-
return p && (
|
|
2808
|
+
return p && (j(s) && (R = ie(s)), j(l) && (R = R.concat(ie(l))), !j(i) && i && i.contextElement && (R = R.concat(ie(i.contextElement)))), R = R.filter(($) => {
|
|
2808
2809
|
var F;
|
|
2809
2810
|
return $ !== ((F = I.defaultView) == null ? void 0 : F.visualViewport);
|
|
2810
2811
|
}), R.forEach(($) => {
|
|
@@ -2812,16 +2813,16 @@ function si(e, t) {
|
|
|
2812
2813
|
passive: !0
|
|
2813
2814
|
});
|
|
2814
2815
|
}), () => {
|
|
2815
|
-
|
|
2816
|
+
m && I.removeEventListener("keydown", D ? M : L, D), S && I.removeEventListener(f, A ? b : O, A), R.forEach(($) => {
|
|
2816
2817
|
$.removeEventListener("scroll", v);
|
|
2817
2818
|
});
|
|
2818
2819
|
};
|
|
2819
|
-
}, [a, l, s, i,
|
|
2820
|
+
}, [a, l, s, i, m, S, f, n, o, p, c, P, T, L, D, M, O, A, b]), y.useEffect(() => {
|
|
2820
2821
|
k.current = !1;
|
|
2821
2822
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2822
2823
|
reference: {
|
|
2823
2824
|
onKeyDown: L,
|
|
2824
|
-
[ri[
|
|
2825
|
+
[ri[g]]: (v) => {
|
|
2825
2826
|
d && o(!1, v.nativeEvent, "reference-press");
|
|
2826
2827
|
}
|
|
2827
2828
|
},
|
|
@@ -2837,10 +2838,10 @@ function si(e, t) {
|
|
|
2837
2838
|
k.current = !0;
|
|
2838
2839
|
}
|
|
2839
2840
|
}
|
|
2840
|
-
} : {}, [c, d, f,
|
|
2841
|
+
} : {}, [c, d, f, g, o, L]);
|
|
2841
2842
|
}
|
|
2842
|
-
let
|
|
2843
|
-
process.env.NODE_ENV !== "production" && (
|
|
2843
|
+
let pt;
|
|
2844
|
+
process.env.NODE_ENV !== "production" && (pt = /* @__PURE__ */ new Set());
|
|
2844
2845
|
function li(e) {
|
|
2845
2846
|
var t;
|
|
2846
2847
|
e === void 0 && (e = {});
|
|
@@ -2852,41 +2853,41 @@ function li(e) {
|
|
|
2852
2853
|
if (process.env.NODE_ENV !== "production") {
|
|
2853
2854
|
var i;
|
|
2854
2855
|
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.";
|
|
2855
|
-
if ((i = e.elements) != null && i.reference && !
|
|
2856
|
+
if ((i = e.elements) != null && i.reference && !j(e.elements.reference)) {
|
|
2856
2857
|
var s;
|
|
2857
|
-
if (!((s =
|
|
2858
|
+
if (!((s = pt) != null && s.has(T))) {
|
|
2858
2859
|
var l;
|
|
2859
|
-
(l =
|
|
2860
|
+
(l = pt) == null || l.add(T), console.error(T);
|
|
2860
2861
|
}
|
|
2861
2862
|
}
|
|
2862
2863
|
}
|
|
2863
|
-
const [a, c] = y.useState(null),
|
|
2864
|
+
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, u = wr(e), f = St(), d = $t() != null, g = ke((T, D, A) => {
|
|
2864
2865
|
T && (w.current.openEvent = D), h.emit("openchange", {
|
|
2865
2866
|
open: T,
|
|
2866
2867
|
event: D,
|
|
2867
2868
|
reason: A,
|
|
2868
2869
|
nested: d
|
|
2869
2870
|
}), o == null || o(T, D, A);
|
|
2870
|
-
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Yr())[0], x = wt(),
|
|
2871
|
-
const D =
|
|
2871
|
+
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Yr())[0], x = wt(), B = y.useCallback((T) => {
|
|
2872
|
+
const D = j(T) ? {
|
|
2872
2873
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2873
2874
|
contextElement: T
|
|
2874
2875
|
} : T;
|
|
2875
2876
|
u.refs.setReference(D);
|
|
2876
2877
|
}, [u.refs]), S = y.useCallback((T) => {
|
|
2877
|
-
(
|
|
2878
|
+
(j(T) || T === null) && (p.current = T, c(T)), (j(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
2878
2879
|
// `null` to support `positionReference` + an unstable `reference`
|
|
2879
2880
|
// callback ref.
|
|
2880
|
-
T !== null && !
|
|
2881
|
+
T !== null && !j(T)) && u.refs.setReference(T);
|
|
2881
2882
|
}, [u.refs]), k = y.useMemo(() => ({
|
|
2882
2883
|
...u.refs,
|
|
2883
2884
|
setReference: S,
|
|
2884
|
-
setPositionReference:
|
|
2885
|
+
setPositionReference: B,
|
|
2885
2886
|
domReference: p
|
|
2886
|
-
}), [u.refs, S,
|
|
2887
|
+
}), [u.refs, S, B]), C = y.useMemo(() => ({
|
|
2887
2888
|
...u.elements,
|
|
2888
|
-
domReference:
|
|
2889
|
-
}), [u.elements,
|
|
2889
|
+
domReference: m
|
|
2890
|
+
}), [u.elements, m]), P = y.useMemo(() => ({
|
|
2890
2891
|
...u,
|
|
2891
2892
|
refs: k,
|
|
2892
2893
|
elements: C,
|
|
@@ -2895,26 +2896,26 @@ function li(e) {
|
|
|
2895
2896
|
floatingId: x,
|
|
2896
2897
|
events: h,
|
|
2897
2898
|
open: n,
|
|
2898
|
-
onOpenChange:
|
|
2899
|
-
}), [u, r, x, h, n,
|
|
2899
|
+
onOpenChange: g
|
|
2900
|
+
}), [u, r, x, h, n, g, k, C]);
|
|
2900
2901
|
return Q(() => {
|
|
2901
2902
|
const T = f == null ? void 0 : f.nodesRef.current.find((D) => D.id === r);
|
|
2902
|
-
T && (T.context =
|
|
2903
|
+
T && (T.context = P);
|
|
2903
2904
|
}), y.useMemo(() => ({
|
|
2904
2905
|
...u,
|
|
2905
|
-
context:
|
|
2906
|
+
context: P,
|
|
2906
2907
|
refs: k,
|
|
2907
2908
|
elements: C
|
|
2908
|
-
}), [u, k, C,
|
|
2909
|
+
}), [u, k, C, P]);
|
|
2909
2910
|
}
|
|
2910
|
-
const
|
|
2911
|
-
function
|
|
2911
|
+
const qt = "active", Zt = "selected";
|
|
2912
|
+
function at(e, t, n) {
|
|
2912
2913
|
const o = /* @__PURE__ */ new Map(), r = n === "item";
|
|
2913
2914
|
let i = e;
|
|
2914
2915
|
if (r && e) {
|
|
2915
2916
|
const {
|
|
2916
|
-
[
|
|
2917
|
-
[
|
|
2917
|
+
[qt]: s,
|
|
2918
|
+
[Zt]: l,
|
|
2918
2919
|
...a
|
|
2919
2920
|
} = e;
|
|
2920
2921
|
i = a;
|
|
@@ -2928,26 +2929,26 @@ function lt(e, t, n) {
|
|
|
2928
2929
|
const l = s ? s[n] : null;
|
|
2929
2930
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2930
2931
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2931
|
-
let [c,
|
|
2932
|
-
if (!(r && [
|
|
2932
|
+
let [c, m] = a;
|
|
2933
|
+
if (!(r && [qt, Zt].includes(c)))
|
|
2933
2934
|
if (c.indexOf("on") === 0) {
|
|
2934
|
-
if (o.has(c) || o.set(c, []), typeof
|
|
2935
|
+
if (o.has(c) || o.set(c, []), typeof m == "function") {
|
|
2935
2936
|
var u;
|
|
2936
|
-
(u = o.get(c)) == null || u.push(
|
|
2937
|
-
for (var f, d = arguments.length,
|
|
2938
|
-
|
|
2939
|
-
return (f = o.get(c)) == null ? void 0 : f.map((w) => w(...
|
|
2937
|
+
(u = o.get(c)) == null || u.push(m), s[c] = function() {
|
|
2938
|
+
for (var f, d = arguments.length, g = new Array(d), p = 0; p < d; p++)
|
|
2939
|
+
g[p] = arguments[p];
|
|
2940
|
+
return (f = o.get(c)) == null ? void 0 : f.map((w) => w(...g)).find((w) => w !== void 0);
|
|
2940
2941
|
};
|
|
2941
2942
|
}
|
|
2942
2943
|
} else
|
|
2943
|
-
s[c] =
|
|
2944
|
+
s[c] = m;
|
|
2944
2945
|
}), s), {})
|
|
2945
2946
|
};
|
|
2946
2947
|
}
|
|
2947
2948
|
function ai(e) {
|
|
2948
2949
|
e === void 0 && (e = []);
|
|
2949
|
-
const t = e, n = y.useCallback((i) =>
|
|
2950
|
-
(i) =>
|
|
2950
|
+
const t = e, n = y.useCallback((i) => at(i, e, "reference"), t), o = y.useCallback((i) => at(i, e, "floating"), t), r = y.useCallback(
|
|
2951
|
+
(i) => at(i, e, "item"),
|
|
2951
2952
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2952
2953
|
// should be as referentially stable as possible since it may be passed as
|
|
2953
2954
|
// a prop to many components. All `item` key values must therefore be
|
|
@@ -2970,7 +2971,7 @@ function ui(e, t) {
|
|
|
2970
2971
|
} = e, {
|
|
2971
2972
|
enabled: i = !0,
|
|
2972
2973
|
role: s = "dialog"
|
|
2973
|
-
} = t, l = (n = ci.get(s)) != null ? n : s, a = wt(),
|
|
2974
|
+
} = t, l = (n = ci.get(s)) != null ? n : s, a = wt(), m = $t() != null;
|
|
2974
2975
|
return y.useMemo(() => {
|
|
2975
2976
|
if (!i)
|
|
2976
2977
|
return {};
|
|
@@ -2996,7 +2997,7 @@ function ui(e, t) {
|
|
|
2996
2997
|
...l === "menu" && {
|
|
2997
2998
|
id: a
|
|
2998
2999
|
},
|
|
2999
|
-
...l === "menu" &&
|
|
3000
|
+
...l === "menu" && m && {
|
|
3000
3001
|
role: "menuitem"
|
|
3001
3002
|
},
|
|
3002
3003
|
...s === "select" && {
|
|
@@ -3015,7 +3016,7 @@ function ui(e, t) {
|
|
|
3015
3016
|
item(f) {
|
|
3016
3017
|
let {
|
|
3017
3018
|
active: d,
|
|
3018
|
-
selected:
|
|
3019
|
+
selected: g
|
|
3019
3020
|
} = f;
|
|
3020
3021
|
const p = {
|
|
3021
3022
|
role: "option",
|
|
@@ -3027,7 +3028,7 @@ function ui(e, t) {
|
|
|
3027
3028
|
case "select":
|
|
3028
3029
|
return {
|
|
3029
3030
|
...p,
|
|
3030
|
-
"aria-selected": d &&
|
|
3031
|
+
"aria-selected": d && g
|
|
3031
3032
|
};
|
|
3032
3033
|
case "combobox":
|
|
3033
3034
|
return {
|
|
@@ -3040,9 +3041,9 @@ function ui(e, t) {
|
|
|
3040
3041
|
return {};
|
|
3041
3042
|
}
|
|
3042
3043
|
};
|
|
3043
|
-
}, [i, s, l, o, r, a,
|
|
3044
|
+
}, [i, s, l, o, r, a, m]);
|
|
3044
3045
|
}
|
|
3045
|
-
const
|
|
3046
|
+
const Jt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
3046
3047
|
function Ee(e, t) {
|
|
3047
3048
|
return typeof e == "function" ? e(t) : e;
|
|
3048
3049
|
}
|
|
@@ -3064,28 +3065,28 @@ function fi(e, t) {
|
|
|
3064
3065
|
}
|
|
3065
3066
|
} = e, {
|
|
3066
3067
|
duration: r = 250
|
|
3067
|
-
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c,
|
|
3068
|
+
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), u = di(n, s);
|
|
3068
3069
|
return Q(() => {
|
|
3069
|
-
l && !u &&
|
|
3070
|
+
l && !u && m("unmounted");
|
|
3070
3071
|
}, [l, u]), Q(() => {
|
|
3071
3072
|
if (o) {
|
|
3072
3073
|
if (n) {
|
|
3073
|
-
|
|
3074
|
+
m("initial");
|
|
3074
3075
|
const f = requestAnimationFrame(() => {
|
|
3075
|
-
|
|
3076
|
+
m("open");
|
|
3076
3077
|
});
|
|
3077
3078
|
return () => {
|
|
3078
3079
|
cancelAnimationFrame(f);
|
|
3079
3080
|
};
|
|
3080
3081
|
}
|
|
3081
|
-
a(!0),
|
|
3082
|
+
a(!0), m("close");
|
|
3082
3083
|
}
|
|
3083
3084
|
}, [n, o]), {
|
|
3084
3085
|
isMounted: u,
|
|
3085
3086
|
status: c
|
|
3086
3087
|
};
|
|
3087
3088
|
}
|
|
3088
|
-
function
|
|
3089
|
+
function mi(e, t) {
|
|
3089
3090
|
t === void 0 && (t = {});
|
|
3090
3091
|
const {
|
|
3091
3092
|
initial: n = {
|
|
@@ -3098,7 +3099,7 @@ function gi(e, t) {
|
|
|
3098
3099
|
} = t, l = e.placement, a = l.split("-")[0], c = y.useMemo(() => ({
|
|
3099
3100
|
side: a,
|
|
3100
3101
|
placement: l
|
|
3101
|
-
}), [a, l]),
|
|
3102
|
+
}), [a, l]), m = typeof s == "number", u = (m ? s : s.open) || 0, f = (m ? s : s.close) || 0, [d, g] = y.useState(() => ({
|
|
3102
3103
|
...Ee(i, c),
|
|
3103
3104
|
...Ee(n, c)
|
|
3104
3105
|
})), {
|
|
@@ -3106,43 +3107,43 @@ function gi(e, t) {
|
|
|
3106
3107
|
status: w
|
|
3107
3108
|
} = fi(e, {
|
|
3108
3109
|
duration: s
|
|
3109
|
-
}), h =
|
|
3110
|
+
}), h = Be(n), x = Be(o), B = Be(r), S = Be(i);
|
|
3110
3111
|
return Q(() => {
|
|
3111
|
-
const k = Ee(h.current, c), C = Ee(
|
|
3112
|
-
if (w === "initial" &&
|
|
3112
|
+
const k = Ee(h.current, c), C = Ee(B.current, c), P = Ee(S.current, c), T = Ee(x.current, c) || Object.keys(k).reduce((D, A) => (D[A] = "", D), {});
|
|
3113
|
+
if (w === "initial" && g((D) => ({
|
|
3113
3114
|
transitionProperty: D.transitionProperty,
|
|
3114
|
-
...
|
|
3115
|
+
...P,
|
|
3115
3116
|
...k
|
|
3116
|
-
})), w === "open" &&
|
|
3117
|
-
transitionProperty: Object.keys(T).map(
|
|
3117
|
+
})), w === "open" && g({
|
|
3118
|
+
transitionProperty: Object.keys(T).map(Jt).join(","),
|
|
3118
3119
|
transitionDuration: u + "ms",
|
|
3119
|
-
...
|
|
3120
|
+
...P,
|
|
3120
3121
|
...T
|
|
3121
3122
|
}), w === "close") {
|
|
3122
3123
|
const D = C || k;
|
|
3123
|
-
|
|
3124
|
-
transitionProperty: Object.keys(D).map(
|
|
3124
|
+
g({
|
|
3125
|
+
transitionProperty: Object.keys(D).map(Jt).join(","),
|
|
3125
3126
|
transitionDuration: f + "ms",
|
|
3126
|
-
...
|
|
3127
|
+
...P,
|
|
3127
3128
|
...D
|
|
3128
3129
|
});
|
|
3129
3130
|
}
|
|
3130
|
-
}, [f,
|
|
3131
|
+
}, [f, B, h, x, S, u, w, c]), {
|
|
3131
3132
|
isMounted: p,
|
|
3132
3133
|
styles: d
|
|
3133
3134
|
};
|
|
3134
3135
|
}
|
|
3135
|
-
function
|
|
3136
|
+
function Qt(e, t) {
|
|
3136
3137
|
const [n, o] = e;
|
|
3137
3138
|
let r = !1;
|
|
3138
3139
|
const i = t.length;
|
|
3139
3140
|
for (let s = 0, l = i - 1; s < i; l = s++) {
|
|
3140
|
-
const [a, c] = t[s] || [0, 0], [
|
|
3141
|
-
c >= o != u >= o && n <= (
|
|
3141
|
+
const [a, c] = t[s] || [0, 0], [m, u] = t[l] || [0, 0];
|
|
3142
|
+
c >= o != u >= o && n <= (m - a) * (o - c) / (u - c) + a && (r = !r);
|
|
3142
3143
|
}
|
|
3143
3144
|
return r;
|
|
3144
3145
|
}
|
|
3145
|
-
function
|
|
3146
|
+
function gi(e, t) {
|
|
3146
3147
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3147
3148
|
}
|
|
3148
3149
|
function pi(e) {
|
|
@@ -3154,17 +3155,17 @@ function pi(e) {
|
|
|
3154
3155
|
} = e;
|
|
3155
3156
|
let r, i = !1, s = null, l = null, a = performance.now();
|
|
3156
3157
|
function c(u, f) {
|
|
3157
|
-
const d = performance.now(),
|
|
3158
|
-
if (s === null || l === null ||
|
|
3158
|
+
const d = performance.now(), g = d - a;
|
|
3159
|
+
if (s === null || l === null || g === 0)
|
|
3159
3160
|
return s = u, l = f, a = d, null;
|
|
3160
|
-
const p = u - s, w = f - l, x = Math.sqrt(p * p + w * w) /
|
|
3161
|
+
const p = u - s, w = f - l, x = Math.sqrt(p * p + w * w) / g;
|
|
3161
3162
|
return s = u, l = f, a = d, x;
|
|
3162
3163
|
}
|
|
3163
|
-
const
|
|
3164
|
+
const m = (u) => {
|
|
3164
3165
|
let {
|
|
3165
3166
|
x: f,
|
|
3166
3167
|
y: d,
|
|
3167
|
-
placement:
|
|
3168
|
+
placement: g,
|
|
3168
3169
|
elements: p,
|
|
3169
3170
|
onClose: w,
|
|
3170
3171
|
nodeId: h,
|
|
@@ -3174,22 +3175,22 @@ function pi(e) {
|
|
|
3174
3175
|
function k() {
|
|
3175
3176
|
clearTimeout(r), w();
|
|
3176
3177
|
}
|
|
3177
|
-
if (clearTimeout(r), !p.domReference || !p.floating ||
|
|
3178
|
+
if (clearTimeout(r), !p.domReference || !p.floating || g == null || f == null || d == null)
|
|
3178
3179
|
return;
|
|
3179
3180
|
const {
|
|
3180
3181
|
clientX: C,
|
|
3181
|
-
clientY:
|
|
3182
|
-
} = S, T = [C,
|
|
3182
|
+
clientY: P
|
|
3183
|
+
} = S, T = [C, P], D = Ce(S), A = S.type === "mouseleave", L = be(p.floating, D), M = be(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, $ = gi(T, O), F = b.width > O.width, K = b.height > O.height, U = (F ? O : b).left, we = (F ? O : b).right, ce = (K ? O : b).top, V = (K ? O : b).bottom;
|
|
3183
3184
|
if (L && (i = !0, !A))
|
|
3184
3185
|
return;
|
|
3185
3186
|
if (M && (i = !1), M && !A) {
|
|
3186
3187
|
i = !0;
|
|
3187
3188
|
return;
|
|
3188
3189
|
}
|
|
3189
|
-
if (A &&
|
|
3190
|
+
if (A && j(S.relatedTarget) && be(p.floating, S.relatedTarget) || x && Ge(x.nodesRef.current, h).some((de) => {
|
|
3190
3191
|
let {
|
|
3191
3192
|
context: H
|
|
3192
|
-
} =
|
|
3193
|
+
} = de;
|
|
3193
3194
|
return H == null ? void 0 : H.open;
|
|
3194
3195
|
}))
|
|
3195
3196
|
return;
|
|
@@ -3204,52 +3205,52 @@ function pi(e) {
|
|
|
3204
3205
|
G = [[U, b.top + 1], [U, O.bottom - 1], [we, O.bottom - 1], [we, b.top + 1]];
|
|
3205
3206
|
break;
|
|
3206
3207
|
case "left":
|
|
3207
|
-
G = [[b.right - 1, V], [b.right - 1,
|
|
3208
|
+
G = [[b.right - 1, V], [b.right - 1, ce], [O.left + 1, ce], [O.left + 1, V]];
|
|
3208
3209
|
break;
|
|
3209
3210
|
case "right":
|
|
3210
|
-
G = [[O.right - 1, V], [O.right - 1,
|
|
3211
|
+
G = [[O.right - 1, V], [O.right - 1, ce], [b.left + 1, ce], [b.left + 1, V]];
|
|
3211
3212
|
break;
|
|
3212
3213
|
}
|
|
3213
|
-
function
|
|
3214
|
-
let [H, _] =
|
|
3214
|
+
function ue(de) {
|
|
3215
|
+
let [H, _] = de;
|
|
3215
3216
|
switch (v) {
|
|
3216
3217
|
case "top": {
|
|
3217
|
-
const
|
|
3218
|
-
return [
|
|
3218
|
+
const fe = [F ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], me = [F ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], $e = [[b.left, I || F ? b.bottom - t : b.top], [b.right, I ? F ? b.bottom - t : b.top : b.bottom - t]];
|
|
3219
|
+
return [fe, me, ...$e];
|
|
3219
3220
|
}
|
|
3220
3221
|
case "bottom": {
|
|
3221
|
-
const
|
|
3222
|
-
return [
|
|
3222
|
+
const fe = [F ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ - t], me = [F ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ - t], $e = [[b.left, I || F ? b.top + t : b.bottom], [b.right, I ? F ? b.top + t : b.bottom : b.top + t]];
|
|
3223
|
+
return [fe, me, ...$e];
|
|
3223
3224
|
}
|
|
3224
3225
|
case "left": {
|
|
3225
|
-
const
|
|
3226
|
-
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]],
|
|
3226
|
+
const fe = [H + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], me = [H + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
|
|
3227
|
+
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], fe, me];
|
|
3227
3228
|
}
|
|
3228
3229
|
case "right": {
|
|
3229
|
-
const
|
|
3230
|
-
return [
|
|
3230
|
+
const fe = [H - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], me = [H - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], $e = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
|
|
3231
|
+
return [fe, me, ...$e];
|
|
3231
3232
|
}
|
|
3232
3233
|
}
|
|
3233
3234
|
}
|
|
3234
|
-
if (!
|
|
3235
|
+
if (!Qt([C, P], G)) {
|
|
3235
3236
|
if (i && !$)
|
|
3236
3237
|
return k();
|
|
3237
3238
|
if (!A && o) {
|
|
3238
|
-
const
|
|
3239
|
-
if (
|
|
3239
|
+
const de = c(S.clientX, S.clientY);
|
|
3240
|
+
if (de !== null && de < 0.1)
|
|
3240
3241
|
return k();
|
|
3241
3242
|
}
|
|
3242
|
-
|
|
3243
|
+
Qt([C, P], ue([f, d])) ? !i && o && (r = window.setTimeout(k, 40)) : k();
|
|
3243
3244
|
}
|
|
3244
3245
|
};
|
|
3245
3246
|
};
|
|
3246
|
-
return
|
|
3247
|
+
return m.__options = {
|
|
3247
3248
|
blockPointerEvents: n
|
|
3248
|
-
},
|
|
3249
|
+
}, m;
|
|
3249
3250
|
}
|
|
3250
|
-
const
|
|
3251
|
+
const Te = N("div"), Rt = On(
|
|
3251
3252
|
{}
|
|
3252
|
-
),
|
|
3253
|
+
), Wi = ({
|
|
3253
3254
|
children: e,
|
|
3254
3255
|
offset: t,
|
|
3255
3256
|
open: n,
|
|
@@ -3259,13 +3260,13 @@ const ge = j("div"), Rt = Dn(
|
|
|
3259
3260
|
placement: s = "bottom",
|
|
3260
3261
|
role: l = "dialog"
|
|
3261
3262
|
}) => {
|
|
3262
|
-
const { refs: a, floatingStyles: c, context:
|
|
3263
|
+
const { refs: a, floatingStyles: c, context: m } = li({
|
|
3263
3264
|
open: n,
|
|
3264
3265
|
onOpenChange: o,
|
|
3265
3266
|
placement: s,
|
|
3266
3267
|
whileElementsMounted: br,
|
|
3267
3268
|
middleware: [Jo(t), vr(), yr()]
|
|
3268
|
-
}), { isMounted: u, styles: f } =
|
|
3269
|
+
}), { isMounted: u, styles: f } = mi(m, {
|
|
3269
3270
|
initial: ({ side: S }) => ({
|
|
3270
3271
|
opacity: 0,
|
|
3271
3272
|
transform: {
|
|
@@ -3275,16 +3276,16 @@ const ge = j("div"), Rt = Dn(
|
|
|
3275
3276
|
left: "translateX(-0.5rem)"
|
|
3276
3277
|
}[S]
|
|
3277
3278
|
})
|
|
3278
|
-
}), d = oi(
|
|
3279
|
+
}), d = oi(m, { enabled: r === "click" }), g = Gr(m, {
|
|
3279
3280
|
enabled: r === "hover",
|
|
3280
3281
|
delay: i,
|
|
3281
3282
|
handleClose: pi()
|
|
3282
|
-
}), p = si(
|
|
3283
|
+
}), p = si(m), w = ui(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = ai([
|
|
3283
3284
|
d,
|
|
3284
|
-
|
|
3285
|
+
g,
|
|
3285
3286
|
p,
|
|
3286
3287
|
w
|
|
3287
|
-
]),
|
|
3288
|
+
]), B = ct(
|
|
3288
3289
|
() => ({
|
|
3289
3290
|
getFloatingProps: h,
|
|
3290
3291
|
getReferenceProps: x,
|
|
@@ -3302,23 +3303,23 @@ const ge = j("div"), Rt = Dn(
|
|
|
3302
3303
|
f
|
|
3303
3304
|
]
|
|
3304
3305
|
);
|
|
3305
|
-
return /* @__PURE__ */ z(Rt.Provider, { value:
|
|
3306
|
-
},
|
|
3307
|
-
const { getReferenceProps: t, refs: n } =
|
|
3308
|
-
return /* @__PURE__ */ z(
|
|
3306
|
+
return /* @__PURE__ */ z(Rt.Provider, { value: B, children: e });
|
|
3307
|
+
}, Ni = ({ children: e }) => {
|
|
3308
|
+
const { getReferenceProps: t, refs: n } = nn(Rt);
|
|
3309
|
+
return /* @__PURE__ */ z(Pn, { children: Dn(e) && Mn(e, {
|
|
3309
3310
|
ref: n.setReference,
|
|
3310
3311
|
...t()
|
|
3311
3312
|
}) });
|
|
3312
|
-
},
|
|
3313
|
+
}, ji = ({ children: e, overlayCardProps: t }) => {
|
|
3313
3314
|
const {
|
|
3314
3315
|
getFloatingProps: n,
|
|
3315
3316
|
isMounted: o,
|
|
3316
3317
|
refs: r,
|
|
3317
3318
|
floatingStyles: i,
|
|
3318
3319
|
transitionStyles: s
|
|
3319
|
-
} =
|
|
3320
|
+
} = nn(Rt);
|
|
3320
3321
|
return o ? /* @__PURE__ */ z(ti, { children: /* @__PURE__ */ z(
|
|
3321
|
-
|
|
3322
|
+
Te,
|
|
3322
3323
|
{
|
|
3323
3324
|
ref: r.setFloating,
|
|
3324
3325
|
style: i,
|
|
@@ -3326,10 +3327,10 @@ const ge = j("div"), Rt = Dn(
|
|
|
3326
3327
|
css: {
|
|
3327
3328
|
zIndex: "$overlayCard"
|
|
3328
3329
|
},
|
|
3329
|
-
children: /* @__PURE__ */ z(
|
|
3330
|
+
children: /* @__PURE__ */ z(sn, { ...t, style: s, children: e })
|
|
3330
3331
|
}
|
|
3331
3332
|
) }) : null;
|
|
3332
|
-
},
|
|
3333
|
+
}, Hi = N("span", {
|
|
3333
3334
|
flex: "0 0 auto",
|
|
3334
3335
|
display: "inline-flex",
|
|
3335
3336
|
padding: "$1 $2",
|
|
@@ -3366,24 +3367,24 @@ const ge = j("div"), Rt = Dn(
|
|
|
3366
3367
|
defaultVariants: {
|
|
3367
3368
|
color: "primary"
|
|
3368
3369
|
}
|
|
3369
|
-
}),
|
|
3370
|
+
}), Vi = N(He.Root, {
|
|
3370
3371
|
backgroundColor: "$gray50",
|
|
3371
3372
|
display: "flex",
|
|
3372
3373
|
alignItems: "center",
|
|
3373
3374
|
padding: "$1",
|
|
3374
3375
|
gap: "$1"
|
|
3375
|
-
}),
|
|
3376
|
+
}), _i = N(He.ToggleGroup, {
|
|
3376
3377
|
display: "flex",
|
|
3377
3378
|
gap: "$1",
|
|
3378
3379
|
alignItems: "center"
|
|
3379
|
-
}),
|
|
3380
|
+
}), Yi = N(He.Separator, {
|
|
3380
3381
|
width: "1px",
|
|
3381
3382
|
height: "1.5rem",
|
|
3382
3383
|
my: "$1",
|
|
3383
3384
|
mx: "$1",
|
|
3384
3385
|
backgroundColor: "$border"
|
|
3385
|
-
}),
|
|
3386
|
-
|
|
3386
|
+
}), Bn = xe(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3387
|
+
rn,
|
|
3387
3388
|
{
|
|
3388
3389
|
ref: n,
|
|
3389
3390
|
icon: !0,
|
|
@@ -3397,14 +3398,14 @@ const ge = j("div"), Rt = Dn(
|
|
|
3397
3398
|
},
|
|
3398
3399
|
...t
|
|
3399
3400
|
}
|
|
3400
|
-
)),
|
|
3401
|
+
)), Xi = xe(
|
|
3401
3402
|
({ children: e, dropdown: t, ...n }, o) => /* @__PURE__ */ z(
|
|
3402
|
-
|
|
3403
|
+
He.Button,
|
|
3403
3404
|
{
|
|
3404
3405
|
asChild: !0,
|
|
3405
3406
|
ref: o,
|
|
3406
|
-
children: /* @__PURE__ */
|
|
3407
|
-
|
|
3407
|
+
children: /* @__PURE__ */ se(
|
|
3408
|
+
Bn,
|
|
3408
3409
|
{
|
|
3409
3410
|
variant: "transparent",
|
|
3410
3411
|
color: "primary",
|
|
@@ -3417,18 +3418,18 @@ const ge = j("div"), Rt = Dn(
|
|
|
3417
3418
|
)
|
|
3418
3419
|
}
|
|
3419
3420
|
)
|
|
3420
|
-
),
|
|
3421
|
+
), Ki = xe(({
|
|
3421
3422
|
children: e,
|
|
3422
3423
|
value: t,
|
|
3423
3424
|
...n
|
|
3424
3425
|
}, o) => /* @__PURE__ */ z(
|
|
3425
|
-
|
|
3426
|
+
He.ToggleItem,
|
|
3426
3427
|
{
|
|
3427
3428
|
value: t,
|
|
3428
3429
|
asChild: !0,
|
|
3429
3430
|
ref: o,
|
|
3430
3431
|
children: /* @__PURE__ */ z(
|
|
3431
|
-
|
|
3432
|
+
Bn,
|
|
3432
3433
|
{
|
|
3433
3434
|
variant: "transparent",
|
|
3434
3435
|
color: "primary",
|
|
@@ -3438,7 +3439,7 @@ const ge = j("div"), Rt = Dn(
|
|
|
3438
3439
|
}
|
|
3439
3440
|
)
|
|
3440
3441
|
}
|
|
3441
|
-
)),
|
|
3442
|
+
)), Gi = N("div", {
|
|
3442
3443
|
color: "$$cardText",
|
|
3443
3444
|
backgroundColor: "$$cardBackground",
|
|
3444
3445
|
borderRadius: "$md",
|
|
@@ -3463,7 +3464,7 @@ const ge = j("div"), Rt = Dn(
|
|
|
3463
3464
|
variant: "primary",
|
|
3464
3465
|
elevation: "raised"
|
|
3465
3466
|
}
|
|
3466
|
-
}), hi =
|
|
3467
|
+
}), hi = N("div", {
|
|
3467
3468
|
borderRadius: "$md",
|
|
3468
3469
|
padding: "$1",
|
|
3469
3470
|
border: "2px solid $blue100",
|
|
@@ -3471,12 +3472,12 @@ const ge = j("div"), Rt = Dn(
|
|
|
3471
3472
|
display: "flex",
|
|
3472
3473
|
alignItems: "center",
|
|
3473
3474
|
gap: "$1"
|
|
3474
|
-
}),
|
|
3475
|
+
}), Ui = (e) => /* @__PURE__ */ z(hi, { ...e }), qi = ({
|
|
3475
3476
|
children: e,
|
|
3476
3477
|
active: t = !1,
|
|
3477
3478
|
...n
|
|
3478
3479
|
}) => /* @__PURE__ */ z(
|
|
3479
|
-
|
|
3480
|
+
rn,
|
|
3480
3481
|
{
|
|
3481
3482
|
variant: "transparent",
|
|
3482
3483
|
color: "primary",
|
|
@@ -3489,62 +3490,53 @@ const ge = j("div"), Rt = Dn(
|
|
|
3489
3490
|
...n,
|
|
3490
3491
|
children: e
|
|
3491
3492
|
}
|
|
3492
|
-
), bi =
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3493
|
+
), bi = N(Ne.Overlay, {
|
|
3494
|
+
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
3495
|
+
position: "fixed",
|
|
3496
|
+
zIndex: "$overlayCard",
|
|
3497
|
+
inset: 0
|
|
3498
|
+
}), yi = N(Ne.Content, {
|
|
3499
|
+
backgroundColor: "white",
|
|
3496
3500
|
borderRadius: "$md",
|
|
3497
3501
|
position: "fixed",
|
|
3498
3502
|
zIndex: "$overlayCard",
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
"
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3503
|
+
top: "50%",
|
|
3504
|
+
left: "50%",
|
|
3505
|
+
transform: "translate(-50%, -50%)",
|
|
3506
|
+
width: "auto",
|
|
3507
|
+
maxWidth: "90wv",
|
|
3508
|
+
minWidth: "600px",
|
|
3509
|
+
maxHeight: "85vh",
|
|
3510
|
+
padding: "$8",
|
|
3511
|
+
"&:focus": { outline: "none" }
|
|
3512
|
+
}), Zi = ({
|
|
3505
3513
|
children: e,
|
|
3506
|
-
open: t
|
|
3514
|
+
open: t,
|
|
3507
3515
|
onOpenChange: n,
|
|
3508
|
-
|
|
3509
|
-
}) => {
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
}, [n]), s = Ct((l) => {
|
|
3517
|
-
var a;
|
|
3518
|
-
l.target === r.current && ((a = r.current) == null || a.close());
|
|
3519
|
-
}, []);
|
|
3520
|
-
return t ? rn(
|
|
3521
|
-
/* @__PURE__ */ z(
|
|
3522
|
-
bi,
|
|
3523
|
-
{
|
|
3524
|
-
ref: r,
|
|
3525
|
-
onClose: i,
|
|
3526
|
-
onClick: s,
|
|
3527
|
-
...o,
|
|
3528
|
-
children: /* @__PURE__ */ z(ge, { css: { padding: "$4" }, children: e })
|
|
3529
|
-
}
|
|
3530
|
-
),
|
|
3531
|
-
document.body
|
|
3532
|
-
) : null;
|
|
3533
|
-
}, Zi = j("h2", {
|
|
3516
|
+
trigger: o
|
|
3517
|
+
}) => /* @__PURE__ */ se(Ne.Root, { open: t, onOpenChange: n, children: [
|
|
3518
|
+
o && /* @__PURE__ */ z(Ne.Trigger, { asChild: !0, children: o }),
|
|
3519
|
+
/* @__PURE__ */ se(Ne.Portal, { children: [
|
|
3520
|
+
/* @__PURE__ */ z(bi, {}),
|
|
3521
|
+
/* @__PURE__ */ z(yi, { children: e })
|
|
3522
|
+
] })
|
|
3523
|
+
] }), Ji = N("h2", {
|
|
3534
3524
|
fontSize: "$xl",
|
|
3535
3525
|
fontWeight: "$medium",
|
|
3536
3526
|
marginBottom: "$6"
|
|
3537
|
-
}),
|
|
3527
|
+
}), Qi = N("div", {
|
|
3538
3528
|
display: "flex",
|
|
3539
3529
|
gap: "$2",
|
|
3540
3530
|
justifyContent: "flex-end",
|
|
3541
3531
|
background: "$gray100",
|
|
3542
|
-
margin: "$6 -$
|
|
3543
|
-
padding: "$
|
|
3544
|
-
|
|
3532
|
+
margin: "$6 -$8 -$8 -$8",
|
|
3533
|
+
padding: "$4",
|
|
3534
|
+
borderBottomRightRadius: "$md",
|
|
3535
|
+
borderBottomLeftRadius: "$md"
|
|
3536
|
+
}), vi = N(sn, {
|
|
3545
3537
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3546
3538
|
padding: "$1"
|
|
3547
|
-
}), Et =
|
|
3539
|
+
}), Et = Ve({
|
|
3548
3540
|
padding: "$2 $2 $2 1.5rem",
|
|
3549
3541
|
fontSize: "$sm",
|
|
3550
3542
|
lineHeight: "1.25",
|
|
@@ -3567,14 +3559,14 @@ const ge = j("div"), Rt = Dn(
|
|
|
3567
3559
|
backgroundColor: "transparent"
|
|
3568
3560
|
}
|
|
3569
3561
|
}
|
|
3570
|
-
}),
|
|
3562
|
+
}), es = ({
|
|
3571
3563
|
side: e = "bottom",
|
|
3572
3564
|
align: t = "center",
|
|
3573
3565
|
trigger: n,
|
|
3574
3566
|
children: o,
|
|
3575
3567
|
sideOffset: r,
|
|
3576
3568
|
modal: i
|
|
3577
|
-
}) => /* @__PURE__ */
|
|
3569
|
+
}) => /* @__PURE__ */ se(te.Root, { modal: i, children: [
|
|
3578
3570
|
/* @__PURE__ */ z(te.Trigger, { asChild: !0, children: n }),
|
|
3579
3571
|
/* @__PURE__ */ z(te.Portal, { children: /* @__PURE__ */ z(
|
|
3580
3572
|
te.Content,
|
|
@@ -3584,10 +3576,10 @@ const ge = j("div"), Rt = Dn(
|
|
|
3584
3576
|
align: t,
|
|
3585
3577
|
collisionPadding: 10,
|
|
3586
3578
|
sideOffset: r,
|
|
3587
|
-
children: /* @__PURE__ */ z(
|
|
3579
|
+
children: /* @__PURE__ */ z(vi, { children: o })
|
|
3588
3580
|
}
|
|
3589
3581
|
) })
|
|
3590
|
-
] }),
|
|
3582
|
+
] }), xi = N(te.ItemIndicator, {
|
|
3591
3583
|
position: "absolute",
|
|
3592
3584
|
left: 0,
|
|
3593
3585
|
top: 0,
|
|
@@ -3596,30 +3588,30 @@ const ge = j("div"), Rt = Dn(
|
|
|
3596
3588
|
display: "flex",
|
|
3597
3589
|
justifyContent: "center",
|
|
3598
3590
|
alignItems: "center"
|
|
3599
|
-
}),
|
|
3591
|
+
}), ts = N(te.Separator, {
|
|
3600
3592
|
height: 1,
|
|
3601
3593
|
backgroundColor: "$gray200",
|
|
3602
3594
|
margin: 1
|
|
3603
|
-
}),
|
|
3595
|
+
}), ns = N(te.Item, Et), os = N(te.Item, Et, {
|
|
3604
3596
|
padding: "$2",
|
|
3605
3597
|
display: "flex",
|
|
3606
3598
|
alignItems: "center",
|
|
3607
3599
|
gap: "$2"
|
|
3608
|
-
}),
|
|
3600
|
+
}), wi = N(te.CheckboxItem, Et), rs = ({
|
|
3609
3601
|
value: e,
|
|
3610
3602
|
onChange: t,
|
|
3611
3603
|
children: n
|
|
3612
|
-
}) => /* @__PURE__ */
|
|
3613
|
-
|
|
3604
|
+
}) => /* @__PURE__ */ se(
|
|
3605
|
+
wi,
|
|
3614
3606
|
{
|
|
3615
3607
|
checked: e,
|
|
3616
3608
|
onCheckedChange: t,
|
|
3617
3609
|
children: [
|
|
3618
|
-
/* @__PURE__ */ z(
|
|
3610
|
+
/* @__PURE__ */ z(xi, { children: /* @__PURE__ */ z(Nn, { size: "0.75rem" }) }),
|
|
3619
3611
|
n
|
|
3620
3612
|
]
|
|
3621
3613
|
}
|
|
3622
|
-
),
|
|
3614
|
+
), $i = {
|
|
3623
3615
|
container: (e) => ({
|
|
3624
3616
|
...e,
|
|
3625
3617
|
minWidth: "200px"
|
|
@@ -3670,40 +3662,40 @@ const ge = j("div"), Rt = Dn(
|
|
|
3670
3662
|
...e,
|
|
3671
3663
|
zIndex: "var(--zIndices-overlayCard)"
|
|
3672
3664
|
})
|
|
3673
|
-
},
|
|
3665
|
+
}, Si = {
|
|
3674
3666
|
IndicatorSeparator: () => null
|
|
3675
|
-
},
|
|
3667
|
+
}, Ri = ({
|
|
3676
3668
|
styles: e,
|
|
3677
3669
|
components: t,
|
|
3678
3670
|
...n
|
|
3679
3671
|
}) => {
|
|
3680
|
-
const o =
|
|
3672
|
+
const o = ct(
|
|
3681
3673
|
() => ({
|
|
3682
|
-
|
|
3674
|
+
...$i,
|
|
3683
3675
|
...e
|
|
3684
3676
|
}),
|
|
3685
3677
|
[e]
|
|
3686
|
-
), r =
|
|
3678
|
+
), r = ct(
|
|
3687
3679
|
() => ({
|
|
3688
|
-
|
|
3680
|
+
...Si,
|
|
3689
3681
|
...t
|
|
3690
3682
|
}),
|
|
3691
3683
|
[t]
|
|
3692
3684
|
);
|
|
3693
3685
|
return /* @__PURE__ */ z(Hn, { components: r, styles: o, ...n });
|
|
3694
|
-
},
|
|
3686
|
+
}, is = ({
|
|
3695
3687
|
clearable: e = !0,
|
|
3696
3688
|
multi: t = !1,
|
|
3697
3689
|
...n
|
|
3698
3690
|
}) => (e = t ? !1 : e, /* @__PURE__ */ z(
|
|
3699
|
-
|
|
3691
|
+
Ri,
|
|
3700
3692
|
{
|
|
3701
3693
|
...n,
|
|
3702
3694
|
isClearable: e,
|
|
3703
3695
|
isMulti: t,
|
|
3704
3696
|
isSearchable: !0
|
|
3705
3697
|
}
|
|
3706
|
-
)),
|
|
3698
|
+
)), Ei = Ve({
|
|
3707
3699
|
display: "block",
|
|
3708
3700
|
width: "100%",
|
|
3709
3701
|
padding: "0.5rem 0.75rem",
|
|
@@ -3715,7 +3707,7 @@ const ge = j("div"), Rt = Dn(
|
|
|
3715
3707
|
"-webkit-appearance": "none",
|
|
3716
3708
|
"-moz-appearance": "none",
|
|
3717
3709
|
appearance: "none"
|
|
3718
|
-
}),
|
|
3710
|
+
}), Ci = Ve({
|
|
3719
3711
|
display: "block",
|
|
3720
3712
|
width: "100%",
|
|
3721
3713
|
background: "#fff",
|
|
@@ -3739,17 +3731,17 @@ const ge = j("div"), Rt = Dn(
|
|
|
3739
3731
|
}
|
|
3740
3732
|
}
|
|
3741
3733
|
}
|
|
3742
|
-
}),
|
|
3734
|
+
}), ki = N("input", Ei), Ti = N("div", Ci, {
|
|
3743
3735
|
display: "flex",
|
|
3744
3736
|
alignItems: "center",
|
|
3745
3737
|
gap: "$2",
|
|
3746
3738
|
width: "100%"
|
|
3747
|
-
}),
|
|
3739
|
+
}), ss = xe(
|
|
3748
3740
|
({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
|
|
3749
|
-
const c =
|
|
3750
|
-
return s = s || c, /* @__PURE__ */
|
|
3741
|
+
const c = Ln();
|
|
3742
|
+
return s = s || c, /* @__PURE__ */ se(Te, { css: r, children: [
|
|
3751
3743
|
t && /* @__PURE__ */ z(
|
|
3752
|
-
|
|
3744
|
+
Te,
|
|
3753
3745
|
{
|
|
3754
3746
|
as: "label",
|
|
3755
3747
|
htmlFor: s,
|
|
@@ -3761,9 +3753,9 @@ const ge = j("div"), Rt = Dn(
|
|
|
3761
3753
|
children: t
|
|
3762
3754
|
}
|
|
3763
3755
|
),
|
|
3764
|
-
/* @__PURE__ */
|
|
3756
|
+
/* @__PURE__ */ se(Ti, { error: !!n, children: [
|
|
3765
3757
|
/* @__PURE__ */ z(
|
|
3766
|
-
|
|
3758
|
+
ki,
|
|
3767
3759
|
{
|
|
3768
3760
|
id: s,
|
|
3769
3761
|
ref: a,
|
|
@@ -3773,7 +3765,7 @@ const ge = j("div"), Rt = Dn(
|
|
|
3773
3765
|
}
|
|
3774
3766
|
),
|
|
3775
3767
|
i && /* @__PURE__ */ z(
|
|
3776
|
-
|
|
3768
|
+
Te,
|
|
3777
3769
|
{
|
|
3778
3770
|
css: {
|
|
3779
3771
|
fontSize: "$sm",
|
|
@@ -3784,7 +3776,7 @@ const ge = j("div"), Rt = Dn(
|
|
|
3784
3776
|
}
|
|
3785
3777
|
),
|
|
3786
3778
|
n && /* @__PURE__ */ z(
|
|
3787
|
-
|
|
3779
|
+
Te,
|
|
3788
3780
|
{
|
|
3789
3781
|
as: jn,
|
|
3790
3782
|
css: { color: "$red600", marginRight: "$2" },
|
|
@@ -3792,56 +3784,56 @@ const ge = j("div"), Rt = Dn(
|
|
|
3792
3784
|
}
|
|
3793
3785
|
)
|
|
3794
3786
|
] }),
|
|
3795
|
-
typeof n == "string" && /* @__PURE__ */ z(
|
|
3787
|
+
typeof n == "string" && /* @__PURE__ */ z(Te, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
|
|
3796
3788
|
] });
|
|
3797
3789
|
}
|
|
3798
3790
|
);
|
|
3799
3791
|
export {
|
|
3800
3792
|
Me as A,
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3793
|
+
Te as B,
|
|
3794
|
+
is as C,
|
|
3795
|
+
es as D,
|
|
3796
|
+
Di as E,
|
|
3805
3797
|
ti as F,
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3798
|
+
Mi as G,
|
|
3799
|
+
Li as H,
|
|
3800
|
+
Hi as I,
|
|
3801
|
+
Bn as J,
|
|
3802
|
+
Gi as K,
|
|
3803
|
+
Ji as L,
|
|
3804
|
+
vi as M,
|
|
3805
|
+
Ui as N,
|
|
3806
|
+
sn as O,
|
|
3807
|
+
Wi as P,
|
|
3816
3808
|
Et as Q,
|
|
3817
|
-
|
|
3809
|
+
Ri as R,
|
|
3818
3810
|
So as S,
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3811
|
+
Xi as T,
|
|
3812
|
+
rs as U,
|
|
3813
|
+
os as a,
|
|
3814
|
+
_i as b,
|
|
3815
|
+
Ve as c,
|
|
3816
|
+
Ki as d,
|
|
3825
3817
|
br as e,
|
|
3826
|
-
|
|
3818
|
+
Fi as f,
|
|
3827
3819
|
vr as g,
|
|
3828
3820
|
yr as h,
|
|
3829
3821
|
ai as i,
|
|
3830
3822
|
ui as j,
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3823
|
+
Vi as k,
|
|
3824
|
+
Yi as l,
|
|
3825
|
+
rn as m,
|
|
3826
|
+
ns as n,
|
|
3835
3827
|
Jo as o,
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3828
|
+
ts as p,
|
|
3829
|
+
Zi as q,
|
|
3830
|
+
qi as r,
|
|
3831
|
+
N as s,
|
|
3832
|
+
ss as t,
|
|
3841
3833
|
li as u,
|
|
3842
|
-
|
|
3843
|
-
|
|
3834
|
+
Qi as v,
|
|
3835
|
+
zi as w,
|
|
3844
3836
|
si as x,
|
|
3845
|
-
|
|
3846
|
-
|
|
3837
|
+
Ni as y,
|
|
3838
|
+
ji as z
|
|
3847
3839
|
};
|