abl-ui 0.6.16 → 0.6.18

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/lib/abl-ui.es.js CHANGED
@@ -296,13 +296,13 @@ const Fn = { class: "abl-tabs" }, Hn = ["id"], Wn = ["id"], Un = ["onClick"], jn
296
296
  transform: `translateX(${C}px)`,
297
297
  width: L.target.clientWidth + "px"
298
298
  }, f.value = B, t("update:modelValue", B), t("tabClick", B);
299
- }, $ = () => {
299
+ }, k = () => {
300
300
  const L = document.querySelector("#tab-hidden" + w.value);
301
301
  if (!L)
302
302
  return;
303
303
  const B = document.querySelector("#tabs-header-wrap" + w.value).clientWidth;
304
304
  (L == null ? void 0 : L.scrollWidth) > (L == null ? void 0 : L.clientWidth) + (L == null ? void 0 : L.scrollLeft) && (L.scrollLeft += B);
305
- }, k = () => {
305
+ }, $ = () => {
306
306
  const L = document.querySelector("#tab-hidden" + w.value), B = document.querySelector("#tabs-header-wrap" + w.value).clientWidth;
307
307
  L.scrollLeft > 0 && (L.scrollLeft -= B);
308
308
  }, z = async (L) => {
@@ -344,7 +344,7 @@ const Fn = { class: "abl-tabs" }, Hn = ["id"], Wn = ["id"], Un = ["onClick"], jn
344
344
  }, [
345
345
  J(u("i", {
346
346
  class: V([p.value ? "" : "left-disable", "iconfont-abl icon-abl-youjiantou1 arrow"]),
347
- onClick: k
347
+ onClick: $
348
348
  }, null, 2), [
349
349
  [te, v.value]
350
350
  ]),
@@ -389,7 +389,7 @@ const Fn = { class: "abl-tabs" }, Hn = ["id"], Wn = ["id"], Un = ["onClick"], jn
389
389
  ], 8, Wn),
390
390
  J(u("i", {
391
391
  class: V([g.value ? "" : "right-disable", "iconfont-abl icon-abl-youjiantou arrow"]),
392
- onClick: $
392
+ onClick: k
393
393
  }, null, 2), [
394
394
  [te, v.value]
395
395
  ])
@@ -708,12 +708,12 @@ const We = (e) => (be("data-v-eb26cd43"), e = e(), _e(), e), nl = ["onMouseenter
708
708
  i.value[x] = !1, (H = s.value[x]) != null && H.onClose && ((W = s.value[x]) == null || W.onClose()), f("close");
709
709
  }, 0)) : c.value = null;
710
710
  }
