dgz-ui-shared 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions-1AyyAnYT.js → Actions-CKVu3P3q.js} +6 -6
- package/dist/Actions-uGf1oq7E.cjs +1 -0
- package/dist/{DateRangePicker-kaBfJaKY.cjs → DateRangePicker-C1c1mofH.cjs} +3 -3
- package/dist/{DateRangePicker-D57HSCpq.js → DateRangePicker-DFsQ10c7.js} +5 -5
- package/dist/{ExportData-dSwR1N1v.js → ExportData-1xS2UAoq.js} +6 -6
- package/dist/ExportData-ApStkEWC.cjs +1 -0
- package/dist/{FilterWrapper-DeQRSTAc.js → FilterWrapper-Dk18nVPy.js} +31 -31
- package/dist/{FilterWrapper-B6p9fJWb.cjs → FilterWrapper-DvNjUQih.cjs} +5 -5
- package/dist/{MyInput-BzXWiSVj.cjs → MyInput-9MnlVZ4h.cjs} +1 -1
- package/dist/{MyInput-CkiPA3UG.js → MyInput-B-QCpehg.js} +57 -57
- package/dist/{MyLimitSelect-DHyIJawN.cjs → MyLimitSelect-BU1FClXt.cjs} +2 -2
- package/dist/{MyLimitSelect-XMVeSEqs.js → MyLimitSelect-D5ZWDY-s.js} +13 -13
- package/dist/{MySelect-Bmw1Krye.js → MySelect-C5uWRVJh.js} +7 -7
- package/dist/MySelect-DNK997Bi.cjs +1 -0
- package/dist/{button-2punbuN6-BBVynxVj.cjs → button-CdZDBhmr-3yMPCRDo.cjs} +1 -1
- package/dist/{button-2punbuN6-Bxlf8sMg.js → button-CdZDBhmr-BT_j3ig5.js} +7 -7
- package/dist/{chevron-right-HWBijj-I-Bdcofm_0.cjs → chevron-right-HWBijj-I-CZBu0GKg.cjs} +1 -1
- package/dist/{chevron-right-HWBijj-I-Bkp_tbGM.js → chevron-right-HWBijj-I-DsFUufdU.js} +1 -1
- package/dist/components/actions/index.cjs.js +1 -1
- package/dist/components/actions/index.es.js +1 -1
- package/dist/components/confirm/index.cjs.js +1 -1
- package/dist/components/confirm/index.es.js +1 -1
- package/dist/components/datatable/index.cjs.js +5 -5
- package/dist/components/datatable/index.es.js +204 -201
- package/dist/components/datepicker/index.cjs.js +1 -1
- package/dist/components/datepicker/index.es.js +1 -1
- package/dist/components/export/index.cjs.js +1 -1
- package/dist/components/export/index.es.js +1 -1
- package/dist/components/filters/index.cjs.js +1 -1
- package/dist/components/filters/index.es.js +6 -6
- package/dist/components/form/index.cjs.js +2 -2
- package/dist/components/form/index.es.js +33 -33
- package/dist/components/modal/index.cjs.js +2 -2
- package/dist/components/modal/index.es.js +7 -7
- package/dist/components/pagination/index.cjs.js +1 -1
- package/dist/components/pagination/index.es.js +1 -1
- package/dist/components/theme/index.cjs.js +3 -3
- package/dist/components/theme/index.es.js +4 -4
- package/dist/components/tooltip/index.cjs.js +1 -1
- package/dist/components/tooltip/index.es.js +44 -44
- package/dist/{createLucideIcon-B950nf2d-Brk4LIHH.js → createLucideIcon-B950nf2d-9wLYOF5y.js} +1 -1
- package/dist/{createLucideIcon-B950nf2d-BaIaB_Fz.cjs → createLucideIcon-B950nf2d-DrrWmvZU.cjs} +4 -4
- package/dist/dropdown-menu-TWRSm6RK-DQ03CnVw.cjs +1 -0
- package/dist/{dropdown-menu-lArmcWbC-jIg7CHSO.js → dropdown-menu-TWRSm6RK-D_FJpI4C.js} +83 -83
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +2 -2
- package/dist/{index-CiR6yUKf-BEMUeikM.js → index-BL59b1Bz-C9bJE_xn.js} +90 -90
- package/dist/{index-CiR6yUKf-B1h5S0LB.cjs → index-BL59b1Bz-COeLljOH.cjs} +4 -4
- package/dist/{index-DUK8Bn0m-Clp83x2_.js → index-C4qYhCZt-BZQduTld.js} +29 -29
- package/dist/index-C4qYhCZt-DWBiWQ93.cjs +5 -0
- package/dist/index-CbK6da4c-QXbo5Vgb.cjs +1 -0
- package/dist/{index-Dp0y0FJw-B42jTfO0.js → index-CbK6da4c-d_6FdYZH.js} +1 -1
- package/dist/{index-GjjxAtgk-Dl4JPPHK.js → index-Cths1nBq-BUfZy21E.js} +71 -71
- package/dist/index-Cths1nBq-DzDn15YE.cjs +11 -0
- package/dist/{index-CMHo7s91-D6S6dZoG.cjs → index-ZsCkaYy6-Bjyf2SZs.cjs} +1 -1
- package/dist/{index-CMHo7s91-BRFfxKgJ.js → index-ZsCkaYy6-Cw9HUeiu.js} +1 -1
- package/dist/index.esm-CQEA7FC8.js +1007 -0
- package/dist/index.esm-TI7V1a5F.cjs +1 -0
- package/dist/{input-mask-Chc-UIWX-Br4gXX2T.js → input-mask-DBLFIvhN-BBxoZxnd.js} +3738 -3687
- package/dist/input-mask-DBLFIvhN-C_0RAR2l.cjs +190 -0
- package/dist/{popover-Dvg-QyCn-CJ3lAD8Q.js → popover-OZcfKDD9-C2PVWPLS.js} +17 -17
- package/dist/popover-OZcfKDD9-KUWOsIOs.cjs +1 -0
- package/dist/{react-select-CKazfTiF-1EhjhhlL.js → react-select-DVPHHTAP-D2u3DqGr.js} +2 -2
- package/dist/{react-select-CKazfTiF-Bb-Uf4tM.cjs → react-select-DVPHHTAP-DKDInFsM.cjs} +9 -9
- package/dist/types/components/datatable/DataTable.d.ts +1 -1
- package/dist/types/components/datatable/DataTable.d.ts.map +1 -1
- package/dist/{unstyled-4GbbDand.cjs → unstyled-BFCMBSGZ.cjs} +2 -2
- package/dist/{unstyled-Cmnf9U5U.js → unstyled-BMbrfzye.js} +42 -42
- package/dist/{useFilter-CiORTEHP.cjs → useFilter-Cwz8oftI.cjs} +1 -1
- package/dist/{useFilter-DMpxv27U.js → useFilter-DJunNBm2.js} +1 -1
- package/package.json +2 -2
- package/dist/Actions-Dg5LYo56.cjs +0 -1
- package/dist/ExportData-DUuHYzA-.cjs +0 -1
- package/dist/MySelect-lSICw49W.cjs +0 -1
- package/dist/dropdown-menu-lArmcWbC-DCwGoXng.cjs +0 -1
- package/dist/index-DUK8Bn0m-BIulOZIQ.cjs +0 -5
- package/dist/index-Dp0y0FJw-DVwS4FcV.cjs +0 -1
- package/dist/index-GjjxAtgk-DaxZek3n.cjs +0 -11
- package/dist/index.esm-CpcLzfLZ.cjs +0 -1
- package/dist/index.esm-lbl2HgR1.js +0 -970
- package/dist/input-mask-Chc-UIWX-DimBl_dd.cjs +0 -190
- package/dist/popover-Dvg-QyCn-Dr2o9oAG.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
2
|
import ve from "react";
|
|
3
3
|
import * as be from "react-dom";
|
|
4
|
-
var V = { exports: {} },
|
|
4
|
+
var V = { exports: {} }, C = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.js
|
|
@@ -13,7 +13,7 @@ var V = { exports: {} }, j = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var te;
|
|
15
15
|
function ge() {
|
|
16
|
-
if (te) return
|
|
16
|
+
if (te) return C;
|
|
17
17
|
te = 1;
|
|
18
18
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
19
19
|
function s(r, o, a) {
|
|
@@ -31,7 +31,7 @@ function ge() {
|
|
|
31
31
|
props: a
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return C.Fragment = t, C.jsx = s, C.jsxs = s, C;
|
|
35
35
|
}
|
|
36
36
|
var T = {};
|
|
37
37
|
/**
|
|
@@ -54,7 +54,7 @@ function he() {
|
|
|
54
54
|
switch (n) {
|
|
55
55
|
case _:
|
|
56
56
|
return "Fragment";
|
|
57
|
-
case
|
|
57
|
+
case $:
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case P:
|
|
60
60
|
return "StrictMode";
|
|
@@ -78,7 +78,7 @@ function he() {
|
|
|
78
78
|
case A:
|
|
79
79
|
var f = n.render;
|
|
80
80
|
return n = n.displayName, n || (n = f.displayName || f.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
81
|
-
case
|
|
81
|
+
case j:
|
|
82
82
|
return f = n.displayName || null, f !== null ? f : e(n.type) || "Memo";
|
|
83
83
|
case S:
|
|
84
84
|
f = n._payload, n = n._init;
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
function m(n) {
|
|
240
240
|
return typeof n == "object" && n !== null && n.$$typeof === O;
|
|
241
241
|
}
|
|
242
|
-
var E = ve, O = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"),
|
|
242
|
+
var E = ve, O = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), x = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), pe = Symbol.for("react.client.reference"), F = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, me = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
E = {
|
|
@@ -369,72 +369,22 @@ function ie(...e) {
|
|
|
369
369
|
function J(...e) {
|
|
370
370
|
return i.useCallback(ie(...e), e);
|
|
371
371
|
}
|
|
372
|
-
// @__NO_SIDE_EFFECTS__
|
|
373
|
-
function ue(e) {
|
|
374
|
-
const t = /* @__PURE__ */ Oe(e), s = i.forwardRef((r, o) => {
|
|
375
|
-
const { children: a, ...u } = r, l = i.Children.toArray(a), p = l.find(Ne);
|
|
376
|
-
if (p) {
|
|
377
|
-
const c = p.props.children, d = l.map((y) => y === p ? i.Children.count(c) > 1 ? i.Children.only(null) : i.isValidElement(c) ? c.props.children : null : y);
|
|
378
|
-
return /* @__PURE__ */ N.jsx(t, { ...u, ref: o, children: i.isValidElement(c) ? i.cloneElement(c, void 0, d) : null });
|
|
379
|
-
}
|
|
380
|
-
return /* @__PURE__ */ N.jsx(t, { ...u, ref: o, children: a });
|
|
381
|
-
});
|
|
382
|
-
return s.displayName = `${e}.Slot`, s;
|
|
383
|
-
}
|
|
384
|
-
var He = /* @__PURE__ */ ue("Slot");
|
|
385
|
-
// @__NO_SIDE_EFFECTS__
|
|
386
|
-
function Oe(e) {
|
|
387
|
-
const t = i.forwardRef((s, r) => {
|
|
388
|
-
const { children: o, ...a } = s;
|
|
389
|
-
if (i.isValidElement(o)) {
|
|
390
|
-
const u = Se(o), l = _e(a, o.props);
|
|
391
|
-
return o.type !== i.Fragment && (l.ref = r ? ie(r, u) : u), i.cloneElement(o, l);
|
|
392
|
-
}
|
|
393
|
-
return i.Children.count(o) > 1 ? i.Children.only(null) : null;
|
|
394
|
-
});
|
|
395
|
-
return t.displayName = `${e}.SlotClone`, t;
|
|
396
|
-
}
|
|
397
|
-
var le = Symbol("radix.slottable");
|
|
398
|
-
// @__NO_SIDE_EFFECTS__
|
|
399
|
-
function qe(e) {
|
|
400
|
-
const t = ({ children: s }) => /* @__PURE__ */ N.jsx(N.Fragment, { children: s });
|
|
401
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = le, t;
|
|
402
|
-
}
|
|
403
|
-
function Ne(e) {
|
|
404
|
-
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === le;
|
|
405
|
-
}
|
|
406
|
-
function _e(e, t) {
|
|
407
|
-
const s = { ...t };
|
|
408
|
-
for (const r in t) {
|
|
409
|
-
const o = e[r], a = t[r];
|
|
410
|
-
/^on[A-Z]/.test(r) ? o && a ? s[r] = (...u) => {
|
|
411
|
-
const l = a(...u);
|
|
412
|
-
return o(...u), l;
|
|
413
|
-
} : o && (s[r] = o) : r === "style" ? s[r] = { ...o, ...a } : r === "className" && (s[r] = [o, a].filter(Boolean).join(" "));
|
|
414
|
-
}
|
|
415
|
-
return { ...e, ...s };
|
|
416
|
-
}
|
|
417
|
-
function Se(e) {
|
|
418
|
-
var t, s;
|
|
419
|
-
let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = r && "isReactWarning" in r && r.isReactWarning;
|
|
420
|
-
return o ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, o = r && "isReactWarning" in r && r.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
421
|
-
}
|
|
422
372
|
function K(e, t, { checkForDefaultPrevented: s = !0 } = {}) {
|
|
423
373
|
return function(r) {
|
|
424
374
|
if (e == null || e(r), s === !1 || !r.defaultPrevented)
|
|
425
375
|
return t == null ? void 0 : t(r);
|
|
426
376
|
};
|
|
427
377
|
}
|
|
428
|
-
function
|
|
378
|
+
function Oe(e, t) {
|
|
429
379
|
return i.useReducer((s, r) => t[s][r] ?? s, e);
|
|
430
380
|
}
|
|
431
|
-
var
|
|
432
|
-
const { present: t, children: s } = e, r =
|
|
381
|
+
var Ne = (e) => {
|
|
382
|
+
const { present: t, children: s } = e, r = _e(t), o = typeof s == "function" ? s({ present: r.isPresent }) : i.Children.only(s), a = J(r.ref, Se(o));
|
|
433
383
|
return typeof s == "function" || r.isPresent ? i.cloneElement(o, { ref: a }) : null;
|
|
434
384
|
};
|
|
435
|
-
|
|
436
|
-
function
|
|
437
|
-
const [t, s] = i.useState(), r = i.useRef(null), o = i.useRef(e), a = i.useRef("none"), u = e ? "mounted" : "unmounted", [l, p] =
|
|
385
|
+
Ne.displayName = "Presence";
|
|
386
|
+
function _e(e) {
|
|
387
|
+
const [t, s] = i.useState(), r = i.useRef(null), o = i.useRef(e), a = i.useRef("none"), u = e ? "mounted" : "unmounted", [l, p] = Oe(u, {
|
|
438
388
|
mounted: {
|
|
439
389
|
UNMOUNT: "unmounted",
|
|
440
390
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -485,28 +435,28 @@ function $e(e) {
|
|
|
485
435
|
function D(e) {
|
|
486
436
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
487
437
|
}
|
|
488
|
-
function
|
|
438
|
+
function Se(e) {
|
|
489
439
|
var t, s;
|
|
490
440
|
let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = r && "isReactWarning" in r && r.isReactWarning;
|
|
491
441
|
return o ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, o = r && "isReactWarning" in r && r.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
492
442
|
}
|
|
493
|
-
var
|
|
494
|
-
}),
|
|
495
|
-
function
|
|
496
|
-
const [t, s] = i.useState(
|
|
443
|
+
var ke = i[" useId ".trim().toString()] || (() => {
|
|
444
|
+
}), Pe = 0;
|
|
445
|
+
function He(e) {
|
|
446
|
+
const [t, s] = i.useState(ke());
|
|
497
447
|
return L(() => {
|
|
498
|
-
s((r) => r ?? String(
|
|
448
|
+
s((r) => r ?? String(Pe++));
|
|
499
449
|
}, [e]), t ? `radix-${t}` : "";
|
|
500
450
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
451
|
+
var je = i[" useInsertionEffect ".trim().toString()] || L;
|
|
452
|
+
function qe({
|
|
503
453
|
prop: e,
|
|
504
454
|
defaultProp: t,
|
|
505
455
|
onChange: s = () => {
|
|
506
456
|
},
|
|
507
457
|
caller: r
|
|
508
458
|
}) {
|
|
509
|
-
const [o, a, u] =
|
|
459
|
+
const [o, a, u] = Ce({
|
|
510
460
|
defaultProp: t,
|
|
511
461
|
onChange: s
|
|
512
462
|
}), l = e !== void 0, p = l ? e : o;
|
|
@@ -523,7 +473,7 @@ function Ze({
|
|
|
523
473
|
(d) => {
|
|
524
474
|
var y;
|
|
525
475
|
if (l) {
|
|
526
|
-
const m =
|
|
476
|
+
const m = $e(d) ? d(e) : d;
|
|
527
477
|
m !== e && ((y = u.current) == null || y.call(u, m));
|
|
528
478
|
} else
|
|
529
479
|
a(d);
|
|
@@ -532,21 +482,71 @@ function Ze({
|
|
|
532
482
|
);
|
|
533
483
|
return [p, c];
|
|
534
484
|
}
|
|
535
|
-
function
|
|
485
|
+
function Ce({
|
|
536
486
|
defaultProp: e,
|
|
537
487
|
onChange: t
|
|
538
488
|
}) {
|
|
539
489
|
const [s, r] = i.useState(e), o = i.useRef(s), a = i.useRef(t);
|
|
540
|
-
return
|
|
490
|
+
return je(() => {
|
|
541
491
|
a.current = t;
|
|
542
492
|
}, [t]), i.useEffect(() => {
|
|
543
493
|
var u;
|
|
544
494
|
o.current !== s && ((u = a.current) == null || u.call(a, s), o.current = s);
|
|
545
495
|
}, [s, o]), [s, r, a];
|
|
546
496
|
}
|
|
547
|
-
function
|
|
497
|
+
function $e(e) {
|
|
548
498
|
return typeof e == "function";
|
|
549
499
|
}
|
|
500
|
+
// @__NO_SIDE_EFFECTS__
|
|
501
|
+
function ue(e) {
|
|
502
|
+
const t = /* @__PURE__ */ xe(e), s = i.forwardRef((r, o) => {
|
|
503
|
+
const { children: a, ...u } = r, l = i.Children.toArray(a), p = l.find(Re);
|
|
504
|
+
if (p) {
|
|
505
|
+
const c = p.props.children, d = l.map((y) => y === p ? i.Children.count(c) > 1 ? i.Children.only(null) : i.isValidElement(c) ? c.props.children : null : y);
|
|
506
|
+
return /* @__PURE__ */ N.jsx(t, { ...u, ref: o, children: i.isValidElement(c) ? i.cloneElement(c, void 0, d) : null });
|
|
507
|
+
}
|
|
508
|
+
return /* @__PURE__ */ N.jsx(t, { ...u, ref: o, children: a });
|
|
509
|
+
});
|
|
510
|
+
return s.displayName = `${e}.Slot`, s;
|
|
511
|
+
}
|
|
512
|
+
var Ge = /* @__PURE__ */ ue("Slot");
|
|
513
|
+
// @__NO_SIDE_EFFECTS__
|
|
514
|
+
function xe(e) {
|
|
515
|
+
const t = i.forwardRef((s, r) => {
|
|
516
|
+
const { children: o, ...a } = s;
|
|
517
|
+
if (i.isValidElement(o)) {
|
|
518
|
+
const u = De(o), l = Te(a, o.props);
|
|
519
|
+
return o.type !== i.Fragment && (l.ref = r ? ie(r, u) : u), i.cloneElement(o, l);
|
|
520
|
+
}
|
|
521
|
+
return i.Children.count(o) > 1 ? i.Children.only(null) : null;
|
|
522
|
+
});
|
|
523
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
524
|
+
}
|
|
525
|
+
var le = Symbol("radix.slottable");
|
|
526
|
+
// @__NO_SIDE_EFFECTS__
|
|
527
|
+
function Ze(e) {
|
|
528
|
+
const t = ({ children: s }) => /* @__PURE__ */ N.jsx(N.Fragment, { children: s });
|
|
529
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = le, t;
|
|
530
|
+
}
|
|
531
|
+
function Re(e) {
|
|
532
|
+
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === le;
|
|
533
|
+
}
|
|
534
|
+
function Te(e, t) {
|
|
535
|
+
const s = { ...t };
|
|
536
|
+
for (const r in t) {
|
|
537
|
+
const o = e[r], a = t[r];
|
|
538
|
+
/^on[A-Z]/.test(r) ? o && a ? s[r] = (...u) => {
|
|
539
|
+
const l = a(...u);
|
|
540
|
+
return o(...u), l;
|
|
541
|
+
} : o && (s[r] = o) : r === "style" ? s[r] = { ...o, ...a } : r === "className" && (s[r] = [o, a].filter(Boolean).join(" "));
|
|
542
|
+
}
|
|
543
|
+
return { ...e, ...s };
|
|
544
|
+
}
|
|
545
|
+
function De(e) {
|
|
546
|
+
var t, s;
|
|
547
|
+
let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = r && "isReactWarning" in r && r.isReactWarning;
|
|
548
|
+
return o ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, o = r && "isReactWarning" in r && r.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
549
|
+
}
|
|
550
550
|
var Le = [
|
|
551
551
|
"a",
|
|
552
552
|
"button",
|
|
@@ -607,15 +607,15 @@ var Ie = "DismissableLayer", X = "dismissableLayer.update", Fe = "dismissableLay
|
|
|
607
607
|
onInteractOutside: u,
|
|
608
608
|
onDismiss: l,
|
|
609
609
|
...p
|
|
610
|
-
} = e, c = i.useContext(fe), [d, y] = i.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, E] = i.useState({}), O = J(t, (v) => y(v)), w = Array.from(c.layers), [_] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), P = w.indexOf(_),
|
|
611
|
-
const
|
|
610
|
+
} = e, c = i.useContext(fe), [d, y] = i.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, E] = i.useState({}), O = J(t, (v) => y(v)), w = Array.from(c.layers), [_] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), P = w.indexOf(_), $ = d ? w.indexOf(d) : -1, M = c.layersWithOutsidePointerEventsDisabled.size > 0, x = $ >= P, A = Ve((v) => {
|
|
611
|
+
const j = v.target, S = [...c.branches].some((I) => I.contains(j));
|
|
612
612
|
!x || S || (o == null || o(v), u == null || u(v), v.defaultPrevented || l == null || l());
|
|
613
613
|
}, m), R = Ke((v) => {
|
|
614
|
-
const
|
|
615
|
-
[...c.branches].some((S) => S.contains(
|
|
614
|
+
const j = v.target;
|
|
615
|
+
[...c.branches].some((S) => S.contains(j)) || (a == null || a(v), u == null || u(v), v.defaultPrevented || l == null || l());
|
|
616
616
|
}, m);
|
|
617
617
|
return Ae((v) => {
|
|
618
|
-
|
|
618
|
+
$ === c.layers.size - 1 && (r == null || r(v), !v.defaultPrevented && l && (v.preventDefault(), l()));
|
|
619
619
|
}, m), i.useEffect(() => {
|
|
620
620
|
if (d)
|
|
621
621
|
return s && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (se = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), ae(), () => {
|
|
@@ -711,20 +711,20 @@ function de(e, t, s, { discrete: r }) {
|
|
|
711
711
|
}
|
|
712
712
|
export {
|
|
713
713
|
Ue as M,
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
Ne as R,
|
|
715
|
+
ue as S,
|
|
716
716
|
N as a,
|
|
717
717
|
K as b,
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
718
|
+
Je as c,
|
|
719
|
+
L as d,
|
|
720
|
+
Ze as e,
|
|
721
|
+
ie as f,
|
|
722
|
+
He as g,
|
|
723
723
|
ce as h,
|
|
724
|
+
J as i,
|
|
724
725
|
Ye as j,
|
|
725
|
-
|
|
726
|
+
Ge as k,
|
|
726
727
|
Y as n,
|
|
727
728
|
Me as w,
|
|
728
|
-
|
|
729
|
-
Ze as y
|
|
729
|
+
qe as y
|
|
730
730
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const ce=require("react"),we=require("react-dom");function fe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=fe(ce),Oe=fe(we);var q={exports:{}}
|
|
1
|
+
"use strict";const ce=require("react"),we=require("react-dom");function fe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=fe(ce),Oe=fe(we);var q={exports:{}},$={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var oe;function _e(){if(oe)return
|
|
9
|
+
*/var oe;function _e(){if(oe)return $;oe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(r,s,i){var u=null;if(i!==void 0&&(u=""+i),s.key!==void 0&&(u=""+s.key),"key"in s){i={};for(var l in s)l!=="key"&&(i[l]=s[l])}else i=s;return s=i.ref,{$$typeof:e,type:r,key:u,ref:s!==void 0?s:null,props:i}}return $.Fragment=t,$.jsx=o,$.jsxs=o,$}var D={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ge?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case R:return"Profiler";case
|
|
17
|
+
*/var se;function Ne(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ge?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case R:return"Profiler";case P:return"StrictMode";case x:return"Suspense";case v:return"SuspenseList";case U:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case w:return"Portal";case T:return n.displayName||"Context";case F:return(n._context.displayName||"Context")+".Consumer";case W:var f=n.render;return n=n.displayName,n||(n=f.displayName||f.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case k:return f=n.displayName||null,f!==null?f:e(n.type)||"Memo";case S:f=n._payload,n=n._init;try{return e(n(f))}catch{}}return null}function t(n){return""+n}function o(n){try{t(n);var f=!1}catch{f=!0}if(f){f=console;var b=f.error,g=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return b.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",g),t(n)}}function r(n){if(n===N)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===S)return"<...>";try{var f=e(n);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function s(){var n=z.A;return n===null?null:n.getOwner()}function i(){return Error("react-stack-top-frame")}function u(n){if(Z.call(n,"key")){var f=Object.getOwnPropertyDescriptor(n,"key").get;if(f&&f.isReactWarning)return!1}return n.key!==void 0}function l(n,f){function b(){Q||(Q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}b.isReactWarning=!0,Object.defineProperty(n,"key",{get:b,configurable:!0})}function p(){var n=e(this.type);return ee[n]||(ee[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function c(n,f,b,g,V,K){var h=b.ref;return n={$$typeof:O,type:n,key:f,props:b,_owner:g},(h!==void 0?h:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:p}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function d(n,f,b,g,V,K){var h=f.children;if(h!==void 0)if(g)if(he(h)){for(g=0;g<h.length;g++)y(h[g]);Object.freeze&&Object.freeze(h)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(h);if(Z.call(f,"key")){h=e(n);var j=Object.keys(f).filter(function(Ee){return Ee!=="key"});g=0<j.length?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}",re[h+g]||(j=0<j.length?"{"+j.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,g,h,j,h),re[h+g]=!0)}if(h=null,b!==void 0&&(o(b),h=""+b),u(f)&&(o(f.key),h=""+f.key),"key"in f){b={};for(var X in f)X!=="key"&&(b[X]=f[X])}else b=f;return h&&l(b,typeof n=="function"?n.displayName||n.name||"Unknown":n),c(n,h,b,s(),V,K)}function y(n){m(n)?n._store&&(n._store.validated=1):typeof n=="object"&&n!==null&&n.$$typeof===S&&(n._payload.status==="fulfilled"?m(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function m(n){return typeof n=="object"&&n!==null&&n.$$typeof===O}var E=ce,O=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),x=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),z=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,he=Array.isArray,B=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(n){return n()}};var Q,ee={},te=E.react_stack_bottom_frame.bind(E,i)(),ne=B(r(i)),re={};D.Fragment=N,D.jsx=function(n,f,b){var g=1e4>z.recentlyCreatedOwnerStacks++;return d(n,f,b,!1,g?Error("react-stack-top-frame"):te,g?B(r(n)):ne)},D.jsxs=function(n,f,b){var g=1e4>z.recentlyCreatedOwnerStacks++;return d(n,f,b,!0,g?Error("react-stack-top-frame"):te,g?B(r(n)):ne)}}()),D}var ie;function Se(){return ie||(ie=1,process.env.NODE_ENV==="production"?q.exports=_e():q.exports=Ne()),q.exports}var _=Se();function je(e,t){const o=a.createContext(t),r=i=>{const{children:u,...l}=i,p=a.useMemo(()=>l,Object.values(l));return _.jsx(o.Provider,{value:p,children:u})};r.displayName=e+"Provider";function s(i){const u=a.useContext(o);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function $e(e,t=[]){let o=[];function r(i,u){const l=a.createContext(u),p=o.length;o=[...o,u];const c=y=>{var m;const{scope:E,children:O,...w}=y,N=((m=E==null?void 0:E[e])==null?void 0:m[p])||l,$=a.useMemo(()=>w,Object.values(w));return _.jsx(N.Provider,{value:$,children:O})};c.displayName=i+"Provider";function d(y,m){var E;const O=((E=m==null?void 0:m[e])==null?void 0:E[p])||l,w=a.useContext(O);if(w)return w;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${i}\``)}return[c,d]}const s=()=>{const i=o.map(u=>a.createContext(u));return function(u){const l=(u==null?void 0:u[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return s.scopeName=e,[r,Pe(s,...t)]}function Pe(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const i=r.reduce((u,{useScope:l,scopeName:p})=>{const c=l(s)[`__scope${p}`];return{...u,...c}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}var C=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function ae(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y(...e){return t=>{let o=!1;const r=e.map(s=>{const i=ae(s,t);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():ae(e[s],null)}}}}function A(...e){return a.useCallback(Y(...e),e)}function H(e){const t=Ce(e),o=a.forwardRef((r,s)=>{const{children:i,...u}=r,l=a.Children.toArray(i),p=l.find(xe);if(p){const c=p.props.children,d=l.map(y=>y===p?a.Children.count(c)>1?a.Children.only(null):a.isValidElement(c)?c.props.children:null:y);return _.jsx(t,{...u,ref:s,children:a.isValidElement(c)?a.cloneElement(c,void 0,d):null})}return _.jsx(t,{...u,ref:s,children:i})});return o.displayName=`${e}.Slot`,o}var ke=H("Slot");function Ce(e){const t=a.forwardRef((o,r)=>{const{children:s,...i}=o;if(a.isValidElement(s)){const u=De(s),l=Te(i,s.props);return s.type!==a.Fragment&&(l.ref=r?Y(r,u):u),a.cloneElement(s,l)}return a.Children.count(s)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var de=Symbol("radix.slottable");function Re(e){const t=({children:o})=>_.jsx(_.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=de,t}function xe(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===de}function Te(e,t){const o={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?o[r]=(...u)=>{const l=i(...u);return s(...u),l}:s&&(o[r]=s):r==="style"?o[r]={...s,...i}:r==="className"&&(o[r]=[s,i].filter(Boolean).join(" "))}return{...e,...o}}function De(e){var t,o;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function M(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Le(e,t){return a.useReducer((o,r)=>t[o][r]??o,e)}var pe=e=>{const{present:t,children:o}=e,r=Me(t),s=typeof o=="function"?o({present:r.isPresent}):a.Children.only(o),i=A(r.ref,Ae(s));return typeof o=="function"||r.isPresent?a.cloneElement(s,{ref:i}):null};pe.displayName="Presence";function Me(e){const[t,o]=a.useState(),r=a.useRef(null),s=a.useRef(e),i=a.useRef("none"),u=e?"mounted":"unmounted",[l,p]=Le(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const c=L(r.current);i.current=l==="mounted"?c:"none"},[l]),C(()=>{const c=r.current,d=s.current;if(d!==e){const y=i.current,m=L(c);e?p("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?p("UNMOUNT"):p(d&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,p]),C(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,y=E=>{const O=L(r.current).includes(E.animationName);if(E.target===t&&O&&(p("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=E=>{E.target===t&&(i.current=L(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(c=>{r.current=c?getComputedStyle(c):null,o(c)},[])}}function L(e){return(e==null?void 0:e.animationName)||"none"}function Ae(e){var t,o;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var Ie=a[" useId ".trim().toString()]||(()=>{}),Fe=0;function We(e){const[t,o]=a.useState(Ie());return C(()=>{o(r=>r??String(Fe++))},[e]),t?`radix-${t}`:""}var Ue=a[" useInsertionEffect ".trim().toString()]||C;function ze({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){const[s,i,u]=Be({defaultProp:t,onChange:o}),l=e!==void 0,p=l?e:s;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const y=d.current;y!==l&&console.warn(`${r} is changing from ${y?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const c=a.useCallback(d=>{var y;if(l){const m=Ve(d)?d(e):d;m!==e&&((y=u.current)==null||y.call(u,m))}else i(d)},[l,e,i,u]);return[p,c]}function Be({defaultProp:e,onChange:t}){const[o,r]=a.useState(e),s=a.useRef(o),i=a.useRef(t);return Ue(()=>{i.current=t},[t]),a.useEffect(()=>{var u;s.current!==o&&((u=i.current)==null||u.call(i,o),s.current=o)},[o,s]),[o,r,i]}function Ve(e){return typeof e=="function"}var Ke=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=Ke.reduce((e,t)=>{const o=H(`Primitive.${t}`),r=a.forwardRef((s,i)=>{const{asChild:u,...l}=s,p=u?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(p,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function me(e,t){e&&Oe.flushSync(()=>e.dispatchEvent(t))}function I(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...o)=>{var r;return(r=t.current)==null?void 0:r.call(t,...o)},[])}function Xe(e,t=globalThis==null?void 0:globalThis.document){const o=I(e);a.useEffect(()=>{const r=s=>{s.key==="Escape"&&o(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}var qe="DismissableLayer",J="dismissableLayer.update",Je="dismissableLayer.pointerDownOutside",Ye="dismissableLayer.focusOutside",ue,ye=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ve=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:u,onDismiss:l,...p}=e,c=a.useContext(ye),[d,y]=a.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=a.useState({}),O=A(t,v=>y(v)),w=Array.from(c.layers),[N]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),$=w.indexOf(N),R=d?w.indexOf(d):-1,F=c.layersWithOutsidePointerEventsDisabled.size>0,x=R>=$,W=Ze(v=>{const P=v.target,S=[...c.branches].some(U=>U.contains(P));!x||S||(s==null||s(v),u==null||u(v),v.defaultPrevented||l==null||l())},m),T=Qe(v=>{const P=v.target;[...c.branches].some(S=>S.contains(P))||(i==null||i(v),u==null||u(v),v.defaultPrevented||l==null||l())},m);return Xe(v=>{R===c.layers.size-1&&(r==null||r(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},m),a.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ue=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),le(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ue)}},[d,m,o,c]),a.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),le())},[d,c]),a.useEffect(()=>{const v=()=>E({});return document.addEventListener(J,v),()=>document.removeEventListener(J,v)},[]),_.jsx(G.div,{...p,ref:O,style:{pointerEvents:F?x?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,T.onFocusCapture),onBlurCapture:M(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,W.onPointerDownCapture)})});ve.displayName=qe;var He="DismissableLayerBranch",Ge=a.forwardRef((e,t)=>{const o=a.useContext(ye),r=a.useRef(null),s=A(t,r);return a.useEffect(()=>{const i=r.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),_.jsx(G.div,{...e,ref:s})});Ge.displayName=He;function Ze(e,t=globalThis==null?void 0:globalThis.document){const o=I(e),r=a.useRef(!1),s=a.useRef(()=>{});return a.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let p=function(){be(Je,o,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=p,t.addEventListener("click",s.current,{once:!0})):p()}else t.removeEventListener("click",s.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function Qe(e,t=globalThis==null?void 0:globalThis.document){const o=I(e),r=a.useRef(!1);return a.useEffect(()=>{const s=i=>{i.target&&!r.current&&be(Ye,o,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function le(){const e=new CustomEvent(J);document.dispatchEvent(e)}function be(e,t,o,{discrete:r}){const s=o.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&s.addEventListener(e,t,{once:!0}),r?me(s,i):s.dispatchEvent(i)}exports.M=ve;exports.R=pe;exports._=Re;exports.ae=_;exports.b=je;exports.g=We;exports.g$1=H;exports.h=G;exports.j=$e;exports.j$1=ke;exports.m=Y;exports.n=I;exports.w=me;exports.w$1=C;exports.x=A;exports.y=ze;exports.y$1=M;
|
|
22
|
+
<%s key={someKey} {...props} />`,g,h,j,h),re[h+g]=!0)}if(h=null,b!==void 0&&(o(b),h=""+b),u(f)&&(o(f.key),h=""+f.key),"key"in f){b={};for(var X in f)X!=="key"&&(b[X]=f[X])}else b=f;return h&&l(b,typeof n=="function"?n.displayName||n.name||"Unknown":n),c(n,h,b,s(),V,K)}function y(n){m(n)?n._store&&(n._store.validated=1):typeof n=="object"&&n!==null&&n.$$typeof===S&&(n._payload.status==="fulfilled"?m(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function m(n){return typeof n=="object"&&n!==null&&n.$$typeof===O}var E=ce,O=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),T=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),z=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,he=Array.isArray,B=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(n){return n()}};var Q,ee={},te=E.react_stack_bottom_frame.bind(E,i)(),ne=B(r(i)),re={};D.Fragment=N,D.jsx=function(n,f,b){var g=1e4>z.recentlyCreatedOwnerStacks++;return d(n,f,b,!1,g?Error("react-stack-top-frame"):te,g?B(r(n)):ne)},D.jsxs=function(n,f,b){var g=1e4>z.recentlyCreatedOwnerStacks++;return d(n,f,b,!0,g?Error("react-stack-top-frame"):te,g?B(r(n)):ne)}}()),D}var ie;function Se(){return ie||(ie=1,process.env.NODE_ENV==="production"?q.exports=_e():q.exports=Ne()),q.exports}var _=Se();function je(e,t){const o=a.createContext(t),r=i=>{const{children:u,...l}=i,p=a.useMemo(()=>l,Object.values(l));return _.jsx(o.Provider,{value:p,children:u})};r.displayName=e+"Provider";function s(i){const u=a.useContext(o);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Pe(e,t=[]){let o=[];function r(i,u){const l=a.createContext(u),p=o.length;o=[...o,u];const c=y=>{var m;const{scope:E,children:O,...w}=y,N=((m=E==null?void 0:E[e])==null?void 0:m[p])||l,P=a.useMemo(()=>w,Object.values(w));return _.jsx(N.Provider,{value:P,children:O})};c.displayName=i+"Provider";function d(y,m){var E;const O=((E=m==null?void 0:m[e])==null?void 0:E[p])||l,w=a.useContext(O);if(w)return w;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${i}\``)}return[c,d]}const s=()=>{const i=o.map(u=>a.createContext(u));return function(u){const l=(u==null?void 0:u[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return s.scopeName=e,[r,ke(s,...t)]}function ke(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const i=r.reduce((u,{useScope:l,scopeName:p})=>{const c=l(s)[`__scope${p}`];return{...u,...c}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}var C=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function ae(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y(...e){return t=>{let o=!1;const r=e.map(s=>{const i=ae(s,t);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():ae(e[s],null)}}}}function A(...e){return a.useCallback(Y(...e),e)}function M(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function $e(e,t){return a.useReducer((o,r)=>t[o][r]??o,e)}var de=e=>{const{present:t,children:o}=e,r=Ce(t),s=typeof o=="function"?o({present:r.isPresent}):a.Children.only(o),i=A(r.ref,Re(s));return typeof o=="function"||r.isPresent?a.cloneElement(s,{ref:i}):null};de.displayName="Presence";function Ce(e){const[t,o]=a.useState(),r=a.useRef(null),s=a.useRef(e),i=a.useRef("none"),u=e?"mounted":"unmounted",[l,p]=$e(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const c=L(r.current);i.current=l==="mounted"?c:"none"},[l]),C(()=>{const c=r.current,d=s.current;if(d!==e){const y=i.current,m=L(c);e?p("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?p("UNMOUNT"):p(d&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,p]),C(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,y=E=>{const O=L(r.current).includes(E.animationName);if(E.target===t&&O&&(p("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=E=>{E.target===t&&(i.current=L(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(c=>{r.current=c?getComputedStyle(c):null,o(c)},[])}}function L(e){return(e==null?void 0:e.animationName)||"none"}function Re(e){var t,o;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var Te=a[" useId ".trim().toString()]||(()=>{}),xe=0;function De(e){const[t,o]=a.useState(Te());return C(()=>{o(r=>r??String(xe++))},[e]),t?`radix-${t}`:""}var Le=a[" useInsertionEffect ".trim().toString()]||C;function Me({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){const[s,i,u]=Ae({defaultProp:t,onChange:o}),l=e!==void 0,p=l?e:s;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const y=d.current;y!==l&&console.warn(`${r} is changing from ${y?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const c=a.useCallback(d=>{var y;if(l){const m=Ie(d)?d(e):d;m!==e&&((y=u.current)==null||y.call(u,m))}else i(d)},[l,e,i,u]);return[p,c]}function Ae({defaultProp:e,onChange:t}){const[o,r]=a.useState(e),s=a.useRef(o),i=a.useRef(t);return Le(()=>{i.current=t},[t]),a.useEffect(()=>{var u;s.current!==o&&((u=i.current)==null||u.call(i,o),s.current=o)},[o,s]),[o,r,i]}function Ie(e){return typeof e=="function"}function H(e){const t=We(e),o=a.forwardRef((r,s)=>{const{children:i,...u}=r,l=a.Children.toArray(i),p=l.find(ze);if(p){const c=p.props.children,d=l.map(y=>y===p?a.Children.count(c)>1?a.Children.only(null):a.isValidElement(c)?c.props.children:null:y);return _.jsx(t,{...u,ref:s,children:a.isValidElement(c)?a.cloneElement(c,void 0,d):null})}return _.jsx(t,{...u,ref:s,children:i})});return o.displayName=`${e}.Slot`,o}var Fe=H("Slot");function We(e){const t=a.forwardRef((o,r)=>{const{children:s,...i}=o;if(a.isValidElement(s)){const u=Ve(s),l=Be(i,s.props);return s.type!==a.Fragment&&(l.ref=r?Y(r,u):u),a.cloneElement(s,l)}return a.Children.count(s)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pe=Symbol("radix.slottable");function Ue(e){const t=({children:o})=>_.jsx(_.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=pe,t}function ze(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pe}function Be(e,t){const o={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?o[r]=(...u)=>{const l=i(...u);return s(...u),l}:s&&(o[r]=s):r==="style"?o[r]={...s,...i}:r==="className"&&(o[r]=[s,i].filter(Boolean).join(" "))}return{...e,...o}}function Ve(e){var t,o;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var Ke=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=Ke.reduce((e,t)=>{const o=H(`Primitive.${t}`),r=a.forwardRef((s,i)=>{const{asChild:u,...l}=s,p=u?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(p,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function me(e,t){e&&Oe.flushSync(()=>e.dispatchEvent(t))}function I(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...o)=>{var r;return(r=t.current)==null?void 0:r.call(t,...o)},[])}function Xe(e,t=globalThis==null?void 0:globalThis.document){const o=I(e);a.useEffect(()=>{const r=s=>{s.key==="Escape"&&o(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}var qe="DismissableLayer",J="dismissableLayer.update",Je="dismissableLayer.pointerDownOutside",Ye="dismissableLayer.focusOutside",ue,ye=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ve=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:u,onDismiss:l,...p}=e,c=a.useContext(ye),[d,y]=a.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=a.useState({}),O=A(t,v=>y(v)),w=Array.from(c.layers),[N]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),P=w.indexOf(N),R=d?w.indexOf(d):-1,F=c.layersWithOutsidePointerEventsDisabled.size>0,T=R>=P,W=Ze(v=>{const k=v.target,S=[...c.branches].some(U=>U.contains(k));!T||S||(s==null||s(v),u==null||u(v),v.defaultPrevented||l==null||l())},m),x=Qe(v=>{const k=v.target;[...c.branches].some(S=>S.contains(k))||(i==null||i(v),u==null||u(v),v.defaultPrevented||l==null||l())},m);return Xe(v=>{R===c.layers.size-1&&(r==null||r(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},m),a.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ue=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),le(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ue)}},[d,m,o,c]),a.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),le())},[d,c]),a.useEffect(()=>{const v=()=>E({});return document.addEventListener(J,v),()=>document.removeEventListener(J,v)},[]),_.jsx(G.div,{...p,ref:O,style:{pointerEvents:F?T?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,x.onFocusCapture),onBlurCapture:M(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,W.onPointerDownCapture)})});ve.displayName=qe;var He="DismissableLayerBranch",Ge=a.forwardRef((e,t)=>{const o=a.useContext(ye),r=a.useRef(null),s=A(t,r);return a.useEffect(()=>{const i=r.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),_.jsx(G.div,{...e,ref:s})});Ge.displayName=He;function Ze(e,t=globalThis==null?void 0:globalThis.document){const o=I(e),r=a.useRef(!1),s=a.useRef(()=>{});return a.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let p=function(){be(Je,o,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=p,t.addEventListener("click",s.current,{once:!0})):p()}else t.removeEventListener("click",s.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function Qe(e,t=globalThis==null?void 0:globalThis.document){const o=I(e),r=a.useRef(!1);return a.useEffect(()=>{const s=i=>{i.target&&!r.current&&be(Ye,o,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function le(){const e=new CustomEvent(J);document.dispatchEvent(e)}function be(e,t,o,{discrete:r}){const s=o.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&s.addEventListener(e,t,{once:!0}),r?me(s,i):s.dispatchEvent(i)}exports.M=ve;exports.R=de;exports.S=H;exports.ae=_;exports.b=je;exports.f=Y;exports.g=De;exports.h=G;exports.h$1=Fe;exports.i=A;exports.j=Pe;exports.j$1=Ue;exports.n=I;exports.w=me;exports.w$1=C;exports.y=Me;exports.y$1=M;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { j as G, y as H, a as s, g as
|
|
3
|
-
import { M as U, R as V, d as X, C as Z, S as z } from "./createLucideIcon-B950nf2d-
|
|
2
|
+
import { j as G, y as H, a as s, g as y, i as R, h as g, b as p, c as K, R as _, S as L, M as Q } from "./index-BL59b1Bz-C9bJE_xn.js";
|
|
3
|
+
import { M as U, R as V, d as X, C as Z, S as z } from "./createLucideIcon-B950nf2d-9wLYOF5y.js";
|
|
4
4
|
var D = "Dialog", [b, ce] = G(D), [J, u] = b(D), I = (e) => {
|
|
5
5
|
const {
|
|
6
6
|
__scopeDialog: n,
|
|
@@ -21,9 +21,9 @@ var D = "Dialog", [b, ce] = G(D), [J, u] = b(D), I = (e) => {
|
|
|
21
21
|
scope: n,
|
|
22
22
|
triggerRef: c,
|
|
23
23
|
contentRef: f,
|
|
24
|
-
contentId:
|
|
25
|
-
titleId:
|
|
26
|
-
descriptionId:
|
|
24
|
+
contentId: y(),
|
|
25
|
+
titleId: y(),
|
|
26
|
+
descriptionId: y(),
|
|
27
27
|
open: v,
|
|
28
28
|
onOpenChange: h,
|
|
29
29
|
onOpenToggle: l.useCallback(() => h((q) => !q), [h]),
|
|
@@ -35,7 +35,7 @@ var D = "Dialog", [b, ce] = G(D), [J, u] = b(D), I = (e) => {
|
|
|
35
35
|
I.displayName = D;
|
|
36
36
|
var w = "DialogTrigger", O = l.forwardRef(
|
|
37
37
|
(e, n) => {
|
|
38
|
-
const { __scopeDialog: t, ...a } = e, r = u(w, t), o =
|
|
38
|
+
const { __scopeDialog: t, ...a } = e, r = u(w, t), o = R(n, r.triggerRef);
|
|
39
39
|
return /* @__PURE__ */ s.jsx(
|
|
40
40
|
g.button,
|
|
41
41
|
{
|
|
@@ -52,17 +52,17 @@ var w = "DialogTrigger", O = l.forwardRef(
|
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
O.displayName = w;
|
|
55
|
-
var
|
|
55
|
+
var x = "DialogPortal", [Y, F] = b(x, {
|
|
56
56
|
forceMount: void 0
|
|
57
57
|
}), $ = (e) => {
|
|
58
|
-
const { __scopeDialog: n, forceMount: t, children: a, container: r } = e, o = u(
|
|
59
|
-
return /* @__PURE__ */ s.jsx(Y, { scope: n, forceMount: t, children: l.Children.map(a, (i) => /* @__PURE__ */ s.jsx(
|
|
58
|
+
const { __scopeDialog: n, forceMount: t, children: a, container: r } = e, o = u(x, n);
|
|
59
|
+
return /* @__PURE__ */ s.jsx(Y, { scope: n, forceMount: t, children: l.Children.map(a, (i) => /* @__PURE__ */ s.jsx(_, { present: t || o.open, children: /* @__PURE__ */ s.jsx(U, { asChild: !0, container: r, children: i }) })) });
|
|
60
60
|
};
|
|
61
|
-
$.displayName =
|
|
61
|
+
$.displayName = x;
|
|
62
62
|
var m = "DialogOverlay", N = l.forwardRef(
|
|
63
63
|
(e, n) => {
|
|
64
64
|
const t = F(m, e.__scopeDialog), { forceMount: a = t.forceMount, ...r } = e, o = u(m, e.__scopeDialog);
|
|
65
|
-
return o.modal ? /* @__PURE__ */ s.jsx(
|
|
65
|
+
return o.modal ? /* @__PURE__ */ s.jsx(_, { present: a || o.open, children: /* @__PURE__ */ s.jsx(oe, { ...r, ref: n }) }) : null;
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
N.displayName = m;
|
|
@@ -86,13 +86,13 @@ var ee = L("DialogOverlay.RemoveScroll"), oe = l.forwardRef(
|
|
|
86
86
|
), d = "DialogContent", E = l.forwardRef(
|
|
87
87
|
(e, n) => {
|
|
88
88
|
const t = F(d, e.__scopeDialog), { forceMount: a = t.forceMount, ...r } = e, o = u(d, e.__scopeDialog);
|
|
89
|
-
return /* @__PURE__ */ s.jsx(
|
|
89
|
+
return /* @__PURE__ */ s.jsx(_, { present: a || o.open, children: o.modal ? /* @__PURE__ */ s.jsx(ne, { ...r, ref: n }) : /* @__PURE__ */ s.jsx(te, { ...r, ref: n }) });
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
E.displayName = d;
|
|
93
93
|
var ne = l.forwardRef(
|
|
94
94
|
(e, n) => {
|
|
95
|
-
const t = u(d, e.__scopeDialog), a = l.useRef(null), r =
|
|
95
|
+
const t = u(d, e.__scopeDialog), a = l.useRef(null), r = R(n, t.contentRef, a);
|
|
96
96
|
return l.useEffect(() => {
|
|
97
97
|
const o = a.current;
|
|
98
98
|
if (o) return V(o);
|
|
@@ -143,7 +143,7 @@ var ne = l.forwardRef(
|
|
|
143
143
|
}
|
|
144
144
|
), M = l.forwardRef(
|
|
145
145
|
(e, n) => {
|
|
146
|
-
const { __scopeDialog: t, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...i } = e, c = u(d, t), f = l.useRef(null), v =
|
|
146
|
+
const { __scopeDialog: t, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...i } = e, c = u(d, t), f = l.useRef(null), v = R(n, f);
|
|
147
147
|
return Z(), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
148
148
|
/* @__PURE__ */ s.jsx(
|
|
149
149
|
z,
|
|
@@ -181,16 +181,16 @@ var ne = l.forwardRef(
|
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
P.displayName = j;
|
|
184
|
-
var A = "DialogDescription",
|
|
184
|
+
var A = "DialogDescription", S = l.forwardRef(
|
|
185
185
|
(e, n) => {
|
|
186
186
|
const { __scopeDialog: t, ...a } = e, r = u(A, t);
|
|
187
187
|
return /* @__PURE__ */ s.jsx(g.p, { id: r.descriptionId, ...a, ref: n });
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
|
-
|
|
191
|
-
var
|
|
190
|
+
S.displayName = A;
|
|
191
|
+
var k = "DialogClose", T = l.forwardRef(
|
|
192
192
|
(e, n) => {
|
|
193
|
-
const { __scopeDialog: t, ...a } = e, r = u(
|
|
193
|
+
const { __scopeDialog: t, ...a } = e, r = u(k, t);
|
|
194
194
|
return /* @__PURE__ */ s.jsx(
|
|
195
195
|
g.button,
|
|
196
196
|
{
|
|
@@ -202,7 +202,7 @@ var S = "DialogClose", T = l.forwardRef(
|
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
|
-
T.displayName =
|
|
205
|
+
T.displayName = k;
|
|
206
206
|
function C(e) {
|
|
207
207
|
return e ? "open" : "closed";
|
|
208
208
|
}
|
|
@@ -226,16 +226,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
|
|
|
226
226
|
const r = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
227
227
|
n && r && (document.getElementById(n) || console.warn(t));
|
|
228
228
|
}, [t, e, n]), null;
|
|
229
|
-
}, de = I, fe = O, pe = $, ge = N, me = E, De = P, ve =
|
|
229
|
+
}, de = I, fe = O, pe = $, ge = N, me = E, De = P, ve = S, he = T;
|
|
230
230
|
export {
|
|
231
|
-
|
|
231
|
+
fe as C,
|
|
232
232
|
ce as D,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
ue as
|
|
239
|
-
de as
|
|
240
|
-
|
|
233
|
+
De as E,
|
|
234
|
+
ve as P,
|
|
235
|
+
pe as R,
|
|
236
|
+
ge as _,
|
|
237
|
+
me as h,
|
|
238
|
+
ue as v,
|
|
239
|
+
de as x,
|
|
240
|
+
he as y
|
|
241
241
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const T=require("react"),t=require("./index-BL59b1Bz-COeLljOH.cjs"),p=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs");function B(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const i=B(T);var D="Dialog",[_,q]=t.j(D),[W,u]=_(D),b=e=>{const{__scopeDialog:n,children:o,open:a,defaultOpen:s,onOpenChange:r,modal:l=!0}=e,c=i.useRef(null),f=i.useRef(null),[m,v]=t.y({prop:a,defaultProp:s??!1,onChange:r,caller:D});return t.ae.jsx(W,{scope:n,triggerRef:c,contentRef:f,contentId:t.g(),titleId:t.g(),descriptionId:t.g(),open:m,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(k=>!k),[v]),modal:l,children:o})};b.displayName=D;var j="DialogTrigger",x=i.forwardRef((e,n)=>{const{__scopeDialog:o,...a}=e,s=u(j,o),r=t.i(n,s.triggerRef);return t.ae.jsx(t.h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":R(s.open),...a,ref:r,onClick:t.y$1(e.onClick,s.onOpenToggle)})});x.displayName=j;var y="DialogPortal",[L,O]=_(y,{forceMount:void 0}),C=e=>{const{__scopeDialog:n,forceMount:o,children:a,container:s}=e,r=u(y,n);return t.ae.jsx(L,{scope:n,forceMount:o,children:i.Children.map(a,l=>t.ae.jsx(t.R,{present:o||r.open,children:t.ae.jsx(p.Me,{asChild:!0,container:s,children:l})}))})};C.displayName=y;var g="DialogOverlay",I=i.forwardRef((e,n)=>{const o=O(g,e.__scopeDialog),{forceMount:a=o.forceMount,...s}=e,r=u(g,e.__scopeDialog);return r.modal?t.ae.jsx(t.R,{present:a||r.open,children:t.ae.jsx(G,{...s,ref:n})}):null});I.displayName=g;var z=t.S("DialogOverlay.RemoveScroll"),G=i.forwardRef((e,n)=>{const{__scopeDialog:o,...a}=e,s=u(g,o);return t.ae.jsx(p.dt,{as:z,allowPinchZoom:!0,shards:[s.contentRef],children:t.ae.jsx(t.h.div,{"data-state":R(s.open),...a,ref:n,style:{pointerEvents:"auto",...a.style}})})}),d="DialogContent",w=i.forwardRef((e,n)=>{const o=O(d,e.__scopeDialog),{forceMount:a=o.forceMount,...s}=e,r=u(d,e.__scopeDialog);return t.ae.jsx(t.R,{present:a||r.open,children:r.modal?t.ae.jsx(H,{...s,ref:n}):t.ae.jsx(K,{...s,ref:n})})});w.displayName=d;var H=i.forwardRef((e,n)=>{const o=u(d,e.__scopeDialog),a=i.useRef(null),s=t.i(n,o.contentRef,a);return i.useEffect(()=>{const r=a.current;if(r)return p.Rt(r)},[]),t.ae.jsx(F,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:t.y$1(e.onCloseAutoFocus,r=>{var l;r.preventDefault(),(l=o.triggerRef.current)==null||l.focus()}),onPointerDownOutside:t.y$1(e.onPointerDownOutside,r=>{const l=r.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&r.preventDefault()}),onFocusOutside:t.y$1(e.onFocusOutside,r=>r.preventDefault())})}),K=i.forwardRef((e,n)=>{const o=u(d,e.__scopeDialog),a=i.useRef(!1),s=i.useRef(!1);return t.ae.jsx(F,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,r),r.defaultPrevented||(a.current||(c=o.triggerRef.current)==null||c.focus(),r.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:r=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=r.target;(c=o.triggerRef.current)!=null&&c.contains(f)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&s.current&&r.preventDefault()}})}),F=i.forwardRef((e,n)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:r,...l}=e,c=u(d,o),f=i.useRef(null),m=t.i(n,f);return p.Ct(),t.ae.jsxs(t.ae.Fragment,{children:[t.ae.jsx(p.Se,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:r,children:t.ae.jsx(t.M,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":R(c.open),...l,ref:m,onDismiss:()=>c.onOpenChange(!1)})}),t.ae.jsxs(t.ae.Fragment,{children:[t.ae.jsx(U,{titleId:c.titleId}),t.ae.jsx(X,{contentRef:f,descriptionId:c.descriptionId})]})]})}),h="DialogTitle",N=i.forwardRef((e,n)=>{const{__scopeDialog:o,...a}=e,s=u(h,o);return t.ae.jsx(t.h.h2,{id:s.titleId,...a,ref:n})});N.displayName=h;var E="DialogDescription",P=i.forwardRef((e,n)=>{const{__scopeDialog:o,...a}=e,s=u(E,o);return t.ae.jsx(t.h.p,{id:s.descriptionId,...a,ref:n})});P.displayName=E;var M="DialogClose",A=i.forwardRef((e,n)=>{const{__scopeDialog:o,...a}=e,s=u(M,o);return t.ae.jsx(t.h.button,{type:"button",...a,ref:n,onClick:t.y$1(e.onClick,()=>s.onOpenChange(!1))})});A.displayName=M;function R(e){return e?"open":"closed"}var $="DialogTitleWarning",[Q,S]=t.b($,{contentName:d,titleName:h,docsSlug:"dialog"}),U=({titleId:e})=>{const n=S($),o=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},V="DialogDescriptionWarning",X=({contentRef:e,descriptionId:n})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${S(V).contentName}}.`;return i.useEffect(()=>{var a;const s=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");n&&s&&(document.getElementById(n)||console.warn(o))},[o,e,n]),null},Z=b,J=x,Y=C,ee=I,te=w,ne=N,oe=P,re=A;exports.Ce=J;exports.De=q;exports.Ee=ne;exports.Pe=oe;exports.Re=Y;exports._e=ee;exports.he=te;exports.ve=Q;exports.xe=Z;exports.ye=re;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react"),a=require("./index-BL59b1Bz-COeLljOH.cjs");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=c(s);var o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l="VisuallyHidden",i=d.forwardRef((e,t)=>a.ae.jsx(a.h.span,{...e,ref:t,style:{...o,...e.style}}));i.displayName=l;var u=i;exports.n=u;exports.s=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { a as i, h as t } from "./index-
|
|
2
|
+
import { a as i, h as t } from "./index-BL59b1Bz-C9bJE_xn.js";
|
|
3
3
|
var d = Object.freeze({
|
|
4
4
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
5
5
|
position: "absolute",
|