@khaos-systems/helm 0.1.12 → 0.1.14
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/README.md +2 -0
- package/dist/components/matter/MtButton.d.ts +1 -0
- package/dist/lib.d.ts +1 -1
- package/dist/matter.cjs +8 -8
- package/dist/matter.js +687 -683
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/matter.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import q, { forwardRef as er, createElement as kn, useState as se, useLayoutEffect as vo, useRef as
|
|
2
|
+
import q, { forwardRef as er, createElement as kn, useState as se, useLayoutEffect as vo, useRef as je, useCallback as Qe, useMemo as _e, useEffect as tr, createContext as go, useContext as xo, Children as wo, isValidElement as yo, cloneElement as Ha } from "react";
|
|
3
3
|
import * as qt from "react-dom";
|
|
4
|
-
import
|
|
4
|
+
import Ua from "react-dom";
|
|
5
5
|
var Mt = { exports: {} }, ut = {};
|
|
6
6
|
var Dr;
|
|
7
|
-
function
|
|
7
|
+
function Ka() {
|
|
8
8
|
if (Dr) return ut;
|
|
9
9
|
Dr = 1;
|
|
10
10
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -27,7 +27,7 @@ function Ua() {
|
|
|
27
27
|
}
|
|
28
28
|
var dt = {};
|
|
29
29
|
var kr;
|
|
30
|
-
function
|
|
30
|
+
function Ga() {
|
|
31
31
|
return kr || (kr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
32
|
function e(E) {
|
|
33
33
|
if (E == null) return null;
|
|
@@ -258,50 +258,51 @@ React keys must be passed directly to JSX without using spread:
|
|
|
258
258
|
})()), dt;
|
|
259
259
|
}
|
|
260
260
|
var Lr;
|
|
261
|
-
function
|
|
262
|
-
return Lr || (Lr = 1, process.env.NODE_ENV === "production" ? Mt.exports =
|
|
261
|
+
function za() {
|
|
262
|
+
return Lr || (Lr = 1, process.env.NODE_ENV === "production" ? Mt.exports = Ka() : Mt.exports = Ga()), Mt.exports;
|
|
263
263
|
}
|
|
264
|
-
var i =
|
|
264
|
+
var i = za();
|
|
265
265
|
const Co = q.forwardRef(
|
|
266
|
-
({ children: e, type: t = "button", size: n = "medium", variant: r = "default", kind: o = "default",
|
|
267
|
-
const
|
|
266
|
+
({ children: e, type: t = "button", size: n = "medium", variant: r = "default", kind: o = "default", selected: s = !1, className: a, ...c }, u) => {
|
|
267
|
+
const p = {
|
|
268
268
|
medium: "mt-layout-input-medium w-fit",
|
|
269
269
|
large: "mt-layout-input-large w-fit"
|
|
270
|
-
},
|
|
270
|
+
}, f = {
|
|
271
271
|
medium: "w-[24px] h-[24px] p-1 flex items-center justify-center",
|
|
272
272
|
// 24x24
|
|
273
273
|
large: "w-[32px] h-[32px] p-1 flex items-center justify-center"
|
|
274
274
|
// 32x32
|
|
275
|
-
},
|
|
275
|
+
}, d = {
|
|
276
276
|
default: "mt-surface-input-default",
|
|
277
277
|
accent: "mt-surface-input-accent",
|
|
278
278
|
ghost: "mt-surface-input-ghost"
|
|
279
|
-
},
|
|
279
|
+
}, m = "flex items-center gap-2 rounded transition-all duration-150", v = o === "icon" ? f[n] : p[n];
|
|
280
280
|
return /* @__PURE__ */ i.jsx(
|
|
281
281
|
"button",
|
|
282
282
|
{
|
|
283
|
-
ref:
|
|
283
|
+
ref: u,
|
|
284
284
|
type: t,
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
"data-selected": s ? "true" : void 0,
|
|
286
|
+
className: `${m} ${v} ${d[r]} ${a || ""}`,
|
|
287
|
+
...c,
|
|
287
288
|
children: e
|
|
288
289
|
}
|
|
289
290
|
);
|
|
290
291
|
}
|
|
291
292
|
);
|
|
292
293
|
Co.displayName = "MtButton";
|
|
293
|
-
const
|
|
294
|
+
const Ee = Co;
|
|
294
295
|
const bo = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
|
|
295
|
-
const
|
|
296
|
-
const
|
|
296
|
+
const Ya = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
297
|
+
const Xa = (e) => e.replace(
|
|
297
298
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
298
299
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
299
300
|
);
|
|
300
301
|
const $r = (e) => {
|
|
301
|
-
const t =
|
|
302
|
+
const t = Xa(e);
|
|
302
303
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
303
304
|
};
|
|
304
|
-
var
|
|
305
|
+
var qa = {
|
|
305
306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
306
307
|
width: 24,
|
|
307
308
|
height: 24,
|
|
@@ -312,13 +313,13 @@ var Xa = {
|
|
|
312
313
|
strokeLinecap: "round",
|
|
313
314
|
strokeLinejoin: "round"
|
|
314
315
|
};
|
|
315
|
-
const
|
|
316
|
+
const Za = (e) => {
|
|
316
317
|
for (const t in e)
|
|
317
318
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
318
319
|
return !0;
|
|
319
320
|
return !1;
|
|
320
321
|
};
|
|
321
|
-
const
|
|
322
|
+
const Ja = er(
|
|
322
323
|
({
|
|
323
324
|
color: e = "currentColor",
|
|
324
325
|
size: t = 24,
|
|
@@ -332,13 +333,13 @@ const Za = er(
|
|
|
332
333
|
"svg",
|
|
333
334
|
{
|
|
334
335
|
ref: u,
|
|
335
|
-
...
|
|
336
|
+
...qa,
|
|
336
337
|
width: t,
|
|
337
338
|
height: t,
|
|
338
339
|
stroke: e,
|
|
339
340
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
340
341
|
className: bo("lucide", o),
|
|
341
|
-
...!s && !
|
|
342
|
+
...!s && !Za(c) && { "aria-hidden": "true" },
|
|
342
343
|
...c
|
|
343
344
|
},
|
|
344
345
|
[
|
|
@@ -349,11 +350,11 @@ const Za = er(
|
|
|
349
350
|
);
|
|
350
351
|
const ee = (e, t) => {
|
|
351
352
|
const n = er(
|
|
352
|
-
({ className: r, ...o }, s) => kn(
|
|
353
|
+
({ className: r, ...o }, s) => kn(Ja, {
|
|
353
354
|
ref: s,
|
|
354
355
|
iconNode: t,
|
|
355
356
|
className: bo(
|
|
356
|
-
`lucide-${
|
|
357
|
+
`lucide-${Ya($r(e))}`,
|
|
357
358
|
`lucide-${e}`,
|
|
358
359
|
r
|
|
359
360
|
),
|
|
@@ -362,72 +363,72 @@ const ee = (e, t) => {
|
|
|
362
363
|
);
|
|
363
364
|
return n.displayName = $r(e), n;
|
|
364
365
|
};
|
|
365
|
-
const
|
|
366
|
+
const Qa = [
|
|
366
367
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
367
368
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
368
|
-
],
|
|
369
|
-
const
|
|
369
|
+
], ec = ee("arrow-down", Qa);
|
|
370
|
+
const tc = [
|
|
370
371
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
371
372
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
372
373
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
373
374
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
374
|
-
],
|
|
375
|
-
const
|
|
375
|
+
], nc = ee("arrow-up-down", tc);
|
|
376
|
+
const rc = [
|
|
376
377
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
377
378
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
378
|
-
],
|
|
379
|
-
const
|
|
380
|
-
const
|
|
381
|
-
const
|
|
382
|
-
const
|
|
379
|
+
], oc = ee("arrow-up", rc);
|
|
380
|
+
const sc = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Eo = ee("check", sc);
|
|
381
|
+
const ic = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], So = ee("chevron-down", ic);
|
|
382
|
+
const ac = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ro = ee("chevron-right", ac);
|
|
383
|
+
const cc = [
|
|
383
384
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
384
385
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
385
386
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
386
|
-
],
|
|
387
|
-
const
|
|
387
|
+
], lc = ee("circle-alert", cc);
|
|
388
|
+
const uc = [
|
|
388
389
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
389
390
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
390
|
-
],
|
|
391
|
-
const
|
|
391
|
+
], dc = ee("circle-check", uc);
|
|
392
|
+
const fc = [
|
|
392
393
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
393
394
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
394
395
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
395
|
-
],
|
|
396
|
-
const
|
|
396
|
+
], pc = ee("circle-x", fc);
|
|
397
|
+
const hc = [
|
|
397
398
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
398
399
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
399
400
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
400
|
-
],
|
|
401
|
-
const
|
|
401
|
+
], mc = ee("ellipsis", hc);
|
|
402
|
+
const vc = [
|
|
402
403
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
403
404
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
404
405
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
405
|
-
],
|
|
406
|
-
const
|
|
406
|
+
], gc = ee("info", vc);
|
|
407
|
+
const xc = [
|
|
407
408
|
["path", { d: "M2 5h20", key: "1fs1ex" }],
|
|
408
409
|
["path", { d: "M6 12h12", key: "8npq4p" }],
|
|
409
410
|
["path", { d: "M9 19h6", key: "456am0" }]
|
|
410
|
-
], jt = ee("list-filter",
|
|
411
|
-
const
|
|
412
|
-
const
|
|
411
|
+
], jt = ee("list-filter", xc);
|
|
412
|
+
const wc = [["path", { d: "M5 12h14", key: "1ays0h" }]], yc = ee("minus", wc);
|
|
413
|
+
const Cc = [
|
|
413
414
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
414
415
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
415
|
-
], Ln = ee("plus",
|
|
416
|
-
const
|
|
416
|
+
], Ln = ee("plus", Cc);
|
|
417
|
+
const bc = [
|
|
417
418
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
418
419
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
419
|
-
],
|
|
420
|
-
const
|
|
420
|
+
], Ec = ee("search", bc);
|
|
421
|
+
const Sc = [
|
|
421
422
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
422
423
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
423
424
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
424
425
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
425
426
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
426
|
-
], $n = ee("trash-2",
|
|
427
|
-
const
|
|
427
|
+
], $n = ee("trash-2", Sc);
|
|
428
|
+
const Rc = [
|
|
428
429
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
429
430
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
430
|
-
], Zt = ee("x",
|
|
431
|
+
], Zt = ee("x", Rc);
|
|
431
432
|
function im({
|
|
432
433
|
label: e,
|
|
433
434
|
checked: t,
|
|
@@ -439,7 +440,7 @@ function im({
|
|
|
439
440
|
className: c,
|
|
440
441
|
...u
|
|
441
442
|
}) {
|
|
442
|
-
const p = o ? /* @__PURE__ */ i.jsx(
|
|
443
|
+
const p = o ? /* @__PURE__ */ i.jsx(yc, { className: "h-3 w-3" }) : /* @__PURE__ */ i.jsx(Eo, { className: "h-3 w-3" });
|
|
443
444
|
return /* @__PURE__ */ i.jsxs(
|
|
444
445
|
"label",
|
|
445
446
|
{
|
|
@@ -499,8 +500,8 @@ function G(...e) {
|
|
|
499
500
|
}
|
|
500
501
|
// @__NO_SIDE_EFFECTS__
|
|
501
502
|
function Ue(e) {
|
|
502
|
-
const t = /* @__PURE__ */
|
|
503
|
-
const { children: s, ...a } = r, c = l.Children.toArray(s), u = c.find(
|
|
503
|
+
const t = /* @__PURE__ */ Nc(e), n = l.forwardRef((r, o) => {
|
|
504
|
+
const { children: s, ...a } = r, c = l.Children.toArray(s), u = c.find(_c);
|
|
504
505
|
if (u) {
|
|
505
506
|
const p = u.props.children, f = c.map((d) => d === u ? l.Children.count(p) > 1 ? l.Children.only(null) : l.isValidElement(p) ? p.props.children : null : d);
|
|
506
507
|
return /* @__PURE__ */ i.jsx(t, { ...a, ref: o, children: l.isValidElement(p) ? l.cloneElement(p, void 0, f) : null });
|
|
@@ -510,11 +511,11 @@ function Ue(e) {
|
|
|
510
511
|
return n.displayName = `${e}.Slot`, n;
|
|
511
512
|
}
|
|
512
513
|
// @__NO_SIDE_EFFECTS__
|
|
513
|
-
function
|
|
514
|
+
function Nc(e) {
|
|
514
515
|
const t = l.forwardRef((n, r) => {
|
|
515
516
|
const { children: o, ...s } = n;
|
|
516
517
|
if (l.isValidElement(o)) {
|
|
517
|
-
const a =
|
|
518
|
+
const a = jc(o), c = Mc(s, o.props);
|
|
518
519
|
return o.type !== l.Fragment && (c.ref = r ? Jt(r, a) : a), l.cloneElement(o, c);
|
|
519
520
|
}
|
|
520
521
|
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
@@ -523,14 +524,14 @@ function Rc(e) {
|
|
|
523
524
|
}
|
|
524
525
|
var No = /* @__PURE__ */ Symbol("radix.slottable");
|
|
525
526
|
// @__NO_SIDE_EFFECTS__
|
|
526
|
-
function
|
|
527
|
+
function Pc(e) {
|
|
527
528
|
const t = ({ children: n }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: n });
|
|
528
529
|
return t.displayName = `${e}.Slottable`, t.__radixId = No, t;
|
|
529
530
|
}
|
|
530
|
-
function
|
|
531
|
+
function _c(e) {
|
|
531
532
|
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === No;
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
+
function Mc(e, t) {
|
|
534
535
|
const n = { ...t };
|
|
535
536
|
for (const r in t) {
|
|
536
537
|
const o = e[r], s = t[r];
|
|
@@ -541,11 +542,11 @@ function _c(e, t) {
|
|
|
541
542
|
}
|
|
542
543
|
return { ...e, ...n };
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
+
function jc(e) {
|
|
545
546
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
546
547
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
547
548
|
}
|
|
548
|
-
var
|
|
549
|
+
var Tc = [
|
|
549
550
|
"a",
|
|
550
551
|
"button",
|
|
551
552
|
"div",
|
|
@@ -563,7 +564,7 @@ var jc = [
|
|
|
563
564
|
"span",
|
|
564
565
|
"svg",
|
|
565
566
|
"ul"
|
|
566
|
-
], V =
|
|
567
|
+
], V = Tc.reduce((e, t) => {
|
|
567
568
|
const n = /* @__PURE__ */ Ue(`Primitive.${t}`), r = l.forwardRef((o, s) => {
|
|
568
569
|
const { asChild: a, ...c } = o, u = a ? n : t;
|
|
569
570
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i.jsx(u, { ...c, ref: s });
|
|
@@ -585,7 +586,7 @@ var _o = Object.freeze({
|
|
|
585
586
|
clip: "rect(0, 0, 0, 0)",
|
|
586
587
|
whiteSpace: "nowrap",
|
|
587
588
|
wordWrap: "normal"
|
|
588
|
-
}),
|
|
589
|
+
}), Ac = "VisuallyHidden", Mo = l.forwardRef(
|
|
589
590
|
(e, t) => /* @__PURE__ */ i.jsx(
|
|
590
591
|
V.span,
|
|
591
592
|
{
|
|
@@ -595,9 +596,9 @@ var _o = Object.freeze({
|
|
|
595
596
|
}
|
|
596
597
|
)
|
|
597
598
|
);
|
|
598
|
-
Mo.displayName =
|
|
599
|
-
var
|
|
600
|
-
function
|
|
599
|
+
Mo.displayName = Ac;
|
|
600
|
+
var Oc = Mo;
|
|
601
|
+
function Ic(e, t) {
|
|
601
602
|
const n = l.createContext(t), r = (s) => {
|
|
602
603
|
const { children: a, ...c } = s, u = l.useMemo(() => c, Object.values(c));
|
|
603
604
|
return /* @__PURE__ */ i.jsx(n.Provider, { value: u, children: a });
|
|
@@ -639,9 +640,9 @@ function ye(e, t = []) {
|
|
|
639
640
|
);
|
|
640
641
|
};
|
|
641
642
|
};
|
|
642
|
-
return o.scopeName = e, [r,
|
|
643
|
+
return o.scopeName = e, [r, Dc(o, ...t)];
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function Dc(...e) {
|
|
645
646
|
const t = e[0];
|
|
646
647
|
if (e.length === 1) return t;
|
|
647
648
|
const n = () => {
|
|
@@ -708,7 +709,7 @@ function T(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
708
709
|
};
|
|
709
710
|
}
|
|
710
711
|
var te = globalThis?.document ? l.useLayoutEffect : () => {
|
|
711
|
-
},
|
|
712
|
+
}, kc = l[" useInsertionEffect ".trim().toString()] || te;
|
|
712
713
|
function Ae({
|
|
713
714
|
prop: e,
|
|
714
715
|
defaultProp: t,
|
|
@@ -716,7 +717,7 @@ function Ae({
|
|
|
716
717
|
},
|
|
717
718
|
caller: r
|
|
718
719
|
}) {
|
|
719
|
-
const [o, s, a] =
|
|
720
|
+
const [o, s, a] = Lc({
|
|
720
721
|
defaultProp: t,
|
|
721
722
|
onChange: n
|
|
722
723
|
}), c = e !== void 0, u = c ? e : o;
|
|
@@ -732,7 +733,7 @@ function Ae({
|
|
|
732
733
|
const p = l.useCallback(
|
|
733
734
|
(f) => {
|
|
734
735
|
if (c) {
|
|
735
|
-
const d =
|
|
736
|
+
const d = $c(f) ? f(e) : f;
|
|
736
737
|
d !== e && a.current?.(d);
|
|
737
738
|
} else
|
|
738
739
|
s(f);
|
|
@@ -741,30 +742,30 @@ function Ae({
|
|
|
741
742
|
);
|
|
742
743
|
return [u, p];
|
|
743
744
|
}
|
|
744
|
-
function
|
|
745
|
+
function Lc({
|
|
745
746
|
defaultProp: e,
|
|
746
747
|
onChange: t
|
|
747
748
|
}) {
|
|
748
749
|
const [n, r] = l.useState(e), o = l.useRef(n), s = l.useRef(t);
|
|
749
|
-
return
|
|
750
|
+
return kc(() => {
|
|
750
751
|
s.current = t;
|
|
751
752
|
}, [t]), l.useEffect(() => {
|
|
752
753
|
o.current !== n && (s.current?.(n), o.current = n);
|
|
753
754
|
}, [n, o]), [n, r, s];
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
+
function $c(e) {
|
|
756
757
|
return typeof e == "function";
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
+
function Fc(e, t) {
|
|
759
760
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
760
761
|
}
|
|
761
762
|
var fe = (e) => {
|
|
762
|
-
const { present: t, children: n } = e, r =
|
|
763
|
+
const { present: t, children: n } = e, r = Bc(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = G(r.ref, Wc(o));
|
|
763
764
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: s }) : null;
|
|
764
765
|
};
|
|
765
766
|
fe.displayName = "Presence";
|
|
766
|
-
function
|
|
767
|
-
const [t, n] = l.useState(), r = l.useRef(null), o = l.useRef(e), s = l.useRef("none"), a = e ? "mounted" : "unmounted", [c, u] =
|
|
767
|
+
function Bc(e) {
|
|
768
|
+
const [t, n] = l.useState(), r = l.useRef(null), o = l.useRef(e), s = l.useRef("none"), a = e ? "mounted" : "unmounted", [c, u] = Fc(a, {
|
|
768
769
|
mounted: {
|
|
769
770
|
UNMOUNT: "unmounted",
|
|
770
771
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -815,21 +816,21 @@ function Fc(e) {
|
|
|
815
816
|
function Tt(e) {
|
|
816
817
|
return e?.animationName || "none";
|
|
817
818
|
}
|
|
818
|
-
function
|
|
819
|
+
function Wc(e) {
|
|
819
820
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
820
821
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
821
822
|
}
|
|
822
|
-
var
|
|
823
|
-
}),
|
|
823
|
+
var Vc = l[" useId ".trim().toString()] || (() => {
|
|
824
|
+
}), Hc = 0;
|
|
824
825
|
function ae(e) {
|
|
825
|
-
const [t, n] = l.useState(
|
|
826
|
+
const [t, n] = l.useState(Vc());
|
|
826
827
|
return te(() => {
|
|
827
|
-
n((r) => r ?? String(
|
|
828
|
+
n((r) => r ?? String(Hc++));
|
|
828
829
|
}, [e]), t ? `radix-${t}` : "";
|
|
829
830
|
}
|
|
830
|
-
var
|
|
831
|
+
var Uc = l.createContext(void 0);
|
|
831
832
|
function rr(e) {
|
|
832
|
-
const t = l.useContext(
|
|
833
|
+
const t = l.useContext(Uc);
|
|
833
834
|
return e || t || "ltr";
|
|
834
835
|
}
|
|
835
836
|
function de(e) {
|
|
@@ -838,7 +839,7 @@ function de(e) {
|
|
|
838
839
|
t.current = e;
|
|
839
840
|
}), l.useMemo(() => (...n) => t.current?.(...n), []);
|
|
840
841
|
}
|
|
841
|
-
function
|
|
842
|
+
function Kc(e, t = globalThis?.document) {
|
|
842
843
|
const n = de(e);
|
|
843
844
|
l.useEffect(() => {
|
|
844
845
|
const r = (o) => {
|
|
@@ -847,7 +848,7 @@ function Uc(e, t = globalThis?.document) {
|
|
|
847
848
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
848
849
|
}, [n, t]);
|
|
849
850
|
}
|
|
850
|
-
var
|
|
851
|
+
var Gc = "DismissableLayer", Fn = "dismissableLayer.update", zc = "dismissableLayer.pointerDownOutside", Yc = "dismissableLayer.focusOutside", Br, jo = l.createContext({
|
|
851
852
|
layers: /* @__PURE__ */ new Set(),
|
|
852
853
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
853
854
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -861,14 +862,14 @@ var Kc = "DismissableLayer", Fn = "dismissableLayer.update", Gc = "dismissableLa
|
|
|
861
862
|
onInteractOutside: a,
|
|
862
863
|
onDismiss: c,
|
|
863
864
|
...u
|
|
864
|
-
} = e, p = l.useContext(jo), [f, d] = l.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, v] = l.useState({}), x = G(t, (R) => d(R)), h = Array.from(p.layers), [g] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(g), y = f ? h.indexOf(f) : -1, b = p.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= w, N =
|
|
865
|
+
} = e, p = l.useContext(jo), [f, d] = l.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, v] = l.useState({}), x = G(t, (R) => d(R)), h = Array.from(p.layers), [g] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(g), y = f ? h.indexOf(f) : -1, b = p.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= w, N = Zc((R) => {
|
|
865
866
|
const S = R.target, j = [...p.branches].some((L) => L.contains(S));
|
|
866
867
|
!C || j || (o?.(R), a?.(R), R.defaultPrevented || c?.());
|
|
867
|
-
}, m), _ =
|
|
868
|
+
}, m), _ = Jc((R) => {
|
|
868
869
|
const S = R.target;
|
|
869
870
|
[...p.branches].some((L) => L.contains(S)) || (s?.(R), a?.(R), R.defaultPrevented || c?.());
|
|
870
871
|
}, m);
|
|
871
|
-
return
|
|
872
|
+
return Kc((R) => {
|
|
872
873
|
y === p.layers.size - 1 && (r?.(R), !R.defaultPrevented && c && (R.preventDefault(), c()));
|
|
873
874
|
}, m), l.useEffect(() => {
|
|
874
875
|
if (f)
|
|
@@ -899,8 +900,8 @@ var Kc = "DismissableLayer", Fn = "dismissableLayer.update", Gc = "dismissableLa
|
|
|
899
900
|
);
|
|
900
901
|
}
|
|
901
902
|
);
|
|
902
|
-
st.displayName =
|
|
903
|
-
var
|
|
903
|
+
st.displayName = Gc;
|
|
904
|
+
var Xc = "DismissableLayerBranch", qc = l.forwardRef((e, t) => {
|
|
904
905
|
const n = l.useContext(jo), r = l.useRef(null), o = G(t, r);
|
|
905
906
|
return l.useEffect(() => {
|
|
906
907
|
const s = r.current;
|
|
@@ -910,8 +911,8 @@ var Yc = "DismissableLayerBranch", Xc = l.forwardRef((e, t) => {
|
|
|
910
911
|
};
|
|
911
912
|
}, [n.branches]), /* @__PURE__ */ i.jsx(V.div, { ...e, ref: o });
|
|
912
913
|
});
|
|
913
|
-
|
|
914
|
-
function
|
|
914
|
+
qc.displayName = Xc;
|
|
915
|
+
function Zc(e, t = globalThis?.document) {
|
|
915
916
|
const n = de(e), r = l.useRef(!1), o = l.useRef(() => {
|
|
916
917
|
});
|
|
917
918
|
return l.useEffect(() => {
|
|
@@ -919,7 +920,7 @@ function qc(e, t = globalThis?.document) {
|
|
|
919
920
|
if (c.target && !r.current) {
|
|
920
921
|
let u = function() {
|
|
921
922
|
To(
|
|
922
|
-
|
|
923
|
+
zc,
|
|
923
924
|
n,
|
|
924
925
|
p,
|
|
925
926
|
{ discrete: !0 }
|
|
@@ -941,11 +942,11 @@ function qc(e, t = globalThis?.document) {
|
|
|
941
942
|
onPointerDownCapture: () => r.current = !0
|
|
942
943
|
};
|
|
943
944
|
}
|
|
944
|
-
function
|
|
945
|
+
function Jc(e, t = globalThis?.document) {
|
|
945
946
|
const n = de(e), r = l.useRef(!1);
|
|
946
947
|
return l.useEffect(() => {
|
|
947
948
|
const o = (s) => {
|
|
948
|
-
s.target && !r.current && To(
|
|
949
|
+
s.target && !r.current && To(Yc, n, { originalEvent: s }, {
|
|
949
950
|
discrete: !1
|
|
950
951
|
});
|
|
951
952
|
};
|
|
@@ -963,7 +964,7 @@ function To(e, t, n, { discrete: r }) {
|
|
|
963
964
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
964
965
|
t && o.addEventListener(e, t, { once: !0 }), r ? Po(o, s) : o.dispatchEvent(s);
|
|
965
966
|
}
|
|
966
|
-
var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr = { bubbles: !1, cancelable: !0 },
|
|
967
|
+
var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr = { bubbles: !1, cancelable: !0 }, Qc = "FocusScope", xt = l.forwardRef((e, t) => {
|
|
967
968
|
const {
|
|
968
969
|
loop: n = !1,
|
|
969
970
|
trapped: r = !1,
|
|
@@ -984,15 +985,15 @@ var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr
|
|
|
984
985
|
let h = function(b) {
|
|
985
986
|
if (v.paused || !c) return;
|
|
986
987
|
const C = b.target;
|
|
987
|
-
c.contains(C) ? d.current = C :
|
|
988
|
+
c.contains(C) ? d.current = C : Pe(d.current, { select: !0 });
|
|
988
989
|
}, g = function(b) {
|
|
989
990
|
if (v.paused || !c) return;
|
|
990
991
|
const C = b.relatedTarget;
|
|
991
|
-
C !== null && (c.contains(C) ||
|
|
992
|
+
C !== null && (c.contains(C) || Pe(d.current, { select: !0 }));
|
|
992
993
|
}, w = function(b) {
|
|
993
994
|
if (document.activeElement === document.body)
|
|
994
995
|
for (const N of b)
|
|
995
|
-
N.removedNodes.length > 0 &&
|
|
996
|
+
N.removedNodes.length > 0 && Pe(c);
|
|
996
997
|
};
|
|
997
998
|
document.addEventListener("focusin", h), document.addEventListener("focusout", g);
|
|
998
999
|
const y = new MutationObserver(w);
|
|
@@ -1006,12 +1007,12 @@ var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr
|
|
|
1006
1007
|
const h = document.activeElement;
|
|
1007
1008
|
if (!c.contains(h)) {
|
|
1008
1009
|
const w = new CustomEvent(bn, Vr);
|
|
1009
|
-
c.addEventListener(bn, p), c.dispatchEvent(w), w.defaultPrevented || (
|
|
1010
|
+
c.addEventListener(bn, p), c.dispatchEvent(w), w.defaultPrevented || (el(sl(Ao(c)), { select: !0 }), document.activeElement === h && Pe(c));
|
|
1010
1011
|
}
|
|
1011
1012
|
return () => {
|
|
1012
1013
|
c.removeEventListener(bn, p), setTimeout(() => {
|
|
1013
1014
|
const w = new CustomEvent(En, Vr);
|
|
1014
|
-
c.addEventListener(En, f), c.dispatchEvent(w), w.defaultPrevented ||
|
|
1015
|
+
c.addEventListener(En, f), c.dispatchEvent(w), w.defaultPrevented || Pe(h ?? document.body, { select: !0 }), c.removeEventListener(En, f), Ur.remove(v);
|
|
1015
1016
|
}, 0);
|
|
1016
1017
|
};
|
|
1017
1018
|
}
|
|
@@ -1021,21 +1022,21 @@ var bn = "focusScope.autoFocusOnMount", En = "focusScope.autoFocusOnUnmount", Vr
|
|
|
1021
1022
|
if (!n && !r || v.paused) return;
|
|
1022
1023
|
const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, w = document.activeElement;
|
|
1023
1024
|
if (g && w) {
|
|
1024
|
-
const y = h.currentTarget, [b, C] =
|
|
1025
|
-
b && C ? !h.shiftKey && w === C ? (h.preventDefault(), n &&
|
|
1025
|
+
const y = h.currentTarget, [b, C] = tl(y);
|
|
1026
|
+
b && C ? !h.shiftKey && w === C ? (h.preventDefault(), n && Pe(b, { select: !0 })) : h.shiftKey && w === b && (h.preventDefault(), n && Pe(C, { select: !0 })) : w === y && h.preventDefault();
|
|
1026
1027
|
}
|
|
1027
1028
|
},
|
|
1028
1029
|
[n, r, v.paused]
|
|
1029
1030
|
);
|
|
1030
1031
|
return /* @__PURE__ */ i.jsx(V.div, { tabIndex: -1, ...a, ref: m, onKeyDown: x });
|
|
1031
1032
|
});
|
|
1032
|
-
xt.displayName =
|
|
1033
|
-
function
|
|
1033
|
+
xt.displayName = Qc;
|
|
1034
|
+
function el(e, { select: t = !1 } = {}) {
|
|
1034
1035
|
const n = document.activeElement;
|
|
1035
1036
|
for (const r of e)
|
|
1036
|
-
if (
|
|
1037
|
+
if (Pe(r, { select: t }), document.activeElement !== n) return;
|
|
1037
1038
|
}
|
|
1038
|
-
function
|
|
1039
|
+
function tl(e) {
|
|
1039
1040
|
const t = Ao(e), n = Hr(t, e), r = Hr(t.reverse(), e);
|
|
1040
1041
|
return [n, r];
|
|
1041
1042
|
}
|
|
@@ -1051,9 +1052,9 @@ function Ao(e) {
|
|
|
1051
1052
|
}
|
|
1052
1053
|
function Hr(e, t) {
|
|
1053
1054
|
for (const n of e)
|
|
1054
|
-
if (!
|
|
1055
|
+
if (!nl(n, { upTo: t })) return n;
|
|
1055
1056
|
}
|
|
1056
|
-
function
|
|
1057
|
+
function nl(e, { upTo: t }) {
|
|
1057
1058
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1058
1059
|
for (; e; ) {
|
|
1059
1060
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1062,17 +1063,17 @@ function tl(e, { upTo: t }) {
|
|
|
1062
1063
|
}
|
|
1063
1064
|
return !1;
|
|
1064
1065
|
}
|
|
1065
|
-
function
|
|
1066
|
+
function rl(e) {
|
|
1066
1067
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1067
1068
|
}
|
|
1068
|
-
function
|
|
1069
|
+
function Pe(e, { select: t = !1 } = {}) {
|
|
1069
1070
|
if (e && e.focus) {
|
|
1070
1071
|
const n = document.activeElement;
|
|
1071
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1072
|
+
e.focus({ preventScroll: !0 }), e !== n && rl(e) && t && e.select();
|
|
1072
1073
|
}
|
|
1073
1074
|
}
|
|
1074
|
-
var Ur =
|
|
1075
|
-
function
|
|
1075
|
+
var Ur = ol();
|
|
1076
|
+
function ol() {
|
|
1076
1077
|
let e = [];
|
|
1077
1078
|
return {
|
|
1078
1079
|
add(t) {
|
|
@@ -1088,16 +1089,16 @@ function Kr(e, t) {
|
|
|
1088
1089
|
const n = [...e], r = n.indexOf(t);
|
|
1089
1090
|
return r !== -1 && n.splice(r, 1), n;
|
|
1090
1091
|
}
|
|
1091
|
-
function
|
|
1092
|
+
function sl(e) {
|
|
1092
1093
|
return e.filter((t) => t.tagName !== "A");
|
|
1093
1094
|
}
|
|
1094
|
-
var
|
|
1095
|
+
var il = "Portal", it = l.forwardRef((e, t) => {
|
|
1095
1096
|
const { container: n, ...r } = e, [o, s] = l.useState(!1);
|
|
1096
1097
|
te(() => s(!0), []);
|
|
1097
1098
|
const a = n || o && globalThis?.document?.body;
|
|
1098
|
-
return a ?
|
|
1099
|
+
return a ? Ua.createPortal(/* @__PURE__ */ i.jsx(V.div, { ...r, ref: t }), a) : null;
|
|
1099
1100
|
});
|
|
1100
|
-
it.displayName =
|
|
1101
|
+
it.displayName = il;
|
|
1101
1102
|
var Sn = 0;
|
|
1102
1103
|
function Qt() {
|
|
1103
1104
|
l.useEffect(() => {
|
|
@@ -1128,16 +1129,16 @@ function Oo(e, t) {
|
|
|
1128
1129
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
1129
1130
|
return n;
|
|
1130
1131
|
}
|
|
1131
|
-
function
|
|
1132
|
+
function al(e, t, n) {
|
|
1132
1133
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
1133
1134
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
1134
1135
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
1135
1136
|
}
|
|
1136
|
-
var $t = "right-scroll-bar-position", Ft = "width-before-scroll-bar",
|
|
1137
|
+
var $t = "right-scroll-bar-position", Ft = "width-before-scroll-bar", cl = "with-scroll-bars-hidden", ll = "--removed-body-scroll-bar-size";
|
|
1137
1138
|
function Rn(e, t) {
|
|
1138
1139
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
1139
1140
|
}
|
|
1140
|
-
function
|
|
1141
|
+
function ul(e, t) {
|
|
1141
1142
|
var n = se(function() {
|
|
1142
1143
|
return {
|
|
1143
1144
|
// value
|
|
@@ -1158,14 +1159,14 @@ function ll(e, t) {
|
|
|
1158
1159
|
})[0];
|
|
1159
1160
|
return n.callback = t, n.facade;
|
|
1160
1161
|
}
|
|
1161
|
-
var
|
|
1162
|
-
function
|
|
1163
|
-
var n =
|
|
1162
|
+
var dl = typeof window < "u" ? l.useLayoutEffect : l.useEffect, zr = /* @__PURE__ */ new WeakMap();
|
|
1163
|
+
function fl(e, t) {
|
|
1164
|
+
var n = ul(null, function(r) {
|
|
1164
1165
|
return e.forEach(function(o) {
|
|
1165
1166
|
return Rn(o, r);
|
|
1166
1167
|
});
|
|
1167
1168
|
});
|
|
1168
|
-
return
|
|
1169
|
+
return dl(function() {
|
|
1169
1170
|
var r = zr.get(n);
|
|
1170
1171
|
if (r) {
|
|
1171
1172
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
@@ -1178,11 +1179,11 @@ function dl(e, t) {
|
|
|
1178
1179
|
zr.set(n, e);
|
|
1179
1180
|
}, [e]), n;
|
|
1180
1181
|
}
|
|
1181
|
-
function
|
|
1182
|
+
function pl(e) {
|
|
1182
1183
|
return e;
|
|
1183
1184
|
}
|
|
1184
|
-
function
|
|
1185
|
-
t === void 0 && (t =
|
|
1185
|
+
function hl(e, t) {
|
|
1186
|
+
t === void 0 && (t = pl);
|
|
1186
1187
|
var n = [], r = !1, o = {
|
|
1187
1188
|
read: function() {
|
|
1188
1189
|
if (r)
|
|
@@ -1236,9 +1237,9 @@ function pl(e, t) {
|
|
|
1236
1237
|
};
|
|
1237
1238
|
return o;
|
|
1238
1239
|
}
|
|
1239
|
-
function
|
|
1240
|
+
function ml(e) {
|
|
1240
1241
|
e === void 0 && (e = {});
|
|
1241
|
-
var t =
|
|
1242
|
+
var t = hl(null);
|
|
1242
1243
|
return t.options = ge({ async: !0, ssr: !1 }, e), t;
|
|
1243
1244
|
}
|
|
1244
1245
|
var Io = function(e) {
|
|
@@ -1251,16 +1252,16 @@ var Io = function(e) {
|
|
|
1251
1252
|
return l.createElement(r, ge({}, n));
|
|
1252
1253
|
};
|
|
1253
1254
|
Io.isSideCarExport = !0;
|
|
1254
|
-
function
|
|
1255
|
+
function vl(e, t) {
|
|
1255
1256
|
return e.useMedium(t), Io;
|
|
1256
1257
|
}
|
|
1257
|
-
var Do =
|
|
1258
|
+
var Do = ml(), Nn = function() {
|
|
1258
1259
|
}, en = l.forwardRef(function(e, t) {
|
|
1259
1260
|
var n = l.useRef(null), r = l.useState({
|
|
1260
1261
|
onScrollCapture: Nn,
|
|
1261
1262
|
onWheelCapture: Nn,
|
|
1262
1263
|
onTouchMoveCapture: Nn
|
|
1263
|
-
}), o = r[0], s = r[1], a = e.forwardProps, c = e.children, u = e.className, p = e.removeScrollBar, f = e.enabled, d = e.shards, m = e.sideCar, v = e.noRelative, x = e.noIsolation, h = e.inert, g = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, b = e.gapMode, C = Oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, _ =
|
|
1264
|
+
}), o = r[0], s = r[1], a = e.forwardProps, c = e.children, u = e.className, p = e.removeScrollBar, f = e.enabled, d = e.shards, m = e.sideCar, v = e.noRelative, x = e.noIsolation, h = e.inert, g = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, b = e.gapMode, C = Oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, _ = fl([n, t]), R = ge(ge({}, C), o);
|
|
1264
1265
|
return l.createElement(
|
|
1265
1266
|
l.Fragment,
|
|
1266
1267
|
null,
|
|
@@ -1277,37 +1278,37 @@ en.classNames = {
|
|
|
1277
1278
|
fullWidth: Ft,
|
|
1278
1279
|
zeroRight: $t
|
|
1279
1280
|
};
|
|
1280
|
-
var
|
|
1281
|
+
var gl = function() {
|
|
1281
1282
|
if (typeof __webpack_nonce__ < "u")
|
|
1282
1283
|
return __webpack_nonce__;
|
|
1283
1284
|
};
|
|
1284
|
-
function
|
|
1285
|
+
function xl() {
|
|
1285
1286
|
if (!document)
|
|
1286
1287
|
return null;
|
|
1287
1288
|
var e = document.createElement("style");
|
|
1288
1289
|
e.type = "text/css";
|
|
1289
|
-
var t =
|
|
1290
|
+
var t = gl();
|
|
1290
1291
|
return t && e.setAttribute("nonce", t), e;
|
|
1291
1292
|
}
|
|
1292
|
-
function
|
|
1293
|
+
function wl(e, t) {
|
|
1293
1294
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1294
1295
|
}
|
|
1295
|
-
function
|
|
1296
|
+
function yl(e) {
|
|
1296
1297
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
1297
1298
|
t.appendChild(e);
|
|
1298
1299
|
}
|
|
1299
|
-
var
|
|
1300
|
+
var Cl = function() {
|
|
1300
1301
|
var e = 0, t = null;
|
|
1301
1302
|
return {
|
|
1302
1303
|
add: function(n) {
|
|
1303
|
-
e == 0 && (t =
|
|
1304
|
+
e == 0 && (t = xl()) && (wl(t, n), yl(t)), e++;
|
|
1304
1305
|
},
|
|
1305
1306
|
remove: function() {
|
|
1306
1307
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1307
1308
|
}
|
|
1308
1309
|
};
|
|
1309
|
-
},
|
|
1310
|
-
var e =
|
|
1310
|
+
}, bl = function() {
|
|
1311
|
+
var e = Cl();
|
|
1311
1312
|
return function(t, n) {
|
|
1312
1313
|
l.useEffect(function() {
|
|
1313
1314
|
return e.add(t), function() {
|
|
@@ -1316,35 +1317,35 @@ var yl = function() {
|
|
|
1316
1317
|
}, [t && n]);
|
|
1317
1318
|
};
|
|
1318
1319
|
}, ko = function() {
|
|
1319
|
-
var e =
|
|
1320
|
+
var e = bl(), t = function(n) {
|
|
1320
1321
|
var r = n.styles, o = n.dynamic;
|
|
1321
1322
|
return e(r, o), null;
|
|
1322
1323
|
};
|
|
1323
1324
|
return t;
|
|
1324
|
-
},
|
|
1325
|
+
}, El = {
|
|
1325
1326
|
left: 0,
|
|
1326
1327
|
top: 0,
|
|
1327
1328
|
right: 0,
|
|
1328
1329
|
gap: 0
|
|
1329
1330
|
}, Pn = function(e) {
|
|
1330
1331
|
return parseInt(e || "", 10) || 0;
|
|
1331
|
-
},
|
|
1332
|
+
}, Sl = function(e) {
|
|
1332
1333
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1333
1334
|
return [Pn(n), Pn(r), Pn(o)];
|
|
1334
|
-
},
|
|
1335
|
+
}, Rl = function(e) {
|
|
1335
1336
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1336
|
-
return
|
|
1337
|
-
var t =
|
|
1337
|
+
return El;
|
|
1338
|
+
var t = Sl(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
1338
1339
|
return {
|
|
1339
1340
|
left: t[0],
|
|
1340
1341
|
top: t[1],
|
|
1341
1342
|
right: t[2],
|
|
1342
1343
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
1343
1344
|
};
|
|
1344
|
-
},
|
|
1345
|
+
}, Nl = ko(), et = "data-scroll-locked", Pl = function(e, t, n, r) {
|
|
1345
1346
|
var o = e.left, s = e.top, a = e.right, c = e.gap;
|
|
1346
1347
|
return n === void 0 && (n = "margin"), `
|
|
1347
|
-
.`.concat(
|
|
1348
|
+
.`.concat(cl, ` {
|
|
1348
1349
|
overflow: hidden `).concat(r, `;
|
|
1349
1350
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
1350
1351
|
}
|
|
@@ -1382,26 +1383,26 @@ var yl = function() {
|
|
|
1382
1383
|
}
|
|
1383
1384
|
|
|
1384
1385
|
body[`).concat(et, `] {
|
|
1385
|
-
`).concat(
|
|
1386
|
+
`).concat(ll, ": ").concat(c, `px;
|
|
1386
1387
|
}
|
|
1387
1388
|
`);
|
|
1388
1389
|
}, Yr = function() {
|
|
1389
1390
|
var e = parseInt(document.body.getAttribute(et) || "0", 10);
|
|
1390
1391
|
return isFinite(e) ? e : 0;
|
|
1391
|
-
},
|
|
1392
|
+
}, _l = function() {
|
|
1392
1393
|
l.useEffect(function() {
|
|
1393
1394
|
return document.body.setAttribute(et, (Yr() + 1).toString()), function() {
|
|
1394
1395
|
var e = Yr() - 1;
|
|
1395
1396
|
e <= 0 ? document.body.removeAttribute(et) : document.body.setAttribute(et, e.toString());
|
|
1396
1397
|
};
|
|
1397
1398
|
}, []);
|
|
1398
|
-
},
|
|
1399
|
+
}, Ml = function(e) {
|
|
1399
1400
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
1400
|
-
|
|
1401
|
+
_l();
|
|
1401
1402
|
var s = l.useMemo(function() {
|
|
1402
|
-
return
|
|
1403
|
+
return Rl(o);
|
|
1403
1404
|
}, [o]);
|
|
1404
|
-
return l.createElement(
|
|
1405
|
+
return l.createElement(Nl, { styles: Pl(s, !t, o, n ? "" : "!important") });
|
|
1405
1406
|
}, Bn = !1;
|
|
1406
1407
|
if (typeof window < "u")
|
|
1407
1408
|
try {
|
|
@@ -1414,7 +1415,7 @@ if (typeof window < "u")
|
|
|
1414
1415
|
} catch {
|
|
1415
1416
|
Bn = !1;
|
|
1416
1417
|
}
|
|
1417
|
-
var qe = Bn ? { passive: !1 } : !1,
|
|
1418
|
+
var qe = Bn ? { passive: !1 } : !1, jl = function(e) {
|
|
1418
1419
|
return e.tagName === "TEXTAREA";
|
|
1419
1420
|
}, Lo = function(e, t) {
|
|
1420
1421
|
if (!(e instanceof Element))
|
|
@@ -1423,11 +1424,11 @@ var qe = Bn ? { passive: !1 } : !1, Ml = function(e) {
|
|
|
1423
1424
|
return (
|
|
1424
1425
|
// not-not-scrollable
|
|
1425
1426
|
n[t] !== "hidden" && // contains scroll inside self
|
|
1426
|
-
!(n.overflowY === n.overflowX && !
|
|
1427
|
+
!(n.overflowY === n.overflowX && !jl(e) && n[t] === "visible")
|
|
1427
1428
|
);
|
|
1428
|
-
}, jl = function(e) {
|
|
1429
|
-
return Lo(e, "overflowY");
|
|
1430
1429
|
}, Tl = function(e) {
|
|
1430
|
+
return Lo(e, "overflowY");
|
|
1431
|
+
}, Al = function(e) {
|
|
1431
1432
|
return Lo(e, "overflowX");
|
|
1432
1433
|
}, Xr = function(e, t) {
|
|
1433
1434
|
var n = t.ownerDocument, r = t;
|
|
@@ -1442,14 +1443,14 @@ var qe = Bn ? { passive: !1 } : !1, Ml = function(e) {
|
|
|
1442
1443
|
r = r.parentNode;
|
|
1443
1444
|
} while (r && r !== n.body);
|
|
1444
1445
|
return !1;
|
|
1445
|
-
},
|
|
1446
|
+
}, Ol = function(e) {
|
|
1446
1447
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
1447
1448
|
return [
|
|
1448
1449
|
t,
|
|
1449
1450
|
n,
|
|
1450
1451
|
r
|
|
1451
1452
|
];
|
|
1452
|
-
},
|
|
1453
|
+
}, Il = function(e) {
|
|
1453
1454
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
1454
1455
|
return [
|
|
1455
1456
|
t,
|
|
@@ -1457,13 +1458,13 @@ var qe = Bn ? { passive: !1 } : !1, Ml = function(e) {
|
|
|
1457
1458
|
r
|
|
1458
1459
|
];
|
|
1459
1460
|
}, $o = function(e, t) {
|
|
1460
|
-
return e === "v" ?
|
|
1461
|
+
return e === "v" ? Tl(t) : Al(t);
|
|
1461
1462
|
}, Fo = function(e, t) {
|
|
1462
|
-
return e === "v" ?
|
|
1463
|
-
},
|
|
1463
|
+
return e === "v" ? Ol(t) : Il(t);
|
|
1464
|
+
}, Dl = function(e, t) {
|
|
1464
1465
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1465
|
-
},
|
|
1466
|
-
var s =
|
|
1466
|
+
}, kl = function(e, t, n, r, o) {
|
|
1467
|
+
var s = Dl(e, window.getComputedStyle(t).direction), a = s * r, c = n.target, u = t.contains(c), p = !1, f = a > 0, d = 0, m = 0;
|
|
1467
1468
|
do {
|
|
1468
1469
|
if (!c)
|
|
1469
1470
|
break;
|
|
@@ -1483,22 +1484,22 @@ var qe = Bn ? { passive: !1 } : !1, Ml = function(e) {
|
|
|
1483
1484
|
return [e.deltaX, e.deltaY];
|
|
1484
1485
|
}, Zr = function(e) {
|
|
1485
1486
|
return e && "current" in e ? e.current : e;
|
|
1486
|
-
},
|
|
1487
|
+
}, Ll = function(e, t) {
|
|
1487
1488
|
return e[0] === t[0] && e[1] === t[1];
|
|
1488
|
-
},
|
|
1489
|
+
}, $l = function(e) {
|
|
1489
1490
|
return `
|
|
1490
1491
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1491
1492
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1492
1493
|
`);
|
|
1493
|
-
},
|
|
1494
|
-
function
|
|
1495
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(
|
|
1494
|
+
}, Fl = 0, Ze = [];
|
|
1495
|
+
function Bl(e) {
|
|
1496
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Fl++)[0], s = l.useState(ko)[0], a = l.useRef(e);
|
|
1496
1497
|
l.useEffect(function() {
|
|
1497
1498
|
a.current = e;
|
|
1498
1499
|
}, [e]), l.useEffect(function() {
|
|
1499
1500
|
if (e.inert) {
|
|
1500
1501
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
1501
|
-
var h =
|
|
1502
|
+
var h = al([e.lockRef.current], (e.shards || []).map(Zr), !0).filter(Boolean);
|
|
1502
1503
|
return h.forEach(function(g) {
|
|
1503
1504
|
return g.classList.add("allow-interactivity-".concat(o));
|
|
1504
1505
|
}), function() {
|
|
@@ -1525,12 +1526,12 @@ function Fl(e) {
|
|
|
1525
1526
|
if (!r.current && "changedTouches" in h && (b || C) && (r.current = N), !N)
|
|
1526
1527
|
return !0;
|
|
1527
1528
|
var P = r.current || N;
|
|
1528
|
-
return
|
|
1529
|
+
return kl(P, g, h, P === "h" ? b : C);
|
|
1529
1530
|
}, []), u = l.useCallback(function(h) {
|
|
1530
1531
|
var g = h;
|
|
1531
1532
|
if (!(!Ze.length || Ze[Ze.length - 1] !== s)) {
|
|
1532
1533
|
var w = "deltaY" in g ? qr(g) : Ot(g), y = t.current.filter(function(N) {
|
|
1533
|
-
return N.name === g.type && (N.target === g.target || g.target === N.shadowParent) &&
|
|
1534
|
+
return N.name === g.type && (N.target === g.target || g.target === N.shadowParent) && Ll(N.delta, w);
|
|
1534
1535
|
})[0];
|
|
1535
1536
|
if (y && y.should) {
|
|
1536
1537
|
g.cancelable && g.preventDefault();
|
|
@@ -1544,7 +1545,7 @@ function Fl(e) {
|
|
|
1544
1545
|
}
|
|
1545
1546
|
}
|
|
1546
1547
|
}, []), p = l.useCallback(function(h, g, w, y) {
|
|
1547
|
-
var b = { name: h, delta: g, target: w, should: y, shadowParent:
|
|
1548
|
+
var b = { name: h, delta: g, target: w, should: y, shadowParent: Wl(w) };
|
|
1548
1549
|
t.current.push(b), setTimeout(function() {
|
|
1549
1550
|
t.current = t.current.filter(function(C) {
|
|
1550
1551
|
return C !== b;
|
|
@@ -1572,28 +1573,28 @@ function Fl(e) {
|
|
|
1572
1573
|
return l.createElement(
|
|
1573
1574
|
l.Fragment,
|
|
1574
1575
|
null,
|
|
1575
|
-
x ? l.createElement(s, { styles:
|
|
1576
|
-
v ? l.createElement(
|
|
1576
|
+
x ? l.createElement(s, { styles: $l(o) }) : null,
|
|
1577
|
+
v ? l.createElement(Ml, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1577
1578
|
);
|
|
1578
1579
|
}
|
|
1579
|
-
function
|
|
1580
|
+
function Wl(e) {
|
|
1580
1581
|
for (var t = null; e !== null; )
|
|
1581
1582
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1582
1583
|
return t;
|
|
1583
1584
|
}
|
|
1584
|
-
const
|
|
1585
|
+
const Vl = vl(Do, Bl);
|
|
1585
1586
|
var wt = l.forwardRef(function(e, t) {
|
|
1586
|
-
return l.createElement(en, ge({}, e, { ref: t, sideCar:
|
|
1587
|
+
return l.createElement(en, ge({}, e, { ref: t, sideCar: Vl }));
|
|
1587
1588
|
});
|
|
1588
1589
|
wt.classNames = en.classNames;
|
|
1589
|
-
var
|
|
1590
|
+
var Hl = function(e) {
|
|
1590
1591
|
if (typeof document > "u")
|
|
1591
1592
|
return null;
|
|
1592
1593
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1593
1594
|
return t.ownerDocument.body;
|
|
1594
1595
|
}, Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Dt = {}, _n = 0, Bo = function(e) {
|
|
1595
1596
|
return e && (e.host || Bo(e.parentNode));
|
|
1596
|
-
},
|
|
1597
|
+
}, Ul = function(e, t) {
|
|
1597
1598
|
return t.map(function(n) {
|
|
1598
1599
|
if (e.contains(n))
|
|
1599
1600
|
return n;
|
|
@@ -1602,8 +1603,8 @@ var Vl = function(e) {
|
|
|
1602
1603
|
}).filter(function(n) {
|
|
1603
1604
|
return !!n;
|
|
1604
1605
|
});
|
|
1605
|
-
},
|
|
1606
|
-
var o =
|
|
1606
|
+
}, Kl = function(e, t, n, r) {
|
|
1607
|
+
var o = Ul(t, Array.isArray(e) ? e : [e]);
|
|
1607
1608
|
Dt[n] || (Dt[n] = /* @__PURE__ */ new WeakMap());
|
|
1608
1609
|
var s = Dt[n], a = [], c = /* @__PURE__ */ new Set(), u = new Set(o), p = function(d) {
|
|
1609
1610
|
!d || c.has(d) || (c.add(d), p(d.parentNode));
|
|
@@ -1630,11 +1631,11 @@ var Vl = function(e) {
|
|
|
1630
1631
|
};
|
|
1631
1632
|
}, tn = function(e, t, n) {
|
|
1632
1633
|
n === void 0 && (n = "data-aria-hidden");
|
|
1633
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
1634
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
1634
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Hl(e);
|
|
1635
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Kl(r, o, n, "aria-hidden")) : function() {
|
|
1635
1636
|
return null;
|
|
1636
1637
|
};
|
|
1637
|
-
}, nn = "Dialog", [Wo] = ye(nn), [
|
|
1638
|
+
}, nn = "Dialog", [Wo] = ye(nn), [Gl, ve] = Wo(nn), Vo = (e) => {
|
|
1638
1639
|
const {
|
|
1639
1640
|
__scopeDialog: t,
|
|
1640
1641
|
children: n,
|
|
@@ -1649,7 +1650,7 @@ var Vl = function(e) {
|
|
|
1649
1650
|
caller: nn
|
|
1650
1651
|
});
|
|
1651
1652
|
return /* @__PURE__ */ i.jsx(
|
|
1652
|
-
|
|
1653
|
+
Gl,
|
|
1653
1654
|
{
|
|
1654
1655
|
scope: t,
|
|
1655
1656
|
triggerRef: c,
|
|
@@ -1666,7 +1667,7 @@ var Vl = function(e) {
|
|
|
1666
1667
|
);
|
|
1667
1668
|
};
|
|
1668
1669
|
Vo.displayName = nn;
|
|
1669
|
-
var Ho = "DialogTrigger",
|
|
1670
|
+
var Ho = "DialogTrigger", zl = l.forwardRef(
|
|
1670
1671
|
(e, t) => {
|
|
1671
1672
|
const { __scopeDialog: n, ...r } = e, o = ve(Ho, n), s = G(t, o.triggerRef);
|
|
1672
1673
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -1684,28 +1685,28 @@ var Ho = "DialogTrigger", Gl = l.forwardRef(
|
|
|
1684
1685
|
);
|
|
1685
1686
|
}
|
|
1686
1687
|
);
|
|
1687
|
-
|
|
1688
|
-
var or = "DialogPortal", [
|
|
1688
|
+
zl.displayName = Ho;
|
|
1689
|
+
var or = "DialogPortal", [Yl, Uo] = Wo(or, {
|
|
1689
1690
|
forceMount: void 0
|
|
1690
1691
|
}), Ko = (e) => {
|
|
1691
1692
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = ve(or, t);
|
|
1692
|
-
return /* @__PURE__ */ i.jsx(
|
|
1693
|
+
return /* @__PURE__ */ i.jsx(Yl, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ i.jsx(fe, { present: n || s.open, children: /* @__PURE__ */ i.jsx(it, { asChild: !0, container: o, children: a }) })) });
|
|
1693
1694
|
};
|
|
1694
1695
|
Ko.displayName = or;
|
|
1695
1696
|
var Wt = "DialogOverlay", Go = l.forwardRef(
|
|
1696
1697
|
(e, t) => {
|
|
1697
1698
|
const n = Uo(Wt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = ve(Wt, e.__scopeDialog);
|
|
1698
|
-
return s.modal ? /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: /* @__PURE__ */ i.jsx(
|
|
1699
|
+
return s.modal ? /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: /* @__PURE__ */ i.jsx(ql, { ...o, ref: t }) }) : null;
|
|
1699
1700
|
}
|
|
1700
1701
|
);
|
|
1701
1702
|
Go.displayName = Wt;
|
|
1702
|
-
var
|
|
1703
|
+
var Xl = /* @__PURE__ */ Ue("DialogOverlay.RemoveScroll"), ql = l.forwardRef(
|
|
1703
1704
|
(e, t) => {
|
|
1704
1705
|
const { __scopeDialog: n, ...r } = e, o = ve(Wt, n);
|
|
1705
1706
|
return (
|
|
1706
1707
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1707
1708
|
// ie. when `Overlay` and `Content` are siblings
|
|
1708
|
-
/* @__PURE__ */ i.jsx(wt, { as:
|
|
1709
|
+
/* @__PURE__ */ i.jsx(wt, { as: Xl, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i.jsx(
|
|
1709
1710
|
V.div,
|
|
1710
1711
|
{
|
|
1711
1712
|
"data-state": ir(o.open),
|
|
@@ -1719,11 +1720,11 @@ var Yl = /* @__PURE__ */ Ue("DialogOverlay.RemoveScroll"), Xl = l.forwardRef(
|
|
|
1719
1720
|
), Ke = "DialogContent", zo = l.forwardRef(
|
|
1720
1721
|
(e, t) => {
|
|
1721
1722
|
const n = Uo(Ke, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = ve(Ke, e.__scopeDialog);
|
|
1722
|
-
return /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(
|
|
1723
|
+
return /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(Zl, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(Jl, { ...o, ref: t }) });
|
|
1723
1724
|
}
|
|
1724
1725
|
);
|
|
1725
1726
|
zo.displayName = Ke;
|
|
1726
|
-
var
|
|
1727
|
+
var Zl = l.forwardRef(
|
|
1727
1728
|
(e, t) => {
|
|
1728
1729
|
const n = ve(Ke, e.__scopeDialog), r = l.useRef(null), o = G(t, n.contentRef, r);
|
|
1729
1730
|
return l.useEffect(() => {
|
|
@@ -1750,7 +1751,7 @@ var ql = l.forwardRef(
|
|
|
1750
1751
|
}
|
|
1751
1752
|
);
|
|
1752
1753
|
}
|
|
1753
|
-
),
|
|
1754
|
+
), Jl = l.forwardRef(
|
|
1754
1755
|
(e, t) => {
|
|
1755
1756
|
const n = ve(Ke, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
1756
1757
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -1799,8 +1800,8 @@ var ql = l.forwardRef(
|
|
|
1799
1800
|
}
|
|
1800
1801
|
),
|
|
1801
1802
|
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1802
|
-
/* @__PURE__ */ i.jsx(
|
|
1803
|
-
/* @__PURE__ */ i.jsx(
|
|
1803
|
+
/* @__PURE__ */ i.jsx(Ql, { titleId: c.titleId }),
|
|
1804
|
+
/* @__PURE__ */ i.jsx(tu, { contentRef: u, descriptionId: c.descriptionId })
|
|
1804
1805
|
] })
|
|
1805
1806
|
] });
|
|
1806
1807
|
}
|
|
@@ -1836,11 +1837,11 @@ Qo.displayName = Jo;
|
|
|
1836
1837
|
function ir(e) {
|
|
1837
1838
|
return e ? "open" : "closed";
|
|
1838
1839
|
}
|
|
1839
|
-
var es = "DialogTitleWarning", [am, ts] =
|
|
1840
|
+
var es = "DialogTitleWarning", [am, ts] = Ic(es, {
|
|
1840
1841
|
contentName: Ke,
|
|
1841
1842
|
titleName: sr,
|
|
1842
1843
|
docsSlug: "dialog"
|
|
1843
|
-
}),
|
|
1844
|
+
}), Ql = ({ titleId: e }) => {
|
|
1844
1845
|
const t = ts(es), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1845
1846
|
|
|
1846
1847
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -1849,13 +1850,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
1849
1850
|
return l.useEffect(() => {
|
|
1850
1851
|
e && (document.getElementById(e) || console.error(n));
|
|
1851
1852
|
}, [n, e]), null;
|
|
1852
|
-
},
|
|
1853
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ts(
|
|
1853
|
+
}, eu = "DialogDescriptionWarning", tu = ({ contentRef: e, descriptionId: t }) => {
|
|
1854
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ts(eu).contentName}}.`;
|
|
1854
1855
|
return l.useEffect(() => {
|
|
1855
1856
|
const o = e.current?.getAttribute("aria-describedby");
|
|
1856
1857
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
1857
1858
|
}, [r, e, t]), null;
|
|
1858
|
-
},
|
|
1859
|
+
}, nu = Vo, ru = Ko, ou = Go, su = zo, iu = Xo, au = Zo, ns = Qo;
|
|
1859
1860
|
function cu(e) {
|
|
1860
1861
|
const t = l.useRef({ value: e, previous: e });
|
|
1861
1862
|
return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
@@ -1894,10 +1895,10 @@ const uu = ["top", "right", "bottom", "left"], Oe = Math.min, ie = Math.max, Vt
|
|
|
1894
1895
|
function Wn(e, t, n) {
|
|
1895
1896
|
return ie(e, Oe(t, n));
|
|
1896
1897
|
}
|
|
1897
|
-
function
|
|
1898
|
+
function Se(e, t) {
|
|
1898
1899
|
return typeof e == "function" ? e(t) : e;
|
|
1899
1900
|
}
|
|
1900
|
-
function
|
|
1901
|
+
function Re(e) {
|
|
1901
1902
|
return e.split("-")[0];
|
|
1902
1903
|
}
|
|
1903
1904
|
function at(e) {
|
|
@@ -1944,11 +1945,11 @@ function vu(e, t, n) {
|
|
|
1944
1945
|
}
|
|
1945
1946
|
function gu(e, t, n, r) {
|
|
1946
1947
|
const o = at(e);
|
|
1947
|
-
let s = vu(
|
|
1948
|
+
let s = vu(Re(e), n === "start", r);
|
|
1948
1949
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Vn)))), s;
|
|
1949
1950
|
}
|
|
1950
1951
|
function Ht(e) {
|
|
1951
|
-
const t =
|
|
1952
|
+
const t = Re(e);
|
|
1952
1953
|
return du[t] + e.slice(t.length);
|
|
1953
1954
|
}
|
|
1954
1955
|
function xu(e) {
|
|
@@ -1960,7 +1961,7 @@ function xu(e) {
|
|
|
1960
1961
|
...e
|
|
1961
1962
|
};
|
|
1962
1963
|
}
|
|
1963
|
-
function
|
|
1964
|
+
function rs(e) {
|
|
1964
1965
|
return typeof e != "number" ? xu(e) : {
|
|
1965
1966
|
top: e,
|
|
1966
1967
|
right: e,
|
|
@@ -1991,7 +1992,7 @@ function eo(e, t, n) {
|
|
|
1991
1992
|
reference: r,
|
|
1992
1993
|
floating: o
|
|
1993
1994
|
} = e;
|
|
1994
|
-
const s = xe(t), a = lr(t), c = cr(a), u =
|
|
1995
|
+
const s = xe(t), a = lr(t), c = cr(a), u = Re(t), p = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, m = r[c] / 2 - o[c] / 2;
|
|
1995
1996
|
let v;
|
|
1996
1997
|
switch (u) {
|
|
1997
1998
|
case "top":
|
|
@@ -2050,7 +2051,7 @@ async function wu(e, t) {
|
|
|
2050
2051
|
elementContext: d = "floating",
|
|
2051
2052
|
altBoundary: m = !1,
|
|
2052
2053
|
padding: v = 0
|
|
2053
|
-
} =
|
|
2054
|
+
} = Se(t, e), x = rs(v), g = c[m ? d === "floating" ? "reference" : "floating" : d], w = Ut(await s.getClippingRect({
|
|
2054
2055
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
2055
2056
|
boundary: p,
|
|
2056
2057
|
rootBoundary: f,
|
|
@@ -2158,10 +2159,10 @@ const yu = 50, Cu = async (e, t, n) => {
|
|
|
2158
2159
|
} = t, {
|
|
2159
2160
|
element: p,
|
|
2160
2161
|
padding: f = 0
|
|
2161
|
-
} =
|
|
2162
|
+
} = Se(e, t) || {};
|
|
2162
2163
|
if (p == null)
|
|
2163
2164
|
return {};
|
|
2164
|
-
const d =
|
|
2165
|
+
const d = rs(f), m = {
|
|
2165
2166
|
x: n,
|
|
2166
2167
|
y: r
|
|
2167
2168
|
}, v = lr(o), x = cr(v), h = await a.getDimensions(p), g = v === "y", w = g ? "top" : "left", y = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", C = s.reference[x] + s.reference[v] - m[v] - s.floating[x], N = m[v] - s.reference[v], _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(p));
|
|
@@ -2201,10 +2202,10 @@ const yu = 50, Cu = async (e, t, n) => {
|
|
|
2201
2202
|
fallbackAxisSideDirection: x = "none",
|
|
2202
2203
|
flipAlignment: h = !0,
|
|
2203
2204
|
...g
|
|
2204
|
-
} =
|
|
2205
|
+
} = Se(e, t);
|
|
2205
2206
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
2206
2207
|
return {};
|
|
2207
|
-
const w =
|
|
2208
|
+
const w = Re(o), y = xe(c), b = Re(c) === c, C = await (u.isRTL == null ? void 0 : u.isRTL(p.floating)), N = m || (b || !h ? [Ht(c)] : pu(c)), _ = x !== "none";
|
|
2208
2209
|
!m && _ && N.push(...gu(c, h, x, C));
|
|
2209
2210
|
const R = [c, ...N], S = await u.detectOverflow(t, g), j = [];
|
|
2210
2211
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -2284,7 +2285,7 @@ const Su = function(e) {
|
|
|
2284
2285
|
} = t, {
|
|
2285
2286
|
strategy: o = "referenceHidden",
|
|
2286
2287
|
...s
|
|
2287
|
-
} =
|
|
2288
|
+
} = Se(e, t);
|
|
2288
2289
|
switch (o) {
|
|
2289
2290
|
case "referenceHidden": {
|
|
2290
2291
|
const a = await r.detectOverflow(t, {
|
|
@@ -2315,13 +2316,13 @@ const Su = function(e) {
|
|
|
2315
2316
|
}
|
|
2316
2317
|
}
|
|
2317
2318
|
};
|
|
2318
|
-
},
|
|
2319
|
+
}, os = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2319
2320
|
async function Ru(e, t) {
|
|
2320
2321
|
const {
|
|
2321
2322
|
placement: n,
|
|
2322
2323
|
platform: r,
|
|
2323
2324
|
elements: o
|
|
2324
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a =
|
|
2325
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Re(n), c = at(n), u = xe(n) === "y", p = os.has(a) ? -1 : 1, f = s && u ? -1 : 1, d = Se(t, e);
|
|
2325
2326
|
let {
|
|
2326
2327
|
mainAxis: m,
|
|
2327
2328
|
crossAxis: v,
|
|
@@ -2391,10 +2392,10 @@ const Nu = function(e) {
|
|
|
2391
2392
|
}
|
|
2392
2393
|
},
|
|
2393
2394
|
...p
|
|
2394
|
-
} =
|
|
2395
|
+
} = Se(e, t), f = {
|
|
2395
2396
|
x: n,
|
|
2396
2397
|
y: r
|
|
2397
|
-
}, d = await s.detectOverflow(t, p), m = xe(
|
|
2398
|
+
}, d = await s.detectOverflow(t, p), m = xe(Re(o)), v = ar(m);
|
|
2398
2399
|
let x = f[v], h = f[m];
|
|
2399
2400
|
if (a) {
|
|
2400
2401
|
const w = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", b = x + d[w], C = x - d[y];
|
|
@@ -2436,12 +2437,12 @@ const Nu = function(e) {
|
|
|
2436
2437
|
offset: c = 0,
|
|
2437
2438
|
mainAxis: u = !0,
|
|
2438
2439
|
crossAxis: p = !0
|
|
2439
|
-
} =
|
|
2440
|
+
} = Se(e, t), f = {
|
|
2440
2441
|
x: n,
|
|
2441
2442
|
y: r
|
|
2442
2443
|
}, d = xe(o), m = ar(d);
|
|
2443
2444
|
let v = f[m], x = f[d];
|
|
2444
|
-
const h =
|
|
2445
|
+
const h = Se(c, t), g = typeof h == "number" ? {
|
|
2445
2446
|
mainAxis: h,
|
|
2446
2447
|
crossAxis: 0
|
|
2447
2448
|
} : {
|
|
@@ -2455,7 +2456,7 @@ const Nu = function(e) {
|
|
|
2455
2456
|
}
|
|
2456
2457
|
if (p) {
|
|
2457
2458
|
var w, y;
|
|
2458
|
-
const b = m === "y" ? "width" : "height", C =
|
|
2459
|
+
const b = m === "y" ? "width" : "height", C = os.has(Re(o)), N = s.reference[d] - s.floating[b] + (C && ((w = a.offset) == null ? void 0 : w[d]) || 0) + (C ? 0 : g.crossAxis), _ = s.reference[d] + s.reference[b] + (C ? 0 : ((y = a.offset) == null ? void 0 : y[d]) || 0) - (C ? g.crossAxis : 0);
|
|
2459
2460
|
x < N ? x = N : x > _ && (x = _);
|
|
2460
2461
|
}
|
|
2461
2462
|
return {
|
|
@@ -2479,7 +2480,7 @@ const Nu = function(e) {
|
|
|
2479
2480
|
apply: u = () => {
|
|
2480
2481
|
},
|
|
2481
2482
|
...p
|
|
2482
|
-
} =
|
|
2483
|
+
} = Se(e, t), f = await a.detectOverflow(t, p), d = Re(o), m = at(o), v = xe(o) === "y", {
|
|
2483
2484
|
width: x,
|
|
2484
2485
|
height: h
|
|
2485
2486
|
} = s.floating;
|
|
@@ -2509,7 +2510,7 @@ function rn() {
|
|
|
2509
2510
|
return typeof window < "u";
|
|
2510
2511
|
}
|
|
2511
2512
|
function ct(e) {
|
|
2512
|
-
return
|
|
2513
|
+
return ss(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2513
2514
|
}
|
|
2514
2515
|
function ce(e) {
|
|
2515
2516
|
var t;
|
|
@@ -2517,15 +2518,15 @@ function ce(e) {
|
|
|
2517
2518
|
}
|
|
2518
2519
|
function Ce(e) {
|
|
2519
2520
|
var t;
|
|
2520
|
-
return (t = (
|
|
2521
|
+
return (t = (ss(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2521
2522
|
}
|
|
2522
|
-
function
|
|
2523
|
+
function ss(e) {
|
|
2523
2524
|
return rn() ? e instanceof Node || e instanceof ce(e).Node : !1;
|
|
2524
2525
|
}
|
|
2525
2526
|
function he(e) {
|
|
2526
2527
|
return rn() ? e instanceof Element || e instanceof ce(e).Element : !1;
|
|
2527
2528
|
}
|
|
2528
|
-
function
|
|
2529
|
+
function Ne(e) {
|
|
2529
2530
|
return rn() ? e instanceof HTMLElement || e instanceof ce(e).HTMLElement : !1;
|
|
2530
2531
|
}
|
|
2531
2532
|
function ro(e) {
|
|
@@ -2563,7 +2564,7 @@ function ur(e) {
|
|
|
2563
2564
|
}
|
|
2564
2565
|
function Ou(e) {
|
|
2565
2566
|
let t = Ie(e);
|
|
2566
|
-
for (;
|
|
2567
|
+
for (; Ne(t) && !nt(t); ) {
|
|
2567
2568
|
if (ur(t))
|
|
2568
2569
|
return t;
|
|
2569
2570
|
if (on(t))
|
|
@@ -2602,14 +2603,14 @@ function Ie(e) {
|
|
|
2602
2603
|
);
|
|
2603
2604
|
return ro(t) ? t.host : t;
|
|
2604
2605
|
}
|
|
2605
|
-
function
|
|
2606
|
+
function is(e) {
|
|
2606
2607
|
const t = Ie(e);
|
|
2607
|
-
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
2608
|
+
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && yt(t) ? t : is(t);
|
|
2608
2609
|
}
|
|
2609
2610
|
function ht(e, t, n) {
|
|
2610
2611
|
var r;
|
|
2611
2612
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2612
|
-
const o =
|
|
2613
|
+
const o = is(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = ce(o);
|
|
2613
2614
|
if (s) {
|
|
2614
2615
|
const c = Hn(a);
|
|
2615
2616
|
return t.concat(a, a.visualViewport || [], yt(o) ? o : [], c && n ? ht(c) : []);
|
|
@@ -2619,10 +2620,10 @@ function ht(e, t, n) {
|
|
|
2619
2620
|
function Hn(e) {
|
|
2620
2621
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2621
2622
|
}
|
|
2622
|
-
function
|
|
2623
|
+
function as(e) {
|
|
2623
2624
|
const t = me(e);
|
|
2624
2625
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
2625
|
-
const o =
|
|
2626
|
+
const o = Ne(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, c = Vt(n) !== s || Vt(r) !== a;
|
|
2626
2627
|
return c && (n = s, r = a), {
|
|
2627
2628
|
width: n,
|
|
2628
2629
|
height: r,
|
|
@@ -2634,13 +2635,13 @@ function fr(e) {
|
|
|
2634
2635
|
}
|
|
2635
2636
|
function tt(e) {
|
|
2636
2637
|
const t = fr(e);
|
|
2637
|
-
if (!
|
|
2638
|
+
if (!Ne(t))
|
|
2638
2639
|
return we(1);
|
|
2639
2640
|
const n = t.getBoundingClientRect(), {
|
|
2640
2641
|
width: r,
|
|
2641
2642
|
height: o,
|
|
2642
2643
|
$: s
|
|
2643
|
-
} =
|
|
2644
|
+
} = as(t);
|
|
2644
2645
|
let a = (s ? Vt(n.width) : n.width) / r, c = (s ? Vt(n.height) : n.height) / o;
|
|
2645
2646
|
return (!a || !Number.isFinite(a)) && (a = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
2646
2647
|
x: a,
|
|
@@ -2648,7 +2649,7 @@ function tt(e) {
|
|
|
2648
2649
|
};
|
|
2649
2650
|
}
|
|
2650
2651
|
const Iu = /* @__PURE__ */ we(0);
|
|
2651
|
-
function
|
|
2652
|
+
function cs(e) {
|
|
2652
2653
|
const t = ce(e);
|
|
2653
2654
|
return !dr() || !t.visualViewport ? Iu : {
|
|
2654
2655
|
x: t.visualViewport.offsetLeft,
|
|
@@ -2663,7 +2664,7 @@ function Ge(e, t, n, r) {
|
|
|
2663
2664
|
const o = e.getBoundingClientRect(), s = fr(e);
|
|
2664
2665
|
let a = we(1);
|
|
2665
2666
|
t && (r ? he(r) && (a = tt(r)) : a = tt(e));
|
|
2666
|
-
const c = Du(s, n, r) ?
|
|
2667
|
+
const c = Du(s, n, r) ? cs(s) : we(0);
|
|
2667
2668
|
let u = (o.left + c.x) / a.x, p = (o.top + c.y) / a.y, f = o.width / a.x, d = o.height / a.y;
|
|
2668
2669
|
if (s) {
|
|
2669
2670
|
const m = ce(s), v = r && he(r) ? ce(r) : r;
|
|
@@ -2684,7 +2685,7 @@ function an(e, t) {
|
|
|
2684
2685
|
const n = sn(e).scrollLeft;
|
|
2685
2686
|
return t ? t.left + n : Ge(Ce(e)).left + n;
|
|
2686
2687
|
}
|
|
2687
|
-
function
|
|
2688
|
+
function ls(e, t) {
|
|
2688
2689
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - an(e, n), o = n.top + t.scrollTop;
|
|
2689
2690
|
return {
|
|
2690
2691
|
x: r,
|
|
@@ -2705,12 +2706,12 @@ function ku(e) {
|
|
|
2705
2706
|
scrollLeft: 0,
|
|
2706
2707
|
scrollTop: 0
|
|
2707
2708
|
}, p = we(1);
|
|
2708
|
-
const f = we(0), d =
|
|
2709
|
+
const f = we(0), d = Ne(r);
|
|
2709
2710
|
if ((d || !d && !s) && ((ct(r) !== "body" || yt(a)) && (u = sn(r)), d)) {
|
|
2710
2711
|
const v = Ge(r);
|
|
2711
2712
|
p = tt(r), f.x = v.x + r.clientLeft, f.y = v.y + r.clientTop;
|
|
2712
2713
|
}
|
|
2713
|
-
const m = a && !d && !s ?
|
|
2714
|
+
const m = a && !d && !s ? ls(a, u) : we(0);
|
|
2714
2715
|
return {
|
|
2715
2716
|
width: n.width * p.x,
|
|
2716
2717
|
height: n.height * p.y,
|
|
@@ -2754,7 +2755,7 @@ function Fu(e, t) {
|
|
|
2754
2755
|
};
|
|
2755
2756
|
}
|
|
2756
2757
|
function Bu(e, t) {
|
|
2757
|
-
const n = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s =
|
|
2758
|
+
const n = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ne(e) ? tt(e) : we(1), a = e.clientWidth * s.x, c = e.clientHeight * s.y, u = o * s.x, p = r * s.y;
|
|
2758
2759
|
return {
|
|
2759
2760
|
width: a,
|
|
2760
2761
|
height: c,
|
|
@@ -2771,7 +2772,7 @@ function so(e, t, n) {
|
|
|
2771
2772
|
else if (he(t))
|
|
2772
2773
|
r = Bu(t, n);
|
|
2773
2774
|
else {
|
|
2774
|
-
const o =
|
|
2775
|
+
const o = cs(e);
|
|
2775
2776
|
r = {
|
|
2776
2777
|
x: t.x - o.x,
|
|
2777
2778
|
y: t.y - o.y,
|
|
@@ -2781,9 +2782,9 @@ function so(e, t, n) {
|
|
|
2781
2782
|
}
|
|
2782
2783
|
return Ut(r);
|
|
2783
2784
|
}
|
|
2784
|
-
function
|
|
2785
|
+
function us(e, t) {
|
|
2785
2786
|
const n = Ie(e);
|
|
2786
|
-
return n === t || !he(n) || nt(n) ? !1 : me(n).position === "fixed" ||
|
|
2787
|
+
return n === t || !he(n) || nt(n) ? !1 : me(n).position === "fixed" || us(n, t);
|
|
2787
2788
|
}
|
|
2788
2789
|
function Wu(e, t) {
|
|
2789
2790
|
const n = t.get(e);
|
|
@@ -2794,7 +2795,7 @@ function Wu(e, t) {
|
|
|
2794
2795
|
let a = s ? Ie(e) : e;
|
|
2795
2796
|
for (; he(a) && !nt(a); ) {
|
|
2796
2797
|
const c = me(a), u = ur(a);
|
|
2797
|
-
!u && c.position === "fixed" && (o = null), (s ? !u && !o : !u && c.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || yt(a) && !u &&
|
|
2798
|
+
!u && c.position === "fixed" && (o = null), (s ? !u && !o : !u && c.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || yt(a) && !u && us(e, a)) ? r = r.filter((f) => f !== a) : o = c, a = Ie(a);
|
|
2798
2799
|
}
|
|
2799
2800
|
return t.set(e, r), r;
|
|
2800
2801
|
}
|
|
@@ -2822,14 +2823,14 @@ function Hu(e) {
|
|
|
2822
2823
|
const {
|
|
2823
2824
|
width: t,
|
|
2824
2825
|
height: n
|
|
2825
|
-
} =
|
|
2826
|
+
} = as(e);
|
|
2826
2827
|
return {
|
|
2827
2828
|
width: t,
|
|
2828
2829
|
height: n
|
|
2829
2830
|
};
|
|
2830
2831
|
}
|
|
2831
2832
|
function Uu(e, t, n) {
|
|
2832
|
-
const r =
|
|
2833
|
+
const r = Ne(t), o = Ce(t), s = n === "fixed", a = Ge(e, !0, s, t);
|
|
2833
2834
|
let c = {
|
|
2834
2835
|
scrollLeft: 0,
|
|
2835
2836
|
scrollTop: 0
|
|
@@ -2844,7 +2845,7 @@ function Uu(e, t, n) {
|
|
|
2844
2845
|
u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
|
|
2845
2846
|
} else o && p();
|
|
2846
2847
|
s && !r && o && p();
|
|
2847
|
-
const f = o && !r && !s ?
|
|
2848
|
+
const f = o && !r && !s ? ls(o, c) : we(0), d = a.left + c.scrollLeft - u.x - f.x, m = a.top + c.scrollTop - u.y - f.y;
|
|
2848
2849
|
return {
|
|
2849
2850
|
x: d,
|
|
2850
2851
|
y: m,
|
|
@@ -2856,18 +2857,18 @@ function jn(e) {
|
|
|
2856
2857
|
return me(e).position === "static";
|
|
2857
2858
|
}
|
|
2858
2859
|
function io(e, t) {
|
|
2859
|
-
if (!
|
|
2860
|
+
if (!Ne(e) || me(e).position === "fixed")
|
|
2860
2861
|
return null;
|
|
2861
2862
|
if (t)
|
|
2862
2863
|
return t(e);
|
|
2863
2864
|
let n = e.offsetParent;
|
|
2864
2865
|
return Ce(e) === n && (n = n.ownerDocument.body), n;
|
|
2865
2866
|
}
|
|
2866
|
-
function
|
|
2867
|
+
function ds(e, t) {
|
|
2867
2868
|
const n = ce(e);
|
|
2868
2869
|
if (on(e))
|
|
2869
2870
|
return n;
|
|
2870
|
-
if (!
|
|
2871
|
+
if (!Ne(e)) {
|
|
2871
2872
|
let o = Ie(e);
|
|
2872
2873
|
for (; o && !nt(o); ) {
|
|
2873
2874
|
if (he(o) && !jn(o))
|
|
@@ -2882,7 +2883,7 @@ function us(e, t) {
|
|
|
2882
2883
|
return r && nt(r) && jn(r) && !ur(r) ? n : r || Ou(e) || n;
|
|
2883
2884
|
}
|
|
2884
2885
|
const Ku = async function(e) {
|
|
2885
|
-
const t = this.getOffsetParent ||
|
|
2886
|
+
const t = this.getOffsetParent || ds, n = this.getDimensions, r = await n(e.floating);
|
|
2886
2887
|
return {
|
|
2887
2888
|
reference: Uu(e.reference, await t(e.floating), e.strategy),
|
|
2888
2889
|
floating: {
|
|
@@ -2900,7 +2901,7 @@ const zu = {
|
|
|
2900
2901
|
convertOffsetParentRelativeRectToViewportRelativeRect: ku,
|
|
2901
2902
|
getDocumentElement: Ce,
|
|
2902
2903
|
getClippingRect: Vu,
|
|
2903
|
-
getOffsetParent:
|
|
2904
|
+
getOffsetParent: ds,
|
|
2904
2905
|
getElementRects: Ku,
|
|
2905
2906
|
getClientRects: Lu,
|
|
2906
2907
|
getDimensions: Hu,
|
|
@@ -2908,7 +2909,7 @@ const zu = {
|
|
|
2908
2909
|
isElement: he,
|
|
2909
2910
|
isRTL: Gu
|
|
2910
2911
|
};
|
|
2911
|
-
function
|
|
2912
|
+
function fs(e, t) {
|
|
2912
2913
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2913
2914
|
}
|
|
2914
2915
|
function Yu(e, t) {
|
|
@@ -2942,7 +2943,7 @@ function Yu(e, t) {
|
|
|
2942
2943
|
a(!1, 1e-7);
|
|
2943
2944
|
}, 1e3);
|
|
2944
2945
|
}
|
|
2945
|
-
R === 1 && !
|
|
2946
|
+
R === 1 && !fs(p, e.getBoundingClientRect()) && a(), C = !1;
|
|
2946
2947
|
}
|
|
2947
2948
|
try {
|
|
2948
2949
|
n = new IntersectionObserver(N, {
|
|
@@ -2984,7 +2985,7 @@ function Xu(e, t, n, r) {
|
|
|
2984
2985
|
u && g();
|
|
2985
2986
|
function g() {
|
|
2986
2987
|
const w = Ge(e);
|
|
2987
|
-
h && !
|
|
2988
|
+
h && !fs(h, w) && n(), h = w, x = requestAnimationFrame(g);
|
|
2988
2989
|
}
|
|
2989
2990
|
return n(), () => {
|
|
2990
2991
|
var w;
|
|
@@ -3038,11 +3039,11 @@ function Kt(e, t) {
|
|
|
3038
3039
|
}
|
|
3039
3040
|
return e !== e && t !== t;
|
|
3040
3041
|
}
|
|
3041
|
-
function
|
|
3042
|
+
function ps(e) {
|
|
3042
3043
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3043
3044
|
}
|
|
3044
3045
|
function co(e, t) {
|
|
3045
|
-
const n =
|
|
3046
|
+
const n = ps(e);
|
|
3046
3047
|
return Math.round(t * n) / n;
|
|
3047
3048
|
}
|
|
3048
3049
|
function Tn(e) {
|
|
@@ -3136,7 +3137,7 @@ function sd(e) {
|
|
|
3136
3137
|
return c ? {
|
|
3137
3138
|
...k,
|
|
3138
3139
|
transform: "translate(" + A + "px, " + Y + "px)",
|
|
3139
|
-
...
|
|
3140
|
+
...ps($.floating) >= 1.5 && {
|
|
3140
3141
|
willChange: "transform"
|
|
3141
3142
|
}
|
|
3142
3143
|
} : {
|
|
@@ -3220,7 +3221,7 @@ const id = (e) => {
|
|
|
3220
3221
|
options: [e, t]
|
|
3221
3222
|
};
|
|
3222
3223
|
};
|
|
3223
|
-
var hd = "Arrow",
|
|
3224
|
+
var hd = "Arrow", hs = l.forwardRef((e, t) => {
|
|
3224
3225
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
3225
3226
|
return /* @__PURE__ */ i.jsx(
|
|
3226
3227
|
V.svg,
|
|
@@ -3235,23 +3236,23 @@ var hd = "Arrow", ps = l.forwardRef((e, t) => {
|
|
|
3235
3236
|
}
|
|
3236
3237
|
);
|
|
3237
3238
|
});
|
|
3238
|
-
|
|
3239
|
-
var md =
|
|
3239
|
+
hs.displayName = hd;
|
|
3240
|
+
var md = hs, pr = "Popper", [ms, De] = ye(pr), [vd, vs] = ms(pr), gs = (e) => {
|
|
3240
3241
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
3241
3242
|
return /* @__PURE__ */ i.jsx(vd, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
3242
3243
|
};
|
|
3243
|
-
|
|
3244
|
-
var
|
|
3244
|
+
gs.displayName = pr;
|
|
3245
|
+
var xs = "PopperAnchor", ws = l.forwardRef(
|
|
3245
3246
|
(e, t) => {
|
|
3246
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s =
|
|
3247
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = vs(xs, n), a = l.useRef(null), c = G(t, a), u = l.useRef(null);
|
|
3247
3248
|
return l.useEffect(() => {
|
|
3248
3249
|
const p = u.current;
|
|
3249
3250
|
u.current = r?.current || a.current, p !== u.current && s.onAnchorChange(u.current);
|
|
3250
3251
|
}), r ? null : /* @__PURE__ */ i.jsx(V.div, { ...o, ref: c });
|
|
3251
3252
|
}
|
|
3252
3253
|
);
|
|
3253
|
-
|
|
3254
|
-
var hr = "PopperContent", [gd, xd] =
|
|
3254
|
+
ws.displayName = xs;
|
|
3255
|
+
var hr = "PopperContent", [gd, xd] = ms(hr), ys = l.forwardRef(
|
|
3255
3256
|
(e, t) => {
|
|
3256
3257
|
const {
|
|
3257
3258
|
__scopePopper: n,
|
|
@@ -3268,7 +3269,7 @@ var hr = "PopperContent", [gd, xd] = hs(hr), ws = l.forwardRef(
|
|
|
3268
3269
|
updatePositionStrategy: v = "optimized",
|
|
3269
3270
|
onPlaced: x,
|
|
3270
3271
|
...h
|
|
3271
|
-
} = e, g =
|
|
3272
|
+
} = e, g = vs(hr, n), [w, y] = l.useState(null), b = G(t, (M) => y(M)), [C, N] = l.useState(null), _ = lu(C), R = _?.width ?? 0, S = _?.height ?? 0, j = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, O = Array.isArray(p) ? p : [p], P = O.length > 0, I = {
|
|
3272
3273
|
padding: L,
|
|
3273
3274
|
boundary: O.filter(yd),
|
|
3274
3275
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -3303,7 +3304,7 @@ var hr = "PopperContent", [gd, xd] = hs(hr), ws = l.forwardRef(
|
|
|
3303
3304
|
Cd({ arrowWidth: R, arrowHeight: S }),
|
|
3304
3305
|
m && fd({ strategy: "referenceHidden", ...I })
|
|
3305
3306
|
]
|
|
3306
|
-
}), [A, Y] =
|
|
3307
|
+
}), [A, Y] = Es($), E = de(x);
|
|
3307
3308
|
te(() => {
|
|
3308
3309
|
B && E?.();
|
|
3309
3310
|
}, [B, E]);
|
|
@@ -3364,14 +3365,14 @@ var hr = "PopperContent", [gd, xd] = hs(hr), ws = l.forwardRef(
|
|
|
3364
3365
|
);
|
|
3365
3366
|
}
|
|
3366
3367
|
);
|
|
3367
|
-
|
|
3368
|
-
var
|
|
3368
|
+
ys.displayName = hr;
|
|
3369
|
+
var Cs = "PopperArrow", wd = {
|
|
3369
3370
|
top: "bottom",
|
|
3370
3371
|
right: "left",
|
|
3371
3372
|
bottom: "top",
|
|
3372
3373
|
left: "right"
|
|
3373
|
-
},
|
|
3374
|
-
const { __scopePopper: r, ...o } = t, s = xd(
|
|
3374
|
+
}, bs = l.forwardRef(function(t, n) {
|
|
3375
|
+
const { __scopePopper: r, ...o } = t, s = xd(Cs, r), a = wd[s.placedSide];
|
|
3375
3376
|
return (
|
|
3376
3377
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
3377
3378
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -3415,7 +3416,7 @@ var ys = "PopperArrow", wd = {
|
|
|
3415
3416
|
)
|
|
3416
3417
|
);
|
|
3417
3418
|
});
|
|
3418
|
-
|
|
3419
|
+
bs.displayName = Cs;
|
|
3419
3420
|
function yd(e) {
|
|
3420
3421
|
return e !== null;
|
|
3421
3422
|
}
|
|
@@ -3423,22 +3424,22 @@ var Cd = (e) => ({
|
|
|
3423
3424
|
name: "transformOrigin",
|
|
3424
3425
|
options: e,
|
|
3425
3426
|
fn(t) {
|
|
3426
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, c = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [p, f] =
|
|
3427
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, c = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [p, f] = Es(n), d = { start: "0%", center: "50%", end: "100%" }[f], m = (o.arrow?.x ?? 0) + c / 2, v = (o.arrow?.y ?? 0) + u / 2;
|
|
3427
3428
|
let x = "", h = "";
|
|
3428
3429
|
return p === "bottom" ? (x = a ? d : `${m}px`, h = `${-u}px`) : p === "top" ? (x = a ? d : `${m}px`, h = `${r.floating.height + u}px`) : p === "right" ? (x = `${-u}px`, h = a ? d : `${v}px`) : p === "left" && (x = `${r.floating.width + u}px`, h = a ? d : `${v}px`), { data: { x, y: h } };
|
|
3429
3430
|
}
|
|
3430
3431
|
});
|
|
3431
|
-
function
|
|
3432
|
+
function Es(e) {
|
|
3432
3433
|
const [t, n = "center"] = e.split("-");
|
|
3433
3434
|
return [t, n];
|
|
3434
3435
|
}
|
|
3435
|
-
var Ct =
|
|
3436
|
+
var Ct = gs, bt = ws, cn = ys, ln = bs, An = "rovingFocusGroup.onEntryFocus", bd = { bubbles: !1, cancelable: !0 }, Et = "RovingFocusGroup", [Un, Ss, Ed] = nr(Et), [Sd, Rs] = ye(
|
|
3436
3437
|
Et,
|
|
3437
3438
|
[Ed]
|
|
3438
|
-
), [Rd, Nd] = Sd(Et),
|
|
3439
|
+
), [Rd, Nd] = Sd(Et), Ns = l.forwardRef(
|
|
3439
3440
|
(e, t) => /* @__PURE__ */ i.jsx(Un.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(Un.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(Pd, { ...e, ref: t }) }) })
|
|
3440
3441
|
);
|
|
3441
|
-
|
|
3442
|
+
Ns.displayName = Et;
|
|
3442
3443
|
var Pd = l.forwardRef((e, t) => {
|
|
3443
3444
|
const {
|
|
3444
3445
|
__scopeRovingFocusGroup: n,
|
|
@@ -3456,7 +3457,7 @@ var Pd = l.forwardRef((e, t) => {
|
|
|
3456
3457
|
defaultProp: c ?? null,
|
|
3457
3458
|
onChange: u,
|
|
3458
3459
|
caller: Et
|
|
3459
|
-
}), [w, y] = l.useState(!1), b = de(p), C =
|
|
3460
|
+
}), [w, y] = l.useState(!1), b = de(p), C = Ss(n), N = l.useRef(!1), [_, R] = l.useState(0);
|
|
3460
3461
|
return l.useEffect(() => {
|
|
3461
3462
|
const S = m.current;
|
|
3462
3463
|
if (S)
|
|
@@ -3501,7 +3502,7 @@ var Pd = l.forwardRef((e, t) => {
|
|
|
3501
3502
|
const O = C().filter(($) => $.focusable), P = O.find(($) => $.active), I = O.find(($) => $.id === h), W = [P, I, ...O].filter(
|
|
3502
3503
|
Boolean
|
|
3503
3504
|
).map(($) => $.ref.current);
|
|
3504
|
-
|
|
3505
|
+
Ms(W, f);
|
|
3505
3506
|
}
|
|
3506
3507
|
}
|
|
3507
3508
|
N.current = !1;
|
|
@@ -3511,7 +3512,7 @@ var Pd = l.forwardRef((e, t) => {
|
|
|
3511
3512
|
)
|
|
3512
3513
|
}
|
|
3513
3514
|
);
|
|
3514
|
-
}),
|
|
3515
|
+
}), Ps = "RovingFocusGroupItem", _s = l.forwardRef(
|
|
3515
3516
|
(e, t) => {
|
|
3516
3517
|
const {
|
|
3517
3518
|
__scopeRovingFocusGroup: n,
|
|
@@ -3520,7 +3521,7 @@ var Pd = l.forwardRef((e, t) => {
|
|
|
3520
3521
|
tabStopId: s,
|
|
3521
3522
|
children: a,
|
|
3522
3523
|
...c
|
|
3523
|
-
} = e, u = ae(), p = s || u, f = Nd(
|
|
3524
|
+
} = e, u = ae(), p = s || u, f = Nd(Ps, n), d = f.currentTabStopId === p, m = Ss(n), { onFocusableItemAdd: v, onFocusableItemRemove: x, currentTabStopId: h } = f;
|
|
3524
3525
|
return l.useEffect(() => {
|
|
3525
3526
|
if (r)
|
|
3526
3527
|
return v(), () => x();
|
|
@@ -3559,7 +3560,7 @@ var Pd = l.forwardRef((e, t) => {
|
|
|
3559
3560
|
const C = b.indexOf(g.currentTarget);
|
|
3560
3561
|
b = f.loop ? Td(b, C + 1) : b.slice(C + 1);
|
|
3561
3562
|
}
|
|
3562
|
-
setTimeout(() =>
|
|
3563
|
+
setTimeout(() => Ms(b));
|
|
3563
3564
|
}
|
|
3564
3565
|
}),
|
|
3565
3566
|
children: typeof a == "function" ? a({ isCurrentTabStop: d, hasTabStop: h != null }) : a
|
|
@@ -3569,7 +3570,7 @@ var Pd = l.forwardRef((e, t) => {
|
|
|
3569
3570
|
);
|
|
3570
3571
|
}
|
|
3571
3572
|
);
|
|
3572
|
-
|
|
3573
|
+
_s.displayName = Ps;
|
|
3573
3574
|
var _d = {
|
|
3574
3575
|
ArrowLeft: "prev",
|
|
3575
3576
|
ArrowUp: "prev",
|
|
@@ -3588,7 +3589,7 @@ function jd(e, t, n) {
|
|
|
3588
3589
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
3589
3590
|
return _d[r];
|
|
3590
3591
|
}
|
|
3591
|
-
function
|
|
3592
|
+
function Ms(e, t = !1) {
|
|
3592
3593
|
const n = document.activeElement;
|
|
3593
3594
|
for (const r of e)
|
|
3594
3595
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -3596,7 +3597,7 @@ function _s(e, t = !1) {
|
|
|
3596
3597
|
function Td(e, t) {
|
|
3597
3598
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3598
3599
|
}
|
|
3599
|
-
var Ad =
|
|
3600
|
+
var Ad = Ns, Od = _s, Kn = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"], js = ["ArrowUp", "PageDown", "End"], Dd = [...Id, ...js], kd = {
|
|
3600
3601
|
ltr: [...Kn, "ArrowRight"],
|
|
3601
3602
|
rtl: [...Kn, "ArrowLeft"]
|
|
3602
3603
|
}, Ld = {
|
|
@@ -3605,8 +3606,8 @@ var Ad = Rs, Od = Ps, Kn = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
|
|
|
3605
3606
|
}, St = "Menu", [mt, $d, Fd] = nr(St), [Xe, un] = ye(St, [
|
|
3606
3607
|
Fd,
|
|
3607
3608
|
De,
|
|
3608
|
-
|
|
3609
|
-
]), Rt = De(),
|
|
3609
|
+
Rs
|
|
3610
|
+
]), Rt = De(), Ts = Rs(), [As, ke] = Xe(St), [Bd, Nt] = Xe(St), Os = (e) => {
|
|
3610
3611
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, c = Rt(t), [u, p] = l.useState(null), f = l.useRef(!1), d = de(s), m = rr(o);
|
|
3611
3612
|
return l.useEffect(() => {
|
|
3612
3613
|
const v = () => {
|
|
@@ -3616,7 +3617,7 @@ var Ad = Rs, Od = Ps, Kn = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
|
|
|
3616
3617
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
3617
3618
|
};
|
|
3618
3619
|
}, []), /* @__PURE__ */ i.jsx(Ct, { ...c, children: /* @__PURE__ */ i.jsx(
|
|
3619
|
-
|
|
3620
|
+
As,
|
|
3620
3621
|
{
|
|
3621
3622
|
scope: t,
|
|
3622
3623
|
open: n,
|
|
@@ -3637,7 +3638,7 @@ var Ad = Rs, Od = Ps, Kn = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
|
|
|
3637
3638
|
}
|
|
3638
3639
|
) });
|
|
3639
3640
|
};
|
|
3640
|
-
|
|
3641
|
+
Os.displayName = St;
|
|
3641
3642
|
var Wd = "MenuAnchor", mr = l.forwardRef(
|
|
3642
3643
|
(e, t) => {
|
|
3643
3644
|
const { __scopeMenu: n, ...r } = e, o = Rt(n);
|
|
@@ -3645,16 +3646,16 @@ var Wd = "MenuAnchor", mr = l.forwardRef(
|
|
|
3645
3646
|
}
|
|
3646
3647
|
);
|
|
3647
3648
|
mr.displayName = Wd;
|
|
3648
|
-
var vr = "MenuPortal", [Vd,
|
|
3649
|
+
var vr = "MenuPortal", [Vd, Is] = Xe(vr, {
|
|
3649
3650
|
forceMount: void 0
|
|
3650
|
-
}),
|
|
3651
|
+
}), Ds = (e) => {
|
|
3651
3652
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = ke(vr, t);
|
|
3652
3653
|
return /* @__PURE__ */ i.jsx(Vd, { scope: t, forceMount: n, children: /* @__PURE__ */ i.jsx(fe, { present: n || s.open, children: /* @__PURE__ */ i.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
3653
3654
|
};
|
|
3654
|
-
|
|
3655
|
-
var ue = "MenuContent", [Hd, gr] = Xe(ue),
|
|
3655
|
+
Ds.displayName = vr;
|
|
3656
|
+
var ue = "MenuContent", [Hd, gr] = Xe(ue), ks = l.forwardRef(
|
|
3656
3657
|
(e, t) => {
|
|
3657
|
-
const n =
|
|
3658
|
+
const n = Is(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ke(ue, e.__scopeMenu), a = Nt(ue, e.__scopeMenu);
|
|
3658
3659
|
return /* @__PURE__ */ i.jsx(mt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: /* @__PURE__ */ i.jsx(mt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ i.jsx(Ud, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(Kd, { ...o, ref: t }) }) }) });
|
|
3659
3660
|
}
|
|
3660
3661
|
), Ud = l.forwardRef(
|
|
@@ -3710,7 +3711,7 @@ var ue = "MenuContent", [Hd, gr] = Xe(ue), Ds = l.forwardRef(
|
|
|
3710
3711
|
onDismiss: v,
|
|
3711
3712
|
disableOutsideScroll: x,
|
|
3712
3713
|
...h
|
|
3713
|
-
} = e, g = ke(ue, n), w = Nt(ue, n), y = Rt(n), b =
|
|
3714
|
+
} = e, g = ke(ue, n), w = Nt(ue, n), y = Rt(n), b = Ts(n), C = $d(n), [N, _] = l.useState(null), R = l.useRef(null), S = G(t, R, g.onContentChange), j = l.useRef(0), L = l.useRef(""), O = l.useRef(0), P = l.useRef(null), I = l.useRef("right"), D = l.useRef(0), W = x ? wt : l.Fragment, $ = x ? { as: Gd, allowPinchZoom: !0 } : void 0, B = (A) => {
|
|
3714
3715
|
const Y = L.current + A, E = C().filter((M) => !M.disabled), F = document.activeElement, H = E.find((M) => M.ref.current === F)?.textValue, U = E.map((M) => M.textValue), oe = of(U, Y, H), Q = E.find((M) => M.textValue === oe)?.ref.current;
|
|
3715
3716
|
(function M(K) {
|
|
3716
3717
|
L.current = K, window.clearTimeout(j.current), K !== "" && (j.current = window.setTimeout(() => M(""), 1e3));
|
|
@@ -3783,7 +3784,7 @@ var ue = "MenuContent", [Hd, gr] = Xe(ue), Ds = l.forwardRef(
|
|
|
3783
3784
|
{
|
|
3784
3785
|
role: "menu",
|
|
3785
3786
|
"aria-orientation": "vertical",
|
|
3786
|
-
"data-state":
|
|
3787
|
+
"data-state": Qs(g.open),
|
|
3787
3788
|
"data-radix-menu-content": "",
|
|
3788
3789
|
dir: w.dir,
|
|
3789
3790
|
...y,
|
|
@@ -3797,7 +3798,7 @@ var ue = "MenuContent", [Hd, gr] = Xe(ue), Ds = l.forwardRef(
|
|
|
3797
3798
|
if (A.target !== U || !Dd.includes(A.key)) return;
|
|
3798
3799
|
A.preventDefault();
|
|
3799
3800
|
const Q = C().filter((M) => !M.disabled).map((M) => M.ref.current);
|
|
3800
|
-
|
|
3801
|
+
js.includes(A.key) && Q.reverse(), nf(Q);
|
|
3801
3802
|
}),
|
|
3802
3803
|
onBlur: T(e.onBlur, (A) => {
|
|
3803
3804
|
A.currentTarget.contains(A.target) || (window.clearTimeout(j.current), L.current = "");
|
|
@@ -3824,7 +3825,7 @@ var ue = "MenuContent", [Hd, gr] = Xe(ue), Ds = l.forwardRef(
|
|
|
3824
3825
|
);
|
|
3825
3826
|
}
|
|
3826
3827
|
);
|
|
3827
|
-
|
|
3828
|
+
ks.displayName = ue;
|
|
3828
3829
|
var zd = "MenuGroup", wr = l.forwardRef(
|
|
3829
3830
|
(e, t) => {
|
|
3830
3831
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -3832,13 +3833,13 @@ var zd = "MenuGroup", wr = l.forwardRef(
|
|
|
3832
3833
|
}
|
|
3833
3834
|
);
|
|
3834
3835
|
wr.displayName = zd;
|
|
3835
|
-
var Yd = "MenuLabel",
|
|
3836
|
+
var Yd = "MenuLabel", Ls = l.forwardRef(
|
|
3836
3837
|
(e, t) => {
|
|
3837
3838
|
const { __scopeMenu: n, ...r } = e;
|
|
3838
3839
|
return /* @__PURE__ */ i.jsx(V.div, { ...r, ref: t });
|
|
3839
3840
|
}
|
|
3840
3841
|
);
|
|
3841
|
-
|
|
3842
|
+
Ls.displayName = Yd;
|
|
3842
3843
|
var Gt = "MenuItem", lo = "menu.itemSelect", dn = l.forwardRef(
|
|
3843
3844
|
(e, t) => {
|
|
3844
3845
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = l.useRef(null), a = Nt(Gt, e.__scopeMenu), c = gr(Gt, e.__scopeMenu), u = G(t, s), p = l.useRef(!1), f = () => {
|
|
@@ -3849,7 +3850,7 @@ var Gt = "MenuItem", lo = "menu.itemSelect", dn = l.forwardRef(
|
|
|
3849
3850
|
}
|
|
3850
3851
|
};
|
|
3851
3852
|
return /* @__PURE__ */ i.jsx(
|
|
3852
|
-
|
|
3853
|
+
$s,
|
|
3853
3854
|
{
|
|
3854
3855
|
...o,
|
|
3855
3856
|
ref: u,
|
|
@@ -3870,9 +3871,9 @@ var Gt = "MenuItem", lo = "menu.itemSelect", dn = l.forwardRef(
|
|
|
3870
3871
|
}
|
|
3871
3872
|
);
|
|
3872
3873
|
dn.displayName = Gt;
|
|
3873
|
-
var
|
|
3874
|
+
var $s = l.forwardRef(
|
|
3874
3875
|
(e, t) => {
|
|
3875
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = gr(Gt, n), c =
|
|
3876
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = gr(Gt, n), c = Ts(n), u = l.useRef(null), p = G(t, u), [f, d] = l.useState(!1), [m, v] = l.useState("");
|
|
3876
3877
|
return l.useEffect(() => {
|
|
3877
3878
|
const x = u.current;
|
|
3878
3879
|
x && v((x.textContent ?? "").trim());
|
|
@@ -3908,10 +3909,10 @@ var Ls = l.forwardRef(
|
|
|
3908
3909
|
}
|
|
3909
3910
|
);
|
|
3910
3911
|
}
|
|
3911
|
-
), Xd = "MenuCheckboxItem",
|
|
3912
|
+
), Xd = "MenuCheckboxItem", Fs = l.forwardRef(
|
|
3912
3913
|
(e, t) => {
|
|
3913
3914
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
3914
|
-
return /* @__PURE__ */ i.jsx(
|
|
3915
|
+
return /* @__PURE__ */ i.jsx(Us, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ i.jsx(
|
|
3915
3916
|
dn,
|
|
3916
3917
|
{
|
|
3917
3918
|
role: "menuitemcheckbox",
|
|
@@ -3928,22 +3929,22 @@ var Ls = l.forwardRef(
|
|
|
3928
3929
|
) });
|
|
3929
3930
|
}
|
|
3930
3931
|
);
|
|
3931
|
-
|
|
3932
|
-
var
|
|
3933
|
-
|
|
3932
|
+
Fs.displayName = Xd;
|
|
3933
|
+
var Bs = "MenuRadioGroup", [qd, Zd] = Xe(
|
|
3934
|
+
Bs,
|
|
3934
3935
|
{ value: void 0, onValueChange: () => {
|
|
3935
3936
|
} }
|
|
3936
|
-
),
|
|
3937
|
+
), Ws = l.forwardRef(
|
|
3937
3938
|
(e, t) => {
|
|
3938
3939
|
const { value: n, onValueChange: r, ...o } = e, s = de(r);
|
|
3939
3940
|
return /* @__PURE__ */ i.jsx(qd, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ i.jsx(wr, { ...o, ref: t }) });
|
|
3940
3941
|
}
|
|
3941
3942
|
);
|
|
3942
|
-
|
|
3943
|
-
var
|
|
3943
|
+
Ws.displayName = Bs;
|
|
3944
|
+
var Vs = "MenuRadioItem", Hs = l.forwardRef(
|
|
3944
3945
|
(e, t) => {
|
|
3945
|
-
const { value: n, ...r } = e, o = Zd(
|
|
3946
|
-
return /* @__PURE__ */ i.jsx(
|
|
3946
|
+
const { value: n, ...r } = e, o = Zd(Vs, e.__scopeMenu), s = n === o.value;
|
|
3947
|
+
return /* @__PURE__ */ i.jsx(Us, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ i.jsx(
|
|
3947
3948
|
dn,
|
|
3948
3949
|
{
|
|
3949
3950
|
role: "menuitemradio",
|
|
@@ -3960,11 +3961,11 @@ var Ws = "MenuRadioItem", Vs = l.forwardRef(
|
|
|
3960
3961
|
) });
|
|
3961
3962
|
}
|
|
3962
3963
|
);
|
|
3963
|
-
|
|
3964
|
-
var yr = "MenuItemIndicator", [
|
|
3964
|
+
Hs.displayName = Vs;
|
|
3965
|
+
var yr = "MenuItemIndicator", [Us, Jd] = Xe(
|
|
3965
3966
|
yr,
|
|
3966
3967
|
{ checked: !1 }
|
|
3967
|
-
),
|
|
3968
|
+
), Ks = l.forwardRef(
|
|
3968
3969
|
(e, t) => {
|
|
3969
3970
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = Jd(yr, n);
|
|
3970
3971
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -3983,8 +3984,8 @@ var yr = "MenuItemIndicator", [Hs, Jd] = Xe(
|
|
|
3983
3984
|
);
|
|
3984
3985
|
}
|
|
3985
3986
|
);
|
|
3986
|
-
|
|
3987
|
-
var Qd = "MenuSeparator",
|
|
3987
|
+
Ks.displayName = yr;
|
|
3988
|
+
var Qd = "MenuSeparator", Gs = l.forwardRef(
|
|
3988
3989
|
(e, t) => {
|
|
3989
3990
|
const { __scopeMenu: n, ...r } = e;
|
|
3990
3991
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -3998,18 +3999,18 @@ var Qd = "MenuSeparator", Ks = l.forwardRef(
|
|
|
3998
3999
|
);
|
|
3999
4000
|
}
|
|
4000
4001
|
);
|
|
4001
|
-
|
|
4002
|
-
var ef = "MenuArrow",
|
|
4002
|
+
Gs.displayName = Qd;
|
|
4003
|
+
var ef = "MenuArrow", zs = l.forwardRef(
|
|
4003
4004
|
(e, t) => {
|
|
4004
4005
|
const { __scopeMenu: n, ...r } = e, o = Rt(n);
|
|
4005
4006
|
return /* @__PURE__ */ i.jsx(ln, { ...o, ...r, ref: t });
|
|
4006
4007
|
}
|
|
4007
4008
|
);
|
|
4008
|
-
|
|
4009
|
-
var Cr = "MenuSub", [tf,
|
|
4009
|
+
zs.displayName = ef;
|
|
4010
|
+
var Cr = "MenuSub", [tf, Ys] = Xe(Cr), Xs = (e) => {
|
|
4010
4011
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = ke(Cr, t), a = Rt(t), [c, u] = l.useState(null), [p, f] = l.useState(null), d = de(o);
|
|
4011
4012
|
return l.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ i.jsx(Ct, { ...a, children: /* @__PURE__ */ i.jsx(
|
|
4012
|
-
|
|
4013
|
+
As,
|
|
4013
4014
|
{
|
|
4014
4015
|
scope: t,
|
|
4015
4016
|
open: r,
|
|
@@ -4030,10 +4031,10 @@ var Cr = "MenuSub", [tf, zs] = Xe(Cr), Ys = (e) => {
|
|
|
4030
4031
|
}
|
|
4031
4032
|
) });
|
|
4032
4033
|
};
|
|
4033
|
-
|
|
4034
|
-
var ft = "MenuSubTrigger",
|
|
4034
|
+
Xs.displayName = Cr;
|
|
4035
|
+
var ft = "MenuSubTrigger", qs = l.forwardRef(
|
|
4035
4036
|
(e, t) => {
|
|
4036
|
-
const n = ke(ft, e.__scopeMenu), r = Nt(ft, e.__scopeMenu), o =
|
|
4037
|
+
const n = ke(ft, e.__scopeMenu), r = Nt(ft, e.__scopeMenu), o = Ys(ft, e.__scopeMenu), s = gr(ft, e.__scopeMenu), a = l.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: u } = s, p = { __scopeMenu: e.__scopeMenu }, f = l.useCallback(() => {
|
|
4037
4038
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
4038
4039
|
}, []);
|
|
4039
4040
|
return l.useEffect(() => f, [f]), l.useEffect(() => {
|
|
@@ -4042,13 +4043,13 @@ var ft = "MenuSubTrigger", Xs = l.forwardRef(
|
|
|
4042
4043
|
window.clearTimeout(d), u(null);
|
|
4043
4044
|
};
|
|
4044
4045
|
}, [c, u]), /* @__PURE__ */ i.jsx(mr, { asChild: !0, ...p, children: /* @__PURE__ */ i.jsx(
|
|
4045
|
-
|
|
4046
|
+
$s,
|
|
4046
4047
|
{
|
|
4047
4048
|
id: o.triggerId,
|
|
4048
4049
|
"aria-haspopup": "menu",
|
|
4049
4050
|
"aria-expanded": n.open,
|
|
4050
4051
|
"aria-controls": o.contentId,
|
|
4051
|
-
"data-state":
|
|
4052
|
+
"data-state": Qs(n.open),
|
|
4052
4053
|
...e,
|
|
4053
4054
|
ref: Jt(t, o.onTriggerChange),
|
|
4054
4055
|
onClick: (d) => {
|
|
@@ -4098,10 +4099,10 @@ var ft = "MenuSubTrigger", Xs = l.forwardRef(
|
|
|
4098
4099
|
) });
|
|
4099
4100
|
}
|
|
4100
4101
|
);
|
|
4101
|
-
|
|
4102
|
-
var
|
|
4102
|
+
qs.displayName = ft;
|
|
4103
|
+
var Zs = "MenuSubContent", Js = l.forwardRef(
|
|
4103
4104
|
(e, t) => {
|
|
4104
|
-
const n =
|
|
4105
|
+
const n = Is(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ke(ue, e.__scopeMenu), a = Nt(ue, e.__scopeMenu), c = Ys(Zs, e.__scopeMenu), u = l.useRef(null), p = G(t, u);
|
|
4105
4106
|
return /* @__PURE__ */ i.jsx(mt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: /* @__PURE__ */ i.jsx(mt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(
|
|
4106
4107
|
xr,
|
|
4107
4108
|
{
|
|
@@ -4132,8 +4133,8 @@ var qs = "MenuSubContent", Zs = l.forwardRef(
|
|
|
4132
4133
|
) }) }) });
|
|
4133
4134
|
}
|
|
4134
4135
|
);
|
|
4135
|
-
|
|
4136
|
-
function
|
|
4136
|
+
Js.displayName = Zs;
|
|
4137
|
+
function Qs(e) {
|
|
4137
4138
|
return e ? "open" : "closed";
|
|
4138
4139
|
}
|
|
4139
4140
|
function zt(e) {
|
|
@@ -4176,9 +4177,9 @@ function af(e, t) {
|
|
|
4176
4177
|
function vt(e) {
|
|
4177
4178
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4178
4179
|
}
|
|
4179
|
-
var
|
|
4180
|
+
var ei = Os, ti = mr, ni = Ds, ri = ks, oi = wr, si = Ls, ii = dn, ai = Fs, ci = Ws, li = Hs, ui = Ks, di = Gs, fi = zs, cf = Xs, pi = qs, hi = Js, Er = "ContextMenu", [lf] = ye(Er, [
|
|
4180
4181
|
un
|
|
4181
|
-
]), ne = un(), [uf,
|
|
4182
|
+
]), ne = un(), [uf, mi] = lf(Er), vi = (e) => {
|
|
4182
4183
|
const { __scopeContextMenu: t, children: n, onOpenChange: r, dir: o, modal: s = !0 } = e, [a, c] = l.useState(!1), u = ne(t), p = de(r), f = l.useCallback(
|
|
4183
4184
|
(d) => {
|
|
4184
4185
|
c(d), p(d);
|
|
@@ -4193,7 +4194,7 @@ var Qs = As, ei = mr, ti = Is, ni = Ds, ri = wr, oi = ks, si = dn, ii = $s, ai =
|
|
|
4193
4194
|
onOpenChange: f,
|
|
4194
4195
|
modal: s,
|
|
4195
4196
|
children: /* @__PURE__ */ i.jsx(
|
|
4196
|
-
|
|
4197
|
+
ei,
|
|
4197
4198
|
{
|
|
4198
4199
|
...u,
|
|
4199
4200
|
dir: o,
|
|
@@ -4206,10 +4207,10 @@ var Qs = As, ei = mr, ti = Is, ni = Ds, ri = wr, oi = ks, si = dn, ii = $s, ai =
|
|
|
4206
4207
|
}
|
|
4207
4208
|
);
|
|
4208
4209
|
};
|
|
4209
|
-
|
|
4210
|
-
var
|
|
4210
|
+
vi.displayName = Er;
|
|
4211
|
+
var gi = "ContextMenuTrigger", xi = l.forwardRef(
|
|
4211
4212
|
(e, t) => {
|
|
4212
|
-
const { __scopeContextMenu: n, disabled: r = !1, ...o } = e, s =
|
|
4213
|
+
const { __scopeContextMenu: n, disabled: r = !1, ...o } = e, s = mi(gi, n), a = ne(n), c = l.useRef({ x: 0, y: 0 }), u = l.useRef({
|
|
4213
4214
|
getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...c.current })
|
|
4214
4215
|
}), p = l.useRef(0), f = l.useCallback(
|
|
4215
4216
|
() => window.clearTimeout(p.current),
|
|
@@ -4220,7 +4221,7 @@ var vi = "ContextMenuTrigger", gi = l.forwardRef(
|
|
|
4220
4221
|
return l.useEffect(() => f, [f]), l.useEffect(() => {
|
|
4221
4222
|
r && f();
|
|
4222
4223
|
}, [r, f]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
4223
|
-
/* @__PURE__ */ i.jsx(
|
|
4224
|
+
/* @__PURE__ */ i.jsx(ti, { ...a, virtualRef: u }),
|
|
4224
4225
|
/* @__PURE__ */ i.jsx(
|
|
4225
4226
|
V.span,
|
|
4226
4227
|
{
|
|
@@ -4246,17 +4247,17 @@ var vi = "ContextMenuTrigger", gi = l.forwardRef(
|
|
|
4246
4247
|
] });
|
|
4247
4248
|
}
|
|
4248
4249
|
);
|
|
4249
|
-
|
|
4250
|
-
var df = "ContextMenuPortal",
|
|
4250
|
+
xi.displayName = gi;
|
|
4251
|
+
var df = "ContextMenuPortal", wi = (e) => {
|
|
4251
4252
|
const { __scopeContextMenu: t, ...n } = e, r = ne(t);
|
|
4252
|
-
return /* @__PURE__ */ i.jsx(
|
|
4253
|
+
return /* @__PURE__ */ i.jsx(ni, { ...r, ...n });
|
|
4253
4254
|
};
|
|
4254
|
-
|
|
4255
|
-
var
|
|
4255
|
+
wi.displayName = df;
|
|
4256
|
+
var yi = "ContextMenuContent", Ci = l.forwardRef(
|
|
4256
4257
|
(e, t) => {
|
|
4257
|
-
const { __scopeContextMenu: n, ...r } = e, o =
|
|
4258
|
+
const { __scopeContextMenu: n, ...r } = e, o = mi(yi, n), s = ne(n), a = l.useRef(!1);
|
|
4258
4259
|
return /* @__PURE__ */ i.jsx(
|
|
4259
|
-
|
|
4260
|
+
ri,
|
|
4260
4261
|
{
|
|
4261
4262
|
...s,
|
|
4262
4263
|
...r,
|
|
@@ -4282,79 +4283,79 @@ var wi = "ContextMenuContent", yi = l.forwardRef(
|
|
|
4282
4283
|
);
|
|
4283
4284
|
}
|
|
4284
4285
|
);
|
|
4285
|
-
|
|
4286
|
+
Ci.displayName = yi;
|
|
4286
4287
|
var ff = "ContextMenuGroup", pf = l.forwardRef(
|
|
4287
4288
|
(e, t) => {
|
|
4288
4289
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4289
|
-
return /* @__PURE__ */ i.jsx(
|
|
4290
|
+
return /* @__PURE__ */ i.jsx(oi, { ...o, ...r, ref: t });
|
|
4290
4291
|
}
|
|
4291
4292
|
);
|
|
4292
4293
|
pf.displayName = ff;
|
|
4293
4294
|
var hf = "ContextMenuLabel", mf = l.forwardRef(
|
|
4294
4295
|
(e, t) => {
|
|
4295
4296
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4296
|
-
return /* @__PURE__ */ i.jsx(
|
|
4297
|
+
return /* @__PURE__ */ i.jsx(si, { ...o, ...r, ref: t });
|
|
4297
4298
|
}
|
|
4298
4299
|
);
|
|
4299
4300
|
mf.displayName = hf;
|
|
4300
|
-
var vf = "ContextMenuItem",
|
|
4301
|
+
var vf = "ContextMenuItem", bi = l.forwardRef(
|
|
4301
4302
|
(e, t) => {
|
|
4302
4303
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4303
|
-
return /* @__PURE__ */ i.jsx(
|
|
4304
|
+
return /* @__PURE__ */ i.jsx(ii, { ...o, ...r, ref: t });
|
|
4304
4305
|
}
|
|
4305
4306
|
);
|
|
4306
|
-
|
|
4307
|
+
bi.displayName = vf;
|
|
4307
4308
|
var gf = "ContextMenuCheckboxItem", xf = l.forwardRef((e, t) => {
|
|
4308
4309
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4309
|
-
return /* @__PURE__ */ i.jsx(
|
|
4310
|
+
return /* @__PURE__ */ i.jsx(ai, { ...o, ...r, ref: t });
|
|
4310
4311
|
});
|
|
4311
4312
|
xf.displayName = gf;
|
|
4312
4313
|
var wf = "ContextMenuRadioGroup", yf = l.forwardRef((e, t) => {
|
|
4313
4314
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4314
|
-
return /* @__PURE__ */ i.jsx(
|
|
4315
|
+
return /* @__PURE__ */ i.jsx(ci, { ...o, ...r, ref: t });
|
|
4315
4316
|
});
|
|
4316
4317
|
yf.displayName = wf;
|
|
4317
4318
|
var Cf = "ContextMenuRadioItem", bf = l.forwardRef((e, t) => {
|
|
4318
4319
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4319
|
-
return /* @__PURE__ */ i.jsx(
|
|
4320
|
+
return /* @__PURE__ */ i.jsx(li, { ...o, ...r, ref: t });
|
|
4320
4321
|
});
|
|
4321
4322
|
bf.displayName = Cf;
|
|
4322
4323
|
var Ef = "ContextMenuItemIndicator", Sf = l.forwardRef((e, t) => {
|
|
4323
4324
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4324
|
-
return /* @__PURE__ */ i.jsx(
|
|
4325
|
+
return /* @__PURE__ */ i.jsx(ui, { ...o, ...r, ref: t });
|
|
4325
4326
|
});
|
|
4326
4327
|
Sf.displayName = Ef;
|
|
4327
|
-
var Rf = "ContextMenuSeparator",
|
|
4328
|
+
var Rf = "ContextMenuSeparator", Ei = l.forwardRef((e, t) => {
|
|
4328
4329
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4329
|
-
return /* @__PURE__ */ i.jsx(
|
|
4330
|
+
return /* @__PURE__ */ i.jsx(di, { ...o, ...r, ref: t });
|
|
4330
4331
|
});
|
|
4331
|
-
|
|
4332
|
+
Ei.displayName = Rf;
|
|
4332
4333
|
var Nf = "ContextMenuArrow", Pf = l.forwardRef(
|
|
4333
4334
|
(e, t) => {
|
|
4334
4335
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4335
|
-
return /* @__PURE__ */ i.jsx(
|
|
4336
|
+
return /* @__PURE__ */ i.jsx(fi, { ...o, ...r, ref: t });
|
|
4336
4337
|
}
|
|
4337
4338
|
);
|
|
4338
4339
|
Pf.displayName = Nf;
|
|
4339
|
-
var
|
|
4340
|
+
var Si = "ContextMenuSub", Ri = (e) => {
|
|
4340
4341
|
const { __scopeContextMenu: t, children: n, onOpenChange: r, open: o, defaultOpen: s } = e, a = ne(t), [c, u] = Ae({
|
|
4341
4342
|
prop: o,
|
|
4342
4343
|
defaultProp: s ?? !1,
|
|
4343
4344
|
onChange: r,
|
|
4344
|
-
caller:
|
|
4345
|
+
caller: Si
|
|
4345
4346
|
});
|
|
4346
4347
|
return /* @__PURE__ */ i.jsx(cf, { ...a, open: c, onOpenChange: u, children: n });
|
|
4347
4348
|
};
|
|
4348
|
-
|
|
4349
|
-
var _f = "ContextMenuSubTrigger",
|
|
4349
|
+
Ri.displayName = Si;
|
|
4350
|
+
var _f = "ContextMenuSubTrigger", Ni = l.forwardRef((e, t) => {
|
|
4350
4351
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4351
|
-
return /* @__PURE__ */ i.jsx(
|
|
4352
|
+
return /* @__PURE__ */ i.jsx(pi, { ...o, ...r, ref: t });
|
|
4352
4353
|
});
|
|
4353
|
-
|
|
4354
|
-
var Mf = "ContextMenuSubContent",
|
|
4354
|
+
Ni.displayName = _f;
|
|
4355
|
+
var Mf = "ContextMenuSubContent", Pi = l.forwardRef((e, t) => {
|
|
4355
4356
|
const { __scopeContextMenu: n, ...r } = e, o = ne(n);
|
|
4356
4357
|
return /* @__PURE__ */ i.jsx(
|
|
4357
|
-
|
|
4358
|
+
hi,
|
|
4358
4359
|
{
|
|
4359
4360
|
...o,
|
|
4360
4361
|
...r,
|
|
@@ -4370,14 +4371,14 @@ var Mf = "ContextMenuSubContent", Ni = l.forwardRef((e, t) => {
|
|
|
4370
4371
|
}
|
|
4371
4372
|
);
|
|
4372
4373
|
});
|
|
4373
|
-
|
|
4374
|
+
Pi.displayName = Mf;
|
|
4374
4375
|
function Lt(e) {
|
|
4375
4376
|
return (t) => t.pointerType !== "mouse" ? e(t) : void 0;
|
|
4376
4377
|
}
|
|
4377
|
-
var jf =
|
|
4378
|
+
var jf = vi, Tf = xi, _i = wi, Af = Ci, Of = bi, Mi = Ei, If = Ri, Df = Ni, kf = Pi, fn = "DropdownMenu", [Lf] = ye(
|
|
4378
4379
|
fn,
|
|
4379
4380
|
[un]
|
|
4380
|
-
), re = un(), [$f,
|
|
4381
|
+
), re = un(), [$f, ji] = Lf(fn), Ti = (e) => {
|
|
4381
4382
|
const {
|
|
4382
4383
|
__scopeDropdownMenu: t,
|
|
4383
4384
|
children: n,
|
|
@@ -4403,15 +4404,15 @@ var jf = mi, Tf = gi, Pi = xi, Af = yi, Of = Ci, _i = bi, If = Si, Df = Ri, kf =
|
|
|
4403
4404
|
onOpenChange: d,
|
|
4404
4405
|
onOpenToggle: l.useCallback(() => d((m) => !m), [d]),
|
|
4405
4406
|
modal: c,
|
|
4406
|
-
children: /* @__PURE__ */ i.jsx(
|
|
4407
|
+
children: /* @__PURE__ */ i.jsx(ei, { ...u, open: f, onOpenChange: d, dir: r, modal: c, children: n })
|
|
4407
4408
|
}
|
|
4408
4409
|
);
|
|
4409
4410
|
};
|
|
4410
|
-
|
|
4411
|
-
var
|
|
4411
|
+
Ti.displayName = fn;
|
|
4412
|
+
var Ai = "DropdownMenuTrigger", Oi = l.forwardRef(
|
|
4412
4413
|
(e, t) => {
|
|
4413
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s =
|
|
4414
|
-
return /* @__PURE__ */ i.jsx(
|
|
4414
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = ji(Ai, n), a = re(n);
|
|
4415
|
+
return /* @__PURE__ */ i.jsx(ti, { asChild: !0, ...a, children: /* @__PURE__ */ i.jsx(
|
|
4415
4416
|
V.button,
|
|
4416
4417
|
{
|
|
4417
4418
|
type: "button",
|
|
@@ -4434,17 +4435,17 @@ var Ti = "DropdownMenuTrigger", Ai = l.forwardRef(
|
|
|
4434
4435
|
) });
|
|
4435
4436
|
}
|
|
4436
4437
|
);
|
|
4437
|
-
|
|
4438
|
-
var Ff = "DropdownMenuPortal",
|
|
4438
|
+
Oi.displayName = Ai;
|
|
4439
|
+
var Ff = "DropdownMenuPortal", Ii = (e) => {
|
|
4439
4440
|
const { __scopeDropdownMenu: t, ...n } = e, r = re(t);
|
|
4440
|
-
return /* @__PURE__ */ i.jsx(
|
|
4441
|
+
return /* @__PURE__ */ i.jsx(ni, { ...r, ...n });
|
|
4441
4442
|
};
|
|
4442
|
-
|
|
4443
|
-
var
|
|
4443
|
+
Ii.displayName = Ff;
|
|
4444
|
+
var Di = "DropdownMenuContent", ki = l.forwardRef(
|
|
4444
4445
|
(e, t) => {
|
|
4445
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
4446
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = ji(Di, n), s = re(n), a = l.useRef(!1);
|
|
4446
4447
|
return /* @__PURE__ */ i.jsx(
|
|
4447
|
-
|
|
4448
|
+
ri,
|
|
4448
4449
|
{
|
|
4449
4450
|
id: o.contentId,
|
|
4450
4451
|
"aria-labelledby": o.triggerId,
|
|
@@ -4470,69 +4471,69 @@ var Ii = "DropdownMenuContent", Di = l.forwardRef(
|
|
|
4470
4471
|
);
|
|
4471
4472
|
}
|
|
4472
4473
|
);
|
|
4473
|
-
|
|
4474
|
+
ki.displayName = Di;
|
|
4474
4475
|
var Bf = "DropdownMenuGroup", Wf = l.forwardRef(
|
|
4475
4476
|
(e, t) => {
|
|
4476
4477
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4477
|
-
return /* @__PURE__ */ i.jsx(
|
|
4478
|
+
return /* @__PURE__ */ i.jsx(oi, { ...o, ...r, ref: t });
|
|
4478
4479
|
}
|
|
4479
4480
|
);
|
|
4480
4481
|
Wf.displayName = Bf;
|
|
4481
4482
|
var Vf = "DropdownMenuLabel", Hf = l.forwardRef(
|
|
4482
4483
|
(e, t) => {
|
|
4483
4484
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4484
|
-
return /* @__PURE__ */ i.jsx(
|
|
4485
|
+
return /* @__PURE__ */ i.jsx(si, { ...o, ...r, ref: t });
|
|
4485
4486
|
}
|
|
4486
4487
|
);
|
|
4487
4488
|
Hf.displayName = Vf;
|
|
4488
|
-
var Uf = "DropdownMenuItem",
|
|
4489
|
+
var Uf = "DropdownMenuItem", Li = l.forwardRef(
|
|
4489
4490
|
(e, t) => {
|
|
4490
4491
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4491
|
-
return /* @__PURE__ */ i.jsx(
|
|
4492
|
+
return /* @__PURE__ */ i.jsx(ii, { ...o, ...r, ref: t });
|
|
4492
4493
|
}
|
|
4493
4494
|
);
|
|
4494
|
-
|
|
4495
|
+
Li.displayName = Uf;
|
|
4495
4496
|
var Kf = "DropdownMenuCheckboxItem", Gf = l.forwardRef((e, t) => {
|
|
4496
4497
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4497
|
-
return /* @__PURE__ */ i.jsx(
|
|
4498
|
+
return /* @__PURE__ */ i.jsx(ai, { ...o, ...r, ref: t });
|
|
4498
4499
|
});
|
|
4499
4500
|
Gf.displayName = Kf;
|
|
4500
4501
|
var zf = "DropdownMenuRadioGroup", Yf = l.forwardRef((e, t) => {
|
|
4501
4502
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4502
|
-
return /* @__PURE__ */ i.jsx(
|
|
4503
|
+
return /* @__PURE__ */ i.jsx(ci, { ...o, ...r, ref: t });
|
|
4503
4504
|
});
|
|
4504
4505
|
Yf.displayName = zf;
|
|
4505
4506
|
var Xf = "DropdownMenuRadioItem", qf = l.forwardRef((e, t) => {
|
|
4506
4507
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4507
|
-
return /* @__PURE__ */ i.jsx(
|
|
4508
|
+
return /* @__PURE__ */ i.jsx(li, { ...o, ...r, ref: t });
|
|
4508
4509
|
});
|
|
4509
4510
|
qf.displayName = Xf;
|
|
4510
4511
|
var Zf = "DropdownMenuItemIndicator", Jf = l.forwardRef((e, t) => {
|
|
4511
4512
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4512
|
-
return /* @__PURE__ */ i.jsx(
|
|
4513
|
+
return /* @__PURE__ */ i.jsx(ui, { ...o, ...r, ref: t });
|
|
4513
4514
|
});
|
|
4514
4515
|
Jf.displayName = Zf;
|
|
4515
4516
|
var Qf = "DropdownMenuSeparator", ep = l.forwardRef((e, t) => {
|
|
4516
4517
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4517
|
-
return /* @__PURE__ */ i.jsx(
|
|
4518
|
+
return /* @__PURE__ */ i.jsx(di, { ...o, ...r, ref: t });
|
|
4518
4519
|
});
|
|
4519
4520
|
ep.displayName = Qf;
|
|
4520
4521
|
var tp = "DropdownMenuArrow", np = l.forwardRef(
|
|
4521
4522
|
(e, t) => {
|
|
4522
4523
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4523
|
-
return /* @__PURE__ */ i.jsx(
|
|
4524
|
+
return /* @__PURE__ */ i.jsx(fi, { ...o, ...r, ref: t });
|
|
4524
4525
|
}
|
|
4525
4526
|
);
|
|
4526
4527
|
np.displayName = tp;
|
|
4527
4528
|
var rp = "DropdownMenuSubTrigger", op = l.forwardRef((e, t) => {
|
|
4528
4529
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4529
|
-
return /* @__PURE__ */ i.jsx(
|
|
4530
|
+
return /* @__PURE__ */ i.jsx(pi, { ...o, ...r, ref: t });
|
|
4530
4531
|
});
|
|
4531
4532
|
op.displayName = rp;
|
|
4532
4533
|
var sp = "DropdownMenuSubContent", ip = l.forwardRef((e, t) => {
|
|
4533
4534
|
const { __scopeDropdownMenu: n, ...r } = e, o = re(n);
|
|
4534
4535
|
return /* @__PURE__ */ i.jsx(
|
|
4535
|
-
|
|
4536
|
+
hi,
|
|
4536
4537
|
{
|
|
4537
4538
|
...o,
|
|
4538
4539
|
...r,
|
|
@@ -4549,13 +4550,13 @@ var sp = "DropdownMenuSubContent", ip = l.forwardRef((e, t) => {
|
|
|
4549
4550
|
);
|
|
4550
4551
|
});
|
|
4551
4552
|
ip.displayName = sp;
|
|
4552
|
-
var ap =
|
|
4553
|
+
var ap = Ti, cp = Oi, lp = Ii, up = ki, dp = Li;
|
|
4553
4554
|
function uo(e, [t, n]) {
|
|
4554
4555
|
return Math.min(n, Math.max(t, e));
|
|
4555
4556
|
}
|
|
4556
|
-
var pn = "Popover", [
|
|
4557
|
+
var pn = "Popover", [$i] = ye(pn, [
|
|
4557
4558
|
De
|
|
4558
|
-
]), Pt = De(), [fp, Le] =
|
|
4559
|
+
]), Pt = De(), [fp, Le] = $i(pn), Fi = (e) => {
|
|
4559
4560
|
const {
|
|
4560
4561
|
__scopePopover: t,
|
|
4561
4562
|
children: n,
|
|
@@ -4586,24 +4587,24 @@ var pn = "Popover", [Li] = ye(pn, [
|
|
|
4586
4587
|
}
|
|
4587
4588
|
) });
|
|
4588
4589
|
};
|
|
4589
|
-
|
|
4590
|
-
var
|
|
4590
|
+
Fi.displayName = pn;
|
|
4591
|
+
var Bi = "PopoverAnchor", pp = l.forwardRef(
|
|
4591
4592
|
(e, t) => {
|
|
4592
|
-
const { __scopePopover: n, ...r } = e, o = Le(
|
|
4593
|
+
const { __scopePopover: n, ...r } = e, o = Le(Bi, n), s = Pt(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: c } = o;
|
|
4593
4594
|
return l.useEffect(() => (a(), () => c()), [a, c]), /* @__PURE__ */ i.jsx(bt, { ...s, ...r, ref: t });
|
|
4594
4595
|
}
|
|
4595
4596
|
);
|
|
4596
|
-
pp.displayName =
|
|
4597
|
-
var
|
|
4597
|
+
pp.displayName = Bi;
|
|
4598
|
+
var Wi = "PopoverTrigger", Vi = l.forwardRef(
|
|
4598
4599
|
(e, t) => {
|
|
4599
|
-
const { __scopePopover: n, ...r } = e, o = Le(
|
|
4600
|
+
const { __scopePopover: n, ...r } = e, o = Le(Wi, n), s = Pt(n), a = G(t, o.triggerRef), c = /* @__PURE__ */ i.jsx(
|
|
4600
4601
|
V.button,
|
|
4601
4602
|
{
|
|
4602
4603
|
type: "button",
|
|
4603
4604
|
"aria-haspopup": "dialog",
|
|
4604
4605
|
"aria-expanded": o.open,
|
|
4605
4606
|
"aria-controls": o.contentId,
|
|
4606
|
-
"data-state":
|
|
4607
|
+
"data-state": Yi(o.open),
|
|
4607
4608
|
...r,
|
|
4608
4609
|
ref: a,
|
|
4609
4610
|
onClick: T(e.onClick, o.onOpenToggle)
|
|
@@ -4612,21 +4613,21 @@ var Bi = "PopoverTrigger", Wi = l.forwardRef(
|
|
|
4612
4613
|
return o.hasCustomAnchor ? c : /* @__PURE__ */ i.jsx(bt, { asChild: !0, ...s, children: c });
|
|
4613
4614
|
}
|
|
4614
4615
|
);
|
|
4615
|
-
|
|
4616
|
-
var Sr = "PopoverPortal", [hp, mp] =
|
|
4616
|
+
Vi.displayName = Wi;
|
|
4617
|
+
var Sr = "PopoverPortal", [hp, mp] = $i(Sr, {
|
|
4617
4618
|
forceMount: void 0
|
|
4618
|
-
}),
|
|
4619
|
+
}), Hi = (e) => {
|
|
4619
4620
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = Le(Sr, t);
|
|
4620
4621
|
return /* @__PURE__ */ i.jsx(hp, { scope: t, forceMount: n, children: /* @__PURE__ */ i.jsx(fe, { present: n || s.open, children: /* @__PURE__ */ i.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
4621
4622
|
};
|
|
4622
|
-
|
|
4623
|
-
var rt = "PopoverContent",
|
|
4623
|
+
Hi.displayName = Sr;
|
|
4624
|
+
var rt = "PopoverContent", Ui = l.forwardRef(
|
|
4624
4625
|
(e, t) => {
|
|
4625
4626
|
const n = mp(rt, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = Le(rt, e.__scopePopover);
|
|
4626
4627
|
return /* @__PURE__ */ i.jsx(fe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(gp, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(xp, { ...o, ref: t }) });
|
|
4627
4628
|
}
|
|
4628
4629
|
);
|
|
4629
|
-
|
|
4630
|
+
Ui.displayName = rt;
|
|
4630
4631
|
var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
4631
4632
|
(e, t) => {
|
|
4632
4633
|
const n = Le(rt, e.__scopePopover), r = l.useRef(null), o = G(t, r), s = l.useRef(!1);
|
|
@@ -4634,7 +4635,7 @@ var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
|
4634
4635
|
const a = r.current;
|
|
4635
4636
|
if (a) return tn(a);
|
|
4636
4637
|
}, []), /* @__PURE__ */ i.jsx(wt, { as: vp, allowPinchZoom: !0, children: /* @__PURE__ */ i.jsx(
|
|
4637
|
-
|
|
4638
|
+
Ki,
|
|
4638
4639
|
{
|
|
4639
4640
|
...e,
|
|
4640
4641
|
ref: o,
|
|
@@ -4663,7 +4664,7 @@ var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
|
4663
4664
|
(e, t) => {
|
|
4664
4665
|
const n = Le(rt, e.__scopePopover), r = l.useRef(!1), o = l.useRef(!1);
|
|
4665
4666
|
return /* @__PURE__ */ i.jsx(
|
|
4666
|
-
|
|
4667
|
+
Ki,
|
|
4667
4668
|
{
|
|
4668
4669
|
...e,
|
|
4669
4670
|
ref: t,
|
|
@@ -4680,7 +4681,7 @@ var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
|
4680
4681
|
}
|
|
4681
4682
|
);
|
|
4682
4683
|
}
|
|
4683
|
-
),
|
|
4684
|
+
), Ki = l.forwardRef(
|
|
4684
4685
|
(e, t) => {
|
|
4685
4686
|
const {
|
|
4686
4687
|
__scopePopover: n,
|
|
@@ -4715,7 +4716,7 @@ var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
|
4715
4716
|
children: /* @__PURE__ */ i.jsx(
|
|
4716
4717
|
cn,
|
|
4717
4718
|
{
|
|
4718
|
-
"data-state":
|
|
4719
|
+
"data-state": Yi(m.open),
|
|
4719
4720
|
role: "dialog",
|
|
4720
4721
|
id: m.contentId,
|
|
4721
4722
|
...v,
|
|
@@ -4736,9 +4737,9 @@ var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
|
4736
4737
|
}
|
|
4737
4738
|
);
|
|
4738
4739
|
}
|
|
4739
|
-
),
|
|
4740
|
+
), Gi = "PopoverClose", wp = l.forwardRef(
|
|
4740
4741
|
(e, t) => {
|
|
4741
|
-
const { __scopePopover: n, ...r } = e, o = Le(
|
|
4742
|
+
const { __scopePopover: n, ...r } = e, o = Le(Gi, n);
|
|
4742
4743
|
return /* @__PURE__ */ i.jsx(
|
|
4743
4744
|
V.button,
|
|
4744
4745
|
{
|
|
@@ -4750,21 +4751,21 @@ var vp = /* @__PURE__ */ Ue("PopoverContent.RemoveScroll"), gp = l.forwardRef(
|
|
|
4750
4751
|
);
|
|
4751
4752
|
}
|
|
4752
4753
|
);
|
|
4753
|
-
wp.displayName =
|
|
4754
|
-
var yp = "PopoverArrow",
|
|
4754
|
+
wp.displayName = Gi;
|
|
4755
|
+
var yp = "PopoverArrow", zi = l.forwardRef(
|
|
4755
4756
|
(e, t) => {
|
|
4756
4757
|
const { __scopePopover: n, ...r } = e, o = Pt(n);
|
|
4757
4758
|
return /* @__PURE__ */ i.jsx(ln, { ...o, ...r, ref: t });
|
|
4758
4759
|
}
|
|
4759
4760
|
);
|
|
4760
|
-
|
|
4761
|
-
function
|
|
4761
|
+
zi.displayName = yp;
|
|
4762
|
+
function Yi(e) {
|
|
4762
4763
|
return e ? "open" : "closed";
|
|
4763
4764
|
}
|
|
4764
|
-
var Rr =
|
|
4765
|
+
var Rr = Fi, Nr = Vi, Pr = Hi, _r = Ui, Xi = zi, Cp = [" ", "Enter", "ArrowUp", "ArrowDown"], bp = [" ", "Enter"], ze = "Select", [hn, mn, Ep] = nr(ze), [lt] = ye(ze, [
|
|
4765
4766
|
Ep,
|
|
4766
4767
|
De
|
|
4767
|
-
]), vn = De(), [Sp, $e] = lt(ze), [Rp, Np] = lt(ze),
|
|
4768
|
+
]), vn = De(), [Sp, $e] = lt(ze), [Rp, Np] = lt(ze), qi = (e) => {
|
|
4768
4769
|
const {
|
|
4769
4770
|
__scopeSelect: t,
|
|
4770
4771
|
children: n,
|
|
@@ -4828,7 +4829,7 @@ var Rr = $i, Nr = Wi, Pr = Vi, _r = Hi, Yi = Gi, Cp = [" ", "Enter", "ArrowUp",
|
|
|
4828
4829
|
}
|
|
4829
4830
|
) }),
|
|
4830
4831
|
P ? /* @__PURE__ */ i.jsxs(
|
|
4831
|
-
|
|
4832
|
+
xa,
|
|
4832
4833
|
{
|
|
4833
4834
|
"aria-hidden": !0,
|
|
4834
4835
|
required: v,
|
|
@@ -4850,11 +4851,11 @@ var Rr = $i, Nr = Wi, Pr = Vi, _r = Hi, Yi = Gi, Cp = [" ", "Enter", "ArrowUp",
|
|
|
4850
4851
|
}
|
|
4851
4852
|
) });
|
|
4852
4853
|
};
|
|
4853
|
-
|
|
4854
|
-
var
|
|
4854
|
+
qi.displayName = ze;
|
|
4855
|
+
var Zi = "SelectTrigger", Ji = l.forwardRef(
|
|
4855
4856
|
(e, t) => {
|
|
4856
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = vn(n), a = $e(
|
|
4857
|
-
const g = p().filter((b) => !b.disabled), w = g.find((b) => b.value === a.value), y =
|
|
4857
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = vn(n), a = $e(Zi, n), c = a.disabled || r, u = G(t, a.onTriggerChange), p = mn(n), f = l.useRef("touch"), [d, m, v] = ya((h) => {
|
|
4858
|
+
const g = p().filter((b) => !b.disabled), w = g.find((b) => b.value === a.value), y = Ca(g, h, w);
|
|
4858
4859
|
y !== void 0 && a.onValueChange(y.value);
|
|
4859
4860
|
}), x = (h) => {
|
|
4860
4861
|
c || (a.onOpenChange(!0), v()), h && (a.triggerPointerDownPosRef.current = {
|
|
@@ -4875,7 +4876,7 @@ var qi = "SelectTrigger", Zi = l.forwardRef(
|
|
|
4875
4876
|
"data-state": a.open ? "open" : "closed",
|
|
4876
4877
|
disabled: c,
|
|
4877
4878
|
"data-disabled": c ? "" : void 0,
|
|
4878
|
-
"data-placeholder":
|
|
4879
|
+
"data-placeholder": wa(a.value) ? "" : void 0,
|
|
4879
4880
|
...o,
|
|
4880
4881
|
ref: u,
|
|
4881
4882
|
onClick: T(o.onClick, (h) => {
|
|
@@ -4894,10 +4895,10 @@ var qi = "SelectTrigger", Zi = l.forwardRef(
|
|
|
4894
4895
|
) });
|
|
4895
4896
|
}
|
|
4896
4897
|
);
|
|
4897
|
-
|
|
4898
|
-
var
|
|
4898
|
+
Ji.displayName = Zi;
|
|
4899
|
+
var Qi = "SelectValue", ea = l.forwardRef(
|
|
4899
4900
|
(e, t) => {
|
|
4900
|
-
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: a = "", ...c } = e, u = $e(
|
|
4901
|
+
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: a = "", ...c } = e, u = $e(Qi, n), { onValueNodeHasChildrenChange: p } = u, f = s !== void 0, d = G(t, u.onValueNodeChange);
|
|
4901
4902
|
return te(() => {
|
|
4902
4903
|
p(f);
|
|
4903
4904
|
}, [p, f]), /* @__PURE__ */ i.jsx(
|
|
@@ -4906,12 +4907,12 @@ var Ji = "SelectValue", Qi = l.forwardRef(
|
|
|
4906
4907
|
...c,
|
|
4907
4908
|
ref: d,
|
|
4908
4909
|
style: { pointerEvents: "none" },
|
|
4909
|
-
children:
|
|
4910
|
+
children: wa(u.value) ? /* @__PURE__ */ i.jsx(i.Fragment, { children: a }) : s
|
|
4910
4911
|
}
|
|
4911
4912
|
);
|
|
4912
4913
|
}
|
|
4913
4914
|
);
|
|
4914
|
-
|
|
4915
|
+
ea.displayName = Qi;
|
|
4915
4916
|
var Pp = "SelectIcon", _p = l.forwardRef(
|
|
4916
4917
|
(e, t) => {
|
|
4917
4918
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
@@ -4919,9 +4920,9 @@ var Pp = "SelectIcon", _p = l.forwardRef(
|
|
|
4919
4920
|
}
|
|
4920
4921
|
);
|
|
4921
4922
|
_p.displayName = Pp;
|
|
4922
|
-
var Mp = "SelectPortal",
|
|
4923
|
-
|
|
4924
|
-
var Ye = "SelectContent",
|
|
4923
|
+
var Mp = "SelectPortal", ta = (e) => /* @__PURE__ */ i.jsx(it, { asChild: !0, ...e });
|
|
4924
|
+
ta.displayName = Mp;
|
|
4925
|
+
var Ye = "SelectContent", na = l.forwardRef(
|
|
4925
4926
|
(e, t) => {
|
|
4926
4927
|
const n = $e(Ye, e.__scopeSelect), [r, o] = l.useState();
|
|
4927
4928
|
if (te(() => {
|
|
@@ -4929,15 +4930,15 @@ var Ye = "SelectContent", ta = l.forwardRef(
|
|
|
4929
4930
|
}, []), !n.open) {
|
|
4930
4931
|
const s = r;
|
|
4931
4932
|
return s ? qt.createPortal(
|
|
4932
|
-
/* @__PURE__ */ i.jsx(
|
|
4933
|
+
/* @__PURE__ */ i.jsx(ra, { scope: e.__scopeSelect, children: /* @__PURE__ */ i.jsx(hn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ i.jsx("div", { children: e.children }) }) }),
|
|
4933
4934
|
s
|
|
4934
4935
|
) : null;
|
|
4935
4936
|
}
|
|
4936
|
-
return /* @__PURE__ */ i.jsx(
|
|
4937
|
+
return /* @__PURE__ */ i.jsx(oa, { ...e, ref: t });
|
|
4937
4938
|
}
|
|
4938
4939
|
);
|
|
4939
|
-
|
|
4940
|
-
var pe = 10, [
|
|
4940
|
+
na.displayName = Ye;
|
|
4941
|
+
var pe = 10, [ra, Fe] = lt(Ye), jp = "SelectContentImpl", Tp = /* @__PURE__ */ Ue("SelectContent.RemoveScroll"), oa = l.forwardRef(
|
|
4941
4942
|
(e, t) => {
|
|
4942
4943
|
const {
|
|
4943
4944
|
__scopeSelect: n,
|
|
@@ -5001,8 +5002,8 @@ var pe = 10, [na, Fe] = lt(Ye), jp = "SelectContentImpl", Tp = /* @__PURE__ */ U
|
|
|
5001
5002
|
window.removeEventListener("blur", M), window.removeEventListener("resize", M);
|
|
5002
5003
|
};
|
|
5003
5004
|
}, [k]);
|
|
5004
|
-
const [Y, E] =
|
|
5005
|
-
const K = P().filter((X) => !X.disabled), J = K.find((X) => X.ref.current === document.activeElement), z =
|
|
5005
|
+
const [Y, E] = ya((M) => {
|
|
5006
|
+
const K = P().filter((X) => !X.disabled), J = K.find((X) => X.ref.current === document.activeElement), z = Ca(K, M, J);
|
|
5006
5007
|
z && setTimeout(() => z.ref.current.focus());
|
|
5007
5008
|
}), F = l.useCallback(
|
|
5008
5009
|
(M, K, J) => {
|
|
@@ -5016,7 +5017,7 @@ var pe = 10, [na, Fe] = lt(Ye), jp = "SelectContentImpl", Tp = /* @__PURE__ */ U
|
|
|
5016
5017
|
(y.value !== void 0 && y.value === K || z) && O(M);
|
|
5017
5018
|
},
|
|
5018
5019
|
[y.value]
|
|
5019
|
-
), oe = r === "popper" ? Gn :
|
|
5020
|
+
), oe = r === "popper" ? Gn : sa, Q = oe === Gn ? {
|
|
5020
5021
|
side: c,
|
|
5021
5022
|
sideOffset: u,
|
|
5022
5023
|
align: p,
|
|
@@ -5029,7 +5030,7 @@ var pe = 10, [na, Fe] = lt(Ye), jp = "SelectContentImpl", Tp = /* @__PURE__ */ U
|
|
|
5029
5030
|
avoidCollisions: g
|
|
5030
5031
|
} : {};
|
|
5031
5032
|
return /* @__PURE__ */ i.jsx(
|
|
5032
|
-
|
|
5033
|
+
ra,
|
|
5033
5034
|
{
|
|
5034
5035
|
scope: n,
|
|
5035
5036
|
content: b,
|
|
@@ -5105,8 +5106,8 @@ var pe = 10, [na, Fe] = lt(Ye), jp = "SelectContentImpl", Tp = /* @__PURE__ */ U
|
|
|
5105
5106
|
);
|
|
5106
5107
|
}
|
|
5107
5108
|
);
|
|
5108
|
-
|
|
5109
|
-
var Ap = "SelectItemAlignedPosition",
|
|
5109
|
+
oa.displayName = jp;
|
|
5110
|
+
var Ap = "SelectItemAlignedPosition", sa = l.forwardRef((e, t) => {
|
|
5110
5111
|
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = $e(Ye, n), a = Fe(Ye, n), [c, u] = l.useState(null), [p, f] = l.useState(null), d = G(t, (R) => f(R)), m = mn(n), v = l.useRef(!1), x = l.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: w, focusSelectedItem: y } = a, b = l.useCallback(() => {
|
|
5111
5112
|
if (s.trigger && s.valueNode && c && p && h && g && w) {
|
|
5112
5113
|
const R = s.trigger.getBoundingClientRect(), S = p.getBoundingClientRect(), j = s.valueNode.getBoundingClientRect(), L = w.getBoundingClientRect();
|
|
@@ -5210,7 +5211,7 @@ var Ap = "SelectItemAlignedPosition", oa = l.forwardRef((e, t) => {
|
|
|
5210
5211
|
}
|
|
5211
5212
|
);
|
|
5212
5213
|
});
|
|
5213
|
-
|
|
5214
|
+
sa.displayName = Ap;
|
|
5214
5215
|
var Op = "SelectPopperPosition", Gn = l.forwardRef((e, t) => {
|
|
5215
5216
|
const {
|
|
5216
5217
|
__scopeSelect: n,
|
|
@@ -5240,7 +5241,7 @@ var Op = "SelectPopperPosition", Gn = l.forwardRef((e, t) => {
|
|
|
5240
5241
|
);
|
|
5241
5242
|
});
|
|
5242
5243
|
Gn.displayName = Op;
|
|
5243
|
-
var [Ip, Mr] = lt(Ye, {}), zn = "SelectViewport",
|
|
5244
|
+
var [Ip, Mr] = lt(Ye, {}), zn = "SelectViewport", ia = l.forwardRef(
|
|
5244
5245
|
(e, t) => {
|
|
5245
5246
|
const { __scopeSelect: n, nonce: r, ...o } = e, s = Fe(zn, n), a = Mr(zn, n), c = G(t, s.onViewportChange), u = l.useRef(0);
|
|
5246
5247
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
@@ -5292,22 +5293,22 @@ var [Ip, Mr] = lt(Ye, {}), zn = "SelectViewport", sa = l.forwardRef(
|
|
|
5292
5293
|
] });
|
|
5293
5294
|
}
|
|
5294
5295
|
);
|
|
5295
|
-
|
|
5296
|
-
var
|
|
5296
|
+
ia.displayName = zn;
|
|
5297
|
+
var aa = "SelectGroup", [Dp, kp] = lt(aa), ca = l.forwardRef(
|
|
5297
5298
|
(e, t) => {
|
|
5298
5299
|
const { __scopeSelect: n, ...r } = e, o = ae();
|
|
5299
5300
|
return /* @__PURE__ */ i.jsx(Dp, { scope: n, id: o, children: /* @__PURE__ */ i.jsx(V.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
5300
5301
|
}
|
|
5301
5302
|
);
|
|
5302
|
-
|
|
5303
|
-
var
|
|
5303
|
+
ca.displayName = aa;
|
|
5304
|
+
var la = "SelectLabel", Lp = l.forwardRef(
|
|
5304
5305
|
(e, t) => {
|
|
5305
|
-
const { __scopeSelect: n, ...r } = e, o = kp(
|
|
5306
|
+
const { __scopeSelect: n, ...r } = e, o = kp(la, n);
|
|
5306
5307
|
return /* @__PURE__ */ i.jsx(V.div, { id: o.id, ...r, ref: t });
|
|
5307
5308
|
}
|
|
5308
5309
|
);
|
|
5309
|
-
Lp.displayName =
|
|
5310
|
-
var Yt = "SelectItem", [$p,
|
|
5310
|
+
Lp.displayName = la;
|
|
5311
|
+
var Yt = "SelectItem", [$p, ua] = lt(Yt), da = l.forwardRef(
|
|
5311
5312
|
(e, t) => {
|
|
5312
5313
|
const {
|
|
5313
5314
|
__scopeSelect: n,
|
|
@@ -5384,10 +5385,10 @@ var Yt = "SelectItem", [$p, la] = lt(Yt), ua = l.forwardRef(
|
|
|
5384
5385
|
);
|
|
5385
5386
|
}
|
|
5386
5387
|
);
|
|
5387
|
-
|
|
5388
|
-
var pt = "SelectItemText",
|
|
5388
|
+
da.displayName = Yt;
|
|
5389
|
+
var pt = "SelectItemText", fa = l.forwardRef(
|
|
5389
5390
|
(e, t) => {
|
|
5390
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = $e(pt, n), c = Fe(pt, n), u =
|
|
5391
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = $e(pt, n), c = Fe(pt, n), u = ua(pt, n), p = Np(pt, n), [f, d] = l.useState(null), m = G(
|
|
5391
5392
|
t,
|
|
5392
5393
|
(w) => d(w),
|
|
5393
5394
|
u.onItemTextChange,
|
|
@@ -5402,15 +5403,15 @@ var pt = "SelectItemText", da = l.forwardRef(
|
|
|
5402
5403
|
] });
|
|
5403
5404
|
}
|
|
5404
5405
|
);
|
|
5405
|
-
|
|
5406
|
-
var
|
|
5406
|
+
fa.displayName = pt;
|
|
5407
|
+
var pa = "SelectItemIndicator", ha = l.forwardRef(
|
|
5407
5408
|
(e, t) => {
|
|
5408
5409
|
const { __scopeSelect: n, ...r } = e;
|
|
5409
|
-
return
|
|
5410
|
+
return ua(pa, n).isSelected ? /* @__PURE__ */ i.jsx(V.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
5410
5411
|
}
|
|
5411
5412
|
);
|
|
5412
|
-
|
|
5413
|
-
var Yn = "SelectScrollUpButton",
|
|
5413
|
+
ha.displayName = pa;
|
|
5414
|
+
var Yn = "SelectScrollUpButton", ma = l.forwardRef((e, t) => {
|
|
5414
5415
|
const n = Fe(Yn, e.__scopeSelect), r = Mr(Yn, e.__scopeSelect), [o, s] = l.useState(!1), a = G(t, r.onScrollButtonChange);
|
|
5415
5416
|
return te(() => {
|
|
5416
5417
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5422,7 +5423,7 @@ var Yn = "SelectScrollUpButton", ha = l.forwardRef((e, t) => {
|
|
|
5422
5423
|
return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
|
|
5423
5424
|
}
|
|
5424
5425
|
}, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ i.jsx(
|
|
5425
|
-
|
|
5426
|
+
ga,
|
|
5426
5427
|
{
|
|
5427
5428
|
...e,
|
|
5428
5429
|
ref: a,
|
|
@@ -5433,8 +5434,8 @@ var Yn = "SelectScrollUpButton", ha = l.forwardRef((e, t) => {
|
|
|
5433
5434
|
}
|
|
5434
5435
|
) : null;
|
|
5435
5436
|
});
|
|
5436
|
-
|
|
5437
|
-
var Xn = "SelectScrollDownButton",
|
|
5437
|
+
ma.displayName = Yn;
|
|
5438
|
+
var Xn = "SelectScrollDownButton", va = l.forwardRef((e, t) => {
|
|
5438
5439
|
const n = Fe(Xn, e.__scopeSelect), r = Mr(Xn, e.__scopeSelect), [o, s] = l.useState(!1), a = G(t, r.onScrollButtonChange);
|
|
5439
5440
|
return te(() => {
|
|
5440
5441
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5446,7 +5447,7 @@ var Xn = "SelectScrollDownButton", ma = l.forwardRef((e, t) => {
|
|
|
5446
5447
|
return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
|
|
5447
5448
|
}
|
|
5448
5449
|
}, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ i.jsx(
|
|
5449
|
-
|
|
5450
|
+
ga,
|
|
5450
5451
|
{
|
|
5451
5452
|
...e,
|
|
5452
5453
|
ref: a,
|
|
@@ -5457,8 +5458,8 @@ var Xn = "SelectScrollDownButton", ma = l.forwardRef((e, t) => {
|
|
|
5457
5458
|
}
|
|
5458
5459
|
) : null;
|
|
5459
5460
|
});
|
|
5460
|
-
|
|
5461
|
-
var
|
|
5461
|
+
va.displayName = Xn;
|
|
5462
|
+
var ga = l.forwardRef((e, t) => {
|
|
5462
5463
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = Fe("SelectScrollButton", n), a = l.useRef(null), c = mn(n), u = l.useCallback(() => {
|
|
5463
5464
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
5464
5465
|
}, []);
|
|
@@ -5496,7 +5497,7 @@ var qn = "SelectArrow", Wp = l.forwardRef(
|
|
|
5496
5497
|
}
|
|
5497
5498
|
);
|
|
5498
5499
|
Wp.displayName = qn;
|
|
5499
|
-
var Vp = "SelectBubbleInput",
|
|
5500
|
+
var Vp = "SelectBubbleInput", xa = l.forwardRef(
|
|
5500
5501
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
5501
5502
|
const o = l.useRef(null), s = G(r, o), a = cu(t);
|
|
5502
5503
|
return l.useEffect(() => {
|
|
@@ -5521,11 +5522,11 @@ var Vp = "SelectBubbleInput", ga = l.forwardRef(
|
|
|
5521
5522
|
);
|
|
5522
5523
|
}
|
|
5523
5524
|
);
|
|
5524
|
-
|
|
5525
|
-
function
|
|
5525
|
+
xa.displayName = Vp;
|
|
5526
|
+
function wa(e) {
|
|
5526
5527
|
return e === "" || e === void 0;
|
|
5527
5528
|
}
|
|
5528
|
-
function
|
|
5529
|
+
function ya(e) {
|
|
5529
5530
|
const t = de(e), n = l.useRef(""), r = l.useRef(0), o = l.useCallback(
|
|
5530
5531
|
(a) => {
|
|
5531
5532
|
const c = n.current + a;
|
|
@@ -5539,7 +5540,7 @@ function wa(e) {
|
|
|
5539
5540
|
}, []);
|
|
5540
5541
|
return l.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, s];
|
|
5541
5542
|
}
|
|
5542
|
-
function
|
|
5543
|
+
function Ca(e, t, n) {
|
|
5543
5544
|
const o = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
5544
5545
|
let a = Hp(e, Math.max(s, 0));
|
|
5545
5546
|
o.length === 1 && (a = a.filter((p) => p !== n));
|
|
@@ -5551,9 +5552,9 @@ function ya(e, t, n) {
|
|
|
5551
5552
|
function Hp(e, t) {
|
|
5552
5553
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
5553
5554
|
}
|
|
5554
|
-
var Up =
|
|
5555
|
+
var Up = qi, Kp = Ji, Gp = ea, zp = ta, Yp = na, Xp = ia, qp = ca, Zp = da, Jp = fa, Qp = ha, eh = ma, th = va, [gn] = ye("Tooltip", [
|
|
5555
5556
|
De
|
|
5556
|
-
]), xn = De(),
|
|
5557
|
+
]), xn = De(), ba = "TooltipProvider", nh = 700, Zn = "tooltip.open", [rh, jr] = gn(ba), Ea = (e) => {
|
|
5557
5558
|
const {
|
|
5558
5559
|
__scopeTooltip: t,
|
|
5559
5560
|
delayDuration: n = nh,
|
|
@@ -5588,8 +5589,8 @@ var Up = Xi, Kp = Zi, Gp = Qi, zp = ea, Yp = ta, Xp = sa, qp = aa, Zp = ua, Jp =
|
|
|
5588
5589
|
}
|
|
5589
5590
|
);
|
|
5590
5591
|
};
|
|
5591
|
-
|
|
5592
|
-
var gt = "Tooltip", [oh, _t] = gn(gt),
|
|
5592
|
+
Ea.displayName = ba;
|
|
5593
|
+
var gt = "Tooltip", [oh, _t] = gn(gt), Sa = (e) => {
|
|
5593
5594
|
const {
|
|
5594
5595
|
__scopeTooltip: t,
|
|
5595
5596
|
children: n,
|
|
@@ -5638,8 +5639,8 @@ var gt = "Tooltip", [oh, _t] = gn(gt), Ea = (e) => {
|
|
|
5638
5639
|
}
|
|
5639
5640
|
) });
|
|
5640
5641
|
};
|
|
5641
|
-
|
|
5642
|
-
var Jn = "TooltipTrigger",
|
|
5642
|
+
Sa.displayName = gt;
|
|
5643
|
+
var Jn = "TooltipTrigger", Ra = l.forwardRef(
|
|
5643
5644
|
(e, t) => {
|
|
5644
5645
|
const { __scopeTooltip: n, ...r } = e, o = _t(Jn, n), s = jr(Jn, n), a = xn(n), c = l.useRef(null), u = G(t, c, o.onTriggerChange), p = l.useRef(!1), f = l.useRef(!1), d = l.useCallback(() => p.current = !1, []);
|
|
5645
5646
|
return l.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ i.jsx(bt, { asChild: !0, ...a, children: /* @__PURE__ */ i.jsx(
|
|
@@ -5667,18 +5668,18 @@ var Jn = "TooltipTrigger", Sa = l.forwardRef(
|
|
|
5667
5668
|
) });
|
|
5668
5669
|
}
|
|
5669
5670
|
);
|
|
5670
|
-
|
|
5671
|
+
Ra.displayName = Jn;
|
|
5671
5672
|
var Tr = "TooltipPortal", [sh, ih] = gn(Tr, {
|
|
5672
5673
|
forceMount: void 0
|
|
5673
|
-
}),
|
|
5674
|
+
}), Na = (e) => {
|
|
5674
5675
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = _t(Tr, t);
|
|
5675
5676
|
return /* @__PURE__ */ i.jsx(sh, { scope: t, forceMount: n, children: /* @__PURE__ */ i.jsx(fe, { present: n || s.open, children: /* @__PURE__ */ i.jsx(it, { asChild: !0, container: o, children: r }) }) });
|
|
5676
5677
|
};
|
|
5677
|
-
|
|
5678
|
-
var ot = "TooltipContent",
|
|
5678
|
+
Na.displayName = Tr;
|
|
5679
|
+
var ot = "TooltipContent", Pa = l.forwardRef(
|
|
5679
5680
|
(e, t) => {
|
|
5680
5681
|
const n = ih(ot, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = _t(ot, e.__scopeTooltip);
|
|
5681
|
-
return /* @__PURE__ */ i.jsx(fe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ i.jsx(
|
|
5682
|
+
return /* @__PURE__ */ i.jsx(fe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ i.jsx(_a, { side: o, ...s, ref: t }) : /* @__PURE__ */ i.jsx(ah, { side: o, ...s, ref: t }) });
|
|
5682
5683
|
}
|
|
5683
5684
|
), ah = l.forwardRef((e, t) => {
|
|
5684
5685
|
const n = _t(ot, e.__scopeTooltip), r = jr(ot, e.__scopeTooltip), o = l.useRef(null), s = G(t, o), [a, c] = l.useState(null), { trigger: u, onClose: p } = n, f = o.current, { onPointerInTransitChange: d } = r, m = l.useCallback(() => {
|
|
@@ -5705,8 +5706,8 @@ var ot = "TooltipContent", Na = l.forwardRef(
|
|
|
5705
5706
|
};
|
|
5706
5707
|
return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
|
|
5707
5708
|
}
|
|
5708
|
-
}, [u, f, a, p, m]), /* @__PURE__ */ i.jsx(
|
|
5709
|
-
}), [ch, lh] = gn(gt, { isInside: !1 }), uh = /* @__PURE__ */
|
|
5709
|
+
}, [u, f, a, p, m]), /* @__PURE__ */ i.jsx(_a, { ...e, ref: s });
|
|
5710
|
+
}), [ch, lh] = gn(gt, { isInside: !1 }), uh = /* @__PURE__ */ Pc("TooltipContent"), _a = l.forwardRef(
|
|
5710
5711
|
(e, t) => {
|
|
5711
5712
|
const {
|
|
5712
5713
|
__scopeTooltip: n,
|
|
@@ -5749,7 +5750,7 @@ var ot = "TooltipContent", Na = l.forwardRef(
|
|
|
5749
5750
|
},
|
|
5750
5751
|
children: [
|
|
5751
5752
|
/* @__PURE__ */ i.jsx(uh, { children: r }),
|
|
5752
|
-
/* @__PURE__ */ i.jsx(ch, { scope: n, isInside: !0, children: /* @__PURE__ */ i.jsx(
|
|
5753
|
+
/* @__PURE__ */ i.jsx(ch, { scope: n, isInside: !0, children: /* @__PURE__ */ i.jsx(Oc, { id: u.contentId, role: "tooltip", children: o || r }) })
|
|
5753
5754
|
]
|
|
5754
5755
|
}
|
|
5755
5756
|
)
|
|
@@ -5757,17 +5758,17 @@ var ot = "TooltipContent", Na = l.forwardRef(
|
|
|
5757
5758
|
);
|
|
5758
5759
|
}
|
|
5759
5760
|
);
|
|
5760
|
-
|
|
5761
|
-
var
|
|
5761
|
+
Pa.displayName = ot;
|
|
5762
|
+
var Ma = "TooltipArrow", ja = l.forwardRef(
|
|
5762
5763
|
(e, t) => {
|
|
5763
5764
|
const { __scopeTooltip: n, ...r } = e, o = xn(n);
|
|
5764
5765
|
return lh(
|
|
5765
|
-
|
|
5766
|
+
Ma,
|
|
5766
5767
|
n
|
|
5767
5768
|
).isInside ? null : /* @__PURE__ */ i.jsx(ln, { ...o, ...r, ref: t });
|
|
5768
5769
|
}
|
|
5769
5770
|
);
|
|
5770
|
-
|
|
5771
|
+
ja.displayName = Ma;
|
|
5771
5772
|
function dh(e, t) {
|
|
5772
5773
|
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);
|
|
5773
5774
|
switch (Math.min(n, r, o, s)) {
|
|
@@ -5860,27 +5861,27 @@ function vh(e) {
|
|
|
5860
5861
|
}
|
|
5861
5862
|
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);
|
|
5862
5863
|
}
|
|
5863
|
-
var gh =
|
|
5864
|
-
function
|
|
5865
|
-
return e.map((t, n) => t.separator ? /* @__PURE__ */ i.jsx(
|
|
5864
|
+
var gh = Ea, xh = Sa, wh = Ra, yh = Na, Ch = Pa, bh = ja;
|
|
5865
|
+
function Ta(e) {
|
|
5866
|
+
return e.map((t, n) => t.separator ? /* @__PURE__ */ i.jsx(Mi, { className: "my-1 h-px bg-border-default" }, `separator-${n}`) : t.items?.length ? /* @__PURE__ */ i.jsxs(If, { children: [
|
|
5866
5867
|
/* @__PURE__ */ i.jsxs(
|
|
5867
5868
|
Df,
|
|
5868
5869
|
{
|
|
5869
5870
|
disabled: t.disabled,
|
|
5870
|
-
className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-
|
|
5871
|
+
className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-text-default outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 data-highlighted:bg-surface-hover",
|
|
5871
5872
|
children: [
|
|
5872
5873
|
/* @__PURE__ */ i.jsx("span", { children: t.label }),
|
|
5873
5874
|
/* @__PURE__ */ i.jsx(Ro, { className: "h-3.5 w-3.5 opacity-70" })
|
|
5874
5875
|
]
|
|
5875
5876
|
}
|
|
5876
5877
|
),
|
|
5877
|
-
/* @__PURE__ */ i.jsx(
|
|
5878
|
+
/* @__PURE__ */ i.jsx(_i, { children: /* @__PURE__ */ i.jsx(
|
|
5878
5879
|
kf,
|
|
5879
5880
|
{
|
|
5880
5881
|
sideOffset: 6,
|
|
5881
5882
|
alignOffset: -4,
|
|
5882
|
-
className: "z-50 min-w-44 rounded-lg border border-
|
|
5883
|
-
children:
|
|
5883
|
+
className: "z-50 min-w-44 rounded-lg border border-border-default bg-surface-base p-1.5 shadow-2xl",
|
|
5884
|
+
children: Ta(t.items)
|
|
5884
5885
|
}
|
|
5885
5886
|
) })
|
|
5886
5887
|
] }, `sub-${n}`) : /* @__PURE__ */ i.jsxs(
|
|
@@ -5888,10 +5889,10 @@ function ja(e) {
|
|
|
5888
5889
|
{
|
|
5889
5890
|
disabled: t.disabled,
|
|
5890
5891
|
onSelect: t.onSelect,
|
|
5891
|
-
className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-
|
|
5892
|
+
className: "flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm text-text-default outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 data-highlighted:bg-surface-hover",
|
|
5892
5893
|
children: [
|
|
5893
5894
|
/* @__PURE__ */ i.jsx("span", { children: t.label }),
|
|
5894
|
-
t.shortcut ? /* @__PURE__ */ i.jsx("span", { className: "ml-6 text-xs text-
|
|
5895
|
+
t.shortcut ? /* @__PURE__ */ i.jsx("span", { className: "ml-6 text-xs text-text-muted", children: t.shortcut }) : null
|
|
5895
5896
|
]
|
|
5896
5897
|
},
|
|
5897
5898
|
`item-${n}`
|
|
@@ -5908,12 +5909,12 @@ function Eh({
|
|
|
5908
5909
|
renderHeader: c,
|
|
5909
5910
|
className: u
|
|
5910
5911
|
}) {
|
|
5911
|
-
const p =
|
|
5912
|
+
const p = je(null), f = je(!1), d = Qe(
|
|
5912
5913
|
(v) => {
|
|
5913
5914
|
o?.(v), v || s?.();
|
|
5914
5915
|
},
|
|
5915
5916
|
[s, o]
|
|
5916
|
-
), m =
|
|
5917
|
+
), m = _e(() => a ? a() : Ta(r ?? []), [r, a]);
|
|
5917
5918
|
return tr(() => {
|
|
5918
5919
|
if (!e) {
|
|
5919
5920
|
f.current = !1;
|
|
@@ -5930,14 +5931,14 @@ function Eh({
|
|
|
5930
5931
|
p.current.dispatchEvent(v), f.current = !0;
|
|
5931
5932
|
}, [e, t, n]), e ? /* @__PURE__ */ i.jsxs(jf, { onOpenChange: d, children: [
|
|
5932
5933
|
/* @__PURE__ */ i.jsx(Tf, { asChild: !0, children: /* @__PURE__ */ i.jsx("span", { ref: p, "aria-hidden": !0, className: "fixed h-0 w-0", style: { left: t, top: n } }) }),
|
|
5933
|
-
/* @__PURE__ */ i.jsx(
|
|
5934
|
+
/* @__PURE__ */ i.jsx(_i, { children: /* @__PURE__ */ i.jsxs(
|
|
5934
5935
|
Af,
|
|
5935
5936
|
{
|
|
5936
5937
|
onCloseAutoFocus: (v) => v.preventDefault(),
|
|
5937
|
-
className: `z-50 min-w-48 rounded-lg border border-
|
|
5938
|
+
className: `z-50 min-w-48 rounded-lg border border-border-default bg-surface-base p-1.5 shadow-2xl ${u ?? ""}`,
|
|
5938
5939
|
children: [
|
|
5939
|
-
c ? /* @__PURE__ */ i.jsx("div", { className: "px-2.5 py-1.5 text-xs text-
|
|
5940
|
-
c ? /* @__PURE__ */ i.jsx(
|
|
5940
|
+
c ? /* @__PURE__ */ i.jsx("div", { className: "px-2.5 py-1.5 text-xs text-text-muted", children: c() }) : null,
|
|
5941
|
+
c ? /* @__PURE__ */ i.jsx(Mi, { className: "my-1 h-px bg-border-default" }) : null,
|
|
5941
5942
|
m
|
|
5942
5943
|
]
|
|
5943
5944
|
}
|
|
@@ -5987,21 +5988,21 @@ function lm({
|
|
|
5987
5988
|
className: c,
|
|
5988
5989
|
contentClassName: u
|
|
5989
5990
|
}) {
|
|
5990
|
-
return /* @__PURE__ */ i.jsx(
|
|
5991
|
-
/* @__PURE__ */ i.jsx(
|
|
5991
|
+
return /* @__PURE__ */ i.jsx(nu, { open: e, onOpenChange: t, children: /* @__PURE__ */ i.jsxs(ru, { children: [
|
|
5992
|
+
/* @__PURE__ */ i.jsx(ou, { className: "fixed inset-0 z-40 bg-black/70 backdrop-blur-[2px]" }),
|
|
5992
5993
|
/* @__PURE__ */ i.jsxs(
|
|
5993
|
-
|
|
5994
|
+
su,
|
|
5994
5995
|
{
|
|
5995
5996
|
style: { maxWidth: s },
|
|
5996
5997
|
className: `mt-surface-dialog fixed left-1/2 top-1/2 z-50 w-[92vw] max-h-[86vh] -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-2xl p-6 shadow-[0_24px_80px_rgba(0,0,0,0.65)] focus:outline-none ${c || ""} ${u || ""}`,
|
|
5997
5998
|
children: [
|
|
5998
5999
|
(n || r || a) && /* @__PURE__ */ i.jsxs("div", { className: "mb-5 flex items-center gap-3 border-b pb-4", children: [
|
|
5999
6000
|
(n || r) && /* @__PURE__ */ i.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6000
|
-
n && /* @__PURE__ */ i.jsx(
|
|
6001
|
-
r && /* @__PURE__ */ i.jsx(
|
|
6001
|
+
n && /* @__PURE__ */ i.jsx(iu, { className: "text-xl font-semibold flex items-center gap-2 before:content-none!", children: n }),
|
|
6002
|
+
r && /* @__PURE__ */ i.jsx(au, { className: "mt-2 text-sm", children: r })
|
|
6002
6003
|
] }),
|
|
6003
|
-
a && /* @__PURE__ */ i.jsx(
|
|
6004
|
-
|
|
6004
|
+
a && /* @__PURE__ */ i.jsx(ns, { asChild: !0, children: /* @__PURE__ */ i.jsx(
|
|
6005
|
+
Ee,
|
|
6005
6006
|
{
|
|
6006
6007
|
kind: "icon",
|
|
6007
6008
|
size: "large",
|
|
@@ -6018,17 +6019,18 @@ function lm({
|
|
|
6018
6019
|
)
|
|
6019
6020
|
] }) });
|
|
6020
6021
|
}
|
|
6021
|
-
|
|
6022
|
+
const um = ns;
|
|
6023
|
+
function dm({ title: e, className: t }) {
|
|
6022
6024
|
return e ? /* @__PURE__ */ i.jsxs("div", { className: `my-4 flex items-center gap-3 ${t || ""}`, children: [
|
|
6023
6025
|
/* @__PURE__ */ i.jsx("div", { className: "h-px flex-1 bg-border-default" }),
|
|
6024
6026
|
/* @__PURE__ */ i.jsx("span", { className: "text-xs uppercase tracking-wide text-text-muted", children: e }),
|
|
6025
6027
|
/* @__PURE__ */ i.jsx("div", { className: "h-px flex-1 bg-border-default" })
|
|
6026
6028
|
] }) : /* @__PURE__ */ i.jsx("div", { className: `my-4 ${t || ""}`, children: /* @__PURE__ */ i.jsx("div", { className: "h-px w-full bg-border-default" }) });
|
|
6027
6029
|
}
|
|
6028
|
-
function
|
|
6030
|
+
function Aa({ children: e }) {
|
|
6029
6031
|
return e;
|
|
6030
6032
|
}
|
|
6031
|
-
function
|
|
6033
|
+
function fm({
|
|
6032
6034
|
children: e,
|
|
6033
6035
|
className: t,
|
|
6034
6036
|
...n
|
|
@@ -6055,14 +6057,14 @@ const Rh = ({
|
|
|
6055
6057
|
let p = null;
|
|
6056
6058
|
const f = [];
|
|
6057
6059
|
return q.Children.forEach(t, (d) => {
|
|
6058
|
-
if (q.isValidElement(d) && d.type ===
|
|
6060
|
+
if (q.isValidElement(d) && d.type === Aa) {
|
|
6059
6061
|
p = d.props.children;
|
|
6060
6062
|
return;
|
|
6061
6063
|
}
|
|
6062
6064
|
f.push(d);
|
|
6063
6065
|
}), /* @__PURE__ */ i.jsxs(ap, { children: [
|
|
6064
6066
|
/* @__PURE__ */ i.jsx(cp, { asChild: !0, children: p || /* @__PURE__ */ i.jsxs(
|
|
6065
|
-
|
|
6067
|
+
Ee,
|
|
6066
6068
|
{
|
|
6067
6069
|
kind: r,
|
|
6068
6070
|
size: o,
|
|
@@ -6085,7 +6087,7 @@ const Rh = ({
|
|
|
6085
6087
|
) })
|
|
6086
6088
|
] });
|
|
6087
6089
|
}, Ar = Rh;
|
|
6088
|
-
Ar.Trigger =
|
|
6090
|
+
Ar.Trigger = Aa;
|
|
6089
6091
|
const fo = er(({ size: e, variant: t, className: n, ...r }, o) => {
|
|
6090
6092
|
const s = e || "medium", a = {
|
|
6091
6093
|
medium: "mt-layout-input-medium",
|
|
@@ -6102,7 +6104,7 @@ const fo = er(({ size: e, variant: t, className: n, ...r }, o) => {
|
|
|
6102
6104
|
className: `w-fit border rounded outline-none ${a[s]} ${u[c]} ${n || ""}`
|
|
6103
6105
|
}
|
|
6104
6106
|
);
|
|
6105
|
-
}),
|
|
6107
|
+
}), Oa = ["shift", "alt", "meta", "mod", "ctrl", "control"], Nh = {
|
|
6106
6108
|
esc: "escape",
|
|
6107
6109
|
return: "enter",
|
|
6108
6110
|
left: "arrowleft",
|
|
@@ -6120,18 +6122,18 @@ const fo = er(({ size: e, variant: t, className: n, ...r }, o) => {
|
|
|
6120
6122
|
ControlLeft: "ctrl",
|
|
6121
6123
|
ControlRight: "ctrl"
|
|
6122
6124
|
};
|
|
6123
|
-
function
|
|
6125
|
+
function Te(e) {
|
|
6124
6126
|
return (Nh[e.trim()] || e.trim()).toLowerCase().replace(/key|digit|numpad/, "");
|
|
6125
6127
|
}
|
|
6126
|
-
function
|
|
6127
|
-
return
|
|
6128
|
+
function Ia(e) {
|
|
6129
|
+
return Oa.includes(e);
|
|
6128
6130
|
}
|
|
6129
6131
|
function On(e, t = ",") {
|
|
6130
6132
|
return e.toLowerCase().split(t);
|
|
6131
6133
|
}
|
|
6132
6134
|
function In(e, t = "+", n = ">", r = !1, o, s) {
|
|
6133
6135
|
let a = [], c = !1;
|
|
6134
|
-
e = e.trim(), e.includes(n) ? (c = !0, a = e.toLocaleLowerCase().split(n).map((f) =>
|
|
6136
|
+
e = e.trim(), e.includes(n) ? (c = !0, a = e.toLocaleLowerCase().split(n).map((f) => Te(f))) : a = e.toLocaleLowerCase().split(t).map((f) => Te(f));
|
|
6135
6137
|
const u = {
|
|
6136
6138
|
alt: a.includes("alt"),
|
|
6137
6139
|
ctrl: a.includes("ctrl") || a.includes("control"),
|
|
@@ -6139,7 +6141,7 @@ function In(e, t = "+", n = ">", r = !1, o, s) {
|
|
|
6139
6141
|
meta: a.includes("meta"),
|
|
6140
6142
|
mod: a.includes("mod"),
|
|
6141
6143
|
useKey: r
|
|
6142
|
-
}, p = a.filter((f) => !
|
|
6144
|
+
}, p = a.filter((f) => !Oa.includes(f));
|
|
6143
6145
|
return {
|
|
6144
6146
|
...u,
|
|
6145
6147
|
keys: p,
|
|
@@ -6150,9 +6152,9 @@ function In(e, t = "+", n = ">", r = !1, o, s) {
|
|
|
6150
6152
|
};
|
|
6151
6153
|
}
|
|
6152
6154
|
typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
6153
|
-
e.code !== void 0 &&
|
|
6155
|
+
e.code !== void 0 && Da([Te(e.code)]);
|
|
6154
6156
|
}), document.addEventListener("keyup", (e) => {
|
|
6155
|
-
e.code !== void 0 &&
|
|
6157
|
+
e.code !== void 0 && ka([Te(e.code)]);
|
|
6156
6158
|
})), typeof window < "u" && (window.addEventListener("blur", () => {
|
|
6157
6159
|
be.clear();
|
|
6158
6160
|
}), window.addEventListener("contextmenu", () => {
|
|
@@ -6167,15 +6169,15 @@ function Or(e) {
|
|
|
6167
6169
|
function Ph(e, t = ",") {
|
|
6168
6170
|
return (Or(e) ? e : e.split(t)).every((n) => be.has(n.trim().toLowerCase()));
|
|
6169
6171
|
}
|
|
6170
|
-
function
|
|
6172
|
+
function Da(e) {
|
|
6171
6173
|
const t = Array.isArray(e) ? e : [e];
|
|
6172
6174
|
be.has("meta") && be.forEach((n) => {
|
|
6173
|
-
|
|
6175
|
+
Ia(n) || be.delete(n.toLowerCase());
|
|
6174
6176
|
}), t.forEach((n) => {
|
|
6175
6177
|
be.add(n.toLowerCase());
|
|
6176
6178
|
});
|
|
6177
6179
|
}
|
|
6178
|
-
function
|
|
6180
|
+
function ka(e) {
|
|
6179
6181
|
const t = Array.isArray(e) ? e : [e];
|
|
6180
6182
|
e === "meta" ? be.clear() : t.forEach((n) => {
|
|
6181
6183
|
be.delete(n.toLowerCase());
|
|
@@ -6202,9 +6204,9 @@ const jh = [
|
|
|
6202
6204
|
"textbox"
|
|
6203
6205
|
];
|
|
6204
6206
|
function Th(e) {
|
|
6205
|
-
return
|
|
6207
|
+
return La(e, jh);
|
|
6206
6208
|
}
|
|
6207
|
-
function
|
|
6209
|
+
function La(e, t = !1) {
|
|
6208
6210
|
const { target: n, composed: r } = e;
|
|
6209
6211
|
let o, s;
|
|
6210
6212
|
return Ah(n) && r ? (o = e.composedPath()[0] && e.composedPath()[0].tagName, s = e.composedPath()[0] && e.composedPath()[0].role) : (o = n && n.tagName, s = n && n.role), Or(t) ? !!(o && t && t.some((a) => a.toLowerCase() === o.toLowerCase() || a === s)) : !!(o && t && t);
|
|
@@ -6216,7 +6218,7 @@ function Oh(e, t) {
|
|
|
6216
6218
|
return e.length === 0 && t ? !1 : t ? e.some((n) => t.includes(n)) || e.includes("*") : !0;
|
|
6217
6219
|
}
|
|
6218
6220
|
const Ih = (e, t, n = !1) => {
|
|
6219
|
-
const { alt: r, meta: o, mod: s, shift: a, ctrl: c, keys: u, useKey: p } = t, { code: f, key: d, ctrlKey: m, metaKey: v, shiftKey: x, altKey: h } = e, g =
|
|
6221
|
+
const { alt: r, meta: o, mod: s, shift: a, ctrl: c, keys: u, useKey: p } = t, { code: f, key: d, ctrlKey: m, metaKey: v, shiftKey: x, altKey: h } = e, g = Te(f);
|
|
6220
6222
|
if (p && u?.length === 1 && u.includes(d.toLowerCase()))
|
|
6221
6223
|
return !0;
|
|
6222
6224
|
if (!u?.includes(g) && !["ctrl", "control", "unknown", "meta", "alt", "shift", "os"].includes(g))
|
|
@@ -6232,9 +6234,9 @@ const Ih = (e, t, n = !1) => {
|
|
|
6232
6234
|
}
|
|
6233
6235
|
return u && u.length === 1 && u.includes(g) ? !0 : u && u.length > 0 ? u.includes(g) ? Ph(u) : !1 : !u || u.length === 0;
|
|
6234
6236
|
}, Dh = go(void 0), kh = () => xo(Dh);
|
|
6235
|
-
function
|
|
6237
|
+
function $a(e, t) {
|
|
6236
6238
|
return e && t && typeof e == "object" && typeof t == "object" ? Object.keys(e).length === Object.keys(t).length && // @ts-expect-error TS7053
|
|
6237
|
-
Object.keys(e).reduce((n, r) => n &&
|
|
6239
|
+
Object.keys(e).reduce((n, r) => n && $a(e[r], t[r]), !0) : e === t;
|
|
6238
6240
|
}
|
|
6239
6241
|
const Lh = go({
|
|
6240
6242
|
hotkeys: [],
|
|
@@ -6248,14 +6250,14 @@ const Lh = go({
|
|
|
6248
6250
|
}
|
|
6249
6251
|
}), $h = () => xo(Lh);
|
|
6250
6252
|
function Fh(e) {
|
|
6251
|
-
const t =
|
|
6252
|
-
return
|
|
6253
|
+
const t = je(void 0);
|
|
6254
|
+
return $a(t.current, e) || (t.current = e), t.current;
|
|
6253
6255
|
}
|
|
6254
6256
|
const po = (e) => {
|
|
6255
6257
|
e.stopPropagation(), e.preventDefault(), e.stopImmediatePropagation();
|
|
6256
6258
|
}, Bh = typeof window < "u" ? vo : tr;
|
|
6257
6259
|
function Wh(e, t, n, r) {
|
|
6258
|
-
const o =
|
|
6260
|
+
const o = je(null), s = je(!1), a = Array.isArray(n) ? Array.isArray(r) ? void 0 : r : n, c = Or(e) ? e.join(a?.delimiter) : e, u = Array.isArray(n) ? n : Array.isArray(r) ? r : void 0, p = Qe(t, u ?? []), f = je(p);
|
|
6259
6261
|
u ? f.current = p : f.current = t;
|
|
6260
6262
|
const d = Fh(a), { activeScopes: m } = $h(), v = kh();
|
|
6261
6263
|
return Bh(() => {
|
|
@@ -6263,7 +6265,7 @@ function Wh(e, t, n, r) {
|
|
|
6263
6265
|
return;
|
|
6264
6266
|
let x = [], h;
|
|
6265
6267
|
const g = (C, N = !1) => {
|
|
6266
|
-
if (!(Th(C) && !
|
|
6268
|
+
if (!(Th(C) && !La(C, d?.enableOnFormTags))) {
|
|
6267
6269
|
if (o.current !== null) {
|
|
6268
6270
|
const _ = o.current.getRootNode();
|
|
6269
6271
|
if ((_ instanceof Document || _ instanceof ShadowRoot) && _.activeElement !== o.current && !o.current.contains(_.activeElement)) {
|
|
@@ -6290,8 +6292,8 @@ function Wh(e, t, n, r) {
|
|
|
6290
6292
|
h = setTimeout(() => {
|
|
6291
6293
|
x = [];
|
|
6292
6294
|
}, d?.sequenceTimeoutMs ?? 1e3);
|
|
6293
|
-
const S = R.useKey ? C.key :
|
|
6294
|
-
if (
|
|
6295
|
+
const S = R.useKey ? C.key : Te(C.code);
|
|
6296
|
+
if (Ia(S.toLowerCase()))
|
|
6295
6297
|
return;
|
|
6296
6298
|
x.push(S);
|
|
6297
6299
|
const j = R.keys?.[x.length - 1];
|
|
@@ -6312,9 +6314,9 @@ function Wh(e, t, n, r) {
|
|
|
6312
6314
|
});
|
|
6313
6315
|
}
|
|
6314
6316
|
}, w = (C) => {
|
|
6315
|
-
C.code !== void 0 && (
|
|
6317
|
+
C.code !== void 0 && (Da(Te(C.code)), (d?.keydown === void 0 && d?.keyup !== !0 || d?.keydown) && g(C));
|
|
6316
6318
|
}, y = (C) => {
|
|
6317
|
-
C.code !== void 0 && (
|
|
6319
|
+
C.code !== void 0 && (ka(Te(C.code)), s.current = !1, d?.keyup && g(C, !0));
|
|
6318
6320
|
}, b = o.current || a?.document || document;
|
|
6319
6321
|
return b.addEventListener("keyup", y, a?.eventListenerOptions), b.addEventListener("keydown", w, a?.eventListenerOptions), v && On(c, d?.delimiter).forEach((C) => {
|
|
6320
6322
|
v.addHotkey(
|
|
@@ -6343,25 +6345,25 @@ function Wh(e, t, n, r) {
|
|
|
6343
6345
|
};
|
|
6344
6346
|
}, [c, d, m]), o;
|
|
6345
6347
|
}
|
|
6346
|
-
function
|
|
6348
|
+
function Fa({ children: e }) {
|
|
6347
6349
|
return e;
|
|
6348
6350
|
}
|
|
6349
|
-
function
|
|
6351
|
+
function Ba(e, t) {
|
|
6350
6352
|
q.Children.forEach(e, (n) => {
|
|
6351
6353
|
if (q.isValidElement(n)) {
|
|
6352
|
-
if (n.type ===
|
|
6354
|
+
if (n.type === Fa) {
|
|
6353
6355
|
t.triggerOverride = n.props.children;
|
|
6354
6356
|
return;
|
|
6355
6357
|
}
|
|
6356
6358
|
if (n.type === q.Fragment) {
|
|
6357
|
-
|
|
6359
|
+
Ba(n.props.children, t);
|
|
6358
6360
|
return;
|
|
6359
6361
|
}
|
|
6360
6362
|
t.selectItems.push(n);
|
|
6361
6363
|
}
|
|
6362
6364
|
});
|
|
6363
6365
|
}
|
|
6364
|
-
const
|
|
6366
|
+
const Me = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "", ...o }, s) => /* @__PURE__ */ i.jsxs(
|
|
6365
6367
|
Zp,
|
|
6366
6368
|
{
|
|
6367
6369
|
className: `mt-surface-input-ghost focus:ring-0 focus:ring-offset-0 data-highlighted:bg-surface-popover data-[state=checked]:bg-surface-popover flex min-w-44 cursor-pointer items-center justify-between rounded-md px-2.5 py-1.5 text-sm outline-none transition-colors data-disabled:cursor-not-allowed data-disabled:opacity-40 ${t || ""}`,
|
|
@@ -6393,7 +6395,7 @@ const _e = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "",
|
|
|
6393
6395
|
}) => {
|
|
6394
6396
|
const d = c !== void 0 && u !== void 0, [m, v] = se(c ?? ""), x = d ? c : m, [h, g] = se(!1), [w, y] = se(!1), b = o === "large" ? "[&_svg]:h-5 [&_svg]:w-5" : "[&_svg]:h-4 [&_svg]:w-4", C = o === "large" ? "h-4 w-4" : "h-3.5 w-3.5", { triggerOverride: N, selectItems: _ } = q.useMemo(() => {
|
|
6395
6397
|
const S = { triggerOverride: null, selectItems: [] };
|
|
6396
|
-
return e &&
|
|
6398
|
+
return e && Ba(e, S), !e && s && (S.selectItems = s.map((j) => /* @__PURE__ */ i.jsx(Me, { value: j.value, icon: j.icon, disabled: j.disabled, children: j.label }, j.value))), S;
|
|
6397
6399
|
}, [e, s]), R = _.find(
|
|
6398
6400
|
(S) => q.isValidElement(S) && S.props.value === x
|
|
6399
6401
|
);
|
|
@@ -6422,7 +6424,7 @@ const _e = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "",
|
|
|
6422
6424
|
...f,
|
|
6423
6425
|
children: [
|
|
6424
6426
|
/* @__PURE__ */ i.jsx(Kp, { asChild: !0, onMouseEnter: () => y(!0), onMouseLeave: () => y(!1), children: N || /* @__PURE__ */ i.jsxs(
|
|
6425
|
-
|
|
6427
|
+
Ee,
|
|
6426
6428
|
{
|
|
6427
6429
|
kind: r,
|
|
6428
6430
|
size: o,
|
|
@@ -6462,7 +6464,7 @@ const _e = q.forwardRef(({ children: e, className: t, icon: n, shortcut: r = "",
|
|
|
6462
6464
|
}
|
|
6463
6465
|
);
|
|
6464
6466
|
}, He = Vh;
|
|
6465
|
-
He.Trigger =
|
|
6467
|
+
He.Trigger = Fa;
|
|
6466
6468
|
const Xt = (e, t) => {
|
|
6467
6469
|
const n = e[0]?.value ?? "", r = t[0]?.value ?? "";
|
|
6468
6470
|
return {
|
|
@@ -6501,7 +6503,7 @@ const Xt = (e, t) => {
|
|
|
6501
6503
|
children: e.children.map((a, c) => c === n ? s : a)
|
|
6502
6504
|
};
|
|
6503
6505
|
}, Uh = (e, t, n) => e.children.length > 0 ? e : { ...e, children: [Xt(t, n)] };
|
|
6504
|
-
function
|
|
6506
|
+
function pm({
|
|
6505
6507
|
title: e = "Filter",
|
|
6506
6508
|
value: t,
|
|
6507
6509
|
onChange: n,
|
|
@@ -6514,10 +6516,10 @@ function fm({
|
|
|
6514
6516
|
variant: p = "default",
|
|
6515
6517
|
showCaret: f = !0
|
|
6516
6518
|
}) {
|
|
6517
|
-
const [d, m] = se(!1), v = s ?? d, x = a ?? m, h =
|
|
6519
|
+
const [d, m] = se(!1), v = s ?? d, x = a ?? m, h = _e(() => {
|
|
6518
6520
|
const S = /* @__PURE__ */ new Map();
|
|
6519
6521
|
return o.forEach((j) => S.set(j.value, j)), S;
|
|
6520
|
-
}, [o]), g =
|
|
6522
|
+
}, [o]), g = _e(() => {
|
|
6521
6523
|
const S = /* @__PURE__ */ new Map();
|
|
6522
6524
|
return r.forEach((j) => S.set(j.value, j)), S;
|
|
6523
6525
|
}, [r]), w = (S) => n(Uh(S, r, o)), y = () => {
|
|
@@ -6525,8 +6527,8 @@ function fm({
|
|
|
6525
6527
|
return S && S.type === "rule" ? S : Xt(r, o);
|
|
6526
6528
|
}, b = () => {
|
|
6527
6529
|
const S = y(), L = h.get(S.operator)?.requiresValue ?? !0, O = g.get(S.field)?.icon;
|
|
6528
|
-
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-
|
|
6529
|
-
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center
|
|
6530
|
+
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-border-default bg-surface-subtle px-2 py-1.5", children: [
|
|
6531
|
+
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center", children: O || /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" }) }),
|
|
6530
6532
|
/* @__PURE__ */ i.jsx(
|
|
6531
6533
|
He,
|
|
6532
6534
|
{
|
|
@@ -6543,7 +6545,7 @@ function fm({
|
|
|
6543
6545
|
size: "medium",
|
|
6544
6546
|
showCaret: !1,
|
|
6545
6547
|
className: "text-xs",
|
|
6546
|
-
children: r.map((P) => /* @__PURE__ */ i.jsx(
|
|
6548
|
+
children: r.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, icon: P.icon, children: P.label }, P.value))
|
|
6547
6549
|
}
|
|
6548
6550
|
),
|
|
6549
6551
|
/* @__PURE__ */ i.jsx(
|
|
@@ -6566,7 +6568,7 @@ function fm({
|
|
|
6566
6568
|
size: "medium",
|
|
6567
6569
|
showCaret: !1,
|
|
6568
6570
|
className: "text-xs",
|
|
6569
|
-
children: o.map((P) => /* @__PURE__ */ i.jsx(
|
|
6571
|
+
children: o.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, children: P.label }, P.value))
|
|
6570
6572
|
}
|
|
6571
6573
|
),
|
|
6572
6574
|
L ? /* @__PURE__ */ i.jsx(
|
|
@@ -6585,11 +6587,11 @@ function fm({
|
|
|
6585
6587
|
},
|
|
6586
6588
|
variant: "ghost"
|
|
6587
6589
|
}
|
|
6588
|
-
) : /* @__PURE__ */ i.jsx("span", { className: "text-xs
|
|
6590
|
+
) : /* @__PURE__ */ i.jsx("span", { className: "text-xs", children: "No value" })
|
|
6589
6591
|
] });
|
|
6590
6592
|
}, C = (S, j) => {
|
|
6591
6593
|
const O = h.get(S.operator)?.requiresValue ?? !0;
|
|
6592
|
-
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-
|
|
6594
|
+
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 rounded-md border border-border-default bg-surface-subtle px-2 py-1.5", children: [
|
|
6593
6595
|
/* @__PURE__ */ i.jsx(
|
|
6594
6596
|
He,
|
|
6595
6597
|
{
|
|
@@ -6606,7 +6608,7 @@ function fm({
|
|
|
6606
6608
|
size: "medium",
|
|
6607
6609
|
showCaret: !1,
|
|
6608
6610
|
className: "text-xs",
|
|
6609
|
-
children: r.map((P) => /* @__PURE__ */ i.jsx(
|
|
6611
|
+
children: r.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, icon: P.icon, children: P.label }, P.value))
|
|
6610
6612
|
}
|
|
6611
6613
|
),
|
|
6612
6614
|
/* @__PURE__ */ i.jsx(
|
|
@@ -6626,7 +6628,7 @@ function fm({
|
|
|
6626
6628
|
size: "medium",
|
|
6627
6629
|
showCaret: !1,
|
|
6628
6630
|
className: "text-xs",
|
|
6629
|
-
children: o.map((P) => /* @__PURE__ */ i.jsx(
|
|
6631
|
+
children: o.map((P) => /* @__PURE__ */ i.jsx(Me, { value: P.value, children: P.label }, P.value))
|
|
6630
6632
|
}
|
|
6631
6633
|
),
|
|
6632
6634
|
O ? /* @__PURE__ */ i.jsx(
|
|
@@ -6645,26 +6647,26 @@ function fm({
|
|
|
6645
6647
|
},
|
|
6646
6648
|
variant: "ghost"
|
|
6647
6649
|
}
|
|
6648
|
-
) : /* @__PURE__ */ i.jsx("span", { className: "text-xs text-
|
|
6650
|
+
) : /* @__PURE__ */ i.jsx("span", { className: "text-xs text-text-muted", children: "No value" }),
|
|
6649
6651
|
/* @__PURE__ */ i.jsx(
|
|
6650
6652
|
"button",
|
|
6651
6653
|
{
|
|
6652
6654
|
type: "button",
|
|
6653
|
-
className: "text-
|
|
6655
|
+
className: "text-text-muted hover:text-text-default",
|
|
6654
6656
|
onClick: () => w(Qn(t, j)),
|
|
6655
6657
|
"aria-label": "Delete rule",
|
|
6656
6658
|
children: /* @__PURE__ */ i.jsx($n, { className: "h-4 w-4" })
|
|
6657
6659
|
}
|
|
6658
6660
|
)
|
|
6659
6661
|
] });
|
|
6660
|
-
}, N = (S, j, L = !1) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2 rounded-lg border border-
|
|
6661
|
-
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 text-xs text-
|
|
6662
|
+
}, N = (S, j, L = !1) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2 rounded-lg border border-border-default bg-surface-subtle p-2", children: [
|
|
6663
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 text-xs text-text-muted", children: [
|
|
6662
6664
|
/* @__PURE__ */ i.jsx("span", { className: "uppercase tracking-wide", children: L ? "Where" : "Group" }),
|
|
6663
6665
|
/* @__PURE__ */ i.jsx(
|
|
6664
6666
|
"button",
|
|
6665
6667
|
{
|
|
6666
6668
|
type: "button",
|
|
6667
|
-
className: "rounded-md border border-
|
|
6669
|
+
className: "rounded-md border border-border-default bg-surface-subtle px-2 py-1 text-xs text-text-primary",
|
|
6668
6670
|
onClick: () => {
|
|
6669
6671
|
w(
|
|
6670
6672
|
Ve(t, j, (O) => ({
|
|
@@ -6680,7 +6682,7 @@ function fm({
|
|
|
6680
6682
|
"button",
|
|
6681
6683
|
{
|
|
6682
6684
|
type: "button",
|
|
6683
|
-
className: "ml-auto text-
|
|
6685
|
+
className: "ml-auto text-text-muted hover:text-text-default",
|
|
6684
6686
|
onClick: () => w(Qn(t, j)),
|
|
6685
6687
|
"aria-label": "Delete group",
|
|
6686
6688
|
children: /* @__PURE__ */ i.jsx($n, { className: "h-4 w-4" })
|
|
@@ -6693,11 +6695,11 @@ function fm({
|
|
|
6693
6695
|
}) }),
|
|
6694
6696
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
6695
6697
|
/* @__PURE__ */ i.jsx(
|
|
6696
|
-
|
|
6698
|
+
Ee,
|
|
6697
6699
|
{
|
|
6698
6700
|
kind: "icon",
|
|
6699
6701
|
variant: "ghost",
|
|
6700
|
-
className: "text-
|
|
6702
|
+
className: "text-text-muted",
|
|
6701
6703
|
onClick: () => {
|
|
6702
6704
|
w(
|
|
6703
6705
|
Ve(t, j, (O) => ({
|
|
@@ -6709,13 +6711,13 @@ function fm({
|
|
|
6709
6711
|
children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" })
|
|
6710
6712
|
}
|
|
6711
6713
|
),
|
|
6712
|
-
/* @__PURE__ */ i.jsx("span", { className: "text-
|
|
6714
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-text-primary", children: "Add rule" }),
|
|
6713
6715
|
/* @__PURE__ */ i.jsx(
|
|
6714
|
-
|
|
6716
|
+
Ee,
|
|
6715
6717
|
{
|
|
6716
6718
|
kind: "icon",
|
|
6717
6719
|
variant: "ghost",
|
|
6718
|
-
className: "text-
|
|
6720
|
+
className: "text-text-muted",
|
|
6719
6721
|
onClick: () => {
|
|
6720
6722
|
w(
|
|
6721
6723
|
Ve(t, j, (O) => ({
|
|
@@ -6727,23 +6729,23 @@ function fm({
|
|
|
6727
6729
|
children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" })
|
|
6728
6730
|
}
|
|
6729
6731
|
),
|
|
6730
|
-
/* @__PURE__ */ i.jsx("span", { className: "text-
|
|
6732
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-text-primary", children: "Add group" })
|
|
6731
6733
|
] })
|
|
6732
6734
|
] }), _ = g.get(y().field)?.icon, R = v ? /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" }) : _ || /* @__PURE__ */ i.jsx(jt, { className: "h-4 w-4" });
|
|
6733
6735
|
return /* @__PURE__ */ i.jsx(
|
|
6734
6736
|
Ar,
|
|
6735
6737
|
{
|
|
6736
|
-
title: c === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-
|
|
6737
|
-
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-
|
|
6738
|
+
title: c === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-primary", children: R }) : /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center gap-2", children: [
|
|
6739
|
+
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-primary", children: R }),
|
|
6738
6740
|
/* @__PURE__ */ i.jsx("span", { children: e })
|
|
6739
6741
|
] }),
|
|
6740
6742
|
kind: c,
|
|
6741
6743
|
size: u,
|
|
6742
6744
|
variant: p,
|
|
6743
6745
|
showCaret: f,
|
|
6744
|
-
children: /* @__PURE__ */ i.jsxs("div", { className: "w-130 max-w-[80vw] p-2 text-
|
|
6746
|
+
children: /* @__PURE__ */ i.jsxs("div", { className: "w-130 max-w-[80vw] p-2 text-text-primary", children: [
|
|
6745
6747
|
/* @__PURE__ */ i.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
6746
|
-
/* @__PURE__ */ i.jsxs("span", { className: "flex items-center gap-2 text-xs uppercase tracking-wide text-
|
|
6748
|
+
/* @__PURE__ */ i.jsxs("span", { className: "flex items-center gap-2 text-xs uppercase tracking-wide text-text-muted", children: [
|
|
6747
6749
|
v && /* @__PURE__ */ i.jsx(jt, { className: "h-3.5 w-3.5" }),
|
|
6748
6750
|
v ? "Advanced" : "Simple",
|
|
6749
6751
|
" filter"
|
|
@@ -6752,10 +6754,10 @@ function fm({
|
|
|
6752
6754
|
"button",
|
|
6753
6755
|
{
|
|
6754
6756
|
type: "button",
|
|
6755
|
-
className: "text-
|
|
6757
|
+
className: "text-text-muted hover:text-text-default",
|
|
6756
6758
|
onClick: () => x(!v),
|
|
6757
6759
|
"aria-label": "Toggle filter type",
|
|
6758
|
-
children: /* @__PURE__ */ i.jsx(
|
|
6760
|
+
children: /* @__PURE__ */ i.jsx(mc, { className: "h-4 w-4" })
|
|
6759
6761
|
}
|
|
6760
6762
|
)
|
|
6761
6763
|
] }),
|
|
@@ -6764,7 +6766,7 @@ function fm({
|
|
|
6764
6766
|
}
|
|
6765
6767
|
);
|
|
6766
6768
|
}
|
|
6767
|
-
function
|
|
6769
|
+
function hm() {
|
|
6768
6770
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6769
6771
|
/* @__PURE__ */ i.jsxs("g", { "clip-path": "url(#clip0_129_4601)", children: [
|
|
6770
6772
|
/* @__PURE__ */ i.jsx("rect", { y: "7", width: "3.5", height: "6.41667", rx: "1", fill: "white", style: { fill: "white", fillOpacity: 1 } }),
|
|
@@ -6796,7 +6798,7 @@ function pm() {
|
|
|
6796
6798
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_129_4601", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6797
6799
|
] });
|
|
6798
6800
|
}
|
|
6799
|
-
function
|
|
6801
|
+
function mm() {
|
|
6800
6802
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6801
6803
|
/* @__PURE__ */ i.jsxs("g", { "clip-path": "url(#clip0_25_3437)", children: [
|
|
6802
6804
|
/* @__PURE__ */ i.jsx("rect", { y: "7", width: "3.5", height: "6.41667", rx: "1", fill: "white", style: { fill: "white", fillOpacity: 1 } }),
|
|
@@ -6828,7 +6830,7 @@ function hm() {
|
|
|
6828
6830
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_25_3437", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6829
6831
|
] });
|
|
6830
6832
|
}
|
|
6831
|
-
function
|
|
6833
|
+
function vm() {
|
|
6832
6834
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6833
6835
|
/* @__PURE__ */ i.jsxs("g", { "clip-path": "url(#clip0_25_3441)", children: [
|
|
6834
6836
|
/* @__PURE__ */ i.jsx("rect", { y: "7", width: "3.5", height: "6.41667", rx: "1", fill: "white", style: { fill: "white", fillOpacity: 1 } }),
|
|
@@ -6860,7 +6862,7 @@ function mm() {
|
|
|
6860
6862
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_25_3441", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6861
6863
|
] });
|
|
6862
6864
|
}
|
|
6863
|
-
function
|
|
6865
|
+
function gm() {
|
|
6864
6866
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6865
6867
|
/* @__PURE__ */ i.jsx("g", { "clip-path": "url(#clip0_25_3445)", children: /* @__PURE__ */ i.jsx(
|
|
6866
6868
|
"circle",
|
|
@@ -6877,13 +6879,13 @@ function vm() {
|
|
|
6877
6879
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_25_3445", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6878
6880
|
] });
|
|
6879
6881
|
}
|
|
6880
|
-
function
|
|
6882
|
+
function xm() {
|
|
6881
6883
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6882
6884
|
/* @__PURE__ */ i.jsx("g", { "clip-path": "url(#clip0_25_3447)", children: /* @__PURE__ */ i.jsx("circle", { cx: "7", cy: "7", r: "6", stroke: "white", style: { stroke: "white", strokeOpacity: 1 }, "stroke-width": "2" }) }),
|
|
6883
6885
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_25_3447", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6884
6886
|
] });
|
|
6885
6887
|
}
|
|
6886
|
-
function
|
|
6888
|
+
function wm() {
|
|
6887
6889
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6888
6890
|
/* @__PURE__ */ i.jsxs("g", { "clip-path": "url(#clip0_25_3452)", children: [
|
|
6889
6891
|
/* @__PURE__ */ i.jsx("circle", { cx: "7", cy: "7", r: "6", stroke: "#F0BF00", style: { stroke: "#F0BF00", strokeOpacity: 1 }, "stroke-width": "2" }),
|
|
@@ -6899,7 +6901,7 @@ function xm() {
|
|
|
6899
6901
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_25_3452", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6900
6902
|
] });
|
|
6901
6903
|
}
|
|
6902
|
-
function
|
|
6904
|
+
function ym() {
|
|
6903
6905
|
return /* @__PURE__ */ i.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6904
6906
|
/* @__PURE__ */ i.jsxs("g", { "clip-path": "url(#clip0_25_3458)", children: [
|
|
6905
6907
|
/* @__PURE__ */ i.jsx("circle", { cx: "7", cy: "7", r: "7", fill: "#16A34A", style: { fill: "#16A34A", fillOpacity: 1 } }),
|
|
@@ -6917,7 +6919,7 @@ function wm() {
|
|
|
6917
6919
|
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_25_3458", children: /* @__PURE__ */ i.jsx("rect", { width: "14", height: "14", fill: "white", style: { fill: "white", fillOpacity: 1 } }) }) })
|
|
6918
6920
|
] });
|
|
6919
6921
|
}
|
|
6920
|
-
function
|
|
6922
|
+
function Cm({
|
|
6921
6923
|
children: e,
|
|
6922
6924
|
message: t = "Copied",
|
|
6923
6925
|
durationMs: n = 1400,
|
|
@@ -6925,7 +6927,7 @@ function ym({
|
|
|
6925
6927
|
align: o = "center",
|
|
6926
6928
|
disabled: s = !1
|
|
6927
6929
|
}) {
|
|
6928
|
-
const [a, c] = se(!1), u =
|
|
6930
|
+
const [a, c] = se(!1), u = je(null), p = Qe(() => {
|
|
6929
6931
|
u.current && (clearTimeout(u.current), u.current = null);
|
|
6930
6932
|
}, []), f = Qe(() => {
|
|
6931
6933
|
p(), c(!0), u.current = setTimeout(() => {
|
|
@@ -6957,16 +6959,16 @@ function ym({
|
|
|
6957
6959
|
sideOffset: 8,
|
|
6958
6960
|
role: "status",
|
|
6959
6961
|
"aria-live": "polite",
|
|
6960
|
-
className: "pointer-events-none rounded-md border border-
|
|
6962
|
+
className: "pointer-events-none rounded-md border border-border-default bg-surface-subtle px-2 py-1 text-xs text-text-primary shadow-[0_10px_24px_rgba(0,0,0,0.45)] backdrop-blur-sm transition-all duration-150 data-[state=open]:opacity-100 data-[state=open]:translate-y-0 data-[state=closed]:opacity-0 data-[state=closed]:translate-y-1",
|
|
6961
6963
|
children: [
|
|
6962
6964
|
t,
|
|
6963
|
-
/* @__PURE__ */ i.jsx(
|
|
6965
|
+
/* @__PURE__ */ i.jsx(Xi, { className: "fill-surface-subtle" })
|
|
6964
6966
|
]
|
|
6965
6967
|
}
|
|
6966
6968
|
) })
|
|
6967
6969
|
] });
|
|
6968
6970
|
}
|
|
6969
|
-
function
|
|
6971
|
+
function Wa({ children: e }) {
|
|
6970
6972
|
return e;
|
|
6971
6973
|
}
|
|
6972
6974
|
const Kh = ({
|
|
@@ -6982,7 +6984,7 @@ const Kh = ({
|
|
|
6982
6984
|
let u = null;
|
|
6983
6985
|
const p = [];
|
|
6984
6986
|
q.Children.forEach(e, (d) => {
|
|
6985
|
-
if (q.isValidElement(d) && d.type ===
|
|
6987
|
+
if (q.isValidElement(d) && d.type === Wa) {
|
|
6986
6988
|
u = d.props.children;
|
|
6987
6989
|
return;
|
|
6988
6990
|
}
|
|
@@ -6997,19 +6999,19 @@ const Kh = ({
|
|
|
6997
6999
|
side: o,
|
|
6998
7000
|
align: s,
|
|
6999
7001
|
sideOffset: a,
|
|
7000
|
-
className: `bg-
|
|
7002
|
+
className: `bg-surface-subtle border border-border-default rounded-lg p-2 shadow-2xl backdrop-blur-md z-50 ${c || ""}`,
|
|
7001
7003
|
children: t
|
|
7002
7004
|
}
|
|
7003
7005
|
) })
|
|
7004
7006
|
] }) : /* @__PURE__ */ i.jsx(i.Fragment, {});
|
|
7005
7007
|
}, Gh = Kh;
|
|
7006
|
-
Gh.Trigger =
|
|
7007
|
-
function
|
|
7008
|
+
Gh.Trigger = Wa;
|
|
7009
|
+
function bm({ value: e, max: t = 100, className: n, barClassName: r }) {
|
|
7008
7010
|
const o = Math.min(Math.max(e, 0), t), s = t > 0 ? o / t * 100 : 0;
|
|
7009
7011
|
return /* @__PURE__ */ i.jsx(
|
|
7010
7012
|
"div",
|
|
7011
7013
|
{
|
|
7012
|
-
className: `h-2 w-full overflow-hidden rounded-full bg-
|
|
7014
|
+
className: `h-2 w-full overflow-hidden rounded-full bg-surface-subtle ${n || ""}`,
|
|
7013
7015
|
role: "progressbar",
|
|
7014
7016
|
"aria-valuemin": 0,
|
|
7015
7017
|
"aria-valuemax": t,
|
|
@@ -7024,7 +7026,7 @@ function Cm({ value: e, max: t = 100, className: n, barClassName: r }) {
|
|
|
7024
7026
|
}
|
|
7025
7027
|
);
|
|
7026
7028
|
}
|
|
7027
|
-
function
|
|
7029
|
+
function Em({
|
|
7028
7030
|
size: e = "medium",
|
|
7029
7031
|
variant: t = "default",
|
|
7030
7032
|
className: n,
|
|
@@ -7033,7 +7035,7 @@ function bm({
|
|
|
7033
7035
|
placeholder: s = "Search",
|
|
7034
7036
|
...a
|
|
7035
7037
|
}) {
|
|
7036
|
-
const c =
|
|
7038
|
+
const c = je(null), [u, p] = se(""), f = r !== void 0, d = f ? String(r ?? "") : u, m = {
|
|
7037
7039
|
medium: "mt-layout-input-medium",
|
|
7038
7040
|
large: "mt-layout-input-large"
|
|
7039
7041
|
}, v = {
|
|
@@ -7049,7 +7051,7 @@ function bm({
|
|
|
7049
7051
|
{
|
|
7050
7052
|
className: `relative pl-2 ${h} ${m[e]} ${v[t]} ${n || ""}`,
|
|
7051
7053
|
children: [
|
|
7052
|
-
/* @__PURE__ */ i.jsx(
|
|
7054
|
+
/* @__PURE__ */ i.jsx(Ec, { className: `${x} shrink-0`, "aria-hidden": "true" }),
|
|
7053
7055
|
/* @__PURE__ */ i.jsx(
|
|
7054
7056
|
"input",
|
|
7055
7057
|
{
|
|
@@ -7063,7 +7065,7 @@ function bm({
|
|
|
7063
7065
|
}
|
|
7064
7066
|
),
|
|
7065
7067
|
d.length > 0 && /* @__PURE__ */ i.jsx(
|
|
7066
|
-
|
|
7068
|
+
Ee,
|
|
7067
7069
|
{
|
|
7068
7070
|
kind: "icon",
|
|
7069
7071
|
size: e,
|
|
@@ -7082,7 +7084,7 @@ const zh = (e) => ({
|
|
|
7082
7084
|
property: e[0]?.value ?? "",
|
|
7083
7085
|
direction: "asc"
|
|
7084
7086
|
});
|
|
7085
|
-
function
|
|
7087
|
+
function Sm({
|
|
7086
7088
|
title: e = "Sort",
|
|
7087
7089
|
value: t,
|
|
7088
7090
|
onChange: n,
|
|
@@ -7098,25 +7100,25 @@ function Em({
|
|
|
7098
7100
|
n(t.filter((v, x) => x !== m));
|
|
7099
7101
|
}, f = () => {
|
|
7100
7102
|
n([...t, zh(r)]);
|
|
7101
|
-
}, d = () => t.length === 1 ? t[0].direction === "desc" ? /* @__PURE__ */ i.jsx(
|
|
7103
|
+
}, d = () => t.length === 1 ? t[0].direction === "desc" ? /* @__PURE__ */ i.jsx(ec, { className: "h-4 w-4" }) : /* @__PURE__ */ i.jsx(oc, { className: "h-4 w-4" }) : /* @__PURE__ */ i.jsx(nc, { className: "h-4 w-4" });
|
|
7102
7104
|
return /* @__PURE__ */ i.jsx(
|
|
7103
7105
|
Ar,
|
|
7104
7106
|
{
|
|
7105
|
-
title: o === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-
|
|
7106
|
-
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-
|
|
7107
|
+
title: o === "icon" ? /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-muted", children: d() }) : /* @__PURE__ */ i.jsxs("span", { className: "inline-flex items-center gap-2", children: [
|
|
7108
|
+
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-muted", children: d() }),
|
|
7107
7109
|
/* @__PURE__ */ i.jsx("span", { children: e })
|
|
7108
7110
|
] }),
|
|
7109
7111
|
kind: o,
|
|
7110
7112
|
size: s,
|
|
7111
7113
|
variant: a,
|
|
7112
7114
|
showCaret: c,
|
|
7113
|
-
children: /* @__PURE__ */ i.jsxs("div", { className: "w-105 max-w-[80vw] p-2 text-
|
|
7115
|
+
children: /* @__PURE__ */ i.jsxs("div", { className: "w-105 max-w-[80vw] p-2 text-text-muted", children: [
|
|
7114
7116
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
7115
|
-
t.length === 0 && /* @__PURE__ */ i.jsx("div", { className: "text-xs text-
|
|
7117
|
+
t.length === 0 && /* @__PURE__ */ i.jsx("div", { className: "text-xs text-text-muted", children: "No sorting rules." }),
|
|
7116
7118
|
t.map((m, v) => /* @__PURE__ */ i.jsxs(
|
|
7117
7119
|
"div",
|
|
7118
7120
|
{
|
|
7119
|
-
className: "flex items-center gap-2 rounded-md border border-
|
|
7121
|
+
className: "flex items-center gap-2 rounded-md border border-border-default bg-surface-subtle px-2 py-1.5",
|
|
7120
7122
|
children: [
|
|
7121
7123
|
/* @__PURE__ */ i.jsx(
|
|
7122
7124
|
He,
|
|
@@ -7127,7 +7129,7 @@ function Em({
|
|
|
7127
7129
|
size: "medium",
|
|
7128
7130
|
showCaret: !1,
|
|
7129
7131
|
className: "text-xs",
|
|
7130
|
-
children: r.map((x) => /* @__PURE__ */ i.jsx(
|
|
7132
|
+
children: r.map((x) => /* @__PURE__ */ i.jsx(Me, { value: x.value, children: x.label }, x.value))
|
|
7131
7133
|
}
|
|
7132
7134
|
),
|
|
7133
7135
|
/* @__PURE__ */ i.jsxs(
|
|
@@ -7142,8 +7144,8 @@ function Em({
|
|
|
7142
7144
|
showCaret: !1,
|
|
7143
7145
|
className: "text-xs",
|
|
7144
7146
|
children: [
|
|
7145
|
-
/* @__PURE__ */ i.jsx(
|
|
7146
|
-
/* @__PURE__ */ i.jsx(
|
|
7147
|
+
/* @__PURE__ */ i.jsx(Me, { value: "asc", children: "Ascending" }),
|
|
7148
|
+
/* @__PURE__ */ i.jsx(Me, { value: "desc", children: "Descending" })
|
|
7147
7149
|
]
|
|
7148
7150
|
}
|
|
7149
7151
|
),
|
|
@@ -7151,7 +7153,7 @@ function Em({
|
|
|
7151
7153
|
"button",
|
|
7152
7154
|
{
|
|
7153
7155
|
type: "button",
|
|
7154
|
-
className: "ml-auto text-
|
|
7156
|
+
className: "ml-auto text-text-muted hover:text-text-default",
|
|
7155
7157
|
onClick: () => p(v),
|
|
7156
7158
|
"aria-label": "Delete sort rule",
|
|
7157
7159
|
children: /* @__PURE__ */ i.jsx($n, { className: "h-4 w-4" })
|
|
@@ -7163,14 +7165,14 @@ function Em({
|
|
|
7163
7165
|
))
|
|
7164
7166
|
] }),
|
|
7165
7167
|
/* @__PURE__ */ i.jsxs("div", { className: "mt-3 flex items-center gap-2 text-xs", children: [
|
|
7166
|
-
/* @__PURE__ */ i.jsx(
|
|
7167
|
-
/* @__PURE__ */ i.jsx("span", { className: "text-
|
|
7168
|
+
/* @__PURE__ */ i.jsx(Ee, { kind: "icon", variant: "ghost", className: "text-text-muted", onClick: f, children: /* @__PURE__ */ i.jsx(Ln, { className: "h-4 w-4" }) }),
|
|
7169
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-text-muted", children: "Add sort" })
|
|
7168
7170
|
] })
|
|
7169
7171
|
] })
|
|
7170
7172
|
}
|
|
7171
7173
|
);
|
|
7172
7174
|
}
|
|
7173
|
-
function
|
|
7175
|
+
function Rm({
|
|
7174
7176
|
children: e,
|
|
7175
7177
|
gap: t = 0,
|
|
7176
7178
|
row: n = !1,
|
|
@@ -7204,14 +7206,14 @@ function Sm({
|
|
|
7204
7206
|
}
|
|
7205
7207
|
);
|
|
7206
7208
|
}
|
|
7207
|
-
const
|
|
7209
|
+
const Nm = ({ variant: e = "default", className: t, ...n }) => {
|
|
7208
7210
|
const r = {
|
|
7209
7211
|
default: "mt-surface-input-default",
|
|
7210
7212
|
ghost: "mt-surface-input-ghost"
|
|
7211
7213
|
};
|
|
7212
7214
|
return /* @__PURE__ */ i.jsx("textarea", { ...n, className: `w-full border rounded outline-none px-3 py-2 min-h-24 resize-y ${r[e]} ${t || ""}` });
|
|
7213
7215
|
};
|
|
7214
|
-
function
|
|
7216
|
+
function Pm({
|
|
7215
7217
|
children: e,
|
|
7216
7218
|
title: t,
|
|
7217
7219
|
content: n,
|
|
@@ -7229,7 +7231,7 @@ function Nm({
|
|
|
7229
7231
|
side: s,
|
|
7230
7232
|
align: a,
|
|
7231
7233
|
sideOffset: 8,
|
|
7232
|
-
className: "z-50 w-[320px] rounded-xl border border-
|
|
7234
|
+
className: "z-50 w-[320px] rounded-xl border border-border-default bg-surface-subtle p-3 text-text-default shadow-[0_20px_60px_rgba(0,0,0,0.55)]",
|
|
7233
7235
|
children: [
|
|
7234
7236
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
7235
7237
|
t ? /* @__PURE__ */ i.jsx("div", { className: "text-sm font-semibold leading-5", children: t }) : /* @__PURE__ */ i.jsx("div", {}),
|
|
@@ -7239,20 +7241,20 @@ function Nm({
|
|
|
7239
7241
|
type: "button",
|
|
7240
7242
|
"aria-label": "Close toggletip",
|
|
7241
7243
|
onClick: () => u(!1),
|
|
7242
|
-
className: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border border-
|
|
7244
|
+
className: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border border-border-default bg-surface-subtle text-text-muted transition-colors hover:bg-surface-default hover:text-text-default",
|
|
7243
7245
|
children: /* @__PURE__ */ i.jsx(Zt, { className: "h-4 w-4" })
|
|
7244
7246
|
}
|
|
7245
7247
|
)
|
|
7246
7248
|
] }),
|
|
7247
|
-
/* @__PURE__ */ i.jsx("div", { className: "mt-2 text-sm text-
|
|
7248
|
-
r && /* @__PURE__ */ i.jsx("div", { className: "mt-3 border-t border-
|
|
7249
|
-
/* @__PURE__ */ i.jsx(
|
|
7249
|
+
/* @__PURE__ */ i.jsx("div", { className: "mt-2 text-sm text-text-muted", children: n }),
|
|
7250
|
+
r && /* @__PURE__ */ i.jsx("div", { className: "mt-3 border-t border-border-default pt-2", children: r }),
|
|
7251
|
+
/* @__PURE__ */ i.jsx(Xi, { className: "fill-border-default" })
|
|
7250
7252
|
]
|
|
7251
7253
|
}
|
|
7252
7254
|
) })
|
|
7253
7255
|
] });
|
|
7254
7256
|
}
|
|
7255
|
-
function
|
|
7257
|
+
function _m(e) {
|
|
7256
7258
|
return /* @__PURE__ */ i.jsx(gh, { delayDuration: 0, children: /* @__PURE__ */ i.jsxs(xh, { children: [
|
|
7257
7259
|
/* @__PURE__ */ i.jsx(wh, { asChild: !0, children: e.children }),
|
|
7258
7260
|
/* @__PURE__ */ i.jsx(yh, { children: /* @__PURE__ */ i.jsxs(
|
|
@@ -7277,12 +7279,12 @@ Ir.displayName = "MtTreeItem";
|
|
|
7277
7279
|
function Yh(e) {
|
|
7278
7280
|
return yo(e) && e.type === Ir;
|
|
7279
7281
|
}
|
|
7280
|
-
function
|
|
7282
|
+
function Va(e) {
|
|
7281
7283
|
const t = [];
|
|
7282
7284
|
return wo.forEach(e, (n) => {
|
|
7283
7285
|
if (!Yh(n))
|
|
7284
7286
|
return;
|
|
7285
|
-
const r =
|
|
7287
|
+
const r = Va(n.props.children);
|
|
7286
7288
|
t.push({
|
|
7287
7289
|
id: n.props.itemId,
|
|
7288
7290
|
label: n.props.label,
|
|
@@ -7320,10 +7322,10 @@ const Zh = ({
|
|
|
7320
7322
|
indentPx: d = 14,
|
|
7321
7323
|
toggleOnItemClick: m = !0
|
|
7322
7324
|
}) => {
|
|
7323
|
-
const v = r !== void 0, x = a !== void 0, [h, g] = se(o ?? ""), [w, y] = se(new Set(c)), b = v ? r : h, C =
|
|
7325
|
+
const v = r !== void 0, x = a !== void 0, [h, g] = se(o ?? ""), [w, y] = se(new Set(c)), b = v ? r : h, C = _e(
|
|
7324
7326
|
() => x ? new Set(a) : w,
|
|
7325
7327
|
[a, w, x]
|
|
7326
|
-
), N =
|
|
7328
|
+
), N = _e(() => Va(t), [t]), _ = _e(() => e?.length && N.length ? [...e, ...N] : e?.length ? e : N, [e, N]), R = _e(() => new Map(Xh(_).map((P) => [P.id, P])), [_]), S = (P) => {
|
|
7327
7329
|
const I = R.get(P) ?? null;
|
|
7328
7330
|
v || g(P), s?.(P, I);
|
|
7329
7331
|
}, j = (P) => {
|
|
@@ -7338,10 +7340,11 @@ const Zh = ({
|
|
|
7338
7340
|
depth: I
|
|
7339
7341
|
};
|
|
7340
7342
|
return /* @__PURE__ */ i.jsxs("li", { role: "none", className: "flex flex-col", children: [
|
|
7341
|
-
/* @__PURE__ */ i.jsx(
|
|
7342
|
-
|
|
7343
|
+
/* @__PURE__ */ i.jsx(
|
|
7344
|
+
Ee,
|
|
7343
7345
|
{
|
|
7344
|
-
|
|
7346
|
+
variant: "ghost",
|
|
7347
|
+
selected: B,
|
|
7345
7348
|
role: "treeitem",
|
|
7346
7349
|
"aria-expanded": W ? $ : void 0,
|
|
7347
7350
|
"aria-selected": B,
|
|
@@ -7350,10 +7353,10 @@ const Zh = ({
|
|
|
7350
7353
|
onClick: () => {
|
|
7351
7354
|
p?.(D), S(D.id), W && m && L(D.id);
|
|
7352
7355
|
},
|
|
7353
|
-
className:
|
|
7356
|
+
className: "h-auto min-h-0 w-full items-center justify-start gap-1 py-1 pr-2 text-left",
|
|
7354
7357
|
style: { paddingLeft: `${I * d + 6}px` },
|
|
7355
7358
|
children: f ? f(D, k) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
7356
|
-
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-
|
|
7359
|
+
/* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-muted", children: W ? /* @__PURE__ */ i.jsx(
|
|
7357
7360
|
Ro,
|
|
7358
7361
|
{
|
|
7359
7362
|
onClick: (A) => {
|
|
@@ -7362,12 +7365,12 @@ const Zh = ({
|
|
|
7362
7365
|
className: `h-3.5 w-3.5 transition-transform ${$ ? "rotate-90" : ""}`
|
|
7363
7366
|
}
|
|
7364
7367
|
) : null }),
|
|
7365
|
-
D.icon && /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-
|
|
7368
|
+
D.icon && /* @__PURE__ */ i.jsx("span", { className: "inline-flex h-4 w-4 items-center justify-center text-text-primary", children: D.icon }),
|
|
7366
7369
|
/* @__PURE__ */ i.jsx("span", { className: "truncate text-sm", children: D.label }),
|
|
7367
|
-
D.trailing && /* @__PURE__ */ i.jsx("span", { className: "ml-auto text-xs text-
|
|
7370
|
+
D.trailing && /* @__PURE__ */ i.jsx("span", { className: "ml-auto text-xs text-text-primary", children: D.trailing })
|
|
7368
7371
|
] })
|
|
7369
7372
|
}
|
|
7370
|
-
)
|
|
7373
|
+
),
|
|
7371
7374
|
W && $ && D.children ? O(D.children, I + 1) : null
|
|
7372
7375
|
] }, D.id);
|
|
7373
7376
|
}) });
|
|
@@ -7376,27 +7379,27 @@ const Zh = ({
|
|
|
7376
7379
|
Jh.Item = Ir;
|
|
7377
7380
|
const Qh = {
|
|
7378
7381
|
success: {
|
|
7379
|
-
icon:
|
|
7382
|
+
icon: dc,
|
|
7380
7383
|
iconClassName: "text-status-success",
|
|
7381
7384
|
borderClassName: "border-status-success"
|
|
7382
7385
|
},
|
|
7383
7386
|
info: {
|
|
7384
|
-
icon:
|
|
7387
|
+
icon: gc,
|
|
7385
7388
|
iconClassName: "text-status-info",
|
|
7386
7389
|
borderClassName: "border-status-info"
|
|
7387
7390
|
},
|
|
7388
7391
|
warning: {
|
|
7389
|
-
icon:
|
|
7392
|
+
icon: lc,
|
|
7390
7393
|
iconClassName: "text-status-warning",
|
|
7391
7394
|
borderClassName: "border-status-warning"
|
|
7392
7395
|
},
|
|
7393
7396
|
error: {
|
|
7394
|
-
icon:
|
|
7397
|
+
icon: pc,
|
|
7395
7398
|
iconClassName: "text-status-danger",
|
|
7396
7399
|
borderClassName: "border-status-danger"
|
|
7397
7400
|
}
|
|
7398
7401
|
};
|
|
7399
|
-
function
|
|
7402
|
+
function Mm({
|
|
7400
7403
|
title: e,
|
|
7401
7404
|
content: t,
|
|
7402
7405
|
severity: n = "info",
|
|
@@ -7418,7 +7421,7 @@ function _m({
|
|
|
7418
7421
|
r && /* @__PURE__ */ i.jsx("div", { className: "mt-3", children: r })
|
|
7419
7422
|
] }),
|
|
7420
7423
|
o && /* @__PURE__ */ i.jsx(
|
|
7421
|
-
|
|
7424
|
+
Ee,
|
|
7422
7425
|
{
|
|
7423
7426
|
kind: "icon",
|
|
7424
7427
|
size: "medium",
|
|
@@ -7447,7 +7450,7 @@ function tm(e) {
|
|
|
7447
7450
|
return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : `${n[0][0] ?? ""}${n[n.length - 1][0] ?? ""}`.toUpperCase();
|
|
7448
7451
|
}
|
|
7449
7452
|
function ho({ src: e, alt: t, name: n, initials: r, size: o = "sm", className: s, ...a }) {
|
|
7450
|
-
const [c, u] = se(null), p =
|
|
7453
|
+
const [c, u] = se(null), p = _e(() => tm(r ?? n ?? t), [t, r, n]), f = [
|
|
7451
7454
|
"inline-flex rounded-full shrink-0 select-none items-center justify-center overflow-hidden bg-surface-popover text-white",
|
|
7452
7455
|
em[o],
|
|
7453
7456
|
s
|
|
@@ -7472,7 +7475,7 @@ function nm(e) {
|
|
|
7472
7475
|
function rm(e) {
|
|
7473
7476
|
return typeof e != "number" || Number.isNaN(e) ? -4 : e;
|
|
7474
7477
|
}
|
|
7475
|
-
function
|
|
7478
|
+
function jm({
|
|
7476
7479
|
avatars: e = [],
|
|
7477
7480
|
children: t,
|
|
7478
7481
|
max: n,
|
|
@@ -7490,7 +7493,7 @@ function Mm({
|
|
|
7490
7493
|
},
|
|
7491
7494
|
`data-avatar-${w}`
|
|
7492
7495
|
)), u = wo.toArray(t).filter((g) => yo(g)).map(
|
|
7493
|
-
(g, w) =>
|
|
7496
|
+
(g, w) => Ha(g, {
|
|
7494
7497
|
key: g.key ?? `child-avatar-${w}`,
|
|
7495
7498
|
className: mo(Dn, g.props.className)
|
|
7496
7499
|
})
|
|
@@ -7508,36 +7511,37 @@ function Mm({
|
|
|
7508
7511
|
] });
|
|
7509
7512
|
}
|
|
7510
7513
|
export {
|
|
7511
|
-
|
|
7514
|
+
Mm as MtAlert,
|
|
7512
7515
|
ho as MtAvatar,
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7516
|
+
jm as MtAvatarGroup,
|
|
7517
|
+
gm as MtBacklogIcon,
|
|
7518
|
+
Ee as MtButton,
|
|
7519
|
+
ym as MtCheckIcon,
|
|
7517
7520
|
im as MtCheckbox,
|
|
7518
7521
|
Eh as MtContextMenu,
|
|
7519
7522
|
lm as MtDialog,
|
|
7520
|
-
um as
|
|
7523
|
+
um as MtDialogClose,
|
|
7524
|
+
dm as MtDivider,
|
|
7521
7525
|
Ar as MtDropdown,
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7526
|
+
fm as MtDropdownItem,
|
|
7527
|
+
pm as MtFilterDropdown,
|
|
7528
|
+
vm as MtHighIcon,
|
|
7529
|
+
wm as MtInProgressIcon,
|
|
7530
|
+
Cm as MtInlineToast,
|
|
7527
7531
|
fo as MtInput,
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7532
|
+
hm as MtLowIcon,
|
|
7533
|
+
mm as MtMediumIcon,
|
|
7534
|
+
xm as MtOpenIcon,
|
|
7531
7535
|
Gh as MtPopover,
|
|
7532
|
-
|
|
7533
|
-
|
|
7536
|
+
bm as MtProgress,
|
|
7537
|
+
Em as MtSearch,
|
|
7534
7538
|
He as MtSelect,
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7539
|
+
Me as MtSelectItem,
|
|
7540
|
+
Sm as MtSortDropdown,
|
|
7541
|
+
Rm as MtStack,
|
|
7542
|
+
Nm as MtTextarea,
|
|
7543
|
+
Pm as MtToggletip,
|
|
7544
|
+
_m as MtTooltip,
|
|
7541
7545
|
Jh as MtTree,
|
|
7542
7546
|
cm as WithContextMenu
|
|
7543
7547
|
};
|