@theroutingcompany/components 0.0.39-alpha.0 → 0.0.39
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Z from "react";
|
|
2
|
-
import K, { useCallback as oe, forwardRef as V, Children as Qt, isValidElement as qr, createElement as S, cloneElement as nn, Fragment as Cr, useEffect as
|
|
2
|
+
import K, { useCallback as oe, forwardRef as V, Children as Qt, isValidElement as qr, createElement as S, cloneElement as nn, Fragment as Cr, useEffect as X, createContext as Zr, useMemo as re, useContext as Ve, useRef as z, useState as J, useLayoutEffect as Mh, useReducer as ID, PureComponent as OD, useId as MD } from "react";
|
|
3
3
|
import * as Nh from "react-dom";
|
|
4
4
|
import Br, { flushSync as Fh, createPortal as Hi } from "react-dom";
|
|
5
5
|
import C, { keyframes as Be, css as De } from "styled-components";
|
|
@@ -744,7 +744,7 @@ const tS = [
|
|
|
744
744
|
], he = tS.reduce((e, t) => {
|
|
745
745
|
const r = /* @__PURE__ */ V((n, o) => {
|
|
746
746
|
const { asChild: a, ...i } = n, s = a ? xr : t;
|
|
747
|
-
return
|
|
747
|
+
return X(() => {
|
|
748
748
|
window[Symbol.for("radix-ui")] = !0;
|
|
749
749
|
}, []), /* @__PURE__ */ S(s, I({}, i, {
|
|
750
750
|
ref: o
|
|
@@ -960,7 +960,7 @@ function ne(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
960
960
|
}
|
|
961
961
|
function We(e) {
|
|
962
962
|
const t = z(e);
|
|
963
|
-
return
|
|
963
|
+
return X(() => {
|
|
964
964
|
t.current = e;
|
|
965
965
|
}), re(
|
|
966
966
|
() => (...r) => {
|
|
@@ -993,8 +993,8 @@ function qe({ prop: e, defaultProp: t, onChange: r = () => {
|
|
|
993
993
|
];
|
|
994
994
|
}
|
|
995
995
|
function iS({ defaultProp: e, onChange: t }) {
|
|
996
|
-
const r =
|
|
997
|
-
return
|
|
996
|
+
const r = J(e), [n] = r, o = z(n), a = We(t);
|
|
997
|
+
return X(() => {
|
|
998
998
|
o.current !== n && (a(n), o.current = n);
|
|
999
999
|
}, [
|
|
1000
1000
|
n,
|
|
@@ -1020,7 +1020,7 @@ const He = (e) => {
|
|
|
1020
1020
|
};
|
|
1021
1021
|
He.displayName = "Presence";
|
|
1022
1022
|
function lS(e) {
|
|
1023
|
-
const [t, r] =
|
|
1023
|
+
const [t, r] = J(), n = z({}), o = z(e), a = z("none"), i = e ? "mounted" : "unmounted", [s, l] = sS(i, {
|
|
1024
1024
|
mounted: {
|
|
1025
1025
|
UNMOUNT: "unmounted",
|
|
1026
1026
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1033,7 +1033,7 @@ function lS(e) {
|
|
|
1033
1033
|
MOUNT: "mounted"
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
|
-
return
|
|
1036
|
+
return X(() => {
|
|
1037
1037
|
const c = ka(n.current);
|
|
1038
1038
|
a.current = s === "mounted" ? c : "none";
|
|
1039
1039
|
}, [
|
|
@@ -1142,8 +1142,8 @@ const jh = "Collapsible", [uS, Uh] = je(jh), [fS, Md] = uS(jh), pS = /* @__PURE_
|
|
|
1142
1142
|
}))
|
|
1143
1143
|
);
|
|
1144
1144
|
}), gS = /* @__PURE__ */ V((e, t) => {
|
|
1145
|
-
const { __scopeCollapsible: r, present: n, children: o, ...a } = e, i = Md(Wh, r), [s, l] =
|
|
1146
|
-
return
|
|
1145
|
+
const { __scopeCollapsible: r, present: n, children: o, ...a } = e, i = Md(Wh, r), [s, l] = J(n), c = z(null), d = _e(t, c), u = z(0), p = u.current, m = z(0), h = m.current, b = i.open || s, g = z(b), $ = z();
|
|
1146
|
+
return X(() => {
|
|
1147
1147
|
const v = requestAnimationFrame(
|
|
1148
1148
|
() => g.current = !1
|
|
1149
1149
|
);
|
|
@@ -2995,7 +2995,7 @@ sa.Content = NP;
|
|
|
2995
2995
|
const aB = sa;
|
|
2996
2996
|
function FP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
2997
2997
|
const r = We(e);
|
|
2998
|
-
|
|
2998
|
+
X(() => {
|
|
2999
2999
|
const n = (o) => {
|
|
3000
3000
|
o.key === "Escape" && r(o);
|
|
3001
3001
|
};
|
|
@@ -3013,7 +3013,7 @@ const ob = /* @__PURE__ */ Zr({
|
|
|
3013
3013
|
branches: /* @__PURE__ */ new Set()
|
|
3014
3014
|
}), ao = /* @__PURE__ */ V((e, t) => {
|
|
3015
3015
|
var r;
|
|
3016
|
-
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...c } = e, d = Ve(ob), [u, p] =
|
|
3016
|
+
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...c } = e, d = Ve(ob), [u, p] = J(null), m = (r = u == null ? void 0 : u.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, h] = J({}), b = _e(
|
|
3017
3017
|
t,
|
|
3018
3018
|
(_) => p(_)
|
|
3019
3019
|
), g = Array.from(d.layers), [$] = [
|
|
@@ -3035,7 +3035,7 @@ const ob = /* @__PURE__ */ Zr({
|
|
|
3035
3035
|
}, m);
|
|
3036
3036
|
return FP((_) => {
|
|
3037
3037
|
y === d.layers.size - 1 && (o == null || o(_), !_.defaultPrevented && l && (_.preventDefault(), l()));
|
|
3038
|
-
}, m),
|
|
3038
|
+
}, m), X(() => {
|
|
3039
3039
|
if (u)
|
|
3040
3040
|
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Uf = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), Wf(), () => {
|
|
3041
3041
|
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Uf);
|
|
@@ -3045,12 +3045,12 @@ const ob = /* @__PURE__ */ Zr({
|
|
|
3045
3045
|
m,
|
|
3046
3046
|
n,
|
|
3047
3047
|
d
|
|
3048
|
-
]),
|
|
3048
|
+
]), X(() => () => {
|
|
3049
3049
|
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Wf());
|
|
3050
3050
|
}, [
|
|
3051
3051
|
u,
|
|
3052
3052
|
d
|
|
3053
|
-
]),
|
|
3053
|
+
]), X(() => {
|
|
3054
3054
|
const _ = () => h({});
|
|
3055
3055
|
return document.addEventListener(yc, _), () => document.removeEventListener(yc, _);
|
|
3056
3056
|
}, []), /* @__PURE__ */ S(he.div, I({}, c, {
|
|
@@ -3065,7 +3065,7 @@ const ob = /* @__PURE__ */ Zr({
|
|
|
3065
3065
|
}));
|
|
3066
3066
|
}), KP = /* @__PURE__ */ V((e, t) => {
|
|
3067
3067
|
const r = Ve(ob), n = z(null), o = _e(t, n);
|
|
3068
|
-
return
|
|
3068
|
+
return X(() => {
|
|
3069
3069
|
const a = n.current;
|
|
3070
3070
|
if (a)
|
|
3071
3071
|
return r.branches.add(a), () => {
|
|
@@ -3080,7 +3080,7 @@ const ob = /* @__PURE__ */ Zr({
|
|
|
3080
3080
|
function VP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3081
3081
|
const r = We(e), n = z(!1), o = z(() => {
|
|
3082
3082
|
});
|
|
3083
|
-
return
|
|
3083
|
+
return X(() => {
|
|
3084
3084
|
const a = (s) => {
|
|
3085
3085
|
if (s.target && !n.current) {
|
|
3086
3086
|
let c = function() {
|
|
@@ -3112,7 +3112,7 @@ function VP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3112
3112
|
}
|
|
3113
3113
|
function BP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3114
3114
|
const r = We(e), n = z(!1);
|
|
3115
|
-
return
|
|
3115
|
+
return X(() => {
|
|
3116
3116
|
const o = (a) => {
|
|
3117
3117
|
a.target && !n.current && ab(zP, r, {
|
|
3118
3118
|
originalEvent: a
|
|
@@ -3147,7 +3147,7 @@ const jP = ao, UP = KP, rl = "focusScope.autoFocusOnMount", nl = "focusScope.aut
|
|
|
3147
3147
|
bubbles: !1,
|
|
3148
3148
|
cancelable: !0
|
|
3149
3149
|
}, rs = /* @__PURE__ */ V((e, t) => {
|
|
3150
|
-
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] =
|
|
3150
|
+
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] = J(null), c = We(o), d = We(a), u = z(null), p = _e(
|
|
3151
3151
|
t,
|
|
3152
3152
|
(b) => l(b)
|
|
3153
3153
|
), m = z({
|
|
@@ -3159,7 +3159,7 @@ const jP = ao, UP = KP, rl = "focusScope.autoFocusOnMount", nl = "focusScope.aut
|
|
|
3159
3159
|
this.paused = !1;
|
|
3160
3160
|
}
|
|
3161
3161
|
}).current;
|
|
3162
|
-
|
|
3162
|
+
X(() => {
|
|
3163
3163
|
if (n) {
|
|
3164
3164
|
let b = function(y) {
|
|
3165
3165
|
if (m.paused || !s)
|
|
@@ -3193,7 +3193,7 @@ const jP = ao, UP = KP, rl = "focusScope.autoFocusOnMount", nl = "focusScope.aut
|
|
|
3193
3193
|
n,
|
|
3194
3194
|
s,
|
|
3195
3195
|
m.paused
|
|
3196
|
-
]),
|
|
3196
|
+
]), X(() => {
|
|
3197
3197
|
if (s) {
|
|
3198
3198
|
Yf.add(m);
|
|
3199
3199
|
const b = document.activeElement;
|
|
@@ -3332,7 +3332,7 @@ const io = /* @__PURE__ */ V((e, t) => {
|
|
|
3332
3332
|
});
|
|
3333
3333
|
let ol = 0;
|
|
3334
3334
|
function ns() {
|
|
3335
|
-
|
|
3335
|
+
X(() => {
|
|
3336
3336
|
var e, t;
|
|
3337
3337
|
const r = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3338
3338
|
return document.body.insertAdjacentElement("afterbegin", (e = r[0]) !== null && e !== void 0 ? e : Zf()), document.body.insertAdjacentElement("beforeend", (t = r[1]) !== null && t !== void 0 ? t : Zf()), ol++, () => {
|
|
@@ -3376,7 +3376,7 @@ function e7(e, t) {
|
|
|
3376
3376
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3377
3377
|
}
|
|
3378
3378
|
function t7(e, t) {
|
|
3379
|
-
var r =
|
|
3379
|
+
var r = J(function() {
|
|
3380
3380
|
return {
|
|
3381
3381
|
// value
|
|
3382
3382
|
value: e,
|
|
@@ -3931,7 +3931,7 @@ const yb = "Dialog", [_b, xb] = je(yb), [C7, Et] = _b(yb), R7 = (e) => {
|
|
|
3931
3931
|
})));
|
|
3932
3932
|
}), z7 = /* @__PURE__ */ V((e, t) => {
|
|
3933
3933
|
const r = Et(qn, e.__scopeDialog), n = z(null), o = _e(t, r.contentRef, n);
|
|
3934
|
-
return
|
|
3934
|
+
return X(() => {
|
|
3935
3935
|
const a = n.current;
|
|
3936
3936
|
if (a)
|
|
3937
3937
|
return is(a);
|
|
@@ -4562,7 +4562,7 @@ var Lb = Hd({}, function(e) {
|
|
|
4562
4562
|
}, [R]), G = Z.useCallback(function() {
|
|
4563
4563
|
l.current = !1, q && q(s.current);
|
|
4564
4564
|
}, [q]);
|
|
4565
|
-
|
|
4565
|
+
X(function() {
|
|
4566
4566
|
u || (c.current = null);
|
|
4567
4567
|
}, []);
|
|
4568
4568
|
var L = Z.useCallback(function(se) {
|
|
@@ -6117,8 +6117,10 @@ const _k = vg, sn = C(Ie)`
|
|
|
6117
6117
|
Zn.displayName = "Title";
|
|
6118
6118
|
const $g = K.createContext({}), yg = K.forwardRef(
|
|
6119
6119
|
function(t, r) {
|
|
6120
|
-
const { children: n } = t;
|
|
6121
|
-
return
|
|
6120
|
+
const { children: n } = t, { setModalTitle: o } = K.useContext($g);
|
|
6121
|
+
return X(() => {
|
|
6122
|
+
o && typeof n == "string" && o(n);
|
|
6123
|
+
}, [n, o]), /* @__PURE__ */ x(Ie, { "data-id": "modal-header", bg: "white", mb: f.spacing_200, ref: r, children: /* @__PURE__ */ x(Ie, { display: "flex", alignItems: "center", children: /* @__PURE__ */ x(Ie, { flex: "1", children: /* @__PURE__ */ x(Zn, { as: "h2", looksLike: "h6", children: n }) }) }) });
|
|
6122
6124
|
}
|
|
6123
6125
|
);
|
|
6124
6126
|
yg.displayName = "Modal.Header";
|
|
@@ -6148,7 +6150,7 @@ const Ck = yg, lu = {
|
|
|
6148
6150
|
} = t;
|
|
6149
6151
|
let { maxWidth: u } = t;
|
|
6150
6152
|
u || (u = lu[d]);
|
|
6151
|
-
const [p, m] =
|
|
6153
|
+
const [p, m] = J(""), h = z(), b = z(), g = z();
|
|
6152
6154
|
function $(y) {
|
|
6153
6155
|
if (!i)
|
|
6154
6156
|
return;
|
|
@@ -6443,8 +6445,8 @@ function SB({ children: e, size: t = "large", variant: r = "positive", ...n }) {
|
|
|
6443
6445
|
);
|
|
6444
6446
|
}
|
|
6445
6447
|
function Tt(e, t, r) {
|
|
6446
|
-
let [n, o] =
|
|
6447
|
-
|
|
6448
|
+
let [n, o] = J(e || t), a = z(e !== void 0), i = e !== void 0;
|
|
6449
|
+
X(() => {
|
|
6448
6450
|
let c = a.current;
|
|
6449
6451
|
c !== i && console.warn(`WARN: A component changed from ${c ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}.`), a.current = i;
|
|
6450
6452
|
}, [
|
|
@@ -6510,7 +6512,7 @@ function Gk(e) {
|
|
|
6510
6512
|
return e || `react-aria${t.prefix}-${r}`;
|
|
6511
6513
|
}
|
|
6512
6514
|
function Yk(e) {
|
|
6513
|
-
let t = K.useId(), [r] =
|
|
6515
|
+
let t = K.useId(), [r] = J(ps()), n = r ? "react-aria" : `react-aria${cu.prefix}`;
|
|
6514
6516
|
return e || `${n}-${t}`;
|
|
6515
6517
|
}
|
|
6516
6518
|
const qk = typeof K.useId == "function" ? Yk : Gk;
|
|
@@ -6548,7 +6550,7 @@ function ms() {
|
|
|
6548
6550
|
const Oe = typeof window < "u" ? K.useLayoutEffect : () => {
|
|
6549
6551
|
};
|
|
6550
6552
|
function Qk(e) {
|
|
6551
|
-
let [t, r] =
|
|
6553
|
+
let [t, r] = J(e), n = z(t), o = z(null), a = oe(() => {
|
|
6552
6554
|
let s = o.current.next();
|
|
6553
6555
|
for (; !s.done && n.current === s.value; )
|
|
6554
6556
|
s = o.current.next();
|
|
@@ -6579,7 +6581,7 @@ function Qk(e) {
|
|
|
6579
6581
|
}
|
|
6580
6582
|
let hi = /* @__PURE__ */ new Map();
|
|
6581
6583
|
function ut(e) {
|
|
6582
|
-
let [t, r] =
|
|
6584
|
+
let [t, r] = J(e), n = z(null), o = qk(t), a = oe((i) => {
|
|
6583
6585
|
n.current = i;
|
|
6584
6586
|
}, []);
|
|
6585
6587
|
return hi.set(o, a), Oe(() => {
|
|
@@ -6589,7 +6591,7 @@ function ut(e) {
|
|
|
6589
6591
|
};
|
|
6590
6592
|
}, [
|
|
6591
6593
|
o
|
|
6592
|
-
]),
|
|
6594
|
+
]), X(() => {
|
|
6593
6595
|
let i = n.current;
|
|
6594
6596
|
i && (n.current = null, r(i));
|
|
6595
6597
|
}), o;
|
|
@@ -6742,7 +6744,7 @@ function uu() {
|
|
|
6742
6744
|
}, [
|
|
6743
6745
|
r
|
|
6744
6746
|
]);
|
|
6745
|
-
return
|
|
6747
|
+
return X(() => n, [
|
|
6746
6748
|
n
|
|
6747
6749
|
]), {
|
|
6748
6750
|
addGlobalListener: t,
|
|
@@ -6778,9 +6780,9 @@ function Ct(e) {
|
|
|
6778
6780
|
}
|
|
6779
6781
|
function yp(e, t) {
|
|
6780
6782
|
const r = z(!0), n = z(null);
|
|
6781
|
-
|
|
6783
|
+
X(() => (r.current = !0, () => {
|
|
6782
6784
|
r.current = !1;
|
|
6783
|
-
}), []),
|
|
6785
|
+
}), []), X(() => {
|
|
6784
6786
|
r.current ? r.current = !1 : (!n.current || t.some((o, a) => !Object.is(o, n[a]))) && e(), n.current = t;
|
|
6785
6787
|
}, t);
|
|
6786
6788
|
}
|
|
@@ -6789,7 +6791,7 @@ function sE() {
|
|
|
6789
6791
|
}
|
|
6790
6792
|
function lE(e) {
|
|
6791
6793
|
const { ref: t, onResize: r } = e;
|
|
6792
|
-
|
|
6794
|
+
X(() => {
|
|
6793
6795
|
let n = t == null ? void 0 : t.current;
|
|
6794
6796
|
if (n)
|
|
6795
6797
|
if (sE()) {
|
|
@@ -6831,7 +6833,7 @@ function bi(e) {
|
|
|
6831
6833
|
let cE = 0;
|
|
6832
6834
|
const vl = /* @__PURE__ */ new Map();
|
|
6833
6835
|
function hs(e) {
|
|
6834
|
-
let [t, r] =
|
|
6836
|
+
let [t, r] = J(void 0);
|
|
6835
6837
|
return Oe(() => {
|
|
6836
6838
|
if (!e)
|
|
6837
6839
|
return;
|
|
@@ -6902,7 +6904,7 @@ function Ue(e) {
|
|
|
6902
6904
|
}
|
|
6903
6905
|
function $r(e, t, r, n) {
|
|
6904
6906
|
let o = Ue(r), a = r == null;
|
|
6905
|
-
|
|
6907
|
+
X(() => {
|
|
6906
6908
|
if (a)
|
|
6907
6909
|
return;
|
|
6908
6910
|
let i = e.current;
|
|
@@ -7012,7 +7014,7 @@ function cn(e) {
|
|
|
7012
7014
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7013
7015
|
ref: u,
|
|
7014
7016
|
...p
|
|
7015
|
-
} = pE(e), [m, h] =
|
|
7017
|
+
} = pE(e), [m, h] = J(!1), b = z({
|
|
7016
7018
|
isPressed: !1,
|
|
7017
7019
|
ignoreEmulatedMouseEvents: !1,
|
|
7018
7020
|
ignoreClickAfterPress: !1,
|
|
@@ -7172,7 +7174,7 @@ function cn(e) {
|
|
|
7172
7174
|
v,
|
|
7173
7175
|
w
|
|
7174
7176
|
]);
|
|
7175
|
-
return
|
|
7177
|
+
return X(() => () => {
|
|
7176
7178
|
d || Na(b.current.target);
|
|
7177
7179
|
}, [
|
|
7178
7180
|
d
|
|
@@ -7381,8 +7383,8 @@ function Fg(e) {
|
|
|
7381
7383
|
}
|
|
7382
7384
|
function Lg() {
|
|
7383
7385
|
vi();
|
|
7384
|
-
let [e, t] =
|
|
7385
|
-
return
|
|
7386
|
+
let [e, t] = J(ir);
|
|
7387
|
+
return X(() => {
|
|
7386
7388
|
let r = () => {
|
|
7387
7389
|
t(ir);
|
|
7388
7390
|
};
|
|
@@ -7395,7 +7397,7 @@ function DE(e, t, r) {
|
|
|
7395
7397
|
return !(e && t === "keyboard" && r instanceof KeyboardEvent && !$E[r.key]);
|
|
7396
7398
|
}
|
|
7397
7399
|
function SE(e, t, r) {
|
|
7398
|
-
vi(),
|
|
7400
|
+
vi(), X(() => {
|
|
7399
7401
|
let n = (o, a) => {
|
|
7400
7402
|
DE(r == null ? void 0 : r.isTextInput, o, a) && e($i());
|
|
7401
7403
|
};
|
|
@@ -7448,13 +7450,13 @@ function PE() {
|
|
|
7448
7450
|
};
|
|
7449
7451
|
}
|
|
7450
7452
|
function TE(e) {
|
|
7451
|
-
let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: o } = e, [a, i] =
|
|
7453
|
+
let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: o } = e, [a, i] = J(!1), s = z({
|
|
7452
7454
|
isHovered: !1,
|
|
7453
7455
|
ignoreEmulatedMouseEvents: !1,
|
|
7454
7456
|
pointerType: "",
|
|
7455
7457
|
target: null
|
|
7456
7458
|
}).current;
|
|
7457
|
-
|
|
7459
|
+
X(PE, []);
|
|
7458
7460
|
let { hoverProps: l, triggerHoverEnd: c } = re(() => {
|
|
7459
7461
|
let d = (m, h) => {
|
|
7460
7462
|
if (s.pointerType = h, o || h === "touch" || s.isHovered || !m.currentTarget.contains(m.target))
|
|
@@ -7498,7 +7500,7 @@ function TE(e) {
|
|
|
7498
7500
|
o,
|
|
7499
7501
|
s
|
|
7500
7502
|
]);
|
|
7501
|
-
return
|
|
7503
|
+
return X(() => {
|
|
7502
7504
|
o && c({
|
|
7503
7505
|
currentTarget: s.target
|
|
7504
7506
|
}, s.pointerType);
|
|
@@ -7518,7 +7520,7 @@ function kE(e) {
|
|
|
7518
7520
|
}), s = Ue((l) => {
|
|
7519
7521
|
r && r(l);
|
|
7520
7522
|
});
|
|
7521
|
-
|
|
7523
|
+
X(() => {
|
|
7522
7524
|
let l = a.current;
|
|
7523
7525
|
if (!n)
|
|
7524
7526
|
if (typeof PointerEvent < "u") {
|
|
@@ -7653,7 +7655,7 @@ const Ep = {
|
|
|
7653
7655
|
whiteSpace: "nowrap"
|
|
7654
7656
|
};
|
|
7655
7657
|
function Kg(e = {}) {
|
|
7656
|
-
let { style: t, isFocusable: r } = e, [n, o] =
|
|
7658
|
+
let { style: t, isFocusable: r } = e, [n, o] = J(!1), { focusWithinProps: a } = lo({
|
|
7657
7659
|
isDisabled: !r,
|
|
7658
7660
|
onFocusWithinChange: (s) => o(s)
|
|
7659
7661
|
}), i = re(() => n ? t : t ? {
|
|
@@ -8718,7 +8720,7 @@ const y6 = (e, t, r) => {
|
|
|
8718
8720
|
}
|
|
8719
8721
|
};
|
|
8720
8722
|
};
|
|
8721
|
-
var ai = typeof document < "u" ? Mh :
|
|
8723
|
+
var ai = typeof document < "u" ? Mh : X;
|
|
8722
8724
|
function Pi(e, t) {
|
|
8723
8725
|
if (e === t)
|
|
8724
8726
|
return !0;
|
|
@@ -8874,7 +8876,7 @@ const w6 = /* @__PURE__ */ V((e, t) => {
|
|
|
8874
8876
|
}));
|
|
8875
8877
|
}), D6 = w6;
|
|
8876
8878
|
function _s(e) {
|
|
8877
|
-
const [t, r] =
|
|
8879
|
+
const [t, r] = J(void 0);
|
|
8878
8880
|
return _t(() => {
|
|
8879
8881
|
if (e) {
|
|
8880
8882
|
r({
|
|
@@ -8906,7 +8908,7 @@ function _s(e) {
|
|
|
8906
8908
|
]), t;
|
|
8907
8909
|
}
|
|
8908
8910
|
const a0 = "Popper", [i0, Ir] = je(a0), [S6, s0] = i0(a0), P6 = (e) => {
|
|
8909
|
-
const { __scopePopper: t, children: r } = e, [n, o] =
|
|
8911
|
+
const { __scopePopper: t, children: r } = e, [n, o] = J(null);
|
|
8910
8912
|
return /* @__PURE__ */ S(S6, {
|
|
8911
8913
|
scope: t,
|
|
8912
8914
|
anchor: n,
|
|
@@ -8914,17 +8916,17 @@ const a0 = "Popper", [i0, Ir] = je(a0), [S6, s0] = i0(a0), P6 = (e) => {
|
|
|
8914
8916
|
}, r);
|
|
8915
8917
|
}, T6 = "PopperAnchor", k6 = /* @__PURE__ */ V((e, t) => {
|
|
8916
8918
|
const { __scopePopper: r, virtualRef: n, ...o } = e, a = s0(T6, r), i = z(null), s = _e(t, i);
|
|
8917
|
-
return
|
|
8919
|
+
return X(() => {
|
|
8918
8920
|
a.onAnchorChange((n == null ? void 0 : n.current) || i.current);
|
|
8919
8921
|
}), n ? null : /* @__PURE__ */ S(he.div, I({}, o, {
|
|
8920
8922
|
ref: s
|
|
8921
8923
|
}));
|
|
8922
8924
|
}), l0 = "PopperContent", [E6, C6] = i0(l0), R6 = /* @__PURE__ */ V((e, t) => {
|
|
8923
8925
|
var r, n, o, a, i, s, l, c;
|
|
8924
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: m = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: g = [], collisionPadding: $ = 0, sticky: v = "partial", hideWhenDetached: y = !1, avoidCollisions: w = !0, onPlaced: P, ...M } = e, k = s0(l0, d), [_, E] =
|
|
8926
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: m = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: g = [], collisionPadding: $ = 0, sticky: v = "partial", hideWhenDetached: y = !1, avoidCollisions: w = !0, onPlaced: P, ...M } = e, k = s0(l0, d), [_, E] = J(null), F = _e(
|
|
8925
8927
|
t,
|
|
8926
8928
|
(ye) => E(ye)
|
|
8927
|
-
), [D, j] =
|
|
8929
|
+
), [D, j] = J(null), O = _s(D), R = (r = O == null ? void 0 : O.width) !== null && r !== void 0 ? r : 0, q = (n = O == null ? void 0 : O.height) !== null && n !== void 0 ? n : 0, N = u + (m !== "center" ? "-" + m : ""), B = typeof $ == "number" ? $ : {
|
|
8928
8930
|
top: 0,
|
|
8929
8931
|
right: 0,
|
|
8930
8932
|
bottom: 0,
|
|
@@ -8985,7 +8987,7 @@ const a0 = "Popper", [i0, Ir] = je(a0), [S6, s0] = i0(a0), P6 = (e) => {
|
|
|
8985
8987
|
Y,
|
|
8986
8988
|
se
|
|
8987
8989
|
]);
|
|
8988
|
-
const de = (o = fe.arrow) === null || o === void 0 ? void 0 : o.x, le = (a = fe.arrow) === null || a === void 0 ? void 0 : a.y, me = ((i = fe.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [ae, be] =
|
|
8990
|
+
const de = (o = fe.arrow) === null || o === void 0 ? void 0 : o.x, le = (a = fe.arrow) === null || a === void 0 ? void 0 : a.y, me = ((i = fe.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [ae, be] = J();
|
|
8989
8991
|
return _t(() => {
|
|
8990
8992
|
_ && be(window.getComputedStyle(_).zIndex);
|
|
8991
8993
|
}, [
|
|
@@ -9100,7 +9102,7 @@ function c0(e) {
|
|
|
9100
9102
|
const da = P6, xs = k6, ws = R6, yu = O6, d0 = "Popover", [u0, PB] = je(d0, [
|
|
9101
9103
|
Ir
|
|
9102
9104
|
]), Ds = Ir(), [F6, un] = u0(d0), f0 = (e) => {
|
|
9103
|
-
const { __scopePopover: t, children: r, open: n, defaultOpen: o, onOpenChange: a, modal: i = !1 } = e, s = Ds(t), l = z(null), [c, d] =
|
|
9105
|
+
const { __scopePopover: t, children: r, open: n, defaultOpen: o, onOpenChange: a, modal: i = !1 } = e, s = Ds(t), l = z(null), [c, d] = J(!1), [u = !1, p] = qe({
|
|
9104
9106
|
prop: n,
|
|
9105
9107
|
defaultProp: o,
|
|
9106
9108
|
onChange: a
|
|
@@ -9168,7 +9170,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, d0 = "Popover", [u0, PB] = je(d0, [
|
|
|
9168
9170
|
})));
|
|
9169
9171
|
}), B6 = /* @__PURE__ */ V((e, t) => {
|
|
9170
9172
|
const r = un(Yo, e.__scopePopover), n = z(null), o = _e(t, n), a = z(!1);
|
|
9171
|
-
return
|
|
9173
|
+
return X(() => {
|
|
9172
9174
|
const i = n.current;
|
|
9173
9175
|
if (i)
|
|
9174
9176
|
return is(i);
|
|
@@ -9326,7 +9328,7 @@ function e4(e) {
|
|
|
9326
9328
|
s.current = m;
|
|
9327
9329
|
}, [
|
|
9328
9330
|
t
|
|
9329
|
-
]), s4(s, n, r), o4(s, r), c4(s, n, r), i4(s, o),
|
|
9331
|
+
]), s4(s, n, r), o4(s, r), c4(s, n, r), i4(s, o), X(() => {
|
|
9330
9332
|
if (s) {
|
|
9331
9333
|
let p = document.activeElement, m = null;
|
|
9332
9334
|
if (Ye(p, s.current)) {
|
|
@@ -9520,7 +9522,7 @@ function Ei(e, t = !0) {
|
|
|
9520
9522
|
}
|
|
9521
9523
|
function i4(e, t) {
|
|
9522
9524
|
const r = K.useRef(t);
|
|
9523
|
-
|
|
9525
|
+
X(() => {
|
|
9524
9526
|
r.current && (Ce = e, Ye(document.activeElement, Ce.current) || Ei(e.current)), r.current = !1;
|
|
9525
9527
|
}, [
|
|
9526
9528
|
e
|
|
@@ -9751,7 +9753,7 @@ function fn(e = {}) {
|
|
|
9751
9753
|
let { autoFocus: t = !1, isTextInput: r, within: n } = e, o = z({
|
|
9752
9754
|
isFocused: !1,
|
|
9753
9755
|
isFocusVisible: t || $i()
|
|
9754
|
-
}), [a, i] =
|
|
9756
|
+
}), [a, i] = J(!1), [s, l] = J(() => o.current.isFocused && o.current.isFocusVisible), c = oe(() => l(o.current.isFocused && o.current.isFocusVisible), []), d = oe((m) => {
|
|
9755
9757
|
o.current.isFocused = m, i(m), c();
|
|
9756
9758
|
}, [
|
|
9757
9759
|
c
|
|
@@ -9793,7 +9795,7 @@ function f4(e) {
|
|
|
9793
9795
|
}
|
|
9794
9796
|
function wu(e, t) {
|
|
9795
9797
|
let { focusProps: r } = mu(e), { keyboardProps: n } = EE(e), o = $e(r, n), a = f4(t), i = e.isDisabled ? {} : a, s = z(e.autoFocus);
|
|
9796
|
-
return
|
|
9798
|
+
return X(() => {
|
|
9797
9799
|
s.current && t.current && qo(t.current), s.current = !1;
|
|
9798
9800
|
}, [
|
|
9799
9801
|
t
|
|
@@ -11738,8 +11740,8 @@ function um() {
|
|
|
11738
11740
|
e(Yc);
|
|
11739
11741
|
}
|
|
11740
11742
|
function PC() {
|
|
11741
|
-
let e = ps(), [t, r] =
|
|
11742
|
-
return
|
|
11743
|
+
let e = ps(), [t, r] = J(Yc);
|
|
11744
|
+
return X(() => (Co.size === 0 && window.addEventListener("languagechange", um), Co.add(r), () => {
|
|
11743
11745
|
Co.delete(r), Co.size === 0 && window.removeEventListener("languagechange", um);
|
|
11744
11746
|
}), []), e ? {
|
|
11745
11747
|
locale: "en-US",
|
|
@@ -13328,9 +13330,9 @@ function v$(e, t) {
|
|
|
13328
13330
|
errorMessageId: s,
|
|
13329
13331
|
selectedDateDescription: i
|
|
13330
13332
|
});
|
|
13331
|
-
let [l, c] =
|
|
13333
|
+
let [l, c] = J(!1), d = e.isDisabled || t.isNextVisibleRangeInvalid();
|
|
13332
13334
|
d && l && (c(!1), t.setFocused(!0));
|
|
13333
|
-
let [u, p] =
|
|
13335
|
+
let [u, p] = J(!1), m = e.isDisabled || t.isPreviousVisibleRangeInvalid();
|
|
13334
13336
|
m && u && (p(!1), t.setFocused(!0));
|
|
13335
13337
|
let h = Xr({
|
|
13336
13338
|
id: e.id,
|
|
@@ -13551,7 +13553,7 @@ function f8(e, t, r) {
|
|
|
13551
13553
|
D.pointerType === "virtual" && (t.selectDate(n), t.setFocusedDate(n));
|
|
13552
13554
|
}
|
|
13553
13555
|
}), _ = null;
|
|
13554
|
-
o || (_ = Le(n, t.focusedDate) ? 0 : -1),
|
|
13556
|
+
o || (_ = Le(n, t.focusedDate) ? 0 : -1), X(() => {
|
|
13555
13557
|
d && r.current && (qt(r.current), yi() !== "pointer" && document.activeElement === r.current && gi(r.current, {
|
|
13556
13558
|
containingElement: Xn(r.current)
|
|
13557
13559
|
}));
|
|
@@ -14084,7 +14086,7 @@ function _$(e) {
|
|
|
14084
14086
|
u,
|
|
14085
14087
|
i,
|
|
14086
14088
|
s
|
|
14087
|
-
]), [v, y] = Tt(g, $, e.onFocusChange), [w, P] =
|
|
14089
|
+
]), [v, y] = Tt(g, $, e.onFocusChange), [w, P] = J(() => {
|
|
14088
14090
|
switch (l) {
|
|
14089
14091
|
case "start":
|
|
14090
14092
|
return Wr(v, a, n, i, s);
|
|
@@ -14094,7 +14096,7 @@ function _$(e) {
|
|
|
14094
14096
|
default:
|
|
14095
14097
|
return ed(v, a, n, i, s);
|
|
14096
14098
|
}
|
|
14097
|
-
}), [M, k] =
|
|
14099
|
+
}), [M, k] = J(e.autoFocus || !1), _ = re(() => {
|
|
14098
14100
|
let N = {
|
|
14099
14101
|
...a
|
|
14100
14102
|
};
|
|
@@ -14102,7 +14104,7 @@ function _$(e) {
|
|
|
14102
14104
|
}, [
|
|
14103
14105
|
w,
|
|
14104
14106
|
a
|
|
14105
|
-
]), [E, F] =
|
|
14107
|
+
]), [E, F] = J(u.identifier);
|
|
14106
14108
|
if (u.identifier !== E) {
|
|
14107
14109
|
let N = Ae(v, u);
|
|
14108
14110
|
P(ed(N, a, n, i, s)), y(N), F(u.identifier);
|
|
@@ -14269,14 +14271,14 @@ function Il(e) {
|
|
|
14269
14271
|
function P8(e) {
|
|
14270
14272
|
let { value: t, defaultValue: r, onChange: n, createCalendar: o, locale: a, visibleDuration: i = {
|
|
14271
14273
|
months: 1
|
|
14272
|
-
}, minValue: s, maxValue: l, ...c } = e, [d, u] = Tt(t, r || null, n), [p, m] =
|
|
14274
|
+
}, minValue: s, maxValue: l, ...c } = e, [d, u] = Tt(t, r || null, n), [p, m] = J(null), h = "center";
|
|
14273
14275
|
if (d && d.start && d.end) {
|
|
14274
14276
|
let B = ed(yt(d.start), i, a, s, l).add(i).subtract({
|
|
14275
14277
|
days: 1
|
|
14276
14278
|
});
|
|
14277
14279
|
d.end.compare(B) > 0 && (h = "start");
|
|
14278
14280
|
}
|
|
14279
|
-
let b = z(null), [g, $] =
|
|
14281
|
+
let b = z(null), [g, $] = J(null), v = re(() => Tu(s, g == null ? void 0 : g.start), [
|
|
14280
14282
|
s,
|
|
14281
14283
|
g
|
|
14282
14284
|
]), y = re(() => Pu(l, g == null ? void 0 : g.end), [
|
|
@@ -14296,7 +14298,7 @@ function P8(e) {
|
|
|
14296
14298
|
start: gm(N, w, -1),
|
|
14297
14299
|
end: gm(N, w, 1)
|
|
14298
14300
|
}, $(b.current)) : (b.current = null, $(null));
|
|
14299
|
-
}, [M, k] =
|
|
14301
|
+
}, [M, k] = J(w.visibleRange);
|
|
14300
14302
|
(!zc(w.visibleRange.start, M.start) || !zc(w.visibleRange.end, M.end)) && (P(p), k(w.visibleRange));
|
|
14301
14303
|
let _ = (N) => {
|
|
14302
14304
|
N ? (m(N), P(N)) : (m(null), P(null));
|
|
@@ -14311,7 +14313,7 @@ function P8(e) {
|
|
|
14311
14313
|
end: bm(B.end, d == null ? void 0 : d.end)
|
|
14312
14314
|
}), _(null);
|
|
14313
14315
|
}
|
|
14314
|
-
}, [D, j] =
|
|
14316
|
+
}, [D, j] = J(!1), { isDateUnavailable: O } = e, R = re(() => !d || p ? !1 : O && (O(d.start) || O(d.end)) ? !0 : Gn(d.start, s, l) || Gn(d.end, s, l), [
|
|
14315
14317
|
O,
|
|
14316
14318
|
d,
|
|
14317
14319
|
p,
|
|
@@ -14642,7 +14644,7 @@ const O8 = [
|
|
|
14642
14644
|
N8,
|
|
14643
14645
|
Ir
|
|
14644
14646
|
]), Ku = Ir(), [F8, po] = fo(Is), [L8, z8] = fo(Is), K8 = (e) => {
|
|
14645
|
-
const { __scopeSelect: t, children: r, open: n, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: c, name: d, autoComplete: u, disabled: p, required: m } = e, h = Ku(t), [b, g] =
|
|
14647
|
+
const { __scopeSelect: t, children: r, open: n, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: c, name: d, autoComplete: u, disabled: p, required: m } = e, h = Ku(t), [b, g] = J(null), [$, v] = J(null), [y, w] = J(!1), P = oo(c), [M = !1, k] = qe({
|
|
14646
14648
|
prop: n,
|
|
14647
14649
|
defaultProp: o,
|
|
14648
14650
|
onChange: a
|
|
@@ -14650,7 +14652,7 @@ const O8 = [
|
|
|
14650
14652
|
prop: i,
|
|
14651
14653
|
defaultProp: s,
|
|
14652
14654
|
onChange: l
|
|
14653
|
-
}), F = z(null), D = b ? !!b.closest("form") : !0, [j, O] =
|
|
14655
|
+
}), F = z(null), D = b ? !!b.closest("form") : !0, [j, O] = J(/* @__PURE__ */ new Set()), R = Array.from(j).map(
|
|
14654
14656
|
(q) => q.props.value
|
|
14655
14657
|
).join(";");
|
|
14656
14658
|
return /* @__PURE__ */ S(da, h, /* @__PURE__ */ S(F8, {
|
|
@@ -14743,7 +14745,7 @@ const O8 = [
|
|
|
14743
14745
|
}), j8 = (e) => /* @__PURE__ */ S(io, I({
|
|
14744
14746
|
asChild: !0
|
|
14745
14747
|
}, e)), to = "SelectContent", U8 = /* @__PURE__ */ V((e, t) => {
|
|
14746
|
-
const r = po(to, e.__scopeSelect), [n, o] =
|
|
14748
|
+
const r = po(to, e.__scopeSelect), [n, o] = J();
|
|
14747
14749
|
if (_t(() => {
|
|
14748
14750
|
o(new DocumentFragment());
|
|
14749
14751
|
}, []), !r.open) {
|
|
@@ -14776,11 +14778,11 @@ const O8 = [
|
|
|
14776
14778
|
avoidCollisions: g,
|
|
14777
14779
|
//
|
|
14778
14780
|
...$
|
|
14779
|
-
} = e, v = po(to, r), [y, w] =
|
|
14781
|
+
} = e, v = po(to, r), [y, w] = J(null), [P, M] = J(null), k = _e(
|
|
14780
14782
|
t,
|
|
14781
14783
|
(Q) => w(Q)
|
|
14782
|
-
), [_, E] =
|
|
14783
|
-
|
|
14784
|
+
), [_, E] = J(null), [F, D] = J(null), j = zu(r), [O, R] = J(!1), q = z(!1);
|
|
14785
|
+
X(() => {
|
|
14784
14786
|
if (y)
|
|
14785
14787
|
return is(y);
|
|
14786
14788
|
}, [
|
|
@@ -14809,14 +14811,14 @@ const O8 = [
|
|
|
14809
14811
|
y
|
|
14810
14812
|
]
|
|
14811
14813
|
);
|
|
14812
|
-
|
|
14814
|
+
X(() => {
|
|
14813
14815
|
O && B();
|
|
14814
14816
|
}, [
|
|
14815
14817
|
O,
|
|
14816
14818
|
B
|
|
14817
14819
|
]);
|
|
14818
14820
|
const { onOpenChange: U, triggerPointerDownPosRef: G } = v;
|
|
14819
|
-
|
|
14821
|
+
X(() => {
|
|
14820
14822
|
if (y) {
|
|
14821
14823
|
let Q = {
|
|
14822
14824
|
x: 0,
|
|
@@ -14844,7 +14846,7 @@ const O8 = [
|
|
|
14844
14846
|
y,
|
|
14845
14847
|
U,
|
|
14846
14848
|
G
|
|
14847
|
-
]),
|
|
14849
|
+
]), X(() => {
|
|
14848
14850
|
const Q = () => U(!1);
|
|
14849
14851
|
return window.addEventListener("blur", Q), window.addEventListener("resize", Q), () => {
|
|
14850
14852
|
window.removeEventListener("blur", Q), window.removeEventListener("resize", Q);
|
|
@@ -14971,7 +14973,7 @@ const O8 = [
|
|
|
14971
14973
|
})
|
|
14972
14974
|
}))))));
|
|
14973
14975
|
}), H8 = /* @__PURE__ */ V((e, t) => {
|
|
14974
|
-
const { __scopeSelect: r, onPlaced: n, ...o } = e, a = po(to, r), i = Ms(to, r), [s, l] =
|
|
14976
|
+
const { __scopeSelect: r, onPlaced: n, ...o } = e, a = po(to, r), i = Ms(to, r), [s, l] = J(null), [c, d] = J(null), u = _e(
|
|
14975
14977
|
t,
|
|
14976
14978
|
(k) => d(k)
|
|
14977
14979
|
), p = zu(r), m = z(!1), h = z(!0), { viewport: b, selectedItem: g, selectedItemText: $, focusSelectedItem: v } = i, y = oe(() => {
|
|
@@ -15024,7 +15026,7 @@ const O8 = [
|
|
|
15024
15026
|
y
|
|
15025
15027
|
]
|
|
15026
15028
|
);
|
|
15027
|
-
const [w, P] =
|
|
15029
|
+
const [w, P] = J();
|
|
15028
15030
|
_t(() => {
|
|
15029
15031
|
c && P(window.getComputedStyle(c).zIndex);
|
|
15030
15032
|
}, [
|
|
@@ -15117,7 +15119,7 @@ const O8 = [
|
|
|
15117
15119
|
}), Z8 = "SelectGroup";
|
|
15118
15120
|
fo(Z8);
|
|
15119
15121
|
const nd = "SelectItem", [X8, D$] = fo(nd), J8 = /* @__PURE__ */ V((e, t) => {
|
|
15120
|
-
const { __scopeSelect: r, value: n, disabled: o = !1, textValue: a, ...i } = e, s = po(nd, r), l = Ms(nd, r), c = s.value === n, [d, u] =
|
|
15122
|
+
const { __scopeSelect: r, value: n, disabled: o = !1, textValue: a, ...i } = e, s = po(nd, r), l = Ms(nd, r), c = s.value === n, [d, u] = J(a ?? ""), [p, m] = J(!1), h = _e(t, ($) => {
|
|
15121
15123
|
var v;
|
|
15122
15124
|
return (v = l.itemRefCallback) === null || v === void 0 ? void 0 : v.call(l, $, n, o);
|
|
15123
15125
|
}), b = Qe(), g = () => {
|
|
@@ -15181,7 +15183,7 @@ const nd = "SelectItem", [X8, D$] = fo(nd), J8 = /* @__PURE__ */ V((e, t) => {
|
|
|
15181
15183
|
})
|
|
15182
15184
|
}))));
|
|
15183
15185
|
}), ja = "SelectItemText", Q8 = /* @__PURE__ */ V((e, t) => {
|
|
15184
|
-
const { __scopeSelect: r, className: n, style: o, ...a } = e, i = po(ja, r), s = Ms(ja, r), l = D$(ja, r), c = z8(ja, r), [d, u] =
|
|
15186
|
+
const { __scopeSelect: r, className: n, style: o, ...a } = e, i = po(ja, r), s = Ms(ja, r), l = D$(ja, r), c = z8(ja, r), [d, u] = J(null), p = _e(
|
|
15185
15187
|
t,
|
|
15186
15188
|
($) => u($),
|
|
15187
15189
|
l.onItemTextChange,
|
|
@@ -15219,7 +15221,7 @@ const nd = "SelectItem", [X8, D$] = fo(nd), J8 = /* @__PURE__ */ V((e, t) => {
|
|
|
15219
15221
|
})) : null;
|
|
15220
15222
|
}), S$ = /* @__PURE__ */ V((e, t) => {
|
|
15221
15223
|
const { value: r, ...n } = e, o = z(null), a = _e(t, o), i = As(r);
|
|
15222
|
-
return
|
|
15224
|
+
return X(() => {
|
|
15223
15225
|
const s = o.current, l = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
15224
15226
|
if (i !== r && d) {
|
|
15225
15227
|
const u = new Event("change", {
|
|
@@ -15252,7 +15254,7 @@ function P$(e) {
|
|
|
15252
15254
|
]), a = oe(() => {
|
|
15253
15255
|
r.current = "", window.clearTimeout(n.current);
|
|
15254
15256
|
}, []);
|
|
15255
|
-
return
|
|
15257
|
+
return X(() => () => window.clearTimeout(n.current), []), [
|
|
15256
15258
|
r,
|
|
15257
15259
|
o,
|
|
15258
15260
|
a
|
|
@@ -15502,7 +15504,7 @@ function dy(e) {
|
|
|
15502
15504
|
const t = z();
|
|
15503
15505
|
let { value: r, textValue: n, minValue: o, maxValue: a, isDisabled: i, isReadOnly: s, isRequired: l, onIncrement: c, onIncrementPage: d, onDecrement: u, onDecrementPage: p, onDecrementToMin: m, onIncrementToMax: h } = e;
|
|
15504
15506
|
const b = pt(/* @__PURE__ */ u9(E$)), g = () => clearTimeout(t.current);
|
|
15505
|
-
|
|
15507
|
+
X(() => () => g(), []);
|
|
15506
15508
|
let $ = (F) => {
|
|
15507
15509
|
if (!(F.ctrlKey || F.metaKey || F.shiftKey || F.altKey || s))
|
|
15508
15510
|
switch (F.key) {
|
|
@@ -15536,7 +15538,7 @@ function dy(e) {
|
|
|
15536
15538
|
}, w = () => {
|
|
15537
15539
|
v.current = !1;
|
|
15538
15540
|
};
|
|
15539
|
-
n = n === "" ? b.format("Empty") : (n || `${r}`).replace("-", "−"),
|
|
15541
|
+
n = n === "" ? b.format("Empty") : (n || `${r}`).replace("-", "−"), X(() => {
|
|
15540
15542
|
v.current && (i8("assertive"), Hn(n, "assertive"));
|
|
15541
15543
|
}, [
|
|
15542
15544
|
n
|
|
@@ -16359,7 +16361,7 @@ function m9(e, t, r) {
|
|
|
16359
16361
|
role: "group",
|
|
16360
16362
|
"aria-disabled": e.isDisabled || void 0,
|
|
16361
16363
|
"aria-describedby": m
|
|
16362
|
-
}),
|
|
16364
|
+
}), X(() => {
|
|
16363
16365
|
$.current && b.focusFirst(), $.current = !1;
|
|
16364
16366
|
}, [
|
|
16365
16367
|
b
|
|
@@ -16731,7 +16733,7 @@ function D9(e, t) {
|
|
|
16731
16733
|
let r = e && "timeZone" in e ? e.timeZone : void 0, n = e && "minute" in e ? "minute" : "day";
|
|
16732
16734
|
if (e && t && !(t in e))
|
|
16733
16735
|
throw new Error("Invalid granularity " + t + " for value " + e.toString());
|
|
16734
|
-
let [o, a] =
|
|
16736
|
+
let [o, a] = J([
|
|
16735
16737
|
n,
|
|
16736
16738
|
r
|
|
16737
16739
|
]);
|
|
@@ -17156,7 +17158,7 @@ function k9(e) {
|
|
|
17156
17158
|
]), [m, h] = Tt(e.value, e.defaultValue, e.onChange), b = re(() => Gy(m, p), [
|
|
17157
17159
|
m,
|
|
17158
17160
|
p
|
|
17159
|
-
]), [g, $] =
|
|
17161
|
+
]), [g, $] = J(() => Ua(e.placeholderValue, l, p, c)), v = b || g, y = p.identifier === "gregory" && v.era === "BC";
|
|
17160
17162
|
var w;
|
|
17161
17163
|
let P = re(() => ({
|
|
17162
17164
|
granularity: l,
|
|
@@ -17183,10 +17185,10 @@ function k9(e) {
|
|
|
17183
17185
|
k
|
|
17184
17186
|
]), E = re(() => k.formatToParts(/* @__PURE__ */ new Date()).filter((A) => Wa[A.type]).reduce((A, ee) => (A[ee.type] = !0, A), {}), [
|
|
17185
17187
|
k
|
|
17186
|
-
]), [F, D] =
|
|
17188
|
+
]), [F, D] = J(() => e.value || e.defaultValue ? {
|
|
17187
17189
|
...E
|
|
17188
17190
|
} : {}), j = z(p.identifier);
|
|
17189
|
-
|
|
17191
|
+
X(() => {
|
|
17190
17192
|
p.identifier !== j.current && (j.current = p.identifier, $((A) => Object.keys(F).length > 0 ? Ae(A, p) : Ua(e.placeholderValue, l, p, c)));
|
|
17191
17193
|
}, [
|
|
17192
17194
|
p,
|
|
@@ -17813,14 +17815,14 @@ function uR(e) {
|
|
|
17813
17815
|
return `${e.month}-${e.day}-${e.year}`;
|
|
17814
17816
|
}
|
|
17815
17817
|
const fR = K.forwardRef(({ dateString: e, timeZone: t, onChange: r, ...n }, o) => {
|
|
17816
|
-
const a = new Date(e), [i, s] =
|
|
17818
|
+
const a = new Date(e), [i, s] = J(!1), l = dR(a, t), c = cR(a, t), [d, u] = J(l), [p, m] = J(
|
|
17817
17819
|
new Me(
|
|
17818
17820
|
c.year ?? 0,
|
|
17819
17821
|
c.month ?? 0,
|
|
17820
17822
|
c.day ?? 0
|
|
17821
17823
|
)
|
|
17822
17824
|
), { day: h, month: b, year: g } = p, { hour: $, minute: v, second: y, millisecond: w } = d;
|
|
17823
|
-
|
|
17825
|
+
X(() => {
|
|
17824
17826
|
r && r({
|
|
17825
17827
|
day: h,
|
|
17826
17828
|
month: b,
|
|
@@ -17878,7 +17880,7 @@ const pR = K.forwardRef(({ children: e, ...t }, r) => /* @__PURE__ */ ie(l9, { .
|
|
|
17878
17880
|
] }));
|
|
17879
17881
|
pR.displayName = "TimeDateSelectItem";
|
|
17880
17882
|
const Qy = "Checkbox", [mR, AB] = je(Qy), [hR, bR] = mR(Qy), gR = /* @__PURE__ */ V((e, t) => {
|
|
17881
|
-
const { __scopeCheckbox: r, name: n, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...d } = e, [u, p] =
|
|
17883
|
+
const { __scopeCheckbox: r, name: n, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...d } = e, [u, p] = J(null), m = _e(
|
|
17882
17884
|
t,
|
|
17883
17885
|
(y) => p(y)
|
|
17884
17886
|
), h = z(!1), b = u ? !!u.closest("form") : !0, [g = !1, $] = qe({
|
|
@@ -17886,7 +17888,7 @@ const Qy = "Checkbox", [mR, AB] = je(Qy), [hR, bR] = mR(Qy), gR = /* @__PURE__ *
|
|
|
17886
17888
|
defaultProp: a,
|
|
17887
17889
|
onChange: c
|
|
17888
17890
|
}), v = z(g);
|
|
17889
|
-
return
|
|
17891
|
+
return X(() => {
|
|
17890
17892
|
const y = u == null ? void 0 : u.form;
|
|
17891
17893
|
if (y) {
|
|
17892
17894
|
const w = () => $(v.current);
|
|
@@ -17946,7 +17948,7 @@ const Qy = "Checkbox", [mR, AB] = je(Qy), [hR, bR] = mR(Qy), gR = /* @__PURE__ *
|
|
|
17946
17948
|
})));
|
|
17947
17949
|
}), yR = (e) => {
|
|
17948
17950
|
const { control: t, checked: r, bubbles: n = !0, ...o } = e, a = z(null), i = As(r), s = _s(t);
|
|
17949
|
-
return
|
|
17951
|
+
return X(() => {
|
|
17950
17952
|
const l = a.current, c = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(c, "checked").set;
|
|
17951
17953
|
if (i !== r && u) {
|
|
17952
17954
|
const p = new Event("click", {
|
|
@@ -18165,7 +18167,7 @@ function DR(e, t, r) {
|
|
|
18165
18167
|
}
|
|
18166
18168
|
(p == null || !t.validate(p)) && d.preventDefault();
|
|
18167
18169
|
});
|
|
18168
|
-
|
|
18170
|
+
X(() => {
|
|
18169
18171
|
if (!Dm())
|
|
18170
18172
|
return;
|
|
18171
18173
|
let d = r.current;
|
|
@@ -18474,7 +18476,7 @@ function PR(e, t, r) {
|
|
|
18474
18476
|
onDecrementToMin: F,
|
|
18475
18477
|
value: D,
|
|
18476
18478
|
textValue: L
|
|
18477
|
-
}), [Y, fe] =
|
|
18479
|
+
}), [Y, fe] = J(!1), { focusWithinProps: pe } = lo({
|
|
18478
18480
|
isDisabled: i,
|
|
18479
18481
|
onFocusWithinChange: fe
|
|
18480
18482
|
}), Q = oe((ct) => {
|
|
@@ -18572,7 +18574,7 @@ function PR(e, t, r) {
|
|
|
18572
18574
|
};
|
|
18573
18575
|
}
|
|
18574
18576
|
function TR(e) {
|
|
18575
|
-
let { minValue: t, maxValue: r, step: n, formatOptions: o, value: a, defaultValue: i, onChange: s, locale: l, isDisabled: c, isReadOnly: d } = e, [u, p] = Tt(a, isNaN(i) ? NaN : i, s), [m, h] =
|
|
18577
|
+
let { minValue: t, maxValue: r, step: n, formatOptions: o, value: a, defaultValue: i, onChange: s, locale: l, isDisabled: c, isReadOnly: d } = e, [u, p] = Tt(a, isNaN(i) ? NaN : i, s), [m, h] = J(() => isNaN(u) ? "" : new Gc(l, o).format(u)), b = re(() => new q0(l, o), [
|
|
18576
18578
|
l,
|
|
18577
18579
|
o
|
|
18578
18580
|
]), g = re(() => b.getNumberingSystem(m), [
|
|
@@ -18591,7 +18593,7 @@ function TR(e) {
|
|
|
18591
18593
|
$
|
|
18592
18594
|
]), w = isNaN(n) ? 1 : n;
|
|
18593
18595
|
v.style === "percent" && isNaN(n) && (w = 0.01);
|
|
18594
|
-
let [P, M] =
|
|
18596
|
+
let [P, M] = J(u), [k, _] = J(l), [E, F] = J(o);
|
|
18595
18597
|
(!Object.is(u, P) || l !== k || o !== E) && (h(y(u)), M(u), _(l), F(o));
|
|
18596
18598
|
let D = re(() => b.parse(m), [
|
|
18597
18599
|
b,
|
|
@@ -18986,7 +18988,7 @@ const Bu = K_, V_ = V(
|
|
|
18986
18988
|
v
|
|
18987
18989
|
);
|
|
18988
18990
|
let E = null;
|
|
18989
|
-
return typeof m == "string" ? E = /* @__PURE__ */ x(tt, { ...P, mb: f.spacing_100, children: m }) : qr(m) && (E = nn(m, { ...P, mb: f.spacing_100 })),
|
|
18991
|
+
return typeof m == "string" ? E = /* @__PURE__ */ x(tt, { ...P, mb: f.spacing_100, children: m }) : qr(m) && (E = nn(m, { ...P, mb: f.spacing_100 })), X(() => {
|
|
18990
18992
|
r && v.current.focus();
|
|
18991
18993
|
}, [r, v]), /* @__PURE__ */ ie(mn, { "data-id": "input-wrapper", children: [
|
|
18992
18994
|
E,
|
|
@@ -19018,8 +19020,8 @@ V_.displayName = "TextInput";
|
|
|
19018
19020
|
const [Ls, IB] = je("Tooltip", [
|
|
19019
19021
|
Ir
|
|
19020
19022
|
]), zs = Ir(), AR = "TooltipProvider", IR = 700, od = "tooltip.open", [OR, ju] = Ls(AR), MR = (e) => {
|
|
19021
|
-
const { __scopeTooltip: t, delayDuration: r = IR, skipDelayDuration: n = 300, disableHoverableContent: o = !1, children: a } = e, [i, s] =
|
|
19022
|
-
return
|
|
19023
|
+
const { __scopeTooltip: t, delayDuration: r = IR, skipDelayDuration: n = 300, disableHoverableContent: o = !1, children: a } = e, [i, s] = J(!0), l = z(!1), c = z(0);
|
|
19024
|
+
return X(() => {
|
|
19023
19025
|
const d = c.current;
|
|
19024
19026
|
return () => window.clearTimeout(d);
|
|
19025
19027
|
}, []), /* @__PURE__ */ S(OR, {
|
|
@@ -19044,7 +19046,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19044
19046
|
disableHoverableContent: o
|
|
19045
19047
|
}, a);
|
|
19046
19048
|
}, Uu = "Tooltip", [NR, ya] = Ls(Uu), FR = (e) => {
|
|
19047
|
-
const { __scopeTooltip: t, children: r, open: n, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = ju(Uu, e.__scopeTooltip), c = zs(t), [d, u] =
|
|
19049
|
+
const { __scopeTooltip: t, children: r, open: n, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = ju(Uu, e.__scopeTooltip), c = zs(t), [d, u] = J(null), p = Qe(), m = z(0), h = i ?? l.disableHoverableContent, b = s ?? l.delayDuration, g = z(!1), [$ = !1, v] = qe({
|
|
19048
19050
|
prop: n,
|
|
19049
19051
|
defaultProp: o,
|
|
19050
19052
|
onChange: (k) => {
|
|
@@ -19068,7 +19070,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19068
19070
|
b,
|
|
19069
19071
|
v
|
|
19070
19072
|
]);
|
|
19071
|
-
return
|
|
19073
|
+
return X(() => () => window.clearTimeout(m.current), []), /* @__PURE__ */ S(da, c, /* @__PURE__ */ S(NR, {
|
|
19072
19074
|
scope: t,
|
|
19073
19075
|
contentId: p,
|
|
19074
19076
|
open: $,
|
|
@@ -19097,7 +19099,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19097
19099
|
() => c.current = !1,
|
|
19098
19100
|
[]
|
|
19099
19101
|
);
|
|
19100
|
-
return
|
|
19102
|
+
return X(() => () => document.removeEventListener("pointerup", u), [
|
|
19101
19103
|
u
|
|
19102
19104
|
]), /* @__PURE__ */ S(xs, I({
|
|
19103
19105
|
asChild: !0
|
|
@@ -19152,7 +19154,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19152
19154
|
ref: t
|
|
19153
19155
|
})));
|
|
19154
19156
|
}), jR = /* @__PURE__ */ V((e, t) => {
|
|
19155
|
-
const r = ya(ta, e.__scopeTooltip), n = ju(ta, e.__scopeTooltip), o = z(null), a = _e(t, o), [i, s] =
|
|
19157
|
+
const r = ya(ta, e.__scopeTooltip), n = ju(ta, e.__scopeTooltip), o = z(null), a = _e(t, o), [i, s] = J(null), { trigger: l, onClose: c } = r, d = o.current, { onPointerInTransitChange: u } = n, p = oe(() => {
|
|
19156
19158
|
s(null), u(!1);
|
|
19157
19159
|
}, [
|
|
19158
19160
|
u
|
|
@@ -19168,9 +19170,9 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19168
19170
|
}, [
|
|
19169
19171
|
u
|
|
19170
19172
|
]);
|
|
19171
|
-
return
|
|
19173
|
+
return X(() => () => p(), [
|
|
19172
19174
|
p
|
|
19173
|
-
]),
|
|
19175
|
+
]), X(() => {
|
|
19174
19176
|
if (l && d) {
|
|
19175
19177
|
const h = (g) => m(g, d), b = (g) => m(g, l);
|
|
19176
19178
|
return l.addEventListener("pointerleave", h), d.addEventListener("pointerleave", b), () => {
|
|
@@ -19182,7 +19184,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19182
19184
|
d,
|
|
19183
19185
|
m,
|
|
19184
19186
|
p
|
|
19185
|
-
]),
|
|
19187
|
+
]), X(() => {
|
|
19186
19188
|
if (i) {
|
|
19187
19189
|
const h = (b) => {
|
|
19188
19190
|
const g = b.target, $ = {
|
|
@@ -19206,9 +19208,9 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19206
19208
|
isInside: !1
|
|
19207
19209
|
}), j_ = /* @__PURE__ */ V((e, t) => {
|
|
19208
19210
|
const { __scopeTooltip: r, children: n, "aria-label": o, onEscapeKeyDown: a, onPointerDownOutside: i, ...s } = e, l = ya(ta, r), c = zs(r), { onClose: d } = l;
|
|
19209
|
-
return
|
|
19211
|
+
return X(() => (document.addEventListener(od, d), () => document.removeEventListener(od, d)), [
|
|
19210
19212
|
d
|
|
19211
|
-
]),
|
|
19213
|
+
]), X(() => {
|
|
19212
19214
|
if (l.trigger) {
|
|
19213
19215
|
const u = (p) => {
|
|
19214
19216
|
const m = p.target;
|
|
@@ -19877,7 +19879,7 @@ function Am(e) {
|
|
|
19877
19879
|
const H_ = /* @__PURE__ */ new WeakMap();
|
|
19878
19880
|
function MA(e) {
|
|
19879
19881
|
let { triggerRef: t, isOpen: r, onClose: n } = e;
|
|
19880
|
-
|
|
19882
|
+
X(() => {
|
|
19881
19883
|
if (!r || n === null)
|
|
19882
19884
|
return;
|
|
19883
19885
|
let o = (a) => {
|
|
@@ -19898,7 +19900,7 @@ function MA(e) {
|
|
|
19898
19900
|
}
|
|
19899
19901
|
let gt = typeof window < "u" && window.visualViewport;
|
|
19900
19902
|
function NA(e) {
|
|
19901
|
-
let { direction: t } = Ze(), { arrowSize: r = 0, targetRef: n, overlayRef: o, scrollRef: a = o, placement: i = "bottom", containerPadding: s = 12, shouldFlip: l = !0, boundaryElement: c = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: u = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: b, arrowBoundaryOffset: g = 0 } = e, [$, v] =
|
|
19903
|
+
let { direction: t } = Ze(), { arrowSize: r = 0, targetRef: n, overlayRef: o, scrollRef: a = o, placement: i = "bottom", containerPadding: s = 12, shouldFlip: l = !0, boundaryElement: c = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: u = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: b, arrowBoundaryOffset: g = 0 } = e, [$, v] = J({
|
|
19902
19904
|
position: {},
|
|
19903
19905
|
arrowOffsetLeft: void 0,
|
|
19904
19906
|
arrowOffsetTop: void 0,
|
|
@@ -19998,7 +20000,7 @@ function LA(e, t) {
|
|
|
19998
20000
|
const Ht = [];
|
|
19999
20001
|
function zA(e, t) {
|
|
20000
20002
|
let { onClose: r, shouldCloseOnBlur: n, isOpen: o, isDismissable: a = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: s } = e;
|
|
20001
|
-
|
|
20003
|
+
X(() => (o && Ht.push(t), () => {
|
|
20002
20004
|
let h = Ht.indexOf(t);
|
|
20003
20005
|
h >= 0 && Ht.splice(h, 1);
|
|
20004
20006
|
}), [
|
|
@@ -20039,7 +20041,7 @@ function zA(e, t) {
|
|
|
20039
20041
|
}
|
|
20040
20042
|
function KA(e, t, r) {
|
|
20041
20043
|
let { type: n } = e, { isOpen: o } = t;
|
|
20042
|
-
|
|
20044
|
+
X(() => {
|
|
20043
20045
|
r && r.current && H_.set(r.current, t.close);
|
|
20044
20046
|
});
|
|
20045
20047
|
let a;
|
|
@@ -20428,7 +20430,7 @@ function WA(e, t) {
|
|
|
20428
20430
|
}
|
|
20429
20431
|
const Nm = /* @__PURE__ */ K.createContext(null);
|
|
20430
20432
|
function HA(e) {
|
|
20431
|
-
let t = ps(), { portalContainer: r = t ? null : document.body } = e, [n, o] =
|
|
20433
|
+
let t = ps(), { portalContainer: r = t ? null : document.body } = e, [n, o] = J(!1), a = re(() => ({
|
|
20432
20434
|
contain: n,
|
|
20433
20435
|
setContain: o
|
|
20434
20436
|
}), [
|
|
@@ -20604,7 +20606,7 @@ function C1(e) {
|
|
|
20604
20606
|
_.currentTarget.contains(_.relatedTarget) || t.setFocused(!1);
|
|
20605
20607
|
};
|
|
20606
20608
|
const y = z(o);
|
|
20607
|
-
|
|
20609
|
+
X(() => {
|
|
20608
20610
|
if (y.current) {
|
|
20609
20611
|
let _ = null;
|
|
20610
20612
|
o === "first" && (_ = r.getFirstKey()), o === "last" && (_ = r.getLastKey());
|
|
@@ -20614,7 +20616,7 @@ function C1(e) {
|
|
|
20614
20616
|
y.current = !1;
|
|
20615
20617
|
}, []);
|
|
20616
20618
|
let w = z(t.focusedKey);
|
|
20617
|
-
|
|
20619
|
+
X(() => {
|
|
20618
20620
|
let _ = yi();
|
|
20619
20621
|
if (t.isFocused && t.focusedKey != null && (m != null && m.current)) {
|
|
20620
20622
|
let E = m.current.querySelector(`[data-key="${t.focusedKey}"]`);
|
|
@@ -20660,7 +20662,7 @@ function qA(e) {
|
|
|
20660
20662
|
t.selectionMode === "single" ? t.isSelected(r) && !t.disallowEmptySelection ? t.toggleSelection(r) : t.replaceSelection(r) : D && D.shiftKey ? t.extendSelection(r) : t.selectionBehavior === "toggle" || D && (On(D) || D.pointerType === "touch" || D.pointerType === "virtual") ? t.toggleSelection(r) : t.replaceSelection(r);
|
|
20661
20663
|
}
|
|
20662
20664
|
};
|
|
20663
|
-
|
|
20665
|
+
X(() => {
|
|
20664
20666
|
r === t.focusedKey && t.isFocused && !a && (i ? i() : document.activeElement !== n.current && qo(n.current));
|
|
20665
20667
|
}, [
|
|
20666
20668
|
n,
|
|
@@ -22293,7 +22295,7 @@ function iI(e, t) {
|
|
|
22293
22295
|
let R = (O = j == null ? void 0 : j.parentKey) !== null && O !== void 0 ? O : null;
|
|
22294
22296
|
var q;
|
|
22295
22297
|
let N = (q = t.selectionManager.focusedKey) !== null && q !== void 0 ? q : null, B = z(R), U = z(N);
|
|
22296
|
-
|
|
22298
|
+
X(() => {
|
|
22297
22299
|
if (ni() && j != null && N !== U.current) {
|
|
22298
22300
|
let H = t.selectionManager.isSelected(N), Y = R != null ? t.collection.getItem(R) : null, fe = (Y == null ? void 0 : Y["aria-label"]) || (typeof (Y == null ? void 0 : Y.rendered) == "string" ? Y.rendered : "") || "", pe = d.format("focusAnnouncement", {
|
|
22299
22301
|
isGroupChange: Y && R !== B.current,
|
|
@@ -22309,7 +22311,7 @@ function iI(e, t) {
|
|
|
22309
22311
|
B.current = R, U.current = N;
|
|
22310
22312
|
});
|
|
22311
22313
|
let G = O1(t.collection), L = z(G), A = z(t.isOpen);
|
|
22312
|
-
|
|
22314
|
+
X(() => {
|
|
22313
22315
|
let H = t.isOpen !== A.current && (t.selectionManager.focusedKey == null || ni());
|
|
22314
22316
|
if (t.isOpen && (H || G !== L.current)) {
|
|
22315
22317
|
let Y = d.format("countAnnouncement", {
|
|
@@ -22320,7 +22322,7 @@ function iI(e, t) {
|
|
|
22320
22322
|
L.current = G, A.current = t.isOpen;
|
|
22321
22323
|
});
|
|
22322
22324
|
let ee = z(t.selectedKey);
|
|
22323
|
-
return
|
|
22325
|
+
return X(() => {
|
|
22324
22326
|
if (ni() && t.isFocused && t.selectedItem && t.selectedKey !== ee.current) {
|
|
22325
22327
|
let H = t.selectedItem["aria-label"] || t.selectedItem.textValue || "", Y = d.format("selectedAnnouncement", {
|
|
22326
22328
|
optionText: H
|
|
@@ -22328,7 +22330,7 @@ function iI(e, t) {
|
|
|
22328
22330
|
Hn(Y);
|
|
22329
22331
|
}
|
|
22330
22332
|
ee.current = t.selectedKey;
|
|
22331
|
-
}),
|
|
22333
|
+
}), X(() => {
|
|
22332
22334
|
if (t.isOpen)
|
|
22333
22335
|
return k1([
|
|
22334
22336
|
o.current,
|
|
@@ -22385,16 +22387,16 @@ function sI(e, t) {
|
|
|
22385
22387
|
return !0;
|
|
22386
22388
|
}
|
|
22387
22389
|
function lI(e) {
|
|
22388
|
-
let { selectionMode: t = "none", disallowEmptySelection: r, allowDuplicateSelectionEvents: n, selectionBehavior: o = "toggle", disabledBehavior: a = "all" } = e, i = z(!1), [, s] =
|
|
22390
|
+
let { selectionMode: t = "none", disallowEmptySelection: r, allowDuplicateSelectionEvents: n, selectionBehavior: o = "toggle", disabledBehavior: a = "all" } = e, i = z(!1), [, s] = J(!1), l = z(null), c = z(null), [, d] = J(null), u = re(() => Bm(e.selectedKeys), [
|
|
22389
22391
|
e.selectedKeys
|
|
22390
22392
|
]), p = re(() => Bm(e.defaultSelectedKeys, new wt()), [
|
|
22391
22393
|
e.defaultSelectedKeys
|
|
22392
22394
|
]), [m, h] = Tt(u, p, e.onSelectionChange), b = re(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
22393
22395
|
e.disabledKeys
|
|
22394
|
-
]), [g, $] =
|
|
22396
|
+
]), [g, $] = J(o);
|
|
22395
22397
|
o === "replace" && g === "toggle" && typeof m == "object" && m.size === 0 && $("replace");
|
|
22396
22398
|
let v = z(o);
|
|
22397
|
-
return
|
|
22399
|
+
return X(() => {
|
|
22398
22400
|
o !== v.current && ($(o), v.current = o);
|
|
22399
22401
|
}, [
|
|
22400
22402
|
o
|
|
@@ -22759,7 +22761,7 @@ function ew(e) {
|
|
|
22759
22761
|
r
|
|
22760
22762
|
]);
|
|
22761
22763
|
const l = z(null);
|
|
22762
|
-
return
|
|
22764
|
+
return X(() => {
|
|
22763
22765
|
if (r.focusedKey != null && !i.getItem(r.focusedKey)) {
|
|
22764
22766
|
const c = l.current.getItem(r.focusedKey), d = [
|
|
22765
22767
|
...l.current.getKeys()
|
|
@@ -22821,7 +22823,7 @@ function tw(e) {
|
|
|
22821
22823
|
};
|
|
22822
22824
|
}
|
|
22823
22825
|
function Zu(e) {
|
|
22824
|
-
let t = y9(e), [r, n] =
|
|
22826
|
+
let t = y9(e), [r, n] = J(null);
|
|
22825
22827
|
return {
|
|
22826
22828
|
focusStrategy: r,
|
|
22827
22829
|
...t,
|
|
@@ -22835,7 +22837,7 @@ function Zu(e) {
|
|
|
22835
22837
|
}
|
|
22836
22838
|
function dI(e) {
|
|
22837
22839
|
var t;
|
|
22838
|
-
let { defaultFilter: r, menuTrigger: n = "input", allowsEmptyCollection: o = !1, allowsCustomValue: a, shouldCloseOnBlur: i = !0 } = e, [s, l] =
|
|
22840
|
+
let { defaultFilter: r, menuTrigger: n = "input", allowsEmptyCollection: o = !1, allowsCustomValue: a, shouldCloseOnBlur: i = !0 } = e, [s, l] = J(!1), [c, d] = J(!1);
|
|
22839
22841
|
var u;
|
|
22840
22842
|
let [p, m] = Tt(e.inputValue, (u = e.defaultInputValue) !== null && u !== void 0 ? u : "", e.onInputChange), h = (ae) => {
|
|
22841
22843
|
e.onSelectionChange && e.onSelectionChange(ae), ae === v && (U(), N());
|
|
@@ -22853,7 +22855,7 @@ function dI(e) {
|
|
|
22853
22855
|
p,
|
|
22854
22856
|
r,
|
|
22855
22857
|
e.items
|
|
22856
|
-
]), [_, E] =
|
|
22858
|
+
]), [_, E] = J(k), F = z("focus"), j = Zu({
|
|
22857
22859
|
...e,
|
|
22858
22860
|
onOpenChange: (ae) => {
|
|
22859
22861
|
e.onOpenChange && e.onOpenChange(ae, ae ? F.current : void 0), $.setFocused(ae), ae || $.setFocusedKey(null);
|
|
@@ -22885,7 +22887,7 @@ function dI(e) {
|
|
|
22885
22887
|
let ee = z((A = (L = e.selectedKey) !== null && L !== void 0 ? L : e.defaultSelectedKey) !== null && A !== void 0 ? A : null);
|
|
22886
22888
|
var H;
|
|
22887
22889
|
let Y = z((H = (t = g.getItem(v)) === null || t === void 0 ? void 0 : t.textValue) !== null && H !== void 0 ? H : "");
|
|
22888
|
-
|
|
22890
|
+
X(() => {
|
|
22889
22891
|
var ae;
|
|
22890
22892
|
c && (k.size > 0 || o) && !j.isOpen && p !== B.current && n !== "manual" && O(null, "input"), !s && !o && j.isOpen && k.size === 0 && N(), v != null && v !== ee.current && N(), p !== B.current && ($.setFocusedKey(null), l(!1), p === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && y(null)), G.current && e.inputValue === void 0 && e.defaultInputValue === void 0 && U(), v !== ee.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? U() : B.current = p;
|
|
22891
22893
|
var be;
|
|
@@ -23580,8 +23582,8 @@ const Ul = "rovingFocusGroup.onEntryFocus", AI = {
|
|
|
23580
23582
|
prop: i,
|
|
23581
23583
|
defaultProp: s,
|
|
23582
23584
|
onChange: l
|
|
23583
|
-
}), [g, $] =
|
|
23584
|
-
return
|
|
23585
|
+
}), [g, $] = J(!1), v = We(c), y = pw(r), w = z(!1), [P, M] = J(0);
|
|
23586
|
+
return X(() => {
|
|
23585
23587
|
const k = u.current;
|
|
23586
23588
|
if (k)
|
|
23587
23589
|
return k.addEventListener(Ul, v), () => k.removeEventListener(Ul, v);
|
|
@@ -23657,7 +23659,7 @@ const Ul = "rovingFocusGroup.onEntryFocus", AI = {
|
|
|
23657
23659
|
})));
|
|
23658
23660
|
}), zI = "RovingFocusGroupItem", KI = /* @__PURE__ */ V((e, t) => {
|
|
23659
23661
|
const { __scopeRovingFocusGroup: r, focusable: n = !0, active: o = !1, tabStopId: a, ...i } = e, s = Qe(), l = a || s, c = NI(zI, r), d = c.currentTabStopId === l, u = pw(r), { onFocusableItemAdd: p, onFocusableItemRemove: m } = c;
|
|
23660
|
-
return
|
|
23662
|
+
return X(() => {
|
|
23661
23663
|
if (n)
|
|
23662
23664
|
return p(), () => m();
|
|
23663
23665
|
}, [
|
|
@@ -23779,8 +23781,8 @@ const tf = FI, rf = KI, cd = [
|
|
|
23779
23781
|
Ir,
|
|
23780
23782
|
ho
|
|
23781
23783
|
]), xa = Ir(), gw = ho(), [vw, Or] = bn(Us), [XI, wa] = bn(Us), JI = (e) => {
|
|
23782
|
-
const { __scopeMenu: t, open: r = !1, children: n, dir: o, onOpenChange: a, modal: i = !0 } = e, s = xa(t), [l, c] =
|
|
23783
|
-
return
|
|
23784
|
+
const { __scopeMenu: t, open: r = !1, children: n, dir: o, onOpenChange: a, modal: i = !0 } = e, s = xa(t), [l, c] = J(null), d = z(!1), u = We(a), p = oo(o);
|
|
23785
|
+
return X(() => {
|
|
23784
23786
|
const m = () => {
|
|
23785
23787
|
d.current = !0, document.addEventListener("pointerdown", h, {
|
|
23786
23788
|
capture: !0,
|
|
@@ -23852,7 +23854,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23852
23854
|
})))));
|
|
23853
23855
|
}), nO = /* @__PURE__ */ V((e, t) => {
|
|
23854
23856
|
const r = Or(Pt, e.__scopeMenu), n = z(null), o = _e(t, n);
|
|
23855
|
-
return
|
|
23857
|
+
return X(() => {
|
|
23856
23858
|
const a = n.current;
|
|
23857
23859
|
if (a)
|
|
23858
23860
|
return is(a);
|
|
@@ -23880,7 +23882,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23880
23882
|
onDismiss: () => r.onOpenChange(!1)
|
|
23881
23883
|
}));
|
|
23882
23884
|
}), of = /* @__PURE__ */ V((e, t) => {
|
|
23883
|
-
const { __scopeMenu: r, loop: n = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...b } = e, g = Or(Pt, r), $ = wa(Pt, r), v = xa(r), y = gw(r), w = qI(r), [P, M] =
|
|
23885
|
+
const { __scopeMenu: r, loop: n = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...b } = e, g = Or(Pt, r), $ = wa(Pt, r), v = xa(r), y = gw(r), w = qI(r), [P, M] = J(null), k = z(null), _ = _e(t, k, g.onContentChange), E = z(0), F = z(""), D = z(0), j = z(null), O = z("right"), R = z(0), q = h ? as : Cr, N = h ? {
|
|
23884
23886
|
as: xr,
|
|
23885
23887
|
allowPinchZoom: !0
|
|
23886
23888
|
} : void 0, B = (G) => {
|
|
@@ -23903,7 +23905,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23903
23905
|
() => se.focus()
|
|
23904
23906
|
);
|
|
23905
23907
|
};
|
|
23906
|
-
|
|
23908
|
+
X(() => () => window.clearTimeout(E.current), []), ns();
|
|
23907
23909
|
const U = oe((G) => {
|
|
23908
23910
|
var L, A;
|
|
23909
23911
|
return O.current === ((L = j.current) === null || L === void 0 ? void 0 : L.side) && PO(G, (A = j.current) === null || A === void 0 ? void 0 : A.area);
|
|
@@ -24042,8 +24044,8 @@ const tf = FI, rf = KI, cd = [
|
|
|
24042
24044
|
})
|
|
24043
24045
|
}));
|
|
24044
24046
|
}), ww = /* @__PURE__ */ V((e, t) => {
|
|
24045
|
-
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = nf(dd, r), s = gw(r), l = z(null), c = _e(t, l), [d, u] =
|
|
24046
|
-
return
|
|
24047
|
+
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = nf(dd, r), s = gw(r), l = z(null), c = _e(t, l), [d, u] = J(!1), [p, m] = J("");
|
|
24048
|
+
return X(() => {
|
|
24047
24049
|
const h = l.current;
|
|
24048
24050
|
if (h) {
|
|
24049
24051
|
var b;
|
|
@@ -24155,8 +24157,8 @@ const tf = FI, rf = KI, cd = [
|
|
|
24155
24157
|
ref: t
|
|
24156
24158
|
}));
|
|
24157
24159
|
}), Pw = "MenuSub", [gO, Tw] = bn(Pw), vO = (e) => {
|
|
24158
|
-
const { __scopeMenu: t, children: r, open: n = !1, onOpenChange: o } = e, a = Or(Pw, t), i = xa(t), [s, l] =
|
|
24159
|
-
return
|
|
24160
|
+
const { __scopeMenu: t, children: r, open: n = !1, onOpenChange: o } = e, a = Or(Pw, t), i = xa(t), [s, l] = J(null), [c, d] = J(null), u = We(o);
|
|
24161
|
+
return X(() => (a.open === !1 && u(!1), () => u(!1)), [
|
|
24160
24162
|
a.open,
|
|
24161
24163
|
u
|
|
24162
24164
|
]), /* @__PURE__ */ S(da, i, /* @__PURE__ */ S(vw, {
|
|
@@ -24178,12 +24180,12 @@ const tf = FI, rf = KI, cd = [
|
|
|
24178
24180
|
}, d = oe(() => {
|
|
24179
24181
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
24180
24182
|
}, []);
|
|
24181
|
-
return
|
|
24183
|
+
return X(
|
|
24182
24184
|
() => d,
|
|
24183
24185
|
[
|
|
24184
24186
|
d
|
|
24185
24187
|
]
|
|
24186
|
-
),
|
|
24188
|
+
), X(() => {
|
|
24187
24189
|
const u = s.current;
|
|
24188
24190
|
return () => {
|
|
24189
24191
|
window.clearTimeout(u), l(null);
|
|
@@ -24780,8 +24782,8 @@ function KM(e) {
|
|
|
24780
24782
|
};
|
|
24781
24783
|
}
|
|
24782
24784
|
function VM() {
|
|
24783
|
-
let [e, t] =
|
|
24784
|
-
return
|
|
24785
|
+
let [e, t] = J(Ym);
|
|
24786
|
+
return X(() => {
|
|
24785
24787
|
let r = () => t(Ym);
|
|
24786
24788
|
return qm.add(r), () => {
|
|
24787
24789
|
qm.delete(r);
|
|
@@ -26275,7 +26277,7 @@ function jM() {
|
|
|
26275
26277
|
}
|
|
26276
26278
|
const UM = 800;
|
|
26277
26279
|
function WM(e) {
|
|
26278
|
-
let { hasDropButton: t } = e, [r, n] =
|
|
26280
|
+
let { hasDropButton: t } = e, [r, n] = J(!1), o = z({
|
|
26279
26281
|
x: 0,
|
|
26280
26282
|
y: 0,
|
|
26281
26283
|
dragOverElements: /* @__PURE__ */ new Set(),
|
|
@@ -26665,7 +26667,7 @@ const Xm = (e, t, r, n = []) => {
|
|
|
26665
26667
|
allowedOutsideClickContainers: m,
|
|
26666
26668
|
...h
|
|
26667
26669
|
}) => {
|
|
26668
|
-
const b = z(null), [g, $] =
|
|
26670
|
+
const b = z(null), [g, $] = J(!1), [v, y] = J(!1), w = Mt(h, Ar.propNames ?? []), P = Mt(h, bu.propNames ?? []), M = oe(() => {
|
|
26669
26671
|
$(!1), s(!1), y(!1);
|
|
26670
26672
|
}, [s]), k = oe(() => {
|
|
26671
26673
|
s(!0), y(!0);
|
|
@@ -26689,7 +26691,7 @@ const Xm = (e, t, r, n = []) => {
|
|
|
26689
26691
|
},
|
|
26690
26692
|
[n, i, M, r]
|
|
26691
26693
|
);
|
|
26692
|
-
|
|
26694
|
+
X(() => {
|
|
26693
26695
|
const D = () => {
|
|
26694
26696
|
M(), l();
|
|
26695
26697
|
};
|
|
@@ -26700,7 +26702,7 @@ const Xm = (e, t, r, n = []) => {
|
|
|
26700
26702
|
"mousedown",
|
|
26701
26703
|
(j) => Xm(j, b, D, m)
|
|
26702
26704
|
);
|
|
26703
|
-
}, [m, l, M]),
|
|
26705
|
+
}, [m, l, M]), X(() => M, []);
|
|
26704
26706
|
const E = oe(() => u && typeof u == "string" ? /* @__PURE__ */ x(tt, { bold: !0, size: "medium", htmlFor: u, color: f.color_gray_52, onClick: () => !c && k(), mb: f.spacing_100, children: u }) : /* @__PURE__ */ x(Hr, { children: u }), [c, k, u]);
|
|
26705
26707
|
if (v)
|
|
26706
26708
|
return /* @__PURE__ */ ie(Hr, { children: [
|
|
@@ -26872,7 +26874,7 @@ function dN(e) {
|
|
|
26872
26874
|
};
|
|
26873
26875
|
}
|
|
26874
26876
|
function uN(e) {
|
|
26875
|
-
const [t, r] =
|
|
26877
|
+
const [t, r] = J(!1), n = Zu(e), o = dN({
|
|
26876
26878
|
...e,
|
|
26877
26879
|
onSelectionChange: (a) => {
|
|
26878
26880
|
e.onSelectionChange != null && (a === "all" ? e.onSelectionChange(new Set(o.collection.getKeys())) : e.onSelectionChange(a)), e.selectionMode === "single" && n.close();
|
|
@@ -27048,8 +27050,8 @@ const df = K.createContext({
|
|
|
27048
27050
|
}), bN = C.div`
|
|
27049
27051
|
position: relative;
|
|
27050
27052
|
`, bo = V((e, t) => {
|
|
27051
|
-
const [r, n] =
|
|
27052
|
-
return
|
|
27053
|
+
const [r, n] = J(!1), o = Ct(t);
|
|
27054
|
+
return X(() => {
|
|
27053
27055
|
const a = document.getElementById(cf);
|
|
27054
27056
|
function i(s) {
|
|
27055
27057
|
const l = s.target;
|
|
@@ -27111,7 +27113,7 @@ const vN = C.div`
|
|
|
27111
27113
|
children: e,
|
|
27112
27114
|
portalIdOverride: t
|
|
27113
27115
|
}) => {
|
|
27114
|
-
const [r, n] =
|
|
27116
|
+
const [r, n] = J(null), { direction: o, open: a, menuRef: i } = Ve(df), [s, l] = J(0), [c, d] = J(0), [u, p] = J(0), m = document.getElementById(
|
|
27115
27117
|
t || cf
|
|
27116
27118
|
), h = oe((g) => {
|
|
27117
27119
|
n(g);
|
|
@@ -27125,16 +27127,16 @@ const vN = C.div`
|
|
|
27125
27127
|
l(g.width), d(Math.ceil(g.y + g.height)), p(g.x);
|
|
27126
27128
|
}
|
|
27127
27129
|
}, [o, r, i]);
|
|
27128
|
-
return
|
|
27130
|
+
return X(() => {
|
|
27129
27131
|
b();
|
|
27130
|
-
}, [r == null ? void 0 : r.offsetHeight, b]),
|
|
27132
|
+
}, [r == null ? void 0 : r.offsetHeight, b]), X(() => {
|
|
27131
27133
|
const g = setTimeout(() => {
|
|
27132
27134
|
b();
|
|
27133
27135
|
}, 1e3);
|
|
27134
27136
|
return () => {
|
|
27135
27137
|
clearTimeout(g);
|
|
27136
27138
|
};
|
|
27137
|
-
}, [r, b]),
|
|
27139
|
+
}, [r, b]), X(() => (window.addEventListener("resize", b), () => {
|
|
27138
27140
|
window.removeEventListener("resize", b);
|
|
27139
27141
|
}), [r, b]), Hi(
|
|
27140
27142
|
/* @__PURE__ */ x(vN, { width: s, top: c, left: u, ref: h, open: a, children: e }),
|
|
@@ -27238,7 +27240,7 @@ const QB = Object.assign(bo, {
|
|
|
27238
27240
|
return /* @__PURE__ */ x(ot, { ref: r, "data-id": n, borderRadius: f.border_radius_800, padding: f.spacing_400, border: `1px solid ${f.color_gray_opacity_12}`, children: o });
|
|
27239
27241
|
}
|
|
27240
27242
|
), w2 = "Radio", [DN, D2] = je(w2), [SN, PN] = DN(w2), TN = /* @__PURE__ */ V((e, t) => {
|
|
27241
|
-
const { __scopeRadio: r, name: n, checked: o = !1, required: a, disabled: i, value: s = "on", onCheck: l, ...c } = e, [d, u] =
|
|
27243
|
+
const { __scopeRadio: r, name: n, checked: o = !1, required: a, disabled: i, value: s = "on", onCheck: l, ...c } = e, [d, u] = J(null), p = _e(
|
|
27242
27244
|
t,
|
|
27243
27245
|
(b) => u(b)
|
|
27244
27246
|
), m = z(!1), h = d ? !!d.closest("form") : !0;
|
|
@@ -27283,7 +27285,7 @@ const QB = Object.assign(bo, {
|
|
|
27283
27285
|
})));
|
|
27284
27286
|
}), CN = (e) => {
|
|
27285
27287
|
const { control: t, checked: r, bubbles: n = !0, ...o } = e, a = z(null), i = As(r), s = _s(t);
|
|
27286
|
-
return
|
|
27288
|
+
return X(() => {
|
|
27287
27289
|
const l = a.current, c = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(c, "checked").set;
|
|
27288
27290
|
if (i !== r && u) {
|
|
27289
27291
|
const p = new Event("click", {
|
|
@@ -27353,7 +27355,7 @@ const RN = [
|
|
|
27353
27355
|
}))));
|
|
27354
27356
|
}), NN = "RadioGroupItem", FN = /* @__PURE__ */ V((e, t) => {
|
|
27355
27357
|
const { __scopeRadioGroup: r, disabled: n, ...o } = e, a = ON(NN, r), i = a.disabled || n, s = T2(r), l = k2(r), c = z(null), d = _e(t, c), u = a.value === o.value, p = z(!1);
|
|
27356
|
-
return
|
|
27358
|
+
return X(() => {
|
|
27357
27359
|
const m = (b) => {
|
|
27358
27360
|
RN.includes(b.key) && (p.current = !0);
|
|
27359
27361
|
}, h = () => p.current = !1;
|
|
@@ -31074,7 +31076,7 @@ function FK(e) {
|
|
|
31074
31076
|
onSelectionChange: (a) => {
|
|
31075
31077
|
e.onSelectionChange != null && e.onSelectionChange(a), t.close();
|
|
31076
31078
|
}
|
|
31077
|
-
}), [n, o] =
|
|
31079
|
+
}), [n, o] = J(!1);
|
|
31078
31080
|
return {
|
|
31079
31081
|
...r,
|
|
31080
31082
|
...t,
|
|
@@ -31186,7 +31188,7 @@ function cj(e) {
|
|
|
31186
31188
|
] });
|
|
31187
31189
|
}
|
|
31188
31190
|
const U5 = "Switch", [VK, dj] = je(U5), [BK, jK] = VK(U5), UK = /* @__PURE__ */ V((e, t) => {
|
|
31189
|
-
const { __scopeSwitch: r, name: n, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...d } = e, [u, p] =
|
|
31191
|
+
const { __scopeSwitch: r, name: n, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...d } = e, [u, p] = J(null), m = _e(
|
|
31190
31192
|
t,
|
|
31191
31193
|
(v) => p(v)
|
|
31192
31194
|
), h = z(!1), b = u ? !!u.closest("form") : !0, [g = !1, $] = qe({
|
|
@@ -31236,7 +31238,7 @@ const U5 = "Switch", [VK, dj] = je(U5), [BK, jK] = VK(U5), UK = /* @__PURE__ */
|
|
|
31236
31238
|
}));
|
|
31237
31239
|
}), GK = (e) => {
|
|
31238
31240
|
const { control: t, checked: r, bubbles: n = !0, ...o } = e, a = z(null), i = As(r), s = _s(t);
|
|
31239
|
-
return
|
|
31241
|
+
return X(() => {
|
|
31240
31242
|
const l = a.current, c = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(c, "checked").set;
|
|
31241
31243
|
if (i !== r && u) {
|
|
31242
31244
|
const p = new Event("click", {
|
|
@@ -31403,7 +31405,7 @@ const H5 = "Tabs", [QK, uj] = je(H5, [
|
|
|
31403
31405
|
})));
|
|
31404
31406
|
}), iV = "TabsContent", sV = /* @__PURE__ */ V((e, t) => {
|
|
31405
31407
|
const { __scopeTabs: r, value: n, forceMount: o, children: a, ...i } = e, s = wf(iV, r), l = Y5(s.baseId, n), c = q5(s.baseId, n), d = n === s.value, u = z(d);
|
|
31406
|
-
return
|
|
31408
|
+
return X(() => {
|
|
31407
31409
|
const p = requestAnimationFrame(
|
|
31408
31410
|
() => u.current = !1
|
|
31409
31411
|
);
|
|
@@ -31643,7 +31645,7 @@ function iD(e) {
|
|
|
31643
31645
|
const hV = aD, sD = "ToastProvider", [Sf, bV, gV] = aa("Toast"), [lD, fj] = je("Toast", [
|
|
31644
31646
|
gV
|
|
31645
31647
|
]), [vV, Ys] = lD(sD), cD = (e) => {
|
|
31646
|
-
const { __scopeToast: t, label: r = "Notification", duration: n = 5e3, swipeDirection: o = "right", swipeThreshold: a = 50, children: i } = e, [s, l] =
|
|
31648
|
+
const { __scopeToast: t, label: r = "Notification", duration: n = 5e3, swipeDirection: o = "right", swipeThreshold: a = 50, children: i } = e, [s, l] = J(null), [c, d] = J(0), u = z(!1), p = z(!1);
|
|
31647
31649
|
return /* @__PURE__ */ S(Sf.Provider, {
|
|
31648
31650
|
scope: t
|
|
31649
31651
|
}, /* @__PURE__ */ S(vV, {
|
|
@@ -31684,7 +31686,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31684
31686
|
"F8"
|
|
31685
31687
|
], kd = "toast.viewportPause", Ed = "toast.viewportResume", _V = /* @__PURE__ */ V((e, t) => {
|
|
31686
31688
|
const { __scopeToast: r, hotkey: n = yV, label: o = "Notifications ({hotkey})", ...a } = e, i = Ys($V, r), s = bV(r), l = z(null), c = z(null), d = z(null), u = z(null), p = _e(t, u, i.onViewportChange), m = n.join("+").replace(/Key/g, "").replace(/Digit/g, ""), h = i.toastCount > 0;
|
|
31687
|
-
|
|
31689
|
+
X(() => {
|
|
31688
31690
|
const g = ($) => {
|
|
31689
31691
|
var v;
|
|
31690
31692
|
n.every(
|
|
@@ -31694,7 +31696,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31694
31696
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
31695
31697
|
}, [
|
|
31696
31698
|
n
|
|
31697
|
-
]),
|
|
31699
|
+
]), X(() => {
|
|
31698
31700
|
const g = l.current, $ = u.current;
|
|
31699
31701
|
if (h && g && $) {
|
|
31700
31702
|
const v = () => {
|
|
@@ -31732,7 +31734,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31732
31734
|
}, [
|
|
31733
31735
|
s
|
|
31734
31736
|
]);
|
|
31735
|
-
return
|
|
31737
|
+
return X(() => {
|
|
31736
31738
|
const g = u.current;
|
|
31737
31739
|
if (g) {
|
|
31738
31740
|
const $ = (v) => {
|
|
@@ -31843,7 +31845,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31843
31845
|
onClose() {
|
|
31844
31846
|
}
|
|
31845
31847
|
}), dD = /* @__PURE__ */ V((e, t) => {
|
|
31846
|
-
const { __scopeToast: r, type: n = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: s, onPause: l, onResume: c, onSwipeStart: d, onSwipeMove: u, onSwipeCancel: p, onSwipeEnd: m, ...h } = e, b = Ys(qs, r), [g, $] =
|
|
31848
|
+
const { __scopeToast: r, type: n = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: s, onPause: l, onResume: c, onSwipeStart: d, onSwipeMove: u, onSwipeCancel: p, onSwipeEnd: m, ...h } = e, b = Ys(qs, r), [g, $] = J(null), v = _e(
|
|
31847
31849
|
t,
|
|
31848
31850
|
(R) => $(R)
|
|
31849
31851
|
), y = z(null), w = z(null), P = o || b.duration, M = z(0), k = z(P), _ = z(0), { onToastAdd: E, onToastRemove: F } = b, D = We(() => {
|
|
@@ -31854,7 +31856,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31854
31856
|
}, [
|
|
31855
31857
|
D
|
|
31856
31858
|
]);
|
|
31857
|
-
|
|
31859
|
+
X(() => {
|
|
31858
31860
|
const R = b.viewport;
|
|
31859
31861
|
if (R) {
|
|
31860
31862
|
const q = () => {
|
|
@@ -31873,14 +31875,14 @@ const $V = "ToastViewport", yV = [
|
|
|
31873
31875
|
l,
|
|
31874
31876
|
c,
|
|
31875
31877
|
j
|
|
31876
|
-
]),
|
|
31878
|
+
]), X(() => {
|
|
31877
31879
|
a && !b.isClosePausedRef.current && j(P);
|
|
31878
31880
|
}, [
|
|
31879
31881
|
a,
|
|
31880
31882
|
P,
|
|
31881
31883
|
b.isClosePausedRef,
|
|
31882
31884
|
j
|
|
31883
|
-
]),
|
|
31885
|
+
]), X(() => (E(), () => F()), [
|
|
31884
31886
|
E,
|
|
31885
31887
|
F
|
|
31886
31888
|
]);
|
|
@@ -31983,10 +31985,10 @@ dD.propTypes = {
|
|
|
31983
31985
|
}
|
|
31984
31986
|
};
|
|
31985
31987
|
const CV = (e) => {
|
|
31986
|
-
const { __scopeToast: t, children: r, ...n } = e, o = Ys(qs, t), [a, i] =
|
|
31988
|
+
const { __scopeToast: t, children: r, ...n } = e, o = Ys(qs, t), [a, i] = J(!1), [s, l] = J(!1);
|
|
31987
31989
|
return OV(
|
|
31988
31990
|
() => i(!0)
|
|
31989
|
-
),
|
|
31991
|
+
), X(() => {
|
|
31990
31992
|
const c = window.setTimeout(
|
|
31991
31993
|
() => l(!0),
|
|
31992
31994
|
1e3
|