wave-ui 3.5.0 → 3.5.2

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.
@@ -4,11 +4,11 @@ var D = (e, t, l) => (ke(e, typeof t != "symbol" ? t + "" : t, l), l), ne = (e,
4
4
  if (!t.has(e))
5
5
  throw TypeError("Cannot " + l);
6
6
  };
7
- var X = (e, t, l) => (ne(e, t, "read from private field"), l ? l.call(e) : t.get(e)), ee = (e, t, l) => {
7
+ var Y = (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, a) => (ne(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
11
+ }, te = (e, t, l, o) => (ne(e, t, "write to private field"), o ? o.call(e, l) : t.set(e, l), l);
12
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 P, normalizeStyle as T, 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
13
  const Ie = Q({
14
14
  on: "#app",
@@ -56,142 +56,32 @@ const Ie = Q({
56
56
  t = Object.assign(t, e);
57
57
  else
58
58
  for (const l in e) {
59
- const a = e[l];
60
- typeof a == "object" ? ye(e[l], t[l]) : t[l] = a;
59
+ const o = e[l];
60
+ typeof o == "object" ? ye(e[l], t[l]) : t[l] = o;
61
61
  }
62
62
  return t;
63
- }, Re = ["innerHTML"];
64
- function Te(e, t, l, a, r, i) {
65
- const o = $("w-alert");
66
- return s(), m(_e, { to: ".w-app" }, [
67
- I(ae, {
68
- class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
69
- tag: "div",
70
- name: i.transition,
71
- appear: ""
72
- }, {
73
- default: g(() => [
74
- (s(!0), u(k, null, L(i.notifications, (n) => (s(), u(k, null, [
75
- n._value ? (s(), m(o, C({
76
- class: "white--bg",
77
- key: n._uid,
78
- modelValue: n._value,
79
- "onUpdate:modelValue": (d) => n._value = d,
80
- onClose: n.dismiss
81
- }, i.notifProps(n)), {
82
- default: g(() => [
83
- w("div", {
84
- innerHTML: n.message
85
- }, null, 8, Re)
86
- ]),
87
- _: 2
88
- }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
89
- ], 64))), 256))
90
- ]),
91
- _: 1
92
- }, 8, ["class", "name"])
93
- ]);
94
- }
95
- const v = (e, t) => {
96
- const l = e.__vccOpts || e;
97
- for (const [a, r] of t)
98
- l[a] = r;
99
- return l;
100
- }, Le = {
101
- name: "w-notification-manager",
102
- computed: {
103
- conf() {
104
- return this.$waveui.config.notificationManager;
105
- },
106
- notifications() {
107
- var e;
108
- return (e = this.$waveui._notificationManager) == null ? void 0 : e.notifications;
109
- },
110
- transition() {
111
- return this.conf.transition ? this.conf.transition.replace("default", `slide-${this.conf.align === "left" ? "right" : "left"}`) : "";
112
- }
113
- },
114
- methods: {
115
- notifProps(e) {
116
- const { _value: t, _uid: l, message: a, timeout: r, ...i } = e;
117
- return i.dismiss && (i.dismiss = !0), i;
118
- }
119
- }
120
- }, xe = /* @__PURE__ */ v(Le, [["render", Te]]);
121
- var H;
122
- const F = class {
123
- constructor() {
124
- D(this, "notifications");
125
- D(this, "_uid");
126
- D(this, "_notificationDefaults");
127
- if (X(F, H))
128
- return X(F, H);
129
- this.notifications = [], this._uid = 0, this._notificationDefaults = {
130
- _uid: 0,
131
- _value: !0,
132
- message: "",
133
- timeout: 4e3,
134
- dismiss: !0
135
- }, te(F, H, this);
136
- }
137
- notify(...t) {
138
- let l = {
139
- ...this._notificationDefaults,
140
- _uid: this._uid++
141
- };
142
- if (typeof t[0] == "object")
143
- l = { ...l, ...t[0] };
144
- else {
145
- const [a, r, i] = t;
146
- l = {
147
- ...l,
148
- message: a || "",
149
- [r === void 0 ? "info" : r]: !0,
150
- timeout: i || i === 0 ? parseFloat(i) : 4e3
151
- };
152
- }
153
- l.dismiss && (l.dismiss = () => this.dismiss(l._uid)), this.notifications.push(l), ~~l.timeout !== 0 && setTimeout(() => this.dismiss(l._uid), l.timeout);
154
- }
155
- dismiss(t) {
156
- this.notifications = this.notifications.filter((l) => l._uid !== t);
157
- }
158
- };
159
- let Y = F;
160
- H = new WeakMap(), ee(Y, H, void 0);
161
- const Pe = (e, t, l) => {
162
- const a = document.createElement("div");
163
- e.appendChild(a);
164
- const r = Ce(Se({
165
- ...xe,
166
- inject: ["$waveui"]
167
- })).provide("$waveui", l);
168
- for (const i in t) {
169
- const o = t[i];
170
- r.component(o.name, { ...o, inject: ["$waveui"] });
171
- }
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(""), Oe = (e) => {
63
+ }, U = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), 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(""), Re = (e) => {
174
64
  ["light", "dark"].forEach((t) => {
175
65
  const l = e.colors[t];
176
66
  l.shades = {};
177
- for (let a in l) {
178
- if (a === "shades")
67
+ for (let o in l) {
68
+ if (o === "shades")
179
69
  continue;
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]);
70
+ o = { label: o, color: l[o].replace("#", "") };
71
+ const n = o.color;
72
+ n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
183
73
  for (let i = 1; i <= 3; i++) {
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;
74
+ const a = re(`#${o.color}`, i * 40), r = re(`#${o.color}`, -i * 40);
75
+ l.shades[`${o.label}-light${i}`] = a, l.shades[`${o.label}-dark${i}`] = r;
186
76
  }
187
77
  }
188
78
  });
189
79
  }, de = (e, t) => {
190
80
  const l = {
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 };
81
+ ...t.reduce((o, n) => {
82
+ o[n.label] = n.color;
83
+ const i = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
84
+ return { ...o, ...i };
195
85
  }, { ...e, ...e.shades })
196
86
  };
197
87
  return delete l.shades, l;
@@ -542,42 +432,42 @@ const Pe = (e, t, l) => {
542
432
  { label: "white", color: "#fff" },
543
433
  { label: "transparent", color: "transparent" },
544
434
  { label: "inherit", color: "inherit" }
545
- ], U = {
435
+ ], q = {
546
436
  cssScope: ".w-app",
547
437
  baseIncrement: 4
548
438
  };
549
439
  let se = { keys: [], values: [] }, he = null;
550
- const ze = (e) => {
440
+ const Te = (e) => {
551
441
  let t = "";
552
- const l = {}, { info: a, warning: r, success: i, error: o, shades: n, ...d } = e, { cssScope: h } = U;
442
+ const l = {}, { info: o, warning: n, success: i, error: a, shades: r, ...d } = e, { cssScope: h } = q;
553
443
  for (const b in d)
554
444
  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 };
445
+ for (const b in r)
446
+ t += `${h} .${b}--bg{background-color:${r[b]}}${h} .${b}{color:${r[b]}}`;
447
+ const y = { ...d, info: o, warning: n, success: i, error: a };
558
448
  for (const b in y)
559
449
  l[b] = y[b];
560
450
  let B = "";
561
451
  return Object.entries(l).forEach(([b, R]) => {
562
452
  B += `--w-${b}-color: ${R};`;
563
453
  }), `:root{${B}}${t}`;
564
- }, Me = (e, t) => {
454
+ }, Le = (e, t) => {
565
455
  let l = "";
566
- const { cssScope: a } = U;
567
- return e.forEach(({ min: r, label: i }) => {
456
+ const { cssScope: o } = q;
457
+ return e.forEach(({ min: n, label: i }) => {
568
458
  if (i === "xs")
569
- for (let o = 0; o < t; o++)
570
- l += `${a} .${i}${t - o}{width:${parseFloat(((t - o) * 100 / t).toFixed(4))}%;}`;
459
+ for (let a = 0; a < t; a++)
460
+ l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
571
461
  else {
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))}%;}`;
462
+ l += `@media(min-width:${n}px){`;
463
+ for (let a = 0; a < t; a++)
464
+ l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
575
465
  l += "}";
576
466
  }
577
467
  }), l;
578
- }, Ee = (e) => {
468
+ }, xe = (e) => {
579
469
  let t = "";
580
- const { cssScope: l, baseIncrement: a } = U, r = [
470
+ const { cssScope: l, baseIncrement: o } = q, n = [
581
471
  "show{display:block}",
582
472
  "hide{display:none}",
583
473
  "d-flex{display:flex}",
@@ -611,50 +501,160 @@ const ze = (e) => {
611
501
  "justify-space-around{justify-content:space-around}",
612
502
  "justify-space-evenly{justify-content:space-evenly}"
613
503
  ], i = Array(12).fill();
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}}`);
504
+ return e.forEach(({ label: a, min: r }) => {
505
+ 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}}`);
506
+ }), e.forEach(({ label: a, min: r, max: d }) => {
507
+ 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}}`;
508
+ }), e.forEach(({ label: a, max: r }) => {
509
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${l} .${a}d-${d}`).join("") + i.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
620
510
  }), t;
621
511
  }, ce = (e) => {
622
512
  const t = window.innerWidth, l = se.values.slice(0);
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",
513
+ l.push(t), l.sort((n, i) => n - i);
514
+ const o = se.keys[l.indexOf(t)] || "xl";
515
+ o !== he && (he = o, e.breakpoint = {
516
+ name: o,
517
+ xs: o === "xs",
518
+ sm: o === "sm",
519
+ md: o === "md",
520
+ lg: o === "lg",
521
+ xl: o === "xl",
632
522
  width: t
633
523
  }), e.breakpoint.width = window.innerWidth;
634
- }, We = (e) => {
524
+ }, Pe = (e) => {
635
525
  const { config: t } = e;
636
526
  if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
637
527
  const l = document.createElement("style");
638
- l.id = "wave-ui-styles", l.innerHTML = Ne(t);
639
- const a = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
640
- a ? a.before(l) : document.head.appendChild(l);
528
+ l.id = "wave-ui-styles", l.innerHTML = ze(t);
529
+ const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
530
+ o ? o.before(l) : document.head.appendChild(l);
641
531
  }
642
532
  ce(e), window.addEventListener("resize", () => ce(e));
643
- }, Ae = (e) => {
533
+ }, Oe = (e) => {
644
534
  if (!document.getElementById("wave-ui-colors")) {
645
535
  const t = document.createElement("style");
646
- t.id = "wave-ui-colors", t.innerHTML = ze(e);
536
+ t.id = "wave-ui-colors", t.innerHTML = Te(e);
647
537
  const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
648
538
  l ? l.before(t) : document.head.appendChild(t);
649
539
  }
650
- }, Ne = (e) => {
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;
540
+ }, ze = (e) => {
541
+ const t = Object.entries(e.breakpoints), l = t.map(([i, a], r) => {
542
+ const [, d = 0] = t[r - 1] || [];
543
+ return { label: i, min: d ? d + 1 : 0, max: a };
544
+ }), o = getComputedStyle(document.documentElement);
545
+ q.cssScope = o.getPropertyValue("--w-css-scope"), q.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
546
+ let n = "";
547
+ return n += Le(l, e.css.grid), e.css.breakpointLayoutClasses && (n += xe(l)), n;
548
+ }, Me = ["innerHTML"];
549
+ function Ee(e, t, l, o, n, i) {
550
+ const a = $("w-alert");
551
+ return s(), m(_e, { to: ".w-app" }, [
552
+ I(ae, {
553
+ class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
554
+ tag: "div",
555
+ name: i.transition,
556
+ appear: ""
557
+ }, {
558
+ default: g(() => [
559
+ (s(!0), u(k, null, L(i.notifications, (r) => (s(), u(k, null, [
560
+ r._value ? (s(), m(a, C({
561
+ class: "white--bg",
562
+ key: r._uid,
563
+ modelValue: r._value,
564
+ "onUpdate:modelValue": (d) => r._value = d,
565
+ onClose: r.dismiss
566
+ }, i.notifProps(r)), {
567
+ default: g(() => [
568
+ w("div", {
569
+ innerHTML: r.message
570
+ }, null, 8, Me)
571
+ ]),
572
+ _: 2
573
+ }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
574
+ ], 64))), 256))
575
+ ]),
576
+ _: 1
577
+ }, 8, ["class", "name"])
578
+ ]);
579
+ }
580
+ const v = (e, t) => {
581
+ const l = e.__vccOpts || e;
582
+ for (const [o, n] of t)
583
+ l[o] = n;
584
+ return l;
585
+ }, We = {
586
+ name: "w-notification-manager",
587
+ computed: {
588
+ conf() {
589
+ return this.$waveui.config.notificationManager;
590
+ },
591
+ notifications() {
592
+ var e;
593
+ return (e = this.$waveui._notificationManager) == null ? void 0 : e.notifications;
594
+ },
595
+ transition() {
596
+ return this.conf.transition ? this.conf.transition.replace("default", `slide-${this.conf.align === "left" ? "right" : "left"}`) : "";
597
+ }
598
+ },
599
+ methods: {
600
+ notifProps(e) {
601
+ const { _value: t, _uid: l, message: o, timeout: n, ...i } = e;
602
+ return i.dismiss && (i.dismiss = !0), i;
603
+ }
604
+ }
605
+ }, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
606
+ var H;
607
+ const F = class {
608
+ constructor() {
609
+ D(this, "notifications");
610
+ D(this, "_uid");
611
+ D(this, "_notificationDefaults");
612
+ if (Y(F, H))
613
+ return Y(F, H);
614
+ this.notifications = [], this._uid = 0, this._notificationDefaults = {
615
+ _uid: 0,
616
+ _value: !0,
617
+ message: "",
618
+ timeout: 4e3,
619
+ dismiss: !0
620
+ }, te(F, H, this);
621
+ }
622
+ notify(...t) {
623
+ let l = {
624
+ ...this._notificationDefaults,
625
+ _uid: this._uid++
626
+ };
627
+ if (typeof t[0] == "object")
628
+ l = { ...l, ...t[0] };
629
+ else {
630
+ const [o, n, i] = t;
631
+ l = {
632
+ ...l,
633
+ message: o || "",
634
+ [n === void 0 ? "info" : n]: !0,
635
+ timeout: i || i === 0 ? parseFloat(i) : 4e3
636
+ };
637
+ }
638
+ l.dismiss && (l.dismiss = () => this.dismiss(l._uid)), this.notifications.push(l), ~~l.timeout !== 0 && setTimeout(() => this.dismiss(l._uid), l.timeout);
639
+ }
640
+ dismiss(t) {
641
+ this.notifications = this.notifications.filter((l) => l._uid !== t);
642
+ }
643
+ };
644
+ let G = F;
645
+ H = new WeakMap(), ee(G, H, void 0);
646
+ const Ne = (e, t, l) => {
647
+ const o = document.createElement("div");
648
+ e.appendChild(o);
649
+ const n = Ce(Se({
650
+ ...Ae,
651
+ inject: ["$waveui"]
652
+ })).provide("$waveui", l);
653
+ for (const i in t) {
654
+ const a = t[i];
655
+ n.component(a.name, { ...a, inject: ["$waveui"] });
656
+ }
657
+ n.mount(o), o.remove();
658
658
  };
659
659
  let pe = !1;
660
660
  const Ke = (e) => {
@@ -663,10 +663,24 @@ const Ke = (e) => {
663
663
  e.preferredTheme = l.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
664
664
  });
665
665
  }, He = (e, t) => {
666
- for (const l in t)
667
- e.props[l].default = t[l];
666
+ var l, o;
667
+ for (const n in t)
668
+ if ((l = e.props) != null && l[n])
669
+ e.props[n].default = t[n];
670
+ else {
671
+ let i = !1;
672
+ if (Array.isArray(e.mixins) && e.mixins.length) {
673
+ for (const a of e.mixins)
674
+ if ((o = a == null ? void 0 : a.props) != null && o[n]) {
675
+ a.props[n].default = t[n], i = !0;
676
+ break;
677
+ }
678
+ i || U(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
679
+ continue;
680
+ }
681
+ }
668
682
  };
669
- var q;
683
+ var X;
670
684
  const j = class {
671
685
  constructor(t, l = {}) {
672
686
  D(this, "$waveui", {
@@ -688,58 +702,58 @@ const j = class {
688
702
  this._notificationManager.notify(...t);
689
703
  },
690
704
  switchTheme(t, l = !1) {
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);
705
+ var n, i;
706
+ 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);
707
+ const o = this.config.colors[this.theme];
708
+ Oe(o), this.colors = de(o, ue);
695
709
  }
696
710
  });
697
- if (X(j, q)) {
711
+ if (Y(j, X)) {
698
712
  console.warn("Wave UI is already instantiated.");
699
713
  return;
700
714
  }
701
- if (this.$waveui._notificationManager = new Y(), l.theme || (l.theme = "light"), l.colors) {
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 };
715
+ if (this.$waveui._notificationManager = new G(), l.theme || (l.theme = "light"), l.colors) {
716
+ const a = { ...l.colors };
717
+ l.colors.light || (l.colors.light = a), l.colors.dark || (l.colors.dark = a), l.colors = { light: l.colors.light, dark: l.colors.dark };
704
718
  }
705
- let { components: a, ...r } = l;
706
- r = this.$waveui.config = ye(r), r.css.colorShades && Oe(r);
719
+ let { components: o, ...n } = l;
720
+ n = this.$waveui.config = ye(n), n.css.colorShades && Re(n);
707
721
  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));
722
+ t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
709
723
  }
710
724
  static install(t, l = {}) {
711
- var r;
725
+ var n;
712
726
  t.directive("focus", {
713
727
  mounted: (i) => setTimeout(() => i.focus(), 0)
714
728
  }), t.directive("scroll", {
715
- mounted: (i, o) => {
716
- const n = (d) => {
717
- o.value(d, i) && window.removeEventListener("scroll", n);
729
+ mounted: (i, a) => {
730
+ const r = (d) => {
731
+ a.value(d, i) && window.removeEventListener("scroll", r);
718
732
  };
719
- window.addEventListener("scroll", n);
733
+ window.addEventListener("scroll", r);
720
734
  }
721
735
  });
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);
736
+ const { components: o = {} } = l || {};
737
+ for (const i in o) {
738
+ const a = o[i];
739
+ (n = l.presets) != null && n[a.name] && He(a, l.presets[a.name]), t.component(a.name, a);
726
740
  }
727
741
  t.mixin({
728
742
  beforeMount() {
729
743
  if (!pe) {
730
744
  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), Pe(n, a, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
745
+ const i = Be("$waveui"), { config: a } = i, r = document.querySelector(a.on) || document.body;
746
+ r.classList.add("w-app"), a.theme === "auto" ? Ke(i) : i.switchTheme(a.theme, !0), Pe(i), Ne(r, o, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
733
747
  }
734
748
  }
735
- }), new j(t, l), te(j, q, !0);
749
+ }), new j(t, l), te(j, X, !0);
736
750
  }
737
751
  };
738
752
  let K = j;
739
- q = new WeakMap(), ee(K, q, !1);
753
+ X = new WeakMap(), ee(K, X, !1);
740
754
  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");
755
+ function qe(e, t, l, o, n, i) {
756
+ const a = $("w-button"), r = $("w-transition-expand");
743
757
  return s(), u("div", {
744
758
  class: f(["w-accordion", i.accordionClasses])
745
759
  }, [
@@ -755,7 +769,7 @@ function qe(e, t, l, a, r, i) {
755
769
  onKeypress: E((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
756
770
  tabindex: !d._disabled && 0
757
771
  }, [
758
- l.expandIcon && !l.expandIconRight ? (s(), m(o, {
772
+ l.expandIcon && !l.expandIconRight ? (s(), m(a, {
759
773
  key: 0,
760
774
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
761
775
  icon: d._expanded && l.collapseIcon || l.expandIcon,
@@ -783,7 +797,7 @@ function qe(e, t, l, a, r, i) {
783
797
  innerHTML: d[l.itemTitleKey]
784
798
  }, null, 8, je)
785
799
  ]),
786
- l.expandIcon && l.expandIconRight ? (s(), m(o, {
800
+ l.expandIcon && l.expandIconRight ? (s(), m(a, {
787
801
  key: 3,
788
802
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
789
803
  icon: d._expanded && l.collapseIcon || l.expandIcon,
@@ -793,7 +807,7 @@ function qe(e, t, l, a, r, i) {
793
807
  onClick: M((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
794
808
  }, null, 8, ["icon", "onClick", "class"])) : c("", !0)
795
809
  ], 42, Fe),
796
- I(n, {
810
+ I(r, {
797
811
  y: "",
798
812
  onAfterLeave: (y) => i.onEndOfCollapse(d),
799
813
  duration: l.duration
@@ -869,8 +883,8 @@ const Xe = {
869
883
  },
870
884
  methods: {
871
885
  toggleItem(e, t) {
872
- e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((a) => a._index !== e._index && (a._expanded = !1));
873
- const l = this.accordionItems.map((a) => a._expanded || !1);
886
+ e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
887
+ const l = this.accordionItems.map((o) => o._expanded || !1);
874
888
  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
889
  },
876
890
  onEndOfCollapse(e) {
@@ -912,14 +926,14 @@ const Xe = {
912
926
  }
913
927
  }
914
928
  }, 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({
929
+ function Je(e, t, l, o, n, i) {
930
+ const a = $("w-icon"), r = $("w-button");
931
+ return n.show ? (s(), u("div", C({
918
932
  key: 0,
919
933
  class: "w-alert"
920
934
  }, W(e.$attrs, !0), { class: i.classes }), [
921
935
  i.type || l.icon || l.dismiss ? (s(), u(k, { key: 0 }, [
922
- i.type || l.icon ? (s(), m(o, {
936
+ i.type || l.icon ? (s(), m(a, {
923
937
  key: 0,
924
938
  class: "w-alert__icon mr2"
925
939
  }, {
@@ -931,11 +945,11 @@ function Je(e, t, l, a, r, i) {
931
945
  w("div", Ge, [
932
946
  p(e.$slots, "default")
933
947
  ]),
934
- l.dismiss ? (s(), m(n, {
948
+ l.dismiss ? (s(), m(r, {
935
949
  key: 1,
936
950
  class: "w-alert__dismiss",
937
951
  onClick: t[0] || (t[0] = (d) => {
938
- e.$emit("update:modelValue", r.show = !1), e.$emit("input", !1), e.$emit("close", !1);
952
+ e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
939
953
  }),
940
954
  icon: "wi-cross",
941
955
  color: "inherit",
@@ -1025,7 +1039,7 @@ const Qe = {
1025
1039
  }
1026
1040
  }
1027
1041
  }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-app" };
1028
- function tt(e, t, l, a, r, i) {
1042
+ function tt(e, t, l, o, n, i) {
1029
1043
  return s(), u("div", et, [
1030
1044
  p(e.$slots, "default")
1031
1045
  ]);
@@ -1046,7 +1060,7 @@ const lt = {
1046
1060
  textRight: { type: Boolean }
1047
1061
  }
1048
1062
  }, it = /* @__PURE__ */ v(lt, [["render", tt]]);
1049
- function st(e, t, l, a, r, i) {
1063
+ function st(e, t, l, o, n, i) {
1050
1064
  return s(), u("div", C({ class: "w-badge-wrap" }, W(e.$attrs, !0)), [
1051
1065
  p(e.$slots, "default"),
1052
1066
  I(P, {
@@ -1135,18 +1149,18 @@ const at = {
1135
1149
  }
1136
1150
  }
1137
1151
  }, ot = /* @__PURE__ */ v(at, [["render", st]]), nt = ["innerHTML"];
1138
- function rt(e, t, l, a, r, i) {
1139
- const o = $("w-icon");
1152
+ function rt(e, t, l, o, n, i) {
1153
+ const a = $("w-icon");
1140
1154
  return s(), u("div", {
1141
1155
  class: f(["w-breadcrumbs", i.classes])
1142
1156
  }, [
1143
- (s(!0), u(k, null, L(l.items, (n, d) => (s(), u(k, null, [
1157
+ (s(!0), u(k, null, L(l.items, (r, d) => (s(), u(k, null, [
1144
1158
  d && e.$slots.separator ? (s(), u("span", {
1145
1159
  class: f(["w-breadcrumbs__separator", l.separatorColor]),
1146
1160
  key: `${d}a`
1147
1161
  }, [
1148
1162
  p(e.$slots, "separator", { index: d })
1149
- ], 2)) : d ? (s(), m(o, {
1163
+ ], 2)) : d ? (s(), m(a, {
1150
1164
  class: f(["w-breadcrumbs__separator", l.separatorColor]),
1151
1165
  key: `${d}b`
1152
1166
  }, {
@@ -1155,16 +1169,16 @@ function rt(e, t, l, a, r, i) {
1155
1169
  ]),
1156
1170
  _: 2
1157
1171
  }, 1032, ["class"])) : c("", !0),
1158
- n[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(k, { key: 2 }, [
1172
+ r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(k, { key: 2 }, [
1159
1173
  e.$slots.item ? (s(), m(V(i.hasRouter ? "router-link" : "a"), {
1160
1174
  class: f(["w-breadcrumbs__item", l.color || null]),
1161
1175
  key: `${d}c`,
1162
- to: i.hasRouter && n[l.itemRouteKey],
1163
- href: n[l.itemRouteKey]
1176
+ to: i.hasRouter && r[l.itemRouteKey],
1177
+ href: r[l.itemRouteKey]
1164
1178
  }, {
1165
1179
  default: g(() => [
1166
1180
  p(e.$slots, "item", {
1167
- item: n,
1181
+ item: r,
1168
1182
  index: d + 1,
1169
1183
  isLast: d === l.items.length - 1
1170
1184
  })
@@ -1173,18 +1187,18 @@ function rt(e, t, l, a, r, i) {
1173
1187
  }, 1032, ["to", "href", "class"])) : (s(), m(V(i.hasRouter ? "router-link" : "a"), {
1174
1188
  class: f(["w-breadcrumbs__item", l.color || null]),
1175
1189
  key: `${d}d`,
1176
- to: i.hasRouter && n[l.itemRouteKey],
1177
- href: n[l.itemRouteKey],
1178
- innerHTML: n[l.itemLabelKey]
1190
+ to: i.hasRouter && r[l.itemRouteKey],
1191
+ href: r[l.itemRouteKey],
1192
+ innerHTML: r[l.itemLabelKey]
1179
1193
  }, null, 8, ["to", "href", "innerHTML", "class"]))
1180
1194
  ], 64)) : e.$slots.item ? p(e.$slots, "item", {
1181
1195
  key: `${d}e`,
1182
- item: n,
1196
+ item: r,
1183
1197
  index: d + 1,
1184
1198
  isLast: d === l.items.length - 1
1185
1199
  }) : (s(), u("span", {
1186
1200
  key: `${d}f`,
1187
- innerHTML: n[l.itemLabelKey]
1201
+ innerHTML: r[l.itemLabelKey]
1188
1202
  }, null, 8, nt))
1189
1203
  ], 64))), 256))
1190
1204
  ], 2);
@@ -1233,8 +1247,8 @@ const dt = {
1233
1247
  "stroke-linecap": "round"
1234
1248
  })
1235
1249
  ], -1);
1236
- function pt(e, t, l, a, r, i) {
1237
- const o = $("w-icon");
1250
+ function pt(e, t, l, o, n, i) {
1251
+ const a = $("w-icon");
1238
1252
  return s(), m(V(l.route ? "a" : "button"), C({
1239
1253
  class: ["w-button", i.classes],
1240
1254
  type: !l.route && l.type,
@@ -1242,7 +1256,7 @@ function pt(e, t, l, a, r, i) {
1242
1256
  disabled: !!l.disabled || null
1243
1257
  }, W(i.listeners), { style: i.styles }), {
1244
1258
  default: g(() => [
1245
- l.icon ? (s(), m(o, ie(C({ key: 0 }, l.iconProps || {})), {
1259
+ l.icon ? (s(), m(a, ie(C({ key: 0 }, l.iconProps || {})), {
1246
1260
  default: g(() => [
1247
1261
  S(_(l.icon), 1)
1248
1262
  ]),
@@ -1353,11 +1367,11 @@ const ft = {
1353
1367
  }
1354
1368
  }
1355
1369
  }, gt = /* @__PURE__ */ v(ft, [["render", pt]]), mt = ["innerHTML"];
1356
- function bt(e, t, l, a, r, i) {
1357
- const o = $("button-partial");
1370
+ function bt(e, t, l, o, n, i) {
1371
+ const a = $("button-partial");
1358
1372
  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)), {
1373
+ activator: g(({ on: r }) => [
1374
+ I(a, C(i.buttonProps, W(r)), {
1361
1375
  default: g(() => [
1362
1376
  p(e.$slots, "default")
1363
1377
  ]),
@@ -1368,7 +1382,10 @@ function bt(e, t, l, a, r, i) {
1368
1382
  w("div", { innerHTML: l.tooltip }, null, 8, mt)
1369
1383
  ]),
1370
1384
  _: 3
1371
- }, 16)) : (s(), m(o, ie(C({ key: 1 }, i.buttonProps)), {
1385
+ }, 16)) : (s(), m(a, ie(C({ key: 1 }, i.buttonProps)), {
1386
+ loading: g(() => [
1387
+ p(e.$slots, "loading")
1388
+ ]),
1372
1389
  default: g(() => [
1373
1390
  p(e.$slots, "default")
1374
1391
  ]),
@@ -1420,8 +1437,8 @@ const yt = {
1420
1437
  }
1421
1438
  }
1422
1439
  }, 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");
1440
+ function kt(e, t, l, o, n, i) {
1441
+ const a = $("w-image");
1425
1442
  return s(), u("div", {
1426
1443
  class: f(["w-card", i.classes])
1427
1444
  }, [
@@ -1435,7 +1452,7 @@ function kt(e, t, l, a, r, i) {
1435
1452
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }]),
1436
1453
  innerHTML: l.title
1437
1454
  }, null, 10, vt)) : c("", !0),
1438
- l.image ? (s(), m(o, C({
1455
+ l.image ? (s(), m(a, C({
1439
1456
  key: 2,
1440
1457
  class: "w-card__image",
1441
1458
  src: l.image
@@ -1555,12 +1572,12 @@ const _t = {
1555
1572
  ], -1), It = [
1556
1573
  Vt
1557
1574
  ], Rt = ["for"], Tt = ["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, readonly: e.isReadonly }, {
1575
+ function Lt(e, t, l, o, n, i) {
1576
+ return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1560
1577
  valid: e.valid,
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);
1578
+ "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1579
+ onReset: t[6] || (t[6] = (a) => {
1580
+ e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
1564
1581
  }),
1565
1582
  class: i.classes
1566
1583
  }), {
@@ -1570,15 +1587,15 @@ function Lt(e, t, l, a, r, i) {
1570
1587
  id: `w-checkbox--${e._.uid}`,
1571
1588
  type: "checkbox",
1572
1589
  name: e.inputName,
1573
- checked: r.isChecked || null,
1590
+ checked: n.isChecked || null,
1574
1591
  disabled: e.isDisabled || e.isReadonly || null,
1575
1592
  required: e.required || null,
1576
1593
  tabindex: e.tabindex || null,
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",
1594
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
1595
+ onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
1596
+ onChange: t[2] || (t[2] = (a) => i.onInput()),
1597
+ onKeypress: t[3] || (t[3] = E((...a) => i.onInput && i.onInput(...a), ["enter"])),
1598
+ "aria-checked": n.isChecked || "false",
1582
1599
  role: "checkbox"
1583
1600
  }, null, 40, St),
1584
1601
  i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
@@ -1599,7 +1616,7 @@ function Lt(e, t, l, a, r, i) {
1599
1616
  ], 64)) : c("", !0),
1600
1617
  w("div", {
1601
1618
  class: f(["w-checkbox__input", this.color]),
1602
- onClick: t[4] || (t[4] = (o) => {
1619
+ onClick: t[4] || (t[4] = (a) => {
1603
1620
  e.$refs.input.focus(), e.$refs.input.click();
1604
1621
  })
1605
1622
  }, It, 2),
@@ -1684,24 +1701,24 @@ const xt = {
1684
1701
  }
1685
1702
  }
1686
1703
  }, Pt = /* @__PURE__ */ v(xt, [["render", Lt]]), Ot = ["innerHTML"];
1687
- function zt(e, t, l, a, r, i) {
1688
- const o = $("w-checkbox");
1689
- 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 }, {
1704
+ function zt(e, t, l, o, n, i) {
1705
+ const a = $("w-checkbox");
1706
+ return s(), m(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 }, {
1690
1707
  valid: e.valid,
1691
- "onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
1708
+ "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
1692
1709
  onReset: i.reset,
1693
1710
  column: !l.inline,
1694
1711
  wrap: l.inline,
1695
1712
  class: i.classes
1696
1713
  }), {
1697
1714
  default: g(() => [
1698
- (s(!0), u(k, null, L(i.checkboxItems, (n, d) => (s(), m(o, C({
1715
+ (s(!0), u(k, null, L(i.checkboxItems, (r, d) => (s(), m(a, C({
1699
1716
  key: d,
1700
- "model-value": n._isChecked,
1701
- "onUpdate:modelValue": (h) => i.toggleCheck(n, h),
1717
+ "model-value": r._isChecked,
1718
+ "onUpdate:modelValue": (h) => i.toggleCheck(r, h),
1702
1719
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
1703
1720
  name: `${e.inputName}[]`
1704
- }, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
1721
+ }, { label: r.label, color: r.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
1705
1722
  disabled: e.isDisabled || null,
1706
1723
  readonly: e.isReadonly || null,
1707
1724
  class: { mt1: !l.inline && d }
@@ -1709,13 +1726,13 @@ function zt(e, t, l, a, r, i) {
1709
1726
  default: g(() => [
1710
1727
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
1711
1728
  key: 0,
1712
- item: i.getOriginalItem(n),
1713
- checked: !!n._isChecked,
1729
+ item: i.getOriginalItem(r),
1730
+ checked: !!r._isChecked,
1714
1731
  index: d + 1,
1715
- innerHTML: n.label
1716
- }) : n.label ? (s(), u("div", {
1732
+ innerHTML: r.label
1733
+ }) : r.label ? (s(), u("div", {
1717
1734
  key: 1,
1718
- innerHTML: n.label
1735
+ innerHTML: r.label
1719
1736
  }, null, 8, Ot)) : c("", !0)
1720
1737
  ]),
1721
1738
  _: 2
@@ -1770,7 +1787,7 @@ const Mt = {
1770
1787
  },
1771
1788
  toggleCheck(e, t) {
1772
1789
  e._isChecked = t;
1773
- const l = this.checkboxItems.filter((a) => a._isChecked).map((a) => a.value);
1790
+ const l = this.checkboxItems.filter((o) => o._isChecked).map((o) => o.value);
1774
1791
  this.$emit("update:modelValue", l), this.$emit("input", l);
1775
1792
  },
1776
1793
  getOriginalItem(e) {
@@ -1778,14 +1795,14 @@ const Mt = {
1778
1795
  }
1779
1796
  }
1780
1797
  }, Et = /* @__PURE__ */ v(Mt, [["render", zt]]);
1781
- function Wt(e, t, l, a, r, i) {
1782
- const o = $("w-button"), n = $("w-flex"), d = $("w-menu"), h = me("focus");
1798
+ function Wt(e, t, l, o, n, i) {
1799
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = me("focus");
1783
1800
  return s(), m(d, C({
1784
1801
  modelValue: e.showPopup,
1785
1802
  "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
1786
1803
  }, i.wMenuProps), {
1787
1804
  activator: g(({ on: y }) => [
1788
- I(o, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1805
+ I(a, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1789
1806
  default: g(() => [
1790
1807
  p(e.$slots, "default")
1791
1808
  ]),
@@ -1793,7 +1810,7 @@ function Wt(e, t, l, a, r, i) {
1793
1810
  }, 1040)
1794
1811
  ]),
1795
1812
  default: g(() => [
1796
- I(n, {
1813
+ I(r, {
1797
1814
  column: !l.inline,
1798
1815
  "align-center": ""
1799
1816
  }, {
@@ -1806,7 +1823,7 @@ function Wt(e, t, l, a, r, i) {
1806
1823
  w("div", {
1807
1824
  class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
1808
1825
  }, [
1809
- l.cancel !== !1 ? (s(), m(o, C({
1826
+ l.cancel !== !1 ? (s(), m(a, C({
1810
1827
  key: 0,
1811
1828
  class: "mr2"
1812
1829
  }, i.cancelButtonProps, {
@@ -1821,7 +1838,7 @@ function Wt(e, t, l, a, r, i) {
1821
1838
  ]),
1822
1839
  _: 3
1823
1840
  }, 16, ["bg-color", "onClick"])) : c("", !0),
1824
- N((s(), m(o, C(i.confirmButtonProps, {
1841
+ N((s(), m(a, C(i.confirmButtonProps, {
1825
1842
  "bg-color": (i.confirmButton || {}).bgColor || "success",
1826
1843
  onKeyup: t[1] || (t[1] = E((y) => !l.persistent && i.onCancel(), ["escape"])),
1827
1844
  onClick: i.onConfirm
@@ -1937,7 +1954,7 @@ const At = {
1937
1954
  }
1938
1955
  }
1939
1956
  }, Nt = /* @__PURE__ */ v(At, [["render", Wt]]);
1940
- function Kt(e, t, l, a, r, i) {
1957
+ function Kt(e, t, l, o, n, i) {
1941
1958
  return s(), u("div", {
1942
1959
  class: f(["w-date-picker", i.classes]),
1943
1960
  style: T(i.styles)
@@ -1964,11 +1981,11 @@ const Ht = {
1964
1981
  }
1965
1982
  }
1966
1983
  }, Dt = /* @__PURE__ */ v(Ht, [["render", Kt]]);
1967
- function Ft(e, t, l, a, r, i) {
1968
- const o = $("w-card"), n = $("w-overlay");
1969
- return s(), m(n, {
1984
+ function Ft(e, t, l, o, n, i) {
1985
+ const a = $("w-card"), r = $("w-overlay");
1986
+ return s(), m(r, {
1970
1987
  class: f(["w-dialog", i.classes]),
1971
- "model-value": r.showWrapper,
1988
+ "model-value": n.showWrapper,
1972
1989
  persistent: l.persistent,
1973
1990
  "persistent-no-animation": l.persistentNoAnimation,
1974
1991
  onClick: i.onOutsideClick,
@@ -1983,7 +2000,7 @@ function Ft(e, t, l, a, r, i) {
1983
2000
  onAfterLeave: i.onBeforeClose
1984
2001
  }, {
1985
2002
  default: g(() => [
1986
- N(I(o, {
2003
+ N(I(a, {
1987
2004
  class: f(["w-dialog__content", l.dialogClass]),
1988
2005
  ref: "dialog",
1989
2006
  "no-border": "",
@@ -2014,7 +2031,7 @@ function Ft(e, t, l, a, r, i) {
2014
2031
  key: "1"
2015
2032
  } : void 0
2016
2033
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2017
- [oe, r.showContent]
2034
+ [oe, n.showContent]
2018
2035
  ])
2019
2036
  ]),
2020
2037
  _: 3
@@ -2091,7 +2108,7 @@ const jt = {
2091
2108
  }
2092
2109
  }
2093
2110
  }, Ut = /* @__PURE__ */ v(jt, [["render", Ft]]), qt = ["role", "aria-orientation"];
2094
- function Xt(e, t, l, a, r, i) {
2111
+ function Xt(e, t, l, o, n, i) {
2095
2112
  return s(), u("div", {
2096
2113
  class: f(["w-divider", i.classes]),
2097
2114
  role: e.$slots.default ? null : "presentation",
@@ -2121,9 +2138,9 @@ const Yt = {
2121
2138
  }
2122
2139
  }
2123
2140
  }, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]), Jt = { class: "w-drawer-wrap__pushable" };
2124
- function Qt(e, t, l, a, r, i) {
2125
- const o = $("w-overlay");
2126
- return r.showWrapper || l.pushContent ? (s(), u("div", {
2141
+ function Qt(e, t, l, o, n, i) {
2142
+ const a = $("w-overlay");
2143
+ return n.showWrapper || l.pushContent ? (s(), u("div", {
2127
2144
  key: 0,
2128
2145
  class: f(["w-drawer-wrap", i.wrapperClasses])
2129
2146
  }, [
@@ -2133,10 +2150,10 @@ function Qt(e, t, l, a, r, i) {
2133
2150
  style: T(i.trackStyles)
2134
2151
  }, [
2135
2152
  w("div", Jt, [
2136
- l.noOverlay ? c("", !0) : (s(), m(o, {
2153
+ l.noOverlay ? c("", !0) : (s(), m(a, {
2137
2154
  key: 0,
2138
- modelValue: r.showDrawer,
2139
- "onUpdate:modelValue": t[0] || (t[0] = (n) => r.showDrawer = n),
2155
+ modelValue: n.showDrawer,
2156
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2140
2157
  onClick: i.onOutsideClick,
2141
2158
  persistent: l.persistent,
2142
2159
  "persistent-no-animation": "",
@@ -2151,7 +2168,7 @@ function Qt(e, t, l, a, r, i) {
2151
2168
  onAfterLeave: i.onClose
2152
2169
  }, {
2153
2170
  default: g(() => [
2154
- r.showDrawer ? (s(), m(V(l.tag || "aside"), {
2171
+ n.showDrawer ? (s(), m(V(l.tag || "aside"), {
2155
2172
  key: 0,
2156
2173
  class: f(["w-drawer", i.drawerClasses]),
2157
2174
  ref: "drawer",
@@ -2166,10 +2183,10 @@ function Qt(e, t, l, a, r, i) {
2166
2183
  _: 3
2167
2184
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2168
2185
  ], 4)) : (s(), u(k, { key: 1 }, [
2169
- l.noOverlay ? c("", !0) : (s(), m(o, {
2186
+ l.noOverlay ? c("", !0) : (s(), m(a, {
2170
2187
  key: 0,
2171
- modelValue: r.showDrawer,
2172
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.showDrawer = n),
2188
+ modelValue: n.showDrawer,
2189
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2173
2190
  onClick: i.onOutsideClick,
2174
2191
  persistent: l.persistent,
2175
2192
  "persistent-no-animation": "",
@@ -2183,7 +2200,7 @@ function Qt(e, t, l, a, r, i) {
2183
2200
  onAfterLeave: i.onClose
2184
2201
  }, {
2185
2202
  default: g(() => [
2186
- r.showDrawer ? (s(), m(V(l.tag || "aside"), {
2203
+ n.showDrawer ? (s(), m(V(l.tag || "aside"), {
2187
2204
  key: 0,
2188
2205
  class: f(["w-drawer", i.drawerClasses]),
2189
2206
  ref: "drawer",
@@ -2306,7 +2323,7 @@ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2306
2323
  }
2307
2324
  }
2308
2325
  }, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
2309
- function ll(e, t, l, a, r, i) {
2326
+ function ll(e, t, l, o, n, i) {
2310
2327
  return s(), m(V(l.tag), {
2311
2328
  class: f(["w-flex", i.classes])
2312
2329
  }, {
@@ -2364,11 +2381,11 @@ const il = {
2364
2381
  }
2365
2382
  }
2366
2383
  }, sl = /* @__PURE__ */ v(il, [["render", ll]]);
2367
- function al(e, t, l, a, r, i) {
2384
+ function al(e, t, l, o, n, i) {
2368
2385
  return s(), u("form", {
2369
2386
  class: f(["w-form", i.classes]),
2370
- onSubmit: t[0] || (t[0] = (...o) => i.onSubmit && i.onSubmit(...o)),
2371
- onReset: t[1] || (t[1] = (...o) => i.reset && i.reset(...o)),
2387
+ onSubmit: t[0] || (t[0] = (...a) => i.onSubmit && i.onSubmit(...a)),
2388
+ onReset: t[1] || (t[1] = (...a) => i.reset && i.reset(...a)),
2372
2389
  novalidate: ""
2373
2390
  }, [
2374
2391
  p(e.$slots, "default")
@@ -2437,8 +2454,8 @@ const ol = async (e, t) => {
2437
2454
  let t = 0;
2438
2455
  return await (async () => {
2439
2456
  var l;
2440
- for (const a of this.formElements)
2441
- !((l = a.validators) != null && l.length) || a.disabled || a.readonly || (await this.checkElementValidators(a), t += ~~!a.Validation.isValid, a.$emit("update:valid", a.Validation.isValid));
2457
+ for (const o of this.formElements)
2458
+ !((l = o.validators) != null && l.length) || o.disabled || o.readonly || (await this.checkElementValidators(o), t += ~~!o.Validation.isValid, o.$emit("update:valid", o.Validation.isValid));
2442
2459
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2443
2460
  },
2444
2461
  async validateElement(e) {
@@ -2446,16 +2463,16 @@ const ol = async (e, t) => {
2446
2463
  },
2447
2464
  async checkElementValidators(e) {
2448
2465
  let t = !1, l = "";
2449
- await ol(e.validators, async (a) => {
2450
- const r = await (typeof a == "function" && a(e.inputValue));
2451
- return t = typeof r != "string", l = t ? "" : r, !t;
2466
+ await ol(e.validators, async (o) => {
2467
+ const n = await (typeof o == "function" && o(e.inputValue));
2468
+ return t = typeof n != "string", l = t ? "" : n, !t;
2452
2469
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
2453
2470
  },
2454
2471
  reset(e) {
2455
2472
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2456
2473
  },
2457
2474
  updateErrorsCount(e = null, t = !1) {
2458
- this.errorsCount = e !== null ? e : this.formElements.reduce((l, a) => l + ~~(a.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
2475
+ this.errorsCount = e !== null ? e : this.formElements.reduce((l, o) => l + ~~(o.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
2459
2476
  },
2460
2477
  onSubmit(e) {
2461
2478
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2470,8 +2487,8 @@ const ol = async (e, t) => {
2470
2487
  }
2471
2488
  }
2472
2489
  }, rl = /* @__PURE__ */ v(nl, [["render", al]]);
2473
- function dl(e, t, l, a, r, i) {
2474
- const o = $("w-transition-expand");
2490
+ function dl(e, t, l, o, n, i) {
2491
+ const a = $("w-transition-expand");
2475
2492
  return s(), u("div", {
2476
2493
  class: f(i.classes)
2477
2494
  }, [
@@ -2480,7 +2497,7 @@ function dl(e, t, l, a, r, i) {
2480
2497
  }, [
2481
2498
  p(e.$slots, "default")
2482
2499
  ], 2),
2483
- I(o, { y: "" }, {
2500
+ I(a, { y: "" }, {
2484
2501
  default: g(() => [
2485
2502
  e.Validation.message ? (s(), u("div", {
2486
2503
  key: 0,
@@ -2564,7 +2581,7 @@ const ul = {
2564
2581
  this.formUnregister && this.formUnregister(this);
2565
2582
  }
2566
2583
  }, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
2567
- function cl(e, t, l, a, r, i) {
2584
+ function cl(e, t, l, o, n, i) {
2568
2585
  return s(), m(V(l.tag), {
2569
2586
  class: f(["w-grid", i.classes])
2570
2587
  }, {
@@ -2610,16 +2627,16 @@ const pl = {
2610
2627
  },
2611
2628
  classes() {
2612
2629
  let e = null;
2613
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [a, r]) => (l[`${a}-columns${r}`] = !0, l), {}));
2630
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [o, n]) => (l[`${o}-columns${n}`] = !0, l), {}));
2614
2631
  let t = null;
2615
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [a, r]) => (l[`${a}-gap${r}`] = !0, l), {})), {
2632
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [o, n]) => (l[`${o}-gap${n}`] = !0, l), {})), {
2616
2633
  ...e || { [`columns${this.columns}`]: this.columns },
2617
2634
  ...t || { [`gap${this.gap}`]: this.gap }
2618
2635
  };
2619
2636
  }
2620
2637
  }
2621
2638
  }, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
2622
- function gl(e, t, l, a, r, i) {
2639
+ function gl(e, t, l, o, n, i) {
2623
2640
  return s(), m(V(l.tag || "i"), C({ class: "w-icon" }, W(e.$attrs), {
2624
2641
  class: i.classes,
2625
2642
  role: "icon",
@@ -2703,12 +2720,12 @@ const ml = {
2703
2720
  return this.fontName = t, this.icon = l, !0;
2704
2721
  }
2705
2722
  }
2706
- }, bl = /* @__PURE__ */ v(ml, [["render", gl]]), G = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), yl = {
2723
+ }, bl = /* @__PURE__ */ v(ml, [["render", gl]]), yl = {
2707
2724
  key: 0,
2708
2725
  class: "w-image__loader"
2709
2726
  };
2710
- function wl(e, t, l, a, r, i) {
2711
- const o = $("w-progress");
2727
+ function wl(e, t, l, o, n, i) {
2728
+ const a = $("w-progress");
2712
2729
  return s(), m(V(i.wrapperTag), {
2713
2730
  class: f(["w-image-wrap", i.wrapperClasses]),
2714
2731
  style: T(i.wrapperStyles)
@@ -2719,17 +2736,17 @@ function wl(e, t, l, a, r, i) {
2719
2736
  appear: ""
2720
2737
  }, {
2721
2738
  default: g(() => [
2722
- r.loaded ? (s(), m(V(l.tag), {
2739
+ n.loaded ? (s(), m(V(l.tag), {
2723
2740
  key: 0,
2724
2741
  class: f(["w-image", i.imageClasses]),
2725
2742
  style: T(i.imageStyles),
2726
- src: l.tag === "img" ? r.imgSrc : null
2743
+ src: l.tag === "img" ? n.imgSrc : null
2727
2744
  }, null, 8, ["class", "style", "src"])) : c("", !0)
2728
2745
  ]),
2729
2746
  _: 1
2730
2747
  }, 8, ["name"]),
2731
- !l.noSpinner && r.loading ? (s(), u("div", yl, [
2732
- e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), m(o, C({
2748
+ !l.noSpinner && n.loading ? (s(), u("div", yl, [
2749
+ e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), m(a, C({
2733
2750
  key: 1,
2734
2751
  circle: "",
2735
2752
  indeterminate: ""
@@ -2816,15 +2833,15 @@ const vl = {
2816
2833
  if (!this.loading)
2817
2834
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
2818
2835
  const l = new Image();
2819
- l.onload = (a) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = a.target.width, this.imgHeight = a.target.height), this.imgComputedRatio = a.target.height / a.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(l)), l.onerror = (a) => {
2820
- this.$emit("error", a), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
2836
+ 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) => {
2837
+ this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
2821
2838
  }, l.src = e ? this.fallback : this.src;
2822
2839
  });
2823
2840
  }
2824
2841
  },
2825
2842
  mounted() {
2826
2843
  if (!this.src)
2827
- return G("The w-image component was used without src.");
2844
+ return U("The w-image component was used without src.");
2828
2845
  if (this.lazy) {
2829
2846
  const e = new IntersectionObserver((t) => {
2830
2847
  t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
@@ -2844,17 +2861,17 @@ const vl = {
2844
2861
  this.imgHeight = e;
2845
2862
  }
2846
2863
  }
2847
- }, 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 = {
2864
+ }, 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", "disabled", "data-progress"], $l = {
2848
2865
  class: "w-input__no-file",
2849
2866
  key: "no-file"
2850
2867
  }, Vl = ["for"], Il = ["for"], Rl = ["src"], Tl = ["for"];
2851
- function Ll(e, t, l, a, r, i) {
2852
- const o = $("w-icon"), n = $("w-progress");
2853
- 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 }, {
2868
+ function Ll(e, t, l, o, n, i) {
2869
+ const a = $("w-icon"), r = $("w-progress");
2870
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
2854
2871
  valid: e.valid,
2855
2872
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
2856
2873
  onReset: t[11] || (t[11] = (d) => {
2857
- e.$emit("update:modelValue", r.inputValue = ""), e.$emit("input", "");
2874
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
2858
2875
  }),
2859
2876
  wrap: i.hasLabel && l.labelPosition !== "inside",
2860
2877
  class: i.classes
@@ -2864,9 +2881,9 @@ function Ll(e, t, l, a, r, i) {
2864
2881
  key: 0,
2865
2882
  type: "hidden",
2866
2883
  name: e.name || null,
2867
- "onUpdate:modelValue": t[0] || (t[0] = (d) => r.inputValue = d)
2884
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
2868
2885
  }, null, 8, _l)), [
2869
- [be, r.inputValue]
2886
+ [be, n.inputValue]
2870
2887
  ]) : (s(), u(k, { key: 1 }, [
2871
2888
  l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
2872
2889
  e.$slots.default || l.label ? (s(), u("label", {
@@ -2882,7 +2899,7 @@ function Ll(e, t, l, a, r, i) {
2882
2899
  w("div", {
2883
2900
  class: f(["w-input__input-wrap", i.inputWrapClasses])
2884
2901
  }, [
2885
- l.innerIconLeft ? (s(), m(o, {
2902
+ l.innerIconLeft ? (s(), m(a, {
2886
2903
  key: 0,
2887
2904
  class: "w-input__icon w-input__icon--inner-left",
2888
2905
  tag: "label",
@@ -2898,7 +2915,7 @@ function Ll(e, t, l, a, r, i) {
2898
2915
  key: 1,
2899
2916
  class: "w-input__input",
2900
2917
  ref: "input",
2901
- "onUpdate:modelValue": t[2] || (t[2] = (d) => r.inputValue = d)
2918
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
2902
2919
  }, W(i.listeners, !0), {
2903
2920
  onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
2904
2921
  onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
@@ -2918,7 +2935,7 @@ function Ll(e, t, l, a, r, i) {
2918
2935
  required: e.required || null,
2919
2936
  tabindex: e.tabindex || null
2920
2937
  }, i.attrs), null, 16, Sl)), [
2921
- [$e, r.inputValue]
2938
+ [$e, n.inputValue]
2922
2939
  ]) : (s(), u(k, { key: 2 }, [
2923
2940
  w("input", C({
2924
2941
  ref: "input",
@@ -2930,6 +2947,7 @@ function Ll(e, t, l, a, r, i) {
2930
2947
  onChange: t[8] || (t[8] = (...d) => i.onFileChange && i.onFileChange(...d)),
2931
2948
  multiple: l.multiple || null
2932
2949
  }, i.attrs, {
2950
+ disabled: e.isDisabled || null,
2933
2951
  "data-progress": i.overallFilesProgress
2934
2952
  }), null, 16, Bl),
2935
2953
  I(ae, {
@@ -2939,14 +2957,14 @@ function Ll(e, t, l, a, r, i) {
2939
2957
  for: `w-input--${e._.uid}`
2940
2958
  }, {
2941
2959
  default: g(() => [
2942
- !r.inputFiles.length && r.isFocused ? (s(), u("span", $l, [
2960
+ !n.inputFiles.length && n.isFocused ? (s(), u("span", $l, [
2943
2961
  p(e.$slots, "no-file", {}, () => [
2944
2962
  e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
2945
2963
  S("No file")
2946
2964
  ], 64)) : c("", !0)
2947
2965
  ])
2948
2966
  ])) : c("", !0),
2949
- (s(!0), u(k, null, L(r.inputFiles, (d, h) => (s(), u("span", {
2967
+ (s(!0), u(k, null, L(n.inputFiles, (d, h) => (s(), u("span", {
2950
2968
  key: d.lastModified
2951
2969
  }, [
2952
2970
  S(_(h ? ", " : ""), 1),
@@ -2971,7 +2989,7 @@ function Ll(e, t, l, a, r, i) {
2971
2989
  ])
2972
2990
  ], 10, Vl)) : c("", !0)
2973
2991
  ], 64)) : c("", !0),
2974
- l.innerIconRight ? (s(), m(o, {
2992
+ l.innerIconRight ? (s(), m(a, {
2975
2993
  key: 4,
2976
2994
  class: "w-input__icon w-input__icon--inner-right",
2977
2995
  tag: "label",
@@ -2983,7 +3001,7 @@ function Ll(e, t, l, a, r, i) {
2983
3001
  ]),
2984
3002
  _: 1
2985
3003
  }, 8, ["for"])) : c("", !0),
2986
- i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), m(n, {
3004
+ i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), m(r, {
2987
3005
  key: 5,
2988
3006
  class: "fill-width",
2989
3007
  size: "2",
@@ -2991,12 +3009,12 @@ function Ll(e, t, l, a, r, i) {
2991
3009
  "model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
2992
3010
  }, null, 8, ["color", "model-value"])) : c("", !0)
2993
3011
  ], 2),
2994
- l.type === "file" && l.preview && r.inputFiles.length ? (s(), u("label", {
3012
+ l.type === "file" && l.preview && n.inputFiles.length ? (s(), u("label", {
2995
3013
  key: 1,
2996
3014
  class: "d-flex",
2997
3015
  for: `w-input--${e._.uid}`
2998
3016
  }, [
2999
- (s(!0), u(k, null, L(r.inputFiles, (d, h) => (s(), u(k, null, [
3017
+ (s(!0), u(k, null, L(n.inputFiles, (d, h) => (s(), u(k, null, [
3000
3018
  d.progress < 100 ? (s(), u("i", {
3001
3019
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3002
3020
  key: `${h}a`
@@ -3077,8 +3095,8 @@ const xl = {
3077
3095
  return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
3078
3096
  },
3079
3097
  listeners() {
3080
- const { input: e, focus: t, blur: l, ...a } = this.$attrs;
3081
- return a;
3098
+ const { input: e, focus: t, blur: l, ...o } = this.$attrs;
3099
+ return o;
3082
3100
  },
3083
3101
  hasValue() {
3084
3102
  switch (this.type) {
@@ -3107,7 +3125,7 @@ const xl = {
3107
3125
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3108
3126
  },
3109
3127
  overallFilesProgress() {
3110
- const t = +this.inputFiles.reduce((l, a) => l + a.progress, 0) / this.inputFiles.length;
3128
+ const t = +this.inputFiles.reduce((l, o) => l + o.progress, 0) / this.inputFiles.length;
3111
3129
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
3112
3130
  },
3113
3131
  uploadInProgress() {
@@ -3161,10 +3179,10 @@ const xl = {
3161
3179
  },
3162
3180
  onFileChange(e) {
3163
3181
  this.inputFiles = [...e.target.files].map((l) => {
3164
- const [, a = "", r = "", i = ""] = l.name.match(/^(.*?)\.([^.]*)$|(.*)/), o = Q({
3182
+ const [, o = "", n = "", i = ""] = l.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
3165
3183
  name: l.name,
3166
- base: a || i,
3167
- extension: r,
3184
+ base: o || i,
3185
+ extension: n,
3168
3186
  type: l.type,
3169
3187
  size: l.size,
3170
3188
  lastModified: l.lastModified,
@@ -3172,14 +3190,14 @@ const xl = {
3172
3190
  progress: 0,
3173
3191
  file: l
3174
3192
  });
3175
- return this.readFile(l, o), o;
3193
+ return this.readFile(l, a), a;
3176
3194
  });
3177
3195
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3178
3196
  this.$emit("update:modelValue", t), this.$emit("input", t);
3179
3197
  },
3180
3198
  readFile(e, t) {
3181
- const l = new FileReader(), a = typeof this.preview == "string", r = e.type && e.type.startsWith("image/");
3182
- this.preview && !a && r ? l.addEventListener("load", (i) => {
3199
+ const l = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3200
+ this.preview && !o && n ? l.addEventListener("load", (i) => {
3183
3201
  t.preview = i.target.result;
3184
3202
  }) : delete t.preview, l.addEventListener("progress", (i) => {
3185
3203
  i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
@@ -3197,8 +3215,8 @@ const xl = {
3197
3215
  }
3198
3216
  }
3199
3217
  }, Pl = /* @__PURE__ */ v(xl, [["render", Ll]]);
3200
- function Ol(e, t, l, a, r, i) {
3201
- const o = $("w-icon"), n = $("w-list", !0);
3218
+ function Ol(e, t, l, o, n, i) {
3219
+ const a = $("w-icon"), r = $("w-list", !0);
3202
3220
  return s(), u("ul", {
3203
3221
  class: f(["w-list", i.classes])
3204
3222
  }, [
@@ -3206,7 +3224,7 @@ function Ol(e, t, l, a, r, i) {
3206
3224
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3207
3225
  key: h
3208
3226
  }, [
3209
- l.icon ? (s(), m(o, {
3227
+ l.icon ? (s(), m(a, {
3210
3228
  key: 0,
3211
3229
  class: "w-list__item-bullet"
3212
3230
  }, {
@@ -3244,7 +3262,7 @@ function Ol(e, t, l, a, r, i) {
3244
3262
  key: 2,
3245
3263
  class: "w-list__item-label"
3246
3264
  }, i.liLabelProps(d, h, d._selected)), null, 16)),
3247
- (d.children || []).length ? (s(), m(n, C({ key: 3 }, e.$props, {
3265
+ (d.children || []).length ? (s(), m(r, C({ key: 3 }, e.$props, {
3248
3266
  items: d.children,
3249
3267
  depth: l.depth + 1,
3250
3268
  "onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
@@ -3363,28 +3381,28 @@ const zl = {
3363
3381
  };
3364
3382
  },
3365
3383
  liLabelProps(e, t, l) {
3366
- const a = this.$slots[`item.${t + 1}`] || this.$slots.item, r = () => {
3384
+ const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3367
3385
  if (!e.disabled) {
3368
3386
  const d = this.cleanLi(e);
3369
3387
  this.$emit("item-click", d), this.$emit("item-select", d);
3370
3388
  }
3371
3389
  }, i = this.isSelectable && ((d) => {
3372
3390
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3373
- }), o = this.isSelectable && ((d) => {
3391
+ }), a = this.isSelectable && ((d) => {
3374
3392
  !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));
3375
- }), n = {
3393
+ }), r = {
3376
3394
  class: this.liLabelClasses(e),
3377
3395
  tabindex: e.disabled || this.checklist ? null : "0",
3378
3396
  "aria-selected": l ? "true" : "false",
3379
3397
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3380
3398
  role: "option"
3381
3399
  };
3382
- 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) => {
3400
+ 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) => {
3383
3401
  const h = d.target.querySelector('input[type="checkbox"]');
3384
- h && (h.focus(), h.click()), r();
3385
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (n.onKeydown = o, n.onMousedown = i, this.$router ? (n.to = e[this.itemRouteKey], n.onClick = (d) => {
3386
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), r();
3387
- }) : (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;
3402
+ h && (h.focus(), h.click()), n();
3403
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = i, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3404
+ d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3405
+ }) : (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;
3388
3406
  },
3389
3407
  checkSelection(e) {
3390
3408
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
@@ -3393,7 +3411,7 @@ const zl = {
3393
3411
  const e = this.selectedItems.map((l) => {
3394
3412
  if (!this.returnObject)
3395
3413
  return l._value;
3396
- const { _value: a, _selected: r, ...i } = l;
3414
+ const { _value: o, _selected: n, ...i } = l;
3397
3415
  return i;
3398
3416
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3399
3417
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3404,8 +3422,8 @@ const zl = {
3404
3422
  e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3405
3423
  },
3406
3424
  cleanLi(e) {
3407
- const { _index: t, _value: l, _label: a, _selected: r, _focused: i, ...o } = e;
3408
- return o;
3425
+ const { _index: t, _value: l, _label: o, _selected: n, _focused: i, ...a } = e;
3426
+ return a;
3409
3427
  },
3410
3428
  refreshListItems() {
3411
3429
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -3420,7 +3438,7 @@ const zl = {
3420
3438
  },
3421
3439
  applySelectionOnItems(e) {
3422
3440
  this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => {
3423
- const l = this.listItems.find((a) => a._value === t);
3441
+ const l = this.listItems.find((o) => o._value === t);
3424
3442
  l && (l._selected = !0);
3425
3443
  });
3426
3444
  }
@@ -3471,7 +3489,7 @@ const zl = {
3471
3489
  let e = ".w-app";
3472
3490
  typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
3473
3491
  let t = this.appendTo || e;
3474
- 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;
3492
+ 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, U(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (U(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
3475
3493
  },
3476
3494
  detachableParentEl() {
3477
3495
  return this.appendToTarget;
@@ -3509,39 +3527,39 @@ const zl = {
3509
3527
  }, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize);
3510
3528
  },
3511
3529
  getActivatorCoordinates() {
3512
- const { top: e, left: t, width: l, height: a } = this.activatorEl.getBoundingClientRect();
3513
- let r = { top: e, left: t, width: l, height: a };
3530
+ const { top: e, left: t, width: l, height: o } = this.activatorEl.getBoundingClientRect();
3531
+ let n = { top: e, left: t, width: l, height: o };
3514
3532
  if (!this.fixed) {
3515
- const { top: i, left: o } = this.detachableParentEl.getBoundingClientRect(), n = window.getComputedStyle(this.detachableParentEl, null);
3516
- r = {
3517
- ...r,
3518
- top: e - i + this.detachableParentEl.scrollTop - parseInt(n.getPropertyValue("border-top-width")),
3519
- left: t - o + this.detachableParentEl.scrollLeft - parseInt(n.getPropertyValue("border-left-width"))
3533
+ const { top: i, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3534
+ n = {
3535
+ ...n,
3536
+ top: e - i + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
3537
+ left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
3520
3538
  };
3521
3539
  }
3522
- return r;
3540
+ return n;
3523
3541
  },
3524
3542
  computeDetachableCoords() {
3525
- let { top: e, left: t, width: l, height: a } = this.getActivatorCoordinates();
3543
+ let { top: e, left: t, width: l, height: o } = this.getActivatorCoordinates();
3526
3544
  if (!this.detachableEl)
3527
3545
  return;
3528
3546
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
3529
- const r = window.getComputedStyle(this.detachableEl, null);
3547
+ const n = window.getComputedStyle(this.detachableEl, null);
3530
3548
  switch (this.position) {
3531
3549
  case "top": {
3532
- 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);
3550
+ 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);
3533
3551
  break;
3534
3552
  }
3535
3553
  case "bottom": {
3536
- e += a, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(r.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3554
+ e += o, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3537
3555
  break;
3538
3556
  }
3539
3557
  case "left": {
3540
- t -= this.detachableEl.offsetWidth, this.alignBottom ? e += a - this.detachableEl.offsetHeight : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2);
3558
+ t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
3541
3559
  break;
3542
3560
  }
3543
3561
  case "right": {
3544
- 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")));
3562
+ 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")));
3545
3563
  break;
3546
3564
  }
3547
3565
  }
@@ -3568,11 +3586,11 @@ const zl = {
3568
3586
  const e = typeof this.activator == "string";
3569
3587
  Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
3570
3588
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3571
- const a = (r) => {
3589
+ const o = (n) => {
3572
3590
  var i;
3573
- (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);
3591
+ (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);
3574
3592
  };
3575
- document.addEventListener(t, a), this.docEventListenersHandlers.push({ eventName: t, handler: a });
3593
+ document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
3576
3594
  });
3577
3595
  }
3578
3596
  },
@@ -3596,8 +3614,8 @@ const zl = {
3596
3614
  }
3597
3615
  }
3598
3616
  };
3599
- function El(e, t, l, a, r, i) {
3600
- const o = $("w-card"), n = $("w-overlay");
3617
+ function El(e, t, l, o, n, i) {
3618
+ const a = $("w-card"), r = $("w-overlay");
3601
3619
  return s(), u(k, null, [
3602
3620
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
3603
3621
  I(P, {
@@ -3617,7 +3635,7 @@ function El(e, t, l, a, r, i) {
3617
3635
  style: i.styles
3618
3636
  }), [
3619
3637
  p(e.$slots, "default")
3620
- ], 16)) : e.detachableVisible ? (s(), m(o, C({
3638
+ ], 16)) : e.detachableVisible ? (s(), m(a, C({
3621
3639
  key: 1,
3622
3640
  class: "w-menu",
3623
3641
  ref: "detachable"
@@ -3656,7 +3674,7 @@ function El(e, t, l, a, r, i) {
3656
3674
  ]),
3657
3675
  _: 3
3658
3676
  }, 8, ["name"]),
3659
- l.overlay ? (s(), m(n, C({
3677
+ l.overlay ? (s(), m(r, C({
3660
3678
  key: 0,
3661
3679
  ref: "overlay",
3662
3680
  "model-value": e.detachableVisible,
@@ -3792,21 +3810,21 @@ const Wl = {
3792
3810
  }
3793
3811
  }
3794
3812
  }, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
3795
- function Nl(e, t, l, a, r, i) {
3796
- const o = $("w-alert");
3813
+ function Nl(e, t, l, o, n, i) {
3814
+ const a = $("w-alert");
3797
3815
  return s(), m(P, {
3798
3816
  name: i.transitionName,
3799
3817
  appear: ""
3800
3818
  }, {
3801
3819
  default: g(() => [
3802
- r.show ? (s(), u("div", {
3820
+ n.show ? (s(), u("div", {
3803
3821
  key: 0,
3804
3822
  class: f(["w-notification", i.classes]),
3805
3823
  style: T(i.styles)
3806
3824
  }, [
3807
- I(o, C(i.alertProps, {
3825
+ I(a, C(i.alertProps, {
3808
3826
  class: i.alertClasses,
3809
- "onUpdate:modelValue": t[0] || (t[0] = (n) => {
3827
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => {
3810
3828
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
3811
3829
  })
3812
3830
  }), {
@@ -3941,8 +3959,8 @@ const Kl = {
3941
3959
  }
3942
3960
  }
3943
3961
  }, Hl = /* @__PURE__ */ v(Kl, [["render", Nl]]);
3944
- function Dl(e, t, l, a, r, i) {
3945
- const o = me("focus");
3962
+ function Dl(e, t, l, o, n, i) {
3963
+ const a = me("focus");
3946
3964
  return s(), m(P, {
3947
3965
  name: "fade",
3948
3966
  appear: "",
@@ -3954,14 +3972,14 @@ function Dl(e, t, l, a, r, i) {
3954
3972
  class: f(["w-overlay", i.classes]),
3955
3973
  ref: "overlay",
3956
3974
  style: T(l.modelValue && i.styles || null),
3957
- onKeydown: t[0] || (t[0] = E(M((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
3958
- onClick: t[1] || (t[1] = (...n) => i.onClick && i.onClick(...n)),
3975
+ onKeydown: t[0] || (t[0] = E(M((...r) => i.onClick && i.onClick(...r), ["stop"]), ["escape"])),
3976
+ onClick: t[1] || (t[1] = (...r) => i.onClick && i.onClick(...r)),
3959
3977
  tabindex: "0"
3960
3978
  }, [
3961
3979
  p(e.$slots, "default")
3962
3980
  ], 38)), [
3963
3981
  [oe, e.showOverlay],
3964
- [o]
3982
+ [a]
3965
3983
  ]) : c("", !0)
3966
3984
  ]),
3967
3985
  _: 3
@@ -4022,7 +4040,7 @@ const Fl = {
4022
4040
  }
4023
4041
  }
4024
4042
  }, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = { class: "w-parallax" };
4025
- function ql(e, t, l, a, r, i) {
4043
+ function ql(e, t, l, o, n, i) {
4026
4044
  return s(), u("div", Ul);
4027
4045
  }
4028
4046
  const Xl = {
@@ -4031,7 +4049,7 @@ const Xl = {
4031
4049
  emits: [],
4032
4050
  data: () => ({})
4033
4051
  }, 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"];
4034
- function Zl(e, t, l, a, r, i) {
4052
+ function Zl(e, t, l, o, n, i) {
4035
4053
  return s(), u("div", {
4036
4054
  class: f(["w-progress", i.classes]),
4037
4055
  style: T(i.styles)
@@ -4143,11 +4161,11 @@ const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4143
4161
  }
4144
4162
  }
4145
4163
  }, 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"];
4146
- function di(e, t, l, a, r, i) {
4164
+ function di(e, t, l, o, n, i) {
4147
4165
  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, readonly: e.isReadonly }, {
4148
4166
  valid: e.valid,
4149
- "onUpdate:valid": t[3] || (t[3] = (o) => e.valid = o),
4150
- onReset: t[4] || (t[4] = (o) => {
4167
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4168
+ onReset: t[4] || (t[4] = (a) => {
4151
4169
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4152
4170
  }),
4153
4171
  class: i.classes
@@ -4162,8 +4180,8 @@ function di(e, t, l, a, r, i) {
4162
4180
  disabled: e.isDisabled || e.isReadonly || null,
4163
4181
  required: e.required || null,
4164
4182
  tabindex: e.tabindex || null,
4165
- onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
4166
- onChange: t[1] || (t[1] = (o) => i.onInput(o)),
4183
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4184
+ onChange: t[1] || (t[1] = (a) => i.onInput(a)),
4167
4185
  "aria-checked": e.inputValue || "false",
4168
4186
  role: "radio"
4169
4187
  }, null, 40, si),
@@ -4185,7 +4203,7 @@ function di(e, t, l, a, r, i) {
4185
4203
  ], 64)) : c("", !0),
4186
4204
  w("div", {
4187
4205
  class: f(["w-radio__input", this.color]),
4188
- onClick: t[2] || (t[2] = (o) => {
4206
+ onClick: t[2] || (t[2] = (a) => {
4189
4207
  e.$refs.input.focus(), e.$refs.input.click();
4190
4208
  })
4191
4209
  }, null, 2),
@@ -4270,12 +4288,12 @@ const ui = {
4270
4288
  }
4271
4289
  }
4272
4290
  }, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
4273
- function pi(e, t, l, a, r, i) {
4274
- const o = $("w-radio");
4291
+ function pi(e, t, l, o, n, i) {
4292
+ const a = $("w-radio");
4275
4293
  return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4276
4294
  valid: e.valid,
4277
- "onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
4278
- onReset: t[2] || (t[2] = (n) => {
4295
+ "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4296
+ onReset: t[2] || (t[2] = (r) => {
4279
4297
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4280
4298
  }),
4281
4299
  column: !l.inline,
@@ -4283,13 +4301,13 @@ function pi(e, t, l, a, r, i) {
4283
4301
  class: i.classes
4284
4302
  }), {
4285
4303
  default: g(() => [
4286
- (s(!0), u(k, null, L(i.radioItems, (n, d) => (s(), m(o, C({
4304
+ (s(!0), u(k, null, L(i.radioItems, (r, d) => (s(), m(a, C({
4287
4305
  key: d,
4288
- "model-value": n.value === l.modelValue,
4289
- "onUpdate:modelValue": (h) => i.onInput(n),
4306
+ "model-value": r.value === l.modelValue,
4307
+ "onUpdate:modelValue": (h) => i.onInput(r),
4290
4308
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
4291
4309
  name: e.inputName
4292
- }, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
4310
+ }, { label: r.label, color: r.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
4293
4311
  disabled: e.isDisabled || null,
4294
4312
  readonly: e.isReadonly || null,
4295
4313
  class: { mt1: !l.inline && d }
@@ -4297,13 +4315,13 @@ function pi(e, t, l, a, r, i) {
4297
4315
  default: g(() => [
4298
4316
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4299
4317
  key: 0,
4300
- item: i.getOriginalItem(n),
4318
+ item: i.getOriginalItem(r),
4301
4319
  index: d + 1,
4302
- checked: n.value === l.modelValue,
4303
- innerHTML: n.label
4304
- }) : n.label ? (s(), u("div", {
4320
+ checked: r.value === l.modelValue,
4321
+ innerHTML: r.label
4322
+ }) : r.label ? (s(), u("div", {
4305
4323
  key: 1,
4306
- innerHTML: n.label
4324
+ innerHTML: r.label
4307
4325
  }, null, 8, ci)) : c("", !0)
4308
4326
  ]),
4309
4327
  _: 2
@@ -4359,12 +4377,12 @@ const fi = {
4359
4377
  }
4360
4378
  }
4361
4379
  }, gi = /* @__PURE__ */ v(fi, [["render", pi]]), mi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
4362
- function yi(e, t, l, a, r, i) {
4363
- 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 }, {
4380
+ function yi(e, t, l, o, n, i) {
4381
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4364
4382
  valid: e.valid,
4365
- "onUpdate:valid": t[4] || (t[4] = (o) => e.valid = o),
4366
- onReset: t[5] || (t[5] = (o) => {
4367
- e.$emit("update:modelValue", r.rating = null), e.$emit("input", null);
4383
+ "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4384
+ onReset: t[5] || (t[5] = (a) => {
4385
+ e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
4368
4386
  }),
4369
4387
  class: i.classes
4370
4388
  }), {
@@ -4373,26 +4391,26 @@ function yi(e, t, l, a, r, i) {
4373
4391
  id: e.inputName,
4374
4392
  name: e.inputName,
4375
4393
  type: "hidden",
4376
- value: r.rating
4394
+ value: n.rating
4377
4395
  }, null, 8, mi),
4378
- (s(!0), u(k, null, L(l.max, (o) => (s(), u(k, { key: o }, [
4396
+ (s(!0), u(k, null, L(l.max, (a) => (s(), u(k, { key: a }, [
4379
4397
  e.$slots.item ? p(e.$slots, "item", {
4380
4398
  key: 0,
4381
- index: o + 1
4399
+ index: a + 1
4382
4400
  }) : c("", !0),
4383
4401
  w("button", {
4384
- class: f(["w-rating__button", i.buttonClasses(o)]),
4402
+ class: f(["w-rating__button", i.buttonClasses(a)]),
4385
4403
  disabled: e.isDisabled || e.isReadonly,
4386
- onMouseenter: (n) => r.hover = o,
4387
- onMouseleave: t[0] || (t[0] = (n) => r.hover = 0),
4388
- onClick: (n) => i.onButtonClick(o),
4389
- onFocus: t[1] || (t[1] = (...n) => i.onFocus && i.onFocus(...n)),
4390
- onBlur: t[2] || (t[2] = (...n) => i.onBlur && i.onBlur(...n)),
4391
- onKeydown: t[3] || (t[3] = (...n) => i.onKeydown && i.onKeydown(...n)),
4404
+ onMouseenter: (r) => n.hover = a,
4405
+ onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
4406
+ onClick: (r) => i.onButtonClick(a),
4407
+ onFocus: t[1] || (t[1] = (...r) => i.onFocus && i.onFocus(...r)),
4408
+ onBlur: t[2] || (t[2] = (...r) => i.onBlur && i.onBlur(...r)),
4409
+ onKeydown: t[3] || (t[3] = (...r) => i.onKeydown && i.onKeydown(...r)),
4392
4410
  type: "button",
4393
- tabindex: o === 1 ? 0 : -1
4411
+ tabindex: a === 1 ? 0 : -1
4394
4412
  }, [
4395
- o - 1 === ~~r.rating && r.rating - ~~r.rating ? (s(), u("i", {
4413
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4396
4414
  key: 0,
4397
4415
  class: f(["w-icon", `${l.icon} ${l.color}`]),
4398
4416
  role: "icon",
@@ -4496,21 +4514,21 @@ const wi = {
4496
4514
  }
4497
4515
  }
4498
4516
  }, vi = /* @__PURE__ */ v(wi, [["render", yi]]);
4499
- function ki(e, t, l, a, r, i) {
4517
+ function ki(e, t, l, o, n, i) {
4500
4518
  return s(), u(k, null, [
4501
4519
  w("div", C({
4502
4520
  class: ["w-scrollable", i.scrollableClasses],
4503
4521
  ref: "scrollable",
4504
- onMouseenter: t[0] || (t[0] = (...o) => i.onMouseEnter && i.onMouseEnter(...o)),
4505
- onMouseleave: t[1] || (t[1] = (...o) => i.onMouseLeave && i.onMouseLeave(...o)),
4506
- onMousewheel: t[2] || (t[2] = (...o) => i.onMouseWheel && i.onMouseWheel(...o))
4522
+ onMouseenter: t[0] || (t[0] = (...a) => i.onMouseEnter && i.onMouseEnter(...a)),
4523
+ onMouseleave: t[1] || (t[1] = (...a) => i.onMouseLeave && i.onMouseLeave(...a)),
4524
+ onMousewheel: t[2] || (t[2] = (...a) => i.onMouseWheel && i.onMouseWheel(...a))
4507
4525
  }, e.$attrs, { style: i.scrollableStyles }), [
4508
4526
  p(e.$slots, "default")
4509
4527
  ], 16),
4510
4528
  w("div", {
4511
4529
  class: f(["w-scrollbar", i.scrollbarClasses]),
4512
4530
  ref: "track",
4513
- onMousedown: t[3] || (t[3] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o))
4531
+ onMousedown: t[3] || (t[3] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a))
4514
4532
  }, [
4515
4533
  w("div", {
4516
4534
  class: "w-scrollbar__thumb",
@@ -4563,8 +4581,8 @@ const _i = {
4563
4581
  }),
4564
4582
  computed: {
4565
4583
  isHorizontal() {
4566
- var e, t, l, a;
4567
- 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;
4584
+ var e, t, l, o;
4585
+ 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) > ((o = this.$refs.scrollable) == null ? void 0 : o.offsetWidth)) : !1;
4568
4586
  },
4569
4587
  m() {
4570
4588
  return _i[this.isHorizontal ? "h" : "v"];
@@ -4600,8 +4618,8 @@ const _i = {
4600
4618
  onTrackMouseDown(e) {
4601
4619
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
4602
4620
  return;
4603
- const { top: t, left: l, width: a, height: r } = this.$refs.track.getBoundingClientRect();
4604
- 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 });
4621
+ const { top: t, left: l, width: o, height: n } = this.$refs.track.getBoundingClientRect();
4622
+ this.isHorizontal ? (this.$refs.track.width = o, this.$refs.track.left = l) : (this.$refs.track.height = n, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
4605
4623
  },
4606
4624
  onDrag(e) {
4607
4625
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -4619,8 +4637,8 @@ const _i = {
4619
4637
  !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());
4620
4638
  },
4621
4639
  computeScroll(e) {
4622
- const { top: t, left: l, width: a, height: r } = this.$refs.scrollable.getBoundingClientRect(), i = this.isHorizontal ? l : t, o = this.isHorizontal ? a : r;
4623
- this.scrollValuePercent = Math.max(0, Math.min((e - i) / o * 100, 100));
4640
+ const { top: t, left: l, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), i = this.isHorizontal ? l : t, a = this.isHorizontal ? o : n;
4641
+ this.scrollValuePercent = Math.max(0, Math.min((e - i) / a * 100, 100));
4624
4642
  },
4625
4643
  scroll() {
4626
4644
  var e;
@@ -4639,8 +4657,8 @@ const _i = {
4639
4657
  key: 1,
4640
4658
  class: "w-select__selection-slot"
4641
4659
  }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Ti = ["for"], Li = ["for"];
4642
- function xi(e, t, l, a, r, i) {
4643
- const o = $("w-icon"), n = $("w-list"), d = $("w-menu");
4660
+ function xi(e, t, l, o, n, i) {
4661
+ const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
4644
4662
  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, isFocused: e.isFocused }, {
4645
4663
  valid: e.valid,
4646
4664
  "onUpdate:valid": t[11] || (t[11] = (h) => e.valid = h),
@@ -4681,7 +4699,7 @@ function xi(e, t, l, a, r, i) {
4681
4699
  "aria-owns": `w-select-menu--${e._.uid}`,
4682
4700
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
4683
4701
  }, [
4684
- l.innerIconLeft ? (s(), m(o, {
4702
+ l.innerIconLeft ? (s(), m(a, {
4685
4703
  key: 0,
4686
4704
  class: "w-select__icon w-select__icon--inner-left",
4687
4705
  tag: "label",
@@ -4728,7 +4746,7 @@ function xi(e, t, l, a, r, i) {
4728
4746
  ])
4729
4747
  ], 10, Ti)) : c("", !0)
4730
4748
  ], 64)) : c("", !0),
4731
- l.innerIconRight ? (s(), m(o, {
4749
+ l.innerIconRight ? (s(), m(a, {
4732
4750
  key: 3,
4733
4751
  class: "w-select__icon w-select__icon--inner-right",
4734
4752
  tag: "label",
@@ -4742,13 +4760,13 @@ function xi(e, t, l, a, r, i) {
4742
4760
  ], 10, $i)
4743
4761
  ]),
4744
4762
  default: g(() => [
4745
- I(n, {
4763
+ I(r, {
4746
4764
  ref: "w-list",
4747
4765
  "model-value": e.inputValue,
4748
4766
  "onUpdate:modelValue": i.onInput,
4749
4767
  onItemClick: t[6] || (t[6] = (h) => e.$emit("item-click", h)),
4750
4768
  onItemSelect: i.onListItemSelect,
4751
- "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu("la3")),
4769
+ "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu()),
4752
4770
  "onKeydown:escape": t[8] || (t[8] = (h) => e.showMenu && (this.showMenu = !1)),
4753
4771
  items: i.selectItems,
4754
4772
  multiple: l.multiple,
@@ -4906,8 +4924,8 @@ const Pi = {
4906
4924
  },
4907
4925
  onKeydown(e) {
4908
4926
  if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu)
4909
- this.closeMenu("la5");
4910
- else if (e.keyCode === 13)
4927
+ this.closeMenu();
4928
+ else if ([13, 32].includes(e.keyCode))
4911
4929
  this.openMenu();
4912
4930
  else if ([38, 40].includes(e.keyCode))
4913
4931
  if (this.multiple)
@@ -4918,8 +4936,8 @@ const Pi = {
4918
4936
  if (t === void 0)
4919
4937
  t = e.keyCode === 38 ? l.length - 1 : 0;
4920
4938
  else {
4921
- const a = e.keyCode === 38 ? -1 : 1;
4922
- t = (t + l.length + a) % l.length;
4939
+ const o = e.keyCode === 38 ? -1 : 1;
4940
+ t = (t + l.length + o) % l.length;
4923
4941
  }
4924
4942
  this.onInput(l[t]);
4925
4943
  }
@@ -4944,8 +4962,8 @@ const Pi = {
4944
4962
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
4945
4963
  const t = this.selectItems.map((l) => l.value);
4946
4964
  return e.map((l) => {
4947
- let a = l;
4948
- 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)];
4965
+ let o = l;
4966
+ return l && 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)];
4949
4967
  }).filter((l) => l !== void 0);
4950
4968
  },
4951
4969
  openMenu() {
@@ -4975,11 +4993,11 @@ const Pi = {
4975
4993
  key: 0,
4976
4994
  class: "w-slider__step-labels"
4977
4995
  }, Di = ["onClick"], Fi = ["for"], ji = ["for", "innerHTML"];
4978
- function Ui(e, t, l, a, r, i) {
4996
+ function Ui(e, t, l, o, n, i) {
4979
4997
  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 }, {
4980
4998
  valid: e.valid,
4981
- "onUpdate:valid": t[8] || (t[8] = (o) => e.valid = o),
4982
- onReset: t[9] || (t[9] = (o) => {
4999
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5000
+ onReset: t[9] || (t[9] = (a) => {
4983
5001
  e.rangeValuePercent = 0, i.updateRangeValueScaled();
4984
5002
  }),
4985
5003
  wrap: e.formRegister || null,
@@ -5002,8 +5020,8 @@ function Ui(e, t, l, a, r, i) {
5002
5020
  w("div", {
5003
5021
  class: f(["w-slider__track", i.trackClasses]),
5004
5022
  ref: "track",
5005
- onMousedown: t[4] || (t[4] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
5006
- onTouchstart: t[5] || (t[5] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
5023
+ onMousedown: t[4] || (t[4] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
5024
+ onTouchstart: t[5] || (t[5] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
5007
5025
  role: "slider",
5008
5026
  "aria-label": "Slider",
5009
5027
  "aria-valuemin": i.minVal,
@@ -5031,10 +5049,10 @@ function Ui(e, t, l, a, r, i) {
5031
5049
  "aria-readonly": e.isReadonly ? "true" : "false",
5032
5050
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5033
5051
  onKeydown: [
5034
- t[0] || (t[0] = E((o) => i.onKeyDown(o, -1), ["left"])),
5035
- t[1] || (t[1] = E((o) => i.onKeyDown(o, 1), ["right"]))
5052
+ t[0] || (t[0] = E((a) => i.onKeyDown(a, -1), ["left"])),
5053
+ t[1] || (t[1] = E((a) => i.onKeyDown(a, 1), ["right"]))
5036
5054
  ],
5037
- onFocus: t[2] || (t[2] = (o) => e.$emit("focus", o)),
5055
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5038
5056
  onClick: t[3] || (t[3] = M(() => {
5039
5057
  }, ["prevent"]))
5040
5058
  }, null, 42, Ai),
@@ -5059,18 +5077,18 @@ function Ui(e, t, l, a, r, i) {
5059
5077
  l.stepLabels && l.step ? (s(), u("div", Hi, [
5060
5078
  w("div", {
5061
5079
  class: "w-slider__step-label",
5062
- onClick: t[6] || (t[6] = (o) => i.onStepLabelClick(0))
5080
+ onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
5063
5081
  }, _(this.minVal), 1),
5064
- (s(!0), u(k, null, L(~~i.numberOfSteps, (o) => (s(), u("div", {
5082
+ (s(!0), u(k, null, L(~~i.numberOfSteps, (a) => (s(), u("div", {
5065
5083
  class: "w-slider__step-label",
5066
- key: o,
5067
- onClick: (n) => i.onStepLabelClick(o * (100 / i.numberOfSteps)),
5068
- style: T(`left: ${o * (100 / i.numberOfSteps)}%`)
5069
- }, _(i.percentToScaled(o * (100 / i.numberOfSteps))), 13, Di))), 128)),
5084
+ key: a,
5085
+ onClick: (r) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
5086
+ style: T(`left: ${a * (100 / i.numberOfSteps)}%`)
5087
+ }, _(i.percentToScaled(a * (100 / i.numberOfSteps))), 13, Di))), 128)),
5070
5088
  ~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
5071
5089
  key: 0,
5072
5090
  class: "w-slider__step-label",
5073
- onClick: t[7] || (t[7] = (o) => i.onStepLabelClick(100)),
5091
+ onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
5074
5092
  style: { left: "100%" }
5075
5093
  }, _(this.maxVal), 1)) : c("", !0)
5076
5094
  ])) : c("", !0)
@@ -5226,7 +5244,7 @@ const qi = {
5226
5244
  }
5227
5245
  }
5228
5246
  }, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]), Yi = { key: 0 };
5229
- function Gi(e, t, l, a, r, i) {
5247
+ function Gi(e, t, l, o, n, i) {
5230
5248
  return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
5231
5249
  key: 0,
5232
5250
  class: f(["w-spinner", i.classes]),
@@ -5274,7 +5292,7 @@ const Ji = {
5274
5292
  }
5275
5293
  }
5276
5294
  }, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
5277
- function Zi(e, t, l, a, r, i) {
5295
+ function Zi(e, t, l, o, n, i) {
5278
5296
  return s(), u("div", {
5279
5297
  class: f(["w-steps", i.classes])
5280
5298
  }, null, 2);
@@ -5302,13 +5320,13 @@ const es = {
5302
5320
  key: 1,
5303
5321
  class: "w-switch__thumb"
5304
5322
  }, os = ["for"];
5305
- function ns(e, t, l, a, r, i) {
5306
- const o = $("w-progress");
5307
- 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 }, {
5323
+ function ns(e, t, l, o, n, i) {
5324
+ const a = $("w-progress");
5325
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5308
5326
  valid: e.valid,
5309
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
5310
- onReset: t[4] || (t[4] = (n) => {
5311
- e.$emit("update:modelValue", r.isOn = null), e.$emit("input", null);
5327
+ "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5328
+ onReset: t[4] || (t[4] = (r) => {
5329
+ e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
5312
5330
  }),
5313
5331
  class: i.classes
5314
5332
  }), {
@@ -5318,15 +5336,15 @@ function ns(e, t, l, a, r, i) {
5318
5336
  id: `w-switch--${e._.uid}`,
5319
5337
  type: "checkbox",
5320
5338
  name: e.inputName,
5321
- checked: r.isOn,
5339
+ checked: n.isOn,
5322
5340
  disabled: e.isDisabled || e.isReadonly || null,
5323
5341
  readonly: e.isReadonly || null,
5324
5342
  "aria-readonly": e.isReadonly ? "true" : "false",
5325
5343
  required: e.required || null,
5326
5344
  tabindex: e.tabindex || null,
5327
- onChange: t[0] || (t[0] = (n) => i.onInput()),
5328
- onFocus: t[1] || (t[1] = (n) => e.$emit("focus", n)),
5329
- "aria-checked": r.isOn || "false",
5345
+ onChange: t[0] || (t[0] = (r) => i.onInput()),
5346
+ onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5347
+ "aria-checked": n.isOn || "false",
5330
5348
  role: "switch"
5331
5349
  }, null, 40, ls),
5332
5350
  i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
@@ -5342,7 +5360,7 @@ function ns(e, t, l, a, r, i) {
5342
5360
  ], 64)) : c("", !0),
5343
5361
  w("div", C({
5344
5362
  class: "w-switch__input",
5345
- onClick: t[2] || (t[2] = (n) => {
5363
+ onClick: t[2] || (t[2] = (r) => {
5346
5364
  e.$refs.input.focus(), e.$refs.input.click();
5347
5365
  })
5348
5366
  }, W(e.$attrs, !0), { class: i.inputClasses }), [
@@ -5350,7 +5368,7 @@ function ns(e, t, l, a, r, i) {
5350
5368
  p(e.$slots, "track")
5351
5369
  ])) : c("", !0),
5352
5370
  e.$slots.thumb || l.loading ? (s(), u("div", as, [
5353
- l.loading ? (s(), m(o, C({
5371
+ l.loading ? (s(), m(a, C({
5354
5372
  key: 0,
5355
5373
  circle: "",
5356
5374
  color: "inherit"
@@ -5438,7 +5456,7 @@ const rs = {
5438
5456
  }
5439
5457
  }
5440
5458
  }, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
5441
- function hs(e, t, l, a, r, i) {
5459
+ function hs(e, t, l, o, n, i) {
5442
5460
  return s(), u("div", us, [
5443
5461
  p(e.$slots, "default", { item: l.item })
5444
5462
  ]);
@@ -5453,8 +5471,8 @@ const cs = {
5453
5471
  key: 0,
5454
5472
  class: "w-tabs__content-wrap"
5455
5473
  }, ys = ["innerHTML"], ws = ["innerHTML"];
5456
- function vs(e, t, l, a, r, i) {
5457
- const o = $("tab-content");
5474
+ function vs(e, t, l, o, n, i) {
5475
+ const a = $("tab-content");
5458
5476
  return s(), u("div", {
5459
5477
  class: f(["w-tabs", i.tabsClasses])
5460
5478
  }, [
@@ -5462,29 +5480,29 @@ function vs(e, t, l, a, r, i) {
5462
5480
  class: f(["w-tabs__bar", i.tabsBarClasses]),
5463
5481
  ref: "tabs-bar"
5464
5482
  }, [
5465
- (s(!0), u(k, null, L(e.tabs, (n, d) => (s(), u("div", {
5466
- class: f(["w-tabs__bar-item", i.barItemClasses(n)]),
5483
+ (s(!0), u(k, null, L(e.tabs, (r, d) => (s(), u("div", {
5484
+ class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
5467
5485
  key: d,
5468
- onClick: (h) => !n._disabled && n._uid !== e.activeTabUid && i.openTab(n._uid),
5469
- onFocus: (h) => e.$emit("focus", i.getOriginalItem(n)),
5470
- tabindex: !n._disabled && 0,
5471
- onKeypress: E((h) => !n._disabled && i.openTab(n._uid), ["enter"]),
5472
- "aria-selected": n._uid === e.activeTabUid ? "true" : "false",
5486
+ onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && i.openTab(r._uid),
5487
+ onFocus: (h) => e.$emit("focus", i.getOriginalItem(r)),
5488
+ tabindex: !r._disabled && 0,
5489
+ onKeypress: E((h) => !r._disabled && i.openTab(r._uid), ["enter"]),
5490
+ "aria-selected": r._uid === e.activeTabUid ? "true" : "false",
5473
5491
  role: "tab"
5474
5492
  }, [
5475
- e.$slots[`item-title.${n.id || d + 1}`] ? p(e.$slots, `item-title.${n.id || d + 1}`, {
5493
+ e.$slots[`item-title.${r.id || d + 1}`] ? p(e.$slots, `item-title.${r.id || d + 1}`, {
5476
5494
  key: 0,
5477
- item: i.getOriginalItem(n),
5495
+ item: i.getOriginalItem(r),
5478
5496
  index: d + 1,
5479
- active: n._uid === e.activeTabUid
5497
+ active: r._uid === e.activeTabUid
5480
5498
  }) : p(e.$slots, "item-title", {
5481
5499
  key: 1,
5482
- item: i.getOriginalItem(n),
5500
+ item: i.getOriginalItem(r),
5483
5501
  index: d + 1,
5484
- active: n._uid === e.activeTabUid
5502
+ active: r._uid === e.activeTabUid
5485
5503
  }, () => [
5486
5504
  w("div", {
5487
- innerHTML: n[l.itemTitleKey]
5505
+ innerHTML: r[l.itemTitleKey]
5488
5506
  }, null, 8, gs)
5489
5507
  ])
5490
5508
  ], 42, fs))), 128)),
@@ -5503,32 +5521,32 @@ function vs(e, t, l, a, r, i) {
5503
5521
  name: i.transitionName
5504
5522
  }, {
5505
5523
  default: g(() => [
5506
- (s(!0), u(k, null, L(e.tabs, (n, d) => N((s(), m(o, {
5507
- key: n._uid,
5508
- item: n,
5524
+ (s(!0), u(k, null, L(e.tabs, (r, d) => N((s(), m(a, {
5525
+ key: r._uid,
5526
+ item: r,
5509
5527
  class: f(l.contentClass)
5510
5528
  }, {
5511
5529
  default: g(() => [
5512
- e.$slots[`item-content.${n._index + 1}`] ? p(e.$slots, `item-content.${n._index + 1}`, {
5530
+ e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5513
5531
  key: 0,
5514
- item: i.getOriginalItem(n),
5515
- index: n._index + 1,
5516
- active: n._index === i.activeTab._index
5532
+ item: i.getOriginalItem(r),
5533
+ index: r._index + 1,
5534
+ active: r._index === i.activeTab._index
5517
5535
  }) : p(e.$slots, "item-content", {
5518
5536
  key: 1,
5519
- item: i.getOriginalItem(n),
5520
- index: n._index + 1,
5521
- active: n._index === i.activeTab._index
5537
+ item: i.getOriginalItem(r),
5538
+ index: r._index + 1,
5539
+ active: r._index === i.activeTab._index
5522
5540
  }, () => [
5523
- n[l.itemContentKey] ? (s(), u("div", {
5541
+ r[l.itemContentKey] ? (s(), u("div", {
5524
5542
  key: 0,
5525
- innerHTML: n[l.itemContentKey]
5543
+ innerHTML: r[l.itemContentKey]
5526
5544
  }, null, 8, ys)) : c("", !0)
5527
5545
  ])
5528
5546
  ]),
5529
5547
  _: 2
5530
5548
  }, 1032, ["item", "class"])), [
5531
- [oe, n._uid === i.activeTab._uid]
5549
+ [oe, r._uid === i.activeTab._uid]
5532
5550
  ])), 128))
5533
5551
  ]),
5534
5552
  _: 3
@@ -5541,27 +5559,27 @@ function vs(e, t, l, a, r, i) {
5541
5559
  (s(), m(Ve, {
5542
5560
  exclude: l.keepAlive ? "" : "tab-content"
5543
5561
  }, [
5544
- (s(), m(o, {
5562
+ (s(), m(a, {
5545
5563
  key: e.activeTabUid,
5546
5564
  item: i.activeTab,
5547
5565
  class: f(l.contentClass)
5548
5566
  }, {
5549
- default: g(({ item: n }) => [
5550
- n ? (s(), u(k, { key: 0 }, [
5551
- e.$slots[`item-content.${n._index + 1}`] ? p(e.$slots, `item-content.${n._index + 1}`, {
5567
+ default: g(({ item: r }) => [
5568
+ r ? (s(), u(k, { key: 0 }, [
5569
+ e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5552
5570
  key: 0,
5553
- item: i.getOriginalItem(n),
5554
- index: n._index + 1,
5555
- active: n._uid === e.activeTabUid
5571
+ item: i.getOriginalItem(r),
5572
+ index: r._index + 1,
5573
+ active: r._uid === e.activeTabUid
5556
5574
  }) : p(e.$slots, "item-content", {
5557
5575
  key: 1,
5558
- item: i.getOriginalItem(n),
5559
- index: n._index + 1,
5560
- active: n._uid === e.activeTabUid
5576
+ item: i.getOriginalItem(r),
5577
+ index: r._index + 1,
5578
+ active: r._uid === e.activeTabUid
5561
5579
  }, () => [
5562
- n[l.itemContentKey] ? (s(), u("div", {
5580
+ r[l.itemContentKey] ? (s(), u("div", {
5563
5581
  key: 0,
5564
- innerHTML: n[l.itemContentKey]
5582
+ innerHTML: r[l.itemContentKey]
5565
5583
  }, null, 8, ws)) : c("", !0)
5566
5584
  ])
5567
5585
  ], 64)) : c("", !0)
@@ -5658,9 +5676,9 @@ const ks = {
5658
5676
  },
5659
5677
  methods: {
5660
5678
  addTab(e) {
5661
- var t, l, a;
5679
+ var t, l, o;
5662
5680
  (l = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && l || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
5663
- _uid: (a = e[this.itemIdKey]) != null ? a : e._uid,
5681
+ _uid: (o = e[this.itemIdKey]) != null ? o : e._uid,
5664
5682
  _index: this.tabs.length,
5665
5683
  ...e,
5666
5684
  _disabled: !!e.disabled
@@ -5669,8 +5687,8 @@ const ks = {
5669
5687
  refreshTabs() {
5670
5688
  let e = this.items;
5671
5689
  typeof e == "number" && (e = Array(e).fill().map((t, l) => this.tabs[l] || {})), this.tabs = e.map((t, l) => {
5672
- var a, r, i;
5673
- return (r = (a = t[this.itemIdKey]) != null ? a : t._uid) != null && r || (t._uid = +`${this._.uid}${++fe}`), {
5690
+ var o, n, i;
5691
+ return (n = (o = t[this.itemIdKey]) != null ? o : t._uid) != null && n || (t._uid = +`${this._.uid}${++fe}`), {
5674
5692
  ...t,
5675
5693
  _uid: (i = t[this.itemIdKey]) != null ? i : t._uid,
5676
5694
  _index: l,
@@ -5679,11 +5697,11 @@ const ks = {
5679
5697
  });
5680
5698
  },
5681
5699
  reopenTheActiveTab() {
5682
- var t, l, a;
5700
+ var t, l, o;
5683
5701
  if (this.tabs.length === 1)
5684
5702
  return this.openTab(this.tabs[0]._uid);
5685
5703
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
5686
- 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);
5704
+ e || (e = (l = this.tabs[this.activeTabIndex]) == null ? void 0 : l._uid), e || (e = (o = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : o._uid), e && this.openTab(e);
5687
5705
  },
5688
5706
  onResize() {
5689
5707
  this.updateSlider(!1);
@@ -5709,16 +5727,16 @@ const ks = {
5709
5727
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
5710
5728
  }
5711
5729
  if (!this.fillBar && this.activeTabEl) {
5712
- const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left: r } = a.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(a);
5713
- this.slider.left = `${t - r - parseInt(i) + a.scrollLeft}px`, this.slider.width = `${l}px`;
5730
+ const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(o);
5731
+ this.slider.left = `${t - n - parseInt(i) + o.scrollLeft}px`, this.slider.width = `${l}px`;
5714
5732
  } else
5715
5733
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
5716
5734
  },
5717
5735
  updateActiveTab(e) {
5718
5736
  var t, l;
5719
5737
  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(() => {
5720
- const a = this.$refs["tabs-bar"];
5721
- this.activeTabEl = a && a.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5738
+ const o = this.$refs["tabs-bar"];
5739
+ this.activeTabEl = o && o.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5722
5740
  }));
5723
5741
  },
5724
5742
  getOriginalItem(e) {
@@ -5776,8 +5794,8 @@ const ks = {
5776
5794
  key: 2,
5777
5795
  class: "w-table__row w-table__pagination-wrap"
5778
5796
  }, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
5779
- function Js(e, t, l, a, r, i) {
5780
- const o = $("w-icon"), n = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
5797
+ function Js(e, t, l, o, n, i) {
5798
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
5781
5799
  return s(), u("div", {
5782
5800
  class: f(["w-table-wrap", i.wrapClasses])
5783
5801
  }, [
@@ -5801,7 +5819,7 @@ function Js(e, t, l, a, r, i) {
5801
5819
  key: R,
5802
5820
  onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
5803
5821
  }, [
5804
- b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
5822
+ b.sortable !== !1 && b.align === "right" ? (s(), m(a, {
5805
5823
  key: 0,
5806
5824
  class: f(["w-table__header-sort", i.headerSortClasses(b)])
5807
5825
  }, {
@@ -5823,7 +5841,7 @@ function Js(e, t, l, a, r, i) {
5823
5841
  innerHTML: b.label || ""
5824
5842
  }, null, 8, Vs))
5825
5843
  ], 64)) : c("", !0),
5826
- b.sortable !== !1 && b.align !== "right" ? (s(), m(o, {
5844
+ b.sortable !== !1 && b.align !== "right" ? (s(), m(a, {
5827
5845
  key: 2,
5828
5846
  class: f(["w-table__header-sort", i.headerSortClasses(b)])
5829
5847
  }, {
@@ -5846,7 +5864,7 @@ function Js(e, t, l, a, r, i) {
5846
5864
  w("td", {
5847
5865
  colspan: l.headers.length
5848
5866
  }, [
5849
- I(n, { tile: "" })
5867
+ I(r, { tile: "" })
5850
5868
  ], 8, Rs)
5851
5869
  ])) : c("", !0)
5852
5870
  ]),
@@ -5858,7 +5876,7 @@ function Js(e, t, l, a, r, i) {
5858
5876
  w("td", {
5859
5877
  colspan: l.headers.length
5860
5878
  }, [
5861
- I(n, { tile: "" }),
5879
+ I(r, { tile: "" }),
5862
5880
  w("div", xs, [
5863
5881
  p(e.$slots, "loading", {}, () => [
5864
5882
  S("Loading...")
@@ -6119,7 +6137,7 @@ const ge = 15, Qs = {
6119
6137
  if (!this.activeSorting.length || this.sortFunction || this.fetch)
6120
6138
  return this.filteredItems;
6121
6139
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6122
- 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)));
6140
+ 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)));
6123
6141
  },
6124
6142
  paginatedItems() {
6125
6143
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6185,28 +6203,28 @@ const ge = 15, Qs = {
6185
6203
  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();
6186
6204
  },
6187
6205
  doSelectRow(e, t) {
6188
- const l = this.expandableRows === "" ? !0 : this.expandableRows, a = this.selectableRows === "" ? !0 : this.selectableRows;
6206
+ const l = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6189
6207
  if (l) {
6190
- const r = this.expandedRowsByUid[e._uid] === void 0;
6191
- 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(
6208
+ const n = this.expandedRowsByUid[e._uid] === void 0;
6209
+ 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(
6192
6210
  "row-expand",
6193
6211
  {
6194
6212
  item: e,
6195
6213
  index: t,
6196
- expanded: r,
6214
+ expanded: n,
6197
6215
  expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
6198
6216
  }
6199
6217
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6200
- } else if (a) {
6201
- let r = !1;
6218
+ } else if (o) {
6219
+ let n = !1;
6202
6220
  const i = this.selectedRowsByUid[e._uid] === void 0;
6203
- 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(
6221
+ 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(
6204
6222
  "row-select",
6205
6223
  {
6206
6224
  item: e,
6207
6225
  index: t,
6208
6226
  selected: i,
6209
- selectedRows: this.selectedRowsInternal.map((o) => this.filteredItems[o])
6227
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
6210
6228
  }
6211
6229
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
6212
6230
  }
@@ -6222,16 +6240,16 @@ const ge = 15, Qs = {
6222
6240
  e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
6223
6241
  },
6224
6242
  onResizerMouseMove(e) {
6225
- const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth: r, nextColWidth: i } = this.colResizing;
6243
+ const { startCursorX: t, columnEl: l, nextColumnEl: o, colWidth: n, nextColWidth: i } = this.colResizing;
6226
6244
  this.colResizing.dragging = !0;
6227
- const o = e.pageX - t, n = r + i, d = r + o, h = i - o;
6228
- l.style.width = r + o + "px", a.style.width = i - o + "px";
6229
- const y = o < 0 && l.offsetWidth > d || l.offsetWidth <= ge, B = o > 0 && a.offsetWidth > h;
6245
+ const a = e.pageX - t, r = n + i, d = n + a, h = i - a;
6246
+ l.style.width = n + a + "px", o.style.width = i - a + "px";
6247
+ const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ge, B = a > 0 && o.offsetWidth > h;
6230
6248
  if (y) {
6231
6249
  const b = Math.max(l.offsetWidth, ge);
6232
- l.style.width = b + "px", a.style.width = n - b + "px";
6250
+ l.style.width = b + "px", o.style.width = r - b + "px";
6233
6251
  } else
6234
- B && (l.style.width = n - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
6252
+ B && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6235
6253
  },
6236
6254
  onResizerMouseUp() {
6237
6255
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6243,18 +6261,18 @@ const ge = 15, Qs = {
6243
6261
  }, 0);
6244
6262
  },
6245
6263
  initPagination() {
6246
- var a, r, i;
6247
- 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 }];
6248
- t.find((o) => {
6249
- var n;
6250
- return ((n = o == null ? void 0 : o.value) != null ? n : o) === +e;
6251
- }) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((o) => {
6252
- var n;
6264
+ var o, n, i;
6265
+ 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 }];
6266
+ t.find((a) => {
6267
+ var r;
6268
+ return ((r = a == null ? void 0 : a.value) != null ? r : a) === +e;
6269
+ }) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((a) => {
6270
+ var r;
6253
6271
  return {
6254
- label: ["string", "number"].includes(typeof o) ? o.toString() : o.label || o.value,
6255
- value: ["string", "number"].includes(typeof o) ? ~~o : (n = o.value) != null ? n : o.label
6272
+ label: ["string", "number"].includes(typeof a) ? a.toString() : a.label || a.value,
6273
+ value: ["string", "number"].includes(typeof a) ? ~~a : (r = a.value) != null ? r : a.label
6256
6274
  };
6257
- }), this.paginationConfig.itemsPerPageOptions.sort((o, n) => o.value < n.value ? -1 : 1);
6275
+ }), this.paginationConfig.itemsPerPageOptions.sort((a, r) => a.value < r.value ? -1 : 1);
6258
6276
  const l = this.paginationConfig.itemsPerPageOptions.shift();
6259
6277
  this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
6260
6278
  itemsPerPage: e,
@@ -6271,13 +6289,13 @@ const ge = 15, Qs = {
6271
6289
  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();
6272
6290
  },
6273
6291
  async callApiFetch() {
6274
- const { page: e, start: t, end: l, total: a, itemsPerPage: r } = this.paginationConfig;
6292
+ const { page: e, start: t, end: l, total: o, itemsPerPage: n } = this.paginationConfig;
6275
6293
  return await this.fetch({
6276
6294
  page: e,
6277
6295
  start: t,
6278
- end: l || a,
6279
- total: a,
6280
- itemsPerPage: r || a,
6296
+ end: l || o,
6297
+ total: o,
6298
+ itemsPerPage: n || o,
6281
6299
  sorting: this.activeSorting
6282
6300
  });
6283
6301
  }
@@ -6312,12 +6330,12 @@ const ge = 15, Qs = {
6312
6330
  }
6313
6331
  }
6314
6332
  }, Zs = /* @__PURE__ */ v(Qs, [["render", Js]]), ea = ["role", "aria-pressed", "tabindex"];
6315
- function ta(e, t, l, a, r, i) {
6333
+ function ta(e, t, l, o, n, i) {
6316
6334
  return s(), u("span", C({ class: "w-tag" }, W(e.$attrs, !0), {
6317
- onClick: t[1] || (t[1] = (o) => {
6335
+ onClick: t[1] || (t[1] = (a) => {
6318
6336
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6319
6337
  }),
6320
- onKeypress: t[2] || (t[2] = E((o) => {
6338
+ onKeypress: t[2] || (t[2] = E((a) => {
6321
6339
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6322
6340
  }, ["enter"])),
6323
6341
  class: i.classes,
@@ -6330,7 +6348,7 @@ function ta(e, t, l, a, r, i) {
6330
6348
  l.closable && l.modelValue ? (s(), u("i", {
6331
6349
  key: 0,
6332
6350
  class: "w-icon w-tag__closable wi-cross",
6333
- onClick: t[0] || (t[0] = M((o) => {
6351
+ onClick: t[0] || (t[0] = M((a) => {
6334
6352
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
6335
6353
  }, ["stop"])),
6336
6354
  role: "icon",
@@ -6388,14 +6406,14 @@ const la = {
6388
6406
  }
6389
6407
  }
6390
6408
  }, ia = /* @__PURE__ */ v(la, [["render", ta]]), sa = ["for"], aa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], oa = ["for"], na = ["for"];
6391
- function ra(e, t, l, a, r, i) {
6392
- const o = $("w-icon");
6393
- 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 }, {
6409
+ function ra(e, t, l, o, n, i) {
6410
+ const a = $("w-icon");
6411
+ return s(), m(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 }, {
6394
6412
  valid: e.valid,
6395
- "onUpdate:valid": t[6] || (t[6] = (n) => e.valid = n),
6413
+ "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
6396
6414
  wrap: i.hasLabel && l.labelPosition !== "inside",
6397
- onReset: t[7] || (t[7] = (n) => {
6398
- e.$emit("update:modelValue", r.inputValue = ""), e.$emit("input", "");
6415
+ onReset: t[7] || (t[7] = (r) => {
6416
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
6399
6417
  }),
6400
6418
  class: i.classes
6401
6419
  }), {
@@ -6414,12 +6432,12 @@ function ra(e, t, l, a, r, i) {
6414
6432
  w("div", {
6415
6433
  class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
6416
6434
  }, [
6417
- l.innerIconLeft ? (s(), m(o, {
6435
+ l.innerIconLeft ? (s(), m(a, {
6418
6436
  key: 0,
6419
6437
  class: "w-textarea__icon w-textarea__icon--inner-left",
6420
6438
  tag: "label",
6421
6439
  for: `w-textarea--${e._.uid}`,
6422
- onClick: t[0] || (t[0] = (n) => e.$emit("click:inner-icon-left", n))
6440
+ onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
6423
6441
  }, {
6424
6442
  default: g(() => [
6425
6443
  S(_(l.innerIconLeft), 1)
@@ -6429,11 +6447,11 @@ function ra(e, t, l, a, r, i) {
6429
6447
  N(w("textarea", C({
6430
6448
  class: "w-textarea__textarea",
6431
6449
  ref: "textarea",
6432
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.inputValue = n)
6450
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
6433
6451
  }, W(i.listeners, !0), {
6434
- onInput: t[2] || (t[2] = (...n) => i.onInput && i.onInput(...n)),
6435
- onFocus: t[3] || (t[3] = (...n) => i.onFocus && i.onFocus(...n)),
6436
- onBlur: t[4] || (t[4] = (...n) => i.onBlur && i.onBlur(...n)),
6452
+ onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
6453
+ onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
6454
+ onBlur: t[4] || (t[4] = (...r) => i.onBlur && i.onBlur(...r)),
6437
6455
  id: `w-textarea--${e._.uid}`,
6438
6456
  name: e.inputName,
6439
6457
  placeholder: l.placeholder || null,
@@ -6445,7 +6463,7 @@ function ra(e, t, l, a, r, i) {
6445
6463
  required: e.required || null,
6446
6464
  tabindex: e.tabindex || null
6447
6465
  }), null, 16, aa), [
6448
- [be, r.inputValue]
6466
+ [be, n.inputValue]
6449
6467
  ]),
6450
6468
  l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 1 }, [
6451
6469
  e.$slots.default || l.label ? (s(), u("label", {
@@ -6458,12 +6476,12 @@ function ra(e, t, l, a, r, i) {
6458
6476
  ])
6459
6477
  ], 10, oa)) : c("", !0)
6460
6478
  ], 64)) : c("", !0),
6461
- l.innerIconRight ? (s(), m(o, {
6479
+ l.innerIconRight ? (s(), m(a, {
6462
6480
  key: 2,
6463
6481
  class: "w-textarea__icon w-textarea__icon--inner-right",
6464
6482
  tag: "label",
6465
6483
  for: `w-textarea--${e._.uid}`,
6466
- onClick: t[5] || (t[5] = (n) => e.$emit("click:inner-icon-right", n))
6484
+ onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
6467
6485
  }, {
6468
6486
  default: g(() => [
6469
6487
  S(_(l.innerIconRight), 1)
@@ -6522,8 +6540,8 @@ const da = {
6522
6540
  },
6523
6541
  computed: {
6524
6542
  listeners() {
6525
- const { input: e, focus: t, blur: l, ...a } = this.$attrs;
6526
- return a;
6543
+ const { input: e, focus: t, blur: l, ...o } = this.$attrs;
6544
+ return o;
6527
6545
  },
6528
6546
  hasValue() {
6529
6547
  return this.inputValue || this.inputValue === 0;
@@ -6603,38 +6621,38 @@ const da = {
6603
6621
  }
6604
6622
  }
6605
6623
  }, ua = /* @__PURE__ */ v(da, [["render", ra]]), ha = ["innerHTML"], ca = ["innerHTML"];
6606
- function pa(e, t, l, a, r, i) {
6624
+ function pa(e, t, l, o, n, i) {
6607
6625
  return s(), u("ul", {
6608
6626
  class: f(["w-timeline", i.classes])
6609
6627
  }, [
6610
- (s(!0), u(k, null, L(l.items, (o, n) => (s(), u("li", {
6628
+ (s(!0), u(k, null, L(l.items, (a, r) => (s(), u("li", {
6611
6629
  class: "w-timeline-item",
6612
- key: n
6630
+ key: r
6613
6631
  }, [
6614
- (s(), m(V(o[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6615
- class: f(["w-timeline-item__bullet", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }])
6632
+ (s(), m(V(a[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6633
+ class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
6616
6634
  }, {
6617
6635
  default: g(() => [
6618
- S(_(o[l.itemIconKey] || l.icon), 1)
6636
+ S(_(a[l.itemIconKey] || l.icon), 1)
6619
6637
  ]),
6620
6638
  _: 2
6621
6639
  }, 1032, ["class"])),
6622
- e.$slots[`item.${n + 1}`] ? p(e.$slots, `item.${n + 1}`, {
6640
+ e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
6623
6641
  key: 1,
6624
- item: o,
6625
- index: n + 1
6642
+ item: a,
6643
+ index: r + 1
6626
6644
  }) : p(e.$slots, "item", {
6627
6645
  key: 0,
6628
- item: o,
6629
- index: n + 1
6646
+ item: a,
6647
+ index: r + 1
6630
6648
  }, () => [
6631
6649
  w("div", {
6632
- class: f(["w-timeline-item__title", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }]),
6633
- innerHTML: o[l.itemTitleKey]
6650
+ class: f(["w-timeline-item__title", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }]),
6651
+ innerHTML: a[l.itemTitleKey]
6634
6652
  }, null, 10, ha),
6635
6653
  w("div", {
6636
6654
  class: "w-timeline-item__content",
6637
- innerHTML: o[l.itemContentKey]
6655
+ innerHTML: a[l.itemContentKey]
6638
6656
  }, null, 8, ca)
6639
6657
  ])
6640
6658
  ]))), 128))
@@ -6663,7 +6681,7 @@ const fa = {
6663
6681
  }
6664
6682
  }
6665
6683
  }, ga = /* @__PURE__ */ v(fa, [["render", pa]]);
6666
- function ma(e, t, l, a, r, i) {
6684
+ function ma(e, t, l, o, n, i) {
6667
6685
  return s(), u("div", {
6668
6686
  class: f(["w-toolbar", i.classes]),
6669
6687
  style: T(i.styles)
@@ -6721,7 +6739,7 @@ const ba = {
6721
6739
  }
6722
6740
  }
6723
6741
  }, ya = /* @__PURE__ */ v(ba, [["render", ma]]);
6724
- function wa(e, t, l, a, r, i) {
6742
+ function wa(e, t, l, o, n, i) {
6725
6743
  return s(), u(k, null, [
6726
6744
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
6727
6745
  I(P, {
@@ -6829,7 +6847,7 @@ const va = {
6829
6847
  }
6830
6848
  }
6831
6849
  }, ka = /* @__PURE__ */ v(va, [["render", wa]]);
6832
- function _a(e, t, l, a, r, i) {
6850
+ function _a(e, t, l, o, n, i) {
6833
6851
  return s(), m(P, C({ name: "bounce" }, e.$props), {
6834
6852
  default: g(() => [
6835
6853
  p(e.$slots, "default")
@@ -6844,7 +6862,7 @@ const Ca = {
6844
6862
  duration: { type: [Number, String] }
6845
6863
  }
6846
6864
  }, Sa = /* @__PURE__ */ v(Ca, [["render", _a]]);
6847
- function Ba(e, t, l, a, r, i) {
6865
+ function Ba(e, t, l, o, n, i) {
6848
6866
  return s(), m(P, {
6849
6867
  name: "expand",
6850
6868
  mode: "out-in",
@@ -6956,7 +6974,7 @@ const $a = {
6956
6974
  }
6957
6975
  }
6958
6976
  }, Va = /* @__PURE__ */ v($a, [["render", Ba]]);
6959
- function Ia(e, t, l, a, r, i) {
6977
+ function Ia(e, t, l, o, n, i) {
6960
6978
  return s(), m(P, C({ name: "fade" }, e.$props), {
6961
6979
  default: g(() => [
6962
6980
  p(e.$slots, "default")
@@ -6971,7 +6989,7 @@ const Ra = {
6971
6989
  duration: { type: [Number, String] }
6972
6990
  }
6973
6991
  }, Ta = /* @__PURE__ */ v(Ra, [["render", Ia]]);
6974
- function La(e, t, l, a, r, i) {
6992
+ function La(e, t, l, o, n, i) {
6975
6993
  return s(), m(P, C({ name: "scale" }, e.$props), {
6976
6994
  default: g(() => [
6977
6995
  p(e.$slots, "default")
@@ -6986,7 +7004,7 @@ const xa = {
6986
7004
  duration: { type: [Number, String] }
6987
7005
  }
6988
7006
  }, Pa = /* @__PURE__ */ v(xa, [["render", La]]);
6989
- function Oa(e, t, l, a, r, i) {
7007
+ function Oa(e, t, l, o, n, i) {
6990
7008
  return s(), m(P, C({ name: "scale-fade" }, e.$props), {
6991
7009
  default: g(() => [
6992
7010
  p(e.$slots, "default")
@@ -7001,7 +7019,7 @@ const za = {
7001
7019
  duration: { type: [Number, String] }
7002
7020
  }
7003
7021
  }, Ma = /* @__PURE__ */ v(za, [["render", Oa]]);
7004
- function Ea(e, t, l, a, r, i) {
7022
+ function Ea(e, t, l, o, n, i) {
7005
7023
  return s(), m(P, C({ name: i.transitionName }, e.$props), {
7006
7024
  default: g(() => [
7007
7025
  p(e.$slots, "default")
@@ -7028,7 +7046,7 @@ const Wa = {
7028
7046
  }
7029
7047
  }
7030
7048
  }, Aa = /* @__PURE__ */ v(Wa, [["render", Ea]]);
7031
- function Na(e, t, l, a, r, i) {
7049
+ function Na(e, t, l, o, n, i) {
7032
7050
  return s(), m(P, C({ name: i.transitionName }, e.$props), {
7033
7051
  default: g(() => [
7034
7052
  p(e.$slots, "default")
@@ -7055,7 +7073,7 @@ const Ka = {
7055
7073
  }
7056
7074
  }
7057
7075
  }, Ha = /* @__PURE__ */ v(Ka, [["render", Na]]);
7058
- function Da(e, t, l, a, r, i) {
7076
+ function Da(e, t, l, o, n, i) {
7059
7077
  return s(), m(P, C({ name: "twist" }, e.$props), {
7060
7078
  default: g(() => [
7061
7079
  p(e.$slots, "default")
@@ -7073,8 +7091,8 @@ const Fa = {
7073
7091
  key: 1,
7074
7092
  class: "ml1"
7075
7093
  };
7076
- function Xa(e, t, l, a, r, i) {
7077
- const o = $("w-button"), n = $("w-icon"), d = $("w-tree", !0);
7094
+ function Xa(e, t, l, o, n, i) {
7095
+ const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7078
7096
  return s(), u("ul", {
7079
7097
  class: f(["w-tree", i.classes])
7080
7098
  }, [
@@ -7088,7 +7106,7 @@ function Xa(e, t, l, a, r, i) {
7088
7106
  tabindex: i.getTreeItemTabindex(h)
7089
7107
  }), {
7090
7108
  default: g(() => [
7091
- (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(o, {
7109
+ (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(a, {
7092
7110
  key: 0,
7093
7111
  class: "w-tree__item-expand",
7094
7112
  onClick: M((B) => !l.disabled && !h.disabled && i.onLabelClick(h, B), ["stop"]),
@@ -7108,7 +7126,7 @@ function Xa(e, t, l, a, r, i) {
7108
7126
  }, () => {
7109
7127
  var B;
7110
7128
  return [
7111
- i.itemIcon(h) ? (s(), m(n, {
7129
+ i.itemIcon(h) ? (s(), m(r, {
7112
7130
  key: 0,
7113
7131
  class: "w-tree__item-icon",
7114
7132
  color: h.originalItem[l.itemIconColorKey] || l.iconColor
@@ -7209,24 +7227,24 @@ const Ya = {
7209
7227
  methods: {
7210
7228
  updateCurrentDepthTree(e, t = []) {
7211
7229
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
7212
- return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7213
- Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
7214
- var i, o;
7215
- const r = {
7230
+ return U(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7231
+ Array.isArray(e) || (e = [e]), e.forEach((l, o) => {
7232
+ var i, a;
7233
+ const n = {
7216
7234
  originalItem: l,
7217
- _uid: this.depth.toString() + (a + 1),
7235
+ _uid: this.depth.toString() + (o + 1),
7218
7236
  label: l[this.itemLabelKey],
7219
7237
  children: !!l.children,
7220
7238
  branch: l.branch,
7221
7239
  route: l[this.itemRouteKey],
7222
7240
  disabled: l[this.itemDisabledKey],
7223
- selected: ((i = t[a]) == null ? void 0 : i.selected) || !1,
7241
+ selected: ((i = t[o]) == null ? void 0 : i.selected) || !1,
7224
7242
  depth: this.depth,
7225
- open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey]),
7243
+ open: !!(((a = t[o]) == null ? void 0 : a.open) || this.expandAll || l[this.itemOpenKey]),
7226
7244
  parent: this.parent || null,
7227
7245
  path: []
7228
7246
  };
7229
- r.path = this.getTreeItemPath(r), this.currentDepthItems.push(r);
7247
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
7230
7248
  });
7231
7249
  },
7232
7250
  getTreeItemComponent(e) {
@@ -7252,13 +7270,13 @@ const Ya = {
7252
7270
  },
7253
7271
  onLabelClick(e, t) {
7254
7272
  e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && (e.selected = !e.selected);
7255
- const a = this.emitPayload(e, t);
7256
- this.$emit("click", a), this.emitItemSelection(e, t);
7273
+ const o = this.emitPayload(e, t);
7274
+ this.$emit("click", o), this.emitItemSelection(e, t);
7257
7275
  },
7258
7276
  onLabelKeydown(e, t) {
7259
7277
  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))) {
7260
- 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;
7261
- [...a].some((o, n) => o.isSameNode(r) ? (a[n + i] && a[n + i].focus(), !0) : !1);
7278
+ 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;
7279
+ [...o].some((a, r) => a.isSameNode(n) ? (o[r + i] && o[r + i].focus(), !0) : !1);
7262
7280
  }
7263
7281
  t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
7264
7282
  },