@altimateai/ui-components 0.0.37-beta.4 → 0.0.37
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/CoachForm.css +1 -1
- package/dist/CoachForm.js +10695 -10744
- package/dist/Form.js +1623 -1916
- package/dist/Stack.js +562 -507
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index2.js +14 -14
- package/dist/lineage/index.js +3891 -3480
- package/dist/main.js +75 -75
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.js +2297 -2070
- package/dist/{types-COyBAkqH.d.ts → types-BynvDMUq.d.ts} +0 -2
- package/package.json +1 -1
package/dist/Stack.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as g, S as bs, C as ys } from "./index2.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
3
|
+
import he, { forwardRef as G, useState as xs, useLayoutEffect as ws, useEffect as Cs, createElement as gt } from "react";
|
|
4
4
|
import * as Yn from "react-dom";
|
|
5
5
|
import Es from "react-dom";
|
|
6
6
|
function Xn(e) {
|
|
@@ -12,35 +12,35 @@ function Xn(e) {
|
|
|
12
12
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
13
13
|
return r;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function zt() {
|
|
16
16
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Xn(e)) && (r && (r += " "), r += t);
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const Gt = "-", Rs = (e) => {
|
|
20
20
|
const t = Ss(e), {
|
|
21
21
|
conflictingClassGroups: n,
|
|
22
22
|
conflictingClassGroupModifiers: r
|
|
23
23
|
} = e;
|
|
24
24
|
return {
|
|
25
25
|
getClassGroupId: (a) => {
|
|
26
|
-
const i = a.split(
|
|
27
|
-
return i[0] === "" && i.length !== 1 && i.shift(),
|
|
26
|
+
const i = a.split(Gt);
|
|
27
|
+
return i[0] === "" && i.length !== 1 && i.shift(), qn(i, t) || Ps(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)
|
|
42
42
|
return;
|
|
43
|
-
const s = e.join(
|
|
43
|
+
const s = e.join(Gt);
|
|
44
44
|
return (a = t.validators.find(({
|
|
45
45
|
validator: i
|
|
46
46
|
}) => i(s))) == null ? void 0 : a.classGroupId;
|
|
@@ -85,7 +85,7 @@ const Bt = "-", Rs = (e) => {
|
|
|
85
85
|
});
|
|
86
86
|
}, En = (e, t) => {
|
|
87
87
|
let n = e;
|
|
88
|
-
return t.split(
|
|
88
|
+
return t.split(Gt).forEach((r) => {
|
|
89
89
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
90
90
|
nextPart: /* @__PURE__ */ new Map(),
|
|
91
91
|
validators: []
|
|
@@ -118,7 +118,7 @@ const Bt = "-", Rs = (e) => {
|
|
|
118
118
|
n.has(s) ? n.set(s, a) : o(s, a);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
},
|
|
121
|
+
}, Zn = "!", Ts = (e) => {
|
|
122
122
|
const {
|
|
123
123
|
separator: t,
|
|
124
124
|
experimentalParseClassName: n
|
|
@@ -139,7 +139,7 @@ const Bt = "-", 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(Zn), 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,
|
|
@@ -189,7 +189,7 @@ const Bt = "-", Rs = (e) => {
|
|
|
189
189
|
}
|
|
190
190
|
v = !1;
|
|
191
191
|
}
|
|
192
|
-
const b = ks(d).join(":"), y = f ? b +
|
|
192
|
+
const b = ks(d).join(":"), y = f ? b + Zn : b, x = y + p;
|
|
193
193
|
if (s.includes(x))
|
|
194
194
|
continue;
|
|
195
195
|
s.push(x);
|
|
@@ -205,15 +205,15 @@ const Bt = "-", Rs = (e) => {
|
|
|
205
205
|
function Is() {
|
|
206
206
|
let e = 0, t, n, r = "";
|
|
207
207
|
for (; e < arguments.length; )
|
|
208
|
-
(t = arguments[e++]) && (n =
|
|
208
|
+
(t = arguments[e++]) && (n = Qn(t)) && (r && (r += " "), r += n);
|
|
209
209
|
return r;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const Qn = (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 = Qn(e[r])) && (n && (n += " "), n += t);
|
|
217
217
|
return n;
|
|
218
218
|
};
|
|
219
219
|
function _s(e, ...t) {
|
|
@@ -233,24 +233,24 @@ function _s(e, ...t) {
|
|
|
233
233
|
return s(Is.apply(null, arguments));
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const I = (e) => {
|
|
237
237
|
const t = (n) => n[e] || [];
|
|
238
238
|
return t.isThemeGetter = !0, t;
|
|
239
|
-
},
|
|
240
|
-
const r =
|
|
239
|
+
}, Jn = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ls = /^\d+\/\d+$/, Fs = /* @__PURE__ */ new Set(["px", "full", "screen"]), $s = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ws = /\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$/, Vs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Bs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ne = (e) => Ee(e) || Fs.has(e) || Ls.test(e), ie = (e) => Te(e, "length", Zs), Ee = (e) => !!e && !Number.isNaN(Number(e)), ht = (e) => Te(e, "number", Ee), _e = (e) => !!e && Number.isInteger(Number(e)), Gs = (e) => e.endsWith("%") && Ee(e.slice(0, -1)), N = (e) => Jn.test(e), le = (e) => $s.test(e), Hs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Us = (e) => Te(e, Hs, er), Ks = (e) => Te(e, "position", er), Ys = /* @__PURE__ */ new Set(["image", "url"]), Xs = (e) => Te(e, Ys, Js), qs = (e) => Te(e, "", Qs), Le = () => !0, Te = (e, t, n) => {
|
|
240
|
+
const r = Jn.exec(e);
|
|
241
241
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
242
242
|
}, Zs = (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
246
|
Ws.test(e) && !Vs.test(e)
|
|
247
|
-
),
|
|
248
|
-
const e =
|
|
247
|
+
), er = () => !1, Qs = (e) => Bs.test(e), Js = (e) => zs.test(e), ea = () => {
|
|
248
|
+
const e = I("colors"), t = I("spacing"), n = I("blur"), r = I("brightness"), o = I("borderColor"), s = I("borderRadius"), a = I("borderSpacing"), i = I("borderWidth"), c = I("contrast"), u = I("grayscale"), d = I("hueRotate"), f = I("invert"), h = I("gap"), m = I("gradientColorStops"), v = I("gradientColorStopPositions"), p = I("inset"), b = I("margin"), y = I("opacity"), x = I("padding"), C = I("saturate"), w = I("scale"), E = I("sepia"), P = I("skew"), R = I("space"), S = I("translate"), M = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Ee, N], z = () => ["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 = () => [Ee, N];
|
|
249
249
|
return {
|
|
250
250
|
cacheSize: 500,
|
|
251
251
|
separator: ":",
|
|
252
252
|
theme: {
|
|
253
|
-
colors: [
|
|
253
|
+
colors: [Le],
|
|
254
254
|
spacing: [ne, ie],
|
|
255
255
|
blur: ["none", "", le, N],
|
|
256
256
|
brightness: H(),
|
|
@@ -368,7 +368,7 @@ const _ = (e) => {
|
|
|
368
368
|
* @see https://tailwindcss.com/docs/object-position
|
|
369
369
|
*/
|
|
370
370
|
"object-position": [{
|
|
371
|
-
object: [...
|
|
371
|
+
object: [...z(), N]
|
|
372
372
|
}],
|
|
373
373
|
/**
|
|
374
374
|
* Overflow
|
|
@@ -490,7 +490,7 @@ const _ = (e) => {
|
|
|
490
490
|
* @see https://tailwindcss.com/docs/z-index
|
|
491
491
|
*/
|
|
492
492
|
z: [{
|
|
493
|
-
z: ["auto",
|
|
493
|
+
z: ["auto", _e, N]
|
|
494
494
|
}],
|
|
495
495
|
// Flexbox and Grid
|
|
496
496
|
/**
|
|
@@ -540,14 +540,14 @@ const _ = (e) => {
|
|
|
540
540
|
* @see https://tailwindcss.com/docs/order
|
|
541
541
|
*/
|
|
542
542
|
order: [{
|
|
543
|
-
order: ["first", "last", "none",
|
|
543
|
+
order: ["first", "last", "none", _e, 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": [Le]
|
|
551
551
|
}],
|
|
552
552
|
/**
|
|
553
553
|
* Grid Column Start / End
|
|
@@ -555,7 +555,7 @@ const _ = (e) => {
|
|
|
555
555
|
*/
|
|
556
556
|
"col-start-end": [{
|
|
557
557
|
col: ["auto", {
|
|
558
|
-
span: ["full",
|
|
558
|
+
span: ["full", _e, N]
|
|
559
559
|
}, N]
|
|
560
560
|
}],
|
|
561
561
|
/**
|
|
@@ -577,7 +577,7 @@ const _ = (e) => {
|
|
|
577
577
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
578
578
|
*/
|
|
579
579
|
"grid-rows": [{
|
|
580
|
-
"grid-rows": [
|
|
580
|
+
"grid-rows": [Le]
|
|
581
581
|
}],
|
|
582
582
|
/**
|
|
583
583
|
* Grid Row Start / End
|
|
@@ -585,7 +585,7 @@ const _ = (e) => {
|
|
|
585
585
|
*/
|
|
586
586
|
"row-start-end": [{
|
|
587
587
|
row: ["auto", {
|
|
588
|
-
span: [
|
|
588
|
+
span: [_e, N]
|
|
589
589
|
}, N]
|
|
590
590
|
}],
|
|
591
591
|
/**
|
|
@@ -940,7 +940,7 @@ const _ = (e) => {
|
|
|
940
940
|
* @see https://tailwindcss.com/docs/font-family
|
|
941
941
|
*/
|
|
942
942
|
"font-family": [{
|
|
943
|
-
font: [
|
|
943
|
+
font: [Le]
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Font Variant Numeric
|
|
@@ -984,7 +984,7 @@ const _ = (e) => {
|
|
|
984
984
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
985
985
|
*/
|
|
986
986
|
"line-clamp": [{
|
|
987
|
-
"line-clamp": ["none",
|
|
987
|
+
"line-clamp": ["none", Ee, ht]
|
|
988
988
|
}],
|
|
989
989
|
/**
|
|
990
990
|
* Line Height
|
|
@@ -1177,7 +1177,7 @@ const _ = (e) => {
|
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/background-position
|
|
1178
1178
|
*/
|
|
1179
1179
|
"bg-position": [{
|
|
1180
|
-
bg: [...
|
|
1180
|
+
bg: [...z(), Ks]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Background Repeat
|
|
@@ -1625,7 +1625,7 @@ const _ = (e) => {
|
|
|
1625
1625
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1626
1626
|
*/
|
|
1627
1627
|
"shadow-color": [{
|
|
1628
|
-
shadow: [
|
|
1628
|
+
shadow: [Le]
|
|
1629
1629
|
}],
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Opacity
|
|
@@ -1904,7 +1904,7 @@ const _ = (e) => {
|
|
|
1904
1904
|
* @see https://tailwindcss.com/docs/rotate
|
|
1905
1905
|
*/
|
|
1906
1906
|
rotate: [{
|
|
1907
|
-
rotate: [
|
|
1907
|
+
rotate: [_e, N]
|
|
1908
1908
|
}],
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Translate X
|
|
@@ -2274,8 +2274,8 @@ const _ = (e) => {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
2276
|
}, ta = /* @__PURE__ */ _s(ea);
|
|
2277
|
-
function
|
|
2278
|
-
return ta(
|
|
2277
|
+
function _(...e) {
|
|
2278
|
+
return ta(zt(e));
|
|
2279
2279
|
}
|
|
2280
2280
|
function Rn(e, t) {
|
|
2281
2281
|
if (typeof e == "function")
|
|
@@ -2302,7 +2302,7 @@ function ra(...e) {
|
|
|
2302
2302
|
return l.useCallback(na(...e), e);
|
|
2303
2303
|
}
|
|
2304
2304
|
// @__NO_SIDE_EFFECTS__
|
|
2305
|
-
function
|
|
2305
|
+
function tr(e) {
|
|
2306
2306
|
const t = /* @__PURE__ */ sa(e), n = l.forwardRef((r, o) => {
|
|
2307
2307
|
const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(ia);
|
|
2308
2308
|
if (c) {
|
|
@@ -2313,7 +2313,7 @@ function nr(e) {
|
|
|
2313
2313
|
});
|
|
2314
2314
|
return n.displayName = `${e}.Slot`, n;
|
|
2315
2315
|
}
|
|
2316
|
-
var oa = /* @__PURE__ */
|
|
2316
|
+
var oa = /* @__PURE__ */ tr("Slot");
|
|
2317
2317
|
// @__NO_SIDE_EFFECTS__
|
|
2318
2318
|
function sa(e) {
|
|
2319
2319
|
const t = l.forwardRef((n, r) => {
|
|
@@ -2346,7 +2346,7 @@ function ca(e) {
|
|
|
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 Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sn =
|
|
2349
|
+
const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sn = zt, nr = (e, t) => (n) => {
|
|
2350
2350
|
var r;
|
|
2351
2351
|
if ((t == null ? void 0 : t.variants) == null) return Sn(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) => {
|
|
@@ -2375,7 +2375,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sn = qn, G
|
|
|
2375
2375
|
] : u;
|
|
2376
2376
|
}, []);
|
|
2377
2377
|
return Sn(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2378
|
-
}, ua =
|
|
2378
|
+
}, ua = nr(
|
|
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: {
|
|
@@ -2404,7 +2404,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sn = qn, G
|
|
|
2404
2404
|
), da = l.forwardRef(
|
|
2405
2405
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
|
|
2406
2406
|
const a = r ? oa : "button";
|
|
2407
|
-
return /* @__PURE__ */ g.jsx(a, { className:
|
|
2407
|
+
return /* @__PURE__ */ g.jsx(a, { className: _(ua({ variant: t, size: n, className: e })), ref: s, ...o });
|
|
2408
2408
|
}
|
|
2409
2409
|
);
|
|
2410
2410
|
da.displayName = "Button";
|
|
@@ -2413,7 +2413,7 @@ function An(e, t) {
|
|
|
2413
2413
|
return e(t);
|
|
2414
2414
|
e != null && (e.current = t);
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function ke(...e) {
|
|
2417
2417
|
return (t) => {
|
|
2418
2418
|
let n = !1;
|
|
2419
2419
|
const r = e.map((o) => {
|
|
@@ -2429,8 +2429,8 @@ function De(...e) {
|
|
|
2429
2429
|
};
|
|
2430
2430
|
};
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return l.useCallback(
|
|
2432
|
+
function B(...e) {
|
|
2433
|
+
return l.useCallback(ke(...e), e);
|
|
2434
2434
|
}
|
|
2435
2435
|
function fa(e, t) {
|
|
2436
2436
|
const n = l.createContext(t), r = (s) => {
|
|
@@ -2511,7 +2511,7 @@ function re(e) {
|
|
|
2511
2511
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
2512
2512
|
}, []);
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function De({
|
|
2515
2515
|
prop: e,
|
|
2516
2516
|
defaultProp: t,
|
|
2517
2517
|
onChange: n = () => {
|
|
@@ -2542,11 +2542,11 @@ function rr(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 ve = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
2546
2546
|
};
|
|
2547
2547
|
function Ht(e) {
|
|
2548
2548
|
const [t, n] = l.useState(void 0);
|
|
2549
|
-
return
|
|
2549
|
+
return ve(() => {
|
|
2550
2550
|
if (e) {
|
|
2551
2551
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2552
2552
|
const r = new ResizeObserver((o) => {
|
|
@@ -2570,7 +2570,7 @@ function ga(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 = ha(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s =
|
|
2573
|
+
const { present: t, children: n } = e, r = ha(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = B(r.ref, va(o));
|
|
2574
2574
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: s }) : null;
|
|
2575
2575
|
};
|
|
2576
2576
|
ee.displayName = "Presence";
|
|
@@ -2589,19 +2589,19 @@ function ha(e) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
});
|
|
2591
2591
|
return l.useEffect(() => {
|
|
2592
|
-
const u =
|
|
2592
|
+
const u = He(r.current);
|
|
2593
2593
|
s.current = i === "mounted" ? u : "none";
|
|
2594
|
-
}, [i]),
|
|
2594
|
+
}, [i]), ve(() => {
|
|
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 = He(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]), ve(() => {
|
|
2601
2601
|
if (t) {
|
|
2602
2602
|
let u;
|
|
2603
2603
|
const d = t.ownerDocument.defaultView ?? window, f = (m) => {
|
|
2604
|
-
const p =
|
|
2604
|
+
const p = He(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 = He(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,7 +2623,7 @@ function ha(e) {
|
|
|
2623
2623
|
}, [])
|
|
2624
2624
|
};
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function He(e) {
|
|
2627
2627
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2628
2628
|
}
|
|
2629
2629
|
function va(e) {
|
|
@@ -2647,7 +2647,7 @@ var Nt = l.forwardRef((e, t) => {
|
|
|
2647
2647
|
return l.cloneElement(n, {
|
|
2648
2648
|
...xa(r, n.props),
|
|
2649
2649
|
// @ts-ignore
|
|
2650
|
-
ref: t ?
|
|
2650
|
+
ref: t ? ke(t, o) : o
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
2653
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
@@ -2699,7 +2699,7 @@ var Ca = [
|
|
|
2699
2699
|
function Ea(e, t) {
|
|
2700
2700
|
e && Yn.flushSync(() => e.dispatchEvent(t));
|
|
2701
2701
|
}
|
|
2702
|
-
var Ut = "Checkbox", [Ra,
|
|
2702
|
+
var Ut = "Checkbox", [Ra, Vu] = ae(Ut), [Pa, Sa] = Ra(Ut), sr = l.forwardRef(
|
|
2703
2703
|
(e, t) => {
|
|
2704
2704
|
const {
|
|
2705
2705
|
__scopeCheckbox: n,
|
|
@@ -2712,7 +2712,7 @@ var Ut = "Checkbox", [Ra, $u] = 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 = B(t, (w) => m(w)), p = l.useRef(!1), b = h ? d || !!h.closest("form") : !0, [y = !1, x] = De({
|
|
2716
2716
|
prop: o,
|
|
2717
2717
|
defaultProp: s,
|
|
2718
2718
|
onChange: u
|
|
@@ -2729,7 +2729,7 @@ var Ut = "Checkbox", [Ra, $u] = ae(Ut), [Pa, Sa] = Ra(Ut), sr = l.forwardRef(
|
|
|
2729
2729
|
{
|
|
2730
2730
|
type: "button",
|
|
2731
2731
|
role: "checkbox",
|
|
2732
|
-
"aria-checked":
|
|
2732
|
+
"aria-checked": ue(y) ? "mixed" : y,
|
|
2733
2733
|
"aria-required": a,
|
|
2734
2734
|
"data-state": lr(y),
|
|
2735
2735
|
"data-disabled": i ? "" : void 0,
|
|
@@ -2741,7 +2741,7 @@ var Ut = "Checkbox", [Ra, $u] = 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) => ue(E) ? !0 : !E), b && (p.current = w.isPropagationStopped(), p.current || w.stopPropagation());
|
|
2745
2745
|
})
|
|
2746
2746
|
}
|
|
2747
2747
|
),
|
|
@@ -2757,7 +2757,7 @@ var Ut = "Checkbox", [Ra, $u] = 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: ue(s) ? !1 : s
|
|
2761
2761
|
}
|
|
2762
2762
|
)
|
|
2763
2763
|
] });
|
|
@@ -2767,7 +2767,7 @@ sr.displayName = Ut;
|
|
|
2767
2767
|
var ar = "CheckboxIndicator", ir = l.forwardRef(
|
|
2768
2768
|
(e, t) => {
|
|
2769
2769
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = Sa(ar, n);
|
|
2770
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r ||
|
|
2770
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || ue(s.state) || s.state === !0, children: /* @__PURE__ */ g.jsx(
|
|
2771
2771
|
$.span,
|
|
2772
2772
|
{
|
|
2773
2773
|
"data-state": lr(s.state),
|
|
@@ -2786,10 +2786,10 @@ var Aa = (e) => {
|
|
|
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 = ue(n), m.call(d, ue(n) ? !1 : n), d.dispatchEvent(v);
|
|
2790
2790
|
}
|
|
2791
2791
|
}, [i, n, r]);
|
|
2792
|
-
const u = l.useRef(
|
|
2792
|
+
const u = l.useRef(ue(n) ? !1 : n);
|
|
2793
2793
|
return /* @__PURE__ */ g.jsx(
|
|
2794
2794
|
"input",
|
|
2795
2795
|
{
|
|
@@ -2810,18 +2810,18 @@ var Aa = (e) => {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
);
|
|
2812
2812
|
};
|
|
2813
|
-
function
|
|
2813
|
+
function ue(e) {
|
|
2814
2814
|
return e === "indeterminate";
|
|
2815
2815
|
}
|
|
2816
2816
|
function lr(e) {
|
|
2817
|
-
return
|
|
2817
|
+
return ue(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
2818
2818
|
}
|
|
2819
2819
|
var cr = sr, Na = ir;
|
|
2820
2820
|
const ur = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
2821
2821
|
cr,
|
|
2822
2822
|
{
|
|
2823
2823
|
ref: n,
|
|
2824
|
-
className:
|
|
2824
|
+
className: _(
|
|
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
|
),
|
|
@@ -2829,7 +2829,7 @@ const ur = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
|
2829
2829
|
children: /* @__PURE__ */ g.jsx(
|
|
2830
2830
|
Na,
|
|
2831
2831
|
{
|
|
2832
|
-
className:
|
|
2832
|
+
className: _("al-flex al-items-center al-justify-center al-text-current"),
|
|
2833
2833
|
children: /* @__PURE__ */ g.jsx(
|
|
2834
2834
|
"svg",
|
|
2835
2835
|
{
|
|
@@ -2866,7 +2866,7 @@ var Tt = l.forwardRef((e, t) => {
|
|
|
2866
2866
|
return l.cloneElement(n, {
|
|
2867
2867
|
...ka(r, n.props),
|
|
2868
2868
|
// @ts-ignore
|
|
2869
|
-
ref: t ?
|
|
2869
|
+
ref: t ? ke(t, o) : o
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
2872
2872
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
@@ -2896,27 +2896,27 @@ function ja(e) {
|
|
|
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 = he.useRef(null), y = he.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 = he.forwardRef(
|
|
2904
2904
|
(m, v) => {
|
|
2905
|
-
const { scope: p, children: b } = m, y = s(i, p), x =
|
|
2905
|
+
const { scope: p, children: b } = m, y = s(i, p), x = B(v, y.collectionRef);
|
|
2906
2906
|
return /* @__PURE__ */ g.jsx(Ot, { 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 = he.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 = he.useRef(null), C = B(v, x), w = s(u, p);
|
|
2913
|
+
return he.useEffect(() => (w.itemMap.set(x, { ref: x, ...y }), () => void w.itemMap.delete(x))), /* @__PURE__ */ g.jsx(Ot, { [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 he.useCallback(() => {
|
|
2920
2920
|
const b = v.collectionRef.current;
|
|
2921
2921
|
if (!b) return [];
|
|
2922
2922
|
const y = Array.from(b.querySelectorAll(`[${d}]`));
|
|
@@ -2933,9 +2933,9 @@ function ja(e) {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
var Ma = l.useId || (() => {
|
|
2935
2935
|
}), Ia = 0;
|
|
2936
|
-
function
|
|
2936
|
+
function Re(e) {
|
|
2937
2937
|
const [t, n] = l.useState(Ma());
|
|
2938
|
-
return
|
|
2938
|
+
return ve(() => {
|
|
2939
2939
|
n((r) => r ?? String(Ia++));
|
|
2940
2940
|
}, [e]), t ? `radix-${t}` : "";
|
|
2941
2941
|
}
|
|
@@ -2944,14 +2944,14 @@ function dr(e) {
|
|
|
2944
2944
|
const t = l.useContext(_a);
|
|
2945
2945
|
return e || t || "ltr";
|
|
2946
2946
|
}
|
|
2947
|
-
var vt = "rovingFocusGroup.onEntryFocus", La = { bubbles: !1, cancelable: !0 },
|
|
2948
|
-
|
|
2947
|
+
var vt = "rovingFocusGroup.onEntryFocus", La = { bubbles: !1, cancelable: !0 }, st = "RovingFocusGroup", [kt, fr, Fa] = ja(st), [$a, pr] = ae(
|
|
2948
|
+
st,
|
|
2949
2949
|
[Fa]
|
|
2950
|
-
), [Wa, Va] = $a(
|
|
2951
|
-
(e, t) => /* @__PURE__ */ g.jsx(kt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(kt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(
|
|
2950
|
+
), [Wa, Va] = $a(st), mr = l.forwardRef(
|
|
2951
|
+
(e, t) => /* @__PURE__ */ g.jsx(kt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(kt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Ba, { ...e, ref: t }) }) })
|
|
2952
2952
|
);
|
|
2953
|
-
mr.displayName =
|
|
2954
|
-
var
|
|
2953
|
+
mr.displayName = st;
|
|
2954
|
+
var Ba = l.forwardRef((e, t) => {
|
|
2955
2955
|
const {
|
|
2956
2956
|
__scopeRovingFocusGroup: n,
|
|
2957
2957
|
orientation: r,
|
|
@@ -2963,7 +2963,7 @@ var za = 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 = B(t, h), v = dr(s), [p = null, b] = De({
|
|
2967
2967
|
prop: a,
|
|
2968
2968
|
defaultProp: i,
|
|
2969
2969
|
onChange: c
|
|
@@ -3009,10 +3009,10 @@ var za = l.forwardRef((e, t) => {
|
|
|
3009
3009
|
if (S.target === S.currentTarget && M && !y) {
|
|
3010
3010
|
const D = new CustomEvent(vt, La);
|
|
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), z = [A, L, ...F].filter(
|
|
3013
3013
|
Boolean
|
|
3014
3014
|
).map((T) => T.ref.current);
|
|
3015
|
-
vr(
|
|
3015
|
+
vr(z, d);
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
3018
|
E.current = !1;
|
|
@@ -3030,7 +3030,7 @@ var za = l.forwardRef((e, t) => {
|
|
|
3030
3030
|
active: o = !1,
|
|
3031
3031
|
tabStopId: s,
|
|
3032
3032
|
...a
|
|
3033
|
-
} = e, i =
|
|
3033
|
+
} = e, i = Re(), c = s || i, u = Va(gr, n), d = u.currentTabStopId === c, f = fr(n), { onFocusableItemAdd: h, onFocusableItemRemove: m } = u;
|
|
3034
3034
|
return l.useEffect(() => {
|
|
3035
3035
|
if (r)
|
|
3036
3036
|
return h(), () => m();
|
|
@@ -3079,7 +3079,7 @@ var za = l.forwardRef((e, t) => {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
);
|
|
3081
3081
|
hr.displayName = gr;
|
|
3082
|
-
var
|
|
3082
|
+
var za = {
|
|
3083
3083
|
ArrowLeft: "prev",
|
|
3084
3084
|
ArrowUp: "prev",
|
|
3085
3085
|
ArrowRight: "next",
|
|
@@ -3095,7 +3095,7 @@ function Ga(e, t) {
|
|
|
3095
3095
|
function Ha(e, t, n) {
|
|
3096
3096
|
const r = Ga(e.key, n);
|
|
3097
3097
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
3098
|
-
return
|
|
3098
|
+
return za[r];
|
|
3099
3099
|
}
|
|
3100
3100
|
function vr(e, t = !1) {
|
|
3101
3101
|
const n = document.activeElement;
|
|
@@ -3117,7 +3117,7 @@ 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 =
|
|
3120
|
+
} = e, [f, h] = l.useState(null), m = B(t, (b) => h(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
|
|
3121
3121
|
return /* @__PURE__ */ g.jsxs(qa, { scope: n, checked: o, disabled: a, children: [
|
|
3122
3122
|
/* @__PURE__ */ g.jsx(
|
|
3123
3123
|
$.button,
|
|
@@ -3200,7 +3200,7 @@ var Qa = (e) => {
|
|
|
3200
3200
|
function Cr(e) {
|
|
3201
3201
|
return e ? "checked" : "unchecked";
|
|
3202
3202
|
}
|
|
3203
|
-
var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup", [ei,
|
|
3203
|
+
var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup", [ei, Bu] = ae(Yt, [
|
|
3204
3204
|
pr,
|
|
3205
3205
|
br
|
|
3206
3206
|
]), Er = pr(), Rr = br(), [ti, ni] = ei(Yt), Pr = l.forwardRef(
|
|
@@ -3217,7 +3217,7 @@ var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup",
|
|
|
3217
3217
|
loop: d = !0,
|
|
3218
3218
|
onValueChange: f,
|
|
3219
3219
|
...h
|
|
3220
|
-
} = e, m = Er(n), v = dr(u), [p, b] =
|
|
3220
|
+
} = e, m = Er(n), v = dr(u), [p, b] = De({
|
|
3221
3221
|
prop: s,
|
|
3222
3222
|
defaultProp: o,
|
|
3223
3223
|
onChange: f
|
|
@@ -3260,7 +3260,7 @@ var Ja = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup",
|
|
|
3260
3260
|
Pr.displayName = Yt;
|
|
3261
3261
|
var Sr = "RadioGroupItem", Ar = l.forwardRef(
|
|
3262
3262
|
(e, t) => {
|
|
3263
|
-
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = ni(Sr, n), a = s.disabled || r, i = Er(n), c = Rr(n), u = l.useRef(null), d =
|
|
3263
|
+
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = ni(Sr, n), a = s.disabled || r, i = Er(n), c = Rr(n), u = l.useRef(null), d = B(t, u), f = s.value === o.value, h = l.useRef(!1);
|
|
3264
3264
|
return l.useEffect(() => {
|
|
3265
3265
|
const m = (p) => {
|
|
3266
3266
|
Ja.includes(p.key) && (h.current = !0);
|
|
@@ -3308,13 +3308,13 @@ var ri = "RadioGroupIndicator", Nr = l.forwardRef(
|
|
|
3308
3308
|
);
|
|
3309
3309
|
Nr.displayName = ri;
|
|
3310
3310
|
var Or = Pr, Tr = Ar, oi = Nr;
|
|
3311
|
-
const si = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(Or, { className:
|
|
3311
|
+
const si = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(Or, { className: _("al-grid al-gap-2", e), ...t, ref: n }));
|
|
3312
3312
|
si.displayName = Or.displayName;
|
|
3313
3313
|
const kr = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
3314
3314
|
Tr,
|
|
3315
3315
|
{
|
|
3316
3316
|
ref: n,
|
|
3317
|
-
className:
|
|
3317
|
+
className: _(
|
|
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
|
),
|
|
@@ -3341,7 +3341,7 @@ const ai = l.forwardRef(
|
|
|
3341
3341
|
"input",
|
|
3342
3342
|
{
|
|
3343
3343
|
type: t,
|
|
3344
|
-
className:
|
|
3344
|
+
className: _(
|
|
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: _(
|
|
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: _(
|
|
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
|
),
|
|
@@ -3387,7 +3387,7 @@ var li = "DismissableLayer", Dt = "dismissableLayer.update", ci = "dismissableLa
|
|
|
3387
3387
|
layers: /* @__PURE__ */ new Set(),
|
|
3388
3388
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3389
3389
|
branches: /* @__PURE__ */ new Set()
|
|
3390
|
-
}),
|
|
3390
|
+
}), We = l.forwardRef(
|
|
3391
3391
|
(e, t) => {
|
|
3392
3392
|
const {
|
|
3393
3393
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -3397,7 +3397,7 @@ var li = "DismissableLayer", Dt = "dismissableLayer.update", ci = "dismissableLa
|
|
|
3397
3397
|
onInteractOutside: a,
|
|
3398
3398
|
onDismiss: i,
|
|
3399
3399
|
...c
|
|
3400
|
-
} = e, u = l.useContext(Dr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v =
|
|
3400
|
+
} = e, u = l.useContext(Dr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = B(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 = fi((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
3403
|
}, h), P = pi((R) => {
|
|
@@ -3435,9 +3435,9 @@ var li = "DismissableLayer", Dt = "dismissableLayer.update", ci = "dismissableLa
|
|
|
3435
3435
|
);
|
|
3436
3436
|
}
|
|
3437
3437
|
);
|
|
3438
|
-
|
|
3438
|
+
We.displayName = li;
|
|
3439
3439
|
var di = "DismissableLayerBranch", jr = l.forwardRef((e, t) => {
|
|
3440
|
-
const n = l.useContext(Dr), r = l.useRef(null), o =
|
|
3440
|
+
const n = l.useContext(Dr), r = l.useRef(null), o = B(t, r);
|
|
3441
3441
|
return l.useEffect(() => {
|
|
3442
3442
|
const s = r.current;
|
|
3443
3443
|
if (s)
|
|
@@ -3499,14 +3499,14 @@ function Mr(e, t, n, { discrete: r }) {
|
|
|
3499
3499
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3500
3500
|
t && o.addEventListener(e, t, { once: !0 }), r ? Ea(o, s) : o.dispatchEvent(s);
|
|
3501
3501
|
}
|
|
3502
|
-
var
|
|
3502
|
+
var zu = We, Gu = jr, bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoFocusOnUnmount", Tn = { bubbles: !1, cancelable: !0 }, mi = "FocusScope", Xt = 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 = B(t, (p) => c(p)), m = l.useRef({
|
|
3510
3510
|
paused: !1,
|
|
3511
3511
|
pause() {
|
|
3512
3512
|
this.paused = !0;
|
|
@@ -3628,14 +3628,14 @@ function jn(e, t) {
|
|
|
3628
3628
|
function xi(e) {
|
|
3629
3629
|
return e.filter((t) => t.tagName !== "A");
|
|
3630
3630
|
}
|
|
3631
|
-
var wi = "Portal",
|
|
3631
|
+
var wi = "Portal", at = l.forwardRef((e, t) => {
|
|
3632
3632
|
var i;
|
|
3633
3633
|
const { container: n, ...r } = e, [o, s] = l.useState(!1);
|
|
3634
|
-
|
|
3634
|
+
ve(() => s(!0), []);
|
|
3635
3635
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
3636
3636
|
return a ? Es.createPortal(/* @__PURE__ */ g.jsx($.div, { ...r, ref: t }), a) : null;
|
|
3637
3637
|
});
|
|
3638
|
-
|
|
3638
|
+
at.displayName = wi;
|
|
3639
3639
|
var xt = 0;
|
|
3640
3640
|
function _r() {
|
|
3641
3641
|
l.useEffect(() => {
|
|
@@ -3671,7 +3671,7 @@ function Ci(e, t, n) {
|
|
|
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
|
|
3674
|
+
var Ze = "right-scroll-bar-position", Qe = "width-before-scroll-bar", Ei = "with-scroll-bars-hidden", Ri = "--removed-body-scroll-bar-size";
|
|
3675
3675
|
function wt(e, t) {
|
|
3676
3676
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3677
3677
|
}
|
|
@@ -3793,7 +3793,7 @@ function ki(e, t) {
|
|
|
3793
3793
|
return e.useMedium(t), Fr;
|
|
3794
3794
|
}
|
|
3795
3795
|
var $r = Ti(), Ct = function() {
|
|
3796
|
-
},
|
|
3796
|
+
}, it = l.forwardRef(function(e, t) {
|
|
3797
3797
|
var n = l.useRef(null), r = l.useState({
|
|
3798
3798
|
onScrollCapture: Ct,
|
|
3799
3799
|
onWheelCapture: Ct,
|
|
@@ -3806,14 +3806,14 @@ var $r = Ti(), Ct = function() {
|
|
|
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
|
+
it.defaultProps = {
|
|
3810
3810
|
enabled: !0,
|
|
3811
3811
|
removeScrollBar: !0,
|
|
3812
3812
|
inert: !1
|
|
3813
3813
|
};
|
|
3814
|
-
|
|
3815
|
-
fullWidth:
|
|
3816
|
-
zeroRight:
|
|
3814
|
+
it.classNames = {
|
|
3815
|
+
fullWidth: Qe,
|
|
3816
|
+
zeroRight: Ze
|
|
3817
3817
|
};
|
|
3818
3818
|
var Di = function() {
|
|
3819
3819
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -3879,14 +3879,14 @@ var _i = function() {
|
|
|
3879
3879
|
right: t[2],
|
|
3880
3880
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3881
3881
|
};
|
|
3882
|
-
}, Vi = Wr(),
|
|
3882
|
+
}, Vi = Wr(), Pe = "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
3885
|
.`.concat(Ei, ` {
|
|
3886
3886
|
overflow: hidden `).concat(r, `;
|
|
3887
3887
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
3888
3888
|
}
|
|
3889
|
-
body[`).concat(
|
|
3889
|
+
body[`).concat(Pe, `] {
|
|
3890
3890
|
overflow: hidden `).concat(r, `;
|
|
3891
3891
|
overscroll-behavior: contain;
|
|
3892
3892
|
`).concat([
|
|
@@ -3903,56 +3903,56 @@ var _i = function() {
|
|
|
3903
3903
|
].filter(Boolean).join(""), `
|
|
3904
3904
|
}
|
|
3905
3905
|
|
|
3906
|
-
.`).concat(
|
|
3906
|
+
.`).concat(Ze, ` {
|
|
3907
3907
|
right: `).concat(i, "px ").concat(r, `;
|
|
3908
3908
|
}
|
|
3909
3909
|
|
|
3910
|
-
.`).concat(
|
|
3910
|
+
.`).concat(Qe, ` {
|
|
3911
3911
|
margin-right: `).concat(i, "px ").concat(r, `;
|
|
3912
3912
|
}
|
|
3913
3913
|
|
|
3914
|
-
.`).concat(
|
|
3914
|
+
.`).concat(Ze, " .").concat(Ze, ` {
|
|
3915
3915
|
right: 0 `).concat(r, `;
|
|
3916
3916
|
}
|
|
3917
3917
|
|
|
3918
|
-
.`).concat(
|
|
3918
|
+
.`).concat(Qe, " .").concat(Qe, ` {
|
|
3919
3919
|
margin-right: 0 `).concat(r, `;
|
|
3920
3920
|
}
|
|
3921
3921
|
|
|
3922
|
-
body[`).concat(
|
|
3922
|
+
body[`).concat(Pe, `] {
|
|
3923
3923
|
`).concat(Ri, ": ").concat(i, `px;
|
|
3924
3924
|
}
|
|
3925
3925
|
`);
|
|
3926
3926
|
}, _n = function() {
|
|
3927
|
-
var e = parseInt(document.body.getAttribute(
|
|
3927
|
+
var e = parseInt(document.body.getAttribute(Pe) || "0", 10);
|
|
3928
3928
|
return isFinite(e) ? e : 0;
|
|
3929
|
-
},
|
|
3929
|
+
}, zi = function() {
|
|
3930
3930
|
l.useEffect(function() {
|
|
3931
|
-
return document.body.setAttribute(
|
|
3931
|
+
return document.body.setAttribute(Pe, (_n() + 1).toString()), function() {
|
|
3932
3932
|
var e = _n() - 1;
|
|
3933
|
-
e <= 0 ? document.body.removeAttribute(
|
|
3933
|
+
e <= 0 ? document.body.removeAttribute(Pe) : document.body.setAttribute(Pe, e.toString());
|
|
3934
3934
|
};
|
|
3935
3935
|
}, []);
|
|
3936
3936
|
}, Gi = function(e) {
|
|
3937
3937
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3938
|
-
|
|
3938
|
+
zi();
|
|
3939
3939
|
var s = l.useMemo(function() {
|
|
3940
3940
|
return Wi(o);
|
|
3941
3941
|
}, [o]);
|
|
3942
|
-
return l.createElement(Vi, { styles:
|
|
3942
|
+
return l.createElement(Vi, { styles: Bi(s, !t, o, n ? "" : "!important") });
|
|
3943
3943
|
}, jt = !1;
|
|
3944
3944
|
if (typeof window < "u")
|
|
3945
3945
|
try {
|
|
3946
|
-
var
|
|
3946
|
+
var Ue = Object.defineProperty({}, "passive", {
|
|
3947
3947
|
get: function() {
|
|
3948
3948
|
return jt = !0, !0;
|
|
3949
3949
|
}
|
|
3950
3950
|
});
|
|
3951
|
-
window.addEventListener("test",
|
|
3951
|
+
window.addEventListener("test", Ue, Ue), window.removeEventListener("test", Ue, Ue);
|
|
3952
3952
|
} catch {
|
|
3953
3953
|
jt = !1;
|
|
3954
3954
|
}
|
|
3955
|
-
var
|
|
3955
|
+
var xe = jt ? { passive: !1 } : !1, Hi = function(e) {
|
|
3956
3956
|
return e.tagName === "TEXTAREA";
|
|
3957
3957
|
}, Vr = function(e, t) {
|
|
3958
3958
|
if (!(e instanceof Element))
|
|
@@ -3971,9 +3971,9 @@ var we = jt ? { passive: !1 } : !1, Hi = function(e) {
|
|
|
3971
3971
|
var n = t.ownerDocument, r = t;
|
|
3972
3972
|
do {
|
|
3973
3973
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3974
|
-
var o =
|
|
3974
|
+
var o = Br(e, r);
|
|
3975
3975
|
if (o) {
|
|
3976
|
-
var s =
|
|
3976
|
+
var s = zr(e, r), a = s[1], i = s[2];
|
|
3977
3977
|
if (a > i)
|
|
3978
3978
|
return !0;
|
|
3979
3979
|
}
|
|
@@ -3994,24 +3994,24 @@ var we = jt ? { passive: !1 } : !1, Hi = function(e) {
|
|
|
3994
3994
|
n,
|
|
3995
3995
|
r
|
|
3996
3996
|
];
|
|
3997
|
-
}, zr = function(e, t) {
|
|
3998
|
-
return e === "v" ? Ui(t) : Ki(t);
|
|
3999
3997
|
}, Br = function(e, t) {
|
|
3998
|
+
return e === "v" ? Ui(t) : Ki(t);
|
|
3999
|
+
}, zr = function(e, t) {
|
|
4000
4000
|
return e === "v" ? Yi(t) : Xi(t);
|
|
4001
4001
|
}, qi = function(e, t) {
|
|
4002
4002
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4003
4003
|
}, Zi = function(e, t, n, r, o) {
|
|
4004
4004
|
var s = qi(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 =
|
|
4007
|
-
(v || y) &&
|
|
4006
|
+
var m = zr(e, i), v = m[0], p = m[1], b = m[2], y = p - b - s * v;
|
|
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
|
|
4010
4010
|
!c && i !== document.body || // self content
|
|
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
|
+
}, Ke = function(e) {
|
|
4015
4015
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4016
4016
|
}, Fn = function(e) {
|
|
4017
4017
|
return [e.deltaX, e.deltaY];
|
|
@@ -4024,7 +4024,7 @@ var we = jt ? { passive: !1 } : !1, Hi = function(e) {
|
|
|
4024
4024
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4025
4025
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4026
4026
|
`);
|
|
4027
|
-
}, el = 0,
|
|
4027
|
+
}, el = 0, we = [];
|
|
4028
4028
|
function tl(e) {
|
|
4029
4029
|
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(el++)[0], s = l.useState(Wr)[0], a = l.useRef(e);
|
|
4030
4030
|
l.useEffect(function() {
|
|
@@ -4045,7 +4045,7 @@ 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 = Ke(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
4051
|
var S = Ln(R, P);
|
|
@@ -4059,8 +4059,8 @@ function tl(e) {
|
|
|
4059
4059
|
return Zi(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 ? Fn(b) :
|
|
4062
|
+
if (!(!we.length || we[we.length - 1] !== s)) {
|
|
4063
|
+
var y = "deltaY" in b ? Fn(b) : Ke(b), x = t.current.filter(function(E) {
|
|
4064
4064
|
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && Qi(E.delta, y);
|
|
4065
4065
|
})[0];
|
|
4066
4066
|
if (x && x.should) {
|
|
@@ -4082,21 +4082,21 @@ function tl(e) {
|
|
|
4082
4082
|
});
|
|
4083
4083
|
}, 1);
|
|
4084
4084
|
}, []), d = l.useCallback(function(p) {
|
|
4085
|
-
n.current =
|
|
4085
|
+
n.current = Ke(p), r.current = void 0;
|
|
4086
4086
|
}, []), f = l.useCallback(function(p) {
|
|
4087
4087
|
u(p.type, Fn(p), p.target, i(p, e.lockRef.current));
|
|
4088
4088
|
}, []), h = l.useCallback(function(p) {
|
|
4089
|
-
u(p.type,
|
|
4089
|
+
u(p.type, Ke(p), p.target, i(p, e.lockRef.current));
|
|
4090
4090
|
}, []);
|
|
4091
4091
|
l.useEffect(function() {
|
|
4092
|
-
return
|
|
4092
|
+
return we.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, xe), document.addEventListener("touchmove", c, xe), document.addEventListener("touchstart", d, xe), function() {
|
|
4097
|
+
we = we.filter(function(p) {
|
|
4098
4098
|
return p !== s;
|
|
4099
|
-
}), document.removeEventListener("wheel", c,
|
|
4099
|
+
}), document.removeEventListener("wheel", c, xe), document.removeEventListener("touchmove", c, xe), document.removeEventListener("touchstart", d, xe);
|
|
4100
4100
|
};
|
|
4101
4101
|
}, []);
|
|
4102
4102
|
var m = e.removeScrollBar, v = e.inert;
|
|
@@ -4114,15 +4114,15 @@ function nl(e) {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
const rl = ki($r, tl);
|
|
4116
4116
|
var qt = l.forwardRef(function(e, t) {
|
|
4117
|
-
return l.createElement(
|
|
4117
|
+
return l.createElement(it, Q({}, e, { ref: t, sideCar: rl }));
|
|
4118
4118
|
});
|
|
4119
|
-
qt.classNames =
|
|
4119
|
+
qt.classNames = it.classNames;
|
|
4120
4120
|
var ol = 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
|
-
},
|
|
4125
|
+
}, Ce = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Xe = {}, Rt = 0, Gr = function(e) {
|
|
4126
4126
|
return e && (e.host || Gr(e.parentNode));
|
|
4127
4127
|
}, sl = function(e, t) {
|
|
4128
4128
|
return t.map(function(n) {
|
|
@@ -4135,8 +4135,8 @@ var ol = function(e) {
|
|
|
4135
4135
|
});
|
|
4136
4136
|
}, al = function(e, t, n, r) {
|
|
4137
4137
|
var o = sl(t, Array.isArray(e) ? e : [e]);
|
|
4138
|
-
|
|
4139
|
-
var s =
|
|
4138
|
+
Xe[n] || (Xe[n] = /* @__PURE__ */ new WeakMap());
|
|
4139
|
+
var s = Xe[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,8 +4146,8 @@ 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 = (Ce.get(h) || 0) + 1, b = (s.get(h) || 0) + 1;
|
|
4150
|
+
Ce.set(h, p), s.set(h, b), a.push(h), p === 1 && v && Ye.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
|
}
|
|
@@ -4155,9 +4155,9 @@ var ol = function(e) {
|
|
|
4155
4155
|
};
|
|
4156
4156
|
return d(t), i.clear(), Rt++, function() {
|
|
4157
4157
|
a.forEach(function(f) {
|
|
4158
|
-
var h =
|
|
4159
|
-
|
|
4160
|
-
}), Rt--, Rt || (
|
|
4158
|
+
var h = Ce.get(f) - 1, m = s.get(f) - 1;
|
|
4159
|
+
Ce.set(f, h), s.set(f, m), h || (Ye.has(f) || f.removeAttribute(r), Ye.delete(f)), m || f.removeAttribute(n);
|
|
4160
|
+
}), Rt--, Rt || (Ce = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Xe = {});
|
|
4161
4161
|
};
|
|
4162
4162
|
}, Hr = function(e, t, n) {
|
|
4163
4163
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -4181,7 +4181,7 @@ var Mt = l.forwardRef((e, t) => {
|
|
|
4181
4181
|
return l.cloneElement(n, {
|
|
4182
4182
|
...cl(r, n.props),
|
|
4183
4183
|
// @ts-ignore
|
|
4184
|
-
ref: t ?
|
|
4184
|
+
ref: t ? ke(t, o) : o
|
|
4185
4185
|
});
|
|
4186
4186
|
}
|
|
4187
4187
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
@@ -4206,7 +4206,7 @@ function ul(e) {
|
|
|
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 Zt = "Dialog", [Kr,
|
|
4209
|
+
var Zt = "Dialog", [Kr, Hu] = ae(Zt), [dl, Z] = Kr(Zt), Yr = (e) => {
|
|
4210
4210
|
const {
|
|
4211
4211
|
__scopeDialog: t,
|
|
4212
4212
|
children: n,
|
|
@@ -4214,7 +4214,7 @@ var Zt = "Dialog", [Kr, Bu] = 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] = De({
|
|
4218
4218
|
prop: r,
|
|
4219
4219
|
defaultProp: o,
|
|
4220
4220
|
onChange: s
|
|
@@ -4225,9 +4225,9 @@ var Zt = "Dialog", [Kr, Bu] = ae(Zt), [dl, Z] = Kr(Zt), Yr = (e) => {
|
|
|
4225
4225
|
scope: t,
|
|
4226
4226
|
triggerRef: i,
|
|
4227
4227
|
contentRef: c,
|
|
4228
|
-
contentId:
|
|
4229
|
-
titleId:
|
|
4230
|
-
descriptionId:
|
|
4228
|
+
contentId: Re(),
|
|
4229
|
+
titleId: Re(),
|
|
4230
|
+
descriptionId: Re(),
|
|
4231
4231
|
open: u,
|
|
4232
4232
|
onOpenChange: d,
|
|
4233
4233
|
onOpenToggle: l.useCallback(() => d((f) => !f), [d]),
|
|
@@ -4239,7 +4239,7 @@ var Zt = "Dialog", [Kr, Bu] = ae(Zt), [dl, Z] = Kr(Zt), Yr = (e) => {
|
|
|
4239
4239
|
Yr.displayName = Zt;
|
|
4240
4240
|
var Xr = "DialogTrigger", qr = l.forwardRef(
|
|
4241
4241
|
(e, t) => {
|
|
4242
|
-
const { __scopeDialog: n, ...r } = e, o = Z(Xr, n), s =
|
|
4242
|
+
const { __scopeDialog: n, ...r } = e, o = Z(Xr, n), s = B(t, o.triggerRef);
|
|
4243
4243
|
return /* @__PURE__ */ g.jsx(
|
|
4244
4244
|
$.button,
|
|
4245
4245
|
{
|
|
@@ -4260,19 +4260,19 @@ var Qt = "DialogPortal", [fl, Zr] = Kr(Qt, {
|
|
|
4260
4260
|
forceMount: void 0
|
|
4261
4261
|
}), Qr = (e) => {
|
|
4262
4262
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Z(Qt, t);
|
|
4263
|
-
return /* @__PURE__ */ g.jsx(fl, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(
|
|
4263
|
+
return /* @__PURE__ */ g.jsx(fl, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(at, { asChild: !0, container: o, children: a }) })) });
|
|
4264
4264
|
};
|
|
4265
4265
|
Qr.displayName = Qt;
|
|
4266
|
-
var
|
|
4266
|
+
var et = "DialogOverlay", Jr = l.forwardRef(
|
|
4267
4267
|
(e, t) => {
|
|
4268
|
-
const n = Zr(
|
|
4268
|
+
const n = Zr(et, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(et, e.__scopeDialog);
|
|
4269
4269
|
return s.modal ? /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: /* @__PURE__ */ g.jsx(pl, { ...o, ref: t }) }) : null;
|
|
4270
4270
|
}
|
|
4271
4271
|
);
|
|
4272
|
-
Jr.displayName =
|
|
4272
|
+
Jr.displayName = et;
|
|
4273
4273
|
var pl = l.forwardRef(
|
|
4274
4274
|
(e, t) => {
|
|
4275
|
-
const { __scopeDialog: n, ...r } = e, o = Z(
|
|
4275
|
+
const { __scopeDialog: n, ...r } = e, o = Z(et, 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
|
|
@@ -4287,16 +4287,16 @@ var pl = l.forwardRef(
|
|
|
4287
4287
|
) })
|
|
4288
4288
|
);
|
|
4289
4289
|
}
|
|
4290
|
-
),
|
|
4290
|
+
), be = "DialogContent", eo = l.forwardRef(
|
|
4291
4291
|
(e, t) => {
|
|
4292
|
-
const n = Zr(
|
|
4292
|
+
const n = Zr(be, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(be, e.__scopeDialog);
|
|
4293
4293
|
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(ml, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(gl, { ...o, ref: t }) });
|
|
4294
4294
|
}
|
|
4295
4295
|
);
|
|
4296
|
-
eo.displayName =
|
|
4296
|
+
eo.displayName = be;
|
|
4297
4297
|
var ml = l.forwardRef(
|
|
4298
4298
|
(e, t) => {
|
|
4299
|
-
const n = Z(
|
|
4299
|
+
const n = Z(be, e.__scopeDialog), r = l.useRef(null), o = B(t, n.contentRef, r);
|
|
4300
4300
|
return l.useEffect(() => {
|
|
4301
4301
|
const s = r.current;
|
|
4302
4302
|
if (s) return Hr(s);
|
|
@@ -4324,7 +4324,7 @@ var ml = l.forwardRef(
|
|
|
4324
4324
|
}
|
|
4325
4325
|
), gl = l.forwardRef(
|
|
4326
4326
|
(e, t) => {
|
|
4327
|
-
const n = Z(
|
|
4327
|
+
const n = Z(be, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
4328
4328
|
return /* @__PURE__ */ g.jsx(
|
|
4329
4329
|
to,
|
|
4330
4330
|
{
|
|
@@ -4347,7 +4347,7 @@ var ml = l.forwardRef(
|
|
|
4347
4347
|
}
|
|
4348
4348
|
), to = l.forwardRef(
|
|
4349
4349
|
(e, t) => {
|
|
4350
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(
|
|
4350
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(be, n), c = l.useRef(null), u = B(t, c);
|
|
4351
4351
|
return _r(), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
4352
4352
|
/* @__PURE__ */ g.jsx(
|
|
4353
4353
|
Xt,
|
|
@@ -4358,7 +4358,7 @@ var ml = l.forwardRef(
|
|
|
4358
4358
|
onMountAutoFocus: o,
|
|
4359
4359
|
onUnmountAutoFocus: s,
|
|
4360
4360
|
children: /* @__PURE__ */ g.jsx(
|
|
4361
|
-
|
|
4361
|
+
We,
|
|
4362
4362
|
{
|
|
4363
4363
|
role: "dialog",
|
|
4364
4364
|
id: i.contentId,
|
|
@@ -4410,8 +4410,8 @@ ao.displayName = so;
|
|
|
4410
4410
|
function en(e) {
|
|
4411
4411
|
return e ? "open" : "closed";
|
|
4412
4412
|
}
|
|
4413
|
-
var io = "DialogTitleWarning", [
|
|
4414
|
-
contentName:
|
|
4413
|
+
var io = "DialogTitleWarning", [Uu, lo] = fa(io, {
|
|
4414
|
+
contentName: be,
|
|
4415
4415
|
titleName: Jt,
|
|
4416
4416
|
docsSlug: "dialog"
|
|
4417
4417
|
}), hl = ({ titleId: e }) => {
|
|
@@ -4449,7 +4449,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4449
4449
|
"svg",
|
|
4450
4450
|
"ul"
|
|
4451
4451
|
], El = Cl.reduce((e, t) => {
|
|
4452
|
-
const n = /* @__PURE__ */
|
|
4452
|
+
const n = /* @__PURE__ */ tr(`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
|
});
|
|
@@ -4467,16 +4467,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4467
4467
|
));
|
|
4468
4468
|
go.displayName = Rl;
|
|
4469
4469
|
var ho = go;
|
|
4470
|
-
const Pl =
|
|
4470
|
+
const Pl = nr(
|
|
4471
4471
|
"al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
|
|
4472
|
-
), Sl = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(ho, { ref: n, className:
|
|
4472
|
+
), Sl = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(ho, { ref: n, className: _(Pl(), e), ...t }));
|
|
4473
4473
|
Sl.displayName = ho.displayName;
|
|
4474
4474
|
const Al = G(
|
|
4475
4475
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4476
4476
|
"div",
|
|
4477
4477
|
{
|
|
4478
4478
|
ref: n,
|
|
4479
|
-
className:
|
|
4479
|
+
className: _(
|
|
4480
4480
|
"al-rounded-lg al-border al-bg-card al-text-card-foreground al-shadow-sm",
|
|
4481
4481
|
e
|
|
4482
4482
|
),
|
|
@@ -4490,7 +4490,7 @@ const Nl = G(
|
|
|
4490
4490
|
"div",
|
|
4491
4491
|
{
|
|
4492
4492
|
ref: n,
|
|
4493
|
-
className:
|
|
4493
|
+
className: _("al-flex al-flex-col al-space-y-1.5 al-p-6 al-pb-4", e),
|
|
4494
4494
|
...t
|
|
4495
4495
|
}
|
|
4496
4496
|
)
|
|
@@ -4501,29 +4501,29 @@ const Ol = G(
|
|
|
4501
4501
|
"div",
|
|
4502
4502
|
{
|
|
4503
4503
|
ref: n,
|
|
4504
|
-
className:
|
|
4504
|
+
className: _("al-text-2xl al-font-semibold al-leading-none al-tracking-tight", e),
|
|
4505
4505
|
...t
|
|
4506
4506
|
}
|
|
4507
4507
|
)
|
|
4508
4508
|
);
|
|
4509
4509
|
Ol.displayName = "CardTitle";
|
|
4510
4510
|
const Tl = G(
|
|
4511
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4511
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: _("al-text-sm al-text-muted-foreground", e), ...t })
|
|
4512
4512
|
);
|
|
4513
4513
|
Tl.displayName = "CardDescription";
|
|
4514
4514
|
const kl = G(
|
|
4515
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4515
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: _("al-p-6 al-pt-0", e), ...t })
|
|
4516
4516
|
);
|
|
4517
4517
|
kl.displayName = "CardContent";
|
|
4518
4518
|
const Dl = G(
|
|
4519
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4519
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: _("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
|
|
4520
4520
|
);
|
|
4521
4521
|
Dl.displayName = "CardFooter";
|
|
4522
4522
|
const jl = l.forwardRef(
|
|
4523
4523
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4524
4524
|
"textarea",
|
|
4525
4525
|
{
|
|
4526
|
-
className:
|
|
4526
|
+
className: _(
|
|
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
|
),
|
|
@@ -4533,7 +4533,7 @@ const jl = l.forwardRef(
|
|
|
4533
4533
|
)
|
|
4534
4534
|
);
|
|
4535
4535
|
jl.displayName = "Textarea";
|
|
4536
|
-
const Ml = ["top", "right", "bottom", "left"],
|
|
4536
|
+
const Ml = ["top", "right", "bottom", "left"], de = Math.min, K = Math.max, tt = Math.round, qe = Math.floor, fe = (e) => ({
|
|
4537
4537
|
x: e,
|
|
4538
4538
|
y: e
|
|
4539
4539
|
}), Il = {
|
|
@@ -4546,7 +4546,7 @@ const Ml = ["top", "right", "bottom", "left"], fe = Math.min, K = Math.max, nt =
|
|
|
4546
4546
|
end: "start"
|
|
4547
4547
|
};
|
|
4548
4548
|
function It(e, t, n) {
|
|
4549
|
-
return K(e,
|
|
4549
|
+
return K(e, de(t, n));
|
|
4550
4550
|
}
|
|
4551
4551
|
function oe(e, t) {
|
|
4552
4552
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4554,7 +4554,7 @@ function oe(e, t) {
|
|
|
4554
4554
|
function se(e) {
|
|
4555
4555
|
return e.split("-")[0];
|
|
4556
4556
|
}
|
|
4557
|
-
function
|
|
4557
|
+
function je(e) {
|
|
4558
4558
|
return e.split("-")[1];
|
|
4559
4559
|
}
|
|
4560
4560
|
function tn(e) {
|
|
@@ -4563,20 +4563,20 @@ function tn(e) {
|
|
|
4563
4563
|
function nn(e) {
|
|
4564
4564
|
return e === "y" ? "height" : "width";
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4566
|
+
function pe(e) {
|
|
4567
4567
|
return ["top", "bottom"].includes(se(e)) ? "y" : "x";
|
|
4568
4568
|
}
|
|
4569
4569
|
function rn(e) {
|
|
4570
|
-
return tn(
|
|
4570
|
+
return tn(pe(e));
|
|
4571
4571
|
}
|
|
4572
4572
|
function Ll(e, t, n) {
|
|
4573
4573
|
n === void 0 && (n = !1);
|
|
4574
|
-
const r =
|
|
4574
|
+
const r = je(e), o = rn(e), s = nn(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 = nt(a)), [a, nt(a)];
|
|
4577
4577
|
}
|
|
4578
4578
|
function Fl(e) {
|
|
4579
|
-
const t =
|
|
4579
|
+
const t = nt(e);
|
|
4580
4580
|
return [_t(e), t, _t(t)];
|
|
4581
4581
|
}
|
|
4582
4582
|
function _t(e) {
|
|
@@ -4596,11 +4596,11 @@ function $l(e, t, n) {
|
|
|
4596
4596
|
}
|
|
4597
4597
|
}
|
|
4598
4598
|
function Wl(e, t, n, r) {
|
|
4599
|
-
const o =
|
|
4599
|
+
const o = je(e);
|
|
4600
4600
|
let s = $l(se(e), n === "start", r);
|
|
4601
4601
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(_t)))), s;
|
|
4602
4602
|
}
|
|
4603
|
-
function
|
|
4603
|
+
function nt(e) {
|
|
4604
4604
|
return e.replace(/left|right|bottom|top/g, (t) => Il[t]);
|
|
4605
4605
|
}
|
|
4606
4606
|
function Vl(e) {
|
|
@@ -4620,7 +4620,7 @@ function vo(e) {
|
|
|
4620
4620
|
left: e
|
|
4621
4621
|
};
|
|
4622
4622
|
}
|
|
4623
|
-
function
|
|
4623
|
+
function rt(e) {
|
|
4624
4624
|
const {
|
|
4625
4625
|
x: t,
|
|
4626
4626
|
y: n,
|
|
@@ -4643,7 +4643,7 @@ function Wn(e, t, n) {
|
|
|
4643
4643
|
reference: r,
|
|
4644
4644
|
floating: o
|
|
4645
4645
|
} = e;
|
|
4646
|
-
const s =
|
|
4646
|
+
const s = pe(t), a = rn(t), i = nn(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 (je(t)) {
|
|
4680
4680
|
case "start":
|
|
4681
4681
|
m[a] -= h * (n && u ? -1 : 1);
|
|
4682
4682
|
break;
|
|
@@ -4686,7 +4686,7 @@ function Wn(e, t, n) {
|
|
|
4686
4686
|
}
|
|
4687
4687
|
return m;
|
|
4688
4688
|
}
|
|
4689
|
-
const
|
|
4689
|
+
const Bl = async (e, t, n) => {
|
|
4690
4690
|
const {
|
|
4691
4691
|
placement: r = "bottom",
|
|
4692
4692
|
strategy: o = "absolute",
|
|
@@ -4747,7 +4747,7 @@ const zl = async (e, t, n) => {
|
|
|
4747
4747
|
middlewareData: m
|
|
4748
4748
|
};
|
|
4749
4749
|
};
|
|
4750
|
-
async function
|
|
4750
|
+
async function Fe(e, t) {
|
|
4751
4751
|
var n;
|
|
4752
4752
|
t === void 0 && (t = {});
|
|
4753
4753
|
const {
|
|
@@ -4763,7 +4763,7 @@ async function $e(e, t) {
|
|
|
4763
4763
|
elementContext: f = "floating",
|
|
4764
4764
|
altBoundary: h = !1,
|
|
4765
4765
|
padding: m = 0
|
|
4766
|
-
} = oe(t, e), v = vo(m), b = i[h ? f === "floating" ? "reference" : "floating" : f], y =
|
|
4766
|
+
} = oe(t, e), v = vo(m), b = i[h ? f === "floating" ? "reference" : "floating" : f], y = rt(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 $e(e, t) {
|
|
|
4779
4779
|
} : {
|
|
4780
4780
|
x: 1,
|
|
4781
4781
|
y: 1
|
|
4782
|
-
}, E =
|
|
4782
|
+
}, E = rt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4783
4783
|
elements: i,
|
|
4784
4784
|
rect: x,
|
|
4785
4785
|
offsetParent: C,
|
|
@@ -4792,7 +4792,7 @@ async function $e(e, t) {
|
|
|
4792
4792
|
right: (E.right - y.right + v.right) / w.x
|
|
4793
4793
|
};
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4795
|
+
const zl = (e) => ({
|
|
4796
4796
|
name: "arrow",
|
|
4797
4797
|
options: e,
|
|
4798
4798
|
async fn(t) {
|
|
@@ -4816,12 +4816,12 @@ const Bl = (e) => ({
|
|
|
4816
4816
|
}, m = rn(o), v = nn(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 = de(f[y], M), F = de(f[x], M), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S, z = It(A, j, L), T = !c.arrow && je(o) != null && j !== z && 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]: z,
|
|
4824
|
+
centerOffset: j - z - V,
|
|
4825
4825
|
...T && {
|
|
4826
4826
|
alignmentOffset: V
|
|
4827
4827
|
}
|
|
@@ -4853,9 +4853,9 @@ const Bl = (e) => ({
|
|
|
4853
4853
|
} = oe(e, t);
|
|
4854
4854
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4855
4855
|
return {};
|
|
4856
|
-
const y = se(o), x =
|
|
4856
|
+
const y = se(o), x = pe(i), C = se(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = h || (C || !p ? [nt(i)] : Fl(i)), P = v !== "none";
|
|
4857
4857
|
!h && P && E.push(...Wl(i, p, v, w));
|
|
4858
|
-
const R = [i, ...E], S = await
|
|
4858
|
+
const R = [i, ...E], S = await Fe(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
4861
|
const j = Ll(o, a, w);
|
|
@@ -4866,15 +4866,15 @@ const Bl = (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, z = R[j];
|
|
4870
|
+
if (z)
|
|
4871
4871
|
return {
|
|
4872
4872
|
data: {
|
|
4873
4873
|
index: j,
|
|
4874
4874
|
overflows: D
|
|
4875
4875
|
},
|
|
4876
4876
|
reset: {
|
|
4877
|
-
placement:
|
|
4877
|
+
placement: z
|
|
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 Bl = (e) => ({
|
|
|
4884
4884
|
var L;
|
|
4885
4885
|
const V = (L = D.filter((O) => {
|
|
4886
4886
|
if (P) {
|
|
4887
|
-
const W =
|
|
4887
|
+
const W = pe(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";
|
|
@@ -4917,7 +4917,7 @@ function Vn(e, t) {
|
|
|
4917
4917
|
left: e.left - t.width
|
|
4918
4918
|
};
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function Bn(e) {
|
|
4921
4921
|
return Ml.some((t) => e[t] >= 0);
|
|
4922
4922
|
}
|
|
4923
4923
|
const Hl = function(e) {
|
|
@@ -4933,26 +4933,26 @@ 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 Fe(t, {
|
|
4937
4937
|
...o,
|
|
4938
4938
|
elementContext: "reference"
|
|
4939
4939
|
}), a = Vn(s, n.reference);
|
|
4940
4940
|
return {
|
|
4941
4941
|
data: {
|
|
4942
4942
|
referenceHiddenOffsets: a,
|
|
4943
|
-
referenceHidden:
|
|
4943
|
+
referenceHidden: Bn(a)
|
|
4944
4944
|
}
|
|
4945
4945
|
};
|
|
4946
4946
|
}
|
|
4947
4947
|
case "escaped": {
|
|
4948
|
-
const s = await
|
|
4948
|
+
const s = await Fe(t, {
|
|
4949
4949
|
...o,
|
|
4950
4950
|
altBoundary: !0
|
|
4951
4951
|
}), a = Vn(s, n.floating);
|
|
4952
4952
|
return {
|
|
4953
4953
|
data: {
|
|
4954
4954
|
escapedOffsets: a,
|
|
4955
|
-
escaped:
|
|
4955
|
+
escaped: Bn(a)
|
|
4956
4956
|
}
|
|
4957
4957
|
};
|
|
4958
4958
|
}
|
|
@@ -4967,7 +4967,7 @@ async function Ul(e, t) {
|
|
|
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 = je(n), c = pe(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,
|
|
@@ -5039,7 +5039,7 @@ const Kl = function(e) {
|
|
|
5039
5039
|
} = oe(e, t), u = {
|
|
5040
5040
|
x: n,
|
|
5041
5041
|
y: r
|
|
5042
|
-
}, d = await
|
|
5042
|
+
}, d = await Fe(t, c), f = pe(se(o)), h = tn(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];
|
|
@@ -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 = pe(o), h = tn(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,
|
|
@@ -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 Fe(t, u), f = se(o), h = je(o), m = pe(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 = de(p - d[b], x), E = de(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,10 +5150,10 @@ const Kl = function(e) {
|
|
|
5150
5150
|
}
|
|
5151
5151
|
};
|
|
5152
5152
|
};
|
|
5153
|
-
function
|
|
5153
|
+
function lt() {
|
|
5154
5154
|
return typeof window < "u";
|
|
5155
5155
|
}
|
|
5156
|
-
function
|
|
5156
|
+
function Me(e) {
|
|
5157
5157
|
return bo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5158
5158
|
}
|
|
5159
5159
|
function Y(e) {
|
|
@@ -5165,18 +5165,18 @@ function te(e) {
|
|
|
5165
5165
|
return (t = (bo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5166
5166
|
}
|
|
5167
5167
|
function bo(e) {
|
|
5168
|
-
return
|
|
5168
|
+
return lt() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
5169
5169
|
}
|
|
5170
5170
|
function X(e) {
|
|
5171
|
-
return
|
|
5171
|
+
return lt() ? e instanceof Element || e instanceof Y(e).Element : !1;
|
|
5172
5172
|
}
|
|
5173
5173
|
function J(e) {
|
|
5174
|
-
return
|
|
5174
|
+
return lt() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
|
|
5175
5175
|
}
|
|
5176
|
-
function
|
|
5177
|
-
return !
|
|
5176
|
+
function zn(e) {
|
|
5177
|
+
return !lt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
5178
5178
|
}
|
|
5179
|
-
function
|
|
5179
|
+
function Ve(e) {
|
|
5180
5180
|
const {
|
|
5181
5181
|
overflow: t,
|
|
5182
5182
|
overflowX: n,
|
|
@@ -5186,9 +5186,9 @@ function ze(e) {
|
|
|
5186
5186
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5187
5187
|
}
|
|
5188
5188
|
function Zl(e) {
|
|
5189
|
-
return ["table", "td", "th"].includes(
|
|
5189
|
+
return ["table", "td", "th"].includes(Me(e));
|
|
5190
5190
|
}
|
|
5191
|
-
function
|
|
5191
|
+
function ct(e) {
|
|
5192
5192
|
return [":popover-open", ":modal"].some((t) => {
|
|
5193
5193
|
try {
|
|
5194
5194
|
return e.matches(t);
|
|
@@ -5202,26 +5202,26 @@ function on(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
5204
|
function Ql(e) {
|
|
5205
|
-
let t =
|
|
5206
|
-
for (; J(t) && !
|
|
5205
|
+
let t = me(e);
|
|
5206
|
+
for (; J(t) && !Ae(t); ) {
|
|
5207
5207
|
if (on(t))
|
|
5208
5208
|
return t;
|
|
5209
|
-
if (
|
|
5209
|
+
if (ct(t))
|
|
5210
5210
|
return null;
|
|
5211
|
-
t =
|
|
5211
|
+
t = me(t);
|
|
5212
5212
|
}
|
|
5213
5213
|
return null;
|
|
5214
5214
|
}
|
|
5215
5215
|
function sn() {
|
|
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 Ae(e) {
|
|
5219
|
+
return ["html", "body", "#document"].includes(Me(e));
|
|
5220
5220
|
}
|
|
5221
5221
|
function q(e) {
|
|
5222
5222
|
return Y(e).getComputedStyle(e);
|
|
5223
5223
|
}
|
|
5224
|
-
function
|
|
5224
|
+
function ut(e) {
|
|
5225
5225
|
return X(e) ? {
|
|
5226
5226
|
scrollLeft: e.scrollLeft,
|
|
5227
5227
|
scrollTop: e.scrollTop
|
|
@@ -5230,31 +5230,31 @@ function dt(e) {
|
|
|
5230
5230
|
scrollTop: e.scrollY
|
|
5231
5231
|
};
|
|
5232
5232
|
}
|
|
5233
|
-
function
|
|
5234
|
-
if (
|
|
5233
|
+
function me(e) {
|
|
5234
|
+
if (Me(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
|
+
zn(e) && e.host || // Fallback.
|
|
5241
5241
|
te(e)
|
|
5242
5242
|
);
|
|
5243
|
-
return
|
|
5243
|
+
return zn(t) ? t.host : t;
|
|
5244
5244
|
}
|
|
5245
5245
|
function yo(e) {
|
|
5246
|
-
const t =
|
|
5247
|
-
return
|
|
5246
|
+
const t = me(e);
|
|
5247
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && Ve(t) ? t : yo(t);
|
|
5248
5248
|
}
|
|
5249
|
-
function
|
|
5249
|
+
function $e(e, t, n) {
|
|
5250
5250
|
var r;
|
|
5251
5251
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5252
5252
|
const o = yo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(o);
|
|
5253
5253
|
if (s) {
|
|
5254
5254
|
const i = Lt(a);
|
|
5255
|
-
return t.concat(a, a.visualViewport || [],
|
|
5255
|
+
return t.concat(a, a.visualViewport || [], Ve(o) ? o : [], i && n ? $e(i) : []);
|
|
5256
5256
|
}
|
|
5257
|
-
return t.concat(o,
|
|
5257
|
+
return t.concat(o, $e(o, [], n));
|
|
5258
5258
|
}
|
|
5259
5259
|
function Lt(e) {
|
|
5260
5260
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -5262,7 +5262,7 @@ function Lt(e) {
|
|
|
5262
5262
|
function xo(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 = tt(n) !== s || tt(r) !== a;
|
|
5266
5266
|
return i && (n = s, r = a), {
|
|
5267
5267
|
width: n,
|
|
5268
5268
|
height: r,
|
|
@@ -5272,22 +5272,22 @@ function xo(e) {
|
|
|
5272
5272
|
function an(e) {
|
|
5273
5273
|
return X(e) ? e : e.contextElement;
|
|
5274
5274
|
}
|
|
5275
|
-
function
|
|
5275
|
+
function Se(e) {
|
|
5276
5276
|
const t = an(e);
|
|
5277
5277
|
if (!J(t))
|
|
5278
|
-
return
|
|
5278
|
+
return fe(1);
|
|
5279
5279
|
const n = t.getBoundingClientRect(), {
|
|
5280
5280
|
width: r,
|
|
5281
5281
|
height: o,
|
|
5282
5282
|
$: s
|
|
5283
5283
|
} = xo(t);
|
|
5284
|
-
let a = (s ?
|
|
5284
|
+
let a = (s ? tt(n.width) : n.width) / r, i = (s ? tt(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 Jl = /* @__PURE__ */
|
|
5290
|
+
const Jl = /* @__PURE__ */ fe(0);
|
|
5291
5291
|
function wo(e) {
|
|
5292
5292
|
const t = Y(e);
|
|
5293
5293
|
return !sn() || !t.visualViewport ? Jl : {
|
|
@@ -5298,22 +5298,22 @@ function wo(e) {
|
|
|
5298
5298
|
function ec(e, t, n) {
|
|
5299
5299
|
return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
|
|
5300
5300
|
}
|
|
5301
|
-
function
|
|
5301
|
+
function ye(e, t, n, r) {
|
|
5302
5302
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5303
5303
|
const o = e.getBoundingClientRect(), s = an(e);
|
|
5304
|
-
let a =
|
|
5305
|
-
t && (r ? X(r) && (a =
|
|
5306
|
-
const i = ec(s, n, r) ? wo(s) :
|
|
5304
|
+
let a = fe(1);
|
|
5305
|
+
t && (r ? X(r) && (a = Se(r)) : a = Se(e));
|
|
5306
|
+
const i = ec(s, n, r) ? wo(s) : fe(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
5310
|
let v = h, p = Lt(v);
|
|
5311
5311
|
for (; p && r && m !== v; ) {
|
|
5312
|
-
const b =
|
|
5312
|
+
const b = Se(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
5313
|
c *= b.x, u *= b.y, d *= b.x, f *= b.y, c += C, u += w, v = Y(p), p = Lt(v);
|
|
5314
5314
|
}
|
|
5315
5315
|
}
|
|
5316
|
-
return
|
|
5316
|
+
return rt({
|
|
5317
5317
|
width: d,
|
|
5318
5318
|
height: f,
|
|
5319
5319
|
x: c,
|
|
@@ -5327,17 +5327,17 @@ function tc(e) {
|
|
|
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 ? ct(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 = fe(1);
|
|
5337
|
+
const d = fe(0), f = J(r);
|
|
5338
|
+
if ((f || !f && !s) && ((Me(r) !== "body" || Ve(a)) && (c = ut(r)), J(r))) {
|
|
5339
|
+
const h = ye(r);
|
|
5340
|
+
u = Se(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,
|
|
@@ -5350,11 +5350,11 @@ function nc(e) {
|
|
|
5350
5350
|
return Array.from(e.getClientRects());
|
|
5351
5351
|
}
|
|
5352
5352
|
function Ft(e, t) {
|
|
5353
|
-
const n =
|
|
5354
|
-
return t ? t.left + n :
|
|
5353
|
+
const n = ut(e).scrollLeft;
|
|
5354
|
+
return t ? t.left + n : ye(te(e)).left + n;
|
|
5355
5355
|
}
|
|
5356
5356
|
function rc(e) {
|
|
5357
|
-
const t = te(e), n =
|
|
5357
|
+
const t = te(e), n = ut(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
5358
|
let a = -n.scrollLeft + Ft(e);
|
|
5359
5359
|
const i = -n.scrollTop;
|
|
5360
5360
|
return q(r).direction === "rtl" && (a += K(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -5380,7 +5380,7 @@ function oc(e, t) {
|
|
|
5380
5380
|
};
|
|
5381
5381
|
}
|
|
5382
5382
|
function sc(e, t) {
|
|
5383
|
-
const n =
|
|
5383
|
+
const n = ye(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = J(e) ? Se(e) : fe(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,
|
|
@@ -5404,22 +5404,22 @@ function Gn(e, t, n) {
|
|
|
5404
5404
|
y: t.y - o.y
|
|
5405
5405
|
};
|
|
5406
5406
|
}
|
|
5407
|
-
return
|
|
5407
|
+
return rt(r);
|
|
5408
5408
|
}
|
|
5409
5409
|
function Co(e, t) {
|
|
5410
|
-
const n =
|
|
5411
|
-
return n === t || !X(n) ||
|
|
5410
|
+
const n = me(e);
|
|
5411
|
+
return n === t || !X(n) || Ae(n) ? !1 : q(n).position === "fixed" || Co(n, t);
|
|
5412
5412
|
}
|
|
5413
5413
|
function ac(e, t) {
|
|
5414
5414
|
const n = t.get(e);
|
|
5415
5415
|
if (n)
|
|
5416
5416
|
return n;
|
|
5417
|
-
let r =
|
|
5417
|
+
let r = $e(e, [], !1).filter((i) => X(i) && Me(i) !== "body"), o = null;
|
|
5418
5418
|
const s = q(e).position === "fixed";
|
|
5419
|
-
let a = s ?
|
|
5420
|
-
for (; X(a) && !
|
|
5419
|
+
let a = s ? me(e) : e;
|
|
5420
|
+
for (; X(a) && !Ae(a); ) {
|
|
5421
5421
|
const i = q(a), c = on(a);
|
|
5422
|
-
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
5422
|
+
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ve(a) && !c && Co(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = me(a);
|
|
5423
5423
|
}
|
|
5424
5424
|
return t.set(e, r), r;
|
|
5425
5425
|
}
|
|
@@ -5430,9 +5430,9 @@ function ic(e) {
|
|
|
5430
5430
|
rootBoundary: r,
|
|
5431
5431
|
strategy: o
|
|
5432
5432
|
} = e;
|
|
5433
|
-
const a = [...n === "clippingAncestors" ?
|
|
5433
|
+
const a = [...n === "clippingAncestors" ? ct(t) ? [] : ac(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((u, d) => {
|
|
5434
5434
|
const f = Gn(t, d, o);
|
|
5435
|
-
return u.top = K(f.top, u.top), u.right =
|
|
5435
|
+
return u.top = K(f.top, u.top), u.right = de(f.right, u.right), u.bottom = de(f.bottom, u.bottom), u.left = K(f.left, u.left), u;
|
|
5436
5436
|
}, Gn(t, i, o));
|
|
5437
5437
|
return {
|
|
5438
5438
|
width: c.right - c.left,
|
|
@@ -5452,15 +5452,15 @@ function lc(e) {
|
|
|
5452
5452
|
};
|
|
5453
5453
|
}
|
|
5454
5454
|
function cc(e, t, n) {
|
|
5455
|
-
const r = J(t), o = te(t), s = n === "fixed", a =
|
|
5455
|
+
const r = J(t), o = te(t), s = n === "fixed", a = ye(e, !0, s, t);
|
|
5456
5456
|
let i = {
|
|
5457
5457
|
scrollLeft: 0,
|
|
5458
5458
|
scrollTop: 0
|
|
5459
5459
|
};
|
|
5460
|
-
const c =
|
|
5460
|
+
const c = fe(0);
|
|
5461
5461
|
if (r || !r && !s)
|
|
5462
|
-
if ((
|
|
5463
|
-
const m =
|
|
5462
|
+
if ((Me(t) !== "body" || Ve(o)) && (i = ut(t)), r) {
|
|
5463
|
+
const m = ye(t, !0, s, t);
|
|
5464
5464
|
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
5465
5465
|
} else o && (c.x = Ft(o));
|
|
5466
5466
|
let u = 0, d = 0;
|
|
@@ -5490,21 +5490,21 @@ function Hn(e, t) {
|
|
|
5490
5490
|
}
|
|
5491
5491
|
function Eo(e, t) {
|
|
5492
5492
|
const n = Y(e);
|
|
5493
|
-
if (
|
|
5493
|
+
if (ct(e))
|
|
5494
5494
|
return n;
|
|
5495
5495
|
if (!J(e)) {
|
|
5496
|
-
let o =
|
|
5497
|
-
for (; o && !
|
|
5496
|
+
let o = me(e);
|
|
5497
|
+
for (; o && !Ae(o); ) {
|
|
5498
5498
|
if (X(o) && !Pt(o))
|
|
5499
5499
|
return o;
|
|
5500
|
-
o =
|
|
5500
|
+
o = me(o);
|
|
5501
5501
|
}
|
|
5502
5502
|
return n;
|
|
5503
5503
|
}
|
|
5504
5504
|
let r = Hn(e, t);
|
|
5505
5505
|
for (; r && Zl(r) && Pt(r); )
|
|
5506
5506
|
r = Hn(r, t);
|
|
5507
|
-
return r &&
|
|
5507
|
+
return r && Ae(r) && Pt(r) && !on(r) ? n : r || Ql(e) || n;
|
|
5508
5508
|
}
|
|
5509
5509
|
const uc = async function(e) {
|
|
5510
5510
|
const t = this.getOffsetParent || Eo, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -5529,7 +5529,7 @@ const fc = {
|
|
|
5529
5529
|
getElementRects: uc,
|
|
5530
5530
|
getClientRects: nc,
|
|
5531
5531
|
getDimensions: lc,
|
|
5532
|
-
getScale:
|
|
5532
|
+
getScale: Se,
|
|
5533
5533
|
isElement: X,
|
|
5534
5534
|
isRTL: dc
|
|
5535
5535
|
};
|
|
@@ -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 = qe(d), v = qe(o.clientWidth - (u + f)), p = qe(o.clientHeight - (d + h)), b = qe(u), x = {
|
|
5554
5554
|
rootMargin: -m + "px " + -v + "px " + -p + "px " + -b + "px",
|
|
5555
|
-
threshold: K(0,
|
|
5555
|
+
threshold: K(0, de(1, c)) || 1
|
|
5556
5556
|
};
|
|
5557
5557
|
let C = !0;
|
|
5558
5558
|
function w(E) {
|
|
@@ -5587,7 +5587,7 @@ 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 = an(e), d = o || s ? [...u ?
|
|
5590
|
+
} = r, u = an(e), d = o || s ? [...u ? $e(u) : [], ...$e(t)] : [];
|
|
5591
5591
|
d.forEach((y) => {
|
|
5592
5592
|
o && y.addEventListener("scroll", n, {
|
|
5593
5593
|
passive: !0
|
|
@@ -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 ? ye(e) : null;
|
|
5606
5606
|
c && b();
|
|
5607
5607
|
function b() {
|
|
5608
|
-
const y =
|
|
5608
|
+
const y = ye(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,7 +5615,7 @@ 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 gc = Kl, hc = Yl, vc = Gl, bc = ql, yc = Hl, Un =
|
|
5618
|
+
const gc = Kl, hc = Yl, vc = Gl, bc = ql, yc = Hl, Un = zl, xc = Xl, wc = (e, t, n) => {
|
|
5619
5619
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5620
5620
|
platform: fc,
|
|
5621
5621
|
...n
|
|
@@ -5623,13 +5623,13 @@ const gc = Kl, hc = Yl, vc = Gl, bc = ql, yc = Hl, Un = Bl, xc = Xl, wc = (e, t,
|
|
|
5623
5623
|
...o.platform,
|
|
5624
5624
|
_c: r
|
|
5625
5625
|
};
|
|
5626
|
-
return
|
|
5626
|
+
return Bl(e, t, {
|
|
5627
5627
|
...o,
|
|
5628
5628
|
platform: s
|
|
5629
5629
|
});
|
|
5630
5630
|
};
|
|
5631
|
-
var
|
|
5632
|
-
function
|
|
5631
|
+
var Je = typeof document < "u" ? ws : Cs;
|
|
5632
|
+
function ot(e, t) {
|
|
5633
5633
|
if (e === t)
|
|
5634
5634
|
return !0;
|
|
5635
5635
|
if (typeof e != typeof t)
|
|
@@ -5641,7 +5641,7 @@ function st(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 (!ot(e[r], t[r]))
|
|
5645
5645
|
return !1;
|
|
5646
5646
|
return !0;
|
|
5647
5647
|
}
|
|
@@ -5652,7 +5652,7 @@ function st(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) && !ot(e[s], t[s]))
|
|
5656
5656
|
return !1;
|
|
5657
5657
|
}
|
|
5658
5658
|
return !0;
|
|
@@ -5668,7 +5668,7 @@ function Kn(e, t) {
|
|
|
5668
5668
|
}
|
|
5669
5669
|
function St(e) {
|
|
5670
5670
|
const t = l.useRef(e);
|
|
5671
|
-
return
|
|
5671
|
+
return Je(() => {
|
|
5672
5672
|
t.current = e;
|
|
5673
5673
|
}), t;
|
|
5674
5674
|
}
|
|
@@ -5694,7 +5694,7 @@ function Cc(e) {
|
|
|
5694
5694
|
middlewareData: {},
|
|
5695
5695
|
isPositioned: !1
|
|
5696
5696
|
}), [h, m] = l.useState(r);
|
|
5697
|
-
|
|
5697
|
+
ot(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) => {
|
|
@@ -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 && !ot(S.current, U) && (S.current = U, Yn.flushSync(() => {
|
|
5720
5720
|
f(U);
|
|
5721
5721
|
}));
|
|
5722
5722
|
});
|
|
5723
5723
|
}, [h, t, n, F, A]);
|
|
5724
|
-
|
|
5724
|
+
Je(() => {
|
|
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
|
+
Je(() => (j.current = !0, () => {
|
|
5732
5732
|
j.current = !1;
|
|
5733
|
-
}), []),
|
|
5733
|
+
}), []), Je(() => {
|
|
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 z = l.useMemo(() => ({
|
|
5741
5741
|
reference: P,
|
|
5742
5742
|
floating: R,
|
|
5743
5743
|
setReference: x,
|
|
@@ -5769,10 +5769,10 @@ function Cc(e) {
|
|
|
5769
5769
|
return l.useMemo(() => ({
|
|
5770
5770
|
...d,
|
|
5771
5771
|
update: L,
|
|
5772
|
-
refs:
|
|
5772
|
+
refs: z,
|
|
5773
5773
|
elements: T,
|
|
5774
5774
|
floatingStyles: V
|
|
5775
|
-
}), [d, L,
|
|
5775
|
+
}), [d, L, z, T, V]);
|
|
5776
5776
|
}
|
|
5777
5777
|
const Ec = (e) => {
|
|
5778
5778
|
function t(n) {
|
|
@@ -5833,14 +5833,14 @@ var kc = "Arrow", Po = l.forwardRef((e, t) => {
|
|
|
5833
5833
|
);
|
|
5834
5834
|
});
|
|
5835
5835
|
Po.displayName = kc;
|
|
5836
|
-
var Dc = Po, ln = "Popper", [So,
|
|
5836
|
+
var Dc = Po, ln = "Popper", [So, dt] = ae(ln), [jc, Ao] = So(ln), No = (e) => {
|
|
5837
5837
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
5838
5838
|
return /* @__PURE__ */ g.jsx(jc, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5839
5839
|
};
|
|
5840
5840
|
No.displayName = ln;
|
|
5841
5841
|
var Oo = "PopperAnchor", To = l.forwardRef(
|
|
5842
5842
|
(e, t) => {
|
|
5843
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ao(Oo, n), a = l.useRef(null), i =
|
|
5843
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ao(Oo, n), a = l.useRef(null), i = B(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 });
|
|
@@ -5865,16 +5865,16 @@ 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 = Ao(cn, n), [y, x] = l.useState(null), C =
|
|
5868
|
+
} = e, b = Ao(cn, n), [y, x] = l.useState(null), C = B(t, (Ie) => x(Ie)), [w, E] = l.useState(null), P = Ht(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
5870
|
boundary: F.filter(Lc),
|
|
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: z, placement: T, isPositioned: V, middlewareData: O } = Cc({
|
|
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: (...Ie) => mc(...Ie, {
|
|
5878
5878
|
animationFrame: m === "always"
|
|
5879
5879
|
}),
|
|
5880
5880
|
elements: {
|
|
@@ -5891,9 +5891,9 @@ var cn = "PopperContent", [Mc, Ic] = So(cn), ko = l.forwardRef(
|
|
|
5891
5891
|
c && Ac({ ...L }),
|
|
5892
5892
|
Nc({
|
|
5893
5893
|
...L,
|
|
5894
|
-
apply: ({ elements:
|
|
5895
|
-
const { width: hs, height: vs } = wn.reference,
|
|
5896
|
-
|
|
5894
|
+
apply: ({ elements: Ie, rects: wn, availableWidth: ms, availableHeight: gs }) => {
|
|
5895
|
+
const { width: hs, height: vs } = wn.reference, Ge = Ie.floating.style;
|
|
5896
|
+
Ge.setProperty("--radix-popper-available-width", `${ms}px`), Ge.setProperty("--radix-popper-available-height", `${gs}px`), Ge.setProperty("--radix-popper-anchor-width", `${hs}px`), Ge.setProperty("--radix-popper-anchor-height", `${vs}px`);
|
|
5897
5897
|
}
|
|
5898
5898
|
}),
|
|
5899
5899
|
w && Tc({ element: w, padding: i }),
|
|
@@ -5901,11 +5901,11 @@ var cn = "PopperContent", [Mc, Ic] = So(cn), ko = l.forwardRef(
|
|
|
5901
5901
|
h && Oc({ strategy: "referenceHidden", ...L })
|
|
5902
5902
|
]
|
|
5903
5903
|
}), [W, U] = Mo(T), H = re(v);
|
|
5904
|
-
|
|
5904
|
+
ve(() => {
|
|
5905
5905
|
V && (H == null || H());
|
|
5906
5906
|
}, [V, H]);
|
|
5907
5907
|
const cs = (gn = O.arrow) == null ? void 0 : gn.x, us = (hn = O.arrow) == null ? void 0 : hn.y, ds = ((vn = O.arrow) == null ? void 0 : vn.centerOffset) !== 0, [fs, ps] = l.useState();
|
|
5908
|
-
return
|
|
5908
|
+
return ve(() => {
|
|
5909
5909
|
y && ps(window.getComputedStyle(y).zIndex);
|
|
5910
5910
|
}, [y]), /* @__PURE__ */ g.jsx(
|
|
5911
5911
|
"div",
|
|
@@ -5913,8 +5913,8 @@ var cn = "PopperContent", [Mc, Ic] = So(cn), ko = l.forwardRef(
|
|
|
5913
5913
|
ref: j.setFloating,
|
|
5914
5914
|
"data-radix-popper-content-wrapper": "",
|
|
5915
5915
|
style: {
|
|
5916
|
-
...
|
|
5917
|
-
transform: V ?
|
|
5916
|
+
...z,
|
|
5917
|
+
transform: V ? z.transform : "translate(0, -200%)",
|
|
5918
5918
|
// keep off the page when measuring
|
|
5919
5919
|
minWidth: "max-content",
|
|
5920
5920
|
zIndex: fs,
|
|
@@ -6031,11 +6031,11 @@ function Mo(e) {
|
|
|
6031
6031
|
return [t, n];
|
|
6032
6032
|
}
|
|
6033
6033
|
var Io = No, un = To, _o = ko, Lo = jo;
|
|
6034
|
-
const
|
|
6034
|
+
const Ku = yl, Yu = xl, $c = wl, Xu = mo, Fo = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6035
6035
|
co,
|
|
6036
6036
|
{
|
|
6037
6037
|
ref: n,
|
|
6038
|
-
className:
|
|
6038
|
+
className: _(
|
|
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
|
),
|
|
@@ -6049,7 +6049,7 @@ const Wc = G(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsxs(
|
|
|
6049
6049
|
uo,
|
|
6050
6050
|
{
|
|
6051
6051
|
ref: r,
|
|
6052
|
-
className:
|
|
6052
|
+
className: _(
|
|
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
|
),
|
|
@@ -6068,36 +6068,36 @@ Wc.displayName = uo.displayName;
|
|
|
6068
6068
|
const Vc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
6069
6069
|
"div",
|
|
6070
6070
|
{
|
|
6071
|
-
className:
|
|
6071
|
+
className: _("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
|
Vc.displayName = "DialogHeader";
|
|
6076
|
-
const
|
|
6076
|
+
const Bc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
6077
6077
|
"div",
|
|
6078
6078
|
{
|
|
6079
|
-
className:
|
|
6079
|
+
className: _(
|
|
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
|
),
|
|
6083
6083
|
...t
|
|
6084
6084
|
}
|
|
6085
6085
|
);
|
|
6086
|
-
|
|
6087
|
-
const
|
|
6086
|
+
Bc.displayName = "DialogFooter";
|
|
6087
|
+
const zc = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6088
6088
|
fo,
|
|
6089
6089
|
{
|
|
6090
6090
|
ref: n,
|
|
6091
|
-
className:
|
|
6091
|
+
className: _("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
|
|
6092
6092
|
...t
|
|
6093
6093
|
}
|
|
6094
6094
|
));
|
|
6095
|
-
|
|
6095
|
+
zc.displayName = fo.displayName;
|
|
6096
6096
|
const Gc = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6097
6097
|
po,
|
|
6098
6098
|
{
|
|
6099
6099
|
ref: n,
|
|
6100
|
-
className:
|
|
6100
|
+
className: _("al-text-sm al-text-muted-foreground", e),
|
|
6101
6101
|
...t
|
|
6102
6102
|
}
|
|
6103
6103
|
));
|
|
@@ -6118,7 +6118,7 @@ var $t = l.forwardRef((e, t) => {
|
|
|
6118
6118
|
return l.cloneElement(n, {
|
|
6119
6119
|
...Kc(r, n.props),
|
|
6120
6120
|
// @ts-ignore
|
|
6121
|
-
ref: t ?
|
|
6121
|
+
ref: t ? ke(t, o) : o
|
|
6122
6122
|
});
|
|
6123
6123
|
}
|
|
6124
6124
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
@@ -6143,9 +6143,9 @@ function Yc(e) {
|
|
|
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 dn = "Popover", [Wo,
|
|
6147
|
-
|
|
6148
|
-
]), Be =
|
|
6146
|
+
var dn = "Popover", [Wo, qu] = ae(dn, [
|
|
6147
|
+
dt
|
|
6148
|
+
]), Be = dt(), [Xc, ge] = Wo(dn), Vo = (e) => {
|
|
6149
6149
|
const {
|
|
6150
6150
|
__scopePopover: t,
|
|
6151
6151
|
children: n,
|
|
@@ -6153,7 +6153,7 @@ var dn = "Popover", [Wo, Yu] = 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] = De({
|
|
6157
6157
|
prop: r,
|
|
6158
6158
|
defaultProp: o,
|
|
6159
6159
|
onChange: s
|
|
@@ -6162,7 +6162,7 @@ var dn = "Popover", [Wo, Yu] = ae(dn, [
|
|
|
6162
6162
|
Xc,
|
|
6163
6163
|
{
|
|
6164
6164
|
scope: t,
|
|
6165
|
-
contentId:
|
|
6165
|
+
contentId: Re(),
|
|
6166
6166
|
triggerRef: c,
|
|
6167
6167
|
open: f,
|
|
6168
6168
|
onOpenChange: h,
|
|
@@ -6176,16 +6176,16 @@ var dn = "Popover", [Wo, Yu] = ae(dn, [
|
|
|
6176
6176
|
) });
|
|
6177
6177
|
};
|
|
6178
6178
|
Vo.displayName = dn;
|
|
6179
|
-
var
|
|
6179
|
+
var Bo = "PopoverAnchor", qc = l.forwardRef(
|
|
6180
6180
|
(e, t) => {
|
|
6181
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6181
|
+
const { __scopePopover: n, ...r } = e, o = ge(Bo, n), s = Be(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
|
|
6182
6182
|
return l.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ g.jsx(un, { ...s, ...r, ref: t });
|
|
6183
6183
|
}
|
|
6184
6184
|
);
|
|
6185
|
-
qc.displayName =
|
|
6186
|
-
var
|
|
6185
|
+
qc.displayName = Bo;
|
|
6186
|
+
var zo = "PopoverTrigger", Go = l.forwardRef(
|
|
6187
6187
|
(e, t) => {
|
|
6188
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6188
|
+
const { __scopePopover: n, ...r } = e, o = ge(zo, n), s = Be(n), a = B(t, o.triggerRef), i = /* @__PURE__ */ g.jsx(
|
|
6189
6189
|
$.button,
|
|
6190
6190
|
{
|
|
6191
6191
|
type: "button",
|
|
@@ -6201,24 +6201,24 @@ var Bo = "PopoverTrigger", Go = l.forwardRef(
|
|
|
6201
6201
|
return o.hasCustomAnchor ? i : /* @__PURE__ */ g.jsx(un, { asChild: !0, ...s, children: i });
|
|
6202
6202
|
}
|
|
6203
6203
|
);
|
|
6204
|
-
Go.displayName =
|
|
6204
|
+
Go.displayName = zo;
|
|
6205
6205
|
var fn = "PopoverPortal", [Zc, Qc] = Wo(fn, {
|
|
6206
6206
|
forceMount: void 0
|
|
6207
6207
|
}), Ho = (e) => {
|
|
6208
|
-
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s =
|
|
6209
|
-
return /* @__PURE__ */ g.jsx(Zc, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(
|
|
6208
|
+
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ge(fn, t);
|
|
6209
|
+
return /* @__PURE__ */ g.jsx(Zc, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(at, { asChild: !0, container: o, children: r }) }) });
|
|
6210
6210
|
};
|
|
6211
6211
|
Ho.displayName = fn;
|
|
6212
|
-
var
|
|
6212
|
+
var Ne = "PopoverContent", Uo = l.forwardRef(
|
|
6213
6213
|
(e, t) => {
|
|
6214
|
-
const n = Qc(
|
|
6214
|
+
const n = Qc(Ne, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ge(Ne, e.__scopePopover);
|
|
6215
6215
|
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(Jc, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(eu, { ...o, ref: t }) });
|
|
6216
6216
|
}
|
|
6217
6217
|
);
|
|
6218
|
-
Uo.displayName =
|
|
6218
|
+
Uo.displayName = Ne;
|
|
6219
6219
|
var Jc = l.forwardRef(
|
|
6220
6220
|
(e, t) => {
|
|
6221
|
-
const n =
|
|
6221
|
+
const n = ge(Ne, e.__scopePopover), r = l.useRef(null), o = B(t, r), s = l.useRef(!1);
|
|
6222
6222
|
return l.useEffect(() => {
|
|
6223
6223
|
const a = r.current;
|
|
6224
6224
|
if (a) return Hr(a);
|
|
@@ -6251,7 +6251,7 @@ var Jc = l.forwardRef(
|
|
|
6251
6251
|
}
|
|
6252
6252
|
), eu = l.forwardRef(
|
|
6253
6253
|
(e, t) => {
|
|
6254
|
-
const n =
|
|
6254
|
+
const n = ge(Ne, e.__scopePopover), r = l.useRef(!1), o = l.useRef(!1);
|
|
6255
6255
|
return /* @__PURE__ */ g.jsx(
|
|
6256
6256
|
Ko,
|
|
6257
6257
|
{
|
|
@@ -6285,7 +6285,7 @@ var Jc = l.forwardRef(
|
|
|
6285
6285
|
onFocusOutside: u,
|
|
6286
6286
|
onInteractOutside: d,
|
|
6287
6287
|
...f
|
|
6288
|
-
} = e, h =
|
|
6288
|
+
} = e, h = ge(Ne, n), m = Be(n);
|
|
6289
6289
|
return _r(), /* @__PURE__ */ g.jsx(
|
|
6290
6290
|
Xt,
|
|
6291
6291
|
{
|
|
@@ -6295,7 +6295,7 @@ var Jc = l.forwardRef(
|
|
|
6295
6295
|
onMountAutoFocus: o,
|
|
6296
6296
|
onUnmountAutoFocus: s,
|
|
6297
6297
|
children: /* @__PURE__ */ g.jsx(
|
|
6298
|
-
|
|
6298
|
+
We,
|
|
6299
6299
|
{
|
|
6300
6300
|
asChild: !0,
|
|
6301
6301
|
disableOutsidePointerEvents: a,
|
|
@@ -6330,7 +6330,7 @@ var Jc = l.forwardRef(
|
|
|
6330
6330
|
}
|
|
6331
6331
|
), Yo = "PopoverClose", tu = l.forwardRef(
|
|
6332
6332
|
(e, t) => {
|
|
6333
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6333
|
+
const { __scopePopover: n, ...r } = e, o = ge(Yo, n);
|
|
6334
6334
|
return /* @__PURE__ */ g.jsx(
|
|
6335
6335
|
$.button,
|
|
6336
6336
|
{
|
|
@@ -6354,13 +6354,13 @@ function Xo(e) {
|
|
|
6354
6354
|
return e ? "open" : "closed";
|
|
6355
6355
|
}
|
|
6356
6356
|
var ou = Vo, su = Go, au = Ho, qo = Uo;
|
|
6357
|
-
const
|
|
6357
|
+
const Zu = ou, Qu = su, iu = G(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ g.jsx(au, { children: /* @__PURE__ */ g.jsx(
|
|
6358
6358
|
qo,
|
|
6359
6359
|
{
|
|
6360
6360
|
ref: o,
|
|
6361
6361
|
align: t,
|
|
6362
6362
|
sideOffset: n,
|
|
6363
|
-
className:
|
|
6363
|
+
className: _(
|
|
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
|
),
|
|
@@ -6368,49 +6368,7 @@ const Xu = ou, qu = su, iu = G(({ className: e, align: t = "center", sideOffset:
|
|
|
6368
6368
|
}
|
|
6369
6369
|
) }));
|
|
6370
6370
|
iu.displayName = qo.displayName;
|
|
6371
|
-
const
|
|
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
|
-
}), Zu = () => ({
|
|
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
|
-
}), lu = {
|
|
6371
|
+
const lu = {
|
|
6414
6372
|
h1: "h1",
|
|
6415
6373
|
h2: "h2",
|
|
6416
6374
|
h3: "h3",
|
|
@@ -6418,7 +6376,15 @@ const ue = Gt("al-text-gray-900", {
|
|
|
6418
6376
|
subheading: "h5",
|
|
6419
6377
|
body: "p",
|
|
6420
6378
|
caption: "span"
|
|
6421
|
-
},
|
|
6379
|
+
}, cu = {
|
|
6380
|
+
h1: "regular",
|
|
6381
|
+
h2: "regular",
|
|
6382
|
+
h3: "regular",
|
|
6383
|
+
h4: "regular",
|
|
6384
|
+
subheading: "medium",
|
|
6385
|
+
body: "regular",
|
|
6386
|
+
caption: "regular"
|
|
6387
|
+
}, Ju = ({
|
|
6422
6388
|
variant: e = "body",
|
|
6423
6389
|
children: t,
|
|
6424
6390
|
className: n,
|
|
@@ -6426,36 +6392,65 @@ const ue = Gt("al-text-gray-900", {
|
|
|
6426
6392
|
size: o,
|
|
6427
6393
|
role: s
|
|
6428
6394
|
}) => {
|
|
6429
|
-
const a = lu[e];
|
|
6430
|
-
return /* @__PURE__ */ g.jsx(
|
|
6395
|
+
const a = lu[e], i = cu[e];
|
|
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
|
+
);
|
|
6431
6426
|
};
|
|
6432
|
-
var
|
|
6433
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
6427
|
+
var uu = l.forwardRef((e, t) => {
|
|
6428
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(du);
|
|
6434
6429
|
if (s) {
|
|
6435
6430
|
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);
|
|
6436
6431
|
return /* @__PURE__ */ g.jsx(Wt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
6437
6432
|
}
|
|
6438
6433
|
return /* @__PURE__ */ g.jsx(Wt, { ...r, ref: t, children: n });
|
|
6439
6434
|
});
|
|
6440
|
-
|
|
6435
|
+
uu.displayName = "Slot";
|
|
6441
6436
|
var Wt = l.forwardRef((e, t) => {
|
|
6442
6437
|
const { children: n, ...r } = e;
|
|
6443
6438
|
if (l.isValidElement(n)) {
|
|
6444
|
-
const o =
|
|
6439
|
+
const o = pu(n);
|
|
6445
6440
|
return l.cloneElement(n, {
|
|
6446
|
-
...
|
|
6441
|
+
...fu(r, n.props),
|
|
6447
6442
|
// @ts-ignore
|
|
6448
|
-
ref: t ?
|
|
6443
|
+
ref: t ? ke(t, o) : o
|
|
6449
6444
|
});
|
|
6450
6445
|
}
|
|
6451
6446
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
6452
6447
|
});
|
|
6453
6448
|
Wt.displayName = "SlotClone";
|
|
6454
6449
|
var Zo = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6455
|
-
function
|
|
6450
|
+
function du(e) {
|
|
6456
6451
|
return l.isValidElement(e) && e.type === Zo;
|
|
6457
6452
|
}
|
|
6458
|
-
function
|
|
6453
|
+
function fu(e, t) {
|
|
6459
6454
|
const n = { ...t };
|
|
6460
6455
|
for (const r in t) {
|
|
6461
6456
|
const o = e[r], s = t[r];
|
|
@@ -6465,12 +6460,12 @@ function du(e, t) {
|
|
|
6465
6460
|
}
|
|
6466
6461
|
return { ...e, ...n };
|
|
6467
6462
|
}
|
|
6468
|
-
function
|
|
6463
|
+
function pu(e) {
|
|
6469
6464
|
var r, o;
|
|
6470
6465
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6471
6466
|
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);
|
|
6472
6467
|
}
|
|
6473
|
-
var
|
|
6468
|
+
var mu = "VisuallyHidden", Qo = l.forwardRef(
|
|
6474
6469
|
(e, t) => /* @__PURE__ */ g.jsx(
|
|
6475
6470
|
$.span,
|
|
6476
6471
|
{
|
|
@@ -6493,13 +6488,13 @@ var pu = "VisuallyHidden", Qo = l.forwardRef(
|
|
|
6493
6488
|
}
|
|
6494
6489
|
)
|
|
6495
6490
|
);
|
|
6496
|
-
Qo.displayName =
|
|
6497
|
-
var
|
|
6498
|
-
|
|
6499
|
-
]),
|
|
6491
|
+
Qo.displayName = mu;
|
|
6492
|
+
var gu = Qo, [ft, ed] = ae("Tooltip", [
|
|
6493
|
+
dt
|
|
6494
|
+
]), pt = dt(), Jo = "TooltipProvider", hu = 700, Vt = "tooltip.open", [vu, pn] = ft(Jo), es = (e) => {
|
|
6500
6495
|
const {
|
|
6501
6496
|
__scopeTooltip: t,
|
|
6502
|
-
delayDuration: n =
|
|
6497
|
+
delayDuration: n = hu,
|
|
6503
6498
|
skipDelayDuration: r = 300,
|
|
6504
6499
|
disableHoverableContent: o = !1,
|
|
6505
6500
|
children: s
|
|
@@ -6508,7 +6503,7 @@ var mu = Qo, [pt, Ju] = ae("Tooltip", [
|
|
|
6508
6503
|
const d = u.current;
|
|
6509
6504
|
return () => window.clearTimeout(d);
|
|
6510
6505
|
}, []), /* @__PURE__ */ g.jsx(
|
|
6511
|
-
|
|
6506
|
+
vu,
|
|
6512
6507
|
{
|
|
6513
6508
|
scope: t,
|
|
6514
6509
|
isOpenDelayed: a,
|
|
@@ -6532,7 +6527,7 @@ var mu = Qo, [pt, Ju] = ae("Tooltip", [
|
|
|
6532
6527
|
);
|
|
6533
6528
|
};
|
|
6534
6529
|
es.displayName = Jo;
|
|
6535
|
-
var
|
|
6530
|
+
var mt = "Tooltip", [bu, ze] = ft(mt), ts = (e) => {
|
|
6536
6531
|
const {
|
|
6537
6532
|
__scopeTooltip: t,
|
|
6538
6533
|
children: n,
|
|
@@ -6541,7 +6536,7 @@ var gt = "Tooltip", [vu, Ge] = pt(gt), ts = (e) => {
|
|
|
6541
6536
|
onOpenChange: s,
|
|
6542
6537
|
disableHoverableContent: a,
|
|
6543
6538
|
delayDuration: i
|
|
6544
|
-
} = e, c = pn(
|
|
6539
|
+
} = e, c = pn(mt, e.__scopeTooltip), u = pt(t), [d, f] = l.useState(null), h = Re(), m = l.useRef(0), v = a ?? c.disableHoverableContent, p = i ?? c.delayDuration, b = l.useRef(!1), [y = !1, x] = De({
|
|
6545
6540
|
prop: r,
|
|
6546
6541
|
defaultProp: o,
|
|
6547
6542
|
onChange: (R) => {
|
|
@@ -6559,7 +6554,7 @@ var gt = "Tooltip", [vu, Ge] = pt(gt), ts = (e) => {
|
|
|
6559
6554
|
return l.useEffect(() => () => {
|
|
6560
6555
|
m.current && (window.clearTimeout(m.current), m.current = 0);
|
|
6561
6556
|
}, []), /* @__PURE__ */ g.jsx(Io, { ...u, children: /* @__PURE__ */ g.jsx(
|
|
6562
|
-
|
|
6557
|
+
bu,
|
|
6563
6558
|
{
|
|
6564
6559
|
scope: t,
|
|
6565
6560
|
contentId: h,
|
|
@@ -6580,10 +6575,10 @@ var gt = "Tooltip", [vu, Ge] = pt(gt), ts = (e) => {
|
|
|
6580
6575
|
}
|
|
6581
6576
|
) });
|
|
6582
6577
|
};
|
|
6583
|
-
ts.displayName =
|
|
6584
|
-
var
|
|
6578
|
+
ts.displayName = mt;
|
|
6579
|
+
var Bt = "TooltipTrigger", ns = l.forwardRef(
|
|
6585
6580
|
(e, t) => {
|
|
6586
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6581
|
+
const { __scopeTooltip: n, ...r } = e, o = ze(Bt, n), s = pn(Bt, n), a = pt(n), i = l.useRef(null), c = B(t, i, o.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => u.current = !1, []);
|
|
6587
6582
|
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ g.jsx(un, { asChild: !0, ...a, children: /* @__PURE__ */ g.jsx(
|
|
6588
6583
|
$.button,
|
|
6589
6584
|
{
|
|
@@ -6609,25 +6604,25 @@ var zt = "TooltipTrigger", ns = l.forwardRef(
|
|
|
6609
6604
|
) });
|
|
6610
6605
|
}
|
|
6611
6606
|
);
|
|
6612
|
-
ns.displayName =
|
|
6613
|
-
var mn = "TooltipPortal", [
|
|
6607
|
+
ns.displayName = Bt;
|
|
6608
|
+
var mn = "TooltipPortal", [yu, xu] = ft(mn, {
|
|
6614
6609
|
forceMount: void 0
|
|
6615
6610
|
}), rs = (e) => {
|
|
6616
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s =
|
|
6617
|
-
return /* @__PURE__ */ g.jsx(
|
|
6611
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = ze(mn, t);
|
|
6612
|
+
return /* @__PURE__ */ g.jsx(yu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(at, { asChild: !0, container: o, children: r }) }) });
|
|
6618
6613
|
};
|
|
6619
6614
|
rs.displayName = mn;
|
|
6620
|
-
var
|
|
6615
|
+
var Oe = "TooltipContent", os = l.forwardRef(
|
|
6621
6616
|
(e, t) => {
|
|
6622
|
-
const n =
|
|
6623
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(ss, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(
|
|
6617
|
+
const n = xu(Oe, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = ze(Oe, e.__scopeTooltip);
|
|
6618
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(ss, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(wu, { side: o, ...s, ref: t }) });
|
|
6624
6619
|
}
|
|
6625
|
-
),
|
|
6626
|
-
const n =
|
|
6620
|
+
), wu = l.forwardRef((e, t) => {
|
|
6621
|
+
const n = ze(Oe, e.__scopeTooltip), r = pn(Oe, e.__scopeTooltip), o = l.useRef(null), s = B(t, o), [a, i] = l.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, h = l.useCallback(() => {
|
|
6627
6622
|
i(null), f(!1);
|
|
6628
6623
|
}, [f]), m = l.useCallback(
|
|
6629
6624
|
(v, p) => {
|
|
6630
|
-
const b = v.currentTarget, y = { x: v.clientX, y: v.clientY }, x =
|
|
6625
|
+
const b = v.currentTarget, y = { x: v.clientX, y: v.clientY }, x = Pu(y, b.getBoundingClientRect()), C = Su(y, x), w = Au(p.getBoundingClientRect()), E = Ou([...C, ...w]);
|
|
6631
6626
|
i(E), f(!0);
|
|
6632
6627
|
},
|
|
6633
6628
|
[f]
|
|
@@ -6642,13 +6637,13 @@ var Te = "TooltipContent", os = l.forwardRef(
|
|
|
6642
6637
|
}, [c, d, m, h]), l.useEffect(() => {
|
|
6643
6638
|
if (a) {
|
|
6644
6639
|
const v = (p) => {
|
|
6645
|
-
const b = p.target, y = { x: p.clientX, y: p.clientY }, x = (c == null ? void 0 : c.contains(b)) || (d == null ? void 0 : d.contains(b)), C = !
|
|
6640
|
+
const b = p.target, y = { x: p.clientX, y: p.clientY }, x = (c == null ? void 0 : c.contains(b)) || (d == null ? void 0 : d.contains(b)), C = !Nu(y, a);
|
|
6646
6641
|
x ? h() : C && (h(), u());
|
|
6647
6642
|
};
|
|
6648
6643
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
6649
6644
|
}
|
|
6650
6645
|
}, [c, d, a, u, h]), /* @__PURE__ */ g.jsx(ss, { ...e, ref: s });
|
|
6651
|
-
}), [
|
|
6646
|
+
}), [Cu, Eu] = ft(mt, { isInside: !1 }), ss = l.forwardRef(
|
|
6652
6647
|
(e, t) => {
|
|
6653
6648
|
const {
|
|
6654
6649
|
__scopeTooltip: n,
|
|
@@ -6657,7 +6652,7 @@ var Te = "TooltipContent", os = l.forwardRef(
|
|
|
6657
6652
|
onEscapeKeyDown: s,
|
|
6658
6653
|
onPointerDownOutside: a,
|
|
6659
6654
|
...i
|
|
6660
|
-
} = e, c =
|
|
6655
|
+
} = e, c = ze(Oe, n), u = pt(n), { onClose: d } = c;
|
|
6661
6656
|
return l.useEffect(() => (document.addEventListener(Vt, d), () => document.removeEventListener(Vt, d)), [d]), l.useEffect(() => {
|
|
6662
6657
|
if (c.trigger) {
|
|
6663
6658
|
const f = (h) => {
|
|
@@ -6667,7 +6662,7 @@ var Te = "TooltipContent", os = l.forwardRef(
|
|
|
6667
6662
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
6668
6663
|
}
|
|
6669
6664
|
}, [c.trigger, d]), /* @__PURE__ */ g.jsx(
|
|
6670
|
-
|
|
6665
|
+
We,
|
|
6671
6666
|
{
|
|
6672
6667
|
asChild: !0,
|
|
6673
6668
|
disableOutsidePointerEvents: !1,
|
|
@@ -6692,7 +6687,7 @@ var Te = "TooltipContent", os = l.forwardRef(
|
|
|
6692
6687
|
},
|
|
6693
6688
|
children: [
|
|
6694
6689
|
/* @__PURE__ */ g.jsx(Zo, { children: r }),
|
|
6695
|
-
/* @__PURE__ */ g.jsx(
|
|
6690
|
+
/* @__PURE__ */ g.jsx(Cu, { scope: n, isInside: !0, children: /* @__PURE__ */ g.jsx(gu, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
6696
6691
|
]
|
|
6697
6692
|
}
|
|
6698
6693
|
)
|
|
@@ -6700,18 +6695,18 @@ var Te = "TooltipContent", os = l.forwardRef(
|
|
|
6700
6695
|
);
|
|
6701
6696
|
}
|
|
6702
6697
|
);
|
|
6703
|
-
os.displayName =
|
|
6704
|
-
var as = "TooltipArrow",
|
|
6698
|
+
os.displayName = Oe;
|
|
6699
|
+
var as = "TooltipArrow", Ru = l.forwardRef(
|
|
6705
6700
|
(e, t) => {
|
|
6706
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6707
|
-
return
|
|
6701
|
+
const { __scopeTooltip: n, ...r } = e, o = pt(n);
|
|
6702
|
+
return Eu(
|
|
6708
6703
|
as,
|
|
6709
6704
|
n
|
|
6710
6705
|
).isInside ? null : /* @__PURE__ */ g.jsx(Lo, { ...o, ...r, ref: t });
|
|
6711
6706
|
}
|
|
6712
6707
|
);
|
|
6713
|
-
|
|
6714
|
-
function
|
|
6708
|
+
Ru.displayName = as;
|
|
6709
|
+
function Pu(e, t) {
|
|
6715
6710
|
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);
|
|
6716
6711
|
switch (Math.min(n, r, o, s)) {
|
|
6717
6712
|
case s:
|
|
@@ -6726,7 +6721,7 @@ function Ru(e, t) {
|
|
|
6726
6721
|
throw new Error("unreachable");
|
|
6727
6722
|
}
|
|
6728
6723
|
}
|
|
6729
|
-
function
|
|
6724
|
+
function Su(e, t, n = 5) {
|
|
6730
6725
|
const r = [];
|
|
6731
6726
|
switch (t) {
|
|
6732
6727
|
case "top":
|
|
@@ -6756,7 +6751,7 @@ function Pu(e, t, n = 5) {
|
|
|
6756
6751
|
}
|
|
6757
6752
|
return r;
|
|
6758
6753
|
}
|
|
6759
|
-
function
|
|
6754
|
+
function Au(e) {
|
|
6760
6755
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6761
6756
|
return [
|
|
6762
6757
|
{ x: o, y: t },
|
|
@@ -6765,7 +6760,7 @@ function Su(e) {
|
|
|
6765
6760
|
{ x: o, y: r }
|
|
6766
6761
|
];
|
|
6767
6762
|
}
|
|
6768
|
-
function
|
|
6763
|
+
function Nu(e, t) {
|
|
6769
6764
|
const { x: n, y: r } = e;
|
|
6770
6765
|
let o = !1;
|
|
6771
6766
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
@@ -6774,11 +6769,11 @@ function Au(e, t) {
|
|
|
6774
6769
|
}
|
|
6775
6770
|
return o;
|
|
6776
6771
|
}
|
|
6777
|
-
function
|
|
6772
|
+
function Ou(e) {
|
|
6778
6773
|
const t = e.slice();
|
|
6779
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6774
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), Tu(t);
|
|
6780
6775
|
}
|
|
6781
|
-
function
|
|
6776
|
+
function Tu(e) {
|
|
6782
6777
|
if (e.length <= 1) return e.slice();
|
|
6783
6778
|
const t = [];
|
|
6784
6779
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6803,13 +6798,13 @@ function Ou(e) {
|
|
|
6803
6798
|
}
|
|
6804
6799
|
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);
|
|
6805
6800
|
}
|
|
6806
|
-
var
|
|
6807
|
-
const
|
|
6801
|
+
var ku = es, Du = ts, ju = ns, Mu = rs, is = os;
|
|
6802
|
+
const td = ku, Iu = Du, _u = ju, ls = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ g.jsx(Mu, { children: /* @__PURE__ */ g.jsx(
|
|
6808
6803
|
is,
|
|
6809
6804
|
{
|
|
6810
6805
|
ref: r,
|
|
6811
6806
|
sideOffset: t,
|
|
6812
|
-
className:
|
|
6807
|
+
className: _(
|
|
6813
6808
|
"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",
|
|
6814
6809
|
e
|
|
6815
6810
|
),
|
|
@@ -6817,14 +6812,74 @@ const ed = Tu, Mu = ku, Iu = Du, ls = l.forwardRef(({ className: e, sideOffset:
|
|
|
6817
6812
|
}
|
|
6818
6813
|
) }));
|
|
6819
6814
|
ls.displayName = is.displayName;
|
|
6820
|
-
const
|
|
6815
|
+
const nd = ({
|
|
6821
6816
|
children: e,
|
|
6822
6817
|
title: t,
|
|
6823
6818
|
...n
|
|
6824
|
-
}) => t ? /* @__PURE__ */ g.jsxs(
|
|
6825
|
-
/* @__PURE__ */ g.jsx(
|
|
6819
|
+
}) => t ? /* @__PURE__ */ g.jsxs(Iu, { ...n, children: [
|
|
6820
|
+
/* @__PURE__ */ g.jsx(_u, { asChild: !0, children: /* @__PURE__ */ g.jsx("span", { className: "al-max-w-full", children: e }) }),
|
|
6826
6821
|
/* @__PURE__ */ g.jsx(ls, { children: t })
|
|
6827
|
-
] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: e })
|
|
6822
|
+
] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6823
|
+
/**
|
|
6824
|
+
* @license @tabler/icons-react v3.34.1 - MIT
|
|
6825
|
+
*
|
|
6826
|
+
* This source code is licensed under the MIT license.
|
|
6827
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6828
|
+
*/
|
|
6829
|
+
var Lu = {
|
|
6830
|
+
outline: {
|
|
6831
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6832
|
+
width: 24,
|
|
6833
|
+
height: 24,
|
|
6834
|
+
viewBox: "0 0 24 24",
|
|
6835
|
+
fill: "none",
|
|
6836
|
+
stroke: "currentColor",
|
|
6837
|
+
strokeWidth: 2,
|
|
6838
|
+
strokeLinecap: "round",
|
|
6839
|
+
strokeLinejoin: "round"
|
|
6840
|
+
},
|
|
6841
|
+
filled: {
|
|
6842
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6843
|
+
width: 24,
|
|
6844
|
+
height: 24,
|
|
6845
|
+
viewBox: "0 0 24 24",
|
|
6846
|
+
fill: "currentColor",
|
|
6847
|
+
stroke: "none"
|
|
6848
|
+
}
|
|
6849
|
+
};
|
|
6850
|
+
/**
|
|
6851
|
+
* @license @tabler/icons-react v3.34.1 - MIT
|
|
6852
|
+
*
|
|
6853
|
+
* This source code is licensed under the MIT license.
|
|
6854
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6855
|
+
*/
|
|
6856
|
+
const rd = (e, t, n, r) => {
|
|
6857
|
+
const o = G(
|
|
6858
|
+
({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) => gt(
|
|
6859
|
+
"svg",
|
|
6860
|
+
{
|
|
6861
|
+
ref: h,
|
|
6862
|
+
...Lu[e],
|
|
6863
|
+
width: a,
|
|
6864
|
+
height: a,
|
|
6865
|
+
className: ["tabler-icon", `tabler-icon-${t}`, u].join(" "),
|
|
6866
|
+
...e === "filled" ? {
|
|
6867
|
+
fill: s
|
|
6868
|
+
} : {
|
|
6869
|
+
strokeWidth: i,
|
|
6870
|
+
stroke: s
|
|
6871
|
+
},
|
|
6872
|
+
...f
|
|
6873
|
+
},
|
|
6874
|
+
[
|
|
6875
|
+
c && gt("title", { key: "svg-title" }, c),
|
|
6876
|
+
...r.map(([m, v]) => gt(m, v)),
|
|
6877
|
+
...Array.isArray(d) ? d : [d]
|
|
6878
|
+
]
|
|
6879
|
+
)
|
|
6880
|
+
);
|
|
6881
|
+
return o.displayName = `${n}`, o;
|
|
6882
|
+
}, od = G(function({
|
|
6828
6883
|
children: t,
|
|
6829
6884
|
wrap: n = !1,
|
|
6830
6885
|
justify: r,
|
|
@@ -6863,7 +6918,7 @@ const td = ({
|
|
|
6863
6918
|
// 64px
|
|
6864
6919
|
"8xl": "al-gap-20"
|
|
6865
6920
|
// 80px
|
|
6866
|
-
})[m], h =
|
|
6921
|
+
})[m], h = _(
|
|
6867
6922
|
"al-flex",
|
|
6868
6923
|
// Direction
|
|
6869
6924
|
c === "column" ? "al-flex-col" : "al-flex-row",
|
|
@@ -6895,82 +6950,82 @@ const td = ({
|
|
|
6895
6950
|
return /* @__PURE__ */ g.jsx("div", { ...u, className: h, ref: d, children: t });
|
|
6896
6951
|
});
|
|
6897
6952
|
export {
|
|
6898
|
-
|
|
6953
|
+
Al as $,
|
|
6899
6954
|
un as A,
|
|
6900
6955
|
Io as B,
|
|
6901
6956
|
mo as C,
|
|
6902
6957
|
po as D,
|
|
6903
|
-
|
|
6958
|
+
at as E,
|
|
6904
6959
|
Xt as F,
|
|
6905
|
-
|
|
6906
|
-
|
|
6960
|
+
Re as G,
|
|
6961
|
+
Ku as H,
|
|
6907
6962
|
Ya as I,
|
|
6908
6963
|
Wc as J,
|
|
6909
|
-
|
|
6910
|
-
|
|
6964
|
+
ve as K,
|
|
6965
|
+
Hu as L,
|
|
6911
6966
|
ua as M,
|
|
6912
|
-
|
|
6967
|
+
rd as N,
|
|
6913
6968
|
co as O,
|
|
6914
6969
|
$ as P,
|
|
6915
|
-
|
|
6970
|
+
Zu as Q,
|
|
6916
6971
|
yl as R,
|
|
6917
|
-
|
|
6972
|
+
Qu as S,
|
|
6918
6973
|
xl as T,
|
|
6919
|
-
|
|
6974
|
+
da as U,
|
|
6920
6975
|
Qo as V,
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6976
|
+
Uu as W,
|
|
6977
|
+
iu as X,
|
|
6978
|
+
Ju as Y,
|
|
6979
|
+
Sl as Z,
|
|
6980
|
+
oa as _,
|
|
6926
6981
|
ae as a,
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6982
|
+
kl as a0,
|
|
6983
|
+
Ol as a1,
|
|
6984
|
+
od as a2,
|
|
6985
|
+
Nl as a3,
|
|
6986
|
+
jl as a4,
|
|
6987
|
+
nd as a5,
|
|
6988
|
+
ai as a6,
|
|
6989
|
+
ur as a7,
|
|
6990
|
+
$c as a8,
|
|
6991
|
+
Fo as a9,
|
|
6992
|
+
Gu as aa,
|
|
6993
|
+
zu as ab,
|
|
6994
|
+
td as ac,
|
|
6940
6995
|
Iu as ad,
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6996
|
+
_u as ae,
|
|
6997
|
+
ls as af,
|
|
6998
|
+
si as ag,
|
|
6999
|
+
kr as ah,
|
|
7000
|
+
Dl as ai,
|
|
7001
|
+
Tl as aj,
|
|
7002
|
+
tu as ak,
|
|
7003
|
+
Xu as al,
|
|
7004
|
+
Yu as am,
|
|
7005
|
+
Vc as an,
|
|
6951
7006
|
Bc as ao,
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
7007
|
+
zc as ap,
|
|
7008
|
+
Gc as aq,
|
|
7009
|
+
De as b,
|
|
7010
|
+
_ as c,
|
|
6956
7011
|
k as d,
|
|
6957
7012
|
rr as e,
|
|
6958
7013
|
Ht as f,
|
|
6959
7014
|
wl as g,
|
|
6960
7015
|
uo as h,
|
|
6961
7016
|
fo as i,
|
|
6962
|
-
|
|
6963
|
-
|
|
7017
|
+
nr as j,
|
|
7018
|
+
ke as k,
|
|
6964
7019
|
ja as l,
|
|
6965
|
-
|
|
7020
|
+
dt as m,
|
|
6966
7021
|
pr as n,
|
|
6967
7022
|
ee as o,
|
|
6968
7023
|
Hr as p,
|
|
6969
7024
|
_r as q,
|
|
6970
|
-
|
|
7025
|
+
We as r,
|
|
6971
7026
|
Ka as s,
|
|
6972
7027
|
_o as t,
|
|
6973
|
-
|
|
7028
|
+
B as u,
|
|
6974
7029
|
re as v,
|
|
6975
7030
|
Lo as w,
|
|
6976
7031
|
qt as x,
|