@webx-ui/core 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -408,7 +408,7 @@ const sr = /* @__PURE__ */ te({
408
408
  }
409
409
  l("click", _);
410
410
  }
411
- return (_, $) => e.hidden ? (r(), f("span", {
411
+ return (_, A) => e.hidden ? (r(), f("span", {
412
412
  key: 0,
413
413
  class: ee(["wx-action wx-action--placeholder", `wx-action--${d.value}`]),
414
414
  "aria-hidden": "true"
@@ -522,8 +522,8 @@ const Gl = /* @__PURE__ */ te({
522
522
  function d() {
523
523
  const h = s.value, B = i.value?.parentElement;
524
524
  if (!l.collapse || !h || !B) return;
525
- const _ = getComputedStyle(B), $ = (parseFloat(_.paddingLeft) || 0) + (parseFloat(_.paddingRight) || 0), T = B.clientWidth - $;
526
- T <= 0 || (u.value = h.scrollWidth > T);
525
+ const _ = getComputedStyle(B), A = (parseFloat(_.paddingLeft) || 0) + (parseFloat(_.paddingRight) || 0), w = B.clientWidth - A;
526
+ w <= 0 || (u.value = h.scrollWidth > w);
527
527
  }
528
528
  let v;
529
529
  function m() {
@@ -824,20 +824,20 @@ const Sr = {
824
824
  function m() {
825
825
  d !== void 0 && (clearTimeout(d), d = void 0);
826
826
  }
827
- Se(i, (T) => {
828
- if (o("change", T), v) {
827
+ Se(i, (w) => {
828
+ if (o("change", w), v) {
829
829
  v = !1, m();
830
830
  return;
831
831
  }
832
- if (m(), T.length < n.minLength) {
832
+ if (m(), w.length < n.minLength) {
833
833
  u.value = !1;
834
834
  return;
835
835
  }
836
836
  d = setTimeout(() => {
837
- d = void 0, o("search", T);
837
+ d = void 0, o("search", w);
838
838
  }, n.debounce);
839
- }), Se(u, (T) => {
840
- o(T ? "open" : "close");
839
+ }), Se(u, (w) => {
840
+ o(w ? "open" : "close");
841
841
  }), Fe(m);
842
842
  const p = c(() => n.clearable && !s.disabled.value && i.value.length > 0), h = c(
843
843
  () => n.options.length > 0 || n.loading || i.value.length >= n.minLength
@@ -850,13 +850,13 @@ const Sr = {
850
850
  "is-disabled": s.disabled.value
851
851
  }
852
852
  ]);
853
- function _(T) {
854
- v = !0, o("select", T);
853
+ function _(w) {
854
+ v = !0, o("select", w);
855
855
  }
856
- function $() {
856
+ function A() {
857
857
  v = !0, i.value = "", u.value = !1, o("clear");
858
858
  }
859
- return (T, x) => (r(), q(g(Fi), Ce({
859
+ return (w, x) => (r(), q(g(Fi), Ce({
860
860
  modelValue: i.value,
861
861
  "onUpdate:modelValue": x[0] || (x[0] = (H) => i.value = H),
862
862
  open: u.value,
@@ -876,8 +876,8 @@ const Sr = {
876
876
  as: "div"
877
877
  }, {
878
878
  default: P(() => [
879
- T.$slots.prefix ? (r(), f("span", Sr, [
880
- C(T.$slots, "prefix", {}, void 0, !0)
879
+ w.$slots.prefix ? (r(), f("span", Sr, [
880
+ C(w.$slots, "prefix", {}, void 0, !0)
881
881
  ])) : y("", !0),
882
882
  U(g(Ui), Ce({
883
883
  id: g(s).id.value
@@ -900,12 +900,12 @@ const Sr = {
900
900
  type: "button",
901
901
  tabindex: "-1",
902
902
  "aria-label": "Clear",
903
- onClick: $
903
+ onClick: A
904
904
  }, [
905
905
  U(pe, { name: "close" })
906
906
  ])) : y("", !0),
907
- T.$slots.suffix ? (r(), f("span", Br, [
908
- C(T.$slots, "suffix", {}, void 0, !0)
907
+ w.$slots.suffix ? (r(), f("span", Br, [
908
+ C(w.$slots, "suffix", {}, void 0, !0)
909
909
  ])) : y("", !0)
910
910
  ]),
911
911
  _: 3
@@ -940,7 +940,7 @@ const Sr = {
940
940
  onSelect: (N) => _(H)
941
941
  }, {
942
942
  default: P(() => [
943
- C(T.$slots, "option", { option: H }, () => [
943
+ C(w.$slots, "option", { option: H }, () => [
944
944
  S("span", Ar, F(H.label ?? H.value), 1),
945
945
  H.description ? (r(), f("span", zr, F(H.description), 1)) : y("", !0)
946
946
  ], !0)
@@ -1484,14 +1484,14 @@ const lu = {
1484
1484
  function _(M, R) {
1485
1485
  return M.children?.length ? M.children : m.value.get(h([...R, M])) ?? [];
1486
1486
  }
1487
- function $(M, R) {
1487
+ function A(M, R) {
1488
1488
  if (M.leaf === !0) return !0;
1489
1489
  if (M.children?.length) return !1;
1490
1490
  if (!n.lazy) return !0;
1491
1491
  const de = m.value.get(h([...R, M]));
1492
1492
  return de !== void 0 && de.length === 0;
1493
1493
  }
1494
- function T(M, R) {
1494
+ function w(M, R) {
1495
1495
  return p.value.has(h([...R, M]));
1496
1496
  }
1497
1497
  const x = c(() => {
@@ -1532,7 +1532,7 @@ const lu = {
1532
1532
  return j.value ? Array.isArray(R) ? R.join(n.separator) : String(R) : "";
1533
1533
  }
1534
1534
  return n.showAllLevels ? M.map((R) => R.label).join(n.separator) : M[M.length - 1].label;
1535
- }), w = c(() => n.clearable && !s.disabled.value && j.value), A = c(() => {
1535
+ }), k = c(() => n.clearable && !s.disabled.value && j.value), T = c(() => {
1536
1536
  const M = i.value;
1537
1537
  return j.value ? Array.isArray(M) ? M.join(",") : String(M) : "";
1538
1538
  }), E = c(() => [
@@ -1560,19 +1560,19 @@ const lu = {
1560
1560
  function b(M, R) {
1561
1561
  if (M.disabled) return;
1562
1562
  const de = d.value.slice(0, R);
1563
- d.value = [...de, M], o("expand", d.value), n.lazy && !$(M, de) && D([...de, M]);
1563
+ d.value = [...de, M], o("expand", d.value), n.lazy && !A(M, de) && D([...de, M]);
1564
1564
  }
1565
- function k(M) {
1565
+ function $(M) {
1566
1566
  const R = n.emitPath ? M.map((de) => de.value) : M[M.length - 1]?.value ?? null;
1567
1567
  i.value = R, o("change", R);
1568
1568
  }
1569
1569
  function V(M, R) {
1570
1570
  if (M.disabled) return;
1571
- const de = d.value.slice(0, R), ne = [...de, M], he = $(M, de);
1572
- b(M, R), (he || n.checkStrictly) && k(ne), he && (u.value = !1);
1571
+ const de = d.value.slice(0, R), ne = [...de, M], he = A(M, de);
1572
+ b(M, R), (he || n.checkStrictly) && $(ne), he && (u.value = !1);
1573
1573
  }
1574
1574
  function I(M, R) {
1575
- n.expandTrigger !== "hover" || M.disabled || $(M, d.value.slice(0, R)) || b(M, R);
1575
+ n.expandTrigger !== "hover" || M.disabled || A(M, d.value.slice(0, R)) || b(M, R);
1576
1576
  }
1577
1577
  function L() {
1578
1578
  i.value = n.emitPath ? [] : null, d.value = [], o("change", i.value), o("clear");
@@ -1612,7 +1612,7 @@ const lu = {
1612
1612
  M.preventDefault(), le(ne, We - 1);
1613
1613
  break;
1614
1614
  case "ArrowRight": {
1615
- if (!K || $(K, d.value.slice(0, ne))) return;
1615
+ if (!K || A(K, d.value.slice(0, ne))) return;
1616
1616
  M.preventDefault(), b(K, ne), qe(() => le(ne + 1, 0));
1617
1617
  break;
1618
1618
  }
@@ -1658,7 +1658,7 @@ const lu = {
1658
1658
  ]),
1659
1659
  _: 1
1660
1660
  }, 16, ["id", "disabled", "aria-label", "aria-describedby", "aria-invalid"]),
1661
- w.value ? (r(), f("button", {
1661
+ k.value ? (r(), f("button", {
1662
1662
  key: 0,
1663
1663
  class: "wx-cascader__clear",
1664
1664
  type: "button",
@@ -1675,7 +1675,7 @@ const lu = {
1675
1675
  key: 0,
1676
1676
  type: "hidden",
1677
1677
  name: e.name,
1678
- value: A.value
1678
+ value: T.value
1679
1679
  }, null, 8, ku)) : y("", !0)
1680
1680
  ], 16),
1681
1681
  U(g(sa), {
@@ -1723,12 +1723,12 @@ const lu = {
1723
1723
  se(F(he.label), 1)
1724
1724
  ], !0)
1725
1725
  ]),
1726
- T(he, d.value.slice(0, ne)) ? (r(), q(pe, {
1726
+ w(he, d.value.slice(0, ne)) ? (r(), q(pe, {
1727
1727
  key: 0,
1728
1728
  class: "wx-cascader__mark",
1729
1729
  name: "loader",
1730
1730
  spin: ""
1731
- })) : $(he, d.value.slice(0, ne)) ? X.value[ne]?.value === he.value ? (r(), q(pe, {
1731
+ })) : A(he, d.value.slice(0, ne)) ? X.value[ne]?.value === he.value ? (r(), q(pe, {
1732
1732
  key: 2,
1733
1733
  class: "wx-cascader__mark wx-cascader__mark--check",
1734
1734
  name: "check"
@@ -1808,11 +1808,11 @@ const lu = {
1808
1808
  d.value && (d.value.indeterminate = n.indeterminate && !v.value);
1809
1809
  }
1810
1810
  at(B), Se([() => n.indeterminate, v], B);
1811
- function _($) {
1812
- const T = $.target.checked;
1813
- s ? s.toggle(n.value ?? null, T) : i.value = T, o("change", T);
1811
+ function _(A) {
1812
+ const w = A.target.checked;
1813
+ s ? s.toggle(n.value ?? null, w) : i.value = w, o("change", w);
1814
1814
  }
1815
- return ($, T) => (r(), f("label", Ce({ class: h.value }, g(t)), [
1815
+ return (A, w) => (r(), f("label", Ce({ class: h.value }, g(t)), [
1816
1816
  S("input", Ce({
1817
1817
  id: g(u).id.value,
1818
1818
  ref_key: "inputRef",
@@ -1832,8 +1832,8 @@ const lu = {
1832
1832
  e.indeterminate && !v.value ? (r(), f("path", Du)) : (r(), f("path", Wu))
1833
1833
  ]))
1834
1834
  ]),
1835
- e.label || $.$slots.default ? (r(), f("span", Iu, [
1836
- C($.$slots, "default", {}, () => [
1835
+ e.label || A.$slots.default ? (r(), f("span", Iu, [
1836
+ C(A.$slots, "default", {}, () => [
1837
1837
  se(F(e.label), 1)
1838
1838
  ], !0)
1839
1839
  ])) : y("", !0)
@@ -1957,22 +1957,22 @@ const lu = {
1957
1957
  emits: /* @__PURE__ */ fe(["change"], ["update:modelValue"]),
1958
1958
  setup(e, { emit: a }) {
1959
1959
  const { rootAttrs: t, controlAttrs: l } = nt(), n = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i, o = e, i = a, s = xe(e, "modelValue"), u = Xe(o), d = G(!1), v = G(s.value ?? "");
1960
- Se(s, (w) => {
1961
- v.value = w ?? "";
1960
+ Se(s, (k) => {
1961
+ v.value = k ?? "";
1962
1962
  });
1963
- function m(w) {
1964
- return yn(ns(w));
1963
+ function m(k) {
1964
+ return yn(ns(k));
1965
1965
  }
1966
1966
  const p = G(
1967
1967
  m(s.value && n.test(s.value) ? s.value : "#427edd")
1968
1968
  );
1969
- Se(s, (w) => {
1970
- const A = w && n.test(w) ? w : null;
1971
- !A || A === gn(p.value).toLowerCase() || (p.value = m(A));
1969
+ Se(s, (k) => {
1970
+ const T = k && n.test(k) ? k : null;
1971
+ !T || T === gn(p.value).toLowerCase() || (p.value = m(T));
1972
1972
  });
1973
1973
  const h = c(
1974
1974
  () => qi(p.value, "saturation", "brightness", "hsb")
1975
- ), B = c(() => Zi(p.value, "hue", "hsb")), _ = c(() => s.value && n.test(s.value) ? s.value : null), $ = c(() => [
1975
+ ), B = c(() => Zi(p.value, "hue", "hsb")), _ = c(() => s.value && n.test(s.value) ? s.value : null), A = c(() => [
1976
1976
  "wx-color-picker",
1977
1977
  `wx-color-picker--${u.size.value}`,
1978
1978
  {
@@ -1981,40 +1981,40 @@ const lu = {
1981
1981
  "is-disabled": u.disabled.value
1982
1982
  }
1983
1983
  ]);
1984
- function T(w) {
1985
- s.value !== w && (s.value = w, i("change", w));
1984
+ function w(k) {
1985
+ s.value !== k && (s.value = k, i("change", k));
1986
1986
  }
1987
- function x(w) {
1988
- const A = w.target.value;
1989
- v.value = A, n.test(A) ? T(A.toLowerCase()) : A === "" && T(null);
1987
+ function x(k) {
1988
+ const T = k.target.value;
1989
+ v.value = T, n.test(T) ? w(T.toLowerCase()) : T === "" && w(null);
1990
1990
  }
1991
1991
  function H() {
1992
1992
  if (v.value === "") {
1993
- T(null);
1993
+ w(null);
1994
1994
  return;
1995
1995
  }
1996
- const w = v.value.startsWith("#") ? v.value : `#${v.value}`;
1997
- n.test(w) ? (T(w.toLowerCase()), v.value = w.toLowerCase()) : v.value = s.value ?? "";
1996
+ const k = v.value.startsWith("#") ? v.value : `#${v.value}`;
1997
+ n.test(k) ? (w(k.toLowerCase()), v.value = k.toLowerCase()) : v.value = s.value ?? "";
1998
1998
  }
1999
- function N(w) {
2000
- p.value = yn(w), T(gn(w).toLowerCase());
1999
+ function N(k) {
2000
+ p.value = yn(k), w(gn(k).toLowerCase());
2001
2001
  }
2002
- function X(w) {
2003
- const A = w.toLowerCase();
2004
- p.value = m(A), T(A);
2002
+ function X(k) {
2003
+ const T = k.toLowerCase();
2004
+ p.value = m(T), w(T);
2005
2005
  }
2006
2006
  function j() {
2007
- T(null), v.value = "";
2007
+ w(null), v.value = "";
2008
2008
  }
2009
2009
  function Y() {
2010
2010
  !u.disabled.value && !o.readonly && (d.value = !0);
2011
2011
  }
2012
- return (w, A) => (r(), q(g(ia), {
2012
+ return (k, T) => (r(), q(g(ia), {
2013
2013
  open: d.value,
2014
- "onUpdate:open": A[0] || (A[0] = (E) => d.value = E)
2014
+ "onUpdate:open": T[0] || (T[0] = (E) => d.value = E)
2015
2015
  }, {
2016
2016
  default: P(() => [
2017
- S("div", Ce({ class: $.value }, g(t)), [
2017
+ S("div", Ce({ class: A.value }, g(t)), [
2018
2018
  U(g(Kl), { "as-child": "" }, {
2019
2019
  default: P(() => [
2020
2020
  S("div", {
@@ -2377,8 +2377,8 @@ const ld = /* @__PURE__ */ te({
2377
2377
  return n.valueFormat ? n.valueFormat : n.type === "time" ? n.seconds ? "HH:mm:ss" : "HH:mm" : n.type === "datetime" ? n.seconds ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
2378
2378
  }), v = c(() => {
2379
2379
  if (n.format) return n.format;
2380
- const T = n.seconds ? "HH:mm:ss" : "HH:mm";
2381
- return n.type === "time" ? T : n.type === "datetime" ? `dd.MM.yyyy ${T}` : "dd.MM.yyyy";
2380
+ const w = n.seconds ? "HH:mm:ss" : "HH:mm";
2381
+ return n.type === "time" ? w : n.type === "datetime" ? `dd.MM.yyyy ${w}` : "dd.MM.yyyy";
2382
2382
  }), m = c(() => n.type === "time" ? { modeHeight: 125 } : void 0), p = c(() => ({
2383
2383
  enableTimePicker: u.value,
2384
2384
  enableSeconds: n.seconds,
@@ -2400,13 +2400,13 @@ const ld = /* @__PURE__ */ te({
2400
2400
  "is-disabled": s.disabled.value
2401
2401
  }
2402
2402
  ]);
2403
- function _(T) {
2404
- i.value = T, o("change", T);
2403
+ function _(w) {
2404
+ i.value = w, o("change", w);
2405
2405
  }
2406
- function $() {
2406
+ function A() {
2407
2407
  i.value = null, o("change", null), o("clear");
2408
2408
  }
2409
- return (T, x) => (r(), f("div", Ce({ class: B.value }, g(t)), [
2409
+ return (w, x) => (r(), f("div", Ce({ class: B.value }, g(t)), [
2410
2410
  U(g(eo), Ce({
2411
2411
  "model-value": i.value,
2412
2412
  "model-type": d.value,
@@ -2427,14 +2427,14 @@ const ld = /* @__PURE__ */ te({
2427
2427
  readonly: e.readonly
2428
2428
  }, g(l), {
2429
2429
  "onUpdate:modelValue": _,
2430
- onCleared: $,
2430
+ onCleared: A,
2431
2431
  onOpen: x[0] || (x[0] = (H) => o("open")),
2432
2432
  onClosed: x[1] || (x[1] = (H) => o("close"))
2433
2433
  }), oa({ _: 2 }, [
2434
- Te(T.$slots, (H, N) => ({
2434
+ Te(w.$slots, (H, N) => ({
2435
2435
  name: N,
2436
2436
  fn: P((X) => [
2437
- C(T.$slots, N, $a(_a(X ?? {})))
2437
+ C(w.$slots, N, $a(_a(X ?? {})))
2438
2438
  ])
2439
2439
  }))
2440
2440
  ]), 1040, ["model-value", "model-type", "formats", "time-picker", "time-config", "config", "input-attrs", "placeholder", "min-date", "max-date", "week-start", "auto-apply", "text-input", "teleport", "disabled", "readonly"])
@@ -2493,7 +2493,7 @@ const ld = /* @__PURE__ */ te({
2493
2493
  function B() {
2494
2494
  i.value = null, o("change", null), o("clear");
2495
2495
  }
2496
- return (_, $) => (r(), f("div", Ce({ class: p.value }, g(t)), [
2496
+ return (_, A) => (r(), f("div", Ce({ class: p.value }, g(t)), [
2497
2497
  U(g(eo), Ce({
2498
2498
  range: "",
2499
2499
  "model-value": i.value,
@@ -2515,10 +2515,10 @@ const ld = /* @__PURE__ */ te({
2515
2515
  }, g(l), {
2516
2516
  "onUpdate:modelValue": h,
2517
2517
  onCleared: B,
2518
- onOpen: $[0] || ($[0] = (T) => o("open")),
2519
- onClosed: $[1] || ($[1] = (T) => o("close"))
2518
+ onOpen: A[0] || (A[0] = (w) => o("open")),
2519
+ onClosed: A[1] || (A[1] = (w) => o("close"))
2520
2520
  }), oa({ _: 2 }, [
2521
- Te(_.$slots, (T, x) => ({
2521
+ Te(_.$slots, (w, x) => ({
2522
2522
  name: x,
2523
2523
  fn: P((H) => [
2524
2524
  C(_.$slots, x, $a(_a(H ?? {})))
@@ -2774,7 +2774,7 @@ const bd = {
2774
2774
  function s() {
2775
2775
  o.value = !1;
2776
2776
  }
2777
- const u = c(() => !!(l.title || i.title)), d = c(() => !!(u.value || i.extra || l.closable)), v = c(() => !!i.sidebar), m = c(() => l.title ?? l.ariaLabel ?? "Dialog"), p = c(() => l.scroll === "body"), h = c(() => l.draggable && p.value), B = c(() => l.resizable && p.value), _ = G({}), $ = en("wx-dialog:", () => l.persist), T = c(() => {
2777
+ const u = c(() => !!(l.title || i.title)), d = c(() => !!(u.value || i.extra || l.closable)), v = c(() => !!i.sidebar), m = c(() => l.title ?? l.ariaLabel ?? "Dialog"), p = c(() => l.scroll === "body"), h = c(() => l.draggable && p.value), B = c(() => l.resizable && p.value), _ = G({}), A = en("wx-dialog:", () => l.persist), w = c(() => {
2778
2778
  const O = {}, le = _.value.width != null ? `${_.value.width}px` : ea(l.width);
2779
2779
  le && (O["--wx-dialog-width"] = le);
2780
2780
  const W = _.value.height != null ? `${_.value.height}px` : ea(l.height);
@@ -2799,15 +2799,15 @@ const bd = {
2799
2799
  height: M.height || _.value.height || Il(l.height) || l.minHeight,
2800
2800
  x: _.value.x ?? 0,
2801
2801
  y: _.value.y ?? 0
2802
- }, O === "move" ? H.value = !0 : N.value = !0, window.addEventListener("pointermove", A), window.addEventListener("pointerup", D), window.addEventListener("pointercancel", D), le.preventDefault();
2802
+ }, O === "move" ? H.value = !0 : N.value = !0, window.addEventListener("pointermove", T), window.addEventListener("pointerup", D), window.addEventListener("pointercancel", D), le.preventDefault();
2803
2803
  }
2804
2804
  function Y(O) {
2805
2805
  !h.value || O.target?.closest("button, a, input, select, textarea, [contenteditable]") || j("move", O);
2806
2806
  }
2807
- function w(O) {
2807
+ function k(O) {
2808
2808
  B.value && j("resize", O);
2809
2809
  }
2810
- function A(O) {
2810
+ function T(O) {
2811
2811
  if (!X) return;
2812
2812
  const le = O.clientX - X.pointerX, W = O.clientY - X.pointerY;
2813
2813
  if (X.kind === "move") {
@@ -2828,16 +2828,16 @@ const bd = {
2828
2828
  };
2829
2829
  }
2830
2830
  function E() {
2831
- window.removeEventListener("pointermove", A), window.removeEventListener("pointerup", D), window.removeEventListener("pointercancel", D);
2831
+ window.removeEventListener("pointermove", T), window.removeEventListener("pointerup", D), window.removeEventListener("pointercancel", D);
2832
2832
  }
2833
2833
  function D() {
2834
- X && (X = null, H.value = !1, N.value = !1, E(), $.write(_.value), n("layout", { ..._.value }));
2834
+ X && (X = null, H.value = !1, N.value = !1, E(), A.write(_.value), n("layout", { ..._.value }));
2835
2835
  }
2836
2836
  function b() {
2837
- _.value = {}, $.clear();
2837
+ _.value = {}, A.clear();
2838
2838
  }
2839
- function k() {
2840
- const O = $.read();
2839
+ function $() {
2840
+ const O = A.read();
2841
2841
  if (!O) return;
2842
2842
  const le = {};
2843
2843
  for (const W of ["width", "height", "x", "y"]) {
@@ -2846,7 +2846,7 @@ const bd = {
2846
2846
  }
2847
2847
  _.value = le;
2848
2848
  }
2849
- at(k), Fe(E), Se(o, (O) => {
2849
+ at($), Fe(E), Se(o, (O) => {
2850
2850
  if (O) {
2851
2851
  n("open");
2852
2852
  return;
@@ -2903,7 +2903,7 @@ const bd = {
2903
2903
  "wx-dialog--long": !p.value,
2904
2904
  "wx-dialog--sticky-foot": !p.value && e.stickyFooter
2905
2905
  }],
2906
- style: T.value
2906
+ style: w.value
2907
2907
  }), [
2908
2908
  d.value ? (r(), f("header", {
2909
2909
  key: 0,
@@ -2957,7 +2957,7 @@ const bd = {
2957
2957
  key: 3,
2958
2958
  class: "wx-dialog__grip",
2959
2959
  "aria-hidden": "true",
2960
- onPointerdown: w
2960
+ onPointerdown: k
2961
2961
  }, null, 32)) : y("", !0)
2962
2962
  ], 16)
2963
2963
  ]),
@@ -3053,8 +3053,8 @@ const bd = {
3053
3053
  O && (L["--wx-drawer-size"] = O);
3054
3054
  const le = ea(l.sidebarWidth);
3055
3055
  return le && (L["--wx-drawer-sidebar-width"] = le), L;
3056
- }), $ = G(!1);
3057
- let T = null;
3056
+ }), A = G(!1);
3057
+ let w = null;
3058
3058
  function x(L) {
3059
3059
  return L.currentTarget?.closest(".wx-drawer") ?? null;
3060
3060
  }
@@ -3070,22 +3070,22 @@ const bd = {
3070
3070
  return da(L + W, l.minSize, N());
3071
3071
  }
3072
3072
  function j(L) {
3073
- !l.resizable || L.button !== 0 || L.pointerType === "touch" || (T = { pointerX: L.clientX, pointerY: L.clientY, size: H(x(L)) }, $.value = !0, window.addEventListener("pointermove", Y), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", A), L.preventDefault());
3073
+ !l.resizable || L.button !== 0 || L.pointerType === "touch" || (w = { pointerX: L.clientX, pointerY: L.clientY, size: H(x(L)) }, A.value = !0, window.addEventListener("pointermove", Y), window.addEventListener("pointerup", T), window.addEventListener("pointercancel", T), L.preventDefault());
3074
3074
  }
3075
3075
  function Y(L) {
3076
- T && (h.value = {
3076
+ w && (h.value = {
3077
3077
  size: X(
3078
- T.size,
3079
- L.clientX - T.pointerX,
3080
- L.clientY - T.pointerY
3078
+ w.size,
3079
+ L.clientX - w.pointerX,
3080
+ L.clientY - w.pointerY
3081
3081
  )
3082
3082
  });
3083
3083
  }
3084
- function w() {
3085
- window.removeEventListener("pointermove", Y), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", A);
3084
+ function k() {
3085
+ window.removeEventListener("pointermove", Y), window.removeEventListener("pointerup", T), window.removeEventListener("pointercancel", T);
3086
3086
  }
3087
- function A() {
3088
- T && (T = null, $.value = !1, w(), D());
3087
+ function T() {
3088
+ w && (w = null, A.value = !1, k(), D());
3089
3089
  }
3090
3090
  function E(L) {
3091
3091
  if (!l.resizable) return;
@@ -3103,11 +3103,11 @@ const bd = {
3103
3103
  function b() {
3104
3104
  h.value = {}, B.clear();
3105
3105
  }
3106
- function k() {
3106
+ function $() {
3107
3107
  const L = B.read();
3108
3108
  L && typeof L.size == "number" && Number.isFinite(L.size) && (h.value = { size: L.size });
3109
3109
  }
3110
- at(k), Fe(w), Se(o, (L) => {
3110
+ at($), Fe(k), Se(o, (L) => {
3111
3111
  if (L) {
3112
3112
  n("open");
3113
3113
  return;
@@ -3144,7 +3144,7 @@ const bd = {
3144
3144
  U(g(oo), Ce(L.$attrs, {
3145
3145
  class: ["wx-drawer", [
3146
3146
  `wx-drawer--${e.side}`,
3147
- { "wx-drawer--resizing": $.value, "wx-drawer--split": v.value }
3147
+ { "wx-drawer--resizing": A.value, "wx-drawer--split": v.value }
3148
3148
  ]],
3149
3149
  style: _.value,
3150
3150
  "aria-describedby": void 0,
@@ -3586,10 +3586,10 @@ const bd = {
3586
3586
  const X = N.target.value;
3587
3587
  s.value = X, i("input", X);
3588
3588
  }
3589
- function $(N) {
3589
+ function A(N) {
3590
3590
  i("change", N.target.value);
3591
3591
  }
3592
- function T(N) {
3592
+ function w(N) {
3593
3593
  v.value = !0, i("focus", N);
3594
3594
  }
3595
3595
  function x(N) {
@@ -3624,8 +3624,8 @@ const bd = {
3624
3624
  "aria-describedby": g(u).describedBy.value,
3625
3625
  "aria-invalid": g(u).status.value === "error" || void 0,
3626
3626
  onInput: _,
3627
- onChange: $,
3628
- onFocus: T,
3627
+ onChange: A,
3628
+ onFocus: w,
3629
3629
  onBlur: x
3630
3630
  }), null, 16, ic),
3631
3631
  p.value ? (r(), f("button", {
@@ -3642,7 +3642,7 @@ const bd = {
3642
3642
  ])) : y("", !0)
3643
3643
  ], 16));
3644
3644
  }
3645
- }), dl = /* @__PURE__ */ ue(uc, [["__scopeId", "data-v-24335f49"]]), dc = { class: "wx-popconfirm__body" }, cc = { class: "wx-popconfirm__text" }, fc = {
3645
+ }), dl = /* @__PURE__ */ ue(uc, [["__scopeId", "data-v-ff7c368f"]]), dc = { class: "wx-popconfirm__body" }, cc = { class: "wx-popconfirm__text" }, fc = {
3646
3646
  key: 0,
3647
3647
  class: "wx-popconfirm__title"
3648
3648
  }, vc = {
@@ -4063,12 +4063,12 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4063
4063
  O(), B.push(setTimeout(O, 0), setTimeout(O, 120));
4064
4064
  }
4065
4065
  );
4066
- function $() {
4066
+ function A() {
4067
4067
  if (!u.value) return;
4068
4068
  const L = d.value.trim();
4069
4069
  u.value = !1, L && L !== t.name && l("rename", L);
4070
4070
  }
4071
- function T() {
4071
+ function w() {
4072
4072
  _(), d.value = t.name, u.value = !1;
4073
4073
  }
4074
4074
  const x = G(!1), H = c(() => t.removeConfirmText ?? `Delete ${t.name}?`);
@@ -4086,7 +4086,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4086
4086
  }
4087
4087
  const j = G(!1);
4088
4088
  let Y;
4089
- async function w() {
4089
+ async function k() {
4090
4090
  const L = t.url;
4091
4091
  if (L) {
4092
4092
  if (!navigator.clipboard?.writeText) {
@@ -4106,12 +4106,12 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4106
4106
  clearTimeout(Y), _();
4107
4107
  for (const L of p.splice(0)) clearTimeout(L);
4108
4108
  });
4109
- const A = bt("label"), E = Ma(A), D = G(!1);
4109
+ const T = bt("label"), E = Ma(T), D = G(!1);
4110
4110
  Se(
4111
4111
  [E, () => t.name],
4112
4112
  async () => {
4113
4113
  await qe();
4114
- const L = A.value;
4114
+ const L = T.value;
4115
4115
  D.value = !!L && L.scrollWidth > L.clientWidth + 1;
4116
4116
  },
4117
4117
  { immediate: !0 }
@@ -4122,7 +4122,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4122
4122
  edit: t.editable && n.value && !t.disabled,
4123
4123
  copy: t.copyable && !!t.url && !t.disabled,
4124
4124
  remove: t.removable && !t.disabled
4125
- })), k = c(() => Object.values(b.value).some(Boolean)), V = G(!1), I = c(() => [
4125
+ })), $ = c(() => Object.values(b.value).some(Boolean)), V = G(!1), I = c(() => [
4126
4126
  "wx-file-card",
4127
4127
  `wx-file-card--${t.size}`,
4128
4128
  {
@@ -4162,7 +4162,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4162
4162
  i.value ? (r(), f("span", $c, F(i.value), 1)) : y("", !0)
4163
4163
  ]))
4164
4164
  ], !0),
4165
- k.value || L.$slots.actions ? (r(), f("span", _c, [
4165
+ $.value || L.$slots.actions ? (r(), f("span", _c, [
4166
4166
  U(tn, {
4167
4167
  open: u.value,
4168
4168
  "onUpdate:open": O[2] || (O[2] = (le) => u.value = le),
@@ -4172,7 +4172,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4172
4172
  arrow: !1,
4173
4173
  disabled: "",
4174
4174
  "aria-label": e.renameLabel,
4175
- onClose: T
4175
+ onClose: w
4176
4176
  }, {
4177
4177
  trigger: P(() => [...O[7] || (O[7] = [
4178
4178
  S("span", {
@@ -4194,7 +4194,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4194
4194
  U(Qe, {
4195
4195
  size: "sm",
4196
4196
  type: "primary",
4197
- onClick: $
4197
+ onClick: A
4198
4198
  }, {
4199
4199
  default: P(() => [
4200
4200
  se(F(e.saveLabel), 1)
@@ -4211,7 +4211,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4211
4211
  class: "wx-file-card__field",
4212
4212
  size: "sm",
4213
4213
  "aria-label": e.renameLabel,
4214
- onKeydown: Zn(Le($, ["prevent"]), ["enter"])
4214
+ onKeydown: Zn(Le(A, ["prevent"]), ["enter"])
4215
4215
  }, null, 8, ["modelValue", "aria-label", "onKeydown"])
4216
4216
  ]),
4217
4217
  _: 1
@@ -4271,7 +4271,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4271
4271
  b.value.copy ? (r(), q(ca, {
4272
4272
  key: 2,
4273
4273
  icon: "link",
4274
- onClick: w
4274
+ onClick: k
4275
4275
  }, {
4276
4276
  default: P(() => [
4277
4277
  se(F(j.value ? e.copiedLabel : e.copyLabel), 1)
@@ -4311,7 +4311,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4311
4311
  icon: j.value ? "check" : "link",
4312
4312
  tone: j.value ? "success" : void 0,
4313
4313
  title: j.value ? e.copiedLabel : e.copyLabel,
4314
- onClick: w
4314
+ onClick: k
4315
4315
  }, null, 8, ["icon", "tone", "title"])) : y("", !0),
4316
4316
  b.value.remove ? (r(), q(pt, {
4317
4317
  key: 3,
@@ -4333,7 +4333,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4333
4333
  default: P(() => [
4334
4334
  S("span", {
4335
4335
  ref_key: "label",
4336
- ref: A,
4336
+ ref: T,
4337
4337
  class: "wx-file-card__name",
4338
4338
  onDblclick: h
4339
4339
  }, F(e.name), 545)
@@ -4443,7 +4443,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4443
4443
  }
4444
4444
  s.value = "control", u.value = x;
4445
4445
  }
4446
- const v = c(() => t.error !== void 0 ? Array.isArray(t.error) ? t.error : [t.error] : t.name && l ? l.errors.value[t.name] ?? [] : []), m = c(() => v.value.length > 0), p = c(() => m.value ? "error" : "default"), h = c(() => m.value ? o : t.help ? i : void 0), B = c(() => t.size), _ = c(() => t.disabled), $ = c(() => t.labelWidth ?? l?.labelWidth.value), T = c(() => l?.labelPosition.value === "left");
4446
+ const v = c(() => t.error !== void 0 ? Array.isArray(t.error) ? t.error : [t.error] : t.name && l ? l.errors.value[t.name] ?? [] : []), m = c(() => v.value.length > 0), p = c(() => m.value ? "error" : "default"), h = c(() => m.value ? o : t.help ? i : void 0), B = c(() => t.size), _ = c(() => t.disabled), A = c(() => t.labelWidth ?? l?.labelWidth.value), w = c(() => l?.labelPosition.value === "left");
4447
4447
  return Mr({
4448
4448
  id: c(() => n),
4449
4449
  describedBy: h,
@@ -4454,9 +4454,9 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4454
4454
  }), a({ messages: v, hasError: m }), (x, H) => (r(), f("div", {
4455
4455
  class: ee([
4456
4456
  "wx-form-item",
4457
- { "wx-form-item--inline": T.value, "is-error": m.value, "is-required": e.required }
4457
+ { "wx-form-item--inline": w.value, "is-error": m.value, "is-required": e.required }
4458
4458
  ]),
4459
- style: be(T.value && $.value ? { "--wx-form-item-label-width": $.value } : void 0)
4459
+ style: be(w.value && A.value ? { "--wx-form-item-label-width": A.value } : void 0)
4460
4460
  }, [
4461
4461
  e.label || x.$slots.label ? (r(), q(Ze(s.value === "group" ? "span" : "label"), {
4462
4462
  key: 0,
@@ -4589,12 +4589,12 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4589
4589
  return b.length;
4590
4590
  });
4591
4591
  function p(b) {
4592
- const k = 10 ** m.value;
4593
- return Math.round((b + Number.EPSILON) * k) / k;
4592
+ const $ = 10 ** m.value;
4593
+ return Math.round((b + Number.EPSILON) * $) / $;
4594
4594
  }
4595
4595
  function h(b) {
4596
- let k = b;
4597
- return o.min !== void 0 && (k = Math.max(k, o.min)), o.max !== void 0 && (k = Math.min(k, o.max)), p(k);
4596
+ let $ = b;
4597
+ return o.min !== void 0 && ($ = Math.max($, o.min)), o.max !== void 0 && ($ = Math.min($, o.max)), p($);
4598
4598
  }
4599
4599
  const B = c(
4600
4600
  () => typeof s.value == "number" && Number.isFinite(s.value) ? s.value : null
@@ -4602,10 +4602,10 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4602
4602
  Se(B, (b) => {
4603
4603
  v.value || (_.value = b === null ? "" : b.toFixed(m.value));
4604
4604
  });
4605
- const $ = c(() => u.disabled.value), T = c(
4606
- () => !$.value && !o.readonly && (o.min === void 0 || (B.value ?? 0) > o.min)
4605
+ const A = c(() => u.disabled.value), w = c(
4606
+ () => !A.value && !o.readonly && (o.min === void 0 || (B.value ?? 0) > o.min)
4607
4607
  ), x = c(
4608
- () => !$.value && !o.readonly && (o.max === void 0 || (B.value ?? 0) < o.max)
4608
+ () => !A.value && !o.readonly && (o.max === void 0 || (B.value ?? 0) < o.max)
4609
4609
  ), H = c(() => [
4610
4610
  "wx-input-number",
4611
4611
  `wx-input-number--${u.size.value}`,
@@ -4613,21 +4613,21 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4613
4613
  {
4614
4614
  [`wx-input-number--${u.status.value}`]: u.status.value !== "default",
4615
4615
  "is-focused": v.value,
4616
- "is-disabled": $.value
4616
+ "is-disabled": A.value
4617
4617
  }
4618
4618
  ]);
4619
4619
  function N(b) {
4620
4620
  s.value !== b && (s.value = b, i("change", b));
4621
4621
  }
4622
4622
  function X(b) {
4623
- if ($.value || o.readonly) return;
4624
- const k = B.value ?? h(0), V = h(k + b * o.step);
4623
+ if (A.value || o.readonly) return;
4624
+ const $ = B.value ?? h(0), V = h($ + b * o.step);
4625
4625
  N(V), _.value = V.toFixed(m.value);
4626
4626
  }
4627
4627
  function j(b) {
4628
4628
  _.value = b.target.value;
4629
- const k = Number.parseFloat(_.value);
4630
- _.value === "" ? N(null) : Number.isFinite(k) && N(p(k));
4629
+ const $ = Number.parseFloat(_.value);
4630
+ _.value === "" ? N(null) : Number.isFinite($) && N(p($));
4631
4631
  }
4632
4632
  function Y() {
4633
4633
  if (_.value.trim() === "") {
@@ -4639,17 +4639,17 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4639
4639
  _.value = B.value === null ? "" : B.value.toFixed(m.value);
4640
4640
  return;
4641
4641
  }
4642
- const k = h(b);
4643
- N(k), _.value = k.toFixed(m.value);
4642
+ const $ = h(b);
4643
+ N($), _.value = $.toFixed(m.value);
4644
4644
  }
4645
- function w(b) {
4645
+ function k(b) {
4646
4646
  v.value = !0, i("focus", b);
4647
4647
  }
4648
- function A(b) {
4648
+ function T(b) {
4649
4649
  v.value = !1, Y(), i("blur", b);
4650
4650
  }
4651
4651
  function E(b) {
4652
- !o.wheel || !v.value || $.value || o.readonly || (b.preventDefault(), X(b.deltaY < 0 ? 1 : -1));
4652
+ !o.wheel || !v.value || A.value || o.readonly || (b.preventDefault(), X(b.deltaY < 0 ? 1 : -1));
4653
4653
  }
4654
4654
  function D(b) {
4655
4655
  b.key === "ArrowUp" ? (b.preventDefault(), X(1)) : b.key === "ArrowDown" ? (b.preventDefault(), X(-1)) : b.key === "Enter" && Y();
@@ -4660,16 +4660,16 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4660
4660
  increase: () => X(1),
4661
4661
  decrease: () => X(-1),
4662
4662
  input: d
4663
- }), (b, k) => (r(), f("div", Ce({ class: H.value }, g(l)), [
4663
+ }), (b, $) => (r(), f("div", Ce({ class: H.value }, g(l)), [
4664
4664
  e.controls ? (r(), f("button", {
4665
4665
  key: 0,
4666
4666
  class: "wx-input-number__button wx-input-number__button--decrease",
4667
4667
  type: "button",
4668
4668
  tabindex: "-1",
4669
4669
  "aria-label": "Decrease",
4670
- disabled: !T.value,
4671
- onClick: k[0] || (k[0] = (V) => X(-1))
4672
- }, [...k[2] || (k[2] = [
4670
+ disabled: !w.value,
4671
+ onClick: $[0] || ($[0] = (V) => X(-1))
4672
+ }, [...$[2] || ($[2] = [
4673
4673
  S("svg", {
4674
4674
  viewBox: "0 0 16 16",
4675
4675
  fill: "none",
@@ -4695,7 +4695,7 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4695
4695
  name: e.name,
4696
4696
  value: _.value,
4697
4697
  placeholder: e.placeholder,
4698
- disabled: $.value,
4698
+ disabled: A.value,
4699
4699
  readonly: e.readonly,
4700
4700
  "aria-label": e.ariaLabel,
4701
4701
  "aria-describedby": g(u).describedBy.value,
@@ -4705,8 +4705,8 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4705
4705
  "aria-valuemin": e.min,
4706
4706
  "aria-valuemax": e.max,
4707
4707
  onInput: j,
4708
- onFocus: w,
4709
- onBlur: A,
4708
+ onFocus: k,
4709
+ onBlur: T,
4710
4710
  onKeydown: D,
4711
4711
  onWheel: E
4712
4712
  }), null, 16, Kc),
@@ -4717,8 +4717,8 @@ const yc = { class: "wx-file-card__preview" }, xc = { class: "wx-file-card__file
4717
4717
  tabindex: "-1",
4718
4718
  "aria-label": "Increase",
4719
4719
  disabled: !x.value,
4720
- onClick: k[1] || (k[1] = (V) => X(1))
4721
- }, [...k[3] || (k[3] = [
4720
+ onClick: $[1] || ($[1] = (V) => X(1))
4721
+ }, [...$[3] || ($[3] = [
4722
4722
  S("svg", {
4723
4723
  viewBox: "0 0 16 16",
4724
4724
  fill: "none",
@@ -4988,10 +4988,10 @@ function _n(e, a, t, l, { ratio: n, min: o = 1 } = {}) {
4988
4988
  n && (i ? s ? v / m > n ? m = v / n : v = m * n : m = v / n : v = m * n);
4989
4989
  const p = i > 0 ? l.width - u : i < 0 ? u : 2 * Math.min(u, l.width - u), h = s > 0 ? l.height - d : s < 0 ? d : 2 * Math.min(d, l.height - d);
4990
4990
  if (n) {
4991
- const $ = Math.min(1, p / v, h / m);
4992
- v *= $, m *= $;
4993
- const T = Math.max(1, o / v, o / m);
4994
- v = Math.min(v * T, p), m = Math.min(m * T, h);
4991
+ const A = Math.min(1, p / v, h / m);
4992
+ v *= A, m *= A;
4993
+ const w = Math.max(1, o / v, o / m);
4994
+ v = Math.min(v * w, p), m = Math.min(m * w, h);
4995
4995
  } else
4996
4996
  v = gt(v, Math.min(o, p), p), m = gt(m, Math.min(o, h), h);
4997
4997
  const B = i > 0 ? u : i < 0 ? u - v : u - v / 2, _ = s > 0 ? d : s < 0 ? d - m : d - m / 2;
@@ -5120,7 +5120,7 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5120
5120
  Fe(() => {
5121
5121
  o.value && URL.revokeObjectURL(o.value);
5122
5122
  });
5123
- const s = bt("image"), u = bt("stage"), d = G({ width: 0, height: 0 }), v = G(!1), m = G(!1), p = G(!1), h = G(0), B = G(!1), _ = G(!1), $ = G({ x: 0, y: 0, width: 0, height: 0 }), T = G(null), x = G({ ...Zt }), H = c(() => Do(x.value)), N = c(() => !df(x.value)), X = c(() => [
5123
+ const s = bt("image"), u = bt("stage"), d = G({ width: 0, height: 0 }), v = G(!1), m = G(!1), p = G(!1), h = G(0), B = G(!1), _ = G(!1), A = G({ x: 0, y: 0, width: 0, height: 0 }), w = G(null), x = G({ ...Zt }), H = c(() => Do(x.value)), N = c(() => !df(x.value)), X = c(() => [
5124
5124
  { key: "brightness", label: l.brightnessLabel },
5125
5125
  { key: "contrast", label: l.contrastLabel },
5126
5126
  { key: "saturation", label: l.saturationLabel }
@@ -5131,25 +5131,25 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5131
5131
  function Y() {
5132
5132
  D.value = !0;
5133
5133
  }
5134
- const w = c(
5134
+ const k = c(
5135
5135
  () => h.value % 180 === 0 ? { width: d.value.width, height: d.value.height } : { width: d.value.height, height: d.value.width }
5136
- ), A = c(() => (l.ratios ?? (l.aspect === void 0 ? ["free", "original", 1, 1.3333333333333333, 1.5, 1.7777777777777777] : [])).map((oe) => {
5136
+ ), T = c(() => (l.ratios ?? (l.aspect === void 0 ? ["free", "original", 1, 1.3333333333333333, 1.5, 1.7777777777777777] : [])).map((oe) => {
5137
5137
  const me = typeof oe == "object" ? oe : { value: oe };
5138
5138
  return me.label ? me : me.value === "free" ? { ...me, label: l.freeLabel } : me.value === "original" ? { ...me, label: l.originalLabel } : { ...me, label: zo(me.value) };
5139
5139
  })), E = G("free"), D = G(!1), b = c(() => {
5140
5140
  if (l.aspect) return l.aspect;
5141
5141
  if (E.value !== "free")
5142
- return E.value === "original" ? w.value.height ? w.value.width / w.value.height : void 0 : E.value;
5142
+ return E.value === "original" ? k.value.height ? k.value.width / k.value.height : void 0 : E.value;
5143
5143
  });
5144
- function k(re) {
5145
- re !== void 0 && (E.value = re, D.value = !0, b.value && ae(Ol($.value, b.value, w.value)));
5144
+ function $(re) {
5145
+ re !== void 0 && (E.value = re, D.value = !0, b.value && ae(Ol(A.value, b.value, k.value)));
5146
5146
  }
5147
5147
  function V({ loaded: re = !0 } = {}) {
5148
- if (h.value = 0, B.value = !1, _.value = !1, T.value = null, x.value = { ...Zt }, E.value = l.ratio ?? A.value[0]?.value ?? "free", m.value = !1, D.value = !1, !re) {
5149
- v.value = !1, d.value = { width: 0, height: 0 }, $.value = { x: 0, y: 0, width: 0, height: 0 };
5148
+ if (h.value = 0, B.value = !1, _.value = !1, w.value = null, x.value = { ...Zt }, E.value = l.ratio ?? T.value[0]?.value ?? "free", m.value = !1, D.value = !1, !re) {
5149
+ v.value = !1, d.value = { width: 0, height: 0 }, A.value = { x: 0, y: 0, width: 0, height: 0 };
5150
5150
  return;
5151
5151
  }
5152
- $.value = of(w.value, b.value);
5152
+ A.value = of(k.value, b.value);
5153
5153
  }
5154
5154
  Se(
5155
5155
  () => l.src,
@@ -5173,11 +5173,11 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5173
5173
  }), le.observe(re), O.value = { width: re.clientWidth, height: re.clientHeight });
5174
5174
  }), Fe(() => le?.disconnect());
5175
5175
  const W = c(() => {
5176
- const { width: re, height: oe } = w.value;
5176
+ const { width: re, height: oe } = k.value;
5177
5177
  return !re || !oe || !O.value.width || !O.value.height ? 0 : Math.min(O.value.width / re, O.value.height / oe);
5178
5178
  }), M = c(() => ({
5179
- width: `${w.value.width * W.value}px`,
5180
- height: `${w.value.height * W.value}px`
5179
+ width: `${k.value.width * W.value}px`,
5180
+ height: `${k.value.height * W.value}px`
5181
5181
  })), R = c(() => ({
5182
5182
  width: `${d.value.width * W.value}px`,
5183
5183
  height: `${d.value.height * W.value}px`,
@@ -5185,10 +5185,10 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5185
5185
  /* On the picture and nowhere else: the crop, the grips and the shade are its siblings. */
5186
5186
  filter: H.value || void 0
5187
5187
  })), de = c(() => ({
5188
- left: `${$.value.x * W.value}px`,
5189
- top: `${$.value.y * W.value}px`,
5190
- width: `${$.value.width * W.value}px`,
5191
- height: `${$.value.height * W.value}px`
5188
+ left: `${A.value.x * W.value}px`,
5189
+ top: `${A.value.y * W.value}px`,
5190
+ width: `${A.value.width * W.value}px`,
5191
+ height: `${A.value.height * W.value}px`
5192
5192
  })), ne = ["nw", "n", "ne", "e", "se", "s", "sw", "w"], he = bt("frame"), We = bt("cropBox"), K = zi(null);
5193
5193
  function ie(re) {
5194
5194
  const oe = he.value;
@@ -5200,26 +5200,26 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5200
5200
  };
5201
5201
  }
5202
5202
  function ae(re) {
5203
- $.value = re, D.value = !0, T.value !== null && (T.value = Math.min(T.value, Math.round(re.width))), n("crop", $t(re));
5203
+ A.value = re, D.value = !0, w.value !== null && (w.value = Math.min(w.value, Math.round(re.width))), n("crop", $t(re));
5204
5204
  }
5205
5205
  function ge(re, oe) {
5206
- l.disabled || !v.value || oe.button !== 0 || (oe.preventDefault(), K.value = { handle: re, start: { ...$.value }, from: ie(oe) }, oe.currentTarget.setPointerCapture(oe.pointerId), We.value?.focus());
5206
+ l.disabled || !v.value || oe.button !== 0 || (oe.preventDefault(), K.value = { handle: re, start: { ...A.value }, from: ie(oe) }, oe.currentTarget.setPointerCapture(oe.pointerId), We.value?.focus());
5207
5207
  }
5208
5208
  function Oe(re) {
5209
5209
  if (l.disabled || !v.value || re.button !== 0) return;
5210
5210
  const oe = ie(re);
5211
- $.value = { x: oe.x, y: oe.y, width: 0, height: 0 }, ge("se", re);
5211
+ A.value = { x: oe.x, y: oe.y, width: 0, height: 0 }, ge("se", re);
5212
5212
  }
5213
5213
  function Ee(re) {
5214
5214
  const oe = K.value;
5215
5215
  if (!oe) return;
5216
5216
  const me = ie(re);
5217
5217
  if (oe.handle === "move") {
5218
- ae($n(oe.start, me.x - oe.from.x, me.y - oe.from.y, w.value));
5218
+ ae($n(oe.start, me.x - oe.from.x, me.y - oe.from.y, k.value));
5219
5219
  return;
5220
5220
  }
5221
5221
  ae(
5222
- _n(oe.handle, me, oe.start, w.value, {
5222
+ _n(oe.handle, me, oe.start, k.value, {
5223
5223
  ratio: b.value,
5224
5224
  min: l.minSize
5225
5225
  })
@@ -5236,46 +5236,46 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5236
5236
  const oe = re.altKey ? 1 : 10, me = re.key === "ArrowLeft" ? -oe : re.key === "ArrowRight" ? oe : 0, je = re.key === "ArrowUp" ? -oe : re.key === "ArrowDown" ? oe : 0;
5237
5237
  if (!me && !je) return;
5238
5238
  if (re.preventDefault(), !re.shiftKey) {
5239
- ae($n($.value, me, je, w.value));
5239
+ ae($n(A.value, me, je, k.value));
5240
5240
  return;
5241
5241
  }
5242
5242
  const Ct = {
5243
- x: $.value.x + $.value.width + me,
5244
- y: $.value.y + $.value.height + je
5243
+ x: A.value.x + A.value.width + me,
5244
+ y: A.value.y + A.value.height + je
5245
5245
  };
5246
5246
  ae(
5247
- _n("se", Ct, $.value, w.value, { ratio: b.value, min: l.minSize })
5247
+ _n("se", Ct, A.value, k.value, { ratio: b.value, min: l.minSize })
5248
5248
  );
5249
5249
  }
5250
5250
  function we(re) {
5251
5251
  if (l.disabled || !v.value) return;
5252
- const oe = w.value;
5253
- $.value = sf($.value, oe, re), h.value = (h.value + re * 90 + 360) % 360, D.value = !0, b.value && ($.value = Ol($.value, b.value, w.value)), n("crop", $t($.value));
5252
+ const oe = k.value;
5253
+ A.value = sf(A.value, oe, re), h.value = (h.value + re * 90 + 360) % 360, D.value = !0, b.value && (A.value = Ol(A.value, b.value, k.value)), n("crop", $t(A.value));
5254
5254
  }
5255
5255
  function ke(re) {
5256
5256
  if (l.disabled || !v.value) return;
5257
5257
  const oe = re === "x" ? B : _;
5258
- oe.value = !oe.value, ae(rf($.value, w.value, re));
5258
+ oe.value = !oe.value, ae(rf(A.value, k.value, re));
5259
5259
  }
5260
5260
  const Me = c(
5261
- () => uf($.value.width, $.value.height, l.maxWidth, l.maxHeight)
5261
+ () => uf(A.value.width, A.value.height, l.maxWidth, l.maxHeight)
5262
5262
  ), ze = c(() => {
5263
- const re = Me.value, oe = gt(T.value ?? re.width, 1, re.width);
5263
+ const re = Me.value, oe = gt(w.value ?? re.width, 1, re.width);
5264
5264
  return {
5265
5265
  width: Math.max(1, Math.round(oe)),
5266
5266
  height: Math.max(1, Math.round(oe * re.height / (re.width || 1)))
5267
5267
  };
5268
5268
  });
5269
5269
  function yt(re) {
5270
- T.value = re == null ? null : gt(re, 1, Me.value.width);
5270
+ w.value = re == null ? null : gt(re, 1, Me.value.width);
5271
5271
  }
5272
5272
  function it(re) {
5273
5273
  if (re == null) {
5274
- T.value = null;
5274
+ w.value = null;
5275
5275
  return;
5276
5276
  }
5277
5277
  const oe = Me.value;
5278
- T.value = gt(re * oe.width / (oe.height || 1), 1, oe.width);
5278
+ w.value = gt(re * oe.width / (oe.height || 1), 1, oe.width);
5279
5279
  }
5280
5280
  const st = c(
5281
5281
  () => decodeURIComponent(i.value.split(/[?#]/)[0]?.split("/").pop() ?? "")
@@ -5324,8 +5324,8 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5324
5324
  me.imageSmoothingQuality = "high";
5325
5325
  const je = !!H.value && !Nt(me);
5326
5326
  H.value && !je && (me.filter = H.value), xt.value === "image/jpeg" && (me.fillStyle = l.background, me.fillRect(0, 0, oe.width, oe.height));
5327
- const Ct = ze.value.width / ($.value.width || 1);
5328
- if (me.setTransform(Ct, 0, 0, Ct, -$.value.x * Ct, -$.value.y * Ct), me.translate(w.value.width / 2, w.value.height / 2), me.scale(B.value ? -1 : 1, _.value ? -1 : 1), me.rotate(h.value * Math.PI / 180), me.drawImage(
5327
+ const Ct = ze.value.width / (A.value.width || 1);
5328
+ if (me.setTransform(Ct, 0, 0, Ct, -A.value.x * Ct, -A.value.y * Ct), me.translate(k.value.width / 2, k.value.height / 2), me.scale(B.value ? -1 : 1, _.value ? -1 : 1), me.rotate(h.value * Math.PI / 180), me.drawImage(
5329
5329
  re,
5330
5330
  -d.value.width / 2,
5331
5331
  -d.value.height / 2,
@@ -5342,7 +5342,7 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5342
5342
  type: It.type || xt.value,
5343
5343
  width: oe.width,
5344
5344
  height: oe.height,
5345
- crop: $t($.value),
5345
+ crop: $t(A.value),
5346
5346
  rotation: h.value,
5347
5347
  flipX: B.value,
5348
5348
  flipY: _.value,
@@ -5358,13 +5358,13 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5358
5358
  }
5359
5359
  }
5360
5360
  }
5361
- const _t = c(() => D.value || T.value !== null);
5361
+ const _t = c(() => D.value || w.value !== null);
5362
5362
  return a({
5363
5363
  /** Draws the result, emits `save` and answers with it. */
5364
5364
  apply: Wa,
5365
5365
  /** Back to the whole picture, the right way up. */
5366
5366
  reset: () => V(),
5367
- crop: c(() => $t($.value))
5367
+ crop: c(() => $t(A.value))
5368
5368
  }), (re, oe) => (r(), f("div", {
5369
5369
  class: ee(["wx-image-editor", { "is-disabled": e.disabled, "is-busy": p.value }])
5370
5370
  }, [
@@ -5444,15 +5444,15 @@ const vf = { class: "wx-image-editor__stage" }, mf = { class: "wx-image-editor__
5444
5444
  ])) : y("", !0)
5445
5445
  ]),
5446
5446
  S("div", yf, [
5447
- A.value.length > 1 ? (r(), q(Bo, {
5447
+ T.value.length > 1 ? (r(), q(Bo, {
5448
5448
  key: 0,
5449
5449
  "model-value": E.value,
5450
5450
  class: "wx-image-editor__ratios",
5451
5451
  size: "sm",
5452
5452
  "aria-label": e.ratioLabel,
5453
5453
  disabled: e.disabled || !v.value,
5454
- options: A.value.map((me) => ({ label: me.label, value: me.value })),
5455
- "onUpdate:modelValue": oe[1] || (oe[1] = (me) => k(me))
5454
+ options: T.value.map((me) => ({ label: me.label, value: me.value })),
5455
+ "onUpdate:modelValue": oe[1] || (oe[1] = (me) => $(me))
5456
5456
  }, null, 8, ["model-value", "aria-label", "disabled", "options"])) : y("", !0),
5457
5457
  e.rotatable || e.flippable ? (r(), f("span", xf, [
5458
5458
  e.rotatable ? (r(), q(pt, {
@@ -6148,7 +6148,7 @@ var Xt = [], kl = {
6148
6148
  function lv(e) {
6149
6149
  var a = e.sortable, t = e.rootEl, l = e.name, n = e.targetEl, o = e.cloneEl, i = e.toEl, s = e.fromEl, u = e.oldIndex, d = e.newIndex, v = e.oldDraggableIndex, m = e.newDraggableIndex, p = e.originalEvent, h = e.putSortable, B = e.extraEventProperties;
6150
6150
  if (a = a || t && t[dt], !!a) {
6151
- var _, $ = a.options, T = "on" + l.charAt(0).toUpperCase() + l.substr(1);
6151
+ var _, A = a.options, w = "on" + l.charAt(0).toUpperCase() + l.substr(1);
6152
6152
  window.CustomEvent && !At && !Sa ? _ = new CustomEvent(l, {
6153
6153
  bubbles: !0,
6154
6154
  cancelable: !0
@@ -6156,7 +6156,7 @@ function lv(e) {
6156
6156
  var x = kt(kt({}, B), Ba.getEventProperties(l, a));
6157
6157
  for (var H in x)
6158
6158
  _[H] = x[H];
6159
- t && t.dispatchEvent(_), $[T] && $[T].call(a, _);
6159
+ t && t.dispatchEvent(_), A[w] && A[w].call(a, _);
6160
6160
  }
6161
6161
  }
6162
6162
  var nv = ["evt"], ot = function(e, a) {
@@ -6540,17 +6540,17 @@ _e.prototype = /** @lends Sortable.prototype */
6540
6540
  canSort: v,
6541
6541
  fromSortable: m,
6542
6542
  target: t,
6543
- completed: T,
6543
+ completed: w,
6544
6544
  onMove: function(W, M) {
6545
6545
  return Ka(Pe, a, ce, l, W, Ke(W), e, M);
6546
6546
  },
6547
6547
  changed: x
6548
6548
  }, le));
6549
6549
  }
6550
- function $() {
6550
+ function A() {
6551
6551
  _("dragOverAnimationCapture"), h.captureAnimationState(), h !== m && m.captureAnimationState();
6552
6552
  }
6553
- function T(O) {
6553
+ function w(O) {
6554
6554
  return _("dragOverCompleted", {
6555
6555
  insertion: O
6556
6556
  }), O && (d ? u._hideClone() : u._showClone(h), h !== m && (rt(ce, Ge ? Ge.options.ghostClass : u.options.ghostClass, !1), rt(ce, i.ghostClass, !0)), Ge !== h && h !== _e.active ? Ge = h : h === _e.active && Ge && (Ge = null), m === h && (h._ignoreWhileAnimating = t), h.animateAll(function() {
@@ -6570,46 +6570,46 @@ _e.prototype = /** @lends Sortable.prototype */
6570
6570
  if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = ht(t, i.draggable, a, !0), _("dragOver"), _e.eventCanceled)
6571
6571
  return B;
6572
6572
  if (ce.contains(e.target) || t.animated && t.animatingX && t.animatingY || h._ignoreWhileAnimating === t)
6573
- return T(!1);
6573
+ return w(!1);
6574
6574
  if (nl = !1, u && !i.disabled && (d ? v || (o = Ne !== Pe) : Ge === this || (this.lastPutMode = Fa.checkPull(this, u, ce, e)) && s.checkPut(this, u, ce, e))) {
6575
6575
  if (p = this._getDirection(e, t) === "vertical", l = Ke(ce), _("dragOverValid"), _e.eventCanceled)
6576
6576
  return B;
6577
6577
  if (o)
6578
- return Ne = Pe, $(), this._hideClone(), _("revert"), _e.eventCanceled || (Pt ? Pe.insertBefore(ce, Pt) : Pe.appendChild(ce)), T(!0);
6578
+ return Ne = Pe, A(), this._hideClone(), _("revert"), _e.eventCanceled || (Pt ? Pe.insertBefore(ce, Pt) : Pe.appendChild(ce)), w(!0);
6579
6579
  var H = ln(a, i.draggable);
6580
6580
  if (!H || fv(e, p, this) && !H.animated) {
6581
6581
  if (H === ce)
6582
- return T(!1);
6582
+ return w(!1);
6583
6583
  if (H && a === e.target && (t = H), t && (n = Ke(t)), Ka(Pe, a, ce, l, t, n, e, !!t) !== !1)
6584
- return $(), H && H.nextSibling ? a.insertBefore(ce, H.nextSibling) : a.appendChild(ce), Ne = a, x(), T(!0);
6584
+ return A(), H && H.nextSibling ? a.insertBefore(ce, H.nextSibling) : a.appendChild(ce), Ne = a, x(), w(!0);
6585
6585
  } else if (H && cv(e, p, this)) {
6586
6586
  var N = aa(a, 0, i, !0);
6587
6587
  if (N === ce)
6588
- return T(!1);
6588
+ return w(!1);
6589
6589
  if (t = N, n = Ke(t), Ka(Pe, a, ce, l, t, n, e, !1) !== !1)
6590
- return $(), a.insertBefore(ce, N), Ne = a, x(), T(!0);
6590
+ return A(), a.insertBefore(ce, N), Ne = a, x(), w(!0);
6591
6591
  } else if (t.parentNode === a) {
6592
6592
  n = Ke(t);
6593
- var X = 0, j, Y = ce.parentNode !== a, w = !iv(ce.animated && ce.toRect || l, t.animated && t.toRect || n, p), A = p ? "top" : "left", E = In(t, "top", "top") || In(ce, "top", "top"), D = E ? E.scrollTop : void 0;
6594
- Gt !== t && (j = n[A], xa = !1, Ha = !w && i.invertSwap || Y), X = vv(e, t, n, p, w ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, Ha, Gt === t);
6593
+ var X = 0, j, Y = ce.parentNode !== a, k = !iv(ce.animated && ce.toRect || l, t.animated && t.toRect || n, p), T = p ? "top" : "left", E = In(t, "top", "top") || In(ce, "top", "top"), D = E ? E.scrollTop : void 0;
6594
+ Gt !== t && (j = n[T], xa = !1, Ha = !k && i.invertSwap || Y), X = vv(e, t, n, p, k ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, Ha, Gt === t);
6595
6595
  var b;
6596
6596
  if (X !== 0) {
6597
- var k = vt(ce);
6597
+ var $ = vt(ce);
6598
6598
  do
6599
- k -= X, b = Ne.children[k];
6599
+ $ -= X, b = Ne.children[$];
6600
6600
  while (b && ($e(b, "display") === "none" || b === Be));
6601
6601
  }
6602
6602
  if (X === 0 || b === t)
6603
- return T(!1);
6603
+ return w(!1);
6604
6604
  Gt = t, ya = X;
6605
6605
  var V = t.nextElementSibling, I = !1;
6606
6606
  I = X === 1;
6607
6607
  var L = Ka(Pe, a, ce, l, t, n, e, I);
6608
6608
  if (L !== !1)
6609
- return (L === 1 || L === -1) && (I = L === 1), Pl = !0, setTimeout(dv, 30), $(), I && !V ? a.appendChild(ce) : t.parentNode.insertBefore(ce, I ? V : t), E && Ho(E, 0, D - E.scrollTop), Ne = ce.parentNode, j !== void 0 && !Ha && (qa = Math.abs(j - Ke(t)[A])), x(), T(!0);
6609
+ return (L === 1 || L === -1) && (I = L === 1), Pl = !0, setTimeout(dv, 30), A(), I && !V ? a.appendChild(ce) : t.parentNode.insertBefore(ce, I ? V : t), E && Ho(E, 0, D - E.scrollTop), Ne = ce.parentNode, j !== void 0 && !Ha && (qa = Math.abs(j - Ke(t)[T])), x(), w(!0);
6610
6610
  }
6611
6611
  if (a.contains(ce))
6612
- return T(!1);
6612
+ return w(!1);
6613
6613
  }
6614
6614
  return !1;
6615
6615
  },
@@ -6938,13 +6938,13 @@ var Tl = Fo(function(e, a, t, l) {
6938
6938
  Rl !== t && (Rl = t, Ja(), va = a.scroll, v = a.scrollFn, va === !0 && (va = Wt(t, !0)));
6939
6939
  var m = 0, p = va;
6940
6940
  do {
6941
- var h = p, B = Ke(h), _ = B.top, $ = B.bottom, T = B.left, x = B.right, H = B.width, N = B.height, X = void 0, j = void 0, Y = h.scrollWidth, w = h.scrollHeight, A = $e(h), E = h.scrollLeft, D = h.scrollTop;
6942
- h === u ? (X = H < Y && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"), j = N < w && (A.overflowY === "auto" || A.overflowY === "scroll" || A.overflowY === "visible")) : (X = H < Y && (A.overflowX === "auto" || A.overflowX === "scroll"), j = N < w && (A.overflowY === "auto" || A.overflowY === "scroll"));
6943
- var b = X && (Math.abs(x - n) <= i && E + H < Y) - (Math.abs(T - n) <= i && !!E), k = j && (Math.abs($ - o) <= i && D + N < w) - (Math.abs(_ - o) <= i && !!D);
6941
+ var h = p, B = Ke(h), _ = B.top, A = B.bottom, w = B.left, x = B.right, H = B.width, N = B.height, X = void 0, j = void 0, Y = h.scrollWidth, k = h.scrollHeight, T = $e(h), E = h.scrollLeft, D = h.scrollTop;
6942
+ h === u ? (X = H < Y && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), j = N < k && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (X = H < Y && (T.overflowX === "auto" || T.overflowX === "scroll"), j = N < k && (T.overflowY === "auto" || T.overflowY === "scroll"));
6943
+ var b = X && (Math.abs(x - n) <= i && E + H < Y) - (Math.abs(w - n) <= i && !!E), $ = j && (Math.abs(A - o) <= i && D + N < k) - (Math.abs(_ - o) <= i && !!D);
6944
6944
  if (!Ue[m])
6945
6945
  for (var V = 0; V <= m; V++)
6946
6946
  Ue[V] || (Ue[V] = {});
6947
- (Ue[m].vx != b || Ue[m].vy != k || Ue[m].el !== h) && (Ue[m].el = h, Ue[m].vx = b, Ue[m].vy = k, clearInterval(Ue[m].pid), (b != 0 || k != 0) && (d = !0, Ue[m].pid = setInterval(function() {
6947
+ (Ue[m].vx != b || Ue[m].vy != $ || Ue[m].el !== h) && (Ue[m].el = h, Ue[m].vx = b, Ue[m].vy = $, clearInterval(Ue[m].pid), (b != 0 || $ != 0) && (d = !0, Ue[m].pid = setInterval(function() {
6948
6948
  l && this.layer === 0 && _e.active._onTouchMove(sl);
6949
6949
  var I = Ue[this.layer].vy ? Ue[this.layer].vy * s : 0, L = Ue[this.layer].vx ? Ue[this.layer].vx * s : 0;
6950
6950
  typeof v == "function" && v.call(_e.dragged.parentNode[dt], L, I, e, sl, Ue[this.layer].el) !== "continue" || Ho(Ue[this.layer].el, L, I);
@@ -7036,9 +7036,9 @@ function kv(...e) {
7036
7036
  } = (t = g(s)) != null ? t : {};
7037
7037
  function B(E) {
7038
7038
  var D;
7039
- const { from: b, oldIndex: k, item: V } = E, I = Array.from(b.childNodes);
7039
+ const { from: b, oldIndex: $, item: V } = E, I = Array.from(b.childNodes);
7040
7040
  n = m && !p ? I.slice(0, -1) : I;
7041
- const L = g((D = g(i)) == null ? void 0 : D[k]), O = v(L);
7041
+ const L = g((D = g(i)) == null ? void 0 : D[$]), O = v(L);
7042
7042
  Rn(L, O), V[Nn] = O;
7043
7043
  }
7044
7044
  function _(E) {
@@ -7052,9 +7052,9 @@ function kv(...e) {
7052
7052
  Bn(g(i), E.newDraggableIndex, D);
7053
7053
  }
7054
7054
  }
7055
- function $(E) {
7056
- const { from: D, item: b, oldIndex: k, oldDraggableIndex: V, pullMode: I, clone: L } = E;
7057
- if (Tn(D, b, k), I === "clone") {
7055
+ function A(E) {
7056
+ const { from: D, item: b, oldIndex: $, oldDraggableIndex: V, pullMode: I, clone: L } = E;
7057
+ if (Tn(D, b, $), I === "clone") {
7058
7058
  xl(L);
7059
7059
  return;
7060
7060
  }
@@ -7065,13 +7065,13 @@ function kv(...e) {
7065
7065
  }
7066
7066
  Sn(g(i), V);
7067
7067
  }
7068
- function T(E) {
7068
+ function w(E) {
7069
7069
  if (h) {
7070
7070
  h(E);
7071
7071
  return;
7072
7072
  }
7073
- const { from: D, item: b, oldIndex: k, oldDraggableIndex: V, newDraggableIndex: I } = E;
7074
- if (xl(b), Tn(D, b, k), ha(i)) {
7073
+ const { from: D, item: b, oldIndex: $, oldDraggableIndex: V, newDraggableIndex: I } = E;
7074
+ if (xl(b), Tn(D, b, $), ha(i)) {
7075
7075
  const L = [...g(i)];
7076
7076
  i.value = Mn(
7077
7077
  L,
@@ -7083,15 +7083,15 @@ function kv(...e) {
7083
7083
  Mn(g(i), V, I);
7084
7084
  }
7085
7085
  function x(E) {
7086
- const { newIndex: D, oldIndex: b, from: k, to: V } = E;
7086
+ const { newIndex: D, oldIndex: b, from: $, to: V } = E;
7087
7087
  let I = null;
7088
- const L = D === b && k === V;
7088
+ const L = D === b && $ === V;
7089
7089
  try {
7090
7090
  if (L) {
7091
7091
  let O = null;
7092
7092
  n?.some((le, W) => {
7093
7093
  if (O && n?.length !== V.childNodes.length)
7094
- return k.insertBefore(O, le.nextSibling), !0;
7094
+ return $.insertBefore(O, le.nextSibling), !0;
7095
7095
  const M = V.childNodes[W];
7096
7096
  O = V?.replaceChild(le, M);
7097
7097
  });
@@ -7107,10 +7107,10 @@ function kv(...e) {
7107
7107
  });
7108
7108
  }
7109
7109
  const H = {
7110
- onUpdate: T,
7110
+ onUpdate: w,
7111
7111
  onStart: B,
7112
7112
  onAdd: _,
7113
- onRemove: $,
7113
+ onRemove: A,
7114
7114
  onEnd: x
7115
7115
  };
7116
7116
  function N(E) {
@@ -7119,7 +7119,7 @@ function kv(...e) {
7119
7119
  }
7120
7120
  function X() {
7121
7121
  var E;
7122
- const D = (E = g(s)) != null ? E : {}, { immediate: b, clone: k } = D, V = Eo(D, ["immediate", "clone"]);
7122
+ const D = (E = g(s)) != null ? E : {}, { immediate: b, clone: $ } = D, V = Eo(D, ["immediate", "clone"]);
7123
7123
  return An(V, (I, L) => {
7124
7124
  Uf(I) && (V[I] = (O, ...le) => {
7125
7125
  const W = wv();
@@ -7150,10 +7150,10 @@ function kv(...e) {
7150
7150
  save: () => u?.save(),
7151
7151
  toArray: () => u?.toArray(),
7152
7152
  closest: (...E) => u?.closest(...E)
7153
- }, w = () => Y?.option("disabled", !0), A = () => Y?.option("disabled", !1);
7153
+ }, k = () => Y?.option("disabled", !0), T = () => Y?.option("disabled", !1);
7154
7154
  return xv(() => {
7155
7155
  d && j();
7156
- }), yv(Y.destroy), Jt({ start: j, pause: w, resume: A }, Y);
7156
+ }), yv(Y.destroy), Jt({ start: j, pause: k, resume: T }, Y);
7157
7157
  }
7158
7158
  const Fl = [
7159
7159
  "update",
@@ -7226,9 +7226,9 @@ const Fl = [
7226
7226
  const p = `on${m.replace(/^\S/, (h) => h.toUpperCase())}`;
7227
7227
  return v[p] = (...h) => t(m, ...h), v;
7228
7228
  }, {}), i = c(() => {
7229
- const v = Wi(e), { modelValue: m } = v, p = Eo(v, ["modelValue"]), h = Object.entries(p).reduce((B, [_, $]) => {
7230
- const T = g($);
7231
- return T !== void 0 && (B[_] = T), B;
7229
+ const v = Wi(e), { modelValue: m } = v, p = Eo(v, ["modelValue"]), h = Object.entries(p).reduce((B, [_, A]) => {
7230
+ const w = g(A);
7231
+ return w !== void 0 && (B[_] = w), B;
7232
7232
  }, {});
7233
7233
  return Jt(Jt({}, o), Of(Jt(Jt({}, n), h)));
7234
7234
  }), s = c({
@@ -7305,10 +7305,10 @@ const Fl = [
7305
7305
  function _(W) {
7306
7306
  return String(W.title ?? W.id);
7307
7307
  }
7308
- function $(W) {
7308
+ function A(W) {
7309
7309
  o.value = m(W) ? o.value.filter((M) => M !== W.id) : [...o.value, W.id];
7310
7310
  }
7311
- function T(W) {
7311
+ function w(W) {
7312
7312
  return {
7313
7313
  name: u.value,
7314
7314
  pull: !p(W),
@@ -7352,17 +7352,17 @@ const Fl = [
7352
7352
  const de = l.columns[R];
7353
7353
  de && n("column-move", { column: de, from: M, to: R, via: "pointer" });
7354
7354
  }
7355
- const Y = G(null), w = G(null), A = G("");
7355
+ const Y = G(null), k = G(null), T = G("");
7356
7356
  function E(W) {
7357
7357
  return Y.value?.id === W.id;
7358
7358
  }
7359
7359
  function D(W) {
7360
- return w.value?.id === W.id;
7360
+ return k.value?.id === W.id;
7361
7361
  }
7362
7362
  function b(W, M) {
7363
7363
  return `${M.items.indexOf(W) + 1} of ${M.items.length}`;
7364
7364
  }
7365
- async function k(W, M) {
7365
+ async function $(W, M) {
7366
7366
  await qe();
7367
7367
  const R = String(M), de = i.value?.querySelectorAll(`[${W}]`) ?? [];
7368
7368
  for (const ne of de)
@@ -7375,7 +7375,7 @@ const Fl = [
7375
7375
  if (W.target !== W.currentTarget || p(R)) return;
7376
7376
  const ne = E(M);
7377
7377
  if (W.key === " " || W.key === "Spacebar" || W.key === "Enter") {
7378
- W.preventDefault(), ne ? (Y.value = null, A.value = `Dropped ${B(M)} in ${_(R)}, ${b(M, R)}.`) : (Y.value = { id: M.id, column: R.id, origin: { column: R.id, index: de } }, A.value = `Picked up ${B(M)}. Use the arrow keys to move it, space to drop it, escape to put it back.`);
7378
+ W.preventDefault(), ne ? (Y.value = null, T.value = `Dropped ${B(M)} in ${_(R)}, ${b(M, R)}.`) : (Y.value = { id: M.id, column: R.id, origin: { column: R.id, index: de } }, T.value = `Picked up ${B(M)}. Use the arrow keys to move it, space to drop it, escape to put it back.`);
7379
7379
  return;
7380
7380
  }
7381
7381
  if (!ne) return;
@@ -7388,7 +7388,7 @@ const Fl = [
7388
7388
  const ge = ie.items.indexOf(M);
7389
7389
  ge >= 0 && x(ie, ge, ae, K.origin.index, "keyboard");
7390
7390
  }
7391
- A.value = "Move cancelled.", k("data-card-id", M.id);
7391
+ T.value = "Move cancelled.", $("data-card-id", M.id);
7392
7392
  return;
7393
7393
  }
7394
7394
  const We = {
@@ -7401,7 +7401,7 @@ const Fl = [
7401
7401
  }
7402
7402
  function I(W, M, R) {
7403
7403
  const de = M.items.indexOf(W), ne = de + R;
7404
- ne < 0 || ne >= M.items.length || (x(M, de, M, ne, "keyboard"), A.value = `${B(W)} is now ${b(W, M)} in ${_(M)}.`, k("data-card-id", W.id));
7404
+ ne < 0 || ne >= M.items.length || (x(M, de, M, ne, "keyboard"), T.value = `${B(W)} is now ${b(W, M)} in ${_(M)}.`, $("data-card-id", W.id));
7405
7405
  }
7406
7406
  function L(W, M, R) {
7407
7407
  const de = l.columns.indexOf(M);
@@ -7409,33 +7409,33 @@ const Fl = [
7409
7409
  const he = l.columns[ne];
7410
7410
  if (p(he) || v(he)) continue;
7411
7411
  const We = M.items.indexOf(W);
7412
- x(M, We, he, Math.min(We, he.items.length), "keyboard"), Y.value && (Y.value = { ...Y.value, column: he.id }), A.value = `${B(W)} moved to ${_(he)}, ${b(W, he)}.`, k("data-card-id", W.id);
7412
+ x(M, We, he, Math.min(We, he.items.length), "keyboard"), Y.value && (Y.value = { ...Y.value, column: he.id }), T.value = `${B(W)} moved to ${_(he)}, ${b(W, he)}.`, $("data-card-id", W.id);
7413
7413
  return;
7414
7414
  }
7415
- A.value = `${_(M)} is the last column that can take ${B(W)}.`;
7415
+ T.value = `${_(M)} is the last column that can take ${B(W)}.`;
7416
7416
  }
7417
7417
  function O(W, M, R) {
7418
7418
  if (W.target !== W.currentTarget || !l.reorderColumns || l.disabled) return;
7419
7419
  const de = D(M);
7420
7420
  if (W.key === " " || W.key === "Spacebar" || W.key === "Enter") {
7421
- W.preventDefault(), de ? (w.value = null, A.value = `Dropped ${_(M)}, ${R + 1} of ${l.columns.length}.`) : (w.value = { id: M.id, origin: R }, A.value = `Picked up the ${_(M)} column. Use the left and right arrows to move it.`);
7421
+ W.preventDefault(), de ? (k.value = null, T.value = `Dropped ${_(M)}, ${R + 1} of ${l.columns.length}.`) : (k.value = { id: M.id, origin: R }, T.value = `Picked up the ${_(M)} column. Use the left and right arrows to move it.`);
7422
7422
  return;
7423
7423
  }
7424
7424
  if (!de) return;
7425
7425
  if (W.key === "Escape") {
7426
7426
  W.preventDefault();
7427
- const K = w.value;
7428
- w.value = null, K && X(l.columns.indexOf(M), K.origin, "keyboard"), A.value = "Move cancelled.", k("data-column-grip", M.id);
7427
+ const K = k.value;
7428
+ k.value = null, K && X(l.columns.indexOf(M), K.origin, "keyboard"), T.value = "Move cancelled.", $("data-column-grip", M.id);
7429
7429
  return;
7430
7430
  }
7431
7431
  const he = { ArrowLeft: -1, ArrowRight: 1 }[W.key];
7432
7432
  if (he === void 0) return;
7433
7433
  W.preventDefault();
7434
7434
  const We = l.columns.indexOf(M);
7435
- X(We, We + he, "keyboard"), A.value = `${_(M)} is now ${l.columns.indexOf(M) + 1} of ${l.columns.length}.`, k("data-column-grip", M.id);
7435
+ X(We, We + he, "keyboard"), T.value = `${_(M)} is now ${l.columns.indexOf(M) + 1} of ${l.columns.length}.`, $("data-column-grip", M.id);
7436
7436
  }
7437
7437
  const le = c(() => ["wx-kanban", `wx-kanban--${l.size}`]);
7438
- return a({ move: x, moveColumn: X, toggle: $ }), (W, M) => (r(), f("div", Ce({
7438
+ return a({ move: x, moveColumn: X, toggle: A }), (W, M) => (r(), f("div", Ce({
7439
7439
  ref_key: "root",
7440
7440
  ref: i
7441
7441
  }, W.$attrs, {
@@ -7481,7 +7481,7 @@ const Fl = [
7481
7481
  type: "button",
7482
7482
  "aria-expanded": !1,
7483
7483
  "aria-label": `Expand ${_(R)}`,
7484
- onClick: (ne) => $(R)
7484
+ onClick: (ne) => A(R)
7485
7485
  }, [
7486
7486
  U(pe, { name: "chevron-right" })
7487
7487
  ], 8, Mv),
@@ -7512,7 +7512,7 @@ const Fl = [
7512
7512
  type: "button",
7513
7513
  "aria-expanded": !0,
7514
7514
  "aria-label": `Collapse ${_(R)}`,
7515
- onClick: (ne) => $(R)
7515
+ onClick: (ne) => A(R)
7516
7516
  }, [
7517
7517
  U(pe, { name: "chevron-left" })
7518
7518
  ], 8, Tv)) : y("", !0),
@@ -7549,7 +7549,7 @@ const Fl = [
7549
7549
  "onUpdate:modelValue": (ne) => R.items = ne,
7550
7550
  class: "wx-kanban__list",
7551
7551
  "data-column-id": R.id,
7552
- group: T(R),
7552
+ group: w(R),
7553
7553
  disabled: p(R),
7554
7554
  handle: e.handle,
7555
7555
  animation: 160,
@@ -7628,7 +7628,7 @@ const Fl = [
7628
7628
  ]),
7629
7629
  _: 3
7630
7630
  }, 8, ["modelValue", "group", "disabled"]),
7631
- S("div", Ov, F(A.value), 1)
7631
+ S("div", Ov, F(T.value), 1)
7632
7632
  ], 16, _v));
7633
7633
  }
7634
7634
  }), Vv = /* @__PURE__ */ ue(Pv, [["__scopeId", "data-v-7df49aa5"]]), Rv = {
@@ -7774,7 +7774,7 @@ const Fl = [
7774
7774
  u.value ? y("", !0) : (r(), q(Ll, {
7775
7775
  key: 2,
7776
7776
  open: t.value,
7777
- "onUpdate:open": _[0] || (_[0] = ($) => t.value = $),
7777
+ "onUpdate:open": _[0] || (_[0] = (A) => t.value = A),
7778
7778
  side: "right",
7779
7779
  size: "100%",
7780
7780
  closable: !1,
@@ -7792,7 +7792,7 @@ const Fl = [
7792
7792
  B.$slots.filters && !s.value ? (r(), q(Ll, {
7793
7793
  key: 3,
7794
7794
  open: l.value,
7795
- "onUpdate:open": _[1] || (_[1] = ($) => l.value = $),
7795
+ "onUpdate:open": _[1] || (_[1] = (A) => l.value = A),
7796
7796
  side: "left",
7797
7797
  size: e.filtersWidth,
7798
7798
  title: e.filtersTitle,
@@ -7967,11 +7967,11 @@ const am = ["disabled", "title"], lm = {
7967
7967
  "is-disabled": t.disabled
7968
7968
  }
7969
7969
  ]);
7970
- function $(x) {
7970
+ function A(x) {
7971
7971
  t.disabled || (v.value ? m.value = x : n?.setOpen(t.value, x, o.ancestors), l("toggle", x));
7972
7972
  }
7973
- function T() {
7974
- $(!p.value);
7973
+ function w() {
7974
+ A(!p.value);
7975
7975
  }
7976
7976
  return (x, H) => (r(), f("li", {
7977
7977
  class: ee(["wx-submenu", { "is-open": p.value }])
@@ -7984,7 +7984,7 @@ const am = ["disabled", "title"], lm = {
7984
7984
  align: "start",
7985
7985
  disabled: e.disabled,
7986
7986
  "close-on-click": !1,
7987
- "onUpdate:open": $
7987
+ "onUpdate:open": A
7988
7988
  }, {
7989
7989
  trigger: P(() => [
7990
7990
  S("button", {
@@ -8028,7 +8028,7 @@ const am = ["disabled", "title"], lm = {
8028
8028
  style: be({ "--wx-menu-depth": g(o).depth }),
8029
8029
  "aria-expanded": p.value,
8030
8030
  "aria-controls": g(i),
8031
- onClick: T
8031
+ onClick: w
8032
8032
  }, [
8033
8033
  e.icon || x.$slots.icon ? (r(), f("span", sm, [
8034
8034
  C(x.$slots, "icon", {}, () => [
@@ -8081,9 +8081,9 @@ const am = ["disabled", "title"], lm = {
8081
8081
  }),
8082
8082
  emits: /* @__PURE__ */ fe(["select"], ["update:modelValue", "update:open"]),
8083
8083
  setup(e, { emit: a }) {
8084
- const t = e, l = a, n = xe(e, "modelValue"), o = xe(e, "open"), i = ct(), s = G(null), u = Ma(s), d = c(() => t.mode === "horizontal" && t.overflow === "menu"), v = G(Number.POSITIVE_INFINITY), m = G(!1), p = G(0), h = G(!1), B = c(() => d.value ? Jl(i.default?.() ?? []) : []), _ = c(() => B.value.slice(0, v.value)), $ = c(() => B.value.slice(v.value));
8085
- function T(A) {
8086
- const E = Number.parseFloat(A);
8084
+ const t = e, l = a, n = xe(e, "modelValue"), o = xe(e, "open"), i = ct(), s = G(null), u = Ma(s), d = c(() => t.mode === "horizontal" && t.overflow === "menu"), v = G(Number.POSITIVE_INFINITY), m = G(!1), p = G(0), h = G(!1), B = c(() => d.value ? Jl(i.default?.() ?? []) : []), _ = c(() => B.value.slice(0, v.value)), A = c(() => B.value.slice(v.value));
8085
+ function w(T) {
8086
+ const E = Number.parseFloat(T);
8087
8087
  return Number.isFinite(E) ? E : 0;
8088
8088
  }
8089
8089
  async function x() {
@@ -8092,12 +8092,12 @@ const am = ["disabled", "title"], lm = {
8092
8092
  return;
8093
8093
  }
8094
8094
  p.value += 1, m.value = !0, v.value = Number.POSITIVE_INFINITY, await qe();
8095
- const A = s.value;
8096
- if (!A) {
8095
+ const T = s.value;
8096
+ if (!T) {
8097
8097
  m.value = !1;
8098
8098
  return;
8099
8099
  }
8100
- const E = getComputedStyle(A), D = T(E.columnGap), b = A.clientWidth - T(E.paddingLeft) - T(E.paddingRight), k = [...A.children], V = k.at(-1), I = k.slice(0, -1).map((O) => O.getBoundingClientRect().width);
8100
+ const E = getComputedStyle(T), D = w(E.columnGap), b = T.clientWidth - w(E.paddingLeft) - w(E.paddingRight), $ = [...T.children], V = $.at(-1), I = $.slice(0, -1).map((O) => O.getBoundingClientRect().width);
8101
8101
  if (I.reduce((O, le, W) => O + le + (W ? D : 0), 0) <= b)
8102
8102
  v.value = I.length;
8103
8103
  else {
@@ -8123,18 +8123,18 @@ const am = ["disabled", "title"], lm = {
8123
8123
  });
8124
8124
  const H = wa(/* @__PURE__ */ new Map()), N = /* @__PURE__ */ new Map(), X = c(() => t.collapsed && t.mode === "vertical"), j = c(() => {
8125
8125
  if (n.value === void 0) return [];
8126
- const A = H.get(n.value);
8127
- if (A)
8128
- return N.set(n.value, A), A;
8126
+ const T = H.get(n.value);
8127
+ if (T)
8128
+ return N.set(n.value, T), T;
8129
8129
  const E = N.get(n.value) ?? [];
8130
8130
  return h.value ? [Fn, ...E] : E;
8131
8131
  });
8132
- function Y(A, E, D) {
8132
+ function Y(T, E, D) {
8133
8133
  if (!E) {
8134
- o.value = o.value.filter((b) => b !== A);
8134
+ o.value = o.value.filter((b) => b !== T);
8135
8135
  return;
8136
8136
  }
8137
- o.value = t.accordion ? [...D, A] : [...o.value.filter((b) => b !== A), A];
8137
+ o.value = t.accordion ? [...D, T] : [...o.value.filter((b) => b !== T), T];
8138
8138
  }
8139
8139
  lt(ei, {
8140
8140
  mode: c(() => t.mode),
@@ -8142,27 +8142,27 @@ const am = ["disabled", "title"], lm = {
8142
8142
  collapsed: X,
8143
8143
  active: c(() => n.value),
8144
8144
  trail: j,
8145
- select: (A, E) => {
8146
- n.value = A, l("select", A, E);
8145
+ select: (T, E) => {
8146
+ n.value = T, l("select", T, E);
8147
8147
  },
8148
- isOpen: (A) => o.value.includes(A),
8148
+ isOpen: (T) => o.value.includes(T),
8149
8149
  setOpen: Y,
8150
8150
  closeSignal: c(() => p.value),
8151
8151
  closeFlyouts: () => {
8152
8152
  p.value += 1;
8153
8153
  },
8154
- register: (A, E) => H.set(A, E),
8155
- unregister: (A) => H.delete(A)
8154
+ register: (T, E) => H.set(T, E),
8155
+ unregister: (T) => H.delete(T)
8156
8156
  }), Se(
8157
8157
  [j, () => t.autoExpand],
8158
- ([A, E]) => {
8159
- if (!E || A.length === 0) return;
8160
- const D = A.filter((b) => !o.value.includes(b));
8161
- D.length !== 0 && (o.value = t.accordion ? [...A] : [...o.value, ...D]);
8158
+ ([T, E]) => {
8159
+ if (!E || T.length === 0) return;
8160
+ const D = T.filter((b) => !o.value.includes(b));
8161
+ D.length !== 0 && (o.value = t.accordion ? [...T] : [...o.value, ...D]);
8162
8162
  },
8163
8163
  { immediate: !0 }
8164
8164
  );
8165
- const w = c(() => [
8165
+ const k = c(() => [
8166
8166
  "wx-menu",
8167
8167
  `wx-menu--${t.mode}`,
8168
8168
  `wx-menu--${t.size}`,
@@ -8171,10 +8171,10 @@ const am = ["disabled", "title"], lm = {
8171
8171
  "wx-menu--overflow": d.value
8172
8172
  }
8173
8173
  ]);
8174
- return (A, E) => (r(), f("ul", {
8174
+ return (T, E) => (r(), f("ul", {
8175
8175
  ref_key: "list",
8176
8176
  ref: s,
8177
- class: ee(w.value),
8177
+ class: ee(k.value),
8178
8178
  "aria-label": e.label
8179
8179
  }, [
8180
8180
  d.value ? (r(), f(ye, { key: 0 }, [
@@ -8184,14 +8184,14 @@ const am = ["disabled", "title"], lm = {
8184
8184
  class: "wx-menu__overflow",
8185
8185
  icon: "more-horizontal",
8186
8186
  title: e.overflowTitle,
8187
- hidden: $.value.length === 0 && !m.value
8187
+ hidden: A.value.length === 0 && !m.value
8188
8188
  }, {
8189
8189
  default: P(() => [
8190
- U(g(Wl), { nodes: $.value }, null, 8, ["nodes"])
8190
+ U(g(Wl), { nodes: A.value }, null, 8, ["nodes"])
8191
8191
  ]),
8192
8192
  _: 1
8193
8193
  }, 8, ["title", "hidden"])
8194
- ], 64)) : C(A.$slots, "default", {}, void 0, !0, 1)
8194
+ ], 64)) : C(T.$slots, "default", {}, void 0, !0, 1)
8195
8195
  ], 10, fm));
8196
8196
  }
8197
8197
  }), mm = /* @__PURE__ */ ue(vm, [["__scopeId", "data-v-0a56dd64"]]), hm = {
@@ -8328,17 +8328,17 @@ const am = ["disabled", "title"], lm = {
8328
8328
  emits: /* @__PURE__ */ fe(["change"], ["update:page", "update:perPage"]),
8329
8329
  setup(e, { emit: a }) {
8330
8330
  const t = e, l = a, n = xe(e, "page"), o = xe(e, "perPage"), i = c(() => o.value ?? t.paginator?.per_page ?? 15), s = c(() => t.total ?? t.paginator?.total ?? 0), u = c(() => t.lastPage !== void 0 ? Math.max(1, t.lastPage) : t.paginator ? Math.max(1, t.paginator.last_page) : Math.max(1, Math.ceil(s.value / i.value))), d = c(() => {
8331
- const $ = n.value ?? t.paginator?.current_page ?? 1;
8332
- return Math.min(Math.max(1, $), u.value);
8331
+ const A = n.value ?? t.paginator?.current_page ?? 1;
8332
+ return Math.min(Math.max(1, A), u.value);
8333
8333
  }), v = c(() => t.paginator ? t.paginator.from : s.value === 0 ? null : (d.value - 1) * i.value + 1), m = c(() => t.paginator ? t.paginator.to : s.value === 0 ? null : Math.min(s.value, d.value * i.value)), p = c(() => {
8334
- const $ = u.value, T = d.value, x = t.siblings, H = /* @__PURE__ */ new Set([1, $]);
8335
- for (let Y = T - x; Y <= T + x; Y++)
8336
- Y >= 1 && Y <= $ && H.add(Y);
8337
- const N = [...H].sort((Y, w) => Y - w), X = [];
8334
+ const A = u.value, w = d.value, x = t.siblings, H = /* @__PURE__ */ new Set([1, A]);
8335
+ for (let Y = w - x; Y <= w + x; Y++)
8336
+ Y >= 1 && Y <= A && H.add(Y);
8337
+ const N = [...H].sort((Y, k) => Y - k), X = [];
8338
8338
  let j = 0;
8339
8339
  for (const Y of N) {
8340
- const w = Y - j;
8341
- j && w === 2 ? X.push({ type: "page", value: Y - 1 }) : j && w > 2 && X.push({ type: "gap", value: `gap-${Y}` }), X.push({ type: "page", value: Y }), j = Y;
8340
+ const k = Y - j;
8341
+ j && k === 2 ? X.push({ type: "page", value: Y - 1 }) : j && k > 2 && X.push({ type: "gap", value: `gap-${Y}` }), X.push({ type: "page", value: Y }), j = Y;
8342
8342
  }
8343
8343
  return X;
8344
8344
  }), h = c(() => [
@@ -8346,20 +8346,20 @@ const am = ["disabled", "title"], lm = {
8346
8346
  `wx-pagination--${t.size}`,
8347
8347
  { "is-disabled": t.disabled }
8348
8348
  ]);
8349
- function B($) {
8350
- const T = Math.min(Math.max(1, $), u.value);
8351
- t.disabled || T === d.value || (n.value = T, l("change", { page: T, perPage: i.value }));
8349
+ function B(A) {
8350
+ const w = Math.min(Math.max(1, A), u.value);
8351
+ t.disabled || w === d.value || (n.value = w, l("change", { page: w, perPage: i.value }));
8352
8352
  }
8353
- function _($) {
8354
- const T = Number($.target.value);
8355
- !Number.isFinite(T) || T === i.value || (o.value = T, n.value = 1, l("change", { page: 1, perPage: T }));
8353
+ function _(A) {
8354
+ const w = Number(A.target.value);
8355
+ !Number.isFinite(w) || w === i.value || (o.value = w, n.value = 1, l("change", { page: 1, perPage: w }));
8356
8356
  }
8357
- return ($, T) => (r(), f("nav", {
8357
+ return (A, w) => (r(), f("nav", {
8358
8358
  class: ee(h.value),
8359
8359
  "aria-label": e.ariaLabel
8360
8360
  }, [
8361
8361
  e.showTotal ? (r(), f("p", Mm, [
8362
- C($.$slots, "total", {
8362
+ C(A.$slots, "total", {
8363
8363
  from: v.value,
8364
8364
  to: m.value,
8365
8365
  total: s.value
@@ -8373,7 +8373,7 @@ const am = ["disabled", "title"], lm = {
8373
8373
  ])) : y("", !0),
8374
8374
  S("div", Sm, [
8375
8375
  e.perPageOptions.length ? (r(), f("label", Bm, [
8376
- T[2] || (T[2] = S("span", { class: "wx-pagination__per-page-label" }, "Per page", -1)),
8376
+ w[2] || (w[2] = S("span", { class: "wx-pagination__per-page-label" }, "Per page", -1)),
8377
8377
  S("select", {
8378
8378
  class: "wx-pagination__select",
8379
8379
  value: i.value,
@@ -8393,8 +8393,8 @@ const am = ["disabled", "title"], lm = {
8393
8393
  type: "button",
8394
8394
  disabled: e.disabled || d.value <= 1,
8395
8395
  "aria-label": "Previous page",
8396
- onClick: T[0] || (T[0] = (x) => B(d.value - 1))
8397
- }, [...T[3] || (T[3] = [
8396
+ onClick: w[0] || (w[0] = (x) => B(d.value - 1))
8397
+ }, [...w[3] || (w[3] = [
8398
8398
  S("svg", {
8399
8399
  viewBox: "0 0 8 12",
8400
8400
  "aria-hidden": "true"
@@ -8422,8 +8422,8 @@ const am = ["disabled", "title"], lm = {
8422
8422
  type: "button",
8423
8423
  disabled: e.disabled || d.value >= u.value,
8424
8424
  "aria-label": "Next page",
8425
- onClick: T[1] || (T[1] = (x) => B(d.value + 1))
8426
- }, [...T[4] || (T[4] = [
8425
+ onClick: w[1] || (w[1] = (x) => B(d.value + 1))
8426
+ }, [...w[4] || (w[4] = [
8427
8427
  S("svg", {
8428
8428
  viewBox: "0 0 8 12",
8429
8429
  "aria-hidden": "true"
@@ -8677,8 +8677,8 @@ const am = ["disabled", "title"], lm = {
8677
8677
  emits: /* @__PURE__ */ fe(["change"], ["update:modelValue"]),
8678
8678
  setup(e, { emit: a }) {
8679
8679
  const t = e, l = a, n = xe(e, "modelValue"), o = Xe(t), i = G(null), s = c(() => !o.disabled.value && !t.readonly), u = c(() => i.value ?? n.value ?? 0), d = c(
8680
- () => Array.from({ length: t.max }, ($, T) => {
8681
- const x = T + 1, H = Math.min(Math.max(u.value - T, 0), 1);
8680
+ () => Array.from({ length: t.max }, (A, w) => {
8681
+ const x = w + 1, H = Math.min(Math.max(u.value - w, 0), 1);
8682
8682
  return { position: x, full: H >= 1, half: H > 0 && H < 1 };
8683
8683
  })
8684
8684
  ), v = c(() => [
@@ -8686,29 +8686,29 @@ const am = ["disabled", "title"], lm = {
8686
8686
  `wx-rate--${o.size.value}`,
8687
8687
  { "is-disabled": o.disabled.value, "is-readonly": t.readonly }
8688
8688
  ]);
8689
- function m($, T) {
8690
- if (!t.allowHalf) return $;
8691
- const x = T.currentTarget, { left: H, width: N } = x.getBoundingClientRect();
8692
- return T.clientX - H < N / 2 ? $ - 0.5 : $;
8689
+ function m(A, w) {
8690
+ if (!t.allowHalf) return A;
8691
+ const x = w.currentTarget, { left: H, width: N } = x.getBoundingClientRect();
8692
+ return w.clientX - H < N / 2 ? A - 0.5 : A;
8693
8693
  }
8694
- function p($, T = !1) {
8695
- const x = T && t.clearable && n.value === $ ? 0 : $;
8694
+ function p(A, w = !1) {
8695
+ const x = w && t.clearable && n.value === A ? 0 : A;
8696
8696
  x !== n.value && (n.value = x, l("change", x));
8697
8697
  }
8698
- function h($, T) {
8699
- s.value && p(m($, T), !0);
8698
+ function h(A, w) {
8699
+ s.value && p(m(A, w), !0);
8700
8700
  }
8701
- function B($, T) {
8702
- s.value && (i.value = m($, T));
8701
+ function B(A, w) {
8702
+ s.value && (i.value = m(A, w));
8703
8703
  }
8704
- function _($) {
8704
+ function _(A) {
8705
8705
  if (!s.value) return;
8706
- const T = t.allowHalf ? 0.5 : 1, x = n.value ?? 0;
8707
- $.key === "ArrowRight" || $.key === "ArrowUp" ? ($.preventDefault(), p(Math.min(x + T, t.max))) : $.key === "ArrowLeft" || $.key === "ArrowDown" ? ($.preventDefault(), p(Math.max(x - T, 0))) : $.key === "Home" ? ($.preventDefault(), p(0)) : $.key === "End" && ($.preventDefault(), p(t.max));
8706
+ const w = t.allowHalf ? 0.5 : 1, x = n.value ?? 0;
8707
+ A.key === "ArrowRight" || A.key === "ArrowUp" ? (A.preventDefault(), p(Math.min(x + w, t.max))) : A.key === "ArrowLeft" || A.key === "ArrowDown" ? (A.preventDefault(), p(Math.max(x - w, 0))) : A.key === "Home" ? (A.preventDefault(), p(0)) : A.key === "End" && (A.preventDefault(), p(t.max));
8708
8708
  }
8709
- return ($, T) => (r(), f("div", Ce({
8709
+ return (A, w) => (r(), f("div", Ce({
8710
8710
  id: g(o).id.value
8711
- }, $.$attrs, {
8711
+ }, A.$attrs, {
8712
8712
  class: v.value,
8713
8713
  role: "slider",
8714
8714
  tabindex: s.value ? 0 : -1,
@@ -8720,14 +8720,14 @@ const am = ["disabled", "title"], lm = {
8720
8720
  "aria-readonly": e.readonly || void 0,
8721
8721
  "aria-disabled": g(o).disabled.value || void 0,
8722
8722
  onKeydown: _,
8723
- onMouseleave: T[0] || (T[0] = (x) => i.value = null)
8723
+ onMouseleave: w[0] || (w[0] = (x) => i.value = null)
8724
8724
  }), [
8725
8725
  (r(!0), f(ye, null, Te(d.value, (x) => (r(), f("span", {
8726
8726
  key: x.position,
8727
8727
  class: ee(["wx-rate__star", { "is-full": x.full, "is-half": x.half }]),
8728
8728
  onClick: (H) => h(x.position, H),
8729
8729
  onMousemove: (H) => B(x.position, H)
8730
- }, [...T[1] || (T[1] = [
8730
+ }, [...w[1] || (w[1] = [
8731
8731
  S("svg", {
8732
8732
  viewBox: "0 0 24 24",
8733
8733
  "aria-hidden": "true"
@@ -9001,11 +9001,11 @@ const am = ["disabled", "title"], lm = {
9001
9001
  Fs.configure({ nocookie: !0, width: 640, height: 360 }),
9002
9002
  Hs.configure({
9003
9003
  allowedMimeTypes: l.accept,
9004
- onDrop: (b, k, V) => {
9005
- x(k, V);
9004
+ onDrop: (b, $, V) => {
9005
+ x($, V);
9006
9006
  },
9007
- onPaste: (b, k) => {
9008
- x(k);
9007
+ onPaste: (b, $) => {
9008
+ x($);
9009
9009
  }
9010
9010
  })
9011
9011
  ],
@@ -9021,10 +9021,10 @@ const am = ["disabled", "title"], lm = {
9021
9021
  }
9022
9022
  });
9023
9023
  Se(o, (b) => {
9024
- const k = h.value;
9025
- k && (b ?? "") !== p() && k.commands.setContent(b ?? "", { emitUpdate: !1 });
9024
+ const $ = h.value;
9025
+ $ && (b ?? "") !== p() && $.commands.setContent(b ?? "", { emitUpdate: !1 });
9026
9026
  }), Se(m, (b) => h.value?.setEditable(b));
9027
- const B = c(() => h.value?.isEmpty ?? !0), _ = c(() => h.value?.isActive("table") ?? !1), $ = c(() => [
9027
+ const B = c(() => h.value?.isEmpty ?? !0), _ = c(() => h.value?.isActive("table") ?? !1), A = c(() => [
9028
9028
  "wx-rich-text",
9029
9029
  `wx-rich-text--${i.size.value}`,
9030
9030
  {
@@ -9034,19 +9034,19 @@ const am = ["disabled", "title"], lm = {
9034
9034
  "is-readonly": l.readonly
9035
9035
  }
9036
9036
  ]);
9037
- function T(b, k, V) {
9037
+ function w(b, $, V) {
9038
9038
  const I = h.value;
9039
9039
  if (!I) return;
9040
9040
  const L = V ?? I.state.selection.anchor;
9041
- I.chain().focus().insertContentAt(L, { type: "image", attrs: { src: b, alt: k } }).run();
9041
+ I.chain().focus().insertContentAt(L, { type: "image", attrs: { src: b, alt: $ } }).run();
9042
9042
  }
9043
- async function x(b, k) {
9043
+ async function x(b, $) {
9044
9044
  if (l.upload)
9045
9045
  for (const V of b) {
9046
9046
  u.value += 1;
9047
9047
  try {
9048
9048
  const I = await l.upload(V);
9049
- T(I.url, I.alt, k);
9049
+ w(I.url, I.alt, $);
9050
9050
  } catch (I) {
9051
9051
  n("uploadError", I, V);
9052
9052
  } finally {
@@ -9057,47 +9057,47 @@ const am = ["disabled", "title"], lm = {
9057
9057
  async function H() {
9058
9058
  if (l.pickImage) {
9059
9059
  const b = await l.pickImage();
9060
- b && T(b);
9060
+ b && w(b);
9061
9061
  return;
9062
9062
  }
9063
9063
  d.value?.click();
9064
9064
  }
9065
9065
  function N(b) {
9066
- const k = b.target, V = Array.from(k.files ?? []);
9067
- k.value = "", x(V);
9066
+ const $ = b.target, V = Array.from($.files ?? []);
9067
+ $.value = "", x(V);
9068
9068
  }
9069
9069
  function X(b) {
9070
- const k = b === "link" ? h.value?.getAttributes("link").href ?? "" : "";
9071
- v.value = { kind: b, value: String(k) };
9070
+ const $ = b === "link" ? h.value?.getAttributes("link").href ?? "" : "";
9071
+ v.value = { kind: b, value: String($) };
9072
9072
  }
9073
9073
  function j() {
9074
- const b = h.value, k = v.value;
9075
- if (!b || !k) return;
9076
- const V = k.value.trim();
9077
- k.kind === "link" ? V ? b.chain().focus().extendMarkRange("link").setLink({ href: V }).run() : b.chain().focus().extendMarkRange("link").unsetLink().run() : V && b.commands.setYoutubeVideo({ src: V }), v.value = null;
9074
+ const b = h.value, $ = v.value;
9075
+ if (!b || !$) return;
9076
+ const V = $.value.trim();
9077
+ $.kind === "link" ? V ? b.chain().focus().extendMarkRange("link").setLink({ href: V }).run() : b.chain().focus().extendMarkRange("link").unsetLink().run() : V && b.commands.setYoutubeVideo({ src: V }), v.value = null;
9078
9078
  }
9079
9079
  function Y(b) {
9080
9080
  return b === "image" ? !!(l.upload || l.pickImage) : !0;
9081
9081
  }
9082
- const w = c(() => l.tools.filter(Y));
9083
- function A(b) {
9084
- const k = h.value;
9085
- if (!k) return !1;
9082
+ const k = c(() => l.tools.filter(Y));
9083
+ function T(b) {
9084
+ const $ = h.value;
9085
+ if (!$) return !1;
9086
9086
  switch (b) {
9087
9087
  case "h2":
9088
- return k.isActive("heading", { level: 2 });
9088
+ return $.isActive("heading", { level: 2 });
9089
9089
  case "h3":
9090
- return k.isActive("heading", { level: 3 });
9090
+ return $.isActive("heading", { level: 3 });
9091
9091
  case "h4":
9092
- return k.isActive("heading", { level: 4 });
9092
+ return $.isActive("heading", { level: 4 });
9093
9093
  default:
9094
- return k.isActive(b);
9094
+ return $.isActive(b);
9095
9095
  }
9096
9096
  }
9097
9097
  function E(b) {
9098
- const k = h.value;
9099
- if (!k) return;
9100
- const V = k.chain().focus();
9098
+ const $ = h.value;
9099
+ if (!$) return;
9100
+ const V = $.chain().focus();
9101
9101
  switch (b) {
9102
9102
  case "bold":
9103
9103
  V.toggleBold().run();
@@ -9153,23 +9153,23 @@ const am = ["disabled", "title"], lm = {
9153
9153
  }
9154
9154
  }
9155
9155
  function D(b) {
9156
- const k = h.value;
9157
- if (!k) return;
9158
- k.chain().focus()[b]().run();
9156
+ const $ = h.value;
9157
+ if (!$) return;
9158
+ $.chain().focus()[b]().run();
9159
9159
  }
9160
9160
  return a({
9161
9161
  editor: h,
9162
9162
  focus: () => h.value?.commands.focus(),
9163
9163
  clear: () => h.value?.commands.clearContent(!0)
9164
- }), (b, k) => (r(), f("div", {
9165
- class: ee($.value)
9164
+ }), (b, $) => (r(), f("div", {
9165
+ class: ee(A.value)
9166
9166
  }, [
9167
9167
  S("div", {
9168
9168
  class: "wx-rich-text__toolbar",
9169
9169
  role: "toolbar",
9170
9170
  "aria-label": e.ariaLabel ?? "Text formatting"
9171
9171
  }, [
9172
- (r(!0), f(ye, null, Te(w.value, (V, I) => (r(), f(ye, {
9172
+ (r(!0), f(ye, null, Te(k.value, (V, I) => (r(), f(ye, {
9173
9173
  key: `${V}-${I}`
9174
9174
  }, [
9175
9175
  V === "divider" ? (r(), f("span", xh)) : (r(), q(ja, {
@@ -9177,7 +9177,7 @@ const am = ["disabled", "title"], lm = {
9177
9177
  icon: g(zl)[V].icon,
9178
9178
  text: g(zl)[V].text,
9179
9179
  label: g(zl)[V].label,
9180
- active: A(V),
9180
+ active: T(V),
9181
9181
  disabled: !m.value,
9182
9182
  onClick: (L) => E(V)
9183
9183
  }, null, 8, ["icon", "text", "label", "active", "disabled", "onClick"]))
@@ -9203,11 +9203,11 @@ const am = ["disabled", "title"], lm = {
9203
9203
  }, F(v.value.kind === "link" ? "Link address" : "YouTube URL"), 9, $h),
9204
9204
  Ul(S("input", {
9205
9205
  id: `${g(i).id.value}-prompt`,
9206
- "onUpdate:modelValue": k[0] || (k[0] = (V) => v.value.value = V),
9206
+ "onUpdate:modelValue": $[0] || ($[0] = (V) => v.value.value = V),
9207
9207
  class: "wx-rich-text__prompt-input",
9208
9208
  type: "url",
9209
9209
  placeholder: v.value.kind === "link" ? "https://example.com" : "https://youtu.be/…",
9210
- onKeydown: k[1] || (k[1] = Zn((V) => v.value = null, ["esc"]))
9210
+ onKeydown: $[1] || ($[1] = Zn((V) => v.value = null, ["esc"]))
9211
9211
  }, null, 40, _h), [
9212
9212
  [Qn, v.value.value]
9213
9213
  ]),
@@ -9219,7 +9219,7 @@ const am = ["disabled", "title"], lm = {
9219
9219
  U(ja, {
9220
9220
  icon: "close",
9221
9221
  label: "Cancel",
9222
- onClick: k[2] || (k[2] = (V) => v.value = null)
9222
+ onClick: $[2] || ($[2] = (V) => v.value = null)
9223
9223
  })
9224
9224
  ], 32)) : y("", !0),
9225
9225
  S("div", {
@@ -9369,7 +9369,7 @@ const am = ["disabled", "title"], lm = {
9369
9369
  return j == null ? "" : m(j);
9370
9370
  }), B = c(
9371
9371
  () => n.multiple ? p.value.length > 0 : i.value !== null && i.value !== void 0 && i.value !== ""
9372
- ), _ = c(() => n.clearable && !s.disabled.value && B.value), $ = c(() => [
9372
+ ), _ = c(() => n.clearable && !s.disabled.value && B.value), A = c(() => [
9373
9373
  "wx-select",
9374
9374
  `wx-select--${s.size.value}`,
9375
9375
  {
@@ -9392,7 +9392,7 @@ const am = ["disabled", "title"], lm = {
9392
9392
  }
9393
9393
  d.value = n.multiple ? "" : h.value, o("close");
9394
9394
  });
9395
- function T() {
9395
+ function w() {
9396
9396
  s.disabled.value || (u.value = !0);
9397
9397
  }
9398
9398
  function x(j) {
@@ -9405,41 +9405,41 @@ const am = ["disabled", "title"], lm = {
9405
9405
  i.value = n.multiple ? [] : null, o("change", i.value), o("clear");
9406
9406
  }
9407
9407
  function X(j) {
9408
- const Y = (i.value ?? []).filter((w) => w !== j);
9408
+ const Y = (i.value ?? []).filter((k) => k !== j);
9409
9409
  i.value = Y, o("change", Y);
9410
9410
  }
9411
9411
  return (j, Y) => (r(), q(g(ps), Ce({
9412
9412
  modelValue: v.value,
9413
- "onUpdate:modelValue": Y[1] || (Y[1] = (w) => v.value = w),
9413
+ "onUpdate:modelValue": Y[1] || (Y[1] = (k) => v.value = k),
9414
9414
  open: u.value,
9415
- "onUpdate:open": Y[2] || (Y[2] = (w) => u.value = w),
9415
+ "onUpdate:open": Y[2] || (Y[2] = (k) => u.value = k),
9416
9416
  multiple: e.multiple,
9417
9417
  disabled: g(s).disabled.value,
9418
9418
  name: e.name,
9419
9419
  "ignore-filter": !e.filterable,
9420
9420
  "open-on-click": !0,
9421
- class: $.value
9421
+ class: A.value
9422
9422
  }, g(t), { as: "div" }), {
9423
9423
  default: P(() => [
9424
9424
  U(g(bs), {
9425
9425
  class: "wx-select__anchor",
9426
9426
  as: "div",
9427
- onClick: T
9427
+ onClick: w
9428
9428
  }, {
9429
9429
  default: P(() => [
9430
9430
  S("div", Wh, [
9431
- e.multiple ? (r(!0), f(ye, { key: 0 }, Te(p.value, (w) => (r(), f("span", {
9432
- key: String(w.value),
9431
+ e.multiple ? (r(!0), f(ye, { key: 0 }, Te(p.value, (k) => (r(), f("span", {
9432
+ key: String(k.value),
9433
9433
  class: "wx-select__tag"
9434
9434
  }, [
9435
- se(F(w.label) + " ", 1),
9435
+ se(F(k.label) + " ", 1),
9436
9436
  g(s).disabled.value ? y("", !0) : (r(), f("button", {
9437
9437
  key: 0,
9438
9438
  class: "wx-select__tag-remove",
9439
9439
  type: "button",
9440
9440
  tabindex: "-1",
9441
- "aria-label": `Remove ${w.label}`,
9442
- onClick: Le((A) => X(w.value), ["stop"])
9441
+ "aria-label": `Remove ${k.label}`,
9442
+ onClick: Le((T) => X(k.value), ["stop"])
9443
9443
  }, " ✕ ", 8, Ih))
9444
9444
  ]))), 128)) : y("", !0),
9445
9445
  e.filterable ? (r(), q(g(gs), Ce({
@@ -9447,7 +9447,7 @@ const am = ["disabled", "title"], lm = {
9447
9447
  id: g(s).id.value
9448
9448
  }, g(l), {
9449
9449
  modelValue: d.value,
9450
- "onUpdate:modelValue": Y[0] || (Y[0] = (w) => d.value = w),
9450
+ "onUpdate:modelValue": Y[0] || (Y[0] = (k) => d.value = k),
9451
9451
  class: "wx-select__input",
9452
9452
  placeholder: e.placeholder,
9453
9453
  "aria-label": e.ariaLabel,
@@ -9513,14 +9513,14 @@ const am = ["disabled", "title"], lm = {
9513
9513
  _: 1
9514
9514
  }),
9515
9515
  C(j.$slots, "default", {}, () => [
9516
- (r(!0), f(ye, null, Te(e.options, (w) => (r(), q(g(_s), {
9517
- key: String(w.value),
9516
+ (r(!0), f(ye, null, Te(e.options, (k) => (r(), q(g(_s), {
9517
+ key: String(k.value),
9518
9518
  class: "wx-select__option",
9519
- value: w.value,
9520
- disabled: w.disabled
9519
+ value: k.value,
9520
+ disabled: k.disabled
9521
9521
  }, {
9522
9522
  default: P(() => [
9523
- S("span", Oh, F(w.label), 1),
9523
+ S("span", Oh, F(k.label), 1),
9524
9524
  U(g(Cs), { class: "wx-select__check" }, {
9525
9525
  default: P(() => [...Y[4] || (Y[4] = [
9526
9526
  S("svg", {
@@ -9597,8 +9597,8 @@ const ii = {
9597
9597
  function v(Q) {
9598
9598
  return d.value.has(Q);
9599
9599
  }
9600
- let m = -1, p = !1, h = !0, B = null, _ = 0, $ = 0, T = 0, x = 0, H = 0, N = 0, X = 0, j = 0, Y = [], w = [], A = "replace", E = -1, D = null, b = 0;
9601
- function k() {
9600
+ let m = -1, p = !1, h = !0, B = null, _ = 0, A = 0, w = 0, x = 0, H = 0, N = 0, X = 0, j = 0, Y = [], k = [], T = "replace", E = -1, D = null, b = 0;
9601
+ function $() {
9602
9602
  const Q = i.value;
9603
9603
  if (!Q) return [];
9604
9604
  const we = [];
@@ -9623,7 +9623,7 @@ const ii = {
9623
9623
  const we = getComputedStyle(Q);
9624
9624
  X = Number.parseFloat(we.borderLeftWidth) || 0, j = Number.parseFloat(we.borderTopWidth) || 0;
9625
9625
  const ke = Q.getBoundingClientRect(), Me = ke.left + X - Q.scrollLeft, ze = ke.top + j - Q.scrollTop;
9626
- Y = k().map(({ el: yt, value: it }) => {
9626
+ Y = $().map(({ el: yt, value: it }) => {
9627
9627
  const st = yt.getBoundingClientRect();
9628
9628
  return {
9629
9629
  value: it,
@@ -9643,13 +9643,13 @@ const ii = {
9643
9643
  return Me;
9644
9644
  }
9645
9645
  function O(Q) {
9646
- if (A === "replace") return Q;
9647
- if (A === "subtract") {
9646
+ if (T === "replace") return Q;
9647
+ if (T === "subtract") {
9648
9648
  const ke = new Set(Q);
9649
- return w.filter((Me) => !ke.has(Me));
9649
+ return k.filter((Me) => !ke.has(Me));
9650
9650
  }
9651
- const we = new Set(w);
9652
- return [...w, ...Q.filter((ke) => !we.has(ke))];
9651
+ const we = new Set(k);
9652
+ return [...k, ...Q.filter((ke) => !we.has(ke))];
9653
9653
  }
9654
9654
  function le(Q) {
9655
9655
  const we = o.value;
@@ -9657,9 +9657,9 @@ const ii = {
9657
9657
  }
9658
9658
  function W() {
9659
9659
  const Q = V(H, N), we = {
9660
- left: Math.min(Q.x, T),
9660
+ left: Math.min(Q.x, w),
9661
9661
  top: Math.min(Q.y, x),
9662
- width: Math.abs(Q.x - T),
9662
+ width: Math.abs(Q.x - w),
9663
9663
  height: Math.abs(Q.y - x)
9664
9664
  };
9665
9665
  u.value = we, le(O(L(we)));
@@ -9699,7 +9699,7 @@ const ii = {
9699
9699
  function We(Q, we) {
9700
9700
  const ke = we?.closest(`[${la}]`);
9701
9701
  if (!ke) {
9702
- A === "replace" && le([]);
9702
+ T === "replace" && le([]);
9703
9703
  return;
9704
9704
  }
9705
9705
  const Me = Hn(ke);
@@ -9715,7 +9715,7 @@ const ii = {
9715
9715
  return;
9716
9716
  }
9717
9717
  if (E = ze, Q.ctrlKey || Q.metaKey || Q.pointerType === "touch") {
9718
- le(d.value.has(Me) ? w.filter((it) => it !== Me) : [...w, Me]);
9718
+ le(d.value.has(Me) ? k.filter((it) => it !== Me) : [...k, Me]);
9719
9719
  return;
9720
9720
  }
9721
9721
  le([Me]);
@@ -9724,9 +9724,9 @@ const ii = {
9724
9724
  const we = i.value;
9725
9725
  if (l.disabled || !we || Q.button !== 0 || Q.target.closest(Kn)) return;
9726
9726
  const ke = Q.pointerType === "touch";
9727
- h = l.multiple && (!ke || l.touch), m = Q.pointerId, p = !1, B = Q.target, _ = Q.clientX, $ = Q.clientY, H = Q.clientX, N = Q.clientY, w = [...o.value], A = Q.altKey ? "subtract" : Q.shiftKey || Q.ctrlKey || Q.metaKey ? "add" : "replace", I();
9727
+ h = l.multiple && (!ke || l.touch), m = Q.pointerId, p = !1, B = Q.target, _ = Q.clientX, A = Q.clientY, H = Q.clientX, N = Q.clientY, k = [...o.value], T = Q.altKey ? "subtract" : Q.shiftKey || Q.ctrlKey || Q.metaKey ? "add" : "replace", I();
9728
9728
  const Me = V(Q.clientX, Q.clientY);
9729
- if (T = Me.x, x = Me.y, we.focus({ preventScroll: !0 }), !(ke && !h)) {
9729
+ if (w = Me.x, x = Me.y, we.focus({ preventScroll: !0 }), !(ke && !h)) {
9730
9730
  Q.preventDefault();
9731
9731
  try {
9732
9732
  we.setPointerCapture?.(Q.pointerId);
@@ -9737,7 +9737,7 @@ const ii = {
9737
9737
  function ie(Q) {
9738
9738
  if (Q.pointerId === m) {
9739
9739
  if (H = Q.clientX, N = Q.clientY, !p) {
9740
- if (Math.hypot(Q.clientX - _, Q.clientY - $) < l.threshold) return;
9740
+ if (Math.hypot(Q.clientX - _, Q.clientY - A) < l.threshold) return;
9741
9741
  if (!h) {
9742
9742
  he();
9743
9743
  return;
@@ -9760,7 +9760,7 @@ const ii = {
9760
9760
  function Oe(Q) {
9761
9761
  if (!l.disabled) {
9762
9762
  if (Q.key === "Escape") {
9763
- p ? (le(w), he()) : o.value.length && le([]);
9763
+ p ? (le(k), he()) : o.value.length && le([]);
9764
9764
  return;
9765
9765
  }
9766
9766
  if ((Q.ctrlKey || Q.metaKey) && Q.key.toLowerCase() === "a") {
@@ -9770,7 +9770,7 @@ const ii = {
9770
9770
  }
9771
9771
  }
9772
9772
  function Ee() {
9773
- l.multiple && le(k().map((Q) => Q.value));
9773
+ l.multiple && le($().map((Q) => Q.value));
9774
9774
  }
9775
9775
  function Ve() {
9776
9776
  le([]);
@@ -9939,95 +9939,95 @@ const ii = {
9939
9939
  `wx-sortable-list--${t.size}`,
9940
9940
  { "is-plain": t.plain, "is-disabled": t.disabled, "is-headed": s.value }
9941
9941
  ]);
9942
- function m(w, A) {
9943
- if (typeof t.itemKey == "function") return t.itemKey(w, A);
9944
- if (w && typeof w == "object") {
9945
- const E = w[t.itemKey];
9942
+ function m(k, T) {
9943
+ if (typeof t.itemKey == "function") return t.itemKey(k, T);
9944
+ if (k && typeof k == "object") {
9945
+ const E = k[t.itemKey];
9946
9946
  if (typeof E == "string" || typeof E == "number") return E;
9947
9947
  }
9948
- return A;
9948
+ return T;
9949
9949
  }
9950
- function p(w, A) {
9951
- if (w && typeof w == "object") {
9952
- const E = w;
9950
+ function p(k, T) {
9951
+ if (k && typeof k == "object") {
9952
+ const E = k;
9953
9953
  for (const D of ["title", "name", "label"]) {
9954
9954
  const b = E[D];
9955
9955
  if (typeof b == "string" && b) return b;
9956
9956
  }
9957
- return `Item ${A + 1}`;
9957
+ return `Item ${T + 1}`;
9958
9958
  }
9959
- return String(w);
9959
+ return String(k);
9960
9960
  }
9961
- function h(w) {
9962
- const A = n.value[w];
9963
- return A === void 0 ? `Item ${w + 1}` : p(A, w);
9961
+ function h(k) {
9962
+ const T = n.value[k];
9963
+ return T === void 0 ? `Item ${k + 1}` : p(T, k);
9964
9964
  }
9965
- function B(w, A, E) {
9966
- if (A < 0 || A >= n.value.length || w === A) return;
9967
- const D = [...n.value], [b] = D.splice(w, 1);
9968
- b !== void 0 && (D.splice(A, 0, b), n.value = D, l("move", { item: b, from: w, to: A, via: E }));
9965
+ function B(k, T, E) {
9966
+ if (T < 0 || T >= n.value.length || k === T) return;
9967
+ const D = [...n.value], [b] = D.splice(k, 1);
9968
+ b !== void 0 && (D.splice(T, 0, b), n.value = D, l("move", { item: b, from: k, to: T, via: E }));
9969
9969
  }
9970
9970
  let _;
9971
- function $(w) {
9972
- _ = n.value[w.oldIndex ?? -1];
9971
+ function A(k) {
9972
+ _ = n.value[k.oldIndex ?? -1];
9973
9973
  }
9974
- function T(w) {
9975
- const A = _;
9976
- if (_ = void 0, w.from !== w.to || A === void 0) return;
9977
- const E = w.oldIndex ?? -1, D = w.newIndex ?? -1;
9978
- E < 0 || D < 0 || E === D || l("move", { item: A, from: E, to: D, via: "pointer" });
9974
+ function w(k) {
9975
+ const T = _;
9976
+ if (_ = void 0, k.from !== k.to || T === void 0) return;
9977
+ const E = k.oldIndex ?? -1, D = k.newIndex ?? -1;
9978
+ E < 0 || D < 0 || E === D || l("move", { item: T, from: E, to: D, via: "pointer" });
9979
9979
  }
9980
9980
  const x = G(null), H = G(-1), N = G("");
9981
9981
  function X() {
9982
9982
  return i.value?.querySelectorAll(":scope > .wx-sortable-list__body > li") ?? [];
9983
9983
  }
9984
- async function j(w) {
9984
+ async function j(k) {
9985
9985
  await qe();
9986
- const A = X()[w];
9987
- if (!A) return;
9988
- (u.value ? A.querySelector(":scope > .wx-sortable-list__grip") : A)?.focus();
9989
- }
9990
- function Y(w, A) {
9991
- if (t.disabled || w.target !== w.currentTarget) return;
9992
- const E = n.value.length, D = x.value === A;
9993
- if (w.key === " " || w.key === "Spacebar" || w.key === "Enter") {
9994
- w.preventDefault(), D ? (x.value = null, N.value = `Dropped ${h(A)}, ${A + 1} of ${E}.`) : (x.value = A, H.value = A, N.value = `Picked up ${h(A)}. Use the arrow keys to move it, space to drop it, escape to put it back.`);
9986
+ const T = X()[k];
9987
+ if (!T) return;
9988
+ (u.value ? T.querySelector(":scope > .wx-sortable-list__grip") : T)?.focus();
9989
+ }
9990
+ function Y(k, T) {
9991
+ if (t.disabled || k.target !== k.currentTarget) return;
9992
+ const E = n.value.length, D = x.value === T;
9993
+ if (k.key === " " || k.key === "Spacebar" || k.key === "Enter") {
9994
+ k.preventDefault(), D ? (x.value = null, N.value = `Dropped ${h(T)}, ${T + 1} of ${E}.`) : (x.value = T, H.value = T, N.value = `Picked up ${h(T)}. Use the arrow keys to move it, space to drop it, escape to put it back.`);
9995
9995
  return;
9996
9996
  }
9997
9997
  if (!D) return;
9998
- if (w.key === "Escape") {
9999
- w.preventDefault(), x.value = null, B(A, H.value, "keyboard"), N.value = "Move cancelled.", j(H.value);
9998
+ if (k.key === "Escape") {
9999
+ k.preventDefault(), x.value = null, B(T, H.value, "keyboard"), N.value = "Move cancelled.", j(H.value);
10000
10000
  return;
10001
10001
  }
10002
- const b = w.key === "ArrowUp" || w.key === "ArrowLeft", k = w.key === "ArrowDown" || w.key === "ArrowRight";
10003
- if (!b && !k) return;
10004
- w.preventDefault();
10005
- const V = A + (b ? -1 : 1);
10002
+ const b = k.key === "ArrowUp" || k.key === "ArrowLeft", $ = k.key === "ArrowDown" || k.key === "ArrowRight";
10003
+ if (!b && !$) return;
10004
+ k.preventDefault();
10005
+ const V = T + (b ? -1 : 1);
10006
10006
  if (V < 0 || V >= E) {
10007
- N.value = `${h(A)} is already ${A + 1} of ${E}.`;
10007
+ N.value = `${h(T)} is already ${T + 1} of ${E}.`;
10008
10008
  return;
10009
10009
  }
10010
- const I = h(A);
10011
- B(A, V, "keyboard"), x.value = V, N.value = `${I} is now ${V + 1} of ${E}.`, j(V);
10010
+ const I = h(T);
10011
+ B(T, V, "keyboard"), x.value = V, N.value = `${I} is now ${V + 1} of ${E}.`, j(V);
10012
10012
  }
10013
- return (w, A) => (r(), f("div", {
10013
+ return (k, T) => (r(), f("div", {
10014
10014
  ref_key: "root",
10015
10015
  ref: i,
10016
10016
  class: ee(v.value)
10017
10017
  }, [
10018
10018
  s.value ? (r(), f("header", Xh, [
10019
10019
  S("h3", Gh, [
10020
- C(w.$slots, "header", {}, () => [
10020
+ C(k.$slots, "header", {}, () => [
10021
10021
  se(F(e.title), 1)
10022
10022
  ], !0)
10023
10023
  ]),
10024
- w.$slots.extra ? (r(), f("div", qh, [
10025
- C(w.$slots, "extra", {}, void 0, !0)
10024
+ k.$slots.extra ? (r(), f("div", qh, [
10025
+ C(k.$slots, "extra", {}, void 0, !0)
10026
10026
  ])) : y("", !0)
10027
10027
  ])) : y("", !0),
10028
10028
  U(g(Hl), {
10029
10029
  modelValue: n.value,
10030
- "onUpdate:modelValue": A[0] || (A[0] = (E) => n.value = E),
10030
+ "onUpdate:modelValue": T[0] || (T[0] = (E) => n.value = E),
10031
10031
  tag: "ul",
10032
10032
  class: "wx-sortable-list__body",
10033
10033
  group: e.group,
@@ -10042,8 +10042,8 @@ const ii = {
10042
10042
  "ghost-class": "wx-sortable-list__row--ghost",
10043
10043
  "chosen-class": "wx-sortable-list__row--chosen",
10044
10044
  "aria-label": e.ariaLabel,
10045
- onStart: $,
10046
- onEnd: T
10045
+ onStart: A,
10046
+ onEnd: w
10047
10047
  }, {
10048
10048
  default: P(() => [
10049
10049
  (r(!0), f(ye, null, Te(n.value, (E, D) => (r(), f("li", {
@@ -10068,22 +10068,22 @@ const ii = {
10068
10068
  U(pe, { name: "drag" })
10069
10069
  ], 40, Jh)) : y("", !0),
10070
10070
  S("div", Qh, [
10071
- C(w.$slots, "default", {
10071
+ C(k.$slots, "default", {
10072
10072
  item: E,
10073
10073
  index: D
10074
10074
  }, () => [
10075
10075
  se(F(p(E, D)), 1)
10076
10076
  ], !0)
10077
10077
  ]),
10078
- w.$slots.actions ? (r(), f("div", ep, [
10079
- C(w.$slots, "actions", {
10078
+ k.$slots.actions ? (r(), f("div", ep, [
10079
+ C(k.$slots, "actions", {
10080
10080
  item: E,
10081
10081
  index: D
10082
10082
  }, void 0, !0)
10083
10083
  ])) : y("", !0)
10084
10084
  ], 42, Zh))), 128)),
10085
10085
  n.value.length ? y("", !0) : (r(), f("li", tp, [
10086
- C(w.$slots, "empty", {}, () => [
10086
+ C(k.$slots, "empty", {}, () => [
10087
10087
  se(F(e.emptyText), 1)
10088
10088
  ], !0)
10089
10089
  ]))
@@ -10302,48 +10302,48 @@ const rp = ["aria-current"], up = { class: "wx-step__marker" }, dp = { key: 3 },
10302
10302
  function dn(e) {
10303
10303
  const { nodes: a, accessors: t, expanded: l } = e, n = G(/* @__PURE__ */ new Set()), o = G(/* @__PURE__ */ new Set()), i = c(() => {
10304
10304
  jn.value;
10305
- const b = /* @__PURE__ */ new Map(), k = (V, I, L, O, le) => {
10305
+ const b = /* @__PURE__ */ new Map(), $ = (V, I, L, O, le) => {
10306
10306
  V.forEach((W, M) => {
10307
10307
  const R = [...le, M], de = t.key(W, R), ne = t.children(W) ?? [];
10308
- b.set(de, { node: W, key: de, depth: O, siblings: V, index: M, parent: I, parentKey: L, children: ne }), ne.length && k(ne, W, de, O + 1, R);
10308
+ b.set(de, { node: W, key: de, depth: O, siblings: V, index: M, parent: I, parentKey: L, children: ne }), ne.length && $(ne, W, de, O + 1, R);
10309
10309
  });
10310
10310
  };
10311
- return k(Ut(a), null, null, 0, []), b;
10312
- }), s = (b) => i.value.get(b), u = (b, k = []) => t.key(b, k), d = c(() => {
10311
+ return $(Ut(a), null, null, 0, []), b;
10312
+ }), s = (b) => i.value.get(b), u = (b, $ = []) => t.key(b, $), d = c(() => {
10313
10313
  const b = Ut(e.filter)?.trim().toLowerCase();
10314
10314
  if (!b || !t.label) return null;
10315
- const k = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
10315
+ const $ = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
10316
10316
  for (const I of i.value.values()) {
10317
10317
  if (!t.label(I.node).toLowerCase().includes(b)) continue;
10318
10318
  V.add(I.key);
10319
10319
  let L = I;
10320
10320
  for (; L; )
10321
- k.add(L.key), L = L.parentKey === null ? void 0 : i.value.get(L.parentKey);
10321
+ $.add(L.key), L = L.parentKey === null ? void 0 : i.value.get(L.parentKey);
10322
10322
  }
10323
- return { keep: k, matched: V };
10324
- }), v = c(() => new Set(l.value)), m = (b, k) => k.length ? !0 : Ut(e.lazy) ? !t.leaf?.(b) : !1, p = (b) => v.value.has(b), h = c(() => {
10325
- const b = [], k = d.value, V = (I, L) => {
10323
+ return { keep: $, matched: V };
10324
+ }), v = c(() => new Set(l.value)), m = (b, $) => $.length ? !0 : Ut(e.lazy) ? !t.leaf?.(b) : !1, p = (b) => v.value.has(b), h = c(() => {
10325
+ const b = [], $ = d.value, V = (I, L) => {
10326
10326
  I.forEach((O, le) => {
10327
10327
  const W = [...L, le], M = t.key(O, W);
10328
- if (k && !k.keep.has(M)) return;
10328
+ if ($ && !$.keep.has(M)) return;
10329
10329
  const R = i.value.get(M);
10330
10330
  if (!R) return;
10331
- const de = R.children, ne = m(O, de), he = k ? !0 : v.value.has(M);
10331
+ const de = R.children, ne = m(O, de), he = $ ? !0 : v.value.has(M);
10332
10332
  b.push({
10333
10333
  ...R,
10334
10334
  expandable: ne,
10335
10335
  expanded: ne && he,
10336
10336
  loading: n.value.has(M),
10337
10337
  disabled: t.disabled?.(O) ?? !1,
10338
- matched: k ? k.matched.has(M) : !1
10338
+ matched: $ ? $.matched.has(M) : !1
10339
10339
  }), he && de.length && V(de, W);
10340
10340
  });
10341
10341
  };
10342
10342
  return V(Ut(a), []), b;
10343
10343
  });
10344
- function B(b, k) {
10345
- if (v.value.has(b) !== k) {
10346
- if (!k) {
10344
+ function B(b, $) {
10345
+ if (v.value.has(b) !== $) {
10346
+ if (!$) {
10347
10347
  l.value = l.value.filter((I) => I !== b);
10348
10348
  return;
10349
10349
  }
@@ -10356,13 +10356,13 @@ function dn(e) {
10356
10356
  }
10357
10357
  }
10358
10358
  async function _(b) {
10359
- const k = s(b);
10360
- if (k) {
10361
- if (Ut(e.lazy) && e.load && !o.value.has(b) && !k.children.length) {
10359
+ const $ = s(b);
10360
+ if ($) {
10361
+ if (Ut(e.lazy) && e.load && !o.value.has(b) && !$.children.length) {
10362
10362
  n.value = new Set(n.value).add(b);
10363
10363
  try {
10364
- const V = await e.load(k.node);
10365
- t.setChildren(k.node, V), o.value = new Set(o.value).add(b), jn.value += 1;
10364
+ const V = await e.load($.node);
10365
+ t.setChildren($.node, V), o.value = new Set(o.value).add(b), jn.value += 1;
10366
10366
  } finally {
10367
10367
  const V = new Set(n.value);
10368
10368
  V.delete(b), n.value = V;
@@ -10371,67 +10371,67 @@ function dn(e) {
10371
10371
  B(b, !0);
10372
10372
  }
10373
10373
  }
10374
- const $ = (b) => B(b, !1), T = (b) => p(b) ? $(b) : _(b);
10374
+ const A = (b) => B(b, !1), w = (b) => p(b) ? A(b) : _(b);
10375
10375
  function x() {
10376
10376
  const b = [];
10377
- for (const k of i.value.values())
10378
- k.children.length && b.push(k.key);
10377
+ for (const $ of i.value.values())
10378
+ $.children.length && b.push($.key);
10379
10379
  l.value = b;
10380
10380
  }
10381
10381
  const H = () => {
10382
10382
  l.value = [];
10383
10383
  };
10384
10384
  async function N(b) {
10385
- for (const k of b) {
10386
- if (!s(k)) return !1;
10387
- await _(k);
10385
+ for (const $ of b) {
10386
+ if (!s($)) return !1;
10387
+ await _($);
10388
10388
  }
10389
10389
  return !0;
10390
10390
  }
10391
10391
  function X(b) {
10392
- const k = j(b).map((I) => I.key);
10393
- if (!k.length) return;
10392
+ const $ = j(b).map((I) => I.key);
10393
+ if (!$.length) return;
10394
10394
  const V = new Set(l.value);
10395
- for (const I of k) V.add(I);
10395
+ for (const I of $) V.add(I);
10396
10396
  l.value = [...V];
10397
10397
  }
10398
10398
  function j(b) {
10399
- const k = [];
10399
+ const $ = [];
10400
10400
  let V = s(b);
10401
10401
  for (; V && V.parentKey !== null; ) {
10402
10402
  const I = s(V.parentKey);
10403
10403
  if (!I) break;
10404
- k.unshift(I), V = I;
10404
+ $.unshift(I), V = I;
10405
10405
  }
10406
- return k;
10406
+ return $;
10407
10407
  }
10408
10408
  const Y = (b) => {
10409
- const k = s(b);
10410
- return k ? [...j(b), k] : [];
10411
- }, w = (b, k) => j(k).some((V) => V.key === b);
10412
- function A(b) {
10413
- const k = [], V = s(b);
10414
- if (!V) return k;
10409
+ const $ = s(b);
10410
+ return $ ? [...j(b), $] : [];
10411
+ }, k = (b, $) => j($).some((V) => V.key === b);
10412
+ function T(b) {
10413
+ const $ = [], V = s(b);
10414
+ if (!V) return $;
10415
10415
  const I = (L) => {
10416
10416
  for (const O of L) {
10417
10417
  const le = s(u(O));
10418
- le && (k.push(le), I(le.children));
10418
+ le && ($.push(le), I(le.children));
10419
10419
  }
10420
10420
  };
10421
- return I(V.children), k;
10421
+ return I(V.children), $;
10422
10422
  }
10423
- function E(b, k, V) {
10424
- if (b === k) return !1;
10425
- const I = s(b), L = s(k);
10426
- return !I || !L || w(b, k) ? !1 : e.allowDrop?.(I.node, L.node, V) ?? !0;
10423
+ function E(b, $, V) {
10424
+ if (b === $) return !1;
10425
+ const I = s(b), L = s($);
10426
+ return !I || !L || k(b, $) ? !1 : e.allowDrop?.(I.node, L.node, V) ?? !0;
10427
10427
  }
10428
- function D(b, k, V) {
10429
- if (!E(b, k, V)) return null;
10430
- const I = s(b), L = s(k);
10428
+ function D(b, $, V) {
10429
+ if (!E(b, $, V)) return null;
10430
+ const I = s(b), L = s($);
10431
10431
  if (!I || !L) return null;
10432
10432
  if (I.siblings.splice(I.index, 1), V === "inside") {
10433
10433
  let W = t.children(L.node);
10434
- return W || (W = [], t.setChildren(L.node, W)), W.push(I.node), B(k, !0), { node: I.node, parent: L.node, siblings: W, index: W.length - 1 };
10434
+ return W || (W = [], t.setChildren(L.node, W)), W.push(I.node), B($, !0), { node: I.node, parent: L.node, siblings: W, index: W.length - 1 };
10435
10435
  }
10436
10436
  const O = L.siblings, le = O.indexOf(L.node) + (V === "after" ? 1 : 0);
10437
10437
  return O.splice(le, 0, I.node), { node: I.node, parent: L.parent, siblings: O, index: le };
@@ -10444,16 +10444,16 @@ function dn(e) {
10444
10444
  filtered: d,
10445
10445
  isExpanded: p,
10446
10446
  expand: _,
10447
- collapse: $,
10448
- toggle: T,
10447
+ collapse: A,
10448
+ toggle: w,
10449
10449
  expandAll: x,
10450
10450
  collapseAll: H,
10451
10451
  reveal: X,
10452
10452
  openPath: N,
10453
10453
  ancestors: j,
10454
10454
  path: Y,
10455
- descendants: A,
10456
- isAncestorOf: w,
10455
+ descendants: T,
10456
+ isAncestorOf: k,
10457
10457
  canDrop: E,
10458
10458
  move: D,
10459
10459
  loading: n
@@ -10570,18 +10570,18 @@ const xp = {
10570
10570
  lazy: () => !!p.value.lazy,
10571
10571
  load: (z) => p.value.load?.(z) ?? [],
10572
10572
  allowDrop: (z, J, Z) => p.value.allowDrop?.(z, J, Z) ?? !0
10573
- }), $ = c(() => m.value ? _.rows.value : []), T = c(
10574
- () => m.value ? $.value.map((z) => z.node) : v.value
10575
- ), x = (z) => m.value ? $.value[z] : void 0;
10573
+ }), A = c(() => m.value ? _.rows.value : []), w = c(
10574
+ () => m.value ? A.value.map((z) => z.node) : v.value
10575
+ ), x = (z) => m.value ? A.value[z] : void 0;
10576
10576
  t.tree?.defaultExpandAll && _.expandAll();
10577
10577
  async function H(z) {
10578
10578
  await _.toggle(z.key), l("expand-change", [...o.value], Ht(o.value));
10579
10579
  }
10580
10580
  const N = G(null), X = G(null), j = G(null);
10581
- let Y = null, w;
10582
- const A = (z) => !!p.value.draggable && (p.value.allowDrag?.(z.node) ?? !0);
10581
+ let Y = null, k;
10582
+ const T = (z) => !!p.value.draggable && (p.value.allowDrag?.(z.node) ?? !0);
10583
10583
  function E(z, J) {
10584
- if (!A(z)) {
10584
+ if (!T(z)) {
10585
10585
  J.preventDefault();
10586
10586
  return;
10587
10587
  }
@@ -10592,15 +10592,15 @@ const xp = {
10592
10592
  return ve <= 0.3 ? "before" : ve >= 0.7 ? "after" : "inside";
10593
10593
  }
10594
10594
  function b() {
10595
- w && clearTimeout(w), w = void 0, Y = null;
10595
+ k && clearTimeout(k), k = void 0, Y = null;
10596
10596
  }
10597
- function k(z, J) {
10597
+ function $(z, J) {
10598
10598
  const Z = p.value.springDelay ?? 0;
10599
10599
  if (!Z || J !== "inside" || !z.expandable || z.expanded) {
10600
10600
  b();
10601
10601
  return;
10602
10602
  }
10603
- Y !== z.key && (b(), Y = z.key, w = setTimeout(() => {
10603
+ Y !== z.key && (b(), Y = z.key, k = setTimeout(() => {
10604
10604
  _.expand(z.key), b();
10605
10605
  }, Z));
10606
10606
  }
@@ -10611,7 +10611,7 @@ const xp = {
10611
10611
  X.value = null, j.value = null, b();
10612
10612
  return;
10613
10613
  }
10614
- J.preventDefault(), J.dataTransfer && (J.dataTransfer.dropEffect = "move"), X.value = z.key, j.value = Z, k(z, Z);
10614
+ J.preventDefault(), J.dataTransfer && (J.dataTransfer.dropEffect = "move"), X.value = z.key, j.value = Z, $(z, Z);
10615
10615
  }
10616
10616
  async function I(z) {
10617
10617
  const J = N.value, Z = j.value;
@@ -10688,7 +10688,7 @@ const xp = {
10688
10688
  Me(), !(typeof ResizeObserver > "u" || !ge.value) && (ze = new ResizeObserver(Me), ze.observe(ge.value));
10689
10689
  }), Fe(() => {
10690
10690
  ze?.disconnect(), ze = null;
10691
- }), Se([() => T.value.length, () => W.value.length], async () => {
10691
+ }), Se([() => w.value.length, () => W.value.length], async () => {
10692
10692
  await qe(), Me();
10693
10693
  });
10694
10694
  function yt(z, J) {
@@ -10749,15 +10749,15 @@ const xp = {
10749
10749
  function oe(z) {
10750
10750
  return t.expandableIf ? t.expandableIf(z) : !0;
10751
10751
  }
10752
- const me = c(() => T.value.filter(re)), je = c(
10753
- () => me.value.map((z) => _t(z, T.value.indexOf(z)))
10752
+ const me = c(() => w.value.filter(re)), je = c(
10753
+ () => me.value.map((z) => _t(z, w.value.indexOf(z)))
10754
10754
  ), Ct = c(
10755
10755
  () => je.value.filter((z) => n.value.includes(z)).length
10756
10756
  ), It = c(
10757
10757
  () => je.value.length > 0 && Ct.value === je.value.length
10758
10758
  ), Ia = c(() => Ct.value > 0 && !It.value);
10759
10759
  function Ht(z) {
10760
- return T.value.filter((J, Z) => z.includes(_t(J, Z)));
10760
+ return w.value.filter((J, Z) => z.includes(_t(J, Z)));
10761
10761
  }
10762
10762
  function La(z) {
10763
10763
  n.value = z, l("selection-change", z, Ht(z));
@@ -10971,7 +10971,7 @@ const xp = {
10971
10971
  ], 512)
10972
10972
  ]),
10973
10973
  S("tbody", Bp, [
10974
- (r(!0), f(ye, null, Te(T.value, (Z, ve) => (r(), f(ye, {
10974
+ (r(!0), f(ye, null, Te(w.value, (Z, ve) => (r(), f(ye, {
10975
10975
  key: _t(Z, ve)
10976
10976
  }, [
10977
10977
  S("tr", {
@@ -10985,7 +10985,7 @@ const xp = {
10985
10985
  [`is-drop-${j.value}`]: j.value && X.value === x(ve)?.key
10986
10986
  }
10987
10987
  ]]),
10988
- draggable: x(ve) ? A(x(ve)) : void 0,
10988
+ draggable: x(ve) ? T(x(ve)) : void 0,
10989
10989
  onClick: (Ae) => l("row-click", Z, ve, Ae),
10990
10990
  onDragstart: (Ae) => x(ve) && E(x(ve), Ae),
10991
10991
  onDragover: (Ae) => x(ve) && V(x(ve), Ae),
@@ -11077,7 +11077,7 @@ const xp = {
11077
11077
  ], 8, Ip)
11078
11078
  ])) : y("", !0)
11079
11079
  ], 64))), 128)),
11080
- !T.value.length && !e.loading ? (r(), f("tr", Lp, [
11080
+ !w.value.length && !e.loading ? (r(), f("tr", Lp, [
11081
11081
  S("td", {
11082
11082
  class: "wx-table__cell wx-table__empty",
11083
11083
  colspan: R.value
@@ -11171,20 +11171,20 @@ const xp = {
11171
11171
  }
11172
11172
  function d(j) {
11173
11173
  const Y = [];
11174
- for (const w of j) {
11175
- if (w.type === ye) {
11176
- Y.push(...d(w.children ?? []));
11174
+ for (const k of j) {
11175
+ if (k.type === ye) {
11176
+ Y.push(...d(k.children ?? []));
11177
11177
  continue;
11178
11178
  }
11179
- if (w.type !== ri) continue;
11180
- const A = w.props ?? {}, E = w.children;
11179
+ if (k.type !== ri) continue;
11180
+ const T = k.props ?? {}, E = k.children;
11181
11181
  Y.push({
11182
- value: A.value,
11183
- label: A.label,
11184
- icon: A.icon,
11185
- badge: A.badge,
11182
+ value: T.value,
11183
+ label: T.label,
11184
+ icon: T.icon,
11185
+ badge: T.badge,
11186
11186
  // A bare `disabled` in a template is an empty string, not `true`.
11187
- disabled: A.disabled === "" || A.disabled === !0,
11187
+ disabled: T.disabled === "" || T.disabled === !0,
11188
11188
  labelSlot: typeof E?.label == "function" ? E.label : void 0
11189
11189
  });
11190
11190
  }
@@ -11202,10 +11202,10 @@ const xp = {
11202
11202
  Se(o, (j) => {
11203
11203
  j !== void 0 && n("change", j);
11204
11204
  });
11205
- const h = G(null), B = G(!1), _ = G(!1), $ = c(() => l.orientation === "horizontal");
11206
- function T() {
11205
+ const h = G(null), B = G(!1), _ = G(!1), A = c(() => l.orientation === "horizontal");
11206
+ function w() {
11207
11207
  const j = h.value;
11208
- if (!j || !$.value) {
11208
+ if (!j || !A.value) {
11209
11209
  B.value = !1, _.value = !1;
11210
11210
  return;
11211
11211
  }
@@ -11214,19 +11214,19 @@ const xp = {
11214
11214
  }
11215
11215
  function x(j) {
11216
11216
  const Y = h.value;
11217
- Y && (Y.scrollLeft += j * Math.max(Y.clientWidth * 0.75, 120), T());
11217
+ Y && (Y.scrollLeft += j * Math.max(Y.clientWidth * 0.75, 120), w());
11218
11218
  }
11219
11219
  function H(j = !1) {
11220
11220
  const Y = h.value;
11221
- if (!Y || !$.value) return;
11222
- const w = Y.querySelector('[data-state="active"]');
11223
- if (!w) return;
11224
- const A = w.offsetLeft - (Y.clientWidth - w.offsetWidth) / 2;
11225
- j && (Y.style.scrollBehavior = "auto"), Y.scrollLeft = Math.max(0, A), j && (Y.style.scrollBehavior = ""), T();
11221
+ if (!Y || !A.value) return;
11222
+ const k = Y.querySelector('[data-state="active"]');
11223
+ if (!k) return;
11224
+ const T = k.offsetLeft - (Y.clientWidth - k.offsetWidth) / 2;
11225
+ j && (Y.style.scrollBehavior = "auto"), Y.scrollLeft = Math.max(0, T), j && (Y.style.scrollBehavior = ""), w();
11226
11226
  }
11227
11227
  let N;
11228
11228
  at(() => {
11229
- v(), N = new ResizeObserver(() => T()), h.value && N.observe(h.value), h.value?.firstElementChild && N.observe(h.value.firstElementChild), T(), H(!0);
11229
+ v(), N = new ResizeObserver(() => w()), h.value && N.observe(h.value), h.value?.firstElementChild && N.observe(h.value.firstElementChild), w(), H(!0);
11230
11230
  }), Fe(() => N?.disconnect()), Se(o, async () => {
11231
11231
  await qe(), H();
11232
11232
  });
@@ -11237,9 +11237,9 @@ const xp = {
11237
11237
  `wx-tabs--${l.orientation}`,
11238
11238
  `wx-tabs--align-${l.align}`
11239
11239
  ]);
11240
- return a({ measure: T, revealActive: H }), (j, Y) => (r(), q(g(Ss), {
11240
+ return a({ measure: w, revealActive: H }), (j, Y) => (r(), q(g(Ss), {
11241
11241
  modelValue: o.value,
11242
- "onUpdate:modelValue": Y[2] || (Y[2] = (w) => o.value = w),
11242
+ "onUpdate:modelValue": Y[2] || (Y[2] = (k) => o.value = k),
11243
11243
  class: ee(X.value),
11244
11244
  orientation: e.orientation,
11245
11245
  "activation-mode": e.activationMode,
@@ -11255,7 +11255,7 @@ const xp = {
11255
11255
  tabindex: "-1",
11256
11256
  "aria-hidden": "true",
11257
11257
  disabled: !B.value,
11258
- onClick: Y[0] || (Y[0] = (w) => x(-1))
11258
+ onClick: Y[0] || (Y[0] = (k) => x(-1))
11259
11259
  }, [
11260
11260
  U(pe, { name: "chevron-left" })
11261
11261
  ], 8, jp)) : y("", !0),
@@ -11263,7 +11263,7 @@ const xp = {
11263
11263
  ref_key: "scroller",
11264
11264
  ref: h,
11265
11265
  class: ee(["wx-tabs__scroller", { "is-overflow-start": B.value, "is-overflow-end": _.value }]),
11266
- onScrollPassive: T
11266
+ onScrollPassive: w
11267
11267
  }, [
11268
11268
  U(g(Bs), {
11269
11269
  class: "wx-tabs__list",
@@ -11271,31 +11271,31 @@ const xp = {
11271
11271
  "aria-label": e.ariaLabel
11272
11272
  }, {
11273
11273
  default: P(() => [
11274
- (r(!0), f(ye, null, Te(u(), (w) => (r(), q(g(Ts), {
11275
- key: w.value,
11274
+ (r(!0), f(ye, null, Te(u(), (k) => (r(), q(g(Ts), {
11275
+ key: k.value,
11276
11276
  class: "wx-tabs__tab",
11277
- value: w.value,
11278
- disabled: w.disabled
11277
+ value: k.value,
11278
+ disabled: k.disabled
11279
11279
  }, {
11280
11280
  default: P(() => [
11281
- w.icon ? (r(), q(pe, {
11281
+ k.icon ? (r(), q(pe, {
11282
11282
  key: 0,
11283
11283
  class: "wx-tabs__icon",
11284
- name: w.icon
11284
+ name: k.icon
11285
11285
  }, null, 8, ["name"])) : y("", !0),
11286
11286
  S("span", Yp, [
11287
- w.labelSlot ? (r(), q(Ze(w.labelSlot), { key: 0 })) : (r(), f(ye, { key: 1 }, [
11288
- se(F(w.label ?? w.value), 1)
11287
+ k.labelSlot ? (r(), q(Ze(k.labelSlot), { key: 0 })) : (r(), f(ye, { key: 1 }, [
11288
+ se(F(k.label ?? k.value), 1)
11289
11289
  ], 64))
11290
11290
  ]),
11291
- w.badge !== void 0 ? (r(), q(tl, {
11291
+ k.badge !== void 0 ? (r(), q(tl, {
11292
11292
  key: 1,
11293
11293
  class: "wx-tabs__badge",
11294
11294
  size: "sm",
11295
11295
  round: ""
11296
11296
  }, {
11297
11297
  default: P(() => [
11298
- se(F(w.badge), 1)
11298
+ se(F(k.badge), 1)
11299
11299
  ]),
11300
11300
  _: 2
11301
11301
  }, 1024)) : y("", !0)
@@ -11313,7 +11313,7 @@ const xp = {
11313
11313
  tabindex: "-1",
11314
11314
  "aria-hidden": "true",
11315
11315
  disabled: !_.value,
11316
- onClick: Y[1] || (Y[1] = (w) => x(1))
11316
+ onClick: Y[1] || (Y[1] = (k) => x(1))
11317
11317
  }, [
11318
11318
  U(pe, { name: "chevron-right" })
11319
11319
  ], 8, Xp)) : y("", !0),
@@ -11357,25 +11357,25 @@ const xp = {
11357
11357
  emits: /* @__PURE__ */ fe(["change", "search"], ["update:modelValue"]),
11358
11358
  setup(e, { expose: a, emit: t }) {
11359
11359
  const { rootAttrs: l, controlAttrs: n } = nt(), o = e, i = t, s = xe(e, "modelValue"), u = Xe(o), d = G(null), v = G(""), m = G(!1), p = G(-1), h = G(-1), B = c(() => s.value ?? []), _ = c(
11360
- () => o.suggestions.filter((A) => !B.value.includes(A))
11361
- ), $ = c(() => m.value && _.value.length > 0), T = c(() => o.max !== void 0 && B.value.length >= o.max), x = c(() => [
11360
+ () => o.suggestions.filter((T) => !B.value.includes(T))
11361
+ ), A = c(() => m.value && _.value.length > 0), w = c(() => o.max !== void 0 && B.value.length >= o.max), x = c(() => [
11362
11362
  "wx-tags-input",
11363
11363
  `wx-tags-input--${u.size.value}`,
11364
11364
  {
11365
11365
  [`wx-tags-input--${u.status.value}`]: u.status.value !== "default",
11366
- "is-open": $.value,
11366
+ "is-open": A.value,
11367
11367
  "is-disabled": u.disabled.value
11368
11368
  }
11369
11369
  ]);
11370
11370
  Se(_, () => {
11371
11371
  p.value = -1;
11372
11372
  });
11373
- function H(A) {
11374
- s.value = A, i("change", A);
11373
+ function H(T) {
11374
+ s.value = T, i("change", T);
11375
11375
  }
11376
- function N(A) {
11377
- const E = A.trim();
11378
- if (!(!E || T.value)) {
11376
+ function N(T) {
11377
+ const E = T.trim();
11378
+ if (!(!E || w.value)) {
11379
11379
  if (!o.duplicates && B.value.includes(E)) {
11380
11380
  v.value = "";
11381
11381
  return;
@@ -11383,38 +11383,38 @@ const xp = {
11383
11383
  H([...B.value, E]), v.value = "", m.value = !1, h.value = -1;
11384
11384
  }
11385
11385
  }
11386
- function X(A) {
11387
- H(B.value.filter((E, D) => D !== A)), h.value = -1;
11386
+ function X(T) {
11387
+ H(B.value.filter((E, D) => D !== T)), h.value = -1;
11388
11388
  }
11389
- function j(A) {
11390
- const E = A.target.value;
11389
+ function j(T) {
11390
+ const E = T.target.value;
11391
11391
  v.value = E, h.value = -1, p.value = -1, E && (m.value = !0), i("search", E);
11392
11392
  }
11393
- function Y(A) {
11394
- if (A.key === "Escape") {
11393
+ function Y(T) {
11394
+ if (T.key === "Escape") {
11395
11395
  m.value = !1, h.value = -1;
11396
11396
  return;
11397
11397
  }
11398
- if (A.key === "Backspace" && v.value === "" && B.value.length > 0) {
11399
- A.preventDefault(), h.value === B.value.length - 1 ? X(h.value) : h.value = B.value.length - 1;
11398
+ if (T.key === "Backspace" && v.value === "" && B.value.length > 0) {
11399
+ T.preventDefault(), h.value === B.value.length - 1 ? X(h.value) : h.value = B.value.length - 1;
11400
11400
  return;
11401
11401
  }
11402
- if (A.key === "ArrowDown" && $.value) {
11403
- A.preventDefault(), p.value = (p.value + 1) % _.value.length;
11402
+ if (T.key === "ArrowDown" && A.value) {
11403
+ T.preventDefault(), p.value = (p.value + 1) % _.value.length;
11404
11404
  return;
11405
11405
  }
11406
- if (A.key === "ArrowUp" && $.value) {
11407
- A.preventDefault(), p.value = p.value <= 0 ? _.value.length - 1 : p.value - 1;
11406
+ if (T.key === "ArrowUp" && A.value) {
11407
+ T.preventDefault(), p.value = p.value <= 0 ? _.value.length - 1 : p.value - 1;
11408
11408
  return;
11409
11409
  }
11410
- A.key === "Enter" && (A.preventDefault(), $.value && p.value >= 0 ? N(_.value[p.value]) : o.allowCreate && N(v.value));
11410
+ T.key === "Enter" && (T.preventDefault(), A.value && p.value >= 0 ? N(_.value[p.value]) : o.allowCreate && N(v.value));
11411
11411
  }
11412
- function w() {
11412
+ function k() {
11413
11413
  h.value = -1, window.setTimeout(() => {
11414
11414
  m.value = !1;
11415
11415
  }, 120);
11416
11416
  }
11417
- return a({ focus: () => d.value?.focus() }), (A, E) => (r(), f("div", Ce({ class: x.value }, g(l)), [
11417
+ return a({ focus: () => d.value?.focus() }), (T, E) => (r(), f("div", Ce({ class: x.value }, g(l)), [
11418
11418
  S("div", {
11419
11419
  class: "wx-tags-input__anchor",
11420
11420
  onClick: E[1] || (E[1] = (D) => d.value?.focus())
@@ -11430,7 +11430,7 @@ const xp = {
11430
11430
  type: "button",
11431
11431
  tabindex: "-1",
11432
11432
  "aria-label": `Remove ${D}`,
11433
- onClick: Le((k) => X(b), ["stop"])
11433
+ onClick: Le(($) => X(b), ["stop"])
11434
11434
  }, " ✕ ", 8, Qp))
11435
11435
  ], 2))), 128)),
11436
11436
  S("input", Ce({
@@ -11448,20 +11448,20 @@ const xp = {
11448
11448
  "aria-label": e.ariaLabel,
11449
11449
  "aria-describedby": g(u).describedBy.value,
11450
11450
  "aria-invalid": g(u).status.value === "error" || void 0,
11451
- "aria-expanded": $.value,
11451
+ "aria-expanded": A.value,
11452
11452
  onInput: j,
11453
11453
  onKeydown: Y,
11454
11454
  onFocus: E[0] || (E[0] = (D) => m.value = !0),
11455
- onBlur: w
11455
+ onBlur: k
11456
11456
  }), null, 16, eb),
11457
- $.value ? (r(), f("ul", tb, [
11457
+ A.value ? (r(), f("ul", tb, [
11458
11458
  (r(!0), f(ye, null, Te(_.value, (D, b) => (r(), f("li", {
11459
11459
  key: D,
11460
11460
  class: ee(["wx-tags-input__option", { "is-highlighted": b === p.value }]),
11461
11461
  role: "option",
11462
11462
  "aria-selected": b === p.value,
11463
- onMousedown: Le((k) => N(D), ["prevent"]),
11464
- onMousemove: (k) => p.value = b
11463
+ onMousedown: Le(($) => N(D), ["prevent"]),
11464
+ onMousemove: ($) => p.value = b
11465
11465
  }, F(D), 43, ab))), 128))
11466
11466
  ])) : y("", !0)
11467
11467
  ]),
@@ -11565,16 +11565,16 @@ const xp = {
11565
11565
  const N = h.value, X = d.value;
11566
11566
  if (!N || !X) return;
11567
11567
  X.style.height = "auto";
11568
- const j = getComputedStyle(X), Y = Number.parseFloat(j.lineHeight) || 20, w = Number.parseFloat(j.paddingTop) + Number.parseFloat(j.paddingBottom) + Number.parseFloat(j.borderTopWidth) + Number.parseFloat(j.borderBottomWidth);
11569
- let A = X.scrollHeight;
11570
- N.minRows && (A = Math.max(A, N.minRows * Y + w)), N.maxRows && (A = Math.min(A, N.maxRows * Y + w)), X.style.height = `${A}px`, X.style.overflowY = N.maxRows && X.scrollHeight > A ? "auto" : "hidden";
11568
+ const j = getComputedStyle(X), Y = Number.parseFloat(j.lineHeight) || 20, k = Number.parseFloat(j.paddingTop) + Number.parseFloat(j.paddingBottom) + Number.parseFloat(j.borderTopWidth) + Number.parseFloat(j.borderBottomWidth);
11569
+ let T = X.scrollHeight;
11570
+ N.minRows && (T = Math.max(T, N.minRows * Y + k)), N.maxRows && (T = Math.min(T, N.maxRows * Y + k)), X.style.height = `${T}px`, X.style.overflowY = N.maxRows && X.scrollHeight > T ? "auto" : "hidden";
11571
11571
  }
11572
11572
  at(() => qe(_)), Se([m, h], () => qe(_));
11573
- function $(N) {
11573
+ function A(N) {
11574
11574
  const X = N.target.value;
11575
11575
  s.value = X, i("input", X);
11576
11576
  }
11577
- function T(N) {
11577
+ function w(N) {
11578
11578
  i("change", N.target.value);
11579
11579
  }
11580
11580
  function x(N) {
@@ -11605,8 +11605,8 @@ const xp = {
11605
11605
  "aria-describedby": g(u).describedBy.value,
11606
11606
  "aria-invalid": g(u).status.value === "error" || void 0,
11607
11607
  style: { resize: e.resize },
11608
- onInput: $,
11609
- onChange: T,
11608
+ onInput: A,
11609
+ onChange: w,
11610
11610
  onFocus: x,
11611
11611
  onBlur: H
11612
11612
  }), null, 16, ub),
@@ -11931,8 +11931,8 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
11931
11931
  right: n.value.map((D) => d.value.get(D)).filter((D) => !!D)
11932
11932
  }));
11933
11933
  function p(D, b) {
11934
- const k = b.trim().toLowerCase();
11935
- return k ? `${D.label ?? ""} ${D.description ?? ""} ${D.value}`.toLowerCase().includes(k) : !0;
11934
+ const $ = b.trim().toLowerCase();
11935
+ return $ ? `${D.label ?? ""} ${D.description ?? ""} ${D.value}`.toLowerCase().includes($) : !0;
11936
11936
  }
11937
11937
  const h = c(() => ({
11938
11938
  left: m.value.left.filter((D) => p(D, i.left)),
@@ -11946,32 +11946,32 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
11946
11946
  (b) => !b.disabled && B.value[D].has(b.value)
11947
11947
  );
11948
11948
  }
11949
- function $(D) {
11949
+ function A(D) {
11950
11950
  return h.value[D].filter((b) => !b.disabled);
11951
11951
  }
11952
- function T(D) {
11953
- const b = $(D);
11954
- return b.length > 0 && b.every((k) => B.value[D].has(k.value));
11952
+ function w(D) {
11953
+ const b = A(D);
11954
+ return b.length > 0 && b.every(($) => B.value[D].has($.value));
11955
11955
  }
11956
11956
  function x(D) {
11957
- return !T(D) && $(D).some((b) => B.value[D].has(b.value));
11957
+ return !w(D) && A(D).some((b) => B.value[D].has(b.value));
11958
11958
  }
11959
11959
  function H(D) {
11960
11960
  return D.label ?? String(D.value);
11961
11961
  }
11962
- function N(D, b, k) {
11963
- s[D] = k ? [...s[D], b] : s[D].filter((V) => V !== b);
11962
+ function N(D, b, $) {
11963
+ s[D] = $ ? [...s[D], b] : s[D].filter((V) => V !== b);
11964
11964
  }
11965
11965
  function X(D, b) {
11966
- const k = $(D).map((I) => I.value), V = new Set(k);
11967
- s[D] = b ? [...s[D].filter((I) => !V.has(I)), ...k] : s[D].filter((I) => !V.has(I));
11966
+ const $ = A(D).map((I) => I.value), V = new Set($);
11967
+ s[D] = b ? [...s[D].filter((I) => !V.has(I)), ...$] : s[D].filter((I) => !V.has(I));
11968
11968
  }
11969
11969
  function j(D, b) {
11970
11970
  if (!b.length) return;
11971
- const k = new Set(b);
11972
- n.value = D === "right" ? [...n.value, ...b] : n.value.filter((I) => !k.has(I));
11971
+ const $ = new Set(b);
11972
+ n.value = D === "right" ? [...n.value, ...b] : n.value.filter((I) => !$.has(I));
11973
11973
  const V = D === "right" ? "left" : "right";
11974
- s[V] = s[V].filter((I) => !k.has(I)), l("change", { values: b, to: D }), u.value = `${b.length} moved to ${t.titles[D === "right" ? 1 : 0]}.`;
11974
+ s[V] = s[V].filter((I) => !$.has(I)), l("change", { values: b, to: D }), u.value = `${b.length} moved to ${t.titles[D === "right" ? 1 : 0]}.`;
11975
11975
  }
11976
11976
  function Y(D) {
11977
11977
  t.disabled || j(
@@ -11979,10 +11979,10 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
11979
11979
  _(D === "right" ? "left" : "right").map((b) => b.value)
11980
11980
  );
11981
11981
  }
11982
- function w(D, b) {
11982
+ function k(D, b) {
11983
11983
  t.disabled || b.disabled || j(D === "left" ? "right" : "left", [b.value]);
11984
11984
  }
11985
- const A = c(() => ({ height: ea(t.height) })), E = c(() => [
11985
+ const T = c(() => ({ height: ea(t.height) })), E = c(() => [
11986
11986
  "wx-transfer",
11987
11987
  `wx-transfer--${t.size}`,
11988
11988
  { "is-disabled": t.disabled }
@@ -11991,24 +11991,24 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
11991
11991
  class: ee(E.value)
11992
11992
  }, [
11993
11993
  S("div", Wb, [
11994
- (r(), f(ye, null, Te(o, (k, V) => (r(), f(ye, { key: k }, [
11994
+ (r(), f(ye, null, Te(o, ($, V) => (r(), f(ye, { key: $ }, [
11995
11995
  S("section", Ib, [
11996
11996
  S("header", Lb, [
11997
11997
  U(Vt, {
11998
- "model-value": T(k),
11999
- indeterminate: x(k),
12000
- disabled: e.disabled || !$(k).length,
11998
+ "model-value": w($),
11999
+ indeterminate: x($),
12000
+ disabled: e.disabled || !A($).length,
12001
12001
  size: e.size,
12002
12002
  "aria-label": `Tick everything in ${e.titles[V]}`,
12003
- "onUpdate:modelValue": (I) => X(k, I)
12003
+ "onUpdate:modelValue": (I) => X($, I)
12004
12004
  }, null, 8, ["model-value", "indeterminate", "disabled", "size", "aria-label", "onUpdate:modelValue"]),
12005
12005
  S("span", Eb, F(e.titles[V]), 1),
12006
- S("span", Ob, F(s[k].length) + "/" + F(m.value[k].length), 1)
12006
+ S("span", Ob, F(s[$].length) + "/" + F(m.value[$].length), 1)
12007
12007
  ]),
12008
12008
  e.searchable ? (r(), f("div", Pb, [
12009
12009
  U(dl, {
12010
- modelValue: i[k],
12011
- "onUpdate:modelValue": (I) => i[k] = I,
12010
+ modelValue: i[$],
12011
+ "onUpdate:modelValue": (I) => i[$] = I,
12012
12012
  type: "search",
12013
12013
  size: "sm",
12014
12014
  clearable: "",
@@ -12019,23 +12019,23 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12019
12019
  ])) : y("", !0),
12020
12020
  S("ul", {
12021
12021
  class: "wx-transfer__list",
12022
- style: be(A.value)
12022
+ style: be(T.value)
12023
12023
  }, [
12024
- (r(!0), f(ye, null, Te(h.value[k], (I) => (r(), f("li", {
12024
+ (r(!0), f(ye, null, Te(h.value[$], (I) => (r(), f("li", {
12025
12025
  key: I.value,
12026
12026
  class: ee(["wx-transfer__item", { "is-disabled": I.disabled }]),
12027
- onDblclick: (L) => w(k, I)
12027
+ onDblclick: (L) => k($, I)
12028
12028
  }, [
12029
12029
  U(Vt, {
12030
- "model-value": B.value[k].has(I.value),
12030
+ "model-value": B.value[$].has(I.value),
12031
12031
  disabled: e.disabled || I.disabled,
12032
12032
  size: e.size,
12033
- "onUpdate:modelValue": (L) => N(k, I.value, L)
12033
+ "onUpdate:modelValue": (L) => N($, I.value, L)
12034
12034
  }, {
12035
12035
  default: P(() => [
12036
12036
  C(D.$slots, "item", {
12037
12037
  item: I,
12038
- side: k
12038
+ side: $
12039
12039
  }, () => [
12040
12040
  S("span", Rb, F(H(I)), 1),
12041
12041
  I.description ? (r(), f("span", Nb, F(I.description), 1)) : y("", !0)
@@ -12044,8 +12044,8 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12044
12044
  _: 2
12045
12045
  }, 1032, ["model-value", "disabled", "size", "onUpdate:modelValue"])
12046
12046
  ], 42, Vb))), 128)),
12047
- h.value[k].length ? y("", !0) : (r(), f("li", Fb, [
12048
- C(D.$slots, "empty", { side: k }, () => [
12047
+ h.value[$].length ? y("", !0) : (r(), f("li", Fb, [
12048
+ C(D.$slots, "empty", { side: $ }, () => [
12049
12049
  se(F(e.emptyText), 1)
12050
12050
  ], !0)
12051
12051
  ]))
@@ -12166,11 +12166,11 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12166
12166
  B.value.has(ae.key) || K.add(ae.key);
12167
12167
  return K;
12168
12168
  });
12169
- function $(K) {
12169
+ function A(K) {
12170
12170
  K.disabled || (s.value = K.key, n("select", K.node, K.key), l.expandOnClick && K.expandable && m.toggle(K.key));
12171
12171
  }
12172
- function T(K, ie) {
12173
- n("node-click", K.node, ie), $(K);
12172
+ function w(K, ie) {
12173
+ n("node-click", K.node, ie), A(K);
12174
12174
  }
12175
12175
  function x(K, ie) {
12176
12176
  const ae = new Set(u.value), ge = (Oe, Ee) => Ee ? ae.add(Oe) : ae.delete(Oe);
@@ -12210,18 +12210,18 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12210
12210
  via: ge
12211
12211
  }), !0);
12212
12212
  }
12213
- const w = G(null), A = G(null), E = G(null);
12213
+ const k = G(null), T = G(null), E = G(null);
12214
12214
  let D = null, b;
12215
- function k() {
12215
+ function $() {
12216
12216
  b && clearTimeout(b), b = void 0, D = null;
12217
12217
  }
12218
12218
  function V(K, ie) {
12219
12219
  if (!l.springDelay || ie !== "inside" || !K.expandable || K.expanded) {
12220
- k();
12220
+ $();
12221
12221
  return;
12222
12222
  }
12223
- D !== K.key && (k(), D = K.key, b = setTimeout(() => {
12224
- m.expand(K.key), n("expand", K.node), k();
12223
+ D !== K.key && ($(), D = K.key, b = setTimeout(() => {
12224
+ m.expand(K.key), n("expand", K.node), $();
12225
12225
  }, l.springDelay));
12226
12226
  }
12227
12227
  function I(K, ie) {
@@ -12229,27 +12229,27 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12229
12229
  ie.preventDefault();
12230
12230
  return;
12231
12231
  }
12232
- w.value = K.key, ie.dataTransfer?.setData("text/plain", String(K.key)), ie.dataTransfer && (ie.dataTransfer.effectAllowed = "move");
12232
+ k.value = K.key, ie.dataTransfer?.setData("text/plain", String(K.key)), ie.dataTransfer && (ie.dataTransfer.effectAllowed = "move");
12233
12233
  }
12234
12234
  function L(K, ie) {
12235
12235
  const ae = ie.getBoundingClientRect(), ge = (K.clientY - ae.top) / ae.height;
12236
12236
  return ge <= 0.3 ? "before" : ge >= 0.7 ? "after" : "inside";
12237
12237
  }
12238
12238
  function O(K, ie) {
12239
- if (w.value === null) return;
12239
+ if (k.value === null) return;
12240
12240
  const ae = L(ie, ie.currentTarget);
12241
- if (!m.canDrop(w.value, K.key, ae)) {
12242
- A.value = null, E.value = null, k();
12241
+ if (!m.canDrop(k.value, K.key, ae)) {
12242
+ T.value = null, E.value = null, $();
12243
12243
  return;
12244
12244
  }
12245
- ie.preventDefault(), ie.dataTransfer && (ie.dataTransfer.dropEffect = "move"), A.value = K.key, E.value = ae, V(K, ae);
12245
+ ie.preventDefault(), ie.dataTransfer && (ie.dataTransfer.dropEffect = "move"), T.value = K.key, E.value = ae, V(K, ae);
12246
12246
  }
12247
12247
  function le(K) {
12248
- w.value === null || E.value === null || A.value !== K.key || (Y(w.value, K.key, E.value, "pointer"), W());
12248
+ k.value === null || E.value === null || T.value !== K.key || (Y(k.value, K.key, E.value, "pointer"), W());
12249
12249
  }
12250
- Fe(k);
12250
+ Fe($);
12251
12251
  function W() {
12252
- k(), w.value = null, A.value = null, E.value = null;
12252
+ $(), k.value = null, T.value = null, E.value = null;
12253
12253
  }
12254
12254
  function M(K, ie) {
12255
12255
  if (!j(K)) return !1;
@@ -12309,10 +12309,10 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12309
12309
  ie.preventDefault(), he(p.value.length - 1);
12310
12310
  break;
12311
12311
  case "Enter":
12312
- ie.preventDefault(), $(K);
12312
+ ie.preventDefault(), A(K);
12313
12313
  break;
12314
12314
  case " ":
12315
- ie.preventDefault(), l.checkable ? x(K, !B.value.has(K.key)) : $(K);
12315
+ ie.preventDefault(), l.checkable ? x(K, !B.value.has(K.key)) : A(K);
12316
12316
  break;
12317
12317
  }
12318
12318
  }
@@ -12343,8 +12343,8 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12343
12343
  "is-selected": s.value === ae.key,
12344
12344
  "is-disabled": ae.disabled,
12345
12345
  "is-matched": ae.matched,
12346
- "is-dragging": w.value === ae.key,
12347
- [`is-drop-${E.value}`]: A.value === ae.key && E.value
12346
+ "is-dragging": k.value === ae.key,
12347
+ [`is-drop-${E.value}`]: T.value === ae.key && E.value
12348
12348
  }]),
12349
12349
  style: be({ "--wx-tree-depth": ae.depth }),
12350
12350
  "data-key": ae.key,
@@ -12358,7 +12358,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12358
12358
  "aria-checked": e.checkable ? B.value.has(ae.key) : void 0,
12359
12359
  "aria-disabled": ae.disabled || void 0,
12360
12360
  draggable: j(ae),
12361
- onClick: (ge) => T(ae, ge),
12361
+ onClick: (ge) => w(ae, ge),
12362
12362
  onKeydown: (ge) => We(ae, ge),
12363
12363
  onFocus: (ge) => R.value = ae.key,
12364
12364
  onDragstart: Le((ge) => I(ae, ge), ["stop"]),
@@ -12510,14 +12510,14 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12510
12510
  return O !== void 0 && m.key(O, []) === I;
12511
12511
  }) ?? [];
12512
12512
  }
12513
- const $ = c(
12513
+ const A = c(
12514
12514
  () => h.value.map((I) => p.entry(I)?.node ?? _(I).at(-1)).filter((I) => I !== void 0)
12515
- ), T = c(() => h.value.length > 0);
12515
+ ), w = c(() => h.value.length > 0);
12516
12516
  function x(I) {
12517
12517
  const L = p.path(I).map((W) => W.node), O = L.length ? L : _(I);
12518
12518
  return O.length ? (n.showPath ? O : O.slice(-1)).map((W) => m.label?.(W) ?? "").join(n.separator) : String(I);
12519
12519
  }
12520
- const H = c(() => h.value.join(",")), N = c(() => n.clearable && T.value && !s.disabled.value), X = c(() => [
12520
+ const H = c(() => h.value.join(",")), N = c(() => n.clearable && w.value && !s.disabled.value), X = c(() => [
12521
12521
  "wx-tree-select",
12522
12522
  `wx-tree-select--${s.size.value}`,
12523
12523
  `wx-tree-select--${s.status.value}`,
@@ -12530,12 +12530,12 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12530
12530
  maxHeight: typeof n.panelHeight == "number" ? `${n.panelHeight}px` : n.panelHeight
12531
12531
  }));
12532
12532
  function Y(I) {
12533
- i.value = I, o("change", I, $.value);
12533
+ i.value = I, o("change", I, A.value);
12534
12534
  }
12535
- function w(I, L) {
12535
+ function k(I, L) {
12536
12536
  n.multiple || L === null || (Y(L), u.value = !1);
12537
12537
  }
12538
- function A(I) {
12538
+ function T(I) {
12539
12539
  n.multiple && Y([...I]);
12540
12540
  }
12541
12541
  function E(I) {
@@ -12544,7 +12544,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12544
12544
  function D() {
12545
12545
  Y(n.multiple ? [] : null), o("clear");
12546
12546
  }
12547
- const b = G(null), k = bt("tree");
12547
+ const b = G(null), $ = bt("tree");
12548
12548
  function V(I) {
12549
12549
  I.target?.closest(".wx-tree__row") || I.key === "ArrowDown" && (I.preventDefault(), b.value?.querySelector('.wx-tree__row[tabindex="0"]')?.focus());
12550
12550
  }
@@ -12557,7 +12557,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12557
12557
  o("open"), await qe(), n.filterable && b.value?.closest(".wx-tree-select__panel")?.querySelector(".wx-tree-select__search-input")?.focus();
12558
12558
  for (const L of B.value) {
12559
12559
  const O = L.slice(0, -1).map((le) => m.key(le, []));
12560
- O.length && await k.value?.openPath(O);
12560
+ O.length && await $.value?.openPath(O);
12561
12561
  }
12562
12562
  await qe(), b.value?.querySelector('.wx-tree__row.is-selected, .wx-tree__row[aria-checked="true"]')?.scrollIntoView({ block: "nearest" });
12563
12563
  }), (I, L) => (r(), q(g(ia), {
@@ -12583,7 +12583,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12583
12583
  }), {
12584
12584
  default: P(() => [
12585
12585
  S("span", lg, [
12586
- T.value ? C(I.$slots, "value", { nodes: $.value }, () => [
12586
+ w.value ? C(I.$slots, "value", { nodes: A.value }, () => [
12587
12587
  e.multiple ? (r(!0), f(ye, { key: 0 }, Te(h.value, (O) => (r(), f("span", {
12588
12588
  key: String(O),
12589
12589
  class: "wx-tree-select__tag"
@@ -12661,7 +12661,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12661
12661
  }, [
12662
12662
  U(di, {
12663
12663
  ref_key: "tree",
12664
- ref: k,
12664
+ ref: $,
12665
12665
  "model-value": e.nodes,
12666
12666
  expanded: v.value,
12667
12667
  "onUpdate:expanded": L[1] || (L[1] = (O) => v.value = O),
@@ -12682,8 +12682,8 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12682
12682
  indent: 16,
12683
12683
  "empty-text": e.emptyText,
12684
12684
  "aria-label": e.ariaLabel ?? e.placeholder,
12685
- onSelect: w,
12686
- "onUpdate:checked": A
12685
+ onSelect: k,
12686
+ "onUpdate:checked": T
12687
12687
  }, oa({ _: 2 }, [
12688
12688
  I.$slots.node ? {
12689
12689
  name: "default",
@@ -12795,7 +12795,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12795
12795
  const H = ["B", "kB", "MB", "GB"], N = Math.min(Math.floor(Math.log(x) / Math.log(1024)), H.length - 1);
12796
12796
  return `${(x / 1024 ** N).toFixed(N === 0 ? 0 : 1)} ${H[N]}`;
12797
12797
  }
12798
- const $ = c(() => t.max !== void 0 && n.value.length >= t.max), T = c(() => [
12798
+ const A = c(() => t.max !== void 0 && n.value.length >= t.max), w = c(() => [
12799
12799
  "wx-upload",
12800
12800
  {
12801
12801
  "wx-upload--gallery": t.gallery,
@@ -12804,7 +12804,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12804
12804
  }
12805
12805
  ]);
12806
12806
  return (x, H) => (r(), f("div", {
12807
- class: ee(T.value)
12807
+ class: ee(w.value)
12808
12808
  }, [
12809
12809
  S("input", {
12810
12810
  ref_key: "input",
@@ -12819,7 +12819,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12819
12819
  }, null, 40, fg),
12820
12820
  e.buttonOnly ? (r(), q(Qe, {
12821
12821
  key: 0,
12822
- disabled: e.disabled || $.value,
12822
+ disabled: e.disabled || A.value,
12823
12823
  onClick: u
12824
12824
  }, {
12825
12825
  icon: P(() => [
@@ -12833,7 +12833,7 @@ const Tb = { class: "wx-toast__body" }, Ab = { class: "wx-toast__text" }, zb = 2
12833
12833
  key: 1,
12834
12834
  type: "button",
12835
12835
  class: "wx-upload__zone",
12836
- disabled: e.disabled || $.value,
12836
+ disabled: e.disabled || A.value,
12837
12837
  onClick: u,
12838
12838
  onDragenter: H[0] || (H[0] = Le((N) => i.value = !0, ["prevent"])),
12839
12839
  onDragover: H[1] || (H[1] = Le((N) => i.value = !0, ["prevent"])),
@@ -13031,50 +13031,50 @@ function Sg(e, a) {
13031
13031
  }
13032
13032
  function vi(e, a = {}) {
13033
13033
  let t, l;
13034
- const n = new Promise(($, T) => {
13035
- t = $, l = T;
13034
+ const n = new Promise((w, x) => {
13035
+ t = w, l = x;
13036
13036
  }), o = document.createElement("div");
13037
13037
  o.className = "wx-modal-host", (a.container ?? document.body).append(o);
13038
13038
  const i = G(!0);
13039
- let s = !1, u;
13040
- function d() {
13041
- clearTimeout(u), bn(null, o), o.remove();
13039
+ let s = !1, u, d = !1;
13040
+ function v() {
13041
+ d || (d = !0, clearTimeout(u), bn(null, o), o.remove());
13042
13042
  }
13043
- function v($) {
13044
- s || (s = !0, i.value = !1, t($), u = setTimeout(d, a.duration ?? 250));
13043
+ function m(w) {
13044
+ s || (s = !0, i.value = !1, t(w), u = setTimeout(v, a.duration ?? 250));
13045
13045
  }
13046
- const m = {
13046
+ const p = {
13047
13047
  isModal: !0,
13048
13048
  open: i,
13049
- resolve: ($) => v($),
13050
- dismiss: () => v(void 0)
13051
- }, p = {};
13052
- for (const $ of Gn(a.dismissOn, ["cancel", "close"]))
13053
- p[Xn($)] = () => v(void 0);
13054
- for (const $ of Gn(a.resolveOn, ["resolve"]))
13055
- p[Xn($)] = (T) => v(T);
13056
- const h = te({
13049
+ resolve: (w) => m(w),
13050
+ dismiss: () => m(void 0)
13051
+ }, h = {};
13052
+ for (const w of Gn(a.dismissOn, ["cancel", "close"]))
13053
+ h[Xn(w)] = () => m(void 0);
13054
+ for (const w of Gn(a.resolveOn, ["resolve"]))
13055
+ h[Xn(w)] = (x) => m(x);
13056
+ const B = te({
13057
13057
  name: "WxModalHost",
13058
13058
  setup() {
13059
- return lt(ci, m), Ei(($) => (s || (s = !0, l($)), d(), !1)), () => Dl(
13059
+ return lt(ci, p), Ei((w) => (s || (s = !0, l(w)), v(), !1)), () => Dl(
13060
13060
  e,
13061
13061
  {
13062
13062
  ...a.props,
13063
13063
  ...Sg(e, "open") ? {
13064
13064
  open: i.value,
13065
- "onUpdate:open": ($) => {
13066
- $ || v(void 0);
13065
+ "onUpdate:open": (w) => {
13066
+ w || m(void 0);
13067
13067
  }
13068
13068
  } : {},
13069
- ...p
13069
+ ...h
13070
13070
  },
13071
13071
  a.slots
13072
13072
  );
13073
13073
  }
13074
- }), B = Dl(h);
13075
- B.appContext = Mg(a.appContext) ?? null, bn(B, o);
13076
- const _ = n;
13077
- return _.close = ($) => v($), _;
13074
+ }), _ = Dl(B);
13075
+ _.appContext = Mg(a.appContext) ?? null, bn(_, o);
13076
+ const A = n;
13077
+ return A.close = (w) => m(w), A;
13078
13078
  }
13079
13079
  function Bg(e, a = {}) {
13080
13080
  return (t, l = {}) => vi(e, {