@webx-ui/core 0.34.1 → 0.34.3

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
@@ -975,7 +975,7 @@ const _l = /* @__PURE__ */ te({
975
975
  ])) : $("", !0)
976
976
  ], 6));
977
977
  }
978
- }), Nu = /* @__PURE__ */ ue(Ru, [["__scopeId", "data-v-db5ee31c"]]), Wa = /* @__PURE__ */ Symbol("wx-form"), jo = /* @__PURE__ */ Symbol("wx-form-item");
978
+ }), Nu = /* @__PURE__ */ ue(Ru, [["__scopeId", "data-v-44a6efad"]]), Wa = /* @__PURE__ */ Symbol("wx-form"), jo = /* @__PURE__ */ Symbol("wx-form-item");
979
979
  let Gn = 0;
980
980
  function xn(e = "wx") {
981
981
  return Gn += 1, `${e}-${Gn}`;
@@ -1756,7 +1756,7 @@ const yd = {
1756
1756
  }), J = f(() => {
1757
1757
  const w = i.value;
1758
1758
  return w == null || w === "" ? !1 : Array.isArray(w) ? w.length > 0 : !0;
1759
- }), D = f(() => {
1759
+ }), W = f(() => {
1760
1760
  const w = j.value;
1761
1761
  if (w.length === 0) {
1762
1762
  const _ = i.value;
@@ -1788,7 +1788,7 @@ const yd = {
1788
1788
  }
1789
1789
  }
1790
1790
  }
1791
- function W(w, _) {
1791
+ function D(w, _) {
1792
1792
  if (w.disabled) return;
1793
1793
  const ie = d.value.slice(0, _);
1794
1794
  d.value = [...ie, w], o("expand", d.value), n.lazy && !S(w, ie) && y([...ie, w]);
@@ -1800,10 +1800,10 @@ const yd = {
1800
1800
  function q(w, _) {
1801
1801
  if (w.disabled) return;
1802
1802
  const ie = d.value.slice(0, _), ae = [...ie, w], me = S(w, ie);
1803
- W(w, _), (me || n.checkStrictly) && E(ae), me && (u.value = !1);
1803
+ D(w, _), (me || n.checkStrictly) && E(ae), me && (u.value = !1);
1804
1804
  }
1805
1805
  function G(w, _) {
1806
- n.expandTrigger !== "hover" || w.disabled || S(w, d.value.slice(0, _)) || W(w, _);
1806
+ n.expandTrigger !== "hover" || w.disabled || S(w, d.value.slice(0, _)) || D(w, _);
1807
1807
  }
1808
1808
  function P() {
1809
1809
  i.value = n.emitPath ? [] : null, d.value = [], o("change", i.value), o("clear");
@@ -1844,7 +1844,7 @@ const yd = {
1844
1844
  break;
1845
1845
  case "ArrowRight": {
1846
1846
  if (!K || S(K, d.value.slice(0, ae))) return;
1847
- w.preventDefault(), W(K, ae), Fe(() => N(ae + 1, 0));
1847
+ w.preventDefault(), D(K, ae), Fe(() => N(ae + 1, 0));
1848
1848
  break;
1849
1849
  }
1850
1850
  case "ArrowLeft": {
@@ -1881,7 +1881,7 @@ const yd = {
1881
1881
  "aria-invalid": g(r).status.value === "error" || void 0
1882
1882
  }), {
1883
1883
  default: O(() => [
1884
- J.value ? (s(), v("span", Ed, R(D.value), 1)) : (s(), v("span", Od, R(e.placeholder), 1)),
1884
+ J.value ? (s(), v("span", Ed, R(W.value), 1)) : (s(), v("span", Od, R(e.placeholder), 1)),
1885
1885
  H(he, {
1886
1886
  class: "wx-cascader__arrow",
1887
1887
  name: "chevron-down"
@@ -2150,18 +2150,18 @@ const yd = {
2150
2150
  function b() {
2151
2151
  const y = qn[l.language].linter;
2152
2152
  if (!l.lint || !y) return [];
2153
- const W = y();
2153
+ const D = y();
2154
2154
  return Pr(
2155
2155
  async (E) => {
2156
- const q = (await W(E)).map((G) => I(G, E.state));
2156
+ const q = (await D(E)).map((G) => I(G, E.state));
2157
2157
  return n("lint", q.map(z)), q;
2158
2158
  },
2159
2159
  { delay: 300 }
2160
2160
  );
2161
2161
  }
2162
- function I(y, W) {
2162
+ function I(y, D) {
2163
2163
  if (y.from !== y.to) return y;
2164
- const E = W.doc.lineAt(y.from);
2164
+ const E = D.doc.lineAt(y.from);
2165
2165
  return y.from < E.to ? { ...y, to: E.to } : y.from > E.from ? { ...y, from: E.from } : y;
2166
2166
  }
2167
2167
  function z(y) {
@@ -2221,9 +2221,9 @@ const yd = {
2221
2221
  c.placeholder.of(F()),
2222
2222
  c.attributes.of(j()),
2223
2223
  c.extra.of(l.extensions),
2224
- ta.updateListener.of((W) => {
2225
- if (!W.docChanged) return;
2226
- const E = W.state.doc.toString();
2224
+ ta.updateListener.of((D) => {
2225
+ if (!D.docChanged) return;
2226
+ const E = D.state.doc.toString();
2227
2227
  o.value = E, n("change", E);
2228
2228
  }),
2229
2229
  ta.domEventHandlers({
@@ -2242,53 +2242,53 @@ const yd = {
2242
2242
  }), Ne(() => {
2243
2243
  u.value?.destroy(), u.value = null;
2244
2244
  }), be(o, (y) => {
2245
- const W = u.value;
2246
- if (!W) return;
2247
- const E = y ?? "", q = W.state.doc.toString();
2248
- E !== q && W.dispatch({ changes: { from: 0, to: q.length, insert: E } });
2245
+ const D = u.value;
2246
+ if (!D) return;
2247
+ const E = y ?? "", q = D.state.doc.toString();
2248
+ E !== q && D.dispatch({ changes: { from: 0, to: q.length, insert: E } });
2249
2249
  });
2250
- function D(y, W) {
2251
- u.value?.dispatch({ effects: y.reconfigure(W) });
2250
+ function W(y, D) {
2251
+ u.value?.dispatch({ effects: y.reconfigure(D) });
2252
2252
  }
2253
2253
  be(
2254
2254
  () => l.language,
2255
2255
  () => {
2256
- D(c.language, h()), D(c.lint, b());
2256
+ W(c.language, h()), W(c.lint, b());
2257
2257
  }
2258
2258
  ), be(
2259
2259
  () => l.lint,
2260
- () => D(c.lint, b())
2261
- ), be(m, () => D(c.editable, S())), be(
2260
+ () => W(c.lint, b())
2261
+ ), be(m, () => W(c.editable, S())), be(
2262
2262
  () => l.lineNumbers,
2263
- () => D(c.gutter, C())
2263
+ () => W(c.gutter, C())
2264
2264
  ), be(
2265
2265
  () => l.lineWrapping,
2266
- () => D(c.wrapping, M())
2266
+ () => W(c.wrapping, M())
2267
2267
  ), be(
2268
2268
  () => l.tabSize,
2269
- () => D(c.indent, V())
2269
+ () => W(c.indent, V())
2270
2270
  ), be(
2271
2271
  () => l.placeholder,
2272
- () => D(c.placeholder, F())
2272
+ () => W(c.placeholder, F())
2273
2273
  ), be(
2274
2274
  [() => l.ariaLabel, i.id, i.describedBy, i.status, i.disabled],
2275
- () => D(c.attributes, j())
2275
+ () => W(c.attributes, j())
2276
2276
  ), be(
2277
2277
  () => l.extensions,
2278
- (y) => D(c.extra, y)
2278
+ (y) => W(c.extra, y)
2279
2279
  );
2280
2280
  function x() {
2281
2281
  const y = u.value;
2282
2282
  if (!y || l.language !== "json" || !m.value) return !1;
2283
- const W = y.state.doc.toString();
2283
+ const D = y.state.doc.toString();
2284
2284
  let E;
2285
2285
  try {
2286
- E = JSON.parse(W);
2286
+ E = JSON.parse(D);
2287
2287
  } catch {
2288
2288
  return !1;
2289
2289
  }
2290
2290
  const q = JSON.stringify(E, null, l.tabSize);
2291
- return q !== W && y.dispatch({ changes: { from: 0, to: W.length, insert: q } }), !0;
2291
+ return q !== D && y.dispatch({ changes: { from: 0, to: D.length, insert: q } }), !0;
2292
2292
  }
2293
2293
  const k = f(() => [
2294
2294
  "wx-code-editor",
@@ -2307,7 +2307,7 @@ const yd = {
2307
2307
  view: u,
2308
2308
  focus: () => u.value?.focus(),
2309
2309
  format: x
2310
- }), (y, W) => (s(), v("div", {
2310
+ }), (y, D) => (s(), v("div", {
2311
2311
  class: Q(k.value),
2312
2312
  style: ye(A.value)
2313
2313
  }, [
@@ -2485,7 +2485,7 @@ const yd = {
2485
2485
  function J() {
2486
2486
  C(null), m.value = "";
2487
2487
  }
2488
- function D() {
2488
+ function W() {
2489
2489
  !u.disabled.value && !o.readonly && (d.value = !0);
2490
2490
  }
2491
2491
  return (x, k) => (s(), X(g(Kt), {
@@ -2498,7 +2498,7 @@ const yd = {
2498
2498
  default: O(() => [
2499
2499
  T("div", {
2500
2500
  class: "wx-color-picker__field",
2501
- onClick: D
2501
+ onClick: W
2502
2502
  }, [
2503
2503
  T("button", {
2504
2504
  class: Q(["wx-color-picker__swatch", { "is-empty": !z.value }]),
@@ -3434,7 +3434,7 @@ const Gc = {
3434
3434
  y: z.value.y ?? 0
3435
3435
  }, N === "move" ? V.value = !0 : F.value = !0, window.addEventListener("pointermove", k), window.addEventListener("pointerup", y), window.addEventListener("pointercancel", y), p.preventDefault();
3436
3436
  }
3437
- function D(N) {
3437
+ function W(N) {
3438
3438
  !b.value || N.target?.closest("button, a, input, select, textarea, [contenteditable]") || J("move", N);
3439
3439
  }
3440
3440
  function x(N) {
@@ -3466,7 +3466,7 @@ const Gc = {
3466
3466
  function y() {
3467
3467
  j && (j = null, V.value = !1, F.value = !1, A(), S.write(z.value), n("layout", { ...z.value }));
3468
3468
  }
3469
- function W() {
3469
+ function D() {
3470
3470
  z.value = {}, S.clear();
3471
3471
  }
3472
3472
  function E() {
@@ -3499,7 +3499,7 @@ const Gc = {
3499
3499
  function U() {
3500
3500
  l.closeOnOverlay && r();
3501
3501
  }
3502
- return a({ close: r, reset: W }), (N, p) => (s(), X(g(Do), {
3502
+ return a({ close: r, reset: D }), (N, p) => (s(), X(g(Do), {
3503
3503
  open: o.value,
3504
3504
  "onUpdate:open": p[0] || (p[0] = (w) => o.value = w),
3505
3505
  modal: e.modal
@@ -3546,7 +3546,7 @@ const Gc = {
3546
3546
  d.value ? (s(), v("header", {
3547
3547
  key: 0,
3548
3548
  class: "wx-dialog__head",
3549
- onPointerdown: D
3549
+ onPointerdown: W
3550
3550
  }, [
3551
3551
  H(g(hl), {
3552
3552
  class: Q(["wx-dialog__title", { "wx-sr-only": !u.value }])
@@ -3709,9 +3709,9 @@ const Gc = {
3709
3709
  return ka(P + p, l.minSize, F());
3710
3710
  }
3711
3711
  function J(P) {
3712
- !l.resizable || P.button !== 0 || P.pointerType === "touch" || (C = { pointerX: P.clientX, pointerY: P.clientY, size: V(M(P)) }, S.value = !0, window.addEventListener("pointermove", D), window.addEventListener("pointerup", k), window.addEventListener("pointercancel", k), P.preventDefault());
3712
+ !l.resizable || P.button !== 0 || P.pointerType === "touch" || (C = { pointerX: P.clientX, pointerY: P.clientY, size: V(M(P)) }, S.value = !0, window.addEventListener("pointermove", W), window.addEventListener("pointerup", k), window.addEventListener("pointercancel", k), P.preventDefault());
3713
3713
  }
3714
- function D(P) {
3714
+ function W(P) {
3715
3715
  C && (b.value = {
3716
3716
  size: j(
3717
3717
  C.size,
@@ -3721,7 +3721,7 @@ const Gc = {
3721
3721
  });
3722
3722
  }
3723
3723
  function x() {
3724
- window.removeEventListener("pointermove", D), window.removeEventListener("pointerup", k), window.removeEventListener("pointercancel", k);
3724
+ window.removeEventListener("pointermove", W), window.removeEventListener("pointerup", k), window.removeEventListener("pointercancel", k);
3725
3725
  }
3726
3726
  function k() {
3727
3727
  C && (C = null, S.value = !1, x(), y());
@@ -3739,7 +3739,7 @@ const Gc = {
3739
3739
  function y() {
3740
3740
  I.write(b.value), n("layout", { ...b.value });
3741
3741
  }
3742
- function W() {
3742
+ function D() {
3743
3743
  b.value = {}, I.clear();
3744
3744
  }
3745
3745
  function E() {
@@ -3759,7 +3759,7 @@ const Gc = {
3759
3759
  function G(P) {
3760
3760
  l.closeOnOverlay || P.preventDefault();
3761
3761
  }
3762
- return a({ close: r, reset: W }), (P, U) => (s(), X(g(Do), {
3762
+ return a({ close: r, reset: D }), (P, U) => (s(), X(g(Do), {
3763
3763
  open: o.value,
3764
3764
  "onUpdate:open": U[0] || (U[0] = (N) => o.value = N),
3765
3765
  modal: e.modal
@@ -4323,7 +4323,7 @@ const Rf = { class: "wx-locale-picker" }, Nf = ["aria-label"], Ff = ["aria-label
4323
4323
  function J() {
4324
4324
  c.write(h.value, ""), i("input", ""), i("change", ""), i("clear"), d.value?.focus();
4325
4325
  }
4326
- function D(x) {
4326
+ function W(x) {
4327
4327
  c.active.value = x, Fe(() => d.value?.focus());
4328
4328
  }
4329
4329
  return a({
@@ -4379,7 +4379,7 @@ const Rf = { class: "wx-locale-picker" }, Nf = ["aria-label"], Ff = ["aria-label
4379
4379
  key: 4,
4380
4380
  locales: g(c).list.value,
4381
4381
  active: g(c).active.value,
4382
- onChoose: D
4382
+ onChoose: W
4383
4383
  }, null, 8, ["locales", "active"])) : $("", !0)
4384
4384
  ], 16));
4385
4385
  }
@@ -4754,7 +4754,7 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
4754
4754
  M.value = !1, l("remove");
4755
4755
  }
4756
4756
  const J = Y(!1);
4757
- let D;
4757
+ let W;
4758
4758
  async function x() {
4759
4759
  const N = t.url;
4760
4760
  if (N)
@@ -4773,7 +4773,7 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
4773
4773
  }
4774
4774
  }
4775
4775
  function k(N) {
4776
- J.value = !0, clearTimeout(D), D = setTimeout(() => {
4776
+ J.value = !0, clearTimeout(W), W = setTimeout(() => {
4777
4777
  J.value = !1;
4778
4778
  }, 1600), l("copy", N);
4779
4779
  }
@@ -4789,12 +4789,12 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
4789
4789
  return p.remove(), w;
4790
4790
  }
4791
4791
  Ne(() => {
4792
- clearTimeout(D), z();
4792
+ clearTimeout(W), z();
4793
4793
  for (const N of h.splice(0)) clearTimeout(N);
4794
4794
  });
4795
- const y = wt("label"), W = Xt(y), E = Y(!1);
4795
+ const y = wt("label"), D = Xt(y), E = Y(!1);
4796
4796
  be(
4797
- [W, () => t.name],
4797
+ [D, () => t.name],
4798
4798
  async () => {
4799
4799
  await Fe();
4800
4800
  const N = y.value;
@@ -5338,12 +5338,12 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
5338
5338
  return;
5339
5339
  }
5340
5340
  Fe(() => {
5341
- const J = F.value, D = J?.querySelector(".is-current");
5342
- J && D && (J.scrollTop = D.offsetTop - J.clientHeight / 2);
5341
+ const J = F.value, W = J?.querySelector(".is-current");
5342
+ J && W && (J.scrollTop = W.offsetTop - J.clientHeight / 2);
5343
5343
  });
5344
5344
  }), (j, J) => (s(), X(g(Kt), {
5345
5345
  open: u.value,
5346
- "onUpdate:open": J[1] || (J[1] = (D) => u.value = D)
5346
+ "onUpdate:open": J[1] || (J[1] = (W) => u.value = W)
5347
5347
  }, {
5348
5348
  default: O(() => [
5349
5349
  T("div", Me({ class: I.value }, g(o)), [
@@ -5416,18 +5416,18 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
5416
5416
  ref: F,
5417
5417
  class: "wx-icon-picker__grid"
5418
5418
  }, [
5419
- (s(!0), v(ge, null, xe(b.value, (D) => (s(), v("button", {
5420
- key: D,
5419
+ (s(!0), v(ge, null, xe(b.value, (W) => (s(), v("button", {
5420
+ key: W,
5421
5421
  type: "button",
5422
- class: Q(["wx-icon-picker__option", { "is-current": D === n.value }]),
5423
- title: D,
5424
- onClick: (x) => z(D)
5422
+ class: Q(["wx-icon-picker__option", { "is-current": W === n.value }]),
5423
+ title: W,
5424
+ onClick: (x) => z(W)
5425
5425
  }, [
5426
5426
  H(he, {
5427
- name: D,
5427
+ name: W,
5428
5428
  size: "lg"
5429
5429
  }, null, 8, ["name"]),
5430
- T("span", Iv, R(D), 1)
5430
+ T("span", Iv, R(W), 1)
5431
5431
  ], 10, Dv))), 128))
5432
5432
  ], 512)) : (s(), v("p", Ev, R(e.emptyText), 1))
5433
5433
  ]),
@@ -5513,7 +5513,7 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
5513
5513
  const q = I.value ?? b(0), G = b(q + E * o.step);
5514
5514
  j(G), S.value = z(G);
5515
5515
  }
5516
- function D(E) {
5516
+ function W(E) {
5517
5517
  S.value = E.target.value;
5518
5518
  const q = Number.parseFloat(S.value);
5519
5519
  S.value === "" ? j(null) : Number.isFinite(q) && j(h(q));
@@ -5540,7 +5540,7 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
5540
5540
  function y(E) {
5541
5541
  !o.wheel || !m.value || C.value || o.readonly || (E.preventDefault(), J(E.deltaY < 0 ? 1 : -1));
5542
5542
  }
5543
- function W(E) {
5543
+ function D(E) {
5544
5544
  E.key === "ArrowUp" ? (E.preventDefault(), J(1)) : E.key === "ArrowDown" ? (E.preventDefault(), J(-1)) : E.key === "Enter" && x();
5545
5545
  }
5546
5546
  return a({
@@ -5593,10 +5593,10 @@ const ov = { class: "wx-file-card__preview" }, iv = { class: "wx-file-card__file
5593
5593
  "aria-valuenow": I.value ?? void 0,
5594
5594
  "aria-valuemin": e.min,
5595
5595
  "aria-valuemax": e.max,
5596
- onInput: D,
5596
+ onInput: W,
5597
5597
  onFocus: k,
5598
5598
  onBlur: A,
5599
- onKeydown: W,
5599
+ onKeydown: D,
5600
5600
  onWheel: y
5601
5601
  }), null, 16, Rv),
5602
5602
  e.controls ? (s(), v("button", {
@@ -6017,7 +6017,7 @@ const sm = { class: "wx-image-editor__stage" }, rm = { class: "wx-image-editor__
6017
6017
  function J(ce, oe) {
6018
6018
  typeof oe == "number" && (M.value = { ...M.value, [ce]: oe }, y.value = !0);
6019
6019
  }
6020
- function D() {
6020
+ function W() {
6021
6021
  y.value = !0;
6022
6022
  }
6023
6023
  const x = f(
@@ -6025,20 +6025,20 @@ const sm = { class: "wx-image-editor__stage" }, rm = { class: "wx-image-editor__
6025
6025
  ), k = f(() => (l.ratios ?? (l.aspect === void 0 ? ["free", "original", 1, 1.3333333333333333, 1.5, 1.7777777777777777] : [])).map((oe) => {
6026
6026
  const pe = typeof oe == "object" ? oe : { value: oe };
6027
6027
  return pe.label ? pe : pe.value === "free" ? { ...pe, label: l.freeLabel } : pe.value === "original" ? { ...pe, label: l.originalLabel } : { ...pe, label: vi(pe.value) };
6028
- })), A = Y("free"), y = Y(!1), W = f(() => {
6028
+ })), A = Y("free"), y = Y(!1), D = f(() => {
6029
6029
  if (l.aspect) return l.aspect;
6030
6030
  if (A.value !== "free")
6031
6031
  return A.value === "original" ? x.value.height ? x.value.width / x.value.height : void 0 : A.value;
6032
6032
  });
6033
6033
  function E(ce) {
6034
- ce !== void 0 && (A.value = ce, y.value = !0, W.value && ne(sn(S.value, W.value, x.value)));
6034
+ ce !== void 0 && (A.value = ce, y.value = !0, D.value && ne(sn(S.value, D.value, x.value)));
6035
6035
  }
6036
6036
  function q({ loaded: ce = !0 } = {}) {
6037
6037
  if (b.value = 0, I.value = !1, z.value = !1, C.value = null, M.value = { ...ra }, A.value = l.ratio ?? k.value[0]?.value ?? "free", c.value = !1, y.value = !1, !ce) {
6038
6038
  m.value = !1, d.value = { width: 0, height: 0 }, S.value = { x: 0, y: 0, width: 0, height: 0 };
6039
6039
  return;
6040
6040
  }
6041
- S.value = em(x.value, W.value);
6041
+ S.value = em(x.value, D.value);
6042
6042
  }
6043
6043
  be(
6044
6044
  () => l.src,
@@ -6109,7 +6109,7 @@ const sm = { class: "wx-image-editor__stage" }, rm = { class: "wx-image-editor__
6109
6109
  }
6110
6110
  ne(
6111
6111
  to(oe.handle, pe, oe.start, x.value, {
6112
- ratio: W.value,
6112
+ ratio: D.value,
6113
6113
  min: l.minSize
6114
6114
  })
6115
6115
  );
@@ -6133,13 +6133,13 @@ const sm = { class: "wx-image-editor__stage" }, rm = { class: "wx-image-editor__
6133
6133
  y: S.value.y + S.value.height + Ze
6134
6134
  };
6135
6135
  ne(
6136
- to("se", pt, S.value, x.value, { ratio: W.value, min: l.minSize })
6136
+ to("se", pt, S.value, x.value, { ratio: D.value, min: l.minSize })
6137
6137
  );
6138
6138
  }
6139
6139
  function le(ce) {
6140
6140
  if (l.disabled || !m.value) return;
6141
6141
  const oe = x.value;
6142
- S.value = tm(S.value, oe, ce), b.value = (b.value + ce * 90 + 360) % 360, y.value = !0, W.value && (S.value = sn(S.value, W.value, x.value)), n("crop", zt(S.value));
6142
+ S.value = tm(S.value, oe, ce), b.value = (b.value + ce * 90 + 360) % 360, y.value = !0, D.value && (S.value = sn(S.value, D.value, x.value)), n("crop", zt(S.value));
6143
6143
  }
6144
6144
  function Te(ce) {
6145
6145
  if (l.disabled || !m.value) return;
@@ -6420,7 +6420,7 @@ const sm = { class: "wx-image-editor__stage" }, rm = { class: "wx-image-editor__
6420
6420
  "onUpdate:modelValue": oe[6] || (oe[6] = (pe) => M.value.mono = pe),
6421
6421
  label: e.monoLabel,
6422
6422
  size: "sm",
6423
- onChange: D
6423
+ onChange: W
6424
6424
  }, null, 8, ["modelValue", "label"])
6425
6425
  ])
6426
6426
  ]),
@@ -7479,16 +7479,16 @@ Be.prototype = /** @lends Sortable.prototype */
7479
7479
  return S(), a.insertBefore(fe, F), Ue = a, M(), C(!0);
7480
7480
  } else if (t.parentNode === a) {
7481
7481
  n = Xe(t);
7482
- var j = 0, J, D = fe.parentNode !== a, x = !Jm(fe.animated && fe.toRect || l, t.animated && t.toRect || n, h), k = h ? "top" : "left", A = fo(t, "top", "top") || fo(fe, "top", "top"), y = A ? A.scrollTop : void 0;
7483
- ia !== t && (J = n[k], Aa = !1, ll = !x && i.invertSwap || D), j = ih(e, t, n, h, x ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, ll, ia === t);
7484
- var W;
7482
+ var j = 0, J, W = fe.parentNode !== a, x = !Jm(fe.animated && fe.toRect || l, t.animated && t.toRect || n, h), k = h ? "top" : "left", A = fo(t, "top", "top") || fo(fe, "top", "top"), y = A ? A.scrollTop : void 0;
7483
+ ia !== t && (J = n[k], Aa = !1, ll = !x && i.invertSwap || W), j = ih(e, t, n, h, x ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, ll, ia === t);
7484
+ var D;
7485
7485
  if (j !== 0) {
7486
7486
  var E = ht(fe);
7487
7487
  do
7488
- E -= j, W = Ue.children[E];
7489
- while (W && (Se(W, "display") === "none" || W === Le));
7488
+ E -= j, D = Ue.children[E];
7489
+ while (D && (Se(D, "display") === "none" || D === Le));
7490
7490
  }
7491
- if (j === 0 || W === t)
7491
+ if (j === 0 || D === t)
7492
7492
  return C(!1);
7493
7493
  ia = t, La = j;
7494
7494
  var q = t.nextElementSibling, G = !1;
@@ -7827,13 +7827,13 @@ var Ql = Mi(function(e, a, t, l) {
7827
7827
  dn !== t && (dn = t, vl(), _a = a.scroll, m = a.scrollFn, _a === !0 && (_a = Et(t, !0)));
7828
7828
  var c = 0, h = _a;
7829
7829
  do {
7830
- var b = h, I = Xe(b), z = I.top, S = I.bottom, C = I.left, M = I.right, V = I.width, F = I.height, j = void 0, J = void 0, D = b.scrollWidth, x = b.scrollHeight, k = Se(b), A = b.scrollLeft, y = b.scrollTop;
7831
- b === u ? (j = V < D && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), J = F < x && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (j = V < D && (k.overflowX === "auto" || k.overflowX === "scroll"), J = F < x && (k.overflowY === "auto" || k.overflowY === "scroll"));
7832
- var W = j && (Math.abs(M - n) <= i && A + V < D) - (Math.abs(C - n) <= i && !!A), E = J && (Math.abs(S - o) <= i && y + F < x) - (Math.abs(z - o) <= i && !!y);
7830
+ var b = h, I = Xe(b), z = I.top, S = I.bottom, C = I.left, M = I.right, V = I.width, F = I.height, j = void 0, J = void 0, W = b.scrollWidth, x = b.scrollHeight, k = Se(b), A = b.scrollLeft, y = b.scrollTop;
7831
+ b === u ? (j = V < W && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), J = F < x && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (j = V < W && (k.overflowX === "auto" || k.overflowX === "scroll"), J = F < x && (k.overflowY === "auto" || k.overflowY === "scroll"));
7832
+ var D = j && (Math.abs(M - n) <= i && A + V < W) - (Math.abs(C - n) <= i && !!A), E = J && (Math.abs(S - o) <= i && y + F < x) - (Math.abs(z - o) <= i && !!y);
7833
7833
  if (!Ye[c])
7834
7834
  for (var q = 0; q <= c; q++)
7835
7835
  Ye[q] || (Ye[q] = {});
7836
- (Ye[c].vx != W || Ye[c].vy != E || Ye[c].el !== b) && (Ye[c].el = b, Ye[c].vx = W, Ye[c].vy = E, clearInterval(Ye[c].pid), (W != 0 || E != 0) && (d = !0, Ye[c].pid = setInterval(function() {
7836
+ (Ye[c].vx != D || Ye[c].vy != E || Ye[c].el !== b) && (Ye[c].el = b, Ye[c].vx = D, Ye[c].vy = E, clearInterval(Ye[c].pid), (D != 0 || E != 0) && (d = !0, Ye[c].pid = setInterval(function() {
7837
7837
  l && this.layer === 0 && Be.active._onTouchMove(xl);
7838
7838
  var G = Ye[this.layer].vy ? Ye[this.layer].vy * r : 0, P = Ye[this.layer].vx ? Ye[this.layer].vx * r : 0;
7839
7839
  typeof m == "function" && m.call(Be.dragged.parentNode[ft], P, G, e, xl, Ye[this.layer].el) !== "continue" || Ci(Ye[this.layer].el, P, G);
@@ -7925,7 +7925,7 @@ function hh(...e) {
7925
7925
  } = (t = g(r)) != null ? t : {};
7926
7926
  function I(A) {
7927
7927
  var y;
7928
- const { from: W, oldIndex: E, item: q } = A, G = Array.from(W.childNodes);
7928
+ const { from: D, oldIndex: E, item: q } = A, G = Array.from(D.childNodes);
7929
7929
  n = c && !h ? G.slice(0, -1) : G;
7930
7930
  const P = g((y = g(i)) == null ? void 0 : y[E]), U = m(P);
7931
7931
  go(P, U), q[yo] = U;
@@ -7934,16 +7934,16 @@ function hh(...e) {
7934
7934
  const y = A.item[yo];
7935
7935
  if (!Am(y)) {
7936
7936
  if (Hl(A.item), Ca(i)) {
7937
- const W = [...g(i)];
7938
- i.value = oo(W, A.newDraggableIndex, y);
7937
+ const D = [...g(i)];
7938
+ i.value = oo(D, A.newDraggableIndex, y);
7939
7939
  return;
7940
7940
  }
7941
7941
  oo(g(i), A.newDraggableIndex, y);
7942
7942
  }
7943
7943
  }
7944
7944
  function S(A) {
7945
- const { from: y, item: W, oldIndex: E, oldDraggableIndex: q, pullMode: G, clone: P } = A;
7946
- if (io(y, W, E), G === "clone") {
7945
+ const { from: y, item: D, oldIndex: E, oldDraggableIndex: q, pullMode: G, clone: P } = A;
7946
+ if (io(y, D, E), G === "clone") {
7947
7947
  Hl(P);
7948
7948
  return;
7949
7949
  }
@@ -7959,8 +7959,8 @@ function hh(...e) {
7959
7959
  b(A);
7960
7960
  return;
7961
7961
  }
7962
- const { from: y, item: W, oldIndex: E, oldDraggableIndex: q, newDraggableIndex: G } = A;
7963
- if (Hl(W), io(y, W, E), Ca(i)) {
7962
+ const { from: y, item: D, oldIndex: E, oldDraggableIndex: q, newDraggableIndex: G } = A;
7963
+ if (Hl(D), io(y, D, E), Ca(i)) {
7964
7964
  const P = [...g(i)];
7965
7965
  i.value = lo(
7966
7966
  P,
@@ -7972,9 +7972,9 @@ function hh(...e) {
7972
7972
  lo(g(i), q, G);
7973
7973
  }
7974
7974
  function M(A) {
7975
- const { newIndex: y, oldIndex: W, from: E, to: q } = A;
7975
+ const { newIndex: y, oldIndex: D, from: E, to: q } = A;
7976
7976
  let G = null;
7977
- const P = y === W && E === q;
7977
+ const P = y === D && E === q;
7978
7978
  try {
7979
7979
  if (P) {
7980
7980
  let U = null;
@@ -8008,7 +8008,7 @@ function hh(...e) {
8008
8008
  }
8009
8009
  function j() {
8010
8010
  var A;
8011
- const y = (A = g(r)) != null ? A : {}, { immediate: W, clone: E } = y, q = yi(y, ["immediate", "clone"]);
8011
+ const y = (A = g(r)) != null ? A : {}, { immediate: D, clone: E } = y, q = yi(y, ["immediate", "clone"]);
8012
8012
  return so(q, (G, P) => {
8013
8013
  Om(G) && (q[G] = (U, ...N) => {
8014
8014
  const p = mh();
@@ -8020,7 +8020,7 @@ function hh(...e) {
8020
8020
  );
8021
8021
  }
8022
8022
  const J = (A) => {
8023
- A = F(A), u && D.destroy(), u = new Be(A, j());
8023
+ A = F(A), u && W.destroy(), u = new Be(A, j());
8024
8024
  };
8025
8025
  be(
8026
8026
  () => r,
@@ -8031,7 +8031,7 @@ function hh(...e) {
8031
8031
  },
8032
8032
  { deep: !0 }
8033
8033
  );
8034
- const D = {
8034
+ const W = {
8035
8035
  option: (A, y) => u?.option(A, y),
8036
8036
  destroy: () => {
8037
8037
  u?.destroy(), u = null;
@@ -8039,10 +8039,10 @@ function hh(...e) {
8039
8039
  save: () => u?.save(),
8040
8040
  toArray: () => u?.toArray(),
8041
8041
  closest: (...A) => u?.closest(...A)
8042
- }, x = () => D?.option("disabled", !0), k = () => D?.option("disabled", !1);
8042
+ }, x = () => W?.option("disabled", !0), k = () => W?.option("disabled", !1);
8043
8043
  return vh(() => {
8044
8044
  d && J();
8045
- }), fh(D.destroy), ua({ start: J, pause: x, resume: k }, D);
8045
+ }), fh(W.destroy), ua({ start: J, pause: x, resume: k }, W);
8046
8046
  }
8047
8047
  const fn = [
8048
8048
  "update",
@@ -8241,14 +8241,14 @@ const fn = [
8241
8241
  const ie = l.columns[_];
8242
8242
  ie && n("column-move", { column: ie, from: w, to: _, via: "pointer" });
8243
8243
  }
8244
- const D = Y(null), x = Y(null), k = Y("");
8244
+ const W = Y(null), x = Y(null), k = Y("");
8245
8245
  function A(p) {
8246
- return D.value?.id === p.id;
8246
+ return W.value?.id === p.id;
8247
8247
  }
8248
8248
  function y(p) {
8249
8249
  return x.value?.id === p.id;
8250
8250
  }
8251
- function W(p, w) {
8251
+ function D(p, w) {
8252
8252
  return `${w.items.indexOf(p) + 1} of ${w.items.length}`;
8253
8253
  }
8254
8254
  async function E(p, w) {
@@ -8264,14 +8264,14 @@ const fn = [
8264
8264
  if (p.target !== p.currentTarget || h(_)) return;
8265
8265
  const ae = A(w);
8266
8266
  if (p.key === " " || p.key === "Spacebar" || p.key === "Enter") {
8267
- p.preventDefault(), ae ? (D.value = null, k.value = `Dropped ${I(w)} in ${z(_)}, ${W(w, _)}.`) : (D.value = { id: w.id, column: _.id, origin: { column: _.id, index: ie } }, k.value = `Picked up ${I(w)}. Use the arrow keys to move it, space to drop it, escape to put it back.`);
8267
+ p.preventDefault(), ae ? (W.value = null, k.value = `Dropped ${I(w)} in ${z(_)}, ${D(w, _)}.`) : (W.value = { id: w.id, column: _.id, origin: { column: _.id, index: ie } }, k.value = `Picked up ${I(w)}. Use the arrow keys to move it, space to drop it, escape to put it back.`);
8268
8268
  return;
8269
8269
  }
8270
8270
  if (!ae) return;
8271
8271
  if (p.key === "Escape") {
8272
8272
  p.preventDefault();
8273
- const K = D.value;
8274
- if (D.value = null, !K) return;
8273
+ const K = W.value;
8274
+ if (W.value = null, !K) return;
8275
8275
  const se = b(K.column), ne = b(K.origin.column);
8276
8276
  if (se && ne) {
8277
8277
  const ke = se.items.indexOf(w);
@@ -8290,7 +8290,7 @@ const fn = [
8290
8290
  }
8291
8291
  function G(p, w, _) {
8292
8292
  const ie = w.items.indexOf(p), ae = ie + _;
8293
- ae < 0 || ae >= w.items.length || (M(w, ie, w, ae, "keyboard"), k.value = `${I(p)} is now ${W(p, w)} in ${z(w)}.`, E("data-card-id", p.id));
8293
+ ae < 0 || ae >= w.items.length || (M(w, ie, w, ae, "keyboard"), k.value = `${I(p)} is now ${D(p, w)} in ${z(w)}.`, E("data-card-id", p.id));
8294
8294
  }
8295
8295
  function P(p, w, _) {
8296
8296
  const ie = l.columns.indexOf(w);
@@ -8298,7 +8298,7 @@ const fn = [
8298
8298
  const me = l.columns[ae];
8299
8299
  if (h(me) || m(me)) continue;
8300
8300
  const ze = w.items.indexOf(p);
8301
- M(w, ze, me, Math.min(ze, me.items.length), "keyboard"), D.value && (D.value = { ...D.value, column: me.id }), k.value = `${I(p)} moved to ${z(me)}, ${W(p, me)}.`, E("data-card-id", p.id);
8301
+ M(w, ze, me, Math.min(ze, me.items.length), "keyboard"), W.value && (W.value = { ...W.value, column: me.id }), k.value = `${I(p)} moved to ${z(me)}, ${D(p, me)}.`, E("data-card-id", p.id);
8302
8302
  return;
8303
8303
  }
8304
8304
  k.value = `${z(w)} is the last column that can take ${I(p)}.`;
@@ -8678,8 +8678,8 @@ const fn = [
8678
8678
  const j = Y(!0);
8679
8679
  return be(
8680
8680
  [d, F],
8681
- ([J, D], x) => {
8682
- J === 0 ? j.value = !0 : !x?.[0] || !j.value ? j.value = J >= D : j.value = J >= D - Uh;
8681
+ ([J, W], x) => {
8682
+ J === 0 ? j.value = !0 : !x?.[0] || !j.value ? j.value = J >= W : j.value = J >= W - Uh;
8683
8683
  },
8684
8684
  { immediate: !0, flush: "sync" }
8685
8685
  ), j;
@@ -9068,11 +9068,11 @@ const tp = ["disabled", "title"], ap = {
9068
9068
  c.value = !1;
9069
9069
  return;
9070
9070
  }
9071
- const A = getComputedStyle(k), y = C(A.columnGap), W = k.clientWidth - C(A.paddingLeft) - C(A.paddingRight), E = [...k.children], q = E.at(-1), G = E.slice(0, -1).map((U) => U.getBoundingClientRect().width);
9072
- if (G.reduce((U, N, p) => U + N + (p ? y : 0), 0) <= W)
9071
+ const A = getComputedStyle(k), y = C(A.columnGap), D = k.clientWidth - C(A.paddingLeft) - C(A.paddingRight), E = [...k.children], q = E.at(-1), G = E.slice(0, -1).map((U) => U.getBoundingClientRect().width);
9072
+ if (G.reduce((U, N, p) => U + N + (p ? y : 0), 0) <= D)
9073
9073
  m.value = G.length;
9074
9074
  else {
9075
- const U = W - (q?.getBoundingClientRect().width ?? 0) - y;
9075
+ const U = D - (q?.getBoundingClientRect().width ?? 0) - y;
9076
9076
  let N = 0, p = 0;
9077
9077
  for (const w of G) {
9078
9078
  const _ = N + w + (p ? y : 0);
@@ -9100,12 +9100,12 @@ const tp = ["disabled", "title"], ap = {
9100
9100
  const A = F.get(n.value) ?? [];
9101
9101
  return b.value ? [wo, ...A] : A;
9102
9102
  });
9103
- function D(k, A, y) {
9103
+ function W(k, A, y) {
9104
9104
  if (!A) {
9105
- o.value = o.value.filter((W) => W !== k);
9105
+ o.value = o.value.filter((D) => D !== k);
9106
9106
  return;
9107
9107
  }
9108
- o.value = t.accordion ? [...y, k] : [...o.value.filter((W) => W !== k), k];
9108
+ o.value = t.accordion ? [...y, k] : [...o.value.filter((D) => D !== k), k];
9109
9109
  }
9110
9110
  Qe(Oi, {
9111
9111
  mode: f(() => t.mode),
@@ -9117,7 +9117,7 @@ const tp = ["disabled", "title"], ap = {
9117
9117
  n.value = k, l("select", k, A);
9118
9118
  },
9119
9119
  isOpen: (k) => o.value.includes(k),
9120
- setOpen: D,
9120
+ setOpen: W,
9121
9121
  closeSignal: f(() => h.value),
9122
9122
  closeFlyouts: () => {
9123
9123
  h.value += 1;
@@ -9128,7 +9128,7 @@ const tp = ["disabled", "title"], ap = {
9128
9128
  [J, () => t.autoExpand],
9129
9129
  ([k, A]) => {
9130
9130
  if (!A || k.length === 0) return;
9131
- const y = k.filter((W) => !o.value.includes(W));
9131
+ const y = k.filter((D) => !o.value.includes(D));
9132
9132
  y.length !== 0 && (o.value = t.accordion ? [...k] : [...o.value, ...y]);
9133
9133
  },
9134
9134
  { immediate: !0 }
@@ -9176,7 +9176,7 @@ const tp = ["disabled", "title"], ap = {
9176
9176
  title: { default: void 0 }
9177
9177
  },
9178
9178
  setup(e) {
9179
- const a = e, t = Ln(), l = An(), n = f(() => t?.collapsed.value ?? !1), o = f(() => !!(a.title || !n.value));
9179
+ const a = e, t = Ln(), l = An(), n = f(() => (t?.collapsed.value ?? !1) && !l.inFlyout), o = f(() => !!(a.title || !n.value));
9180
9180
  return (i, r) => (s(), v("li", {
9181
9181
  class: Q(["wx-menu-group", { "wx-menu-group--collapsed": n.value }])
9182
9182
  }, [
@@ -9194,7 +9194,7 @@ const tp = ["disabled", "title"], ap = {
9194
9194
  ])
9195
9195
  ], 2));
9196
9196
  }
9197
- }), bp = /* @__PURE__ */ ue(pp, [["__scopeId", "data-v-8f84de16"]]), gp = { class: "wx-menu-item" }, yp = {
9197
+ }), bp = /* @__PURE__ */ ue(pp, [["__scopeId", "data-v-2fa525dd"]]), gp = { class: "wx-menu-item" }, yp = {
9198
9198
  key: 0,
9199
9199
  class: "wx-menu-row__icon"
9200
9200
  }, wp = { class: "wx-menu-row__label" }, xp = {
@@ -9303,13 +9303,13 @@ const tp = ["disabled", "title"], ap = {
9303
9303
  return Math.min(Math.max(1, S), u.value);
9304
9304
  }), m = f(() => t.paginator ? t.paginator.from : r.value === 0 ? null : (d.value - 1) * i.value + 1), c = f(() => t.paginator ? t.paginator.to : r.value === 0 ? null : Math.min(r.value, d.value * i.value)), h = f(() => {
9305
9305
  const S = u.value, C = d.value, M = t.siblings, V = /* @__PURE__ */ new Set([1, S]);
9306
- for (let D = C - M; D <= C + M; D++)
9307
- D >= 1 && D <= S && V.add(D);
9308
- const F = [...V].sort((D, x) => D - x), j = [];
9306
+ for (let W = C - M; W <= C + M; W++)
9307
+ W >= 1 && W <= S && V.add(W);
9308
+ const F = [...V].sort((W, x) => W - x), j = [];
9309
9309
  let J = 0;
9310
- for (const D of F) {
9311
- const x = D - J;
9312
- J && x === 2 ? j.push({ type: "page", value: D - 1 }) : J && x > 2 && j.push({ type: "gap", value: `gap-${D}` }), j.push({ type: "page", value: D }), J = D;
9310
+ for (const W of F) {
9311
+ const x = W - J;
9312
+ J && x === 2 ? j.push({ type: "page", value: W - 1 }) : J && x > 2 && j.push({ type: "gap", value: `gap-${W}` }), j.push({ type: "page", value: W }), J = W;
9313
9313
  }
9314
9314
  return j;
9315
9315
  }), b = f(() => [
@@ -9791,8 +9791,8 @@ const tp = ["disabled", "title"], ap = {
9791
9791
  }
9792
9792
  const A = x;
9793
9793
  for (const y of ["title", "name", "label"]) {
9794
- const W = A[y];
9795
- if (typeof W == "string" && W) return W;
9794
+ const D = A[y];
9795
+ if (typeof D == "string" && D) return D;
9796
9796
  }
9797
9797
  return `Item ${k + 1}`;
9798
9798
  }
@@ -9804,8 +9804,8 @@ const tp = ["disabled", "title"], ap = {
9804
9804
  }
9805
9805
  function I(x, k, A) {
9806
9806
  if (k < 0 || k >= n.value.length || x === k) return;
9807
- const y = [...n.value], [W] = y.splice(x, 1);
9808
- W !== void 0 && (y.splice(k, 0, W), n.value = y, l("move", { item: W, from: x, to: k, via: A }));
9807
+ const y = [...n.value], [D] = y.splice(x, 1);
9808
+ D !== void 0 && (y.splice(k, 0, D), n.value = y, l("move", { item: D, from: x, to: k, via: A }));
9809
9809
  }
9810
9810
  let z;
9811
9811
  function S(x) {
@@ -9827,7 +9827,7 @@ const tp = ["disabled", "title"], ap = {
9827
9827
  if (!k) return;
9828
9828
  (u.value ? k.querySelector(":scope > .wx-sortable-list__grip") : k)?.focus();
9829
9829
  }
9830
- function D(x, k) {
9830
+ function W(x, k) {
9831
9831
  if (t.disabled || x.target !== x.currentTarget) return;
9832
9832
  const A = n.value.length, y = M.value === k;
9833
9833
  if (x.key === " " || x.key === "Spacebar" || x.key === "Enter") {
@@ -9839,10 +9839,10 @@ const tp = ["disabled", "title"], ap = {
9839
9839
  x.preventDefault(), M.value = null, I(k, V.value, "keyboard"), F.value = "Move cancelled.", J(V.value);
9840
9840
  return;
9841
9841
  }
9842
- const W = x.key === "ArrowUp" || x.key === "ArrowLeft", E = x.key === "ArrowDown" || x.key === "ArrowRight";
9843
- if (!W && !E) return;
9842
+ const D = x.key === "ArrowUp" || x.key === "ArrowLeft", E = x.key === "ArrowDown" || x.key === "ArrowRight";
9843
+ if (!D && !E) return;
9844
9844
  x.preventDefault();
9845
- const q = k + (W ? -1 : 1);
9845
+ const q = k + (D ? -1 : 1);
9846
9846
  if (q < 0 || q >= A) {
9847
9847
  F.value = `${b(k)} is already ${k + 1} of ${A}.`;
9848
9848
  return;
@@ -9859,10 +9859,10 @@ const tp = ["disabled", "title"], ap = {
9859
9859
  T("h3", lb, [
9860
9860
  B(x.$slots, "header", {}, () => [
9861
9861
  re(R(e.title), 1)
9862
- ], !0)
9862
+ ])
9863
9863
  ]),
9864
9864
  x.$slots.extra ? (s(), v("div", nb, [
9865
- B(x.$slots, "extra", {}, void 0, !0)
9865
+ B(x.$slots, "extra")
9866
9866
  ])) : $("", !0)
9867
9867
  ])) : $("", !0),
9868
9868
  H(g(vn), {
@@ -9893,7 +9893,7 @@ const tp = ["disabled", "title"], ap = {
9893
9893
  role: u.value || e.disabled ? void 0 : "button",
9894
9894
  "aria-roledescription": u.value || e.disabled ? void 0 : "Sortable row",
9895
9895
  "aria-pressed": u.value || e.disabled ? void 0 : M.value === y,
9896
- onKeydown: (W) => D(W, y)
9896
+ onKeydown: (D) => W(D, y)
9897
9897
  }, [
9898
9898
  u.value ? (s(), v("span", {
9899
9899
  key: 0,
@@ -9903,7 +9903,7 @@ const tp = ["disabled", "title"], ap = {
9903
9903
  "aria-label": `${e.dragLabel}: ${h(A, y)}`,
9904
9904
  "aria-roledescription": "Drag handle",
9905
9905
  "aria-pressed": e.disabled ? void 0 : M.value === y,
9906
- onKeydown: (W) => D(W, y)
9906
+ onKeydown: (D) => W(D, y)
9907
9907
  }, [
9908
9908
  H(he, { name: "drag" })
9909
9909
  ], 40, ib)) : $("", !0),
@@ -9913,19 +9913,19 @@ const tp = ["disabled", "title"], ap = {
9913
9913
  index: y
9914
9914
  }, () => [
9915
9915
  re(R(h(A, y)), 1)
9916
- ], !0)
9916
+ ])
9917
9917
  ]),
9918
9918
  x.$slots.actions ? (s(), v("div", rb, [
9919
9919
  B(x.$slots, "actions", {
9920
9920
  item: A,
9921
9921
  index: y
9922
- }, void 0, !0)
9922
+ })
9923
9923
  ])) : $("", !0)
9924
9924
  ], 42, ob))), 128)),
9925
9925
  n.value.length ? $("", !0) : (s(), v("li", ub, [
9926
9926
  B(x.$slots, "empty", {}, () => [
9927
9927
  re(R(e.emptyText), 1)
9928
- ], !0)
9928
+ ])
9929
9929
  ]))
9930
9930
  ]),
9931
9931
  _: 3
@@ -9933,7 +9933,7 @@ const tp = ["disabled", "title"], ap = {
9933
9933
  T("div", db, R(F.value), 1)
9934
9934
  ], 2));
9935
9935
  }
9936
- }), Fi = /* @__PURE__ */ ue(cb, [["__scopeId", "data-v-85102901"]]), fb = te({
9936
+ }), Fi = /* @__PURE__ */ ue(cb, [["__scopeId", "data-v-df51b75d"]]), fb = te({
9937
9937
  name: "WxFormScope",
9938
9938
  props: {
9939
9939
  errors: { type: Object, required: !0 }
@@ -9977,81 +9977,81 @@ const tp = ["disabled", "title"], ap = {
9977
9977
  }
9978
9978
  be(
9979
9979
  () => n.value.length,
9980
- (D) => {
9981
- for (; i.value.length < D; ) {
9980
+ (W) => {
9981
+ for (; i.value.length < W; ) {
9982
9982
  const x = u();
9983
9983
  i.value.push(x), t.collapsed && r.value.add(x);
9984
9984
  }
9985
- i.value.length > D && (i.value.length = D);
9985
+ i.value.length > W && (i.value.length = W);
9986
9986
  },
9987
9987
  { immediate: !0 }
9988
9988
  );
9989
- function d(D) {
9990
- return i.value[D] ?? `row-${D}`;
9989
+ function d(W) {
9990
+ return i.value[W] ?? `row-${W}`;
9991
9991
  }
9992
9992
  const m = f(() => [
9993
9993
  "wx-repeater",
9994
9994
  `wx-repeater--${t.size}`,
9995
9995
  { "is-plain": t.plain, "is-disabled": t.disabled }
9996
9996
  ]), c = f(() => t.collapsible || t.collapsed), h = f(() => t.max !== void 0 && n.value.length >= t.max), b = f(() => n.value.length <= t.min), I = Mn();
9997
- function z(D, x) {
9998
- if (typeof t.itemLabel == "function") return t.itemLabel(D, x);
9997
+ function z(W, x) {
9998
+ if (typeof t.itemLabel == "function") return t.itemLabel(W, x);
9999
9999
  const k = `#${x + 1}`;
10000
10000
  if (t.itemLabel) {
10001
- const A = D?.[t.itemLabel], y = typeof A == "number" ? String(A) : typeof A == "string" || A !== null && typeof A == "object" ? Vf(A, I.active.value).trim() : "";
10001
+ const A = W?.[t.itemLabel], y = typeof A == "number" ? String(A) : typeof A == "string" || A !== null && typeof A == "object" ? Vf(A, I.active.value).trim() : "";
10002
10002
  if (y !== "") return `${k} · ${y}`;
10003
10003
  }
10004
10004
  return k;
10005
10005
  }
10006
- function S(D) {
10007
- const x = t.rowErrors?.[D];
10006
+ function S(W) {
10007
+ const x = t.rowErrors?.[W];
10008
10008
  return x !== void 0 && Object.keys(x).length > 0;
10009
10009
  }
10010
10010
  be(
10011
- () => n.value.map((D, x) => S(x)).join(),
10011
+ () => n.value.map((W, x) => S(x)).join(),
10012
10012
  () => {
10013
- const D = new Set(r.value);
10013
+ const W = new Set(r.value);
10014
10014
  n.value.forEach((x, k) => {
10015
- S(k) && D.delete(d(k));
10016
- }), D.size !== r.value.size && (r.value = D);
10015
+ S(k) && W.delete(d(k));
10016
+ }), W.size !== r.value.size && (r.value = W);
10017
10017
  },
10018
10018
  { immediate: !0 }
10019
10019
  );
10020
- function C(D) {
10021
- return !c.value || !r.value.has(d(D));
10020
+ function C(W) {
10021
+ return !c.value || !r.value.has(d(W));
10022
10022
  }
10023
- function M(D) {
10024
- const x = d(D), k = new Set(r.value);
10023
+ function M(W) {
10024
+ const x = d(W), k = new Set(r.value);
10025
10025
  k.has(x) ? k.delete(x) : k.add(x), r.value = k;
10026
10026
  }
10027
10027
  function V() {
10028
10028
  if (t.disabled || h.value) return;
10029
- const D = t.newItem ? t.newItem() : {}, x = n.value.length;
10030
- i.value.push(u()), n.value = [...n.value, D], l("add", D, x);
10029
+ const W = t.newItem ? t.newItem() : {}, x = n.value.length;
10030
+ i.value.push(u()), n.value = [...n.value, W], l("add", W, x);
10031
10031
  }
10032
- function F(D) {
10032
+ function F(W) {
10033
10033
  if (t.disabled || b.value) return;
10034
- const x = n.value[D];
10034
+ const x = n.value[W];
10035
10035
  if (x === void 0) return;
10036
- const [k] = i.value.splice(D, 1);
10036
+ const [k] = i.value.splice(W, 1);
10037
10037
  if (k !== void 0 && r.value.has(k)) {
10038
10038
  const y = new Set(r.value);
10039
10039
  y.delete(k), r.value = y;
10040
10040
  }
10041
10041
  const A = [...n.value];
10042
- A.splice(D, 1), n.value = A, l("remove", x, D);
10042
+ A.splice(W, 1), n.value = A, l("remove", x, W);
10043
10043
  }
10044
- function j(D, x) {
10045
- const k = n.value[D];
10044
+ function j(W, x) {
10045
+ const k = n.value[W];
10046
10046
  if (k === void 0) return;
10047
10047
  const A = [...n.value];
10048
- A[D] = { ...k, ...x }, n.value = A;
10048
+ A[W] = { ...k, ...x }, n.value = A;
10049
10049
  }
10050
- function J(D) {
10051
- const [x] = i.value.splice(D.from, 1);
10052
- x !== void 0 && i.value.splice(D.to, 0, x), l("move", D);
10050
+ function J(W) {
10051
+ const [x] = i.value.splice(W.from, 1);
10052
+ x !== void 0 && i.value.splice(W.to, 0, x), l("move", W);
10053
10053
  }
10054
- return (D, x) => (s(), v("div", {
10054
+ return (W, x) => (s(), v("div", {
10055
10055
  class: Q(m.value)
10056
10056
  }, [
10057
10057
  H(Fi, {
@@ -10105,14 +10105,14 @@ const tp = ["disabled", "title"], ap = {
10105
10105
  errors: e.rowErrors[k] ?? {}
10106
10106
  }, {
10107
10107
  default: O(() => [
10108
- B(D.$slots, "default", {
10108
+ B(W.$slots, "default", {
10109
10109
  item: n.value[k],
10110
10110
  index: k,
10111
10111
  update: (A) => j(k, A)
10112
10112
  }, void 0, !0)
10113
10113
  ]),
10114
10114
  _: 2
10115
- }, 1032, ["errors"])) : B(D.$slots, "default", {
10115
+ }, 1032, ["errors"])) : B(W.$slots, "default", {
10116
10116
  item: n.value[k],
10117
10117
  index: k,
10118
10118
  update: (A) => j(k, A)
@@ -10127,7 +10127,7 @@ const tp = ["disabled", "title"], ap = {
10127
10127
  size: e.size === "sm" ? "sm" : "md"
10128
10128
  }, {
10129
10129
  default: O(() => [
10130
- B(D.$slots, "actions", {
10130
+ B(W.$slots, "actions", {
10131
10131
  item: n.value[k],
10132
10132
  index: k
10133
10133
  }, void 0, !0),
@@ -10142,23 +10142,23 @@ const tp = ["disabled", "title"], ap = {
10142
10142
  }, 1032, ["size"])
10143
10143
  ]),
10144
10144
  empty: O(() => [
10145
- B(D.$slots, "empty", {}, () => [
10145
+ B(W.$slots, "empty", {}, () => [
10146
10146
  re(R(e.emptyText), 1)
10147
10147
  ], !0)
10148
10148
  ]),
10149
10149
  _: 2
10150
10150
  }, [
10151
- D.$slots.header ? {
10151
+ W.$slots.header ? {
10152
10152
  name: "header",
10153
10153
  fn: O(() => [
10154
- B(D.$slots, "header", {}, void 0, !0)
10154
+ B(W.$slots, "header", {}, void 0, !0)
10155
10155
  ]),
10156
10156
  key: "0"
10157
10157
  } : void 0,
10158
- D.$slots.extra ? {
10158
+ W.$slots.extra ? {
10159
10159
  name: "extra",
10160
10160
  fn: O(() => [
10161
- B(D.$slots, "extra", {}, void 0, !0)
10161
+ B(W.$slots, "extra", {}, void 0, !0)
10162
10162
  ]),
10163
10163
  key: "1"
10164
10164
  } : void 0
@@ -10484,7 +10484,7 @@ const tp = ["disabled", "title"], ap = {
10484
10484
  "is-localized": m.on.value
10485
10485
  }
10486
10486
  ]);
10487
- function D(p) {
10487
+ function W(p) {
10488
10488
  m.active.value = p, Fe(() => V.value?.commands.focus());
10489
10489
  }
10490
10490
  function x(p, w) {
@@ -10521,7 +10521,7 @@ const tp = ["disabled", "title"], ap = {
10521
10521
  const w = p.target, _ = Array.from(w.files ?? []);
10522
10522
  w.value = "", k(_);
10523
10523
  }
10524
- function W(p) {
10524
+ function D(p) {
10525
10525
  const w = p === "link" ? V.value?.getAttributes("link").href ?? "" : "";
10526
10526
  S.value = { kind: p, value: String(w) };
10527
10527
  }
@@ -10597,10 +10597,10 @@ const tp = ["disabled", "title"], ap = {
10597
10597
  _.insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
10598
10598
  break;
10599
10599
  case "link":
10600
- W("link");
10600
+ D("link");
10601
10601
  break;
10602
10602
  case "youtube":
10603
- W("youtube");
10603
+ D("youtube");
10604
10604
  break;
10605
10605
  case "image":
10606
10606
  A();
@@ -10643,7 +10643,7 @@ const tp = ["disabled", "title"], ap = {
10643
10643
  key: 0,
10644
10644
  locales: g(m).list.value,
10645
10645
  active: g(m).active.value,
10646
- onChoose: D
10646
+ onChoose: W
10647
10647
  }, null, 8, ["locales", "active"])) : $("", !0),
10648
10648
  j.value && C.value ? (s(), v("div", Ob, [
10649
10649
  (s(!0), v(ge, null, xe(g(xo), (_) => (s(), X(il, {
@@ -10821,13 +10821,13 @@ const tp = ["disabled", "title"], ap = {
10821
10821
  setup(e, { emit: a }) {
10822
10822
  const { rootAttrs: t, controlAttrs: l } = ot(), n = Y(null), o = e, i = a, r = we(e, "modelValue"), u = Ke(o), d = Y(!1), m = Y(""), c = f({
10823
10823
  get: () => o.multiple ? r.value ?? [] : r.value ?? null,
10824
- set: (D) => {
10825
- r.value = D, i("change", D);
10824
+ set: (W) => {
10825
+ r.value = W, i("change", W);
10826
10826
  }
10827
- }), h = (D) => o.options.find((x) => x.value === D)?.label ?? String(D), b = f(() => o.multiple ? (r.value ?? []).map((D) => ({ value: D, label: h(D) })) : []), I = f(() => {
10827
+ }), h = (W) => o.options.find((x) => x.value === W)?.label ?? String(W), b = f(() => o.multiple ? (r.value ?? []).map((W) => ({ value: W, label: h(W) })) : []), I = f(() => {
10828
10828
  if (o.multiple) return "";
10829
- const D = r.value;
10830
- return D == null ? "" : h(D);
10829
+ const W = r.value;
10830
+ return W == null ? "" : h(W);
10831
10831
  }), z = f(
10832
10832
  () => o.multiple ? b.value.length > 0 : r.value !== null && r.value !== void 0 && r.value !== ""
10833
10833
  ), S = f(() => o.clearable && !u.disabled.value && z.value), C = f(() => [
@@ -10846,8 +10846,10 @@ const tp = ["disabled", "title"], ap = {
10846
10846
  m.value = o.multiple ? "" : I.value;
10847
10847
  },
10848
10848
  { immediate: !0 }
10849
- ), be(d, (D) => {
10850
- if (D) {
10849
+ ), be(I, (W) => {
10850
+ !d.value && !o.multiple && (m.value = W);
10851
+ }), be(d, (W) => {
10852
+ if (W) {
10851
10853
  i("open");
10852
10854
  return;
10853
10855
  }
@@ -10856,20 +10858,20 @@ const tp = ["disabled", "title"], ap = {
10856
10858
  function M() {
10857
10859
  u.disabled.value || (d.value = !0, n.value?.$el?.focus());
10858
10860
  }
10859
- function V(D) {
10860
- return D == null ? "" : h(D);
10861
+ function V(W) {
10862
+ return W == null ? "" : h(W);
10861
10863
  }
10862
- function F(D) {
10863
- i("search", D.target.value);
10864
+ function F(W) {
10865
+ i("search", W.target.value);
10864
10866
  }
10865
10867
  function j() {
10866
10868
  r.value = o.multiple ? [] : null, i("change", r.value), i("clear");
10867
10869
  }
10868
- function J(D) {
10869
- const x = (r.value ?? []).filter((k) => k !== D);
10870
+ function J(W) {
10871
+ const x = (r.value ?? []).filter((k) => k !== W);
10870
10872
  r.value = x, i("change", x);
10871
10873
  }
10872
- return (D, x) => (s(), X(g(Zs), Me({
10874
+ return (W, x) => (s(), X(g(Zs), Me({
10873
10875
  modelValue: c.value,
10874
10876
  "onUpdate:modelValue": x[1] || (x[1] = (k) => c.value = k),
10875
10877
  open: d.value,
@@ -10974,7 +10976,7 @@ const tp = ["disabled", "title"], ap = {
10974
10976
  ]),
10975
10977
  _: 1
10976
10978
  }),
10977
- B(D.$slots, "default", {}, () => [
10979
+ B(W.$slots, "default", {}, () => [
10978
10980
  (s(!0), v(ge, null, xe(e.options, (k) => (s(), X(g(or), {
10979
10981
  key: String(k.value),
10980
10982
  class: "wx-select__option",
@@ -11018,7 +11020,7 @@ const tp = ["disabled", "title"], ap = {
11018
11020
  _: 3
11019
11021
  }, 16, ["modelValue", "open", "multiple", "disabled", "name", "ignore-filter", "class"]));
11020
11022
  }
11021
- }), tg = /* @__PURE__ */ ue(eg, [["__scopeId", "data-v-1de547cb"]]), ma = "data-wx-selectable", zn = /* @__PURE__ */ new WeakMap();
11023
+ }), tg = /* @__PURE__ */ ue(eg, [["__scopeId", "data-v-1fd6e542"]]), ma = "data-wx-selectable", zn = /* @__PURE__ */ new WeakMap();
11022
11024
  function ko(e) {
11023
11025
  const a = zn.get(e);
11024
11026
  if (a !== void 0) return a;
@@ -11059,7 +11061,7 @@ const Hi = {
11059
11061
  function m(le) {
11060
11062
  return d.value.has(le);
11061
11063
  }
11062
- let c = -1, h = !1, b = !0, I = null, z = 0, S = 0, C = 0, M = 0, V = 0, F = 0, j = 0, J = 0, D = [], x = [], k = "replace", A = -1, y = null, W = 0;
11064
+ let c = -1, h = !1, b = !0, I = null, z = 0, S = 0, C = 0, M = 0, V = 0, F = 0, j = 0, J = 0, W = [], x = [], k = "replace", A = -1, y = null, D = 0;
11063
11065
  function E() {
11064
11066
  const le = i.value;
11065
11067
  if (!le) return [];
@@ -11085,7 +11087,7 @@ const Hi = {
11085
11087
  const Te = getComputedStyle(le);
11086
11088
  j = Number.parseFloat(Te.borderLeftWidth) || 0, J = Number.parseFloat(Te.borderTopWidth) || 0;
11087
11089
  const _e = le.getBoundingClientRect(), Ce = _e.left + j - le.scrollLeft, Ee = _e.top + J - le.scrollTop;
11088
- D = E().map(({ el: kt, value: mt }) => {
11090
+ W = E().map(({ el: kt, value: mt }) => {
11089
11091
  const et = kt.getBoundingClientRect();
11090
11092
  return {
11091
11093
  value: mt,
@@ -11100,7 +11102,7 @@ const Hi = {
11100
11102
  }
11101
11103
  function P(le) {
11102
11104
  const Te = le.left + le.width, _e = le.top + le.height, Ce = [];
11103
- for (const Ee of D)
11105
+ for (const Ee of W)
11104
11106
  (l.match === "contain" ? Ee.left >= le.left && Ee.top >= le.top && Ee.right <= Te && Ee.bottom <= _e : Ee.left < Te && Ee.right > le.left && Ee.top < _e && Ee.bottom > le.top) && Ce.push(Ee.value);
11105
11107
  return Ce;
11106
11108
  }
@@ -11147,14 +11149,14 @@ const Hi = {
11147
11149
  return document.scrollingElement ?? null;
11148
11150
  }
11149
11151
  function ae() {
11150
- if (W = requestAnimationFrame(ae), y) {
11152
+ if (D = requestAnimationFrame(ae), y) {
11151
11153
  const le = w(y), Te = _(V, le.left, le.right, l.edgeScroll), _e = _(F, le.top, le.bottom, l.edgeScroll);
11152
11154
  Te && (y.scrollLeft += Te), _e && (y.scrollTop += _e);
11153
11155
  }
11154
11156
  p();
11155
11157
  }
11156
11158
  function me() {
11157
- W && cancelAnimationFrame(W), W = 0;
11159
+ D && cancelAnimationFrame(D), D = 0;
11158
11160
  const le = i.value;
11159
11161
  le && c !== -1 && le.hasPointerCapture?.(c) && le.releasePointerCapture(c), c = -1, h = !1, I = null, y = null, r.value = !1, u.value = null;
11160
11162
  }
@@ -11166,14 +11168,14 @@ const Hi = {
11166
11168
  }
11167
11169
  const Ce = ko(_e);
11168
11170
  if (Ce === void 0) return;
11169
- const Ee = D.findIndex((mt) => mt.value === Ce);
11171
+ const Ee = W.findIndex((mt) => mt.value === Ce);
11170
11172
  if (!l.multiple) {
11171
11173
  A = Ee, N([Ce]);
11172
11174
  return;
11173
11175
  }
11174
11176
  if (le.shiftKey && A >= 0 && Ee >= 0) {
11175
11177
  const [mt, et] = A < Ee ? [A, Ee] : [Ee, A];
11176
- N(U(D.slice(mt, et + 1).map((qt) => qt.value)));
11178
+ N(U(W.slice(mt, et + 1).map((qt) => qt.value)));
11177
11179
  return;
11178
11180
  }
11179
11181
  if (A = Ee, le.ctrlKey || le.metaKey || le.pointerType === "touch") {
@@ -11204,7 +11206,7 @@ const Hi = {
11204
11206
  me();
11205
11207
  return;
11206
11208
  }
11207
- h = !0, r.value = !0, se(le.pointerId), le.preventDefault(), window.getSelection?.()?.removeAllRanges(), n("start"), l.edgeScroll > 0 && i.value && (y = ie(i.value)), y && (W = requestAnimationFrame(ae));
11209
+ h = !0, r.value = !0, se(le.pointerId), le.preventDefault(), window.getSelection?.()?.removeAllRanges(), n("start"), l.edgeScroll > 0 && i.value && (y = ie(i.value)), y && (D = requestAnimationFrame(ae));
11208
11210
  }
11209
11211
  p();
11210
11212
  }
@@ -11648,7 +11650,7 @@ function Wn(e) {
11648
11650
  U.children.length && P.push(U.key);
11649
11651
  l.value = P;
11650
11652
  }
11651
- const D = () => {
11653
+ const W = () => {
11652
11654
  l.value = [];
11653
11655
  };
11654
11656
  async function x(P) {
@@ -11678,7 +11680,7 @@ function Wn(e) {
11678
11680
  const y = (P) => {
11679
11681
  const U = d(P);
11680
11682
  return U ? [...A(P), U] : [];
11681
- }, W = (P, U) => A(U).some((N) => N.key === P);
11683
+ }, D = (P, U) => A(U).some((N) => N.key === P);
11682
11684
  function E(P) {
11683
11685
  const U = [], N = d(P);
11684
11686
  if (!N) return U;
@@ -11693,7 +11695,7 @@ function Wn(e) {
11693
11695
  function q(P, U, N) {
11694
11696
  if (P === U) return !1;
11695
11697
  const p = d(P), w = d(U);
11696
- return !p || !w || W(P, U) ? !1 : e.allowDrop?.(p.node, w.node, N) ?? !0;
11698
+ return !p || !w || D(P, U) ? !1 : e.allowDrop?.(p.node, w.node, N) ?? !0;
11697
11699
  }
11698
11700
  function G(P, U, N) {
11699
11701
  if (!q(P, U, N)) return null;
@@ -11717,13 +11719,13 @@ function Wn(e) {
11717
11719
  collapse: F,
11718
11720
  toggle: j,
11719
11721
  expandAll: J,
11720
- collapseAll: D,
11722
+ collapseAll: W,
11721
11723
  reveal: k,
11722
11724
  openPath: x,
11723
11725
  ancestors: A,
11724
11726
  path: y,
11725
11727
  descendants: E,
11726
- isAncestorOf: W,
11728
+ isAncestorOf: D,
11727
11729
  canDrop: q,
11728
11730
  move: G,
11729
11731
  loading: n
@@ -11872,7 +11874,7 @@ const Mg = {
11872
11874
  await z.toggle(L.key), l("expand-change", [...o.value], Wl(o.value));
11873
11875
  }
11874
11876
  const F = Y(null), j = Y(null), J = Y(null);
11875
- let D = null, x;
11877
+ let W = null, x;
11876
11878
  const k = (L) => !!h.value.draggable && (h.value.allowDrag?.(L.node) ?? !0);
11877
11879
  function A(L, ee) {
11878
11880
  if (!k(L)) {
@@ -11885,24 +11887,24 @@ const Mg = {
11885
11887
  const Z = ee.getBoundingClientRect(), ve = (L.clientY - Z.top) / Z.height;
11886
11888
  return ve <= 0.3 ? "before" : ve >= 0.7 ? "after" : "inside";
11887
11889
  }
11888
- function W() {
11889
- x && clearTimeout(x), x = void 0, D = null;
11890
+ function D() {
11891
+ x && clearTimeout(x), x = void 0, W = null;
11890
11892
  }
11891
11893
  function E(L, ee) {
11892
11894
  const Z = h.value.springDelay ?? 0;
11893
11895
  if (!Z || ee !== "inside" || !L.expandable || L.expanded) {
11894
- W();
11896
+ D();
11895
11897
  return;
11896
11898
  }
11897
- D !== L.key && (W(), D = L.key, x = setTimeout(() => {
11898
- z.expand(L.key), W();
11899
+ W !== L.key && (D(), W = L.key, x = setTimeout(() => {
11900
+ z.expand(L.key), D();
11899
11901
  }, Z));
11900
11902
  }
11901
11903
  function q(L, ee) {
11902
11904
  if (F.value === null) return;
11903
11905
  const Z = y(ee, ee.currentTarget);
11904
11906
  if (!z.canDrop(F.value, L.key, Z)) {
11905
- j.value = null, J.value = null, W();
11907
+ j.value = null, J.value = null, D();
11906
11908
  return;
11907
11909
  }
11908
11910
  ee.preventDefault(), ee.dataTransfer && (ee.dataTransfer.dropEffect = "move"), j.value = L.key, J.value = Z, E(L, Z);
@@ -11910,7 +11912,7 @@ const Mg = {
11910
11912
  async function G(L) {
11911
11913
  const ee = F.value, Z = J.value;
11912
11914
  if (ee === null || Z === null || j.value !== L.key) return;
11913
- W(), F.value = null, j.value = null, J.value = null, Z === "inside" && h.value.lazy && !L.expanded && await z.expand(L.key);
11915
+ D(), F.value = null, j.value = null, J.value = null, Z === "inside" && h.value.lazy && !L.expanded && await z.expand(L.key);
11914
11916
  const ve = z.entry(L.key), $e = z.move(ee, L.key, Z);
11915
11917
  !$e || !ve || l("node-drop", {
11916
11918
  row: $e.node,
@@ -11922,9 +11924,9 @@ const Mg = {
11922
11924
  });
11923
11925
  }
11924
11926
  function P() {
11925
- W(), F.value = null, j.value = null, J.value = null;
11927
+ D(), F.value = null, j.value = null, J.value = null;
11926
11928
  }
11927
- Ne(W);
11929
+ Ne(D);
11928
11930
  const U = f(() => t.data && !Array.isArray(t.data) ? t.data : null), N = f(() => c.value ? !1 : U.value ? (t.pagination ?? !0) && U.value.last_page > 1 : t.pagination ?? !1), p = Y(null), w = Xt(p), _ = f(
11929
11931
  () => t.columns.filter(
11930
11932
  (L) => !L.hidden && // Measured before the first layout, `width` is 0 and nothing is dropped — which is the
@@ -12583,15 +12585,15 @@ const Mg = {
12583
12585
  return r = l.items ? l.items.map((y) => ({ ...y, disabled: y.disabled === !0 })) : d(i.default?.() ?? []), h(), r;
12584
12586
  }
12585
12587
  function d(y) {
12586
- const W = [];
12588
+ const D = [];
12587
12589
  for (const E of y) {
12588
12590
  if (E.type === ge) {
12589
- W.push(...d(E.children ?? []));
12591
+ D.push(...d(E.children ?? []));
12590
12592
  continue;
12591
12593
  }
12592
12594
  if (E.type !== Ki) continue;
12593
12595
  const q = E.props ?? {}, G = E.children;
12594
- W.push({
12596
+ D.push({
12595
12597
  value: q.value,
12596
12598
  label: q.label,
12597
12599
  icon: q.icon,
@@ -12601,11 +12603,11 @@ const Mg = {
12601
12603
  labelSlot: typeof G?.label == "function" ? G.label : void 0
12602
12604
  });
12603
12605
  }
12604
- return W;
12606
+ return D;
12605
12607
  }
12606
12608
  function m() {
12607
- const y = l.items ? l.items.map((W) => ({ ...W, disabled: W.disabled === !0 })) : r;
12608
- y.length !== 0 && (y.some((W) => W.value === o.value) || (o.value = (y.find((W) => !W.disabled) ?? y[0]).value));
12609
+ const y = l.items ? l.items.map((D) => ({ ...D, disabled: D.disabled === !0 })) : r;
12610
+ y.length !== 0 && (y.some((D) => D.value === o.value) || (o.value = (y.find((D) => !D.disabled) ?? y[0]).value));
12609
12611
  }
12610
12612
  let c = !1;
12611
12613
  function h() {
@@ -12623,20 +12625,20 @@ const Mg = {
12623
12625
  I.value = !1, z.value = !1;
12624
12626
  return;
12625
12627
  }
12626
- const W = y.scrollWidth - y.clientWidth;
12627
- I.value = y.scrollLeft > 1, z.value = y.scrollLeft < W - 1;
12628
+ const D = y.scrollWidth - y.clientWidth;
12629
+ I.value = y.scrollLeft > 1, z.value = y.scrollLeft < D - 1;
12628
12630
  }
12629
12631
  function M(y) {
12630
- const W = b.value;
12631
- W && (W.scrollLeft += y * Math.max(W.clientWidth * 0.75, 120), C());
12632
+ const D = b.value;
12633
+ D && (D.scrollLeft += y * Math.max(D.clientWidth * 0.75, 120), C());
12632
12634
  }
12633
12635
  function V(y = !1) {
12634
- const W = b.value;
12635
- if (!W || !S.value) return;
12636
- const E = W.querySelector('[data-state="active"]');
12636
+ const D = b.value;
12637
+ if (!D || !S.value) return;
12638
+ const E = D.querySelector('[data-state="active"]');
12637
12639
  if (!E) return;
12638
- const q = E.offsetLeft - (W.clientWidth - E.offsetWidth) / 2;
12639
- y && (W.style.scrollBehavior = "auto"), W.scrollLeft = Math.max(0, q), y && (W.style.scrollBehavior = ""), C();
12640
+ const q = E.offsetLeft - (D.clientWidth - E.offsetWidth) / 2;
12641
+ y && (D.style.scrollBehavior = "auto"), D.scrollLeft = Math.max(0, q), y && (D.style.scrollBehavior = ""), C();
12640
12642
  }
12641
12643
  let F;
12642
12644
  function j() {
@@ -12648,8 +12650,8 @@ const Mg = {
12648
12650
  () => l.items,
12649
12651
  () => h()
12650
12652
  );
12651
- const J = Y(null), D = Xt(J), x = f(
12652
- () => l.items !== void 0 && l.collapseBelow > 0 && D.value > 0 && D.value < l.collapseBelow
12653
+ const J = Y(null), W = Xt(J), x = f(
12654
+ () => l.items !== void 0 && l.collapseBelow > 0 && W.value > 0 && W.value < l.collapseBelow
12653
12655
  ), k = f(() => l.items?.find((y) => y.value === o.value));
12654
12656
  be(x, async () => {
12655
12657
  await Fe(), j(), C(), V(!0);
@@ -12664,9 +12666,9 @@ const Mg = {
12664
12666
  `wx-tabs--align-${l.align}`,
12665
12667
  { "is-folded": x.value }
12666
12668
  ]);
12667
- return a({ measure: C, revealActive: V }), (y, W) => (s(), X(g(sr), {
12669
+ return a({ measure: C, revealActive: V }), (y, D) => (s(), X(g(sr), {
12668
12670
  modelValue: o.value,
12669
- "onUpdate:modelValue": W[2] || (W[2] = (E) => o.value = E),
12671
+ "onUpdate:modelValue": D[2] || (D[2] = (E) => o.value = E),
12670
12672
  class: Q(A.value),
12671
12673
  orientation: e.orientation,
12672
12674
  "activation-mode": e.activationMode,
@@ -12736,7 +12738,7 @@ const Mg = {
12736
12738
  tabindex: "-1",
12737
12739
  "aria-hidden": "true",
12738
12740
  disabled: !I.value,
12739
- onClick: W[0] || (W[0] = (E) => M(-1))
12741
+ onClick: D[0] || (D[0] = (E) => M(-1))
12740
12742
  }, [
12741
12743
  H(he, { name: "chevron-left" })
12742
12744
  ], 8, iy)) : $("", !0),
@@ -12795,7 +12797,7 @@ const Mg = {
12795
12797
  tabindex: "-1",
12796
12798
  "aria-hidden": "true",
12797
12799
  disabled: !z.value,
12798
- onClick: W[1] || (W[1] = (E) => M(1))
12800
+ onClick: D[1] || (D[1] = (E) => M(1))
12799
12801
  }, [
12800
12802
  H(he, { name: "chevron-right" })
12801
12803
  ], 8, ry)) : $("", !0),
@@ -12881,7 +12883,7 @@ const Mg = {
12881
12883
  const A = k.target.value;
12882
12884
  m.value = A, b.value = -1, h.value = -1, A && (c.value = !0), i("search", A);
12883
12885
  }
12884
- function D(k) {
12886
+ function W(k) {
12885
12887
  if (k.key === "Escape") {
12886
12888
  c.value = !1, b.value = -1;
12887
12889
  return;
@@ -12910,9 +12912,9 @@ const Mg = {
12910
12912
  class: "wx-tags-input__anchor",
12911
12913
  onClick: A[1] || (A[1] = (y) => d.value?.focus())
12912
12914
  }, [
12913
- (s(!0), v(ge, null, xe(I.value, (y, W) => (s(), v("span", {
12915
+ (s(!0), v(ge, null, xe(I.value, (y, D) => (s(), v("span", {
12914
12916
  key: y,
12915
- class: Q(["wx-tags-input__tag", { "is-armed": W === b.value }])
12917
+ class: Q(["wx-tags-input__tag", { "is-armed": D === b.value }])
12916
12918
  }, [
12917
12919
  re(R(y) + " ", 1),
12918
12920
  g(u).disabled.value ? $("", !0) : (s(), v("button", {
@@ -12921,7 +12923,7 @@ const Mg = {
12921
12923
  type: "button",
12922
12924
  tabindex: "-1",
12923
12925
  "aria-label": `Remove ${y}`,
12924
- onClick: Ie((E) => j(W), ["stop"])
12926
+ onClick: Ie((E) => j(D), ["stop"])
12925
12927
  }, " ✕ ", 8, vy))
12926
12928
  ], 2))), 128)),
12927
12929
  T("input", Me({
@@ -12941,18 +12943,18 @@ const Mg = {
12941
12943
  "aria-invalid": g(u).status.value === "error" || void 0,
12942
12944
  "aria-expanded": S.value,
12943
12945
  onInput: J,
12944
- onKeydown: D,
12946
+ onKeydown: W,
12945
12947
  onFocus: A[0] || (A[0] = (y) => c.value = !0),
12946
12948
  onBlur: x
12947
12949
  }), null, 16, my),
12948
12950
  S.value ? (s(), v("ul", hy, [
12949
- (s(!0), v(ge, null, xe(z.value, (y, W) => (s(), v("li", {
12951
+ (s(!0), v(ge, null, xe(z.value, (y, D) => (s(), v("li", {
12950
12952
  key: y,
12951
- class: Q(["wx-tags-input__option", { "is-highlighted": W === h.value }]),
12953
+ class: Q(["wx-tags-input__option", { "is-highlighted": D === h.value }]),
12952
12954
  role: "option",
12953
- "aria-selected": W === h.value,
12955
+ "aria-selected": D === h.value,
12954
12956
  onMousedown: Ie((E) => F(y), ["prevent"]),
12955
- onMousemove: (E) => h.value = W
12957
+ onMousemove: (E) => h.value = D
12956
12958
  }, R(y), 43, py))), 128))
12957
12959
  ])) : $("", !0)
12958
12960
  ]),
@@ -13060,9 +13062,9 @@ const Mg = {
13060
13062
  const x = S.value, k = d.value;
13061
13063
  if (!x || !k) return;
13062
13064
  k.style.height = "auto";
13063
- const A = getComputedStyle(k), y = Number.parseFloat(A.lineHeight) || 20, W = Number.parseFloat(A.paddingTop) + Number.parseFloat(A.paddingBottom) + Number.parseFloat(A.borderTopWidth) + Number.parseFloat(A.borderBottomWidth);
13065
+ const A = getComputedStyle(k), y = Number.parseFloat(A.lineHeight) || 20, D = Number.parseFloat(A.paddingTop) + Number.parseFloat(A.paddingBottom) + Number.parseFloat(A.borderTopWidth) + Number.parseFloat(A.borderBottomWidth);
13064
13066
  let E = k.scrollHeight;
13065
- x.minRows && (E = Math.max(E, x.minRows * y + W)), x.maxRows && (E = Math.min(E, x.maxRows * y + W)), k.style.height = `${E}px`, k.style.overflowY = x.maxRows && k.scrollHeight > E ? "auto" : "hidden";
13067
+ x.minRows && (E = Math.max(E, x.minRows * y + D)), x.maxRows && (E = Math.min(E, x.maxRows * y + D)), k.style.height = `${E}px`, k.style.overflowY = x.maxRows && k.scrollHeight > E ? "auto" : "hidden";
13066
13068
  }
13067
13069
  lt(() => Fe(M)), be([b, S], () => Fe(M));
13068
13070
  function V(x) {
@@ -13078,7 +13080,7 @@ const Mg = {
13078
13080
  function J(x) {
13079
13081
  m.value = !1, i("blur", x);
13080
13082
  }
13081
- function D(x) {
13083
+ function W(x) {
13082
13084
  c.active.value = x, Fe(() => d.value?.focus());
13083
13085
  }
13084
13086
  return a({
@@ -13120,7 +13122,7 @@ const Mg = {
13120
13122
  key: 1,
13121
13123
  locales: g(c).list.value,
13122
13124
  active: g(c).active.value,
13123
- onChoose: D
13125
+ onChoose: W
13124
13126
  }, null, 8, ["locales", "active"])) : $("", !0)
13125
13127
  ], 16));
13126
13128
  }
@@ -13516,8 +13518,8 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13516
13518
  left: t.items.filter((y) => !m.value.has(y.value)),
13517
13519
  right: n.value.map((y) => d.value.get(y)).filter((y) => !!y)
13518
13520
  }));
13519
- function h(y, W) {
13520
- const E = W.trim().toLowerCase();
13521
+ function h(y, D) {
13522
+ const E = D.trim().toLowerCase();
13521
13523
  return E ? `${y.label ?? ""} ${y.description ?? ""} ${y.value}`.toLowerCase().includes(E) : !0;
13522
13524
  }
13523
13525
  const b = f(() => ({
@@ -13529,51 +13531,51 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13529
13531
  }));
13530
13532
  function z(y) {
13531
13533
  return c.value[y].filter(
13532
- (W) => !W.disabled && I.value[y].has(W.value)
13534
+ (D) => !D.disabled && I.value[y].has(D.value)
13533
13535
  );
13534
13536
  }
13535
13537
  function S(y) {
13536
- return b.value[y].filter((W) => !W.disabled);
13538
+ return b.value[y].filter((D) => !D.disabled);
13537
13539
  }
13538
13540
  function C(y) {
13539
- const W = S(y);
13540
- return W.length > 0 && W.every((E) => I.value[y].has(E.value));
13541
+ const D = S(y);
13542
+ return D.length > 0 && D.every((E) => I.value[y].has(E.value));
13541
13543
  }
13542
13544
  function M(y) {
13543
- return !C(y) && S(y).some((W) => I.value[y].has(W.value));
13545
+ return !C(y) && S(y).some((D) => I.value[y].has(D.value));
13544
13546
  }
13545
13547
  function V(y) {
13546
13548
  return y.label ?? String(y.value);
13547
13549
  }
13548
- function F(y, W, E) {
13549
- r[y] = E ? [...r[y], W] : r[y].filter((q) => q !== W);
13550
+ function F(y, D, E) {
13551
+ r[y] = E ? [...r[y], D] : r[y].filter((q) => q !== D);
13550
13552
  }
13551
- function j(y, W) {
13553
+ function j(y, D) {
13552
13554
  const E = S(y).map((G) => G.value), q = new Set(E);
13553
- r[y] = W ? [...r[y].filter((G) => !q.has(G)), ...E] : r[y].filter((G) => !q.has(G));
13555
+ r[y] = D ? [...r[y].filter((G) => !q.has(G)), ...E] : r[y].filter((G) => !q.has(G));
13554
13556
  }
13555
- function J(y, W) {
13556
- if (!W.length) return;
13557
- const E = new Set(W);
13558
- n.value = y === "right" ? [...n.value, ...W] : n.value.filter((G) => !E.has(G));
13557
+ function J(y, D) {
13558
+ if (!D.length) return;
13559
+ const E = new Set(D);
13560
+ n.value = y === "right" ? [...n.value, ...D] : n.value.filter((G) => !E.has(G));
13559
13561
  const q = y === "right" ? "left" : "right";
13560
- r[q] = r[q].filter((G) => !E.has(G)), l("change", { values: W, to: y }), u.value = `${W.length} moved to ${t.titles[y === "right" ? 1 : 0]}.`;
13562
+ r[q] = r[q].filter((G) => !E.has(G)), l("change", { values: D, to: y }), u.value = `${D.length} moved to ${t.titles[y === "right" ? 1 : 0]}.`;
13561
13563
  }
13562
- function D(y) {
13564
+ function W(y) {
13563
13565
  t.disabled || J(
13564
13566
  y,
13565
- z(y === "right" ? "left" : "right").map((W) => W.value)
13567
+ z(y === "right" ? "left" : "right").map((D) => D.value)
13566
13568
  );
13567
13569
  }
13568
- function x(y, W) {
13569
- t.disabled || W.disabled || J(y === "left" ? "right" : "left", [W.value]);
13570
+ function x(y, D) {
13571
+ t.disabled || D.disabled || J(y === "left" ? "right" : "left", [D.value]);
13570
13572
  }
13571
13573
  const k = f(() => ({ height: ca(t.height) })), A = f(() => [
13572
13574
  "wx-transfer",
13573
13575
  `wx-transfer--${t.size}`,
13574
13576
  { "is-disabled": t.disabled }
13575
13577
  ]);
13576
- return (y, W) => (s(), v("div", {
13578
+ return (y, D) => (s(), v("div", {
13577
13579
  class: Q(A.value)
13578
13580
  }, [
13579
13581
  T("div", Qy, [
@@ -13643,7 +13645,7 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13643
13645
  size: e.size,
13644
13646
  disabled: e.disabled || !z("left").length,
13645
13647
  "aria-label": e.toRightLabel,
13646
- onClick: W[0] || (W[0] = (G) => D("right"))
13648
+ onClick: D[0] || (D[0] = (G) => W("right"))
13647
13649
  }, {
13648
13650
  default: O(() => [
13649
13651
  H(he, { name: "chevron-right" })
@@ -13655,7 +13657,7 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13655
13657
  size: e.size,
13656
13658
  disabled: e.disabled || !z("right").length,
13657
13659
  "aria-label": e.toLeftLabel,
13658
- onClick: W[1] || (W[1] = (G) => D("left"))
13660
+ onClick: D[1] || (D[1] = (G) => W("left"))
13659
13661
  }, {
13660
13662
  default: O(() => [
13661
13663
  H(he, { name: "chevron-left" })
@@ -13785,7 +13787,7 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13785
13787
  };
13786
13788
  }
13787
13789
  const j = Y(""), J = (K) => l.draggable && !K.disabled && (l.allowDrag?.(K.node) ?? !0);
13788
- function D(K, se, ne, ke) {
13790
+ function W(K, se, ne, ke) {
13789
13791
  const Ve = c.entry(se), He = c.move(K, se, ne);
13790
13792
  return !He || !Ve ? !1 : (n("drop", {
13791
13793
  node: He.node,
@@ -13797,16 +13799,16 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13797
13799
  }), !0);
13798
13800
  }
13799
13801
  const x = Y(null), k = Y(null), A = Y(null);
13800
- let y = null, W;
13802
+ let y = null, D;
13801
13803
  function E() {
13802
- W && clearTimeout(W), W = void 0, y = null;
13804
+ D && clearTimeout(D), D = void 0, y = null;
13803
13805
  }
13804
13806
  function q(K, se) {
13805
13807
  if (!l.springDelay || se !== "inside" || !K.expandable || K.expanded) {
13806
13808
  E();
13807
13809
  return;
13808
13810
  }
13809
- y !== K.key && (E(), y = K.key, W = setTimeout(() => {
13811
+ y !== K.key && (E(), y = K.key, D = setTimeout(() => {
13810
13812
  c.expand(K.key), n("expand", K.node), E();
13811
13813
  }, l.springDelay));
13812
13814
  }
@@ -13831,7 +13833,7 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13831
13833
  se.preventDefault(), se.dataTransfer && (se.dataTransfer.dropEffect = "move"), k.value = K.key, A.value = ne, q(K, ne);
13832
13834
  }
13833
13835
  function N(K) {
13834
- x.value === null || A.value === null || k.value !== K.key || (D(x.value, K.key, A.value, "pointer"), p());
13836
+ x.value === null || A.value === null || k.value !== K.key || (W(x.value, K.key, A.value, "pointer"), p());
13835
13837
  }
13836
13838
  Ne(E);
13837
13839
  function p() {
@@ -13843,16 +13845,16 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
13843
13845
  j.value = Oe, ae(K.key);
13844
13846
  };
13845
13847
  if (se === "ArrowUp" && ke > 0)
13846
- return D(K.key, c.keyOf(ne[ke - 1], [ke - 1]), "before", "keyboard") ? (He(`${Ve} is now ${ke} of ${ne.length}.`), !0) : !1;
13848
+ return W(K.key, c.keyOf(ne[ke - 1], [ke - 1]), "before", "keyboard") ? (He(`${Ve} is now ${ke} of ${ne.length}.`), !0) : !1;
13847
13849
  if (se === "ArrowDown" && ke < ne.length - 1)
13848
- return D(K.key, c.keyOf(ne[ke + 1], [ke + 1]), "after", "keyboard") ? (He(`${Ve} is now ${ke + 2} of ${ne.length}.`), !0) : !1;
13850
+ return W(K.key, c.keyOf(ne[ke + 1], [ke + 1]), "after", "keyboard") ? (He(`${Ve} is now ${ke + 2} of ${ne.length}.`), !0) : !1;
13849
13851
  if (se === "ArrowRight" && ke > 0) {
13850
13852
  const Oe = ne[ke - 1];
13851
- return D(K.key, c.keyOf(Oe, [ke - 1]), "inside", "keyboard") ? (He(`${Ve} is now inside ${m.label?.(Oe) ?? ""}.`), !0) : !1;
13853
+ return W(K.key, c.keyOf(Oe, [ke - 1]), "inside", "keyboard") ? (He(`${Ve} is now inside ${m.label?.(Oe) ?? ""}.`), !0) : !1;
13852
13854
  }
13853
13855
  if (se === "ArrowLeft" && K.parentKey !== null) {
13854
13856
  const Oe = c.entry(K.parentKey);
13855
- return !Oe || !D(K.key, Oe.key, "after", "keyboard") ? !1 : (He(`${Ve} is now after ${m.label?.(Oe.node) ?? ""}.`), !0);
13857
+ return !Oe || !W(K.key, Oe.key, "after", "keyboard") ? !1 : (He(`${Ve} is now after ${m.label?.(Oe.node) ?? ""}.`), !0);
13856
13858
  }
13857
13859
  return j.value = `${Ve} cannot move there.`, !1;
13858
13860
  }
@@ -14115,24 +14117,24 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
14115
14117
  ]), J = f(() => ({
14116
14118
  maxHeight: typeof n.panelHeight == "number" ? `${n.panelHeight}px` : n.panelHeight
14117
14119
  }));
14118
- function D(G) {
14120
+ function W(G) {
14119
14121
  i.value = G, o("change", G, S.value);
14120
14122
  }
14121
14123
  function x(G, P) {
14122
- n.multiple || P === null || (D(P), u.value = !1);
14124
+ n.multiple || P === null || (W(P), u.value = !1);
14123
14125
  }
14124
14126
  function k(G) {
14125
- n.multiple && D([...G]);
14127
+ n.multiple && W([...G]);
14126
14128
  }
14127
14129
  function A(G) {
14128
- D(b.value.filter((P) => P !== G));
14130
+ W(b.value.filter((P) => P !== G));
14129
14131
  }
14130
14132
  function y() {
14131
- D(n.multiple ? [] : null), o("clear");
14133
+ W(n.multiple ? [] : null), o("clear");
14132
14134
  }
14133
- const W = Y(null), E = wt("tree");
14135
+ const D = Y(null), E = wt("tree");
14134
14136
  function q(G) {
14135
- G.target?.closest(".wx-tree__row") || G.key === "ArrowDown" && (G.preventDefault(), W.value?.querySelector('.wx-tree__row[tabindex="0"]')?.focus());
14137
+ G.target?.closest(".wx-tree__row") || G.key === "ArrowDown" && (G.preventDefault(), D.value?.querySelector('.wx-tree__row[tabindex="0"]')?.focus());
14136
14138
  }
14137
14139
  return be(u, async (G) => {
14138
14140
  if (!G) {
@@ -14140,12 +14142,12 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
14140
14142
  return;
14141
14143
  }
14142
14144
  for (const P of b.value) h.reveal(P);
14143
- o("open"), await Fe(), n.filterable && W.value?.closest(".wx-tree-select__panel")?.querySelector(".wx-tree-select__search-input")?.focus();
14145
+ o("open"), await Fe(), n.filterable && D.value?.closest(".wx-tree-select__panel")?.querySelector(".wx-tree-select__search-input")?.focus();
14144
14146
  for (const P of I.value) {
14145
14147
  const U = P.slice(0, -1).map((N) => c.key(N, []));
14146
14148
  U.length && await E.value?.openPath(U);
14147
14149
  }
14148
- await Fe(), W.value?.querySelector('.wx-tree__row.is-selected, .wx-tree__row[aria-checked="true"]')?.scrollIntoView({ block: "nearest" });
14150
+ await Fe(), D.value?.querySelector('.wx-tree__row.is-selected, .wx-tree__row[aria-checked="true"]')?.scrollIntoView({ block: "nearest" });
14149
14151
  }), (G, P) => (s(), X(g(Kt), {
14150
14152
  open: u.value,
14151
14153
  "onUpdate:open": P[2] || (P[2] = (U) => u.value = U)
@@ -14241,7 +14243,7 @@ const Xy = { class: "wx-toast__body" }, Gy = { class: "wx-toast__text" }, qy = 2
14241
14243
  ])) : $("", !0),
14242
14244
  T("div", {
14243
14245
  ref_key: "panel",
14244
- ref: W,
14246
+ ref: D,
14245
14247
  class: "wx-tree-select__body",
14246
14248
  style: ye(J.value)
14247
14249
  }, [