wave-ui 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,8 @@ var X = (e, t, l) => (ae(e, t, "read from private field"), l ? l.call(e) : t.get
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, l);
11
- }, te = (e, t, l, a) => (ae(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
12
- import { reactive as G, resolveComponent as $, openBlock as s, createBlock as b, Teleport as ke, createVNode as V, TransitionGroup as pe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as _, renderList as T, mergeProps as B, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as E, renderSlot as p, toHandlers as N, createTextVNode as C, toDisplayString as k, Transition as x, normalizeStyle as L, resolveDynamicComponent as I, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as me, vModelText as ge, vModelDynamic as Se, KeepAlive as $e } from "vue";
11
+ }, te = (e, t, l, o) => (ae(e, t, "write to private field"), o ? o.call(e, l) : t.set(e, l), l);
12
+ import { reactive as G, resolveComponent as $, openBlock as s, createBlock as b, Teleport as ke, createVNode as I, TransitionGroup as pe, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as _, renderList as T, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as E, renderSlot as p, toHandlers as A, createTextVNode as B, toDisplayString as k, Transition as x, normalizeStyle as L, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as ge, vModelText as me, vModelDynamic as Se, KeepAlive as $e } from "vue";
13
13
  const Ve = G({
14
14
  on: "#app",
15
15
  breakpoints: {
@@ -56,30 +56,30 @@ const Ve = G({
56
56
  t = Object.assign(t, e);
57
57
  else
58
58
  for (const l in e) {
59
- const a = e[l];
60
- typeof a == "object" ? be(e[l], t[l]) : t[l] = a;
59
+ const o = e[l];
60
+ typeof o == "object" ? be(e[l], t[l]) : t[l] = o;
61
61
  }
62
62
  return t;
63
63
  }, Ie = ["innerHTML"];
64
- function Re(e, t, l, a, o, i) {
65
- const n = $("w-alert");
64
+ function Re(e, t, l, o, n, i) {
65
+ const a = $("w-alert");
66
66
  return s(), b(ke, { to: ".w-app" }, [
67
- V(pe, {
67
+ I(pe, {
68
68
  class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
69
69
  tag: "div",
70
70
  name: i.transition,
71
71
  appear: ""
72
72
  }, {
73
- default: m(() => [
73
+ default: g(() => [
74
74
  (s(!0), u(_, null, T(i.notifications, (r) => (s(), u(_, null, [
75
- r._value ? (s(), b(n, B({
75
+ r._value ? (s(), b(a, C({
76
76
  class: "white--bg",
77
77
  key: r._uid,
78
78
  modelValue: r._value,
79
79
  "onUpdate:modelValue": (d) => r._value = d,
80
80
  onClose: r.dismiss
81
81
  }, i.notifProps(r)), {
82
- default: m(() => [
82
+ default: g(() => [
83
83
  w("div", {
84
84
  innerHTML: r.message
85
85
  }, null, 8, Ie)
@@ -94,8 +94,8 @@ function Re(e, t, l, a, o, i) {
94
94
  }
95
95
  const v = (e, t) => {
96
96
  const l = e.__vccOpts || e;
97
- for (const [a, o] of t)
98
- l[a] = o;
97
+ for (const [o, n] of t)
98
+ l[o] = n;
99
99
  return l;
100
100
  }, Le = {
101
101
  name: "w-notification-manager",
@@ -113,7 +113,7 @@ const v = (e, t) => {
113
113
  },
114
114
  methods: {
115
115
  notifProps(e) {
116
- const { _value: t, _uid: l, message: a, timeout: o, ...i } = e;
116
+ const { _value: t, _uid: l, message: o, timeout: n, ...i } = e;
117
117
  return i.dismiss && (i.dismiss = !0), i;
118
118
  }
119
119
  }
@@ -142,11 +142,11 @@ const H = class {
142
142
  if (typeof t[0] == "object")
143
143
  l = { ...l, ...t[0] };
144
144
  else {
145
- const [a, o, i] = t;
145
+ const [o, n, i] = t;
146
146
  l = {
147
147
  ...l,
148
- message: a || "",
149
- [o === void 0 ? "info" : o]: !0,
148
+ message: o || "",
149
+ [n === void 0 ? "info" : n]: !0,
150
150
  timeout: i || i === 0 ? parseFloat(i) : 4e3
151
151
  };
152
152
  }
@@ -159,39 +159,39 @@ const H = class {
159
159
  let Y = H;
160
160
  K = new WeakMap(), ee(Y, K, void 0);
161
161
  const xe = (e, t, l) => {
162
- const a = document.createElement("div");
163
- e.appendChild(a);
164
- const o = _e(Ce({
162
+ const o = document.createElement("div");
163
+ e.appendChild(o);
164
+ const n = _e(Ce({
165
165
  ...Te,
166
166
  inject: ["$waveui"]
167
167
  })).provide("$waveui", l);
168
168
  for (const i in t) {
169
- const n = t[i];
170
- o.component(n.name, { ...n, inject: ["$waveui"] });
169
+ const a = t[i];
170
+ n.component(a.name, { ...a, inject: ["$waveui"] });
171
171
  }
172
- o.mount(a), a.remove();
172
+ n.mount(o), o.remove();
173
173
  }, oe = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""), Pe = (e) => {
174
174
  ["light", "dark"].forEach((t) => {
175
175
  const l = e.colors[t];
176
176
  l.shades = {};
177
- for (let a in l) {
178
- if (a === "shades")
177
+ for (let o in l) {
178
+ if (o === "shades")
179
179
  continue;
180
- a = { label: a, color: l[a].replace("#", "") };
181
- const o = a.color;
182
- o.length === 3 && (a.color = o[0] + "" + o[0] + o[1] + o[1] + o[2] + o[2]);
180
+ o = { label: o, color: l[o].replace("#", "") };
181
+ const n = o.color;
182
+ n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
183
183
  for (let i = 1; i <= 3; i++) {
184
- const n = oe(`#${a.color}`, i * 40), r = oe(`#${a.color}`, -i * 40);
185
- l.shades[`${a.label}-light${i}`] = n, l.shades[`${a.label}-dark${i}`] = r;
184
+ const a = oe(`#${o.color}`, i * 40), r = oe(`#${o.color}`, -i * 40);
185
+ l.shades[`${o.label}-light${i}`] = a, l.shades[`${o.label}-dark${i}`] = r;
186
186
  }
187
187
  }
188
188
  });
189
189
  }, ne = (e, t) => {
190
190
  const l = {
191
- ...t.reduce((a, o) => {
192
- a[o.label] = o.color;
193
- const i = (o.shades || []).reduce((n, r) => (n[r.label] = r.color, n), {});
194
- return { ...a, ...i };
191
+ ...t.reduce((o, n) => {
192
+ o[n.label] = n.color;
193
+ const i = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
194
+ return { ...o, ...i };
195
195
  }, { ...e, ...e.shades })
196
196
  };
197
197
  return delete l.shades, l;
@@ -549,35 +549,35 @@ const xe = (e, t, l) => {
549
549
  let se = { keys: [], values: [] }, de = null;
550
550
  const Oe = (e) => {
551
551
  let t = "";
552
- const l = {}, { info: a, warning: o, success: i, error: n, shades: r, ...d } = e, { cssScope: h } = U;
553
- for (const g in d)
554
- t += `${h} .${g}--bg{background-color:var(--w-${g}-color)}${h} .${g}{color:var(--w-${g}-color)}`;
555
- for (const g in r)
556
- t += `${h} .${g}--bg{background-color:${r[g]}}${h} .${g}{color:${r[g]}}`;
557
- const y = { ...d, info: a, warning: o, success: i, error: n };
558
- for (const g in y)
559
- l[g] = y[g];
552
+ const l = {}, { info: o, warning: n, success: i, error: a, shades: r, ...d } = e, { cssScope: h } = U;
553
+ for (const m in d)
554
+ t += `${h} .${m}--bg{background-color:var(--w-${m}-color)}${h} .${m}{color:var(--w-${m}-color)}`;
555
+ for (const m in r)
556
+ t += `${h} .${m}--bg{background-color:${r[m]}}${h} .${m}{color:${r[m]}}`;
557
+ const y = { ...d, info: o, warning: n, success: i, error: a };
558
+ for (const m in y)
559
+ l[m] = y[m];
560
560
  let S = "";
561
- return Object.entries(l).forEach(([g, R]) => {
562
- S += `--w-${g}-color: ${R};`;
561
+ return Object.entries(l).forEach(([m, R]) => {
562
+ S += `--w-${m}-color: ${R};`;
563
563
  }), `:root{${S}}${t}`;
564
564
  }, ze = (e, t) => {
565
565
  let l = "";
566
- const { cssScope: a } = U;
567
- return e.forEach(({ min: o, label: i }) => {
566
+ const { cssScope: o } = U;
567
+ return e.forEach(({ min: n, label: i }) => {
568
568
  if (i === "xs")
569
- for (let n = 0; n < t; n++)
570
- l += `${a} .${i}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
569
+ for (let a = 0; a < t; a++)
570
+ l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
571
571
  else {
572
- l += `@media(min-width:${o}px){`;
573
- for (let n = 0; n < t; n++)
574
- l += `${a} .${i}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
572
+ l += `@media(min-width:${n}px){`;
573
+ for (let a = 0; a < t; a++)
574
+ l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
575
575
  l += "}";
576
576
  }
577
577
  }), l;
578
578
  }, Ee = (e) => {
579
579
  let t = "";
580
- const { cssScope: l, baseIncrement: a } = U, o = [
580
+ const { cssScope: l, baseIncrement: o } = U, n = [
581
581
  "show{display:block}",
582
582
  "hide{display:none}",
583
583
  "d-flex{display:flex}",
@@ -611,53 +611,53 @@ const Oe = (e) => {
611
611
  "justify-space-around{justify-content:space-around}",
612
612
  "justify-space-evenly{justify-content:space-evenly}"
613
613
  ], i = Array(12).fill();
614
- return e.forEach(({ label: n, min: r }) => {
615
- n !== "xs" && (t += `@media(min-width:${r}px){` + o.map((d) => `${l} .${n}u-${d}`).join("") + i.map((d, h) => `.w-grid.${n}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${n}u-gap${h + 1},.w-grid.${n}u-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${n}u-gap0,.w-flex.${n}u-gap0{gap:0}}`);
616
- }), e.forEach(({ label: n, min: r, max: d }) => {
617
- t += `@media (min-width:${r}px) and (max-width:${d}px){` + o.map((h) => `${l} .${n}-${h}`).join("") + i.map((h, y) => `.w-grid.${n}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + i.map((h, y) => `.w-flex.${n}-gap${y + 1},.w-grid.${n}-gap${y + 1}{gap:${(y + 1) * a}px;}`).join("") + `.w-flex.${n}-gap0,.w-flex.${n}-gap0{gap:0}}`;
618
- }), e.forEach(({ label: n, max: r }) => {
619
- n !== "xl" && (t += `@media (max-width:${r}px){` + o.map((d) => `${l} .${n}d-${d}`).join("") + i.map((d, h) => `.w-grid.${n}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${n}d-gap${h + 1},.w-grid.${n}d-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${n}d-gap0,.w-flex.${n}d-gap0{gap:0}}`);
614
+ return e.forEach(({ label: a, min: r }) => {
615
+ a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${l} .${a}u-${d}`).join("") + i.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.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}}`);
616
+ }), e.forEach(({ label: a, min: r, max: d }) => {
617
+ t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${l} .${a}-${h}`).join("") + i.map((h, y) => `.w-grid.${a}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + i.map((h, y) => `.w-flex.${a}-gap${y + 1},.w-grid.${a}-gap${y + 1}{gap:${(y + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
618
+ }), e.forEach(({ label: a, max: r }) => {
619
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${l} .${a}d-${d}`).join("") + i.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.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}}`);
620
620
  }), t;
621
621
  }, ue = (e) => {
622
622
  const t = window.innerWidth, l = se.values.slice(0);
623
- l.push(t), l.sort((o, i) => o - i);
624
- const a = se.keys[l.indexOf(t)] || "xl";
625
- a !== de && (de = a, e.breakpoint = {
626
- name: a,
627
- xs: a === "xs",
628
- sm: a === "sm",
629
- md: a === "md",
630
- lg: a === "lg",
631
- xl: a === "xl",
623
+ l.push(t), l.sort((n, i) => n - i);
624
+ const o = se.keys[l.indexOf(t)] || "xl";
625
+ o !== de && (de = o, e.breakpoint = {
626
+ name: o,
627
+ xs: o === "xs",
628
+ sm: o === "sm",
629
+ md: o === "md",
630
+ lg: o === "lg",
631
+ xl: o === "xl",
632
632
  width: t
633
633
  }), e.breakpoint.width = window.innerWidth;
634
634
  }, Me = (e) => {
635
635
  const { config: t } = e;
636
636
  if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
637
637
  const l = document.createElement("style");
638
- l.id = "wave-ui-styles", l.innerHTML = We(t);
639
- const a = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
640
- a ? a.before(l) : document.head.appendChild(l);
638
+ l.id = "wave-ui-styles", l.innerHTML = Ne(t);
639
+ const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
640
+ o ? o.before(l) : document.head.appendChild(l);
641
641
  }
642
642
  ue(e), window.addEventListener("resize", () => ue(e));
643
- }, Ne = (e) => {
643
+ }, Ae = (e) => {
644
644
  if (!document.getElementById("wave-ui-colors")) {
645
645
  const t = document.createElement("style");
646
646
  t.id = "wave-ui-colors", t.innerHTML = Oe(e);
647
647
  const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
648
648
  l ? l.before(t) : document.head.appendChild(t);
649
649
  }
650
- }, We = (e) => {
651
- const t = Object.entries(e.breakpoints), l = t.map(([i, n], r) => {
650
+ }, Ne = (e) => {
651
+ const t = Object.entries(e.breakpoints), l = t.map(([i, a], r) => {
652
652
  const [, d = 0] = t[r - 1] || [];
653
- return { label: i, min: d ? d + 1 : 0, max: n };
654
- }), a = getComputedStyle(document.documentElement);
655
- U.cssScope = a.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(a.getPropertyValue("--w-base-increment"));
656
- let o = "";
657
- return o += ze(l, e.css.grid), e.css.breakpointLayoutClasses && (o += Ee(l)), o;
653
+ return { label: i, min: d ? d + 1 : 0, max: a };
654
+ }), o = getComputedStyle(document.documentElement);
655
+ U.cssScope = o.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
656
+ let n = "";
657
+ return n += ze(l, e.css.grid), e.css.breakpointLayoutClasses && (n += Ee(l)), n;
658
658
  };
659
659
  let he = !1;
660
- const Ae = (e) => {
660
+ const We = (e) => {
661
661
  const t = window.matchMedia("(prefers-color-scheme: dark)");
662
662
  e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (l) => {
663
663
  e.preferredTheme = l.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
@@ -688,10 +688,10 @@ const j = class {
688
688
  this._notificationManager.notify(...t);
689
689
  },
690
690
  switchTheme(t, l = !1) {
691
- var o, i;
692
- this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (o = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : o.remove) == null || i.call(o);
693
- const a = this.config.colors[this.theme];
694
- Ne(a), this.colors = ne(a, re);
691
+ var n, i;
692
+ this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || i.call(n);
693
+ const o = this.config.colors[this.theme];
694
+ Ae(o), this.colors = ne(o, re);
695
695
  }
696
696
  });
697
697
  if (X(j, q)) {
@@ -699,47 +699,47 @@ const j = class {
699
699
  return;
700
700
  }
701
701
  if (this.$waveui._notificationManager = new Y(), l.theme || (l.theme = "light"), l.colors) {
702
- const n = { ...l.colors };
703
- l.colors.light || (l.colors.light = n), l.colors.dark || (l.colors.dark = n), l.colors = { light: l.colors.light, dark: l.colors.dark };
702
+ const a = { ...l.colors };
703
+ l.colors.light || (l.colors.light = a), l.colors.dark || (l.colors.dark = a), l.colors = { light: l.colors.light, dark: l.colors.dark };
704
704
  }
705
- let { components: a, ...o } = l;
706
- o = this.$waveui.config = be(o), o.css.colorShades && Pe(o);
705
+ let { components: o, ...n } = l;
706
+ n = this.$waveui.config = be(n), n.css.colorShades && Pe(n);
707
707
  const i = G(this.$waveui);
708
- t.config.globalProperties.$waveui = i, t.provide("$waveui", i), o.theme !== "auto" && (this.$waveui.colors = ne(o.colors[o.theme], re));
708
+ t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = ne(n.colors[n.theme], re));
709
709
  }
710
710
  static install(t, l = {}) {
711
- var o;
711
+ var n;
712
712
  t.directive("focus", {
713
713
  mounted: (i) => setTimeout(() => i.focus(), 0)
714
714
  }), t.directive("scroll", {
715
- mounted: (i, n) => {
715
+ mounted: (i, a) => {
716
716
  const r = (d) => {
717
- n.value(d, i) && window.removeEventListener("scroll", r);
717
+ a.value(d, i) && window.removeEventListener("scroll", r);
718
718
  };
719
719
  window.addEventListener("scroll", r);
720
720
  }
721
721
  });
722
- const { components: a = {} } = l || {};
723
- for (const i in a) {
724
- const n = a[i];
725
- (o = l.presets) != null && o[n.name] && Ke(n, l.presets[n.name]), t.component(n.name, n);
722
+ const { components: o = {} } = l || {};
723
+ for (const i in o) {
724
+ const a = o[i];
725
+ (n = l.presets) != null && n[a.name] && Ke(a, l.presets[a.name]), t.component(a.name, a);
726
726
  }
727
727
  t.mixin({
728
728
  beforeMount() {
729
729
  if (!he) {
730
730
  he = !0;
731
- const i = Be("$waveui"), { config: n } = i, r = document.querySelector(n.on) || document.body;
732
- r.classList.add("w-app"), n.theme === "auto" ? Ae(i) : i.switchTheme(n.theme, !0), Me(i), xe(r, a, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
731
+ const i = Be("$waveui"), { config: a } = i, r = document.querySelector(a.on) || document.body;
732
+ r.classList.add("w-app"), a.theme === "auto" ? We(i) : i.switchTheme(a.theme, !0), Me(i), xe(r, o, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
733
733
  }
734
734
  }
735
735
  }), new j(t, l), te(j, q, !0);
736
736
  }
737
737
  };
738
- let A = j;
739
- q = new WeakMap(), ee(A, q, !1);
738
+ let W = j;
739
+ q = new WeakMap(), ee(W, q, !1);
740
740
  const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], He = ["innerHTML"], je = ["innerHTML"];
741
- function Ue(e, t, l, a, o, i) {
742
- const n = $("w-button"), r = $("w-transition-expand");
741
+ function Ue(e, t, l, o, n, i) {
742
+ const a = $("w-button"), r = $("w-transition-expand");
743
743
  return s(), u("div", {
744
744
  class: f(["w-accordion", i.accordionClasses])
745
745
  }, [
@@ -755,7 +755,7 @@ function Ue(e, t, l, a, o, i) {
755
755
  onKeypress: M((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
756
756
  tabindex: !d._disabled && 0
757
757
  }, [
758
- l.expandIcon && !l.expandIconRight ? (s(), b(n, {
758
+ l.expandIcon && !l.expandIconRight ? (s(), b(a, {
759
759
  key: 0,
760
760
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
761
761
  icon: d._expanded && l.collapseIcon || l.expandIcon,
@@ -783,7 +783,7 @@ function Ue(e, t, l, a, o, i) {
783
783
  innerHTML: d[l.itemTitleKey]
784
784
  }, null, 8, He)
785
785
  ]),
786
- l.expandIcon && l.expandIconRight ? (s(), b(n, {
786
+ l.expandIcon && l.expandIconRight ? (s(), b(a, {
787
787
  key: 3,
788
788
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
789
789
  icon: d._expanded && l.collapseIcon || l.expandIcon,
@@ -793,12 +793,12 @@ function Ue(e, t, l, a, o, i) {
793
793
  onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
794
794
  }, null, 8, ["icon", "onClick", "class"])) : c("", !0)
795
795
  ], 42, Fe),
796
- V(r, {
796
+ I(r, {
797
797
  y: "",
798
798
  onAfterLeave: (y) => i.onEndOfCollapse(d),
799
799
  duration: l.duration
800
800
  }, {
801
- default: m(() => [
801
+ default: g(() => [
802
802
  d._expanded ? (s(), u("div", {
803
803
  key: 0,
804
804
  class: f(["w-accordion__item-content", l.contentClass])
@@ -869,8 +869,8 @@ const qe = {
869
869
  },
870
870
  methods: {
871
871
  toggleItem(e, t) {
872
- e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((a) => a._index !== e._index && (a._expanded = !1));
873
- const l = this.accordionItems.map((a) => a._expanded || !1);
872
+ e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
873
+ const l = this.accordionItems.map((o) => o._expanded || !1);
874
874
  this.$emit("update:modelValue", l), this.$emit("input", l), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
875
875
  },
876
876
  onEndOfCollapse(e) {
@@ -912,19 +912,19 @@ const qe = {
912
912
  }
913
913
  }
914
914
  }, Ge = /* @__PURE__ */ v(qe, [["render", Ue]]), Xe = { class: "w-alert__content" };
915
- function Ye(e, t, l, a, o, i) {
916
- const n = $("w-icon"), r = $("w-button");
917
- return o.show ? (s(), u("div", B({
915
+ function Ye(e, t, l, o, n, i) {
916
+ const a = $("w-icon"), r = $("w-button");
917
+ return n.show ? (s(), u("div", C({
918
918
  key: 0,
919
919
  class: "w-alert"
920
- }, N(e.$attrs, !0), { class: i.classes }), [
920
+ }, A(e.$attrs, !0), { class: i.classes }), [
921
921
  i.type || l.icon || l.dismiss ? (s(), u(_, { key: 0 }, [
922
- i.type || l.icon ? (s(), b(n, {
922
+ i.type || l.icon ? (s(), b(a, {
923
923
  key: 0,
924
924
  class: "w-alert__icon mr2"
925
925
  }, {
926
- default: m(() => [
927
- C(k(i.type ? i.typeIcon : l.icon), 1)
926
+ default: g(() => [
927
+ B(k(i.type ? i.typeIcon : l.icon), 1)
928
928
  ]),
929
929
  _: 1
930
930
  })) : c("", !0),
@@ -935,7 +935,7 @@ function Ye(e, t, l, a, o, i) {
935
935
  key: 1,
936
936
  class: "w-alert__dismiss",
937
937
  onClick: t[0] || (t[0] = (d) => {
938
- e.$emit("update:modelValue", o.show = !1), e.$emit("input", !1), e.$emit("close", !1);
938
+ e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
939
939
  }),
940
940
  icon: "wi-cross",
941
941
  color: "inherit",
@@ -1025,7 +1025,7 @@ const Je = {
1025
1025
  }
1026
1026
  }
1027
1027
  }, Qe = /* @__PURE__ */ v(Je, [["render", Ye]]), Ze = { class: "w-app" };
1028
- function et(e, t, l, a, o, i) {
1028
+ function et(e, t, l, o, n, i) {
1029
1029
  return s(), u("div", Ze, [
1030
1030
  p(e.$slots, "default")
1031
1031
  ]);
@@ -1046,13 +1046,13 @@ const tt = {
1046
1046
  textRight: { type: Boolean }
1047
1047
  }
1048
1048
  }, lt = /* @__PURE__ */ v(tt, [["render", et]]);
1049
- function it(e, t, l, a, o, i) {
1050
- return s(), u("div", B({ class: "w-badge-wrap" }, N(e.$attrs, !0)), [
1049
+ function it(e, t, l, o, n, i) {
1050
+ return s(), u("div", C({ class: "w-badge-wrap" }, A(e.$attrs, !0)), [
1051
1051
  p(e.$slots, "default"),
1052
- V(x, {
1052
+ I(x, {
1053
1053
  name: `${l.transition}`
1054
1054
  }, {
1055
- default: m(() => [
1055
+ default: g(() => [
1056
1056
  l.modelValue ? (s(), u("div", {
1057
1057
  key: 0,
1058
1058
  class: f(["w-badge", i.classes]),
@@ -1063,7 +1063,7 @@ function it(e, t, l, a, o, i) {
1063
1063
  role: "status"
1064
1064
  }, [
1065
1065
  l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
1066
- C(k(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
1066
+ B(k(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
1067
1067
  ])
1068
1068
  ], 6)) : c("", !0)
1069
1069
  ]),
@@ -1135,8 +1135,8 @@ const st = {
1135
1135
  }
1136
1136
  }
1137
1137
  }, at = /* @__PURE__ */ v(st, [["render", it]]), ot = ["innerHTML"];
1138
- function nt(e, t, l, a, o, i) {
1139
- const n = $("w-icon");
1138
+ function nt(e, t, l, o, n, i) {
1139
+ const a = $("w-icon");
1140
1140
  return s(), u("div", {
1141
1141
  class: f(["w-breadcrumbs", i.classes])
1142
1142
  }, [
@@ -1146,23 +1146,23 @@ function nt(e, t, l, a, o, i) {
1146
1146
  key: `${d}a`
1147
1147
  }, [
1148
1148
  p(e.$slots, "separator", { index: d })
1149
- ], 2)) : d ? (s(), b(n, {
1149
+ ], 2)) : d ? (s(), b(a, {
1150
1150
  class: f(["w-breadcrumbs__separator", l.separatorColor]),
1151
1151
  key: `${d}b`
1152
1152
  }, {
1153
- default: m(() => [
1154
- C(k(l.icon), 1)
1153
+ default: g(() => [
1154
+ B(k(l.icon), 1)
1155
1155
  ]),
1156
1156
  _: 2
1157
1157
  }, 1032, ["class"])) : c("", !0),
1158
1158
  r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(_, { key: 2 }, [
1159
- e.$slots.item ? (s(), b(I(i.hasRouter ? "router-link" : "a"), {
1159
+ e.$slots.item ? (s(), b(V(i.hasRouter ? "router-link" : "a"), {
1160
1160
  class: f(["w-breadcrumbs__item", l.color || null]),
1161
1161
  key: `${d}c`,
1162
1162
  to: i.hasRouter && r[l.itemRouteKey],
1163
1163
  href: r[l.itemRouteKey]
1164
1164
  }, {
1165
- default: m(() => [
1165
+ default: g(() => [
1166
1166
  p(e.$slots, "item", {
1167
1167
  item: r,
1168
1168
  index: d + 1,
@@ -1170,7 +1170,7 @@ function nt(e, t, l, a, o, i) {
1170
1170
  })
1171
1171
  ]),
1172
1172
  _: 2
1173
- }, 1032, ["to", "href", "class"])) : (s(), b(I(i.hasRouter ? "router-link" : "a"), {
1173
+ }, 1032, ["to", "href", "class"])) : (s(), b(V(i.hasRouter ? "router-link" : "a"), {
1174
1174
  class: f(["w-breadcrumbs__item", l.color || null]),
1175
1175
  key: `${d}d`,
1176
1176
  to: i.hasRouter && r[l.itemRouteKey],
@@ -1233,23 +1233,23 @@ const rt = {
1233
1233
  "stroke-linecap": "round"
1234
1234
  })
1235
1235
  ], -1);
1236
- function ct(e, t, l, a, o, i) {
1237
- const n = $("w-icon");
1238
- return s(), b(I(l.route ? "a" : "button"), B({
1236
+ function ct(e, t, l, o, n, i) {
1237
+ const a = $("w-icon");
1238
+ return s(), b(V(l.route ? "a" : "button"), C({
1239
1239
  class: ["w-button", i.classes],
1240
1240
  type: !l.route && l.type,
1241
1241
  href: l.route && (i.externalLink ? l.route : i.resolvedRoute) || null,
1242
1242
  disabled: !!l.disabled || null
1243
- }, N(i.listeners), { style: i.styles }), {
1244
- default: m(() => [
1245
- l.icon ? (s(), b(n, ie(B({ key: 0 }, l.iconProps || {})), {
1246
- default: m(() => [
1247
- C(k(l.icon), 1)
1243
+ }, A(i.listeners), { style: i.styles }), {
1244
+ default: g(() => [
1245
+ l.icon ? (s(), b(a, ie(C({ key: 0 }, l.iconProps || {})), {
1246
+ default: g(() => [
1247
+ B(k(l.icon), 1)
1248
1248
  ]),
1249
1249
  _: 1
1250
1250
  }, 16)) : p(e.$slots, "default", { key: 1 }),
1251
- V(x, { name: "scale-fade" }, {
1252
- default: m(() => [
1251
+ I(x, { name: "scale-fade" }, {
1252
+ default: g(() => [
1253
1253
  l.loading ? (s(), u("div", ut, [
1254
1254
  p(e.$slots, "loading", {}, () => [
1255
1255
  ht
@@ -1352,24 +1352,24 @@ const pt = {
1352
1352
  };
1353
1353
  }
1354
1354
  }
1355
- }, ft = /* @__PURE__ */ v(pt, [["render", ct]]), mt = ["innerHTML"];
1356
- function gt(e, t, l, a, o, i) {
1357
- const n = $("button-partial");
1358
- return l.tooltip ? (s(), b(I("w-tooltip"), ie(B({ key: 0 }, l.tooltipProps || {})), {
1359
- activator: m(({ on: r }) => [
1360
- V(n, B(i.buttonProps, N(r)), {
1361
- default: m(() => [
1355
+ }, ft = /* @__PURE__ */ v(pt, [["render", ct]]), gt = ["innerHTML"];
1356
+ function mt(e, t, l, o, n, i) {
1357
+ const a = $("button-partial");
1358
+ return l.tooltip ? (s(), b(V("w-tooltip"), ie(C({ key: 0 }, l.tooltipProps || {})), {
1359
+ activator: g(({ on: r }) => [
1360
+ I(a, C(i.buttonProps, A(r)), {
1361
+ default: g(() => [
1362
1362
  p(e.$slots, "default")
1363
1363
  ]),
1364
1364
  _: 2
1365
1365
  }, 1040)
1366
1366
  ]),
1367
- default: m(() => [
1368
- w("div", { innerHTML: l.tooltip }, null, 8, mt)
1367
+ default: g(() => [
1368
+ w("div", { innerHTML: l.tooltip }, null, 8, gt)
1369
1369
  ]),
1370
1370
  _: 3
1371
- }, 16)) : (s(), b(n, ie(B({ key: 1 }, i.buttonProps)), {
1372
- default: m(() => [
1371
+ }, 16)) : (s(), b(a, ie(C({ key: 1 }, i.buttonProps)), {
1372
+ default: g(() => [
1373
1373
  p(e.$slots, "default")
1374
1374
  ]),
1375
1375
  _: 3
@@ -1419,9 +1419,9 @@ const bt = {
1419
1419
  return { ...l, ...this.$attrs };
1420
1420
  }
1421
1421
  }
1422
- }, yt = /* @__PURE__ */ v(bt, [["render", gt]]), W = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), wt = ["innerHTML"];
1423
- function vt(e, t, l, a, o, i) {
1424
- const n = $("w-image");
1422
+ }, yt = /* @__PURE__ */ v(bt, [["render", mt]]), N = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), wt = ["innerHTML"];
1423
+ function vt(e, t, l, o, n, i) {
1424
+ const a = $("w-image");
1425
1425
  return s(), u("div", {
1426
1426
  class: f(["w-card", i.classes])
1427
1427
  }, [
@@ -1435,12 +1435,12 @@ function vt(e, t, l, a, o, i) {
1435
1435
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }]),
1436
1436
  innerHTML: l.title
1437
1437
  }, null, 10, wt)) : c("", !0),
1438
- l.image ? (s(), b(n, B({
1438
+ l.image ? (s(), b(a, C({
1439
1439
  key: 2,
1440
1440
  class: "w-card__image",
1441
1441
  src: l.image
1442
1442
  }, i.imgProps), {
1443
- default: m(() => [
1443
+ default: g(() => [
1444
1444
  p(e.$slots, "image-content")
1445
1445
  ]),
1446
1446
  _: 3
@@ -1477,10 +1477,10 @@ const kt = {
1477
1477
  emits: [],
1478
1478
  computed: {
1479
1479
  titleClasses() {
1480
- return W(this.titleClass);
1480
+ return N(this.titleClass);
1481
1481
  },
1482
1482
  contentClasses() {
1483
- return W(this.contentClass);
1483
+ return N(this.contentClass);
1484
1484
  },
1485
1485
  titleHasToolbar() {
1486
1486
  const { title: e } = this.$slots;
@@ -1555,30 +1555,30 @@ const kt = {
1555
1555
  ], -1), Vt = [
1556
1556
  $t
1557
1557
  ], It = ["for"], Rt = ["for", "innerHTML"];
1558
- function Lt(e, t, l, a, o, i) {
1559
- return s(), b(I(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.isChecked, disabled: e.isDisabled }, {
1558
+ function Lt(e, t, l, o, n, i) {
1559
+ return s(), b(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled }, {
1560
1560
  valid: e.valid,
1561
- "onUpdate:valid": t[5] || (t[5] = (n) => e.valid = n),
1562
- onReset: t[6] || (t[6] = (n) => {
1563
- e.$emit("update:modelValue", o.isChecked = null), e.$emit("input", null);
1561
+ "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1562
+ onReset: t[6] || (t[6] = (a) => {
1563
+ e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
1564
1564
  }),
1565
1565
  class: i.classes
1566
1566
  }), {
1567
- default: m(() => [
1567
+ default: g(() => [
1568
1568
  w("input", {
1569
1569
  ref: "input",
1570
1570
  id: `w-checkbox--${e._.uid}`,
1571
1571
  type: "checkbox",
1572
1572
  name: e.inputName,
1573
- checked: o.isChecked || null,
1573
+ checked: n.isChecked || null,
1574
1574
  disabled: e.isDisabled || null,
1575
1575
  required: e.required || null,
1576
1576
  tabindex: e.tabindex || null,
1577
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
1578
- onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
1579
- onChange: t[2] || (t[2] = (n) => i.onInput()),
1580
- onKeypress: t[3] || (t[3] = M((...n) => i.onInput && i.onInput(...n), ["enter"])),
1581
- "aria-checked": o.isChecked || "false",
1577
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
1578
+ onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
1579
+ onChange: t[2] || (t[2] = (a) => i.onInput()),
1580
+ onKeypress: t[3] || (t[3] = M((...a) => i.onInput && i.onInput(...a), ["enter"])),
1581
+ "aria-checked": n.isChecked || "false",
1582
1582
  role: "checkbox"
1583
1583
  }, null, 40, Ct),
1584
1584
  i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
@@ -1588,7 +1588,7 @@ function Lt(e, t, l, a, o, i) {
1588
1588
  for: `w-checkbox--${e._.uid}`
1589
1589
  }, [
1590
1590
  p(e.$slots, "default", {}, () => [
1591
- C(k(l.label), 1)
1591
+ B(k(l.label), 1)
1592
1592
  ])
1593
1593
  ], 10, Bt)) : l.label ? (s(), u("label", {
1594
1594
  key: 1,
@@ -1599,7 +1599,7 @@ function Lt(e, t, l, a, o, i) {
1599
1599
  ], 64)) : c("", !0),
1600
1600
  w("div", {
1601
1601
  class: f(["w-checkbox__input", this.color]),
1602
- onClick: t[4] || (t[4] = (n) => {
1602
+ onClick: t[4] || (t[4] = (a) => {
1603
1603
  e.$refs.input.focus(), e.$refs.input.click();
1604
1604
  })
1605
1605
  }, Vt, 2),
@@ -1610,7 +1610,7 @@ function Lt(e, t, l, a, o, i) {
1610
1610
  for: `w-checkbox--${e._.uid}`
1611
1611
  }, [
1612
1612
  p(e.$slots, "default", {}, () => [
1613
- C(k(l.label), 1)
1613
+ B(k(l.label), 1)
1614
1614
  ])
1615
1615
  ], 10, It)) : l.label ? (s(), u("label", {
1616
1616
  key: 1,
@@ -1683,9 +1683,9 @@ const Tt = {
1683
1683
  }
1684
1684
  }
1685
1685
  }, xt = /* @__PURE__ */ v(Tt, [["render", Lt]]), Pt = ["innerHTML"];
1686
- function Ot(e, t, l, a, o, i) {
1687
- const n = $("w-checkbox");
1688
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
1686
+ function Ot(e, t, l, o, n, i) {
1687
+ const a = $("w-checkbox");
1688
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
1689
1689
  valid: e.valid,
1690
1690
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
1691
1691
  onReset: i.reset,
@@ -1693,8 +1693,8 @@ function Ot(e, t, l, a, o, i) {
1693
1693
  wrap: l.inline,
1694
1694
  class: i.classes
1695
1695
  }), {
1696
- default: m(() => [
1697
- (s(!0), u(_, null, T(i.checkboxItems, (r, d) => (s(), b(n, B({
1696
+ default: g(() => [
1697
+ (s(!0), u(_, null, T(i.checkboxItems, (r, d) => (s(), b(a, C({
1698
1698
  key: d,
1699
1699
  "model-value": r._isChecked,
1700
1700
  "onUpdate:modelValue": (h) => i.toggleCheck(r, h),
@@ -1705,7 +1705,7 @@ function Ot(e, t, l, a, o, i) {
1705
1705
  readonly: e.isReadonly || null,
1706
1706
  class: { mt1: !l.inline && d }
1707
1707
  }), {
1708
- default: m(() => [
1708
+ default: g(() => [
1709
1709
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
1710
1710
  key: 0,
1711
1711
  item: i.getOriginalItem(r),
@@ -1769,83 +1769,82 @@ const zt = {
1769
1769
  },
1770
1770
  toggleCheck(e, t) {
1771
1771
  e._isChecked = t;
1772
- const l = this.checkboxItems.filter((a) => a._isChecked).map((a) => a.value);
1772
+ const l = this.checkboxItems.filter((o) => o._isChecked).map((o) => o.value);
1773
1773
  this.$emit("update:modelValue", l), this.$emit("input", l);
1774
1774
  },
1775
1775
  getOriginalItem(e) {
1776
1776
  return this.items[e._index];
1777
1777
  }
1778
1778
  }
1779
- }, Et = /* @__PURE__ */ v(zt, [["render", Ot]]), Mt = { class: "w-confirm" };
1780
- function Nt(e, t, l, a, o, i) {
1781
- const n = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = fe("focus");
1782
- return s(), u("div", Mt, [
1783
- V(d, B({
1784
- modelValue: e.showPopup,
1785
- "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
1786
- }, i.wMenuProps), {
1787
- activator: m(({ on: y }) => [
1788
- V(n, B({ class: "w-confirm__button" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1789
- default: m(() => [
1790
- p(e.$slots, "default")
1791
- ]),
1792
- _: 2
1793
- }, 1040)
1794
- ]),
1795
- default: m(() => [
1796
- V(r, {
1797
- column: !l.inline,
1798
- "align-center": ""
1799
- }, {
1800
- default: m(() => [
1801
- w("div", null, [
1802
- p(e.$slots, "question", {}, () => [
1803
- C(k(l.question), 1)
1804
- ])
1805
- ]),
1806
- w("div", {
1807
- class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
1808
- }, [
1809
- l.cancel !== !1 ? (s(), b(n, B({
1810
- key: 0,
1811
- class: "mr2"
1812
- }, i.cancelButtonProps, {
1813
- "bg-color": (i.cancelButton || {}).bgColor || "error",
1814
- onKeyup: t[0] || (t[0] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
1815
- onClick: i.onCancel
1816
- }), {
1817
- default: m(() => [
1818
- p(e.$slots, "cancel", {}, () => [
1819
- C(k(i.cancelButton.label), 1)
1820
- ])
1821
- ]),
1822
- _: 3
1823
- }, 16, ["bg-color", "onClick"])) : c("", !0),
1824
- D((s(), b(n, B(i.confirmButtonProps, {
1825
- "bg-color": (i.confirmButton || {}).bgColor || "success",
1826
- onKeyup: t[1] || (t[1] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
1827
- onClick: i.onConfirm
1828
- }), {
1829
- default: m(() => [
1830
- p(e.$slots, "confirm", {}, () => [
1831
- C(k(i.confirmButton.label), 1)
1832
- ])
1833
- ]),
1834
- _: 3
1835
- }, 16, ["bg-color", "onClick"])), [
1836
- [h]
1837
- ])
1838
- ], 2)
1779
+ }, Et = /* @__PURE__ */ v(zt, [["render", Ot]]);
1780
+ function Mt(e, t, l, o, n, i) {
1781
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = fe("focus");
1782
+ return s(), b(d, C({
1783
+ modelValue: e.showPopup,
1784
+ "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
1785
+ }, i.wMenuProps), {
1786
+ activator: g(({ on: y }) => [
1787
+ I(a, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1788
+ default: g(() => [
1789
+ p(e.$slots, "default")
1790
+ ]),
1791
+ _: 2
1792
+ }, 1040)
1793
+ ]),
1794
+ default: g(() => [
1795
+ I(r, {
1796
+ column: !l.inline,
1797
+ "align-center": ""
1798
+ }, {
1799
+ default: g(() => [
1800
+ w("div", null, [
1801
+ p(e.$slots, "question", {}, () => [
1802
+ B(k(l.question), 1)
1803
+ ])
1839
1804
  ]),
1840
- _: 3
1841
- }, 8, ["column"])
1842
- ]),
1843
- _: 3
1844
- }, 16, ["modelValue"])
1845
- ]);
1805
+ w("div", {
1806
+ class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
1807
+ }, [
1808
+ l.cancel !== !1 ? (s(), b(a, C({
1809
+ key: 0,
1810
+ class: "mr2"
1811
+ }, i.cancelButtonProps, {
1812
+ "bg-color": (i.cancelButton || {}).bgColor || "error",
1813
+ onKeyup: t[0] || (t[0] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
1814
+ onClick: i.onCancel
1815
+ }), {
1816
+ default: g(() => [
1817
+ p(e.$slots, "cancel", {}, () => [
1818
+ B(k(i.cancelButton.label), 1)
1819
+ ])
1820
+ ]),
1821
+ _: 3
1822
+ }, 16, ["bg-color", "onClick"])) : c("", !0),
1823
+ D((s(), b(a, C(i.confirmButtonProps, {
1824
+ "bg-color": (i.confirmButton || {}).bgColor || "success",
1825
+ onKeyup: t[1] || (t[1] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
1826
+ onClick: i.onConfirm
1827
+ }), {
1828
+ default: g(() => [
1829
+ p(e.$slots, "confirm", {}, () => [
1830
+ B(k(i.confirmButton.label), 1)
1831
+ ])
1832
+ ]),
1833
+ _: 3
1834
+ }, 16, ["bg-color", "onClick"])), [
1835
+ [h]
1836
+ ])
1837
+ ], 2)
1838
+ ]),
1839
+ _: 3
1840
+ }, 8, ["column"])
1841
+ ]),
1842
+ _: 3
1843
+ }, 16, ["modelValue"]);
1846
1844
  }
1847
- const Wt = {
1845
+ const At = {
1848
1846
  name: "w-confirm",
1847
+ inheritAttrs: !1,
1849
1848
  props: {
1850
1849
  bgColor: { type: String },
1851
1850
  color: { type: String },
@@ -1936,8 +1935,8 @@ const Wt = {
1936
1935
  this.$emit("confirm"), this.showPopup = !1;
1937
1936
  }
1938
1937
  }
1939
- }, At = /* @__PURE__ */ v(Wt, [["render", Nt]]);
1940
- function Kt(e, t, l, a, o, i) {
1938
+ }, Nt = /* @__PURE__ */ v(At, [["render", Mt]]);
1939
+ function Wt(e, t, l, o, n, i) {
1941
1940
  return s(), u("div", {
1942
1941
  class: f(["w-date-picker", i.classes]),
1943
1942
  style: L(i.styles)
@@ -1945,7 +1944,7 @@ function Kt(e, t, l, a, o, i) {
1945
1944
  p(e.$slots, "default")
1946
1945
  ], 6);
1947
1946
  }
1948
- const Dt = {
1947
+ const Kt = {
1949
1948
  name: "w-date-picker",
1950
1949
  props: {
1951
1950
  dark: { type: Boolean },
@@ -1963,12 +1962,12 @@ const Dt = {
1963
1962
  return !1;
1964
1963
  }
1965
1964
  }
1966
- }, Ft = /* @__PURE__ */ v(Dt, [["render", Kt]]);
1967
- function Ht(e, t, l, a, o, i) {
1968
- const n = $("w-card"), r = $("w-overlay");
1965
+ }, Dt = /* @__PURE__ */ v(Kt, [["render", Wt]]);
1966
+ function Ft(e, t, l, o, n, i) {
1967
+ const a = $("w-card"), r = $("w-overlay");
1969
1968
  return s(), b(r, {
1970
1969
  class: f(["w-dialog", i.classes]),
1971
- "model-value": o.showWrapper,
1970
+ "model-value": n.showWrapper,
1972
1971
  persistent: l.persistent,
1973
1972
  "persistent-no-animation": l.persistentNoAnimation,
1974
1973
  onClick: i.onOutsideClick,
@@ -1976,14 +1975,14 @@ function Ht(e, t, l, a, o, i) {
1976
1975
  "bg-color": l.overlayColor,
1977
1976
  opacity: l.overlayOpacity
1978
1977
  }, {
1979
- default: m(() => [
1980
- V(x, {
1978
+ default: g(() => [
1979
+ I(x, {
1981
1980
  name: l.transition,
1982
1981
  appear: "",
1983
1982
  onAfterLeave: i.onBeforeClose
1984
1983
  }, {
1985
- default: m(() => [
1986
- D(V(n, {
1984
+ default: g(() => [
1985
+ D(I(a, {
1987
1986
  class: f(["w-dialog__content", l.dialogClass]),
1988
1987
  ref: "dialog",
1989
1988
  "no-border": "",
@@ -1994,27 +1993,27 @@ function Ht(e, t, l, a, o, i) {
1994
1993
  title: l.title || void 0,
1995
1994
  style: L(i.contentStyles)
1996
1995
  }, Z({
1997
- default: m(() => [
1996
+ default: g(() => [
1998
1997
  p(e.$slots, "default")
1999
1998
  ]),
2000
1999
  _: 2
2001
2000
  }, [
2002
2001
  e.$slots.title ? {
2003
2002
  name: "title",
2004
- fn: m(() => [
2003
+ fn: g(() => [
2005
2004
  p(e.$slots, "title")
2006
2005
  ]),
2007
2006
  key: "0"
2008
2007
  } : void 0,
2009
2008
  e.$slots.actions ? {
2010
2009
  name: "actions",
2011
- fn: m(() => [
2010
+ fn: g(() => [
2012
2011
  p(e.$slots, "actions")
2013
2012
  ]),
2014
2013
  key: "1"
2015
2014
  } : void 0
2016
2015
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2017
- [me, o.showContent]
2016
+ [ge, n.showContent]
2018
2017
  ])
2019
2018
  ]),
2020
2019
  _: 3
@@ -2023,7 +2022,7 @@ function Ht(e, t, l, a, o, i) {
2023
2022
  _: 3
2024
2023
  }, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
2025
2024
  }
2026
- const jt = {
2025
+ const Ht = {
2027
2026
  name: "w-dialog",
2028
2027
  props: {
2029
2028
  modelValue: { default: !0 },
@@ -2090,17 +2089,17 @@ const jt = {
2090
2089
  this.showWrapper = e, this.showContent = e;
2091
2090
  }
2092
2091
  }
2093
- }, Ut = /* @__PURE__ */ v(jt, [["render", Ht]]), qt = ["role", "aria-orientation"];
2094
- function Gt(e, t, l, a, o, i) {
2092
+ }, jt = /* @__PURE__ */ v(Ht, [["render", Ft]]), Ut = ["role", "aria-orientation"];
2093
+ function qt(e, t, l, o, n, i) {
2095
2094
  return s(), u("div", {
2096
2095
  class: f(["w-divider", i.classes]),
2097
2096
  role: e.$slots.default ? null : "presentation",
2098
2097
  "aria-orientation": l.vertical ? "vertical" : "horizontal"
2099
2098
  }, [
2100
2099
  p(e.$slots, "default")
2101
- ], 10, qt);
2100
+ ], 10, Ut);
2102
2101
  }
2103
- const Xt = {
2102
+ const Gt = {
2104
2103
  name: "w-divider",
2105
2104
  props: {
2106
2105
  vertical: { type: Boolean },
@@ -2120,10 +2119,10 @@ const Xt = {
2120
2119
  };
2121
2120
  }
2122
2121
  }
2123
- }, Yt = /* @__PURE__ */ v(Xt, [["render", Gt]]), Jt = { class: "w-drawer-wrap__pushable" };
2124
- function Qt(e, t, l, a, o, i) {
2125
- const n = $("w-overlay");
2126
- return o.showWrapper || l.pushContent ? (s(), u("div", {
2122
+ }, Xt = /* @__PURE__ */ v(Gt, [["render", qt]]), Yt = { class: "w-drawer-wrap__pushable" };
2123
+ function Jt(e, t, l, o, n, i) {
2124
+ const a = $("w-overlay");
2125
+ return n.showWrapper || l.pushContent ? (s(), u("div", {
2127
2126
  key: 0,
2128
2127
  class: f(["w-drawer-wrap", i.wrapperClasses])
2129
2128
  }, [
@@ -2132,11 +2131,11 @@ function Qt(e, t, l, a, o, i) {
2132
2131
  class: "w-drawer-wrap__track",
2133
2132
  style: L(i.trackStyles)
2134
2133
  }, [
2135
- w("div", Jt, [
2136
- l.noOverlay ? c("", !0) : (s(), b(n, {
2134
+ w("div", Yt, [
2135
+ l.noOverlay ? c("", !0) : (s(), b(a, {
2137
2136
  key: 0,
2138
- modelValue: o.showDrawer,
2139
- "onUpdate:modelValue": t[0] || (t[0] = (r) => o.showDrawer = r),
2137
+ modelValue: n.showDrawer,
2138
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2140
2139
  onClick: i.onOutsideClick,
2141
2140
  persistent: l.persistent,
2142
2141
  "persistent-no-animation": "",
@@ -2145,19 +2144,19 @@ function Qt(e, t, l, a, o, i) {
2145
2144
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2146
2145
  p(e.$slots, "pushable")
2147
2146
  ]),
2148
- V(x, {
2147
+ I(x, {
2149
2148
  name: "fade",
2150
2149
  onBeforeLeave: i.onBeforeClose,
2151
2150
  onAfterLeave: i.onClose
2152
2151
  }, {
2153
- default: m(() => [
2154
- o.showDrawer ? (s(), b(I(l.tag || "aside"), {
2152
+ default: g(() => [
2153
+ n.showDrawer ? (s(), b(V(l.tag || "aside"), {
2155
2154
  key: 0,
2156
2155
  class: f(["w-drawer", i.drawerClasses]),
2157
2156
  ref: "drawer",
2158
2157
  style: L(i.styles)
2159
2158
  }, {
2160
- default: m(() => [
2159
+ default: g(() => [
2161
2160
  p(e.$slots, "default")
2162
2161
  ]),
2163
2162
  _: 3
@@ -2166,30 +2165,30 @@ function Qt(e, t, l, a, o, i) {
2166
2165
  _: 3
2167
2166
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2168
2167
  ], 4)) : (s(), u(_, { key: 1 }, [
2169
- l.noOverlay ? c("", !0) : (s(), b(n, {
2168
+ l.noOverlay ? c("", !0) : (s(), b(a, {
2170
2169
  key: 0,
2171
- modelValue: o.showDrawer,
2172
- "onUpdate:modelValue": t[1] || (t[1] = (r) => o.showDrawer = r),
2170
+ modelValue: n.showDrawer,
2171
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2173
2172
  onClick: i.onOutsideClick,
2174
2173
  persistent: l.persistent,
2175
2174
  "persistent-no-animation": "",
2176
2175
  "bg-color": l.overlayColor,
2177
2176
  opacity: l.overlayOpacity
2178
2177
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2179
- V(x, {
2178
+ I(x, {
2180
2179
  name: i.transitionName,
2181
2180
  appear: "",
2182
2181
  onBeforeLeave: i.onBeforeClose,
2183
2182
  onAfterLeave: i.onClose
2184
2183
  }, {
2185
- default: m(() => [
2186
- o.showDrawer ? (s(), b(I(l.tag || "aside"), {
2184
+ default: g(() => [
2185
+ n.showDrawer ? (s(), b(V(l.tag || "aside"), {
2187
2186
  key: 0,
2188
2187
  class: f(["w-drawer", i.drawerClasses]),
2189
2188
  ref: "drawer",
2190
2189
  style: L(i.styles)
2191
2190
  }, {
2192
- default: m(() => [
2191
+ default: g(() => [
2193
2192
  p(e.$slots, "default")
2194
2193
  ]),
2195
2194
  _: 3
@@ -2200,7 +2199,7 @@ function Qt(e, t, l, a, o, i) {
2200
2199
  ], 64))
2201
2200
  ], 2)) : c("", !0);
2202
2201
  }
2203
- const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2202
+ const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
2204
2203
  name: "w-drawer",
2205
2204
  props: {
2206
2205
  modelValue: { default: !0 },
@@ -2286,7 +2285,7 @@ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2286
2285
  return !this.showWrapper;
2287
2286
  },
2288
2287
  transitionName() {
2289
- return `slide-${Zt[this.position]}`;
2288
+ return `slide-${Qt[this.position]}`;
2290
2289
  }
2291
2290
  },
2292
2291
  methods: {
@@ -2305,18 +2304,18 @@ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2305
2304
  e && (this.showWrapper = !0), this.showDrawer = e;
2306
2305
  }
2307
2306
  }
2308
- }, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
2309
- function ll(e, t, l, a, o, i) {
2310
- return s(), b(I(l.tag), {
2307
+ }, el = /* @__PURE__ */ v(Zt, [["render", Jt]]);
2308
+ function tl(e, t, l, o, n, i) {
2309
+ return s(), b(V(l.tag), {
2311
2310
  class: f(["w-flex", i.classes])
2312
2311
  }, {
2313
- default: m(() => [
2312
+ default: g(() => [
2314
2313
  p(e.$slots, "default")
2315
2314
  ]),
2316
2315
  _: 3
2317
2316
  }, 8, ["class"]);
2318
2317
  }
2319
- const il = {
2318
+ const ll = {
2320
2319
  name: "w-flex",
2321
2320
  props: {
2322
2321
  tag: { type: String, default: "div" },
@@ -2363,23 +2362,23 @@ const il = {
2363
2362
  };
2364
2363
  }
2365
2364
  }
2366
- }, sl = /* @__PURE__ */ v(il, [["render", ll]]);
2367
- function al(e, t, l, a, o, i) {
2365
+ }, il = /* @__PURE__ */ v(ll, [["render", tl]]);
2366
+ function sl(e, t, l, o, n, i) {
2368
2367
  return s(), u("form", {
2369
2368
  class: f(["w-form", i.classes]),
2370
- onSubmit: t[0] || (t[0] = (...n) => i.onSubmit && i.onSubmit(...n)),
2371
- onReset: t[1] || (t[1] = (...n) => i.reset && i.reset(...n)),
2369
+ onSubmit: t[0] || (t[0] = (...a) => i.onSubmit && i.onSubmit(...a)),
2370
+ onReset: t[1] || (t[1] = (...a) => i.reset && i.reset(...a)),
2372
2371
  novalidate: ""
2373
2372
  }, [
2374
2373
  p(e.$slots, "default")
2375
2374
  ], 34);
2376
2375
  }
2377
- const ol = async (e, t) => {
2376
+ const al = async (e, t) => {
2378
2377
  for (const l of e)
2379
2378
  if (await t(l))
2380
2379
  return !0;
2381
2380
  return !1;
2382
- }, nl = {
2381
+ }, ol = {
2383
2382
  name: "w-form",
2384
2383
  props: {
2385
2384
  modelValue: {},
@@ -2437,8 +2436,8 @@ const ol = async (e, t) => {
2437
2436
  let t = 0;
2438
2437
  return await (async () => {
2439
2438
  var l;
2440
- for (const a of this.formElements)
2441
- !((l = a.validators) != null && l.length) || a.disabled || a.readonly || (await this.checkElementValidators(a), t += ~~!a.Validation.isValid, a.$emit("update:valid", a.Validation.isValid));
2439
+ for (const o of this.formElements)
2440
+ !((l = o.validators) != null && l.length) || o.disabled || o.readonly || (await this.checkElementValidators(o), t += ~~!o.Validation.isValid, o.$emit("update:valid", o.Validation.isValid));
2442
2441
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2443
2442
  },
2444
2443
  async validateElement(e) {
@@ -2446,16 +2445,16 @@ const ol = async (e, t) => {
2446
2445
  },
2447
2446
  async checkElementValidators(e) {
2448
2447
  let t = !1, l = "";
2449
- await ol(e.validators, async (a) => {
2450
- const o = await (typeof a == "function" && a(e.inputValue));
2451
- return t = typeof o != "string", l = t ? "" : o, !t;
2448
+ await al(e.validators, async (o) => {
2449
+ const n = await (typeof o == "function" && o(e.inputValue));
2450
+ return t = typeof n != "string", l = t ? "" : n, !t;
2452
2451
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
2453
2452
  },
2454
2453
  reset(e) {
2455
2454
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2456
2455
  },
2457
2456
  updateErrorsCount(e = null, t = !1) {
2458
- this.errorsCount = e !== null ? e : this.formElements.reduce((l, a) => l + ~~(a.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);
2457
+ this.errorsCount = e !== null ? e : this.formElements.reduce((l, o) => l + ~~(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);
2459
2458
  },
2460
2459
  onSubmit(e) {
2461
2460
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2469,9 +2468,9 @@ const ol = async (e, t) => {
2469
2468
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
2470
2469
  }
2471
2470
  }
2472
- }, rl = /* @__PURE__ */ v(nl, [["render", al]]);
2473
- function dl(e, t, l, a, o, i) {
2474
- const n = $("w-transition-expand");
2471
+ }, nl = /* @__PURE__ */ v(ol, [["render", sl]]);
2472
+ function rl(e, t, l, o, n, i) {
2473
+ const a = $("w-transition-expand");
2475
2474
  return s(), u("div", {
2476
2475
  class: f(i.classes)
2477
2476
  }, [
@@ -2480,8 +2479,8 @@ function dl(e, t, l, a, o, i) {
2480
2479
  }, [
2481
2480
  p(e.$slots, "default")
2482
2481
  ], 2),
2483
- V(n, { y: "" }, {
2484
- default: m(() => [
2482
+ I(a, { y: "" }, {
2483
+ default: g(() => [
2485
2484
  e.Validation.message ? (s(), u("div", {
2486
2485
  key: 0,
2487
2486
  class: f(["w-form-el__error", i.formProps.validationColor])
@@ -2489,7 +2488,7 @@ function dl(e, t, l, a, o, i) {
2489
2488
  p(e.$slots, "error-message", {
2490
2489
  message: e.Validation.message
2491
2490
  }, () => [
2492
- C(k(e.Validation.message), 1)
2491
+ B(k(e.Validation.message), 1)
2493
2492
  ])
2494
2493
  ], 2)) : c("", !0)
2495
2494
  ]),
@@ -2497,7 +2496,7 @@ function dl(e, t, l, a, o, i) {
2497
2496
  })
2498
2497
  ], 2);
2499
2498
  }
2500
- const ul = {
2499
+ const dl = {
2501
2500
  name: "w-form-element",
2502
2501
  props: {
2503
2502
  valid: { required: !0 },
@@ -2563,18 +2562,18 @@ const ul = {
2563
2562
  beforeUnmount() {
2564
2563
  this.formUnregister && this.formUnregister(this);
2565
2564
  }
2566
- }, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
2567
- function cl(e, t, l, a, o, i) {
2568
- return s(), b(I(l.tag), {
2565
+ }, ul = /* @__PURE__ */ v(dl, [["render", rl]]);
2566
+ function hl(e, t, l, o, n, i) {
2567
+ return s(), b(V(l.tag), {
2569
2568
  class: f(["w-grid", i.classes])
2570
2569
  }, {
2571
- default: m(() => [
2570
+ default: g(() => [
2572
2571
  p(e.$slots, "default")
2573
2572
  ]),
2574
2573
  _: 3
2575
2574
  }, 8, ["class"]);
2576
2575
  }
2577
- const pl = {
2576
+ const cl = {
2578
2577
  name: "w-grid",
2579
2578
  props: {
2580
2579
  tag: { type: String, default: "div" },
@@ -2610,25 +2609,25 @@ const pl = {
2610
2609
  },
2611
2610
  classes() {
2612
2611
  let e = null;
2613
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [a, o]) => (l[`${a}-columns${o}`] = !0, l), {}));
2612
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [o, n]) => (l[`${o}-columns${n}`] = !0, l), {}));
2614
2613
  let t = null;
2615
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [a, o]) => (l[`${a}-gap${o}`] = !0, l), {})), {
2614
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [o, n]) => (l[`${o}-gap${n}`] = !0, l), {})), {
2616
2615
  ...e || { [`columns${this.columns}`]: this.columns },
2617
2616
  ...t || { [`gap${this.gap}`]: this.gap }
2618
2617
  };
2619
2618
  }
2620
2619
  }
2621
- }, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
2622
- function ml(e, t, l, a, o, i) {
2623
- return s(), b(I(l.tag || "i"), B({ class: "w-icon" }, N(e.$attrs), {
2620
+ }, pl = /* @__PURE__ */ v(cl, [["render", hl]]);
2621
+ function fl(e, t, l, o, n, i) {
2622
+ return s(), b(V(l.tag || "i"), C({ class: "w-icon" }, A(e.$attrs), {
2624
2623
  class: i.classes,
2625
2624
  role: "icon",
2626
2625
  "aria-hidden": "true",
2627
2626
  style: i.readIcon() && i.styles
2628
2627
  }), {
2629
- default: m(() => [
2628
+ default: g(() => [
2630
2629
  i.hasLigature ? (s(), u(_, { key: 0 }, [
2631
- C(k(e.icon), 1)
2630
+ B(k(e.icon), 1)
2632
2631
  ], 64)) : c("", !0)
2633
2632
  ]),
2634
2633
  _: 1
@@ -2703,43 +2702,43 @@ const gl = {
2703
2702
  return this.fontName = t, this.icon = l, !0;
2704
2703
  }
2705
2704
  }
2706
- }, bl = /* @__PURE__ */ v(gl, [["render", ml]]), J = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), yl = {
2705
+ }, ml = /* @__PURE__ */ v(gl, [["render", fl]]), J = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), bl = {
2707
2706
  key: 0,
2708
2707
  class: "w-image__loader"
2709
2708
  };
2710
- function wl(e, t, l, a, o, i) {
2711
- const n = $("w-progress");
2712
- return s(), b(I(i.wrapperTag), {
2709
+ function yl(e, t, l, o, n, i) {
2710
+ const a = $("w-progress");
2711
+ return s(), b(V(i.wrapperTag), {
2713
2712
  class: f(["w-image-wrap", i.wrapperClasses]),
2714
2713
  style: L(i.wrapperStyles)
2715
2714
  }, {
2716
- default: m(() => [
2717
- V(x, {
2715
+ default: g(() => [
2716
+ I(x, {
2718
2717
  name: l.transition,
2719
2718
  appear: ""
2720
2719
  }, {
2721
- default: m(() => [
2722
- o.loaded ? (s(), b(I(l.tag), {
2720
+ default: g(() => [
2721
+ n.loaded ? (s(), b(V(l.tag), {
2723
2722
  key: 0,
2724
2723
  class: f(["w-image", i.imageClasses]),
2725
2724
  style: L(i.imageStyles),
2726
- src: l.tag === "img" ? o.imgSrc : null
2725
+ src: l.tag === "img" ? n.imgSrc : null
2727
2726
  }, null, 8, ["class", "style", "src"])) : c("", !0)
2728
2727
  ]),
2729
2728
  _: 1
2730
2729
  }, 8, ["name"]),
2731
- !l.noSpinner && o.loading ? (s(), u("div", yl, [
2732
- e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(n, B({
2730
+ !l.noSpinner && n.loading ? (s(), u("div", bl, [
2731
+ e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(a, C({
2733
2732
  key: 1,
2734
2733
  circle: "",
2735
2734
  indeterminate: ""
2736
2735
  }, l.spinnerColor ? { color: l.spinnerColor } : {}), null, 16))
2737
2736
  ])) : c("", !0),
2738
- e.$slots.default ? (s(), b(I(i.wrapperTag), {
2737
+ e.$slots.default ? (s(), b(V(i.wrapperTag), {
2739
2738
  key: 1,
2740
2739
  class: f(["w-image__content", l.contentClass])
2741
2740
  }, {
2742
- default: m(() => [
2741
+ default: g(() => [
2743
2742
  p(e.$slots, "default")
2744
2743
  ]),
2745
2744
  _: 3
@@ -2748,7 +2747,7 @@ function wl(e, t, l, a, o, i) {
2748
2747
  _: 3
2749
2748
  }, 8, ["class", "style"]);
2750
2749
  }
2751
- const vl = {
2750
+ const wl = {
2752
2751
  name: "w-image",
2753
2752
  props: {
2754
2753
  tag: { type: String, default: "span" },
@@ -2816,8 +2815,8 @@ const vl = {
2816
2815
  if (!this.loading)
2817
2816
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
2818
2817
  const l = new Image();
2819
- l.onload = (a) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = a.target.width, this.imgHeight = a.target.height), this.imgComputedRatio = a.target.height / a.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(l)), l.onerror = (a) => {
2820
- this.$emit("error", a), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
2818
+ l.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(l)), l.onerror = (o) => {
2819
+ this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
2821
2820
  }, l.src = e ? this.fallback : this.src;
2822
2821
  });
2823
2822
  }
@@ -2844,29 +2843,29 @@ const vl = {
2844
2843
  this.imgHeight = e;
2845
2844
  }
2846
2845
  }
2847
- }, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"], Bl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Sl = ["id", "name", "multiple", "data-progress"], $l = {
2846
+ }, vl = /* @__PURE__ */ v(wl, [["render", yl]]), kl = ["name"], _l = ["for"], Cl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bl = ["id", "name", "multiple", "data-progress"], Sl = {
2848
2847
  class: "w-input__no-file",
2849
2848
  key: "no-file"
2850
- }, Vl = ["for"], Il = ["for"], Rl = ["src"], Ll = ["for"];
2851
- function Tl(e, t, l, a, o, i) {
2852
- const n = $("w-icon"), r = $("w-progress");
2853
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: o.isFocused }, {
2849
+ }, $l = ["for"], Vl = ["for"], Il = ["src"], Rl = ["for"];
2850
+ function Ll(e, t, l, o, n, i) {
2851
+ const a = $("w-icon"), r = $("w-progress");
2852
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
2854
2853
  valid: e.valid,
2855
2854
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
2856
2855
  onReset: t[11] || (t[11] = (d) => {
2857
- e.$emit("update:modelValue", o.inputValue = ""), e.$emit("input", "");
2856
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
2858
2857
  }),
2859
2858
  wrap: i.hasLabel && l.labelPosition !== "inside",
2860
2859
  class: i.classes
2861
2860
  }), {
2862
- default: m(() => [
2861
+ default: g(() => [
2863
2862
  l.type === "hidden" ? D((s(), u("input", {
2864
2863
  key: 0,
2865
2864
  type: "hidden",
2866
2865
  name: e.name || null,
2867
- "onUpdate:modelValue": t[0] || (t[0] = (d) => o.inputValue = d)
2868
- }, null, 8, _l)), [
2869
- [ge, o.inputValue]
2866
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
2867
+ }, null, 8, kl)), [
2868
+ [me, n.inputValue]
2870
2869
  ]) : (s(), u(_, { key: 1 }, [
2871
2870
  l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
2872
2871
  e.$slots.default || l.label ? (s(), u("label", {
@@ -2875,31 +2874,31 @@ function Tl(e, t, l, a, o, i) {
2875
2874
  for: `w-input--${e._.uid}`
2876
2875
  }, [
2877
2876
  p(e.$slots, "default", {}, () => [
2878
- C(k(l.label), 1)
2877
+ B(k(l.label), 1)
2879
2878
  ])
2880
- ], 10, Cl)) : c("", !0)
2879
+ ], 10, _l)) : c("", !0)
2881
2880
  ], 64)) : c("", !0),
2882
2881
  w("div", {
2883
2882
  class: f(["w-input__input-wrap", i.inputWrapClasses])
2884
2883
  }, [
2885
- l.innerIconLeft ? (s(), b(n, {
2884
+ l.innerIconLeft ? (s(), b(a, {
2886
2885
  key: 0,
2887
2886
  class: "w-input__icon w-input__icon--inner-left",
2888
2887
  tag: "label",
2889
2888
  for: `w-input--${e._.uid}`,
2890
2889
  onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
2891
2890
  }, {
2892
- default: m(() => [
2893
- C(k(l.innerIconLeft), 1)
2891
+ default: g(() => [
2892
+ B(k(l.innerIconLeft), 1)
2894
2893
  ]),
2895
2894
  _: 1
2896
2895
  }, 8, ["for"])) : c("", !0),
2897
- l.type !== "file" ? D((s(), u("input", B({
2896
+ l.type !== "file" ? D((s(), u("input", C({
2898
2897
  key: 1,
2899
2898
  class: "w-input__input",
2900
2899
  ref: "input",
2901
- "onUpdate:modelValue": t[2] || (t[2] = (d) => o.inputValue = d)
2902
- }, N(i.listeners, !0), {
2900
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
2901
+ }, A(i.listeners, !0), {
2903
2902
  onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
2904
2903
  onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
2905
2904
  onBlur: t[5] || (t[5] = (...d) => i.onBlur && i.onBlur(...d)),
@@ -2917,10 +2916,10 @@ function Tl(e, t, l, a, o, i) {
2917
2916
  disabled: e.isDisabled || null,
2918
2917
  required: e.required || null,
2919
2918
  tabindex: e.tabindex || null
2920
- }, i.attrs), null, 16, Bl)), [
2921
- [Se, o.inputValue]
2919
+ }, i.attrs), null, 16, Cl)), [
2920
+ [Se, n.inputValue]
2922
2921
  ]) : (s(), u(_, { key: 2 }, [
2923
- w("input", B({
2922
+ w("input", C({
2924
2923
  ref: "input",
2925
2924
  id: `w-input--${e._.uid}`,
2926
2925
  type: "file",
@@ -2931,30 +2930,30 @@ function Tl(e, t, l, a, o, i) {
2931
2930
  multiple: l.multiple || null
2932
2931
  }, i.attrs, {
2933
2932
  "data-progress": i.overallFilesProgress
2934
- }), null, 16, Sl),
2935
- V(pe, {
2933
+ }), null, 16, Bl),
2934
+ I(pe, {
2936
2935
  class: "w-input__input w-input__input--file",
2937
2936
  tag: "label",
2938
2937
  name: "fade",
2939
2938
  for: `w-input--${e._.uid}`
2940
2939
  }, {
2941
- default: m(() => [
2942
- !o.inputFiles.length && o.isFocused ? (s(), u("span", $l, [
2940
+ default: g(() => [
2941
+ !n.inputFiles.length && n.isFocused ? (s(), u("span", Sl, [
2943
2942
  p(e.$slots, "no-file", {}, () => [
2944
2943
  e.$slots["no-file"] === void 0 ? (s(), u(_, { key: 0 }, [
2945
- C("No file")
2944
+ B("No file")
2946
2945
  ], 64)) : c("", !0)
2947
2946
  ])
2948
2947
  ])) : c("", !0),
2949
- (s(!0), u(_, null, T(o.inputFiles, (d, h) => (s(), u("span", {
2948
+ (s(!0), u(_, null, T(n.inputFiles, (d, h) => (s(), u("span", {
2950
2949
  key: d.lastModified
2951
2950
  }, [
2952
- C(k(h ? ", " : ""), 1),
2951
+ B(k(h ? ", " : ""), 1),
2953
2952
  (s(), u("span", {
2954
2953
  class: "filename",
2955
2954
  key: `${h}b`
2956
2955
  }, k(d.base), 1)),
2957
- C(k(d.extension ? `.${d.extension}` : ""), 1)
2956
+ B(k(d.extension ? `.${d.extension}` : ""), 1)
2958
2957
  ]))), 128))
2959
2958
  ]),
2960
2959
  _: 3
@@ -2967,19 +2966,19 @@ function Tl(e, t, l, a, o, i) {
2967
2966
  for: `w-input--${e._.uid}`
2968
2967
  }, [
2969
2968
  p(e.$slots, "default", {}, () => [
2970
- C(k(l.label), 1)
2969
+ B(k(l.label), 1)
2971
2970
  ])
2972
- ], 10, Vl)) : c("", !0)
2971
+ ], 10, $l)) : c("", !0)
2973
2972
  ], 64)) : c("", !0),
2974
- l.innerIconRight ? (s(), b(n, {
2973
+ l.innerIconRight ? (s(), b(a, {
2975
2974
  key: 4,
2976
2975
  class: "w-input__icon w-input__icon--inner-right",
2977
2976
  tag: "label",
2978
2977
  for: `w-input--${e._.uid}`,
2979
2978
  onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
2980
2979
  }, {
2981
- default: m(() => [
2982
- C(k(l.innerIconRight), 1)
2980
+ default: g(() => [
2981
+ B(k(l.innerIconRight), 1)
2983
2982
  ]),
2984
2983
  _: 1
2985
2984
  }, 8, ["for"])) : c("", !0),
@@ -2991,12 +2990,12 @@ function Tl(e, t, l, a, o, i) {
2991
2990
  "model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
2992
2991
  }, null, 8, ["color", "model-value"])) : c("", !0)
2993
2992
  ], 2),
2994
- l.type === "file" && l.preview && o.inputFiles.length ? (s(), u("label", {
2993
+ l.type === "file" && l.preview && n.inputFiles.length ? (s(), u("label", {
2995
2994
  key: 1,
2996
2995
  class: "d-flex",
2997
2996
  for: `w-input--${e._.uid}`
2998
2997
  }, [
2999
- (s(!0), u(_, null, T(o.inputFiles, (d, h) => (s(), u(_, null, [
2998
+ (s(!0), u(_, null, T(n.inputFiles, (d, h) => (s(), u(_, null, [
3000
2999
  d.progress < 100 ? (s(), u("i", {
3001
3000
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3002
3001
  key: `${h}a`
@@ -3005,12 +3004,12 @@ function Tl(e, t, l, a, o, i) {
3005
3004
  key: `${h}b`,
3006
3005
  src: d.preview,
3007
3006
  alt: ""
3008
- }, null, 8, Rl)) : (s(), u("i", {
3007
+ }, null, 8, Il)) : (s(), u("i", {
3009
3008
  class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
3010
3009
  key: `${h}c`
3011
3010
  }, null, 2))
3012
3011
  ], 64))), 256))
3013
- ], 8, Il)) : c("", !0),
3012
+ ], 8, Vl)) : c("", !0),
3014
3013
  l.labelPosition === "right" ? (s(), u(_, { key: 2 }, [
3015
3014
  e.$slots.default || l.label ? (s(), u("label", {
3016
3015
  key: 0,
@@ -3018,16 +3017,16 @@ function Tl(e, t, l, a, o, i) {
3018
3017
  for: `w-input--${e._.uid}`
3019
3018
  }, [
3020
3019
  p(e.$slots, "default", {}, () => [
3021
- C(k(l.label), 1)
3020
+ B(k(l.label), 1)
3022
3021
  ])
3023
- ], 10, Ll)) : c("", !0)
3022
+ ], 10, Rl)) : c("", !0)
3024
3023
  ], 64)) : c("", !0)
3025
3024
  ], 64))
3026
3025
  ]),
3027
3026
  _: 3
3028
3027
  }, 16, ["valid", "wrap", "class"]);
3029
3028
  }
3030
- const xl = {
3029
+ const Tl = {
3031
3030
  name: "w-input",
3032
3031
  mixins: [z],
3033
3032
  props: {
@@ -3077,8 +3076,8 @@ const xl = {
3077
3076
  return t;
3078
3077
  },
3079
3078
  listeners() {
3080
- const { input: e, focus: t, blur: l, ...a } = this.$attrs;
3081
- return a;
3079
+ const { input: e, focus: t, blur: l, ...o } = this.$attrs;
3080
+ return o;
3082
3081
  },
3083
3082
  hasValue() {
3084
3083
  switch (this.type) {
@@ -3107,7 +3106,7 @@ const xl = {
3107
3106
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3108
3107
  },
3109
3108
  overallFilesProgress() {
3110
- const t = +this.inputFiles.reduce((l, a) => l + a.progress, 0) / this.inputFiles.length;
3109
+ const t = +this.inputFiles.reduce((l, o) => l + o.progress, 0) / this.inputFiles.length;
3111
3110
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
3112
3111
  },
3113
3112
  uploadInProgress() {
@@ -3161,10 +3160,10 @@ const xl = {
3161
3160
  },
3162
3161
  onFileChange(e) {
3163
3162
  this.inputFiles = [...e.target.files].map((t) => {
3164
- const [, l = "", a = "", o = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = G({
3163
+ const [, l = "", o = "", n = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = G({
3165
3164
  name: t.name,
3166
- base: l || o,
3167
- extension: a,
3165
+ base: l || n,
3166
+ extension: o,
3168
3167
  type: t.type,
3169
3168
  size: t.size,
3170
3169
  lastModified: t.lastModified,
@@ -3176,8 +3175,8 @@ const xl = {
3176
3175
  }), this.$emit("update:modelValue", this.inputFiles), this.$emit("input", this.inputFiles);
3177
3176
  },
3178
3177
  readFile(e, t) {
3179
- const l = new FileReader(), a = typeof this.preview == "string", o = e.type && e.type.startsWith("image/");
3180
- this.preview && !a && o ? l.addEventListener("load", (i) => {
3178
+ const l = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3179
+ this.preview && !o && n ? l.addEventListener("load", (i) => {
3181
3180
  t.preview = i.target.result;
3182
3181
  }) : delete t.preview, l.addEventListener("progress", (i) => {
3183
3182
  i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
@@ -3194,9 +3193,9 @@ const xl = {
3194
3193
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1);
3195
3194
  }
3196
3195
  }
3197
- }, Pl = /* @__PURE__ */ v(xl, [["render", Tl]]);
3198
- function Ol(e, t, l, a, o, i) {
3199
- const n = $("w-icon"), r = $("w-list", !0);
3196
+ }, xl = /* @__PURE__ */ v(Tl, [["render", Ll]]);
3197
+ function Pl(e, t, l, o, n, i) {
3198
+ const a = $("w-icon"), r = $("w-list", !0);
3200
3199
  return s(), u("ul", {
3201
3200
  class: f(["w-list", i.classes])
3202
3201
  }, [
@@ -3204,20 +3203,20 @@ function Ol(e, t, l, a, o, i) {
3204
3203
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3205
3204
  key: h
3206
3205
  }, [
3207
- l.icon ? (s(), b(n, {
3206
+ l.icon ? (s(), b(a, {
3208
3207
  key: 0,
3209
3208
  class: "w-list__item-bullet"
3210
3209
  }, {
3211
- default: m(() => [
3212
- C(k(l.icon), 1)
3210
+ default: g(() => [
3211
+ B(k(l.icon), 1)
3213
3212
  ]),
3214
3213
  _: 1
3215
3214
  })) : c("", !0),
3216
- e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), b(I(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), B({
3215
+ e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), b(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3217
3216
  key: 1,
3218
3217
  class: "w-list__item-label"
3219
3218
  }, i.liLabelProps(d, h, d._selected)), {
3220
- default: m(() => [
3219
+ default: g(() => [
3221
3220
  e.$slots[`item.${h + 1}`] ? p(e.$slots, `item.${h + 1}`, {
3222
3221
  key: 0,
3223
3222
  item: i.cleanLi(d),
@@ -3234,15 +3233,15 @@ function Ol(e, t, l, a, o, i) {
3234
3233
  index: h + 1,
3235
3234
  selected: d._selected
3236
3235
  }, () => [
3237
- C(k(d._label), 1)
3236
+ B(k(d._label), 1)
3238
3237
  ])
3239
3238
  ]),
3240
3239
  _: 2
3241
- }, 1040)) : (s(), b(I(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), B({
3240
+ }, 1040)) : (s(), b(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3242
3241
  key: 2,
3243
3242
  class: "w-list__item-label"
3244
3243
  }, i.liLabelProps(d, h, d._selected)), null, 16)),
3245
- (d.children || []).length ? (s(), b(r, B({ key: 3 }, e.$props, {
3244
+ (d.children || []).length ? (s(), b(r, C({ key: 3 }, e.$props, {
3246
3245
  items: d.children,
3247
3246
  depth: l.depth + 1,
3248
3247
  "onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
@@ -3252,23 +3251,23 @@ function Ol(e, t, l, a, o, i) {
3252
3251
  }), Z({ _: 2 }, [
3253
3252
  e.$slots.item ? {
3254
3253
  name: "item",
3255
- fn: m(({ item: y, index: S, selected: g }) => [
3254
+ fn: g(({ item: y, index: S, selected: m }) => [
3256
3255
  p(e.$slots, "item", {
3257
3256
  item: i.cleanLi(y),
3258
3257
  index: S,
3259
- selected: g
3258
+ selected: m
3260
3259
  })
3261
3260
  ]),
3262
3261
  key: "0"
3263
3262
  } : {
3264
3263
  name: "default",
3265
- fn: m(({ item: y, index: S, selected: g }) => [
3264
+ fn: g(({ item: y, index: S, selected: m }) => [
3266
3265
  p(e.$slots, "default", {
3267
3266
  item: i.cleanLi(y),
3268
3267
  index: S,
3269
- selected: g
3268
+ selected: m
3270
3269
  }, () => [
3271
- C(k(y[l.itemLabelKey]), 1)
3270
+ B(k(y[l.itemLabelKey]), 1)
3272
3271
  ])
3273
3272
  ]),
3274
3273
  key: "1"
@@ -3277,7 +3276,7 @@ function Ol(e, t, l, a, o, i) {
3277
3276
  ], 2))), 128))
3278
3277
  ], 2);
3279
3278
  }
3280
- const zl = {
3279
+ const Ol = {
3281
3280
  name: "w-list",
3282
3281
  props: {
3283
3282
  items: { type: [Array, Number], required: !0 },
@@ -3361,14 +3360,14 @@ const zl = {
3361
3360
  };
3362
3361
  },
3363
3362
  liLabelProps(e, t, l) {
3364
- const a = this.$slots[`item.${t + 1}`] || this.$slots.item, o = () => {
3363
+ const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3365
3364
  if (!e.disabled) {
3366
3365
  const d = this.cleanLi(e);
3367
3366
  this.$emit("item-click", d), this.$emit("item-select", d);
3368
3367
  }
3369
3368
  }, i = this.isSelectable && ((d) => {
3370
3369
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3371
- }), n = this.isSelectable && ((d) => {
3370
+ }), a = this.isSelectable && ((d) => {
3372
3371
  !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));
3373
3372
  }), r = {
3374
3373
  class: this.liLabelClasses(e),
@@ -3377,12 +3376,12 @@ const zl = {
3377
3376
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3378
3377
  role: "option"
3379
3378
  };
3380
- return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, a || (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) => {
3379
+ 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) => {
3381
3380
  const h = d.target.querySelector('input[type="checkbox"]');
3382
- h && (h.focus(), h.click()), o();
3383
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = i, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3384
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), o();
3385
- }) : (r.href = e[this.itemRouteKey], r.onClick = o)), a || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = o, r.onKeydown = n, r.onMousedown = i), a || (r.innerHTML = e._label)), r;
3381
+ h && (h.focus(), h.click()), n();
3382
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = i, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3383
+ d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3384
+ }) : (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 = i), o || (r.innerHTML = e._label)), r;
3386
3385
  },
3387
3386
  checkSelection(e) {
3388
3387
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
@@ -3391,7 +3390,7 @@ const zl = {
3391
3390
  const e = this.selectedItems.map((l) => {
3392
3391
  if (!this.returnObject)
3393
3392
  return l._value;
3394
- const { _value: a, _selected: o, ...i } = l;
3393
+ const { _value: o, _selected: n, ...i } = l;
3395
3394
  return i;
3396
3395
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3397
3396
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3402,8 +3401,8 @@ const zl = {
3402
3401
  e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3403
3402
  },
3404
3403
  cleanLi(e) {
3405
- const { _index: t, _value: l, _label: a, _selected: o, _focused: i, ...n } = e;
3406
- return n;
3404
+ const { _index: t, _value: l, _label: o, _selected: n, _focused: i, ...a } = e;
3405
+ return a;
3407
3406
  },
3408
3407
  refreshListItems() {
3409
3408
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -3418,7 +3417,7 @@ const zl = {
3418
3417
  },
3419
3418
  applySelectionOnItems(e) {
3420
3419
  this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => {
3421
- const l = this.listItems.find((a) => a._value === t);
3420
+ const l = this.listItems.find((o) => o._value === t);
3422
3421
  l && (l._selected = !0);
3423
3422
  });
3424
3423
  }
@@ -3442,7 +3441,7 @@ const zl = {
3442
3441
  }
3443
3442
  }
3444
3443
  }
3445
- }, El = /* @__PURE__ */ v(zl, [["render", Ol]]), ye = {
3444
+ }, zl = /* @__PURE__ */ v(Ol, [["render", Pl]]), ye = {
3446
3445
  props: {
3447
3446
  appendTo: { type: [String, Boolean, Object] },
3448
3447
  fixed: { type: Boolean },
@@ -3507,39 +3506,39 @@ const zl = {
3507
3506
  }, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize);
3508
3507
  },
3509
3508
  getActivatorCoordinates() {
3510
- const { top: e, left: t, width: l, height: a } = this.activatorEl.getBoundingClientRect();
3511
- let o = { top: e, left: t, width: l, height: a };
3509
+ const { top: e, left: t, width: l, height: o } = this.activatorEl.getBoundingClientRect();
3510
+ let n = { top: e, left: t, width: l, height: o };
3512
3511
  if (!this.fixed) {
3513
- const { top: i, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3514
- o = {
3515
- ...o,
3512
+ const { top: i, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3513
+ n = {
3514
+ ...n,
3516
3515
  top: e - i + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
3517
- left: t - n + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
3516
+ left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
3518
3517
  };
3519
3518
  }
3520
- return o;
3519
+ return n;
3521
3520
  },
3522
3521
  computeDetachableCoords() {
3523
- let { top: e, left: t, width: l, height: a } = this.getActivatorCoordinates();
3522
+ let { top: e, left: t, width: l, height: o } = this.getActivatorCoordinates();
3524
3523
  if (!this.detachableEl)
3525
3524
  return;
3526
3525
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
3527
- const o = window.getComputedStyle(this.detachableEl, null);
3526
+ const n = window.getComputedStyle(this.detachableEl, null);
3528
3527
  switch (this.position) {
3529
3528
  case "top": {
3530
- e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(o.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3529
+ e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3531
3530
  break;
3532
3531
  }
3533
3532
  case "bottom": {
3534
- e += a, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(o.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3533
+ e += o, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3535
3534
  break;
3536
3535
  }
3537
3536
  case "left": {
3538
- t -= this.detachableEl.offsetWidth, this.alignBottom ? e += a - this.detachableEl.offsetHeight : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2);
3537
+ t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
3539
3538
  break;
3540
3539
  }
3541
3540
  case "right": {
3542
- t += l, this.alignBottom ? e += a - this.detachableEl.offsetHeight + parseInt(o.getPropertyValue("margin-top")) : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2 + parseInt(o.getPropertyValue("margin-top")));
3541
+ t += l, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top")));
3543
3542
  break;
3544
3543
  }
3545
3544
  }
@@ -3566,11 +3565,11 @@ const zl = {
3566
3565
  const e = typeof this.activator == "string";
3567
3566
  Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
3568
3567
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3569
- const a = (o) => {
3568
+ const o = (n) => {
3570
3569
  var i;
3571
- (e && ((i = o.target) == null ? void 0 : i.matches) && o.target.matches(this.activator) || o.target === this.activatorEl || this.activatorEl.contains(o.target)) && l(o);
3570
+ (e && ((i = n.target) == null ? void 0 : i.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && l(n);
3572
3571
  };
3573
- document.addEventListener(t, a), this.docEventListenersHandlers.push({ eventName: t, handler: a });
3572
+ document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
3574
3573
  });
3575
3574
  }
3576
3575
  },
@@ -3594,16 +3593,16 @@ const zl = {
3594
3593
  }
3595
3594
  }
3596
3595
  };
3597
- function Ml(e, t, l, a, o, i) {
3598
- const n = $("w-card"), r = $("w-overlay");
3596
+ function El(e, t, l, o, n, i) {
3597
+ const a = $("w-card"), r = $("w-overlay");
3599
3598
  return s(), u(_, null, [
3600
3599
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
3601
- V(x, {
3600
+ I(x, {
3602
3601
  name: i.transitionName,
3603
3602
  appear: ""
3604
3603
  }, {
3605
- default: m(() => [
3606
- l.custom && e.detachableVisible ? (s(), u("div", B({
3604
+ default: g(() => [
3605
+ l.custom && e.detachableVisible ? (s(), u("div", C({
3607
3606
  key: 0,
3608
3607
  class: "w-menu",
3609
3608
  ref: "detachable"
@@ -3615,7 +3614,7 @@ function Ml(e, t, l, a, o, i) {
3615
3614
  style: i.styles
3616
3615
  }), [
3617
3616
  p(e.$slots, "default")
3618
- ], 16)) : e.detachableVisible ? (s(), b(n, B({
3617
+ ], 16)) : e.detachableVisible ? (s(), b(a, C({
3619
3618
  key: 1,
3620
3619
  class: "w-menu",
3621
3620
  ref: "detachable"
@@ -3631,21 +3630,21 @@ function Ml(e, t, l, a, o, i) {
3631
3630
  class: i.classes,
3632
3631
  style: i.styles
3633
3632
  }), Z({
3634
- default: m(() => [
3633
+ default: g(() => [
3635
3634
  p(e.$slots, "default")
3636
3635
  ]),
3637
3636
  _: 2
3638
3637
  }, [
3639
3638
  e.$slots.title ? {
3640
3639
  name: "title",
3641
- fn: m(() => [
3640
+ fn: g(() => [
3642
3641
  p(e.$slots, "title")
3643
3642
  ]),
3644
3643
  key: "0"
3645
3644
  } : void 0,
3646
3645
  e.$slots.actions ? {
3647
3646
  name: "actions",
3648
- fn: m(() => [
3647
+ fn: g(() => [
3649
3648
  p(e.$slots, "actions")
3650
3649
  ]),
3651
3650
  key: "1"
@@ -3654,7 +3653,7 @@ function Ml(e, t, l, a, o, i) {
3654
3653
  ]),
3655
3654
  _: 3
3656
3655
  }, 8, ["name"]),
3657
- l.overlay ? (s(), b(r, B({
3656
+ l.overlay ? (s(), b(r, C({
3658
3657
  key: 0,
3659
3658
  ref: "overlay",
3660
3659
  "model-value": e.detachableVisible,
@@ -3666,7 +3665,7 @@ function Ml(e, t, l, a, o, i) {
3666
3665
  }), null, 16, ["model-value", "persistent", "class", "z-index"])) : c("", !0)
3667
3666
  ], 64);
3668
3667
  }
3669
- const Nl = {
3668
+ const Ml = {
3670
3669
  name: "w-menu",
3671
3670
  mixins: [ye],
3672
3671
  inheritAttrs: !1,
@@ -3724,17 +3723,17 @@ const Nl = {
3724
3723
  return this.minWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.minWidth) ? this.minWidth : this.minWidth ? `${this.minWidth}px` : 0;
3725
3724
  },
3726
3725
  menuClasses() {
3727
- return W(this.menuClass);
3726
+ return N(this.menuClass);
3728
3727
  },
3729
3728
  titleClasses() {
3730
- return W(this.titleClass);
3729
+ return N(this.titleClass);
3731
3730
  },
3732
3731
  contentClasses() {
3733
- return W(this.contentClass);
3732
+ return N(this.contentClass);
3734
3733
  },
3735
3734
  overlayClasses() {
3736
3735
  return {
3737
- ...W(this.overlayClass),
3736
+ ...N(this.overlayClass),
3738
3737
  "w-overlay--no-pointer-event": this.showOnHover
3739
3738
  };
3740
3739
  },
@@ -3789,26 +3788,26 @@ const Nl = {
3789
3788
  !this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
3790
3789
  }
3791
3790
  }
3792
- }, Wl = /* @__PURE__ */ v(Nl, [["render", Ml]]);
3793
- function Al(e, t, l, a, o, i) {
3794
- const n = $("w-alert");
3791
+ }, Al = /* @__PURE__ */ v(Ml, [["render", El]]);
3792
+ function Nl(e, t, l, o, n, i) {
3793
+ const a = $("w-alert");
3795
3794
  return s(), b(x, {
3796
3795
  name: i.transitionName,
3797
3796
  appear: ""
3798
3797
  }, {
3799
- default: m(() => [
3800
- o.show ? (s(), u("div", {
3798
+ default: g(() => [
3799
+ n.show ? (s(), u("div", {
3801
3800
  key: 0,
3802
3801
  class: f(["w-notification", i.classes]),
3803
3802
  style: L(i.styles)
3804
3803
  }, [
3805
- V(n, B(i.alertProps, {
3804
+ I(a, C(i.alertProps, {
3806
3805
  class: i.alertClasses,
3807
3806
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
3808
3807
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
3809
3808
  })
3810
3809
  }), {
3811
- default: m(() => [
3810
+ default: g(() => [
3812
3811
  p(e.$slots, "default")
3813
3812
  ]),
3814
3813
  _: 3
@@ -3818,7 +3817,7 @@ function Al(e, t, l, a, o, i) {
3818
3817
  _: 3
3819
3818
  }, 8, ["name"]);
3820
3819
  }
3821
- const Kl = {
3820
+ const Wl = {
3822
3821
  name: "w-notification",
3823
3822
  props: {
3824
3823
  modelValue: { default: !0 },
@@ -3938,15 +3937,15 @@ const Kl = {
3938
3937
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
3939
3938
  }
3940
3939
  }
3941
- }, Dl = /* @__PURE__ */ v(Kl, [["render", Al]]);
3942
- function Fl(e, t, l, a, o, i) {
3943
- const n = fe("focus");
3940
+ }, Kl = /* @__PURE__ */ v(Wl, [["render", Nl]]);
3941
+ function Dl(e, t, l, o, n, i) {
3942
+ const a = fe("focus");
3944
3943
  return s(), b(x, {
3945
3944
  name: "fade",
3946
3945
  appear: "",
3947
3946
  onAfterLeave: i.onClose
3948
3947
  }, {
3949
- default: m(() => [
3948
+ default: g(() => [
3950
3949
  l.modelValue ? D((s(), u("div", {
3951
3950
  key: 0,
3952
3951
  class: f(["w-overlay", i.classes]),
@@ -3958,14 +3957,14 @@ function Fl(e, t, l, a, o, i) {
3958
3957
  }, [
3959
3958
  p(e.$slots, "default")
3960
3959
  ], 38)), [
3961
- [me, e.showOverlay],
3962
- [n]
3960
+ [ge, e.showOverlay],
3961
+ [a]
3963
3962
  ]) : c("", !0)
3964
3963
  ]),
3965
3964
  _: 3
3966
3965
  }, 8, ["onAfterLeave"]);
3967
3966
  }
3968
- const Hl = {
3967
+ const Fl = {
3969
3968
  name: "w-overlay",
3970
3969
  props: {
3971
3970
  modelValue: {},
@@ -4019,17 +4018,17 @@ const Hl = {
4019
4018
  e && (this.showOverlay = !0);
4020
4019
  }
4021
4020
  }
4022
- }, jl = /* @__PURE__ */ v(Hl, [["render", Fl]]), Ul = { class: "w-parallax" };
4023
- function ql(e, t, l, a, o, i) {
4024
- return s(), u("div", Ul);
4021
+ }, Hl = /* @__PURE__ */ v(Fl, [["render", Dl]]), jl = { class: "w-parallax" };
4022
+ function Ul(e, t, l, o, n, i) {
4023
+ return s(), u("div", jl);
4025
4024
  }
4026
- const Gl = {
4025
+ const ql = {
4027
4026
  name: "w-parallax",
4028
4027
  props: {},
4029
4028
  emits: [],
4030
4029
  data: () => ({})
4031
- }, Xl = /* @__PURE__ */ v(Gl, [["render", ql]]), Yl = ["viewBox"], Jl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Ql = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4032
- function Zl(e, t, l, a, o, i) {
4030
+ }, Gl = /* @__PURE__ */ v(ql, [["render", Ul]]), Xl = ["viewBox"], Yl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Jl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4031
+ function Ql(e, t, l, o, n, i) {
4033
4032
  return s(), u("div", {
4034
4033
  class: f(["w-progress", i.classes]),
4035
4034
  style: L(i.styles)
@@ -4047,7 +4046,7 @@ function Zl(e, t, l, a, o, i) {
4047
4046
  fill: "transparent",
4048
4047
  "stroke-dasharray": e.circleCircumference,
4049
4048
  "stroke-width": l.stroke
4050
- }, null, 10, Jl)) : c("", !0),
4049
+ }, null, 10, Yl)) : c("", !0),
4051
4050
  w("circle", {
4052
4051
  class: "w-progress__progress",
4053
4052
  cx: i.circleCenter,
@@ -4058,8 +4057,8 @@ function Zl(e, t, l, a, o, i) {
4058
4057
  "stroke-linecap": l.roundCap && "round",
4059
4058
  "stroke-dasharray": e.circleCircumference,
4060
4059
  style: L(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
4061
- }, null, 12, Ql)
4062
- ], 8, Yl)) : (s(), u("div", {
4060
+ }, null, 12, Jl)
4061
+ ], 8, Xl)) : (s(), u("div", {
4063
4062
  key: 0,
4064
4063
  class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
4065
4064
  style: L(`width: ${i.progressValue}%`)
@@ -4069,12 +4068,12 @@ function Zl(e, t, l, a, o, i) {
4069
4068
  class: f(["w-progress__label", l.labelColor || !1])
4070
4069
  }, [
4071
4070
  p(e.$slots, "default", {}, () => [
4072
- C(k(Math.round(i.progressValue)) + k(l.circle ? "" : "%"), 1)
4071
+ B(k(Math.round(i.progressValue)) + k(l.circle ? "" : "%"), 1)
4073
4072
  ])
4074
4073
  ], 2)) : c("", !0)
4075
4074
  ], 6);
4076
4075
  }
4077
- const Q = 40, ei = Q / 2, ti = Math.round(Q * 3.14 * 100) / 100, li = {
4076
+ const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
4078
4077
  name: "w-progress",
4079
4078
  props: {
4080
4079
  modelValue: { type: [Number, String, Boolean], default: -1 },
@@ -4100,8 +4099,8 @@ const Q = 40, ei = Q / 2, ti = Math.round(Q * 3.14 * 100) / 100, li = {
4100
4099
  emits: [],
4101
4100
  data: () => ({
4102
4101
  circleSize: Q,
4103
- circleRadius: ei,
4104
- circleCircumference: ti
4102
+ circleRadius: Zl,
4103
+ circleCircumference: ei
4105
4104
  }),
4106
4105
  computed: {
4107
4106
  progressValue() {
@@ -4140,17 +4139,17 @@ const Q = 40, ei = Q / 2, ti = Math.round(Q * 3.14 * 100) / 100, li = {
4140
4139
  };
4141
4140
  }
4142
4141
  }
4143
- }, ii = /* @__PURE__ */ v(li, [["render", Zl]]), si = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ai = ["for"], oi = ["for", "innerHTML"], ni = ["for"], ri = ["for", "innerHTML"];
4144
- function di(e, t, l, a, o, i) {
4145
- return s(), b(I(e.formRegister && !i.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4142
+ }, li = /* @__PURE__ */ v(ti, [["render", Ql]]), ii = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], si = ["for"], ai = ["for", "innerHTML"], oi = ["for"], ni = ["for", "innerHTML"];
4143
+ function ri(e, t, l, o, n, i) {
4144
+ return s(), b(V(e.formRegister && !i.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4146
4145
  valid: e.valid,
4147
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
4148
- onReset: t[4] || (t[4] = (n) => {
4146
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4147
+ onReset: t[4] || (t[4] = (a) => {
4149
4148
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4150
4149
  }),
4151
4150
  class: i.classes
4152
4151
  }), {
4153
- default: m(() => [
4152
+ default: g(() => [
4154
4153
  w("input", {
4155
4154
  ref: "input",
4156
4155
  id: `w-radio--${e._.uid}`,
@@ -4160,11 +4159,11 @@ function di(e, t, l, a, o, i) {
4160
4159
  disabled: e.isDisabled || null,
4161
4160
  required: e.required || null,
4162
4161
  tabindex: e.tabindex || null,
4163
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
4164
- onChange: t[1] || (t[1] = (n) => i.onInput(n)),
4162
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4163
+ onChange: t[1] || (t[1] = (a) => i.onInput(a)),
4165
4164
  "aria-checked": e.inputValue || "false",
4166
4165
  role: "radio"
4167
- }, null, 40, si),
4166
+ }, null, 40, ii),
4168
4167
  i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
4169
4168
  e.$slots.default ? (s(), u("label", {
4170
4169
  key: 0,
@@ -4172,18 +4171,18 @@ function di(e, t, l, a, o, i) {
4172
4171
  for: `w-radio--${e._.uid}`
4173
4172
  }, [
4174
4173
  p(e.$slots, "default", {}, () => [
4175
- C(k(l.label), 1)
4174
+ B(k(l.label), 1)
4176
4175
  ])
4177
- ], 10, ai)) : l.label ? (s(), u("label", {
4176
+ ], 10, si)) : l.label ? (s(), u("label", {
4178
4177
  key: 1,
4179
4178
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4180
4179
  for: `w-radio--${e._.uid}`,
4181
4180
  innerHTML: l.label
4182
- }, null, 10, oi)) : c("", !0)
4181
+ }, null, 10, ai)) : c("", !0)
4183
4182
  ], 64)) : c("", !0),
4184
4183
  w("div", {
4185
4184
  class: f(["w-radio__input", this.color]),
4186
- onClick: t[2] || (t[2] = (n) => {
4185
+ onClick: t[2] || (t[2] = (a) => {
4187
4186
  e.$refs.input.focus(), e.$refs.input.click();
4188
4187
  })
4189
4188
  }, null, 2),
@@ -4194,20 +4193,20 @@ function di(e, t, l, a, o, i) {
4194
4193
  for: `w-radio--${e._.uid}`
4195
4194
  }, [
4196
4195
  p(e.$slots, "default", {}, () => [
4197
- C(k(l.label), 1)
4196
+ B(k(l.label), 1)
4198
4197
  ])
4199
- ], 10, ni)) : l.label ? (s(), u("label", {
4198
+ ], 10, oi)) : l.label ? (s(), u("label", {
4200
4199
  key: 1,
4201
4200
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4202
4201
  for: `w-radio--${e._.uid}`,
4203
4202
  innerHTML: l.label
4204
- }, null, 10, ri)) : c("", !0)
4203
+ }, null, 10, ni)) : c("", !0)
4205
4204
  ], 64)) : c("", !0)
4206
4205
  ]),
4207
4206
  _: 3
4208
4207
  }, 16, ["valid", "class"]);
4209
4208
  }
4210
- const ui = {
4209
+ const di = {
4211
4210
  name: "w-radio",
4212
4211
  mixins: [z],
4213
4212
  inject: { wRadios: { default: null } },
@@ -4266,10 +4265,10 @@ const ui = {
4266
4265
  this.toggleFromOutside();
4267
4266
  }
4268
4267
  }
4269
- }, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
4270
- function pi(e, t, l, a, o, i) {
4271
- const n = $("w-radio");
4272
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4268
+ }, ui = /* @__PURE__ */ v(di, [["render", ri]]), hi = ["innerHTML"];
4269
+ function ci(e, t, l, o, n, i) {
4270
+ const a = $("w-radio");
4271
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4273
4272
  valid: e.valid,
4274
4273
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4275
4274
  onReset: t[2] || (t[2] = (r) => {
@@ -4279,8 +4278,8 @@ function pi(e, t, l, a, o, i) {
4279
4278
  wrap: l.inline,
4280
4279
  class: i.classes
4281
4280
  }), {
4282
- default: m(() => [
4283
- (s(!0), u(_, null, T(i.radioItems, (r, d) => (s(), b(n, B({
4281
+ default: g(() => [
4282
+ (s(!0), u(_, null, T(i.radioItems, (r, d) => (s(), b(a, C({
4284
4283
  key: d,
4285
4284
  "model-value": r.value === l.modelValue,
4286
4285
  "onUpdate:modelValue": (h) => i.onInput(r),
@@ -4291,7 +4290,7 @@ function pi(e, t, l, a, o, i) {
4291
4290
  readonly: e.isReadonly || null,
4292
4291
  class: { mt1: !l.inline && d }
4293
4292
  }), {
4294
- default: m(() => [
4293
+ default: g(() => [
4295
4294
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4296
4295
  key: 0,
4297
4296
  item: i.getOriginalItem(r),
@@ -4301,7 +4300,7 @@ function pi(e, t, l, a, o, i) {
4301
4300
  }) : r.label ? (s(), u("div", {
4302
4301
  key: 1,
4303
4302
  innerHTML: r.label
4304
- }, null, 8, ci)) : c("", !0)
4303
+ }, null, 8, hi)) : c("", !0)
4305
4304
  ]),
4306
4305
  _: 2
4307
4306
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -4309,7 +4308,7 @@ function pi(e, t, l, a, o, i) {
4309
4308
  _: 3
4310
4309
  }, 16, ["valid", "column", "wrap", "class"]);
4311
4310
  }
4312
- const fi = {
4311
+ const pi = {
4313
4312
  name: "w-radios",
4314
4313
  mixins: [z],
4315
4314
  props: {
@@ -4355,54 +4354,54 @@ const fi = {
4355
4354
  return this.items[e._index];
4356
4355
  }
4357
4356
  }
4358
- }, mi = /* @__PURE__ */ v(fi, [["render", pi]]), gi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
4359
- function yi(e, t, l, a, o, i) {
4360
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4357
+ }, fi = /* @__PURE__ */ v(pi, [["render", ci]]), gi = ["id", "name", "value"], mi = ["disabled", "onMouseenter", "onClick", "tabindex"];
4358
+ function bi(e, t, l, o, n, i) {
4359
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4361
4360
  valid: e.valid,
4362
- "onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
4363
- onReset: t[5] || (t[5] = (n) => {
4364
- e.$emit("update:modelValue", o.rating = null), e.$emit("input", null);
4361
+ "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4362
+ onReset: t[5] || (t[5] = (a) => {
4363
+ e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
4365
4364
  }),
4366
4365
  class: i.classes
4367
4366
  }), {
4368
- default: m(() => [
4367
+ default: g(() => [
4369
4368
  w("input", {
4370
4369
  id: e.inputName,
4371
4370
  name: e.inputName,
4372
4371
  type: "hidden",
4373
- value: o.rating
4372
+ value: n.rating
4374
4373
  }, null, 8, gi),
4375
- (s(!0), u(_, null, T(l.max, (n) => (s(), u(_, { key: n }, [
4374
+ (s(!0), u(_, null, T(l.max, (a) => (s(), u(_, { key: a }, [
4376
4375
  e.$slots.item ? p(e.$slots, "item", {
4377
4376
  key: 0,
4378
- index: n + 1
4377
+ index: a + 1
4379
4378
  }) : c("", !0),
4380
4379
  w("button", {
4381
- class: f(["w-rating__button", i.buttonClasses(n)]),
4380
+ class: f(["w-rating__button", i.buttonClasses(a)]),
4382
4381
  disabled: e.isDisabled || e.isReadonly,
4383
- onMouseenter: (r) => o.hover = n,
4384
- onMouseleave: t[0] || (t[0] = (r) => o.hover = 0),
4385
- onClick: (r) => i.onButtonClick(n),
4382
+ onMouseenter: (r) => n.hover = a,
4383
+ onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
4384
+ onClick: (r) => i.onButtonClick(a),
4386
4385
  onFocus: t[1] || (t[1] = (...r) => i.onFocus && i.onFocus(...r)),
4387
4386
  onBlur: t[2] || (t[2] = (...r) => i.onBlur && i.onBlur(...r)),
4388
4387
  onKeydown: t[3] || (t[3] = (...r) => i.onKeydown && i.onKeydown(...r)),
4389
4388
  type: "button",
4390
- tabindex: n === 1 ? 0 : -1
4389
+ tabindex: a === 1 ? 0 : -1
4391
4390
  }, [
4392
- n - 1 === ~~o.rating && o.rating - ~~o.rating ? (s(), u("i", {
4391
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4393
4392
  key: 0,
4394
4393
  class: f(["w-icon", `${l.icon} ${l.color}`]),
4395
4394
  role: "icon",
4396
4395
  "aria-hidden": "true",
4397
4396
  style: L(i.halfStarStyle)
4398
4397
  }, null, 6)) : c("", !0)
4399
- ], 42, bi)
4398
+ ], 42, mi)
4400
4399
  ], 64))), 128))
4401
4400
  ]),
4402
4401
  _: 3
4403
4402
  }, 16, ["valid", "class"]);
4404
4403
  }
4405
- const wi = {
4404
+ const yi = {
4406
4405
  name: "w-rating",
4407
4406
  mixins: [z],
4408
4407
  props: {
@@ -4492,29 +4491,29 @@ const wi = {
4492
4491
  this.rating = parseFloat(e);
4493
4492
  }
4494
4493
  }
4495
- }, vi = /* @__PURE__ */ v(wi, [["render", yi]]), ki = { class: "w-scrollbar" };
4496
- function _i(e, t, l, a, o, i) {
4497
- return s(), u("div", ki);
4494
+ }, wi = /* @__PURE__ */ v(yi, [["render", bi]]), vi = { class: "w-scrollbar" };
4495
+ function ki(e, t, l, o, n, i) {
4496
+ return s(), u("div", vi);
4498
4497
  }
4499
- const Ci = {
4498
+ const _i = {
4500
4499
  name: "w-scrollbar",
4501
4500
  props: {},
4502
4501
  emits: [],
4503
4502
  data: () => ({})
4504
- }, Bi = /* @__PURE__ */ v(Ci, [["render", _i]]), Si = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
4503
+ }, Ci = /* @__PURE__ */ v(_i, [["render", ki]]), Bi = ["for"], Si = ["aria-expanded", "aria-owns", "aria-activedescendant"], $i = {
4505
4504
  key: 1,
4506
4505
  class: "w-select__selection-slot"
4507
- }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Li = ["for"], Ti = ["for"];
4508
- function xi(e, t, l, a, o, i) {
4509
- const n = $("w-icon"), r = $("w-list"), d = $("w-menu");
4510
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
4506
+ }, Vi = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ii = ["value", "name"], Ri = ["for"], Li = ["for"];
4507
+ function Ti(e, t, l, o, n, i) {
4508
+ const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
4509
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
4511
4510
  valid: e.valid,
4512
4511
  "onUpdate:valid": t[9] || (t[9] = (h) => e.valid = h),
4513
4512
  onReset: i.onReset,
4514
4513
  wrap: i.hasLabel && l.labelPosition !== "inside",
4515
4514
  class: i.classes
4516
4515
  }), {
4517
- default: m(() => [
4516
+ default: g(() => [
4518
4517
  l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
4519
4518
  e.$slots.default || l.label ? (s(), u("label", {
4520
4519
  key: 0,
@@ -4522,11 +4521,11 @@ function xi(e, t, l, a, o, i) {
4522
4521
  for: `w-select--${e._.uid}`
4523
4522
  }, [
4524
4523
  p(e.$slots, "default", {}, () => [
4525
- C(k(l.label), 1)
4524
+ B(k(l.label), 1)
4526
4525
  ])
4527
- ], 10, Si)) : c("", !0)
4526
+ ], 10, Bi)) : c("", !0)
4528
4527
  ], 64)) : c("", !0),
4529
- V(d, B({
4528
+ I(d, C({
4530
4529
  modelValue: e.showMenu,
4531
4530
  "onUpdate:modelValue": t[8] || (t[8] = (h) => e.showMenu = h),
4532
4531
  "menu-class": `w-select__menu ${l.menuClass || ""}`,
@@ -4536,7 +4535,7 @@ function xi(e, t, l, a, o, i) {
4536
4535
  custom: "",
4537
4536
  "min-width": "activator"
4538
4537
  }, l.menuProps || {}), {
4539
- activator: m(({ on: h }) => [
4538
+ activator: g(({ on: h }) => [
4540
4539
  w("div", {
4541
4540
  class: f(["w-select__selection-wrap", i.inputWrapClasses]),
4542
4541
  onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && (e.showMenu ? i.closeMenu : i.openMenu)()),
@@ -4546,18 +4545,18 @@ function xi(e, t, l, a, o, i) {
4546
4545
  "aria-owns": `w-select-menu--${e._.uid}`,
4547
4546
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
4548
4547
  }, [
4549
- l.innerIconLeft ? (s(), b(n, {
4548
+ l.innerIconLeft ? (s(), b(a, {
4550
4549
  key: 0,
4551
4550
  class: "w-select__icon w-select__icon--inner-left",
4552
4551
  tag: "label",
4553
4552
  onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
4554
4553
  }, {
4555
- default: m(() => [
4556
- C(k(l.innerIconLeft), 1)
4554
+ default: g(() => [
4555
+ B(k(l.innerIconLeft), 1)
4557
4556
  ]),
4558
4557
  _: 1
4559
4558
  })) : c("", !0),
4560
- e.$slots.selection ? (s(), u("div", Vi, [
4559
+ e.$slots.selection ? (s(), u("div", $i, [
4561
4560
  p(e.$slots, "selection", {
4562
4561
  item: l.multiple ? e.inputValue : e.inputValue[0]
4563
4562
  })
@@ -4575,13 +4574,13 @@ function xi(e, t, l, a, o, i) {
4575
4574
  "aria-readonly": "true",
4576
4575
  tabindex: e.tabindex || null,
4577
4576
  innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
4578
- }, null, 42, Ii),
4577
+ }, null, 42, Vi),
4579
4578
  (s(!0), u(_, null, T(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
4580
4579
  key: S,
4581
4580
  type: "hidden",
4582
4581
  value: y.value === void 0 ? "" : y.value.toString(),
4583
4582
  name: e.inputName + (l.multiple ? "[]" : "")
4584
- }, null, 8, Ri))), 128)),
4583
+ }, null, 8, Ii))), 128)),
4585
4584
  l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 2 }, [
4586
4585
  e.$slots.default || l.label ? (s(), u("label", {
4587
4586
  key: 0,
@@ -4589,25 +4588,25 @@ function xi(e, t, l, a, o, i) {
4589
4588
  for: `w-select--${e._.uid}`
4590
4589
  }, [
4591
4590
  p(e.$slots, "default", {}, () => [
4592
- C(k(l.label), 1)
4591
+ B(k(l.label), 1)
4593
4592
  ])
4594
- ], 10, Li)) : c("", !0)
4593
+ ], 10, Ri)) : c("", !0)
4595
4594
  ], 64)) : c("", !0),
4596
- l.innerIconRight ? (s(), b(n, {
4595
+ l.innerIconRight ? (s(), b(a, {
4597
4596
  key: 3,
4598
4597
  class: "w-select__icon w-select__icon--inner-right",
4599
4598
  tag: "label",
4600
4599
  onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
4601
4600
  }, {
4602
- default: m(() => [
4603
- C(k(l.innerIconRight), 1)
4601
+ default: g(() => [
4602
+ B(k(l.innerIconRight), 1)
4604
4603
  ]),
4605
4604
  _: 1
4606
4605
  })) : c("", !0)
4607
- ], 10, $i)
4606
+ ], 10, Si)
4608
4607
  ]),
4609
- default: m(() => [
4610
- V(r, {
4608
+ default: g(() => [
4609
+ I(r, {
4611
4610
  ref: "w-list",
4612
4611
  "model-value": e.inputValue,
4613
4612
  "onUpdate:modelValue": i.onInput,
@@ -4628,21 +4627,21 @@ function xi(e, t, l, a, o, i) {
4628
4627
  }, Z({ _: 2 }, [
4629
4628
  T(l.items.length, (h) => ({
4630
4629
  name: `item.${h}`,
4631
- fn: m(({ item: y, selected: S, index: g }) => [
4632
- e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S, g) ? p(e.$slots, `item.${h}`, {
4630
+ fn: g(({ item: y, selected: S, index: m }) => [
4631
+ e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S, m) ? p(e.$slots, `item.${h}`, {
4633
4632
  key: 0,
4634
4633
  item: y,
4635
4634
  selected: S,
4636
- index: g
4635
+ index: m
4637
4636
  }, () => [
4638
- C(k(y[l.itemLabelKey]), 1)
4637
+ B(k(y[l.itemLabelKey]), 1)
4639
4638
  ]) : p(e.$slots, "item", {
4640
4639
  key: 1,
4641
4640
  item: y,
4642
4641
  selected: S,
4643
- index: g
4642
+ index: m
4644
4643
  }, () => [
4645
- C(k(y[l.itemLabelKey]), 1)
4644
+ B(k(y[l.itemLabelKey]), 1)
4646
4645
  ])
4647
4646
  ])
4648
4647
  }))
@@ -4657,15 +4656,15 @@ function xi(e, t, l, a, o, i) {
4657
4656
  for: `w-select--${e._.uid}`
4658
4657
  }, [
4659
4658
  p(e.$slots, "default", {}, () => [
4660
- C(k(l.label), 1)
4659
+ B(k(l.label), 1)
4661
4660
  ])
4662
- ], 10, Ti)) : c("", !0)
4661
+ ], 10, Li)) : c("", !0)
4663
4662
  ], 64)) : c("", !0)
4664
4663
  ]),
4665
4664
  _: 3
4666
4665
  }, 16, ["valid", "onReset", "wrap", "class"]);
4667
4666
  }
4668
- const Pi = {
4667
+ const xi = {
4669
4668
  name: "w-select",
4670
4669
  mixins: [z],
4671
4670
  props: {
@@ -4724,7 +4723,10 @@ const Pi = {
4724
4723
  },
4725
4724
  selectionString() {
4726
4725
  return this.inputValue && this.inputValue.map(
4727
- (e) => e[this.itemValueKey] !== void 0 ? e[this.itemLabelKey] : e[this.itemLabelKey] !== void 0 ? e[this.itemLabelKey] : e
4726
+ (e) => {
4727
+ var t;
4728
+ return e[this.itemValueKey] !== void 0 ? e[this.itemLabelKey] : (t = e[this.itemLabelKey]) != null ? t : e;
4729
+ }
4728
4730
  ).join(", ");
4729
4731
  },
4730
4732
  classes() {
@@ -4779,8 +4781,8 @@ const Pi = {
4779
4781
  if (t === void 0)
4780
4782
  t = e.keyCode === 38 ? l.length - 1 : 0;
4781
4783
  else {
4782
- const a = e.keyCode === 38 ? -1 : 1;
4783
- t = (t + l.length + a) % l.length;
4784
+ const o = e.keyCode === 38 ? -1 : 1;
4785
+ t = (t + l.length + o) % l.length;
4784
4786
  }
4785
4787
  this.onInput(l[t]);
4786
4788
  }
@@ -4802,8 +4804,8 @@ const Pi = {
4802
4804
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
4803
4805
  const t = this.selectItems.map((l) => l.value);
4804
4806
  return e.map((l) => {
4805
- let a = l;
4806
- return typeof l == "object" && (a = l[this.itemValueKey] !== void 0 ? l[this.itemValueKey] : l[this.itemLabelKey] !== void 0 ? l[this.itemLabelKey] : l), this.selectItems[t.indexOf(a)];
4807
+ let o = l;
4808
+ return typeof l == "object" && (o = l[this.itemValueKey] !== void 0 ? l[this.itemValueKey] : l[this.itemLabelKey] !== void 0 ? l[this.itemLabelKey] : l), this.selectItems[t.indexOf(o)];
4807
4809
  }).filter((l) => l !== void 0);
4808
4810
  },
4809
4811
  openMenu() {
@@ -4828,39 +4830,39 @@ const Pi = {
4828
4830
  this.inputValue = this.checkSelection(this.modelValue);
4829
4831
  }
4830
4832
  }
4831
- }, Oi = /* @__PURE__ */ v(Pi, [["render", xi]]), zi = ["for"], Ei = ["for", "innerHTML"], Mi = { class: "w-slider__track-wrap" }, Ni = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Wi = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ai = ["for"], Ki = { key: 0 }, Di = {
4833
+ }, Pi = /* @__PURE__ */ v(xi, [["render", Ti]]), Oi = ["for"], zi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Mi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ai = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ni = ["for"], Wi = { key: 0 }, Ki = {
4832
4834
  key: 0,
4833
4835
  class: "w-slider__step-labels"
4834
- }, Fi = ["onClick"], Hi = ["for"], ji = ["for", "innerHTML"];
4835
- function Ui(e, t, l, a, o, i) {
4836
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
4836
+ }, Di = ["onClick"], Fi = ["for"], Hi = ["for", "innerHTML"];
4837
+ function ji(e, t, l, o, n, i) {
4838
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
4837
4839
  valid: e.valid,
4838
- "onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
4839
- onReset: t[9] || (t[9] = (n) => {
4840
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
4841
+ onReset: t[9] || (t[9] = (a) => {
4840
4842
  e.rangeValuePercent = 0, i.updateRangeValueScaled();
4841
4843
  }),
4842
4844
  wrap: e.formRegister || null,
4843
4845
  class: i.wrapperClasses
4844
4846
  }), {
4845
- default: m(() => [
4847
+ default: g(() => [
4846
4848
  e.$slots["label-left"] ? (s(), u("label", {
4847
4849
  key: 0,
4848
4850
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
4849
4851
  for: `button--${e._.uid}`
4850
4852
  }, [
4851
4853
  p(e.$slots, "label-left")
4852
- ], 10, zi)) : l.labelLeft ? (s(), u("label", {
4854
+ ], 10, Oi)) : l.labelLeft ? (s(), u("label", {
4853
4855
  key: 1,
4854
4856
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
4855
4857
  for: `button--${e._.uid}`,
4856
4858
  innerHTML: l.labelLeft
4857
- }, null, 10, Ei)) : c("", !0),
4858
- w("div", Mi, [
4859
+ }, null, 10, zi)) : c("", !0),
4860
+ w("div", Ei, [
4859
4861
  w("div", {
4860
4862
  class: f(["w-slider__track", i.trackClasses]),
4861
4863
  ref: "track",
4862
- onMousedown: t[4] || (t[4] = (...n) => i.onTrackMouseDown && i.onTrackMouseDown(...n)),
4863
- onTouchstart: t[5] || (t[5] = (...n) => i.onTrackMouseDown && i.onTrackMouseDown(...n)),
4864
+ onMousedown: t[4] || (t[4] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
4865
+ onTouchstart: t[5] || (t[5] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
4864
4866
  role: "slider",
4865
4867
  "aria-label": "Slider",
4866
4868
  "aria-valuemin": i.minVal,
@@ -4888,46 +4890,46 @@ function Ui(e, t, l, a, o, i) {
4888
4890
  "aria-readonly": e.isReadonly ? "true" : "false",
4889
4891
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
4890
4892
  onKeydown: [
4891
- t[0] || (t[0] = M((n) => i.onKeyDown(n, -1), ["left"])),
4892
- t[1] || (t[1] = M((n) => i.onKeyDown(n, 1), ["right"]))
4893
+ t[0] || (t[0] = M((a) => i.onKeyDown(a, -1), ["left"])),
4894
+ t[1] || (t[1] = M((a) => i.onKeyDown(a, 1), ["right"]))
4893
4895
  ],
4894
- onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
4896
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
4895
4897
  onClick: t[3] || (t[3] = E(() => {
4896
4898
  }, ["prevent"]))
4897
- }, null, 42, Wi),
4899
+ }, null, 42, Ai),
4898
4900
  l.thumbLabel ? (s(), u("label", {
4899
4901
  key: 0,
4900
4902
  class: f(["w-slider__thumb-label", i.thumbClasses]),
4901
4903
  for: `button--${e._.uid}`
4902
4904
  }, [
4903
- l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
4905
+ l.thumbLabel === "droplet" ? (s(), u("div", Wi, [
4904
4906
  p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
4905
- C(k(~~e.rangeValueScaled), 1)
4907
+ B(k(~~e.rangeValueScaled), 1)
4906
4908
  ])
4907
4909
  ])) : p(e.$slots, "label", {
4908
4910
  key: 1,
4909
4911
  value: e.rangeValueScaled
4910
4912
  }, () => [
4911
- C(k(~~e.rangeValueScaled), 1)
4913
+ B(k(~~e.rangeValueScaled), 1)
4912
4914
  ])
4913
- ], 10, Ai)) : c("", !0)
4915
+ ], 10, Ni)) : c("", !0)
4914
4916
  ], 4)
4915
- ], 42, Ni),
4916
- l.stepLabels && l.step ? (s(), u("div", Di, [
4917
+ ], 42, Mi),
4918
+ l.stepLabels && l.step ? (s(), u("div", Ki, [
4917
4919
  w("div", {
4918
4920
  class: "w-slider__step-label",
4919
- onClick: t[6] || (t[6] = (n) => i.onStepLabelClick(0))
4921
+ onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
4920
4922
  }, k(this.minVal), 1),
4921
- (s(!0), u(_, null, T(~~i.numberOfSteps, (n) => (s(), u("div", {
4923
+ (s(!0), u(_, null, T(~~i.numberOfSteps, (a) => (s(), u("div", {
4922
4924
  class: "w-slider__step-label",
4923
- key: n,
4924
- onClick: (r) => i.onStepLabelClick(n * (100 / i.numberOfSteps)),
4925
- style: L(`left: ${n * (100 / i.numberOfSteps)}%`)
4926
- }, k(i.percentToScaled(n * (100 / i.numberOfSteps))), 13, Fi))), 128)),
4925
+ key: a,
4926
+ onClick: (r) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
4927
+ style: L(`left: ${a * (100 / i.numberOfSteps)}%`)
4928
+ }, k(i.percentToScaled(a * (100 / i.numberOfSteps))), 13, Di))), 128)),
4927
4929
  ~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
4928
4930
  key: 0,
4929
4931
  class: "w-slider__step-label",
4930
- onClick: t[7] || (t[7] = (n) => i.onStepLabelClick(100)),
4932
+ onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
4931
4933
  style: { left: "100%" }
4932
4934
  }, k(this.maxVal), 1)) : c("", !0)
4933
4935
  ])) : c("", !0)
@@ -4938,17 +4940,17 @@ function Ui(e, t, l, a, o, i) {
4938
4940
  for: `button--${e._.uid}`
4939
4941
  }, [
4940
4942
  p(e.$slots, "label-right")
4941
- ], 10, Hi)) : l.labelRight ? (s(), u("label", {
4943
+ ], 10, Fi)) : l.labelRight ? (s(), u("label", {
4942
4944
  key: 3,
4943
4945
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
4944
4946
  for: `button--${e._.uid}`,
4945
4947
  innerHTML: l.labelRight
4946
- }, null, 10, ji)) : c("", !0)
4948
+ }, null, 10, Hi)) : c("", !0)
4947
4949
  ]),
4948
4950
  _: 3
4949
4951
  }, 16, ["valid", "wrap", "class"]);
4950
4952
  }
4951
- const qi = {
4953
+ const Ui = {
4952
4954
  name: "w-slider",
4953
4955
  mixins: [z],
4954
4956
  props: {
@@ -5082,17 +5084,17 @@ const qi = {
5082
5084
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
5083
5085
  }
5084
5086
  }
5085
- }, Gi = /* @__PURE__ */ v(qi, [["render", Ui]]), Xi = { key: 0 };
5086
- function Yi(e, t, l, a, o, i) {
5087
+ }, qi = /* @__PURE__ */ v(Ui, [["render", ji]]), Gi = { key: 0 };
5088
+ function Xi(e, t, l, o, n, i) {
5087
5089
  return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
5088
5090
  key: 0,
5089
5091
  class: f(["w-spinner", i.classes]),
5090
5092
  style: L(i.styles)
5091
5093
  }, [
5092
- i.isThreeDots ? (s(), u("span", Xi)) : c("", !0)
5094
+ i.isThreeDots ? (s(), u("span", Gi)) : c("", !0)
5093
5095
  ], 6)) : c("", !0);
5094
5096
  }
5095
- const Ji = {
5097
+ const Yi = {
5096
5098
  name: "w-spinner",
5097
5099
  props: {
5098
5100
  modelValue: {},
@@ -5130,13 +5132,13 @@ const Ji = {
5130
5132
  };
5131
5133
  }
5132
5134
  }
5133
- }, Qi = /* @__PURE__ */ v(Ji, [["render", Yi]]);
5134
- function Zi(e, t, l, a, o, i) {
5135
+ }, Ji = /* @__PURE__ */ v(Yi, [["render", Xi]]);
5136
+ function Qi(e, t, l, o, n, i) {
5135
5137
  return s(), u("div", {
5136
5138
  class: f(["w-steps", i.classes])
5137
5139
  }, null, 2);
5138
5140
  }
5139
- const es = {
5141
+ const Zi = {
5140
5142
  name: "w-steps",
5141
5143
  props: {
5142
5144
  dark: { type: Boolean },
@@ -5152,30 +5154,30 @@ const es = {
5152
5154
  };
5153
5155
  }
5154
5156
  }
5155
- }, ts = /* @__PURE__ */ v(es, [["render", Zi]]), ls = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], is = ["for"], ss = {
5157
+ }, es = /* @__PURE__ */ v(Zi, [["render", Qi]]), ts = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], ls = ["for"], is = {
5156
5158
  key: 0,
5157
5159
  class: "w-switch__track"
5158
- }, as = {
5160
+ }, ss = {
5159
5161
  key: 1,
5160
5162
  class: "w-switch__thumb"
5161
- }, os = ["for"];
5162
- function ns(e, t, l, a, o, i) {
5163
- const n = $("w-progress");
5164
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5163
+ }, as = ["for"];
5164
+ function os(e, t, l, o, n, i) {
5165
+ const a = $("w-progress");
5166
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5165
5167
  valid: e.valid,
5166
5168
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5167
5169
  onReset: t[4] || (t[4] = (r) => {
5168
- e.$emit("update:modelValue", o.isOn = null), e.$emit("input", null);
5170
+ e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
5169
5171
  }),
5170
5172
  class: i.classes
5171
5173
  }), {
5172
- default: m(() => [
5174
+ default: g(() => [
5173
5175
  w("input", {
5174
5176
  ref: "input",
5175
5177
  id: `w-switch--${e._.uid}`,
5176
5178
  type: "checkbox",
5177
5179
  name: e.inputName,
5178
- checked: o.isOn,
5180
+ checked: n.isOn,
5179
5181
  disabled: e.isDisabled || e.isReadonly || null,
5180
5182
  readonly: e.isReadonly || null,
5181
5183
  "aria-readonly": e.isReadonly ? "true" : "false",
@@ -5183,9 +5185,9 @@ function ns(e, t, l, a, o, i) {
5183
5185
  tabindex: e.tabindex || null,
5184
5186
  onChange: t[0] || (t[0] = (r) => i.onInput()),
5185
5187
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5186
- "aria-checked": o.isOn || "false",
5188
+ "aria-checked": n.isOn || "false",
5187
5189
  role: "switch"
5188
- }, null, 40, ls),
5190
+ }, null, 40, ts),
5189
5191
  i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
5190
5192
  e.$slots.default || l.label ? (s(), u("label", {
5191
5193
  key: 0,
@@ -5193,21 +5195,21 @@ function ns(e, t, l, a, o, i) {
5193
5195
  for: `w-switch--${e._.uid}`
5194
5196
  }, [
5195
5197
  p(e.$slots, "default", {}, () => [
5196
- C(k(l.label), 1)
5198
+ B(k(l.label), 1)
5197
5199
  ])
5198
- ], 10, is)) : c("", !0)
5200
+ ], 10, ls)) : c("", !0)
5199
5201
  ], 64)) : c("", !0),
5200
- w("div", B({
5202
+ w("div", C({
5201
5203
  class: "w-switch__input",
5202
5204
  onClick: t[2] || (t[2] = (r) => {
5203
5205
  e.$refs.input.focus(), e.$refs.input.click();
5204
5206
  })
5205
- }, N(e.$attrs, !0), { class: i.inputClasses }), [
5206
- e.$slots.track ? (s(), u("div", ss, [
5207
+ }, A(e.$attrs, !0), { class: i.inputClasses }), [
5208
+ e.$slots.track ? (s(), u("div", is, [
5207
5209
  p(e.$slots, "track")
5208
5210
  ])) : c("", !0),
5209
- e.$slots.thumb || l.loading ? (s(), u("div", as, [
5210
- l.loading ? (s(), b(n, B({
5211
+ e.$slots.thumb || l.loading ? (s(), u("div", ss, [
5212
+ l.loading ? (s(), b(a, C({
5211
5213
  key: 0,
5212
5214
  circle: "",
5213
5215
  color: "inherit"
@@ -5221,15 +5223,15 @@ function ns(e, t, l, a, o, i) {
5221
5223
  for: `w-switch--${e._.uid}`
5222
5224
  }, [
5223
5225
  p(e.$slots, "default", {}, () => [
5224
- C(k(l.label), 1)
5226
+ B(k(l.label), 1)
5225
5227
  ])
5226
- ], 10, os)) : c("", !0)
5228
+ ], 10, as)) : c("", !0)
5227
5229
  ], 64)) : c("", !0)
5228
5230
  ]),
5229
5231
  _: 3
5230
5232
  }, 16, ["valid", "class"]);
5231
5233
  }
5232
- const rs = {
5234
+ const ns = {
5233
5235
  name: "w-switch",
5234
5236
  mixins: [z],
5235
5237
  props: {
@@ -5294,23 +5296,23 @@ const rs = {
5294
5296
  this.isOn = e;
5295
5297
  }
5296
5298
  }
5297
- }, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
5298
- function hs(e, t, l, a, o, i) {
5299
- return s(), u("div", us, [
5299
+ }, rs = /* @__PURE__ */ v(ns, [["render", os]]), ds = { class: "w-tabs__content" };
5300
+ function us(e, t, l, o, n, i) {
5301
+ return s(), u("div", ds, [
5300
5302
  p(e.$slots, "default", { item: l.item })
5301
5303
  ]);
5302
5304
  }
5303
- const cs = {
5305
+ const hs = {
5304
5306
  props: { item: Object }
5305
- }, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], ms = ["innerHTML"], gs = {
5307
+ }, cs = /* @__PURE__ */ v(hs, [["render", us]]), ps = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], fs = ["innerHTML"], gs = {
5306
5308
  key: 0,
5307
5309
  class: "w-tabs__bar-extra"
5308
- }, bs = {
5310
+ }, ms = {
5309
5311
  key: 0,
5310
5312
  class: "w-tabs__content-wrap"
5311
- }, ys = ["innerHTML"];
5312
- function ws(e, t, l, a, o, i) {
5313
- const n = $("tab-content");
5313
+ }, bs = ["innerHTML"];
5314
+ function ys(e, t, l, o, n, i) {
5315
+ const a = $("tab-content");
5314
5316
  return s(), u("div", {
5315
5317
  class: f(["w-tabs", i.tabsClasses])
5316
5318
  }, [
@@ -5341,9 +5343,9 @@ function ws(e, t, l, a, o, i) {
5341
5343
  }, () => [
5342
5344
  w("div", {
5343
5345
  innerHTML: r[l.itemTitleKey]
5344
- }, null, 8, ms)
5346
+ }, null, 8, fs)
5345
5347
  ])
5346
- ], 42, fs))), 128)),
5348
+ ], 42, ps))), 128)),
5347
5349
  e.$slots["tabs-bar-extra"] ? (s(), u("div", gs, [
5348
5350
  p(e.$slots, "tabs-bar-extra")
5349
5351
  ])) : c("", !0),
@@ -5353,19 +5355,19 @@ function ws(e, t, l, a, o, i) {
5353
5355
  style: L(i.sliderStyles)
5354
5356
  }, null, 6)) : c("", !0)
5355
5357
  ], 2),
5356
- i.tabsItems.length ? (s(), u("div", bs, [
5357
- V(x, {
5358
+ i.tabsItems.length ? (s(), u("div", ms, [
5359
+ I(x, {
5358
5360
  name: i.transitionName,
5359
5361
  mode: i.transitionMode
5360
5362
  }, {
5361
- default: m(() => [
5363
+ default: g(() => [
5362
5364
  (s(), b($e, null, [
5363
- (s(), b(n, {
5365
+ (s(), b(a, {
5364
5366
  key: i.activeTab._index,
5365
5367
  item: i.activeTab,
5366
5368
  class: f(l.contentClass)
5367
5369
  }, {
5368
- default: m(({ item: r }) => [
5370
+ default: g(({ item: r }) => [
5369
5371
  e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5370
5372
  key: 0,
5371
5373
  item: i.getOriginalItem(r),
@@ -5380,7 +5382,7 @@ function ws(e, t, l, a, o, i) {
5380
5382
  r[l.itemContentKey] ? (s(), u("div", {
5381
5383
  key: 0,
5382
5384
  innerHTML: r[l.itemContentKey]
5383
- }, null, 8, ys)) : c("", !0)
5385
+ }, null, 8, bs)) : c("", !0)
5384
5386
  ])
5385
5387
  ]),
5386
5388
  _: 3
@@ -5392,7 +5394,7 @@ function ws(e, t, l, a, o, i) {
5392
5394
  ])) : c("", !0)
5393
5395
  ], 2);
5394
5396
  }
5395
- const vs = {
5397
+ const ws = {
5396
5398
  name: "w-tabs",
5397
5399
  props: {
5398
5400
  modelValue: { type: [Number, String] },
@@ -5415,7 +5417,7 @@ const vs = {
5415
5417
  dark: { type: Boolean },
5416
5418
  light: { type: Boolean }
5417
5419
  },
5418
- components: { TabContent: ps },
5420
+ components: { TabContent: cs },
5419
5421
  emits: ["input", "update:modelValue", "focus"],
5420
5422
  data: () => ({
5421
5423
  activeTabEl: null,
@@ -5494,8 +5496,8 @@ const vs = {
5494
5496
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
5495
5497
  }
5496
5498
  if (!this.fillBar && this.activeTabEl) {
5497
- const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left: o } = a.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(a);
5498
- this.slider.left = `${t - o - parseInt(i) + a.scrollLeft}px`, this.slider.width = `${l}px`;
5499
+ const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(o);
5500
+ this.slider.left = `${t - n - parseInt(i) + o.scrollLeft}px`, this.slider.width = `${l}px`;
5499
5501
  } else
5500
5502
  this.slider.left = `${this.activeTab._index * 100 / this.tabsItems.length}%`, this.slider.width = `${100 / this.tabsItems.length}%`;
5501
5503
  },
@@ -5533,84 +5535,84 @@ const vs = {
5533
5535
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
5534
5536
  }
5535
5537
  }
5536
- }, ks = /* @__PURE__ */ v(vs, [["render", ws]]), _s = { ref: "colgroup" }, Cs = ["width"], Bs = { key: 0 }, Ss = ["onClick"], $s = ["innerHTML"], Vs = {
5538
+ }, vs = /* @__PURE__ */ v(ws, [["render", ys]]), ks = { ref: "colgroup" }, _s = ["width"], Cs = { key: 0 }, Bs = ["onClick"], Ss = ["innerHTML"], $s = {
5537
5539
  key: 0,
5538
5540
  class: "w-table__progress-bar"
5539
- }, Is = ["colspan"], Rs = {
5541
+ }, Vs = ["colspan"], Is = {
5540
5542
  key: 0,
5541
5543
  class: "w-table__progress-bar"
5542
- }, Ls = ["colspan"], Ts = { class: "w-table__loading-text" }, xs = {
5544
+ }, Rs = ["colspan"], Ls = { class: "w-table__loading-text" }, Ts = {
5543
5545
  key: 1,
5544
5546
  class: "no-data"
5545
- }, Ps = ["colspan"], Os = ["onClick"], zs = ["data-label"], Es = ["data-label"], Ms = ["innerHTML"], Ns = {
5547
+ }, xs = ["colspan"], Ps = ["onClick"], Os = ["data-label"], zs = ["data-label"], Es = ["innerHTML"], Ms = {
5546
5548
  key: 2,
5547
5549
  class: "w-table__row w-table__row--expansion"
5548
- }, Ws = ["colspan"], As = { key: 0 }, Ks = {
5550
+ }, As = ["colspan"], Ns = { key: 0 }, Ws = {
5549
5551
  key: 3,
5550
5552
  class: "w-table__extra-row"
5551
- }, Ds = {
5553
+ }, Ks = {
5552
5554
  key: 1,
5553
5555
  class: "w-table__footer"
5554
- }, Fs = {
5556
+ }, Ds = {
5555
5557
  key: 1,
5556
5558
  class: "w-table__row"
5557
- }, Hs = ["colspan"], js = {
5559
+ }, Fs = ["colspan"], Hs = {
5558
5560
  key: 2,
5559
5561
  class: "w-table__row w-table__pagination-wrap"
5560
- }, Us = ["colspan"], qs = { class: "w-table__pagination" }, Gs = { class: "pagination-arrows" }, Xs = { class: "pagination-number pagination-number--results" };
5561
- function Ys(e, t, l, a, o, i) {
5562
- const n = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), S = $("w-button");
5562
+ }, js = ["colspan"], Us = { class: "w-table__pagination w-pagination" }, qs = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
5563
+ function Xs(e, t, l, o, n, i) {
5564
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), S = $("w-button");
5563
5565
  return s(), u("div", {
5564
5566
  class: f(["w-table-wrap", i.wrapClasses])
5565
5567
  }, [
5566
5568
  w("table", {
5567
5569
  class: f(["w-table", i.classes]),
5568
- onMousedown: t[4] || (t[4] = (...g) => i.onMouseDown && i.onMouseDown(...g)),
5569
- onMouseover: t[5] || (t[5] = (...g) => i.onMouseOver && i.onMouseOver(...g)),
5570
- onMouseout: t[6] || (t[6] = (...g) => i.onMouseOut && i.onMouseOut(...g))
5570
+ onMousedown: t[5] || (t[5] = (...m) => i.onMouseDown && i.onMouseDown(...m)),
5571
+ onMouseover: t[6] || (t[6] = (...m) => i.onMouseOver && i.onMouseOver(...m)),
5572
+ onMouseout: t[7] || (t[7] = (...m) => i.onMouseOut && i.onMouseOut(...m))
5571
5573
  }, [
5572
- w("colgroup", _s, [
5573
- (s(!0), u(_, null, T(l.headers, (g, R) => (s(), u("col", {
5574
- class: "w-table__col",
5574
+ w("colgroup", ks, [
5575
+ (s(!0), u(_, null, T(l.headers, (m, R) => (s(), u("col", {
5576
+ class: f(["w-table__col", i.colClasses[R]]),
5575
5577
  key: R,
5576
- width: g.width || null
5577
- }, null, 8, Cs))), 128))
5578
+ width: m.width || null
5579
+ }, null, 10, _s))), 128))
5578
5580
  ], 512),
5579
- l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
5581
+ l.noHeaders ? c("", !0) : (s(), u("thead", Cs, [
5580
5582
  w("tr", null, [
5581
- (s(!0), u(_, null, T(l.headers, (g, R) => (s(), u("th", {
5582
- class: f(["w-table__header", i.headerClasses(g)]),
5583
+ (s(!0), u(_, null, T(l.headers, (m, R) => (s(), u("th", {
5584
+ class: f(["w-table__header", i.headerClasses(m)]),
5583
5585
  key: R,
5584
- onClick: (P) => !e.colResizing.dragging && g.sortable !== !1 && i.sortTable(g)
5586
+ onClick: (P) => !e.colResizing.dragging && m.sortable !== !1 && i.sortTable(m)
5585
5587
  }, [
5586
- g.sortable !== !1 && g.align === "right" ? (s(), b(n, {
5588
+ m.sortable !== !1 && m.align === "right" ? (s(), b(a, {
5587
5589
  key: 0,
5588
- class: f(["w-table__header-sort", i.headerSortClasses(g)])
5590
+ class: f(["w-table__header-sort", i.headerSortClasses(m)])
5589
5591
  }, {
5590
- default: m(() => [
5591
- C("wi-arrow-down")
5592
+ default: g(() => [
5593
+ B("wi-arrow-down")
5592
5594
  ]),
5593
5595
  _: 2
5594
5596
  }, 1032, ["class"])) : c("", !0),
5595
- g.label ? (s(), u(_, { key: 1 }, [
5597
+ m.label ? (s(), u(_, { key: 1 }, [
5596
5598
  e.$slots["header-label"] ? p(e.$slots, "header-label", {
5597
5599
  key: 0,
5598
- header: g,
5599
- label: g.label,
5600
+ header: m,
5601
+ label: m.label,
5600
5602
  index: R + 1
5601
5603
  }, () => [
5602
- C(k(g.label || ""), 1)
5604
+ B(k(m.label || ""), 1)
5603
5605
  ]) : (s(), u("span", {
5604
5606
  key: 1,
5605
- innerHTML: g.label || ""
5606
- }, null, 8, $s))
5607
+ innerHTML: m.label || ""
5608
+ }, null, 8, Ss))
5607
5609
  ], 64)) : c("", !0),
5608
- g.sortable !== !1 && g.align !== "right" ? (s(), b(n, {
5610
+ m.sortable !== !1 && m.align !== "right" ? (s(), b(a, {
5609
5611
  key: 2,
5610
- class: f(["w-table__header-sort", i.headerSortClasses(g)])
5612
+ class: f(["w-table__header-sort", i.headerSortClasses(m)])
5611
5613
  }, {
5612
- default: m(() => [
5613
- C("wi-arrow-down")
5614
+ default: g(() => [
5615
+ B("wi-arrow-down")
5614
5616
  ]),
5615
5617
  _: 2
5616
5618
  }, 1032, ["class"])) : c("", !0),
@@ -5620,54 +5622,54 @@ function Ys(e, t, l, a, o, i) {
5620
5622
  onClick: t[0] || (t[0] = E(() => {
5621
5623
  }, ["stop"]))
5622
5624
  }, null, 2)) : c("", !0)
5623
- ], 10, Ss))), 128))
5625
+ ], 10, Bs))), 128))
5624
5626
  ]),
5625
- V(d, null, {
5626
- default: m(() => [
5627
- l.loading === "header" ? (s(), u("tr", Vs, [
5627
+ I(d, null, {
5628
+ default: g(() => [
5629
+ l.loading === "header" ? (s(), u("tr", $s, [
5628
5630
  w("td", {
5629
5631
  colspan: l.headers.length
5630
5632
  }, [
5631
- V(r, { tile: "" })
5632
- ], 8, Is)
5633
+ I(r, { tile: "" })
5634
+ ], 8, Vs)
5633
5635
  ])) : c("", !0)
5634
5636
  ]),
5635
5637
  _: 1
5636
5638
  })
5637
5639
  ])),
5638
5640
  w("tbody", null, [
5639
- l.loading === !0 ? (s(), u("tr", Rs, [
5641
+ l.loading === !0 ? (s(), u("tr", Is, [
5640
5642
  w("td", {
5641
5643
  colspan: l.headers.length
5642
5644
  }, [
5643
- V(r, { tile: "" }),
5644
- w("div", Ts, [
5645
+ I(r, { tile: "" }),
5646
+ w("div", Ls, [
5645
5647
  p(e.$slots, "loading", {}, () => [
5646
- C("Loading...")
5648
+ B("Loading...")
5647
5649
  ])
5648
5650
  ])
5649
- ], 8, Ls)
5650
- ])) : i.tableItems.length ? c("", !0) : (s(), u("tr", xs, [
5651
+ ], 8, Rs)
5652
+ ])) : i.tableItems.length ? c("", !0) : (s(), u("tr", Ts, [
5651
5653
  w("td", {
5652
5654
  class: "w-table__cell text-center",
5653
5655
  colspan: l.headers.length
5654
5656
  }, [
5655
5657
  p(e.$slots, "no-data", {}, () => [
5656
- C("No data to show.")
5658
+ B("No data to show.")
5657
5659
  ])
5658
- ], 8, Ps)
5660
+ ], 8, xs)
5659
5661
  ])),
5660
- i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, T(i.paginatedItems, (g, R) => (s(), u(_, { key: R }, [
5662
+ i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, T(i.paginatedItems, (m, R) => (s(), u(_, { key: R }, [
5661
5663
  e.$slots.item ? p(e.$slots, "item", {
5662
5664
  key: 0,
5663
- item: g,
5665
+ item: m,
5664
5666
  index: R + 1,
5665
- select: () => i.doSelectRow(g, R),
5666
- classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[g._uid] !== void 0 }
5667
+ select: () => i.doSelectRow(m, R),
5668
+ classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[m._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[m._uid] !== void 0 }
5667
5669
  }) : (s(), u("tr", {
5668
5670
  key: 1,
5669
- class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[g._uid] !== void 0 }]),
5670
- onClick: (P) => i.doSelectRow(g, R)
5671
+ class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[m._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[m._uid] !== void 0 }]),
5672
+ onClick: (P) => i.doSelectRow(m, R)
5671
5673
  }, [
5672
5674
  (s(!0), u(_, null, T(l.headers, (P, O) => (s(), u(_, null, [
5673
5675
  e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
@@ -5678,51 +5680,51 @@ function Ys(e, t, l, a, o, i) {
5678
5680
  e.$slots[`item-cell.${P.key}`] ? p(e.$slots, `item-cell.${P.key}`, {
5679
5681
  key: 0,
5680
5682
  header: P,
5681
- item: g,
5682
- label: g[P.key] || "",
5683
+ item: m,
5684
+ label: m[P.key] || "",
5683
5685
  index: R + 1
5684
5686
  }) : e.$slots[`item-cell.${O + 1}`] ? p(e.$slots, `item-cell.${O + 1}`, {
5685
5687
  key: 1,
5686
5688
  header: P,
5687
- item: g,
5688
- label: g[P.key] || "",
5689
+ item: m,
5690
+ label: m[P.key] || "",
5689
5691
  index: R + 1
5690
5692
  }) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
5691
5693
  key: 2,
5692
5694
  header: P,
5693
- item: g,
5694
- label: g[P.key] || "",
5695
+ item: m,
5696
+ label: m[P.key] || "",
5695
5697
  index: R + 1
5696
5698
  }) : c("", !0),
5697
5699
  O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5698
5700
  key: 3,
5699
5701
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
5700
5702
  }, null, 2)) : c("", !0)
5701
- ], 10, zs)) : (s(), u("td", {
5703
+ ], 10, Os)) : (s(), u("td", {
5702
5704
  class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
5703
5705
  key: `${O}-b`,
5704
5706
  "data-label": P.label
5705
5707
  }, [
5706
5708
  w("div", {
5707
- innerHTML: g[P.key] || ""
5708
- }, null, 8, Ms),
5709
+ innerHTML: m[P.key] || ""
5710
+ }, null, 8, Es),
5709
5711
  O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5710
5712
  key: 0,
5711
5713
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
5712
5714
  }, null, 2)) : c("", !0)
5713
- ], 10, Es))
5715
+ ], 10, zs))
5714
5716
  ], 64))), 256))
5715
- ], 10, Os)),
5716
- i.expandedRowsByUid[g._uid] ? (s(), u("tr", Ns, [
5717
+ ], 10, Ps)),
5718
+ i.expandedRowsByUid[m._uid] ? (s(), u("tr", Ms, [
5717
5719
  w("td", {
5718
5720
  class: "w-table__cell",
5719
5721
  colspan: l.headers.length
5720
5722
  }, [
5721
- V(h, { y: "" }, {
5722
- default: m(() => [
5723
- i.expandedRowsByUid[g._uid] ? (s(), u("div", As, [
5723
+ I(h, { y: "" }, {
5724
+ default: g(() => [
5725
+ i.expandedRowsByUid[m._uid] ? (s(), u("div", Ns, [
5724
5726
  p(e.$slots, "row-expansion", {
5725
- item: g,
5727
+ item: m,
5726
5728
  index: R + 1
5727
5729
  })
5728
5730
  ])) : c("", !0),
@@ -5733,85 +5735,83 @@ function Ys(e, t, l, a, o, i) {
5733
5735
  ]),
5734
5736
  _: 2
5735
5737
  }, 1024)
5736
- ], 8, Ws)
5738
+ ], 8, As)
5737
5739
  ])) : c("", !0)
5738
5740
  ], 64))), 128)) : c("", !0),
5739
- e.$slots["extra-row"] ? (s(), u("div", Ks, [
5741
+ e.$slots["extra-row"] ? (s(), u("div", Ws, [
5740
5742
  p(e.$slots, "extra-row")
5741
5743
  ])) : c("", !0)
5742
5744
  ]),
5743
- e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot", Ds, [
5744
- e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Fs, [
5745
+ e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot", Ks, [
5746
+ e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Ds, [
5745
5747
  w("td", {
5746
5748
  class: "w-table__cell",
5747
5749
  colspan: l.headers.length
5748
5750
  }, [
5749
5751
  p(e.$slots, "footer")
5750
- ], 8, Hs)
5752
+ ], 8, Fs)
5751
5753
  ])) : c("", !0),
5752
- l.pagination && e.paginationConfig ? (s(), u("tr", js, [
5754
+ l.pagination && e.paginationConfig ? (s(), u("tr", Hs, [
5753
5755
  w("td", {
5754
5756
  class: "w-table__cell",
5755
5757
  colspan: l.headers.length
5756
5758
  }, [
5757
- w("div", qs, [
5758
- C(k(e.paginationConfig), 1),
5759
+ w("div", Us, [
5759
5760
  p(e.$slots, "pagination", {
5760
- range: `${e.paginationConfig.start}-${e.paginationConfig.end} of ${e.paginationConfig.total}`,
5761
+ range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
5761
5762
  total: e.paginationConfig.total
5762
5763
  }, () => [
5763
5764
  e.paginationConfig.itemsPerPageOptions ? (s(), b(y, {
5764
5765
  key: 0,
5765
- class: "pagination-number pagination-number--items-per-page",
5766
+ class: "w-pagination__items-per-page",
5766
5767
  modelValue: e.paginationConfig.itemsPerPage,
5767
- "onUpdate:modelValue": t[1] || (t[1] = (g) => e.paginationConfig.itemsPerPage = g),
5768
- onInput: i.updatePaginationConfig,
5768
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => e.paginationConfig.itemsPerPage = m),
5769
+ onInput: t[2] || (t[2] = (m) => i.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
5769
5770
  items: e.paginationConfig.itemsPerPageOptions,
5770
5771
  "label-position": "left",
5771
5772
  label: "Items per page",
5772
5773
  "label-color": "inherit"
5773
- }, null, 8, ["modelValue", "onInput", "items"])) : c("", !0),
5774
- w("div", Gs, [
5775
- V(S, {
5776
- class: "pagination-arrow pagination-arrow--prev",
5777
- onClick: t[2] || (t[2] = (g) => i.goToPage("-1")),
5774
+ }, null, 8, ["modelValue", "items"])) : c("", !0),
5775
+ w("div", qs, [
5776
+ I(S, {
5777
+ class: "w-pagination__arrow w-pagination__arrow--prev",
5778
+ onClick: t[3] || (t[3] = (m) => i.goToPage("-1")),
5778
5779
  disabled: e.paginationConfig.page <= 1,
5779
5780
  icon: "wi-chevron-left",
5780
5781
  text: "",
5781
5782
  lg: ""
5782
5783
  }, null, 8, ["disabled"]),
5783
- (s(!0), u(_, null, T(e.paginationConfig.pagesCount, (g) => (s(), b(S, {
5784
- class: "pagination-arrow pagination-arrow--prev",
5785
- key: g,
5786
- onClick: (R) => i.goToPage(g),
5784
+ (s(!0), u(_, null, T(e.paginationConfig.pagesCount, (m) => (s(), b(S, {
5785
+ class: f(["w-pagination__page", { "w-pagination__page--active": m === e.paginationConfig.page }]),
5786
+ key: m,
5787
+ onClick: (R) => m !== e.paginationConfig.page && i.goToPage(m),
5787
5788
  round: "",
5788
- text: "",
5789
5789
  lg: ""
5790
5790
  }, {
5791
- default: m(() => [
5792
- C(k(g), 1)
5791
+ default: g(() => [
5792
+ B(k(m), 1)
5793
5793
  ]),
5794
5794
  _: 2
5795
- }, 1032, ["onClick"]))), 128)),
5796
- V(S, {
5797
- class: "pagination-arrow pagination-arrow--next",
5798
- onClick: t[3] || (t[3] = (g) => i.goToPage("+1")),
5795
+ }, 1032, ["onClick", "class"]))), 128)),
5796
+ I(S, {
5797
+ class: "w-pagination__arrow w-pagination__arrow--next",
5798
+ onClick: t[4] || (t[4] = (m) => i.goToPage("+1")),
5799
5799
  disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
5800
5800
  icon: "wi-chevron-right",
5801
5801
  text: "",
5802
5802
  lg: ""
5803
5803
  }, null, 8, ["disabled"])
5804
5804
  ]),
5805
- w("span", Xs, k(e.paginationConfig.start) + "-" + k(e.paginationConfig.end) + " of " + k(e.paginationConfig.total), 1)
5805
+ w("span", Gs, k(e.paginationConfig.start) + "-" + k(e.paginationConfig.end || e.paginationConfig.total) + " of " + k(e.paginationConfig.total), 1)
5806
5806
  ])
5807
5807
  ])
5808
- ], 8, Us)
5808
+ ], 8, js)
5809
5809
  ])) : c("", !0)
5810
5810
  ])) : c("", !0)
5811
5811
  ], 34)
5812
5812
  ], 2);
5813
5813
  }
5814
- const ce = 15, Js = {
5814
+ const ce = 15, Ys = {
5815
5815
  name: "w-table",
5816
5816
  props: {
5817
5817
  items: { type: Array, required: !0 },
@@ -5822,6 +5822,9 @@ const ce = 15, Js = {
5822
5822
  fixedFooter: { type: Boolean },
5823
5823
  loading: { type: [Boolean, String] },
5824
5824
  sort: { type: [String, Array] },
5825
+ sortFunction: { type: Function },
5826
+ filter: { type: Function },
5827
+ fetch: { type: Function },
5825
5828
  expandableRows: {
5826
5829
  validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || le(
5827
5830
  `Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
@@ -5836,8 +5839,6 @@ const ce = 15, Js = {
5836
5839
  selectedRows: { type: Array },
5837
5840
  forceSelection: { type: Boolean },
5838
5841
  uidKey: { type: String, default: "id" },
5839
- filter: { type: Function },
5840
- sortFunction: { type: Function },
5841
5842
  mobileBreakpoint: { type: Number, default: 0 },
5842
5843
  resizableColumns: { type: Boolean },
5843
5844
  pagination: {
@@ -5883,16 +5884,22 @@ const ce = 15, Js = {
5883
5884
  }),
5884
5885
  computed: {
5885
5886
  tableItems() {
5886
- return this.items.map((e, t) => (e._uid = e[this.uidKey] !== void 0 ? e[this.uidKey] : t, e));
5887
+ return this.items.map((e, t) => {
5888
+ var l;
5889
+ return e._uid = (l = e[this.uidKey]) != null ? l : t, e;
5890
+ });
5887
5891
  },
5888
5892
  filteredItems() {
5889
5893
  return typeof this.filter == "function" ? this.tableItems.filter(this.filter) : this.tableItems;
5890
5894
  },
5891
5895
  sortedItems() {
5892
- if (!this.activeSorting.length || this.sortFunction)
5896
+ if (!this.activeSorting.length || this.sortFunction || this.fetch)
5893
5897
  return this.filteredItems;
5894
5898
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
5895
- return [...this.filteredItems].sort((l, a) => (l = l[e], a = a[e], !isNaN(l) && !isNaN(a) && (l = parseFloat(l), a = parseFloat(a)), (l > a ? 1 : -1) * (t ? -1 : 1)));
5899
+ return [...this.filteredItems].sort((l, o) => (l = l[e], o = o[e], !isNaN(l) && !isNaN(o) && (l = parseFloat(l), o = parseFloat(o)), (l > o ? 1 : -1) * (t ? -1 : 1)));
5900
+ },
5901
+ paginatedItems() {
5902
+ return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
5896
5903
  },
5897
5904
  activeSortingKeys() {
5898
5905
  return this.activeSorting.reduce((e, t) => (e[t.replace(/^[+-]/, "")] = t[0], e), {});
@@ -5902,8 +5909,13 @@ const ce = 15, Js = {
5902
5909
  "w-table-wrap--loading": this.loading
5903
5910
  };
5904
5911
  },
5912
+ colClasses() {
5913
+ return this.headers.map((e) => ({ "w-table__col--highlighted": this.activeSortingKeys[e.key] })) || [];
5914
+ },
5905
5915
  classes() {
5906
5916
  return {
5917
+ "w-table--loading": this.loading,
5918
+ "w-table--loading-in-header": this.loading === "header",
5907
5919
  "w-table--fixed-layout": this.fixedLayout || this.resizableColumns || this.hasStickyColumn,
5908
5920
  "w-table--mobile": this.isMobile || null,
5909
5921
  "w-table--resizable-cols": this.resizableColumns || null,
@@ -5926,9 +5938,6 @@ const ce = 15, Js = {
5926
5938
  },
5927
5939
  expandedRowsByUid() {
5928
5940
  return this.expandedRowsInternal.reduce((e, t) => (e[t] = !0) && e, {});
5929
- },
5930
- paginatedItems() {
5931
- return this.sortedItems.slice(this.paginationConfig.start, this.paginationConfig.end);
5932
5941
  }
5933
5942
  },
5934
5943
  methods: {
@@ -5950,31 +5959,31 @@ const ce = 15, Js = {
5950
5959
  },
5951
5960
  async sortTable(e) {
5952
5961
  const t = this.activeSortingKeys[e.key];
5953
- 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);
5962
+ 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();
5954
5963
  },
5955
5964
  doSelectRow(e, t) {
5956
- const l = this.expandableRows === "" ? !0 : this.expandableRows, a = this.selectableRows === "" ? !0 : this.selectableRows;
5965
+ const l = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
5957
5966
  if (l) {
5958
- const o = this.expandedRowsByUid[e._uid] === void 0;
5959
- o ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((i) => i !== e._uid), this.$emit(
5967
+ const n = this.expandedRowsByUid[e._uid] === void 0;
5968
+ n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((i) => i !== e._uid), this.$emit(
5960
5969
  "row-expand",
5961
5970
  {
5962
5971
  item: e,
5963
5972
  index: t,
5964
- expanded: o,
5973
+ expanded: n,
5965
5974
  expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
5966
5975
  }
5967
5976
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
5968
- } else if (a) {
5969
- let o = !1;
5977
+ } else if (o) {
5978
+ let n = !1;
5970
5979
  const i = this.selectedRowsByUid[e._uid] === void 0;
5971
- i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), o = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((n) => n !== e._uid), o = !0), o && (this.$emit(
5980
+ i ? (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(
5972
5981
  "row-select",
5973
5982
  {
5974
5983
  item: e,
5975
5984
  index: t,
5976
5985
  selected: i,
5977
- selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
5986
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
5978
5987
  }
5979
5988
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
5980
5989
  }
@@ -5990,16 +5999,16 @@ const ce = 15, Js = {
5990
5999
  e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
5991
6000
  },
5992
6001
  onResizerMouseMove(e) {
5993
- const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth: o, nextColWidth: i } = this.colResizing;
6002
+ const { startCursorX: t, columnEl: l, nextColumnEl: o, colWidth: n, nextColWidth: i } = this.colResizing;
5994
6003
  this.colResizing.dragging = !0;
5995
- const n = e.pageX - t, r = o + i, d = o + n, h = i - n;
5996
- l.style.width = o + n + "px", a.style.width = i - n + "px";
5997
- const y = n < 0 && l.offsetWidth > d || l.offsetWidth <= ce, S = n > 0 && a.offsetWidth > h;
6004
+ const a = e.pageX - t, r = n + i, d = n + a, h = i - a;
6005
+ l.style.width = n + a + "px", o.style.width = i - a + "px";
6006
+ const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ce, S = a > 0 && o.offsetWidth > h;
5998
6007
  if (y) {
5999
- const g = Math.max(l.offsetWidth, ce);
6000
- l.style.width = g + "px", a.style.width = r - g + "px";
6008
+ const m = Math.max(l.offsetWidth, ce);
6009
+ l.style.width = m + "px", o.style.width = r - m + "px";
6001
6010
  } else
6002
- S && (l.style.width = r - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
6011
+ S && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6003
6012
  },
6004
6013
  onResizerMouseUp() {
6005
6014
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6010,33 +6019,48 @@ const ce = 15, Js = {
6010
6019
  this.$emit("column-resize", { index: this.colResizing.columnIndex, widths: e }), this.colResizing.dragging = !1, this.colResizing.columnIndex = null, this.colResizing.startCursorX = null, this.colResizing.columnEl = null, this.colResizing.nextColumnEl = null, this.colResizing.colWidth = null, this.colResizing.nextColWidth = null;
6011
6020
  }, 0);
6012
6021
  },
6013
- updatePaginationConfig() {
6014
- var i, n, r, d, h;
6015
- const e = ((i = this.pagination) == null ? void 0 : i.itemsPerPage) || 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }], l = ((r = this.pagination) == null ? void 0 : r.total) || this.items.length, a = e || l, o = ((d = this.pagination) == null ? void 0 : d.page) || 1;
6016
- this.paginationConfig = {
6022
+ initPagination() {
6023
+ var o, n, i;
6024
+ const e = (n = (o = this.pagination) == null ? void 0 : o.itemsPerPage) != null ? n : 20, t = ((i = this.pagination) == null ? void 0 : i.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6025
+ t.find((a) => {
6026
+ var r;
6027
+ return ((r = a == null ? void 0 : a.value) != null ? r : a) === +e;
6028
+ }) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((a) => {
6029
+ var r;
6030
+ return {
6031
+ label: ["string", "number"].includes(typeof a) ? a.toString() : a.label || a.value,
6032
+ value: ["string", "number"].includes(typeof a) ? ~~a : (r = a.value) != null ? r : a.label
6033
+ };
6034
+ }), this.paginationConfig.itemsPerPageOptions.sort((a, r) => a.value < r.value ? -1 : 1);
6035
+ const l = this.paginationConfig.itemsPerPageOptions.shift();
6036
+ this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
6017
6037
  itemsPerPage: e,
6018
- itemsPerPageOptions: t.map((y) => {
6019
- var S;
6020
- return {
6021
- label: ["string", "number"].includes(typeof y) ? y.toString() : y.label || y.value,
6022
- value: ["string", "number"].includes(typeof y) ? ~~y : (S = y.value) != null ? S : y.label
6023
- };
6024
- }),
6025
- page: o,
6026
- start: ((h = this.pagination) == null ? void 0 : h.start) || 1,
6027
- end: l >= a * o ? a * o : l % (a * o),
6028
- total: l,
6029
- pagesCount: Math.ceil(l / a)
6030
- };
6038
+ page: this.pagination.page || 1,
6039
+ total: this.pagination.total || this.items.length
6040
+ });
6031
6041
  },
6032
- goToPage(e) {
6042
+ updatePaginationConfig({ itemsPerPage: e, page: t, total: l }) {
6043
+ l && (this.paginationConfig.total = l), e !== void 0 && (this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = 1, { page: t } = this.paginationConfig, l = this.paginationConfig.total, this.paginationConfig.start = 1, this.paginationConfig.end = l >= e * t ? e * t : l % (e * t), this.paginationConfig.pagesCount = Math.ceil(l / e)), t && this.goToPage(t);
6044
+ },
6045
+ async goToPage(e) {
6033
6046
  ["-1", "+1"].includes(e) ? this.paginationConfig.page += +e : this.paginationConfig.page = e;
6034
- const { itemsPerPage: t } = this.paginationConfig;
6035
- this.paginationConfig.page = Math.max(1, this.paginationConfig.page), this.paginationConfig.start = t * (this.paginationConfig.page - 1) + 1, this.paginationConfig.end = this.paginationConfig.start - 1 + t;
6047
+ const { itemsPerPage: t, total: l } = this.paginationConfig;
6048
+ this.paginationConfig.page = Math.max(1, this.paginationConfig.page), this.paginationConfig.start = t * (this.paginationConfig.page - 1) + 1, this.paginationConfig.end = this.paginationConfig.start - 1 + (t || l), typeof this.fetch == "function" && await this.callApiFetch();
6049
+ },
6050
+ async callApiFetch() {
6051
+ const { page: e, start: t, end: l, total: o, itemsPerPage: n } = this.paginationConfig;
6052
+ return await this.fetch({
6053
+ page: e,
6054
+ start: t,
6055
+ end: l || o,
6056
+ total: o,
6057
+ itemsPerPage: n || o,
6058
+ sorting: this.activeSorting
6059
+ });
6036
6060
  }
6037
6061
  },
6038
6062
  created() {
6039
- this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.updatePaginationConfig();
6063
+ this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.initPagination();
6040
6064
  },
6041
6065
  watch: {
6042
6066
  sort(e) {
@@ -6054,20 +6078,23 @@ const ce = 15, Js = {
6054
6078
  selectedRows(e) {
6055
6079
  this.selectedRowsInternal = Array.isArray(e) && e.length ? this.selectedRows : [];
6056
6080
  },
6057
- pagination: {
6058
- handler() {
6059
- this.updatePaginationConfig();
6060
- },
6061
- deep: !0
6081
+ "pagination.page"(e) {
6082
+ this.updatePaginationConfig({ page: e });
6083
+ },
6084
+ "pagination.itemsPerPage"(e) {
6085
+ this.updatePaginationConfig({ itemsPerPage: e });
6086
+ },
6087
+ "pagination.total"(e) {
6088
+ this.updatePaginationConfig({ total: e });
6062
6089
  }
6063
6090
  }
6064
- }, Qs = /* @__PURE__ */ v(Js, [["render", Ys]]), Zs = ["role", "aria-pressed", "tabindex"];
6065
- function ea(e, t, l, a, o, i) {
6066
- return s(), u("span", B({ class: "w-tag" }, N(e.$attrs, !0), {
6067
- onClick: t[1] || (t[1] = (n) => {
6091
+ }, Js = /* @__PURE__ */ v(Ys, [["render", Xs]]), Qs = ["role", "aria-pressed", "tabindex"];
6092
+ function Zs(e, t, l, o, n, i) {
6093
+ return s(), u("span", C({ class: "w-tag" }, A(e.$attrs, !0), {
6094
+ onClick: t[1] || (t[1] = (a) => {
6068
6095
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6069
6096
  }),
6070
- onKeypress: t[2] || (t[2] = M((n) => {
6097
+ onKeypress: t[2] || (t[2] = M((a) => {
6071
6098
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6072
6099
  }, ["enter"])),
6073
6100
  class: i.classes,
@@ -6080,15 +6107,15 @@ function ea(e, t, l, a, o, i) {
6080
6107
  l.closable && l.modelValue ? (s(), u("i", {
6081
6108
  key: 0,
6082
6109
  class: "w-icon w-tag__closable wi-cross",
6083
- onClick: t[0] || (t[0] = E((n) => {
6110
+ onClick: t[0] || (t[0] = E((a) => {
6084
6111
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
6085
6112
  }, ["stop"])),
6086
6113
  role: "icon",
6087
6114
  "aria-hidden": "true"
6088
6115
  })) : c("", !0)
6089
- ], 16, Zs);
6116
+ ], 16, Qs);
6090
6117
  }
6091
- const ta = {
6118
+ const ea = {
6092
6119
  name: "w-tag",
6093
6120
  props: {
6094
6121
  modelValue: { type: [Boolean, Number], default: -1 },
@@ -6137,19 +6164,19 @@ const ta = {
6137
6164
  };
6138
6165
  }
6139
6166
  }
6140
- }, la = /* @__PURE__ */ v(ta, [["render", ea]]), ia = ["for"], sa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], aa = ["for"], oa = ["for"];
6141
- function na(e, t, l, a, o, i) {
6142
- const n = $("w-icon");
6143
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: o.isFocused }, {
6167
+ }, ta = /* @__PURE__ */ v(ea, [["render", Zs]]), la = ["for"], ia = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], sa = ["for"], aa = ["for"];
6168
+ function oa(e, t, l, o, n, i) {
6169
+ const a = $("w-icon");
6170
+ return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
6144
6171
  valid: e.valid,
6145
6172
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
6146
6173
  wrap: i.hasLabel && l.labelPosition !== "inside",
6147
6174
  onReset: t[7] || (t[7] = (r) => {
6148
- e.$emit("update:modelValue", o.inputValue = ""), e.$emit("input", "");
6175
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
6149
6176
  }),
6150
6177
  class: i.classes
6151
6178
  }), {
6152
- default: m(() => [
6179
+ default: g(() => [
6153
6180
  l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
6154
6181
  e.$slots.default || l.label ? (s(), u("label", {
6155
6182
  key: 0,
@@ -6157,30 +6184,30 @@ function na(e, t, l, a, o, i) {
6157
6184
  for: `w-textarea--${e._.uid}`
6158
6185
  }, [
6159
6186
  p(e.$slots, "default", {}, () => [
6160
- C(k(l.label), 1)
6187
+ B(k(l.label), 1)
6161
6188
  ])
6162
- ], 10, ia)) : c("", !0)
6189
+ ], 10, la)) : c("", !0)
6163
6190
  ], 64)) : c("", !0),
6164
6191
  w("div", {
6165
6192
  class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
6166
6193
  }, [
6167
- l.innerIconLeft ? (s(), b(n, {
6194
+ l.innerIconLeft ? (s(), b(a, {
6168
6195
  key: 0,
6169
6196
  class: "w-textarea__icon w-textarea__icon--inner-left",
6170
6197
  tag: "label",
6171
6198
  for: `w-textarea--${e._.uid}`,
6172
6199
  onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
6173
6200
  }, {
6174
- default: m(() => [
6175
- C(k(l.innerIconLeft), 1)
6201
+ default: g(() => [
6202
+ B(k(l.innerIconLeft), 1)
6176
6203
  ]),
6177
6204
  _: 1
6178
6205
  }, 8, ["for"])) : c("", !0),
6179
- D(w("textarea", B({
6206
+ D(w("textarea", C({
6180
6207
  class: "w-textarea__textarea",
6181
6208
  ref: "textarea",
6182
- "onUpdate:modelValue": t[1] || (t[1] = (r) => o.inputValue = r)
6183
- }, N(i.listeners, !0), {
6209
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
6210
+ }, A(i.listeners, !0), {
6184
6211
  onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
6185
6212
  onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
6186
6213
  onBlur: t[4] || (t[4] = (...r) => i.onBlur && i.onBlur(...r)),
@@ -6194,8 +6221,8 @@ function na(e, t, l, a, o, i) {
6194
6221
  disabled: e.isDisabled || null,
6195
6222
  required: e.required || null,
6196
6223
  tabindex: e.tabindex || null
6197
- }), null, 16, sa), [
6198
- [ge, o.inputValue]
6224
+ }), null, 16, ia), [
6225
+ [me, n.inputValue]
6199
6226
  ]),
6200
6227
  l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 1 }, [
6201
6228
  e.$slots.default || l.label ? (s(), u("label", {
@@ -6204,19 +6231,19 @@ function na(e, t, l, a, o, i) {
6204
6231
  for: `w-textarea--${e._.uid}`
6205
6232
  }, [
6206
6233
  p(e.$slots, "default", {}, () => [
6207
- C(k(l.label), 1)
6234
+ B(k(l.label), 1)
6208
6235
  ])
6209
- ], 10, aa)) : c("", !0)
6236
+ ], 10, sa)) : c("", !0)
6210
6237
  ], 64)) : c("", !0),
6211
- l.innerIconRight ? (s(), b(n, {
6238
+ l.innerIconRight ? (s(), b(a, {
6212
6239
  key: 2,
6213
6240
  class: "w-textarea__icon w-textarea__icon--inner-right",
6214
6241
  tag: "label",
6215
6242
  for: `w-textarea--${e._.uid}`,
6216
6243
  onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
6217
6244
  }, {
6218
- default: m(() => [
6219
- C(k(l.innerIconRight), 1)
6245
+ default: g(() => [
6246
+ B(k(l.innerIconRight), 1)
6220
6247
  ]),
6221
6248
  _: 1
6222
6249
  }, 8, ["for"])) : c("", !0)
@@ -6228,15 +6255,15 @@ function na(e, t, l, a, o, i) {
6228
6255
  for: `w-textarea--${e._.uid}`
6229
6256
  }, [
6230
6257
  p(e.$slots, "default", {}, () => [
6231
- C(k(l.label), 1)
6258
+ B(k(l.label), 1)
6232
6259
  ])
6233
- ], 10, oa)) : c("", !0)
6260
+ ], 10, aa)) : c("", !0)
6234
6261
  ], 64)) : c("", !0)
6235
6262
  ]),
6236
6263
  _: 3
6237
6264
  }, 16, ["valid", "wrap", "class"]);
6238
6265
  }
6239
- const ra = {
6266
+ const na = {
6240
6267
  name: "w-textarea",
6241
6268
  mixins: [z],
6242
6269
  props: {
@@ -6272,8 +6299,8 @@ const ra = {
6272
6299
  },
6273
6300
  computed: {
6274
6301
  listeners() {
6275
- const { input: e, focus: t, blur: l, ...a } = this.$attrs;
6276
- return a;
6302
+ const { input: e, focus: t, blur: l, ...o } = this.$attrs;
6303
+ return o;
6277
6304
  },
6278
6305
  hasValue() {
6279
6306
  return this.inputValue || this.inputValue === 0;
@@ -6352,45 +6379,45 @@ const ra = {
6352
6379
  e ? this.getLineHeight() : this.height = null;
6353
6380
  }
6354
6381
  }
6355
- }, da = /* @__PURE__ */ v(ra, [["render", na]]), ua = ["innerHTML"], ha = ["innerHTML"];
6356
- function ca(e, t, l, a, o, i) {
6382
+ }, ra = /* @__PURE__ */ v(na, [["render", oa]]), da = ["innerHTML"], ua = ["innerHTML"];
6383
+ function ha(e, t, l, o, n, i) {
6357
6384
  return s(), u("ul", {
6358
6385
  class: f(["w-timeline", i.classes])
6359
6386
  }, [
6360
- (s(!0), u(_, null, T(l.items, (n, r) => (s(), u("li", {
6387
+ (s(!0), u(_, null, T(l.items, (a, r) => (s(), u("li", {
6361
6388
  class: "w-timeline-item",
6362
6389
  key: r
6363
6390
  }, [
6364
- (s(), b(I(n[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6365
- class: f(["w-timeline-item__bullet", { [n[l.itemColorKey] || l.color]: n[l.itemColorKey] || l.color }])
6391
+ (s(), b(V(a[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6392
+ class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
6366
6393
  }, {
6367
- default: m(() => [
6368
- C(k(n[l.itemIconKey] || l.icon), 1)
6394
+ default: g(() => [
6395
+ B(k(a[l.itemIconKey] || l.icon), 1)
6369
6396
  ]),
6370
6397
  _: 2
6371
6398
  }, 1032, ["class"])),
6372
6399
  e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
6373
6400
  key: 1,
6374
- item: n,
6401
+ item: a,
6375
6402
  index: r + 1
6376
6403
  }) : p(e.$slots, "item", {
6377
6404
  key: 0,
6378
- item: n,
6405
+ item: a,
6379
6406
  index: r + 1
6380
6407
  }, () => [
6381
6408
  w("div", {
6382
- class: f(["w-timeline-item__title", { [n[l.itemColorKey] || l.color]: n[l.itemColorKey] || l.color }]),
6383
- innerHTML: n[l.itemTitleKey]
6384
- }, null, 10, ua),
6409
+ class: f(["w-timeline-item__title", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }]),
6410
+ innerHTML: a[l.itemTitleKey]
6411
+ }, null, 10, da),
6385
6412
  w("div", {
6386
6413
  class: "w-timeline-item__content",
6387
- innerHTML: n[l.itemContentKey]
6388
- }, null, 8, ha)
6414
+ innerHTML: a[l.itemContentKey]
6415
+ }, null, 8, ua)
6389
6416
  ])
6390
6417
  ]))), 128))
6391
6418
  ], 2);
6392
6419
  }
6393
- const pa = {
6420
+ const ca = {
6394
6421
  name: "w-timeline",
6395
6422
  props: {
6396
6423
  items: { type: [Array, Number], required: !0 },
@@ -6412,8 +6439,8 @@ const pa = {
6412
6439
  };
6413
6440
  }
6414
6441
  }
6415
- }, fa = /* @__PURE__ */ v(pa, [["render", ca]]);
6416
- function ma(e, t, l, a, o, i) {
6442
+ }, pa = /* @__PURE__ */ v(ca, [["render", ha]]);
6443
+ function fa(e, t, l, o, n, i) {
6417
6444
  return s(), u("div", {
6418
6445
  class: f(["w-toolbar", i.classes]),
6419
6446
  style: L(i.styles)
@@ -6470,15 +6497,15 @@ const ga = {
6470
6497
  };
6471
6498
  }
6472
6499
  }
6473
- }, ba = /* @__PURE__ */ v(ga, [["render", ma]]);
6474
- function ya(e, t, l, a, o, i) {
6500
+ }, ma = /* @__PURE__ */ v(ga, [["render", fa]]);
6501
+ function ba(e, t, l, o, n, i) {
6475
6502
  return s(), u(_, null, [
6476
6503
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
6477
- V(x, {
6504
+ I(x, {
6478
6505
  name: i.transitionName,
6479
6506
  appear: ""
6480
6507
  }, {
6481
- default: m(() => [
6508
+ default: g(() => [
6482
6509
  e.detachableVisible ? (s(), u("div", {
6483
6510
  class: f(["w-tooltip", i.classes]),
6484
6511
  ref: "detachable",
@@ -6492,7 +6519,7 @@ function ya(e, t, l, a, o, i) {
6492
6519
  }, 8, ["name"])
6493
6520
  ], 64);
6494
6521
  }
6495
- const wa = {
6522
+ const ya = {
6496
6523
  name: "w-tooltip",
6497
6524
  mixins: [ye],
6498
6525
  props: {
@@ -6524,7 +6551,7 @@ const wa = {
6524
6551
  }),
6525
6552
  computed: {
6526
6553
  tooltipClasses() {
6527
- return W(this.tooltipClass);
6554
+ return N(this.tooltipClass);
6528
6555
  },
6529
6556
  transitionName() {
6530
6557
  const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
@@ -6578,23 +6605,23 @@ const wa = {
6578
6605
  !this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
6579
6606
  }
6580
6607
  }
6581
- }, va = /* @__PURE__ */ v(wa, [["render", ya]]);
6582
- function ka(e, t, l, a, o, i) {
6583
- return s(), b(x, B({ name: "bounce" }, e.$props), {
6584
- default: m(() => [
6608
+ }, wa = /* @__PURE__ */ v(ya, [["render", ba]]);
6609
+ function va(e, t, l, o, n, i) {
6610
+ return s(), b(x, C({ name: "bounce" }, e.$props), {
6611
+ default: g(() => [
6585
6612
  p(e.$slots, "default")
6586
6613
  ]),
6587
6614
  _: 3
6588
6615
  }, 16);
6589
6616
  }
6590
- const _a = {
6617
+ const ka = {
6591
6618
  name: "w-transition-bounce",
6592
6619
  props: {
6593
6620
  appear: { type: Boolean },
6594
6621
  duration: { type: [Number, String] }
6595
6622
  }
6596
- }, Ca = /* @__PURE__ */ v(_a, [["render", ka]]);
6597
- function Ba(e, t, l, a, o, i) {
6623
+ }, _a = /* @__PURE__ */ v(ka, [["render", va]]);
6624
+ function Ca(e, t, l, o, n, i) {
6598
6625
  return s(), b(x, {
6599
6626
  name: "expand",
6600
6627
  mode: "out-in",
@@ -6609,13 +6636,13 @@ function Ba(e, t, l, a, o, i) {
6609
6636
  onLeave: i.leave,
6610
6637
  onAfterLeave: i.afterLeave
6611
6638
  }, {
6612
- default: m(() => [
6639
+ default: g(() => [
6613
6640
  p(e.$slots, "default")
6614
6641
  ]),
6615
6642
  _: 3
6616
6643
  }, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
6617
6644
  }
6618
- const Sa = {
6645
+ const Ba = {
6619
6646
  name: "w-transition-expand",
6620
6647
  props: {
6621
6648
  x: { type: Boolean },
@@ -6705,61 +6732,61 @@ const Sa = {
6705
6732
  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;
6706
6733
  }
6707
6734
  }
6708
- }, $a = /* @__PURE__ */ v(Sa, [["render", Ba]]);
6709
- function Va(e, t, l, a, o, i) {
6710
- return s(), b(x, B({ name: "fade" }, e.$props), {
6711
- default: m(() => [
6735
+ }, Sa = /* @__PURE__ */ v(Ba, [["render", Ca]]);
6736
+ function $a(e, t, l, o, n, i) {
6737
+ return s(), b(x, C({ name: "fade" }, e.$props), {
6738
+ default: g(() => [
6712
6739
  p(e.$slots, "default")
6713
6740
  ]),
6714
6741
  _: 3
6715
6742
  }, 16);
6716
6743
  }
6717
- const Ia = {
6744
+ const Va = {
6718
6745
  name: "w-transition-fade",
6719
6746
  props: {
6720
6747
  appear: { type: Boolean },
6721
6748
  duration: { type: [Number, String] }
6722
6749
  }
6723
- }, Ra = /* @__PURE__ */ v(Ia, [["render", Va]]);
6724
- function La(e, t, l, a, o, i) {
6725
- return s(), b(x, B({ name: "scale" }, e.$props), {
6726
- default: m(() => [
6750
+ }, Ia = /* @__PURE__ */ v(Va, [["render", $a]]);
6751
+ function Ra(e, t, l, o, n, i) {
6752
+ return s(), b(x, C({ name: "scale" }, e.$props), {
6753
+ default: g(() => [
6727
6754
  p(e.$slots, "default")
6728
6755
  ]),
6729
6756
  _: 3
6730
6757
  }, 16);
6731
6758
  }
6732
- const Ta = {
6759
+ const La = {
6733
6760
  name: "w-transition-scale",
6734
6761
  props: {
6735
6762
  appear: { type: Boolean },
6736
6763
  duration: { type: [Number, String] }
6737
6764
  }
6738
- }, xa = /* @__PURE__ */ v(Ta, [["render", La]]);
6739
- function Pa(e, t, l, a, o, i) {
6740
- return s(), b(x, B({ name: "scale-fade" }, e.$props), {
6741
- default: m(() => [
6765
+ }, Ta = /* @__PURE__ */ v(La, [["render", Ra]]);
6766
+ function xa(e, t, l, o, n, i) {
6767
+ return s(), b(x, C({ name: "scale-fade" }, e.$props), {
6768
+ default: g(() => [
6742
6769
  p(e.$slots, "default")
6743
6770
  ]),
6744
6771
  _: 3
6745
6772
  }, 16);
6746
6773
  }
6747
- const Oa = {
6774
+ const Pa = {
6748
6775
  name: "w-transition-scale-fade",
6749
6776
  props: {
6750
6777
  appear: { type: Boolean },
6751
6778
  duration: { type: [Number, String] }
6752
6779
  }
6753
- }, za = /* @__PURE__ */ v(Oa, [["render", Pa]]);
6754
- function Ea(e, t, l, a, o, i) {
6755
- return s(), b(x, B({ name: i.transitionName }, e.$props), {
6756
- default: m(() => [
6780
+ }, Oa = /* @__PURE__ */ v(Pa, [["render", xa]]);
6781
+ function za(e, t, l, o, n, i) {
6782
+ return s(), b(x, C({ name: i.transitionName }, e.$props), {
6783
+ default: g(() => [
6757
6784
  p(e.$slots, "default")
6758
6785
  ]),
6759
6786
  _: 3
6760
6787
  }, 16, ["name"]);
6761
6788
  }
6762
- const Ma = {
6789
+ const Ea = {
6763
6790
  name: "w-transition-slide",
6764
6791
  props: {
6765
6792
  appear: { type: Boolean },
@@ -6777,16 +6804,16 @@ const Ma = {
6777
6804
  return `slide-${this.direction}`;
6778
6805
  }
6779
6806
  }
6780
- }, Na = /* @__PURE__ */ v(Ma, [["render", Ea]]);
6781
- function Wa(e, t, l, a, o, i) {
6782
- return s(), b(x, B({ name: i.transitionName }, e.$props), {
6783
- default: m(() => [
6807
+ }, Ma = /* @__PURE__ */ v(Ea, [["render", za]]);
6808
+ function Aa(e, t, l, o, n, i) {
6809
+ return s(), b(x, C({ name: i.transitionName }, e.$props), {
6810
+ default: g(() => [
6784
6811
  p(e.$slots, "default")
6785
6812
  ]),
6786
6813
  _: 3
6787
6814
  }, 16, ["name"]);
6788
6815
  }
6789
- const Aa = {
6816
+ const Na = {
6790
6817
  name: "w-transition-slide-fade",
6791
6818
  props: {
6792
6819
  appear: { type: Boolean },
@@ -6804,27 +6831,27 @@ const Aa = {
6804
6831
  return `slide-fade-${this.direction}`;
6805
6832
  }
6806
6833
  }
6807
- }, Ka = /* @__PURE__ */ v(Aa, [["render", Wa]]);
6808
- function Da(e, t, l, a, o, i) {
6809
- return s(), b(x, B({ name: "twist" }, e.$props), {
6810
- default: m(() => [
6834
+ }, Wa = /* @__PURE__ */ v(Na, [["render", Aa]]);
6835
+ function Ka(e, t, l, o, n, i) {
6836
+ return s(), b(x, C({ name: "twist" }, e.$props), {
6837
+ default: g(() => [
6811
6838
  p(e.$slots, "default")
6812
6839
  ]),
6813
6840
  _: 3
6814
6841
  }, 16);
6815
6842
  }
6816
- const Fa = {
6843
+ const Da = {
6817
6844
  name: "w-transition-twist",
6818
6845
  props: {
6819
6846
  appear: { type: Boolean },
6820
6847
  duration: { type: [Number, String] }
6821
6848
  }
6822
- }, Ha = /* @__PURE__ */ v(Fa, [["render", Da]]), ja = ["innerHTML"], Ua = {
6849
+ }, Fa = /* @__PURE__ */ v(Da, [["render", Ka]]), Ha = ["innerHTML"], ja = {
6823
6850
  key: 1,
6824
6851
  class: "ml1"
6825
6852
  };
6826
- function qa(e, t, l, a, o, i) {
6827
- const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
6853
+ function Ua(e, t, l, o, n, i) {
6854
+ const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
6828
6855
  return s(), u("ul", {
6829
6856
  class: f(["w-tree", i.classes])
6830
6857
  }, [
@@ -6832,13 +6859,13 @@ function qa(e, t, l, a, o, i) {
6832
6859
  class: f(["w-tree__item", i.itemClasses(h)]),
6833
6860
  key: y
6834
6861
  }, [
6835
- (s(), b(I(!l.disabled && !h.disabled && h.route ? !e.$router || i.hasExternalLink(h) ? "a" : "router-link" : "div"), B({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
6862
+ (s(), b(V(!l.disabled && !h.disabled && h.route ? !e.$router || i.hasExternalLink(h) ? "a" : "router-link" : "div"), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
6836
6863
  onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
6837
6864
  onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
6838
6865
  tabindex: !l.disabled && !h.disabled && (h.children || h.branch || l.selectable) && !(l.unexpandableEmpty && !h.children) ? 0 : null
6839
6866
  }), {
6840
- default: m(() => [
6841
- (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), b(n, {
6867
+ default: g(() => [
6868
+ (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), b(a, {
6842
6869
  key: 0,
6843
6870
  class: "w-tree__item-expand",
6844
6871
  onClick: E((S) => !l.disabled && !h.disabled && i.onLabelClick(h, S), ["stop"]),
@@ -6862,27 +6889,27 @@ function qa(e, t, l, a, o, i) {
6862
6889
  class: "w-tree__item-icon",
6863
6890
  color: h.originalItem[l.itemIconColorKey] || l.iconColor
6864
6891
  }, {
6865
- default: m(() => [
6866
- C(k(i.itemIcon(h)), 1)
6892
+ default: g(() => [
6893
+ B(k(i.itemIcon(h)), 1)
6867
6894
  ]),
6868
6895
  _: 2
6869
6896
  }, 1032, ["color"])) : c("", !0),
6870
6897
  w("span", {
6871
6898
  innerHTML: h.label
6872
- }, null, 8, ja),
6873
- l.counts && (h.children || h.branch) ? (s(), u("span", Ua, "(" + k(((S = h.originalItem.children) == null ? void 0 : S.length) || 0) + ")", 1)) : c("", !0)
6899
+ }, null, 8, Ha),
6900
+ l.counts && (h.children || h.branch) ? (s(), u("span", ja, "(" + k(((S = h.originalItem.children) == null ? void 0 : S.length) || 0) + ")", 1)) : c("", !0)
6874
6901
  ];
6875
6902
  })
6876
6903
  ]),
6877
6904
  _: 2
6878
6905
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
6879
- (s(), b(I(l.noTransition ? "div" : "w-transition-expand"), {
6906
+ (s(), b(V(l.noTransition ? "div" : "w-transition-expand"), {
6880
6907
  y: !l.noTransition || null,
6881
6908
  onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth }),
6882
6909
  onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth })
6883
6910
  }, {
6884
- default: m(() => [
6885
- h.children && h.open ? (s(), b(d, B({ key: 0 }, e.$props, {
6911
+ default: g(() => [
6912
+ h.children && h.open ? (s(), b(d, C({ key: 0 }, e.$props, {
6886
6913
  depth: l.depth + 1,
6887
6914
  data: h.originalItem.children,
6888
6915
  onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
@@ -6893,10 +6920,10 @@ function qa(e, t, l, a, o, i) {
6893
6920
  onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
6894
6921
  "onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
6895
6922
  }), {
6896
- item: m(({ item: S, depth: g, open: R }) => [
6923
+ item: g(({ item: S, depth: m, open: R }) => [
6897
6924
  p(e.$slots, "item", {
6898
6925
  item: S,
6899
- depth: g,
6926
+ depth: m,
6900
6927
  open: R
6901
6928
  })
6902
6929
  ]),
@@ -6908,7 +6935,7 @@ function qa(e, t, l, a, o, i) {
6908
6935
  ], 2))), 128))
6909
6936
  ], 2);
6910
6937
  }
6911
- const Ga = {
6938
+ const qa = {
6912
6939
  name: "w-tree",
6913
6940
  props: {
6914
6941
  modelValue: { type: [Object, Array] },
@@ -6955,18 +6982,18 @@ const Ga = {
6955
6982
  updateCurrentDepthTree(e, t = []) {
6956
6983
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
6957
6984
  return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
6958
- Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
6959
- var o;
6985
+ Array.isArray(e) || (e = [e]), e.forEach((l, o) => {
6986
+ var n;
6960
6987
  this.currentDepthItems.push({
6961
6988
  originalItem: l,
6962
- _uid: this.depth.toString() + (a + 1),
6989
+ _uid: this.depth.toString() + (o + 1),
6963
6990
  label: l[this.itemLabelKey],
6964
6991
  children: !!l.children,
6965
6992
  branch: l.branch,
6966
6993
  route: l[this.itemRouteKey],
6967
6994
  disabled: l[this.itemDisabledKey],
6968
6995
  depth: this.depth,
6969
- open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey])
6996
+ open: !!(((n = t[o]) == null ? void 0 : n.open) || this.expandAll || l[this.itemOpenKey])
6970
6997
  });
6971
6998
  });
6972
6999
  },
@@ -6984,8 +7011,8 @@ const Ga = {
6984
7011
  },
6985
7012
  onLabelKeydown(e, t) {
6986
7013
  if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
6987
- const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), o = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
6988
- [...a].some((n, r) => n.isSameNode(o) ? (a[r + i] && a[r + i].focus(), !0) : !1);
7014
+ const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
7015
+ [...o].some((a, r) => a.isSameNode(n) ? (o[r + i] && o[r + i].focus(), !0) : !1);
6989
7016
  }
6990
7017
  this.selectable && this.emitItemSelection(e, t);
6991
7018
  },
@@ -7029,7 +7056,7 @@ const Ga = {
7029
7056
  unmounted() {
7030
7057
  this.dataPropUnwatch();
7031
7058
  }
7032
- }, Xa = /* @__PURE__ */ v(Ga, [["render", qa]]), Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7059
+ }, Ga = /* @__PURE__ */ v(qa, [["render", Ua]]), Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7033
7060
  __proto__: null,
7034
7061
  WAccordion: Ge,
7035
7062
  WAlert: Qe,
@@ -7040,51 +7067,51 @@ const Ga = {
7040
7067
  WCard: _t,
7041
7068
  WCheckbox: xt,
7042
7069
  WCheckboxes: Et,
7043
- WConfirm: At,
7044
- WDatePicker: Ft,
7045
- WDialog: Ut,
7046
- WDivider: Yt,
7047
- WDrawer: tl,
7048
- WFlex: sl,
7049
- WForm: rl,
7050
- WFormElement: hl,
7051
- WGrid: fl,
7052
- WIcon: bl,
7053
- WImage: kl,
7054
- WInput: Pl,
7055
- WList: El,
7056
- WMenu: Wl,
7057
- WNotification: Dl,
7058
- WOverlay: jl,
7059
- WParallax: Xl,
7060
- WProgress: ii,
7061
- WRadio: hi,
7062
- WRadios: mi,
7063
- WRating: vi,
7064
- WScrollbar: Bi,
7065
- WSelect: Oi,
7066
- WSlider: Gi,
7067
- WSpinner: Qi,
7068
- WSteps: ts,
7069
- WSwitch: ds,
7070
- WTabs: ks,
7071
- WTable: Qs,
7072
- WTag: la,
7073
- WTextarea: da,
7074
- WTimeline: fa,
7075
- WToolbar: ba,
7076
- WTooltip: va,
7077
- WTransitionBounce: Ca,
7078
- WTransitionExpand: $a,
7079
- WTransitionFade: Ra,
7080
- WTransitionScale: xa,
7081
- WTransitionScaleFade: za,
7082
- WTransitionSlide: Na,
7083
- WTransitionSlideFade: Ka,
7084
- WTransitionTwist: Ha,
7085
- WTree: Xa
7086
- }, Symbol.toStringTag, { value: "Module" })), Ja = A.install;
7087
- A.install = (e, t = {}) => Ja.call(A, e, { components: Ya, ...t });
7070
+ WConfirm: Nt,
7071
+ WDatePicker: Dt,
7072
+ WDialog: jt,
7073
+ WDivider: Xt,
7074
+ WDrawer: el,
7075
+ WFlex: il,
7076
+ WForm: nl,
7077
+ WFormElement: ul,
7078
+ WGrid: pl,
7079
+ WIcon: ml,
7080
+ WImage: vl,
7081
+ WInput: xl,
7082
+ WList: zl,
7083
+ WMenu: Al,
7084
+ WNotification: Kl,
7085
+ WOverlay: Hl,
7086
+ WParallax: Gl,
7087
+ WProgress: li,
7088
+ WRadio: ui,
7089
+ WRadios: fi,
7090
+ WRating: wi,
7091
+ WScrollbar: Ci,
7092
+ WSelect: Pi,
7093
+ WSlider: qi,
7094
+ WSpinner: Ji,
7095
+ WSteps: es,
7096
+ WSwitch: rs,
7097
+ WTabs: vs,
7098
+ WTable: Js,
7099
+ WTag: ta,
7100
+ WTextarea: ra,
7101
+ WTimeline: pa,
7102
+ WToolbar: ma,
7103
+ WTooltip: wa,
7104
+ WTransitionBounce: _a,
7105
+ WTransitionExpand: Sa,
7106
+ WTransitionFade: Ia,
7107
+ WTransitionScale: Ta,
7108
+ WTransitionScaleFade: Oa,
7109
+ WTransitionSlide: Ma,
7110
+ WTransitionSlideFade: Wa,
7111
+ WTransitionTwist: Fa,
7112
+ WTree: Ga
7113
+ }, Symbol.toStringTag, { value: "Module" })), Ya = W.install;
7114
+ W.install = (e, t = {}) => Ya.call(W, e, { components: Xa, ...t });
7088
7115
  export {
7089
- A as default
7116
+ W as default
7090
7117
  };