wave-ui 3.18.1 → 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 +445 -433
  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 +26 -6
  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 +11 -18
@@ -5,7 +5,7 @@ var de = (e) => {
5
5
  var Ie = (e, t, i) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
6
  var F = (e, t, i) => Ie(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
7
7
  var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
8
- import { reactive as Z, resolveComponent as $, createBlock as b, openBlock as o, Teleport as Ve, createVNode as T, TransitionGroup as ae, normalizeClass as m, withCtx as f, createElementBlock as u, Fragment as v, renderList as x, createCommentVNode as p, mergeProps as _, createElementVNode as w, createApp as Te, defineComponent as Le, inject as Re, withKeys as A, renderSlot as c, withModifiers as M, createTextVNode as B, toDisplayString as S, normalizeStyle as R, toHandlers as ne, Transition as O, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as xe, KeepAlive as Oe } from "vue";
8
+ import { reactive as Z, resolveComponent as $, createBlock as b, openBlock as o, Teleport as Ve, createVNode as T, TransitionGroup as ae, normalizeClass as m, withCtx as f, createElementBlock as u, Fragment as v, renderList as x, createCommentVNode as p, mergeProps as _, createElementVNode as w, h as Te, render as Le, inject as Re, withKeys as A, renderSlot as c, withModifiers as M, createTextVNode as B, toDisplayString as S, normalizeStyle as R, toHandlers as ne, Transition as O, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as xe, KeepAlive as Oe } from "vue";
9
9
  const Pe = Z({
10
10
  on: "#app",
11
11
  // Sets the Wave UI root node. If not found, will default to `body`.
@@ -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,20 +710,13 @@ 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;
715
- const Qe = (e, t, i) => {
716
- const s = document.createElement("div");
717
- e.appendChild(s);
718
- const a = Te(Le({
719
- ...Je,
720
- inject: ["$waveui"]
721
- })).provide("$waveui", i);
722
- for (const l in t) {
723
- const n = t[l];
724
- a.component(n.name, { ...n, inject: ["$waveui"] });
725
- }
726
- a.mount(s), s.remove();
713
+ H = new WeakMap(), te(K, H);
714
+ let oe = K;
715
+ const Qe = (e) => {
716
+ const t = document.createElement("div");
717
+ document.body.appendChild(t);
718
+ const i = Te(Je);
719
+ i.appContext = e._context, Le(i, t), t.remove();
727
720
  };
728
721
  let be = !1;
729
722
  const Ze = (e) => {
@@ -733,24 +726,23 @@ const Ze = (e) => {
733
726
  });
734
727
  }, et = (e, t) => {
735
728
  var i, s;
736
- for (const a in t)
737
- if ((i = e.props) != null && i[a])
738
- 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];
739
732
  else {
740
733
  let l = !1;
741
734
  if (Array.isArray(e.mixins) && e.mixins.length) {
742
- for (const n of e.mixins)
743
- if ((s = n == null ? void 0 : n.props) != null && s[a]) {
744
- 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;
745
738
  break;
746
739
  }
747
- l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${a}\`.`);
748
- continue;
740
+ l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
749
741
  }
750
742
  }
751
743
  };
752
744
  var X;
753
- const K = class K {
745
+ const N = class N {
754
746
  constructor(t, i = {}) {
755
747
  // Exposed as a global object and also `app.provide`d.
756
748
  // Accessible from this.$waveui, or inject('$waveui').
@@ -772,63 +764,80 @@ const K = class K {
772
764
  theme: null,
773
765
  // The current theme (light or dark).
774
766
  _notificationManager: null,
775
- // 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
+ */
776
772
  notify(...t) {
777
773
  this._notificationManager.notify(...t);
778
774
  },
779
- // Callable from this.$waveui.
780
- switchTheme(t, i = !1) {
781
- var a, l;
782
- 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);
783
- const s = this.config.colors[this.theme];
784
- 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));
785
794
  }
786
795
  });
787
- if (Y(K, X)) return;
796
+ if (Y(N, X)) return;
788
797
  if (this.$waveui._notificationManager = new oe(), i.theme || (i.theme = "light"), i.colors) {
789
- const n = { ...i.colors };
790
- 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 };
791
800
  }
792
- let { components: s, ...a } = i;
793
- 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);
794
803
  const l = Z(this.$waveui);
795
- 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));
796
805
  }
797
806
  static install(t, i = {}) {
798
- var a;
807
+ var n;
799
808
  t.directive("focus", {
800
809
  // Wait for the next tick to focus the newly mounted element.
801
810
  mounted: (l) => setTimeout(() => l.focus(), 0)
802
811
  }), t.directive("scroll", {
803
- mounted: (l, n) => {
812
+ mounted: (l, a) => {
804
813
  const r = (d) => {
805
- n.value(d, l) && window.removeEventListener("scroll", r);
814
+ a.value(d, l) && window.removeEventListener("scroll", r);
806
815
  };
807
816
  window.addEventListener("scroll", r);
808
817
  }
809
818
  });
810
819
  const { components: s = {} } = i || {};
811
820
  for (const l in s) {
812
- const n = s[l];
813
- (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);
814
823
  }
815
824
  t.mixin({
816
825
  // Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
817
826
  beforeMount() {
818
827
  if (!be) {
819
828
  be = !0;
820
- const l = Re("$waveui"), { config: n } = l, r = document.querySelector(n.on) || document.body;
821
- r.classList.add("w-app"), n.theme === "auto" ? Ze(l) : l.switchTheme(n.theme, !0), je(l), Qe(r, s, l), 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));
822
831
  }
823
832
  }
824
- }), new K(t, i), ie(K, X, !0);
833
+ }), new N(t, i), ie(N, X, !0);
825
834
  }
826
835
  };
