wave-ui 3.13.3 → 3.13.5

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