@mxmweb/xviewer 1.4.12 → 1.4.13

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.
Files changed (3) hide show
  1. package/index.js +153 -138
  2. package/package.json +1 -1
  3. package/stats.html +1 -1
package/index.js CHANGED
@@ -2702,7 +2702,7 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
2702
2702
  }, [A, V]);
2703
2703
  const { getCardProps: q } = Vh(V, (_) => {
2704
2704
  V.length > 0 && h && (console.log("[\u6279\u91CF\u52A8\u753B\u5B8C\u6210] \u4E00\u6B21\u6027\u79FB\u9664:", _), h([..._]), W([]));
2705
- }), H = Vd(), Z = cs({ theme: To, mode: "light" }, H)?.theme || To, Y = Z.space || To.space, ce = Y.xviewerCardsColumnGap, re = Y.xviewerCardsRowGap, ie = Y.xviewerCardsPadding ?? "16px", fe = typeof ce == "number" ? ce : ce && parseInt(String(ce), 10) || 24, le = typeof re == "number" ? re : re && parseInt(String(re), 10) || 24, ne = dh(A, l, {
2705
+ }), H = Vd(), Z = cs({ theme: To, mode: "light" }, H)?.theme || To, Y = Z.space || To.space, ce = Y.xviewerCardsColumnGap, re = Y.xviewerCardsRowGap, ie = Y.xviewerCardsPadding ?? "16px", ve = typeof ce == "number" ? ce : ce && parseInt(String(ce), 10) || 24, le = typeof re == "number" ? re : re && parseInt(String(re), 10) || 24, ne = dh(A, l, {
2706
2706
  ...t,
2707
2707
  theme: Z
2708
2708
  });
@@ -2718,7 +2718,7 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
2718
2718
  });
2719
2719
  return C.current && _.observe(C.current), () => _.disconnect();
2720
2720
  }, []);
