@factorialco/f0-react 1.316.0 → 1.316.1
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/experimental.d.ts +21 -21
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +21 -21
- package/dist/f0.js +2 -2
- package/dist/{hooks-Cai7CCkN.js → hooks-BTk8LRGv.js} +193 -193
- package/dist/i18n-provider-defaults.d.ts +21 -21
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as H, jsx as i, Fragment as d1 } from "react/jsx-runtime";
|
|
2
2
|
import * as _ from "react";
|
|
3
|
-
import X, { useContext as r1, createContext as R1, useRef as U2, useImperativeHandle as iL, useEffect as
|
|
3
|
+
import X, { useContext as r1, createContext as R1, useRef as U2, useImperativeHandle as iL, useEffect as O2, useState as E2, useCallback as p1, forwardRef as B, useLayoutEffect as Jn, useId as e6, useInsertionEffect as KR, useMemo as $2, Children as Rn, isValidElement as f4, Fragment as QR, createElement as A9, Component as sL, useReducer as a62, PureComponent as b4, cloneElement as de, useDeferredValue as i62 } from "react";
|
|
4
4
|
import * as To from "react-dom";
|
|
5
5
|
import JR, { createPortal as s62, flushSync as l62 } from "react-dom";
|
|
6
6
|
function ej(e) {
|
|
@@ -78,7 +78,7 @@ const uH = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c62 = (e)
|
|
|
78
78
|
const [t, n] = E2(!1), [r, o] = E2([]), a = p1((l) => {
|
|
79
79
|
o(l || [...dH].filter((c) => c !== "layout")), n(!0);
|
|
80
80
|
}, [o, n]), s = p1(() => n(!1), [n]);
|
|
81
|
-
return
|
|
81
|
+
return O2(() => {
|
|
82
82
|
window.XRay = {
|
|
83
83
|
enable: a,
|
|
84
84
|
disable: s
|
|
@@ -133,7 +133,7 @@ const uH = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c62 = (e)
|
|
|
133
133
|
const { enabled: n, filter: r } = _.useContext(lL), o = U2(null);
|
|
134
134
|
iL(t, () => o.current);
|
|
135
135
|
const a = n && !e.internal, s = typeof document < "u" ? document.body : null;
|
|
136
|
-
return
|
|
136
|
+
return O2(() => {
|
|
137
137
|
if (!a || !o.current || !r.includes(e.type)) return;
|
|
138
138
|
const l = o.current;
|
|
139
139
|
l.dataset.componentName = e.name;
|
|
@@ -2163,11 +2163,11 @@ function vL(e = {}, t = []) {
|
|
|
2163
2163
|
const n = U2(e), r = U2(t), [o, a] = E2(), [s, l] = E2(), c = p1(() => {
|
|
2164
2164
|
o && o.reInit(n.current, r.current);
|
|
2165
2165
|
}, [o]);
|
|
2166
|
-
return
|
|
2166
|
+
return O2(() => {
|
|
2167
2167
|
hL(n.current, e) || (n.current = e, c());
|
|
2168
|
-
}, [e, c]),
|
|
2168
|
+
}, [e, c]), O2(() => {
|
|
2169
2169
|
H72(r.current, t) || (r.current = t, c());
|
|
2170
|
-
}, [t, c]),
|
|
2170
|
+
}, [t, c]), O2(() => {
|
|
2171
2171
|
if (P72() && s) {
|
|
2172
2172
|
As.globalOptions = vL.globalOptions;
|
|
2173
2173
|
const u = As(s, n.current, r.current);
|
|
@@ -4894,7 +4894,7 @@ function yc(e) {
|
|
|
4894
4894
|
const t = U2(null);
|
|
4895
4895
|
return t.current === null && (t.current = e()), t.current;
|
|
4896
4896
|
}
|
|
4897
|
-
const wL = typeof window < "u", mj = wL ? Jn :
|
|
4897
|
+
const wL = typeof window < "u", mj = wL ? Jn : O2, bc = /* @__PURE__ */ R1(null), _r = R1({
|
|
4898
4898
|
transformPagePoint: (e) => e,
|
|
4899
4899
|
isStatic: !1,
|
|
4900
4900
|
reducedMotion: "never"
|
|
@@ -4953,7 +4953,7 @@ function N92({ children: e, isPresent: t, anchorX: n }) {
|
|
|
4953
4953
|
}
|
|
4954
4954
|
const R92 = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: a, mode: s, anchorX: l }) => {
|
|
4955
4955
|
const c = yc(j92), u = e6();
|
|
4956
|
-
let d = !0, f =
|
|
4956
|
+
let d = !0, f = $2(() => (d = !1, {
|
|
4957
4957
|
id: u,
|
|
4958
4958
|
initial: t,
|
|
4959
4959
|
isPresent: n,
|
|
@@ -4967,7 +4967,7 @@ const R92 = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
|
4967
4967
|
},
|
|
4968
4968
|
register: (h) => (c.set(h, !1), () => c.delete(h))
|
|
4969
4969
|
}), [n, c, r]);
|
|
4970
|
-
return a && d && (f = { ...f }),
|
|
4970
|
+
return a && d && (f = { ...f }), $2(() => {
|
|
4971
4971
|
c.forEach((h, m) => c.set(m, !1));
|
|
4972
4972
|
}, [n]), _.useEffect(() => {
|
|
4973
4973
|
!n && !c.size && r && r();
|
|
@@ -4981,7 +4981,7 @@ function gj(e = !0) {
|
|
|
4981
4981
|
if (t === null)
|
|
4982
4982
|
return [!0, null];
|
|
4983
4983
|
const { isPresent: n, onExitComplete: r, register: o } = t, a = e6();
|
|
4984
|
-
|
|
4984
|
+
O2(() => {
|
|
4985
4985
|
if (e)
|
|
4986
4986
|
return o(a);
|
|
4987
4987
|
}, [e]);
|
|
@@ -4996,7 +4996,7 @@ function LH(e) {
|
|
|
4996
4996
|
}), t;
|
|
4997
4997
|
}
|
|
4998
4998
|
const Me = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: a = "sync", propagate: s = !1, anchorX: l = "left" }) => {
|
|
4999
|
-
const [c, u] = gj(s), d =
|
|
4999
|
+
const [c, u] = gj(s), d = $2(() => LH(e), [e]), f = s && !c ? [] : d.map(bi), h = U2(!0), m = U2(d), v = yc(() => /* @__PURE__ */ new Map()), [g, y] = E2(d), [b, L] = E2(d);
|
|
5000
5000
|
mj(() => {
|
|
5001
5001
|
h.current = !1, m.current = d;
|
|
5002
5002
|
for (let w = 0; w < b.length; w++) {
|
|
@@ -5188,7 +5188,7 @@ function q92(e, t, n) {
|
|
|
5188
5188
|
}
|
|
5189
5189
|
function FX1({ children: e, isValidProp: t, ...n }) {
|
|
5190
5190
|
t && Lj(t), n = { ...r1(_r), ...n }, n.isStatic = yc(() => n.isStatic);
|
|
5191
|
-
const r =
|
|
5191
|
+
const r = $2(() => n, [
|
|
5192
5192
|
JSON.stringify(n.transition),
|
|
5193
5193
|
n.transformPagePoint,
|
|
5194
5194
|
n.reducedMotion
|
|
@@ -5246,7 +5246,7 @@ function G92(e, t) {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
function U92(e) {
|
|
5248
5248
|
const { initial: t, animate: n } = G92(e, r1(Lc));
|
|
5249
|
-
return
|
|
5249
|
+
return $2(() => ({ initial: t, animate: n }), [xH(t), xH(n)]);
|
|
5250
5250
|
}
|
|
5251
5251
|
function xH(e) {
|
|
5252
5252
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -5288,7 +5288,7 @@ function J92(e, t, n, r, o) {
|
|
|
5288
5288
|
const m = n[Mj], v = U2(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
|
|
5289
5289
|
return mj(() => {
|
|
5290
5290
|
d && (h.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), HL.render(d.render), v.current && d.animationState && d.animationState.animateChanges());
|
|
5291
|
-
}),
|
|
5291
|
+
}), O2(() => {
|
|
5292
5292
|
d && (!v.current && d.animationState && d.animationState.animateChanges(), v.current && (queueMicrotask(() => {
|
|
5293
5293
|
window.MotionHandoffMarkAsComplete?.(m);
|
|
5294
5294
|
}), v.current = !1));
|
|
@@ -5541,7 +5541,7 @@ function _j(e, t, n) {
|
|
|
5541
5541
|
!Xe(t[r]) && !Pj(r, n) && (e[r] = t[r]);
|
|
5542
5542
|
}
|
|
5543
5543
|
function h82({ transformTemplate: e }, t) {
|
|
5544
|
-
return
|
|
5544
|
+
return $2(() => {
|
|
5545
5545
|
const n = AL();
|
|
5546
5546
|
return SL(n, t, e), Object.assign({}, n.vars, n.style);
|
|
5547
5547
|
}, [t]);
|
|
@@ -5591,7 +5591,7 @@ const Vj = () => ({
|
|
|
5591
5591
|
attrs: {}
|
|
5592
5592
|
}), Sj = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
5593
5593
|
function b82(e, t, n, r) {
|
|
5594
|
-
const o =
|
|
5594
|
+
const o = $2(() => {
|
|
5595
5595
|
const a = Vj();
|
|
5596
5596
|
return Fj(a, t, Sj(r), e.transformTemplate, e.style), {
|
|
5597
5597
|
...a.attrs,
|
|
@@ -5653,7 +5653,7 @@ function TL(e) {
|
|
|
5653
5653
|
}
|
|
5654
5654
|
function w82(e = !1) {
|
|
5655
5655
|
return (n, r, o, { latestValues: a }, s) => {
|
|
5656
|
-
const c = (TL(n) ? b82 : p82)(r, a, s, n), u = q92(r, typeof n == "string", e), d = n !== QR ? { ...u, ...c, ref: o } : {}, { children: f } = r, h =
|
|
5656
|
+
const c = (TL(n) ? b82 : p82)(r, a, s, n), u = q92(r, typeof n == "string", e), d = n !== QR ? { ...u, ...c, ref: o } : {}, { children: f } = r, h = $2(() => Xe(f) ? f.get() : f, [f]);
|
|
5657
5657
|
return A9(n, {
|
|
5658
5658
|
...d,
|
|
5659
5659
|
children: h
|
|
@@ -9755,12 +9755,12 @@ function wa2() {
|
|
|
9755
9755
|
}
|
|
9756
9756
|
var Ma2 = wa2();
|
|
9757
9757
|
const D_ = /* @__PURE__ */ n3(Ma2);
|
|
9758
|
-
var XI = typeof window < "u" ? Jn :
|
|
9758
|
+
var XI = typeof window < "u" ? Jn : O2;
|
|
9759
9759
|
function xa2(e, t, n, r) {
|
|
9760
9760
|
const o = U2(t);
|
|
9761
9761
|
XI(() => {
|
|
9762
9762
|
o.current = t;
|
|
9763
|
-
}, [t]),
|
|
9763
|
+
}, [t]), O2(() => {
|
|
9764
9764
|
const a = n?.current ?? window;
|
|
9765
9765
|
if (!(a && a.addEventListener))
|
|
9766
9766
|
return;
|
|
@@ -9790,7 +9790,7 @@ function GI(e, {
|
|
|
9790
9790
|
}
|
|
9791
9791
|
function Ea2(e) {
|
|
9792
9792
|
const t = U2(e);
|
|
9793
|
-
t.current = e,
|
|
9793
|
+
t.current = e, O2(
|
|
9794
9794
|
() => () => {
|
|
9795
9795
|
t.current();
|
|
9796
9796
|
},
|
|
@@ -9802,13 +9802,13 @@ function UI(e, t = 500, n) {
|
|
|
9802
9802
|
Ea2(() => {
|
|
9803
9803
|
r.current && r.current.cancel();
|
|
9804
9804
|
});
|
|
9805
|
-
const o =
|
|
9805
|
+
const o = $2(() => {
|
|
9806
9806
|
const a = D_(e, t, n), s = (...l) => a(...l);
|
|
9807
9807
|
return s.cancel = () => {
|
|
9808
9808
|
a.cancel();
|
|
9809
9809
|
}, s.isPending = () => !!r.current, s.flush = () => a.flush(), s;
|
|
9810
9810
|
}, [e, t, n]);
|
|
9811
|
-
return
|
|
9811
|
+
return O2(() => {
|
|
9812
9812
|
r.current = D_(e, t, n);
|
|
9813
9813
|
}, [e, t, n]), o;
|
|
9814
9814
|
}
|
|
@@ -9835,7 +9835,7 @@ function AX1({
|
|
|
9835
9835
|
})), f = U2();
|
|
9836
9836
|
f.current = a;
|
|
9837
9837
|
const h = ((s = u.entry) == null ? void 0 : s.isIntersecting) && r;
|
|
9838
|
-
|
|
9838
|
+
O2(() => {
|
|
9839
9839
|
if (!l || !("IntersectionObserver" in window) || h)
|
|
9840
9840
|
return;
|
|
9841
9841
|
const g = new IntersectionObserver(
|
|
@@ -9861,7 +9861,7 @@ function AX1({
|
|
|
9861
9861
|
r
|
|
9862
9862
|
]);
|
|
9863
9863
|
const m = U2(null);
|
|
9864
|
-
|
|
9864
|
+
O2(() => {
|
|
9865
9865
|
var g;
|
|
9866
9866
|
!l && ((g = u.entry) != null && g.target) && !r && !h && m.current !== u.entry.target && (m.current = u.entry.target, d({ isIntersecting: o, entry: void 0 }));
|
|
9867
9867
|
}, [l, u.entry, r, h, o]);
|
|
@@ -9874,7 +9874,7 @@ function AX1({
|
|
|
9874
9874
|
}
|
|
9875
9875
|
function Ha2() {
|
|
9876
9876
|
const e = U2(!1);
|
|
9877
|
-
return
|
|
9877
|
+
return O2(() => (e.current = !0, () => {
|
|
9878
9878
|
e.current = !1;
|
|
9879
9879
|
}), []), p1(() => e.current, []);
|
|
9880
9880
|
}
|
|
@@ -9897,7 +9897,7 @@ var N_ = {
|
|
|
9897
9897
|
};
|
|
9898
9898
|
function _a2(e) {
|
|
9899
9899
|
const { ref: t, box: n = "content-box" } = e, [{ width: r, height: o }, a] = E2(N_), s = Ha2(), l = U2({ ...N_ }), c = U2(void 0);
|
|
9900
|
-
return c.current = e.onResize,
|
|
9900
|
+
return c.current = e.onResize, O2(() => {
|
|
9901
9901
|
if (!t.current || typeof window > "u" || !("ResizeObserver" in window))
|
|
9902
9902
|
return;
|
|
9903
9903
|
const u = new ResizeObserver(([d]) => {
|
|
@@ -10032,7 +10032,7 @@ const OX1 = () => {
|
|
|
10032
10032
|
warn: void 0,
|
|
10033
10033
|
componentName: ""
|
|
10034
10034
|
}) => {
|
|
10035
|
-
|
|
10035
|
+
O2(() => {
|
|
10036
10036
|
if (e !== void 0 && t) {
|
|
10037
10037
|
const r = n.warn ?? !0;
|
|
10038
10038
|
Aa2(e, t, r, n.componentName);
|
|
@@ -11443,7 +11443,7 @@ const Fi2 = ci2, Vi2 = ui2, Si2 = ii2, Ai2 = fi2, Ti2 = si2, Y_ = ai2, $i2 = di2
|
|
|
11443
11443
|
platform: a
|
|
11444
11444
|
});
|
|
11445
11445
|
};
|
|
11446
|
-
var ks = typeof document < "u" ? Jn :
|
|
11446
|
+
var ks = typeof document < "u" ? Jn : O2;
|
|
11447
11447
|
function Is(e, t) {
|
|
11448
11448
|
if (e === t)
|
|
11449
11449
|
return !0;
|
|
@@ -12372,7 +12372,7 @@ const DX1 = (e) => e, ys2 = async () => {
|
|
|
12372
12372
|
}
|
|
12373
12373
|
}, Ac = R1(null), NX1 = ({ children: e, platform: t, isDev: n = !1, showExperimentalWarnings: r = !1 }) => {
|
|
12374
12374
|
const [o, a] = E2(t ?? "unknown");
|
|
12375
|
-
return
|
|
12375
|
+
return O2(() => {
|
|
12376
12376
|
t === void 0 && ys2().then(a);
|
|
12377
12377
|
}, [t]), i(Ac.Provider, {
|
|
12378
12378
|
value: {
|
|
@@ -12522,7 +12522,7 @@ const Ps2 = () => {
|
|
|
12522
12522
|
"data-is-active": s,
|
|
12523
12523
|
...n,
|
|
12524
12524
|
disabled: l
|
|
12525
|
-
}, u =
|
|
12525
|
+
}, u = $2(() => B(function(f, h) {
|
|
12526
12526
|
if (l) {
|
|
12527
12527
|
const { href: m, target: v, rel: g, download: y, exactMatch: b, ...L } = f;
|
|
12528
12528
|
return i("span", {
|
|
@@ -20451,7 +20451,7 @@ const zf2 = (e, t) => {
|
|
|
20451
20451
|
return e.scrollWidth > e.clientWidth;
|
|
20452
20452
|
}, $z = B(({ children: e, className: t, lines: n, onHasEllipsisChange: r, noTooltip: o, tag: a = "span", disabled: s, markdown: l, ...c }, u) => {
|
|
20453
20453
|
const [d, f] = E2(!1);
|
|
20454
|
-
|
|
20454
|
+
O2(() => {
|
|
20455
20455
|
if (!u || typeof u != "object" || s) return;
|
|
20456
20456
|
const m = u.current;
|
|
20457
20457
|
if (!m) return;
|
|
@@ -20485,7 +20485,7 @@ const zf2 = (e, t) => {
|
|
|
20485
20485
|
});
|
|
20486
20486
|
$z.displayName = "EllipsisWrapper";
|
|
20487
20487
|
const j3 = B(({ className: e, lines: t = 1, children: n, noTooltip: r = !1, disabled: o = !1, markdown: a = !1, tag: s = "span", ...l }, c) => {
|
|
20488
|
-
const [u, d] = E2(!1), f = U2(null), h = c || f, m =
|
|
20488
|
+
const [u, d] = E2(!1), f = U2(null), h = c || f, m = $2(() => i($z, {
|
|
20489
20489
|
ref: h,
|
|
20490
20490
|
className: e,
|
|
20491
20491
|
lines: t,
|
|
@@ -20496,7 +20496,7 @@ const j3 = B(({ className: e, lines: t = 1, children: n, noTooltip: r = !1, disa
|
|
|
20496
20496
|
...l,
|
|
20497
20497
|
noTooltip: r,
|
|
20498
20498
|
children: n
|
|
20499
|
-
}), [e, t, h, n, o, a, s]), v =
|
|
20499
|
+
}), [e, t, h, n, o, a, s]), v = $2(() => a ? Wf2(n) : n, [n, a]);
|
|
20500
20500
|
return u && !r ? i(Bo, {
|
|
20501
20501
|
children: H(qo, {
|
|
20502
20502
|
children: [i(Xo, {
|
|
@@ -22405,7 +22405,7 @@ var LV, wV;
|
|
|
22405
22405
|
process.env.NODE_ENV === "development" || process.env.NODE_ENV;
|
|
22406
22406
|
const nB = typeof window < "u", dp2 = typeof navigator < "u";
|
|
22407
22407
|
nB && (!((wV = window) == null || (LV = wV.navigator) == null) && LV.userAgent) && /iP(?:ad|hone|od)/.test(window.navigator.userAgent);
|
|
22408
|
-
const fp2 = nB ? Jn :
|
|
22408
|
+
const fp2 = nB ? Jn : O2, Cp2 = (e) => (e + 1) % 1e6;
|
|
22409
22409
|
function hp2() {
|
|
22410
22410
|
const [, e] = a62(Cp2, 0);
|
|
22411
22411
|
return e;
|
|
@@ -22415,7 +22415,7 @@ const mp2 = (e, t, n) => {
|
|
|
22415
22415
|
const r = U2(void 0), o = hp2();
|
|
22416
22416
|
r.current || (r.current = t), fp2(() => {
|
|
22417
22417
|
n(t, r.current) || (r.current = t, o());
|
|
22418
|
-
}),
|
|
22418
|
+
}), O2(e, r.current);
|
|
22419
22419
|
}, P9 = (e, t) => {
|
|
22420
22420
|
process.env.NODE_ENV !== "production" && (!Array.isArray(t) || !t.length) && console.warn("`useDeepCompareEffect` should not be used with no dependencies. Use React.useEffect instead."), mp2(e, t, ap2);
|
|
22421
22421
|
}, Di = dp2 ? navigator : void 0;
|
|
@@ -26294,10 +26294,10 @@ const Kq = {
|
|
|
26294
26294
|
xl: "lg",
|
|
26295
26295
|
"2xl": "lg"
|
|
26296
26296
|
}, aa = B(({ src: e, name: t, size: n, type: r = "base", color: o = "random", "aria-label": a, "aria-labelledby": s, badge: l, flag: c, icon: u }, d) => {
|
|
26297
|
-
const f =
|
|
26297
|
+
const f = $2(() => Object.fromEntries(Object.entries(_9).map(([E, w]) => [w, E])), []), h = (E) => aL2.includes(E);
|
|
26298
26298
|
let m = Xh;
|
|
26299
26299
|
n && !h(n) ? (console.warn(`The avatar size: ${n} is deprecated. Use ${_9[n]} instead.`), m = _9[n] ?? Xh) : m = n ?? Xh;
|
|
26300
|
-
const v = iL2(t, m), g = o === "random" ? sL2(Array.isArray(t) ? t.join("") : t) : o, y = !!(a || s), b = lL2(m), L = cL2(m), M =
|
|
26300
|
+
const v = iL2(t, m), g = o === "random" ? sL2(Array.isArray(t) ? t.join("") : t) : o, y = !!(a || s), b = lL2(m), L = cL2(m), M = $2(() => l ? H(d1, {
|
|
26301
26301
|
children: [l.type === "module" && i(Qw, {
|
|
26302
26302
|
module: l.module,
|
|
26303
26303
|
size: L
|
|
@@ -26510,7 +26510,7 @@ const Gh = {
|
|
|
26510
26510
|
};
|
|
26511
26511
|
return e && t[e] ? t[e] : t.sm;
|
|
26512
26512
|
}, Yc = B(({ file: e, badge: t, ...n }, r) => {
|
|
26513
|
-
const { type: o, color: a } = hL2(e), l =
|
|
26513
|
+
const { type: o, color: a } = hL2(e), l = $2(() => Object.fromEntries(Object.entries(_9).map(([h, m]) => [m, h])), [])[n.size] ?? "small", c = mL2(n.size), u = pL2(n.size), d = $2(() => t ? H(d1, {
|
|
26514
26514
|
children: [t.type === "module" && i(Qw, {
|
|
26515
26515
|
module: t.module,
|
|
26516
26516
|
size: u
|
|
@@ -26519,7 +26519,7 @@ const Gh = {
|
|
|
26519
26519
|
icon: t.icon,
|
|
26520
26520
|
size: c
|
|
26521
26521
|
})]
|
|
26522
|
-
}) : null, [t, c, u]), f =
|
|
26522
|
+
}) : null, [t, c, u]), f = $2(() => {
|
|
26523
26523
|
const h = {
|
|
26524
26524
|
xs: "text-[7px]",
|
|
26525
26525
|
sm: "text-[8px]",
|
|
@@ -43055,7 +43055,7 @@ function HX() {
|
|
|
43055
43055
|
function hM(e) {
|
|
43056
43056
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
43057
43057
|
}
|
|
43058
|
-
const yT2 = 24, bT2 = typeof window < "u" ? Jn :
|
|
43058
|
+
const yT2 = 24, bT2 = typeof window < "u" ? Jn : O2;
|
|
43059
43059
|
function AA(...e) {
|
|
43060
43060
|
return (...t) => {
|
|
43061
43061
|
for (let n of e)
|
|
@@ -43423,7 +43423,7 @@ function AT2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
43423
43423
|
const TT2 = () => () => {
|
|
43424
43424
|
};
|
|
43425
43425
|
function $T2() {
|
|
43426
|
-
const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = ia(), a = X.useRef(null), s =
|
|
43426
|
+
const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = ia(), a = X.useRef(null), s = $2(() => document.body.style.backgroundColor, []);
|
|
43427
43427
|
function l() {
|
|
43428
43428
|
return (window.innerWidth - oy) / window.innerWidth;
|
|
43429
43429
|
}
|
|
@@ -47384,9 +47384,9 @@ function dZ2(e, t, n) {
|
|
|
47384
47384
|
overflowItems: w
|
|
47385
47385
|
});
|
|
47386
47386
|
}, [e, t, f, h]);
|
|
47387
|
-
return
|
|
47387
|
+
return O2(() => {
|
|
47388
47388
|
m();
|
|
47389
|
-
}, [m]),
|
|
47389
|
+
}, [m]), O2(() => {
|
|
47390
47390
|
d(!0);
|
|
47391
47391
|
}, []), {
|
|
47392
47392
|
containerRef: r,
|
|
@@ -47405,11 +47405,11 @@ const Br = function({ items: t, renderListItem: n, renderDropdownItem: r, overfl
|
|
|
47405
47405
|
max: u,
|
|
47406
47406
|
min: d,
|
|
47407
47407
|
itemsWidth: f
|
|
47408
|
-
}), k =
|
|
47408
|
+
}), k = $2(() => i(uG, {
|
|
47409
47409
|
totalItemsCount: t.length,
|
|
47410
47410
|
isOpen: h,
|
|
47411
47411
|
count: E.length
|
|
47412
|
-
}), [t.length, h, E.length]), P =
|
|
47412
|
+
}), [t.length, h, E.length]), P = $2(() => w ? null : t.map((I, T) => i(K3, {
|
|
47413
47413
|
className: "h-2 w-20 rounded-md"
|
|
47414
47414
|
}, `placeholder-${T}`)), [t, w]), S = s || E.length > 0, A = "flex min-w-0 flex-1 items-center justify-start whitespace-nowrap";
|
|
47415
47415
|
return H("div", {
|
|
@@ -48795,7 +48795,7 @@ function I9(e, t) {
|
|
|
48795
48795
|
var XG = OG, dD2 = DG, fD2 = WG;
|
|
48796
48796
|
const A8 = B(({ className: e, children: t, showBar: n = !0, viewportRef: r, onScrollTop: o, onScrollBottom: a, scrollMargin: s = 0, ...l }, c) => {
|
|
48797
48797
|
const u = U2(null), d = r ?? u;
|
|
48798
|
-
return
|
|
48798
|
+
return O2(() => {
|
|
48799
48799
|
const f = (m) => {
|
|
48800
48800
|
const v = m.target, { scrollTop: g, scrollHeight: y, clientHeight: b } = v;
|
|
48801
48801
|
g - s <= 0 && o && o(), g + b + s >= y && a && a();
|
|
@@ -48941,7 +48941,7 @@ const CD2 = i3({
|
|
|
48941
48941
|
xs: -2,
|
|
48942
48942
|
sm: -3,
|
|
48943
48943
|
md: -4
|
|
48944
|
-
}[t] ?? 0, c =
|
|
48944
|
+
}[t] ?? 0, c = $2(() => ({
|
|
48945
48945
|
xs: 20,
|
|
48946
48946
|
sm: 24,
|
|
48947
48947
|
md: 32
|
|
@@ -52885,7 +52885,7 @@ var Qj2 = /* @__PURE__ */ B(function(e, t) {
|
|
|
52885
52885
|
};
|
|
52886
52886
|
});
|
|
52887
52887
|
}, []);
|
|
52888
|
-
|
|
52888
|
+
O2(function() {
|
|
52889
52889
|
var W = function(e2) {
|
|
52890
52890
|
var F, R = e2[0].contentRect, r2 = R.width, j = R.height;
|
|
52891
52891
|
T(r2, j), (F = k.current) === null || F === void 0 || F.call(k, r2, j);
|
|
@@ -52899,7 +52899,7 @@ var Qj2 = /* @__PURE__ */ B(function(e, t) {
|
|
|
52899
52899
|
O.disconnect();
|
|
52900
52900
|
};
|
|
52901
52901
|
}, [T, g]);
|
|
52902
|
-
var D =
|
|
52902
|
+
var D = $2(function() {
|
|
52903
52903
|
var W = A.containerWidth, O = A.containerHeight;
|
|
52904
52904
|
if (W < 0 || O < 0)
|
|
52905
52905
|
return null;
|
|
@@ -53372,7 +53372,7 @@ var RU = /[ \f\n\r\t\v\u2028\u2029]+/, jU = function(t) {
|
|
|
53372
53372
|
}
|
|
53373
53373
|
return sO(o);
|
|
53374
53374
|
}, lO = "#808080", Kn = function(t) {
|
|
53375
|
-
var n = t.x, r = n === void 0 ? 0 : n, o = t.y, a = o === void 0 ? 0 : o, s = t.lineHeight, l = s === void 0 ? "1em" : s, c = t.capHeight, u = c === void 0 ? "0.71em" : c, d = t.scaleToFit, f = d === void 0 ? !1 : d, h = t.textAnchor, m = h === void 0 ? "start" : h, v = t.verticalAnchor, g = v === void 0 ? "end" : v, y = t.fill, b = y === void 0 ? lO : y, L = oO(t, LI2), M =
|
|
53375
|
+
var n = t.x, r = n === void 0 ? 0 : n, o = t.y, a = o === void 0 ? 0 : o, s = t.lineHeight, l = s === void 0 ? "1em" : s, c = t.capHeight, u = c === void 0 ? "0.71em" : c, d = t.scaleToFit, f = d === void 0 ? !1 : d, h = t.textAnchor, m = h === void 0 ? "start" : h, v = t.verticalAnchor, g = v === void 0 ? "end" : v, y = t.fill, b = y === void 0 ? lO : y, L = oO(t, LI2), M = $2(function() {
|
|
53376
53376
|
return _I2({
|
|
53377
53377
|
breakAll: L.breakAll,
|
|
53378
53378
|
children: L.children,
|
|
@@ -60084,7 +60084,7 @@ var nD = function(t, n, r, o, a) {
|
|
|
60084
60084
|
animationEasing: "ease"
|
|
60085
60085
|
}, Hx = function(t) {
|
|
60086
60086
|
var n = tD(tD({}, EU2), t), r = U2(), o = E2(-1), a = gU2(o, 2), s = a[0], l = a[1];
|
|
60087
|
-
|
|
60087
|
+
O2(function() {
|
|
60088
60088
|
if (r.current && r.current.getTotalLength)
|
|
60089
60089
|
try {
|
|
60090
60090
|
var E = r.current.getTotalLength();
|
|
@@ -61009,7 +61009,7 @@ var bD = function(t, n, r, o, a) {
|
|
|
61009
61009
|
animationEasing: "ease"
|
|
61010
61010
|
}, SY2 = function(t) {
|
|
61011
61011
|
var n = yD(yD({}, VY2), t), r = U2(), o = E2(-1), a = MY2(o, 2), s = a[0], l = a[1];
|
|
61012
|
-
|
|
61012
|
+
O2(function() {
|
|
61013
61013
|
if (r.current && r.current.getTotalLength)
|
|
61014
61014
|
try {
|
|
61015
61015
|
var M = r.current.getTotalLength();
|
|
@@ -67614,7 +67614,7 @@ function fQ() {
|
|
|
67614
67614
|
return e;
|
|
67615
67615
|
}
|
|
67616
67616
|
const C11 = ({ id: e, className: t, children: n, aspect: r, config: o, ...a }, s) => {
|
|
67617
|
-
const l = _.useId(), c = `chart-${e || l.replace(/:/g, "")}`, u = _.useRef(null), [d, f] = E2(), h =
|
|
67617
|
+
const l = _.useId(), c = `chart-${e || l.replace(/:/g, "")}`, u = _.useRef(null), [d, f] = E2(), h = $2(() => new ResizeObserver((m) => f(m[0].contentRect.height)), []);
|
|
67618
67618
|
return Jn(() => {
|
|
67619
67619
|
const m = s && "current" in s ? s.current : u.current;
|
|
67620
67620
|
return m && h.observe(m.parentElement), () => {
|
|
@@ -72263,10 +72263,10 @@ function B11(e) {
|
|
|
72263
72263
|
return "value" in e;
|
|
72264
72264
|
}
|
|
72265
72265
|
const hG1 = ({ onClick: e, value: t, ...n }) => {
|
|
72266
|
-
const r = f3(), [o, a] = E2(!1), s =
|
|
72266
|
+
const r = f3(), [o, a] = E2(!1), s = $2(() => z11(n.items), [n.items]), l = $2(() => s.flatMap((m) => m.items), [s]), c = $2(() => t || l[0]?.value, [t, l]), u = $2(() => l.find((m) => m.value === c), [c, l]), d = () => {
|
|
72267
72267
|
const m = l.find((v) => v.value === c);
|
|
72268
72268
|
m && e(c, m);
|
|
72269
|
-
}, f =
|
|
72269
|
+
}, f = $2(() => s.map((m) => m.items).reduce((m, v) => (m.length > 0 && m.push({
|
|
72270
72270
|
type: "separator"
|
|
72271
72271
|
}), m.push(...v.filter((g) => g.value !== c).map((g) => ({
|
|
72272
72272
|
...g,
|
|
@@ -72386,7 +72386,7 @@ const G11 = i3({
|
|
|
72386
72386
|
}
|
|
72387
72387
|
}
|
|
72388
72388
|
}), xQ = B(({ onSelectedChange: e, selected: t, label: n, disabled: r = !1, icon: o, size: a = "md", variant: s = "compact", withBorder: l = !1, defaultSelected: c = !1, ...u }, d) => {
|
|
72389
|
-
const f = !Array.isArray(o), [h, m] = f ? [o, o] : o, v = !Array.isArray(n), [g, y] = v ? [n, n] : n, b =
|
|
72389
|
+
const f = !Array.isArray(o), [h, m] = f ? [o, o] : o, v = !Array.isArray(n), [g, y] = v ? [n, n] : n, b = $2(() => f ? void 0 : {
|
|
72390
72390
|
initial: {
|
|
72391
72391
|
opacity: 0,
|
|
72392
72392
|
scale: 0.8
|
|
@@ -72406,7 +72406,7 @@ const G11 = i3({
|
|
|
72406
72406
|
}, [f]), [L, M] = E2(c), E = t !== void 0, w = {
|
|
72407
72407
|
selected: E ? t : L,
|
|
72408
72408
|
onSelectedChange: E ? e : M
|
|
72409
|
-
}, k = w.selected ? y : g, P =
|
|
72409
|
+
}, k = w.selected ? y : g, P = $2(() => s === "expanded" && a === "lg" ? (console.warn("F0ButtonToggle: lg size is not supported for expanded variant"), "md") : a, [a, s]);
|
|
72410
72410
|
return H(X11, {
|
|
72411
72411
|
ref: d,
|
|
72412
72412
|
pressed: w.selected,
|
|
@@ -109148,7 +109148,7 @@ function bI1(e, t) {
|
|
|
109148
109148
|
}
|
|
109149
109149
|
function LI1(e, t, n) {
|
|
109150
109150
|
var r, o, a, s = M3(), l = yk(), c = CI1(e, t), u = pI1(e, c), d = gI1(), f = !!(s.onDayClick || s.mode !== "default");
|
|
109151
|
-
|
|
109151
|
+
O2(function() {
|
|
109152
109152
|
var k;
|
|
109153
109153
|
c.outside || l.focusedDay && f && De(l.focusedDay, e) && ((k = n.current) === null || k === void 0 || k.focus());
|
|
109154
109154
|
}, [
|
|
@@ -109232,7 +109232,7 @@ function EI1(e) {
|
|
|
109232
109232
|
function PI1() {
|
|
109233
109233
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
109234
109234
|
}
|
|
109235
|
-
var HI1 = PI1() ? Jn :
|
|
109235
|
+
var HI1 = PI1() ? Jn : O2, $g = !1, _I1 = 0;
|
|
109236
109236
|
function oR() {
|
|
109237
109237
|
return "react-day-picker-".concat(++_I1);
|
|
109238
109238
|
}
|
|
@@ -109240,7 +109240,7 @@ function FI1(e) {
|
|
|
109240
109240
|
var t, n = e ?? ($g ? oR() : null), r = E2(n), o = r[0], a = r[1];
|
|
109241
109241
|
return HI1(function() {
|
|
109242
109242
|
o === null && a(oR());
|
|
109243
|
-
}, []),
|
|
109243
|
+
}, []), O2(function() {
|
|
109244
109244
|
$g === !1 && ($g = !0);
|
|
109245
109245
|
}, []), (t = e ?? o) !== null && t !== void 0 ? t : void 0;
|
|
109246
109246
|
}
|
|
@@ -109256,7 +109256,7 @@ function SI1(e) {
|
|
|
109256
109256
|
}
|
|
109257
109257
|
function AI1(e) {
|
|
109258
109258
|
var t, n, r = e.initialProps, o = M3(), a = yk(), s = ka(), l = E2(!1), c = l[0], u = l[1];
|
|
109259
|
-
|
|
109259
|
+
O2(function() {
|
|
109260
109260
|
o.initialFocus && a.focusTarget && (c || (a.focus(a.focusTarget), u(!0)));
|
|
109261
109261
|
}, [
|
|
109262
109262
|
o.initialFocus,
|
|
@@ -111270,7 +111270,7 @@ const HW1 = ({ text: e }) => i("div", {
|
|
|
111270
111270
|
}), c && (u = {
|
|
111271
111271
|
type: "error",
|
|
111272
111272
|
message: typeof c == "string" ? c : void 0
|
|
111273
|
-
}), r || console.error("InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."),
|
|
111273
|
+
}), r || console.error("InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."), O2(() => {
|
|
111274
111274
|
m2(k && v && w(v) > k ? v?.substring(0, k) : v);
|
|
111275
111275
|
}, [v, w, k]);
|
|
111276
111276
|
const p2 = (_2) => {
|
|
@@ -111291,8 +111291,8 @@ const HW1 = ({ text: e }) => i("div", {
|
|
|
111291
111291
|
t || I?.();
|
|
111292
111292
|
}, [d2, U] = E2(!1), g2 = (_2) => {
|
|
111293
111293
|
_2.animationName === "autofill" && U(!0);
|
|
111294
|
-
}, t2 = U2(null), H2 = U2(null), N2 =
|
|
111295
|
-
|
|
111294
|
+
}, t2 = U2(null), H2 = U2(null), N2 = $2(() => F.inputRef ?? H2, [F.inputRef, H2]);
|
|
111295
|
+
O2(() => (d2 && !t2.current && (t2.current = setInterval(() => {
|
|
111296
111296
|
const _2 = typeof N2 == "object" && N2?.current ? N2.current : null;
|
|
111297
111297
|
_2 && (_2.matches(":-webkit-autofill") || _2.matches(":autofill") || (U(!1), t2.current && (clearInterval(t2.current), t2.current = null)));
|
|
111298
111298
|
}, 100)), () => {
|
|
@@ -111492,12 +111492,12 @@ const ZW1 = ["compact"], DW1 = (e) => {
|
|
|
111492
111492
|
throw new Error(`Granularity definition ${e} not found`);
|
|
111493
111493
|
return t;
|
|
111494
111494
|
}, EJ = ({ mode: e = "single", view: t = "month", onSelect: n, defaultMonth: r = /* @__PURE__ */ new Date(), defaultSelected: o = null, showNavigation: a = !0, showInput: s = !1, minDate: l, maxDate: c, compact: u = !1 }) => {
|
|
111495
|
-
const d = f3(), [f, h] = E2(r), [m, v] = E2(o), [g, y] = E2(1), b =
|
|
111495
|
+
const d = f3(), [f, h] = E2(r), [m, v] = E2(o), [g, y] = E2(1), b = $2(() => S3[t], [t]), L = p1((O) => {
|
|
111496
111496
|
v(O), P(b.toRangeString(O, d));
|
|
111497
111497
|
const z = b.getViewDateFromDate(O instanceof Date ? O : O?.from || O?.to || /* @__PURE__ */ new Date());
|
|
111498
111498
|
z !== b.getViewDateFromDate(f) && h(z);
|
|
111499
111499
|
}, [b]);
|
|
111500
|
-
|
|
111500
|
+
O2(() => {
|
|
111501
111501
|
L(o);
|
|
111502
111502
|
}, [o]);
|
|
111503
111503
|
const M = (O) => {
|
|
@@ -111523,12 +111523,12 @@ const ZW1 = ["compact"], DW1 = (e) => {
|
|
|
111523
111523
|
[O]: Y
|
|
111524
111524
|
})), Y || w(G);
|
|
111525
111525
|
};
|
|
111526
|
-
|
|
111526
|
+
O2(() => {
|
|
111527
111527
|
const O = ic(m);
|
|
111528
111528
|
if (!O) return;
|
|
111529
111529
|
const z = e === "range" ? b.toRange(O) : b.toRange(O.from);
|
|
111530
111530
|
w(z);
|
|
111531
|
-
}, [b]),
|
|
111531
|
+
}, [b]), O2(() => {
|
|
111532
111532
|
const O = ic(m), { from: z, to: G } = b.toRangeString(O || {
|
|
111533
111533
|
from: /* @__PURE__ */ new Date(),
|
|
111534
111534
|
to: void 0
|
|
@@ -112157,7 +112157,7 @@ function VJ(e, {
|
|
|
112157
112157
|
error: P,
|
|
112158
112158
|
setError: S
|
|
112159
112159
|
} = YW1(), [A, I] = E2(0), { paginationInfo: T, setPaginationInfo: D } = KW1();
|
|
112160
|
-
|
|
112160
|
+
O2(() => {
|
|
112161
112161
|
b && k((o2) => {
|
|
112162
112162
|
const d2 = o2.length, U = o2.filter(b), g2 = U.length, t2 = d2 - g2;
|
|
112163
112163
|
return I(t2), D(
|
|
@@ -112169,11 +112169,11 @@ function VJ(e, {
|
|
|
112169
112169
|
});
|
|
112170
112170
|
}, [b, k, D]);
|
|
112171
112171
|
const W = U2(T);
|
|
112172
|
-
|
|
112172
|
+
O2(() => {
|
|
112173
112173
|
W.current = T;
|
|
112174
112174
|
}, [T]);
|
|
112175
|
-
const [O, z] = E2(void 0), [G, Y] = E2(!1), K = U2(!1), e2 =
|
|
112176
|
-
|
|
112175
|
+
const [O, z] = E2(void 0), [G, Y] = E2(!1), K = U2(!1), e2 = $2(() => ({ ...l, ...t }), [l, t]), F = i62(d), R = U2(void 0);
|
|
112176
|
+
O2(() => {
|
|
112177
112177
|
R.current = u?.enabled ? u?.sync ? d : F || d : void 0;
|
|
112178
112178
|
}, [d, F, u?.enabled, u?.sync]);
|
|
112179
112179
|
const r2 = (o2, d2, U) => {
|
|
@@ -112229,7 +112229,7 @@ function VJ(e, {
|
|
|
112229
112229
|
z,
|
|
112230
112230
|
K
|
|
112231
112231
|
]
|
|
112232
|
-
), h2 =
|
|
112232
|
+
), h2 = $2(() => {
|
|
112233
112233
|
const o2 = w.map((d2) => ({
|
|
112234
112234
|
...d2,
|
|
112235
112235
|
[Gb]: v?.field && RW1(d2, v.field) || void 0
|
|
@@ -112404,7 +112404,7 @@ function VJ(e, {
|
|
|
112404
112404
|
...a
|
|
112405
112405
|
]
|
|
112406
112406
|
);
|
|
112407
|
-
|
|
112407
|
+
O2(
|
|
112408
112408
|
() => {
|
|
112409
112409
|
if (!K.current) {
|
|
112410
112410
|
m(!0);
|
|
@@ -112428,7 +112428,7 @@ function VJ(e, {
|
|
|
112428
112428
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- deps are handled by the caller
|
|
112429
112429
|
...a
|
|
112430
112430
|
]
|
|
112431
|
-
),
|
|
112431
|
+
), O2(() => () => {
|
|
112432
112432
|
L.current?.();
|
|
112433
112433
|
}, []);
|
|
112434
112434
|
const l2 = O ? O - A : 0;
|
|
@@ -112492,10 +112492,10 @@ function SJ({
|
|
|
112492
112492
|
sync: !1,
|
|
112493
112493
|
...a
|
|
112494
112494
|
}, [L, M] = E2(), [E, w] = Pa2(L, 200);
|
|
112495
|
-
|
|
112495
|
+
O2(() => {
|
|
112496
112496
|
b.sync || w(L);
|
|
112497
112497
|
}, [L, b.sync, w]);
|
|
112498
|
-
const k =
|
|
112498
|
+
const k = $2(() => o, f), [P, S] = E2(!1), A = $2(() => c, f), I = $2(
|
|
112499
112499
|
() => u?.mandatory ? {
|
|
112500
112500
|
field: Object.keys(
|
|
112501
112501
|
u.groupBy
|
|
@@ -112505,7 +112505,7 @@ function SJ({
|
|
|
112505
112505
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112506
112506
|
[JSON.stringify(u)]
|
|
112507
112507
|
), [T, D] = E2(r ?? n ?? I);
|
|
112508
|
-
return
|
|
112508
|
+
return O2(() => {
|
|
112509
112509
|
u?.mandatory && !T?.field && D(
|
|
112510
112510
|
r ?? n ?? I
|
|
112511
112511
|
);
|
|
@@ -112538,7 +112538,7 @@ function SJ({
|
|
|
112538
112538
|
}
|
|
112539
112539
|
const rz1 = (e, t = []) => {
|
|
112540
112540
|
const [n, r] = E2({});
|
|
112541
|
-
return
|
|
112541
|
+
return O2(() => {
|
|
112542
112542
|
const a = e.reduce(
|
|
112543
112543
|
(s, l) => (s[l.key] = typeof t == "boolean" ? t : t.includes(l.key), s),
|
|
112544
112544
|
{}
|
|
@@ -112591,26 +112591,26 @@ function sz1({
|
|
|
112591
112591
|
disableSelectAll: s = !1,
|
|
112592
112592
|
isSearchActive: l = !1
|
|
112593
112593
|
}) {
|
|
112594
|
-
const c = e.type === "grouped", u = r === "multi", d = n.selectable, [f, h] = E2(CR(o)), [m, v] = E2(/* @__PURE__ */ new Map()), [g, y] = E2(!1), [b, L] = E2(null), M = U2(!1), E = U2(""), w = U2(!1), k = U2(!0), P = U2(n.currentFilters), S = U2(""), A = U2(""), I = U2(!1), T =
|
|
112594
|
+
const c = e.type === "grouped", u = r === "multi", d = n.selectable, [f, h] = E2(CR(o)), [m, v] = E2(/* @__PURE__ */ new Map()), [g, y] = E2(!1), [b, L] = E2(null), M = U2(!1), E = U2(""), w = U2(!1), k = U2(!0), P = U2(n.currentFilters), S = U2(""), A = U2(""), I = U2(!1), T = $2(() => t ? t.total : e.records?.length, [t, e.records?.length]), [D, W] = $2(() => {
|
|
112595
112595
|
const y2 = /* @__PURE__ */ new Map(), _2 = /* @__PURE__ */ new Map();
|
|
112596
112596
|
for (const [T2, F2] of f.items?.entries() || [])
|
|
112597
112597
|
F2.checked ? y2.set(T2, F2.item) : _2.set(T2, F2.item);
|
|
112598
112598
|
return [y2, _2];
|
|
112599
|
-
}, [f.items]), O = D.size, z = W.size, G =
|
|
112599
|
+
}, [f.items]), O = D.size, z = W.size, G = $2(
|
|
112600
112600
|
() => O === T && T > 0,
|
|
112601
112601
|
[T, O]
|
|
112602
|
-
), Y =
|
|
112602
|
+
), Y = $2(() => s ? !1 : l ? g && O > 0 : (g || G) && O > 0, [
|
|
112603
112603
|
s,
|
|
112604
112604
|
g,
|
|
112605
112605
|
G,
|
|
112606
112606
|
O,
|
|
112607
112607
|
l
|
|
112608
|
-
]), K =
|
|
112608
|
+
]), K = $2(() => s || l && !M.current || !g ? !1 : z === 0 ? !0 : "indeterminate", [s, g, z, l]), e2 = K === "indeterminate", F = $2(() => {
|
|
112609
112609
|
const y2 = /* @__PURE__ */ new Map();
|
|
112610
112610
|
for (const [_2, T2] of m.entries())
|
|
112611
112611
|
T2.checked && y2.set(_2, T2.group);
|
|
112612
112612
|
return y2;
|
|
112613
|
-
}, [m]), R =
|
|
112613
|
+
}, [m]), R = $2(() => {
|
|
112614
112614
|
if (!c || e.type !== "grouped") return {};
|
|
112615
112615
|
const y2 = {};
|
|
112616
112616
|
for (const _2 of e.groups) {
|
|
@@ -112627,7 +112627,7 @@ function sz1({
|
|
|
112627
112627
|
};
|
|
112628
112628
|
}
|
|
112629
112629
|
return y2;
|
|
112630
|
-
}, [c, e, f.items, d]), r2 =
|
|
112630
|
+
}, [c, e, f.items, d]), r2 = $2(() => c ? Object.values(R).reduce(
|
|
112631
112631
|
(y2, _2) => y2 + (_2.selectedCount || 0),
|
|
112632
112632
|
0
|
|
112633
112633
|
) : g && b !== null ? b - z : O, [
|
|
@@ -112637,10 +112637,10 @@ function sz1({
|
|
|
112637
112637
|
O,
|
|
112638
112638
|
c,
|
|
112639
112639
|
g
|
|
112640
|
-
]), { itemsStatus: j, selectedIds: h2 } =
|
|
112640
|
+
]), { itemsStatus: j, selectedIds: h2 } = $2(() => {
|
|
112641
112641
|
const y2 = f.items || /* @__PURE__ */ new Map(), _2 = Array.from(y2.values()).filter((F2) => F2.item !== void 0).map(({ item: F2, checked: R2 }) => ({ item: F2, checked: R2 })), T2 = Array.from(y2.entries()).filter(([, F2]) => F2.checked).map(([F2]) => F2);
|
|
112642
112642
|
return { itemsStatus: _2, selectedIds: T2 };
|
|
112643
|
-
}, [f.items]), m2 =
|
|
112643
|
+
}, [f.items]), m2 = $2(
|
|
112644
112644
|
() => Object.fromEntries(
|
|
112645
112645
|
Array.from(m.values()).map(({ group: y2, checked: _2 }) => [
|
|
112646
112646
|
y2.key,
|
|
@@ -112648,7 +112648,7 @@ function sz1({
|
|
|
112648
112648
|
])
|
|
112649
112649
|
),
|
|
112650
112650
|
[m]
|
|
112651
|
-
), p2 =
|
|
112651
|
+
), p2 = $2(() => ({
|
|
112652
112652
|
allChecked: K,
|
|
112653
112653
|
itemsStatus: j,
|
|
112654
112654
|
selectedIds: h2,
|
|
@@ -112821,28 +112821,28 @@ function sz1({
|
|
|
112821
112821
|
groups: /* @__PURE__ */ new Map()
|
|
112822
112822
|
}));
|
|
112823
112823
|
}, []);
|
|
112824
|
-
return
|
|
112824
|
+
return O2(() => {
|
|
112825
112825
|
h((y2) => ({
|
|
112826
112826
|
...y2,
|
|
112827
112827
|
allSelected: K
|
|
112828
112828
|
}));
|
|
112829
|
-
}, [K]),
|
|
112829
|
+
}, [K]), O2(() => {
|
|
112830
112830
|
const y2 = o2(o);
|
|
112831
112831
|
if (!w.current) {
|
|
112832
112832
|
w.current = !0, E.current = y2;
|
|
112833
112833
|
return;
|
|
112834
112834
|
}
|
|
112835
112835
|
y2 !== E.current && (E.current = y2, d2(o));
|
|
112836
|
-
}, [o, o2, d2]),
|
|
112836
|
+
}, [o, o2, d2]), O2(() => {
|
|
112837
112837
|
if (k.current) {
|
|
112838
112838
|
k.current = !1, P.current = n.currentFilters;
|
|
112839
112839
|
return;
|
|
112840
112840
|
}
|
|
112841
112841
|
const y2 = JSON.stringify(n.currentFilters), _2 = JSON.stringify(P.current);
|
|
112842
112842
|
y2 !== _2 && (N2(), P.current = n.currentFilters);
|
|
112843
|
-
}, [n.currentFilters, N2]),
|
|
112843
|
+
}, [n.currentFilters, N2]), O2(() => {
|
|
112844
112844
|
I.current = Y;
|
|
112845
|
-
}, [Y]),
|
|
112845
|
+
}, [Y]), O2(() => {
|
|
112846
112846
|
const y2 = l2();
|
|
112847
112847
|
if (y2.length === 0) return;
|
|
112848
112848
|
const _2 = y2.map((F2) => d?.(F2)).filter((F2) => F2 !== void 0), T2 = _2.join(",");
|
|
@@ -112889,9 +112889,9 @@ function sz1({
|
|
|
112889
112889
|
m,
|
|
112890
112890
|
u,
|
|
112891
112891
|
U
|
|
112892
|
-
]),
|
|
112892
|
+
]), O2(() => {
|
|
112893
112893
|
O === 0 && (y(!1), M.current = !1);
|
|
112894
|
-
}, [O]),
|
|
112894
|
+
}, [O]), O2(() => {
|
|
112895
112895
|
const y2 = JSON.stringify({
|
|
112896
112896
|
allSelectedCheck: g,
|
|
112897
112897
|
allSelectedState: K,
|
|
@@ -112940,7 +112940,7 @@ function sz1({
|
|
|
112940
112940
|
}
|
|
112941
112941
|
const a5 = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], fc = ({ resolve: e, fallback: t, error: n, children: r }) => {
|
|
112942
112942
|
const [o, a] = E2(null), [s, l] = E2(null), [c, u] = E2(!1);
|
|
112943
|
-
return
|
|
112943
|
+
return O2(() => {
|
|
112944
112944
|
e instanceof Promise ? (u(!0), e.then((d) => {
|
|
112945
112945
|
a(d);
|
|
112946
112946
|
}).catch((d) => {
|
|
@@ -112993,7 +112993,7 @@ const cz1 = ({ open: e, className: t, onClick: n, disabled: r, size: o = "xs" })
|
|
|
112993
112993
|
})
|
|
112994
112994
|
}), uz1 = ({ label: e, itemCount: t, open: n, onOpenChange: r, showOpenChange: o, selectable: a, select: s, onSelectChange: l, className: c }) => {
|
|
112995
112995
|
const [u, d] = E2(n);
|
|
112996
|
-
|
|
112996
|
+
O2(() => {
|
|
112997
112997
|
d(n);
|
|
112998
112998
|
}, [n]);
|
|
112999
112999
|
const f = () => {
|
|
@@ -113995,10 +113995,10 @@ const i22 = DJ, s22 = RJ, aB1 = IJ, l22 = WJ, iB1 = XJ, c22 = KJ, sB1 = QJ, lB1
|
|
|
113995
113995
|
const [t, n] = E2(e.as === "list"), r = e.as === "list" ? !0 : e.open !== void 0 ? e.open : t, o = (f) => {
|
|
113996
113996
|
e.open === void 0 && n(f), e.onOpenChange?.(f);
|
|
113997
113997
|
}, [a, s] = E2(a5(e.value));
|
|
113998
|
-
|
|
113998
|
+
O2(() => {
|
|
113999
113999
|
s(a5(e.value));
|
|
114000
114000
|
}, [JSON.stringify(e.value)]);
|
|
114001
|
-
const l =
|
|
114001
|
+
const l = $2(() => ({
|
|
114002
114002
|
value: e.value !== void 0 ? a5(e.value) : a,
|
|
114003
114003
|
open: r,
|
|
114004
114004
|
as: e.as,
|
|
@@ -114584,18 +114584,18 @@ function bB1(e) {
|
|
|
114584
114584
|
});
|
|
114585
114585
|
}
|
|
114586
114586
|
const LB1 = 8, Gu = B(({ items: e = void 0, className: t, children: n, position: r = "popper", taller: o = !1, emptyMessage: a, onScrollBottom: s, onScrollTop: l, isLoadingMore: c, isLoading: u, scrollMargin: d, forceMinHeight: f, showLoadingIndicator: h, asChild: m, portalContainer: v, ...g }, y) => {
|
|
114587
|
-
const b = U2(null), L = Array.isArray(e), M =
|
|
114587
|
+
const b = U2(null), L = Array.isArray(e), M = $2(() => L ? e.filter((F) => F.value).length === 0 : !n, [L, e, n]), E = YI(), [w, k] = E2(E), [P, S] = E2(!1), { value: A, open: I, as: T } = r1(Ak), D = T === "list", W = $2(() => new Set((Array.isArray(A) ? A : [A]).filter((F) => F !== void 0)), [A]), O = $2(() => e?.findIndex((F) => F.value !== void 0 && W.has(F.value)) || 0, [e, W]), z = bB1({
|
|
114588
114588
|
count: e?.length || 0,
|
|
114589
114589
|
getScrollElement: () => b.current,
|
|
114590
114590
|
estimateSize: (F) => e?.[F]?.height || 0,
|
|
114591
114591
|
overscan: 5,
|
|
114592
114592
|
enabled: D || E || P
|
|
114593
114593
|
});
|
|
114594
|
-
|
|
114594
|
+
O2(() => {
|
|
114595
114595
|
I || (S(!1), k(!0));
|
|
114596
|
-
}, [I]),
|
|
114596
|
+
}, [I]), O2(() => {
|
|
114597
114597
|
z.measure();
|
|
114598
|
-
}, [z, P, D]),
|
|
114598
|
+
}, [z, P, D]), O2(() => {
|
|
114599
114599
|
z.scrollToIndex(O);
|
|
114600
114600
|
}, [z, O]);
|
|
114601
114601
|
const G = z.getVirtualItems(), Y = M ? i("div", {
|
|
@@ -114686,7 +114686,7 @@ const LB1 = 8, Gu = B(({ items: e = void 0, className: t, children: n, position:
|
|
|
114686
114686
|
});
|
|
114687
114687
|
Gu.displayName = l22.displayName;
|
|
114688
114688
|
const Fo = _.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
114689
|
-
const o = dz1(), { multiple: a } = o, s =
|
|
114689
|
+
const o = dz1(), { multiple: a } = o, s = $2(() => Array.isArray(o.value) ? o.value.includes(n.value) : o.value === n.value, [o.value, n.value]);
|
|
114690
114690
|
return H(c22, {
|
|
114691
114691
|
ref: r,
|
|
114692
114692
|
className: s2("relative grid w-full cursor-default select-none items-center gap-x-1.5 rounded px-3 py-2 outline-none transition-colors after:absolute after:inset-x-1 after:inset-y-0 after:z-0 after:h-full after:rounded after:bg-f1-background-hover after:opacity-0 after:transition-opacity after:duration-75 after:content-[''] last:pb-3 last:after:bottom-1 last:after:h-[calc(100%-0.25rem)] first-of-type:pt-3 first-of-type:after:top-1 first-of-type:after:h-[calc(100%-0.25rem)] hover:after:opacity-100 focus:after:bg-f1-background-hover focus:after:text-f1-foreground focus:after:opacity-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_*]:z-10", "hover:data-[state=checked]:after:bg-f1-background-selected-bold/10 dark:data-[state=checked]:after:bg-f1-background-selected-bold/20 dark:hover:data-[state=checked]:after:bg-f1-background-selected-bold/20", "focus:outline-none focus:ring-0 focus:ring-transparent", "[&>*]:translate-y-0.5", !a && "data-[state=checked]:after:bg-f1-background-selected-bold/10 data-[state=checked]:after:opacity-100", a || s ? "grid-cols-[1fr_20px]" : void 0, e),
|
|
@@ -115052,7 +115052,7 @@ const _B1 = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode ===
|
|
|
115052
115052
|
formHeight: 520
|
|
115053
115053
|
}, Uu = B(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: o, size: a = "sm", debounceTime: s = 0, clearable: l = !1, ...c }, u) => {
|
|
115054
115054
|
const d = U2(null), f = U2(null);
|
|
115055
|
-
iL(u, () => d.current),
|
|
115055
|
+
iL(u, () => d.current), O2(() => {
|
|
115056
115056
|
if (!c.autoFocus) {
|
|
115057
115057
|
f.current && clearInterval(f.current);
|
|
115058
115058
|
return;
|
|
@@ -115150,7 +115150,7 @@ function VB1({
|
|
|
115150
115150
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- we are checking the schema values
|
|
115151
115151
|
[JSON.stringify(e), n]
|
|
115152
115152
|
);
|
|
115153
|
-
return
|
|
115153
|
+
return O2(() => {
|
|
115154
115154
|
if ("source" in e.options && e.options.mapOptions)
|
|
115155
115155
|
try {
|
|
115156
115156
|
s(!1), c(null);
|
|
@@ -115161,7 +115161,7 @@ function VB1({
|
|
|
115161
115161
|
M instanceof Error ? M : new Error("Failed to map options from source")
|
|
115162
115162
|
);
|
|
115163
115163
|
}
|
|
115164
|
-
}, [h.records, e.options]),
|
|
115164
|
+
}, [h.records, e.options]), O2(() => {
|
|
115165
115165
|
d || b();
|
|
115166
115166
|
}, [b, d]), {
|
|
115167
115167
|
options: r,
|
|
@@ -115181,17 +115181,17 @@ function SB1({ schema: e, value: t, onChange: n, isCompactMode: r }) {
|
|
|
115181
115181
|
},
|
|
115182
115182
|
search: a
|
|
115183
115183
|
}), m = Dk(e);
|
|
115184
|
-
|
|
115184
|
+
O2(() => {
|
|
115185
115185
|
let k;
|
|
115186
115186
|
return u ? l.current = !1 : k = setTimeout(() => {
|
|
115187
115187
|
l.current = !0;
|
|
115188
115188
|
}, 1e3), () => clearTimeout(k);
|
|
115189
115189
|
}, [u]);
|
|
115190
115190
|
const v = "source" in e.options;
|
|
115191
|
-
|
|
115191
|
+
O2(() => {
|
|
115192
115192
|
s("");
|
|
115193
115193
|
}, [e]);
|
|
115194
|
-
const g =
|
|
115194
|
+
const g = $2(() => v ? c : c.filter((k) => k.label.toLowerCase().includes(a.toLowerCase())), [v, c, a]);
|
|
115195
115195
|
if (u && !c.length)
|
|
115196
115196
|
return i("div", {
|
|
115197
115197
|
className: "flex w-full items-center justify-center py-4",
|
|
@@ -115389,7 +115389,7 @@ const ys = (e, t, n) => new Intl.NumberFormat(t, {
|
|
|
115389
115389
|
maximumFractionDigits: n,
|
|
115390
115390
|
useGrouping: !1
|
|
115391
115391
|
}).format(e), PR = B(function({ locale: t, value: n, maxDecimals: r, step: o, min: a, max: s, onChange: l, units: c, ...u }, d) {
|
|
115392
|
-
const f = f3(), [h, m] = E2(() => n != null ? ys(n, t, r) : ""), v =
|
|
115392
|
+
const f = f3(), [h, m] = E2(() => n != null ? ys(n, t, r) : ""), v = $2(() => {
|
|
115393
115393
|
if (u.hint !== void 0)
|
|
115394
115394
|
return u.hint;
|
|
115395
115395
|
if (a != null && s != null)
|
|
@@ -115429,7 +115429,7 @@ const ys = (e, t, n) => new Intl.NumberFormat(t, {
|
|
|
115429
115429
|
const L = b === "increase" ? n + o : n - o;
|
|
115430
115430
|
a != null && L < a || s != null && L > s || g(ys(L, t, r));
|
|
115431
115431
|
};
|
|
115432
|
-
return
|
|
115432
|
+
return O2(() => {
|
|
115433
115433
|
const b = Ug(h, {
|
|
115434
115434
|
maxDecimals: r
|
|
115435
115435
|
});
|
|
@@ -115672,7 +115672,7 @@ function IB1({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
115672
115672
|
value: u?.value
|
|
115673
115673
|
});
|
|
115674
115674
|
}, [u]);
|
|
115675
|
-
const v =
|
|
115675
|
+
const v = $2(() => ({
|
|
115676
115676
|
from: {
|
|
115677
115677
|
value: u?.mode === "range" ? u?.from?.value : u?.value,
|
|
115678
115678
|
closed: u?.mode === "range" ? u?.from?.closed : !0
|
|
@@ -115783,7 +115783,7 @@ const WB1 = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value
|
|
|
115783
115783
|
return "";
|
|
115784
115784
|
}
|
|
115785
115785
|
}, qB1 = ({ type: e, ...t }) => {
|
|
115786
|
-
const [n, r] = E2(!1), o =
|
|
115786
|
+
const [n, r] = E2(!1), o = $2(() => e === "password" ? n ? "text" : "password" : e, [n, e]), a = $2(() => e === "password" ? d72 : t.icon, [e, t.icon]), s = f3(), l = $2(() => e !== "password" ? t.buttonToggle : {
|
|
115787
115787
|
label: [s.inputs.password.show, s.inputs.password.hide],
|
|
115788
115788
|
icon: [K62, J62],
|
|
115789
115789
|
selected: n,
|
|
@@ -115815,7 +115815,7 @@ function XB1({ schema: e, value: t, onChange: n }) {
|
|
|
115815
115815
|
value: f ?? "",
|
|
115816
115816
|
strict: h
|
|
115817
115817
|
});
|
|
115818
|
-
}, [u, d] = E2(a.defaultStrict), f =
|
|
115818
|
+
}, [u, d] = E2(a.defaultStrict), f = $2(() => typeof t == "object" && "value" in t ? t.value : t ?? "", [t]);
|
|
115819
115819
|
return i("div", {
|
|
115820
115820
|
className: "space-y-4 p-3",
|
|
115821
115821
|
children: i(qB1, {
|
|
@@ -115864,7 +115864,7 @@ function UB1({ filter: e, value: t, onSelect: n, onRemove: r }) {
|
|
|
115864
115864
|
const [o, a] = E2(!0), s = Qn(e.type), l = f3(), [c, u] = E2({
|
|
115865
115865
|
label: ""
|
|
115866
115866
|
});
|
|
115867
|
-
return
|
|
115867
|
+
return O2(() => {
|
|
115868
115868
|
(async () => {
|
|
115869
115869
|
if (t === void 0)
|
|
115870
115870
|
return;
|
|
@@ -116043,7 +116043,7 @@ function _R({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
116043
116043
|
const FR = 388;
|
|
116044
116044
|
function KB1({ filters: e, value: t, onChange: n, isOpen: r, onOpenChange: o, hideLabel: a, mode: s = "default" }) {
|
|
116045
116045
|
const [l, c] = E2(null), [u, d] = E2(!1), f = f3(), h = r ?? u, m = o ?? d, [v, g] = E2(t);
|
|
116046
|
-
|
|
116046
|
+
O2(() => {
|
|
116047
116047
|
g(t);
|
|
116048
116048
|
}, [t]);
|
|
116049
116049
|
const y = (S, A) => {
|
|
@@ -116058,7 +116058,7 @@ function KB1({ filters: e, value: t, onChange: n, isOpen: r, onOpenChange: o, hi
|
|
|
116058
116058
|
}, M = () => {
|
|
116059
116059
|
L();
|
|
116060
116060
|
};
|
|
116061
|
-
|
|
116061
|
+
O2(() => {
|
|
116062
116062
|
const S = () => Object.entries(v || {}).find(([A, I]) => !Qn(e[A].type).isEmpty(I, {
|
|
116063
116063
|
schema: e[A],
|
|
116064
116064
|
i18n: f
|
|
@@ -116073,10 +116073,10 @@ function KB1({ filters: e, value: t, onChange: n, isOpen: r, onOpenChange: o, hi
|
|
|
116073
116073
|
}
|
|
116074
116074
|
}
|
|
116075
116075
|
}, [h]);
|
|
116076
|
-
const E =
|
|
116076
|
+
const E = $2(() => Object.entries(e).reduce((A, [I, T]) => {
|
|
116077
116077
|
const D = Qn(T.type);
|
|
116078
116078
|
return Math.max(A, D?.formHeight || FR);
|
|
116079
|
-
}, 0), [e]), w = e6(), k =
|
|
116079
|
+
}, 0), [e]), w = e6(), k = $2(() => M22(e, v, f), [e, v, f]), P = $2(() => k.length > 0 ? f.t("filters.activeFilters", {
|
|
116080
116080
|
filters: k.map((S) => e[S].label).join(", ")
|
|
116081
116081
|
}) : void 0, [k, e]);
|
|
116082
116082
|
if (s === "compact") {
|
|
@@ -116261,49 +116261,49 @@ const QB1 = ({ label: e, number: t, onClick: n, selected: r }) => H("label", {
|
|
|
116261
116261
|
})
|
|
116262
116262
|
})]
|
|
116263
116263
|
}), JB1 = 4, eq1 = ({ presets: e, value: t, onPresetsChange: n, presetsLoading: r = !1 }) => {
|
|
116264
|
-
const o = (
|
|
116265
|
-
const
|
|
116264
|
+
const o = $2(() => t != null && typeof t == "object" && !Array.isArray(t) ? t : {}, [t]), a = (f) => {
|
|
116265
|
+
const h = f.filter != null && typeof f.filter == "object" && !Array.isArray(f.filter) ? f.filter : {}, m = Object.entries(h).every(([g, y]) => JSON.stringify(o[g]) === JSON.stringify(y));
|
|
116266
116266
|
return {
|
|
116267
|
-
isSelected:
|
|
116267
|
+
isSelected: m,
|
|
116268
116268
|
handleClick: () => {
|
|
116269
|
-
if (
|
|
116270
|
-
const
|
|
116271
|
-
...
|
|
116269
|
+
if (m) {
|
|
116270
|
+
const g = {
|
|
116271
|
+
...o
|
|
116272
116272
|
};
|
|
116273
|
-
Object.keys(
|
|
116274
|
-
delete
|
|
116275
|
-
}), n?.(
|
|
116273
|
+
Object.keys(h).forEach((y) => {
|
|
116274
|
+
delete g[y];
|
|
116275
|
+
}), n?.(g);
|
|
116276
116276
|
} else
|
|
116277
116277
|
n?.({
|
|
116278
|
-
...
|
|
116279
|
-
...
|
|
116278
|
+
...o,
|
|
116279
|
+
...h
|
|
116280
116280
|
});
|
|
116281
116281
|
}
|
|
116282
116282
|
};
|
|
116283
|
-
},
|
|
116284
|
-
const { isSelected:
|
|
116283
|
+
}, s = (f, h, m = !0) => {
|
|
116284
|
+
const { isSelected: v, handleClick: g } = a(f);
|
|
116285
116285
|
return i(QB1, {
|
|
116286
|
-
label:
|
|
116287
|
-
selected:
|
|
116288
|
-
onClick:
|
|
116289
|
-
"data-visible":
|
|
116290
|
-
number:
|
|
116291
|
-
},
|
|
116292
|
-
},
|
|
116293
|
-
const { isSelected:
|
|
116286
|
+
label: f.label,
|
|
116287
|
+
selected: v,
|
|
116288
|
+
onClick: g,
|
|
116289
|
+
"data-visible": m,
|
|
116290
|
+
number: f.itemsCount?.(o) ?? void 0
|
|
116291
|
+
}, h);
|
|
116292
|
+
}, l = (f, h) => {
|
|
116293
|
+
const { isSelected: m, handleClick: v } = a(f);
|
|
116294
116294
|
return H("button", {
|
|
116295
|
-
className: s2("flex w-full cursor-pointer items-center justify-between rounded-sm p-2 text-left font-medium text-f1-foreground hover:bg-f1-background-secondary",
|
|
116296
|
-
onClick:
|
|
116295
|
+
className: s2("flex w-full cursor-pointer items-center justify-between rounded-sm p-2 text-left font-medium text-f1-foreground hover:bg-f1-background-secondary", m && "bg-f1-background-selected hover:bg-f1-background-selected", Fe()),
|
|
116296
|
+
onClick: v,
|
|
116297
116297
|
"data-visible": !0,
|
|
116298
|
-
children: [
|
|
116299
|
-
value: Object.keys(
|
|
116300
|
-
type:
|
|
116298
|
+
children: [f.label, i(Sk, {
|
|
116299
|
+
value: f.filter != null && typeof f.filter == "object" && !Array.isArray(f.filter) ? Object.keys(f.filter).length : 0,
|
|
116300
|
+
type: m ? "selected" : "default"
|
|
116301
116301
|
})]
|
|
116302
|
-
},
|
|
116303
|
-
},
|
|
116302
|
+
}, h);
|
|
116303
|
+
}, c = (f, h, m = !0) => i(K3, {
|
|
116304
116304
|
className: "h-8 w-32 rounded-md",
|
|
116305
|
-
"data-visible":
|
|
116306
|
-
},
|
|
116305
|
+
"data-visible": m
|
|
116306
|
+
}, h), u = (f, h) => H("div", {
|
|
116307
116307
|
className: "flex w-full items-center justify-between rounded-sm p-2",
|
|
116308
116308
|
"data-visible": !0,
|
|
116309
116309
|
children: [i(K3, {
|
|
@@ -116311,22 +116311,22 @@ const QB1 = ({ label: e, number: t, onClick: n, selected: r }) => H("label", {
|
|
|
116311
116311
|
}), i(K3, {
|
|
116312
116312
|
className: "h-4 w-6"
|
|
116313
116313
|
})]
|
|
116314
|
-
}, d);
|
|
116314
|
+
}, h), d = $2(() => !e || e.length === 0 ? [] : e.filter((f) => f && f.filter != null && typeof f.filter == "object" && !Array.isArray(f.filter)), [e]);
|
|
116315
116315
|
if (r) {
|
|
116316
|
-
const
|
|
116316
|
+
const f = Array.from({
|
|
116317
116317
|
length: JB1
|
|
116318
|
-
}, (
|
|
116318
|
+
}, (h, m) => m);
|
|
116319
116319
|
return i(Br, {
|
|
116320
|
-
items:
|
|
116321
|
-
renderListItem:
|
|
116322
|
-
renderDropdownItem:
|
|
116320
|
+
items: f,
|
|
116321
|
+
renderListItem: c,
|
|
116322
|
+
renderDropdownItem: u,
|
|
116323
116323
|
className: "min-w-0 flex-1"
|
|
116324
116324
|
});
|
|
116325
116325
|
}
|
|
116326
|
-
return
|
|
116327
|
-
items:
|
|
116328
|
-
renderListItem:
|
|
116329
|
-
renderDropdownItem:
|
|
116326
|
+
return d.length > 0 && i(Br, {
|
|
116327
|
+
items: d,
|
|
116328
|
+
renderListItem: s,
|
|
116329
|
+
renderDropdownItem: l,
|
|
116330
116330
|
className: "min-w-0 flex-1"
|
|
116331
116331
|
});
|
|
116332
116332
|
}, Ku = R1({
|
|
@@ -116363,7 +116363,7 @@ const QB1 = ({ label: e, number: t, onClick: n, selected: r }) => H("label", {
|
|
|
116363
116363
|
function EG1({ children: e, onEvent: t, enabled: n = !0, catchEvents: r }) {
|
|
116364
116364
|
const o = p1((s, l) => {
|
|
116365
116365
|
!n || r && !r.includes(s) || t(s, l);
|
|
116366
|
-
}, [n, r, t]), a =
|
|
116366
|
+
}, [n, r, t]), a = $2(() => ({
|
|
116367
116367
|
onEvent: o
|
|
116368
116368
|
}), [o]);
|
|
116369
116369
|
return i(x22.Provider, {
|
|
@@ -116426,11 +116426,11 @@ const VR = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
116426
116426
|
const l = U2(t), { emitFilterChange: c, emitPresetClick: u } = rq1({
|
|
116427
116427
|
defaultFilters: l.current
|
|
116428
116428
|
}), [d, f] = E2(!1);
|
|
116429
|
-
|
|
116429
|
+
O2(() => {
|
|
116430
116430
|
a?.(d);
|
|
116431
116431
|
}, [d, a]);
|
|
116432
116432
|
const [h, m] = E2(t);
|
|
116433
|
-
|
|
116433
|
+
O2(() => {
|
|
116434
116434
|
m(t ?? {});
|
|
116435
116435
|
}, [JSON.stringify(e), JSON.stringify(t)]);
|
|
116436
116436
|
const v = (y) => {
|
|
@@ -116495,7 +116495,7 @@ const P22 = () => {
|
|
|
116495
116495
|
};
|
|
116496
116496
|
P22.displayName = "Filters.Presets";
|
|
116497
116497
|
const H22 = () => {
|
|
116498
|
-
const { value: e, filters: t, setIsFiltersOpen: n, presets: r, removeFilterValue: o, setFiltersValue: a } = r1(Ku), s =
|
|
116498
|
+
const { value: e, filters: t, setIsFiltersOpen: n, presets: r, removeFilterValue: o, setFiltersValue: a } = r1(Ku), s = $2(() => tq1(r, e), [r, e]);
|
|
116499
116499
|
return t && i(YB1, {
|
|
116500
116500
|
filters: t,
|
|
116501
116501
|
value: e,
|
|
@@ -116561,7 +116561,7 @@ const Yg = "__no-grouping__", oq1 = ({ grouping: e, currentGrouping: t, onGroupi
|
|
|
116561
116561
|
});
|
|
116562
116562
|
}, F22 = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
116563
116563
|
const [r, o] = E2([]), a = f3();
|
|
116564
|
-
if (
|
|
116564
|
+
if (O2(() => {
|
|
116565
116565
|
(async () => {
|
|
116566
116566
|
const c = Object.entries(t).filter(([, d]) => d == null ? !1 : Array.isArray(d) ? d.length > 0 : d !== ""), u = await Promise.all(c.map(async ([d, f]) => {
|
|
116567
116567
|
const h = e[d], m = h?.label ?? d;
|
|
@@ -116699,14 +116699,14 @@ const aq1 = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, sea
|
|
|
116699
116699
|
})]
|
|
116700
116700
|
});
|
|
116701
116701
|
}, iq1 = (e) => Object.entries(e).some(([, t]) => t == null ? !1 : Array.isArray(t) ? t.length > 0 : t !== ""), PG1 = VW1, sq1 = (e, t) => e.type === "separator" || !t || e.label.toLowerCase().includes(t.toLowerCase()), lq1 = B(function({ placeholder: t, onChange: n, onChangeSelectedOption: r, value: o, options: a = [], mapOptions: s, children: l, disabled: c, open: u, hideLabel: d, onOpenChange: f, showSearchBox: h, onSearchChange: m, searchBoxPlaceholder: v, searchEmptyMessage: g, size: y = "sm", selectContentClassName: b, actions: L, source: M, label: E, icon: w, labelIcon: k, clearable: P, loading: S, name: A, error: I, status: T, hint: D, required: W, multiple: O, portalContainer: z, ...G }, Y) {
|
|
116702
|
-
const K = r1(Pk), e2 = K.portalContainer && (K.position === "center" || K.position === "fullscreen"), F = z !== void 0 ? z : e2 ? K.portalContainer : void 0, R = "onSelectItems" in G ? G.onSelectItems : void 0, r2 = "disableSelectAll" in G ? G.disableSelectAll : !1, [j, h2] = E2(u), m2 =
|
|
116703
|
-
|
|
116702
|
+
const K = r1(Pk), e2 = K.portalContainer && (K.position === "center" || K.position === "fullscreen"), F = z !== void 0 ? z : e2 ? K.portalContainer : void 0, R = "onSelectItems" in G ? G.onSelectItems : void 0, r2 = "disableSelectAll" in G ? G.disableSelectAll : !1, [j, h2] = E2(u), m2 = $2(() => a5(G.defaultItem).filter((D2) => D2 !== void 0), [G.defaultItem]), p2 = $2(() => m2.map((D2) => D2.value), [m2]), [c2, i2] = E2(a5(o) ?? p2 ?? []);
|
|
116703
|
+
O2(() => {
|
|
116704
116704
|
if (!bQ.isEqual(a5(o) ?? [], c2?.map((D2) => String(D2)) ?? [])) {
|
|
116705
116705
|
const D2 = a5(o) ?? p2 ?? [];
|
|
116706
116706
|
i2(Array.from(new Set(D2)));
|
|
116707
116707
|
}
|
|
116708
116708
|
}, [o]);
|
|
116709
|
-
const l2 =
|
|
116709
|
+
const l2 = $2(() => {
|
|
116710
116710
|
if (M && !["infinite-scroll", "no-pagination"].includes(nz1(M.dataAdapter)))
|
|
116711
116711
|
throw new Error("Select component only supports `infinite-scroll` or `no-pagination` pagination types");
|
|
116712
116712
|
return {
|
|
@@ -116739,7 +116739,7 @@ const aq1 = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, sea
|
|
|
116739
116739
|
return s(D2);
|
|
116740
116740
|
}
|
|
116741
116741
|
return D2;
|
|
116742
|
-
}, [s, M]), { data: U, isInitialLoading: g2, loadMore: t2, isLoadingMore: H2, isLoading: N2, paginationInfo: y2 } = VJ(o2), { currentSearch: _2, setCurrentSearch: T2 } = o2, F2 = U2(/* @__PURE__ */ new Map()), R2 =
|
|
116742
|
+
}, [s, M]), { data: U, isInitialLoading: g2, loadMore: t2, isLoadingMore: H2, isLoading: N2, paginationInfo: y2 } = VJ(o2), { currentSearch: _2, setCurrentSearch: T2 } = o2, F2 = U2(/* @__PURE__ */ new Map()), R2 = $2(() => {
|
|
116743
116743
|
const D2 = [];
|
|
116744
116744
|
for (const o1 of U.records) {
|
|
116745
116745
|
const g1 = d2(o1);
|
|
@@ -116749,7 +116749,7 @@ const aq1 = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, sea
|
|
|
116749
116749
|
}]);
|
|
116750
116750
|
}
|
|
116751
116751
|
return Object.fromEntries(D2);
|
|
116752
|
-
}, [U, d2]), I2 =
|
|
116752
|
+
}, [U, d2]), I2 = $2(() => {
|
|
116753
116753
|
const D2 = a5(o) ?? p2 ?? [];
|
|
116754
116754
|
if (D2.length === 0)
|
|
116755
116755
|
return;
|
|
@@ -116776,7 +116776,7 @@ const aq1 = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, sea
|
|
|
116776
116776
|
selectedState: I2,
|
|
116777
116777
|
disableSelectAll: r2,
|
|
116778
116778
|
isSearchActive: !!_2
|
|
116779
|
-
}), W2 =
|
|
116779
|
+
}), W2 = $2(() => {
|
|
116780
116780
|
const D2 = [];
|
|
116781
116781
|
for (const o1 of c2) {
|
|
116782
116782
|
const g1 = R2[o1];
|
|
@@ -116839,7 +116839,7 @@ const aq1 = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, sea
|
|
|
116839
116839
|
}, String(Z1.value)),
|
|
116840
116840
|
value: Z1.value
|
|
116841
116841
|
};
|
|
116842
|
-
}), [d2]), H1 =
|
|
116842
|
+
}), [d2]), H1 = $2(() => {
|
|
116843
116843
|
if (U.type === "grouped") {
|
|
116844
116844
|
const D2 = [];
|
|
116845
116845
|
return U.groups.map((o1) => {
|
|
@@ -116857,7 +116857,7 @@ const aq1 = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, sea
|
|
|
116857
116857
|
return G2(U.records);
|
|
116858
116858
|
}, [U.records, U.type, U.groups, G2, J3, se]), $1 = () => {
|
|
116859
116859
|
t2();
|
|
116860
|
-
}, m1 = f3(), W1 =
|
|
116860
|
+
}, m1 = f3(), W1 = $2(() => Array.from(u1.items.values()).filter((D2) => D2.checked).map((D2) => String(D2.id)), [u1.items]), Z3 = {
|
|
116861
116861
|
...G,
|
|
116862
116862
|
onItemCheckChange: X1,
|
|
116863
116863
|
disabled: c,
|
|
@@ -116997,7 +116997,7 @@ const SR = "__custom__", fq1 = (e, t) => {
|
|
|
116997
116997
|
return e.granularity !== t.granularity ? !1 : Ys(e.value.from, n.from) && (!e.value.to || !n.to || Ys(e.value.to, n.to));
|
|
116998
116998
|
}, Cq1 = ({ presets: e, ...t }) => {
|
|
116999
116999
|
const [n, r] = E2();
|
|
117000
|
-
return
|
|
117000
|
+
return O2(() => {
|
|
117001
117001
|
if (t.date) {
|
|
117002
117002
|
const a = Object.entries(e).find(([s, l]) => fq1(t.date, l));
|
|
117003
117003
|
r(a ? a[0] : void 0);
|
|
@@ -117021,10 +117021,10 @@ const SR = "__custom__", fq1 = (e, t) => {
|
|
|
117021
117021
|
}, Mr = (e, t) => !e && !t ? !0 : !e || !t ? !1 : e.value?.from.getTime() === t.value?.from.getTime() && e.value?.to.getTime() === t.value?.to.getTime() && e.granularity === t.granularity, AR = "__custom__";
|
|
117022
117022
|
function hq1({ onSelect: e, defaultValue: t, presets: n = [], granularities: r = ["day"], children: o, compareTo: a, defaultCompareTo: s, onCompareToChange: l, hideCalendarInput: c, value: u, asChild: d, ...f }) {
|
|
117023
117023
|
const h = f3(), [m, v] = E2(u || t);
|
|
117024
|
-
|
|
117024
|
+
O2(() => {
|
|
117025
117025
|
Mr(u, m) || v(u || t);
|
|
117026
117026
|
}, [u, t]);
|
|
117027
|
-
const g =
|
|
117027
|
+
const g = $2(() => m?.granularity ?? "day", [m?.granularity]), y = $2(() => S3[g], [g]), b = $2(() => S3[g].calendarMode || "single", [g]), L = (z) => {
|
|
117028
117028
|
M({
|
|
117029
117029
|
value: y.toRange(z ?? void 0),
|
|
117030
117030
|
granularity: g
|
|
@@ -117043,9 +117043,9 @@ function hq1({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
117043
117043
|
value: m?.value,
|
|
117044
117044
|
granularity: z
|
|
117045
117045
|
});
|
|
117046
|
-
}, S =
|
|
117046
|
+
}, S = $2(() => n.length > 0 && !w, [n, w]), A = () => {
|
|
117047
117047
|
k(!1);
|
|
117048
|
-
}, I =
|
|
117048
|
+
}, I = $2(() => y.calendarView || "day", [y]), [T, D] = E2(s || void 0), W = $2(() => {
|
|
117049
117049
|
const z = (a ?? {})[g] || [];
|
|
117050
117050
|
if (!m?.value)
|
|
117051
117051
|
return [];
|
|
@@ -117065,13 +117065,13 @@ function hq1({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
117065
117065
|
dateValue: void 0
|
|
117066
117066
|
}, ...Y];
|
|
117067
117067
|
}, [a, m, y, g]);
|
|
117068
|
-
|
|
117068
|
+
O2(() => {
|
|
117069
117069
|
D(s || "0");
|
|
117070
117070
|
}, [g, s]);
|
|
117071
117071
|
const O = (z) => {
|
|
117072
117072
|
D(z);
|
|
117073
117073
|
};
|
|
117074
|
-
return
|
|
117074
|
+
return O2(() => {
|
|
117075
117075
|
l?.(T ? W[+T]?.dateValue : void 0);
|
|
117076
117076
|
}, [T, l, W]), H(HM, {
|
|
117077
117077
|
open: f.open,
|
|
@@ -117136,7 +117136,7 @@ function hq1({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
117136
117136
|
}
|
|
117137
117137
|
const S22 = B(({ value: e, onDateChange: t, granularity: n, onOpenChange: r, minDate: o, maxDate: a, onClear: s, ...l }, c) => {
|
|
117138
117138
|
const [u, d] = E2(""), [f, h] = E2(!1), m = f3();
|
|
117139
|
-
|
|
117139
|
+
O2(() => {
|
|
117140
117140
|
d(n.toString(e?.value, m));
|
|
117141
117141
|
}, [e, n, m]);
|
|
117142
117142
|
const v = (L) => lJ(L, n, {
|
|
@@ -117184,10 +117184,10 @@ const S22 = B(({ value: e, onDateChange: t, granularity: n, onOpenChange: r, min
|
|
|
117184
117184
|
S22.displayName = "DateInput";
|
|
117185
117185
|
function mq1({ onChange: e, value: t, presets: n = [], granularities: r = ["day"], minDate: o, maxDate: a, open: s = !1, ...l }) {
|
|
117186
117186
|
const [c, u] = E2(), [d, f] = E2(s);
|
|
117187
|
-
|
|
117187
|
+
O2(() => {
|
|
117188
117188
|
f(s);
|
|
117189
117189
|
}, [s]);
|
|
117190
|
-
const h = f3(), m =
|
|
117190
|
+
const h = f3(), m = $2(() => r[0] ?? "day", [r]), v = p1((k) => {
|
|
117191
117191
|
const P = k || m;
|
|
117192
117192
|
if (!S3[P])
|
|
117193
117193
|
throw new Error(`Invalid granularity ${P}`);
|
|
@@ -117203,8 +117203,8 @@ function mq1({ onChange: e, value: t, presets: n = [], granularities: r = ["day"
|
|
|
117203
117203
|
value: P.toRange(P.calendarMode === "range" ? k.value : k.value?.from ?? void 0),
|
|
117204
117204
|
granularity: k.granularity
|
|
117205
117205
|
} : void 0;
|
|
117206
|
-
}, [v]), y =
|
|
117207
|
-
|
|
117206
|
+
}, [v]), y = $2(() => v(c?.granularity), [c?.granularity, v]);
|
|
117207
|
+
O2(() => {
|
|
117208
117208
|
const k = g(t);
|
|
117209
117209
|
Mr(c, k) || u(k);
|
|
117210
117210
|
}, [t]);
|
|
@@ -117219,8 +117219,8 @@ function mq1({ onChange: e, value: t, presets: n = [], granularities: r = ["day"
|
|
|
117219
117219
|
}
|
|
117220
117220
|
}, M = (k) => {
|
|
117221
117221
|
f(k), l.onOpenChange?.(k);
|
|
117222
|
-
}, E =
|
|
117223
|
-
return
|
|
117222
|
+
}, E = $2(() => n.filter((k) => r.includes(k.granularity)), [n, r]), w = U2(null);
|
|
117223
|
+
return O2(() => {
|
|
117224
117224
|
d && w.current && requestAnimationFrame(() => {
|
|
117225
117225
|
w.current?.focus();
|
|
117226
117226
|
});
|
|
@@ -117375,7 +117375,7 @@ const HG1 = {
|
|
|
117375
117375
|
}, gq1 = B(pq1);
|
|
117376
117376
|
function FG1({ title: e, description: t, onClick: n, onClose: r, isVisible: o, dismissable: a = !1, trackVisibility: s, type: l, ...c }) {
|
|
117377
117377
|
const [u, d] = E2(o);
|
|
117378
|
-
|
|
117378
|
+
O2(() => {
|
|
117379
117379
|
d(o), s && s(o);
|
|
117380
117380
|
}, [o, s]);
|
|
117381
117381
|
const f = () => {
|
|
@@ -117447,7 +117447,7 @@ const A22 = B(({ className: e, ...t }, n) => i(uM, {
|
|
|
117447
117447
|
A22.displayName = uM.displayName;
|
|
117448
117448
|
const vq1 = EX, T22 = B(({ wrapperClassName: e, className: t, children: n, withTranslateAnimation: r = !0, container: o, ...a }, s) => {
|
|
117449
117449
|
const [l, c] = E2();
|
|
117450
|
-
return
|
|
117450
|
+
return O2(() => {
|
|
117451
117451
|
c(o !== void 0 ? o : document.getElementById("content"));
|
|
117452
117452
|
}, [o]), l === void 0 ? null : H(vq1, {
|
|
117453
117453
|
container: l,
|
|
@@ -119217,7 +119217,7 @@ function jk() {
|
|
|
119217
119217
|
return r1(t12);
|
|
119218
119218
|
}
|
|
119219
119219
|
function OG1({ driver: e, children: t }) {
|
|
119220
|
-
const n = U2(e), r =
|
|
119220
|
+
const n = U2(e), r = $2(() => ({
|
|
119221
119221
|
driver: n.current
|
|
119222
119222
|
}), []);
|
|
119223
119223
|
return i(t12.Provider, {
|
|
@@ -119227,7 +119227,7 @@ function OG1({ driver: e, children: t }) {
|
|
|
119227
119227
|
}
|
|
119228
119228
|
function ZG1(e) {
|
|
119229
119229
|
const t = jk(), { ref: n, payload: r, disabled: o, handleRef: a } = e;
|
|
119230
|
-
|
|
119230
|
+
O2(() => {
|
|
119231
119231
|
if (n.current && !(!t || o))
|
|
119232
119232
|
return t.driver.registerDraggable(n.current, {
|
|
119233
119233
|
payload: r,
|
|
@@ -119238,14 +119238,14 @@ function ZG1(e) {
|
|
|
119238
119238
|
}
|
|
119239
119239
|
function DG1(e) {
|
|
119240
119240
|
const t = jk(), n = e?.ref, r = e?.id, o = e?.accepts;
|
|
119241
|
-
|
|
119241
|
+
O2(() => {
|
|
119242
119242
|
if (n?.current && !(!t || !r || !o))
|
|
119243
119243
|
return t.driver.registerDroppable(n.current, { id: r, accepts: o });
|
|
119244
119244
|
}, [t, n, r, o]);
|
|
119245
119245
|
}
|
|
119246
119246
|
function NG1(e) {
|
|
119247
119247
|
const t = jk();
|
|
119248
|
-
|
|
119248
|
+
O2(
|
|
119249
119249
|
() => t ? t.driver.subscribe(e) : void 0,
|
|
119250
119250
|
[t, e]
|
|
119251
119251
|
);
|