@arkitektbedriftene/fe-lib 0.3.22 → 0.3.24
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/{DropdownMenu-7a3b57bd.js → DropdownMenu-c37aea6d.js} +237 -209
- package/dist/rich-text/rich-text.d.ts +1 -0
- package/dist/rich-text/styles.d.ts +117 -0
- package/dist/rich-text.es.js +317 -175
- package/dist/ui/components/Form/Combobox.d.ts +7 -0
- package/dist/ui/components/Form/ReactSelect.d.ts +3 -0
- package/dist/ui/components/Form/Select.d.ts +6 -0
- package/dist/ui/components/NavBar.d.ts +249 -0
- package/dist/ui/ui.d.ts +3 -0
- package/dist/ui.es.js +125 -42
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as z, jsxs as Ze, Fragment as
|
|
1
|
+
import { jsx as z, jsxs as Ze, Fragment as Cn } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import xe, { forwardRef as Pe, useLayoutEffect as Zt, useEffect as Jt, useRef as
|
|
4
|
-
import * as
|
|
5
|
-
import { createPortal as
|
|
3
|
+
import xe, { forwardRef as Pe, useLayoutEffect as Zt, useEffect as Jt, useRef as kn, createContext as Tn, useMemo as In, useContext as Qt, isValidElement as Pn, cloneElement as An } from "react";
|
|
4
|
+
import * as Bn from "react-dom";
|
|
5
|
+
import { createPortal as On } from "react-dom";
|
|
6
6
|
import * as Le from "@radix-ui/react-toolbar";
|
|
7
|
-
import { f as
|
|
7
|
+
import { f as Dn, g as Mn } from "./index.esm-d078f232.js";
|
|
8
8
|
import * as ee from "@radix-ui/react-dropdown-menu";
|
|
9
|
-
var
|
|
9
|
+
var N = "colors", Y = "sizes", E = "space", Ln = { 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: N, backgroundColor: N, backgroundImage: N, borderImage: N, border: N, borderBlock: N, borderBlockEnd: N, borderBlockStart: N, borderBottom: N, borderBottomColor: N, borderColor: N, borderInline: N, borderInlineEnd: N, borderInlineStart: N, borderLeft: N, borderLeftColor: N, borderRight: N, borderRightColor: N, borderTop: N, borderTopColor: N, caretColor: N, color: N, columnRuleColor: N, fill: N, outline: N, outlineColor: N, stroke: N, textDecorationColor: N, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Y, minBlockSize: Y, maxBlockSize: Y, inlineSize: Y, minInlineSize: Y, maxInlineSize: Y, width: Y, minWidth: Y, maxWidth: Y, height: Y, minHeight: Y, maxHeight: Y, flexBasis: Y, gridTemplateColumns: Y, gridTemplateRows: Y, 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" }, Fn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Ae = () => {
|
|
10
10
|
const e = /* @__PURE__ */ Object.create(null);
|
|
11
11
|
return (t, n, ...r) => {
|
|
12
|
-
const o = ((i) => JSON.stringify(i,
|
|
12
|
+
const o = ((i) => JSON.stringify(i, Fn))(t);
|
|
13
13
|
return o in e ? e[o] : e[o] = n(t, ...r);
|
|
14
14
|
};
|
|
15
15
|
}, me = Symbol.for("sxs.internal"), ft = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), St = (e) => {
|
|
16
16
|
for (const t in e)
|
|
17
17
|
return !0;
|
|
18
18
|
return !1;
|
|
19
|
-
}, { hasOwnProperty:
|
|
19
|
+
}, { hasOwnProperty: Nn } = Object.prototype, st = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Wn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Wn) : [t]), Rt = { 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: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, zn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, jn = (e, t) => e in Hn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${st(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${st(e)}:${r}fit-content`) + i) : String(t), Hn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, te = (e) => e ? e + "-" : "", en = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? te(t) + (l.includes("$") ? "" : te(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Vn = /\s*,\s*(?![^()]*\))/, _n = Object.prototype.toString, Ee = (e, t, n, r, o) => {
|
|
20
20
|
let i, s, l;
|
|
21
21
|
const a = (c, m, d) => {
|
|
22
22
|
let f, u;
|
|
@@ -24,7 +24,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
24
24
|
for (f in p) {
|
|
25
25
|
const x = f.charCodeAt(0) === 64, P = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
26
26
|
for (u of P) {
|
|
27
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof u == "object" && u && u.toString ===
|
|
27
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof u == "object" && u && u.toString === _n && (!r.utils[S] || !m.length);
|
|
28
28
|
if (S in r.utils && !k) {
|
|
29
29
|
const C = r.utils[S];
|
|
30
30
|
if (C !== s) {
|
|
@@ -42,10 +42,10 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
42
42
|
const M = et.test(A), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [B, A] : [A, B];
|
|
43
43
|
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(et, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? L.replace(et, (I, R, $) => Number(R) + O * (D === ">" ? -1 : 1) + $) : L) : "") + ")";
|
|
44
44
|
})), k) {
|
|
45
|
-
const C = x ? d.concat(f) : [...d], A = x ? [...m] :
|
|
45
|
+
const C = x ? d.concat(f) : [...d], A = x ? [...m] : zn(m, f.split(Vn));
|
|
46
46
|
i !== void 0 && o(Et(...i)), i = void 0, a(u, A, C);
|
|
47
47
|
} else
|
|
48
|
-
i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in
|
|
48
|
+
i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in Yn ? String(u) + "px" : String(u) : en(jn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${st(f)}:`}${u}`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
var w, h;
|
|
@@ -53,7 +53,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
53
53
|
g(c), i !== void 0 && o(Et(...i)), i = void 0;
|
|
54
54
|
};
|
|
55
55
|
a(e, t, n);
|
|
56
|
-
}, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`,
|
|
56
|
+
}, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, Yn = { 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 }, Ct = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ge = (e) => ((t) => {
|
|
57
57
|
let n, r = "";
|
|
58
58
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
59
59
|
r = Ct(n % 52) + r;
|
|
@@ -63,7 +63,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
63
63
|
for (; r; )
|
|
64
64
|
t = 33 * t ^ n.charCodeAt(--r);
|
|
65
65
|
return t;
|
|
66
|
-
})(5381, JSON.stringify(e)) >>> 0), De = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"],
|
|
66
|
+
})(5381, JSON.stringify(e)) >>> 0), De = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Kn = (e) => {
|
|
67
67
|
if (e.href && !e.href.startsWith(location.origin))
|
|
68
68
|
return !1;
|
|
69
69
|
try {
|
|
@@ -71,7 +71,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
71
71
|
} catch {
|
|
72
72
|
return !1;
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, Xn = (e) => {
|
|
75
75
|
let t;
|
|
76
76
|
const n = () => {
|
|
77
77
|
const { cssRules: o } = t.sheet;
|
|
@@ -103,7 +103,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
103
103
|
}
|
|
104
104
|
const o = Object(e).styleSheets || [];
|
|
105
105
|
for (const l of o)
|
|
106
|
-
if (
|
|
106
|
+
if (Kn(l)) {
|
|
107
107
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
108
108
|
const m = Object(c[a]);
|
|
109
109
|
if (m.type !== 1)
|
|
@@ -136,11 +136,11 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
136
136
|
const c = De[l + 1], m = s[c] ? s[c].index : i.cssRules.length;
|
|
137
137
|
i.insertRule("@media{}", m), i.insertRule(`--sxs{--sxs:${l}}`, m), s[a] = { group: i.cssRules[m + 1], index: m, cache: /* @__PURE__ */ new Set([l]) };
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
Gn(s[a]);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
return r(), t;
|
|
143
|
-
},
|
|
143
|
+
}, Gn = (e) => {
|
|
144
144
|
const t = e.group;
|
|
145
145
|
let n = t.cssRules.length;
|
|
146
146
|
e.apply = (r) => {
|
|
@@ -149,7 +149,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
149
149
|
} catch {
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
}, Oe = Symbol(),
|
|
152
|
+
}, Oe = Symbol(), Un = Ae(), kt = (e, t) => Un(e, () => (...n) => {
|
|
153
153
|
let r = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
154
154
|
for (const o of n)
|
|
155
155
|
if (o != null)
|
|
@@ -158,15 +158,15 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
158
158
|
for (const i of o[me].composers)
|
|
159
159
|
r.composers.add(i);
|
|
160
160
|
} else
|
|
161
|
-
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(
|
|
162
|
-
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]),
|
|
163
|
-
}),
|
|
161
|
+
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(qn(o, e));
|
|
162
|
+
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]), Zn(e, r, t);
|
|
163
|
+
}), qn = ({ variants: e, compoundVariants: t, defaultVariants: n, ...r }, o) => {
|
|
164
164
|
const i = `${te(o.prefix)}c-${ge(r)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
|
|
165
165
|
for (const f in n)
|
|
166
166
|
a[f] = String(n[f]);
|
|
167
167
|
if (typeof e == "object" && e)
|
|
168
168
|
for (const f in e) {
|
|
169
|
-
m = a, d = f,
|
|
169
|
+
m = a, d = f, Nn.call(m, d) || (a[f] = "undefined");
|
|
170
170
|
const u = e[f];
|
|
171
171
|
for (const g in u) {
|
|
172
172
|
const p = { [f]: String(g) };
|
|
@@ -186,8 +186,8 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
186
186
|
l.push(p);
|
|
187
187
|
}
|
|
188
188
|
return [i, r, s, l, a, c];
|
|
189
|
-
},
|
|
190
|
-
const [r, o, i, s] =
|
|
189
|
+
}, Zn = (e, t, n) => {
|
|
190
|
+
const [r, o, i, s] = Jn(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((d) => {
|
|
191
191
|
function f() {
|
|
192
192
|
for (let u = 0; u < f[Oe].length; u++) {
|
|
193
193
|
const [g, p] = f[Oe][u];
|
|
@@ -197,7 +197,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
197
197
|
}
|
|
198
198
|
return f[Oe] = [], f.rules = {}, De.forEach((u) => f.rules[u] = { apply: (g) => f[Oe].push([u, g]) }), f;
|
|
199
199
|
})(n) : null, a = (l || n).rules, c = `.${r}${o.length > 1 ? `:where(.${o.slice(1).join(".")})` : ""}`, m = (d) => {
|
|
200
|
-
d = typeof d == "object" && d ||
|
|
200
|
+
d = typeof d == "object" && d || Qn;
|
|
201
201
|
const { css: f, ...u } = d, g = {};
|
|
202
202
|
for (const h in i)
|
|
203
203
|
if (delete u[h], h in d) {
|
|
@@ -242,7 +242,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
242
242
|
return { type: t.type, className: w, selector: c, props: u, toString: () => w, deferredInjector: l };
|
|
243
243
|
};
|
|
244
244
|
return ft(m, { className: r, selector: c, [me]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
|
|
245
|
-
},
|
|
245
|
+
}, Jn = (e) => {
|
|
246
246
|
let t = "";
|
|
247
247
|
const n = [], r = {}, o = [];
|
|
248
248
|
for (const [i, , , , s, l] of e) {
|
|
@@ -286,7 +286,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
286
286
|
(o[c] = o[c] || []).push([r ? "cv" : `${a}-${i[a]}`, s, m]);
|
|
287
287
|
}
|
|
288
288
|
return o;
|
|
289
|
-
},
|
|
289
|
+
}, Qn = {}, er = Ae(), tr = (e, t) => er(e, () => (...n) => {
|
|
290
290
|
const r = () => {
|
|
291
291
|
for (let o of n) {
|
|
292
292
|
o = typeof o == "object" && o || {};
|
|
@@ -306,7 +306,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
306
306
|
return "";
|
|
307
307
|
};
|
|
308
308
|
return ft(r, { toString: r });
|
|
309
|
-
}),
|
|
309
|
+
}), nr = Ae(), rr = (e, t) => nr(e, () => (n) => {
|
|
310
310
|
const r = `${te(e.prefix)}k-${ge(n)}`, o = () => {
|
|
311
311
|
if (!t.rules.global.cache.has(r)) {
|
|
312
312
|
t.rules.global.cache.add(r);
|
|
@@ -320,7 +320,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
320
320
|
return ft(o, { get name() {
|
|
321
321
|
return o();
|
|
322
322
|
}, toString: o });
|
|
323
|
-
}),
|
|
323
|
+
}), or = class {
|
|
324
324
|
constructor(e, t, n, r) {
|
|
325
325
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = r == null ? "" : String(r);
|
|
326
326
|
}
|
|
@@ -333,14 +333,14 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
333
333
|
toString() {
|
|
334
334
|
return this.computedValue;
|
|
335
335
|
}
|
|
336
|
-
},
|
|
336
|
+
}, ir = Ae(), sr = (e, t) => ir(e, () => (n, r) => {
|
|
337
337
|
r = typeof n == "object" && n || Object(r);
|
|
338
338
|
const o = `.${n = (n = typeof n == "string" ? n : "") || `${te(e.prefix)}t-${ge(r)}`}`, i = {}, s = [];
|
|
339
339
|
for (const a in r) {
|
|
340
340
|
i[a] = {};
|
|
341
341
|
for (const c in r[a]) {
|
|
342
342
|
const m = `--${te(e.prefix)}${a}-${c}`, d = en(String(r[a][c]), e.prefix, a);
|
|
343
|
-
i[a][c] = new
|
|
343
|
+
i[a][c] = new or(c, d, a, e.prefix), s.push(`${m}:${d}`);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
const l = () => {
|
|
@@ -354,19 +354,19 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
354
354
|
return { ...i, get className() {
|
|
355
355
|
return l();
|
|
356
356
|
}, selector: o, toString: l };
|
|
357
|
-
}),
|
|
357
|
+
}), lr = Ae(), ar = Ae(), cr = (e) => {
|
|
358
358
|
const t = ((n) => {
|
|
359
359
|
let r = !1;
|
|
360
|
-
const o =
|
|
360
|
+
const o = lr(n, (i) => {
|
|
361
361
|
r = !0;
|
|
362
|
-
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 || { ...
|
|
362
|
+
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 || { ...Ln }, utils: typeof i.utils == "object" && i.utils || {} }, d = Xn(a), f = { css: kt(m, d), globalCss: tr(m, d), keyframes: rr(m, d), createTheme: sr(m, d), reset() {
|
|
363
363
|
d.reset(), f.theme.toString();
|
|
364
364
|
}, theme: {}, sheet: d, config: m, prefix: s, getCssText: d.toString, toString: d.toString };
|
|
365
365
|
return String(f.theme = f.createTheme(c)), f;
|
|
366
366
|
});
|
|
367
367
|
return r || o.reset(), o;
|
|
368
368
|
})(e);
|
|
369
|
-
return t.styled = (({ config: n, sheet: r }) =>
|
|
369
|
+
return t.styled = (({ config: n, sheet: r }) => ar(n, () => {
|
|
370
370
|
const o = kt(n, r);
|
|
371
371
|
return (...i) => {
|
|
372
372
|
const s = o(...i), l = s[me].type, a = xe.forwardRef((c, m) => {
|
|
@@ -378,7 +378,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
378
378
|
}))(t), t;
|
|
379
379
|
};
|
|
380
380
|
let It = 9999;
|
|
381
|
-
const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss:
|
|
381
|
+
const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: bi } = cr({
|
|
382
382
|
theme: {
|
|
383
383
|
colors: {
|
|
384
384
|
gray50: "#F9FAFA",
|
|
@@ -504,24 +504,24 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
504
504
|
lg: "(min-width: 1200px)",
|
|
505
505
|
print: "print"
|
|
506
506
|
}
|
|
507
|
-
}),
|
|
507
|
+
}), ur = Be({
|
|
508
508
|
"0%": {
|
|
509
509
|
transform: "rotate(0)"
|
|
510
510
|
},
|
|
511
511
|
"100%": {
|
|
512
512
|
transform: "rotate(360deg)"
|
|
513
513
|
}
|
|
514
|
-
}),
|
|
514
|
+
}), dr = Be({
|
|
515
515
|
"0%": {
|
|
516
516
|
strokeDashoffset: 600
|
|
517
517
|
},
|
|
518
518
|
"100%": {
|
|
519
519
|
strokeDashoffset: 0
|
|
520
520
|
}
|
|
521
|
-
}),
|
|
522
|
-
animation: `${
|
|
523
|
-
}),
|
|
524
|
-
animation: `${
|
|
521
|
+
}), fr = H("svg", {
|
|
522
|
+
animation: `${ur} 2s linear infinite`
|
|
523
|
+
}), mr = H("circle", {
|
|
524
|
+
animation: `${dr} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
525
525
|
fill: "transparent",
|
|
526
526
|
stroke: "currentColor",
|
|
527
527
|
strokeDasharray: 300,
|
|
@@ -529,7 +529,7 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
529
529
|
strokeLinecap: "round",
|
|
530
530
|
strokeMiterlimit: 10,
|
|
531
531
|
strokeWidth: 12
|
|
532
|
-
}),
|
|
532
|
+
}), gr = H("div", {
|
|
533
533
|
lineHeight: 0,
|
|
534
534
|
flexShrink: 0,
|
|
535
535
|
variants: {
|
|
@@ -567,20 +567,20 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
567
567
|
size: "sm",
|
|
568
568
|
color: "dark"
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
570
|
+
}), pr = Pe(
|
|
571
571
|
(e, t) => /* @__PURE__ */ z(
|
|
572
|
-
|
|
572
|
+
gr,
|
|
573
573
|
{
|
|
574
574
|
ref: t,
|
|
575
575
|
...e,
|
|
576
576
|
children: /* @__PURE__ */ z(
|
|
577
|
-
|
|
577
|
+
fr,
|
|
578
578
|
{
|
|
579
579
|
x: "0px",
|
|
580
580
|
y: "0px",
|
|
581
581
|
viewBox: "0 0 150 150",
|
|
582
582
|
children: /* @__PURE__ */ z(
|
|
583
|
-
|
|
583
|
+
mr,
|
|
584
584
|
{
|
|
585
585
|
cx: "75",
|
|
586
586
|
cy: "75",
|
|
@@ -591,7 +591,7 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
591
591
|
)
|
|
592
592
|
}
|
|
593
593
|
)
|
|
594
|
-
),
|
|
594
|
+
), hr = H("button", {
|
|
595
595
|
appearance: "none",
|
|
596
596
|
margin: 0,
|
|
597
597
|
padding: 0,
|
|
@@ -736,9 +736,9 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
736
736
|
color: "secondary",
|
|
737
737
|
size: "md"
|
|
738
738
|
}
|
|
739
|
-
}),
|
|
739
|
+
}), tn = Pe(
|
|
740
740
|
({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */ Ze(
|
|
741
|
-
|
|
741
|
+
hr,
|
|
742
742
|
{
|
|
743
743
|
ref: s,
|
|
744
744
|
type: "button",
|
|
@@ -749,7 +749,7 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
749
749
|
...i,
|
|
750
750
|
children: [
|
|
751
751
|
e,
|
|
752
|
-
n && /* @__PURE__ */ z(
|
|
752
|
+
n && /* @__PURE__ */ z(pr, { color: "inherit" })
|
|
753
753
|
]
|
|
754
754
|
}
|
|
755
755
|
))
|
|
@@ -792,7 +792,7 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
792
792
|
color: "info",
|
|
793
793
|
size: "md"
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
795
|
+
}), yi = Pe(
|
|
796
796
|
({ children: e, ...t }, n) => /* @__PURE__ */ z(
|
|
797
797
|
br,
|
|
798
798
|
{
|
|
@@ -834,13 +834,13 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi
|
|
|
834
834
|
'&[data-side="bottom"]': { animationName: yr },
|
|
835
835
|
'&[data-side="left"]': { animationName: vr }
|
|
836
836
|
}
|
|
837
|
-
}),
|
|
837
|
+
}), nn = H(
|
|
838
838
|
"div",
|
|
839
839
|
$r,
|
|
840
840
|
Sr
|
|
841
841
|
);
|
|
842
842
|
function oe(e) {
|
|
843
|
-
return
|
|
843
|
+
return rn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
844
844
|
}
|
|
845
845
|
function q(e) {
|
|
846
846
|
var t;
|
|
@@ -848,12 +848,12 @@ function q(e) {
|
|
|
848
848
|
}
|
|
849
849
|
function ne(e) {
|
|
850
850
|
var t;
|
|
851
|
-
return (t = (
|
|
851
|
+
return (t = (rn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function rn(e) {
|
|
854
854
|
return e instanceof Node || e instanceof q(e).Node;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function W(e) {
|
|
857
857
|
return e instanceof Element || e instanceof q(e).Element;
|
|
858
858
|
}
|
|
859
859
|
function Z(e) {
|
|
@@ -897,7 +897,7 @@ function J(e) {
|
|
|
897
897
|
return q(e).getComputedStyle(e);
|
|
898
898
|
}
|
|
899
899
|
function Je(e) {
|
|
900
|
-
return
|
|
900
|
+
return W(e) ? {
|
|
901
901
|
scrollLeft: e.scrollLeft,
|
|
902
902
|
scrollTop: e.scrollTop
|
|
903
903
|
} : {
|
|
@@ -917,14 +917,14 @@ function he(e) {
|
|
|
917
917
|
);
|
|
918
918
|
return lt(t) ? t.host : t;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function on(e) {
|
|
921
921
|
const t = he(e);
|
|
922
|
-
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Fe(t) ? t :
|
|
922
|
+
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Fe(t) ? t : on(t);
|
|
923
923
|
}
|
|
924
924
|
function re(e, t, n) {
|
|
925
925
|
var r;
|
|
926
926
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
927
|
-
const o =
|
|
927
|
+
const o = on(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = q(o);
|
|
928
928
|
return i ? t.concat(s, s.visualViewport || [], Fe(o) ? o : [], s.frameElement && n ? re(s.frameElement) : []) : t.concat(o, re(o, [], n));
|
|
929
929
|
}
|
|
930
930
|
function Cr(e) {
|
|
@@ -997,30 +997,30 @@ const Ie = Math.min, U = Math.max, Ye = Math.round, je = Math.floor, ie = (e) =>
|
|
|
997
997
|
function At(e, t, n) {
|
|
998
998
|
return U(e, Ie(t, n));
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Ne(e, t) {
|
|
1001
1001
|
return typeof e == "function" ? e(t) : e;
|
|
1002
1002
|
}
|
|
1003
1003
|
function se(e) {
|
|
1004
1004
|
return e.split("-")[0];
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function We(e) {
|
|
1007
1007
|
return e.split("-")[1];
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function sn(e) {
|
|
1010
1010
|
return e === "x" ? "y" : "x";
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function ln(e) {
|
|
1013
1013
|
return e === "y" ? "height" : "width";
|
|
1014
1014
|
}
|
|
1015
1015
|
function ze(e) {
|
|
1016
1016
|
return ["top", "bottom"].includes(se(e)) ? "y" : "x";
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1018
|
+
function an(e) {
|
|
1019
|
+
return sn(ze(e));
|
|
1020
1020
|
}
|
|
1021
1021
|
function Dr(e, t, n) {
|
|
1022
1022
|
n === void 0 && (n = !1);
|
|
1023
|
-
const r =
|
|
1023
|
+
const r = We(e), o = an(e), i = ln(o);
|
|
1024
1024
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1025
1025
|
return t.reference[i] > t.floating[i] && (s = Ke(s)), [s, Ke(s)];
|
|
1026
1026
|
}
|
|
@@ -1045,14 +1045,14 @@ function Lr(e, t, n) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
function Fr(e, t, n, r) {
|
|
1048
|
-
const o =
|
|
1048
|
+
const o = We(e);
|
|
1049
1049
|
let i = Lr(se(e), n === "start", r);
|
|
1050
1050
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(at)))), i;
|
|
1051
1051
|
}
|
|
1052
1052
|
function Ke(e) {
|
|
1053
1053
|
return e.replace(/left|right|bottom|top/g, (t) => Br[t]);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function Nr(e) {
|
|
1056
1056
|
return {
|
|
1057
1057
|
top: 0,
|
|
1058
1058
|
right: 0,
|
|
@@ -1061,8 +1061,8 @@ function Wr(e) {
|
|
|
1061
1061
|
...e
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return typeof e != "number" ?
|
|
1064
|
+
function Wr(e) {
|
|
1065
|
+
return typeof e != "number" ? Nr(e) : {
|
|
1066
1066
|
top: e,
|
|
1067
1067
|
right: e,
|
|
1068
1068
|
bottom: e,
|
|
@@ -1083,7 +1083,7 @@ function Bt(e, t, n) {
|
|
|
1083
1083
|
reference: r,
|
|
1084
1084
|
floating: o
|
|
1085
1085
|
} = e;
|
|
1086
|
-
const i = ze(t), s =
|
|
1086
|
+
const i = ze(t), s = an(t), l = ln(s), a = se(t), c = i === "y", m = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[l] / 2 - o[l] / 2;
|
|
1087
1087
|
let u;
|
|
1088
1088
|
switch (a) {
|
|
1089
1089
|
case "top":
|
|
@@ -1116,7 +1116,7 @@ function Bt(e, t, n) {
|
|
|
1116
1116
|
y: r.y
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
|
-
switch (
|
|
1119
|
+
switch (We(t)) {
|
|
1120
1120
|
case "start":
|
|
1121
1121
|
u[s] -= f * (n && c ? -1 : 1);
|
|
1122
1122
|
break;
|
|
@@ -1203,7 +1203,7 @@ async function ht(e, t) {
|
|
|
1203
1203
|
elementContext: d = "floating",
|
|
1204
1204
|
altBoundary: f = !1,
|
|
1205
1205
|
padding: u = 0
|
|
1206
|
-
} =
|
|
1206
|
+
} = Ne(t, e), g = Wr(u), w = l[f ? d === "floating" ? "reference" : "floating" : d], h = Xe(await i.getClippingRect({
|
|
1207
1207
|
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)),
|
|
1208
1208
|
boundary: c,
|
|
1209
1209
|
rootBoundary: m,
|
|
@@ -1252,7 +1252,7 @@ const jr = function(e) {
|
|
|
1252
1252
|
fallbackAxisSideDirection: g = "none",
|
|
1253
1253
|
flipAlignment: p = !0,
|
|
1254
1254
|
...w
|
|
1255
|
-
} =
|
|
1255
|
+
} = Ne(e, t);
|
|
1256
1256
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1257
1257
|
return {};
|
|
1258
1258
|
const h = se(o), x = se(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ke(l)] : Mr(l));
|
|
@@ -1308,7 +1308,7 @@ async function Hr(e, t) {
|
|
|
1308
1308
|
placement: n,
|
|
1309
1309
|
platform: r,
|
|
1310
1310
|
elements: o
|
|
1311
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = se(n), l =
|
|
1311
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = se(n), l = We(n), a = ze(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, d = Ne(t, e);
|
|
1312
1312
|
let {
|
|
1313
1313
|
mainAxis: f,
|
|
1314
1314
|
crossAxis: u,
|
|
@@ -1378,10 +1378,10 @@ const Vr = function(e) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
},
|
|
1380
1380
|
...a
|
|
1381
|
-
} =
|
|
1381
|
+
} = Ne(e, t), c = {
|
|
1382
1382
|
x: n,
|
|
1383
1383
|
y: r
|
|
1384
|
-
}, m = await ht(t, a), d = ze(se(o)), f =
|
|
1384
|
+
}, m = await ht(t, a), d = ze(se(o)), f = sn(d);
|
|
1385
1385
|
let u = c[f], g = c[d];
|
|
1386
1386
|
if (i) {
|
|
1387
1387
|
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[w], P = u - m[h];
|
|
@@ -1419,7 +1419,7 @@ const Vr = function(e) {
|
|
|
1419
1419
|
apply: s = () => {
|
|
1420
1420
|
},
|
|
1421
1421
|
...l
|
|
1422
|
-
} =
|
|
1422
|
+
} = Ne(e, t), a = await ht(t, l), c = se(n), m = We(n), d = ze(n) === "y", {
|
|
1423
1423
|
width: f,
|
|
1424
1424
|
height: u
|
|
1425
1425
|
} = r.floating;
|
|
@@ -1452,7 +1452,7 @@ const Vr = function(e) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
};
|
|
1454
1454
|
};
|
|
1455
|
-
function
|
|
1455
|
+
function cn(e) {
|
|
1456
1456
|
const t = J(e);
|
|
1457
1457
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1458
1458
|
const o = Z(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = Ye(n) !== i || Ye(r) !== s;
|
|
@@ -1463,7 +1463,7 @@ function an(e) {
|
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
1465
|
function bt(e) {
|
|
1466
|
-
return
|
|
1466
|
+
return W(e) ? e : e.contextElement;
|
|
1467
1467
|
}
|
|
1468
1468
|
function ke(e) {
|
|
1469
1469
|
const t = bt(e);
|
|
@@ -1473,7 +1473,7 @@ function ke(e) {
|
|
|
1473
1473
|
width: r,
|
|
1474
1474
|
height: o,
|
|
1475
1475
|
$: i
|
|
1476
|
-
} =
|
|
1476
|
+
} = cn(t);
|
|
1477
1477
|
let s = (i ? Ye(n.width) : n.width) / r, l = (i ? Ye(n.height) : n.height) / o;
|
|
1478
1478
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1479
1479
|
x: s,
|
|
@@ -1481,7 +1481,7 @@ function ke(e) {
|
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
1483
|
const Kr = /* @__PURE__ */ ie(0);
|
|
1484
|
-
function
|
|
1484
|
+
function un(e) {
|
|
1485
1485
|
const t = q(e);
|
|
1486
1486
|
return !pt() || !t.visualViewport ? Kr : {
|
|
1487
1487
|
x: t.visualViewport.offsetLeft,
|
|
@@ -1495,11 +1495,11 @@ function be(e, t, n, r) {
|
|
|
1495
1495
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1496
1496
|
const o = e.getBoundingClientRect(), i = bt(e);
|
|
1497
1497
|
let s = ie(1);
|
|
1498
|
-
t && (r ?
|
|
1499
|
-
const l = Xr(i, n, r) ?
|
|
1498
|
+
t && (r ? W(r) && (s = ke(r)) : s = ke(e));
|
|
1499
|
+
const l = Xr(i, n, r) ? un(i) : ie(0);
|
|
1500
1500
|
let a = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, m = o.width / s.x, d = o.height / s.y;
|
|
1501
1501
|
if (i) {
|
|
1502
|
-
const f = q(i), u = r &&
|
|
1502
|
+
const f = q(i), u = r && W(r) ? q(r) : r;
|
|
1503
1503
|
let g = f, p = g.frameElement;
|
|
1504
1504
|
for (; p && r && u !== g; ) {
|
|
1505
1505
|
const w = ke(p), h = p.getBoundingClientRect(), x = J(p), P = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
@@ -1514,7 +1514,7 @@ function be(e, t, n, r) {
|
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
const Gr = [":popover-open", ":modal"];
|
|
1517
|
-
function
|
|
1517
|
+
function dn(e) {
|
|
1518
1518
|
return Gr.some((t) => {
|
|
1519
1519
|
try {
|
|
1520
1520
|
return e.matches(t);
|
|
@@ -1530,7 +1530,7 @@ function Ur(e) {
|
|
|
1530
1530
|
offsetParent: r,
|
|
1531
1531
|
strategy: o
|
|
1532
1532
|
} = e;
|
|
1533
|
-
const i = o === "fixed", s = ne(r), l = t ?
|
|
1533
|
+
const i = o === "fixed", s = ne(r), l = t ? dn(t.floating) : !1;
|
|
1534
1534
|
if (r === s || l && i)
|
|
1535
1535
|
return n;
|
|
1536
1536
|
let a = {
|
|
@@ -1552,12 +1552,12 @@ function Ur(e) {
|
|
|
1552
1552
|
function qr(e) {
|
|
1553
1553
|
return Array.from(e.getClientRects());
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function fn(e) {
|
|
1556
1556
|
return be(ne(e)).left + Je(e).scrollLeft;
|
|
1557
1557
|
}
|
|
1558
1558
|
function Zr(e) {
|
|
1559
1559
|
const t = ne(e), n = Je(e), r = e.ownerDocument.body, o = U(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = U(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1560
|
-
let s = -n.scrollLeft +
|
|
1560
|
+
let s = -n.scrollLeft + fn(e);
|
|
1561
1561
|
const l = -n.scrollTop;
|
|
1562
1562
|
return J(r).direction === "rtl" && (s += U(t.clientWidth, r.clientWidth) - o), {
|
|
1563
1563
|
width: o,
|
|
@@ -1596,10 +1596,10 @@ function Ot(e, t, n) {
|
|
|
1596
1596
|
r = Jr(e, n);
|
|
1597
1597
|
else if (t === "document")
|
|
1598
1598
|
r = Zr(ne(e));
|
|
1599
|
-
else if (
|
|
1599
|
+
else if (W(t))
|
|
1600
1600
|
r = Qr(t, n);
|
|
1601
1601
|
else {
|
|
1602
|
-
const o =
|
|
1602
|
+
const o = un(e);
|
|
1603
1603
|
r = {
|
|
1604
1604
|
...t,
|
|
1605
1605
|
x: t.x - o.x,
|
|
@@ -1608,20 +1608,20 @@ function Ot(e, t, n) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
return Xe(r);
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function mn(e, t) {
|
|
1612
1612
|
const n = he(e);
|
|
1613
|
-
return n === t || !
|
|
1613
|
+
return n === t || !W(n) || Te(n) ? !1 : J(n).position === "fixed" || mn(n, t);
|
|
1614
1614
|
}
|
|
1615
1615
|
function eo(e, t) {
|
|
1616
1616
|
const n = t.get(e);
|
|
1617
1617
|
if (n)
|
|
1618
1618
|
return n;
|
|
1619
|
-
let r = re(e, [], !1).filter((l) =>
|
|
1619
|
+
let r = re(e, [], !1).filter((l) => W(l) && oe(l) !== "body"), o = null;
|
|
1620
1620
|
const i = J(e).position === "fixed";
|
|
1621
1621
|
let s = i ? he(e) : e;
|
|
1622
|
-
for (;
|
|
1622
|
+
for (; W(s) && !Te(s); ) {
|
|
1623
1623
|
const l = J(s), a = gt(s);
|
|
1624
|
-
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a &&
|
|
1624
|
+
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a && mn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = he(s);
|
|
1625
1625
|
}
|
|
1626
1626
|
return t.set(e, r), r;
|
|
1627
1627
|
}
|
|
@@ -1647,7 +1647,7 @@ function no(e) {
|
|
|
1647
1647
|
const {
|
|
1648
1648
|
width: t,
|
|
1649
1649
|
height: n
|
|
1650
|
-
} =
|
|
1650
|
+
} = cn(e);
|
|
1651
1651
|
return {
|
|
1652
1652
|
width: t,
|
|
1653
1653
|
height: n
|
|
@@ -1665,7 +1665,7 @@ function ro(e, t, n) {
|
|
|
1665
1665
|
const d = be(t, !0, i, t);
|
|
1666
1666
|
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1667
1667
|
} else
|
|
1668
|
-
o && (a.x =
|
|
1668
|
+
o && (a.x = fn(o));
|
|
1669
1669
|
const c = s.left + l.scrollLeft - a.x, m = s.top + l.scrollTop - a.y;
|
|
1670
1670
|
return {
|
|
1671
1671
|
x: c,
|
|
@@ -1677,9 +1677,9 @@ function ro(e, t, n) {
|
|
|
1677
1677
|
function Dt(e, t) {
|
|
1678
1678
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function gn(e, t) {
|
|
1681
1681
|
const n = q(e);
|
|
1682
|
-
if (!Z(e) ||
|
|
1682
|
+
if (!Z(e) || dn(e))
|
|
1683
1683
|
return n;
|
|
1684
1684
|
let r = Dt(e, t);
|
|
1685
1685
|
for (; r && Rr(r) && J(r).position === "static"; )
|
|
@@ -1687,7 +1687,7 @@ function mn(e, t) {
|
|
|
1687
1687
|
return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !gt(r)) ? n : r || Er(e) || n;
|
|
1688
1688
|
}
|
|
1689
1689
|
const oo = async function(e) {
|
|
1690
|
-
const t = this.getOffsetParent ||
|
|
1690
|
+
const t = this.getOffsetParent || gn, n = this.getDimensions;
|
|
1691
1691
|
return {
|
|
1692
1692
|
reference: ro(e.reference, await t(e.floating), e.strategy),
|
|
1693
1693
|
floating: {
|
|
@@ -1704,12 +1704,12 @@ const so = {
|
|
|
1704
1704
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ur,
|
|
1705
1705
|
getDocumentElement: ne,
|
|
1706
1706
|
getClippingRect: to,
|
|
1707
|
-
getOffsetParent:
|
|
1707
|
+
getOffsetParent: gn,
|
|
1708
1708
|
getElementRects: oo,
|
|
1709
1709
|
getClientRects: qr,
|
|
1710
1710
|
getDimensions: no,
|
|
1711
1711
|
getScale: ke,
|
|
1712
|
-
isElement:
|
|
1712
|
+
isElement: W,
|
|
1713
1713
|
isRTL: io
|
|
1714
1714
|
};
|
|
1715
1715
|
function lo(e, t) {
|
|
@@ -1794,7 +1794,7 @@ function ao(e, t, n, r) {
|
|
|
1794
1794
|
}), d == null || d(), (h = u) == null || h.disconnect(), u = null, a && cancelAnimationFrame(g);
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
const co = _r, uo = jr,
|
|
1797
|
+
const co = _r, uo = jr, vi = Yr, fo = (e, t, n) => {
|
|
1798
1798
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1799
1799
|
platform: so,
|
|
1800
1800
|
...n
|
|
@@ -1839,11 +1839,11 @@ function Ge(e, t) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return e !== e && t !== t;
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function pn(e) {
|
|
1843
1843
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1844
1844
|
}
|
|
1845
1845
|
function Mt(e, t) {
|
|
1846
|
-
const n =
|
|
1846
|
+
const n = pn(e);
|
|
1847
1847
|
return Math.round(t * n) / n;
|
|
1848
1848
|
}
|
|
1849
1849
|
function Lt(e) {
|
|
@@ -1892,7 +1892,7 @@ function mo(e) {
|
|
|
1892
1892
|
...$,
|
|
1893
1893
|
isPositioned: !0
|
|
1894
1894
|
};
|
|
1895
|
-
O.current && !Ge(T.current, F) && (T.current = F,
|
|
1895
|
+
O.current && !Ge(T.current, F) && (T.current = F, Bn.flushSync(() => {
|
|
1896
1896
|
d(F);
|
|
1897
1897
|
}));
|
|
1898
1898
|
});
|
|
@@ -1933,7 +1933,7 @@ function mo(e) {
|
|
|
1933
1933
|
return l ? {
|
|
1934
1934
|
...R,
|
|
1935
1935
|
transform: "translate(" + $ + "px, " + F + "px)",
|
|
1936
|
-
...
|
|
1936
|
+
...pn(v.floating) >= 1.5 && {
|
|
1937
1937
|
willChange: "transform"
|
|
1938
1938
|
}
|
|
1939
1939
|
} : {
|
|
@@ -1954,8 +1954,8 @@ function mo(e) {
|
|
|
1954
1954
|
* tabbable 6.2.0
|
|
1955
1955
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1956
1956
|
*/
|
|
1957
|
-
var go = ["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])"], ct = /* @__PURE__ */ go.join(","),
|
|
1958
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ue = !
|
|
1957
|
+
var go = ["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])"], ct = /* @__PURE__ */ go.join(","), hn = typeof Element > "u", Me = hn ? function() {
|
|
1958
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ue = !hn && Element.prototype.getRootNode ? function(e) {
|
|
1959
1959
|
var t;
|
|
1960
1960
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1961
1961
|
} : function(e) {
|
|
@@ -1999,21 +1999,21 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
return o;
|
|
2002
|
-
}, hn = function(t) {
|
|
2003
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2004
2002
|
}, bn = function(t) {
|
|
2003
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2004
|
+
}, yn = function(t) {
|
|
2005
2005
|
if (!t)
|
|
2006
2006
|
throw new Error("No node provided");
|
|
2007
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || po(t)) && !
|
|
2007
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || po(t)) && !bn(t) ? 0 : t.tabIndex;
|
|
2008
2008
|
}, yo = function(t, n) {
|
|
2009
|
-
var r =
|
|
2010
|
-
return r < 0 && n && !
|
|
2009
|
+
var r = yn(t);
|
|
2010
|
+
return r < 0 && n && !bn(t) ? 0 : r;
|
|
2011
2011
|
}, vo = function(t, n) {
|
|
2012
2012
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2013
|
-
},
|
|
2013
|
+
}, vn = function(t) {
|
|
2014
2014
|
return t.tagName === "INPUT";
|
|
2015
2015
|
}, xo = function(t) {
|
|
2016
|
-
return
|
|
2016
|
+
return vn(t) && t.type === "hidden";
|
|
2017
2017
|
}, wo = function(t) {
|
|
2018
2018
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
2019
2019
|
return r.tagName === "SUMMARY";
|
|
@@ -2040,7 +2040,7 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2040
2040
|
var i = $o(o, t.form);
|
|
2041
2041
|
return !i || i === t;
|
|
2042
2042
|
}, Ro = function(t) {
|
|
2043
|
-
return
|
|
2043
|
+
return vn(t) && t.type === "radio";
|
|
2044
2044
|
}, Eo = function(t) {
|
|
2045
2045
|
return Ro(t) && !So(t);
|
|
2046
2046
|
}, Co = function(t) {
|
|
@@ -2100,8 +2100,8 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2100
2100
|
// note related to `candidateSelectors`)
|
|
2101
2101
|
qe(n) || xo(n) || ko(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2102
2102
|
wo(n) || To(n));
|
|
2103
|
-
},
|
|
2104
|
-
return !(Eo(n) ||
|
|
2103
|
+
}, Nt = function(t, n) {
|
|
2104
|
+
return !(Eo(n) || yn(n) < 0 || !Io(t, n));
|
|
2105
2105
|
}, Po = function(t) {
|
|
2106
2106
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2107
2107
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -2119,15 +2119,15 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2119
2119
|
}), r.sort(vo).reduce(function(o, i) {
|
|
2120
2120
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
2121
2121
|
}, []).concat(n);
|
|
2122
|
-
},
|
|
2122
|
+
}, xn = function(t, n) {
|
|
2123
2123
|
n = n || {};
|
|
2124
2124
|
var r;
|
|
2125
2125
|
return n.getShadowRoot ? r = bo([t], n.includeContainer, {
|
|
2126
|
-
filter:
|
|
2126
|
+
filter: Nt.bind(null, n),
|
|
2127
2127
|
flatten: !1,
|
|
2128
2128
|
getShadowRoot: n.getShadowRoot,
|
|
2129
2129
|
shadowRootFilter: Po
|
|
2130
|
-
}) : r = ho(t, n.includeContainer,
|
|
2130
|
+
}) : r = ho(t, n.includeContainer, Nt.bind(null, n)), Ao(r);
|
|
2131
2131
|
};
|
|
2132
2132
|
const Bo = y[/* @__PURE__ */ "useInsertionEffect".toString()], Oo = Bo || ((e) => e());
|
|
2133
2133
|
function Re(e) {
|
|
@@ -2155,11 +2155,11 @@ function ut() {
|
|
|
2155
2155
|
}, ut.apply(this, arguments);
|
|
2156
2156
|
}
|
|
2157
2157
|
let nt = !1, Do = 0;
|
|
2158
|
-
const
|
|
2158
|
+
const Wt = () => "floating-ui-" + Do++;
|
|
2159
2159
|
function Mo() {
|
|
2160
|
-
const [e, t] = y.useState(() => nt ?
|
|
2160
|
+
const [e, t] = y.useState(() => nt ? Wt() : void 0);
|
|
2161
2161
|
return Q(() => {
|
|
2162
|
-
e == null && t(
|
|
2162
|
+
e == null && t(Wt());
|
|
2163
2163
|
}, []), y.useEffect(() => {
|
|
2164
2164
|
nt || (nt = !0);
|
|
2165
2165
|
}, []), e;
|
|
@@ -2181,15 +2181,15 @@ function Fo() {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
}
|
|
2184
|
-
const
|
|
2184
|
+
const No = /* @__PURE__ */ y.createContext(null), Wo = /* @__PURE__ */ y.createContext(null), vt = () => {
|
|
2185
2185
|
var e;
|
|
2186
|
-
return ((e = y.useContext(
|
|
2187
|
-
}, xt = () => y.useContext(
|
|
2186
|
+
return ((e = y.useContext(No)) == null ? void 0 : e.id) || null;
|
|
2187
|
+
}, xt = () => y.useContext(Wo);
|
|
2188
2188
|
function Qe(e) {
|
|
2189
2189
|
return "data-floating-ui-" + e;
|
|
2190
2190
|
}
|
|
2191
2191
|
function Ce(e) {
|
|
2192
|
-
const t =
|
|
2192
|
+
const t = kn(e);
|
|
2193
2193
|
return Q(() => {
|
|
2194
2194
|
t.current = e;
|
|
2195
2195
|
}), t;
|
|
@@ -2306,7 +2306,7 @@ function zo(e, t) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
})($);
|
|
2308
2308
|
}
|
|
2309
|
-
if (
|
|
2309
|
+
if (W(s)) {
|
|
2310
2310
|
const $ = s;
|
|
2311
2311
|
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), g && $.addEventListener("mousemove", v, {
|
|
2312
2312
|
once: !0
|
|
@@ -2318,7 +2318,7 @@ function zo(e, t) {
|
|
|
2318
2318
|
var b;
|
|
2319
2319
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && D()) {
|
|
2320
2320
|
const I = fe(l).body;
|
|
2321
|
-
if (I.setAttribute(zt, ""), I.style.pointerEvents = "none", T.current = !0,
|
|
2321
|
+
if (I.setAttribute(zt, ""), I.style.pointerEvents = "none", T.current = !0, W(s) && l) {
|
|
2322
2322
|
var v;
|
|
2323
2323
|
const R = s, $ = p == null || (v = p.nodesRef.current.find((F) => F.id === w)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2324
2324
|
return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
@@ -2372,7 +2372,7 @@ function Ve(e, t) {
|
|
|
2372
2372
|
}), n = n.concat(r);
|
|
2373
2373
|
return n;
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const wn = () => ({
|
|
2376
2376
|
getShadowRoot: !0,
|
|
2377
2377
|
displayCheck: (
|
|
2378
2378
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2381,24 +2381,24 @@ const xn = () => ({
|
|
|
2381
2381
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2382
2382
|
)
|
|
2383
2383
|
});
|
|
2384
|
-
function
|
|
2385
|
-
const n =
|
|
2384
|
+
function $n(e, t) {
|
|
2385
|
+
const n = xn(e, wn());
|
|
2386
2386
|
t === "prev" && n.reverse();
|
|
2387
2387
|
const r = n.indexOf(Cr(fe(e)));
|
|
2388
2388
|
return n.slice(r + 1)[0];
|
|
2389
2389
|
}
|
|
2390
2390
|
function jo() {
|
|
2391
|
-
return
|
|
2391
|
+
return $n(document.body, "next");
|
|
2392
2392
|
}
|
|
2393
2393
|
function Ho() {
|
|
2394
|
-
return
|
|
2394
|
+
return $n(document.body, "prev");
|
|
2395
2395
|
}
|
|
2396
2396
|
function ot(e, t) {
|
|
2397
2397
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
2398
2398
|
return !r || !pe(n, r);
|
|
2399
2399
|
}
|
|
2400
2400
|
function Vo(e) {
|
|
2401
|
-
|
|
2401
|
+
xn(e, wn()).forEach((n) => {
|
|
2402
2402
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
@@ -2408,7 +2408,7 @@ function _o(e) {
|
|
|
2408
2408
|
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
2411
|
-
const
|
|
2411
|
+
const Sn = {
|
|
2412
2412
|
border: 0,
|
|
2413
2413
|
clip: "rect(0 0 0 0)",
|
|
2414
2414
|
height: "1px",
|
|
@@ -2437,10 +2437,10 @@ const Ht = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2437
2437
|
role: r,
|
|
2438
2438
|
"aria-hidden": r ? void 0 : !0,
|
|
2439
2439
|
[Qe("focus-guard")]: "",
|
|
2440
|
-
style:
|
|
2440
|
+
style: Sn
|
|
2441
2441
|
};
|
|
2442
2442
|
return /* @__PURE__ */ y.createElement("span", ut({}, t, i));
|
|
2443
|
-
}),
|
|
2443
|
+
}), Rn = /* @__PURE__ */ y.createContext(null), Vt = /* @__PURE__ */ Qe("portal");
|
|
2444
2444
|
function Ko(e) {
|
|
2445
2445
|
let {
|
|
2446
2446
|
id: t,
|
|
@@ -2463,7 +2463,7 @@ function Ko(e) {
|
|
|
2463
2463
|
if (l.current)
|
|
2464
2464
|
return;
|
|
2465
2465
|
let a = n || (s == null ? void 0 : s.portalNode);
|
|
2466
|
-
a && !
|
|
2466
|
+
a && !W(a) && (a = a.current), a = a || document.body;
|
|
2467
2467
|
let c = null;
|
|
2468
2468
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2469
2469
|
const m = document.createElement("div");
|
|
@@ -2496,7 +2496,7 @@ function Xo(e) {
|
|
|
2496
2496
|
return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
|
|
2497
2497
|
i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
|
|
2498
2498
|
};
|
|
2499
|
-
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(
|
|
2499
|
+
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(Rn.Provider, {
|
|
2500
2500
|
value: y.useMemo(() => ({
|
|
2501
2501
|
preserveTabOrder: o,
|
|
2502
2502
|
beforeOutsideRef: a,
|
|
@@ -2520,8 +2520,8 @@ function Xo(e) {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2522
2522
|
"aria-owns": i.id,
|
|
2523
|
-
style:
|
|
2524
|
-
}), i && /* @__PURE__ */
|
|
2523
|
+
style: Sn
|
|
2524
|
+
}), i && /* @__PURE__ */ On(t, i), f && i && /* @__PURE__ */ y.createElement(Ht, {
|
|
2525
2525
|
"data-type": "outside",
|
|
2526
2526
|
ref: c,
|
|
2527
2527
|
onFocus: (u) => {
|
|
@@ -2535,7 +2535,7 @@ function Xo(e) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
}));
|
|
2537
2537
|
}
|
|
2538
|
-
const Go = () => y.useContext(
|
|
2538
|
+
const Go = () => y.useContext(Rn);
|
|
2539
2539
|
function _t(e) {
|
|
2540
2540
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2541
2541
|
}
|
|
@@ -2655,14 +2655,14 @@ function Jo(e, t) {
|
|
|
2655
2655
|
if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
|
|
2656
2656
|
return;
|
|
2657
2657
|
const $ = Se(v), F = "[" + Qe("inert") + "]", K = fe(l).querySelectorAll(F);
|
|
2658
|
-
let G =
|
|
2658
|
+
let G = W($) ? $ : null;
|
|
2659
2659
|
for (; G && !Te(G); ) {
|
|
2660
2660
|
const V = he(G);
|
|
2661
|
-
if (Te(V) || !
|
|
2661
|
+
if (Te(V) || !W(V))
|
|
2662
2662
|
break;
|
|
2663
2663
|
G = V;
|
|
2664
2664
|
}
|
|
2665
|
-
if (K.length &&
|
|
2665
|
+
if (K.length && W($) && !Ir($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2666
2666
|
!pe($, l) && // If the target root element contains none of the markers, then the
|
|
2667
2667
|
// element was injected after the floating element rendered.
|
|
2668
2668
|
Array.from(K).every((V) => !pe(G, V)))
|
|
@@ -2710,7 +2710,7 @@ function Jo(e, t) {
|
|
|
2710
2710
|
const I = fe(l);
|
|
2711
2711
|
m && I.addEventListener("keydown", B ? M : L, B), S && I.addEventListener(f, D ? b : O, D);
|
|
2712
2712
|
let R = [];
|
|
2713
|
-
return p && (
|
|
2713
|
+
return p && (W(s) && (R = re(s)), W(l) && (R = R.concat(re(l))), !W(i) && i && i.contextElement && (R = R.concat(re(i.contextElement)))), R = R.filter(($) => {
|
|
2714
2714
|
var F;
|
|
2715
2715
|
return $ !== ((F = I.defaultView) == null ? void 0 : F.visualViewport);
|
|
2716
2716
|
}), R.forEach(($) => {
|
|
@@ -2758,7 +2758,7 @@ function Qo(e) {
|
|
|
2758
2758
|
if (process.env.NODE_ENV !== "production") {
|
|
2759
2759
|
var i;
|
|
2760
2760
|
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.";
|
|
2761
|
-
if ((i = e.elements) != null && i.reference && !
|
|
2761
|
+
if ((i = e.elements) != null && i.reference && !W(e.elements.reference)) {
|
|
2762
2762
|
var s;
|
|
2763
2763
|
if (!((s = dt) != null && s.has(T))) {
|
|
2764
2764
|
var l;
|
|
@@ -2774,16 +2774,16 @@ function Qo(e) {
|
|
|
2774
2774
|
nested: u
|
|
2775
2775
|
}), r == null || r(T, B, D);
|
|
2776
2776
|
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Fo())[0], x = yt(), P = y.useCallback((T) => {
|
|
2777
|
-
const B =
|
|
2777
|
+
const B = W(T) ? {
|
|
2778
2778
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2779
2779
|
contextElement: T
|
|
2780
2780
|
} : T;
|
|
2781
2781
|
d.refs.setReference(B);
|
|
2782
2782
|
}, [d.refs]), S = y.useCallback((T) => {
|
|
2783
|
-
(
|
|
2783
|
+
(W(T) || T === null) && (p.current = T, c(T)), (W(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
2784
2784
|
// `null` to support `positionReference` + an unstable `reference`
|
|
2785
2785
|
// callback ref.
|
|
2786
|
-
T !== null && !
|
|
2786
|
+
T !== null && !W(T)) && d.refs.setReference(T);
|
|
2787
2787
|
}, [d.refs]), k = y.useMemo(() => ({
|
|
2788
2788
|
...d.refs,
|
|
2789
2789
|
setReference: S,
|
|
@@ -3092,7 +3092,7 @@ function li(e) {
|
|
|
3092
3092
|
i = !0;
|
|
3093
3093
|
return;
|
|
3094
3094
|
}
|
|
3095
|
-
if (D &&
|
|
3095
|
+
if (D && W(S.relatedTarget) && pe(p.floating, S.relatedTarget) || x && Ve(x.nodesRef.current, h).some((ce) => {
|
|
3096
3096
|
let {
|
|
3097
3097
|
context: j
|
|
3098
3098
|
} = ce;
|
|
@@ -3153,9 +3153,9 @@ function li(e) {
|
|
|
3153
3153
|
blockPointerEvents: n
|
|
3154
3154
|
}, m;
|
|
3155
3155
|
}
|
|
3156
|
-
const ai = H("div"), wt =
|
|
3156
|
+
const ai = H("div"), wt = Tn(
|
|
3157
3157
|
{}
|
|
3158
|
-
),
|
|
3158
|
+
), xi = ({
|
|
3159
3159
|
children: e,
|
|
3160
3160
|
offset: t,
|
|
3161
3161
|
open: n,
|
|
@@ -3190,7 +3190,7 @@ const ai = H("div"), wt = kn(
|
|
|
3190
3190
|
g,
|
|
3191
3191
|
p,
|
|
3192
3192
|
w
|
|
3193
|
-
]), P =
|
|
3193
|
+
]), P = In(
|
|
3194
3194
|
() => ({
|
|
3195
3195
|
getFloatingProps: h,
|
|
3196
3196
|
getReferenceProps: x,
|
|
@@ -3209,13 +3209,13 @@ const ai = H("div"), wt = kn(
|
|
|
3209
3209
|
]
|
|
3210
3210
|
);
|
|
3211
3211
|
return /* @__PURE__ */ z(wt.Provider, { value: P, children: e });
|
|
3212
|
-
},
|
|
3212
|
+
}, wi = ({ children: e }) => {
|
|
3213
3213
|
const { getReferenceProps: t, refs: n } = Qt(wt);
|
|
3214
|
-
return /* @__PURE__ */ z(
|
|
3214
|
+
return /* @__PURE__ */ z(Cn, { children: Pn(e) && An(e, {
|
|
3215
3215
|
ref: n.setReference,
|
|
3216
3216
|
...t()
|
|
3217
3217
|
}) });
|
|
3218
|
-
},
|
|
3218
|
+
}, $i = ({ children: e, overlayCardProps: t }) => {
|
|
3219
3219
|
const {
|
|
3220
3220
|
getFloatingProps: n,
|
|
3221
3221
|
isMounted: r,
|
|
@@ -3232,10 +3232,10 @@ const ai = H("div"), wt = kn(
|
|
|
3232
3232
|
css: {
|
|
3233
3233
|
zIndex: "$overlayCard"
|
|
3234
3234
|
},
|
|
3235
|
-
children: /* @__PURE__ */ z(
|
|
3235
|
+
children: /* @__PURE__ */ z(nn, { ...t, style: s, children: e })
|
|
3236
3236
|
}
|
|
3237
3237
|
) }) : null;
|
|
3238
|
-
},
|
|
3238
|
+
}, Si = H("span", {
|
|
3239
3239
|
flex: "0 0 auto",
|
|
3240
3240
|
display: "inline-flex",
|
|
3241
3241
|
padding: "$1 $2",
|
|
@@ -3272,24 +3272,24 @@ const ai = H("div"), wt = kn(
|
|
|
3272
3272
|
defaultVariants: {
|
|
3273
3273
|
color: "primary"
|
|
3274
3274
|
}
|
|
3275
|
-
}),
|
|
3275
|
+
}), Ri = H(Le.Root, {
|
|
3276
3276
|
backgroundColor: "$gray50",
|
|
3277
3277
|
display: "flex",
|
|
3278
3278
|
alignItems: "center",
|
|
3279
3279
|
padding: "$1",
|
|
3280
3280
|
gap: "$1"
|
|
3281
|
-
}),
|
|
3281
|
+
}), Ei = H(Le.ToggleGroup, {
|
|
3282
3282
|
display: "flex",
|
|
3283
3283
|
gap: "$1",
|
|
3284
3284
|
alignItems: "center"
|
|
3285
|
-
}),
|
|
3285
|
+
}), Ci = H(Le.Separator, {
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
height: "1.5rem",
|
|
3288
3288
|
my: "$1",
|
|
3289
3289
|
mx: "$1",
|
|
3290
3290
|
backgroundColor: "$border"
|
|
3291
|
-
}),
|
|
3292
|
-
|
|
3291
|
+
}), En = Pe(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3292
|
+
tn,
|
|
3293
3293
|
{
|
|
3294
3294
|
ref: n,
|
|
3295
3295
|
icon: !0,
|
|
@@ -3303,27 +3303,27 @@ const ai = H("div"), wt = kn(
|
|
|
3303
3303
|
},
|
|
3304
3304
|
...t
|
|
3305
3305
|
}
|
|
3306
|
-
)),
|
|
3306
|
+
)), ki = Pe(
|
|
3307
3307
|
({ children: e, dropdown: t, ...n }, r) => /* @__PURE__ */ z(
|
|
3308
3308
|
Le.Button,
|
|
3309
3309
|
{
|
|
3310
3310
|
asChild: !0,
|
|
3311
3311
|
ref: r,
|
|
3312
3312
|
children: /* @__PURE__ */ Ze(
|
|
3313
|
-
|
|
3313
|
+
En,
|
|
3314
3314
|
{
|
|
3315
3315
|
variant: "transparent",
|
|
3316
3316
|
color: "primary",
|
|
3317
3317
|
...n,
|
|
3318
3318
|
children: [
|
|
3319
3319
|
e,
|
|
3320
|
-
t && /* @__PURE__ */ z(
|
|
3320
|
+
t && /* @__PURE__ */ z(Dn, {})
|
|
3321
3321
|
]
|
|
3322
3322
|
}
|
|
3323
3323
|
)
|
|
3324
3324
|
}
|
|
3325
3325
|
)
|
|
3326
|
-
),
|
|
3326
|
+
), Ti = Pe(({
|
|
3327
3327
|
children: e,
|
|
3328
3328
|
value: t,
|
|
3329
3329
|
...n
|
|
@@ -3334,7 +3334,7 @@ const ai = H("div"), wt = kn(
|
|
|
3334
3334
|
asChild: !0,
|
|
3335
3335
|
ref: r,
|
|
3336
3336
|
children: /* @__PURE__ */ z(
|
|
3337
|
-
|
|
3337
|
+
En,
|
|
3338
3338
|
{
|
|
3339
3339
|
variant: "transparent",
|
|
3340
3340
|
color: "primary",
|
|
@@ -3344,7 +3344,7 @@ const ai = H("div"), wt = kn(
|
|
|
3344
3344
|
}
|
|
3345
3345
|
)
|
|
3346
3346
|
}
|
|
3347
|
-
)),
|
|
3347
|
+
)), Ii = H("div", {
|
|
3348
3348
|
color: "$$cardText",
|
|
3349
3349
|
backgroundColor: "$$cardBackground",
|
|
3350
3350
|
borderRadius: "$md",
|
|
@@ -3369,7 +3369,33 @@ const ai = H("div"), wt = kn(
|
|
|
3369
3369
|
variant: "primary",
|
|
3370
3370
|
elevation: "raised"
|
|
3371
3371
|
}
|
|
3372
|
-
}), ci = H(
|
|
3372
|
+
}), ci = H("div", {
|
|
3373
|
+
borderRadius: "$md",
|
|
3374
|
+
padding: "$1",
|
|
3375
|
+
border: "2px solid $blue100",
|
|
3376
|
+
background: "white",
|
|
3377
|
+
display: "flex",
|
|
3378
|
+
alignItems: "center",
|
|
3379
|
+
gap: "$1"
|
|
3380
|
+
}), Pi = (e) => /* @__PURE__ */ z(ci, { ...e }), Ai = ({
|
|
3381
|
+
children: e,
|
|
3382
|
+
active: t = !1,
|
|
3383
|
+
...n
|
|
3384
|
+
}) => /* @__PURE__ */ z(
|
|
3385
|
+
tn,
|
|
3386
|
+
{
|
|
3387
|
+
variant: "transparent",
|
|
3388
|
+
color: "primary",
|
|
3389
|
+
"data-active": t,
|
|
3390
|
+
css: {
|
|
3391
|
+
'&[aria-current="page"],&[data-active="true"]': {
|
|
3392
|
+
background: "$blue100"
|
|
3393
|
+
}
|
|
3394
|
+
},
|
|
3395
|
+
...n,
|
|
3396
|
+
children: e
|
|
3397
|
+
}
|
|
3398
|
+
), ui = H(nn, {
|
|
3373
3399
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3374
3400
|
padding: "$1"
|
|
3375
3401
|
}), $t = mt({
|
|
@@ -3395,7 +3421,7 @@ const ai = H("div"), wt = kn(
|
|
|
3395
3421
|
backgroundColor: "transparent"
|
|
3396
3422
|
}
|
|
3397
3423
|
}
|
|
3398
|
-
}),
|
|
3424
|
+
}), Bi = ({
|
|
3399
3425
|
side: e = "bottom",
|
|
3400
3426
|
align: t = "center",
|
|
3401
3427
|
trigger: n,
|
|
@@ -3412,10 +3438,10 @@ const ai = H("div"), wt = kn(
|
|
|
3412
3438
|
align: t,
|
|
3413
3439
|
collisionPadding: 10,
|
|
3414
3440
|
sideOffset: o,
|
|
3415
|
-
children: /* @__PURE__ */ z(
|
|
3441
|
+
children: /* @__PURE__ */ z(ui, { children: r })
|
|
3416
3442
|
}
|
|
3417
3443
|
) })
|
|
3418
|
-
] }),
|
|
3444
|
+
] }), di = H(ee.ItemIndicator, {
|
|
3419
3445
|
position: "absolute",
|
|
3420
3446
|
left: 0,
|
|
3421
3447
|
top: 0,
|
|
@@ -3424,65 +3450,67 @@ const ai = H("div"), wt = kn(
|
|
|
3424
3450
|
display: "flex",
|
|
3425
3451
|
justifyContent: "center",
|
|
3426
3452
|
alignItems: "center"
|
|
3427
|
-
}),
|
|
3453
|
+
}), Oi = H(ee.Separator, {
|
|
3428
3454
|
height: 1,
|
|
3429
3455
|
backgroundColor: "$gray200",
|
|
3430
3456
|
margin: 1
|
|
3431
|
-
}),
|
|
3457
|
+
}), Di = H(ee.Item, $t), Mi = H(ee.Item, $t, {
|
|
3432
3458
|
padding: "$2",
|
|
3433
3459
|
display: "flex",
|
|
3434
3460
|
alignItems: "center",
|
|
3435
3461
|
gap: "$2"
|
|
3436
|
-
}),
|
|
3462
|
+
}), fi = H(ee.CheckboxItem, $t), Li = ({
|
|
3437
3463
|
value: e,
|
|
3438
3464
|
onChange: t,
|
|
3439
3465
|
children: n
|
|
3440
3466
|
}) => /* @__PURE__ */ Ze(
|
|
3441
|
-
|
|
3467
|
+
fi,
|
|
3442
3468
|
{
|
|
3443
3469
|
checked: e,
|
|
3444
3470
|
onCheckedChange: t,
|
|
3445
3471
|
children: [
|
|
3446
|
-
/* @__PURE__ */ z(
|
|
3472
|
+
/* @__PURE__ */ z(di, { children: /* @__PURE__ */ z(Mn, { size: "0.75rem" }) }),
|
|
3447
3473
|
n
|
|
3448
3474
|
]
|
|
3449
3475
|
}
|
|
3450
3476
|
);
|
|
3451
3477
|
export {
|
|
3452
|
-
|
|
3478
|
+
yi as A,
|
|
3453
3479
|
ai as B,
|
|
3454
|
-
|
|
3455
|
-
|
|
3480
|
+
Ii as C,
|
|
3481
|
+
Bi as D,
|
|
3482
|
+
Li as E,
|
|
3456
3483
|
Xo as F,
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3484
|
+
ui as M,
|
|
3485
|
+
Pi as N,
|
|
3486
|
+
nn as O,
|
|
3487
|
+
xi as P,
|
|
3488
|
+
pr as S,
|
|
3489
|
+
ki as T,
|
|
3490
|
+
Mi as a,
|
|
3491
|
+
Ei as b,
|
|
3464
3492
|
mt as c,
|
|
3465
|
-
|
|
3493
|
+
Ti as d,
|
|
3466
3494
|
ao as e,
|
|
3467
|
-
|
|
3495
|
+
vi as f,
|
|
3468
3496
|
uo as g,
|
|
3469
3497
|
co as h,
|
|
3470
3498
|
ei as i,
|
|
3471
3499
|
ni as j,
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3500
|
+
Ri as k,
|
|
3501
|
+
Ci as l,
|
|
3502
|
+
wi as m,
|
|
3503
|
+
$i as n,
|
|
3476
3504
|
Vr as o,
|
|
3477
3505
|
Be as p,
|
|
3478
|
-
|
|
3479
|
-
|
|
3506
|
+
bi as q,
|
|
3507
|
+
tn as r,
|
|
3480
3508
|
H as s,
|
|
3481
|
-
|
|
3509
|
+
Si as t,
|
|
3482
3510
|
Qo as u,
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3511
|
+
En as v,
|
|
3512
|
+
Ai as w,
|
|
3513
|
+
$t as x,
|
|
3514
|
+
Oi as y,
|
|
3515
|
+
Di as z
|
|
3488
3516
|
};
|