@altimateai/ui-components 0.0.57 → 0.0.58
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.js +976 -974
- package/dist/Stack.js +701 -635
- package/dist/TagsInput.js +3319 -2710
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index2.js +36 -36
- package/dist/lineage/index.js +274 -274
- package/dist/main.js +146 -146
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.d.ts +16 -2
- package/dist/shadcn/index.js +345 -339
- package/dist/storybook/InputGroup.stories.tsx +352 -0
- package/dist/{types-Bg8l4_6q.d.ts → types-Bm5uFaKK.d.ts} +1 -0
- package/package.json +1 -1
package/dist/Stack.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { j as g, S as ys,
|
|
1
|
+
import { j as g, S as ys, d as xs } from "./index2.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import ve, { forwardRef as
|
|
4
|
-
import * as
|
|
3
|
+
import ve, { forwardRef as H, useState as ws, createElement as ht, useLayoutEffect as Cs, useEffect as Es } from "react";
|
|
4
|
+
import * as qn from "react-dom";
|
|
5
5
|
import Rs from "react-dom";
|
|
6
|
-
function
|
|
6
|
+
function Zn(e) {
|
|
7
7
|
var t, n, r = "";
|
|
8
8
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
9
9
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
10
10
|
var o = e.length;
|
|
11
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
11
|
+
for (t = 0; t < o; t++) e[t] && (n = Zn(e[t])) && (r && (r += " "), r += n);
|
|
12
12
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
13
13
|
return r;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
15
|
+
function Qn() {
|
|
16
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Zn(e)) && (r && (r += " "), r += t);
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const Ht = "-", Ps = (e) => {
|
|
20
20
|
const t = As(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(Ht);
|
|
27
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Jn(i, t) || Ss(a);
|
|
28
28
|
},
|
|
29
29
|
getConflictingClassGroupIds: (a, i) => {
|
|
30
30
|
const c = n[a] || [];
|
|
31
31
|
return i && r[a] ? [...c, ...r[a]] : c;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, Jn = (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 ? Jn(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(Ht);
|
|
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 Gt = "-", Ps = (e) => {
|
|
|
85
85
|
});
|
|
86
86
|
}, Rn = (e, t) => {
|
|
87
87
|
let n = e;
|
|
88
|
-
return t.split(
|
|
88
|
+
return t.split(Ht).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 Gt = "-", Ps = (e) => {
|
|
|
118
118
|
n.has(s) ? n.set(s, a) : o(s, a);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
},
|
|
121
|
+
}, er = "!", ks = (e) => {
|
|
122
122
|
const {
|
|
123
123
|
separator: t,
|
|
124
124
|
experimentalParseClassName: n
|
|
@@ -139,7 +139,7 @@ const Gt = "-", Ps = (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(er), 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,
|
|
@@ -163,12 +163,12 @@ const Gt = "-", Ps = (e) => {
|
|
|
163
163
|
cache: Ts(e.cacheSize),
|
|
164
164
|
parseClassName: ks(e),
|
|
165
165
|
...Ps(e)
|
|
166
|
-
}),
|
|
166
|
+
}), Is = /\s+/, Ms = (e, t) => {
|
|
167
167
|
const {
|
|
168
168
|
parseClassName: n,
|
|
169
169
|
getClassGroupId: r,
|
|
170
170
|
getConflictingClassGroupIds: o
|
|
171
|
-
} = t, s = [], a = e.trim().split(
|
|
171
|
+
} = t, s = [], a = e.trim().split(Is);
|
|
172
172
|
let i = "";
|
|
173
173
|
for (let c = a.length - 1; c >= 0; c -= 1) {
|
|
174
174
|
const u = a[c], {
|
|
@@ -189,7 +189,7 @@ const Gt = "-", Ps = (e) => {
|
|
|
189
189
|
}
|
|
190
190
|
v = !1;
|
|
191
191
|
}
|
|
192
|
-
const b = Ds(d).join(":"), y = f ? b +
|
|
192
|
+
const b = Ds(d).join(":"), y = f ? b + er : b, x = y + p;
|
|
193
193
|
if (s.includes(x))
|
|
194
194
|
continue;
|
|
195
195
|
s.push(x);
|
|
@@ -205,15 +205,15 @@ const Gt = "-", Ps = (e) => {
|
|
|
205
205
|
function _s() {
|
|
206
206
|
let e = 0, t, n, r = "";
|
|
207
207
|
for (; e < arguments.length; )
|
|
208
|
-
(t = arguments[e++]) && (n =
|
|
208
|
+
(t = arguments[e++]) && (n = tr(t)) && (r && (r += " "), r += n);
|
|
209
209
|
return r;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const tr = (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 = tr(e[r])) && (n && (n += " "), n += t);
|
|
217
217
|
return n;
|
|
218
218
|
};
|
|
219
219
|
function Ls(e, ...t) {
|
|
@@ -226,7 +226,7 @@ function Ls(e, ...t) {
|
|
|
226
226
|
const u = r(c);
|
|
227
227
|
if (u)
|
|
228
228
|
return u;
|
|
229
|
-
const d =
|
|
229
|
+
const d = Ms(c, n);
|
|
230
230
|
return o(c, d), d;
|
|
231
231
|
}
|
|
232
232
|
return function() {
|
|
@@ -236,16 +236,16 @@ function Ls(e, ...t) {
|
|
|
236
236
|
const _ = (e) => {
|
|
237
237
|
const t = (n) => n[e] || [];
|
|
238
238
|
return t.isThemeGetter = !0, t;
|
|
239
|
-
},
|
|
240
|
-
const r =
|
|
239
|
+
}, nr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fs = /^\d+\/\d+$/, $s = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Bs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, zs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ne = (e) => Re(e) || $s.has(e) || Fs.test(e), ie = (e) => ke(e, "length", Qs), Re = (e) => !!e && !Number.isNaN(Number(e)), vt = (e) => ke(e, "number", Re), Le = (e) => !!e && Number.isInteger(Number(e)), Gs = (e) => e.endsWith("%") && Re(e.slice(0, -1)), N = (e) => nr.test(e), le = (e) => Ws.test(e), Us = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ks = (e) => ke(e, Us, rr), Ys = (e) => ke(e, "position", rr), Xs = /* @__PURE__ */ new Set(["image", "url"]), qs = (e) => ke(e, Xs, ea), Zs = (e) => ke(e, "", Js), Fe = () => !0, ke = (e, t, n) => {
|
|
240
|
+
const r = nr.exec(e);
|
|
241
241
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
242
242
|
}, Qs = (e) => (
|
|
243
243
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
244
244
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
245
245
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
246
|
-
Vs.test(e) && !
|
|
247
|
-
),
|
|
248
|
-
const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), h = _("gap"), m = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"),
|
|
246
|
+
Vs.test(e) && !Bs.test(e)
|
|
247
|
+
), rr = () => !1, Js = (e) => zs.test(e), ea = (e) => Hs.test(e), ta = () => {
|
|
248
|
+
const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), h = _("gap"), m = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"), I = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Re, 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"], G = () => [Re, N];
|
|
249
249
|
return {
|
|
250
250
|
cacheSize: 500,
|
|
251
251
|
separator: ":",
|
|
@@ -253,26 +253,26 @@ const _ = (e) => {
|
|
|
253
253
|
colors: [Fe],
|
|
254
254
|
spacing: [ne, ie],
|
|
255
255
|
blur: ["none", "", le, N],
|
|
256
|
-
brightness:
|
|
256
|
+
brightness: G(),
|
|
257
257
|
borderColor: [e],
|
|
258
258
|
borderRadius: ["none", "", "full", le, N],
|
|
259
259
|
borderSpacing: A(),
|
|
260
260
|
borderWidth: L(),
|
|
261
|
-
contrast:
|
|
261
|
+
contrast: G(),
|
|
262
262
|
grayscale: W(),
|
|
263
|
-
hueRotate:
|
|
263
|
+
hueRotate: G(),
|
|
264
264
|
invert: W(),
|
|
265
265
|
gap: A(),
|
|
266
266
|
gradientColorStops: [e],
|
|
267
|
-
gradientColorStopPositions: [
|
|
267
|
+
gradientColorStopPositions: [Gs, ie],
|
|
268
268
|
inset: F(),
|
|
269
269
|
margin: F(),
|
|
270
|
-
opacity:
|
|
270
|
+
opacity: G(),
|
|
271
271
|
padding: A(),
|
|
272
|
-
saturate:
|
|
273
|
-
scale:
|
|
272
|
+
saturate: G(),
|
|
273
|
+
scale: G(),
|
|
274
274
|
sepia: W(),
|
|
275
|
-
skew:
|
|
275
|
+
skew: G(),
|
|
276
276
|
space: A(),
|
|
277
277
|
translate: A()
|
|
278
278
|
},
|
|
@@ -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
|
|
@@ -396,21 +396,21 @@ const _ = (e) => {
|
|
|
396
396
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
397
397
|
*/
|
|
398
398
|
overscroll: [{
|
|
399
|
-
overscroll:
|
|
399
|
+
overscroll: I()
|
|
400
400
|
}],
|
|
401
401
|
/**
|
|
402
402
|
* Overscroll Behavior X
|
|
403
403
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
404
404
|
*/
|
|
405
405
|
"overscroll-x": [{
|
|
406
|
-
"overscroll-x":
|
|
406
|
+
"overscroll-x": I()
|
|
407
407
|
}],
|
|
408
408
|
/**
|
|
409
409
|
* Overscroll Behavior Y
|
|
410
410
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
411
411
|
*/
|
|
412
412
|
"overscroll-y": [{
|
|
413
|
-
"overscroll-y":
|
|
413
|
+
"overscroll-y": I()
|
|
414
414
|
}],
|
|
415
415
|
/**
|
|
416
416
|
* Position
|
|
@@ -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(), Ys]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Background Repeat
|
|
@@ -1847,7 +1847,7 @@ const _ = (e) => {
|
|
|
1847
1847
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1848
1848
|
*/
|
|
1849
1849
|
duration: [{
|
|
1850
|
-
duration:
|
|
1850
|
+
duration: G()
|
|
1851
1851
|
}],
|
|
1852
1852
|
/**
|
|
1853
1853
|
* Transition Timing Function
|
|
@@ -1861,7 +1861,7 @@ const _ = (e) => {
|
|
|
1861
1861
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1862
1862
|
*/
|
|
1863
1863
|
delay: [{
|
|
1864
|
-
delay:
|
|
1864
|
+
delay: G()
|
|
1865
1865
|
}],
|
|
1866
1866
|
/**
|
|
1867
1867
|
* Animation
|
|
@@ -2274,8 +2274,8 @@ const _ = (e) => {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
2276
|
}, na = /* @__PURE__ */ Ls(ta);
|
|
2277
|
-
function
|
|
2278
|
-
return na(
|
|
2277
|
+
function M(...e) {
|
|
2278
|
+
return na(Qn(e));
|
|
2279
2279
|
}
|
|
2280
2280
|
function Pn(e, t) {
|
|
2281
2281
|
if (typeof e == "function")
|
|
@@ -2298,11 +2298,8 @@ function ra(...e) {
|
|
|
2298
2298
|
};
|
|
2299
2299
|
};
|
|
2300
2300
|
}
|
|
2301
|
-
function oa(...e) {
|
|
2302
|
-
return l.useCallback(ra(...e), e);
|
|
2303
|
-
}
|
|
2304
2301
|
// @__NO_SIDE_EFFECTS__
|
|
2305
|
-
function
|
|
2302
|
+
function oa(e) {
|
|
2306
2303
|
const t = /* @__PURE__ */ aa(e), n = l.forwardRef((r, o) => {
|
|
2307
2304
|
const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(la);
|
|
2308
2305
|
if (c) {
|
|
@@ -2313,14 +2310,14 @@ function rr(e) {
|
|
|
2313
2310
|
});
|
|
2314
2311
|
return n.displayName = `${e}.Slot`, n;
|
|
2315
2312
|
}
|
|
2316
|
-
var sa = /* @__PURE__ */
|
|
2313
|
+
var sa = /* @__PURE__ */ oa("Slot");
|
|
2317
2314
|
// @__NO_SIDE_EFFECTS__
|
|
2318
2315
|
function aa(e) {
|
|
2319
2316
|
const t = l.forwardRef((n, r) => {
|
|
2320
|
-
const { children: o, ...s } = n
|
|
2317
|
+
const { children: o, ...s } = n;
|
|
2321
2318
|
if (l.isValidElement(o)) {
|
|
2322
|
-
const
|
|
2323
|
-
return o.type !== l.Fragment && (
|
|
2319
|
+
const a = ua(o), i = ca(s, o.props);
|
|
2320
|
+
return o.type !== l.Fragment && (i.ref = r ? ra(r, a) : a), l.cloneElement(o, i);
|
|
2324
2321
|
}
|
|
2325
2322
|
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
2326
2323
|
});
|
|
@@ -2346,7 +2343,7 @@ function ua(e) {
|
|
|
2346
2343
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2347
2344
|
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
2345
|
}
|
|
2349
|
-
const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An =
|
|
2346
|
+
const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An = Qn, Gt = (e, t) => (n) => {
|
|
2350
2347
|
var r;
|
|
2351
2348
|
if ((t == null ? void 0 : t.variants) == null) return An(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2352
2349
|
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((u) => {
|
|
@@ -2375,7 +2372,7 @@ const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An = Zn, H
|
|
|
2375
2372
|
] : u;
|
|
2376
2373
|
}, []);
|
|
2377
2374
|
return An(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2378
|
-
}, da =
|
|
2375
|
+
}, da = Gt(
|
|
2379
2376
|
"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
2377
|
{
|
|
2381
2378
|
variants: {
|
|
@@ -2404,7 +2401,7 @@ const Sn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, An = Zn, H
|
|
|
2404
2401
|
), fa = l.forwardRef(
|
|
2405
2402
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
|
|
2406
2403
|
const a = r ? sa : "button";
|
|
2407
|
-
return /* @__PURE__ */ g.jsx(a, { className:
|
|
2404
|
+
return /* @__PURE__ */ g.jsx(a, { className: M(da({ variant: t, size: n, className: e })), ref: s, ...o });
|
|
2408
2405
|
}
|
|
2409
2406
|
);
|
|
2410
2407
|
fa.displayName = "Button";
|
|
@@ -2429,7 +2426,7 @@ function De(...e) {
|
|
|
2429
2426
|
};
|
|
2430
2427
|
};
|
|
2431
2428
|
}
|
|
2432
|
-
function
|
|
2429
|
+
function B(...e) {
|
|
2433
2430
|
return l.useCallback(De(...e), e);
|
|
2434
2431
|
}
|
|
2435
2432
|
function pa(e, t) {
|
|
@@ -2570,7 +2567,7 @@ function ha(e, t) {
|
|
|
2570
2567
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
2571
2568
|
}
|
|
2572
2569
|
var ee = (e) => {
|
|
2573
|
-
const { present: t, children: n } = e, r = va(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s =
|
|
2570
|
+
const { present: t, children: n } = e, r = va(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = B(r.ref, ba(o));
|
|
2574
2571
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: s }) : null;
|
|
2575
2572
|
};
|
|
2576
2573
|
ee.displayName = "Presence";
|
|
@@ -2697,9 +2694,9 @@ var Ea = [
|
|
|
2697
2694
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
2698
2695
|
}, {});
|
|
2699
2696
|
function Ra(e, t) {
|
|
2700
|
-
e &&
|
|
2697
|
+
e && qn.flushSync(() => e.dispatchEvent(t));
|
|
2701
2698
|
}
|
|
2702
|
-
var Kt = "Checkbox", [Pa,
|
|
2699
|
+
var Kt = "Checkbox", [Pa, Xu] = ae(Kt), [Sa, Aa] = Pa(Kt), ar = l.forwardRef(
|
|
2703
2700
|
(e, t) => {
|
|
2704
2701
|
const {
|
|
2705
2702
|
__scopeCheckbox: n,
|
|
@@ -2712,7 +2709,7 @@ var Kt = "Checkbox", [Pa, Vu] = ae(Kt), [Sa, Aa] = Pa(Kt), ar = l.forwardRef(
|
|
|
2712
2709
|
onCheckedChange: u,
|
|
2713
2710
|
form: d,
|
|
2714
2711
|
...f
|
|
2715
|
-
} = e, [h, m] = l.useState(null), v =
|
|
2712
|
+
} = 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] = je({
|
|
2716
2713
|
prop: o,
|
|
2717
2714
|
defaultProp: s,
|
|
2718
2715
|
onChange: u
|
|
@@ -2817,11 +2814,11 @@ function cr(e) {
|
|
|
2817
2814
|
return de(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
2818
2815
|
}
|
|
2819
2816
|
var ur = ar, Oa = lr;
|
|
2820
|
-
const dr =
|
|
2817
|
+
const dr = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
2821
2818
|
ur,
|
|
2822
2819
|
{
|
|
2823
2820
|
ref: n,
|
|
2824
|
-
className:
|
|
2821
|
+
className: M(
|
|
2825
2822
|
"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
2823
|
e
|
|
2827
2824
|
),
|
|
@@ -2829,7 +2826,7 @@ const dr = G(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
|
2829
2826
|
children: /* @__PURE__ */ g.jsx(
|
|
2830
2827
|
Oa,
|
|
2831
2828
|
{
|
|
2832
|
-
className:
|
|
2829
|
+
className: M("al-flex al-items-center al-justify-center al-text-current"),
|
|
2833
2830
|
children: /* @__PURE__ */ g.jsx(
|
|
2834
2831
|
"svg",
|
|
2835
2832
|
{
|
|
@@ -2891,7 +2888,7 @@ function ja(e) {
|
|
|
2891
2888
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2892
2889
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2893
2890
|
}
|
|
2894
|
-
function
|
|
2891
|
+
function Ia(e) {
|
|
2895
2892
|
const t = e + "CollectionProvider", [n, r] = ae(t), [o, s] = n(
|
|
2896
2893
|
t,
|
|
2897
2894
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -2902,14 +2899,14 @@ function Ma(e) {
|
|
|
2902
2899
|
a.displayName = t;
|
|
2903
2900
|
const i = e + "CollectionSlot", c = ve.forwardRef(
|
|
2904
2901
|
(m, v) => {
|
|
2905
|
-
const { scope: p, children: b } = m, y = s(i, p), x =
|
|
2902
|
+
const { scope: p, children: b } = m, y = s(i, p), x = B(v, y.collectionRef);
|
|
2906
2903
|
return /* @__PURE__ */ g.jsx(Tt, { ref: x, children: b });
|
|
2907
2904
|
}
|
|
2908
2905
|
);
|
|
2909
2906
|
c.displayName = i;
|
|
2910
2907
|
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = ve.forwardRef(
|
|
2911
2908
|
(m, v) => {
|
|
2912
|
-
const { scope: p, children: b, ...y } = m, x = ve.useRef(null), C =
|
|
2909
|
+
const { scope: p, children: b, ...y } = m, x = ve.useRef(null), C = B(v, x), w = s(u, p);
|
|
2913
2910
|
return ve.useEffect(() => (w.itemMap.set(x, { ref: x, ...y }), () => void w.itemMap.delete(x))), /* @__PURE__ */ g.jsx(Tt, { [d]: "", ref: C, children: b });
|
|
2914
2911
|
}
|
|
2915
2912
|
);
|
|
@@ -2931,10 +2928,10 @@ function Ma(e) {
|
|
|
2931
2928
|
r
|
|
2932
2929
|
];
|
|
2933
2930
|
}
|
|
2934
|
-
var
|
|
2931
|
+
var Ma = l.useId || (() => {
|
|
2935
2932
|
}), _a = 0;
|
|
2936
2933
|
function Pe(e) {
|
|
2937
|
-
const [t, n] = l.useState(
|
|
2934
|
+
const [t, n] = l.useState(Ma());
|
|
2938
2935
|
return be(() => {
|
|
2939
2936
|
n((r) => r ?? String(_a++));
|
|
2940
2937
|
}, [e]), t ? `radix-${t}` : "";
|
|
@@ -2944,14 +2941,14 @@ function fr(e) {
|
|
|
2944
2941
|
const t = l.useContext(La);
|
|
2945
2942
|
return e || t || "ltr";
|
|
2946
2943
|
}
|
|
2947
|
-
var bt = "rovingFocusGroup.onEntryFocus", Fa = { bubbles: !1, cancelable: !0 }, at = "RovingFocusGroup", [Dt, pr, $a] =
|
|
2944
|
+
var bt = "rovingFocusGroup.onEntryFocus", Fa = { bubbles: !1, cancelable: !0 }, at = "RovingFocusGroup", [Dt, pr, $a] = Ia(at), [Wa, mr] = ae(
|
|
2948
2945
|
at,
|
|
2949
2946
|
[$a]
|
|
2950
|
-
), [Va,
|
|
2951
|
-
(e, t) => /* @__PURE__ */ g.jsx(Dt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Dt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(
|
|
2947
|
+
), [Va, Ba] = Wa(at), gr = l.forwardRef(
|
|
2948
|
+
(e, t) => /* @__PURE__ */ g.jsx(Dt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(Dt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(za, { ...e, ref: t }) }) })
|
|
2952
2949
|
);
|
|
2953
2950
|
gr.displayName = at;
|
|
2954
|
-
var
|
|
2951
|
+
var za = l.forwardRef((e, t) => {
|
|
2955
2952
|
const {
|
|
2956
2953
|
__scopeRovingFocusGroup: n,
|
|
2957
2954
|
orientation: r,
|
|
@@ -2963,7 +2960,7 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
2963
2960
|
onEntryFocus: u,
|
|
2964
2961
|
preventScrollOnEntryFocus: d = !1,
|
|
2965
2962
|
...f
|
|
2966
|
-
} = e, h = l.useRef(null), m =
|
|
2963
|
+
} = e, h = l.useRef(null), m = B(t, h), v = fr(s), [p = null, b] = je({
|
|
2967
2964
|
prop: a,
|
|
2968
2965
|
defaultProp: i,
|
|
2969
2966
|
onChange: c
|
|
@@ -3005,14 +3002,14 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3005
3002
|
E.current = !0;
|
|
3006
3003
|
}),
|
|
3007
3004
|
onFocus: k(e.onFocus, (S) => {
|
|
3008
|
-
const
|
|
3009
|
-
if (S.target === S.currentTarget &&
|
|
3005
|
+
const I = !E.current;
|
|
3006
|
+
if (S.target === S.currentTarget && I && !y) {
|
|
3010
3007
|
const D = new CustomEvent(bt, Fa);
|
|
3011
3008
|
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),
|
|
3009
|
+
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
3010
|
Boolean
|
|
3014
3011
|
).map((T) => T.ref.current);
|
|
3015
|
-
br(
|
|
3012
|
+
br(z, d);
|
|
3016
3013
|
}
|
|
3017
3014
|
}
|
|
3018
3015
|
E.current = !1;
|
|
@@ -3030,7 +3027,7 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3030
3027
|
active: o = !1,
|
|
3031
3028
|
tabStopId: s,
|
|
3032
3029
|
...a
|
|
3033
|
-
} = e, i = Pe(), c = s || i, u =
|
|
3030
|
+
} = e, i = Pe(), c = s || i, u = Ba(hr, n), d = u.currentTabStopId === c, f = pr(n), { onFocusableItemAdd: h, onFocusableItemRemove: m } = u;
|
|
3034
3031
|
return l.useEffect(() => {
|
|
3035
3032
|
if (r)
|
|
3036
3033
|
return h(), () => m();
|
|
@@ -3079,7 +3076,7 @@ var Ba = l.forwardRef((e, t) => {
|
|
|
3079
3076
|
}
|
|
3080
3077
|
);
|
|
3081
3078
|
vr.displayName = hr;
|
|
3082
|
-
var
|
|
3079
|
+
var Ha = {
|
|
3083
3080
|
ArrowLeft: "prev",
|
|
3084
3081
|
ArrowUp: "prev",
|
|
3085
3082
|
ArrowRight: "next",
|
|
@@ -3089,13 +3086,13 @@ var Ga = {
|
|
|
3089
3086
|
PageDown: "last",
|
|
3090
3087
|
End: "last"
|
|
3091
3088
|
};
|
|
3092
|
-
function
|
|
3089
|
+
function Ga(e, t) {
|
|
3093
3090
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3094
3091
|
}
|
|
3095
3092
|
function Ua(e, t, n) {
|
|
3096
|
-
const r =
|
|
3093
|
+
const r = Ga(e.key, n);
|
|
3097
3094
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
3098
|
-
return
|
|
3095
|
+
return Ha[r];
|
|
3099
3096
|
}
|
|
3100
3097
|
function br(e, t = !1) {
|
|
3101
3098
|
const n = document.activeElement;
|
|
@@ -3117,7 +3114,7 @@ var Ya = gr, Xa = vr, Yt = "Radio", [qa, yr] = ae(Yt), [Za, Qa] = qa(Yt), xr = l
|
|
|
3117
3114
|
onCheck: c,
|
|
3118
3115
|
form: u,
|
|
3119
3116
|
...d
|
|
3120
|
-
} = e, [f, h] = l.useState(null), m =
|
|
3117
|
+
} = e, [f, h] = l.useState(null), m = B(t, (b) => h(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
|
|
3121
3118
|
return /* @__PURE__ */ g.jsxs(Za, { scope: n, checked: o, disabled: a, children: [
|
|
3122
3119
|
/* @__PURE__ */ g.jsx(
|
|
3123
3120
|
$.button,
|
|
@@ -3200,7 +3197,7 @@ var Ja = (e) => {
|
|
|
3200
3197
|
function Er(e) {
|
|
3201
3198
|
return e ? "checked" : "unchecked";
|
|
3202
3199
|
}
|
|
3203
|
-
var ei = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup", [ti,
|
|
3200
|
+
var ei = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup", [ti, qu] = ae(Xt, [
|
|
3204
3201
|
mr,
|
|
3205
3202
|
yr
|
|
3206
3203
|
]), Rr = mr(), Pr = yr(), [ni, ri] = ti(Xt), Sr = l.forwardRef(
|
|
@@ -3260,7 +3257,7 @@ var ei = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup",
|
|
|
3260
3257
|
Sr.displayName = Xt;
|
|
3261
3258
|
var Ar = "RadioGroupItem", Nr = l.forwardRef(
|
|
3262
3259
|
(e, t) => {
|
|
3263
|
-
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = ri(Ar, n), a = s.disabled || r, i = Rr(n), c = Pr(n), u = l.useRef(null), d =
|
|
3260
|
+
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = ri(Ar, n), a = s.disabled || r, i = Rr(n), c = Pr(n), u = l.useRef(null), d = B(t, u), f = s.value === o.value, h = l.useRef(!1);
|
|
3264
3261
|
return l.useEffect(() => {
|
|
3265
3262
|
const m = (p) => {
|
|
3266
3263
|
ei.includes(p.key) && (h.current = !0);
|
|
@@ -3308,13 +3305,13 @@ var oi = "RadioGroupIndicator", Or = l.forwardRef(
|
|
|
3308
3305
|
);
|
|
3309
3306
|
Or.displayName = oi;
|
|
3310
3307
|
var Tr = Sr, kr = Nr, si = Or;
|
|
3311
|
-
const ai =
|
|
3308
|
+
const ai = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(Tr, { className: M("al-grid al-gap-2", e), ...t, ref: n }));
|
|
3312
3309
|
ai.displayName = Tr.displayName;
|
|
3313
|
-
const Dr =
|
|
3310
|
+
const Dr = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
3314
3311
|
kr,
|
|
3315
3312
|
{
|
|
3316
3313
|
ref: n,
|
|
3317
|
-
className:
|
|
3314
|
+
className: M(
|
|
3318
3315
|
"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
3316
|
e
|
|
3320
3317
|
),
|
|
@@ -3341,7 +3338,7 @@ const ii = l.forwardRef(
|
|
|
3341
3338
|
"input",
|
|
3342
3339
|
{
|
|
3343
3340
|
type: t,
|
|
3344
|
-
className:
|
|
3341
|
+
className: M(
|
|
3345
3342
|
"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
3343
|
r === "left" ? "al-pl-10 al-pr-3" : "al-pl-3 al-pr-10",
|
|
3347
3344
|
e
|
|
@@ -3353,7 +3350,7 @@ const ii = l.forwardRef(
|
|
|
3353
3350
|
/* @__PURE__ */ g.jsx(
|
|
3354
3351
|
"div",
|
|
3355
3352
|
{
|
|
3356
|
-
className:
|
|
3353
|
+
className: M(
|
|
3357
3354
|
"al-absolute al-top-0 al-flex al-h-10 al-items-center al-pointer-events-none",
|
|
3358
3355
|
r === "left" ? "al-left-3" : "al-right-3"
|
|
3359
3356
|
),
|
|
@@ -3364,7 +3361,7 @@ const ii = l.forwardRef(
|
|
|
3364
3361
|
"input",
|
|
3365
3362
|
{
|
|
3366
3363
|
type: t,
|
|
3367
|
-
className:
|
|
3364
|
+
className: M(
|
|
3368
3365
|
"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
3366
|
e
|
|
3370
3367
|
),
|
|
@@ -3374,7 +3371,21 @@ const ii = l.forwardRef(
|
|
|
3374
3371
|
)
|
|
3375
3372
|
);
|
|
3376
3373
|
ii.displayName = "Input";
|
|
3377
|
-
|
|
3374
|
+
const li = l.forwardRef(
|
|
3375
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
3376
|
+
"textarea",
|
|
3377
|
+
{
|
|
3378
|
+
className: M(
|
|
3379
|
+
"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",
|
|
3380
|
+
e
|
|
3381
|
+
),
|
|
3382
|
+
ref: n,
|
|
3383
|
+
...t
|
|
3384
|
+
}
|
|
3385
|
+
)
|
|
3386
|
+
);
|
|
3387
|
+
li.displayName = "Textarea";
|
|
3388
|
+
function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3378
3389
|
const n = re(e);
|
|
3379
3390
|
l.useEffect(() => {
|
|
3380
3391
|
const r = (o) => {
|
|
@@ -3383,7 +3394,7 @@ function li(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3383
3394
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3384
3395
|
}, [n, t]);
|
|
3385
3396
|
}
|
|
3386
|
-
var
|
|
3397
|
+
var ui = "DismissableLayer", jt = "dismissableLayer.update", di = "dismissableLayer.pointerDownOutside", fi = "dismissableLayer.focusOutside", On, jr = l.createContext({
|
|
3387
3398
|
layers: /* @__PURE__ */ new Set(),
|
|
3388
3399
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3389
3400
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3397,14 +3408,14 @@ var ci = "DismissableLayer", jt = "dismissableLayer.update", ui = "dismissableLa
|
|
|
3397
3408
|
onInteractOutside: a,
|
|
3398
3409
|
onDismiss: i,
|
|
3399
3410
|
...c
|
|
3400
|
-
} = e, u = l.useContext(jr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v =
|
|
3401
|
-
const S = R.target,
|
|
3402
|
-
!w ||
|
|
3403
|
-
}, h), P =
|
|
3411
|
+
} = e, u = l.useContext(jr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = 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 = mi((R) => {
|
|
3412
|
+
const S = R.target, I = [...u.branches].some((D) => D.contains(S));
|
|
3413
|
+
!w || I || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
3414
|
+
}, h), P = gi((R) => {
|
|
3404
3415
|
const S = R.target;
|
|
3405
3416
|
[...u.branches].some((D) => D.contains(S)) || (s == null || s(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
3406
3417
|
}, h);
|
|
3407
|
-
return
|
|
3418
|
+
return ci((R) => {
|
|
3408
3419
|
x === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
|
|
3409
3420
|
}, h), l.useEffect(() => {
|
|
3410
3421
|
if (d)
|
|
@@ -3435,9 +3446,9 @@ var ci = "DismissableLayer", jt = "dismissableLayer.update", ui = "dismissableLa
|
|
|
3435
3446
|
);
|
|
3436
3447
|
}
|
|
3437
3448
|
);
|
|
3438
|
-
Ve.displayName =
|
|
3439
|
-
var
|
|
3440
|
-
const n = l.useContext(jr), r = l.useRef(null), o =
|
|
3449
|
+
Ve.displayName = ui;
|
|
3450
|
+
var pi = "DismissableLayerBranch", Ir = l.forwardRef((e, t) => {
|
|
3451
|
+
const n = l.useContext(jr), r = l.useRef(null), o = B(t, r);
|
|
3441
3452
|
return l.useEffect(() => {
|
|
3442
3453
|
const s = r.current;
|
|
3443
3454
|
if (s)
|
|
@@ -3446,16 +3457,16 @@ var fi = "DismissableLayerBranch", Mr = l.forwardRef((e, t) => {
|
|
|
3446
3457
|
};
|
|
3447
3458
|
}, [n.branches]), /* @__PURE__ */ g.jsx($.div, { ...e, ref: o });
|
|
3448
3459
|
});
|
|
3449
|
-
|
|
3450
|
-
function
|
|
3460
|
+
Ir.displayName = pi;
|
|
3461
|
+
function mi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3451
3462
|
const n = re(e), r = l.useRef(!1), o = l.useRef(() => {
|
|
3452
3463
|
});
|
|
3453
3464
|
return l.useEffect(() => {
|
|
3454
3465
|
const s = (i) => {
|
|
3455
3466
|
if (i.target && !r.current) {
|
|
3456
3467
|
let c = function() {
|
|
3457
|
-
|
|
3458
|
-
|
|
3468
|
+
Mr(
|
|
3469
|
+
di,
|
|
3459
3470
|
n,
|
|
3460
3471
|
u,
|
|
3461
3472
|
{ discrete: !0 }
|
|
@@ -3477,11 +3488,11 @@ function pi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3477
3488
|
onPointerDownCapture: () => r.current = !0
|
|
3478
3489
|
};
|
|
3479
3490
|
}
|
|
3480
|
-
function
|
|
3491
|
+
function gi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3481
3492
|
const n = re(e), r = l.useRef(!1);
|
|
3482
3493
|
return l.useEffect(() => {
|
|
3483
3494
|
const o = (s) => {
|
|
3484
|
-
s.target && !r.current &&
|
|
3495
|
+
s.target && !r.current && Mr(fi, n, { originalEvent: s }, {
|
|
3485
3496
|
discrete: !1
|
|
3486
3497
|
});
|
|
3487
3498
|
};
|
|
@@ -3495,18 +3506,18 @@ function Tn() {
|
|
|
3495
3506
|
const e = new CustomEvent(jt);
|
|
3496
3507
|
document.dispatchEvent(e);
|
|
3497
3508
|
}
|
|
3498
|
-
function
|
|
3509
|
+
function Mr(e, t, n, { discrete: r }) {
|
|
3499
3510
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3500
3511
|
t && o.addEventListener(e, t, { once: !0 }), r ? Ra(o, s) : o.dispatchEvent(s);
|
|
3501
3512
|
}
|
|
3502
|
-
var
|
|
3513
|
+
var Zu = Ve, Qu = Ir, yt = "focusScope.autoFocusOnMount", xt = "focusScope.autoFocusOnUnmount", kn = { bubbles: !1, cancelable: !0 }, hi = "FocusScope", qt = l.forwardRef((e, t) => {
|
|
3503
3514
|
const {
|
|
3504
3515
|
loop: n = !1,
|
|
3505
3516
|
trapped: r = !1,
|
|
3506
3517
|
onMountAutoFocus: o,
|
|
3507
3518
|
onUnmountAutoFocus: s,
|
|
3508
3519
|
...a
|
|
3509
|
-
} = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), h =
|
|
3520
|
+
} = 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
3521
|
paused: !1,
|
|
3511
3522
|
pause() {
|
|
3512
3523
|
this.paused = !0;
|
|
@@ -3542,7 +3553,7 @@ var Bu = Ve, Gu = Mr, yt = "focusScope.autoFocusOnMount", xt = "focusScope.autoF
|
|
|
3542
3553
|
const p = document.activeElement;
|
|
3543
3554
|
if (!i.contains(p)) {
|
|
3544
3555
|
const y = new CustomEvent(yt, kn);
|
|
3545
|
-
i.addEventListener(yt, u), i.dispatchEvent(y), y.defaultPrevented || (
|
|
3556
|
+
i.addEventListener(yt, u), i.dispatchEvent(y), y.defaultPrevented || (vi(Ci(_r(i)), { select: !0 }), document.activeElement === p && ce(i));
|
|
3546
3557
|
}
|
|
3547
3558
|
return () => {
|
|
3548
3559
|
i.removeEventListener(yt, u), setTimeout(() => {
|
|
@@ -3557,7 +3568,7 @@ var Bu = Ve, Gu = Mr, yt = "focusScope.autoFocusOnMount", xt = "focusScope.autoF
|
|
|
3557
3568
|
if (!n && !r || m.paused) return;
|
|
3558
3569
|
const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
|
|
3559
3570
|
if (b && y) {
|
|
3560
|
-
const x = p.currentTarget, [C, w] =
|
|
3571
|
+
const x = p.currentTarget, [C, w] = bi(x);
|
|
3561
3572
|
C && w ? !p.shiftKey && y === w ? (p.preventDefault(), n && ce(C, { select: !0 })) : p.shiftKey && y === C && (p.preventDefault(), n && ce(w, { select: !0 })) : y === x && p.preventDefault();
|
|
3562
3573
|
}
|
|
3563
3574
|
},
|
|
@@ -3565,13 +3576,13 @@ var Bu = Ve, Gu = Mr, yt = "focusScope.autoFocusOnMount", xt = "focusScope.autoF
|
|
|
3565
3576
|
);
|
|
3566
3577
|
return /* @__PURE__ */ g.jsx($.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
|
|
3567
3578
|
});
|
|
3568
|
-
qt.displayName =
|
|
3569
|
-
function
|
|
3579
|
+
qt.displayName = hi;
|
|
3580
|
+
function vi(e, { select: t = !1 } = {}) {
|
|
3570
3581
|
const n = document.activeElement;
|
|
3571
3582
|
for (const r of e)
|
|
3572
3583
|
if (ce(r, { select: t }), document.activeElement !== n) return;
|
|
3573
3584
|
}
|
|
3574
|
-
function
|
|
3585
|
+
function bi(e) {
|
|
3575
3586
|
const t = _r(e), n = Dn(t, e), r = Dn(t.reverse(), e);
|
|
3576
3587
|
return [n, r];
|
|
3577
3588
|
}
|
|
@@ -3587,9 +3598,9 @@ function _r(e) {
|
|
|
3587
3598
|
}
|
|
3588
3599
|
function Dn(e, t) {
|
|
3589
3600
|
for (const n of e)
|
|
3590
|
-
if (!
|
|
3601
|
+
if (!yi(n, { upTo: t })) return n;
|
|
3591
3602
|
}
|
|
3592
|
-
function
|
|
3603
|
+
function yi(e, { upTo: t }) {
|
|
3593
3604
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3594
3605
|
for (; e; ) {
|
|
3595
3606
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3598,54 +3609,54 @@ function bi(e, { upTo: t }) {
|
|
|
3598
3609
|
}
|
|
3599
3610
|
return !1;
|
|
3600
3611
|
}
|
|
3601
|
-
function
|
|
3612
|
+
function xi(e) {
|
|
3602
3613
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3603
3614
|
}
|
|
3604
3615
|
function ce(e, { select: t = !1 } = {}) {
|
|
3605
3616
|
if (e && e.focus) {
|
|
3606
3617
|
const n = document.activeElement;
|
|
3607
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3618
|
+
e.focus({ preventScroll: !0 }), e !== n && xi(e) && t && e.select();
|
|
3608
3619
|
}
|
|
3609
3620
|
}
|
|
3610
|
-
var jn =
|
|
3611
|
-
function
|
|
3621
|
+
var jn = wi();
|
|
3622
|
+
function wi() {
|
|
3612
3623
|
let e = [];
|
|
3613
3624
|
return {
|
|
3614
3625
|
add(t) {
|
|
3615
3626
|
const n = e[0];
|
|
3616
|
-
t !== n && (n == null || n.pause()), e =
|
|
3627
|
+
t !== n && (n == null || n.pause()), e = In(e, t), e.unshift(t);
|
|
3617
3628
|
},
|
|
3618
3629
|
remove(t) {
|
|
3619
3630
|
var n;
|
|
3620
|
-
e =
|
|
3631
|
+
e = In(e, t), (n = e[0]) == null || n.resume();
|
|
3621
3632
|
}
|
|
3622
3633
|
};
|
|
3623
3634
|
}
|
|
3624
|
-
function
|
|
3635
|
+
function In(e, t) {
|
|
3625
3636
|
const n = [...e], r = n.indexOf(t);
|
|
3626
3637
|
return r !== -1 && n.splice(r, 1), n;
|
|
3627
3638
|
}
|
|
3628
|
-
function
|
|
3639
|
+
function Ci(e) {
|
|
3629
3640
|
return e.filter((t) => t.tagName !== "A");
|
|
3630
3641
|
}
|
|
3631
|
-
var
|
|
3642
|
+
var Ei = "Portal", it = l.forwardRef((e, t) => {
|
|
3632
3643
|
var i;
|
|
3633
3644
|
const { container: n, ...r } = e, [o, s] = l.useState(!1);
|
|
3634
3645
|
be(() => s(!0), []);
|
|
3635
3646
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
3636
3647
|
return a ? Rs.createPortal(/* @__PURE__ */ g.jsx($.div, { ...r, ref: t }), a) : null;
|
|
3637
3648
|
});
|
|
3638
|
-
it.displayName =
|
|
3649
|
+
it.displayName = Ei;
|
|
3639
3650
|
var wt = 0;
|
|
3640
3651
|
function Lr() {
|
|
3641
3652
|
l.useEffect(() => {
|
|
3642
3653
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3643
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3654
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mn()), wt++, () => {
|
|
3644
3655
|
wt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), wt--;
|
|
3645
3656
|
};
|
|
3646
3657
|
}, []);
|
|
3647
3658
|
}
|
|
3648
|
-
function
|
|
3659
|
+
function Mn() {
|
|
3649
3660
|
const e = document.createElement("span");
|
|
3650
3661
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
3651
3662
|
}
|
|
@@ -3666,16 +3677,16 @@ function Fr(e, t) {
|
|
|
3666
3677
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
3667
3678
|
return n;
|
|
3668
3679
|
}
|
|
3669
|
-
function
|
|
3680
|
+
function Ri(e, t, n) {
|
|
3670
3681
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
3671
3682
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
3672
3683
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
3673
3684
|
}
|
|
3674
|
-
var Qe = "right-scroll-bar-position", Je = "width-before-scroll-bar",
|
|
3685
|
+
var Qe = "right-scroll-bar-position", Je = "width-before-scroll-bar", Pi = "with-scroll-bars-hidden", Si = "--removed-body-scroll-bar-size";
|
|
3675
3686
|
function Ct(e, t) {
|
|
3676
3687
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3677
3688
|
}
|
|
3678
|
-
function
|
|
3689
|
+
function Ai(e, t) {
|
|
3679
3690
|
var n = ws(function() {
|
|
3680
3691
|
return {
|
|
3681
3692
|
// value
|
|
@@ -3696,14 +3707,14 @@ function Si(e, t) {
|
|
|
3696
3707
|
})[0];
|
|
3697
3708
|
return n.callback = t, n.facade;
|
|
3698
3709
|
}
|
|
3699
|
-
var
|
|
3700
|
-
function
|
|
3701
|
-
var n =
|
|
3710
|
+
var Ni = typeof window < "u" ? l.useLayoutEffect : l.useEffect, _n = /* @__PURE__ */ new WeakMap();
|
|
3711
|
+
function Oi(e, t) {
|
|
3712
|
+
var n = Ai(null, function(r) {
|
|
3702
3713
|
return e.forEach(function(o) {
|
|
3703
3714
|
return Ct(o, r);
|
|
3704
3715
|
});
|
|
3705
3716
|
});
|
|
3706
|
-
return
|
|
3717
|
+
return Ni(function() {
|
|
3707
3718
|
var r = _n.get(n);
|
|
3708
3719
|
if (r) {
|
|
3709
3720
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
@@ -3716,11 +3727,11 @@ function Ni(e, t) {
|
|
|
3716
3727
|
_n.set(n, e);
|
|
3717
3728
|
}, [e]), n;
|
|
3718
3729
|
}
|
|
3719
|
-
function
|
|
3730
|
+
function Ti(e) {
|
|
3720
3731
|
return e;
|
|
3721
3732
|
}
|
|
3722
|
-
function
|
|
3723
|
-
t === void 0 && (t =
|
|
3733
|
+
function ki(e, t) {
|
|
3734
|
+
t === void 0 && (t = Ti);
|
|
3724
3735
|
var n = [], r = !1, o = {
|
|
3725
3736
|
read: function() {
|
|
3726
3737
|
if (r)
|
|
@@ -3774,9 +3785,9 @@ function Ti(e, t) {
|
|
|
3774
3785
|
};
|
|
3775
3786
|
return o;
|
|
3776
3787
|
}
|
|
3777
|
-
function
|
|
3788
|
+
function Di(e) {
|
|
3778
3789
|
e === void 0 && (e = {});
|
|
3779
|
-
var t =
|
|
3790
|
+
var t = ki(null);
|
|
3780
3791
|
return t.options = Q({ async: !0, ssr: !1 }, e), t;
|
|
3781
3792
|
}
|
|
3782
3793
|
var $r = function(e) {
|
|
@@ -3789,16 +3800,16 @@ var $r = function(e) {
|
|
|
3789
3800
|
return l.createElement(r, Q({}, n));
|
|
3790
3801
|
};
|
|
3791
3802
|
$r.isSideCarExport = !0;
|
|
3792
|
-
function
|
|
3803
|
+
function ji(e, t) {
|
|
3793
3804
|
return e.useMedium(t), $r;
|
|
3794
3805
|
}
|
|
3795
|
-
var Wr =
|
|
3806
|
+
var Wr = Di(), Et = function() {
|
|
3796
3807
|
}, lt = l.forwardRef(function(e, t) {
|
|
3797
3808
|
var n = l.useRef(null), r = l.useState({
|
|
3798
3809
|
onScrollCapture: Et,
|
|
3799
3810
|
onWheelCapture: Et,
|
|
3800
3811
|
onTouchMoveCapture: Et
|
|
3801
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = Fr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, E =
|
|
3812
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = Fr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, E = Oi([n, t]), P = Q(Q({}, C), o);
|
|
3802
3813
|
return l.createElement(
|
|
3803
3814
|
l.Fragment,
|
|
3804
3815
|
null,
|
|
@@ -3815,7 +3826,7 @@ lt.classNames = {
|
|
|
3815
3826
|
fullWidth: Je,
|
|
3816
3827
|
zeroRight: Qe
|
|
3817
3828
|
};
|
|
3818
|
-
var
|
|
3829
|
+
var Ii = function() {
|
|
3819
3830
|
if (typeof __webpack_nonce__ < "u")
|
|
3820
3831
|
return __webpack_nonce__;
|
|
3821
3832
|
};
|
|
@@ -3824,28 +3835,28 @@ function Mi() {
|
|
|
3824
3835
|
return null;
|
|
3825
3836
|
var e = document.createElement("style");
|
|
3826
3837
|
e.type = "text/css";
|
|
3827
|
-
var t =
|
|
3838
|
+
var t = Ii();
|
|
3828
3839
|
return t && e.setAttribute("nonce", t), e;
|
|
3829
3840
|
}
|
|
3830
|
-
function
|
|
3841
|
+
function _i(e, t) {
|
|
3831
3842
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3832
3843
|
}
|
|
3833
|
-
function
|
|
3844
|
+
function Li(e) {
|
|
3834
3845
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
3835
3846
|
t.appendChild(e);
|
|
3836
3847
|
}
|
|
3837
|
-
var
|
|
3848
|
+
var Fi = function() {
|
|
3838
3849
|
var e = 0, t = null;
|
|
3839
3850
|
return {
|
|
3840
3851
|
add: function(n) {
|
|
3841
|
-
e == 0 && (t = Mi()) && (
|
|
3852
|
+
e == 0 && (t = Mi()) && (_i(t, n), Li(t)), e++;
|
|
3842
3853
|
},
|
|
3843
3854
|
remove: function() {
|
|
3844
3855
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3845
3856
|
}
|
|
3846
3857
|
};
|
|
3847
|
-
},
|
|
3848
|
-
var e =
|
|
3858
|
+
}, $i = function() {
|
|
3859
|
+
var e = Fi();
|
|
3849
3860
|
return function(t, n) {
|
|
3850
3861
|
l.useEffect(function() {
|
|
3851
3862
|
return e.add(t), function() {
|
|
@@ -3854,35 +3865,35 @@ var Li = function() {
|
|
|
3854
3865
|
}, [t && n]);
|
|
3855
3866
|
};
|
|
3856
3867
|
}, Vr = function() {
|
|
3857
|
-
var e =
|
|
3868
|
+
var e = $i(), t = function(n) {
|
|
3858
3869
|
var r = n.styles, o = n.dynamic;
|
|
3859
3870
|
return e(r, o), null;
|
|
3860
3871
|
};
|
|
3861
3872
|
return t;
|
|
3862
|
-
},
|
|
3873
|
+
}, Wi = {
|
|
3863
3874
|
left: 0,
|
|
3864
3875
|
top: 0,
|
|
3865
3876
|
right: 0,
|
|
3866
3877
|
gap: 0
|
|
3867
3878
|
}, Rt = function(e) {
|
|
3868
3879
|
return parseInt(e || "", 10) || 0;
|
|
3869
|
-
},
|
|
3880
|
+
}, Vi = function(e) {
|
|
3870
3881
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3871
3882
|
return [Rt(n), Rt(r), Rt(o)];
|
|
3872
|
-
},
|
|
3883
|
+
}, Bi = function(e) {
|
|
3873
3884
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3874
|
-
return
|
|
3875
|
-
var t =
|
|
3885
|
+
return Wi;
|
|
3886
|
+
var t = Vi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
3876
3887
|
return {
|
|
3877
3888
|
left: t[0],
|
|
3878
3889
|
top: t[1],
|
|
3879
3890
|
right: t[2],
|
|
3880
3891
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3881
3892
|
};
|
|
3882
|
-
}, zi = Vr(), Se = "data-scroll-locked",
|
|
3893
|
+
}, zi = Vr(), Se = "data-scroll-locked", Hi = function(e, t, n, r) {
|
|
3883
3894
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
3884
3895
|
return n === void 0 && (n = "margin"), `
|
|
3885
|
-
.`.concat(
|
|
3896
|
+
.`.concat(Pi, ` {
|
|
3886
3897
|
overflow: hidden `).concat(r, `;
|
|
3887
3898
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
3888
3899
|
}
|
|
@@ -3920,7 +3931,7 @@ var Li = function() {
|
|
|
3920
3931
|
}
|
|
3921
3932
|
|
|
3922
3933
|
body[`).concat(Se, `] {
|
|
3923
|
-
`).concat(
|
|
3934
|
+
`).concat(Si, ": ").concat(i, `px;
|
|
3924
3935
|
}
|
|
3925
3936
|
`);
|
|
3926
3937
|
}, Ln = function() {
|
|
@@ -3933,78 +3944,78 @@ var Li = function() {
|
|
|
3933
3944
|
e <= 0 ? document.body.removeAttribute(Se) : document.body.setAttribute(Se, e.toString());
|
|
3934
3945
|
};
|
|
3935
3946
|
}, []);
|
|
3936
|
-
},
|
|
3947
|
+
}, Ui = function(e) {
|
|
3937
3948
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3938
3949
|
Gi();
|
|
3939
3950
|
var s = l.useMemo(function() {
|
|
3940
|
-
return
|
|
3951
|
+
return Bi(o);
|
|
3941
3952
|
}, [o]);
|
|
3942
|
-
return l.createElement(zi, { styles:
|
|
3943
|
-
},
|
|
3953
|
+
return l.createElement(zi, { styles: Hi(s, !t, o, n ? "" : "!important") });
|
|
3954
|
+
}, It = !1;
|
|
3944
3955
|
if (typeof window < "u")
|
|
3945
3956
|
try {
|
|
3946
3957
|
var Ke = Object.defineProperty({}, "passive", {
|
|
3947
3958
|
get: function() {
|
|
3948
|
-
return
|
|
3959
|
+
return It = !0, !0;
|
|
3949
3960
|
}
|
|
3950
3961
|
});
|
|
3951
3962
|
window.addEventListener("test", Ke, Ke), window.removeEventListener("test", Ke, Ke);
|
|
3952
3963
|
} catch {
|
|
3953
|
-
|
|
3964
|
+
It = !1;
|
|
3954
3965
|
}
|
|
3955
|
-
var we =
|
|
3966
|
+
var we = It ? { passive: !1 } : !1, Ki = function(e) {
|
|
3956
3967
|
return e.tagName === "TEXTAREA";
|
|
3957
|
-
},
|
|
3968
|
+
}, Br = function(e, t) {
|
|
3958
3969
|
if (!(e instanceof Element))
|
|
3959
3970
|
return !1;
|
|
3960
3971
|
var n = window.getComputedStyle(e);
|
|
3961
3972
|
return (
|
|
3962
3973
|
// not-not-scrollable
|
|
3963
3974
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3964
|
-
!(n.overflowY === n.overflowX && !
|
|
3975
|
+
!(n.overflowY === n.overflowX && !Ki(e) && n[t] === "visible")
|
|
3965
3976
|
);
|
|
3966
|
-
}, Ki = function(e) {
|
|
3967
|
-
return zr(e, "overflowY");
|
|
3968
3977
|
}, Yi = function(e) {
|
|
3969
|
-
return
|
|
3978
|
+
return Br(e, "overflowY");
|
|
3979
|
+
}, Xi = function(e) {
|
|
3980
|
+
return Br(e, "overflowX");
|
|
3970
3981
|
}, Fn = function(e, t) {
|
|
3971
3982
|
var n = t.ownerDocument, r = t;
|
|
3972
3983
|
do {
|
|
3973
3984
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3974
|
-
var o =
|
|
3985
|
+
var o = zr(e, r);
|
|
3975
3986
|
if (o) {
|
|
3976
|
-
var s =
|
|
3987
|
+
var s = Hr(e, r), a = s[1], i = s[2];
|
|
3977
3988
|
if (a > i)
|
|
3978
3989
|
return !0;
|
|
3979
3990
|
}
|
|
3980
3991
|
r = r.parentNode;
|
|
3981
3992
|
} while (r && r !== n.body);
|
|
3982
3993
|
return !1;
|
|
3983
|
-
},
|
|
3994
|
+
}, qi = function(e) {
|
|
3984
3995
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
3985
3996
|
return [
|
|
3986
3997
|
t,
|
|
3987
3998
|
n,
|
|
3988
3999
|
r
|
|
3989
4000
|
];
|
|
3990
|
-
},
|
|
4001
|
+
}, Zi = function(e) {
|
|
3991
4002
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
3992
4003
|
return [
|
|
3993
4004
|
t,
|
|
3994
4005
|
n,
|
|
3995
4006
|
r
|
|
3996
4007
|
];
|
|
3997
|
-
},
|
|
3998
|
-
return e === "v" ?
|
|
3999
|
-
},
|
|
4000
|
-
return e === "v" ?
|
|
4001
|
-
},
|
|
4008
|
+
}, zr = function(e, t) {
|
|
4009
|
+
return e === "v" ? Yi(t) : Xi(t);
|
|
4010
|
+
}, Hr = function(e, t) {
|
|
4011
|
+
return e === "v" ? qi(t) : Zi(t);
|
|
4012
|
+
}, Qi = function(e, t) {
|
|
4002
4013
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4003
|
-
},
|
|
4004
|
-
var s =
|
|
4014
|
+
}, Ji = function(e, t, n, r, o) {
|
|
4015
|
+
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
4016
|
do {
|
|
4006
|
-
var m =
|
|
4007
|
-
(v || y) &&
|
|
4017
|
+
var m = Hr(e, i), v = m[0], p = m[1], b = m[2], y = p - b - s * v;
|
|
4018
|
+
(v || y) && zr(e, i) && (f += y, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
4008
4019
|
} while (
|
|
4009
4020
|
// portaled content
|
|
4010
4021
|
!c && i !== document.body || // self content
|
|
@@ -4017,22 +4028,22 @@ var we = Mt ? { passive: !1 } : !1, Ui = function(e) {
|
|
|
4017
4028
|
return [e.deltaX, e.deltaY];
|
|
4018
4029
|
}, Wn = function(e) {
|
|
4019
4030
|
return e && "current" in e ? e.current : e;
|
|
4020
|
-
},
|
|
4031
|
+
}, el = function(e, t) {
|
|
4021
4032
|
return e[0] === t[0] && e[1] === t[1];
|
|
4022
|
-
},
|
|
4033
|
+
}, tl = function(e) {
|
|
4023
4034
|
return `
|
|
4024
4035
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4025
4036
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4026
4037
|
`);
|
|
4027
|
-
},
|
|
4028
|
-
function
|
|
4029
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(
|
|
4038
|
+
}, nl = 0, Ce = [];
|
|
4039
|
+
function rl(e) {
|
|
4040
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(nl++)[0], s = l.useState(Vr)[0], a = l.useRef(e);
|
|
4030
4041
|
l.useEffect(function() {
|
|
4031
4042
|
a.current = e;
|
|
4032
4043
|
}, [e]), l.useEffect(function() {
|
|
4033
4044
|
if (e.inert) {
|
|
4034
4045
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4035
|
-
var p =
|
|
4046
|
+
var p = Ri([e.lockRef.current], (e.shards || []).map(Wn), !0).filter(Boolean);
|
|
4036
4047
|
return p.forEach(function(b) {
|
|
4037
4048
|
return b.classList.add("allow-interactivity-".concat(o));
|
|
4038
4049
|
}), function() {
|
|
@@ -4055,13 +4066,13 @@ function nl(e) {
|
|
|
4055
4066
|
return !1;
|
|
4056
4067
|
if (!r.current && "changedTouches" in p && (C || w) && (r.current = E), !E)
|
|
4057
4068
|
return !0;
|
|
4058
|
-
var
|
|
4059
|
-
return
|
|
4069
|
+
var I = r.current || E;
|
|
4070
|
+
return Ji(I, b, p, I === "h" ? C : w, !0);
|
|
4060
4071
|
}, []), c = l.useCallback(function(p) {
|
|
4061
4072
|
var b = p;
|
|
4062
4073
|
if (!(!Ce.length || Ce[Ce.length - 1] !== s)) {
|
|
4063
4074
|
var y = "deltaY" in b ? $n(b) : Ye(b), x = t.current.filter(function(E) {
|
|
4064
|
-
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) &&
|
|
4075
|
+
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && el(E.delta, y);
|
|
4065
4076
|
})[0];
|
|
4066
4077
|
if (x && x.should) {
|
|
4067
4078
|
b.cancelable && b.preventDefault();
|
|
@@ -4075,7 +4086,7 @@ function nl(e) {
|
|
|
4075
4086
|
}
|
|
4076
4087
|
}
|
|
4077
4088
|
}, []), u = l.useCallback(function(p, b, y, x) {
|
|
4078
|
-
var C = { name: p, delta: b, target: y, should: x, shadowParent:
|
|
4089
|
+
var C = { name: p, delta: b, target: y, should: x, shadowParent: ol(y) };
|
|
4079
4090
|
t.current.push(C), setTimeout(function() {
|
|
4080
4091
|
t.current = t.current.filter(function(w) {
|
|
4081
4092
|
return w !== C;
|
|
@@ -4103,38 +4114,38 @@ function nl(e) {
|
|
|
4103
4114
|
return l.createElement(
|
|
4104
4115
|
l.Fragment,
|
|
4105
4116
|
null,
|
|
4106
|
-
v ? l.createElement(s, { styles:
|
|
4107
|
-
m ? l.createElement(
|
|
4117
|
+
v ? l.createElement(s, { styles: tl(o) }) : null,
|
|
4118
|
+
m ? l.createElement(Ui, { gapMode: e.gapMode }) : null
|
|
4108
4119
|
);
|
|
4109
4120
|
}
|
|
4110
|
-
function
|
|
4121
|
+
function ol(e) {
|
|
4111
4122
|
for (var t = null; e !== null; )
|
|
4112
4123
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4113
4124
|
return t;
|
|
4114
4125
|
}
|
|
4115
|
-
const
|
|
4126
|
+
const sl = ji(Wr, rl);
|
|
4116
4127
|
var Zt = l.forwardRef(function(e, t) {
|
|
4117
|
-
return l.createElement(lt, Q({}, e, { ref: t, sideCar:
|
|
4128
|
+
return l.createElement(lt, Q({}, e, { ref: t, sideCar: sl }));
|
|
4118
4129
|
});
|
|
4119
4130
|
Zt.classNames = lt.classNames;
|
|
4120
|
-
var
|
|
4131
|
+
var al = function(e) {
|
|
4121
4132
|
if (typeof document > "u")
|
|
4122
4133
|
return null;
|
|
4123
4134
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4124
4135
|
return t.ownerDocument.body;
|
|
4125
|
-
}, Ee = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = {}, Pt = 0,
|
|
4126
|
-
return e && (e.host ||
|
|
4127
|
-
},
|
|
4136
|
+
}, Ee = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = {}, Pt = 0, Gr = function(e) {
|
|
4137
|
+
return e && (e.host || Gr(e.parentNode));
|
|
4138
|
+
}, il = function(e, t) {
|
|
4128
4139
|
return t.map(function(n) {
|
|
4129
4140
|
if (e.contains(n))
|
|
4130
4141
|
return n;
|
|
4131
|
-
var r =
|
|
4142
|
+
var r = Gr(n);
|
|
4132
4143
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
4133
4144
|
}).filter(function(n) {
|
|
4134
4145
|
return !!n;
|
|
4135
4146
|
});
|
|
4136
|
-
},
|
|
4137
|
-
var o =
|
|
4147
|
+
}, ll = function(e, t, n, r) {
|
|
4148
|
+
var o = il(t, Array.isArray(e) ? e : [e]);
|
|
4138
4149
|
qe[n] || (qe[n] = /* @__PURE__ */ new WeakMap());
|
|
4139
4150
|
var s = qe[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(f) {
|
|
4140
4151
|
!f || i.has(f) || (i.add(f), u(f.parentNode));
|
|
@@ -4161,37 +4172,37 @@ var sl = function(e) {
|
|
|
4161
4172
|
};
|
|
4162
4173
|
}, Ur = function(e, t, n) {
|
|
4163
4174
|
n === void 0 && (n = "data-aria-hidden");
|
|
4164
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
4165
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
4175
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = al(e);
|
|
4176
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), ll(r, o, n, "aria-hidden")) : function() {
|
|
4166
4177
|
return null;
|
|
4167
4178
|
};
|
|
4168
4179
|
}, Kr = l.forwardRef((e, t) => {
|
|
4169
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
4180
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(ul);
|
|
4170
4181
|
if (s) {
|
|
4171
4182
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
4172
|
-
return /* @__PURE__ */ g.jsx(
|
|
4183
|
+
return /* @__PURE__ */ g.jsx(Mt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
4173
4184
|
}
|
|
4174
|
-
return /* @__PURE__ */ g.jsx(
|
|
4185
|
+
return /* @__PURE__ */ g.jsx(Mt, { ...r, ref: t, children: n });
|
|
4175
4186
|
});
|
|
4176
4187
|
Kr.displayName = "Slot";
|
|
4177
|
-
var
|
|
4188
|
+
var Mt = l.forwardRef((e, t) => {
|
|
4178
4189
|
const { children: n, ...r } = e;
|
|
4179
4190
|
if (l.isValidElement(n)) {
|
|
4180
|
-
const o =
|
|
4191
|
+
const o = fl(n);
|
|
4181
4192
|
return l.cloneElement(n, {
|
|
4182
|
-
...
|
|
4193
|
+
...dl(r, n.props),
|
|
4183
4194
|
// @ts-ignore
|
|
4184
4195
|
ref: t ? De(t, o) : o
|
|
4185
4196
|
});
|
|
4186
4197
|
}
|
|
4187
4198
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
4188
4199
|
});
|
|
4189
|
-
|
|
4190
|
-
var
|
|
4191
|
-
function
|
|
4192
|
-
return l.isValidElement(e) && e.type ===
|
|
4200
|
+
Mt.displayName = "SlotClone";
|
|
4201
|
+
var cl = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
4202
|
+
function ul(e) {
|
|
4203
|
+
return l.isValidElement(e) && e.type === cl;
|
|
4193
4204
|
}
|
|
4194
|
-
function
|
|
4205
|
+
function dl(e, t) {
|
|
4195
4206
|
const n = { ...t };
|
|
4196
4207
|
for (const r in t) {
|
|
4197
4208
|
const o = e[r], s = t[r];
|
|
@@ -4201,12 +4212,12 @@ function ul(e, t) {
|
|
|
4201
4212
|
}
|
|
4202
4213
|
return { ...e, ...n };
|
|
4203
4214
|
}
|
|
4204
|
-
function
|
|
4215
|
+
function fl(e) {
|
|
4205
4216
|
var r, o;
|
|
4206
4217
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4207
4218
|
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
4219
|
}
|
|
4209
|
-
var Qt = "Dialog", [Yr,
|
|
4220
|
+
var Qt = "Dialog", [Yr, Ju] = ae(Qt), [pl, Z] = Yr(Qt), Xr = (e) => {
|
|
4210
4221
|
const {
|
|
4211
4222
|
__scopeDialog: t,
|
|
4212
4223
|
children: n,
|
|
@@ -4220,7 +4231,7 @@ var Qt = "Dialog", [Yr, Hu] = ae(Qt), [fl, Z] = Yr(Qt), Xr = (e) => {
|
|
|
4220
4231
|
onChange: s
|
|
4221
4232
|
});
|
|
4222
4233
|
return /* @__PURE__ */ g.jsx(
|
|
4223
|
-
|
|
4234
|
+
pl,
|
|
4224
4235
|
{
|
|
4225
4236
|
scope: t,
|
|
4226
4237
|
triggerRef: i,
|
|
@@ -4239,7 +4250,7 @@ var Qt = "Dialog", [Yr, Hu] = ae(Qt), [fl, Z] = Yr(Qt), Xr = (e) => {
|
|
|
4239
4250
|
Xr.displayName = Qt;
|
|
4240
4251
|
var qr = "DialogTrigger", Zr = l.forwardRef(
|
|
4241
4252
|
(e, t) => {
|
|
4242
|
-
const { __scopeDialog: n, ...r } = e, o = Z(qr, n), s =
|
|
4253
|
+
const { __scopeDialog: n, ...r } = e, o = Z(qr, n), s = B(t, o.triggerRef);
|
|
4243
4254
|
return /* @__PURE__ */ g.jsx(
|
|
4244
4255
|
$.button,
|
|
4245
4256
|
{
|
|
@@ -4256,21 +4267,21 @@ var qr = "DialogTrigger", Zr = l.forwardRef(
|
|
|
4256
4267
|
}
|
|
4257
4268
|
);
|
|
4258
4269
|
Zr.displayName = qr;
|
|
4259
|
-
var Jt = "DialogPortal", [
|
|
4270
|
+
var Jt = "DialogPortal", [ml, Qr] = Yr(Jt, {
|
|
4260
4271
|
forceMount: void 0
|
|
4261
4272
|
}), Jr = (e) => {
|
|
4262
4273
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Z(Jt, t);
|
|
4263
|
-
return /* @__PURE__ */ g.jsx(
|
|
4274
|
+
return /* @__PURE__ */ g.jsx(ml, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(it, { asChild: !0, container: o, children: a }) })) });
|
|
4264
4275
|
};
|
|
4265
4276
|
Jr.displayName = Jt;
|
|
4266
4277
|
var tt = "DialogOverlay", eo = l.forwardRef(
|
|
4267
4278
|
(e, t) => {
|
|
4268
4279
|
const n = Qr(tt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(tt, e.__scopeDialog);
|
|
4269
|
-
return s.modal ? /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: /* @__PURE__ */ g.jsx(
|
|
4280
|
+
return s.modal ? /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: /* @__PURE__ */ g.jsx(gl, { ...o, ref: t }) }) : null;
|
|
4270
4281
|
}
|
|
4271
4282
|
);
|
|
4272
4283
|
eo.displayName = tt;
|
|
4273
|
-
var
|
|
4284
|
+
var gl = l.forwardRef(
|
|
4274
4285
|
(e, t) => {
|
|
4275
4286
|
const { __scopeDialog: n, ...r } = e, o = Z(tt, n);
|
|
4276
4287
|
return (
|
|
@@ -4290,13 +4301,13 @@ var ml = l.forwardRef(
|
|
|
4290
4301
|
), ye = "DialogContent", to = l.forwardRef(
|
|
4291
4302
|
(e, t) => {
|
|
4292
4303
|
const n = Qr(ye, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(ye, e.__scopeDialog);
|
|
4293
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(
|
|
4304
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(hl, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(vl, { ...o, ref: t }) });
|
|
4294
4305
|
}
|
|
4295
4306
|
);
|
|
4296
4307
|
to.displayName = ye;
|
|
4297
|
-
var
|
|
4308
|
+
var hl = l.forwardRef(
|
|
4298
4309
|
(e, t) => {
|
|
4299
|
-
const n = Z(ye, e.__scopeDialog), r = l.useRef(null), o =
|
|
4310
|
+
const n = Z(ye, e.__scopeDialog), r = l.useRef(null), o = B(t, n.contentRef, r);
|
|
4300
4311
|
return l.useEffect(() => {
|
|
4301
4312
|
const s = r.current;
|
|
4302
4313
|
if (s) return Ur(s);
|
|
@@ -4322,7 +4333,7 @@ var gl = l.forwardRef(
|
|
|
4322
4333
|
}
|
|
4323
4334
|
);
|
|
4324
4335
|
}
|
|
4325
|
-
),
|
|
4336
|
+
), vl = l.forwardRef(
|
|
4326
4337
|
(e, t) => {
|
|
4327
4338
|
const n = Z(ye, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
4328
4339
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -4347,7 +4358,7 @@ var gl = l.forwardRef(
|
|
|
4347
4358
|
}
|
|
4348
4359
|
), no = l.forwardRef(
|
|
4349
4360
|
(e, t) => {
|
|
4350
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(ye, n), c = l.useRef(null), u =
|
|
4361
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(ye, n), c = l.useRef(null), u = B(t, c);
|
|
4351
4362
|
return Lr(), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
4352
4363
|
/* @__PURE__ */ g.jsx(
|
|
4353
4364
|
qt,
|
|
@@ -4373,8 +4384,8 @@ var gl = l.forwardRef(
|
|
|
4373
4384
|
}
|
|
4374
4385
|
),
|
|
4375
4386
|
/* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
4376
|
-
/* @__PURE__ */ g.jsx(
|
|
4377
|
-
/* @__PURE__ */ g.jsx(
|
|
4387
|
+
/* @__PURE__ */ g.jsx(bl, { titleId: i.titleId }),
|
|
4388
|
+
/* @__PURE__ */ g.jsx(xl, { contentRef: c, descriptionId: i.descriptionId })
|
|
4378
4389
|
] })
|
|
4379
4390
|
] });
|
|
4380
4391
|
}
|
|
@@ -4410,11 +4421,11 @@ io.displayName = ao;
|
|
|
4410
4421
|
function tn(e) {
|
|
4411
4422
|
return e ? "open" : "closed";
|
|
4412
4423
|
}
|
|
4413
|
-
var lo = "DialogTitleWarning", [
|
|
4424
|
+
var lo = "DialogTitleWarning", [ed, co] = pa(lo, {
|
|
4414
4425
|
contentName: ye,
|
|
4415
4426
|
titleName: en,
|
|
4416
4427
|
docsSlug: "dialog"
|
|
4417
|
-
}),
|
|
4428
|
+
}), bl = ({ titleId: e }) => {
|
|
4418
4429
|
const t = co(lo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4419
4430
|
|
|
4420
4431
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -4423,21 +4434,21 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4423
4434
|
return l.useEffect(() => {
|
|
4424
4435
|
e && (document.getElementById(e) || console.error(n));
|
|
4425
4436
|
}, [n, e]), null;
|
|
4426
|
-
},
|
|
4427
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${co(
|
|
4437
|
+
}, yl = "DialogDescriptionWarning", xl = ({ contentRef: e, descriptionId: t }) => {
|
|
4438
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${co(yl).contentName}}.`;
|
|
4428
4439
|
return l.useEffect(() => {
|
|
4429
4440
|
var s;
|
|
4430
4441
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
4431
4442
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
4432
4443
|
}, [r, e, t]), null;
|
|
4433
|
-
},
|
|
4444
|
+
}, wl = Xr, Cl = Zr, El = Jr, uo = eo, fo = to, po = ro, mo = so, go = io;
|
|
4434
4445
|
/**
|
|
4435
4446
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
4436
4447
|
*
|
|
4437
4448
|
* This source code is licensed under the MIT license.
|
|
4438
4449
|
* See the LICENSE file in the root directory of this source tree.
|
|
4439
4450
|
*/
|
|
4440
|
-
var
|
|
4451
|
+
var Rl = {
|
|
4441
4452
|
outline: {
|
|
4442
4453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4443
4454
|
width: 24,
|
|
@@ -4464,13 +4475,13 @@ var El = {
|
|
|
4464
4475
|
* This source code is licensed under the MIT license.
|
|
4465
4476
|
* See the LICENSE file in the root directory of this source tree.
|
|
4466
4477
|
*/
|
|
4467
|
-
const
|
|
4468
|
-
const o =
|
|
4478
|
+
const td = (e, t, n, r) => {
|
|
4479
|
+
const o = H(
|
|
4469
4480
|
({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) => ht(
|
|
4470
4481
|
"svg",
|
|
4471
4482
|
{
|
|
4472
4483
|
ref: h,
|
|
4473
|
-
...
|
|
4484
|
+
...Rl[e],
|
|
4474
4485
|
width: a,
|
|
4475
4486
|
height: a,
|
|
4476
4487
|
className: ["tabler-icon", `tabler-icon-${t}`, u].join(" "),
|
|
@@ -4491,7 +4502,75 @@ const Ku = (e, t, n, r) => {
|
|
|
4491
4502
|
);
|
|
4492
4503
|
return o.displayName = `${n}`, o;
|
|
4493
4504
|
};
|
|
4494
|
-
|
|
4505
|
+
function Vn(e, t) {
|
|
4506
|
+
if (typeof e == "function")
|
|
4507
|
+
return e(t);
|
|
4508
|
+
e != null && (e.current = t);
|
|
4509
|
+
}
|
|
4510
|
+
function Pl(...e) {
|
|
4511
|
+
return (t) => {
|
|
4512
|
+
let n = !1;
|
|
4513
|
+
const r = e.map((o) => {
|
|
4514
|
+
const s = Vn(o, t);
|
|
4515
|
+
return !n && typeof s == "function" && (n = !0), s;
|
|
4516
|
+
});
|
|
4517
|
+
if (n)
|
|
4518
|
+
return () => {
|
|
4519
|
+
for (let o = 0; o < r.length; o++) {
|
|
4520
|
+
const s = r[o];
|
|
4521
|
+
typeof s == "function" ? s() : Vn(e[o], null);
|
|
4522
|
+
}
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4525
|
+
}
|
|
4526
|
+
function Sl(...e) {
|
|
4527
|
+
return l.useCallback(Pl(...e), e);
|
|
4528
|
+
}
|
|
4529
|
+
// @__NO_SIDE_EFFECTS__
|
|
4530
|
+
function Al(e) {
|
|
4531
|
+
const t = /* @__PURE__ */ Nl(e), n = l.forwardRef((r, o) => {
|
|
4532
|
+
const { children: s, ...a } = r, i = l.Children.toArray(s), c = i.find(Tl);
|
|
4533
|
+
if (c) {
|
|
4534
|
+
const u = c.props.children, d = i.map((f) => f === c ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : f);
|
|
4535
|
+
return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
|
|
4536
|
+
}
|
|
4537
|
+
return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: s });
|
|
4538
|
+
});
|
|
4539
|
+
return n.displayName = `${e}.Slot`, n;
|
|
4540
|
+
}
|
|
4541
|
+
// @__NO_SIDE_EFFECTS__
|
|
4542
|
+
function Nl(e) {
|
|
4543
|
+
const t = l.forwardRef((n, r) => {
|
|
4544
|
+
const { children: o, ...s } = n, a = l.isValidElement(o) ? Dl(o) : void 0, i = Sl(a, r);
|
|
4545
|
+
if (l.isValidElement(o)) {
|
|
4546
|
+
const c = kl(s, o.props);
|
|
4547
|
+
return o.type !== l.Fragment && (c.ref = i), l.cloneElement(o, c);
|
|
4548
|
+
}
|
|
4549
|
+
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
4550
|
+
});
|
|
4551
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
4552
|
+
}
|
|
4553
|
+
var Ol = Symbol("radix.slottable");
|
|
4554
|
+
function Tl(e) {
|
|
4555
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ol;
|
|
4556
|
+
}
|
|
4557
|
+
function kl(e, t) {
|
|
4558
|
+
const n = { ...t };
|
|
4559
|
+
for (const r in t) {
|
|
4560
|
+
const o = e[r], s = t[r];
|
|
4561
|
+
/^on[A-Z]/.test(r) ? o && s ? n[r] = (...i) => {
|
|
4562
|
+
const c = s(...i);
|
|
4563
|
+
return o(...i), c;
|
|
4564
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...s } : r === "className" && (n[r] = [o, s].filter(Boolean).join(" "));
|
|
4565
|
+
}
|
|
4566
|
+
return { ...e, ...n };
|
|
4567
|
+
}
|
|
4568
|
+
function Dl(e) {
|
|
4569
|
+
var r, o;
|
|
4570
|
+
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4571
|
+
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);
|
|
4572
|
+
}
|
|
4573
|
+
var jl = [
|
|
4495
4574
|
"a",
|
|
4496
4575
|
"button",
|
|
4497
4576
|
"div",
|
|
@@ -4509,14 +4588,14 @@ var Rl = [
|
|
|
4509
4588
|
"span",
|
|
4510
4589
|
"svg",
|
|
4511
4590
|
"ul"
|
|
4512
|
-
],
|
|
4513
|
-
const n = /* @__PURE__ */
|
|
4591
|
+
], Il = jl.reduce((e, t) => {
|
|
4592
|
+
const n = /* @__PURE__ */ Al(`Primitive.${t}`), r = l.forwardRef((o, s) => {
|
|
4514
4593
|
const { asChild: a, ...i } = o, c = a ? n : t;
|
|
4515
4594
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g.jsx(c, { ...i, ref: s });
|
|
4516
4595
|
});
|
|
4517
4596
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
4518
|
-
}, {}),
|
|
4519
|
-
|
|
4597
|
+
}, {}), Ml = "Label", ho = l.forwardRef((e, t) => /* @__PURE__ */ g.jsx(
|
|
4598
|
+
Il.label,
|
|
4520
4599
|
{
|
|
4521
4600
|
...e,
|
|
4522
4601
|
ref: t,
|
|
@@ -4526,18 +4605,18 @@ var Rl = [
|
|
|
4526
4605
|
}
|
|
4527
4606
|
}
|
|
4528
4607
|
));
|
|
4529
|
-
ho.displayName =
|
|
4608
|
+
ho.displayName = Ml;
|
|
4530
4609
|
var vo = ho;
|
|
4531
|
-
const
|
|
4610
|
+
const _l = Gt(
|
|
4532
4611
|
"al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
|
|
4533
|
-
),
|
|
4534
|
-
|
|
4535
|
-
const
|
|
4612
|
+
), Ll = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(vo, { ref: n, className: M(_l(), e), ...t }));
|
|
4613
|
+
Ll.displayName = vo.displayName;
|
|
4614
|
+
const Fl = H(
|
|
4536
4615
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4537
4616
|
"div",
|
|
4538
4617
|
{
|
|
4539
4618
|
ref: n,
|
|
4540
|
-
className:
|
|
4619
|
+
className: M(
|
|
4541
4620
|
"al-rounded-lg al-border al-bg-card al-text-card-foreground al-shadow-sm",
|
|
4542
4621
|
e
|
|
4543
4622
|
),
|
|
@@ -4545,64 +4624,50 @@ const Ol = G(
|
|
|
4545
4624
|
}
|
|
4546
4625
|
)
|
|
4547
4626
|
);
|
|
4548
|
-
|
|
4549
|
-
const
|
|
4627
|
+
Fl.displayName = "Card";
|
|
4628
|
+
const $l = H(
|
|
4550
4629
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4551
4630
|
"div",
|
|
4552
4631
|
{
|
|
4553
4632
|
ref: n,
|
|
4554
|
-
className:
|
|
4633
|
+
className: M("al-flex al-flex-col al-space-y-1.5 al-p-6 al-pb-4", e),
|
|
4555
4634
|
...t
|
|
4556
4635
|
}
|
|
4557
4636
|
)
|
|
4558
4637
|
);
|
|
4559
|
-
|
|
4560
|
-
const
|
|
4638
|
+
$l.displayName = "CardHeader";
|
|
4639
|
+
const Wl = H(
|
|
4561
4640
|
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4562
4641
|
"div",
|
|
4563
4642
|
{
|
|
4564
4643
|
ref: n,
|
|
4565
|
-
className:
|
|
4644
|
+
className: M("al-text-2xl al-font-semibold al-leading-none al-tracking-tight", e),
|
|
4566
4645
|
...t
|
|
4567
4646
|
}
|
|
4568
4647
|
)
|
|
4569
4648
|
);
|
|
4570
|
-
|
|
4571
|
-
const
|
|
4572
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4649
|
+
Wl.displayName = "CardTitle";
|
|
4650
|
+
const Vl = H(
|
|
4651
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-text-sm al-text-muted-foreground", e), ...t })
|
|
4573
4652
|
);
|
|
4574
|
-
|
|
4575
|
-
const
|
|
4576
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4653
|
+
Vl.displayName = "CardDescription";
|
|
4654
|
+
const Bl = H(
|
|
4655
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-p-6 al-pt-0", e), ...t })
|
|
4577
4656
|
);
|
|
4578
|
-
|
|
4579
|
-
const
|
|
4580
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className:
|
|
4657
|
+
Bl.displayName = "CardContent";
|
|
4658
|
+
const zl = H(
|
|
4659
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
|
|
4581
4660
|
);
|
|
4582
|
-
|
|
4583
|
-
const
|
|
4584
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4585
|
-
"textarea",
|
|
4586
|
-
{
|
|
4587
|
-
className: I(
|
|
4588
|
-
"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",
|
|
4589
|
-
e
|
|
4590
|
-
),
|
|
4591
|
-
ref: n,
|
|
4592
|
-
...t
|
|
4593
|
-
}
|
|
4594
|
-
)
|
|
4595
|
-
);
|
|
4596
|
-
Il.displayName = "Textarea";
|
|
4597
|
-
const _l = ["top", "right", "bottom", "left"], fe = Math.min, K = Math.max, nt = Math.round, Ze = Math.floor, pe = (e) => ({
|
|
4661
|
+
zl.displayName = "CardFooter";
|
|
4662
|
+
const Hl = ["top", "right", "bottom", "left"], fe = Math.min, K = Math.max, nt = Math.round, Ze = Math.floor, pe = (e) => ({
|
|
4598
4663
|
x: e,
|
|
4599
4664
|
y: e
|
|
4600
|
-
}),
|
|
4665
|
+
}), Gl = {
|
|
4601
4666
|
left: "right",
|
|
4602
4667
|
right: "left",
|
|
4603
4668
|
bottom: "top",
|
|
4604
4669
|
top: "bottom"
|
|
4605
|
-
},
|
|
4670
|
+
}, Ul = {
|
|
4606
4671
|
start: "end",
|
|
4607
4672
|
end: "start"
|
|
4608
4673
|
};
|
|
@@ -4615,7 +4680,7 @@ function oe(e, t) {
|
|
|
4615
4680
|
function se(e) {
|
|
4616
4681
|
return e.split("-")[0];
|
|
4617
4682
|
}
|
|
4618
|
-
function
|
|
4683
|
+
function Ie(e) {
|
|
4619
4684
|
return e.split("-")[1];
|
|
4620
4685
|
}
|
|
4621
4686
|
function nn(e) {
|
|
@@ -4630,20 +4695,20 @@ function me(e) {
|
|
|
4630
4695
|
function on(e) {
|
|
4631
4696
|
return nn(me(e));
|
|
4632
4697
|
}
|
|
4633
|
-
function
|
|
4698
|
+
function Kl(e, t, n) {
|
|
4634
4699
|
n === void 0 && (n = !1);
|
|
4635
|
-
const r =
|
|
4700
|
+
const r = Ie(e), o = on(e), s = rn(o);
|
|
4636
4701
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4637
4702
|
return t.reference[s] > t.floating[s] && (a = rt(a)), [a, rt(a)];
|
|
4638
4703
|
}
|
|
4639
|
-
function
|
|
4704
|
+
function Yl(e) {
|
|
4640
4705
|
const t = rt(e);
|
|
4641
4706
|
return [Lt(e), t, Lt(t)];
|
|
4642
4707
|
}
|
|
4643
4708
|
function Lt(e) {
|
|
4644
|
-
return e.replace(/start|end/g, (t) =>
|
|
4709
|
+
return e.replace(/start|end/g, (t) => Ul[t]);
|
|
4645
4710
|
}
|
|
4646
|
-
function
|
|
4711
|
+
function Xl(e, t, n) {
|
|
4647
4712
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
4648
4713
|
switch (e) {
|
|
4649
4714
|
case "top":
|
|
@@ -4656,15 +4721,15 @@ function Vl(e, t, n) {
|
|
|
4656
4721
|
return [];
|
|
4657
4722
|
}
|
|
4658
4723
|
}
|
|
4659
|
-
function
|
|
4660
|
-
const o =
|
|
4661
|
-
let s =
|
|
4724
|
+
function ql(e, t, n, r) {
|
|
4725
|
+
const o = Ie(e);
|
|
4726
|
+
let s = Xl(se(e), n === "start", r);
|
|
4662
4727
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Lt)))), s;
|
|
4663
4728
|
}
|
|
4664
4729
|
function rt(e) {
|
|
4665
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4730
|
+
return e.replace(/left|right|bottom|top/g, (t) => Gl[t]);
|
|
4666
4731
|
}
|
|
4667
|
-
function
|
|
4732
|
+
function Zl(e) {
|
|
4668
4733
|
return {
|
|
4669
4734
|
top: 0,
|
|
4670
4735
|
right: 0,
|
|
@@ -4674,7 +4739,7 @@ function Bl(e) {
|
|
|
4674
4739
|
};
|
|
4675
4740
|
}
|
|
4676
4741
|
function bo(e) {
|
|
4677
|
-
return typeof e != "number" ?
|
|
4742
|
+
return typeof e != "number" ? Zl(e) : {
|
|
4678
4743
|
top: e,
|
|
4679
4744
|
right: e,
|
|
4680
4745
|
bottom: e,
|
|
@@ -4699,7 +4764,7 @@ function ot(e) {
|
|
|
4699
4764
|
y: n
|
|
4700
4765
|
};
|
|
4701
4766
|
}
|
|
4702
|
-
function
|
|
4767
|
+
function Bn(e, t, n) {
|
|
4703
4768
|
let {
|
|
4704
4769
|
reference: r,
|
|
4705
4770
|
floating: o
|
|
@@ -4737,7 +4802,7 @@ function Vn(e, t, n) {
|
|
|
4737
4802
|
y: r.y
|
|
4738
4803
|
};
|
|
4739
4804
|
}
|
|
4740
|
-
switch (
|
|
4805
|
+
switch (Ie(t)) {
|
|
4741
4806
|
case "start":
|
|
4742
4807
|
m[a] -= h * (n && u ? -1 : 1);
|
|
4743
4808
|
break;
|
|
@@ -4747,7 +4812,7 @@ function Vn(e, t, n) {
|
|
|
4747
4812
|
}
|
|
4748
4813
|
return m;
|
|
4749
4814
|
}
|
|
4750
|
-
const
|
|
4815
|
+
const Ql = async (e, t, n) => {
|
|
4751
4816
|
const {
|
|
4752
4817
|
placement: r = "bottom",
|
|
4753
4818
|
strategy: o = "absolute",
|
|
@@ -4761,7 +4826,7 @@ const Gl = async (e, t, n) => {
|
|
|
4761
4826
|
}), {
|
|
4762
4827
|
x: d,
|
|
4763
4828
|
y: f
|
|
4764
|
-
} =
|
|
4829
|
+
} = Bn(u, r, c), h = r, m = {}, v = 0;
|
|
4765
4830
|
for (let p = 0; p < i.length; p++) {
|
|
4766
4831
|
const {
|
|
4767
4832
|
name: b,
|
|
@@ -4798,7 +4863,7 @@ const Gl = async (e, t, n) => {
|
|
|
4798
4863
|
}) : E.rects), {
|
|
4799
4864
|
x: d,
|
|
4800
4865
|
y: f
|
|
4801
|
-
} =
|
|
4866
|
+
} = Bn(u, h, c)), p = -1);
|
|
4802
4867
|
}
|
|
4803
4868
|
return {
|
|
4804
4869
|
x: d,
|
|
@@ -4853,7 +4918,7 @@ async function $e(e, t) {
|
|
|
4853
4918
|
right: (E.right - y.right + v.right) / w.x
|
|
4854
4919
|
};
|
|
4855
4920
|
}
|
|
4856
|
-
const
|
|
4921
|
+
const Jl = (e) => ({
|
|
4857
4922
|
name: "arrow",
|
|
4858
4923
|
options: e,
|
|
4859
4924
|
async fn(t) {
|
|
@@ -4877,12 +4942,12 @@ const Hl = (e) => ({
|
|
|
4877
4942
|
}, m = on(o), v = rn(m), p = await a.getDimensions(u), b = m === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[m] - h[m] - s.floating[v], E = h[m] - s.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
4878
4943
|
let R = P ? P[C] : 0;
|
|
4879
4944
|
(!R || !await (a.isElement == null ? void 0 : a.isElement(P))) && (R = i.floating[C] || s.floating[v]);
|
|
4880
|
-
const S = w / 2 - E / 2,
|
|
4945
|
+
const S = w / 2 - E / 2, I = R / 2 - p[v] / 2 - 1, D = fe(f[y], I), F = fe(f[x], I), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S, z = _t(A, j, L), T = !c.arrow && Ie(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;
|
|
4881
4946
|
return {
|
|
4882
4947
|
[m]: h[m] + V,
|
|
4883
4948
|
data: {
|
|
4884
|
-
[m]:
|
|
4885
|
-
centerOffset: j -
|
|
4949
|
+
[m]: z,
|
|
4950
|
+
centerOffset: j - z - V,
|
|
4886
4951
|
...T && {
|
|
4887
4952
|
alignmentOffset: V
|
|
4888
4953
|
}
|
|
@@ -4890,7 +4955,7 @@ const Hl = (e) => ({
|
|
|
4890
4955
|
reset: T
|
|
4891
4956
|
};
|
|
4892
4957
|
}
|
|
4893
|
-
}),
|
|
4958
|
+
}), ec = function(e) {
|
|
4894
4959
|
return e === void 0 && (e = {}), {
|
|
4895
4960
|
name: "flip",
|
|
4896
4961
|
options: e,
|
|
@@ -4914,28 +4979,28 @@ const Hl = (e) => ({
|
|
|
4914
4979
|
} = oe(e, t);
|
|
4915
4980
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4916
4981
|
return {};
|
|
4917
|
-
const y = se(o), x = me(i), C = se(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = h || (C || !p ? [rt(i)] :
|
|
4918
|
-
!h && P && E.push(...
|
|
4919
|
-
const R = [i, ...E], S = await $e(t, b),
|
|
4982
|
+
const y = se(o), x = me(i), C = se(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = h || (C || !p ? [rt(i)] : Yl(i)), P = v !== "none";
|
|
4983
|
+
!h && P && E.push(...ql(i, p, v, w));
|
|
4984
|
+
const R = [i, ...E], S = await $e(t, b), I = [];
|
|
4920
4985
|
let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4921
|
-
if (d &&
|
|
4922
|
-
const j =
|
|
4923
|
-
|
|
4986
|
+
if (d && I.push(S[y]), f) {
|
|
4987
|
+
const j = Kl(o, a, w);
|
|
4988
|
+
I.push(S[j[0]], S[j[1]]);
|
|
4924
4989
|
}
|
|
4925
4990
|
if (D = [...D, {
|
|
4926
4991
|
placement: o,
|
|
4927
|
-
overflows:
|
|
4928
|
-
}], !
|
|
4992
|
+
overflows: I
|
|
4993
|
+
}], !I.every((j) => j <= 0)) {
|
|
4929
4994
|
var F, A;
|
|
4930
|
-
const j = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1,
|
|
4931
|
-
if (
|
|
4995
|
+
const j = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1, z = R[j];
|
|
4996
|
+
if (z)
|
|
4932
4997
|
return {
|
|
4933
4998
|
data: {
|
|
4934
4999
|
index: j,
|
|
4935
5000
|
overflows: D
|
|
4936
5001
|
},
|
|
4937
5002
|
reset: {
|
|
4938
|
-
placement:
|
|
5003
|
+
placement: z
|
|
4939
5004
|
}
|
|
4940
5005
|
};
|
|
4941
5006
|
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;
|
|
@@ -4978,10 +5043,10 @@ function zn(e, t) {
|
|
|
4978
5043
|
left: e.left - t.width
|
|
4979
5044
|
};
|
|
4980
5045
|
}
|
|
4981
|
-
function
|
|
4982
|
-
return
|
|
5046
|
+
function Hn(e) {
|
|
5047
|
+
return Hl.some((t) => e[t] >= 0);
|
|
4983
5048
|
}
|
|
4984
|
-
const
|
|
5049
|
+
const tc = function(e) {
|
|
4985
5050
|
return e === void 0 && (e = {}), {
|
|
4986
5051
|
name: "hide",
|
|
4987
5052
|
options: e,
|
|
@@ -5001,7 +5066,7 @@ const Kl = function(e) {
|
|
|
5001
5066
|
return {
|
|
5002
5067
|
data: {
|
|
5003
5068
|
referenceHiddenOffsets: a,
|
|
5004
|
-
referenceHidden:
|
|
5069
|
+
referenceHidden: Hn(a)
|
|
5005
5070
|
}
|
|
5006
5071
|
};
|
|
5007
5072
|
}
|
|
@@ -5013,7 +5078,7 @@ const Kl = function(e) {
|
|
|
5013
5078
|
return {
|
|
5014
5079
|
data: {
|
|
5015
5080
|
escapedOffsets: a,
|
|
5016
|
-
escaped:
|
|
5081
|
+
escaped: Hn(a)
|
|
5017
5082
|
}
|
|
5018
5083
|
};
|
|
5019
5084
|
}
|
|
@@ -5023,12 +5088,12 @@ const Kl = function(e) {
|
|
|
5023
5088
|
}
|
|
5024
5089
|
};
|
|
5025
5090
|
};
|
|
5026
|
-
async function
|
|
5091
|
+
async function nc(e, t) {
|
|
5027
5092
|
const {
|
|
5028
5093
|
placement: n,
|
|
5029
5094
|
platform: r,
|
|
5030
5095
|
elements: o
|
|
5031
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = se(n), i =
|
|
5096
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = se(n), i = Ie(n), c = me(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = oe(t, e);
|
|
5032
5097
|
let {
|
|
5033
5098
|
mainAxis: h,
|
|
5034
5099
|
crossAxis: m,
|
|
@@ -5050,7 +5115,7 @@ async function Yl(e, t) {
|
|
|
5050
5115
|
y: m * d
|
|
5051
5116
|
};
|
|
5052
5117
|
}
|
|
5053
|
-
const
|
|
5118
|
+
const rc = function(e) {
|
|
5054
5119
|
return e === void 0 && (e = 0), {
|
|
5055
5120
|
name: "offset",
|
|
5056
5121
|
options: e,
|
|
@@ -5061,7 +5126,7 @@ const Xl = function(e) {
|
|
|
5061
5126
|
y: s,
|
|
5062
5127
|
placement: a,
|
|
5063
5128
|
middlewareData: i
|
|
5064
|
-
} = t, c = await
|
|
5129
|
+
} = t, c = await nc(t, e);
|
|
5065
5130
|
return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
|
|
5066
5131
|
x: o + c.x,
|
|
5067
5132
|
y: s + c.y,
|
|
@@ -5072,7 +5137,7 @@ const Xl = function(e) {
|
|
|
5072
5137
|
};
|
|
5073
5138
|
}
|
|
5074
5139
|
};
|
|
5075
|
-
},
|
|
5140
|
+
}, oc = function(e) {
|
|
5076
5141
|
return e === void 0 && (e = {}), {
|
|
5077
5142
|
name: "shift",
|
|
5078
5143
|
options: e,
|
|
@@ -5128,7 +5193,7 @@ const Xl = function(e) {
|
|
|
5128
5193
|
};
|
|
5129
5194
|
}
|
|
5130
5195
|
};
|
|
5131
|
-
},
|
|
5196
|
+
}, sc = function(e) {
|
|
5132
5197
|
return e === void 0 && (e = {}), {
|
|
5133
5198
|
options: e,
|
|
5134
5199
|
fn(t) {
|
|
@@ -5170,7 +5235,7 @@ const Xl = function(e) {
|
|
|
5170
5235
|
};
|
|
5171
5236
|
}
|
|
5172
5237
|
};
|
|
5173
|
-
},
|
|
5238
|
+
}, ac = function(e) {
|
|
5174
5239
|
return e === void 0 && (e = {}), {
|
|
5175
5240
|
name: "size",
|
|
5176
5241
|
options: e,
|
|
@@ -5185,7 +5250,7 @@ const Xl = function(e) {
|
|
|
5185
5250
|
apply: c = () => {
|
|
5186
5251
|
},
|
|
5187
5252
|
...u
|
|
5188
|
-
} = oe(e, t), d = await $e(t, u), f = se(o), h =
|
|
5253
|
+
} = oe(e, t), d = await $e(t, u), f = se(o), h = Ie(o), m = me(o) === "y", {
|
|
5189
5254
|
width: v,
|
|
5190
5255
|
height: p
|
|
5191
5256
|
} = s.floating;
|
|
@@ -5202,8 +5267,8 @@ const Xl = function(e) {
|
|
|
5202
5267
|
availableWidth: S,
|
|
5203
5268
|
availableHeight: R
|
|
5204
5269
|
});
|
|
5205
|
-
const
|
|
5206
|
-
return v !==
|
|
5270
|
+
const I = await a.getDimensions(i.floating);
|
|
5271
|
+
return v !== I.width || p !== I.height ? {
|
|
5207
5272
|
reset: {
|
|
5208
5273
|
rects: !0
|
|
5209
5274
|
}
|
|
@@ -5214,7 +5279,7 @@ const Xl = function(e) {
|
|
|
5214
5279
|
function ct() {
|
|
5215
5280
|
return typeof window < "u";
|
|
5216
5281
|
}
|
|
5217
|
-
function
|
|
5282
|
+
function Me(e) {
|
|
5218
5283
|
return yo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5219
5284
|
}
|
|
5220
5285
|
function Y(e) {
|
|
@@ -5237,7 +5302,7 @@ function J(e) {
|
|
|
5237
5302
|
function Gn(e) {
|
|
5238
5303
|
return !ct() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
5239
5304
|
}
|
|
5240
|
-
function
|
|
5305
|
+
function Be(e) {
|
|
5241
5306
|
const {
|
|
5242
5307
|
overflow: t,
|
|
5243
5308
|
overflowX: n,
|
|
@@ -5246,8 +5311,8 @@ function ze(e) {
|
|
|
5246
5311
|
} = q(e);
|
|
5247
5312
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5248
5313
|
}
|
|
5249
|
-
function
|
|
5250
|
-
return ["table", "td", "th"].includes(
|
|
5314
|
+
function ic(e) {
|
|
5315
|
+
return ["table", "td", "th"].includes(Me(e));
|
|
5251
5316
|
}
|
|
5252
5317
|
function ut(e) {
|
|
5253
5318
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -5262,7 +5327,7 @@ function sn(e) {
|
|
|
5262
5327
|
const t = an(), n = X(e) ? q(e) : e;
|
|
5263
5328
|
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));
|
|
5264
5329
|
}
|
|
5265
|
-
function
|
|
5330
|
+
function lc(e) {
|
|
5266
5331
|
let t = ge(e);
|
|
5267
5332
|
for (; J(t) && !Ne(t); ) {
|
|
5268
5333
|
if (sn(t))
|
|
@@ -5277,7 +5342,7 @@ function an() {
|
|
|
5277
5342
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5278
5343
|
}
|
|
5279
5344
|
function Ne(e) {
|
|
5280
|
-
return ["html", "body", "#document"].includes(
|
|
5345
|
+
return ["html", "body", "#document"].includes(Me(e));
|
|
5281
5346
|
}
|
|
5282
5347
|
function q(e) {
|
|
5283
5348
|
return Y(e).getComputedStyle(e);
|
|
@@ -5292,7 +5357,7 @@ function dt(e) {
|
|
|
5292
5357
|
};
|
|
5293
5358
|
}
|
|
5294
5359
|
function ge(e) {
|
|
5295
|
-
if (
|
|
5360
|
+
if (Me(e) === "html")
|
|
5296
5361
|
return e;
|
|
5297
5362
|
const t = (
|
|
5298
5363
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -5305,7 +5370,7 @@ function ge(e) {
|
|
|
5305
5370
|
}
|
|
5306
5371
|
function xo(e) {
|
|
5307
5372
|
const t = ge(e);
|
|
5308
|
-
return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) &&
|
|
5373
|
+
return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && Be(t) ? t : xo(t);
|
|
5309
5374
|
}
|
|
5310
5375
|
function We(e, t, n) {
|
|
5311
5376
|
var r;
|
|
@@ -5313,7 +5378,7 @@ function We(e, t, n) {
|
|
|
5313
5378
|
const o = xo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(o);
|
|
5314
5379
|
if (s) {
|
|
5315
5380
|
const i = Ft(a);
|
|
5316
|
-
return t.concat(a, a.visualViewport || [],
|
|
5381
|
+
return t.concat(a, a.visualViewport || [], Be(o) ? o : [], i && n ? We(i) : []);
|
|
5317
5382
|
}
|
|
5318
5383
|
return t.concat(o, We(o, [], n));
|
|
5319
5384
|
}
|
|
@@ -5348,15 +5413,15 @@ function Ae(e) {
|
|
|
5348
5413
|
y: i
|
|
5349
5414
|
};
|
|
5350
5415
|
}
|
|
5351
|
-
const
|
|
5416
|
+
const cc = /* @__PURE__ */ pe(0);
|
|
5352
5417
|
function Co(e) {
|
|
5353
5418
|
const t = Y(e);
|
|
5354
|
-
return !an() || !t.visualViewport ?
|
|
5419
|
+
return !an() || !t.visualViewport ? cc : {
|
|
5355
5420
|
x: t.visualViewport.offsetLeft,
|
|
5356
5421
|
y: t.visualViewport.offsetTop
|
|
5357
5422
|
};
|
|
5358
5423
|
}
|
|
5359
|
-
function
|
|
5424
|
+
function uc(e, t, n) {
|
|
5360
5425
|
return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
|
|
5361
5426
|
}
|
|
5362
5427
|
function xe(e, t, n, r) {
|
|
@@ -5364,7 +5429,7 @@ function xe(e, t, n, r) {
|
|
|
5364
5429
|
const o = e.getBoundingClientRect(), s = ln(e);
|
|
5365
5430
|
let a = pe(1);
|
|
5366
5431
|
t && (r ? X(r) && (a = Ae(r)) : a = Ae(e));
|
|
5367
|
-
const i =
|
|
5432
|
+
const i = uc(s, n, r) ? Co(s) : pe(0);
|
|
5368
5433
|
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;
|
|
5369
5434
|
if (s) {
|
|
5370
5435
|
const h = Y(s), m = r && X(r) ? Y(r) : r;
|
|
@@ -5381,7 +5446,7 @@ function xe(e, t, n, r) {
|
|
|
5381
5446
|
y: u
|
|
5382
5447
|
});
|
|
5383
5448
|
}
|
|
5384
|
-
function
|
|
5449
|
+
function dc(e) {
|
|
5385
5450
|
let {
|
|
5386
5451
|
elements: t,
|
|
5387
5452
|
rect: n,
|
|
@@ -5396,7 +5461,7 @@ function rc(e) {
|
|
|
5396
5461
|
scrollTop: 0
|
|
5397
5462
|
}, u = pe(1);
|
|
5398
5463
|
const d = pe(0), f = J(r);
|
|
5399
|
-
if ((f || !f && !s) && ((
|
|
5464
|
+
if ((f || !f && !s) && ((Me(r) !== "body" || Be(a)) && (c = dt(r)), J(r))) {
|
|
5400
5465
|
const h = xe(r);
|
|
5401
5466
|
u = Ae(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
5402
5467
|
}
|
|
@@ -5407,14 +5472,14 @@ function rc(e) {
|
|
|
5407
5472
|
y: n.y * u.y - c.scrollTop * u.y + d.y
|
|
5408
5473
|
};
|
|
5409
5474
|
}
|
|
5410
|
-
function
|
|
5475
|
+
function fc(e) {
|
|
5411
5476
|
return Array.from(e.getClientRects());
|
|
5412
5477
|
}
|
|
5413
5478
|
function $t(e, t) {
|
|
5414
5479
|
const n = dt(e).scrollLeft;
|
|
5415
5480
|
return t ? t.left + n : xe(te(e)).left + n;
|
|
5416
5481
|
}
|
|
5417
|
-
function
|
|
5482
|
+
function pc(e) {
|
|
5418
5483
|
const t = te(e), n = dt(e), r = e.ownerDocument.body, o = K(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = K(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5419
5484
|
let a = -n.scrollLeft + $t(e);
|
|
5420
5485
|
const i = -n.scrollTop;
|
|
@@ -5425,7 +5490,7 @@ function sc(e) {
|
|
|
5425
5490
|
y: i
|
|
5426
5491
|
};
|
|
5427
5492
|
}
|
|
5428
|
-
function
|
|
5493
|
+
function mc(e, t) {
|
|
5429
5494
|
const n = Y(e), r = te(e), o = n.visualViewport;
|
|
5430
5495
|
let s = r.clientWidth, a = r.clientHeight, i = 0, c = 0;
|
|
5431
5496
|
if (o) {
|
|
@@ -5440,7 +5505,7 @@ function ac(e, t) {
|
|
|
5440
5505
|
y: c
|
|
5441
5506
|
};
|
|
5442
5507
|
}
|
|
5443
|
-
function
|
|
5508
|
+
function gc(e, t) {
|
|
5444
5509
|
const n = xe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = J(e) ? Ae(e) : pe(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x, u = r * s.y;
|
|
5445
5510
|
return {
|
|
5446
5511
|
width: a,
|
|
@@ -5449,14 +5514,14 @@ function ic(e, t) {
|
|
|
5449
5514
|
y: u
|
|
5450
5515
|
};
|
|
5451
5516
|
}
|
|
5452
|
-
function
|
|
5517
|
+
function Un(e, t, n) {
|
|
5453
5518
|
let r;
|
|
5454
5519
|
if (t === "viewport")
|
|
5455
|
-
r =
|
|
5520
|
+
r = mc(e, n);
|
|
5456
5521
|
else if (t === "document")
|
|
5457
|
-
r =
|
|
5522
|
+
r = pc(te(e));
|
|
5458
5523
|
else if (X(t))
|
|
5459
|
-
r =
|
|
5524
|
+
r = gc(t, n);
|
|
5460
5525
|
else {
|
|
5461
5526
|
const o = Co(e);
|
|
5462
5527
|
r = {
|
|
@@ -5471,30 +5536,30 @@ function Eo(e, t) {
|
|
|
5471
5536
|
const n = ge(e);
|
|
5472
5537
|
return n === t || !X(n) || Ne(n) ? !1 : q(n).position === "fixed" || Eo(n, t);
|
|
5473
5538
|
}
|
|
5474
|
-
function
|
|
5539
|
+
function hc(e, t) {
|
|
5475
5540
|
const n = t.get(e);
|
|
5476
5541
|
if (n)
|
|
5477
5542
|
return n;
|
|
5478
|
-
let r = We(e, [], !1).filter((i) => X(i) &&
|
|
5543
|
+
let r = We(e, [], !1).filter((i) => X(i) && Me(i) !== "body"), o = null;
|
|
5479
5544
|
const s = q(e).position === "fixed";
|
|
5480
5545
|
let a = s ? ge(e) : e;
|
|
5481
5546
|
for (; X(a) && !Ne(a); ) {
|
|
5482
5547
|
const i = q(a), c = sn(a);
|
|
5483
|
-
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
5548
|
+
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Be(a) && !c && Eo(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = ge(a);
|
|
5484
5549
|
}
|
|
5485
5550
|
return t.set(e, r), r;
|
|
5486
5551
|
}
|
|
5487
|
-
function
|
|
5552
|
+
function vc(e) {
|
|
5488
5553
|
let {
|
|
5489
5554
|
element: t,
|
|
5490
5555
|
boundary: n,
|
|
5491
5556
|
rootBoundary: r,
|
|
5492
5557
|
strategy: o
|
|
5493
5558
|
} = e;
|
|
5494
|
-
const a = [...n === "clippingAncestors" ? ut(t) ? [] :
|
|
5495
|
-
const f =
|
|
5559
|
+
const a = [...n === "clippingAncestors" ? ut(t) ? [] : hc(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((u, d) => {
|
|
5560
|
+
const f = Un(t, d, o);
|
|
5496
5561
|
return u.top = K(f.top, u.top), u.right = fe(f.right, u.right), u.bottom = fe(f.bottom, u.bottom), u.left = K(f.left, u.left), u;
|
|
5497
|
-
},
|
|
5562
|
+
}, Un(t, i, o));
|
|
5498
5563
|
return {
|
|
5499
5564
|
width: c.right - c.left,
|
|
5500
5565
|
height: c.bottom - c.top,
|
|
@@ -5502,7 +5567,7 @@ function cc(e) {
|
|
|
5502
5567
|
y: c.top
|
|
5503
5568
|
};
|
|
5504
5569
|
}
|
|
5505
|
-
function
|
|
5570
|
+
function bc(e) {
|
|
5506
5571
|
const {
|
|
5507
5572
|
width: t,
|
|
5508
5573
|
height: n
|
|
@@ -5512,7 +5577,7 @@ function uc(e) {
|
|
|
5512
5577
|
height: n
|
|
5513
5578
|
};
|
|
5514
5579
|
}
|
|
5515
|
-
function
|
|
5580
|
+
function yc(e, t, n) {
|
|
5516
5581
|
const r = J(t), o = te(t), s = n === "fixed", a = xe(e, !0, s, t);
|
|
5517
5582
|
let i = {
|
|
5518
5583
|
scrollLeft: 0,
|
|
@@ -5520,7 +5585,7 @@ function dc(e, t, n) {
|
|
|
5520
5585
|
};
|
|
5521
5586
|
const c = pe(0);
|
|
5522
5587
|
if (r || !r && !s)
|
|
5523
|
-
if ((
|
|
5588
|
+
if ((Me(t) !== "body" || Be(o)) && (i = dt(t)), r) {
|
|
5524
5589
|
const m = xe(t, !0, s, t);
|
|
5525
5590
|
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
5526
5591
|
} else o && (c.x = $t(o));
|
|
@@ -5541,7 +5606,7 @@ function dc(e, t, n) {
|
|
|
5541
5606
|
function St(e) {
|
|
5542
5607
|
return q(e).position === "static";
|
|
5543
5608
|
}
|
|
5544
|
-
function
|
|
5609
|
+
function Kn(e, t) {
|
|
5545
5610
|
if (!J(e) || q(e).position === "fixed")
|
|
5546
5611
|
return null;
|
|
5547
5612
|
if (t)
|
|
@@ -5562,15 +5627,15 @@ function Ro(e, t) {
|
|
|
5562
5627
|
}
|
|
5563
5628
|
return n;
|
|
5564
5629
|
}
|
|
5565
|
-
let r =
|
|
5566
|
-
for (; r &&
|
|
5567
|
-
r =
|
|
5568
|
-
return r && Ne(r) && St(r) && !sn(r) ? n : r ||
|
|
5630
|
+
let r = Kn(e, t);
|
|
5631
|
+
for (; r && ic(r) && St(r); )
|
|
5632
|
+
r = Kn(r, t);
|
|
5633
|
+
return r && Ne(r) && St(r) && !sn(r) ? n : r || lc(e) || n;
|
|
5569
5634
|
}
|
|
5570
|
-
const
|
|
5635
|
+
const xc = async function(e) {
|
|
5571
5636
|
const t = this.getOffsetParent || Ro, n = this.getDimensions, r = await n(e.floating);
|
|
5572
5637
|
return {
|
|
5573
|
-
reference:
|
|
5638
|
+
reference: yc(e.reference, await t(e.floating), e.strategy),
|
|
5574
5639
|
floating: {
|
|
5575
5640
|
x: 0,
|
|
5576
5641
|
y: 0,
|
|
@@ -5579,22 +5644,22 @@ const fc = async function(e) {
|
|
|
5579
5644
|
}
|
|
5580
5645
|
};
|
|
5581
5646
|
};
|
|
5582
|
-
function
|
|
5647
|
+
function wc(e) {
|
|
5583
5648
|
return q(e).direction === "rtl";
|
|
5584
5649
|
}
|
|
5585
|
-
const
|
|
5586
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5650
|
+
const Cc = {
|
|
5651
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: dc,
|
|
5587
5652
|
getDocumentElement: te,
|
|
5588
|
-
getClippingRect:
|
|
5653
|
+
getClippingRect: vc,
|
|
5589
5654
|
getOffsetParent: Ro,
|
|
5590
|
-
getElementRects:
|
|
5591
|
-
getClientRects:
|
|
5592
|
-
getDimensions:
|
|
5655
|
+
getElementRects: xc,
|
|
5656
|
+
getClientRects: fc,
|
|
5657
|
+
getDimensions: bc,
|
|
5593
5658
|
getScale: Ae,
|
|
5594
5659
|
isElement: X,
|
|
5595
|
-
isRTL:
|
|
5660
|
+
isRTL: wc
|
|
5596
5661
|
};
|
|
5597
|
-
function
|
|
5662
|
+
function Ec(e, t) {
|
|
5598
5663
|
let n = null, r;
|
|
5599
5664
|
const o = te(e);
|
|
5600
5665
|
function s() {
|
|
@@ -5640,7 +5705,7 @@ function gc(e, t) {
|
|
|
5640
5705
|
}
|
|
5641
5706
|
return a(!0), s;
|
|
5642
5707
|
}
|
|
5643
|
-
function
|
|
5708
|
+
function Rc(e, t, n, r) {
|
|
5644
5709
|
r === void 0 && (r = {});
|
|
5645
5710
|
const {
|
|
5646
5711
|
ancestorScroll: o = !0,
|
|
@@ -5654,7 +5719,7 @@ function hc(e, t, n, r) {
|
|
|
5654
5719
|
passive: !0
|
|
5655
5720
|
}), s && y.addEventListener("resize", n);
|
|
5656
5721
|
});
|
|
5657
|
-
const f = u && i ?
|
|
5722
|
+
const f = u && i ? Ec(u, n) : null;
|
|
5658
5723
|
let h = -1, m = null;
|
|
5659
5724
|
a && (m = new ResizeObserver((y) => {
|
|
5660
5725
|
let [x] = y;
|
|
@@ -5676,15 +5741,15 @@ function hc(e, t, n, r) {
|
|
|
5676
5741
|
}), f == null || f(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(v);
|
|
5677
5742
|
};
|
|
5678
5743
|
}
|
|
5679
|
-
const
|
|
5744
|
+
const Pc = rc, Sc = oc, Ac = ec, Nc = ac, Oc = tc, Yn = Jl, Tc = sc, kc = (e, t, n) => {
|
|
5680
5745
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5681
|
-
platform:
|
|
5746
|
+
platform: Cc,
|
|
5682
5747
|
...n
|
|
5683
5748
|
}, s = {
|
|
5684
5749
|
...o.platform,
|
|
5685
5750
|
_c: r
|
|
5686
5751
|
};
|
|
5687
|
-
return
|
|
5752
|
+
return Ql(e, t, {
|
|
5688
5753
|
...o,
|
|
5689
5754
|
platform: s
|
|
5690
5755
|
});
|
|
@@ -5723,7 +5788,7 @@ function st(e, t) {
|
|
|
5723
5788
|
function Po(e) {
|
|
5724
5789
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5725
5790
|
}
|
|
5726
|
-
function
|
|
5791
|
+
function Xn(e, t) {
|
|
5727
5792
|
const n = Po(e);
|
|
5728
5793
|
return Math.round(t * n) / n;
|
|
5729
5794
|
}
|
|
@@ -5733,7 +5798,7 @@ function At(e) {
|
|
|
5733
5798
|
t.current = e;
|
|
5734
5799
|
}), t;
|
|
5735
5800
|
}
|
|
5736
|
-
function
|
|
5801
|
+
function Dc(e) {
|
|
5737
5802
|
e === void 0 && (e = {});
|
|
5738
5803
|
const {
|
|
5739
5804
|
placement: t = "bottom",
|
|
@@ -5760,7 +5825,7 @@ function Rc(e) {
|
|
|
5760
5825
|
O !== P.current && (P.current = O, p(O));
|
|
5761
5826
|
}, []), C = l.useCallback((O) => {
|
|
5762
5827
|
O !== R.current && (R.current = O, y(O));
|
|
5763
|
-
}, []), w = s || v, E = a || b, P = l.useRef(null), R = l.useRef(null), S = l.useRef(d),
|
|
5828
|
+
}, []), w = s || v, E = a || b, P = l.useRef(null), R = l.useRef(null), S = l.useRef(d), I = c != null, D = At(c), F = At(o), A = At(u), L = l.useCallback(() => {
|
|
5764
5829
|
if (!P.current || !R.current)
|
|
5765
5830
|
return;
|
|
5766
5831
|
const O = {
|
|
@@ -5768,7 +5833,7 @@ function Rc(e) {
|
|
|
5768
5833
|
strategy: n,
|
|
5769
5834
|
middleware: h
|
|
5770
5835
|
};
|
|
5771
|
-
F.current && (O.platform = F.current),
|
|
5836
|
+
F.current && (O.platform = F.current), kc(P.current, R.current, O).then((W) => {
|
|
5772
5837
|
const U = {
|
|
5773
5838
|
...W,
|
|
5774
5839
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5777,7 +5842,7 @@ function Rc(e) {
|
|
|
5777
5842
|
// setting it to `true` when `open === false` (must be specified).
|
|
5778
5843
|
isPositioned: A.current !== !1
|
|
5779
5844
|
};
|
|
5780
|
-
j.current && !st(S.current, U) && (S.current = U,
|
|
5845
|
+
j.current && !st(S.current, U) && (S.current = U, qn.flushSync(() => {
|
|
5781
5846
|
f(U);
|
|
5782
5847
|
}));
|
|
5783
5848
|
});
|
|
@@ -5797,8 +5862,8 @@ function Rc(e) {
|
|
|
5797
5862
|
return D.current(w, E, L);
|
|
5798
5863
|
L();
|
|
5799
5864
|
}
|
|
5800
|
-
}, [w, E, L, D,
|
|
5801
|
-
const
|
|
5865
|
+
}, [w, E, L, D, I]);
|
|
5866
|
+
const z = l.useMemo(() => ({
|
|
5802
5867
|
reference: P,
|
|
5803
5868
|
floating: R,
|
|
5804
5869
|
setReference: x,
|
|
@@ -5814,7 +5879,7 @@ function Rc(e) {
|
|
|
5814
5879
|
};
|
|
5815
5880
|
if (!T.floating)
|
|
5816
5881
|
return O;
|
|
5817
|
-
const W =
|
|
5882
|
+
const W = Xn(T.floating, d.x), U = Xn(T.floating, d.y);
|
|
5818
5883
|
return i ? {
|
|
5819
5884
|
...O,
|
|
5820
5885
|
transform: "translate(" + W + "px, " + U + "px)",
|
|
@@ -5830,12 +5895,12 @@ function Rc(e) {
|
|
|
5830
5895
|
return l.useMemo(() => ({
|
|
5831
5896
|
...d,
|
|
5832
5897
|
update: L,
|
|
5833
|
-
refs:
|
|
5898
|
+
refs: z,
|
|
5834
5899
|
elements: T,
|
|
5835
5900
|
floatingStyles: V
|
|
5836
|
-
}), [d, L,
|
|
5901
|
+
}), [d, L, z, T, V]);
|
|
5837
5902
|
}
|
|
5838
|
-
const
|
|
5903
|
+
const jc = (e) => {
|
|
5839
5904
|
function t(n) {
|
|
5840
5905
|
return {}.hasOwnProperty.call(n, "current");
|
|
5841
5906
|
}
|
|
@@ -5847,38 +5912,38 @@ const Pc = (e) => {
|
|
|
5847
5912
|
element: r,
|
|
5848
5913
|
padding: o
|
|
5849
5914
|
} = typeof e == "function" ? e(n) : e;
|
|
5850
|
-
return r && t(r) ? r.current != null ?
|
|
5915
|
+
return r && t(r) ? r.current != null ? Yn({
|
|
5851
5916
|
element: r.current,
|
|
5852
5917
|
padding: o
|
|
5853
|
-
}).fn(n) : {} : r ?
|
|
5918
|
+
}).fn(n) : {} : r ? Yn({
|
|
5854
5919
|
element: r,
|
|
5855
5920
|
padding: o
|
|
5856
5921
|
}).fn(n) : {};
|
|
5857
5922
|
}
|
|
5858
5923
|
};
|
|
5859
|
-
},
|
|
5860
|
-
...
|
|
5924
|
+
}, Ic = (e, t) => ({
|
|
5925
|
+
...Pc(e),
|
|
5861
5926
|
options: [e, t]
|
|
5862
|
-
}),
|
|
5863
|
-
...
|
|
5927
|
+
}), Mc = (e, t) => ({
|
|
5928
|
+
...Sc(e),
|
|
5864
5929
|
options: [e, t]
|
|
5865
|
-
}),
|
|
5866
|
-
...
|
|
5930
|
+
}), _c = (e, t) => ({
|
|
5931
|
+
...Tc(e),
|
|
5867
5932
|
options: [e, t]
|
|
5868
|
-
}),
|
|
5869
|
-
...
|
|
5933
|
+
}), Lc = (e, t) => ({
|
|
5934
|
+
...Ac(e),
|
|
5870
5935
|
options: [e, t]
|
|
5871
|
-
}),
|
|
5872
|
-
...
|
|
5936
|
+
}), Fc = (e, t) => ({
|
|
5937
|
+
...Nc(e),
|
|
5873
5938
|
options: [e, t]
|
|
5874
|
-
}),
|
|
5875
|
-
...
|
|
5939
|
+
}), $c = (e, t) => ({
|
|
5940
|
+
...Oc(e),
|
|
5876
5941
|
options: [e, t]
|
|
5877
|
-
}),
|
|
5878
|
-
...
|
|
5942
|
+
}), Wc = (e, t) => ({
|
|
5943
|
+
...jc(e),
|
|
5879
5944
|
options: [e, t]
|
|
5880
5945
|
});
|
|
5881
|
-
var
|
|
5946
|
+
var Vc = "Arrow", So = l.forwardRef((e, t) => {
|
|
5882
5947
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5883
5948
|
return /* @__PURE__ */ g.jsx(
|
|
5884
5949
|
$.svg,
|
|
@@ -5893,22 +5958,22 @@ var jc = "Arrow", So = l.forwardRef((e, t) => {
|
|
|
5893
5958
|
}
|
|
5894
5959
|
);
|
|
5895
5960
|
});
|
|
5896
|
-
So.displayName =
|
|
5897
|
-
var
|
|
5961
|
+
So.displayName = Vc;
|
|
5962
|
+
var Bc = So, cn = "Popper", [Ao, ft] = ae(cn), [zc, No] = Ao(cn), Oo = (e) => {
|
|
5898
5963
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
5899
|
-
return /* @__PURE__ */ g.jsx(
|
|
5964
|
+
return /* @__PURE__ */ g.jsx(zc, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5900
5965
|
};
|
|
5901
5966
|
Oo.displayName = cn;
|
|
5902
5967
|
var To = "PopperAnchor", ko = l.forwardRef(
|
|
5903
5968
|
(e, t) => {
|
|
5904
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s = No(To, n), a = l.useRef(null), i =
|
|
5969
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = No(To, n), a = l.useRef(null), i = B(t, a);
|
|
5905
5970
|
return l.useEffect(() => {
|
|
5906
5971
|
s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
|
5907
5972
|
}), r ? null : /* @__PURE__ */ g.jsx($.div, { ...o, ref: i });
|
|
5908
5973
|
}
|
|
5909
5974
|
);
|
|
5910
5975
|
ko.displayName = To;
|
|
5911
|
-
var un = "PopperContent", [
|
|
5976
|
+
var un = "PopperContent", [Hc, Gc] = Ao(un), Do = l.forwardRef(
|
|
5912
5977
|
(e, t) => {
|
|
5913
5978
|
var hn, vn, bn, yn, xn, wn;
|
|
5914
5979
|
const {
|
|
@@ -5926,45 +5991,45 @@ var un = "PopperContent", [_c, Lc] = Ao(un), Do = l.forwardRef(
|
|
|
5926
5991
|
updatePositionStrategy: m = "optimized",
|
|
5927
5992
|
onPlaced: v,
|
|
5928
5993
|
...p
|
|
5929
|
-
} = e, b = No(un, n), [y, x] = l.useState(null), C =
|
|
5994
|
+
} = e, b = No(un, n), [y, x] = l.useState(null), C = B(t, (_e) => x(_e)), [w, E] = l.useState(null), P = Ut(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, I = 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 = {
|
|
5930
5995
|
padding: D,
|
|
5931
|
-
boundary: F.filter(
|
|
5996
|
+
boundary: F.filter(Kc),
|
|
5932
5997
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5933
5998
|
altBoundary: A
|
|
5934
|
-
}, { refs: j, floatingStyles:
|
|
5999
|
+
}, { refs: j, floatingStyles: z, placement: T, isPositioned: V, middlewareData: O } = Dc({
|
|
5935
6000
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5936
6001
|
strategy: "fixed",
|
|
5937
|
-
placement:
|
|
5938
|
-
whileElementsMounted: (..._e) =>
|
|
6002
|
+
placement: I,
|
|
6003
|
+
whileElementsMounted: (..._e) => Rc(..._e, {
|
|
5939
6004
|
animationFrame: m === "always"
|
|
5940
6005
|
}),
|
|
5941
6006
|
elements: {
|
|
5942
6007
|
reference: b.anchor
|
|
5943
6008
|
},
|
|
5944
6009
|
middleware: [
|
|
5945
|
-
|
|
5946
|
-
c &&
|
|
6010
|
+
Ic({ mainAxis: o + S, alignmentAxis: a }),
|
|
6011
|
+
c && Mc({
|
|
5947
6012
|
mainAxis: !0,
|
|
5948
6013
|
crossAxis: !1,
|
|
5949
|
-
limiter: f === "partial" ?
|
|
6014
|
+
limiter: f === "partial" ? _c() : void 0,
|
|
5950
6015
|
...L
|
|
5951
6016
|
}),
|
|
5952
|
-
c &&
|
|
5953
|
-
|
|
6017
|
+
c && Lc({ ...L }),
|
|
6018
|
+
Fc({
|
|
5954
6019
|
...L,
|
|
5955
6020
|
apply: ({ elements: _e, rects: Cn, availableWidth: gs, availableHeight: hs }) => {
|
|
5956
|
-
const { width: vs, height: bs } = Cn.reference,
|
|
5957
|
-
|
|
6021
|
+
const { width: vs, height: bs } = Cn.reference, Ge = _e.floating.style;
|
|
6022
|
+
Ge.setProperty("--radix-popper-available-width", `${gs}px`), Ge.setProperty("--radix-popper-available-height", `${hs}px`), Ge.setProperty("--radix-popper-anchor-width", `${vs}px`), Ge.setProperty("--radix-popper-anchor-height", `${bs}px`);
|
|
5958
6023
|
}
|
|
5959
6024
|
}),
|
|
5960
|
-
w &&
|
|
5961
|
-
|
|
5962
|
-
h &&
|
|
6025
|
+
w && Wc({ element: w, padding: i }),
|
|
6026
|
+
Yc({ arrowWidth: R, arrowHeight: S }),
|
|
6027
|
+
h && $c({ strategy: "referenceHidden", ...L })
|
|
5963
6028
|
]
|
|
5964
|
-
}), [W, U] =
|
|
6029
|
+
}), [W, U] = Mo(T), G = re(v);
|
|
5965
6030
|
be(() => {
|
|
5966
|
-
V && (
|
|
5967
|
-
}, [V,
|
|
6031
|
+
V && (G == null || G());
|
|
6032
|
+
}, [V, G]);
|
|
5968
6033
|
const us = (hn = O.arrow) == null ? void 0 : hn.x, ds = (vn = O.arrow) == null ? void 0 : vn.y, fs = ((bn = O.arrow) == null ? void 0 : bn.centerOffset) !== 0, [ps, ms] = l.useState();
|
|
5969
6034
|
return be(() => {
|
|
5970
6035
|
y && ms(window.getComputedStyle(y).zIndex);
|
|
@@ -5974,8 +6039,8 @@ var un = "PopperContent", [_c, Lc] = Ao(un), Do = l.forwardRef(
|
|
|
5974
6039
|
ref: j.setFloating,
|
|
5975
6040
|
"data-radix-popper-content-wrapper": "",
|
|
5976
6041
|
style: {
|
|
5977
|
-
...
|
|
5978
|
-
transform: V ?
|
|
6042
|
+
...z,
|
|
6043
|
+
transform: V ? z.transform : "translate(0, -200%)",
|
|
5979
6044
|
// keep off the page when measuring
|
|
5980
6045
|
minWidth: "max-content",
|
|
5981
6046
|
zIndex: ps,
|
|
@@ -5993,7 +6058,7 @@ var un = "PopperContent", [_c, Lc] = Ao(un), Do = l.forwardRef(
|
|
|
5993
6058
|
},
|
|
5994
6059
|
dir: e.dir,
|
|
5995
6060
|
children: /* @__PURE__ */ g.jsx(
|
|
5996
|
-
|
|
6061
|
+
Hc,
|
|
5997
6062
|
{
|
|
5998
6063
|
scope: n,
|
|
5999
6064
|
placedSide: W,
|
|
@@ -6023,13 +6088,13 @@ var un = "PopperContent", [_c, Lc] = Ao(un), Do = l.forwardRef(
|
|
|
6023
6088
|
}
|
|
6024
6089
|
);
|
|
6025
6090
|
Do.displayName = un;
|
|
6026
|
-
var jo = "PopperArrow",
|
|
6091
|
+
var jo = "PopperArrow", Uc = {
|
|
6027
6092
|
top: "bottom",
|
|
6028
6093
|
right: "left",
|
|
6029
6094
|
bottom: "top",
|
|
6030
6095
|
left: "right"
|
|
6031
|
-
},
|
|
6032
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
6096
|
+
}, Io = l.forwardRef(function(t, n) {
|
|
6097
|
+
const { __scopePopper: r, ...o } = t, s = Gc(jo, r), a = Uc[s.placedSide];
|
|
6033
6098
|
return (
|
|
6034
6099
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6035
6100
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6058,7 +6123,7 @@ var jo = "PopperArrow", Fc = {
|
|
|
6058
6123
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
6059
6124
|
},
|
|
6060
6125
|
children: /* @__PURE__ */ g.jsx(
|
|
6061
|
-
|
|
6126
|
+
Bc,
|
|
6062
6127
|
{
|
|
6063
6128
|
...o,
|
|
6064
6129
|
ref: n,
|
|
@@ -6073,30 +6138,30 @@ var jo = "PopperArrow", Fc = {
|
|
|
6073
6138
|
)
|
|
6074
6139
|
);
|
|
6075
6140
|
});
|
|
6076
|
-
|
|
6077
|
-
function
|
|
6141
|
+
Io.displayName = jo;
|
|
6142
|
+
function Kc(e) {
|
|
6078
6143
|
return e !== null;
|
|
6079
6144
|
}
|
|
6080
|
-
var
|
|
6145
|
+
var Yc = (e) => ({
|
|
6081
6146
|
name: "transformOrigin",
|
|
6082
6147
|
options: e,
|
|
6083
6148
|
fn(t) {
|
|
6084
6149
|
var b, y, x;
|
|
6085
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] =
|
|
6150
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = Mo(n), f = { start: "0%", center: "50%", end: "100%" }[d], h = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + i / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
|
|
6086
6151
|
let v = "", p = "";
|
|
6087
6152
|
return u === "bottom" ? (v = a ? f : `${h}px`, p = `${-c}px`) : u === "top" ? (v = a ? f : `${h}px`, p = `${r.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, p = a ? f : `${m}px`) : u === "left" && (v = `${r.floating.width + c}px`, p = a ? f : `${m}px`), { data: { x: v, y: p } };
|
|
6088
6153
|
}
|
|
6089
6154
|
});
|
|
6090
|
-
function
|
|
6155
|
+
function Mo(e) {
|
|
6091
6156
|
const [t, n = "center"] = e.split("-");
|
|
6092
6157
|
return [t, n];
|
|
6093
6158
|
}
|
|
6094
|
-
var _o = Oo, dn = ko, Lo = Do, Fo =
|
|
6095
|
-
const
|
|
6159
|
+
var _o = Oo, dn = ko, Lo = Do, Fo = Io;
|
|
6160
|
+
const nd = wl, rd = Cl, Xc = El, od = go, $o = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6096
6161
|
uo,
|
|
6097
6162
|
{
|
|
6098
6163
|
ref: n,
|
|
6099
|
-
className:
|
|
6164
|
+
className: M(
|
|
6100
6165
|
"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",
|
|
6101
6166
|
e
|
|
6102
6167
|
),
|
|
@@ -6104,13 +6169,13 @@ const Yu = xl, Xu = wl, Vc = Cl, qu = go, $o = G(({ className: e, ...t }, n) =>
|
|
|
6104
6169
|
}
|
|
6105
6170
|
));
|
|
6106
6171
|
$o.displayName = uo.displayName;
|
|
6107
|
-
const
|
|
6172
|
+
const qc = H(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsxs(Xc, { children: [
|
|
6108
6173
|
/* @__PURE__ */ g.jsx($o, {}),
|
|
6109
6174
|
/* @__PURE__ */ g.jsxs(
|
|
6110
6175
|
fo,
|
|
6111
6176
|
{
|
|
6112
6177
|
ref: r,
|
|
6113
|
-
className:
|
|
6178
|
+
className: M(
|
|
6114
6179
|
"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",
|
|
6115
6180
|
e
|
|
6116
6181
|
),
|
|
@@ -6125,46 +6190,46 @@ const zc = G(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsxs(
|
|
|
6125
6190
|
}
|
|
6126
6191
|
)
|
|
6127
6192
|
] }));
|
|
6128
|
-
|
|
6129
|
-
const
|
|
6193
|
+
qc.displayName = fo.displayName;
|
|
6194
|
+
const Zc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
6130
6195
|
"div",
|
|
6131
6196
|
{
|
|
6132
|
-
className:
|
|
6197
|
+
className: M("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
|
|
6133
6198
|
...t
|
|
6134
6199
|
}
|
|
6135
6200
|
);
|
|
6136
|
-
|
|
6137
|
-
const
|
|
6201
|
+
Zc.displayName = "DialogHeader";
|
|
6202
|
+
const Qc = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
6138
6203
|
"div",
|
|
6139
6204
|
{
|
|
6140
|
-
className:
|
|
6205
|
+
className: M(
|
|
6141
6206
|
"al-flex al-flex-col-reverse sm:al-flex-row sm:al-justify-end sm:al-space-x-2",
|
|
6142
6207
|
e
|
|
6143
6208
|
),
|
|
6144
6209
|
...t
|
|
6145
6210
|
}
|
|
6146
6211
|
);
|
|
6147
|
-
|
|
6148
|
-
const
|
|
6212
|
+
Qc.displayName = "DialogFooter";
|
|
6213
|
+
const Jc = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6149
6214
|
po,
|
|
6150
6215
|
{
|
|
6151
6216
|
ref: n,
|
|
6152
|
-
className:
|
|
6217
|
+
className: M("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
|
|
6153
6218
|
...t
|
|
6154
6219
|
}
|
|
6155
6220
|
));
|
|
6156
|
-
|
|
6157
|
-
const
|
|
6221
|
+
Jc.displayName = po.displayName;
|
|
6222
|
+
const eu = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
6158
6223
|
mo,
|
|
6159
6224
|
{
|
|
6160
6225
|
ref: n,
|
|
6161
|
-
className:
|
|
6226
|
+
className: M("al-text-sm al-text-muted-foreground", e),
|
|
6162
6227
|
...t
|
|
6163
6228
|
}
|
|
6164
6229
|
));
|
|
6165
|
-
|
|
6230
|
+
eu.displayName = mo.displayName;
|
|
6166
6231
|
var Wo = l.forwardRef((e, t) => {
|
|
6167
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
6232
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(nu);
|
|
6168
6233
|
if (s) {
|
|
6169
6234
|
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);
|
|
6170
6235
|
return /* @__PURE__ */ g.jsx(Wt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
@@ -6175,9 +6240,9 @@ Wo.displayName = "Slot";
|
|
|
6175
6240
|
var Wt = l.forwardRef((e, t) => {
|
|
6176
6241
|
const { children: n, ...r } = e;
|
|
6177
6242
|
if (l.isValidElement(n)) {
|
|
6178
|
-
const o =
|
|
6243
|
+
const o = ou(n);
|
|
6179
6244
|
return l.cloneElement(n, {
|
|
6180
|
-
...
|
|
6245
|
+
...ru(r, n.props),
|
|
6181
6246
|
// @ts-ignore
|
|
6182
6247
|
ref: t ? De(t, o) : o
|
|
6183
6248
|
});
|
|
@@ -6185,11 +6250,11 @@ var Wt = l.forwardRef((e, t) => {
|
|
|
6185
6250
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
6186
6251
|
});
|
|
6187
6252
|
Wt.displayName = "SlotClone";
|
|
6188
|
-
var
|
|
6189
|
-
function
|
|
6190
|
-
return l.isValidElement(e) && e.type ===
|
|
6253
|
+
var tu = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6254
|
+
function nu(e) {
|
|
6255
|
+
return l.isValidElement(e) && e.type === tu;
|
|
6191
6256
|
}
|
|
6192
|
-
function
|
|
6257
|
+
function ru(e, t) {
|
|
6193
6258
|
const n = { ...t };
|
|
6194
6259
|
for (const r in t) {
|
|
6195
6260
|
const o = e[r], s = t[r];
|
|
@@ -6199,14 +6264,14 @@ function Xc(e, t) {
|
|
|
6199
6264
|
}
|
|
6200
6265
|
return { ...e, ...n };
|
|
6201
6266
|
}
|
|
6202
|
-
function
|
|
6267
|
+
function ou(e) {
|
|
6203
6268
|
var r, o;
|
|
6204
6269
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6205
6270
|
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);
|
|
6206
6271
|
}
|
|
6207
|
-
var fn = "Popover", [Vo,
|
|
6272
|
+
var fn = "Popover", [Vo, sd] = ae(fn, [
|
|
6208
6273
|
ft
|
|
6209
|
-
]),
|
|
6274
|
+
]), ze = ft(), [su, he] = Vo(fn), Bo = (e) => {
|
|
6210
6275
|
const {
|
|
6211
6276
|
__scopePopover: t,
|
|
6212
6277
|
children: n,
|
|
@@ -6214,13 +6279,13 @@ var fn = "Popover", [Vo, Zu] = ae(fn, [
|
|
|
6214
6279
|
defaultOpen: o,
|
|
6215
6280
|
onOpenChange: s,
|
|
6216
6281
|
modal: a = !1
|
|
6217
|
-
} = e, i =
|
|
6282
|
+
} = e, i = ze(t), c = l.useRef(null), [u, d] = l.useState(!1), [f = !1, h] = je({
|
|
6218
6283
|
prop: r,
|
|
6219
6284
|
defaultProp: o,
|
|
6220
6285
|
onChange: s
|
|
6221
6286
|
});
|
|
6222
6287
|
return /* @__PURE__ */ g.jsx(_o, { ...i, children: /* @__PURE__ */ g.jsx(
|
|
6223
|
-
|
|
6288
|
+
su,
|
|
6224
6289
|
{
|
|
6225
6290
|
scope: t,
|
|
6226
6291
|
contentId: Pe(),
|
|
@@ -6236,17 +6301,17 @@ var fn = "Popover", [Vo, Zu] = ae(fn, [
|
|
|
6236
6301
|
}
|
|
6237
6302
|
) });
|
|
6238
6303
|
};
|
|
6239
|
-
|
|
6240
|
-
var
|
|
6304
|
+
Bo.displayName = fn;
|
|
6305
|
+
var zo = "PopoverAnchor", au = l.forwardRef(
|
|
6241
6306
|
(e, t) => {
|
|
6242
|
-
const { __scopePopover: n, ...r } = e, o = he(
|
|
6307
|
+
const { __scopePopover: n, ...r } = e, o = he(zo, n), s = ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
|
|
6243
6308
|
return l.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ g.jsx(dn, { ...s, ...r, ref: t });
|
|
6244
6309
|
}
|
|
6245
6310
|
);
|
|
6246
|
-
|
|
6247
|
-
var
|
|
6311
|
+
au.displayName = zo;
|
|
6312
|
+
var Ho = "PopoverTrigger", Go = l.forwardRef(
|
|
6248
6313
|
(e, t) => {
|
|
6249
|
-
const { __scopePopover: n, ...r } = e, o = he(
|
|
6314
|
+
const { __scopePopover: n, ...r } = e, o = he(Ho, n), s = ze(n), a = B(t, o.triggerRef), i = /* @__PURE__ */ g.jsx(
|
|
6250
6315
|
$.button,
|
|
6251
6316
|
{
|
|
6252
6317
|
type: "button",
|
|
@@ -6262,24 +6327,24 @@ var Go = "PopoverTrigger", Ho = l.forwardRef(
|
|
|
6262
6327
|
return o.hasCustomAnchor ? i : /* @__PURE__ */ g.jsx(dn, { asChild: !0, ...s, children: i });
|
|
6263
6328
|
}
|
|
6264
6329
|
);
|
|
6265
|
-
|
|
6266
|
-
var pn = "PopoverPortal", [
|
|
6330
|
+
Go.displayName = Ho;
|
|
6331
|
+
var pn = "PopoverPortal", [iu, lu] = Vo(pn, {
|
|
6267
6332
|
forceMount: void 0
|
|
6268
6333
|
}), Uo = (e) => {
|
|
6269
6334
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = he(pn, t);
|
|
6270
|
-
return /* @__PURE__ */ g.jsx(
|
|
6335
|
+
return /* @__PURE__ */ g.jsx(iu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
6271
6336
|
};
|
|
6272
6337
|
Uo.displayName = pn;
|
|
6273
6338
|
var Oe = "PopoverContent", Ko = l.forwardRef(
|
|
6274
6339
|
(e, t) => {
|
|
6275
|
-
const n =
|
|
6276
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(
|
|
6340
|
+
const n = lu(Oe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = he(Oe, e.__scopePopover);
|
|
6341
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(cu, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(uu, { ...o, ref: t }) });
|
|
6277
6342
|
}
|
|
6278
6343
|
);
|
|
6279
6344
|
Ko.displayName = Oe;
|
|
6280
|
-
var
|
|
6345
|
+
var cu = l.forwardRef(
|
|
6281
6346
|
(e, t) => {
|
|
6282
|
-
const n = he(Oe, e.__scopePopover), r = l.useRef(null), o =
|
|
6347
|
+
const n = he(Oe, e.__scopePopover), r = l.useRef(null), o = B(t, r), s = l.useRef(!1);
|
|
6283
6348
|
return l.useEffect(() => {
|
|
6284
6349
|
const a = r.current;
|
|
6285
6350
|
if (a) return Ur(a);
|
|
@@ -6310,7 +6375,7 @@ var tu = l.forwardRef(
|
|
|
6310
6375
|
}
|
|
6311
6376
|
) });
|
|
6312
6377
|
}
|
|
6313
|
-
),
|
|
6378
|
+
), uu = l.forwardRef(
|
|
6314
6379
|
(e, t) => {
|
|
6315
6380
|
const n = he(Oe, e.__scopePopover), r = l.useRef(!1), o = l.useRef(!1);
|
|
6316
6381
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -6346,7 +6411,7 @@ var tu = l.forwardRef(
|
|
|
6346
6411
|
onFocusOutside: u,
|
|
6347
6412
|
onInteractOutside: d,
|
|
6348
6413
|
...f
|
|
6349
|
-
} = e, h = he(Oe, n), m =
|
|
6414
|
+
} = e, h = he(Oe, n), m = ze(n);
|
|
6350
6415
|
return Lr(), /* @__PURE__ */ g.jsx(
|
|
6351
6416
|
qt,
|
|
6352
6417
|
{
|
|
@@ -6389,7 +6454,7 @@ var tu = l.forwardRef(
|
|
|
6389
6454
|
}
|
|
6390
6455
|
);
|
|
6391
6456
|
}
|
|
6392
|
-
), Xo = "PopoverClose",
|
|
6457
|
+
), Xo = "PopoverClose", du = l.forwardRef(
|
|
6393
6458
|
(e, t) => {
|
|
6394
6459
|
const { __scopePopover: n, ...r } = e, o = he(Xo, n);
|
|
6395
6460
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -6403,33 +6468,33 @@ var tu = l.forwardRef(
|
|
|
6403
6468
|
);
|
|
6404
6469
|
}
|
|
6405
6470
|
);
|
|
6406
|
-
|
|
6407
|
-
var
|
|
6471
|
+
du.displayName = Xo;
|
|
6472
|
+
var fu = "PopoverArrow", pu = l.forwardRef(
|
|
6408
6473
|
(e, t) => {
|
|
6409
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
6474
|
+
const { __scopePopover: n, ...r } = e, o = ze(n);
|
|
6410
6475
|
return /* @__PURE__ */ g.jsx(Fo, { ...o, ...r, ref: t });
|
|
6411
6476
|
}
|
|
6412
6477
|
);
|
|
6413
|
-
|
|
6478
|
+
pu.displayName = fu;
|
|
6414
6479
|
function qo(e) {
|
|
6415
6480
|
return e ? "open" : "closed";
|
|
6416
6481
|
}
|
|
6417
|
-
var
|
|
6418
|
-
const
|
|
6482
|
+
var mu = Bo, gu = Go, hu = Uo, Zo = Ko;
|
|
6483
|
+
const ad = mu, id = gu, vu = H(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ g.jsx(hu, { children: /* @__PURE__ */ g.jsx(
|
|
6419
6484
|
Zo,
|
|
6420
6485
|
{
|
|
6421
6486
|
ref: o,
|
|
6422
6487
|
align: t,
|
|
6423
6488
|
sideOffset: n,
|
|
6424
|
-
className:
|
|
6489
|
+
className: M(
|
|
6425
6490
|
"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",
|
|
6426
6491
|
e
|
|
6427
6492
|
),
|
|
6428
6493
|
...r
|
|
6429
6494
|
}
|
|
6430
6495
|
) }));
|
|
6431
|
-
|
|
6432
|
-
const ue =
|
|
6496
|
+
vu.displayName = Zo.displayName;
|
|
6497
|
+
const ue = Gt("", {
|
|
6433
6498
|
variants: {
|
|
6434
6499
|
variant: {
|
|
6435
6500
|
h1: "al-text-h1",
|
|
@@ -6457,7 +6522,7 @@ const ue = Ht("", {
|
|
|
6457
6522
|
xl: "al-text-xl"
|
|
6458
6523
|
}
|
|
6459
6524
|
}
|
|
6460
|
-
}),
|
|
6525
|
+
}), ld = () => ({
|
|
6461
6526
|
h1: ue({ variant: "h1" }),
|
|
6462
6527
|
h2: ue({ variant: "h2" }),
|
|
6463
6528
|
h3: ue({ variant: "h3" }),
|
|
@@ -6471,7 +6536,7 @@ const ue = Ht("", {
|
|
|
6471
6536
|
orderedList: "al-list-decimal al-ml-4 al-mb-4",
|
|
6472
6537
|
blockquote: "al-mt-6 al-border-l-2 al-pl-6 al-italic",
|
|
6473
6538
|
code: "al-rounded al-p-1 al-font-mono al-text-sm al-font-semibold"
|
|
6474
|
-
}),
|
|
6539
|
+
}), bu = {
|
|
6475
6540
|
h1: "h1",
|
|
6476
6541
|
h2: "h2",
|
|
6477
6542
|
h3: "h3",
|
|
@@ -6479,7 +6544,7 @@ const ue = Ht("", {
|
|
|
6479
6544
|
subheading: "h5",
|
|
6480
6545
|
body: "p",
|
|
6481
6546
|
caption: "span"
|
|
6482
|
-
},
|
|
6547
|
+
}, cd = ({
|
|
6483
6548
|
variant: e = "body",
|
|
6484
6549
|
children: t,
|
|
6485
6550
|
className: n,
|
|
@@ -6487,24 +6552,24 @@ const ue = Ht("", {
|
|
|
6487
6552
|
size: o,
|
|
6488
6553
|
role: s
|
|
6489
6554
|
}) => {
|
|
6490
|
-
const a =
|
|
6491
|
-
return /* @__PURE__ */ g.jsx(a, { className:
|
|
6555
|
+
const a = bu[e];
|
|
6556
|
+
return /* @__PURE__ */ g.jsx(a, { className: M(ue({ variant: e, weight: r, size: o }), n), role: s, children: t });
|
|
6492
6557
|
};
|
|
6493
|
-
var
|
|
6494
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
6558
|
+
var yu = l.forwardRef((e, t) => {
|
|
6559
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(xu);
|
|
6495
6560
|
if (s) {
|
|
6496
6561
|
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);
|
|
6497
6562
|
return /* @__PURE__ */ g.jsx(Vt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
6498
6563
|
}
|
|
6499
6564
|
return /* @__PURE__ */ g.jsx(Vt, { ...r, ref: t, children: n });
|
|
6500
6565
|
});
|
|
6501
|
-
|
|
6566
|
+
yu.displayName = "Slot";
|
|
6502
6567
|
var Vt = l.forwardRef((e, t) => {
|
|
6503
6568
|
const { children: n, ...r } = e;
|
|
6504
6569
|
if (l.isValidElement(n)) {
|
|
6505
|
-
const o =
|
|
6570
|
+
const o = Cu(n);
|
|
6506
6571
|
return l.cloneElement(n, {
|
|
6507
|
-
...
|
|
6572
|
+
...wu(r, n.props),
|
|
6508
6573
|
// @ts-ignore
|
|
6509
6574
|
ref: t ? De(t, o) : o
|
|
6510
6575
|
});
|
|
@@ -6513,10 +6578,10 @@ var Vt = l.forwardRef((e, t) => {
|
|
|
6513
6578
|
});
|
|
6514
6579
|
Vt.displayName = "SlotClone";
|
|
6515
6580
|
var Qo = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6516
|
-
function
|
|
6581
|
+
function xu(e) {
|
|
6517
6582
|
return l.isValidElement(e) && e.type === Qo;
|
|
6518
6583
|
}
|
|
6519
|
-
function
|
|
6584
|
+
function wu(e, t) {
|
|
6520
6585
|
const n = { ...t };
|
|
6521
6586
|
for (const r in t) {
|
|
6522
6587
|
const o = e[r], s = t[r];
|
|
@@ -6526,12 +6591,12 @@ function pu(e, t) {
|
|
|
6526
6591
|
}
|
|
6527
6592
|
return { ...e, ...n };
|
|
6528
6593
|
}
|
|
6529
|
-
function
|
|
6594
|
+
function Cu(e) {
|
|
6530
6595
|
var r, o;
|
|
6531
6596
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6532
6597
|
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);
|
|
6533
6598
|
}
|
|
6534
|
-
var
|
|
6599
|
+
var Eu = "VisuallyHidden", Jo = l.forwardRef(
|
|
6535
6600
|
(e, t) => /* @__PURE__ */ g.jsx(
|
|
6536
6601
|
$.span,
|
|
6537
6602
|
{
|
|
@@ -6554,13 +6619,13 @@ var gu = "VisuallyHidden", Jo = l.forwardRef(
|
|
|
6554
6619
|
}
|
|
6555
6620
|
)
|
|
6556
6621
|
);
|
|
6557
|
-
Jo.displayName =
|
|
6558
|
-
var
|
|
6622
|
+
Jo.displayName = Eu;
|
|
6623
|
+
var Ru = Jo, [pt, ud] = ae("Tooltip", [
|
|
6559
6624
|
ft
|
|
6560
|
-
]), mt = ft(), es = "TooltipProvider",
|
|
6625
|
+
]), mt = ft(), es = "TooltipProvider", Pu = 700, Bt = "tooltip.open", [Su, mn] = pt(es), ts = (e) => {
|
|
6561
6626
|
const {
|
|
6562
6627
|
__scopeTooltip: t,
|
|
6563
|
-
delayDuration: n =
|
|
6628
|
+
delayDuration: n = Pu,
|
|
6564
6629
|
skipDelayDuration: r = 300,
|
|
6565
6630
|
disableHoverableContent: o = !1,
|
|
6566
6631
|
children: s
|
|
@@ -6569,7 +6634,7 @@ var hu = Jo, [pt, nd] = ae("Tooltip", [
|
|
|
6569
6634
|
const d = u.current;
|
|
6570
6635
|
return () => window.clearTimeout(d);
|
|
6571
6636
|
}, []), /* @__PURE__ */ g.jsx(
|
|
6572
|
-
|
|
6637
|
+
Su,
|
|
6573
6638
|
{
|
|
6574
6639
|
scope: t,
|
|
6575
6640
|
isOpenDelayed: a,
|
|
@@ -6593,7 +6658,7 @@ var hu = Jo, [pt, nd] = ae("Tooltip", [
|
|
|
6593
6658
|
);
|
|
6594
6659
|
};
|
|
6595
6660
|
ts.displayName = es;
|
|
6596
|
-
var gt = "Tooltip", [
|
|
6661
|
+
var gt = "Tooltip", [Au, He] = pt(gt), ns = (e) => {
|
|
6597
6662
|
const {
|
|
6598
6663
|
__scopeTooltip: t,
|
|
6599
6664
|
children: n,
|
|
@@ -6606,7 +6671,7 @@ var gt = "Tooltip", [yu, Ge] = pt(gt), ns = (e) => {
|
|
|
6606
6671
|
prop: r,
|
|
6607
6672
|
defaultProp: o,
|
|
6608
6673
|
onChange: (R) => {
|
|
6609
|
-
R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
6674
|
+
R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Bt))) : c.onClose(), s == null || s(R);
|
|
6610
6675
|
}
|
|
6611
6676
|
}), C = l.useMemo(() => y ? b.current ? "delayed-open" : "instant-open" : "closed", [y]), w = l.useCallback(() => {
|
|
6612
6677
|
window.clearTimeout(m.current), m.current = 0, b.current = !1, x(!0);
|
|
@@ -6620,7 +6685,7 @@ var gt = "Tooltip", [yu, Ge] = pt(gt), ns = (e) => {
|
|
|
6620
6685
|
return l.useEffect(() => () => {
|
|
6621
6686
|
m.current && (window.clearTimeout(m.current), m.current = 0);
|
|
6622
6687
|
}, []), /* @__PURE__ */ g.jsx(_o, { ...u, children: /* @__PURE__ */ g.jsx(
|
|
6623
|
-
|
|
6688
|
+
Au,
|
|
6624
6689
|
{
|
|
6625
6690
|
scope: t,
|
|
6626
6691
|
contentId: h,
|
|
@@ -6642,9 +6707,9 @@ var gt = "Tooltip", [yu, Ge] = pt(gt), ns = (e) => {
|
|
|
6642
6707
|
) });
|
|
6643
6708
|
};
|
|
6644
6709
|
ns.displayName = gt;
|
|
6645
|
-
var
|
|
6710
|
+
var zt = "TooltipTrigger", rs = l.forwardRef(
|
|
6646
6711
|
(e, t) => {
|
|
6647
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6712
|
+
const { __scopeTooltip: n, ...r } = e, o = He(zt, n), s = mn(zt, n), a = mt(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, []);
|
|
6648
6713
|
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ g.jsx(dn, { asChild: !0, ...a, children: /* @__PURE__ */ g.jsx(
|
|
6649
6714
|
$.button,
|
|
6650
6715
|
{
|
|
@@ -6670,25 +6735,25 @@ var Bt = "TooltipTrigger", rs = l.forwardRef(
|
|
|
6670
6735
|
) });
|
|
6671
6736
|
}
|
|
6672
6737
|
);
|
|
6673
|
-
rs.displayName =
|
|
6674
|
-
var gn = "TooltipPortal", [
|
|
6738
|
+
rs.displayName = zt;
|
|
6739
|
+
var gn = "TooltipPortal", [Nu, Ou] = pt(gn, {
|
|
6675
6740
|
forceMount: void 0
|
|
6676
6741
|
}), os = (e) => {
|
|
6677
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s =
|
|
6678
|
-
return /* @__PURE__ */ g.jsx(
|
|
6742
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = He(gn, t);
|
|
6743
|
+
return /* @__PURE__ */ g.jsx(Nu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ee, { present: n || s.open, children: /* @__PURE__ */ g.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
6679
6744
|
};
|
|
6680
6745
|
os.displayName = gn;
|
|
6681
6746
|
var Te = "TooltipContent", ss = l.forwardRef(
|
|
6682
6747
|
(e, t) => {
|
|
6683
|
-
const n =
|
|
6684
|
-
return /* @__PURE__ */ g.jsx(ee, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(as, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(
|
|
6748
|
+
const n = Ou(Te, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = He(Te, e.__scopeTooltip);
|
|
6749
|
+
return /* @__PURE__ */ g.jsx(ee, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(as, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(Tu, { side: o, ...s, ref: t }) });
|
|
6685
6750
|
}
|
|
6686
|
-
),
|
|
6687
|
-
const n =
|
|
6751
|
+
), Tu = l.forwardRef((e, t) => {
|
|
6752
|
+
const n = He(Te, e.__scopeTooltip), r = mn(Te, 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(() => {
|
|
6688
6753
|
i(null), f(!1);
|
|
6689
6754
|
}, [f]), m = l.useCallback(
|
|
6690
6755
|
(v, p) => {
|
|
6691
|
-
const b = v.currentTarget, y = { x: v.clientX, y: v.clientY }, x =
|
|
6756
|
+
const b = v.currentTarget, y = { x: v.clientX, y: v.clientY }, x = Iu(y, b.getBoundingClientRect()), C = Mu(y, x), w = _u(p.getBoundingClientRect()), E = Fu([...C, ...w]);
|
|
6692
6757
|
i(E), f(!0);
|
|
6693
6758
|
},
|
|
6694
6759
|
[f]
|
|
@@ -6703,13 +6768,13 @@ var Te = "TooltipContent", ss = l.forwardRef(
|
|
|
6703
6768
|
}, [c, d, m, h]), l.useEffect(() => {
|
|
6704
6769
|
if (a) {
|
|
6705
6770
|
const v = (p) => {
|
|
6706
|
-
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 = !
|
|
6771
|
+
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 = !Lu(y, a);
|
|
6707
6772
|
x ? h() : C && (h(), u());
|
|
6708
6773
|
};
|
|
6709
6774
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
6710
6775
|
}
|
|
6711
6776
|
}, [c, d, a, u, h]), /* @__PURE__ */ g.jsx(as, { ...e, ref: s });
|
|
6712
|
-
}), [
|
|
6777
|
+
}), [ku, Du] = pt(gt, { isInside: !1 }), as = l.forwardRef(
|
|
6713
6778
|
(e, t) => {
|
|
6714
6779
|
const {
|
|
6715
6780
|
__scopeTooltip: n,
|
|
@@ -6718,8 +6783,8 @@ var Te = "TooltipContent", ss = l.forwardRef(
|
|
|
6718
6783
|
onEscapeKeyDown: s,
|
|
6719
6784
|
onPointerDownOutside: a,
|
|
6720
6785
|
...i
|
|
6721
|
-
} = e, c =
|
|
6722
|
-
return l.useEffect(() => (document.addEventListener(
|
|
6786
|
+
} = e, c = He(Te, n), u = mt(n), { onClose: d } = c;
|
|
6787
|
+
return l.useEffect(() => (document.addEventListener(Bt, d), () => document.removeEventListener(Bt, d)), [d]), l.useEffect(() => {
|
|
6723
6788
|
if (c.trigger) {
|
|
6724
6789
|
const f = (h) => {
|
|
6725
6790
|
const m = h.target;
|
|
@@ -6753,7 +6818,7 @@ var Te = "TooltipContent", ss = l.forwardRef(
|
|
|
6753
6818
|
},
|
|
6754
6819
|
children: [
|
|
6755
6820
|
/* @__PURE__ */ g.jsx(Qo, { children: r }),
|
|
6756
|
-
/* @__PURE__ */ g.jsx(
|
|
6821
|
+
/* @__PURE__ */ g.jsx(ku, { scope: n, isInside: !0, children: /* @__PURE__ */ g.jsx(Ru, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
6757
6822
|
]
|
|
6758
6823
|
}
|
|
6759
6824
|
)
|
|
@@ -6762,17 +6827,17 @@ var Te = "TooltipContent", ss = l.forwardRef(
|
|
|
6762
6827
|
}
|
|
6763
6828
|
);
|
|
6764
6829
|
ss.displayName = Te;
|
|
6765
|
-
var is = "TooltipArrow",
|
|
6830
|
+
var is = "TooltipArrow", ju = l.forwardRef(
|
|
6766
6831
|
(e, t) => {
|
|
6767
6832
|
const { __scopeTooltip: n, ...r } = e, o = mt(n);
|
|
6768
|
-
return
|
|
6833
|
+
return Du(
|
|
6769
6834
|
is,
|
|
6770
6835
|
n
|
|
6771
6836
|
).isInside ? null : /* @__PURE__ */ g.jsx(Fo, { ...o, ...r, ref: t });
|
|
6772
6837
|
}
|
|
6773
6838
|
);
|
|
6774
|
-
|
|
6775
|
-
function
|
|
6839
|
+
ju.displayName = is;
|
|
6840
|
+
function Iu(e, t) {
|
|
6776
6841
|
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);
|
|
6777
6842
|
switch (Math.min(n, r, o, s)) {
|
|
6778
6843
|
case s:
|
|
@@ -6787,7 +6852,7 @@ function Su(e, t) {
|
|
|
6787
6852
|
throw new Error("unreachable");
|
|
6788
6853
|
}
|
|
6789
6854
|
}
|
|
6790
|
-
function
|
|
6855
|
+
function Mu(e, t, n = 5) {
|
|
6791
6856
|
const r = [];
|
|
6792
6857
|
switch (t) {
|
|
6793
6858
|
case "top":
|
|
@@ -6817,7 +6882,7 @@ function Au(e, t, n = 5) {
|
|
|
6817
6882
|
}
|
|
6818
6883
|
return r;
|
|
6819
6884
|
}
|
|
6820
|
-
function
|
|
6885
|
+
function _u(e) {
|
|
6821
6886
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6822
6887
|
return [
|
|
6823
6888
|
{ x: o, y: t },
|
|
@@ -6826,7 +6891,7 @@ function Nu(e) {
|
|
|
6826
6891
|
{ x: o, y: r }
|
|
6827
6892
|
];
|
|
6828
6893
|
}
|
|
6829
|
-
function
|
|
6894
|
+
function Lu(e, t) {
|
|
6830
6895
|
const { x: n, y: r } = e;
|
|
6831
6896
|
let o = !1;
|
|
6832
6897
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
@@ -6835,11 +6900,11 @@ function Ou(e, t) {
|
|
|
6835
6900
|
}
|
|
6836
6901
|
return o;
|
|
6837
6902
|
}
|
|
6838
|
-
function
|
|
6903
|
+
function Fu(e) {
|
|
6839
6904
|
const t = e.slice();
|
|
6840
|
-
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),
|
|
6905
|
+
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), $u(t);
|
|
6841
6906
|
}
|
|
6842
|
-
function
|
|
6907
|
+
function $u(e) {
|
|
6843
6908
|
if (e.length <= 1) return e.slice();
|
|
6844
6909
|
const t = [];
|
|
6845
6910
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6864,13 +6929,13 @@ function ku(e) {
|
|
|
6864
6929
|
}
|
|
6865
6930
|
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);
|
|
6866
6931
|
}
|
|
6867
|
-
var
|
|
6868
|
-
const
|
|
6932
|
+
var Wu = ts, Vu = ns, Bu = rs, zu = os, ls = ss;
|
|
6933
|
+
const dd = Wu, Hu = Vu, Gu = Bu, cs = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ g.jsx(zu, { children: /* @__PURE__ */ g.jsx(
|
|
6869
6934
|
ls,
|
|
6870
6935
|
{
|
|
6871
6936
|
ref: r,
|
|
6872
6937
|
sideOffset: t,
|
|
6873
|
-
className:
|
|
6938
|
+
className: M(
|
|
6874
6939
|
"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",
|
|
6875
6940
|
e
|
|
6876
6941
|
),
|
|
@@ -6878,14 +6943,14 @@ const rd = Du, _u = ju, Lu = Mu, cs = l.forwardRef(({ className: e, sideOffset:
|
|
|
6878
6943
|
}
|
|
6879
6944
|
) }));
|
|
6880
6945
|
cs.displayName = ls.displayName;
|
|
6881
|
-
const
|
|
6946
|
+
const fd = ({
|
|
6882
6947
|
children: e,
|
|
6883
6948
|
title: t,
|
|
6884
6949
|
...n
|
|
6885
|
-
}) => t ? /* @__PURE__ */ g.jsxs(
|
|
6886
|
-
/* @__PURE__ */ g.jsx(
|
|
6950
|
+
}) => t ? /* @__PURE__ */ g.jsxs(Hu, { ...n, children: [
|
|
6951
|
+
/* @__PURE__ */ g.jsx(Gu, { asChild: !0, children: /* @__PURE__ */ g.jsx("span", { className: "al-max-w-full", children: e }) }),
|
|
6887
6952
|
/* @__PURE__ */ g.jsx(cs, { children: t })
|
|
6888
|
-
] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: e }),
|
|
6953
|
+
] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: e }), pd = H(function({
|
|
6889
6954
|
children: t,
|
|
6890
6955
|
wrap: n = !1,
|
|
6891
6956
|
justify: r,
|
|
@@ -6924,7 +6989,7 @@ const od = ({
|
|
|
6924
6989
|
// 64px
|
|
6925
6990
|
"8xl": "al-gap-20"
|
|
6926
6991
|
// 80px
|
|
6927
|
-
})[m], h =
|
|
6992
|
+
})[m], h = M(
|
|
6928
6993
|
"al-flex",
|
|
6929
6994
|
// Direction
|
|
6930
6995
|
c === "column" ? "al-flex-col" : "al-flex-row",
|
|
@@ -6956,86 +7021,87 @@ const od = ({
|
|
|
6956
7021
|
return /* @__PURE__ */ g.jsx("div", { ...u, className: h, ref: d, children: t });
|
|
6957
7022
|
});
|
|
6958
7023
|
export {
|
|
6959
|
-
|
|
7024
|
+
cd as $,
|
|
6960
7025
|
dn as A,
|
|
6961
|
-
|
|
7026
|
+
fa as B,
|
|
6962
7027
|
go as C,
|
|
6963
7028
|
mo as D,
|
|
6964
|
-
|
|
7029
|
+
Zt as E,
|
|
6965
7030
|
qt as F,
|
|
6966
|
-
|
|
6967
|
-
|
|
7031
|
+
Ra as G,
|
|
7032
|
+
fr as H,
|
|
6968
7033
|
ii as I,
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
7034
|
+
_o as J,
|
|
7035
|
+
it as K,
|
|
7036
|
+
Pe as L,
|
|
7037
|
+
nd as M,
|
|
7038
|
+
qc as N,
|
|
6974
7039
|
uo as O,
|
|
6975
7040
|
$ as P,
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
7041
|
+
be as Q,
|
|
7042
|
+
wl as R,
|
|
7043
|
+
Ju as S,
|
|
7044
|
+
li as T,
|
|
7045
|
+
da as U,
|
|
6981
7046
|
Jo as V,
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
7047
|
+
ed as W,
|
|
7048
|
+
fd as X,
|
|
7049
|
+
ad as Y,
|
|
7050
|
+
id as Z,
|
|
7051
|
+
vu as _,
|
|
6987
7052
|
ae as a,
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7053
|
+
oa as a0,
|
|
7054
|
+
Ll as a1,
|
|
7055
|
+
sa as a2,
|
|
7056
|
+
Fl as a3,
|
|
7057
|
+
Bl as a4,
|
|
7058
|
+
Wl as a5,
|
|
7059
|
+
pd as a6,
|
|
7060
|
+
$l as a7,
|
|
7061
|
+
dr as a8,
|
|
7062
|
+
Xc as a9,
|
|
7063
|
+
$o as aa,
|
|
7064
|
+
Qu as ab,
|
|
7065
|
+
Zu as ac,
|
|
7066
|
+
dd as ad,
|
|
7067
|
+
Hu as ae,
|
|
7068
|
+
Gu as af,
|
|
7069
|
+
cs as ag,
|
|
7070
|
+
ai as ah,
|
|
7071
|
+
Dr as ai,
|
|
7072
|
+
zl as aj,
|
|
7073
|
+
Vl as ak,
|
|
7074
|
+
du as al,
|
|
7075
|
+
od as am,
|
|
7076
|
+
rd as an,
|
|
7077
|
+
Zc as ao,
|
|
7078
|
+
Qc as ap,
|
|
7079
|
+
Jc as aq,
|
|
7080
|
+
eu as ar,
|
|
7081
|
+
ld as as,
|
|
7016
7082
|
je as b,
|
|
7017
|
-
|
|
7083
|
+
M as c,
|
|
7018
7084
|
k as d,
|
|
7019
7085
|
or as e,
|
|
7020
7086
|
Ut as f,
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7087
|
+
Gt as g,
|
|
7088
|
+
td as h,
|
|
7089
|
+
Cl as i,
|
|
7090
|
+
El as j,
|
|
7091
|
+
fo as k,
|
|
7092
|
+
po as l,
|
|
7093
|
+
De as m,
|
|
7094
|
+
Ia as n,
|
|
7095
|
+
ft as o,
|
|
7096
|
+
mr as p,
|
|
7097
|
+
ee as q,
|
|
7098
|
+
Ur as r,
|
|
7099
|
+
Lr as s,
|
|
7100
|
+
Ve as t,
|
|
7101
|
+
B as u,
|
|
7102
|
+
Ya as v,
|
|
7103
|
+
Lo as w,
|
|
7104
|
+
Xa as x,
|
|
7105
|
+
re as y,
|
|
7106
|
+
Fo as z
|
|
7041
7107
|
};
|