@fox-js/foxui-pc 4.1.1-12 → 4.1.1-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -5,7 +5,7 @@ import { ElAffix as hp, ElAlert as gp, ElAnchor as vp, ElAnchorLink as mp, ElAsi
5
5
  import { ArrowLeft as ko, ArrowUp as zn, Download as Io, RefreshLeft as Do, Loading as Xs, Setting as Zs, CircleClose as Js, Close as Fo, ArrowRight as Qs } from "@element-plus/icons-vue";
6
6
  import { useFoxI18n as at } from "@fox-js/i18n";
7
7
  /*!
8
- * @fox-js/foxui-desktop v4.0.0 Fri Jan 24 2025 22:48:45 GMT+0800 (中国标准时间)
8
+ * @fox-js/foxui-desktop v4.0.0 Wed Mar 26 2025 16:14:03 GMT+0800 (中国标准时间)
9
9
  */
10
10
  const pn = window, ei = typeof window < "u";
11
11
  function ti() {
@@ -3533,7 +3533,7 @@ function cu(e, t, l) {
3533
3533
  M(N);
3534
3534
  }
3535
3535
  );
3536
- const te = (N) => {
3536
+ const ne = (N) => {
3537
3537
  a.emit("header-click", N);
3538
3538
  }, $ = () => {
3539
3539
  S();
@@ -3643,7 +3643,7 @@ function cu(e, t, l) {
3643
3643
  key: `${W++}`,
3644
3644
  ref: V,
3645
3645
  class: { [`${m}__header`]: !0, [`${m}__first`]: !0 },
3646
- onClick: te
3646
+ onClick: ne
3647
3647
  }, X = A("div", K, [a.slots.header()]);
3648
3648
  N.push(X);
3649
3649
  } else {
@@ -3682,7 +3682,7 @@ function cu(e, t, l) {
3682
3682
  key: `${W++}`,
3683
3683
  ref: V,
3684
3684
  class: { [`${m}__header`]: !0, [`${m}__first`]: !0 },
3685
- onClick: te
3685
+ onClick: ne
3686
3686
  }, de = A("div", ae, K);
3687
3687
  N.push(de);
3688
3688
  }
@@ -4044,7 +4044,7 @@ const Jo = /* @__PURE__ */ dt(Su, [["render", Cu]]), { componentName: sl, create
4044
4044
  const B = document.documentElement.clientWidth || document.body.clientWidth, G = document.documentElement.clientHeight || document.body.clientHeight, ee = g.split("-");
4045
4045
  let M = [];
4046
4046
  ee[0] === "top" ? M = ["top", "bottom", "right", "left"] : ee[0] === "bottom" ? M = ["bottom", "top", "right", "left"] : ee[0] === "left" ? M = ["left", "top", "bottom", "right"] : ee[0] === "right" && (M = ["right", "top", "bottom", "left"]);
4047
- const te = {
4047
+ const ne = {
4048
4048
  top: null,
4049
4049
  right: null,
4050
4050
  bottom: null,
@@ -4055,44 +4055,44 @@ const Jo = /* @__PURE__ */ dt(Su, [["render", Cu]]), { componentName: sl, create
4055
4055
  if ($[0] = P, ee[1] && ($[1] = ee[1]), P === "top") {
4056
4056
  const I = _.y - R - e.arrowSize - e.offset;
4057
4057
  if (I >= 0) {
4058
- te.top = I;
4058
+ ne.top = I;
4059
4059
  let p = 0;
4060
4060
  ee[1] === "start" ? p = _.x : ee[1] === "end" ? p = _.x + J - C : p = _.x + J / 2 - C / 2;
4061
4061
  const j = B - p - C;
4062
- j < 0 ? (p += j, h.value = -j) : h.value = 0, te.left = p < 0 ? 0 : p;
4062
+ j < 0 ? (p += j, h.value = -j) : h.value = 0, ne.left = p < 0 ? 0 : p;
4063
4063
  break;
4064
4064
  }
4065
4065
  } else if (P === "bottom") {
4066
4066
  const I = _.y + V + e.arrowSize + e.offset;
4067
4067
  if (I + R <= G) {
4068
- te.top = I;
4068
+ ne.top = I;
4069
4069
  let p = 0;
4070
4070
  ee[1] === "start" ? p = _.x : ee[1] === "end" ? p = _.x + J - C : p = _.x + J / 2 - C / 2;
4071
4071
  const j = B - p - C;
4072
- j < 0 ? (p += j, h.value = -j) : h.value = 0, te.left = p < 0 ? 0 : p;
4072
+ j < 0 ? (p += j, h.value = -j) : h.value = 0, ne.left = p < 0 ? 0 : p;
4073
4073
  break;
4074
4074
  }
4075
4075
  } else if (P === "left") {
4076
4076
  const I = _.x - C - e.arrowSize - e.offset;
4077
4077
  if (I >= 0) {
4078
- te.left = I;
4078
+ ne.left = I;
4079
4079
  let p = 0;
4080
- ee[1] === "start" ? p = _.y : ee[1] === "end" ? p = _.y + V - R : p = _.y + V / 2 - R / 2, te.top = p < 0 ? 0 : p;
4080
+ ee[1] === "start" ? p = _.y : ee[1] === "end" ? p = _.y + V - R : p = _.y + V / 2 - R / 2, ne.top = p < 0 ? 0 : p;
4081
4081
  break;
4082
4082
  }
4083
4083
  } else if (P === "right") {
4084
4084
  const I = _.x + J + e.arrowSize + e.offset;
4085
4085
  if (I + C <= B) {
4086
- te.left = I;
4086
+ ne.left = I;
4087
4087
  let p = 0;
4088
- ee[1] === "start" ? p = _.y : ee[1] === "end" ? p = _.y + V - R : p = _.y + V / 2 - R / 2, te.top = p < 0 ? 0 : p;
4088
+ ee[1] === "start" ? p = _.y : ee[1] === "end" ? p = _.y + V - R : p = _.y + V / 2 - R / 2, ne.top = p < 0 ? 0 : p;
4089
4089
  break;
4090
4090
  }
4091
4091
  }
4092
4092
  }
4093
4093
  return {
4094
4094
  bestPlacement: $.join("-"),
4095
- bestInsetRect: te
4095
+ bestInsetRect: ne
4096
4096
  };
4097
4097
  }, f = (g, _, J = 10) => {
4098
4098
  if (!Ht || _ === !1 || !g)
@@ -4429,7 +4429,7 @@ function Ru(e, t, l, n = !1) {
4429
4429
  y.value = k;
4430
4430
  }
4431
4431
  });
4432
- const _ = T(() => a.infoTip || g.infoTip), J = T(() => a.infoIcon || g.infoIcon), V = T(() => a.warnTip || g.warnTip), C = T(() => a.warnIcon || g.warnIcon), R = T(() => a.errorTip || g.errorTip), B = T(() => a.errorIcon || g.errorIcon), G = T(() => R.value ? "error" : V.value ? "warn" : _.value ? "info" : ""), ee = () => G.value.length > 0, M = T(() => G.value === "error" ? R.value : G.value === "warn" ? V.value : G.value === "info" ? _.value : ""), te = T(() => G.value === "error" ? B.value : G.value === "warn" ? C.value : G.value === "info" ? J.value : null), $ = T(() => {
4432
+ const _ = T(() => a.infoTip || g.infoTip), J = T(() => a.infoIcon || g.infoIcon), V = T(() => a.warnTip || g.warnTip), C = T(() => a.warnIcon || g.warnIcon), R = T(() => a.errorTip || g.errorTip), B = T(() => a.errorIcon || g.errorIcon), G = T(() => R.value ? "error" : V.value ? "warn" : _.value ? "info" : ""), ee = () => G.value.length > 0, M = T(() => G.value === "error" ? R.value : G.value === "warn" ? V.value : G.value === "info" ? _.value : ""), ne = T(() => G.value === "error" ? B.value : G.value === "warn" ? C.value : G.value === "info" ? J.value : null), $ = T(() => {
4433
4433
  const k = {
4434
4434
  [`${f}__tip`]: !0,
4435
4435
  [`${f}__tip--${G.value}`]: !0,
@@ -4511,7 +4511,7 @@ function Ru(e, t, l, n = !1) {
4511
4511
  };
4512
4512
  return A("div", K, k);
4513
4513
  }, Y = () => {
4514
- const k = te.value;
4514
+ const k = ne.value;
4515
4515
  return k ? typeof k == "function" ? A("div", { class: "fox-item__tip--icon" }, [k()]) : A("div", { class: "fox-item__tip--icon" }, [A(k)]) : null;
4516
4516
  }, N = () => {
4517
4517
  const k = M.value;
@@ -5093,7 +5093,7 @@ function nc(e, t, l) {
5093
5093
  n.prop ?? a.attrs.name
5094
5094
  ), { toLocaleRefs: f } = at(t), h = f(n, ["placeholder"]), v = L(null), y = L([]), m = T(() => y.value ? y.value.map((W) => Ct(n, W)).join(" ") : ""), c = (N, W, Z, k = !0) => {
5095
5095
  if (!Z || Z.length == 0) {
5096
- v.value = N, u("update:modelValue", N), u("change", N);
5096
+ v.value = N, k && (u("update:modelValue", N), u("change", N));
5097
5097
  return;
5098
5098
  }
5099
5099
  const K = tr(n, N, W, Z);
@@ -5207,15 +5207,15 @@ function nc(e, t, l) {
5207
5207
  n.maxLength && Z.length > Number(n.maxLength) && (Z = Z.slice(0, Number(n.maxLength))), j.value || u("blur", Z, N);
5208
5208
  }, M = () => {
5209
5209
  u("clear", "");
5210
- }, te = L(!1);
5210
+ }, ne = L(!1);
5211
5211
  let $ = null;
5212
5212
  const S = () => {
5213
- n.showTooltip && te.value === !1 && ($ && clearTimeout($), $ = setTimeout(() => {
5214
- te.value = !0;
5213
+ n.showTooltip && ne.value === !1 && ($ && clearTimeout($), $ = setTimeout(() => {
5214
+ ne.value = !0;
5215
5215
  }, 150));
5216
5216
  }, P = () => {
5217
- $ && (clearTimeout($), te.value = !1, $ = null);
5218
- }, I = T(() => te.value || B.value), p = T(() => te.value ? m.value : R.value), j = L(!1), Q = (N) => {
5217
+ $ && (clearTimeout($), ne.value = !1, $ = null);
5218
+ }, I = T(() => ne.value || B.value), p = T(() => ne.value ? m.value : R.value), j = L(!1), Q = (N) => {
5219
5219
  j.value = N, u("visible-change", N), N || u("selected");
5220
5220
  }, le = (N) => {
5221
5221
  u("remove-tag", N);
@@ -5348,8 +5348,8 @@ function ic() {
5348
5348
  var M = C.split("-");
5349
5349
  if (!G && M.length > 1) return V(M[0]);
5350
5350
  } else {
5351
- var te = C.name;
5352
- D[te] = C, G = te;
5351
+ var ne = C.name;
5352
+ D[ne] = C, G = ne;
5353
5353
  }
5354
5354
  return !B && G && (z = G), G || !B && z;
5355
5355
  }, H = function(V, C) {
@@ -5374,8 +5374,8 @@ function ic() {
5374
5374
  if (typeof G == "string" && !/Z$/i.test(G)) {
5375
5375
  var M = G.match(d);
5376
5376
  if (M) {
5377
- var te = M[2] - 1 || 0, $ = (M[7] || "0").substring(0, 3);
5378
- return ee ? new Date(Date.UTC(M[1], te, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, $)) : new Date(M[1], te, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, $);
5377
+ var ne = M[2] - 1 || 0, $ = (M[7] || "0").substring(0, 3);
5378
+ return ee ? new Date(Date.UTC(M[1], ne, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, $)) : new Date(M[1], ne, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, $);
5379
5379
  }
5380
5380
  }
5381
5381
  return new Date(G);
@@ -5401,7 +5401,7 @@ function ic() {
5401
5401
  }, C.valueOf = function() {
5402
5402
  return this.$d.getTime();
5403
5403
  }, C.startOf = function(R, B) {
5404
- var G = this, ee = !!g.u(B) || B, M = g.p(R), te = function(le, U) {
5404
+ var G = this, ee = !!g.u(B) || B, M = g.p(R), ne = function(le, U) {
5405
5405
  var Y = g.w(G.$u ? Date.UTC(G.$y, U, le) : new Date(G.$y, U, le), G);
5406
5406
  return ee ? Y : Y.endOf(u);
5407
5407
  }, $ = function(le, U) {
@@ -5409,12 +5409,12 @@ function ic() {
5409
5409
  }, S = this.$W, P = this.$M, I = this.$D, p = "set" + (this.$u ? "UTC" : "");
5410
5410
  switch (M) {
5411
5411
  case y:
5412
- return ee ? te(1, 0) : te(31, 11);
5412
+ return ee ? ne(1, 0) : ne(31, 11);
5413
5413
  case h:
5414
- return ee ? te(1, P) : te(0, P + 1);
5414
+ return ee ? ne(1, P) : ne(0, P + 1);
5415
5415
  case f:
5416
5416
  var j = this.$locale().weekStart || 0, Q = (S < j ? S + 7 : S) - j;
5417
- return te(ee ? I - Q : I + (6 - Q), P);
5417
+ return ne(ee ? I - Q : I + (6 - Q), P);
5418
5418
  case u:
5419
5419
  case m:
5420
5420
  return $(p + "Hours", 0);
@@ -5430,11 +5430,11 @@ function ic() {
5430
5430
  }, C.endOf = function(R) {
5431
5431
  return this.startOf(R, !1);
5432
5432
  }, C.$set = function(R, B) {
5433
- var G, ee = g.p(R), M = "set" + (this.$u ? "UTC" : ""), te = (G = {}, G[u] = M + "Date", G[m] = M + "Date", G[h] = M + "Month", G[y] = M + "FullYear", G[s] = M + "Hours", G[i] = M + "Minutes", G[r] = M + "Seconds", G[o] = M + "Milliseconds", G)[ee], $ = ee === u ? this.$D + (B - this.$W) : B;
5433
+ var G, ee = g.p(R), M = "set" + (this.$u ? "UTC" : ""), ne = (G = {}, G[u] = M + "Date", G[m] = M + "Date", G[h] = M + "Month", G[y] = M + "FullYear", G[s] = M + "Hours", G[i] = M + "Minutes", G[r] = M + "Seconds", G[o] = M + "Milliseconds", G)[ee], $ = ee === u ? this.$D + (B - this.$W) : B;
5434
5434
  if (ee === h || ee === y) {
5435
5435
  var S = this.clone().set(m, 1);
5436
- S.$d[te]($), S.init(), this.$d = S.set(m, Math.min(this.$D, S.daysInMonth())).$d;
5437
- } else te && this.$d[te]($);
5436
+ S.$d[ne]($), S.init(), this.$d = S.set(m, Math.min(this.$D, S.daysInMonth())).$d;
5437
+ } else ne && this.$d[ne]($);
5438
5438
  return this.init(), this;
5439
5439
  }, C.set = function(R, B) {
5440
5440
  return this.clone().$set(R, B);
@@ -5443,14 +5443,14 @@ function ic() {
5443
5443
  }, C.add = function(R, B) {
5444
5444
  var G, ee = this;
5445
5445
  R = Number(R);
5446
- var M = g.p(B), te = function(P) {
5446
+ var M = g.p(B), ne = function(P) {
5447
5447
  var I = H(ee);
5448
5448
  return g.w(I.date(I.date() + Math.round(P * R)), ee);
5449
5449
  };
5450
5450
  if (M === h) return this.set(h, this.$M + R);
5451
5451
  if (M === y) return this.set(y, this.$y + R);
5452
- if (M === u) return te(1);
5453
- if (M === f) return te(7);
5452
+ if (M === u) return ne(1);
5453
+ if (M === f) return ne(7);
5454
5454
  var $ = (G = {}, G[i] = n, G[s] = a, G[r] = l, G)[M] || 1, S = this.$d.getTime() + R * $;
5455
5455
  return g.w(S, this);
5456
5456
  }, C.subtract = function(R, B) {
@@ -5458,10 +5458,10 @@ function ic() {
5458
5458
  }, C.format = function(R) {
5459
5459
  var B = this, G = this.$locale();
5460
5460
  if (!this.isValid()) return G.invalidDate || c;
5461
- var ee = R || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), te = this.$H, $ = this.$m, S = this.$M, P = G.weekdays, I = G.months, p = G.meridiem, j = function(U, Y, N, W) {
5461
+ var ee = R || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), ne = this.$H, $ = this.$m, S = this.$M, P = G.weekdays, I = G.months, p = G.meridiem, j = function(U, Y, N, W) {
5462
5462
  return U && (U[Y] || U(B, ee)) || N[Y].slice(0, W);
5463
5463
  }, Q = function(U) {
5464
- return g.s(te % 12 || 12, U, "0");
5464
+ return g.s(ne % 12 || 12, U, "0");
5465
5465
  }, le = p || function(U, Y, N) {
5466
5466
  var W = U < 12 ? "AM" : "PM";
5467
5467
  return N ? W.toLowerCase() : W;
@@ -5494,17 +5494,17 @@ function ic() {
5494
5494
  case "dddd":
5495
5495
  return P[B.$W];
5496
5496
  case "H":
5497
- return String(te);
5497
+ return String(ne);
5498
5498
  case "HH":
5499
- return g.s(te, 2, "0");
5499
+ return g.s(ne, 2, "0");
5500
5500
  case "h":
5501
5501
  return Q(1);
5502
5502
  case "hh":
5503
5503
  return Q(2);
5504
5504
  case "a":
5505
- return le(te, $, !0);
5505
+ return le(ne, $, !0);
5506
5506
  case "A":
5507
- return le(te, $, !1);
5507
+ return le(ne, $, !1);
5508
5508
  case "m":
5509
5509
  return String($);
5510
5510
  case "mm":
@@ -5524,10 +5524,10 @@ function ic() {
5524
5524
  }, C.utcOffset = function() {
5525
5525
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5526
5526
  }, C.diff = function(R, B, G) {
5527
- var ee, M = this, te = g.p(B), $ = H(R), S = ($.utcOffset() - this.utcOffset()) * n, P = this - $, I = function() {
5527
+ var ee, M = this, ne = g.p(B), $ = H(R), S = ($.utcOffset() - this.utcOffset()) * n, P = this - $, I = function() {
5528
5528
  return g.m(M, $);
5529
5529
  };
5530
- switch (te) {
5530
+ switch (ne) {
5531
5531
  case y:
5532
5532
  ee = I() / 12;
5533
5533
  break;
@@ -5688,8 +5688,8 @@ function fc() {
5688
5688
  H && (_ = E[2]), i = this.$locale(), !x && _ && (i = O.Ls[_]), this.$d = function(R, B, G) {
5689
5689
  try {
5690
5690
  if (["x", "X"].indexOf(B) > -1) return new Date((B === "X" ? 1e3 : 1) * R);
5691
- var ee = m(B)(R), M = ee.year, te = ee.month, $ = ee.day, S = ee.hours, P = ee.minutes, I = ee.seconds, p = ee.milliseconds, j = ee.zone, Q = /* @__PURE__ */ new Date(), le = $ || (M || te ? 1 : Q.getDate()), U = M || Q.getFullYear(), Y = 0;
5692
- M && !te || (Y = te > 0 ? te - 1 : Q.getMonth());
5691
+ var ee = m(B)(R), M = ee.year, ne = ee.month, $ = ee.day, S = ee.hours, P = ee.minutes, I = ee.seconds, p = ee.milliseconds, j = ee.zone, Q = /* @__PURE__ */ new Date(), le = $ || (M || ne ? 1 : Q.getDate()), U = M || Q.getFullYear(), Y = 0;
5692
+ M && !ne || (Y = ne > 0 ? ne - 1 : Q.getMonth());
5693
5693
  var N = S || 0, W = P || 0, Z = I || 0, k = p || 0;
5694
5694
  return j ? new Date(Date.UTC(U, Y, le, N, W, Z, k + 60 * j.offset * 1e3)) : G ? new Date(Date.UTC(U, Y, le, N, W, Z, k)) : new Date(U, Y, le, N, W, Z, k);
5695
5695
  } catch {
@@ -6351,7 +6351,7 @@ function zc(e, t, l) {
6351
6351
  const M = T(() => ({
6352
6352
  "fox-date-item__long": !0,
6353
6353
  "is-active": v.value
6354
- })), te = L(), $ = L(), S = /^\d+$/, P = (Y, N) => typeof n.flashFillThreshold == "function" ? n.flashFillThreshold(Y, N) : S.test(Y) && Y.length === n.flashFillThreshold, I = (Y, N) => {
6354
+ })), ne = L(), $ = L(), S = /^\d+$/, P = (Y, N) => typeof n.flashFillThreshold == "function" ? n.flashFillThreshold(Y, N) : S.test(Y) && Y.length === n.flashFillThreshold, I = (Y, N) => {
6355
6355
  let W;
6356
6356
  if (typeof n.flashFillFormat == "function")
6357
6357
  W = n.flashFillFormat(Y, N);
@@ -6386,21 +6386,21 @@ function zc(e, t, l) {
6386
6386
  d(W);
6387
6387
  }
6388
6388
  }, le = () => {
6389
- if (n.flashFill && te.value && te.value.$el)
6389
+ if (n.flashFill && ne.value && ne.value.$el)
6390
6390
  if (p(n.type)) {
6391
- const Y = te.value.$el.querySelectorAll("input.el-range-input");
6391
+ const Y = ne.value.$el.querySelectorAll("input.el-range-input");
6392
6392
  Y[0] && Y[0].addEventListener("input", j), Y[1] && Y[1].addEventListener("input", Q);
6393
6393
  } else {
6394
- const Y = te.value.$el.querySelector("input.el-input__inner");
6394
+ const Y = ne.value.$el.querySelector("input.el-input__inner");
6395
6395
  Y && Y.addEventListener("input", j);
6396
6396
  }
6397
6397
  }, U = () => {
6398
- if (n.flashFill && te.value && te.value.$el)
6398
+ if (n.flashFill && ne.value && ne.value.$el)
6399
6399
  if (p(n.type)) {
6400
- const Y = te.value.$el.querySelectorAll("input.el-range-input");
6400
+ const Y = ne.value.$el.querySelectorAll("input.el-range-input");
6401
6401
  Y[0] && Y[0].removeEventListener("input", j), Y[1] && Y[1].removeEventListener("input", Q);
6402
6402
  } else {
6403
- const Y = te.value.$el.querySelector("input.el-input__inner");
6403
+ const Y = ne.value.$el.querySelector("input.el-input__inner");
6404
6404
  Y && Y.removeEventListener("input", j);
6405
6405
  }
6406
6406
  };
@@ -6487,7 +6487,7 @@ function zc(e, t, l) {
6487
6487
  }
6488
6488
  const ae = {
6489
6489
  ...Ze(n, ya, pa),
6490
- ref: te,
6490
+ ref: ne,
6491
6491
  class: {
6492
6492
  [`${w}__wrapper`]: !0,
6493
6493
  "has-append": ee
@@ -7615,7 +7615,7 @@ function bf(e, t, l) {
7615
7615
  u("clear", "");
7616
7616
  }, ee = L(!1);
7617
7617
  let M = null;
7618
- const te = () => {
7618
+ const ne = () => {
7619
7619
  n.showTooltip && ee.value === !1 && (M && clearTimeout(M), M = setTimeout(() => {
7620
7620
  ee.value = !0;
7621
7621
  }, 150));
@@ -7680,7 +7680,7 @@ function bf(e, t, l) {
7680
7680
  ...Ze(n, Ea),
7681
7681
  hintText: P.value,
7682
7682
  hintVisible: S.value,
7683
- onMouseover: te,
7683
+ onMouseover: ne,
7684
7684
  onMouseleave: $
7685
7685
  };
7686
7686
  return n.prop && (X.prop = `${n.prop}_item`), O.value && !n.lazy && (X["appear-listen"] = !0, X.onAppear = z), A(l, X, k);
@@ -8281,7 +8281,7 @@ const Kf = /* @__PURE__ */ dt(zf, [["render", jf]]), { componentName: Hy, create
8281
8281
  j.fixed = void 0, d();
8282
8282
  }, ee = /* @__PURE__ */ new Map();
8283
8283
  let M = null;
8284
- function te(p) {
8284
+ function ne(p) {
8285
8285
  const j = document.createRange();
8286
8286
  return j.setStart(p, 0), j.setEnd(p, p.childNodes.length), j.getBoundingClientRect().width;
8287
8287
  }
@@ -8314,7 +8314,7 @@ const Kf = /* @__PURE__ */ dt(zf, [["render", jf]]), { componentName: Hy, create
8314
8314
  const le = p.currentTarget;
8315
8315
  if (le) {
8316
8316
  const U = Math.floor(le.offsetWidth);
8317
- if (Math.floor(te(le)) > U) {
8317
+ if (Math.floor(ne(le)) > U) {
8318
8318
  let N = ee.get(j);
8319
8319
  if (N) {
8320
8320
  if (N === M)
@@ -8709,11 +8709,11 @@ const yd = Symbol.for("TableStateKey"), Da = {
8709
8709
  },
8710
8710
  // row class name
8711
8711
  rowClassName: {
8712
- type: Function
8712
+ type: [Function, String]
8713
8713
  },
8714
8714
  // cell class name
8715
8715
  cellClassName: {
8716
- type: Function
8716
+ type: [Function, String]
8717
8717
  },
8718
8718
  // 点击行自动选中checkbox支持
8719
8719
  rowClickSelectable: {
@@ -8937,7 +8937,7 @@ function xd(e, t, l) {
8937
8937
  componentName: e,
8938
8938
  // 获取value
8939
8939
  validateHandler: {
8940
- getValue(...ne) {
8940
+ getValue(...te) {
8941
8941
  return E.value;
8942
8942
  }
8943
8943
  }
@@ -8956,48 +8956,48 @@ function xd(e, t, l) {
8956
8956
  })), y = sn({}), m = T(() => ({ ...y.value, ...n.params ?? {}, ...n.baseParams ?? {} })), c = L(n.infiniteLoad === !0 ? 0 : n.pageIndex), d = L(n.pageSize), O = he(n.infiniteLoad);
8957
8957
  O || (fe(
8958
8958
  () => n.pageIndex,
8959
- (ne) => {
8960
- c.value = ne;
8959
+ (te) => {
8960
+ c.value = te;
8961
8961
  }
8962
8962
  ), fe(
8963
8963
  () => n.pageSize,
8964
- (ne) => {
8965
- d.value = ne;
8964
+ (te) => {
8965
+ d.value = te;
8966
8966
  }
8967
- ), fe([c, d], ([ne, oe], [re, ue]) => {
8968
- oe !== ue && (c.value = 1, ne = 1), g(n.data, ne, oe, m.value);
8967
+ ), fe([c, d], ([te, oe], [re, ue]) => {
8968
+ oe !== ue && (c.value = 1, te = 1), g(n.data, te, oe, m.value);
8969
8969
  }));
8970
8970
  const w = () => Array.isArray(n.data) ? !0 : he(n.autoLoad);
8971
8971
  w() && fe(
8972
8972
  [() => n.data, m],
8973
- async ([ne, oe], [re, ue]) => {
8974
- w() && (ne !== re && (x = !0), !(!Array.isArray(ne) && kt(ne, re) && kt(oe, ue)) && (O ? (c.value = 0, z.value = !0, E.value = [], J()) : c.value === 1 ? g(ne, c.value, d.value, oe) : c.value = 1));
8973
+ async ([te, oe], [re, ue]) => {
8974
+ w() && (te !== re && (x = !0), !(!Array.isArray(te) && kt(te, re) && kt(oe, ue)) && (O ? (c.value = 0, z.value = !0, E.value = [], J()) : c.value === 1 ? g(te, c.value, d.value, oe) : c.value = 1));
8975
8975
  },
8976
8976
  { deep: !0 }
8977
8977
  );
8978
- const b = (ne) => {
8979
- c.value = ne, r("page-index-change", ne);
8980
- }, q = (ne) => {
8981
- d.value = ne, r("page-size-change", ne);
8978
+ const b = (te) => {
8979
+ c.value = te, r("page-index-change", te);
8980
+ }, q = (te) => {
8981
+ d.value = te, r("page-size-change", te);
8982
8982
  }, z = L(!0), D = L(0), E = L(), F = vd();
8983
8983
  let x = !0;
8984
8984
  const H = Qe(
8985
8985
  T(() => n.appearLoad),
8986
8986
  "appearLoad",
8987
8987
  st.Near,
8988
- (ne) => he(ne)
8989
- ), g = async (ne, oe, re, ue, Le) => {
8988
+ (te) => he(te)
8989
+ ), g = async (te, oe, re, ue, Le) => {
8990
8990
  x = !1;
8991
8991
  try {
8992
8992
  if (Le === !0) {
8993
8993
  if (!z.value)
8994
8994
  return !1;
8995
- const Pe = await F.load("table", ne, oe, re, ue, x, o.value);
8995
+ const Pe = await F.load("table", te, oe, re, ue, x, o.value);
8996
8996
  return D.value = Pe.totalSize, !Pe.page || !Array.isArray(Pe.page) || (Reflect.apply([].push, E.value, Pe.page), setTimeout(() => {
8997
8997
  r("loaded-data");
8998
8998
  }, 250), (E.value?.length ?? 0) >= D.value) || Pe.page.length < re ? (z.value = !1, !1) : !0;
8999
8999
  } else {
9000
- const Pe = await F.load("table", ne, oe, re, ue, x, o.value);
9000
+ const Pe = await F.load("table", te, oe, re, ue, x, o.value);
9001
9001
  return D.value = Pe.totalSize, E.value = Pe.page ?? [], setTimeout(() => {
9002
9002
  r("loaded-data");
9003
9003
  }, 250), !0;
@@ -9016,8 +9016,8 @@ function xd(e, t, l) {
9016
9016
  }
9017
9017
  c.value += 1, await g(n.data, c.value, d.value, m.value, !0), _ = !1;
9018
9018
  }
9019
- }, V = (ne = {}, oe = !1) => new Promise(async (re) => {
9020
- y.value = { ...we(ne ?? {}) }, oe || (c.value = n.pageIndex ?? 1), O === !0 ? (c.value = 0, E.value = [], z.value = !0, await J()) : await g(n.data, c.value, d.value, m.value), re();
9019
+ }, V = (te = {}, oe = !1) => new Promise(async (re) => {
9020
+ y.value = { ...we(te ?? {}) }, oe || (c.value = n.pageIndex ?? 1), O === !0 ? (c.value = 0, E.value = [], z.value = !0, await J()) : await g(n.data, c.value, d.value, m.value), re();
9021
9021
  }), C = () => {
9022
9022
  D.value = 0, E.value = [], O === !0 && (c.value = 0, z.value = !0);
9023
9023
  };
@@ -9026,9 +9026,9 @@ function xd(e, t, l) {
9026
9026
  R || (R = !0, V());
9027
9027
  }, G = L(null);
9028
9028
  if (O === !0) {
9029
- let ne = null;
9029
+ let te = null;
9030
9030
  const oe = () => {
9031
- G.value && (ne = new IntersectionObserver((ue) => {
9031
+ G.value && (te = new IntersectionObserver((ue) => {
9032
9032
  let Le = !1;
9033
9033
  for (let Pe of ue)
9034
9034
  if (Pe.intersectionRatio > 0) {
@@ -9036,9 +9036,9 @@ function xd(e, t, l) {
9036
9036
  break;
9037
9037
  }
9038
9038
  Le && J();
9039
- }), ne.observe(G.value));
9039
+ }), te.observe(G.value));
9040
9040
  }, re = () => {
9041
- !ne || !G.value || (ne.unobserve(G.value), ne = null);
9041
+ !te || !G.value || (te.unobserve(G.value), te = null);
9042
9042
  };
9043
9043
  Ne(oe), ut(re);
9044
9044
  }
@@ -9047,46 +9047,46 @@ function xd(e, t, l) {
9047
9047
  De(yd, {
9048
9048
  currentRow: ee
9049
9049
  });
9050
- const M = (ne, oe) => {
9051
- ee.value = ne, r("current-change", ne, oe);
9052
- }, te = (ne, oe, re) => {
9053
- r("row-click", ne, oe, re), he(n.rowClickSelectable) === !0 && Re?.value.toggleRowSelection(ne);
9054
- }, $ = [], S = (ne, oe) => {
9055
- if (r("expand-change", ne, oe), he(n.uniqueExpansion))
9050
+ const M = (te, oe) => {
9051
+ ee.value = te, r("current-change", te, oe);
9052
+ }, ne = (te, oe, re) => {
9053
+ r("row-click", te, oe, re), he(n.rowClickSelectable) === !0 && Re?.value.toggleRowSelection(te);
9054
+ }, $ = [], S = (te, oe) => {
9055
+ if (r("expand-change", te, oe), he(n.uniqueExpansion))
9056
9056
  if (Array.isArray(oe) && oe.length == 0) {
9057
9057
  const re = $.length;
9058
9058
  $.splice(0, re);
9059
9059
  } else {
9060
9060
  $.forEach((ue) => {
9061
- ue !== ne && Re?.value.toggleRowExpansion(ue, !1);
9061
+ ue !== te && Re?.value.toggleRowExpansion(ue, !1);
9062
9062
  });
9063
9063
  const re = $.length;
9064
- $.splice(0, re, ne);
9064
+ $.splice(0, re, te);
9065
9065
  }
9066
9066
  }, P = a.attrs.id ?? n.prop ?? a.attrs.name, I = or(), p = L([]);
9067
9067
  let j = [];
9068
9068
  const Q = () => ({
9069
9069
  srcColumnPropertyList: j.map((oe) => ({ ...oe })),
9070
9070
  columnPropertyList: p.value
9071
- }), le = (ne) => {
9072
- p.value = [...ne], Y();
9071
+ }), le = (te) => {
9072
+ p.value = [...te], Y();
9073
9073
  }, U = async () => {
9074
- const ne = await I.load(P);
9075
- ne && (p.value = ne);
9074
+ const te = await I.load(P);
9075
+ te && (p.value = te);
9076
9076
  }, Y = () => {
9077
9077
  I.save(P, p.value);
9078
9078
  }, N = () => {
9079
9079
  I.remove(P);
9080
9080
  };
9081
9081
  U();
9082
- const W = (ne) => ne ? ne.type ? ne.type : ne.label ? ne.prop : "" : "", Z = () => typeof a.slots.default == "function" ? a.slots.default() : [], k = (ne, oe = {}) => {
9082
+ const W = (te) => te ? te.type ? te.type : te.label ? te.prop : "" : "", Z = () => typeof a.slots.default == "function" ? a.slots.default() : [], k = (te, oe = {}) => {
9083
9083
  for (let re in oe) {
9084
9084
  const ue = oe[re];
9085
- typeof ue != "function" && (ne[re] = ue);
9085
+ typeof ue != "function" && (te[re] = ue);
9086
9086
  }
9087
9087
  }, K = T(() => {
9088
- const ne = Z(), oe = /* @__PURE__ */ new Map();
9089
- if (j = [], ne.forEach((re) => {
9088
+ const te = Z(), oe = /* @__PURE__ */ new Map();
9089
+ if (j = [], te.forEach((re) => {
9090
9090
  const Le = re;
9091
9091
  if (!Le.props)
9092
9092
  return;
@@ -9102,7 +9102,7 @@ function xd(e, t, l) {
9102
9102
  for (let ue of p.value) {
9103
9103
  const Le = W(ue), Pe = oe.get(Le);
9104
9104
  if (!Pe)
9105
- return ne;
9105
+ return te;
9106
9106
  if (ue.visible === !1)
9107
9107
  continue;
9108
9108
  const ot = Pe;
@@ -9110,45 +9110,48 @@ function xd(e, t, l) {
9110
9110
  }
9111
9111
  return re;
9112
9112
  }
9113
- return ne;
9114
- }), X = sn(/* @__PURE__ */ new Map()), ae = ({ row: ne, column: oe, rowIndex: re, columnIndex: ue }) => {
9113
+ return te;
9114
+ }), X = sn(/* @__PURE__ */ new Map()), ae = ({ row: te, column: oe, rowIndex: re, columnIndex: ue }) => {
9115
9115
  const Le = `${re}_${oe.property}`, Pe = `${re}_${ue}`;
9116
9116
  let ot = X.value.get(Le);
9117
9117
  return ot || (ot = X.value.get(Pe)), typeof ot == "string" ? ot : "";
9118
- }, de = (ne) => typeof ne == "function" ? (oe) => {
9118
+ }, de = (te) => te ? (oe) => {
9119
9119
  const re = [];
9120
9120
  let ue = ae(oe);
9121
- return ue && re.push(ue), ue = ne(oe), ue && re.push(ue), re.length === 0 ? "" : re.join(" ");
9122
- } : ae, ge = (ne = !1) => {
9121
+ return ue && re.push(ue), ue = ue = typeof te == "function" ? te(oe) : te, ue && re.push(ue), re.length === 0 ? "" : re.join(" ");
9122
+ } : ae, ge = (te = !1) => {
9123
9123
  X.value.forEach((oe, re) => {
9124
- Ee(re, oe, ne);
9124
+ Ee(re, oe, te);
9125
9125
  });
9126
- }, Ee = (ne, oe, re = !1) => {
9127
- const ue = `${ne}_item`;
9128
- re ? (i.clearPersistantMessage(), Array.isArray(oe) ? i.emitToChildren({ name: ne }, "setCellClassNames", []) : i.emitToChildren({ name: ue }, "setCustomClassName", "")) : Array.isArray(oe) ? i.emitToChildren(
9129
- { name: ne, cachePolicy: "Persistant", uniqueId: ue },
9126
+ }, Ee = (te, oe, re = !1) => {
9127
+ const ue = `${te}_item`;
9128
+ re ? (i.clearPersistantMessage(), Array.isArray(oe) ? i.emitToChildren({ name: te }, "setCellClassNames", []) : i.emitToChildren({ name: ue }, "setCustomClassName", "")) : Array.isArray(oe) ? i.emitToChildren(
9129
+ { name: te, cachePolicy: "Persistant", uniqueId: ue },
9130
9130
  "setCellClassNames",
9131
9131
  oe
9132
9132
  ) : i.emitToChildren({ name: ue, cachePolicy: "Persistant", uniqueId: ue }, "setCustomClassName", oe);
9133
- }, ke = (ne, oe, re) => {
9134
- const ue = `${ne}_${oe}`;
9133
+ }, ke = (te, oe, re) => {
9134
+ const ue = `${te}_${oe}`;
9135
9135
  re ? (X.value.set(ue, re), Ee(ue, re)) : (X.value.delete(ue), Ee(ue, "", !0)), Je(X);
9136
- }, qe = (ne) => {
9137
- ge(!0), X.value.clear(), ne.forEach((oe) => {
9136
+ }, qe = (te) => {
9137
+ ge(!0), X.value.clear(), te.forEach((oe) => {
9138
9138
  const re = `${oe.rowIndex}_${oe.column}`;
9139
9139
  Array.isArray(oe.children) ? X.value.set(re, oe.children) : typeof oe.cellClassName == "string" && X.value.set(re, oe.cellClassName);
9140
9140
  }), ge(), Je(X);
9141
9141
  }, Ft = () => {
9142
9142
  ge(), X.value.clear(), Je(X);
9143
- }, ht = sn(/* @__PURE__ */ new Map()), Pt = ({ rowIndex: ne }) => {
9144
- const oe = `${ne}`;
9143
+ }, ht = sn(/* @__PURE__ */ new Map()), Pt = ({ rowIndex: te }) => {
9144
+ const oe = `${te}`;
9145
9145
  return ht.value.get(oe) ?? "";
9146
- }, Qn = (ne) => typeof ne == "function" ? (oe) => {
9147
- const re = [];
9148
- let ue = Pt(oe);
9149
- return ue && re.push(ue), ue = ne(oe), ue && re.push(ue), re.length === 0 ? "" : re.join(" ");
9150
- } : Pt, mr = (ne, oe) => {
9151
- const re = `${ne}`;
9146
+ }, Qn = (te) => {
9147
+ debugger;
9148
+ return te ? (oe) => {
9149
+ const re = [];
9150
+ let ue = Pt(oe);
9151
+ return ue && re.push(ue), ue = typeof te == "function" ? te(oe) : te, ue && re.push(ue), re.length === 0 ? "" : re.join(" ");
9152
+ } : Pt;
9153
+ }, mr = (te, oe) => {
9154
+ const re = `${te}`;
9152
9155
  oe ? ht.value.set(re, oe) : ht.value.delete(re), Je(ht);
9153
9156
  }, yr = () => {
9154
9157
  ht.value.clear(), Je(ht);
@@ -9158,14 +9161,14 @@ function xd(e, t, l) {
9158
9161
  clearSelection: () => Re?.value.clearSelection(),
9159
9162
  getSelectionRows: () => Re?.value.getSelectionRows(),
9160
9163
  // 设置check列的选中状态
9161
- toggleRowSelection: (ne, oe) => {
9162
- Re?.value.toggleRowSelection(ne, oe);
9164
+ toggleRowSelection: (te, oe) => {
9165
+ Re?.value.toggleRowSelection(te, oe);
9163
9166
  },
9164
9167
  // 通过属性映射设置check列的选中状态
9165
- toggleRowSelectionByProp: (ne, oe) => {
9168
+ toggleRowSelectionByProp: (te, oe) => {
9166
9169
  if (!E.value)
9167
9170
  return;
9168
- const re = ul(E.value, ne);
9171
+ const re = ul(E.value, te);
9169
9172
  re.length !== 0 && re.forEach((ue) => {
9170
9173
  Re?.value.toggleRowSelection(ue, oe);
9171
9174
  });
@@ -9175,50 +9178,50 @@ function xd(e, t, l) {
9175
9178
  Re?.value.toggleAllSelection();
9176
9179
  },
9177
9180
  //触发row展开
9178
- toggleRowExpansion: (ne, oe) => {
9179
- Re?.value.toggleRowExpansion(ne, oe);
9181
+ toggleRowExpansion: (te, oe) => {
9182
+ Re?.value.toggleRowExpansion(te, oe);
9180
9183
  },
9181
9184
  //通过属性触发row展开
9182
- toggleRowExpansionByProp: (ne, oe) => {
9185
+ toggleRowExpansionByProp: (te, oe) => {
9183
9186
  if (!E.value)
9184
9187
  return;
9185
- const re = ul(E.value, ne);
9188
+ const re = ul(E.value, te);
9186
9189
  re.length !== 0 && re.forEach((ue) => {
9187
9190
  Re?.value.toggleRowExpansion(ue, oe);
9188
9191
  });
9189
9192
  },
9190
9193
  // 设置选中行(单行选中)
9191
- setCurrentRow: (ne) => {
9192
- Re?.value.setCurrentRow(ne);
9194
+ setCurrentRow: (te) => {
9195
+ Re?.value.setCurrentRow(te);
9193
9196
  },
9194
9197
  // 通过属性映射设置选中行(单行选中)
9195
- setCurrentRowByProp: (ne) => {
9198
+ setCurrentRowByProp: (te) => {
9196
9199
  if (!E.value)
9197
9200
  return;
9198
- const oe = ul(E.value, ne);
9201
+ const oe = ul(E.value, te);
9199
9202
  oe.length !== 0 && Re?.value.setCurrentRow(oe[0]);
9200
9203
  },
9201
9204
  getCurrentRow: () => ee.value,
9202
9205
  clearSort: () => {
9203
9206
  Re?.value.clearSort();
9204
9207
  },
9205
- clearFilter: (ne) => {
9206
- Re?.value.clearFilter(ne);
9208
+ clearFilter: (te) => {
9209
+ Re?.value.clearFilter(te);
9207
9210
  },
9208
9211
  doLayout: () => {
9209
9212
  Re?.value.doLayout();
9210
9213
  },
9211
- sort: (ne, oe) => {
9212
- Re?.value.sort(ne, oe);
9214
+ sort: (te, oe) => {
9215
+ Re?.value.sort(te, oe);
9213
9216
  },
9214
- scrollTo: (ne, oe) => {
9215
- Re?.value.scrollTo(ne, oe);
9217
+ scrollTo: (te, oe) => {
9218
+ Re?.value.scrollTo(te, oe);
9216
9219
  },
9217
- setScrollTop: (ne) => {
9218
- Re?.value.setScrollTop(ne);
9220
+ setScrollTop: (te) => {
9221
+ Re?.value.setScrollTop(te);
9219
9222
  },
9220
- setScrollLeft: (ne) => {
9221
- Re?.value.setScrollLeft(ne);
9223
+ setScrollLeft: (te) => {
9224
+ Re?.value.setScrollLeft(te);
9222
9225
  },
9223
9226
  // 加载数据
9224
9227
  loadData: V,
@@ -9260,7 +9263,7 @@ function xd(e, t, l) {
9260
9263
  const oe = {
9261
9264
  ...yt(a.attrs),
9262
9265
  onCurrentChange: M,
9263
- onRowClick: te,
9266
+ onRowClick: ne,
9264
9267
  onExpandChange: S,
9265
9268
  data: E.value,
9266
9269
  ref: Re,
@@ -11162,7 +11165,7 @@ function Zh(e, t, l, n = !1) {
11162
11165
  onClick: d
11163
11166
  };
11164
11167
  return A("view", S, [$]);
11165
- }, te = () => {
11168
+ }, ne = () => {
11166
11169
  const $ = [];
11167
11170
  for (let P = 0; P < _.value.length; P++) {
11168
11171
  const I = _.value[P];
@@ -11186,7 +11189,7 @@ function Zh(e, t, l, n = !1) {
11186
11189
  if ($.push(S), a.showQuickNavigation) {
11187
11190
  const I = M();
11188
11191
  $.push(I);
11189
- const p = te();
11192
+ const p = ne();
11190
11193
  $.push(p);
11191
11194
  }
11192
11195
  const P = {
@@ -11821,7 +11824,7 @@ function Cg(e, t, l, n) {
11821
11824
  setup(a, { slots: o, emit: r }) {
11822
11825
  const i = e, s = Tg(), u = L([]), f = T(() => u.value.filter((S) => Sg(a, S) !== !1)), h = L(-1), v = () => {
11823
11826
  const S = a.modelValue, P = f.value.findIndex((I) => za(a, I) === S);
11824
- h.value !== P && (h.value = P, a.scroll && te(P));
11827
+ h.value !== P && (h.value = P, a.scroll && ne(P));
11825
11828
  };
11826
11829
  fe([() => a.modelValue, f], () => {
11827
11830
  v();
@@ -11862,7 +11865,7 @@ function Cg(e, t, l, n) {
11862
11865
  if (a.clickNavigatePolicy === "disabled" || (a.clickNavigatePolicy === "only-back" || a.clickNavigatePolicy === "only-back-reset") && P > h.value || h.value === P)
11863
11866
  return;
11864
11867
  const I = h.value, p = P;
11865
- h.value = P, a.scroll && te(P);
11868
+ h.value = P, a.scroll && ne(P);
11866
11869
  const j = za(a, S);
11867
11870
  r("update:modelValue", j);
11868
11871
  const Q = {
@@ -11999,7 +12002,7 @@ function Cg(e, t, l, n) {
11999
12002
  G.value[P] = S;
12000
12003
  }, M = (S) => (P) => {
12001
12004
  ee(P, S);
12002
- }, te = (S, P) => {
12005
+ }, ne = (S, P) => {
12003
12006
  const I = B.value, p = G.value;
12004
12007
  if (!I || !p || !p[S])
12005
12008
  return;
@@ -14423,15 +14426,15 @@ const ym = () => {
14423
14426
  },
14424
14427
  get: () => n.value === !1 ? !1 : ee.value
14425
14428
  });
14426
- let te = null;
14429
+ let ne = null;
14427
14430
  const $ = () => {
14428
- typeof te == "function" && (te(), te = null);
14431
+ typeof ne == "function" && (ne(), ne = null);
14429
14432
  }, S = () => {
14430
- V.value && V.value.classList.add("slide-in"), M.value = !0, te = () => {
14433
+ V.value && V.value.classList.add("slide-in"), M.value = !0, ne = () => {
14431
14434
  V.value && V.value.classList.remove("slide-in");
14432
14435
  };
14433
14436
  }, P = () => {
14434
- V.value && V.value.classList.add("slide-out"), te = () => {
14437
+ V.value && V.value.classList.add("slide-out"), ne = () => {
14435
14438
  V.value && V.value.classList.remove("slide-out"), M.value = !1;
14436
14439
  };
14437
14440
  }, I = () => {
@@ -14702,7 +14705,7 @@ function Vm(e, t, l = !1) {
14702
14705
  right: null,
14703
14706
  bottom: null,
14704
14707
  left: null
14705
- }), s = L(0), u = L(0), f = L(0), h = L(0), v = L(n.placement), y = L(!1), m = L(!1), c = L(null), d = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, O = (M, te, $, S, P, I, p, j = !0) => {
14708
+ }), s = L(0), u = L(0), f = L(0), h = L(0), v = L(n.placement), y = L(!1), m = L(!1), c = L(null), d = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, O = (M, ne, $, S, P, I, p, j = !0) => {
14706
14709
  const Q = document.documentElement.clientWidth || document.body.clientWidth, le = document.documentElement.clientHeight || document.body.clientHeight, U = M.split("-");
14707
14710
  let Y = [];
14708
14711
  j ? U[0] === "top" ? Y = ["top", "bottom", "right", "left"] : U[0] === "bottom" ? Y = ["bottom", "top", "right", "left"] : U[0] === "left" ? Y = ["left", "top", "bottom", "right"] : U[0] === "right" && (Y = ["right", "top", "bottom", "left"]) : Y = [M[0]];
@@ -14719,7 +14722,7 @@ function Vm(e, t, l = !1) {
14719
14722
  if (K >= 0) {
14720
14723
  N.top = K;
14721
14724
  let X = 0;
14722
- U[1] === "start" ? X = te : U[1] === "end" ? X = te + S - I : X = te + S / 2 - I / 2;
14725
+ U[1] === "start" ? X = ne : U[1] === "end" ? X = ne + S - I : X = ne + S / 2 - I / 2;
14723
14726
  const ae = Q - X - I;
14724
14727
  ae < 0 ? (X += ae, b.value = -ae) : b.value = 0, N.left = X < 0 ? 0 : X;
14725
14728
  break;
@@ -14729,13 +14732,13 @@ function Vm(e, t, l = !1) {
14729
14732
  if (K + p <= le) {
14730
14733
  N.top = K;
14731
14734
  let X = 0;
14732
- U[1] === "start" ? X = te : U[1] === "end" ? X = te + S - I : X = te + S / 2 - I / 2;
14735
+ U[1] === "start" ? X = ne : U[1] === "end" ? X = ne + S - I : X = ne + S / 2 - I / 2;
14733
14736
  const ae = Q - X - I;
14734
14737
  ae < 0 ? (X += ae, b.value = -ae) : b.value = 0, N.left = X < 0 ? 0 : X;
14735
14738
  break;
14736
14739
  }
14737
14740
  } else if (k === "left") {
14738
- const K = te - I - n.arrowSize / 2 - n.offset;
14741
+ const K = ne - I - n.arrowSize / 2 - n.offset;
14739
14742
  if (K >= 0) {
14740
14743
  N.left = K;
14741
14744
  let X = 0;
@@ -14743,7 +14746,7 @@ function Vm(e, t, l = !1) {
14743
14746
  break;
14744
14747
  }
14745
14748
  } else if (k === "right") {
14746
- const K = te + S + n.arrowSize / 2 + n.offset;
14749
+ const K = ne + S + n.arrowSize / 2 + n.offset;
14747
14750
  if (K + I <= Q) {
14748
14751
  N.left = K;
14749
14752
  let X = 0;
@@ -14757,7 +14760,7 @@ function Vm(e, t, l = !1) {
14757
14760
  bestInsetRect: N
14758
14761
  };
14759
14762
  }, w = () => {
14760
- const M = n.visible, te = n.autoFit;
14763
+ const M = n.visible, ne = n.autoFit;
14761
14764
  if (!Ht || M === !1)
14762
14765
  return;
14763
14766
  if (n.reference) {
@@ -14772,7 +14775,7 @@ function Vm(e, t, l = !1) {
14772
14775
  h.value,
14773
14776
  $,
14774
14777
  S,
14775
- te
14778
+ ne
14776
14779
  );
14777
14780
  v.value = P, i.value = I;
14778
14781
  }, b = L(0), q = it(() => {
@@ -14784,13 +14787,13 @@ function Vm(e, t, l = !1) {
14784
14787
  }, 0)) : m.value = !1;
14785
14788
  });
14786
14789
  const D = T(() => z.value && E.value), E = L(!0), F = it((M) => {
14787
- const te = M[0];
14788
- te && (E.value = te.isIntersecting);
14790
+ const ne = M[0];
14791
+ ne && (E.value = ne.isIntersecting);
14789
14792
  }, 10), x = new IntersectionObserver(F);
14790
14793
  fe(
14791
14794
  [() => n.reference, () => n.referenceInset],
14792
- ([M, te], [$, S]) => {
14793
- !M && !te || (setTimeout(() => {
14795
+ ([M, ne], [$, S]) => {
14796
+ !M && !ne || (setTimeout(() => {
14794
14797
  w();
14795
14798
  }, 0), n.autoFit && ($ && (dn.unwatch($, q), x.unobserve($)), M && (dn.watch(M, q), x.observe(M))));
14796
14799
  },
@@ -14837,16 +14840,16 @@ function Vm(e, t, l = !1) {
14837
14840
  }, ee = (M) => {
14838
14841
  if (!c.value || z.value === !1)
14839
14842
  return;
14840
- const { relatedTarget: te } = M;
14841
- c.value.contains(te) || (z.value = !1, a("update:visible", !1));
14843
+ const { relatedTarget: ne } = M;
14844
+ c.value.contains(ne) || (z.value = !1, a("update:visible", !1));
14842
14845
  };
14843
14846
  return r({
14844
14847
  doLayout: w
14845
14848
  }), () => {
14846
14849
  if (!y.value)
14847
14850
  return null;
14848
- const M = [], te = J();
14849
- te && M.push(te);
14851
+ const M = [], ne = J();
14852
+ ne && M.push(ne);
14850
14853
  const $ = [], S = V();
14851
14854
  if (S && $.push(S), o.default) {
14852
14855
  const j = o.default();