@altimateai/ui-components 0.0.37 → 0.0.38-beta.2
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/{Button-C4jhPGlR.d.ts → Button-CVsSwe4f.d.ts} +1 -1
- package/dist/CoachForm.css +1 -1
- package/dist/CoachForm.js +11043 -11001
- package/dist/Form.js +1743 -1511
- package/dist/Stack.js +1148 -1142
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index2.js +14 -14
- package/dist/lineage/index.js +609 -616
- package/dist/redux-toolkit.modern.js +492 -485
- package/dist/shadcn/index.d.ts +2 -2
- package/dist/shadcn/index.js +2070 -2297
- package/dist/{types-BynvDMUq.d.ts → types-COyBAkqH.d.ts} +2 -0
- package/package.json +1 -1
package/dist/Stack.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { j as g, S as
|
|
1
|
+
import { j as g, S as ys, C as xs } from "./index2.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
3
|
+
import ve, { forwardRef as G, useState as ws, useLayoutEffect as Cs, useEffect as Es, createElement as ht } from "react";
|
|
4
|
+
import * as Xn from "react-dom";
|
|
5
|
+
import Rs from "react-dom";
|
|
6
|
+
function qn(e) {
|
|
7
7
|
var t, n, r = "";
|
|
8
8
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
9
9
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
10
10
|
var o = e.length;
|
|
11
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
11
|
+
for (t = 0; t < o; t++) e[t] && (n = qn(e[t])) && (r && (r += " "), r += n);
|
|
12
12
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
13
13
|
return r;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
15
|
+
function Zn() {
|
|
16
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = qn(e)) && (r && (r += " "), r += t);
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
|
-
const Gt = "-",
|
|
20
|
-
const t =
|
|
19
|
+
const Gt = "-", Ps = (e) => {
|
|
20
|
+
const t = As(e), {
|
|
21
21
|
conflictingClassGroups: n,
|
|
22
22
|
conflictingClassGroupModifiers: r
|
|
23
23
|
} = e;
|
|
24
24
|
return {
|
|
25
25
|
getClassGroupId: (a) => {
|
|
26
26
|
const i = a.split(Gt);
|
|
27
|
-
return i[0] === "" && i.length !== 1 && i.shift(),
|
|
27
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Qn(i, t) || Ss(a);
|
|
28
28
|
},
|
|
29
29
|
getConflictingClassGroupIds: (a, i) => {
|
|
30
30
|
const c = n[a] || [];
|
|
31
31
|
return i && r[a] ? [...c, ...r[a]] : c;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, Qn = (e, t) => {
|
|
35
35
|
var a;
|
|
36
36
|
if (e.length === 0)
|
|
37
37
|
return t.classGroupId;
|
|
38
|
-
const n = e[0], r = t.nextPart.get(n), o = r ?
|
|
38
|
+
const n = e[0], r = t.nextPart.get(n), o = r ? Qn(e.slice(1), r) : void 0;
|
|
39
39
|
if (o)
|
|
40
40
|
return o;
|
|
41
41
|
if (t.validators.length === 0)
|
|
@@ -44,13 +44,13 @@ const Gt = "-", Rs = (e) => {
|
|
|
44
44
|
return (a = t.validators.find(({
|
|
45
45
|
validator: i
|
|
46
46
|
}) => i(s))) == null ? void 0 : a.classGroupId;
|
|
47
|
-
},
|
|
48
|
-
if (
|
|
49
|
-
const t =
|
|
47
|
+
}, En = /^\[(.+)\]$/, Ss = (e) => {
|
|
48
|
+
if (En.test(e)) {
|
|
49
|
+
const t = En.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
50
50
|
if (n)
|
|
51
51
|
return "arbitrary.." + n;
|
|
52
52
|
}
|
|
53
|
-
},
|
|
53
|
+
}, As = (e) => {
|
|
54
54
|
const {
|
|
55
55
|
theme: t,
|
|
56
56
|
prefix: n
|
|
@@ -58,19 +58,19 @@ const Gt = "-", Rs = (e) => {
|
|
|
58
58
|
nextPart: /* @__PURE__ */ new Map(),
|
|
59
59
|
validators: []
|
|
60
60
|
};
|
|
61
|
-
return
|
|
62
|
-
|
|
61
|
+
return Os(Object.entries(e.classGroups), n).forEach(([s, a]) => {
|
|
62
|
+
Nt(a, r, s, t);
|
|
63
63
|
}), r;
|
|
64
|
-
},
|
|
64
|
+
}, Nt = (e, t, n, r) => {
|
|
65
65
|
e.forEach((o) => {
|
|
66
66
|
if (typeof o == "string") {
|
|
67
|
-
const s = o === "" ? t :
|
|
67
|
+
const s = o === "" ? t : Rn(t, o);
|
|
68
68
|
s.classGroupId = n;
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
if (typeof o == "function") {
|
|
72
|
-
if (
|
|
73
|
-
|
|
72
|
+
if (Ns(o)) {
|
|
73
|
+
Nt(o(r), t, n, r);
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
t.validators.push({
|
|
@@ -80,10 +80,10 @@ const Gt = "-", Rs = (e) => {
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
Object.entries(o).forEach(([s, a]) => {
|
|
83
|
-
|
|
83
|
+
Nt(a, Rn(t, s), n, r);
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
},
|
|
86
|
+
}, Rn = (e, t) => {
|
|
87
87
|
let n = e;
|
|
88
88
|
return t.split(Gt).forEach((r) => {
|
|
89
89
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
@@ -91,10 +91,10 @@ const Gt = "-", Rs = (e) => {
|
|
|
91
91
|
validators: []
|
|
92
92
|
}), n = n.nextPart.get(r);
|
|
93
93
|
}), n;
|
|
94
|
-
},
|
|
94
|
+
}, Ns = (e) => e.isThemeGetter, Os = (e, t) => t ? e.map(([n, r]) => {
|
|
95
95
|
const o = r.map((s) => typeof s == "string" ? t + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([a, i]) => [t + a, i])) : s);
|
|
96
96
|
return [n, o];
|
|
97
|
-
}) : e,
|
|
97
|
+
}) : e, Ts = (e) => {
|
|
98
98
|
if (e < 1)
|
|
99
99
|
return {
|
|
100
100
|
get: () => {
|
|
@@ -118,7 +118,7 @@ const Gt = "-", Rs = (e) => {
|
|
|
118
118
|
n.has(s) ? n.set(s, a) : o(s, a);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
},
|
|
121
|
+
}, Jn = "!", ks = (e) => {
|
|
122
122
|
const {
|
|
123
123
|
separator: t,
|
|
124
124
|
experimentalParseClassName: n
|
|
@@ -139,7 +139,7 @@ const Gt = "-", Rs = (e) => {
|
|
|
139
139
|
}
|
|
140
140
|
y === "[" ? u++ : y === "]" && u--;
|
|
141
141
|
}
|
|
142
|
-
const h = c.length === 0 ? i : i.substring(d), m = h.startsWith(
|
|
142
|
+
const h = c.length === 0 ? i : i.substring(d), m = h.startsWith(Jn), v = m ? h.substring(1) : h, p = f && f > d ? f - d : void 0;
|
|
143
143
|
return {
|
|
144
144
|
modifiers: c,
|
|
145
145
|
hasImportantModifier: m,
|
|
@@ -151,7 +151,7 @@ const Gt = "-", Rs = (e) => {
|
|
|
151
151
|
className: i,
|
|
152
152
|
parseClassName: a
|
|
153
153
|
}) : a;
|
|
154
|
-
},
|
|
154
|
+
}, Ds = (e) => {
|
|
155
155
|
if (e.length <= 1)
|
|
156
156
|
return e;
|
|
157
157
|
const t = [];
|
|
@@ -159,16 +159,16 @@ const Gt = "-", Rs = (e) => {
|
|
|
159
159
|
return e.forEach((r) => {
|
|
160
160
|
r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
|
|
161
161
|
}), t.push(...n.sort()), t;
|
|
162
|
-
},
|
|
163
|
-
cache:
|
|
164
|
-
parseClassName:
|
|
165
|
-
...
|
|
166
|
-
}),
|
|
162
|
+
}, js = (e) => ({
|
|
163
|
+
cache: Ts(e.cacheSize),
|
|
164
|
+
parseClassName: ks(e),
|
|
165
|
+
...Ps(e)
|
|
166
|
+
}), Ms = /\s+/, Is = (e, t) => {
|
|
167
167
|
const {
|
|
168
168
|
parseClassName: n,
|
|
169
169
|
getClassGroupId: r,
|
|
170
170
|
getConflictingClassGroupIds: o
|
|
171
|
-
} = t, s = [], a = e.trim().split(
|
|
171
|
+
} = t, s = [], a = e.trim().split(Ms);
|
|
172
172
|
let i = "";
|
|
173
173
|
for (let c = a.length - 1; c >= 0; c -= 1) {
|
|
174
174
|
const u = a[c], {
|
|
@@ -189,7 +189,7 @@ const Gt = "-", Rs = (e) => {
|
|
|
189
189
|
}
|
|
190
190
|
v = !1;
|
|
191
191
|
}
|
|
192
|
-
const b =
|
|
192
|
+
const b = Ds(d).join(":"), y = f ? b + Jn : b, x = y + p;
|
|
193
193
|
if (s.includes(x))
|
|
194
194
|
continue;
|
|
195
195
|
s.push(x);
|
|
@@ -202,55 +202,55 @@ const Gt = "-", Rs = (e) => {
|
|
|
202
202
|
}
|
|
203
203
|
return i;
|
|
204
204
|
};
|
|
205
|
-
function
|
|
205
|
+
function _s() {
|
|
206
206
|
let e = 0, t, n, r = "";
|
|
207
207
|
for (; e < arguments.length; )
|
|
208
|
-
(t = arguments[e++]) && (n =
|
|
208
|
+
(t = arguments[e++]) && (n = er(t)) && (r && (r += " "), r += n);
|
|
209
209
|
return r;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const er = (e) => {
|
|
212
212
|
if (typeof e == "string")
|
|
213
213
|
return e;
|
|
214
214
|
let t, n = "";
|
|
215
215
|
for (let r = 0; r < e.length; r++)
|
|
216
|
-
e[r] && (t =
|
|
216
|
+
e[r] && (t = er(e[r])) && (n && (n += " "), n += t);
|
|
217
217
|
return n;
|
|
218
218
|
};
|
|
219
|
-
function
|
|
219
|
+
function Ls(e, ...t) {
|
|
220
220
|
let n, r, o, s = a;
|
|
221
221
|
function a(c) {
|
|
222
222
|
const u = t.reduce((d, f) => f(d), e());
|
|
223
|
-
return n =
|
|
223
|
+
return n = js(u), r = n.cache.get, o = n.cache.set, s = i, i(c);
|
|
224
224
|
}
|
|
225
225
|
function i(c) {
|
|
226
226
|
const u = r(c);
|
|
227
227
|
if (u)
|
|
228
228
|
return u;
|
|
229
|
-
const d =
|
|
229
|
+
const d = Is(c, n);
|
|
230
230
|
return o(c, d), d;
|
|
231
231
|
}
|
|
232
232
|
return function() {
|
|
233
|
-
return s(
|
|
233
|
+
return s(_s.apply(null, arguments));
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const _ = (e) => {
|
|
237
237
|
const t = (n) => n[e] || [];
|
|
238
238
|
return t.isThemeGetter = !0, t;
|
|
239
|
-
},
|
|
240
|
-
const r =
|
|
239
|
+
}, tr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fs = /^\d+\/\d+$/, $s = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Bs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ne = (e) => Re(e) || $s.has(e) || Fs.test(e), ie = (e) => ke(e, "length", Qs), Re = (e) => !!e && !Number.isNaN(Number(e)), vt = (e) => ke(e, "number", Re), Le = (e) => !!e && Number.isInteger(Number(e)), Hs = (e) => e.endsWith("%") && Re(e.slice(0, -1)), N = (e) => tr.test(e), le = (e) => Ws.test(e), Us = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ks = (e) => ke(e, Us, nr), Ys = (e) => ke(e, "position", nr), Xs = /* @__PURE__ */ new Set(["image", "url"]), qs = (e) => ke(e, Xs, ea), Zs = (e) => ke(e, "", Js), Fe = () => !0, ke = (e, t, n) => {
|
|
240
|
+
const r = tr.exec(e);
|
|
241
241
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
242
|
-
},
|
|
242
|
+
}, Qs = (e) => (
|
|
243
243
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
244
244
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
245
245
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
246
|
-
|
|
247
|
-
),
|
|
248
|
-
const e =
|
|
246
|
+
Vs.test(e) && !zs.test(e)
|
|
247
|
+
), nr = () => !1, Js = (e) => Bs.test(e), ea = (e) => Gs.test(e), ta = () => {
|
|
248
|
+
const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), h = _("gap"), m = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"), M = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Re, N], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", N], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [Re, N];
|
|
249
249
|
return {
|
|
250
250
|
cacheSize: 500,
|
|
251
251
|
separator: ":",
|
|
252
252
|
theme: {
|
|
253
|
-
colors: [
|
|
253
|
+
colors: [Fe],
|
|
254
254
|
spacing: [ne, ie],
|
|
255
255
|
blur: ["none", "", le, N],
|
|
256
256
|
brightness: H(),
|
|
@@ -264,7 +264,7 @@ const I = (e) => {
|
|
|
264
264
|
invert: W(),
|
|
265
265
|
gap: A(),
|
|
266
266
|
gradientColorStops: [e],
|
|
267
|
-
gradientColorStopPositions: [
|
|
267
|
+
gradientColorStopPositions: [Hs, ie],
|
|
268
268
|
inset: F(),
|
|
269
269
|
margin: F(),
|
|
270
270
|
opacity: H(),
|
|
@@ -368,7 +368,7 @@ const I = (e) => {
|
|
|
368
368
|
* @see https://tailwindcss.com/docs/object-position
|
|
369
369
|
*/
|
|
370
370
|
"object-position": [{
|
|
371
|
-
object: [...
|
|
371
|
+
object: [...B(), N]
|
|
372
372
|
}],
|
|
373
373
|
/**
|
|
374
374
|
* Overflow
|
|
@@ -490,7 +490,7 @@ const I = (e) => {
|
|
|
490
490
|
* @see https://tailwindcss.com/docs/z-index
|
|
491
491
|
*/
|
|
492
492
|
z: [{
|
|
493
|
-
z: ["auto",
|
|
493
|
+
z: ["auto", Le, N]
|
|
494
494
|
}],
|
|
495
495
|
// Flexbox and Grid
|
|
496
496
|
/**
|
|
@@ -540,14 +540,14 @@ const I = (e) => {
|
|
|
540
540
|
* @see https://tailwindcss.com/docs/order
|
|
541
541
|
*/
|
|
542
542
|
order: [{
|
|
543
|
-
order: ["first", "last", "none",
|
|
543
|
+
order: ["first", "last", "none", Le, N]
|
|
544
544
|
}],
|
|
545
545
|
/**
|
|
546
546
|
* Grid Template Columns
|
|
547
547
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
548
548
|
*/
|
|
549
549
|
"grid-cols": [{
|
|
550
|
-
"grid-cols": [
|
|
550
|
+
"grid-cols": [Fe]
|
|
551
551
|
}],
|
|
552
552
|
/**
|
|
553
553
|
* Grid Column Start / End
|
|
@@ -555,7 +555,7 @@ const I = (e) => {
|
|
|
555
555
|
*/
|
|
556
556
|
"col-start-end": [{
|
|
557
557
|
col: ["auto", {
|
|
558
|
-
span: ["full",
|
|
558
|
+
span: ["full", Le, N]
|
|
559
559
|
}, N]
|
|
560
560
|
}],
|
|
561
561
|
/**
|
|
@@ -577,7 +577,7 @@ const I = (e) => {
|
|
|
577
577
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
578
578
|
*/
|
|
579
579
|
"grid-rows": [{
|
|
580
|
-
"grid-rows": [
|
|
580
|
+
"grid-rows": [Fe]
|
|
581
581
|
}],
|
|
582
582
|
/**
|
|
583
583
|
* Grid Row Start / End
|
|
@@ -585,7 +585,7 @@ const I = (e) => {
|
|
|
585
585
|
*/
|
|
586
586
|
"row-start-end": [{
|
|
587
587
|
row: ["auto", {
|
|
588
|
-
span: [
|
|
588
|
+
span: [Le, N]
|
|
589
589
|
}, N]
|
|
590
590
|
}],
|
|
591
591
|
/**
|
|
@@ -933,14 +933,14 @@ const I = (e) => {
|
|
|
933
933
|
* @see https://tailwindcss.com/docs/font-weight
|
|
934
934
|
*/
|
|
935
935
|
"font-weight": [{
|
|
936
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
936
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", vt]
|
|
937
937
|
}],
|
|
938
938
|
/**
|
|
939
939
|
* Font Family
|
|
940
940
|
* @see https://tailwindcss.com/docs/font-family
|
|
941
941
|
*/
|
|
942
942
|
"font-family": [{
|
|
943
|
-
font: [
|
|
943
|
+
font: [Fe]
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Font Variant Numeric
|
|
@@ -984,7 +984,7 @@ const I = (e) => {
|
|
|
984
984
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
985
985
|
*/
|
|
986
986
|
"line-clamp": [{
|
|
987
|
-
"line-clamp": ["none",
|
|
987
|
+
"line-clamp": ["none", Re, vt]
|
|
988
988
|
}],
|
|
989
989
|
/**
|
|
990
990
|
* Line Height
|
|
@@ -1177,7 +1177,7 @@ const I = (e) => {
|
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/background-position
|
|
1178
1178
|
*/
|
|
1179
1179
|
"bg-position": [{
|
|
1180
|
-
bg: [...
|
|
1180
|
+
bg: [...B(), Ys]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Background Repeat
|
|
@@ -1193,7 +1193,7 @@ const I = (e) => {
|
|
|
1193
1193
|
* @see https://tailwindcss.com/docs/background-size
|
|
1194
1194
|
*/
|
|
1195
1195
|
"bg-size": [{
|
|
1196
|
-
bg: ["auto", "cover", "contain",
|
|
1196
|
+
bg: ["auto", "cover", "contain", Ks]
|
|
1197
1197
|
}],
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Background Image
|
|
@@ -1202,7 +1202,7 @@ const I = (e) => {
|
|
|
1202
1202
|
"bg-image": [{
|
|
1203
1203
|
bg: ["none", {
|
|
1204
1204
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1205
|
-
},
|
|
1205
|
+
}, qs]
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Background Color
|
|
@@ -1618,14 +1618,14 @@ const I = (e) => {
|
|
|
1618
1618
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1619
1619
|
*/
|
|
1620
1620
|
shadow: [{
|
|
1621
|
-
shadow: ["", "inner", "none", le,
|
|
1621
|
+
shadow: ["", "inner", "none", le, Zs]
|
|
1622
1622
|
}],
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Box Shadow Color
|
|
1625
1625
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1626
1626
|
*/
|
|
1627
1627
|
"shadow-color": [{
|
|
1628
|
-
shadow: [
|
|
1628
|
+
shadow: [Fe]
|
|
1629
1629
|
}],
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Opacity
|
|
@@ -1904,7 +1904,7 @@ const I = (e) => {
|
|
|
1904
1904
|
* @see https://tailwindcss.com/docs/rotate
|
|
1905
1905
|
*/
|
|
1906
1906
|
rotate: [{
|
|
1907
|
-
rotate: [
|
|
1907
|
+
rotate: [Le, N]
|
|
1908
1908
|
}],
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Translate X
|
|
@@ -2198,7 +2198,7 @@ const I = (e) => {
|
|
|
2198
2198
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2199
2199
|
*/
|
|
2200
2200
|
"stroke-w": [{
|
|
2201
|
-
stroke: [ne, ie,
|
|
2201
|
+
stroke: [ne, ie, vt]
|
|
2202
2202
|
}],
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Stroke
|
|
@@ -2273,38 +2273,38 @@ const I = (e) => {
|
|
|
2273
2273
|
"font-size": ["leading"]
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
|
-
},
|
|
2277
|
-
function
|
|
2278
|
-
return
|
|
2276
|
+
}, na = /* @__PURE__ */ Ls(ta);
|
|
2277
|
+
function I(...e) {
|
|
2278
|
+
return na(Zn(e));
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function Pn(e, t) {
|
|
2281
2281
|
if (typeof e == "function")
|
|
2282
2282
|
return e(t);
|
|
2283
2283
|
e != null && (e.current = t);
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2285
|
+
function ra(...e) {
|
|
2286
2286
|
return (t) => {
|
|
2287
2287
|
let n = !1;
|
|
2288
2288
|
const r = e.map((o) => {
|
|
2289
|
-
const s =
|
|
2289
|
+
const s = Pn(o, t);
|
|
2290
2290
|
return !n && typeof s == "function" && (n = !0), s;
|
|
2291
2291
|
});
|
|
2292
2292
|
if (n)
|
|
2293
2293
|
return () => {
|
|
2294
2294
|
for (let o = 0; o < r.length; o++) {
|
|
2295
2295
|
const s = r[o];
|
|
2296
|
-
typeof s == "function" ? s() :
|
|
2296
|
+
typeof s == "function" ? s() : Pn(e[o], null);
|
|
2297
2297
|
}
|
|
2298
2298
|
};
|
|
2299
2299
|
};
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2302
|
-
return l.useCallback(
|
|
2301
|
+
function oa(...e) {
|
|
2302
|
+
return l.useCallback(ra(...e), e);
|
|
2303
2303
|
}
|
|
2304
2304
|
// @__NO_SIDE_EFFECTS__
|
|
2305
|
-
function
|
|
2306
|
-
const t = /* @__PURE__ */
|
|
2307
|
-
const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(
|
|
2305
|
+
function rr(e) {
|
|
2306
|
+
const t = /* @__PURE__ */ aa(e), n = l.forwardRef((r, o) => {
|
|
2307
|
+
const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(la);
|
|
2308
2308
|
if (c) {
|
|
2309
2309
|
const u = c.props.children, d = i.map((f) => f === c ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : f);
|
|
2310
2310
|
return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
|
|
@@ -2313,24 +2313,24 @@ function tr(e) {
|
|
|
2313
2313
|
});
|
|
2314
2314
|
return n.displayName = `${e}.Slot`, n;
|
|
2315
2315
|
}
|
|
2316
|
-
var
|
|
2316
|
+
var sa = /* @__PURE__ */ rr("Slot");
|
|
2317
2317
|
// @__NO_SIDE_EFFECTS__
|
|
2318
|
-
function
|
|
2318
|
+
function aa(e) {
|
|
2319
2319
|
const t = l.forwardRef((n, r) => {
|
|
2320
|
-
const { children: o, ...s } = n, a = l.isValidElement(o) ?
|
|
2320
|
+
const { children: o, ...s } = n, a = l.isValidElement(o) ? ua(o) : void 0, i = oa(a, r);
|
|
2321
2321
|
if (l.isValidElement(o)) {
|
|
2322
|
-
const c =
|
|
2322
|
+
const c = ca(s, o.props);
|
|
2323
2323
|
return o.type !== l.Fragment && (c.ref = i), l.cloneElement(o, c);
|
|
2324
2324
|
}
|
|
2325
2325
|
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
2326
2326
|
});
|
|
2327
2327
|
return t.displayName = `${e}.SlotClone`, t;
|
|
2328
2328
|
}
|
|
2329
|
-
var
|
|
2330
|
-
function
|
|
2331
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
2329
|
+
var ia = Symbol("radix.slottable");
|
|
2330
|
+
function la(e) {
|
|
2331
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ia;
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function ca(e, t) {
|
|
2334
2334
|
const n = { ...t };
|
|
2335
2335
|
for (const r in t) {
|
|
2336
2336
|
const o = e[r], s = t[r];
|
|
@@ -2341,18 +2341,18 @@ function la(e, t) {
|
|
|
2341
2341
|
}
|
|
2342
2342
|
return { ...e, ...n };
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function ua(e) {
|
|
2345
2345
|
var r, o;
|
|
2346
2346
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2347
2347
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2348
2348
|
}
|
|
2349
|
-
const
|
|
2349
|
+
const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An = Zn, Ht = (e, t) => (n) => {
|
|
2350
2350
|
var r;
|
|
2351
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
2351
|
+
if ((t == null ? void 0 : t.variants) == null) return An(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2352
2352
|
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((u) => {
|
|
2353
2353
|
const d = n == null ? void 0 : n[u], f = s == null ? void 0 : s[u];
|
|
2354
2354
|
if (d === null) return null;
|
|
2355
|
-
const h =
|
|
2355
|
+
const h = Sn(d) || Sn(f);
|
|
2356
2356
|
return o[u][h];
|
|
2357
2357
|
}), i = n && Object.entries(n).reduce((u, d) => {
|
|
2358
2358
|
let [f, h] = d;
|
|
@@ -2374,8 +2374,8 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sn = zt, n
|
|
|
2374
2374
|
h
|
|
2375
2375
|
] : u;
|
|
2376
2376
|
}, []);
|
|
2377
|
-
return
|
|
2378
|
-
},
|
|
2377
|
+
return An(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2378
|
+
}, da = Ht(
|
|
2379
2379
|
"al-inline-flex al-items-center al-justify-center al-gap-2 al-whitespace-nowrap al-text-sm al-font-medium al-ring-offset-background al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
|
|
2380
2380
|
{
|
|
2381
2381
|
variants: {
|
|
@@ -2401,38 +2401,38 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sn = zt, n
|
|
|
2401
2401
|
size: "default"
|
|
2402
2402
|
}
|
|
2403
2403
|
}
|
|
2404
|
-
),
|
|
2404
|
+
), fa = l.forwardRef(
|
|
2405
2405
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
|
|
2406
|
-
const a = r ?
|
|
2407
|
-
return /* @__PURE__ */ g.jsx(a, { className:
|
|
2406
|
+
const a = r ? sa : "button";
|
|
2407
|
+
return /* @__PURE__ */ g.jsx(a, { className: I(da({ variant: t, size: n, className: e })), ref: s, ...o });
|
|
2408
2408
|
}
|
|
2409
2409
|
);
|
|
2410
|
-
|
|
2411
|
-
function
|
|
2410
|
+
fa.displayName = "Button";
|
|
2411
|
+
function Nn(e, t) {
|
|
2412
2412
|
if (typeof e == "function")
|
|
2413
2413
|
return e(t);
|
|
2414
2414
|
e != null && (e.current = t);
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function De(...e) {
|
|
2417
2417
|
return (t) => {
|
|
2418
2418
|
let n = !1;
|
|
2419
2419
|
const r = e.map((o) => {
|
|
2420
|
-
const s =
|
|
2420
|
+
const s = Nn(o, t);
|
|
2421
2421
|
return !n && typeof s == "function" && (n = !0), s;
|
|
2422
2422
|
});
|
|
2423
2423
|
if (n)
|
|
2424
2424
|
return () => {
|
|
2425
2425
|
for (let o = 0; o < r.length; o++) {
|
|
2426
2426
|
const s = r[o];
|
|
2427
|
-
typeof s == "function" ? s() :
|
|
2427
|
+
typeof s == "function" ? s() : Nn(e[o], null);
|
|
2428
2428
|
}
|
|
2429
2429
|
};
|
|
2430
2430
|
};
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return l.useCallback(
|
|
2432
|
+
function z(...e) {
|
|
2433
|
+
return l.useCallback(De(...e), e);
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function pa(e, t) {
|
|
2436
2436
|
const n = l.createContext(t), r = (s) => {
|
|
2437
2437
|
const { children: a, ...i } = s, c = l.useMemo(() => i, Object.values(i));
|
|
2438
2438
|
return /* @__PURE__ */ g.jsx(n.Provider, { value: c, children: a });
|
|
@@ -2476,9 +2476,9 @@ function ae(e, t = []) {
|
|
|
2476
2476
|
);
|
|
2477
2477
|
};
|
|
2478
2478
|
};
|
|
2479
|
-
return o.scopeName = e, [r,
|
|
2479
|
+
return o.scopeName = e, [r, ma(o, ...t)];
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2481
|
+
function ma(...e) {
|
|
2482
2482
|
const t = e[0];
|
|
2483
2483
|
if (e.length === 1) return t;
|
|
2484
2484
|
const n = () => {
|
|
@@ -2511,13 +2511,13 @@ function re(e) {
|
|
|
2511
2511
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
2512
2512
|
}, []);
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function je({
|
|
2515
2515
|
prop: e,
|
|
2516
2516
|
defaultProp: t,
|
|
2517
2517
|
onChange: n = () => {
|
|
2518
2518
|
}
|
|
2519
2519
|
}) {
|
|
2520
|
-
const [r, o] =
|
|
2520
|
+
const [r, o] = ga({ defaultProp: t, onChange: n }), s = e !== void 0, a = s ? e : r, i = re(n), c = l.useCallback(
|
|
2521
2521
|
(u) => {
|
|
2522
2522
|
if (s) {
|
|
2523
2523
|
const f = typeof u == "function" ? u(e) : u;
|
|
@@ -2529,7 +2529,7 @@ function De({
|
|
|
2529
2529
|
);
|
|
2530
2530
|
return [a, c];
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2532
|
+
function ga({
|
|
2533
2533
|
defaultProp: e,
|
|
2534
2534
|
onChange: t
|
|
2535
2535
|
}) {
|
|
@@ -2538,15 +2538,15 @@ function ma({
|
|
|
2538
2538
|
o.current !== r && (s(r), o.current = r);
|
|
2539
2539
|
}, [r, o, s]), n;
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function or(e) {
|
|
2542
2542
|
const t = l.useRef({ value: e, previous: e });
|
|
2543
2543
|
return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
2544
2544
|
}
|
|
2545
|
-
var
|
|
2545
|
+
var be = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
2546
2546
|
};
|
|
2547
|
-
function
|
|
2547
|
+
function Ut(e) {
|
|
2548
2548
|
const [t, n] = l.useState(void 0);
|
|
2549
|
-
return
|
|
2549
|
+
return be(() => {
|
|
2550
2550
|
if (e) {
|
|
2551
2551
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2552
2552
|
const r = new ResizeObserver((o) => {
|
|
@@ -2566,16 +2566,16 @@ function Ht(e) {
|
|
|
2566
2566
|
n(void 0);
|
|
2567
2567
|
}, [e]), t;
|
|
2568
2568
|
}
|
|
2569
|
-
function
|
|
2569
|
+
function ha(e, t) {
|
|
2570
2570
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
2571
2571
|
}
|
|
2572
2572
|
var ee = (e) => {
|
|
2573
|
-
const { present: t, children: n } = e, r =
|
|
2573
|
+
const { present: t, children: n } = e, r = va(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = z(r.ref, ba(o));
|
|
2574
2574
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: s }) : null;
|
|
2575
2575
|
};
|
|
2576
2576
|
ee.displayName = "Presence";
|
|
2577
|
-
function
|
|
2578
|
-
const [t, n] = l.useState(), r = l.useRef({}), o = l.useRef(e), s = l.useRef("none"), a = e ? "mounted" : "unmounted", [i, c] =
|
|
2577
|
+
function va(e) {
|
|
2578
|
+
const [t, n] = l.useState(), r = l.useRef({}), o = l.useRef(e), s = l.useRef("none"), a = e ? "mounted" : "unmounted", [i, c] = ha(a, {
|
|
2579
2579
|
mounted: {
|
|
2580
2580
|
UNMOUNT: "unmounted",
|
|
2581
2581
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2589,19 +2589,19 @@ function ha(e) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
});
|
|
2591
2591
|
return l.useEffect(() => {
|
|
2592
|
-
const u =
|
|
2592
|
+
const u = Ue(r.current);
|
|
2593
2593
|
s.current = i === "mounted" ? u : "none";
|
|
2594
|
-
}, [i]),
|
|
2594
|
+
}, [i]), be(() => {
|
|
2595
2595
|
const u = r.current, d = o.current;
|
|
2596
2596
|
if (d !== e) {
|
|
2597
|
-
const h = s.current, m =
|
|
2597
|
+
const h = s.current, m = Ue(u);
|
|
2598
2598
|
e ? c("MOUNT") : m === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(d && h !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
2599
2599
|
}
|
|
2600
|
-
}, [e, c]),
|
|
2600
|
+
}, [e, c]), be(() => {
|
|
2601
2601
|
if (t) {
|
|
2602
2602
|
let u;
|
|
2603
2603
|
const d = t.ownerDocument.defaultView ?? window, f = (m) => {
|
|
2604
|
-
const p =
|
|
2604
|
+
const p = Ue(r.current).includes(m.animationName);
|
|
2605
2605
|
if (m.target === t && p && (c("ANIMATION_END"), !o.current)) {
|
|
2606
2606
|
const b = t.style.animationFillMode;
|
|
2607
2607
|
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
@@ -2609,7 +2609,7 @@ function ha(e) {
|
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
2611
|
}, h = (m) => {
|
|
2612
|
-
m.target === t && (s.current =
|
|
2612
|
+
m.target === t && (s.current = Ue(r.current));
|
|
2613
2613
|
};
|
|
2614
2614
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
2615
2615
|
d.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -2623,41 +2623,41 @@ function ha(e) {
|
|
|
2623
2623
|
}, [])
|
|
2624
2624
|
};
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function Ue(e) {
|
|
2627
2627
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function ba(e) {
|
|
2630
2630
|
var r, o;
|
|
2631
2631
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2632
2632
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2633
2633
|
}
|
|
2634
|
-
var
|
|
2635
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
2634
|
+
var sr = l.forwardRef((e, t) => {
|
|
2635
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(xa);
|
|
2636
2636
|
if (s) {
|
|
2637
2637
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
2638
|
-
return /* @__PURE__ */ g.jsx(
|
|
2638
|
+
return /* @__PURE__ */ g.jsx(Ot, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
2639
2639
|
}
|
|
2640
|
-
return /* @__PURE__ */ g.jsx(
|
|
2640
|
+
return /* @__PURE__ */ g.jsx(Ot, { ...r, ref: t, children: n });
|
|
2641
2641
|
});
|
|
2642
|
-
|
|
2643
|
-
var
|
|
2642
|
+
sr.displayName = "Slot";
|
|
2643
|
+
var Ot = l.forwardRef((e, t) => {
|
|
2644
2644
|
const { children: n, ...r } = e;
|
|
2645
2645
|
if (l.isValidElement(n)) {
|
|
2646
|
-
const o =
|
|
2646
|
+
const o = Ca(n);
|
|
2647
2647
|
return l.cloneElement(n, {
|
|
2648
|
-
...
|
|
2648
|
+
...wa(r, n.props),
|
|
2649
2649
|
// @ts-ignore
|
|
2650
|
-
ref: t ?
|
|
2650
|
+
ref: t ? De(t, o) : o
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
2653
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
2654
2654
|
});
|
|
2655
|
-
|
|
2656
|
-
var
|
|
2657
|
-
function
|
|
2658
|
-
return l.isValidElement(e) && e.type ===
|
|
2655
|
+
Ot.displayName = "SlotClone";
|
|
2656
|
+
var ya = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
2657
|
+
function xa(e) {
|
|
2658
|
+
return l.isValidElement(e) && e.type === ya;
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function wa(e, t) {
|
|
2661
2661
|
const n = { ...t };
|
|
2662
2662
|
for (const r in t) {
|
|
2663
2663
|
const o = e[r], s = t[r];
|
|
@@ -2667,12 +2667,12 @@ function xa(e, t) {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
return { ...e, ...n };
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function Ca(e) {
|
|
2671
2671
|
var r, o;
|
|
2672
2672
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2673
2673
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2674
2674
|
}
|
|
2675
|
-
var
|
|
2675
|
+
var Ea = [
|
|
2676
2676
|
"a",
|
|
2677
2677
|
"button",
|
|
2678
2678
|
"div",
|
|
@@ -2689,17 +2689,17 @@ var Ca = [
|
|
|
2689
2689
|
"span",
|
|
2690
2690
|
"svg",
|
|
2691
2691
|
"ul"
|
|
2692
|
-
], $ =
|
|
2692
|
+
], $ = Ea.reduce((e, t) => {
|
|
2693
2693
|
const n = l.forwardRef((r, o) => {
|
|
2694
|
-
const { asChild: s, ...a } = r, i = s ?
|
|
2694
|
+
const { asChild: s, ...a } = r, i = s ? sr : t;
|
|
2695
2695
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g.jsx(i, { ...a, ref: o });
|
|
2696
2696
|
});
|
|
2697
2697
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
2698
2698
|
}, {});
|
|
2699
|
-
function
|
|
2700
|
-
e &&
|
|
2699
|
+
function Ra(e, t) {
|
|
2700
|
+
e && Xn.flushSync(() => e.dispatchEvent(t));
|
|
2701
2701
|
}
|
|
2702
|
-
var
|
|
2702
|
+
var Kt = "Checkbox", [Pa, Vu] = ae(Kt), [Sa, Aa] = Pa(Kt), ar = l.forwardRef(
|
|
2703
2703
|
(e, t) => {
|
|
2704
2704
|
const {
|
|
2705
2705
|
__scopeCheckbox: n,
|
|
@@ -2712,7 +2712,7 @@ var Ut = "Checkbox", [Ra, Vu] = ae(Ut), [Pa, Sa] = Ra(Ut), sr = l.forwardRef(
|
|
|
2712
2712
|
onCheckedChange: u,
|
|
2713
2713
|
form: d,
|
|
2714
2714
|
...f
|
|
2715
|
-
} = e, [h, m] = l.useState(null), v =
|
|
2715
|
+
} = e, [h, m] = l.useState(null), v = z(t, (w) => m(w)), p = l.useRef(!1), b = h ? d || !!h.closest("form") : !0, [y = !1, x] = je({
|
|
2716
2716
|
prop: o,
|
|
2717
2717
|
defaultProp: s,
|
|
2718
2718
|
onChange: u
|
|
@@ -2723,15 +2723,15 @@ var Ut = "Checkbox", [Ra, Vu] = ae(Ut), [Pa, Sa] = Ra(Ut), sr = l.forwardRef(
|
|
|
2723
2723
|
const E = () => x(C.current);
|
|
2724
2724
|
return w.addEventListener("reset", E), () => w.removeEventListener("reset", E);
|
|
2725
2725
|
}
|
|
2726
|
-
}, [h, x]), /* @__PURE__ */ g.jsxs(
|
|
2726
|
+
}, [h, x]), /* @__PURE__ */ g.jsxs(Sa, { scope: n, state: y, disabled: i, children: [
|
|
2727
2727
|
/* @__PURE__ */ g.jsx(
|
|
2728
2728
|
$.button,
|
|
2729
2729
|
{
|
|
2730
2730
|
type: "button",
|
|
2731
2731
|
role: "checkbox",
|
|
2732
|
-
"aria-checked":
|
|
2732
|
+
"aria-checked": de(y) ? "mixed" : y,
|
|
2733
2733
|
"aria-required": a,
|
|
2734
|
-
"data-state":
|
|
2734
|
+
"data-state": cr(y),
|
|
2735
2735
|
"data-disabled": i ? "" : void 0,
|
|
2736
2736
|
disabled: i,
|
|
2737
2737
|
value: c,
|
|
@@ -2741,12 +2741,12 @@ var Ut = "Checkbox", [Ra, Vu] = ae(Ut), [Pa, Sa] = Ra(Ut), sr = l.forwardRef(
|
|
|
2741
2741
|
w.key === "Enter" && w.preventDefault();
|
|
2742
2742
|
}),
|
|
2743
2743
|
onClick: k(e.onClick, (w) => {
|
|
2744
|
-
x((E) =>
|
|
2744
|
+
x((E) => de(E) ? !0 : !E), b && (p.current = w.isPropagationStopped(), p.current || w.stopPropagation());
|
|
2745
2745
|
})
|
|
2746
2746
|
}
|
|
2747
2747
|
),
|
|
2748
2748
|
b && /* @__PURE__ */ g.jsx(
|
|
2749
|
-
|
|
2749
|
+
Na,
|
|
2750
2750
|
{
|
|
2751
2751
|
control: h,
|
|
2752
2752
|
bubbles: !p.current,
|
|
@@ -2757,20 +2757,20 @@ var Ut = "Checkbox", [Ra, Vu] = ae(Ut), [Pa, Sa] = Ra(Ut), sr = l.forwardRef(
|
|
|
2757
2757
|
disabled: i,
|
|
2758
2758
|
form: d,
|
|
2759
2759
|
style: { transform: "translateX(-100%)" },
|
|
2760
|
-
defaultChecked:
|
|
2760
|
+
defaultChecked: de(s) ? !1 : s
|
|
2761
2761
|
}
|
|
2762
2762
|
)
|
|
2763
2763
|
] });
|
|
2764
2764
|
}
|
|
2765
2765
|
);
|
|
2766
|
-
|
|
2767
|
-
var
|
|
2766
|
+
ar.displayName = Kt;
|
|
2767
|
+
var ir = "CheckboxIndicator", lr = l.forwardRef(
|
|
2768
2768
|
(e, t) => {
|
|
2769
|
-
const { __scopeCheckbox: n, forceMount: r, ...o } = e, s =
|
|
2770
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r ||
|
|
2769
|
+
const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = Aa(ir, n);
|
|
2770
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || de(s.state) || s.state === !0, children: /* @__PURE__ */ g.jsx(
|
|
2771
2771
|
$.span,
|
|
2772
2772
|
{
|
|
2773
|
-
"data-state":
|
|
2773
|
+
"data-state": cr(s.state),
|
|
2774
2774
|
"data-disabled": s.disabled ? "" : void 0,
|
|
2775
2775
|
...o,
|
|
2776
2776
|
ref: t,
|
|
@@ -2779,17 +2779,17 @@ var ar = "CheckboxIndicator", ir = l.forwardRef(
|
|
|
2779
2779
|
) });
|
|
2780
2780
|
}
|
|
2781
2781
|
);
|
|
2782
|
-
|
|
2783
|
-
var
|
|
2784
|
-
const { control: t, checked: n, bubbles: r = !0, defaultChecked: o, ...s } = e, a = l.useRef(null), i =
|
|
2782
|
+
lr.displayName = ir;
|
|
2783
|
+
var Na = (e) => {
|
|
2784
|
+
const { control: t, checked: n, bubbles: r = !0, defaultChecked: o, ...s } = e, a = l.useRef(null), i = or(n), c = Ut(t);
|
|
2785
2785
|
l.useEffect(() => {
|
|
2786
2786
|
const d = a.current, f = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(f, "checked").set;
|
|
2787
2787
|
if (i !== n && m) {
|
|
2788
2788
|
const v = new Event("click", { bubbles: r });
|
|
2789
|
-
d.indeterminate =
|
|
2789
|
+
d.indeterminate = de(n), m.call(d, de(n) ? !1 : n), d.dispatchEvent(v);
|
|
2790
2790
|
}
|
|
2791
2791
|
}, [i, n, r]);
|
|
2792
|
-
const u = l.useRef(
|
|
2792
|
+
const u = l.useRef(de(n) ? !1 : n);
|
|
2793
2793
|
return /* @__PURE__ */ g.jsx(
|
|
2794
2794
|
"input",
|
|
2795
2795
|
{
|
|
@@ -2810,26 +2810,26 @@ var Aa = (e) => {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
);
|
|
2812
2812
|
};
|
|
2813
|
-
function
|
|
2813
|
+
function de(e) {
|
|
2814
2814
|
return e === "indeterminate";
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2817
|
-
return
|
|
2816
|
+
function cr(e) {
|
|
2817
|
+
return de(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
2818
2818
|
}
|
|
2819
|
-
var
|
|
2820
|
-
const
|
|
2821
|
-
|
|
2819
|
+
var ur = ar, Oa = lr;
|
|
2820
|
+
const dr = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
2821
|
+
ur,
|
|
2822
2822
|
{
|
|
2823
2823
|
ref: n,
|
|
2824
|
-
className:
|
|
2824
|
+
className: I(
|
|
2825
2825
|
"al-peer al-h-4 al-w-4 al-shrink-0 al-rounded-xs al-border al-border-primary al-ring-offset-background focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=checked]:al-text-primary-foreground",
|
|
2826
2826
|
e
|
|
2827
2827
|
),
|
|
2828
2828
|
...t,
|
|
2829
2829
|
children: /* @__PURE__ */ g.jsx(
|
|
2830
|
-
|
|
2830
|
+
Oa,
|
|
2831
2831
|
{
|
|
2832
|
-
className:
|
|
2832
|
+
className: I("al-flex al-items-center al-justify-center al-text-current"),
|
|
2833
2833
|
children: /* @__PURE__ */ g.jsx(
|
|
2834
2834
|
"svg",
|
|
2835
2835
|
{
|
|
@@ -2849,34 +2849,34 @@ const ur = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
|
2849
2849
|
)
|
|
2850
2850
|
}
|
|
2851
2851
|
));
|
|
2852
|
-
|
|
2853
|
-
var
|
|
2854
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
2852
|
+
dr.displayName = ur.displayName;
|
|
2853
|
+
var Tt = l.forwardRef((e, t) => {
|
|
2854
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(ka);
|
|
2855
2855
|
if (s) {
|
|
2856
2856
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
2857
|
-
return /* @__PURE__ */ g.jsx(
|
|
2857
|
+
return /* @__PURE__ */ g.jsx(kt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
2858
2858
|
}
|
|
2859
|
-
return /* @__PURE__ */ g.jsx(
|
|
2859
|
+
return /* @__PURE__ */ g.jsx(kt, { ...r, ref: t, children: n });
|
|
2860
2860
|
});
|
|
2861
|
-
|
|
2862
|
-
var
|
|
2861
|
+
Tt.displayName = "Slot";
|
|
2862
|
+
var kt = l.forwardRef((e, t) => {
|
|
2863
2863
|
const { children: n, ...r } = e;
|
|
2864
2864
|
if (l.isValidElement(n)) {
|
|
2865
|
-
const o =
|
|
2865
|
+
const o = ja(n);
|
|
2866
2866
|
return l.cloneElement(n, {
|
|
2867
|
-
...
|
|
2867
|
+
...Da(r, n.props),
|
|
2868
2868
|
// @ts-ignore
|
|
2869
|
-
ref: t ?
|
|
2869
|
+
ref: t ? De(t, o) : o
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
2872
2872
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
2873
2873
|
});
|
|
2874
|
-
|
|
2875
|
-
var
|
|
2876
|
-
function
|
|
2877
|
-
return l.isValidElement(e) && e.type ===
|
|
2874
|
+
kt.displayName = "SlotClone";
|
|
2875
|
+
var Ta = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
2876
|
+
function ka(e) {
|
|
2877
|
+
return l.isValidElement(e) && e.type === Ta;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function Da(e, t) {
|
|
2880
2880
|
const n = { ...t };
|
|
2881
2881
|
for (const r in t) {
|
|
2882
2882
|
const o = e[r], s = t[r];
|
|
@@ -2886,37 +2886,37 @@ function ka(e, t) {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
return { ...e, ...n };
|
|
2888
2888
|
}
|
|
2889
|
-
function
|
|
2889
|
+
function ja(e) {
|
|
2890
2890
|
var r, o;
|
|
2891
2891
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2892
2892
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function Ma(e) {
|
|
2895
2895
|
const t = e + "CollectionProvider", [n, r] = ae(t), [o, s] = n(
|
|
2896
2896
|
t,
|
|
2897
2897
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
2898
2898
|
), a = (m) => {
|
|
2899
|
-
const { scope: v, children: p } = m, b =
|
|
2899
|
+
const { scope: v, children: p } = m, b = ve.useRef(null), y = ve.useRef(/* @__PURE__ */ new Map()).current;
|
|
2900
2900
|
return /* @__PURE__ */ g.jsx(o, { scope: v, itemMap: y, collectionRef: b, children: p });
|
|
2901
2901
|
};
|
|
2902
2902
|
a.displayName = t;
|
|
2903
|
-
const i = e + "CollectionSlot", c =
|
|
2903
|
+
const i = e + "CollectionSlot", c = ve.forwardRef(
|
|
2904
2904
|
(m, v) => {
|
|
2905
|
-
const { scope: p, children: b } = m, y = s(i, p), x =
|
|
2906
|
-
return /* @__PURE__ */ g.jsx(
|
|
2905
|
+
const { scope: p, children: b } = m, y = s(i, p), x = z(v, y.collectionRef);
|
|
2906
|
+
return /* @__PURE__ */ g.jsx(Tt, { ref: x, children: b });
|
|
2907
2907
|
}
|
|
2908
2908
|
);
|
|
2909
2909
|
c.displayName = i;
|
|
2910
|
-
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f =
|
|
2910
|
+
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = ve.forwardRef(
|
|
2911
2911
|
(m, v) => {
|
|
2912
|
-
const { scope: p, children: b, ...y } = m, x =
|
|
2913
|
-
return
|
|
2912
|
+
const { scope: p, children: b, ...y } = m, x = ve.useRef(null), C = z(v, x), w = s(u, p);
|
|
2913
|
+
return ve.useEffect(() => (w.itemMap.set(x, { ref: x, ...y }), () => void w.itemMap.delete(x))), /* @__PURE__ */ g.jsx(Tt, { [d]: "", ref: C, children: b });
|
|
2914
2914
|
}
|
|
2915
2915
|
);
|
|
2916
2916
|
f.displayName = u;
|
|
2917
2917
|
function h(m) {
|
|
2918
2918
|
const v = s(e + "CollectionConsumer", m);
|
|
2919
|
-
return
|
|
2919
|
+
return ve.useCallback(() => {
|
|
2920
2920
|
const b = v.collectionRef.current;
|
|
2921
2921
|
if (!b) return [];
|
|
2922
2922
|
const y = Array.from(b.querySelectorAll(`[${d}]`));
|
|
@@ -2931,26 +2931,26 @@ function ja(e) {
|
|
|
2931
2931
|
r
|
|
2932
2932
|
];
|
|
2933
2933
|
}
|
|
2934
|
-
var
|
|
2935
|
-
}),
|
|
2936
|
-
function
|
|
2937
|
-
const [t, n] = l.useState(
|
|
2938
|
-
return
|
|
2939
|
-
n((r) => r ?? String(
|
|
2934
|
+
var Ia = l.useId || (() => {
|
|
2935
|
+
}), _a = 0;
|
|
2936
|
+
function Pe(e) {
|
|
2937
|
+
const [t, n] = l.useState(Ia());
|
|
2938
|
+
return be(() => {
|
|
2939
|
+
n((r) => r ?? String(_a++));
|
|
2940
2940
|
}, [e]), t ? `radix-${t}` : "";
|
|
2941
2941
|
}
|
|
2942
|
-
var
|
|
2943
|
-
function
|
|
2944
|
-
const t = l.useContext(
|
|
2942
|
+
var La = l.createContext(void 0);
|
|
2943
|
+
function fr(e) {
|
|
2944
|
+
const t = l.useContext(La);
|
|
2945
2945
|
return e || t || "ltr";
|
|
2946
2946
|
}
|
|
2947
|
-
var
|
|
2948
|
-
|
|
2949
|
-
[
|
|
2950
|
-
), [
|
|
2951
|
-
(e, t) => /* @__PURE__ */ g.jsx(
|
|
2947
|
+
var bt = "rovingFocusGroup.onEntryFocus", Fa = { bubbles: !1, cancelable: !0 }, at = "RovingFocusGroup", [Dt, pr, $a] = Ma(at), [Wa, mr] = ae(
|
|
2948
|
+
at,
|
|
2949
|
+
[$a]
|
|
2950
|
+
), [Va, za] = Wa(at), gr = l.forwardRef(
|
|
2951
|
+
(e, t) => /* @__PURE__ */ g.jsx(Dt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Dt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Ba, { ...e, ref: t }) }) })
|
|
2952
2952
|
);
|
|
2953
|
-
|
|
2953
|
+
gr.displayName = at;
|
|
2954
2954
|
var Ba = l.forwardRef((e, t) => {
|
|
2955
2955
|
const {
|
|
2956
2956
|
__scopeRovingFocusGroup: n,
|
|
@@ -2963,17 +2963,17 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
2963
2963
|
onEntryFocus: u,
|
|
2964
2964
|
preventScrollOnEntryFocus: d = !1,
|
|
2965
2965
|
...f
|
|
2966
|
-
} = e, h = l.useRef(null), m =
|
|
2966
|
+
} = e, h = l.useRef(null), m = z(t, h), v = fr(s), [p = null, b] = je({
|
|
2967
2967
|
prop: a,
|
|
2968
2968
|
defaultProp: i,
|
|
2969
2969
|
onChange: c
|
|
2970
|
-
}), [y, x] = l.useState(!1), C = re(u), w =
|
|
2970
|
+
}), [y, x] = l.useState(!1), C = re(u), w = pr(n), E = l.useRef(!1), [P, R] = l.useState(0);
|
|
2971
2971
|
return l.useEffect(() => {
|
|
2972
2972
|
const S = h.current;
|
|
2973
2973
|
if (S)
|
|
2974
|
-
return S.addEventListener(
|
|
2974
|
+
return S.addEventListener(bt, C), () => S.removeEventListener(bt, C);
|
|
2975
2975
|
}, [C]), /* @__PURE__ */ g.jsx(
|
|
2976
|
-
|
|
2976
|
+
Va,
|
|
2977
2977
|
{
|
|
2978
2978
|
scope: n,
|
|
2979
2979
|
orientation: r,
|
|
@@ -3007,12 +3007,12 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3007
3007
|
onFocus: k(e.onFocus, (S) => {
|
|
3008
3008
|
const M = !E.current;
|
|
3009
3009
|
if (S.target === S.currentTarget && M && !y) {
|
|
3010
|
-
const D = new CustomEvent(
|
|
3010
|
+
const D = new CustomEvent(bt, Fa);
|
|
3011
3011
|
if (S.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
3012
|
-
const F = w().filter((T) => T.focusable), A = F.find((T) => T.active), L = F.find((T) => T.id === p),
|
|
3012
|
+
const F = w().filter((T) => T.focusable), A = F.find((T) => T.active), L = F.find((T) => T.id === p), B = [A, L, ...F].filter(
|
|
3013
3013
|
Boolean
|
|
3014
3014
|
).map((T) => T.ref.current);
|
|
3015
|
-
|
|
3015
|
+
br(B, d);
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
3018
|
E.current = !1;
|
|
@@ -3022,7 +3022,7 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3022
3022
|
)
|
|
3023
3023
|
}
|
|
3024
3024
|
);
|
|
3025
|
-
}),
|
|
3025
|
+
}), hr = "RovingFocusGroupItem", vr = l.forwardRef(
|
|
3026
3026
|
(e, t) => {
|
|
3027
3027
|
const {
|
|
3028
3028
|
__scopeRovingFocusGroup: n,
|
|
@@ -3030,12 +3030,12 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3030
3030
|
active: o = !1,
|
|
3031
3031
|
tabStopId: s,
|
|
3032
3032
|
...a
|
|
3033
|
-
} = e, i =
|
|
3033
|
+
} = e, i = Pe(), c = s || i, u = za(hr, n), d = u.currentTabStopId === c, f = pr(n), { onFocusableItemAdd: h, onFocusableItemRemove: m } = u;
|
|
3034
3034
|
return l.useEffect(() => {
|
|
3035
3035
|
if (r)
|
|
3036
3036
|
return h(), () => m();
|
|
3037
3037
|
}, [r, h, m]), /* @__PURE__ */ g.jsx(
|
|
3038
|
-
|
|
3038
|
+
Dt.ItemSlot,
|
|
3039
3039
|
{
|
|
3040
3040
|
scope: n,
|
|
3041
3041
|
id: c,
|
|
@@ -3058,7 +3058,7 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3058
3058
|
return;
|
|
3059
3059
|
}
|
|
3060
3060
|
if (v.target !== v.currentTarget) return;
|
|
3061
|
-
const p =
|
|
3061
|
+
const p = Ua(v, u.orientation, u.dir);
|
|
3062
3062
|
if (p !== void 0) {
|
|
3063
3063
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
3064
3064
|
v.preventDefault();
|
|
@@ -3067,9 +3067,9 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3067
3067
|
else if (p === "prev" || p === "next") {
|
|
3068
3068
|
p === "prev" && y.reverse();
|
|
3069
3069
|
const x = y.indexOf(v.currentTarget);
|
|
3070
|
-
y = u.loop ?
|
|
3070
|
+
y = u.loop ? Ka(y, x + 1) : y.slice(x + 1);
|
|
3071
3071
|
}
|
|
3072
|
-
setTimeout(() =>
|
|
3072
|
+
setTimeout(() => br(y));
|
|
3073
3073
|
}
|
|
3074
3074
|
})
|
|
3075
3075
|
}
|
|
@@ -3078,8 +3078,8 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3078
3078
|
);
|
|
3079
3079
|
}
|
|
3080
3080
|
);
|
|
3081
|
-
|
|
3082
|
-
var
|
|
3081
|
+
vr.displayName = hr;
|
|
3082
|
+
var Ga = {
|
|
3083
3083
|
ArrowLeft: "prev",
|
|
3084
3084
|
ArrowUp: "prev",
|
|
3085
3085
|
ArrowRight: "next",
|
|
@@ -3089,23 +3089,23 @@ var za = {
|
|
|
3089
3089
|
PageDown: "last",
|
|
3090
3090
|
End: "last"
|
|
3091
3091
|
};
|
|
3092
|
-
function
|
|
3092
|
+
function Ha(e, t) {
|
|
3093
3093
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3096
|
-
const r =
|
|
3095
|
+
function Ua(e, t, n) {
|
|
3096
|
+
const r = Ha(e.key, n);
|
|
3097
3097
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
3098
|
-
return
|
|
3098
|
+
return Ga[r];
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3100
|
+
function br(e, t = !1) {
|
|
3101
3101
|
const n = document.activeElement;
|
|
3102
3102
|
for (const r of e)
|
|
3103
3103
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
3104
3104
|
}
|
|
3105
|
-
function
|
|
3105
|
+
function Ka(e, t) {
|
|
3106
3106
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3107
3107
|
}
|
|
3108
|
-
var
|
|
3108
|
+
var Ya = gr, Xa = vr, Yt = "Radio", [qa, yr] = ae(Yt), [Za, Qa] = qa(Yt), xr = l.forwardRef(
|
|
3109
3109
|
(e, t) => {
|
|
3110
3110
|
const {
|
|
3111
3111
|
__scopeRadio: n,
|
|
@@ -3117,15 +3117,15 @@ var Ka = mr, Ya = hr, Kt = "Radio", [Xa, br] = ae(Kt), [qa, Za] = Xa(Kt), yr = l
|
|
|
3117
3117
|
onCheck: c,
|
|
3118
3118
|
form: u,
|
|
3119
3119
|
...d
|
|
3120
|
-
} = e, [f, h] = l.useState(null), m =
|
|
3121
|
-
return /* @__PURE__ */ g.jsxs(
|
|
3120
|
+
} = e, [f, h] = l.useState(null), m = z(t, (b) => h(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
|
|
3121
|
+
return /* @__PURE__ */ g.jsxs(Za, { scope: n, checked: o, disabled: a, children: [
|
|
3122
3122
|
/* @__PURE__ */ g.jsx(
|
|
3123
3123
|
$.button,
|
|
3124
3124
|
{
|
|
3125
3125
|
type: "button",
|
|
3126
3126
|
role: "radio",
|
|
3127
3127
|
"aria-checked": o,
|
|
3128
|
-
"data-state":
|
|
3128
|
+
"data-state": Er(o),
|
|
3129
3129
|
"data-disabled": a ? "" : void 0,
|
|
3130
3130
|
disabled: a,
|
|
3131
3131
|
value: i,
|
|
@@ -3137,7 +3137,7 @@ var Ka = mr, Ya = hr, Kt = "Radio", [Xa, br] = ae(Kt), [qa, Za] = Xa(Kt), yr = l
|
|
|
3137
3137
|
}
|
|
3138
3138
|
),
|
|
3139
3139
|
p && /* @__PURE__ */ g.jsx(
|
|
3140
|
-
|
|
3140
|
+
Ja,
|
|
3141
3141
|
{
|
|
3142
3142
|
control: f,
|
|
3143
3143
|
bubbles: !v.current,
|
|
@@ -3153,14 +3153,14 @@ var Ka = mr, Ya = hr, Kt = "Radio", [Xa, br] = ae(Kt), [qa, Za] = Xa(Kt), yr = l
|
|
|
3153
3153
|
] });
|
|
3154
3154
|
}
|
|
3155
3155
|
);
|
|
3156
|
-
|
|
3157
|
-
var
|
|
3156
|
+
xr.displayName = Yt;
|
|
3157
|
+
var wr = "RadioIndicator", Cr = l.forwardRef(
|
|
3158
3158
|
(e, t) => {
|
|
3159
|
-
const { __scopeRadio: n, forceMount: r, ...o } = e, s =
|
|
3159
|
+
const { __scopeRadio: n, forceMount: r, ...o } = e, s = Qa(wr, n);
|
|
3160
3160
|
return /* @__PURE__ */ g.jsx(ee, { present: r || s.checked, children: /* @__PURE__ */ g.jsx(
|
|
3161
3161
|
$.span,
|
|
3162
3162
|
{
|
|
3163
|
-
"data-state":
|
|
3163
|
+
"data-state": Er(s.checked),
|
|
3164
3164
|
"data-disabled": s.disabled ? "" : void 0,
|
|
3165
3165
|
...o,
|
|
3166
3166
|
ref: t
|
|
@@ -3168,9 +3168,9 @@ var xr = "RadioIndicator", wr = l.forwardRef(
|
|
|
3168
3168
|
) });
|
|
3169
3169
|
}
|
|
3170
3170
|
);
|
|
3171
|
-
|
|
3172
|
-
var
|
|
3173
|
-
const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = l.useRef(null), a =
|
|
3171
|
+
Cr.displayName = wr;
|
|
3172
|
+
var Ja = (e) => {
|
|
3173
|
+
const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = l.useRef(null), a = or(n), i = Ut(t);
|
|
3174
3174
|
return l.useEffect(() => {
|
|
3175
3175
|
const c = s.current, u = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
3176
3176
|
if (a !== n && f) {
|
|
@@ -3197,13 +3197,13 @@ var Qa = (e) => {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
);
|
|
3199
3199
|
};
|
|
3200
|
-
function
|
|
3200
|
+
function Er(e) {
|
|
3201
3201
|
return e ? "checked" : "unchecked";
|
|
3202
3202
|
}
|
|
3203
|
-
var
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
]),
|
|
3203
|
+
var ei = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup", [ti, zu] = ae(Xt, [
|
|
3204
|
+
mr,
|
|
3205
|
+
yr
|
|
3206
|
+
]), Rr = mr(), Pr = yr(), [ni, ri] = ti(Xt), Sr = l.forwardRef(
|
|
3207
3207
|
(e, t) => {
|
|
3208
3208
|
const {
|
|
3209
3209
|
__scopeRadioGroup: n,
|
|
@@ -3217,13 +3217,13 @@ var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup",
|
|
|
3217
3217
|
loop: d = !0,
|
|
3218
3218
|
onValueChange: f,
|
|
3219
3219
|
...h
|
|
3220
|
-
} = e, m =
|
|
3220
|
+
} = e, m = Rr(n), v = fr(u), [p, b] = je({
|
|
3221
3221
|
prop: s,
|
|
3222
3222
|
defaultProp: o,
|
|
3223
3223
|
onChange: f
|
|
3224
3224
|
});
|
|
3225
3225
|
return /* @__PURE__ */ g.jsx(
|
|
3226
|
-
|
|
3226
|
+
ni,
|
|
3227
3227
|
{
|
|
3228
3228
|
scope: n,
|
|
3229
3229
|
name: r,
|
|
@@ -3232,7 +3232,7 @@ var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup",
|
|
|
3232
3232
|
value: p,
|
|
3233
3233
|
onValueChange: b,
|
|
3234
3234
|
children: /* @__PURE__ */ g.jsx(
|
|
3235
|
-
|
|
3235
|
+
Ya,
|
|
3236
3236
|
{
|
|
3237
3237
|
asChild: !0,
|
|
3238
3238
|
...m,
|
|
@@ -3257,26 +3257,26 @@ var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup",
|
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
);
|
|
3260
|
-
|
|
3261
|
-
var
|
|
3260
|
+
Sr.displayName = Xt;
|
|
3261
|
+
var Ar = "RadioGroupItem", Nr = l.forwardRef(
|
|
3262
3262
|
(e, t) => {
|
|
3263
|
-
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s =
|
|
3263
|
+
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = ri(Ar, n), a = s.disabled || r, i = Rr(n), c = Pr(n), u = l.useRef(null), d = z(t, u), f = s.value === o.value, h = l.useRef(!1);
|
|
3264
3264
|
return l.useEffect(() => {
|
|
3265
3265
|
const m = (p) => {
|
|
3266
|
-
|
|
3266
|
+
ei.includes(p.key) && (h.current = !0);
|
|
3267
3267
|
}, v = () => h.current = !1;
|
|
3268
3268
|
return document.addEventListener("keydown", m), document.addEventListener("keyup", v), () => {
|
|
3269
3269
|
document.removeEventListener("keydown", m), document.removeEventListener("keyup", v);
|
|
3270
3270
|
};
|
|
3271
3271
|
}, []), /* @__PURE__ */ g.jsx(
|
|
3272
|
-
|
|
3272
|
+
Xa,
|
|
3273
3273
|
{
|
|
3274
3274
|
asChild: !0,
|
|
3275
3275
|
...i,
|
|
3276
3276
|
focusable: !a,
|
|
3277
3277
|
active: f,
|
|
3278
3278
|
children: /* @__PURE__ */ g.jsx(
|
|
3279
|
-
|
|
3279
|
+
xr,
|
|
3280
3280
|
{
|
|
3281
3281
|
disabled: a,
|
|
3282
3282
|
required: s.required,
|
|
@@ -3299,39 +3299,39 @@ var Sr = "RadioGroupItem", Ar = l.forwardRef(
|
|
|
3299
3299
|
);
|
|
3300
3300
|
}
|
|
3301
3301
|
);
|
|
3302
|
-
|
|
3303
|
-
var
|
|
3302
|
+
Nr.displayName = Ar;
|
|
3303
|
+
var oi = "RadioGroupIndicator", Or = l.forwardRef(
|
|
3304
3304
|
(e, t) => {
|
|
3305
|
-
const { __scopeRadioGroup: n, ...r } = e, o =
|
|
3306
|
-
return /* @__PURE__ */ g.jsx(
|
|
3305
|
+
const { __scopeRadioGroup: n, ...r } = e, o = Pr(n);
|
|
3306
|
+
return /* @__PURE__ */ g.jsx(Cr, { ...o, ...r, ref: t });
|
|
3307
3307
|
}
|
|
3308
3308
|
);
|
|
3309
|
-
|
|
3310
|
-
var
|
|
3311
|
-
const
|
|
3312
|
-
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3309
|
+
Or.displayName = oi;
|
|
3310
|
+
var Tr = Sr, kr = Nr, si = Or;
|
|
3311
|
+
const ai = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(Tr, { className: I("al-grid al-gap-2", e), ...t, ref: n }));
|
|
3312
|
+
ai.displayName = Tr.displayName;
|
|
3313
|
+
const Dr = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
3314
|
+
kr,
|
|
3315
3315
|
{
|
|
3316
3316
|
ref: n,
|
|
3317
|
-
className:
|
|
3317
|
+
className: I(
|
|
3318
3318
|
"al-aspect-square al-h-4 al-w-4 al-rounded-full al-border al-border-primary al-text-primary al-ring-offset-background focus:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50",
|
|
3319
3319
|
e
|
|
3320
3320
|
),
|
|
3321
3321
|
...t,
|
|
3322
|
-
children: /* @__PURE__ */ g.jsx(
|
|
3322
|
+
children: /* @__PURE__ */ g.jsx(si, { className: "al-flex al-items-center al-justify-center", children: /* @__PURE__ */ g.jsx(ys, { className: "al-h-2.5 al-w-2.5 al-fill-current al-text-current" }) })
|
|
3323
3323
|
}
|
|
3324
3324
|
));
|
|
3325
|
-
|
|
3326
|
-
const
|
|
3325
|
+
Dr.displayName = kr.displayName;
|
|
3326
|
+
const ii = l.forwardRef(
|
|
3327
3327
|
({ className: e, type: t, icon: n, iconPosition: r = "left", ...o }, s) => t === "checkbox" ? /* @__PURE__ */ g.jsx(
|
|
3328
|
-
|
|
3328
|
+
dr,
|
|
3329
3329
|
{
|
|
3330
3330
|
className: e,
|
|
3331
3331
|
...o
|
|
3332
3332
|
}
|
|
3333
3333
|
) : t === "radio" ? /* @__PURE__ */ g.jsx(
|
|
3334
|
-
|
|
3334
|
+
Dr,
|
|
3335
3335
|
{
|
|
3336
3336
|
className: e,
|
|
3337
3337
|
...o
|
|
@@ -3341,7 +3341,7 @@ const ai = l.forwardRef(
|
|
|
3341
3341
|
"input",
|
|
3342
3342
|
{
|
|
3343
3343
|
type: t,
|
|
3344
|
-
className:
|
|
3344
|
+
className: I(
|
|
3345
3345
|
"al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
|
|
3346
3346
|
r === "left" ? "al-pl-10 al-pr-3" : "al-pl-3 al-pr-10",
|
|
3347
3347
|
e
|
|
@@ -3353,7 +3353,7 @@ const ai = l.forwardRef(
|
|
|
3353
3353
|
/* @__PURE__ */ g.jsx(
|
|
3354
3354
|
"div",
|
|
3355
3355
|
{
|
|
3356
|
-
className:
|
|
3356
|
+
className: I(
|
|
3357
3357
|
"al-absolute al-top-0 al-flex al-h-10 al-items-center al-pointer-events-none",
|
|
3358
3358
|
r === "left" ? "al-left-3" : "al-right-3"
|
|
3359
3359
|
),
|
|
@@ -3364,7 +3364,7 @@ const ai = l.forwardRef(
|
|
|
3364
3364
|
"input",
|
|
3365
3365
|
{
|
|
3366
3366
|
type: t,
|
|
3367
|
-
className:
|
|
3367
|
+
className: I(
|
|
3368
3368
|
"al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
|
|
3369
3369
|
e
|
|
3370
3370
|
),
|
|
@@ -3373,8 +3373,8 @@ const ai = l.forwardRef(
|
|
|
3373
3373
|
}
|
|
3374
3374
|
)
|
|
3375
3375
|
);
|
|
3376
|
-
|
|
3377
|
-
function
|
|
3376
|
+
ii.displayName = "Input";
|
|
3377
|
+
function li(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3378
3378
|
const n = re(e);
|
|
3379
3379
|
l.useEffect(() => {
|
|
3380
3380
|
const r = (o) => {
|
|
@@ -3383,11 +3383,11 @@ function ii(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3383
3383
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3384
3384
|
}, [n, t]);
|
|
3385
3385
|
}
|
|
3386
|
-
var
|
|
3386
|
+
var ci = "DismissableLayer", jt = "dismissableLayer.update", ui = "dismissableLayer.pointerDownOutside", di = "dismissableLayer.focusOutside", On, jr = l.createContext({
|
|
3387
3387
|
layers: /* @__PURE__ */ new Set(),
|
|
3388
3388
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3389
3389
|
branches: /* @__PURE__ */ new Set()
|
|
3390
|
-
}),
|
|
3390
|
+
}), Ve = l.forwardRef(
|
|
3391
3391
|
(e, t) => {
|
|
3392
3392
|
const {
|
|
3393
3393
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -3397,25 +3397,25 @@ var li = "DismissableLayer", Dt = "dismissableLayer.update", ci = "dismissableLa
|
|
|
3397
3397
|
onInteractOutside: a,
|
|
3398
3398
|
onDismiss: i,
|
|
3399
3399
|
...c
|
|
3400
|
-
} = e, u = l.useContext(
|
|
3400
|
+
} = e, u = l.useContext(jr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = z(t, (R) => f(R)), p = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(b), x = d ? p.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = pi((R) => {
|
|
3401
3401
|
const S = R.target, M = [...u.branches].some((D) => D.contains(S));
|
|
3402
3402
|
!w || M || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
3403
|
-
}, h), P =
|
|
3403
|
+
}, h), P = mi((R) => {
|
|
3404
3404
|
const S = R.target;
|
|
3405
3405
|
[...u.branches].some((D) => D.contains(S)) || (s == null || s(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
3406
3406
|
}, h);
|
|
3407
|
-
return
|
|
3407
|
+
return li((R) => {
|
|
3408
3408
|
x === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
|
|
3409
3409
|
}, h), l.useEffect(() => {
|
|
3410
3410
|
if (d)
|
|
3411
|
-
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
3412
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents =
|
|
3411
|
+
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (On = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Tn(), () => {
|
|
3412
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = On);
|
|
3413
3413
|
};
|
|
3414
3414
|
}, [d, h, n, u]), l.useEffect(() => () => {
|
|
3415
|
-
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
3415
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Tn());
|
|
3416
3416
|
}, [d, u]), l.useEffect(() => {
|
|
3417
3417
|
const R = () => m({});
|
|
3418
|
-
return document.addEventListener(
|
|
3418
|
+
return document.addEventListener(jt, R), () => document.removeEventListener(jt, R);
|
|
3419
3419
|
}, []), /* @__PURE__ */ g.jsx(
|
|
3420
3420
|
$.div,
|
|
3421
3421
|
{
|
|
@@ -3435,9 +3435,9 @@ var li = "DismissableLayer", Dt = "dismissableLayer.update", ci = "dismissableLa
|
|
|
3435
3435
|
);
|
|
3436
3436
|
}
|
|
3437
3437
|
);
|
|
3438
|
-
|
|
3439
|
-
var
|
|
3440
|
-
const n = l.useContext(
|
|
3438
|
+
Ve.displayName = ci;
|
|
3439
|
+
var fi = "DismissableLayerBranch", Mr = l.forwardRef((e, t) => {
|
|
3440
|
+
const n = l.useContext(jr), r = l.useRef(null), o = z(t, r);
|
|
3441
3441
|
return l.useEffect(() => {
|
|
3442
3442
|
const s = r.current;
|
|
3443
3443
|
if (s)
|
|
@@ -3446,16 +3446,16 @@ var di = "DismissableLayerBranch", jr = l.forwardRef((e, t) => {
|
|
|
3446
3446
|
};
|
|
3447
3447
|
}, [n.branches]), /* @__PURE__ */ g.jsx($.div, { ...e, ref: o });
|
|
3448
3448
|
});
|
|
3449
|
-
|
|
3450
|
-
function
|
|
3449
|
+
Mr.displayName = fi;
|
|
3450
|
+
function pi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3451
3451
|
const n = re(e), r = l.useRef(!1), o = l.useRef(() => {
|
|
3452
3452
|
});
|
|
3453
3453
|
return l.useEffect(() => {
|
|
3454
3454
|
const s = (i) => {
|
|
3455
3455
|
if (i.target && !r.current) {
|
|
3456
3456
|
let c = function() {
|
|
3457
|
-
|
|
3458
|
-
|
|
3457
|
+
Ir(
|
|
3458
|
+
ui,
|
|
3459
3459
|
n,
|
|
3460
3460
|
u,
|
|
3461
3461
|
{ discrete: !0 }
|
|
@@ -3477,11 +3477,11 @@ function fi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3477
3477
|
onPointerDownCapture: () => r.current = !0
|
|
3478
3478
|
};
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function mi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3481
3481
|
const n = re(e), r = l.useRef(!1);
|
|
3482
3482
|
return l.useEffect(() => {
|
|
3483
3483
|
const o = (s) => {
|
|
3484
|
-
s.target && !r.current &&
|
|
3484
|
+
s.target && !r.current && Ir(di, n, { originalEvent: s }, {
|
|
3485
3485
|
discrete: !1
|
|
3486
3486
|
});
|
|
3487
3487
|
};
|
|
@@ -3491,22 +3491,22 @@ function pi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3491
3491
|
onBlurCapture: () => r.current = !1
|
|
3492
3492
|
};
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3495
|
-
const e = new CustomEvent(
|
|
3494
|
+
function Tn() {
|
|
3495
|
+
const e = new CustomEvent(jt);
|
|
3496
3496
|
document.dispatchEvent(e);
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function Ir(e, t, n, { discrete: r }) {
|
|
3499
3499
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3500
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
3500
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? Ra(o, s) : o.dispatchEvent(s);
|
|
3501
3501
|
}
|
|
3502
|
-
var
|
|
3502
|
+
var Bu = Ve, Gu = Mr, yt = "focusScope.autoFocusOnMount", xt = "focusScope.autoFocusOnUnmount", kn = { bubbles: !1, cancelable: !0 }, gi = "FocusScope", qt = l.forwardRef((e, t) => {
|
|
3503
3503
|
const {
|
|
3504
3504
|
loop: n = !1,
|
|
3505
3505
|
trapped: r = !1,
|
|
3506
3506
|
onMountAutoFocus: o,
|
|
3507
3507
|
onUnmountAutoFocus: s,
|
|
3508
3508
|
...a
|
|
3509
|
-
} = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), h =
|
|
3509
|
+
} = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), h = z(t, (p) => c(p)), m = l.useRef({
|
|
3510
3510
|
paused: !1,
|
|
3511
3511
|
pause() {
|
|
3512
3512
|
this.paused = !0;
|
|
@@ -3538,16 +3538,16 @@ var zu = We, Gu = jr, bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoF
|
|
|
3538
3538
|
}
|
|
3539
3539
|
}, [r, i, m.paused]), l.useEffect(() => {
|
|
3540
3540
|
if (i) {
|
|
3541
|
-
|
|
3541
|
+
jn.add(m);
|
|
3542
3542
|
const p = document.activeElement;
|
|
3543
3543
|
if (!i.contains(p)) {
|
|
3544
|
-
const y = new CustomEvent(
|
|
3545
|
-
i.addEventListener(
|
|
3544
|
+
const y = new CustomEvent(yt, kn);
|
|
3545
|
+
i.addEventListener(yt, u), i.dispatchEvent(y), y.defaultPrevented || (hi(wi(_r(i)), { select: !0 }), document.activeElement === p && ce(i));
|
|
3546
3546
|
}
|
|
3547
3547
|
return () => {
|
|
3548
|
-
i.removeEventListener(
|
|
3549
|
-
const y = new CustomEvent(
|
|
3550
|
-
i.addEventListener(
|
|
3548
|
+
i.removeEventListener(yt, u), setTimeout(() => {
|
|
3549
|
+
const y = new CustomEvent(xt, kn);
|
|
3550
|
+
i.addEventListener(xt, d), i.dispatchEvent(y), y.defaultPrevented || ce(p ?? document.body, { select: !0 }), i.removeEventListener(xt, d), jn.remove(m);
|
|
3551
3551
|
}, 0);
|
|
3552
3552
|
};
|
|
3553
3553
|
}
|
|
@@ -3557,7 +3557,7 @@ var zu = We, Gu = jr, bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoF
|
|
|
3557
3557
|
if (!n && !r || m.paused) return;
|
|
3558
3558
|
const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
|
|
3559
3559
|
if (b && y) {
|
|
3560
|
-
const x = p.currentTarget, [C, w] =
|
|
3560
|
+
const x = p.currentTarget, [C, w] = vi(x);
|
|
3561
3561
|
C && w ? !p.shiftKey && y === w ? (p.preventDefault(), n && ce(C, { select: !0 })) : p.shiftKey && y === C && (p.preventDefault(), n && ce(w, { select: !0 })) : y === x && p.preventDefault();
|
|
3562
3562
|
}
|
|
3563
3563
|
},
|
|
@@ -3565,17 +3565,17 @@ var zu = We, Gu = jr, bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoF
|
|
|
3565
3565
|
);
|
|
3566
3566
|
return /* @__PURE__ */ g.jsx($.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
|
|
3567
3567
|
});
|
|
3568
|
-
|
|
3569
|
-
function
|
|
3568
|
+
qt.displayName = gi;
|
|
3569
|
+
function hi(e, { select: t = !1 } = {}) {
|
|
3570
3570
|
const n = document.activeElement;
|
|
3571
3571
|
for (const r of e)
|
|
3572
3572
|
if (ce(r, { select: t }), document.activeElement !== n) return;
|
|
3573
3573
|
}
|
|
3574
|
-
function
|
|
3575
|
-
const t =
|
|
3574
|
+
function vi(e) {
|
|
3575
|
+
const t = _r(e), n = Dn(t, e), r = Dn(t.reverse(), e);
|
|
3576
3576
|
return [n, r];
|
|
3577
3577
|
}
|
|
3578
|
-
function
|
|
3578
|
+
function _r(e) {
|
|
3579
3579
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
3580
3580
|
acceptNode: (r) => {
|
|
3581
3581
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -3585,11 +3585,11 @@ function Ir(e) {
|
|
|
3585
3585
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
3586
3586
|
return t;
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function Dn(e, t) {
|
|
3589
3589
|
for (const n of e)
|
|
3590
|
-
if (!
|
|
3590
|
+
if (!bi(n, { upTo: t })) return n;
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3592
|
+
function bi(e, { upTo: t }) {
|
|
3593
3593
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3594
3594
|
for (; e; ) {
|
|
3595
3595
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3598,54 +3598,54 @@ function vi(e, { upTo: t }) {
|
|
|
3598
3598
|
}
|
|
3599
3599
|
return !1;
|
|
3600
3600
|
}
|
|
3601
|
-
function
|
|
3601
|
+
function yi(e) {
|
|
3602
3602
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3603
3603
|
}
|
|
3604
3604
|
function ce(e, { select: t = !1 } = {}) {
|
|
3605
3605
|
if (e && e.focus) {
|
|
3606
3606
|
const n = document.activeElement;
|
|
3607
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3607
|
+
e.focus({ preventScroll: !0 }), e !== n && yi(e) && t && e.select();
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
3610
|
-
var
|
|
3611
|
-
function
|
|
3610
|
+
var jn = xi();
|
|
3611
|
+
function xi() {
|
|
3612
3612
|
let e = [];
|
|
3613
3613
|
return {
|
|
3614
3614
|
add(t) {
|
|
3615
3615
|
const n = e[0];
|
|
3616
|
-
t !== n && (n == null || n.pause()), e =
|
|
3616
|
+
t !== n && (n == null || n.pause()), e = Mn(e, t), e.unshift(t);
|
|
3617
3617
|
},
|
|
3618
3618
|
remove(t) {
|
|
3619
3619
|
var n;
|
|
3620
|
-
e =
|
|
3620
|
+
e = Mn(e, t), (n = e[0]) == null || n.resume();
|
|
3621
3621
|
}
|
|
3622
3622
|
};
|
|
3623
3623
|
}
|
|
3624
|
-
function
|
|
3624
|
+
function Mn(e, t) {
|
|
3625
3625
|
const n = [...e], r = n.indexOf(t);
|
|
3626
3626
|
return r !== -1 && n.splice(r, 1), n;
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function wi(e) {
|
|
3629
3629
|
return e.filter((t) => t.tagName !== "A");
|
|
3630
3630
|
}
|
|
3631
|
-
var
|
|
3631
|
+
var Ci = "Portal", it = l.forwardRef((e, t) => {
|
|
3632
3632
|
var i;
|
|
3633
3633
|
const { container: n, ...r } = e, [o, s] = l.useState(!1);
|
|
3634
|
-
|
|
3634
|
+
be(() => s(!0), []);
|
|
3635
3635
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
3636
|
-
return a ?
|
|
3636
|
+
return a ? Rs.createPortal(/* @__PURE__ */ g.jsx($.div, { ...r, ref: t }), a) : null;
|
|
3637
3637
|
});
|
|
3638
|
-
|
|
3639
|
-
var
|
|
3640
|
-
function
|
|
3638
|
+
it.displayName = Ci;
|
|
3639
|
+
var wt = 0;
|
|
3640
|
+
function Lr() {
|
|
3641
3641
|
l.useEffect(() => {
|
|
3642
3642
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3643
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3644
|
-
|
|
3643
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? In()), document.body.insertAdjacentElement("beforeend", e[1] ?? In()), wt++, () => {
|
|
3644
|
+
wt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), wt--;
|
|
3645
3645
|
};
|
|
3646
3646
|
}, []);
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3648
|
+
function In() {
|
|
3649
3649
|
const e = document.createElement("span");
|
|
3650
3650
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
3651
3651
|
}
|
|
@@ -3658,7 +3658,7 @@ var Q = function() {
|
|
|
3658
3658
|
return t;
|
|
3659
3659
|
}, Q.apply(this, arguments);
|
|
3660
3660
|
};
|
|
3661
|
-
function
|
|
3661
|
+
function Fr(e, t) {
|
|
3662
3662
|
var n = {};
|
|
3663
3663
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3664
3664
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3666,17 +3666,17 @@ function Lr(e, t) {
|
|
|
3666
3666
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
3667
3667
|
return n;
|
|
3668
3668
|
}
|
|
3669
|
-
function
|
|
3669
|
+
function Ei(e, t, n) {
|
|
3670
3670
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
3671
3671
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
3672
3672
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
3673
3673
|
}
|
|
3674
|
-
var
|
|
3675
|
-
function
|
|
3674
|
+
var Qe = "right-scroll-bar-position", Je = "width-before-scroll-bar", Ri = "with-scroll-bars-hidden", Pi = "--removed-body-scroll-bar-size";
|
|
3675
|
+
function Ct(e, t) {
|
|
3676
3676
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3677
3677
|
}
|
|
3678
|
-
function
|
|
3679
|
-
var n =
|
|
3678
|
+
function Si(e, t) {
|
|
3679
|
+
var n = ws(function() {
|
|
3680
3680
|
return {
|
|
3681
3681
|
// value
|
|
3682
3682
|
value: e,
|
|
@@ -3696,31 +3696,31 @@ function Pi(e, t) {
|
|
|
3696
3696
|
})[0];
|
|
3697
3697
|
return n.callback = t, n.facade;
|
|
3698
3698
|
}
|
|
3699
|
-
var
|
|
3700
|
-
function
|
|
3701
|
-
var n =
|
|
3699
|
+
var Ai = typeof window < "u" ? l.useLayoutEffect : l.useEffect, _n = /* @__PURE__ */ new WeakMap();
|
|
3700
|
+
function Ni(e, t) {
|
|
3701
|
+
var n = Si(null, function(r) {
|
|
3702
3702
|
return e.forEach(function(o) {
|
|
3703
|
-
return
|
|
3703
|
+
return Ct(o, r);
|
|
3704
3704
|
});
|
|
3705
3705
|
});
|
|
3706
|
-
return
|
|
3707
|
-
var r =
|
|
3706
|
+
return Ai(function() {
|
|
3707
|
+
var r = _n.get(n);
|
|
3708
3708
|
if (r) {
|
|
3709
3709
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
3710
3710
|
o.forEach(function(i) {
|
|
3711
|
-
s.has(i) ||
|
|
3711
|
+
s.has(i) || Ct(i, null);
|
|
3712
3712
|
}), s.forEach(function(i) {
|
|
3713
|
-
o.has(i) ||
|
|
3713
|
+
o.has(i) || Ct(i, a);
|
|
3714
3714
|
});
|
|
3715
3715
|
}
|
|
3716
|
-
|
|
3716
|
+
_n.set(n, e);
|
|
3717
3717
|
}, [e]), n;
|
|
3718
3718
|
}
|
|
3719
|
-
function
|
|
3719
|
+
function Oi(e) {
|
|
3720
3720
|
return e;
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3723
|
-
t === void 0 && (t =
|
|
3722
|
+
function Ti(e, t) {
|
|
3723
|
+
t === void 0 && (t = Oi);
|
|
3724
3724
|
var n = [], r = !1, o = {
|
|
3725
3725
|
read: function() {
|
|
3726
3726
|
if (r)
|
|
@@ -3774,13 +3774,13 @@ function Oi(e, t) {
|
|
|
3774
3774
|
};
|
|
3775
3775
|
return o;
|
|
3776
3776
|
}
|
|
3777
|
-
function
|
|
3777
|
+
function ki(e) {
|
|
3778
3778
|
e === void 0 && (e = {});
|
|
3779
|
-
var t =
|
|
3779
|
+
var t = Ti(null);
|
|
3780
3780
|
return t.options = Q({ async: !0, ssr: !1 }, e), t;
|
|
3781
3781
|
}
|
|
3782
|
-
var
|
|
3783
|
-
var t = e.sideCar, n =
|
|
3782
|
+
var $r = function(e) {
|
|
3783
|
+
var t = e.sideCar, n = Fr(e, ["sideCar"]);
|
|
3784
3784
|
if (!t)
|
|
3785
3785
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3786
3786
|
var r = t.read();
|
|
@@ -3788,64 +3788,64 @@ var Fr = function(e) {
|
|
|
3788
3788
|
throw new Error("Sidecar medium not found");
|
|
3789
3789
|
return l.createElement(r, Q({}, n));
|
|
3790
3790
|
};
|
|
3791
|
-
|
|
3792
|
-
function
|
|
3793
|
-
return e.useMedium(t),
|
|
3791
|
+
$r.isSideCarExport = !0;
|
|
3792
|
+
function Di(e, t) {
|
|
3793
|
+
return e.useMedium(t), $r;
|
|
3794
3794
|
}
|
|
3795
|
-
var
|
|
3796
|
-
},
|
|
3795
|
+
var Wr = ki(), Et = function() {
|
|
3796
|
+
}, lt = l.forwardRef(function(e, t) {
|
|
3797
3797
|
var n = l.useRef(null), r = l.useState({
|
|
3798
|
-
onScrollCapture:
|
|
3799
|
-
onWheelCapture:
|
|
3800
|
-
onTouchMoveCapture:
|
|
3801
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C =
|
|
3798
|
+
onScrollCapture: Et,
|
|
3799
|
+
onWheelCapture: Et,
|
|
3800
|
+
onTouchMoveCapture: Et
|
|
3801
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = Fr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, E = Ni([n, t]), P = Q(Q({}, C), o);
|
|
3802
3802
|
return l.createElement(
|
|
3803
3803
|
l.Fragment,
|
|
3804
3804
|
null,
|
|
3805
|
-
d && l.createElement(w, { sideCar:
|
|
3805
|
+
d && l.createElement(w, { sideCar: Wr, removeScrollBar: u, shards: f, noIsolation: m, inert: v, setCallbacks: s, allowPinchZoom: !!p, lockRef: n, gapMode: x }),
|
|
3806
3806
|
a ? l.cloneElement(l.Children.only(i), Q(Q({}, P), { ref: E })) : l.createElement(y, Q({}, P, { className: c, ref: E }), i)
|
|
3807
3807
|
);
|
|
3808
3808
|
});
|
|
3809
|
-
|
|
3809
|
+
lt.defaultProps = {
|
|
3810
3810
|
enabled: !0,
|
|
3811
3811
|
removeScrollBar: !0,
|
|
3812
3812
|
inert: !1
|
|
3813
3813
|
};
|
|
3814
|
-
|
|
3815
|
-
fullWidth:
|
|
3816
|
-
zeroRight:
|
|
3814
|
+
lt.classNames = {
|
|
3815
|
+
fullWidth: Je,
|
|
3816
|
+
zeroRight: Qe
|
|
3817
3817
|
};
|
|
3818
|
-
var
|
|
3818
|
+
var ji = function() {
|
|
3819
3819
|
if (typeof __webpack_nonce__ < "u")
|
|
3820
3820
|
return __webpack_nonce__;
|
|
3821
3821
|
};
|
|
3822
|
-
function
|
|
3822
|
+
function Mi() {
|
|
3823
3823
|
if (!document)
|
|
3824
3824
|
return null;
|
|
3825
3825
|
var e = document.createElement("style");
|
|
3826
3826
|
e.type = "text/css";
|
|
3827
|
-
var t =
|
|
3827
|
+
var t = ji();
|
|
3828
3828
|
return t && e.setAttribute("nonce", t), e;
|
|
3829
3829
|
}
|
|
3830
|
-
function
|
|
3830
|
+
function Ii(e, t) {
|
|
3831
3831
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3832
3832
|
}
|
|
3833
|
-
function
|
|
3833
|
+
function _i(e) {
|
|
3834
3834
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
3835
3835
|
t.appendChild(e);
|
|
3836
3836
|
}
|
|
3837
|
-
var
|
|
3837
|
+
var Li = function() {
|
|
3838
3838
|
var e = 0, t = null;
|
|
3839
3839
|
return {
|
|
3840
3840
|
add: function(n) {
|
|
3841
|
-
e == 0 && (t =
|
|
3841
|
+
e == 0 && (t = Mi()) && (Ii(t, n), _i(t)), e++;
|
|
3842
3842
|
},
|
|
3843
3843
|
remove: function() {
|
|
3844
3844
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3845
3845
|
}
|
|
3846
3846
|
};
|
|
3847
|
-
},
|
|
3848
|
-
var e =
|
|
3847
|
+
}, Fi = function() {
|
|
3848
|
+
var e = Li();
|
|
3849
3849
|
return function(t, n) {
|
|
3850
3850
|
l.useEffect(function() {
|
|
3851
3851
|
return e.add(t), function() {
|
|
@@ -3853,40 +3853,40 @@ var _i = function() {
|
|
|
3853
3853
|
};
|
|
3854
3854
|
}, [t && n]);
|
|
3855
3855
|
};
|
|
3856
|
-
},
|
|
3857
|
-
var e =
|
|
3856
|
+
}, Vr = function() {
|
|
3857
|
+
var e = Fi(), t = function(n) {
|
|
3858
3858
|
var r = n.styles, o = n.dynamic;
|
|
3859
3859
|
return e(r, o), null;
|
|
3860
3860
|
};
|
|
3861
3861
|
return t;
|
|
3862
|
-
},
|
|
3862
|
+
}, $i = {
|
|
3863
3863
|
left: 0,
|
|
3864
3864
|
top: 0,
|
|
3865
3865
|
right: 0,
|
|
3866
3866
|
gap: 0
|
|
3867
|
-
},
|
|
3867
|
+
}, Rt = function(e) {
|
|
3868
3868
|
return parseInt(e || "", 10) || 0;
|
|
3869
|
-
}, $i = function(e) {
|
|
3870
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3871
|
-
return [Et(n), Et(r), Et(o)];
|
|
3872
3869
|
}, Wi = function(e) {
|
|
3870
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3871
|
+
return [Rt(n), Rt(r), Rt(o)];
|
|
3872
|
+
}, Vi = function(e) {
|
|
3873
3873
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3874
|
-
return
|
|
3875
|
-
var t =
|
|
3874
|
+
return $i;
|
|
3875
|
+
var t = Wi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
3876
3876
|
return {
|
|
3877
3877
|
left: t[0],
|
|
3878
3878
|
top: t[1],
|
|
3879
3879
|
right: t[2],
|
|
3880
3880
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3881
3881
|
};
|
|
3882
|
-
},
|
|
3882
|
+
}, zi = Vr(), Se = "data-scroll-locked", Bi = function(e, t, n, r) {
|
|
3883
3883
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
3884
3884
|
return n === void 0 && (n = "margin"), `
|
|
3885
|
-
.`.concat(
|
|
3885
|
+
.`.concat(Ri, ` {
|
|
3886
3886
|
overflow: hidden `).concat(r, `;
|
|
3887
3887
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
3888
3888
|
}
|
|
3889
|
-
body[`).concat(
|
|
3889
|
+
body[`).concat(Se, `] {
|
|
3890
3890
|
overflow: hidden `).concat(r, `;
|
|
3891
3891
|
overscroll-behavior: contain;
|
|
3892
3892
|
`).concat([
|
|
@@ -3903,91 +3903,91 @@ var _i = function() {
|
|
|
3903
3903
|
].filter(Boolean).join(""), `
|
|
3904
3904
|
}
|
|
3905
3905
|
|
|
3906
|
-
.`).concat(
|
|
3906
|
+
.`).concat(Qe, ` {
|
|
3907
3907
|
right: `).concat(i, "px ").concat(r, `;
|
|
3908
3908
|
}
|
|
3909
3909
|
|
|
3910
|
-
.`).concat(
|
|
3910
|
+
.`).concat(Je, ` {
|
|
3911
3911
|
margin-right: `).concat(i, "px ").concat(r, `;
|
|
3912
3912
|
}
|
|
3913
3913
|
|
|
3914
|
-
.`).concat(
|
|
3914
|
+
.`).concat(Qe, " .").concat(Qe, ` {
|
|
3915
3915
|
right: 0 `).concat(r, `;
|
|
3916
3916
|
}
|
|
3917
3917
|
|
|
3918
|
-
.`).concat(
|
|
3918
|
+
.`).concat(Je, " .").concat(Je, ` {
|
|
3919
3919
|
margin-right: 0 `).concat(r, `;
|
|
3920
3920
|
}
|
|
3921
3921
|
|
|
3922
|
-
body[`).concat(
|
|
3923
|
-
`).concat(
|
|
3922
|
+
body[`).concat(Se, `] {
|
|
3923
|
+
`).concat(Pi, ": ").concat(i, `px;
|
|
3924
3924
|
}
|
|
3925
3925
|
`);
|
|
3926
|
-
},
|
|
3927
|
-
var e = parseInt(document.body.getAttribute(
|
|
3926
|
+
}, Ln = function() {
|
|
3927
|
+
var e = parseInt(document.body.getAttribute(Se) || "0", 10);
|
|
3928
3928
|
return isFinite(e) ? e : 0;
|
|
3929
|
-
},
|
|
3929
|
+
}, Gi = function() {
|
|
3930
3930
|
l.useEffect(function() {
|
|
3931
|
-
return document.body.setAttribute(
|
|
3932
|
-
var e =
|
|
3933
|
-
e <= 0 ? document.body.removeAttribute(
|
|
3931
|
+
return document.body.setAttribute(Se, (Ln() + 1).toString()), function() {
|
|
3932
|
+
var e = Ln() - 1;
|
|
3933
|
+
e <= 0 ? document.body.removeAttribute(Se) : document.body.setAttribute(Se, e.toString());
|
|
3934
3934
|
};
|
|
3935
3935
|
}, []);
|
|
3936
|
-
},
|
|
3936
|
+
}, Hi = function(e) {
|
|
3937
3937
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3938
|
-
|
|
3938
|
+
Gi();
|
|
3939
3939
|
var s = l.useMemo(function() {
|
|
3940
|
-
return
|
|
3940
|
+
return Vi(o);
|
|
3941
3941
|
}, [o]);
|
|
3942
|
-
return l.createElement(
|
|
3943
|
-
},
|
|
3942
|
+
return l.createElement(zi, { styles: Bi(s, !t, o, n ? "" : "!important") });
|
|
3943
|
+
}, Mt = !1;
|
|
3944
3944
|
if (typeof window < "u")
|
|
3945
3945
|
try {
|
|
3946
|
-
var
|
|
3946
|
+
var Ke = Object.defineProperty({}, "passive", {
|
|
3947
3947
|
get: function() {
|
|
3948
|
-
return
|
|
3948
|
+
return Mt = !0, !0;
|
|
3949
3949
|
}
|
|
3950
3950
|
});
|
|
3951
|
-
window.addEventListener("test",
|
|
3951
|
+
window.addEventListener("test", Ke, Ke), window.removeEventListener("test", Ke, Ke);
|
|
3952
3952
|
} catch {
|
|
3953
|
-
|
|
3953
|
+
Mt = !1;
|
|
3954
3954
|
}
|
|
3955
|
-
var
|
|
3955
|
+
var we = Mt ? { passive: !1 } : !1, Ui = function(e) {
|
|
3956
3956
|
return e.tagName === "TEXTAREA";
|
|
3957
|
-
},
|
|
3957
|
+
}, zr = function(e, t) {
|
|
3958
3958
|
if (!(e instanceof Element))
|
|
3959
3959
|
return !1;
|
|
3960
3960
|
var n = window.getComputedStyle(e);
|
|
3961
3961
|
return (
|
|
3962
3962
|
// not-not-scrollable
|
|
3963
3963
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3964
|
-
!(n.overflowY === n.overflowX && !
|
|
3964
|
+
!(n.overflowY === n.overflowX && !Ui(e) && n[t] === "visible")
|
|
3965
3965
|
);
|
|
3966
|
-
}, Ui = function(e) {
|
|
3967
|
-
return Vr(e, "overflowY");
|
|
3968
3966
|
}, Ki = function(e) {
|
|
3969
|
-
return
|
|
3970
|
-
},
|
|
3967
|
+
return zr(e, "overflowY");
|
|
3968
|
+
}, Yi = function(e) {
|
|
3969
|
+
return zr(e, "overflowX");
|
|
3970
|
+
}, Fn = function(e, t) {
|
|
3971
3971
|
var n = t.ownerDocument, r = t;
|
|
3972
3972
|
do {
|
|
3973
3973
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3974
3974
|
var o = Br(e, r);
|
|
3975
3975
|
if (o) {
|
|
3976
|
-
var s =
|
|
3976
|
+
var s = Gr(e, r), a = s[1], i = s[2];
|
|
3977
3977
|
if (a > i)
|
|
3978
3978
|
return !0;
|
|
3979
3979
|
}
|
|
3980
3980
|
r = r.parentNode;
|
|
3981
3981
|
} while (r && r !== n.body);
|
|
3982
3982
|
return !1;
|
|
3983
|
-
},
|
|
3983
|
+
}, Xi = function(e) {
|
|
3984
3984
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
3985
3985
|
return [
|
|
3986
3986
|
t,
|
|
3987
3987
|
n,
|
|
3988
3988
|
r
|
|
3989
3989
|
];
|
|
3990
|
-
},
|
|
3990
|
+
}, qi = function(e) {
|
|
3991
3991
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
3992
3992
|
return [
|
|
3993
3993
|
t,
|
|
@@ -3995,15 +3995,15 @@ var xe = jt ? { passive: !1 } : !1, Hi = function(e) {
|
|
|
3995
3995
|
r
|
|
3996
3996
|
];
|
|
3997
3997
|
}, Br = function(e, t) {
|
|
3998
|
-
return e === "v" ?
|
|
3999
|
-
},
|
|
4000
|
-
return e === "v" ?
|
|
4001
|
-
},
|
|
3998
|
+
return e === "v" ? Ki(t) : Yi(t);
|
|
3999
|
+
}, Gr = function(e, t) {
|
|
4000
|
+
return e === "v" ? Xi(t) : qi(t);
|
|
4001
|
+
}, Zi = function(e, t) {
|
|
4002
4002
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4003
|
-
},
|
|
4004
|
-
var s =
|
|
4003
|
+
}, Qi = function(e, t, n, r, o) {
|
|
4004
|
+
var s = Zi(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, f = 0, h = 0;
|
|
4005
4005
|
do {
|
|
4006
|
-
var m =
|
|
4006
|
+
var m = Gr(e, i), v = m[0], p = m[1], b = m[2], y = p - b - s * v;
|
|
4007
4007
|
(v || y) && Br(e, i) && (f += y, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
4008
4008
|
} while (
|
|
4009
4009
|
// portaled content
|
|
@@ -4011,28 +4011,28 @@ var xe = jt ? { passive: !1 } : !1, Hi = function(e) {
|
|
|
4011
4011
|
c && (t.contains(i) || t === i)
|
|
4012
4012
|
);
|
|
4013
4013
|
return (d && (Math.abs(f) < 1 || !o) || !d && (Math.abs(h) < 1 || !o)) && (u = !0), u;
|
|
4014
|
-
},
|
|
4014
|
+
}, Ye = function(e) {
|
|
4015
4015
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4016
|
-
}, Fn = function(e) {
|
|
4017
|
-
return [e.deltaX, e.deltaY];
|
|
4018
4016
|
}, $n = function(e) {
|
|
4017
|
+
return [e.deltaX, e.deltaY];
|
|
4018
|
+
}, Wn = function(e) {
|
|
4019
4019
|
return e && "current" in e ? e.current : e;
|
|
4020
|
-
},
|
|
4020
|
+
}, Ji = function(e, t) {
|
|
4021
4021
|
return e[0] === t[0] && e[1] === t[1];
|
|
4022
|
-
},
|
|
4022
|
+
}, el = function(e) {
|
|
4023
4023
|
return `
|
|
4024
4024
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4025
4025
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4026
4026
|
`);
|
|
4027
|
-
},
|
|
4028
|
-
function
|
|
4029
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(
|
|
4027
|
+
}, tl = 0, Ce = [];
|
|
4028
|
+
function nl(e) {
|
|
4029
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(tl++)[0], s = l.useState(Vr)[0], a = l.useRef(e);
|
|
4030
4030
|
l.useEffect(function() {
|
|
4031
4031
|
a.current = e;
|
|
4032
4032
|
}, [e]), l.useEffect(function() {
|
|
4033
4033
|
if (e.inert) {
|
|
4034
4034
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4035
|
-
var p =
|
|
4035
|
+
var p = Ei([e.lockRef.current], (e.shards || []).map(Wn), !0).filter(Boolean);
|
|
4036
4036
|
return p.forEach(function(b) {
|
|
4037
4037
|
return b.classList.add("allow-interactivity-".concat(o));
|
|
4038
4038
|
}), function() {
|
|
@@ -4045,98 +4045,98 @@ function tl(e) {
|
|
|
4045
4045
|
var i = l.useCallback(function(p, b) {
|
|
4046
4046
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4047
4047
|
return !a.current.allowPinchZoom;
|
|
4048
|
-
var y =
|
|
4048
|
+
var y = Ye(p), x = n.current, C = "deltaX" in p ? p.deltaX : x[0] - y[0], w = "deltaY" in p ? p.deltaY : x[1] - y[1], E, P = p.target, R = Math.abs(C) > Math.abs(w) ? "h" : "v";
|
|
4049
4049
|
if ("touches" in p && R === "h" && P.type === "range")
|
|
4050
4050
|
return !1;
|
|
4051
|
-
var S =
|
|
4051
|
+
var S = Fn(R, P);
|
|
4052
4052
|
if (!S)
|
|
4053
4053
|
return !0;
|
|
4054
|
-
if (S ? E = R : (E = R === "v" ? "h" : "v", S =
|
|
4054
|
+
if (S ? E = R : (E = R === "v" ? "h" : "v", S = Fn(R, P)), !S)
|
|
4055
4055
|
return !1;
|
|
4056
4056
|
if (!r.current && "changedTouches" in p && (C || w) && (r.current = E), !E)
|
|
4057
4057
|
return !0;
|
|
4058
4058
|
var M = r.current || E;
|
|
4059
|
-
return
|
|
4059
|
+
return Qi(M, b, p, M === "h" ? C : w, !0);
|
|
4060
4060
|
}, []), c = l.useCallback(function(p) {
|
|
4061
4061
|
var b = p;
|
|
4062
|
-
if (!(!
|
|
4063
|
-
var y = "deltaY" in b ?
|
|
4064
|
-
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) &&
|
|
4062
|
+
if (!(!Ce.length || Ce[Ce.length - 1] !== s)) {
|
|
4063
|
+
var y = "deltaY" in b ? $n(b) : Ye(b), x = t.current.filter(function(E) {
|
|
4064
|
+
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && Ji(E.delta, y);
|
|
4065
4065
|
})[0];
|
|
4066
4066
|
if (x && x.should) {
|
|
4067
4067
|
b.cancelable && b.preventDefault();
|
|
4068
4068
|
return;
|
|
4069
4069
|
}
|
|
4070
4070
|
if (!x) {
|
|
4071
|
-
var C = (a.current.shards || []).map(
|
|
4071
|
+
var C = (a.current.shards || []).map(Wn).filter(Boolean).filter(function(E) {
|
|
4072
4072
|
return E.contains(b.target);
|
|
4073
4073
|
}), w = C.length > 0 ? i(b, C[0]) : !a.current.noIsolation;
|
|
4074
4074
|
w && b.cancelable && b.preventDefault();
|
|
4075
4075
|
}
|
|
4076
4076
|
}
|
|
4077
4077
|
}, []), u = l.useCallback(function(p, b, y, x) {
|
|
4078
|
-
var C = { name: p, delta: b, target: y, should: x, shadowParent:
|
|
4078
|
+
var C = { name: p, delta: b, target: y, should: x, shadowParent: rl(y) };
|
|
4079
4079
|
t.current.push(C), setTimeout(function() {
|
|
4080
4080
|
t.current = t.current.filter(function(w) {
|
|
4081
4081
|
return w !== C;
|
|
4082
4082
|
});
|
|
4083
4083
|
}, 1);
|
|
4084
4084
|
}, []), d = l.useCallback(function(p) {
|
|
4085
|
-
n.current =
|
|
4085
|
+
n.current = Ye(p), r.current = void 0;
|
|
4086
4086
|
}, []), f = l.useCallback(function(p) {
|
|
4087
|
-
u(p.type,
|
|
4087
|
+
u(p.type, $n(p), p.target, i(p, e.lockRef.current));
|
|
4088
4088
|
}, []), h = l.useCallback(function(p) {
|
|
4089
|
-
u(p.type,
|
|
4089
|
+
u(p.type, Ye(p), p.target, i(p, e.lockRef.current));
|
|
4090
4090
|
}, []);
|
|
4091
4091
|
l.useEffect(function() {
|
|
4092
|
-
return
|
|
4092
|
+
return Ce.push(s), e.setCallbacks({
|
|
4093
4093
|
onScrollCapture: f,
|
|
4094
4094
|
onWheelCapture: f,
|
|
4095
4095
|
onTouchMoveCapture: h
|
|
4096
|
-
}), document.addEventListener("wheel", c,
|
|
4097
|
-
|
|
4096
|
+
}), document.addEventListener("wheel", c, we), document.addEventListener("touchmove", c, we), document.addEventListener("touchstart", d, we), function() {
|
|
4097
|
+
Ce = Ce.filter(function(p) {
|
|
4098
4098
|
return p !== s;
|
|
4099
|
-
}), document.removeEventListener("wheel", c,
|
|
4099
|
+
}), document.removeEventListener("wheel", c, we), document.removeEventListener("touchmove", c, we), document.removeEventListener("touchstart", d, we);
|
|
4100
4100
|
};
|
|
4101
4101
|
}, []);
|
|
4102
4102
|
var m = e.removeScrollBar, v = e.inert;
|
|
4103
4103
|
return l.createElement(
|
|
4104
4104
|
l.Fragment,
|
|
4105
4105
|
null,
|
|
4106
|
-
v ? l.createElement(s, { styles:
|
|
4107
|
-
m ? l.createElement(
|
|
4106
|
+
v ? l.createElement(s, { styles: el(o) }) : null,
|
|
4107
|
+
m ? l.createElement(Hi, { gapMode: e.gapMode }) : null
|
|
4108
4108
|
);
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function rl(e) {
|
|
4111
4111
|
for (var t = null; e !== null; )
|
|
4112
4112
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4113
4113
|
return t;
|
|
4114
4114
|
}
|
|
4115
|
-
const
|
|
4116
|
-
var
|
|
4117
|
-
return l.createElement(
|
|
4115
|
+
const ol = Di(Wr, nl);
|
|
4116
|
+
var Zt = l.forwardRef(function(e, t) {
|
|
4117
|
+
return l.createElement(lt, Q({}, e, { ref: t, sideCar: ol }));
|
|
4118
4118
|
});
|
|
4119
|
-
|
|
4120
|
-
var
|
|
4119
|
+
Zt.classNames = lt.classNames;
|
|
4120
|
+
var sl = function(e) {
|
|
4121
4121
|
if (typeof document > "u")
|
|
4122
4122
|
return null;
|
|
4123
4123
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4124
4124
|
return t.ownerDocument.body;
|
|
4125
|
-
},
|
|
4126
|
-
return e && (e.host ||
|
|
4127
|
-
},
|
|
4125
|
+
}, Ee = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = {}, Pt = 0, Hr = function(e) {
|
|
4126
|
+
return e && (e.host || Hr(e.parentNode));
|
|
4127
|
+
}, al = function(e, t) {
|
|
4128
4128
|
return t.map(function(n) {
|
|
4129
4129
|
if (e.contains(n))
|
|
4130
4130
|
return n;
|
|
4131
|
-
var r =
|
|
4131
|
+
var r = Hr(n);
|
|
4132
4132
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
4133
4133
|
}).filter(function(n) {
|
|
4134
4134
|
return !!n;
|
|
4135
4135
|
});
|
|
4136
|
-
},
|
|
4137
|
-
var o =
|
|
4138
|
-
|
|
4139
|
-
var s =
|
|
4136
|
+
}, il = function(e, t, n, r) {
|
|
4137
|
+
var o = al(t, Array.isArray(e) ? e : [e]);
|
|
4138
|
+
qe[n] || (qe[n] = /* @__PURE__ */ new WeakMap());
|
|
4139
|
+
var s = qe[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(f) {
|
|
4140
4140
|
!f || i.has(f) || (i.add(f), u(f.parentNode));
|
|
4141
4141
|
};
|
|
4142
4142
|
o.forEach(u);
|
|
@@ -4146,52 +4146,52 @@ var ol = function(e) {
|
|
|
4146
4146
|
d(h);
|
|
4147
4147
|
else
|
|
4148
4148
|
try {
|
|
4149
|
-
var m = h.getAttribute(r), v = m !== null && m !== "false", p = (
|
|
4150
|
-
|
|
4149
|
+
var m = h.getAttribute(r), v = m !== null && m !== "false", p = (Ee.get(h) || 0) + 1, b = (s.get(h) || 0) + 1;
|
|
4150
|
+
Ee.set(h, p), s.set(h, b), a.push(h), p === 1 && v && Xe.set(h, !0), b === 1 && h.setAttribute(n, "true"), v || h.setAttribute(r, "true");
|
|
4151
4151
|
} catch (y) {
|
|
4152
4152
|
console.error("aria-hidden: cannot operate on ", h, y);
|
|
4153
4153
|
}
|
|
4154
4154
|
});
|
|
4155
4155
|
};
|
|
4156
|
-
return d(t), i.clear(),
|
|
4156
|
+
return d(t), i.clear(), Pt++, function() {
|
|
4157
4157
|
a.forEach(function(f) {
|
|
4158
|
-
var h =
|
|
4159
|
-
|
|
4160
|
-
}),
|
|
4158
|
+
var h = Ee.get(f) - 1, m = s.get(f) - 1;
|
|
4159
|
+
Ee.set(f, h), s.set(f, m), h || (Xe.has(f) || f.removeAttribute(r), Xe.delete(f)), m || f.removeAttribute(n);
|
|
4160
|
+
}), Pt--, Pt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = {});
|
|
4161
4161
|
};
|
|
4162
|
-
},
|
|
4162
|
+
}, Ur = function(e, t, n) {
|
|
4163
4163
|
n === void 0 && (n = "data-aria-hidden");
|
|
4164
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
4165
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
4164
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = sl(e);
|
|
4165
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), il(r, o, n, "aria-hidden")) : function() {
|
|
4166
4166
|
return null;
|
|
4167
4167
|
};
|
|
4168
|
-
},
|
|
4169
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
4168
|
+
}, Kr = l.forwardRef((e, t) => {
|
|
4169
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(cl);
|
|
4170
4170
|
if (s) {
|
|
4171
4171
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
4172
|
-
return /* @__PURE__ */ g.jsx(
|
|
4172
|
+
return /* @__PURE__ */ g.jsx(It, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
4173
4173
|
}
|
|
4174
|
-
return /* @__PURE__ */ g.jsx(
|
|
4174
|
+
return /* @__PURE__ */ g.jsx(It, { ...r, ref: t, children: n });
|
|
4175
4175
|
});
|
|
4176
|
-
|
|
4177
|
-
var
|
|
4176
|
+
Kr.displayName = "Slot";
|
|
4177
|
+
var It = l.forwardRef((e, t) => {
|
|
4178
4178
|
const { children: n, ...r } = e;
|
|
4179
4179
|
if (l.isValidElement(n)) {
|
|
4180
|
-
const o =
|
|
4180
|
+
const o = dl(n);
|
|
4181
4181
|
return l.cloneElement(n, {
|
|
4182
|
-
...
|
|
4182
|
+
...ul(r, n.props),
|
|
4183
4183
|
// @ts-ignore
|
|
4184
|
-
ref: t ?
|
|
4184
|
+
ref: t ? De(t, o) : o
|
|
4185
4185
|
});
|
|
4186
4186
|
}
|
|
4187
4187
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
4188
4188
|
});
|
|
4189
|
-
|
|
4190
|
-
var
|
|
4191
|
-
function
|
|
4192
|
-
return l.isValidElement(e) && e.type ===
|
|
4189
|
+
It.displayName = "SlotClone";
|
|
4190
|
+
var ll = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
4191
|
+
function cl(e) {
|
|
4192
|
+
return l.isValidElement(e) && e.type === ll;
|
|
4193
4193
|
}
|
|
4194
|
-
function
|
|
4194
|
+
function ul(e, t) {
|
|
4195
4195
|
const n = { ...t };
|
|
4196
4196
|
for (const r in t) {
|
|
4197
4197
|
const o = e[r], s = t[r];
|
|
@@ -4201,12 +4201,12 @@ function cl(e, t) {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
return { ...e, ...n };
|
|
4203
4203
|
}
|
|
4204
|
-
function
|
|
4204
|
+
function dl(e) {
|
|
4205
4205
|
var r, o;
|
|
4206
4206
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4207
4207
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4208
4208
|
}
|
|
4209
|
-
var
|
|
4209
|
+
var Qt = "Dialog", [Yr, Hu] = ae(Qt), [fl, Z] = Yr(Qt), Xr = (e) => {
|
|
4210
4210
|
const {
|
|
4211
4211
|
__scopeDialog: t,
|
|
4212
4212
|
children: n,
|
|
@@ -4214,20 +4214,20 @@ var Zt = "Dialog", [Kr, Hu] = ae(Zt), [dl, Z] = Kr(Zt), Yr = (e) => {
|
|
|
4214
4214
|
defaultOpen: o,
|
|
4215
4215
|
onOpenChange: s,
|
|
4216
4216
|
modal: a = !0
|
|
4217
|
-
} = e, i = l.useRef(null), c = l.useRef(null), [u = !1, d] =
|
|
4217
|
+
} = e, i = l.useRef(null), c = l.useRef(null), [u = !1, d] = je({
|
|
4218
4218
|
prop: r,
|
|
4219
4219
|
defaultProp: o,
|
|
4220
4220
|
onChange: s
|
|
4221
4221
|
});
|
|
4222
4222
|
return /* @__PURE__ */ g.jsx(
|
|
4223
|
-
|
|
4223
|
+
fl,
|
|
4224
4224
|
{
|
|
4225
4225
|
scope: t,
|
|
4226
4226
|
triggerRef: i,
|
|
4227
4227
|
contentRef: c,
|
|
4228
|
-
contentId:
|
|
4229
|
-
titleId:
|
|
4230
|
-
descriptionId:
|
|
4228
|
+
contentId: Pe(),
|
|
4229
|
+
titleId: Pe(),
|
|
4230
|
+
descriptionId: Pe(),
|
|
4231
4231
|
open: u,
|
|
4232
4232
|
onOpenChange: d,
|
|
4233
4233
|
onOpenToggle: l.useCallback(() => d((f) => !f), [d]),
|
|
@@ -4236,10 +4236,10 @@ var Zt = "Dialog", [Kr, Hu] = ae(Zt), [dl, Z] = Kr(Zt), Yr = (e) => {
|
|
|
4236
4236
|
}
|
|
4237
4237
|
);
|
|
4238
4238
|
};
|
|
4239
|
-
|
|
4240
|
-
var
|
|
4239
|
+
Xr.displayName = Qt;
|
|
4240
|
+
var qr = "DialogTrigger", Zr = l.forwardRef(
|
|
4241
4241
|
(e, t) => {
|
|
4242
|
-
const { __scopeDialog: n, ...r } = e, o = Z(
|
|
4242
|
+
const { __scopeDialog: n, ...r } = e, o = Z(qr, n), s = z(t, o.triggerRef);
|
|
4243
4243
|
return /* @__PURE__ */ g.jsx(
|
|
4244
4244
|
$.button,
|
|
4245
4245
|
{
|
|
@@ -4247,7 +4247,7 @@ var Xr = "DialogTrigger", qr = l.forwardRef(
|
|
|
4247
4247
|
"aria-haspopup": "dialog",
|
|
4248
4248
|
"aria-expanded": o.open,
|
|
4249
4249
|
"aria-controls": o.contentId,
|
|
4250
|
-
"data-state":
|
|
4250
|
+
"data-state": tn(o.open),
|
|
4251
4251
|
...r,
|
|
4252
4252
|
ref: s,
|
|
4253
4253
|
onClick: k(e.onClick, o.onOpenToggle)
|
|
@@ -4255,31 +4255,31 @@ var Xr = "DialogTrigger", qr = l.forwardRef(
|
|
|
4255
4255
|
);
|
|
4256
4256
|
}
|
|
4257
4257
|
);
|
|
4258
|
-
|
|
4259
|
-
var
|
|
4258
|
+
Zr.displayName = qr;
|
|
4259
|
+
var Jt = "DialogPortal", [pl, Qr] = Yr(Jt, {
|
|
4260
4260
|
forceMount: void 0
|
|
4261
|
-
}),
|
|
4262
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Z(
|
|
4263
|
-
return /* @__PURE__ */ g.jsx(
|
|
4261
|
+
}), Jr = (e) => {
|
|
4262
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Z(Jt, t);
|
|
4263
|
+
return /* @__PURE__ */ g.jsx(pl, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(it, { asChild: !0, container: o, children: a }) })) });
|
|
4264
4264
|
};
|
|
4265
|
-
|
|
4266
|
-
var
|
|
4265
|
+
Jr.displayName = Jt;
|
|
4266
|
+
var tt = "DialogOverlay", eo = l.forwardRef(
|
|
4267
4267
|
(e, t) => {
|
|
4268
|
-
const n =
|
|
4269
|
-
return s.modal ? /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: /* @__PURE__ */ g.jsx(
|
|
4268
|
+
const n = Qr(tt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(tt, e.__scopeDialog);
|
|
4269
|
+
return s.modal ? /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: /* @__PURE__ */ g.jsx(ml, { ...o, ref: t }) }) : null;
|
|
4270
4270
|
}
|
|
4271
4271
|
);
|
|
4272
|
-
|
|
4273
|
-
var
|
|
4272
|
+
eo.displayName = tt;
|
|
4273
|
+
var ml = l.forwardRef(
|
|
4274
4274
|
(e, t) => {
|
|
4275
|
-
const { __scopeDialog: n, ...r } = e, o = Z(
|
|
4275
|
+
const { __scopeDialog: n, ...r } = e, o = Z(tt, n);
|
|
4276
4276
|
return (
|
|
4277
4277
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4278
4278
|
// ie. when `Overlay` and `Content` are siblings
|
|
4279
|
-
/* @__PURE__ */ g.jsx(
|
|
4279
|
+
/* @__PURE__ */ g.jsx(Zt, { as: Kr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ g.jsx(
|
|
4280
4280
|
$.div,
|
|
4281
4281
|
{
|
|
4282
|
-
"data-state":
|
|
4282
|
+
"data-state": tn(o.open),
|
|
4283
4283
|
...r,
|
|
4284
4284
|
ref: t,
|
|
4285
4285
|
style: { pointerEvents: "auto", ...r.style }
|
|
@@ -4287,21 +4287,21 @@ var pl = l.forwardRef(
|
|
|
4287
4287
|
) })
|
|
4288
4288
|
);
|
|
4289
4289
|
}
|
|
4290
|
-
),
|
|
4290
|
+
), ye = "DialogContent", to = l.forwardRef(
|
|
4291
4291
|
(e, t) => {
|
|
4292
|
-
const n =
|
|
4293
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(
|
|
4292
|
+
const n = Qr(ye, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(ye, e.__scopeDialog);
|
|
4293
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(gl, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(hl, { ...o, ref: t }) });
|
|
4294
4294
|
}
|
|
4295
4295
|
);
|
|
4296
|
-
|
|
4297
|
-
var
|
|
4296
|
+
to.displayName = ye;
|
|
4297
|
+
var gl = l.forwardRef(
|
|
4298
4298
|
(e, t) => {
|
|
4299
|
-
const n = Z(
|
|
4299
|
+
const n = Z(ye, e.__scopeDialog), r = l.useRef(null), o = z(t, n.contentRef, r);
|
|
4300
4300
|
return l.useEffect(() => {
|
|
4301
4301
|
const s = r.current;
|
|
4302
|
-
if (s) return
|
|
4302
|
+
if (s) return Ur(s);
|
|
4303
4303
|
}, []), /* @__PURE__ */ g.jsx(
|
|
4304
|
-
|
|
4304
|
+
no,
|
|
4305
4305
|
{
|
|
4306
4306
|
...e,
|
|
4307
4307
|
ref: o,
|
|
@@ -4322,11 +4322,11 @@ var ml = l.forwardRef(
|
|
|
4322
4322
|
}
|
|
4323
4323
|
);
|
|
4324
4324
|
}
|
|
4325
|
-
),
|
|
4325
|
+
), hl = l.forwardRef(
|
|
4326
4326
|
(e, t) => {
|
|
4327
|
-
const n = Z(
|
|
4327
|
+
const n = Z(ye, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
4328
4328
|
return /* @__PURE__ */ g.jsx(
|
|
4329
|
-
|
|
4329
|
+
no,
|
|
4330
4330
|
{
|
|
4331
4331
|
...e,
|
|
4332
4332
|
ref: t,
|
|
@@ -4345,12 +4345,12 @@ var ml = l.forwardRef(
|
|
|
4345
4345
|
}
|
|
4346
4346
|
);
|
|
4347
4347
|
}
|
|
4348
|
-
),
|
|
4348
|
+
), no = l.forwardRef(
|
|
4349
4349
|
(e, t) => {
|
|
4350
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(
|
|
4351
|
-
return
|
|
4350
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(ye, n), c = l.useRef(null), u = z(t, c);
|
|
4351
|
+
return Lr(), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
4352
4352
|
/* @__PURE__ */ g.jsx(
|
|
4353
|
-
|
|
4353
|
+
qt,
|
|
4354
4354
|
{
|
|
4355
4355
|
asChild: !0,
|
|
4356
4356
|
loop: !0,
|
|
@@ -4358,13 +4358,13 @@ var ml = l.forwardRef(
|
|
|
4358
4358
|
onMountAutoFocus: o,
|
|
4359
4359
|
onUnmountAutoFocus: s,
|
|
4360
4360
|
children: /* @__PURE__ */ g.jsx(
|
|
4361
|
-
|
|
4361
|
+
Ve,
|
|
4362
4362
|
{
|
|
4363
4363
|
role: "dialog",
|
|
4364
4364
|
id: i.contentId,
|
|
4365
4365
|
"aria-describedby": i.descriptionId,
|
|
4366
4366
|
"aria-labelledby": i.titleId,
|
|
4367
|
-
"data-state":
|
|
4367
|
+
"data-state": tn(i.open),
|
|
4368
4368
|
...a,
|
|
4369
4369
|
ref: u,
|
|
4370
4370
|
onDismiss: () => i.onOpenChange(!1)
|
|
@@ -4373,28 +4373,28 @@ var ml = l.forwardRef(
|
|
|
4373
4373
|
}
|
|
4374
4374
|
),
|
|
4375
4375
|
/* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
4376
|
-
/* @__PURE__ */ g.jsx(
|
|
4377
|
-
/* @__PURE__ */ g.jsx(
|
|
4376
|
+
/* @__PURE__ */ g.jsx(vl, { titleId: i.titleId }),
|
|
4377
|
+
/* @__PURE__ */ g.jsx(yl, { contentRef: c, descriptionId: i.descriptionId })
|
|
4378
4378
|
] })
|
|
4379
4379
|
] });
|
|
4380
4380
|
}
|
|
4381
|
-
),
|
|
4381
|
+
), en = "DialogTitle", ro = l.forwardRef(
|
|
4382
4382
|
(e, t) => {
|
|
4383
|
-
const { __scopeDialog: n, ...r } = e, o = Z(
|
|
4383
|
+
const { __scopeDialog: n, ...r } = e, o = Z(en, n);
|
|
4384
4384
|
return /* @__PURE__ */ g.jsx($.h2, { id: o.titleId, ...r, ref: t });
|
|
4385
4385
|
}
|
|
4386
4386
|
);
|
|
4387
|
-
|
|
4388
|
-
var
|
|
4387
|
+
ro.displayName = en;
|
|
4388
|
+
var oo = "DialogDescription", so = l.forwardRef(
|
|
4389
4389
|
(e, t) => {
|
|
4390
|
-
const { __scopeDialog: n, ...r } = e, o = Z(
|
|
4390
|
+
const { __scopeDialog: n, ...r } = e, o = Z(oo, n);
|
|
4391
4391
|
return /* @__PURE__ */ g.jsx($.p, { id: o.descriptionId, ...r, ref: t });
|
|
4392
4392
|
}
|
|
4393
4393
|
);
|
|
4394
|
-
|
|
4395
|
-
var
|
|
4394
|
+
so.displayName = oo;
|
|
4395
|
+
var ao = "DialogClose", io = l.forwardRef(
|
|
4396
4396
|
(e, t) => {
|
|
4397
|
-
const { __scopeDialog: n, ...r } = e, o = Z(
|
|
4397
|
+
const { __scopeDialog: n, ...r } = e, o = Z(ao, n);
|
|
4398
4398
|
return /* @__PURE__ */ g.jsx(
|
|
4399
4399
|
$.button,
|
|
4400
4400
|
{
|
|
@@ -4406,16 +4406,16 @@ var so = "DialogClose", ao = l.forwardRef(
|
|
|
4406
4406
|
);
|
|
4407
4407
|
}
|
|
4408
4408
|
);
|
|
4409
|
-
|
|
4410
|
-
function
|
|
4409
|
+
io.displayName = ao;
|
|
4410
|
+
function tn(e) {
|
|
4411
4411
|
return e ? "open" : "closed";
|
|
4412
4412
|
}
|
|
4413
|
-
var
|
|
4414
|
-
contentName:
|
|
4415
|
-
titleName:
|
|
4413
|
+
var lo = "DialogTitleWarning", [Uu, co] = pa(lo, {
|
|
4414
|
+
contentName: ye,
|
|
4415
|
+
titleName: en,
|
|
4416
4416
|
docsSlug: "dialog"
|
|
4417
|
-
}),
|
|
4418
|
-
const t = lo
|
|
4417
|
+
}), vl = ({ titleId: e }) => {
|
|
4418
|
+
const t = co(lo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4419
4419
|
|
|
4420
4420
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4421
4421
|
|
|
@@ -4423,14 +4423,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4423
4423
|
return l.useEffect(() => {
|
|
4424
4424
|
e && (document.getElementById(e) || console.error(n));
|
|
4425
4425
|
}, [n, e]), null;
|
|
4426
|
-
},
|
|
4427
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
4426
|
+
}, bl = "DialogDescriptionWarning", yl = ({ contentRef: e, descriptionId: t }) => {
|
|
4427
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${co(bl).contentName}}.`;
|
|
4428
4428
|
return l.useEffect(() => {
|
|
4429
4429
|
var s;
|
|
4430
4430
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
4431
4431
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
4432
4432
|
}, [r, e, t]), null;
|
|
4433
|
-
},
|
|
4433
|
+
}, xl = Xr, wl = Zr, Cl = Jr, uo = eo, fo = to, po = ro, mo = so, go = io, El = [
|
|
4434
4434
|
"a",
|
|
4435
4435
|
"button",
|
|
4436
4436
|
"div",
|
|
@@ -4448,14 +4448,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4448
4448
|
"span",
|
|
4449
4449
|
"svg",
|
|
4450
4450
|
"ul"
|
|
4451
|
-
],
|
|
4452
|
-
const n = /* @__PURE__ */
|
|
4451
|
+
], Rl = El.reduce((e, t) => {
|
|
4452
|
+
const n = /* @__PURE__ */ rr(`Primitive.${t}`), r = l.forwardRef((o, s) => {
|
|
4453
4453
|
const { asChild: a, ...i } = o, c = a ? n : t;
|
|
4454
4454
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g.jsx(c, { ...i, ref: s });
|
|
4455
4455
|
});
|
|
4456
4456
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
4457
|
-
}, {}),
|
|
4458
|
-
|
|
4457
|
+
}, {}), Pl = "Label", ho = l.forwardRef((e, t) => /* @__PURE__ */ g.jsx(
|
|
4458
|
+
Rl.label,
|
|
4459
4459
|
{
|
|
4460
4460
|
...e,
|
|
4461
4461
|
ref: t,
|
|
@@ -4465,18 +4465,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4465
4465
|
}
|
|
4466
4466
|
}
|
|
4467
4467
|
));
|
|
4468
|
-
|
|
4469
|
-
var
|
|
4470
|
-
const
|
|
4468
|
+
ho.displayName = Pl;
|
|
4469
|
+
var vo = ho;
|
|
4470
|
+
const Sl = Ht(
|
|
4471
4471
|
"al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
|
|
4472
|
-
),
|
|
4473
|
-
|
|
4474
|
-
const
|
|
4472
|
+
), Al = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(vo, { ref: n, className: I(Sl(), e), ...t }));
|
|
4473
|
+
Al.displayName = vo.displayName;
|
|
4474
|
+
const Nl = G(
|
|
4475
4475
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4476
4476
|
"div",
|
|
4477
4477
|
{
|
|
4478
4478
|
ref: n,
|
|
4479
|
-
className:
|
|
4479
|
+
className: I(
|
|
4480
4480
|
"al-rounded-lg al-border al-bg-card al-text-card-foreground al-shadow-sm",
|
|
4481
4481
|
e
|
|
4482
4482
|
),
|
|
@@ -4484,46 +4484,46 @@ const Al = G(
|
|
|
4484
4484
|
}
|
|
4485
4485
|
)
|
|
4486
4486
|
);
|
|
4487
|
-
|
|
4488
|
-
const
|
|
4487
|
+
Nl.displayName = "Card";
|
|
4488
|
+
const Ol = G(
|
|
4489
4489
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4490
4490
|
"div",
|
|
4491
4491
|
{
|
|
4492
4492
|
ref: n,
|
|
4493
|
-
className:
|
|
4493
|
+
className: I("al-flex al-flex-col al-space-y-1.5 al-p-6 al-pb-4", e),
|
|
4494
4494
|
...t
|
|
4495
4495
|
}
|
|
4496
4496
|
)
|
|
4497
4497
|
);
|
|
4498
|
-
|
|
4499
|
-
const
|
|
4498
|
+
Ol.displayName = "CardHeader";
|
|
4499
|
+
const Tl = G(
|
|
4500
4500
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4501
4501
|
"div",
|
|
4502
4502
|
{
|
|
4503
4503
|
ref: n,
|
|
4504
|
-
className:
|
|
4504
|
+
className: I("al-text-2xl al-font-semibold al-leading-none al-tracking-tight", e),
|
|
4505
4505
|
...t
|
|
4506
4506
|
}
|
|
4507
4507
|
)
|
|
4508
4508
|
);
|
|
4509
|
-
|
|
4510
|
-
const Tl = G(
|
|
4511
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: _("al-text-sm al-text-muted-foreground", e), ...t })
|
|
4512
|
-
);
|
|
4513
|
-
Tl.displayName = "CardDescription";
|
|
4509
|
+
Tl.displayName = "CardTitle";
|
|
4514
4510
|
const kl = G(
|
|
4515
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4511
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: I("al-text-sm al-text-muted-foreground", e), ...t })
|
|
4516
4512
|
);
|
|
4517
|
-
kl.displayName = "
|
|
4513
|
+
kl.displayName = "CardDescription";
|
|
4518
4514
|
const Dl = G(
|
|
4519
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4515
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: I("al-p-6 al-pt-0", e), ...t })
|
|
4520
4516
|
);
|
|
4521
|
-
Dl.displayName = "
|
|
4522
|
-
const jl =
|
|
4517
|
+
Dl.displayName = "CardContent";
|
|
4518
|
+
const jl = G(
|
|
4519
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: I("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
|
|
4520
|
+
);
|
|
4521
|
+
jl.displayName = "CardFooter";
|
|
4522
|
+
const Ml = l.forwardRef(
|
|
4523
4523
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4524
4524
|
"textarea",
|
|
4525
4525
|
{
|
|
4526
|
-
className:
|
|
4526
|
+
className: I(
|
|
4527
4527
|
"al-flex al-min-h-[80px] al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-base al-ring-offset-background placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
|
|
4528
4528
|
e
|
|
4529
4529
|
),
|
|
@@ -4532,21 +4532,21 @@ const jl = l.forwardRef(
|
|
|
4532
4532
|
}
|
|
4533
4533
|
)
|
|
4534
4534
|
);
|
|
4535
|
-
|
|
4536
|
-
const
|
|
4535
|
+
Ml.displayName = "Textarea";
|
|
4536
|
+
const Il = ["top", "right", "bottom", "left"], fe = Math.min, K = Math.max, nt = Math.round, Ze = Math.floor, pe = (e) => ({
|
|
4537
4537
|
x: e,
|
|
4538
4538
|
y: e
|
|
4539
|
-
}),
|
|
4539
|
+
}), _l = {
|
|
4540
4540
|
left: "right",
|
|
4541
4541
|
right: "left",
|
|
4542
4542
|
bottom: "top",
|
|
4543
4543
|
top: "bottom"
|
|
4544
|
-
},
|
|
4544
|
+
}, Ll = {
|
|
4545
4545
|
start: "end",
|
|
4546
4546
|
end: "start"
|
|
4547
4547
|
};
|
|
4548
|
-
function
|
|
4549
|
-
return K(e,
|
|
4548
|
+
function _t(e, t, n) {
|
|
4549
|
+
return K(e, fe(t, n));
|
|
4550
4550
|
}
|
|
4551
4551
|
function oe(e, t) {
|
|
4552
4552
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4554,35 +4554,35 @@ function oe(e, t) {
|
|
|
4554
4554
|
function se(e) {
|
|
4555
4555
|
return e.split("-")[0];
|
|
4556
4556
|
}
|
|
4557
|
-
function
|
|
4557
|
+
function Me(e) {
|
|
4558
4558
|
return e.split("-")[1];
|
|
4559
4559
|
}
|
|
4560
|
-
function
|
|
4560
|
+
function nn(e) {
|
|
4561
4561
|
return e === "x" ? "y" : "x";
|
|
4562
4562
|
}
|
|
4563
|
-
function
|
|
4563
|
+
function rn(e) {
|
|
4564
4564
|
return e === "y" ? "height" : "width";
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4566
|
+
function me(e) {
|
|
4567
4567
|
return ["top", "bottom"].includes(se(e)) ? "y" : "x";
|
|
4568
4568
|
}
|
|
4569
|
-
function
|
|
4570
|
-
return
|
|
4569
|
+
function on(e) {
|
|
4570
|
+
return nn(me(e));
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function Fl(e, t, n) {
|
|
4573
4573
|
n === void 0 && (n = !1);
|
|
4574
|
-
const r =
|
|
4574
|
+
const r = Me(e), o = on(e), s = rn(o);
|
|
4575
4575
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4576
|
-
return t.reference[s] > t.floating[s] && (a =
|
|
4576
|
+
return t.reference[s] > t.floating[s] && (a = rt(a)), [a, rt(a)];
|
|
4577
4577
|
}
|
|
4578
|
-
function
|
|
4579
|
-
const t =
|
|
4580
|
-
return [
|
|
4578
|
+
function $l(e) {
|
|
4579
|
+
const t = rt(e);
|
|
4580
|
+
return [Lt(e), t, Lt(t)];
|
|
4581
4581
|
}
|
|
4582
|
-
function
|
|
4583
|
-
return e.replace(/start|end/g, (t) =>
|
|
4582
|
+
function Lt(e) {
|
|
4583
|
+
return e.replace(/start|end/g, (t) => Ll[t]);
|
|
4584
4584
|
}
|
|
4585
|
-
function
|
|
4585
|
+
function Wl(e, t, n) {
|
|
4586
4586
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
4587
4587
|
switch (e) {
|
|
4588
4588
|
case "top":
|
|
@@ -4595,15 +4595,15 @@ function $l(e, t, n) {
|
|
|
4595
4595
|
return [];
|
|
4596
4596
|
}
|
|
4597
4597
|
}
|
|
4598
|
-
function
|
|
4599
|
-
const o =
|
|
4600
|
-
let s =
|
|
4601
|
-
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(
|
|
4598
|
+
function Vl(e, t, n, r) {
|
|
4599
|
+
const o = Me(e);
|
|
4600
|
+
let s = Wl(se(e), n === "start", r);
|
|
4601
|
+
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Lt)))), s;
|
|
4602
4602
|
}
|
|
4603
|
-
function
|
|
4604
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4603
|
+
function rt(e) {
|
|
4604
|
+
return e.replace(/left|right|bottom|top/g, (t) => _l[t]);
|
|
4605
4605
|
}
|
|
4606
|
-
function
|
|
4606
|
+
function zl(e) {
|
|
4607
4607
|
return {
|
|
4608
4608
|
top: 0,
|
|
4609
4609
|
right: 0,
|
|
@@ -4612,15 +4612,15 @@ function Vl(e) {
|
|
|
4612
4612
|
...e
|
|
4613
4613
|
};
|
|
4614
4614
|
}
|
|
4615
|
-
function
|
|
4616
|
-
return typeof e != "number" ?
|
|
4615
|
+
function bo(e) {
|
|
4616
|
+
return typeof e != "number" ? zl(e) : {
|
|
4617
4617
|
top: e,
|
|
4618
4618
|
right: e,
|
|
4619
4619
|
bottom: e,
|
|
4620
4620
|
left: e
|
|
4621
4621
|
};
|
|
4622
4622
|
}
|
|
4623
|
-
function
|
|
4623
|
+
function ot(e) {
|
|
4624
4624
|
const {
|
|
4625
4625
|
x: t,
|
|
4626
4626
|
y: n,
|
|
@@ -4638,12 +4638,12 @@ function rt(e) {
|
|
|
4638
4638
|
y: n
|
|
4639
4639
|
};
|
|
4640
4640
|
}
|
|
4641
|
-
function
|
|
4641
|
+
function Vn(e, t, n) {
|
|
4642
4642
|
let {
|
|
4643
4643
|
reference: r,
|
|
4644
4644
|
floating: o
|
|
4645
4645
|
} = e;
|
|
4646
|
-
const s =
|
|
4646
|
+
const s = me(t), a = on(t), i = rn(a), c = se(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
|
|
4647
4647
|
let m;
|
|
4648
4648
|
switch (c) {
|
|
4649
4649
|
case "top":
|
|
@@ -4676,7 +4676,7 @@ function Wn(e, t, n) {
|
|
|
4676
4676
|
y: r.y
|
|
4677
4677
|
};
|
|
4678
4678
|
}
|
|
4679
|
-
switch (
|
|
4679
|
+
switch (Me(t)) {
|
|
4680
4680
|
case "start":
|
|
4681
4681
|
m[a] -= h * (n && u ? -1 : 1);
|
|
4682
4682
|
break;
|
|
@@ -4700,7 +4700,7 @@ const Bl = async (e, t, n) => {
|
|
|
4700
4700
|
}), {
|
|
4701
4701
|
x: d,
|
|
4702
4702
|
y: f
|
|
4703
|
-
} =
|
|
4703
|
+
} = Vn(u, r, c), h = r, m = {}, v = 0;
|
|
4704
4704
|
for (let p = 0; p < i.length; p++) {
|
|
4705
4705
|
const {
|
|
4706
4706
|
name: b,
|
|
@@ -4737,7 +4737,7 @@ const Bl = async (e, t, n) => {
|
|
|
4737
4737
|
}) : E.rects), {
|
|
4738
4738
|
x: d,
|
|
4739
4739
|
y: f
|
|
4740
|
-
} =
|
|
4740
|
+
} = Vn(u, h, c)), p = -1);
|
|
4741
4741
|
}
|
|
4742
4742
|
return {
|
|
4743
4743
|
x: d,
|
|
@@ -4747,7 +4747,7 @@ const Bl = async (e, t, n) => {
|
|
|
4747
4747
|
middlewareData: m
|
|
4748
4748
|
};
|
|
4749
4749
|
};
|
|
4750
|
-
async function
|
|
4750
|
+
async function $e(e, t) {
|
|
4751
4751
|
var n;
|
|
4752
4752
|
t === void 0 && (t = {});
|
|
4753
4753
|
const {
|
|
@@ -4763,7 +4763,7 @@ async function Fe(e, t) {
|
|
|
4763
4763
|
elementContext: f = "floating",
|
|
4764
4764
|
altBoundary: h = !1,
|
|
4765
4765
|
padding: m = 0
|
|
4766
|
-
} = oe(t, e), v =
|
|
4766
|
+
} = oe(t, e), v = bo(m), b = i[h ? f === "floating" ? "reference" : "floating" : f], y = ot(await s.getClippingRect({
|
|
4767
4767
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(b))) == null || n ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
4768
4768
|
boundary: u,
|
|
4769
4769
|
rootBoundary: d,
|
|
@@ -4779,7 +4779,7 @@ async function Fe(e, t) {
|
|
|
4779
4779
|
} : {
|
|
4780
4780
|
x: 1,
|
|
4781
4781
|
y: 1
|
|
4782
|
-
}, E =
|
|
4782
|
+
}, E = ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4783
4783
|
elements: i,
|
|
4784
4784
|
rect: x,
|
|
4785
4785
|
offsetParent: C,
|
|
@@ -4792,7 +4792,7 @@ async function Fe(e, t) {
|
|
|
4792
4792
|
right: (E.right - y.right + v.right) / w.x
|
|
4793
4793
|
};
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4795
|
+
const Gl = (e) => ({
|
|
4796
4796
|
name: "arrow",
|
|
4797
4797
|
options: e,
|
|
4798
4798
|
async fn(t) {
|
|
@@ -4810,18 +4810,18 @@ const zl = (e) => ({
|
|
|
4810
4810
|
} = oe(e, t) || {};
|
|
4811
4811
|
if (u == null)
|
|
4812
4812
|
return {};
|
|
4813
|
-
const f =
|
|
4813
|
+
const f = bo(d), h = {
|
|
4814
4814
|
x: n,
|
|
4815
4815
|
y: r
|
|
4816
|
-
}, m =
|
|
4816
|
+
}, m = on(o), v = rn(m), p = await a.getDimensions(u), b = m === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[m] - h[m] - s.floating[v], E = h[m] - s.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
4817
4817
|
let R = P ? P[C] : 0;
|
|
4818
4818
|
(!R || !await (a.isElement == null ? void 0 : a.isElement(P))) && (R = i.floating[C] || s.floating[v]);
|
|
4819
|
-
const S = w / 2 - E / 2, M = R / 2 - p[v] / 2 - 1, D =
|
|
4819
|
+
const S = w / 2 - E / 2, M = R / 2 - p[v] / 2 - 1, D = fe(f[y], M), F = fe(f[x], M), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S, B = _t(A, j, L), T = !c.arrow && Me(o) != null && j !== B && s.reference[v] / 2 - (j < A ? D : F) - p[v] / 2 < 0, V = T ? j < A ? j - A : j - L : 0;
|
|
4820
4820
|
return {
|
|
4821
4821
|
[m]: h[m] + V,
|
|
4822
4822
|
data: {
|
|
4823
|
-
[m]:
|
|
4824
|
-
centerOffset: j -
|
|
4823
|
+
[m]: B,
|
|
4824
|
+
centerOffset: j - B - V,
|
|
4825
4825
|
...T && {
|
|
4826
4826
|
alignmentOffset: V
|
|
4827
4827
|
}
|
|
@@ -4829,7 +4829,7 @@ const zl = (e) => ({
|
|
|
4829
4829
|
reset: T
|
|
4830
4830
|
};
|
|
4831
4831
|
}
|
|
4832
|
-
}),
|
|
4832
|
+
}), Hl = function(e) {
|
|
4833
4833
|
return e === void 0 && (e = {}), {
|
|
4834
4834
|
name: "flip",
|
|
4835
4835
|
options: e,
|
|
@@ -4853,12 +4853,12 @@ const zl = (e) => ({
|
|
|
4853
4853
|
} = oe(e, t);
|
|
4854
4854
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4855
4855
|
return {};
|
|
4856
|
-
const y = se(o), x =
|
|
4857
|
-
!h && P && E.push(...
|
|
4858
|
-
const R = [i, ...E], S = await
|
|
4856
|
+
const y = se(o), x = me(i), C = se(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = h || (C || !p ? [rt(i)] : $l(i)), P = v !== "none";
|
|
4857
|
+
!h && P && E.push(...Vl(i, p, v, w));
|
|
4858
|
+
const R = [i, ...E], S = await $e(t, b), M = [];
|
|
4859
4859
|
let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4860
4860
|
if (d && M.push(S[y]), f) {
|
|
4861
|
-
const j =
|
|
4861
|
+
const j = Fl(o, a, w);
|
|
4862
4862
|
M.push(S[j[0]], S[j[1]]);
|
|
4863
4863
|
}
|
|
4864
4864
|
if (D = [...D, {
|
|
@@ -4866,15 +4866,15 @@ const zl = (e) => ({
|
|
|
4866
4866
|
overflows: M
|
|
4867
4867
|
}], !M.every((j) => j <= 0)) {
|
|
4868
4868
|
var F, A;
|
|
4869
|
-
const j = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1,
|
|
4870
|
-
if (
|
|
4869
|
+
const j = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1, B = R[j];
|
|
4870
|
+
if (B)
|
|
4871
4871
|
return {
|
|
4872
4872
|
data: {
|
|
4873
4873
|
index: j,
|
|
4874
4874
|
overflows: D
|
|
4875
4875
|
},
|
|
4876
4876
|
reset: {
|
|
4877
|
-
placement:
|
|
4877
|
+
placement: B
|
|
4878
4878
|
}
|
|
4879
4879
|
};
|
|
4880
4880
|
let T = (A = D.filter((V) => V.overflows[0] <= 0).sort((V, O) => V.overflows[1] - O.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
@@ -4884,7 +4884,7 @@ const zl = (e) => ({
|
|
|
4884
4884
|
var L;
|
|
4885
4885
|
const V = (L = D.filter((O) => {
|
|
4886
4886
|
if (P) {
|
|
4887
|
-
const W =
|
|
4887
|
+
const W = me(O.placement);
|
|
4888
4888
|
return W === x || // Create a bias to the `y` side axis due to horizontal
|
|
4889
4889
|
// reading directions favoring greater width.
|
|
4890
4890
|
W === "y";
|
|
@@ -4909,7 +4909,7 @@ const zl = (e) => ({
|
|
|
4909
4909
|
}
|
|
4910
4910
|
};
|
|
4911
4911
|
};
|
|
4912
|
-
function
|
|
4912
|
+
function zn(e, t) {
|
|
4913
4913
|
return {
|
|
4914
4914
|
top: e.top - t.height,
|
|
4915
4915
|
right: e.right - t.width,
|
|
@@ -4918,9 +4918,9 @@ function Vn(e, t) {
|
|
|
4918
4918
|
};
|
|
4919
4919
|
}
|
|
4920
4920
|
function Bn(e) {
|
|
4921
|
-
return
|
|
4921
|
+
return Il.some((t) => e[t] >= 0);
|
|
4922
4922
|
}
|
|
4923
|
-
const
|
|
4923
|
+
const Ul = function(e) {
|
|
4924
4924
|
return e === void 0 && (e = {}), {
|
|
4925
4925
|
name: "hide",
|
|
4926
4926
|
options: e,
|
|
@@ -4933,10 +4933,10 @@ const Hl = function(e) {
|
|
|
4933
4933
|
} = oe(e, t);
|
|
4934
4934
|
switch (r) {
|
|
4935
4935
|
case "referenceHidden": {
|
|
4936
|
-
const s = await
|
|
4936
|
+
const s = await $e(t, {
|
|
4937
4937
|
...o,
|
|
4938
4938
|
elementContext: "reference"
|
|
4939
|
-
}), a =
|
|
4939
|
+
}), a = zn(s, n.reference);
|
|
4940
4940
|
return {
|
|
4941
4941
|
data: {
|
|
4942
4942
|
referenceHiddenOffsets: a,
|
|
@@ -4945,10 +4945,10 @@ const Hl = function(e) {
|
|
|
4945
4945
|
};
|
|
4946
4946
|
}
|
|
4947
4947
|
case "escaped": {
|
|
4948
|
-
const s = await
|
|
4948
|
+
const s = await $e(t, {
|
|
4949
4949
|
...o,
|
|
4950
4950
|
altBoundary: !0
|
|
4951
|
-
}), a =
|
|
4951
|
+
}), a = zn(s, n.floating);
|
|
4952
4952
|
return {
|
|
4953
4953
|
data: {
|
|
4954
4954
|
escapedOffsets: a,
|
|
@@ -4962,12 +4962,12 @@ const Hl = function(e) {
|
|
|
4962
4962
|
}
|
|
4963
4963
|
};
|
|
4964
4964
|
};
|
|
4965
|
-
async function
|
|
4965
|
+
async function Kl(e, t) {
|
|
4966
4966
|
const {
|
|
4967
4967
|
placement: n,
|
|
4968
4968
|
platform: r,
|
|
4969
4969
|
elements: o
|
|
4970
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = se(n), i =
|
|
4970
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = se(n), i = Me(n), c = me(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = oe(t, e);
|
|
4971
4971
|
let {
|
|
4972
4972
|
mainAxis: h,
|
|
4973
4973
|
crossAxis: m,
|
|
@@ -4989,7 +4989,7 @@ async function Ul(e, t) {
|
|
|
4989
4989
|
y: m * d
|
|
4990
4990
|
};
|
|
4991
4991
|
}
|
|
4992
|
-
const
|
|
4992
|
+
const Yl = function(e) {
|
|
4993
4993
|
return e === void 0 && (e = 0), {
|
|
4994
4994
|
name: "offset",
|
|
4995
4995
|
options: e,
|
|
@@ -5000,7 +5000,7 @@ const Kl = function(e) {
|
|
|
5000
5000
|
y: s,
|
|
5001
5001
|
placement: a,
|
|
5002
5002
|
middlewareData: i
|
|
5003
|
-
} = t, c = await
|
|
5003
|
+
} = t, c = await Kl(t, e);
|
|
5004
5004
|
return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
|
|
5005
5005
|
x: o + c.x,
|
|
5006
5006
|
y: s + c.y,
|
|
@@ -5011,7 +5011,7 @@ const Kl = function(e) {
|
|
|
5011
5011
|
};
|
|
5012
5012
|
}
|
|
5013
5013
|
};
|
|
5014
|
-
},
|
|
5014
|
+
}, Xl = function(e) {
|
|
5015
5015
|
return e === void 0 && (e = {}), {
|
|
5016
5016
|
name: "shift",
|
|
5017
5017
|
options: e,
|
|
@@ -5039,15 +5039,15 @@ const Kl = function(e) {
|
|
|
5039
5039
|
} = oe(e, t), u = {
|
|
5040
5040
|
x: n,
|
|
5041
5041
|
y: r
|
|
5042
|
-
}, d = await
|
|
5042
|
+
}, d = await $e(t, c), f = me(se(o)), h = nn(f);
|
|
5043
5043
|
let m = u[h], v = u[f];
|
|
5044
5044
|
if (s) {
|
|
5045
5045
|
const b = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", x = m + d[b], C = m - d[y];
|
|
5046
|
-
m =
|
|
5046
|
+
m = _t(x, m, C);
|
|
5047
5047
|
}
|
|
5048
5048
|
if (a) {
|
|
5049
5049
|
const b = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = v + d[b], C = v - d[y];
|
|
5050
|
-
v =
|
|
5050
|
+
v = _t(x, v, C);
|
|
5051
5051
|
}
|
|
5052
5052
|
const p = i.fn({
|
|
5053
5053
|
...t,
|
|
@@ -5067,7 +5067,7 @@ const Kl = function(e) {
|
|
|
5067
5067
|
};
|
|
5068
5068
|
}
|
|
5069
5069
|
};
|
|
5070
|
-
},
|
|
5070
|
+
}, ql = function(e) {
|
|
5071
5071
|
return e === void 0 && (e = {}), {
|
|
5072
5072
|
options: e,
|
|
5073
5073
|
fn(t) {
|
|
@@ -5084,7 +5084,7 @@ const Kl = function(e) {
|
|
|
5084
5084
|
} = oe(e, t), d = {
|
|
5085
5085
|
x: n,
|
|
5086
5086
|
y: r
|
|
5087
|
-
}, f =
|
|
5087
|
+
}, f = me(o), h = nn(f);
|
|
5088
5088
|
let m = d[h], v = d[f];
|
|
5089
5089
|
const p = oe(i, t), b = typeof p == "number" ? {
|
|
5090
5090
|
mainAxis: p,
|
|
@@ -5109,7 +5109,7 @@ const Kl = function(e) {
|
|
|
5109
5109
|
};
|
|
5110
5110
|
}
|
|
5111
5111
|
};
|
|
5112
|
-
},
|
|
5112
|
+
}, Zl = function(e) {
|
|
5113
5113
|
return e === void 0 && (e = {}), {
|
|
5114
5114
|
name: "size",
|
|
5115
5115
|
options: e,
|
|
@@ -5124,13 +5124,13 @@ const Kl = function(e) {
|
|
|
5124
5124
|
apply: c = () => {
|
|
5125
5125
|
},
|
|
5126
5126
|
...u
|
|
5127
|
-
} = oe(e, t), d = await
|
|
5127
|
+
} = oe(e, t), d = await $e(t, u), f = se(o), h = Me(o), m = me(o) === "y", {
|
|
5128
5128
|
width: v,
|
|
5129
5129
|
height: p
|
|
5130
5130
|
} = s.floating;
|
|
5131
5131
|
let b, y;
|
|
5132
5132
|
f === "top" || f === "bottom" ? (b = f, y = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = f, b = h === "end" ? "top" : "bottom");
|
|
5133
|
-
const x = p - d.top - d.bottom, C = v - d.left - d.right, w =
|
|
5133
|
+
const x = p - d.top - d.bottom, C = v - d.left - d.right, w = fe(p - d[b], x), E = fe(v - d[y], C), P = !t.middlewareData.shift;
|
|
5134
5134
|
let R = w, S = E;
|
|
5135
5135
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = C), (r = t.middlewareData.shift) != null && r.enabled.y && (R = x), P && !h) {
|
|
5136
5136
|
const D = K(d.left, 0), F = K(d.right, 0), A = K(d.top, 0), L = K(d.bottom, 0);
|
|
@@ -5150,11 +5150,11 @@ const Kl = function(e) {
|
|
|
5150
5150
|
}
|
|
5151
5151
|
};
|
|
5152
5152
|
};
|
|
5153
|
-
function
|
|
5153
|
+
function ct() {
|
|
5154
5154
|
return typeof window < "u";
|
|
5155
5155
|
}
|
|
5156
|
-
function
|
|
5157
|
-
return
|
|
5156
|
+
function Ie(e) {
|
|
5157
|
+
return yo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5158
5158
|
}
|
|
5159
5159
|
function Y(e) {
|
|
5160
5160
|
var t;
|
|
@@ -5162,21 +5162,21 @@ function Y(e) {
|
|
|
5162
5162
|
}
|
|
5163
5163
|
function te(e) {
|
|
5164
5164
|
var t;
|
|
5165
|
-
return (t = (
|
|
5165
|
+
return (t = (yo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5166
5166
|
}
|
|
5167
|
-
function
|
|
5168
|
-
return
|
|
5167
|
+
function yo(e) {
|
|
5168
|
+
return ct() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
5169
5169
|
}
|
|
5170
5170
|
function X(e) {
|
|
5171
|
-
return
|
|
5171
|
+
return ct() ? e instanceof Element || e instanceof Y(e).Element : !1;
|
|
5172
5172
|
}
|
|
5173
5173
|
function J(e) {
|
|
5174
|
-
return
|
|
5174
|
+
return ct() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
|
|
5175
5175
|
}
|
|
5176
|
-
function
|
|
5177
|
-
return !
|
|
5176
|
+
function Gn(e) {
|
|
5177
|
+
return !ct() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
5178
5178
|
}
|
|
5179
|
-
function
|
|
5179
|
+
function ze(e) {
|
|
5180
5180
|
const {
|
|
5181
5181
|
overflow: t,
|
|
5182
5182
|
overflowX: n,
|
|
@@ -5185,10 +5185,10 @@ function Ve(e) {
|
|
|
5185
5185
|
} = q(e);
|
|
5186
5186
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5187
5187
|
}
|
|
5188
|
-
function
|
|
5189
|
-
return ["table", "td", "th"].includes(
|
|
5188
|
+
function Ql(e) {
|
|
5189
|
+
return ["table", "td", "th"].includes(Ie(e));
|
|
5190
5190
|
}
|
|
5191
|
-
function
|
|
5191
|
+
function ut(e) {
|
|
5192
5192
|
return [":popover-open", ":modal"].some((t) => {
|
|
5193
5193
|
try {
|
|
5194
5194
|
return e.matches(t);
|
|
@@ -5197,31 +5197,31 @@ function ct(e) {
|
|
|
5197
5197
|
}
|
|
5198
5198
|
});
|
|
5199
5199
|
}
|
|
5200
|
-
function
|
|
5201
|
-
const t =
|
|
5200
|
+
function sn(e) {
|
|
5201
|
+
const t = an(), n = X(e) ? q(e) : e;
|
|
5202
5202
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
5203
5203
|
}
|
|
5204
|
-
function
|
|
5205
|
-
let t =
|
|
5206
|
-
for (; J(t) && !
|
|
5207
|
-
if (
|
|
5204
|
+
function Jl(e) {
|
|
5205
|
+
let t = ge(e);
|
|
5206
|
+
for (; J(t) && !Ne(t); ) {
|
|
5207
|
+
if (sn(t))
|
|
5208
5208
|
return t;
|
|
5209
|
-
if (
|
|
5209
|
+
if (ut(t))
|
|
5210
5210
|
return null;
|
|
5211
|
-
t =
|
|
5211
|
+
t = ge(t);
|
|
5212
5212
|
}
|
|
5213
5213
|
return null;
|
|
5214
5214
|
}
|
|
5215
|
-
function
|
|
5215
|
+
function an() {
|
|
5216
5216
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5217
5217
|
}
|
|
5218
|
-
function
|
|
5219
|
-
return ["html", "body", "#document"].includes(
|
|
5218
|
+
function Ne(e) {
|
|
5219
|
+
return ["html", "body", "#document"].includes(Ie(e));
|
|
5220
5220
|
}
|
|
5221
5221
|
function q(e) {
|
|
5222
5222
|
return Y(e).getComputedStyle(e);
|
|
5223
5223
|
}
|
|
5224
|
-
function
|
|
5224
|
+
function dt(e) {
|
|
5225
5225
|
return X(e) ? {
|
|
5226
5226
|
scrollLeft: e.scrollLeft,
|
|
5227
5227
|
scrollTop: e.scrollTop
|
|
@@ -5230,114 +5230,114 @@ function ut(e) {
|
|
|
5230
5230
|
scrollTop: e.scrollY
|
|
5231
5231
|
};
|
|
5232
5232
|
}
|
|
5233
|
-
function
|
|
5234
|
-
if (
|
|
5233
|
+
function ge(e) {
|
|
5234
|
+
if (Ie(e) === "html")
|
|
5235
5235
|
return e;
|
|
5236
5236
|
const t = (
|
|
5237
5237
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5238
5238
|
e.assignedSlot || // DOM Element detected.
|
|
5239
5239
|
e.parentNode || // ShadowRoot detected.
|
|
5240
|
-
|
|
5240
|
+
Gn(e) && e.host || // Fallback.
|
|
5241
5241
|
te(e)
|
|
5242
5242
|
);
|
|
5243
|
-
return
|
|
5243
|
+
return Gn(t) ? t.host : t;
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5246
|
-
const t =
|
|
5247
|
-
return
|
|
5245
|
+
function xo(e) {
|
|
5246
|
+
const t = ge(e);
|
|
5247
|
+
return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && ze(t) ? t : xo(t);
|
|
5248
5248
|
}
|
|
5249
|
-
function
|
|
5249
|
+
function We(e, t, n) {
|
|
5250
5250
|
var r;
|
|
5251
5251
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5252
|
-
const o =
|
|
5252
|
+
const o = xo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(o);
|
|
5253
5253
|
if (s) {
|
|
5254
|
-
const i =
|
|
5255
|
-
return t.concat(a, a.visualViewport || [],
|
|
5254
|
+
const i = Ft(a);
|
|
5255
|
+
return t.concat(a, a.visualViewport || [], ze(o) ? o : [], i && n ? We(i) : []);
|
|
5256
5256
|
}
|
|
5257
|
-
return t.concat(o,
|
|
5257
|
+
return t.concat(o, We(o, [], n));
|
|
5258
5258
|
}
|
|
5259
|
-
function
|
|
5259
|
+
function Ft(e) {
|
|
5260
5260
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5261
5261
|
}
|
|
5262
|
-
function
|
|
5262
|
+
function wo(e) {
|
|
5263
5263
|
const t = q(e);
|
|
5264
5264
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5265
|
-
const o = J(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i =
|
|
5265
|
+
const o = J(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = nt(n) !== s || nt(r) !== a;
|
|
5266
5266
|
return i && (n = s, r = a), {
|
|
5267
5267
|
width: n,
|
|
5268
5268
|
height: r,
|
|
5269
5269
|
$: i
|
|
5270
5270
|
};
|
|
5271
5271
|
}
|
|
5272
|
-
function
|
|
5272
|
+
function ln(e) {
|
|
5273
5273
|
return X(e) ? e : e.contextElement;
|
|
5274
5274
|
}
|
|
5275
|
-
function
|
|
5276
|
-
const t =
|
|
5275
|
+
function Ae(e) {
|
|
5276
|
+
const t = ln(e);
|
|
5277
5277
|
if (!J(t))
|
|
5278
|
-
return
|
|
5278
|
+
return pe(1);
|
|
5279
5279
|
const n = t.getBoundingClientRect(), {
|
|
5280
5280
|
width: r,
|
|
5281
5281
|
height: o,
|
|
5282
5282
|
$: s
|
|
5283
|
-
} =
|
|
5284
|
-
let a = (s ?
|
|
5283
|
+
} = wo(t);
|
|
5284
|
+
let a = (s ? nt(n.width) : n.width) / r, i = (s ? nt(n.height) : n.height) / o;
|
|
5285
5285
|
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
5286
5286
|
x: a,
|
|
5287
5287
|
y: i
|
|
5288
5288
|
};
|
|
5289
5289
|
}
|
|
5290
|
-
const
|
|
5291
|
-
function
|
|
5290
|
+
const ec = /* @__PURE__ */ pe(0);
|
|
5291
|
+
function Co(e) {
|
|
5292
5292
|
const t = Y(e);
|
|
5293
|
-
return !
|
|
5293
|
+
return !an() || !t.visualViewport ? ec : {
|
|
5294
5294
|
x: t.visualViewport.offsetLeft,
|
|
5295
5295
|
y: t.visualViewport.offsetTop
|
|
5296
5296
|
};
|
|
5297
5297
|
}
|
|
5298
|
-
function
|
|
5298
|
+
function tc(e, t, n) {
|
|
5299
5299
|
return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
|
|
5300
5300
|
}
|
|
5301
|
-
function
|
|
5301
|
+
function xe(e, t, n, r) {
|
|
5302
5302
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5303
|
-
const o = e.getBoundingClientRect(), s =
|
|
5304
|
-
let a =
|
|
5305
|
-
t && (r ? X(r) && (a =
|
|
5306
|
-
const i =
|
|
5303
|
+
const o = e.getBoundingClientRect(), s = ln(e);
|
|
5304
|
+
let a = pe(1);
|
|
5305
|
+
t && (r ? X(r) && (a = Ae(r)) : a = Ae(e));
|
|
5306
|
+
const i = tc(s, n, r) ? Co(s) : pe(0);
|
|
5307
5307
|
let c = (o.left + i.x) / a.x, u = (o.top + i.y) / a.y, d = o.width / a.x, f = o.height / a.y;
|
|
5308
5308
|
if (s) {
|
|
5309
5309
|
const h = Y(s), m = r && X(r) ? Y(r) : r;
|
|
5310
|
-
let v = h, p =
|
|
5310
|
+
let v = h, p = Ft(v);
|
|
5311
5311
|
for (; p && r && m !== v; ) {
|
|
5312
|
-
const b =
|
|
5313
|
-
c *= b.x, u *= b.y, d *= b.x, f *= b.y, c += C, u += w, v = Y(p), p =
|
|
5312
|
+
const b = Ae(p), y = p.getBoundingClientRect(), x = q(p), C = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * b.x, w = y.top + (p.clientTop + parseFloat(x.paddingTop)) * b.y;
|
|
5313
|
+
c *= b.x, u *= b.y, d *= b.x, f *= b.y, c += C, u += w, v = Y(p), p = Ft(v);
|
|
5314
5314
|
}
|
|
5315
5315
|
}
|
|
5316
|
-
return
|
|
5316
|
+
return ot({
|
|
5317
5317
|
width: d,
|
|
5318
5318
|
height: f,
|
|
5319
5319
|
x: c,
|
|
5320
5320
|
y: u
|
|
5321
5321
|
});
|
|
5322
5322
|
}
|
|
5323
|
-
function
|
|
5323
|
+
function nc(e) {
|
|
5324
5324
|
let {
|
|
5325
5325
|
elements: t,
|
|
5326
5326
|
rect: n,
|
|
5327
5327
|
offsetParent: r,
|
|
5328
5328
|
strategy: o
|
|
5329
5329
|
} = e;
|
|
5330
|
-
const s = o === "fixed", a = te(r), i = t ?
|
|
5330
|
+
const s = o === "fixed", a = te(r), i = t ? ut(t.floating) : !1;
|
|
5331
5331
|
if (r === a || i && s)
|
|
5332
5332
|
return n;
|
|
5333
5333
|
let c = {
|
|
5334
5334
|
scrollLeft: 0,
|
|
5335
5335
|
scrollTop: 0
|
|
5336
|
-
}, u =
|
|
5337
|
-
const d =
|
|
5338
|
-
if ((f || !f && !s) && ((
|
|
5339
|
-
const h =
|
|
5340
|
-
u =
|
|
5336
|
+
}, u = pe(1);
|
|
5337
|
+
const d = pe(0), f = J(r);
|
|
5338
|
+
if ((f || !f && !s) && ((Ie(r) !== "body" || ze(a)) && (c = dt(r)), J(r))) {
|
|
5339
|
+
const h = xe(r);
|
|
5340
|
+
u = Ae(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
5341
5341
|
}
|
|
5342
5342
|
return {
|
|
5343
5343
|
width: n.width * u.x,
|
|
@@ -5346,16 +5346,16 @@ function tc(e) {
|
|
|
5346
5346
|
y: n.y * u.y - c.scrollTop * u.y + d.y
|
|
5347
5347
|
};
|
|
5348
5348
|
}
|
|
5349
|
-
function
|
|
5349
|
+
function rc(e) {
|
|
5350
5350
|
return Array.from(e.getClientRects());
|
|
5351
5351
|
}
|
|
5352
|
-
function
|
|
5353
|
-
const n =
|
|
5354
|
-
return t ? t.left + n :
|
|
5352
|
+
function $t(e, t) {
|
|
5353
|
+
const n = dt(e).scrollLeft;
|
|
5354
|
+
return t ? t.left + n : xe(te(e)).left + n;
|
|
5355
5355
|
}
|
|
5356
|
-
function
|
|
5357
|
-
const t = te(e), n =
|
|
5358
|
-
let a = -n.scrollLeft +
|
|
5356
|
+
function oc(e) {
|
|
5357
|
+
const t = te(e), n = dt(e), r = e.ownerDocument.body, o = K(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = K(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5358
|
+
let a = -n.scrollLeft + $t(e);
|
|
5359
5359
|
const i = -n.scrollTop;
|
|
5360
5360
|
return q(r).direction === "rtl" && (a += K(t.clientWidth, r.clientWidth) - o), {
|
|
5361
5361
|
width: o,
|
|
@@ -5364,12 +5364,12 @@ function rc(e) {
|
|
|
5364
5364
|
y: i
|
|
5365
5365
|
};
|
|
5366
5366
|
}
|
|
5367
|
-
function
|
|
5367
|
+
function sc(e, t) {
|
|
5368
5368
|
const n = Y(e), r = te(e), o = n.visualViewport;
|
|
5369
5369
|
let s = r.clientWidth, a = r.clientHeight, i = 0, c = 0;
|
|
5370
5370
|
if (o) {
|
|
5371
5371
|
s = o.width, a = o.height;
|
|
5372
|
-
const u =
|
|
5372
|
+
const u = an();
|
|
5373
5373
|
(!u || u && t === "fixed") && (i = o.offsetLeft, c = o.offsetTop);
|
|
5374
5374
|
}
|
|
5375
5375
|
return {
|
|
@@ -5379,8 +5379,8 @@ function oc(e, t) {
|
|
|
5379
5379
|
y: c
|
|
5380
5380
|
};
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
5383
|
-
const n =
|
|
5382
|
+
function ac(e, t) {
|
|
5383
|
+
const n = xe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = J(e) ? Ae(e) : pe(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x, u = r * s.y;
|
|
5384
5384
|
return {
|
|
5385
5385
|
width: a,
|
|
5386
5386
|
height: i,
|
|
@@ -5388,52 +5388,52 @@ function sc(e, t) {
|
|
|
5388
5388
|
y: u
|
|
5389
5389
|
};
|
|
5390
5390
|
}
|
|
5391
|
-
function
|
|
5391
|
+
function Hn(e, t, n) {
|
|
5392
5392
|
let r;
|
|
5393
5393
|
if (t === "viewport")
|
|
5394
|
-
r =
|
|
5394
|
+
r = sc(e, n);
|
|
5395
5395
|
else if (t === "document")
|
|
5396
|
-
r =
|
|
5396
|
+
r = oc(te(e));
|
|
5397
5397
|
else if (X(t))
|
|
5398
|
-
r =
|
|
5398
|
+
r = ac(t, n);
|
|
5399
5399
|
else {
|
|
5400
|
-
const o =
|
|
5400
|
+
const o = Co(e);
|
|
5401
5401
|
r = {
|
|
5402
5402
|
...t,
|
|
5403
5403
|
x: t.x - o.x,
|
|
5404
5404
|
y: t.y - o.y
|
|
5405
5405
|
};
|
|
5406
5406
|
}
|
|
5407
|
-
return
|
|
5407
|
+
return ot(r);
|
|
5408
5408
|
}
|
|
5409
|
-
function
|
|
5410
|
-
const n =
|
|
5411
|
-
return n === t || !X(n) ||
|
|
5409
|
+
function Eo(e, t) {
|
|
5410
|
+
const n = ge(e);
|
|
5411
|
+
return n === t || !X(n) || Ne(n) ? !1 : q(n).position === "fixed" || Eo(n, t);
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function ic(e, t) {
|
|
5414
5414
|
const n = t.get(e);
|
|
5415
5415
|
if (n)
|
|
5416
5416
|
return n;
|
|
5417
|
-
let r =
|
|
5417
|
+
let r = We(e, [], !1).filter((i) => X(i) && Ie(i) !== "body"), o = null;
|
|
5418
5418
|
const s = q(e).position === "fixed";
|
|
5419
|
-
let a = s ?
|
|
5420
|
-
for (; X(a) && !
|
|
5421
|
-
const i = q(a), c =
|
|
5422
|
-
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
5419
|
+
let a = s ? ge(e) : e;
|
|
5420
|
+
for (; X(a) && !Ne(a); ) {
|
|
5421
|
+
const i = q(a), c = sn(a);
|
|
5422
|
+
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ze(a) && !c && Eo(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = ge(a);
|
|
5423
5423
|
}
|
|
5424
5424
|
return t.set(e, r), r;
|
|
5425
5425
|
}
|
|
5426
|
-
function
|
|
5426
|
+
function lc(e) {
|
|
5427
5427
|
let {
|
|
5428
5428
|
element: t,
|
|
5429
5429
|
boundary: n,
|
|
5430
5430
|
rootBoundary: r,
|
|
5431
5431
|
strategy: o
|
|
5432
5432
|
} = e;
|
|
5433
|
-
const a = [...n === "clippingAncestors" ?
|
|
5434
|
-
const f =
|
|
5435
|
-
return u.top = K(f.top, u.top), u.right =
|
|
5436
|
-
},
|
|
5433
|
+
const a = [...n === "clippingAncestors" ? ut(t) ? [] : ic(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((u, d) => {
|
|
5434
|
+
const f = Hn(t, d, o);
|
|
5435
|
+
return u.top = K(f.top, u.top), u.right = fe(f.right, u.right), u.bottom = fe(f.bottom, u.bottom), u.left = K(f.left, u.left), u;
|
|
5436
|
+
}, Hn(t, i, o));
|
|
5437
5437
|
return {
|
|
5438
5438
|
width: c.right - c.left,
|
|
5439
5439
|
height: c.bottom - c.top,
|
|
@@ -5441,33 +5441,33 @@ function ic(e) {
|
|
|
5441
5441
|
y: c.top
|
|
5442
5442
|
};
|
|
5443
5443
|
}
|
|
5444
|
-
function
|
|
5444
|
+
function cc(e) {
|
|
5445
5445
|
const {
|
|
5446
5446
|
width: t,
|
|
5447
5447
|
height: n
|
|
5448
|
-
} =
|
|
5448
|
+
} = wo(e);
|
|
5449
5449
|
return {
|
|
5450
5450
|
width: t,
|
|
5451
5451
|
height: n
|
|
5452
5452
|
};
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5455
|
-
const r = J(t), o = te(t), s = n === "fixed", a =
|
|
5454
|
+
function uc(e, t, n) {
|
|
5455
|
+
const r = J(t), o = te(t), s = n === "fixed", a = xe(e, !0, s, t);
|
|
5456
5456
|
let i = {
|
|
5457
5457
|
scrollLeft: 0,
|
|
5458
5458
|
scrollTop: 0
|
|
5459
5459
|
};
|
|
5460
|
-
const c =
|
|
5460
|
+
const c = pe(0);
|
|
5461
5461
|
if (r || !r && !s)
|
|
5462
|
-
if ((
|
|
5463
|
-
const m =
|
|
5462
|
+
if ((Ie(t) !== "body" || ze(o)) && (i = dt(t)), r) {
|
|
5463
|
+
const m = xe(t, !0, s, t);
|
|
5464
5464
|
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
5465
|
-
} else o && (c.x =
|
|
5465
|
+
} else o && (c.x = $t(o));
|
|
5466
5466
|
let u = 0, d = 0;
|
|
5467
5467
|
if (o && !r && !s) {
|
|
5468
5468
|
const m = o.getBoundingClientRect();
|
|
5469
5469
|
d = m.top + i.scrollTop, u = m.left + i.scrollLeft - // RTL <body> scrollbar.
|
|
5470
|
-
|
|
5470
|
+
$t(o, m);
|
|
5471
5471
|
}
|
|
5472
5472
|
const f = a.left + i.scrollLeft - c.x - u, h = a.top + i.scrollTop - c.y - d;
|
|
5473
5473
|
return {
|
|
@@ -5477,10 +5477,10 @@ function cc(e, t, n) {
|
|
|
5477
5477
|
height: a.height
|
|
5478
5478
|
};
|
|
5479
5479
|
}
|
|
5480
|
-
function
|
|
5480
|
+
function St(e) {
|
|
5481
5481
|
return q(e).position === "static";
|
|
5482
5482
|
}
|
|
5483
|
-
function
|
|
5483
|
+
function Un(e, t) {
|
|
5484
5484
|
if (!J(e) || q(e).position === "fixed")
|
|
5485
5485
|
return null;
|
|
5486
5486
|
if (t)
|
|
@@ -5488,28 +5488,28 @@ function Hn(e, t) {
|
|
|
5488
5488
|
let n = e.offsetParent;
|
|
5489
5489
|
return te(e) === n && (n = n.ownerDocument.body), n;
|
|
5490
5490
|
}
|
|
5491
|
-
function
|
|
5491
|
+
function Ro(e, t) {
|
|
5492
5492
|
const n = Y(e);
|
|
5493
|
-
if (
|
|
5493
|
+
if (ut(e))
|
|
5494
5494
|
return n;
|
|
5495
5495
|
if (!J(e)) {
|
|
5496
|
-
let o =
|
|
5497
|
-
for (; o && !
|
|
5498
|
-
if (X(o) && !
|
|
5496
|
+
let o = ge(e);
|
|
5497
|
+
for (; o && !Ne(o); ) {
|
|
5498
|
+
if (X(o) && !St(o))
|
|
5499
5499
|
return o;
|
|
5500
|
-
o =
|
|
5500
|
+
o = ge(o);
|
|
5501
5501
|
}
|
|
5502
5502
|
return n;
|
|
5503
5503
|
}
|
|
5504
|
-
let r =
|
|
5505
|
-
for (; r &&
|
|
5506
|
-
r =
|
|
5507
|
-
return r &&
|
|
5504
|
+
let r = Un(e, t);
|
|
5505
|
+
for (; r && Ql(r) && St(r); )
|
|
5506
|
+
r = Un(r, t);
|
|
5507
|
+
return r && Ne(r) && St(r) && !sn(r) ? n : r || Jl(e) || n;
|
|
5508
5508
|
}
|
|
5509
|
-
const
|
|
5510
|
-
const t = this.getOffsetParent ||
|
|
5509
|
+
const dc = async function(e) {
|
|
5510
|
+
const t = this.getOffsetParent || Ro, n = this.getDimensions, r = await n(e.floating);
|
|
5511
5511
|
return {
|
|
5512
|
-
reference:
|
|
5512
|
+
reference: uc(e.reference, await t(e.floating), e.strategy),
|
|
5513
5513
|
floating: {
|
|
5514
5514
|
x: 0,
|
|
5515
5515
|
y: 0,
|
|
@@ -5518,22 +5518,22 @@ const uc = async function(e) {
|
|
|
5518
5518
|
}
|
|
5519
5519
|
};
|
|
5520
5520
|
};
|
|
5521
|
-
function
|
|
5521
|
+
function fc(e) {
|
|
5522
5522
|
return q(e).direction === "rtl";
|
|
5523
5523
|
}
|
|
5524
|
-
const
|
|
5525
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5524
|
+
const pc = {
|
|
5525
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: nc,
|
|
5526
5526
|
getDocumentElement: te,
|
|
5527
|
-
getClippingRect:
|
|
5528
|
-
getOffsetParent:
|
|
5529
|
-
getElementRects:
|
|
5530
|
-
getClientRects:
|
|
5531
|
-
getDimensions:
|
|
5532
|
-
getScale:
|
|
5527
|
+
getClippingRect: lc,
|
|
5528
|
+
getOffsetParent: Ro,
|
|
5529
|
+
getElementRects: dc,
|
|
5530
|
+
getClientRects: rc,
|
|
5531
|
+
getDimensions: cc,
|
|
5532
|
+
getScale: Ae,
|
|
5533
5533
|
isElement: X,
|
|
5534
|
-
isRTL:
|
|
5534
|
+
isRTL: fc
|
|
5535
5535
|
};
|
|
5536
|
-
function
|
|
5536
|
+
function mc(e, t) {
|
|
5537
5537
|
let n = null, r;
|
|
5538
5538
|
const o = te(e);
|
|
5539
5539
|
function s() {
|
|
@@ -5550,9 +5550,9 @@ function pc(e, t) {
|
|
|
5550
5550
|
} = e.getBoundingClientRect();
|
|
5551
5551
|
if (i || t(), !f || !h)
|
|
5552
5552
|
return;
|
|
5553
|
-
const m =
|
|
5553
|
+
const m = Ze(d), v = Ze(o.clientWidth - (u + f)), p = Ze(o.clientHeight - (d + h)), b = Ze(u), x = {
|
|
5554
5554
|
rootMargin: -m + "px " + -v + "px " + -p + "px " + -b + "px",
|
|
5555
|
-
threshold: K(0,
|
|
5555
|
+
threshold: K(0, fe(1, c)) || 1
|
|
5556
5556
|
};
|
|
5557
5557
|
let C = !0;
|
|
5558
5558
|
function w(E) {
|
|
@@ -5579,7 +5579,7 @@ function pc(e, t) {
|
|
|
5579
5579
|
}
|
|
5580
5580
|
return a(!0), s;
|
|
5581
5581
|
}
|
|
5582
|
-
function
|
|
5582
|
+
function gc(e, t, n, r) {
|
|
5583
5583
|
r === void 0 && (r = {});
|
|
5584
5584
|
const {
|
|
5585
5585
|
ancestorScroll: o = !0,
|
|
@@ -5587,13 +5587,13 @@ function mc(e, t, n, r) {
|
|
|
5587
5587
|
elementResize: a = typeof ResizeObserver == "function",
|
|
5588
5588
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
5589
5589
|
animationFrame: c = !1
|
|
5590
|
-
} = r, u =
|
|
5590
|
+
} = r, u = ln(e), d = o || s ? [...u ? We(u) : [], ...We(t)] : [];
|
|
5591
5591
|
d.forEach((y) => {
|
|
5592
5592
|
o && y.addEventListener("scroll", n, {
|
|
5593
5593
|
passive: !0
|
|
5594
5594
|
}), s && y.addEventListener("resize", n);
|
|
5595
5595
|
});
|
|
5596
|
-
const f = u && i ?
|
|
5596
|
+
const f = u && i ? mc(u, n) : null;
|
|
5597
5597
|
let h = -1, m = null;
|
|
5598
5598
|
a && (m = new ResizeObserver((y) => {
|
|
5599
5599
|
let [x] = y;
|
|
@@ -5602,10 +5602,10 @@ function mc(e, t, n, r) {
|
|
|
5602
5602
|
(C = m) == null || C.observe(t);
|
|
5603
5603
|
})), n();
|
|
5604
5604
|
}), u && !c && m.observe(u), m.observe(t));
|
|
5605
|
-
let v, p = c ?
|
|
5605
|
+
let v, p = c ? xe(e) : null;
|
|
5606
5606
|
c && b();
|
|
5607
5607
|
function b() {
|
|
5608
|
-
const y =
|
|
5608
|
+
const y = xe(e);
|
|
5609
5609
|
p && (y.x !== p.x || y.y !== p.y || y.width !== p.width || y.height !== p.height) && n(), p = y, v = requestAnimationFrame(b);
|
|
5610
5610
|
}
|
|
5611
5611
|
return n(), () => {
|
|
@@ -5615,9 +5615,9 @@ function mc(e, t, n, r) {
|
|
|
5615
5615
|
}), f == null || f(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(v);
|
|
5616
5616
|
};
|
|
5617
5617
|
}
|
|
5618
|
-
const
|
|
5618
|
+
const hc = Yl, vc = Xl, bc = Hl, yc = Zl, xc = Ul, Kn = Gl, wc = ql, Cc = (e, t, n) => {
|
|
5619
5619
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5620
|
-
platform:
|
|
5620
|
+
platform: pc,
|
|
5621
5621
|
...n
|
|
5622
5622
|
}, s = {
|
|
5623
5623
|
...o.platform,
|
|
@@ -5628,8 +5628,8 @@ const gc = Kl, hc = Yl, vc = Gl, bc = ql, yc = Hl, Un = zl, xc = Xl, wc = (e, t,
|
|
|
5628
5628
|
platform: s
|
|
5629
5629
|
});
|
|
5630
5630
|
};
|
|
5631
|
-
var
|
|
5632
|
-
function
|
|
5631
|
+
var et = typeof document < "u" ? Cs : Es;
|
|
5632
|
+
function st(e, t) {
|
|
5633
5633
|
if (e === t)
|
|
5634
5634
|
return !0;
|
|
5635
5635
|
if (typeof e != typeof t)
|
|
@@ -5641,7 +5641,7 @@ function ot(e, t) {
|
|
|
5641
5641
|
if (Array.isArray(e)) {
|
|
5642
5642
|
if (n = e.length, n !== t.length) return !1;
|
|
5643
5643
|
for (r = n; r-- !== 0; )
|
|
5644
|
-
if (!
|
|
5644
|
+
if (!st(e[r], t[r]))
|
|
5645
5645
|
return !1;
|
|
5646
5646
|
return !0;
|
|
5647
5647
|
}
|
|
@@ -5652,27 +5652,27 @@ function ot(e, t) {
|
|
|
5652
5652
|
return !1;
|
|
5653
5653
|
for (r = n; r-- !== 0; ) {
|
|
5654
5654
|
const s = o[r];
|
|
5655
|
-
if (!(s === "_owner" && e.$$typeof) && !
|
|
5655
|
+
if (!(s === "_owner" && e.$$typeof) && !st(e[s], t[s]))
|
|
5656
5656
|
return !1;
|
|
5657
5657
|
}
|
|
5658
5658
|
return !0;
|
|
5659
5659
|
}
|
|
5660
5660
|
return e !== e && t !== t;
|
|
5661
5661
|
}
|
|
5662
|
-
function
|
|
5662
|
+
function Po(e) {
|
|
5663
5663
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5664
5664
|
}
|
|
5665
|
-
function
|
|
5666
|
-
const n =
|
|
5665
|
+
function Yn(e, t) {
|
|
5666
|
+
const n = Po(e);
|
|
5667
5667
|
return Math.round(t * n) / n;
|
|
5668
5668
|
}
|
|
5669
|
-
function
|
|
5669
|
+
function At(e) {
|
|
5670
5670
|
const t = l.useRef(e);
|
|
5671
|
-
return
|
|
5671
|
+
return et(() => {
|
|
5672
5672
|
t.current = e;
|
|
5673
5673
|
}), t;
|
|
5674
5674
|
}
|
|
5675
|
-
function
|
|
5675
|
+
function Ec(e) {
|
|
5676
5676
|
e === void 0 && (e = {});
|
|
5677
5677
|
const {
|
|
5678
5678
|
placement: t = "bottom",
|
|
@@ -5694,12 +5694,12 @@ function Cc(e) {
|
|
|
5694
5694
|
middlewareData: {},
|
|
5695
5695
|
isPositioned: !1
|
|
5696
5696
|
}), [h, m] = l.useState(r);
|
|
5697
|
-
|
|
5697
|
+
st(h, r) || m(r);
|
|
5698
5698
|
const [v, p] = l.useState(null), [b, y] = l.useState(null), x = l.useCallback((O) => {
|
|
5699
5699
|
O !== P.current && (P.current = O, p(O));
|
|
5700
5700
|
}, []), C = l.useCallback((O) => {
|
|
5701
5701
|
O !== R.current && (R.current = O, y(O));
|
|
5702
|
-
}, []), w = s || v, E = a || b, P = l.useRef(null), R = l.useRef(null), S = l.useRef(d), M = c != null, D =
|
|
5702
|
+
}, []), w = s || v, E = a || b, P = l.useRef(null), R = l.useRef(null), S = l.useRef(d), M = c != null, D = At(c), F = At(o), A = At(u), L = l.useCallback(() => {
|
|
5703
5703
|
if (!P.current || !R.current)
|
|
5704
5704
|
return;
|
|
5705
5705
|
const O = {
|
|
@@ -5707,7 +5707,7 @@ function Cc(e) {
|
|
|
5707
5707
|
strategy: n,
|
|
5708
5708
|
middleware: h
|
|
5709
5709
|
};
|
|
5710
|
-
F.current && (O.platform = F.current),
|
|
5710
|
+
F.current && (O.platform = F.current), Cc(P.current, R.current, O).then((W) => {
|
|
5711
5711
|
const U = {
|
|
5712
5712
|
...W,
|
|
5713
5713
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5716,28 +5716,28 @@ function Cc(e) {
|
|
|
5716
5716
|
// setting it to `true` when `open === false` (must be specified).
|
|
5717
5717
|
isPositioned: A.current !== !1
|
|
5718
5718
|
};
|
|
5719
|
-
j.current && !
|
|
5719
|
+
j.current && !st(S.current, U) && (S.current = U, Xn.flushSync(() => {
|
|
5720
5720
|
f(U);
|
|
5721
5721
|
}));
|
|
5722
5722
|
});
|
|
5723
5723
|
}, [h, t, n, F, A]);
|
|
5724
|
-
|
|
5724
|
+
et(() => {
|
|
5725
5725
|
u === !1 && S.current.isPositioned && (S.current.isPositioned = !1, f((O) => ({
|
|
5726
5726
|
...O,
|
|
5727
5727
|
isPositioned: !1
|
|
5728
5728
|
})));
|
|
5729
5729
|
}, [u]);
|
|
5730
5730
|
const j = l.useRef(!1);
|
|
5731
|
-
|
|
5731
|
+
et(() => (j.current = !0, () => {
|
|
5732
5732
|
j.current = !1;
|
|
5733
|
-
}), []),
|
|
5733
|
+
}), []), et(() => {
|
|
5734
5734
|
if (w && (P.current = w), E && (R.current = E), w && E) {
|
|
5735
5735
|
if (D.current)
|
|
5736
5736
|
return D.current(w, E, L);
|
|
5737
5737
|
L();
|
|
5738
5738
|
}
|
|
5739
5739
|
}, [w, E, L, D, M]);
|
|
5740
|
-
const
|
|
5740
|
+
const B = l.useMemo(() => ({
|
|
5741
5741
|
reference: P,
|
|
5742
5742
|
floating: R,
|
|
5743
5743
|
setReference: x,
|
|
@@ -5753,11 +5753,11 @@ function Cc(e) {
|
|
|
5753
5753
|
};
|
|
5754
5754
|
if (!T.floating)
|
|
5755
5755
|
return O;
|
|
5756
|
-
const W =
|
|
5756
|
+
const W = Yn(T.floating, d.x), U = Yn(T.floating, d.y);
|
|
5757
5757
|
return i ? {
|
|
5758
5758
|
...O,
|
|
5759
5759
|
transform: "translate(" + W + "px, " + U + "px)",
|
|
5760
|
-
...
|
|
5760
|
+
...Po(T.floating) >= 1.5 && {
|
|
5761
5761
|
willChange: "transform"
|
|
5762
5762
|
}
|
|
5763
5763
|
} : {
|
|
@@ -5769,12 +5769,12 @@ function Cc(e) {
|
|
|
5769
5769
|
return l.useMemo(() => ({
|
|
5770
5770
|
...d,
|
|
5771
5771
|
update: L,
|
|
5772
|
-
refs:
|
|
5772
|
+
refs: B,
|
|
5773
5773
|
elements: T,
|
|
5774
5774
|
floatingStyles: V
|
|
5775
|
-
}), [d, L,
|
|
5775
|
+
}), [d, L, B, T, V]);
|
|
5776
5776
|
}
|
|
5777
|
-
const
|
|
5777
|
+
const Rc = (e) => {
|
|
5778
5778
|
function t(n) {
|
|
5779
5779
|
return {}.hasOwnProperty.call(n, "current");
|
|
5780
5780
|
}
|
|
@@ -5786,26 +5786,23 @@ const Ec = (e) => {
|
|
|
5786
5786
|
element: r,
|
|
5787
5787
|
padding: o
|
|
5788
5788
|
} = typeof e == "function" ? e(n) : e;
|
|
5789
|
-
return r && t(r) ? r.current != null ?
|
|
5789
|
+
return r && t(r) ? r.current != null ? Kn({
|
|
5790
5790
|
element: r.current,
|
|
5791
5791
|
padding: o
|
|
5792
|
-
}).fn(n) : {} : r ?
|
|
5792
|
+
}).fn(n) : {} : r ? Kn({
|
|
5793
5793
|
element: r,
|
|
5794
5794
|
padding: o
|
|
5795
5795
|
}).fn(n) : {};
|
|
5796
5796
|
}
|
|
5797
5797
|
};
|
|
5798
|
-
},
|
|
5799
|
-
...gc(e),
|
|
5800
|
-
options: [e, t]
|
|
5801
|
-
}), Pc = (e, t) => ({
|
|
5798
|
+
}, Pc = (e, t) => ({
|
|
5802
5799
|
...hc(e),
|
|
5803
5800
|
options: [e, t]
|
|
5804
5801
|
}), Sc = (e, t) => ({
|
|
5805
|
-
...
|
|
5802
|
+
...vc(e),
|
|
5806
5803
|
options: [e, t]
|
|
5807
5804
|
}), Ac = (e, t) => ({
|
|
5808
|
-
...
|
|
5805
|
+
...wc(e),
|
|
5809
5806
|
options: [e, t]
|
|
5810
5807
|
}), Nc = (e, t) => ({
|
|
5811
5808
|
...bc(e),
|
|
@@ -5814,10 +5811,13 @@ const Ec = (e) => {
|
|
|
5814
5811
|
...yc(e),
|
|
5815
5812
|
options: [e, t]
|
|
5816
5813
|
}), Tc = (e, t) => ({
|
|
5817
|
-
...
|
|
5814
|
+
...xc(e),
|
|
5815
|
+
options: [e, t]
|
|
5816
|
+
}), kc = (e, t) => ({
|
|
5817
|
+
...Rc(e),
|
|
5818
5818
|
options: [e, t]
|
|
5819
5819
|
});
|
|
5820
|
-
var
|
|
5820
|
+
var Dc = "Arrow", So = l.forwardRef((e, t) => {
|
|
5821
5821
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5822
5822
|
return /* @__PURE__ */ g.jsx(
|
|
5823
5823
|
$.svg,
|
|
@@ -5832,24 +5832,24 @@ var kc = "Arrow", Po = l.forwardRef((e, t) => {
|
|
|
5832
5832
|
}
|
|
5833
5833
|
);
|
|
5834
5834
|
});
|
|
5835
|
-
|
|
5836
|
-
var
|
|
5835
|
+
So.displayName = Dc;
|
|
5836
|
+
var jc = So, cn = "Popper", [Ao, ft] = ae(cn), [Mc, No] = Ao(cn), Oo = (e) => {
|
|
5837
5837
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
5838
|
-
return /* @__PURE__ */ g.jsx(
|
|
5838
|
+
return /* @__PURE__ */ g.jsx(Mc, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5839
5839
|
};
|
|
5840
|
-
|
|
5841
|
-
var
|
|
5840
|
+
Oo.displayName = cn;
|
|
5841
|
+
var To = "PopperAnchor", ko = l.forwardRef(
|
|
5842
5842
|
(e, t) => {
|
|
5843
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s =
|
|
5843
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = No(To, n), a = l.useRef(null), i = z(t, a);
|
|
5844
5844
|
return l.useEffect(() => {
|
|
5845
5845
|
s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
|
5846
5846
|
}), r ? null : /* @__PURE__ */ g.jsx($.div, { ...o, ref: i });
|
|
5847
5847
|
}
|
|
5848
5848
|
);
|
|
5849
|
-
|
|
5850
|
-
var
|
|
5849
|
+
ko.displayName = To;
|
|
5850
|
+
var un = "PopperContent", [Ic, _c] = Ao(un), Do = l.forwardRef(
|
|
5851
5851
|
(e, t) => {
|
|
5852
|
-
var
|
|
5852
|
+
var hn, vn, bn, yn, xn, wn;
|
|
5853
5853
|
const {
|
|
5854
5854
|
__scopePopper: n,
|
|
5855
5855
|
side: r = "bottom",
|
|
@@ -5865,81 +5865,81 @@ var cn = "PopperContent", [Mc, Ic] = So(cn), ko = l.forwardRef(
|
|
|
5865
5865
|
updatePositionStrategy: m = "optimized",
|
|
5866
5866
|
onPlaced: v,
|
|
5867
5867
|
...p
|
|
5868
|
-
} = e, b =
|
|
5868
|
+
} = e, b = No(un, n), [y, x] = l.useState(null), C = z(t, (_e) => x(_e)), [w, E] = l.useState(null), P = Ut(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, M = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, F = Array.isArray(u) ? u : [u], A = F.length > 0, L = {
|
|
5869
5869
|
padding: D,
|
|
5870
|
-
boundary: F.filter(
|
|
5870
|
+
boundary: F.filter(Fc),
|
|
5871
5871
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5872
5872
|
altBoundary: A
|
|
5873
|
-
}, { refs: j, floatingStyles:
|
|
5873
|
+
}, { refs: j, floatingStyles: B, placement: T, isPositioned: V, middlewareData: O } = Ec({
|
|
5874
5874
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5875
5875
|
strategy: "fixed",
|
|
5876
5876
|
placement: M,
|
|
5877
|
-
whileElementsMounted: (...
|
|
5877
|
+
whileElementsMounted: (..._e) => gc(..._e, {
|
|
5878
5878
|
animationFrame: m === "always"
|
|
5879
5879
|
}),
|
|
5880
5880
|
elements: {
|
|
5881
5881
|
reference: b.anchor
|
|
5882
5882
|
},
|
|
5883
5883
|
middleware: [
|
|
5884
|
-
|
|
5885
|
-
c &&
|
|
5884
|
+
Pc({ mainAxis: o + S, alignmentAxis: a }),
|
|
5885
|
+
c && Sc({
|
|
5886
5886
|
mainAxis: !0,
|
|
5887
5887
|
crossAxis: !1,
|
|
5888
|
-
limiter: f === "partial" ?
|
|
5888
|
+
limiter: f === "partial" ? Ac() : void 0,
|
|
5889
5889
|
...L
|
|
5890
5890
|
}),
|
|
5891
|
-
c &&
|
|
5892
|
-
|
|
5891
|
+
c && Nc({ ...L }),
|
|
5892
|
+
Oc({
|
|
5893
5893
|
...L,
|
|
5894
|
-
apply: ({ elements:
|
|
5895
|
-
const { width:
|
|
5896
|
-
|
|
5894
|
+
apply: ({ elements: _e, rects: Cn, availableWidth: gs, availableHeight: hs }) => {
|
|
5895
|
+
const { width: vs, height: bs } = Cn.reference, He = _e.floating.style;
|
|
5896
|
+
He.setProperty("--radix-popper-available-width", `${gs}px`), He.setProperty("--radix-popper-available-height", `${hs}px`), He.setProperty("--radix-popper-anchor-width", `${vs}px`), He.setProperty("--radix-popper-anchor-height", `${bs}px`);
|
|
5897
5897
|
}
|
|
5898
5898
|
}),
|
|
5899
|
-
w &&
|
|
5900
|
-
|
|
5901
|
-
h &&
|
|
5899
|
+
w && kc({ element: w, padding: i }),
|
|
5900
|
+
$c({ arrowWidth: R, arrowHeight: S }),
|
|
5901
|
+
h && Tc({ strategy: "referenceHidden", ...L })
|
|
5902
5902
|
]
|
|
5903
|
-
}), [W, U] =
|
|
5904
|
-
|
|
5903
|
+
}), [W, U] = Io(T), H = re(v);
|
|
5904
|
+
be(() => {
|
|
5905
5905
|
V && (H == null || H());
|
|
5906
5906
|
}, [V, H]);
|
|
5907
|
-
const
|
|
5908
|
-
return
|
|
5909
|
-
y &&
|
|
5907
|
+
const us = (hn = O.arrow) == null ? void 0 : hn.x, ds = (vn = O.arrow) == null ? void 0 : vn.y, fs = ((bn = O.arrow) == null ? void 0 : bn.centerOffset) !== 0, [ps, ms] = l.useState();
|
|
5908
|
+
return be(() => {
|
|
5909
|
+
y && ms(window.getComputedStyle(y).zIndex);
|
|
5910
5910
|
}, [y]), /* @__PURE__ */ g.jsx(
|
|
5911
5911
|
"div",
|
|
5912
5912
|
{
|
|
5913
5913
|
ref: j.setFloating,
|
|
5914
5914
|
"data-radix-popper-content-wrapper": "",
|
|
5915
5915
|
style: {
|
|
5916
|
-
...
|
|
5917
|
-
transform: V ?
|
|
5916
|
+
...B,
|
|
5917
|
+
transform: V ? B.transform : "translate(0, -200%)",
|
|
5918
5918
|
// keep off the page when measuring
|
|
5919
5919
|
minWidth: "max-content",
|
|
5920
|
-
zIndex:
|
|
5920
|
+
zIndex: ps,
|
|
5921
5921
|
"--radix-popper-transform-origin": [
|
|
5922
|
-
(
|
|
5923
|
-
(
|
|
5922
|
+
(yn = O.transformOrigin) == null ? void 0 : yn.x,
|
|
5923
|
+
(xn = O.transformOrigin) == null ? void 0 : xn.y
|
|
5924
5924
|
].join(" "),
|
|
5925
5925
|
// hide the content if using the hide middleware and should be hidden
|
|
5926
5926
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
5927
5927
|
// as if the PopperContent isn't there at all
|
|
5928
|
-
...((
|
|
5928
|
+
...((wn = O.hide) == null ? void 0 : wn.referenceHidden) && {
|
|
5929
5929
|
visibility: "hidden",
|
|
5930
5930
|
pointerEvents: "none"
|
|
5931
5931
|
}
|
|
5932
5932
|
},
|
|
5933
5933
|
dir: e.dir,
|
|
5934
5934
|
children: /* @__PURE__ */ g.jsx(
|
|
5935
|
-
|
|
5935
|
+
Ic,
|
|
5936
5936
|
{
|
|
5937
5937
|
scope: n,
|
|
5938
5938
|
placedSide: W,
|
|
5939
5939
|
onArrowChange: E,
|
|
5940
|
-
arrowX:
|
|
5941
|
-
arrowY:
|
|
5942
|
-
shouldHideArrow:
|
|
5940
|
+
arrowX: us,
|
|
5941
|
+
arrowY: ds,
|
|
5942
|
+
shouldHideArrow: fs,
|
|
5943
5943
|
children: /* @__PURE__ */ g.jsx(
|
|
5944
5944
|
$.div,
|
|
5945
5945
|
{
|
|
@@ -5961,14 +5961,14 @@ var cn = "PopperContent", [Mc, Ic] = So(cn), ko = l.forwardRef(
|
|
|
5961
5961
|
);
|
|
5962
5962
|
}
|
|
5963
5963
|
);
|
|
5964
|
-
|
|
5965
|
-
var
|
|
5964
|
+
Do.displayName = un;
|
|
5965
|
+
var jo = "PopperArrow", Lc = {
|
|
5966
5966
|
top: "bottom",
|
|
5967
5967
|
right: "left",
|
|
5968
5968
|
bottom: "top",
|
|
5969
5969
|
left: "right"
|
|
5970
|
-
},
|
|
5971
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
5970
|
+
}, Mo = l.forwardRef(function(t, n) {
|
|
5971
|
+
const { __scopePopper: r, ...o } = t, s = _c(jo, r), a = Lc[s.placedSide];
|
|
5972
5972
|
return (
|
|
5973
5973
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5974
5974
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -5997,7 +5997,7 @@ var Do = "PopperArrow", _c = {
|
|
|
5997
5997
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
5998
5998
|
},
|
|
5999
5999
|
children: /* @__PURE__ */ g.jsx(
|
|
6000
|
-
|
|
6000
|
+
jc,
|
|
6001
6001
|
{
|
|
6002
6002
|
...o,
|
|
6003
6003
|
ref: n,
|
|
@@ -6012,71 +6012,71 @@ var Do = "PopperArrow", _c = {
|
|
|
6012
6012
|
)
|
|
6013
6013
|
);
|
|
6014
6014
|
});
|
|
6015
|
-
|
|
6016
|
-
function
|
|
6015
|
+
Mo.displayName = jo;
|
|
6016
|
+
function Fc(e) {
|
|
6017
6017
|
return e !== null;
|
|
6018
6018
|
}
|
|
6019
|
-
var
|
|
6019
|
+
var $c = (e) => ({
|
|
6020
6020
|
name: "transformOrigin",
|
|
6021
6021
|
options: e,
|
|
6022
6022
|
fn(t) {
|
|
6023
6023
|
var b, y, x;
|
|
6024
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] =
|
|
6024
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = Io(n), f = { start: "0%", center: "50%", end: "100%" }[d], h = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + i / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
|
|
6025
6025
|
let v = "", p = "";
|
|
6026
6026
|
return u === "bottom" ? (v = a ? f : `${h}px`, p = `${-c}px`) : u === "top" ? (v = a ? f : `${h}px`, p = `${r.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, p = a ? f : `${m}px`) : u === "left" && (v = `${r.floating.width + c}px`, p = a ? f : `${m}px`), { data: { x: v, y: p } };
|
|
6027
6027
|
}
|
|
6028
6028
|
});
|
|
6029
|
-
function
|
|
6029
|
+
function Io(e) {
|
|
6030
6030
|
const [t, n = "center"] = e.split("-");
|
|
6031
6031
|
return [t, n];
|
|
6032
6032
|
}
|
|
6033
|
-
var
|
|
6034
|
-
const Ku =
|
|
6035
|
-
|
|
6033
|
+
var _o = Oo, dn = ko, Lo = Do, Fo = Mo;
|
|
6034
|
+
const Ku = xl, Yu = wl, Wc = Cl, Xu = go, $o = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6035
|
+
uo,
|
|
6036
6036
|
{
|
|
6037
6037
|
ref: n,
|
|
6038
|
-
className:
|
|
6038
|
+
className: I(
|
|
6039
6039
|
"al-fixed al-inset-0 al-z-50 al-bg-black/80 al- data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0",
|
|
6040
6040
|
e
|
|
6041
6041
|
),
|
|
6042
6042
|
...t
|
|
6043
6043
|
}
|
|
6044
6044
|
));
|
|
6045
|
-
|
|
6046
|
-
const
|
|
6047
|
-
/* @__PURE__ */ g.jsx(
|
|
6045
|
+
$o.displayName = uo.displayName;
|
|
6046
|
+
const Vc = G(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsxs(Wc, { children: [
|
|
6047
|
+
/* @__PURE__ */ g.jsx($o, {}),
|
|
6048
6048
|
/* @__PURE__ */ g.jsxs(
|
|
6049
|
-
|
|
6049
|
+
fo,
|
|
6050
6050
|
{
|
|
6051
6051
|
ref: r,
|
|
6052
|
-
className:
|
|
6052
|
+
className: I(
|
|
6053
6053
|
"al-fixed al-left-[50%] al-top-[50%] al-z-50 al-grid al-w-full al-max-w-lg al-translate-x-[-50%] al-translate-y-[-50%] al-gap-4 al-border al-bg-background al-p-6 al-shadow-lg al-duration-200 data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[state=closed]:al-slide-out-to-left-1/2 data-[state=closed]:al-slide-out-to-top-[48%] data-[state=open]:al-slide-in-from-left-1/2 data-[state=open]:al-slide-in-from-top-[48%] sm:al-rounded-lg",
|
|
6054
6054
|
e
|
|
6055
6055
|
),
|
|
6056
6056
|
...n,
|
|
6057
6057
|
children: [
|
|
6058
6058
|
t,
|
|
6059
|
-
/* @__PURE__ */ g.jsxs(
|
|
6060
|
-
/* @__PURE__ */ g.jsx(
|
|
6059
|
+
/* @__PURE__ */ g.jsxs(go, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-accent data-[state=open]:al-text-muted-foreground", children: [
|
|
6060
|
+
/* @__PURE__ */ g.jsx(xs, { className: "al-h-4 al-w-4" }),
|
|
6061
6061
|
/* @__PURE__ */ g.jsx("span", { className: "al-sr-only", children: "Close" })
|
|
6062
6062
|
] })
|
|
6063
6063
|
]
|
|
6064
6064
|
}
|
|
6065
6065
|
)
|
|
6066
6066
|
] }));
|
|
6067
|
-
|
|
6068
|
-
const
|
|
6067
|
+
Vc.displayName = fo.displayName;
|
|
6068
|
+
const zc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
6069
6069
|
"div",
|
|
6070
6070
|
{
|
|
6071
|
-
className:
|
|
6071
|
+
className: I("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
|
|
6072
6072
|
...t
|
|
6073
6073
|
}
|
|
6074
6074
|
);
|
|
6075
|
-
|
|
6075
|
+
zc.displayName = "DialogHeader";
|
|
6076
6076
|
const Bc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
6077
6077
|
"div",
|
|
6078
6078
|
{
|
|
6079
|
-
className:
|
|
6079
|
+
className: I(
|
|
6080
6080
|
"al-flex al-flex-col-reverse sm:al-flex-row sm:al-justify-end sm:al-space-x-2",
|
|
6081
6081
|
e
|
|
6082
6082
|
),
|
|
@@ -6084,51 +6084,51 @@ const Bc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
|
6084
6084
|
}
|
|
6085
6085
|
);
|
|
6086
6086
|
Bc.displayName = "DialogFooter";
|
|
6087
|
-
const
|
|
6088
|
-
|
|
6087
|
+
const Gc = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6088
|
+
po,
|
|
6089
6089
|
{
|
|
6090
6090
|
ref: n,
|
|
6091
|
-
className:
|
|
6091
|
+
className: I("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
|
|
6092
6092
|
...t
|
|
6093
6093
|
}
|
|
6094
6094
|
));
|
|
6095
|
-
|
|
6096
|
-
const
|
|
6097
|
-
|
|
6095
|
+
Gc.displayName = po.displayName;
|
|
6096
|
+
const Hc = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6097
|
+
mo,
|
|
6098
6098
|
{
|
|
6099
6099
|
ref: n,
|
|
6100
|
-
className:
|
|
6100
|
+
className: I("al-text-sm al-text-muted-foreground", e),
|
|
6101
6101
|
...t
|
|
6102
6102
|
}
|
|
6103
6103
|
));
|
|
6104
|
-
|
|
6105
|
-
var
|
|
6106
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
6104
|
+
Hc.displayName = mo.displayName;
|
|
6105
|
+
var Wo = l.forwardRef((e, t) => {
|
|
6106
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Kc);
|
|
6107
6107
|
if (s) {
|
|
6108
6108
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
6109
|
-
return /* @__PURE__ */ g.jsx(
|
|
6109
|
+
return /* @__PURE__ */ g.jsx(Wt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
6110
6110
|
}
|
|
6111
|
-
return /* @__PURE__ */ g.jsx(
|
|
6111
|
+
return /* @__PURE__ */ g.jsx(Wt, { ...r, ref: t, children: n });
|
|
6112
6112
|
});
|
|
6113
|
-
|
|
6114
|
-
var
|
|
6113
|
+
Wo.displayName = "Slot";
|
|
6114
|
+
var Wt = l.forwardRef((e, t) => {
|
|
6115
6115
|
const { children: n, ...r } = e;
|
|
6116
6116
|
if (l.isValidElement(n)) {
|
|
6117
|
-
const o =
|
|
6117
|
+
const o = Xc(n);
|
|
6118
6118
|
return l.cloneElement(n, {
|
|
6119
|
-
...
|
|
6119
|
+
...Yc(r, n.props),
|
|
6120
6120
|
// @ts-ignore
|
|
6121
|
-
ref: t ?
|
|
6121
|
+
ref: t ? De(t, o) : o
|
|
6122
6122
|
});
|
|
6123
6123
|
}
|
|
6124
6124
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
6125
6125
|
});
|
|
6126
|
-
|
|
6127
|
-
var
|
|
6128
|
-
function
|
|
6129
|
-
return l.isValidElement(e) && e.type ===
|
|
6126
|
+
Wt.displayName = "SlotClone";
|
|
6127
|
+
var Uc = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6128
|
+
function Kc(e) {
|
|
6129
|
+
return l.isValidElement(e) && e.type === Uc;
|
|
6130
6130
|
}
|
|
6131
|
-
function
|
|
6131
|
+
function Yc(e, t) {
|
|
6132
6132
|
const n = { ...t };
|
|
6133
6133
|
for (const r in t) {
|
|
6134
6134
|
const o = e[r], s = t[r];
|
|
@@ -6138,14 +6138,14 @@ function Kc(e, t) {
|
|
|
6138
6138
|
}
|
|
6139
6139
|
return { ...e, ...n };
|
|
6140
6140
|
}
|
|
6141
|
-
function
|
|
6141
|
+
function Xc(e) {
|
|
6142
6142
|
var r, o;
|
|
6143
6143
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6144
6144
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6145
6145
|
}
|
|
6146
|
-
var
|
|
6147
|
-
|
|
6148
|
-
]), Be =
|
|
6146
|
+
var fn = "Popover", [Vo, qu] = ae(fn, [
|
|
6147
|
+
ft
|
|
6148
|
+
]), Be = ft(), [qc, he] = Vo(fn), zo = (e) => {
|
|
6149
6149
|
const {
|
|
6150
6150
|
__scopePopover: t,
|
|
6151
6151
|
children: n,
|
|
@@ -6153,16 +6153,16 @@ var dn = "Popover", [Wo, qu] = ae(dn, [
|
|
|
6153
6153
|
defaultOpen: o,
|
|
6154
6154
|
onOpenChange: s,
|
|
6155
6155
|
modal: a = !1
|
|
6156
|
-
} = e, i = Be(t), c = l.useRef(null), [u, d] = l.useState(!1), [f = !1, h] =
|
|
6156
|
+
} = e, i = Be(t), c = l.useRef(null), [u, d] = l.useState(!1), [f = !1, h] = je({
|
|
6157
6157
|
prop: r,
|
|
6158
6158
|
defaultProp: o,
|
|
6159
6159
|
onChange: s
|
|
6160
6160
|
});
|
|
6161
|
-
return /* @__PURE__ */ g.jsx(
|
|
6162
|
-
|
|
6161
|
+
return /* @__PURE__ */ g.jsx(_o, { ...i, children: /* @__PURE__ */ g.jsx(
|
|
6162
|
+
qc,
|
|
6163
6163
|
{
|
|
6164
6164
|
scope: t,
|
|
6165
|
-
contentId:
|
|
6165
|
+
contentId: Pe(),
|
|
6166
6166
|
triggerRef: c,
|
|
6167
6167
|
open: f,
|
|
6168
6168
|
onOpenChange: h,
|
|
@@ -6175,55 +6175,55 @@ var dn = "Popover", [Wo, qu] = ae(dn, [
|
|
|
6175
6175
|
}
|
|
6176
6176
|
) });
|
|
6177
6177
|
};
|
|
6178
|
-
|
|
6179
|
-
var Bo = "PopoverAnchor",
|
|
6178
|
+
zo.displayName = fn;
|
|
6179
|
+
var Bo = "PopoverAnchor", Zc = l.forwardRef(
|
|
6180
6180
|
(e, t) => {
|
|
6181
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6182
|
-
return l.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ g.jsx(
|
|
6181
|
+
const { __scopePopover: n, ...r } = e, o = he(Bo, n), s = Be(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
|
|
6182
|
+
return l.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ g.jsx(dn, { ...s, ...r, ref: t });
|
|
6183
6183
|
}
|
|
6184
6184
|
);
|
|
6185
|
-
|
|
6186
|
-
var
|
|
6185
|
+
Zc.displayName = Bo;
|
|
6186
|
+
var Go = "PopoverTrigger", Ho = l.forwardRef(
|
|
6187
6187
|
(e, t) => {
|
|
6188
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6188
|
+
const { __scopePopover: n, ...r } = e, o = he(Go, n), s = Be(n), a = z(t, o.triggerRef), i = /* @__PURE__ */ g.jsx(
|
|
6189
6189
|
$.button,
|
|
6190
6190
|
{
|
|
6191
6191
|
type: "button",
|
|
6192
6192
|
"aria-haspopup": "dialog",
|
|
6193
6193
|
"aria-expanded": o.open,
|
|
6194
6194
|
"aria-controls": o.contentId,
|
|
6195
|
-
"data-state":
|
|
6195
|
+
"data-state": qo(o.open),
|
|
6196
6196
|
...r,
|
|
6197
6197
|
ref: a,
|
|
6198
6198
|
onClick: k(e.onClick, o.onOpenToggle)
|
|
6199
6199
|
}
|
|
6200
6200
|
);
|
|
6201
|
-
return o.hasCustomAnchor ? i : /* @__PURE__ */ g.jsx(
|
|
6201
|
+
return o.hasCustomAnchor ? i : /* @__PURE__ */ g.jsx(dn, { asChild: !0, ...s, children: i });
|
|
6202
6202
|
}
|
|
6203
6203
|
);
|
|
6204
|
-
|
|
6205
|
-
var
|
|
6204
|
+
Ho.displayName = Go;
|
|
6205
|
+
var pn = "PopoverPortal", [Qc, Jc] = Vo(pn, {
|
|
6206
6206
|
forceMount: void 0
|
|
6207
|
-
}),
|
|
6208
|
-
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s =
|
|
6209
|
-
return /* @__PURE__ */ g.jsx(
|
|
6207
|
+
}), Uo = (e) => {
|
|
6208
|
+
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = he(pn, t);
|
|
6209
|
+
return /* @__PURE__ */ g.jsx(Qc, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
6210
6210
|
};
|
|
6211
|
-
|
|
6212
|
-
var
|
|
6211
|
+
Uo.displayName = pn;
|
|
6212
|
+
var Oe = "PopoverContent", Ko = l.forwardRef(
|
|
6213
6213
|
(e, t) => {
|
|
6214
|
-
const n =
|
|
6215
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(
|
|
6214
|
+
const n = Jc(Oe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = he(Oe, e.__scopePopover);
|
|
6215
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(eu, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(tu, { ...o, ref: t }) });
|
|
6216
6216
|
}
|
|
6217
6217
|
);
|
|
6218
|
-
|
|
6219
|
-
var
|
|
6218
|
+
Ko.displayName = Oe;
|
|
6219
|
+
var eu = l.forwardRef(
|
|
6220
6220
|
(e, t) => {
|
|
6221
|
-
const n =
|
|
6221
|
+
const n = he(Oe, e.__scopePopover), r = l.useRef(null), o = z(t, r), s = l.useRef(!1);
|
|
6222
6222
|
return l.useEffect(() => {
|
|
6223
6223
|
const a = r.current;
|
|
6224
|
-
if (a) return
|
|
6225
|
-
}, []), /* @__PURE__ */ g.jsx(
|
|
6226
|
-
|
|
6224
|
+
if (a) return Ur(a);
|
|
6225
|
+
}, []), /* @__PURE__ */ g.jsx(Zt, { as: Wo, allowPinchZoom: !0, children: /* @__PURE__ */ g.jsx(
|
|
6226
|
+
Yo,
|
|
6227
6227
|
{
|
|
6228
6228
|
...e,
|
|
6229
6229
|
ref: o,
|
|
@@ -6249,11 +6249,11 @@ var Jc = l.forwardRef(
|
|
|
6249
6249
|
}
|
|
6250
6250
|
) });
|
|
6251
6251
|
}
|
|
6252
|
-
),
|
|
6252
|
+
), tu = l.forwardRef(
|
|
6253
6253
|
(e, t) => {
|
|
6254
|
-
const n =
|
|
6254
|
+
const n = he(Oe, e.__scopePopover), r = l.useRef(!1), o = l.useRef(!1);
|
|
6255
6255
|
return /* @__PURE__ */ g.jsx(
|
|
6256
|
-
|
|
6256
|
+
Yo,
|
|
6257
6257
|
{
|
|
6258
6258
|
...e,
|
|
6259
6259
|
ref: t,
|
|
@@ -6272,7 +6272,7 @@ var Jc = l.forwardRef(
|
|
|
6272
6272
|
}
|
|
6273
6273
|
);
|
|
6274
6274
|
}
|
|
6275
|
-
),
|
|
6275
|
+
), Yo = l.forwardRef(
|
|
6276
6276
|
(e, t) => {
|
|
6277
6277
|
const {
|
|
6278
6278
|
__scopePopover: n,
|
|
@@ -6285,9 +6285,9 @@ var Jc = l.forwardRef(
|
|
|
6285
6285
|
onFocusOutside: u,
|
|
6286
6286
|
onInteractOutside: d,
|
|
6287
6287
|
...f
|
|
6288
|
-
} = e, h =
|
|
6289
|
-
return
|
|
6290
|
-
|
|
6288
|
+
} = e, h = he(Oe, n), m = Be(n);
|
|
6289
|
+
return Lr(), /* @__PURE__ */ g.jsx(
|
|
6290
|
+
qt,
|
|
6291
6291
|
{
|
|
6292
6292
|
asChild: !0,
|
|
6293
6293
|
loop: !0,
|
|
@@ -6295,7 +6295,7 @@ var Jc = l.forwardRef(
|
|
|
6295
6295
|
onMountAutoFocus: o,
|
|
6296
6296
|
onUnmountAutoFocus: s,
|
|
6297
6297
|
children: /* @__PURE__ */ g.jsx(
|
|
6298
|
-
|
|
6298
|
+
Ve,
|
|
6299
6299
|
{
|
|
6300
6300
|
asChild: !0,
|
|
6301
6301
|
disableOutsidePointerEvents: a,
|
|
@@ -6305,9 +6305,9 @@ var Jc = l.forwardRef(
|
|
|
6305
6305
|
onFocusOutside: u,
|
|
6306
6306
|
onDismiss: () => h.onOpenChange(!1),
|
|
6307
6307
|
children: /* @__PURE__ */ g.jsx(
|
|
6308
|
-
|
|
6308
|
+
Lo,
|
|
6309
6309
|
{
|
|
6310
|
-
"data-state":
|
|
6310
|
+
"data-state": qo(h.open),
|
|
6311
6311
|
role: "dialog",
|
|
6312
6312
|
id: h.contentId,
|
|
6313
6313
|
...m,
|
|
@@ -6328,9 +6328,9 @@ var Jc = l.forwardRef(
|
|
|
6328
6328
|
}
|
|
6329
6329
|
);
|
|
6330
6330
|
}
|
|
6331
|
-
),
|
|
6331
|
+
), Xo = "PopoverClose", nu = l.forwardRef(
|
|
6332
6332
|
(e, t) => {
|
|
6333
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6333
|
+
const { __scopePopover: n, ...r } = e, o = he(Xo, n);
|
|
6334
6334
|
return /* @__PURE__ */ g.jsx(
|
|
6335
6335
|
$.button,
|
|
6336
6336
|
{
|
|
@@ -6342,33 +6342,75 @@ var Jc = l.forwardRef(
|
|
|
6342
6342
|
);
|
|
6343
6343
|
}
|
|
6344
6344
|
);
|
|
6345
|
-
|
|
6346
|
-
var
|
|
6345
|
+
nu.displayName = Xo;
|
|
6346
|
+
var ru = "PopoverArrow", ou = l.forwardRef(
|
|
6347
6347
|
(e, t) => {
|
|
6348
6348
|
const { __scopePopover: n, ...r } = e, o = Be(n);
|
|
6349
|
-
return /* @__PURE__ */ g.jsx(
|
|
6349
|
+
return /* @__PURE__ */ g.jsx(Fo, { ...o, ...r, ref: t });
|
|
6350
6350
|
}
|
|
6351
6351
|
);
|
|
6352
|
-
|
|
6353
|
-
function
|
|
6352
|
+
ou.displayName = ru;
|
|
6353
|
+
function qo(e) {
|
|
6354
6354
|
return e ? "open" : "closed";
|
|
6355
6355
|
}
|
|
6356
|
-
var
|
|
6357
|
-
const Zu =
|
|
6358
|
-
|
|
6356
|
+
var su = zo, au = Ho, iu = Uo, Zo = Ko;
|
|
6357
|
+
const Zu = su, Qu = au, lu = G(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ g.jsx(iu, { children: /* @__PURE__ */ g.jsx(
|
|
6358
|
+
Zo,
|
|
6359
6359
|
{
|
|
6360
6360
|
ref: o,
|
|
6361
6361
|
align: t,
|
|
6362
6362
|
sideOffset: n,
|
|
6363
|
-
className:
|
|
6363
|
+
className: I(
|
|
6364
6364
|
"al-z-50 al-w-72 al-rounded-md al-border al-bg-popover al-p-4 al-text-popover-foreground al-shadow-md al-outline-none data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
|
|
6365
6365
|
e
|
|
6366
6366
|
),
|
|
6367
6367
|
...r
|
|
6368
6368
|
}
|
|
6369
6369
|
) }));
|
|
6370
|
-
|
|
6371
|
-
const
|
|
6370
|
+
lu.displayName = Zo.displayName;
|
|
6371
|
+
const ue = Ht("", {
|
|
6372
|
+
variants: {
|
|
6373
|
+
variant: {
|
|
6374
|
+
h1: "al-text-h1",
|
|
6375
|
+
h2: "al-text-h2",
|
|
6376
|
+
h3: "al-text-h3",
|
|
6377
|
+
h4: "al-text-h4",
|
|
6378
|
+
h5: "al-text-subheading",
|
|
6379
|
+
h6: "al-text-caption",
|
|
6380
|
+
subheading: "al-text-subheading",
|
|
6381
|
+
body: "al-text-body",
|
|
6382
|
+
caption: "al-text-caption"
|
|
6383
|
+
},
|
|
6384
|
+
weight: {
|
|
6385
|
+
light: "al-font-light",
|
|
6386
|
+
regular: "al-font-regular",
|
|
6387
|
+
medium: "al-font-medium",
|
|
6388
|
+
semibold: "al-font-semibold",
|
|
6389
|
+
bold: "al-font-bold"
|
|
6390
|
+
},
|
|
6391
|
+
size: {
|
|
6392
|
+
xs: "al-text-xs",
|
|
6393
|
+
sm: "al-text-sm",
|
|
6394
|
+
md: "al-text-md",
|
|
6395
|
+
lg: "al-text-lg",
|
|
6396
|
+
xl: "al-text-xl"
|
|
6397
|
+
}
|
|
6398
|
+
}
|
|
6399
|
+
}), Ju = () => ({
|
|
6400
|
+
h1: ue({ variant: "h1" }),
|
|
6401
|
+
h2: ue({ variant: "h2" }),
|
|
6402
|
+
h3: ue({ variant: "h3" }),
|
|
6403
|
+
h4: ue({ variant: "h4" }),
|
|
6404
|
+
h5: ue({ variant: "h5" }),
|
|
6405
|
+
h6: ue({ variant: "h6" }),
|
|
6406
|
+
body: ue({ variant: "body" }),
|
|
6407
|
+
// Non-typography classes
|
|
6408
|
+
link: "al-text-blue-500 al-underline",
|
|
6409
|
+
list: "al-list-disc al-ml-4 al-mb-4",
|
|
6410
|
+
orderedList: "al-list-decimal al-ml-4 al-mb-4",
|
|
6411
|
+
blockquote: "al-mt-6 al-border-l-2 al-pl-6 al-italic",
|
|
6412
|
+
code: "al-rounded al-p-1 al-font-mono al-text-sm al-font-semibold"
|
|
6413
|
+
}), cu = {
|
|
6372
6414
|
h1: "h1",
|
|
6373
6415
|
h2: "h2",
|
|
6374
6416
|
h3: "h3",
|
|
@@ -6376,15 +6418,7 @@ const lu = {
|
|
|
6376
6418
|
subheading: "h5",
|
|
6377
6419
|
body: "p",
|
|
6378
6420
|
caption: "span"
|
|
6379
|
-
},
|
|
6380
|
-
h1: "regular",
|
|
6381
|
-
h2: "regular",
|
|
6382
|
-
h3: "regular",
|
|
6383
|
-
h4: "regular",
|
|
6384
|
-
subheading: "medium",
|
|
6385
|
-
body: "regular",
|
|
6386
|
-
caption: "regular"
|
|
6387
|
-
}, Ju = ({
|
|
6421
|
+
}, ed = ({
|
|
6388
6422
|
variant: e = "body",
|
|
6389
6423
|
children: t,
|
|
6390
6424
|
className: n,
|
|
@@ -6392,63 +6426,34 @@ const lu = {
|
|
|
6392
6426
|
size: o,
|
|
6393
6427
|
role: s
|
|
6394
6428
|
}) => {
|
|
6395
|
-
const a =
|
|
6396
|
-
return /* @__PURE__ */ g.jsx(
|
|
6397
|
-
a,
|
|
6398
|
-
{
|
|
6399
|
-
className: zt(
|
|
6400
|
-
"al-text-gray-900",
|
|
6401
|
-
{
|
|
6402
|
-
"al-text-h1": e === "h1",
|
|
6403
|
-
"al-text-h2": e === "h2",
|
|
6404
|
-
"al-text-h3": e === "h3",
|
|
6405
|
-
"al-text-h4": e === "h4",
|
|
6406
|
-
"al-text-subheading": e === "subheading",
|
|
6407
|
-
"al-text-body": e === "body",
|
|
6408
|
-
"al-text-caption": e === "caption",
|
|
6409
|
-
"al-font-light": r === "light" || !r && i === "light",
|
|
6410
|
-
"al-font-regular": r === "regular" || !r && i === "regular",
|
|
6411
|
-
"al-font-medium": r === "medium" || !r && i === "medium",
|
|
6412
|
-
"al-font-semibold": r === "semibold" || !r && i === "semibold",
|
|
6413
|
-
"al-font-bold": r === "bold" || !r && i === "bold",
|
|
6414
|
-
"al-text-xs": o === "xs",
|
|
6415
|
-
"al-text-sm": o === "sm",
|
|
6416
|
-
"al-text-md": o === "md",
|
|
6417
|
-
"al-text-lg": o === "lg",
|
|
6418
|
-
"al-text-xl": o === "xl"
|
|
6419
|
-
},
|
|
6420
|
-
n
|
|
6421
|
-
),
|
|
6422
|
-
role: s,
|
|
6423
|
-
children: t
|
|
6424
|
-
}
|
|
6425
|
-
);
|
|
6429
|
+
const a = cu[e];
|
|
6430
|
+
return /* @__PURE__ */ g.jsx(a, { className: I(ue({ variant: e, weight: r, size: o }), n), role: s, children: t });
|
|
6426
6431
|
};
|
|
6427
6432
|
var uu = l.forwardRef((e, t) => {
|
|
6428
6433
|
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(du);
|
|
6429
6434
|
if (s) {
|
|
6430
6435
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
6431
|
-
return /* @__PURE__ */ g.jsx(
|
|
6436
|
+
return /* @__PURE__ */ g.jsx(Vt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
6432
6437
|
}
|
|
6433
|
-
return /* @__PURE__ */ g.jsx(
|
|
6438
|
+
return /* @__PURE__ */ g.jsx(Vt, { ...r, ref: t, children: n });
|
|
6434
6439
|
});
|
|
6435
6440
|
uu.displayName = "Slot";
|
|
6436
|
-
var
|
|
6441
|
+
var Vt = l.forwardRef((e, t) => {
|
|
6437
6442
|
const { children: n, ...r } = e;
|
|
6438
6443
|
if (l.isValidElement(n)) {
|
|
6439
6444
|
const o = pu(n);
|
|
6440
6445
|
return l.cloneElement(n, {
|
|
6441
6446
|
...fu(r, n.props),
|
|
6442
6447
|
// @ts-ignore
|
|
6443
|
-
ref: t ?
|
|
6448
|
+
ref: t ? De(t, o) : o
|
|
6444
6449
|
});
|
|
6445
6450
|
}
|
|
6446
6451
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
6447
6452
|
});
|
|
6448
|
-
|
|
6449
|
-
var
|
|
6453
|
+
Vt.displayName = "SlotClone";
|
|
6454
|
+
var Qo = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6450
6455
|
function du(e) {
|
|
6451
|
-
return l.isValidElement(e) && e.type ===
|
|
6456
|
+
return l.isValidElement(e) && e.type === Qo;
|
|
6452
6457
|
}
|
|
6453
6458
|
function fu(e, t) {
|
|
6454
6459
|
const n = { ...t };
|
|
@@ -6465,7 +6470,7 @@ function pu(e) {
|
|
|
6465
6470
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6466
6471
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6467
6472
|
}
|
|
6468
|
-
var mu = "VisuallyHidden",
|
|
6473
|
+
var mu = "VisuallyHidden", Jo = l.forwardRef(
|
|
6469
6474
|
(e, t) => /* @__PURE__ */ g.jsx(
|
|
6470
6475
|
$.span,
|
|
6471
6476
|
{
|
|
@@ -6488,10 +6493,10 @@ var mu = "VisuallyHidden", Qo = l.forwardRef(
|
|
|
6488
6493
|
}
|
|
6489
6494
|
)
|
|
6490
6495
|
);
|
|
6491
|
-
|
|
6492
|
-
var gu =
|
|
6493
|
-
|
|
6494
|
-
]),
|
|
6496
|
+
Jo.displayName = mu;
|
|
6497
|
+
var gu = Jo, [pt, td] = ae("Tooltip", [
|
|
6498
|
+
ft
|
|
6499
|
+
]), mt = ft(), es = "TooltipProvider", hu = 700, zt = "tooltip.open", [vu, mn] = pt(es), ts = (e) => {
|
|
6495
6500
|
const {
|
|
6496
6501
|
__scopeTooltip: t,
|
|
6497
6502
|
delayDuration: n = hu,
|
|
@@ -6526,8 +6531,8 @@ var gu = Qo, [ft, ed] = ae("Tooltip", [
|
|
|
6526
6531
|
}
|
|
6527
6532
|
);
|
|
6528
6533
|
};
|
|
6529
|
-
|
|
6530
|
-
var
|
|
6534
|
+
ts.displayName = es;
|
|
6535
|
+
var gt = "Tooltip", [bu, Ge] = pt(gt), ns = (e) => {
|
|
6531
6536
|
const {
|
|
6532
6537
|
__scopeTooltip: t,
|
|
6533
6538
|
children: n,
|
|
@@ -6536,11 +6541,11 @@ var mt = "Tooltip", [bu, ze] = ft(mt), ts = (e) => {
|
|
|
6536
6541
|
onOpenChange: s,
|
|
6537
6542
|
disableHoverableContent: a,
|
|
6538
6543
|
delayDuration: i
|
|
6539
|
-
} = e, c =
|
|
6544
|
+
} = e, c = mn(gt, e.__scopeTooltip), u = mt(t), [d, f] = l.useState(null), h = Pe(), m = l.useRef(0), v = a ?? c.disableHoverableContent, p = i ?? c.delayDuration, b = l.useRef(!1), [y = !1, x] = je({
|
|
6540
6545
|
prop: r,
|
|
6541
6546
|
defaultProp: o,
|
|
6542
6547
|
onChange: (R) => {
|
|
6543
|
-
R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
6548
|
+
R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(zt))) : c.onClose(), s == null || s(R);
|
|
6544
6549
|
}
|
|
6545
6550
|
}), C = l.useMemo(() => y ? b.current ? "delayed-open" : "instant-open" : "closed", [y]), w = l.useCallback(() => {
|
|
6546
6551
|
window.clearTimeout(m.current), m.current = 0, b.current = !1, x(!0);
|
|
@@ -6553,7 +6558,7 @@ var mt = "Tooltip", [bu, ze] = ft(mt), ts = (e) => {
|
|
|
6553
6558
|
}, [p, x]);
|
|
6554
6559
|
return l.useEffect(() => () => {
|
|
6555
6560
|
m.current && (window.clearTimeout(m.current), m.current = 0);
|
|
6556
|
-
}, []), /* @__PURE__ */ g.jsx(
|
|
6561
|
+
}, []), /* @__PURE__ */ g.jsx(_o, { ...u, children: /* @__PURE__ */ g.jsx(
|
|
6557
6562
|
bu,
|
|
6558
6563
|
{
|
|
6559
6564
|
scope: t,
|
|
@@ -6575,11 +6580,11 @@ var mt = "Tooltip", [bu, ze] = ft(mt), ts = (e) => {
|
|
|
6575
6580
|
}
|
|
6576
6581
|
) });
|
|
6577
6582
|
};
|
|
6578
|
-
|
|
6579
|
-
var Bt = "TooltipTrigger",
|
|
6583
|
+
ns.displayName = gt;
|
|
6584
|
+
var Bt = "TooltipTrigger", rs = l.forwardRef(
|
|
6580
6585
|
(e, t) => {
|
|
6581
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6582
|
-
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ g.jsx(
|
|
6586
|
+
const { __scopeTooltip: n, ...r } = e, o = Ge(Bt, n), s = mn(Bt, n), a = mt(n), i = l.useRef(null), c = z(t, i, o.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => u.current = !1, []);
|
|
6587
|
+
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ g.jsx(dn, { asChild: !0, ...a, children: /* @__PURE__ */ g.jsx(
|
|
6583
6588
|
$.button,
|
|
6584
6589
|
{
|
|
6585
6590
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -6604,21 +6609,21 @@ var Bt = "TooltipTrigger", ns = l.forwardRef(
|
|
|
6604
6609
|
) });
|
|
6605
6610
|
}
|
|
6606
6611
|
);
|
|
6607
|
-
|
|
6608
|
-
var
|
|
6612
|
+
rs.displayName = Bt;
|
|
6613
|
+
var gn = "TooltipPortal", [yu, xu] = pt(gn, {
|
|
6609
6614
|
forceMount: void 0
|
|
6610
|
-
}),
|
|
6611
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s =
|
|
6612
|
-
return /* @__PURE__ */ g.jsx(yu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(
|
|
6615
|
+
}), os = (e) => {
|
|
6616
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = Ge(gn, t);
|
|
6617
|
+
return /* @__PURE__ */ g.jsx(yu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
6613
6618
|
};
|
|
6614
|
-
|
|
6615
|
-
var
|
|
6619
|
+
os.displayName = gn;
|
|
6620
|
+
var Te = "TooltipContent", ss = l.forwardRef(
|
|
6616
6621
|
(e, t) => {
|
|
6617
|
-
const n = xu(
|
|
6618
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(
|
|
6622
|
+
const n = xu(Te, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = Ge(Te, e.__scopeTooltip);
|
|
6623
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(as, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(wu, { side: o, ...s, ref: t }) });
|
|
6619
6624
|
}
|
|
6620
6625
|
), wu = l.forwardRef((e, t) => {
|
|
6621
|
-
const n =
|
|
6626
|
+
const n = Ge(Te, e.__scopeTooltip), r = mn(Te, e.__scopeTooltip), o = l.useRef(null), s = z(t, o), [a, i] = l.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, h = l.useCallback(() => {
|
|
6622
6627
|
i(null), f(!1);
|
|
6623
6628
|
}, [f]), m = l.useCallback(
|
|
6624
6629
|
(v, p) => {
|
|
@@ -6642,8 +6647,8 @@ var Oe = "TooltipContent", os = l.forwardRef(
|
|
|
6642
6647
|
};
|
|
6643
6648
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
6644
6649
|
}
|
|
6645
|
-
}, [c, d, a, u, h]), /* @__PURE__ */ g.jsx(
|
|
6646
|
-
}), [Cu, Eu] =
|
|
6650
|
+
}, [c, d, a, u, h]), /* @__PURE__ */ g.jsx(as, { ...e, ref: s });
|
|
6651
|
+
}), [Cu, Eu] = pt(gt, { isInside: !1 }), as = l.forwardRef(
|
|
6647
6652
|
(e, t) => {
|
|
6648
6653
|
const {
|
|
6649
6654
|
__scopeTooltip: n,
|
|
@@ -6652,8 +6657,8 @@ var Oe = "TooltipContent", os = l.forwardRef(
|
|
|
6652
6657
|
onEscapeKeyDown: s,
|
|
6653
6658
|
onPointerDownOutside: a,
|
|
6654
6659
|
...i
|
|
6655
|
-
} = e, c =
|
|
6656
|
-
return l.useEffect(() => (document.addEventListener(
|
|
6660
|
+
} = e, c = Ge(Te, n), u = mt(n), { onClose: d } = c;
|
|
6661
|
+
return l.useEffect(() => (document.addEventListener(zt, d), () => document.removeEventListener(zt, d)), [d]), l.useEffect(() => {
|
|
6657
6662
|
if (c.trigger) {
|
|
6658
6663
|
const f = (h) => {
|
|
6659
6664
|
const m = h.target;
|
|
@@ -6662,7 +6667,7 @@ var Oe = "TooltipContent", os = l.forwardRef(
|
|
|
6662
6667
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
6663
6668
|
}
|
|
6664
6669
|
}, [c.trigger, d]), /* @__PURE__ */ g.jsx(
|
|
6665
|
-
|
|
6670
|
+
Ve,
|
|
6666
6671
|
{
|
|
6667
6672
|
asChild: !0,
|
|
6668
6673
|
disableOutsidePointerEvents: !1,
|
|
@@ -6671,7 +6676,7 @@ var Oe = "TooltipContent", os = l.forwardRef(
|
|
|
6671
6676
|
onFocusOutside: (f) => f.preventDefault(),
|
|
6672
6677
|
onDismiss: d,
|
|
6673
6678
|
children: /* @__PURE__ */ g.jsxs(
|
|
6674
|
-
|
|
6679
|
+
Lo,
|
|
6675
6680
|
{
|
|
6676
6681
|
"data-state": c.stateAttribute,
|
|
6677
6682
|
...u,
|
|
@@ -6686,7 +6691,7 @@ var Oe = "TooltipContent", os = l.forwardRef(
|
|
|
6686
6691
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6687
6692
|
},
|
|
6688
6693
|
children: [
|
|
6689
|
-
/* @__PURE__ */ g.jsx(
|
|
6694
|
+
/* @__PURE__ */ g.jsx(Qo, { children: r }),
|
|
6690
6695
|
/* @__PURE__ */ g.jsx(Cu, { scope: n, isInside: !0, children: /* @__PURE__ */ g.jsx(gu, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
6691
6696
|
]
|
|
6692
6697
|
}
|
|
@@ -6695,17 +6700,17 @@ var Oe = "TooltipContent", os = l.forwardRef(
|
|
|
6695
6700
|
);
|
|
6696
6701
|
}
|
|
6697
6702
|
);
|
|
6698
|
-
|
|
6699
|
-
var
|
|
6703
|
+
ss.displayName = Te;
|
|
6704
|
+
var is = "TooltipArrow", Ru = l.forwardRef(
|
|
6700
6705
|
(e, t) => {
|
|
6701
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6706
|
+
const { __scopeTooltip: n, ...r } = e, o = mt(n);
|
|
6702
6707
|
return Eu(
|
|
6703
|
-
|
|
6708
|
+
is,
|
|
6704
6709
|
n
|
|
6705
|
-
).isInside ? null : /* @__PURE__ */ g.jsx(
|
|
6710
|
+
).isInside ? null : /* @__PURE__ */ g.jsx(Fo, { ...o, ...r, ref: t });
|
|
6706
6711
|
}
|
|
6707
6712
|
);
|
|
6708
|
-
Ru.displayName =
|
|
6713
|
+
Ru.displayName = is;
|
|
6709
6714
|
function Pu(e, t) {
|
|
6710
6715
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
6711
6716
|
switch (Math.min(n, r, o, s)) {
|
|
@@ -6798,27 +6803,27 @@ function Tu(e) {
|
|
|
6798
6803
|
}
|
|
6799
6804
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6800
6805
|
}
|
|
6801
|
-
var ku =
|
|
6802
|
-
const
|
|
6803
|
-
|
|
6806
|
+
var ku = ts, Du = ns, ju = rs, Mu = os, ls = ss;
|
|
6807
|
+
const nd = ku, Iu = Du, _u = ju, cs = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ g.jsx(Mu, { children: /* @__PURE__ */ g.jsx(
|
|
6808
|
+
ls,
|
|
6804
6809
|
{
|
|
6805
6810
|
ref: r,
|
|
6806
6811
|
sideOffset: t,
|
|
6807
|
-
className:
|
|
6812
|
+
className: I(
|
|
6808
6813
|
"al-z-50 al-overflow-hidden al-rounded-md al-border al-bg-popover al-px-3 al-py-1.5 al-text-sm al-text-popover-foreground al-shadow-md al-animate-in al-fade-in-0 al-zoom-in-95 data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=closed]:al-zoom-out-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
|
|
6809
6814
|
e
|
|
6810
6815
|
),
|
|
6811
6816
|
...n
|
|
6812
6817
|
}
|
|
6813
6818
|
) }));
|
|
6814
|
-
|
|
6815
|
-
const
|
|
6819
|
+
cs.displayName = ls.displayName;
|
|
6820
|
+
const rd = ({
|
|
6816
6821
|
children: e,
|
|
6817
6822
|
title: t,
|
|
6818
6823
|
...n
|
|
6819
6824
|
}) => t ? /* @__PURE__ */ g.jsxs(Iu, { ...n, children: [
|
|
6820
6825
|
/* @__PURE__ */ g.jsx(_u, { asChild: !0, children: /* @__PURE__ */ g.jsx("span", { className: "al-max-w-full", children: e }) }),
|
|
6821
|
-
/* @__PURE__ */ g.jsx(
|
|
6826
|
+
/* @__PURE__ */ g.jsx(cs, { children: t })
|
|
6822
6827
|
] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6823
6828
|
/**
|
|
6824
6829
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
@@ -6853,9 +6858,9 @@ var Lu = {
|
|
|
6853
6858
|
* This source code is licensed under the MIT license.
|
|
6854
6859
|
* See the LICENSE file in the root directory of this source tree.
|
|
6855
6860
|
*/
|
|
6856
|
-
const
|
|
6861
|
+
const od = (e, t, n, r) => {
|
|
6857
6862
|
const o = G(
|
|
6858
|
-
({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) =>
|
|
6863
|
+
({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) => ht(
|
|
6859
6864
|
"svg",
|
|
6860
6865
|
{
|
|
6861
6866
|
ref: h,
|
|
@@ -6872,14 +6877,14 @@ const rd = (e, t, n, r) => {
|
|
|
6872
6877
|
...f
|
|
6873
6878
|
},
|
|
6874
6879
|
[
|
|
6875
|
-
c &&
|
|
6876
|
-
...r.map(([m, v]) =>
|
|
6880
|
+
c && ht("title", { key: "svg-title" }, c),
|
|
6881
|
+
...r.map(([m, v]) => ht(m, v)),
|
|
6877
6882
|
...Array.isArray(d) ? d : [d]
|
|
6878
6883
|
]
|
|
6879
6884
|
)
|
|
6880
6885
|
);
|
|
6881
6886
|
return o.displayName = `${n}`, o;
|
|
6882
|
-
},
|
|
6887
|
+
}, sd = G(function({
|
|
6883
6888
|
children: t,
|
|
6884
6889
|
wrap: n = !1,
|
|
6885
6890
|
justify: r,
|
|
@@ -6918,7 +6923,7 @@ const rd = (e, t, n, r) => {
|
|
|
6918
6923
|
// 64px
|
|
6919
6924
|
"8xl": "al-gap-20"
|
|
6920
6925
|
// 80px
|
|
6921
|
-
})[m], h =
|
|
6926
|
+
})[m], h = I(
|
|
6922
6927
|
"al-flex",
|
|
6923
6928
|
// Direction
|
|
6924
6929
|
c === "column" ? "al-flex-col" : "al-flex-row",
|
|
@@ -6950,85 +6955,86 @@ const rd = (e, t, n, r) => {
|
|
|
6950
6955
|
return /* @__PURE__ */ g.jsx("div", { ...u, className: h, ref: d, children: t });
|
|
6951
6956
|
});
|
|
6952
6957
|
export {
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6958
|
+
Nl as $,
|
|
6959
|
+
dn as A,
|
|
6960
|
+
_o as B,
|
|
6961
|
+
go as C,
|
|
6962
|
+
mo as D,
|
|
6963
|
+
it as E,
|
|
6964
|
+
qt as F,
|
|
6965
|
+
Pe as G,
|
|
6961
6966
|
Ku as H,
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6967
|
+
Xa as I,
|
|
6968
|
+
Vc as J,
|
|
6969
|
+
be as K,
|
|
6965
6970
|
Hu as L,
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6971
|
+
da as M,
|
|
6972
|
+
od as N,
|
|
6973
|
+
uo as O,
|
|
6969
6974
|
$ as P,
|
|
6970
6975
|
Zu as Q,
|
|
6971
|
-
|
|
6976
|
+
xl as R,
|
|
6972
6977
|
Qu as S,
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6978
|
+
wl as T,
|
|
6979
|
+
fa as U,
|
|
6980
|
+
Jo as V,
|
|
6976
6981
|
Uu as W,
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6982
|
+
lu as X,
|
|
6983
|
+
ed as Y,
|
|
6984
|
+
Al as Z,
|
|
6985
|
+
sa as _,
|
|
6981
6986
|
ae as a,
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6987
|
+
Dl as a0,
|
|
6988
|
+
Tl as a1,
|
|
6989
|
+
sd as a2,
|
|
6990
|
+
Ol as a3,
|
|
6991
|
+
Ml as a4,
|
|
6992
|
+
rd as a5,
|
|
6993
|
+
ii as a6,
|
|
6994
|
+
dr as a7,
|
|
6995
|
+
Wc as a8,
|
|
6996
|
+
$o as a9,
|
|
6992
6997
|
Gu as aa,
|
|
6993
|
-
|
|
6994
|
-
|
|
6998
|
+
Bu as ab,
|
|
6999
|
+
nd as ac,
|
|
6995
7000
|
Iu as ad,
|
|
6996
7001
|
_u as ae,
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7002
|
+
cs as af,
|
|
7003
|
+
ai as ag,
|
|
7004
|
+
Dr as ah,
|
|
7005
|
+
jl as ai,
|
|
7006
|
+
kl as aj,
|
|
7007
|
+
nu as ak,
|
|
7003
7008
|
Xu as al,
|
|
7004
7009
|
Yu as am,
|
|
7005
|
-
|
|
7010
|
+
zc as an,
|
|
7006
7011
|
Bc as ao,
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7012
|
+
Gc as ap,
|
|
7013
|
+
Hc as aq,
|
|
7014
|
+
Ju as ar,
|
|
7015
|
+
je as b,
|
|
7016
|
+
I as c,
|
|
7011
7017
|
k as d,
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7018
|
+
or as e,
|
|
7019
|
+
Ut as f,
|
|
7020
|
+
Cl as g,
|
|
7021
|
+
fo as h,
|
|
7022
|
+
po as i,
|
|
7023
|
+
Ht as j,
|
|
7024
|
+
De as k,
|
|
7025
|
+
Ma as l,
|
|
7026
|
+
ft as m,
|
|
7027
|
+
mr as n,
|
|
7022
7028
|
ee as o,
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
+
Ur as p,
|
|
7030
|
+
Lr as q,
|
|
7031
|
+
Ve as r,
|
|
7032
|
+
Ya as s,
|
|
7033
|
+
Lo as t,
|
|
7034
|
+
z as u,
|
|
7029
7035
|
re as v,
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7036
|
+
Fo as w,
|
|
7037
|
+
Zt as x,
|
|
7038
|
+
Ra as y,
|
|
7039
|
+
fr as z
|
|
7034
7040
|
};
|