general-basic-form 2.2.5 → 2.2.6
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 +123 -110
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import K, { useId as Vt, useContext as vt, useState as zt, useImperativeHandle as Vp, useEffect as
|
|
2
|
+
import K, { useId as Vt, useContext as vt, useState as zt, useImperativeHandle as Vp, useEffect as ot, useMemo as Hl, useLayoutEffect as Ki, version as Hp, isValidElement as Wp, useRef as Oe, useInsertionEffect as Ib, createContext as ca, forwardRef as Up, createElement as pc, useReducer as Lb } from "react";
|
|
3
3
|
function qp(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
@@ -3709,9 +3709,9 @@ const ph = (t) => {
|
|
|
3709
3709
|
} = vt(Qt), [d, f] = zt([]);
|
|
3710
3710
|
Vp(t.ref, () => ({
|
|
3711
3711
|
checkedList: d
|
|
3712
|
-
}), [d]),
|
|
3712
|
+
}), [d]), ot(() => {
|
|
3713
3713
|
u[s] && Array.isArray(u[s]) && f(u[s]);
|
|
3714
|
-
}, [JSON.stringify(u)]),
|
|
3714
|
+
}, [JSON.stringify(u)]), ot(() => {
|
|
3715
3715
|
l && Array.isArray(l) && f(l);
|
|
3716
3716
|
}, [l]);
|
|
3717
3717
|
const h = (v, g) => {
|
|
@@ -3773,7 +3773,7 @@ const ph = (t) => {
|
|
|
3773
3773
|
message: m,
|
|
3774
3774
|
formLoading: y
|
|
3775
3775
|
} = vt(Qt), [b, w] = zt({});
|
|
3776
|
-
return
|
|
3776
|
+
return ot(() => {
|
|
3777
3777
|
if (!f)
|
|
3778
3778
|
return;
|
|
3779
3779
|
const S = {};
|
|
@@ -5189,7 +5189,7 @@ function qh() {
|
|
|
5189
5189
|
function tu(t) {
|
|
5190
5190
|
return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
|
|
5191
5191
|
}
|
|
5192
|
-
const Pw = 24, Tw = typeof window < "u" ? Ki :
|
|
5192
|
+
const Pw = 24, Tw = typeof window < "u" ? Ki : ot;
|
|
5193
5193
|
function Pd(...t) {
|
|
5194
5194
|
return (...e) => {
|
|
5195
5195
|
for (let n of t)
|
|
@@ -5362,7 +5362,7 @@ function jw(...t) {
|
|
|
5362
5362
|
typeof n == "function" && n(...e);
|
|
5363
5363
|
};
|
|
5364
5364
|
}
|
|
5365
|
-
const
|
|
5365
|
+
const st = {
|
|
5366
5366
|
DURATION: 0.5,
|
|
5367
5367
|
EASE: [
|
|
5368
5368
|
0.32,
|
|
@@ -5469,13 +5469,13 @@ function Fw({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
|
5469
5469
|
var R;
|
|
5470
5470
|
const N = (R = y?.findIndex((_) => _ === E)) != null ? R : null;
|
|
5471
5471
|
i(N), St(r.current, {
|
|
5472
|
-
transition: `transform ${
|
|
5472
|
+
transition: `transform ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`,
|
|
5473
5473
|
transform: ft(s) ? `translate3d(0, ${E}px, 0)` : `translate3d(${E}px, 0, 0)`
|
|
5474
5474
|
}), y && N !== y.length - 1 && a !== void 0 && N !== a && N < a ? St(o.current, {
|
|
5475
|
-
transition: `opacity ${
|
|
5475
|
+
transition: `opacity ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`,
|
|
5476
5476
|
opacity: "0"
|
|
5477
5477
|
}) : St(o.current, {
|
|
5478
|
-
transition: `opacity ${
|
|
5478
|
+
transition: `opacity ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`,
|
|
5479
5479
|
opacity: "1"
|
|
5480
5480
|
}), d(n?.[Math.max(N, 0)]);
|
|
5481
5481
|
}, [
|
|
@@ -5503,7 +5503,7 @@ function Fw({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
|
5503
5503
|
if (a === void 0) return;
|
|
5504
5504
|
const M = s === "bottom" || s === "right" ? (b ?? 0) - E : (b ?? 0) + E, T = g === a - 1, P = g === 0, I = E > 0;
|
|
5505
5505
|
if (T && St(o.current, {
|
|
5506
|
-
transition: `opacity ${
|
|
5506
|
+
transition: `opacity ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`
|
|
5507
5507
|
}), !c && N > 2 && !I) {
|
|
5508
5508
|
_ ? R() : w(y[0]);
|
|
5509
5509
|
return;
|
|
@@ -5571,8 +5571,8 @@ function Hw() {
|
|
|
5571
5571
|
}) : Vw, Ms(l, {
|
|
5572
5572
|
transformOrigin: ft(t) ? "top" : "left",
|
|
5573
5573
|
transitionProperty: "transform, border-radius",
|
|
5574
|
-
transitionDuration: `${
|
|
5575
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
5574
|
+
transitionDuration: `${st.DURATION}s`,
|
|
5575
|
+
transitionTimingFunction: `cubic-bezier(${st.EASE.join(",")})`
|
|
5576
5576
|
}));
|
|
5577
5577
|
const c = Ms(l, {
|
|
5578
5578
|
borderRadius: `${Zh}px`,
|
|
@@ -5586,7 +5586,7 @@ function Hw() {
|
|
|
5586
5586
|
return () => {
|
|
5587
5587
|
c(), a.current = window.setTimeout(() => {
|
|
5588
5588
|
i ? document.body.style.background = i : document.body.style.removeProperty("background");
|
|
5589
|
-
},
|
|
5589
|
+
}, st.DURATION * 1e3);
|
|
5590
5590
|
};
|
|
5591
5591
|
}
|
|
5592
5592
|
}, [
|
|
@@ -5672,7 +5672,7 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5672
5672
|
onChange: (ie) => {
|
|
5673
5673
|
e?.(ie), !ie && !b && Pe(), setTimeout(() => {
|
|
5674
5674
|
_?.(ie);
|
|
5675
|
-
},
|
|
5675
|
+
}, st.DURATION * 1e3), ie && !m && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
5676
5676
|
document.body.style.pointerEvents = "auto";
|
|
5677
5677
|
}), ie || (document.body.style.pointerEvents = "auto");
|
|
5678
5678
|
}
|
|
@@ -5752,7 +5752,7 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5752
5752
|
}), a && Xe({
|
|
5753
5753
|
draggedDistance: Ie
|
|
5754
5754
|
}), be && !a) {
|
|
5755
|
-
const
|
|
5755
|
+
const it = Lw(Ie), At = Math.min(it * -1, 0) * ke;
|
|
5756
5756
|
St(V.current, {
|
|
5757
5757
|
transform: ft(S) ? `translate3d(0, ${At}px, 0)` : `translate3d(${At}px, 0, 0)`
|
|
5758
5758
|
});
|
|
@@ -5763,17 +5763,17 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5763
5763
|
opacity: `${dt}`,
|
|
5764
5764
|
transition: "none"
|
|
5765
5765
|
}, !0)), Ye && B.current && i) {
|
|
5766
|
-
const
|
|
5766
|
+
const it = Math.min($e() + nt * (1 - $e()), 1), At = 8 - nt * 8, It = Math.max(0, 14 - nt * 14);
|
|
5767
5767
|
St(Ye, {
|
|
5768
5768
|
borderRadius: `${At}px`,
|
|
5769
|
-
transform: ft(S) ? `scale(${
|
|
5769
|
+
transform: ft(S) ? `scale(${it}) translate3d(0, ${It}px, 0)` : `scale(${it}) translate3d(${It}px, 0, 0)`,
|
|
5770
5770
|
transition: "none"
|
|
5771
5771
|
}, !0);
|
|
5772
5772
|
}
|
|
5773
5773
|
if (!a) {
|
|
5774
|
-
const
|
|
5774
|
+
const it = Ze * ke;
|
|
5775
5775
|
St(V.current, {
|
|
5776
|
-
transform: ft(S) ? `translate3d(0, ${
|
|
5776
|
+
transform: ft(S) ? `translate3d(0, ${it}px, 0)` : `translate3d(${it}px, 0, 0)`
|
|
5777
5777
|
});
|
|
5778
5778
|
}
|
|
5779
5779
|
}
|
|
@@ -5800,8 +5800,8 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5800
5800
|
}
|
|
5801
5801
|
if (X.current = Ye, ct > Ke || Q.current) {
|
|
5802
5802
|
const dt = V.current.getBoundingClientRect().height;
|
|
5803
|
-
let
|
|
5804
|
-
dt > Ke && (
|
|
5803
|
+
let it = dt;
|
|
5804
|
+
dt > Ke && (it = Ke - (nt ? yt : bc)), g ? V.current.style.height = `${dt - Math.max(Ye, 0)}px` : V.current.style.height = `${Math.max(it, Ke - yt)}px`;
|
|
5805
5805
|
} else Cw() || (V.current.style.height = `${pe.current}px`);
|
|
5806
5806
|
a && a.length > 0 && !Q.current ? V.current.style.bottom = "0px" : V.current.style.bottom = `${Math.max(Ye, 0)}px`;
|
|
5807
5807
|
}
|
|
@@ -5818,16 +5818,16 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5818
5818
|
function J(ie) {
|
|
5819
5819
|
tt(), y?.(), ie || A(!1), setTimeout(() => {
|
|
5820
5820
|
a && ne(a[0]);
|
|
5821
|
-
},
|
|
5821
|
+
}, st.DURATION * 1e3);
|
|
5822
5822
|
}
|
|
5823
5823
|
function Ne() {
|
|
5824
5824
|
if (!V.current) return;
|
|
5825
5825
|
const ie = document.querySelector("[data-vaul-drawer-wrapper]"), ke = La(V.current, S);
|
|
5826
5826
|
St(V.current, {
|
|
5827
5827
|
transform: "translate3d(0, 0, 0)",
|
|
5828
|
-
transition: `transform ${
|
|
5828
|
+
transition: `transform ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`
|
|
5829
5829
|
}), St(B.current, {
|
|
5830
|
-
transition: `opacity ${
|
|
5830
|
+
transition: `opacity ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`,
|
|
5831
5831
|
opacity: "1"
|
|
5832
5832
|
}), i && ke && ke > 0 && j && St(ie, {
|
|
5833
5833
|
borderRadius: `${Zh}px`,
|
|
@@ -5840,8 +5840,8 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5840
5840
|
transformOrigin: "left"
|
|
5841
5841
|
},
|
|
5842
5842
|
transitionProperty: "transform, border-radius",
|
|
5843
|
-
transitionDuration: `${
|
|
5844
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
5843
|
+
transitionDuration: `${st.DURATION}s`,
|
|
5844
|
+
transitionTimingFunction: `cubic-bezier(${st.EASE.join(",")})`
|
|
5845
5845
|
}, !0);
|
|
5846
5846
|
}
|
|
5847
5847
|
function tt() {
|
|
@@ -5892,7 +5892,7 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5892
5892
|
function ut(ie) {
|
|
5893
5893
|
const ke = ie ? (window.innerWidth - Sr) / window.innerWidth : 1, Ie = ie ? -Sr : 0;
|
|
5894
5894
|
Z.current && window.clearTimeout(Z.current), St(V.current, {
|
|
5895
|
-
transition: `transform ${
|
|
5895
|
+
transition: `transform ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`,
|
|
5896
5896
|
transform: ft(S) ? `scale(${ke}) translate3d(0, ${Ie}px, 0)` : `scale(${ke}) translate3d(${Ie}px, 0, 0)`
|
|
5897
5897
|
}), !ie && V.current && (Z.current = setTimeout(() => {
|
|
5898
5898
|
const be = La(V.current, S);
|
|
@@ -5913,7 +5913,7 @@ function Uw({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: o, sn
|
|
|
5913
5913
|
function an(ie, ke) {
|
|
5914
5914
|
const Ie = ft(S) ? window.innerHeight : window.innerWidth, be = ke ? (Ie - Sr) / Ie : 1, Ke = ke ? -Sr : 0;
|
|
5915
5915
|
ke && St(V.current, {
|
|
5916
|
-
transition: `transform ${
|
|
5916
|
+
transition: `transform ${st.DURATION}s cubic-bezier(${st.EASE.join(",")})`,
|
|
5917
5917
|
transform: ft(S) ? `scale(${be}) translate3d(0, ${Ke}px, 0)` : `scale(${be}) translate3d(${Ke}px, 0, 0)`
|
|
5918
5918
|
});
|
|
5919
5919
|
}
|
|
@@ -6323,27 +6323,27 @@ function nn() {
|
|
|
6323
6323
|
return t;
|
|
6324
6324
|
}, nn.apply(null, arguments);
|
|
6325
6325
|
}
|
|
6326
|
-
function
|
|
6326
|
+
function at(t) {
|
|
6327
6327
|
"@babel/helpers - typeof";
|
|
6328
|
-
return
|
|
6328
|
+
return at = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6329
6329
|
return typeof e;
|
|
6330
6330
|
} : function(e) {
|
|
6331
6331
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6332
|
-
},
|
|
6332
|
+
}, at(t);
|
|
6333
6333
|
}
|
|
6334
6334
|
function c1(t, e) {
|
|
6335
|
-
if (
|
|
6335
|
+
if (at(t) != "object" || !t) return t;
|
|
6336
6336
|
var n = t[Symbol.toPrimitive];
|
|
6337
6337
|
if (n !== void 0) {
|
|
6338
6338
|
var r = n.call(t, e);
|
|
6339
|
-
if (
|
|
6339
|
+
if (at(r) != "object") return r;
|
|
6340
6340
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6341
6341
|
}
|
|
6342
6342
|
return (e === "string" ? String : Number)(t);
|
|
6343
6343
|
}
|
|
6344
6344
|
function rm(t) {
|
|
6345
6345
|
var e = c1(t, "string");
|
|
6346
|
-
return
|
|
6346
|
+
return at(e) == "symbol" ? e : e + "";
|
|
6347
6347
|
}
|
|
6348
6348
|
function U(t, e, n) {
|
|
6349
6349
|
return (e = rm(e)) in t ? Object.defineProperty(t, e, {
|
|
@@ -6450,7 +6450,7 @@ function am() {
|
|
|
6450
6450
|
})();
|
|
6451
6451
|
}
|
|
6452
6452
|
function f1(t, e) {
|
|
6453
|
-
if (e && (
|
|
6453
|
+
if (e && (at(e) == "object" || typeof e == "function")) return e;
|
|
6454
6454
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
6455
6455
|
return Se(t);
|
|
6456
6456
|
}
|
|
@@ -6695,7 +6695,7 @@ var Kd = process.env.NODE_ENV !== "test" && Ui() ? p.useLayoutEffect : p.useEffe
|
|
|
6695
6695
|
function um(t) {
|
|
6696
6696
|
return (
|
|
6697
6697
|
// Base object type
|
|
6698
|
-
t &&
|
|
6698
|
+
t && at(t) === "object" && // React Element type
|
|
6699
6699
|
(t.$$typeof === T1 || t.$$typeof === O1) && // React Fragment type
|
|
6700
6700
|
t.type === D1
|
|
6701
6701
|
);
|
|
@@ -6710,7 +6710,7 @@ function Bd(t) {
|
|
|
6710
6710
|
return t instanceof HTMLElement || t instanceof SVGElement;
|
|
6711
6711
|
}
|
|
6712
6712
|
function $1(t) {
|
|
6713
|
-
return t &&
|
|
6713
|
+
return t && at(t) === "object" && Bd(t.nativeElement) ? t.nativeElement : Bd(t) ? t : null;
|
|
6714
6714
|
}
|
|
6715
6715
|
function ni(t) {
|
|
6716
6716
|
var e = $1(t);
|
|
@@ -6892,7 +6892,7 @@ function I1(t, e, n) {
|
|
|
6892
6892
|
return (!("value" in r.current) || n(r.current.condition, e)) && (r.current.value = t(), r.current.condition = e), r.current.value;
|
|
6893
6893
|
}
|
|
6894
6894
|
var L1 = Number(Hp.split(".")[0]), dm = function(e, n) {
|
|
6895
|
-
typeof e == "function" ? e(n) :
|
|
6895
|
+
typeof e == "function" ? e(n) : at(e) === "object" && e && "current" in e && (e.current = n);
|
|
6896
6896
|
}, j1 = function() {
|
|
6897
6897
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
6898
6898
|
n[r] = arguments[r];
|
|
@@ -7273,7 +7273,7 @@ function cS(t, e) {
|
|
|
7273
7273
|
}), u = !s && /* @__PURE__ */ p.isValidElement(l) && fm(l), d = u ? hm(l) : null, f = K1(d, o), h = function() {
|
|
7274
7274
|
var y;
|
|
7275
7275
|
return ni(o.current) || // Support `nativeElement` format
|
|
7276
|
-
(o.current &&
|
|
7276
|
+
(o.current && at(o.current) === "object" ? ni((y = o.current) === null || y === void 0 ? void 0 : y.nativeElement) : null) || ni(a.current);
|
|
7277
7277
|
};
|
|
7278
7278
|
p.useImperativeHandle(e, function() {
|
|
7279
7279
|
return h();
|
|
@@ -7465,7 +7465,7 @@ Xt.cancel = function(t) {
|
|
|
7465
7465
|
process.env.NODE_ENV !== "production" && (Xt.ids = function() {
|
|
7466
7466
|
return Yi;
|
|
7467
7467
|
});
|
|
7468
|
-
var Ud = (typeof navigator > "u" ? "undefined" :
|
|
7468
|
+
var Ud = (typeof navigator > "u" ? "undefined" : at(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
|
|
7469
7469
|
const km = (function(t, e, n, r) {
|
|
7470
7470
|
var o = Oe(!1), a = Oe(null);
|
|
7471
7471
|
function i() {
|
|
@@ -7611,7 +7611,7 @@ function yS(t, e, n) {
|
|
|
7611
7611
|
var g = t(h);
|
|
7612
7612
|
s.current.get(g), v ? (s.current.set(g, v), d()) : s.current.delete(g);
|
|
7613
7613
|
}
|
|
7614
|
-
return
|
|
7614
|
+
return ot(function() {
|
|
7615
7615
|
return u;
|
|
7616
7616
|
}, []), [f, d, l.current, a];
|
|
7617
7617
|
}
|
|
@@ -7747,7 +7747,7 @@ function wS(t, e, n, r, o, a, i, s) {
|
|
|
7747
7747
|
}
|
|
7748
7748
|
if (Xt.cancel(l.current), typeof h == "number")
|
|
7749
7749
|
i(h);
|
|
7750
|
-
else if (h &&
|
|
7750
|
+
else if (h && at(h) === "object") {
|
|
7751
7751
|
var v, g = h.align;
|
|
7752
7752
|
"index" in h ? v = h.index : v = e.findIndex(function(b) {
|
|
7753
7753
|
return o(b) === h.key;
|
|
@@ -7980,14 +7980,14 @@ function NS(t, e) {
|
|
|
7980
7980
|
var ce = de;
|
|
7981
7981
|
return Number.isNaN(Ke.current) || (ce = Math.min(ce, Ke.current)), ce = Math.max(ce, 0), ce;
|
|
7982
7982
|
}
|
|
7983
|
-
var Ye = Z <= 0, ct = Z >= be, nt = X <= 0, yt = X >= g, dt = km(Ye, ct, nt, yt),
|
|
7983
|
+
var Ye = Z <= 0, ct = Z >= be, nt = X <= 0, yt = X >= g, dt = km(Ye, ct, nt, yt), it = function() {
|
|
7984
7984
|
return {
|
|
7985
7985
|
x: $ ? -X : X,
|
|
7986
7986
|
y: Z
|
|
7987
7987
|
};
|
|
7988
|
-
}, At = Oe(
|
|
7988
|
+
}, At = Oe(it()), It = Yo(function(de) {
|
|
7989
7989
|
if (w) {
|
|
7990
|
-
var ce = ae(ae({},
|
|
7990
|
+
var ce = ae(ae({}, it()), de);
|
|
7991
7991
|
(At.current.x !== ce.x || At.current.y !== ce.y) && (w(ce), At.current = ce);
|
|
7992
7992
|
}
|
|
7993
7993
|
});
|
|
@@ -8059,10 +8059,10 @@ function NS(t, e) {
|
|
|
8059
8059
|
p.useImperativeHandle(e, function() {
|
|
8060
8060
|
return {
|
|
8061
8061
|
nativeElement: q.current,
|
|
8062
|
-
getScrollInfo:
|
|
8062
|
+
getScrollInfo: it,
|
|
8063
8063
|
scrollTo: function(ce) {
|
|
8064
8064
|
function we(ze) {
|
|
8065
|
-
return ze &&
|
|
8065
|
+
return ze && at(ze) === "object" && ("left" in ze || "top" in ze);
|
|
8066
8066
|
}
|
|
8067
8067
|
we(ce) ? (ce.left !== void 0 && V(Zt(ce.left)), jt(ce.top)) : jt(ce);
|
|
8068
8068
|
}
|
|
@@ -8198,7 +8198,7 @@ function Om(t) {
|
|
|
8198
8198
|
var Dm = Om("animationend"), $m = Om("transitionend"), _m = !!(Dm && $m), ef = Dm || "animationend", tf = $m || "transitionend";
|
|
8199
8199
|
function nf(t, e) {
|
|
8200
8200
|
if (!t) return null;
|
|
8201
|
-
if (
|
|
8201
|
+
if (at(t) === "object") {
|
|
8202
8202
|
var n = e.replace(/-\w/g, function(r) {
|
|
8203
8203
|
return r[1].toUpperCase();
|
|
8204
8204
|
});
|
|
@@ -8220,7 +8220,7 @@ const _S = (function(t) {
|
|
|
8220
8220
|
};
|
|
8221
8221
|
}, []), [r, n];
|
|
8222
8222
|
});
|
|
8223
|
-
var Mm = Ui() ? Ki :
|
|
8223
|
+
var Mm = Ui() ? Ki : ot;
|
|
8224
8224
|
const MS = (function() {
|
|
8225
8225
|
var t = p.useRef(null);
|
|
8226
8226
|
function e() {
|
|
@@ -8328,18 +8328,18 @@ function KS(t, e, n, r) {
|
|
|
8328
8328
|
var Ee = Q(me);
|
|
8329
8329
|
me && (t || Ee[gn]) ? (A(me), fe()) : A(Zn), je.current = e;
|
|
8330
8330
|
}
|
|
8331
|
-
}, [e]),
|
|
8331
|
+
}, [e]), ot(function() {
|
|
8332
8332
|
// Cancel appear
|
|
8333
8333
|
($ === Ka && !s || // Cancel enter
|
|
8334
8334
|
$ === Ba && !a || // Cancel leave
|
|
8335
8335
|
$ === za && !c) && A(Zn);
|
|
8336
|
-
}, [s, a, c]),
|
|
8336
|
+
}, [s, a, c]), ot(function() {
|
|
8337
8337
|
return function() {
|
|
8338
8338
|
O.current = !1, clearTimeout(B.current);
|
|
8339
8339
|
};
|
|
8340
8340
|
}, []);
|
|
8341
8341
|
var Ge = p.useRef(!1);
|
|
8342
|
-
|
|
8342
|
+
ot(function() {
|
|
8343
8343
|
M && (Ge.current = !0), M !== void 0 && $ === Zn && ((Ge.current || M) && R?.(M), Ge.current = !0);
|
|
8344
8344
|
}, [M, $]);
|
|
8345
8345
|
var _e = G;
|
|
@@ -8349,7 +8349,7 @@ function KS(t, e, n, r) {
|
|
|
8349
8349
|
}
|
|
8350
8350
|
function BS(t) {
|
|
8351
8351
|
var e = t;
|
|
8352
|
-
|
|
8352
|
+
at(t) === "object" && (e = t.transitionSupport);
|
|
8353
8353
|
function n(o, a) {
|
|
8354
8354
|
return !!(o.motionName && e && a !== !1);
|
|
8355
8355
|
}
|
|
@@ -8404,7 +8404,7 @@ const Lm = BS(_m);
|
|
|
8404
8404
|
var Tc = "add", Oc = "keep", Dc = "remove", Ls = "removed";
|
|
8405
8405
|
function zS(t) {
|
|
8406
8406
|
var e;
|
|
8407
|
-
return t &&
|
|
8407
|
+
return t && at(t) === "object" && "key" in t ? e = t : e = {
|
|
8408
8408
|
key: t
|
|
8409
8409
|
}, ae(ae({}, e), {}, {
|
|
8410
8410
|
key: String(e.key)
|
|
@@ -8631,7 +8631,7 @@ function js(t, e, n) {
|
|
|
8631
8631
|
}
|
|
8632
8632
|
function eE(t, e, n) {
|
|
8633
8633
|
var r = {};
|
|
8634
|
-
|
|
8634
|
+
at(n) === "object" ? r = n : r = {
|
|
8635
8635
|
externalGetKey: n
|
|
8636
8636
|
}, r = r || {};
|
|
8637
8637
|
var o = r, a = o.childrenPropName, i = o.externalGetKey, s = o.fieldNames, l = vi(s), c = l.key, u = l.children, d = a || u, f;
|
|
@@ -9237,7 +9237,7 @@ function Ks(t) {
|
|
|
9237
9237
|
checkedKeys: t,
|
|
9238
9238
|
halfCheckedKeys: void 0
|
|
9239
9239
|
};
|
|
9240
|
-
else if (
|
|
9240
|
+
else if (at(t) === "object")
|
|
9241
9241
|
e = {
|
|
9242
9242
|
checkedKeys: t.checked || void 0,
|
|
9243
9243
|
halfCheckedKeys: t.halfChecked || void 0
|
|
@@ -9858,7 +9858,7 @@ var gE = 10, su = /* @__PURE__ */ (function(t) {
|
|
|
9858
9858
|
aria: !0,
|
|
9859
9859
|
data: !0
|
|
9860
9860
|
}), Q;
|
|
9861
|
-
T && (
|
|
9861
|
+
T && (at(T) === "object" ? Q = T : typeof T == "function" ? Q = {
|
|
9862
9862
|
nodeDraggable: T
|
|
9863
9863
|
} : Q = {});
|
|
9864
9864
|
var te = {
|
|
@@ -10033,7 +10033,7 @@ const vE = (t) => {
|
|
|
10033
10033
|
children: l(u.children)
|
|
10034
10034
|
};
|
|
10035
10035
|
}) : [];
|
|
10036
|
-
return o?.length ? /* @__PURE__ */ C.jsx(su, { id: n, name: e.prop, value: i[e.prop] ||
|
|
10036
|
+
return i[e.prop] instanceof Array ? o?.length ? /* @__PURE__ */ C.jsx(su, { id: n, name: e.prop, value: i[e.prop] || [], checkedKeys: i[e.prop] || [], selectedKeys: i[e.prop] || [], disabled: s, onCheck: (c, u) => {
|
|
10037
10037
|
a({
|
|
10038
10038
|
data: {
|
|
10039
10039
|
...i,
|
|
@@ -10047,7 +10047,7 @@ const vE = (t) => {
|
|
|
10047
10047
|
[e.prop]: c
|
|
10048
10048
|
}
|
|
10049
10049
|
});
|
|
10050
|
-
}, treeData: l(o), ...r, children: t.children }) : "loading tree";
|
|
10050
|
+
}, treeData: l(o), ...r, children: t.children }) : "loading tree" : [];
|
|
10051
10051
|
};
|
|
10052
10052
|
function Nt(t) {
|
|
10053
10053
|
const e = p.useRef(t);
|
|
@@ -11751,7 +11751,7 @@ var HC = /* @__PURE__ */ (function(t) {
|
|
|
11751
11751
|
function n(r, o) {
|
|
11752
11752
|
var a;
|
|
11753
11753
|
mr(this, n), a = e.call(this), U(Se(a), "result", ""), U(Se(a), "unitlessCssVar", void 0), U(Se(a), "lowPriority", void 0);
|
|
11754
|
-
var i =
|
|
11754
|
+
var i = at(r);
|
|
11755
11755
|
return a.unitlessCssVar = o, r instanceof n ? a.result = "(".concat(r.result, ")") : i === "number" ? a.result = qs(r) : i === "string" && (a.result = r), a;
|
|
11756
11756
|
}
|
|
11757
11757
|
return gr(n, [{
|
|
@@ -11822,7 +11822,7 @@ function rs() {
|
|
|
11822
11822
|
Yc = !1;
|
|
11823
11823
|
var r = {};
|
|
11824
11824
|
return e.forEach(function(o) {
|
|
11825
|
-
if (
|
|
11825
|
+
if (at(o) === "object") {
|
|
11826
11826
|
var a = Object.keys(o);
|
|
11827
11827
|
a.forEach(function(i) {
|
|
11828
11828
|
Object.defineProperty(r, i, {
|
|
@@ -11907,7 +11907,7 @@ var YC = 1e3 * 60 * 10, XC = /* @__PURE__ */ (function() {
|
|
|
11907
11907
|
key: "getCompositeKey",
|
|
11908
11908
|
value: function(n) {
|
|
11909
11909
|
var r = this, o = n.map(function(a) {
|
|
11910
|
-
return a &&
|
|
11910
|
+
return a && at(a) === "object" ? "obj_".concat(r.getObjectID(a)) : "".concat(at(a), "_").concat(a);
|
|
11911
11911
|
});
|
|
11912
11912
|
return o.join("|");
|
|
11913
11913
|
}
|
|
@@ -12032,7 +12032,7 @@ function JC(t) {
|
|
|
12032
12032
|
var H = qC(M), q = H.token, L = H.flush, W = _f(b, N, v), Z = ".".concat(x), ee = Df(b, N, W, {
|
|
12033
12033
|
deprecatedTokens: g.deprecatedTokens
|
|
12034
12034
|
});
|
|
12035
|
-
W &&
|
|
12035
|
+
W && at(W) === "object" && Object.keys(W).forEach(function(V) {
|
|
12036
12036
|
W[V] = "var(".concat(ri(V, Of(b, T.prefix)), ")");
|
|
12037
12037
|
});
|
|
12038
12038
|
var Q = rs(q, {
|
|
@@ -13544,7 +13544,7 @@ const kR = `
|
|
|
13544
13544
|
let o = kR;
|
|
13545
13545
|
n && (o = o.replace(/anticon/g, n)), r && (o = `@layer ${r} {
|
|
13546
13546
|
${o}
|
|
13547
|
-
}`),
|
|
13547
|
+
}`), ot(() => {
|
|
13548
13548
|
const a = t.current, i = Si(a);
|
|
13549
13549
|
nr(o, "@ant-design-icons", {
|
|
13550
13550
|
prepend: !r,
|
|
@@ -13737,7 +13737,7 @@ const LR = ((t) => {
|
|
|
13737
13737
|
return p.useEffect(() => () => {
|
|
13738
13738
|
n(e.current);
|
|
13739
13739
|
}, []), [r, n];
|
|
13740
|
-
}), Wg = rn() ? Ki :
|
|
13740
|
+
}), Wg = rn() ? Ki : ot, jR = (() => {
|
|
13741
13741
|
const t = p.useRef(null);
|
|
13742
13742
|
function e() {
|
|
13743
13743
|
bi.cancel(t.current);
|
|
@@ -13862,16 +13862,16 @@ function VR(t, e, n, {
|
|
|
13862
13862
|
!L && e && o && (W = Ua), L && e && r && (W = qa), (L && !e && a || !L && s && !e && a) && (W = Ga);
|
|
13863
13863
|
const Z = G(W);
|
|
13864
13864
|
W && (t || Z[yn]) ? (R(W), $()) : R(Kn), F.current = e;
|
|
13865
|
-
}, [e]),
|
|
13865
|
+
}, [e]), ot(() => {
|
|
13866
13866
|
// Cancel appear
|
|
13867
13867
|
(M === Ua && !o || // Cancel enter
|
|
13868
13868
|
M === qa && !r || // Cancel leave
|
|
13869
13869
|
M === Ga && !a) && R(Kn);
|
|
13870
|
-
}, [o, r, a]),
|
|
13870
|
+
}, [o, r, a]), ot(() => () => {
|
|
13871
13871
|
T.current = !1, clearTimeout(P.current);
|
|
13872
13872
|
}, []);
|
|
13873
13873
|
const H = p.useRef(!1);
|
|
13874
|
-
|
|
13874
|
+
ot(() => {
|
|
13875
13875
|
x && (H.current = !0), x !== void 0 && M === Kn && ((H.current || x) && S?.(x), H.current = !0);
|
|
13876
13876
|
}, [x, M]);
|
|
13877
13877
|
let q = N;
|
|
@@ -14629,7 +14629,7 @@ function ov(t, e, n, r, o, a, i, s) {
|
|
|
14629
14629
|
const zr = P.x + xe, ko = P.y + xt, Fr = zr + B, Sa = ko + O, Ea = Math.max(zr, Ht.left), Ca = Math.max(ko, Ht.top), Qu = Math.min(Fr, Ht.right), xs = Math.min(Sa, Ht.bottom);
|
|
14630
14630
|
return Math.max(0, (Qu - Ea) * (xs - Ca));
|
|
14631
14631
|
}, At = function() {
|
|
14632
|
-
nt = P.y + Ne, yt = nt + O, dt = P.x + J,
|
|
14632
|
+
nt = P.y + Ne, yt = nt + O, dt = P.x + J, it = dt + B;
|
|
14633
14633
|
};
|
|
14634
14634
|
const y = e, b = y.ownerDocument, w = ga(y), {
|
|
14635
14635
|
position: S
|
|
@@ -14707,7 +14707,7 @@ function ov(t, e, n, r, o, a, i, s) {
|
|
|
14707
14707
|
shiftX: Ze,
|
|
14708
14708
|
shiftY: Ye
|
|
14709
14709
|
} = Ie, ct = (xe) => typeof xe == "boolean" ? xe : xe >= 0;
|
|
14710
|
-
let nt, yt, dt,
|
|
14710
|
+
let nt, yt, dt, it;
|
|
14711
14711
|
At();
|
|
14712
14712
|
const It = ct(Ke), sn = $e[0] === Pe[0];
|
|
14713
14713
|
if (It && $e[0] === "t" && (yt > fe.bottom || f.current.bt)) {
|
|
@@ -14727,7 +14727,7 @@ function ov(t, e, n, r, o, a, i, s) {
|
|
|
14727
14727
|
Ht >= ut) ? (f.current.tb = !0, Ne = xe, me = -me, ve.points = [Yn($e, 0), Yn(Pe, 0)]) : f.current.tb = !1;
|
|
14728
14728
|
}
|
|
14729
14729
|
const fn = ct(be), Zt = $e[1] === Pe[1];
|
|
14730
|
-
if (fn && $e[1] === "l" && (
|
|
14730
|
+
if (fn && $e[1] === "l" && (it > fe.right || f.current.rl)) {
|
|
14731
14731
|
let xe = J;
|
|
14732
14732
|
Zt ? xe -= B - H : xe = dn.x - ke.x - ne;
|
|
14733
14733
|
const xt = tt(xe, Ne), Ht = tt(xe, Ne, X);
|
|
@@ -14745,7 +14745,7 @@ function ov(t, e, n, r, o, a, i, s) {
|
|
|
14745
14745
|
}
|
|
14746
14746
|
At();
|
|
14747
14747
|
const Tt = Ze === !0 ? 0 : Ze;
|
|
14748
|
-
typeof Tt == "number" && (dt < X.left && (J -= dt - X.left - ne, T.x + H < X.left + Tt && (J += T.x - X.left + H - Tt)),
|
|
14748
|
+
typeof Tt == "number" && (dt < X.left && (J -= dt - X.left - ne, T.x + H < X.left + Tt && (J += T.x - X.left + H - Tt)), it > X.right && (J -= it - X.right - ne, T.x > X.right - Tt && (J += T.x - X.right + Tt)));
|
|
14749
14749
|
const Ct = Ye === !0 ? 0 : Ye;
|
|
14750
14750
|
typeof Ct == "number" && (nt < X.top && (Ne -= nt - X.top - me, T.y + F < X.top + Ct && (Ne += T.y - X.top + F - Ct)), yt > X.bottom && (Ne -= yt - X.bottom - me, T.y > X.bottom - Ct && (Ne += T.y - X.bottom + Ct)));
|
|
14751
14751
|
const bt = P.x + J, Lt = bt + B, pn = P.y + Ne, Ue = pn + O, jt = T.x, Br = jt + H, Je = T.y, Ot = Je + F, Dt = Math.max(bt, jt), Jt = Math.min(Lt, Br), ce = (Dt + Jt) / 2 - bt, we = Math.max(pn, Je), ze = Math.min(Ue, Ot), Kt = (we + ze) / 2 - pn;
|
|
@@ -15155,7 +15155,7 @@ function EN(t = is) {
|
|
|
15155
15155
|
}, [Re]);
|
|
15156
15156
|
const [be, Ke] = p.useState(null), [Ze, Ye] = p.useState(null), ct = (oe) => {
|
|
15157
15157
|
Ye([oe.clientX, oe.clientY]);
|
|
15158
|
-
}, [nt, yt, dt,
|
|
15158
|
+
}, [nt, yt, dt, it, At, It, sn, fn, Zt, Tt, Ct] = ov(Re, pe, $ && Ze !== null ? Ze : ne, P, I, j, B, Q), [bt, Lt] = mN(i, s, l), pn = bt.has("click"), Ue = Lt.has("click") || Lt.has("contextMenu"), jt = Nt(() => {
|
|
15159
15159
|
ke || Ct();
|
|
15160
15160
|
});
|
|
15161
15161
|
yN(Re, ne, pe, jt, () => {
|
|
@@ -15273,7 +15273,7 @@ function EN(t = is) {
|
|
|
15273
15273
|
ready: nt,
|
|
15274
15274
|
offsetX: yt,
|
|
15275
15275
|
offsetY: dt,
|
|
15276
|
-
offsetR:
|
|
15276
|
+
offsetR: it,
|
|
15277
15277
|
offsetB: At,
|
|
15278
15278
|
onAlign: jt,
|
|
15279
15279
|
stretch: z,
|
|
@@ -15531,7 +15531,7 @@ const _N = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "
|
|
|
15531
15531
|
floatButtonGroup: nt,
|
|
15532
15532
|
variant: yt,
|
|
15533
15533
|
inputNumber: dt,
|
|
15534
|
-
treeSelect:
|
|
15534
|
+
treeSelect: it,
|
|
15535
15535
|
watermark: At
|
|
15536
15536
|
} = t, It = p.useCallback((Je, Ot) => {
|
|
15537
15537
|
const {
|
|
@@ -15627,7 +15627,7 @@ const _N = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "
|
|
|
15627
15627
|
floatButtonGroup: nt,
|
|
15628
15628
|
variant: yt,
|
|
15629
15629
|
inputNumber: dt,
|
|
15630
|
-
treeSelect:
|
|
15630
|
+
treeSelect: it,
|
|
15631
15631
|
watermark: At
|
|
15632
15632
|
};
|
|
15633
15633
|
process.env.NODE_ENV !== "production" && Xi("ConfigProvider")(!("autoInsertSpaceInButton" in t), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");
|
|
@@ -18840,41 +18840,52 @@ const Ak = (t) => {
|
|
|
18840
18840
|
setting: r = {},
|
|
18841
18841
|
options: o = []
|
|
18842
18842
|
} = e, {
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
18846
|
-
|
|
18843
|
+
closeCombobox: a
|
|
18844
|
+
} = r, {
|
|
18845
|
+
dispatchQueryParams: i,
|
|
18846
|
+
queryParams: s,
|
|
18847
|
+
formLoading: l
|
|
18848
|
+
} = vt(Qt);
|
|
18849
|
+
ot(() => {
|
|
18850
|
+
s[e.prop] instanceof Array || (console.error("Tree value must be an array,树的值必须为数组类型"), i({
|
|
18851
|
+
data: {
|
|
18852
|
+
...s,
|
|
18853
|
+
[e.prop]: [s[e.prop]]
|
|
18854
|
+
}
|
|
18855
|
+
}));
|
|
18856
|
+
}, [s[e.prop]]);
|
|
18857
|
+
const c = (f = []) => f ? f.length === 0 ? [] : f.map((h) => {
|
|
18847
18858
|
const {
|
|
18848
|
-
setting:
|
|
18849
|
-
} =
|
|
18859
|
+
setting: v = {}
|
|
18860
|
+
} = h;
|
|
18850
18861
|
return {
|
|
18851
|
-
...f,
|
|
18852
18862
|
...h,
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
|
|
18863
|
+
...v,
|
|
18864
|
+
title: h.label || h.title,
|
|
18865
|
+
key: h.value || h.key,
|
|
18866
|
+
children: c(h.children)
|
|
18856
18867
|
};
|
|
18857
|
-
}) : [],
|
|
18858
|
-
|
|
18868
|
+
}) : [], u = (f, h) => {
|
|
18869
|
+
i({
|
|
18859
18870
|
data: {
|
|
18860
|
-
...
|
|
18861
|
-
[e.prop]:
|
|
18871
|
+
...s,
|
|
18872
|
+
[e.prop]: f
|
|
18862
18873
|
}
|
|
18863
|
-
});
|
|
18864
|
-
},
|
|
18865
|
-
|
|
18874
|
+
}), a && a();
|
|
18875
|
+
}, d = (f, h) => {
|
|
18876
|
+
i({
|
|
18866
18877
|
data: {
|
|
18867
|
-
...
|
|
18868
|
-
[e.prop]:
|
|
18878
|
+
...s,
|
|
18879
|
+
[e.prop]: f
|
|
18869
18880
|
}
|
|
18870
18881
|
});
|
|
18871
18882
|
};
|
|
18872
|
-
return o?.length ? /* @__PURE__ */ C.jsx(Tu, { id: n, name: e.prop, value:
|
|
18883
|
+
return s[e.prop] instanceof Array ? o?.length ? /* @__PURE__ */ C.jsx(Tu, { id: n, name: e.prop, value: s[e.prop] || [], checkedKeys: s[e.prop] || [], selectedKeys: s[e.prop] || [], defaultExpandedKeys: s[e.prop] || [], disabled: l, onCheck: d, onSelect: u, treeData: c(o), ...r, styles: {
|
|
18873
18884
|
root: {
|
|
18874
18885
|
backgroundColor: "inherit"
|
|
18875
18886
|
},
|
|
18876
18887
|
...r?.styles
|
|
18877
|
-
}, children: t.children }) : "loading tree";
|
|
18888
|
+
}, children: t.children }) : "loading tree" : [];
|
|
18878
18889
|
}, Ik = (t) => {
|
|
18879
18890
|
const e = Oe(null), {
|
|
18880
18891
|
coms: n = {},
|
|
@@ -18916,7 +18927,7 @@ const Ak = (t) => {
|
|
|
18916
18927
|
} = vt(Qt), [_, M] = zt(!1), [T, P] = zt({}), [I, j] = zt([]), A = s1.useMediaQuery("(min-width: 768px)"), z = (Y) => {
|
|
18917
18928
|
M(!1);
|
|
18918
18929
|
};
|
|
18919
|
-
|
|
18930
|
+
ot(() => {
|
|
18920
18931
|
if (!r.options || k !== "command")
|
|
18921
18932
|
return;
|
|
18922
18933
|
const Y = {};
|
|
@@ -18929,7 +18940,7 @@ const Ak = (t) => {
|
|
|
18929
18940
|
P({
|
|
18930
18941
|
...Y
|
|
18931
18942
|
});
|
|
18932
|
-
}, [r.options]),
|
|
18943
|
+
}, [r.options]), ot(() => {
|
|
18933
18944
|
if (!r.options || !["rc-tree", "ant-tree"].includes(k))
|
|
18934
18945
|
return;
|
|
18935
18946
|
const Y = {}, $ = (O) => {
|
|
@@ -18948,10 +18959,10 @@ const Ak = (t) => {
|
|
|
18948
18959
|
Z && (Y[B[Z.key]] = B[Z.title]), W && $(W);
|
|
18949
18960
|
});
|
|
18950
18961
|
};
|
|
18951
|
-
$(r.options), P({
|
|
18962
|
+
$(r.options), r.setting || (r.setting = {}), r.setting.closeCombobox = z, P({
|
|
18952
18963
|
...Y
|
|
18953
18964
|
});
|
|
18954
|
-
}, [r.options]),
|
|
18965
|
+
}, [r.options]), ot(() => {
|
|
18955
18966
|
if (!r.option || k !== "checkbox-list")
|
|
18956
18967
|
return;
|
|
18957
18968
|
const Y = {};
|
|
@@ -18962,12 +18973,12 @@ const Ak = (t) => {
|
|
|
18962
18973
|
P({
|
|
18963
18974
|
...Y
|
|
18964
18975
|
});
|
|
18965
|
-
}, [r.option]),
|
|
18976
|
+
}, [r.option]), ot(() => {
|
|
18966
18977
|
N[x] && N[x].length > 0 && j(N[x]), E && E.length > 0 && j(E), e?.current && j(e.current.checkedList);
|
|
18967
18978
|
});
|
|
18968
18979
|
const D = () => {
|
|
18969
18980
|
let Y;
|
|
18970
|
-
return k === "command" && T[N[r.prop]] && (Y = T[N[r.prop]]), ["rc-tree", "ant-tree"].includes(k) && N[r.prop] && (Y = N[r.prop].map(($) => /* @__PURE__ */ C.jsx(_d, { children: T[$] }, $))), k === "checkbox-list" && I && I.length > 0 && (Y = I.map(($) => /* @__PURE__ */ C.jsx(_d, { children: T[$] }, $))), /* @__PURE__ */ C.jsx(a, { variant: "outline", className: "w-full justify-center-safe", style: {
|
|
18981
|
+
return k === "command" && T[N[r.prop]] && (Y = T[N[r.prop]]), ["rc-tree", "ant-tree"].includes(k) && N[r.prop] && N[r.prop] instanceof Array && (Y = N[r.prop].map(($) => /* @__PURE__ */ C.jsx(_d, { children: T[$] }, $))), k === "checkbox-list" && I && I.length > 0 && (Y = I.map(($) => /* @__PURE__ */ C.jsx(_d, { children: T[$] }, $))), /* @__PURE__ */ C.jsx(a, { variant: "outline", className: "w-full justify-center-safe", style: {
|
|
18971
18982
|
maxWidth: `${R}`,
|
|
18972
18983
|
overflowX: "auto",
|
|
18973
18984
|
overflowY: "hidden"
|
|
@@ -18988,14 +18999,16 @@ const Ak = (t) => {
|
|
|
18988
18999
|
minWidth: `${R}`
|
|
18989
19000
|
}, children: /* @__PURE__ */ C.jsx(hh, { ref: e, id: o, coms: n, item: r }) });
|
|
18990
19001
|
};
|
|
18991
|
-
return w === "Dialog" ? /* @__PURE__ */ C.jsxs(f, { children: [
|
|
19002
|
+
return w === "Dialog" ? /* @__PURE__ */ C.jsxs(f, { open: _, onOpenChange: M, children: [
|
|
18992
19003
|
/* @__PURE__ */ C.jsx(h, { asChild: !0, children: D() }),
|
|
18993
19004
|
/* @__PURE__ */ C.jsxs(v, { children: [
|
|
18994
19005
|
/* @__PURE__ */ C.jsxs(m, { className: "hidden", children: [
|
|
18995
19006
|
/* @__PURE__ */ C.jsx(y, {}),
|
|
18996
19007
|
/* @__PURE__ */ C.jsx(g, {})
|
|
18997
19008
|
] }),
|
|
18998
|
-
|
|
19009
|
+
/* @__PURE__ */ C.jsx("div", { className: "overflow-y-auto", style: {
|
|
19010
|
+
maxHeight: window.innerHeight / 3 * 2
|
|
19011
|
+
}, children: G() })
|
|
18999
19012
|
] })
|
|
19000
19013
|
] }) : A || w === "Popover" ? /* @__PURE__ */ C.jsxs(c, { open: _, onOpenChange: M, children: [
|
|
19001
19014
|
/* @__PURE__ */ C.jsx(d, { asChild: !0, children: D() }),
|
|
@@ -19268,7 +19281,7 @@ const eP = [
|
|
|
19268
19281
|
}
|
|
19269
19282
|
}), d(P);
|
|
19270
19283
|
};
|
|
19271
|
-
|
|
19284
|
+
ot(() => {
|
|
19272
19285
|
R();
|
|
19273
19286
|
}, [g?.[n.prop]]);
|
|
19274
19287
|
const R = async () => {
|
|
@@ -20105,9 +20118,9 @@ const Np = {
|
|
|
20105
20118
|
queryParams: E
|
|
20106
20119
|
}), m(!1));
|
|
20107
20120
|
};
|
|
20108
|
-
return
|
|
20121
|
+
return ot(() => {
|
|
20109
20122
|
m(d);
|
|
20110
|
-
}, [d]),
|
|
20123
|
+
}, [d]), ot(() => {
|
|
20111
20124
|
R({
|
|
20112
20125
|
data: {
|
|
20113
20126
|
...E,
|
|
@@ -24395,9 +24408,9 @@ const x$ = {
|
|
|
24395
24408
|
TabsList: f,
|
|
24396
24409
|
TabsTrigger: h
|
|
24397
24410
|
} = n;
|
|
24398
|
-
|
|
24411
|
+
ot(() => {
|
|
24399
24412
|
a && y(a);
|
|
24400
|
-
}, [a]),
|
|
24413
|
+
}, [a]), ot(() => {
|
|
24401
24414
|
y(g());
|
|
24402
24415
|
}, []);
|
|
24403
24416
|
const v = async (b) => {
|