wave-ui 3.19.0 → 3.20.0

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.
Files changed (72) hide show
  1. package/dist/types/$waveui.d.ts +2 -2
  2. package/dist/types/components/WAccordion.d.ts +2 -2
  3. package/dist/types/components/WAlert.d.ts +2 -2
  4. package/dist/types/components/WApp.d.ts +3 -4
  5. package/dist/types/components/WBadge.d.ts +3 -4
  6. package/dist/types/components/WBreadcrumbs.d.ts +3 -4
  7. package/dist/types/components/WButton.d.ts +3 -4
  8. package/dist/types/components/WCard.d.ts +3 -4
  9. package/dist/types/components/WCheckbox.d.ts +2 -2
  10. package/dist/types/components/WCheckboxes.d.ts +2 -2
  11. package/dist/types/components/WConfirm.d.ts +2 -2
  12. package/dist/types/components/WDialog.d.ts +2 -2
  13. package/dist/types/components/WDivider.d.ts +3 -4
  14. package/dist/types/components/WDrawer.d.ts +5 -5
  15. package/dist/types/components/WFlex.d.ts +3 -4
  16. package/dist/types/components/WForm.d.ts +2 -2
  17. package/dist/types/components/WFormElement.d.ts +2 -2
  18. package/dist/types/components/WGrid.d.ts +3 -4
  19. package/dist/types/components/WIcon.d.ts +3 -4
  20. package/dist/types/components/WImage.d.ts +2 -2
  21. package/dist/types/components/WInput.d.ts +2 -2
  22. package/dist/types/components/WList.d.ts +2 -2
  23. package/dist/types/components/WMenu.d.ts +2 -2
  24. package/dist/types/components/WNotification.d.ts +2 -2
  25. package/dist/types/components/WNotificationManager.d.ts +4 -6
  26. package/dist/types/components/WOverlay.d.ts +2 -2
  27. package/dist/types/components/WProgress.d.ts +3 -4
  28. package/dist/types/components/WRadio.d.ts +2 -2
  29. package/dist/types/components/WRadios.d.ts +2 -2
  30. package/dist/types/components/WRating.d.ts +2 -2
  31. package/dist/types/components/WSelect.d.ts +4 -4
  32. package/dist/types/components/WSlider.d.ts +2 -2
  33. package/dist/types/components/WSpinner.d.ts +3 -4
  34. package/dist/types/components/WSteps.d.ts +3 -4
  35. package/dist/types/components/WSwitch.d.ts +2 -2
  36. package/dist/types/components/WTable.d.ts +2 -2
  37. package/dist/types/components/WTabs.d.ts +2 -2
  38. package/dist/types/components/WTag.d.ts +2 -2
  39. package/dist/types/components/WTextarea.d.ts +2 -2
  40. package/dist/types/components/WTimeline.d.ts +3 -4
  41. package/dist/types/components/WToolbar.d.ts +3 -4
  42. package/dist/types/components/WTooltip.d.ts +2 -2
  43. package/dist/types/components/WTree.d.ts +2 -2
  44. package/dist/types/extra-vue-types.d.ts +1 -1
  45. package/dist/types/plugin.d.ts +2 -2
  46. package/dist/wave-ui.cjs.js +1 -1
  47. package/dist/wave-ui.css +1 -1
  48. package/dist/wave-ui.es.js +439 -420
  49. package/dist/wave-ui.umd.js +1 -1
  50. package/package.json +24 -29
  51. package/src/wave-ui/components/transitions/w-transition-expand.vue +3 -3
  52. package/src/wave-ui/components/w-autocomplete.vue +3 -3
  53. package/src/wave-ui/components/w-badge.vue +2 -2
  54. package/src/wave-ui/components/w-card.vue +2 -2
  55. package/src/wave-ui/components/w-checkboxes.vue +1 -1
  56. package/src/wave-ui/components/w-icon.vue +1 -1
  57. package/src/wave-ui/components/w-image.vue +1 -1
  58. package/src/wave-ui/components/w-input.vue +2 -2
  59. package/src/wave-ui/components/w-list.vue +2 -2
  60. package/src/wave-ui/components/w-menu.vue +13 -5
  61. package/src/wave-ui/components/w-scrollable.vue +2 -2
  62. package/src/wave-ui/components/w-table.vue +7 -7
  63. package/src/wave-ui/components/w-tabs/index.vue +2 -2
  64. package/src/wave-ui/components/w-textarea.vue +1 -1
  65. package/src/wave-ui/components/w-toolbar.vue +2 -2
  66. package/src/wave-ui/components/w-tooltip.vue +1 -1
  67. package/src/wave-ui/components/w-tree.vue +1 -1
  68. package/src/wave-ui/core.js +25 -5
  69. package/src/wave-ui/index.d.ts +1 -1
  70. package/src/wave-ui/mixins/detachable.js +1 -1
  71. package/src/wave-ui/utils/colors.js +1 -1
  72. package/src/wave-ui/utils/notification-manager.js +1 -1