827
- X = new WeakMap(), te(K, X, !1);
828
- let q = K;
836
+ X = new WeakMap(), te(N, X, !1);
837
+ let q = N;
829
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"];
830
- function ot(e, t, i, s, a, l) {
831
- 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");
832
841
  return o(), u("div", {
833
842
  class: m(["w-accordion__item", l.itemClasses]),
834
843
  "aria-expanded": l.accordionItem._expanded ? "true" : "false"
@@ -840,7 +849,7 @@ function ot(e, t, i, s, a, l) {
840
849
  onKeypress: t[6] || (t[6] = A((d) => !l.accordionItem._disabled && l.toggleItem(l.accordionItem, d), ["enter"])),
841
850
  tabindex: !l.accordionItem._disabled && 0
842
851
  }, [
843
- l.options.expandIcon && !l.options.expandIconRight ? (o(), b(n, {
852
+ l.options.expandIcon && !l.options.expandIconRight ? (o(), b(a, {
844
853
  key: 0,
845
854
  class: m(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": l.accordionItem._expanded, "w-accordion__expand-icon--rotate90": l.options.expandIconRotate90 }]),
846
855
  icon: l.accordionItem._expanded && l.options.collapseIcon || l.options.expandIcon,
@@ -862,7 +871,7 @@ function ot(e, t, i, s, a, l) {
862
871
  innerHTML: l.accordionItem[l.options.itemTitleKey]
863
872
  }, null, 8, lt)
864
873
  ]),
865
- l.options.expandIcon && l.options.expandIconRight ? (o(), b(n, {
874
+ l.options.expandIcon && l.options.expandIconRight ? (o(), b(a, {
866
875
  key: 1,
867
876
  class: m(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": l.accordionItem._expanded, "w-accordion__expand-icon--rotate90": l.options.expandIconRotate90 }]),
868
877
  icon: l.accordionItem._expanded && l.options.collapseIcon || l.options.expandIcon,
@@ -952,12 +961,12 @@ const at = {
952
961
  this.unregisterItem(this._.uid);
953
962
  }
954
963
  }, Be = /* @__PURE__ */ C(at, [["render", ot]]);
955
- function nt(e, t, i, s, a, l) {
956
- const n = $("w-accordion-item");
964
+ function nt(e, t, i, s, n, l) {
965
+ const a = $("w-accordion-item");
957
966
  return o(), u("div", {
958
967
  class: m(["w-accordion", l.accordionClasses])
959
968
  }, [
960
- 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, {
961
970
  key: d,
962
971
  class: m(l.itemClasses),
963
972
  title: r.title,
@@ -1050,8 +1059,8 @@ const rt = {
1050
1059
  accordionItemsProvided() {
1051
1060
  var e, t, i;
1052
1061
  return (i = (t = (e = this.$slots).default) == null ? void 0 : t.call(e)) == null ? void 0 : i.some((s) => {
1053
- var a;
1054
- 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;
1055
1064
  });
1056
1065
  },
1057
1066
  accordionClasses() {
@@ -1124,14 +1133,14 @@ const rt = {
1124
1133
  }
1125
1134
  }
1126
1135
  }, dt = /* @__PURE__ */ C(rt, [["render", nt]]), ut = { class: "w-alert__content" };
1127
- function ht(e, t, i, s, a, l) {
1128
- const n = $("w-icon"), r = $("w-button");
1129
- 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", {
1130
1139
  key: 0,
1131
1140
  class: m(["w-alert", l.classes])
1132
1141
  }, [
1133
1142
  l.type || i.icon || i.dismiss ? (o(), u(v, { key: 0 }, [
1134
- l.type || i.icon ? (o(), b(n, {
1143
+ l.type || i.icon ? (o(), b(a, {
1135
1144
  key: 0,
1136
1145
  class: "w-alert__icon"
1137
1146
  }, {
@@ -1147,7 +1156,7 @@ function ht(e, t, i, s, a, l) {
1147
1156
  key: 1,
1148
1157
  class: "w-alert__dismiss",
1149
1158
  onClick: t[0] || (t[0] = (d) => {
1150
- 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);
1151
1160
  }),
1152
1161
  icon: "wi-cross",
1153
1162
  color: "inherit",
@@ -1240,8 +1249,8 @@ const ct = {
1240
1249
  }
1241
1250
  }
1242
1251
  }, pt = /* @__PURE__ */ C(ct, [["render", ht]]), mt = { class: "w-autocomplete__selection" }, ft = ["innerHTML"], gt = ["innerHTML"], bt = ["value"], yt = ["onClick"], wt = ["innerHTML"], kt = ["innerHTML"];
1243
- function vt(e, t, i, s, a, l) {
1244
- 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");
1245
1254
  return o(), u("div", {
1246
1255
  class: m(["w-autocomplete", l.classes]),
1247
1256
  onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
@@ -1255,7 +1264,7 @@ function vt(e, t, i, s, a, l) {
1255
1264
  w("span", {
1256
1265
  innerHTML: d[i.itemLabelKey]
1257
1266
  }, null, 8, ft),
1258
- T(n, {
1267
+ T(a, {
1259
1268
  onClick: M((y) => l.unselectItem(h), ["stop"]),
1260
1269
  icon: "wi-cross",
1261
1270
  xs: "",
@@ -1461,12 +1470,12 @@ const Ct = {
1461
1470
  e.preventDefault();
1462
1471
  let s = this.highlightedItemIndex;
1463
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;
1464
- const a = this.$refs.menu;
1465
- if (a)
1466
- 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;
1467
1476
  else {
1468
- const { offsetHeight: l, offsetTop: n } = a.childNodes[s] || {};
1469
- 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);
1470
1479
  }
1471
1480
  } else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
1472
1481
  },
@@ -1507,7 +1516,7 @@ const Ct = {
1507
1516
  }
1508
1517
  }
1509
1518
  }, St = /* @__PURE__ */ C(Ct, [["render", vt]]), Bt = { class: "w-app" };
1510
- function _t(e, t, i, s, a, l) {
1519
+ function _t(e, t, i, s, n, l) {
1511
1520
  return o(), u("div", Bt, [
1512
1521
  c(e.$slots, "default")
1513
1522
  ]);
@@ -1529,7 +1538,7 @@ const $t = {
1529
1538
  textRight: { type: Boolean }
1530
1539
  }
1531
1540
  }, It = /* @__PURE__ */ C($t, [["render", _t]]), Vt = { class: "w-badge-wrap" };
1532
- function Tt(e, t, i, s, a, l) {
1541
+ function Tt(e, t, i, s, n, l) {
1533
1542
  return o(), u("div", Vt, [
1534
1543
  c(e.$slots, "default"),
1535
1544
  T(O, {
@@ -1596,12 +1605,13 @@ const Lt = {
1596
1605
  ];
1597
1606
  },
1598
1607
  classes() {
1599
- 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("");
1600
1610
  return {
1601
1611
  [this.color]: this.color,
1602
1612
  [`${this.bgColor}--bg`]: this.bgColor,
1603
1613
  [this.badgeClass]: this.badgeClass || null,
1604
- "w-badge--round": this.round || (e || this.modelValue + "" || "").length < 2,
1614
+ "w-badge--round": this.round || (e || `${this.modelValue}` || "").length < 2,
1605
1615
  "w-badge--dark": this.dark,
1606
1616
  "w-badge--light": this.light,
1607
1617
  "w-badge--outline": this.outline,
@@ -1618,8 +1628,8 @@ const Lt = {
1618
1628
  }
1619
1629
  }
1620
1630
  }, Rt = /* @__PURE__ */ C(Lt, [["render", Tt]]), xt = ["innerHTML"];
1621
- function Ot(e, t, i, s, a, l) {
1622
- const n = $("w-icon");
1631
+ function Ot(e, t, i, s, n, l) {
1632
+ const a = $("w-icon");
1623
1633
  return o(), u("div", {
1624
1634
  class: m(["w-breadcrumbs", l.classes])
1625
1635
  }, [
@@ -1629,7 +1639,7 @@ function Ot(e, t, i, s, a, l) {
1629
1639
  key: `${d}a`
1630
1640
  }, [
1631
1641
  c(e.$slots, "separator", { index: d })
1632
- ], 2)) : d ? (o(), b(n, {
1642
+ ], 2)) : d ? (o(), b(a, {
1633
1643
  class: m(["w-breadcrumbs__separator", i.separatorColor]),
1634
1644
  key: `${d}b`
1635
1645
  }, {
@@ -1707,8 +1717,8 @@ const Pt = {
1707
1717
  key: 0,
1708
1718
  class: "w-button__loader"
1709
1719
  };
1710
- function Et(e, t, i, s, a, l) {
1711
- const n = $("w-icon");
1720
+ function Et(e, t, i, s, n, l) {
1721
+ const a = $("w-icon");
1712
1722
  return o(), b(L(!i.disabled && i.route ? "a" : "button"), _({
1713
1723
  class: ["w-button", l.classes],
1714
1724
  type: !i.route && i.type,
@@ -1716,7 +1726,7 @@ function Et(e, t, i, s, a, l) {
1716
1726
  disabled: !!i.disabled || null
1717
1727
  }, l.attrs, { style: l.styles }), {
1718
1728
  default: f(() => [
1719
- i.icon ? (o(), b(n, le(_({ key: 0 }, i.iconProps || {})), {
1729
+ i.icon ? (o(), b(a, le(_({ key: 0 }, i.iconProps || {})), {
1720
1730
  default: f(() => [
1721
1731
  B(S(i.icon), 1)
1722
1732
  ]),
@@ -1847,12 +1857,12 @@ const At = {
1847
1857
  };
1848
1858
  }
1849
1859
  }
1850
- }, Wt = /* @__PURE__ */ C(At, [["render", Et]]), Nt = ["innerHTML"];
1851
- function Kt(e, t, i, s, a, l) {
1852
- 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");
1853
1863
  return i.tooltip ? (o(), b(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
1854
1864
  activator: f(({ on: r }) => [
1855
- T(n, _(l.buttonProps, ne(r)), {
1865
+ T(a, _(l.buttonProps, ne(r)), {
1856
1866
  default: f(() => [
1857
1867
  c(e.$slots, "default")
1858
1868
  ]),
@@ -1860,10 +1870,10 @@ function Kt(e, t, i, s, a, l) {
1860
1870
  }, 1040)
1861
1871
  ]),
1862
1872
  default: f(() => [
1863
- w("div", { innerHTML: i.tooltip }, null, 8, Nt)
1873
+ w("div", { innerHTML: i.tooltip }, null, 8, Kt)
1864
1874
  ]),
1865
1875
  _: 3
1866
- }, 16)) : (o(), b(n, le(_({ key: 1 }, l.buttonProps)), {
1876
+ }, 16)) : (o(), b(a, le(_({ key: 1 }, l.buttonProps)), {
1867
1877
  loading: f(() => [
1868
1878
  c(e.$slots, "loading")
1869
1879
  ]),
@@ -1924,9 +1934,9 @@ const Dt = {
1924
1934
  return { ...i, ...this.$attrs };
1925
1935
  }
1926
1936
  }
1927
- }, Ht = /* @__PURE__ */ C(Dt, [["render", Kt]]), Ft = ["innerHTML"];
1928
- function jt(e, t, i, s, a, l) {
1929
- 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");
1930
1940
  return o(), u("div", {
1931
1941
  class: m(["w-card", l.classes])
1932
1942
  }, [
@@ -1940,7 +1950,7 @@ function jt(e, t, i, s, a, l) {
1940
1950
  class: m(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1941
1951
  innerHTML: i.title
1942
1952
  }, null, 10, Ft)) : p("", !0),
1943
- i.image ? (o(), b(n, _({
1953
+ i.image ? (o(), b(a, _({
1944
1954
  key: 2,
1945
1955
  class: "w-card__image",
1946
1956
  src: i.image
@@ -1988,12 +1998,14 @@ const Ut = {
1988
1998
  return P(this.contentClass);
1989
1999
  },
1990
2000
  titleHasToolbar() {
2001
+ var t;
1991
2002
  const { title: e } = this.$slots;
1992
- 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");
1993
2004
  },
1994
2005
  actionsHasToolbar() {
2006
+ var t;
1995
2007
  const { actions: e } = this.$slots;
1996
- 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");
1997
2009
  },
1998
2010
  imgProps() {
1999
2011
  return {
@@ -2062,12 +2074,12 @@ const Ut = {
2062
2074
  }
2063
2075
  }
2064
2076
  }, Xt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Yt = ["for"], Gt = ["for", "innerHTML"], Jt = ["for"], Qt = ["for", "innerHTML"];
2065
- function Zt(e, t, i, s, a, l) {
2066
- 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 }, {
2067
2079
  valid: e.valid,
2068
- "onUpdate:valid": t[5] || (t[5] = (n) => e.valid = n),
2069
- onReset: t[6] || (t[6] = (n) => {
2070
- 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);
2071
2083
  }),
2072
2084
  class: l.classes
2073
2085
  }), {
@@ -2077,15 +2089,15 @@ function Zt(e, t, i, s, a, l) {
2077
2089
  id: `w-checkbox--${e._.uid}`,
2078
2090
  type: "checkbox",
2079
2091
  name: e.inputName,
2080
- checked: a.isChecked || null,
2092
+ checked: n.isChecked || null,
2081
2093
  disabled: e.isDisabled || e.isReadonly || null,
2082
2094
  required: e.required || null,
2083
2095
  tabindex: e.tabindex || null,
2084
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
2085
- onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
2086
- onChange: t[2] || (t[2] = (n) => l.onInput()),
2087
- onKeypress: t[3] || (t[3] = A((...n) => l.onInput && l.onInput(...n), ["enter"])),
2088
- "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",
2089
2101
  role: "checkbox"
2090
2102
  }, null, 40, Xt),
2091
2103
  l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
@@ -2106,7 +2118,7 @@ function Zt(e, t, i, s, a, l) {
2106
2118
  ], 64)) : p("", !0),
2107
2119
  w("div", {
2108
2120
  class: m(["w-checkbox__input", this.color]),
2109
- onClick: t[4] || (t[4] = (n) => {
2121
+ onClick: t[4] || (t[4] = (a) => {
2110
2122
  e.$refs.input.focus(), e.$refs.input.click();
2111
2123
  })
2112
2124
  }, t[7] || (t[7] = [
@@ -2202,8 +2214,8 @@ const ei = {
2202
2214
  }
2203
2215
  }
2204
2216
  }, ti = /* @__PURE__ */ C(ei, [["render", Zt]]), ii = ["innerHTML"];
2205
- function li(e, t, i, s, a, l) {
2206
- const n = $("w-checkbox");
2217
+ function li(e, t, i, s, n, l) {
2218
+ const a = $("w-checkbox");
2207
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 }, {
2208
2220
  valid: e.valid,
2209
2221
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
@@ -2213,7 +2225,7 @@ function li(e, t, i, s, a, l) {
2213
2225
  class: l.classes
2214
2226
  }), {
2215
2227
  default: f(() => [
2216
- (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, _({
2217
2229
  key: d,
2218
2230
  "model-value": r._isChecked,
2219
2231
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -2273,6 +2285,7 @@ const si = {
2273
2285
  computed: {
2274
2286
  checkboxItems() {
2275
2287
  return (this.items || []).map((e, t) => {
2288
+ var s;
2276
2289
  const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
2277
2290
  return Z({
2278
2291
  ...e,
@@ -2281,7 +2294,7 @@ const si = {
2281
2294
  value: i,
2282
2295
  // If no value is set then add one to prevent error.
2283
2296
  color: e[this.itemColorKey] || this.color,
2284
- _isChecked: this.modelValue && this.modelValue.includes(i)
2297
+ _isChecked: (s = this.modelValue) == null ? void 0 : s.includes(i)
2285
2298
  });
2286
2299
  });
2287
2300
  },
@@ -2307,14 +2320,14 @@ const si = {
2307
2320
  }
2308
2321
  }
2309
2322
  }, oi = /* @__PURE__ */ C(si, [["render", li]]);
2310
- function ai(e, t, i, s, a, l) {
2311
- 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");
2312
2325
  return o(), b(d, _({
2313
2326
  modelValue: e.showPopup,
2314
2327
  "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
2315
2328
  }, l.wMenuProps), {
2316
2329
  activator: f(({ on: y }) => [
2317
- 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 })), {
2318
2331
  default: f(() => [
2319
2332
  c(e.$slots, "default")
2320
2333
  ]),
@@ -2335,7 +2348,7 @@ function ai(e, t, i, s, a, l) {
2335
2348
  w("div", {
2336
2349
  class: m(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2337
2350
  }, [
2338
- i.cancel !== !1 ? (o(), b(n, _({
2351
+ i.cancel !== !1 ? (o(), b(a, _({
2339
2352
  key: 0,
2340
2353
  class: "mr2"
2341
2354
  }, l.cancelButtonProps, {
@@ -2350,7 +2363,7 @@ function ai(e, t, i, s, a, l) {
2350
2363
  ]),
2351
2364
  _: 3
2352
2365
  }, 16, ["bg-color", "onClick"])) : p("", !0),
2353
- W((o(), b(n, _(l.confirmButtonProps, {
2366
+ W((o(), b(a, _(l.confirmButtonProps, {
2354
2367
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2355
2368
  onKeyup: t[1] || (t[1] = A((y) => !i.persistent && l.onCancel(), ["escape"])),
2356
2369
  onClick: l.onConfirm
@@ -2486,7 +2499,7 @@ const ni = {
2486
2499
  }
2487
2500
  }
2488
2501
  }, ri = /* @__PURE__ */ C(ni, [["render", ai]]);
2489
- function di(e, t, i, s, a, l) {
2502
+ function di(e, t, i, s, n, l) {
2490
2503
  return o(), u("div", {
2491
2504
  class: m(["w-date-picker", l.classes]),
2492
2505
  style: R(l.styles)
@@ -2513,11 +2526,11 @@ const ui = {
2513
2526
  }
2514
2527
  }
2515
2528
  }, hi = /* @__PURE__ */ C(ui, [["render", di]]);
2516
- function ci(e, t, i, s, a, l) {
2517
- const n = $("w-card"), r = $("w-overlay");
2529
+ function ci(e, t, i, s, n, l) {
2530
+ const a = $("w-card"), r = $("w-overlay");
2518
2531
  return o(), b(r, {
2519
2532
  class: m(["w-dialog", l.classes]),
2520
- "model-value": a.showWrapper,
2533
+ "model-value": n.showWrapper,
2521
2534
  persistent: i.persistent,
2522
2535
  "persistent-no-animation": i.persistentNoAnimation,
2523
2536
  onClick: l.onOutsideClick,
@@ -2532,7 +2545,7 @@ function ci(e, t, i, s, a, l) {
2532
2545
  onAfterLeave: l.onBeforeClose
2533
2546
  }, {
2534
2547
  default: f(() => [
2535
- W(T(n, {
2548
+ W(T(a, {
2536
2549
  class: m(["w-dialog__content", i.dialogClass]),
2537
2550
  ref: "dialog",
2538
2551
  "no-border": "",
@@ -2563,7 +2576,7 @@ function ci(e, t, i, s, a, l) {
2563
2576
  key: "1"
2564
2577
  } : void 0
2565
2578
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2566
- [re, a.showContent]
2579
+ [re, n.showContent]
2567
2580
  ])
2568
2581
  ]),
2569
2582
  _: 3
@@ -2652,7 +2665,7 @@ const pi = {
2652
2665
  }
2653
2666
  }
2654
2667
  }, mi = /* @__PURE__ */ C(pi, [["render", ci]]), fi = ["role", "aria-orientation"];
2655
- function gi(e, t, i, s, a, l) {
2668
+ function gi(e, t, i, s, n, l) {
2656
2669
  return o(), u("div", {
2657
2670
  class: m(["w-divider", l.classes]),
2658
2671
  role: e.$slots.default ? null : "presentation",
@@ -2682,9 +2695,9 @@ const bi = {
2682
2695
  }
2683
2696
  }
2684
2697
  }, yi = /* @__PURE__ */ C(bi, [["render", gi]]), wi = { class: "w-drawer-wrap__pushable" };
2685
- function ki(e, t, i, s, a, l) {
2686
- const n = $("w-overlay");
2687
- 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", {
2688
2701
  key: 0,
2689
2702
  class: m(["w-drawer-wrap", l.wrapperClasses])
2690
2703
  }, [
@@ -2694,10 +2707,10 @@ function ki(e, t, i, s, a, l) {
2694
2707
  style: R(l.trackStyles)
2695
2708
  }, [
2696
2709
  w("div", wi, [
2697
- i.noOverlay ? p("", !0) : (o(), b(n, {
2710
+ i.noOverlay ? p("", !0) : (o(), b(a, {
2698
2711
  key: 0,
2699
- modelValue: a.showDrawer,
2700
- "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),
2701
2714
  onClick: l.onOutsideClick,
2702
2715
  persistent: i.persistent,
2703
2716
  "persistent-no-animation": "",
@@ -2712,7 +2725,7 @@ function ki(e, t, i, s, a, l) {
2712
2725
  onAfterLeave: l.onClose
2713
2726
  }, {
2714
2727
  default: f(() => [
2715
- a.showDrawer ? (o(), b(L(i.tag || "aside"), {
2728
+ n.showDrawer ? (o(), b(L(i.tag || "aside"), {
2716
2729
  key: 0,
2717
2730
  class: m(["w-drawer", l.drawerClasses]),
2718
2731
  ref: "drawer",
@@ -2727,10 +2740,10 @@ function ki(e, t, i, s, a, l) {
2727
2740
  _: 3
2728
2741
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2729
2742
  ], 4)) : (o(), u(v, { key: 1 }, [
2730
- i.noOverlay ? p("", !0) : (o(), b(n, {
2743
+ i.noOverlay ? p("", !0) : (o(), b(a, {
2731
2744
  key: 0,
2732
- modelValue: a.showDrawer,
2733
- "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),
2734
2747
  onClick: l.onOutsideClick,
2735
2748
  persistent: i.persistent,
2736
2749
  "persistent-no-animation": "",
@@ -2744,7 +2757,7 @@ function ki(e, t, i, s, a, l) {
2744
2757
  onAfterLeave: l.onClose
2745
2758
  }, {
2746
2759
  default: f(() => [
2747
- a.showDrawer ? (o(), b(L(i.tag || "aside"), {
2760
+ n.showDrawer ? (o(), b(L(i.tag || "aside"), {
2748
2761
  key: 0,
2749
2762
  class: m(["w-drawer", l.drawerClasses]),
2750
2763
  ref: "drawer",
@@ -2875,7 +2888,7 @@ const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
2875
2888
  }
2876
2889
  }
2877
2890
  }, Si = /* @__PURE__ */ C(Ci, [["render", ki]]);
2878
- function Bi(e, t, i, s, a, l) {
2891
+ function Bi(e, t, i, s, n, l) {
2879
2892
  return o(), b(L(i.tag), {
2880
2893
  class: m(["w-flex", l.classes])
2881
2894
  }, {
@@ -2933,11 +2946,11 @@ const _i = {
2933
2946
  }
2934
2947
  }
2935
2948
  }, $i = /* @__PURE__ */ C(_i, [["render", Bi]]);
2936
- function Ii(e, t, i, s, a, l) {
2949
+ function Ii(e, t, i, s, n, l) {
2937
2950
  return o(), u("form", {
2938
2951
  class: m(["w-form", l.classes]),
2939
- onSubmit: t[0] || (t[0] = (...n) => l.onSubmit && l.onSubmit(...n)),
2940
- 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)),
2941
2954
  novalidate: ""
2942
2955
  }, [
2943
2956
  c(e.$slots, "default")
@@ -3028,8 +3041,8 @@ const Vi = async (e, t) => {
3028
3041
  async checkElementValidators(e) {
3029
3042
  let t = !1, i = "";
3030
3043
  await Vi(e.validators, async (s) => {
3031
- const a = await (typeof s == "function" && s(e.inputValue));
3032
- 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;
3033
3046
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
3034
3047
  },
3035
3048
  // Reset is called from:
@@ -3054,8 +3067,8 @@ const Vi = async (e, t) => {
3054
3067
  }
3055
3068
  }
3056
3069
  }, Li = /* @__PURE__ */ C(Ti, [["render", Ii]]);
3057
- function Ri(e, t, i, s, a, l) {
3058
- const n = $("w-transition-expand");
3070
+ function Ri(e, t, i, s, n, l) {
3071
+ const a = $("w-transition-expand");
3059
3072
  return o(), u("div", {
3060
3073
  class: m(l.classes)
3061
3074
  }, [
@@ -3064,7 +3077,7 @@ function Ri(e, t, i, s, a, l) {
3064
3077
  }, [
3065
3078
  c(e.$slots, "default")
3066
3079
  ], 2),
3067
- T(n, { y: "" }, {
3080
+ T(a, { y: "" }, {
3068
3081
  default: f(() => [
3069
3082
  e.Validation.message ? (o(), u("div", {
3070
3083
  key: 0,
@@ -3155,7 +3168,7 @@ const xi = {
3155
3168
  this.formUnregister && this.formUnregister(this);
3156
3169
  }
3157
3170
  }, Oi = /* @__PURE__ */ C(xi, [["render", Ri]]);
3158
- function Pi(e, t, i, s, a, l) {
3171
+ function Pi(e, t, i, s, n, l) {
3159
3172
  return o(), b(L(i.tag), {
3160
3173
  class: m(["w-grid", l.classes])
3161
3174
  }, {
@@ -3201,16 +3214,16 @@ const zi = {
3201
3214
  },
3202
3215
  classes() {
3203
3216
  let e = null;
3204
- 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), {}));
3205
3218
  let t = null;
3206
- 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), {})), {
3207
3220
  ...e || { [`columns${this.columns}`]: this.columns },
3208
3221
  ...t || { [`gap${this.gap}`]: this.gap }
3209
3222
  };
3210
3223
  }
3211
3224
  }
3212
3225
  }, Mi = /* @__PURE__ */ C(zi, [["render", Pi]]);
3213
- function Ei(e, t, i, s, a, l) {
3226
+ function Ei(e, t, i, s, n, l) {
3214
3227
  return o(), b(L(i.tag || "i"), {
3215
3228
  class: m(["w-icon", l.classes]),
3216
3229
  role: "icon",
@@ -3290,16 +3303,17 @@ const Ai = {
3290
3303
  },
3291
3304
  methods: {
3292
3305
  readIcon() {
3293
- 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(" ")) || [];
3294
3308
  return this.fontName = t, this.icon = i, !0;
3295
3309
  }
3296
3310
  }
3297
- }, Wi = /* @__PURE__ */ C(Ai, [["render", Ei]]), Ni = {
3311
+ }, Wi = /* @__PURE__ */ C(Ai, [["render", Ei]]), Ki = {
3298
3312
  key: 0,
3299
3313
  class: "w-image__loader"
3300
- }, Ki = ["innerHTML"];
3301
- function Di(e, t, i, s, a, l) {
3302
- const n = $("w-progress");
3314
+ }, Ni = ["innerHTML"];
3315
+ function Di(e, t, i, s, n, l) {
3316
+ const a = $("w-progress");
3303
3317
  return o(), b(L(l.wrapperTag), {
3304
3318
  class: m(["w-image", l.wrapperClasses]),
3305
3319
  style: R(l.wrapperStyles)
@@ -3310,17 +3324,17 @@ function Di(e, t, i, s, a, l) {
3310
3324
  appear: ""
3311
3325
  }, {
3312
3326
  default: f(() => [
3313
- a.loaded ? (o(), b(L(l.normalized.tag), {
3327
+ n.loaded ? (o(), b(L(l.normalized.tag), {
3314
3328
  key: 0,
3315
3329
  class: m(["w-image__image", l.imageClasses]),
3316
3330
  style: R(l.imageStyles),
3317
- src: l.normalized.tag === "img" ? a.computedImg.src : null
3331
+ src: l.normalized.tag === "img" ? n.computedImg.src : null
3318
3332
  }, null, 8, ["class", "style", "src"])) : p("", !0)
3319
3333
  ]),
3320
3334
  _: 1
3321
3335
  }, 8, ["name"]),
3322
- !i.noSpinner && a.loading ? (o(), u("span", Ni, [
3323
- 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, _({
3324
3338
  key: 1,
3325
3339
  circle: "",
3326
3340
  indeterminate: ""
@@ -3344,7 +3358,7 @@ function Di(e, t, i, s, a, l) {
3344
3358
  key: 3,
3345
3359
  class: m(["w-image__caption caption", i.captionClass]),
3346
3360
  innerHTML: i.caption
3347
- }, null, 10, Ki)) : p("", !0)
3361
+ }, null, 10, Ni)) : p("", !0)
3348
3362
  ]),
3349
3363
  _: 3
3350
3364
  }, 8, ["class", "style"]);
@@ -3448,7 +3462,8 @@ const Hi = {
3448
3462
  if (!this.src) return j("The w-image component was used without src.");
3449
3463
  if (this.lazy) {
3450
3464
  const e = new IntersectionObserver((t) => {
3451
- t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
3465
+ var i;
3466
+ (i = t[0]) != null && i.isIntersecting && (this.loadImage(), e.disconnect());
3452
3467
  }, this.intersectionConfig);
3453
3468
  e.observe(this.$el);
3454
3469
  } else this.loadImage();
@@ -3462,13 +3477,13 @@ const Hi = {
3462
3477
  class: "w-input__no-file",
3463
3478
  key: "no-file"
3464
3479
  }, Gi = ["for"], Ji = ["src"], Qi = ["for"];
3465
- function Zi(e, t, i, s, a, l) {
3466
- const n = $("w-icon"), r = $("w-progress");
3467
- 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 }, {
3468
3483
  valid: e.valid,
3469
3484
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3470
3485
  onReset: t[11] || (t[11] = (d) => {
3471
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
3486
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
3472
3487
  }),
3473
3488
  wrap: l.hasLabel && i.labelPosition !== "inside",
3474
3489
  class: l.classes,
@@ -3479,9 +3494,9 @@ function Zi(e, t, i, s, a, l) {
3479
3494
  key: 0,
3480
3495
  type: "hidden",
3481
3496
  name: e.name || null,
3482
- "onUpdate:modelValue": t[0] || (t[0] = (d) => a.inputValue = d)
3497
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3483
3498
  }, null, 8, ji)), [
3484
- [ve, a.inputValue]
3499
+ [ve, n.inputValue]
3485
3500
  ]) : (o(), u(v, { key: 1 }, [
3486
3501
  i.labelPosition === "left" ? (o(), u(v, { key: 0 }, [
3487
3502
  e.$slots.default || i.label ? (o(), u("label", {
@@ -3500,7 +3515,7 @@ function Zi(e, t, i, s, a, l) {
3500
3515
  c(e.$slots, "icon-left", {
3501
3516
  inputId: `w-input--${e._.uid}`
3502
3517
  }, () => [
3503
- i.innerIconLeft ? (o(), b(n, {
3518
+ i.innerIconLeft ? (o(), b(a, {
3504
3519
  key: 0,
3505
3520
  class: "w-input__icon w-input__icon--inner-left",
3506
3521
  tag: "label",
@@ -3517,7 +3532,7 @@ function Zi(e, t, i, s, a, l) {
3517
3532
  key: 0,
3518
3533
  class: "w-input__input",
3519
3534
  ref: "input",
3520
- "onUpdate:modelValue": t[2] || (t[2] = (d) => a.inputValue = d),
3535
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d),
3521
3536
  onInput: t[3] || (t[3] = (...d) => l.onInput && l.onInput(...d)),
3522
3537
  onFocus: t[4] || (t[4] = (...d) => l.onFocus && l.onFocus(...d)),
3523
3538
  onBlur: t[5] || (t[5] = (...d) => l.onBlur && l.onBlur(...d)),
@@ -3536,7 +3551,7 @@ function Zi(e, t, i, s, a, l) {
3536
3551
  required: e.required || null,
3537
3552
  tabindex: e.tabindex || null
3538
3553
  }, l.attrs), null, 16, qi)), [
3539
- [xe, a.inputValue]
3554
+ [xe, n.inputValue]
3540
3555
  ]) : (o(), u(v, { key: 1 }, [
3541
3556
  w("input", _({
3542
3557
  ref: "input",
@@ -3559,14 +3574,14 @@ function Zi(e, t, i, s, a, l) {
3559
3574
  for: `w-input--${e._.uid}`
3560
3575
  }, {
3561
3576
  default: f(() => [
3562
- !a.inputFiles.length && a.isFocused ? (o(), u("span", Yi, [
3577
+ !n.inputFiles.length && n.isFocused ? (o(), u("span", Yi, [
3563
3578
  c(e.$slots, "no-file", {}, () => [
3564
3579
  e.$slots["no-file"] === void 0 ? (o(), u(v, { key: 0 }, [
3565
3580
  B("No file")
3566
3581
  ], 64)) : p("", !0)
3567
3582
  ])
3568
3583
  ])) : p("", !0),
3569
- (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", {
3570
3585
  key: d.lastModified
3571
3586
  }, [
3572
3587
  B(S(h ? ", " : ""), 1),
@@ -3593,7 +3608,7 @@ function Zi(e, t, i, s, a, l) {
3593
3608
  c(e.$slots, "icon-right", {
3594
3609
  inputId: `w-input--${e._.uid}`
3595
3610
  }, () => [
3596
- i.innerIconRight ? (o(), b(n, {
3611
+ i.innerIconRight ? (o(), b(a, {
3597
3612
  key: 0,
3598
3613
  class: "w-input__icon w-input__icon--inner-right",
3599
3614
  tag: "label",
@@ -3614,12 +3629,12 @@ function Zi(e, t, i, s, a, l) {
3614
3629
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3615
3630
  }, null, 8, ["color", "model-value"])) : p("", !0)
3616
3631
  ], 2),
3617
- i.type === "file" && i.preview && a.inputFiles.length ? (o(), u("label", {
3632
+ i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
3618
3633
  key: 1,
3619
3634
  class: "d-flex",
3620
3635
  for: `w-input--${e._.uid}`
3621
3636
  }, [
3622
- (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, [
3623
3638
  d.progress < 100 ? (o(), u("i", {
3624
3639
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3625
3640
  key: `${h}a`
@@ -3799,10 +3814,10 @@ const el = {
3799
3814
  // For file input.
3800
3815
  onFileChange(e) {
3801
3816
  this.inputFiles = [...e.target.files].map((i) => {
3802
- const [, s = "", a = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), n = Z({
3817
+ const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Z({
3803
3818
  name: i.name,
3804
3819
  base: s || l,
3805
- extension: a,
3820
+ extension: n,
3806
3821
  type: i.type,
3807
3822
  size: i.size,
3808
3823
  lastModified: i.lastModified,
@@ -3810,24 +3825,26 @@ const el = {
3810
3825
  progress: 0,
3811
3826
  file: i
3812
3827
  });
3813
- return this.readFile(i, n), n;
3828
+ return this.readFile(i, a), a;
3814
3829
  });
3815
3830
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3816
3831
  this.$emit("update:modelValue", t), this.$emit("input", t);
3817
3832
  },
3818
3833
  // For file input.
3819
3834
  readFile(e, t) {
3820
- const i = new FileReader(), s = typeof this.preview == "string", a = e.type && e.type.startsWith("image/");
3821
- this.preview && !s && a ? i.addEventListener("load", (l) => {
3822
- t.preview = l.target.result;
3823
- }) : delete t.preview, i.addEventListener("progress", (l) => {
3824
- 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);
3825
3841
  }), i.readAsDataURL(e);
3826
3842
  }
3827
3843
  },
3828
3844
  mounted() {
3829
3845
  setTimeout(() => {
3830
- 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);
3831
3848
  }, 400);
3832
3849
  },
3833
3850
  watch: {
@@ -3836,8 +3853,8 @@ const el = {
3836
3853
  }
3837
3854
  }
3838
3855
  }, tl = /* @__PURE__ */ C(el, [["render", Zi]]);
3839
- function il(e, t, i, s, a, l) {
3840
- 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);
3841
3858
  return o(), u("ul", {
3842
3859
  class: m(["w-list", l.classes])
3843
3860
  }, [
@@ -3845,7 +3862,7 @@ function il(e, t, i, s, a, l) {
3845
3862
  class: m(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3846
3863
  key: h
3847
3864
  }, [
3848
- i.icon ? (o(), b(n, {
3865
+ i.icon ? (o(), b(a, {
3849
3866
  key: 0,
3850
3867
  class: "w-list__item-bullet"
3851
3868
  }, {
@@ -4029,14 +4046,14 @@ const ll = {
4029
4046
  };
4030
4047
  },
4031
4048
  liLabelProps(e, t, i) {
4032
- const s = this.$slots[`item.${t + 1}`] || this.$slots.item, a = () => {
4049
+ const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
4033
4050
  if (!e.disabled) {
4034
4051
  const d = this.cleanLi(e);
4035
4052
  this.$emit("item-click", d), this.$emit("item-select", d);
4036
4053
  }
4037
4054
  }, l = this.isSelectable && ((d) => {
4038
4055
  d.stopPropagation(), !e.disabled && this.selectItem(e);
4039
- }), n = this.isSelectable && ((d) => {
4056
+ }), a = this.isSelectable && ((d) => {
4040
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));
4041
4058
  }), r = {
4042
4059
  class: this.liLabelClasses(e),
@@ -4047,10 +4064,10 @@ const ll = {
4047
4064
  };
4048
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) => {
4049
4066
  const h = d.target.querySelector('input[type="checkbox"]');
4050
- h && (h.focus(), h.click()), a();
4051
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
4052
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), a();
4053
- }) : (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;
4054
4071
  },
4055
4072
  // Convert the received items selection to array if it is a unique value.
4056
4073
  // Also accept objects if returnObject is true and convert to the object's value.
@@ -4063,7 +4080,7 @@ const ll = {
4063
4080
  emitSelection() {
4064
4081
  const e = this.selectedItems.map((i) => {
4065
4082
  if (!this.returnObject) return i._value;
4066
- const { _value: s, _selected: a, ...l } = i;
4083
+ const { _value: s, _selected: n, ...l } = i;
4067
4084
  return l;
4068
4085
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
4069
4086
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -4074,8 +4091,8 @@ const ll = {
4074
4091
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
4075
4092
  },
4076
4093
  cleanLi(e) {
4077
- const { _index: t, _value: i, _label: s, _selected: a, _focused: l, ...n } = e;
4078
- return n;
4094
+ const { _index: t, _value: i, _label: s, _selected: n, _focused: l, ...a } = e;
4095
+ return a;
4079
4096
  },
4080
4097
  refreshListItems() {
4081
4098
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -4203,30 +4220,30 @@ const ll = {
4203
4220
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4204
4221
  getActivatorCoordinates() {
4205
4222
  const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
4206
- let a = { top: e, left: t, width: i, height: s };
4223
+ let n = { top: e, left: t, width: i, height: s };
4207
4224
  if (!this.fixed) {
4208
- const { top: l, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4209
- a = {
4210
- ...a,
4225
+ const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4226
+ n = {
4227
+ ...n,
4211
4228
  top: e - l + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
4212
- 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"))
4213
4230
  };
4214
4231
  }
4215
- return a;
4232
+ return n;
4216
4233
  },
4217
4234
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4218
4235
  computeDetachableCoords() {
4219
4236
  let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
4220
4237
  if (!this.detachableEl) return;
4221
4238
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
4222
- const a = window.getComputedStyle(this.detachableEl, null);
4239
+ const n = window.getComputedStyle(this.detachableEl, null);
4223
4240
  switch (this.position) {
4224
4241
  case "top": {
4225
- 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);
4226
4243
  break;
4227
4244
  }
4228
4245
  case "bottom": {
4229
- 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);
4230
4247
  break;
4231
4248
  }
4232
4249
  case "left": {
@@ -4234,8 +4251,8 @@ const ll = {
4234
4251
  break;
4235
4252
  }
4236
4253
  case "right": {
4237
- 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.
4238
- 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")));
4239
4256
  break;
4240
4257
  }
4241
4258
  }
@@ -4257,7 +4274,8 @@ const ll = {
4257
4274
  });
4258
4275
  },
4259
4276
  removeFromDOM() {
4260
- 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);
4261
4279
  },
4262
4280
  // If the activator is external, add event listeners to the document and check the target is
4263
4281
  // the activator when toggling.
@@ -4266,9 +4284,9 @@ const ll = {
4266
4284
  const e = typeof this.activator == "string";
4267
4285
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
4268
4286
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
4269
- const s = (a) => {
4287
+ const s = (n) => {
4270
4288
  var l;
4271
- (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);
4272
4290
  };
4273
4291
  document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
4274
4292
  });
@@ -4294,8 +4312,8 @@ const ll = {
4294
4312
  }
4295
4313
  }
4296
4314
  };
4297
- function ol(e, t, i, s, a, l) {
4298
- const n = $("w-card"), r = $("w-overlay");
4315
+ function ol(e, t, i, s, n, l) {
4316
+ const a = $("w-card"), r = $("w-overlay");
4299
4317
  return o(), u(v, null, [
4300
4318
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
4301
4319
  T(O, {
@@ -4315,7 +4333,7 @@ function ol(e, t, i, s, a, l) {
4315
4333
  style: l.styles
4316
4334
  }), [
4317
4335
  c(e.$slots, "default")
4318
- ], 16)) : e.detachableVisible ? (o(), b(n, _({
4336
+ ], 16)) : e.detachableVisible ? (o(), b(a, _({
4319
4337
  key: 1,
4320
4338
  class: "w-menu",
4321
4339
  ref: "detachable"
@@ -4499,7 +4517,7 @@ const al = {
4499
4517
  mouseenter: (t) => {
4500
4518
  this.hoveringActivator = !0, this.open(t);
4501
4519
  },
4502
- mouseleave: (t) => {
4520
+ mouseleave: () => {
4503
4521
  this.hoveringActivator = !1, setTimeout(() => {
4504
4522
  this.hoveringMenu || this.close();
4505
4523
  }, 10);
@@ -4540,19 +4558,19 @@ const al = {
4540
4558
  }
4541
4559
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
4542
4560
  }, nl = /* @__PURE__ */ C(al, [["render", ol]]);
4543
- function rl(e, t, i, s, a, l) {
4544
- const n = $("w-alert");
4561
+ function rl(e, t, i, s, n, l) {
4562
+ const a = $("w-alert");
4545
4563
  return o(), b(O, {
4546
4564
  name: l.transitionName,
4547
4565
  appear: ""
4548
4566
  }, {
4549
4567
  default: f(() => [
4550
- a.show ? (o(), u("div", {
4568
+ n.show ? (o(), u("div", {
4551
4569
  key: 0,
4552
4570
  class: m(["w-notification", l.classes]),
4553
4571
  style: R(l.styles)
4554
4572
  }, [
4555
- T(n, _(l.alertProps, {
4573
+ T(a, _(l.alertProps, {
4556
4574
  class: l.alertClasses,
4557
4575
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
4558
4576
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
@@ -4692,8 +4710,8 @@ const dl = {
4692
4710
  }
4693
4711
  }
4694
4712
  }, ul = /* @__PURE__ */ C(dl, [["render", rl]]);
4695
- function hl(e, t, i, s, a, l) {
4696
- const n = ke("focus");
4713
+ function hl(e, t, i, s, n, l) {
4714
+ const a = ke("focus");
4697
4715
  return o(), b(O, {
4698
4716
  name: "fade",
4699
4717
  appear: "",
@@ -4712,7 +4730,7 @@ function hl(e, t, i, s, a, l) {
4712
4730
  c(e.$slots, "default")
4713
4731
  ], 38)), [
4714
4732
  [re, e.showOverlay],
4715
- [n]
4733
+ [a]
4716
4734
  ]) : p("", !0)
4717
4735
  ]),
4718
4736
  _: 3
@@ -4777,7 +4795,7 @@ const cl = {
4777
4795
  }
4778
4796
  }
4779
4797
  }, pl = /* @__PURE__ */ C(cl, [["render", hl]]), ml = { class: "w-parallax" };
4780
- function fl(e, t, i, s, a, l) {
4798
+ function fl(e, t, i, s, n, l) {
4781
4799
  return o(), u("div", ml);
4782
4800
  }
4783
4801
  const gl = {
@@ -4786,7 +4804,7 @@ const gl = {
4786
4804
  emits: [],
4787
4805
  data: () => ({})
4788
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"];
4789
- function vl(e, t, i, s, a, l) {
4807
+ function vl(e, t, i, s, n, l) {
4790
4808
  return o(), u("div", {
4791
4809
  class: m(["w-progress", l.classes]),
4792
4810
  style: R(l.styles)
@@ -4901,11 +4919,11 @@ const Q = 40, Cl = Q / 2, Sl = Math.round(Q * 3.14 * 100) / 100, Bl = {
4901
4919
  }
4902
4920
  }
4903
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"];
4904
- function Rl(e, t, i, s, a, l) {
4922
+ function Rl(e, t, i, s, n, l) {
4905
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 }, {
4906
4924
  valid: e.valid,
4907
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
4908
- onReset: t[4] || (t[4] = (n) => {
4925
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4926
+ onReset: t[4] || (t[4] = (a) => {
4909
4927
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4910
4928
  }),
4911
4929
  class: l.classes
@@ -4920,8 +4938,8 @@ function Rl(e, t, i, s, a, l) {
4920
4938
  disabled: e.isDisabled || e.isReadonly || null,
4921
4939
  required: e.required || null,
4922
4940
  tabindex: e.tabindex || null,
4923
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
4924
- 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)),
4925
4943
  "aria-checked": e.inputValue || "false",
4926
4944
  role: "radio"
4927
4945
  }, null, 40, $l),
@@ -4943,7 +4961,7 @@ function Rl(e, t, i, s, a, l) {
4943
4961
  ], 64)) : p("", !0),
4944
4962
  w("div", {
4945
4963
  class: m(["w-radio__input", this.color]),
4946
- onClick: t[2] || (t[2] = (n) => {
4964
+ onClick: t[2] || (t[2] = (a) => {
4947
4965
  e.$refs.input.focus(), e.$refs.input.click();
4948
4966
  })
4949
4967
  }, null, 2),
@@ -5033,8 +5051,8 @@ const xl = {
5033
5051
  }
5034
5052
  }
5035
5053
  }, Ol = /* @__PURE__ */ C(xl, [["render", Rl]]), Pl = ["innerHTML"];
5036
- function zl(e, t, i, s, a, l) {
5037
- const n = $("w-radio");
5054
+ function zl(e, t, i, s, n, l) {
5055
+ const a = $("w-radio");
5038
5056
  return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
5039
5057
  valid: e.valid,
5040
5058
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
@@ -5046,7 +5064,7 @@ function zl(e, t, i, s, a, l) {
5046
5064
  class: l.classes
5047
5065
  }), {
5048
5066
  default: f(() => [
5049
- (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, _({
5050
5068
  key: d,
5051
5069
  "model-value": r.value === i.modelValue,
5052
5070
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -5130,12 +5148,12 @@ const Ml = {
5130
5148
  }
5131
5149
  }
5132
5150
  }, El = /* @__PURE__ */ C(Ml, [["render", zl]]), Al = ["id", "name", "value"], Wl = ["disabled", "onMouseenter", "onClick", "tabindex"];
5133
- function Nl(e, t, i, s, a, l) {
5134
- 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 }, {
5135
5153
  valid: e.valid,
5136
- "onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
5137
- onReset: t[5] || (t[5] = (n) => {
5138
- 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);
5139
5157
  }),
5140
5158
  class: l.classes
5141
5159
  }), {
@@ -5144,26 +5162,26 @@ function Nl(e, t, i, s, a, l) {
5144
5162
  id: e.inputName,
5145
5163
  name: e.inputName,
5146
5164
  type: "hidden",
5147
- value: a.rating
5165
+ value: n.rating
5148
5166
  }, null, 8, Al),
5149
- (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 }, [
5150
5168
  e.$slots.item ? c(e.$slots, "item", {
5151
5169
  key: 0,
5152
- index: n + 1
5170
+ index: a + 1
5153
5171
  }) : p("", !0),
5154
5172
  w("button", {
5155
- class: m(["w-rating__button", l.buttonClasses(n)]),
5173
+ class: m(["w-rating__button", l.buttonClasses(a)]),
5156
5174
  disabled: e.isDisabled || e.isReadonly,
5157
- onMouseenter: (r) => a.hover = n,
5158
- onMouseleave: t[0] || (t[0] = (r) => a.hover = 0),
5159
- 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),
5160
5178
  onFocus: t[1] || (t[1] = (...r) => l.onFocus && l.onFocus(...r)),
5161
5179
  onBlur: t[2] || (t[2] = (...r) => l.onBlur && l.onBlur(...r)),
5162
5180
  onKeydown: t[3] || (t[3] = (...r) => l.onKeydown && l.onKeydown(...r)),
5163
5181
  type: "button",
5164
- tabindex: n === 1 ? 0 : -1
5182
+ tabindex: a === 1 ? 0 : -1
5165
5183
  }, [
5166
- n - 1 === ~~a.rating && a.rating - ~~a.rating ? (o(), u("i", {
5184
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
5167
5185
  key: 0,
5168
5186
  class: m(["w-icon", `${i.icon} ${i.color}`]),
5169
5187
  role: "icon",
@@ -5176,7 +5194,7 @@ function Nl(e, t, i, s, a, l) {
5176
5194
  _: 3
5177
5195
  }, 16, ["valid", "class"]);
5178
5196
  }
5179
- const Kl = {
5197
+ const Nl = {
5180
5198
  name: "w-rating",
5181
5199
  mixins: [E],
5182
5200
  props: {
@@ -5270,22 +5288,22 @@ const Kl = {
5270
5288
  this.rating = parseFloat(e);
5271
5289
  }
5272
5290
  }
5273
- }, Dl = /* @__PURE__ */ C(Kl, [["render", Nl]]);
5274
- function Hl(e, t, i, s, a, l) {
5291
+ }, Dl = /* @__PURE__ */ C(Nl, [["render", Kl]]);
5292
+ function Hl(e, t, i, s, n, l) {
5275
5293
  return o(), u(v, null, [
5276
5294
  w("div", _({
5277
5295
  class: ["w-scrollable", l.scrollableClasses],
5278
5296
  ref: "scrollable",
5279
- onMouseenter: t[0] || (t[0] = (...n) => l.onMouseEnter && l.onMouseEnter(...n)),
5280
- onMouseleave: t[1] || (t[1] = (...n) => l.onMouseLeave && l.onMouseLeave(...n)),
5281
- 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))
5282
5300
  }, e.$attrs, { style: l.scrollableStyles }), [
5283
5301
  c(e.$slots, "default")
5284
5302
  ], 16),
5285
5303
  w("div", {
5286
5304
  class: m(["w-scrollbar", l.scrollbarClasses]),
5287
5305
  ref: "track",
5288
- onMousedown: t[3] || (t[3] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n))
5306
+ onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
5289
5307
  }, [
5290
5308
  w("div", {
5291
5309
  class: "w-scrollbar__thumb",
@@ -5374,8 +5392,8 @@ const Fl = {
5374
5392
  methods: {
5375
5393
  onTrackMouseDown(e) {
5376
5394
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
5377
- const { top: t, left: i, width: s, height: a } = this.$refs.track.getBoundingClientRect();
5378
- 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 });
5379
5397
  },
5380
5398
  onDrag(e) {
5381
5399
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -5389,14 +5407,14 @@ const Fl = {
5389
5407
  onMouseLeave() {
5390
5408
  this.scrollable.hovered = !1;
5391
5409
  },
5392
- onResize(e) {
5410
+ onResize() {
5393
5411
  },
5394
5412
  onMouseWheel(e) {
5395
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()));
5396
5414
  },
5397
5415
  computeScroll(e) {
5398
- const { top: t, left: i, width: s, height: a } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, n = this.isHorizontal ? s : a;
5399
- 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));
5400
5418
  },
5401
5419
  scroll() {
5402
5420
  var e;
@@ -5415,8 +5433,8 @@ const Fl = {
5415
5433
  key: 0,
5416
5434
  class: "w-select__selection-slot"
5417
5435
  }, Yl = ["innerHTML"], Gl = ["value", "name"];
5418
- function Jl(e, t, i, s, a, l) {
5419
- 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");
5420
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 }, {
5421
5439
  valid: e.valid,
5422
5440
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
@@ -5458,7 +5476,7 @@ function Jl(e, t, i, s, a, l) {
5458
5476
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
5459
5477
  }, [
5460
5478
  c(e.$slots, "icon-left", {}, () => [
5461
- i.innerIconLeft ? (o(), b(n, {
5479
+ i.innerIconLeft ? (o(), b(a, {
5462
5480
  key: 0,
5463
5481
  class: "w-select__icon w-select__icon--inner-left",
5464
5482
  tag: "label",
@@ -5499,7 +5517,7 @@ function Jl(e, t, i, s, a, l) {
5499
5517
  ], 2)) : p("", !0)
5500
5518
  ], 64)) : p("", !0),
5501
5519
  c(e.$slots, "icon-right", {}, () => [
5502
- i.innerIconRight ? (o(), b(n, {
5520
+ i.innerIconRight ? (o(), b(a, {
5503
5521
  key: 0,
5504
5522
  class: "w-select__icon w-select__icon--inner-right",
5505
5523
  tag: "label",
@@ -5715,18 +5733,18 @@ const Ql = {
5715
5733
  const i = this.selectItems;
5716
5734
  if (t === void 0) t = e.keyCode === 38 ? i.length - 1 : 0;
5717
5735
  else {
5718
- const a = e.keyCode === 38 ? -1 : 1;
5719
- t = (t + i.length + a) % i.length;
5736
+ const n = e.keyCode === 38 ? -1 : 1;
5737
+ t = (t + i.length + n) % i.length;
5720
5738
  }
5721
5739
  let s = !1;
5722
5740
  if (i[t].disabled) {
5723
- const a = e.keyCode === 38 ? -1 : 1;
5724
- let l = (t + a + i.length) % i.length;
5725
- 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;
5726
5744
  let r = 0;
5727
- for (; r < n && i[l].disabled; )
5728
- l = (l + i.length + a) % i.length, r++;
5729
- 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;
5730
5748
  }
5731
5749
  s || this.onInput(i[t]);
5732
5750
  }
@@ -5736,14 +5754,14 @@ const Ql = {
5736
5754
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
5737
5755
  },
5738
5756
  focusItemOnQuickLookup(e) {
5739
- var s, a, l;
5757
+ var s, n, l;
5740
5758
  this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
5741
5759
  const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
5742
- (n) => !n.disabled && n[this.itemLabelKey].match(t)
5760
+ (a) => !a.disabled && a[this.itemLabelKey].match(t)
5743
5761
  ) + 1;
5744
5762
  if (i) {
5745
- const n = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5746
- (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();
5747
5765
  }
5748
5766
  },
5749
5767
  // The items are given by the w-list component.
@@ -5807,11 +5825,11 @@ const Ql = {
5807
5825
  key: 0,
5808
5826
  class: "w-slider__step-labels"
5809
5827
  }, rs = ["onClick"], ds = ["for"], us = ["for", "innerHTML"];
5810
- function hs(e, t, i, s, a, l) {
5828
+ function hs(e, t, i, s, n, l) {
5811
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 }, {
5812
5830
  valid: e.valid,
5813
- "onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
5814
- onReset: t[9] || (t[9] = (n) => {
5831
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5832
+ onReset: t[9] || (t[9] = (a) => {
5815
5833
  e.rangeValuePercent = 0, l.updateRangeValueScaled();
5816
5834
  }),
5817
5835
  wrap: e.formRegister || null,
@@ -5834,8 +5852,8 @@ function hs(e, t, i, s, a, l) {
5834
5852
  w("div", {
5835
5853
  class: m(["w-slider__track", l.trackClasses]),
5836
5854
  ref: "track",
5837
- onMousedown: t[4] || (t[4] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5838
- 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)),
5839
5857
  role: "slider",
5840
5858
  "aria-label": "Slider",
5841
5859
  "aria-valuemin": l.minVal,
@@ -5863,10 +5881,10 @@ function hs(e, t, i, s, a, l) {
5863
5881
  "aria-readonly": e.isReadonly ? "true" : "false",
5864
5882
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5865
5883
  onKeydown: [
5866
- t[0] || (t[0] = A((n) => l.onKeyDown(n, -1), ["left"])),
5867
- 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"]))
5868
5886
  ],
5869
- onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
5887
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5870
5888
  onClick: t[3] || (t[3] = M(() => {
5871
5889
  }, ["prevent"]))
5872
5890
  }, null, 42, ss),
@@ -5891,18 +5909,18 @@ function hs(e, t, i, s, a, l) {
5891
5909
  i.stepLabels && i.step ? (o(), u("div", ns, [
5892
5910
  w("div", {
5893
5911
  class: "w-slider__step-label",
5894
- onClick: t[6] || (t[6] = (n) => l.onStepLabelClick(0))
5912
+ onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5895
5913
  }, S(this.minVal), 1),
5896
- (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", {
5897
5915
  class: "w-slider__step-label",
5898
- key: n,
5899
- onClick: (r) => l.onStepLabelClick(n * (100 / l.numberOfSteps)),
5900
- style: R(`left: ${n * (100 / l.numberOfSteps)}%`)
5901
- }, 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)),
5902
5920
  ~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
5903
5921
  key: 0,
5904
5922
  class: "w-slider__step-label",
5905
- onClick: t[7] || (t[7] = (n) => l.onStepLabelClick(100)),
5923
+ onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
5906
5924
  style: { left: "100%" }
5907
5925
  }, S(this.maxVal), 1)) : p("", !0)
5908
5926
  ])) : p("", !0)
@@ -6061,7 +6079,7 @@ const cs = {
6061
6079
  }
6062
6080
  }
6063
6081
  }, ps = /* @__PURE__ */ C(cs, [["render", hs]]), ms = { key: 0 };
6064
- function fs(e, t, i, s, a, l) {
6082
+ function fs(e, t, i, s, n, l) {
6065
6083
  return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
6066
6084
  key: 0,
6067
6085
  class: m(["w-spinner", l.classes]),
@@ -6109,7 +6127,7 @@ const gs = {
6109
6127
  }
6110
6128
  }
6111
6129
  }, bs = /* @__PURE__ */ C(gs, [["render", fs]]);
6112
- function ys(e, t, i, s, a, l) {
6130
+ function ys(e, t, i, s, n, l) {
6113
6131
  return o(), u("div", {
6114
6132
  class: m(["w-steps", l.classes])
6115
6133
  }, null, 2);
@@ -6137,13 +6155,13 @@ const ws = {
6137
6155
  key: 1,
6138
6156
  class: "w-switch__thumb"
6139
6157
  }, _s = ["for"];
6140
- function $s(e, t, i, s, a, l) {
6141
- const n = $("w-progress");
6142
- 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 }, {
6143
6161
  valid: e.valid,
6144
6162
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
6145
6163
  onReset: t[4] || (t[4] = (r) => {
6146
- e.$emit("update:modelValue", a.isOn = null), e.$emit("input", null);
6164
+ e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
6147
6165
  }),
6148
6166
  class: l.classes,
6149
6167
  style: e.$attrs.style
@@ -6154,7 +6172,7 @@ function $s(e, t, i, s, a, l) {
6154
6172
  id: `w-switch--${e._.uid}`,
6155
6173
  type: "checkbox",
6156
6174
  name: e.inputName,
6157
- checked: a.isOn,
6175
+ checked: n.isOn,
6158
6176
  disabled: e.isDisabled || e.isReadonly || null,
6159
6177
  readonly: e.isReadonly || null,
6160
6178
  "aria-readonly": e.isReadonly ? "true" : "false",
@@ -6163,7 +6181,7 @@ function $s(e, t, i, s, a, l) {
6163
6181
  }, l.attrs, {
6164
6182
  onChange: t[0] || (t[0] = (r) => l.onInput()),
6165
6183
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
6166
- "aria-checked": a.isOn || "false",
6184
+ "aria-checked": n.isOn || "false",
6167
6185
  role: "switch"
6168
6186
  }), null, 16, vs),
6169
6187
  l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
@@ -6187,7 +6205,7 @@ function $s(e, t, i, s, a, l) {
6187
6205
  c(e.$slots, "track")
6188
6206
  ])) : p("", !0),
6189
6207
  e.$slots.thumb || i.loading ? (o(), u("div", Bs, [
6190
- i.loading ? (o(), b(n, _({
6208
+ i.loading ? (o(), b(a, _({
6191
6209
  key: 0,
6192
6210
  circle: "",
6193
6211
  color: "inherit"
@@ -6286,7 +6304,7 @@ const Is = {
6286
6304
  }
6287
6305
  }
6288
6306
  }, Vs = /* @__PURE__ */ C(Is, [["render", $s]]), Ts = { class: "w-tabs__content" };
6289
- function Ls(e, t, i, s, a, l) {
6307
+ function Ls(e, t, i, s, n, l) {
6290
6308
  return o(), u("div", Ts, [
6291
6309
  c(e.$slots, "default", { item: i.item })
6292
6310
  ]);
@@ -6302,8 +6320,8 @@ const Rs = {
6302
6320
  key: 0,
6303
6321
  class: "w-tabs__content-wrap"
6304
6322
  }, Es = ["innerHTML"], As = ["innerHTML"];
6305
- function Ws(e, t, i, s, a, l) {
6306
- const n = $("tab-content");
6323
+ function Ws(e, t, i, s, n, l) {
6324
+ const a = $("tab-content");
6307
6325
  return o(), u("div", {
6308
6326
  class: m(["w-tabs", l.tabsClasses])
6309
6327
  }, [
@@ -6352,7 +6370,7 @@ function Ws(e, t, i, s, a, l) {
6352
6370
  name: l.transitionName
6353
6371
  }, {
6354
6372
  default: f(() => [
6355
- (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, {
6356
6374
  key: r._uid,
6357
6375
  item: r,
6358
6376
  class: m(l.contentClasses)
@@ -6390,7 +6408,7 @@ function Ws(e, t, i, s, a, l) {
6390
6408
  (o(), b(Oe, {
6391
6409
  exclude: i.keepAlive ? "" : "tab-content"
6392
6410
  }, [
6393
- (o(), b(n, {
6411
+ (o(), b(a, {
6394
6412
  key: e.activeTabUid,
6395
6413
  item: l.activeTab,
6396
6414
  class: m(i.contentClass)
@@ -6425,7 +6443,7 @@ function Ws(e, t, i, s, a, l) {
6425
6443
  ], 2);
6426
6444
  }
6427
6445
  let ye = 0;
6428
- const Ns = {
6446
+ const Ks = {
6429
6447
  name: "w-tabs",
6430
6448
  props: {
6431
6449
  modelValue: { type: [Number, String] },
@@ -6559,11 +6577,11 @@ const Ns = {
6559
6577
  updateSlider(e = !0) {
6560
6578
  if (e) {
6561
6579
  const t = this.$refs["tabs-bar"];
6562
- this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
6580
+ this.activeTabEl = t == null ? void 0 : t.querySelector(".w-tabs__bar-item--active");
6563
6581
  }
6564
6582
  if (!this.fillBar && this.activeTabEl) {
6565
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: a } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
6566
- 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`;
6567
6585
  } else
6568
6586
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
6569
6587
  },
@@ -6571,7 +6589,7 @@ const Ns = {
6571
6589
  var t, i;
6572
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(() => {
6573
6591
  const s = this.$refs["tabs-bar"];
6574
- 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" });
6575
6593
  }));
6576
6594
  },
6577
6595
  // Return the original item (so there is no `_index`, etc.).
@@ -6604,7 +6622,7 @@ const Ns = {
6604
6622
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
6605
6623
  }
6606
6624
  }
6607
- }, 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 = {
6608
6626
  key: 0,
6609
6627
  class: "w-table__progress-bar"
6610
6628
  }, Ys = ["colspan"], Gs = {
@@ -6629,8 +6647,8 @@ const Ns = {
6629
6647
  key: 0,
6630
6648
  class: "w-table__pagination w-pagination"
6631
6649
  }, mo = { class: "pages-wrap" }, fo = { class: "w-pagination__results" };
6632
- function go(e, t, i, s, a, l) {
6633
- 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");
6634
6652
  return o(), u("div", {
6635
6653
  class: m(["w-table w-table--wrap", l.classes])
6636
6654
  }, [
@@ -6655,7 +6673,7 @@ function go(e, t, i, s, a, l) {
6655
6673
  key: V,
6656
6674
  onClick: (I) => !e.colResizing.dragging && g.sortable !== !1 && l.sortTable(g)
6657
6675
  }, [
6658
- g.sortable !== !1 && g.align === "right" ? (o(), b(n, {
6676
+ g.sortable !== !1 && g.align === "right" ? (o(), b(a, {
6659
6677
  key: 0,
6660
6678
  class: m(["w-table__header-sort", l.headerSortClasses(g)])
6661
6679
  }, {
@@ -6677,7 +6695,7 @@ function go(e, t, i, s, a, l) {
6677
6695
  innerHTML: g.label || ""
6678
6696
  }, null, 8, qs))
6679
6697
  ], 64)) : p("", !0),
6680
- g.sortable !== !1 && g.align !== "right" ? (o(), b(n, {
6698
+ g.sortable !== !1 && g.align !== "right" ? (o(), b(a, {
6681
6699
  key: 2,
6682
6700
  class: m(["w-table__header-sort", l.headerSortClasses(g)])
6683
6701
  }, {
@@ -6946,15 +6964,9 @@ const we = 15, bo = {
6946
6964
  // - total
6947
6965
  pagination: {
6948
6966
  type: [Boolean, Object, String],
6949
- validator: (e) => {
6950
- if (e) {
6951
- if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
6952
- return D(
6953
- "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 }."
6954
- ), !1;
6955
- } else return !0;
6956
- return !0;
6957
- }
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
6958
6970
  },
6959
6971
  dark: { type: Boolean },
6960
6972
  light: { type: Boolean }
@@ -7073,26 +7085,26 @@ const we = 15, bo = {
7073
7085
  doSelectRow(e, t) {
7074
7086
  const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
7075
7087
  if (i) {
7076
- const a = this.expandedRowsByUid[e._uid] === void 0;
7077
- 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(
7078
7090
  "row-expand",
7079
7091
  {
7080
7092
  item: e,
7081
7093
  index: t,
7082
- expanded: a,
7094
+ expanded: n,
7083
7095
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
7084
7096
  }
7085
7097
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
7086
7098
  } else if (s) {
7087
- let a = !1;
7099
+ let n = !1;
7088
7100
  const l = this.selectedRowsByUid[e._uid] === void 0;
7089
- 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(
7090
7102
  "row-select",
7091
7103
  {
7092
7104
  item: e,
7093
7105
  index: t,
7094
7106
  selected: l,
7095
- selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
7107
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
7096
7108
  }
7097
7109
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
7098
7110
  }
@@ -7121,15 +7133,15 @@ const we = 15, bo = {
7121
7133
  * (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
7122
7134
  */
7123
7135
  onResizerMouseMove(e) {
7124
- 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;
7125
7137
  this.colResizing.dragging = !0;
7126
- const n = e.pageX - t, r = a + l, d = a + n, h = l - n;
7127
- i.style.width = a + n + "px", s.style.width = l - n + "px";
7128
- 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;
7129
7141
  if (y) {
7130
7142
  const g = Math.max(i.offsetWidth, we);
7131
- i.style.width = g + "px", s.style.width = r - g + "px";
7132
- } 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`);
7133
7145
  },
7134
7146
  onResizerMouseUp() {
7135
7147
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -7141,12 +7153,12 @@ const we = 15, bo = {
7141
7153
  }, 0);
7142
7154
  },
7143
7155
  initPagination() {
7144
- var s, a;
7145
- 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 }];
7146
7158
  t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
7147
7159
  label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
7148
7160
  value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
7149
- })), 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);
7150
7162
  const i = this.paginationConfig.itemsPerPageOptions.shift();
7151
7163
  this.paginationConfig.itemsPerPageOptions.push(i), this.updatePaginationConfig({
7152
7164
  itemsPerPage: e,
@@ -7191,13 +7203,13 @@ const we = 15, bo = {
7191
7203
  * While waiting for the call to resolve, nothing in the table will change.
7192
7204
  */
7193
7205
  async callApiFetch() {
7194
- 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;
7195
7207
  return await this.fetch({
7196
7208
  page: e,
7197
7209
  start: t,
7198
7210
  end: i || s,
7199
7211
  total: s,
7200
- itemsPerPage: a || s,
7212
+ itemsPerPage: n || s,
7201
7213
  sorting: this.activeSorting
7202
7214
  });
7203
7215
  }
@@ -7232,13 +7244,13 @@ const we = 15, bo = {
7232
7244
  }
7233
7245
  }
7234
7246
  }, yo = /* @__PURE__ */ C(bo, [["render", go]]), wo = ["role", "aria-pressed", "tabindex"];
7235
- function ko(e, t, i, s, a, l) {
7247
+ function ko(e, t, i, s, n, l) {
7236
7248
  return o(), u("span", {
7237
7249
  class: m(["w-tag", l.classes]),
7238
- onClick: t[1] || (t[1] = (n) => {
7250
+ onClick: t[1] || (t[1] = (a) => {
7239
7251
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7240
7252
  }),
7241
- onKeypress: t[2] || (t[2] = A((n) => {
7253
+ onKeypress: t[2] || (t[2] = A((a) => {
7242
7254
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7243
7255
  }, ["enter"])),
7244
7256
  role: i.modelValue !== -1 && "button",
@@ -7250,7 +7262,7 @@ function ko(e, t, i, s, a, l) {
7250
7262
  i.closable && i.modelValue ? (o(), u("i", {
7251
7263
  key: 0,
7252
7264
  class: "w-icon w-tag__closable wi-cross",
7253
- onClick: t[0] || (t[0] = M((n) => {
7265
+ onClick: t[0] || (t[0] = M((a) => {
7254
7266
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7255
7267
  }, ["stop"])),
7256
7268
  role: "icon",
@@ -7308,14 +7320,14 @@ const vo = {
7308
7320
  }
7309
7321
  }
7310
7322
  }, Co = /* @__PURE__ */ C(vo, [["render", ko]]), So = ["for"], Bo = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], _o = ["for"];
7311
- function $o(e, t, i, s, a, l) {
7312
- const n = $("w-icon");
7313
- 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 }, {
7314
7326
  valid: e.valid,
7315
7327
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
7316
7328
  wrap: l.hasLabel && i.labelPosition !== "inside",
7317
7329
  onReset: t[7] || (t[7] = (r) => {
7318
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
7330
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
7319
7331
  }),
7320
7332
  class: l.classes,
7321
7333
  style: e.$attrs.style
@@ -7338,7 +7350,7 @@ function $o(e, t, i, s, a, l) {
7338
7350
  c(e.$slots, "icon-left", {
7339
7351
  inputId: `w-textarea--${e._.uid}`
7340
7352
  }, () => [
7341
- i.innerIconLeft ? (o(), b(n, {
7353
+ i.innerIconLeft ? (o(), b(a, {
7342
7354
  key: 0,
7343
7355
  class: "w-textarea__icon w-textarea__icon--inner-left",
7344
7356
  tag: "label",
@@ -7354,7 +7366,7 @@ function $o(e, t, i, s, a, l) {
7354
7366
  W(w("textarea", _({
7355
7367
  class: "w-textarea__textarea",
7356
7368
  ref: "textarea",
7357
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.inputValue = r)
7369
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
7358
7370
  }, l.attrs, {
7359
7371
  onInput: t[2] || (t[2] = (...r) => l.onInput && l.onInput(...r)),
7360
7372
  onFocus: t[3] || (t[3] = (...r) => l.onFocus && l.onFocus(...r)),
@@ -7370,7 +7382,7 @@ function $o(e, t, i, s, a, l) {
7370
7382
  required: e.required || null,
7371
7383
  tabindex: e.tabindex || null
7372
7384
  }), null, 16, Bo), [
7373
- [ve, a.inputValue]
7385
+ [ve, n.inputValue]
7374
7386
  ]),
7375
7387
  i.labelPosition === "inside" && l.showLabelInside ? (o(), u(v, { key: 0 }, [
7376
7388
  e.$slots.default || i.label ? (o(), u("label", {
@@ -7385,7 +7397,7 @@ function $o(e, t, i, s, a, l) {
7385
7397
  c(e.$slots, "icon-right", {
7386
7398
  inputId: `w-textarea--${e._.uid}`
7387
7399
  }, () => [
7388
- i.innerIconRight ? (o(), b(n, {
7400
+ i.innerIconRight ? (o(), b(a, {
7389
7401
  key: 0,
7390
7402
  class: "w-textarea__icon w-textarea__icon--inner-right",
7391
7403
  tag: "label",
@@ -7519,7 +7531,7 @@ const Io = {
7519
7531
  computeHeight() {
7520
7532
  this.$refs.textarea.style.height = "";
7521
7533
  const e = (this.$refs.textarea.scrollHeight - this.paddingY) / this.lineHeight, t = Math.max(e, this.rows) * this.lineHeight + this.paddingY;
7522
- this.$refs.textarea.style.height = t + "px";
7534
+ this.$refs.textarea.style.height = `${t}px`;
7523
7535
  },
7524
7536
  getLineHeight() {
7525
7537
  const e = window.getComputedStyle(this.$refs.textarea, null);
@@ -7541,38 +7553,38 @@ const Io = {
7541
7553
  }
7542
7554
  }
7543
7555
  }, Vo = /* @__PURE__ */ C(Io, [["render", $o]]), To = ["innerHTML"], Lo = ["innerHTML"];
7544
- function Ro(e, t, i, s, a, l) {
7556
+ function Ro(e, t, i, s, n, l) {
7545
7557
  return o(), u("ul", {
7546
7558
  class: m(["w-timeline", l.classes])
7547
7559
  }, [
7548
- (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", {
7549
7561
  class: "w-timeline-item",
7550
7562
  key: r
7551
7563
  }, [
7552
- (o(), b(L(n[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7553
- 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 }])
7554
7566
  }, {
7555
7567
  default: f(() => [
7556
- B(S(n[i.itemIconKey] || i.icon), 1)
7568
+ B(S(a[i.itemIconKey] || i.icon), 1)
7557
7569
  ]),
7558
7570
  _: 2
7559
7571
  }, 1032, ["class"])),
7560
7572
  e.$slots[`item.${r + 1}`] ? c(e.$slots, `item.${r + 1}`, {
7561
7573
  key: 1,
7562
- item: n,
7574
+ item: a,
7563
7575
  index: r + 1
7564
7576
  }) : c(e.$slots, "item", {
7565
7577
  key: 0,
7566
- item: n,
7578
+ item: a,
7567
7579
  index: r + 1
7568
7580
  }, () => [
7569
7581
  w("div", {
7570
- class: m(["w-timeline-item__title", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }]),
7571
- 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]
7572
7584
  }, null, 10, To),
7573
7585
  w("div", {
7574
7586
  class: "w-timeline-item__content",
7575
- innerHTML: n[i.itemContentKey]
7587
+ innerHTML: a[i.itemContentKey]
7576
7588
  }, null, 8, Lo)
7577
7589
  ])
7578
7590
  ]))), 128))
@@ -7601,7 +7613,7 @@ const xo = {
7601
7613
  }
7602
7614
  }
7603
7615
  }, Oo = /* @__PURE__ */ C(xo, [["render", Ro]]);
7604
- function Po(e, t, i, s, a, l) {
7616
+ function Po(e, t, i, s, n, l) {
7605
7617
  return o(), u("div", {
7606
7618
  class: m(["w-toolbar", l.classes]),
7607
7619
  style: R(l.styles)
@@ -7632,12 +7644,12 @@ const zo = {
7632
7644
  // Return the height value if defined, or false otherwise.
7633
7645
  toolbarHeight() {
7634
7646
  const e = this.height;
7635
- return e && parseInt(e) == e ? e + "px" : e;
7647
+ return e && parseInt(e) === e ? `${e}px` : e;
7636
7648
  },
7637
7649
  // Return the width value if defined, or false otherwise.
7638
7650
  toolbarWidth() {
7639
7651
  const e = this.width;
7640
- return e && parseInt(e) == e ? e + "px" : e;
7652
+ return e && parseInt(e) === e ? `${e}px` : e;
7641
7653
  },
7642
7654
  classes() {
7643
7655
  return {
@@ -7661,7 +7673,7 @@ const zo = {
7661
7673
  }
7662
7674
  }
7663
7675
  }, Mo = /* @__PURE__ */ C(zo, [["render", Po]]);
7664
- function Eo(e, t, i, s, a, l) {
7676
+ function Eo(e, t, i, s, n, l) {
7665
7677
  return o(), u(v, null, [
7666
7678
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
7667
7679
  T(O, {
@@ -7780,7 +7792,7 @@ const Ao = {
7780
7792
  mouseenter: (i) => {
7781
7793
  this.hoveringActivator = !0, this.open(i);
7782
7794
  },
7783
- mouseleave: (i) => {
7795
+ mouseleave: () => {
7784
7796
  this.hoveringActivator = !1, this.close();
7785
7797
  }
7786
7798
  } : (this.enableTouch || this.showOnClick) && (e = { click: this.toggle }), e;
@@ -7819,7 +7831,7 @@ const Ao = {
7819
7831
  }
7820
7832
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7821
7833
  }, Wo = /* @__PURE__ */ C(Ao, [["render", Eo]]);
7822
- function No(e, t, i, s, a, l) {
7834
+ function Ko(e, t, i, s, n, l) {
7823
7835
  return o(), b(O, _({ name: "bounce" }, e.$props), {
7824
7836
  default: f(() => [
7825
7837
  c(e.$slots, "default")
@@ -7827,14 +7839,14 @@ function No(e, t, i, s, a, l) {
7827
7839
  _: 3
7828
7840
  }, 16);
7829
7841
  }
7830
- const Ko = {
7842
+ const No = {
7831
7843
  name: "w-transition-bounce",
7832
7844
  props: {
7833
7845
  appear: { type: Boolean },
7834
7846
  duration: { type: [Number, String] }
7835
7847
  }
7836
- }, Do = /* @__PURE__ */ C(Ko, [["render", No]]);
7837
- function Ho(e, t, i, s, a, l) {
7848
+ }, Do = /* @__PURE__ */ C(No, [["render", Ko]]);
7849
+ function Ho(e, t, i, s, n, l) {
7838
7850
  return o(), b(O, {
7839
7851
  name: "expand",
7840
7852
  mode: "out-in",
@@ -7923,7 +7935,7 @@ const Fo = {
7923
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";
7924
7936
  },
7925
7937
  applyShowStyles(e) {
7926
- 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`;
7927
7939
  },
7928
7940
  applyOriginalStyles(e) {
7929
7941
  e.style.cssText = this.el.originalStyles;
@@ -7946,7 +7958,7 @@ const Fo = {
7946
7958
  }
7947
7959
  }
7948
7960
  }, jo = /* @__PURE__ */ C(Fo, [["render", Ho]]);
7949
- function Uo(e, t, i, s, a, l) {
7961
+ function Uo(e, t, i, s, n, l) {
7950
7962
  return o(), b(O, _({ name: "fade" }, e.$props), {
7951
7963
  default: f(() => [
7952
7964
  c(e.$slots, "default")
@@ -7961,7 +7973,7 @@ const qo = {
7961
7973
  duration: { type: [Number, String] }
7962
7974
  }
7963
7975
  }, Xo = /* @__PURE__ */ C(qo, [["render", Uo]]);
7964
- function Yo(e, t, i, s, a, l) {
7976
+ function Yo(e, t, i, s, n, l) {
7965
7977
  return o(), b(O, _({ name: "scale" }, e.$props), {
7966
7978
  default: f(() => [
7967
7979
  c(e.$slots, "default")
@@ -7976,7 +7988,7 @@ const Go = {
7976
7988
  duration: { type: [Number, String] }
7977
7989
  }
7978
7990
  }, Jo = /* @__PURE__ */ C(Go, [["render", Yo]]);
7979
- function Qo(e, t, i, s, a, l) {
7991
+ function Qo(e, t, i, s, n, l) {
7980
7992
  return o(), b(O, _({ name: "scale-fade" }, e.$props), {
7981
7993
  default: f(() => [
7982
7994
  c(e.$slots, "default")
@@ -7991,7 +8003,7 @@ const Zo = {
7991
8003
  duration: { type: [Number, String] }
7992
8004
  }
7993
8005
  }, ea = /* @__PURE__ */ C(Zo, [["render", Qo]]);
7994
- function ta(e, t, i, s, a, l) {
8006
+ function ta(e, t, i, s, n, l) {
7995
8007
  return o(), b(O, _({ name: l.transitionName }, e.$props), {
7996
8008
  default: f(() => [
7997
8009
  c(e.$slots, "default")
@@ -8018,7 +8030,7 @@ const ia = {
8018
8030
  }
8019
8031
  }
8020
8032
  }, la = /* @__PURE__ */ C(ia, [["render", ta]]);
8021
- function sa(e, t, i, s, a, l) {
8033
+ function sa(e, t, i, s, n, l) {
8022
8034
  return o(), b(O, _({ name: l.transitionName }, e.$props), {
8023
8035
  default: f(() => [
8024
8036
  c(e.$slots, "default")
@@ -8045,7 +8057,7 @@ const oa = {
8045
8057
  }
8046
8058
  }
8047
8059
  }, aa = /* @__PURE__ */ C(oa, [["render", sa]]);
8048
- function na(e, t, i, s, a, l) {
8060
+ function na(e, t, i, s, n, l) {
8049
8061
  return o(), b(O, _({ name: "twist" }, e.$props), {
8050
8062
  default: f(() => [
8051
8063
  c(e.$slots, "default")
@@ -8063,8 +8075,8 @@ const ra = {
8063
8075
  key: 1,
8064
8076
  class: "ml1"
8065
8077
  };
8066
- function ca(e, t, i, s, a, l) {
8067
- 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);
8068
8080
  return o(), u("ul", {
8069
8081
  class: m(["w-tree", l.classes])
8070
8082
  }, [
@@ -8081,7 +8093,7 @@ function ca(e, t, i, s, a, l) {
8081
8093
  tabindex: l.getTreeItemTabindex(h)
8082
8094
  }), {
8083
8095
  default: f(() => [
8084
- (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, {
8085
8097
  key: 0,
8086
8098
  class: "w-tree__item-expand",
8087
8099
  onClick: M((k) => !i.disabled && !h.disabled && l.onLabelClick(h, k), ["stop"]),
@@ -8220,8 +8232,8 @@ const pa = {
8220
8232
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
8221
8233
  return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8222
8234
  Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
8223
- var l, n;
8224
- const a = {
8235
+ var l, a;
8236
+ const n = {
8225
8237
  originalItem: i,
8226
8238
  // Store the original item to return it on event emits.
8227
8239
  _uid: this.depth.toString() + (s + 1),
@@ -8233,12 +8245,12 @@ const pa = {
8233
8245
  disabled: i[this.itemDisabledKey],
8234
8246
  selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
8235
8247
  depth: this.depth,
8236
- 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]),
8237
8249
  parent: this.parent || null,
8238
8250
  path: []
8239
8251
  // Ancestors path from root to leaf including self.
8240
8252
  };
8241
- a.path = this.getTreeItemPath(a), this.currentDepthItems.push(a);
8253
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
8242
8254
  });
8243
8255
  },
8244
8256
  getTreeItemComponent(e) {
@@ -8284,8 +8296,8 @@ const pa = {
8284
8296
  },
8285
8297
  onLabelKeydown(e, t) {
8286
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))) {
8287
- 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;
8288
- [...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);
8289
8301
  }
8290
8302
  t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8291
8303
  },
@@ -8324,7 +8336,7 @@ const pa = {
8324
8336
  return !1;
8325
8337
  },
8326
8338
  focusTreeItem(e) {
8327
- e && e.querySelector(".w-tree__item-label").focus();
8339
+ e == null || e.querySelector(".w-tree__item-label").focus();
8328
8340
  },
8329
8341
  itemIcon(e) {
8330
8342
  return e.originalItem[this.itemIconKey] || !e.children && !e.branch && this.leafIcon || (e.children || e.branch) && (e.open && this.branchOpenIcon || this.branchIcon);
@@ -8396,7 +8408,7 @@ const pa = {
8396
8408
  WSteps: ks,
8397
8409
  WSwitch: Vs,
8398
8410
  WTable: yo,
8399
- WTabs: Ks,
8411
+ WTabs: Ns,
8400
8412
  WTag: Co,
8401
8413
  WTextarea: Vo,
8402
8414
  WTimeline: Oo,