wave-ui 3.3.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- var we = Object.defineProperty;
2
- var ve = (e, t, l) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var F = (e, t, l) => (ve(e, typeof t != "symbol" ? t + "" : t, l), l), ae = (e, t, l) => {
1
+ var ve = Object.defineProperty;
2
+ var ke = (e, t, l) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
+ var D = (e, t, l) => (ke(e, typeof t != "symbol" ? t + "" : t, l), l), ne = (e, t, l) => {
4
4
  if (!t.has(e))
5
5
  throw TypeError("Cannot " + l);
6
6
  };
7
- var X = (e, t, l) => (ae(e, t, "read from private field"), l ? l.call(e) : t.get(e)), ee = (e, t, l) => {
7
+ var X = (e, t, l) => (ne(e, t, "read from private field"), l ? l.call(e) : t.get(e)), ee = (e, t, l) => {
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, 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 x, 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 P, 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
- const Ve = G({
11
+ }, te = (e, t, l, a) => (ne(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
12
+ import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as m, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as me, withDirectives as N, createSlots as Z, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
+ const Ie = Q({
14
14
  on: "#app",
15
15
  breakpoints: {
16
16
  xs: 600,
@@ -51,38 +51,38 @@ const Ve = G({
51
51
  transition: "default"
52
52
  },
53
53
  presets: {}
54
- }), be = (e, t = Ve) => {
54
+ }), ye = (e, t = Ie) => {
55
55
  if (!Object.keys(t).length)
56
56
  t = Object.assign(t, e);
57
57
  else
58
58
  for (const l in e) {
59
- const o = e[l];
60
- typeof o == "object" ? be(e[l], t[l]) : t[l] = o;
59
+ const a = e[l];
60
+ typeof a == "object" ? ye(e[l], t[l]) : t[l] = a;
61
61
  }
62
62
  return t;
63
- }, Ie = ["innerHTML"];
64
- function Re(e, t, l, o, n, i) {
65
- const a = $("w-alert");
66
- return s(), b(ke, { to: ".w-app" }, [
67
- I(pe, {
63
+ }, Te = ["innerHTML"];
64
+ function Re(e, t, l, a, r, i) {
65
+ const o = $("w-alert");
66
+ return s(), m(_e, { to: ".w-app" }, [
67
+ I(ae, {
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
73
  default: g(() => [
74
- (s(!0), u(_, null, x(i.notifications, (r) => (s(), u(_, null, [
75
- r._value ? (s(), b(a, C({
74
+ (s(!0), u(k, null, L(i.notifications, (n) => (s(), u(k, null, [
75
+ n._value ? (s(), m(o, C({
76
76
  class: "white--bg",
77
- key: r._uid,
78
- modelValue: r._value,
79
- "onUpdate:modelValue": (d) => r._value = d,
80
- onClose: r.dismiss
81
- }, i.notifProps(r)), {
77
+ key: n._uid,
78
+ modelValue: n._value,
79
+ "onUpdate:modelValue": (d) => n._value = d,
80
+ onClose: n.dismiss
81
+ }, i.notifProps(n)), {
82
82
  default: g(() => [
83
83
  w("div", {
84
- innerHTML: r.message
85
- }, null, 8, Ie)
84
+ innerHTML: n.message
85
+ }, null, 8, Te)
86
86
  ]),
87
87
  _: 2
88
88
  }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
@@ -94,8 +94,8 @@ function Re(e, t, l, o, n, i) {
94
94
  }
95
95
  const v = (e, t) => {
96
96
  const l = e.__vccOpts || e;
97
- for (const [o, n] of t)
98
- l[o] = n;
97
+ for (const [a, r] of t)
98
+ l[a] = r;
99
99
  return l;
100
100
  }, Le = {
101
101
  name: "w-notification-manager",
@@ -113,26 +113,26 @@ const v = (e, t) => {
113
113
  },
114
114
  methods: {
115
115
  notifProps(e) {
116
- const { _value: t, _uid: l, message: o, timeout: n, ...i } = e;
116
+ const { _value: t, _uid: l, message: a, timeout: r, ...i } = e;
117
117
  return i.dismiss && (i.dismiss = !0), i;
118
118
  }
119
119
  }
120
- }, Te = /* @__PURE__ */ v(Le, [["render", Re]]);
121
- var K;
122
- const H = class {
120
+ }, xe = /* @__PURE__ */ v(Le, [["render", Re]]);
121
+ var H;
122
+ const F = class {
123
123
  constructor() {
124
- F(this, "notifications");
125
- F(this, "_uid");
126
- F(this, "_notificationDefaults");
127
- if (X(H, K))
128
- return X(H, K);
124
+ D(this, "notifications");
125
+ D(this, "_uid");
126
+ D(this, "_notificationDefaults");
127
+ if (X(F, H))
128
+ return X(F, H);
129
129
  this.notifications = [], this._uid = 0, this._notificationDefaults = {
130
130
  _uid: 0,
131
131
  _value: !0,
132
132
  message: "",
133
133
  timeout: 4e3,
134
134
  dismiss: !0
135
- }, te(H, K, this);
135
+ }, te(F, H, this);
136
136
  }
137
137
  notify(...t) {
138
138
  let l = {
@@ -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 [o, n, i] = t;
145
+ const [a, r, i] = t;
146
146
  l = {
147
147
  ...l,
148
- message: o || "",
149
- [n === void 0 ? "info" : n]: !0,
148
+ message: a || "",
149
+ [r === void 0 ? "info" : r]: !0,
150
150
  timeout: i || i === 0 ? parseFloat(i) : 4e3
151
151
  };
152
152
  }
@@ -156,46 +156,46 @@ const H = class {
156
156
  this.notifications = this.notifications.filter((l) => l._uid !== t);
157
157
  }
158
158
  };
159
- let Y = H;
160
- K = new WeakMap(), ee(Y, K, void 0);
161
- const xe = (e, t, l) => {
162
- const o = document.createElement("div");
163
- e.appendChild(o);
164
- const n = _e(Ce({
165
- ...Te,
159
+ let Y = F;
160
+ H = new WeakMap(), ee(Y, H, void 0);
161
+ const Oe = (e, t, l) => {
162
+ const a = document.createElement("div");
163
+ e.appendChild(a);
164
+ const r = Ce(Se({
165
+ ...xe,
166
166
  inject: ["$waveui"]
167
167
  })).provide("$waveui", l);
168
168
  for (const i in t) {
169
- const a = t[i];
170
- n.component(a.name, { ...a, inject: ["$waveui"] });
169
+ const o = t[i];
170
+ r.component(o.name, { ...o, inject: ["$waveui"] });
171
171
  }
172
- n.mount(o), o.remove();
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) => {
172
+ r.mount(a), a.remove();
173
+ }, re = (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 o in l) {
178
- if (o === "shades")
177
+ for (let a in l) {
178
+ if (a === "shades")
179
179
  continue;
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]);
180
+ a = { label: a, color: l[a].replace("#", "") };
181
+ const r = a.color;
182
+ r.length === 3 && (a.color = r[0] + "" + r[0] + r[1] + r[1] + r[2] + r[2]);
183
183
  for (let i = 1; i <= 3; i++) {
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;
184
+ const o = re(`#${a.color}`, i * 40), n = re(`#${a.color}`, -i * 40);
185
+ l.shades[`${a.label}-light${i}`] = o, l.shades[`${a.label}-dark${i}`] = n;
186
186
  }
187
187
  }
188
188
  });
189
- }, ne = (e, t) => {
189
+ }, de = (e, t) => {
190
190
  const l = {
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 };
191
+ ...t.reduce((a, r) => {
192
+ a[r.label] = r.color;
193
+ const i = (r.shades || []).reduce((o, n) => (o[n.label] = n.color, o), {});
194
+ return { ...a, ...i };
195
195
  }, { ...e, ...e.shades })
196
196
  };
197
197
  return delete l.shades, l;
198
- }, re = [
198
+ }, ue = [
199
199
  {
200
200
  label: "pink",
201
201
  color: "#e91e63",
@@ -546,38 +546,38 @@ const xe = (e, t, l) => {
546
546
  cssScope: ".w-app",
547
547
  baseIncrement: 4
548
548
  };
549
- let se = { keys: [], values: [] }, de = null;
550
- const Oe = (e) => {
549
+ let se = { keys: [], values: [] }, he = null;
550
+ const ze = (e) => {
551
551
  let t = "";
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
- let S = "";
561
- return Object.entries(l).forEach(([m, R]) => {
562
- S += `--w-${m}-color: ${R};`;
563
- }), `:root{${S}}${t}`;
564
- }, ze = (e, t) => {
552
+ const l = {}, { info: a, warning: r, success: i, error: o, shades: n, ...d } = e, { cssScope: h } = U;
553
+ for (const b in d)
554
+ t += `${h} .${b}--bg{background-color:var(--w-${b}-color)}${h} .${b}{color:var(--w-${b}-color)}`;
555
+ for (const b in n)
556
+ t += `${h} .${b}--bg{background-color:${n[b]}}${h} .${b}{color:${n[b]}}`;
557
+ const y = { ...d, info: a, warning: r, success: i, error: o };
558
+ for (const b in y)
559
+ l[b] = y[b];
560
+ let B = "";
561
+ return Object.entries(l).forEach(([b, T]) => {
562
+ B += `--w-${b}-color: ${T};`;
563
+ }), `:root{${B}}${t}`;
564
+ }, Me = (e, t) => {
565
565
  let l = "";
566
- const { cssScope: o } = U;
567
- return e.forEach(({ min: n, label: i }) => {
566
+ const { cssScope: a } = U;
567
+ return e.forEach(({ min: r, label: i }) => {
568
568
  if (i === "xs")
569
- for (let a = 0; a < t; a++)
570
- l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
569
+ for (let o = 0; o < t; o++)
570
+ l += `${a} .${i}${t - o}{width:${parseFloat(((t - o) * 100 / t).toFixed(4))}%;}`;
571
571
  else {
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))}%;}`;
572
+ l += `@media(min-width:${r}px){`;
573
+ for (let o = 0; o < t; o++)
574
+ l += `${a} .${i}${t - o}{width:${parseFloat(((t - o) * 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: o } = U, n = [
580
+ const { cssScope: l, baseIncrement: a } = U, r = [
581
581
  "show{display:block}",
582
582
  "hide{display:none}",
583
583
  "d-flex{display:flex}",
@@ -611,65 +611,65 @@ 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: 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}}`);
614
+ return e.forEach(({ label: o, min: n }) => {
615
+ o !== "xs" && (t += `@media(min-width:${n}px){` + r.map((d) => `${l} .${o}u-${d}`).join("") + i.map((d, h) => `.w-grid.${o}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${o}u-gap${h + 1},.w-grid.${o}u-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${o}u-gap0,.w-flex.${o}u-gap0{gap:0}}`);
616
+ }), e.forEach(({ label: o, min: n, max: d }) => {
617
+ t += `@media (min-width:${n}px) and (max-width:${d}px){` + r.map((h) => `${l} .${o}-${h}`).join("") + i.map((h, y) => `.w-grid.${o}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + i.map((h, y) => `.w-flex.${o}-gap${y + 1},.w-grid.${o}-gap${y + 1}{gap:${(y + 1) * a}px;}`).join("") + `.w-flex.${o}-gap0,.w-flex.${o}-gap0{gap:0}}`;
618
+ }), e.forEach(({ label: o, max: n }) => {
619
+ o !== "xl" && (t += `@media (max-width:${n}px){` + r.map((d) => `${l} .${o}d-${d}`).join("") + i.map((d, h) => `.w-grid.${o}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${o}d-gap${h + 1},.w-grid.${o}d-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${o}d-gap0,.w-flex.${o}d-gap0{gap:0}}`);
620
620
  }), t;
621
- }, ue = (e) => {
621
+ }, ce = (e) => {
622
622
  const t = window.innerWidth, l = se.values.slice(0);
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",
623
+ l.push(t), l.sort((r, i) => r - i);
624
+ const a = se.keys[l.indexOf(t)] || "xl";
625
+ a !== he && (he = 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",
632
632
  width: t
633
633
  }), e.breakpoint.width = window.innerWidth;
634
- }, Me = (e) => {
634
+ }, We = (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
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);
639
+ const a = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
640
+ a ? a.before(l) : document.head.appendChild(l);
641
641
  }
642
- ue(e), window.addEventListener("resize", () => ue(e));
642
+ ce(e), window.addEventListener("resize", () => ce(e));
643
643
  }, Ae = (e) => {
644
644
  if (!document.getElementById("wave-ui-colors")) {
645
645
  const t = document.createElement("style");
646
- t.id = "wave-ui-colors", t.innerHTML = Oe(e);
646
+ t.id = "wave-ui-colors", t.innerHTML = ze(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
650
  }, Ne = (e) => {
651
- const t = Object.entries(e.breakpoints), l = t.map(([i, a], r) => {
652
- const [, d = 0] = t[r - 1] || [];
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;
651
+ const t = Object.entries(e.breakpoints), l = t.map(([i, o], n) => {
652
+ const [, d = 0] = t[n - 1] || [];
653
+ return { label: i, min: d ? d + 1 : 0, max: o };
654
+ }), a = getComputedStyle(document.documentElement);
655
+ U.cssScope = a.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(a.getPropertyValue("--w-base-increment"));
656
+ let r = "";
657
+ return r += Me(l, e.css.grid), e.css.breakpointLayoutClasses && (r += Ee(l)), r;
658
658
  };
659
- let he = !1;
660
- const We = (e) => {
659
+ let pe = !1;
660
+ const Ke = (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);
664
664
  });
665
- }, Ke = (e, t) => {
665
+ }, He = (e, t) => {
666
666
  for (const l in t)
667
667
  e.props[l].default = t[l];
668
668
  };
669
669
  var q;
670
670
  const j = class {
671
671
  constructor(t, l = {}) {
672
- F(this, "$waveui", {
672
+ D(this, "$waveui", {
673
673
  breakpoint: {
674
674
  name: "",
675
675
  xs: !1,
@@ -688,10 +688,10 @@ const j = class {
688
688
  this._notificationManager.notify(...t);
689
689
  },
690
690
  switchTheme(t, l = !1) {
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);
691
+ var r, i;
692
+ this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (r = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : r.remove) == null || i.call(r);
693
+ const a = this.config.colors[this.theme];
694
+ Ae(a), this.colors = de(a, ue);
695
695
  }
696
696
  });
697
697
  if (X(j, q)) {
@@ -699,51 +699,51 @@ 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 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 };
702
+ const o = { ...l.colors };
703
+ l.colors.light || (l.colors.light = o), l.colors.dark || (l.colors.dark = o), l.colors = { light: l.colors.light, dark: l.colors.dark };
704
704
  }
705
- let { components: o, ...n } = l;
706
- n = this.$waveui.config = be(n), n.css.colorShades && Pe(n);
707
- const i = G(this.$waveui);
708
- t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = ne(n.colors[n.theme], re));
705
+ let { components: a, ...r } = l;
706
+ r = this.$waveui.config = ye(r), r.css.colorShades && Pe(r);
707
+ const i = Q(this.$waveui);
708
+ t.config.globalProperties.$waveui = i, t.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors = de(r.colors[r.theme], ue));
709
709
  }
710
710
  static install(t, l = {}) {
711
- var n;
711
+ var r;
712
712
  t.directive("focus", {
713
713
  mounted: (i) => setTimeout(() => i.focus(), 0)
714
714
  }), t.directive("scroll", {
715
- mounted: (i, a) => {
716
- const r = (d) => {
717
- a.value(d, i) && window.removeEventListener("scroll", r);
715
+ mounted: (i, o) => {
716
+ const n = (d) => {
717
+ o.value(d, i) && window.removeEventListener("scroll", n);
718
718
  };
719
- window.addEventListener("scroll", r);
719
+ window.addEventListener("scroll", n);
720
720
  }
721
721
  });
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);
722
+ const { components: a = {} } = l || {};
723
+ for (const i in a) {
724
+ const o = a[i];
725
+ (r = l.presets) != null && r[o.name] && He(o, l.presets[o.name]), t.component(o.name, o);
726
726
  }
727
727
  t.mixin({
728
728
  beforeMount() {
729
- if (!he) {
730
- he = !0;
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);
729
+ if (!pe) {
730
+ pe = !0;
731
+ const i = Be("$waveui"), { config: o } = i, n = document.querySelector(o.on) || document.body;
732
+ n.classList.add("w-app"), o.theme === "auto" ? Ke(i) : i.switchTheme(o.theme, !0), We(i), Oe(n, a, 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 W = j;
739
- q = new WeakMap(), ee(W, q, !1);
740
- const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], He = ["innerHTML"], je = ["innerHTML"];
741
- function Ue(e, t, l, o, n, i) {
742
- const a = $("w-button"), r = $("w-transition-expand");
738
+ let K = j;
739
+ q = new WeakMap(), ee(K, q, !1);
740
+ const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
741
+ function qe(e, t, l, a, r, i) {
742
+ const o = $("w-button"), n = $("w-transition-expand");
743
743
  return s(), u("div", {
744
744
  class: f(["w-accordion", i.accordionClasses])
745
745
  }, [
746
- (s(!0), u(_, null, x(e.accordionItems, (d, h) => (s(), u("div", {
746
+ (s(!0), u(k, null, L(e.accordionItems, (d, h) => (s(), u("div", {
747
747
  class: f(["w-accordion__item", i.itemClasses(d)]),
748
748
  key: h,
749
749
  "aria-expanded": d._expanded ? "true" : "false"
@@ -752,10 +752,10 @@ function Ue(e, t, l, o, n, i) {
752
752
  class: f(["w-accordion__item-title", l.titleClass]),
753
753
  onClick: (y) => !d._disabled && i.toggleItem(d, y),
754
754
  onFocus: (y) => e.$emit("focus", i.getOriginalItem(d)),
755
- onKeypress: M((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
755
+ onKeypress: E((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
756
756
  tabindex: !d._disabled && 0
757
757
  }, [
758
- l.expandIcon && !l.expandIconRight ? (s(), b(a, {
758
+ l.expandIcon && !l.expandIconRight ? (s(), m(o, {
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,
@@ -763,9 +763,9 @@ function Ue(e, t, l, o, n, i) {
763
763
  disabled: d._disabled || null,
764
764
  tabindex: -1,
765
765
  text: "",
766
- onKeypress: t[0] || (t[0] = E(() => {
766
+ onKeypress: t[0] || (t[0] = M(() => {
767
767
  }, ["stop"])),
768
- onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
768
+ onClick: M((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
769
769
  }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : c("", !0),
770
770
  e.$slots[`item-title.${d.id || h + 1}`] ? p(e.$slots, `item-title.${d.id || h + 1}`, {
771
771
  key: 1,
@@ -781,19 +781,19 @@ function Ue(e, t, l, o, n, i) {
781
781
  w("div", {
782
782
  class: "grow",
783
783
  innerHTML: d[l.itemTitleKey]
784
- }, null, 8, He)
784
+ }, null, 8, je)
785
785
  ]),
786
- l.expandIcon && l.expandIconRight ? (s(), b(a, {
786
+ l.expandIcon && l.expandIconRight ? (s(), m(o, {
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,
790
790
  text: "",
791
- onKeypress: t[1] || (t[1] = E(() => {
791
+ onKeypress: t[1] || (t[1] = M(() => {
792
792
  }, ["stop"])),
793
- onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
793
+ onClick: M((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
794
794
  }, null, 8, ["icon", "onClick", "class"])) : c("", !0)
795
795
  ], 42, Fe),
796
- I(r, {
796
+ I(n, {
797
797
  y: "",
798
798
  onAfterLeave: (y) => i.onEndOfCollapse(d),
799
799
  duration: l.duration
@@ -816,7 +816,7 @@ function Ue(e, t, l, o, n, i) {
816
816
  }, () => [
817
817
  w("div", {
818
818
  innerHTML: d[l.itemContentKey]
819
- }, null, 8, je)
819
+ }, null, 8, Ue)
820
820
  ])
821
821
  ], 2)) : c("", !0)
822
822
  ]),
@@ -825,7 +825,7 @@ function Ue(e, t, l, o, n, i) {
825
825
  ], 10, De))), 128))
826
826
  ], 2);
827
827
  }
828
- const qe = {
828
+ const Xe = {
829
829
  name: "w-accordion",
830
830
  props: {
831
831
  modelValue: { type: Array },
@@ -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((o) => o._index !== e._index && (o._expanded = !1));
873
- const l = this.accordionItems.map((o) => o._expanded || !1);
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);
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) {
@@ -911,31 +911,31 @@ const qe = {
911
911
  deep: !0
912
912
  }
913
913
  }
914
- }, Ge = /* @__PURE__ */ v(qe, [["render", Ue]]), Xe = { class: "w-alert__content" };
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({
914
+ }, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
915
+ function Je(e, t, l, a, r, i) {
916
+ const o = $("w-icon"), n = $("w-button");
917
+ return r.show ? (s(), u("div", C({
918
918
  key: 0,
919
919
  class: "w-alert"
920
- }, A(e.$attrs, !0), { class: i.classes }), [
921
- i.type || l.icon || l.dismiss ? (s(), u(_, { key: 0 }, [
922
- i.type || l.icon ? (s(), b(a, {
920
+ }, W(e.$attrs, !0), { class: i.classes }), [
921
+ i.type || l.icon || l.dismiss ? (s(), u(k, { key: 0 }, [
922
+ i.type || l.icon ? (s(), m(o, {
923
923
  key: 0,
924
924
  class: "w-alert__icon mr2"
925
925
  }, {
926
926
  default: g(() => [
927
- B(k(i.type ? i.typeIcon : l.icon), 1)
927
+ S(_(i.type ? i.typeIcon : l.icon), 1)
928
928
  ]),
929
929
  _: 1
930
930
  })) : c("", !0),
931
- w("div", Xe, [
931
+ w("div", Ge, [
932
932
  p(e.$slots, "default")
933
933
  ]),
934
- l.dismiss ? (s(), b(r, {
934
+ l.dismiss ? (s(), m(n, {
935
935
  key: 1,
936
936
  class: "w-alert__dismiss",
937
937
  onClick: t[0] || (t[0] = (d) => {
938
- e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
938
+ e.$emit("update:modelValue", r.show = !1), e.$emit("input", !1), e.$emit("close", !1);
939
939
  }),
940
940
  icon: "wi-cross",
941
941
  color: "inherit",
@@ -945,7 +945,7 @@ function Ye(e, t, l, o, n, i) {
945
945
  ], 64)) : p(e.$slots, "default", { key: 1 })
946
946
  ], 16)) : c("", !0);
947
947
  }
948
- const Je = {
948
+ const Qe = {
949
949
  name: "w-alert",
950
950
  props: {
951
951
  modelValue: { default: !0 },
@@ -1024,13 +1024,13 @@ const Je = {
1024
1024
  this.show = e;
1025
1025
  }
1026
1026
  }
1027
- }, Qe = /* @__PURE__ */ v(Je, [["render", Ye]]), Ze = { class: "w-app" };
1028
- function et(e, t, l, o, n, i) {
1029
- return s(), u("div", Ze, [
1027
+ }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-app" };
1028
+ function tt(e, t, l, a, r, i) {
1029
+ return s(), u("div", et, [
1030
1030
  p(e.$slots, "default")
1031
1031
  ]);
1032
1032
  }
1033
- const tt = {
1033
+ const lt = {
1034
1034
  name: "w-app",
1035
1035
  props: {
1036
1036
  block: { type: Boolean },
@@ -1045,25 +1045,25 @@ const tt = {
1045
1045
  textCenter: { type: Boolean },
1046
1046
  textRight: { type: Boolean }
1047
1047
  }
1048
- }, lt = /* @__PURE__ */ v(tt, [["render", et]]);
1049
- function it(e, t, l, o, n, i) {
1050
- return s(), u("div", C({ class: "w-badge-wrap" }, A(e.$attrs, !0)), [
1048
+ }, it = /* @__PURE__ */ v(lt, [["render", tt]]);
1049
+ function st(e, t, l, a, r, i) {
1050
+ return s(), u("div", C({ class: "w-badge-wrap" }, W(e.$attrs, !0)), [
1051
1051
  p(e.$slots, "default"),
1052
- I(P, {
1052
+ I(O, {
1053
1053
  name: `${l.transition}`
1054
1054
  }, {
1055
1055
  default: g(() => [
1056
1056
  l.modelValue ? (s(), u("div", {
1057
1057
  key: 0,
1058
1058
  class: f(["w-badge", i.classes]),
1059
- style: L(i.styles),
1059
+ style: R(i.styles),
1060
1060
  "aria-atomic": "true",
1061
1061
  "aria-label": "Badge",
1062
1062
  "aria-live": "polite",
1063
1063
  role: "status"
1064
1064
  }, [
1065
1065
  l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
1066
- B(k(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
1066
+ S(_(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
1067
1067
  ])
1068
1068
  ], 6)) : c("", !0)
1069
1069
  ]),
@@ -1071,7 +1071,7 @@ function it(e, t, l, o, n, i) {
1071
1071
  }, 8, ["name"])
1072
1072
  ], 16);
1073
1073
  }
1074
- const st = {
1074
+ const at = {
1075
1075
  name: "w-badge",
1076
1076
  props: {
1077
1077
  modelValue: { default: !0 },
@@ -1134,62 +1134,62 @@ const st = {
1134
1134
  return this.forcedSize && `font-size: ${this.forcedSize}`;
1135
1135
  }
1136
1136
  }
1137
- }, at = /* @__PURE__ */ v(st, [["render", it]]), ot = ["innerHTML"];
1138
- function nt(e, t, l, o, n, i) {
1139
- const a = $("w-icon");
1137
+ }, ot = /* @__PURE__ */ v(at, [["render", st]]), nt = ["innerHTML"];
1138
+ function rt(e, t, l, a, r, i) {
1139
+ const o = $("w-icon");
1140
1140
  return s(), u("div", {
1141
1141
  class: f(["w-breadcrumbs", i.classes])
1142
1142
  }, [
1143
- (s(!0), u(_, null, x(l.items, (r, d) => (s(), u(_, null, [
1143
+ (s(!0), u(k, null, L(l.items, (n, d) => (s(), u(k, null, [
1144
1144
  d && e.$slots.separator ? (s(), u("span", {
1145
1145
  class: f(["w-breadcrumbs__separator", l.separatorColor]),
1146
1146
  key: `${d}a`
1147
1147
  }, [
1148
1148
  p(e.$slots, "separator", { index: d })
1149
- ], 2)) : d ? (s(), b(a, {
1149
+ ], 2)) : d ? (s(), m(o, {
1150
1150
  class: f(["w-breadcrumbs__separator", l.separatorColor]),
1151
1151
  key: `${d}b`
1152
1152
  }, {
1153
1153
  default: g(() => [
1154
- B(k(l.icon), 1)
1154
+ S(_(l.icon), 1)
1155
1155
  ]),
1156
1156
  _: 2
1157
1157
  }, 1032, ["class"])) : c("", !0),
1158
- r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(_, { key: 2 }, [
1159
- e.$slots.item ? (s(), b(V(i.hasRouter ? "router-link" : "a"), {
1158
+ n[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(k, { key: 2 }, [
1159
+ e.$slots.item ? (s(), m(V(i.hasRouter ? "router-link" : "a"), {
1160
1160
  class: f(["w-breadcrumbs__item", l.color || null]),
1161
1161
  key: `${d}c`,
1162
- to: i.hasRouter && r[l.itemRouteKey],
1163
- href: r[l.itemRouteKey]
1162
+ to: i.hasRouter && n[l.itemRouteKey],
1163
+ href: n[l.itemRouteKey]
1164
1164
  }, {
1165
1165
  default: g(() => [
1166
1166
  p(e.$slots, "item", {
1167
- item: r,
1167
+ item: n,
1168
1168
  index: d + 1,
1169
1169
  isLast: d === l.items.length - 1
1170
1170
  })
1171
1171
  ]),
1172
1172
  _: 2
1173
- }, 1032, ["to", "href", "class"])) : (s(), b(V(i.hasRouter ? "router-link" : "a"), {
1173
+ }, 1032, ["to", "href", "class"])) : (s(), m(V(i.hasRouter ? "router-link" : "a"), {
1174
1174
  class: f(["w-breadcrumbs__item", l.color || null]),
1175
1175
  key: `${d}d`,
1176
- to: i.hasRouter && r[l.itemRouteKey],
1177
- href: r[l.itemRouteKey],
1178
- innerHTML: r[l.itemLabelKey]
1176
+ to: i.hasRouter && n[l.itemRouteKey],
1177
+ href: n[l.itemRouteKey],
1178
+ innerHTML: n[l.itemLabelKey]
1179
1179
  }, null, 8, ["to", "href", "innerHTML", "class"]))
1180
1180
  ], 64)) : e.$slots.item ? p(e.$slots, "item", {
1181
1181
  key: `${d}e`,
1182
- item: r,
1182
+ item: n,
1183
1183
  index: d + 1,
1184
1184
  isLast: d === l.items.length - 1
1185
1185
  }) : (s(), u("span", {
1186
1186
  key: `${d}f`,
1187
- innerHTML: r[l.itemLabelKey]
1188
- }, null, 8, ot))
1187
+ innerHTML: n[l.itemLabelKey]
1188
+ }, null, 8, nt))
1189
1189
  ], 64))), 256))
1190
1190
  ], 2);
1191
1191
  }
1192
- const rt = {
1192
+ const dt = {
1193
1193
  name: "w-breadcrumbs",
1194
1194
  props: {
1195
1195
  items: { type: Array, required: !0 },
@@ -1219,10 +1219,10 @@ const rt = {
1219
1219
  };
1220
1220
  }
1221
1221
  }
1222
- }, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = {
1222
+ }, ut = /* @__PURE__ */ v(dt, [["render", rt]]), ht = {
1223
1223
  key: 0,
1224
1224
  class: "w-button__loader"
1225
- }, ht = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
1225
+ }, ct = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
1226
1226
  /* @__PURE__ */ w("circle", {
1227
1227
  cx: "20",
1228
1228
  cy: "20",
@@ -1233,26 +1233,26 @@ const rt = {
1233
1233
  "stroke-linecap": "round"
1234
1234
  })
1235
1235
  ], -1);
1236
- function ct(e, t, l, o, n, i) {
1237
- const a = $("w-icon");
1238
- return s(), b(V(l.route ? "a" : "button"), C({
1236
+ function pt(e, t, l, a, r, i) {
1237
+ const o = $("w-icon");
1238
+ return s(), m(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
- }, A(i.listeners), { style: i.styles }), {
1243
+ }, W(i.listeners), { style: i.styles }), {
1244
1244
  default: g(() => [
1245
- l.icon ? (s(), b(a, ie(C({ key: 0 }, l.iconProps || {})), {
1245
+ l.icon ? (s(), m(o, ie(C({ key: 0 }, l.iconProps || {})), {
1246
1246
  default: g(() => [
1247
- B(k(l.icon), 1)
1247
+ S(_(l.icon), 1)
1248
1248
  ]),
1249
1249
  _: 1
1250
1250
  }, 16)) : p(e.$slots, "default", { key: 1 }),
1251
- I(P, { name: "scale-fade" }, {
1251
+ I(O, { name: "scale-fade" }, {
1252
1252
  default: g(() => [
1253
- l.loading ? (s(), u("div", ut, [
1253
+ l.loading ? (s(), u("div", ht, [
1254
1254
  p(e.$slots, "loading", {}, () => [
1255
- ht
1255
+ ct
1256
1256
  ])
1257
1257
  ])) : c("", !0)
1258
1258
  ]),
@@ -1262,7 +1262,7 @@ function ct(e, t, l, o, n, i) {
1262
1262
  _: 3
1263
1263
  }, 16, ["type", "href", "class", "disabled", "style"]);
1264
1264
  }
1265
- const pt = {
1265
+ const ft = {
1266
1266
  props: {
1267
1267
  color: { type: String },
1268
1268
  bgColor: { type: String },
@@ -1352,12 +1352,12 @@ const pt = {
1352
1352
  };
1353
1353
  }
1354
1354
  }
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)), {
1355
+ }, gt = /* @__PURE__ */ v(ft, [["render", pt]]), mt = ["innerHTML"];
1356
+ function bt(e, t, l, a, r, i) {
1357
+ const o = $("button-partial");
1358
+ return l.tooltip ? (s(), m(V("w-tooltip"), ie(C({ key: 0 }, l.tooltipProps || {})), {
1359
+ activator: g(({ on: n }) => [
1360
+ I(o, C(i.buttonProps, W(n)), {
1361
1361
  default: g(() => [
1362
1362
  p(e.$slots, "default")
1363
1363
  ]),
@@ -1365,17 +1365,17 @@ function mt(e, t, l, o, n, i) {
1365
1365
  }, 1040)
1366
1366
  ]),
1367
1367
  default: g(() => [
1368
- w("div", { innerHTML: l.tooltip }, null, 8, gt)
1368
+ w("div", { innerHTML: l.tooltip }, null, 8, mt)
1369
1369
  ]),
1370
1370
  _: 3
1371
- }, 16)) : (s(), b(a, ie(C({ key: 1 }, i.buttonProps)), {
1371
+ }, 16)) : (s(), m(o, ie(C({ key: 1 }, i.buttonProps)), {
1372
1372
  default: g(() => [
1373
1373
  p(e.$slots, "default")
1374
1374
  ]),
1375
1375
  _: 3
1376
1376
  }, 16));
1377
1377
  }
1378
- const bt = {
1378
+ const yt = {
1379
1379
  name: "w-button",
1380
1380
  inheritAttrs: !1,
1381
1381
  props: {
@@ -1411,7 +1411,7 @@ const bt = {
1411
1411
  lg: { type: Boolean },
1412
1412
  xl: { type: Boolean }
1413
1413
  },
1414
- components: { ButtonPartial: ft },
1414
+ components: { ButtonPartial: gt },
1415
1415
  emits: [],
1416
1416
  computed: {
1417
1417
  buttonProps() {
@@ -1419,9 +1419,9 @@ const bt = {
1419
1419
  return { ...l, ...this.$attrs };
1420
1420
  }
1421
1421
  }
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");
1422
+ }, wt = /* @__PURE__ */ v(yt, [["render", bt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), vt = ["innerHTML"];
1423
+ function kt(e, t, l, a, r, i) {
1424
+ const o = $("w-image");
1425
1425
  return s(), u("div", {
1426
1426
  class: f(["w-card", i.classes])
1427
1427
  }, [
@@ -1434,8 +1434,8 @@ function vt(e, t, l, o, n, i) {
1434
1434
  key: 1,
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
- }, null, 10, wt)) : c("", !0),
1438
- l.image ? (s(), b(a, C({
1437
+ }, null, 10, vt)) : c("", !0),
1438
+ l.image ? (s(), m(o, C({
1439
1439
  key: 2,
1440
1440
  class: "w-card__image",
1441
1441
  src: l.image
@@ -1458,7 +1458,7 @@ function vt(e, t, l, o, n, i) {
1458
1458
  ], 2)) : c("", !0)
1459
1459
  ], 2);
1460
1460
  }
1461
- const kt = {
1461
+ const _t = {
1462
1462
  name: "w-card",
1463
1463
  props: {
1464
1464
  color: { type: String },
@@ -1477,10 +1477,10 @@ const kt = {
1477
1477
  emits: [],
1478
1478
  computed: {
1479
1479
  titleClasses() {
1480
- return N(this.titleClass);
1480
+ return A(this.titleClass);
1481
1481
  },
1482
1482
  contentClasses() {
1483
- return N(this.contentClass);
1483
+ return A(this.contentClass);
1484
1484
  },
1485
1485
  titleHasToolbar() {
1486
1486
  const { title: e } = this.$slots;
@@ -1509,7 +1509,7 @@ const kt = {
1509
1509
  };
1510
1510
  }
1511
1511
  }
1512
- }, _t = /* @__PURE__ */ v(kt, [["render", vt]]), z = {
1512
+ }, Ct = /* @__PURE__ */ v(_t, [["render", kt]]), z = {
1513
1513
  inject: {
1514
1514
  formRegister: { default: null },
1515
1515
  formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
@@ -1550,17 +1550,17 @@ const kt = {
1550
1550
  this.$refs.formEl.validate(this);
1551
1551
  }
1552
1552
  }
1553
- }, Ct = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Bt = ["for"], St = ["for", "innerHTML"], $t = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
1553
+ }, St = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Bt = ["for"], $t = ["for", "innerHTML"], Vt = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
1554
1554
  /* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
1555
- ], -1), Vt = [
1556
- $t
1557
- ], It = ["for"], Rt = ["for", "innerHTML"];
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 }, {
1555
+ ], -1), It = [
1556
+ Vt
1557
+ ], Tt = ["for"], Rt = ["for", "innerHTML"];
1558
+ function Lt(e, t, l, a, r, i) {
1559
+ return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled }, {
1560
1560
  valid: e.valid,
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);
1561
+ "onUpdate:valid": t[5] || (t[5] = (o) => e.valid = o),
1562
+ onReset: t[6] || (t[6] = (o) => {
1563
+ e.$emit("update:modelValue", r.isChecked = null), e.$emit("input", null);
1564
1564
  }),
1565
1565
  class: i.classes
1566
1566
  }), {
@@ -1570,49 +1570,49 @@ function Lt(e, t, l, o, n, i) {
1570
1570
  id: `w-checkbox--${e._.uid}`,
1571
1571
  type: "checkbox",
1572
1572
  name: e.inputName,
1573
- checked: n.isChecked || null,
1573
+ checked: r.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] = (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",
1577
+ onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
1578
+ onBlur: t[1] || (t[1] = (o) => e.$emit("blur", o)),
1579
+ onChange: t[2] || (t[2] = (o) => i.onInput()),
1580
+ onKeypress: t[3] || (t[3] = E((...o) => i.onInput && i.onInput(...o), ["enter"])),
1581
+ "aria-checked": r.isChecked || "false",
1582
1582
  role: "checkbox"
1583
- }, null, 40, Ct),
1584
- i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
1583
+ }, null, 40, St),
1584
+ i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
1585
1585
  e.$slots.default ? (s(), u("label", {
1586
1586
  key: 0,
1587
1587
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1588
1588
  for: `w-checkbox--${e._.uid}`
1589
1589
  }, [
1590
1590
  p(e.$slots, "default", {}, () => [
1591
- B(k(l.label), 1)
1591
+ S(_(l.label), 1)
1592
1592
  ])
1593
1593
  ], 10, Bt)) : l.label ? (s(), u("label", {
1594
1594
  key: 1,
1595
1595
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1596
1596
  for: `w-checkbox--${e._.uid}`,
1597
1597
  innerHTML: l.label
1598
- }, null, 10, St)) : c("", !0)
1598
+ }, null, 10, $t)) : c("", !0)
1599
1599
  ], 64)) : c("", !0),
1600
1600
  w("div", {
1601
1601
  class: f(["w-checkbox__input", this.color]),
1602
- onClick: t[4] || (t[4] = (a) => {
1602
+ onClick: t[4] || (t[4] = (o) => {
1603
1603
  e.$refs.input.focus(), e.$refs.input.click();
1604
1604
  })
1605
- }, Vt, 2),
1606
- i.hasLabel && !l.labelOnLeft ? (s(), u(_, { key: 1 }, [
1605
+ }, It, 2),
1606
+ i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
1607
1607
  e.$slots.default ? (s(), u("label", {
1608
1608
  key: 0,
1609
1609
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1610
1610
  for: `w-checkbox--${e._.uid}`
1611
1611
  }, [
1612
1612
  p(e.$slots, "default", {}, () => [
1613
- B(k(l.label), 1)
1613
+ S(_(l.label), 1)
1614
1614
  ])
1615
- ], 10, It)) : l.label ? (s(), u("label", {
1615
+ ], 10, Tt)) : l.label ? (s(), u("label", {
1616
1616
  key: 1,
1617
1617
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1618
1618
  for: `w-checkbox--${e._.uid}`,
@@ -1623,7 +1623,7 @@ function Lt(e, t, l, o, n, i) {
1623
1623
  _: 3
1624
1624
  }, 16, ["valid", "class"]);
1625
1625
  }
1626
- const Tt = {
1626
+ const xt = {
1627
1627
  name: "w-checkbox",
1628
1628
  mixins: [z],
1629
1629
  inject: {
@@ -1682,25 +1682,25 @@ const Tt = {
1682
1682
  this.isChecked = e;
1683
1683
  }
1684
1684
  }
1685
- }, xt = /* @__PURE__ */ v(Tt, [["render", Lt]]), Pt = ["innerHTML"];
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 }, {
1685
+ }, Ot = /* @__PURE__ */ v(xt, [["render", Lt]]), Pt = ["innerHTML"];
1686
+ function zt(e, t, l, a, r, i) {
1687
+ const o = $("w-checkbox");
1688
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((n) => n._isChecked), disabled: e.isDisabled }, {
1689
1689
  valid: e.valid,
1690
- "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
1690
+ "onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
1691
1691
  onReset: i.reset,
1692
1692
  column: !l.inline,
1693
1693
  wrap: l.inline,
1694
1694
  class: i.classes
1695
1695
  }), {
1696
1696
  default: g(() => [
1697
- (s(!0), u(_, null, x(i.checkboxItems, (r, d) => (s(), b(a, C({
1697
+ (s(!0), u(k, null, L(i.checkboxItems, (n, d) => (s(), m(o, C({
1698
1698
  key: d,
1699
- "model-value": r._isChecked,
1700
- "onUpdate:modelValue": (h) => i.toggleCheck(r, h),
1699
+ "model-value": n._isChecked,
1700
+ "onUpdate:modelValue": (h) => i.toggleCheck(n, h),
1701
1701
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
1702
1702
  name: `${e.inputName}[]`
1703
- }, { label: r.label, color: r.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
1703
+ }, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
1704
1704
  disabled: e.isDisabled || null,
1705
1705
  readonly: e.isReadonly || null,
1706
1706
  class: { mt1: !l.inline && d }
@@ -1708,13 +1708,13 @@ function Ot(e, t, l, o, n, i) {
1708
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
- item: i.getOriginalItem(r),
1712
- checked: !!r._isChecked,
1711
+ item: i.getOriginalItem(n),
1712
+ checked: !!n._isChecked,
1713
1713
  index: d + 1,
1714
- innerHTML: r.label
1715
- }) : r.label ? (s(), u("div", {
1714
+ innerHTML: n.label
1715
+ }) : n.label ? (s(), u("div", {
1716
1716
  key: 1,
1717
- innerHTML: r.label
1717
+ innerHTML: n.label
1718
1718
  }, null, 8, Pt)) : c("", !0)
1719
1719
  ]),
1720
1720
  _: 2
@@ -1723,7 +1723,7 @@ function Ot(e, t, l, o, n, i) {
1723
1723
  _: 3
1724
1724
  }, 16, ["valid", "onReset", "column", "wrap", "class"]);
1725
1725
  }
1726
- const zt = {
1726
+ const Mt = {
1727
1727
  name: "w-checkboxes",
1728
1728
  mixins: [z],
1729
1729
  props: {
@@ -1746,7 +1746,7 @@ const zt = {
1746
1746
  checkboxItems() {
1747
1747
  return (this.items || []).map((e, t) => {
1748
1748
  const l = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
1749
- return G({
1749
+ return Q({
1750
1750
  ...e,
1751
1751
  label: e[this.itemLabelKey],
1752
1752
  _index: t,
@@ -1769,22 +1769,22 @@ const zt = {
1769
1769
  },
1770
1770
  toggleCheck(e, t) {
1771
1771
  e._isChecked = t;
1772
- const l = this.checkboxItems.filter((o) => o._isChecked).map((o) => o.value);
1772
+ const l = this.checkboxItems.filter((a) => a._isChecked).map((a) => a.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]]);
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({
1779
+ }, Et = /* @__PURE__ */ v(Mt, [["render", zt]]);
1780
+ function Wt(e, t, l, a, r, i) {
1781
+ const o = $("w-button"), n = $("w-flex"), d = $("w-menu"), h = me("focus");
1782
+ return s(), m(d, C({
1783
1783
  modelValue: e.showPopup,
1784
1784
  "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
1785
1785
  }, i.wMenuProps), {
1786
1786
  activator: g(({ on: y }) => [
1787
- I(a, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1787
+ I(o, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1788
1788
  default: g(() => [
1789
1789
  p(e.$slots, "default")
1790
1790
  ]),
@@ -1792,42 +1792,42 @@ function Mt(e, t, l, o, n, i) {
1792
1792
  }, 1040)
1793
1793
  ]),
1794
1794
  default: g(() => [
1795
- I(r, {
1795
+ I(n, {
1796
1796
  column: !l.inline,
1797
1797
  "align-center": ""
1798
1798
  }, {
1799
1799
  default: g(() => [
1800
1800
  w("div", null, [
1801
1801
  p(e.$slots, "question", {}, () => [
1802
- B(k(l.question), 1)
1802
+ S(_(l.question), 1)
1803
1803
  ])
1804
1804
  ]),
1805
1805
  w("div", {
1806
1806
  class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
1807
1807
  }, [
1808
- l.cancel !== !1 ? (s(), b(a, C({
1808
+ l.cancel !== !1 ? (s(), m(o, C({
1809
1809
  key: 0,
1810
1810
  class: "mr2"
1811
1811
  }, i.cancelButtonProps, {
1812
1812
  "bg-color": (i.cancelButton || {}).bgColor || "error",
1813
- onKeyup: t[0] || (t[0] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
1813
+ onKeyup: t[0] || (t[0] = E((y) => !l.persistent && i.onCancel(), ["escape"])),
1814
1814
  onClick: i.onCancel
1815
1815
  }), {
1816
1816
  default: g(() => [
1817
1817
  p(e.$slots, "cancel", {}, () => [
1818
- B(k(i.cancelButton.label), 1)
1818
+ S(_(i.cancelButton.label), 1)
1819
1819
  ])
1820
1820
  ]),
1821
1821
  _: 3
1822
1822
  }, 16, ["bg-color", "onClick"])) : c("", !0),
1823
- D((s(), b(a, C(i.confirmButtonProps, {
1823
+ N((s(), m(o, C(i.confirmButtonProps, {
1824
1824
  "bg-color": (i.confirmButton || {}).bgColor || "success",
1825
- onKeyup: t[1] || (t[1] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
1825
+ onKeyup: t[1] || (t[1] = E((y) => !l.persistent && i.onCancel(), ["escape"])),
1826
1826
  onClick: i.onConfirm
1827
1827
  }), {
1828
1828
  default: g(() => [
1829
1829
  p(e.$slots, "confirm", {}, () => [
1830
- B(k(i.confirmButton.label), 1)
1830
+ S(_(i.confirmButton.label), 1)
1831
1831
  ])
1832
1832
  ]),
1833
1833
  _: 3
@@ -1935,16 +1935,16 @@ const At = {
1935
1935
  this.$emit("confirm"), this.showPopup = !1;
1936
1936
  }
1937
1937
  }
1938
- }, Nt = /* @__PURE__ */ v(At, [["render", Mt]]);
1939
- function Wt(e, t, l, o, n, i) {
1938
+ }, Nt = /* @__PURE__ */ v(At, [["render", Wt]]);
1939
+ function Kt(e, t, l, a, r, i) {
1940
1940
  return s(), u("div", {
1941
1941
  class: f(["w-date-picker", i.classes]),
1942
- style: L(i.styles)
1942
+ style: R(i.styles)
1943
1943
  }, [
1944
1944
  p(e.$slots, "default")
1945
1945
  ], 6);
1946
1946
  }
1947
- const Kt = {
1947
+ const Ht = {
1948
1948
  name: "w-date-picker",
1949
1949
  props: {
1950
1950
  dark: { type: Boolean },
@@ -1962,12 +1962,12 @@ const Kt = {
1962
1962
  return !1;
1963
1963
  }
1964
1964
  }
1965
- }, Dt = /* @__PURE__ */ v(Kt, [["render", Wt]]);
1966
- function Ft(e, t, l, o, n, i) {
1967
- const a = $("w-card"), r = $("w-overlay");
1968
- return s(), b(r, {
1965
+ }, Dt = /* @__PURE__ */ v(Ht, [["render", Kt]]);
1966
+ function Ft(e, t, l, a, r, i) {
1967
+ const o = $("w-card"), n = $("w-overlay");
1968
+ return s(), m(n, {
1969
1969
  class: f(["w-dialog", i.classes]),
1970
- "model-value": n.showWrapper,
1970
+ "model-value": r.showWrapper,
1971
1971
  persistent: l.persistent,
1972
1972
  "persistent-no-animation": l.persistentNoAnimation,
1973
1973
  onClick: i.onOutsideClick,
@@ -1976,13 +1976,13 @@ function Ft(e, t, l, o, n, i) {
1976
1976
  opacity: l.overlayOpacity
1977
1977
  }, {
1978
1978
  default: g(() => [
1979
- I(P, {
1979
+ I(O, {
1980
1980
  name: l.transition,
1981
1981
  appear: "",
1982
1982
  onAfterLeave: i.onBeforeClose
1983
1983
  }, {
1984
1984
  default: g(() => [
1985
- D(I(a, {
1985
+ N(I(o, {
1986
1986
  class: f(["w-dialog__content", l.dialogClass]),
1987
1987
  ref: "dialog",
1988
1988
  "no-border": "",
@@ -1991,7 +1991,7 @@ function Ft(e, t, l, o, n, i) {
1991
1991
  "title-class": l.titleClass,
1992
1992
  "content-class": l.contentClass,
1993
1993
  title: l.title || void 0,
1994
- style: L(i.contentStyles)
1994
+ style: R(i.contentStyles)
1995
1995
  }, Z({
1996
1996
  default: g(() => [
1997
1997
  p(e.$slots, "default")
@@ -2013,7 +2013,7 @@ function Ft(e, t, l, o, n, i) {
2013
2013
  key: "1"
2014
2014
  } : void 0
2015
2015
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2016
- [ge, n.showContent]
2016
+ [oe, r.showContent]
2017
2017
  ])
2018
2018
  ]),
2019
2019
  _: 3
@@ -2022,7 +2022,7 @@ function Ft(e, t, l, o, n, i) {
2022
2022
  _: 3
2023
2023
  }, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
2024
2024
  }
2025
- const Ht = {
2025
+ const jt = {
2026
2026
  name: "w-dialog",
2027
2027
  props: {
2028
2028
  modelValue: { default: !0 },
@@ -2089,17 +2089,17 @@ const Ht = {
2089
2089
  this.showWrapper = e, this.showContent = e;
2090
2090
  }
2091
2091
  }
2092
- }, jt = /* @__PURE__ */ v(Ht, [["render", Ft]]), Ut = ["role", "aria-orientation"];
2093
- function qt(e, t, l, o, n, i) {
2092
+ }, Ut = /* @__PURE__ */ v(jt, [["render", Ft]]), qt = ["role", "aria-orientation"];
2093
+ function Xt(e, t, l, a, r, i) {
2094
2094
  return s(), u("div", {
2095
2095
  class: f(["w-divider", i.classes]),
2096
2096
  role: e.$slots.default ? null : "presentation",
2097
2097
  "aria-orientation": l.vertical ? "vertical" : "horizontal"
2098
2098
  }, [
2099
2099
  p(e.$slots, "default")
2100
- ], 10, Ut);
2100
+ ], 10, qt);
2101
2101
  }
2102
- const Gt = {
2102
+ const Yt = {
2103
2103
  name: "w-divider",
2104
2104
  props: {
2105
2105
  vertical: { type: Boolean },
@@ -2119,23 +2119,23 @@ const Gt = {
2119
2119
  };
2120
2120
  }
2121
2121
  }
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", {
2122
+ }, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]), Jt = { class: "w-drawer-wrap__pushable" };
2123
+ function Qt(e, t, l, a, r, i) {
2124
+ const o = $("w-overlay");
2125
+ return r.showWrapper || l.pushContent ? (s(), u("div", {
2126
2126
  key: 0,
2127
2127
  class: f(["w-drawer-wrap", i.wrapperClasses])
2128
2128
  }, [
2129
2129
  l.pushContent ? (s(), u("div", {
2130
2130
  key: 0,
2131
2131
  class: "w-drawer-wrap__track",
2132
- style: L(i.trackStyles)
2132
+ style: R(i.trackStyles)
2133
2133
  }, [
2134
- w("div", Yt, [
2135
- l.noOverlay ? c("", !0) : (s(), b(a, {
2134
+ w("div", Jt, [
2135
+ l.noOverlay ? c("", !0) : (s(), m(o, {
2136
2136
  key: 0,
2137
- modelValue: n.showDrawer,
2138
- "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2137
+ modelValue: r.showDrawer,
2138
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => r.showDrawer = n),
2139
2139
  onClick: i.onOutsideClick,
2140
2140
  persistent: l.persistent,
2141
2141
  "persistent-no-animation": "",
@@ -2144,17 +2144,17 @@ function Jt(e, t, l, o, n, i) {
2144
2144
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2145
2145
  p(e.$slots, "pushable")
2146
2146
  ]),
2147
- I(P, {
2147
+ I(O, {
2148
2148
  name: "fade",
2149
2149
  onBeforeLeave: i.onBeforeClose,
2150
2150
  onAfterLeave: i.onClose
2151
2151
  }, {
2152
2152
  default: g(() => [
2153
- n.showDrawer ? (s(), b(V(l.tag || "aside"), {
2153
+ r.showDrawer ? (s(), m(V(l.tag || "aside"), {
2154
2154
  key: 0,
2155
2155
  class: f(["w-drawer", i.drawerClasses]),
2156
2156
  ref: "drawer",
2157
- style: L(i.styles)
2157
+ style: R(i.styles)
2158
2158
  }, {
2159
2159
  default: g(() => [
2160
2160
  p(e.$slots, "default")
@@ -2164,29 +2164,29 @@ function Jt(e, t, l, o, n, i) {
2164
2164
  ]),
2165
2165
  _: 3
2166
2166
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2167
- ], 4)) : (s(), u(_, { key: 1 }, [
2168
- l.noOverlay ? c("", !0) : (s(), b(a, {
2167
+ ], 4)) : (s(), u(k, { key: 1 }, [
2168
+ l.noOverlay ? c("", !0) : (s(), m(o, {
2169
2169
  key: 0,
2170
- modelValue: n.showDrawer,
2171
- "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2170
+ modelValue: r.showDrawer,
2171
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => r.showDrawer = n),
2172
2172
  onClick: i.onOutsideClick,
2173
2173
  persistent: l.persistent,
2174
2174
  "persistent-no-animation": "",
2175
2175
  "bg-color": l.overlayColor,
2176
2176
  opacity: l.overlayOpacity
2177
2177
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2178
- I(P, {
2178
+ I(O, {
2179
2179
  name: i.transitionName,
2180
2180
  appear: "",
2181
2181
  onBeforeLeave: i.onBeforeClose,
2182
2182
  onAfterLeave: i.onClose
2183
2183
  }, {
2184
2184
  default: g(() => [
2185
- n.showDrawer ? (s(), b(V(l.tag || "aside"), {
2185
+ r.showDrawer ? (s(), m(V(l.tag || "aside"), {
2186
2186
  key: 0,
2187
2187
  class: f(["w-drawer", i.drawerClasses]),
2188
2188
  ref: "drawer",
2189
- style: L(i.styles)
2189
+ style: R(i.styles)
2190
2190
  }, {
2191
2191
  default: g(() => [
2192
2192
  p(e.$slots, "default")
@@ -2199,7 +2199,7 @@ function Jt(e, t, l, o, n, i) {
2199
2199
  ], 64))
2200
2200
  ], 2)) : c("", !0);
2201
2201
  }
2202
- const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
2202
+ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2203
2203
  name: "w-drawer",
2204
2204
  props: {
2205
2205
  modelValue: { default: !0 },
@@ -2285,7 +2285,7 @@ const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
2285
2285
  return !this.showWrapper;
2286
2286
  },
2287
2287
  transitionName() {
2288
- return `slide-${Qt[this.position]}`;
2288
+ return `slide-${Zt[this.position]}`;
2289
2289
  }
2290
2290
  },
2291
2291
  methods: {
@@ -2304,9 +2304,9 @@ const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
2304
2304
  e && (this.showWrapper = !0), this.showDrawer = e;
2305
2305
  }
2306
2306
  }
2307
- }, el = /* @__PURE__ */ v(Zt, [["render", Jt]]);
2308
- function tl(e, t, l, o, n, i) {
2309
- return s(), b(V(l.tag), {
2307
+ }, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
2308
+ function ll(e, t, l, a, r, i) {
2309
+ return s(), m(V(l.tag), {
2310
2310
  class: f(["w-flex", i.classes])
2311
2311
  }, {
2312
2312
  default: g(() => [
@@ -2315,7 +2315,7 @@ function tl(e, t, l, o, n, i) {
2315
2315
  _: 3
2316
2316
  }, 8, ["class"]);
2317
2317
  }
2318
- const ll = {
2318
+ const il = {
2319
2319
  name: "w-flex",
2320
2320
  props: {
2321
2321
  tag: { type: String, default: "div" },
@@ -2362,23 +2362,23 @@ const ll = {
2362
2362
  };
2363
2363
  }
2364
2364
  }
2365
- }, il = /* @__PURE__ */ v(ll, [["render", tl]]);
2366
- function sl(e, t, l, o, n, i) {
2365
+ }, sl = /* @__PURE__ */ v(il, [["render", ll]]);
2366
+ function al(e, t, l, a, r, i) {
2367
2367
  return s(), u("form", {
2368
2368
  class: f(["w-form", i.classes]),
2369
- onSubmit: t[0] || (t[0] = (...a) => i.onSubmit && i.onSubmit(...a)),
2370
- onReset: t[1] || (t[1] = (...a) => i.reset && i.reset(...a)),
2369
+ onSubmit: t[0] || (t[0] = (...o) => i.onSubmit && i.onSubmit(...o)),
2370
+ onReset: t[1] || (t[1] = (...o) => i.reset && i.reset(...o)),
2371
2371
  novalidate: ""
2372
2372
  }, [
2373
2373
  p(e.$slots, "default")
2374
2374
  ], 34);
2375
2375
  }
2376
- const al = async (e, t) => {
2376
+ const ol = async (e, t) => {
2377
2377
  for (const l of e)
2378
2378
  if (await t(l))
2379
2379
  return !0;
2380
2380
  return !1;
2381
- }, ol = {
2381
+ }, nl = {
2382
2382
  name: "w-form",
2383
2383
  props: {
2384
2384
  modelValue: {},
@@ -2436,8 +2436,8 @@ const al = async (e, t) => {
2436
2436
  let t = 0;
2437
2437
  return await (async () => {
2438
2438
  var l;
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));
2439
+ for (const a of this.formElements)
2440
+ !((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));
2441
2441
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2442
2442
  },
2443
2443
  async validateElement(e) {
@@ -2445,16 +2445,16 @@ const al = async (e, t) => {
2445
2445
  },
2446
2446
  async checkElementValidators(e) {
2447
2447
  let t = !1, l = "";
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;
2448
+ await ol(e.validators, async (a) => {
2449
+ const r = await (typeof a == "function" && a(e.inputValue));
2450
+ return t = typeof r != "string", l = t ? "" : r, !t;
2451
2451
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
2452
2452
  },
2453
2453
  reset(e) {
2454
2454
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2455
2455
  },
2456
2456
  updateErrorsCount(e = null, t = !1) {
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);
2457
+ 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);
2458
2458
  },
2459
2459
  onSubmit(e) {
2460
2460
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2468,9 +2468,9 @@ const al = async (e, t) => {
2468
2468
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
2469
2469
  }
2470
2470
  }
2471
- }, nl = /* @__PURE__ */ v(ol, [["render", sl]]);
2472
- function rl(e, t, l, o, n, i) {
2473
- const a = $("w-transition-expand");
2471
+ }, rl = /* @__PURE__ */ v(nl, [["render", al]]);
2472
+ function dl(e, t, l, a, r, i) {
2473
+ const o = $("w-transition-expand");
2474
2474
  return s(), u("div", {
2475
2475
  class: f(i.classes)
2476
2476
  }, [
@@ -2479,7 +2479,7 @@ function rl(e, t, l, o, n, i) {
2479
2479
  }, [
2480
2480
  p(e.$slots, "default")
2481
2481
  ], 2),
2482
- I(a, { y: "" }, {
2482
+ I(o, { y: "" }, {
2483
2483
  default: g(() => [
2484
2484
  e.Validation.message ? (s(), u("div", {
2485
2485
  key: 0,
@@ -2488,7 +2488,7 @@ function rl(e, t, l, o, n, i) {
2488
2488
  p(e.$slots, "error-message", {
2489
2489
  message: e.Validation.message
2490
2490
  }, () => [
2491
- B(k(e.Validation.message), 1)
2491
+ S(_(e.Validation.message), 1)
2492
2492
  ])
2493
2493
  ], 2)) : c("", !0)
2494
2494
  ]),
@@ -2496,7 +2496,7 @@ function rl(e, t, l, o, n, i) {
2496
2496
  })
2497
2497
  ], 2);
2498
2498
  }
2499
- const dl = {
2499
+ const ul = {
2500
2500
  name: "w-form-element",
2501
2501
  props: {
2502
2502
  valid: { required: !0 },
@@ -2562,9 +2562,9 @@ const dl = {
2562
2562
  beforeUnmount() {
2563
2563
  this.formUnregister && this.formUnregister(this);
2564
2564
  }
2565
- }, ul = /* @__PURE__ */ v(dl, [["render", rl]]);
2566
- function hl(e, t, l, o, n, i) {
2567
- return s(), b(V(l.tag), {
2565
+ }, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
2566
+ function cl(e, t, l, a, r, i) {
2567
+ return s(), m(V(l.tag), {
2568
2568
  class: f(["w-grid", i.classes])
2569
2569
  }, {
2570
2570
  default: g(() => [
@@ -2573,7 +2573,7 @@ function hl(e, t, l, o, n, i) {
2573
2573
  _: 3
2574
2574
  }, 8, ["class"]);
2575
2575
  }
2576
- const cl = {
2576
+ const pl = {
2577
2577
  name: "w-grid",
2578
2578
  props: {
2579
2579
  tag: { type: String, default: "div" },
@@ -2609,31 +2609,31 @@ const cl = {
2609
2609
  },
2610
2610
  classes() {
2611
2611
  let e = null;
2612
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [o, n]) => (l[`${o}-columns${n}`] = !0, l), {}));
2612
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [a, r]) => (l[`${a}-columns${r}`] = !0, l), {}));
2613
2613
  let t = null;
2614
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [o, n]) => (l[`${o}-gap${n}`] = !0, l), {})), {
2614
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [a, r]) => (l[`${a}-gap${r}`] = !0, l), {})), {
2615
2615
  ...e || { [`columns${this.columns}`]: this.columns },
2616
2616
  ...t || { [`gap${this.gap}`]: this.gap }
2617
2617
  };
2618
2618
  }
2619
2619
  }
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), {
2620
+ }, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
2621
+ function gl(e, t, l, a, r, i) {
2622
+ return s(), m(V(l.tag || "i"), C({ class: "w-icon" }, W(e.$attrs), {
2623
2623
  class: i.classes,
2624
2624
  role: "icon",
2625
2625
  "aria-hidden": "true",
2626
2626
  style: i.readIcon() && i.styles
2627
2627
  }), {
2628
2628
  default: g(() => [
2629
- i.hasLigature ? (s(), u(_, { key: 0 }, [
2630
- B(k(e.icon), 1)
2629
+ i.hasLigature ? (s(), u(k, { key: 0 }, [
2630
+ S(_(e.icon), 1)
2631
2631
  ], 64)) : c("", !0)
2632
2632
  ]),
2633
2633
  _: 1
2634
2634
  }, 16, ["class", "style"]);
2635
2635
  }
2636
- const gl = {
2636
+ const ml = {
2637
2637
  name: "w-icon",
2638
2638
  props: {
2639
2639
  tag: { type: String, default: "i" },
@@ -2702,39 +2702,39 @@ const gl = {
2702
2702
  return this.fontName = t, this.icon = l, !0;
2703
2703
  }
2704
2704
  }
2705
- }, ml = /* @__PURE__ */ v(gl, [["render", fl]]), J = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), bl = {
2705
+ }, bl = /* @__PURE__ */ v(ml, [["render", gl]]), G = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), yl = {
2706
2706
  key: 0,
2707
2707
  class: "w-image__loader"
2708
2708
  };
2709
- function yl(e, t, l, o, n, i) {
2710
- const a = $("w-progress");
2711
- return s(), b(V(i.wrapperTag), {
2709
+ function wl(e, t, l, a, r, i) {
2710
+ const o = $("w-progress");
2711
+ return s(), m(V(i.wrapperTag), {
2712
2712
  class: f(["w-image-wrap", i.wrapperClasses]),
2713
- style: L(i.wrapperStyles)
2713
+ style: R(i.wrapperStyles)
2714
2714
  }, {
2715
2715
  default: g(() => [
2716
- I(P, {
2716
+ I(O, {
2717
2717
  name: l.transition,
2718
2718
  appear: ""
2719
2719
  }, {
2720
2720
  default: g(() => [
2721
- n.loaded ? (s(), b(V(l.tag), {
2721
+ r.loaded ? (s(), m(V(l.tag), {
2722
2722
  key: 0,
2723
2723
  class: f(["w-image", i.imageClasses]),
2724
- style: L(i.imageStyles),
2725
- src: l.tag === "img" ? n.imgSrc : null
2724
+ style: R(i.imageStyles),
2725
+ src: l.tag === "img" ? r.imgSrc : null
2726
2726
  }, null, 8, ["class", "style", "src"])) : c("", !0)
2727
2727
  ]),
2728
2728
  _: 1
2729
2729
  }, 8, ["name"]),
2730
- !l.noSpinner && n.loading ? (s(), u("div", bl, [
2731
- e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(a, C({
2730
+ !l.noSpinner && r.loading ? (s(), u("div", yl, [
2731
+ e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), m(o, C({
2732
2732
  key: 1,
2733
2733
  circle: "",
2734
2734
  indeterminate: ""
2735
2735
  }, l.spinnerColor ? { color: l.spinnerColor } : {}), null, 16))
2736
2736
  ])) : c("", !0),
2737
- e.$slots.default ? (s(), b(V(i.wrapperTag), {
2737
+ e.$slots.default ? (s(), m(V(i.wrapperTag), {
2738
2738
  key: 1,
2739
2739
  class: f(["w-image__content", l.contentClass])
2740
2740
  }, {
@@ -2747,7 +2747,7 @@ function yl(e, t, l, o, n, i) {
2747
2747
  _: 3
2748
2748
  }, 8, ["class", "style"]);
2749
2749
  }
2750
- const wl = {
2750
+ const vl = {
2751
2751
  name: "w-image",
2752
2752
  props: {
2753
2753
  tag: { type: String, default: "span" },
@@ -2815,15 +2815,15 @@ const wl = {
2815
2815
  if (!this.loading)
2816
2816
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
2817
2817
  const l = new Image();
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);
2818
+ 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) => {
2819
+ this.$emit("error", a), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
2820
2820
  }, l.src = e ? this.fallback : this.src;
2821
2821
  });
2822
2822
  }
2823
2823
  },
2824
2824
  mounted() {
2825
2825
  if (!this.src)
2826
- return J("The w-image component was used without src.");
2826
+ return G("The w-image component was used without src.");
2827
2827
  if (this.lazy) {
2828
2828
  const e = new IntersectionObserver((t) => {
2829
2829
  t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
@@ -2843,45 +2843,45 @@ const wl = {
2843
2843
  this.imgHeight = e;
2844
2844
  }
2845
2845
  }
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 = {
2846
+ }, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"], Sl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bl = ["id", "name", "multiple", "data-progress"], $l = {
2847
2847
  class: "w-input__no-file",
2848
2848
  key: "no-file"
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 }, {
2849
+ }, Vl = ["for"], Il = ["for"], Tl = ["src"], Rl = ["for"];
2850
+ function Ll(e, t, l, a, r, i) {
2851
+ const o = $("w-icon"), n = $("w-progress");
2852
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
2853
2853
  valid: e.valid,
2854
2854
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
2855
2855
  onReset: t[11] || (t[11] = (d) => {
2856
- e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
2856
+ e.$emit("update:modelValue", r.inputValue = ""), e.$emit("input", "");
2857
2857
  }),
2858
2858
  wrap: i.hasLabel && l.labelPosition !== "inside",
2859
2859
  class: i.classes
2860
2860
  }), {
2861
2861
  default: g(() => [
2862
- l.type === "hidden" ? D((s(), u("input", {
2862
+ l.type === "hidden" ? N((s(), u("input", {
2863
2863
  key: 0,
2864
2864
  type: "hidden",
2865
2865
  name: e.name || null,
2866
- "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
2867
- }, null, 8, kl)), [
2868
- [me, n.inputValue]
2869
- ]) : (s(), u(_, { key: 1 }, [
2870
- l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
2866
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => r.inputValue = d)
2867
+ }, null, 8, _l)), [
2868
+ [be, r.inputValue]
2869
+ ]) : (s(), u(k, { key: 1 }, [
2870
+ l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
2871
2871
  e.$slots.default || l.label ? (s(), u("label", {
2872
2872
  key: 0,
2873
2873
  class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
2874
2874
  for: `w-input--${e._.uid}`
2875
2875
  }, [
2876
2876
  p(e.$slots, "default", {}, () => [
2877
- B(k(l.label), 1)
2877
+ S(_(l.label), 1)
2878
2878
  ])
2879
- ], 10, _l)) : c("", !0)
2879
+ ], 10, Cl)) : c("", !0)
2880
2880
  ], 64)) : c("", !0),
2881
2881
  w("div", {
2882
2882
  class: f(["w-input__input-wrap", i.inputWrapClasses])
2883
2883
  }, [
2884
- l.innerIconLeft ? (s(), b(a, {
2884
+ l.innerIconLeft ? (s(), m(o, {
2885
2885
  key: 0,
2886
2886
  class: "w-input__icon w-input__icon--inner-left",
2887
2887
  tag: "label",
@@ -2889,16 +2889,16 @@ function Ll(e, t, l, o, n, i) {
2889
2889
  onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
2890
2890
  }, {
2891
2891
  default: g(() => [
2892
- B(k(l.innerIconLeft), 1)
2892
+ S(_(l.innerIconLeft), 1)
2893
2893
  ]),
2894
2894
  _: 1
2895
2895
  }, 8, ["for"])) : c("", !0),
2896
- l.type !== "file" ? D((s(), u("input", C({
2896
+ l.type !== "file" ? N((s(), u("input", C({
2897
2897
  key: 1,
2898
2898
  class: "w-input__input",
2899
2899
  ref: "input",
2900
- "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
2901
- }, A(i.listeners, !0), {
2900
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => r.inputValue = d)
2901
+ }, W(i.listeners, !0), {
2902
2902
  onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
2903
2903
  onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
2904
2904
  onBlur: t[5] || (t[5] = (...d) => i.onBlur && i.onBlur(...d)),
@@ -2916,9 +2916,9 @@ function Ll(e, t, l, o, n, i) {
2916
2916
  disabled: e.isDisabled || null,
2917
2917
  required: e.required || null,
2918
2918
  tabindex: e.tabindex || null
2919
- }, i.attrs), null, 16, Cl)), [
2920
- [Se, n.inputValue]
2921
- ]) : (s(), u(_, { key: 2 }, [
2919
+ }, i.attrs), null, 16, Sl)), [
2920
+ [$e, r.inputValue]
2921
+ ]) : (s(), u(k, { key: 2 }, [
2922
2922
  w("input", C({
2923
2923
  ref: "input",
2924
2924
  id: `w-input--${e._.uid}`,
@@ -2931,46 +2931,46 @@ function Ll(e, t, l, o, n, i) {
2931
2931
  }, i.attrs, {
2932
2932
  "data-progress": i.overallFilesProgress
2933
2933
  }), null, 16, Bl),
2934
- I(pe, {
2934
+ I(ae, {
2935
2935
  class: "w-input__input w-input__input--file",
2936
2936
  tag: "label",
2937
2937
  name: "fade",
2938
2938
  for: `w-input--${e._.uid}`
2939
2939
  }, {
2940
2940
  default: g(() => [
2941
- !n.inputFiles.length && n.isFocused ? (s(), u("span", Sl, [
2941
+ !r.inputFiles.length && r.isFocused ? (s(), u("span", $l, [
2942
2942
  p(e.$slots, "no-file", {}, () => [
2943
- e.$slots["no-file"] === void 0 ? (s(), u(_, { key: 0 }, [
2944
- B("No file")
2943
+ e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
2944
+ S("No file")
2945
2945
  ], 64)) : c("", !0)
2946
2946
  ])
2947
2947
  ])) : c("", !0),
2948
- (s(!0), u(_, null, x(n.inputFiles, (d, h) => (s(), u("span", {
2948
+ (s(!0), u(k, null, L(r.inputFiles, (d, h) => (s(), u("span", {
2949
2949
  key: d.lastModified
2950
2950
  }, [
2951
- B(k(h ? ", " : ""), 1),
2951
+ S(_(h ? ", " : ""), 1),
2952
2952
  (s(), u("span", {
2953
2953
  class: "filename",
2954
2954
  key: `${h}b`
2955
- }, k(d.base), 1)),
2956
- B(k(d.extension ? `.${d.extension}` : ""), 1)
2955
+ }, _(d.base), 1)),
2956
+ S(_(d.extension ? `.${d.extension}` : ""), 1)
2957
2957
  ]))), 128))
2958
2958
  ]),
2959
2959
  _: 3
2960
2960
  }, 8, ["for"])
2961
2961
  ], 64)),
2962
- l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 3 }, [
2962
+ l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 3 }, [
2963
2963
  e.$slots.default || l.label ? (s(), u("label", {
2964
2964
  key: 0,
2965
2965
  class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses]),
2966
2966
  for: `w-input--${e._.uid}`
2967
2967
  }, [
2968
2968
  p(e.$slots, "default", {}, () => [
2969
- B(k(l.label), 1)
2969
+ S(_(l.label), 1)
2970
2970
  ])
2971
- ], 10, $l)) : c("", !0)
2971
+ ], 10, Vl)) : c("", !0)
2972
2972
  ], 64)) : c("", !0),
2973
- l.innerIconRight ? (s(), b(a, {
2973
+ l.innerIconRight ? (s(), m(o, {
2974
2974
  key: 4,
2975
2975
  class: "w-input__icon w-input__icon--inner-right",
2976
2976
  tag: "label",
@@ -2978,11 +2978,11 @@ function Ll(e, t, l, o, n, i) {
2978
2978
  onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
2979
2979
  }, {
2980
2980
  default: g(() => [
2981
- B(k(l.innerIconRight), 1)
2981
+ S(_(l.innerIconRight), 1)
2982
2982
  ]),
2983
2983
  _: 1
2984
2984
  }, 8, ["for"])) : c("", !0),
2985
- i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), b(r, {
2985
+ i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), m(n, {
2986
2986
  key: 5,
2987
2987
  class: "fill-width",
2988
2988
  size: "2",
@@ -2990,12 +2990,12 @@ function Ll(e, t, l, o, n, i) {
2990
2990
  "model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
2991
2991
  }, null, 8, ["color", "model-value"])) : c("", !0)
2992
2992
  ], 2),
2993
- l.type === "file" && l.preview && n.inputFiles.length ? (s(), u("label", {
2993
+ l.type === "file" && l.preview && r.inputFiles.length ? (s(), u("label", {
2994
2994
  key: 1,
2995
2995
  class: "d-flex",
2996
2996
  for: `w-input--${e._.uid}`
2997
2997
  }, [
2998
- (s(!0), u(_, null, x(n.inputFiles, (d, h) => (s(), u(_, null, [
2998
+ (s(!0), u(k, null, L(r.inputFiles, (d, h) => (s(), u(k, null, [
2999
2999
  d.progress < 100 ? (s(), u("i", {
3000
3000
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3001
3001
  key: `${h}a`
@@ -3004,20 +3004,20 @@ function Ll(e, t, l, o, n, i) {
3004
3004
  key: `${h}b`,
3005
3005
  src: d.preview,
3006
3006
  alt: ""
3007
- }, null, 8, Il)) : (s(), u("i", {
3007
+ }, null, 8, Tl)) : (s(), u("i", {
3008
3008
  class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
3009
3009
  key: `${h}c`
3010
3010
  }, null, 2))
3011
3011
  ], 64))), 256))
3012
- ], 8, Vl)) : c("", !0),
3013
- l.labelPosition === "right" ? (s(), u(_, { key: 2 }, [
3012
+ ], 8, Il)) : c("", !0),
3013
+ l.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
3014
3014
  e.$slots.default || l.label ? (s(), u("label", {
3015
3015
  key: 0,
3016
3016
  class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
3017
3017
  for: `w-input--${e._.uid}`
3018
3018
  }, [
3019
3019
  p(e.$slots, "default", {}, () => [
3020
- B(k(l.label), 1)
3020
+ S(_(l.label), 1)
3021
3021
  ])
3022
3022
  ], 10, Rl)) : c("", !0)
3023
3023
  ], 64)) : c("", !0)
@@ -3026,7 +3026,7 @@ function Ll(e, t, l, o, n, i) {
3026
3026
  _: 3
3027
3027
  }, 16, ["valid", "wrap", "class"]);
3028
3028
  }
3029
- const Tl = {
3029
+ const xl = {
3030
3030
  name: "w-input",
3031
3031
  mixins: [z],
3032
3032
  props: {
@@ -3076,8 +3076,8 @@ const Tl = {
3076
3076
  return t;
3077
3077
  },
3078
3078
  listeners() {
3079
- const { input: e, focus: t, blur: l, ...o } = this.$attrs;
3080
- return o;
3079
+ const { input: e, focus: t, blur: l, ...a } = this.$attrs;
3080
+ return a;
3081
3081
  },
3082
3082
  hasValue() {
3083
3083
  switch (this.type) {
@@ -3106,7 +3106,7 @@ const Tl = {
3106
3106
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3107
3107
  },
3108
3108
  overallFilesProgress() {
3109
- const t = +this.inputFiles.reduce((l, o) => l + o.progress, 0) / this.inputFiles.length;
3109
+ const t = +this.inputFiles.reduce((l, a) => l + a.progress, 0) / this.inputFiles.length;
3110
3110
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
3111
3111
  },
3112
3112
  uploadInProgress() {
@@ -3160,10 +3160,10 @@ const Tl = {
3160
3160
  },
3161
3161
  onFileChange(e) {
3162
3162
  this.inputFiles = [...e.target.files].map((t) => {
3163
- const [, l = "", o = "", n = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = G({
3163
+ const [, l = "", a = "", r = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = Q({
3164
3164
  name: t.name,
3165
- base: l || n,
3166
- extension: o,
3165
+ base: l || r,
3166
+ extension: a,
3167
3167
  type: t.type,
3168
3168
  size: t.size,
3169
3169
  lastModified: t.lastModified,
@@ -3175,8 +3175,8 @@ const Tl = {
3175
3175
  }), this.$emit("update:modelValue", this.inputFiles), this.$emit("input", this.inputFiles);
3176
3176
  },
3177
3177
  readFile(e, t) {
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) => {
3178
+ const l = new FileReader(), a = typeof this.preview == "string", r = e.type && e.type.startsWith("image/");
3179
+ this.preview && !a && r ? l.addEventListener("load", (i) => {
3180
3180
  t.preview = i.target.result;
3181
3181
  }) : delete t.preview, l.addEventListener("progress", (i) => {
3182
3182
  i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
@@ -3193,26 +3193,26 @@ const Tl = {
3193
3193
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1);
3194
3194
  }
3195
3195
  }
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);
3196
+ }, Ol = /* @__PURE__ */ v(xl, [["render", Ll]]);
3197
+ function Pl(e, t, l, a, r, i) {
3198
+ const o = $("w-icon"), n = $("w-list", !0);
3199
3199
  return s(), u("ul", {
3200
3200
  class: f(["w-list", i.classes])
3201
3201
  }, [
3202
- (s(!0), u(_, null, x(e.listItems, (d, h) => (s(), u("li", {
3202
+ (s(!0), u(k, null, L(e.listItems, (d, h) => (s(), u("li", {
3203
3203
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3204
3204
  key: h
3205
3205
  }, [
3206
- l.icon ? (s(), b(a, {
3206
+ l.icon ? (s(), m(o, {
3207
3207
  key: 0,
3208
3208
  class: "w-list__item-bullet"
3209
3209
  }, {
3210
3210
  default: g(() => [
3211
- B(k(l.icon), 1)
3211
+ S(_(l.icon), 1)
3212
3212
  ]),
3213
3213
  _: 1
3214
3214
  })) : c("", !0),
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({
3215
+ e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), m(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3216
3216
  key: 1,
3217
3217
  class: "w-list__item-label"
3218
3218
  }, i.liLabelProps(d, h, d._selected)), {
@@ -3233,15 +3233,15 @@ function Pl(e, t, l, o, n, i) {
3233
3233
  index: h + 1,
3234
3234
  selected: d._selected
3235
3235
  }, () => [
3236
- B(k(d._label), 1)
3236
+ S(_(d._label), 1)
3237
3237
  ])
3238
3238
  ]),
3239
3239
  _: 2
3240
- }, 1040)) : (s(), b(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3240
+ }, 1040)) : (s(), m(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3241
3241
  key: 2,
3242
3242
  class: "w-list__item-label"
3243
3243
  }, i.liLabelProps(d, h, d._selected)), null, 16)),
3244
- (d.children || []).length ? (s(), b(r, C({ key: 3 }, e.$props, {
3244
+ (d.children || []).length ? (s(), m(n, C({ key: 3 }, e.$props, {
3245
3245
  items: d.children,
3246
3246
  depth: l.depth + 1,
3247
3247
  "onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
@@ -3251,23 +3251,23 @@ function Pl(e, t, l, o, n, i) {
3251
3251
  }), Z({ _: 2 }, [
3252
3252
  e.$slots.item ? {
3253
3253
  name: "item",
3254
- fn: g(({ item: y, index: S, selected: m }) => [
3254
+ fn: g(({ item: y, index: B, selected: b }) => [
3255
3255
  p(e.$slots, "item", {
3256
3256
  item: i.cleanLi(y),
3257
- index: S,
3258
- selected: m
3257
+ index: B,
3258
+ selected: b
3259
3259
  })
3260
3260
  ]),
3261
3261
  key: "0"
3262
3262
  } : {
3263
3263
  name: "default",
3264
- fn: g(({ item: y, index: S, selected: m }) => [
3264
+ fn: g(({ item: y, index: B, selected: b }) => [
3265
3265
  p(e.$slots, "default", {
3266
3266
  item: i.cleanLi(y),
3267
- index: S,
3268
- selected: m
3267
+ index: B,
3268
+ selected: b
3269
3269
  }, () => [
3270
- B(k(y[l.itemLabelKey]), 1)
3270
+ S(_(y[l.itemLabelKey]), 1)
3271
3271
  ])
3272
3272
  ]),
3273
3273
  key: "1"
@@ -3276,7 +3276,7 @@ function Pl(e, t, l, o, n, i) {
3276
3276
  ], 2))), 128))
3277
3277
  ], 2);
3278
3278
  }
3279
- const Ol = {
3279
+ const zl = {
3280
3280
  name: "w-list",
3281
3281
  props: {
3282
3282
  items: { type: [Array, Number], required: !0 },
@@ -3360,28 +3360,28 @@ const Ol = {
3360
3360
  };
3361
3361
  },
3362
3362
  liLabelProps(e, t, l) {
3363
- const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3363
+ const a = this.$slots[`item.${t + 1}`] || this.$slots.item, r = () => {
3364
3364
  if (!e.disabled) {
3365
3365
  const d = this.cleanLi(e);
3366
3366
  this.$emit("item-click", d), this.$emit("item-select", d);
3367
3367
  }
3368
3368
  }, i = this.isSelectable && ((d) => {
3369
3369
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3370
- }), a = this.isSelectable && ((d) => {
3370
+ }), o = this.isSelectable && ((d) => {
3371
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));
3372
- }), r = {
3372
+ }), n = {
3373
3373
  class: this.liLabelClasses(e),
3374
3374
  tabindex: e.disabled || this.checklist ? null : "0",
3375
3375
  "aria-selected": l ? "true" : "false",
3376
3376
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3377
3377
  role: "option"
3378
3378
  };
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) => {
3379
+ return this.checklist ? (n.modelValue = e._selected, n.color = e[this.itemColorKey] || this.color, n.round = this.roundCheckboxes, n.disabled = e.disabled, a || (n.label = e._label || null), n.onFocus = () => e._focused = !0, n.onBlur = () => e._focused = !1, n.onInput = (d) => this.selectItem(e, d), n.onClick = (d) => {
3380
3380
  const h = d.target.querySelector('input[type="checkbox"]');
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;
3381
+ h && (h.focus(), h.click()), r();
3382
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (n.onKeydown = o, n.onMousedown = i, this.$router ? (n.to = e[this.itemRouteKey], n.onClick = (d) => {
3383
+ d.preventDefault(), this.$router.push(e[this.itemRouteKey]), r();
3384
+ }) : (n.href = e[this.itemRouteKey], n.onClick = r)), a || (n.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (n.tabindex = 0), n.onClick = r, n.onKeydown = o, n.onMousedown = i), a || (n.innerHTML = e._label)), n;
3385
3385
  },
3386
3386
  checkSelection(e) {
3387
3387
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
@@ -3390,7 +3390,7 @@ const Ol = {
3390
3390
  const e = this.selectedItems.map((l) => {
3391
3391
  if (!this.returnObject)
3392
3392
  return l._value;
3393
- const { _value: o, _selected: n, ...i } = l;
3393
+ const { _value: a, _selected: r, ...i } = l;
3394
3394
  return i;
3395
3395
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3396
3396
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3401,8 +3401,8 @@ const Ol = {
3401
3401
  e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3402
3402
  },
3403
3403
  cleanLi(e) {
3404
- const { _index: t, _value: l, _label: o, _selected: n, _focused: i, ...a } = e;
3405
- return a;
3404
+ const { _index: t, _value: l, _label: a, _selected: r, _focused: i, ...o } = e;
3405
+ return o;
3406
3406
  },
3407
3407
  refreshListItems() {
3408
3408
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -3417,7 +3417,7 @@ const Ol = {
3417
3417
  },
3418
3418
  applySelectionOnItems(e) {
3419
3419
  this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => {
3420
- const l = this.listItems.find((o) => o._value === t);
3420
+ const l = this.listItems.find((a) => a._value === t);
3421
3421
  l && (l._selected = !0);
3422
3422
  });
3423
3423
  }
@@ -3441,7 +3441,7 @@ const Ol = {
3441
3441
  }
3442
3442
  }
3443
3443
  }
3444
- }, zl = /* @__PURE__ */ v(Ol, [["render", Pl]]), ye = {
3444
+ }, Ml = /* @__PURE__ */ v(zl, [["render", Pl]]), we = {
3445
3445
  props: {
3446
3446
  appendTo: { type: [String, Boolean, Object] },
3447
3447
  fixed: { type: Boolean },
@@ -3468,7 +3468,7 @@ const Ol = {
3468
3468
  let e = ".w-app";
3469
3469
  typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
3470
3470
  let t = this.appendTo || e;
3471
- return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, J(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (J(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
3471
+ return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, G(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (G(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
3472
3472
  },
3473
3473
  detachableParentEl() {
3474
3474
  return this.appendToTarget;
@@ -3506,39 +3506,39 @@ const Ol = {
3506
3506
  }, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize);
3507
3507
  },
3508
3508
  getActivatorCoordinates() {
3509
- const { top: e, left: t, width: l, height: o } = this.activatorEl.getBoundingClientRect();
3510
- let n = { top: e, left: t, width: l, height: o };
3509
+ const { top: e, left: t, width: l, height: a } = this.activatorEl.getBoundingClientRect();
3510
+ let r = { top: e, left: t, width: l, height: a };
3511
3511
  if (!this.fixed) {
3512
- const { top: i, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3513
- n = {
3514
- ...n,
3515
- top: e - i + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
3516
- left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
3512
+ const { top: i, left: o } = this.detachableParentEl.getBoundingClientRect(), n = window.getComputedStyle(this.detachableParentEl, null);
3513
+ r = {
3514
+ ...r,
3515
+ top: e - i + this.detachableParentEl.scrollTop - parseInt(n.getPropertyValue("border-top-width")),
3516
+ left: t - o + this.detachableParentEl.scrollLeft - parseInt(n.getPropertyValue("border-left-width"))
3517
3517
  };
3518
3518
  }
3519
- return n;
3519
+ return r;
3520
3520
  },
3521
3521
  computeDetachableCoords() {
3522
- let { top: e, left: t, width: l, height: o } = this.getActivatorCoordinates();
3522
+ let { top: e, left: t, width: l, height: a } = this.getActivatorCoordinates();
3523
3523
  if (!this.detachableEl)
3524
3524
  return;
3525
3525
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
3526
- const n = window.getComputedStyle(this.detachableEl, null);
3526
+ const r = window.getComputedStyle(this.detachableEl, null);
3527
3527
  switch (this.position) {
3528
3528
  case "top": {
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);
3529
+ e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(r.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3530
3530
  break;
3531
3531
  }
3532
3532
  case "bottom": {
3533
- e += o, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3533
+ e += a, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(r.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3534
3534
  break;
3535
3535
  }
3536
3536
  case "left": {
3537
- t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
3537
+ t -= this.detachableEl.offsetWidth, this.alignBottom ? e += a - this.detachableEl.offsetHeight : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2);
3538
3538
  break;
3539
3539
  }
3540
3540
  case "right": {
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")));
3541
+ t += l, this.alignBottom ? e += a - this.detachableEl.offsetHeight + parseInt(r.getPropertyValue("margin-top")) : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2 + parseInt(r.getPropertyValue("margin-top")));
3542
3542
  break;
3543
3543
  }
3544
3544
  }
@@ -3565,11 +3565,11 @@ const Ol = {
3565
3565
  const e = typeof this.activator == "string";
3566
3566
  Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
3567
3567
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3568
- const o = (n) => {
3568
+ const a = (r) => {
3569
3569
  var i;
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);
3570
+ (e && ((i = r.target) == null ? void 0 : i.matches) && r.target.matches(this.activator) || r.target === this.activatorEl || this.activatorEl.contains(r.target)) && l(r);
3571
3571
  };
3572
- document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
3572
+ document.addEventListener(t, a), this.docEventListenersHandlers.push({ eventName: t, handler: a });
3573
3573
  });
3574
3574
  }
3575
3575
  },
@@ -3593,11 +3593,11 @@ const Ol = {
3593
3593
  }
3594
3594
  }
3595
3595
  };
3596
- function El(e, t, l, o, n, i) {
3597
- const a = $("w-card"), r = $("w-overlay");
3598
- return s(), u(_, null, [
3596
+ function El(e, t, l, a, r, i) {
3597
+ const o = $("w-card"), n = $("w-overlay");
3598
+ return s(), u(k, null, [
3599
3599
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
3600
- I(P, {
3600
+ I(O, {
3601
3601
  name: i.transitionName,
3602
3602
  appear: ""
3603
3603
  }, {
@@ -3614,7 +3614,7 @@ function El(e, t, l, o, n, i) {
3614
3614
  style: i.styles
3615
3615
  }), [
3616
3616
  p(e.$slots, "default")
3617
- ], 16)) : e.detachableVisible ? (s(), b(a, C({
3617
+ ], 16)) : e.detachableVisible ? (s(), m(o, C({
3618
3618
  key: 1,
3619
3619
  class: "w-menu",
3620
3620
  ref: "detachable"
@@ -3653,7 +3653,7 @@ function El(e, t, l, o, n, i) {
3653
3653
  ]),
3654
3654
  _: 3
3655
3655
  }, 8, ["name"]),
3656
- l.overlay ? (s(), b(r, C({
3656
+ l.overlay ? (s(), m(n, C({
3657
3657
  key: 0,
3658
3658
  ref: "overlay",
3659
3659
  "model-value": e.detachableVisible,
@@ -3665,9 +3665,9 @@ function El(e, t, l, o, n, i) {
3665
3665
  }), null, 16, ["model-value", "persistent", "class", "z-index"])) : c("", !0)
3666
3666
  ], 64);
3667
3667
  }
3668
- const Ml = {
3668
+ const Wl = {
3669
3669
  name: "w-menu",
3670
- mixins: [ye],
3670
+ mixins: [we],
3671
3671
  inheritAttrs: !1,
3672
3672
  props: {
3673
3673
  modelValue: {},
@@ -3723,17 +3723,17 @@ const Ml = {
3723
3723
  return this.minWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.minWidth) ? this.minWidth : this.minWidth ? `${this.minWidth}px` : 0;
3724
3724
  },
3725
3725
  menuClasses() {
3726
- return N(this.menuClass);
3726
+ return A(this.menuClass);
3727
3727
  },
3728
3728
  titleClasses() {
3729
- return N(this.titleClass);
3729
+ return A(this.titleClass);
3730
3730
  },
3731
3731
  contentClasses() {
3732
- return N(this.contentClass);
3732
+ return A(this.contentClass);
3733
3733
  },
3734
3734
  overlayClasses() {
3735
3735
  return {
3736
- ...N(this.overlayClass),
3736
+ ...A(this.overlayClass),
3737
3737
  "w-overlay--no-pointer-event": this.showOnHover
3738
3738
  };
3739
3739
  },
@@ -3788,22 +3788,22 @@ const Ml = {
3788
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));
3789
3789
  }
3790
3790
  }
3791
- }, Al = /* @__PURE__ */ v(Ml, [["render", El]]);
3792
- function Nl(e, t, l, o, n, i) {
3793
- const a = $("w-alert");
3794
- return s(), b(P, {
3791
+ }, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
3792
+ function Nl(e, t, l, a, r, i) {
3793
+ const o = $("w-alert");
3794
+ return s(), m(O, {
3795
3795
  name: i.transitionName,
3796
3796
  appear: ""
3797
3797
  }, {
3798
3798
  default: g(() => [
3799
- n.show ? (s(), u("div", {
3799
+ r.show ? (s(), u("div", {
3800
3800
  key: 0,
3801
3801
  class: f(["w-notification", i.classes]),
3802
- style: L(i.styles)
3802
+ style: R(i.styles)
3803
3803
  }, [
3804
- I(a, C(i.alertProps, {
3804
+ I(o, C(i.alertProps, {
3805
3805
  class: i.alertClasses,
3806
- "onUpdate:modelValue": t[0] || (t[0] = (r) => {
3806
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => {
3807
3807
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
3808
3808
  })
3809
3809
  }), {
@@ -3817,7 +3817,7 @@ function Nl(e, t, l, o, n, i) {
3817
3817
  _: 3
3818
3818
  }, 8, ["name"]);
3819
3819
  }
3820
- const Wl = {
3820
+ const Kl = {
3821
3821
  name: "w-notification",
3822
3822
  props: {
3823
3823
  modelValue: { default: !0 },
@@ -3937,28 +3937,28 @@ const Wl = {
3937
3937
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
3938
3938
  }
3939
3939
  }
3940
- }, Kl = /* @__PURE__ */ v(Wl, [["render", Nl]]);
3941
- function Dl(e, t, l, o, n, i) {
3942
- const a = fe("focus");
3943
- return s(), b(P, {
3940
+ }, Hl = /* @__PURE__ */ v(Kl, [["render", Nl]]);
3941
+ function Dl(e, t, l, a, r, i) {
3942
+ const o = me("focus");
3943
+ return s(), m(O, {
3944
3944
  name: "fade",
3945
3945
  appear: "",
3946
3946
  onAfterLeave: i.onClose
3947
3947
  }, {
3948
3948
  default: g(() => [
3949
- l.modelValue ? D((s(), u("div", {
3949
+ l.modelValue ? N((s(), u("div", {
3950
3950
  key: 0,
3951
3951
  class: f(["w-overlay", i.classes]),
3952
3952
  ref: "overlay",
3953
- style: L(l.modelValue && i.styles || null),
3954
- onKeydown: t[0] || (t[0] = M(E((...r) => i.onClick && i.onClick(...r), ["stop"]), ["escape"])),
3955
- onClick: t[1] || (t[1] = (...r) => i.onClick && i.onClick(...r)),
3953
+ style: R(l.modelValue && i.styles || null),
3954
+ onKeydown: t[0] || (t[0] = E(M((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
3955
+ onClick: t[1] || (t[1] = (...n) => i.onClick && i.onClick(...n)),
3956
3956
  tabindex: "0"
3957
3957
  }, [
3958
3958
  p(e.$slots, "default")
3959
3959
  ], 38)), [
3960
- [ge, e.showOverlay],
3961
- [a]
3960
+ [oe, e.showOverlay],
3961
+ [o]
3962
3962
  ]) : c("", !0)
3963
3963
  ]),
3964
3964
  _: 3
@@ -4018,20 +4018,20 @@ const Fl = {
4018
4018
  e && (this.showOverlay = !0);
4019
4019
  }
4020
4020
  }
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);
4021
+ }, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = { class: "w-parallax" };
4022
+ function ql(e, t, l, a, r, i) {
4023
+ return s(), u("div", Ul);
4024
4024
  }
4025
- const ql = {
4025
+ const Xl = {
4026
4026
  name: "w-parallax",
4027
4027
  props: {},
4028
4028
  emits: [],
4029
4029
  data: () => ({})
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) {
4030
+ }, Yl = /* @__PURE__ */ v(Xl, [["render", ql]]), Gl = ["viewBox"], Jl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Ql = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4031
+ function Zl(e, t, l, a, r, i) {
4032
4032
  return s(), u("div", {
4033
4033
  class: f(["w-progress", i.classes]),
4034
- style: L(i.styles)
4034
+ style: R(i.styles)
4035
4035
  }, [
4036
4036
  l.circle ? (s(), u("svg", {
4037
4037
  key: 1,
@@ -4046,7 +4046,7 @@ function Ql(e, t, l, o, n, i) {
4046
4046
  fill: "transparent",
4047
4047
  "stroke-dasharray": e.circleCircumference,
4048
4048
  "stroke-width": l.stroke
4049
- }, null, 10, Yl)) : c("", !0),
4049
+ }, null, 10, Jl)) : c("", !0),
4050
4050
  w("circle", {
4051
4051
  class: "w-progress__progress",
4052
4052
  cx: i.circleCenter,
@@ -4056,24 +4056,24 @@ function Ql(e, t, l, o, n, i) {
4056
4056
  "stroke-width": l.stroke,
4057
4057
  "stroke-linecap": l.roundCap && "round",
4058
4058
  "stroke-dasharray": e.circleCircumference,
4059
- style: L(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
4060
- }, null, 12, Jl)
4061
- ], 8, Xl)) : (s(), u("div", {
4059
+ style: R(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
4060
+ }, null, 12, Ql)
4061
+ ], 8, Gl)) : (s(), u("div", {
4062
4062
  key: 0,
4063
4063
  class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
4064
- style: L(`width: ${i.progressValue}%`)
4064
+ style: R(`width: ${i.progressValue}%`)
4065
4065
  }, null, 6)),
4066
4066
  l.label || e.$slots.default ? (s(), u("div", {
4067
4067
  key: 2,
4068
4068
  class: f(["w-progress__label", l.labelColor || !1])
4069
4069
  }, [
4070
4070
  p(e.$slots, "default", {}, () => [
4071
- B(k(Math.round(i.progressValue)) + k(l.circle ? "" : "%"), 1)
4071
+ S(_(Math.round(i.progressValue)) + _(l.circle ? "" : "%"), 1)
4072
4072
  ])
4073
4073
  ], 2)) : c("", !0)
4074
4074
  ], 6);
4075
4075
  }
4076
- const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
4076
+ const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4077
4077
  name: "w-progress",
4078
4078
  props: {
4079
4079
  modelValue: { type: [Number, String, Boolean], default: -1 },
@@ -4098,16 +4098,16 @@ const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
4098
4098
  },
4099
4099
  emits: [],
4100
4100
  data: () => ({
4101
- circleSize: Q,
4102
- circleRadius: Zl,
4103
- circleCircumference: ei
4101
+ circleSize: J,
4102
+ circleRadius: ei,
4103
+ circleCircumference: ti
4104
4104
  }),
4105
4105
  computed: {
4106
4106
  progressValue() {
4107
4107
  return parseFloat(this.modelValue);
4108
4108
  },
4109
4109
  circleCenter() {
4110
- return Q + this.stroke;
4110
+ return J + this.stroke;
4111
4111
  },
4112
4112
  forcedSize() {
4113
4113
  return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
@@ -4139,12 +4139,12 @@ const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
4139
4139
  };
4140
4140
  }
4141
4141
  }
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 }, {
4142
+ }, 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"];
4143
+ function di(e, t, l, a, r, i) {
4144
+ return s(), m(V(e.formRegister && !i.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4145
4145
  valid: e.valid,
4146
- "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4147
- onReset: t[4] || (t[4] = (a) => {
4146
+ "onUpdate:valid": t[3] || (t[3] = (o) => e.valid = o),
4147
+ onReset: t[4] || (t[4] = (o) => {
4148
4148
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4149
4149
  }),
4150
4150
  class: i.classes
@@ -4159,54 +4159,54 @@ function ri(e, t, l, o, n, i) {
4159
4159
  disabled: e.isDisabled || null,
4160
4160
  required: e.required || null,
4161
4161
  tabindex: e.tabindex || null,
4162
- onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4163
- onChange: t[1] || (t[1] = (a) => i.onInput(a)),
4162
+ onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
4163
+ onChange: t[1] || (t[1] = (o) => i.onInput(o)),
4164
4164
  "aria-checked": e.inputValue || "false",
4165
4165
  role: "radio"
4166
- }, null, 40, ii),
4167
- i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
4166
+ }, null, 40, si),
4167
+ i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
4168
4168
  e.$slots.default ? (s(), u("label", {
4169
4169
  key: 0,
4170
4170
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4171
4171
  for: `w-radio--${e._.uid}`
4172
4172
  }, [
4173
4173
  p(e.$slots, "default", {}, () => [
4174
- B(k(l.label), 1)
4174
+ S(_(l.label), 1)
4175
4175
  ])
4176
- ], 10, si)) : l.label ? (s(), u("label", {
4176
+ ], 10, ai)) : l.label ? (s(), u("label", {
4177
4177
  key: 1,
4178
4178
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4179
4179
  for: `w-radio--${e._.uid}`,
4180
4180
  innerHTML: l.label
4181
- }, null, 10, ai)) : c("", !0)
4181
+ }, null, 10, oi)) : c("", !0)
4182
4182
  ], 64)) : c("", !0),
4183
4183
  w("div", {
4184
4184
  class: f(["w-radio__input", this.color]),
4185
- onClick: t[2] || (t[2] = (a) => {
4185
+ onClick: t[2] || (t[2] = (o) => {
4186
4186
  e.$refs.input.focus(), e.$refs.input.click();
4187
4187
  })
4188
4188
  }, null, 2),
4189
- i.hasLabel && !l.labelOnLeft ? (s(), u(_, { key: 1 }, [
4189
+ i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
4190
4190
  e.$slots.default ? (s(), u("label", {
4191
4191
  key: 0,
4192
4192
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4193
4193
  for: `w-radio--${e._.uid}`
4194
4194
  }, [
4195
4195
  p(e.$slots, "default", {}, () => [
4196
- B(k(l.label), 1)
4196
+ S(_(l.label), 1)
4197
4197
  ])
4198
- ], 10, oi)) : l.label ? (s(), u("label", {
4198
+ ], 10, ni)) : l.label ? (s(), u("label", {
4199
4199
  key: 1,
4200
4200
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4201
4201
  for: `w-radio--${e._.uid}`,
4202
4202
  innerHTML: l.label
4203
- }, null, 10, ni)) : c("", !0)
4203
+ }, null, 10, ri)) : c("", !0)
4204
4204
  ], 64)) : c("", !0)
4205
4205
  ]),
4206
4206
  _: 3
4207
4207
  }, 16, ["valid", "class"]);
4208
4208
  }
4209
- const di = {
4209
+ const ui = {
4210
4210
  name: "w-radio",
4211
4211
  mixins: [z],
4212
4212
  inject: { wRadios: { default: null } },
@@ -4265,13 +4265,13 @@ const di = {
4265
4265
  this.toggleFromOutside();
4266
4266
  }
4267
4267
  }
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 }, {
4268
+ }, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
4269
+ function pi(e, t, l, a, r, i) {
4270
+ const o = $("w-radio");
4271
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4272
4272
  valid: e.valid,
4273
- "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4274
- onReset: t[2] || (t[2] = (r) => {
4273
+ "onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
4274
+ onReset: t[2] || (t[2] = (n) => {
4275
4275
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4276
4276
  }),
4277
4277
  column: !l.inline,
@@ -4279,13 +4279,13 @@ function ci(e, t, l, o, n, i) {
4279
4279
  class: i.classes
4280
4280
  }), {
4281
4281
  default: g(() => [
4282
- (s(!0), u(_, null, x(i.radioItems, (r, d) => (s(), b(a, C({
4282
+ (s(!0), u(k, null, L(i.radioItems, (n, d) => (s(), m(o, C({
4283
4283
  key: d,
4284
- "model-value": r.value === l.modelValue,
4285
- "onUpdate:modelValue": (h) => i.onInput(r),
4284
+ "model-value": n.value === l.modelValue,
4285
+ "onUpdate:modelValue": (h) => i.onInput(n),
4286
4286
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
4287
4287
  name: e.inputName
4288
- }, { label: r.label, color: r.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
4288
+ }, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
4289
4289
  disabled: e.isDisabled || null,
4290
4290
  readonly: e.isReadonly || null,
4291
4291
  class: { mt1: !l.inline && d }
@@ -4293,14 +4293,14 @@ function ci(e, t, l, o, n, i) {
4293
4293
  default: g(() => [
4294
4294
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4295
4295
  key: 0,
4296
- item: i.getOriginalItem(r),
4296
+ item: i.getOriginalItem(n),
4297
4297
  index: d + 1,
4298
- checked: r.value === l.modelValue,
4299
- innerHTML: r.label
4300
- }) : r.label ? (s(), u("div", {
4298
+ checked: n.value === l.modelValue,
4299
+ innerHTML: n.label
4300
+ }) : n.label ? (s(), u("div", {
4301
4301
  key: 1,
4302
- innerHTML: r.label
4303
- }, null, 8, hi)) : c("", !0)
4302
+ innerHTML: n.label
4303
+ }, null, 8, ci)) : c("", !0)
4304
4304
  ]),
4305
4305
  _: 2
4306
4306
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -4308,7 +4308,7 @@ function ci(e, t, l, o, n, i) {
4308
4308
  _: 3
4309
4309
  }, 16, ["valid", "column", "wrap", "class"]);
4310
4310
  }
4311
- const pi = {
4311
+ const fi = {
4312
4312
  name: "w-radios",
4313
4313
  mixins: [z],
4314
4314
  props: {
@@ -4354,13 +4354,13 @@ const pi = {
4354
4354
  return this.items[e._index];
4355
4355
  }
4356
4356
  }
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 }, {
4357
+ }, gi = /* @__PURE__ */ v(fi, [["render", pi]]), mi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
4358
+ function yi(e, t, l, a, r, i) {
4359
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4360
4360
  valid: e.valid,
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);
4361
+ "onUpdate:valid": t[4] || (t[4] = (o) => e.valid = o),
4362
+ onReset: t[5] || (t[5] = (o) => {
4363
+ e.$emit("update:modelValue", r.rating = null), e.$emit("input", null);
4364
4364
  }),
4365
4365
  class: i.classes
4366
4366
  }), {
@@ -4369,39 +4369,39 @@ function bi(e, t, l, o, n, i) {
4369
4369
  id: e.inputName,
4370
4370
  name: e.inputName,
4371
4371
  type: "hidden",
4372
- value: n.rating
4373
- }, null, 8, gi),
4374
- (s(!0), u(_, null, x(l.max, (a) => (s(), u(_, { key: a }, [
4372
+ value: r.rating
4373
+ }, null, 8, mi),
4374
+ (s(!0), u(k, null, L(l.max, (o) => (s(), u(k, { key: o }, [
4375
4375
  e.$slots.item ? p(e.$slots, "item", {
4376
4376
  key: 0,
4377
- index: a + 1
4377
+ index: o + 1
4378
4378
  }) : c("", !0),
4379
4379
  w("button", {
4380
- class: f(["w-rating__button", i.buttonClasses(a)]),
4380
+ class: f(["w-rating__button", i.buttonClasses(o)]),
4381
4381
  disabled: e.isDisabled || e.isReadonly,
4382
- onMouseenter: (r) => n.hover = a,
4383
- onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
4384
- onClick: (r) => i.onButtonClick(a),
4385
- onFocus: t[1] || (t[1] = (...r) => i.onFocus && i.onFocus(...r)),
4386
- onBlur: t[2] || (t[2] = (...r) => i.onBlur && i.onBlur(...r)),
4387
- onKeydown: t[3] || (t[3] = (...r) => i.onKeydown && i.onKeydown(...r)),
4382
+ onMouseenter: (n) => r.hover = o,
4383
+ onMouseleave: t[0] || (t[0] = (n) => r.hover = 0),
4384
+ onClick: (n) => i.onButtonClick(o),
4385
+ onFocus: t[1] || (t[1] = (...n) => i.onFocus && i.onFocus(...n)),
4386
+ onBlur: t[2] || (t[2] = (...n) => i.onBlur && i.onBlur(...n)),
4387
+ onKeydown: t[3] || (t[3] = (...n) => i.onKeydown && i.onKeydown(...n)),
4388
4388
  type: "button",
4389
- tabindex: a === 1 ? 0 : -1
4389
+ tabindex: o === 1 ? 0 : -1
4390
4390
  }, [
4391
- a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4391
+ o - 1 === ~~r.rating && r.rating - ~~r.rating ? (s(), u("i", {
4392
4392
  key: 0,
4393
4393
  class: f(["w-icon", `${l.icon} ${l.color}`]),
4394
4394
  role: "icon",
4395
4395
  "aria-hidden": "true",
4396
- style: L(i.halfStarStyle)
4396
+ style: R(i.halfStarStyle)
4397
4397
  }, null, 6)) : c("", !0)
4398
- ], 42, mi)
4398
+ ], 42, bi)
4399
4399
  ], 64))), 128))
4400
4400
  ]),
4401
4401
  _: 3
4402
4402
  }, 16, ["valid", "class"]);
4403
4403
  }
4404
- const yi = {
4404
+ const wi = {
4405
4405
  name: "w-rating",
4406
4406
  mixins: [z],
4407
4407
  props: {
@@ -4491,22 +4491,153 @@ const yi = {
4491
4491
  this.rating = parseFloat(e);
4492
4492
  }
4493
4493
  }
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);
4494
+ }, vi = /* @__PURE__ */ v(wi, [["render", yi]]);
4495
+ function ki(e, t, l, a, r, i) {
4496
+ return s(), u(k, null, [
4497
+ w("div", C({
4498
+ class: ["w-scrollable", i.scrollableClasses],
4499
+ ref: "scrollable",
4500
+ onMouseenter: t[0] || (t[0] = (...o) => i.onMouseEnter && i.onMouseEnter(...o)),
4501
+ onMouseleave: t[1] || (t[1] = (...o) => i.onMouseLeave && i.onMouseLeave(...o)),
4502
+ onMousewheel: t[2] || (t[2] = (...o) => i.onMouseWheel && i.onMouseWheel(...o))
4503
+ }, e.$attrs, { style: i.scrollableStyles }), [
4504
+ p(e.$slots, "default")
4505
+ ], 16),
4506
+ w("div", {
4507
+ class: f(["w-scrollbar", i.scrollbarClasses]),
4508
+ ref: "track",
4509
+ onMousedown: t[3] || (t[3] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o))
4510
+ }, [
4511
+ w("div", {
4512
+ class: "w-scrollbar__thumb",
4513
+ ref: "thumb",
4514
+ style: R(i.thumbStyles)
4515
+ }, null, 4)
4516
+ ], 34)
4517
+ ], 64);
4497
4518
  }
4498
4519
  const _i = {
4499
- name: "w-scrollbar",
4500
- props: {},
4520
+ h: {
4521
+ horizOrVert: "horizontal",
4522
+ topOrLeft: "left",
4523
+ widthOrHeight: "width",
4524
+ offsetWidthOrHeight: "offsetWidth",
4525
+ maxWidthOrHeight: "max-width",
4526
+ scrollWidthOrHeight: "scrollWidth",
4527
+ clientXorY: "clientX",
4528
+ deltaXorY: "deltaX",
4529
+ scrollTopOrLeft: "scrollLeft"
4530
+ },
4531
+ v: {
4532
+ horizOrVert: "vertical",
4533
+ topOrLeft: "top",
4534
+ widthOrHeight: "height",
4535
+ offsetWidthOrHeight: "offsetHeight",
4536
+ maxWidthOrHeight: "max-height",
4537
+ scrollWidthOrHeight: "scrollHeight",
4538
+ clientXorY: "clientY",
4539
+ deltaXorY: "deltaY",
4540
+ scrollTopOrLeft: "scrollTop"
4541
+ }
4542
+ }, Ci = {
4543
+ name: "w-scrollable",
4544
+ props: {
4545
+ color: { type: String, default: "primary" },
4546
+ bgColor: { type: String },
4547
+ width: { type: [Number, String] },
4548
+ height: { type: [Number, String] }
4549
+ },
4501
4550
  emits: [],
4502
- data: () => ({})
4503
- }, Ci = /* @__PURE__ */ v(_i, [["render", ki]]), Bi = ["for"], Si = ["aria-expanded", "aria-owns", "aria-activedescendant"], $i = {
4551
+ data: () => ({
4552
+ mounted: !1,
4553
+ scrollable: {
4554
+ top: null,
4555
+ left: null,
4556
+ hovered: !1
4557
+ },
4558
+ scrollValuePercent: 0
4559
+ }),
4560
+ computed: {
4561
+ isHorizontal() {
4562
+ var e, t, l, a;
4563
+ return this.mounted ? (console.log("\u{1F482}\u200D\u2642\uFE0F", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((l = this.$refs.scrollable) == null ? void 0 : l.scrollWidth) > ((a = this.$refs.scrollable) == null ? void 0 : a.offsetWidth)) : !1;
4564
+ },
4565
+ m() {
4566
+ return _i[this.isHorizontal ? "h" : "v"];
4567
+ },
4568
+ scrollableClasses() {
4569
+ return {
4570
+ [`w-scrollable--${this.m.horizOrVert}`]: !0
4571
+ };
4572
+ },
4573
+ scrollbarClasses() {
4574
+ return {
4575
+ [`w-scrollbar--${this.m.horizOrVert}`]: !0
4576
+ };
4577
+ },
4578
+ thumbSizePercent() {
4579
+ var t, l;
4580
+ return this.mounted ? (console.log("\u{1F612}", this[this.m.widthOrHeight], this.$refs.scrollable[[this.m.offsetWidthOrHeight]]), ((t = this[this.m.widthOrHeight]) != null ? t : this.$refs.scrollable[[this.m.offsetWidthOrHeight]]) * 100 / ((l = this.$refs.scrollable) == null ? void 0 : l[this.m.scrollWidthOrHeight]) || 0) : 0;
4581
+ },
4582
+ scrollableStyles() {
4583
+ return {
4584
+ [this.m.maxWidthOrHeight]: `${this[this.m.widthOrHeight]}px`
4585
+ };
4586
+ },
4587
+ thumbStyles() {
4588
+ let e = this.scrollValuePercent;
4589
+ return e = Math.max(0, Math.min(e, 100 - this.thumbSizePercent)), {
4590
+ [this.m.widthOrHeight]: `${this.thumbSizePercent}%`,
4591
+ [this.m.topOrLeft]: `${e}%`
4592
+ };
4593
+ }
4594
+ },
4595
+ methods: {
4596
+ onTrackMouseDown(e) {
4597
+ if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
4598
+ return;
4599
+ const { top: t, left: l, width: a, height: r } = this.$refs.track.getBoundingClientRect();
4600
+ this.isHorizontal ? (this.$refs.track.width = a, this.$refs.track.left = l) : (this.$refs.track.height = r, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
4601
+ },
4602
+ onDrag(e) {
4603
+ this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
4604
+ },
4605
+ onMouseUp(e) {
4606
+ this.dragging = !1, document.removeEventListener(e.type === "touchend" ? "touchmove" : "mousemove", this.onDrag), this.$refs.thumb && this.$refs.thumb.focus();
4607
+ },
4608
+ onMouseEnter() {
4609
+ this.scrollable.hovered = !0;
4610
+ },
4611
+ onMouseLeave() {
4612
+ this.scrollable.hovered = !1;
4613
+ },
4614
+ onMouseWheel(e) {
4615
+ !this.scrollable.hovered || this.scrollValuePercent <= 0 && e[this.m.deltaXorY] < 0 || this.scrollValuePercent >= 100 - this.thumbSizePercent && e[this.m.deltaXorY] > 0 || (e.preventDefault(), this.scrollValuePercent += e[this.m.deltaXorY] * 0.05, this.scrollValuePercent = Math.max(0, Math.min(this.scrollValuePercent, 100)), this.scroll());
4616
+ },
4617
+ computeScroll(e) {
4618
+ const { top: t, left: l, width: a, height: r } = this.$refs.scrollable.getBoundingClientRect(), i = this.isHorizontal ? l : t, o = this.isHorizontal ? a : r;
4619
+ this.scrollValuePercent = Math.max(0, Math.min((e - i) / o * 100, 100));
4620
+ },
4621
+ scroll() {
4622
+ var e;
4623
+ this.$refs.scrollable[this.m.scrollTopOrLeft] = this.scrollValuePercent * ((e = this.$refs.scrollable) == null ? void 0 : e[this.m.scrollWidthOrHeight]) / 100, this.updateThumbPosition();
4624
+ },
4625
+ updateThumbPosition() {
4626
+ this.$refs.thumb.style[this.m.topOrLeft] = this.scrollValuePercent;
4627
+ }
4628
+ },
4629
+ mounted() {
4630
+ this.mounted = !0;
4631
+ const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
4632
+ this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style[this.m.maxWidthOrHeight] = `${this[this.m.widthOrHeight]}px`;
4633
+ }
4634
+ }, Si = /* @__PURE__ */ v(Ci, [["render", ki]]), Bi = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
4504
4635
  key: 1,
4505
4636
  class: "w-select__selection-slot"
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 }, {
4637
+ }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ti = ["value", "name"], Ri = ["for"], Li = ["for"];
4638
+ function xi(e, t, l, a, r, i) {
4639
+ const o = $("w-icon"), n = $("w-list"), d = $("w-menu");
4640
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
4510
4641
  valid: e.valid,
4511
4642
  "onUpdate:valid": t[9] || (t[9] = (h) => e.valid = h),
4512
4643
  onReset: i.onReset,
@@ -4514,14 +4645,14 @@ function Ti(e, t, l, o, n, i) {
4514
4645
  class: i.classes
4515
4646
  }), {
4516
4647
  default: g(() => [
4517
- l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
4648
+ l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
4518
4649
  e.$slots.default || l.label ? (s(), u("label", {
4519
4650
  key: 0,
4520
4651
  class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
4521
4652
  for: `w-select--${e._.uid}`
4522
4653
  }, [
4523
4654
  p(e.$slots, "default", {}, () => [
4524
- B(k(l.label), 1)
4655
+ S(_(l.label), 1)
4525
4656
  ])
4526
4657
  ], 10, Bi)) : c("", !0)
4527
4658
  ], 64)) : c("", !0),
@@ -4545,18 +4676,18 @@ function Ti(e, t, l, o, n, i) {
4545
4676
  "aria-owns": `w-select-menu--${e._.uid}`,
4546
4677
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
4547
4678
  }, [
4548
- l.innerIconLeft ? (s(), b(a, {
4679
+ l.innerIconLeft ? (s(), m(o, {
4549
4680
  key: 0,
4550
4681
  class: "w-select__icon w-select__icon--inner-left",
4551
4682
  tag: "label",
4552
4683
  onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
4553
4684
  }, {
4554
4685
  default: g(() => [
4555
- B(k(l.innerIconLeft), 1)
4686
+ S(_(l.innerIconLeft), 1)
4556
4687
  ]),
4557
4688
  _: 1
4558
4689
  })) : c("", !0),
4559
- e.$slots.selection ? (s(), u("div", $i, [
4690
+ e.$slots.selection ? (s(), u("div", Vi, [
4560
4691
  p(e.$slots, "selection", {
4561
4692
  item: l.multiple ? e.inputValue : e.inputValue[0]
4562
4693
  })
@@ -4574,39 +4705,39 @@ function Ti(e, t, l, o, n, i) {
4574
4705
  "aria-readonly": "true",
4575
4706
  tabindex: e.tabindex || null,
4576
4707
  innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
4577
- }, null, 42, Vi),
4578
- (s(!0), u(_, null, x(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
4579
- key: S,
4708
+ }, null, 42, Ii),
4709
+ (s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y, B) => (s(), u("input", {
4710
+ key: B,
4580
4711
  type: "hidden",
4581
4712
  value: y.value === void 0 ? "" : y.value.toString(),
4582
4713
  name: e.inputName + (l.multiple ? "[]" : "")
4583
- }, null, 8, Ii))), 128)),
4584
- l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 2 }, [
4714
+ }, null, 8, Ti))), 128)),
4715
+ l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
4585
4716
  e.$slots.default || l.label ? (s(), u("label", {
4586
4717
  key: 0,
4587
4718
  class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses]),
4588
4719
  for: `w-select--${e._.uid}`
4589
4720
  }, [
4590
4721
  p(e.$slots, "default", {}, () => [
4591
- B(k(l.label), 1)
4722
+ S(_(l.label), 1)
4592
4723
  ])
4593
4724
  ], 10, Ri)) : c("", !0)
4594
4725
  ], 64)) : c("", !0),
4595
- l.innerIconRight ? (s(), b(a, {
4726
+ l.innerIconRight ? (s(), m(o, {
4596
4727
  key: 3,
4597
4728
  class: "w-select__icon w-select__icon--inner-right",
4598
4729
  tag: "label",
4599
4730
  onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
4600
4731
  }, {
4601
4732
  default: g(() => [
4602
- B(k(l.innerIconRight), 1)
4733
+ S(_(l.innerIconRight), 1)
4603
4734
  ]),
4604
4735
  _: 1
4605
4736
  })) : c("", !0)
4606
- ], 10, Si)
4737
+ ], 10, $i)
4607
4738
  ]),
4608
4739
  default: g(() => [
4609
- I(r, {
4740
+ I(n, {
4610
4741
  ref: "w-list",
4611
4742
  "model-value": e.inputValue,
4612
4743
  "onUpdate:modelValue": i.onInput,
@@ -4625,23 +4756,23 @@ function Ti(e, t, l, o, n, i) {
4625
4756
  role: "listbox",
4626
4757
  tabindex: "-1"
4627
4758
  }, Z({ _: 2 }, [
4628
- x(l.items.length, (h) => ({
4759
+ L(l.items.length, (h) => ({
4629
4760
  name: `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}`, {
4761
+ fn: g(({ item: y, selected: B, index: b }) => [
4762
+ e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, B, b) ? p(e.$slots, `item.${h}`, {
4632
4763
  key: 0,
4633
4764
  item: y,
4634
- selected: S,
4635
- index: m
4765
+ selected: B,
4766
+ index: b
4636
4767
  }, () => [
4637
- B(k(y[l.itemLabelKey]), 1)
4768
+ S(_(y[l.itemLabelKey]), 1)
4638
4769
  ]) : p(e.$slots, "item", {
4639
4770
  key: 1,
4640
4771
  item: y,
4641
- selected: S,
4642
- index: m
4772
+ selected: B,
4773
+ index: b
4643
4774
  }, () => [
4644
- B(k(y[l.itemLabelKey]), 1)
4775
+ S(_(y[l.itemLabelKey]), 1)
4645
4776
  ])
4646
4777
  ])
4647
4778
  }))
@@ -4649,14 +4780,14 @@ function Ti(e, t, l, o, n, i) {
4649
4780
  ]),
4650
4781
  _: 3
4651
4782
  }, 16, ["modelValue", "menu-class", "append-to"]),
4652
- l.labelPosition === "right" ? (s(), u(_, { key: 1 }, [
4783
+ l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
4653
4784
  e.$slots.default || l.label ? (s(), u("label", {
4654
4785
  key: 0,
4655
4786
  class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
4656
4787
  for: `w-select--${e._.uid}`
4657
4788
  }, [
4658
4789
  p(e.$slots, "default", {}, () => [
4659
- B(k(l.label), 1)
4790
+ S(_(l.label), 1)
4660
4791
  ])
4661
4792
  ], 10, Li)) : c("", !0)
4662
4793
  ], 64)) : c("", !0)
@@ -4664,7 +4795,7 @@ function Ti(e, t, l, o, n, i) {
4664
4795
  _: 3
4665
4796
  }, 16, ["valid", "onReset", "wrap", "class"]);
4666
4797
  }
4667
- const xi = {
4798
+ const Oi = {
4668
4799
  name: "w-select",
4669
4800
  mixins: [z],
4670
4801
  props: {
@@ -4781,8 +4912,8 @@ const xi = {
4781
4912
  if (t === void 0)
4782
4913
  t = e.keyCode === 38 ? l.length - 1 : 0;
4783
4914
  else {
4784
- const o = e.keyCode === 38 ? -1 : 1;
4785
- t = (t + l.length + o) % l.length;
4915
+ const a = e.keyCode === 38 ? -1 : 1;
4916
+ t = (t + l.length + a) % l.length;
4786
4917
  }
4787
4918
  this.onInput(l[t]);
4788
4919
  }
@@ -4804,8 +4935,8 @@ const xi = {
4804
4935
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
4805
4936
  const t = this.selectItems.map((l) => l.value);
4806
4937
  return e.map((l) => {
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)];
4938
+ let a = l;
4939
+ 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)];
4809
4940
  }).filter((l) => l !== void 0);
4810
4941
  },
4811
4942
  openMenu() {
@@ -4830,15 +4961,15 @@ const xi = {
4830
4961
  this.inputValue = this.checkSelection(this.modelValue);
4831
4962
  }
4832
4963
  }
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 = {
4964
+ }, Pi = /* @__PURE__ */ v(Oi, [["render", xi]]), zi = ["for"], Mi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Wi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ai = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ni = ["for"], Ki = { key: 0 }, Hi = {
4834
4965
  key: 0,
4835
4966
  class: "w-slider__step-labels"
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 }, {
4967
+ }, Di = ["onClick"], Fi = ["for"], ji = ["for", "innerHTML"];
4968
+ function Ui(e, t, l, a, r, i) {
4969
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
4839
4970
  valid: e.valid,
4840
- "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
4841
- onReset: t[9] || (t[9] = (a) => {
4971
+ "onUpdate:valid": t[8] || (t[8] = (o) => e.valid = o),
4972
+ onReset: t[9] || (t[9] = (o) => {
4842
4973
  e.rangeValuePercent = 0, i.updateRangeValueScaled();
4843
4974
  }),
4844
4975
  wrap: e.formRegister || null,
@@ -4851,18 +4982,18 @@ function ji(e, t, l, o, n, i) {
4851
4982
  for: `button--${e._.uid}`
4852
4983
  }, [
4853
4984
  p(e.$slots, "label-left")
4854
- ], 10, Oi)) : l.labelLeft ? (s(), u("label", {
4985
+ ], 10, zi)) : l.labelLeft ? (s(), u("label", {
4855
4986
  key: 1,
4856
4987
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
4857
4988
  for: `button--${e._.uid}`,
4858
4989
  innerHTML: l.labelLeft
4859
- }, null, 10, zi)) : c("", !0),
4990
+ }, null, 10, Mi)) : c("", !0),
4860
4991
  w("div", Ei, [
4861
4992
  w("div", {
4862
4993
  class: f(["w-slider__track", i.trackClasses]),
4863
4994
  ref: "track",
4864
- onMousedown: t[4] || (t[4] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
4865
- onTouchstart: t[5] || (t[5] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
4995
+ onMousedown: t[4] || (t[4] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
4996
+ onTouchstart: t[5] || (t[5] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
4866
4997
  role: "slider",
4867
4998
  "aria-label": "Slider",
4868
4999
  "aria-valuemin": i.minVal,
@@ -4873,11 +5004,11 @@ function ji(e, t, l, o, n, i) {
4873
5004
  }, [
4874
5005
  w("div", {
4875
5006
  class: f(["w-slider__range", i.rangeClasses]),
4876
- style: L(i.rangeStyles)
5007
+ style: R(i.rangeStyles)
4877
5008
  }, null, 6),
4878
5009
  w("div", {
4879
5010
  class: "w-slider__thumb",
4880
- style: L(i.thumbStyles)
5011
+ style: R(i.thumbStyles)
4881
5012
  }, [
4882
5013
  w("button", {
4883
5014
  class: f(["w-slider__thumb-button", [l.color]]),
@@ -4890,11 +5021,11 @@ function ji(e, t, l, o, n, i) {
4890
5021
  "aria-readonly": e.isReadonly ? "true" : "false",
4891
5022
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
4892
5023
  onKeydown: [
4893
- t[0] || (t[0] = M((a) => i.onKeyDown(a, -1), ["left"])),
4894
- t[1] || (t[1] = M((a) => i.onKeyDown(a, 1), ["right"]))
5024
+ t[0] || (t[0] = E((o) => i.onKeyDown(o, -1), ["left"])),
5025
+ t[1] || (t[1] = E((o) => i.onKeyDown(o, 1), ["right"]))
4895
5026
  ],
4896
- onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
4897
- onClick: t[3] || (t[3] = E(() => {
5027
+ onFocus: t[2] || (t[2] = (o) => e.$emit("focus", o)),
5028
+ onClick: t[3] || (t[3] = M(() => {
4898
5029
  }, ["prevent"]))
4899
5030
  }, null, 42, Ai),
4900
5031
  l.thumbLabel ? (s(), u("label", {
@@ -4902,36 +5033,36 @@ function ji(e, t, l, o, n, i) {
4902
5033
  class: f(["w-slider__thumb-label", i.thumbClasses]),
4903
5034
  for: `button--${e._.uid}`
4904
5035
  }, [
4905
- l.thumbLabel === "droplet" ? (s(), u("div", Wi, [
5036
+ l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
4906
5037
  p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
4907
- B(k(~~e.rangeValueScaled), 1)
5038
+ S(_(~~e.rangeValueScaled), 1)
4908
5039
  ])
4909
5040
  ])) : p(e.$slots, "label", {
4910
5041
  key: 1,
4911
5042
  value: e.rangeValueScaled
4912
5043
  }, () => [
4913
- B(k(~~e.rangeValueScaled), 1)
5044
+ S(_(~~e.rangeValueScaled), 1)
4914
5045
  ])
4915
5046
  ], 10, Ni)) : c("", !0)
4916
5047
  ], 4)
4917
- ], 42, Mi),
4918
- l.stepLabels && l.step ? (s(), u("div", Ki, [
5048
+ ], 42, Wi),
5049
+ l.stepLabels && l.step ? (s(), u("div", Hi, [
4919
5050
  w("div", {
4920
5051
  class: "w-slider__step-label",
4921
- onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
4922
- }, k(this.minVal), 1),
4923
- (s(!0), u(_, null, x(~~i.numberOfSteps, (a) => (s(), u("div", {
5052
+ onClick: t[6] || (t[6] = (o) => i.onStepLabelClick(0))
5053
+ }, _(this.minVal), 1),
5054
+ (s(!0), u(k, null, L(~~i.numberOfSteps, (o) => (s(), u("div", {
4924
5055
  class: "w-slider__step-label",
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)),
5056
+ key: o,
5057
+ onClick: (n) => i.onStepLabelClick(o * (100 / i.numberOfSteps)),
5058
+ style: R(`left: ${o * (100 / i.numberOfSteps)}%`)
5059
+ }, _(i.percentToScaled(o * (100 / i.numberOfSteps))), 13, Di))), 128)),
4929
5060
  ~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
4930
5061
  key: 0,
4931
5062
  class: "w-slider__step-label",
4932
- onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
5063
+ onClick: t[7] || (t[7] = (o) => i.onStepLabelClick(100)),
4933
5064
  style: { left: "100%" }
4934
- }, k(this.maxVal), 1)) : c("", !0)
5065
+ }, _(this.maxVal), 1)) : c("", !0)
4935
5066
  ])) : c("", !0)
4936
5067
  ]),
4937
5068
  e.$slots["label-right"] ? (s(), u("label", {
@@ -4945,12 +5076,12 @@ function ji(e, t, l, o, n, i) {
4945
5076
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
4946
5077
  for: `button--${e._.uid}`,
4947
5078
  innerHTML: l.labelRight
4948
- }, null, 10, Hi)) : c("", !0)
5079
+ }, null, 10, ji)) : c("", !0)
4949
5080
  ]),
4950
5081
  _: 3
4951
5082
  }, 16, ["valid", "wrap", "class"]);
4952
5083
  }
4953
- const Ui = {
5084
+ const qi = {
4954
5085
  name: "w-slider",
4955
5086
  mixins: [z],
4956
5087
  props: {
@@ -5084,17 +5215,17 @@ const Ui = {
5084
5215
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
5085
5216
  }
5086
5217
  }
5087
- }, qi = /* @__PURE__ */ v(Ui, [["render", ji]]), Gi = { key: 0 };
5088
- function Xi(e, t, l, o, n, i) {
5218
+ }, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]), Yi = { key: 0 };
5219
+ function Gi(e, t, l, a, r, i) {
5089
5220
  return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
5090
5221
  key: 0,
5091
5222
  class: f(["w-spinner", i.classes]),
5092
- style: L(i.styles)
5223
+ style: R(i.styles)
5093
5224
  }, [
5094
- i.isThreeDots ? (s(), u("span", Gi)) : c("", !0)
5225
+ i.isThreeDots ? (s(), u("span", Yi)) : c("", !0)
5095
5226
  ], 6)) : c("", !0);
5096
5227
  }
5097
- const Yi = {
5228
+ const Ji = {
5098
5229
  name: "w-spinner",
5099
5230
  props: {
5100
5231
  modelValue: {},
@@ -5132,13 +5263,13 @@ const Yi = {
5132
5263
  };
5133
5264
  }
5134
5265
  }
5135
- }, Ji = /* @__PURE__ */ v(Yi, [["render", Xi]]);
5136
- function Qi(e, t, l, o, n, i) {
5266
+ }, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
5267
+ function Zi(e, t, l, a, r, i) {
5137
5268
  return s(), u("div", {
5138
5269
  class: f(["w-steps", i.classes])
5139
5270
  }, null, 2);
5140
5271
  }
5141
- const Zi = {
5272
+ const es = {
5142
5273
  name: "w-steps",
5143
5274
  props: {
5144
5275
  dark: { type: Boolean },
@@ -5154,20 +5285,20 @@ const Zi = {
5154
5285
  };
5155
5286
  }
5156
5287
  }
5157
- }, es = /* @__PURE__ */ v(Zi, [["render", Qi]]), ts = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], ls = ["for"], is = {
5288
+ }, ts = /* @__PURE__ */ v(es, [["render", Zi]]), ls = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], is = ["for"], ss = {
5158
5289
  key: 0,
5159
5290
  class: "w-switch__track"
5160
- }, ss = {
5291
+ }, as = {
5161
5292
  key: 1,
5162
5293
  class: "w-switch__thumb"
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 }, {
5294
+ }, os = ["for"];
5295
+ function ns(e, t, l, a, r, i) {
5296
+ const o = $("w-progress");
5297
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5167
5298
  valid: e.valid,
5168
- "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5169
- onReset: t[4] || (t[4] = (r) => {
5170
- e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
5299
+ "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
5300
+ onReset: t[4] || (t[4] = (n) => {
5301
+ e.$emit("update:modelValue", r.isOn = null), e.$emit("input", null);
5171
5302
  }),
5172
5303
  class: i.classes
5173
5304
  }), {
@@ -5177,61 +5308,61 @@ function os(e, t, l, o, n, i) {
5177
5308
  id: `w-switch--${e._.uid}`,
5178
5309
  type: "checkbox",
5179
5310
  name: e.inputName,
5180
- checked: n.isOn,
5311
+ checked: r.isOn,
5181
5312
  disabled: e.isDisabled || e.isReadonly || null,
5182
5313
  readonly: e.isReadonly || null,
5183
5314
  "aria-readonly": e.isReadonly ? "true" : "false",
5184
5315
  required: e.required || null,
5185
5316
  tabindex: e.tabindex || null,
5186
- onChange: t[0] || (t[0] = (r) => i.onInput()),
5187
- onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5188
- "aria-checked": n.isOn || "false",
5317
+ onChange: t[0] || (t[0] = (n) => i.onInput()),
5318
+ onFocus: t[1] || (t[1] = (n) => e.$emit("focus", n)),
5319
+ "aria-checked": r.isOn || "false",
5189
5320
  role: "switch"
5190
- }, null, 40, ts),
5191
- i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
5321
+ }, null, 40, ls),
5322
+ i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
5192
5323
  e.$slots.default || l.label ? (s(), u("label", {
5193
5324
  key: 0,
5194
5325
  class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
5195
5326
  for: `w-switch--${e._.uid}`
5196
5327
  }, [
5197
5328
  p(e.$slots, "default", {}, () => [
5198
- B(k(l.label), 1)
5329
+ S(_(l.label), 1)
5199
5330
  ])
5200
- ], 10, ls)) : c("", !0)
5331
+ ], 10, is)) : c("", !0)
5201
5332
  ], 64)) : c("", !0),
5202
5333
  w("div", C({
5203
5334
  class: "w-switch__input",
5204
- onClick: t[2] || (t[2] = (r) => {
5335
+ onClick: t[2] || (t[2] = (n) => {
5205
5336
  e.$refs.input.focus(), e.$refs.input.click();
5206
5337
  })
5207
- }, A(e.$attrs, !0), { class: i.inputClasses }), [
5208
- e.$slots.track ? (s(), u("div", is, [
5338
+ }, W(e.$attrs, !0), { class: i.inputClasses }), [
5339
+ e.$slots.track ? (s(), u("div", ss, [
5209
5340
  p(e.$slots, "track")
5210
5341
  ])) : c("", !0),
5211
- e.$slots.thumb || l.loading ? (s(), u("div", ss, [
5212
- l.loading ? (s(), b(a, C({
5342
+ e.$slots.thumb || l.loading ? (s(), u("div", as, [
5343
+ l.loading ? (s(), m(o, C({
5213
5344
  key: 0,
5214
5345
  circle: "",
5215
5346
  color: "inherit"
5216
5347
  }, typeof l.loading == "number" && { "model-value": l.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
5217
5348
  ])) : c("", !0)
5218
5349
  ], 16),
5219
- i.hasLabel && !l.labelOnLeft ? (s(), u(_, { key: 1 }, [
5350
+ i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
5220
5351
  e.$slots.default || l.label ? (s(), u("label", {
5221
5352
  key: 0,
5222
5353
  class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
5223
5354
  for: `w-switch--${e._.uid}`
5224
5355
  }, [
5225
5356
  p(e.$slots, "default", {}, () => [
5226
- B(k(l.label), 1)
5357
+ S(_(l.label), 1)
5227
5358
  ])
5228
- ], 10, as)) : c("", !0)
5359
+ ], 10, os)) : c("", !0)
5229
5360
  ], 64)) : c("", !0)
5230
5361
  ]),
5231
5362
  _: 3
5232
5363
  }, 16, ["valid", "class"]);
5233
5364
  }
5234
- const ns = {
5365
+ const rs = {
5235
5366
  name: "w-switch",
5236
5367
  mixins: [z],
5237
5368
  props: {
@@ -5296,23 +5427,27 @@ const ns = {
5296
5427
  this.isOn = e;
5297
5428
  }
5298
5429
  }
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, [
5430
+ }, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
5431
+ function hs(e, t, l, a, r, i) {
5432
+ return s(), u("div", us, [
5302
5433
  p(e.$slots, "default", { item: l.item })
5303
5434
  ]);
5304
5435
  }
5305
- const hs = {
5306
- props: { item: Object }
5307
- }, cs = /* @__PURE__ */ v(hs, [["render", us]]), ps = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], fs = ["innerHTML"], gs = {
5436
+ const cs = {
5437
+ name: "tab-content",
5438
+ props: { item: Object },
5439
+ mounted() {
5440
+ console.log("mounted!", this.item._uid);
5441
+ }
5442
+ }, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], gs = ["innerHTML"], ms = {
5308
5443
  key: 0,
5309
5444
  class: "w-tabs__bar-extra"
5310
- }, ms = {
5445
+ }, bs = {
5311
5446
  key: 0,
5312
5447
  class: "w-tabs__content-wrap"
5313
- }, bs = ["innerHTML"];
5314
- function ys(e, t, l, o, n, i) {
5315
- const a = $("tab-content");
5448
+ }, ys = ["innerHTML"], ws = ["innerHTML"];
5449
+ function vs(e, t, l, a, r, i) {
5450
+ const o = $("tab-content");
5316
5451
  return s(), u("div", {
5317
5452
  class: f(["w-tabs", i.tabsClasses])
5318
5453
  }, [
@@ -5320,87 +5455,128 @@ function ys(e, t, l, o, n, i) {
5320
5455
  class: f(["w-tabs__bar", i.tabsBarClasses]),
5321
5456
  ref: "tabs-bar"
5322
5457
  }, [
5323
- (s(!0), u(_, null, x(i.tabsItems, (r, d) => (s(), u("div", {
5324
- class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
5458
+ (s(!0), u(k, null, L(e.tabs, (n, d) => (s(), u("div", {
5459
+ class: f(["w-tabs__bar-item", i.barItemClasses(n)]),
5325
5460
  key: d,
5326
- onClick: (h) => !r._disabled && i.openTab(r),
5327
- onFocus: (h) => e.$emit("focus", i.getOriginalItem(r)),
5328
- tabindex: !r._disabled && 0,
5329
- onKeypress: M((h) => !r._disabled && i.openTab(r), ["enter"]),
5330
- "aria-selected": r._index === e.activeTabIndex ? "true" : "false",
5461
+ onClick: (h) => !n._disabled && n._uid !== e.activeTabUid && i.openTab(n._uid),
5462
+ onFocus: (h) => e.$emit("focus", i.getOriginalItem(n)),
5463
+ tabindex: !n._disabled && 0,
5464
+ onKeypress: E((h) => !n._disabled && i.openTab(n._uid), ["enter"]),
5465
+ "aria-selected": n._uid === e.activeTabUid ? "true" : "false",
5331
5466
  role: "tab"
5332
5467
  }, [
5333
- e.$slots[`item-title.${r.id || d + 1}`] ? p(e.$slots, `item-title.${r.id || d + 1}`, {
5468
+ e.$slots[`item-title.${n.id || d + 1}`] ? p(e.$slots, `item-title.${n.id || d + 1}`, {
5334
5469
  key: 0,
5335
- item: i.getOriginalItem(r),
5470
+ item: i.getOriginalItem(n),
5336
5471
  index: d + 1,
5337
- active: r._index === e.activeTabIndex
5472
+ active: n._uid === e.activeTabUid
5338
5473
  }) : p(e.$slots, "item-title", {
5339
5474
  key: 1,
5340
- item: i.getOriginalItem(r),
5475
+ item: i.getOriginalItem(n),
5341
5476
  index: d + 1,
5342
- active: r._index === e.activeTabIndex
5477
+ active: n._uid === e.activeTabUid
5343
5478
  }, () => [
5344
5479
  w("div", {
5345
- innerHTML: r[l.itemTitleKey]
5346
- }, null, 8, fs)
5480
+ innerHTML: n[l.itemTitleKey]
5481
+ }, null, 8, gs)
5347
5482
  ])
5348
- ], 42, ps))), 128)),
5349
- e.$slots["tabs-bar-extra"] ? (s(), u("div", gs, [
5483
+ ], 42, fs))), 128)),
5484
+ e.$slots["tabs-bar-extra"] ? (s(), u("div", ms, [
5350
5485
  p(e.$slots, "tabs-bar-extra")
5351
5486
  ])) : c("", !0),
5352
5487
  !l.noSlider && !l.card ? (s(), u("div", {
5353
5488
  key: 1,
5354
5489
  class: f(["w-tabs__slider", l.sliderColor]),
5355
- style: L(i.sliderStyles)
5490
+ style: R(i.sliderStyles)
5356
5491
  }, null, 6)) : c("", !0)
5357
5492
  ], 2),
5358
- i.tabsItems.length ? (s(), u("div", ms, [
5359
- I(P, {
5493
+ e.tabs.length ? (s(), u("div", bs, [
5494
+ l.keepInDom ? (s(), m(ae, {
5495
+ key: 0,
5496
+ name: i.transitionName
5497
+ }, {
5498
+ default: g(() => [
5499
+ (s(!0), u(k, null, L(e.tabs, (n, d) => N((s(), m(o, {
5500
+ key: n._uid,
5501
+ item: n,
5502
+ class: f(l.contentClass)
5503
+ }, {
5504
+ default: g(() => [
5505
+ e.$slots[`item-content.${n._index + 1}`] ? p(e.$slots, `item-content.${n._index + 1}`, {
5506
+ key: 0,
5507
+ item: i.getOriginalItem(n),
5508
+ index: n._index + 1,
5509
+ active: n._index === i.activeTab._index
5510
+ }) : p(e.$slots, "item-content", {
5511
+ key: 1,
5512
+ item: i.getOriginalItem(n),
5513
+ index: n._index + 1,
5514
+ active: n._index === i.activeTab._index
5515
+ }, () => [
5516
+ n[l.itemContentKey] ? (s(), u("div", {
5517
+ key: 0,
5518
+ innerHTML: n[l.itemContentKey]
5519
+ }, null, 8, ys)) : c("", !0)
5520
+ ])
5521
+ ]),
5522
+ _: 2
5523
+ }, 1032, ["item", "class"])), [
5524
+ [oe, n._uid === i.activeTab._uid]
5525
+ ])), 128))
5526
+ ]),
5527
+ _: 3
5528
+ }, 8, ["name"])) : (s(), m(O, {
5529
+ key: 1,
5360
5530
  name: i.transitionName,
5361
5531
  mode: i.transitionMode
5362
5532
  }, {
5363
5533
  default: g(() => [
5364
- (s(), b($e, null, [
5365
- (s(), b(a, {
5366
- key: i.activeTab._index,
5534
+ (s(), m(Ve, {
5535
+ exclude: l.keepAlive ? "" : "tab-content"
5536
+ }, [
5537
+ (s(), m(o, {
5538
+ key: e.activeTabUid,
5367
5539
  item: i.activeTab,
5368
5540
  class: f(l.contentClass)
5369
5541
  }, {
5370
- default: g(({ item: r }) => [
5371
- e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5372
- key: 0,
5373
- item: i.getOriginalItem(r),
5374
- index: r._index + 1,
5375
- active: r._index === i.activeTab._index
5376
- }) : p(e.$slots, "item-content", {
5377
- key: 1,
5378
- item: i.getOriginalItem(r),
5379
- index: r._index + 1,
5380
- active: r._index === i.activeTab._index
5381
- }, () => [
5382
- r[l.itemContentKey] ? (s(), u("div", {
5542
+ default: g(({ item: n }) => [
5543
+ n ? (s(), u(k, { key: 0 }, [
5544
+ e.$slots[`item-content.${n._index + 1}`] ? p(e.$slots, `item-content.${n._index + 1}`, {
5383
5545
  key: 0,
5384
- innerHTML: r[l.itemContentKey]
5385
- }, null, 8, bs)) : c("", !0)
5386
- ])
5546
+ item: i.getOriginalItem(n),
5547
+ index: n._index + 1,
5548
+ active: n._uid === e.activeTabUid
5549
+ }) : p(e.$slots, "item-content", {
5550
+ key: 1,
5551
+ item: i.getOriginalItem(n),
5552
+ index: n._index + 1,
5553
+ active: n._uid === e.activeTabUid
5554
+ }, () => [
5555
+ n[l.itemContentKey] ? (s(), u("div", {
5556
+ key: 0,
5557
+ innerHTML: n[l.itemContentKey]
5558
+ }, null, 8, ws)) : c("", !0)
5559
+ ])
5560
+ ], 64)) : c("", !0)
5387
5561
  ]),
5388
5562
  _: 3
5389
5563
  }, 8, ["item", "class"]))
5390
- ], 1024))
5564
+ ], 1032, ["exclude"]))
5391
5565
  ]),
5392
5566
  _: 3
5393
- }, 8, ["name", "mode"])
5567
+ }, 8, ["name", "mode"]))
5394
5568
  ])) : c("", !0)
5395
5569
  ], 2);
5396
5570
  }
5397
- const ws = {
5571
+ let fe = 0;
5572
+ const ks = {
5398
5573
  name: "w-tabs",
5399
5574
  props: {
5400
5575
  modelValue: { type: [Number, String] },
5401
5576
  color: { type: String },
5402
5577
  bgColor: { type: String },
5403
5578
  items: { type: [Array, Number] },
5579
+ itemIdKey: { type: String, default: "id" },
5404
5580
  itemTitleKey: { type: String, default: "title" },
5405
5581
  itemContentKey: { type: String, default: "content" },
5406
5582
  titleClass: { type: String },
@@ -5415,12 +5591,16 @@ const ws = {
5415
5591
  right: { type: Boolean },
5416
5592
  card: { type: Boolean },
5417
5593
  dark: { type: Boolean },
5418
- light: { type: Boolean }
5594
+ light: { type: Boolean },
5595
+ keepAlive: { type: Boolean, default: !0 },
5596
+ keepInDom: { type: Boolean, default: !1 }
5419
5597
  },
5420
- components: { TabContent: cs },
5598
+ components: { TabContent: ps },
5421
5599
  emits: ["input", "update:modelValue", "focus"],
5422
5600
  data: () => ({
5601
+ tabs: [],
5423
5602
  activeTabEl: null,
5603
+ activeTabUid: null,
5424
5604
  activeTabIndex: 0,
5425
5605
  prevTabIndex: -1,
5426
5606
  slider: {
@@ -5439,15 +5619,11 @@ const ws = {
5439
5619
  direction() {
5440
5620
  return this.activeTab._index < this.prevTabIndex ? "right" : "left";
5441
5621
  },
5442
- tabsItems() {
5443
- return (typeof this.items == "number" ? Array(this.items).fill({}) : this.items).map((t, l) => G({
5444
- ...t,
5445
- _index: l,
5446
- _disabled: !!t.disabled
5447
- }));
5448
- },
5449
5622
  activeTab() {
5450
- return this.tabsItems[this.activeTabIndex] || this.tabsItems[0] || {};
5623
+ return this.tabsByUid[this.activeTabUid] || this.tabs[0] || {};
5624
+ },
5625
+ tabsByUid() {
5626
+ return this.tabs.reduce((e, t) => (e[t._uid] = t) && e, {});
5451
5627
  },
5452
5628
  tabsClasses() {
5453
5629
  return {
@@ -5474,6 +5650,34 @@ const ws = {
5474
5650
  }
5475
5651
  },
5476
5652
  methods: {
5653
+ addTab(e) {
5654
+ var t, l, a;
5655
+ (l = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && l || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
5656
+ _uid: (a = e[this.itemIdKey]) != null ? a : e._uid,
5657
+ _index: this.tabs.length,
5658
+ ...e,
5659
+ _disabled: !!e.disabled
5660
+ });
5661
+ },
5662
+ refreshTabs() {
5663
+ let e = this.items;
5664
+ typeof e == "number" && (e = Array(e).fill().map((t, l) => this.tabs[l] || {})), this.tabs = e.map((t, l) => {
5665
+ var a, r, i;
5666
+ return (r = (a = t[this.itemIdKey]) != null ? a : t._uid) != null && r || (t._uid = +`${this._.uid}${++fe}`), {
5667
+ ...t,
5668
+ _uid: (i = t[this.itemIdKey]) != null ? i : t._uid,
5669
+ _index: l,
5670
+ _disabled: !!t.disabled
5671
+ };
5672
+ });
5673
+ },
5674
+ reopenTheActiveTab() {
5675
+ var t, l, a;
5676
+ if (this.tabs.length === 1)
5677
+ return this.openTab(this.tabs[0]._uid);
5678
+ let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
5679
+ e || (e = (l = this.tabs[this.activeTabIndex]) == null ? void 0 : l._uid), e || (e = (a = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : a._uid), e && this.openTab(e);
5680
+ },
5477
5681
  onResize() {
5478
5682
  this.updateSlider(!1);
5479
5683
  },
@@ -5488,7 +5692,9 @@ const ws = {
5488
5692
  };
5489
5693
  },
5490
5694
  openTab(e) {
5491
- this.prevTabIndex = this.activeTabIndex, this.activeTabIndex = e._index, this.$emit("update:modelValue", e._index), this.$emit("input", e._index), this.noSlider || this.$nextTick(this.updateSlider);
5695
+ this.prevTabIndex = this.activeTabIndex;
5696
+ const t = this.tabsByUid[e];
5697
+ this.activeTabIndex = t._index, this.activeTabUid = t._uid, this.$emit("update:modelValue", t._index), this.$emit("input", t._index), this.noSlider || this.$nextTick(this.updateSlider);
5492
5698
  },
5493
5699
  updateSlider(e = !0) {
5494
5700
  if (e) {
@@ -5496,23 +5702,25 @@ const ws = {
5496
5702
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
5497
5703
  }
5498
5704
  if (!this.fillBar && this.activeTabEl) {
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`;
5705
+ const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left: r } = a.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(a);
5706
+ this.slider.left = `${t - r - parseInt(i) + a.scrollLeft}px`, this.slider.width = `${l}px`;
5501
5707
  } else
5502
- this.slider.left = `${this.activeTab._index * 100 / this.tabsItems.length}%`, this.slider.width = `${100 / this.tabsItems.length}%`;
5708
+ this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
5503
5709
  },
5504
5710
  updateActiveTab(e) {
5505
- typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), this.activeTabIndex = e, this.$nextTick(() => {
5506
- const t = this.$refs["tabs-bar"];
5507
- this.activeTabEl = t && t.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5508
- });
5711
+ var t, l;
5712
+ typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), (t = this.tabs[e]) != null && t._uid && (this.openTab((l = this.tabs[e]) == null ? void 0 : l._uid), this.$nextTick(() => {
5713
+ const a = this.$refs["tabs-bar"];
5714
+ this.activeTabEl = a && a.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5715
+ }));
5509
5716
  },
5510
5717
  getOriginalItem(e) {
5511
- return this.items[e._index];
5718
+ return this.items[e._index] || {};
5512
5719
  }
5513
5720
  },
5514
5721
  beforeMount() {
5515
- this.updateActiveTab(this.modelValue), this.$nextTick(() => {
5722
+ var t;
5723
+ this.tabs = [], (typeof this.items == "number" ? Array(this.items).fill().map(Object) : this.items).forEach(this.addTab), (t = this.modelValue) != null && t && this.updateActiveTab(this.modelValue), this.$nextTick(() => {
5516
5724
  this.updateSlider(), setTimeout(() => this.init = !1, 0);
5517
5725
  }), this.noSlider || window.addEventListener("resize", this.onResize);
5518
5726
  },
@@ -5521,12 +5729,13 @@ const ws = {
5521
5729
  },
5522
5730
  watch: {
5523
5731
  modelValue(e) {
5524
- this.updateActiveTab(e);
5732
+ e !== this.activeTabIndex && this.updateActiveTab(e);
5525
5733
  },
5526
- items() {
5527
- for (; this.activeTabIndex > 0 && !this.tabsItems[this.activeTabIndex]; )
5528
- this.activeTabIndex--;
5529
- this.noSlider || this.$nextTick(this.updateSlider);
5734
+ items: {
5735
+ handler() {
5736
+ this.refreshTabs(), this.tabs.length && this.reopenTheActiveTab(), this.noSlider || this.$nextTick(this.updateSlider);
5737
+ },
5738
+ deep: !0
5530
5739
  },
5531
5740
  fillBar() {
5532
5741
  this.noSlider || this.$nextTick(this.updateSlider);
@@ -5535,283 +5744,283 @@ const ws = {
5535
5744
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
5536
5745
  }
5537
5746
  }
5538
- }, vs = /* @__PURE__ */ v(ws, [["render", ys]]), ks = { ref: "colgroup" }, _s = ["width"], Cs = { key: 0 }, Bs = ["onClick"], Ss = ["innerHTML"], $s = {
5747
+ }, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Ss = ["width"], Bs = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
5539
5748
  key: 0,
5540
5749
  class: "w-table__progress-bar"
5541
- }, Vs = ["colspan"], Is = {
5750
+ }, Ts = ["colspan"], Rs = {
5542
5751
  key: 0,
5543
5752
  class: "w-table__progress-bar"
5544
- }, Rs = ["colspan"], Ls = { class: "w-table__loading-text" }, Ts = {
5753
+ }, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
5545
5754
  key: 1,
5546
5755
  class: "no-data"
5547
- }, xs = ["colspan"], Ps = ["onClick"], Os = ["data-label"], zs = ["data-label"], Es = ["innerHTML"], Ms = {
5756
+ }, Ps = ["colspan"], zs = ["onClick"], Ms = ["data-label"], Es = ["data-label"], Ws = ["innerHTML"], As = {
5548
5757
  key: 2,
5549
5758
  class: "w-table__row w-table__row--expansion"
5550
- }, As = ["colspan"], Ns = { key: 0 }, Ws = {
5759
+ }, Ns = ["colspan"], Ks = { key: 0 }, Hs = {
5551
5760
  key: 3,
5552
5761
  class: "w-table__extra-row"
5553
- }, Ks = {
5762
+ }, Ds = {
5554
5763
  key: 1,
5555
5764
  class: "w-table__footer"
5556
- }, Ds = {
5765
+ }, Fs = {
5557
5766
  key: 1,
5558
5767
  class: "w-table__row"
5559
- }, Fs = ["colspan"], Hs = {
5768
+ }, js = ["colspan"], Us = {
5560
5769
  key: 2,
5561
5770
  class: "w-table__row w-table__pagination-wrap"
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");
5771
+ }, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
5772
+ function Js(e, t, l, a, r, i) {
5773
+ const o = $("w-icon"), n = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
5565
5774
  return s(), u("div", {
5566
5775
  class: f(["w-table-wrap", i.wrapClasses])
5567
5776
  }, [
5568
5777
  w("table", {
5569
5778
  class: f(["w-table", i.classes]),
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))
5779
+ onMousedown: t[5] || (t[5] = (...b) => i.onMouseDown && i.onMouseDown(...b)),
5780
+ onMouseover: t[6] || (t[6] = (...b) => i.onMouseOver && i.onMouseOver(...b)),
5781
+ onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
5573
5782
  }, [
5574
- w("colgroup", ks, [
5575
- (s(!0), u(_, null, x(l.headers, (m, R) => (s(), u("col", {
5576
- class: f(["w-table__col", i.colClasses[R]]),
5577
- key: R,
5578
- width: m.width || null
5579
- }, null, 10, _s))), 128))
5783
+ w("colgroup", Cs, [
5784
+ (s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("col", {
5785
+ class: f(["w-table__col", i.colClasses[T]]),
5786
+ key: T,
5787
+ width: b.width || null
5788
+ }, null, 10, Ss))), 128))
5580
5789
  ], 512),
5581
- l.noHeaders ? c("", !0) : (s(), u("thead", Cs, [
5790
+ l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
5582
5791
  w("tr", null, [
5583
- (s(!0), u(_, null, x(l.headers, (m, R) => (s(), u("th", {
5584
- class: f(["w-table__header", i.headerClasses(m)]),
5585
- key: R,
5586
- onClick: (T) => !e.colResizing.dragging && m.sortable !== !1 && i.sortTable(m)
5792
+ (s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("th", {
5793
+ class: f(["w-table__header", i.headerClasses(b)]),
5794
+ key: T,
5795
+ onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
5587
5796
  }, [
5588
- m.sortable !== !1 && m.align === "right" ? (s(), b(a, {
5797
+ b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
5589
5798
  key: 0,
5590
- class: f(["w-table__header-sort", i.headerSortClasses(m)])
5799
+ class: f(["w-table__header-sort", i.headerSortClasses(b)])
5591
5800
  }, {
5592
5801
  default: g(() => [
5593
- B("wi-arrow-down")
5802
+ S("wi-arrow-down")
5594
5803
  ]),
5595
5804
  _: 2
5596
5805
  }, 1032, ["class"])) : c("", !0),
5597
- m.label ? (s(), u(_, { key: 1 }, [
5806
+ b.label ? (s(), u(k, { key: 1 }, [
5598
5807
  e.$slots["header-label"] ? p(e.$slots, "header-label", {
5599
5808
  key: 0,
5600
- header: m,
5601
- label: m.label,
5602
- index: R + 1
5809
+ header: b,
5810
+ label: b.label,
5811
+ index: T + 1
5603
5812
  }, () => [
5604
- B(k(m.label || ""), 1)
5813
+ S(_(b.label || ""), 1)
5605
5814
  ]) : (s(), u("span", {
5606
5815
  key: 1,
5607
- innerHTML: m.label || ""
5608
- }, null, 8, Ss))
5816
+ innerHTML: b.label || ""
5817
+ }, null, 8, Vs))
5609
5818
  ], 64)) : c("", !0),
5610
- m.sortable !== !1 && m.align !== "right" ? (s(), b(a, {
5819
+ b.sortable !== !1 && b.align !== "right" ? (s(), m(o, {
5611
5820
  key: 2,
5612
- class: f(["w-table__header-sort", i.headerSortClasses(m)])
5821
+ class: f(["w-table__header-sort", i.headerSortClasses(b)])
5613
5822
  }, {
5614
5823
  default: g(() => [
5615
- B("wi-arrow-down")
5824
+ S("wi-arrow-down")
5616
5825
  ]),
5617
5826
  _: 2
5618
5827
  }, 1032, ["class"])) : c("", !0),
5619
- R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5828
+ T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5620
5829
  key: 3,
5621
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === R }]),
5622
- onClick: t[0] || (t[0] = E(() => {
5830
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
5831
+ onClick: t[0] || (t[0] = M(() => {
5623
5832
  }, ["stop"]))
5624
5833
  }, null, 2)) : c("", !0)
5625
- ], 10, Bs))), 128))
5834
+ ], 10, $s))), 128))
5626
5835
  ]),
5627
5836
  I(d, null, {
5628
5837
  default: g(() => [
5629
- l.loading === "header" ? (s(), u("tr", $s, [
5838
+ l.loading === "header" ? (s(), u("tr", Is, [
5630
5839
  w("td", {
5631
5840
  colspan: l.headers.length
5632
5841
  }, [
5633
- I(r, { tile: "" })
5634
- ], 8, Vs)
5842
+ I(n, { tile: "" })
5843
+ ], 8, Ts)
5635
5844
  ])) : c("", !0)
5636
5845
  ]),
5637
5846
  _: 1
5638
5847
  })
5639
5848
  ])),
5640
5849
  w("tbody", null, [
5641
- l.loading === !0 ? (s(), u("tr", Is, [
5850
+ l.loading === !0 ? (s(), u("tr", Rs, [
5642
5851
  w("td", {
5643
5852
  colspan: l.headers.length
5644
5853
  }, [
5645
- I(r, { tile: "" }),
5646
- w("div", Ls, [
5854
+ I(n, { tile: "" }),
5855
+ w("div", xs, [
5647
5856
  p(e.$slots, "loading", {}, () => [
5648
- B("Loading...")
5857
+ S("Loading...")
5649
5858
  ])
5650
5859
  ])
5651
- ], 8, Rs)
5652
- ])) : i.tableItems.length ? c("", !0) : (s(), u("tr", Ts, [
5860
+ ], 8, Ls)
5861
+ ])) : i.tableItems.length ? c("", !0) : (s(), u("tr", Os, [
5653
5862
  w("td", {
5654
5863
  class: "w-table__cell text-center",
5655
5864
  colspan: l.headers.length
5656
5865
  }, [
5657
5866
  p(e.$slots, "no-data", {}, () => [
5658
- B("No data to show.")
5867
+ S("No data to show.")
5659
5868
  ])
5660
- ], 8, xs)
5869
+ ], 8, Ps)
5661
5870
  ])),
5662
- i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, x(i.paginatedItems, (m, R) => (s(), u(_, { key: R }, [
5871
+ i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, T) => (s(), u(k, { key: T }, [
5663
5872
  e.$slots.item ? p(e.$slots, "item", {
5664
5873
  key: 0,
5665
- item: m,
5666
- index: R + 1,
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 }
5874
+ item: b,
5875
+ index: T + 1,
5876
+ select: () => i.doSelectRow(b, T),
5877
+ classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }
5669
5878
  }) : (s(), u("tr", {
5670
5879
  key: 1,
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: (T) => i.doSelectRow(m, R)
5880
+ class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }]),
5881
+ onClick: (x) => i.doSelectRow(b, T)
5673
5882
  }, [
5674
- (s(!0), u(_, null, x(l.headers, (T, O) => (s(), u(_, null, [
5675
- e.$slots[`item-cell.${T.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
5676
- class: f(["w-table__cell", { [`text-${T.align || "left"}`]: !0, "w-table__cell--sticky": T.sticky }]),
5677
- key: `${O}-a`,
5678
- "data-label": T.label
5883
+ (s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
5884
+ e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
5885
+ class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
5886
+ key: `${P}-a`,
5887
+ "data-label": x.label
5679
5888
  }, [
5680
- e.$slots[`item-cell.${T.key}`] ? p(e.$slots, `item-cell.${T.key}`, {
5889
+ e.$slots[`item-cell.${x.key}`] ? p(e.$slots, `item-cell.${x.key}`, {
5681
5890
  key: 0,
5682
- header: T,
5683
- item: m,
5684
- label: m[T.key] || "",
5685
- index: R + 1
5686
- }) : e.$slots[`item-cell.${O + 1}`] ? p(e.$slots, `item-cell.${O + 1}`, {
5891
+ header: x,
5892
+ item: b,
5893
+ label: b[x.key] || "",
5894
+ index: T + 1
5895
+ }) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
5687
5896
  key: 1,
5688
- header: T,
5689
- item: m,
5690
- label: m[T.key] || "",
5691
- index: R + 1
5897
+ header: x,
5898
+ item: b,
5899
+ label: b[x.key] || "",
5900
+ index: T + 1
5692
5901
  }) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
5693
5902
  key: 2,
5694
- header: T,
5695
- item: m,
5696
- label: m[T.key] || "",
5697
- index: R + 1
5903
+ header: x,
5904
+ item: b,
5905
+ label: b[x.key] || "",
5906
+ index: T + 1
5698
5907
  }) : c("", !0),
5699
- O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5908
+ P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5700
5909
  key: 3,
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 }])
5910
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
5702
5911
  }, null, 2)) : c("", !0)
5703
- ], 10, Os)) : (s(), u("td", {
5704
- class: f(["w-table__cell", { [`text-${T.align || "left"}`]: !0, "w-table__cell--sticky": T.sticky }]),
5705
- key: `${O}-b`,
5706
- "data-label": T.label
5912
+ ], 10, Ms)) : (s(), u("td", {
5913
+ class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
5914
+ key: `${P}-b`,
5915
+ "data-label": x.label
5707
5916
  }, [
5708
5917
  w("div", {
5709
- innerHTML: m[T.key] || ""
5710
- }, null, 8, Es),
5711
- O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5918
+ innerHTML: b[x.key] || ""
5919
+ }, null, 8, Ws),
5920
+ P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5712
5921
  key: 0,
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 }])
5922
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
5714
5923
  }, null, 2)) : c("", !0)
5715
- ], 10, zs))
5924
+ ], 10, Es))
5716
5925
  ], 64))), 256))
5717
- ], 10, Ps)),
5718
- i.expandedRowsByUid[m._uid] ? (s(), u("tr", Ms, [
5926
+ ], 10, zs)),
5927
+ i.expandedRowsByUid[b._uid] ? (s(), u("tr", As, [
5719
5928
  w("td", {
5720
5929
  class: "w-table__cell",
5721
5930
  colspan: l.headers.length
5722
5931
  }, [
5723
5932
  I(h, { y: "" }, {
5724
5933
  default: g(() => [
5725
- i.expandedRowsByUid[m._uid] ? (s(), u("div", Ns, [
5934
+ i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
5726
5935
  p(e.$slots, "row-expansion", {
5727
- item: m,
5728
- index: R + 1
5936
+ item: b,
5937
+ index: T + 1
5729
5938
  })
5730
5939
  ])) : c("", !0),
5731
- R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5940
+ T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5732
5941
  key: 1,
5733
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
5942
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
5734
5943
  }, null, 2)) : c("", !0)
5735
5944
  ]),
5736
5945
  _: 2
5737
5946
  }, 1024)
5738
- ], 8, As)
5947
+ ], 8, Ns)
5739
5948
  ])) : c("", !0)
5740
5949
  ], 64))), 128)) : c("", !0),
5741
- e.$slots["extra-row"] ? (s(), u("div", Ws, [
5950
+ e.$slots["extra-row"] ? (s(), u("div", Hs, [
5742
5951
  p(e.$slots, "extra-row")
5743
5952
  ])) : c("", !0)
5744
5953
  ]),
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, [
5954
+ e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot", Ds, [
5955
+ e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Fs, [
5747
5956
  w("td", {
5748
5957
  class: "w-table__cell",
5749
5958
  colspan: l.headers.length
5750
5959
  }, [
5751
5960
  p(e.$slots, "footer")
5752
- ], 8, Fs)
5961
+ ], 8, js)
5753
5962
  ])) : c("", !0),
5754
- l.pagination && e.paginationConfig ? (s(), u("tr", Hs, [
5963
+ l.pagination && e.paginationConfig ? (s(), u("tr", Us, [
5755
5964
  w("td", {
5756
5965
  class: "w-table__cell",
5757
5966
  colspan: l.headers.length
5758
5967
  }, [
5759
- w("div", Us, [
5968
+ w("div", Xs, [
5760
5969
  p(e.$slots, "pagination", {
5761
5970
  range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
5762
5971
  total: e.paginationConfig.total
5763
5972
  }, () => [
5764
- e.paginationConfig.itemsPerPageOptions ? (s(), b(y, {
5973
+ e.paginationConfig.itemsPerPageOptions ? (s(), m(y, {
5765
5974
  key: 0,
5766
5975
  class: "w-pagination__items-per-page",
5767
5976
  modelValue: e.paginationConfig.itemsPerPage,
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 })),
5977
+ "onUpdate:modelValue": t[1] || (t[1] = (b) => e.paginationConfig.itemsPerPage = b),
5978
+ onInput: t[2] || (t[2] = (b) => i.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
5770
5979
  items: e.paginationConfig.itemsPerPageOptions,
5771
5980
  "label-position": "left",
5772
5981
  label: "Items per page",
5773
5982
  "label-color": "inherit"
5774
5983
  }, null, 8, ["modelValue", "items"])) : c("", !0),
5775
- w("div", qs, [
5776
- I(S, {
5984
+ w("div", Ys, [
5985
+ I(B, {
5777
5986
  class: "w-pagination__arrow w-pagination__arrow--prev",
5778
- onClick: t[3] || (t[3] = (m) => i.goToPage("-1")),
5987
+ onClick: t[3] || (t[3] = (b) => i.goToPage("-1")),
5779
5988
  disabled: e.paginationConfig.page <= 1,
5780
5989
  icon: "wi-chevron-left",
5781
5990
  text: "",
5782
5991
  lg: ""
5783
5992
  }, null, 8, ["disabled"]),
5784
- (s(!0), u(_, null, x(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),
5993
+ (s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
5994
+ class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
5995
+ key: b,
5996
+ onClick: (T) => b !== e.paginationConfig.page && i.goToPage(b),
5788
5997
  round: "",
5789
5998
  lg: ""
5790
5999
  }, {
5791
6000
  default: g(() => [
5792
- B(k(m), 1)
6001
+ S(_(b), 1)
5793
6002
  ]),
5794
6003
  _: 2
5795
6004
  }, 1032, ["onClick", "class"]))), 128)),
5796
- I(S, {
6005
+ I(B, {
5797
6006
  class: "w-pagination__arrow w-pagination__arrow--next",
5798
- onClick: t[4] || (t[4] = (m) => i.goToPage("+1")),
6007
+ onClick: t[4] || (t[4] = (b) => i.goToPage("+1")),
5799
6008
  disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
5800
6009
  icon: "wi-chevron-right",
5801
6010
  text: "",
5802
6011
  lg: ""
5803
6012
  }, null, 8, ["disabled"])
5804
6013
  ]),
5805
- w("span", Gs, k(e.paginationConfig.start) + "-" + k(e.paginationConfig.end || e.paginationConfig.total) + " of " + k(e.paginationConfig.total), 1)
6014
+ w("span", Gs, _(e.paginationConfig.start) + "-" + _(e.paginationConfig.end || e.paginationConfig.total) + " of " + _(e.paginationConfig.total), 1)
5806
6015
  ])
5807
6016
  ])
5808
- ], 8, js)
6017
+ ], 8, qs)
5809
6018
  ])) : c("", !0)
5810
6019
  ])) : c("", !0)
5811
6020
  ], 34)
5812
6021
  ], 2);
5813
6022
  }
5814
- const ce = 15, Ys = {
6023
+ const ge = 15, Qs = {
5815
6024
  name: "w-table",
5816
6025
  props: {
5817
6026
  items: { type: Array, required: !0 },
@@ -5896,7 +6105,7 @@ const ce = 15, Ys = {
5896
6105
  if (!this.activeSorting.length || this.sortFunction || this.fetch)
5897
6106
  return this.filteredItems;
5898
6107
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
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)));
6108
+ 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)));
5900
6109
  },
5901
6110
  paginatedItems() {
5902
6111
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -5962,28 +6171,28 @@ const ce = 15, Ys = {
5962
6171
  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();
5963
6172
  },
5964
6173
  doSelectRow(e, t) {
5965
- const l = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6174
+ const l = this.expandableRows === "" ? !0 : this.expandableRows, a = this.selectableRows === "" ? !0 : this.selectableRows;
5966
6175
  if (l) {
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(
6176
+ const r = this.expandedRowsByUid[e._uid] === void 0;
6177
+ r ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((i) => i !== e._uid), this.$emit(
5969
6178
  "row-expand",
5970
6179
  {
5971
6180
  item: e,
5972
6181
  index: t,
5973
- expanded: n,
6182
+ expanded: r,
5974
6183
  expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
5975
6184
  }
5976
6185
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
5977
- } else if (o) {
5978
- let n = !1;
6186
+ } else if (a) {
6187
+ let r = !1;
5979
6188
  const i = this.selectedRowsByUid[e._uid] === void 0;
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(
6189
+ i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), r = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((o) => o !== e._uid), r = !0), r && (this.$emit(
5981
6190
  "row-select",
5982
6191
  {
5983
6192
  item: e,
5984
6193
  index: t,
5985
6194
  selected: i,
5986
- selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
6195
+ selectedRows: this.selectedRowsInternal.map((o) => this.filteredItems[o])
5987
6196
  }
5988
6197
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
5989
6198
  }
@@ -5999,16 +6208,16 @@ const ce = 15, Ys = {
5999
6208
  e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
6000
6209
  },
6001
6210
  onResizerMouseMove(e) {
6002
- const { startCursorX: t, columnEl: l, nextColumnEl: o, colWidth: n, nextColWidth: i } = this.colResizing;
6211
+ const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth: r, nextColWidth: i } = this.colResizing;
6003
6212
  this.colResizing.dragging = !0;
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;
6213
+ const o = e.pageX - t, n = r + i, d = r + o, h = i - o;
6214
+ l.style.width = r + o + "px", a.style.width = i - o + "px";
6215
+ const y = o < 0 && l.offsetWidth > d || l.offsetWidth <= ge, B = o > 0 && a.offsetWidth > h;
6007
6216
  if (y) {
6008
- const m = Math.max(l.offsetWidth, ce);
6009
- l.style.width = m + "px", o.style.width = r - m + "px";
6217
+ const b = Math.max(l.offsetWidth, ge);
6218
+ l.style.width = b + "px", a.style.width = n - b + "px";
6010
6219
  } else
6011
- S && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6220
+ B && (l.style.width = n - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
6012
6221
  },
6013
6222
  onResizerMouseUp() {
6014
6223
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6020,18 +6229,18 @@ const ce = 15, Ys = {
6020
6229
  }, 0);
6021
6230
  },
6022
6231
  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;
6232
+ var a, r, i;
6233
+ const e = (r = (a = this.pagination) == null ? void 0 : a.itemsPerPage) != null ? r : 20, t = ((i = this.pagination) == null ? void 0 : i.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6234
+ t.find((o) => {
6235
+ var n;
6236
+ return ((n = o == null ? void 0 : o.value) != null ? n : o) === +e;
6237
+ }) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((o) => {
6238
+ var n;
6030
6239
  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
6240
+ label: ["string", "number"].includes(typeof o) ? o.toString() : o.label || o.value,
6241
+ value: ["string", "number"].includes(typeof o) ? ~~o : (n = o.value) != null ? n : o.label
6033
6242
  };
6034
- }), this.paginationConfig.itemsPerPageOptions.sort((a, r) => a.value < r.value ? -1 : 1);
6243
+ }), this.paginationConfig.itemsPerPageOptions.sort((o, n) => o.value < n.value ? -1 : 1);
6035
6244
  const l = this.paginationConfig.itemsPerPageOptions.shift();
6036
6245
  this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
6037
6246
  itemsPerPage: e,
@@ -6048,13 +6257,13 @@ const ce = 15, Ys = {
6048
6257
  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
6258
  },
6050
6259
  async callApiFetch() {
6051
- const { page: e, start: t, end: l, total: o, itemsPerPage: n } = this.paginationConfig;
6260
+ const { page: e, start: t, end: l, total: a, itemsPerPage: r } = this.paginationConfig;
6052
6261
  return await this.fetch({
6053
6262
  page: e,
6054
6263
  start: t,
6055
- end: l || o,
6056
- total: o,
6057
- itemsPerPage: n || o,
6264
+ end: l || a,
6265
+ total: a,
6266
+ itemsPerPage: r || a,
6058
6267
  sorting: this.activeSorting
6059
6268
  });
6060
6269
  }
@@ -6088,13 +6297,13 @@ const ce = 15, Ys = {
6088
6297
  this.updatePaginationConfig({ total: e });
6089
6298
  }
6090
6299
  }
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) => {
6300
+ }, Zs = /* @__PURE__ */ v(Qs, [["render", Js]]), ea = ["role", "aria-pressed", "tabindex"];
6301
+ function ta(e, t, l, a, r, i) {
6302
+ return s(), u("span", C({ class: "w-tag" }, W(e.$attrs, !0), {
6303
+ onClick: t[1] || (t[1] = (o) => {
6095
6304
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6096
6305
  }),
6097
- onKeypress: t[2] || (t[2] = M((a) => {
6306
+ onKeypress: t[2] || (t[2] = E((o) => {
6098
6307
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6099
6308
  }, ["enter"])),
6100
6309
  class: i.classes,
@@ -6107,15 +6316,15 @@ function Zs(e, t, l, o, n, i) {
6107
6316
  l.closable && l.modelValue ? (s(), u("i", {
6108
6317
  key: 0,
6109
6318
  class: "w-icon w-tag__closable wi-cross",
6110
- onClick: t[0] || (t[0] = E((a) => {
6319
+ onClick: t[0] || (t[0] = M((o) => {
6111
6320
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
6112
6321
  }, ["stop"])),
6113
6322
  role: "icon",
6114
6323
  "aria-hidden": "true"
6115
6324
  })) : c("", !0)
6116
- ], 16, Qs);
6325
+ ], 16, ea);
6117
6326
  }
6118
- const ea = {
6327
+ const la = {
6119
6328
  name: "w-tag",
6120
6329
  props: {
6121
6330
  modelValue: { type: [Boolean, Number], default: -1 },
@@ -6164,53 +6373,53 @@ const ea = {
6164
6373
  };
6165
6374
  }
6166
6375
  }
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 }, {
6376
+ }, ia = /* @__PURE__ */ v(la, [["render", ta]]), sa = ["for"], aa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], oa = ["for"], na = ["for"];
6377
+ function ra(e, t, l, a, r, i) {
6378
+ const o = $("w-icon");
6379
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
6171
6380
  valid: e.valid,
6172
- "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
6381
+ "onUpdate:valid": t[6] || (t[6] = (n) => e.valid = n),
6173
6382
  wrap: i.hasLabel && l.labelPosition !== "inside",
6174
- onReset: t[7] || (t[7] = (r) => {
6175
- e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
6383
+ onReset: t[7] || (t[7] = (n) => {
6384
+ e.$emit("update:modelValue", r.inputValue = ""), e.$emit("input", "");
6176
6385
  }),
6177
6386
  class: i.classes
6178
6387
  }), {
6179
6388
  default: g(() => [
6180
- l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
6389
+ l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
6181
6390
  e.$slots.default || l.label ? (s(), u("label", {
6182
6391
  key: 0,
6183
6392
  class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
6184
6393
  for: `w-textarea--${e._.uid}`
6185
6394
  }, [
6186
6395
  p(e.$slots, "default", {}, () => [
6187
- B(k(l.label), 1)
6396
+ S(_(l.label), 1)
6188
6397
  ])
6189
- ], 10, la)) : c("", !0)
6398
+ ], 10, sa)) : c("", !0)
6190
6399
  ], 64)) : c("", !0),
6191
6400
  w("div", {
6192
6401
  class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
6193
6402
  }, [
6194
- l.innerIconLeft ? (s(), b(a, {
6403
+ l.innerIconLeft ? (s(), m(o, {
6195
6404
  key: 0,
6196
6405
  class: "w-textarea__icon w-textarea__icon--inner-left",
6197
6406
  tag: "label",
6198
6407
  for: `w-textarea--${e._.uid}`,
6199
- onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
6408
+ onClick: t[0] || (t[0] = (n) => e.$emit("click:inner-icon-left", n))
6200
6409
  }, {
6201
6410
  default: g(() => [
6202
- B(k(l.innerIconLeft), 1)
6411
+ S(_(l.innerIconLeft), 1)
6203
6412
  ]),
6204
6413
  _: 1
6205
6414
  }, 8, ["for"])) : c("", !0),
6206
- D(w("textarea", C({
6415
+ N(w("textarea", C({
6207
6416
  class: "w-textarea__textarea",
6208
6417
  ref: "textarea",
6209
- "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
6210
- }, A(i.listeners, !0), {
6211
- onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
6212
- onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
6213
- onBlur: t[4] || (t[4] = (...r) => i.onBlur && i.onBlur(...r)),
6418
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => r.inputValue = n)
6419
+ }, W(i.listeners, !0), {
6420
+ onInput: t[2] || (t[2] = (...n) => i.onInput && i.onInput(...n)),
6421
+ onFocus: t[3] || (t[3] = (...n) => i.onFocus && i.onFocus(...n)),
6422
+ onBlur: t[4] || (t[4] = (...n) => i.onBlur && i.onBlur(...n)),
6214
6423
  id: `w-textarea--${e._.uid}`,
6215
6424
  name: e.inputName,
6216
6425
  placeholder: l.placeholder || null,
@@ -6221,49 +6430,49 @@ function oa(e, t, l, o, n, i) {
6221
6430
  disabled: e.isDisabled || null,
6222
6431
  required: e.required || null,
6223
6432
  tabindex: e.tabindex || null
6224
- }), null, 16, ia), [
6225
- [me, n.inputValue]
6433
+ }), null, 16, aa), [
6434
+ [be, r.inputValue]
6226
6435
  ]),
6227
- l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 1 }, [
6436
+ l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 1 }, [
6228
6437
  e.$slots.default || l.label ? (s(), u("label", {
6229
6438
  key: 0,
6230
6439
  class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses]),
6231
6440
  for: `w-textarea--${e._.uid}`
6232
6441
  }, [
6233
6442
  p(e.$slots, "default", {}, () => [
6234
- B(k(l.label), 1)
6443
+ S(_(l.label), 1)
6235
6444
  ])
6236
- ], 10, sa)) : c("", !0)
6445
+ ], 10, oa)) : c("", !0)
6237
6446
  ], 64)) : c("", !0),
6238
- l.innerIconRight ? (s(), b(a, {
6447
+ l.innerIconRight ? (s(), m(o, {
6239
6448
  key: 2,
6240
6449
  class: "w-textarea__icon w-textarea__icon--inner-right",
6241
6450
  tag: "label",
6242
6451
  for: `w-textarea--${e._.uid}`,
6243
- onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
6452
+ onClick: t[5] || (t[5] = (n) => e.$emit("click:inner-icon-right", n))
6244
6453
  }, {
6245
6454
  default: g(() => [
6246
- B(k(l.innerIconRight), 1)
6455
+ S(_(l.innerIconRight), 1)
6247
6456
  ]),
6248
6457
  _: 1
6249
6458
  }, 8, ["for"])) : c("", !0)
6250
6459
  ], 2),
6251
- l.labelPosition === "right" ? (s(), u(_, { key: 1 }, [
6460
+ l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
6252
6461
  e.$slots.default || l.label ? (s(), u("label", {
6253
6462
  key: 0,
6254
6463
  class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
6255
6464
  for: `w-textarea--${e._.uid}`
6256
6465
  }, [
6257
6466
  p(e.$slots, "default", {}, () => [
6258
- B(k(l.label), 1)
6467
+ S(_(l.label), 1)
6259
6468
  ])
6260
- ], 10, aa)) : c("", !0)
6469
+ ], 10, na)) : c("", !0)
6261
6470
  ], 64)) : c("", !0)
6262
6471
  ]),
6263
6472
  _: 3
6264
6473
  }, 16, ["valid", "wrap", "class"]);
6265
6474
  }
6266
- const na = {
6475
+ const da = {
6267
6476
  name: "w-textarea",
6268
6477
  mixins: [z],
6269
6478
  props: {
@@ -6299,8 +6508,8 @@ const na = {
6299
6508
  },
6300
6509
  computed: {
6301
6510
  listeners() {
6302
- const { input: e, focus: t, blur: l, ...o } = this.$attrs;
6303
- return o;
6511
+ const { input: e, focus: t, blur: l, ...a } = this.$attrs;
6512
+ return a;
6304
6513
  },
6305
6514
  hasValue() {
6306
6515
  return this.inputValue || this.inputValue === 0;
@@ -6379,45 +6588,45 @@ const na = {
6379
6588
  e ? this.getLineHeight() : this.height = null;
6380
6589
  }
6381
6590
  }
6382
- }, ra = /* @__PURE__ */ v(na, [["render", oa]]), da = ["innerHTML"], ua = ["innerHTML"];
6383
- function ha(e, t, l, o, n, i) {
6591
+ }, ua = /* @__PURE__ */ v(da, [["render", ra]]), ha = ["innerHTML"], ca = ["innerHTML"];
6592
+ function pa(e, t, l, a, r, i) {
6384
6593
  return s(), u("ul", {
6385
6594
  class: f(["w-timeline", i.classes])
6386
6595
  }, [
6387
- (s(!0), u(_, null, x(l.items, (a, r) => (s(), u("li", {
6596
+ (s(!0), u(k, null, L(l.items, (o, n) => (s(), u("li", {
6388
6597
  class: "w-timeline-item",
6389
- key: r
6598
+ key: n
6390
6599
  }, [
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 }])
6600
+ (s(), m(V(o[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6601
+ class: f(["w-timeline-item__bullet", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }])
6393
6602
  }, {
6394
6603
  default: g(() => [
6395
- B(k(a[l.itemIconKey] || l.icon), 1)
6604
+ S(_(o[l.itemIconKey] || l.icon), 1)
6396
6605
  ]),
6397
6606
  _: 2
6398
6607
  }, 1032, ["class"])),
6399
- e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
6608
+ e.$slots[`item.${n + 1}`] ? p(e.$slots, `item.${n + 1}`, {
6400
6609
  key: 1,
6401
- item: a,
6402
- index: r + 1
6610
+ item: o,
6611
+ index: n + 1
6403
6612
  }) : p(e.$slots, "item", {
6404
6613
  key: 0,
6405
- item: a,
6406
- index: r + 1
6614
+ item: o,
6615
+ index: n + 1
6407
6616
  }, () => [
6408
6617
  w("div", {
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),
6618
+ class: f(["w-timeline-item__title", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }]),
6619
+ innerHTML: o[l.itemTitleKey]
6620
+ }, null, 10, ha),
6412
6621
  w("div", {
6413
6622
  class: "w-timeline-item__content",
6414
- innerHTML: a[l.itemContentKey]
6415
- }, null, 8, ua)
6623
+ innerHTML: o[l.itemContentKey]
6624
+ }, null, 8, ca)
6416
6625
  ])
6417
6626
  ]))), 128))
6418
6627
  ], 2);
6419
6628
  }
6420
- const ca = {
6629
+ const fa = {
6421
6630
  name: "w-timeline",
6422
6631
  props: {
6423
6632
  items: { type: [Array, Number], required: !0 },
@@ -6439,16 +6648,16 @@ const ca = {
6439
6648
  };
6440
6649
  }
6441
6650
  }
6442
- }, pa = /* @__PURE__ */ v(ca, [["render", ha]]);
6443
- function fa(e, t, l, o, n, i) {
6651
+ }, ga = /* @__PURE__ */ v(fa, [["render", pa]]);
6652
+ function ma(e, t, l, a, r, i) {
6444
6653
  return s(), u("div", {
6445
6654
  class: f(["w-toolbar", i.classes]),
6446
- style: L(i.styles)
6655
+ style: R(i.styles)
6447
6656
  }, [
6448
6657
  p(e.$slots, "default")
6449
6658
  ], 6);
6450
6659
  }
6451
- const ga = {
6660
+ const ba = {
6452
6661
  name: "w-toolbar",
6453
6662
  props: {
6454
6663
  color: { type: String },
@@ -6497,11 +6706,11 @@ const ga = {
6497
6706
  };
6498
6707
  }
6499
6708
  }
6500
- }, ma = /* @__PURE__ */ v(ga, [["render", fa]]);
6501
- function ba(e, t, l, o, n, i) {
6502
- return s(), u(_, null, [
6709
+ }, ya = /* @__PURE__ */ v(ba, [["render", ma]]);
6710
+ function wa(e, t, l, a, r, i) {
6711
+ return s(), u(k, null, [
6503
6712
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
6504
- I(P, {
6713
+ I(O, {
6505
6714
  name: i.transitionName,
6506
6715
  appear: ""
6507
6716
  }, {
@@ -6510,7 +6719,7 @@ function ba(e, t, l, o, n, i) {
6510
6719
  class: f(["w-tooltip", i.classes]),
6511
6720
  ref: "detachable",
6512
6721
  key: e._.uid,
6513
- style: L(i.styles)
6722
+ style: R(i.styles)
6514
6723
  }, [
6515
6724
  p(e.$slots, "default")
6516
6725
  ], 6)) : c("", !0)
@@ -6519,9 +6728,9 @@ function ba(e, t, l, o, n, i) {
6519
6728
  }, 8, ["name"])
6520
6729
  ], 64);
6521
6730
  }
6522
- const ya = {
6731
+ const va = {
6523
6732
  name: "w-tooltip",
6524
- mixins: [ye],
6733
+ mixins: [we],
6525
6734
  props: {
6526
6735
  modelValue: {},
6527
6736
  showOnClick: { type: Boolean },
@@ -6551,7 +6760,7 @@ const ya = {
6551
6760
  }),
6552
6761
  computed: {
6553
6762
  tooltipClasses() {
6554
- return N(this.tooltipClass);
6763
+ return A(this.tooltipClass);
6555
6764
  },
6556
6765
  transitionName() {
6557
6766
  const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
@@ -6605,24 +6814,24 @@ const ya = {
6605
6814
  !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));
6606
6815
  }
6607
6816
  }
6608
- }, wa = /* @__PURE__ */ v(ya, [["render", ba]]);
6609
- function va(e, t, l, o, n, i) {
6610
- return s(), b(P, C({ name: "bounce" }, e.$props), {
6817
+ }, ka = /* @__PURE__ */ v(va, [["render", wa]]);
6818
+ function _a(e, t, l, a, r, i) {
6819
+ return s(), m(O, C({ name: "bounce" }, e.$props), {
6611
6820
  default: g(() => [
6612
6821
  p(e.$slots, "default")
6613
6822
  ]),
6614
6823
  _: 3
6615
6824
  }, 16);
6616
6825
  }
6617
- const ka = {
6826
+ const Ca = {
6618
6827
  name: "w-transition-bounce",
6619
6828
  props: {
6620
6829
  appear: { type: Boolean },
6621
6830
  duration: { type: [Number, String] }
6622
6831
  }
6623
- }, _a = /* @__PURE__ */ v(ka, [["render", va]]);
6624
- function Ca(e, t, l, o, n, i) {
6625
- return s(), b(P, {
6832
+ }, Sa = /* @__PURE__ */ v(Ca, [["render", _a]]);
6833
+ function Ba(e, t, l, a, r, i) {
6834
+ return s(), m(O, {
6626
6835
  name: "expand",
6627
6836
  mode: "out-in",
6628
6837
  css: !1,
@@ -6642,7 +6851,7 @@ function Ca(e, t, l, o, n, i) {
6642
6851
  _: 3
6643
6852
  }, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
6644
6853
  }
6645
- const Ba = {
6854
+ const $a = {
6646
6855
  name: "w-transition-expand",
6647
6856
  props: {
6648
6857
  x: { type: Boolean },
@@ -6732,61 +6941,61 @@ const Ba = {
6732
6941
  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;
6733
6942
  }
6734
6943
  }
6735
- }, Sa = /* @__PURE__ */ v(Ba, [["render", Ca]]);
6736
- function $a(e, t, l, o, n, i) {
6737
- return s(), b(P, C({ name: "fade" }, e.$props), {
6944
+ }, Va = /* @__PURE__ */ v($a, [["render", Ba]]);
6945
+ function Ia(e, t, l, a, r, i) {
6946
+ return s(), m(O, C({ name: "fade" }, e.$props), {
6738
6947
  default: g(() => [
6739
6948
  p(e.$slots, "default")
6740
6949
  ]),
6741
6950
  _: 3
6742
6951
  }, 16);
6743
6952
  }
6744
- const Va = {
6953
+ const Ta = {
6745
6954
  name: "w-transition-fade",
6746
6955
  props: {
6747
6956
  appear: { type: Boolean },
6748
6957
  duration: { type: [Number, String] }
6749
6958
  }
6750
- }, Ia = /* @__PURE__ */ v(Va, [["render", $a]]);
6751
- function Ra(e, t, l, o, n, i) {
6752
- return s(), b(P, C({ name: "scale" }, e.$props), {
6959
+ }, Ra = /* @__PURE__ */ v(Ta, [["render", Ia]]);
6960
+ function La(e, t, l, a, r, i) {
6961
+ return s(), m(O, C({ name: "scale" }, e.$props), {
6753
6962
  default: g(() => [
6754
6963
  p(e.$slots, "default")
6755
6964
  ]),
6756
6965
  _: 3
6757
6966
  }, 16);
6758
6967
  }
6759
- const La = {
6968
+ const xa = {
6760
6969
  name: "w-transition-scale",
6761
6970
  props: {
6762
6971
  appear: { type: Boolean },
6763
6972
  duration: { type: [Number, String] }
6764
6973
  }
6765
- }, Ta = /* @__PURE__ */ v(La, [["render", Ra]]);
6766
- function xa(e, t, l, o, n, i) {
6767
- return s(), b(P, C({ name: "scale-fade" }, e.$props), {
6974
+ }, Oa = /* @__PURE__ */ v(xa, [["render", La]]);
6975
+ function Pa(e, t, l, a, r, i) {
6976
+ return s(), m(O, C({ name: "scale-fade" }, e.$props), {
6768
6977
  default: g(() => [
6769
6978
  p(e.$slots, "default")
6770
6979
  ]),
6771
6980
  _: 3
6772
6981
  }, 16);
6773
6982
  }
6774
- const Pa = {
6983
+ const za = {
6775
6984
  name: "w-transition-scale-fade",
6776
6985
  props: {
6777
6986
  appear: { type: Boolean },
6778
6987
  duration: { type: [Number, String] }
6779
6988
  }
6780
- }, Oa = /* @__PURE__ */ v(Pa, [["render", xa]]);
6781
- function za(e, t, l, o, n, i) {
6782
- return s(), b(P, C({ name: i.transitionName }, e.$props), {
6989
+ }, Ma = /* @__PURE__ */ v(za, [["render", Pa]]);
6990
+ function Ea(e, t, l, a, r, i) {
6991
+ return s(), m(O, C({ name: i.transitionName }, e.$props), {
6783
6992
  default: g(() => [
6784
6993
  p(e.$slots, "default")
6785
6994
  ]),
6786
6995
  _: 3
6787
6996
  }, 16, ["name"]);
6788
6997
  }
6789
- const Ea = {
6998
+ const Wa = {
6790
6999
  name: "w-transition-slide",
6791
7000
  props: {
6792
7001
  appear: { type: Boolean },
@@ -6804,16 +7013,16 @@ const Ea = {
6804
7013
  return `slide-${this.direction}`;
6805
7014
  }
6806
7015
  }
6807
- }, Ma = /* @__PURE__ */ v(Ea, [["render", za]]);
6808
- function Aa(e, t, l, o, n, i) {
6809
- return s(), b(P, C({ name: i.transitionName }, e.$props), {
7016
+ }, Aa = /* @__PURE__ */ v(Wa, [["render", Ea]]);
7017
+ function Na(e, t, l, a, r, i) {
7018
+ return s(), m(O, C({ name: i.transitionName }, e.$props), {
6810
7019
  default: g(() => [
6811
7020
  p(e.$slots, "default")
6812
7021
  ]),
6813
7022
  _: 3
6814
7023
  }, 16, ["name"]);
6815
7024
  }
6816
- const Na = {
7025
+ const Ka = {
6817
7026
  name: "w-transition-slide-fade",
6818
7027
  props: {
6819
7028
  appear: { type: Boolean },
@@ -6831,44 +7040,44 @@ const Na = {
6831
7040
  return `slide-fade-${this.direction}`;
6832
7041
  }
6833
7042
  }
6834
- }, Wa = /* @__PURE__ */ v(Na, [["render", Aa]]);
6835
- function Ka(e, t, l, o, n, i) {
6836
- return s(), b(P, C({ name: "twist" }, e.$props), {
7043
+ }, Ha = /* @__PURE__ */ v(Ka, [["render", Na]]);
7044
+ function Da(e, t, l, a, r, i) {
7045
+ return s(), m(O, C({ name: "twist" }, e.$props), {
6837
7046
  default: g(() => [
6838
7047
  p(e.$slots, "default")
6839
7048
  ]),
6840
7049
  _: 3
6841
7050
  }, 16);
6842
7051
  }
6843
- const Da = {
7052
+ const Fa = {
6844
7053
  name: "w-transition-twist",
6845
7054
  props: {
6846
7055
  appear: { type: Boolean },
6847
7056
  duration: { type: [Number, String] }
6848
7057
  }
6849
- }, Fa = /* @__PURE__ */ v(Da, [["render", Ka]]), Ha = ["innerHTML"], ja = {
7058
+ }, ja = /* @__PURE__ */ v(Fa, [["render", Da]]), Ua = ["innerHTML"], qa = {
6850
7059
  key: 1,
6851
7060
  class: "ml1"
6852
7061
  };
6853
- function Ua(e, t, l, o, n, i) {
6854
- const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7062
+ function Xa(e, t, l, a, r, i) {
7063
+ const o = $("w-button"), n = $("w-icon"), d = $("w-tree", !0);
6855
7064
  return s(), u("ul", {
6856
7065
  class: f(["w-tree", i.classes])
6857
7066
  }, [
6858
- (s(!0), u(_, null, x(e.currentDepthItems, (h, y) => (s(), u("li", {
7067
+ (s(!0), u(k, null, L(e.currentDepthItems, (h, y) => (s(), u("li", {
6859
7068
  class: f(["w-tree__item", i.itemClasses(h)]),
6860
7069
  key: y
6861
7070
  }, [
6862
- (s(), b(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
6863
- onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
6864
- onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
7071
+ (s(), m(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7072
+ onClick: (B) => !l.disabled && !h.disabled && i.onLabelClick(h, B),
7073
+ onKeydown: (B) => !l.disabled && !h.disabled && i.onLabelKeydown(h, B),
6865
7074
  tabindex: i.getTreeItemTabindex(h)
6866
7075
  }), {
6867
7076
  default: g(() => [
6868
- (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), b(a, {
7077
+ (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(o, {
6869
7078
  key: 0,
6870
7079
  class: "w-tree__item-expand",
6871
- onClick: E((S) => !l.disabled && !h.disabled && i.onLabelClick(h, S), ["stop"]),
7080
+ onClick: M((B) => !l.disabled && !h.disabled && i.onLabelClick(h, B), ["stop"]),
6872
7081
  color: "inherit",
6873
7082
  icon: h.open && l.expandOpenIcon || l.expandIcon,
6874
7083
  "icon-props": { rotate90a: !h.open },
@@ -6883,51 +7092,51 @@ function Ua(e, t, l, o, n, i) {
6883
7092
  path: h.path,
6884
7093
  open: h.open
6885
7094
  }, () => {
6886
- var S;
7095
+ var B;
6887
7096
  return [
6888
- i.itemIcon(h) ? (s(), b(r, {
7097
+ i.itemIcon(h) ? (s(), m(n, {
6889
7098
  key: 0,
6890
7099
  class: "w-tree__item-icon",
6891
7100
  color: h.originalItem[l.itemIconColorKey] || l.iconColor
6892
7101
  }, {
6893
7102
  default: g(() => [
6894
- B(k(i.itemIcon(h)), 1)
7103
+ S(_(i.itemIcon(h)), 1)
6895
7104
  ]),
6896
7105
  _: 2
6897
7106
  }, 1032, ["color"])) : c("", !0),
6898
7107
  w("span", {
6899
7108
  innerHTML: h.label
6900
- }, null, 8, Ha),
6901
- l.counts && (h.children || h.branch) ? (s(), u("span", ja, "(" + k(((S = h.originalItem.children) == null ? void 0 : S.length) || 0) + ")", 1)) : c("", !0)
7109
+ }, null, 8, Ua),
7110
+ l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : c("", !0)
6902
7111
  ];
6903
7112
  })
6904
7113
  ]),
6905
7114
  _: 2
6906
7115
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
6907
- (s(), b(V(l.noTransition ? "div" : "w-transition-expand"), {
7116
+ (s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
6908
7117
  y: !l.noTransition || null,
6909
- onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) }),
6910
- onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) })
7118
+ onAfterEnter: (B) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) }),
7119
+ onAfterLeave: (B) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) })
6911
7120
  }, {
6912
7121
  default: g(() => [
6913
- h.children && h.open ? (s(), b(d, C({ key: 0 }, e.$props, {
7122
+ h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
6914
7123
  depth: l.depth + 1,
6915
7124
  data: h.originalItem.children,
6916
7125
  parent: h,
6917
- onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
6918
- onOpen: t[1] || (t[1] = (S) => e.$emit("open", S)),
6919
- onBeforeClose: t[2] || (t[2] = (S) => e.$emit("before-close", S)),
6920
- onClose: t[3] || (t[3] = (S) => e.$emit("close", S)),
6921
- onClick: t[4] || (t[4] = (S) => e.$emit("click", S)),
6922
- onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
6923
- "onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
7126
+ onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
7127
+ onOpen: t[1] || (t[1] = (B) => e.$emit("open", B)),
7128
+ onBeforeClose: t[2] || (t[2] = (B) => e.$emit("before-close", B)),
7129
+ onClose: t[3] || (t[3] = (B) => e.$emit("close", B)),
7130
+ onClick: t[4] || (t[4] = (B) => e.$emit("click", B)),
7131
+ onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
7132
+ "onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
6924
7133
  }), {
6925
- item: g(({ item: S, depth: m, path: R, open: T }) => [
7134
+ item: g(({ item: B, depth: b, path: T, open: x }) => [
6926
7135
  p(e.$slots, "item", {
6927
- item: S,
6928
- depth: m,
6929
- path: R,
6930
- open: T
7136
+ item: B,
7137
+ depth: b,
7138
+ path: T,
7139
+ open: x
6931
7140
  })
6932
7141
  ]),
6933
7142
  _: 2
@@ -6938,7 +7147,7 @@ function Ua(e, t, l, o, n, i) {
6938
7147
  ], 2))), 128))
6939
7148
  ], 2);
6940
7149
  }
6941
- const qa = {
7150
+ const Ya = {
6942
7151
  name: "w-tree",
6943
7152
  props: {
6944
7153
  modelValue: { type: [Object, Array] },
@@ -6985,23 +7194,23 @@ const qa = {
6985
7194
  methods: {
6986
7195
  updateCurrentDepthTree(e, t = []) {
6987
7196
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
6988
- return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
6989
- Array.isArray(e) || (e = [e]), e.forEach((l, o) => {
7197
+ return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7198
+ Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
6990
7199
  var i;
6991
- const n = {
7200
+ const r = {
6992
7201
  originalItem: l,
6993
- _uid: this.depth.toString() + (o + 1),
7202
+ _uid: this.depth.toString() + (a + 1),
6994
7203
  label: l[this.itemLabelKey],
6995
7204
  children: !!l.children,
6996
7205
  branch: l.branch,
6997
7206
  route: l[this.itemRouteKey],
6998
7207
  disabled: l[this.itemDisabledKey],
6999
7208
  depth: this.depth,
7000
- open: !!(((i = t[o]) == null ? void 0 : i.open) || this.expandAll || l[this.itemOpenKey]),
7209
+ open: !!(((i = t[a]) == null ? void 0 : i.open) || this.expandAll || l[this.itemOpenKey]),
7001
7210
  parent: this.parent || null,
7002
7211
  path: []
7003
7212
  };
7004
- n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
7213
+ r.path = this.getTreeItemPath(r), this.currentDepthItems.push(r);
7005
7214
  });
7006
7215
  },
7007
7216
  getTreeItemComponent(e) {
@@ -7049,8 +7258,8 @@ const qa = {
7049
7258
  },
7050
7259
  onLabelKeydown(e, t) {
7051
7260
  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))) {
7052
- 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;
7053
- [...o].some((a, r) => a.isSameNode(n) ? (o[r + i] && o[r + i].focus(), !0) : !1);
7261
+ const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), r = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
7262
+ [...a].some((o, n) => o.isSameNode(r) ? (a[n + i] && a[n + i].focus(), !0) : !1);
7054
7263
  }
7055
7264
  this.selectable && this.emitItemSelection(e, t);
7056
7265
  },
@@ -7094,62 +7303,62 @@ const qa = {
7094
7303
  unmounted() {
7095
7304
  this.dataPropUnwatch();
7096
7305
  }
7097
- }, Ga = /* @__PURE__ */ v(qa, [["render", Ua]]), Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7306
+ }, Ga = /* @__PURE__ */ v(Ya, [["render", Xa]]), Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7098
7307
  __proto__: null,
7099
- WAccordion: Ge,
7100
- WAlert: Qe,
7101
- WApp: lt,
7102
- WBadge: at,
7103
- WBreadcrumbs: dt,
7104
- WButton: yt,
7105
- WCard: _t,
7106
- WCheckbox: xt,
7308
+ WAccordion: Ye,
7309
+ WAlert: Ze,
7310
+ WApp: it,
7311
+ WBadge: ot,
7312
+ WBreadcrumbs: ut,
7313
+ WButton: wt,
7314
+ WCard: Ct,
7315
+ WCheckbox: Ot,
7107
7316
  WCheckboxes: Et,
7108
7317
  WConfirm: Nt,
7109
7318
  WDatePicker: Dt,
7110
- WDialog: jt,
7111
- WDivider: Xt,
7112
- WDrawer: el,
7113
- WFlex: il,
7114
- WForm: nl,
7115
- WFormElement: ul,
7116
- WGrid: pl,
7117
- WIcon: ml,
7118
- WImage: vl,
7119
- WInput: xl,
7120
- WList: zl,
7319
+ WDialog: Ut,
7320
+ WDivider: Gt,
7321
+ WDrawer: tl,
7322
+ WFlex: sl,
7323
+ WForm: rl,
7324
+ WFormElement: hl,
7325
+ WGrid: fl,
7326
+ WIcon: bl,
7327
+ WImage: kl,
7328
+ WInput: Ol,
7329
+ WList: Ml,
7121
7330
  WMenu: Al,
7122
- WNotification: Kl,
7123
- WOverlay: Hl,
7124
- WParallax: Gl,
7125
- WProgress: li,
7126
- WRadio: ui,
7127
- WRadios: fi,
7128
- WRating: wi,
7129
- WScrollbar: Ci,
7331
+ WNotification: Hl,
7332
+ WOverlay: jl,
7333
+ WParallax: Yl,
7334
+ WProgress: ii,
7335
+ WRadio: hi,
7336
+ WRadios: gi,
7337
+ WRating: vi,
7338
+ WScrollable: Si,
7130
7339
  WSelect: Pi,
7131
- WSlider: qi,
7132
- WSpinner: Ji,
7133
- WSteps: es,
7134
- WSwitch: rs,
7135
- WTabs: vs,
7136
- WTable: Js,
7137
- WTag: ta,
7138
- WTextarea: ra,
7139
- WTimeline: pa,
7140
- WToolbar: ma,
7141
- WTooltip: wa,
7142
- WTransitionBounce: _a,
7143
- WTransitionExpand: Sa,
7144
- WTransitionFade: Ia,
7145
- WTransitionScale: Ta,
7146
- WTransitionScaleFade: Oa,
7147
- WTransitionSlide: Ma,
7148
- WTransitionSlideFade: Wa,
7149
- WTransitionTwist: Fa,
7340
+ WSlider: Xi,
7341
+ WSpinner: Qi,
7342
+ WSteps: ts,
7343
+ WSwitch: ds,
7344
+ WTabs: _s,
7345
+ WTable: Zs,
7346
+ WTag: ia,
7347
+ WTextarea: ua,
7348
+ WTimeline: ga,
7349
+ WToolbar: ya,
7350
+ WTooltip: ka,
7351
+ WTransitionBounce: Sa,
7352
+ WTransitionExpand: Va,
7353
+ WTransitionFade: Ra,
7354
+ WTransitionScale: Oa,
7355
+ WTransitionScaleFade: Ma,
7356
+ WTransitionSlide: Aa,
7357
+ WTransitionSlideFade: Ha,
7358
+ WTransitionTwist: ja,
7150
7359
  WTree: Ga
7151
- }, Symbol.toStringTag, { value: "Module" })), Ya = W.install;
7152
- W.install = (e, t = {}) => Ya.call(W, e, { components: Xa, ...t });
7360
+ }, Symbol.toStringTag, { value: "Module" })), Qa = K.install;
7361
+ K.install = (e, t = {}) => Qa.call(K, e, { components: Ja, ...t });
7153
7362
  export {
7154
- W as default
7363
+ K as default
7155
7364
  };