@@ -76,16 +76,16 @@ const Pe = Z({
76
76
  return t;
77
77
  }, j = (e) => console.warn(`Wave UI: ${e}`), D = (e) => console.error(`Wave UI: ${e}`), ze = (e) => {
78
78
  ["light", "dark"].forEach((t) => {
79
- var s, a, l;
79
+ var s, n, l;
80
80
  const i = e.colors[t];
81
81
  i.shades = {};
82
- for (const n in i) {
83
- if (n === "shades") continue;
84
- const r = i[n], d = { label: n, color: (l = (a = ((s = i[n]) == null ? void 0 : s.color) ?? i[n]) == null ? void 0 : a.replace) == null ? void 0 : l.call(a, "#", "") }, h = d.color;
82
+ for (const a in i) {
83
+ if (a === "shades") continue;
84
+ const r = i[a], d = { label: a, color: (l = (n = ((s = i[a]) == null ? void 0 : s.color) ?? i[a]) == null ? void 0 : n.replace) == null ? void 0 : l.call(n, "#", "") }, h = d.color;
85
85
  if (h) {
86
- h.length === 3 && (d.color = h[0] + "" + h[0] + h[1] + h[1] + h[2] + h[2]);
86
+ h.length === 3 && (d.color = `${h[0]}${h[0]}${h[1]}${h[1]}${h[2]}${h[2]}`);
87
87
  for (let y = 1; y <= 6; y++) {
88
- const k = Ne(`#${d.color}`, y * ((r == null ? void 0 : r.lightIncrement) ?? 16) + ((r == null ? void 0 : r.lightOffset) ?? 0)), g = Ke(`#${d.color}`, y * ((r == null ? void 0 : r.darkIncrement) ?? 12.4) + ((r == null ? void 0 : r.darkOffset) ?? 0));
88
+ const k = Ke(`#${d.color}`, y * ((r == null ? void 0 : r.lightIncrement) ?? 16) + ((r == null ? void 0 : r.lightOffset) ?? 0)), g = Ne(`#${d.color}`, y * ((r == null ? void 0 : r.darkIncrement) ?? 12.4) + ((r == null ? void 0 : r.darkOffset) ?? 0));
89
89
  i.shades[`${d.label}-light${y}`] = k, i.shades[`${d.label}-dark${y}`] = g;
90
90
  }
91
91
  }
@@ -93,9 +93,9 @@ const Pe = Z({
93
93
  });
94
94
  }, he = (e, t) => {
95
95
  const i = {
96
- ...t.reduce((s, a) => {
97
- s[a.label] = a.color;
98
- const l = (a.shades || []).reduce((n, r) => (n[r.label] = r.color, n), {});
96
+ ...t.reduce((s, n) => {
97
+ s[n.label] = n.color;
98
+ const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
99
99
  return { ...s, ...l };
100
100
  }, { ...e, ...e.shades })
101
101
  };
@@ -121,11 +121,11 @@ function We(e) {
121
121
  return Me(e) && e || Ee(e) && Ae(e) || D(`expected color hex string, got '${e}'`) || "";
122
122
  }
123
123
  function ce(e) {
124
- const t = We(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), a = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
124
+ const t = We(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), n = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
125
125
  return {
126
126
  red: i,
127
127
  green: s,
128
- blue: a,
128
+ blue: n,
129
129
  alpha: l,
130
130
  hasAlpha: t.length === 9
131
131
  };
@@ -134,13 +134,13 @@ function pe(e, t, i, s) {
134
134
  return `#${J(e)}${J(t)}${J(i)}${s ? J(Math.floor(s * 255)) : ""}`;
135
135
  }
136
136
  function Se(e, t, i = 50) {
137
- const s = ce(e), a = ce(t), l = G(i, 0, 100) / 100, n = 2 * l - 1, r = s.alpha - a.alpha, d = ((n * r === -1 ? n : (n + r) / (1 + n * r)) + 1) / 2, h = 1 - d, y = G(Math.round(s.red * d + a.red * h), 0, 255), k = G(Math.round(s.green * d + a.green * h), 0, 255), g = G(Math.round(s.blue * d + a.blue * h), 0, 255), V = s.alpha * l + a.alpha * (1 - l);
138
- return s.hasAlpha || a.hasAlpha || V !== 1 ? pe(y, k, g, V) : pe(y, k, g);
137
+ const s = ce(e), n = ce(t), l = G(i, 0, 100) / 100, a = 2 * l - 1, r = s.alpha - n.alpha, d = ((a * r === -1 ? a : (a + r) / (1 + a * r)) + 1) / 2, h = 1 - d, y = G(Math.round(s.red * d + n.red * h), 0, 255), k = G(Math.round(s.green * d + n.green * h), 0, 255), g = G(Math.round(s.blue * d + n.blue * h), 0, 255), V = s.alpha * l + n.alpha * (1 - l);
138
+ return s.hasAlpha || n.hasAlpha || V !== 1 ? pe(y, k, g, V) : pe(y, k, g);
139
139
  }
140
- function Ne(e, t = 15) {
140
+ function Ke(e, t = 15) {
141
141
  return Se("#ffffff", e, t);
142
142
  }
143
- function Ke(e, t = 12.4) {
143
+ function Ne(e, t = 12.4) {
144
144
  return Se("#000000", e, t);
145
145
  }
146
146
  const me = [
@@ -498,12 +498,12 @@ let se = { keys: [], values: [] }, fe = null;
498
498
  const De = (e, t) => {
499
499
  var V;
500
500
  let i = "";
501
- const s = {}, { info: a, warning: l, success: n, error: r, shades: d, ...h } = e, { cssScope: y } = U;
501
+ const s = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: y } = U;
502
502
  for (const I in h)
503
503
  i += `${y} .${I}--bg{background-color:var(--w-${I}-color)}${y} .${I}{color:var(--w-${I}-color)}`;
504
504
  for (const I in d)
505
505
  i += `${y} .${I}--bg{background-color:${d[I]}}${y} .${I}{color:${d[I]}}`;
506
- const k = { ...h, info: a, warning: l, success: n, error: r };
506
+ const k = { ...h, info: n, warning: l, success: a, error: r };
507
507
  for (const I in k) s[I] = ((V = k[I]) == null ? void 0 : V.color) ?? k[I];
508
508
  if (t)
509
509
  for (const I in d) s[I] = d[I];
@@ -514,20 +514,20 @@ const De = (e, t) => {
514
514
  }, He = (e, t) => {
515
515
  let i = "";
516
516
  const { cssScope: s } = U;
517
- return e.forEach(({ min: a, label: l }) => {
517
+ return e.forEach(({ min: n, label: l }) => {
518
518
  if (l === "xs")
519
- for (let n = 0; n < t; n++)
520
- i += `${s} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
519
+ for (let a = 0; a < t; a++)
520
+ i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
521
521
  else {
522
- i += `@media(min-width:${a}px){`;
523
- for (let n = 0; n < t; n++)
524
- i += `${s} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
522
+ i += `@media(min-width:${n}px){`;
523
+ for (let a = 0; a < t; a++)
524
+ i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
525
525
  i += "}";
526
526
  }
527
527
  }), i;
528
528
  }, Fe = (e) => {
529
529
  let t = "";
530
- const { cssScope: i, baseIncrement: s } = U, a = [
530
+ const { cssScope: i, baseIncrement: s } = U, n = [
531
531
  "show{display:block}",
532
532
  "hide{display:none}",
533
533
  "d-flex{display:flex}",
@@ -564,19 +564,19 @@ const De = (e, t) => {
564
564
  "justify-space-around{justify-content:space-around}",
565
565
  "justify-space-evenly{justify-content:space-evenly}"
566
566
  ], l = Array(12).fill();
567
- return e.forEach(({ label: n, min: r }) => {
568
- n !== "xs" && (t += `@media(min-width:${r}px){` + a.map((d) => `${i} .${n}u-${d}`).join("") + // w-grid columns and gap.
569
- l.map((d, h) => `.w-grid.${n}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${n}u-gap${h + 1},.w-grid.${n}u-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${n}u-gap0,.w-flex.${n}u-gap0{gap:0}}`);
570
- }), e.forEach(({ label: n, min: r, max: d }) => {
571
- t += `@media (min-width:${r}px) and (max-width:${d}px){` + a.map((h) => `${i} .${n}-${h}`).join("") + // w-grid columns and gap.
572
- l.map((h, y) => `.w-grid.${n}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + l.map((h, y) => `.w-flex.${n}-gap${y + 1},.w-grid.${n}-gap${y + 1}{gap:${(y + 1) * s}px;}`).join("") + `.w-flex.${n}-gap0,.w-flex.${n}-gap0{gap:0}}`;
573
- }), e.forEach(({ label: n, max: r }) => {
574
- n !== "xl" && (t += `@media (max-width:${r}px){` + a.map((d) => `${i} .${n}d-${d}`).join("") + // w-grid columns and gap.
575
- l.map((d, h) => `.w-grid.${n}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${n}d-gap${h + 1},.w-grid.${n}d-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${n}d-gap0,.w-flex.${n}d-gap0{gap:0}}`);
567
+ return e.forEach(({ label: a, min: r }) => {
568
+ a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + // w-grid columns and gap.
569
+ l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
570
+ }), e.forEach(({ label: a, min: r, max: d }) => {
571
+ t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + // w-grid columns and gap.
572
+ l.map((h, y) => `.w-grid.${a}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + l.map((h, y) => `.w-flex.${a}-gap${y + 1},.w-grid.${a}-gap${y + 1}{gap:${(y + 1) * s}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
573
+ }), e.forEach(({ label: a, max: r }) => {
574
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
575
+ l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
576
576
  }), t;
577
577
  }, ge = (e) => {
578
578
  const t = window.innerWidth, i = se.values.slice(0);
579
- i.push(t), i.sort((a, l) => a - l);
579
+ i.push(t), i.sort((n, l) => n - l);
580
580
  const s = se.keys[i.indexOf(t)] || "xl";
581
581
  s !== fe && (fe = s, e.breakpoint = {
582
582
  name: s,
@@ -600,20 +600,20 @@ const De = (e, t) => {
600
600
  if (!document.getElementById("wave-ui-colors")) {
601
601
  const s = document.createElement("style");
602
602
  s.id = "wave-ui-colors", s.innerHTML = De(e, t);
603
- const a = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
604
- a ? a.before(s) : document.head.appendChild(s);
603
+ const n = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
604
+ n ? n.before(s) : document.head.appendChild(s);
605
605
  }
606
606
  }, qe = (e) => {
607
- const t = Object.entries(e.breakpoints), i = t.map(([l, n], r) => {
607
+ const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
608
608
  const [, d = 0] = t[r - 1] || [];
609
- return { label: l, min: d ? d + 1 : 0, max: n };
609
+ return { label: l, min: d ? d + 1 : 0, max: a };
610
610
  }), s = getComputedStyle(document.documentElement);
611
611
  U.cssScope = s.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
612
- let a = "";
613
- return a += He(i, e.css.grid), e.css.breakpointLayoutClasses && (a += Fe(i)), a;
612
+ let n = "";
613
+ return n += He(i, e.css.grid), e.css.breakpointLayoutClasses && (n += Fe(i)), n;
614
614
  }, Xe = ["innerHTML"];
615
- function Ye(e, t, i, s, a, l) {
616
- const n = $("w-alert");
615
+ function Ye(e, t, i, s, n, l) {
616
+ const a = $("w-alert");
617
617
  return o(), b(Ve, { to: ".w-app" }, [
618
618
  T(ae, {
619
619
  class: m(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
@@ -623,7 +623,7 @@ function Ye(e, t, i, s, a, l) {
623
623
  }, {
624
624
  default: f(() => [
625
625
  (o(!0), u(v, null, x(l.notifications, (r) => (o(), u(v, null, [
626
- r._value ? (o(), b(n, _({
626
+ r._value ? (o(), b(a, _({
627
627
  class: "white--bg",
628
628
  key: r._uid,
629
629
  modelValue: r._value,
@@ -646,8 +646,8 @@ function Ye(e, t, i, s, a, l) {
646
646
  }
647
647
  const C = (e, t) => {
648
648
  const i = e.__vccOpts || e;
649
- for (const [s, a] of t)
650
- i[s] = a;
649
+ for (const [s, n] of t)
650
+ i[s] = n;
651
651
  return i;
652
652
  }, Ge = {
653
653
  name: "w-notification-manager",
@@ -667,27 +667,27 @@ const C = (e, t) => {
667
667
  },
668
668
  methods: {
669
669
  notifProps(e) {
670
- const { _value: t, _uid: i, message: s, timeout: a, ...l } = e;
670
+ const { _value: t, _uid: i, message: s, timeout: n, ...l } = e;
671
671
  return l.dismiss && (l.dismiss = !0), l;
672
672
  }
673
673
  }
674
674
  }, Je = /* @__PURE__ */ C(Ge, [["render", Ye]]);
675
675
  var H;
676
- const N = class N {
676
+ const K = class K {
677
677
  constructor() {
678
678
  F(this, "notifications");
679
679
  // Private fields.
680
680
  F(this, "_uid");
681
681
  // A unique ID for each notification.
682
682
  F(this, "_notificationDefaults");
683
- if (Y(N, H)) return Y(N, H);
683
+ if (Y(K, H)) return Y(K, H);
684
684
  this.notifications = [], this._uid = 0, this._notificationDefaults = {
685
685
  _uid: 0,
686
686
  _value: !0,
687
687
  message: "",
688
688
  timeout: 4e3,
689
689
  dismiss: !0
690
- }, ie(N, H, this);
690
+ }, ie(K, H, this);
691
691
  }
692
692
  notify(...t) {
693
693
  let i = {
@@ -696,11 +696,11 @@ const N = class N {
696
696
  };
697
697
  if (typeof t[0] == "object") i = { ...i, ...t[0] };
698
698
  else {
699
- const [s, a, l] = t;
699
+ const [s, n, l] = t;
700
700
  i = {
701
701
  ...i,
702
702
  message: s || "",
703
- [a === void 0 ? "info" : a]: !0,
703
+ [n === void 0 ? "info" : n]: !0,
704
704
  timeout: l || l === 0 ? parseFloat(l) : 4e3
705
705
  };
706
706
  }
@@ -710,8 +710,8 @@ const N = class N {
710
710
  this.notifications = this.notifications.filter((i) => i._uid !== t);
711
711
  }
712
712
  };
713
- H = new WeakMap(), te(N, H);
714
- let oe = N;
713
+ H = new WeakMap(), te(K, H);
714
+ let oe = K;
715
715
  const Qe = (e) => {
716
716
  const t = document.createElement("div");
717
717
  document.body.appendChild(t);
@@ -726,24 +726,23 @@ const Ze = (e) => {
726
726
  });
727
727
  }, et = (e, t) => {
728
728
  var i, s;
729
- for (const a in t)
730
- if ((i = e.props) != null && i[a])
731
- e.props[a].default = t[a];
729
+ for (const n in t)
730
+ if ((i = e.props) != null && i[n])
731
+ e.props[n].default = t[n];
732
732
  else {
733
733
  let l = !1;
734
734
  if (Array.isArray(e.mixins) && e.mixins.length) {
735
- for (const n of e.mixins)
736
- if ((s = n == null ? void 0 : n.props) != null && s[a]) {
737
- n.props[a].default = t[a], l = !0;
735
+ for (const a of e.mixins)
736
+ if ((s = a == null ? void 0 : a.props) != null && s[n]) {
737
+ a.props[n].default = t[n], l = !0;
738
738
  break;
739
739
  }
740
- l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${a}\`.`);
741
- continue;
740
+ l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
742
741
  }
743
742
  }
744
743
  };
745
744
  var X;
746
- const K = class K {
745
+ const N = class N {
747
746
  constructor(t, i = {}) {
748
747
  // Exposed as a global object and also `app.provide`d.
749
748
  // Accessible from this.$waveui, or inject('$waveui').
@@ -765,63 +764,80 @@ const K = class K {
765
764
  theme: null,
766
765
  // The current theme (light or dark).
767
766
  _notificationManager: null,
768
- // Callable from this.$waveui.
767
+ /**
768
+ * Notify the user. (Callable from this.$waveui)
769
+ *
770
+ * @param {...any} args - The arguments to pass to the notification manager.
771
+ */
769
772
  notify(...t) {
770
773
  this._notificationManager.notify(...t);
771
774
  },
772
- // Callable from this.$waveui.
773
- switchTheme(t, i = !1) {
774
- var a, l;
775
- this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (a = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : a.remove) == null || l.call(a);
776
- const s = this.config.colors[this.theme];
777
- Ue(s, this.config.css.colorShadeCssVariables), this.colors = he(s, me);
775
+ /**
776
+ * Switch the theme. (Callable from this.$waveui)
777
+ *
778
+ * @param {string} theme - The theme to switch to.
779
+ */
780
+ switchTheme(t) {
781
+ var s, n;
782
+ this.theme = t, document.documentElement.setAttribute("data-theme", t), (n = (s = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : s.remove) == null || n.call(s);
783
+ const i = this.config.colors[this.theme];
784
+ Ue(i, this.config.css.colorShadeCssVariables), this.colors = he(i, me);
785
+ },
786
+ /**
787
+ * Set the classes of the app element. (Callable from this.$waveui)
788
+ *
789
+ * @param {string} classes - The classes to set.
790
+ */
791
+ setAppClasses(...t) {
792
+ const i = document.querySelector(".w-app");
793
+ i && (i.className = "w-app", i.classList.add(...t));
778
794
  }
779
795
  });
780
- if (Y(K, X)) return;
796
+ if (Y(N, X)) return;
781
797
  if (this.$waveui._notificationManager = new oe(), i.theme || (i.theme = "light"), i.colors) {
782
- const n = { ...i.colors };
783
- i.colors.light || (i.colors.light = n), i.colors.dark || (i.colors.dark = n), i.colors = { light: i.colors.light, dark: i.colors.dark };
798
+ const a = { ...i.colors };
799
+ i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
784
800
  }
785
- let { components: s, ...a } = i;
786
- a = this.$waveui.config = Ce(a), a.css.colorShades && ze(a);
801
+ let { components: s, ...n } = i;
802
+ n = this.$waveui.config = Ce(n), n.css.colorShades && ze(n);
787
803
  const l = Z(this.$waveui);
788
- t.config.globalProperties.$waveui = l, t.provide("$waveui", l), a.theme !== "auto" && (this.$waveui.colors = he(a.colors[a.theme], me));
804
+ t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = he(n.colors[n.theme], me));
789
805
  }
790
806
  static install(t, i = {}) {
791
- var a;
807
+ var n;
792
808
  t.directive("focus", {
793
809
  // Wait for the next tick to focus the newly mounted element.
794
810
  mounted: (l) => setTimeout(() => l.focus(), 0)
795
811
  }), t.directive("scroll", {
796
- mounted: (l, n) => {
812
+ mounted: (l, a) => {
797
813
  const r = (d) => {
798
- n.value(d, l) && window.removeEventListener("scroll", r);
814
+ a.value(d, l) && window.removeEventListener("scroll", r);
799
815
  };
800
816
  window.addEventListener("scroll", r);
801
817
  }
802
818
  });
803
819
  const { components: s = {} } = i || {};
804
820
  for (const l in s) {
805
- const n = s[l];
806
- (a = i.presets) != null && a[n.name] && et(n, i.presets[n.name]), t.component(n.name, n);
821
+ const a = s[l];
822
+ (n = i.presets) != null && n[a.name] && et(a, i.presets[a.name]), t.component(a.name, a);
807
823
  }
808
824
  t.mixin({
809
825
  // Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
810
826
  beforeMount() {
811
827
  if (!be) {
812
828
  be = !0;
813
- const l = Re("$waveui"), { config: n } = l;
814
- (document.querySelector(n.on) || document.body).classList.add("w-app"), n.theme === "auto" ? Ze(l) : l.switchTheme(n.theme, !0), je(l), Qe(t), t._context.mixins.find((d) => d.mounted && delete d.mounted);
829
+ const l = Re("$waveui"), { config: a } = l;
830
+ (document.querySelector(a.on) || document.body).classList.add("w-app"), a.theme === "auto" ? Ze(l) : l.switchTheme(a.theme, !0), je(l), Qe(t), t._context.mixins.find((d) => d.mounted && (d.mounted = void 0));
815
831
  }
816
832
  }
817
- }), new K(t, i), ie(K, X, !0);
833
+ }), new N(t, i), ie(N, X, !0);
818
834
  }
819
835
  };
820
- X = new WeakMap(), te(K, X, !1);
821
- let q = K;
836
+ X = new WeakMap(), te(N, X, !1);
837
+ let q = N;
822
838
  const P = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), tt = ["aria-expanded"], it = ["tabindex"], lt = ["innerHTML"], st = ["innerHTML"];
823
- function ot(e, t, i, s, a, l) {
824
- const n = $("w-button"), r = $("w-transition-expand");
839
+ function ot(e, t, i, s, n, l) {
840
+ const a = $("w-button"), r = $("w-transition-expand");
825
841
  return o(), u("div", {
826
842
  class: m(["w-accordion__item", l.itemClasses]),
827
843
  "aria-expanded": l.accordionItem._expanded ? "true" : "false"
@@ -833,7 +849,7 @@ function ot(e, t, i, s, a, l) {
833
849
  onKeypress: t[6] || (t[6] = A((d) => !l.accordionItem._disabled && l.toggleItem(l.accordionItem, d), ["enter"])),
834
850
  tabindex: !l.accordionItem._disabled && 0
835
851
  }, [
836
- l.options.expandIcon && !l.options.expandIconRight ? (o(), b(n, {
852
+ l.options.expandIcon && !l.options.expandIconRight ? (o(), b(a, {
837
853
  key: 0,
838
854
  class: m(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": l.accordionItem._expanded, "w-accordion__expand-icon--rotate90": l.options.expandIconRotate90 }]),
839
855
  icon: l.accordionItem._expanded && l.options.collapseIcon || l.options.expandIcon,
@@ -855,7 +871,7 @@ function ot(e, t, i, s, a, l) {
855
871
  innerHTML: l.accordionItem[l.options.itemTitleKey]
856
872
  }, null, 8, lt)
857
873
  ]),
858
- l.options.expandIcon && l.options.expandIconRight ? (o(), b(n, {
874
+ l.options.expandIcon && l.options.expandIconRight ? (o(), b(a, {
859
875
  key: 1,
860
876
  class: m(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": l.accordionItem._expanded, "w-accordion__expand-icon--rotate90": l.options.expandIconRotate90 }]),
861
877
  icon: l.accordionItem._expanded && l.options.collapseIcon || l.options.expandIcon,
@@ -945,12 +961,12 @@ const at = {
945
961
  this.unregisterItem(this._.uid);
946
962
  }
947
963
  }, Be = /* @__PURE__ */ C(at, [["render", ot]]);
948
- function nt(e, t, i, s, a, l) {
949
- const n = $("w-accordion-item");
964
+ function nt(e, t, i, s, n, l) {
965
+ const a = $("w-accordion-item");
950
966
  return o(), u("div", {
951
967
  class: m(["w-accordion", l.accordionClasses])
952
968
  }, [
953
- l.accordionItemsProvided ? c(e.$slots, "default", { key: 0 }) : (i.items || []).length ? (o(!0), u(v, { key: 1 }, x(i.items.length ? i.items : e.accordionItems, (r, d) => (o(), b(n, {
969
+ l.accordionItemsProvided ? c(e.$slots, "default", { key: 0 }) : (i.items || []).length ? (o(!0), u(v, { key: 1 }, x(i.items.length ? i.items : e.accordionItems, (r, d) => (o(), b(a, {
954
970
  key: d,
955
971
  class: m(l.itemClasses),
956
972
  title: r.title,
@@ -1043,8 +1059,8 @@ const rt = {
1043
1059
  accordionItemsProvided() {
1044
1060
  var e, t, i;
1045
1061
  return (i = (t = (e = this.$slots).default) == null ? void 0 : t.call(e)) == null ? void 0 : i.some((s) => {
1046
- var a;
1047
- return (a = s == null ? void 0 : s.type) == null ? void 0 : a.name;
1062
+ var n;
1063
+ return (n = s == null ? void 0 : s.type) == null ? void 0 : n.name;
1048
1064
  });
1049
1065
  },
1050
1066
  accordionClasses() {
@@ -1117,14 +1133,14 @@ const rt = {
1117
1133
  }
1118
1134
  }
1119
1135
  }, dt = /* @__PURE__ */ C(rt, [["render", nt]]), ut = { class: "w-alert__content" };
1120
- function ht(e, t, i, s, a, l) {
1121
- const n = $("w-icon"), r = $("w-button");
1122
- return a.show ? (o(), u("div", {
1136
+ function ht(e, t, i, s, n, l) {
1137
+ const a = $("w-icon"), r = $("w-button");
1138
+ return n.show ? (o(), u("div", {
1123
1139
  key: 0,
1124
1140
  class: m(["w-alert", l.classes])
1125
1141
  }, [
1126
1142
  l.type || i.icon || i.dismiss ? (o(), u(v, { key: 0 }, [
1127
- l.type || i.icon ? (o(), b(n, {
1143
+ l.type || i.icon ? (o(), b(a, {
1128
1144
  key: 0,
1129
1145
  class: "w-alert__icon"
1130
1146
  }, {
@@ -1140,7 +1156,7 @@ function ht(e, t, i, s, a, l) {
1140
1156
  key: 1,
1141
1157
  class: "w-alert__dismiss",
1142
1158
  onClick: t[0] || (t[0] = (d) => {
1143
- e.$emit("update:modelValue", a.show = !1), e.$emit("input", !1), e.$emit("close", !1);
1159
+ e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
1144
1160
  }),
1145
1161
  icon: "wi-cross",
1146
1162
  color: "inherit",
@@ -1233,8 +1249,8 @@ const ct = {
1233
1249
  }
1234
1250
  }
1235
1251
  }, pt = /* @__PURE__ */ C(ct, [["render", ht]]), mt = { class: "w-autocomplete__selection" }, ft = ["innerHTML"], gt = ["innerHTML"], bt = ["value"], yt = ["onClick"], wt = ["innerHTML"], kt = ["innerHTML"];
1236
- function vt(e, t, i, s, a, l) {
1237
- const n = $("w-button"), r = $("w-transition-slide-fade");
1252
+ function vt(e, t, i, s, n, l) {
1253
+ const a = $("w-button"), r = $("w-transition-slide-fade");
1238
1254
  return o(), u("div", {
1239
1255
  class: m(["w-autocomplete", l.classes]),
1240
1256
  onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
@@ -1248,7 +1264,7 @@ function vt(e, t, i, s, a, l) {
1248
1264
  w("span", {
1249
1265
  innerHTML: d[i.itemLabelKey]
1250
1266
  }, null, 8, ft),
1251
- T(n, {
1267
+ T(a, {
1252
1268
  onClick: M((y) => l.unselectItem(h), ["stop"]),
1253
1269
  icon: "wi-cross",
1254
1270
  xs: "",
@@ -1454,12 +1470,12 @@ const Ct = {
1454
1470
  e.preventDefault();
1455
1471
  let s = this.highlightedItemIndex;
1456
1472
  s === -1 ? s = e.keyCode === 38 ? t - 1 : 0 : s = (s + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && s === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[s]) == null ? void 0 : i.uid) || 0;
1457
- const a = this.$refs.menu;
1458
- if (a)
1459
- if (this.$slots["extra-item"] && s === t - 1) a.scrollTop = a.scrollHeight;
1473
+ const n = this.$refs.menu;
1474
+ if (n)
1475
+ if (this.$slots["extra-item"] && s === t - 1) n.scrollTop = n.scrollHeight;
1460
1476
  else {
1461
- const { offsetHeight: l, offsetTop: n } = a.childNodes[s] || {};
1462
- a.scrollTop + a.offsetHeight - l < n ? a.scrollTop = n - a.offsetHeight + l : a.scrollTop > n && (a.scrollTop = n);
1477
+ const { offsetHeight: l, offsetTop: a } = n.childNodes[s] || {};
1478
+ n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1463
1479
  }
1464
1480
  } else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
1465
1481
  },
@@ -1500,7 +1516,7 @@ const Ct = {
1500
1516
  }
1501
1517
  }
1502
1518
  }, St = /* @__PURE__ */ C(Ct, [["render", vt]]), Bt = { class: "w-app" };
1503
- function _t(e, t, i, s, a, l) {
1519
+ function _t(e, t, i, s, n, l) {
1504
1520
  return o(), u("div", Bt, [
1505
1521
  c(e.$slots, "default")
1506
1522
  ]);
@@ -1522,7 +1538,7 @@ const $t = {
1522
1538
  textRight: { type: Boolean }
1523
1539
  }
1524
1540
  }, It = /* @__PURE__ */ C($t, [["render", _t]]), Vt = { class: "w-badge-wrap" };
1525
- function Tt(e, t, i, s, a, l) {
1541
+ function Tt(e, t, i, s, n, l) {
1526
1542
  return o(), u("div", Vt, [
1527
1543
  c(e.$slots, "default"),
1528
1544
  T(O, {
@@ -1589,12 +1605,13 @@ const Lt = {
1589
1605
  ];
1590
1606
  },
1591
1607
  classes() {
1592
- const e = this.$slots.badge && this.$slots.badge().map((t) => t.children).join("");
1608
+ var t, i;
1609
+ const e = (i = (t = this.$slots).badge) == null ? void 0 : i.call(t).map((s) => s.children).join("");
1593
1610
  return {
1594
1611
  [this.color]: this.color,
1595
1612
  [`${this.bgColor}--bg`]: this.bgColor,
1596
1613
  [this.badgeClass]: this.badgeClass || null,
1597
- "w-badge--round": this.round || (e || this.modelValue + "" || "").length < 2,
1614
+ "w-badge--round": this.round || (e || `${this.modelValue}` || "").length < 2,
1598
1615
  "w-badge--dark": this.dark,
1599
1616
  "w-badge--light": this.light,
1600
1617
  "w-badge--outline": this.outline,
@@ -1611,8 +1628,8 @@ const Lt = {
1611
1628
  }
1612
1629
  }
1613
1630
  }, Rt = /* @__PURE__ */ C(Lt, [["render", Tt]]), xt = ["innerHTML"];
1614
- function Ot(e, t, i, s, a, l) {
1615
- const n = $("w-icon");
1631
+ function Ot(e, t, i, s, n, l) {
1632
+ const a = $("w-icon");
1616
1633
  return o(), u("div", {
1617
1634
  class: m(["w-breadcrumbs", l.classes])
1618
1635
  }, [
@@ -1622,7 +1639,7 @@ function Ot(e, t, i, s, a, l) {
1622
1639
  key: `${d}a`
1623
1640
  }, [
1624
1641
  c(e.$slots, "separator", { index: d })
1625
- ], 2)) : d ? (o(), b(n, {
1642
+ ], 2)) : d ? (o(), b(a, {
1626
1643
  class: m(["w-breadcrumbs__separator", i.separatorColor]),
1627
1644
  key: `${d}b`
1628
1645
  }, {
@@ -1700,8 +1717,8 @@ const Pt = {
1700
1717
  key: 0,
1701
1718
  class: "w-button__loader"
1702
1719
  };
1703
- function Et(e, t, i, s, a, l) {
1704
- const n = $("w-icon");
1720
+ function Et(e, t, i, s, n, l) {
1721
+ const a = $("w-icon");
1705
1722
  return o(), b(L(!i.disabled && i.route ? "a" : "button"), _({
1706
1723
  class: ["w-button", l.classes],
1707
1724
  type: !i.route && i.type,
@@ -1709,7 +1726,7 @@ function Et(e, t, i, s, a, l) {
1709
1726
  disabled: !!i.disabled || null
1710
1727
  }, l.attrs, { style: l.styles }), {
1711
1728
  default: f(() => [
1712
- i.icon ? (o(), b(n, le(_({ key: 0 }, i.iconProps || {})), {
1729
+ i.icon ? (o(), b(a, le(_({ key: 0 }, i.iconProps || {})), {
1713
1730
  default: f(() => [
1714
1731
  B(S(i.icon), 1)
1715
1732
  ]),
@@ -1840,12 +1857,12 @@ const At = {
1840
1857
  };
1841
1858
  }
1842
1859
  }
1843
- }, Wt = /* @__PURE__ */ C(At, [["render", Et]]), Nt = ["innerHTML"];
1844
- function Kt(e, t, i, s, a, l) {
1845
- const n = $("button-partial");
1860
+ }, Wt = /* @__PURE__ */ C(At, [["render", Et]]), Kt = ["innerHTML"];
1861
+ function Nt(e, t, i, s, n, l) {
1862
+ const a = $("button-partial");
1846
1863
  return i.tooltip ? (o(), b(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
1847
1864
  activator: f(({ on: r }) => [
1848
- T(n, _(l.buttonProps, ne(r)), {
1865
+ T(a, _(l.buttonProps, ne(r)), {
1849
1866
  default: f(() => [
1850
1867
  c(e.$slots, "default")
1851
1868
  ]),
@@ -1853,10 +1870,10 @@ function Kt(e, t, i, s, a, l) {
1853
1870
  }, 1040)
1854
1871
  ]),
1855
1872
  default: f(() => [
1856
- w("div", { innerHTML: i.tooltip }, null, 8, Nt)
1873
+ w("div", { innerHTML: i.tooltip }, null, 8, Kt)
1857
1874
  ]),
1858
1875
  _: 3
1859
- }, 16)) : (o(), b(n, le(_({ key: 1 }, l.buttonProps)), {
1876
+ }, 16)) : (o(), b(a, le(_({ key: 1 }, l.buttonProps)), {
1860
1877
  loading: f(() => [
1861
1878
  c(e.$slots, "loading")
1862
1879
  ]),
@@ -1917,9 +1934,9 @@ const Dt = {
1917
1934
  return { ...i, ...this.$attrs };
1918
1935
  }
1919
1936
  }
1920
- }, Ht = /* @__PURE__ */ C(Dt, [["render", Kt]]), Ft = ["innerHTML"];
1921
- function jt(e, t, i, s, a, l) {
1922
- const n = $("w-image");
1937
+ }, Ht = /* @__PURE__ */ C(Dt, [["render", Nt]]), Ft = ["innerHTML"];
1938
+ function jt(e, t, i, s, n, l) {
1939
+ const a = $("w-image");
1923
1940
  return o(), u("div", {
1924
1941
  class: m(["w-card", l.classes])
1925
1942
  }, [
@@ -1933,7 +1950,7 @@ function jt(e, t, i, s, a, l) {
1933
1950
  class: m(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1934
1951
  innerHTML: i.title
1935
1952
  }, null, 10, Ft)) : p("", !0),
1936
- i.image ? (o(), b(n, _({
1953
+ i.image ? (o(), b(a, _({
1937
1954
  key: 2,
1938
1955
  class: "w-card__image",
1939
1956
  src: i.image
@@ -1981,12 +1998,14 @@ const Ut = {
1981
1998
  return P(this.contentClass);
1982
1999
  },
1983
2000
  titleHasToolbar() {
2001
+ var t;
1984
2002
  const { title: e } = this.$slots;
1985
- return e && e().map((t) => t.type.name).join("").includes("w-toolbar");
2003
+ return (t = e == null ? void 0 : e()) == null ? void 0 : t.map((i) => i.type.name).join("").includes("w-toolbar");
1986
2004
  },
1987
2005
  actionsHasToolbar() {
2006
+ var t;
1988
2007
  const { actions: e } = this.$slots;
1989
- return e && e().map((t) => t.type.name).join("").includes("w-toolbar");
2008
+ return (t = e == null ? void 0 : e()) == null ? void 0 : t.map((i) => i.type.name).join("").includes("w-toolbar");
1990
2009
  },
1991
2010
  imgProps() {
1992
2011
  return {
@@ -2055,12 +2074,12 @@ const Ut = {
2055
2074
  }
2056
2075
  }
2057
2076
  }, Xt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Yt = ["for"], Gt = ["for", "innerHTML"], Jt = ["for"], Qt = ["for", "innerHTML"];
2058
- function Zt(e, t, i, s, a, l) {
2059
- return o(), b(L(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
2077
+ function Zt(e, t, i, s, n, l) {
2078
+ return o(), b(L(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
2060
2079
  valid: e.valid,
2061
- "onUpdate:valid": t[5] || (t[5] = (n) => e.valid = n),
2062
- onReset: t[6] || (t[6] = (n) => {
2063
- e.$emit("update:modelValue", a.isChecked = null), e.$emit("input", null);
2080
+ "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
2081
+ onReset: t[6] || (t[6] = (a) => {
2082
+ e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
2064
2083
  }),
2065
2084
  class: l.classes
2066
2085
  }), {
@@ -2070,15 +2089,15 @@ function Zt(e, t, i, s, a, l) {
2070
2089
  id: `w-checkbox--${e._.uid}`,
2071
2090
  type: "checkbox",
2072
2091
  name: e.inputName,
2073
- checked: a.isChecked || null,
2092
+ checked: n.isChecked || null,
2074
2093
  disabled: e.isDisabled || e.isReadonly || null,
2075
2094
  required: e.required || null,
2076
2095
  tabindex: e.tabindex || null,
2077
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
2078
- onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
2079
- onChange: t[2] || (t[2] = (n) => l.onInput()),
2080
- onKeypress: t[3] || (t[3] = A((...n) => l.onInput && l.onInput(...n), ["enter"])),
2081
- "aria-checked": a.isChecked || "false",
2096
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
2097
+ onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
2098
+ onChange: t[2] || (t[2] = (a) => l.onInput()),
2099
+ onKeypress: t[3] || (t[3] = A((...a) => l.onInput && l.onInput(...a), ["enter"])),
2100
+ "aria-checked": n.isChecked || "false",
2082
2101
  role: "checkbox"
2083
2102
  }, null, 40, Xt),
2084
2103
  l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
@@ -2099,7 +2118,7 @@ function Zt(e, t, i, s, a, l) {
2099
2118
  ], 64)) : p("", !0),
2100
2119
  w("div", {
2101
2120
  class: m(["w-checkbox__input", this.color]),
2102
- onClick: t[4] || (t[4] = (n) => {
2121
+ onClick: t[4] || (t[4] = (a) => {
2103
2122
  e.$refs.input.focus(), e.$refs.input.click();
2104
2123
  })
2105
2124
  }, t[7] || (t[7] = [
@@ -2195,8 +2214,8 @@ const ei = {
2195
2214
  }
2196
2215
  }
2197
2216
  }, ti = /* @__PURE__ */ C(ei, [["render", Zt]]), ii = ["innerHTML"];
2198
- function li(e, t, i, s, a, l) {
2199
- const n = $("w-checkbox");
2217
+ function li(e, t, i, s, n, l) {
2218
+ const a = $("w-checkbox");
2200
2219
  return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
2201
2220
  valid: e.valid,
2202
2221
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
@@ -2206,7 +2225,7 @@ function li(e, t, i, s, a, l) {
2206
2225
  class: l.classes
2207
2226
  }), {
2208
2227
  default: f(() => [
2209
- (o(!0), u(v, null, x(l.checkboxItems, (r, d) => (o(), b(n, _({
2228
+ (o(!0), u(v, null, x(l.checkboxItems, (r, d) => (o(), b(a, _({
2210
2229
  key: d,
2211
2230
  "model-value": r._isChecked,
2212
2231
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -2266,6 +2285,7 @@ const si = {
2266
2285
  computed: {
2267
2286
  checkboxItems() {
2268
2287
  return (this.items || []).map((e, t) => {
2288
+ var s;
2269
2289
  const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
2270
2290
  return Z({
2271
2291
  ...e,
@@ -2274,7 +2294,7 @@ const si = {
2274
2294
  value: i,
2275
2295
  // If no value is set then add one to prevent error.
2276
2296
  color: e[this.itemColorKey] || this.color,
2277
- _isChecked: this.modelValue && this.modelValue.includes(i)
2297
+ _isChecked: (s = this.modelValue) == null ? void 0 : s.includes(i)
2278
2298
  });
2279
2299
  });
2280
2300
  },
@@ -2300,14 +2320,14 @@ const si = {
2300
2320
  }
2301
2321
  }
2302
2322
  }, oi = /* @__PURE__ */ C(si, [["render", li]]);
2303
- function ai(e, t, i, s, a, l) {
2304
- const n = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ke("focus");
2323
+ function ai(e, t, i, s, n, l) {
2324
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ke("focus");
2305
2325
  return o(), b(d, _({
2306
2326
  modelValue: e.showPopup,
2307
2327
  "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
2308
2328
  }, l.wMenuProps), {
2309
2329
  activator: f(({ on: y }) => [
2310
- T(n, _({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps }, ne(i.disablePrompt ? {} : { ...y })), {
2330
+ T(a, _({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps }, ne(i.disablePrompt ? {} : { ...y })), {
2311
2331
  default: f(() => [
2312
2332
  c(e.$slots, "default")
2313
2333
  ]),
@@ -2328,7 +2348,7 @@ function ai(e, t, i, s, a, l) {
2328
2348
  w("div", {
2329
2349
  class: m(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2330
2350
  }, [
2331
- i.cancel !== !1 ? (o(), b(n, _({
2351
+ i.cancel !== !1 ? (o(), b(a, _({
2332
2352
  key: 0,
2333
2353
  class: "mr2"
2334
2354
  }, l.cancelButtonProps, {
@@ -2343,7 +2363,7 @@ function ai(e, t, i, s, a, l) {
2343
2363
  ]),
2344
2364
  _: 3
2345
2365
  }, 16, ["bg-color", "onClick"])) : p("", !0),
2346
- W((o(), b(n, _(l.confirmButtonProps, {
2366
+ W((o(), b(a, _(l.confirmButtonProps, {
2347
2367
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2348
2368
  onKeyup: t[1] || (t[1] = A((y) => !i.persistent && l.onCancel(), ["escape"])),
2349
2369
  onClick: l.onConfirm
@@ -2479,7 +2499,7 @@ const ni = {
2479
2499
  }
2480
2500
  }
2481
2501
  }, ri = /* @__PURE__ */ C(ni, [["render", ai]]);
2482
- function di(e, t, i, s, a, l) {
2502
+ function di(e, t, i, s, n, l) {
2483
2503
  return o(), u("div", {
2484
2504
  class: m(["w-date-picker", l.classes]),
2485
2505
  style: R(l.styles)
@@ -2506,11 +2526,11 @@ const ui = {
2506
2526
  }
2507
2527
  }
2508
2528
  }, hi = /* @__PURE__ */ C(ui, [["render", di]]);
2509
- function ci(e, t, i, s, a, l) {
2510
- const n = $("w-card"), r = $("w-overlay");
2529
+ function ci(e, t, i, s, n, l) {
2530
+ const a = $("w-card"), r = $("w-overlay");
2511
2531
  return o(), b(r, {
2512
2532
  class: m(["w-dialog", l.classes]),
2513
- "model-value": a.showWrapper,
2533
+ "model-value": n.showWrapper,
2514
2534
  persistent: i.persistent,
2515
2535
  "persistent-no-animation": i.persistentNoAnimation,
2516
2536
  onClick: l.onOutsideClick,
@@ -2525,7 +2545,7 @@ function ci(e, t, i, s, a, l) {
2525
2545
  onAfterLeave: l.onBeforeClose
2526
2546
  }, {
2527
2547
  default: f(() => [
2528
- W(T(n, {
2548
+ W(T(a, {
2529
2549
  class: m(["w-dialog__content", i.dialogClass]),
2530
2550
  ref: "dialog",
2531
2551
  "no-border": "",
@@ -2556,7 +2576,7 @@ function ci(e, t, i, s, a, l) {
2556
2576
  key: "1"
2557
2577
  } : void 0
2558
2578
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2559
- [re, a.showContent]
2579
+ [re, n.showContent]
2560
2580
  ])
2561
2581
  ]),
2562
2582
  _: 3
@@ -2645,7 +2665,7 @@ const pi = {
2645
2665
  }
2646
2666
  }
2647
2667
  }, mi = /* @__PURE__ */ C(pi, [["render", ci]]), fi = ["role", "aria-orientation"];
2648
- function gi(e, t, i, s, a, l) {
2668
+ function gi(e, t, i, s, n, l) {
2649
2669
  return o(), u("div", {
2650
2670
  class: m(["w-divider", l.classes]),
2651
2671
  role: e.$slots.default ? null : "presentation",
@@ -2675,9 +2695,9 @@ const bi = {
2675
2695
  }
2676
2696
  }
2677
2697
  }, yi = /* @__PURE__ */ C(bi, [["render", gi]]), wi = { class: "w-drawer-wrap__pushable" };
2678
- function ki(e, t, i, s, a, l) {
2679
- const n = $("w-overlay");
2680
- return a.showWrapper || i.pushContent ? (o(), u("div", {
2698
+ function ki(e, t, i, s, n, l) {
2699
+ const a = $("w-overlay");
2700
+ return n.showWrapper || i.pushContent ? (o(), u("div", {
2681
2701
  key: 0,
2682
2702
  class: m(["w-drawer-wrap", l.wrapperClasses])
2683
2703
  }, [
@@ -2687,10 +2707,10 @@ function ki(e, t, i, s, a, l) {
2687
2707
  style: R(l.trackStyles)
2688
2708
  }, [
2689
2709
  w("div", wi, [
2690
- i.noOverlay ? p("", !0) : (o(), b(n, {
2710
+ i.noOverlay ? p("", !0) : (o(), b(a, {
2691
2711
  key: 0,
2692
- modelValue: a.showDrawer,
2693
- "onUpdate:modelValue": t[0] || (t[0] = (r) => a.showDrawer = r),
2712
+ modelValue: n.showDrawer,
2713
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2694
2714
  onClick: l.onOutsideClick,
2695
2715
  persistent: i.persistent,
2696
2716
  "persistent-no-animation": "",
@@ -2705,7 +2725,7 @@ function ki(e, t, i, s, a, l) {
2705
2725
  onAfterLeave: l.onClose
2706
2726
  }, {
2707
2727
  default: f(() => [
2708
- a.showDrawer ? (o(), b(L(i.tag || "aside"), {
2728
+ n.showDrawer ? (o(), b(L(i.tag || "aside"), {
2709
2729
  key: 0,
2710
2730
  class: m(["w-drawer", l.drawerClasses]),
2711
2731
  ref: "drawer",
@@ -2720,10 +2740,10 @@ function ki(e, t, i, s, a, l) {
2720
2740
  _: 3
2721
2741
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2722
2742
  ], 4)) : (o(), u(v, { key: 1 }, [
2723
- i.noOverlay ? p("", !0) : (o(), b(n, {
2743
+ i.noOverlay ? p("", !0) : (o(), b(a, {
2724
2744
  key: 0,
2725
- modelValue: a.showDrawer,
2726
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.showDrawer = r),
2745
+ modelValue: n.showDrawer,
2746
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2727
2747
  onClick: l.onOutsideClick,
2728
2748
  persistent: i.persistent,
2729
2749
  "persistent-no-animation": "",
@@ -2737,7 +2757,7 @@ function ki(e, t, i, s, a, l) {
2737
2757
  onAfterLeave: l.onClose
2738
2758
  }, {
2739
2759
  default: f(() => [
2740
- a.showDrawer ? (o(), b(L(i.tag || "aside"), {
2760
+ n.showDrawer ? (o(), b(L(i.tag || "aside"), {
2741
2761
  key: 0,
2742
2762
  class: m(["w-drawer", l.drawerClasses]),
2743
2763
  ref: "drawer",
@@ -2868,7 +2888,7 @@ const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
2868
2888
  }
2869
2889
  }
2870
2890
  }, Si = /* @__PURE__ */ C(Ci, [["render", ki]]);
2871
- function Bi(e, t, i, s, a, l) {
2891
+ function Bi(e, t, i, s, n, l) {
2872
2892
  return o(), b(L(i.tag), {
2873
2893
  class: m(["w-flex", l.classes])
2874
2894
  }, {
@@ -2926,11 +2946,11 @@ const _i = {
2926
2946
  }
2927
2947
  }
2928
2948
  }, $i = /* @__PURE__ */ C(_i, [["render", Bi]]);
2929
- function Ii(e, t, i, s, a, l) {
2949
+ function Ii(e, t, i, s, n, l) {
2930
2950
  return o(), u("form", {
2931
2951
  class: m(["w-form", l.classes]),
2932
- onSubmit: t[0] || (t[0] = (...n) => l.onSubmit && l.onSubmit(...n)),
2933
- onReset: t[1] || (t[1] = (...n) => l.reset && l.reset(...n)),
2952
+ onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2953
+ onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
2934
2954
  novalidate: ""
2935
2955
  }, [
2936
2956
  c(e.$slots, "default")
@@ -3021,8 +3041,8 @@ const Vi = async (e, t) => {
3021
3041
  async checkElementValidators(e) {
3022
3042
  let t = !1, i = "";
3023
3043
  await Vi(e.validators, async (s) => {
3024
- const a = await (typeof s == "function" && s(e.inputValue));
3025
- return t = typeof a != "string", i = t ? "" : a, !t;
3044
+ const n = await (typeof s == "function" && s(e.inputValue));
3045
+ return t = typeof n != "string", i = t ? "" : n, !t;
3026
3046
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
3027
3047
  },
3028
3048
  // Reset is called from:
@@ -3047,8 +3067,8 @@ const Vi = async (e, t) => {
3047
3067
  }
3048
3068
  }
3049
3069
  }, Li = /* @__PURE__ */ C(Ti, [["render", Ii]]);
3050
- function Ri(e, t, i, s, a, l) {
3051
- const n = $("w-transition-expand");
3070
+ function Ri(e, t, i, s, n, l) {
3071
+ const a = $("w-transition-expand");
3052
3072
  return o(), u("div", {
3053
3073
  class: m(l.classes)
3054
3074
  }, [
@@ -3057,7 +3077,7 @@ function Ri(e, t, i, s, a, l) {
3057
3077
  }, [
3058
3078
  c(e.$slots, "default")
3059
3079
  ], 2),
3060
- T(n, { y: "" }, {
3080
+ T(a, { y: "" }, {
3061
3081
  default: f(() => [
3062
3082
  e.Validation.message ? (o(), u("div", {
3063
3083
  key: 0,
@@ -3148,7 +3168,7 @@ const xi = {
3148
3168
  this.formUnregister && this.formUnregister(this);
3149
3169
  }
3150
3170
  }, Oi = /* @__PURE__ */ C(xi, [["render", Ri]]);
3151
- function Pi(e, t, i, s, a, l) {
3171
+ function Pi(e, t, i, s, n, l) {
3152
3172
  return o(), b(L(i.tag), {
3153
3173
  class: m(["w-grid", l.classes])
3154
3174
  }, {
@@ -3194,16 +3214,16 @@ const zi = {
3194
3214
  },
3195
3215
  classes() {
3196
3216
  let e = null;
3197
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, a]) => (i[`${s}-columns${a}`] = !0, i), {}));
3217
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, n]) => (i[`${s}-columns${n}`] = !0, i), {}));
3198
3218
  let t = null;
3199
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, a]) => (i[`${s}-gap${a}`] = !0, i), {})), {
3219
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, n]) => (i[`${s}-gap${n}`] = !0, i), {})), {
3200
3220
  ...e || { [`columns${this.columns}`]: this.columns },
3201
3221
  ...t || { [`gap${this.gap}`]: this.gap }
3202
3222
  };
3203
3223
  }
3204
3224
  }
3205
3225
  }, Mi = /* @__PURE__ */ C(zi, [["render", Pi]]);
3206
- function Ei(e, t, i, s, a, l) {
3226
+ function Ei(e, t, i, s, n, l) {
3207
3227
  return o(), b(L(i.tag || "i"), {
3208
3228
  class: m(["w-icon", l.classes]),
3209
3229
  role: "icon",
@@ -3283,16 +3303,17 @@ const Ai = {
3283
3303
  },
3284
3304
  methods: {
3285
3305
  readIcon() {
3286
- const { default: e } = this.$slots, [t = "", i = ""] = typeof e == "function" && e()[0].children.trim().split(" ") || [];
3306
+ var s, n, l, a;
3307
+ const { default: e } = this.$slots, [t = "", i = ""] = typeof e == "function" && ((a = (l = (n = (s = e()) == null ? void 0 : s[0]) == null ? void 0 : n.children) == null ? void 0 : l.trim()) == null ? void 0 : a.split(" ")) || [];
3287
3308
  return this.fontName = t, this.icon = i, !0;
3288
3309
  }
3289
3310
  }
3290
- }, Wi = /* @__PURE__ */ C(Ai, [["render", Ei]]), Ni = {
3311
+ }, Wi = /* @__PURE__ */ C(Ai, [["render", Ei]]), Ki = {
3291
3312
  key: 0,
3292
3313
  class: "w-image__loader"
3293
- }, Ki = ["innerHTML"];
3294
- function Di(e, t, i, s, a, l) {
3295
- const n = $("w-progress");
3314
+ }, Ni = ["innerHTML"];
3315
+ function Di(e, t, i, s, n, l) {
3316
+ const a = $("w-progress");
3296
3317
  return o(), b(L(l.wrapperTag), {
3297
3318
  class: m(["w-image", l.wrapperClasses]),
3298
3319
  style: R(l.wrapperStyles)
@@ -3303,17 +3324,17 @@ function Di(e, t, i, s, a, l) {
3303
3324
  appear: ""
3304
3325
  }, {
3305
3326
  default: f(() => [
3306
- a.loaded ? (o(), b(L(l.normalized.tag), {
3327
+ n.loaded ? (o(), b(L(l.normalized.tag), {
3307
3328
  key: 0,
3308
3329
  class: m(["w-image__image", l.imageClasses]),
3309
3330
  style: R(l.imageStyles),
3310
- src: l.normalized.tag === "img" ? a.computedImg.src : null
3331
+ src: l.normalized.tag === "img" ? n.computedImg.src : null
3311
3332
  }, null, 8, ["class", "style", "src"])) : p("", !0)
3312
3333
  ]),
3313
3334
  _: 1
3314
3335
  }, 8, ["name"]),
3315
- !i.noSpinner && a.loading ? (o(), u("span", Ni, [
3316
- e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), b(n, _({
3336
+ !i.noSpinner && n.loading ? (o(), u("span", Ki, [
3337
+ e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), b(a, _({
3317
3338
  key: 1,
3318
3339
  circle: "",
3319
3340
  indeterminate: ""
@@ -3337,7 +3358,7 @@ function Di(e, t, i, s, a, l) {
3337
3358
  key: 3,
3338
3359
  class: m(["w-image__caption caption", i.captionClass]),
3339
3360
  innerHTML: i.caption
3340
- }, null, 10, Ki)) : p("", !0)
3361
+ }, null, 10, Ni)) : p("", !0)
3341
3362
  ]),
3342
3363
  _: 3
3343
3364
  }, 8, ["class", "style"]);
@@ -3441,7 +3462,8 @@ const Hi = {
3441
3462
  if (!this.src) return j("The w-image component was used without src.");
3442
3463
  if (this.lazy) {
3443
3464
  const e = new IntersectionObserver((t) => {
3444
- t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
3465
+ var i;
3466
+ (i = t[0]) != null && i.isIntersecting && (this.loadImage(), e.disconnect());
3445
3467
  }, this.intersectionConfig);
3446
3468
  e.observe(this.$el);
3447
3469
  } else this.loadImage();
@@ -3455,13 +3477,13 @@ const Hi = {
3455
3477
  class: "w-input__no-file",
3456
3478
  key: "no-file"
3457
3479
  }, Gi = ["for"], Ji = ["src"], Qi = ["for"];
3458
- function Zi(e, t, i, s, a, l) {
3459
- const n = $("w-icon"), r = $("w-progress");
3460
- return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
3480
+ function Zi(e, t, i, s, n, l) {
3481
+ const a = $("w-icon"), r = $("w-progress");
3482
+ return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3461
3483
  valid: e.valid,
3462
3484
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3463
3485
  onReset: t[11] || (t[11] = (d) => {
3464
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
3486
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
3465
3487
  }),
3466
3488
  wrap: l.hasLabel && i.labelPosition !== "inside",
3467
3489
  class: l.classes,
@@ -3472,9 +3494,9 @@ function Zi(e, t, i, s, a, l) {
3472
3494
  key: 0,
3473
3495
  type: "hidden",
3474
3496
  name: e.name || null,
3475
- "onUpdate:modelValue": t[0] || (t[0] = (d) => a.inputValue = d)
3497
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3476
3498
  }, null, 8, ji)), [
3477
- [ve, a.inputValue]
3499
+ [ve, n.inputValue]
3478
3500
  ]) : (o(), u(v, { key: 1 }, [
3479
3501
  i.labelPosition === "left" ? (o(), u(v, { key: 0 }, [
3480
3502
  e.$slots.default || i.label ? (o(), u("label", {
@@ -3493,7 +3515,7 @@ function Zi(e, t, i, s, a, l) {
3493
3515
  c(e.$slots, "icon-left", {
3494
3516
  inputId: `w-input--${e._.uid}`
3495
3517
  }, () => [
3496
- i.innerIconLeft ? (o(), b(n, {
3518
+ i.innerIconLeft ? (o(), b(a, {
3497
3519
  key: 0,
3498
3520
  class: "w-input__icon w-input__icon--inner-left",
3499
3521
  tag: "label",
@@ -3510,7 +3532,7 @@ function Zi(e, t, i, s, a, l) {
3510
3532
  key: 0,
3511
3533
  class: "w-input__input",
3512
3534
  ref: "input",
3513
- "onUpdate:modelValue": t[2] || (t[2] = (d) => a.inputValue = d),
3535
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d),
3514
3536
  onInput: t[3] || (t[3] = (...d) => l.onInput && l.onInput(...d)),
3515
3537
  onFocus: t[4] || (t[4] = (...d) => l.onFocus && l.onFocus(...d)),
3516
3538
  onBlur: t[5] || (t[5] = (...d) => l.onBlur && l.onBlur(...d)),
@@ -3529,7 +3551,7 @@ function Zi(e, t, i, s, a, l) {
3529
3551
  required: e.required || null,
3530
3552
  tabindex: e.tabindex || null
3531
3553
  }, l.attrs), null, 16, qi)), [
3532
- [xe, a.inputValue]
3554
+ [xe, n.inputValue]
3533
3555
  ]) : (o(), u(v, { key: 1 }, [
3534
3556
  w("input", _({
3535
3557
  ref: "input",
@@ -3552,14 +3574,14 @@ function Zi(e, t, i, s, a, l) {
3552
3574
  for: `w-input--${e._.uid}`
3553
3575
  }, {
3554
3576
  default: f(() => [
3555
- !a.inputFiles.length && a.isFocused ? (o(), u("span", Yi, [
3577
+ !n.inputFiles.length && n.isFocused ? (o(), u("span", Yi, [
3556
3578
  c(e.$slots, "no-file", {}, () => [
3557
3579
  e.$slots["no-file"] === void 0 ? (o(), u(v, { key: 0 }, [
3558
3580
  B("No file")
3559
3581
  ], 64)) : p("", !0)
3560
3582
  ])
3561
3583
  ])) : p("", !0),
3562
- (o(!0), u(v, null, x(a.inputFiles, (d, h) => (o(), u("span", {
3584
+ (o(!0), u(v, null, x(n.inputFiles, (d, h) => (o(), u("span", {
3563
3585
  key: d.lastModified
3564
3586
  }, [
3565
3587
  B(S(h ? ", " : ""), 1),
@@ -3586,7 +3608,7 @@ function Zi(e, t, i, s, a, l) {
3586
3608
  c(e.$slots, "icon-right", {
3587
3609
  inputId: `w-input--${e._.uid}`
3588
3610
  }, () => [
3589
- i.innerIconRight ? (o(), b(n, {
3611
+ i.innerIconRight ? (o(), b(a, {
3590
3612
  key: 0,
3591
3613
  class: "w-input__icon w-input__icon--inner-right",
3592
3614
  tag: "label",
@@ -3607,12 +3629,12 @@ function Zi(e, t, i, s, a, l) {
3607
3629
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3608
3630
  }, null, 8, ["color", "model-value"])) : p("", !0)
3609
3631
  ], 2),
3610
- i.type === "file" && i.preview && a.inputFiles.length ? (o(), u("label", {
3632
+ i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
3611
3633
  key: 1,
3612
3634
  class: "d-flex",
3613
3635
  for: `w-input--${e._.uid}`
3614
3636
  }, [
3615
- (o(!0), u(v, null, x(a.inputFiles, (d, h) => (o(), u(v, null, [
3637
+ (o(!0), u(v, null, x(n.inputFiles, (d, h) => (o(), u(v, null, [
3616
3638
  d.progress < 100 ? (o(), u("i", {
3617
3639
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3618
3640
  key: `${h}a`
@@ -3792,10 +3814,10 @@ const el = {
3792
3814
  // For file input.
3793
3815
  onFileChange(e) {
3794
3816
  this.inputFiles = [...e.target.files].map((i) => {
3795
- const [, s = "", a = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), n = Z({
3817
+ const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Z({
3796
3818
  name: i.name,
3797
3819
  base: s || l,
3798
- extension: a,
3820
+ extension: n,
3799
3821
  type: i.type,
3800
3822
  size: i.size,
3801
3823
  lastModified: i.lastModified,
@@ -3803,24 +3825,26 @@ const el = {
3803
3825
  progress: 0,
3804
3826
  file: i
3805
3827
  });
3806
- return this.readFile(i, n), n;
3828
+ return this.readFile(i, a), a;
3807
3829
  });
3808
3830
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3809
3831
  this.$emit("update:modelValue", t), this.$emit("input", t);
3810
3832
  },
3811
3833
  // For file input.
3812
3834
  readFile(e, t) {
3813
- const i = new FileReader(), s = typeof this.preview == "string", a = e.type && e.type.startsWith("image/");
3814
- this.preview && !s && a ? i.addEventListener("load", (l) => {
3815
- t.preview = l.target.result;
3816
- }) : delete t.preview, i.addEventListener("progress", (l) => {
3817
- l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
3835
+ var l;
3836
+ const i = new FileReader(), s = typeof this.preview == "string", n = (l = e.type) == null ? void 0 : l.startsWith("image/");
3837
+ this.preview && !s && n ? i.addEventListener("load", (a) => {
3838
+ t.preview = a.target.result;
3839
+ }) : delete t.preview, i.addEventListener("progress", (a) => {
3840
+ a.loaded && a.total && (t.progress = a.loaded * 100 / a.total);
3818
3841
  }), i.readAsDataURL(e);
3819
3842
  }
3820
3843
  },
3821
3844
  mounted() {
3822
3845
  setTimeout(() => {
3823
- this.$refs.input && this.$refs.input.matches(":-webkit-autofill") && (this.isAutofilled = !0);
3846
+ var e;
3847
+ (e = this.$refs.input) != null && e.matches(":-webkit-autofill") && (this.isAutofilled = !0);
3824
3848
  }, 400);
3825
3849
  },
3826
3850
  watch: {
@@ -3829,8 +3853,8 @@ const el = {
3829
3853
  }
3830
3854
  }
3831
3855
  }, tl = /* @__PURE__ */ C(el, [["render", Zi]]);
3832
- function il(e, t, i, s, a, l) {
3833
- const n = $("w-icon"), r = $("w-list", !0);
3856
+ function il(e, t, i, s, n, l) {
3857
+ const a = $("w-icon"), r = $("w-list", !0);
3834
3858
  return o(), u("ul", {
3835
3859
  class: m(["w-list", l.classes])
3836
3860
  }, [
@@ -3838,7 +3862,7 @@ function il(e, t, i, s, a, l) {
3838
3862
  class: m(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3839
3863
  key: h
3840
3864
  }, [
3841
- i.icon ? (o(), b(n, {
3865
+ i.icon ? (o(), b(a, {
3842
3866
  key: 0,
3843
3867
  class: "w-list__item-bullet"
3844
3868
  }, {
@@ -4022,14 +4046,14 @@ const ll = {
4022
4046
  };
4023
4047
  },
4024
4048
  liLabelProps(e, t, i) {
4025
- const s = this.$slots[`item.${t + 1}`] || this.$slots.item, a = () => {
4049
+ const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
4026
4050
  if (!e.disabled) {
4027
4051
  const d = this.cleanLi(e);
4028
4052
  this.$emit("item-click", d), this.$emit("item-select", d);
4029
4053
  }
4030
4054
  }, l = this.isSelectable && ((d) => {
4031
4055
  d.stopPropagation(), !e.disabled && this.selectItem(e);
4032
- }), n = this.isSelectable && ((d) => {
4056
+ }), a = this.isSelectable && ((d) => {
4033
4057
  !e.disabled && d.keyCode === 13 ? (this.selectItem(e), this.$emit("keydown:enter"), this.$emit("item-select", this.cleanLi(e))) : d.keyCode === 27 ? this.$emit("keydown:escape") : this.arrowsNavigation && [38, 40].includes(d.keyCode) && (d.preventDefault(), d.keyCode === 38 && this.focusPrevNextItem(e._index, !1), d.keyCode === 40 && this.focusPrevNextItem(e._index, !0));
4034
4058
  }), r = {
4035
4059
  class: this.liLabelClasses(e),
@@ -4040,10 +4064,10 @@ const ll = {
4040
4064
  };
4041
4065
  return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, s || (r.label = e._label || null), r.onFocus = () => e._focused = !0, r.onBlur = () => e._focused = !1, r.onInput = (d) => this.selectItem(e, d), r.onClick = (d) => {
4042
4066
  const h = d.target.querySelector('input[type="checkbox"]');
4043
- h && (h.focus(), h.click()), a();
4044
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
4045
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), a();
4046
- }) : (r.href = e[this.itemRouteKey], r.onClick = a)), s || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = a, r.onKeydown = n, r.onMousedown = l), s || (r.innerHTML = e._label)), r;
4067
+ h && (h.focus(), h.click()), n();
4068
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
4069
+ d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
4070
+ }) : (r.href = e[this.itemRouteKey], r.onClick = n)), s || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), s || (r.innerHTML = e._label)), r;
4047
4071
  },
4048
4072
  // Convert the received items selection to array if it is a unique value.
4049
4073
  // Also accept objects if returnObject is true and convert to the object's value.
@@ -4056,7 +4080,7 @@ const ll = {
4056
4080
  emitSelection() {
4057
4081
  const e = this.selectedItems.map((i) => {
4058
4082
  if (!this.returnObject) return i._value;
4059
- const { _value: s, _selected: a, ...l } = i;
4083
+ const { _value: s, _selected: n, ...l } = i;
4060
4084
  return l;
4061
4085
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
4062
4086
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -4067,8 +4091,8 @@ const ll = {
4067
4091
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
4068
4092
  },
4069
4093
  cleanLi(e) {
4070
- const { _index: t, _value: i, _label: s, _selected: a, _focused: l, ...n } = e;
4071
- return n;
4094
+ const { _index: t, _value: i, _label: s, _selected: n, _focused: l, ...a } = e;
4095
+ return a;
4072
4096
  },
4073
4097
  refreshListItems() {
4074
4098
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -4196,30 +4220,30 @@ const ll = {
4196
4220
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4197
4221
  getActivatorCoordinates() {
4198
4222
  const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
4199
- let a = { top: e, left: t, width: i, height: s };
4223
+ let n = { top: e, left: t, width: i, height: s };
4200
4224
  if (!this.fixed) {
4201
- const { top: l, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4202
- a = {
4203
- ...a,
4225
+ const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4226
+ n = {
4227
+ ...n,
4204
4228
  top: e - l + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
4205
- left: t - n + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
4229
+ left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
4206
4230
  };
4207
4231
  }
4208
- return a;
4232
+ return n;
4209
4233
  },
4210
4234
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4211
4235
  computeDetachableCoords() {
4212
4236
  let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
4213
4237
  if (!this.detachableEl) return;
4214
4238
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
4215
- const a = window.getComputedStyle(this.detachableEl, null);
4239
+ const n = window.getComputedStyle(this.detachableEl, null);
4216
4240
  switch (this.position) {
4217
4241
  case "top": {
4218
- e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4242
+ e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4219
4243
  break;
4220
4244
  }
4221
4245
  case "bottom": {
4222
- e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4246
+ e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4223
4247
  break;
4224
4248
  }
4225
4249
  case "left": {
@@ -4227,8 +4251,8 @@ const ll = {
4227
4251
  break;
4228
4252
  }
4229
4253
  case "right": {
4230
- t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(a.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4231
- parseInt(a.getPropertyValue("margin-top")));
4254
+ t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4255
+ parseInt(n.getPropertyValue("margin-top")));
4232
4256
  break;
4233
4257
  }
4234
4258
  }
@@ -4250,7 +4274,8 @@ const ll = {
4250
4274
  });
4251
4275
  },
4252
4276
  removeFromDOM() {
4253
- document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize), this.detachableEl && this.detachableEl.parentNode && (this.detachableVisible = !1, this.detachableEl.remove(), this.detachableEl = null);
4277
+ var e;
4278
+ document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize), (e = this.detachableEl) != null && e.parentNode && (this.detachableVisible = !1, this.detachableEl.remove(), this.detachableEl = null);
4254
4279
  },
4255
4280
  // If the activator is external, add event listeners to the document and check the target is
4256
4281
  // the activator when toggling.
@@ -4259,9 +4284,9 @@ const ll = {
4259
4284
  const e = typeof this.activator == "string";
4260
4285
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
4261
4286
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
4262
- const s = (a) => {
4287
+ const s = (n) => {
4263
4288
  var l;
4264
- (e && ((l = a.target) != null && l.matches) && a.target.matches(this.activator) || a.target === this.activatorEl || this.activatorEl.contains(a.target)) && i(a);
4289
+ (e && ((l = n.target) != null && l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
4265
4290
  };
4266
4291
  document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
4267
4292
  });
@@ -4287,8 +4312,8 @@ const ll = {
4287
4312
  }
4288
4313
  }
4289
4314
  };
4290
- function ol(e, t, i, s, a, l) {
4291
- const n = $("w-card"), r = $("w-overlay");
4315
+ function ol(e, t, i, s, n, l) {
4316
+ const a = $("w-card"), r = $("w-overlay");
4292
4317
  return o(), u(v, null, [
4293
4318
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
4294
4319
  T(O, {
@@ -4308,7 +4333,7 @@ function ol(e, t, i, s, a, l) {
4308
4333
  style: l.styles
4309
4334
  }), [
4310
4335
  c(e.$slots, "default")
4311
- ], 16)) : e.detachableVisible ? (o(), b(n, _({
4336
+ ], 16)) : e.detachableVisible ? (o(), b(a, _({
4312
4337
  key: 1,
4313
4338
  class: "w-menu",
4314
4339
  ref: "detachable"
@@ -4492,7 +4517,7 @@ const al = {
4492
4517
  mouseenter: (t) => {
4493
4518
  this.hoveringActivator = !0, this.open(t);
4494
4519
  },
4495
- mouseleave: (t) => {
4520
+ mouseleave: () => {
4496
4521
  this.hoveringActivator = !1, setTimeout(() => {
4497
4522
  this.hoveringMenu || this.close();
4498
4523
  }, 10);
@@ -4533,19 +4558,19 @@ const al = {
4533
4558
  }
4534
4559
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
4535
4560
  }, nl = /* @__PURE__ */ C(al, [["render", ol]]);
4536
- function rl(e, t, i, s, a, l) {
4537
- const n = $("w-alert");
4561
+ function rl(e, t, i, s, n, l) {
4562
+ const a = $("w-alert");
4538
4563
  return o(), b(O, {
4539
4564
  name: l.transitionName,
4540
4565
  appear: ""
4541
4566
  }, {
4542
4567
  default: f(() => [
4543
- a.show ? (o(), u("div", {
4568
+ n.show ? (o(), u("div", {
4544
4569
  key: 0,
4545
4570
  class: m(["w-notification", l.classes]),
4546
4571
  style: R(l.styles)
4547
4572
  }, [
4548
- T(n, _(l.alertProps, {
4573
+ T(a, _(l.alertProps, {
4549
4574
  class: l.alertClasses,
4550
4575
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
4551
4576
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
@@ -4685,8 +4710,8 @@ const dl = {
4685
4710
  }
4686
4711
  }
4687
4712
  }, ul = /* @__PURE__ */ C(dl, [["render", rl]]);
4688
- function hl(e, t, i, s, a, l) {
4689
- const n = ke("focus");
4713
+ function hl(e, t, i, s, n, l) {
4714
+ const a = ke("focus");
4690
4715
  return o(), b(O, {
4691
4716
  name: "fade",
4692
4717
  appear: "",
@@ -4705,7 +4730,7 @@ function hl(e, t, i, s, a, l) {
4705
4730
  c(e.$slots, "default")
4706
4731
  ], 38)), [
4707
4732
  [re, e.showOverlay],
4708
- [n]
4733
+ [a]
4709
4734
  ]) : p("", !0)
4710
4735
  ]),
4711
4736
  _: 3
@@ -4770,7 +4795,7 @@ const cl = {
4770
4795
  }
4771
4796
  }
4772
4797
  }, pl = /* @__PURE__ */ C(cl, [["render", hl]]), ml = { class: "w-parallax" };
4773
- function fl(e, t, i, s, a, l) {
4798
+ function fl(e, t, i, s, n, l) {
4774
4799
  return o(), u("div", ml);
4775
4800
  }
4776
4801
  const gl = {
@@ -4779,7 +4804,7 @@ const gl = {
4779
4804
  emits: [],
4780
4805
  data: () => ({})
4781
4806
  }, bl = /* @__PURE__ */ C(gl, [["render", fl]]), yl = ["viewBox"], wl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], kl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4782
- function vl(e, t, i, s, a, l) {
4807
+ function vl(e, t, i, s, n, l) {
4783
4808
  return o(), u("div", {
4784
4809
  class: m(["w-progress", l.classes]),
4785
4810
  style: R(l.styles)
@@ -4894,11 +4919,11 @@ const Q = 40, Cl = Q / 2, Sl = Math.round(Q * 3.14 * 100) / 100, Bl = {
4894
4919
  }
4895
4920
  }
4896
4921
  }, _l = /* @__PURE__ */ C(Bl, [["render", vl]]), $l = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Il = ["for"], Vl = ["for", "innerHTML"], Tl = ["for"], Ll = ["for", "innerHTML"];
4897
- function Rl(e, t, i, s, a, l) {
4922
+ function Rl(e, t, i, s, n, l) {
4898
4923
  return o(), b(L(e.formRegister && !l.wRadios ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4899
4924
  valid: e.valid,
4900
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
4901
- onReset: t[4] || (t[4] = (n) => {
4925
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4926
+ onReset: t[4] || (t[4] = (a) => {
4902
4927
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4903
4928
  }),
4904
4929
  class: l.classes
@@ -4913,8 +4938,8 @@ function Rl(e, t, i, s, a, l) {
4913
4938
  disabled: e.isDisabled || e.isReadonly || null,
4914
4939
  required: e.required || null,
4915
4940
  tabindex: e.tabindex || null,
4916
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
4917
- onChange: t[1] || (t[1] = (n) => l.onInput(n)),
4941
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4942
+ onChange: t[1] || (t[1] = (a) => l.onInput(a)),
4918
4943
  "aria-checked": e.inputValue || "false",
4919
4944
  role: "radio"
4920
4945
  }, null, 40, $l),
@@ -4936,7 +4961,7 @@ function Rl(e, t, i, s, a, l) {
4936
4961
  ], 64)) : p("", !0),
4937
4962
  w("div", {
4938
4963
  class: m(["w-radio__input", this.color]),
4939
- onClick: t[2] || (t[2] = (n) => {
4964
+ onClick: t[2] || (t[2] = (a) => {
4940
4965
  e.$refs.input.focus(), e.$refs.input.click();
4941
4966
  })
4942
4967
  }, null, 2),
@@ -5026,8 +5051,8 @@ const xl = {
5026
5051
  }
5027
5052
  }
5028
5053
  }, Ol = /* @__PURE__ */ C(xl, [["render", Rl]]), Pl = ["innerHTML"];
5029
- function zl(e, t, i, s, a, l) {
5030
- const n = $("w-radio");
5054
+ function zl(e, t, i, s, n, l) {
5055
+ const a = $("w-radio");
5031
5056
  return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
5032
5057
  valid: e.valid,
5033
5058
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
@@ -5039,7 +5064,7 @@ function zl(e, t, i, s, a, l) {
5039
5064
  class: l.classes
5040
5065
  }), {
5041
5066
  default: f(() => [
5042
- (o(!0), u(v, null, x(l.radioItems, (r, d) => (o(), b(n, _({
5067
+ (o(!0), u(v, null, x(l.radioItems, (r, d) => (o(), b(a, _({
5043
5068
  key: d,
5044
5069
  "model-value": r.value === i.modelValue,
5045
5070
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -5123,12 +5148,12 @@ const Ml = {
5123
5148
  }
5124
5149
  }
5125
5150
  }, El = /* @__PURE__ */ C(Ml, [["render", zl]]), Al = ["id", "name", "value"], Wl = ["disabled", "onMouseenter", "onClick", "tabindex"];
5126
- function Nl(e, t, i, s, a, l) {
5127
- return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
5151
+ function Kl(e, t, i, s, n, l) {
5152
+ return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
5128
5153
  valid: e.valid,
5129
- "onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
5130
- onReset: t[5] || (t[5] = (n) => {
5131
- e.$emit("update:modelValue", a.rating = null), e.$emit("input", null);
5154
+ "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
5155
+ onReset: t[5] || (t[5] = (a) => {
5156
+ e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
5132
5157
  }),
5133
5158
  class: l.classes
5134
5159
  }), {
@@ -5137,26 +5162,26 @@ function Nl(e, t, i, s, a, l) {
5137
5162
  id: e.inputName,
5138
5163
  name: e.inputName,
5139
5164
  type: "hidden",
5140
- value: a.rating
5165
+ value: n.rating
5141
5166
  }, null, 8, Al),
5142
- (o(!0), u(v, null, x(i.max, (n) => (o(), u(v, { key: n }, [
5167
+ (o(!0), u(v, null, x(i.max, (a) => (o(), u(v, { key: a }, [
5143
5168
  e.$slots.item ? c(e.$slots, "item", {
5144
5169
  key: 0,
5145
- index: n + 1
5170
+ index: a + 1
5146
5171
  }) : p("", !0),
5147
5172
  w("button", {
5148
- class: m(["w-rating__button", l.buttonClasses(n)]),
5173
+ class: m(["w-rating__button", l.buttonClasses(a)]),
5149
5174
  disabled: e.isDisabled || e.isReadonly,
5150
- onMouseenter: (r) => a.hover = n,
5151
- onMouseleave: t[0] || (t[0] = (r) => a.hover = 0),
5152
- onClick: (r) => l.onButtonClick(n),
5175
+ onMouseenter: (r) => n.hover = a,
5176
+ onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
5177
+ onClick: (r) => l.onButtonClick(a),
5153
5178
  onFocus: t[1] || (t[1] = (...r) => l.onFocus && l.onFocus(...r)),
5154
5179
  onBlur: t[2] || (t[2] = (...r) => l.onBlur && l.onBlur(...r)),
5155
5180
  onKeydown: t[3] || (t[3] = (...r) => l.onKeydown && l.onKeydown(...r)),
5156
5181
  type: "button",
5157
- tabindex: n === 1 ? 0 : -1
5182
+ tabindex: a === 1 ? 0 : -1
5158
5183
  }, [
5159
- n - 1 === ~~a.rating && a.rating - ~~a.rating ? (o(), u("i", {
5184
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
5160
5185
  key: 0,
5161
5186
  class: m(["w-icon", `${i.icon} ${i.color}`]),
5162
5187
  role: "icon",
@@ -5169,7 +5194,7 @@ function Nl(e, t, i, s, a, l) {
5169
5194
  _: 3
5170
5195
  }, 16, ["valid", "class"]);
5171
5196
  }
5172
- const Kl = {
5197
+ const Nl = {
5173
5198
  name: "w-rating",
5174
5199
  mixins: [E],
5175
5200
  props: {
@@ -5263,22 +5288,22 @@ const Kl = {
5263
5288
  this.rating = parseFloat(e);
5264
5289
  }
5265
5290
  }
5266
- }, Dl = /* @__PURE__ */ C(Kl, [["render", Nl]]);
5267
- function Hl(e, t, i, s, a, l) {
5291
+ }, Dl = /* @__PURE__ */ C(Nl, [["render", Kl]]);
5292
+ function Hl(e, t, i, s, n, l) {
5268
5293
  return o(), u(v, null, [
5269
5294
  w("div", _({
5270
5295
  class: ["w-scrollable", l.scrollableClasses],
5271
5296
  ref: "scrollable",
5272
- onMouseenter: t[0] || (t[0] = (...n) => l.onMouseEnter && l.onMouseEnter(...n)),
5273
- onMouseleave: t[1] || (t[1] = (...n) => l.onMouseLeave && l.onMouseLeave(...n)),
5274
- onMousewheel: t[2] || (t[2] = (...n) => l.onMouseWheel && l.onMouseWheel(...n))
5297
+ onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
5298
+ onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
5299
+ onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
5275
5300
  }, e.$attrs, { style: l.scrollableStyles }), [
5276
5301
  c(e.$slots, "default")
5277
5302
  ], 16),
5278
5303
  w("div", {
5279
5304
  class: m(["w-scrollbar", l.scrollbarClasses]),
5280
5305
  ref: "track",
5281
- onMousedown: t[3] || (t[3] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n))
5306
+ onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
5282
5307
  }, [
5283
5308
  w("div", {
5284
5309
  class: "w-scrollbar__thumb",
@@ -5367,8 +5392,8 @@ const Fl = {
5367
5392
  methods: {
5368
5393
  onTrackMouseDown(e) {
5369
5394
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
5370
- const { top: t, left: i, width: s, height: a } = this.$refs.track.getBoundingClientRect();
5371
- this.isHorizontal ? (this.$refs.track.width = s, this.$refs.track.left = i) : (this.$refs.track.height = a, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
5395
+ const { top: t, left: i, width: s, height: n } = this.$refs.track.getBoundingClientRect();
5396
+ this.isHorizontal ? (this.$refs.track.width = s, this.$refs.track.left = i) : (this.$refs.track.height = n, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
5372
5397
  },
5373
5398
  onDrag(e) {
5374
5399
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -5382,14 +5407,14 @@ const Fl = {
5382
5407
  onMouseLeave() {
5383
5408
  this.scrollable.hovered = !1;
5384
5409
  },
5385
- onResize(e) {
5410
+ onResize() {
5386
5411
  },
5387
5412
  onMouseWheel(e) {
5388
5413
  this.scrollable.hovered && (this.scrollValuePercent <= 0 && e[this.m.deltaXorY] < 0 || this.scrollValuePercent >= 100 - this.thumbSizePercent && e[this.m.deltaXorY] > 0 || (e.preventDefault(), this.scrollValuePercent += e[this.m.deltaXorY] * 0.05, this.scrollValuePercent = Math.max(0, Math.min(this.scrollValuePercent, 100)), this.scroll()));
5389
5414
  },
5390
5415
  computeScroll(e) {
5391
- const { top: t, left: i, width: s, height: a } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, n = this.isHorizontal ? s : a;
5392
- this.scrollValuePercent = Math.max(0, Math.min((e - l) / n * 100, 100));
5416
+ const { top: t, left: i, width: s, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? s : n;
5417
+ this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
5393
5418
  },
5394
5419
  scroll() {
5395
5420
  var e;
@@ -5408,8 +5433,8 @@ const Fl = {
5408
5433
  key: 0,
5409
5434
  class: "w-select__selection-slot"
5410
5435
  }, Yl = ["innerHTML"], Gl = ["value", "name"];
5411
- function Jl(e, t, i, s, a, l) {
5412
- const n = $("w-icon"), r = $("w-list"), d = $("w-menu");
5436
+ function Jl(e, t, i, s, n, l) {
5437
+ const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
5413
5438
  return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
5414
5439
  valid: e.valid,
5415
5440
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
@@ -5451,7 +5476,7 @@ function Jl(e, t, i, s, a, l) {
5451
5476
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
5452
5477
  }, [
5453
5478
  c(e.$slots, "icon-left", {}, () => [
5454
- i.innerIconLeft ? (o(), b(n, {
5479
+ i.innerIconLeft ? (o(), b(a, {
5455
5480
  key: 0,
5456
5481
  class: "w-select__icon w-select__icon--inner-left",
5457
5482
  tag: "label",
@@ -5492,7 +5517,7 @@ function Jl(e, t, i, s, a, l) {
5492
5517
  ], 2)) : p("", !0)
5493
5518
  ], 64)) : p("", !0),
5494
5519
  c(e.$slots, "icon-right", {}, () => [
5495
- i.innerIconRight ? (o(), b(n, {
5520
+ i.innerIconRight ? (o(), b(a, {
5496
5521
  key: 0,
5497
5522
  class: "w-select__icon w-select__icon--inner-right",
5498
5523
  tag: "label",
@@ -5708,18 +5733,18 @@ const Ql = {
5708
5733
  const i = this.selectItems;
5709
5734
  if (t === void 0) t = e.keyCode === 38 ? i.length - 1 : 0;
5710
5735
  else {
5711
- const a = e.keyCode === 38 ? -1 : 1;
5712
- t = (t + i.length + a) % i.length;
5736
+ const n = e.keyCode === 38 ? -1 : 1;
5737
+ t = (t + i.length + n) % i.length;
5713
5738
  }
5714
5739
  let s = !1;
5715
5740
  if (i[t].disabled) {
5716
- const a = e.keyCode === 38 ? -1 : 1;
5717
- let l = (t + a + i.length) % i.length;
5718
- const n = i.length;
5741
+ const n = e.keyCode === 38 ? -1 : 1;
5742
+ let l = (t + n + i.length) % i.length;
5743
+ const a = i.length;
5719
5744
  let r = 0;
5720
- for (; r < n && i[l].disabled; )
5721
- l = (l + i.length + a) % i.length, r++;
5722
- r >= n && (s = !0), t = l;
5745
+ for (; r < a && i[l].disabled; )
5746
+ l = (l + i.length + n) % i.length, r++;
5747
+ r >= a && (s = !0), t = l;
5723
5748
  }
5724
5749
  s || this.onInput(i[t]);
5725
5750
  }
@@ -5729,14 +5754,14 @@ const Ql = {
5729
5754
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
5730
5755
  },
5731
5756
  focusItemOnQuickLookup(e) {
5732
- var s, a, l;
5757
+ var s, n, l;
5733
5758
  this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
5734
5759
  const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
5735
- (n) => !n.disabled && n[this.itemLabelKey].match(t)
5760
+ (a) => !a.disabled && a[this.itemLabelKey].match(t)
5736
5761
  ) + 1;
5737
5762
  if (i) {
5738
- const n = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5739
- (l = (a = (s = this.$refs["w-list"]) == null ? void 0 : s.$el) == null ? void 0 : a.querySelector(n)) == null || l.focus();
5763
+ const a = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5764
+ (l = (n = (s = this.$refs["w-list"]) == null ? void 0 : s.$el) == null ? void 0 : n.querySelector(a)) == null || l.focus();
5740
5765
  }
5741
5766
  },
5742
5767
  // The items are given by the w-list component.
@@ -5800,11 +5825,11 @@ const Ql = {
5800
5825
  key: 0,
5801
5826
  class: "w-slider__step-labels"
5802
5827
  }, rs = ["onClick"], ds = ["for"], us = ["for", "innerHTML"];
5803
- function hs(e, t, i, s, a, l) {
5828
+ function hs(e, t, i, s, n, l) {
5804
5829
  return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5805
5830
  valid: e.valid,
5806
- "onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
5807
- onReset: t[9] || (t[9] = (n) => {
5831
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5832
+ onReset: t[9] || (t[9] = (a) => {
5808
5833
  e.rangeValuePercent = 0, l.updateRangeValueScaled();
5809
5834
  }),
5810
5835
  wrap: e.formRegister || null,
@@ -5827,8 +5852,8 @@ function hs(e, t, i, s, a, l) {
5827
5852
  w("div", {
5828
5853
  class: m(["w-slider__track", l.trackClasses]),
5829
5854
  ref: "track",
5830
- onMousedown: t[4] || (t[4] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5831
- onTouchstart: t[5] || (t[5] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5855
+ onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5856
+ onTouchstart: t[5] || (t[5] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5832
5857
  role: "slider",
5833
5858
  "aria-label": "Slider",
5834
5859
  "aria-valuemin": l.minVal,
@@ -5856,10 +5881,10 @@ function hs(e, t, i, s, a, l) {
5856
5881
  "aria-readonly": e.isReadonly ? "true" : "false",
5857
5882
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5858
5883
  onKeydown: [
5859
- t[0] || (t[0] = A((n) => l.onKeyDown(n, -1), ["left"])),
5860
- t[1] || (t[1] = A((n) => l.onKeyDown(n, 1), ["right"]))
5884
+ t[0] || (t[0] = A((a) => l.onKeyDown(a, -1), ["left"])),
5885
+ t[1] || (t[1] = A((a) => l.onKeyDown(a, 1), ["right"]))
5861
5886
  ],
5862
- onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
5887
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5863
5888
  onClick: t[3] || (t[3] = M(() => {
5864
5889
  }, ["prevent"]))
5865
5890
  }, null, 42, ss),
@@ -5884,18 +5909,18 @@ function hs(e, t, i, s, a, l) {
5884
5909
  i.stepLabels && i.step ? (o(), u("div", ns, [
5885
5910
  w("div", {
5886
5911
  class: "w-slider__step-label",
5887
- onClick: t[6] || (t[6] = (n) => l.onStepLabelClick(0))
5912
+ onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5888
5913
  }, S(this.minVal), 1),
5889
- (o(!0), u(v, null, x(~~l.numberOfSteps, (n) => (o(), u("div", {
5914
+ (o(!0), u(v, null, x(~~l.numberOfSteps, (a) => (o(), u("div", {
5890
5915
  class: "w-slider__step-label",
5891
- key: n,
5892
- onClick: (r) => l.onStepLabelClick(n * (100 / l.numberOfSteps)),
5893
- style: R(`left: ${n * (100 / l.numberOfSteps)}%`)
5894
- }, S(l.percentToScaled(n * (100 / l.numberOfSteps))), 13, rs))), 128)),
5916
+ key: a,
5917
+ onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5918
+ style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
5919
+ }, S(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, rs))), 128)),
5895
5920
  ~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
5896
5921
  key: 0,
5897
5922
  class: "w-slider__step-label",
5898
- onClick: t[7] || (t[7] = (n) => l.onStepLabelClick(100)),
5923
+ onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
5899
5924
  style: { left: "100%" }
5900
5925
  }, S(this.maxVal), 1)) : p("", !0)
5901
5926
  ])) : p("", !0)
@@ -6054,7 +6079,7 @@ const cs = {
6054
6079
  }
6055
6080
  }
6056
6081
  }, ps = /* @__PURE__ */ C(cs, [["render", hs]]), ms = { key: 0 };
6057
- function fs(e, t, i, s, a, l) {
6082
+ function fs(e, t, i, s, n, l) {
6058
6083
  return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
6059
6084
  key: 0,
6060
6085
  class: m(["w-spinner", l.classes]),
@@ -6102,7 +6127,7 @@ const gs = {
6102
6127
  }
6103
6128
  }
6104
6129
  }, bs = /* @__PURE__ */ C(gs, [["render", fs]]);
6105
- function ys(e, t, i, s, a, l) {
6130
+ function ys(e, t, i, s, n, l) {
6106
6131
  return o(), u("div", {
6107
6132
  class: m(["w-steps", l.classes])
6108
6133
  }, null, 2);
@@ -6130,13 +6155,13 @@ const ws = {
6130
6155
  key: 1,
6131
6156
  class: "w-switch__thumb"
6132
6157
  }, _s = ["for"];
6133
- function $s(e, t, i, s, a, l) {
6134
- const n = $("w-progress");
6135
- return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
6158
+ function $s(e, t, i, s, n, l) {
6159
+ const a = $("w-progress");
6160
+ return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
6136
6161
  valid: e.valid,
6137
6162
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
6138
6163
  onReset: t[4] || (t[4] = (r) => {
6139
- e.$emit("update:modelValue", a.isOn = null), e.$emit("input", null);
6164
+ e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
6140
6165
  }),
6141
6166
  class: l.classes,
6142
6167
  style: e.$attrs.style
@@ -6147,7 +6172,7 @@ function $s(e, t, i, s, a, l) {
6147
6172
  id: `w-switch--${e._.uid}`,
6148
6173
  type: "checkbox",
6149
6174
  name: e.inputName,
6150
- checked: a.isOn,
6175
+ checked: n.isOn,
6151
6176
  disabled: e.isDisabled || e.isReadonly || null,
6152
6177
  readonly: e.isReadonly || null,
6153
6178
  "aria-readonly": e.isReadonly ? "true" : "false",
@@ -6156,7 +6181,7 @@ function $s(e, t, i, s, a, l) {
6156
6181
  }, l.attrs, {
6157
6182
  onChange: t[0] || (t[0] = (r) => l.onInput()),
6158
6183
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
6159
- "aria-checked": a.isOn || "false",
6184
+ "aria-checked": n.isOn || "false",
6160
6185
  role: "switch"
6161
6186
  }), null, 16, vs),
6162
6187
  l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
@@ -6180,7 +6205,7 @@ function $s(e, t, i, s, a, l) {
6180
6205
  c(e.$slots, "track")
6181
6206
  ])) : p("", !0),
6182
6207
  e.$slots.thumb || i.loading ? (o(), u("div", Bs, [
6183
- i.loading ? (o(), b(n, _({
6208
+ i.loading ? (o(), b(a, _({
6184
6209
  key: 0,
6185
6210
  circle: "",
6186
6211
  color: "inherit"
@@ -6279,7 +6304,7 @@ const Is = {
6279
6304
  }
6280
6305
  }
6281
6306
  }, Vs = /* @__PURE__ */ C(Is, [["render", $s]]), Ts = { class: "w-tabs__content" };
6282
- function Ls(e, t, i, s, a, l) {
6307
+ function Ls(e, t, i, s, n, l) {
6283
6308
  return o(), u("div", Ts, [
6284
6309
  c(e.$slots, "default", { item: i.item })
6285
6310
  ]);
@@ -6295,8 +6320,8 @@ const Rs = {
6295
6320
  key: 0,
6296
6321
  class: "w-tabs__content-wrap"
6297
6322
  }, Es = ["innerHTML"], As = ["innerHTML"];
6298
- function Ws(e, t, i, s, a, l) {
6299
- const n = $("tab-content");
6323
+ function Ws(e, t, i, s, n, l) {
6324
+ const a = $("tab-content");
6300
6325
  return o(), u("div", {
6301
6326
  class: m(["w-tabs", l.tabsClasses])
6302
6327
  }, [
@@ -6345,7 +6370,7 @@ function Ws(e, t, i, s, a, l) {
6345
6370
  name: l.transitionName
6346
6371
  }, {
6347
6372
  default: f(() => [
6348
- (o(!0), u(v, null, x(e.tabs, (r, d) => W((o(), b(n, {
6373
+ (o(!0), u(v, null, x(e.tabs, (r, d) => W((o(), b(a, {
6349
6374
  key: r._uid,
6350
6375
  item: r,
6351
6376
  class: m(l.contentClasses)
@@ -6383,7 +6408,7 @@ function Ws(e, t, i, s, a, l) {
6383
6408
  (o(), b(Oe, {
6384
6409
  exclude: i.keepAlive ? "" : "tab-content"
6385
6410
  }, [
6386
- (o(), b(n, {
6411
+ (o(), b(a, {
6387
6412
  key: e.activeTabUid,
6388
6413
  item: l.activeTab,
6389
6414
  class: m(i.contentClass)
@@ -6418,7 +6443,7 @@ function Ws(e, t, i, s, a, l) {
6418
6443
  ], 2);
6419
6444
  }
6420
6445
  let ye = 0;
6421
- const Ns = {
6446
+ const Ks = {
6422
6447
  name: "w-tabs",
6423
6448
  props: {
6424
6449
  modelValue: { type: [Number, String] },
@@ -6552,11 +6577,11 @@ const Ns = {
6552
6577
  updateSlider(e = !0) {
6553
6578
  if (e) {
6554
6579
  const t = this.$refs["tabs-bar"];
6555
- this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
6580
+ this.activeTabEl = t == null ? void 0 : t.querySelector(".w-tabs__bar-item--active");
6556
6581
  }
6557
6582
  if (!this.fillBar && this.activeTabEl) {
6558
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: a } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
6559
- this.slider.left = `${t - a - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
6583
+ const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: n } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
6584
+ this.slider.left = `${t - n - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
6560
6585
  } else
6561
6586
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
6562
6587
  },
@@ -6564,7 +6589,7 @@ const Ns = {
6564
6589
  var t, i;
6565
6590
  typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), (t = this.tabs[e]) != null && t._uid && (this.openTab((i = this.tabs[e]) == null ? void 0 : i._uid), this.$nextTick(() => {
6566
6591
  const s = this.$refs["tabs-bar"];
6567
- this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6592
+ this.activeTabEl = s == null ? void 0 : s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6568
6593
  }));
6569
6594
  },
6570
6595
  // Return the original item (so there is no `_index`, etc.).
@@ -6597,7 +6622,7 @@ const Ns = {
6597
6622
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
6598
6623
  }
6599
6624
  }
6600
- }, Ks = /* @__PURE__ */ C(Ns, [["render", Ws]]), Ds = { class: "w-table__scroll-wrap" }, Hs = { ref: "colgroup" }, Fs = ["width"], js = { key: 0 }, Us = ["onClick"], qs = ["innerHTML"], Xs = {
6625
+ }, Ns = /* @__PURE__ */ C(Ks, [["render", Ws]]), Ds = { class: "w-table__scroll-wrap" }, Hs = { ref: "colgroup" }, Fs = ["width"], js = { key: 0 }, Us = ["onClick"], qs = ["innerHTML"], Xs = {
6601
6626
  key: 0,
6602
6627
  class: "w-table__progress-bar"
6603
6628
  }, Ys = ["colspan"], Gs = {
@@ -6622,8 +6647,8 @@ const Ns = {
6622
6647
  key: 0,
6623
6648
  class: "w-table__pagination w-pagination"
6624
6649
  }, mo = { class: "pages-wrap" }, fo = { class: "w-pagination__results" };
6625
- function go(e, t, i, s, a, l) {
6626
- const n = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), k = $("w-button");
6650
+ function go(e, t, i, s, n, l) {
6651
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), k = $("w-button");
6627
6652
  return o(), u("div", {
6628
6653
  class: m(["w-table w-table--wrap", l.classes])
6629
6654
  }, [
@@ -6648,7 +6673,7 @@ function go(e, t, i, s, a, l) {
6648
6673
  key: V,
6649
6674
  onClick: (I) => !e.colResizing.dragging && g.sortable !== !1 && l.sortTable(g)
6650
6675
  }, [
6651
- g.sortable !== !1 && g.align === "right" ? (o(), b(n, {
6676
+ g.sortable !== !1 && g.align === "right" ? (o(), b(a, {
6652
6677
  key: 0,
6653
6678
  class: m(["w-table__header-sort", l.headerSortClasses(g)])
6654
6679
  }, {
@@ -6670,7 +6695,7 @@ function go(e, t, i, s, a, l) {
6670
6695
  innerHTML: g.label || ""
6671
6696
  }, null, 8, qs))
6672
6697
  ], 64)) : p("", !0),
6673
- g.sortable !== !1 && g.align !== "right" ? (o(), b(n, {
6698
+ g.sortable !== !1 && g.align !== "right" ? (o(), b(a, {
6674
6699
  key: 2,
6675
6700
  class: m(["w-table__header-sort", l.headerSortClasses(g)])
6676
6701
  }, {
@@ -6939,15 +6964,9 @@ const we = 15, bo = {
6939
6964
  // - total
6940
6965
  pagination: {
6941
6966
  type: [Boolean, Object, String],
6942
- validator: (e) => {
6943
- if (e) {
6944
- if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
6945
- return D(
6946
- "Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
6947
- ), !1;
6948
- } else return !0;
6949
- return !0;
6950
- }
6967
+ validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (D(
6968
+ "Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
6969
+ ), !1) : !0
6951
6970
  },
6952
6971
  dark: { type: Boolean },
6953
6972
  light: { type: Boolean }
@@ -7066,26 +7085,26 @@ const we = 15, bo = {
7066
7085
  doSelectRow(e, t) {
7067
7086
  const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
7068
7087
  if (i) {
7069
- const a = this.expandedRowsByUid[e._uid] === void 0;
7070
- a ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
7088
+ const n = this.expandedRowsByUid[e._uid] === void 0;
7089
+ n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
7071
7090
  "row-expand",
7072
7091
  {
7073
7092
  item: e,
7074
7093
  index: t,
7075
- expanded: a,
7094
+ expanded: n,
7076
7095
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
7077
7096
  }
7078
7097
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
7079
7098
  } else if (s) {
7080
- let a = !1;
7099
+ let n = !1;
7081
7100
  const l = this.selectedRowsByUid[e._uid] === void 0;
7082
- l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), a = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((n) => n !== e._uid), a = !0), a && (this.$emit(
7101
+ l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), n = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((a) => a !== e._uid), n = !0), n && (this.$emit(
7083
7102
  "row-select",
7084
7103
  {
7085
7104
  item: e,
7086
7105
  index: t,
7087
7106
  selected: l,
7088
- selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
7107
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
7089
7108
  }
7090
7109
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
7091
7110
  }
@@ -7114,15 +7133,15 @@ const we = 15, bo = {
7114
7133
  * (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
7115
7134
  */
7116
7135
  onResizerMouseMove(e) {
7117
- const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: a, nextColWidth: l } = this.colResizing;
7136
+ const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: n, nextColWidth: l } = this.colResizing;
7118
7137
  this.colResizing.dragging = !0;
7119
- const n = e.pageX - t, r = a + l, d = a + n, h = l - n;
7120
- i.style.width = a + n + "px", s.style.width = l - n + "px";
7121
- const y = n < 0 && i.offsetWidth > d || i.offsetWidth <= we, k = n > 0 && s.offsetWidth > h;
7138
+ const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
7139
+ i.style.width = `${n + a}px`, s.style.width = `${l - a}px`;
7140
+ const y = a < 0 && i.offsetWidth > d || i.offsetWidth <= we, k = a > 0 && s.offsetWidth > h;
7122
7141
  if (y) {
7123
7142
  const g = Math.max(i.offsetWidth, we);
7124
- i.style.width = g + "px", s.style.width = r - g + "px";
7125
- } else k && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
7143
+ i.style.width = `${g}px`, s.style.width = `${r - g}px`;
7144
+ } else k && (i.style.width = `${r - s.offsetWidth}px`, s.style.width = `${s.offsetWidth}px`);
7126
7145
  },
7127
7146
  onResizerMouseUp() {
7128
7147
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -7134,12 +7153,12 @@ const we = 15, bo = {
7134
7153
  }, 0);
7135
7154
  },
7136
7155
  initPagination() {
7137
- var s, a;
7138
- const e = ((s = this.pagination) == null ? void 0 : s.itemsPerPage) ?? 20, t = ((a = this.pagination) == null ? void 0 : a.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
7156
+ var s, n;
7157
+ const e = ((s = this.pagination) == null ? void 0 : s.itemsPerPage) ?? 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
7139
7158
  t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
7140
7159
  label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
7141
7160
  value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
7142
- })), this.paginationConfig.itemsPerPageOptions.sort((l, n) => l.value < n.value ? -1 : 1);
7161
+ })), this.paginationConfig.itemsPerPageOptions.sort((l, a) => l.value < a.value ? -1 : 1);
7143
7162
  const i = this.paginationConfig.itemsPerPageOptions.shift();
7144
7163
  this.paginationConfig.itemsPerPageOptions.push(i), this.updatePaginationConfig({
7145
7164
  itemsPerPage: e,
@@ -7184,13 +7203,13 @@ const we = 15, bo = {
7184
7203
  * While waiting for the call to resolve, nothing in the table will change.
7185
7204
  */
7186
7205
  async callApiFetch() {
7187
- const { page: e, start: t, end: i, total: s, itemsPerPage: a } = this.paginationConfig;
7206
+ const { page: e, start: t, end: i, total: s, itemsPerPage: n } = this.paginationConfig;
7188
7207
  return await this.fetch({
7189
7208
  page: e,
7190
7209
  start: t,
7191
7210
  end: i || s,
7192
7211
  total: s,
7193
- itemsPerPage: a || s,
7212
+ itemsPerPage: n || s,
7194
7213
  sorting: this.activeSorting
7195
7214
  });
7196
7215
  }
@@ -7225,13 +7244,13 @@ const we = 15, bo = {
7225
7244
  }
7226
7245
  }
7227
7246
  }, yo = /* @__PURE__ */ C(bo, [["render", go]]), wo = ["role", "aria-pressed", "tabindex"];
7228
- function ko(e, t, i, s, a, l) {
7247
+ function ko(e, t, i, s, n, l) {
7229
7248
  return o(), u("span", {
7230
7249
  class: m(["w-tag", l.classes]),
7231
- onClick: t[1] || (t[1] = (n) => {
7250
+ onClick: t[1] || (t[1] = (a) => {
7232
7251
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7233
7252
  }),
7234
- onKeypress: t[2] || (t[2] = A((n) => {
7253
+ onKeypress: t[2] || (t[2] = A((a) => {
7235
7254
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7236
7255
  }, ["enter"])),
7237
7256
  role: i.modelValue !== -1 && "button",
@@ -7243,7 +7262,7 @@ function ko(e, t, i, s, a, l) {
7243
7262
  i.closable && i.modelValue ? (o(), u("i", {
7244
7263
  key: 0,
7245
7264
  class: "w-icon w-tag__closable wi-cross",
7246
- onClick: t[0] || (t[0] = M((n) => {
7265
+ onClick: t[0] || (t[0] = M((a) => {
7247
7266
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7248
7267
  }, ["stop"])),
7249
7268
  role: "icon",
@@ -7301,14 +7320,14 @@ const vo = {
7301
7320
  }
7302
7321
  }
7303
7322
  }, Co = /* @__PURE__ */ C(vo, [["render", ko]]), So = ["for"], Bo = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], _o = ["for"];
7304
- function $o(e, t, i, s, a, l) {
7305
- const n = $("w-icon");
7306
- return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
7323
+ function $o(e, t, i, s, n, l) {
7324
+ const a = $("w-icon");
7325
+ return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
7307
7326
  valid: e.valid,
7308
7327
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
7309
7328
  wrap: l.hasLabel && i.labelPosition !== "inside",
7310
7329
  onReset: t[7] || (t[7] = (r) => {
7311
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
7330
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
7312
7331
  }),
7313
7332
  class: l.classes,
7314
7333
  style: e.$attrs.style
@@ -7331,7 +7350,7 @@ function $o(e, t, i, s, a, l) {
7331
7350
  c(e.$slots, "icon-left", {
7332
7351
  inputId: `w-textarea--${e._.uid}`
7333
7352
  }, () => [
7334
- i.innerIconLeft ? (o(), b(n, {
7353
+ i.innerIconLeft ? (o(), b(a, {
7335
7354
  key: 0,
7336
7355
  class: "w-textarea__icon w-textarea__icon--inner-left",
7337
7356
  tag: "label",
@@ -7347,7 +7366,7 @@ function $o(e, t, i, s, a, l) {
7347
7366
  W(w("textarea", _({
7348
7367
  class: "w-textarea__textarea",
7349
7368
  ref: "textarea",
7350
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.inputValue = r)
7369
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
7351
7370
  }, l.attrs, {
7352
7371
  onInput: t[2] || (t[2] = (...r) => l.onInput && l.onInput(...r)),
7353
7372
  onFocus: t[3] || (t[3] = (...r) => l.onFocus && l.onFocus(...r)),
@@ -7363,7 +7382,7 @@ function $o(e, t, i, s, a, l) {
7363
7382
  required: e.required || null,
7364
7383
  tabindex: e.tabindex || null
7365
7384
  }), null, 16, Bo), [
7366
- [ve, a.inputValue]
7385
+ [ve, n.inputValue]
7367
7386
  ]),
7368
7387
  i.labelPosition === "inside" && l.showLabelInside ? (o(), u(v, { key: 0 }, [
7369
7388
  e.$slots.default || i.label ? (o(), u("label", {
@@ -7378,7 +7397,7 @@ function $o(e, t, i, s, a, l) {
7378
7397
  c(e.$slots, "icon-right", {
7379
7398
  inputId: `w-textarea--${e._.uid}`
7380
7399
  }, () => [
7381
- i.innerIconRight ? (o(), b(n, {
7400
+ i.innerIconRight ? (o(), b(a, {
7382
7401
  key: 0,
7383
7402
  class: "w-textarea__icon w-textarea__icon--inner-right",
7384
7403
  tag: "label",
@@ -7512,7 +7531,7 @@ const Io = {
7512
7531
  computeHeight() {
7513
7532
  this.$refs.textarea.style.height = "";
7514
7533
  const e = (this.$refs.textarea.scrollHeight - this.paddingY) / this.lineHeight, t = Math.max(e, this.rows) * this.lineHeight + this.paddingY;
7515
- this.$refs.textarea.style.height = t + "px";
7534
+ this.$refs.textarea.style.height = `${t}px`;
7516
7535
  },
7517
7536
  getLineHeight() {
7518
7537
  const e = window.getComputedStyle(this.$refs.textarea, null);
@@ -7534,38 +7553,38 @@ const Io = {
7534
7553
  }
7535
7554
  }
7536
7555
  }, Vo = /* @__PURE__ */ C(Io, [["render", $o]]), To = ["innerHTML"], Lo = ["innerHTML"];
7537
- function Ro(e, t, i, s, a, l) {
7556
+ function Ro(e, t, i, s, n, l) {
7538
7557
  return o(), u("ul", {
7539
7558
  class: m(["w-timeline", l.classes])
7540
7559
  }, [
7541
- (o(!0), u(v, null, x(i.items, (n, r) => (o(), u("li", {
7560
+ (o(!0), u(v, null, x(i.items, (a, r) => (o(), u("li", {
7542
7561
  class: "w-timeline-item",
7543
7562
  key: r
7544
7563
  }, [
7545
- (o(), b(L(n[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7546
- class: m(["w-timeline-item__bullet", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }])
7564
+ (o(), b(L(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7565
+ class: m(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
7547
7566
  }, {
7548
7567
  default: f(() => [
7549
- B(S(n[i.itemIconKey] || i.icon), 1)
7568
+ B(S(a[i.itemIconKey] || i.icon), 1)
7550
7569
  ]),
7551
7570
  _: 2
7552
7571
  }, 1032, ["class"])),
7553
7572
  e.$slots[`item.${r + 1}`] ? c(e.$slots, `item.${r + 1}`, {
7554
7573
  key: 1,
7555
- item: n,
7574
+ item: a,
7556
7575
  index: r + 1
7557
7576
  }) : c(e.$slots, "item", {
7558
7577
  key: 0,
7559
- item: n,
7578
+ item: a,
7560
7579
  index: r + 1
7561
7580
  }, () => [
7562
7581
  w("div", {
7563
- class: m(["w-timeline-item__title", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }]),
7564
- innerHTML: n[i.itemTitleKey]
7582
+ class: m(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
7583
+ innerHTML: a[i.itemTitleKey]
7565
7584
  }, null, 10, To),
7566
7585
  w("div", {
7567
7586
  class: "w-timeline-item__content",
7568
- innerHTML: n[i.itemContentKey]
7587
+ innerHTML: a[i.itemContentKey]
7569
7588
  }, null, 8, Lo)
7570
7589
  ])
7571
7590
  ]))), 128))
@@ -7594,7 +7613,7 @@ const xo = {
7594
7613
  }
7595
7614
  }
7596
7615
  }, Oo = /* @__PURE__ */ C(xo, [["render", Ro]]);
7597
- function Po(e, t, i, s, a, l) {
7616
+ function Po(e, t, i, s, n, l) {
7598
7617
  return o(), u("div", {
7599
7618
  class: m(["w-toolbar", l.classes]),
7600
7619
  style: R(l.styles)
@@ -7625,12 +7644,12 @@ const zo = {
7625
7644
  // Return the height value if defined, or false otherwise.
7626
7645
  toolbarHeight() {
7627
7646
  const e = this.height;
7628
- return e && parseInt(e) == e ? e + "px" : e;
7647
+ return e && parseInt(e) === e ? `${e}px` : e;
7629
7648
  },
7630
7649
  // Return the width value if defined, or false otherwise.
7631
7650
  toolbarWidth() {
7632
7651
  const e = this.width;
7633
- return e && parseInt(e) == e ? e + "px" : e;
7652
+ return e && parseInt(e) === e ? `${e}px` : e;
7634
7653
  },
7635
7654
  classes() {
7636
7655
  return {
@@ -7654,7 +7673,7 @@ const zo = {
7654
7673
  }
7655
7674
  }
7656
7675
  }, Mo = /* @__PURE__ */ C(zo, [["render", Po]]);
7657
- function Eo(e, t, i, s, a, l) {
7676
+ function Eo(e, t, i, s, n, l) {
7658
7677
  return o(), u(v, null, [
7659
7678
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
7660
7679
  T(O, {
@@ -7773,7 +7792,7 @@ const Ao = {
7773
7792
  mouseenter: (i) => {
7774
7793
  this.hoveringActivator = !0, this.open(i);
7775
7794
  },
7776
- mouseleave: (i) => {
7795
+ mouseleave: () => {
7777
7796
  this.hoveringActivator = !1, this.close();
7778
7797
  }
7779
7798
  } : (this.enableTouch || this.showOnClick) && (e = { click: this.toggle }), e;
@@ -7812,7 +7831,7 @@ const Ao = {
7812
7831
  }
7813
7832
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7814
7833
  }, Wo = /* @__PURE__ */ C(Ao, [["render", Eo]]);
7815
- function No(e, t, i, s, a, l) {
7834
+ function Ko(e, t, i, s, n, l) {
7816
7835
  return o(), b(O, _({ name: "bounce" }, e.$props), {
7817
7836
  default: f(() => [
7818
7837
  c(e.$slots, "default")
@@ -7820,14 +7839,14 @@ function No(e, t, i, s, a, l) {
7820
7839
  _: 3
7821
7840
  }, 16);
7822
7841
  }
7823
- const Ko = {
7842
+ const No = {
7824
7843
  name: "w-transition-bounce",
7825
7844
  props: {
7826
7845
  appear: { type: Boolean },
7827
7846
  duration: { type: [Number, String] }
7828
7847
  }
7829
- }, Do = /* @__PURE__ */ C(Ko, [["render", No]]);
7830
- function Ho(e, t, i, s, a, l) {
7848
+ }, Do = /* @__PURE__ */ C(No, [["render", Ko]]);
7849
+ function Ho(e, t, i, s, n, l) {
7831
7850
  return o(), b(O, {
7832
7851
  name: "expand",
7833
7852
  mode: "out-in",
@@ -7916,7 +7935,7 @@ const Fo = {
7916
7935
  this.animX && (e.style.width = 0, e.style.marginLeft = 0, e.style.marginRight = 0, e.style.paddingLeft = 0, e.style.paddingRight = 0, e.style.borderLeftWidth = 0, e.style.borderRightWidth = 0), this.animY && (e.style.height = 0, e.style.marginTop = 0, e.style.marginBottom = 0, e.style.paddingTop = 0, e.style.paddingBottom = 0, e.style.borderTopWidth = 0, e.style.borderBottomWidth = 0), e.style.overflow = "hidden";
7917
7936
  },
7918
7937
  applyShowStyles(e) {
7919
- this.animX && (e.style.width = this.el.width + "px", e.style.marginLeft = this.el.marginLeft, e.style.marginRight = this.el.marginRight, e.style.paddingLeft = this.el.paddingLeft, e.style.paddingRight = this.el.paddingRight, e.style.borderLeftWidth = this.el.borderLeftWidth, e.style.borderRightWidth = this.el.borderRightWidth), this.animY && (e.style.height = this.el.height + "px", e.style.marginTop = this.el.marginTop, e.style.marginBottom = this.el.marginBottom, e.style.paddingTop = this.el.paddingTop, e.style.paddingBottom = this.el.paddingBottom, e.style.borderTopWidth = this.el.borderTopWidth, e.style.borderBottomWidth = this.el.borderBottomWidth), e.style.transition = this.duration + "ms ease-in-out";
7938
+ this.animX && (e.style.width = `${this.el.width}px`, e.style.marginLeft = this.el.marginLeft, e.style.marginRight = this.el.marginRight, e.style.paddingLeft = this.el.paddingLeft, e.style.paddingRight = this.el.paddingRight, e.style.borderLeftWidth = this.el.borderLeftWidth, e.style.borderRightWidth = this.el.borderRightWidth), this.animY && (e.style.height = `${this.el.height}px`, e.style.marginTop = this.el.marginTop, e.style.marginBottom = this.el.marginBottom, e.style.paddingTop = this.el.paddingTop, e.style.paddingBottom = this.el.paddingBottom, e.style.borderTopWidth = this.el.borderTopWidth, e.style.borderBottomWidth = this.el.borderBottomWidth), e.style.transition = `${this.duration}ms ease-in-out`;
7920
7939
  },
7921
7940
  applyOriginalStyles(e) {
7922
7941
  e.style.cssText = this.el.originalStyles;
@@ -7939,7 +7958,7 @@ const Fo = {
7939
7958
  }
7940
7959
  }
7941
7960
  }, jo = /* @__PURE__ */ C(Fo, [["render", Ho]]);
7942
- function Uo(e, t, i, s, a, l) {
7961
+ function Uo(e, t, i, s, n, l) {
7943
7962
  return o(), b(O, _({ name: "fade" }, e.$props), {
7944
7963
  default: f(() => [
7945
7964
  c(e.$slots, "default")
@@ -7954,7 +7973,7 @@ const qo = {
7954
7973
  duration: { type: [Number, String] }
7955
7974
  }
7956
7975
  }, Xo = /* @__PURE__ */ C(qo, [["render", Uo]]);
7957
- function Yo(e, t, i, s, a, l) {
7976
+ function Yo(e, t, i, s, n, l) {
7958
7977
  return o(), b(O, _({ name: "scale" }, e.$props), {
7959
7978
  default: f(() => [
7960
7979
  c(e.$slots, "default")
@@ -7969,7 +7988,7 @@ const Go = {
7969
7988
  duration: { type: [Number, String] }
7970
7989
  }
7971
7990
  }, Jo = /* @__PURE__ */ C(Go, [["render", Yo]]);
7972
- function Qo(e, t, i, s, a, l) {
7991
+ function Qo(e, t, i, s, n, l) {
7973
7992
  return o(), b(O, _({ name: "scale-fade" }, e.$props), {
7974
7993
  default: f(() => [
7975
7994
  c(e.$slots, "default")
@@ -7984,7 +8003,7 @@ const Zo = {
7984
8003
  duration: { type: [Number, String] }
7985
8004
  }
7986
8005
  }, ea = /* @__PURE__ */ C(Zo, [["render", Qo]]);
7987
- function ta(e, t, i, s, a, l) {
8006
+ function ta(e, t, i, s, n, l) {
7988
8007
  return o(), b(O, _({ name: l.transitionName }, e.$props), {
7989
8008
  default: f(() => [
7990
8009
  c(e.$slots, "default")
@@ -8011,7 +8030,7 @@ const ia = {
8011
8030
  }
8012
8031
  }
8013
8032
  }, la = /* @__PURE__ */ C(ia, [["render", ta]]);
8014
- function sa(e, t, i, s, a, l) {
8033
+ function sa(e, t, i, s, n, l) {
8015
8034
  return o(), b(O, _({ name: l.transitionName }, e.$props), {
8016
8035
  default: f(() => [
8017
8036
  c(e.$slots, "default")
@@ -8038,7 +8057,7 @@ const oa = {
8038
8057
  }
8039
8058
  }
8040
8059
  }, aa = /* @__PURE__ */ C(oa, [["render", sa]]);
8041
- function na(e, t, i, s, a, l) {
8060
+ function na(e, t, i, s, n, l) {
8042
8061
  return o(), b(O, _({ name: "twist" }, e.$props), {
8043
8062
  default: f(() => [
8044
8063
  c(e.$slots, "default")
@@ -8056,8 +8075,8 @@ const ra = {
8056
8075
  key: 1,
8057
8076
  class: "ml1"
8058
8077
  };
8059
- function ca(e, t, i, s, a, l) {
8060
- const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
8078
+ function ca(e, t, i, s, n, l) {
8079
+ const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
8061
8080
  return o(), u("ul", {
8062
8081
  class: m(["w-tree", l.classes])
8063
8082
  }, [
@@ -8074,7 +8093,7 @@ function ca(e, t, i, s, a, l) {
8074
8093
  tabindex: l.getTreeItemTabindex(h)
8075
8094
  }), {
8076
8095
  default: f(() => [
8077
- (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), b(n, {
8096
+ (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), b(a, {
8078
8097
  key: 0,
8079
8098
  class: "w-tree__item-expand",
8080
8099
  onClick: M((k) => !i.disabled && !h.disabled && l.onLabelClick(h, k), ["stop"]),
@@ -8213,8 +8232,8 @@ const pa = {
8213
8232
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
8214
8233
  return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8215
8234
  Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
8216
- var l, n;
8217
- const a = {
8235
+ var l, a;
8236
+ const n = {
8218
8237
  originalItem: i,
8219
8238
  // Store the original item to return it on event emits.
8220
8239
  _uid: this.depth.toString() + (s + 1),
@@ -8226,12 +8245,12 @@ const pa = {
8226
8245
  disabled: i[this.itemDisabledKey],
8227
8246
  selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
8228
8247
  depth: this.depth,
8229
- open: !!((n = t[s]) != null && n.open || this.expandAll || i[this.itemOpenKey]),
8248
+ open: !!((a = t[s]) != null && a.open || this.expandAll || i[this.itemOpenKey]),
8230
8249
  parent: this.parent || null,
8231
8250
  path: []
8232
8251
  // Ancestors path from root to leaf including self.
8233
8252
  };
8234
- a.path = this.getTreeItemPath(a), this.currentDepthItems.push(a);
8253
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
8235
8254
  });
8236
8255
  },
8237
8256
  getTreeItemComponent(e) {
@@ -8277,8 +8296,8 @@ const pa = {
8277
8296
  },
8278
8297
  onLabelKeydown(e, t) {
8279
8298
  if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.keyCode) && ((e.children || e.branch) && ([13, 32].includes(t.keyCode) ? this.expandDepth(e) && t.preventDefault() : t.keyCode === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.keyCode === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.keyCode))) {
8280
- const s = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), a = t.target.closest(".w-tree__item-label"), l = t.keyCode === 38 ? -1 : 1;
8281
- [...s].some((n, r) => n.isSameNode(a) ? (s[r + l] && s[r + l].focus(), !0) : !1);
8299
+ const s = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.keyCode === 38 ? -1 : 1;
8300
+ [...s].some((a, r) => a.isSameNode(n) ? (s[r + l] && s[r + l].focus(), !0) : !1);
8282
8301
  }
8283
8302
  t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8284
8303
  },
@@ -8317,7 +8336,7 @@ const pa = {
8317
8336
  return !1;
8318
8337
  },
8319
8338
  focusTreeItem(e) {
8320
- e && e.querySelector(".w-tree__item-label").focus();
8339
+ e == null || e.querySelector(".w-tree__item-label").focus();
8321
8340
  },
8322
8341
  itemIcon(e) {
8323
8342
  return e.originalItem[this.itemIconKey] || !e.children && !e.branch && this.leafIcon || (e.children || e.branch) && (e.open && this.branchOpenIcon || this.branchIcon);
@@ -8389,7 +8408,7 @@ const pa = {
8389
8408
  WSteps: ks,
8390
8409
  WSwitch: Vs,
8391
8410
  WTable: yo,
8392
- WTabs: Ks,
8411
+ WTabs: Ns,
8393
8412
  WTag: Co,
8394
8413
  WTextarea: Vo,
8395
8414
  WTimeline: Oo,