@parasutcom/fds 0.1.33 → 0.1.34
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/index.js +255 -249
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as x, jsxs as oe, Fragment as ln } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import ae, { createElement as Gh, useLayoutEffect as Rw, createContext as Ow, useContext as Pw, useCallback as
|
|
3
|
+
import ae, { createElement as Gh, useLayoutEffect as Rw, createContext as Ow, useContext as Pw, useCallback as at, useRef as Un, useState as Dt, useEffect as Ns, useMemo as At, isValidElement as Z0, PureComponent as Ts, forwardRef as Q0, useImperativeHandle as J0, cloneElement as eP, Fragment as tP, Children as nP } from "react";
|
|
4
4
|
import * as Ot from "react-dom";
|
|
5
5
|
import rP from "react-dom";
|
|
6
6
|
import { ChevronRightIcon as Bi, MoreHorizontalIcon as Mw, ChevronLeftIcon as Cp, ChevronDownIcon as ks, MinusIcon as Nw, CheckIcon as Ho, XIcon as zi, SearchIcon as oP, CircleIcon as iP, ChevronUpIcon as aP, PanelLeftIcon as sP, Loader2Icon as Tw, OctagonXIcon as lP, TriangleAlertIcon as cP, InfoIcon as br, CircleCheckIcon as uP, TriangleAlert as Ep, Search as kw, MoreHorizontal as dP, ArrowDown as fP, ArrowUp as pP, ArrowUpDown as mP, Settings2 as hP, AlertTriangle as gP, PlusCircle as bP, X as Sp, ChevronDown as vP, CalendarIcon as yP, FilterIcon as xP } from "lucide-react";
|
|
@@ -16,11 +16,11 @@ function Iw(e) {
|
|
|
16
16
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Yn() {
|
|
20
20
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Iw(e)) && (r && (r += " "), r += t);
|
|
21
21
|
return r;
|
|
22
22
|
}
|
|
23
|
-
const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh =
|
|
23
|
+
const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, Lt = (e, t) => (n) => {
|
|
24
24
|
var r;
|
|
25
25
|
if (t?.variants == null) return Xh(e, n?.class, n?.className);
|
|
26
26
|
const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((c) => {
|
|
@@ -323,7 +323,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Gn, L
|
|
|
323
323
|
}, YP = [], Et = (e) => {
|
|
324
324
|
const t = (n) => n[e] || YP;
|
|
325
325
|
return t.isThemeGetter = !0, t;
|
|
326
|
-
}, Fw = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Lw = /^\((?:(\w[\w-]*):)?(.+)\)$/i, KP = /^\d+\/\d+$/, XP = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ZP = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, QP = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, JP = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, eM = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, po = (e) => KP.test(e), qe = (e) => !!e && !Number.isNaN(Number(e)),
|
|
326
|
+
}, Fw = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Lw = /^\((?:(\w[\w-]*):)?(.+)\)$/i, KP = /^\d+\/\d+$/, XP = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ZP = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, QP = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, JP = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, eM = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, po = (e) => KP.test(e), qe = (e) => !!e && !Number.isNaN(Number(e)), rr = (e) => !!e && Number.isInteger(Number(e)), ql = (e) => e.endsWith("%") && qe(e.slice(0, -1)), Wn = (e) => XP.test(e), tM = () => !0, nM = (e) => (
|
|
327
327
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
328
328
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
329
329
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -353,9 +353,9 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Gn, L
|
|
|
353
353
|
"bottom-left",
|
|
354
354
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
355
355
|
"left-bottom"
|
|
356
|
-
], w = () => [...E(), Se, Ee], S = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], O = () => [Se, Ee, l], P = () => [po, "full", "auto", ...O()], D = () => [
|
|
357
|
-
span: ["full",
|
|
358
|
-
},
|
|
356
|
+
], w = () => [...E(), Se, Ee], S = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], O = () => [Se, Ee, l], P = () => [po, "full", "auto", ...O()], D = () => [rr, "none", "subgrid", Se, Ee], T = () => ["auto", {
|
|
357
|
+
span: ["full", rr, Se, Ee]
|
|
358
|
+
}, rr, Se, Ee], _ = () => [rr, "auto", Se, Ee], M = () => ["auto", "min", "max", "fr", Se, Ee], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...O()], F = () => [po, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], I = () => [e, Se, Ee], B = () => [...E(), tg, eg, {
|
|
359
359
|
position: [Se, Ee]
|
|
360
360
|
}], $ = () => ["no-repeat", {
|
|
361
361
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -622,7 +622,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Gn, L
|
|
|
622
622
|
* @see https://tailwindcss.com/docs/z-index
|
|
623
623
|
*/
|
|
624
624
|
z: [{
|
|
625
|
-
z: [
|
|
625
|
+
z: [rr, "auto", Se, Ee]
|
|
626
626
|
}],
|
|
627
627
|
// ------------------------
|
|
628
628
|
// --- Flexbox and Grid ---
|
|
@@ -674,7 +674,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Gn, L
|
|
|
674
674
|
* @see https://tailwindcss.com/docs/order
|
|
675
675
|
*/
|
|
676
676
|
order: [{
|
|
677
|
-
order: [
|
|
677
|
+
order: [rr, "first", "last", "none", Se, Ee]
|
|
678
678
|
}],
|
|
679
679
|
/**
|
|
680
680
|
* Grid Template Columns
|
|
@@ -1352,9 +1352,9 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Gn, L
|
|
|
1352
1352
|
bg: ["none", {
|
|
1353
1353
|
linear: [{
|
|
1354
1354
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1355
|
-
},
|
|
1355
|
+
}, rr, Se, Ee],
|
|
1356
1356
|
radial: ["", Se, Ee],
|
|
1357
|
-
conic: [
|
|
1357
|
+
conic: [rr, Se, Ee]
|
|
1358
1358
|
}, uM, sM]
|
|
1359
1359
|
}],
|
|
1360
1360
|
/**
|
|
@@ -2806,7 +2806,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Gn, L
|
|
|
2806
2806
|
};
|
|
2807
2807
|
}, mM = /* @__PURE__ */ GP(pM);
|
|
2808
2808
|
function L(...e) {
|
|
2809
|
-
return mM(
|
|
2809
|
+
return mM(Yn(e));
|
|
2810
2810
|
}
|
|
2811
2811
|
const hM = Lt(
|
|
2812
2812
|
"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert",
|
|
@@ -2925,7 +2925,7 @@ function Op(e) {
|
|
|
2925
2925
|
function Je(e) {
|
|
2926
2926
|
return Is() ? e instanceof Element || e instanceof bt(e).Element : !1;
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function st(e) {
|
|
2929
2929
|
return Is() ? e instanceof HTMLElement || e instanceof bt(e).HTMLElement : !1;
|
|
2930
2930
|
}
|
|
2931
2931
|
function _f(e) {
|
|
@@ -2962,7 +2962,7 @@ function Pp(e) {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
function OM(e) {
|
|
2964
2964
|
let t = Tn(e);
|
|
2965
|
-
for (;
|
|
2965
|
+
for (; st(t) && !Mn(t); ) {
|
|
2966
2966
|
if (Pp(t))
|
|
2967
2967
|
return t;
|
|
2968
2968
|
if (_s(t))
|
|
@@ -3004,7 +3004,7 @@ function Tn(e) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
function jw(e) {
|
|
3006
3006
|
const t = Tn(e);
|
|
3007
|
-
return Mn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
3007
|
+
return Mn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : st(t) && Kr(t) ? t : jw(t);
|
|
3008
3008
|
}
|
|
3009
3009
|
function ur(e, t, n) {
|
|
3010
3010
|
var r;
|
|
@@ -3062,9 +3062,9 @@ function Vs(e) {
|
|
|
3062
3062
|
u.useEffect(e, DM);
|
|
3063
3063
|
}
|
|
3064
3064
|
const ci = 0;
|
|
3065
|
-
class
|
|
3065
|
+
class Kn {
|
|
3066
3066
|
static create() {
|
|
3067
|
-
return new
|
|
3067
|
+
return new Kn();
|
|
3068
3068
|
}
|
|
3069
3069
|
currentId = ci;
|
|
3070
3070
|
/**
|
|
@@ -3084,7 +3084,7 @@ class Yn {
|
|
|
3084
3084
|
disposeEffect = () => this.clear;
|
|
3085
3085
|
}
|
|
3086
3086
|
function mt() {
|
|
3087
|
-
const e = Pt(
|
|
3087
|
+
const e = Pt(Kn.create).current;
|
|
3088
3088
|
return Vs(e.disposeEffect), e;
|
|
3089
3089
|
}
|
|
3090
3090
|
const ya = null;
|
|
@@ -3151,7 +3151,7 @@ function Zr() {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
function nt() {
|
|
3153
3153
|
}
|
|
3154
|
-
const zt = Object.freeze([]),
|
|
3154
|
+
const zt = Object.freeze([]), lt = Object.freeze({});
|
|
3155
3155
|
let ig = {}, ag = {}, sg = "";
|
|
3156
3156
|
function VM(e) {
|
|
3157
3157
|
if (typeof document > "u")
|
|
@@ -3218,8 +3218,8 @@ function LM(e) {
|
|
|
3218
3218
|
class BM {
|
|
3219
3219
|
lockCount = 0;
|
|
3220
3220
|
restore = null;
|
|
3221
|
-
timeoutLock =
|
|
3222
|
-
timeoutUnlock =
|
|
3221
|
+
timeoutLock = Kn.create();
|
|
3222
|
+
timeoutUnlock = Kn.create();
|
|
3223
3223
|
acquire(t) {
|
|
3224
3224
|
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(t)), this.release;
|
|
3225
3225
|
}
|
|
@@ -3303,7 +3303,7 @@ function vt(e) {
|
|
|
3303
3303
|
return e?.ownerDocument || document;
|
|
3304
3304
|
}
|
|
3305
3305
|
function Tp(e) {
|
|
3306
|
-
return
|
|
3306
|
+
return st(e) && e.matches(Qw);
|
|
3307
3307
|
}
|
|
3308
3308
|
function Vf(e) {
|
|
3309
3309
|
return e ? e.getAttribute("role") === "combobox" && Tp(e) : !1;
|
|
@@ -3371,7 +3371,7 @@ const jM = ["top", "right", "bottom", "left"], Io = Math.min, Yt = Math.max, _o
|
|
|
3371
3371
|
function Ff(e, t, n) {
|
|
3372
3372
|
return Yt(e, Io(t, n));
|
|
3373
3373
|
}
|
|
3374
|
-
function
|
|
3374
|
+
function Xn(e, t) {
|
|
3375
3375
|
return typeof e == "function" ? e(t) : e;
|
|
3376
3376
|
}
|
|
3377
3377
|
function $t(e) {
|
|
@@ -4018,10 +4018,10 @@ const xN = 500, CC = 500, wN = {
|
|
|
4018
4018
|
position: "fixed",
|
|
4019
4019
|
top: 0,
|
|
4020
4020
|
left: 0
|
|
4021
|
-
}, dt = "none", sn = "trigger-press", Rt = "trigger-hover", Ri = "trigger-focus", $p = "outside-press", mr = "item-press", EN = "close-press", hg = "clear-press", gg = "chip-remove-press", Fr = "input-change",
|
|
4021
|
+
}, dt = "none", sn = "trigger-press", Rt = "trigger-hover", Ri = "trigger-focus", $p = "outside-press", mr = "item-press", EN = "close-press", hg = "clear-press", gg = "chip-remove-press", Fr = "input-change", sr = "input-clear", kn = "focus-out", Yo = "escape-key", Ro = "list-navigation", EC = "cancel-open", gi = "sibling-open", SN = "disabled", Ls = "imperative-action", RN = "window-resize";
|
|
4022
4022
|
function he(e, t, n, r) {
|
|
4023
4023
|
let o = !1, i = !1;
|
|
4024
|
-
const a = r ??
|
|
4024
|
+
const a = r ?? lt;
|
|
4025
4025
|
return {
|
|
4026
4026
|
reason: e,
|
|
4027
4027
|
event: t ?? new Event("base-ui"),
|
|
@@ -4042,7 +4042,7 @@ function he(e, t, n, r) {
|
|
|
4042
4042
|
};
|
|
4043
4043
|
}
|
|
4044
4044
|
function ui(e, t, n) {
|
|
4045
|
-
const r = n ??
|
|
4045
|
+
const r = n ?? lt;
|
|
4046
4046
|
return {
|
|
4047
4047
|
reason: e,
|
|
4048
4048
|
event: t ?? new Event("base-ui"),
|
|
@@ -4072,7 +4072,7 @@ const Wp = /* @__PURE__ */ u.createContext({
|
|
|
4072
4072
|
initialDelayRef: {
|
|
4073
4073
|
current: 0
|
|
4074
4074
|
},
|
|
4075
|
-
timeout: new
|
|
4075
|
+
timeout: new Kn(),
|
|
4076
4076
|
currentIdRef: {
|
|
4077
4077
|
current: null
|
|
4078
4078
|
},
|
|
@@ -4225,7 +4225,7 @@ const Sr = {
|
|
|
4225
4225
|
width: 1,
|
|
4226
4226
|
height: 1,
|
|
4227
4227
|
margin: -1
|
|
4228
|
-
},
|
|
4228
|
+
}, Zn = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
4229
4229
|
const [r, o] = u.useState();
|
|
4230
4230
|
return se(() => {
|
|
4231
4231
|
Yw && o("button");
|
|
@@ -4242,7 +4242,7 @@ const Sr = {
|
|
|
4242
4242
|
"data-base-ui-focus-guard": ""
|
|
4243
4243
|
});
|
|
4244
4244
|
});
|
|
4245
|
-
process.env.NODE_ENV !== "production" && (
|
|
4245
|
+
process.env.NODE_ENV !== "production" && (Zn.displayName = "FocusGuard");
|
|
4246
4246
|
let bg = 0;
|
|
4247
4247
|
function Za(e, t = {}) {
|
|
4248
4248
|
const {
|
|
@@ -4420,7 +4420,7 @@ function ve(e, t, n = {}) {
|
|
|
4420
4420
|
const r = t.render, o = qN(t, n);
|
|
4421
4421
|
if (n.enabled === !1)
|
|
4422
4422
|
return null;
|
|
4423
|
-
const i = n.state ??
|
|
4423
|
+
const i = n.state ?? lt;
|
|
4424
4424
|
return HN(e, r, o, i);
|
|
4425
4425
|
}
|
|
4426
4426
|
function qN(e, t = {}) {
|
|
@@ -4429,13 +4429,13 @@ function qN(e, t = {}) {
|
|
|
4429
4429
|
style: r,
|
|
4430
4430
|
render: o
|
|
4431
4431
|
} = e, {
|
|
4432
|
-
state: i =
|
|
4432
|
+
state: i = lt,
|
|
4433
4433
|
ref: a,
|
|
4434
4434
|
props: s,
|
|
4435
4435
|
stateAttributesMapping: l,
|
|
4436
4436
|
enabled: c = !0
|
|
4437
|
-
} = t, d = c ? VN(n, i) : void 0, f = c ? FN(r, i) : void 0, p = c ? AN(i, l) :
|
|
4438
|
-
return typeof document < "u" && (c ? Array.isArray(a) ? m.ref = MN([m.ref, yg(o), ...a]) : m.ref = Ft(m.ref, yg(o), a) : Ft(null, null)), c ? (d !== void 0 && (m.className = MC(m.className, d)), f !== void 0 && (m.style = Wf(m.style, f)), m) :
|
|
4437
|
+
} = t, d = c ? VN(n, i) : void 0, f = c ? FN(r, i) : void 0, p = c ? AN(i, l) : lt, m = c ? Wf(p, Array.isArray(s) ? LN(s) : s) ?? lt : lt;
|
|
4438
|
+
return typeof document < "u" && (c ? Array.isArray(a) ? m.ref = MN([m.ref, yg(o), ...a]) : m.ref = Ft(m.ref, yg(o), a) : Ft(null, null)), c ? (d !== void 0 && (m.className = MC(m.className, d)), f !== void 0 && (m.style = Wf(m.style, f)), m) : lt;
|
|
4439
4439
|
}
|
|
4440
4440
|
function HN(e, t, n, r) {
|
|
4441
4441
|
if (t) {
|
|
@@ -4466,7 +4466,7 @@ function TC(e = {}) {
|
|
|
4466
4466
|
const {
|
|
4467
4467
|
ref: t,
|
|
4468
4468
|
container: n,
|
|
4469
|
-
componentProps: r =
|
|
4469
|
+
componentProps: r = lt,
|
|
4470
4470
|
elementProps: o,
|
|
4471
4471
|
elementState: i
|
|
4472
4472
|
} = e, a = Qr(), l = NC()?.portalNode, [c, d] = u.useState(null), [f, p] = u.useState(null), m = u.useRef(null);
|
|
@@ -4537,7 +4537,7 @@ const Ko = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
4537
4537
|
return /* @__PURE__ */ oe(u.Fragment, {
|
|
4538
4538
|
children: [d, /* @__PURE__ */ oe(Hp.Provider, {
|
|
4539
4539
|
value: E,
|
|
4540
|
-
children: [C && c && /* @__PURE__ */ x(
|
|
4540
|
+
children: [C && c && /* @__PURE__ */ x(Zn, {
|
|
4541
4541
|
"data-type": "outside",
|
|
4542
4542
|
ref: f,
|
|
4543
4543
|
onFocus: (w) => {
|
|
@@ -4551,7 +4551,7 @@ const Ko = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
4551
4551
|
}), C && c && /* @__PURE__ */ x("span", {
|
|
4552
4552
|
"aria-owns": c.id,
|
|
4553
4553
|
style: CN
|
|
4554
|
-
}), c && /* @__PURE__ */ Ot.createPortal(r, c), C && c && /* @__PURE__ */ x(
|
|
4554
|
+
}), c && /* @__PURE__ */ Ot.createPortal(r, c), C && c && /* @__PURE__ */ x(Zn, {
|
|
4555
4555
|
"data-type": "outside",
|
|
4556
4556
|
ref: p,
|
|
4557
4557
|
onFocus: (w) => {
|
|
@@ -4575,15 +4575,15 @@ function GN(e, t) {
|
|
|
4575
4575
|
return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
4576
4576
|
}
|
|
4577
4577
|
const xg = 20;
|
|
4578
|
-
let
|
|
4578
|
+
let lr = [];
|
|
4579
4579
|
function jp() {
|
|
4580
|
-
|
|
4580
|
+
lr = lr.filter((e) => e.isConnected);
|
|
4581
4581
|
}
|
|
4582
4582
|
function YN(e) {
|
|
4583
|
-
jp(), e && wr(e) !== "body" && (
|
|
4583
|
+
jp(), e && wr(e) !== "body" && (lr.push(e), lr.length > xg && (lr = lr.slice(-xg)));
|
|
4584
4584
|
}
|
|
4585
4585
|
function Yl() {
|
|
4586
|
-
return jp(),
|
|
4586
|
+
return jp(), lr[lr.length - 1];
|
|
4587
4587
|
}
|
|
4588
4588
|
function KN(e) {
|
|
4589
4589
|
if (!e)
|
|
@@ -4677,14 +4677,14 @@ function Hi(e) {
|
|
|
4677
4677
|
queueMicrotask(() => {
|
|
4678
4678
|
const pe = S(), Ne = g.context.triggerElements, Ie = !(Le(b, me) || Le(C, me) || Le(me, C) || Le(N?.portalNode, me) || me != null && Ne.hasElement(me) || Ne.hasMatchingElement((Pe) => Le(Pe, me)) || me?.hasAttribute(Ao("focus-guard")) || k && (Wr(k.nodesRef.current, pe).find((Pe) => Le(Pe.context?.elements.floating, me) || Le(Pe.context?.elements.domReference, me)) || lg(k.nodesRef.current, pe).find((Pe) => [Pe.context?.elements.floating, Ei(Pe.context?.elements.floating)].includes(me) || Pe.context?.elements.domReference === me)));
|
|
4679
4679
|
if (ce === b && Z && wg(Z, D), s && ce !== b && !XN(ge) && mn(vt(Z)) === vt(Z).body) {
|
|
4680
|
-
if (
|
|
4680
|
+
if (st(Z) && (Z.focus(), s === "popup")) {
|
|
4681
4681
|
G.request(() => {
|
|
4682
4682
|
Z.focus();
|
|
4683
4683
|
});
|
|
4684
4684
|
return;
|
|
4685
4685
|
}
|
|
4686
4686
|
const Pe = W.current, $e = ie(), Ue = $e[Pe] || $e[$e.length - 1] || Z;
|
|
4687
|
-
|
|
4687
|
+
st(Ue) && Ue.focus();
|
|
4688
4688
|
}
|
|
4689
4689
|
if (w.current.insideReactTree) {
|
|
4690
4690
|
w.current.insideReactTree = !1;
|
|
@@ -4705,7 +4705,7 @@ function Hi(e) {
|
|
|
4705
4705
|
w.current.insideReactTree = !1;
|
|
4706
4706
|
}));
|
|
4707
4707
|
}
|
|
4708
|
-
const de =
|
|
4708
|
+
const de = st(b) ? b : null, ye = [];
|
|
4709
4709
|
if (!(!C && !de))
|
|
4710
4710
|
return de && (de.addEventListener("focusout", re), de.addEventListener("pointerdown", J), ye.push(() => {
|
|
4711
4711
|
de.removeEventListener("focusout", re), de.removeEventListener("pointerdown", J);
|
|
@@ -4728,7 +4728,7 @@ function Hi(e) {
|
|
|
4728
4728
|
ye();
|
|
4729
4729
|
};
|
|
4730
4730
|
}, [y, r, b, C, l, D, N, P, k, S, R, p, m]), se(() => {
|
|
4731
|
-
if (!y || r || !
|
|
4731
|
+
if (!y || r || !st(Z))
|
|
4732
4732
|
return;
|
|
4733
4733
|
const J = vt(Z), re = mn(J);
|
|
4734
4734
|
queueMicrotask(() => {
|
|
@@ -4781,7 +4781,7 @@ function Hi(e) {
|
|
|
4781
4781
|
queueMicrotask(() => {
|
|
4782
4782
|
const ge = KN(ce), pe = typeof _.current != "boolean";
|
|
4783
4783
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4784
|
-
_.current && !I.current &&
|
|
4784
|
+
_.current && !I.current && st(ge) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
4785
4785
|
// since it likely entered a different element which should be
|
|
4786
4786
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
4787
4787
|
(!(!pe && ge !== ne && ne !== J.body) || me) && ge.focus({
|
|
@@ -4822,7 +4822,7 @@ function Hi(e) {
|
|
|
4822
4822
|
}, [r, Z, D]);
|
|
4823
4823
|
const X = !r && (l ? !P : !0) && (U || l);
|
|
4824
4824
|
return /* @__PURE__ */ oe(u.Fragment, {
|
|
4825
|
-
children: [X && /* @__PURE__ */ x(
|
|
4825
|
+
children: [X && /* @__PURE__ */ x(Zn, {
|
|
4826
4826
|
"data-type": "inside",
|
|
4827
4827
|
ref: ue,
|
|
4828
4828
|
onFocus: (J) => {
|
|
@@ -4831,7 +4831,7 @@ function Hi(e) {
|
|
|
4831
4831
|
Za(re[re.length - 1]);
|
|
4832
4832
|
} else N?.portalNode && (I.current = !1, qr(J, N.portalNode) ? Fs(b)?.focus() : Dr(m ?? N.beforeOutsideRef)?.focus());
|
|
4833
4833
|
}
|
|
4834
|
-
}), n, X && /* @__PURE__ */ x(
|
|
4834
|
+
}), n, X && /* @__PURE__ */ x(Zn, {
|
|
4835
4835
|
"data-type": "inside",
|
|
4836
4836
|
ref: Y,
|
|
4837
4837
|
onFocus: (J) => {
|
|
@@ -4893,7 +4893,7 @@ function Jr(e, t = {}) {
|
|
|
4893
4893
|
}), [r, i, s, n, l, a, f, p, c]);
|
|
4894
4894
|
return u.useMemo(() => o ? {
|
|
4895
4895
|
reference: m
|
|
4896
|
-
} :
|
|
4896
|
+
} : lt, [o, m]);
|
|
4897
4897
|
}
|
|
4898
4898
|
function ZN(e, t) {
|
|
4899
4899
|
let n = null, r = null, o = !1;
|
|
@@ -5103,7 +5103,7 @@ async function Oi(e, t) {
|
|
|
5103
5103
|
elementContext: f = "floating",
|
|
5104
5104
|
altBoundary: p = !1,
|
|
5105
5105
|
padding: m = 0
|
|
5106
|
-
} =
|
|
5106
|
+
} = Xn(t, e), v = nC(m), g = s[p ? f === "floating" ? "reference" : "floating" : f], y = ss(await i.getClippingRect({
|
|
5107
5107
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
5108
5108
|
boundary: c,
|
|
5109
5109
|
rootBoundary: d,
|
|
@@ -5153,7 +5153,7 @@ const eT = function(e) {
|
|
|
5153
5153
|
fallbackAxisSideDirection: v = "none",
|
|
5154
5154
|
flipAlignment: h = !0,
|
|
5155
5155
|
...g
|
|
5156
|
-
} =
|
|
5156
|
+
} = Xn(e, t);
|
|
5157
5157
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
5158
5158
|
return {};
|
|
5159
5159
|
const y = $t(o), b = an(s), C = $t(s) === s, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = p || (C || !h ? [as(s)] : XM(s)), S = v !== "none";
|
|
@@ -5235,7 +5235,7 @@ const tT = function(e) {
|
|
|
5235
5235
|
} = t, {
|
|
5236
5236
|
strategy: r = "referenceHidden",
|
|
5237
5237
|
...o
|
|
5238
|
-
} =
|
|
5238
|
+
} = Xn(e, t);
|
|
5239
5239
|
switch (r) {
|
|
5240
5240
|
case "referenceHidden": {
|
|
5241
5241
|
const i = await Oi(t, {
|
|
@@ -5272,7 +5272,7 @@ async function nT(e, t) {
|
|
|
5272
5272
|
placement: n,
|
|
5273
5273
|
platform: r,
|
|
5274
5274
|
elements: o
|
|
5275
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = $t(n), s = Cr(n), l = an(n) === "y", c = kC.has(a) ? -1 : 1, d = i && l ? -1 : 1, f =
|
|
5275
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = $t(n), s = Cr(n), l = an(n) === "y", c = kC.has(a) ? -1 : 1, d = i && l ? -1 : 1, f = Xn(t, e);
|
|
5276
5276
|
let {
|
|
5277
5277
|
mainAxis: p,
|
|
5278
5278
|
crossAxis: m,
|
|
@@ -5341,7 +5341,7 @@ const rT = function(e) {
|
|
|
5341
5341
|
}
|
|
5342
5342
|
},
|
|
5343
5343
|
...l
|
|
5344
|
-
} =
|
|
5344
|
+
} = Xn(e, t), c = {
|
|
5345
5345
|
x: n,
|
|
5346
5346
|
y: r
|
|
5347
5347
|
}, d = await Oi(t, l), f = an($t(o)), p = kp(f);
|
|
@@ -5386,12 +5386,12 @@ const rT = function(e) {
|
|
|
5386
5386
|
offset: s = 0,
|
|
5387
5387
|
mainAxis: l = !0,
|
|
5388
5388
|
crossAxis: c = !0
|
|
5389
|
-
} =
|
|
5389
|
+
} = Xn(e, t), d = {
|
|
5390
5390
|
x: n,
|
|
5391
5391
|
y: r
|
|
5392
5392
|
}, f = an(o), p = kp(f);
|
|
5393
5393
|
let m = d[p], v = d[f];
|
|
5394
|
-
const h =
|
|
5394
|
+
const h = Xn(s, t), g = typeof h == "number" ? {
|
|
5395
5395
|
mainAxis: h,
|
|
5396
5396
|
crossAxis: 0
|
|
5397
5397
|
} : {
|
|
@@ -5429,7 +5429,7 @@ const rT = function(e) {
|
|
|
5429
5429
|
apply: l = () => {
|
|
5430
5430
|
},
|
|
5431
5431
|
...c
|
|
5432
|
-
} =
|
|
5432
|
+
} = Xn(e, t), d = await Oi(t, c), f = $t(o), p = Cr(o), m = an(o) === "y", {
|
|
5433
5433
|
width: v,
|
|
5434
5434
|
height: h
|
|
5435
5435
|
} = i.floating;
|
|
@@ -5458,7 +5458,7 @@ const rT = function(e) {
|
|
|
5458
5458
|
function IC(e) {
|
|
5459
5459
|
const t = qt(e);
|
|
5460
5460
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5461
|
-
const o =
|
|
5461
|
+
const o = st(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = _o(n) !== i || _o(r) !== a;
|
|
5462
5462
|
return s && (n = i, r = a), {
|
|
5463
5463
|
width: n,
|
|
5464
5464
|
height: r,
|
|
@@ -5470,7 +5470,7 @@ function Up(e) {
|
|
|
5470
5470
|
}
|
|
5471
5471
|
function Po(e) {
|
|
5472
5472
|
const t = Up(e);
|
|
5473
|
-
if (!
|
|
5473
|
+
if (!st(t))
|
|
5474
5474
|
return Nn(1);
|
|
5475
5475
|
const n = t.getBoundingClientRect(), {
|
|
5476
5476
|
width: r,
|
|
@@ -5541,8 +5541,8 @@ function cT(e) {
|
|
|
5541
5541
|
scrollLeft: 0,
|
|
5542
5542
|
scrollTop: 0
|
|
5543
5543
|
}, c = Nn(1);
|
|
5544
|
-
const d = Nn(0), f =
|
|
5545
|
-
if ((f || !f && !i) && ((wr(r) !== "body" || Kr(a)) && (l = As(r)),
|
|
5544
|
+
const d = Nn(0), f = st(r);
|
|
5545
|
+
if ((f || !f && !i) && ((wr(r) !== "body" || Kr(a)) && (l = As(r)), st(r))) {
|
|
5546
5546
|
const m = Ur(r);
|
|
5547
5547
|
c = Po(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
|
|
5548
5548
|
}
|
|
@@ -5591,7 +5591,7 @@ function fT(e, t) {
|
|
|
5591
5591
|
}
|
|
5592
5592
|
const pT = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
5593
5593
|
function mT(e, t) {
|
|
5594
|
-
const n = Ur(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i =
|
|
5594
|
+
const n = Ur(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = st(e) ? Po(e) : Nn(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
|
|
5595
5595
|
return {
|
|
5596
5596
|
width: a,
|
|
5597
5597
|
height: s,
|
|
@@ -5664,7 +5664,7 @@ function bT(e) {
|
|
|
5664
5664
|
};
|
|
5665
5665
|
}
|
|
5666
5666
|
function vT(e, t, n) {
|
|
5667
|
-
const r =
|
|
5667
|
+
const r = st(t), o = In(t), i = n === "fixed", a = Ur(e, !0, i, t);
|
|
5668
5668
|
let s = {
|
|
5669
5669
|
scrollLeft: 0,
|
|
5670
5670
|
scrollTop: 0
|
|
@@ -5691,7 +5691,7 @@ function Kl(e) {
|
|
|
5691
5691
|
return qt(e).position === "static";
|
|
5692
5692
|
}
|
|
5693
5693
|
function Mg(e, t) {
|
|
5694
|
-
if (!
|
|
5694
|
+
if (!st(e) || qt(e).position === "fixed")
|
|
5695
5695
|
return null;
|
|
5696
5696
|
if (t)
|
|
5697
5697
|
return t(e);
|
|
@@ -5702,7 +5702,7 @@ function VC(e, t) {
|
|
|
5702
5702
|
const n = bt(e);
|
|
5703
5703
|
if (_s(e))
|
|
5704
5704
|
return n;
|
|
5705
|
-
if (!
|
|
5705
|
+
if (!st(e)) {
|
|
5706
5706
|
let o = Tn(e);
|
|
5707
5707
|
for (; o && !Mn(o); ) {
|
|
5708
5708
|
if (Je(o) && !Kl(o))
|
|
@@ -6084,7 +6084,7 @@ function Xo(e, t = {}) {
|
|
|
6084
6084
|
// element was injected after the floating element rendered.
|
|
6085
6085
|
Array.from(X).every((ne) => !Le(re, ne)))
|
|
6086
6086
|
return;
|
|
6087
|
-
if (
|
|
6087
|
+
if (st(ue) && !("touches" in j)) {
|
|
6088
6088
|
const ne = Mn(ue), me = qt(ue), ce = /auto|scroll/, ge = ne || ce.test(me.overflowX), pe = ne || ce.test(me.overflowY), Ne = ge && ue.clientWidth > 0 && ue.scrollWidth > ue.clientWidth, Ie = pe && ue.clientHeight > 0 && ue.scrollHeight > ue.clientHeight, Pe = me.direction === "rtl", $e = Ie && (Pe ? j.offsetX <= ue.offsetWidth - ue.clientWidth : j.offsetX > ue.clientWidth), Ue = Ne && j.offsetY > ue.clientHeight;
|
|
6089
6089
|
if ($e || Ue)
|
|
6090
6090
|
return;
|
|
@@ -6158,7 +6158,7 @@ function Xo(e, t = {}) {
|
|
|
6158
6158
|
if (!r || !c)
|
|
6159
6159
|
return;
|
|
6160
6160
|
l.current.__escapeKeyBubbles = S, l.current.__outsidePressBubbles = R;
|
|
6161
|
-
const j = new
|
|
6161
|
+
const j = new Kn();
|
|
6162
6162
|
function te(re) {
|
|
6163
6163
|
n.setOpen(!1, he(dt, re));
|
|
6164
6164
|
}
|
|
@@ -7315,9 +7315,9 @@ function Hs() {
|
|
|
7315
7315
|
activeTriggerElement: null,
|
|
7316
7316
|
popupElement: null,
|
|
7317
7317
|
positionerElement: null,
|
|
7318
|
-
activeTriggerProps:
|
|
7319
|
-
inactiveTriggerProps:
|
|
7320
|
-
popupProps:
|
|
7318
|
+
activeTriggerProps: lt,
|
|
7319
|
+
inactiveTriggerProps: lt,
|
|
7320
|
+
popupProps: lt
|
|
7321
7321
|
};
|
|
7322
7322
|
}
|
|
7323
7323
|
const js = {
|
|
@@ -7484,7 +7484,7 @@ function WC(e, t = {}) {
|
|
|
7484
7484
|
return;
|
|
7485
7485
|
const p = bt(f);
|
|
7486
7486
|
function m() {
|
|
7487
|
-
!n.select("open") &&
|
|
7487
|
+
!n.select("open") && st(f) && f === mn(vt(f)) && (s.current = !0);
|
|
7488
7488
|
}
|
|
7489
7489
|
function v() {
|
|
7490
7490
|
c.current = !0;
|
|
@@ -7972,7 +7972,7 @@ function Zp(e, t) {
|
|
|
7972
7972
|
if (V.current = !1, U.current = !0, ce.which === 229 || !K.current && ce.currentTarget === N.current)
|
|
7973
7973
|
return;
|
|
7974
7974
|
if (v && Ok(ce.key, w, h, R)) {
|
|
7975
|
-
Na(ce.key, re()) || ct(ce), n.setOpen(!1, he(Ro, ce.nativeEvent)),
|
|
7975
|
+
Na(ce.key, re()) || ct(ce), n.setOpen(!1, he(Ro, ce.nativeEvent)), st(i) && (g ? F?.events.emit("virtualfocus", i) : i.focus());
|
|
7976
7976
|
return;
|
|
7977
7977
|
}
|
|
7978
7978
|
const ge = $.current, pe = Ka(s, E), Ne = Bf(s, E);
|
|
@@ -8042,7 +8042,7 @@ function Zp(e, t) {
|
|
|
8042
8042
|
const ge = Ct(ce.nativeEvent);
|
|
8043
8043
|
if (ge && !Le(N.current, ge))
|
|
8044
8044
|
return;
|
|
8045
|
-
ct(ce), n.setOpen(!1, he(kn, ce.nativeEvent)),
|
|
8045
|
+
ct(ce), n.setOpen(!1, he(kn, ce.nativeEvent)), st(i) && i.focus();
|
|
8046
8046
|
return;
|
|
8047
8047
|
}
|
|
8048
8048
|
xe(ce);
|
|
@@ -8100,7 +8100,7 @@ function Qp(e, t = {}) {
|
|
|
8100
8100
|
const n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), o = n.useState("floatingId"), i = n.useState("domReferenceElement"), a = n.useState("floatingElement"), {
|
|
8101
8101
|
enabled: s = !0,
|
|
8102
8102
|
role: l = "dialog"
|
|
8103
|
-
} = t, c = Qr(), d = i?.id || c, f = u.useMemo(() => Ei(a)?.id || o, [a, o]), p = Pk.get(l) ?? l, v = _n() != null, h = u.useMemo(() => p === "tooltip" || l === "label" ?
|
|
8103
|
+
} = t, c = Qr(), d = i?.id || c, f = u.useMemo(() => Ei(a)?.id || o, [a, o]), p = Pk.get(l) ?? l, v = _n() != null, h = u.useMemo(() => p === "tooltip" || l === "label" ? lt : {
|
|
8104
8104
|
"aria-haspopup": p === "alertdialog" ? "dialog" : p,
|
|
8105
8105
|
"aria-expanded": "false",
|
|
8106
8106
|
...p === "listbox" && {
|
|
@@ -8229,7 +8229,7 @@ function Ks(e = {}) {
|
|
|
8229
8229
|
buffer: t = 0.5,
|
|
8230
8230
|
blockPointerEvents: n = !1,
|
|
8231
8231
|
requireIntent: r = !0
|
|
8232
|
-
} = e, o = new
|
|
8232
|
+
} = e, o = new Kn();
|
|
8233
8233
|
let i = !1, a = null, s = null, l = typeof performance < "u" ? performance.now() : 0;
|
|
8234
8234
|
function c(f, p) {
|
|
8235
8235
|
const m = performance.now(), v = m - l;
|
|
@@ -8429,7 +8429,7 @@ function HC(e) {
|
|
|
8429
8429
|
}
|
|
8430
8430
|
const Xs = /* @__PURE__ */ u.createContext(void 0);
|
|
8431
8431
|
process.env.NODE_ENV !== "production" && (Xs.displayName = "DialogRootContext");
|
|
8432
|
-
function
|
|
8432
|
+
function Jn(e) {
|
|
8433
8433
|
const t = u.useContext(Xs);
|
|
8434
8434
|
if (e === !1 && t === void 0)
|
|
8435
8435
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : Ae(27));
|
|
@@ -8503,7 +8503,7 @@ function Ik(e) {
|
|
|
8503
8503
|
handle: s,
|
|
8504
8504
|
triggerId: l,
|
|
8505
8505
|
defaultTriggerId: c = null
|
|
8506
|
-
} = e, d =
|
|
8506
|
+
} = e, d = Jn(), f = !!d, p = Pt(() => s?.store ?? new jC({
|
|
8507
8507
|
open: n ?? r,
|
|
8508
8508
|
activeTriggerId: l !== void 0 ? l : c,
|
|
8509
8509
|
modal: !0,
|
|
@@ -8582,7 +8582,7 @@ const Ak = {
|
|
|
8582
8582
|
...a
|
|
8583
8583
|
} = t, {
|
|
8584
8584
|
store: s
|
|
8585
|
-
} =
|
|
8585
|
+
} = Jn(), l = s.useState("open"), c = s.useState("nested"), d = s.useState("mounted"), f = s.useState("transitionStatus"), p = u.useMemo(() => ({
|
|
8586
8586
|
open: l,
|
|
8587
8587
|
transitionStatus: f
|
|
8588
8588
|
}), [l, f]);
|
|
@@ -8716,7 +8716,7 @@ function Tt(e = {}) {
|
|
|
8716
8716
|
};
|
|
8717
8717
|
}
|
|
8718
8718
|
function Wk(e) {
|
|
8719
|
-
return
|
|
8719
|
+
return st(e) && e.tagName === "BUTTON";
|
|
8720
8720
|
}
|
|
8721
8721
|
const Rr = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
8722
8722
|
const {
|
|
@@ -8727,7 +8727,7 @@ const Rr = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
8727
8727
|
...s
|
|
8728
8728
|
} = t, {
|
|
8729
8729
|
store: l
|
|
8730
|
-
} =
|
|
8730
|
+
} = Jn(), c = l.useState("open");
|
|
8731
8731
|
function d(v) {
|
|
8732
8732
|
c && l.setOpen(!1, he(EN, v.nativeEvent));
|
|
8733
8733
|
}
|
|
@@ -8760,7 +8760,7 @@ const Qs = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
8760
8760
|
...a
|
|
8761
8761
|
} = t, {
|
|
8762
8762
|
store: s
|
|
8763
|
-
} =
|
|
8763
|
+
} = Jn(), l = it(i);
|
|
8764
8764
|
return s.useSyncedValueWithCleanup("descriptionElementId", l), ve("p", t, {
|
|
8765
8765
|
ref: n,
|
|
8766
8766
|
props: [{
|
|
@@ -8784,10 +8784,10 @@ function jk() {
|
|
|
8784
8784
|
}
|
|
8785
8785
|
const Mo = "ArrowUp", Br = "ArrowDown", Pi = "ArrowLeft", No = "ArrowRight", Gi = "Home", Yi = "End", UC = /* @__PURE__ */ new Set([Pi, No]), Uk = /* @__PURE__ */ new Set([Pi, No, Gi, Yi]), GC = /* @__PURE__ */ new Set([Mo, Br]), Gk = /* @__PURE__ */ new Set([Mo, Br, Gi, Yi]), YC = /* @__PURE__ */ new Set([...UC, ...GC]), Yk = /* @__PURE__ */ new Set([...YC, Gi, Yi]), Js = /* @__PURE__ */ new Set([Mo, Br, Pi, No, Gi, Yi]), KC = "Shift", Kk = "Control", Xk = "Alt", Zk = "Meta", Qk = /* @__PURE__ */ new Set([KC, Kk, Xk, Zk]);
|
|
8786
8786
|
function Jk(e) {
|
|
8787
|
-
return
|
|
8787
|
+
return st(e) && e.tagName === "INPUT";
|
|
8788
8788
|
}
|
|
8789
8789
|
function qg(e) {
|
|
8790
|
-
return !!(Jk(e) && e.selectionStart != null ||
|
|
8790
|
+
return !!(Jk(e) && e.selectionStart != null || st(e) && e.tagName === "TEXTAREA");
|
|
8791
8791
|
}
|
|
8792
8792
|
function Hg(e, t, n, r) {
|
|
8793
8793
|
if (!e || !t || !t.scrollTo)
|
|
@@ -8845,7 +8845,7 @@ const eI = {
|
|
|
8845
8845
|
...s
|
|
8846
8846
|
} = t, {
|
|
8847
8847
|
store: l
|
|
8848
|
-
} =
|
|
8848
|
+
} = Jn(), c = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), v = l.useState("mounted"), h = l.useState("nested"), g = l.useState("nestedOpenDialogCount"), y = l.useState("open"), b = l.useState("openMethod"), C = l.useState("titleElementId"), E = l.useState("transitionStatus"), w = l.useState("role");
|
|
8849
8849
|
jk(), Nt({
|
|
8850
8850
|
open: y,
|
|
8851
8851
|
ref: l.context.popupRef,
|
|
@@ -8937,7 +8937,7 @@ const tl = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
8937
8937
|
...o
|
|
8938
8938
|
} = t, {
|
|
8939
8939
|
store: i
|
|
8940
|
-
} =
|
|
8940
|
+
} = Jn(), a = i.useState("mounted"), s = i.useState("modal");
|
|
8941
8941
|
return a || r ? /* @__PURE__ */ x(nm.Provider, {
|
|
8942
8942
|
value: r,
|
|
8943
8943
|
children: /* @__PURE__ */ oe(Ko, {
|
|
@@ -8959,7 +8959,7 @@ const nl = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
8959
8959
|
...a
|
|
8960
8960
|
} = t, {
|
|
8961
8961
|
store: s
|
|
8962
|
-
} =
|
|
8962
|
+
} = Jn(), l = it(i);
|
|
8963
8963
|
return s.useSyncedValueWithCleanup("titleElementId", l), ve("h2", t, {
|
|
8964
8964
|
ref: n,
|
|
8965
8965
|
props: [{
|
|
@@ -8978,7 +8978,7 @@ const rl = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
8978
8978
|
payload: l,
|
|
8979
8979
|
handle: c,
|
|
8980
8980
|
...d
|
|
8981
|
-
} = t, f =
|
|
8981
|
+
} = t, f = Jn(!0), p = c?.store ?? f?.store;
|
|
8982
8982
|
if (!p)
|
|
8983
8983
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : Ae(79));
|
|
8984
8984
|
const m = it(s), v = p.useState("floatingRootContext"), h = p.useState("isOpenedByTrigger", m), g = u.useRef(null), {
|
|
@@ -9462,7 +9462,7 @@ function fj({
|
|
|
9462
9462
|
}
|
|
9463
9463
|
);
|
|
9464
9464
|
}
|
|
9465
|
-
function
|
|
9465
|
+
function er(e) {
|
|
9466
9466
|
return ve(e.defaultTagName ?? "div", e, e);
|
|
9467
9467
|
}
|
|
9468
9468
|
const pI = Lt(
|
|
@@ -9489,7 +9489,7 @@ function mI({
|
|
|
9489
9489
|
render: n,
|
|
9490
9490
|
...r
|
|
9491
9491
|
}) {
|
|
9492
|
-
return
|
|
9492
|
+
return er({
|
|
9493
9493
|
defaultTagName: "span",
|
|
9494
9494
|
props: Mt(
|
|
9495
9495
|
{
|
|
@@ -9543,7 +9543,7 @@ function gj({
|
|
|
9543
9543
|
render: t,
|
|
9544
9544
|
...n
|
|
9545
9545
|
}) {
|
|
9546
|
-
return
|
|
9546
|
+
return er({
|
|
9547
9547
|
defaultTagName: "a",
|
|
9548
9548
|
props: Mt(
|
|
9549
9549
|
{
|
|
@@ -9684,7 +9684,7 @@ function wj({
|
|
|
9684
9684
|
render: t,
|
|
9685
9685
|
...n
|
|
9686
9686
|
}) {
|
|
9687
|
-
return
|
|
9687
|
+
return er({
|
|
9688
9688
|
defaultTagName: "div",
|
|
9689
9689
|
props: Mt(
|
|
9690
9690
|
{
|
|
@@ -10508,7 +10508,7 @@ function ot(e, t) {
|
|
|
10508
10508
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
10509
10509
|
return n + r;
|
|
10510
10510
|
}
|
|
10511
|
-
const
|
|
10511
|
+
const or = {
|
|
10512
10512
|
// Year
|
|
10513
10513
|
y(e, t) {
|
|
10514
10514
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
@@ -10591,7 +10591,7 @@ const rr = {
|
|
|
10591
10591
|
const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
10592
10592
|
return n.ordinalNumber(o, { unit: "year" });
|
|
10593
10593
|
}
|
|
10594
|
-
return
|
|
10594
|
+
return or.y(e, t);
|
|
10595
10595
|
},
|
|
10596
10596
|
// Local week-numbering year
|
|
10597
10597
|
Y: function(e, t, n, r) {
|
|
@@ -10690,7 +10690,7 @@ const rr = {
|
|
|
10690
10690
|
switch (t) {
|
|
10691
10691
|
case "M":
|
|
10692
10692
|
case "MM":
|
|
10693
|
-
return
|
|
10693
|
+
return or.M(e, t);
|
|
10694
10694
|
// 1st, 2nd, ..., 12th
|
|
10695
10695
|
case "Mo":
|
|
10696
10696
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
@@ -10751,7 +10751,7 @@ const rr = {
|
|
|
10751
10751
|
},
|
|
10752
10752
|
// Day of the month
|
|
10753
10753
|
d: function(e, t, n) {
|
|
10754
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
10754
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : or.d(e, t);
|
|
10755
10755
|
},
|
|
10756
10756
|
// Day of year
|
|
10757
10757
|
D: function(e, t, n) {
|
|
@@ -10986,11 +10986,11 @@ const rr = {
|
|
|
10986
10986
|
let r = e.getHours() % 12;
|
|
10987
10987
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
10988
10988
|
}
|
|
10989
|
-
return
|
|
10989
|
+
return or.h(e, t);
|
|
10990
10990
|
},
|
|
10991
10991
|
// Hour [0-23]
|
|
10992
10992
|
H: function(e, t, n) {
|
|
10993
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
10993
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : or.H(e, t);
|
|
10994
10994
|
},
|
|
10995
10995
|
// Hour [0-11]
|
|
10996
10996
|
K: function(e, t, n) {
|
|
@@ -11004,15 +11004,15 @@ const rr = {
|
|
|
11004
11004
|
},
|
|
11005
11005
|
// Minute
|
|
11006
11006
|
m: function(e, t, n) {
|
|
11007
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
11007
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : or.m(e, t);
|
|
11008
11008
|
},
|
|
11009
11009
|
// Second
|
|
11010
11010
|
s: function(e, t, n) {
|
|
11011
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
11011
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : or.s(e, t);
|
|
11012
11012
|
},
|
|
11013
11013
|
// Fraction of second
|
|
11014
11014
|
S: function(e, t) {
|
|
11015
|
-
return
|
|
11015
|
+
return or.S(e, t);
|
|
11016
11016
|
},
|
|
11017
11017
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
11018
11018
|
X: function(e, t, n) {
|
|
@@ -12003,9 +12003,9 @@ function z1(e) {
|
|
|
12003
12003
|
return ae.createElement(t.Dropdown, { ...e });
|
|
12004
12004
|
}
|
|
12005
12005
|
function $1(e) {
|
|
12006
|
-
const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...i } = e, { components: a, classNames: s, labels: { labelPrevious: l, labelNext: c } } = Ji(), d =
|
|
12006
|
+
const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...i } = e, { components: a, classNames: s, labels: { labelPrevious: l, labelNext: c } } = Ji(), d = at((p) => {
|
|
12007
12007
|
o && n?.(p);
|
|
12008
|
-
}, [o, n]), f =
|
|
12008
|
+
}, [o, n]), f = at((p) => {
|
|
12009
12009
|
r && t?.(p);
|
|
12010
12010
|
}, [r, t]);
|
|
12011
12011
|
return ae.createElement(
|
|
@@ -12463,7 +12463,7 @@ const ea = (e) => e instanceof HTMLElement ? e : null, ic = (e) => [
|
|
|
12463
12463
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
12464
12464
|
], SD = (e) => ea(e.querySelector("[data-animated-month]")), ac = (e) => ea(e.querySelector("[data-animated-caption]")), sc = (e) => ea(e.querySelector("[data-animated-weeks]")), RD = (e) => ea(e.querySelector("[data-animated-nav]")), OD = (e) => ea(e.querySelector("[data-animated-weekdays]"));
|
|
12465
12465
|
function PD(e, t, { classNames: n, months: r, focused: o, dateLib: i }) {
|
|
12466
|
-
const a =
|
|
12466
|
+
const a = Un(null), s = Un(r), l = Un(!1);
|
|
12467
12467
|
Rw(() => {
|
|
12468
12468
|
const c = s.current;
|
|
12469
12469
|
if (s.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
@@ -12907,17 +12907,17 @@ function GD(e) {
|
|
|
12907
12907
|
t.classNames
|
|
12908
12908
|
]);
|
|
12909
12909
|
t.today || (t = { ...t, today: a.today() });
|
|
12910
|
-
const { captionLayout: c, mode: d, navLayout: f, numberOfMonths: p = 1, onDayBlur: m, onDayClick: v, onDayFocus: h, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: b, onNextClick: C, onPrevClick: E, showWeekNumber: w, styles: S } = t, { formatCaption: R, formatDay: O, formatMonthDropdown: P, formatWeekNumber: D, formatWeekNumberHeader: T, formatWeekdayName: _, formatYearDropdown: M } = o, k = VD(t, a), { days: N, months: A, navStart: F, navEnd: I, previousMonth: B, nextMonth: $, goToMonth: W } = k, V = tD(N, t, F, I, a), { isSelected: z, select: H, selected: q } = UD(t, a) ?? {}, { blur: G, focused: U, isFocusTarget: Z, moveFocus: ie, setFocused: K } = BD(t, k, V, z ?? (() => !1), a), { labelDayButton: j, labelGridcell: te, labelGrid: ue, labelMonthDropdown: Y, labelNav: X, labelPrevious: J, labelNext: re, labelWeekday: xe, labelWeekNumber: de, labelWeekNumberHeader: ye, labelYearDropdown: ne } = i, me = At(() => wD(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), ce = d !== void 0 || v !== void 0, ge =
|
|
12910
|
+
const { captionLayout: c, mode: d, navLayout: f, numberOfMonths: p = 1, onDayBlur: m, onDayClick: v, onDayFocus: h, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: b, onNextClick: C, onPrevClick: E, showWeekNumber: w, styles: S } = t, { formatCaption: R, formatDay: O, formatMonthDropdown: P, formatWeekNumber: D, formatWeekNumberHeader: T, formatWeekdayName: _, formatYearDropdown: M } = o, k = VD(t, a), { days: N, months: A, navStart: F, navEnd: I, previousMonth: B, nextMonth: $, goToMonth: W } = k, V = tD(N, t, F, I, a), { isSelected: z, select: H, selected: q } = UD(t, a) ?? {}, { blur: G, focused: U, isFocusTarget: Z, moveFocus: ie, setFocused: K } = BD(t, k, V, z ?? (() => !1), a), { labelDayButton: j, labelGridcell: te, labelGrid: ue, labelMonthDropdown: Y, labelNav: X, labelPrevious: J, labelNext: re, labelWeekday: xe, labelWeekNumber: de, labelWeekNumberHeader: ye, labelYearDropdown: ne } = i, me = At(() => wD(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), ce = d !== void 0 || v !== void 0, ge = at(() => {
|
|
12911
12911
|
B && (W(B), E?.(B));
|
|
12912
|
-
}, [B, W, E]), pe =
|
|
12912
|
+
}, [B, W, E]), pe = at(() => {
|
|
12913
12913
|
$ && (W($), C?.($));
|
|
12914
|
-
}, [W, $, C]), Ne =
|
|
12914
|
+
}, [W, $, C]), Ne = at((Re, we) => (Oe) => {
|
|
12915
12915
|
Oe.preventDefault(), Oe.stopPropagation(), K(Re), !we.disabled && (H?.(Re.date, we, Oe), v?.(Re.date, we, Oe));
|
|
12916
|
-
}, [H, v, K]), Ie =
|
|
12916
|
+
}, [H, v, K]), Ie = at((Re, we) => (Oe) => {
|
|
12917
12917
|
K(Re), h?.(Re.date, we, Oe);
|
|
12918
|
-
}, [h, K]), Pe =
|
|
12918
|
+
}, [h, K]), Pe = at((Re, we) => (Oe) => {
|
|
12919
12919
|
G(), m?.(Re.date, we, Oe);
|
|
12920
|
-
}, [G, m]), $e =
|
|
12920
|
+
}, [G, m]), $e = at((Re, we) => (Oe) => {
|
|
12921
12921
|
const Me = {
|
|
12922
12922
|
ArrowLeft: [
|
|
12923
12923
|
Oe.shiftKey ? "month" : "day",
|
|
@@ -12940,20 +12940,20 @@ function GD(e) {
|
|
|
12940
12940
|
ie(ze, Fe);
|
|
12941
12941
|
}
|
|
12942
12942
|
g?.(Re.date, we, Oe);
|
|
12943
|
-
}, [ie, g, t.dir]), Ue =
|
|
12943
|
+
}, [ie, g, t.dir]), Ue = at((Re, we) => (Oe) => {
|
|
12944
12944
|
y?.(Re.date, we, Oe);
|
|
12945
|
-
}, [y]), Ye =
|
|
12945
|
+
}, [y]), Ye = at((Re, we) => (Oe) => {
|
|
12946
12946
|
b?.(Re.date, we, Oe);
|
|
12947
|
-
}, [b]), Ke =
|
|
12947
|
+
}, [b]), Ke = at((Re) => (we) => {
|
|
12948
12948
|
const Oe = Number(we.target.value), Me = a.setMonth(a.startOfMonth(Re), Oe);
|
|
12949
12949
|
W(Me);
|
|
12950
|
-
}, [a, W]), Te =
|
|
12950
|
+
}, [a, W]), Te = at((Re) => (we) => {
|
|
12951
12951
|
const Oe = Number(we.target.value), Me = a.setYear(a.startOfMonth(Re), Oe);
|
|
12952
12952
|
W(Me);
|
|
12953
12953
|
}, [a, W]), { className: fe, style: Ve } = At(() => ({
|
|
12954
12954
|
className: [l[ke.Root], t.className].filter(Boolean).join(" "),
|
|
12955
12955
|
style: { ...S?.[ke.Root], ...t.style }
|
|
12956
|
-
}), [l, t.className, t.style, S]), Qe = oD(t), Ge =
|
|
12956
|
+
}), [l, t.className, t.style, S]), Qe = oD(t), Ge = Un(null);
|
|
12957
12957
|
PD(Ge, !!t.animate, {
|
|
12958
12958
|
classNames: l,
|
|
12959
12959
|
months: A,
|
|
@@ -14507,7 +14507,7 @@ function GA(e) {
|
|
|
14507
14507
|
height: r,
|
|
14508
14508
|
x: 0,
|
|
14509
14509
|
y: 0
|
|
14510
|
-
}, f =
|
|
14510
|
+
}, f = Yn("recharts-surface", i);
|
|
14511
14511
|
return /* @__PURE__ */ ae.createElement("svg", Qf({}, qE(c, !0, "svg"), {
|
|
14512
14512
|
className: f,
|
|
14513
14513
|
width: n,
|
|
@@ -14871,7 +14871,7 @@ var XE = {
|
|
|
14871
14871
|
return y();
|
|
14872
14872
|
}, f = c.className, p = c.cx, m = c.cy, v = qE(c, !0);
|
|
14873
14873
|
return p === +p && m === +m && i === +i ? /* @__PURE__ */ ae.createElement("path", np({}, v, {
|
|
14874
|
-
className:
|
|
14874
|
+
className: Yn("recharts-symbols", f),
|
|
14875
14875
|
transform: "translate(".concat(p, ", ").concat(m, ")"),
|
|
14876
14876
|
d: d()
|
|
14877
14877
|
})) : null;
|
|
@@ -15065,7 +15065,7 @@ var nn = 32, wm = /* @__PURE__ */ (function(e) {
|
|
|
15065
15065
|
marginRight: 4
|
|
15066
15066
|
};
|
|
15067
15067
|
return i.map(function(m, v) {
|
|
15068
|
-
var h = m.formatter || l, g =
|
|
15068
|
+
var h = m.formatter || l, g = Yn(Ii(Ii({
|
|
15069
15069
|
"recharts-legend-item": !0
|
|
15070
15070
|
}, "legend-item-".concat(v), !0), "inactive", m.inactive));
|
|
15071
15071
|
if (m.type === "none")
|
|
@@ -16749,7 +16749,7 @@ var ML = function(t) {
|
|
|
16749
16749
|
whiteSpace: "nowrap"
|
|
16750
16750
|
}, i), w = af({
|
|
16751
16751
|
margin: 0
|
|
16752
|
-
}, c), S = !RA(h), R = S ? h : "", O =
|
|
16752
|
+
}, c), S = !RA(h), R = S ? h : "", O = Yn("recharts-default-tooltip", m), P = Yn("recharts-tooltip-label", v);
|
|
16753
16753
|
S && g && d !== void 0 && d !== null && (R = g(h, d));
|
|
16754
16754
|
var D = b ? {
|
|
16755
16755
|
role: "status",
|
|
@@ -16793,7 +16793,7 @@ var fi = "recharts-tooltip-wrapper", kL = {
|
|
|
16793
16793
|
};
|
|
16794
16794
|
function IL(e) {
|
|
16795
16795
|
var t = e.coordinate, n = e.translateX, r = e.translateY;
|
|
16796
|
-
return
|
|
16796
|
+
return Yn(fi, Aa(Aa(Aa(Aa({}, "".concat(fi, "-right"), pn(n) && t && pn(t.x) && n >= t.x), "".concat(fi, "-left"), pn(n) && t && pn(t.x) && n < t.x), "".concat(fi, "-bottom"), pn(r) && t && pn(t.y) && r >= t.y), "".concat(fi, "-top"), pn(r) && t && pn(t.y) && r < t.y));
|
|
16797
16797
|
}
|
|
16798
16798
|
function gx(e) {
|
|
16799
16799
|
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, o = e.offsetTopLeft, i = e.position, a = e.reverseDirection, s = e.tooltipDimension, l = e.viewBox, c = e.viewBoxDimension;
|
|
@@ -17442,7 +17442,7 @@ var vB = /* @__PURE__ */ Q0(function(e, t) {
|
|
|
17442
17442
|
var n = e.aspect, r = e.initialDimension, o = r === void 0 ? {
|
|
17443
17443
|
width: -1,
|
|
17444
17444
|
height: -1
|
|
17445
|
-
} : r, i = e.width, a = i === void 0 ? "100%" : i, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, d = c === void 0 ? 0 : c, f = e.minHeight, p = e.maxHeight, m = e.children, v = e.debounce, h = v === void 0 ? 0 : v, g = e.id, y = e.className, b = e.onResize, C = e.style, E = C === void 0 ? {} : C, w =
|
|
17445
|
+
} : r, i = e.width, a = i === void 0 ? "100%" : i, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, d = c === void 0 ? 0 : c, f = e.minHeight, p = e.maxHeight, m = e.children, v = e.debounce, h = v === void 0 ? 0 : v, g = e.id, y = e.className, b = e.onResize, C = e.style, E = C === void 0 ? {} : C, w = Un(null), S = Un();
|
|
17446
17446
|
S.current = b, J0(t, function() {
|
|
17447
17447
|
return Object.defineProperty(w.current, "current", {
|
|
17448
17448
|
get: function() {
|
|
@@ -17454,7 +17454,7 @@ var vB = /* @__PURE__ */ Q0(function(e, t) {
|
|
|
17454
17454
|
var R = Dt({
|
|
17455
17455
|
containerWidth: o.width,
|
|
17456
17456
|
containerHeight: o.height
|
|
17457
|
-
}), O = pB(R, 2), P = O[0], D = O[1], T =
|
|
17457
|
+
}), O = pB(R, 2), P = O[0], D = O[1], T = at(function(M, k) {
|
|
17458
17458
|
D(function(N) {
|
|
17459
17459
|
var A = Math.round(M), F = Math.round(k);
|
|
17460
17460
|
return N.containerWidth === A && N.containerHeight === F ? N : {
|
|
@@ -17505,7 +17505,7 @@ var vB = /* @__PURE__ */ Q0(function(e, t) {
|
|
|
17505
17505
|
}, [n, m, l, p, f, d, P, a]);
|
|
17506
17506
|
return /* @__PURE__ */ ae.createElement("div", {
|
|
17507
17507
|
id: g ? "".concat(g) : void 0,
|
|
17508
|
-
className:
|
|
17508
|
+
className: Yn("recharts-responsive-container", y),
|
|
17509
17509
|
style: Va(Va({}, E), {}, {
|
|
17510
17510
|
width: a,
|
|
17511
17511
|
height: l,
|
|
@@ -17761,7 +17761,7 @@ const wB = {
|
|
|
17761
17761
|
typeMismatch: !1,
|
|
17762
17762
|
valid: null,
|
|
17763
17763
|
valueMissing: !1
|
|
17764
|
-
},
|
|
17764
|
+
}, tr = {
|
|
17765
17765
|
valid(e) {
|
|
17766
17766
|
return e === null ? null : e ? {
|
|
17767
17767
|
[kx.valid]: ""
|
|
@@ -17779,7 +17779,7 @@ function CS(e) {
|
|
|
17779
17779
|
[Tx.unchecked]: ""
|
|
17780
17780
|
};
|
|
17781
17781
|
},
|
|
17782
|
-
...
|
|
17782
|
+
...tr
|
|
17783
17783
|
}), [e.indeterminate]);
|
|
17784
17784
|
}
|
|
17785
17785
|
const ES = /* @__PURE__ */ u.createContext({
|
|
@@ -17818,8 +17818,8 @@ const ES = /* @__PURE__ */ u.createContext({
|
|
|
17818
17818
|
current: !1
|
|
17819
17819
|
},
|
|
17820
17820
|
validation: {
|
|
17821
|
-
getValidationProps: (e =
|
|
17822
|
-
getInputValidationProps: (e =
|
|
17821
|
+
getValidationProps: (e = lt) => e,
|
|
17822
|
+
getInputValidationProps: (e = lt) => e,
|
|
17823
17823
|
inputRef: {
|
|
17824
17824
|
current: null
|
|
17825
17825
|
},
|
|
@@ -17938,7 +17938,7 @@ function SB() {
|
|
|
17938
17938
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." : Ae(14));
|
|
17939
17939
|
return e;
|
|
17940
17940
|
}
|
|
17941
|
-
function
|
|
17941
|
+
function cr(e, t) {
|
|
17942
17942
|
const n = u.useRef(e), r = le(t);
|
|
17943
17943
|
se(() => {
|
|
17944
17944
|
n.current !== e && r(n.current);
|
|
@@ -18023,7 +18023,7 @@ const RB = "data-parent", NS = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
18023
18023
|
const pe = u.useRef(null), Ne = Ft(c, pe, me.inputRef);
|
|
18024
18024
|
se(() => {
|
|
18025
18025
|
pe.current && (pe.current.indeterminate = ue, ce && O(!0));
|
|
18026
|
-
}, [ce, ue, O]),
|
|
18026
|
+
}, [ce, ue, O]), cr(ce, () => {
|
|
18027
18027
|
W && !p || (E(q), O(ce), R(ce !== M.initialValue), k() ? me.commit(ce) : me.commit(ce, !0));
|
|
18028
18028
|
});
|
|
18029
18029
|
const Ie = Mt(
|
|
@@ -18057,7 +18057,7 @@ const RB = "data-parent", NS = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
18057
18057
|
// To avoid this, we only set the value if it's defined
|
|
18058
18058
|
y !== void 0 ? {
|
|
18059
18059
|
value: (W ? ce && y : y) || ""
|
|
18060
|
-
} :
|
|
18060
|
+
} : lt,
|
|
18061
18061
|
$,
|
|
18062
18062
|
W ? me.getValidationProps : me.getInputValidationProps
|
|
18063
18063
|
), Pe = z ? !!te : ce, $e = z && ue || l;
|
|
@@ -18130,7 +18130,7 @@ const TS = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
18130
18130
|
const m = CS(s), v = u.useMemo(() => ({
|
|
18131
18131
|
...m,
|
|
18132
18132
|
...Bt,
|
|
18133
|
-
...
|
|
18133
|
+
...tr
|
|
18134
18134
|
}), [m]), h = i || l, g = ve("span", t, {
|
|
18135
18135
|
enabled: h,
|
|
18136
18136
|
ref: [n, f],
|
|
@@ -18331,7 +18331,7 @@ function _S() {
|
|
|
18331
18331
|
let _m = /* @__PURE__ */ (function(e) {
|
|
18332
18332
|
return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
|
|
18333
18333
|
})({});
|
|
18334
|
-
function
|
|
18334
|
+
function nr(e = {}) {
|
|
18335
18335
|
const {
|
|
18336
18336
|
label: t,
|
|
18337
18337
|
metadata: n,
|
|
@@ -18589,17 +18589,17 @@ function Lm() {
|
|
|
18589
18589
|
return u.useContext(Fm);
|
|
18590
18590
|
}
|
|
18591
18591
|
const AS = (e, t) => Object.is(e, t);
|
|
18592
|
-
function
|
|
18592
|
+
function Qn(e, t, n) {
|
|
18593
18593
|
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
18594
18594
|
}
|
|
18595
18595
|
function $r(e, t, n) {
|
|
18596
|
-
return !e || e.length === 0 ? !1 : e.some((r) => r === void 0 ? !1 :
|
|
18596
|
+
return !e || e.length === 0 ? !1 : e.some((r) => r === void 0 ? !1 : Qn(r, t, n));
|
|
18597
18597
|
}
|
|
18598
18598
|
function vr(e, t, n) {
|
|
18599
|
-
return !e || e.length === 0 ? -1 : e.findIndex((r) => r === void 0 ? !1 :
|
|
18599
|
+
return !e || e.length === 0 ? -1 : e.findIndex((r) => r === void 0 ? !1 : Qn(r, t, n));
|
|
18600
18600
|
}
|
|
18601
18601
|
function VS(e, t, n) {
|
|
18602
|
-
return e.filter((r) => !
|
|
18602
|
+
return e.filter((r) => !Qn(r, t, n));
|
|
18603
18603
|
}
|
|
18604
18604
|
const be = {
|
|
18605
18605
|
id: Q((e) => e.id),
|
|
@@ -18615,7 +18615,7 @@ const be = {
|
|
|
18615
18615
|
isActive: Q((e, t) => e.activeIndex === t),
|
|
18616
18616
|
isSelected: Q((e, t) => {
|
|
18617
18617
|
const n = e.isItemEqualToValue, r = e.selectedValue;
|
|
18618
|
-
return Array.isArray(r) ? r.some((o) =>
|
|
18618
|
+
return Array.isArray(r) ? r.some((o) => Qn(o, t, n)) : Qn(r, t, n);
|
|
18619
18619
|
}),
|
|
18620
18620
|
transitionStatus: Q((e) => e.transitionStatus),
|
|
18621
18621
|
popupProps: Q((e) => e.popupProps),
|
|
@@ -18958,7 +18958,7 @@ function HB(e) {
|
|
|
18958
18958
|
setIndices: nt,
|
|
18959
18959
|
onItemHighlighted: nt,
|
|
18960
18960
|
handleSelection: nt,
|
|
18961
|
-
getItemProps: () =>
|
|
18961
|
+
getItemProps: () => lt,
|
|
18962
18962
|
forceMount: nt,
|
|
18963
18963
|
requestSubmit: nt
|
|
18964
18964
|
})).current, Ut = l === "none" ? He : fe, da = u.useMemo(() => l === "none" ? Ut : Array.isArray(fe) ? fe.map((Ce) => hn(Ce, O)) : hn(fe, O), [Ut, O, l, fe]), zn = le(c), ii = le(n), fo = ee(_e, be.activeIndex), Il = ee(_e, be.selectedIndex), fa = ee(_e, be.positionerElement), Hh = ee(_e, be.listElement), ai = ee(_e, be.triggerElement), _l = ee(_e, be.inputElement), $n = ee(_e, be.inline), Nr = ee(_e, be.inputInsidePopup), D0 = gt(ai), {
|
|
@@ -19002,7 +19002,7 @@ function HB(e) {
|
|
|
19002
19002
|
}));
|
|
19003
19003
|
}
|
|
19004
19004
|
}), Jt = le((Ce, De) => {
|
|
19005
|
-
if (xe.current = De.reason ===
|
|
19005
|
+
if (xe.current = De.reason === sr, e.onInputValueChange?.(Ce, De), !De.isCanceled) {
|
|
19006
19006
|
if (De.reason === Fr) {
|
|
19007
19007
|
const We = Ce.trim() !== "";
|
|
19008
19008
|
We && ie(!0), ce.current = {
|
|
@@ -19014,7 +19014,7 @@ function HB(e) {
|
|
|
19014
19014
|
}), si = le((Ce, De) => {
|
|
19015
19015
|
we !== Ce && (De.reason === "escape-key" && Ye && ut.length === 0 && !_e.state.emptyRef.current && De.allowPropagation(), e.onOpenChange?.(Ce, De), !De.isCanceled && (!Ce && Z && ($e ? (j(ze), ze === "" && ie(!1)) : Pe && ($n || Nr ? Qt({
|
|
19016
19016
|
activeIndex: null
|
|
19017
|
-
}) : j(ze), Jt("", he(
|
|
19017
|
+
}) : j(ze), Jt("", he(sr, De.event)))), Oe(Ce)));
|
|
19018
19018
|
}), ma = le((Ce, De) => {
|
|
19019
19019
|
if (i?.(Ce, De), De.isCanceled)
|
|
19020
19020
|
return;
|
|
@@ -19037,7 +19037,7 @@ function HB(e) {
|
|
|
19037
19037
|
const kr = Array.isArray(fe) ? fe : [], X0 = $r(kr, We, _e.state.isItemEqualToValue) ? VS(kr, We, _e.state.isItemEqualToValue) : [...kr, We];
|
|
19038
19038
|
if (ma(X0, It), !(X.current ? X.current.value.trim() !== "" : !1))
|
|
19039
19039
|
return;
|
|
19040
|
-
_e.state.inputInsidePopup ? Jt("", he(
|
|
19040
|
+
_e.state.inputInsidePopup ? Jt("", he(sr, It.event)) : si(!1, It);
|
|
19041
19041
|
} else
|
|
19042
19042
|
ma(We, It), si(!1, It);
|
|
19043
19043
|
}), Vl = le(() => {
|
|
@@ -19051,12 +19051,12 @@ function HB(e) {
|
|
|
19051
19051
|
selectedIndex: null
|
|
19052
19052
|
} : {
|
|
19053
19053
|
activeIndex: null
|
|
19054
|
-
}), Pe && X.current && X.current.value !== "" && !xe.current && Jt("", he(
|
|
19054
|
+
}), Pe && X.current && X.current.value !== "" && !xe.current && Jt("", he(sr)), $e)
|
|
19055
19055
|
if (_e.state.inputInsidePopup)
|
|
19056
|
-
X.current && X.current.value !== "" && Jt("", he(
|
|
19056
|
+
X.current && X.current.value !== "" && Jt("", he(sr));
|
|
19057
19057
|
else {
|
|
19058
19058
|
const Ce = St(fe, R);
|
|
19059
|
-
X.current && X.current.value !== Ce && Jt(Ce, he(Ce === "" ?
|
|
19059
|
+
X.current && X.current.value !== Ce && Jt(Ce, he(Ce === "" ? sr : dt));
|
|
19060
19060
|
}
|
|
19061
19061
|
}), B0 = u.useMemo(() => $n && fa ? {
|
|
19062
19062
|
current: fa.closest('[role="dialog"]')
|
|
@@ -19141,9 +19141,9 @@ function HB(e) {
|
|
|
19141
19141
|
Ye && Te && ut.length === 0 && Qt({
|
|
19142
19142
|
activeIndex: null
|
|
19143
19143
|
});
|
|
19144
|
-
}, [Ye, Te, ut.length, Qt]),
|
|
19144
|
+
}, [Ye, Te, ut.length, Qt]), cr(ze, () => {
|
|
19145
19145
|
!we || ze === "" || ze === String(Ge) || ie(!0);
|
|
19146
|
-
}),
|
|
19146
|
+
}), cr(fe, () => {
|
|
19147
19147
|
if (l !== "none" && (I(Ie), B(fe !== $.initialValue), W() ? q.commit(fe) : q.commit(fe, !0), Pe && _e.state.selectedIndex !== null && (!Array.isArray(fe) || fe.length === 0) && Qt({
|
|
19148
19148
|
activeIndex: null,
|
|
19149
19149
|
selectedIndex: null
|
|
@@ -19151,9 +19151,9 @@ function HB(e) {
|
|
|
19151
19151
|
const Ce = St(fe, R);
|
|
19152
19152
|
He !== Ce && Jt(Ce, he(dt));
|
|
19153
19153
|
}
|
|
19154
|
-
}),
|
|
19154
|
+
}), cr(He, () => {
|
|
19155
19155
|
l === "none" && (I(Ie), B(He !== $.initialValue), W() ? q.commit(He) : q.commit(He, !0));
|
|
19156
|
-
}),
|
|
19156
|
+
}), cr(g, () => {
|
|
19157
19157
|
if (!$e || Ue || Nr || Z)
|
|
19158
19158
|
return;
|
|
19159
19159
|
const Ce = St(fe, R);
|
|
@@ -19368,7 +19368,7 @@ function Bm(e) {
|
|
|
19368
19368
|
}
|
|
19369
19369
|
const Fa = 2, jB = {
|
|
19370
19370
|
...Fo,
|
|
19371
|
-
...
|
|
19371
|
+
...tr
|
|
19372
19372
|
}, $S = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
19373
19373
|
const {
|
|
19374
19374
|
render: r,
|
|
@@ -19485,7 +19485,7 @@ function Wm(e) {
|
|
|
19485
19485
|
}
|
|
19486
19486
|
const UB = {
|
|
19487
19487
|
...Fo,
|
|
19488
|
-
...
|
|
19488
|
+
...tr,
|
|
19489
19489
|
popupSide: (e) => e ? {
|
|
19490
19490
|
"data-popup-side": e
|
|
19491
19491
|
} : null,
|
|
@@ -19587,7 +19587,7 @@ const UB = {
|
|
|
19587
19587
|
onChange(K) {
|
|
19588
19588
|
if (q.current) {
|
|
19589
19589
|
const Y = K.currentTarget.value;
|
|
19590
|
-
H(Y), Y === "" && !b.state.openOnInputClick && !b.state.inputInsidePopup && b.state.setOpen(!1, he(
|
|
19590
|
+
H(Y), Y === "" && !b.state.openOnInputClick && !b.state.inputInsidePopup && b.state.setOpen(!1, he(sr, K.nativeEvent));
|
|
19591
19591
|
const X = Y.trim(), J = B && X !== "";
|
|
19592
19592
|
!O && !W && X !== "" && (b.state.setOpen(!0, he(Fr, K.nativeEvent)), B || b.state.setIndices({
|
|
19593
19593
|
activeIndex: null,
|
|
@@ -19601,7 +19601,7 @@ const UB = {
|
|
|
19601
19601
|
return;
|
|
19602
19602
|
}
|
|
19603
19603
|
b.state.setInputValue(K.currentTarget.value, he(Fr, K.nativeEvent));
|
|
19604
|
-
const j = K.currentTarget.value === "", te = he(
|
|
19604
|
+
const j = K.currentTarget.value === "", te = he(sr, K.nativeEvent);
|
|
19605
19605
|
j && !b.state.inputInsidePopup && (D === "single" && b.state.setSelectedValue(null, te), b.state.openOnInputClick || b.state.setOpen(!1, te));
|
|
19606
19606
|
const ue = K.currentTarget.value.trim();
|
|
19607
19607
|
!O && !W && ue !== "" && (b.state.setOpen(!0, he(Fr, K.nativeEvent)), B || b.state.setIndices({
|
|
@@ -19853,7 +19853,7 @@ const ZB = (e) => ({
|
|
|
19853
19853
|
element: c,
|
|
19854
19854
|
padding: d = 0,
|
|
19855
19855
|
offsetParent: f = "real"
|
|
19856
|
-
} =
|
|
19856
|
+
} = Xn(e, t) || {};
|
|
19857
19857
|
if (c == null)
|
|
19858
19858
|
return {};
|
|
19859
19859
|
const p = nC(d), m = {
|
|
@@ -20281,7 +20281,7 @@ const YS = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
20281
20281
|
});
|
|
20282
20282
|
process.env.NODE_ENV !== "production" && (YS.displayName = "ComboboxPositioner");
|
|
20283
20283
|
function io(e) {
|
|
20284
|
-
return e === "starting" ? wN :
|
|
20284
|
+
return e === "starting" ? wN : lt;
|
|
20285
20285
|
}
|
|
20286
20286
|
const ez = {
|
|
20287
20287
|
...Xt,
|
|
@@ -20410,7 +20410,7 @@ const eR = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
20410
20410
|
disabled: s = !1,
|
|
20411
20411
|
nativeButton: l = !1,
|
|
20412
20412
|
...c
|
|
20413
|
-
} = t, d = u.useRef(!1), f = u.useRef(null), p =
|
|
20413
|
+
} = t, d = u.useRef(!1), f = u.useRef(null), p = nr({
|
|
20414
20414
|
index: a,
|
|
20415
20415
|
textRef: f,
|
|
20416
20416
|
indexGuessBehavior: _m.GuessFromOrder
|
|
@@ -20439,7 +20439,7 @@ const eR = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
20439
20439
|
if (!R || T)
|
|
20440
20440
|
return;
|
|
20441
20441
|
const H = m.state.selectedValue, q = Array.isArray(H) ? H[H.length - 1] : H;
|
|
20442
|
-
|
|
20442
|
+
Qn(q, i, E) && m.set("selectedIndex", S);
|
|
20443
20443
|
}, [R, T, g, m, S, i, E]);
|
|
20444
20444
|
const A = u.useMemo(() => ({
|
|
20445
20445
|
disabled: s,
|
|
@@ -20800,7 +20800,7 @@ const cR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
20800
20800
|
} = WS(), c = ee(a, be.disabled), d = ee(a, be.readOnly), f = ee(a, be.selectedValue), {
|
|
20801
20801
|
ref: p,
|
|
20802
20802
|
index: m
|
|
20803
|
-
} =
|
|
20803
|
+
} = nr();
|
|
20804
20804
|
function v(b) {
|
|
20805
20805
|
let C = m;
|
|
20806
20806
|
if (b.key === "ArrowLeft")
|
|
@@ -21015,7 +21015,7 @@ const Cl = {
|
|
|
21015
21015
|
defaultChecked: f,
|
|
21016
21016
|
onCheckedChange: p,
|
|
21017
21017
|
...m
|
|
21018
|
-
} = t, v =
|
|
21018
|
+
} = t, v = nr({
|
|
21019
21019
|
label: a
|
|
21020
21020
|
}), h = ia(!0), g = it(i), {
|
|
21021
21021
|
store: y
|
|
@@ -21158,7 +21158,7 @@ const gR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
21158
21158
|
disabled: l = !1,
|
|
21159
21159
|
closeOnClick: c = !0,
|
|
21160
21160
|
...d
|
|
21161
|
-
} = t, f =
|
|
21161
|
+
} = t, f = nr({
|
|
21162
21162
|
label: a
|
|
21163
21163
|
}), p = ia(!0), m = it(i), {
|
|
21164
21164
|
store: v
|
|
@@ -21472,7 +21472,7 @@ const wR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
21472
21472
|
closeOnClick: c = !1,
|
|
21473
21473
|
value: d,
|
|
21474
21474
|
...f
|
|
21475
|
-
} = t, p =
|
|
21475
|
+
} = t, p = nr({
|
|
21476
21476
|
label: a
|
|
21477
21477
|
}), m = ia(!0), v = it(i), {
|
|
21478
21478
|
store: h
|
|
@@ -21649,7 +21649,7 @@ function mz() {
|
|
|
21649
21649
|
floatingTreeRoot: new Dp(),
|
|
21650
21650
|
floatingNodeId: void 0,
|
|
21651
21651
|
floatingParentNodeId: null,
|
|
21652
|
-
itemProps:
|
|
21652
|
+
itemProps: lt,
|
|
21653
21653
|
keyboardEventRelay: void 0,
|
|
21654
21654
|
closeDelay: 0
|
|
21655
21655
|
};
|
|
@@ -21913,7 +21913,7 @@ function PR(e = {}) {
|
|
|
21913
21913
|
} = tm(), {
|
|
21914
21914
|
ref: o,
|
|
21915
21915
|
index: i
|
|
21916
|
-
} =
|
|
21916
|
+
} = nr(e), a = n === i, s = u.useRef(null), l = Ft(o, s);
|
|
21917
21917
|
return {
|
|
21918
21918
|
compositeProps: u.useMemo(() => ({
|
|
21919
21919
|
tabIndex: a ? 0 : -1,
|
|
@@ -21936,7 +21936,7 @@ function sh(e) {
|
|
|
21936
21936
|
const {
|
|
21937
21937
|
render: t,
|
|
21938
21938
|
className: n,
|
|
21939
|
-
state: r =
|
|
21939
|
+
state: r = lt,
|
|
21940
21940
|
props: o = zt,
|
|
21941
21941
|
refs: i = zt,
|
|
21942
21942
|
metadata: a,
|
|
@@ -21957,7 +21957,7 @@ function sh(e) {
|
|
|
21957
21957
|
});
|
|
21958
21958
|
}
|
|
21959
21959
|
function MR(e) {
|
|
21960
|
-
if (
|
|
21960
|
+
if (st(e) && e.hasAttribute("data-rootownerid"))
|
|
21961
21961
|
return e.getAttribute("data-rootownerid") ?? void 0;
|
|
21962
21962
|
if (!Mn(e))
|
|
21963
21963
|
return MR(Tn(e));
|
|
@@ -21979,7 +21979,7 @@ function gz(e) {
|
|
|
21979
21979
|
onClick: (i) => {
|
|
21980
21980
|
o.current && (o.current = !1, i.preventBaseUIHandler());
|
|
21981
21981
|
}
|
|
21982
|
-
} :
|
|
21982
|
+
} : lt, [t, n, r]);
|
|
21983
21983
|
}
|
|
21984
21984
|
const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
21985
21985
|
const {
|
|
@@ -22065,7 +22065,7 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
22065
22065
|
}), U = An([H, q]), Z = w.type === "menubar", ie = u.useMemo(() => ({
|
|
22066
22066
|
disabled: k,
|
|
22067
22067
|
open: C
|
|
22068
|
-
}), [k, C]), K = h.useState("triggerProps", _), j = [F, n, A, T, E], te = [U.getReferenceProps(), V ??
|
|
22068
|
+
}), [k, C]), K = h.useState("triggerProps", _), j = [F, n, A, T, E], te = [U.getReferenceProps(), V ?? lt, K, {
|
|
22069
22069
|
"aria-haspopup": "menu",
|
|
22070
22070
|
id: g,
|
|
22071
22071
|
onMouseDown: (re) => {
|
|
@@ -22115,12 +22115,12 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
22115
22115
|
props: te,
|
|
22116
22116
|
stateAttributesMapping: Fo
|
|
22117
22117
|
}) : C ? /* @__PURE__ */ oe(u.Fragment, {
|
|
22118
|
-
children: [/* @__PURE__ */ x(
|
|
22118
|
+
children: [/* @__PURE__ */ x(Zn, {
|
|
22119
22119
|
ref: ue,
|
|
22120
22120
|
onFocus: Y
|
|
22121
22121
|
}, `${g}-pre-focus-guard`), /* @__PURE__ */ x(u.Fragment, {
|
|
22122
22122
|
children: J
|
|
22123
|
-
}, g), /* @__PURE__ */ x(
|
|
22123
|
+
}, g), /* @__PURE__ */ x(Zn, {
|
|
22124
22124
|
ref: h.context.triggerFocusTargetRef,
|
|
22125
22125
|
onFocus: X
|
|
22126
22126
|
}, `${g}-post-focus-guard`)]
|
|
@@ -22161,7 +22161,7 @@ const TR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
22161
22161
|
closeDelay: d = 0,
|
|
22162
22162
|
disabled: f = !1,
|
|
22163
22163
|
...p
|
|
22164
|
-
} = t, m =
|
|
22164
|
+
} = t, m = nr(), v = ia(), {
|
|
22165
22165
|
store: h
|
|
22166
22166
|
} = xn(), g = it(a), y = h.useState("open"), b = h.useState("floatingRootContext"), C = h.useState("floatingTreeRoot"), E = $C(g, h), w = u.useCallback((q) => {
|
|
22167
22167
|
const G = E(q);
|
|
@@ -22244,7 +22244,7 @@ function kR(e) {
|
|
|
22244
22244
|
handle: c,
|
|
22245
22245
|
triggerId: d,
|
|
22246
22246
|
defaultTriggerId: f = null
|
|
22247
|
-
} = e, p =
|
|
22247
|
+
} = e, p = Jn(!0), m = !!p, v = Pt(() => c?.store ?? new jC({
|
|
22248
22248
|
open: n ?? r,
|
|
22249
22249
|
activeTriggerId: d !== void 0 ? d : f,
|
|
22250
22250
|
modal: s,
|
|
@@ -22363,7 +22363,7 @@ const _R = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
22363
22363
|
A.currentTarget.tagName === "INPUT" && A.key === "Enter" && (b(!0), O.commit(A.currentTarget.value));
|
|
22364
22364
|
}
|
|
22365
22365
|
}, O.getInputValidationProps(), f],
|
|
22366
|
-
stateAttributesMapping:
|
|
22366
|
+
stateAttributesMapping: tr
|
|
22367
22367
|
});
|
|
22368
22368
|
});
|
|
22369
22369
|
process.env.NODE_ENV !== "production" && (_R.displayName = "FieldControl");
|
|
@@ -22504,7 +22504,7 @@ function AR(e) {
|
|
|
22504
22504
|
className: n,
|
|
22505
22505
|
refs: r = zt,
|
|
22506
22506
|
props: o = zt,
|
|
22507
|
-
state: i =
|
|
22507
|
+
state: i = lt,
|
|
22508
22508
|
stateAttributesMapping: a,
|
|
22509
22509
|
highlightedIndex: s,
|
|
22510
22510
|
onHighlightedIndexChange: l,
|
|
@@ -22585,7 +22585,7 @@ function Sz(e, t, n) {
|
|
|
22585
22585
|
function zx(e) {
|
|
22586
22586
|
const t = qt(e);
|
|
22587
22587
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
22588
|
-
const o =
|
|
22588
|
+
const o = st(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r;
|
|
22589
22589
|
return (_o(n) !== i || _o(r) !== a) && (n = i, r = a), {
|
|
22590
22590
|
width: n,
|
|
22591
22591
|
height: r
|
|
@@ -22642,7 +22642,7 @@ class uh extends ji {
|
|
|
22642
22642
|
onOpenChangeComplete: void 0,
|
|
22643
22643
|
triggerFocusTargetRef: /* @__PURE__ */ u.createRef(),
|
|
22644
22644
|
beforeContentFocusGuardRef: /* @__PURE__ */ u.createRef(),
|
|
22645
|
-
stickIfOpenTimeout: new
|
|
22645
|
+
stickIfOpenTimeout: new Kn(),
|
|
22646
22646
|
triggerElements: new Zo()
|
|
22647
22647
|
}, Oz);
|
|
22648
22648
|
}
|
|
@@ -22851,12 +22851,12 @@ const Mz = 300, VR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
22851
22851
|
}
|
|
22852
22852
|
});
|
|
22853
22853
|
return y ? /* @__PURE__ */ oe(u.Fragment, {
|
|
22854
|
-
children: [/* @__PURE__ */ x(
|
|
22854
|
+
children: [/* @__PURE__ */ x(Zn, {
|
|
22855
22855
|
ref: B,
|
|
22856
22856
|
onFocus: $
|
|
22857
22857
|
}), /* @__PURE__ */ x(u.Fragment, {
|
|
22858
22858
|
children: I
|
|
22859
|
-
}, g), /* @__PURE__ */ x(
|
|
22859
|
+
}, g), /* @__PURE__ */ x(Zn, {
|
|
22860
22860
|
ref: h.context.triggerFocusTargetRef,
|
|
22861
22861
|
onFocus: W
|
|
22862
22862
|
})]
|
|
@@ -23006,7 +23006,7 @@ function BR(e) {
|
|
|
23006
23006
|
position: "absolute",
|
|
23007
23007
|
[l === "top" ? "bottom" : "top"]: "0",
|
|
23008
23008
|
[b ? "right" : "left"]: "0"
|
|
23009
|
-
} :
|
|
23009
|
+
} : lt;
|
|
23010
23010
|
}, [l, c]);
|
|
23011
23011
|
se(() => {
|
|
23012
23012
|
if (!o || !i() || !kz) {
|
|
@@ -23131,7 +23131,7 @@ const _z = {
|
|
|
23131
23131
|
initialFocus: N,
|
|
23132
23132
|
returnFocus: a,
|
|
23133
23133
|
restoreFocus: "popup",
|
|
23134
|
-
previousFocusableElement:
|
|
23134
|
+
previousFocusableElement: st(P) ? P : void 0,
|
|
23135
23135
|
nextFocusableElement: l.context.triggerFocusTargetRef,
|
|
23136
23136
|
beforeContentFocusGuardRef: l.context.beforeContentFocusGuardRef,
|
|
23137
23137
|
children: W
|
|
@@ -23363,7 +23363,7 @@ const pp = {
|
|
|
23363
23363
|
};
|
|
23364
23364
|
},
|
|
23365
23365
|
...Bt,
|
|
23366
|
-
...
|
|
23366
|
+
...tr
|
|
23367
23367
|
}, mh = /* @__PURE__ */ u.createContext({
|
|
23368
23368
|
disabled: void 0,
|
|
23369
23369
|
readOnly: void 0,
|
|
@@ -23479,7 +23479,7 @@ const KR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
23479
23479
|
disabled: N,
|
|
23480
23480
|
readOnly: A,
|
|
23481
23481
|
checked: I
|
|
23482
|
-
}), [D, N, A, I, F]), ie = u.useMemo(() => Z, [Z]), K = y !== nt, j = [n, w, B, G], te = [H, k, E?.getValidationProps ??
|
|
23482
|
+
}), [D, N, A, I, F]), ie = u.useMemo(() => Z, [Z]), K = y !== nt, j = [n, w, B, G], te = [H, k, E?.getValidationProps ?? lt, p, q], ue = ve("span", t, {
|
|
23483
23483
|
enabled: !K,
|
|
23484
23484
|
state: Z,
|
|
23485
23485
|
ref: j,
|
|
@@ -23577,7 +23577,7 @@ const Lz = [KC], ZR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
23577
23577
|
controlRef: $,
|
|
23578
23578
|
name: k,
|
|
23579
23579
|
getValue: () => A ?? null
|
|
23580
|
-
}),
|
|
23580
|
+
}), cr(A, () => {
|
|
23581
23581
|
T(k), R(A !== P.initialValue), O(A != null), y() ? S.commit(A) : S.commit(A, !0);
|
|
23582
23582
|
});
|
|
23583
23583
|
const [V, z] = u.useState(!1), H = le((te) => {
|
|
@@ -23639,7 +23639,7 @@ const Lz = [KC], ZR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
23639
23639
|
state: ie,
|
|
23640
23640
|
props: [j, S.getValidationProps, v],
|
|
23641
23641
|
refs: [n],
|
|
23642
|
-
stateAttributesMapping:
|
|
23642
|
+
stateAttributesMapping: tr,
|
|
23643
23643
|
enableHomeAndEndKeys: !1,
|
|
23644
23644
|
modifierKeys: Lz
|
|
23645
23645
|
}), /* @__PURE__ */ x("input", {
|
|
@@ -23690,7 +23690,7 @@ const Be = {
|
|
|
23690
23690
|
isActive: Q((e, t) => e.activeIndex === t),
|
|
23691
23691
|
isSelected: Q((e, t, n) => {
|
|
23692
23692
|
const r = e.isItemEqualToValue, o = e.value;
|
|
23693
|
-
return e.multiple ? Array.isArray(o) && o.some((i) =>
|
|
23693
|
+
return e.multiple ? Array.isArray(o) && o.some((i) => Qn(i, n, r)) : e.selectedIndex === t && e.selectedIndex !== null ? !0 : Qn(o, n, r);
|
|
23694
23694
|
}),
|
|
23695
23695
|
isSelectedByFocus: Q((e, t) => e.selectedIndex === t),
|
|
23696
23696
|
popupProps: Q((e) => e.popupProps),
|
|
@@ -23823,7 +23823,7 @@ function Bz(e) {
|
|
|
23823
23823
|
}
|
|
23824
23824
|
const xt = vr(Xe, B, E);
|
|
23825
23825
|
ne.set("selectedIndex", xt === -1 ? null : xt);
|
|
23826
|
-
}, [y, W, B, ie, E, ne]),
|
|
23826
|
+
}, [y, W, B, ie, E, ne]), cr(B, () => {
|
|
23827
23827
|
R(I), O(B !== D.initialValue), P() ? k.commit(B) : k.commit(B, !0);
|
|
23828
23828
|
});
|
|
23829
23829
|
const Ue = le((je, Xe) => {
|
|
@@ -23994,7 +23994,7 @@ function Bz(e) {
|
|
|
23994
23994
|
}
|
|
23995
23995
|
const za = 2, zz = {
|
|
23996
23996
|
...Fo,
|
|
23997
|
-
...
|
|
23997
|
+
...tr,
|
|
23998
23998
|
value: () => null
|
|
23999
23999
|
}, JR = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
24000
24000
|
const {
|
|
@@ -24519,7 +24519,7 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
24519
24519
|
disabled: s = !1,
|
|
24520
24520
|
nativeButton: l = !1,
|
|
24521
24521
|
...c
|
|
24522
|
-
} = t, d = u.useRef(null), f =
|
|
24522
|
+
} = t, d = u.useRef(null), f = nr({
|
|
24523
24523
|
label: a,
|
|
24524
24524
|
textRef: d,
|
|
24525
24525
|
indexGuessBehavior: _m.GuessFromOrder
|
|
@@ -24547,7 +24547,7 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
24547
24547
|
return;
|
|
24548
24548
|
const G = p.state.value;
|
|
24549
24549
|
let U = G;
|
|
24550
|
-
E && Array.isArray(G) && G.length > 0 && (U = G[G.length - 1]), U !== void 0 &&
|
|
24550
|
+
E && Array.isArray(G) && G.length > 0 && (U = G[G.length - 1]), U !== void 0 && Qn(U, i, D) && p.set("selectedIndex", T);
|
|
24551
24551
|
}, [_, T, E, D, p, i]);
|
|
24552
24552
|
const N = u.useMemo(() => ({
|
|
24553
24553
|
disabled: s,
|
|
@@ -24886,7 +24886,7 @@ let qx = /* @__PURE__ */ (function(e) {
|
|
|
24886
24886
|
return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
24887
24887
|
})({});
|
|
24888
24888
|
const bO = {
|
|
24889
|
-
...
|
|
24889
|
+
...tr,
|
|
24890
24890
|
checked(e) {
|
|
24891
24891
|
return e ? {
|
|
24892
24892
|
[qx.checked]: ""
|
|
@@ -24945,7 +24945,7 @@ const bO = {
|
|
|
24945
24945
|
getValue: () => V
|
|
24946
24946
|
}), se(() => {
|
|
24947
24947
|
F.current && S(F.current.checked);
|
|
24948
|
-
}, [F, S]),
|
|
24948
|
+
}, [F, S]), cr(V, () => {
|
|
24949
24949
|
y(N), E(V !== w.initialValue), S(V), O() ? _.commit(V) : _.commit(V, !0);
|
|
24950
24950
|
});
|
|
24951
24951
|
const {
|
|
@@ -25269,7 +25269,7 @@ const CO = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
25269
25269
|
}), [v, o]), {
|
|
25270
25270
|
ref: g,
|
|
25271
25271
|
index: y
|
|
25272
|
-
} =
|
|
25272
|
+
} = nr({
|
|
25273
25273
|
metadata: h
|
|
25274
25274
|
}), b = o !== l, C = c(o), E = u.useMemo(() => ({
|
|
25275
25275
|
hidden: b,
|
|
@@ -26445,7 +26445,7 @@ function R$(...e) {
|
|
|
26445
26445
|
var Fi = globalThis?.document ? u.useLayoutEffect : () => {
|
|
26446
26446
|
}, O$ = u[" useId ".trim().toString()] || (() => {
|
|
26447
26447
|
}), P$ = 0;
|
|
26448
|
-
function
|
|
26448
|
+
function Gn(e) {
|
|
26449
26449
|
const [t, n] = u.useState(O$());
|
|
26450
26450
|
return Fi(() => {
|
|
26451
26451
|
n((r) => r ?? String(P$++));
|
|
@@ -26745,15 +26745,15 @@ var G$ = [
|
|
|
26745
26745
|
let h = function(C) {
|
|
26746
26746
|
if (m.paused || !s) return;
|
|
26747
26747
|
const E = C.target;
|
|
26748
|
-
s.contains(E) ? f.current = E :
|
|
26748
|
+
s.contains(E) ? f.current = E : ar(f.current, { select: !0 });
|
|
26749
26749
|
}, g = function(C) {
|
|
26750
26750
|
if (m.paused || !s) return;
|
|
26751
26751
|
const E = C.relatedTarget;
|
|
26752
|
-
E !== null && (s.contains(E) ||
|
|
26752
|
+
E !== null && (s.contains(E) || ar(f.current, { select: !0 }));
|
|
26753
26753
|
}, y = function(C) {
|
|
26754
26754
|
if (document.activeElement === document.body)
|
|
26755
26755
|
for (const w of C)
|
|
26756
|
-
w.removedNodes.length > 0 &&
|
|
26756
|
+
w.removedNodes.length > 0 && ar(s);
|
|
26757
26757
|
};
|
|
26758
26758
|
document.addEventListener("focusin", h), document.addEventListener("focusout", g);
|
|
26759
26759
|
const b = new MutationObserver(y);
|
|
@@ -26767,12 +26767,12 @@ var G$ = [
|
|
|
26767
26767
|
const h = document.activeElement;
|
|
26768
26768
|
if (!s.contains(h)) {
|
|
26769
26769
|
const y = new CustomEvent(gf, Xx);
|
|
26770
|
-
s.addEventListener(gf, c), s.dispatchEvent(y), y.defaultPrevented || (X$(tW($O(s)), { select: !0 }), document.activeElement === h &&
|
|
26770
|
+
s.addEventListener(gf, c), s.dispatchEvent(y), y.defaultPrevented || (X$(tW($O(s)), { select: !0 }), document.activeElement === h && ar(s));
|
|
26771
26771
|
}
|
|
26772
26772
|
return () => {
|
|
26773
26773
|
s.removeEventListener(gf, c), setTimeout(() => {
|
|
26774
26774
|
const y = new CustomEvent(bf, Xx);
|
|
26775
|
-
s.addEventListener(bf, d), s.dispatchEvent(y), y.defaultPrevented ||
|
|
26775
|
+
s.addEventListener(bf, d), s.dispatchEvent(y), y.defaultPrevented || ar(h ?? document.body, { select: !0 }), s.removeEventListener(bf, d), Qx.remove(m);
|
|
26776
26776
|
}, 0);
|
|
26777
26777
|
};
|
|
26778
26778
|
}
|
|
@@ -26783,7 +26783,7 @@ var G$ = [
|
|
|
26783
26783
|
const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
|
|
26784
26784
|
if (g && y) {
|
|
26785
26785
|
const b = h.currentTarget, [C, E] = Z$(b);
|
|
26786
|
-
C && E ? !h.shiftKey && y === E ? (h.preventDefault(), n &&
|
|
26786
|
+
C && E ? !h.shiftKey && y === E ? (h.preventDefault(), n && ar(C, { select: !0 })) : h.shiftKey && y === C && (h.preventDefault(), n && ar(E, { select: !0 })) : y === b && h.preventDefault();
|
|
26787
26787
|
}
|
|
26788
26788
|
},
|
|
26789
26789
|
[n, r, m.paused]
|
|
@@ -26794,7 +26794,7 @@ zO.displayName = K$;
|
|
|
26794
26794
|
function X$(e, { select: t = !1 } = {}) {
|
|
26795
26795
|
const n = document.activeElement;
|
|
26796
26796
|
for (const r of e)
|
|
26797
|
-
if (
|
|
26797
|
+
if (ar(r, { select: t }), document.activeElement !== n) return;
|
|
26798
26798
|
}
|
|
26799
26799
|
function Z$(e) {
|
|
26800
26800
|
const t = $O(e), n = Zx(t, e), r = Zx(t.reverse(), e);
|
|
@@ -26826,7 +26826,7 @@ function Q$(e, { upTo: t }) {
|
|
|
26826
26826
|
function J$(e) {
|
|
26827
26827
|
return e instanceof HTMLInputElement && "select" in e;
|
|
26828
26828
|
}
|
|
26829
|
-
function
|
|
26829
|
+
function ar(e, { select: t = !1 } = {}) {
|
|
26830
26830
|
if (e && e.focus) {
|
|
26831
26831
|
const n = document.activeElement;
|
|
26832
26832
|
e.focus({ preventScroll: !0 }), e !== n && J$(e) && t && e.select();
|
|
@@ -27527,9 +27527,9 @@ var UW = function(e) {
|
|
|
27527
27527
|
scope: t,
|
|
27528
27528
|
triggerRef: s,
|
|
27529
27529
|
contentRef: l,
|
|
27530
|
-
contentId:
|
|
27531
|
-
titleId:
|
|
27532
|
-
descriptionId:
|
|
27530
|
+
contentId: Gn(),
|
|
27531
|
+
titleId: Gn(),
|
|
27532
|
+
descriptionId: Gn(),
|
|
27533
27533
|
open: c,
|
|
27534
27534
|
onOpenChange: d,
|
|
27535
27535
|
onOpenToggle: u.useCallback(() => d((f) => !f), [d]),
|
|
@@ -27808,7 +27808,7 @@ var wq = [
|
|
|
27808
27808
|
let n = wo(() => {
|
|
27809
27809
|
var V, z;
|
|
27810
27810
|
return { search: "", value: (z = (V = e.value) != null ? V : e.defaultValue) != null ? z : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
27811
|
-
}), r = wo(() => /* @__PURE__ */ new Set()), o = wo(() => /* @__PURE__ */ new Map()), i = wo(() => /* @__PURE__ */ new Map()), a = wo(() => /* @__PURE__ */ new Set()), s = g0(e), { label: l, children: c, value: d, onValueChange: f, filter: p, shouldFilter: m, loop: v, disablePointerSelection: h = !1, vimBindings: g = !0, ...y } = e, b =
|
|
27811
|
+
}), r = wo(() => /* @__PURE__ */ new Set()), o = wo(() => /* @__PURE__ */ new Map()), i = wo(() => /* @__PURE__ */ new Map()), a = wo(() => /* @__PURE__ */ new Set()), s = g0(e), { label: l, children: c, value: d, onValueChange: f, filter: p, shouldFilter: m, loop: v, disablePointerSelection: h = !1, vimBindings: g = !0, ...y } = e, b = Gn(), C = Gn(), E = Gn(), w = u.useRef(null), S = Dq();
|
|
27812
27812
|
Yr(() => {
|
|
27813
27813
|
if (d !== void 0) {
|
|
27814
27814
|
let V = d.trim();
|
|
@@ -27981,7 +27981,7 @@ var wq = [
|
|
|
27981
27981
|
} }, u.createElement("label", { "cmdk-label": "", htmlFor: O.inputId, id: O.labelId, style: Vq }, l), Pl(e, (V) => u.createElement(p0.Provider, { value: R }, u.createElement(f0.Provider, { value: O }, V))));
|
|
27982
27982
|
}), Sq = u.forwardRef((e, t) => {
|
|
27983
27983
|
var n, r;
|
|
27984
|
-
let o =
|
|
27984
|
+
let o = Gn(), i = u.useRef(null), a = u.useContext(m0), s = ua(), l = g0(e), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a?.forceMount;
|
|
27985
27985
|
Yr(() => {
|
|
27986
27986
|
if (!c) return s.item(o, a?.id);
|
|
27987
27987
|
}, [c]);
|
|
@@ -28001,7 +28001,7 @@ var wq = [
|
|
|
28001
28001
|
let { disabled: g, value: y, onSelect: b, forceMount: C, keywords: E, ...w } = e;
|
|
28002
28002
|
return u.createElement(Pr.div, { ref: yr(i, t), ...w, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!g, "aria-selected": !!p, "data-disabled": !!g, "data-selected": !!p, onPointerMove: g || s.getDisablePointerSelection() ? void 0 : h, onClick: g ? void 0 : v }, e.children);
|
|
28003
28003
|
}), Rq = u.forwardRef((e, t) => {
|
|
28004
|
-
let { heading: n, children: r, forceMount: o, ...i } = e, a =
|
|
28004
|
+
let { heading: n, children: r, forceMount: o, ...i } = e, a = Gn(), s = u.useRef(null), l = u.useRef(null), c = Gn(), d = ua(), f = xr((m) => o || d.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(a) : !0);
|
|
28005
28005
|
Yr(() => d.group(a), []), b0(a, s, [e.value, e.heading, l]);
|
|
28006
28006
|
let p = u.useMemo(() => ({ id: a, forceMount: o }), [o]);
|
|
28007
28007
|
return u.createElement(Pr.div, { ref: yr(s, t), ...i, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, n && u.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), Pl(e, (m) => u.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, u.createElement(m0.Provider, { value: p }, m))));
|
|
@@ -29196,7 +29196,7 @@ function RU({
|
|
|
29196
29196
|
render: r,
|
|
29197
29197
|
...o
|
|
29198
29198
|
}) {
|
|
29199
|
-
return
|
|
29199
|
+
return er({
|
|
29200
29200
|
defaultTagName: "div",
|
|
29201
29201
|
props: Mt(
|
|
29202
29202
|
{
|
|
@@ -30281,7 +30281,7 @@ function pG({
|
|
|
30281
30281
|
render: t,
|
|
30282
30282
|
...n
|
|
30283
30283
|
}) {
|
|
30284
|
-
return
|
|
30284
|
+
return er({
|
|
30285
30285
|
defaultTagName: "div",
|
|
30286
30286
|
props: Mt(
|
|
30287
30287
|
{
|
|
@@ -30304,7 +30304,7 @@ function mG({
|
|
|
30304
30304
|
render: t,
|
|
30305
30305
|
...n
|
|
30306
30306
|
}) {
|
|
30307
|
-
return
|
|
30307
|
+
return er({
|
|
30308
30308
|
defaultTagName: "button",
|
|
30309
30309
|
props: Mt(
|
|
30310
30310
|
{
|
|
@@ -30390,7 +30390,7 @@ function vG({
|
|
|
30390
30390
|
const { isMobile: s, state: l } = kl();
|
|
30391
30391
|
let c = e;
|
|
30392
30392
|
o && (c = e ? /* @__PURE__ */ x(cw, { render: e }) : cw);
|
|
30393
|
-
const d =
|
|
30393
|
+
const d = er({
|
|
30394
30394
|
defaultTagName: "button",
|
|
30395
30395
|
props: Mt(
|
|
30396
30396
|
{
|
|
@@ -30430,7 +30430,7 @@ function yG({
|
|
|
30430
30430
|
showOnHover: n = !1,
|
|
30431
30431
|
...r
|
|
30432
30432
|
}) {
|
|
30433
|
-
return
|
|
30433
|
+
return er({
|
|
30434
30434
|
defaultTagName: "button",
|
|
30435
30435
|
props: Mt(
|
|
30436
30436
|
{
|
|
@@ -30539,7 +30539,7 @@ function SG({
|
|
|
30539
30539
|
className: r,
|
|
30540
30540
|
...o
|
|
30541
30541
|
}) {
|
|
30542
|
-
return
|
|
30542
|
+
return er({
|
|
30543
30543
|
defaultTagName: "a",
|
|
30544
30544
|
props: Mt(
|
|
30545
30545
|
{
|
|
@@ -31154,7 +31154,7 @@ function LG({
|
|
|
31154
31154
|
return Object.fromEntries(
|
|
31155
31155
|
n.map((h, g) => [i(h, g), !0])
|
|
31156
31156
|
);
|
|
31157
|
-
}, [l, n, i]), m =
|
|
31157
|
+
}, [l, n, i]), m = at(
|
|
31158
31158
|
(h) => {
|
|
31159
31159
|
if (l && r && i) {
|
|
31160
31160
|
const g = typeof h == "function" ? h(p ?? {}) : h;
|
|
@@ -31539,22 +31539,24 @@ function gw(e) {
|
|
|
31539
31539
|
autoOpen: i = !1,
|
|
31540
31540
|
searchable: a = !1,
|
|
31541
31541
|
searchPlaceholder: s = "Ara..."
|
|
31542
|
-
} = e, l = e.multiple ?? !1, [c, d] = Dt(!1), f =
|
|
31542
|
+
} = e, l = e.multiple ?? !1, [c, d] = Dt(!1), f = Un(!1), p = Un(!1);
|
|
31543
31543
|
Ns(() => {
|
|
31544
31544
|
i && !f.current && (setTimeout(() => d(!0), 0), f.current = !0);
|
|
31545
31545
|
}, [i]);
|
|
31546
|
-
const
|
|
31547
|
-
(
|
|
31548
|
-
d(
|
|
31546
|
+
const m = at(
|
|
31547
|
+
(E) => {
|
|
31548
|
+
E && (p.current = !1), d(E), !E && !p.current && (l ? e.value.length === 0 : e.value === "") && n();
|
|
31549
31549
|
},
|
|
31550
31550
|
[l, e.value, n]
|
|
31551
|
-
),
|
|
31552
|
-
|
|
31553
|
-
},
|
|
31551
|
+
), v = at(() => {
|
|
31552
|
+
p.current = !0;
|
|
31553
|
+
}, []), h = (E) => {
|
|
31554
|
+
E.preventDefault(), E.stopPropagation(), n();
|
|
31555
|
+
}, g = At(() => {
|
|
31554
31556
|
if (!l) return [];
|
|
31555
|
-
const
|
|
31556
|
-
return t.filter((
|
|
31557
|
-
}, [l, e.value, t]),
|
|
31557
|
+
const E = e.value;
|
|
31558
|
+
return t.filter((w) => E.includes(w.value));
|
|
31559
|
+
}, [l, e.value, t]), y = NH(e.value, t, l, r), b = /* @__PURE__ */ oe(ln, { children: [
|
|
31558
31560
|
/* @__PURE__ */ x(
|
|
31559
31561
|
Dh,
|
|
31560
31562
|
{
|
|
@@ -31566,7 +31568,7 @@ function gw(e) {
|
|
|
31566
31568
|
className: "rounded-none border-0 pr-11! shadow-none"
|
|
31567
31569
|
}
|
|
31568
31570
|
),
|
|
31569
|
-
children: /* @__PURE__ */ x("span", { className: "truncate", children:
|
|
31571
|
+
children: /* @__PURE__ */ x("span", { className: "truncate", children: y })
|
|
31570
31572
|
}
|
|
31571
31573
|
),
|
|
31572
31574
|
/* @__PURE__ */ x(
|
|
@@ -31576,33 +31578,37 @@ function gw(e) {
|
|
|
31576
31578
|
searchPlaceholder: s
|
|
31577
31579
|
}
|
|
31578
31580
|
)
|
|
31579
|
-
] }),
|
|
31581
|
+
] }), C = l ? /* @__PURE__ */ x(
|
|
31580
31582
|
Rs,
|
|
31581
31583
|
{
|
|
31582
31584
|
multiple: !0,
|
|
31583
31585
|
open: c,
|
|
31584
|
-
onOpenChange:
|
|
31585
|
-
value:
|
|
31586
|
-
onValueChange: (
|
|
31586
|
+
onOpenChange: m,
|
|
31587
|
+
value: g,
|
|
31588
|
+
onValueChange: (E) => {
|
|
31589
|
+
v(), e.onValueChange(E.map((w) => w.value));
|
|
31590
|
+
},
|
|
31587
31591
|
items: t,
|
|
31588
31592
|
disabled: o,
|
|
31589
31593
|
...hw,
|
|
31590
|
-
children:
|
|
31594
|
+
children: b
|
|
31591
31595
|
}
|
|
31592
31596
|
) : /* @__PURE__ */ x(
|
|
31593
31597
|
Rs,
|
|
31594
31598
|
{
|
|
31595
31599
|
open: c,
|
|
31596
|
-
onOpenChange:
|
|
31597
|
-
value: t.find((
|
|
31598
|
-
onValueChange: (
|
|
31600
|
+
onOpenChange: m,
|
|
31601
|
+
value: t.find((E) => E.value === e.value) ?? null,
|
|
31602
|
+
onValueChange: (E) => {
|
|
31603
|
+
v(), e.onValueChange(E?.value ?? "");
|
|
31604
|
+
},
|
|
31599
31605
|
items: t,
|
|
31600
31606
|
disabled: o,
|
|
31601
31607
|
...hw,
|
|
31602
|
-
children:
|
|
31608
|
+
children: b
|
|
31603
31609
|
}
|
|
31604
31610
|
);
|
|
31605
|
-
return /* @__PURE__ */ x(IH, { disabled: o, onRemove:
|
|
31611
|
+
return /* @__PURE__ */ x(IH, { disabled: o, onRemove: h, children: C });
|
|
31606
31612
|
}
|
|
31607
31613
|
const bw = 3, vw = 3, yw = 6, on = uo().filter_date_pill;
|
|
31608
31614
|
function Ya(e) {
|
|
@@ -31659,7 +31665,7 @@ function LH({
|
|
|
31659
31665
|
autoOpen: i = !1,
|
|
31660
31666
|
quickPresets: a
|
|
31661
31667
|
}) {
|
|
31662
|
-
const [s, l] = Dt("months"), [c, d] = Dt(!1), [f, p] = Dt(!1), [m, v] = Dt(bw), [h, g] = Dt(vw), [y, b] = Dt(void 0), C =
|
|
31668
|
+
const [s, l] = Dt("months"), [c, d] = Dt(!1), [f, p] = Dt(!1), [m, v] = Dt(bw), [h, g] = Dt(vw), [y, b] = Dt(void 0), C = Un(!1);
|
|
31663
31669
|
Ns(() => {
|
|
31664
31670
|
i && !C.current && (setTimeout(() => d(!0), 0), C.current = !0);
|
|
31665
31671
|
}, [i]);
|
|
@@ -31680,9 +31686,9 @@ function LH({
|
|
|
31680
31686
|
}, [e, S]), O = At(
|
|
31681
31687
|
() => a ?? VH(),
|
|
31682
31688
|
[a]
|
|
31683
|
-
), P = AH(e, n), D =
|
|
31689
|
+
), P = AH(e, n), D = at((W) => {
|
|
31684
31690
|
d(W), W || (v(bw), g(vw), !e.from && !e.to && r());
|
|
31685
|
-
}, [e, r]), T =
|
|
31691
|
+
}, [e, r]), T = at(
|
|
31686
31692
|
(W) => {
|
|
31687
31693
|
W && t({
|
|
31688
31694
|
from: Ya(Bo(W.date)),
|
|
@@ -31690,22 +31696,22 @@ function LH({
|
|
|
31690
31696
|
});
|
|
31691
31697
|
},
|
|
31692
31698
|
[t]
|
|
31693
|
-
), _ =
|
|
31699
|
+
), _ = at((W) => {
|
|
31694
31700
|
W.preventDefault(), v((V) => V + yw);
|
|
31695
|
-
}, []), M =
|
|
31701
|
+
}, []), M = at((W) => {
|
|
31696
31702
|
W.preventDefault(), g((V) => V + yw);
|
|
31697
|
-
}, []), k =
|
|
31703
|
+
}, []), k = at(() => {
|
|
31698
31704
|
d(!1), e.from && e.to ? b({ from: Eo(e.from), to: Eo(e.to) }) : b(void 0), l("range"), setTimeout(() => p(!0), 0);
|
|
31699
|
-
}, [e]), N =
|
|
31705
|
+
}, [e]), N = at(() => {
|
|
31700
31706
|
p(!1), l("months"), b(void 0), !e.from && !e.to && r();
|
|
31701
|
-
}, [e, r]), A =
|
|
31707
|
+
}, [e, r]), A = at((W) => {
|
|
31702
31708
|
W ? p(!0) : N();
|
|
31703
|
-
}, [N]), F =
|
|
31709
|
+
}, [N]), F = at(() => {
|
|
31704
31710
|
y?.from && y?.to && t({
|
|
31705
31711
|
from: Ya(y.from),
|
|
31706
31712
|
to: Ya(y.to)
|
|
31707
31713
|
}), N();
|
|
31708
|
-
}, [y, t, N]), I =
|
|
31714
|
+
}, [y, t, N]), I = at(
|
|
31709
31715
|
(W) => {
|
|
31710
31716
|
W.preventDefault(), W.stopPropagation(), r();
|
|
31711
31717
|
},
|
|
@@ -31849,7 +31855,7 @@ function zH({
|
|
|
31849
31855
|
}) {
|
|
31850
31856
|
const i = !!(e?.from && e?.to), [a, s] = Dt(
|
|
31851
31857
|
e?.from ?? /* @__PURE__ */ new Date()
|
|
31852
|
-
), l =
|
|
31858
|
+
), l = at(
|
|
31853
31859
|
(c) => {
|
|
31854
31860
|
t({ from: c.from, to: c.to }), s(c.from);
|
|
31855
31861
|
},
|
|
@@ -32309,7 +32315,7 @@ function GH({
|
|
|
32309
32315
|
))
|
|
32310
32316
|
] });
|
|
32311
32317
|
}
|
|
32312
|
-
const
|
|
32318
|
+
const ir = "TR", Tf = 26, Ew = (e, t) => {
|
|
32313
32319
|
const n = e.replace(/\s/g, "");
|
|
32314
32320
|
if (!n) return "";
|
|
32315
32321
|
if (t)
|
|
@@ -32336,20 +32342,20 @@ function jG({
|
|
|
32336
32342
|
if (!e) return "";
|
|
32337
32343
|
const p = kf(e);
|
|
32338
32344
|
if (n) {
|
|
32339
|
-
const v = p.startsWith(
|
|
32345
|
+
const v = p.startsWith(ir) ? p.slice(ir.length) : p;
|
|
32340
32346
|
return Ew(v, !1);
|
|
32341
32347
|
}
|
|
32342
|
-
const m = p.startsWith(
|
|
32348
|
+
const m = p.startsWith(ir);
|
|
32343
32349
|
return Ew(p, m);
|
|
32344
32350
|
}, [e, n]), f = u.useCallback((p) => {
|
|
32345
32351
|
const m = p.target.value.trim();
|
|
32346
32352
|
if (!m) return t("");
|
|
32347
32353
|
const v = kf(m);
|
|
32348
32354
|
if (n) {
|
|
32349
|
-
const h = v.startsWith(
|
|
32355
|
+
const h = v.startsWith(ir) ? v.slice(ir.length) : v;
|
|
32350
32356
|
if (!h) return t("");
|
|
32351
|
-
const g = Tf -
|
|
32352
|
-
t(`${
|
|
32357
|
+
const g = Tf - ir.length, y = h.slice(0, g);
|
|
32358
|
+
t(`${ir}${y}`);
|
|
32353
32359
|
} else
|
|
32354
32360
|
t(v.slice(0, Tf));
|
|
32355
32361
|
}, [t, n]);
|
|
@@ -32360,7 +32366,7 @@ function jG({
|
|
|
32360
32366
|
type: "text",
|
|
32361
32367
|
value: d,
|
|
32362
32368
|
onChange: f,
|
|
32363
|
-
prefix: n ?
|
|
32369
|
+
prefix: n ? ir : void 0,
|
|
32364
32370
|
error: c,
|
|
32365
32371
|
placeholder: o ?? s
|
|
32366
32372
|
}
|