bkui-vue 2.0.2-beta.10 → 2.0.2-beta.12

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.esm.js CHANGED
@@ -618,24 +618,24 @@ function q9(e) {
618
618
  rootBoundary: c,
619
619
  altBoundary: h,
620
620
  padding: d
621
- }), B = M ? F ? Jt : It : F ? qt : Dt;
622
- T[H] > x[H] && (B = gi(B));
623
- var $ = gi(B), X = [];
624
- if (r && X.push(z[E] <= 0), l && X.push(z[B] <= 0, z[$] <= 0), X.every(function(K) {
621
+ }), V = M ? F ? Jt : It : F ? qt : Dt;
622
+ T[H] > x[H] && (V = gi(V));
623
+ var $ = gi(V), q = [];
624
+ if (r && q.push(z[E] <= 0), l && q.push(z[V] <= 0, z[$] <= 0), q.every(function(K) {
625
625
  return K;
626
626
  })) {
627
627
  L = O, _ = !1;
628
628
  break;
629
629
  }
630
- A.set(O, X);
630
+ A.set(O, q);
631
631
  }
632
632
  if (_)
633
633
  for (var W = v ? 3 : 1, Y = function(Z) {
634
634
  var ee = C.find(function(j) {
635
635
  var ne = A.get(j);
636
636
  if (ne)
637
- return ne.slice(0, Z).every(function(re) {
638
- return re;
637
+ return ne.slice(0, Z).every(function(ie) {
638
+ return ie;
639
639
  });
640
640
  });
641
641
  if (ee)
@@ -759,14 +759,14 @@ function im(e) {
759
759
  };
760
760
  if (x) {
761
761
  if (r) {
762
- var F, M = C === "y" ? Dt : It, H = C === "y" ? qt : Jt, z = C === "y" ? "height" : "width", B = x[C], $ = B + b[M], X = B - b[H], W = g ? -_[z] / 2 : 0, Y = S === ra ? A[z] : _[z], I = S === ra ? -_[z] : -A[z], R = t.elements.arrow, K = g && R ? Kc(R) : {
762
+ var F, M = C === "y" ? Dt : It, H = C === "y" ? qt : Jt, z = C === "y" ? "height" : "width", V = x[C], $ = V + b[M], q = V - b[H], W = g ? -_[z] / 2 : 0, Y = S === ra ? A[z] : _[z], I = S === ra ? -_[z] : -A[z], R = t.elements.arrow, K = g && R ? Kc(R) : {
763
763
  width: 0,
764
764
  height: 0
765
- }, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : j2(), ee = Z[M], j = Z[H], ne = Qa(0, A[z], K[z]), re = w ? A[z] / 2 - W - ne - ee - N.mainAxis : Y - ne - ee - N.mainAxis, ce = w ? -A[z] / 2 + W + ne + j + N.mainAxis : I + ne + j + N.mainAxis, ie = t.elements.arrow && Cr(t.elements.arrow), te = ie ? C === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, Q = (F = O == null ? void 0 : O[C]) != null ? F : 0, J = B + re - Q - te, ue = B + ce - Q, be = Qa(g ? $i($, J) : $, B, g ? Os(X, ue) : X);
766
- x[C] = be, E[C] = be - B;
765
+ }, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : j2(), ee = Z[M], j = Z[H], ne = Qa(0, A[z], K[z]), ie = w ? A[z] / 2 - W - ne - ee - N.mainAxis : Y - ne - ee - N.mainAxis, ce = w ? -A[z] / 2 + W + ne + j + N.mainAxis : I + ne + j + N.mainAxis, le = t.elements.arrow && Cr(t.elements.arrow), te = le ? C === "y" ? le.clientTop || 0 : le.clientLeft || 0 : 0, Q = (F = O == null ? void 0 : O[C]) != null ? F : 0, J = V + ie - Q - te, ue = V + ce - Q, be = Qa(g ? $i($, J) : $, V, g ? Os(q, ue) : q);
766
+ x[C] = be, E[C] = be - V;
767
767
  }
768
768
  if (l) {
769
- var ae, G = C === "x" ? Dt : It, q = C === "x" ? qt : Jt, D = x[T], V = T === "y" ? "height" : "width", oe = D + b[G], le = D - b[q], U = [Dt, It].indexOf(p) !== -1, se = (ae = O == null ? void 0 : O[T]) != null ? ae : 0, de = U ? oe : D - A[V] - _[V] - se + N.altAxis, we = U ? D + A[V] + _[V] - se - N.altAxis : le, _e = g && U ? A9(de, D, we) : Qa(g ? de : oe, D, g ? we : le);
769
+ var ae, G = C === "x" ? Dt : It, X = C === "x" ? qt : Jt, D = x[T], B = T === "y" ? "height" : "width", oe = D + b[G], re = D - b[X], U = [Dt, It].indexOf(p) !== -1, se = (ae = O == null ? void 0 : O[T]) != null ? ae : 0, de = U ? oe : D - A[B] - _[B] - se + N.altAxis, we = U ? D + A[B] + _[B] - se - N.altAxis : re, _e = g && U ? A9(de, D, we) : Qa(g ? de : oe, D, g ? we : re);
770
770
  x[T] = _e, E[T] = _e - D;
771
771
  }
772
772
  t.modifiersData[s] = E;
@@ -5088,14 +5088,14 @@ const vw = (e) => ({
5088
5088
  }, g = Uu(a), v = ju(g), y = await i.getDimensions(d), b = g === "y", p = b ? "top" : "left", S = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", C = r.reference[v] + r.reference[g] - h[g] - r.floating[v], T = h[g] - r.reference[g], x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
5089
5089
  let A = x ? x[w] : 0;
5090
5090
  (!A || !await (i.isElement == null ? void 0 : i.isElement(x))) && (A = l.floating[w] || r.floating[v]);
5091
- const _ = C / 2 - T / 2, L = A / 2 - y[v] / 2 - 1, N = zn(c[p], L), O = zn(c[S], L), E = N, F = A - y[v] - O, M = A / 2 - y[v] / 2 + _, H = ec(E, M, F), z = !o.arrow && Nn(a) != null && M !== H && r.reference[v] / 2 - (M < E ? N : O) - y[v] / 2 < 0, B = z ? M < E ? M - E : M - F : 0;
5091
+ const _ = C / 2 - T / 2, L = A / 2 - y[v] / 2 - 1, N = zn(c[p], L), O = zn(c[S], L), E = N, F = A - y[v] - O, M = A / 2 - y[v] / 2 + _, H = ec(E, M, F), z = !o.arrow && Nn(a) != null && M !== H && r.reference[v] / 2 - (M < E ? N : O) - y[v] / 2 < 0, V = z ? M < E ? M - E : M - F : 0;
5092
5092
  return {
5093
- [g]: h[g] + B,
5093
+ [g]: h[g] + V,
5094
5094
  data: {
5095
5095
  [g]: H,
5096
- centerOffset: M - H - B,
5096
+ centerOffset: M - H - V,
5097
5097
  ...z && {
5098
- alignmentOffset: B
5098
+ alignmentOffset: V
5099
5099
  }
5100
5100
  },
5101
5101
  reset: z
@@ -5226,7 +5226,7 @@ const yw = function(e) {
5226
5226
  switch (g) {
5227
5227
  case "bestFit": {
5228
5228
  var O;
5229
- const H = (O = _.map((z) => [z.placement, z.overflows.filter((B) => B > 0).reduce((B, $) => B + $, 0)]).sort((z, B) => z[1] - B[1])[0]) == null ? void 0 : O[0];
5229
+ const H = (O = _.map((z) => [z.placement, z.overflows.filter((V) => V > 0).reduce((V, $) => V + $, 0)]).sort((z, V) => z[1] - V[1])[0]) == null ? void 0 : O[0];
5230
5230
  H && (M = H);
5231
5231
  break;
5232
5232
  }
@@ -5337,13 +5337,13 @@ const xw = function(e) {
5337
5337
  return c.find((b) => o > b.left - g.left && o < b.right + g.right && d > b.top - g.top && d < b.bottom + g.bottom) || h;
5338
5338
  if (c.length >= 2) {
5339
5339
  if (Rr(n) === "y") {
5340
- const N = c[0], O = c[c.length - 1], E = rn(n) === "top", F = N.top, M = O.bottom, H = E ? N.left : O.left, z = E ? N.right : O.right, B = z - H, $ = M - F;
5340
+ const N = c[0], O = c[c.length - 1], E = rn(n) === "top", F = N.top, M = O.bottom, H = E ? N.left : O.left, z = E ? N.right : O.right, V = z - H, $ = M - F;
5341
5341
  return {
5342
5342
  top: F,
5343
5343
  bottom: M,
5344
5344
  left: H,
5345
5345
  right: z,
5346
- width: B,
5346
+ width: V,
5347
5347
  height: $,
5348
5348
  x: H,
5349
5349
  y: F
@@ -5973,28 +5973,28 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
5973
5973
  refRoot: r
5974
5974
  }) => {
5975
5975
  const i = P(!1), l = P(), o = () => {
5976
- var ne, re;
5976
+ var ne, ie;
5977
5977
  const j = y();
5978
- return (ne = document.fullscreenElement) != null && ne.shadowRoot ? document.fullscreenElement.shadowRoot.contains(j) : (re = document.fullscreenElement) == null ? void 0 : re.contains(j);
5978
+ return (ne = document.fullscreenElement) != null && ne.shadowRoot ? document.fullscreenElement.shadowRoot.contains(j) : (ie = document.fullscreenElement) == null ? void 0 : ie.contains(j);
5979
5979
  }, d = (j) => o() ? document.fullscreenElement.shadowRoot ? document.fullscreenElement.shadowRoot.querySelector(j) : document.fullscreenElement.querySelector(j) : document.body, f = ["dark", "light"], c = k(() => {
5980
5980
  var ce;
5981
5981
  const j = ((ce = e.theme) == null ? void 0 : ce.split(/\s+/)) ?? [];
5982
- j.sort((ie, te) => Number(f.includes(te)) - Number(f.includes(ie)));
5983
- const ne = j, re = j.filter((ie) => !f.includes(ie));
5982
+ j.sort((le, te) => Number(f.includes(te)) - Number(f.includes(le)));
5983
+ const ne = j, ie = j.filter((le) => !f.includes(le));
5984
5984
  return {
5985
5985
  systemThemes: ne,
5986
- customThemes: re
5986
+ customThemes: ie
5987
5987
  };
5988
5988
  }), h = () => e.autoVisibility, g = () => e.autoPlacement, v = () => {
5989
5989
  var Q, J, ue;
5990
- const j = y(), ne = S((Q = s.value) == null ? void 0 : Q.$el), re = e.arrow ? S((J = a.value) == null ? void 0 : J.$el) : null, ce = S((ue = r.value) == null ? void 0 : ue.$el), {
5991
- isElement: ie,
5990
+ const j = y(), ne = S((Q = s.value) == null ? void 0 : Q.$el), ie = e.arrow ? S((J = a.value) == null ? void 0 : J.$el) : null, ce = S((ue = r.value) == null ? void 0 : ue.$el), {
5991
+ isElement: le,
5992
5992
  content: te
5993
5993
  } = eh(e.content);
5994
- return ne && ie && !(ne != null && ne.contains(te)) && ne.append(te), {
5994
+ return ne && le && !(ne != null && ne.contains(te)) && ne.append(te), {
5995
5995
  elReference: j,
5996
5996
  elContent: ne,
5997
- elArrow: re,
5997
+ elArrow: ie,
5998
5998
  root: ce
5999
5999
  };
6000
6000
  }, y = () => {
@@ -6003,31 +6003,31 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6003
6003
  }, b = () => {
6004
6004
  const j = {};
6005
6005
  return Array.isArray(e.modifiers) && e.modifiers.forEach((ne) => {
6006
- var ce, ie, te, Q;
6007
- let re;
6006
+ var ce, le, te, Q;
6007
+ let ie;
6008
6008
  if (ne.name === "offset") {
6009
- if (typeof ((ce = ne.options) == null ? void 0 : ce.offset) == "number" && (re = (ie = ne.options) == null ? void 0 : ie.offset), Array.isArray((te = ne.options) == null ? void 0 : te.offset)) {
6009
+ if (typeof ((ce = ne.options) == null ? void 0 : ce.offset) == "number" && (ie = (le = ne.options) == null ? void 0 : le.offset), Array.isArray((te = ne.options) == null ? void 0 : te.offset)) {
6010
6010
  const [J, ue] = (Q = ne.options) == null ? void 0 : Q.offset;
6011
- re = {
6011
+ ie = {
6012
6012
  mainAxis: J,
6013
6013
  crossAxis: ue
6014
6014
  };
6015
6015
  }
6016
6016
  Object.assign(j, {
6017
- offset: re
6017
+ offset: ie
6018
6018
  });
6019
6019
  }
6020
6020
  }), j;
6021
6021
  }, p = (j, ne) => {
6022
- const re = b(), ce = [Tw(re.offset || ne.offset), Ww({
6022
+ const ie = b(), ce = [Tw(ie.offset || ne.offset), Ww({
6023
6023
  padding: ne.padding
6024
- })], ie = {
6024
+ })], le = {
6025
6025
  placement: ne.placement,
6026
6026
  middleware: ce
6027
6027
  };
6028
6028
  return ne.arrow && ce.push(Yw({
6029
6029
  element: j
6030
- })), g() && ce.push(Uw()), ce.unshift(Xw()), ce.push(Gw()), h() && ie.middleware.push(Kw()), ie;
6030
+ })), g() && ce.push(Uw()), ce.unshift(Xw()), ce.push(Gw()), h() && le.middleware.push(Kw()), le;
6031
6031
  }, S = (j) => {
6032
6032
  if (j instanceof HTMLElement)
6033
6033
  return j;
@@ -6048,26 +6048,26 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6048
6048
  const A = (j) => {
6049
6049
  const ne = window.devicePixelRatio || 1;
6050
6050
  return Math.round(j * ne) / ne || 0;
6051
- }, _ = (j, ne, re, ce) => {
6051
+ }, _ = (j, ne, ie, ce) => {
6052
6052
  var te;
6053
6053
  e.disableTransform ? Object.assign(j.style, {
6054
6054
  left: `${A(ne)}px`,
6055
- top: `${A(re)}px`
6055
+ top: `${A(ie)}px`
6056
6056
  }) : Object.assign(j.style, {
6057
6057
  left: "0",
6058
6058
  top: "0",
6059
- transform: `translate3d(${A(ne)}px,${A(re)}px,0)`
6059
+ transform: `translate3d(${A(ne)}px,${A(ie)}px,0)`
6060
6060
  });
6061
- const ie = h() ? (te = ce.hide) == null ? void 0 : te.referenceHidden : !1;
6061
+ const le = h() ? (te = ce.hide) == null ? void 0 : te.referenceHidden : !1;
6062
6062
  Object.assign(j.style, {
6063
- visibility: ie ? "hidden" : "visible"
6063
+ visibility: le ? "hidden" : "visible"
6064
6064
  });
6065
- }, L = (j, ne, re) => {
6065
+ }, L = (j, ne, ie) => {
6066
6066
  if (e.arrow) {
6067
6067
  const {
6068
6068
  x: ce,
6069
- y: ie
6070
- } = re.arrow ?? {};
6069
+ y: le
6070
+ } = ie.arrow ?? {};
6071
6071
  j.setAttribute("data-arrow", ne);
6072
6072
  const te = {
6073
6073
  left: "",
@@ -6084,7 +6084,7 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6084
6084
  }[ne];
6085
6085
  Object.assign(j.style, {
6086
6086
  left: ce !== null ? `${ce}px` : "",
6087
- top: ie !== null ? `${ie}px` : "",
6087
+ top: le !== null ? `${le}px` : "",
6088
6088
  [Q]: "-4px"
6089
6089
  });
6090
6090
  }
@@ -6096,27 +6096,27 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6096
6096
  x = jw(j, ne, () => {
6097
6097
  i.value && O(null, e);
6098
6098
  });
6099
- }, O = (j = null, ne = {}, re) => {
6099
+ }, O = (j = null, ne = {}, ie) => {
6100
6100
  const {
6101
6101
  elReference: ce,
6102
- elContent: ie,
6102
+ elContent: le,
6103
6103
  elArrow: te
6104
6104
  } = v(), Q = j || ce;
6105
- if (!Q || !ie) return;
6105
+ if (!Q || !le) return;
6106
6106
  const J = p(te, ne);
6107
- qw(Q, ie, J).then(({
6107
+ qw(Q, le, J).then(({
6108
6108
  x: ue,
6109
6109
  y: be,
6110
6110
  placement: ae,
6111
6111
  middlewareData: G
6112
6112
  }) => {
6113
- const q = ie.className;
6114
- ie.className = `${q.replace(T, "")} ${T}`.replace(/\s+/gm, " ").replace(/^\s+|\s+$/g, ""), Object.keys(C).forEach((oe) => {
6115
- ie.setAttribute(oe, C[oe]);
6113
+ const X = le.className;
6114
+ le.className = `${X.replace(T, "")} ${T}`.replace(/\s+/gm, " ").replace(/^\s+|\s+$/g, ""), Object.keys(C).forEach((oe) => {
6115
+ le.setAttribute(oe, C[oe]);
6116
6116
  });
6117
6117
  const D = ae.split("-")[0];
6118
- let V = D;
6119
- ["left", "right", "top", "bottom"].includes(D) || (V = "top"), _(ie, ue, be, G), L(te, V, G), typeof re == "function" && re();
6118
+ let B = D;
6119
+ ["left", "right", "top", "bottom"].includes(D) || (B = "top"), _(le, ue, be, G), L(te, B, G), typeof ie == "function" && ie();
6120
6120
  });
6121
6121
  };
6122
6122
  let E, F;
@@ -6130,7 +6130,7 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6130
6130
  E = setTimeout(() => {
6131
6131
  F && clearTimeout(F), i.value = !1;
6132
6132
  }, j);
6133
- }, B = () => {
6133
+ }, V = () => {
6134
6134
  var ne;
6135
6135
  const j = S((ne = s.value) == null ? void 0 : ne.$el);
6136
6136
  j.style.setProperty("display", "block"), j.style.setProperty("z-index", `${e.zIndex ? e.zIndex : Vn.getPopperIndex()}`), O(), t.emit(yn.CONTENT_AfterShow, {
@@ -6141,7 +6141,7 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6141
6141
  S((ne = s.value) == null ? void 0 : ne.$el).style.setProperty("display", "none"), t.emit(yn.CONTENT_AfterHidden, {
6142
6142
  isShow: !1
6143
6143
  });
6144
- }, X = () => {
6144
+ }, q = () => {
6145
6145
  i.value ? z() : H();
6146
6146
  }, W = (j) => {
6147
6147
  if (e.trigger !== "hover")
@@ -6172,13 +6172,13 @@ const E0 = /* @__PURE__ */ pt(vC), $o = {}, tc = {}, nc = (e) => document.queryS
6172
6172
  return fe(() => e.isShow, (j) => {
6173
6173
  i.value = j;
6174
6174
  }), fe(i, (j) => {
6175
- j ? B() : $();
6175
+ j ? V() : $();
6176
6176
  }), {
6177
6177
  showPopover: H,
6178
6178
  hidePopover: z,
6179
6179
  resolveTriggerEvents: K,
6180
6180
  updatePopover: O,
6181
- triggerPopover: X,
6181
+ triggerPopover: q,
6182
6182
  resolvePopElements: v,
6183
6183
  isElementFullScreen: o,
6184
6184
  resolveTargetElement: S,
@@ -6263,28 +6263,28 @@ const wC = (e, t = "#") => {
6263
6263
  if (Array.isArray(ne))
6264
6264
  E(ee, ne);
6265
6265
  else {
6266
- const { content: re, reference: ce } = ne;
6267
- E(ee, ce), E(j, re);
6266
+ const { content: ie, reference: ce } = ne;
6267
+ E(ee, ce), E(j, ie);
6268
6268
  }
6269
6269
  });
6270
6270
  }, E = (ee, j) => {
6271
- j.forEach(([ne, re]) => {
6272
- ne && typeof re == "function" && ee.addEventListener(ne, re);
6271
+ j.forEach(([ne, ie]) => {
6272
+ ne && typeof ie == "function" && ee.addEventListener(ne, ie);
6273
6273
  });
6274
6274
  }, F = () => {
6275
6275
  if (i != null && i.length) {
6276
6276
  const { elReference: ee, elContent: j } = p();
6277
6277
  ee && i.forEach((ne) => {
6278
6278
  if (Array.isArray(ne))
6279
- ne.forEach(([re, ce]) => {
6280
- re && typeof ce == "function" && ee.removeEventListener(re, ce);
6279
+ ne.forEach(([ie, ce]) => {
6280
+ ie && typeof ce == "function" && ee.removeEventListener(ie, ce);
6281
6281
  });
6282
6282
  else {
6283
- const { content: re, reference: ce } = ne;
6284
- re.forEach(([ie, te]) => {
6285
- ie && typeof te == "function" && j && j.removeEventListener(ie, te);
6286
- }), ce.forEach(([ie, te]) => {
6287
- ie && typeof te == "function" && ee.removeEventListener(ie, te);
6283
+ const { content: ie, reference: ce } = ne;
6284
+ ie.forEach(([le, te]) => {
6285
+ le && typeof te == "function" && j && j.removeEventListener(le, te);
6286
+ }), ce.forEach(([le, te]) => {
6287
+ le && typeof te == "function" && ee.removeEventListener(le, te);
6288
6288
  });
6289
6289
  }
6290
6290
  }), i = null;
@@ -6293,11 +6293,11 @@ const wC = (e, t = "#") => {
6293
6293
  const { elReference: ee, root: j } = p();
6294
6294
  if (o.value) {
6295
6295
  const { parentNode: ne } = ee || j || {};
6296
- X.value = (f == null ? void 0 : f.value) ?? M(ne);
6296
+ q.value = (f == null ? void 0 : f.value) ?? M(ne);
6297
6297
  return;
6298
6298
  }
6299
- X.value = z(j || ee);
6300
- }, { getPrefixId: z } = wC(e, "#"), B = () => {
6299
+ q.value = z(j || ee);
6300
+ }, { getPrefixId: z } = wC(e, "#"), V = () => {
6301
6301
  var ee;
6302
6302
  (ee = f == null ? void 0 : f.value) == null || ee.setAttribute("data-fllsrn-id", d);
6303
6303
  }, $ = () => {
@@ -6308,10 +6308,10 @@ const wC = (e, t = "#") => {
6308
6308
  ne == null || ne.removeAttribute("data-fllsrn-id");
6309
6309
  }
6310
6310
  );
6311
- }, X = P(), W = () => {
6311
+ }, q = P(), W = () => {
6312
6312
  F();
6313
6313
  }, Y = (ee) => {
6314
- f.value = ee, w(ee), o.value = S(), B();
6314
+ f.value = ee, w(ee), o.value = S(), V();
6315
6315
  }, I = (ee) => {
6316
6316
  document.fullscreenElement || $(), Y(ee.target), H(), v(null, e);
6317
6317
  };
@@ -6331,8 +6331,8 @@ const wC = (e, t = "#") => {
6331
6331
  handleClickOutside: (ee, j = !1) => {
6332
6332
  const ne = () => {
6333
6333
  t.emit(yn.CLICK_OUTSIDE, { isShow: c.value, event: ee });
6334
- const re = e.disableOutsideClick || e.always || e.disabled || e.trigger === "manual";
6335
- !e.forceClickoutside && re || c.value && L();
6334
+ const ie = e.disableOutsideClick || e.always || e.disabled || e.trigger === "manual";
6335
+ !e.forceClickoutside && ie || c.value && L();
6336
6336
  };
6337
6337
  if (j)
6338
6338
  setTimeout(() => {
@@ -6356,7 +6356,7 @@ const wC = (e, t = "#") => {
6356
6356
  hideFn: L,
6357
6357
  stopHide: x,
6358
6358
  isFullscreen: o,
6359
- boundary: X,
6359
+ boundary: q,
6360
6360
  localIsShow: c,
6361
6361
  uniqKey: l
6362
6362
  };
@@ -7153,6 +7153,10 @@ const GC = {
7153
7153
  withValidate: m.bool.def(!0),
7154
7154
  overMaxLengthLimit: m.bool.def(!1),
7155
7155
  showOverflowTooltips: m.bool.def(!0),
7156
+ tooltipsOptions: {
7157
+ type: Object,
7158
+ default: () => ({})
7159
+ },
7156
7160
  resize: m.bool.def(!0),
7157
7161
  autosize: m.oneOfType([Boolean, Object]).def(!1),
7158
7162
  stopPropagation: m.bool.def(!0)
@@ -7216,11 +7220,11 @@ const YC = {
7216
7220
  onClick: be
7217
7221
  }, null)
7218
7222
  }, w = k(() => {
7219
- const q = S[e.type];
7223
+ const X = S[e.type];
7220
7224
  return x.value ? u(Ea, {
7221
7225
  class: p,
7222
7226
  onClick: be
7223
- }, null) : q ? u(q, {
7227
+ }, null) : X ? u(X, {
7224
7228
  class: p
7225
7229
  }, null) : null;
7226
7230
  }), C = k(() => e.type === "number"), T = k(() => Math.floor(e.maxlength ?? e.maxcharacter ?? 0)), x = P(!1), A = k(() => Ae({
@@ -7229,40 +7233,43 @@ const YC = {
7229
7233
  }, p)), _ = k(() => Ae({
7230
7234
  [ue("max-length")]: !0,
7231
7235
  "is-over-limit": T.value - N.value < 0
7232
- })), L = (q) => typeof e.maxcharacter == "number" ? q.split("").reduce((D, V, oe) => (D.len += V.charCodeAt(0) > 255 ? 2 : 1, D.len > e.maxcharacter && D.pos === -1 && (D.pos = oe), D), {
7236
+ })), L = (X) => typeof e.maxcharacter == "number" ? X.split("").reduce((D, B, oe) => (D.len += B.charCodeAt(0) > 255 ? 2 : 1, D.len > e.maxcharacter && D.pos === -1 && (D.pos = oe), D), {
7233
7237
  len: 0,
7234
7238
  pos: -1
7235
7239
  }) : {
7236
- len: q.length,
7240
+ len: X.length,
7237
7241
  pos: -1
7238
7242
  }, N = k(() => {
7239
- const q = e.modelValue ?? "";
7240
- return L(q).len;
7243
+ const X = e.modelValue ?? "";
7244
+ return L(X).len;
7241
7245
  }), O = k(() => Ae({
7242
7246
  "is-disabled": e.disabled || e.modelValue >= e.max
7243
7247
  })), E = k(() => Ae({
7244
7248
  "is-disabled": e.disabled || e.modelValue <= e.min
7245
7249
  })), F = k(() => {
7246
- var q;
7250
+ var X;
7247
7251
  return M.value && T.value - N.value === 0 ? {
7248
- content: a.value.maxlengthLimitTips
7252
+ content: a.value.maxlengthLimitTips,
7253
+ ...e.tooltipsOptions || {}
7249
7254
  } : e.showOverflowTooltips && y.value && e.modelValue ? {
7250
- content: (q = e.modelValue) == null ? void 0 : q.toString(),
7251
- sameWidth: !0
7255
+ content: (X = e.modelValue) == null ? void 0 : X.toString(),
7256
+ sameWidth: !0,
7257
+ ...e.tooltipsOptions || {}
7252
7258
  } : {
7253
- disabled: !0
7259
+ disabled: !0,
7260
+ ...e.tooltipsOptions || {}
7254
7261
  };
7255
7262
  }), M = k(() => typeof e.maxlength == "number" || typeof e.maxcharacter == "number");
7256
7263
  fe(() => e.type, () => {
7257
7264
  Le(H);
7258
- }), fe(() => e.modelValue, (q) => {
7265
+ }), fe(() => e.modelValue, (X) => {
7259
7266
  var D;
7260
7267
  e.withValidate && ((D = s == null ? void 0 : s.validate) == null || D.call(s, "change")), g.value = {
7261
- value: q
7268
+ value: X
7262
7269
  }, Le(H);
7263
7270
  }), Re(() => {
7264
- var q, D;
7265
- Le(H), Object.prototype.hasOwnProperty.call(t.attrs, "autofocus") && ((D = (q = h.value) == null ? void 0 : q.focus) == null || D.call(q));
7271
+ var X, D;
7272
+ Le(H), Object.prototype.hasOwnProperty.call(t.attrs, "autofocus") && ((D = (X = h.value) == null ? void 0 : X.focus) == null || D.call(X));
7266
7273
  }), t.expose({
7267
7274
  focus() {
7268
7275
  h.value.focus();
@@ -7270,17 +7277,17 @@ const YC = {
7270
7277
  blur() {
7271
7278
  h.value.blur(), r.value = !1;
7272
7279
  },
7273
- clear: X
7280
+ clear: q
7274
7281
  });
7275
7282
  function H() {
7276
7283
  z(), $();
7277
7284
  }
7278
7285
  function z() {
7279
- var D, V, oe;
7280
- const q = ((D = h.value) == null ? void 0 : D.offsetParent) === null;
7281
- if (!(!l.value || q || e.resize))
7286
+ var D, B, oe;
7287
+ const X = ((D = h.value) == null ? void 0 : D.offsetParent) === null;
7288
+ if (!(!l.value || X || e.resize))
7282
7289
  if (e.autosize) {
7283
- const le = (V = e.autosize) == null ? void 0 : V.minRows, U = (oe = e.autosize) == null ? void 0 : oe.maxRows, se = P0(h.value, le, U);
7290
+ const re = (B = e.autosize) == null ? void 0 : B.minRows, U = (oe = e.autosize) == null ? void 0 : oe.maxRows, se = P0(h.value, re, U);
7284
7291
  b.value = {
7285
7292
  overflowY: "hidden",
7286
7293
  ...se
@@ -7292,80 +7299,80 @@ const YC = {
7292
7299
  minHeight: P0(h.value).minHeight
7293
7300
  };
7294
7301
  }
7295
- function B() {
7296
- var q, D;
7297
- return ((q = h.value) == null ? void 0 : q.scrollWidth) > ((D = h.value) == null ? void 0 : D.clientWidth) + 2;
7302
+ function V() {
7303
+ var X, D;
7304
+ return ((X = h.value) == null ? void 0 : X.scrollWidth) > ((D = h.value) == null ? void 0 : D.clientWidth) + 2;
7298
7305
  }
7299
7306
  function $() {
7300
7307
  setTimeout(() => {
7301
- y.value = B();
7308
+ y.value = V();
7302
7309
  });
7303
7310
  }
7304
- function X() {
7311
+ function q() {
7305
7312
  if (e.disabled) return;
7306
- const q = C.value ? e.min : "";
7307
- t.emit(Pe.UPDATE, q, null), t.emit(Pe.CHANGE, q, null), t.emit(Pe.CLEAR);
7313
+ const X = C.value ? e.min : "";
7314
+ t.emit(Pe.UPDATE, X, null), t.emit(Pe.CHANGE, X, null), t.emit(Pe.CLEAR);
7308
7315
  }
7309
- function W(q) {
7310
- r.value = !0, t.emit(Pe.FOCUS, q);
7316
+ function W(X) {
7317
+ r.value = !0, t.emit(Pe.FOCUS, X);
7311
7318
  }
7312
- function Y(q) {
7319
+ function Y(X) {
7313
7320
  var D;
7314
- r.value = !1, t.emit(Pe.BLUR, q), e.withValidate && ((D = s == null ? void 0 : s.validate) == null || D.call(s, "blur"));
7321
+ r.value = !1, t.emit(Pe.BLUR, X), e.withValidate && ((D = s == null ? void 0 : s.validate) == null || D.call(s, "blur"));
7315
7322
  }
7316
- function I(q) {
7323
+ function I(X) {
7317
7324
  return (D) => {
7318
7325
  if (e.stopPropagation && D.stopPropagation(), M.value && !e.overMaxLengthLimit) {
7319
- const V = L(D.target.value);
7320
- if (V.len >= T.value && (q === Pe.KEYDOWN || q === Pe.INPUT) && !i.value) {
7321
- const oe = V.pos > 0 ? D.target.value.slice(0, V.pos) : D.target.value;
7326
+ const B = L(D.target.value);
7327
+ if (B.len >= T.value && (X === Pe.KEYDOWN || X === Pe.INPUT) && !i.value) {
7328
+ const oe = B.pos > 0 ? D.target.value.slice(0, B.pos) : D.target.value;
7322
7329
  g.value = {
7323
7330
  value: oe
7324
7331
  }, t.emit(Pe.UPDATE, oe, D), t.emit(Pe.INPUT, oe, D);
7325
7332
  return;
7326
7333
  }
7327
7334
  }
7328
- if (q === Pe.KEYDOWN && (D.code === "Enter" || D.key === "Enter" || D.keyCode === 13) && t.emit(Pe.ENTER, C.value ? te(D.target.value, 0) : D.target.value, D), !(i.value && [Pe.INPUT, Pe.CHANGE, Pe.KEYDOWN].some((V) => q === V))) {
7329
- if (q === Pe.INPUT)
7335
+ if (X === Pe.KEYDOWN && (D.code === "Enter" || D.key === "Enter" || D.keyCode === 13) && t.emit(Pe.ENTER, C.value ? te(D.target.value, 0) : D.target.value, D), !(i.value && [Pe.INPUT, Pe.CHANGE, Pe.KEYDOWN].some((B) => X === B))) {
7336
+ if (X === Pe.INPUT)
7330
7337
  t.emit(Pe.UPDATE, D.target.value, D);
7331
- else if (q === Pe.CHANGE && C.value && D.target.value !== "") {
7332
- const V = te(D.target.value, 0);
7333
- t.emit(Pe.UPDATE, V, D), t.emit(q, V, D);
7338
+ else if (X === Pe.CHANGE && C.value && D.target.value !== "") {
7339
+ const B = te(D.target.value, 0);
7340
+ t.emit(Pe.UPDATE, B, D), t.emit(X, B, D);
7334
7341
  return;
7335
7342
  }
7336
- t.emit(q, D.target.value, D);
7343
+ t.emit(X, D.target.value, D);
7337
7344
  }
7338
7345
  };
7339
7346
  }
7340
7347
  const [R, K, Z, ee, j, ne] = [Pe.KEYUP, Pe.KEYDOWN, Pe.KEYPRESS, Pe.PASTE, Pe.CHANGE, Pe.INPUT].map(I);
7341
- function re() {
7348
+ function ie() {
7342
7349
  i.value = !0;
7343
7350
  }
7344
- function ce(q) {
7345
- i.value = !1, ne(q);
7351
+ function ce(X) {
7352
+ i.value = !1, ne(X);
7346
7353
  }
7347
- function ie(q) {
7348
- return typeof q == "number" && !Number.isNaN(q);
7354
+ function le(X) {
7355
+ return typeof X == "number" && !Number.isNaN(X);
7349
7356
  }
7350
- function te(q, D, V = !0) {
7351
- const oe = Number(D), le = ie(oe) ? oe : 1, U = Number.isInteger(e.precision) ? e.precision : 0, se = Number(q);
7357
+ function te(X, D, B = !0) {
7358
+ const oe = Number(D), re = le(oe) ? oe : 1, U = Number.isInteger(e.precision) ? e.precision : 0, se = Number(X);
7352
7359
  if (Number.isNaN(se))
7353
- return ie(e.min) ? e.min : 0;
7354
- let de = se + (V ? le : -1 * le);
7355
- return ie(e.max) && (de = Math.min(de, e.max)), ie(e.min) && (de = Math.max(de, e.min)), +de.toFixed(U);
7360
+ return le(e.min) ? e.min : 0;
7361
+ let de = se + (B ? re : -1 * re);
7362
+ return le(e.max) && (de = Math.min(de, e.max)), le(e.min) && (de = Math.max(de, e.min)), +de.toFixed(U);
7356
7363
  }
7357
- function Q(q) {
7364
+ function Q(X) {
7358
7365
  if (e.disabled) return;
7359
7366
  const D = te(e.modelValue, e.step);
7360
- t.emit(Pe.UPDATE, D, q), t.emit(Pe.CHANGE, D, q);
7367
+ t.emit(Pe.UPDATE, D, X), t.emit(Pe.CHANGE, D, X);
7361
7368
  }
7362
- function J(q) {
7369
+ function J(X) {
7363
7370
  if (e.disabled) return;
7364
7371
  const D = te(e.modelValue, e.step, !1);
7365
- t.emit(Pe.UPDATE, D, q), t.emit(Pe.CHANGE, D, q);
7372
+ t.emit(Pe.UPDATE, D, X), t.emit(Pe.CHANGE, D, X);
7366
7373
  }
7367
- function ue(q) {
7368
- return `${o.value}--${q}`;
7374
+ function ue(X) {
7375
+ return `${o.value}--${X}`;
7369
7376
  }
7370
7377
  function be() {
7371
7378
  x.value = !x.value;
@@ -7384,15 +7391,15 @@ const YC = {
7384
7391
  onKeypress: Z,
7385
7392
  onKeydown: K,
7386
7393
  onKeyup: R,
7387
- onCompositionstart: re,
7394
+ onCompositionstart: ie,
7388
7395
  onCompositionend: ce
7389
7396
  };
7390
7397
  return () => {
7391
- var q, D, V, oe;
7398
+ var X, D, B, oe;
7392
7399
  return Ne(u("div", {
7393
7400
  style: f,
7394
7401
  class: v.value
7395
- }, [((D = (q = t.slots) == null ? void 0 : q.prefix) == null ? void 0 : D.call(q)) ?? (e.prefix && u("div", {
7402
+ }, [((D = (X = t.slots) == null ? void 0 : X.prefix) == null ? void 0 : D.call(X)) ?? (e.prefix && u("div", {
7396
7403
  class: ue("prefix-area")
7397
7404
  }, [u("span", {
7398
7405
  class: ue("prefix-area--text")
@@ -7413,7 +7420,7 @@ const YC = {
7413
7420
  type: x.value && e.type === "password" ? "text" : e.type
7414
7421
  }, G, ae.value, g.value), null), e.clearable && !!e.modelValue && u("span", {
7415
7422
  class: A.value,
7416
- onClick: X
7423
+ onClick: q
7417
7424
  }, [u(Pt, null, null)]), w.value, M.value && (e.showWordLimit || l.value) && u("p", {
7418
7425
  class: _.value
7419
7426
  }, [e.overMaxLengthLimit ? T.value - N.value : u(Fe, null, [N.value, at(" / "), u("span", null, [T.value])])]), C.value && e.showControl && u("div", {
@@ -7424,7 +7431,7 @@ const YC = {
7424
7431
  }, null), u(fr, {
7425
7432
  class: E.value,
7426
7433
  onClick: J
7427
- }, null)]), ((oe = (V = t.slots) == null ? void 0 : V.suffix) == null ? void 0 : oe.call(V)) ?? (e.suffix && u("div", {
7434
+ }, null)]), ((oe = (B = t.slots) == null ? void 0 : B.suffix) == null ? void 0 : oe.call(B)) ?? (e.suffix && u("div", {
7428
7435
  class: ue("suffix-area")
7429
7436
  }, [u("span", {
7430
7437
  class: ue("suffix-area--text")
@@ -9233,11 +9240,11 @@ const ET = {
9233
9240
  scrollLeft: Z,
9234
9241
  pos: ee
9235
9242
  });
9236
- let ne = p.startIndex * e.groupItemCount, re = p.endIndex * e.groupItemCount;
9243
+ let ne = p.startIndex * e.groupItemCount, ie = p.endIndex * e.groupItemCount;
9237
9244
  const ce = L.value.length;
9238
- ce < re && (re = ce, typeof e.lineHeight == "function" ? ne = C().startIndex : (ne = re - Math.floor(a.value.offsetHeight / e.lineHeight), ne = ne < 0 ? 0 : ne));
9239
- const ie = L.value.slice(ne, re);
9240
- S.value = ie, W && t.emit("content-scroll", [W, p, ie]);
9245
+ ce < ie && (ie = ce, typeof e.lineHeight == "function" ? ne = C().startIndex : (ne = ie - Math.floor(a.value.offsetHeight / e.lineHeight), ne = ne < 0 ? 0 : ne));
9246
+ const le = L.value.slice(ne, ie);
9247
+ S.value = le, W && t.emit("content-scroll", [W, p, le]);
9241
9248
  };
9242
9249
  Re(() => {
9243
9250
  var W;
@@ -9245,7 +9252,7 @@ const ET = {
9245
9252
  o.value = new _T({
9246
9253
  delegateElement: a.value,
9247
9254
  scrollHeight: i.value,
9248
- onScollCallback: X
9255
+ onScollCallback: q
9249
9256
  }), h(o), v(l.value), b.executeThrottledRender.call(b, {
9250
9257
  offset: {
9251
9258
  x: 0,
@@ -9311,14 +9318,14 @@ const ET = {
9311
9318
  });
9312
9319
  }, {
9313
9320
  fixToTop: z
9314
- } = Lh(e, g), B = () => {
9321
+ } = Lh(e, g), V = () => {
9315
9322
  const W = a.value, Y = typeof e.height == "number" ? {
9316
9323
  scrollHeight: i.value,
9317
9324
  offsetHeight: e.height
9318
9325
  } : W;
9319
9326
  b == null || b.setDelegateWrapper(Y);
9320
9327
  }, $ = () => {
9321
- b == null || b.setBinding(c), x(), v(l.value), B(), y(), _(), Le(() => {
9328
+ b == null || b.setBinding(c), x(), v(l.value), V(), y(), _(), Le(() => {
9322
9329
  b == null || b.executeThrottledRender.call(b, {
9323
9330
  offset: {
9324
9331
  x: p.scrollLeft,
@@ -9341,7 +9348,7 @@ const ET = {
9341
9348
  refRoot: a,
9342
9349
  refContent: a
9343
9350
  });
9344
- const X = (W) => {
9351
+ const q = (W) => {
9345
9352
  b.executeThrottledRender.call(b, W);
9346
9353
  };
9347
9354
  return () => {
@@ -10631,8 +10638,13 @@ const VT = /* @__PURE__ */ me({
10631
10638
  default: "default"
10632
10639
  },
10633
10640
  // content显示和隐藏方式
10634
- disableScrollToSelectedOption: m.bool.def(!1)
10641
+ disableScrollToSelectedOption: m.bool.def(!1),
10635
10642
  // 是否禁用滚动到选中option的功能
10643
+ inputTooltipsOptions: {
10644
+ type: Object,
10645
+ default: () => ({})
10646
+ }
10647
+ // 透传Input组件的tooltips配置
10636
10648
  },
10637
10649
  emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur", "tag-remove", "select", "deselect", "search-change"],
10638
10650
  setup(e, {
@@ -10670,14 +10682,14 @@ const VT = /* @__PURE__ */ me({
10670
10682
  keepSearchValue: M,
10671
10683
  selectedStyle: H,
10672
10684
  filterOption: z,
10673
- searchWithPinyin: B,
10685
+ searchWithPinyin: V,
10674
10686
  highlightKeyword: $,
10675
- disableFocusBehavior: X,
10687
+ disableFocusBehavior: q,
10676
10688
  trigger: W,
10677
10689
  disableScrollToSelectedOption: Y
10678
- } = We(e), I = P(null), R = k(() => e.allOptionText), K = k(() => e.noDataText === void 0 ? n.value.noData : e.noDataText), Z = k(() => e.noMatchText === void 0 ? n.value.noMatchedData : e.noMatchText), ee = k(() => e.loadingText === void 0 ? n.value.loading : e.loadingText), j = k(() => e.placeholder === void 0 ? n.value.pleaseSelect : e.placeholder), ne = k(() => e.searchPlaceholder === void 0 ? n.value.enterKeywords : e.searchPlaceholder), re = k(() => e.selectAllText === void 0 ? n.value.selectAll : e.selectAllText), ce = ln(), ie = P(), te = P(), Q = P(), J = P(), ue = P(), be = P(), ae = P(), G = P(/* @__PURE__ */ new Map()), q = k(() => [...G.value.values()].sort((ve, Se) => ve.order - Se.order)), D = P(/* @__PURE__ */ new Map()), V = P([]), oe = k(() => V.value.reduce((ve, Se) => (ve[Se.value] = Se.label, ve), {
10690
+ } = We(e), I = P(null), R = k(() => e.allOptionText), K = k(() => e.noDataText === void 0 ? n.value.noData : e.noDataText), Z = k(() => e.noMatchText === void 0 ? n.value.noMatchedData : e.noMatchText), ee = k(() => e.loadingText === void 0 ? n.value.loading : e.loadingText), j = k(() => e.placeholder === void 0 ? n.value.pleaseSelect : e.placeholder), ne = k(() => e.searchPlaceholder === void 0 ? n.value.enterKeywords : e.searchPlaceholder), ie = k(() => e.selectAllText === void 0 ? n.value.selectAll : e.selectAllText), ce = ln(), le = P(), te = P(), Q = P(), J = P(), ue = P(), be = P(), ae = P(), G = P(/* @__PURE__ */ new Map()), X = k(() => [...G.value.values()].sort((ve, Se) => ve.order - Se.order)), D = P(/* @__PURE__ */ new Map()), B = P([]), oe = k(() => B.value.reduce((ve, Se) => (ve[Se.value] = Se.label, ve), {
10679
10691
  [`${C.value}`]: n.value.all
10680
- })), le = P(), U = k(() => x.value.reduce((ve, Se) => (ve[Se[_.value]] = Se[A.value], ve), {}));
10692
+ })), re = P(), U = k(() => x.value.reduce((ve, Se) => (ve[Se[_.value]] = Se[A.value], ve), {}));
10681
10693
  fe([G, x], () => {
10682
10694
  Yr();
10683
10695
  }), fe(a, () => {
@@ -10685,20 +10697,20 @@ const VT = /* @__PURE__ */ me({
10685
10697
  Yr(), e.withValidate && ((ve = ce == null ? void 0 : ce.validate) == null || ve.call(ce, "change"));
10686
10698
  }, {
10687
10699
  deep: !0
10688
- }), fe(V, () => {
10700
+ }), fe(B, () => {
10689
10701
  var ve;
10690
10702
  (ve = ae.value) == null || ve.updatePopover(null, Da.value);
10691
10703
  });
10692
- const se = k(() => ct.value ? x.value : x.value.filter((ve) => Od(Gr.value, String(ve[A.value]), ve))), de = k(() => r.value || d.value), we = k(() => V.value.map((ve) => {
10704
+ const se = k(() => ct.value ? x.value : x.value.filter((ve) => Od(Gr.value, String(ve[A.value]), ve))), de = k(() => r.value || d.value), we = k(() => B.value.map((ve) => {
10693
10705
  var Se, Oe;
10694
10706
  return ((Oe = (Se = G.value) == null ? void 0 : Se.get(ve.value)) == null ? void 0 : Oe.optionName) || U.value[ve.value] || ve.label;
10695
10707
  })), _e = k(() => {
10696
- const ve = q.value.reduce((Se, Oe) => (Oe.disabled || Se.push(Oe.optionID), Se), []);
10697
- return ve.length <= V.value.length && ve.every((Se) => V.value.some((Oe) => Oe.value === Se));
10708
+ const ve = X.value.reduce((Se, Oe) => (Oe.disabled || Se.push(Oe.optionID), Se), []);
10709
+ return ve.length <= B.value.length && ve.every((Se) => B.value.some((Oe) => Oe.value === Se));
10698
10710
  }), $e = k(() => {
10699
10711
  var ve;
10700
- return V.value.length === 1 && ((ve = V.value[0]) == null ? void 0 : ve.value) === C.value;
10701
- }), Ve = k(() => !!D.value.size), ze = k(() => !q.value.length), Me = k(() => q.value.length && q.value.every((ve) => !ve.visible)), ct = k(() => i.value && typeof o.value == "function"), mt = k(() => !!(z.value && typeof z.value == "function")), Yn = k(() => !(To.value || ze.value || Me.value) || v.value), Ge = k(() => l.value && S.value && (!Gr.value || !i.value)), Be = k(() => l.value && w.value), Ke = k(() => T.value - 12 - (Ge.value ? 32 : 0)), fs = P(32), Vs = k(() => p.value ? se.value.length * fs.value > Ke.value : !1), Br = k(() => Math.ceil(Ke.value / fs.value)), zr = k(() => To.value ? ee.value : Me.value || x.value.length && !se.value.length ? Z.value : ze.value ? K.value : ""), jr = k(() => N.value ? L.value && !hs.value : L.value), Da = k(() => Ol({
10712
+ return B.value.length === 1 && ((ve = B.value[0]) == null ? void 0 : ve.value) === C.value;
10713
+ }), Ve = k(() => !!D.value.size), ze = k(() => !X.value.length), Me = k(() => X.value.length && X.value.every((ve) => !ve.visible)), ct = k(() => i.value && typeof o.value == "function"), mt = k(() => !!(z.value && typeof z.value == "function")), Yn = k(() => !(To.value || ze.value || Me.value) || v.value), Ge = k(() => l.value && S.value && (!Gr.value || !i.value)), Be = k(() => l.value && w.value), Ke = k(() => T.value - 12 - (Ge.value ? 32 : 0)), fs = P(32), Vs = k(() => p.value ? se.value.length * fs.value > Ke.value : !1), Br = k(() => Math.ceil(Ke.value / fs.value)), zr = k(() => To.value ? ee.value : Me.value || x.value.length && !se.value.length ? Z.value : ze.value ? K.value : ""), jr = k(() => N.value ? L.value && !hs.value : L.value), Da = k(() => Ol({
10702
10714
  theme: `light ${s("select-popover")}`,
10703
10715
  trigger: "manual",
10704
10716
  width: Cd.value,
@@ -10751,26 +10763,26 @@ const VT = /* @__PURE__ */ me({
10751
10763
  });
10752
10764
  }, _d = () => {
10753
10765
  var Oe;
10754
- const ve = V.value[0], Se = G.value.get(ve == null ? void 0 : ve.value);
10755
- Se && !Se.disabled && Se.visible ? le.value = ve == null ? void 0 : ve.value : le.value = (Oe = q.value.find((Xe) => !Xe.disabled && Xe.visible)) == null ? void 0 : Oe.optionID;
10766
+ const ve = B.value[0], Se = G.value.get(ve == null ? void 0 : ve.value);
10767
+ Se && !Se.disabled && Se.visible ? re.value = ve == null ? void 0 : ve.value : re.value = (Oe = X.value.find((Xe) => !Xe.disabled && Xe.visible)) == null ? void 0 : Oe.optionID;
10756
10768
  }, Od = (ve, Se, Oe = {}) => {
10757
10769
  var Xe, kn;
10758
10770
  if (mt.value)
10759
10771
  return !!z.value(ve, {
10760
10772
  ...Oe
10761
10773
  });
10762
- if (B.value) {
10774
+ if (V.value) {
10763
10775
  const Dn = Si.parse(Se).map((ut) => ut.type === 2 ? ut.target.toLowerCase() : ut.target), Xr = Dn.reduce((ut, Oo) => ut + Oo[0], "");
10764
10776
  return Dn.join("").indexOf(ve) !== -1 || Xr.indexOf(ve) !== -1 || ((Xe = js(String(Se))) == null ? void 0 : Xe.includes(js(ve)));
10765
10777
  }
10766
10778
  return (kn = js(String(Se))) == null ? void 0 : kn.includes(js(ve));
10767
10779
  }, V6 = (ve) => {
10768
- i.value && (ve ? q.value.forEach((Se) => {
10780
+ i.value && (ve ? X.value.forEach((Se) => {
10769
10781
  Se.visible = Od(ve, String(Se.optionName), {
10770
10782
  ...Se.$props,
10771
10783
  ...Se.$attrs
10772
10784
  });
10773
- }) : q.value.forEach((Se) => {
10785
+ }) : X.value.forEach((Se) => {
10774
10786
  Se.visible = !0;
10775
10787
  }));
10776
10788
  }, {
@@ -10780,7 +10792,7 @@ const VT = /* @__PURE__ */ me({
10780
10792
  searchLoading: To
10781
10793
  } = QC(ct.value ? o.value : V6, _d);
10782
10794
  fe(Wr, () => {
10783
- ue.value.scrollTop = 0, le.value = "", t("search-change", Wr.value);
10795
+ ue.value.scrollTop = 0, re.value = "", t("search-change", Wr.value);
10784
10796
  });
10785
10797
  const dn = (ve) => {
10786
10798
  ve !== a.value && (t("update:modelValue", ve, a.value), t("change", ve, a.value), Yr());
@@ -10792,29 +10804,29 @@ const VT = /* @__PURE__ */ me({
10792
10804
  const Oe = String(ve);
10793
10805
  if (!g.value || !Oe) return;
10794
10806
  Se.stopPropagation(), Se.preventDefault();
10795
- const Xe = q.value.find((Dn) => js(String(Dn.optionName)) === js(Oe));
10807
+ const Xe = X.value.find((Dn) => js(String(Dn.optionName)) === js(Oe));
10796
10808
  if (i.value && Xe) {
10797
10809
  Kr(Xe), Bs.value = "";
10798
10810
  return;
10799
10811
  }
10800
- G.value.get(Oe) || (l.value ? (V.value.push({
10812
+ G.value.get(Oe) || (l.value ? (B.value.push({
10801
10813
  value: Oe,
10802
10814
  label: Oe
10803
- }), dn(V.value.map((Dn) => Dn.value))) : (V.value = [{
10815
+ }), dn(B.value.map((Dn) => Dn.value))) : (B.value = [{
10804
10816
  value: Oe,
10805
10817
  label: Oe
10806
10818
  }], dn(Oe), Ur()), Bs.value = "");
10807
10819
  }, Kr = (ve) => {
10808
10820
  if (de.value || !ve) return;
10809
- const Se = V.value.findIndex((Oe) => Oe.value === C.value);
10810
- if (Se > -1 && V.value.splice(Se, 1), l.value) {
10811
- const Oe = V.value.findIndex((Xe) => Xe.value === ve.optionID);
10812
- Oe > -1 ? (V.value.splice(Oe, 1), dn(V.value.map((Xe) => Xe.value)), t("deselect", ve.optionID)) : (V.value.push({
10821
+ const Se = B.value.findIndex((Oe) => Oe.value === C.value);
10822
+ if (Se > -1 && B.value.splice(Se, 1), l.value) {
10823
+ const Oe = B.value.findIndex((Xe) => Xe.value === ve.optionID);
10824
+ Oe > -1 ? (B.value.splice(Oe, 1), dn(B.value.map((Xe) => Xe.value)), t("deselect", ve.optionID)) : (B.value.push({
10813
10825
  value: ve.optionID,
10814
10826
  label: ve.optionName || ve.optionID
10815
- }), dn(V.value.map((Xe) => Xe.value)), t("select", ve.optionID), Nd()), zs();
10827
+ }), dn(B.value.map((Xe) => Xe.value)), t("select", ve.optionID), Nd()), zs();
10816
10828
  } else
10817
- V.value = [{
10829
+ B.value = [{
10818
10830
  label: ve.optionName || ve.optionID,
10819
10831
  value: ve.optionID
10820
10832
  }], i.value && g.value && (Bs.value = ""), dn(ve.optionID), t("select", ve.optionID), Ur(), So();
@@ -10822,41 +10834,41 @@ const VT = /* @__PURE__ */ me({
10822
10834
  var ve;
10823
10835
  ["tag"].includes(h.value) && Td.value && ((ve = be.value) == null || ve.updateModelValue(""));
10824
10836
  }, zs = () => {
10825
- X.value || setTimeout(() => {
10837
+ q.value || setTimeout(() => {
10826
10838
  var ve, Se, Oe;
10827
- !b.value && !g.value ? (ve = J.value) == null || ve.focus() : h.value === "tag" ? (Se = be.value) == null || Se.focus() : (Oe = ie.value) == null || Oe.focus();
10839
+ !b.value && !g.value ? (ve = J.value) == null || ve.focus() : h.value === "tag" ? (Se = be.value) == null || Se.focus() : (Oe = le.value) == null || Oe.focus();
10828
10840
  }, 0);
10829
10841
  }, U6 = () => {
10830
10842
  setTimeout(() => {
10831
10843
  var ve, Se;
10832
- h.value === "tag" ? (ve = be.value) == null || ve.blur() : (Se = ie.value) == null || Se.blur();
10844
+ h.value === "tag" ? (ve = be.value) == null || ve.blur() : (Se = le.value) == null || Se.blur();
10833
10845
  }, 0);
10834
10846
  }, W6 = (ve) => {
10835
- ve.stopPropagation(), V.value = [], Nd(), dn(l.value ? [] : ""), t("clear", l.value ? [] : ""), Ur();
10847
+ ve.stopPropagation(), B.value = [], Nd(), dn(l.value ? [] : ""), t("clear", l.value ? [] : ""), Ur();
10836
10848
  }, G6 = () => {
10837
- le.value = "";
10849
+ re.value = "";
10838
10850
  }, K6 = () => {
10839
10851
  var ve;
10840
10852
  if (_e.value)
10841
- V.value = [];
10853
+ B.value = [];
10842
10854
  else {
10843
10855
  const Se = /* @__PURE__ */ new Map();
10844
- q.value.forEach((Oe) => {
10856
+ X.value.forEach((Oe) => {
10845
10857
  Oe.disabled || Se.has(Oe.optionID) || Se.set(Oe.optionID, Oe.optionName || Oe.optionID);
10846
10858
  }), (ve = x.value) == null || ve.forEach((Oe) => {
10847
10859
  Oe.disabled || Se.has(Oe[_.value]) || Se.set(Oe[_.value], Oe[A.value]);
10848
- }), V.value = Array.from(Se.keys()).map((Oe) => ({
10860
+ }), B.value = Array.from(Se.keys()).map((Oe) => ({
10849
10861
  value: Oe,
10850
10862
  label: Se.get(Oe)
10851
10863
  }));
10852
10864
  }
10853
- dn(V.value.map((Se) => Se.value)), zs();
10865
+ dn(B.value.map((Se) => Se.value)), zs();
10854
10866
  }, Y6 = () => {
10855
10867
  if (!Be.value) return;
10856
- V.value.findIndex((Se) => Se.value === C.value) > -1 ? V.value = [] : V.value = [{
10868
+ B.value.findIndex((Se) => Se.value === C.value) > -1 ? B.value = [] : B.value = [{
10857
10869
  value: C.value,
10858
10870
  label: n.value.all
10859
- }], dn(V.value.map((Se) => Se.value)), zs();
10871
+ }], dn(B.value.map((Se) => Se.value)), zs();
10860
10872
  }, X6 = (ve) => {
10861
10873
  const {
10862
10874
  scrollTop: Se,
@@ -10866,8 +10878,8 @@ const VT = /* @__PURE__ */ me({
10866
10878
  Se + Oe === Xe && t("scroll-end");
10867
10879
  }, q6 = (ve) => {
10868
10880
  if (de.value) return;
10869
- const Se = V.value.findIndex((Oe) => Oe.value === ve);
10870
- Se > -1 && (V.value.splice(Se, 1), dn(V.value.map((Oe) => Oe.value)), t("tag-remove", ve));
10881
+ const Se = B.value.findIndex((Oe) => Oe.value === ve);
10882
+ Se > -1 && (B.value.splice(Se, 1), dn(B.value.map((Oe) => Oe.value)), t("tag-remove", ve));
10871
10883
  }, _o = (ve) => {
10872
10884
  var Oe, Xe;
10873
10885
  let Se = ve;
@@ -10880,33 +10892,33 @@ const VT = /* @__PURE__ */ me({
10880
10892
  }
10881
10893
  return ((Xe = (Oe = G.value) == null ? void 0 : Oe.get(Se)) == null ? void 0 : Xe.optionName) || U.value[Se] || oe.value[Se] || Se;
10882
10894
  }, Yr = () => {
10883
- Array.isArray(a.value) ? V.value = [...a.value.map((ve) => ({
10895
+ Array.isArray(a.value) ? B.value = [...a.value.map((ve) => ({
10884
10896
  value: ve,
10885
10897
  label: _o(ve)
10886
- }))] : a.value || E.value.includes(a.value) ? V.value = [{
10898
+ }))] : a.value || E.value.includes(a.value) ? B.value = [{
10887
10899
  value: a.value,
10888
10900
  label: _o(a.value)
10889
- }] : V.value = [];
10901
+ }] : B.value = [];
10890
10902
  }, J6 = (ve) => {
10891
- V.value = ve.map((Se) => ({
10903
+ B.value = ve.map((Se) => ({
10892
10904
  label: Se[A.value],
10893
10905
  value: Se[_.value]
10894
10906
  }));
10895
10907
  }, Ed = (ve) => {
10896
10908
  var Xe, kn, Dn, Xr;
10897
10909
  if (!hs.value || Vs.value) return;
10898
- const Se = q.value.filter((ut) => !ut.disabled && ut.visible), Oe = Se.findIndex((ut) => ut.optionID === le.value);
10910
+ const Se = X.value.filter((ut) => !ut.disabled && ut.visible), Oe = Se.findIndex((ut) => ut.optionID === re.value);
10899
10911
  switch (ve.code) {
10900
10912
  case "ArrowUp":
10901
10913
  case "ArrowDown": {
10902
10914
  ve.preventDefault();
10903
10915
  let ut = 0;
10904
- ve.code === "ArrowDown" ? ut = Oe >= Se.length - 1 ? 0 : Oe + 1 : ut = Oe === 0 ? Se.length - 1 : Oe - 1, ex((Xe = Se[ut]) == null ? void 0 : Xe.$el, Q.value) || (Dn = (kn = Se[ut]) == null ? void 0 : kn.$el) == null || Dn.scrollIntoView(), le.value = (Xr = Se[ut]) == null ? void 0 : Xr.optionID;
10916
+ ve.code === "ArrowDown" ? ut = Oe >= Se.length - 1 ? 0 : Oe + 1 : ut = Oe === 0 ? Se.length - 1 : Oe - 1, ex((Xe = Se[ut]) == null ? void 0 : Xe.$el, Q.value) || (Dn = (kn = Se[ut]) == null ? void 0 : kn.$el) == null || Dn.scrollIntoView(), re.value = (Xr = Se[ut]) == null ? void 0 : Xr.optionID;
10905
10917
  break;
10906
10918
  }
10907
10919
  case "Backspace": {
10908
- if (!l.value || !V.value.length || Bs.value.length || ve.target === J.value) return;
10909
- V.value.pop(), dn(V.value.map((ut) => ut.value));
10920
+ if (!l.value || !B.value.length || Bs.value.length || ve.target === J.value) return;
10921
+ B.value.pop(), dn(B.value.map((ut) => ut.value));
10910
10922
  break;
10911
10923
  }
10912
10924
  case "NumpadEnter":
@@ -10915,7 +10927,7 @@ const VT = /* @__PURE__ */ me({
10915
10927
  value: ut
10916
10928
  } = ve.target;
10917
10929
  if (g.value && ut || ve.target === J.value) return;
10918
- const Oo = G.value.get(le.value);
10930
+ const Oo = G.value.get(re.value);
10919
10931
  Kr(Oo);
10920
10932
  break;
10921
10933
  }
@@ -10931,8 +10943,8 @@ const VT = /* @__PURE__ */ me({
10931
10943
  };
10932
10944
  return lt(ao, ke({
10933
10945
  multiple: l,
10934
- selected: V,
10935
- activeOptionValue: le,
10946
+ selected: B,
10947
+ activeOptionValue: re,
10936
10948
  showSelectedIcon: y,
10937
10949
  selectedStyle: H,
10938
10950
  curSearchValue: Gr,
@@ -10949,15 +10961,15 @@ const VT = /* @__PURE__ */ me({
10949
10961
  });
10950
10962
  }), {
10951
10963
  t: n,
10952
- selected: V,
10964
+ selected: B,
10953
10965
  isInput: Td,
10954
- options: q,
10966
+ options: X,
10955
10967
  isDisabled: de,
10956
10968
  selectedLabel: we,
10957
10969
  isPopoverShow: hs,
10958
10970
  isHover: I6,
10959
10971
  popperWidth: Cd,
10960
- inputRef: ie,
10972
+ inputRef: le,
10961
10973
  triggerRef: te,
10962
10974
  contentRef: Q,
10963
10975
  searchRef: J,
@@ -11003,7 +11015,7 @@ const VT = /* @__PURE__ */ me({
11003
11015
  localLoadingText: ee,
11004
11016
  localPlaceholder: j,
11005
11017
  localSearchPlaceholder: ne,
11006
- localSelectAllText: re,
11018
+ localSelectAllText: ie,
11007
11019
  resolveClassName: s,
11008
11020
  handleCreateCustomOption: j6,
11009
11021
  handlePopoverShown: () => {
@@ -11113,6 +11125,7 @@ const VT = /* @__PURE__ */ me({
11113
11125
  selectReadonly: !0,
11114
11126
  size: this.size,
11115
11127
  stopPropagation: !1,
11128
+ tooltipsOptions: this.inputTooltipsOptions,
11116
11129
  type: "text",
11117
11130
  withValidate: !1,
11118
11131
  onEnter: this.handleCreateCustomOption,
@@ -11710,7 +11723,7 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11710
11723
  }, z = () => {
11711
11724
  var se;
11712
11725
  return Array.from(((se = v.value) == null ? void 0 : se.childNodes) || []).filter((de) => ![Node.TEXT_NODE, Node.COMMENT_NODE].includes(de.nodeType));
11713
- }, B = (U) => {
11726
+ }, V = (U) => {
11714
11727
  if (!e.disabled) {
11715
11728
  if (U != null && U.target) {
11716
11729
  const {
@@ -11720,7 +11733,7 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11720
11733
  }
11721
11734
  clearTimeout(S.value), C.value && N.value.length && (L.tagListCache = [...N.value], L.selectedTagListCache = [...L.selectedTagList], c.value = L.selectedTagListCache[0][e.saveKey], D(L.selectedTagList[0], 0), ee()), a.isEdit = !0, setTimeout(() => {
11722
11735
  var se;
11723
- (se = h.value) == null || se.focus(), e.trigger === "focus" && L.localList.length !== 0 && (X(), r.isShow ? M() : r.isShow = !0);
11736
+ (se = h.value) == null || se.focus(), e.trigger === "focus" && L.localList.length !== 0 && (q(), r.isShow ? M() : r.isShow = !0);
11724
11737
  }, 200);
11725
11738
  }
11726
11739
  }, $ = () => {
@@ -11743,11 +11756,11 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11743
11756
  }).filter((ze) => ze), C.value || (L.localList = L.localList.filter((ze) => !Ve[ze[U]]));
11744
11757
  }
11745
11758
  if ($e && c.value) {
11746
- X(c.value), o.curPageList.length && (r.isShow = !0);
11759
+ q(c.value), o.curPageList.length && (r.isShow = !0);
11747
11760
  return;
11748
11761
  }
11749
- _e === "focus" && X();
11750
- }, X = (U = "") => {
11762
+ _e === "focus" && q();
11763
+ }, q = (U = "") => {
11751
11764
  const {
11752
11765
  searchKey: se,
11753
11766
  filterCallback: de
@@ -11793,10 +11806,10 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11793
11806
  const {
11794
11807
  value: _e
11795
11808
  } = U != null && U.target ? U.target : c, $e = cf(_e);
11796
- $e ? (X(_e), Le(() => {
11809
+ $e ? (q(_e), Le(() => {
11797
11810
  const Ve = p.value.getBoundingClientRect().width || $e * gs;
11798
11811
  h.value.style.width = `${Ve}px`;
11799
- })) : de === "focus" && X();
11812
+ })) : de === "focus" && q();
11800
11813
  } else
11801
11814
  ne(), c.value = "", r.isShow = !1;
11802
11815
  a.isEdit = !0, a.focusItemIndex = we ? -1 : 0, t("input", c.value);
@@ -11810,25 +11823,25 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11810
11823
  if (R(), a.isEdit = !1, e.allowAutoMatch && U) {
11811
11824
  if (C.value) {
11812
11825
  const [we] = L.tagListCache;
11813
- U === we && L.selectedTagListCache.length && q(L.selectedTagListCache[0], "select");
11826
+ U === we && L.selectedTagListCache.length && X(L.selectedTagListCache[0], "select");
11814
11827
  }
11815
11828
  const de = o.curPageList.find((we) => Array.isArray(e.searchKey) ? e.searchKey.map(($e) => we[$e]).includes(U) : we[e.searchKey] === U);
11816
- de ? re(de, "select") : e.allowCreate && re(U, "custom");
11829
+ de ? ie(de, "select") : e.allowCreate && ie(U, "custom");
11817
11830
  }
11818
11831
  r.isShow = !1, t("blur", U, N.value), (se = n == null ? void 0 : n.validate) == null || se.call(n, "blur");
11819
11832
  }, 200);
11820
- }, re = (U, se, de) => {
11821
- de == null || de.stopPropagation(), !(!U || U.disabled) && (C.value && I(), q(U, se), ie("select"), R(), r.isShow = !1);
11833
+ }, ie = (U, se, de) => {
11834
+ de == null || de.stopPropagation(), !(!U || U.disabled) && (C.value && I(), X(U, se), le("select"), R(), r.isShow = !1);
11822
11835
  }, ce = (U, se, de) => {
11823
- de == null || de.stopPropagation(), D(U, se), R(), ie("remove", U), h.value.style.width = `${gs}px`;
11824
- }, ie = (U, se) => {
11836
+ de == null || de.stopPropagation(), D(U, se), R(), le("remove", U), h.value.style.width = `${gs}px`;
11837
+ }, le = (U, se) => {
11825
11838
  t(U, se), t("update:modelValue", N.value), t("change", N.value);
11826
11839
  }, te = (U) => {
11827
11840
  U.stopPropagation();
11828
11841
  const se = L.selectedTagList;
11829
11842
  L.selectedTagList = [];
11830
11843
  const de = se.filter((we) => E.value[we[e.saveKey]]);
11831
- (e.allowCreate && de.length !== 0 || !e.allowCreate) && !C.value && L.localList.push(...de), ie("removeAll");
11844
+ (e.allowCreate && de.length !== 0 || !e.allowCreate) && !C.value && L.localList.push(...de), le("removeAll");
11832
11845
  }, Q = () => {
11833
11846
  const U = {
11834
11847
  height: b.value.clientHeight,
@@ -11848,9 +11861,9 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11848
11861
  });
11849
11862
  }, J = (U, se) => {
11850
11863
  const de = z();
11851
- Z(y.value, de[U - 1]), L.selectedTagList.splice(U - 1, 1), B();
11864
+ Z(y.value, de[U - 1]), L.selectedTagList.splice(U - 1, 1), V();
11852
11865
  const we = se && E.value[se[e.saveKey]];
11853
- (e.allowCreate && we || !e.allowCreate) && !C.value && L.localList.push(se), h.value.style.width = `${gs}px`, ie("remove");
11866
+ (e.allowCreate && we || !e.allowCreate) && !C.value && L.localList.push(se), h.value.style.width = `${gs}px`, le("remove");
11854
11867
  }, ue = (U) => {
11855
11868
  if (o.isPageLoading || U.isComposing)
11856
11869
  return;
@@ -11871,19 +11884,19 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11871
11884
  if (a.isEdit = !0, !we) {
11872
11885
  if (_e < 1)
11873
11886
  return;
11874
- Z(y.value, $e[_e - 1]), B();
11887
+ Z(y.value, $e[_e - 1]), V();
11875
11888
  }
11876
11889
  break;
11877
11890
  case "ArrowRight":
11878
11891
  if (a.isEdit = !0, !we) {
11879
11892
  if (_e === $e.length - 1)
11880
11893
  return;
11881
- Z($e[_e + 1], y.value), B();
11894
+ Z($e[_e + 1], y.value), V();
11882
11895
  }
11883
11896
  break;
11884
11897
  case "Enter":
11885
11898
  case "NumpadEnter":
11886
- !e.allowCreate && r.isShow || e.allowCreate && a.focusItemIndex >= 0 && r.isShow ? re(o.curPageList[a.focusItemIndex], "select", U) : e.allowCreate && c.value.trim() && re(c.value, "custom", U), U.preventDefault();
11899
+ !e.allowCreate && r.isShow || e.allowCreate && a.focusItemIndex >= 0 && r.isShow ? ie(o.curPageList[a.focusItemIndex], "select", U) : e.allowCreate && c.value.trim() && ie(c.value, "custom", U), U.preventDefault();
11887
11900
  break;
11888
11901
  case "Backspace":
11889
11902
  _e !== 0 && !c.value && (se = L.selectedTagList[_e - 1], J(_e, se));
@@ -11924,12 +11937,12 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11924
11937
  [de]: Be,
11925
11938
  [we]: Be
11926
11939
  }) : L.localList.filter((Be) => Me.includes(Be[de]));
11927
- Me.length && (L.selectedTagList.splice(mt, 0, ...Ge), Z(y.value, ct[mt]), h.value.style.width = `${gs}px`, L.localList = L.localList.filter((Be) => !Me.includes(Be[de])), ie("select"), B());
11940
+ Me.length && (L.selectedTagList.splice(mt, 0, ...Ge), Z(y.value, ct[mt]), h.value.style.width = `${gs}px`, L.localList = L.localList.filter((Be) => !Me.includes(Be[de])), le("select"), V());
11928
11941
  }
11929
11942
  R();
11930
11943
  }, G = (U) => {
11931
11944
  e.disabled || (Z(y.value, U.currentTarget, !0), h.value.style.width = `${gs}px`, r.isShow && M());
11932
- }, q = (U, se) => {
11945
+ }, X = (U, se) => {
11933
11946
  if (L.selectedTagList.length >= e.maxData && e.maxData !== -1) return;
11934
11947
  const {
11935
11948
  separator: de,
@@ -11966,7 +11979,7 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11966
11979
  Z(Ke, y.value);
11967
11980
  }
11968
11981
  if (h.value.style.width = `${gs}px`, !C.value) {
11969
- e.allowNextFocus && B();
11982
+ e.allowNextFocus && V();
11970
11983
  const Ge = N.value.reduce((Be, Ke) => (Be[Ke] = 1, Be), {});
11971
11984
  L.localList = L.localList.filter((Be) => !Ge[Be[we]]);
11972
11985
  }
@@ -11975,9 +11988,9 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11975
11988
  L.selectedTagList.splice(se, 1);
11976
11989
  const de = E.value[U[e.saveKey]];
11977
11990
  (e.allowCreate && de || !e.allowCreate) && !C.value && L.localList.push(U);
11978
- }, V = k(() => e.collapseTags ? e.collapseTags && !a.isEdit : e.collapseTags), {
11991
+ }, B = k(() => e.collapseTags ? e.collapseTags && !a.isEdit : e.collapseTags), {
11979
11992
  overflowTagIndex: oe
11980
- } = Ph(g, V, N), le = k(() => L.selectedTagList.reduce((U, se, de) => (oe.value !== null && de >= oe.value && U.push(se[e.displayKey]), U), []));
11993
+ } = Ph(g, B, N), re = k(() => L.selectedTagList.reduce((U, se, de) => (oe.value !== null && de >= oe.value && U.push(se[e.displayKey]), U), []));
11981
11994
  return {
11982
11995
  popoverProps: r,
11983
11996
  ...We(a),
@@ -11997,14 +12010,14 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
11997
12010
  selectorListRef: b,
11998
12011
  triggerClass: _,
11999
12012
  overflowTagIndex: oe,
12000
- localCollapseTags: V,
12001
- collapseTooltip: le,
12002
- focusInputTrigger: B,
12013
+ localCollapseTags: B,
12014
+ collapseTooltip: re,
12015
+ focusInputTrigger: V,
12003
12016
  activeClass: W,
12004
12017
  handleInput: ee,
12005
12018
  handleFocus: j,
12006
12019
  handleBlur: ne,
12007
- handleTagSelected: re,
12020
+ handleTagSelected: ie,
12008
12021
  handleTagRemove: ce,
12009
12022
  handleClear: te,
12010
12023
  tagFocus: G,
@@ -12170,10 +12183,10 @@ const GO = /* @__PURE__ */ pt(WO), KO = /* @__PURE__ */ me({
12170
12183
  const E = a.getNodeById(O);
12171
12184
  if (E) {
12172
12185
  const F = (H) => {
12173
- var B;
12186
+ var V;
12174
12187
  if (!H || H != null && H.isDisabled) return;
12175
12188
  const z = H.level;
12176
- r.list = r.list.slice(0, z), i.value = i.value.slice(0, z - 1), (B = H.children) != null && B.length && r.list.length === z && (r.list.push(H.children), i.value.push(H));
12189
+ r.list = r.list.slice(0, z), i.value = i.value.slice(0, z - 1), (V = H.children) != null && V.length && r.list.length === z && (r.list.push(H.children), i.value.push(H));
12177
12190
  }, M = (H) => {
12178
12191
  H.parent && M(H.parent), F(H);
12179
12192
  };
@@ -12565,12 +12578,12 @@ const qO = /* @__PURE__ */ me({
12565
12578
  }, F = (ee) => {
12566
12579
  var ne;
12567
12580
  if (r) {
12568
- d.value.setNodesCheck(ee), c.value = d.value.getCheckedNodes().filter((re) => d.value.config.checkAnyLevel || re.isLeaf).map((re) => ({
12569
- text: N(re),
12581
+ d.value.setNodesCheck(ee), c.value = d.value.getCheckedNodes().filter((ie) => d.value.config.checkAnyLevel || ie.isLeaf).map((ie) => ({
12582
+ text: N(ie),
12570
12583
  // 获取节点的显示文本
12571
- key: re.id
12584
+ key: ie.id
12572
12585
  // 获取节点的唯一键
12573
- })), f.value = c.value.map((re) => re.text).join(", ");
12586
+ })), f.value = c.value.map((ie) => ie.text).join(", ");
12574
12587
  return;
12575
12588
  }
12576
12589
  e.checkAnyLevel || (ne = T == null ? void 0 : T.value) == null || ne.hide();
@@ -12580,35 +12593,35 @@ const qO = /* @__PURE__ */ me({
12580
12593
  ee.stopPropagation(), d.value.clearChecked(), v.value = "", F([]), t("update:modelValue", []), t("clear", JSON.parse(JSON.stringify(e.modelValue)));
12581
12594
  }, H = (ee, j, ne) => {
12582
12595
  ne.stopPropagation();
12583
- const re = JSON.parse(JSON.stringify(ee)), ce = re.splice(j, 1)[0];
12584
- p.value = !0, d.value.removeTag(ce), F(re), t("update:modelValue", d.value.getCheckedNodes().map((ie) => ie.path)), setTimeout(() => {
12596
+ const ie = JSON.parse(JSON.stringify(ee)), ce = ie.splice(j, 1)[0];
12597
+ p.value = !0, d.value.removeTag(ce), F(ie), t("update:modelValue", d.value.getCheckedNodes().map((le) => le.path)), setTimeout(() => {
12585
12598
  p.value = S.value;
12586
12599
  });
12587
12600
  }, z = (ee, j) => {
12588
12601
  var ne;
12589
12602
  F(ee), t("update:modelValue", ee), j !== void 0 && t("change", ee), (ne = A == null ? void 0 : A.value) == null || ne.focus(), b.value = !1;
12590
- }, B = () => {
12603
+ }, V = () => {
12591
12604
  d.value = new vf(e), F(e.modelValue);
12592
12605
  }, $ = (ee) => {
12593
12606
  w.value = ee.isShow, t("toggle", ee.isShow), p.value = ee.isShow, S.value = ee.isShow, Le(() => {
12594
12607
  var j, ne;
12595
12608
  ee && ((j = A.value) == null || j.focus()), ee.isShow && ((ne = g.value) == null || ne.scrollToSelected());
12596
12609
  }), ee.isShow && W(), ee.isShow || (b.value = !1);
12597
- }, X = Sr(200, (ee) => {
12610
+ }, q = Sr(200, (ee) => {
12598
12611
  const j = ee.target;
12599
12612
  if (v.value = j.value, v.value === "") {
12600
12613
  b.value = !1;
12601
12614
  return;
12602
12615
  }
12603
12616
  b.value = !0, b.value = !0;
12604
- const ne = e.filterMethod ? e.filterMethod : (ce) => (e.checkAnyLevel || ce.isLeaf) && ce.pathNames.join(e.separator).includes(v.value), re = d.value.getFlattedNodes().filter((ce) => ne(ce, v.value));
12605
- y.value = re, !(T != null && T.value.isShow) && (T == null || T.value.show());
12617
+ const ne = e.filterMethod ? e.filterMethod : (ce) => (e.checkAnyLevel || ce.isLeaf) && ce.pathNames.join(e.separator).includes(v.value), ie = d.value.getFlattedNodes().filter((ce) => ne(ce, v.value));
12618
+ y.value = ie, !(T != null && T.value.isShow) && (T == null || T.value.show());
12606
12619
  }), W = () => {
12607
12620
  t("focus");
12608
12621
  };
12609
12622
  fe(() => e.modelValue, z, {
12610
12623
  immediate: !0
12611
- }), fe(() => e.list, B, {
12624
+ }), fe(() => e.list, V, {
12612
12625
  deep: !0,
12613
12626
  immediate: !0
12614
12627
  });
@@ -12642,7 +12655,7 @@ const qO = /* @__PURE__ */ me({
12642
12655
  searchKey: v,
12643
12656
  suggestions: y,
12644
12657
  isFiltering: b,
12645
- searchInputHandler: X,
12658
+ searchInputHandler: q,
12646
12659
  focusEmitter: W,
12647
12660
  tagList: Y,
12648
12661
  isEdit: p,
@@ -13130,7 +13143,7 @@ function CN(e, t = {}) {
13130
13143
  function z() {
13131
13144
  s !== null && (!s.oldName && o !== null && (s.oldName = o), !s.newName && d !== null && (s.newName = d), s.newName && (n.push(s), s = null)), o = null, d = null;
13132
13145
  }
13133
- function B() {
13146
+ function V() {
13134
13147
  H(), z(), s = {
13135
13148
  blocks: [],
13136
13149
  deletedLines: 0,
@@ -13148,7 +13161,7 @@ function CN(e, t = {}) {
13148
13161
  header: Y
13149
13162
  };
13150
13163
  }
13151
- function X(Y) {
13164
+ function q(Y) {
13152
13165
  if (s === null || a === null || r === null || l === null)
13153
13166
  return;
13154
13167
  const I = {
@@ -13173,18 +13186,18 @@ function CN(e, t = {}) {
13173
13186
  let R;
13174
13187
  const K = M[I - 1], Z = M[I + 1], ee = M[I + 2];
13175
13188
  if (Y.startsWith("diff --git") || Y.startsWith("diff --combined")) {
13176
- if (B(), (R = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(Y)) && (o = Qn(R[1], void 0, t.dstPrefix), d = Qn(R[2], void 0, t.srcPrefix)), s === null)
13189
+ if (V(), (R = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(Y)) && (o = Qn(R[1], void 0, t.dstPrefix), d = Qn(R[2], void 0, t.srcPrefix)), s === null)
13177
13190
  throw new Error("Where is my file !!!");
13178
13191
  s.isGitDiff = !0;
13179
13192
  return;
13180
13193
  }
13181
13194
  if (Y.startsWith("Binary files") && !(s != null && s.isGitDiff)) {
13182
- if (B(), (R = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(Y)) && (o = Qn(R[1], void 0, t.dstPrefix), d = Qn(R[2], void 0, t.srcPrefix)), s === null)
13195
+ if (V(), (R = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(Y)) && (o = Qn(R[1], void 0, t.dstPrefix), d = Qn(R[2], void 0, t.srcPrefix)), s === null)
13183
13196
  throw new Error("Where is my file !!!");
13184
13197
  s.isBinary = !0;
13185
13198
  return;
13186
13199
  }
13187
- if ((!s || !s.isGitDiff && s && Y.startsWith(f) && Z.startsWith(c) && ee.startsWith(h)) && B(), s != null && s.isTooBig)
13200
+ if ((!s || !s.isGitDiff && s && Y.startsWith(f) && Z.startsWith(c) && ee.startsWith(h)) && V(), s != null && s.isTooBig)
13188
13201
  return;
13189
13202
  if (s && (typeof t.diffMaxChanges == "number" && s.addedLines + s.deletedLines > t.diffMaxChanges || typeof t.diffMaxLineLength == "number" && Y.length > t.diffMaxLineLength)) {
13190
13203
  s.isTooBig = !0, s.addedLines = 0, s.deletedLines = 0, s.blocks = [], a = null;
@@ -13207,7 +13220,7 @@ function CN(e, t = {}) {
13207
13220
  return;
13208
13221
  }
13209
13222
  if (a && (Y.startsWith("+") || Y.startsWith("-") || Y.startsWith(" "))) {
13210
- X(Y);
13223
+ q(Y);
13211
13224
  return;
13212
13225
  }
13213
13226
  const j = !W(Y, I);
@@ -13886,40 +13899,40 @@ var i1 = {};
13886
13899
  "&": 11,
13887
13900
  _t: 12
13888
13901
  }, t.scan = function(L, N) {
13889
- var O = L.length, E = 0, F = 1, M = 2, H = E, z = null, B = null, $ = "", X = [], W = !1, Y = 0, I = 0, R = "{{", K = "}}";
13902
+ var O = L.length, E = 0, F = 1, M = 2, H = E, z = null, V = null, $ = "", q = [], W = !1, Y = 0, I = 0, R = "{{", K = "}}";
13890
13903
  function Z() {
13891
- $.length > 0 && (X.push({ tag: "_t", text: new String($) }), $ = "");
13904
+ $.length > 0 && (q.push({ tag: "_t", text: new String($) }), $ = "");
13892
13905
  }
13893
13906
  function ee() {
13894
- for (var re = !0, ce = I; ce < X.length; ce++)
13895
- if (re = t.tags[X[ce].tag] < t.tags._v || X[ce].tag == "_t" && X[ce].text.match(n) === null, !re)
13907
+ for (var ie = !0, ce = I; ce < q.length; ce++)
13908
+ if (ie = t.tags[q[ce].tag] < t.tags._v || q[ce].tag == "_t" && q[ce].text.match(n) === null, !ie)
13896
13909
  return !1;
13897
- return re;
13910
+ return ie;
13898
13911
  }
13899
- function j(re, ce) {
13900
- if (Z(), re && ee())
13901
- for (var ie = I, te; ie < X.length; ie++)
13902
- X[ie].text && ((te = X[ie + 1]) && te.tag == ">" && (te.indent = X[ie].text.toString()), X.splice(ie, 1));
13903
- else ce || X.push({ tag: `
13912
+ function j(ie, ce) {
13913
+ if (Z(), ie && ee())
13914
+ for (var le = I, te; le < q.length; le++)
13915
+ q[le].text && ((te = q[le + 1]) && te.tag == ">" && (te.indent = q[le].text.toString()), q.splice(le, 1));
13916
+ else ce || q.push({ tag: `
13904
13917
  ` });
13905
- W = !1, I = X.length;
13918
+ W = !1, I = q.length;
13906
13919
  }
13907
- function ne(re, ce) {
13908
- var ie = "=" + K, te = re.indexOf(ie, ce), Q = f(
13909
- re.substring(re.indexOf("=", ce) + 1, te)
13920
+ function ne(ie, ce) {
13921
+ var le = "=" + K, te = ie.indexOf(le, ce), Q = f(
13922
+ ie.substring(ie.indexOf("=", ce) + 1, te)
13910
13923
  ).split(" ");
13911
- return R = Q[0], K = Q[Q.length - 1], te + ie.length - 1;
13924
+ return R = Q[0], K = Q[Q.length - 1], te + le.length - 1;
13912
13925
  }
13913
13926
  for (N && (N = N.split(" "), R = N[0], K = N[1]), Y = 0; Y < O; Y++)
13914
13927
  H == E ? c(R, L, Y) ? (--Y, Z(), H = F) : L.charAt(Y) == `
13915
- ` ? j(W) : $ += L.charAt(Y) : H == F ? (Y += R.length - 1, B = t.tags[L.charAt(Y + 1)], z = B ? L.charAt(Y + 1) : "_v", z == "=" ? (Y = ne(L, Y), H = E) : (B && Y++, H = M), W = Y) : c(K, L, Y) ? (X.push({
13928
+ ` ? j(W) : $ += L.charAt(Y) : H == F ? (Y += R.length - 1, V = t.tags[L.charAt(Y + 1)], z = V ? L.charAt(Y + 1) : "_v", z == "=" ? (Y = ne(L, Y), H = E) : (V && Y++, H = M), W = Y) : c(K, L, Y) ? (q.push({
13916
13929
  tag: z,
13917
13930
  n: f($),
13918
13931
  otag: R,
13919
13932
  ctag: K,
13920
13933
  i: z == "/" ? W - R.length : Y + K.length
13921
- }), $ = "", Y += K.length - 1, H = E, z == "{" && (K == "}}" ? Y++ : d(X[X.length - 1]))) : $ += L.charAt(Y);
13922
- return j(W, !0), X;
13934
+ }), $ = "", Y += K.length - 1, H = E, z == "{" && (K == "}}" ? Y++ : d(q[q.length - 1]))) : $ += L.charAt(Y);
13935
+ return j(W, !0), q;
13923
13936
  };
13924
13937
  function d(_) {
13925
13938
  _.n.substr(_.n.length - 1) === "}" && (_.n = _.n.substring(0, _.n.length - 1));
@@ -17390,8 +17403,8 @@ const $L = (e, ...t) => {
17390
17403
  hide: !1
17391
17404
  };
17392
17405
  for (let z = 0; z < 24; z += F) {
17393
- const B = JSON.parse(JSON.stringify(H));
17394
- B.text = z, B.focused = z === M, e.disabledHours.length && e.disabledHours.indexOf(z) > -1 && (B.disabled = !0, e.hideDisabledOptions && (B.hide = !0)), e.hours === z && (B.selected = !0), E.push(B);
17406
+ const V = JSON.parse(JSON.stringify(H));
17407
+ V.text = z, V.focused = z === M, e.disabledHours.length && e.disabledHours.indexOf(z) > -1 && (V.disabled = !0, e.hideDisabledOptions && (V.hide = !0)), e.hours === z && (V.selected = !0), E.push(V);
17395
17408
  }
17396
17409
  return E;
17397
17410
  }), r = k(() => {
@@ -17402,8 +17415,8 @@ const $L = (e, ...t) => {
17402
17415
  hide: !1
17403
17416
  };
17404
17417
  for (let z = 0; z < 60; z += F) {
17405
- const B = JSON.parse(JSON.stringify(H));
17406
- B.text = z, B.focused = z === M, e.disabledMinutes.length && e.disabledMinutes.indexOf(z) > -1 && (B.disabled = !0, e.hideDisabledOptions && (B.hide = !0)), e.minutes === z && (B.selected = !0), E.push(B);
17418
+ const V = JSON.parse(JSON.stringify(H));
17419
+ V.text = z, V.focused = z === M, e.disabledMinutes.length && e.disabledMinutes.indexOf(z) > -1 && (V.disabled = !0, e.hideDisabledOptions && (V.hide = !0)), e.minutes === z && (V.selected = !0), E.push(V);
17407
17420
  }
17408
17421
  return E;
17409
17422
  }), i = k(() => {
@@ -17414,8 +17427,8 @@ const $L = (e, ...t) => {
17414
17427
  hide: !1
17415
17428
  };
17416
17429
  for (let z = 0; z < 60; z += F) {
17417
- const B = JSON.parse(JSON.stringify(H));
17418
- B.text = z, B.focused = z === M, e.disabledSeconds.length && e.disabledSeconds.indexOf(z) > -1 && (B.disabled = !0, e.hideDisabledOptions && (B.hide = !0)), e.seconds === z && (B.selected = !0), E.push(B);
17430
+ const V = JSON.parse(JSON.stringify(H));
17431
+ V.text = z, V.focused = z === M, e.disabledSeconds.length && e.disabledSeconds.indexOf(z) > -1 && (V.disabled = !0, e.hideDisabledOptions && (V.hide = !0)), e.seconds === z && (V.selected = !0), E.push(V);
17419
17432
  }
17420
17433
  return E;
17421
17434
  }), l = k(() => ({
@@ -17431,7 +17444,7 @@ const $L = (e, ...t) => {
17431
17444
  Ff.forEach((M, H) => {
17432
17445
  if (E[H] === F[H] || typeof E[H] > "u")
17433
17446
  return;
17434
- const z = this[`${M}List`].findIndex((B) => B.text === E[H]);
17447
+ const z = this[`${M}List`].findIndex((V) => V.text === E[H]);
17435
17448
  T(M, z);
17436
17449
  });
17437
17450
  }), Re(() => {
@@ -17481,7 +17494,7 @@ const $L = (e, ...t) => {
17481
17494
  function S(E) {
17482
17495
  const F = o(E), M = Math.min(Math.round((F.scrollTop - (p(E) * 0.5 - 10) / b(E) + 3) / b(E)), E === "hours" ? 23 : 59);
17483
17496
  let H;
17484
- if (E === "hours" ? H = a : E === "minutes" ? H = r : H = i, H.value.find((B) => B.text === M).disabled)
17497
+ if (E === "hours" ? H = a : E === "minutes" ? H = r : H = i, H.value.find((V) => V.text === M).disabled)
17485
17498
  return !1;
17486
17499
  Le(() => {
17487
17500
  C({
@@ -17508,8 +17521,8 @@ const $L = (e, ...t) => {
17508
17521
  const M = AL(E), H = e[`disabled${M}`];
17509
17522
  let z = F;
17510
17523
  if (H.length && e.hideDisabledOptions) {
17511
- let B = 0;
17512
- H.forEach(($) => $ <= F ? B += 1 : ""), z -= B;
17524
+ let V = 0;
17525
+ H.forEach(($) => $ <= F ? V += 1 : ""), z -= V;
17513
17526
  }
17514
17527
  return z;
17515
17528
  }
@@ -17798,7 +17811,7 @@ const $L = (e, ...t) => {
17798
17811
  }, 500);
17799
17812
  }, c = (M) => {
17800
17813
  r.panelDate = M, r.pickerTable === "year-table" ? r.pickerTable = "month-table" : r.pickerTable = s(r.currentView);
17801
- }, h = (M, H = !1, z, B) => {
17814
+ }, h = (M, H = !1, z, V) => {
17802
17815
  let $ = M;
17803
17816
  e.selectionMode === "year" ? $ = new Date(M.getFullYear(), 0, 1) : e.selectionMode === "month" ? $ = new Date(r.panelDate.getFullYear(), M.getMonth(), 1) : $ = new Date(M), r.dates = [$], n("pick", $, !1, z || e.selectionMode);
17804
17817
  }, g = () => {
@@ -17818,16 +17831,16 @@ const $L = (e, ...t) => {
17818
17831
  M && ((H = o == null ? void 0 : o.value) == null || H.updateScroll(), (z = d == null ? void 0 : d.value) == null || z.updateScroll());
17819
17832
  }, C = k(() => r.pickerTable === `${r.currentView}-table` ? h : c), T = k(() => {
17820
17833
  const M = "zh-CN", H = "[yyyy]-[mm]", z = r.panelDate, {
17821
- labels: B,
17834
+ labels: V,
17822
17835
  separator: $
17823
- } = S1(M, H, z), X = (W) => () => {
17836
+ } = S1(M, H, z), q = (W) => () => {
17824
17837
  r.pickerTable = s(W);
17825
17838
  };
17826
17839
  return {
17827
17840
  separator: $,
17828
- labels: B.map((W) => {
17841
+ labels: V.map((W) => {
17829
17842
  const Y = W;
17830
- return Y.handler = X(W.type), Y;
17843
+ return Y.handler = q(W.type), Y;
17831
17844
  })
17832
17845
  };
17833
17846
  }), x = k(() => T.value.labels[0].type === "year" || r.currentView === "date"), A = k(() => T.value.labels[1].type === "year" || r.currentView === "date"), _ = k(() => r.currentView === "time"), L = () => {
@@ -18232,10 +18245,10 @@ const $L = (e, ...t) => {
18232
18245
  const G = Q === "left" ? "right" : "left";
18233
18246
  Q === "left" && o.leftPanelDate >= o.rightPanelDate && (o.currentView === "year" ? Math.floor(o.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(o.rightPanelDate.getFullYear() / 10) * 10 && y(G, J, 10) : y(G, J, 1)), Q === "right" && o.rightPanelDate <= o.leftPanelDate && (o.currentView === "year" ? Math.floor(o.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(o.rightPanelDate.getFullYear() / 10) * 10 && y(G, J, -10) : y(G, J, -1));
18234
18247
  } else {
18235
- const G = Q === "left" ? "right" : "left", q = o[`${G}PanelDate`], D = new Date(q);
18248
+ const G = Q === "left" ? "right" : "left", X = o[`${G}PanelDate`], D = new Date(X);
18236
18249
  if (J === "Month") {
18237
- const V = new Date(D.getFullYear(), D.getMonth() + ue + 1, 0).getDate();
18238
- D.setDate(Math.min(V, D.getDate()));
18250
+ const B = new Date(D.getFullYear(), D.getMonth() + ue + 1, 0).getDate();
18251
+ D.setDate(Math.min(B, D.getDate()));
18239
18252
  }
18240
18253
  D[`set${J}`](D[`get${J}`]() + ue), o[`${G}PanelDate`] = D;
18241
18254
  }
@@ -18257,15 +18270,15 @@ const $L = (e, ...t) => {
18257
18270
  const J = "zh-CN", ue = "[yyyy]-[mm]", be = o[`${Q}PanelDate`], {
18258
18271
  labels: ae,
18259
18272
  separator: G
18260
- } = S1(J, ue, be), q = (D) => {
18261
- const V = D === "month" ? T : C;
18262
- return () => V(Q);
18273
+ } = S1(J, ue, be), X = (D) => {
18274
+ const B = D === "month" ? T : C;
18275
+ return () => B(Q);
18263
18276
  };
18264
18277
  return {
18265
18278
  separator: G,
18266
18279
  labels: ae.map((D) => {
18267
- const V = D;
18268
- return V.handler = q(D.type), V;
18280
+ const B = D;
18281
+ return B.handler = X(D.type), B;
18269
18282
  })
18270
18283
  };
18271
18284
  }, A = (Q, J) => {
@@ -18328,10 +18341,10 @@ const $L = (e, ...t) => {
18328
18341
  }), fe(() => o.currentView, (Q) => {
18329
18342
  const J = o.leftPanelDate.getMonth(), ue = o.rightPanelDate.getMonth(), be = o.leftPanelDate.getFullYear() === o.rightPanelDate.getFullYear();
18330
18343
  Q === "date" && be && J === ue && y("right", "Month", 1), Q === "month" && be && y("right", "FullYear", 1), Q === "year" && be && y("right", "FullYear", 10), o.currentView === "time" && Le(() => {
18331
- ie.value.updateScroll();
18344
+ le.value.updateScroll();
18332
18345
  });
18333
18346
  });
18334
- const F = k(() => o.currentView === "time"), M = k(() => x("left")), H = k(() => x("right")), z = k(() => o.leftPickerTable.split("-").shift()), B = k(() => o.rightPickerTable.split("-").shift()), $ = k(() => M.value.labels[0].type === "year" || o.currentView === "date"), X = k(() => M.value.labels[1].type === "year" || o.currentView === "date"), W = k(() => H.value.labels[0].type === "year" || o.currentView === "date"), Y = k(() => H.value.labels[1].type === "year" || o.currentView === "date"), I = k(() => {
18347
+ const F = k(() => o.currentView === "time"), M = k(() => x("left")), H = k(() => x("right")), z = k(() => o.leftPickerTable.split("-").shift()), V = k(() => o.rightPickerTable.split("-").shift()), $ = k(() => M.value.labels[0].type === "year" || o.currentView === "date"), q = k(() => M.value.labels[1].type === "year" || o.currentView === "date"), W = k(() => H.value.labels[0].type === "year" || o.currentView === "date"), Y = k(() => H.value.labels[1].type === "year" || o.currentView === "date"), I = k(() => {
18335
18348
  const Q = `${o.currentView}-table`;
18336
18349
  return {
18337
18350
  left: o.leftPickerTable !== Q,
@@ -18354,10 +18367,10 @@ const $L = (e, ...t) => {
18354
18367
  }, ne = () => {
18355
18368
  ee(), n("pick-clear");
18356
18369
  };
18357
- function re() {
18370
+ function ie() {
18358
18371
  n("pick-click");
18359
18372
  }
18360
- const ce = k(() => !(o.dates[0] && o.dates[1])), ie = P(null), {
18373
+ const ce = k(() => !(o.dates[0] && o.dates[1])), le = P(null), {
18361
18374
  resolveClassName: te
18362
18375
  } = ge();
18363
18376
  return {
@@ -18371,9 +18384,9 @@ const $L = (e, ...t) => {
18371
18384
  leftDatePanelLabel: M,
18372
18385
  rightDatePanelLabel: H,
18373
18386
  leftDatePanelView: z,
18374
- rightDatePanelView: B,
18387
+ rightDatePanelView: V,
18375
18388
  leftShowLabelFirst: $,
18376
- leftShowLabelSecond: X,
18389
+ leftShowLabelSecond: q,
18377
18390
  rightShowLabelFirst: W,
18378
18391
  rightShowLabelSecond: Y,
18379
18392
  preSelecting: I,
@@ -18387,8 +18400,8 @@ const $L = (e, ...t) => {
18387
18400
  handleToggleTime: Z,
18388
18401
  handlePickSuccess: j,
18389
18402
  handlePickClear: ne,
18390
- handlePickClick: re,
18391
- timePickerRef: ie,
18403
+ handlePickClick: ie,
18404
+ timePickerRef: le,
18392
18405
  t: s,
18393
18406
  resolveClassName: te
18394
18407
  };
@@ -18711,7 +18724,7 @@ const $L = (e, ...t) => {
18711
18724
  focus: () => M()
18712
18725
  });
18713
18726
  });
18714
- const z = P(null), B = (J) => {
18727
+ const z = P(null), V = (J) => {
18715
18728
  var ue;
18716
18729
  if (h.disableCloseUnderTransfer)
18717
18730
  return h.disableCloseUnderTransfer = !1, !1;
@@ -18730,7 +18743,7 @@ const $L = (e, ...t) => {
18730
18743
  }, $ = () => {
18731
18744
  var J, ue;
18732
18745
  (J = F == null ? void 0 : F.value) == null || J.focus(), (ue = F == null ? void 0 : F.value) == null || ue.click();
18733
- }, X = () => {
18746
+ }, q = () => {
18734
18747
  e.readonly || e.disabled || S != null && S.value && (h.showClose = !0);
18735
18748
  }, W = (J) => {
18736
18749
  h.showClose = !1, h.internalValue !== h.tmpValue && I(J);
@@ -18741,12 +18754,12 @@ const $L = (e, ...t) => {
18741
18754
  });
18742
18755
  }, I = (J) => {
18743
18756
  var oe;
18744
- const ue = e.type.includes("range") || e.multiple, be = S.value, ae = J.target.value, G = bn(ae, e.type, e.multiple, e.format), q = ue ? G : G[0], D = q ? (oe = e.disabledDate) == null ? void 0 : oe.call(e, q) : !1, V = G.reduce((le, U) => le && U instanceof Date, !0);
18745
- ae !== be && !D && V ? (Y(e.type), h.internalValue = G) : h.forceInputRerender = h.forceInputRerender + 1;
18757
+ const ue = e.type.includes("range") || e.multiple, be = S.value, ae = J.target.value, G = bn(ae, e.type, e.multiple, e.format), X = ue ? G : G[0], D = X ? (oe = e.disabledDate) == null ? void 0 : oe.call(e, X) : !1, B = G.reduce((re, U) => re && U instanceof Date, !0);
18758
+ ae !== be && !D && B ? (Y(e.type), h.internalValue = G) : h.forceInputRerender = h.forceInputRerender + 1;
18746
18759
  }, R = (J) => {
18747
18760
  var oe;
18748
- const ue = e.type.includes("range") || e.multiple, be = S.value, ae = J.target.value, G = bn(ae, e.type, e.multiple, e.format), q = ue ? G : G[0], D = q ? (oe = e.disabledDate) == null ? void 0 : oe.call(e, q) : !1, V = G.reduce((le, U) => le && U instanceof Date, !0);
18749
- ae !== be && !D && V && (h.tmpValue = G);
18761
+ const ue = e.type.includes("range") || e.multiple, be = S.value, ae = J.target.value, G = bn(ae, e.type, e.multiple, e.format), X = ue ? G : G[0], D = X ? (oe = e.disabledDate) == null ? void 0 : oe.call(e, X) : !1, B = G.reduce((re, U) => re && U instanceof Date, !0);
18762
+ ae !== be && !D && B && (h.tmpValue = G);
18750
18763
  }, K = (J) => {
18751
18764
  e.readonly || (i.value = ki(), h.isFocused = !0, n("focus"), !(J && J.type === "focus") && (e.disabled || (h.visible = !0)));
18752
18765
  }, Z = () => {
@@ -18772,16 +18785,16 @@ const $L = (e, ...t) => {
18772
18785
  const ae = `.${c("picker-confirm")} > *`, G = H.value.$el.querySelectorAll(ae);
18773
18786
  h.internalFocus = !0, [...G][J.shiftKey ? "pop" : "shift"]().focus();
18774
18787
  } else
18775
- B();
18788
+ V();
18776
18789
  const be = [37, 38, 39, 40];
18777
18790
  if (!h.visible && be.includes(ue)) {
18778
18791
  h.visible = !0;
18779
18792
  return;
18780
18793
  }
18781
- ue === 27 && h.visible && (J.stopPropagation(), B()), be.includes(ue) && h.focusedTime.active && J.preventDefault();
18794
+ ue === 27 && h.visible && (J.stopPropagation(), V()), be.includes(ue) && h.focusedTime.active && J.preventDefault();
18782
18795
  }, ne = () => {
18783
18796
  h.visible = !1, h.internalValue = h.internalValue.map(() => null), n("clear"), Y(e.type), Z(), h.showClose = !1, h.shortcut = null, setTimeout(() => g(e.type), 500);
18784
- }, re = () => {
18797
+ }, ie = () => {
18785
18798
  var J;
18786
18799
  h.visible = !1, Le(() => {
18787
18800
  n("pick-success");
@@ -18789,8 +18802,8 @@ const $L = (e, ...t) => {
18789
18802
  }, ce = (J, ue = !1, be, ae) => {
18790
18803
  let G = J;
18791
18804
  if (e.multiple) {
18792
- const D = G.getTime(), V = h.internalValue.findIndex((U) => U && U.getTime() === D), le = [...h.internalValue, G].filter(Boolean).map((U) => U.getTime()).filter((U, se, de) => de.indexOf(U) === se && se !== V);
18793
- h.internalValue = le.map((U) => new Date(U));
18805
+ const D = G.getTime(), B = h.internalValue.findIndex((U) => U && U.getTime() === D), re = [...h.internalValue, G].filter(Boolean).map((U) => U.getTime()).filter((U, se, de) => de.indexOf(U) === se && se !== B);
18806
+ h.internalValue = re.map((U) => new Date(U));
18794
18807
  } else
18795
18808
  G = bn(J, e.type, e.multiple, e.format), h.internalValue = Array.isArray(G) ? G : [G];
18796
18809
  if (h.internalValue[0]) {
@@ -18800,10 +18813,10 @@ const $L = (e, ...t) => {
18800
18813
  h.focusedTime = {
18801
18814
  ...h.focusedTime,
18802
18815
  time: h.internalValue.map(qi)
18803
- }, C.value || (g(e.type), h.visible = ue), be === "upToNow" && e.type === "daterange" && re(), h.shortcut = ae, Y(be);
18804
- const q = e.shortcuts.findIndex((D) => D === h.shortcut);
18805
- n("shortcut-change", h.shortcut, q);
18806
- }, ie = P(null), te = () => {
18816
+ }, C.value || (g(e.type), h.visible = ue), be === "upToNow" && e.type === "daterange" && ie(), h.shortcut = ae, Y(be);
18817
+ const X = e.shortcuts.findIndex((D) => D === h.shortcut);
18818
+ n("shortcut-change", h.shortcut, X);
18819
+ }, le = P(null), te = () => {
18807
18820
  var J, ue;
18808
18821
  (ue = (J = z.value).handleToggleTime) == null || ue.call(J);
18809
18822
  }, Q = (J, ue) => {
@@ -18831,11 +18844,11 @@ const $L = (e, ...t) => {
18831
18844
  teleportTo: i,
18832
18845
  pickerDropdownRef: H,
18833
18846
  inputRef: F,
18834
- triggerRef: ie,
18847
+ triggerRef: le,
18835
18848
  pickerPanelRef: z,
18836
- handleClose: B,
18849
+ handleClose: V,
18837
18850
  handleIconClick: $,
18838
- handleInputMouseenter: X,
18851
+ handleInputMouseenter: q,
18839
18852
  handleInputMouseleave: W,
18840
18853
  handleFocus: K,
18841
18854
  handleBlur: ee,
@@ -18844,7 +18857,7 @@ const $L = (e, ...t) => {
18844
18857
  handleInputInput: R,
18845
18858
  handleClear: ne,
18846
18859
  onPick: ce,
18847
- onPickSuccess: re,
18860
+ onPickSuccess: ie,
18848
18861
  onPickFirst: Q,
18849
18862
  handleToggleTime: te,
18850
18863
  resolveClassName: c
@@ -19082,12 +19095,12 @@ const $L = (e, ...t) => {
19082
19095
  return;
19083
19096
  }
19084
19097
  c.isFocused = !1, c.disableClickOutSide = !1;
19085
- }, B = () => {
19098
+ }, V = () => {
19086
19099
  var te, Q;
19087
19100
  (te = E == null ? void 0 : E.value) == null || te.focus(), (Q = E == null ? void 0 : E.value) == null || Q.click();
19088
19101
  }, $ = () => {
19089
19102
  e.readonly || e.disabled || (p != null && p.value && (c.showClose = !0), c.internalValue = c.tmpValue);
19090
- }, X = (te) => {
19103
+ }, q = (te) => {
19091
19104
  c.showClose = !1, c.internalValue = c.tmpValue;
19092
19105
  }, W = (te) => {
19093
19106
  Le(() => {
@@ -19095,13 +19108,13 @@ const $L = (e, ...t) => {
19095
19108
  n("update:modelValue", g.value), n("change", v.value, te), e.type.indexOf("time") < 0 && ((Q = E == null ? void 0 : E.value) == null || Q.blur());
19096
19109
  });
19097
19110
  }, Y = (te) => {
19098
- var q;
19099
- const Q = e.type.includes("range") || e.multiple, J = te.target.value, ue = bn(J, e.type, e.multiple, e.format), be = Q ? ue : ue[0], ae = (q = e.disabledDate) == null ? void 0 : q.call(e, be), G = ue.reduce((D, V) => D && V instanceof Date, !0);
19111
+ var X;
19112
+ const Q = e.type.includes("range") || e.multiple, J = te.target.value, ue = bn(J, e.type, e.multiple, e.format), be = Q ? ue : ue[0], ae = (X = e.disabledDate) == null ? void 0 : X.call(e, be), G = ue.reduce((D, B) => D && B instanceof Date, !0);
19100
19113
  !ae && G ? (W(e.type), c.internalValue = ue) : c.forceInputRerender = c.forceInputRerender + 1;
19101
19114
  }, I = (te) => {
19102
19115
  var D;
19103
- const Q = e.type.includes("range") || e.multiple, J = p.value, ue = te.target.value, be = bn(ue, e.type, e.multiple, e.format), ae = Q ? be : be[0], G = (D = e.disabledDate) == null ? void 0 : D.call(e, ae), q = be.reduce((V, oe) => V && oe instanceof Date, !0);
19104
- ue !== J && !G && q && (c.tmpValue = be);
19116
+ const Q = e.type.includes("range") || e.multiple, J = p.value, ue = te.target.value, be = bn(ue, e.type, e.multiple, e.format), ae = Q ? be : be[0], G = (D = e.disabledDate) == null ? void 0 : D.call(e, ae), X = be.reduce((B, oe) => B && oe instanceof Date, !0);
19117
+ ue !== J && !G && X && (c.tmpValue = be);
19105
19118
  }, R = (te) => {
19106
19119
  e.readonly || (r.value = ki(), c.isFocused = !0, n("focus"), !(te && te.type === "focus") && (e.disabled || (c.visible = !0)));
19107
19120
  }, K = () => {
@@ -19138,7 +19151,7 @@ const $L = (e, ...t) => {
19138
19151
  c.visible = !1, c.internalValue = c.internalValue.map(() => null), n("clear"), W(e.type), K(), c.showClose = !1, c.shortcut = null, setTimeout(() => h(e.type), 500);
19139
19152
  }, ne = () => {
19140
19153
  e.appendToBody && (c.disableCloseUnderTransfer = !0);
19141
- }, re = () => {
19154
+ }, ie = () => {
19142
19155
  var te;
19143
19156
  c.visible = !1, Le(() => {
19144
19157
  n("pick-success");
@@ -19146,8 +19159,8 @@ const $L = (e, ...t) => {
19146
19159
  }, ce = (te, Q = !1, J, ue) => {
19147
19160
  let be = te;
19148
19161
  if (e.multiple) {
19149
- const G = be.getTime(), q = c.internalValue.findIndex((oe) => oe && oe.getTime() === G), V = [...c.internalValue, be].filter(Boolean).map((oe) => oe.getTime()).filter((oe, le, U) => U.indexOf(oe) === le && le !== q);
19150
- c.internalValue = V.map((oe) => new Date(oe));
19162
+ const G = be.getTime(), X = c.internalValue.findIndex((oe) => oe && oe.getTime() === G), B = [...c.internalValue, be].filter(Boolean).map((oe) => oe.getTime()).filter((oe, re, U) => U.indexOf(oe) === re && re !== X);
19163
+ c.internalValue = B.map((oe) => new Date(oe));
19151
19164
  } else
19152
19165
  be = bn(te, e.type, e.multiple, e.format), c.internalValue = Array.isArray(be) ? be : [be];
19153
19166
  if (c.internalValue[0]) {
@@ -19157,12 +19170,12 @@ const $L = (e, ...t) => {
19157
19170
  c.focusedTime = {
19158
19171
  ...c.focusedTime,
19159
19172
  time: c.internalValue.map(qi)
19160
- }, w.value || (h(e.type), c.visible = Q), J === "upToNow" && e.type === "daterange" && re(), c.shortcut = ue, W(J);
19173
+ }, w.value || (h(e.type), c.visible = Q), J === "upToNow" && e.type === "daterange" && ie(), c.shortcut = ue, W(J);
19161
19174
  const ae = e.shortcuts.findIndex((G) => G === c.shortcut);
19162
19175
  n("shortcut-change", c.shortcut, ae);
19163
- }, ie = P(null);
19176
+ }, le = P(null);
19164
19177
  return s({
19165
- focus: B
19178
+ focus: V
19166
19179
  }), {
19167
19180
  ...We(c),
19168
19181
  panel: y,
@@ -19181,13 +19194,13 @@ const $L = (e, ...t) => {
19181
19194
  ownPickerProps: N,
19182
19195
  pickerDropdownRef: M,
19183
19196
  inputRef: E,
19184
- triggerRef: ie,
19197
+ triggerRef: le,
19185
19198
  pickerPanelRef: H,
19186
19199
  teleportTo: r,
19187
19200
  handleClose: z,
19188
- handleIconClick: B,
19201
+ handleIconClick: V,
19189
19202
  handleInputMouseenter: $,
19190
- handleInputMouseleave: X,
19203
+ handleInputMouseleave: q,
19191
19204
  handleFocus: R,
19192
19205
  handleBlur: Z,
19193
19206
  handleKeydown: ee,
@@ -19196,7 +19209,7 @@ const $L = (e, ...t) => {
19196
19209
  handleClear: j,
19197
19210
  handleTransferClick: ne,
19198
19211
  onPick: ce,
19199
- onPickSuccess: re,
19212
+ onPickSuccess: ie,
19200
19213
  resolveClassName: a
19201
19214
  };
19202
19215
  },
@@ -22424,7 +22437,7 @@ var V1 = { exports: {} };
22424
22437
  }, F(I, R);
22425
22438
  }
22426
22439
  function M(I) {
22427
- var R = B();
22440
+ var R = V();
22428
22441
  return function() {
22429
22442
  var Z = $(I), ee;
22430
22443
  if (R) {
@@ -22443,7 +22456,7 @@ var V1 = { exports: {} };
22443
22456
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22444
22457
  return I;
22445
22458
  }
22446
- function B() {
22459
+ function V() {
22447
22460
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
22448
22461
  if (typeof Proxy == "function") return !0;
22449
22462
  try {
@@ -22458,7 +22471,7 @@ var V1 = { exports: {} };
22458
22471
  return K.__proto__ || Object.getPrototypeOf(K);
22459
22472
  }, $(I);
22460
22473
  }
22461
- function X(I, R) {
22474
+ function q(I, R) {
22462
22475
  var K = "data-clipboard-".concat(I);
22463
22476
  if (R.hasAttribute(K))
22464
22477
  return R.getAttribute(K);
@@ -22495,15 +22508,15 @@ var V1 = { exports: {} };
22495
22508
  }, {
22496
22509
  key: "onClick",
22497
22510
  value: function(ee) {
22498
- var j = ee.delegateTarget || ee.currentTarget, ne = this.action(j) || "copy", re = A({
22511
+ var j = ee.delegateTarget || ee.currentTarget, ne = this.action(j) || "copy", ie = A({
22499
22512
  action: ne,
22500
22513
  container: this.container,
22501
22514
  target: this.target(j),
22502
22515
  text: this.text(j)
22503
22516
  });
22504
- this.emit(re ? "success" : "error", {
22517
+ this.emit(ie ? "success" : "error", {
22505
22518
  action: ne,
22506
- text: re,
22519
+ text: ie,
22507
22520
  trigger: j,
22508
22521
  clearSelection: function() {
22509
22522
  j && j.focus(), window.getSelection().removeAllRanges();
@@ -22517,7 +22530,7 @@ var V1 = { exports: {} };
22517
22530
  }, {
22518
22531
  key: "defaultAction",
22519
22532
  value: function(ee) {
22520
- return X("action", ee);
22533
+ return q("action", ee);
22521
22534
  }
22522
22535
  /**
22523
22536
  * Default `target` lookup function.
@@ -22526,7 +22539,7 @@ var V1 = { exports: {} };
22526
22539
  }, {
22527
22540
  key: "defaultTarget",
22528
22541
  value: function(ee) {
22529
- var j = X("target", ee);
22542
+ var j = q("target", ee);
22530
22543
  if (j)
22531
22544
  return document.querySelector(j);
22532
22545
  }
@@ -22543,7 +22556,7 @@ var V1 = { exports: {} };
22543
22556
  * @param {Element} trigger
22544
22557
  */
22545
22558
  value: function(ee) {
22546
- return X("text", ee);
22559
+ return q("text", ee);
22547
22560
  }
22548
22561
  /**
22549
22562
  * Destroy lifecycle.
@@ -22580,8 +22593,8 @@ var V1 = { exports: {} };
22580
22593
  key: "isSupported",
22581
22594
  value: function() {
22582
22595
  var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], j = typeof ee == "string" ? [ee] : ee, ne = !!document.queryCommandSupported;
22583
- return j.forEach(function(re) {
22584
- ne = ne && !!document.queryCommandSupported(re);
22596
+ return j.forEach(function(ie) {
22597
+ ne = ne && !!document.queryCommandSupported(ie);
22585
22598
  }), ne;
22586
22599
  }
22587
22600
  }]), K;
@@ -23191,8 +23204,8 @@ const lM = {
23191
23204
  if (typeof j == "object")
23192
23205
  try {
23193
23206
  ne = JSON.stringify(j);
23194
- } catch (re) {
23195
- console.error(`JSON.stringify Error: ${re}`);
23207
+ } catch (ie) {
23208
+ console.error(`JSON.stringify Error: ${ie}`);
23196
23209
  }
23197
23210
  return ne;
23198
23211
  }, E = () => {
@@ -23201,19 +23214,19 @@ const lM = {
23201
23214
  });
23202
23215
  F(j);
23203
23216
  }, F = (j, ne) => {
23204
- ["success", "error"].forEach((re) => {
23205
- j.on(re, (ce) => {
23206
- const ie = S.value;
23207
- if (N.value = re, ie) {
23217
+ ["success", "error"].forEach((ie) => {
23218
+ j.on(ie, (ce) => {
23219
+ const le = S.value;
23220
+ if (N.value = ie, le) {
23208
23221
  const {
23209
23222
  offsetLeft: te,
23210
23223
  offsetWidth: Q,
23211
23224
  offsetTop: J
23212
23225
  } = ce.trigger, ue = ce.trigger.closest(".message-tree"), be = ue ? ue.scrollTop : 0;
23213
- ie.classList.remove("success", "error", "is-hidden"), ie.classList.add(re, "is-show");
23226
+ le.classList.remove("success", "error", "is-hidden"), le.classList.add(ie, "is-show");
23214
23227
  const ae = te + Q / 2 - 41, G = J - be - 40;
23215
- ie.style.setProperty("transform", `translate(${ae}px, ${G}px`), L && clearTimeout(L), L = setTimeout(() => {
23216
- ie.classList.remove("is-show"), ie.classList.add("is-hidden");
23228
+ le.style.setProperty("transform", `translate(${ae}px, ${G}px`), L && clearTimeout(L), L = setTimeout(() => {
23229
+ le.classList.remove("is-show"), le.classList.add("is-hidden");
23217
23230
  }, 2e3);
23218
23231
  }
23219
23232
  });
@@ -23228,14 +23241,14 @@ const lM = {
23228
23241
  if (typeof j == "string")
23229
23242
  try {
23230
23243
  ne = JSON.parse(j);
23231
- } catch (re) {
23232
- console.error(`Format Json Error: ${re}`);
23244
+ } catch (ie) {
23245
+ console.error(`Format Json Error: ${ie}`);
23233
23246
  }
23234
23247
  return ne;
23235
23248
  }, z = (j, ne) => {
23236
- if (T.isDetailShow = ne ?? !T.isDetailShow, B(j, T.isDetailShow), T.isDetailShow && typeof e.message == "object" && !gt(e.message)) {
23249
+ if (T.isDetailShow = ne ?? !T.isDetailShow, V(j, T.isDetailShow), T.isDetailShow && typeof e.message == "object" && !gt(e.message)) {
23237
23250
  if (e.message.type === Ni.JSON || !e.message.type) {
23238
- const re = H(e.message.details), ce = new iM(re);
23251
+ const ie = H(e.message.details), ce = new iM(ie);
23239
23252
  setTimeout(() => {
23240
23253
  p.value && (p.value.innerHTML = "", p.value.append(ce.render())), E();
23241
23254
  });
@@ -23244,18 +23257,18 @@ const lM = {
23244
23257
  E(), M();
23245
23258
  }), t("detail", T.isDetailShow, e.id);
23246
23259
  }
23247
- }, B = (j, ne) => {
23260
+ }, V = (j, ne) => {
23248
23261
  T.isFix = ne ?? !T.isFix;
23249
23262
  }, $ = (j = !1) => {
23250
23263
  if (typeof e.message == "object" && !gt(e.message)) {
23251
23264
  if (j) {
23252
- document.removeEventListener("keydown", X);
23265
+ document.removeEventListener("keydown", q);
23253
23266
  return;
23254
23267
  }
23255
- document.addEventListener("keydown", X);
23268
+ document.addEventListener("keydown", q);
23256
23269
  }
23257
- }, X = (j) => {
23258
- j.altKey && j.keyCode === 80 && B();
23270
+ }, q = (j) => {
23271
+ j.altKey && j.keyCode === 80 && V();
23259
23272
  };
23260
23273
  Re(() => {
23261
23274
  h.value && A(), C.value = !0, $();
@@ -23287,7 +23300,7 @@ const lM = {
23287
23300
  id: Ht.FIX,
23288
23301
  icon: () => T.isFix ? u(Vl, null, null) : u(Fl, null, null),
23289
23302
  classList: T.isFix ? "fixed" : "",
23290
- onClick: (j) => B()
23303
+ onClick: (j) => V()
23291
23304
  },
23292
23305
  [Ht.CLOSE]: {
23293
23306
  id: Ht.CLOSE,
@@ -23302,8 +23315,8 @@ const lM = {
23302
23315
  var j;
23303
23316
  if (((j = e.actions) == null ? void 0 : j.length) > 0) {
23304
23317
  const ne = e.actions.map((ce) => {
23305
- const ie = ce.id.toLocaleLowerCase(), te = R.value[ie], Q = te == null ? void 0 : te.onClick, J = Object.assign({}, R.value[ie] || {}, ce);
23306
- if (J.id = ie, ce.classList !== void 0) {
23318
+ const le = ce.id.toLocaleLowerCase(), te = R.value[le], Q = te == null ? void 0 : te.onClick, J = Object.assign({}, R.value[le] || {}, ce);
23319
+ if (J.id = le, ce.classList !== void 0) {
23307
23320
  const ue = Array.isArray(ce.classList) ? ce.classList : [ce.classList];
23308
23321
  let be = [];
23309
23322
  te.classList !== void 0 && (be = Array.isArray(te.classList) ? te.classList : [te.classList]), J.classList = [...be, ...ue];
@@ -23312,12 +23325,12 @@ const lM = {
23312
23325
  const ue = Reflect.apply(ce.onClick, this, []);
23313
23326
  (typeof ue === void 0 || ue) && typeof Q == "function" && Reflect.apply(Q, this, []);
23314
23327
  }, J) : (J.onClick = Q, J);
23315
- }), re = K.filter((ce) => !ne.some((ie) => ie.id === ce)).map((ce) => R.value[ce]);
23316
- return ne.push(...re), ne;
23328
+ }), ie = K.filter((ce) => !ne.some((le) => le.id === ce)).map((ce) => R.value[ce]);
23329
+ return ne.push(...ie), ne;
23317
23330
  }
23318
23331
  return K.map((ne) => R.value[ne]);
23319
23332
  }), ee = () => {
23320
- var ie;
23333
+ var le;
23321
23334
  const j = ({
23322
23335
  icon: te
23323
23336
  }) => typeof te == "function" ? Reflect.apply(te, this, []) : u("span", {
@@ -23330,7 +23343,7 @@ const lM = {
23330
23343
  return typeof Q == "string" ? u("span", {
23331
23344
  class: "message-action-text"
23332
23345
  }, [Q]) : Q;
23333
- }, re = (te, Q) => {
23346
+ }, ie = (te, Q) => {
23334
23347
  Q.readonly || Q.disabled || typeof Q.onClick == "function" && Reflect.apply(Q.onClick, this, [te, Q]);
23335
23348
  }, ce = () => Z.value.map((te) => {
23336
23349
  if (te.disabled)
@@ -23340,10 +23353,10 @@ const lM = {
23340
23353
  const Q = Array.isArray(te.classList) ? te.classList.join(" ") : te.classList;
23341
23354
  return u("span", {
23342
23355
  class: ["tool", te.id, Q],
23343
- onClick: (J) => re(J, te)
23356
+ onClick: (J) => ie(J, te)
23344
23357
  }, [j(te), ne(te)]);
23345
23358
  });
23346
- return ((ie = n.action) == null ? void 0 : ie.call(n)) ?? ce();
23359
+ return ((le = n.action) == null ? void 0 : le.call(n)) ?? ce();
23347
23360
  };
23348
23361
  return s({
23349
23362
  setDetailsShow: z
@@ -23353,7 +23366,7 @@ const lM = {
23353
23366
  visible: C,
23354
23367
  close: _,
23355
23368
  setDetailsShow: z,
23356
- fixMesage: B,
23369
+ fixMesage: V,
23357
23370
  copyMessage: E,
23358
23371
  parseToJson: H,
23359
23372
  handleMouseenter: W,
@@ -24915,28 +24928,28 @@ const q1 = () => {
24915
24928
  case "left":
24916
24929
  ne = j.clientX - b.value.mouse.clientX;
24917
24930
  }
24918
- const re = b.value.aside[x.value] + ne, ce = H(re) + a.value, ie = `${ce}px`;
24919
- o.value ? C.value.style[x.value] = ie : S.value.style[n.value] = ie, K(ce);
24931
+ const ie = b.value.aside[x.value] + ne, ce = H(ie) + a.value, le = `${ce}px`;
24932
+ o.value ? C.value.style[x.value] = le : S.value.style[n.value] = le, K(ce);
24920
24933
  }, ee = () => {
24921
24934
  if (S.value.style.visibility = "hidden", w.value.style.display = "none", document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", ee), document.onselectstart = null, document.ondragstart = null, Le(() => {
24922
- B(), t("after-resize", parseFloat(S.value.style[n.value]));
24935
+ V(), t("after-resize", parseFloat(S.value.style[n.value]));
24923
24936
  }), o.value)
24924
24937
  return !1;
24925
24938
  C.value.style[x.value] = S.value.style[n.value];
24926
24939
  };
24927
24940
  document.addEventListener("mousemove", Z), document.addEventListener("mouseup", ee);
24928
- }, B = () => {
24941
+ }, V = () => {
24929
24942
  if (!d.value)
24930
24943
  return !1;
24931
24944
  const I = C.value.getBoundingClientRect();
24932
24945
  if (v.value = h.value = I[x.value] <= N.value, !v.value)
24933
24946
  return g.value = !0, !1;
24934
- X(), Le(() => {
24947
+ q(), Le(() => {
24935
24948
  C.value.setAttribute(`data-${x.value}`, _.value[x.value]);
24936
24949
  });
24937
24950
  }, $ = (I) => {
24938
- h.value = typeof I == "boolean" ? I : !h.value, X(), t("collapse-change", h.value);
24939
- }, X = () => {
24951
+ h.value = typeof I == "boolean" ? I : !h.value, q(), t("collapse-change", h.value);
24952
+ }, q = () => {
24940
24953
  const I = C.value.getBoundingClientRect();
24941
24954
  W(!h.value), h.value ? (C.value.setAttribute(`data-${x.value}`, `${I[x.value]}px`), C.value.style[x.value] = e.collapsible ? "0px" : "5px") : (g.value = !0, C.value.style[x.value] = C.value.getAttribute(`data-${x.value}`) || A.value);
24942
24955
  }, W = (I) => {
@@ -25464,8 +25477,8 @@ const sP = /* @__PURE__ */ me({
25464
25477
  fe(S, () => {
25465
25478
  e.mode === ts.DEFAULT && S.value && (f.value = !1);
25466
25479
  }), fe([p, f], () => {
25467
- var q, D;
25468
- f.value && ((q = p.value) == null ? void 0 : q.some((V) => !V.disabled)) ? y || (h.value = e.valueBehavior === Kt.NEED_KEY && ((D = p.value.find((V) => !V.disabled)) == null ? void 0 : D.id) || "", y = !0, document.addEventListener("keydown", A)) : (document.removeEventListener("keydown", A), y = !1, e.valueBehavior !== Kt.NEED_KEY && (h.value = ""));
25480
+ var X, D;
25481
+ f.value && ((X = p.value) == null ? void 0 : X.some((B) => !B.disabled)) ? y || (h.value = e.valueBehavior === Kt.NEED_KEY && ((D = p.value.find((B) => !B.disabled)) == null ? void 0 : D.id) || "", y = !0, document.addEventListener("keydown", A)) : (document.removeEventListener("keydown", A), y = !1, e.valueBehavior !== Kt.NEED_KEY && (h.value = ""));
25469
25482
  });
25470
25483
  function A(G) {
25471
25484
  switch (G.code) {
@@ -25480,16 +25493,16 @@ const sP = /* @__PURE__ */ me({
25480
25493
  }
25481
25494
  }
25482
25495
  function _(G) {
25483
- var V;
25484
- G.preventDefault(), (V = r.value) == null || V.blur();
25485
- const q = p.value.length;
25496
+ var B;
25497
+ G.preventDefault(), (B = r.value) == null || B.blur();
25498
+ const X = p.value.length;
25486
25499
  let D = p.value.findIndex((oe) => oe.id === h.value);
25487
- for (let oe = 0; oe < q; oe++) {
25488
- D = (D + (G.code === "ArrowDown" ? 1 : -1) + q) % q;
25489
- const le = p.value[D];
25490
- if (le && !le.disabled) {
25491
- const U = document.getElementById(le.id);
25492
- U == null || U.focus(), h.value = le.id;
25500
+ for (let oe = 0; oe < X; oe++) {
25501
+ D = (D + (G.code === "ArrowDown" ? 1 : -1) + X) % X;
25502
+ const re = p.value[D];
25503
+ if (re && !re.disabled) {
25504
+ const U = document.getElementById(re.id);
25505
+ U == null || U.focus(), h.value = re.id;
25493
25506
  break;
25494
25507
  }
25495
25508
  }
@@ -25498,13 +25511,13 @@ const sP = /* @__PURE__ */ me({
25498
25511
  var D;
25499
25512
  if (!y) return;
25500
25513
  G.preventDefault();
25501
- const q = (D = p.value) == null ? void 0 : D.find((V) => V.id === h.value);
25502
- q && $(q);
25514
+ const X = (D = p.value) == null ? void 0 : D.find((B) => B.id === h.value);
25515
+ X && $(X);
25503
25516
  }
25504
25517
  function N(G) {
25505
- var q, D, V;
25506
- if (!((q = i.value) != null && q.contains(G.target) || !((D = e.clickOutside) != null && D.call(e, G.target, i.value)))) {
25507
- if ((V = c.value) != null && V.isCustomMenu) {
25518
+ var X, D, B;
25519
+ if (!((X = i.value) != null && X.contains(G.target) || !((D = e.clickOutside) != null && D.call(e, G.target, i.value)))) {
25520
+ if ((B = c.value) != null && B.isCustomMenu) {
25508
25521
  e.mode === ts.EDIT && (z().then((oe) => oe && ce()), f.value = !1);
25509
25522
  return;
25510
25523
  }
@@ -25519,13 +25532,13 @@ const sP = /* @__PURE__ */ me({
25519
25532
  function E(G) {
25520
25533
  if (!O) {
25521
25534
  if (o.value = !1, e.mode === ts.EDIT && c.value && !d.value) {
25522
- const q = Array.from(r.value.querySelectorAll(`[data-type="${c.value.values.length ? "value" : c.value.type}"]`));
25523
- if (!q.length) return;
25535
+ const X = Array.from(r.value.querySelectorAll(`[data-type="${c.value.values.length ? "value" : c.value.type}"]`));
25536
+ if (!X.length) return;
25524
25537
  G == null || G.preventDefault();
25525
- const D = document.createRange(), V = window.getSelection();
25526
- D.selectNodeContents(q.at(-1)), V == null || V.removeAllRanges(), O = !0, setTimeout(() => {
25538
+ const D = document.createRange(), B = window.getSelection();
25539
+ D.selectNodeContents(X.at(-1)), B == null || B.removeAllRanges(), O = !0, setTimeout(() => {
25527
25540
  O = !1;
25528
- }, 200), V.addRange(D), ne(!0, !1);
25541
+ }, 200), B.addRange(D), ne(!0, !1);
25529
25542
  return;
25530
25543
  }
25531
25544
  K(), ne(!1, !d.value);
@@ -25533,62 +25546,62 @@ const sP = /* @__PURE__ */ me({
25533
25546
  }
25534
25547
  function F(G) {
25535
25548
  G.preventDefault();
25536
- const q = G.clipboardData.getData("text").trim();
25549
+ const X = G.clipboardData.getData("text").trim();
25537
25550
  if (!c.value) {
25538
- const D = ie(q);
25551
+ const D = le(X);
25539
25552
  if (D) {
25540
25553
  c.value = D, ne(!0, !0);
25541
25554
  return;
25542
25555
  }
25543
- l.value = q.split(e6).filter((V) => V.trim() && !t6.test(V)).join(` ${T.value} `), r.value.innerText = l.value, ne(), v();
25556
+ l.value = X.split(e6).filter((B) => B.trim() && !t6.test(B)).join(` ${T.value} `), r.value.innerText = l.value, ne(), v();
25544
25557
  return;
25545
25558
  }
25546
- c.value.addValues(q), v();
25559
+ c.value.addValues(X), v();
25547
25560
  }
25548
25561
  function M(G) {
25549
- const q = G.target.innerText.trim();
25562
+ const X = G.target.innerText.trim();
25550
25563
  if (c.value) {
25551
- if (c.value && !q) {
25564
+ if (c.value && !X) {
25552
25565
  x.value = Cs(10), h.value = "", c.value = null, l.value = "", setTimeout(() => {
25553
25566
  ne(!0, !0), Le(j);
25554
25567
  }, 200);
25555
25568
  return;
25556
25569
  }
25557
25570
  } else {
25558
- l.value = q, v();
25571
+ l.value = X, v();
25559
25572
  return;
25560
25573
  }
25561
- l.value = c.value.isSpecialType() ? q : q.replace(c.value.name, "").replace(":", "").trim(), v();
25574
+ l.value = c.value.isSpecialType() ? X : X.replace(c.value.name, "").replace(":", "").trim(), v();
25562
25575
  }
25563
25576
  function H(G) {
25564
- var q;
25577
+ var X;
25565
25578
  switch (G.code) {
25566
25579
  case "Enter":
25567
25580
  case "NumpadEnter":
25568
25581
  if (e.valueBehavior === Kt.NEED_KEY && p.value.some((D) => D.id === h.value)) {
25569
- !c.value && ((q = l.value) != null && q.length) && G.preventDefault();
25582
+ !c.value && ((X = l.value) != null && X.length) && G.preventDefault();
25570
25583
  return;
25571
25584
  }
25572
25585
  z(G).then((D) => D && ce());
25573
25586
  break;
25574
25587
  case "Backspace":
25575
- B(G);
25588
+ V(G);
25576
25589
  default:
25577
25590
  o.value = !1;
25578
25591
  break;
25579
25592
  }
25580
25593
  }
25581
25594
  async function z(G) {
25582
- var D, V, oe;
25583
- return G == null || G.preventDefault(), await new Promise((le) => setTimeout(le, 0)), c.value ? l.value ? await ee() : !((D = c.value) != null && D.isSpecialType()) && ((V = c.value) == null ? void 0 : V.values.length) < 1 ? (o.value = !o.value, !1) : (await R() && ((oe = c.value) != null && oe.isCustomMenu && (f.value = !1), re()), !1) : !l.value || e.valueBehavior === Kt.NEED_KEY ? void 0 : await Z();
25595
+ var D, B, oe;
25596
+ return G == null || G.preventDefault(), await new Promise((re) => setTimeout(re, 0)), c.value ? l.value ? await ee() : !((D = c.value) != null && D.isSpecialType()) && ((B = c.value) == null ? void 0 : B.values.length) < 1 ? (o.value = !o.value, !1) : (await R() && ((oe = c.value) != null && oe.isCustomMenu && (f.value = !1), ie()), !1) : !l.value || e.valueBehavior === Kt.NEED_KEY ? void 0 : await Z();
25584
25597
  }
25585
- function B(G) {
25586
- var q, D, V;
25598
+ function V(G) {
25599
+ var X, D, B;
25587
25600
  if (!c.value && !l.value) {
25588
25601
  h.value = "", t("delete"), setTimeout(K, 16);
25589
25602
  return;
25590
25603
  }
25591
- if ((q = c.value) != null && q.values.length) {
25604
+ if ((X = c.value) != null && X.values.length) {
25592
25605
  if (c.value.type === "text" || !((D = c.value.children) != null && D.length)) return;
25593
25606
  G.preventDefault();
25594
25607
  const oe = window.getSelection();
@@ -25596,51 +25609,51 @@ const sP = /* @__PURE__ */ me({
25596
25609
  let se = oe.getRangeAt(0).startContainer;
25597
25610
  for (; se && se.parentNode !== r.value; )
25598
25611
  se = se.parentNode;
25599
- const de = ((V = se == null ? void 0 : se.dataset) == null ? void 0 : V.index) || -1;
25612
+ const de = ((B = se == null ? void 0 : se.dataset) == null ? void 0 : B.index) || -1;
25600
25613
  c.value.values.splice(+de, 1), l.value = "", ne(!1, !1);
25601
25614
  return;
25602
25615
  }
25603
25616
  } else l.value || (c.value = null, l.value = "", K());
25604
25617
  w("");
25605
25618
  }
25606
- async function $(G, q) {
25607
- var D, V, oe, le, U;
25619
+ async function $(G, X) {
25620
+ var D, B, oe, re, U;
25608
25621
  if ((D = G.value) != null && D.id) {
25609
25622
  const se = new Xs({
25610
25623
  ...G,
25611
25624
  id: G.realId ?? G.id
25612
- }, q);
25625
+ }, X);
25613
25626
  if (se.addValues(G.value.name, !1), e.valueBehavior === Kt.NEED_KEY && h.value) {
25614
- re(se), ne(!0), h.value = "";
25627
+ ie(se), ne(!0), h.value = "";
25615
25628
  return;
25616
25629
  }
25617
25630
  if (c.value = se, !await R(c.value.values)) {
25618
25631
  c.value = null;
25619
25632
  return;
25620
25633
  }
25621
- re(c.value), ne(!0), h.value = "";
25634
+ ie(c.value), ne(!0), h.value = "";
25622
25635
  return;
25623
25636
  }
25624
- if (!c.value || ((V = c.value) == null ? void 0 : V.type) === "condition") {
25625
- c.value = new Xs(G, q ?? ((oe = c.value) == null ? void 0 : oe.type)), l.value = "";
25626
- const se = ((le = c.value) == null ? void 0 : le.type) === "condition";
25637
+ if (!c.value || ((B = c.value) == null ? void 0 : B.type) === "condition") {
25638
+ c.value = new Xs(G, X ?? ((oe = c.value) == null ? void 0 : oe.type)), l.value = "";
25639
+ const se = ((re = c.value) == null ? void 0 : re.type) === "condition";
25627
25640
  se || t("selectKey", {
25628
25641
  id: G.id,
25629
25642
  name: G.name,
25630
25643
  values: []
25631
- }), se && re(), f.value = se || !!c.value.children.length, ne(e.valueBehavior === Kt.NEED_KEY && !!h.value), typeof e.getMenuList == "function" && Le(j);
25644
+ }), se && ie(), f.value = se || !!c.value.children.length, ne(e.valueBehavior === Kt.NEED_KEY && !!h.value), typeof e.getMenuList == "function" && Le(j);
25632
25645
  return;
25633
25646
  }
25634
- c.value && (c.value.addValue(G), Le(te)), await R(c.value.values) && (c.value.multiple || re(), e.valueBehavior === Kt.NEED_KEY && ((U = c.value) != null && U.multiple) && ne());
25647
+ c.value && (c.value.addValue(G), Le(te)), await R(c.value.values) && (c.value.multiple || ie(), e.valueBehavior === Kt.NEED_KEY && ((U = c.value) != null && U.multiple) && ne());
25635
25648
  }
25636
- function X(G) {
25649
+ function q(G) {
25637
25650
  $(G, "condition");
25638
25651
  }
25639
25652
  function W(G) {
25640
- var q;
25653
+ var X;
25641
25654
  switch (G.id) {
25642
25655
  case "confirm":
25643
- if (!((q = c.value) != null && q.values.length)) return;
25656
+ if (!((X = c.value) != null && X.values.length)) return;
25644
25657
  l.value = "", z();
25645
25658
  break;
25646
25659
  case "cancel":
@@ -25651,11 +25664,11 @@ const sP = /* @__PURE__ */ me({
25651
25664
  function Y(G) {
25652
25665
  c.value && (c.value.logical = G);
25653
25666
  }
25654
- async function I(G, q) {
25667
+ async function I(G, X) {
25655
25668
  if (typeof e.validateValues == "function") {
25656
25669
  let D = "";
25657
25670
  try {
25658
- D = await e.validateValues(G ?? null, q);
25671
+ D = await e.validateValues(G ?? null, X);
25659
25672
  } catch {
25660
25673
  D = !1;
25661
25674
  }
@@ -25668,19 +25681,19 @@ const sP = /* @__PURE__ */ me({
25668
25681
  if (!c.value)
25669
25682
  return await I(null, G);
25670
25683
  const {
25671
- searchItem: q,
25684
+ searchItem: X,
25672
25685
  validate: D,
25673
- values: V
25686
+ values: B
25674
25687
  } = c.value;
25675
- return D && typeof e.validateValues == "function" ? await I(q, G ?? V) : (w(""), !0);
25688
+ return D && typeof e.validateValues == "function" ? await I(X, G ?? B) : (w(""), !0);
25676
25689
  }
25677
25690
  async function K() {
25678
- var q, D, V, oe, le;
25691
+ var X, D, B, oe, re;
25679
25692
  let G = [];
25680
- if (typeof e.getMenuList == "function" && (!((q = e.data) != null && q.length) && !c.value || c.value && c.value.type !== "condition" && (((D = c.value.searchItem) == null ? void 0 : D.async) === void 0 || c.value.searchItem.async === !0)))
25681
- g.value = !0, G = await e.getMenuList((V = c.value) == null ? void 0 : V.searchItem, l.value).catch(() => []), g.value = !1;
25693
+ if (typeof e.getMenuList == "function" && (!((X = e.data) != null && X.length) && !c.value || c.value && c.value.type !== "condition" && (((D = c.value.searchItem) == null ? void 0 : D.async) === void 0 || c.value.searchItem.async === !0)))
25694
+ g.value = !0, G = await e.getMenuList((B = c.value) == null ? void 0 : B.searchItem, l.value).catch(() => []), g.value = !1;
25682
25695
  else if (c != null && c.value)
25683
- c.value.type === "condition" ? G = e.conditions : (!((le = c.value.values) != null && le.length) || c.value.multiple || e.mode === ts.EDIT) && (G = c.value.children.filter((U) => U.name.toLocaleLowerCase().includes(l.value.toLocaleLowerCase())));
25696
+ c.value.type === "condition" ? G = e.conditions : (!((re = c.value.values) != null && re.length) || c.value.multiple || e.mode === ts.EDIT) && (G = c.value.children.filter((U) => U.name.toLocaleLowerCase().includes(l.value.toLocaleLowerCase())));
25684
25697
  else if (!((oe = l.value) != null && oe.length))
25685
25698
  G = e.data.filter((U) => !U.isSelected).slice();
25686
25699
  else for (const U of e.data.filter((se) => !se.isSelected))
@@ -25726,19 +25739,19 @@ const sP = /* @__PURE__ */ me({
25726
25739
  }
25727
25740
  }
25728
25741
  async function Z() {
25729
- const G = ie(l.value), q = (G == null ? void 0 : G.values) || [{
25742
+ const G = le(l.value), X = (G == null ? void 0 : G.values) || [{
25730
25743
  id: l.value,
25731
25744
  name: l.value
25732
25745
  }];
25733
- if (await R(q))
25746
+ if (await R(X))
25734
25747
  return t("add", G || new Xs({
25735
- ...q[0]
25748
+ ...X[0]
25736
25749
  }, "text")), l.value = "", K(), !0;
25737
25750
  }
25738
25751
  async function ee() {
25739
25752
  let G = [];
25740
25753
  if (c.value.isSpecialType()) {
25741
- const D = ie(l.value);
25754
+ const D = le(l.value);
25742
25755
  D && (c.value = D, G = D.values);
25743
25756
  }
25744
25757
  if (G = G.length ? G : c.value.str2Values(l.value), !!await R(G))
@@ -25746,28 +25759,28 @@ const sP = /* @__PURE__ */ me({
25746
25759
  }
25747
25760
  function j() {
25748
25761
  if (!r.value) return;
25749
- const G = document.createRange(), q = window.getSelection();
25750
- G.selectNodeContents(r.value), G.collapse(!1), q.removeAllRanges(), q.addRange(G);
25762
+ const G = document.createRange(), X = window.getSelection();
25763
+ G.selectNodeContents(r.value), G.collapse(!1), X.removeAllRanges(), X.addRange(G);
25751
25764
  }
25752
- function ne(G = !1, q = !0) {
25753
- G && setTimeout(K, 16), d.value = !0, f.value = !0, o.value = !1, !e.getMenuList && q && Le(j), t("focus", d.value);
25765
+ function ne(G = !1, X = !0) {
25766
+ G && setTimeout(K, 16), d.value = !0, f.value = !0, o.value = !1, !e.getMenuList && X && Le(j), t("focus", d.value);
25754
25767
  }
25755
- function re(G) {
25768
+ function ie(G) {
25756
25769
  var D;
25757
25770
  t("add", G ?? c.value);
25758
- const q = !((D = c.value) != null && D.isCustomMenu);
25759
- c.value = null, l.value = "", q && (ne(!0, q), Le(ce));
25771
+ const X = !((D = c.value) != null && D.isCustomMenu);
25772
+ c.value = null, l.value = "", X && (ne(!0, X), Le(ce));
25760
25773
  }
25761
25774
  function ce() {
25762
25775
  r.value && (l.value = "", Le(() => r.value.innerText = ""));
25763
25776
  }
25764
- function ie(G) {
25765
- const [q, D] = G.split(":");
25766
- if (q != null && q.trim()) {
25767
- const V = C.value.find((oe) => oe.name === q.trim());
25768
- if (V) {
25777
+ function le(G) {
25778
+ const [X, D] = G.split(":");
25779
+ if (X != null && X.trim()) {
25780
+ const B = C.value.find((oe) => oe.name === X.trim());
25781
+ if (B) {
25769
25782
  const oe = new Xs({
25770
- ...V
25783
+ ...B
25771
25784
  }, "default");
25772
25785
  return oe.addValues(D), oe;
25773
25786
  }
@@ -25776,8 +25789,8 @@ const sP = /* @__PURE__ */ me({
25776
25789
  function te() {
25777
25790
  var G;
25778
25791
  (G = l.value) != null && G.length && (l.value = "", Array.from(r.value.childNodes).forEach((D) => {
25779
- var V;
25780
- D.nodeType === Node.TEXT_NODE && ((V = D.textContent) != null && V.trim()) && r.value.removeChild(D);
25792
+ var B;
25793
+ D.nodeType === Node.TEXT_NODE && ((B = D.textContent) != null && B.trim()) && r.value.removeChild(D);
25781
25794
  }));
25782
25795
  }
25783
25796
  function Q() {
@@ -25794,7 +25807,7 @@ const sP = /* @__PURE__ */ me({
25794
25807
  c.value.values = [{
25795
25808
  id: G,
25796
25809
  name: G
25797
- }], z().then((q) => q && ce());
25810
+ }], z().then((X) => X && ce());
25798
25811
  }
25799
25812
  function ae() {
25800
25813
  c.value || (h.value = "");
@@ -25827,7 +25840,7 @@ const sP = /* @__PURE__ */ me({
25827
25840
  handleLogicalChange: Y,
25828
25841
  handleInputKeyup: H,
25829
25842
  handleSelectItem: $,
25830
- handleSelectConditionItem: X,
25843
+ handleSelectConditionItem: q,
25831
25844
  handleMenuFooterClick: W,
25832
25845
  resolveClassName: a,
25833
25846
  inputFocusForWrapper: Q,
@@ -26120,9 +26133,9 @@ const sP = /* @__PURE__ */ me({
26120
26133
  if ((H == null ? void 0 : H.toValueKey()) === JSON.stringify(M))
26121
26134
  H.values = M.values || [], H.logical = M.logical || ya.OR, E.push(H);
26122
26135
  else {
26123
- let z = e.data.find((X) => X.id === M.id), B = "default";
26124
- z || (z = e.conditions.find((X) => X.id === M.id), z && (B = "condition")), !z && !((F = M.values) != null && F.length) && (B = "text");
26125
- const $ = new Xs(z || M, B);
26136
+ let z = e.data.find((q) => q.id === M.id), V = "default";
26137
+ z || (z = e.conditions.find((q) => q.id === M.id), z && (V = "condition")), !z && !((F = M.values) != null && F.length) && (V = "text");
26138
+ const $ = new Xs(z || M, V);
26126
26139
  $.values = M.values || [], $.logical = M.logical || ya.OR, E.push($);
26127
26140
  }
26128
26141
  }
@@ -26166,12 +26179,12 @@ const sP = /* @__PURE__ */ me({
26166
26179
  const O = i.value.querySelector(`.${s("search-select-container")}`), E = i.value.querySelector(".search-container").clientWidth - m2 - 2, F = O.querySelectorAll(".search-container-selected:not(.overflow-selected)");
26167
26180
  let M = 0, H = 0, z = 0;
26168
26181
  for (; H === 0 && M <= E - jo && z <= F.length - 1; ) {
26169
- const B = F[z];
26170
- if (B.clientHeight > g2) {
26182
+ const V = F[z];
26183
+ if (V.clientHeight > g2) {
26171
26184
  d.value = z;
26172
26185
  return;
26173
26186
  }
26174
- M += B ? B.clientWidth + m2 : 0, M >= E - jo && (H = z), z += 1;
26187
+ M += V ? V.clientWidth + m2 : 0, M >= E - jo && (H = z), z += 1;
26175
26188
  }
26176
26189
  if (H === F.length - 1 && M <= E) {
26177
26190
  d.value = -1;
@@ -26704,7 +26717,7 @@ const uP = /* @__PURE__ */ me({
26704
26717
  return;
26705
26718
  const R = parseFloat(I);
26706
26719
  R < e.minValue ? (l.value = e.minValue, a.value = e.minValue) : R > e.maxValue ? (l.value = e.maxValue, a.value = e.maxValue) : a.value = R;
26707
- }, B = (I) => {
26720
+ }, V = (I) => {
26708
26721
  if (I === "")
26709
26722
  return;
26710
26723
  const R = parseFloat(I.toString());
@@ -26713,7 +26726,7 @@ const uP = /* @__PURE__ */ me({
26713
26726
  let R = 0;
26714
26727
  return I === "start" ? R = e.vertical ? e.maxValue : e.minValue : R = e.vertical ? e.minValue : e.maxValue, e.showButtonLabel && [a.value, r.value].includes(R) ? "0" : "1";
26715
26728
  }, {
26716
- resolveClassName: X
26729
+ resolveClassName: q
26717
26730
  } = ge(), W = (I, R) => {
26718
26731
  let K = R.stepWidth ?? R.percent ?? R;
26719
26732
  if (e.labelClick) {
@@ -26735,33 +26748,33 @@ const uP = /* @__PURE__ */ me({
26735
26748
  renderDom: () => {
26736
26749
  var I, R;
26737
26750
  return u("div", {
26738
- class: [`${X("slider")}`, e.extCls]
26751
+ class: [`${q("slider")}`, e.extCls]
26739
26752
  }, [(I = t.start) == null ? void 0 : I.call(t), u("div", {
26740
26753
  ref: d,
26741
26754
  style: C.value,
26742
- class: `${X("slider-runway")}`,
26755
+ class: `${q("slider-runway")}`,
26743
26756
  onClick: N
26744
26757
  }, [u("div", {
26745
26758
  style: S.value,
26746
- class: [`${X("slider-bar")}`, e.vertical ? "vertical" : "horizontal", {
26759
+ class: [`${q("slider-bar")}`, e.vertical ? "vertical" : "horizontal", {
26747
26760
  disable: e.disable
26748
26761
  }]
26749
26762
  }, null), e.showInterval ? w.value.map((K, Z) => Z === 0 || Z === w.value.length - 1 ? null : u("div", {
26750
26763
  key: Z,
26751
26764
  style: M(K),
26752
- class: [`${X("slider-interval")}`, {
26765
+ class: [`${q("slider-interval")}`, {
26753
26766
  vertical: e.vertical
26754
26767
  }],
26755
26768
  onClick: (ee) => W(ee, K)
26756
26769
  }, null)) : null, e.customContent ? A.value.map((K, Z) => Z === 0 || Z === A.value.length - 1 ? null : u("div", {
26757
26770
  key: Z,
26758
26771
  style: M(K.percent),
26759
- class: [`${X("slider-interval")}`, {
26772
+ class: [`${q("slider-interval")}`, {
26760
26773
  vertical: e.vertical
26761
26774
  }],
26762
26775
  onClick: (ee) => W(ee, K)
26763
26776
  }, null)) : void 0, e.showBetweenLabel || e.showIntervalLabel || e.customContent ? u("div", {
26764
- class: [`${X("slider-labels")}`, e.vertical ? "vertical" : "horizontal"]
26777
+ class: [`${q("slider-labels")}`, e.vertical ? "vertical" : "horizontal"]
26765
26778
  }, [function() {
26766
26779
  if (e.showBetweenLabel)
26767
26780
  return [u("div", {
@@ -26779,14 +26792,14 @@ const uP = /* @__PURE__ */ me({
26779
26792
  return T.value.map((K, Z) => u("div", {
26780
26793
  key: Z,
26781
26794
  style: M(K.stepWidth),
26782
- class: [`${X("slider-label")}`, e.vertical ? "vertical" : "horizontal"],
26795
+ class: [`${q("slider-label")}`, e.vertical ? "vertical" : "horizontal"],
26783
26796
  onClick: (ee) => W(ee, K)
26784
26797
  }, [K.stepLabel]));
26785
26798
  if (e.customContent)
26786
26799
  return A.value.map((K, Z) => u("div", {
26787
26800
  key: Z,
26788
26801
  style: M(K.percent),
26789
- class: [`${X("slider-label")}`, e.vertical ? "vertical" : "horizontal"],
26802
+ class: [`${q("slider-label")}`, e.vertical ? "vertical" : "horizontal"],
26790
26803
  onClick: (ee) => W(ee, K)
26791
26804
  }, [K.label]));
26792
26805
  }()]) : void 0, u(v2, {
@@ -26804,7 +26817,7 @@ const uP = /* @__PURE__ */ me({
26804
26817
  onEmitChange: F,
26805
26818
  onResetSize: L
26806
26819
  }, null) : void 0]), e.showInput && !e.vertical ? u("div", {
26807
- class: `${X("slider-input")}`
26820
+ class: `${q("slider-input")}`
26808
26821
  }, [u("div", {
26809
26822
  class: "input-item"
26810
26823
  }, [u(Ds, {
@@ -26822,7 +26835,7 @@ const uP = /* @__PURE__ */ me({
26822
26835
  min: e.minValue,
26823
26836
  modelValue: o.value,
26824
26837
  type: "number",
26825
- onChange: B
26838
+ onChange: V
26826
26839
  }, null)])] : void 0]) : void 0, (R = t.end) == null ? void 0 : R.call(t)]);
26827
26840
  }
26828
26841
  };
@@ -28156,21 +28169,21 @@ const YP = (e) => !0, XP = (e) => !0, qP = (e) => !0, JP = (e) => !0, di = (e, t
28156
28169
  const R = W.target;
28157
28170
  H(R);
28158
28171
  }
28159
- }, B = (W) => `${o}_${W}`, $ = () => {
28172
+ }, V = (W) => `${o}_${W}`, $ = () => {
28160
28173
  e.tableColumnList.forEach((W) => {
28161
28174
  if (e.getColumnAttribute(W, Ce.COL_RESIZEABLE)) {
28162
28175
  const Y = l(W);
28163
28176
  Object.keys(z).forEach((I) => {
28164
- const R = B(I);
28177
+ const R = V(I);
28165
28178
  Y != null && Y.has(R) || Y.set(R, []), Y.get(R).push(z[I]);
28166
28179
  });
28167
28180
  }
28168
28181
  });
28169
- }, X = () => {
28182
+ }, q = () => {
28170
28183
  e.tableColumnList.forEach((W) => {
28171
28184
  const Y = l(W);
28172
28185
  Object.keys(z).forEach((I) => {
28173
- const R = B(I);
28186
+ const R = V(I);
28174
28187
  if (Y != null && Y.has(R)) {
28175
28188
  const K = Y.get(R);
28176
28189
  K.length = 0;
@@ -28179,7 +28192,7 @@ const YP = (e) => !0, XP = (e) => !0, qP = (e) => !0, JP = (e) => !0, di = (e, t
28179
28192
  });
28180
28193
  };
28181
28194
  return fe(() => [e.tableColumnList], () => {
28182
- X(), $();
28195
+ q(), $();
28183
28196
  }, {
28184
28197
  immediate: !0,
28185
28198
  deep: !0
@@ -28650,41 +28663,41 @@ const vt = (e, t, n) => {
28650
28663
  enabled: !!e.filter,
28651
28664
  checked: []
28652
28665
  }, fi = (e) => o9(e) ? Ln(e) : e, HR = (e) => {
28653
- const t = Ue("table"), n = ke(/* @__PURE__ */ new WeakMap()), s = ke([]), a = sn(), r = ke([]), i = ke([]), l = ke([]), o = /* @__PURE__ */ new WeakMap(), d = (D, V = {}) => {
28654
- r.forEach((le) => le.active = !1);
28655
- const oe = r.find((le) => le.col === D);
28666
+ const t = Ue("table"), n = ke(/* @__PURE__ */ new WeakMap()), s = ke([]), a = sn(), r = ke([]), i = ke([]), l = ke([]), o = /* @__PURE__ */ new WeakMap(), d = (D, B = {}) => {
28667
+ r.forEach((re) => re.active = !1);
28668
+ const oe = r.find((re) => re.col === D);
28656
28669
  if (oe) {
28657
- Object.assign(oe, V, {
28670
+ Object.assign(oe, B, {
28658
28671
  active: !0
28659
28672
  });
28660
28673
  return;
28661
28674
  }
28662
28675
  r.push({
28663
28676
  col: D,
28664
- ...V,
28677
+ ...B,
28665
28678
  active: !0
28666
28679
  });
28667
- }, f = (D, V, oe) => {
28668
- let le = 0;
28669
- return /^\d+\.?\d*(px)?$/.test(`${D[V]}`) && (le = Number(`${D[V]}`.replace(/px/, "")), j(D, Ce.WIDTH, le), H(D, {
28670
- width: le,
28680
+ }, f = (D, B, oe) => {
28681
+ let re = 0;
28682
+ return /^\d+\.?\d*(px)?$/.test(`${D[B]}`) && (re = Number(`${D[B]}`.replace(/px/, "")), j(D, Ce.WIDTH, re), H(D, {
28683
+ width: re,
28671
28684
  left: null,
28672
28685
  right: null
28673
- })), /^\d+\.?\d*%$/.test(`${D[V]}`) && (le = Number(`${D[V]}`.replace(/%/, "")) / 100 * oe, j(D, Ce.WIDTH, le), H(D, {
28674
- width: le,
28686
+ })), /^\d+\.?\d*%$/.test(`${D[B]}`) && (re = Number(`${D[B]}`.replace(/%/, "")) / 100 * oe, j(D, Ce.WIDTH, re), H(D, {
28687
+ width: re,
28675
28688
  left: null,
28676
28689
  right: null
28677
- })), le;
28690
+ })), re;
28678
28691
  }, c = (D) => {
28679
- let V = D, oe = qs;
28680
- const le = (de, we = "width") => {
28692
+ let B = D, oe = qs;
28693
+ const re = (de, we = "width") => {
28681
28694
  const _e = [];
28682
28695
  return de.forEach(($e) => {
28683
28696
  const Ve = f($e, we, D);
28684
- V = V - Ve, [void 0, null, "auto", "undefined", "null", ""].includes($e[we]) && _e.push($e);
28685
- }), V > 0 && _e.length && (oe = V / _e.length), _e;
28686
- }, U = le(g);
28687
- le(U, "minWidth").forEach((de) => {
28697
+ B = B - Ve, [void 0, null, "auto", "undefined", "null", ""].includes($e[we]) && _e.push($e);
28698
+ }), B > 0 && _e.length && (oe = B / _e.length), _e;
28699
+ }, U = re(g);
28700
+ re(U, "minWidth").forEach((de) => {
28688
28701
  const we = oe > qs ? oe : qs;
28689
28702
  j(de, Ce.WIDTH, we), H(de, {
28690
28703
  width: we,
@@ -28692,68 +28705,68 @@ const vt = (e, t, n) => {
28692
28705
  right: null
28693
28706
  });
28694
28707
  });
28695
- }, h = (D, V = {}) => {
28696
- const oe = i.find((le) => le.col === D);
28708
+ }, h = (D, B = {}) => {
28709
+ const oe = i.find((re) => re.col === D);
28697
28710
  if (oe) {
28698
- Object.assign(oe, V);
28711
+ Object.assign(oe, B);
28699
28712
  return;
28700
28713
  }
28701
28714
  i.push({
28702
28715
  col: D,
28703
- ...V
28716
+ ...B
28704
28717
  });
28705
28718
  }, g = ke([]), v = () => {
28706
28719
  g.length = 0, g.push(...s.filter((D) => !R(D)));
28707
28720
  }, y = () => {
28708
- var D, V;
28721
+ var D, B;
28709
28722
  return e.rowDraggable ? {
28710
28723
  minWidth: 50,
28711
28724
  width: ((D = e.rowDraggable) == null ? void 0 : D.width) ?? 60,
28712
- label: ((V = e.rowDraggable) == null ? void 0 : V.label) ?? t.value.sort,
28725
+ label: ((B = e.rowDraggable) == null ? void 0 : B.label) ?? t.value.sort,
28713
28726
  type: "drag"
28714
28727
  } : null;
28715
- }, b = (D = ["rowspan", "colspan"]) => s.some((V) => D.some((oe) => typeof V[oe] == "function" || /^\d$/.test(`${V[oe]}`))), p = k(() => b(["colspan"])), S = k(() => b(["rowspan"])), w = (D, V, oe) => {
28716
- let le = oe;
28717
- const U = rl(D, V, null, null, "colspan"), se = {
28728
+ }, b = (D = ["rowspan", "colspan"]) => s.some((B) => D.some((oe) => typeof B[oe] == "function" || /^\d$/.test(`${B[oe]}`))), p = k(() => b(["colspan"])), S = k(() => b(["rowspan"])), w = (D, B, oe) => {
28729
+ let re = oe;
28730
+ const U = rl(D, B, null, null, "colspan"), se = {
28718
28731
  skipCol: !1,
28719
28732
  skipColLen: 0
28720
28733
  };
28721
- return le > 0 && (se.skipColLen = le, se.skipCol = !0, le = le - 1), U > 1 && (se.skipColLen = U, le = U - 1), {
28734
+ return re > 0 && (se.skipColLen = re, se.skipCol = !0, re = re - 1), U > 1 && (se.skipColLen = U, re = U - 1), {
28722
28735
  ...se,
28723
- skipColumnNum: le
28736
+ skipColumnNum: re
28724
28737
  };
28725
28738
  }, C = (D) => {
28726
28739
  if (/^\d+/.test(`${D.minWidth}`))
28727
28740
  return D.minWidth;
28728
- let V = qs;
28729
- return D.sort && (V = V + 18), D.filter && (V = V + 28), V;
28730
- }, T = (D, V) => {
28731
- const oe = re(D, Ce.LISTENERS);
28732
- return oe ? Array.from(oe == null ? void 0 : oe.keys()).reduce((le, U) => {
28741
+ let B = qs;
28742
+ return D.sort && (B = B + 18), D.filter && (B = B + 28), B;
28743
+ }, T = (D, B) => {
28744
+ const oe = ie(D, Ce.LISTENERS);
28745
+ return oe ? Array.from(oe == null ? void 0 : oe.keys()).reduce((re, U) => {
28733
28746
  const se = U.split("_").slice(-1)[0];
28734
- return Object.assign(le, {
28747
+ return Object.assign(re, {
28735
28748
  [se]: (de) => {
28736
- oe.get(U).forEach((we) => Reflect.apply(we, void 0, [de, D, V]));
28749
+ oe.get(U).forEach((we) => Reflect.apply(we, void 0, [de, D, B]));
28737
28750
  }
28738
28751
  });
28739
28752
  }, {}) : {};
28740
28753
  }, x = (D) => {
28741
28754
  if (!D.filter)
28742
28755
  return null;
28743
- const V = (U, se = "ig") => new RegExp(`${U}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), se), oe = (U, se) => {
28756
+ const B = (U, se = "ig") => new RegExp(`${U}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), se), oe = (U, se) => {
28744
28757
  const {
28745
28758
  match: de
28746
28759
  } = D.filter, we = al(se, vt(D, "field", [D, se]));
28747
- return de !== "fuzzy" ? U.includes(we) : U.some((_e) => V(_e, "img").test(we));
28760
+ return de !== "fuzzy" ? U.includes(we) : U.some((_e) => B(_e, "img").test(we));
28748
28761
  };
28749
28762
  return typeof D.filter.filterFn == "function" ? (U, se, de, we) => D.filter.filterFn(U, se, D, de, we) : (U, se) => U.length ? oe(U, se) : !0;
28750
28763
  }, A = (D) => {
28751
28764
  l.length = 0;
28752
- let V = 0;
28753
- const oe = [], le = y();
28754
- le && D.unshift(le);
28765
+ let B = 0;
28766
+ const oe = [], re = y();
28767
+ re && D.unshift(re);
28755
28768
  const U = (_e, $e = 1) => {
28756
- _e.length && V < $e && (V = $e), _e.forEach((Ve) => U(Ve.children ?? [], $e + 1));
28769
+ _e.length && B < $e && (B = $e), _e.forEach((Ve) => U(Ve.children ?? [], $e + 1));
28757
28770
  };
28758
28771
  U(D);
28759
28772
  const se = (_e, $e) => {
@@ -28773,7 +28786,7 @@ const vt = (e, t, n) => {
28773
28786
  isGroup: mt,
28774
28787
  offsetLeft: ze
28775
28788
  });
28776
- const Yn = o.get(Me), Ge = ((zr = Me.children) == null ? void 0 : zr.length) ?? 0, Be = ((jr = Me.children) == null ? void 0 : jr.length) ?? 1, Ke = Ge > 0 ? 1 : V - $e, fs = ct + (Ge > 0 ? Ge - 1 : 0);
28789
+ const Yn = o.get(Me), Ge = ((zr = Me.children) == null ? void 0 : zr.length) ?? 0, Be = ((jr = Me.children) == null ? void 0 : jr.length) ?? 1, Ke = Ge > 0 ? 1 : B - $e, fs = ct + (Ge > 0 ? Ge - 1 : 0);
28777
28790
  return Object.assign(Yn, {
28778
28791
  thColspan: Be > 0 ? Be : 1,
28779
28792
  parent: Ve,
@@ -28790,32 +28803,32 @@ const vt = (e, t, n) => {
28790
28803
  }, _ = (D) => o.get(D), L = () => {
28791
28804
  r.length = 0;
28792
28805
  let D = 0;
28793
- (s || []).forEach((V, oe) => {
28806
+ (s || []).forEach((B, oe) => {
28794
28807
  const {
28795
- skipCol: le,
28808
+ skipCol: re,
28796
28809
  skipColumnNum: U,
28797
28810
  skipColLen: se
28798
- } = p.value ? w(V, oe, D) : {
28811
+ } = p.value ? w(B, oe, D) : {
28799
28812
  skipCol: !1,
28800
28813
  skipColumnNum: 0,
28801
28814
  skipColLen: 0
28802
28815
  };
28803
- if (D = U, !n.has(V)) {
28816
+ if (D = U, !n.has(B)) {
28804
28817
  const {
28805
28818
  type: de,
28806
28819
  fn: we,
28807
28820
  scope: _e,
28808
28821
  active: $e,
28809
28822
  enabled: Ve
28810
- } = PR(V, e), ze = x(V), Me = e.settings ?? {}, ct = RR(V);
28811
- ct.enabled && h(V, {
28823
+ } = PR(B, e), ze = x(B), Me = e.settings ?? {}, ct = RR(B);
28824
+ ct.enabled && h(B, {
28812
28825
  [Ce.COL_FILTER_FN]: ze,
28813
28826
  [Ce.COL_FILTER_VALUES]: ct.checked ?? []
28814
- }), Ve && d(V, {
28827
+ }), Ve && d(B, {
28815
28828
  [Ce.COL_SORT_TYPE]: de,
28816
28829
  [Ce.COL_SORT_FN]: we,
28817
28830
  [Ce.COL_SORT_SCOPE]: _e
28818
- }), n.set(V, {
28831
+ }), n.set(B, {
28819
28832
  [Ce.CALC_WIDTH]: void 0,
28820
28833
  [Ce.RESIZE_WIDTH]: void 0,
28821
28834
  [Ce.COL_RECT]: ke({
@@ -28824,10 +28837,10 @@ const vt = (e, t, n) => {
28824
28837
  right: null,
28825
28838
  height: null
28826
28839
  }),
28827
- [Ce.COL_MIN_WIDTH]: C(V),
28840
+ [Ce.COL_MIN_WIDTH]: C(B),
28828
28841
  [Ce.LISTENERS]: /* @__PURE__ */ new Map(),
28829
- [Ce.WIDTH]: V.width,
28830
- [Ce.IS_HIDDEN]: S2(Me.fields ?? [], V, Me.checked ?? []),
28842
+ [Ce.WIDTH]: B.width,
28843
+ [Ce.IS_HIDDEN]: S2(Me.fields ?? [], B, Me.checked ?? []),
28831
28844
  [Ce.COL_SORT_TYPE]: P(de),
28832
28845
  [Ce.COL_SORT_FN]: we,
28833
28846
  [Ce.COL_FILTER_OBJ]: ct,
@@ -28837,7 +28850,7 @@ const vt = (e, t, n) => {
28837
28850
  [Ce.COL_SORT_ACTIVE]: P($e),
28838
28851
  [Ce.COL_IS_DRAG]: !1,
28839
28852
  [Ce.COL_SPAN]: {
28840
- skipCol: le,
28853
+ skipCol: re,
28841
28854
  skipColumnNum: U,
28842
28855
  skipColLen: se
28843
28856
  },
@@ -28845,90 +28858,90 @@ const vt = (e, t, n) => {
28845
28858
  [Ce.SELECTION_DISABLED]: !1,
28846
28859
  [Ce.SELECTION_INDETERMINATE]: !1,
28847
28860
  [Ce.SELECTION_VAL]: !1,
28848
- [Ce.COL_RESIZEABLE]: V.resizable !== !1,
28861
+ [Ce.COL_RESIZEABLE]: B.resizable !== !1,
28849
28862
  [Ce.COL_FIXED_STYLE]: ke({})
28850
28863
  });
28851
28864
  }
28852
- Object.assign(n.get(V), {
28865
+ Object.assign(n.get(B), {
28853
28866
  [Ce.COL_SPAN]: {
28854
- skipCol: le,
28867
+ skipCol: re,
28855
28868
  skipColumnNum: U,
28856
28869
  skipColLen: se
28857
28870
  },
28858
- [Ce.COL_MIN_WIDTH]: C(V)
28871
+ [Ce.COL_MIN_WIDTH]: C(B)
28859
28872
  });
28860
28873
  });
28861
- }, N = (D, V) => {
28862
- j(D, Ce.COL_FIXED_STYLE, V);
28863
- }, O = (D) => re(D, Ce.COL_FIXED_STYLE) ?? {}, E = (D) => re(D, Ce.COL_RECT), F = (D) => re(D, Ce.CALC_WIDTH), M = (D) => re(D, Ce.WIDTH), H = (D, {
28864
- left: V,
28874
+ }, N = (D, B) => {
28875
+ j(D, Ce.COL_FIXED_STYLE, B);
28876
+ }, O = (D) => ie(D, Ce.COL_FIXED_STYLE) ?? {}, E = (D) => ie(D, Ce.COL_RECT), F = (D) => ie(D, Ce.CALC_WIDTH), M = (D) => ie(D, Ce.WIDTH), H = (D, {
28877
+ left: B,
28865
28878
  right: oe,
28866
- width: le,
28879
+ width: re,
28867
28880
  height: U
28868
28881
  }) => {
28869
28882
  const se = E(D), de = {
28870
- left: V ?? se.left,
28883
+ left: B ?? se.left,
28871
28884
  right: oe ?? se.right,
28872
- width: le ?? se.width,
28885
+ width: re ?? se.width,
28873
28886
  height: U ?? se.height
28874
28887
  };
28875
28888
  j(D, Ce.COL_RECT, de);
28876
- }, z = cs((D, V) => {
28877
- s.length = 0, s.push(...A(D)), L(), v(), V == null || V();
28878
- }), B = (D, V = !1) => {
28879
- j(D, Ce.IS_HIDDEN, V);
28880
- }, $ = (D, V) => {
28881
- j(D, Ce.RESIZE_WIDTH, V);
28882
- }, X = (D, V) => {
28889
+ }, z = cs((D, B) => {
28890
+ s.length = 0, s.push(...A(D)), L(), v(), B == null || B();
28891
+ }), V = (D, B = !1) => {
28892
+ j(D, Ce.IS_HIDDEN, B);
28893
+ }, $ = (D, B) => {
28894
+ j(D, Ce.RESIZE_WIDTH, B);
28895
+ }, q = (D, B) => {
28883
28896
  const {
28884
28897
  type: oe,
28885
- fn: le,
28898
+ fn: re,
28886
28899
  scope: U,
28887
28900
  active: se
28888
- } = V, de = {
28901
+ } = B, de = {
28889
28902
  [Ce.COL_SORT_TYPE]: oe,
28890
- [Ce.COL_SORT_FN]: le,
28903
+ [Ce.COL_SORT_FN]: re,
28891
28904
  [Ce.COL_SORT_ACTIVE]: se,
28892
28905
  [Ce.COL_SORT_SCOPE]: U
28893
28906
  };
28894
28907
  [Ce.COL_SORT_TYPE, Ce.COL_SORT_FN, Ce.COL_SORT_ACTIVE, Ce.COL_SORT_SCOPE].forEach((we) => {
28895
28908
  de[we] !== void 0 && j(D, we, de[we]);
28896
28909
  });
28897
- }, W = (D, V) => {
28898
- n.has(D) && Object.assign(n.get(D)[Ce.COL_FILTER_OBJ], V);
28899
- }, Y = [Ce.WIDTH], I = (D, V = Y) => re(D, V[0]) ?? re(D, V[1]) ?? re(D, V[2]), R = (D) => re(D, Ce.IS_HIDDEN) ?? !1, K = (D) => re(D, Ce.COL_UID), Z = (D, V, oe) => {
28900
- [Ce.COL_SORT_FN, Ce.COL_SORT_SCOPE, Ce.COL_SORT_TYPE].includes(V) && d(D, {
28901
- [V]: oe
28902
- }), [Ce.COL_FILTER_FN, Ce.COL_FILTER_VALUES].includes(V) && h(D, {
28903
- [V]: oe
28910
+ }, W = (D, B) => {
28911
+ n.has(D) && Object.assign(n.get(D)[Ce.COL_FILTER_OBJ], B);
28912
+ }, Y = [Ce.WIDTH], I = (D, B = Y) => ie(D, B[0]) ?? ie(D, B[1]) ?? ie(D, B[2]), R = (D) => ie(D, Ce.IS_HIDDEN) ?? !1, K = (D) => ie(D, Ce.COL_UID), Z = (D, B, oe) => {
28913
+ [Ce.COL_SORT_FN, Ce.COL_SORT_SCOPE, Ce.COL_SORT_TYPE].includes(B) && d(D, {
28914
+ [B]: oe
28915
+ }), [Ce.COL_FILTER_FN, Ce.COL_FILTER_VALUES].includes(B) && h(D, {
28916
+ [B]: oe
28904
28917
  });
28905
- }, ee = (D, V) => {
28906
- const oe = g.findIndex((se) => se === D), le = I(D) - V, U = g[oe + 1];
28907
- U && j(U, Ce.WIDTH, I(U) + le);
28908
- }, j = (D, V, oe) => {
28909
- Z(D, V, oe);
28910
- const le = n.get(D);
28911
- if (le && Object.prototype.hasOwnProperty.call(le, V)) {
28912
- if (Ko(le[V])) {
28913
- le[V].value = oe;
28918
+ }, ee = (D, B) => {
28919
+ const oe = g.findIndex((se) => se === D), re = I(D) - B, U = g[oe + 1];
28920
+ U && j(U, Ce.WIDTH, I(U) + re);
28921
+ }, j = (D, B, oe) => {
28922
+ Z(D, B, oe);
28923
+ const re = n.get(D);
28924
+ if (re && Object.prototype.hasOwnProperty.call(re, B)) {
28925
+ if (Ko(re[B])) {
28926
+ re[B].value = oe;
28914
28927
  return;
28915
28928
  }
28916
- le[V] = oe;
28929
+ re[B] = oe;
28917
28930
  }
28918
- }, ne = (D, V) => {
28919
- const oe = V || D.checked || [], le = D.fields || [];
28931
+ }, ne = (D, B) => {
28932
+ const oe = B || D.checked || [], re = D.fields || [];
28920
28933
  s.forEach((U) => {
28921
- j(U, Ce.IS_HIDDEN, S2(le, U, oe));
28934
+ j(U, Ce.IS_HIDDEN, S2(re, U, oe));
28922
28935
  });
28923
- }, re = (D, V) => {
28924
- var le;
28925
- const oe = (le = n.get(D)) == null ? void 0 : le[V];
28936
+ }, ie = (D, B) => {
28937
+ var re;
28938
+ const oe = (re = n.get(D)) == null ? void 0 : re[B];
28926
28939
  return Ko(oe) ? oe.value : oe;
28927
- }, ce = (D, V) => {
28940
+ }, ce = (D, B) => {
28928
28941
  var oe;
28929
- return (oe = n.get(D)) == null ? void 0 : oe[V];
28930
- }, ie = (D, V) => ({
28931
- [`${a}-column-${V}`]: !1,
28942
+ return (oe = n.get(D)) == null ? void 0 : oe[B];
28943
+ }, le = (D, B) => ({
28944
+ [`${a}-column-${B}`]: !1,
28932
28945
  column_fixed: !!D.fixed,
28933
28946
  column_fixed_left: !!D.fixed,
28934
28947
  column_fixed_right: D.fixed === "right"
@@ -28950,7 +28963,7 @@ const vt = (e, t, n) => {
28950
28963
  });
28951
28964
  },
28952
28965
  clearSelectionAll: () => {
28953
- const D = g.find((V) => V.type === "selection");
28966
+ const D = g.find((B) => B.type === "selection");
28954
28967
  D && (j(D, Ce.SELECTION_VAL, !1), j(D, Ce.SELECTION_INDETERMINATE, !1));
28955
28968
  },
28956
28969
  formatColumns: L,
@@ -28958,18 +28971,18 @@ const vt = (e, t, n) => {
28958
28971
  isHiddenColumn: R,
28959
28972
  getColumnId: K,
28960
28973
  getColumnOrderWidth: I,
28961
- getColumnAttribute: re,
28962
- getHeadColumnClass: (D, V) => ({
28963
- ...ie(D, V)
28974
+ getColumnAttribute: ie,
28975
+ getHeadColumnClass: (D, B) => ({
28976
+ ...le(D, B)
28964
28977
  }),
28965
- getColumnClass: ie,
28978
+ getColumnClass: le,
28966
28979
  getFixedStlye: O,
28967
28980
  getColumnRect: E,
28968
- getColumnCustomClass: (D, V) => {
28981
+ getColumnCustomClass: (D, B) => {
28969
28982
  const oe = D.className;
28970
28983
  if (oe) {
28971
28984
  if (typeof oe == "function")
28972
- return oe(V);
28985
+ return oe(B);
28973
28986
  if (typeof oe == "string")
28974
28987
  return oe;
28975
28988
  }
@@ -28978,34 +28991,34 @@ const vt = (e, t, n) => {
28978
28991
  getColumnRefAttribute: ce,
28979
28992
  getColumnCalcWidth: F,
28980
28993
  getColumnWidth: M,
28981
- getLeftColumnsWidth: (D, V = !1) => {
28982
- let oe = !0, le = 0, U = 0;
28994
+ getLeftColumnsWidth: (D, B = !1) => {
28995
+ let oe = !0, re = 0, U = 0;
28983
28996
  for (; oe && U < g.length; ) {
28984
28997
  if (D === g[U]) {
28985
- V && (le = le + M(g[U])), oe = !1;
28998
+ B && (re = re + M(g[U])), oe = !1;
28986
28999
  break;
28987
29000
  }
28988
- le = le + M(g[U]), U = U + 1;
29001
+ re = re + M(g[U]), U = U + 1;
28989
29002
  }
28990
- return le;
29003
+ return re;
28991
29004
  },
28992
29005
  getGroupAttribute: _,
28993
29006
  getPreColumn: (D) => {
28994
- const oe = g.findIndex((le) => le === D) - 1;
29007
+ const oe = g.findIndex((re) => re === D) - 1;
28995
29008
  return g[oe];
28996
29009
  },
28997
- getColumnIndex: (D) => g.findIndex((V) => V === D),
29010
+ getColumnIndex: (D) => g.findIndex((B) => B === D),
28998
29011
  resolveEventListener: T,
28999
- setColumnIsHidden: B,
29012
+ setColumnIsHidden: V,
29000
29013
  setColumnResizeWidth: $,
29001
- setColumnSortOption: X,
29014
+ setColumnSortOption: q,
29002
29015
  setColumnFilterOption: W,
29003
29016
  setColumnAttributeBySettings: ne,
29004
29017
  setColumnAttribute: j,
29005
- setColumnSortActive: (D, V) => {
29018
+ setColumnSortActive: (D, B) => {
29006
29019
  e.colSortBehavior === m6.independent && s.forEach((oe) => {
29007
29020
  j(oe, Ce.COL_SORT_ACTIVE, !1);
29008
- }), j(D, Ce.COL_SORT_ACTIVE, V);
29021
+ }), j(D, Ce.COL_SORT_ACTIVE, B);
29009
29022
  },
29010
29023
  setFixedStyle: N,
29011
29024
  setColumnRect: H,
@@ -29191,8 +29204,8 @@ const vt = (e, t, n) => {
29191
29204
  };
29192
29205
  }, jR = (e, t) => {
29193
29206
  const n = P(null), s = P(null), a = P(null), r = P(null), i = P(0), l = P(0), o = P(0), d = P(-1e4), f = P(0), c = ke({}), h = ke([]), g = P(as), v = P(1), y = k(() => {
29194
- var le, U, se;
29195
- return (le = t.slots) != null && le.fixedBottom && ((U = e.fixedBottom) == null ? void 0 : U.position) === "relative" ? ((se = e.fixedBottom) == null ? void 0 : se.height) ?? as : 0;
29207
+ var re, U, se;
29208
+ return (re = t.slots) != null && re.fixedBottom && ((U = e.fixedBottom) == null ? void 0 : U.position) === "relative" ? ((se = e.fixedBottom) == null ? void 0 : se.height) ?? as : 0;
29196
29209
  }), {
29197
29210
  resolveClassName: b
29198
29211
  } = ge(), {
@@ -29209,27 +29222,27 @@ const vt = (e, t, n) => {
29209
29222
  "has-group": v.value > 1
29210
29223
  })), T = () => {
29211
29224
  var se, de, we, _e;
29212
- const le = f.value > 0 ? "0 0 10px rgb(0 0 0 / 12%)" : null, U = i.value > 0 ? "0 0 10px rgb(0 0 0 / 12%)" : null;
29213
- (de = (se = n.value) == null ? void 0 : se.style) == null || de.setProperty("--shadow-right", le), (_e = (we = n.value) == null ? void 0 : we.style) == null || _e.setProperty("--shadow-left", U);
29225
+ const re = f.value > 0 ? "0 0 10px rgb(0 0 0 / 12%)" : null, U = i.value > 0 ? "0 0 10px rgb(0 0 0 / 12%)" : null;
29226
+ (de = (se = n.value) == null ? void 0 : se.style) == null || de.setProperty("--shadow-right", re), (_e = (we = n.value) == null ? void 0 : we.style) == null || _e.setProperty("--shadow-left", U);
29214
29227
  }, x = m3(() => {
29215
- var le, U, se, de, we, _e, $e, Ve, ze, Me;
29216
- (U = (le = n.value) == null ? void 0 : le.style) == null || U.setProperty("--drag-offset-x", `${d.value + i.value}px`), (de = (se = n.value) == null ? void 0 : se.style) == null || de.setProperty("--drag-offset-h-x", `${d.value - 2}px`), (_e = (we = n.value) == null ? void 0 : we.style) == null || _e.setProperty("--translate-y", `${l.value}px`), (Ve = ($e = n.value) == null ? void 0 : $e.style) == null || Ve.setProperty("--translate-x", `${i.value}px`), (Me = (ze = n.value) == null ? void 0 : ze.style) == null || Me.setProperty("--translate-x-1", `-${i.value}px`), T();
29217
- }), A = (le) => {
29218
- i.value = le, x();
29219
- }, _ = (le) => {
29220
- v.value = le;
29221
- }, L = (le) => {
29222
- l.value = le, x();
29228
+ var re, U, se, de, we, _e, $e, Ve, ze, Me;
29229
+ (U = (re = n.value) == null ? void 0 : re.style) == null || U.setProperty("--drag-offset-x", `${d.value + i.value}px`), (de = (se = n.value) == null ? void 0 : se.style) == null || de.setProperty("--drag-offset-h-x", `${d.value - 2}px`), (_e = (we = n.value) == null ? void 0 : we.style) == null || _e.setProperty("--translate-y", `${l.value}px`), (Ve = ($e = n.value) == null ? void 0 : $e.style) == null || Ve.setProperty("--translate-x", `${i.value}px`), (Me = (ze = n.value) == null ? void 0 : ze.style) == null || Me.setProperty("--translate-x-1", `-${i.value}px`), T();
29230
+ }), A = (re) => {
29231
+ i.value = re, x();
29232
+ }, _ = (re) => {
29233
+ v.value = re;
29234
+ }, L = (re) => {
29235
+ l.value = re, x();
29223
29236
  }, N = () => {
29224
- var le, U, se, de, we, _e, $e, Ve, ze, Me;
29225
- (U = (le = n.value) == null ? void 0 : le.style) == null || U.setProperty("--drag-offset-x", "-1000px"), (de = (se = n.value) == null ? void 0 : se.style) == null || de.setProperty("--drag-offset-h-x", "-1000px"), (_e = (we = n.value) == null ? void 0 : we.style) == null || _e.setProperty("--translate-y", "0px"), (Ve = ($e = n.value) == null ? void 0 : $e.style) == null || Ve.setProperty("--translate-x", "0px"), (Me = (ze = n.value) == null ? void 0 : ze.style) == null || Me.setProperty("--translate-x-1", "0px");
29226
- }, O = (le) => {
29227
- d.value = le, x();
29237
+ var re, U, se, de, we, _e, $e, Ve, ze, Me;
29238
+ (U = (re = n.value) == null ? void 0 : re.style) == null || U.setProperty("--drag-offset-x", "-1000px"), (de = (se = n.value) == null ? void 0 : se.style) == null || de.setProperty("--drag-offset-h-x", "-1000px"), (_e = (we = n.value) == null ? void 0 : we.style) == null || _e.setProperty("--translate-y", "0px"), (Ve = ($e = n.value) == null ? void 0 : $e.style) == null || Ve.setProperty("--translate-x", "0px"), (Me = (ze = n.value) == null ? void 0 : ze.style) == null || Me.setProperty("--translate-x-1", "0px");
29239
+ }, O = (re) => {
29240
+ d.value = re, x();
29228
29241
  }, E = bd(e), F = k(() => vt(E, "height", ["thead"]) * v.value), M = k(() => {
29229
- var le;
29242
+ var re;
29230
29243
  return {
29231
29244
  "--row-height": `${F.value}px`,
29232
- "--background-color": d6[((le = e.thead) == null ? void 0 : le.color) ?? po.DEF1],
29245
+ "--background-color": d6[((re = e.thead) == null ? void 0 : re.color) ?? po.DEF1],
29233
29246
  paddingRight: e.scrollbar ? null : `${u6}px`
29234
29247
  };
29235
29248
  }), H = {
@@ -29238,62 +29251,62 @@ const vt = (e, t, n) => {
29238
29251
  }, z = k(() => Ae({
29239
29252
  [b("table-footer")]: !0,
29240
29253
  "is-hidden": ee.value === 0
29241
- })), B = (le) => u("div", {
29254
+ })), V = (re) => u("div", {
29242
29255
  ref: n,
29243
29256
  style: w.value,
29244
29257
  class: S.value
29245
- }, [le, u(BR, null, {
29258
+ }, [re, u(BR, null, {
29246
29259
  default: () => {
29247
29260
  var U, se;
29248
29261
  return [(se = (U = t.slots).default) == null ? void 0 : se.call(U)];
29249
29262
  }
29250
- })]), $ = (le, U, se) => u("div", {
29263
+ })]), $ = (re, U, se) => u("div", {
29251
29264
  ref: s,
29252
29265
  style: M.value,
29253
29266
  class: C.value
29254
- }, [le == null ? void 0 : le(), u("div", {
29267
+ }, [re == null ? void 0 : re(), u("div", {
29255
29268
  class: "col-resize-drag"
29256
29269
  }, null), u("div", {
29257
29270
  class: ue
29258
- }, [se == null ? void 0 : se()]), U == null ? void 0 : U()]), X = k(() => ({
29271
+ }, [se == null ? void 0 : se()]), U == null ? void 0 : U()]), q = k(() => ({
29259
29272
  position: "sticky",
29260
29273
  top: 0,
29261
29274
  zIndex: 2,
29262
29275
  ...e.prependStyle || {}
29263
29276
  })), W = () => t.slots.prepend ? u("div", {
29264
- style: X.value,
29277
+ style: q.value,
29265
29278
  class: "prepend-row"
29266
29279
  }, [t.slots.prepend()]) : null, Y = P("auto"), I = k(() => {
29267
29280
  if (/^\d+\.?\d*(px|%)$/.test(`${w.value.maxHeight}`)) {
29268
- const le = e.showHead ? F.value : 0, U = ee.value + le + y.value;
29281
+ const re = e.showHead ? F.value : 0, U = ee.value + re + y.value;
29269
29282
  return `calc(${w.value.maxHeight} - ${U}px)`;
29270
29283
  }
29271
29284
  return null;
29272
- }), R = (le) => le - F.value - y.value - ee.value, K = (le, U = !0) => {
29285
+ }), R = (re) => re - F.value - y.value - ee.value, K = (re, U = !0) => {
29273
29286
  if (U) {
29274
- Y.value = R(le);
29287
+ Y.value = R(re);
29275
29288
  return;
29276
29289
  }
29277
- Y.value = le;
29278
- }, Z = (le) => {
29279
- Y.value = le;
29290
+ Y.value = re;
29291
+ }, Z = (re) => {
29292
+ Y.value = re;
29280
29293
  }, ee = P(0), j = k(() => ({
29281
29294
  "--footer-height": `${ee.value}px`
29282
- })), ne = (le) => {
29283
- ee.value = le;
29284
- }, re = cs((...le) => {
29295
+ })), ne = (re) => {
29296
+ ee.value = re;
29297
+ }, ie = cs((...re) => {
29285
29298
  t.emit(tt.SCROLL_BOTTOM, {
29286
- ...le
29299
+ ...re
29287
29300
  });
29288
29301
  }), ce = () => {
29289
29302
  var se, de, we, _e;
29290
- const le = ((de = (se = a.value) == null ? void 0 : se.refRoot) == null ? void 0 : de.scrollWidth) ?? 0, U = ((_e = (we = a.value) == null ? void 0 : we.refRoot) == null ? void 0 : _e.offsetWidth) ?? 0;
29291
- f.value = le - U - (i == null ? void 0 : i.value);
29292
- }, ie = (le) => {
29293
- g.value = le;
29294
- }, te = (le) => {
29303
+ const re = ((de = (se = a.value) == null ? void 0 : se.refRoot) == null ? void 0 : de.scrollWidth) ?? 0, U = ((_e = (we = a.value) == null ? void 0 : we.refRoot) == null ? void 0 : _e.offsetWidth) ?? 0;
29304
+ f.value = re - U - (i == null ? void 0 : i.value);
29305
+ }, le = (re) => {
29306
+ g.value = re;
29307
+ }, te = (re) => {
29295
29308
  o.value = c.bottom ?? 0;
29296
- const U = le[1], {
29309
+ const U = re[1], {
29297
29310
  translateX: se,
29298
29311
  translateY: de,
29299
29312
  pos: we = {}
@@ -29302,7 +29315,7 @@ const vt = (e, t, n) => {
29302
29315
  const {
29303
29316
  bottom: _e
29304
29317
  } = we;
29305
- _e <= 2 && o.value > _e && re({
29318
+ _e <= 2 && o.value > _e && ie({
29306
29319
  ...we,
29307
29320
  translateX: se,
29308
29321
  translateY: de
@@ -29318,9 +29331,9 @@ const vt = (e, t, n) => {
29318
29331
  [b("table-fixed")]: !0,
29319
29332
  "has-virtual-scroll": e.virtualEnabled
29320
29333
  })), be = b("table-fixed-bottom"), ae = k(() => {
29321
- var le, U, se;
29334
+ var re, U, se;
29322
29335
  return {
29323
- minHeight: `${((le = e.fixedBottom) == null ? void 0 : le.minHeight) ?? as}px`,
29336
+ minHeight: `${((re = e.fixedBottom) == null ? void 0 : re.minHeight) ?? as}px`,
29324
29337
  position: ((U = e.fixedBottom) == null ? void 0 : U.position) ?? "absolute",
29325
29338
  height: ((se = e.fixedBottom) == null ? void 0 : se.height) ?? null
29326
29339
  };
@@ -29329,23 +29342,23 @@ const vt = (e, t, n) => {
29329
29342
  ce(), N();
29330
29343
  });
29331
29344
  const G = () => {
29332
- const le = p == null ? void 0 : p();
29333
- return le ? u("div", {
29345
+ const re = p == null ? void 0 : p();
29346
+ return re ? u("div", {
29334
29347
  style: ae.value,
29335
29348
  class: be
29336
- }, [le]) : null;
29349
+ }, [re]) : null;
29337
29350
  };
29338
29351
  return {
29339
- renderContainer: B,
29352
+ renderContainer: V,
29340
29353
  renderHeader: $,
29341
- renderBody: (le, U, se) => u(io, {
29354
+ renderBody: (re, U, se) => u(io, {
29342
29355
  ref: a,
29343
29356
  height: Y.value,
29344
29357
  class: H,
29345
29358
  contentClassName: J.value,
29346
29359
  enabled: e.virtualEnabled,
29347
29360
  lineHeight: g.value,
29348
- list: le,
29361
+ list: re,
29349
29362
  maxHeight: I.value,
29350
29363
  rowKey: e.rowKey,
29351
29364
  scrollEvent: !0,
@@ -29363,11 +29376,11 @@ const vt = (e, t, n) => {
29363
29376
  class: ue.value
29364
29377
  }, [se == null ? void 0 : se()])]
29365
29378
  }),
29366
- renderFooter: (le) => u("div", {
29379
+ renderFooter: (re) => u("div", {
29367
29380
  ref: r,
29368
29381
  style: j.value,
29369
29382
  class: z.value
29370
- }, [le]),
29383
+ }, [re]),
29371
29384
  renderFixedBottom: () => G(),
29372
29385
  getBodyHeight: R,
29373
29386
  setBodyHeight: K,
@@ -29375,11 +29388,11 @@ const vt = (e, t, n) => {
29375
29388
  setFootHeight: ne,
29376
29389
  setTranslateX: A,
29377
29390
  setDragOffsetX: O,
29378
- setFixedColumns: (le) => {
29379
- h.length = 0, h.push(...le);
29391
+ setFixedColumns: (re) => {
29392
+ h.length = 0, h.push(...re);
29380
29393
  },
29381
29394
  setOffsetRight: ce,
29382
- setLineHeight: ie,
29395
+ setLineHeight: le,
29383
29396
  setHeaderRowCount: _,
29384
29397
  initRootStyleVars: N,
29385
29398
  refRoot: n,
@@ -29852,8 +29865,8 @@ const mi = 32, YR = /* @__PURE__ */ me({
29852
29865
  [n("table-head-filter")]: !0
29853
29866
  }), g = P(null), v = ($) => {
29854
29867
  f.isOpen = $, $ && setTimeout(() => {
29855
- var X;
29856
- (X = g.value) == null || X.reset();
29868
+ var q;
29869
+ (q = g.value) == null || q.reset();
29857
29870
  }), $ || (l.value = "");
29858
29871
  }, y = `light ${n("table-head-filter")}`, b = k(() => {
29859
29872
  const {
@@ -29869,9 +29882,9 @@ const mi = 32, YR = /* @__PURE__ */ me({
29869
29882
  }), w = k(() => {
29870
29883
  const {
29871
29884
  height: $,
29872
- list: X = []
29885
+ list: q = []
29873
29886
  } = r.value;
29874
- return $ || X.length * mi;
29887
+ return $ || q.length * mi;
29875
29888
  }), C = k(() => {
29876
29889
  const $ = mi * 2;
29877
29890
  return b.value.length > p ? S.value : $;
@@ -29879,13 +29892,13 @@ const mi = 32, YR = /* @__PURE__ */ me({
29879
29892
  maxHeight: `${S.value}px`,
29880
29893
  minHeight: `${C.value}px`,
29881
29894
  height: /%$/.test(`${w.value}`) ? w.value : `${w.value}px`
29882
- })), x = ($, X = "ig") => new RegExp(`${$}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), X), A = () => {
29895
+ })), x = ($, q = "ig") => new RegExp(`${$}`.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), q), A = () => {
29883
29896
  _(!0), t("filterSave", f.checked), f.isOpen = !1;
29884
29897
  }, _ = ($ = !1) => {
29885
29898
  const {
29886
- disabled: X
29899
+ disabled: q
29887
29900
  } = N(O, a.value.confirm);
29888
- if (X || $) {
29901
+ if (q || $) {
29889
29902
  if (r.value === "custom") {
29890
29903
  t("change", f.checked, null), f.isOpen = !1;
29891
29904
  return;
@@ -29894,65 +29907,65 @@ const mi = 32, YR = /* @__PURE__ */ me({
29894
29907
  }
29895
29908
  }, L = () => {
29896
29909
  f.checked.length && (f.checked.length = 0, f.isOpen = !1, t("change", f.checked), t("reset", f.checked));
29897
- }, N = ($, X) => ({
29910
+ }, N = ($, q) => ({
29898
29911
  disabled: $ === "disabled" || $ === !1,
29899
- text: typeof $ == "string" ? $ : X
29912
+ text: typeof $ == "string" ? $ : q
29900
29913
  }), {
29901
29914
  btnSave: O,
29902
29915
  btnReset: E
29903
29916
  } = r.value, F = () => {
29904
29917
  const {
29905
29918
  disabled: $,
29906
- text: X
29919
+ text: q
29907
29920
  } = N(O, a.value.confirm);
29908
29921
  return $ ? u("span", {
29909
29922
  class: "btn-filter-save disabled"
29910
- }, [X]) : u(yt, {
29923
+ }, [q]) : u(yt, {
29911
29924
  style: "width: 56px; margin-right: 8px;",
29912
29925
  size: "small",
29913
29926
  theme: "primary",
29914
29927
  onClick: A
29915
- }, T2(X) ? X : {
29916
- default: () => [X]
29928
+ }, T2(q) ? q : {
29929
+ default: () => [q]
29917
29930
  });
29918
29931
  }, M = () => {
29919
29932
  const {
29920
29933
  disabled: $,
29921
- text: X
29934
+ text: q
29922
29935
  } = N(E, a.value.reset);
29923
29936
  return $ ? "" : u(yt, {
29924
29937
  style: "width: 56px;",
29925
29938
  disabled: f.checked.length === 0,
29926
29939
  size: "small",
29927
29940
  onClick: L
29928
- }, T2(X) ? X : {
29929
- default: () => [X]
29941
+ }, T2(q) ? q : {
29942
+ default: () => [q]
29930
29943
  });
29931
- }, H = ($, X) => {
29944
+ }, H = ($, q) => {
29932
29945
  const W = new Set(f.checked);
29933
- $ ? W.add(X.value) : W.delete(X.value), f.checked.length = 0, f.checked.push(...Array.from(W)), r.value.checked = [...f.checked], _();
29946
+ $ ? W.add(q.value) : W.delete(q.value), f.checked.length = 0, f.checked.push(...Array.from(W)), r.value.checked = [...f.checked], _();
29934
29947
  }, z = async () => {
29935
29948
  await new Promise(($) => setTimeout($, 0)), b.value.forEach(($) => {
29936
29949
  Object.prototype.hasOwnProperty.call($, "showOverflowTooltip") || ($.showOverflowTooltip = s(`list-item-${$.value}-ref`, o, d));
29937
29950
  });
29938
- }, B = ($) => $.length ? (z(), $.map((X) => Ne(u("div", {
29939
- key: X.value,
29951
+ }, V = ($) => $.length ? (z(), $.map((q) => Ne(u("div", {
29952
+ key: q.value,
29940
29953
  ref: o,
29941
29954
  class: "list-item"
29942
29955
  }, [u(Mt, {
29943
- checked: f.checked.includes(X.value),
29956
+ checked: f.checked.includes(q.value),
29944
29957
  immediateEmitChange: !1,
29945
- label: X.value,
29946
- modelValue: f.checked.includes(X.value),
29947
- onChange: (W) => H(W, X)
29958
+ label: q.value,
29959
+ modelValue: f.checked.includes(q.value),
29960
+ onChange: (W) => H(W, q)
29948
29961
  }, {
29949
29962
  default: () => [u("span", {
29950
- ref: (W) => d.value[`list-item-${X.value}-ref`] = W
29951
- }, [`${X.text}`])]
29963
+ ref: (W) => d.value[`list-item-${q.value}-ref`] = W
29964
+ }, [`${q.text}`])]
29952
29965
  })]), [[Ot("bk-tooltips"), {
29953
- content: X.tipKey || X.text,
29966
+ content: q.tipKey || q.text,
29954
29967
  placement: "right",
29955
- disabled: !X.showOverflowTooltip
29968
+ disabled: !q.showOverflowTooltip
29956
29969
  }]]))) : u("div", {
29957
29970
  class: "list-item is-empty"
29958
29971
  }, [a.value.emptyText]);
@@ -29985,7 +29998,7 @@ const mi = 32, YR = /* @__PURE__ */ me({
29985
29998
  default: () => [u("div", {
29986
29999
  style: T.value,
29987
30000
  class: "content-items"
29988
- }, [B(b.value)])]
30001
+ }, [V(b.value)])]
29989
30002
  }), u("div", {
29990
30003
  class: "content-footer"
29991
30004
  }, [F(), M()])])
@@ -30051,9 +30064,9 @@ const JR = ({
30051
30064
  const i = P(t.getColumnAttribute(a, Ce.COL_SORT_TYPE)), l = P(t.getColumnAttribute(a, Ce.COL_SORT_ACTIVE)), o = Ln(a), d = P(null), f = (H) => {
30052
30065
  const {
30053
30066
  isCancel: z,
30054
- type: B = t.getColumnRefAttribute(a, Ce.COL_SORT_TYPE)
30055
- } = H ?? {}, $ = z ? bt.NULL : B, X = C6(a, $, e.sortValFormat);
30056
- t.setColumnAttribute(a, Ce.COL_SORT_TYPE, $), t.setColumnAttribute(a, Ce.COL_SORT_FN, X), t.setColumnSortActive(a, $ !== bt.NULL), i.value = $, l.value = $ !== bt.NULL, s.emit(tt.COLUMN_SORT, {
30067
+ type: V = t.getColumnRefAttribute(a, Ce.COL_SORT_TYPE)
30068
+ } = H ?? {}, $ = z ? bt.NULL : V, q = C6(a, $, e.sortValFormat);
30069
+ t.setColumnAttribute(a, Ce.COL_SORT_TYPE, $), t.setColumnAttribute(a, Ce.COL_SORT_FN, q), t.setColumnSortActive(a, $ !== bt.NULL), i.value = $, l.value = $ !== bt.NULL, s.emit(tt.COLUMN_SORT, {
30057
30070
  column: a,
30058
30071
  index: r,
30059
30072
  type: $
@@ -30075,7 +30088,7 @@ const JR = ({
30075
30088
  t.setColumnAttribute(a, Ce.COL_FILTER_VALUES, $), s.emit(tt.COLUMN_FILTER_SAVE, {
30076
30089
  values: $
30077
30090
  });
30078
- }, B = () => {
30091
+ }, V = () => {
30079
30092
  t.setColumnAttribute(a, Ce.COL_FILTER_VALUES, []), s.emit(tt.COLUMN_FILTER, {
30080
30093
  checked: [],
30081
30094
  column: rr(a),
@@ -30087,7 +30100,7 @@ const JR = ({
30087
30100
  column: a,
30088
30101
  onChange: H,
30089
30102
  onFilterSave: z,
30090
- onReset: B
30103
+ onReset: V
30091
30104
  }, null);
30092
30105
  }, g = bd(e), {
30093
30106
  cellFn: v
@@ -30104,13 +30117,13 @@ const JR = ({
30104
30117
  H.unshift(u("span", {
30105
30118
  class: "head-text"
30106
30119
  }, [z]));
30107
- const B = typeof z == "string" ? z : void 0, $ = {
30120
+ const V = typeof z == "string" ? z : void 0, $ = {
30108
30121
  "has-sort": !!a.sort,
30109
30122
  "has-filter": !!a.filter
30110
30123
  };
30111
30124
  return {
30112
30125
  cells: H,
30113
- showTitle: B,
30126
+ showTitle: V,
30114
30127
  headClass: $
30115
30128
  };
30116
30129
  }, p = (H, z = "current") => {
@@ -30124,12 +30137,12 @@ const JR = ({
30124
30137
  }, {
30125
30138
  resolveClassName: w
30126
30139
  } = ge(), C = w("across-page-popover"), T = () => {
30127
- const H = t.getColumnAttribute(a, Ce.SELECTION_DISABLED), z = t.getColumnAttribute(a, Ce.SELECTION_VAL), B = t.getColumnAttribute(a, Ce.SELECTION_INDETERMINATE);
30140
+ const H = t.getColumnAttribute(a, Ce.SELECTION_DISABLED), z = t.getColumnAttribute(a, Ce.SELECTION_VAL), V = t.getColumnAttribute(a, Ce.SELECTION_INDETERMINATE);
30128
30141
  return a.acrossPage ? u("span", {
30129
30142
  class: "across-page-cell"
30130
30143
  }, [u(Mt, {
30131
30144
  disabled: H,
30132
- indeterminate: B,
30145
+ indeterminate: V,
30133
30146
  modelValue: z,
30134
30147
  outline: !0,
30135
30148
  onChange: ($) => p($)
@@ -30153,7 +30166,7 @@ const JR = ({
30153
30166
  }, [at("跨页全选")])])
30154
30167
  })]) : u(Mt, {
30155
30168
  disabled: H,
30156
- indeterminate: B,
30169
+ indeterminate: V,
30157
30170
  modelValue: z,
30158
30171
  onChange: ($) => p($)
30159
30172
  }, null);
@@ -30163,7 +30176,7 @@ const JR = ({
30163
30176
  const {
30164
30177
  headClass: H,
30165
30178
  showTitle: z,
30166
- cells: B
30179
+ cells: V
30167
30180
  } = b();
30168
30181
  return u(Hc, {
30169
30182
  class: H,
@@ -30174,8 +30187,8 @@ const JR = ({
30174
30187
  parentSetting: e.showOverflowTooltip,
30175
30188
  resizerWay: e.resizerWay,
30176
30189
  title: z
30177
- }, qR(B) ? B : {
30178
- default: () => [B]
30190
+ }, qR(V) ? V : {
30191
+ default: () => [V]
30179
30192
  });
30180
30193
  }, A = () => {
30181
30194
  if (!t.getColumnAttribute(a, Ce.COL_IS_DRAG) && a.sort && !a.filter) {
@@ -30276,7 +30289,7 @@ const eH = ({
30276
30289
  if (n.isHiddenColumn(H))
30277
30290
  return null;
30278
30291
  const {
30279
- getTH: B
30292
+ getTH: V
30280
30293
  } = JR({
30281
30294
  props: e,
30282
30295
  ctx: t,
@@ -30285,7 +30298,7 @@ const eH = ({
30285
30298
  index: z,
30286
30299
  rows: s
30287
30300
  });
30288
- return B();
30301
+ return V();
30289
30302
  })]))])]);
30290
30303
  }, c = () => e.showHead ? u("table", {
30291
30304
  cellpadding: 0,
@@ -30326,8 +30339,8 @@ const eH = ({
30326
30339
  let E = {};
30327
30340
  const F = /* @__PURE__ */ new WeakMap(), M = n.needRowSpan.value;
30328
30341
  return u("tbody", null, [O.map((H, z) => {
30329
- const B = x(H, z, E, O, F, M);
30330
- return E = H, B;
30342
+ const V = x(H, z, E, O, F, M);
30343
+ return E = H, V;
30331
30344
  }), h()]);
30332
30345
  }, v = s.getRowHeight, y = (O) => {
30333
30346
  l = O;
@@ -30353,24 +30366,24 @@ const eH = ({
30353
30366
  }, C = (O, E, F, M) => {
30354
30367
  t.emit(tt.ROW_MOUSE_LEAVE, O, E, F, M);
30355
30368
  }, T = (O, E, F, M, H) => {
30356
- var X;
30369
+ var q;
30357
30370
  H.has(O) || H.set(O, /* @__PURE__ */ new WeakMap()), H.get(O).has(M) || H.get(O).set(M, {
30358
30371
  skipRowLen: 0,
30359
30372
  skipRow: !1
30360
30373
  });
30361
30374
  let {
30362
30375
  skipRowLen: z = 0
30363
- } = ((X = H.get(F)) == null ? void 0 : X.get(M)) ?? {}, B = !1;
30376
+ } = ((q = H.get(F)) == null ? void 0 : q.get(M)) ?? {}, V = !1;
30364
30377
  const $ = rl(M, null, O, E, "rowspan");
30365
- return z > 1 ? (z = z - 1, B = !0) : $ > 1 && (z = $, B = !1), Object.assign(H.get(O).get(M), {
30378
+ return z > 1 ? (z = z - 1, V = !0) : $ > 1 && (z = $, V = !1), Object.assign(H.get(O).get(M), {
30366
30379
  skipRowLen: z,
30367
- skipRow: B
30380
+ skipRow: V
30368
30381
  }), {
30369
30382
  skipRowLen: z,
30370
- skipRow: B
30383
+ skipRow: V
30371
30384
  };
30372
- }, x = (O, E, F, M, H, z, B = !1) => {
30373
- const $ = M.length, X = [...Gs(e.rowStyle, [O, E]), {
30385
+ }, x = (O, E, F, M, H, z, V = !1) => {
30386
+ const $ = M.length, q = [...Gs(e.rowStyle, [O, E]), {
30374
30387
  "--row-height": `${v(O, E)}px`
30375
30388
  }], W = [...Gs(e.rowClass, [O, E]), `hover-${e.rowHover}`, E % 2 === 1 && e.stripe ? "stripe-row" : ""], Y = s.getRowAttribute(O, Ie.ROW_UID);
30376
30389
  return [u(hi, {
@@ -30378,7 +30391,7 @@ const eH = ({
30378
30391
  }, {
30379
30392
  default: () => [u("tr", he({
30380
30393
  key: Y,
30381
- style: X,
30394
+ style: q,
30382
30395
  class: W,
30383
30396
  "data-row-index": E,
30384
30397
  draggable: !!e.rowDraggable,
@@ -30394,14 +30407,14 @@ const eH = ({
30394
30407
  skipCol: j
30395
30408
  } = n.getColumnAttribute(I, Ce.COL_SPAN), {
30396
30409
  skipRow: ne
30397
- } = z && !B ? T(O, E, F, I, H) : {
30410
+ } = z && !V ? T(O, E, F, I, H) : {
30398
30411
  skipRow: !1
30399
- }, re = {
30412
+ }, ie = {
30400
30413
  "expand-cell": I.type === "expand"
30401
30414
  };
30402
30415
  if (!ne && !j) {
30403
30416
  let ce;
30404
- const ie = [n.getColumnClass(I, R), n.getColumnCustomClass(I, O), I.align || e.align, ...Gs(e.cellClass, [I, R, O, E]), {
30417
+ const le = [n.getColumnClass(I, R), n.getColumnCustomClass(I, O), I.align || e.align, ...Gs(e.cellClass, [I, R, O, E]), {
30405
30418
  "expand-row": s.getRowAttribute(O, Ie.ROW_EXPAND),
30406
30419
  "is-last": E + ee >= $
30407
30420
  }], te = `${Y}_${R}`, Q = `${Y}_${R}_cell`, {
@@ -30414,7 +30427,7 @@ const eH = ({
30414
30427
  row: O,
30415
30428
  index: E,
30416
30429
  column: I,
30417
- isChild: B,
30430
+ isChild: V,
30418
30431
  multiShiftKey: o
30419
30432
  }), ue = (be, ae) => {
30420
30433
  const G = {
@@ -30432,7 +30445,7 @@ const eH = ({
30432
30445
  return u("td", {
30433
30446
  key: te,
30434
30447
  style: K,
30435
- class: ie,
30448
+ class: le,
30436
30449
  colspan: Z,
30437
30450
  "data-id": te,
30438
30451
  rowspan: ee,
@@ -30440,11 +30453,11 @@ const eH = ({
30440
30453
  onDblclick: (be) => ue(be, tt.CELL_DBL_CLICK)
30441
30454
  }, [u(Hc, {
30442
30455
  key: Q,
30443
- class: re,
30456
+ class: ie,
30444
30457
  column: I,
30445
30458
  "data-id": Q,
30446
30459
  intersectionObserver: e.intersectionObserver,
30447
- isExpandChild: B,
30460
+ isExpandChild: V,
30448
30461
  observerResize: e.observerResize,
30449
30462
  parentSetting: e.showOverflowTooltip,
30450
30463
  row: O
@@ -30459,18 +30472,18 @@ const eH = ({
30459
30472
  if (s.getRowAttribute(O, Ie.ROW_EXPAND)) {
30460
30473
  const H = [...E, {
30461
30474
  row_expend: !0
30462
- }], B = `${s.getRowAttribute(O, Ie.ROW_UID)}_expand`;
30463
- return Array.isArray(O.children) ? O.children.map(($, X) => x($, X, {}, O, {}, !1, !0)) : u(hi, {
30464
- key: B
30475
+ }], V = `${s.getRowAttribute(O, Ie.ROW_UID)}_expand`;
30476
+ return Array.isArray(O.children) ? O.children.map(($, q) => x($, q, {}, O, {}, !1, !0)) : u(hi, {
30477
+ key: V
30465
30478
  }, {
30466
30479
  default: () => {
30467
- var $, X;
30480
+ var $, q;
30468
30481
  return [u("tr", {
30469
30482
  class: H
30470
30483
  }, [u("td", {
30471
30484
  colspan: n.visibleColumns.length,
30472
30485
  rowspan: 1
30473
- }, [((X = ($ = t.slots).expandRow) == null ? void 0 : X.call($, O)) ?? u("div", {
30486
+ }, [((q = ($ = t.slots).expandRow) == null ? void 0 : q.call($, O)) ?? u("div", {
30474
30487
  class: "expand-cell-ctx"
30475
30488
  }, [at("Expand Row")])])])];
30476
30489
  }
@@ -30508,17 +30521,17 @@ const eH = ({
30508
30521
  setDragEvents: y
30509
30522
  };
30510
30523
  }, tH = (e) => {
30511
- const t = ke(/* @__PURE__ */ new WeakMap()), n = P([]), s = ke([]), a = (B) => e.isRowSelectEnable ? typeof e.isSelectedFn == "function" ? e.isSelectedFn(l(B)) : Array.isArray(e.checked) ? e.checked.some(($) => typeof $ != "object" ? e.selectionKey.length && Object.prototype.hasOwnProperty.call(B, e.selectionKey) ? LR(B, e.selectionKey) === $ : (console.warn("props.selectionKey is undefined or null or empty"), !1) : fi($) === fi(B)) : !1 : !1, r = (B, $, X) => typeof e.rowHeight == "function" || /^\d+/.test(`${e.rowHeight}`) ? vt(e, "rowHeight", [{
30524
+ const t = ke(/* @__PURE__ */ new WeakMap()), n = P([]), s = ke([]), a = (V) => e.isRowSelectEnable ? typeof e.isSelectedFn == "function" ? e.isSelectedFn(l(V)) : Array.isArray(e.checked) ? e.checked.some(($) => typeof $ != "object" ? e.selectionKey.length && Object.prototype.hasOwnProperty.call(V, e.selectionKey) ? LR(V, e.selectionKey) === $ : (console.warn("props.selectionKey is undefined or null or empty"), !1) : fi($) === fi(V)) : !1 : !1, r = (V, $, q) => typeof e.rowHeight == "function" || /^\d+/.test(`${e.rowHeight}`) ? vt(e, "rowHeight", [{
30512
30525
  index: $,
30513
- type: X ?? "tbody",
30514
- row: B
30526
+ type: q ?? "tbody",
30527
+ row: V
30515
30528
  }]) : as, i = () => {
30516
- let B = !1, $ = !1;
30517
- n.value.forEach((X, W) => {
30518
- const Y = fi(X);
30529
+ let V = !1, $ = !1;
30530
+ n.value.forEach((q, W) => {
30531
+ const Y = fi(q);
30519
30532
  let I = MR(Y, sn(), e);
30520
30533
  const R = a(Y);
30521
- R ? B = !0 : $ = !0, t.has(Y) || t.set(Y, {
30534
+ R ? V = !0 : $ = !0, t.has(Y) || t.set(Y, {
30522
30535
  [Ie.ROW_EXPAND]: !1,
30523
30536
  [Ie.ROW_SELECTION]: R,
30524
30537
  [Ie.ROW_UID]: I,
@@ -30526,110 +30539,110 @@ const eH = ({
30526
30539
  [Ie.ROW_SELECTION_INDETERMINATE]: !1
30527
30540
  });
30528
30541
  const K = t.get(Y);
30529
- I = K[Ie.ROW_UID], K[Ie.ROW_INDEX] = W + 1, K[Ie.ROW_HEIGHT] = r(X, W);
30542
+ I = K[Ie.ROW_UID], K[Ie.ROW_INDEX] = W + 1, K[Ie.ROW_HEIGHT] = r(q, W);
30530
30543
  }), t.set(ys, {
30531
- [Ie.ROW_SELECTION]: B,
30532
- [Ie.ROW_SELECTION_INDETERMINATE]: B && $
30544
+ [Ie.ROW_SELECTION]: V,
30545
+ [Ie.ROW_SELECTION_INDETERMINATE]: V && $
30533
30546
  });
30534
- }, l = (B, $) => ({
30535
- row: B,
30536
- index: $ ?? o(B, Ie.ROW_INDEX),
30547
+ }, l = (V, $) => ({
30548
+ row: V,
30549
+ index: $ ?? o(V, Ie.ROW_INDEX),
30537
30550
  isSelectAll: o(ys, Ie.ROW_SELECTION)
30538
- }), o = (B, $) => {
30539
- var X;
30540
- return (X = t.get(B)) == null ? void 0 : X[$];
30541
- }, d = (B) => {
30551
+ }), o = (V, $) => {
30552
+ var q;
30553
+ return (q = t.get(V)) == null ? void 0 : q[$];
30554
+ }, d = (V) => {
30542
30555
  t.set(PP, {
30543
- [Ie.ROW_SPAN]: B
30556
+ [Ie.ROW_SPAN]: V
30544
30557
  });
30545
- }, f = (B, $) => il(e, {
30546
- row: B,
30558
+ }, f = (V, $) => il(e, {
30559
+ row: V,
30547
30560
  index: $
30548
- }) ? o(B, Ie.ROW_SELECTION) : !0, c = (B) => {
30561
+ }) ? o(V, Ie.ROW_SELECTION) : !0, c = (V) => {
30549
30562
  if (typeof e.isSelectedFn == "function") {
30550
- x(B, e.isSelectedFn(l(B)));
30563
+ x(V, e.isSelectedFn(l(V)));
30551
30564
  return;
30552
30565
  }
30553
- x(B, !o(B, Ie.ROW_SELECTION));
30554
- }, h = (B) => {
30555
- const $ = B ?? !g();
30566
+ x(V, !o(V, Ie.ROW_SELECTION));
30567
+ }, h = (V) => {
30568
+ const $ = V ?? !g();
30556
30569
  if (t.set(ys, {
30557
30570
  [Ie.ROW_SELECTION]: $,
30558
30571
  [Ie.ROW_SELECTION_INDETERMINATE]: !1
30559
30572
  }), e.acrossAll) {
30560
- n.value.forEach((X, W) => x(X, $, W));
30573
+ n.value.forEach((q, W) => x(q, $, W));
30561
30574
  return;
30562
30575
  }
30563
- s.forEach((X, W) => x(X, $, W));
30564
- }, g = () => e.acrossAll ? n.value.every((B, $) => f(B, $)) : s.every((B, $) => f(B, $)), v = () => e.acrossAll ? n.value.some((B) => o(B, Ie.ROW_SELECTION)) : s.some((B) => o(B, Ie.ROW_SELECTION)), y = (B) => {
30565
- h(B);
30576
+ s.forEach((q, W) => x(q, $, W));
30577
+ }, g = () => e.acrossAll ? n.value.every((V, $) => f(V, $)) : s.every((V, $) => f(V, $)), v = () => e.acrossAll ? n.value.some((V) => o(V, Ie.ROW_SELECTION)) : s.some((V) => o(V, Ie.ROW_SELECTION)), y = (V) => {
30578
+ h(V);
30566
30579
  }, b = () => {
30567
- const B = g();
30568
- T(ys, Ie.ROW_SELECTION, B), T(ys, Ie.ROW_SELECTION_INDETERMINATE, !B && v());
30569
- }, p = () => o(ys, Ie.ROW_SELECTION_INDETERMINATE), S = () => o(ys, Ie.ROW_SELECTION), w = (B, $) => {
30580
+ const V = g();
30581
+ T(ys, Ie.ROW_SELECTION, V), T(ys, Ie.ROW_SELECTION_INDETERMINATE, !V && v());
30582
+ }, p = () => o(ys, Ie.ROW_SELECTION_INDETERMINATE), S = () => o(ys, Ie.ROW_SELECTION), w = (V, $) => {
30570
30583
  if ($) {
30571
- T($, Ie.ROW_HEIGHT, B);
30584
+ T($, Ie.ROW_HEIGHT, V);
30572
30585
  return;
30573
30586
  }
30574
- n.value.forEach((X) => T(X, Ie.ROW_HEIGHT, B));
30575
- }, C = (B, $, X) => B ? o(B, Ie.ROW_HEIGHT) : r(B, $, X), T = (B, $, X) => {
30576
- const W = fi(B), Y = t.get(W);
30577
- Y && Object.prototype.hasOwnProperty.call(Y, $) && (Y[$] = X);
30578
- }, x = (B, $, X) => {
30587
+ n.value.forEach((q) => T(q, Ie.ROW_HEIGHT, V));
30588
+ }, C = (V, $, q) => V ? o(V, Ie.ROW_HEIGHT) : r(V, $, q), T = (V, $, q) => {
30589
+ const W = fi(V), Y = t.get(W);
30590
+ Y && Object.prototype.hasOwnProperty.call(Y, $) && (Y[$] = q);
30591
+ }, x = (V, $, q) => {
30579
30592
  let W = $;
30580
- typeof e.isSelectedFn == "function" && (W = e.isSelectedFn(l(B, X))), il(e, {
30581
- row: B,
30582
- index: X ?? o(B, Ie.ROW_INDEX)
30583
- }) && T(B, Ie.ROW_SELECTION, W), b();
30584
- }, A = (B, $) => {
30585
- T(B, Ie.ROW_INDEX, $);
30586
- }, _ = (B, $) => {
30587
- T(B, Ie.ROW_EXPAND, $);
30588
- }, L = (B) => {
30593
+ typeof e.isSelectedFn == "function" && (W = e.isSelectedFn(l(V, q))), il(e, {
30594
+ row: V,
30595
+ index: q ?? o(V, Ie.ROW_INDEX)
30596
+ }) && T(V, Ie.ROW_SELECTION, W), b();
30597
+ }, A = (V, $) => {
30598
+ T(V, Ie.ROW_INDEX, $);
30599
+ }, _ = (V, $) => {
30600
+ T(V, Ie.ROW_EXPAND, $);
30601
+ }, L = (V) => {
30589
30602
  let $ = 0;
30590
- const X = 50, W = () => {
30591
- const Y = $ + X;
30592
- s.push(...B.slice($, Y)), Y < B.length && ($ = Y, setTimeout(() => {
30603
+ const q = 50, W = () => {
30604
+ const Y = $ + q;
30605
+ s.push(...V.slice($, Y)), Y < V.length && ($ = Y, setTimeout(() => {
30593
30606
  W();
30594
30607
  }));
30595
30608
  };
30596
- if (B.length > X) {
30609
+ if (V.length > q) {
30597
30610
  W();
30598
30611
  return;
30599
30612
  }
30600
- s.push(...B);
30613
+ s.push(...V);
30601
30614
  };
30602
30615
  return {
30603
30616
  setRowIndex: A,
30604
30617
  setRowExpand: _,
30605
30618
  isRowChecked: f,
30606
- setPageRowList: (B) => {
30607
- s.length = 0, L(B);
30619
+ setPageRowList: (V) => {
30620
+ s.length = 0, L(V);
30608
30621
  },
30609
- setTableRowList: (B) => {
30610
- n.value.length = 0, n.value.push(...B), i();
30622
+ setTableRowList: (V) => {
30623
+ n.value.length = 0, n.value.push(...V), i();
30611
30624
  },
30612
30625
  clearSelection: () => {
30613
- n.value.forEach((B) => x(B, !1));
30626
+ n.value.forEach((V) => x(V, !1));
30614
30627
  },
30615
30628
  formatDataSchema: i,
30616
30629
  toggleRowSelection: c,
30617
30630
  setRowSelectionAll: y,
30618
30631
  setRowSelection: x,
30619
- setAllRowExpand: (B) => {
30620
- n.value.forEach(($) => _($, B ?? !0));
30632
+ setAllRowExpand: (V) => {
30633
+ n.value.forEach(($) => _($, V ?? !0));
30621
30634
  },
30622
30635
  setRowHeight: w,
30623
30636
  setTableIsNeedRowSpan: d,
30624
30637
  getRowAttribute: o,
30625
- getRowSelection: () => n.value.filter((B) => o(B, Ie.ROW_SELECTION)),
30638
+ getRowSelection: () => n.value.filter((V) => o(V, Ie.ROW_SELECTION)),
30626
30639
  getRowIndeterminate: p,
30627
30640
  getRowCheckedAllValue: S,
30628
- getCurrentPageRowsHeight: () => s.reduce((B, $) => B + C($), 0),
30629
- changePageRowIndex: (B, $) => {
30630
- const X = s[B];
30631
- s.splice($, 0, X);
30632
- const W = B < $ ? B : B + 1;
30641
+ getCurrentPageRowsHeight: () => s.reduce((V, $) => V + C($), 0),
30642
+ changePageRowIndex: (V, $) => {
30643
+ const q = s[V];
30644
+ s.splice($, 0, q);
30645
+ const W = V < $ ? V : V + 1;
30633
30646
  s.splice(W, 1);
30634
30647
  },
30635
30648
  toggleAllSelection: h,
@@ -30699,22 +30712,22 @@ const sH = (e, t, n, s) => {
30699
30712
  y.trigger === "manual" && ((Z = v.value) == null || Z.show());
30700
30713
  }, O = (Z) => {
30701
30714
  Z.stopImmediatePropagation(), Z.stopPropagation(), Z.preventDefault(), o.value = !o.value;
30702
- const ee = y.fields || e.columns || [], j = ee.filter((ne, re) => ne.disabled && w.value.includes(c(ne, re))).map((ne, re) => c(ne, re));
30715
+ const ee = y.fields || e.columns || [], j = ee.filter((ne, ie) => ne.disabled && w.value.includes(c(ne, ie))).map((ne, ie) => c(ne, ie));
30703
30716
  if (o.value) {
30704
- const ne = ee.filter((re) => !re.disabled).map((re, ce) => c(re, ce));
30717
+ const ne = ee.filter((ie) => !ie.disabled).map((ie, ce) => c(ie, ce));
30705
30718
  w.value.splice(0, w.value.length, ...ne, ...j);
30706
30719
  } else
30707
30720
  w.value.splice(0, w.value.length, ...j);
30708
30721
  }, E = k(() => (y.limit ?? 0) > 0), F = y.sizeList || l, M = k(() => E.value && (y.limit ? y.limit : 0) <= w.value.length), H = (Z, ee) => Z.disabled || M.value && !w.value.includes(c(Z, ee)), z = (Z) => {
30709
30722
  p.value = Z.value, S.value = Z.height;
30710
- }, B = (Z) => ({
30723
+ }, V = (Z) => ({
30711
30724
  "line-size": !0,
30712
30725
  "is-medium": p.value === "medium",
30713
30726
  active: Z.value === p.value
30714
30727
  }), $ = {
30715
30728
  marginRight: "12px"
30716
- }, X = () => F.map((Z) => u("span", {
30717
- class: B(Z),
30729
+ }, q = () => F.map((Z) => u("span", {
30730
+ class: V(Z),
30718
30731
  onClick: () => z(Z)
30719
30732
  }, [Z.label])), W = k(() => w.value.length > 0 && w.value.length < x.value.length), Y = k(() => typeof y.showLineHeight == "boolean" ? y.showLineHeight : !0);
30720
30733
  fe(() => [w.value], () => {
@@ -30733,7 +30746,7 @@ const sH = (e, t, n, s) => {
30733
30746
  Object.prototype.hasOwnProperty.call(Z, "showOverflowTooltip") || (Z.showOverflowTooltip = i(`field-item-${vt(Z, ["id", "field", "type"], [Z, ee])}-ref`, d, f));
30734
30747
  });
30735
30748
  }, R = () => {
30736
- var j, ne, re, ce;
30749
+ var j, ne, ie, ce;
30737
30750
  let Z;
30738
30751
  const ee = (ne = (j = t.slots).settings) == null ? void 0 : ne.call(j);
30739
30752
  return ee || I(), ee ?? u(Fe, null, [u("div", {
@@ -30763,27 +30776,27 @@ const sH = (e, t, n, s) => {
30763
30776
  })])]), u(ro, {
30764
30777
  class: "setting-body-fields",
30765
30778
  modelValue: w.value,
30766
- "onUpdate:modelValue": (ie) => w.value = ie
30767
- }, nH(Z = x.value.map((ie, te) => u("div", {
30779
+ "onUpdate:modelValue": (le) => w.value = le
30780
+ }, nH(Z = x.value.map((le, te) => u("div", {
30768
30781
  ref: d,
30769
30782
  class: "field-item"
30770
30783
  }, [u(Mt, {
30771
- checked: w.value.includes(c(ie, te)),
30772
- disabled: H(ie, te),
30773
- label: c(ie, te)
30784
+ checked: w.value.includes(c(le, te)),
30785
+ disabled: H(le, te),
30786
+ label: c(le, te)
30774
30787
  }, {
30775
30788
  default: () => [Ne(u("span", {
30776
- ref: (Q) => f.value[`field-item-${vt(ie, ["id", "field", "type"], [ie, te])}-ref`] = Q
30777
- }, [vt(ie, ["name", "label"], [ie, te])]), [[Ot("bk-tooltips"), {
30789
+ ref: (Q) => f.value[`field-item-${vt(le, ["id", "field", "type"], [le, te])}-ref`] = Q
30790
+ }, [vt(le, ["name", "label"], [le, te])]), [[Ot("bk-tooltips"), {
30778
30791
  placement: "top-start",
30779
- content: vt(ie, ["name", "label"], [ie, te]),
30780
- disabled: !ie.showOverflowTooltip
30792
+ content: vt(le, ["name", "label"], [le, te]),
30793
+ disabled: !le.showOverflowTooltip
30781
30794
  }]])]
30782
30795
  })]))) ? Z : {
30783
30796
  default: () => [Z]
30784
- }), (ce = (re = t.slots).setting) == null ? void 0 : ce.call(re), Y.value ? u("div", {
30797
+ }), (ce = (ie = t.slots).setting) == null ? void 0 : ce.call(ie), Y.value ? u("div", {
30785
30798
  class: "setting-body-line-height"
30786
- }, [a.value.setting.lineHeight.title, at(":"), X()]) : ""]), u("div", {
30799
+ }, [a.value.setting.lineHeight.title, at(":"), q()]) : ""]), u("div", {
30787
30800
  class: "setting-footer"
30788
30801
  }, [u(yt, {
30789
30802
  style: $,
@@ -30844,16 +30857,16 @@ const sH = (e, t, n, s) => {
30844
30857
  getBodyHeight: b,
30845
30858
  refBody: p,
30846
30859
  refRoot: S
30847
- } = jR(e, t), w = (...re) => {
30860
+ } = jR(e, t), w = (...ie) => {
30848
30861
  var ce;
30849
- return (ce = p.value) == null ? void 0 : ce.scrollTo(...re);
30862
+ return (ce = p.value) == null ? void 0 : ce.scrollTo(...ie);
30850
30863
  };
30851
- typeof e.rowHeight == "function" ? y((re) => s.getRowHeight(re.rows[0], re.index)) : y(e.rowHeight);
30864
+ typeof e.rowHeight == "function" ? y((ie) => s.getRowHeight(ie.rows[0], ie.index)) : y(e.rowHeight);
30852
30865
  const T = sH(e, t, n, ({
30853
- checked: re,
30866
+ checked: ie,
30854
30867
  height: ce
30855
30868
  }) => {
30856
- (re == null ? void 0 : re.length) > 0 && w(0, 0), typeof e.rowHeight != "function" && (s.setRowHeight(ce), y(ce));
30869
+ (ie == null ? void 0 : ie.length) > 0 && w(0, 0), typeof e.rowHeight != "function" && (s.setRowHeight(ce), y(ce));
30857
30870
  }), x = FR(e, s, t), {
30858
30871
  renderColumns: A,
30859
30872
  renderTBody: _,
@@ -30872,8 +30885,8 @@ const sH = (e, t, n, s) => {
30872
30885
  } = lR(), E = nt();
30873
30886
  lt(f6, () => {
30874
30887
  var ce;
30875
- const re = ((ce = E.subTree) == null ? void 0 : ce.children) ?? [];
30876
- n.debounceUpdateColumns(O(re), () => {
30888
+ const ie = ((ce = E.subTree) == null ? void 0 : ce.children) ?? [];
30889
+ n.debounceUpdateColumns(O(ie), () => {
30877
30890
  v(n.columnGroup.length);
30878
30891
  });
30879
30892
  });
@@ -30882,37 +30895,37 @@ const sH = (e, t, n, s) => {
30882
30895
  resolveFixedColumnStyle: H
30883
30896
  } = VR(e, n), z = () => {
30884
30897
  var ce;
30885
- const re = ((ce = S.value) == null ? void 0 : ce.offsetWidth) - (e.scrollbar ? 1 : u6) || 0;
30886
- n.resolveColsCalcWidth(re), H();
30898
+ const ie = ((ce = S.value) == null ? void 0 : ce.offsetWidth) - (e.scrollbar ? 1 : u6) || 0;
30899
+ n.resolveColsCalcWidth(ie), H();
30887
30900
  }, {
30888
- dragOffsetX: B
30901
+ dragOffsetX: V
30889
30902
  } = iR(n, {
30890
30903
  afterResize: H
30891
- }), $ = P(!1), X = (re) => {
30904
+ }), $ = P(!1), q = (ie) => {
30892
30905
  if (!a.isShowPagination.value || e.remotePagination)
30893
- return re;
30894
- const ce = (a.options.current - 1) * a.options.limit, ie = ce + a.options.limit;
30895
- return re.slice(ce, ie);
30906
+ return ie;
30907
+ const ce = (a.options.current - 1) * a.options.limit, le = ce + a.options.limit;
30908
+ return ie.slice(ce, le);
30896
30909
  }, W = () => {
30897
- let re = s.tableRowList.value.slice();
30910
+ let ie = s.tableRowList.value.slice();
30898
30911
  return n.filterColumns.forEach((ce) => {
30899
- var ie;
30900
- !n.isHiddenColumn(ce.col) && ce[Ce.COL_FILTER_FN] && ((ie = ce[Ce.COL_FILTER_VALUES]) != null && ie.length) && (re = re.filter((te, Q) => ce[Ce.COL_FILTER_FN](ce[Ce.COL_FILTER_VALUES], te, Q, e.data)));
30912
+ var le;
30913
+ !n.isHiddenColumn(ce.col) && ce[Ce.COL_FILTER_FN] && ((le = ce[Ce.COL_FILTER_VALUES]) != null && le.length) && (ie = ie.filter((te, Q) => ce[Ce.COL_FILTER_FN](ce[Ce.COL_FILTER_VALUES], te, Q, e.data)));
30901
30914
  }), n.sortColumns.forEach((ce) => {
30902
- !n.isHiddenColumn(ce.col) && ce[Ce.COL_SORT_FN] && ce.active && re.sort((ie, te) => {
30915
+ !n.isHiddenColumn(ce.col) && ce[Ce.COL_SORT_FN] && ce.active && ie.sort((le, te) => {
30903
30916
  let Q = null, J = null;
30904
- return ce.col.type === "index" && (Q = s.getRowAttribute(ie, Ie.ROW_INDEX), J = s.getRowAttribute(te, Ie.ROW_INDEX)), ce[Ce.COL_SORT_FN](ie, te, Q, J);
30917
+ return ce.col.type === "index" && (Q = s.getRowAttribute(le, Ie.ROW_INDEX), J = s.getRowAttribute(te, Ie.ROW_INDEX)), ce[Ce.COL_SORT_FN](le, te, Q, J);
30905
30918
  });
30906
- }), re;
30919
+ }), ie;
30907
30920
  }, Y = k(() => a.isShowPagination.value ? e.paginationHeight : 0), I = () => {
30908
30921
  c(Y.value), /^\d+\.?\d*(px)?$/.test(`${e.height}`) && f(Number(`${e.height}`.replace("px", "")));
30909
- }, R = P(!1), K = cs((re = !0) => {
30922
+ }, R = P(!1), K = cs((ie = !0) => {
30910
30923
  const ce = W();
30911
30924
  e.remotePagination || a.setPagination({
30912
30925
  count: ce.length
30913
30926
  });
30914
- const ie = X(ce);
30915
- s.setPageRowList(ie), re && (R.value = !0), Le(() => {
30927
+ const le = q(ce);
30928
+ s.setPageRowList(le), ie && (R.value = !0), Le(() => {
30916
30929
  g(), j(), R.value && (w(0, 0), R.value = !1);
30917
30930
  });
30918
30931
  }, 64), Z = P(!1);
@@ -30926,8 +30939,8 @@ const sH = (e, t, n, s) => {
30926
30939
  });
30927
30940
  return;
30928
30941
  }
30929
- const re = S.value.offsetHeight;
30930
- $.value = !0, f(re), g();
30942
+ const ie = S.value.offsetHeight;
30943
+ $.value = !0, f(ie), g();
30931
30944
  }
30932
30945
  z(), g(), w(0, 0);
30933
30946
  return;
@@ -30940,9 +30953,9 @@ const sH = (e, t, n, s) => {
30940
30953
  if (e.virtualEnabled) {
30941
30954
  let ce = s.getCurrentPageRowsHeight();
30942
30955
  if (/^\d+\.?\d*(px)?$/.test(`${e.maxHeight}`)) {
30943
- const ie = b(Number(`${e.maxHeight}`.replace("px", "")));
30944
- if (ce > ie) {
30945
- f(ie, !1);
30956
+ const le = b(Number(`${e.maxHeight}`.replace("px", "")));
30957
+ if (ce > le) {
30958
+ f(le, !1);
30946
30959
  return;
30947
30960
  }
30948
30961
  }
@@ -30955,8 +30968,8 @@ const sH = (e, t, n, s) => {
30955
30968
  });
30956
30969
  }, {
30957
30970
  immediate: !0
30958
- }), fe(() => [B.value], () => {
30959
- h(B.value);
30971
+ }), fe(() => [V.value], () => {
30972
+ h(V.value);
30960
30973
  }), fe(() => [n.visibleColumns], () => {
30961
30974
  Le(() => z());
30962
30975
  }, {
@@ -30985,9 +30998,9 @@ const sH = (e, t, n, s) => {
30985
30998
  immediate: !0
30986
30999
  });
30987
31000
  const ne = k(() => s.pageRowList.length);
30988
- return fe(ne, (re, ce) => {
30989
- var ie, te;
30990
- re < ce && ((te = (ie = p == null ? void 0 : p.value) == null ? void 0 : ie.updateScroll) == null || te.call(ie), w(void 0, 0));
31001
+ return fe(ne, (ie, ce) => {
31002
+ var le, te;
31003
+ ie < ce && ((te = (le = p == null ? void 0 : p.value) == null ? void 0 : le.updateScroll) == null || te.call(le), w(void 0, 0));
30991
31004
  }), t.expose({
30992
31005
  setRowExpand: s.setRowExpand,
30993
31006
  setAllRowExpand: s.setAllRowExpand,
@@ -31647,43 +31660,43 @@ const pH = {
31647
31660
  }
31648
31661
  };
31649
31662
  }, wo = (e, t) => {
31650
- const n = ($) => e.schema.get($), s = ($, X) => {
31663
+ const n = ($) => e.schema.get($), s = ($, q) => {
31651
31664
  var W;
31652
- return (W = n($)) == null ? void 0 : W[X];
31653
- }, a = ($, X, W, Y) => {
31665
+ return (W = n($)) == null ? void 0 : W[q];
31666
+ }, a = ($, q, W, Y) => {
31654
31667
  if (!e.schema.has($)) {
31655
31668
  console.warn("node is not in schema, please check", Y, $);
31656
31669
  return;
31657
31670
  }
31658
31671
  e.schema.set($, Object.assign({}, n($), {
31659
- [X]: W
31672
+ [q]: W
31660
31673
  }));
31661
- }, r = ($) => e.data.find((X) => o(X) === $), i = ($, X, W) => {
31674
+ }, r = ($) => e.data.find((q) => o(q) === $), i = ($, q, W) => {
31662
31675
  if (Array.isArray($)) {
31663
- Array.prototype.forEach.call($, (Y) => a(r(Y), X, W, $));
31676
+ Array.prototype.forEach.call($, (Y) => a(r(Y), q, W, $));
31664
31677
  return;
31665
31678
  }
31666
- a(r($), X, W, $);
31667
- }, l = ($) => s($, pe.PATH), o = ($) => s($, pe.UUID), d = ($) => s($, pe.IS_OPEN), f = ($) => s($, pe.HAS_CHILD), c = ($) => s($, pe.IS_MATCH), h = ($) => s($, pe.IS_CHECKED), g = ($) => s(s($, pe.PARENT), pe.UUID), v = ($) => s($, pe.IS_LOADING), y = ($) => s($, pe.PARENT), b = ($) => s($, pe.IS_MATCH), p = ($, X) => {
31679
+ a(r($), q, W, $);
31680
+ }, l = ($) => s($, pe.PATH), o = ($) => s($, pe.UUID), d = ($) => s($, pe.IS_OPEN), f = ($) => s($, pe.HAS_CHILD), c = ($) => s($, pe.IS_MATCH), h = ($) => s($, pe.IS_CHECKED), g = ($) => s(s($, pe.PARENT), pe.UUID), v = ($) => s($, pe.IS_LOADING), y = ($) => s($, pe.PARENT), b = ($) => s($, pe.IS_MATCH), p = ($, q) => {
31668
31681
  const W = e.data.find((Y) => o(Y) === $);
31669
- return s(W, X);
31682
+ return s(W, q);
31670
31683
  }, S = ($) => typeof $ == "string" ? p($, pe.IS_ROOT) : s($, pe.IS_ROOT), w = ($) => {
31671
- const X = e.data.find((W) => o(W) === $);
31672
- return g(X);
31684
+ const q = e.data.find((W) => o(W) === $);
31685
+ return g(q);
31673
31686
  }, C = ($) => {
31674
- const X = e.data.find((W) => o(W) === $);
31675
- return l(X);
31676
- }, T = ($, X) => {
31677
- a($, pe.IS_LOADING, X);
31678
- }, x = ($) => typeof $ == "object" ? d($) : typeof $ == "string" ? p($, pe.IS_OPEN) : !1, A = ($, X) => s(s($, pe.PARENT), X), _ = ($) => x(s($, pe.PARENT)), L = ($) => S($) || x($) || _($), N = ($, X) => {
31687
+ const q = e.data.find((W) => o(W) === $);
31688
+ return l(q);
31689
+ }, T = ($, q) => {
31690
+ a($, pe.IS_LOADING, q);
31691
+ }, x = ($) => typeof $ == "object" ? d($) : typeof $ == "string" ? p($, pe.IS_OPEN) : !1, A = ($, q) => s(s($, pe.PARENT), q), _ = ($) => x(s($, pe.PARENT)), L = ($) => S($) || x($) || _($), N = ($, q) => {
31679
31692
  const Y = $.split("-").reduce((I, R) => {
31680
31693
  const K = Number(R);
31681
31694
  return Array.isArray(I) ? I[K] : I[t.children][K];
31682
31695
  }, t.data);
31683
- return X && Object.assign(Y, {
31684
- [pe.UUID]: X
31696
+ return q && Object.assign(Y, {
31697
+ [pe.UUID]: q
31685
31698
  }), Y;
31686
- }, O = ($) => $[t.children] ?? [], E = ($) => e.data.find((X) => o(X) === $), F = ($) => S($) ? {
31699
+ }, O = ($) => $[t.children] ?? [], E = ($) => e.data.find((q) => o(q) === $), F = ($) => S($) ? {
31687
31700
  [t.children]: t.data
31688
31701
  } : y($), M = ($) => ({
31689
31702
  [ns[pe.IS_LOADING]]: s($, pe.IS_LOADING),
@@ -31737,15 +31750,15 @@ const pH = {
31737
31750
  var K;
31738
31751
  if (!$)
31739
31752
  return null;
31740
- let X = $;
31741
- ea($) && (X = r($.getAttribute("data-tree-node")));
31742
- const W = s(X, pe.DEPTH), Y = s(X, pe.IS_ROOT), I = s(X, pe.PARENT), R = Y ? s(X, pe.INDEX) : (K = I == null ? void 0 : I[t.children]) == null ? void 0 : K.findIndex((Z) => Z === X);
31753
+ let q = $;
31754
+ ea($) && (q = r($.getAttribute("data-tree-node")));
31755
+ const W = s(q, pe.DEPTH), Y = s(q, pe.IS_ROOT), I = s(q, pe.PARENT), R = Y ? s(q, pe.INDEX) : (K = I == null ? void 0 : I[t.children]) == null ? void 0 : K.findIndex((Z) => Z === q);
31743
31756
  return {
31744
31757
  level: W,
31745
31758
  target: $,
31746
31759
  index: R,
31747
31760
  parent: I,
31748
- node: X,
31761
+ node: q,
31749
31762
  isRoot: Y
31750
31763
  };
31751
31764
  }
@@ -31888,19 +31901,19 @@ const pH = {
31888
31901
  return ae;
31889
31902
  const {
31890
31903
  node: G,
31891
- className: q,
31904
+ className: X,
31892
31905
  text: D,
31893
- style: V
31906
+ style: B
31894
31907
  } = ae;
31895
31908
  return ft(G, {
31896
- class: q,
31897
- style: V
31909
+ class: X,
31910
+ style: B
31898
31911
  }, D);
31899
31912
  }
31900
31913
  return null;
31901
31914
  }, F = (ae) => {
31902
- var G, q;
31903
- return ((q = (G = t.slots).nodeLoading) == null ? void 0 : q.call(G, J(ae))) ?? p(ae) ? u(La, null, null) : "";
31915
+ var G, X;
31916
+ return ((X = (G = t.slots).nodeLoading) == null ? void 0 : X.call(G, J(ae))) ?? p(ae) ? u(La, null, null) : "";
31904
31917
  }, M = (ae) => {
31905
31918
  if (t.slots.nodeAction)
31906
31919
  return t.slots.nodeAction(J(ae));
@@ -31910,8 +31923,8 @@ const pH = {
31910
31923
  if (typeof e.prefixIcon == "function" && (G = e.prefixIcon(J(ae), "node_action"), G !== "default"))
31911
31924
  return E(G);
31912
31925
  if (G === "default" || typeof e.prefixIcon == "boolean" && e.prefixIcon) {
31913
- const q = typeof e.autoCheckChildren == "function" ? e.autoCheckChildren(ae) : e.autoCheckChildren;
31914
- if (v(ae) || ae.async || !q)
31926
+ const X = typeof e.autoCheckChildren == "function" ? e.autoCheckChildren(ae) : e.autoCheckChildren;
31927
+ if (v(ae) || ae.async || !X)
31915
31928
  return y(ae) ? u(kr, {
31916
31929
  class: A("node-prefix")
31917
31930
  }, null) : u(Pr, {
@@ -31929,22 +31942,22 @@ const pH = {
31929
31942
  class: [A("tree-icon"), A("node-prefix")]
31930
31943
  }, null) : null;
31931
31944
  }, z = (ae, G) => {
31932
- const q = w(ae);
31933
- if (q) {
31934
- const D = G || (h(q) || []).some((V) => S(V));
31935
- i(q, pe.IS_CHECKED, D), i(q, pe.IS_INDETERMINATE, (h(q) || []).some((V) => !S(V) || W(V))), g(q) || z(q, G);
31945
+ const X = w(ae);
31946
+ if (X) {
31947
+ const D = G || (h(X) || []).some((B) => S(B));
31948
+ i(X, pe.IS_CHECKED, D), i(X, pe.IS_INDETERMINATE, (h(X) || []).some((B) => !S(B) || W(B))), g(X) || z(X, G);
31936
31949
  }
31937
- }, B = (ae, G, q) => {
31950
+ }, V = (ae, G, X) => {
31938
31951
  h(ae).forEach((D) => {
31939
- Array.isArray(G) ? G.forEach((V, oe) => {
31940
- i(D, V, q[oe]);
31941
- }) : i(D, G, q), B(D, G, q);
31952
+ Array.isArray(G) ? G.forEach((B, oe) => {
31953
+ i(D, B, X[oe]);
31954
+ }) : i(D, G, X), V(D, G, X);
31942
31955
  });
31943
31956
  }, $ = (ae) => {
31944
- var G, q, D;
31945
- return (q = (G = e.async) == null ? void 0 : G.trigger) != null && q.length ? (D = e.async) == null ? void 0 : D.trigger.includes(ae) : !0;
31946
- }, X = (ae, G, q) => {
31947
- q == null || q.preventDefault(), q == null || q.stopImmediatePropagation(), q == null || q.stopPropagation(), i(ae, pe.IS_CHECKED, !!G), G && i(ae, pe.IS_INDETERMINATE, !1), e.checkStrictly && (B(ae, [pe.IS_CHECKED, pe.IS_INDETERMINATE], [!!G, !1]), z(ae, G)), t.emit(Ft.NODE_CHECKED, n.data.filter((D) => S(D)), n.data.filter((D) => W(D))), ce(ae, q, "checked");
31957
+ var G, X, D;
31958
+ return (X = (G = e.async) == null ? void 0 : G.trigger) != null && X.length ? (D = e.async) == null ? void 0 : D.trigger.includes(ae) : !0;
31959
+ }, q = (ae, G, X) => {
31960
+ X == null || X.preventDefault(), X == null || X.stopImmediatePropagation(), X == null || X.stopPropagation(), i(ae, pe.IS_CHECKED, !!G), G && i(ae, pe.IS_INDETERMINATE, !1), e.checkStrictly && (V(ae, [pe.IS_CHECKED, pe.IS_INDETERMINATE], [!!G, !1]), z(ae, G)), t.emit(Ft.NODE_CHECKED, n.data.filter((D) => S(D)), n.data.filter((D) => W(D))), ce(ae, X, "checked");
31948
31961
  }, W = (ae) => S(ae) && f(ae, pe.IS_INDETERMINATE), Y = (ae) => E6(e, x(ae)) ? u("span", {
31949
31962
  class: "node-check-box",
31950
31963
  onClick: ue
@@ -31952,41 +31965,41 @@ const pH = {
31952
31965
  indeterminate: W(ae),
31953
31966
  modelValue: S(ae),
31954
31967
  size: "small",
31955
- onChange: (G, q) => X(ae, !!G, q)
31956
- }, null)]) : null, I = (ae, G = null, q = null, D = !0) => {
31957
- const V = G === null ? !y(ae) : !!G;
31958
- if (V || B(ae, pe.IS_OPEN, V), i(ae, pe.IS_OPEN, V), D) {
31968
+ onChange: (G, X) => q(ae, !!G, X)
31969
+ }, null)]) : null, I = (ae, G = null, X = null, D = !0) => {
31970
+ const B = G === null ? !y(ae) : !!G;
31971
+ if (B || V(ae, pe.IS_OPEN, B), i(ae, pe.IS_OPEN, B), D) {
31959
31972
  const oe = y(ae) ? Ft.NODE_EXPAND : Ft.NODE_COLLAPSE;
31960
- t.emit(oe, ae, C(ae), d(ae), q);
31973
+ t.emit(oe, ae, C(ae), d(ae), X);
31961
31974
  }
31962
- }, R = (ae, G, q) => {
31975
+ }, R = (ae, G, X) => {
31963
31976
  if (Array.isArray(ae)) {
31964
- ae.forEach((D) => i(Za(D), G, q));
31977
+ ae.forEach((D) => i(Za(D), G, X));
31965
31978
  return;
31966
31979
  }
31967
- i(Za(ae), G, q);
31968
- }, K = (ae, G = !0, q = !1) => {
31969
- Z(ae, pe.IS_OPEN, G, q && G);
31970
- }, Z = (ae, G, q, D = !1) => {
31971
- const V = Za(ae);
31972
- if (V[pe.IS_NULL])
31980
+ i(Za(ae), G, X);
31981
+ }, K = (ae, G = !0, X = !1) => {
31982
+ Z(ae, pe.IS_OPEN, G, X && G);
31983
+ }, Z = (ae, G, X, D = !1) => {
31984
+ const B = Za(ae);
31985
+ if (B[pe.IS_NULL])
31973
31986
  return;
31974
- const oe = Array.isArray(G) ? G : [G], le = Array.isArray(q) ? q : [q];
31987
+ const oe = Array.isArray(G) ? G : [G], re = Array.isArray(X) ? X : [X];
31975
31988
  if (D) {
31976
- if (oe.forEach((U, se) => R(V, U, le[se])), !g(V)) {
31977
- const U = w(V);
31989
+ if (oe.forEach((U, se) => R(B, U, re[se])), !g(B)) {
31990
+ const U = w(B);
31978
31991
  oe.forEach((se, de) => {
31979
- f(U, se) !== q && Z(U, se, le[de], D);
31992
+ f(U, se) !== X && Z(U, se, re[de], D);
31980
31993
  });
31981
31994
  }
31982
31995
  } else
31983
- oe.forEach((U, se) => R(V, U, le[se]));
31984
- }, ee = (ae, G, q) => {
31996
+ oe.forEach((U, se) => R(B, U, re[se]));
31997
+ }, ee = (ae, G, X) => {
31985
31998
  if (y(ae)) {
31986
31999
  I(ae, !1, G, !0);
31987
32000
  return;
31988
32001
  }
31989
- $(q) && L(ae).finally(() => {
32002
+ $(X) && L(ae).finally(() => {
31990
32003
  f(ae, pe.IS_LOADING) ? _("setNodeOpenedAfterLoading", {
31991
32004
  type: "once",
31992
32005
  fn: () => I(ae, !0, G, !0)
@@ -31994,43 +32007,43 @@ const pH = {
31994
32007
  });
31995
32008
  }, j = (ae, G) => {
31996
32009
  ae.stopImmediatePropagation(), ae.stopPropagation(), ae.preventDefault(), ee(G, ae, "expand");
31997
- }, ne = (ae, G = !0, q = !0, D = !1) => {
31998
- const V = Array.isArray(ae) ? ae : [ae];
31999
- if (!V.length)
32010
+ }, ne = (ae, G = !0, X = !0, D = !1, B = "") => {
32011
+ const oe = Array.isArray(ae) ? ae : [ae];
32012
+ if (!oe.length)
32000
32013
  return;
32001
- let oe = Za(V[0]);
32002
- if ((typeof oe == "string" || typeof oe == "number" || typeof oe == "symbol") && (oe = n.data.find((le) => c(le) === oe) ?? {
32014
+ let re = Za(oe[0]);
32015
+ if ((typeof re == "string" || typeof re == "number" || typeof re == "symbol") && (re = n.data.find((U) => c(U) === re) ?? {
32003
32016
  [pe.IS_NULL]: !0
32004
- }), !oe[pe.IS_NULL]) {
32005
- if (!e.selectable || typeof e.selectable == "function" && !e.selectable(ae) || e.disabledFolderSelectable && oe.is_folder === !0) {
32017
+ }), !re[pe.IS_NULL]) {
32018
+ if (!e.selectable || typeof e.selectable == "function" && !e.selectable(ae) || e.disabledFolderSelectable && re.is_folder === !0) {
32006
32019
  console.warn("props.selectable is false or undefined, please set selectable with true");
32007
32020
  return;
32008
32021
  }
32009
- r != null && l(r, pe.IS_SELECTED, !G), e.selected && e.selected !== r && l(e.selected, pe.IS_SELECTED, !G), i(oe, pe.IS_SELECTED, G), r = c(oe), D && t.emit(Ft.NODE_SELECTED, {
32022
+ r != null && l(r, pe.IS_SELECTED, !G), e.selected && e.selected !== r && l(e.selected, pe.IS_SELECTED, !G), i(re, pe.IS_SELECTED, G), r = c(re), D && t.emit(Ft.NODE_SELECTED, {
32010
32023
  selected: G,
32011
- node: oe
32012
- }), q && V.length === 1 && K(oe, !0, !0), f(oe, pe.IS_ASYNC) && L(oe).then(() => {
32024
+ node: re
32025
+ }), X && oe.length === 1 && K(re, !0, !0), f(re, pe.IS_ASYNC) && $(B) && L(re).then(() => {
32013
32026
  Le(() => {
32014
- V.shift(), ne(V, G, q);
32027
+ oe.shift(), ne(oe, G, X, D, B);
32015
32028
  });
32016
32029
  });
32017
32030
  }
32018
- }, re = (ae) => typeof e.nodeContentAction == "function" ? Reflect.apply(e.nodeContentAction, void 0, [{
32031
+ }, ie = (ae) => typeof e.nodeContentAction == "function" ? Reflect.apply(e.nodeContentAction, void 0, [{
32019
32032
  node: ae
32020
- }]) : typeof e.nodeContentAction == "string" ? [e.nodeContentAction] : Array.isArray(e.nodeContentAction) ? e.nodeContentAction : ["selected", "expand", "click"], ce = (ae, G, q) => {
32021
- const D = re(ae);
32022
- if (D.includes("selected") && ne(ae, !0, !0, !0), D.includes("expand") && (b(ae) || ee(ae, G, q)), D.includes("collapse") && b(ae) && ee(ae, G, q), D.includes("click")) {
32023
- const V = Ft.NODE_CLICK;
32024
- t.emit(V, ae, C(ae), d(ae), G);
32033
+ }]) : typeof e.nodeContentAction == "string" ? [e.nodeContentAction] : Array.isArray(e.nodeContentAction) ? e.nodeContentAction : ["selected", "expand", "click"], ce = (ae, G, X) => {
32034
+ const D = ie(ae);
32035
+ if (D.includes("selected") && ne(ae, !0, !0, !0, X), D.includes("expand") && (b(ae) || ee(ae, G, X)), D.includes("collapse") && b(ae) && ee(ae, G, X), D.includes("click")) {
32036
+ const B = Ft.NODE_CLICK;
32037
+ t.emit(B, ae, C(ae), d(ae), G);
32025
32038
  }
32026
- }, ie = (ae, G) => {
32039
+ }, le = (ae, G) => {
32027
32040
  if (g(G))
32028
32041
  return !1;
32029
- const q = o(G), D = `${q}`.split("-").slice(0, ae + 1);
32030
- if (D.join("-") === q)
32042
+ const X = o(G), D = `${X}`.split("-").slice(0, ae + 1);
32043
+ if (D.join("-") === X)
32031
32044
  return !0;
32032
- const oe = D.pop(), le = parseInt(oe, 10);
32033
- D.push(`${le + 1}`);
32045
+ const oe = D.pop(), re = parseInt(oe, 10);
32046
+ D.push(`${re + 1}`);
32034
32047
  const U = D.join("-");
32035
32048
  return n.data.some((se) => o(se) === U);
32036
32049
  }, te = (ae) => {
@@ -32038,21 +32051,21 @@ const pH = {
32038
32051
  return null;
32039
32052
  const G = (D) => ({
32040
32053
  "--depth": D
32041
- }), q = (f(ae, pe.DEPTH) ?? 0) + 1;
32042
- return new Array(q).fill("").map((D, V) => V).filter((D) => ie(D, ae)).filter((D) => D > 0).map((D) => u("span", {
32043
- style: G(q - D),
32054
+ }), X = (f(ae, pe.DEPTH) ?? 0) + 1;
32055
+ return new Array(X).fill("").map((D, B) => B).filter((D) => le(D, ae)).filter((D) => D > 0).map((D) => u("span", {
32056
+ style: G(X - D),
32044
32057
  class: "node-virtual-line"
32045
32058
  }, null));
32046
32059
  }, Q = (ae) => {
32047
- var G, q, D, V;
32048
- return t.slots.node ? (q = (G = t.slots).node) == null ? void 0 : q.call(G, J(ae)) : t.slots.default ? (V = (D = t.slots).default) == null ? void 0 : V.call(D, x(ae)) : [N6(ae, e)];
32060
+ var G, X, D, B;
32061
+ return t.slots.node ? (X = (G = t.slots).node) == null ? void 0 : X.call(G, J(ae)) : t.slots.default ? (B = (D = t.slots).default) == null ? void 0 : B.call(D, x(ae)) : [N6(ae, e)];
32049
32062
  }, J = (ae) => e.keepSlotData ? x(ae) : T(ae), ue = (ae) => {
32050
32063
  ae.stopImmediatePropagation(), ae.stopPropagation();
32051
32064
  };
32052
32065
  return {
32053
32066
  renderTreeNode: (ae, G = !0) => {
32054
- var D, V;
32055
- const q = M(ae);
32067
+ var D, B;
32068
+ const X = M(ae);
32056
32069
  return u("div", {
32057
32070
  key: c(ae),
32058
32071
  class: SH(ae, n.schema),
@@ -32062,13 +32075,13 @@ const pH = {
32062
32075
  class: xH(ae, n.schema, e, G),
32063
32076
  onClick: (oe) => ce(ae, oe, "click")
32064
32077
  }, [u("div", {
32065
- class: [A("node-action"), q ? "" : "empty-child"],
32078
+ class: [A("node-action"), X ? "" : "empty-child"],
32066
32079
  onClick: (oe) => j(oe, ae)
32067
- }, [q]), u("div", {
32080
+ }, [X]), u("div", {
32068
32081
  class: A("node-content")
32069
32082
  }, [[Y(ae), H(ae)], u("span", {
32070
32083
  class: A("node-text")
32071
- }, [Q(ae)]), (V = (D = t.slots).nodeAppend) == null ? void 0 : V.call(D, J(ae))]), G && te(ae)])]);
32084
+ }, [Q(ae)]), (B = (D = t.slots).nodeAppend) == null ? void 0 : B.call(D, J(ae))]), G && te(ae)])]);
32072
32085
  },
32073
32086
  handleTreeNodeClick: ee,
32074
32087
  deepAutoOpen: N,
@@ -32139,8 +32152,8 @@ const pH = {
32139
32152
  }, A = (N, O) => {
32140
32153
  if (!x(N, O))
32141
32154
  return;
32142
- const E = JSON.parse(JSON.stringify(a(N))), F = JSON.parse(JSON.stringify(a(O))), M = r(N), H = r(O), z = o(N, pe.INDEX), B = o(O, pe.INDEX);
32143
- M == null || M[e.children].splice(z, 1, F), H == null || H[e.children].splice(B, 1, E);
32155
+ const E = JSON.parse(JSON.stringify(a(N))), F = JSON.parse(JSON.stringify(a(O))), M = r(N), H = r(O), z = o(N, pe.INDEX), V = o(O, pe.INDEX);
32156
+ M == null || M[e.children].splice(z, 1, F), H == null || H[e.children].splice(V, 1, E);
32144
32157
  }, _ = (N, O) => {
32145
32158
  const E = a(N), F = a(O);
32146
32159
  let M = null;
@@ -32213,82 +32226,82 @@ const pH = {
32213
32226
  } = e, C = [], T = [];
32214
32227
  let x = 0;
32215
32228
  const A = /* @__PURE__ */ new WeakMap();
32216
- function _($, X, W, Y) {
32229
+ function _($, q, W, Y) {
32217
32230
  if ($ != null && A.has($)) {
32218
32231
  const I = A.get($);
32219
- if (Object.prototype.hasOwnProperty.call(I, X) && typeof Y == "function" && Reflect.apply(Y, self, [I, X, W, $])) {
32220
- if (I[X] === W)
32232
+ if (Object.prototype.hasOwnProperty.call(I, q) && typeof Y == "function" && Reflect.apply(Y, self, [I, q, W, $])) {
32233
+ if (I[q] === W)
32221
32234
  return;
32222
32235
  Object.assign(I, {
32223
- [X]: W
32224
- }), _(I[pe.PARENT], X, W, Y);
32236
+ [q]: W
32237
+ }), _(I[pe.PARENT], q, W, Y);
32225
32238
  }
32226
32239
  }
32227
32240
  }
32228
32241
  function L($) {
32229
- let X = null;
32230
- return typeof e.nodeKey == "string" && (X = $[e.nodeKey] || sn()), X || $[pe.UUID] || sn();
32242
+ let q = null;
32243
+ return typeof e.nodeKey == "string" && (q = $[e.nodeKey] || sn()), q || $[pe.UUID] || sn();
32231
32244
  }
32232
32245
  const N = {
32233
32246
  [pe.IS_OPEN]: () => !!e.expandAll,
32234
32247
  [pe.IS_CHECKED]: () => !1,
32235
32248
  [pe.IS_MATCH]: () => !1,
32236
- [pe.IS_SELECTED]: ($, X) => Ai($, e.selected, X),
32249
+ [pe.IS_SELECTED]: ($, q) => Ai($, e.selected, q),
32237
32250
  [pe.IS_CACHED]: () => !1,
32238
32251
  [pe.IS_ASYNC]: () => null,
32239
32252
  [pe.IS_LOADING]: () => !1
32240
32253
  };
32241
- function O($, X, W, Y = void 0) {
32254
+ function O($, q, W, Y = void 0) {
32242
32255
  let I = Y;
32243
- Y === void 0 && typeof N[W] == "function" && (I = N[W](X, $));
32256
+ Y === void 0 && typeof N[W] == "function" && (I = N[W](q, $));
32244
32257
  const R = ns[W];
32245
- if (Object.prototype.hasOwnProperty.call(X, R))
32246
- return X[R];
32247
- const K = (p == null ? void 0 : p.get(X)) ?? void 0;
32258
+ if (Object.prototype.hasOwnProperty.call(q, R))
32259
+ return q[R];
32260
+ const K = (p == null ? void 0 : p.get(q)) ?? void 0;
32248
32261
  let Z;
32249
32262
  return K && (Z = K[W]), Z == null && (Z = I), Z;
32250
32263
  }
32251
- function E($, X) {
32264
+ function E($, q) {
32252
32265
  if (!e.selectable)
32253
32266
  return !1;
32254
- const W = Ai(X, e.selected, $);
32255
- return O($, X, pe.IS_SELECTED, W);
32267
+ const W = Ai(q, e.selected, $);
32268
+ return O($, q, pe.IS_SELECTED, W);
32256
32269
  }
32257
- function F($, X, W) {
32270
+ function F($, q, W) {
32258
32271
  var R;
32259
- const Y = O($, X, pe.IS_OPEN), I = A.has(W) ? (R = A.get(W)) == null ? void 0 : R[pe.IS_OPEN] : !0;
32272
+ const Y = O($, q, pe.IS_OPEN), I = A.has(W) ? (R = A.get(W)) == null ? void 0 : R[pe.IS_OPEN] : !0;
32260
32273
  return Y && I;
32261
32274
  }
32262
- function M($, X, W) {
32275
+ function M($, q, W) {
32263
32276
  if (!E6(e, {
32264
32277
  data: $,
32265
32278
  attributes: W
32266
32279
  }))
32267
32280
  return !1;
32268
- const I = Ai($, e.checked, X);
32269
- return O(X, $, pe.IS_CHECKED, I);
32281
+ const I = Ai($, e.checked, q);
32282
+ return O(q, $, pe.IS_CHECKED, I);
32270
32283
  }
32271
32284
  function H($) {
32272
32285
  return !(($ == null ? void 0 : $[pe.IS_OPEN]) ?? !1);
32273
32286
  }
32274
- function z($, X, W, Y) {
32287
+ function z($, q, W, Y) {
32275
32288
  return $[pe.IS_INDETERMINATE] = (Y[e.children] || []).some((I) => {
32276
32289
  var R;
32277
32290
  return !(((R = A.get(I)) == null ? void 0 : R[pe.IS_CHECKED]) ?? !1);
32278
32291
  }), !0;
32279
32292
  }
32280
- function B($, X = 0, W = null, Y = null) {
32293
+ function V($, q = 0, W = null, Y = null) {
32281
32294
  const I = $.length;
32282
32295
  for (let R = 0; R < I; R++) {
32283
32296
  const K = $[R];
32284
32297
  if (Array.isArray(K))
32285
- B(K, X, W, Y);
32298
+ V(K, q, W, Y);
32286
32299
  else if (typeof K == "object" && K !== null) {
32287
32300
  const Z = Y !== null ? `${Y}-${R}` : `${R}`, ee = `${L(K)}`, j = !!(K[w] || []).length;
32288
32301
  let ne = O(ee, K, pe.IS_OPEN);
32289
32302
  e.autoOpenParentNode ? ne && _(W, pe.IS_OPEN, !0, H) : ne = F(ee, K, W);
32290
- const re = {
32291
- [pe.DEPTH]: X,
32303
+ const ie = {
32304
+ [pe.DEPTH]: q,
32292
32305
  [pe.INDEX]: R,
32293
32306
  [pe.UUID]: ee,
32294
32307
  [pe.PARENT]: W,
@@ -32305,11 +32318,11 @@ const pH = {
32305
32318
  [pe.IS_LOADING]: O(ee, K, pe.IS_LOADING),
32306
32319
  [pe.IS_INDETERMINATE]: !1
32307
32320
  };
32308
- re[pe.IS_CHECKED] = M(K, ee, re), re[pe.IS_CHECKED] && C.push(K), A.set(K, re), T.push(K), x += 1, Object.prototype.hasOwnProperty.call(K, w) && B(K[w] || [], X + 1, K, Z);
32321
+ ie[pe.IS_CHECKED] = M(K, ee, ie), ie[pe.IS_CHECKED] && C.push(K), A.set(K, ie), T.push(K), x += 1, Object.prototype.hasOwnProperty.call(K, w) && V(K[w] || [], q + 1, K, Z);
32309
32322
  }
32310
32323
  }
32311
32324
  }
32312
- return B(b ?? S), e.showCheckbox !== !1 && e.checkStrictly && (C == null || C.forEach(($) => {
32325
+ return V(b ?? S), e.showCheckbox !== !1 && e.checkStrictly && (C == null || C.forEach(($) => {
32313
32326
  _($, pe.IS_CHECKED, !0, z);
32314
32327
  })), [T, A];
32315
32328
  }, n = t(), s = /* @__PURE__ */ new Map(), a = [], r = [], i = ke({
@@ -32396,16 +32409,16 @@ const pH = {
32396
32409
  isSearchDisabled: T,
32397
32410
  isTreeUI: x,
32398
32411
  showChildNodes: A
32399
- } = EH(e), _ = ke([]), L = (ie) => {
32412
+ } = EH(e), _ = ke([]), L = (le) => {
32400
32413
  if (w.value) {
32401
32414
  if (A) {
32402
- const Q = `${h(ie) ?? ""}-`;
32403
- return i(ie) && (f(ie) || _.some((J) => Q.indexOf(`${J}-`) === 0));
32415
+ const Q = `${h(le) ?? ""}-`;
32416
+ return i(le) && (f(le) || _.some((J) => Q.indexOf(`${J}-`) === 0));
32404
32417
  }
32405
- return i(ie) && f(ie);
32418
+ return i(le) && f(le);
32406
32419
  }
32407
- return i(ie);
32408
- }, N = k(() => s.data.filter((ie) => L(ie))), {
32420
+ return i(le);
32421
+ }, N = k(() => s.data.filter((le) => L(le))), {
32409
32422
  getLastVisibleElement: O,
32410
32423
  intersectionObserver: E
32411
32424
  } = bH(e), {
@@ -32413,16 +32426,16 @@ const pH = {
32413
32426
  handleTreeNodeClick: M,
32414
32427
  setOpen: H,
32415
32428
  setNodeAction: z,
32416
- setSelect: B,
32429
+ setSelect: V,
32417
32430
  asyncNodeClick: $,
32418
- setNodeAttribute: X,
32431
+ setNodeAttribute: q,
32419
32432
  isIndeterminate: W
32420
32433
  } = OH(e, t, s, N, {
32421
32434
  registerNextLoop: r
32422
32435
  }), Y = Sr(120, () => {
32423
- _.length = 0, s.data.forEach((ie) => {
32424
- const te = S(N6(ie, e), ie);
32425
- te && _.push(h(ie)), X(ie, [pe.IS_MATCH], [te], x.value && te);
32436
+ _.length = 0, s.data.forEach((le) => {
32437
+ const te = S(N6(le, e), le);
32438
+ te && _.push(h(le)), q(le, [pe.IS_MATCH], [te], x.value && te);
32426
32439
  });
32427
32440
  });
32428
32441
  T || fe([C], () => {
@@ -32435,53 +32448,53 @@ const pH = {
32435
32448
  Z();
32436
32449
  });
32437
32450
  });
32438
- const I = (ie, te = !0, Q = !1) => {
32439
- z(Za(ie), pe.IS_CHECKED, te), Q && t.emit(Ft.NODE_CHECKED, s.data.filter((J) => d(J)), s.data.filter((J) => W(J)));
32451
+ const I = (le, te = !0, Q = !1) => {
32452
+ z(Za(le), pe.IS_CHECKED, te), Q && t.emit(Ft.NODE_CHECKED, s.data.filter((J) => d(J)), s.data.filter((J) => W(J)));
32440
32453
  };
32441
- a((ie) => {
32442
- B(ie, !0, e.autoOpenParentNode, !0);
32454
+ a((le) => {
32455
+ V(le, !0, e.autoOpenParentNode, !0);
32443
32456
  });
32444
32457
  const R = () => s;
32445
32458
  fe(() => [e.checked], () => {
32446
32459
  I(e.checked, !0);
32447
32460
  });
32448
32461
  const K = () => {
32449
- var ie;
32450
- (ie = n.value) == null || ie.reset();
32451
- }, Z = (ie) => {
32452
- if (ie == null) {
32462
+ var le;
32463
+ (le = n.value) == null || le.reset();
32464
+ }, Z = (le) => {
32465
+ if (le == null) {
32453
32466
  n.value.fixToTop({
32454
32467
  index: 1
32455
32468
  });
32456
32469
  return;
32457
32470
  }
32458
- if (e.nodeKey && Object.prototype.hasOwnProperty.call(ie, e.nodeKey)) {
32471
+ if (e.nodeKey && Object.prototype.hasOwnProperty.call(le, e.nodeKey)) {
32459
32472
  n.value.fixToTop({
32460
- index: N.value.findIndex((Q) => Q[e.nodeKey] === ie[e.nodeKey]) + 1
32473
+ index: N.value.findIndex((Q) => Q[e.nodeKey] === le[e.nodeKey]) + 1
32461
32474
  });
32462
32475
  return;
32463
32476
  }
32464
- if (ie.id !== void 0 && ie.id !== null) {
32477
+ if (le.id !== void 0 && le.id !== null) {
32465
32478
  n.value.fixToTop({
32466
- index: N.value.findIndex((Q) => Q[e.nodeKey] === ie.id) + 1
32479
+ index: N.value.findIndex((Q) => Q[e.nodeKey] === le.id) + 1
32467
32480
  });
32468
32481
  return;
32469
32482
  }
32470
- if (ie.index >= 0) {
32483
+ if (le.index >= 0) {
32471
32484
  n.value.fixToTop({
32472
- index: ie.index
32485
+ index: le.index
32473
32486
  });
32474
32487
  return;
32475
32488
  }
32476
- const te = g(ie);
32489
+ const te = g(le);
32477
32490
  if (te) {
32478
32491
  n.value.fixToTop({
32479
32492
  index: N.value.findIndex((Q) => g(Q) === te) + 1
32480
32493
  });
32481
32494
  return;
32482
32495
  }
32483
- }, ee = (ie, te = !0, Q = !1) => {
32484
- I(y(ie), te, Q);
32496
+ }, ee = (le, te = !0, Q = !1) => {
32497
+ I(y(le), te, Q);
32485
32498
  };
32486
32499
  t.expose({
32487
32500
  handleTreeNodeClick: M,
@@ -32495,7 +32508,7 @@ const pH = {
32495
32508
  setCheckedById: ee,
32496
32509
  setNodeAction: z,
32497
32510
  setNodeOpened: H,
32498
- setSelect: B,
32511
+ setSelect: V,
32499
32512
  scrollToTop: Z,
32500
32513
  asyncNodeClick: $,
32501
32514
  getData: R,
@@ -32507,17 +32520,17 @@ const pH = {
32507
32520
  renderEmpty: j
32508
32521
  } = yH(e);
32509
32522
  NH(e, t, n, s);
32510
- const ne = (ie) => {
32523
+ const ne = (le) => {
32511
32524
  var Q, J;
32512
- if (ie.length)
32513
- return ie.map((ue) => F(ue, !w.value || x.value));
32525
+ if (le.length)
32526
+ return le.map((ue) => F(ue, !w.value || x.value));
32514
32527
  const te = w.value ? "search-empty" : "empty";
32515
32528
  return ((J = (Q = t.slots).empty) == null ? void 0 : J.call(Q)) ?? j(te);
32516
- }, re = ([ie, te, Q]) => {
32529
+ }, ie = ([le, te, Q]) => {
32517
32530
  var J, ue, be, ae;
32518
- if (E.value.enabled && ie.offset.y > 5) {
32531
+ if (E.value.enabled && le.offset.y > 5) {
32519
32532
  if (!e.virtualRender) {
32520
- const q = O(ie.offset.y, n.value.refRoot), D = p(q[0]);
32533
+ const X = O(le.offset.y, n.value.refRoot), D = p(X[0]);
32521
32534
  (ue = (J = E.value) == null ? void 0 : J.callback) == null || ue.call(J, D), t.emit(Ft.NODE_ENTER_VIEW, D);
32522
32535
  return;
32523
32536
  }
@@ -32540,9 +32553,9 @@ const pH = {
32540
32553
  list: N.value,
32541
32554
  rowKey: pe.UUID,
32542
32555
  throttleDelay: 0,
32543
- onContentScroll: re
32556
+ onContentScroll: ie
32544
32557
  }, {
32545
- default: (ie) => ne(ie.data || [])
32558
+ default: (le) => ne(le.data || [])
32546
32559
  });
32547
32560
  }
32548
32561
  }), $H = He(AH), Ss = "upload";
@@ -32874,19 +32887,19 @@ const kH = /* @__PURE__ */ me({
32874
32887
  if (e.selectChange && (($ = e.selectChange) == null ? void 0 : $.call(e, z)) === !1)
32875
32888
  return !1;
32876
32889
  const {
32877
- files: B
32890
+ files: V
32878
32891
  } = z.target;
32879
- n("change", Array.from(B));
32892
+ n("change", Array.from(V));
32880
32893
  }, T = () => {
32881
32894
  e.disabled || w();
32882
32895
  }, x = (z) => {
32883
32896
  z.defaultPrevented || z.target !== z.currentTarget || ((z.code === "Enter" || z.code === "Space") && w(), z.preventDefault());
32884
32897
  };
32885
- function A(z, B) {
32886
- n("remove", z, B), B.stopPropagation(), B.preventDefault();
32898
+ function A(z, V) {
32899
+ n("remove", z, V), V.stopPropagation(), V.preventDefault();
32887
32900
  }
32888
- function _(z, B) {
32889
- n("preview", z, [z], B), B.stopPropagation(), B.preventDefault();
32901
+ function _(z, V) {
32902
+ n("preview", z, [z], V), V.stopPropagation(), V.preventDefault();
32890
32903
  }
32891
32904
  const L = P(!1), N = () => {
32892
32905
  const z = (W) => {
@@ -32897,17 +32910,17 @@ const kH = /* @__PURE__ */ me({
32897
32910
  return !1;
32898
32911
  const Y = Array.from(W.dataTransfer.files);
32899
32912
  n("change", Y);
32900
- }, B = (W) => {
32913
+ }, V = (W) => {
32901
32914
  W.preventDefault(), L.value = !0;
32902
32915
  }, $ = () => {
32903
32916
  L.value = !1;
32904
- }, X = Ae({
32917
+ }, q = Ae({
32905
32918
  [`${c}__draggable`]: !0
32906
32919
  });
32907
32920
  return u("div", {
32908
- class: X,
32921
+ class: q,
32909
32922
  onDragleave: $,
32910
- onDragover: B,
32923
+ onDragover: V,
32911
32924
  onDrop: z
32912
32925
  }, [t.default ? t.default() : u(Fe, null, [u(mr, {
32913
32926
  class: `${c}__draggable-icon`
@@ -32940,10 +32953,10 @@ const kH = /* @__PURE__ */ me({
32940
32953
  class: `${c}__picture-actions`
32941
32954
  }, [f.value && u(Ea, {
32942
32955
  class: "action-icon",
32943
- onClick: (B) => _(z, B)
32956
+ onClick: (V) => _(z, V)
32944
32957
  }, null), u(ga, {
32945
32958
  class: "action-icon",
32946
- onClick: (B) => A(z, B)
32959
+ onClick: (V) => A(z, V)
32947
32960
  }, null)])])], M = () => u(yt, {
32948
32961
  disabled: i.value
32949
32962
  }, {
@@ -33459,9 +33472,9 @@ const HH = (e, t) => {
33459
33472
  method: M,
33460
33473
  withCredentials: H,
33461
33474
  name: z,
33462
- url: B,
33475
+ url: V,
33463
33476
  sliceUrl: $,
33464
- mergeUrl: X,
33477
+ mergeUrl: q,
33465
33478
  chunkSize: W,
33466
33479
  customRequest: Y
33467
33480
  } = e, {
@@ -33476,9 +33489,9 @@ const HH = (e, t) => {
33476
33489
  formDataAttributes: F,
33477
33490
  method: M,
33478
33491
  filename: z,
33479
- action: B,
33492
+ action: V,
33480
33493
  sliceUrl: $,
33481
- mergeUrl: X,
33494
+ mergeUrl: q,
33482
33495
  chunkSize: W,
33483
33496
  onProgress: (ee) => {
33484
33497
  v(ee, A), n("progress", ee, A, c.value);
@@ -33489,8 +33502,8 @@ const HH = (e, t) => {
33489
33502
  if ((ne = e == null ? void 0 : e.handleResCode) != null && ne.call(e, j))
33490
33503
  y(ee, A), n("success", ee, A, c.value);
33491
33504
  else {
33492
- const re = new Error((j == null ? void 0 : j.message) || "unknow error");
33493
- b(re, A, ee), n("error", A, c.value, re);
33505
+ const ie = new Error((j == null ? void 0 : j.message) || "unknow error");
33506
+ b(ie, A, ee), n("error", A, c.value, ie);
33494
33507
  }
33495
33508
  delete r.value[I];
33496
33509
  },
@@ -33624,7 +33637,7 @@ const HH = (e, t) => {
33624
33637
  }, qH = {
33625
33638
  createInstall: $2,
33626
33639
  install: $2()
33627
- }, BH = "2.0.2-beta.10";
33640
+ }, BH = "2.0.2-beta.12";
33628
33641
  window.__bkui_vue_version__ = BH;
33629
33642
  export {
33630
33643
  nh as $bkPopover,