@voxel51/voodo 0.0.19 → 0.0.20
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as O, Fragment as Ss, jsxs as Me } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
|
-
import y, { useRef as z, useCallback as Z, useEffect as
|
|
3
|
+
import y, { useRef as z, useCallback as Z, useEffect as re, useState as ae, useMemo as ee, useLayoutEffect as Io, useContext as Ce, createContext as _e, forwardRef as rp, isValidElement as Es, cloneElement as Ya, createElement as O1, Fragment as Br, useId as We, useSyncExternalStore as op, useReducer as ks, createRef as Wn, Component as st, memo as ap } from "react";
|
|
4
4
|
import * as ba from "react-dom";
|
|
5
5
|
import ip, { flushSync as Fn, createPortal as Ms, unstable_batchedUpdates as Ko } from "react-dom";
|
|
6
6
|
function T1(e) {
|
|
@@ -541,7 +541,7 @@ const pp = (e, r) => {
|
|
|
541
541
|
c,
|
|
542
542
|
X,
|
|
543
543
|
Q
|
|
544
|
-
], I = () => ["", ce, oo, Xn], G = () => ["solid", "dashed", "dotted", "double"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], W = () => [ce, Ci, Bl, Vl],
|
|
544
|
+
], I = () => ["", ce, oo, Xn], G = () => ["solid", "dashed", "dotted", "double"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], W = () => [ce, Ci, Bl, Vl], oe = () => [
|
|
545
545
|
// Deprecated since Tailwind CSS v4.0.0
|
|
546
546
|
"",
|
|
547
547
|
"none",
|
|
@@ -2228,7 +2228,7 @@ const pp = (e, r) => {
|
|
|
2228
2228
|
* @see https://tailwindcss.com/docs/blur
|
|
2229
2229
|
*/
|
|
2230
2230
|
blur: [{
|
|
2231
|
-
blur:
|
|
2231
|
+
blur: oe()
|
|
2232
2232
|
}],
|
|
2233
2233
|
/**
|
|
2234
2234
|
* Brightness
|
|
@@ -2318,7 +2318,7 @@ const pp = (e, r) => {
|
|
|
2318
2318
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2319
2319
|
*/
|
|
2320
2320
|
"backdrop-blur": [{
|
|
2321
|
-
"backdrop-blur":
|
|
2321
|
+
"backdrop-blur": oe()
|
|
2322
2322
|
}],
|
|
2323
2323
|
/**
|
|
2324
2324
|
* Backdrop Brightness
|
|
@@ -3116,7 +3116,7 @@ function K1() {
|
|
|
3116
3116
|
}, [
|
|
3117
3117
|
n
|
|
3118
3118
|
]);
|
|
3119
|
-
return
|
|
3119
|
+
return re(() => t, [
|
|
3120
3120
|
t
|
|
3121
3121
|
]), {
|
|
3122
3122
|
addGlobalListener: r,
|
|
@@ -3260,7 +3260,7 @@ function C3(e, r, n) {
|
|
|
3260
3260
|
return e = e || t.activeElement instanceof o && !b3.has(t.activeElement.type) || t.activeElement instanceof a || t.activeElement instanceof i && t.activeElement.isContentEditable, !(e && r === "keyboard" && n instanceof s && !m3[n.key]);
|
|
3261
3261
|
}
|
|
3262
3262
|
function y3(e, r, n) {
|
|
3263
|
-
Xi(),
|
|
3263
|
+
Xi(), re(() => {
|
|
3264
3264
|
let t = (o, a) => {
|
|
3265
3265
|
C3(!!n?.isTextInput, o, a) && e(tu());
|
|
3266
3266
|
};
|
|
@@ -3363,7 +3363,7 @@ function jt(e) {
|
|
|
3363
3363
|
pointerType: "",
|
|
3364
3364
|
target: null
|
|
3365
3365
|
}).current;
|
|
3366
|
-
|
|
3366
|
+
re(D3, []);
|
|
3367
3367
|
let { addGlobalListener: l, removeAllGlobalListeners: c } = K1(), { hoverProps: u, triggerHoverEnd: d } = ee(() => {
|
|
3368
3368
|
let p = (v, m) => {
|
|
3369
3369
|
if (s.pointerType = m, o || m === "touch" || s.isHovered || !v.currentTarget.contains(v.target)) return;
|
|
@@ -3409,7 +3409,7 @@ function jt(e) {
|
|
|
3409
3409
|
l,
|
|
3410
3410
|
c
|
|
3411
3411
|
]);
|
|
3412
|
-
return
|
|
3412
|
+
return re(() => {
|
|
3413
3413
|
o && d({
|
|
3414
3414
|
currentTarget: s.target
|
|
3415
3415
|
}, s.pointerType);
|
|
@@ -3535,10 +3535,10 @@ function At() {
|
|
|
3535
3535
|
}
|
|
3536
3536
|
function Qn() {
|
|
3537
3537
|
let [e] = ae(At);
|
|
3538
|
-
return
|
|
3538
|
+
return re(() => () => e.dispose(), [e]), e;
|
|
3539
3539
|
}
|
|
3540
3540
|
let Re = (e, r) => {
|
|
3541
|
-
lr.isServer ?
|
|
3541
|
+
lr.isServer ? re(e, r) : Io(e, r);
|
|
3542
3542
|
};
|
|
3543
3543
|
function vt(e) {
|
|
3544
3544
|
let r = z(e);
|
|
@@ -3772,12 +3772,12 @@ function V3({ children: e }) {
|
|
|
3772
3772
|
}
|
|
3773
3773
|
function za({ data: e, form: r, disabled: n, onReset: t, overrides: o }) {
|
|
3774
3774
|
let [a, i] = ae(null), s = Qn();
|
|
3775
|
-
return
|
|
3775
|
+
return re(() => {
|
|
3776
3776
|
if (t && a) return s.addEventListener(a, "reset", t);
|
|
3777
3777
|
}, [a, r, t]), y.createElement(V3, null, y.createElement(B3, { setForm: i, formId: r }), iu(e).map(([l, c]) => y.createElement(xn, { features: wn.Hidden, ...er({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: r, disabled: n, name: l, value: c, ...o }) })));
|
|
3778
3778
|
}
|
|
3779
3779
|
function B3({ setForm: e, formId: r }) {
|
|
3780
|
-
return
|
|
3780
|
+
return re(() => {
|
|
3781
3781
|
if (r) {
|
|
3782
3782
|
let n = document.getElementById(r);
|
|
3783
3783
|
n && e(n);
|
|
@@ -3849,7 +3849,7 @@ function hu(e, r = !0) {
|
|
|
3849
3849
|
}
|
|
3850
3850
|
function $e(...e) {
|
|
3851
3851
|
let r = z(e);
|
|
3852
|
-
|
|
3852
|
+
re(() => {
|
|
3853
3853
|
r.current = e;
|
|
3854
3854
|
}, [e]);
|
|
3855
3855
|
let n = U((t) => {
|
|
@@ -4805,7 +4805,7 @@ function ku(e, r, n) {
|
|
|
4805
4805
|
let a = o.getBoundingClientRect();
|
|
4806
4806
|
a.x === 0 && a.y === 0 && a.width === 0 && a.height === 0 && n();
|
|
4807
4807
|
});
|
|
4808
|
-
|
|
4808
|
+
re(() => {
|
|
4809
4809
|
if (!e) return;
|
|
4810
4810
|
let o = r === null ? null : Nt(r) ? r : r.current;
|
|
4811
4811
|
if (!o) return;
|
|
@@ -4899,7 +4899,7 @@ function rs() {
|
|
|
4899
4899
|
}
|
|
4900
4900
|
function Lr(e, r, n, t) {
|
|
4901
4901
|
let o = vt(n);
|
|
4902
|
-
|
|
4902
|
+
re(() => {
|
|
4903
4903
|
if (!e) return;
|
|
4904
4904
|
function a(i) {
|
|
4905
4905
|
o.current(i);
|
|
@@ -4909,7 +4909,7 @@ function Lr(e, r, n, t) {
|
|
|
4909
4909
|
}
|
|
4910
4910
|
function Ou(e, r, n, t) {
|
|
4911
4911
|
let o = vt(n);
|
|
4912
|
-
|
|
4912
|
+
re(() => {
|
|
4913
4913
|
if (!e) return;
|
|
4914
4914
|
function a(i) {
|
|
4915
4915
|
o.current(i);
|
|
@@ -4978,7 +4978,7 @@ function W5(e, { trigger: r, action: n, close: t, select: o }) {
|
|
|
4978
4978
|
}
|
|
4979
4979
|
function _u(e, r, n, t) {
|
|
4980
4980
|
let o = vt(n);
|
|
4981
|
-
|
|
4981
|
+
re(() => {
|
|
4982
4982
|
e = e ?? window;
|
|
4983
4983
|
function a(i) {
|
|
4984
4984
|
o.current(i);
|
|
@@ -5211,7 +5211,7 @@ function n6(e) {
|
|
|
5211
5211
|
}
|
|
5212
5212
|
function r6(e, { container: r, accept: n, walk: t }) {
|
|
5213
5213
|
let o = z(n), a = z(t);
|
|
5214
|
-
|
|
5214
|
+
re(() => {
|
|
5215
5215
|
o.current = n, a.current = t;
|
|
5216
5216
|
}, [n, t]), Re(() => {
|
|
5217
5217
|
if (!r || !e) return;
|
|
@@ -5223,7 +5223,7 @@ function r6(e, { container: r, accept: n, walk: t }) {
|
|
|
5223
5223
|
}
|
|
5224
5224
|
function dc(e, r) {
|
|
5225
5225
|
let n = z([]), t = U(e);
|
|
5226
|
-
|
|
5226
|
+
re(() => {
|
|
5227
5227
|
let o = [...n.current];
|
|
5228
5228
|
for (let [a, i] of r.entries()) if (n.current[a] !== i) {
|
|
5229
5229
|
let s = t(r, o);
|
|
@@ -6465,7 +6465,7 @@ function Gu(e) {
|
|
|
6465
6465
|
return r.current == null ? void 0 : r.current(...t);
|
|
6466
6466
|
}, []);
|
|
6467
6467
|
}
|
|
6468
|
-
var ss = typeof document < "u" ? Io :
|
|
6468
|
+
var ss = typeof document < "u" ? Io : re;
|
|
6469
6469
|
let wc = !1, s2 = 0;
|
|
6470
6470
|
const xc = () => (
|
|
6471
6471
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
@@ -6992,7 +6992,7 @@ function Pc(e, r) {
|
|
|
6992
6992
|
}
|
|
6993
6993
|
function Xs(e) {
|
|
6994
6994
|
let r = U(e), n = z(!1);
|
|
6995
|
-
|
|
6995
|
+
re(() => (n.current = !1, () => {
|
|
6996
6996
|
n.current = !0, Fs(() => {
|
|
6997
6997
|
n.current && r();
|
|
6998
6998
|
});
|
|
@@ -7013,9 +7013,9 @@ function R2(e) {
|
|
|
7013
7013
|
let s = e.createElement("div");
|
|
7014
7014
|
return s.setAttribute("id", "headlessui-portal-root"), e.body.appendChild(s);
|
|
7015
7015
|
});
|
|
7016
|
-
return
|
|
7016
|
+
return re(() => {
|
|
7017
7017
|
t !== null && (e != null && e.body.contains(t) || e == null || e.body.appendChild(t));
|
|
7018
|
-
}, [t, e]),
|
|
7018
|
+
}, [t, e]), re(() => {
|
|
7019
7019
|
r || n !== null && o(n.current);
|
|
7020
7020
|
}, [n, o, r]), t;
|
|
7021
7021
|
}
|
|
@@ -7265,14 +7265,14 @@ function j2(e) {
|
|
|
7265
7265
|
}
|
|
7266
7266
|
let U2 = Br;
|
|
7267
7267
|
function Z2(e, r) {
|
|
7268
|
-
let n = We(), t = $t(), { value: o, defaultValue: a, onChange: i, form: s, name: l, by: c, invalid: u = !1, disabled: d = t || !1, onClose: p, __demoMode: f = !1, multiple: h = !1, immediate: v = !1, virtual: m = null, nullable: g, ...C } = e, b = Wa(a), [D = h ? [] : void 0, w] = Ba(o, i, b), E = cd({ id: n, virtual: m, __demoMode: f }), k = z({ static: !1, hold: !1 }), S = Cu(c), T = U((
|
|
7268
|
+
let n = We(), t = $t(), { value: o, defaultValue: a, onChange: i, form: s, name: l, by: c, invalid: u = !1, disabled: d = t || !1, onClose: p, __demoMode: f = !1, multiple: h = !1, immediate: v = !1, virtual: m = null, nullable: g, ...C } = e, b = Wa(a), [D = h ? [] : void 0, w] = Ba(o, i, b), E = cd({ id: n, virtual: m, __demoMode: f }), k = z({ static: !1, hold: !1 }), S = Cu(c), T = U((oe) => m ? c === null ? m.options.indexOf(oe) : m.options.findIndex((me) => S(me, oe)) : E.state.options.findIndex((me) => S(me.dataRef.current.value, oe))), _ = Z((oe) => ze(N.mode, { [kt.Multi]: () => D.some((me) => S(me, oe)), [kt.Single]: () => S(D, oe) }), [D]), P = Ye(E, (oe) => oe.virtual), M = U(() => p?.()), N = ee(() => ({ __demoMode: f, immediate: v, optionsPropsRef: k, value: D, defaultValue: b, disabled: d, invalid: u, mode: h ? kt.Multi : kt.Single, virtual: m ? P : null, onChange: w, isSelected: _, calculateIndex: T, compare: S, onClose: M }), [f, v, k, D, b, d, u, h, m, P, w, _, T, S, M]);
|
|
7269
7269
|
Re(() => {
|
|
7270
|
-
var
|
|
7271
|
-
m && E.send({ type: sd.UpdateVirtualConfiguration, options: m.options, disabled: (
|
|
7270
|
+
var oe;
|
|
7271
|
+
m && E.send({ type: sd.UpdateVirtualConfiguration, options: m.options, disabled: (oe = m.disabled) != null ? oe : null });
|
|
7272
7272
|
}, [m, m?.options, m?.disabled]), Re(() => {
|
|
7273
7273
|
E.state.dataRef.current = N;
|
|
7274
7274
|
}, [N]);
|
|
7275
|
-
let [L, $, H, Y] = Ye(E, (
|
|
7275
|
+
let [L, $, H, Y] = Ye(E, (oe) => [oe.comboboxState, oe.buttonElement, oe.inputElement, oe.optionsElement]), R = Ka.get(null), q = Ye(R, Z((oe) => R.selectors.isTop(oe, n), [R, n]));
|
|
7276
7276
|
Tu(q, [$, H, Y], () => E.actions.closeCombobox());
|
|
7277
7277
|
let K = Ye(E, E.selectors.activeOptionIndex), le = Ye(E, E.selectors.activeOption), F = Ne({ open: L === fe.Open, disabled: d, invalid: u, activeIndex: K, activeOption: le, value: D }), [V, I] = Zr(), G = r === null ? {} : { ref: r }, ne = Z(() => {
|
|
7278
7278
|
if (b !== void 0) return w?.(b);
|
|
@@ -7293,16 +7293,16 @@ function G2(e, r) {
|
|
|
7293
7293
|
let ne = v.current;
|
|
7294
7294
|
ne && ((G === fe.Open && V === fe.Closed || F !== I) && (ne.value = F), requestAnimationFrame(() => {
|
|
7295
7295
|
if (o.state.isTyping || !ne || go(ne)) return;
|
|
7296
|
-
let { selectionStart: W, selectionEnd:
|
|
7297
|
-
Math.abs((
|
|
7296
|
+
let { selectionStart: W, selectionEnd: oe } = ne;
|
|
7297
|
+
Math.abs((oe ?? 0) - (W ?? 0)) === 0 && W === 0 && ne.setSelectionRange(ne.value.length, ne.value.length);
|
|
7298
7298
|
}));
|
|
7299
7299
|
}, [w, g, C]), dc(([F], [V]) => {
|
|
7300
7300
|
if (F === fe.Open && V === fe.Closed) {
|
|
7301
7301
|
if (o.state.isTyping) return;
|
|
7302
7302
|
let I = v.current;
|
|
7303
7303
|
if (!I) return;
|
|
7304
|
-
let G = I.value, { selectionStart: ne, selectionEnd: W, selectionDirection:
|
|
7305
|
-
I.value = "", I.value = G,
|
|
7304
|
+
let G = I.value, { selectionStart: ne, selectionEnd: W, selectionDirection: oe } = I;
|
|
7305
|
+
I.value = "", I.value = G, oe !== null ? I.setSelectionRange(ne, W, oe) : I.setSelectionRange(ne, W);
|
|
7306
7306
|
}
|
|
7307
7307
|
}, [g]);
|
|
7308
7308
|
let E = z(!1), k = U(() => {
|
|
@@ -7417,12 +7417,12 @@ function e0(e, r) {
|
|
|
7417
7417
|
f.actions.setActivationTrigger(rn.Pointer);
|
|
7418
7418
|
}), F = U((Se) => {
|
|
7419
7419
|
Se.preventDefault(), f.actions.setActivationTrigger(rn.Pointer);
|
|
7420
|
-
}), V = gt(v ? D() : {}, { "aria-labelledby": q, role: "listbox", "aria-multiselectable": h.mode === kt.Multi ? !0 : void 0, id: i, ref: w, style: { ...p.style, ...g, "--input-width": ts(L, k, !0).width, "--button-width": ts(L, S, !0).width }, onWheel: _ === rn.Pointer ? void 0 : le, onMouseDown: F, ...Bs($) }), I = L && E === fe.Closed && !e.static, G = ls(I, (n = h.virtual) == null ? void 0 : n.options), ne = ls(I, h.value), W = Z((Se) => h.compare(ne, Se), [h.compare, ne]),
|
|
7420
|
+
}), V = gt(v ? D() : {}, { "aria-labelledby": q, role: "listbox", "aria-multiselectable": h.mode === kt.Multi ? !0 : void 0, id: i, ref: w, style: { ...p.style, ...g, "--input-width": ts(L, k, !0).width, "--button-width": ts(L, S, !0).width }, onWheel: _ === rn.Pointer ? void 0 : le, onMouseDown: F, ...Bs($) }), I = L && E === fe.Closed && !e.static, G = ls(I, (n = h.virtual) == null ? void 0 : n.options), ne = ls(I, h.value), W = Z((Se) => h.compare(ne, Se), [h.compare, ne]), oe = ee(() => {
|
|
7421
7421
|
if (!h.virtual) return h;
|
|
7422
7422
|
if (G === void 0) throw new Error("Missing `options` in virtual mode");
|
|
7423
7423
|
return G !== h.virtual.options ? { ...h, virtual: { ...h.virtual, options: G } } : h;
|
|
7424
7424
|
}, [h, G, (t = h.virtual) == null ? void 0 : t.options]);
|
|
7425
|
-
h.virtual && Object.assign(p, { children: y.createElement(ko.Provider, { value:
|
|
7425
|
+
h.virtual && Object.assign(p, { children: y.createElement(ko.Provider, { value: oe }, y.createElement(j2, { slot: K }, p.children)) });
|
|
7426
7426
|
let me = xe(), ie = ee(() => h.mode === kt.Multi ? h : { ...h, isSelected: W }, [h, W]);
|
|
7427
7427
|
return y.createElement(ad, { enabled: c ? e.static || L : !1, ownerDocument: P }, y.createElement(ko.Provider, { value: ie }, me({ ourProps: V, theirProps: { ...p, children: y.createElement(M2, { freeze: I }, typeof p.children == "function" ? (o = p.children) == null ? void 0 : o.call(p, K) : p.children) }, slot: K, defaultTag: X2, features: J2, visible: R, name: "Combobox.Options" })));
|
|
7428
7428
|
}
|
|
@@ -7592,7 +7592,7 @@ function S0(e, r) {
|
|
|
7592
7592
|
let H = zn((L = s.current) != null ? L : u);
|
|
7593
7593
|
return ($ = C?.isFocusWithinPopoverGroup()) != null ? $ : H && (u?.contains(H) || d?.contains(H));
|
|
7594
7594
|
});
|
|
7595
|
-
|
|
7595
|
+
re(() => b?.(g), [b, g]);
|
|
7596
7596
|
let [w, E] = $2(), k = vd(u), S = s0({ mainTreeNode: k, portals: w, defaultContainers: [{ get current() {
|
|
7597
7597
|
return i.state.button;
|
|
7598
7598
|
} }, { get current() {
|
|
@@ -7612,7 +7612,7 @@ function S0(e, r) {
|
|
|
7612
7612
|
let E0 = "button";
|
|
7613
7613
|
function k0(e, r) {
|
|
7614
7614
|
let n = We(), { id: t = `headlessui-popover-button-${n}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = ri("Popover.Button"), [l, c, u, d, p, f, h] = Ye(s, Z((I) => [I.popoverState, s.selectors.isPortalled(I), I.button, I.buttonId, I.panel, I.panelId, I.afterButtonSentinel], [])), v = z(null), m = `headlessui-focus-sentinel-${We()}`, g = Cd(), C = g?.closeOthers, b = x0() !== null;
|
|
7615
|
-
|
|
7615
|
+
re(() => {
|
|
7616
7616
|
if (!b) return s.actions.setButtonId(t), () => s.actions.setButtonId(null);
|
|
7617
7617
|
}, [b, t, s]);
|
|
7618
7618
|
let [D] = ae(() => Symbol()), w = $e(v, r, Qu(), U((I) => {
|
|
@@ -7642,8 +7642,8 @@ function k0(e, r) {
|
|
|
7642
7642
|
case se.Escape:
|
|
7643
7643
|
if (s.state.popoverState !== qe.Open) return C?.(s.state.buttonId);
|
|
7644
7644
|
if (!v.current) return;
|
|
7645
|
-
let
|
|
7646
|
-
if (
|
|
7645
|
+
let oe = zn(v.current);
|
|
7646
|
+
if (oe && !v.current.contains(oe)) return;
|
|
7647
7647
|
I.preventDefault(), I.stopPropagation(), s.actions.close();
|
|
7648
7648
|
break;
|
|
7649
7649
|
}
|
|
@@ -7691,18 +7691,18 @@ function _0(e, r) {
|
|
|
7691
7691
|
break;
|
|
7692
7692
|
}
|
|
7693
7693
|
});
|
|
7694
|
-
|
|
7694
|
+
re(() => {
|
|
7695
7695
|
var V;
|
|
7696
7696
|
e.static || p === qe.Closed && ((V = e.unmount) == null || V) && u.actions.setPanel(null);
|
|
7697
|
-
}, [p, e.unmount, e.static, u]),
|
|
7697
|
+
}, [p, e.unmount, e.static, u]), re(() => {
|
|
7698
7698
|
if (h || !o || p !== qe.Open || !b.current) return;
|
|
7699
7699
|
let V = zn(b.current);
|
|
7700
7700
|
b.current.contains(V) || mt(b.current, Ve.First);
|
|
7701
7701
|
}, [h, o, b.current, p]);
|
|
7702
7702
|
let Y = Ne({ open: p === qe.Open, close: u.actions.refocusableClose }), R = gt(D ? k() : {}, { ref: _, id: t, onKeyDown: H, onBlur: o && p === qe.Open ? (V) => {
|
|
7703
|
-
var I, G, ne, W,
|
|
7703
|
+
var I, G, ne, W, oe;
|
|
7704
7704
|
let me = V.relatedTarget;
|
|
7705
|
-
me && b.current && ((I = b.current) != null && I.contains(me) || (u.actions.close(), ((ne = (G = v.current) == null ? void 0 : G.contains) != null && ne.call(G, me) || (
|
|
7705
|
+
me && b.current && ((I = b.current) != null && I.contains(me) || (u.actions.close(), ((ne = (G = v.current) == null ? void 0 : G.contains) != null && ne.call(G, me) || (oe = (W = m.current) == null ? void 0 : W.contains) != null && oe.call(W, me)) && me.focus({ preventScroll: !0 })));
|
|
7706
7706
|
} : void 0, tabIndex: -1, style: { ...c.style, ...E, "--button-width": ts(L, f, !0).width }, ...Bs($) }), q = gd(), K = U(() => {
|
|
7707
7707
|
let V = b.current;
|
|
7708
7708
|
if (!V) return;
|
|
@@ -7723,7 +7723,7 @@ function _0(e, r) {
|
|
|
7723
7723
|
ze(q.current, { [vn.Forwards]: () => {
|
|
7724
7724
|
var G;
|
|
7725
7725
|
if (!u.state.button) return;
|
|
7726
|
-
let ne = (G = pr(u.state.button)) != null ? G : document.body, W = Ga(ne),
|
|
7726
|
+
let ne = (G = pr(u.state.button)) != null ? G : document.body, W = Ga(ne), oe = W.indexOf(u.state.button), me = W.slice(0, oe + 1), ie = [...W.slice(oe + 1), ...me];
|
|
7727
7727
|
for (let Se of ie.slice()) if (Se.dataset.headlessuiFocusGuard === "true" || S != null && S.contains(Se)) {
|
|
7728
7728
|
let tt = ie.indexOf(Se);
|
|
7729
7729
|
tt !== -1 && ie.splice(tt, 1);
|
|
@@ -11787,7 +11787,7 @@ var Im = function(e) {
|
|
|
11787
11787
|
return y.createElement("div", { className: a, "aria-label": l, role: s ? void 0 : "dialog", "aria-modal": s ? void 0 : "true", translate: "no" }, i);
|
|
11788
11788
|
}, Fm = function(e, r) {
|
|
11789
11789
|
var n = z(null), t = z(e);
|
|
11790
|
-
|
|
11790
|
+
re(function() {
|
|
11791
11791
|
t.current = e;
|
|
11792
11792
|
}, [e]);
|
|
11793
11793
|
var o = Z(function(a) {
|
|
@@ -11796,7 +11796,7 @@ var Im = function(e) {
|
|
|
11796
11796
|
}) || a.target;
|
|
11797
11797
|
n.current && !n.current.contains(s) && (r && s instanceof HTMLElement && s.classList.contains(r) || (i = t.current) === null || i === void 0 || i.call(t, a));
|
|
11798
11798
|
}, [r]);
|
|
11799
|
-
return
|
|
11799
|
+
return re(function() {
|
|
11800
11800
|
return document.addEventListener("mousedown", o), function() {
|
|
11801
11801
|
document.removeEventListener("mousedown", o);
|
|
11802
11802
|
};
|
|
@@ -14090,7 +14090,7 @@ function S9(e) {
|
|
|
14090
14090
|
}
|
|
14091
14091
|
var E9 = function(e) {
|
|
14092
14092
|
var r = e.className, n = e.wrapperClassName, t = e.hidePopper, o = t === void 0 ? !0 : t, a = e.popperComponent, i = e.targetComponent, s = e.enableTabLoop, l = e.popperOnKeyDown, c = e.portalId, u = e.portalHost, d = e.popperProps, p = e.showArrow, f = e.popperTargetRef, h = e.monthHeaderPosition;
|
|
14093
|
-
|
|
14093
|
+
re(function() {
|
|
14094
14094
|
f?.current && d.refs.setPositionReference(f.current);
|
|
14095
14095
|
}, [f, d.refs]);
|
|
14096
14096
|
var v = void 0;
|
|
@@ -15483,7 +15483,7 @@ function wf(e) {
|
|
|
15483
15483
|
function Xr(e) {
|
|
15484
15484
|
return e ? Qr(e) ? e.document : Cl(e) ? yl(e) ? e : Wo(e) || wf(e) ? e.ownerDocument : document : document : document;
|
|
15485
15485
|
}
|
|
15486
|
-
const sn = di ? Io :
|
|
15486
|
+
const sn = di ? Io : re;
|
|
15487
15487
|
function wl(e) {
|
|
15488
15488
|
const r = z(e);
|
|
15489
15489
|
return sn(() => {
|
|
@@ -15532,7 +15532,7 @@ function Fa(e) {
|
|
|
15532
15532
|
}
|
|
15533
15533
|
function gs(e) {
|
|
15534
15534
|
const r = z();
|
|
15535
|
-
return
|
|
15535
|
+
return re(() => {
|
|
15536
15536
|
r.current = e;
|
|
15537
15537
|
}, [e]), r.current;
|
|
15538
15538
|
}
|
|
@@ -15704,7 +15704,7 @@ function nv() {
|
|
|
15704
15704
|
const Df = /* @__PURE__ */ _e(null);
|
|
15705
15705
|
function rv(e) {
|
|
15706
15706
|
const r = Ce(Df);
|
|
15707
|
-
|
|
15707
|
+
re(() => {
|
|
15708
15708
|
if (!r)
|
|
15709
15709
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
15710
15710
|
return r(e);
|
|
@@ -15768,7 +15768,7 @@ function sv(e) {
|
|
|
15768
15768
|
announce: a,
|
|
15769
15769
|
announcement: i
|
|
15770
15770
|
} = nv(), s = jo("DndLiveRegion"), [l, c] = ae(!1);
|
|
15771
|
-
if (
|
|
15771
|
+
if (re(() => {
|
|
15772
15772
|
c(!0);
|
|
15773
15773
|
}, []), rv(ee(() => ({
|
|
15774
15774
|
onDragStart(d) {
|
|
@@ -16784,7 +16784,7 @@ function Av(e) {
|
|
|
16784
16784
|
const k = m.current.x * g.current.x, S = m.current.y * g.current.y;
|
|
16785
16785
|
E.scrollBy(k, S);
|
|
16786
16786
|
}, []), w = ee(() => s === $a.TreeOrder ? [...c].reverse() : c, [s, c]);
|
|
16787
|
-
|
|
16787
|
+
re(
|
|
16788
16788
|
() => {
|
|
16789
16789
|
if (!a || !c.length || !C) {
|
|
16790
16790
|
v();
|
|
@@ -16929,21 +16929,21 @@ function Bv(e, r) {
|
|
|
16929
16929
|
}
|
|
16930
16930
|
return g;
|
|
16931
16931
|
}, [e, a, n, d, l]);
|
|
16932
|
-
return
|
|
16932
|
+
return re(() => {
|
|
16933
16933
|
u.current = e;
|
|
16934
|
-
}, [e]),
|
|
16934
|
+
}, [e]), re(
|
|
16935
16935
|
() => {
|
|
16936
16936
|
d || f();
|
|
16937
16937
|
},
|
|
16938
16938
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16939
16939
|
[n, d]
|
|
16940
|
-
),
|
|
16940
|
+
), re(
|
|
16941
16941
|
() => {
|
|
16942
16942
|
a && a.length > 0 && i(null);
|
|
16943
16943
|
},
|
|
16944
16944
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16945
16945
|
[JSON.stringify(a)]
|
|
16946
|
-
),
|
|
16946
|
+
), re(
|
|
16947
16947
|
() => {
|
|
16948
16948
|
d || typeof s != "number" || h.current !== null || (h.current = setTimeout(() => {
|
|
16949
16949
|
f(), h.current = null;
|
|
@@ -16986,7 +16986,7 @@ function zv(e) {
|
|
|
16986
16986
|
} = window;
|
|
16987
16987
|
return new a(t);
|
|
16988
16988
|
}, [t, n]);
|
|
16989
|
-
return
|
|
16989
|
+
return re(() => () => o?.disconnect(), [o]), o;
|
|
16990
16990
|
}
|
|
16991
16991
|
function pi(e) {
|
|
16992
16992
|
let {
|
|
@@ -17005,7 +17005,7 @@ function pi(e) {
|
|
|
17005
17005
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17006
17006
|
[n]
|
|
17007
17007
|
);
|
|
17008
|
-
return
|
|
17008
|
+
return re(() => () => o?.disconnect(), [o]), o;
|
|
17009
17009
|
}
|
|
17010
17010
|
function jv(e) {
|
|
17011
17011
|
return new Dl(Jr(e), e);
|
|
@@ -17056,7 +17056,7 @@ function Uv(e) {
|
|
|
17056
17056
|
const D1 = [];
|
|
17057
17057
|
function Zv(e) {
|
|
17058
17058
|
const r = z(e), n = zo((t) => e ? t && t !== D1 && e && r.current && e.parentNode === r.current.parentNode ? t : fi(e) : D1, [e]);
|
|
17059
|
-
return
|
|
17059
|
+
return re(() => {
|
|
17060
17060
|
r.current = e;
|
|
17061
17061
|
}, [e]), n;
|
|
17062
17062
|
}
|
|
@@ -17065,7 +17065,7 @@ function Kv(e) {
|
|
|
17065
17065
|
const i = Bi(a.target);
|
|
17066
17066
|
i && n((s) => s ? (s.set(i, Cs(i)), new Map(s)) : null);
|
|
17067
17067
|
}, []);
|
|
17068
|
-
return
|
|
17068
|
+
return re(() => {
|
|
17069
17069
|
const a = t.current;
|
|
17070
17070
|
if (e !== a) {
|
|
17071
17071
|
i(a);
|
|
@@ -17091,19 +17091,19 @@ function Kv(e) {
|
|
|
17091
17091
|
function S1(e, r) {
|
|
17092
17092
|
r === void 0 && (r = []);
|
|
17093
17093
|
const n = z(null);
|
|
17094
|
-
return
|
|
17094
|
+
return re(
|
|
17095
17095
|
() => {
|
|
17096
17096
|
n.current = null;
|
|
17097
17097
|
},
|
|
17098
17098
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17099
17099
|
r
|
|
17100
|
-
),
|
|
17100
|
+
), re(() => {
|
|
17101
17101
|
const t = e !== zt;
|
|
17102
17102
|
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
|
|
17103
17103
|
}, [e]), n.current ? Lo(e, n.current) : zt;
|
|
17104
17104
|
}
|
|
17105
17105
|
function Gv(e) {
|
|
17106
|
-
|
|
17106
|
+
re(
|
|
17107
17107
|
() => {
|
|
17108
17108
|
if (!di)
|
|
17109
17109
|
return;
|
|
@@ -17395,7 +17395,7 @@ function ig(e) {
|
|
|
17395
17395
|
activatorEvent: t,
|
|
17396
17396
|
draggableNodes: o
|
|
17397
17397
|
} = Ce(hi), a = gs(t), i = gs(n?.id);
|
|
17398
|
-
return
|
|
17398
|
+
return re(() => {
|
|
17399
17399
|
if (!r && !t && a && i != null) {
|
|
17400
17400
|
if (!xl(a) || document.activeElement === a.target)
|
|
17401
17401
|
return;
|
|
@@ -17536,10 +17536,10 @@ const ug = /* @__PURE__ */ ap(function(r) {
|
|
|
17536
17536
|
dragging: E,
|
|
17537
17537
|
dependencies: [T.x, T.y],
|
|
17538
17538
|
config: F.droppable
|
|
17539
|
-
}), ne = Yv(S, k), W = ee(() => Y ? bs(Y) : null, [Y]),
|
|
17539
|
+
}), ne = Yv(S, k), W = ee(() => Y ? bs(Y) : null, [Y]), oe = np(), me = Wv(ne, F.draggable.measure);
|
|
17540
17540
|
cg({
|
|
17541
17541
|
activeNode: k != null ? S.get(k) : null,
|
|
17542
|
-
config:
|
|
17542
|
+
config: oe.layoutShiftCompensation,
|
|
17543
17543
|
initialRect: me,
|
|
17544
17544
|
measure: F.draggable.measure
|
|
17545
17545
|
});
|
|
@@ -17725,7 +17725,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
|
|
|
17725
17725
|
}, [S, Il]), Fl = Vv(u, Jf);
|
|
17726
17726
|
Gv(u), sn(() => {
|
|
17727
17727
|
ie && D === In.Initializing && w(In.Initialized);
|
|
17728
|
-
}, [ie, D]),
|
|
17728
|
+
}, [ie, D]), re(
|
|
17729
17729
|
() => {
|
|
17730
17730
|
const {
|
|
17731
17731
|
onDragMove: ct
|
|
@@ -17756,7 +17756,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
|
|
|
17756
17756
|
},
|
|
17757
17757
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17758
17758
|
[Sr.x, Sr.y]
|
|
17759
|
-
),
|
|
17759
|
+
), re(
|
|
17760
17760
|
() => {
|
|
17761
17761
|
const {
|
|
17762
17762
|
active: ct,
|
|
@@ -17813,7 +17813,7 @@ const ug = /* @__PURE__ */ ap(function(r) {
|
|
|
17813
17813
|
translated: Er
|
|
17814
17814
|
};
|
|
17815
17815
|
}, [N, ne, eo, Er, S, xr, Dr, V, _, On, Pn, Sr]), Av({
|
|
17816
|
-
...
|
|
17816
|
+
...oe,
|
|
17817
17817
|
delta: T,
|
|
17818
17818
|
draggingRect: Er,
|
|
17819
17819
|
pointerCoordinates: _l,
|
|
@@ -17976,9 +17976,9 @@ function gg(e) {
|
|
|
17976
17976
|
}), D = Z((S, T) => {
|
|
17977
17977
|
b && (T && (b.unobserve(T), d.current = !1), S && b.observe(S));
|
|
17978
17978
|
}, [b]), [w, E] = Fa(D), k = _o(r);
|
|
17979
|
-
return
|
|
17979
|
+
return re(() => {
|
|
17980
17980
|
!b || !w.current || (b.disconnect(), d.current = !1, b.observe(w.current));
|
|
17981
|
-
}, [w, b]),
|
|
17981
|
+
}, [w, b]), re(
|
|
17982
17982
|
() => (s({
|
|
17983
17983
|
type: Je.RegisterDroppable,
|
|
17984
17984
|
element: {
|
|
@@ -17996,7 +17996,7 @@ function gg(e) {
|
|
|
17996
17996
|
})),
|
|
17997
17997
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17998
17998
|
[t]
|
|
17999
|
-
),
|
|
17999
|
+
), re(() => {
|
|
18000
18000
|
n !== u.current.disabled && (s({
|
|
18001
18001
|
type: Je.SetDroppableDisabled,
|
|
18002
18002
|
id: t,
|
|
@@ -18128,7 +18128,7 @@ function Dg(e) {
|
|
|
18128
18128
|
} = hg(), d = jo(Yf, n), p = s.rect !== null, f = ee(() => t.map((E) => typeof E == "object" && "id" in E ? E.id : E), [t]), h = i != null, v = i ? f.indexOf(i.id) : -1, m = c ? f.indexOf(c.id) : -1, g = z(f), C = !Cg(f, g.current), b = m !== -1 && v === -1 || C, D = yg(a);
|
|
18129
18129
|
sn(() => {
|
|
18130
18130
|
C && h && u(f);
|
|
18131
|
-
}, [C, f, h, u]),
|
|
18131
|
+
}, [C, f, h, u]), re(() => {
|
|
18132
18132
|
g.current = f;
|
|
18133
18133
|
}, [f]);
|
|
18134
18134
|
const w = ee(
|
|
@@ -18205,7 +18205,7 @@ function Og(e) {
|
|
|
18205
18205
|
}
|
|
18206
18206
|
}
|
|
18207
18207
|
n !== s.current && (s.current = n);
|
|
18208
|
-
}, [r, n, t, o]),
|
|
18208
|
+
}, [r, n, t, o]), re(() => {
|
|
18209
18209
|
a && i(null);
|
|
18210
18210
|
}, [a]), a;
|
|
18211
18211
|
}
|
|
@@ -18276,7 +18276,7 @@ function Tg(e) {
|
|
|
18276
18276
|
activeIndex: p,
|
|
18277
18277
|
overIndex: m,
|
|
18278
18278
|
index: D
|
|
18279
|
-
}) : null,
|
|
18279
|
+
}) : null, oe = ca(p) && ca(m) ? a({
|
|
18280
18280
|
id: i,
|
|
18281
18281
|
items: u,
|
|
18282
18282
|
activeIndex: p,
|
|
@@ -18284,7 +18284,7 @@ function Tg(e) {
|
|
|
18284
18284
|
}) : D, me = P?.id, ie = z({
|
|
18285
18285
|
activeId: me,
|
|
18286
18286
|
items: u,
|
|
18287
|
-
newIndex:
|
|
18287
|
+
newIndex: oe,
|
|
18288
18288
|
containerId: d
|
|
18289
18289
|
}), Se = u !== ie.current.items, tt = r({
|
|
18290
18290
|
active: P,
|
|
@@ -18305,9 +18305,9 @@ function Tg(e) {
|
|
|
18305
18305
|
node: S,
|
|
18306
18306
|
rect: k
|
|
18307
18307
|
});
|
|
18308
|
-
return
|
|
18309
|
-
F && ie.current.newIndex !==
|
|
18310
|
-
}, [F,
|
|
18308
|
+
return re(() => {
|
|
18309
|
+
F && ie.current.newIndex !== oe && (ie.current.newIndex = oe), d !== ie.current.containerId && (ie.current.containerId = d), u !== ie.current.items && (ie.current.items = u);
|
|
18310
|
+
}, [F, oe, d, u]), re(() => {
|
|
18311
18311
|
if (me === ie.current.activeId)
|
|
18312
18312
|
return;
|
|
18313
18313
|
if (me != null && ie.current.activeId == null) {
|
|
@@ -18325,7 +18325,7 @@ function Tg(e) {
|
|
|
18325
18325
|
data: w,
|
|
18326
18326
|
rect: k,
|
|
18327
18327
|
index: D,
|
|
18328
|
-
newIndex:
|
|
18328
|
+
newIndex: oe,
|
|
18329
18329
|
items: u,
|
|
18330
18330
|
isOver: T,
|
|
18331
18331
|
isSorting: F,
|
|
@@ -18464,69 +18464,78 @@ const Ig = ({
|
|
|
18464
18464
|
draggable: n = !1,
|
|
18465
18465
|
onSelected: t,
|
|
18466
18466
|
onOrderChange: o,
|
|
18467
|
-
|
|
18467
|
+
selected: a,
|
|
18468
|
+
...i
|
|
18468
18469
|
}) => {
|
|
18469
|
-
const [
|
|
18470
|
+
const [s, l] = ae(
|
|
18471
|
+
() => []
|
|
18472
|
+
), c = lv(
|
|
18470
18473
|
h1(kl),
|
|
18471
18474
|
h1(Sl, {
|
|
18472
18475
|
coordinateGetter: Rg
|
|
18473
18476
|
})
|
|
18474
|
-
)
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18477
|
+
);
|
|
18478
|
+
re(() => {
|
|
18479
|
+
l([...a ?? []]);
|
|
18480
|
+
}, [a]);
|
|
18481
|
+
const u = Z(
|
|
18482
|
+
(f, h) => {
|
|
18483
|
+
if (s.includes(f)) {
|
|
18484
|
+
if (!h) {
|
|
18485
|
+
const v = s.filter(
|
|
18486
|
+
(m) => m !== f
|
|
18487
|
+
);
|
|
18488
|
+
l(v), t?.(v);
|
|
18480
18489
|
}
|
|
18481
|
-
} else if (
|
|
18482
|
-
const
|
|
18483
|
-
|
|
18490
|
+
} else if (h) {
|
|
18491
|
+
const v = [...s, f];
|
|
18492
|
+
l(v), t?.(v);
|
|
18484
18493
|
}
|
|
18485
18494
|
},
|
|
18486
|
-
[
|
|
18487
|
-
),
|
|
18488
|
-
const { active:
|
|
18489
|
-
if (
|
|
18490
|
-
const
|
|
18491
|
-
o?.(
|
|
18495
|
+
[s, t]
|
|
18496
|
+
), d = (f) => {
|
|
18497
|
+
const { active: h, over: v } = f;
|
|
18498
|
+
if (v && h.id !== v.id) {
|
|
18499
|
+
const m = r.findIndex((b) => b.id === h.id), g = r.findIndex((b) => b.id === v.id), C = Ml(r, m, g);
|
|
18500
|
+
o?.(C);
|
|
18492
18501
|
}
|
|
18493
|
-
},
|
|
18494
|
-
() => r.map((
|
|
18502
|
+
}, p = ee(
|
|
18503
|
+
() => r.map((f) => /* @__PURE__ */ O(
|
|
18495
18504
|
zf,
|
|
18496
18505
|
{
|
|
18497
|
-
id:
|
|
18506
|
+
id: f.id,
|
|
18498
18507
|
disabled: !n,
|
|
18499
|
-
"data-testid":
|
|
18500
|
-
...
|
|
18501
|
-
canDrag: n &&
|
|
18502
|
-
selected:
|
|
18503
|
-
onSelected: (
|
|
18508
|
+
"data-testid": f.id,
|
|
18509
|
+
...f.data,
|
|
18510
|
+
canDrag: n && f.data.canDrag !== !1,
|
|
18511
|
+
selected: s.includes(f.id),
|
|
18512
|
+
onSelected: (h) => u(f.id, h)
|
|
18504
18513
|
},
|
|
18505
|
-
|
|
18514
|
+
f.id
|
|
18506
18515
|
)),
|
|
18507
|
-
[r, n,
|
|
18516
|
+
[r, n, u, s]
|
|
18508
18517
|
);
|
|
18509
18518
|
return /* @__PURE__ */ O(
|
|
18510
18519
|
"div",
|
|
18511
18520
|
{
|
|
18512
18521
|
className: A("flex flex-col", "w-full", "gap-y-md", e),
|
|
18513
|
-
...
|
|
18522
|
+
...i,
|
|
18514
18523
|
children: n ? /* @__PURE__ */ O(
|
|
18515
18524
|
ug,
|
|
18516
18525
|
{
|
|
18517
|
-
sensors:
|
|
18526
|
+
sensors: c,
|
|
18518
18527
|
collisionDetection: uv,
|
|
18519
|
-
onDragEnd:
|
|
18528
|
+
onDragEnd: d,
|
|
18520
18529
|
children: /* @__PURE__ */ O(
|
|
18521
18530
|
Dg,
|
|
18522
18531
|
{
|
|
18523
|
-
items: r.map((
|
|
18532
|
+
items: r.map((f) => f.id),
|
|
18524
18533
|
strategy: wg,
|
|
18525
|
-
children:
|
|
18534
|
+
children: p
|
|
18526
18535
|
}
|
|
18527
18536
|
)
|
|
18528
18537
|
}
|
|
18529
|
-
) :
|
|
18538
|
+
) : p
|
|
18530
18539
|
}
|
|
18531
18540
|
);
|
|
18532
18541
|
};
|
|
@@ -18583,7 +18592,7 @@ const Ag = ({
|
|
|
18583
18592
|
) : a,
|
|
18584
18593
|
[a, c]
|
|
18585
18594
|
);
|
|
18586
|
-
|
|
18595
|
+
re(() => {
|
|
18587
18596
|
s && s.length > 0 && p([...s]);
|
|
18588
18597
|
}, [s]);
|
|
18589
18598
|
const h = Z(
|
|
@@ -18866,19 +18875,19 @@ function Yg() {
|
|
|
18866
18875
|
throw new TypeError(e);
|
|
18867
18876
|
E = D(E) || 0, g(k) && ($ = !!k.leading, H = "maxWait" in k, _ = H ? f(D(k.maxWait) || 0, E) : _, Y = "trailing" in k ? !!k.trailing : Y);
|
|
18868
18877
|
function R(W) {
|
|
18869
|
-
var
|
|
18870
|
-
return S = T = void 0, L = W, P = w.apply(me,
|
|
18878
|
+
var oe = S, me = T;
|
|
18879
|
+
return S = T = void 0, L = W, P = w.apply(me, oe), P;
|
|
18871
18880
|
}
|
|
18872
18881
|
function q(W) {
|
|
18873
18882
|
return L = W, M = setTimeout(F, E), $ ? R(W) : P;
|
|
18874
18883
|
}
|
|
18875
18884
|
function K(W) {
|
|
18876
|
-
var
|
|
18885
|
+
var oe = W - N, me = W - L, ie = E - oe;
|
|
18877
18886
|
return H ? h(ie, _ - me) : ie;
|
|
18878
18887
|
}
|
|
18879
18888
|
function le(W) {
|
|
18880
|
-
var
|
|
18881
|
-
return N === void 0 ||
|
|
18889
|
+
var oe = W - N, me = W - L;
|
|
18890
|
+
return N === void 0 || oe >= E || oe < 0 || H && me >= _;
|
|
18882
18891
|
}
|
|
18883
18892
|
function F() {
|
|
18884
18893
|
var W = v();
|
|
@@ -18896,8 +18905,8 @@ function Yg() {
|
|
|
18896
18905
|
return M === void 0 ? P : V(v());
|
|
18897
18906
|
}
|
|
18898
18907
|
function ne() {
|
|
18899
|
-
var W = v(),
|
|
18900
|
-
if (S = arguments, T = this, N = W,
|
|
18908
|
+
var W = v(), oe = le(W);
|
|
18909
|
+
if (S = arguments, T = this, N = W, oe) {
|
|
18901
18910
|
if (M === void 0)
|
|
18902
18911
|
return q(N);
|
|
18903
18912
|
if (H)
|
|
@@ -18940,7 +18949,7 @@ const Bg = /* @__PURE__ */ k5(Vg), Wg = (e, r) => {
|
|
|
18940
18949
|
() => Bg(e, r),
|
|
18941
18950
|
[e, r]
|
|
18942
18951
|
);
|
|
18943
|
-
return
|
|
18952
|
+
return re(() => () => n.cancel(), [n]), n;
|
|
18944
18953
|
}, zg = (e) => e != null, jg = (e) => {
|
|
18945
18954
|
if (!zg(e))
|
|
18946
18955
|
return !1;
|
|
@@ -18976,9 +18985,9 @@ const Bg = /* @__PURE__ */ k5(Vg), Wg = (e, r) => {
|
|
|
18976
18985
|
(P, M) => P1(s, Number.parseFloat(M.toString()))(P) && P1(Number.parseFloat(P.toString()), a)(M),
|
|
18977
18986
|
[a, s]
|
|
18978
18987
|
);
|
|
18979
|
-
|
|
18988
|
+
re(() => {
|
|
18980
18989
|
m(p);
|
|
18981
|
-
}, [p]),
|
|
18990
|
+
}, [p]), re(() => {
|
|
18982
18991
|
v != null && (Array.isArray(v) ? (C(Zi(v[0], s, a).toString()), D(Zi(v[1], s, a).toString())) : (C(s.toString()), D(Zi(v, s, a).toString())));
|
|
18983
18992
|
}, [a, s, v]);
|
|
18984
18993
|
const E = Wg(
|