711
- function $() {
711
+ function k() {
712
712
  a.value && kt(a.value);
713
713
  const y = s.value.length - 1, x = s.value[y];
714
714
  x != null && x.top ? v.value = typeof x.top == "number" ? `${x.top}px` : x.top : v.value = typeof n.top == "number" ? `${n.top}px` : n.top, i.value[y] = !0, (x == null ? void 0 : x.duration) !== null ? (c.value = (x == null ? void 0 : x.duration) || n.duration, w(y)) : c.value = null;
715
715
  }
716
- const k = (y, x) => {
716
+ const $ = (y, x) => {
717
717
  let O;
718
718
  return typeof y == "string" ? O = {
719
719
  content: y,
@@ -726,28 +726,28 @@ const We = (e) => (be("data-v-eb26cd43"), e = e(), _e(), e), nl = ["onMouseenter
726
726
  }, O;
727
727
  };
728
728
  function z(y) {
729
- let x = k(y, "open");
730
- return s.value.push(x), $(), x.id;
729
+ let x = $(y, "open");
730
+ return s.value.push(x), k(), x.id;
731
731
  }
732
732
  function N(y) {
733
- let x = k(y, "info");
734
- return s.value.push(x), $(), x.id;
733
+ let x = $(y, "info");
734
+ return s.value.push(x), k(), x.id;
735
735
  }
736
736
  function T(y) {
737
- let x = k(y, "success");
738
- return s.value.push(x), $(), x.id;
737
+ let x = $(y, "success");
738
+ return s.value.push(x), k(), x.id;
739
739
  }
740
740
  function L(y) {
741
- let x = k(y, "error");
742
- return s.value.push(x), $(), x.id;
741
+ let x = $(y, "error");
742
+ return s.value.push(x), k(), x.id;
743
743
  }
744
744
  function B(y) {
745
- let x = k(y, "warning");
746
- return s.value.push(x), $(), x.id;
745
+ let x = $(y, "warning");
746
+ return s.value.push(x), k(), x.id;
747
747
  }
748
748
  function C(y) {
749
- let x = k(y, "loading");
750
- return s.value.push(x), $(), x.id;
749
+ let x = $(y, "loading");
750
+ return s.value.push(x), k(), x.id;
751
751
  }
752
752
  return l({
753
753
  open: z,
@@ -1460,13 +1460,13 @@ const Zl = async (e, l, t) => {
1460
1460
  for (let w = 0; w < s.length; w++) {
1461
1461
  const {
1462
1462
  name: S,
1463
- fn: $
1463
+ fn: k
1464
1464
  } = s[w], {
1465
- x: k,
1465
+ x: $,
1466
1466
  y: z,
1467
1467
  data: N,
1468
1468
  reset: T
1469
- } = await $({
1469
+ } = await k({
1470
1470
  x: v,
1471
1471
  y: p,
1472
1472
  initialPlacement: n,
@@ -1480,7 +1480,7 @@ const Zl = async (e, l, t) => {
1480
1480
  floating: l
1481
1481
  }
1482
1482
  });
1483
- v = k ?? v, p = z ?? p, h = {
1483
+ v = $ ?? v, p = z ?? p, h = {
1484
1484
  ...h,
1485
1485
  [S]: {
1486
1486
  ...h[S],
@@ -1519,12 +1519,12 @@ async function qt(e, l) {
1519
1519
  elementContext: p = "floating",
1520
1520
  altBoundary: g = !1,
1521
1521
  padding: h = 0
1522
- } = Ue(l, e), m = jt(h), S = s[g ? p === "floating" ? "reference" : "floating" : p], $ = Je(await i.getClippingRect({
1522
+ } = Ue(l, e), m = jt(h), S = s[g ? p === "floating" ? "reference" : "floating" : p], k = Je(await i.getClippingRect({
1523
1523
  element: (t = await (i.isElement == null ? void 0 : i.isElement(S))) == null || t ? S : S.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1524
1524
  boundary: f,
1525
1525
  rootBoundary: v,
1526
1526
  strategy: c
1527
- })), k = p === "floating" ? {
1527
+ })), $ = p === "floating" ? {
1528
1528
  ...o.floating,
1529
1529
  x: n,
1530
1530
  y: a
@@ -1536,15 +1536,15 @@ async function qt(e, l) {
1536
1536
  y: 1
1537
1537
  }, T = Je(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1538
1538
  elements: s,
1539
- rect: k,
1539
+ rect: $,
1540
1540
  offsetParent: z,
1541
1541
  strategy: c
1542
- }) : k);
1542
+ }) : $);
1543
1543
  return {
1544
- top: ($.top - T.top + m.top) / N.y,
1545
- bottom: (T.bottom - $.bottom + m.bottom) / N.y,
1546
- left: ($.left - T.left + m.left) / N.x,
1547
- right: (T.right - $.right + m.right) / N.x
1544
+ top: (k.top - T.top + m.top) / N.y,
1545
+ bottom: (T.bottom - k.bottom + m.bottom) / N.y,
1546
+ left: (k.left - T.left + m.left) / N.x,
1547
+ right: (T.right - k.right + m.right) / N.x
1548
1548
  };
1549
1549
  }
1550
1550
  const Ql = (e) => ({
@@ -1568,10 +1568,10 @@ const Ql = (e) => ({
1568
1568
  const p = jt(v), g = {
1569
1569
  x: t,
1570
1570
  y: n
1571
- }, h = ht(a), m = mt(h), w = await o.getDimensions(f), S = h === "y", $ = S ? "top" : "left", k = S ? "bottom" : "right", z = S ? "clientHeight" : "clientWidth", N = i.reference[m] + i.reference[h] - g[h] - i.floating[m], T = g[h] - i.reference[h], L = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(f));
1571
+ }, h = ht(a), m = mt(h), w = await o.getDimensions(f), S = h === "y", k = S ? "top" : "left", $ = S ? "bottom" : "right", z = S ? "clientHeight" : "clientWidth", N = i.reference[m] + i.reference[h] - g[h] - i.floating[m], T = g[h] - i.reference[h], L = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(f));
1572
1572
  let B = L ? L[z] : 0;
1573
1573
  (!B || !await (o.isElement == null ? void 0 : o.isElement(L))) && (B = s.floating[z] || i.floating[m]);
1574
- const C = N / 2 - T / 2, y = B / 2 - w[m] / 2 - 1, x = Ne(p[$], y), O = Ne(p[k], y), F = x, H = B - w[m] - O, W = B / 2 - w[m] / 2 + C, A = rt(F, W, H), q = !c.arrow && je(a) != null && W !== A && i.reference[m] / 2 - (W < F ? x : O) - w[m] / 2 < 0, Z = q ? W < F ? W - F : W - H : 0;
1574
+ const C = N / 2 - T / 2, y = B / 2 - w[m] / 2 - 1, x = Ne(p[k], y), O = Ne(p[$], y), F = x, H = B - w[m] - O, W = B / 2 - w[m] / 2 + C, A = rt(F, W, H), q = !c.arrow && je(a) != null && W !== A && i.reference[m] / 2 - (W < F ? x : O) - w[m] / 2 < 0, Z = q ? W < F ? W - F : W - H : 0;
1575
1575
  return {
1576
1576
  [h]: g[h] + Z,
1577
1577
  data: {
@@ -1608,11 +1608,11 @@ const Ql = (e) => ({
1608
1608
  } = Ue(e, l);
1609
1609
  if ((t = i.arrow) != null && t.alignmentOffset)
1610
1610
  return {};
1611
- const $ = Ae(a), k = Ae(s) === s, z = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), N = g || (k || !w ? [Ge(s)] : Xl(s));
1611
+ const k = Ae(a), $ = Ae(s) === s, z = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), N = g || ($ || !w ? [Ge(s)] : Xl(s));
1612
1612
  !g && m !== "none" && N.push(...Gl(s, w, m, z));
1613
1613
  const T = [s, ...N], L = await qt(l, S), B = [];
1614
1614
  let C = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1615
- if (v && B.push(L[$]), p) {
1615
+ if (v && B.push(L[k]), p) {
1616
1616
  const F = Yl(a, o, z);
1617
1617
  B.push(L[F[0]], L[F[1]]);
1618
1618
  }
@@ -1721,12 +1721,12 @@ const Ct = function(e) {
1721
1721
  limiter: s = {
1722
1722
  fn: (S) => {
1723
1723
  let {
1724
- x: $,
1725
- y: k
1724
+ x: k,
1725
+ y: $
1726
1726
  } = S;
1727
1727
  return {
1728
- x: $,
1729
- y: k
1728
+ x: k,
1729
+ y: $
1730
1730
  };
1731
1731
  }
1732
1732
  },
@@ -1737,12 +1737,12 @@ const Ct = function(e) {
1737
1737
  }, v = await qt(l, c), p = tt(Ae(a)), g = Ut(p);
1738
1738
  let h = f[g], m = f[p];
1739
1739
  if (i) {
1740
- const S = g === "y" ? "top" : "left", $ = g === "y" ? "bottom" : "right", k = h + v[S], z = h - v[$];
1741
- h = rt(k, h, z);
1740
+ const S = g === "y" ? "top" : "left", k = g === "y" ? "bottom" : "right", $ = h + v[S], z = h - v[k];
1741
+ h = rt($, h, z);
1742
1742
  }
1743
1743
  if (o) {
1744
- const S = p === "y" ? "top" : "left", $ = p === "y" ? "bottom" : "right", k = m + v[S], z = m - v[$];
1745
- m = rt(k, m, z);
1744
+ const S = p === "y" ? "top" : "left", k = p === "y" ? "bottom" : "right", $ = m + v[S], z = m - v[k];
1745
+ m = rt($, m, z);
1746
1746
  }
1747
1747
  const w = s.fn({
1748
1748
  ...l,
@@ -1897,7 +1897,7 @@ function Re(e, l, t, n) {
1897
1897
  const g = de(i), h = n && ye(n) ? de(n) : n;
1898
1898
  let m = g, w = m.frameElement;
1899
1899
  for (; w && n && h !== m; ) {
1900
- const S = Me(w), $ = w.getBoundingClientRect(), k = pe(w), z = $.left + (w.clientLeft + parseFloat(k.paddingLeft)) * S.x, N = $.top + (w.clientTop + parseFloat(k.paddingTop)) * S.y;
1900
+ const S = Me(w), k = w.getBoundingClientRect(), $ = pe(w), z = k.left + (w.clientLeft + parseFloat($.paddingLeft)) * S.x, N = k.top + (w.clientTop + parseFloat($.paddingTop)) * S.y;
1901
1901
  c *= S.x, f *= S.y, v *= S.x, p *= S.y, c += z, f += N, m = de(w), w = m.frameElement;
1902
1902
  }
1903
1903
  }
@@ -2124,7 +2124,7 @@ function _a(e, l) {
2124
2124
  } = e.getBoundingClientRect();
2125
2125
  if (s || l(), !p || !g)
2126
2126
  return;
2127
- const h = Xe(v), m = Xe(a.clientWidth - (f + p)), w = Xe(a.clientHeight - (v + g)), S = Xe(f), k = {
2127
+ const h = Xe(v), m = Xe(a.clientWidth - (f + p)), w = Xe(a.clientHeight - (v + g)), S = Xe(f), $ = {
2128
2128
  rootMargin: -h + "px " + -m + "px " + -w + "px " + -S + "px",
2129
2129
  threshold: Ve(0, Ne(1, c)) || 1
2130
2130
  };
@@ -2142,12 +2142,12 @@ function _a(e, l) {
2142
2142
  }
2143
2143
  try {
2144
2144
  t = new IntersectionObserver(N, {
2145
- ...k,
2145
+ ...$,
2146
2146
  // Handle <iframe>s
2147
2147
  root: a.ownerDocument
2148
2148
  });
2149
2149
  } catch {
2150
- t = new IntersectionObserver(N, k);
2150
+ t = new IntersectionObserver(N, $);
2151
2151
  }
2152
2152
  t.observe(e);
2153
2153
  }
@@ -2162,16 +2162,16 @@ function wa(e, l, t, n) {
2162
2162
  layoutShift: s = typeof IntersectionObserver == "function",
2163
2163
  animationFrame: c = !1
2164
2164
  } = n, f = bt(e), v = a || i ? [...f ? Fe(f) : [], ...Fe(l)] : [];
2165
- v.forEach(($) => {
2166
- a && $.addEventListener("scroll", t, {
2165
+ v.forEach((k) => {
2166
+ a && k.addEventListener("scroll", t, {
2167
2167
  passive: !0
2168
- }), i && $.addEventListener("resize", t);
2168
+ }), i && k.addEventListener("resize", t);
2169
2169
  });
2170
2170
  const p = f && s ? _a(f, t) : null;
2171
2171
  let g = -1, h = null;
2172
- o && (h = new ResizeObserver(($) => {
2173
- let [k] = $;
2174
- k && k.target === f && h && (h.unobserve(l), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
2172
+ o && (h = new ResizeObserver((k) => {
2173
+ let [$] = k;
2174
+ $ && $.target === f && h && (h.unobserve(l), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
2175
2175
  var z;
2176
2176
  (z = h) == null || z.observe(l);
2177
2177
  })), t();
@@ -2179,14 +2179,14 @@ function wa(e, l, t, n) {
2179
2179
  let m, w = c ? Re(e) : null;
2180
2180
  c && S();
2181
2181
  function S() {
2182
- const $ = Re(e);
2183
- w && ($.x !== w.x || $.y !== w.y || $.width !== w.width || $.height !== w.height) && t(), w = $, m = requestAnimationFrame(S);
2182
+ const k = Re(e);
2183
+ w && (k.x !== w.x || k.y !== w.y || k.width !== w.width || k.height !== w.height) && t(), w = k, m = requestAnimationFrame(S);
2184
2184
  }
2185
2185
  return t(), () => {
2186
- var $;
2187
- v.forEach((k) => {
2188
- a && k.removeEventListener("scroll", t), i && k.removeEventListener("resize", t);
2189
- }), p == null || p(), ($ = h) == null || $.disconnect(), h = null, c && cancelAnimationFrame(m);
2186
+ var k;
2187
+ v.forEach(($) => {
2188
+ a && $.removeEventListener("scroll", t), i && $.removeEventListener("resize", t);
2189
+ }), p == null || p(), (k = h) == null || k.disconnect(), h = null, c && cancelAnimationFrame(m);
2190
2190
  };
2191
2191
  }
2192
2192
  const It = na, xa = ea, $a = Ql, ka = (e, l, t) => {
@@ -2270,18 +2270,18 @@ const Sa = ["data-side"], tn = {
2270
2270
  middlewareData: m
2271
2271
  };
2272
2272
  let S = null;
2273
- const $ = _(!1), k = _(), z = (A) => {
2274
- k.value = A && A.nextElementSibling || null;
2273
+ const k = _(!1), $ = _(), z = (A) => {
2274
+ $.value = A && A.nextElementSibling || null;
2275
2275
  }, N = () => {
2276
- $.value = !0;
2277
- }, T = () => $.value = !1, L = () => {
2278
- k.value && re(() => {
2279
- k.value.addEventListener("click", C);
2280
- const A = k.value.getBoundingClientRect();
2281
- n.widthAuto && (f.value = A != null && A.width ? (A == null ? void 0 : A.width) + "px" : "auto"), c.value && (k.value.addEventListener("mouseover", N, { capture: !0 }), k.value.addEventListener("mouseout", T, { capture: !0 }));
2276
+ k.value = !0;
2277
+ }, T = () => k.value = !1, L = () => {
2278
+ $.value && re(() => {
2279
+ $.value.addEventListener("click", C);
2280
+ const A = $.value.getBoundingClientRect();
2281
+ n.widthAuto && (f.value = A != null && A.width ? (A == null ? void 0 : A.width) + "px" : "auto"), c.value && ($.value.addEventListener("mouseover", N, { capture: !0 }), $.value.addEventListener("mouseout", T, { capture: !0 }));
2282
2282
  });
2283
2283
  }, B = () => {
2284
- k.value && (k.value.removeEventListener("click", C), c.value && (k.value.removeEventListener("mouseover", N, { capture: !0 }), k.value.removeEventListener("mouseout", T, { capture: !0 })));
2284
+ $.value && ($.value.removeEventListener("click", C), c.value && ($.value.removeEventListener("mouseover", N, { capture: !0 }), $.value.removeEventListener("mouseout", T, { capture: !0 })));
2285
2285
  };
2286
2286
  ge(() => {
2287
2287
  t.value = !0, L(), pt(() => {
@@ -2289,7 +2289,7 @@ const Sa = ["data-side"], tn = {
2289
2289
  });
2290
2290
  }), Q(() => v.value, (A) => {
2291
2291
  A && z(v.value);
2292
- }, { immediate: !0 }), Q(k, (A, q) => {
2292
+ }, { immediate: !0 }), Q($, (A, q) => {
2293
2293
  q && B(), A && L();
2294
2294
  }, { immediate: !0 }), ft(() => {
2295
2295
  B(), L();
@@ -2309,9 +2309,9 @@ const Sa = ["data-side"], tn = {
2309
2309
  top: (A == null ? void 0 : A.y) + "px"
2310
2310
  };
2311
2311
  }), H = async () => {
2312
- if (!(!k.value || !p.value))
2312
+ if (!(!$.value || !p.value))
2313
2313
  try {
2314
- const A = await ka(k.value, p.value, {
2314
+ const A = await ka($.value, p.value, {
2315
2315
  middleware: le(i),
2316
2316
  placement: le(o),
2317
2317
  strategy: le(s)
@@ -2324,9 +2324,9 @@ const Sa = ["data-side"], tn = {
2324
2324
  }
2325
2325
  };
2326
2326
  async function W() {
2327
- if (!(!k.value || !p.value))
2327
+ if (!(!$.value || !p.value))
2328
2328
  try {
2329
- await re(), S = wa(k.value, p.value, H);
2329
+ await re(), S = wa($.value, p.value, H);
2330
2330
  } catch (A) {
2331
2331
  console.error("Error updating position:", A);
2332
2332
  }
@@ -2345,7 +2345,7 @@ const Sa = ["data-side"], tn = {
2345
2345
  key: 0,
2346
2346
  to: "body"
2347
2347
  }, [
2348
- $.value ? (r(), d("div", {
2348
+ k.value ? (r(), d("div", {
2349
2349
  key: 0,
2350
2350
  ref_key: "contentRef",
2351
2351
  ref: p,
@@ -3082,7 +3082,7 @@ const ao = /* @__PURE__ */ u("div", {
3082
3082
  deep: !0,
3083
3083
  immediate: !0
3084
3084
  });
3085
- const $ = (H, W) => {
3085
+ const k = (H, W) => {
3086
3086
  let A, q;
3087
3087
  try {
3088
3088
  A = H.toString().split(".")[1].length;
@@ -3096,16 +3096,16 @@ const ao = /* @__PURE__ */ u("div", {
3096
3096
  }
3097
3097
  const Z = Math.max(A, q), se = Math.pow(10, Z);
3098
3098
  return H = Math.round(H * se), W = Math.round(W * se), (H + W) / se;
3099
- }, k = (H) => {
3099
+ }, $ = (H) => {
3100
3100
  i.value[H] = !0;
3101
3101
  }, z = (H) => {
3102
3102
  o.value = (o.value + 1) % a.value;
3103
3103
  }, N = (H) => {
3104
3104
  o.value = (o.value - 1 + a.value) % a.value;
3105
3105
  }, T = () => {
3106
- s.value + n.zoomRate > n.maxScale ? s.value = n.maxScale : s.value = $(s.value, n.zoomRate);
3106
+ s.value + n.zoomRate > n.maxScale ? s.value = n.maxScale : s.value = k(s.value, n.zoomRate);
3107
3107
  }, L = () => {
3108
- s.value - n.zoomRate < n.minScale ? s.value = n.minScale : s.value = $(s.value, -n.zoomRate);
3108
+ s.value - n.zoomRate < n.minScale ? s.value = n.minScale : s.value = k(s.value, -n.zoomRate);
3109
3109
  }, B = () => {
3110
3110
  g.value -= 90;
3111
3111
  }, C = () => {
@@ -3127,7 +3127,7 @@ const ao = /* @__PURE__ */ u("div", {
3127
3127
  if (!n.drag)
3128
3128
  return;
3129
3129
  const W = H.deltaY * n.zoomRate * 0.1;
3130
- s.value === n.minScale && W > 0 || s.value === n.maxScale && W < 0 || (s.value - W < n.minScale ? s.value = n.minScale : s.value - W > n.maxScale ? s.value = n.maxScale : s.value = $(s.value, -W));
3130
+ s.value === n.minScale && W > 0 || s.value === n.maxScale && W < 0 || (s.value - W < n.minScale ? s.value = n.minScale : s.value - W > n.maxScale ? s.value = n.maxScale : s.value = k(s.value, -W));
3131
3131
  }, F = () => {
3132
3132
  S(), h("update:modelValue", !1);
3133
3133
  };
@@ -3165,7 +3165,7 @@ const ao = /* @__PURE__ */ u("div", {
3165
3165
  title: "",
3166
3166
  class: "abl-image-preview__img",
3167
3167
  style: M(`transform: scale3d(${s.value}, ${s.value}, 1) rotate(${g.value}deg);`),
3168
- onLoad: (Z) => k(q),
3168
+ onLoad: (Z) => $(q),
3169
3169
  onMousedown: W[0] || (W[0] = G((Z) => x(Z), ["prevent"])),
3170
3170
  onClick: W[1] || (W[1] = G(() => {
3171
3171
  }, ["stop"]))
@@ -3195,7 +3195,7 @@ const ao = /* @__PURE__ */ u("div", {
3195
3195
  alt: "",
3196
3196
  title: "",
3197
3197
  style: M(`transform: scale3d(${s.value}, ${s.value}, 1) rotate(${g.value}deg);`),
3198
- onLoad: (Z) => k(q),
3198
+ onLoad: (Z) => $(q),
3199
3199
  onMousedown: W[2] || (W[2] = G((Z) => x(Z), ["prevent"])),
3200
3200
  onClick: W[3] || (W[3] = G(() => {
3201
3201
  }, ["stop"])),
@@ -3587,20 +3587,20 @@ const Ho = (e) => (be("data-v-b0efe321"), e = e(), _e(), e), Wo = ["onClick"], U
3587
3587
  g.value = !0, w(B);
3588
3588
  }
3589
3589
  }, w = async (L) => {
3590
- await $(), f.value = !0, p.value = L, Array.from(c.value.children).map((B, C) => {
3590
+ await k(), f.value = !0, p.value = L, Array.from(c.value.children).map((B, C) => {
3591
3591
  C === L ? c.value.children[C].style.display = "block" : c.value.children[C].style.display = "none";
3592
3592
  }), t("open", p.value);
3593
3593
  }, S = () => {
3594
3594
  f.value = !1, p.value = 99999, setTimeout(() => {
3595
3595
  g.value = !1;
3596
3596
  }, 300);
3597
- }, $ = () => {
3597
+ }, k = () => {
3598
3598
  var C;
3599
3599
  if (!a)
3600
3600
  return;
3601
3601
  const { top: L, bottom: B } = (C = s == null ? void 0 : s.value) == null ? void 0 : C.getBoundingClientRect();
3602
3602
  B > 0 && (v.value = B - 1);
3603
- }, k = () => {
3603
+ }, $ = () => {
3604
3604
  i.closeOnClickMask && S();
3605
3605
  }, z = Ie({
3606
3606
  ...He(i),
@@ -3610,7 +3610,7 @@ const Ho = (e) => (be("data-v-b0efe321"), e = e(), _e(), e), Wo = ["onClick"], U
3610
3610
  g.value && S();
3611
3611
  });
3612
3612
  return $e(Xo, z), ge(() => {
3613
- $();
3613
+ k();
3614
3614
  }), (L, B) => (r(), d("div", {
3615
3615
  class: "abl-dropdown",
3616
3616
  ref_key: "root",
@@ -3652,7 +3652,7 @@ const Ho = (e) => (be("data-v-b0efe321"), e = e(), _e(), e), Wo = ["onClick"], U
3652
3652
  top: h(v.value)
3653
3653
  }
3654
3654
  ]),
3655
- onClick: k,
3655
+ onClick: $,
3656
3656
  onTouchmove: B[1] || (B[1] = G(() => {
3657
3657
  }, ["prevent"]))
3658
3658
  }, [
@@ -3838,12 +3838,12 @@ const us = {
3838
3838
  default: ""
3839
3839
  }
3840
3840
  },
3841
- emits: ["update:modelValue", "focus", "blur", "clear", "input"],
3841
+ emits: ["update:modelValue", "focus", "blur", "clear", "input", "inputTarget"],
3842
3842
  setup(e, { expose: l, emit: t }) {
3843
3843
  const n = e, a = t, i = _(), o = _(n.autofocus), s = _(!0), c = _(n.type), f = _(!1), v = D({
3844
3844
  get: () => n.modelValue,
3845
- set: (k) => {
3846
- a("update:modelValue", k);
3845
+ set: ($) => {
3846
+ a("update:modelValue", $);
3847
3847
  }
3848
3848
  }), p = () => {
3849
3849
  o.value = !0, f.value = n.clearable && v.value, a("focus");
@@ -3851,8 +3851,8 @@ const us = {
3851
3851
  o.value = !1, a("blur"), setTimeout(() => {
3852
3852
  f.value = !1;
3853
3853
  }, 500);
3854
- }, h = (k) => {
3855
- k.target.value ? f.value = n.clearable : f.value = !1, a("input", k.target.value);
3854
+ }, h = ($) => {
3855
+ $.target.value ? f.value = n.clearable : f.value = !1, a("input", $.target.value), a("inputTarget", $);
3856
3856
  }, m = () => {
3857
3857
  v.value = "", a("clear");
3858
3858
  }, w = () => {
@@ -3861,33 +3861,33 @@ const us = {
3861
3861
  function S() {
3862
3862
  f.value = n.clearable && v.value;
3863
3863
  }
3864
- function $() {
3864
+ function k() {
3865
3865
  f.value = !1;
3866
3866
  }
3867
3867
  return l({
3868
3868
  blur: () => {
3869
- var k;
3870
- return (k = i.value) == null ? void 0 : k.blur();
3869
+ var $;
3870
+ return ($ = i.value) == null ? void 0 : $.blur();
3871
3871
  },
3872
3872
  focus: () => {
3873
- var k;
3874
- return (k = i.value) == null ? void 0 : k.focus();
3873
+ var $;
3874
+ return ($ = i.value) == null ? void 0 : $.focus();
3875
3875
  },
3876
3876
  clear: m,
3877
3877
  input: () => i.value
3878
- }), (k, z) => (r(), d("div", {
3879
- class: V(["abl-input", { "is-disabled": e.disabled }, { "abl-input-group": k.$slots.addonBefore || e.addonBefore || k.$slots.addonAfter || e.addonAfter }])
3878
+ }), ($, z) => (r(), d("div", {
3879
+ class: V(["abl-input", { "is-disabled": e.disabled }, { "abl-input-group": $.$slots.addonBefore || e.addonBefore || $.$slots.addonAfter || e.addonAfter }])
3880
3880
  }, [
3881
- E(k.$slots, "addonBefore", {}, () => [
3881
+ E($.$slots, "addonBefore", {}, () => [
3882
3882
  e.addonBefore ? (r(), d("span", us, U(e.addonBefore), 1)) : I("", !0)
3883
3883
  ], !0),
3884
3884
  u("div", {
3885
3885
  class: V(["abl-input__wrapper", { "is-focus": o.value }]),
3886
3886
  onMouseenter: S,
3887
- onMouseleave: $
3887
+ onMouseleave: k
3888
3888
  }, [
3889
- k.$slots.prefix || e.prefixIcon ? (r(), d("span", ds, [
3890
- E(k.$slots, "prefix", {}, void 0, !0),
3889
+ $.$slots.prefix || e.prefixIcon ? (r(), d("span", ds, [
3890
+ E($.$slots, "prefix", {}, void 0, !0),
3891
3891
  e.prefixIcon ? (r(), d("i", {
3892
3892
  key: 0,
3893
3893
  class: V(["iconfont-abl", e.suffixIcon])
@@ -3905,7 +3905,7 @@ const us = {
3905
3905
  disabled: e.disabled,
3906
3906
  onFocus: p,
3907
3907
  onBlur: g
3908
- }, k.$attrs, { onInput: h }), null, 16, fs), [
3908
+ }, $.$attrs, { onInput: h }), null, 16, fs), [
3909
3909
  [hn, v.value]
3910
3910
  ]),
3911
3911
  e.showPassword || e.clearable ? (r(), d("span", ps, [
@@ -3928,20 +3928,20 @@ const us = {
3928
3928
  [te, f.value]
3929
3929
  ])
3930
3930
  ])) : I("", !0),
3931
- k.$slots.suffix || e.suffixIcon ? (r(), d("span", vs, [
3932
- E(k.$slots, "suffix", {}, void 0, !0),
3931
+ $.$slots.suffix || e.suffixIcon ? (r(), d("span", vs, [
3932
+ E($.$slots, "suffix", {}, void 0, !0),
3933
3933
  e.suffixIcon ? (r(), d("i", {
3934
3934
  key: 0,
3935
3935
  class: V(["iconfont-abl", e.suffixIcon])
3936
3936
  }, null, 2)) : I("", !0)
3937
3937
  ])) : I("", !0)
3938
3938
  ], 34),
3939
- E(k.$slots, "addonAfter", {}, () => [
3939
+ E($.$slots, "addonAfter", {}, () => [
3940
3940
  e.addonAfter ? (r(), d("span", ms, U(e.addonAfter), 1)) : I("", !0)
3941
3941
  ], !0)
3942
3942
  ], 2));
3943
3943
  }
3944
- }), gs = /* @__PURE__ */ K(hs, [["__scopeId", "data-v-c0b9aaef"]]);
3944
+ }), gs = /* @__PURE__ */ K(hs, [["__scopeId", "data-v-83d348ad"]]);
3945
3945
  const at = (e) => (be("data-v-d27e2131"), e = e(), _e(), e), ys = { class: "abl-spin-box" }, bs = {
3946
3946
  key: 0,
3947
3947
  class: "abl-spin-logo"
@@ -4117,7 +4117,7 @@ const _t = (e) => (be("data-v-915b5556"), e = e(), _e(), e), Vs = { class: "abl-
4117
4117
  if (y != null && y.length) {
4118
4118
  const O = y.length;
4119
4119
  for (let F = 0; F < O && C + F <= t.maxCount; F++)
4120
- $(y[F], C + F);
4120
+ k(y[F], C + F);
4121
4121
  o.value[C].value = "";
4122
4122
  }
4123
4123
  }, m = (B) => {
@@ -4127,14 +4127,14 @@ const _t = (e) => (be("data-v-915b5556"), e = e(), _e(), e), Vs = { class: "abl-
4127
4127
  if (y != null && y.length) {
4128
4128
  const x = y.length;
4129
4129
  for (let O = 0; O < x && C + O < t.maxCount; O++)
4130
- $(y[O], C + O);
4130
+ k(y[O], C + O);
4131
4131
  o.value[C].value = "";
4132
4132
  }
4133
- }, S = l, $ = function(B, C) {
4134
- t.beforeUpload(B) ? (t.maxCount > a.value && a.value++, t.uploadMode === "base64" && (i.value[C] = !0, k(B, C)), t.uploadMode === "custom" && (i.value[C] = !0, z(B, C))) : re(() => {
4133
+ }, S = l, k = function(B, C) {
4134
+ t.beforeUpload(B) ? (t.maxCount > a.value && a.value++, t.uploadMode === "base64" && (i.value[C] = !0, $(B, C)), t.uploadMode === "custom" && (i.value[C] = !0, z(B, C))) : re(() => {
4135
4135
  L(t.errorInfo);
4136
4136
  });
4137
- }, k = (B, C) => {
4137
+ }, $ = (B, C) => {
4138
4138
  var y = new FileReader();
4139
4139
  y.readAsDataURL(B), y.onloadstart = function(x) {
4140
4140
  console.log("开始读取 onloadstart:", x);
@@ -4375,8 +4375,8 @@ const Xs = { class: "abl-select-warpper-content" }, Ks = { class: "abl-select-ha
4375
4375
  trigger: "click",
4376
4376
  transitionName: "abl-select-menu"
4377
4377
  }), v = _(""), p = _(), g = _(null), h = _(""), m = _(), w = _(o.modelValue), S = _(!1);
4378
- let $ = null;
4379
- const k = D(() => {
4378
+ let k = null;
4379
+ const $ = D(() => {
4380
4380
  var b;
4381
4381
  return { width: (((b = p.value) == null ? void 0 : b.getBoundingClientRect().width) || "200") + "px" };
4382
4382
  }), z = Ie({
@@ -4478,7 +4478,7 @@ const Xs = { class: "abl-select-warpper-content" }, Ks = { class: "abl-select-ha
4478
4478
  }, { immediate: !0, deep: !0 });
4479
4479
  const ve = async (j) => {
4480
4480
  var b;
4481
- k.value && k.value.width && (k.value.width = ((b = p.value) == null ? void 0 : b.getBoundingClientRect().width) + "px");
4481
+ $.value && $.value.width && ($.value.width = ((b = p.value) == null ? void 0 : b.getBoundingClientRect().width) + "px");
4482
4482
  };
4483
4483
  return ge(async () => {
4484
4484
  Q(h, (j) => {
@@ -4486,9 +4486,9 @@ const Xs = { class: "abl-select-warpper-content" }, Ks = { class: "abl-select-ha
4486
4486
  j === "focus" ? (b = g.value) == null || b.focus() : (R = g.value) == null || R.blur(), T.value = o.search && j === "focus" && N;
4487
4487
  }), document.body.addEventListener("click", () => {
4488
4488
  h.value = "blur";
4489
- }), await re(), $ = window == null ? void 0 : window.matchMedia("(orientation: landscape)"), $.addEventListener("change", ve);
4489
+ }), await re(), k = window == null ? void 0 : window.matchMedia("(orientation: landscape)"), k.addEventListener("change", ve);
4490
4490
  }), Oe(() => {
4491
- $ && $.removeEventListener("change", ve);
4491
+ k && k.removeEventListener("change", ve);
4492
4492
  }), Q(() => o.modelValue, async () => {
4493
4493
  w.value = o.modelValue, w.value == "" && (v.value = "", C.value.splice(0, 1)), z.list.map((j) => {
4494
4494
  x(j.value, o.modelValue) && (C.value.splice(0, C.value.length), C.value.push({
@@ -4516,7 +4516,7 @@ const Xs = { class: "abl-select-warpper-content" }, Ks = { class: "abl-select-ha
4516
4516
  content: ie(() => [
4517
4517
  u("div", {
4518
4518
  class: V(["abl-select-options-warpper", [e.customScrollbar ? "custom-scrollbar" : ""]]),
4519
- style: M(k.value),
4519
+ style: M($.value),
4520
4520
  id: "abl-select"
4521
4521
  }, [
4522
4522
  z.list.length > 0 ? (r(!0), d(Y, { key: 0 }, ne(z.list, (R, P) => (r(), d("div", {
@@ -4675,27 +4675,27 @@ const ai = {
4675
4675
  const m = g.length;
4676
4676
  let w = [];
4677
4677
  for (let S = 0; S < m; S++) {
4678
- const $ = {
4678
+ const k = {
4679
4679
  span: Math.min(g[S].dataset.span, h),
4680
4680
  element: g[S]
4681
4681
  };
4682
- v(w) < h ? ($.span = Math.min($.span, h - v(w)), S === m - 1 && ($.span = h - v(w)), w.push($), S === m - 1 && s.value.push(w)) : (s.value.push(w), w = [$], S === m - 1 && ($.span = h, s.value.push(w)));
4682
+ v(w) < h ? (k.span = Math.min(k.span, h - v(w)), S === m - 1 && (k.span = h - v(w)), w.push(k), S === m - 1 && s.value.push(w)) : (s.value.push(w), w = [k], S === m - 1 && (k.span = h, s.value.push(w)));
4683
4683
  }
4684
4684
  l.bordered ? re(() => {
4685
- s.value.forEach((S, $) => {
4686
- S.forEach((k) => {
4687
- const z = Array.from(k.element.children), N = z[0];
4688
- N.colSpan = 1, p(N, l.labelStyle), p(N, JSON.parse(k.element.dataset.labelStyle));
4685
+ s.value.forEach((S, k) => {
4686
+ S.forEach(($) => {
4687
+ const z = Array.from($.element.children), N = z[0];
4688
+ N.colSpan = 1, p(N, l.labelStyle), p(N, JSON.parse($.element.dataset.labelStyle));
4689
4689
  const T = z[1];
4690
- T.colSpan = k.span * 2 - 1, p(T, l.contentStyle), p(T, JSON.parse(k.element.dataset.contentStyle)), o.value[$].appendChild(N), o.value[$].appendChild(T);
4690
+ T.colSpan = $.span * 2 - 1, p(T, l.contentStyle), p(T, JSON.parse($.element.dataset.contentStyle)), o.value[k].appendChild(N), o.value[k].appendChild(T);
4691
4691
  });
4692
4692
  });
4693
4693
  }) : re(() => {
4694
- g.forEach((S, $) => {
4695
- const k = Array.from(S.children), z = k[0];
4694
+ g.forEach((S, k) => {
4695
+ const $ = Array.from(S.children), z = $[0];
4696
4696
  p(z, l.labelStyle), p(z, JSON.parse(S.dataset.labelStyle));
4697
- const N = k[1];
4698
- p(N, l.contentStyle), p(N, JSON.parse(S.dataset.contentStyle)), i.value[$].appendChild(S);
4697
+ const N = $[1];
4698
+ p(N, l.contentStyle), p(N, JSON.parse(S.dataset.contentStyle)), i.value[k].appendChild(S);
4699
4699
  });
4700
4700
  });
4701
4701
  }
@@ -4744,13 +4744,13 @@ const ai = {
4744
4744
  }))), 128)) : I("", !0)
4745
4745
  ])) : (r(), d("tbody", ii, [
4746
4746
  (r(!0), d(Y, null, ne(s.value, (m, w) => (r(), d("tr", { key: w }, [
4747
- (r(!0), d(Y, null, ne(m, (S, $) => (r(), d("td", {
4747
+ (r(!0), d(Y, null, ne(m, (S, k) => (r(), d("td", {
4748
4748
  ref_for: !0,
4749
4749
  ref_key: "cols",
4750
4750
  ref: i,
4751
4751
  class: "abl-item-td",
4752
4752
  colspan: S.span,
4753
- key: $
4753
+ key: k
4754
4754
  }, null, 8, ri))), 128))
4755
4755
  ]))), 128))
4756
4756
  ]))
@@ -4963,9 +4963,9 @@ const un = (e) => (be("data-v-f4c52821"), e = e(), _e(), e), $i = {
4963
4963
  };
4964
4964
  }), S = D(() => ({
4965
4965
  background: t.inactiveColor
4966
- })), $ = D(() => ({
4966
+ })), k = D(() => ({
4967
4967
  borderColor: t.buttonColor
4968
- })), k = _(!1), z = (b) => !!t.range && Array.isArray(b), N = () => {
4968
+ })), $ = _(!1), z = (b) => !!t.range && Array.isArray(b), N = () => {
4969
4969
  const { modelValue: b, min: R } = t;
4970
4970
  return z(b) ? `${(b[1] - b[0]) * 100 / p.value}%` : `${(b - Number(R)) * 100 / p.value}%`;
4971
4971
  }, T = () => {
@@ -5020,7 +5020,7 @@ const un = (e) => (be("data-v-f4c52821"), e = e(), _e(), e), $i = {
5020
5020
  }, W = (b) => {
5021
5021
  if (t.disabled || c.value === "draging")
5022
5022
  return;
5023
- k.value = !0;
5023
+ $.value = !0;
5024
5024
  const { min: R, modelValue: P } = t, X = Mt(s);
5025
5025
  let ce = b.clientX - X.left, ue = X.width;
5026
5026
  t.vertical && (ce = b.clientY - X.top, ue = X.height);
@@ -5034,18 +5034,18 @@ const un = (e) => (be("data-v-f4c52821"), e = e(), _e(), e), $i = {
5034
5034
  document.addEventListener("mousedown", A, { once: !0 });
5035
5035
  });
5036
5036
  }, A = () => {
5037
- k.value = !1;
5037
+ $.value = !1;
5038
5038
  }, q = (b) => {
5039
5039
  t.disabled || (f.start(b), o = t.modelValue, z(o) ? i = o.map(x) : i = x(o), c.value = "start");
5040
5040
  }, Z = (b) => {
5041
5041
  if (t.disabled)
5042
5042
  return;
5043
- c.value === "start" && n("dragStart"), f.move(b), c.value = "draging", b.type.startsWith("touch") && (k.value = !0);
5043
+ c.value === "start" && n("dragStart"), f.move(b), c.value = "draging", b.type.startsWith("touch") && ($.value = !0);
5044
5044
  const R = Mt(s);
5045
5045
  let P = f.deltaX.value, X = R.width, ce = P / X * p.value;
5046
5046
  t.vertical && (P = f.deltaY.value, X = R.height, ce = P / X * p.value), z(i) ? o[a.value] = i[a.value] + ce : o = i + ce, H(o);
5047
5047
  }, se = (b) => {
5048
- t.disabled || c.value === "draging" && (H(o, !0), n("dragEnd"), window.removeEventListener("mousemove", Z), window.removeEventListener("touchmove", Z), window.removeEventListener("mouseup", se), window.removeEventListener("touchend", se), b.type.startsWith("touch") && (k.value = !1), setTimeout(() => {
5048
+ t.disabled || c.value === "draging" && (H(o, !0), n("dragEnd"), window.removeEventListener("mousemove", Z), window.removeEventListener("touchmove", Z), window.removeEventListener("mouseup", se), window.removeEventListener("touchend", se), b.type.startsWith("touch") && ($.value = !1), setTimeout(() => {
5049
5049
  c.value = "";
5050
5050
  }));
5051
5051
  }, ve = (b, R) => {
@@ -5102,11 +5102,11 @@ const un = (e) => (be("data-v-f4c52821"), e = e(), _e(), e), $i = {
5102
5102
  b.$slots.button ? E(b.$slots, "button", { key: 0 }, void 0, !0) : (r(), d("div", {
5103
5103
  key: 1,
5104
5104
  class: "abl-range-button",
5105
- style: M($.value)
5105
+ style: M(k.value)
5106
5106
  }, [
5107
5107
  e.showTooltip ? (r(), d("div", {
5108
5108
  key: 0,
5109
- class: V(["abl-handle-tooltip", [{ "display-tooltip": a.value === P && k.value }]])
5109
+ class: V(["abl-handle-tooltip", [{ "display-tooltip": a.value === P && $.value }]])
5110
5110
  }, [
5111
5111
  ee(U(j(P)) + " ", 1),
5112
5112
  Ci
@@ -5133,11 +5133,11 @@ const un = (e) => (be("data-v-f4c52821"), e = e(), _e(), e), $i = {
5133
5133
  b.$slots.button ? E(b.$slots, "button", { key: 0 }, void 0, !0) : (r(), d("div", {
5134
5134
  key: 1,
5135
5135
  class: "abl-range-button",
5136
- style: M($.value)
5136
+ style: M(k.value)
5137
5137
  }, [
5138
5138
  e.showTooltip ? (r(), d("div", {
5139
5139
  key: 0,
5140
- class: V(["abl-handle-tooltip", [{ "display-tooltip": k.value }]])
5140
+ class: V(["abl-handle-tooltip", [{ "display-tooltip": $.value }]])
5141
5141
  }, [
5142
5142
  ee(U(j()) + " ", 1),
5143
5143
  Vi
@@ -5229,13 +5229,13 @@ const Ri = { class: "abl-pagination-wrap" }, zi = {
5229
5229
  }
5230
5230
  );
5231
5231
  const v = (m) => {
5232
- var w = [], S = Math.floor(t.pagerCount / 2), $ = {
5232
+ var w = [], S = Math.floor(t.pagerCount / 2), k = {
5233
5233
  start: m - S,
5234
5234
  end: m + S
5235
5235
  };
5236
- $.start < 1 && ($.end = $.end + (1 - $.start), $.start = 1), $.end > s.value && ($.start = $.start - ($.end - s.value), $.end = s.value), $.start < 1 && ($.start = 1), $.start > 1 ? i.value = !0 : i.value = !1, $.end < s.value ? o.value = !0 : o.value = !1;
5237
- for (let k = $.start; k <= $.end; k++)
5238
- w.push(k);
5236
+ k.start < 1 && (k.end = k.end + (1 - k.start), k.start = 1), k.end > s.value && (k.start = k.start - (k.end - s.value), k.end = s.value), k.start < 1 && (k.start = 1), k.start > 1 ? i.value = !0 : i.value = !1, k.end < s.value ? o.value = !0 : o.value = !1;
5237
+ for (let $ = k.start; $ <= k.end; $++)
5238
+ w.push($);
5239
5239
  return w;
5240
5240
  }, p = () => {
5241
5241
  a.value = a.value - t.pagerCount > 0 ? a.value - t.pagerCount : 1, n.itemRender && f("jump", a.value);
@@ -5280,10 +5280,10 @@ const Ri = { class: "abl-pagination-wrap" }, zi = {
5280
5280
  }, Ti, 512), [
5281
5281
  [te, i.value && c.value[0] - 1 > 1]
5282
5282
  ]),
5283
- (r(!0), d(Y, null, ne(c.value, (S, $) => (r(), d("div", {
5283
+ (r(!0), d(Y, null, ne(c.value, (S, k) => (r(), d("div", {
5284
5284
  class: V(["abl-pagination-item", { active: a.value === S }]),
5285
- key: $,
5286
- onClick: (k) => !le(n).itemRender && h(S)
5285
+ key: k,
5286
+ onClick: ($) => !le(n).itemRender && h(S)
5287
5287
  }, [
5288
5288
  E(m.$slots, "itemRender", {
5289
5289
  page: S,
@@ -5572,14 +5572,14 @@ const fr = {
5572
5572
  const S = n.container;
5573
5573
  if (!i.value && !S)
5574
5574
  return;
5575
- const $ = it(i), k = o.value, z = it(k), N = it(S);
5576
- if (s.height = $.height, s.width = $.width, n.position === "top")
5575
+ const k = it(i), $ = o.value, z = it($), N = it(S);
5576
+ if (s.height = k.height, s.width = k.width, n.position === "top")
5577
5577
  if (S) {
5578
- s.fixed = v.value > $.top && N.bottom > 0;
5578
+ s.fixed = v.value > k.top && N.bottom > 0;
5579
5579
  const T = N.bottom - v.value - z.height;
5580
5580
  s.transform = T < 0 ? T : 0;
5581
5581
  } else
5582
- s.fixed = v.value > $.top, s.transform = 0;
5582
+ s.fixed = v.value > k.top, s.transform = 0;
5583
5583
  else {
5584
5584
  const T = document.documentElement.clientHeight;
5585
5585
  if (S) {
@@ -5587,7 +5587,7 @@ const fr = {
5587
5587
  const L = N.bottom - (T - v.value);
5588
5588
  s.transform = L < 0 ? L : 0;
5589
5589
  } else
5590
- s.fixed = T - v.value < $.bottom, s.transform = 0;
5590
+ s.fixed = T - v.value < k.bottom, s.transform = 0;
5591
5591
  }
5592
5592
  f.value = null;
5593
5593
  }));
@@ -5609,7 +5609,7 @@ const fr = {
5609
5609
  w(), f.value !== null && n.isFixed && cancelAnimationFrame(f.value);
5610
5610
  }), Q(() => [n.container], () => {
5611
5611
  w(), m();
5612
- }), (S, $) => (r(), d("div", {
5612
+ }), (S, k) => (r(), d("div", {
5613
5613
  ref_key: "rootRef",
5614
5614
  ref: i,
5615
5615
  style: M(p.value)