2721
- const he = n || Hh, U = o || Kh, Oe = Math.max(O.width, he * 2), Ie = Math.max(O.height, U * 2), ze = 2, ye = 6, ke = Math.floor(Oe / he), Le = Math.max(ze, Math.min(ye, ke)), oe = k === "pagination" ? Ie - Ta : Ie, be = Math.max(1, Math.floor((oe + le) / (U + le))), Ae = typeof M == "number" && M > 0 ? M : Le * be, ge = y || ne.length, j = Math.ceil(ge / Ae), X = ne.slice((I - 1) * Ae, I * Ae), ee = U, ve = i, Pe = (_) => {
2721
+ const he = n || Hh, U = o || Kh, Oe = Math.max(O.width, he * 2), Ie = Math.max(O.height, U * 2), ze = 2, ye = 6, ke = Math.floor(Oe / he), Le = Math.max(ze, Math.min(ye, ke)), oe = k === "pagination" ? Ie - Ta : Ie, be = Math.max(1, Math.floor((oe + le) / (U + le))), Ae = typeof M == "number" && M > 0 ? M : Le * be, ge = y || ne.length, j = Math.ceil(ge / Ae), X = ne.slice((I - 1) * Ae, I * Ae), ee = U, fe = i, Pe = (_) => {
2722
2722
  let Ee = U;
2723
2723
  return _.data?.datasourceType === "DataTable" ? Ee = Math.max(Ee, 280) : _.data?.description && _.data.description.length > 50 && (Ee = Math.max(Ee, 320)), Ee;
2724
2724
  };
@@ -2726,14 +2726,14 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
2726
2726
  behavior: k,
2727
2727
  containerSize: { width: Oe, height: Ie },
2728
2728
  availableHeight: oe,
2729
- columnGap: fe,
2729
+ columnGap: ve,
2730
2730
  rowGap: le,
2731
2731
  cols: Le,
2732
2732
  rows: be,
2733
2733
  pageSize: Ae,
2734
2734
  totalPages: j,
2735
2735
  cardHeight: ee,
2736
- actualCardHeight: ve,
2736
+ actualCardHeight: fe,
2737
2737
  minH: U,
2738
2738
  PAGINATION_HEIGHT: Ta,
2739
2739
  showPagination: !0,
@@ -2820,7 +2820,7 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
2820
2820
  gridTemplateColumns: `repeat(${Le}, 1fr)`,
2821
2821
  gridAutoRows: "min-content",
2822
2822
  // 根据内容自动调整行高
2823
- columnGap: fe,
2823
+ columnGap: ve,
2824
2824
  rowGap: le,
2825
2825
  padding: ie,
2826
2826
  minHeight: "100%"
@@ -2942,9 +2942,9 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
2942
2942
  style: {
2943
2943
  display: "grid",
2944
2944
  gridTemplateColumns: `repeat(${Le}, 1fr)`,
2945
- gridAutoRows: `${ve}px`,
2945
+ gridAutoRows: `${fe}px`,
2946
2946
  // 根据内容自动调整行高
2947
- columnGap: `${fe}px`,
2947
+ columnGap: `${ve}px`,
2948
2948
  rowGap: `${le}px`,
2949
2949
  padding: ie
2950
2950
  },
@@ -3333,9 +3333,9 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
3333
3333
  className: "xviewer-content-renderer-form-wrap"
3334
3334
  })`
3335
3335
  width: 100%;
3336
- flex: 1 1 0;
3336
+ flex: 1 1 auto;
3337
3337
  min-height: 0;
3338
- height: 100%;
3338
+ height: auto;
3339
3339
  display: flex;
3340
3340
  flex-direction: column;
3341
3341
  overflow-y: auto;
@@ -4011,7 +4011,7 @@ function fp() {
4011
4011
  function ie(U) {
4012
4012
  return w(U) === t;
4013
4013
  }
4014
- function fe(U) {
4014
+ function ve(U) {
4015
4015
  return w(U) === o;
4016
4016
  }
4017
4017
  function le(U) {
@@ -4023,7 +4023,7 @@ function fp() {
4023
4023
  function he(U) {
4024
4024
  return w(U) === u;
4025
4025
  }
4026
- ot.ContextConsumer = E, ot.ContextProvider = N, ot.Element = A, ot.ForwardRef = C, ot.Fragment = O, ot.Lazy = T, ot.Memo = I, ot.Portal = P, ot.Profiler = M, ot.StrictMode = D, ot.Suspense = B, ot.SuspenseList = z, ot.isAsyncMode = W, ot.isConcurrentMode = $, ot.isContextConsumer = q, ot.isContextProvider = H, ot.isElement = Q, ot.isForwardRef = Z, ot.isFragment = Y, ot.isLazy = ce, ot.isMemo = re, ot.isPortal = ie, ot.isProfiler = fe, ot.isStrictMode = le, ot.isSuspense = ne, ot.isSuspenseList = he, ot.isValidElementType = S, ot.typeOf = w;
4026
+ ot.ContextConsumer = E, ot.ContextProvider = N, ot.Element = A, ot.ForwardRef = C, ot.Fragment = O, ot.Lazy = T, ot.Memo = I, ot.Portal = P, ot.Profiler = M, ot.StrictMode = D, ot.Suspense = B, ot.SuspenseList = z, ot.isAsyncMode = W, ot.isConcurrentMode = $, ot.isContextConsumer = q, ot.isContextProvider = H, ot.isElement = Q, ot.isForwardRef = Z, ot.isFragment = Y, ot.isLazy = ce, ot.isMemo = re, ot.isPortal = ie, ot.isProfiler = ve, ot.isStrictMode = le, ot.isSuspense = ne, ot.isSuspenseList = he, ot.isValidElementType = S, ot.typeOf = w;
4027
4027
  })()), ot;
4028
4028
  }
4029
4029
  var zc;
@@ -7170,7 +7170,7 @@ function zy(e) {
7170
7170
  I && ce && Be(ce) === "object" && Object.keys(ce).forEach(function(he) {
7171
7171
  ce[he] = "var(".concat(Ii(he, lu(y, I.prefix)), ")");
7172
7172
  });
7173
- var fe = or(Z, {
7173
+ var ve = or(Z, {
7174
7174
  componentCls: re,
7175
7175
  prefixCls: w,
7176
7176
  iconCls: ".".concat(D),
@@ -7180,14 +7180,14 @@ function zy(e) {
7180
7180
  max: W,
7181
7181
  // @ts-ignore
7182
7182
  min: $
7183
- }, I ? ce : ie), le = h(fe, {
7183
+ }, I ? ce : ie), le = h(ve, {
7184
7184
  hashId: O,
7185
7185
  prefixCls: w,
7186
7186
  rootPrefixCls: M,
7187
7187
  iconPrefixCls: D
7188
7188
  });
7189
7189
  Y(y, ie);
7190
- var ne = typeof a == "function" ? a(fe, w, E, p.resetFont) : null;
7190
+ var ne = typeof a == "function" ? a(ve, w, E, p.resetFont) : null;
7191
7191
  return [p.resetStyle === !1 ? null : ne, le];
7192
7192
  });
7193
7193
  return [H, O];
@@ -7835,7 +7835,7 @@ function vb(e, t, r, n) {
7835
7835
  be === Ci && ge ? j = w?.(Ae, oe) : be === xi && ge ? j = E?.(Ae, oe) : be === Si && ge && (j = N?.(Ae, oe)), ge && j !== !1 && Y();
7836
7836
  }
7837
7837
  }
7838
- }), re = sb(ce), ie = G(re, 1), fe = ie[0], le = function(be) {
7838
+ }), re = sb(ce), ie = G(re, 1), ve = ie[0], le = function(be) {
7839
7839
  switch (be) {
7840
7840
  case Ci:
7841
7841
  return R(R(R({}, Or, f), Qn, p), Zn, y);
@@ -7857,7 +7857,7 @@ function vb(e, t, r, n) {
7857
7857
  var Ae;
7858
7858
  W(((Ae = ne[Ie]) === null || Ae === void 0 ? void 0 : Ae.call(ne, Q(), null)) || null);
7859
7859
  }
7860
- return Ie === Zn && $ !== fn && (fe(Q()), u > 0 && (clearTimeout(H.current), H.current = setTimeout(function() {
7860
+ return Ie === Zn && $ !== fn && (ve(Q()), u > 0 && (clearTimeout(H.current), H.current = setTimeout(function() {
7861
7861
  ce({
7862
7862
  deadline: !0
7863
7863
  });
@@ -8171,7 +8171,7 @@ const Ab = (e) => {
8171
8171
  breadcrumb: ce,
8172
8172
  menu: re,
8173
8173
  pagination: ie,
8174
- input: fe,
8174
+ input: ve,
8175
8175
  textArea: le,
8176
8176
  empty: ne,
8177
8177
  badge: he,
@@ -8189,7 +8189,7 @@ const Ab = (e) => {
8189
8189
  timePicker: j,
8190
8190
  upload: X,
8191
8191
  notification: ee,
8192
- tree: ve,
8192
+ tree: fe,
8193
8193
  colorPicker: Pe,
8194
8194
  datePicker: we,
8195
8195
  rangePicker: te,
@@ -8250,7 +8250,7 @@ const Ab = (e) => {
8250
8250
  skeleton: z,
8251
8251
  steps: k,
8252
8252
  image: V,
8253
- input: fe,
8253
+ input: ve,
8254
8254
  textArea: le,
8255
8255
  layout: W,
8256
8256
  list: $,
@@ -8278,7 +8278,7 @@ const Ab = (e) => {
8278
8278
  timePicker: j,
8279
8279
  upload: X,
8280
8280
  notification: ee,
8281
- tree: ve,
8281
+ tree: fe,
8282
8282
  colorPicker: Pe,
8283
8283
  datePicker: we,
8284
8284
  rangePicker: te,
@@ -11290,7 +11290,7 @@ const _1 = {
11290
11290
  style: q,
11291
11291
  classNames: H,
11292
11292
  styles: Q
11293
- } = ql("button"), Z = (r = A ?? W) !== null && r !== void 0 ? r : !0, Y = k("btn", i), [ce, re, ie] = K1(Y), fe = nr($o), le = h ?? fe, ne = nr(Wv), he = jt(() => J1(o), [o]), [U, Oe] = it(he.loading), [Ie, ze] = it(!1), ye = Se(null), ke = mo(t, ye), Le = pm.count(m) === 1 && !b && !Ei(D), oe = Se(!0);
11293
+ } = ql("button"), Z = (r = A ?? W) !== null && r !== void 0 ? r : !0, Y = k("btn", i), [ce, re, ie] = K1(Y), ve = nr($o), le = h ?? ve, ne = nr(Wv), he = jt(() => J1(o), [o]), [U, Oe] = it(he.loading), [Ie, ze] = it(!1), ye = Se(null), ke = mo(t, ye), Le = pm.count(m) === 1 && !b && !Ei(D), oe = Se(!0);
11294
11294
  K.useEffect(() => (oe.current = !1, () => {
11295
11295
  oe.current = !0;
11296
11296
  }), []), vt(() => {
@@ -11332,7 +11332,7 @@ const _1 = {
11332
11332
  }, X = jv((de) => {
11333
11333
  var He, xt;
11334
11334
  return (xt = (He = d ?? Ae) !== null && He !== void 0 ? He : ne) !== null && xt !== void 0 ? xt : de;
11335
- }), ee = X && (n = j[X]) !== null && n !== void 0 ? n : "", ve = U ? "loading" : b, Pe = Wr(O, ["navigate"]), we = se(Y, re, ie, {
11335
+ }), ee = X && (n = j[X]) !== null && n !== void 0 ? n : "", fe = U ? "loading" : b, Pe = Wr(O, ["navigate"]), we = se(Y, re, ie, {
11336
11336
  [`${Y}-${P}`]: P !== "default" && P,
11337
11337
  // Compatible with versions earlier than 5.21.0
11338
11338
  [`${Y}-${T}`]: T,
@@ -11340,7 +11340,7 @@ const _1 = {
11340
11340
  [`${Y}-color-${z}`]: z,
11341
11341
  [`${Y}-variant-${D}`]: D,
11342
11342
  [`${Y}-${ee}`]: ee,
11343
- [`${Y}-icon-only`]: !m && m !== 0 && !!ve,
11343
+ [`${Y}-icon-only`]: !m && m !== 0 && !!fe,
11344
11344
  [`${Y}-background-ghost`]: x && !Ei(D),
11345
11345
  [`${Y}-loading`]: U,
11346
11346
  [`${Y}-two-chinese-chars`]: Ie && Z && !U,
@@ -13766,9 +13766,9 @@ function p2(e) {
13766
13766
  return "+ ".concat(e.length, " ...");
13767
13767
  }
13768
13768
  function y2(e, t) {
13769
- var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, l = e.renderRawItem, s = e.itemKey, c = e.itemWidth, u = c === void 0 ? 10 : c, d = e.ssr, f = e.style, h = e.className, g = e.maxCount, p = e.renderRest, m = e.renderRawRest, b = e.prefix, y = e.suffix, x = e.component, S = x === void 0 ? "div" : x, w = e.itemComponent, E = e.onVisibleChange, N = Ze(e, h2), A = d === "full", C = d2(), O = Wn(C, null), T = G(O, 2), I = T[0], P = T[1], M = I || 0, D = Wn(C, /* @__PURE__ */ new Map()), B = G(D, 2), z = B[0], k = B[1], V = Wn(C, 0), W = G(V, 2), $ = W[0], q = W[1], H = Wn(C, 0), Q = G(H, 2), Z = Q[0], Y = Q[1], ce = Wn(C, 0), re = G(ce, 2), ie = re[0], fe = re[1], le = Wn(C, 0), ne = G(le, 2), he = ne[0], U = ne[1], Oe = it(null), Ie = G(Oe, 2), ze = Ie[0], ye = Ie[1], ke = it(null), Le = G(ke, 2), oe = Le[0], be = Le[1], Ae = v.useMemo(function() {
13769
+ var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, l = e.renderRawItem, s = e.itemKey, c = e.itemWidth, u = c === void 0 ? 10 : c, d = e.ssr, f = e.style, h = e.className, g = e.maxCount, p = e.renderRest, m = e.renderRawRest, b = e.prefix, y = e.suffix, x = e.component, S = x === void 0 ? "div" : x, w = e.itemComponent, E = e.onVisibleChange, N = Ze(e, h2), A = d === "full", C = d2(), O = Wn(C, null), T = G(O, 2), I = T[0], P = T[1], M = I || 0, D = Wn(C, /* @__PURE__ */ new Map()), B = G(D, 2), z = B[0], k = B[1], V = Wn(C, 0), W = G(V, 2), $ = W[0], q = W[1], H = Wn(C, 0), Q = G(H, 2), Z = Q[0], Y = Q[1], ce = Wn(C, 0), re = G(ce, 2), ie = re[0], ve = re[1], le = Wn(C, 0), ne = G(le, 2), he = ne[0], U = ne[1], Oe = it(null), Ie = G(Oe, 2), ze = Ie[0], ye = Ie[1], ke = it(null), Le = G(ke, 2), oe = Le[0], be = Le[1], Ae = v.useMemo(function() {
13770
13770
  return oe === null && A ? Number.MAX_SAFE_INTEGER : oe || 0;
13771
- }, [oe, I]), ge = it(!1), j = G(ge, 2), X = j[0], ee = j[1], ve = "".concat(n, "-item"), Pe = Math.max($, Z), we = g === mg, te = i.length && we, J = g === hg, Ve = te || typeof g == "number" && i.length > g, _ = jt(function() {
13771
+ }, [oe, I]), ge = it(!1), j = G(ge, 2), X = j[0], ee = j[1], fe = "".concat(n, "-item"), Pe = Math.max($, Z), we = g === mg, te = i.length && we, J = g === hg, Ve = te || typeof g == "number" && i.length > g, _ = jt(function() {
13772
13772
  var Re = i;
13773
13773
  return te ? I === null && A ? Re = i : Re = i.slice(0, Math.min(i.length, M / u)) : typeof g == "number" && (Re = i.slice(0, g)), Re;
13774
13774
  }, [i, u, I, g, te]), Ee = jt(function() {
@@ -13795,7 +13795,7 @@ function y2(e, t) {
13795
13795
  Y(Te), q(Z);
13796
13796
  }
13797
13797
  function ar(Re, Te) {
13798
- fe(Te);
13798
+ ve(Te);
13799
13799
  }
13800
13800
  function Ut(Re, Te) {
13801
13801
  U(Te);
@@ -13836,7 +13836,7 @@ function y2(e, t) {
13836
13836
  top: 0
13837
13837
  });
13838
13838
  var Ct = {
13839
- prefixCls: ve,
13839
+ prefixCls: fe,
13840
13840
  responsive: te,
13841
13841
  component: w,
13842
13842
  invalidate: J
@@ -13865,7 +13865,7 @@ function y2(e, t) {
13865
13865
  }));
13866
13866
  }, $e = {
13867
13867
  order: st ? Ae : Number.MAX_SAFE_INTEGER,
13868
- className: "".concat(ve, "-rest"),
13868
+ className: "".concat(fe, "-rest"),
13869
13869
  registerSize: fr,
13870
13870
  display: st
13871
13871
  }, We = p || p2, Je = m ? /* @__PURE__ */ v.createElement(Xi.Provider, {
@@ -13878,14 +13878,14 @@ function y2(e, t) {
13878
13878
  responsive: we,
13879
13879
  responsiveDisabled: !te,
13880
13880
  order: -1,
13881
- className: "".concat(ve, "-prefix"),
13881
+ className: "".concat(fe, "-prefix"),
13882
13882
  registerSize: ar,
13883
13883
  display: !0
13884
13884
  }), b), _.map(gt), Ve ? Je : null, y && /* @__PURE__ */ v.createElement(Jn, Me({}, Ct, {
13885
13885
  responsive: we,
13886
13886
  responsiveDisabled: !te,
13887
13887
  order: Ae,
13888
- className: "".concat(ve, "-suffix"),
13888
+ className: "".concat(fe, "-suffix"),
13889
13889
  registerSize: Ut,
13890
13890
  display: !0,
13891
13891
  style: Qe
@@ -13953,7 +13953,7 @@ var yg = /* @__PURE__ */ v.forwardRef(function(e, t) {
13953
13953
  bottom: re
13954
13954
  };
13955
13955
  if (T || !s) {
13956
- var fe, le = p.points, ne = p.dynamicInset || ((fe = p._experimental) === null || fe === void 0 ? void 0 : fe.dynamicInset), he = ne && le[0][1] === "r", U = ne && le[0][0] === "b";
13956
+ var ve, le = p.points, ne = p.dynamicInset || ((ve = p._experimental) === null || ve === void 0 ? void 0 : ve.dynamicInset), he = ne && le[0][1] === "r", U = ne && le[0][0] === "b";
13957
13957
  he ? (ie.right = M, ie.left = re) : (ie.left = I, ie.right = re), U ? (ie.bottom = D, ie.top = re) : (ie.top = P, ie.bottom = re);
13958
13958
  }
13959
13959
  var Oe = {};
@@ -14165,7 +14165,7 @@ function E2(e, t, r, n, o, i, a) {
14165
14165
  }
14166
14166
  var q = E.getBoundingClientRect(), H = A.getComputedStyle(E), Q = H.height, Z = H.width;
14167
14167
  q.x = (x = q.x) !== null && x !== void 0 ? x : q.left, q.y = (S = q.y) !== null && S !== void 0 ? S : q.top;
14168
- var Y = N.documentElement, ce = Y.clientWidth, re = Y.clientHeight, ie = Y.scrollWidth, fe = Y.scrollHeight, le = Y.scrollTop, ne = Y.scrollLeft, he = q.height, U = q.width, Oe = k.height, Ie = k.width, ze = {
14168
+ var Y = N.documentElement, ce = Y.clientWidth, re = Y.clientHeight, ie = Y.scrollWidth, ve = Y.scrollHeight, le = Y.scrollTop, ne = Y.scrollLeft, he = q.height, U = q.width, Oe = k.height, Ie = k.width, ze = {
14169
14169
  left: 0,
14170
14170
  top: 0,
14171
14171
  right: ce,
@@ -14174,15 +14174,15 @@ function E2(e, t, r, n, o, i, a) {
14174
14174
  left: -ne,
14175
14175
  top: -le,
14176
14176
  right: ie - ne,
14177
- bottom: fe - le
14177
+ bottom: ve - le
14178
14178
  }, ke = B.htmlRegion, Le = "visible", oe = "visibleFirst";
14179
14179
  ke !== "scroll" && ke !== oe && (ke = Le);
14180
14180
  var be = ke === oe, Ae = _u(ye, f), ge = _u(ze, f), j = ke === Le ? ge : Ae, X = be ? ge : j;
14181
14181
  E.style.left = "auto", E.style.top = "auto", E.style.right = "0", E.style.bottom = "0";
14182
14182
  var ee = E.getBoundingClientRect();
14183
14183
  E.style.left = T, E.style.top = I, E.style.right = P, E.style.bottom = M, E.style.overflow = D, (w = E.parentElement) === null || w === void 0 || w.removeChild(z);
14184
- var ve = Zo(Math.round(U / parseFloat(Z) * 1e3) / 1e3), Pe = Zo(Math.round(he / parseFloat(Q) * 1e3) / 1e3);
14185
- if (ve === 0 || Pe === 0 || zo(r) && !Zl(r))
14184
+ var fe = Zo(Math.round(U / parseFloat(Z) * 1e3) / 1e3), Pe = Zo(Math.round(he / parseFloat(Q) * 1e3) / 1e3);
14185
+ if (fe === 0 || Pe === 0 || zo(r) && !Zl(r))
14186
14186
  return;
14187
14187
  var we = B.offset, te = B.targetOffset, J = td(q, we), Ve = G(J, 2), _ = Ve[0], Ee = Ve[1], Ce = td(k, te), de = G(Ce, 2), He = de[0], xt = de[1];
14188
14188
  k.x -= He, k.y -= xt;
@@ -14232,16 +14232,16 @@ function E2(e, t, r, n, o, i, a) {
14232
14232
  var Mr = q.x + $e, Tr = Mr + U, bn = q.y + We, xo = bn + he, Fn = k.x, ft = Fn + Ie, et = k.y, lt = et + Oe, Gt = Math.max(Mr, Fn), Lt = Math.min(Tr, ft), ln = (Gt + Lt) / 2, Cn = ln - Mr, Dn = Math.max(bn, et), Bn = Math.min(xo, lt), Ln = (Dn + Bn) / 2, Gr = Ln - bn;
14233
14233
  a?.(t, gt);
14234
14234
  var er = ee.right - q.x - ($e + q.width), xn = ee.bottom - q.y - (We + q.height);
14235
- ve === 1 && ($e = Math.round($e), er = Math.round(er)), Pe === 1 && (We = Math.round(We), xn = Math.round(xn));
14235
+ fe === 1 && ($e = Math.round($e), er = Math.round(er)), Pe === 1 && (We = Math.round(We), xn = Math.round(xn));
14236
14236
  var Oa = {
14237
14237
  ready: !0,
14238
- offsetX: $e / ve,
14238
+ offsetX: $e / fe,
14239
14239
  offsetY: We / Pe,
14240
- offsetR: er / ve,
14240
+ offsetR: er / fe,
14241
14241
  offsetB: xn / Pe,
14242
- arrowX: Cn / ve,
14242
+ arrowX: Cn / fe,
14243
14243
  arrowY: Gr / Pe,
14244
- scaleX: ve,
14244
+ scaleX: fe,
14245
14245
  scaleY: Pe,
14246
14246
  align: gt
14247
14247
  };
@@ -14316,7 +14316,7 @@ function O2(e, t, r, n, o, i, a, l) {
14316
14316
  var A2 = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
14317
14317
  function I2() {
14318
14318
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : tc, t = /* @__PURE__ */ v.forwardRef(function(r, n) {
14319
- var o = r.prefixCls, i = o === void 0 ? "rc-trigger-popup" : o, a = r.children, l = r.action, s = l === void 0 ? "hover" : l, c = r.showAction, u = r.hideAction, d = r.popupVisible, f = r.defaultPopupVisible, h = r.onPopupVisibleChange, g = r.afterPopupVisibleChange, p = r.mouseEnterDelay, m = r.mouseLeaveDelay, b = m === void 0 ? 0.1 : m, y = r.focusDelay, x = r.blurDelay, S = r.mask, w = r.maskClosable, E = w === void 0 ? !0 : w, N = r.getPopupContainer, A = r.forceRender, C = r.autoDestroy, O = r.destroyPopupOnHide, T = r.popup, I = r.popupClassName, P = r.popupStyle, M = r.popupPlacement, D = r.builtinPlacements, B = D === void 0 ? {} : D, z = r.popupAlign, k = r.zIndex, V = r.stretch, W = r.getPopupClassNameFromAlign, $ = r.fresh, q = r.alignPoint, H = r.onPopupClick, Q = r.onPopupAlign, Z = r.arrow, Y = r.popupMotion, ce = r.maskMotion, re = r.popupTransitionName, ie = r.popupAnimation, fe = r.maskTransitionName, le = r.maskAnimation, ne = r.className, he = r.getTriggerDOMNode, U = Ze(r, A2), Oe = C || O || !1, Ie = v.useState(!1), ze = G(Ie, 2), ye = ze[0], ke = ze[1];
14319
+ var o = r.prefixCls, i = o === void 0 ? "rc-trigger-popup" : o, a = r.children, l = r.action, s = l === void 0 ? "hover" : l, c = r.showAction, u = r.hideAction, d = r.popupVisible, f = r.defaultPopupVisible, h = r.onPopupVisibleChange, g = r.afterPopupVisibleChange, p = r.mouseEnterDelay, m = r.mouseLeaveDelay, b = m === void 0 ? 0.1 : m, y = r.focusDelay, x = r.blurDelay, S = r.mask, w = r.maskClosable, E = w === void 0 ? !0 : w, N = r.getPopupContainer, A = r.forceRender, C = r.autoDestroy, O = r.destroyPopupOnHide, T = r.popup, I = r.popupClassName, P = r.popupStyle, M = r.popupPlacement, D = r.builtinPlacements, B = D === void 0 ? {} : D, z = r.popupAlign, k = r.zIndex, V = r.stretch, W = r.getPopupClassNameFromAlign, $ = r.fresh, q = r.alignPoint, H = r.onPopupClick, Q = r.onPopupAlign, Z = r.arrow, Y = r.popupMotion, ce = r.maskMotion, re = r.popupTransitionName, ie = r.popupAnimation, ve = r.maskTransitionName, le = r.maskAnimation, ne = r.className, he = r.getTriggerDOMNode, U = Ze(r, A2), Oe = C || O || !1, Ie = v.useState(!1), ze = G(Ie, 2), ye = ze[0], ke = ze[1];
14320
14320
  vt(function() {
14321
14321
  ke(s2());
14322
14322
  }, []);
@@ -14326,8 +14326,8 @@ function I2() {
14326
14326
  Le.current[je] = bt, oe?.registerSubPopup(je, bt);
14327
14327
  }
14328
14328
  };
14329
- }, [oe]), Ae = ig(), ge = v.useState(null), j = G(ge, 2), X = j[0], ee = j[1], ve = v.useRef(null), Pe = Ot(function(Ne) {
14330
- ve.current = Ne, zo(Ne) && X !== Ne && ee(Ne), oe?.registerSubPopup(Ae, Ne);
14329
+ }, [oe]), Ae = ig(), ge = v.useState(null), j = G(ge, 2), X = j[0], ee = j[1], fe = v.useRef(null), Pe = Ot(function(Ne) {
14330
+ fe.current = Ne, zo(Ne) && X !== Ne && ee(Ne), oe?.registerSubPopup(Ae, Ne);
14331
14331
  }), we = v.useState(null), te = G(we, 2), J = te[0], Ve = te[1], _ = v.useRef(null), Ee = Ot(function(Ne) {
14332
14332
  zo(Ne) && J !== Ne && (Ve(Ne), _.current = Ne);
14333
14333
  }), Ce = v.Children.only(a), de = Ce?.props || {}, He = {}, xt = Ot(function(Ne) {
@@ -14335,7 +14335,7 @@ function I2() {
14335
14335
  return Dt?.contains(Ne) || ((je = Wi(Dt)) === null || je === void 0 ? void 0 : je.host) === Ne || Ne === Dt || X?.contains(Ne) || ((bt = Wi(X)) === null || bt === void 0 ? void 0 : bt.host) === Ne || Ne === X || Object.values(Le.current).some(function(wt) {
14336
14336
  return wt?.contains(Ne) || Ne === wt;
14337
14337
  });
14338
- }), ir = Ju(i, Y, ie, re), fr = Ju(i, ce, le, fe), ar = v.useState(f || !1), Ut = G(ar, 2), Ft = Ut[0], st = Ut[1], Qe = d ?? Ft, Ct = Ot(function(Ne) {
14338
+ }), ir = Ju(i, Y, ie, re), fr = Ju(i, ce, le, ve), ar = v.useState(f || !1), Ut = G(ar, 2), Ft = Ut[0], st = Ut[1], Qe = d ?? Ft, Ct = Ot(function(Ne) {
14339
14339
  d === void 0 && st(Ne);
14340
14340
  });
14341
14341
  vt(function() {
@@ -14382,7 +14382,7 @@ function I2() {
14382
14382
  v.useImperativeHandle(n, function() {
14383
14383
  return {
14384
14384
  nativeElement: _.current,
14385
- popupElement: ve.current,
14385
+ popupElement: fe.current,
14386
14386
  forceAlign: Tr
14387
14387
  };
14388
14388
  });
@@ -14964,7 +14964,7 @@ var fl = /* @__PURE__ */ v.forwardRef(function(e, t) {
14964
14964
  var re = "".concat(r, "-scrollbar"), ie = {
14965
14965
  position: "absolute",
14966
14966
  visibility: B ? null : "hidden"
14967
- }, fe = {
14967
+ }, ve = {
14968
14968
  position: "absolute",
14969
14969
  borderRadius: 99,
14970
14970
  background: "var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",
@@ -14976,14 +14976,14 @@ var fl = /* @__PURE__ */ v.forwardRef(function(e, t) {
14976
14976
  left: 0,
14977
14977
  right: 0,
14978
14978
  bottom: 0
14979
- }), Object.assign(fe, R({
14979
+ }), Object.assign(ve, R({
14980
14980
  height: "100%",
14981
14981
  width: u
14982
14982
  }, T ? "left" : "right", q))) : (Object.assign(ie, R({
14983
14983
  width: 8,
14984
14984
  top: 0,
14985
14985
  bottom: 0
14986
- }, T ? "right" : "left", 0)), Object.assign(fe, {
14986
+ }, T ? "right" : "left", 0)), Object.assign(ve, {
14987
14987
  width: "100%",
14988
14988
  height: u,
14989
14989
  top: q
@@ -14996,7 +14996,7 @@ var fl = /* @__PURE__ */ v.forwardRef(function(e, t) {
14996
14996
  }, /* @__PURE__ */ v.createElement("div", {
14997
14997
  ref: P,
14998
14998
  className: se("".concat(re, "-thumb"), R({}, "".concat(re, "-thumb-moving"), b)),
14999
- style: L(L({}, fe), h),
14999
+ style: L(L({}, ve), h),
15000
15000
  onMouseDown: Z
15001
15001
  }));
15002
15002
  });
@@ -15017,7 +15017,7 @@ function G2(e, t) {
15017
15017
  return Object.values(B.maps).reduce(function(ae, pe) {
15018
15018
  return ae + pe;
15019
15019
  }, 0);
15020
- }, [B.id, B.maps]), W = k && u && (Math.max(a * u.length, V) > i || !!p), $ = g === "rtl", q = se(n, R({}, "".concat(n, "-rtl"), $), o), H = u || K2, Q = Se(), Z = Se(), Y = Se(), ce = it(0), re = G(ce, 2), ie = re[0], fe = re[1], le = it(0), ne = G(le, 2), he = ne[0], U = ne[1], Oe = it(!1), Ie = G(Oe, 2), ze = Ie[0], ye = Ie[1], ke = function() {
15020
+ }, [B.id, B.maps]), W = k && u && (Math.max(a * u.length, V) > i || !!p), $ = g === "rtl", q = se(n, R({}, "".concat(n, "-rtl"), $), o), H = u || K2, Q = Se(), Z = Se(), Y = Se(), ce = it(0), re = G(ce, 2), ie = re[0], ve = re[1], le = it(0), ne = G(le, 2), he = ne[0], U = ne[1], Oe = it(!1), Ie = G(Oe, 2), ze = Ie[0], ye = Ie[1], ke = function() {
15021
15021
  ye(!0);
15022
15022
  }, Le = function() {
15023
15023
  ye(!1);
@@ -15025,7 +15025,7 @@ function G2(e, t) {
15025
15025
  getKey: T
15026
15026
  };
15027
15027
  function be(ae) {
15028
- fe(function(pe) {
15028
+ ve(function(pe) {
15029
15029
  var Ke;
15030
15030
  typeof ae == "function" ? Ke = ae(pe) : Ke = ae;
15031
15031
  var rt = Ft(Ke);
@@ -15037,7 +15037,7 @@ function G2(e, t) {
15037
15037
  end: H.length
15038
15038
  }), ge = Se(), j = T2(H, T), X = G(j, 1), ee = X[0];
15039
15039
  ge.current = ee;
15040
- var ve = v.useMemo(function() {
15040
+ var fe = v.useMemo(function() {
15041
15041
  if (!k)
15042
15042
  return {
15043
15043
  scrollHeight: void 0,
@@ -15064,7 +15064,7 @@ function G2(e, t) {
15064
15064
  end: dt,
15065
15065
  offset: rt
15066
15066
  };
15067
- }, [W, k, ie, H, z, i]), Pe = ve.scrollHeight, we = ve.start, te = ve.end, J = ve.offset;
15067
+ }, [W, k, ie, H, z, i]), Pe = fe.scrollHeight, we = fe.start, te = fe.end, J = fe.offset;
15068
15068
  Ae.current.start = we, Ae.current.end = te, v.useLayoutEffect(function() {
15069
15069
  var ae = B.getRecord();
15070
15070
  if (ae.size === 1) {
@@ -15964,7 +15964,7 @@ const sS = /* @__PURE__ */ v.forwardRef((e, t) => {
15964
15964
  const [ce, re] = mn(!1, {
15965
15965
  value: (r = e.open) !== null && r !== void 0 ? r : e.visible,
15966
15966
  defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
15967
- }), ie = !p && !m && p !== 0, fe = (te) => {
15967
+ }), ie = !p && !m && p !== 0, ve = (te) => {
15968
15968
  var J, Ve;
15969
15969
  re(ie ? !1 : te), ie || ((J = e.onOpenChange) === null || J === void 0 || J.call(e, te), (Ve = e.onVisibleChange) === null || Ve === void 0 || Ve.call(e, te));
15970
15970
  }, le = v.useMemo(() => {
@@ -15985,8 +15985,8 @@ const sS = /* @__PURE__ */ v.forwardRef((e, t) => {
15985
15985
  !("open" in e) && !("visible" in e) && ie && (ze = !1);
15986
15986
  const ye = /* @__PURE__ */ v.isValidElement(c) && !Mv(c) ? c : /* @__PURE__ */ v.createElement("span", null, c), ke = ye.props, Le = !ke.className || typeof ke.className == "string" ? se(ke.className, i || `${U}-open`) : ke.className, [oe, be, Ae] = Ig(U, !Ie), ge = Pg(U, l), j = ge.arrowStyle, X = se(T, {
15987
15987
  [`${U}-rtl`]: V === "rtl"
15988
- }, ge.className, O, be, Ae, W, q.root, P?.root), ee = se(q.body, P?.body), [ve, Pe] = Xl("Tooltip", M.zIndex), we = /* @__PURE__ */ v.createElement(Q2, Object.assign({}, M, {
15989
- zIndex: ve,
15988
+ }, ge.className, O, be, Ae, W, q.root, P?.root), ee = se(q.body, P?.body), [fe, Pe] = Xl("Tooltip", M.zIndex), we = /* @__PURE__ */ v.createElement(Q2, Object.assign({}, M, {
15989
+ zIndex: fe,
15990
15990
  showArrow: D,
15991
15991
  placement: E,
15992
15992
  mouseEnterDelay: N,
@@ -16005,7 +16005,7 @@ const sS = /* @__PURE__ */ v.forwardRef((e, t) => {
16005
16005
  builtinPlacements: le,
16006
16006
  overlay: he,
16007
16007
  visible: ze,
16008
- onVisibleChange: fe,
16008
+ onVisibleChange: ve,
16009
16009
  afterVisibleChange: u ?? d,
16010
16010
  arrowContent: /* @__PURE__ */ v.createElement("span", {
16011
16011
  className: `${U}-arrow-content`
@@ -16500,26 +16500,26 @@ var kS = ["title", "attribute", "elementRef"], FS = ["style", "className", "even
16500
16500
  })(v.Component), LS = /* @__PURE__ */ v.forwardRef(function(e, t) {
16501
16501
  var r = e.style, n = e.className, o = e.eventKey, i = e.warnKey, a = e.disabled, l = e.itemIcon, s = e.children, c = e.role, u = e.onMouseEnter, d = e.onMouseLeave, f = e.onClick, h = e.onKeyDown, g = e.onFocus, p = Ze(e, FS), m = Tg(o), b = v.useContext(Rr), y = b.prefixCls, x = b.onItemClick, S = b.disabled, w = b.overflowDisabled, E = b.itemIcon, N = b.selectedKeys, A = b.onActive, C = v.useContext(ac), O = C._internalRenderMenuItem, T = "".concat(y, "-item"), I = v.useRef(), P = v.useRef(), M = S || a, D = mo(t, P), B = bo(o);
16502
16502
  process.env.NODE_ENV !== "production" && i && qe(!1, "MenuItem should not leave undefined `key`.");
16503
- var z = function(fe) {
16503
+ var z = function(ve) {
16504
16504
  return {
16505
16505
  key: o,
16506
16506
  // Note: For legacy code is reversed which not like other antd component
16507
16507
  keyPath: me(B).reverse(),
16508
16508
  item: I.current,
16509
- domEvent: fe
16509
+ domEvent: ve
16510
16510
  };
16511
- }, k = l || E, V = Lg(o, M, u, d), W = V.active, $ = Ze(V, DS), q = N.includes(o), H = zg(B.length), Q = function(fe) {
16511
+ }, k = l || E, V = Lg(o, M, u, d), W = V.active, $ = Ze(V, DS), q = N.includes(o), H = zg(B.length), Q = function(ve) {
16512
16512
  if (!M) {
16513
- var le = z(fe);
16513
+ var le = z(ve);
16514
16514
  f?.(Zi(le)), x(le);
16515
16515
  }
16516
- }, Z = function(fe) {
16517
- if (h?.(fe), fe.which === qt.ENTER) {
16518
- var le = z(fe);
16516
+ }, Z = function(ve) {
16517
+ if (h?.(ve), ve.which === qt.ENTER) {
16518
+ var le = z(ve);
16519
16519
  f?.(Zi(le)), x(le);
16520
16520
  }
16521
- }, Y = function(fe) {
16522
- A(o), g?.(fe);
16521
+ }, Y = function(ve) {
16522
+ A(o), g?.(ve);
16523
16523
  }, ce = {};
16524
16524
  e.role === "option" && (ce["aria-selected"] = q);
16525
16525
  var re = /* @__PURE__ */ v.createElement(BS, Me({
@@ -16734,7 +16734,7 @@ function qS(e) {
16734
16734
  var US = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], YS = ["active"], $S = /* @__PURE__ */ v.forwardRef(function(e, t) {
16735
16735
  var r = e.style, n = e.className, o = e.title, i = e.eventKey, a = e.warnKey, l = e.disabled, s = e.internalPopupClose, c = e.children, u = e.itemIcon, d = e.expandIcon, f = e.popupClassName, h = e.popupOffset, g = e.popupStyle, p = e.onClick, m = e.onMouseEnter, b = e.onMouseLeave, y = e.onTitleClick, x = e.onTitleMouseEnter, S = e.onTitleMouseLeave, w = Ze(e, US), E = Tg(i), N = v.useContext(Rr), A = N.prefixCls, C = N.mode, O = N.openKeys, T = N.disabled, I = N.overflowDisabled, P = N.activeKey, M = N.selectedKeys, D = N.itemIcon, B = N.expandIcon, z = N.onItemClick, k = N.onOpenChange, V = N.onActive, W = v.useContext(ac), $ = W._internalRenderSubMenuItem, q = v.useContext(Dg), H = q.isSubPathKey, Q = bo(), Z = "".concat(A, "-submenu"), Y = T || l, ce = v.useRef(), re = v.useRef();
16736
16736
  process.env.NODE_ENV !== "production" && a && qe(!1, "SubMenu should not leave undefined `key`.");
16737
- var ie = u ?? D, fe = d ?? B, le = O.includes(i), ne = !I && le, he = H(M, i), U = Lg(i, Y, x, S), Oe = U.active, Ie = Ze(U, YS), ze = v.useState(!1), ye = G(ze, 2), ke = ye[0], Le = ye[1], oe = function(de) {
16737
+ var ie = u ?? D, ve = d ?? B, le = O.includes(i), ne = !I && le, he = H(M, i), U = Lg(i, Y, x, S), Oe = U.active, Ie = Ze(U, YS), ze = v.useState(!1), ye = G(ze, 2), ke = ye[0], Le = ye[1], oe = function(de) {
16738
16738
  Y || Le(de);
16739
16739
  }, be = function(de) {
16740
16740
  oe(!0), m?.({
@@ -16755,13 +16755,13 @@ var US = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
16755
16755
  }), C === "inline" && k(i, !le));
16756
16756
  }, ee = Mo(function(Ce) {
16757
16757
  p?.(Zi(Ce)), z(Ce);
16758
- }), ve = function(de) {
16758
+ }), fe = function(de) {
16759
16759
  C !== "inline" && k(i, de);
16760
16760
  }, Pe = function() {
16761
16761
  V(i);
16762
16762
  }, we = E && "".concat(E, "-popup"), te = v.useMemo(function() {
16763
16763
  return /* @__PURE__ */ v.createElement(jg, {
16764
- icon: C !== "horizontal" ? fe : void 0,
16764
+ icon: C !== "horizontal" ? ve : void 0,
16765
16765
  props: L(L({}, e), {}, {
16766
16766
  isOpen: ne,
16767
16767
  // [Legacy] Not sure why need this mark
@@ -16770,7 +16770,7 @@ var US = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
16770
16770
  }, /* @__PURE__ */ v.createElement("i", {
16771
16771
  className: "".concat(Z, "-arrow")
16772
16772
  }));
16773
- }, [C, fe, e, ne, Z]), J = /* @__PURE__ */ v.createElement("div", Me({
16773
+ }, [C, ve, e, ne, Z]), J = /* @__PURE__ */ v.createElement("div", Me({
16774
16774
  role: "menuitem",
16775
16775
  style: j,
16776
16776
  className: "".concat(Z, "-title"),
@@ -16805,7 +16805,7 @@ var US = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
16805
16805
  }, c)
16806
16806
  ),
16807
16807
  disabled: Y,
16808
- onVisibleChange: ve
16808
+ onVisibleChange: fe
16809
16809
  }, J);
16810
16810
  }
16811
16811
  var Ee = /* @__PURE__ */ v.createElement(Jr.Item, Me({
@@ -16831,7 +16831,7 @@ var US = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
16831
16831
  onItemClick: ee,
16832
16832
  mode: C === "horizontal" ? "vertical" : C,
16833
16833
  itemIcon: ie,
16834
- expandIcon: fe
16834
+ expandIcon: ve
16835
16835
  }, Ee);
16836
16836
  }), ci = /* @__PURE__ */ v.forwardRef(function(e, t) {
16837
16837
  var r = e.eventKey, n = e.children, o = bo(r), i = uc(n, o), a = wa();
@@ -16923,9 +16923,9 @@ function md(e, t, r, n, o) {
16923
16923
  return t && (i = yl(t, a, o)), uc(i, r);
16924
16924
  }
16925
16925
  var JS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Sn = [], _S = /* @__PURE__ */ v.forwardRef(function(e, t) {
16926
- var r, n = e, o = n.prefixCls, i = o === void 0 ? "rc-menu" : o, a = n.rootClassName, l = n.style, s = n.className, c = n.tabIndex, u = c === void 0 ? 0 : c, d = n.items, f = n.children, h = n.direction, g = n.id, p = n.mode, m = p === void 0 ? "vertical" : p, b = n.inlineCollapsed, y = n.disabled, x = n.disabledOverflow, S = n.subMenuOpenDelay, w = S === void 0 ? 0.1 : S, E = n.subMenuCloseDelay, N = E === void 0 ? 0.1 : E, A = n.forceSubMenuRender, C = n.defaultOpenKeys, O = n.openKeys, T = n.activeKey, I = n.defaultActiveFirst, P = n.selectable, M = P === void 0 ? !0 : P, D = n.multiple, B = D === void 0 ? !1 : D, z = n.defaultSelectedKeys, k = n.selectedKeys, V = n.onSelect, W = n.onDeselect, $ = n.inlineIndent, q = $ === void 0 ? 24 : $, H = n.motion, Q = n.defaultMotions, Z = n.triggerSubMenuAction, Y = Z === void 0 ? "hover" : Z, ce = n.builtinPlacements, re = n.itemIcon, ie = n.expandIcon, fe = n.overflowedIndicator, le = fe === void 0 ? "..." : fe, ne = n.overflowedIndicatorPopupClassName, he = n.getPopupContainer, U = n.onClick, Oe = n.onOpenChange, Ie = n.onKeyDown, ze = n.openAnimation, ye = n.openTransitionName, ke = n._internalRenderMenuItem, Le = n._internalRenderSubMenuItem, oe = n._internalComponents, be = Ze(n, JS), Ae = v.useMemo(function() {
16926
+ var r, n = e, o = n.prefixCls, i = o === void 0 ? "rc-menu" : o, a = n.rootClassName, l = n.style, s = n.className, c = n.tabIndex, u = c === void 0 ? 0 : c, d = n.items, f = n.children, h = n.direction, g = n.id, p = n.mode, m = p === void 0 ? "vertical" : p, b = n.inlineCollapsed, y = n.disabled, x = n.disabledOverflow, S = n.subMenuOpenDelay, w = S === void 0 ? 0.1 : S, E = n.subMenuCloseDelay, N = E === void 0 ? 0.1 : E, A = n.forceSubMenuRender, C = n.defaultOpenKeys, O = n.openKeys, T = n.activeKey, I = n.defaultActiveFirst, P = n.selectable, M = P === void 0 ? !0 : P, D = n.multiple, B = D === void 0 ? !1 : D, z = n.defaultSelectedKeys, k = n.selectedKeys, V = n.onSelect, W = n.onDeselect, $ = n.inlineIndent, q = $ === void 0 ? 24 : $, H = n.motion, Q = n.defaultMotions, Z = n.triggerSubMenuAction, Y = Z === void 0 ? "hover" : Z, ce = n.builtinPlacements, re = n.itemIcon, ie = n.expandIcon, ve = n.overflowedIndicator, le = ve === void 0 ? "..." : ve, ne = n.overflowedIndicatorPopupClassName, he = n.getPopupContainer, U = n.onClick, Oe = n.onOpenChange, Ie = n.onKeyDown, ze = n.openAnimation, ye = n.openTransitionName, ke = n._internalRenderMenuItem, Le = n._internalRenderSubMenuItem, oe = n._internalComponents, be = Ze(n, JS), Ae = v.useMemo(function() {
16927
16927
  return [md(f, d, Sn, oe, i), md(f, d, Sn, {}, i)];
16928
- }, [f, d, oe]), ge = G(Ae, 2), j = ge[0], X = ge[1], ee = v.useState(!1), ve = G(ee, 2), Pe = ve[0], we = ve[1], te = v.useRef(), J = MS(g), Ve = h === "rtl";
16928
+ }, [f, d, oe]), ge = G(Ae, 2), j = ge[0], X = ge[1], ee = v.useState(!1), fe = G(ee, 2), Pe = fe[0], we = fe[1], te = v.useRef(), J = MS(g), Ve = h === "rtl";
16929
16929
  process.env.NODE_ENV !== "production" && qe(!ze && !ye, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
16930
16930
  var _ = mn(C, {
16931
16931
  value: O,
@@ -17397,9 +17397,9 @@ const hd = {
17397
17397
  M.current = (re) => {
17398
17398
  E(re.matches), m?.(re.matches), x !== re.matches && N(re.matches, "responsive");
17399
17399
  }, tt(() => {
17400
- function re(fe) {
17400
+ function re(ve) {
17401
17401
  var le;
17402
- return (le = M.current) === null || le === void 0 ? void 0 : le.call(M, fe);
17402
+ return (le = M.current) === null || le === void 0 ? void 0 : le.call(M, ve);
17403
17403
  }
17404
17404
  let ie;
17405
17405
  return typeof window?.matchMedia < "u" && g && g in hd && (ie = window.matchMedia(`screen and (max-width: ${hd[g]})`), q2(ie, re), re(ie)), () => {
@@ -19035,7 +19035,7 @@ const Ew = (e) => {
19035
19035
  disabled: (t = Q.props.disabled) !== null && t !== void 0 ? t : l
19036
19036
  }), Y = l ? [] : a, ce = !!Y?.includes("contextMenu"), [re, ie] = mn(!1, {
19037
19037
  value: g ?? m
19038
- }), fe = Ot((ye) => {
19038
+ }), ve = Ot((ye) => {
19039
19039
  p?.(ye, {
19040
19040
  source: "trigger"
19041
19041
  }), b?.(ye), ie(ye);
@@ -19088,7 +19088,7 @@ const Ew = (e) => {
19088
19088
  trigger: Y,
19089
19089
  overlay: U,
19090
19090
  placement: z,
19091
- onVisibleChange: fe,
19091
+ onVisibleChange: ve,
19092
19092
  overlayStyle: Object.assign(Object.assign(Object.assign({}, P?.style), h), {
19093
19093
  zIndex: Oe
19094
19094
  }),
@@ -19761,12 +19761,12 @@ const _g = (e) => {
19761
19761
  type: i,
19762
19762
  danger: a,
19763
19763
  icon: A
19764
- }), [ie, fe] = O([ce, re]);
19764
+ }), [ie, ve] = O([ce, re]);
19765
19765
  return /* @__PURE__ */ v.createElement(gc.Compact, Object.assign({
19766
19766
  className: Y,
19767
19767
  size: Q,
19768
19768
  block: !0
19769
- }, V), ie, /* @__PURE__ */ v.createElement(di, Object.assign({}, H), fe));
19769
+ }, V), ie, /* @__PURE__ */ v.createElement(di, Object.assign({}, H), ve));
19770
19770
  };
19771
19771
  _g.__ANT_BUTTON = !0;
19772
19772
  const em = di;
@@ -19814,7 +19814,7 @@ var Uw = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
19814
19814
  J.preventDefault(), J.stopPropagation(), C.onNodeDragEnter(J, t);
19815
19815
  }, ie = function(J) {
19816
19816
  J.preventDefault(), J.stopPropagation(), C.onNodeDragOver(J, t);
19817
- }, fe = function(J) {
19817
+ }, ve = function(J) {
19818
19818
  J.stopPropagation(), C.onNodeDragLeave(J, t);
19819
19819
  }, le = function(J) {
19820
19820
  J.stopPropagation(), D(!1), C.onNodeDragEnd(J, t);
@@ -19904,7 +19904,7 @@ var Uw = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
19904
19904
  }, [C.prefixCls, C.showIcon, t, C.icon, oe, C.titleRender, w, Le, H, Q, Z, $, q]), ge = Rv(A, {
19905
19905
  aria: !0,
19906
19906
  data: !0
19907
- }), j = tr(C.keyEntities, i) || {}, X = j.level, ee = h[h.length - 1], ve = !B && Y, Pe = C.draggingNodeKey === i, we = N !== void 0 ? {
19907
+ }), j = tr(C.keyEntities, i) || {}, X = j.level, ee = h[h.length - 1], fe = !B && Y, Pe = C.draggingNodeKey === i, we = N !== void 0 ? {
19908
19908
  "aria-selected": !!N
19909
19909
  } : void 0;
19910
19910
  return /* @__PURE__ */ K.createElement("div", Me({
@@ -19913,11 +19913,11 @@ var Uw = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
19913
19913
  "aria-expanded": d ? void 0 : g,
19914
19914
  className: se(a, "".concat(C.prefixCls, "-treenode"), (o = {}, R(R(R(R(R(R(R(R(R(R(o, "".concat(C.prefixCls, "-treenode-disabled"), B), "".concat(C.prefixCls, "-treenode-switcher-").concat(g ? "open" : "close"), !d), "".concat(C.prefixCls, "-treenode-checkbox-checked"), m), "".concat(C.prefixCls, "-treenode-checkbox-indeterminate"), b), "".concat(C.prefixCls, "-treenode-selected"), p), "".concat(C.prefixCls, "-treenode-loading"), y), "".concat(C.prefixCls, "-treenode-active"), S), "".concat(C.prefixCls, "-treenode-leaf-last"), ee), "".concat(C.prefixCls, "-treenode-draggable"), Y), "dragging", Pe), R(R(R(R(R(R(R(o, "drop-target", C.dropTargetKey === i), "drop-container", C.dropContainerKey === i), "drag-over", !B && s), "drag-over-gap-top", !B && c), "drag-over-gap-bottom", !B && u), "filter-node", (n = C.filterTreeNode) === null || n === void 0 ? void 0 : n.call(C, Tt(t))), "".concat(C.prefixCls, "-treenode-leaf"), Oe))),
19915
19915
  style: l,
19916
- draggable: ve,
19917
- onDragStart: ve ? ce : void 0,
19916
+ draggable: fe,
19917
+ onDragStart: fe ? ce : void 0,
19918
19918
  onDragEnter: Y ? re : void 0,
19919
19919
  onDragOver: Y ? ie : void 0,
19920
- onDragLeave: Y ? fe : void 0,
19920
+ onDragLeave: Y ? ve : void 0,
19921
19921
  onDrop: Y ? ne : void 0,
19922
19922
  onDragEnd: Y ? le : void 0,
19923
19923
  onMouseMove: E
@@ -20237,7 +20237,7 @@ var im = /* @__PURE__ */ v.forwardRef(function(e, t) {
20237
20237
  }
20238
20238
  };
20239
20239
  });
20240
- var z = v.useState(o), k = G(z, 2), V = k[0], W = k[1], $ = v.useState(n), q = G($, 2), H = q[0], Q = q[1], Z = v.useState(n), Y = G(Z, 2), ce = Y[0], re = Y[1], ie = v.useState([]), fe = G(ie, 2), le = fe[0], ne = fe[1], he = v.useState(null), U = G(he, 2), Oe = U[0], Ie = U[1], ze = v.useRef(n);
20240
+ var z = v.useState(o), k = G(z, 2), V = k[0], W = k[1], $ = v.useState(n), q = G($, 2), H = q[0], Q = q[1], Z = v.useState(n), Y = G(Z, 2), ce = Y[0], re = Y[1], ie = v.useState([]), ve = G(ie, 2), le = ve[0], ne = ve[1], he = v.useState(null), U = G(he, 2), Oe = U[0], Ie = U[1], ze = v.useRef(n);
20241
20241
  ze.current = n;
20242
20242
  function ye() {
20243
20243
  var oe = ze.current;
@@ -20248,14 +20248,14 @@ var im = /* @__PURE__ */ v.forwardRef(function(e, t) {
20248
20248
  var oe = _w(V, o);
20249
20249
  if (oe.key !== null)
20250
20250
  if (oe.add) {
20251
- var be = H.findIndex(function(ve) {
20252
- var Pe = ve.key;
20251
+ var be = H.findIndex(function(fe) {
20252
+ var Pe = fe.key;
20253
20253
  return Pe === oe.key;
20254
20254
  }), Ae = Md(Id(H, n, oe.key), y, m, b), ge = H.slice();
20255
20255
  ge.splice(be + 1, 0, Rd), re(ge), ne(Ae), Ie("show");
20256
20256
  } else {
20257
- var j = n.findIndex(function(ve) {
20258
- var Pe = ve.key;
20257
+ var j = n.findIndex(function(fe) {
20258
+ var Pe = fe.key;
20259
20259
  return Pe === oe.key;
20260
20260
  }), X = Md(Id(n, H, oe.key), y, m, b), ee = n.slice();
20261
20261
  ee.splice(j + 1, 0, Rd), re(ee), ne(X), Ie("hide");
@@ -20322,9 +20322,9 @@ var im = /* @__PURE__ */ v.forwardRef(function(e, t) {
20322
20322
  }) && ye();
20323
20323
  }
20324
20324
  }), function(oe) {
20325
- var be = oe.pos, Ae = Object.assign({}, (rm(oe.data), oe.data)), ge = oe.title, j = oe.key, X = oe.isStart, ee = oe.isEnd, ve = fi(j, be);
20325
+ var be = oe.pos, Ae = Object.assign({}, (rm(oe.data), oe.data)), ge = oe.title, j = oe.key, X = oe.isStart, ee = oe.isEnd, fe = fi(j, be);
20326
20326
  delete Ae.key, delete Ae.children;
20327
- var Pe = Lo(ve, Le);
20327
+ var Pe = Lo(fe, Le);
20328
20328
  return /* @__PURE__ */ v.createElement(nm, Me({}, Ae, Pe, {
20329
20329
  title: ge,
20330
20330
  active: !!w && j === w.key,
@@ -20838,7 +20838,7 @@ var nE = 10, pc = /* @__PURE__ */ (function(e) {
20838
20838
  }, {
20839
20839
  key: "render",
20840
20840
  value: function() {
20841
- var o = this.state, i = o.focused, a = o.flattenNodes, l = o.keyEntities, s = o.draggingNodeKey, c = o.activeKey, u = o.dropLevelOffset, d = o.dropContainerKey, f = o.dropTargetKey, h = o.dropPosition, g = o.dragOverNodeKey, p = o.indent, m = this.props, b = m.prefixCls, y = m.className, x = m.style, S = m.showLine, w = m.focusable, E = m.tabIndex, N = E === void 0 ? 0 : E, A = m.selectable, C = m.showIcon, O = m.icon, T = m.switcherIcon, I = m.draggable, P = m.checkable, M = m.checkStrictly, D = m.disabled, B = m.motion, z = m.loadData, k = m.filterTreeNode, V = m.height, W = m.itemHeight, $ = m.scrollWidth, q = m.virtual, H = m.titleRender, Q = m.dropIndicatorRender, Z = m.onContextMenu, Y = m.onScroll, ce = m.direction, re = m.rootClassName, ie = m.rootStyle, fe = Rv(this.props, {
20841
+ var o = this.state, i = o.focused, a = o.flattenNodes, l = o.keyEntities, s = o.draggingNodeKey, c = o.activeKey, u = o.dropLevelOffset, d = o.dropContainerKey, f = o.dropTargetKey, h = o.dropPosition, g = o.dragOverNodeKey, p = o.indent, m = this.props, b = m.prefixCls, y = m.className, x = m.style, S = m.showLine, w = m.focusable, E = m.tabIndex, N = E === void 0 ? 0 : E, A = m.selectable, C = m.showIcon, O = m.icon, T = m.switcherIcon, I = m.draggable, P = m.checkable, M = m.checkStrictly, D = m.disabled, B = m.motion, z = m.loadData, k = m.filterTreeNode, V = m.height, W = m.itemHeight, $ = m.scrollWidth, q = m.virtual, H = m.titleRender, Q = m.dropIndicatorRender, Z = m.onContextMenu, Y = m.onScroll, ce = m.direction, re = m.rootClassName, ie = m.rootStyle, ve = Rv(this.props, {
20842
20842
  aria: !0,
20843
20843
  data: !0
20844
20844
  }), le;
@@ -20915,7 +20915,7 @@ var nE = 10, pc = /* @__PURE__ */ (function(e) {
20915
20915
  onContextMenu: Z,
20916
20916
  onScroll: Y,
20917
20917
  scrollWidth: $
20918
- }, this.getTreeNodeRequiredProps(), fe))));
20918
+ }, this.getTreeNodeRequiredProps(), ve))));
20919
20919
  }
20920
20920
  }], [{
20921
20921
  key: "getDerivedStateFromProps",
@@ -22157,6 +22157,7 @@ const Sc = Ue.div.attrs({
22157
22157
  height: 100%;
22158
22158
  display: flex;
22159
22159
  flex-direction: column;
22160
+ min-height: 0;
22160
22161
  padding: ${({ theme: e }) => e?.space?.xviewerContainerPadding ?? e?.space?.padding ?? "0"};
22161
22162
  background: ${({ theme: e }) => e?.colors?.tableBackground ?? e?.colors?.appBackground ?? "transparent"};
22162
22163
  color: ${({ theme: e }) => e?.colors?.text ?? "#1D2129"};
@@ -22326,14 +22327,14 @@ const Sc = Ue.div.attrs({
22326
22327
  const X = j.toolbar.find((Pe) => Pe.type === "fuzzy_search");
22327
22328
  if (!X)
22328
22329
  return D;
22329
- const ee = X.searchKeys || ["name", "description"], ve = $.trim().toLowerCase();
22330
- return j.type === "card" ? D.filter((Pe) => ee.some((we) => typeof we == "string" ? (Pe[we] || "").toString().toLowerCase().includes(ve) : !1)) : j.type === "list" ? D.filter((Pe) => ee.some((we) => typeof we == "string" ? (Pe[we] || "").toString().toLowerCase().includes(ve) : !1)) : j.type === "table" ? D.map((we) => {
22330
+ const ee = X.searchKeys || ["name", "description"], fe = $.trim().toLowerCase();
22331
+ return j.type === "card" ? D.filter((Pe) => ee.some((we) => typeof we == "string" ? (Pe[we] || "").toString().toLowerCase().includes(fe) : !1)) : j.type === "list" ? D.filter((Pe) => ee.some((we) => typeof we == "string" ? (Pe[we] || "").toString().toLowerCase().includes(fe) : !1)) : j.type === "table" ? D.map((we) => {
22331
22332
  if (!we.data || !Array.isArray(we.data)) return null;
22332
- const te = we.data.some((Ce) => ee.some((de) => typeof de == "string" && de && Ce.columnId === de ? (Ce.value ?? "").toString().toLowerCase().includes(ve) : !1)), J = ee.some((Ce) => Array.isArray(Ce));
22333
+ const te = we.data.some((Ce) => ee.some((de) => typeof de == "string" && de && Ce.columnId === de ? (Ce.value ?? "").toString().toLowerCase().includes(fe) : !1)), J = ee.some((Ce) => Array.isArray(Ce));
22333
22334
  let Ve = !1, _ = we.children;
22334
22335
  if (J) {
22335
22336
  const Ce = ee.filter(Array.isArray).flat();
22336
- we.children && Array.isArray(we.children) && Ce.length > 0 && (Ve = we.children.some((de) => Array.isArray(de?.data) ? de.data.some((He) => Ce.includes(He.columnId) ? (He.value ?? "").toString().toLowerCase().includes(ve) : !1) : !1), Ve && (_ = we.children.filter((de) => Array.isArray(de?.data) ? de.data.some((He) => Ce.includes(He.columnId) ? (He.value ?? "").toString().toLowerCase().includes(ve) : !1) : !1)));
22337
+ we.children && Array.isArray(we.children) && Ce.length > 0 && (Ve = we.children.some((de) => Array.isArray(de?.data) ? de.data.some((He) => Ce.includes(He.columnId) ? (He.value ?? "").toString().toLowerCase().includes(fe) : !1) : !1), Ve && (_ = we.children.filter((de) => Array.isArray(de?.data) ? de.data.some((He) => Ce.includes(He.columnId) ? (He.value ?? "").toString().toLowerCase().includes(fe) : !1) : !1)));
22337
22338
  }
22338
22339
  return te || Ve ? te && !Ve ? { ...we, __autoExpand: !1 } : Ve ? { ...we, __autoExpand: !0, children: _ } : { ...we } : null;
22339
22340
  }).filter(Boolean) : D;
@@ -22360,7 +22361,7 @@ const Sc = Ue.div.attrs({
22360
22361
  }),
22361
22362
  z,
22362
22363
  V
22363
- ), ie = Se(void 0), fe = jt(() => ({
22364
+ ), ie = Se(void 0), ve = jt(() => ({
22364
22365
  ...re,
22365
22366
  isPending: (X) => z.has(X),
22366
22367
  isAdding: (X) => V.has(X),
@@ -22415,13 +22416,13 @@ const Sc = Ue.div.attrs({
22415
22416
  ta(
22416
22417
  p,
22417
22418
  () => ({
22418
- appFn: fe,
22419
+ appFn: ve,
22419
22420
  getActiveNode: () => M(S),
22420
22421
  getCurrentData: () => Y,
22421
22422
  setCurrentData: B,
22422
22423
  getCurrentStatus: () => l
22423
22424
  }),
22424
- [fe, S, Y, l]
22425
+ [ve, S, Y, l]
22425
22426
  );
22426
22427
  const le = Ge(
22427
22428
  (j) => {
@@ -22438,20 +22439,20 @@ const Sc = Ue.div.attrs({
22438
22439
  typeof X?.timeoutMs == "number" ? X.timeoutMs : 15e3,
22439
22440
  typeof X?.minDurationMs == "number" ? X.minDurationMs : 250
22440
22441
  ), j === "table:loading_finish" && P(), j === "_internal:subtable_animation_complete") {
22441
- const { rowId: ve, tableId: Pe } = X;
22442
- fe.removeSubTableRow(ve, Pe);
22442
+ const { rowId: fe, tableId: Pe } = X;
22443
+ ve.removeSubTableRow(fe, Pe);
22443
22444
  return;
22444
22445
  }
22445
22446
  if (j === "list_item_select" && X?.itemId != null) {
22446
- const { itemId: ve, selected: Pe } = X;
22447
+ const { itemId: fe, selected: Pe } = X;
22447
22448
  Q((we) => {
22448
- const te = we.includes(ve);
22449
- return Pe && !te ? [...we, ve] : !Pe && te ? we.filter((J) => J !== ve) : we;
22449
+ const te = we.includes(fe);
22450
+ return Pe && !te ? [...we, fe] : !Pe && te ? we.filter((J) => J !== fe) : we;
22450
22451
  });
22451
22452
  }
22452
- j.startsWith("form:"), i?.(j, X, fe);
22453
+ j.startsWith("form:"), i?.(j, X, ve);
22453
22454
  },
22454
- [i, fe, P, I, Q]
22455
+ [i, ve, P, I, Q]
22455
22456
  ), he = (j) => {
22456
22457
  const X = g?.activable_parentNode, ee = !!(j && j.children && (Array.isArray(j.children) ? j.children.length : Object.keys(j.children).length));
22457
22458
  !X && ee || j.type && (ce(j.id), ne("select", { id: j.id, type: j.type }));
@@ -22459,10 +22460,10 @@ const Sc = Ue.div.attrs({
22459
22460
  ne(j, X);
22460
22461
  }, Oe = (j, X) => {
22461
22462
  Q((ee) => {
22462
- let ve;
22463
- X ? ve = [...ee, j] : ve = ee.filter((we) => we !== j);
22464
- const Pe = Y.filter((we) => ve.includes(we.id));
22465
- return i?.("card_select", { selectedIds: ve, selectedItems: Pe }, fe), ve;
22463
+ let fe;
22464
+ X ? fe = [...ee, j] : fe = ee.filter((we) => we !== j);
22465
+ const Pe = Y.filter((we) => fe.includes(we.id));
22466
+ return i?.("card_select", { selectedIds: fe, selectedItems: Pe }, ve), fe;
22466
22467
  });
22467
22468
  }, Ie = (j) => {
22468
22469
  ne("card_delete", { id: j });
@@ -22473,8 +22474,8 @@ const Sc = Ue.div.attrs({
22473
22474
  (X) => X.filter((ee) => Array.isArray(j) ? !j.includes(ee.id) : ee.id !== j)
22474
22475
  ), Array.isArray(j) ? j.forEach(
22475
22476
  (X) => k((ee) => {
22476
- const ve = new Set(ee);
22477
- return ve.delete(X), ve;
22477
+ const fe = new Set(ee);
22478
+ return fe.delete(X), fe;
22478
22479
  })
22479
22480
  ) : k((X) => {
22480
22481
  const ee = new Set(X);
@@ -22510,13 +22511,13 @@ const Sc = Ue.div.attrs({
22510
22511
  {
22511
22512
  activeNode: j,
22512
22513
  styles: b,
22513
- appFn: fe,
22514
+ appFn: ve,
22514
22515
  onHeaderAction: (X, ee) => {
22515
22516
  ne(X, ee);
22516
22517
  }
22517
22518
  }
22518
22519
  ),
22519
- [b, fe, ne]
22520
+ [b, ve, ne]
22520
22521
  ), Ae = Ge(
22521
22522
  (j) => j?.type === "customized" && o && K.isValidElement(o) ? o : /* @__PURE__ */ F(
22522
22523
  uf,
@@ -22534,9 +22535,9 @@ const Sc = Ue.div.attrs({
22534
22535
  onRemoveCards: ze,
22535
22536
  onCardAddAnimationComplete: ke,
22536
22537
  onTableRowAnimationComplete: (X) => {
22537
- B((ee) => ee.filter((ve) => ve.id !== X)), k((ee) => {
22538
- const ve = new Set(ee);
22539
- return ve.delete(X), ve;
22538
+ B((ee) => ee.filter((fe) => fe.id !== X)), k((ee) => {
22539
+ const fe = new Set(ee);
22540
+ return fe.delete(X), fe;
22540
22541
  });
22541
22542
  },
22542
22543
  onTableRowAddAnimationComplete: Le,
@@ -22552,7 +22553,7 @@ const Sc = Ue.div.attrs({
22552
22553
  viewPageSize: j?.viewPageSize,
22553
22554
  paginationLocale: j?.paginationLocale,
22554
22555
  paginationMessages: j?.paginationMessages,
22555
- appFn: fe
22556
+ appFn: ve
22556
22557
  }
22557
22558
  ),
22558
22559
  [
@@ -22596,25 +22597,39 @@ const Sc = Ue.div.attrs({
22596
22597
  if (l.app === "error")
22597
22598
  return s?.AppError ? /* @__PURE__ */ F(s.AppError, {}) : /* @__PURE__ */ F(Em, {});
22598
22599
  if (t === null) {
22599
- const j = M(S), X = j?.toolbar && j.toolbar.length > 0, ee = ss(j);
22600
- return /* @__PURE__ */ xe(HE, { theme: y, ...g, children: [
22601
- /* @__PURE__ */ F("div", { style: { flexShrink: 0 }, children: oe(j) }),
22602
- /* @__PURE__ */ F("div", { style: { flexShrink: 0 }, children: be(j) }),
22603
- /* @__PURE__ */ F(
22604
- WE,
22605
- {
22606
- theme: y,
22607
- $hasToolbar: !!X,
22608
- $toolbarHeightPx: x,
22609
- $headerHeightPx: ee,
22610
- $contentPadding: h,
22611
- children: ge("container") || ge("content") || Ae(j)
22612
- }
22613
- )
22614
- ] });
22600
+ const j = M(S), X = j?.toolbar && j.toolbar.length > 0, ee = ss(j), fe = j?.type === "form";
22601
+ return /* @__PURE__ */ xe(
22602
+ HE,
22603
+ {
22604
+ theme: y,
22605
+ ...g,
22606
+ style: fe ? {
22607
+ height: "auto"
22608
+ } : void 0,
22609
+ children: [
22610
+ /* @__PURE__ */ F("div", { style: { flexShrink: 0 }, children: oe(j) }),
22611
+ /* @__PURE__ */ F("div", { style: { flexShrink: 0 }, children: be(j) }),
22612
+ /* @__PURE__ */ F(
22613
+ WE,
22614
+ {
22615
+ theme: y,
22616
+ $hasToolbar: !!X,
22617
+ $toolbarHeightPx: x,
22618
+ $headerHeightPx: ee,
22619
+ $contentPadding: h,
22620
+ style: fe ? {
22621
+ flex: "0 0 auto",
22622
+ overflow: "visible"
22623
+ } : void 0,
22624
+ children: ge("container") || ge("content") || Ae(j)
22625
+ }
22626
+ )
22627
+ ]
22628
+ }
22629
+ );
22615
22630
  }
22616
22631
  if (t === "tree") {
22617
- const j = xr(r, S), X = j?.toolbar && j.toolbar.length > 0, ee = ss(j), ve = () => {
22632
+ const j = xr(r, S), X = j?.toolbar && j.toolbar.length > 0, ee = ss(j), fe = () => {
22618
22633
  const Pe = d || wn.NAV;
22619
22634
  let we;
22620
22635
  switch (Pe) {
@@ -22647,7 +22662,7 @@ const Sc = Ue.div.attrs({
22647
22662
  qE,
22648
22663
  {
22649
22664
  theme: y,
22650
- $width: ve(),
22665
+ $width: fe(),
22651
22666
  $modelStyle: String(d || wn.NAV),
22652
22667
  className: `flex-1 xviewer-tree-content-area xviewer-tree-content-${d || "nav"}`,
22653
22668
  children: [