wave-ui 3.13.2 → 3.13.4

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.
@@ -1,16 +1,16 @@
1
1
  var ke = Object.defineProperty;
2
2
  var ve = (e, t, i) => t in e ? ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var F = (e, t, i) => (ve(e, typeof t != "symbol" ? t + "" : t, i), i), ne = (e, t, i) => {
3
+ var H = (e, t, i) => (ve(e, typeof t != "symbol" ? t + "" : t, i), i), ae = (e, t, i) => {
4
4
  if (!t.has(e))
5
5
  throw TypeError("Cannot " + i);
6
6
  };
7
- var Y = (e, t, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get(e)), Z = (e, t, i) => {
7
+ var X = (e, t, i) => (ae(e, t, "read from private field"), i ? i.call(e) : t.get(e)), Q = (e, t, i) => {
8
8
  if (t.has(e))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  t instanceof WeakSet ? t.add(e) : t.set(e, i);
11
- }, ee = (e, t, i, s) => (ne(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
12
- import { reactive as J, resolveComponent as $, openBlock as o, createBlock as g, Teleport as Ce, createVNode as I, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as L, mergeProps as B, createElementVNode as y, createCommentVNode as p, createApp as Se, defineComponent as Be, inject as _e, withKeys as E, withModifiers as z, renderSlot as c, createTextVNode as S, toDisplayString as C, toHandlers as H, Transition as x, normalizeStyle as R, resolveDynamicComponent as T, normalizeProps as ie, resolveDirective as ge, withDirectives as A, createSlots as Q, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
- const Ie = J({
11
+ }, Z = (e, t, i, o) => (ae(e, t, "write to private field"), o ? o.call(e, i) : t.set(e, i), i);
12
+ import { reactive as G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as Ce, createVNode as I, TransitionGroup as se, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as R, mergeProps as B, createElementVNode as y, createCommentVNode as p, createApp as Se, defineComponent as Be, inject as _e, withKeys as E, withModifiers as z, renderSlot as c, createTextVNode as S, toDisplayString as C, normalizeStyle as L, toHandlers as me, Transition as O, resolveDynamicComponent as T, normalizeProps as te, resolveDirective as ge, withDirectives as W, createSlots as J, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
+ const Ie = G({
14
14
  on: "#app",
15
15
  // Sets the Wave UI root node. If not found, will default to `body`.
16
16
  breakpoints: {
@@ -75,36 +75,36 @@ const Ie = J({
75
75
  t = Object.assign(t, e);
76
76
  else
77
77
  for (const i in e) {
78
- const s = e[i];
79
- typeof s == "object" ? ye(e[i], t[i]) : t[i] = s;
78
+ const o = e[i];
79
+ typeof o == "object" ? ye(e[i], t[i]) : t[i] = o;
80
80
  }
81
81
  return t;
82
- }, j = (e) => console.warn(`Wave UI: ${e}`), te = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((i) => (i = +`0x${i}` + t, (i < 0 ? 0 : i > 255 ? 255 : i).toString(16).padStart(2, 0))).join(""), Te = (e) => {
82
+ }, F = (e) => console.warn(`Wave UI: ${e}`), ee = (e) => console.error(`Wave UI: ${e}`), ne = (e, t) => "#" + e.slice(1).match(/../g).map((i) => (i = +`0x${i}` + t, (i < 0 ? 0 : i > 255 ? 255 : i).toString(16).padStart(2, 0))).join(""), Te = (e) => {
83
83
  ["light", "dark"].forEach((t) => {
84
84
  const i = e.colors[t];
85
85
  i.shades = {};
86
- for (let s in i) {
87
- if (s === "shades")
86
+ for (let o in i) {
87
+ if (o === "shades")
88
88
  continue;
89
- s = { label: s, color: i[s].replace("#", "") };
90
- const a = s.color;
91
- a.length === 3 && (s.color = a[0] + "" + a[0] + a[1] + a[1] + a[2] + a[2]);
89
+ o = { label: o, color: i[o].replace("#", "") };
90
+ const n = o.color;
91
+ n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
92
92
  for (let l = 1; l <= 3; l++) {
93
- const n = re(`#${s.color}`, l * 40), r = re(`#${s.color}`, -l * 40);
94
- i.shades[`${s.label}-light${l}`] = n, i.shades[`${s.label}-dark${l}`] = r;
93
+ const a = ne(`#${o.color}`, l * 40), r = ne(`#${o.color}`, -l * 40);
94
+ i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
95
95
  }
96
96
  }
97
97
  });
98
- }, de = (e, t) => {
98
+ }, re = (e, t) => {
99
99
  const i = {
100
- ...t.reduce((s, a) => {
101
- s[a.label] = a.color;
102
- const l = (a.shades || []).reduce((n, r) => (n[r.label] = r.color, n), {});
103
- return { ...s, ...l };
100
+ ...t.reduce((o, n) => {
101
+ o[n.label] = n.color;
102
+ const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
103
+ return { ...o, ...l };
104
104
  }, { ...e, ...e.shades })
105
105
  };
106
106
  return delete i.shades, i;
107
- }, ue = [
107
+ }, de = [
108
108
  {
109
109
  label: "pink",
110
110
  color: "#e91e63",
@@ -451,45 +451,45 @@ const Ie = J({
451
451
  { label: "white", color: "#fff" },
452
452
  { label: "transparent", color: "transparent" },
453
453
  { label: "inherit", color: "inherit" }
454
- ], U = {
454
+ ], j = {
455
455
  cssScope: ".w-app",
456
456
  baseIncrement: 4
457
457
  };
458
- let le = { keys: [], values: [] }, he = null;
458
+ let ie = { keys: [], values: [] }, ue = null;
459
459
  const Le = (e, t) => {
460
460
  let i = "";
461
- const s = {}, { info: a, warning: l, success: n, error: r, shades: d, ...h } = e, { cssScope: w } = U;
461
+ const o = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: w } = j;
462
462
  for (const V in h)
463
463
  i += `${w} .${V}--bg{background-color:var(--w-${V}-color)}${w} .${V}{color:var(--w-${V}-color)}`;
464
464
  for (const V in d)
465
465
  i += `${w} .${V}--bg{background-color:${d[V]}}${w} .${V}{color:${d[V]}}`;
466
- const _ = { ...h, info: a, warning: l, success: n, error: r };
466
+ const _ = { ...h, info: n, warning: l, success: a, error: r };
467
467
  for (const V in _)
468
- s[V] = _[V];
468
+ o[V] = _[V];
469
469
  if (t)
470
470
  for (const V in d)
471
- s[V] = d[V];
471
+ o[V] = d[V];
472
472
  let b = "";
473
- return Object.entries(s).forEach(([V, P]) => {
473
+ return Object.entries(o).forEach(([V, P]) => {
474
474
  b += `--w-${V}-color: ${P};`;
475
475
  }), `:root{${b}}${i}`;
476
476
  }, Re = (e, t) => {
477
477
  let i = "";
478
- const { cssScope: s } = U;
479
- return e.forEach(({ min: a, label: l }) => {
478
+ const { cssScope: o } = j;
479
+ return e.forEach(({ min: n, label: l }) => {
480
480
  if (l === "xs")
481
- for (let n = 0; n < t; n++)
482
- i += `${s} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
481
+ for (let a = 0; a < t; a++)
482
+ i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
483
483
  else {
484
- i += `@media(min-width:${a}px){`;
485
- for (let n = 0; n < t; n++)
486
- i += `${s} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
484
+ i += `@media(min-width:${n}px){`;
485
+ for (let a = 0; a < t; a++)
486
+ i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
487
487
  i += "}";
488
488
  }
489
489
  }), i;
490
490
  }, Pe = (e) => {
491
491
  let t = "";
492
- const { cssScope: i, baseIncrement: s } = U, a = [
492
+ const { cssScope: i, baseIncrement: o } = j, n = [
493
493
  "show{display:block}",
494
494
  "hide{display:none}",
495
495
  "d-flex{display:flex}",
@@ -524,66 +524,66 @@ const Le = (e, t) => {
524
524
  "justify-space-around{justify-content:space-around}",
525
525
  "justify-space-evenly{justify-content:space-evenly}"
526
526
  ], l = Array(12).fill();
527
- return e.forEach(({ label: n, min: r }) => {
528
- n !== "xs" && (t += `@media(min-width:${r}px){` + a.map((d) => `${i} .${n}u-${d}`).join("") + // w-grid columns and gap.
529
- 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}}`);
530
- }), e.forEach(({ label: n, min: r, max: d }) => {
531
- t += `@media (min-width:${r}px) and (max-width:${d}px){` + a.map((h) => `${i} .${n}-${h}`).join("") + // w-grid columns and gap.
532
- l.map((h, w) => `.w-grid.${n}-columns${w + 1}{grid-template-columns:repeat(${w + 1},1fr);}`).join("") + l.map((h, w) => `.w-flex.${n}-gap${w + 1},.w-grid.${n}-gap${w + 1}{gap:${(w + 1) * s}px;}`).join("") + `.w-flex.${n}-gap0,.w-flex.${n}-gap0{gap:0}}`;
533
- }), e.forEach(({ label: n, max: r }) => {
534
- n !== "xl" && (t += `@media (max-width:${r}px){` + a.map((d) => `${i} .${n}d-${d}`).join("") + // w-grid columns and gap.
535
- 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}}`);
527
+ return e.forEach(({ label: a, min: r }) => {
528
+ a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + // w-grid columns and gap.
529
+ 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) * o}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
530
+ }), e.forEach(({ label: a, min: r, max: d }) => {
531
+ t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + // w-grid columns and gap.
532
+ l.map((h, w) => `.w-grid.${a}-columns${w + 1}{grid-template-columns:repeat(${w + 1},1fr);}`).join("") + l.map((h, w) => `.w-flex.${a}-gap${w + 1},.w-grid.${a}-gap${w + 1}{gap:${(w + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
533
+ }), e.forEach(({ label: a, max: r }) => {
534
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
535
+ 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) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
536
536
  }), t;
537
- }, ce = (e) => {
538
- const t = window.innerWidth, i = le.values.slice(0);
539
- i.push(t), i.sort((a, l) => a - l);
540
- const s = le.keys[i.indexOf(t)] || "xl";
541
- s !== he && (he = s, e.breakpoint = {
542
- name: s,
543
- xs: s === "xs",
544
- sm: s === "sm",
545
- md: s === "md",
546
- lg: s === "lg",
547
- xl: s === "xl",
537
+ }, he = (e) => {
538
+ const t = window.innerWidth, i = ie.values.slice(0);
539
+ i.push(t), i.sort((n, l) => n - l);
540
+ const o = ie.keys[i.indexOf(t)] || "xl";
541
+ o !== ue && (ue = o, e.breakpoint = {
542
+ name: o,
543
+ xs: o === "xs",
544
+ sm: o === "sm",
545
+ md: o === "md",
546
+ lg: o === "lg",
547
+ xl: o === "xl",
548
548
  width: t
549
549
  }), e.breakpoint.width = window.innerWidth;
550
- }, xe = (e) => {
550
+ }, Oe = (e) => {
551
551
  const { config: t } = e;
552
- if (le = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
552
+ if (ie = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
553
553
  const i = document.createElement("style");
554
554
  i.id = "wave-ui-styles", i.innerHTML = ze(t);
555
- const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
556
- s ? s.before(i) : document.head.appendChild(i);
555
+ const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
556
+ o ? o.before(i) : document.head.appendChild(i);
557
557
  }
558
- ce(e), window.addEventListener("resize", () => ce(e));
559
- }, Oe = (e, t) => {
558
+ he(e), window.addEventListener("resize", () => he(e));
559
+ }, xe = (e, t) => {
560
560
  if (!document.getElementById("wave-ui-colors")) {
561
561
  const i = document.createElement("style");
562
562
  i.id = "wave-ui-colors", i.innerHTML = Le(e, t);
563
- const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
564
- s ? s.before(i) : document.head.appendChild(i);
563
+ const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
564
+ o ? o.before(i) : document.head.appendChild(i);
565
565
  }
566
566
  }, ze = (e) => {
567
- const t = Object.entries(e.breakpoints), i = t.map(([l, n], r) => {
567
+ const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
568
568
  const [, d = 0] = t[r - 1] || [];
569
- return { label: l, min: d ? d + 1 : 0, max: n };
570
- }), s = getComputedStyle(document.documentElement);
571
- U.cssScope = s.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
572
- let a = "";
573
- return a += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (a += Pe(i)), a;
569
+ return { label: l, min: d ? d + 1 : 0, max: a };
570
+ }), o = getComputedStyle(document.documentElement);
571
+ j.cssScope = o.getPropertyValue("--w-css-scope"), j.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
572
+ let n = "";
573
+ return n += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (n += Pe(i)), n;
574
574
  }, Me = ["innerHTML"];
575
- function Ee(e, t, i, s, a, l) {
576
- const n = $("w-alert");
577
- return o(), g(Ce, { to: ".w-app" }, [
578
- I(oe, {
575
+ function Ee(e, t, i, o, n, l) {
576
+ const a = $("w-alert");
577
+ return s(), g(Ce, { to: ".w-app" }, [
578
+ I(se, {
579
579
  class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
580
580
  tag: "div",
581
581
  name: l.transition,
582
582
  appear: ""
583
583
  }, {
584
584
  default: m(() => [
585
- (o(!0), u(k, null, L(l.notifications, (r) => (o(), u(k, null, [
586
- r._value ? (o(), g(n, B({
585
+ (s(!0), u(k, null, R(l.notifications, (r) => (s(), u(k, null, [
586
+ r._value ? (s(), g(a, B({
587
587
  class: "white--bg",
588
588
  key: r._uid,
589
589
  modelValue: r._value,
@@ -606,10 +606,10 @@ function Ee(e, t, i, s, a, l) {
606
606
  }
607
607
  const v = (e, t) => {
608
608
  const i = e.__vccOpts || e;
609
- for (const [s, a] of t)
610
- i[s] = a;
609
+ for (const [o, n] of t)
610
+ i[o] = n;
611
611
  return i;
612
- }, We = {
612
+ }, Ae = {
613
613
  name: "w-notification-manager",
614
614
  computed: {
615
615
  conf() {
@@ -627,28 +627,28 @@ const v = (e, t) => {
627
627
  },
628
628
  methods: {
629
629
  notifProps(e) {
630
- const { _value: t, _uid: i, message: s, timeout: a, ...l } = e;
630
+ const { _value: t, _uid: i, message: o, timeout: n, ...l } = e;
631
631
  return l.dismiss && (l.dismiss = !0), l;
632
632
  }
633
633
  }
634
- }, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
634
+ }, We = /* @__PURE__ */ v(Ae, [["render", Ee]]);
635
635
  var D;
636
636
  const K = class K {
637
637
  constructor() {
638
- F(this, "notifications");
638
+ H(this, "notifications");
639
639
  // Private fields.
640
- F(this, "_uid");
640
+ H(this, "_uid");
641
641
  // A unique ID for each notification.
642
- F(this, "_notificationDefaults");
643
- if (Y(K, D))
644
- return Y(K, D);
642
+ H(this, "_notificationDefaults");
643
+ if (X(K, D))
644
+ return X(K, D);
645
645
  this.notifications = [], this._uid = 0, this._notificationDefaults = {
646
646
  _uid: 0,
647
647
  _value: !0,
648
648
  message: "",
649
649
  timeout: 4e3,
650
650
  dismiss: !0
651
- }, ee(K, D, this);
651
+ }, Z(K, D, this);
652
652
  }
653
653
  notify(...t) {
654
654
  let i = {
@@ -658,11 +658,11 @@ const K = class K {
658
658
  if (typeof t[0] == "object")
659
659
  i = { ...i, ...t[0] };
660
660
  else {
661
- const [s, a, l] = t;
661
+ const [o, n, l] = t;
662
662
  i = {
663
663
  ...i,
664
- message: s || "",
665
- [a === void 0 ? "info" : a]: !0,
664
+ message: o || "",
665
+ [n === void 0 ? "info" : n]: !0,
666
666
  timeout: l || l === 0 ? parseFloat(l) : 4e3
667
667
  };
668
668
  }
@@ -672,51 +672,51 @@ const K = class K {
672
672
  this.notifications = this.notifications.filter((i) => i._uid !== t);
673
673
  }
674
674
  };
675
- D = new WeakMap(), Z(K, D, void 0);
676
- let se = K;
675
+ D = new WeakMap(), Q(K, D, void 0);
676
+ let le = K;
677
677
  const Ke = (e, t, i) => {
678
- const s = document.createElement("div");
679
- e.appendChild(s);
680
- const a = Se(Be({
681
- ...Ae,
678
+ const o = document.createElement("div");
679
+ e.appendChild(o);
680
+ const n = Se(Be({
681
+ ...We,
682
682
  inject: ["$waveui"]
683
683
  })).provide("$waveui", i);
684
684
  for (const l in t) {
685
- const n = t[l];
686
- a.component(n.name, { ...n, inject: ["$waveui"] });
685
+ const a = t[l];
686
+ n.component(a.name, { ...a, inject: ["$waveui"] });
687
687
  }
688
- a.mount(s), s.remove();
688
+ n.mount(o), o.remove();
689
689
  };
690
- let pe = !1;
690
+ let ce = !1;
691
691
  const Ne = (e) => {
692
692
  const t = window.matchMedia("(prefers-color-scheme: dark)");
693
693
  e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
694
694
  e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
695
695
  });
696
696
  }, De = (e, t) => {
697
- var i, s;
698
- for (const a in t)
699
- if ((i = e.props) != null && i[a])
700
- e.props[a].default = t[a];
697
+ var i, o;
698
+ for (const n in t)
699
+ if ((i = e.props) != null && i[n])
700
+ e.props[n].default = t[n];
701
701
  else {
702
702
  let l = !1;
703
703
  if (Array.isArray(e.mixins) && e.mixins.length) {
704
- for (const n of e.mixins)
705
- if ((s = n == null ? void 0 : n.props) != null && s[a]) {
706
- n.props[a].default = t[a], l = !0;
704
+ for (const a of e.mixins)
705
+ if ((o = a == null ? void 0 : a.props) != null && o[n]) {
706
+ a.props[n].default = t[n], l = !0;
707
707
  break;
708
708
  }
709
- l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${a}\`.`);
709
+ l || F(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
710
710
  continue;
711
711
  }
712
712
  }
713
713
  };
714
- var X;
714
+ var q;
715
715
  const N = class N {
716
716
  constructor(t, i = {}) {
717
717
  // Exposed as a global object and also `app.provide`d.
718
718
  // Accessible from this.$waveui, or inject('$waveui').
719
- F(this, "$waveui", {
719
+ H(this, "$waveui", {
720
720
  breakpoint: {
721
721
  name: "",
722
722
  xs: !1,
@@ -740,64 +740,62 @@ const N = class N {
740
740
  },
741
741
  // Callable from this.$waveui.
742
742
  switchTheme(t, i = !1) {
743
- var a, l;
744
- 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);
745
- const s = this.config.colors[this.theme];
746
- Oe(s, this.config.css.colorShadeCssVariables), this.colors = de(s, ue);
743
+ var n, l;
744
+ this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || l.call(n);
745
+ const o = this.config.colors[this.theme];
746
+ xe(o, this.config.css.colorShadeCssVariables), this.colors = re(o, de);
747
747
  }
748
748
  });
749
- if (Y(N, X)) {
750
- console.warn("Wave UI is already instantiated.");
749
+ if (X(N, q))
751
750
  return;
751
+ if (this.$waveui._notificationManager = new le(), i.theme || (i.theme = "light"), i.colors) {
752
+ const a = { ...i.colors };
753
+ i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
752
754
  }
753
- if (this.$waveui._notificationManager = new se(), i.theme || (i.theme = "light"), i.colors) {
754
- const n = { ...i.colors };
755
- i.colors.light || (i.colors.light = n), i.colors.dark || (i.colors.dark = n), i.colors = { light: i.colors.light, dark: i.colors.dark };
756
- }
757
- let { components: s, ...a } = i;
758
- a = this.$waveui.config = ye(a), a.css.colorShades && Te(a);
759
- const l = J(this.$waveui);
760
- t.config.globalProperties.$waveui = l, t.provide("$waveui", l), a.theme !== "auto" && (this.$waveui.colors = de(a.colors[a.theme], ue));
755
+ let { components: o, ...n } = i;
756
+ n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
757
+ const l = G(this.$waveui);
758
+ t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = re(n.colors[n.theme], de));
761
759
  }
762
760
  static install(t, i = {}) {
763
- var a;
761
+ var n;
764
762
  t.directive("focus", {
765
763
  // Wait for the next tick to focus the newly mounted element.
766
764
  mounted: (l) => setTimeout(() => l.focus(), 0)
767
765
  }), t.directive("scroll", {
768
- mounted: (l, n) => {
766
+ mounted: (l, a) => {
769
767
  const r = (d) => {
770
- n.value(d, l) && window.removeEventListener("scroll", r);
768
+ a.value(d, l) && window.removeEventListener("scroll", r);
771
769
  };
772
770
  window.addEventListener("scroll", r);
773
771
  }
774
772
  });
775
- const { components: s = {} } = i || {};
776
- for (const l in s) {
777
- const n = s[l];
778
- (a = i.presets) != null && a[n.name] && De(n, i.presets[n.name]), t.component(n.name, n);
773
+ const { components: o = {} } = i || {};
774
+ for (const l in o) {
775
+ const a = o[l];
776
+ (n = i.presets) != null && n[a.name] && De(a, i.presets[a.name]), t.component(a.name, a);
779
777
  }
780
778
  t.mixin({
781
779
  // Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
782
780
  beforeMount() {
783
- if (!pe) {
784
- pe = !0;
785
- const l = _e("$waveui"), { config: n } = l, r = document.querySelector(n.on) || document.body;
786
- r.classList.add("w-app"), n.theme === "auto" ? Ne(l) : l.switchTheme(n.theme, !0), xe(l), Ke(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
781
+ if (!ce) {
782
+ ce = !0;
783
+ const l = _e("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
784
+ r.classList.add("w-app"), a.theme === "auto" ? Ne(l) : l.switchTheme(a.theme, !0), Oe(l), Ke(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
787
785
  }
788
786
  }
789
- }), new N(t, i), ee(N, X, !0);
787
+ }), new N(t, i), Z(N, q, !0);
790
788
  }
791
789
  };
792
- X = new WeakMap(), Z(N, X, !1);
793
- let q = N;
790
+ q = new WeakMap(), Q(N, q, !1);
791
+ let U = N;
794
792
  const He = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
795
- function qe(e, t, i, s, a, l) {
796
- const n = $("w-button"), r = $("w-transition-expand");
797
- return o(), u("div", {
793
+ function qe(e, t, i, o, n, l) {
794
+ const a = $("w-button"), r = $("w-transition-expand");
795
+ return s(), u("div", {
798
796
  class: f(["w-accordion", l.accordionClasses])
799
797
  }, [
800
- (o(!0), u(k, null, L(e.accordionItems, (d, h) => (o(), u("div", {
798
+ (s(!0), u(k, null, R(e.accordionItems, (d, h) => (s(), u("div", {
801
799
  class: f(["w-accordion__item", l.itemClasses(d)]),
802
800
  key: h,
803
801
  "aria-expanded": d._expanded ? "true" : "false"
@@ -809,7 +807,7 @@ function qe(e, t, i, s, a, l) {
809
807
  onKeypress: E((w) => !d._disabled && l.toggleItem(d, w), ["enter"]),
810
808
  tabindex: !d._disabled && 0
811
809
  }, [
812
- i.expandIcon && !i.expandIconRight ? (o(), g(n, {
810
+ i.expandIcon && !i.expandIconRight ? (s(), g(a, {
813
811
  key: 0,
814
812
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
815
813
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -837,7 +835,7 @@ function qe(e, t, i, s, a, l) {
837
835
  innerHTML: d[i.itemTitleKey]
838
836
  }, null, 8, je)
839
837
  ]),
840
- i.expandIcon && i.expandIconRight ? (o(), g(n, {
838
+ i.expandIcon && i.expandIconRight ? (s(), g(a, {
841
839
  key: 3,
842
840
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
843
841
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -853,7 +851,7 @@ function qe(e, t, i, s, a, l) {
853
851
  duration: i.duration
854
852
  }, {
855
853
  default: m(() => [
856
- d._expanded ? (o(), u("div", {
854
+ d._expanded ? (s(), u("div", {
857
855
  key: 0,
858
856
  class: f(["w-accordion__item-content", i.contentClass])
859
857
  }, [
@@ -924,8 +922,8 @@ const Xe = {
924
922
  },
925
923
  methods: {
926
924
  toggleItem(e, t) {
927
- e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((s) => s._index !== e._index && (s._expanded = !1));
928
- const i = this.accordionItems.map((s) => s._expanded || !1);
925
+ e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
926
+ const i = this.accordionItems.map((o) => o._expanded || !1);
929
927
  this.$emit("update:modelValue", i), this.$emit("input", i), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
930
928
  },
931
929
  onEndOfCollapse(e) {
@@ -968,14 +966,14 @@ const Xe = {
968
966
  }
969
967
  }
970
968
  }, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
971
- function Je(e, t, i, s, a, l) {
972
- const n = $("w-icon"), r = $("w-button");
973
- return a.show ? (o(), u("div", {
969
+ function Je(e, t, i, o, n, l) {
970
+ const a = $("w-icon"), r = $("w-button");
971
+ return n.show ? (s(), u("div", {
974
972
  key: 0,
975
973
  class: f(["w-alert", l.classes])
976
974
  }, [
977
- l.type || i.icon || i.dismiss ? (o(), u(k, { key: 0 }, [
978
- l.type || i.icon ? (o(), g(n, {
975
+ l.type || i.icon || i.dismiss ? (s(), u(k, { key: 0 }, [
976
+ l.type || i.icon ? (s(), g(a, {
979
977
  key: 0,
980
978
  class: "w-alert__icon mr2"
981
979
  }, {
@@ -987,11 +985,11 @@ function Je(e, t, i, s, a, l) {
987
985
  y("div", Ge, [
988
986
  c(e.$slots, "default")
989
987
  ]),
990
- i.dismiss ? (o(), g(r, {
988
+ i.dismiss ? (s(), g(r, {
991
989
  key: 1,
992
990
  class: "w-alert__dismiss",
993
991
  onClick: t[0] || (t[0] = (d) => {
994
- e.$emit("update:modelValue", a.show = !1), e.$emit("input", !1), e.$emit("close", !1);
992
+ e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
995
993
  }),
996
994
  icon: "wi-cross",
997
995
  color: "inherit",
@@ -1085,13 +1083,14 @@ const Qe = {
1085
1083
  }
1086
1084
  }
1087
1085
  }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = ["value"], st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
1088
- function nt(e, t, i, s, a, l) {
1089
- const n = $("w-button"), r = $("w-transition-slide-fade");
1090
- return o(), u("div", {
1086
+ function nt(e, t, i, o, n, l) {
1087
+ const a = $("w-button"), r = $("w-transition-slide-fade");
1088
+ return s(), u("div", {
1091
1089
  class: f(["w-autocomplete", l.classes]),
1092
- onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d))
1090
+ onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
1091
+ style: L(e.$attrs.style)
1093
1092
  }, [
1094
- e.selection.length ? (o(!0), u(k, { key: 0 }, L(e.selection, (d, h) => (o(), u("div", et, [
1093
+ e.selection.length ? (s(!0), u(k, { key: 0 }, R(e.selection, (d, h) => (s(), u("div", et, [
1095
1094
  c(e.$slots, "selection", {
1096
1095
  item: d,
1097
1096
  unselect: (w) => l.unselectItem(w)
@@ -1099,7 +1098,7 @@ function nt(e, t, i, s, a, l) {
1099
1098
  y("span", {
1100
1099
  innerHTML: d[i.itemLabelKey]
1101
1100
  }, null, 8, tt),
1102
- I(n, {
1101
+ I(a, {
1103
1102
  onClick: z((w) => l.unselectItem(h), ["stop"]),
1104
1103
  icon: "wi-cross",
1105
1104
  xs: "",
@@ -1108,7 +1107,7 @@ function nt(e, t, i, s, a, l) {
1108
1107
  }, null, 8, ["onClick"])
1109
1108
  ])
1110
1109
  ]))), 256)) : p("", !0),
1111
- !e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
1110
+ !e.selection.length && !e.keywords && i.placeholder ? (s(), u("div", {
1112
1111
  key: 1,
1113
1112
  class: "w-autocomplete__placeholder",
1114
1113
  innerHTML: i.placeholder
@@ -1117,10 +1116,10 @@ function nt(e, t, i, s, a, l) {
1117
1116
  class: "w-autocomplete__input",
1118
1117
  ref: "input",
1119
1118
  value: e.keywords
1120
- }, H(l.inputEventListeners, !0)), null, 16, lt),
1119
+ }, me(l.inputEventListeners, !0), l.inputAttrs), null, 16, lt),
1121
1120
  I(r, null, {
1122
1121
  default: m(() => [
1123
- e.menuOpen ? (o(), u("ul", {
1122
+ e.menuOpen ? (s(), u("ul", {
1124
1123
  key: 0,
1125
1124
  class: "w-autocomplete__menu",
1126
1125
  ref: "menu",
@@ -1129,7 +1128,7 @@ function nt(e, t, i, s, a, l) {
1129
1128
  onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
1130
1129
  onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
1131
1130
  }, [
1132
- (o(!0), u(k, null, L(l.filteredItems, (d, h) => (o(), u("li", {
1131
+ (s(!0), u(k, null, R(l.filteredItems, (d, h) => (s(), u("li", {
1133
1132
  key: h,
1134
1133
  onClick: z((w) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
1135
1134
  class: f({ highlighted: e.highlightedItem === d.uid })
@@ -1143,7 +1142,7 @@ function nt(e, t, i, s, a, l) {
1143
1142
  }, null, 8, ot)
1144
1143
  ])
1145
1144
  ], 10, st))), 128)),
1146
- l.filteredItems.length ? p("", !0) : (o(), u("li", {
1145
+ l.filteredItems.length ? p("", !0) : (s(), u("li", {
1147
1146
  key: 0,
1148
1147
  class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
1149
1148
  }, [
@@ -1154,7 +1153,7 @@ function nt(e, t, i, s, a, l) {
1154
1153
  }, null, 8, at)
1155
1154
  ])
1156
1155
  ], 2)),
1157
- e.$slots["extra-item"] ? (o(), u("li", {
1156
+ e.$slots["extra-item"] ? (s(), u("li", {
1158
1157
  key: 1,
1159
1158
  class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
1160
1159
  onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
@@ -1165,10 +1164,12 @@ function nt(e, t, i, s, a, l) {
1165
1164
  ]),
1166
1165
  _: 3
1167
1166
  })
1168
- ], 2);
1167
+ ], 6);
1169
1168
  }
1170
1169
  const rt = {
1171
1170
  name: "w-autocomplete",
1171
+ inheritAttrs: !1,
1172
+ // The attrs should only be added to the input not the wrapper.
1172
1173
  props: {
1173
1174
  items: { type: Array, required: !0 },
1174
1175
  modelValue: { type: [String, Number, Array] },
@@ -1215,15 +1216,22 @@ const rt = {
1215
1216
  },
1216
1217
  filteredItems() {
1217
1218
  let e = this.optimizedItemsForSearch;
1218
- const t = (i) => !this.selection.find((s) => s.uid === i.uid);
1219
+ const t = (i) => !this.selection.find((o) => o.uid === i.uid);
1219
1220
  return this.keywords ? e = e.filter((i) => i.searchable.includes(this.normalizedKeywords) ? this.multiple && !this.allowDuplicates ? t(i) : !0 : !1) : this.multiple && !this.allowDuplicates && (e = e.filter(t)), e;
1220
1221
  },
1221
1222
  highlightedItemIndex() {
1222
1223
  return this.highlightedItem === null ? -1 : this.highlightedItem === "extra-item" ? this.filteredItems.length : this.filteredItems.findIndex((e) => e.uid === this.highlightedItem);
1223
1224
  },
1225
+ wrapperAttrs() {
1226
+ const { style: e, class: t } = this.$attrs;
1227
+ return { style: e, class: t };
1228
+ },
1229
+ inputAttrs() {
1230
+ const { style: e, class: t, ...i } = this.$attrs;
1231
+ return i;
1232
+ },
1224
1233
  inputEventListeners() {
1225
1234
  return {
1226
- ...this.$attrs,
1227
1235
  input: (e) => {
1228
1236
  this.keywords = e.target.value;
1229
1237
  },
@@ -1246,7 +1254,9 @@ const rt = {
1246
1254
  "w-autocomplete--open": this.menuOpen,
1247
1255
  "w-autocomplete--filled": this.selection.length,
1248
1256
  "w-autocomplete--has-keywords": this.keywords,
1249
- "w-autocomplete--empty": !this.selection.length && !this.keywords
1257
+ "w-autocomplete--empty": !this.selection.length && !this.keywords,
1258
+ // With the inheritAttrs set to false any class on the component would be lost, so add it back.
1259
+ [this.$attrs.class]: !!this.$attrs.class
1250
1260
  };
1251
1261
  }
1252
1262
  },
@@ -1293,15 +1303,15 @@ const rt = {
1293
1303
  e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
1294
1304
  else if ([38, 40].includes(e.keyCode)) {
1295
1305
  e.preventDefault();
1296
- let s = this.highlightedItemIndex;
1297
- 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;
1298
- const a = this.$refs.menu;
1299
- if (a)
1300
- if (this.$slots["extra-item"] && s === t - 1)
1301
- a.scrollTop = a.scrollHeight;
1306
+ let o = this.highlightedItemIndex;
1307
+ o === -1 ? o = e.keyCode === 38 ? t - 1 : 0 : o = (o + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && o === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[o]) == null ? void 0 : i.uid) || 0;
1308
+ const n = this.$refs.menu;
1309
+ if (n)
1310
+ if (this.$slots["extra-item"] && o === t - 1)
1311
+ n.scrollTop = n.scrollHeight;
1302
1312
  else {
1303
- const { offsetHeight: l, offsetTop: n } = a.childNodes[s] || {};
1304
- a.scrollTop + a.offsetHeight - l < n ? a.scrollTop = n - a.offsetHeight + l : a.scrollTop > n && (a.scrollTop = n);
1313
+ const { offsetHeight: l, offsetTop: a } = n.childNodes[o] || {};
1314
+ n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1305
1315
  }
1306
1316
  } else
1307
1317
  !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
@@ -1338,13 +1348,13 @@ const rt = {
1338
1348
  watch: {
1339
1349
  modelValue(e) {
1340
1350
  this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
1341
- this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
1351
+ this.selection.push(this.optimizedItemsForSearch.find((o) => o[this.itemValueKey] === +i));
1342
1352
  });
1343
1353
  }
1344
1354
  }
1345
1355
  }, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = { class: "w-app" };
1346
- function ht(e, t, i, s, a, l) {
1347
- return o(), u("div", ut, [
1356
+ function ht(e, t, i, o, n, l) {
1357
+ return s(), u("div", ut, [
1348
1358
  c(e.$slots, "default")
1349
1359
  ]);
1350
1360
  }
@@ -1365,17 +1375,17 @@ const ct = {
1365
1375
  textRight: { type: Boolean }
1366
1376
  }
1367
1377
  }, pt = /* @__PURE__ */ v(ct, [["render", ht]]), ft = { class: "w-badge-wrap" };
1368
- function mt(e, t, i, s, a, l) {
1369
- return o(), u("div", ft, [
1378
+ function mt(e, t, i, o, n, l) {
1379
+ return s(), u("div", ft, [
1370
1380
  c(e.$slots, "default"),
1371
- I(x, {
1381
+ I(O, {
1372
1382
  name: `${i.transition}`
1373
1383
  }, {
1374
1384
  default: m(() => [
1375
- i.modelValue ? (o(), u("div", {
1385
+ i.modelValue ? (s(), u("div", {
1376
1386
  key: 0,
1377
1387
  class: f(["w-badge", l.classes]),
1378
- style: R(l.styles),
1388
+ style: L(l.styles),
1379
1389
  "aria-atomic": "true",
1380
1390
  "aria-label": "Badge",
1381
1391
  "aria-live": "polite",
@@ -1454,18 +1464,18 @@ const gt = {
1454
1464
  }
1455
1465
  }
1456
1466
  }, bt = /* @__PURE__ */ v(gt, [["render", mt]]), yt = ["innerHTML"];
1457
- function wt(e, t, i, s, a, l) {
1458
- const n = $("w-icon");
1459
- return o(), u("div", {
1467
+ function wt(e, t, i, o, n, l) {
1468
+ const a = $("w-icon");
1469
+ return s(), u("div", {
1460
1470
  class: f(["w-breadcrumbs", l.classes])
1461
1471
  }, [
1462
- (o(!0), u(k, null, L(i.items, (r, d) => (o(), u(k, null, [
1463
- d && e.$slots.separator ? (o(), u("span", {
1472
+ (s(!0), u(k, null, R(i.items, (r, d) => (s(), u(k, null, [
1473
+ d && e.$slots.separator ? (s(), u("span", {
1464
1474
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1465
1475
  key: `${d}a`
1466
1476
  }, [
1467
1477
  c(e.$slots, "separator", { index: d })
1468
- ], 2)) : d ? (o(), g(n, {
1478
+ ], 2)) : d ? (s(), g(a, {
1469
1479
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1470
1480
  key: `${d}b`
1471
1481
  }, {
@@ -1474,8 +1484,8 @@ function wt(e, t, i, s, a, l) {
1474
1484
  ]),
1475
1485
  _: 2
1476
1486
  }, 1032, ["class"])) : p("", !0),
1477
- r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(k, { key: 2 }, [
1478
- e.$slots.item ? (o(), g(T(l.hasRouter ? "router-link" : "a"), {
1487
+ r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (s(), u(k, { key: 2 }, [
1488
+ e.$slots.item ? (s(), g(T(l.hasRouter ? "router-link" : "a"), {
1479
1489
  class: f(["w-breadcrumbs__item", i.color || null]),
1480
1490
  key: `${d}c`,
1481
1491
  to: l.hasRouter && r[i.itemRouteKey],
@@ -1489,7 +1499,7 @@ function wt(e, t, i, s, a, l) {
1489
1499
  })
1490
1500
  ]),
1491
1501
  _: 2
1492
- }, 1032, ["to", "href", "class"])) : (o(), g(T(l.hasRouter ? "router-link" : "a"), {
1502
+ }, 1032, ["to", "href", "class"])) : (s(), g(T(l.hasRouter ? "router-link" : "a"), {
1493
1503
  class: f(["w-breadcrumbs__item", i.color || null]),
1494
1504
  key: `${d}d`,
1495
1505
  to: l.hasRouter && r[i.itemRouteKey],
@@ -1501,7 +1511,7 @@ function wt(e, t, i, s, a, l) {
1501
1511
  item: r,
1502
1512
  index: d + 1,
1503
1513
  isLast: d === i.items.length - 1
1504
- }) : (o(), u("span", {
1514
+ }) : (s(), u("span", {
1505
1515
  key: `${d}f`,
1506
1516
  innerHTML: r[i.itemLabelKey]
1507
1517
  }, null, 8, yt))
@@ -1553,24 +1563,24 @@ const kt = {
1553
1563
  "stroke-linecap": "round"
1554
1564
  })
1555
1565
  ], -1);
1556
- function Bt(e, t, i, s, a, l) {
1557
- const n = $("w-icon");
1558
- return o(), g(T(i.route ? "a" : "button"), B({
1566
+ function Bt(e, t, i, o, n, l) {
1567
+ const a = $("w-icon");
1568
+ return s(), g(T(i.route ? "a" : "button"), B({
1559
1569
  class: ["w-button", l.classes],
1560
1570
  type: !i.route && i.type,
1561
1571
  href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1562
1572
  disabled: !!i.disabled || null
1563
- }, H(l.listeners), { style: l.styles }), {
1573
+ }, l.attrs, { style: l.styles }), {
1564
1574
  default: m(() => [
1565
- i.icon ? (o(), g(n, ie(B({ key: 0 }, i.iconProps || {})), {
1575
+ i.icon ? (s(), g(a, te(B({ key: 0 }, i.iconProps || {})), {
1566
1576
  default: m(() => [
1567
1577
  S(C(i.icon), 1)
1568
1578
  ]),
1569
1579
  _: 1
1570
1580
  }, 16)) : c(e.$slots, "default", { key: 1 }),
1571
- I(x, { name: "scale-fade" }, {
1581
+ I(O, { name: "scale-fade" }, {
1572
1582
  default: m(() => [
1573
- i.loading ? (o(), u("div", Ct, [
1583
+ i.loading ? (s(), u("div", Ct, [
1574
1584
  c(e.$slots, "loading", {}, () => [
1575
1585
  St
1576
1586
  ])
@@ -1583,6 +1593,9 @@ function Bt(e, t, i, s, a, l) {
1583
1593
  }, 16, ["type", "href", "class", "disabled", "style"]);
1584
1594
  }
1585
1595
  const _t = {
1596
+ // Fully handle the attrs and listeners manually for the case of a router link that has both a
1597
+ // route and onClick.
1598
+ inheritAttrs: !1,
1586
1599
  props: {
1587
1600
  color: { type: String },
1588
1601
  bgColor: { type: String },
@@ -1629,14 +1642,14 @@ const _t = {
1629
1642
  resolvedRoute() {
1630
1643
  return this.hasRouter ? this.$router.resolve(this.route).href : this.route;
1631
1644
  },
1632
- listeners() {
1633
- const { class: e, style: t, ...i } = this.$attrs;
1634
- return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? {
1635
- ...i,
1636
- click: (s) => {
1637
- i.click && i.click(s), this.$router.push(this.route), s.stopPropagation(), s.preventDefault();
1645
+ attrs() {
1646
+ const e = {
1647
+ ...this.$attrs,
1648
+ onClick: (t) => {
1649
+ this.$attrs.onClick && this.$attrs.onClick(t), this.$router.push(this.route), t.stopPropagation(), t.preventDefault();
1638
1650
  }
1639
- } : i;
1651
+ };
1652
+ return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? e : this.$attrs;
1640
1653
  },
1641
1654
  size() {
1642
1655
  return this.xs && "xs" || this.sm && "sm" || this.lg && "lg" || this.xl && "xl" || "md";
@@ -1681,11 +1694,11 @@ const _t = {
1681
1694
  }
1682
1695
  }
1683
1696
  }, $t = /* @__PURE__ */ v(_t, [["render", Bt]]), Vt = ["innerHTML"];
1684
- function It(e, t, i, s, a, l) {
1685
- const n = $("button-partial");
1686
- return i.tooltip ? (o(), g(T("w-tooltip"), ie(B({ key: 0 }, i.tooltipProps || {})), {
1697
+ function It(e, t, i, o, n, l) {
1698
+ const a = $("button-partial");
1699
+ return i.tooltip ? (s(), g(T("w-tooltip"), te(B({ key: 0 }, i.tooltipProps)), {
1687
1700
  activator: m(({ on: r }) => [
1688
- I(n, B(l.buttonProps, H(r)), {
1701
+ I(a, B(l.buttonProps, me(r)), {
1689
1702
  default: m(() => [
1690
1703
  c(e.$slots, "default")
1691
1704
  ]),
@@ -1696,7 +1709,7 @@ function It(e, t, i, s, a, l) {
1696
1709
  y("div", { innerHTML: i.tooltip }, null, 8, Vt)
1697
1710
  ]),
1698
1711
  _: 3
1699
- }, 16)) : (o(), g(n, ie(B({ key: 1 }, l.buttonProps)), {
1712
+ }, 16)) : (s(), g(a, te(B({ key: 1 }, l.buttonProps)), {
1700
1713
  loading: m(() => [
1701
1714
  c(e.$slots, "loading")
1702
1715
  ]),
@@ -1753,27 +1766,27 @@ const Tt = {
1753
1766
  emits: [],
1754
1767
  computed: {
1755
1768
  buttonProps() {
1756
- const { tooltip: e, tooltipProps: t, ...i } = this.$props;
1769
+ const { tooltip: e, tooltipProps: t = {}, ...i } = this.$props;
1757
1770
  return { ...i, ...this.$attrs };
1758
1771
  }
1759
1772
  }
1760
- }, Lt = /* @__PURE__ */ v(Tt, [["render", It]]), W = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Rt = ["innerHTML"];
1761
- function Pt(e, t, i, s, a, l) {
1762
- const n = $("w-image");
1763
- return o(), u("div", {
1773
+ }, Lt = /* @__PURE__ */ v(Tt, [["render", It]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Rt = ["innerHTML"];
1774
+ function Pt(e, t, i, o, n, l) {
1775
+ const a = $("w-image");
1776
+ return s(), u("div", {
1764
1777
  class: f(["w-card", l.classes])
1765
1778
  }, [
1766
- e.$slots.title ? (o(), u("div", {
1779
+ e.$slots.title ? (s(), u("div", {
1767
1780
  key: 0,
1768
1781
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
1769
1782
  }, [
1770
1783
  c(e.$slots, "title")
1771
- ], 2)) : i.title ? (o(), u("div", {
1784
+ ], 2)) : i.title ? (s(), u("div", {
1772
1785
  key: 1,
1773
1786
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1774
1787
  innerHTML: i.title
1775
1788
  }, null, 10, Rt)) : p("", !0),
1776
- i.image ? (o(), g(n, B({
1789
+ i.image ? (s(), g(a, B({
1777
1790
  key: 2,
1778
1791
  class: "w-card__image",
1779
1792
  src: i.image
@@ -1788,7 +1801,7 @@ function Pt(e, t, i, s, a, l) {
1788
1801
  }, [
1789
1802
  c(e.$slots, "default")
1790
1803
  ], 2),
1791
- e.$slots.actions ? (o(), u("div", {
1804
+ e.$slots.actions ? (s(), u("div", {
1792
1805
  key: 3,
1793
1806
  class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
1794
1807
  }, [
@@ -1796,7 +1809,7 @@ function Pt(e, t, i, s, a, l) {
1796
1809
  ], 2)) : p("", !0)
1797
1810
  ], 2);
1798
1811
  }
1799
- const xt = {
1812
+ const Ot = {
1800
1813
  name: "w-card",
1801
1814
  props: {
1802
1815
  color: { type: String },
@@ -1815,10 +1828,10 @@ const xt = {
1815
1828
  emits: [],
1816
1829
  computed: {
1817
1830
  titleClasses() {
1818
- return W(this.titleClass);
1831
+ return A(this.titleClass);
1819
1832
  },
1820
1833
  contentClasses() {
1821
- return W(this.contentClass);
1834
+ return A(this.contentClass);
1822
1835
  },
1823
1836
  titleHasToolbar() {
1824
1837
  const { title: e } = this.$slots;
@@ -1847,7 +1860,7 @@ const xt = {
1847
1860
  };
1848
1861
  }
1849
1862
  }
1850
- }, Ot = /* @__PURE__ */ v(xt, [["render", Pt]]), M = {
1863
+ }, xt = /* @__PURE__ */ v(Ot, [["render", Pt]]), M = {
1851
1864
  inject: {
1852
1865
  // Used in each form component to determine whether to use the w-form-element wrap or not.
1853
1866
  // So, if a form component is in a form, use the w-form-element wrap.
@@ -1894,17 +1907,17 @@ const xt = {
1894
1907
  this.$refs.formEl.validate(this);
1895
1908
  }
1896
1909
  }
1897
- }, zt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Mt = ["for"], Et = ["for", "innerHTML"], Wt = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
1910
+ }, zt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Mt = ["for"], Et = ["for", "innerHTML"], At = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
1898
1911
  /* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
1899
- ], -1), At = [
1900
- Wt
1912
+ ], -1), Wt = [
1913
+ At
1901
1914
  ], Kt = ["for"], Nt = ["for", "innerHTML"];
1902
- function Dt(e, t, i, s, a, l) {
1903
- return o(), g(T(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1915
+ function Dt(e, t, i, o, n, l) {
1916
+ return s(), g(T(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1904
1917
  valid: e.valid,
1905
- "onUpdate:valid": t[5] || (t[5] = (n) => e.valid = n),
1906
- onReset: t[6] || (t[6] = (n) => {
1907
- e.$emit("update:modelValue", a.isChecked = null), e.$emit("input", null);
1918
+ "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1919
+ onReset: t[6] || (t[6] = (a) => {
1920
+ e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
1908
1921
  }),
1909
1922
  class: l.classes
1910
1923
  }), {
@@ -1914,19 +1927,19 @@ function Dt(e, t, i, s, a, l) {
1914
1927
  id: `w-checkbox--${e._.uid}`,
1915
1928
  type: "checkbox",
1916
1929
  name: e.inputName,
1917
- checked: a.isChecked || null,
1930
+ checked: n.isChecked || null,
1918
1931
  disabled: e.isDisabled || e.isReadonly || null,
1919
1932
  required: e.required || null,
1920
1933
  tabindex: e.tabindex || null,
1921
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
1922
- onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
1923
- onChange: t[2] || (t[2] = (n) => l.onInput()),
1924
- onKeypress: t[3] || (t[3] = E((...n) => l.onInput && l.onInput(...n), ["enter"])),
1925
- "aria-checked": a.isChecked || "false",
1934
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
1935
+ onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
1936
+ onChange: t[2] || (t[2] = (a) => l.onInput()),
1937
+ onKeypress: t[3] || (t[3] = E((...a) => l.onInput && l.onInput(...a), ["enter"])),
1938
+ "aria-checked": n.isChecked || "false",
1926
1939
  role: "checkbox"
1927
1940
  }, null, 40, zt),
1928
- l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
1929
- e.$slots.default ? (o(), u("label", {
1941
+ l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
1942
+ e.$slots.default ? (s(), u("label", {
1930
1943
  key: 0,
1931
1944
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1932
1945
  for: `w-checkbox--${e._.uid}`
@@ -1934,7 +1947,7 @@ function Dt(e, t, i, s, a, l) {
1934
1947
  c(e.$slots, "default", {}, () => [
1935
1948
  S(C(i.label), 1)
1936
1949
  ])
1937
- ], 10, Mt)) : i.label ? (o(), u("label", {
1950
+ ], 10, Mt)) : i.label ? (s(), u("label", {
1938
1951
  key: 1,
1939
1952
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1940
1953
  for: `w-checkbox--${e._.uid}`,
@@ -1943,12 +1956,12 @@ function Dt(e, t, i, s, a, l) {
1943
1956
  ], 64)) : p("", !0),
1944
1957
  y("div", {
1945
1958
  class: f(["w-checkbox__input", this.color]),
1946
- onClick: t[4] || (t[4] = (n) => {
1959
+ onClick: t[4] || (t[4] = (a) => {
1947
1960
  e.$refs.input.focus(), e.$refs.input.click();
1948
1961
  })
1949
- }, At, 2),
1950
- l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
1951
- e.$slots.default ? (o(), u("label", {
1962
+ }, Wt, 2),
1963
+ l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
1964
+ e.$slots.default ? (s(), u("label", {
1952
1965
  key: 0,
1953
1966
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1954
1967
  for: `w-checkbox--${e._.uid}`
@@ -1956,7 +1969,7 @@ function Dt(e, t, i, s, a, l) {
1956
1969
  c(e.$slots, "default", {}, () => [
1957
1970
  S(C(i.label), 1)
1958
1971
  ])
1959
- ], 10, Kt)) : i.label ? (o(), u("label", {
1972
+ ], 10, Kt)) : i.label ? (s(), u("label", {
1960
1973
  key: 1,
1961
1974
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1962
1975
  for: `w-checkbox--${e._.uid}`,
@@ -2035,9 +2048,9 @@ const Ht = {
2035
2048
  }
2036
2049
  }
2037
2050
  }, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]), jt = ["innerHTML"];
2038
- function Ut(e, t, i, s, a, l) {
2039
- const n = $("w-checkbox");
2040
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
2051
+ function Ut(e, t, i, o, n, l) {
2052
+ const a = $("w-checkbox");
2053
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
2041
2054
  valid: e.valid,
2042
2055
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
2043
2056
  onReset: l.reset,
@@ -2046,7 +2059,7 @@ function Ut(e, t, i, s, a, l) {
2046
2059
  class: l.classes
2047
2060
  }), {
2048
2061
  default: m(() => [
2049
- (o(!0), u(k, null, L(l.checkboxItems, (r, d) => (o(), g(n, B({
2062
+ (s(!0), u(k, null, R(l.checkboxItems, (r, d) => (s(), g(a, B({
2050
2063
  key: d,
2051
2064
  "model-value": r._isChecked,
2052
2065
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -2065,7 +2078,7 @@ function Ut(e, t, i, s, a, l) {
2065
2078
  checked: !!r._isChecked,
2066
2079
  index: d + 1,
2067
2080
  innerHTML: r.label
2068
- }) : r.label ? (o(), u("div", {
2081
+ }) : r.label ? (s(), u("div", {
2069
2082
  key: 1,
2070
2083
  innerHTML: r.label
2071
2084
  }, null, 8, jt)) : p("", !0)
@@ -2107,7 +2120,7 @@ const qt = {
2107
2120
  checkboxItems() {
2108
2121
  return (this.items || []).map((e, t) => {
2109
2122
  const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
2110
- return J({
2123
+ return G({
2111
2124
  ...e,
2112
2125
  label: e[this.itemLabelKey],
2113
2126
  _index: t,
@@ -2131,7 +2144,7 @@ const qt = {
2131
2144
  },
2132
2145
  toggleCheck(e, t) {
2133
2146
  e._isChecked = t;
2134
- const i = this.checkboxItems.filter((s) => s._isChecked).map((s) => this.returnValues ? s.returnValue : s.value);
2147
+ const i = this.checkboxItems.filter((o) => o._isChecked).map((o) => this.returnValues ? o.returnValue : o.value);
2135
2148
  this.$emit("update:modelValue", i), this.$emit("input", i);
2136
2149
  },
2137
2150
  // Return the original item (so there is no `_index`, etc.).
@@ -2140,14 +2153,14 @@ const qt = {
2140
2153
  }
2141
2154
  }
2142
2155
  }, Xt = /* @__PURE__ */ v(qt, [["render", Ut]]);
2143
- function Yt(e, t, i, s, a, l) {
2144
- const n = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
2145
- return o(), g(d, B({
2156
+ function Yt(e, t, i, o, n, l) {
2157
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
2158
+ return s(), g(d, B({
2146
2159
  modelValue: e.showPopup,
2147
2160
  "onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
2148
2161
  }, l.wMenuProps), {
2149
2162
  activator: m(({ on: w }) => [
2150
- I(n, B({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : w }), {
2163
+ I(a, B({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : w }), {
2151
2164
  default: m(() => [
2152
2165
  c(e.$slots, "default")
2153
2166
  ]),
@@ -2168,7 +2181,7 @@ function Yt(e, t, i, s, a, l) {
2168
2181
  y("div", {
2169
2182
  class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2170
2183
  }, [
2171
- i.cancel !== !1 ? (o(), g(n, B({
2184
+ i.cancel !== !1 ? (s(), g(a, B({
2172
2185
  key: 0,
2173
2186
  class: "mr2"
2174
2187
  }, l.cancelButtonProps, {
@@ -2183,7 +2196,7 @@ function Yt(e, t, i, s, a, l) {
2183
2196
  ]),
2184
2197
  _: 3
2185
2198
  }, 16, ["bg-color", "onClick"])) : p("", !0),
2186
- A((o(), g(n, B(l.confirmButtonProps, {
2199
+ W((s(), g(a, B(l.confirmButtonProps, {
2187
2200
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2188
2201
  onKeyup: t[1] || (t[1] = E((w) => !i.persistent && l.onCancel(), ["escape"])),
2189
2202
  onClick: l.onConfirm
@@ -2319,10 +2332,10 @@ const Gt = {
2319
2332
  }
2320
2333
  }
2321
2334
  }, Jt = /* @__PURE__ */ v(Gt, [["render", Yt]]);
2322
- function Qt(e, t, i, s, a, l) {
2323
- return o(), u("div", {
2335
+ function Qt(e, t, i, o, n, l) {
2336
+ return s(), u("div", {
2324
2337
  class: f(["w-date-picker", l.classes]),
2325
- style: R(l.styles)
2338
+ style: L(l.styles)
2326
2339
  }, [
2327
2340
  c(e.$slots, "default")
2328
2341
  ], 6);
@@ -2346,11 +2359,11 @@ const Zt = {
2346
2359
  }
2347
2360
  }
2348
2361
  }, ei = /* @__PURE__ */ v(Zt, [["render", Qt]]);
2349
- function ti(e, t, i, s, a, l) {
2350
- const n = $("w-card"), r = $("w-overlay");
2351
- return o(), g(r, {
2362
+ function ti(e, t, i, o, n, l) {
2363
+ const a = $("w-card"), r = $("w-overlay");
2364
+ return s(), g(r, {
2352
2365
  class: f(["w-dialog", l.classes]),
2353
- "model-value": a.showWrapper,
2366
+ "model-value": n.showWrapper,
2354
2367
  persistent: i.persistent,
2355
2368
  "persistent-no-animation": i.persistentNoAnimation,
2356
2369
  onClick: l.onOutsideClick,
@@ -2359,13 +2372,13 @@ function ti(e, t, i, s, a, l) {
2359
2372
  opacity: i.overlayOpacity
2360
2373
  }, {
2361
2374
  default: m(() => [
2362
- I(x, {
2375
+ I(O, {
2363
2376
  name: i.transition,
2364
2377
  appear: "",
2365
2378
  onAfterLeave: l.onBeforeClose
2366
2379
  }, {
2367
2380
  default: m(() => [
2368
- A(I(n, {
2381
+ W(I(a, {
2369
2382
  class: f(["w-dialog__content", i.dialogClass]),
2370
2383
  ref: "dialog",
2371
2384
  "no-border": "",
@@ -2374,8 +2387,8 @@ function ti(e, t, i, s, a, l) {
2374
2387
  "title-class": i.titleClass,
2375
2388
  "content-class": i.contentClass,
2376
2389
  title: i.title || void 0,
2377
- style: R(l.contentStyles)
2378
- }, Q({
2390
+ style: L(l.contentStyles)
2391
+ }, J({
2379
2392
  default: m(() => [
2380
2393
  c(e.$slots, "default")
2381
2394
  ]),
@@ -2396,7 +2409,7 @@ function ti(e, t, i, s, a, l) {
2396
2409
  key: "1"
2397
2410
  } : void 0
2398
2411
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2399
- [ae, a.showContent]
2412
+ [oe, n.showContent]
2400
2413
  ])
2401
2414
  ]),
2402
2415
  _: 3
@@ -2476,8 +2489,8 @@ const ii = {
2476
2489
  }
2477
2490
  }
2478
2491
  }, li = /* @__PURE__ */ v(ii, [["render", ti]]), si = ["role", "aria-orientation"];
2479
- function oi(e, t, i, s, a, l) {
2480
- return o(), u("div", {
2492
+ function oi(e, t, i, o, n, l) {
2493
+ return s(), u("div", {
2481
2494
  class: f(["w-divider", l.classes]),
2482
2495
  role: e.$slots.default ? null : "presentation",
2483
2496
  "aria-orientation": i.vertical ? "vertical" : "horizontal"
@@ -2506,22 +2519,22 @@ const ai = {
2506
2519
  }
2507
2520
  }
2508
2521
  }, ni = /* @__PURE__ */ v(ai, [["render", oi]]), ri = { class: "w-drawer-wrap__pushable" };
2509
- function di(e, t, i, s, a, l) {
2510
- const n = $("w-overlay");
2511
- return a.showWrapper || i.pushContent ? (o(), u("div", {
2522
+ function di(e, t, i, o, n, l) {
2523
+ const a = $("w-overlay");
2524
+ return n.showWrapper || i.pushContent ? (s(), u("div", {
2512
2525
  key: 0,
2513
2526
  class: f(["w-drawer-wrap", l.wrapperClasses])
2514
2527
  }, [
2515
- i.pushContent ? (o(), u("div", {
2528
+ i.pushContent ? (s(), u("div", {
2516
2529
  key: 0,
2517
2530
  class: "w-drawer-wrap__track",
2518
- style: R(l.trackStyles)
2531
+ style: L(l.trackStyles)
2519
2532
  }, [
2520
2533
  y("div", ri, [
2521
- i.noOverlay ? p("", !0) : (o(), g(n, {
2534
+ i.noOverlay ? p("", !0) : (s(), g(a, {
2522
2535
  key: 0,
2523
- modelValue: a.showDrawer,
2524
- "onUpdate:modelValue": t[0] || (t[0] = (r) => a.showDrawer = r),
2536
+ modelValue: n.showDrawer,
2537
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2525
2538
  onClick: l.onOutsideClick,
2526
2539
  persistent: i.persistent,
2527
2540
  "persistent-no-animation": "",
@@ -2530,17 +2543,17 @@ function di(e, t, i, s, a, l) {
2530
2543
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2531
2544
  c(e.$slots, "pushable")
2532
2545
  ]),
2533
- I(x, {
2546
+ I(O, {
2534
2547
  name: "fade",
2535
2548
  onBeforeLeave: l.onBeforeClose,
2536
2549
  onAfterLeave: l.onClose
2537
2550
  }, {
2538
2551
  default: m(() => [
2539
- a.showDrawer ? (o(), g(T(i.tag || "aside"), {
2552
+ n.showDrawer ? (s(), g(T(i.tag || "aside"), {
2540
2553
  key: 0,
2541
2554
  class: f(["w-drawer", l.drawerClasses]),
2542
2555
  ref: "drawer",
2543
- style: R(l.styles)
2556
+ style: L(l.styles)
2544
2557
  }, {
2545
2558
  default: m(() => [
2546
2559
  c(e.$slots, "default")
@@ -2550,29 +2563,29 @@ function di(e, t, i, s, a, l) {
2550
2563
  ]),
2551
2564
  _: 3
2552
2565
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2553
- ], 4)) : (o(), u(k, { key: 1 }, [
2554
- i.noOverlay ? p("", !0) : (o(), g(n, {
2566
+ ], 4)) : (s(), u(k, { key: 1 }, [
2567
+ i.noOverlay ? p("", !0) : (s(), g(a, {
2555
2568
  key: 0,
2556
- modelValue: a.showDrawer,
2557
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.showDrawer = r),
2569
+ modelValue: n.showDrawer,
2570
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2558
2571
  onClick: l.onOutsideClick,
2559
2572
  persistent: i.persistent,
2560
2573
  "persistent-no-animation": "",
2561
2574
  "bg-color": i.overlayColor,
2562
2575
  opacity: i.overlayOpacity
2563
2576
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2564
- I(x, {
2577
+ I(O, {
2565
2578
  name: l.transitionName,
2566
2579
  appear: "",
2567
2580
  onBeforeLeave: l.onBeforeClose,
2568
2581
  onAfterLeave: l.onClose
2569
2582
  }, {
2570
2583
  default: m(() => [
2571
- a.showDrawer ? (o(), g(T(i.tag || "aside"), {
2584
+ n.showDrawer ? (s(), g(T(i.tag || "aside"), {
2572
2585
  key: 0,
2573
2586
  class: f(["w-drawer", l.drawerClasses]),
2574
2587
  ref: "drawer",
2575
- style: R(l.styles)
2588
+ style: L(l.styles)
2576
2589
  }, {
2577
2590
  default: m(() => [
2578
2591
  c(e.$slots, "default")
@@ -2699,8 +2712,8 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
2699
2712
  }
2700
2713
  }
2701
2714
  }, ci = /* @__PURE__ */ v(hi, [["render", di]]);
2702
- function pi(e, t, i, s, a, l) {
2703
- return o(), g(T(i.tag), {
2715
+ function pi(e, t, i, o, n, l) {
2716
+ return s(), g(T(i.tag), {
2704
2717
  class: f(["w-flex", l.classes])
2705
2718
  }, {
2706
2719
  default: m(() => [
@@ -2757,11 +2770,11 @@ const fi = {
2757
2770
  }
2758
2771
  }
2759
2772
  }, mi = /* @__PURE__ */ v(fi, [["render", pi]]);
2760
- function gi(e, t, i, s, a, l) {
2761
- return o(), u("form", {
2773
+ function gi(e, t, i, o, n, l) {
2774
+ return s(), u("form", {
2762
2775
  class: f(["w-form", l.classes]),
2763
- onSubmit: t[0] || (t[0] = (...n) => l.onSubmit && l.onSubmit(...n)),
2764
- onReset: t[1] || (t[1] = (...n) => l.reset && l.reset(...n)),
2776
+ onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2777
+ onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
2765
2778
  novalidate: ""
2766
2779
  }, [
2767
2780
  c(e.$slots, "default")
@@ -2841,8 +2854,8 @@ const bi = async (e, t) => {
2841
2854
  let t = 0;
2842
2855
  return await (async () => {
2843
2856
  var i;
2844
- for (const s of this.formElements)
2845
- !((i = s.validators) != null && i.length) || s.disabled || s.readonly || (await this.checkElementValidators(s), t += ~~!s.Validation.isValid, s.$emit("update:valid", s.Validation.isValid));
2857
+ for (const o of this.formElements)
2858
+ !((i = o.validators) != null && i.length) || o.disabled || o.readonly || (await this.checkElementValidators(o), t += ~~!o.Validation.isValid, o.$emit("update:valid", o.Validation.isValid));
2846
2859
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2847
2860
  },
2848
2861
  async validateElement(e) {
@@ -2852,9 +2865,9 @@ const bi = async (e, t) => {
2852
2865
  // message in the form element.
2853
2866
  async checkElementValidators(e) {
2854
2867
  let t = !1, i = "";
2855
- await bi(e.validators, async (s) => {
2856
- const a = await (typeof s == "function" && s(e.inputValue));
2857
- return t = typeof a != "string", i = t ? "" : a, !t;
2868
+ await bi(e.validators, async (o) => {
2869
+ const n = await (typeof o == "function" && o(e.inputValue));
2870
+ return t = typeof n != "string", i = t ? "" : n, !t;
2858
2871
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
2859
2872
  },
2860
2873
  // Reset is called from:
@@ -2864,7 +2877,7 @@ const bi = async (e, t) => {
2864
2877
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2865
2878
  },
2866
2879
  updateErrorsCount(e = null, t = !1) {
2867
- this.errorsCount = e !== null ? e : this.formElements.reduce((i, s) => i + ~~(s.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
2880
+ this.errorsCount = e !== null ? e : this.formElements.reduce((i, o) => i + ~~(o.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
2868
2881
  },
2869
2882
  onSubmit(e) {
2870
2883
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2879,9 +2892,9 @@ const bi = async (e, t) => {
2879
2892
  }
2880
2893
  }
2881
2894
  }, wi = /* @__PURE__ */ v(yi, [["render", gi]]);
2882
- function ki(e, t, i, s, a, l) {
2883
- const n = $("w-transition-expand");
2884
- return o(), u("div", {
2895
+ function ki(e, t, i, o, n, l) {
2896
+ const a = $("w-transition-expand");
2897
+ return s(), u("div", {
2885
2898
  class: f(l.classes)
2886
2899
  }, [
2887
2900
  y("div", {
@@ -2889,9 +2902,9 @@ function ki(e, t, i, s, a, l) {
2889
2902
  }, [
2890
2903
  c(e.$slots, "default")
2891
2904
  ], 2),
2892
- I(n, { y: "" }, {
2905
+ I(a, { y: "" }, {
2893
2906
  default: m(() => [
2894
- e.Validation.message ? (o(), u("div", {
2907
+ e.Validation.message ? (s(), u("div", {
2895
2908
  key: 0,
2896
2909
  class: f(["w-form-el__error", l.formProps.validationColor])
2897
2910
  }, [
@@ -2981,8 +2994,8 @@ const vi = {
2981
2994
  this.formUnregister && this.formUnregister(this);
2982
2995
  }
2983
2996
  }, Ci = /* @__PURE__ */ v(vi, [["render", ki]]);
2984
- function Si(e, t, i, s, a, l) {
2985
- return o(), g(T(i.tag), {
2997
+ function Si(e, t, i, o, n, l) {
2998
+ return s(), g(T(i.tag), {
2986
2999
  class: f(["w-grid", l.classes])
2987
3000
  }, {
2988
3001
  default: m(() => [
@@ -3027,24 +3040,24 @@ const Bi = {
3027
3040
  },
3028
3041
  classes() {
3029
3042
  let e = null;
3030
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, a]) => (i[`${s}-columns${a}`] = !0, i), {}));
3043
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [o, n]) => (i[`${o}-columns${n}`] = !0, i), {}));
3031
3044
  let t = null;
3032
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, a]) => (i[`${s}-gap${a}`] = !0, i), {})), {
3045
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [o, n]) => (i[`${o}-gap${n}`] = !0, i), {})), {
3033
3046
  ...e || { [`columns${this.columns}`]: this.columns },
3034
3047
  ...t || { [`gap${this.gap}`]: this.gap }
3035
3048
  };
3036
3049
  }
3037
3050
  }
3038
3051
  }, _i = /* @__PURE__ */ v(Bi, [["render", Si]]);
3039
- function $i(e, t, i, s, a, l) {
3040
- return o(), g(T(i.tag || "i"), {
3052
+ function $i(e, t, i, o, n, l) {
3053
+ return s(), g(T(i.tag || "i"), {
3041
3054
  class: f(["w-icon", l.classes]),
3042
3055
  role: "icon",
3043
3056
  "aria-hidden": "true",
3044
- style: R(l.readIcon() && l.styles)
3057
+ style: L(l.readIcon() && l.styles)
3045
3058
  }, {
3046
3059
  default: m(() => [
3047
- l.hasLigature ? (o(), u(k, { key: 0 }, [
3060
+ l.hasLigature ? (s(), u(k, { key: 0 }, [
3048
3061
  S(C(e.icon), 1)
3049
3062
  ], 64)) : p("", !0)
3050
3063
  ]),
@@ -3124,35 +3137,35 @@ const Vi = {
3124
3137
  key: 0,
3125
3138
  class: "w-image__loader"
3126
3139
  };
3127
- function Li(e, t, i, s, a, l) {
3128
- const n = $("w-progress");
3129
- return o(), g(T(l.wrapperTag), {
3140
+ function Li(e, t, i, o, n, l) {
3141
+ const a = $("w-progress");
3142
+ return s(), g(T(l.wrapperTag), {
3130
3143
  class: f(["w-image-wrap", l.wrapperClasses]),
3131
- style: R(l.wrapperStyles)
3144
+ style: L(l.wrapperStyles)
3132
3145
  }, {
3133
3146
  default: m(() => [
3134
- I(x, {
3147
+ I(O, {
3135
3148
  name: i.transition,
3136
3149
  appear: ""
3137
3150
  }, {
3138
3151
  default: m(() => [
3139
- a.loaded ? (o(), g(T(i.tag), {
3152
+ n.loaded ? (s(), g(T(i.tag), {
3140
3153
  key: 0,
3141
3154
  class: f(["w-image", l.imageClasses]),
3142
- style: R(l.imageStyles),
3143
- src: i.tag === "img" ? a.imgSrc : null
3155
+ style: L(l.imageStyles),
3156
+ src: i.tag === "img" ? n.imgSrc : null
3144
3157
  }, null, 8, ["class", "style", "src"])) : p("", !0)
3145
3158
  ]),
3146
3159
  _: 1
3147
3160
  }, 8, ["name"]),
3148
- !i.noSpinner && a.loading ? (o(), u("div", Ti, [
3149
- e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), g(n, B({
3161
+ !i.noSpinner && n.loading ? (s(), u("div", Ti, [
3162
+ e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (s(), g(a, B({
3150
3163
  key: 1,
3151
3164
  circle: "",
3152
3165
  indeterminate: ""
3153
3166
  }, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
3154
3167
  ])) : p("", !0),
3155
- e.$slots.default ? (o(), g(T(l.wrapperTag), {
3168
+ e.$slots.default ? (s(), g(T(l.wrapperTag), {
3156
3169
  key: 1,
3157
3170
  class: f(["w-image__content", i.contentClass])
3158
3171
  }, {
@@ -3233,15 +3246,15 @@ const Ri = {
3233
3246
  if (!this.loading)
3234
3247
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
3235
3248
  const i = new Image();
3236
- i.onload = (s) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = s.target.width, this.imgHeight = s.target.height), this.imgComputedRatio = s.target.height / s.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(i)), i.onerror = (s) => {
3237
- this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
3249
+ i.onload = (o) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = o.target.width, this.imgHeight = o.target.height), this.imgComputedRatio = o.target.height / o.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(i)), i.onerror = (o) => {
3250
+ this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
3238
3251
  }, i.src = e ? this.fallback : this.src;
3239
3252
  });
3240
3253
  }
3241
3254
  },
3242
3255
  mounted() {
3243
3256
  if (!this.src)
3244
- return j("The w-image component was used without src.");
3257
+ return F("The w-image component was used without src.");
3245
3258
  if (this.lazy) {
3246
3259
  const e = new IntersectionObserver((t) => {
3247
3260
  t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
@@ -3261,32 +3274,33 @@ const Ri = {
3261
3274
  this.imgHeight = e;
3262
3275
  }
3263
3276
  }
3264
- }, Pi = /* @__PURE__ */ v(Ri, [["render", Li]]), xi = ["name"], Oi = ["for"], zi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], Ei = {
3277
+ }, Pi = /* @__PURE__ */ v(Ri, [["render", Li]]), Oi = ["name"], xi = ["for"], zi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], Ei = {
3265
3278
  class: "w-input__no-file",
3266
3279
  key: "no-file"
3267
- }, Wi = ["for"], Ai = ["src"], Ki = ["for"];
3268
- function Ni(e, t, i, s, a, l) {
3269
- const n = $("w-icon"), r = $("w-progress");
3270
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
3280
+ }, Ai = ["for"], Wi = ["src"], Ki = ["for"];
3281
+ function Ni(e, t, i, o, n, l) {
3282
+ const a = $("w-icon"), r = $("w-progress");
3283
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3271
3284
  valid: e.valid,
3272
3285
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3273
3286
  onReset: t[11] || (t[11] = (d) => {
3274
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
3287
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
3275
3288
  }),
3276
3289
  wrap: l.hasLabel && i.labelPosition !== "inside",
3277
- class: l.classes
3290
+ class: l.classes,
3291
+ style: e.$attrs.style
3278
3292
  }), {
3279
3293
  default: m(() => [
3280
- i.type === "hidden" ? A((o(), u("input", {
3294
+ i.type === "hidden" ? W((s(), u("input", {
3281
3295
  key: 0,
3282
3296
  type: "hidden",
3283
3297
  name: e.name || null,
3284
- "onUpdate:modelValue": t[0] || (t[0] = (d) => a.inputValue = d)
3285
- }, null, 8, xi)), [
3286
- [be, a.inputValue]
3287
- ]) : (o(), u(k, { key: 1 }, [
3288
- i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
3289
- e.$slots.default || i.label ? (o(), u("label", {
3298
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3299
+ }, null, 8, Oi)), [
3300
+ [be, n.inputValue]
3301
+ ]) : (s(), u(k, { key: 1 }, [
3302
+ i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
3303
+ e.$slots.default || i.label ? (s(), u("label", {
3290
3304
  key: 0,
3291
3305
  class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
3292
3306
  for: `w-input--${e._.uid}`
@@ -3294,7 +3308,7 @@ function Ni(e, t, i, s, a, l) {
3294
3308
  c(e.$slots, "default", {}, () => [
3295
3309
  S(C(i.label), 1)
3296
3310
  ])
3297
- ], 10, Oi)) : p("", !0)
3311
+ ], 10, xi)) : p("", !0)
3298
3312
  ], 64)) : p("", !0),
3299
3313
  y("div", {
3300
3314
  class: f(["w-input__input-wrap", l.inputWrapClasses])
@@ -3302,7 +3316,7 @@ function Ni(e, t, i, s, a, l) {
3302
3316
  c(e.$slots, "icon-left", {
3303
3317
  inputId: `w-input--${e._.uid}`
3304
3318
  }, () => [
3305
- i.innerIconLeft ? (o(), g(n, {
3319
+ i.innerIconLeft ? (s(), g(a, {
3306
3320
  key: 0,
3307
3321
  class: "w-input__icon w-input__icon--inner-left",
3308
3322
  tag: "label",
@@ -3315,12 +3329,11 @@ function Ni(e, t, i, s, a, l) {
3315
3329
  _: 1
3316
3330
  }, 8, ["for"])) : p("", !0)
3317
3331
  ]),
3318
- i.type !== "file" ? A((o(), u("input", B({
3332
+ i.type !== "file" ? W((s(), u("input", B({
3319
3333
  key: 0,
3320
3334
  class: "w-input__input",
3321
3335
  ref: "input",
3322
- "onUpdate:modelValue": t[2] || (t[2] = (d) => a.inputValue = d)
3323
- }, H(l.listeners, !0), {
3336
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d),
3324
3337
  onInput: t[3] || (t[3] = (...d) => l.onInput && l.onInput(...d)),
3325
3338
  onFocus: t[4] || (t[4] = (...d) => l.onFocus && l.onFocus(...d)),
3326
3339
  onBlur: t[5] || (t[5] = (...d) => l.onBlur && l.onBlur(...d)),
@@ -3339,8 +3352,8 @@ function Ni(e, t, i, s, a, l) {
3339
3352
  required: e.required || null,
3340
3353
  tabindex: e.tabindex || null
3341
3354
  }, l.attrs), null, 16, zi)), [
3342
- [$e, a.inputValue]
3343
- ]) : (o(), u(k, { key: 1 }, [
3355
+ [$e, n.inputValue]
3356
+ ]) : (s(), u(k, { key: 1 }, [
3344
3357
  y("input", B({
3345
3358
  ref: "input",
3346
3359
  id: `w-input--${e._.uid}`,
@@ -3355,25 +3368,25 @@ function Ni(e, t, i, s, a, l) {
3355
3368
  "data-progress": l.overallFilesProgress
3356
3369
  /* Needed to emit the overallProgress. */
3357
3370
  }), null, 16, Mi),
3358
- I(oe, {
3371
+ I(se, {
3359
3372
  class: "w-input__input w-input__input--file",
3360
3373
  tag: "label",
3361
3374
  name: "fade",
3362
3375
  for: `w-input--${e._.uid}`
3363
3376
  }, {
3364
3377
  default: m(() => [
3365
- !a.inputFiles.length && a.isFocused ? (o(), u("span", Ei, [
3378
+ !n.inputFiles.length && n.isFocused ? (s(), u("span", Ei, [
3366
3379
  c(e.$slots, "no-file", {}, () => [
3367
- e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
3380
+ e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
3368
3381
  S("No file")
3369
3382
  ], 64)) : p("", !0)
3370
3383
  ])
3371
3384
  ])) : p("", !0),
3372
- (o(!0), u(k, null, L(a.inputFiles, (d, h) => (o(), u("span", {
3385
+ (s(!0), u(k, null, R(n.inputFiles, (d, h) => (s(), u("span", {
3373
3386
  key: d.lastModified
3374
3387
  }, [
3375
3388
  S(C(h ? ", " : ""), 1),
3376
- (o(), u("span", {
3389
+ (s(), u("span", {
3377
3390
  class: "filename",
3378
3391
  key: `${h}b`
3379
3392
  }, C(d.base), 1)),
@@ -3383,8 +3396,8 @@ function Ni(e, t, i, s, a, l) {
3383
3396
  _: 3
3384
3397
  }, 8, ["for"])
3385
3398
  ], 64)),
3386
- i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
3387
- e.$slots.default || i.label ? (o(), u("label", {
3399
+ i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 2 }, [
3400
+ e.$slots.default || i.label ? (s(), u("label", {
3388
3401
  key: 0,
3389
3402
  class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
3390
3403
  }, [
@@ -3396,7 +3409,7 @@ function Ni(e, t, i, s, a, l) {
3396
3409
  c(e.$slots, "icon-right", {
3397
3410
  inputId: `w-input--${e._.uid}`
3398
3411
  }, () => [
3399
- i.innerIconRight ? (o(), g(n, {
3412
+ i.innerIconRight ? (s(), g(a, {
3400
3413
  key: 0,
3401
3414
  class: "w-input__icon w-input__icon--inner-right",
3402
3415
  tag: "label",
@@ -3409,7 +3422,7 @@ function Ni(e, t, i, s, a, l) {
3409
3422
  _: 1
3410
3423
  }, 8, ["for"])) : p("", !0)
3411
3424
  ]),
3412
- l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
3425
+ l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (s(), g(r, {
3413
3426
  key: 3,
3414
3427
  class: "fill-width",
3415
3428
  size: "2",
@@ -3417,28 +3430,28 @@ function Ni(e, t, i, s, a, l) {
3417
3430
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3418
3431
  }, null, 8, ["color", "model-value"])) : p("", !0)
3419
3432
  ], 2),
3420
- i.type === "file" && i.preview && a.inputFiles.length ? (o(), u("label", {
3433
+ i.type === "file" && i.preview && n.inputFiles.length ? (s(), u("label", {
3421
3434
  key: 1,
3422
3435
  class: "d-flex",
3423
3436
  for: `w-input--${e._.uid}`
3424
3437
  }, [
3425
- (o(!0), u(k, null, L(a.inputFiles, (d, h) => (o(), u(k, null, [
3426
- d.progress < 100 ? (o(), u("i", {
3438
+ (s(!0), u(k, null, R(n.inputFiles, (d, h) => (s(), u(k, null, [
3439
+ d.progress < 100 ? (s(), u("i", {
3427
3440
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3428
3441
  key: `${h}a`
3429
- })) : d.preview ? (o(), u("img", {
3442
+ })) : d.preview ? (s(), u("img", {
3430
3443
  class: "w-input__file-preview",
3431
3444
  key: `${h}b`,
3432
3445
  src: d.preview,
3433
3446
  alt: ""
3434
- }, null, 8, Ai)) : (o(), u("i", {
3447
+ }, null, 8, Wi)) : (s(), u("i", {
3435
3448
  class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
3436
3449
  key: `${h}c`
3437
3450
  }, null, 2))
3438
3451
  ], 64))), 256))
3439
- ], 8, Wi)) : p("", !0),
3440
- i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
3441
- e.$slots.default || i.label ? (o(), u("label", {
3452
+ ], 8, Ai)) : p("", !0),
3453
+ i.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
3454
+ e.$slots.default || i.label ? (s(), u("label", {
3442
3455
  key: 0,
3443
3456
  class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
3444
3457
  for: `w-input--${e._.uid}`
@@ -3451,11 +3464,13 @@ function Ni(e, t, i, s, a, l) {
3451
3464
  ], 64))
3452
3465
  ]),
3453
3466
  _: 3
3454
- }, 16, ["valid", "wrap", "class"]);
3467
+ }, 16, ["valid", "wrap", "class", "style"]);
3455
3468
  }
3456
3469
  const Di = {
3457
3470
  name: "w-input",
3458
3471
  mixins: [M],
3472
+ inheritAttrs: !1,
3473
+ // The attrs should only be added to the input not the wrapper.
3459
3474
  props: {
3460
3475
  modelValue: { default: "" },
3461
3476
  type: { type: String, default: "text" },
@@ -3512,12 +3527,8 @@ const Di = {
3512
3527
  },
3513
3528
  computed: {
3514
3529
  attrs() {
3515
- const { class: e, ...t } = this.$attrs;
3516
- return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
3517
- },
3518
- listeners() {
3519
- const { input: e, focus: t, blur: i, class: s, style: a, ...l } = this.$attrs;
3520
- return l;
3530
+ const { class: e, style: t, ...i } = this.$attrs;
3531
+ return this.type === "file" && !this.inputFiles.length && (i.value = null), i;
3521
3532
  },
3522
3533
  hasValue() {
3523
3534
  switch (this.type) {
@@ -3546,7 +3557,7 @@ const Di = {
3546
3557
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3547
3558
  },
3548
3559
  overallFilesProgress() {
3549
- const t = +this.inputFiles.reduce((i, s) => i + s.progress, 0) / this.inputFiles.length;
3560
+ const t = +this.inputFiles.reduce((i, o) => i + o.progress, 0) / this.inputFiles.length;
3550
3561
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : 0), t;
3551
3562
  },
3552
3563
  uploadInProgress() {
@@ -3569,7 +3580,9 @@ const Di = {
3569
3580
  "w-input--no-padding": !this.outline && !this.bgColor && !this.shadow && !this.round,
3570
3581
  "w-input--has-placeholder": this.placeholder,
3571
3582
  "w-input--inner-icon-left": this.innerIconLeft,
3572
- "w-input--inner-icon-right": this.innerIconRight
3583
+ "w-input--inner-icon-right": this.innerIconRight,
3584
+ // With the inheritAttrs set to false any class on the component would be lost, so add it back.
3585
+ [this.$attrs.class]: !!this.$attrs.class
3573
3586
  };
3574
3587
  },
3575
3588
  inputWrapClasses() {
@@ -3602,10 +3615,10 @@ const Di = {
3602
3615
  // For file input.
3603
3616
  onFileChange(e) {
3604
3617
  this.inputFiles = [...e.target.files].map((i) => {
3605
- const [, s = "", a = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), n = J({
3618
+ const [, o = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = G({
3606
3619
  name: i.name,
3607
- base: s || l,
3608
- extension: a,
3620
+ base: o || l,
3621
+ extension: n,
3609
3622
  type: i.type,
3610
3623
  size: i.size,
3611
3624
  lastModified: i.lastModified,
@@ -3613,15 +3626,15 @@ const Di = {
3613
3626
  progress: 0,
3614
3627
  file: i
3615
3628
  });
3616
- return this.readFile(i, n), n;
3629
+ return this.readFile(i, a), a;
3617
3630
  });
3618
3631
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3619
3632
  this.$emit("update:modelValue", t), this.$emit("input", t);
3620
3633
  },
3621
3634
  // For file input.
3622
3635
  readFile(e, t) {
3623
- const i = new FileReader(), s = typeof this.preview == "string", a = e.type && e.type.startsWith("image/");
3624
- this.preview && !s && a ? i.addEventListener("load", (l) => {
3636
+ const i = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3637
+ this.preview && !o && n ? i.addEventListener("load", (l) => {
3625
3638
  t.preview = l.target.result;
3626
3639
  }) : delete t.preview, i.addEventListener("progress", (l) => {
3627
3640
  l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
@@ -3639,16 +3652,16 @@ const Di = {
3639
3652
  }
3640
3653
  }
3641
3654
  }, Hi = /* @__PURE__ */ v(Di, [["render", Ni]]);
3642
- function Fi(e, t, i, s, a, l) {
3643
- const n = $("w-icon"), r = $("w-list", !0);
3644
- return o(), u("ul", {
3655
+ function Fi(e, t, i, o, n, l) {
3656
+ const a = $("w-icon"), r = $("w-list", !0);
3657
+ return s(), u("ul", {
3645
3658
  class: f(["w-list", l.classes])
3646
3659
  }, [
3647
- (o(!0), u(k, null, L(e.listItems, (d, h) => (o(), u("li", {
3660
+ (s(!0), u(k, null, R(e.listItems, (d, h) => (s(), u("li", {
3648
3661
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3649
3662
  key: h
3650
3663
  }, [
3651
- i.icon ? (o(), g(n, {
3664
+ i.icon ? (s(), g(a, {
3652
3665
  key: 0,
3653
3666
  class: "w-list__item-bullet"
3654
3667
  }, {
@@ -3657,7 +3670,7 @@ function Fi(e, t, i, s, a, l) {
3657
3670
  ]),
3658
3671
  _: 1
3659
3672
  })) : p("", !0),
3660
- e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
3673
+ e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
3661
3674
  key: 1,
3662
3675
  class: "w-list__item-label",
3663
3676
  ref_for: !0
@@ -3683,12 +3696,12 @@ function Fi(e, t, i, s, a, l) {
3683
3696
  ])
3684
3697
  ]),
3685
3698
  _: 2
3686
- }, 1040)) : (o(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
3699
+ }, 1040)) : (s(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
3687
3700
  key: 2,
3688
3701
  class: "w-list__item-label",
3689
3702
  ref_for: !0
3690
3703
  }, l.liLabelProps(d, h, d._selected)), null, 16)),
3691
- (d.children || []).length ? (o(), g(r, B({
3704
+ (d.children || []).length ? (s(), g(r, B({
3692
3705
  key: 3,
3693
3706
  ref_for: !0
3694
3707
  }, e.$props, {
@@ -3698,7 +3711,7 @@ function Fi(e, t, i, s, a, l) {
3698
3711
  onInput: t[1] || (t[1] = (w) => e.$emit("input", w)),
3699
3712
  onItemClick: t[2] || (t[2] = (w) => e.$emit("item-click", w)),
3700
3713
  onItemSelect: t[3] || (t[3] = (w) => e.$emit("item-select", w))
3701
- }), Q({ _: 2 }, [
3714
+ }), J({ _: 2 }, [
3702
3715
  e.$slots.item ? {
3703
3716
  name: "item",
3704
3717
  fn: m(({ item: w, index: _, selected: b }) => [
@@ -3832,14 +3845,14 @@ const ji = {
3832
3845
  };
3833
3846
  },
3834
3847
  liLabelProps(e, t, i) {
3835
- const s = this.$slots[`item.${t + 1}`] || this.$slots.item, a = () => {
3848
+ const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3836
3849
  if (!e.disabled) {
3837
3850
  const d = this.cleanLi(e);
3838
3851
  this.$emit("item-click", d), this.$emit("item-select", d);
3839
3852
  }
3840
3853
  }, l = this.isSelectable && ((d) => {
3841
3854
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3842
- }), n = this.isSelectable && ((d) => {
3855
+ }), a = this.isSelectable && ((d) => {
3843
3856
  !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));
3844
3857
  }), r = {
3845
3858
  class: this.liLabelClasses(e),
@@ -3848,12 +3861,12 @@ const ji = {
3848
3861
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3849
3862
  role: "option"
3850
3863
  };
3851
- 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) => {
3864
+ return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, o || (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) => {
3852
3865
  const h = d.target.querySelector('input[type="checkbox"]');
3853
- h && (h.focus(), h.click()), a();
3854
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3855
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), a();
3856
- }) : (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;
3866
+ h && (h.focus(), h.click()), n();
3867
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3868
+ d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3869
+ }) : (r.href = e[this.itemRouteKey], r.onClick = n)), o || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), o || (r.innerHTML = e._label)), r;
3857
3870
  },
3858
3871
  // Convert the received items selection to array if it is a unique value.
3859
3872
  // Also accept objects if returnObject is true and convert to the object's value.
@@ -3867,7 +3880,7 @@ const ji = {
3867
3880
  const e = this.selectedItems.map((i) => {
3868
3881
  if (!this.returnObject)
3869
3882
  return i._value;
3870
- const { _value: s, _selected: a, ...l } = i;
3883
+ const { _value: o, _selected: n, ...l } = i;
3871
3884
  return l;
3872
3885
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3873
3886
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3878,8 +3891,8 @@ const ji = {
3878
3891
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3879
3892
  },
3880
3893
  cleanLi(e) {
3881
- const { _index: t, _value: i, _label: s, _selected: a, _focused: l, ...n } = e;
3882
- return n;
3894
+ const { _index: t, _value: i, _label: o, _selected: n, _focused: l, ...a } = e;
3895
+ return a;
3883
3896
  },
3884
3897
  refreshListItems() {
3885
3898
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -3898,7 +3911,7 @@ const ji = {
3898
3911
  this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
3899
3912
  const t = this.checkSelection(e);
3900
3913
  this.listItems.forEach((i) => {
3901
- i._selected = t.find((s) => i._value === s) !== void 0;
3914
+ i._selected = t.find((o) => i._value === o) !== void 0;
3902
3915
  });
3903
3916
  }
3904
3917
  },
@@ -3962,7 +3975,7 @@ const ji = {
3962
3975
  let e = ".w-app";
3963
3976
  typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
3964
3977
  let t = this.appendTo || e;
3965
- return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, j(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (j(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
3978
+ return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, F(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (F(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
3966
3979
  },
3967
3980
  // DOM element that will receive the tooltip/menu.
3968
3981
  // ! \ This computed uses the DOM - NO SSR (only trigger from beforeMount and later).
@@ -4007,41 +4020,41 @@ const ji = {
4007
4020
  },
4008
4021
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4009
4022
  getActivatorCoordinates() {
4010
- const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
4011
- let a = { top: e, left: t, width: i, height: s };
4023
+ const { top: e, left: t, width: i, height: o } = this.activatorEl.getBoundingClientRect();
4024
+ let n = { top: e, left: t, width: i, height: o };
4012
4025
  if (!this.fixed) {
4013
- const { top: l, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4014
- a = {
4015
- ...a,
4026
+ const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4027
+ n = {
4028
+ ...n,
4016
4029
  top: e - l + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
4017
- left: t - n + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
4030
+ left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
4018
4031
  };
4019
4032
  }
4020
- return a;
4033
+ return n;
4021
4034
  },
4022
4035
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4023
4036
  computeDetachableCoords() {
4024
- let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
4037
+ let { top: e, left: t, width: i, height: o } = this.getActivatorCoordinates();
4025
4038
  if (!this.detachableEl)
4026
4039
  return;
4027
4040
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
4028
- const a = window.getComputedStyle(this.detachableEl, null);
4041
+ const n = window.getComputedStyle(this.detachableEl, null);
4029
4042
  switch (this.position) {
4030
4043
  case "top": {
4031
- 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);
4044
+ 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);
4032
4045
  break;
4033
4046
  }
4034
4047
  case "bottom": {
4035
- e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4048
+ e += o, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4036
4049
  break;
4037
4050
  }
4038
4051
  case "left": {
4039
- t -= this.detachableEl.offsetWidth, this.alignBottom ? e += s - this.detachableEl.offsetHeight : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2);
4052
+ t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
4040
4053
  break;
4041
4054
  }
4042
4055
  case "right": {
4043
- 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.
4044
- parseInt(a.getPropertyValue("margin-top")));
4056
+ t += i, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4057
+ parseInt(n.getPropertyValue("margin-top")));
4045
4058
  break;
4046
4059
  }
4047
4060
  }
@@ -4072,11 +4085,11 @@ const ji = {
4072
4085
  const e = typeof this.activator == "string";
4073
4086
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
4074
4087
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
4075
- const s = (a) => {
4088
+ const o = (n) => {
4076
4089
  var l;
4077
- (e && ((l = a.target) != null && l.matches) && a.target.matches(this.activator) || a.target === this.activatorEl || this.activatorEl.contains(a.target)) && i(a);
4090
+ (e && ((l = n.target) != null && l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
4078
4091
  };
4079
- document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
4092
+ document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
4080
4093
  });
4081
4094
  }
4082
4095
  },
@@ -4100,16 +4113,16 @@ const ji = {
4100
4113
  }
4101
4114
  }
4102
4115
  };
4103
- function qi(e, t, i, s, a, l) {
4104
- const n = $("w-card"), r = $("w-overlay");
4105
- return o(), u(k, null, [
4116
+ function qi(e, t, i, o, n, l) {
4117
+ const a = $("w-card"), r = $("w-overlay");
4118
+ return s(), u(k, null, [
4106
4119
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
4107
- I(x, {
4120
+ I(O, {
4108
4121
  name: l.transitionName,
4109
4122
  appear: ""
4110
4123
  }, {
4111
4124
  default: m(() => [
4112
- i.custom && e.detachableVisible ? (o(), u("div", B({
4125
+ i.custom && e.detachableVisible ? (s(), u("div", B({
4113
4126
  key: 0,
4114
4127
  class: "w-menu",
4115
4128
  ref: "detachable"
@@ -4121,7 +4134,7 @@ function qi(e, t, i, s, a, l) {
4121
4134
  style: l.styles
4122
4135
  }), [
4123
4136
  c(e.$slots, "default")
4124
- ], 16)) : e.detachableVisible ? (o(), g(n, B({
4137
+ ], 16)) : e.detachableVisible ? (s(), g(a, B({
4125
4138
  key: 1,
4126
4139
  class: "w-menu",
4127
4140
  ref: "detachable"
@@ -4136,7 +4149,7 @@ function qi(e, t, i, s, a, l) {
4136
4149
  "no-border": i.noBorder,
4137
4150
  class: l.classes,
4138
4151
  style: l.styles
4139
- }), Q({
4152
+ }), J({
4140
4153
  default: m(() => [
4141
4154
  c(e.$slots, "default")
4142
4155
  ]),
@@ -4160,7 +4173,7 @@ function qi(e, t, i, s, a, l) {
4160
4173
  ]),
4161
4174
  _: 3
4162
4175
  }, 8, ["name"]),
4163
- i.overlay ? (o(), g(r, B({
4176
+ i.overlay ? (s(), g(r, B({
4164
4177
  key: 0,
4165
4178
  ref: "overlay",
4166
4179
  "model-value": e.detachableVisible,
@@ -4255,17 +4268,17 @@ const Xi = {
4255
4268
  return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
4256
4269
  },
4257
4270
  menuClasses() {
4258
- return W(this.menuClass);
4271
+ return A(this.menuClass);
4259
4272
  },
4260
4273
  titleClasses() {
4261
- return W(this.titleClass);
4274
+ return A(this.titleClass);
4262
4275
  },
4263
4276
  contentClasses() {
4264
- return W(this.contentClass);
4277
+ return A(this.contentClass);
4265
4278
  },
4266
4279
  overlayClasses() {
4267
4280
  return {
4268
- ...W(this.overlayClass),
4281
+ ...A(this.overlayClass),
4269
4282
  "w-overlay--no-pointer-event": this.showOnHover
4270
4283
  };
4271
4284
  },
@@ -4346,19 +4359,19 @@ const Xi = {
4346
4359
  }
4347
4360
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
4348
4361
  }, Yi = /* @__PURE__ */ v(Xi, [["render", qi]]);
4349
- function Gi(e, t, i, s, a, l) {
4350
- const n = $("w-alert");
4351
- return o(), g(x, {
4362
+ function Gi(e, t, i, o, n, l) {
4363
+ const a = $("w-alert");
4364
+ return s(), g(O, {
4352
4365
  name: l.transitionName,
4353
4366
  appear: ""
4354
4367
  }, {
4355
4368
  default: m(() => [
4356
- a.show ? (o(), u("div", {
4369
+ n.show ? (s(), u("div", {
4357
4370
  key: 0,
4358
4371
  class: f(["w-notification", l.classes]),
4359
- style: R(l.styles)
4372
+ style: L(l.styles)
4360
4373
  }, [
4361
- I(n, B(l.alertProps, {
4374
+ I(a, B(l.alertProps, {
4362
4375
  class: l.alertClasses,
4363
4376
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
4364
4377
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
@@ -4498,27 +4511,27 @@ const Ji = {
4498
4511
  }
4499
4512
  }
4500
4513
  }, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
4501
- function Zi(e, t, i, s, a, l) {
4502
- const n = ge("focus");
4503
- return o(), g(x, {
4514
+ function Zi(e, t, i, o, n, l) {
4515
+ const a = ge("focus");
4516
+ return s(), g(O, {
4504
4517
  name: "fade",
4505
4518
  appear: "",
4506
4519
  onAfterLeave: l.onClose
4507
4520
  }, {
4508
4521
  default: m(() => [
4509
- i.modelValue ? A((o(), u("div", {
4522
+ i.modelValue ? W((s(), u("div", {
4510
4523
  key: 0,
4511
4524
  class: f(["w-overlay", l.classes]),
4512
4525
  ref: "overlay",
4513
- style: R(i.modelValue && l.styles || null),
4526
+ style: L(i.modelValue && l.styles || null),
4514
4527
  onKeydown: t[0] || (t[0] = E(z((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
4515
4528
  onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
4516
4529
  tabindex: "0"
4517
4530
  }, [
4518
4531
  c(e.$slots, "default")
4519
4532
  ], 38)), [
4520
- [ae, e.showOverlay],
4521
- [n]
4533
+ [oe, e.showOverlay],
4534
+ [a]
4522
4535
  ]) : p("", !0)
4523
4536
  ]),
4524
4537
  _: 3
@@ -4583,8 +4596,8 @@ const el = {
4583
4596
  }
4584
4597
  }
4585
4598
  }, tl = /* @__PURE__ */ v(el, [["render", Zi]]), il = { class: "w-parallax" };
4586
- function ll(e, t, i, s, a, l) {
4587
- return o(), u("div", il);
4599
+ function ll(e, t, i, o, n, l) {
4600
+ return s(), u("div", il);
4588
4601
  }
4589
4602
  const sl = {
4590
4603
  name: "w-parallax",
@@ -4592,16 +4605,16 @@ const sl = {
4592
4605
  emits: [],
4593
4606
  data: () => ({})
4594
4607
  }, ol = /* @__PURE__ */ v(sl, [["render", ll]]), al = ["viewBox"], nl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], rl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4595
- function dl(e, t, i, s, a, l) {
4596
- return o(), u("div", {
4608
+ function dl(e, t, i, o, n, l) {
4609
+ return s(), u("div", {
4597
4610
  class: f(["w-progress", l.classes]),
4598
- style: R(l.styles)
4611
+ style: L(l.styles)
4599
4612
  }, [
4600
- i.circle ? (o(), u("svg", {
4613
+ i.circle ? (s(), u("svg", {
4601
4614
  key: 1,
4602
4615
  viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
4603
4616
  }, [
4604
- i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
4617
+ i.bgColor || this.progressValue > -1 ? (s(), u("circle", {
4605
4618
  key: 0,
4606
4619
  class: f(["bg", i.bgColor || null]),
4607
4620
  cx: l.circleCenter,
@@ -4620,14 +4633,14 @@ function dl(e, t, i, s, a, l) {
4620
4633
  "stroke-width": i.stroke,
4621
4634
  "stroke-linecap": i.roundCap && "round",
4622
4635
  "stroke-dasharray": e.circleCircumference,
4623
- style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4636
+ style: L(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4624
4637
  }, null, 12, rl)
4625
- ], 8, al)) : (o(), u("div", {
4638
+ ], 8, al)) : (s(), u("div", {
4626
4639
  key: 0,
4627
4640
  class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
4628
- style: R(`width: ${l.progressValue}%`)
4641
+ style: L(`width: ${l.progressValue}%`)
4629
4642
  }, null, 6)),
4630
- i.label || e.$slots.default ? (o(), u("div", {
4643
+ i.label || e.$slots.default ? (s(), u("div", {
4631
4644
  key: 2,
4632
4645
  class: f(["w-progress__label", i.labelColor || !1])
4633
4646
  }, [
@@ -4637,7 +4650,7 @@ function dl(e, t, i, s, a, l) {
4637
4650
  ], 2)) : p("", !0)
4638
4651
  ], 6);
4639
4652
  }
4640
- const G = 40, ul = G / 2, hl = Math.round(G * 3.14 * 100) / 100, cl = {
4653
+ const Y = 40, ul = Y / 2, hl = Math.round(Y * 3.14 * 100) / 100, cl = {
4641
4654
  name: "w-progress",
4642
4655
  props: {
4643
4656
  modelValue: { type: [Number, String, Boolean], default: -1 },
@@ -4664,7 +4677,7 @@ const G = 40, ul = G / 2, hl = Math.round(G * 3.14 * 100) / 100, cl = {
4664
4677
  },
4665
4678
  emits: [],
4666
4679
  data: () => ({
4667
- circleSize: G,
4680
+ circleSize: Y,
4668
4681
  circleRadius: ul,
4669
4682
  circleCircumference: hl
4670
4683
  }),
@@ -4673,7 +4686,7 @@ const G = 40, ul = G / 2, hl = Math.round(G * 3.14 * 100) / 100, cl = {
4673
4686
  return parseFloat(this.modelValue);
4674
4687
  },
4675
4688
  circleCenter() {
4676
- return G + this.stroke;
4689
+ return Y + this.stroke;
4677
4690
  },
4678
4691
  forcedSize() {
4679
4692
  return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
@@ -4707,11 +4720,11 @@ const G = 40, ul = G / 2, hl = Math.round(G * 3.14 * 100) / 100, cl = {
4707
4720
  }
4708
4721
  }
4709
4722
  }, pl = /* @__PURE__ */ v(cl, [["render", dl]]), fl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ml = ["for"], gl = ["for", "innerHTML"], bl = ["for"], yl = ["for", "innerHTML"];
4710
- function wl(e, t, i, s, a, l) {
4711
- return o(), g(T(e.formRegister && !l.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4723
+ function wl(e, t, i, o, n, l) {
4724
+ return s(), g(T(e.formRegister && !l.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4712
4725
  valid: e.valid,
4713
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
4714
- onReset: t[4] || (t[4] = (n) => {
4726
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4727
+ onReset: t[4] || (t[4] = (a) => {
4715
4728
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4716
4729
  }),
4717
4730
  class: l.classes
@@ -4726,13 +4739,13 @@ function wl(e, t, i, s, a, l) {
4726
4739
  disabled: e.isDisabled || e.isReadonly || null,
4727
4740
  required: e.required || null,
4728
4741
  tabindex: e.tabindex || null,
4729
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
4730
- onChange: t[1] || (t[1] = (n) => l.onInput(n)),
4742
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4743
+ onChange: t[1] || (t[1] = (a) => l.onInput(a)),
4731
4744
  "aria-checked": e.inputValue || "false",
4732
4745
  role: "radio"
4733
4746
  }, null, 40, fl),
4734
- l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
4735
- e.$slots.default ? (o(), u("label", {
4747
+ l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
4748
+ e.$slots.default ? (s(), u("label", {
4736
4749
  key: 0,
4737
4750
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4738
4751
  for: `w-radio--${e._.uid}`
@@ -4740,7 +4753,7 @@ function wl(e, t, i, s, a, l) {
4740
4753
  c(e.$slots, "default", {}, () => [
4741
4754
  S(C(i.label), 1)
4742
4755
  ])
4743
- ], 10, ml)) : i.label ? (o(), u("label", {
4756
+ ], 10, ml)) : i.label ? (s(), u("label", {
4744
4757
  key: 1,
4745
4758
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4746
4759
  for: `w-radio--${e._.uid}`,
@@ -4749,12 +4762,12 @@ function wl(e, t, i, s, a, l) {
4749
4762
  ], 64)) : p("", !0),
4750
4763
  y("div", {
4751
4764
  class: f(["w-radio__input", this.color]),
4752
- onClick: t[2] || (t[2] = (n) => {
4765
+ onClick: t[2] || (t[2] = (a) => {
4753
4766
  e.$refs.input.focus(), e.$refs.input.click();
4754
4767
  })
4755
4768
  }, null, 2),
4756
- l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
4757
- e.$slots.default ? (o(), u("label", {
4769
+ l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
4770
+ e.$slots.default ? (s(), u("label", {
4758
4771
  key: 0,
4759
4772
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4760
4773
  for: `w-radio--${e._.uid}`
@@ -4762,7 +4775,7 @@ function wl(e, t, i, s, a, l) {
4762
4775
  c(e.$slots, "default", {}, () => [
4763
4776
  S(C(i.label), 1)
4764
4777
  ])
4765
- ], 10, bl)) : i.label ? (o(), u("label", {
4778
+ ], 10, bl)) : i.label ? (s(), u("label", {
4766
4779
  key: 1,
4767
4780
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4768
4781
  for: `w-radio--${e._.uid}`,
@@ -4839,9 +4852,9 @@ const kl = {
4839
4852
  }
4840
4853
  }
4841
4854
  }, vl = /* @__PURE__ */ v(kl, [["render", wl]]), Cl = ["innerHTML"];
4842
- function Sl(e, t, i, s, a, l) {
4843
- const n = $("w-radio");
4844
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4855
+ function Sl(e, t, i, o, n, l) {
4856
+ const a = $("w-radio");
4857
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4845
4858
  valid: e.valid,
4846
4859
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4847
4860
  onReset: t[2] || (t[2] = (r) => {
@@ -4852,7 +4865,7 @@ function Sl(e, t, i, s, a, l) {
4852
4865
  class: l.classes
4853
4866
  }), {
4854
4867
  default: m(() => [
4855
- (o(!0), u(k, null, L(l.radioItems, (r, d) => (o(), g(n, B({
4868
+ (s(!0), u(k, null, R(l.radioItems, (r, d) => (s(), g(a, B({
4856
4869
  key: d,
4857
4870
  "model-value": r.value === i.modelValue,
4858
4871
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -4871,7 +4884,7 @@ function Sl(e, t, i, s, a, l) {
4871
4884
  index: d + 1,
4872
4885
  checked: r.value === i.modelValue,
4873
4886
  innerHTML: r.label
4874
- }) : r.label ? (o(), u("div", {
4887
+ }) : r.label ? (s(), u("div", {
4875
4888
  key: 1,
4876
4889
  innerHTML: r.label
4877
4890
  }, null, 8, Cl)) : p("", !0)
@@ -4936,12 +4949,12 @@ const Bl = {
4936
4949
  }
4937
4950
  }
4938
4951
  }, _l = /* @__PURE__ */ v(Bl, [["render", Sl]]), $l = ["id", "name", "value"], Vl = ["disabled", "onMouseenter", "onClick", "tabindex"];
4939
- function Il(e, t, i, s, a, l) {
4940
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4952
+ function Il(e, t, i, o, n, l) {
4953
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4941
4954
  valid: e.valid,
4942
- "onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
4943
- onReset: t[5] || (t[5] = (n) => {
4944
- e.$emit("update:modelValue", a.rating = null), e.$emit("input", null);
4955
+ "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4956
+ onReset: t[5] || (t[5] = (a) => {
4957
+ e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
4945
4958
  }),
4946
4959
  class: l.classes
4947
4960
  }), {
@@ -4950,31 +4963,31 @@ function Il(e, t, i, s, a, l) {
4950
4963
  id: e.inputName,
4951
4964
  name: e.inputName,
4952
4965
  type: "hidden",
4953
- value: a.rating
4966
+ value: n.rating
4954
4967
  }, null, 8, $l),
4955
- (o(!0), u(k, null, L(i.max, (n) => (o(), u(k, { key: n }, [
4968
+ (s(!0), u(k, null, R(i.max, (a) => (s(), u(k, { key: a }, [
4956
4969
  e.$slots.item ? c(e.$slots, "item", {
4957
4970
  key: 0,
4958
- index: n + 1
4971
+ index: a + 1
4959
4972
  }) : p("", !0),
4960
4973
  y("button", {
4961
- class: f(["w-rating__button", l.buttonClasses(n)]),
4974
+ class: f(["w-rating__button", l.buttonClasses(a)]),
4962
4975
  disabled: e.isDisabled || e.isReadonly,
4963
- onMouseenter: (r) => a.hover = n,
4964
- onMouseleave: t[0] || (t[0] = (r) => a.hover = 0),
4965
- onClick: (r) => l.onButtonClick(n),
4976
+ onMouseenter: (r) => n.hover = a,
4977
+ onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
4978
+ onClick: (r) => l.onButtonClick(a),
4966
4979
  onFocus: t[1] || (t[1] = (...r) => l.onFocus && l.onFocus(...r)),
4967
4980
  onBlur: t[2] || (t[2] = (...r) => l.onBlur && l.onBlur(...r)),
4968
4981
  onKeydown: t[3] || (t[3] = (...r) => l.onKeydown && l.onKeydown(...r)),
4969
4982
  type: "button",
4970
- tabindex: n === 1 ? 0 : -1
4983
+ tabindex: a === 1 ? 0 : -1
4971
4984
  }, [
4972
- n - 1 === ~~a.rating && a.rating - ~~a.rating ? (o(), u("i", {
4985
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4973
4986
  key: 0,
4974
4987
  class: f(["w-icon", `${i.icon} ${i.color}`]),
4975
4988
  role: "icon",
4976
4989
  "aria-hidden": "true",
4977
- style: R(l.halfStarStyle)
4990
+ style: L(l.halfStarStyle)
4978
4991
  }, null, 6)) : p("", !0)
4979
4992
  ], 42, Vl)
4980
4993
  ], 64))), 128))
@@ -5077,26 +5090,26 @@ const Tl = {
5077
5090
  }
5078
5091
  }
5079
5092
  }, Ll = /* @__PURE__ */ v(Tl, [["render", Il]]);
5080
- function Rl(e, t, i, s, a, l) {
5081
- return o(), u(k, null, [
5093
+ function Rl(e, t, i, o, n, l) {
5094
+ return s(), u(k, null, [
5082
5095
  y("div", B({
5083
5096
  class: ["w-scrollable", l.scrollableClasses],
5084
5097
  ref: "scrollable",
5085
- onMouseenter: t[0] || (t[0] = (...n) => l.onMouseEnter && l.onMouseEnter(...n)),
5086
- onMouseleave: t[1] || (t[1] = (...n) => l.onMouseLeave && l.onMouseLeave(...n)),
5087
- onMousewheel: t[2] || (t[2] = (...n) => l.onMouseWheel && l.onMouseWheel(...n))
5098
+ onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
5099
+ onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
5100
+ onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
5088
5101
  }, e.$attrs, { style: l.scrollableStyles }), [
5089
5102
  c(e.$slots, "default")
5090
5103
  ], 16),
5091
5104
  y("div", {
5092
5105
  class: f(["w-scrollbar", l.scrollbarClasses]),
5093
5106
  ref: "track",
5094
- onMousedown: t[3] || (t[3] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n))
5107
+ onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
5095
5108
  }, [
5096
5109
  y("div", {
5097
5110
  class: "w-scrollbar__thumb",
5098
5111
  ref: "thumb",
5099
- style: R(l.thumbStyles)
5112
+ style: L(l.thumbStyles)
5100
5113
  }, null, 4)
5101
5114
  ], 34)
5102
5115
  ], 64);
@@ -5124,7 +5137,7 @@ const Pl = {
5124
5137
  deltaXorY: "deltaY",
5125
5138
  scrollTopOrLeft: "scrollTop"
5126
5139
  }
5127
- }, xl = {
5140
+ }, Ol = {
5128
5141
  name: "w-scrollable",
5129
5142
  props: {
5130
5143
  color: { type: String, default: "primary" },
@@ -5144,8 +5157,8 @@ const Pl = {
5144
5157
  }),
5145
5158
  computed: {
5146
5159
  isHorizontal() {
5147
- var e, t, i, s;
5148
- return this.mounted ? (console.log("💂‍♂️", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((s = this.$refs.scrollable) == null ? void 0 : s.offsetWidth)) : !1;
5160
+ var e, t, i, o;
5161
+ return this.mounted ? (console.log("💂‍♂️", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((o = this.$refs.scrollable) == null ? void 0 : o.offsetWidth)) : !1;
5149
5162
  },
5150
5163
  m() {
5151
5164
  return Pl[this.isHorizontal ? "h" : "v"];
@@ -5181,8 +5194,8 @@ const Pl = {
5181
5194
  onTrackMouseDown(e) {
5182
5195
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
5183
5196
  return;
5184
- const { top: t, left: i, width: s, height: a } = this.$refs.track.getBoundingClientRect();
5185
- 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 });
5197
+ const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
5198
+ this.isHorizontal ? (this.$refs.track.width = o, 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 });
5186
5199
  },
5187
5200
  onDrag(e) {
5188
5201
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -5202,8 +5215,8 @@ const Pl = {
5202
5215
  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()));
5203
5216
  },
5204
5217
  computeScroll(e) {
5205
- const { top: t, left: i, width: s, height: a } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, n = this.isHorizontal ? s : a;
5206
- this.scrollValuePercent = Math.max(0, Math.min((e - l) / n * 100, 100));
5218
+ const { top: t, left: i, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? o : n;
5219
+ this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
5207
5220
  },
5208
5221
  scroll() {
5209
5222
  var e;
@@ -5218,13 +5231,13 @@ const Pl = {
5218
5231
  const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
5219
5232
  this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style.padding = 0, window.addEventListener("resize", this.onResize);
5220
5233
  }
5221
- }, Ol = /* @__PURE__ */ v(xl, [["render", Rl]]), zl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
5234
+ }, xl = /* @__PURE__ */ v(Ol, [["render", Rl]]), zl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
5222
5235
  key: 0,
5223
5236
  class: "w-select__selection-slot"
5224
- }, El = ["innerHTML"], Wl = ["value", "name"];
5225
- function Al(e, t, i, s, a, l) {
5226
- const n = $("w-icon"), r = $("w-list"), d = $("w-menu");
5227
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
5237
+ }, El = ["innerHTML"], Al = ["value", "name"];
5238
+ function Wl(e, t, i, o, n, l) {
5239
+ const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
5240
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
5228
5241
  valid: e.valid,
5229
5242
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
5230
5243
  onReset: l.onReset,
@@ -5232,8 +5245,8 @@ function Al(e, t, i, s, a, l) {
5232
5245
  class: l.classes
5233
5246
  }), {
5234
5247
  default: m(() => [
5235
- i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
5236
- e.$slots.default || i.label ? (o(), u("label", {
5248
+ i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
5249
+ e.$slots.default || i.label ? (s(), u("label", {
5237
5250
  key: 0,
5238
5251
  class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
5239
5252
  onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
@@ -5265,7 +5278,7 @@ function Al(e, t, i, s, a, l) {
5265
5278
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
5266
5279
  }, [
5267
5280
  c(e.$slots, "icon-left", {}, () => [
5268
- i.innerIconLeft ? (o(), g(n, {
5281
+ i.innerIconLeft ? (s(), g(a, {
5269
5282
  key: 0,
5270
5283
  class: "w-select__icon w-select__icon--inner-left",
5271
5284
  tag: "label",
@@ -5277,7 +5290,7 @@ function Al(e, t, i, s, a, l) {
5277
5290
  _: 1
5278
5291
  })) : p("", !0)
5279
5292
  ]),
5280
- e.$slots.selection ? (o(), u("div", Ml, [
5293
+ e.$slots.selection ? (s(), u("div", Ml, [
5281
5294
  c(e.$slots, "selection", {
5282
5295
  item: i.multiple ? e.inputValue : e.inputValue[0]
5283
5296
  })
@@ -5289,14 +5302,14 @@ function Al(e, t, i, s, a, l) {
5289
5302
  onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
5290
5303
  onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
5291
5304
  }, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, El),
5292
- (o(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (h, w) => (o(), u("input", {
5305
+ (s(!0), u(k, null, R(e.inputValue.length ? e.inputValue : [{}], (h, w) => (s(), u("input", {
5293
5306
  key: w,
5294
5307
  type: "hidden",
5295
5308
  value: h.value === void 0 ? "" : h.value.toString(),
5296
5309
  name: e.inputName + (i.multiple ? "[]" : "")
5297
- }, null, 8, Wl))), 128)),
5298
- i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
5299
- e.$slots.default || i.label ? (o(), u("label", {
5310
+ }, null, 8, Al))), 128)),
5311
+ i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 1 }, [
5312
+ e.$slots.default || i.label ? (s(), u("label", {
5300
5313
  key: 0,
5301
5314
  class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
5302
5315
  }, [
@@ -5306,7 +5319,7 @@ function Al(e, t, i, s, a, l) {
5306
5319
  ], 2)) : p("", !0)
5307
5320
  ], 64)) : p("", !0),
5308
5321
  c(e.$slots, "icon-right", {}, () => [
5309
- i.innerIconRight ? (o(), g(n, {
5322
+ i.innerIconRight ? (s(), g(a, {
5310
5323
  key: 0,
5311
5324
  class: "w-select__icon w-select__icon--inner-right",
5312
5325
  tag: "label",
@@ -5340,8 +5353,8 @@ function Al(e, t, i, s, a, l) {
5340
5353
  "item-color-key": i.itemColorKey,
5341
5354
  role: "listbox",
5342
5355
  tabindex: "-1"
5343
- }, Q({ _: 2 }, [
5344
- L(i.items.length, (h) => ({
5356
+ }, J({ _: 2 }, [
5357
+ R(i.items.length, (h) => ({
5345
5358
  name: `item.${h}`,
5346
5359
  fn: m(({ item: w, selected: _, index: b }) => [
5347
5360
  e.$slots[`item.${h}`] && e.$slots[`item.${h}`](w, _, b) ? c(e.$slots, `item.${h}`, {
@@ -5365,8 +5378,8 @@ function Al(e, t, i, s, a, l) {
5365
5378
  ]),
5366
5379
  _: 3
5367
5380
  }, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
5368
- i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
5369
- e.$slots.default || i.label ? (o(), u("label", {
5381
+ i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
5382
+ e.$slots.default || i.label ? (s(), u("label", {
5370
5383
  key: 0,
5371
5384
  class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
5372
5385
  onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
@@ -5526,20 +5539,20 @@ const Kl = {
5526
5539
  if (t === void 0)
5527
5540
  t = e.keyCode === 38 ? i.length - 1 : 0;
5528
5541
  else {
5529
- const a = e.keyCode === 38 ? -1 : 1;
5530
- t = (t + i.length + a) % i.length;
5542
+ const n = e.keyCode === 38 ? -1 : 1;
5543
+ t = (t + i.length + n) % i.length;
5531
5544
  }
5532
- let s = !1;
5545
+ let o = !1;
5533
5546
  if (i[t].disabled) {
5534
- const a = e.keyCode === 38 ? -1 : 1;
5535
- let l = (t + a + i.length) % i.length;
5536
- const n = i.length;
5547
+ const n = e.keyCode === 38 ? -1 : 1;
5548
+ let l = (t + n + i.length) % i.length;
5549
+ const a = i.length;
5537
5550
  let r = 0;
5538
- for (; r < n && i[l].disabled; )
5539
- l = (l + i.length + a) % i.length, r++;
5540
- r >= n && (s = !0), t = l;
5551
+ for (; r < a && i[l].disabled; )
5552
+ l = (l + i.length + n) % i.length, r++;
5553
+ r >= a && (o = !0), t = l;
5541
5554
  }
5542
- s || this.onInput(i[t]);
5555
+ o || this.onInput(i[t]);
5543
5556
  }
5544
5557
  else
5545
5558
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
@@ -5548,14 +5561,14 @@ const Kl = {
5548
5561
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
5549
5562
  },
5550
5563
  focusItemOnQuickLookup(e) {
5551
- var s, a, l;
5564
+ var o, n, l;
5552
5565
  this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
5553
5566
  const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
5554
- (n) => !n.disabled && n[this.itemLabelKey].match(t)
5567
+ (a) => !a.disabled && a[this.itemLabelKey].match(t)
5555
5568
  ) + 1;
5556
5569
  if (i) {
5557
- const n = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5558
- (l = (a = (s = this.$refs["w-list"]) == null ? void 0 : s.$el) == null ? void 0 : a.querySelector(n)) == null || l.focus();
5570
+ const a = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5571
+ (l = (n = (o = this.$refs["w-list"]) == null ? void 0 : o.$el) == null ? void 0 : n.querySelector(a)) == null || l.focus();
5559
5572
  }
5560
5573
  },
5561
5574
  // The items are given by the w-list component.
@@ -5583,8 +5596,8 @@ const Kl = {
5583
5596
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
5584
5597
  const t = this.selectItems.map((i) => i.value);
5585
5598
  return e.map((i) => {
5586
- let s = i;
5587
- return i && typeof i == "object" && (s = i[this.itemValueKey] ?? i[this.itemLabelKey] ?? i), this.selectItems[t.indexOf(s)];
5599
+ let o = i;
5600
+ return i && typeof i == "object" && (o = i[this.itemValueKey] ?? i[this.itemLabelKey] ?? i), this.selectItems[t.indexOf(o)];
5588
5601
  }).filter((i) => i !== void 0);
5589
5602
  },
5590
5603
  // Open the dropdown selection list.
@@ -5615,28 +5628,28 @@ const Kl = {
5615
5628
  this.inputValue = this.checkSelection(this.modelValue);
5616
5629
  }
5617
5630
  }
5618
- }, Nl = /* @__PURE__ */ v(Kl, [["render", Al]]), Dl = ["for"], Hl = ["for", "innerHTML"], Fl = { class: "w-slider__track-wrap" }, jl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ul = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], ql = ["for"], Xl = { key: 0 }, Yl = {
5631
+ }, Nl = /* @__PURE__ */ v(Kl, [["render", Wl]]), Dl = ["for"], Hl = ["for", "innerHTML"], Fl = { class: "w-slider__track-wrap" }, jl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ul = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], ql = ["for"], Xl = { key: 0 }, Yl = {
5619
5632
  key: 0,
5620
5633
  class: "w-slider__step-labels"
5621
5634
  }, Gl = ["onClick"], Jl = ["for"], Ql = ["for", "innerHTML"];
5622
- function Zl(e, t, i, s, a, l) {
5623
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5635
+ function Zl(e, t, i, o, n, l) {
5636
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5624
5637
  valid: e.valid,
5625
- "onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
5626
- onReset: t[9] || (t[9] = (n) => {
5638
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5639
+ onReset: t[9] || (t[9] = (a) => {
5627
5640
  e.rangeValuePercent = 0, l.updateRangeValueScaled();
5628
5641
  }),
5629
5642
  wrap: e.formRegister || null,
5630
5643
  class: l.wrapperClasses
5631
5644
  }), {
5632
5645
  default: m(() => [
5633
- e.$slots["label-left"] ? (o(), u("label", {
5646
+ e.$slots["label-left"] ? (s(), u("label", {
5634
5647
  key: 0,
5635
5648
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5636
5649
  for: `button--${e._.uid}`
5637
5650
  }, [
5638
5651
  c(e.$slots, "label-left")
5639
- ], 10, Dl)) : i.labelLeft ? (o(), u("label", {
5652
+ ], 10, Dl)) : i.labelLeft ? (s(), u("label", {
5640
5653
  key: 1,
5641
5654
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5642
5655
  for: `button--${e._.uid}`,
@@ -5646,8 +5659,8 @@ function Zl(e, t, i, s, a, l) {
5646
5659
  y("div", {
5647
5660
  class: f(["w-slider__track", l.trackClasses]),
5648
5661
  ref: "track",
5649
- onMousedown: t[4] || (t[4] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5650
- onTouchstart: t[5] || (t[5] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5662
+ onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5663
+ onTouchstart: t[5] || (t[5] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5651
5664
  role: "slider",
5652
5665
  "aria-label": "Slider",
5653
5666
  "aria-valuemin": l.minVal,
@@ -5658,11 +5671,11 @@ function Zl(e, t, i, s, a, l) {
5658
5671
  }, [
5659
5672
  y("div", {
5660
5673
  class: f(["w-slider__range", l.rangeClasses]),
5661
- style: R(l.rangeStyles)
5674
+ style: L(l.rangeStyles)
5662
5675
  }, null, 6),
5663
5676
  y("div", {
5664
5677
  class: "w-slider__thumb",
5665
- style: R(l.thumbStyles)
5678
+ style: L(l.thumbStyles)
5666
5679
  }, [
5667
5680
  y("button", {
5668
5681
  class: f(["w-slider__thumb-button", [i.color]]),
@@ -5675,19 +5688,19 @@ function Zl(e, t, i, s, a, l) {
5675
5688
  "aria-readonly": e.isReadonly ? "true" : "false",
5676
5689
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5677
5690
  onKeydown: [
5678
- t[0] || (t[0] = E((n) => l.onKeyDown(n, -1), ["left"])),
5679
- t[1] || (t[1] = E((n) => l.onKeyDown(n, 1), ["right"]))
5691
+ t[0] || (t[0] = E((a) => l.onKeyDown(a, -1), ["left"])),
5692
+ t[1] || (t[1] = E((a) => l.onKeyDown(a, 1), ["right"]))
5680
5693
  ],
5681
- onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
5694
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5682
5695
  onClick: t[3] || (t[3] = z(() => {
5683
5696
  }, ["prevent"]))
5684
5697
  }, null, 42, Ul),
5685
- i.thumbLabel ? (o(), u("label", {
5698
+ i.thumbLabel ? (s(), u("label", {
5686
5699
  key: 0,
5687
5700
  class: f(["w-slider__thumb-label", l.thumbClasses]),
5688
5701
  for: `button--${e._.uid}`
5689
5702
  }, [
5690
- i.thumbLabel === "droplet" ? (o(), u("div", Xl, [
5703
+ i.thumbLabel === "droplet" ? (s(), u("div", Xl, [
5691
5704
  c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
5692
5705
  S(C(~~e.rangeValueScaled), 1)
5693
5706
  ])
@@ -5700,32 +5713,32 @@ function Zl(e, t, i, s, a, l) {
5700
5713
  ], 10, ql)) : p("", !0)
5701
5714
  ], 4)
5702
5715
  ], 42, jl),
5703
- i.stepLabels && i.step ? (o(), u("div", Yl, [
5716
+ i.stepLabels && i.step ? (s(), u("div", Yl, [
5704
5717
  y("div", {
5705
5718
  class: "w-slider__step-label",
5706
- onClick: t[6] || (t[6] = (n) => l.onStepLabelClick(0))
5719
+ onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5707
5720
  }, C(this.minVal), 1),
5708
- (o(!0), u(k, null, L(~~l.numberOfSteps, (n) => (o(), u("div", {
5721
+ (s(!0), u(k, null, R(~~l.numberOfSteps, (a) => (s(), u("div", {
5709
5722
  class: "w-slider__step-label",
5710
- key: n,
5711
- onClick: (r) => l.onStepLabelClick(n * (100 / l.numberOfSteps)),
5712
- style: R(`left: ${n * (100 / l.numberOfSteps)}%`)
5713
- }, C(l.percentToScaled(n * (100 / l.numberOfSteps))), 13, Gl))), 128)),
5714
- ~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
5723
+ key: a,
5724
+ onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5725
+ style: L(`left: ${a * (100 / l.numberOfSteps)}%`)
5726
+ }, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Gl))), 128)),
5727
+ ~~l.numberOfSteps !== l.numberOfSteps ? (s(), u("div", {
5715
5728
  key: 0,
5716
5729
  class: "w-slider__step-label",
5717
- onClick: t[7] || (t[7] = (n) => l.onStepLabelClick(100)),
5730
+ onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
5718
5731
  style: { left: "100%" }
5719
5732
  }, C(this.maxVal), 1)) : p("", !0)
5720
5733
  ])) : p("", !0)
5721
5734
  ]),
5722
- e.$slots["label-right"] ? (o(), u("label", {
5735
+ e.$slots["label-right"] ? (s(), u("label", {
5723
5736
  key: 2,
5724
5737
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5725
5738
  for: `button--${e._.uid}`
5726
5739
  }, [
5727
5740
  c(e.$slots, "label-right")
5728
- ], 10, Jl)) : i.labelRight ? (o(), u("label", {
5741
+ ], 10, Jl)) : i.labelRight ? (s(), u("label", {
5729
5742
  key: 3,
5730
5743
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5731
5744
  for: `button--${e._.uid}`,
@@ -5874,13 +5887,13 @@ const es = {
5874
5887
  }
5875
5888
  }
5876
5889
  }, ts = /* @__PURE__ */ v(es, [["render", Zl]]), is = { key: 0 };
5877
- function ls(e, t, i, s, a, l) {
5878
- return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
5890
+ function ls(e, t, i, o, n, l) {
5891
+ return i.modelValue || i.modelValue === void 0 ? (s(), u("div", {
5879
5892
  key: 0,
5880
5893
  class: f(["w-spinner", l.classes]),
5881
- style: R(l.styles)
5894
+ style: L(l.styles)
5882
5895
  }, [
5883
- l.isThreeDots ? (o(), u("span", is)) : p("", !0)
5896
+ l.isThreeDots ? (s(), u("span", is)) : p("", !0)
5884
5897
  ], 6)) : p("", !0);
5885
5898
  }
5886
5899
  const ss = {
@@ -5922,8 +5935,8 @@ const ss = {
5922
5935
  }
5923
5936
  }
5924
5937
  }, os = /* @__PURE__ */ v(ss, [["render", ls]]);
5925
- function as(e, t, i, s, a, l) {
5926
- return o(), u("div", {
5938
+ function as(e, t, i, o, n, l) {
5939
+ return s(), u("div", {
5927
5940
  class: f(["w-steps", l.classes])
5928
5941
  }, null, 2);
5929
5942
  }
@@ -5950,35 +5963,37 @@ const ns = {
5950
5963
  key: 1,
5951
5964
  class: "w-switch__thumb"
5952
5965
  }, ps = ["for"];
5953
- function fs(e, t, i, s, a, l) {
5954
- const n = $("w-progress");
5955
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5966
+ function fs(e, t, i, o, n, l) {
5967
+ const a = $("w-progress");
5968
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5956
5969
  valid: e.valid,
5957
5970
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5958
5971
  onReset: t[4] || (t[4] = (r) => {
5959
- e.$emit("update:modelValue", a.isOn = null), e.$emit("input", null);
5972
+ e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
5960
5973
  }),
5961
- class: l.classes
5974
+ class: l.classes,
5975
+ style: e.$attrs.style
5962
5976
  }), {
5963
5977
  default: m(() => [
5964
- y("input", {
5978
+ y("input", B({
5965
5979
  ref: "input",
5966
5980
  id: `w-switch--${e._.uid}`,
5967
5981
  type: "checkbox",
5968
5982
  name: e.inputName,
5969
- checked: a.isOn,
5983
+ checked: n.isOn,
5970
5984
  disabled: e.isDisabled || e.isReadonly || null,
5971
5985
  readonly: e.isReadonly || null,
5972
5986
  "aria-readonly": e.isReadonly ? "true" : "false",
5973
5987
  required: e.required || null,
5974
- tabindex: e.tabindex || null,
5988
+ tabindex: e.tabindex || null
5989
+ }, l.attrs, {
5975
5990
  onChange: t[0] || (t[0] = (r) => l.onInput()),
5976
5991
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5977
- "aria-checked": a.isOn || "false",
5992
+ "aria-checked": n.isOn || "false",
5978
5993
  role: "switch"
5979
- }, null, 40, ds),
5980
- l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
5981
- e.$slots.default || i.label ? (o(), u("label", {
5994
+ }), null, 16, ds),
5995
+ l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
5996
+ e.$slots.default || i.label ? (s(), u("label", {
5982
5997
  key: 0,
5983
5998
  class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
5984
5999
  for: `w-switch--${e._.uid}`
@@ -5988,25 +6003,25 @@ function fs(e, t, i, s, a, l) {
5988
6003
  ])
5989
6004
  ], 10, us)) : p("", !0)
5990
6005
  ], 64)) : p("", !0),
5991
- y("div", B({
5992
- class: "w-switch__input",
6006
+ y("div", {
6007
+ class: f(["w-switch__input", l.inputClasses]),
5993
6008
  onClick: t[2] || (t[2] = (r) => {
5994
6009
  e.$refs.input.focus(), e.$refs.input.click();
5995
6010
  })
5996
- }, H(l.listeners, !0), { class: l.inputClasses }), [
5997
- e.$slots.track ? (o(), u("div", hs, [
6011
+ }, [
6012
+ e.$slots.track ? (s(), u("div", hs, [
5998
6013
  c(e.$slots, "track")
5999
6014
  ])) : p("", !0),
6000
- e.$slots.thumb || i.loading ? (o(), u("div", cs, [
6001
- i.loading ? (o(), g(n, B({
6015
+ e.$slots.thumb || i.loading ? (s(), u("div", cs, [
6016
+ i.loading ? (s(), g(a, B({
6002
6017
  key: 0,
6003
6018
  circle: "",
6004
6019
  color: "inherit"
6005
6020
  }, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
6006
6021
  ])) : p("", !0)
6007
- ], 16),
6008
- l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
6009
- e.$slots.default || i.label ? (o(), u("label", {
6022
+ ], 2),
6023
+ l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
6024
+ e.$slots.default || i.label ? (s(), u("label", {
6010
6025
  key: 0,
6011
6026
  class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
6012
6027
  for: `w-switch--${e._.uid}`
@@ -6018,11 +6033,13 @@ function fs(e, t, i, s, a, l) {
6018
6033
  ], 64)) : p("", !0)
6019
6034
  ]),
6020
6035
  _: 3
6021
- }, 16, ["valid", "class"]);
6036
+ }, 16, ["valid", "class", "style"]);
6022
6037
  }
6023
6038
  const ms = {
6024
6039
  name: "w-switch",
6025
6040
  mixins: [M],
6041
+ inheritAttrs: !1,
6042
+ // The attrs should only be added to the input not the wrapper.
6026
6043
  props: {
6027
6044
  modelValue: { default: !1 },
6028
6045
  // v-model.
@@ -6050,9 +6067,9 @@ const ms = {
6050
6067
  };
6051
6068
  },
6052
6069
  computed: {
6053
- listeners() {
6054
- const { click: e, class: t, style: i, ...s } = this.$attrs;
6055
- return s;
6070
+ attrs() {
6071
+ const { class: e, style: t, ...i } = this.$attrs;
6072
+ return i;
6056
6073
  },
6057
6074
  hasLabel() {
6058
6075
  return this.label || this.$slots.default;
@@ -6069,7 +6086,9 @@ const ms = {
6069
6086
  "w-switch--loading": this.loading,
6070
6087
  "w-switch--rippled": this.ripple.end,
6071
6088
  "w-switch--dark": this.dark,
6072
- "w-switch--light": this.light
6089
+ "w-switch--light": this.light,
6090
+ // With the inheritAttrs set to false any class on the component would be lost, so add it back.
6091
+ [this.$attrs.class]: !!this.$attrs.class
6073
6092
  };
6074
6093
  },
6075
6094
  inputClasses() {
@@ -6093,8 +6112,8 @@ const ms = {
6093
6112
  }
6094
6113
  }
6095
6114
  }, gs = /* @__PURE__ */ v(ms, [["render", fs]]), bs = { class: "w-tabs__content" };
6096
- function ys(e, t, i, s, a, l) {
6097
- return o(), u("div", bs, [
6115
+ function ys(e, t, i, o, n, l) {
6116
+ return s(), u("div", bs, [
6098
6117
  c(e.$slots, "default", { item: i.item })
6099
6118
  ]);
6100
6119
  }
@@ -6109,16 +6128,16 @@ const ws = {
6109
6128
  key: 0,
6110
6129
  class: "w-tabs__content-wrap"
6111
6130
  }, _s = ["innerHTML"], $s = ["innerHTML"];
6112
- function Vs(e, t, i, s, a, l) {
6113
- const n = $("tab-content");
6114
- return o(), u("div", {
6131
+ function Vs(e, t, i, o, n, l) {
6132
+ const a = $("tab-content");
6133
+ return s(), u("div", {
6115
6134
  class: f(["w-tabs", l.tabsClasses])
6116
6135
  }, [
6117
6136
  y("div", {
6118
6137
  class: f(["w-tabs__bar", l.tabsBarClasses]),
6119
6138
  ref: "tabs-bar"
6120
6139
  }, [
6121
- (o(!0), u(k, null, L(e.tabs, (r, d) => (o(), u("div", {
6140
+ (s(!0), u(k, null, R(e.tabs, (r, d) => (s(), u("div", {
6122
6141
  class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
6123
6142
  key: d,
6124
6143
  onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
@@ -6144,22 +6163,22 @@ function Vs(e, t, i, s, a, l) {
6144
6163
  }, null, 8, Cs)
6145
6164
  ])
6146
6165
  ], 42, vs))), 128)),
6147
- e.$slots["tabs-bar-extra"] ? (o(), u("div", Ss, [
6166
+ e.$slots["tabs-bar-extra"] ? (s(), u("div", Ss, [
6148
6167
  c(e.$slots, "tabs-bar-extra")
6149
6168
  ])) : p("", !0),
6150
- !i.noSlider && !i.card ? (o(), u("div", {
6169
+ !i.noSlider && !i.card ? (s(), u("div", {
6151
6170
  key: 1,
6152
6171
  class: f(["w-tabs__slider", i.sliderColor]),
6153
- style: R(l.sliderStyles)
6172
+ style: L(l.sliderStyles)
6154
6173
  }, null, 6)) : p("", !0)
6155
6174
  ], 2),
6156
- e.tabs.length ? (o(), u("div", Bs, [
6157
- i.keepInDom ? (o(), g(oe, {
6175
+ e.tabs.length ? (s(), u("div", Bs, [
6176
+ i.keepInDom ? (s(), g(se, {
6158
6177
  key: 0,
6159
6178
  name: l.transitionName
6160
6179
  }, {
6161
6180
  default: m(() => [
6162
- (o(!0), u(k, null, L(e.tabs, (r, d) => A((o(), g(n, {
6181
+ (s(!0), u(k, null, R(e.tabs, (r, d) => W((s(), g(a, {
6163
6182
  key: r._uid,
6164
6183
  item: r,
6165
6184
  class: f(i.contentClass)
@@ -6176,7 +6195,7 @@ function Vs(e, t, i, s, a, l) {
6176
6195
  index: r._index + 1,
6177
6196
  active: r._index === l.activeTab._index
6178
6197
  }, () => [
6179
- r[i.itemContentKey] ? (o(), u("div", {
6198
+ r[i.itemContentKey] ? (s(), u("div", {
6180
6199
  key: 0,
6181
6200
  innerHTML: r[i.itemContentKey]
6182
6201
  }, null, 8, _s)) : p("", !0)
@@ -6184,26 +6203,26 @@ function Vs(e, t, i, s, a, l) {
6184
6203
  ]),
6185
6204
  _: 2
6186
6205
  }, 1032, ["item", "class"])), [
6187
- [ae, r._uid === l.activeTab._uid]
6206
+ [oe, r._uid === l.activeTab._uid]
6188
6207
  ])), 128))
6189
6208
  ]),
6190
6209
  _: 3
6191
- }, 8, ["name"])) : (o(), g(x, {
6210
+ }, 8, ["name"])) : (s(), g(O, {
6192
6211
  key: 1,
6193
6212
  name: l.transitionName,
6194
6213
  mode: l.transitionMode
6195
6214
  }, {
6196
6215
  default: m(() => [
6197
- (o(), g(Ve, {
6216
+ (s(), g(Ve, {
6198
6217
  exclude: i.keepAlive ? "" : "tab-content"
6199
6218
  }, [
6200
- (o(), g(n, {
6219
+ (s(), g(a, {
6201
6220
  key: e.activeTabUid,
6202
6221
  item: l.activeTab,
6203
6222
  class: f(i.contentClass)
6204
6223
  }, {
6205
6224
  default: m(({ item: r }) => [
6206
- r ? (o(), u(k, { key: 0 }, [
6225
+ r ? (s(), u(k, { key: 0 }, [
6207
6226
  e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
6208
6227
  key: 0,
6209
6228
  item: l.getOriginalItem(r),
@@ -6215,7 +6234,7 @@ function Vs(e, t, i, s, a, l) {
6215
6234
  index: r._index + 1,
6216
6235
  active: r._uid === e.activeTabUid
6217
6236
  }, () => [
6218
- r[i.itemContentKey] ? (o(), u("div", {
6237
+ r[i.itemContentKey] ? (s(), u("div", {
6219
6238
  key: 0,
6220
6239
  innerHTML: r[i.itemContentKey]
6221
6240
  }, null, 8, $s)) : p("", !0)
@@ -6231,7 +6250,7 @@ function Vs(e, t, i, s, a, l) {
6231
6250
  ])) : p("", !0)
6232
6251
  ], 2);
6233
6252
  }
6234
- let fe = 0;
6253
+ let pe = 0;
6235
6254
  const Is = {
6236
6255
  name: "w-tabs",
6237
6256
  props: {
@@ -6317,7 +6336,7 @@ const Is = {
6317
6336
  methods: {
6318
6337
  // Adding a tab in the list.
6319
6338
  addTab(e) {
6320
- (e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
6339
+ (e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++pe}`), this.tabs.push({
6321
6340
  _uid: e[this.itemIdKey] ?? e._uid,
6322
6341
  _index: this.tabs.length,
6323
6342
  ...e,
@@ -6326,7 +6345,7 @@ const Is = {
6326
6345
  },
6327
6346
  refreshTabs() {
6328
6347
  let e = this.items;
6329
- typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++fe}`), {
6348
+ typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++pe}`), {
6330
6349
  ...t,
6331
6350
  _uid: t[this.itemIdKey] ?? t._uid,
6332
6351
  _index: i,
@@ -6334,11 +6353,11 @@ const Is = {
6334
6353
  }));
6335
6354
  },
6336
6355
  reopenTheActiveTab() {
6337
- var t, i, s;
6356
+ var t, i, o;
6338
6357
  if (this.tabs.length === 1)
6339
6358
  return this.openTab(this.tabs[0]._uid);
6340
6359
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
6341
- e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (s = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : s._uid), e && this.openTab(e);
6360
+ e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (o = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : o._uid), e && this.openTab(e);
6342
6361
  },
6343
6362
  onResize() {
6344
6363
  this.updateSlider(!1);
@@ -6366,16 +6385,16 @@ const Is = {
6366
6385
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
6367
6386
  }
6368
6387
  if (!this.fillBar && this.activeTabEl) {
6369
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: a } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
6370
- this.slider.left = `${t - a - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
6388
+ const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
6389
+ this.slider.left = `${t - n - parseInt(l) + o.scrollLeft}px`, this.slider.width = `${i}px`;
6371
6390
  } else
6372
6391
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
6373
6392
  },
6374
6393
  updateActiveTab(e) {
6375
6394
  var t, i;
6376
6395
  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(() => {
6377
- const s = this.$refs["tabs-bar"];
6378
- this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6396
+ const o = this.$refs["tabs-bar"];
6397
+ this.activeTabEl = o && o.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6379
6398
  }));
6380
6399
  },
6381
6400
  // Return the original item (so there is no `_index`, etc.).
@@ -6408,13 +6427,13 @@ const Is = {
6408
6427
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
6409
6428
  }
6410
6429
  }
6411
- }, Ts = /* @__PURE__ */ v(Is, [["render", Vs]]), Ls = { class: "w-table__scroll-wrap" }, Rs = { ref: "colgroup" }, Ps = ["width"], xs = { key: 0 }, Os = ["onClick"], zs = ["innerHTML"], Ms = {
6430
+ }, Ts = /* @__PURE__ */ v(Is, [["render", Vs]]), Ls = { class: "w-table__scroll-wrap" }, Rs = { ref: "colgroup" }, Ps = ["width"], Os = { key: 0 }, xs = ["onClick"], zs = ["innerHTML"], Ms = {
6412
6431
  key: 0,
6413
6432
  class: "w-table__progress-bar"
6414
- }, Es = ["colspan"], Ws = {
6433
+ }, Es = ["colspan"], As = {
6415
6434
  key: 0,
6416
6435
  class: "w-table__progress-bar"
6417
- }, As = ["colspan"], Ks = { class: "w-table__loading-text" }, Ns = {
6436
+ }, Ws = ["colspan"], Ks = { class: "w-table__loading-text" }, Ns = {
6418
6437
  key: 1,
6419
6438
  class: "no-data"
6420
6439
  }, Ds = ["colspan"], Hs = ["onClick"], Fs = ["data-label"], js = ["data-label"], Us = ["innerHTML"], qs = {
@@ -6433,9 +6452,9 @@ const Is = {
6433
6452
  key: 0,
6434
6453
  class: "w-table__pagination w-pagination"
6435
6454
  }, to = { class: "pages-wrap" }, io = { class: "w-pagination__results" };
6436
- function lo(e, t, i, s, a, l) {
6437
- const n = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), _ = $("w-button");
6438
- return o(), u("div", {
6455
+ function lo(e, t, i, o, n, l) {
6456
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), _ = $("w-button");
6457
+ return s(), u("div", {
6439
6458
  class: f(["w-table w-table--wrap", l.classes])
6440
6459
  }, [
6441
6460
  y("div", Ls, [
@@ -6446,20 +6465,20 @@ function lo(e, t, i, s, a, l) {
6446
6465
  onMouseout: t[3] || (t[3] = (...b) => l.onMouseOut && l.onMouseOut(...b))
6447
6466
  }, [
6448
6467
  y("colgroup", Rs, [
6449
- (o(!0), u(k, null, L(i.headers, (b, V) => (o(), u("col", {
6468
+ (s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("col", {
6450
6469
  class: f(["w-table__col", l.colClasses[V]]),
6451
6470
  key: V,
6452
6471
  width: b.width || null
6453
6472
  }, null, 10, Ps))), 128))
6454
6473
  ], 512),
6455
- i.noHeaders ? p("", !0) : (o(), u("thead", xs, [
6474
+ i.noHeaders ? p("", !0) : (s(), u("thead", Os, [
6456
6475
  y("tr", null, [
6457
- (o(!0), u(k, null, L(i.headers, (b, V) => (o(), u("th", {
6476
+ (s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("th", {
6458
6477
  class: f(["w-table__header", l.headerClasses(b)]),
6459
6478
  key: V,
6460
6479
  onClick: (P) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
6461
6480
  }, [
6462
- b.sortable !== !1 && b.align === "right" ? (o(), g(n, {
6481
+ b.sortable !== !1 && b.align === "right" ? (s(), g(a, {
6463
6482
  key: 0,
6464
6483
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6465
6484
  }, {
@@ -6468,7 +6487,7 @@ function lo(e, t, i, s, a, l) {
6468
6487
  ]),
6469
6488
  _: 2
6470
6489
  }, 1032, ["class"])) : p("", !0),
6471
- b.label ? (o(), u(k, { key: 1 }, [
6490
+ b.label ? (s(), u(k, { key: 1 }, [
6472
6491
  e.$slots["header-label"] ? c(e.$slots, "header-label", {
6473
6492
  key: 0,
6474
6493
  header: b,
@@ -6476,12 +6495,12 @@ function lo(e, t, i, s, a, l) {
6476
6495
  index: V + 1
6477
6496
  }, () => [
6478
6497
  S(C(b.label || ""), 1)
6479
- ]) : (o(), u("span", {
6498
+ ]) : (s(), u("span", {
6480
6499
  key: 1,
6481
6500
  innerHTML: b.label || ""
6482
6501
  }, null, 8, zs))
6483
6502
  ], 64)) : p("", !0),
6484
- b.sortable !== !1 && b.align !== "right" ? (o(), g(n, {
6503
+ b.sortable !== !1 && b.align !== "right" ? (s(), g(a, {
6485
6504
  key: 2,
6486
6505
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6487
6506
  }, {
@@ -6490,17 +6509,17 @@ function lo(e, t, i, s, a, l) {
6490
6509
  ]),
6491
6510
  _: 2
6492
6511
  }, 1032, ["class"])) : p("", !0),
6493
- V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6512
+ V < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6494
6513
  key: 3,
6495
6514
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
6496
6515
  onClick: t[0] || (t[0] = z(() => {
6497
6516
  }, ["stop"]))
6498
6517
  }, null, 2)) : p("", !0)
6499
- ], 10, Os))), 128))
6518
+ ], 10, xs))), 128))
6500
6519
  ]),
6501
6520
  I(d, null, {
6502
6521
  default: m(() => [
6503
- i.loading === "header" ? (o(), u("tr", Ms, [
6522
+ i.loading === "header" ? (s(), u("tr", Ms, [
6504
6523
  y("td", {
6505
6524
  colspan: i.headers.length
6506
6525
  }, [
@@ -6512,7 +6531,7 @@ function lo(e, t, i, s, a, l) {
6512
6531
  })
6513
6532
  ])),
6514
6533
  y("tbody", null, [
6515
- i.loading === !0 ? (o(), u("tr", Ws, [
6534
+ i.loading === !0 ? (s(), u("tr", As, [
6516
6535
  y("td", {
6517
6536
  colspan: i.headers.length
6518
6537
  }, [
@@ -6522,8 +6541,8 @@ function lo(e, t, i, s, a, l) {
6522
6541
  S("Loading...")
6523
6542
  ])
6524
6543
  ])
6525
- ], 8, As)
6526
- ])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Ns, [
6544
+ ], 8, Ws)
6545
+ ])) : l.tableItems.length ? p("", !0) : (s(), u("tr", Ns, [
6527
6546
  y("td", {
6528
6547
  class: "w-table__cell text-center",
6529
6548
  colspan: i.headers.length
@@ -6533,22 +6552,22 @@ function lo(e, t, i, s, a, l) {
6533
6552
  ])
6534
6553
  ], 8, Ds)
6535
6554
  ])),
6536
- l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, L(l.paginatedItems, (b, V) => (o(), u(k, { key: V }, [
6555
+ l.tableItems.length && i.loading !== !0 ? (s(!0), u(k, { key: 2 }, R(l.paginatedItems, (b, V) => (s(), u(k, { key: V }, [
6537
6556
  e.$slots.item ? c(e.$slots, "item", {
6538
6557
  key: 0,
6539
6558
  item: b,
6540
6559
  index: V + 1,
6541
6560
  select: () => l.doSelectRow(b, V),
6542
6561
  classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }
6543
- }) : (o(), u("tr", {
6562
+ }) : (s(), u("tr", {
6544
6563
  key: 1,
6545
6564
  class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }]),
6546
6565
  onClick: (P) => l.doSelectRow(b, V)
6547
6566
  }, [
6548
- (o(!0), u(k, null, L(i.headers, (P, O) => (o(), u(k, null, [
6549
- e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
6567
+ (s(!0), u(k, null, R(i.headers, (P, x) => (s(), u(k, null, [
6568
+ e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${x + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
6550
6569
  class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
6551
- key: `${O}-a`,
6570
+ key: `${x}-a`,
6552
6571
  "data-label": P.label
6553
6572
  }, [
6554
6573
  e.$slots[`item-cell.${P.key}`] ? c(e.$slots, `item-cell.${P.key}`, {
@@ -6557,7 +6576,7 @@ function lo(e, t, i, s, a, l) {
6557
6576
  item: b,
6558
6577
  label: b[P.key] || "",
6559
6578
  index: V + 1
6560
- }) : e.$slots[`item-cell.${O + 1}`] ? c(e.$slots, `item-cell.${O + 1}`, {
6579
+ }) : e.$slots[`item-cell.${x + 1}`] ? c(e.$slots, `item-cell.${x + 1}`, {
6561
6580
  key: 1,
6562
6581
  header: P,
6563
6582
  item: b,
@@ -6570,39 +6589,39 @@ function lo(e, t, i, s, a, l) {
6570
6589
  label: b[P.key] || "",
6571
6590
  index: V + 1
6572
6591
  }) : p("", !0),
6573
- O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6592
+ x < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6574
6593
  key: 3,
6575
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
6594
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === x, "w-table__col-resizer--active": e.colResizing.columnIndex === x }])
6576
6595
  }, null, 2)) : p("", !0)
6577
- ], 10, Fs)) : (o(), u("td", {
6596
+ ], 10, Fs)) : (s(), u("td", {
6578
6597
  class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
6579
- key: `${O}-b`,
6598
+ key: `${x}-b`,
6580
6599
  "data-label": P.label
6581
6600
  }, [
6582
6601
  y("div", {
6583
6602
  innerHTML: b[P.key] || ""
6584
6603
  }, null, 8, Us),
6585
- O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6604
+ x < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6586
6605
  key: 0,
6587
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
6606
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === x, "w-table__col-resizer--active": e.colResizing.columnIndex === x }])
6588
6607
  }, null, 2)) : p("", !0)
6589
6608
  ], 10, js))
6590
6609
  ], 64))), 256))
6591
6610
  ], 10, Hs)),
6592
- l.expandedRowsByUid[b._uid] ? (o(), u("tr", qs, [
6611
+ l.expandedRowsByUid[b._uid] ? (s(), u("tr", qs, [
6593
6612
  y("td", {
6594
6613
  class: "w-table__cell",
6595
6614
  colspan: i.headers.length
6596
6615
  }, [
6597
6616
  I(h, { y: "" }, {
6598
6617
  default: m(() => [
6599
- l.expandedRowsByUid[b._uid] ? (o(), u("div", Ys, [
6618
+ l.expandedRowsByUid[b._uid] ? (s(), u("div", Ys, [
6600
6619
  c(e.$slots, "row-expansion", {
6601
6620
  item: b,
6602
6621
  index: V + 1
6603
6622
  })
6604
6623
  ])) : p("", !0),
6605
- V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6624
+ V < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6606
6625
  key: 1,
6607
6626
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
6608
6627
  }, null, 2)) : p("", !0)
@@ -6612,12 +6631,12 @@ function lo(e, t, i, s, a, l) {
6612
6631
  ], 8, Xs)
6613
6632
  ])) : p("", !0)
6614
6633
  ], 64))), 128)) : p("", !0),
6615
- e.$slots["extra-row"] ? (o(), u("div", Gs, [
6634
+ e.$slots["extra-row"] ? (s(), u("div", Gs, [
6616
6635
  c(e.$slots, "extra-row")
6617
6636
  ])) : p("", !0)
6618
6637
  ]),
6619
- e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot", Js, [
6620
- e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", Qs, [
6638
+ e.$slots.footer || e.$slots["footer-row"] ? (s(), u("tfoot", Js, [
6639
+ e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Qs, [
6621
6640
  y("td", {
6622
6641
  class: "w-table__cell",
6623
6642
  colspan: i.headers.length
@@ -6628,7 +6647,7 @@ function lo(e, t, i, s, a, l) {
6628
6647
  ])) : p("", !0)
6629
6648
  ], 32)
6630
6649
  ]),
6631
- i.pagination && e.paginationConfig ? (o(), u("div", eo, [
6650
+ i.pagination && e.paginationConfig ? (s(), u("div", eo, [
6632
6651
  c(e.$slots, "pagination", {
6633
6652
  range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
6634
6653
  total: e.paginationConfig.total,
@@ -6636,7 +6655,7 @@ function lo(e, t, i, s, a, l) {
6636
6655
  page: e.paginationConfig.page,
6637
6656
  goToPage: l.goToPage
6638
6657
  }, () => [
6639
- e.paginationConfig.itemsPerPageOptions ? (o(), g(w, {
6658
+ e.paginationConfig.itemsPerPageOptions ? (s(), g(w, {
6640
6659
  key: 0,
6641
6660
  class: "w-pagination__items-per-page",
6642
6661
  modelValue: e.paginationConfig.itemsPerPage,
@@ -6656,8 +6675,8 @@ function lo(e, t, i, s, a, l) {
6656
6675
  text: "",
6657
6676
  lg: ""
6658
6677
  }, null, 8, ["disabled"]),
6659
- e.paginationConfig.pagesCount > 7 ? (o(!0), u(k, { key: 0 }, L(e.paginationConfig.pagesCount, (b) => (o(), u(k, { key: b }, [
6660
- [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (o(), g(_, {
6678
+ e.paginationConfig.pagesCount > 7 ? (s(!0), u(k, { key: 0 }, R(e.paginationConfig.pagesCount, (b) => (s(), u(k, { key: b }, [
6679
+ [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (s(), g(_, {
6661
6680
  key: 0,
6662
6681
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6663
6682
  onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
@@ -6668,7 +6687,7 @@ function lo(e, t, i, s, a, l) {
6668
6687
  S(C(b), 1)
6669
6688
  ]),
6670
6689
  _: 2
6671
- }, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (o(), g(_, {
6690
+ }, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (s(), g(_, {
6672
6691
  key: 1,
6673
6692
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6674
6693
  onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
@@ -6680,7 +6699,7 @@ function lo(e, t, i, s, a, l) {
6680
6699
  ]),
6681
6700
  _: 2
6682
6701
  }, 1032, ["onClick", "class"])) : p("", !0)
6683
- ], 64))), 128)) : (o(!0), u(k, { key: 1 }, L(e.paginationConfig.pagesCount, (b) => (o(), g(_, {
6702
+ ], 64))), 128)) : (s(!0), u(k, { key: 1 }, R(e.paginationConfig.pagesCount, (b) => (s(), g(_, {
6684
6703
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6685
6704
  key: b,
6686
6705
  onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
@@ -6706,7 +6725,7 @@ function lo(e, t, i, s, a, l) {
6706
6725
  ])) : p("", !0)
6707
6726
  ], 2);
6708
6727
  }
6709
- const me = 15, so = {
6728
+ const fe = 15, so = {
6710
6729
  name: "w-table",
6711
6730
  props: {
6712
6731
  items: { type: Array, required: !0 },
@@ -6723,14 +6742,14 @@ const me = 15, so = {
6723
6742
  filter: { type: Function },
6724
6743
  fetch: { type: Function },
6725
6744
  expandableRows: {
6726
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || te(
6745
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ee(
6727
6746
  `Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6728
6747
  ), !0)
6729
6748
  },
6730
6749
  // Allow providing the expanded rows and keeping it in sync via .sync in Vue 2 or v-model:expandedRows in Vue 3.
6731
6750
  expandedRows: { type: Array },
6732
6751
  selectableRows: {
6733
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || te(
6752
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ee(
6734
6753
  `Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6735
6754
  ), !0)
6736
6755
  },
@@ -6753,7 +6772,7 @@ const me = 15, so = {
6753
6772
  validator: (e) => {
6754
6773
  if (e) {
6755
6774
  if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
6756
- return te(
6775
+ return ee(
6757
6776
  "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 }."
6758
6777
  ), !1;
6759
6778
  } else
@@ -6812,7 +6831,7 @@ const me = 15, so = {
6812
6831
  if (!this.activeSorting.length || this.sortFunction || this.fetch)
6813
6832
  return this.filteredItems;
6814
6833
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6815
- return [...this.filteredItems].sort((i, s) => (i = i[e], s = s[e], !isNaN(i) && !isNaN(s) && (i = parseFloat(i), s = parseFloat(s)), (i > s ? 1 : -1) * (t ? -1 : 1)));
6834
+ return [...this.filteredItems].sort((i, o) => (i = i[e], o = o[e], !isNaN(i) && !isNaN(o) && (i = parseFloat(i), o = parseFloat(o)), (i > o ? 1 : -1) * (t ? -1 : 1)));
6816
6835
  },
6817
6836
  paginatedItems() {
6818
6837
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6877,28 +6896,28 @@ const me = 15, so = {
6877
6896
  t && this.activeSortingKeys[e.key] === "-" ? this.activeSorting = [] : this.activeSorting[0] = (t ? "-" : "+") + e.key, this.$emit("update:sort", this.activeSorting), typeof this.sortFunction == "function" ? await this.sortFunction(this.activeSorting) : typeof this.fetch == "function" && await this.callApiFetch();
6878
6897
  },
6879
6898
  doSelectRow(e, t) {
6880
- const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
6899
+ const i = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6881
6900
  if (i) {
6882
- const a = this.expandedRowsByUid[e._uid] === void 0;
6883
- 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(
6901
+ const n = this.expandedRowsByUid[e._uid] === void 0;
6902
+ 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(
6884
6903
  "row-expand",
6885
6904
  {
6886
6905
  item: e,
6887
6906
  index: t,
6888
- expanded: a,
6907
+ expanded: n,
6889
6908
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
6890
6909
  }
6891
6910
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6892
- } else if (s) {
6893
- let a = !1;
6911
+ } else if (o) {
6912
+ let n = !1;
6894
6913
  const l = this.selectedRowsByUid[e._uid] === void 0;
6895
- 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(
6914
+ 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(
6896
6915
  "row-select",
6897
6916
  {
6898
6917
  item: e,
6899
6918
  index: t,
6900
6919
  selected: l,
6901
- selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
6920
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
6902
6921
  }
6903
6922
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
6904
6923
  }
@@ -6927,16 +6946,16 @@ const me = 15, so = {
6927
6946
  * (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
6928
6947
  */
6929
6948
  onResizerMouseMove(e) {
6930
- const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: a, nextColWidth: l } = this.colResizing;
6949
+ const { startCursorX: t, columnEl: i, nextColumnEl: o, colWidth: n, nextColWidth: l } = this.colResizing;
6931
6950
  this.colResizing.dragging = !0;
6932
- const n = e.pageX - t, r = a + l, d = a + n, h = l - n;
6933
- i.style.width = a + n + "px", s.style.width = l - n + "px";
6934
- const w = n < 0 && i.offsetWidth > d || i.offsetWidth <= me, _ = n > 0 && s.offsetWidth > h;
6951
+ const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
6952
+ i.style.width = n + a + "px", o.style.width = l - a + "px";
6953
+ const w = a < 0 && i.offsetWidth > d || i.offsetWidth <= fe, _ = a > 0 && o.offsetWidth > h;
6935
6954
  if (w) {
6936
- const b = Math.max(i.offsetWidth, me);
6937
- i.style.width = b + "px", s.style.width = r - b + "px";
6955
+ const b = Math.max(i.offsetWidth, fe);
6956
+ i.style.width = b + "px", o.style.width = r - b + "px";
6938
6957
  } else
6939
- _ && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
6958
+ _ && (i.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6940
6959
  },
6941
6960
  onResizerMouseUp() {
6942
6961
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6948,12 +6967,12 @@ const me = 15, so = {
6948
6967
  }, 0);
6949
6968
  },
6950
6969
  initPagination() {
6951
- var s, a;
6952
- 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 }];
6970
+ var o, n;
6971
+ const e = ((o = this.pagination) == null ? void 0 : o.itemsPerPage) ?? 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6953
6972
  t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
6954
6973
  label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
6955
6974
  value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
6956
- })), this.paginationConfig.itemsPerPageOptions.sort((l, n) => l.value < n.value ? -1 : 1);
6975
+ })), this.paginationConfig.itemsPerPageOptions.sort((l, a) => l.value < a.value ? -1 : 1);
6957
6976
  const i = this.paginationConfig.itemsPerPageOptions.shift();
6958
6977
  this.paginationConfig.itemsPerPageOptions.push(i), this.updatePaginationConfig({
6959
6978
  itemsPerPage: e,
@@ -6978,8 +6997,8 @@ const me = 15, so = {
6978
6997
  updatePaginationConfig({ itemsPerPage: e, page: t, total: i }) {
6979
6998
  if (i && (this.paginationConfig.total = i), e !== void 0) {
6980
6999
  this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = t || this.paginationConfig.page || 1, t = this.paginationConfig.page, i = this.paginationConfig.total;
6981
- const s = e * t;
6982
- this.paginationConfig.start = 1, this.paginationConfig.end = i >= s ? s : i % s, this.paginationConfig.pagesCount = Math.ceil(i / e);
7000
+ const o = e * t;
7001
+ this.paginationConfig.start = 1, this.paginationConfig.end = i >= o ? o : i % o, this.paginationConfig.pagesCount = Math.ceil(i / e);
6983
7002
  }
6984
7003
  t && this.goToPage(t);
6985
7004
  },
@@ -6998,13 +7017,13 @@ const me = 15, so = {
6998
7017
  * While waiting for the call to resolve, nothing in the table will change.
6999
7018
  */
7000
7019
  async callApiFetch() {
7001
- const { page: e, start: t, end: i, total: s, itemsPerPage: a } = this.paginationConfig;
7020
+ const { page: e, start: t, end: i, total: o, itemsPerPage: n } = this.paginationConfig;
7002
7021
  return await this.fetch({
7003
7022
  page: e,
7004
7023
  start: t,
7005
- end: i || s,
7006
- total: s,
7007
- itemsPerPage: a || s,
7024
+ end: i || o,
7025
+ total: o,
7026
+ itemsPerPage: n || o,
7008
7027
  sorting: this.activeSorting
7009
7028
  });
7010
7029
  }
@@ -7039,25 +7058,25 @@ const me = 15, so = {
7039
7058
  }
7040
7059
  }
7041
7060
  }, oo = /* @__PURE__ */ v(so, [["render", lo]]), ao = ["role", "aria-pressed", "tabindex"];
7042
- function no(e, t, i, s, a, l) {
7043
- return o(), u("span", {
7061
+ function no(e, t, i, o, n, l) {
7062
+ return s(), u("span", {
7044
7063
  class: f(["w-tag", l.classes]),
7045
- onClick: t[1] || (t[1] = (n) => {
7064
+ onClick: t[1] || (t[1] = (a) => {
7046
7065
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7047
7066
  }),
7048
- onKeypress: t[2] || (t[2] = E((n) => {
7067
+ onKeypress: t[2] || (t[2] = E((a) => {
7049
7068
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7050
7069
  }, ["enter"])),
7051
7070
  role: i.modelValue !== -1 && "button",
7052
7071
  "aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
7053
7072
  tabindex: i.modelValue !== -1 && 0,
7054
- style: R(l.styles)
7073
+ style: L(l.styles)
7055
7074
  }, [
7056
7075
  c(e.$slots, "default"),
7057
- i.closable && i.modelValue ? (o(), u("i", {
7076
+ i.closable && i.modelValue ? (s(), u("i", {
7058
7077
  key: 0,
7059
7078
  class: "w-icon w-tag__closable wi-cross",
7060
- onClick: t[0] || (t[0] = z((n) => {
7079
+ onClick: t[0] || (t[0] = z((a) => {
7061
7080
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7062
7081
  }, ["stop"])),
7063
7082
  role: "icon",
@@ -7115,20 +7134,21 @@ const ro = {
7115
7134
  }
7116
7135
  }
7117
7136
  }, uo = /* @__PURE__ */ v(ro, [["render", no]]), ho = ["for"], co = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], po = ["for"];
7118
- function fo(e, t, i, s, a, l) {
7119
- const n = $("w-icon");
7120
- return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
7137
+ function fo(e, t, i, o, n, l) {
7138
+ const a = $("w-icon");
7139
+ return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
7121
7140
  valid: e.valid,
7122
7141
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
7123
7142
  wrap: l.hasLabel && i.labelPosition !== "inside",
7124
7143
  onReset: t[7] || (t[7] = (r) => {
7125
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
7144
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
7126
7145
  }),
7127
- class: l.classes
7146
+ class: l.classes,
7147
+ style: e.$attrs.style
7128
7148
  }), {
7129
7149
  default: m(() => [
7130
- i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
7131
- e.$slots.default || i.label ? (o(), u("label", {
7150
+ i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
7151
+ e.$slots.default || i.label ? (s(), u("label", {
7132
7152
  key: 0,
7133
7153
  class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
7134
7154
  for: `w-textarea--${e._.uid}`
@@ -7144,7 +7164,7 @@ function fo(e, t, i, s, a, l) {
7144
7164
  c(e.$slots, "icon-left", {
7145
7165
  inputId: `w-textarea--${e._.uid}`
7146
7166
  }, () => [
7147
- i.innerIconLeft ? (o(), g(n, {
7167
+ i.innerIconLeft ? (s(), g(a, {
7148
7168
  key: 0,
7149
7169
  class: "w-textarea__icon w-textarea__icon--inner-left",
7150
7170
  tag: "label",
@@ -7157,11 +7177,11 @@ function fo(e, t, i, s, a, l) {
7157
7177
  _: 1
7158
7178
  }, 8, ["for"])) : p("", !0)
7159
7179
  ]),
7160
- A(y("textarea", B({
7180
+ W(y("textarea", B({
7161
7181
  class: "w-textarea__textarea",
7162
7182
  ref: "textarea",
7163
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.inputValue = r)
7164
- }, H(l.listeners, !0), {
7183
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
7184
+ }, l.attrs, {
7165
7185
  onInput: t[2] || (t[2] = (...r) => l.onInput && l.onInput(...r)),
7166
7186
  onFocus: t[3] || (t[3] = (...r) => l.onFocus && l.onFocus(...r)),
7167
7187
  onBlur: t[4] || (t[4] = (...r) => l.onBlur && l.onBlur(...r)),
@@ -7176,10 +7196,10 @@ function fo(e, t, i, s, a, l) {
7176
7196
  required: e.required || null,
7177
7197
  tabindex: e.tabindex || null
7178
7198
  }), null, 16, co), [
7179
- [be, a.inputValue]
7199
+ [be, n.inputValue]
7180
7200
  ]),
7181
- i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 0 }, [
7182
- e.$slots.default || i.label ? (o(), u("label", {
7201
+ i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 0 }, [
7202
+ e.$slots.default || i.label ? (s(), u("label", {
7183
7203
  key: 0,
7184
7204
  class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
7185
7205
  }, [
@@ -7191,7 +7211,7 @@ function fo(e, t, i, s, a, l) {
7191
7211
  c(e.$slots, "icon-right", {
7192
7212
  inputId: `w-textarea--${e._.uid}`
7193
7213
  }, () => [
7194
- i.innerIconRight ? (o(), g(n, {
7214
+ i.innerIconRight ? (s(), g(a, {
7195
7215
  key: 0,
7196
7216
  class: "w-textarea__icon w-textarea__icon--inner-right",
7197
7217
  tag: "label",
@@ -7205,8 +7225,8 @@ function fo(e, t, i, s, a, l) {
7205
7225
  }, 8, ["for"])) : p("", !0)
7206
7226
  ])
7207
7227
  ], 2),
7208
- i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
7209
- e.$slots.default || i.label ? (o(), u("label", {
7228
+ i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
7229
+ e.$slots.default || i.label ? (s(), u("label", {
7210
7230
  key: 0,
7211
7231
  class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
7212
7232
  for: `w-textarea--${e._.uid}`
@@ -7218,11 +7238,13 @@ function fo(e, t, i, s, a, l) {
7218
7238
  ], 64)) : p("", !0)
7219
7239
  ]),
7220
7240
  _: 3
7221
- }, 16, ["valid", "wrap", "class"]);
7241
+ }, 16, ["valid", "wrap", "class", "style"]);
7222
7242
  }
7223
7243
  const mo = {
7224
7244
  name: "w-textarea",
7225
7245
  mixins: [M],
7246
+ inheritAttrs: !1,
7247
+ // The attrs should only be added to the textarea not the wrapper.
7226
7248
  props: {
7227
7249
  modelValue: { default: "" },
7228
7250
  label: { type: String },
@@ -7260,9 +7282,9 @@ const mo = {
7260
7282
  };
7261
7283
  },
7262
7284
  computed: {
7263
- listeners() {
7264
- const { input: e, focus: t, blur: i, class: s, style: a, ...l } = this.$attrs;
7265
- return l;
7285
+ attrs() {
7286
+ const { class: e, style: t, ...i } = this.$attrs;
7287
+ return i;
7266
7288
  },
7267
7289
  hasValue() {
7268
7290
  return this.inputValue || this.inputValue === 0;
@@ -7287,7 +7309,9 @@ const mo = {
7287
7309
  "w-textarea--no-padding": !this.outline && !this.bgColor && !this.shadow,
7288
7310
  "w-textarea--has-placeholder": this.placeholder,
7289
7311
  "w-textarea--inner-icon-left": this.innerIconLeft,
7290
- "w-textarea--inner-icon-right": this.innerIconRight
7312
+ "w-textarea--inner-icon-right": this.innerIconRight,
7313
+ // With the inheritAttrs set to false any class on the component would be lost, so add it back.
7314
+ [this.$attrs.class]: !!this.$attrs.class
7291
7315
  };
7292
7316
  },
7293
7317
  inputWrapClasses() {
@@ -7343,38 +7367,38 @@ const mo = {
7343
7367
  }
7344
7368
  }
7345
7369
  }, go = /* @__PURE__ */ v(mo, [["render", fo]]), bo = ["innerHTML"], yo = ["innerHTML"];
7346
- function wo(e, t, i, s, a, l) {
7347
- return o(), u("ul", {
7370
+ function wo(e, t, i, o, n, l) {
7371
+ return s(), u("ul", {
7348
7372
  class: f(["w-timeline", l.classes])
7349
7373
  }, [
7350
- (o(!0), u(k, null, L(i.items, (n, r) => (o(), u("li", {
7374
+ (s(!0), u(k, null, R(i.items, (a, r) => (s(), u("li", {
7351
7375
  class: "w-timeline-item",
7352
7376
  key: r
7353
7377
  }, [
7354
- (o(), g(T(n[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7355
- class: f(["w-timeline-item__bullet", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }])
7378
+ (s(), g(T(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7379
+ class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
7356
7380
  }, {
7357
7381
  default: m(() => [
7358
- S(C(n[i.itemIconKey] || i.icon), 1)
7382
+ S(C(a[i.itemIconKey] || i.icon), 1)
7359
7383
  ]),
7360
7384
  _: 2
7361
7385
  }, 1032, ["class"])),
7362
7386
  e.$slots[`item.${r + 1}`] ? c(e.$slots, `item.${r + 1}`, {
7363
7387
  key: 1,
7364
- item: n,
7388
+ item: a,
7365
7389
  index: r + 1
7366
7390
  }) : c(e.$slots, "item", {
7367
7391
  key: 0,
7368
- item: n,
7392
+ item: a,
7369
7393
  index: r + 1
7370
7394
  }, () => [
7371
7395
  y("div", {
7372
- class: f(["w-timeline-item__title", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }]),
7373
- innerHTML: n[i.itemTitleKey]
7396
+ class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
7397
+ innerHTML: a[i.itemTitleKey]
7374
7398
  }, null, 10, bo),
7375
7399
  y("div", {
7376
7400
  class: "w-timeline-item__content",
7377
- innerHTML: n[i.itemContentKey]
7401
+ innerHTML: a[i.itemContentKey]
7378
7402
  }, null, 8, yo)
7379
7403
  ])
7380
7404
  ]))), 128))
@@ -7403,10 +7427,10 @@ const ko = {
7403
7427
  }
7404
7428
  }
7405
7429
  }, vo = /* @__PURE__ */ v(ko, [["render", wo]]);
7406
- function Co(e, t, i, s, a, l) {
7407
- return o(), u("div", {
7430
+ function Co(e, t, i, o, n, l) {
7431
+ return s(), u("div", {
7408
7432
  class: f(["w-toolbar", l.classes]),
7409
- style: R(l.styles)
7433
+ style: L(l.styles)
7410
7434
  }, [
7411
7435
  c(e.$slots, "default")
7412
7436
  ], 6);
@@ -7463,19 +7487,19 @@ const So = {
7463
7487
  }
7464
7488
  }
7465
7489
  }, Bo = /* @__PURE__ */ v(So, [["render", Co]]);
7466
- function _o(e, t, i, s, a, l) {
7467
- return o(), u(k, null, [
7490
+ function _o(e, t, i, o, n, l) {
7491
+ return s(), u(k, null, [
7468
7492
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
7469
- I(x, {
7493
+ I(O, {
7470
7494
  name: l.transitionName,
7471
7495
  appear: ""
7472
7496
  }, {
7473
7497
  default: m(() => [
7474
- e.detachableVisible ? (o(), u("div", {
7498
+ e.detachableVisible ? (s(), u("div", {
7475
7499
  class: f(["w-tooltip", l.classes]),
7476
7500
  ref: "detachable",
7477
7501
  key: e._.uid,
7478
- style: R(l.styles)
7502
+ style: L(l.styles)
7479
7503
  }, [
7480
7504
  c(e.$slots, "default")
7481
7505
  ], 6)) : p("", !0)
@@ -7536,7 +7560,7 @@ const $o = {
7536
7560
  * - `alignment`
7537
7561
  **/
7538
7562
  tooltipClasses() {
7539
- return W(this.tooltipClass);
7563
+ return A(this.tooltipClass);
7540
7564
  },
7541
7565
  transitionName() {
7542
7566
  const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
@@ -7621,8 +7645,8 @@ const $o = {
7621
7645
  }
7622
7646
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7623
7647
  }, Vo = /* @__PURE__ */ v($o, [["render", _o]]);
7624
- function Io(e, t, i, s, a, l) {
7625
- return o(), g(x, B({ name: "bounce" }, e.$props), {
7648
+ function Io(e, t, i, o, n, l) {
7649
+ return s(), g(O, B({ name: "bounce" }, e.$props), {
7626
7650
  default: m(() => [
7627
7651
  c(e.$slots, "default")
7628
7652
  ]),
@@ -7636,8 +7660,8 @@ const To = {
7636
7660
  duration: { type: [Number, String] }
7637
7661
  }
7638
7662
  }, Lo = /* @__PURE__ */ v(To, [["render", Io]]);
7639
- function Ro(e, t, i, s, a, l) {
7640
- return o(), g(x, {
7663
+ function Ro(e, t, i, o, n, l) {
7664
+ return s(), g(O, {
7641
7665
  name: "expand",
7642
7666
  mode: "out-in",
7643
7667
  css: !1,
@@ -7747,9 +7771,9 @@ const Po = {
7747
7771
  this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = t.getPropertyValue("marginLeft"), this.el.marginRight = t.getPropertyValue("marginRight"), this.el.paddingLeft = t.getPropertyValue("paddingLeft"), this.el.paddingRight = t.getPropertyValue("paddingRight"), this.el.borderLeftWidth = t.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = t.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = t.getPropertyValue("marginTop"), this.el.marginBottom = t.getPropertyValue("marginBottom"), this.el.paddingTop = t.getPropertyValue("paddingTop"), this.el.paddingBottom = t.getPropertyValue("paddingBottom"), this.el.borderTopWidth = t.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = t.getPropertyValue("borderBottomWidth")), this.el.savedState = !0;
7748
7772
  }
7749
7773
  }
7750
- }, xo = /* @__PURE__ */ v(Po, [["render", Ro]]);
7751
- function Oo(e, t, i, s, a, l) {
7752
- return o(), g(x, B({ name: "fade" }, e.$props), {
7774
+ }, Oo = /* @__PURE__ */ v(Po, [["render", Ro]]);
7775
+ function xo(e, t, i, o, n, l) {
7776
+ return s(), g(O, B({ name: "fade" }, e.$props), {
7753
7777
  default: m(() => [
7754
7778
  c(e.$slots, "default")
7755
7779
  ]),
@@ -7762,24 +7786,24 @@ const zo = {
7762
7786
  appear: { type: Boolean },
7763
7787
  duration: { type: [Number, String] }
7764
7788
  }
7765
- }, Mo = /* @__PURE__ */ v(zo, [["render", Oo]]);
7766
- function Eo(e, t, i, s, a, l) {
7767
- return o(), g(x, B({ name: "scale" }, e.$props), {
7789
+ }, Mo = /* @__PURE__ */ v(zo, [["render", xo]]);
7790
+ function Eo(e, t, i, o, n, l) {
7791
+ return s(), g(O, B({ name: "scale" }, e.$props), {
7768
7792
  default: m(() => [
7769
7793
  c(e.$slots, "default")
7770
7794
  ]),
7771
7795
  _: 3
7772
7796
  }, 16);
7773
7797
  }
7774
- const Wo = {
7798
+ const Ao = {
7775
7799
  name: "w-transition-scale",
7776
7800
  props: {
7777
7801
  appear: { type: Boolean },
7778
7802
  duration: { type: [Number, String] }
7779
7803
  }
7780
- }, Ao = /* @__PURE__ */ v(Wo, [["render", Eo]]);
7781
- function Ko(e, t, i, s, a, l) {
7782
- return o(), g(x, B({ name: "scale-fade" }, e.$props), {
7804
+ }, Wo = /* @__PURE__ */ v(Ao, [["render", Eo]]);
7805
+ function Ko(e, t, i, o, n, l) {
7806
+ return s(), g(O, B({ name: "scale-fade" }, e.$props), {
7783
7807
  default: m(() => [
7784
7808
  c(e.$slots, "default")
7785
7809
  ]),
@@ -7793,8 +7817,8 @@ const No = {
7793
7817
  duration: { type: [Number, String] }
7794
7818
  }
7795
7819
  }, Do = /* @__PURE__ */ v(No, [["render", Ko]]);
7796
- function Ho(e, t, i, s, a, l) {
7797
- return o(), g(x, B({ name: l.transitionName }, e.$props), {
7820
+ function Ho(e, t, i, o, n, l) {
7821
+ return s(), g(O, B({ name: l.transitionName }, e.$props), {
7798
7822
  default: m(() => [
7799
7823
  c(e.$slots, "default")
7800
7824
  ]),
@@ -7820,8 +7844,8 @@ const Fo = {
7820
7844
  }
7821
7845
  }
7822
7846
  }, jo = /* @__PURE__ */ v(Fo, [["render", Ho]]);
7823
- function Uo(e, t, i, s, a, l) {
7824
- return o(), g(x, B({ name: l.transitionName }, e.$props), {
7847
+ function Uo(e, t, i, o, n, l) {
7848
+ return s(), g(O, B({ name: l.transitionName }, e.$props), {
7825
7849
  default: m(() => [
7826
7850
  c(e.$slots, "default")
7827
7851
  ]),
@@ -7847,8 +7871,8 @@ const qo = {
7847
7871
  }
7848
7872
  }
7849
7873
  }, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
7850
- function Yo(e, t, i, s, a, l) {
7851
- return o(), g(x, B({ name: "twist" }, e.$props), {
7874
+ function Yo(e, t, i, o, n, l) {
7875
+ return s(), g(O, B({ name: "twist" }, e.$props), {
7852
7876
  default: m(() => [
7853
7877
  c(e.$slots, "default")
7854
7878
  ]),
@@ -7865,16 +7889,16 @@ const Go = {
7865
7889
  key: 1,
7866
7890
  class: "ml1"
7867
7891
  };
7868
- function ea(e, t, i, s, a, l) {
7869
- const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7870
- return o(), u("ul", {
7892
+ function ea(e, t, i, o, n, l) {
7893
+ const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7894
+ return s(), u("ul", {
7871
7895
  class: f(["w-tree", l.classes])
7872
7896
  }, [
7873
- (o(!0), u(k, null, L(e.currentDepthItems, (h, w) => (o(), u("li", {
7897
+ (s(!0), u(k, null, R(e.currentDepthItems, (h, w) => (s(), u("li", {
7874
7898
  class: f(["w-tree__item", l.itemClasses(h)]),
7875
7899
  key: w
7876
7900
  }, [
7877
- (o(), g(T(l.getTreeItemComponent(h)), B({
7901
+ (s(), g(T(l.getTreeItemComponent(h)), B({
7878
7902
  class: "w-tree__item-label",
7879
7903
  ref_for: !0
7880
7904
  }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
@@ -7883,7 +7907,7 @@ function ea(e, t, i, s, a, l) {
7883
7907
  tabindex: l.getTreeItemTabindex(h)
7884
7908
  }), {
7885
7909
  default: m(() => [
7886
- (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), g(n, {
7910
+ (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (s(), g(a, {
7887
7911
  key: 0,
7888
7912
  class: "w-tree__item-expand",
7889
7913
  onClick: z((_) => !i.disabled && !h.disabled && l.onLabelClick(h, _), ["stop"]),
@@ -7903,7 +7927,7 @@ function ea(e, t, i, s, a, l) {
7903
7927
  }, () => {
7904
7928
  var _;
7905
7929
  return [
7906
- l.itemIcon(h) ? (o(), g(r, {
7930
+ l.itemIcon(h) ? (s(), g(r, {
7907
7931
  key: 0,
7908
7932
  class: "w-tree__item-icon",
7909
7933
  color: h.originalItem[i.itemIconColorKey] || i.iconColor
@@ -7916,19 +7940,19 @@ function ea(e, t, i, s, a, l) {
7916
7940
  y("span", {
7917
7941
  innerHTML: h.label
7918
7942
  }, null, 8, Qo),
7919
- i.counts && (h.children || h.branch) ? (o(), u("span", Zo, "(" + C(((_ = h.originalItem.children) == null ? void 0 : _.length) || 0) + ")", 1)) : p("", !0)
7943
+ i.counts && (h.children || h.branch) ? (s(), u("span", Zo, "(" + C(((_ = h.originalItem.children) == null ? void 0 : _.length) || 0) + ")", 1)) : p("", !0)
7920
7944
  ];
7921
7945
  })
7922
7946
  ]),
7923
7947
  _: 2
7924
7948
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
7925
- (o(), g(T(i.noTransition ? "div" : "w-transition-expand"), {
7949
+ (s(), g(T(i.noTransition ? "div" : "w-transition-expand"), {
7926
7950
  y: !i.noTransition || null,
7927
7951
  onAfterEnter: (_) => e.$emit("open", l.emitPayload(h)),
7928
7952
  onAfterLeave: (_) => e.$emit("close", l.emitPayload(h))
7929
7953
  }, {
7930
7954
  default: m(() => [
7931
- h.children && h.open ? (o(), g(d, B({
7955
+ h.children && h.open ? (s(), g(d, B({
7932
7956
  key: 0,
7933
7957
  ref_for: !0
7934
7958
  }, e.$props, {
@@ -8020,27 +8044,27 @@ const ta = {
8020
8044
  // From data watcher, retain the oldItems open state.
8021
8045
  updateCurrentDepthTree(e, t = []) {
8022
8046
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
8023
- return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8024
- Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
8025
- var l, n;
8026
- const a = {
8047
+ return F(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8048
+ Array.isArray(e) || (e = [e]), e.forEach((i, o) => {
8049
+ var l, a;
8050
+ const n = {
8027
8051
  originalItem: i,
8028
8052
  // Store the original item to return it on event emits.
8029
- _uid: this.depth.toString() + (s + 1),
8053
+ _uid: this.depth.toString() + (o + 1),
8030
8054
  label: i[this.itemLabelKey],
8031
8055
  children: !!i.children,
8032
8056
  // The children tree remains available in originalItem.
8033
8057
  branch: i.branch,
8034
8058
  route: i[this.itemRouteKey],
8035
8059
  disabled: i[this.itemDisabledKey],
8036
- selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
8060
+ selected: ((l = t[o]) == null ? void 0 : l.selected) || !1,
8037
8061
  depth: this.depth,
8038
- open: !!((n = t[s]) != null && n.open || this.expandAll || i[this.itemOpenKey]),
8062
+ open: !!((a = t[o]) != null && a.open || this.expandAll || i[this.itemOpenKey]),
8039
8063
  parent: this.parent || null,
8040
8064
  path: []
8041
8065
  // Ancestors path from root to leaf including self.
8042
8066
  };
8043
- a.path = this.getTreeItemPath(a), this.currentDepthItems.push(a);
8067
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
8044
8068
  });
8045
8069
  },
8046
8070
  getTreeItemComponent(e) {
@@ -8081,13 +8105,13 @@ const ta = {
8081
8105
  },
8082
8106
  onLabelClick(e, t) {
8083
8107
  e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && (e.selected = !e.selected);
8084
- const s = this.emitPayload(e, t);
8085
- this.$emit("click", s), this.emitItemSelection(e, t);
8108
+ const o = this.emitPayload(e, t);
8109
+ this.$emit("click", o), this.emitItemSelection(e, t);
8086
8110
  },
8087
8111
  onLabelKeydown(e, t) {
8088
8112
  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))) {
8089
- 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;
8090
- [...s].some((n, r) => n.isSameNode(a) ? (s[r + l] && s[r + l].focus(), !0) : !1);
8113
+ const o = 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;
8114
+ [...o].some((a, r) => a.isSameNode(n) ? (o[r + l] && o[r + l].focus(), !0) : !1);
8091
8115
  }
8092
8116
  t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8093
8117
  },
@@ -8168,7 +8192,7 @@ const ta = {
8168
8192
  WBadge: bt,
8169
8193
  WBreadcrumbs: vt,
8170
8194
  WButton: Lt,
8171
- WCard: Ot,
8195
+ WCard: xt,
8172
8196
  WCheckbox: Ft,
8173
8197
  WCheckboxes: Xt,
8174
8198
  WConfirm: Jt,
@@ -8192,7 +8216,7 @@ const ta = {
8192
8216
  WRadio: vl,
8193
8217
  WRadios: _l,
8194
8218
  WRating: Ll,
8195
- WScrollable: Ol,
8219
+ WScrollable: xl,
8196
8220
  WSelect: Nl,
8197
8221
  WSlider: ts,
8198
8222
  WSpinner: os,
@@ -8206,16 +8230,16 @@ const ta = {
8206
8230
  WToolbar: Bo,
8207
8231
  WTooltip: Vo,
8208
8232
  WTransitionBounce: Lo,
8209
- WTransitionExpand: xo,
8233
+ WTransitionExpand: Oo,
8210
8234
  WTransitionFade: Mo,
8211
- WTransitionScale: Ao,
8235
+ WTransitionScale: Wo,
8212
8236
  WTransitionScaleFade: Do,
8213
8237
  WTransitionSlide: jo,
8214
8238
  WTransitionSlideFade: Xo,
8215
8239
  WTransitionTwist: Jo,
8216
8240
  WTree: ia
8217
- }, Symbol.toStringTag, { value: "Module" })), sa = q.install;
8218
- q.install = (e, t = {}) => sa.call(q, e, { components: la, ...t });
8241
+ }, Symbol.toStringTag, { value: "Module" })), sa = U.install;
8242
+ U.install = (e, t = {}) => sa.call(U, e, { components: la, ...t });
8219
8243
  export {
8220
- q as default
8244
+ U as default
8221
8245
  };