wave-ui 3.5.1 → 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,7 @@ 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)), {
1372
1386
  loading: g(() => [
1373
1387
  p(e.$slots, "loading")
1374
1388
  ]),
@@ -1423,8 +1437,8 @@ const yt = {
1423
1437
  }
1424
1438
  }
1425
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"];
1426
- function kt(e, t, l, a, r, i) {
1427
- const o = $("w-image");
1440
+ function kt(e, t, l, o, n, i) {
1441
+ const a = $("w-image");
1428
1442
  return s(), u("div", {
1429
1443
  class: f(["w-card", i.classes])
1430
1444
  }, [
@@ -1438,7 +1452,7 @@ function kt(e, t, l, a, r, i) {
1438
1452
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }]),
1439
1453
  innerHTML: l.title
1440
1454
  }, null, 10, vt)) : c("", !0),
1441
- l.image ? (s(), m(o, C({
1455
+ l.image ? (s(), m(a, C({
1442
1456
  key: 2,
1443
1457
  class: "w-card__image",
1444
1458
  src: l.image
@@ -1558,12 +1572,12 @@ const _t = {
1558
1572
  ], -1), It = [
1559
1573
  Vt
1560
1574
  ], Rt = ["for"], Tt = ["for", "innerHTML"];
1561
- function Lt(e, t, l, a, r, i) {
1562
- 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 }, {
1563
1577
  valid: e.valid,
1564
- "onUpdate:valid": t[5] || (t[5] = (o) => e.valid = o),
1565
- onReset: t[6] || (t[6] = (o) => {
1566
- 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);
1567
1581
  }),
1568
1582
  class: i.classes
1569
1583
  }), {
@@ -1573,15 +1587,15 @@ function Lt(e, t, l, a, r, i) {
1573
1587
  id: `w-checkbox--${e._.uid}`,
1574
1588
  type: "checkbox",
1575
1589
  name: e.inputName,
1576
- checked: r.isChecked || null,
1590
+ checked: n.isChecked || null,
1577
1591
  disabled: e.isDisabled || e.isReadonly || null,
1578
1592
  required: e.required || null,
1579
1593
  tabindex: e.tabindex || null,
1580
- onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
1581
- onBlur: t[1] || (t[1] = (o) => e.$emit("blur", o)),
1582
- onChange: t[2] || (t[2] = (o) => i.onInput()),
1583
- onKeypress: t[3] || (t[3] = E((...o) => i.onInput && i.onInput(...o), ["enter"])),
1584
- "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",
1585
1599
  role: "checkbox"
1586
1600
  }, null, 40, St),
1587
1601
  i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
@@ -1602,7 +1616,7 @@ function Lt(e, t, l, a, r, i) {
1602
1616
  ], 64)) : c("", !0),
1603
1617
  w("div", {
1604
1618
  class: f(["w-checkbox__input", this.color]),
1605
- onClick: t[4] || (t[4] = (o) => {
1619
+ onClick: t[4] || (t[4] = (a) => {
1606
1620
  e.$refs.input.focus(), e.$refs.input.click();
1607
1621
  })
1608
1622
  }, It, 2),
@@ -1687,24 +1701,24 @@ const xt = {
1687
1701
  }
1688
1702
  }
1689
1703
  }, Pt = /* @__PURE__ */ v(xt, [["render", Lt]]), Ot = ["innerHTML"];
1690
- function zt(e, t, l, a, r, i) {
1691
- const o = $("w-checkbox");
1692
- 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 }, {
1693
1707
  valid: e.valid,
1694
- "onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
1708
+ "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
1695
1709
  onReset: i.reset,
1696
1710
  column: !l.inline,
1697
1711
  wrap: l.inline,
1698
1712
  class: i.classes
1699
1713
  }), {
1700
1714
  default: g(() => [
1701
- (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({
1702
1716
  key: d,
1703
- "model-value": n._isChecked,
1704
- "onUpdate:modelValue": (h) => i.toggleCheck(n, h),
1717
+ "model-value": r._isChecked,
1718
+ "onUpdate:modelValue": (h) => i.toggleCheck(r, h),
1705
1719
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
1706
1720
  name: `${e.inputName}[]`
1707
- }, { 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 }, {
1708
1722
  disabled: e.isDisabled || null,
1709
1723
  readonly: e.isReadonly || null,
1710
1724
  class: { mt1: !l.inline && d }
@@ -1712,13 +1726,13 @@ function zt(e, t, l, a, r, i) {
1712
1726
  default: g(() => [
1713
1727
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
1714
1728
  key: 0,
1715
- item: i.getOriginalItem(n),
1716
- checked: !!n._isChecked,
1729
+ item: i.getOriginalItem(r),
1730
+ checked: !!r._isChecked,
1717
1731
  index: d + 1,
1718
- innerHTML: n.label
1719
- }) : n.label ? (s(), u("div", {
1732
+ innerHTML: r.label
1733
+ }) : r.label ? (s(), u("div", {
1720
1734
  key: 1,
1721
- innerHTML: n.label
1735
+ innerHTML: r.label
1722
1736
  }, null, 8, Ot)) : c("", !0)
1723
1737
  ]),
1724
1738
  _: 2
@@ -1773,7 +1787,7 @@ const Mt = {
1773
1787
  },
1774
1788
  toggleCheck(e, t) {
1775
1789
  e._isChecked = t;
1776
- 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);
1777
1791
  this.$emit("update:modelValue", l), this.$emit("input", l);
1778
1792
  },
1779
1793
  getOriginalItem(e) {
@@ -1781,14 +1795,14 @@ const Mt = {
1781
1795
  }
1782
1796
  }
1783
1797
  }, Et = /* @__PURE__ */ v(Mt, [["render", zt]]);
1784
- function Wt(e, t, l, a, r, i) {
1785
- 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");
1786
1800
  return s(), m(d, C({
1787
1801
  modelValue: e.showPopup,
1788
1802
  "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
1789
1803
  }, i.wMenuProps), {
1790
1804
  activator: g(({ on: y }) => [
1791
- 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 }), {
1792
1806
  default: g(() => [
1793
1807
  p(e.$slots, "default")
1794
1808
  ]),
@@ -1796,7 +1810,7 @@ function Wt(e, t, l, a, r, i) {
1796
1810
  }, 1040)
1797
1811
  ]),
1798
1812
  default: g(() => [
1799
- I(n, {
1813
+ I(r, {
1800
1814
  column: !l.inline,
1801
1815
  "align-center": ""
1802
1816
  }, {
@@ -1809,7 +1823,7 @@ function Wt(e, t, l, a, r, i) {
1809
1823
  w("div", {
1810
1824
  class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
1811
1825
  }, [
1812
- l.cancel !== !1 ? (s(), m(o, C({
1826
+ l.cancel !== !1 ? (s(), m(a, C({
1813
1827
  key: 0,
1814
1828
  class: "mr2"
1815
1829
  }, i.cancelButtonProps, {
@@ -1824,7 +1838,7 @@ function Wt(e, t, l, a, r, i) {
1824
1838
  ]),
1825
1839
  _: 3
1826
1840
  }, 16, ["bg-color", "onClick"])) : c("", !0),
1827
- N((s(), m(o, C(i.confirmButtonProps, {
1841
+ N((s(), m(a, C(i.confirmButtonProps, {
1828
1842
  "bg-color": (i.confirmButton || {}).bgColor || "success",
1829
1843
  onKeyup: t[1] || (t[1] = E((y) => !l.persistent && i.onCancel(), ["escape"])),
1830
1844
  onClick: i.onConfirm
@@ -1940,7 +1954,7 @@ const At = {
1940
1954
  }
1941
1955
  }
1942
1956
  }, Nt = /* @__PURE__ */ v(At, [["render", Wt]]);
1943
- function Kt(e, t, l, a, r, i) {
1957
+ function Kt(e, t, l, o, n, i) {
1944
1958
  return s(), u("div", {
1945
1959
  class: f(["w-date-picker", i.classes]),
1946
1960
  style: T(i.styles)
@@ -1967,11 +1981,11 @@ const Ht = {
1967
1981
  }
1968
1982
  }
1969
1983
  }, Dt = /* @__PURE__ */ v(Ht, [["render", Kt]]);
1970
- function Ft(e, t, l, a, r, i) {
1971
- const o = $("w-card"), n = $("w-overlay");
1972
- 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, {
1973
1987
  class: f(["w-dialog", i.classes]),
1974
- "model-value": r.showWrapper,
1988
+ "model-value": n.showWrapper,
1975
1989
  persistent: l.persistent,
1976
1990
  "persistent-no-animation": l.persistentNoAnimation,
1977
1991
  onClick: i.onOutsideClick,
@@ -1986,7 +2000,7 @@ function Ft(e, t, l, a, r, i) {
1986
2000
  onAfterLeave: i.onBeforeClose
1987
2001
  }, {
1988
2002
  default: g(() => [
1989
- N(I(o, {
2003
+ N(I(a, {
1990
2004
  class: f(["w-dialog__content", l.dialogClass]),
1991
2005
  ref: "dialog",
1992
2006
  "no-border": "",
@@ -2017,7 +2031,7 @@ function Ft(e, t, l, a, r, i) {
2017
2031
  key: "1"
2018
2032
  } : void 0
2019
2033
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2020
- [oe, r.showContent]
2034
+ [oe, n.showContent]
2021
2035
  ])
2022
2036
  ]),
2023
2037
  _: 3
@@ -2094,7 +2108,7 @@ const jt = {
2094
2108
  }
2095
2109
  }
2096
2110
  }, Ut = /* @__PURE__ */ v(jt, [["render", Ft]]), qt = ["role", "aria-orientation"];
2097
- function Xt(e, t, l, a, r, i) {
2111
+ function Xt(e, t, l, o, n, i) {
2098
2112
  return s(), u("div", {
2099
2113
  class: f(["w-divider", i.classes]),
2100
2114
  role: e.$slots.default ? null : "presentation",
@@ -2124,9 +2138,9 @@ const Yt = {
2124
2138
  }
2125
2139
  }
2126
2140
  }, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]), Jt = { class: "w-drawer-wrap__pushable" };
2127
- function Qt(e, t, l, a, r, i) {
2128
- const o = $("w-overlay");
2129
- 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", {
2130
2144
  key: 0,
2131
2145
  class: f(["w-drawer-wrap", i.wrapperClasses])
2132
2146
  }, [
@@ -2136,10 +2150,10 @@ function Qt(e, t, l, a, r, i) {
2136
2150
  style: T(i.trackStyles)
2137
2151
  }, [
2138
2152
  w("div", Jt, [
2139
- l.noOverlay ? c("", !0) : (s(), m(o, {
2153
+ l.noOverlay ? c("", !0) : (s(), m(a, {
2140
2154
  key: 0,
2141
- modelValue: r.showDrawer,
2142
- "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),
2143
2157
  onClick: i.onOutsideClick,
2144
2158
  persistent: l.persistent,
2145
2159
  "persistent-no-animation": "",
@@ -2154,7 +2168,7 @@ function Qt(e, t, l, a, r, i) {
2154
2168
  onAfterLeave: i.onClose
2155
2169
  }, {
2156
2170
  default: g(() => [
2157
- r.showDrawer ? (s(), m(V(l.tag || "aside"), {
2171
+ n.showDrawer ? (s(), m(V(l.tag || "aside"), {
2158
2172
  key: 0,
2159
2173
  class: f(["w-drawer", i.drawerClasses]),
2160
2174
  ref: "drawer",
@@ -2169,10 +2183,10 @@ function Qt(e, t, l, a, r, i) {
2169
2183
  _: 3
2170
2184
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2171
2185
  ], 4)) : (s(), u(k, { key: 1 }, [
2172
- l.noOverlay ? c("", !0) : (s(), m(o, {
2186
+ l.noOverlay ? c("", !0) : (s(), m(a, {
2173
2187
  key: 0,
2174
- modelValue: r.showDrawer,
2175
- "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),
2176
2190
  onClick: i.onOutsideClick,
2177
2191
  persistent: l.persistent,
2178
2192
  "persistent-no-animation": "",
@@ -2186,7 +2200,7 @@ function Qt(e, t, l, a, r, i) {
2186
2200
  onAfterLeave: i.onClose
2187
2201
  }, {
2188
2202
  default: g(() => [
2189
- r.showDrawer ? (s(), m(V(l.tag || "aside"), {
2203
+ n.showDrawer ? (s(), m(V(l.tag || "aside"), {
2190
2204
  key: 0,
2191
2205
  class: f(["w-drawer", i.drawerClasses]),
2192
2206
  ref: "drawer",
@@ -2309,7 +2323,7 @@ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2309
2323
  }
2310
2324
  }
2311
2325
  }, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
2312
- function ll(e, t, l, a, r, i) {
2326
+ function ll(e, t, l, o, n, i) {
2313
2327
  return s(), m(V(l.tag), {
2314
2328
  class: f(["w-flex", i.classes])
2315
2329
  }, {
@@ -2367,11 +2381,11 @@ const il = {
2367
2381
  }
2368
2382
  }
2369
2383
  }, sl = /* @__PURE__ */ v(il, [["render", ll]]);
2370
- function al(e, t, l, a, r, i) {
2384
+ function al(e, t, l, o, n, i) {
2371
2385
  return s(), u("form", {
2372
2386
  class: f(["w-form", i.classes]),
2373
- onSubmit: t[0] || (t[0] = (...o) => i.onSubmit && i.onSubmit(...o)),
2374
- 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)),
2375
2389
  novalidate: ""
2376
2390
  }, [
2377
2391
  p(e.$slots, "default")
@@ -2440,8 +2454,8 @@ const ol = async (e, t) => {
2440
2454
  let t = 0;
2441
2455
  return await (async () => {
2442
2456
  var l;
2443
- for (const a of this.formElements)
2444
- !((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));
2445
2459
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2446
2460
  },
2447
2461
  async validateElement(e) {
@@ -2449,16 +2463,16 @@ const ol = async (e, t) => {
2449
2463
  },
2450
2464
  async checkElementValidators(e) {
2451
2465
  let t = !1, l = "";
2452
- await ol(e.validators, async (a) => {
2453
- const r = await (typeof a == "function" && a(e.inputValue));
2454
- 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;
2455
2469
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
2456
2470
  },
2457
2471
  reset(e) {
2458
2472
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2459
2473
  },
2460
2474
  updateErrorsCount(e = null, t = !1) {
2461
- 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);
2462
2476
  },
2463
2477
  onSubmit(e) {
2464
2478
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2473,8 +2487,8 @@ const ol = async (e, t) => {
2473
2487
  }
2474
2488
  }
2475
2489
  }, rl = /* @__PURE__ */ v(nl, [["render", al]]);
2476
- function dl(e, t, l, a, r, i) {
2477
- const o = $("w-transition-expand");
2490
+ function dl(e, t, l, o, n, i) {
2491
+ const a = $("w-transition-expand");
2478
2492
  return s(), u("div", {
2479
2493
  class: f(i.classes)
2480
2494
  }, [
@@ -2483,7 +2497,7 @@ function dl(e, t, l, a, r, i) {
2483
2497
  }, [
2484
2498
  p(e.$slots, "default")
2485
2499
  ], 2),
2486
- I(o, { y: "" }, {
2500
+ I(a, { y: "" }, {
2487
2501
  default: g(() => [
2488
2502
  e.Validation.message ? (s(), u("div", {
2489
2503
  key: 0,
@@ -2567,7 +2581,7 @@ const ul = {
2567
2581
  this.formUnregister && this.formUnregister(this);
2568
2582
  }
2569
2583
  }, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
2570
- function cl(e, t, l, a, r, i) {
2584
+ function cl(e, t, l, o, n, i) {
2571
2585
  return s(), m(V(l.tag), {
2572
2586
  class: f(["w-grid", i.classes])
2573
2587
  }, {
@@ -2613,16 +2627,16 @@ const pl = {
2613
2627
  },
2614
2628
  classes() {
2615
2629
  let e = null;
2616
- 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), {}));
2617
2631
  let t = null;
2618
- 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), {})), {
2619
2633
  ...e || { [`columns${this.columns}`]: this.columns },
2620
2634
  ...t || { [`gap${this.gap}`]: this.gap }
2621
2635
  };
2622
2636
  }
2623
2637
  }
2624
2638
  }, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
2625
- function gl(e, t, l, a, r, i) {
2639
+ function gl(e, t, l, o, n, i) {
2626
2640
  return s(), m(V(l.tag || "i"), C({ class: "w-icon" }, W(e.$attrs), {
2627
2641
  class: i.classes,
2628
2642
  role: "icon",
@@ -2706,12 +2720,12 @@ const ml = {
2706
2720
  return this.fontName = t, this.icon = l, !0;
2707
2721
  }
2708
2722
  }
2709
- }, 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 = {
2710
2724
  key: 0,
2711
2725
  class: "w-image__loader"
2712
2726
  };
2713
- function wl(e, t, l, a, r, i) {
2714
- const o = $("w-progress");
2727
+ function wl(e, t, l, o, n, i) {
2728
+ const a = $("w-progress");
2715
2729
  return s(), m(V(i.wrapperTag), {
2716
2730
  class: f(["w-image-wrap", i.wrapperClasses]),
2717
2731
  style: T(i.wrapperStyles)
@@ -2722,17 +2736,17 @@ function wl(e, t, l, a, r, i) {
2722
2736
  appear: ""
2723
2737
  }, {
2724
2738
  default: g(() => [
2725
- r.loaded ? (s(), m(V(l.tag), {
2739
+ n.loaded ? (s(), m(V(l.tag), {
2726
2740
  key: 0,
2727
2741
  class: f(["w-image", i.imageClasses]),
2728
2742
  style: T(i.imageStyles),
2729
- src: l.tag === "img" ? r.imgSrc : null
2743
+ src: l.tag === "img" ? n.imgSrc : null
2730
2744
  }, null, 8, ["class", "style", "src"])) : c("", !0)
2731
2745
  ]),
2732
2746
  _: 1
2733
2747
  }, 8, ["name"]),
2734
- !l.noSpinner && r.loading ? (s(), u("div", yl, [
2735
- 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({
2736
2750
  key: 1,
2737
2751
  circle: "",
2738
2752
  indeterminate: ""
@@ -2819,15 +2833,15 @@ const vl = {
2819
2833
  if (!this.loading)
2820
2834
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
2821
2835
  const l = new Image();
2822
- 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) => {
2823
- 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);
2824
2838
  }, l.src = e ? this.fallback : this.src;
2825
2839
  });
2826
2840
  }
2827
2841
  },
2828
2842
  mounted() {
2829
2843
  if (!this.src)
2830
- return G("The w-image component was used without src.");
2844
+ return U("The w-image component was used without src.");
2831
2845
  if (this.lazy) {
2832
2846
  const e = new IntersectionObserver((t) => {
2833
2847
  t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
@@ -2847,17 +2861,17 @@ const vl = {
2847
2861
  this.imgHeight = e;
2848
2862
  }
2849
2863
  }
2850
- }, 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 = {
2851
2865
  class: "w-input__no-file",
2852
2866
  key: "no-file"
2853
2867
  }, Vl = ["for"], Il = ["for"], Rl = ["src"], Tl = ["for"];
2854
- function Ll(e, t, l, a, r, i) {
2855
- const o = $("w-icon"), n = $("w-progress");
2856
- 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 }, {
2857
2871
  valid: e.valid,
2858
2872
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
2859
2873
  onReset: t[11] || (t[11] = (d) => {
2860
- e.$emit("update:modelValue", r.inputValue = ""), e.$emit("input", "");
2874
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
2861
2875
  }),
2862
2876
  wrap: i.hasLabel && l.labelPosition !== "inside",
2863
2877
  class: i.classes
@@ -2867,9 +2881,9 @@ function Ll(e, t, l, a, r, i) {
2867
2881
  key: 0,
2868
2882
  type: "hidden",
2869
2883
  name: e.name || null,
2870
- "onUpdate:modelValue": t[0] || (t[0] = (d) => r.inputValue = d)
2884
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
2871
2885
  }, null, 8, _l)), [
2872
- [be, r.inputValue]
2886
+ [be, n.inputValue]
2873
2887
  ]) : (s(), u(k, { key: 1 }, [
2874
2888
  l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
2875
2889
  e.$slots.default || l.label ? (s(), u("label", {
@@ -2885,7 +2899,7 @@ function Ll(e, t, l, a, r, i) {
2885
2899
  w("div", {
2886
2900
  class: f(["w-input__input-wrap", i.inputWrapClasses])
2887
2901
  }, [
2888
- l.innerIconLeft ? (s(), m(o, {
2902
+ l.innerIconLeft ? (s(), m(a, {
2889
2903
  key: 0,
2890
2904
  class: "w-input__icon w-input__icon--inner-left",
2891
2905
  tag: "label",
@@ -2901,7 +2915,7 @@ function Ll(e, t, l, a, r, i) {
2901
2915
  key: 1,
2902
2916
  class: "w-input__input",
2903
2917
  ref: "input",
2904
- "onUpdate:modelValue": t[2] || (t[2] = (d) => r.inputValue = d)
2918
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
2905
2919
  }, W(i.listeners, !0), {
2906
2920
  onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
2907
2921
  onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
@@ -2921,7 +2935,7 @@ function Ll(e, t, l, a, r, i) {
2921
2935
  required: e.required || null,
2922
2936
  tabindex: e.tabindex || null
2923
2937
  }, i.attrs), null, 16, Sl)), [
2924
- [$e, r.inputValue]
2938
+ [$e, n.inputValue]
2925
2939
  ]) : (s(), u(k, { key: 2 }, [
2926
2940
  w("input", C({
2927
2941
  ref: "input",
@@ -2933,6 +2947,7 @@ function Ll(e, t, l, a, r, i) {
2933
2947
  onChange: t[8] || (t[8] = (...d) => i.onFileChange && i.onFileChange(...d)),
2934
2948
  multiple: l.multiple || null
2935
2949
  }, i.attrs, {
2950
+ disabled: e.isDisabled || null,
2936
2951
  "data-progress": i.overallFilesProgress
2937
2952
  }), null, 16, Bl),
2938
2953
  I(ae, {
@@ -2942,14 +2957,14 @@ function Ll(e, t, l, a, r, i) {
2942
2957
  for: `w-input--${e._.uid}`
2943
2958
  }, {
2944
2959
  default: g(() => [
2945
- !r.inputFiles.length && r.isFocused ? (s(), u("span", $l, [
2960
+ !n.inputFiles.length && n.isFocused ? (s(), u("span", $l, [
2946
2961
  p(e.$slots, "no-file", {}, () => [
2947
2962
  e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
2948
2963
  S("No file")
2949
2964
  ], 64)) : c("", !0)
2950
2965
  ])
2951
2966
  ])) : c("", !0),
2952
- (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", {
2953
2968
  key: d.lastModified
2954
2969
  }, [
2955
2970
  S(_(h ? ", " : ""), 1),
@@ -2974,7 +2989,7 @@ function Ll(e, t, l, a, r, i) {
2974
2989
  ])
2975
2990
  ], 10, Vl)) : c("", !0)
2976
2991
  ], 64)) : c("", !0),
2977
- l.innerIconRight ? (s(), m(o, {
2992
+ l.innerIconRight ? (s(), m(a, {
2978
2993
  key: 4,
2979
2994
  class: "w-input__icon w-input__icon--inner-right",
2980
2995
  tag: "label",
@@ -2986,7 +3001,7 @@ function Ll(e, t, l, a, r, i) {
2986
3001
  ]),
2987
3002
  _: 1
2988
3003
  }, 8, ["for"])) : c("", !0),
2989
- i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), m(n, {
3004
+ i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), m(r, {
2990
3005
  key: 5,
2991
3006
  class: "fill-width",
2992
3007
  size: "2",
@@ -2994,12 +3009,12 @@ function Ll(e, t, l, a, r, i) {
2994
3009
  "model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
2995
3010
  }, null, 8, ["color", "model-value"])) : c("", !0)
2996
3011
  ], 2),
2997
- l.type === "file" && l.preview && r.inputFiles.length ? (s(), u("label", {
3012
+ l.type === "file" && l.preview && n.inputFiles.length ? (s(), u("label", {
2998
3013
  key: 1,
2999
3014
  class: "d-flex",
3000
3015
  for: `w-input--${e._.uid}`
3001
3016
  }, [
3002
- (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, [
3003
3018
  d.progress < 100 ? (s(), u("i", {
3004
3019
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3005
3020
  key: `${h}a`
@@ -3080,8 +3095,8 @@ const xl = {
3080
3095
  return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
3081
3096
  },
3082
3097
  listeners() {
3083
- const { input: e, focus: t, blur: l, ...a } = this.$attrs;
3084
- return a;
3098
+ const { input: e, focus: t, blur: l, ...o } = this.$attrs;
3099
+ return o;
3085
3100
  },
3086
3101
  hasValue() {
3087
3102
  switch (this.type) {
@@ -3110,7 +3125,7 @@ const xl = {
3110
3125
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3111
3126
  },
3112
3127
  overallFilesProgress() {
3113
- 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;
3114
3129
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
3115
3130
  },
3116
3131
  uploadInProgress() {
@@ -3164,10 +3179,10 @@ const xl = {
3164
3179
  },
3165
3180
  onFileChange(e) {
3166
3181
  this.inputFiles = [...e.target.files].map((l) => {
3167
- const [, a = "", r = "", i = ""] = l.name.match(/^(.*?)\.([^.]*)$|(.*)/), o = Q({
3182
+ const [, o = "", n = "", i = ""] = l.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
3168
3183
  name: l.name,
3169
- base: a || i,
3170
- extension: r,
3184
+ base: o || i,
3185
+ extension: n,
3171
3186
  type: l.type,
3172
3187
  size: l.size,
3173
3188
  lastModified: l.lastModified,
@@ -3175,14 +3190,14 @@ const xl = {
3175
3190
  progress: 0,
3176
3191
  file: l
3177
3192
  });
3178
- return this.readFile(l, o), o;
3193
+ return this.readFile(l, a), a;
3179
3194
  });
3180
3195
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3181
3196
  this.$emit("update:modelValue", t), this.$emit("input", t);
3182
3197
  },
3183
3198
  readFile(e, t) {
3184
- const l = new FileReader(), a = typeof this.preview == "string", r = e.type && e.type.startsWith("image/");
3185
- 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) => {
3186
3201
  t.preview = i.target.result;
3187
3202
  }) : delete t.preview, l.addEventListener("progress", (i) => {
3188
3203
  i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
@@ -3200,8 +3215,8 @@ const xl = {
3200
3215
  }
3201
3216
  }
3202
3217
  }, Pl = /* @__PURE__ */ v(xl, [["render", Ll]]);
3203
- function Ol(e, t, l, a, r, i) {
3204
- 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);
3205
3220
  return s(), u("ul", {
3206
3221
  class: f(["w-list", i.classes])
3207
3222
  }, [
@@ -3209,7 +3224,7 @@ function Ol(e, t, l, a, r, i) {
3209
3224
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3210
3225
  key: h
3211
3226
  }, [
3212
- l.icon ? (s(), m(o, {
3227
+ l.icon ? (s(), m(a, {
3213
3228
  key: 0,
3214
3229
  class: "w-list__item-bullet"
3215
3230
  }, {
@@ -3247,7 +3262,7 @@ function Ol(e, t, l, a, r, i) {
3247
3262
  key: 2,
3248
3263
  class: "w-list__item-label"
3249
3264
  }, i.liLabelProps(d, h, d._selected)), null, 16)),
3250
- (d.children || []).length ? (s(), m(n, C({ key: 3 }, e.$props, {
3265
+ (d.children || []).length ? (s(), m(r, C({ key: 3 }, e.$props, {
3251
3266
  items: d.children,
3252
3267
  depth: l.depth + 1,
3253
3268
  "onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
@@ -3366,28 +3381,28 @@ const zl = {
3366
3381
  };
3367
3382
  },
3368
3383
  liLabelProps(e, t, l) {
3369
- const a = this.$slots[`item.${t + 1}`] || this.$slots.item, r = () => {
3384
+ const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3370
3385
  if (!e.disabled) {
3371
3386
  const d = this.cleanLi(e);
3372
3387
  this.$emit("item-click", d), this.$emit("item-select", d);
3373
3388
  }
3374
3389
  }, i = this.isSelectable && ((d) => {
3375
3390
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3376
- }), o = this.isSelectable && ((d) => {
3391
+ }), a = this.isSelectable && ((d) => {
3377
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));
3378
- }), n = {
3393
+ }), r = {
3379
3394
  class: this.liLabelClasses(e),
3380
3395
  tabindex: e.disabled || this.checklist ? null : "0",
3381
3396
  "aria-selected": l ? "true" : "false",
3382
3397
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3383
3398
  role: "option"
3384
3399
  };
3385
- 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) => {
3386
3401
  const h = d.target.querySelector('input[type="checkbox"]');
3387
- h && (h.focus(), h.click()), r();
3388
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (n.onKeydown = o, n.onMousedown = i, this.$router ? (n.to = e[this.itemRouteKey], n.onClick = (d) => {
3389
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), r();
3390
- }) : (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;
3391
3406
  },
3392
3407
  checkSelection(e) {
3393
3408
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
@@ -3396,7 +3411,7 @@ const zl = {
3396
3411
  const e = this.selectedItems.map((l) => {
3397
3412
  if (!this.returnObject)
3398
3413
  return l._value;
3399
- const { _value: a, _selected: r, ...i } = l;
3414
+ const { _value: o, _selected: n, ...i } = l;
3400
3415
  return i;
3401
3416
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3402
3417
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3407,8 +3422,8 @@ const zl = {
3407
3422
  e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3408
3423
  },
3409
3424
  cleanLi(e) {
3410
- const { _index: t, _value: l, _label: a, _selected: r, _focused: i, ...o } = e;
3411
- return o;
3425
+ const { _index: t, _value: l, _label: o, _selected: n, _focused: i, ...a } = e;
3426
+ return a;
3412
3427
  },
3413
3428
  refreshListItems() {
3414
3429
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -3423,7 +3438,7 @@ const zl = {
3423
3438
  },
3424
3439
  applySelectionOnItems(e) {
3425
3440
  this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => {
3426
- const l = this.listItems.find((a) => a._value === t);
3441
+ const l = this.listItems.find((o) => o._value === t);
3427
3442
  l && (l._selected = !0);
3428
3443
  });
3429
3444
  }
@@ -3474,7 +3489,7 @@ const zl = {
3474
3489
  let e = ".w-app";
3475
3490
  typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
3476
3491
  let t = this.appendTo || e;
3477
- 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;
3478
3493
  },
3479
3494
  detachableParentEl() {
3480
3495
  return this.appendToTarget;
@@ -3512,39 +3527,39 @@ const zl = {
3512
3527
  }, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize);
3513
3528
  },
3514
3529
  getActivatorCoordinates() {
3515
- const { top: e, left: t, width: l, height: a } = this.activatorEl.getBoundingClientRect();
3516
- 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 };
3517
3532
  if (!this.fixed) {
3518
- const { top: i, left: o } = this.detachableParentEl.getBoundingClientRect(), n = window.getComputedStyle(this.detachableParentEl, null);
3519
- r = {
3520
- ...r,
3521
- top: e - i + this.detachableParentEl.scrollTop - parseInt(n.getPropertyValue("border-top-width")),
3522
- 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"))
3523
3538
  };
3524
3539
  }
3525
- return r;
3540
+ return n;
3526
3541
  },
3527
3542
  computeDetachableCoords() {
3528
- let { top: e, left: t, width: l, height: a } = this.getActivatorCoordinates();
3543
+ let { top: e, left: t, width: l, height: o } = this.getActivatorCoordinates();
3529
3544
  if (!this.detachableEl)
3530
3545
  return;
3531
3546
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
3532
- const r = window.getComputedStyle(this.detachableEl, null);
3547
+ const n = window.getComputedStyle(this.detachableEl, null);
3533
3548
  switch (this.position) {
3534
3549
  case "top": {
3535
- 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);
3536
3551
  break;
3537
3552
  }
3538
3553
  case "bottom": {
3539
- 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);
3540
3555
  break;
3541
3556
  }
3542
3557
  case "left": {
3543
- 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);
3544
3559
  break;
3545
3560
  }
3546
3561
  case "right": {
3547
- 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")));
3548
3563
  break;
3549
3564
  }
3550
3565
  }
@@ -3571,11 +3586,11 @@ const zl = {
3571
3586
  const e = typeof this.activator == "string";
3572
3587
  Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
3573
3588
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3574
- const a = (r) => {
3589
+ const o = (n) => {
3575
3590
  var i;
3576
- (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);
3577
3592
  };
3578
- document.addEventListener(t, a), this.docEventListenersHandlers.push({ eventName: t, handler: a });
3593
+ document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
3579
3594
  });
3580
3595
  }
3581
3596
  },
@@ -3599,8 +3614,8 @@ const zl = {
3599
3614
  }
3600
3615
  }
3601
3616
  };
3602
- function El(e, t, l, a, r, i) {
3603
- const o = $("w-card"), n = $("w-overlay");
3617
+ function El(e, t, l, o, n, i) {
3618
+ const a = $("w-card"), r = $("w-overlay");
3604
3619
  return s(), u(k, null, [
3605
3620
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
3606
3621
  I(P, {
@@ -3620,7 +3635,7 @@ function El(e, t, l, a, r, i) {
3620
3635
  style: i.styles
3621
3636
  }), [
3622
3637
  p(e.$slots, "default")
3623
- ], 16)) : e.detachableVisible ? (s(), m(o, C({
3638
+ ], 16)) : e.detachableVisible ? (s(), m(a, C({
3624
3639
  key: 1,
3625
3640
  class: "w-menu",
3626
3641
  ref: "detachable"
@@ -3659,7 +3674,7 @@ function El(e, t, l, a, r, i) {
3659
3674
  ]),
3660
3675
  _: 3
3661
3676
  }, 8, ["name"]),
3662
- l.overlay ? (s(), m(n, C({
3677
+ l.overlay ? (s(), m(r, C({
3663
3678
  key: 0,
3664
3679
  ref: "overlay",
3665
3680
  "model-value": e.detachableVisible,
@@ -3795,21 +3810,21 @@ const Wl = {
3795
3810
  }
3796
3811
  }
3797
3812
  }, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
3798
- function Nl(e, t, l, a, r, i) {
3799
- const o = $("w-alert");
3813
+ function Nl(e, t, l, o, n, i) {
3814
+ const a = $("w-alert");
3800
3815
  return s(), m(P, {
3801
3816
  name: i.transitionName,
3802
3817
  appear: ""
3803
3818
  }, {
3804
3819
  default: g(() => [
3805
- r.show ? (s(), u("div", {
3820
+ n.show ? (s(), u("div", {
3806
3821
  key: 0,
3807
3822
  class: f(["w-notification", i.classes]),
3808
3823
  style: T(i.styles)
3809
3824
  }, [
3810
- I(o, C(i.alertProps, {
3825
+ I(a, C(i.alertProps, {
3811
3826
  class: i.alertClasses,
3812
- "onUpdate:modelValue": t[0] || (t[0] = (n) => {
3827
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => {
3813
3828
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
3814
3829
  })
3815
3830
  }), {
@@ -3944,8 +3959,8 @@ const Kl = {
3944
3959
  }
3945
3960
  }
3946
3961
  }, Hl = /* @__PURE__ */ v(Kl, [["render", Nl]]);
3947
- function Dl(e, t, l, a, r, i) {
3948
- const o = me("focus");
3962
+ function Dl(e, t, l, o, n, i) {
3963
+ const a = me("focus");
3949
3964
  return s(), m(P, {
3950
3965
  name: "fade",
3951
3966
  appear: "",
@@ -3957,14 +3972,14 @@ function Dl(e, t, l, a, r, i) {
3957
3972
  class: f(["w-overlay", i.classes]),
3958
3973
  ref: "overlay",
3959
3974
  style: T(l.modelValue && i.styles || null),
3960
- onKeydown: t[0] || (t[0] = E(M((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
3961
- 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)),
3962
3977
  tabindex: "0"
3963
3978
  }, [
3964
3979
  p(e.$slots, "default")
3965
3980
  ], 38)), [
3966
3981
  [oe, e.showOverlay],
3967
- [o]
3982
+ [a]
3968
3983
  ]) : c("", !0)
3969
3984
  ]),
3970
3985
  _: 3
@@ -4025,7 +4040,7 @@ const Fl = {
4025
4040
  }
4026
4041
  }
4027
4042
  }, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = { class: "w-parallax" };
4028
- function ql(e, t, l, a, r, i) {
4043
+ function ql(e, t, l, o, n, i) {
4029
4044
  return s(), u("div", Ul);
4030
4045
  }
4031
4046
  const Xl = {
@@ -4034,7 +4049,7 @@ const Xl = {
4034
4049
  emits: [],
4035
4050
  data: () => ({})
4036
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"];
4037
- function Zl(e, t, l, a, r, i) {
4052
+ function Zl(e, t, l, o, n, i) {
4038
4053
  return s(), u("div", {
4039
4054
  class: f(["w-progress", i.classes]),
4040
4055
  style: T(i.styles)
@@ -4146,11 +4161,11 @@ const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4146
4161
  }
4147
4162
  }
4148
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"];
4149
- function di(e, t, l, a, r, i) {
4164
+ function di(e, t, l, o, n, i) {
4150
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 }, {
4151
4166
  valid: e.valid,
4152
- "onUpdate:valid": t[3] || (t[3] = (o) => e.valid = o),
4153
- onReset: t[4] || (t[4] = (o) => {
4167
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4168
+ onReset: t[4] || (t[4] = (a) => {
4154
4169
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4155
4170
  }),
4156
4171
  class: i.classes
@@ -4165,8 +4180,8 @@ function di(e, t, l, a, r, i) {
4165
4180
  disabled: e.isDisabled || e.isReadonly || null,
4166
4181
  required: e.required || null,
4167
4182
  tabindex: e.tabindex || null,
4168
- onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
4169
- 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)),
4170
4185
  "aria-checked": e.inputValue || "false",
4171
4186
  role: "radio"
4172
4187
  }, null, 40, si),
@@ -4188,7 +4203,7 @@ function di(e, t, l, a, r, i) {
4188
4203
  ], 64)) : c("", !0),
4189
4204
  w("div", {
4190
4205
  class: f(["w-radio__input", this.color]),
4191
- onClick: t[2] || (t[2] = (o) => {
4206
+ onClick: t[2] || (t[2] = (a) => {
4192
4207
  e.$refs.input.focus(), e.$refs.input.click();
4193
4208
  })
4194
4209
  }, null, 2),
@@ -4273,12 +4288,12 @@ const ui = {
4273
4288
  }
4274
4289
  }
4275
4290
  }, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
4276
- function pi(e, t, l, a, r, i) {
4277
- const o = $("w-radio");
4291
+ function pi(e, t, l, o, n, i) {
4292
+ const a = $("w-radio");
4278
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 }, {
4279
4294
  valid: e.valid,
4280
- "onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
4281
- onReset: t[2] || (t[2] = (n) => {
4295
+ "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4296
+ onReset: t[2] || (t[2] = (r) => {
4282
4297
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4283
4298
  }),
4284
4299
  column: !l.inline,
@@ -4286,13 +4301,13 @@ function pi(e, t, l, a, r, i) {
4286
4301
  class: i.classes
4287
4302
  }), {
4288
4303
  default: g(() => [
4289
- (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({
4290
4305
  key: d,
4291
- "model-value": n.value === l.modelValue,
4292
- "onUpdate:modelValue": (h) => i.onInput(n),
4306
+ "model-value": r.value === l.modelValue,
4307
+ "onUpdate:modelValue": (h) => i.onInput(r),
4293
4308
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
4294
4309
  name: e.inputName
4295
- }, { 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 }, {
4296
4311
  disabled: e.isDisabled || null,
4297
4312
  readonly: e.isReadonly || null,
4298
4313
  class: { mt1: !l.inline && d }
@@ -4300,13 +4315,13 @@ function pi(e, t, l, a, r, i) {
4300
4315
  default: g(() => [
4301
4316
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4302
4317
  key: 0,
4303
- item: i.getOriginalItem(n),
4318
+ item: i.getOriginalItem(r),
4304
4319
  index: d + 1,
4305
- checked: n.value === l.modelValue,
4306
- innerHTML: n.label
4307
- }) : n.label ? (s(), u("div", {
4320
+ checked: r.value === l.modelValue,
4321
+ innerHTML: r.label
4322
+ }) : r.label ? (s(), u("div", {
4308
4323
  key: 1,
4309
- innerHTML: n.label
4324
+ innerHTML: r.label
4310
4325
  }, null, 8, ci)) : c("", !0)
4311
4326
  ]),
4312
4327
  _: 2
@@ -4362,12 +4377,12 @@ const fi = {
4362
4377
  }
4363
4378
  }
4364
4379
  }, gi = /* @__PURE__ */ v(fi, [["render", pi]]), mi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
4365
- function yi(e, t, l, a, r, i) {
4366
- 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 }, {
4367
4382
  valid: e.valid,
4368
- "onUpdate:valid": t[4] || (t[4] = (o) => e.valid = o),
4369
- onReset: t[5] || (t[5] = (o) => {
4370
- 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);
4371
4386
  }),
4372
4387
  class: i.classes
4373
4388
  }), {
@@ -4376,26 +4391,26 @@ function yi(e, t, l, a, r, i) {
4376
4391
  id: e.inputName,
4377
4392
  name: e.inputName,
4378
4393
  type: "hidden",
4379
- value: r.rating
4394
+ value: n.rating
4380
4395
  }, null, 8, mi),
4381
- (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 }, [
4382
4397
  e.$slots.item ? p(e.$slots, "item", {
4383
4398
  key: 0,
4384
- index: o + 1
4399
+ index: a + 1
4385
4400
  }) : c("", !0),
4386
4401
  w("button", {
4387
- class: f(["w-rating__button", i.buttonClasses(o)]),
4402
+ class: f(["w-rating__button", i.buttonClasses(a)]),
4388
4403
  disabled: e.isDisabled || e.isReadonly,
4389
- onMouseenter: (n) => r.hover = o,
4390
- onMouseleave: t[0] || (t[0] = (n) => r.hover = 0),
4391
- onClick: (n) => i.onButtonClick(o),
4392
- onFocus: t[1] || (t[1] = (...n) => i.onFocus && i.onFocus(...n)),
4393
- onBlur: t[2] || (t[2] = (...n) => i.onBlur && i.onBlur(...n)),
4394
- 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)),
4395
4410
  type: "button",
4396
- tabindex: o === 1 ? 0 : -1
4411
+ tabindex: a === 1 ? 0 : -1
4397
4412
  }, [
4398
- o - 1 === ~~r.rating && r.rating - ~~r.rating ? (s(), u("i", {
4413
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4399
4414
  key: 0,
4400
4415
  class: f(["w-icon", `${l.icon} ${l.color}`]),
4401
4416
  role: "icon",
@@ -4499,21 +4514,21 @@ const wi = {
4499
4514
  }
4500
4515
  }
4501
4516
  }, vi = /* @__PURE__ */ v(wi, [["render", yi]]);
4502
- function ki(e, t, l, a, r, i) {
4517
+ function ki(e, t, l, o, n, i) {
4503
4518
  return s(), u(k, null, [
4504
4519
  w("div", C({
4505
4520
  class: ["w-scrollable", i.scrollableClasses],
4506
4521
  ref: "scrollable",
4507
- onMouseenter: t[0] || (t[0] = (...o) => i.onMouseEnter && i.onMouseEnter(...o)),
4508
- onMouseleave: t[1] || (t[1] = (...o) => i.onMouseLeave && i.onMouseLeave(...o)),
4509
- 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))
4510
4525
  }, e.$attrs, { style: i.scrollableStyles }), [
4511
4526
  p(e.$slots, "default")
4512
4527
  ], 16),
4513
4528
  w("div", {
4514
4529
  class: f(["w-scrollbar", i.scrollbarClasses]),
4515
4530
  ref: "track",
4516
- onMousedown: t[3] || (t[3] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o))
4531
+ onMousedown: t[3] || (t[3] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a))
4517
4532
  }, [
4518
4533
  w("div", {
4519
4534
  class: "w-scrollbar__thumb",
@@ -4566,8 +4581,8 @@ const _i = {
4566
4581
  }),
4567
4582
  computed: {
4568
4583
  isHorizontal() {
4569
- var e, t, l, a;
4570
- 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;
4571
4586
  },
4572
4587
  m() {
4573
4588
  return _i[this.isHorizontal ? "h" : "v"];
@@ -4603,8 +4618,8 @@ const _i = {
4603
4618
  onTrackMouseDown(e) {
4604
4619
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
4605
4620
  return;
4606
- const { top: t, left: l, width: a, height: r } = this.$refs.track.getBoundingClientRect();
4607
- 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 });
4608
4623
  },
4609
4624
  onDrag(e) {
4610
4625
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -4622,8 +4637,8 @@ const _i = {
4622
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());
4623
4638
  },
4624
4639
  computeScroll(e) {
4625
- const { top: t, left: l, width: a, height: r } = this.$refs.scrollable.getBoundingClientRect(), i = this.isHorizontal ? l : t, o = this.isHorizontal ? a : r;
4626
- 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));
4627
4642
  },
4628
4643
  scroll() {
4629
4644
  var e;
@@ -4642,8 +4657,8 @@ const _i = {
4642
4657
  key: 1,
4643
4658
  class: "w-select__selection-slot"
4644
4659
  }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Ti = ["for"], Li = ["for"];
4645
- function xi(e, t, l, a, r, i) {
4646
- 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");
4647
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 }, {
4648
4663
  valid: e.valid,
4649
4664
  "onUpdate:valid": t[11] || (t[11] = (h) => e.valid = h),
@@ -4684,7 +4699,7 @@ function xi(e, t, l, a, r, i) {
4684
4699
  "aria-owns": `w-select-menu--${e._.uid}`,
4685
4700
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
4686
4701
  }, [
4687
- l.innerIconLeft ? (s(), m(o, {
4702
+ l.innerIconLeft ? (s(), m(a, {
4688
4703
  key: 0,
4689
4704
  class: "w-select__icon w-select__icon--inner-left",
4690
4705
  tag: "label",
@@ -4731,7 +4746,7 @@ function xi(e, t, l, a, r, i) {
4731
4746
  ])
4732
4747
  ], 10, Ti)) : c("", !0)
4733
4748
  ], 64)) : c("", !0),
4734
- l.innerIconRight ? (s(), m(o, {
4749
+ l.innerIconRight ? (s(), m(a, {
4735
4750
  key: 3,
4736
4751
  class: "w-select__icon w-select__icon--inner-right",
4737
4752
  tag: "label",
@@ -4745,7 +4760,7 @@ function xi(e, t, l, a, r, i) {
4745
4760
  ], 10, $i)
4746
4761
  ]),
4747
4762
  default: g(() => [
4748
- I(n, {
4763
+ I(r, {
4749
4764
  ref: "w-list",
4750
4765
  "model-value": e.inputValue,
4751
4766
  "onUpdate:modelValue": i.onInput,
@@ -4921,8 +4936,8 @@ const Pi = {
4921
4936
  if (t === void 0)
4922
4937
  t = e.keyCode === 38 ? l.length - 1 : 0;
4923
4938
  else {
4924
- const a = e.keyCode === 38 ? -1 : 1;
4925
- t = (t + l.length + a) % l.length;
4939
+ const o = e.keyCode === 38 ? -1 : 1;
4940
+ t = (t + l.length + o) % l.length;
4926
4941
  }
4927
4942
  this.onInput(l[t]);
4928
4943
  }
@@ -4947,8 +4962,8 @@ const Pi = {
4947
4962
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
4948
4963
  const t = this.selectItems.map((l) => l.value);
4949
4964
  return e.map((l) => {
4950
- let a = l;
4951
- return l && 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)];
4952
4967
  }).filter((l) => l !== void 0);
4953
4968
  },
4954
4969
  openMenu() {
@@ -4978,11 +4993,11 @@ const Pi = {
4978
4993
  key: 0,
4979
4994
  class: "w-slider__step-labels"
4980
4995
  }, Di = ["onClick"], Fi = ["for"], ji = ["for", "innerHTML"];
4981
- function Ui(e, t, l, a, r, i) {
4996
+ function Ui(e, t, l, o, n, i) {
4982
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 }, {
4983
4998
  valid: e.valid,
4984
- "onUpdate:valid": t[8] || (t[8] = (o) => e.valid = o),
4985
- onReset: t[9] || (t[9] = (o) => {
4999
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5000
+ onReset: t[9] || (t[9] = (a) => {
4986
5001
  e.rangeValuePercent = 0, i.updateRangeValueScaled();
4987
5002
  }),
4988
5003
  wrap: e.formRegister || null,
@@ -5005,8 +5020,8 @@ function Ui(e, t, l, a, r, i) {
5005
5020
  w("div", {
5006
5021
  class: f(["w-slider__track", i.trackClasses]),
5007
5022
  ref: "track",
5008
- onMousedown: t[4] || (t[4] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
5009
- 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)),
5010
5025
  role: "slider",
5011
5026
  "aria-label": "Slider",
5012
5027
  "aria-valuemin": i.minVal,
@@ -5034,10 +5049,10 @@ function Ui(e, t, l, a, r, i) {
5034
5049
  "aria-readonly": e.isReadonly ? "true" : "false",
5035
5050
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5036
5051
  onKeydown: [
5037
- t[0] || (t[0] = E((o) => i.onKeyDown(o, -1), ["left"])),
5038
- 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"]))
5039
5054
  ],
5040
- onFocus: t[2] || (t[2] = (o) => e.$emit("focus", o)),
5055
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5041
5056
  onClick: t[3] || (t[3] = M(() => {
5042
5057
  }, ["prevent"]))
5043
5058
  }, null, 42, Ai),
@@ -5062,18 +5077,18 @@ function Ui(e, t, l, a, r, i) {
5062
5077
  l.stepLabels && l.step ? (s(), u("div", Hi, [
5063
5078
  w("div", {
5064
5079
  class: "w-slider__step-label",
5065
- onClick: t[6] || (t[6] = (o) => i.onStepLabelClick(0))
5080
+ onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
5066
5081
  }, _(this.minVal), 1),
5067
- (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", {
5068
5083
  class: "w-slider__step-label",
5069
- key: o,
5070
- onClick: (n) => i.onStepLabelClick(o * (100 / i.numberOfSteps)),
5071
- style: T(`left: ${o * (100 / i.numberOfSteps)}%`)
5072
- }, _(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)),
5073
5088
  ~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
5074
5089
  key: 0,
5075
5090
  class: "w-slider__step-label",
5076
- onClick: t[7] || (t[7] = (o) => i.onStepLabelClick(100)),
5091
+ onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
5077
5092
  style: { left: "100%" }
5078
5093
  }, _(this.maxVal), 1)) : c("", !0)
5079
5094
  ])) : c("", !0)
@@ -5229,7 +5244,7 @@ const qi = {
5229
5244
  }
5230
5245
  }
5231
5246
  }, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]), Yi = { key: 0 };
5232
- function Gi(e, t, l, a, r, i) {
5247
+ function Gi(e, t, l, o, n, i) {
5233
5248
  return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
5234
5249
  key: 0,
5235
5250
  class: f(["w-spinner", i.classes]),
@@ -5277,7 +5292,7 @@ const Ji = {
5277
5292
  }
5278
5293
  }
5279
5294
  }, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
5280
- function Zi(e, t, l, a, r, i) {
5295
+ function Zi(e, t, l, o, n, i) {
5281
5296
  return s(), u("div", {
5282
5297
  class: f(["w-steps", i.classes])
5283
5298
  }, null, 2);
@@ -5305,13 +5320,13 @@ const es = {
5305
5320
  key: 1,
5306
5321
  class: "w-switch__thumb"
5307
5322
  }, os = ["for"];
5308
- function ns(e, t, l, a, r, i) {
5309
- const o = $("w-progress");
5310
- 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 }, {
5311
5326
  valid: e.valid,
5312
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
5313
- onReset: t[4] || (t[4] = (n) => {
5314
- 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);
5315
5330
  }),
5316
5331
  class: i.classes
5317
5332
  }), {
@@ -5321,15 +5336,15 @@ function ns(e, t, l, a, r, i) {
5321
5336
  id: `w-switch--${e._.uid}`,
5322
5337
  type: "checkbox",
5323
5338
  name: e.inputName,
5324
- checked: r.isOn,
5339
+ checked: n.isOn,
5325
5340
  disabled: e.isDisabled || e.isReadonly || null,
5326
5341
  readonly: e.isReadonly || null,
5327
5342
  "aria-readonly": e.isReadonly ? "true" : "false",
5328
5343
  required: e.required || null,
5329
5344
  tabindex: e.tabindex || null,
5330
- onChange: t[0] || (t[0] = (n) => i.onInput()),
5331
- onFocus: t[1] || (t[1] = (n) => e.$emit("focus", n)),
5332
- "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",
5333
5348
  role: "switch"
5334
5349
  }, null, 40, ls),
5335
5350
  i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
@@ -5345,7 +5360,7 @@ function ns(e, t, l, a, r, i) {
5345
5360
  ], 64)) : c("", !0),
5346
5361
  w("div", C({
5347
5362
  class: "w-switch__input",
5348
- onClick: t[2] || (t[2] = (n) => {
5363
+ onClick: t[2] || (t[2] = (r) => {
5349
5364
  e.$refs.input.focus(), e.$refs.input.click();
5350
5365
  })
5351
5366
  }, W(e.$attrs, !0), { class: i.inputClasses }), [
@@ -5353,7 +5368,7 @@ function ns(e, t, l, a, r, i) {
5353
5368
  p(e.$slots, "track")
5354
5369
  ])) : c("", !0),
5355
5370
  e.$slots.thumb || l.loading ? (s(), u("div", as, [
5356
- l.loading ? (s(), m(o, C({
5371
+ l.loading ? (s(), m(a, C({
5357
5372
  key: 0,
5358
5373
  circle: "",
5359
5374
  color: "inherit"
@@ -5441,7 +5456,7 @@ const rs = {
5441
5456
  }
5442
5457
  }
5443
5458
  }, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
5444
- function hs(e, t, l, a, r, i) {
5459
+ function hs(e, t, l, o, n, i) {
5445
5460
  return s(), u("div", us, [
5446
5461
  p(e.$slots, "default", { item: l.item })
5447
5462
  ]);
@@ -5456,8 +5471,8 @@ const cs = {
5456
5471
  key: 0,
5457
5472
  class: "w-tabs__content-wrap"
5458
5473
  }, ys = ["innerHTML"], ws = ["innerHTML"];
5459
- function vs(e, t, l, a, r, i) {
5460
- const o = $("tab-content");
5474
+ function vs(e, t, l, o, n, i) {
5475
+ const a = $("tab-content");
5461
5476
  return s(), u("div", {
5462
5477
  class: f(["w-tabs", i.tabsClasses])
5463
5478
  }, [
@@ -5465,29 +5480,29 @@ function vs(e, t, l, a, r, i) {
5465
5480
  class: f(["w-tabs__bar", i.tabsBarClasses]),
5466
5481
  ref: "tabs-bar"
5467
5482
  }, [
5468
- (s(!0), u(k, null, L(e.tabs, (n, d) => (s(), u("div", {
5469
- 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)]),
5470
5485
  key: d,
5471
- onClick: (h) => !n._disabled && n._uid !== e.activeTabUid && i.openTab(n._uid),
5472
- onFocus: (h) => e.$emit("focus", i.getOriginalItem(n)),
5473
- tabindex: !n._disabled && 0,
5474
- onKeypress: E((h) => !n._disabled && i.openTab(n._uid), ["enter"]),
5475
- "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",
5476
5491
  role: "tab"
5477
5492
  }, [
5478
- 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}`, {
5479
5494
  key: 0,
5480
- item: i.getOriginalItem(n),
5495
+ item: i.getOriginalItem(r),
5481
5496
  index: d + 1,
5482
- active: n._uid === e.activeTabUid
5497
+ active: r._uid === e.activeTabUid
5483
5498
  }) : p(e.$slots, "item-title", {
5484
5499
  key: 1,
5485
- item: i.getOriginalItem(n),
5500
+ item: i.getOriginalItem(r),
5486
5501
  index: d + 1,
5487
- active: n._uid === e.activeTabUid
5502
+ active: r._uid === e.activeTabUid
5488
5503
  }, () => [
5489
5504
  w("div", {
5490
- innerHTML: n[l.itemTitleKey]
5505
+ innerHTML: r[l.itemTitleKey]
5491
5506
  }, null, 8, gs)
5492
5507
  ])
5493
5508
  ], 42, fs))), 128)),
@@ -5506,32 +5521,32 @@ function vs(e, t, l, a, r, i) {
5506
5521
  name: i.transitionName
5507
5522
  }, {
5508
5523
  default: g(() => [
5509
- (s(!0), u(k, null, L(e.tabs, (n, d) => N((s(), m(o, {
5510
- key: n._uid,
5511
- item: n,
5524
+ (s(!0), u(k, null, L(e.tabs, (r, d) => N((s(), m(a, {
5525
+ key: r._uid,
5526
+ item: r,
5512
5527
  class: f(l.contentClass)
5513
5528
  }, {
5514
5529
  default: g(() => [
5515
- 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}`, {
5516
5531
  key: 0,
5517
- item: i.getOriginalItem(n),
5518
- index: n._index + 1,
5519
- active: n._index === i.activeTab._index
5532
+ item: i.getOriginalItem(r),
5533
+ index: r._index + 1,
5534
+ active: r._index === i.activeTab._index
5520
5535
  }) : p(e.$slots, "item-content", {
5521
5536
  key: 1,
5522
- item: i.getOriginalItem(n),
5523
- index: n._index + 1,
5524
- active: n._index === i.activeTab._index
5537
+ item: i.getOriginalItem(r),
5538
+ index: r._index + 1,
5539
+ active: r._index === i.activeTab._index
5525
5540
  }, () => [
5526
- n[l.itemContentKey] ? (s(), u("div", {
5541
+ r[l.itemContentKey] ? (s(), u("div", {
5527
5542
  key: 0,
5528
- innerHTML: n[l.itemContentKey]
5543
+ innerHTML: r[l.itemContentKey]
5529
5544
  }, null, 8, ys)) : c("", !0)
5530
5545
  ])
5531
5546
  ]),
5532
5547
  _: 2
5533
5548
  }, 1032, ["item", "class"])), [
5534
- [oe, n._uid === i.activeTab._uid]
5549
+ [oe, r._uid === i.activeTab._uid]
5535
5550
  ])), 128))
5536
5551
  ]),
5537
5552
  _: 3
@@ -5544,27 +5559,27 @@ function vs(e, t, l, a, r, i) {
5544
5559
  (s(), m(Ve, {
5545
5560
  exclude: l.keepAlive ? "" : "tab-content"
5546
5561
  }, [
5547
- (s(), m(o, {
5562
+ (s(), m(a, {
5548
5563
  key: e.activeTabUid,
5549
5564
  item: i.activeTab,
5550
5565
  class: f(l.contentClass)
5551
5566
  }, {
5552
- default: g(({ item: n }) => [
5553
- n ? (s(), u(k, { key: 0 }, [
5554
- 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}`, {
5555
5570
  key: 0,
5556
- item: i.getOriginalItem(n),
5557
- index: n._index + 1,
5558
- active: n._uid === e.activeTabUid
5571
+ item: i.getOriginalItem(r),
5572
+ index: r._index + 1,
5573
+ active: r._uid === e.activeTabUid
5559
5574
  }) : p(e.$slots, "item-content", {
5560
5575
  key: 1,
5561
- item: i.getOriginalItem(n),
5562
- index: n._index + 1,
5563
- active: n._uid === e.activeTabUid
5576
+ item: i.getOriginalItem(r),
5577
+ index: r._index + 1,
5578
+ active: r._uid === e.activeTabUid
5564
5579
  }, () => [
5565
- n[l.itemContentKey] ? (s(), u("div", {
5580
+ r[l.itemContentKey] ? (s(), u("div", {
5566
5581
  key: 0,
5567
- innerHTML: n[l.itemContentKey]
5582
+ innerHTML: r[l.itemContentKey]
5568
5583
  }, null, 8, ws)) : c("", !0)
5569
5584
  ])
5570
5585
  ], 64)) : c("", !0)
@@ -5661,9 +5676,9 @@ const ks = {
5661
5676
  },
5662
5677
  methods: {
5663
5678
  addTab(e) {
5664
- var t, l, a;
5679
+ var t, l, o;
5665
5680
  (l = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && l || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
5666
- _uid: (a = e[this.itemIdKey]) != null ? a : e._uid,
5681
+ _uid: (o = e[this.itemIdKey]) != null ? o : e._uid,
5667
5682
  _index: this.tabs.length,
5668
5683
  ...e,
5669
5684
  _disabled: !!e.disabled
@@ -5672,8 +5687,8 @@ const ks = {
5672
5687
  refreshTabs() {
5673
5688
  let e = this.items;
5674
5689
  typeof e == "number" && (e = Array(e).fill().map((t, l) => this.tabs[l] || {})), this.tabs = e.map((t, l) => {
5675
- var a, r, i;
5676
- 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}`), {
5677
5692
  ...t,
5678
5693
  _uid: (i = t[this.itemIdKey]) != null ? i : t._uid,
5679
5694
  _index: l,
@@ -5682,11 +5697,11 @@ const ks = {
5682
5697
  });
5683
5698
  },
5684
5699
  reopenTheActiveTab() {
5685
- var t, l, a;
5700
+ var t, l, o;
5686
5701
  if (this.tabs.length === 1)
5687
5702
  return this.openTab(this.tabs[0]._uid);
5688
5703
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
5689
- 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);
5690
5705
  },
5691
5706
  onResize() {
5692
5707
  this.updateSlider(!1);
@@ -5712,16 +5727,16 @@ const ks = {
5712
5727
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
5713
5728
  }
5714
5729
  if (!this.fillBar && this.activeTabEl) {
5715
- const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left: r } = a.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(a);
5716
- 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`;
5717
5732
  } else
5718
5733
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
5719
5734
  },
5720
5735
  updateActiveTab(e) {
5721
5736
  var t, l;
5722
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(() => {
5723
- const a = this.$refs["tabs-bar"];
5724
- 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" });
5725
5740
  }));
5726
5741
  },
5727
5742
  getOriginalItem(e) {
@@ -5779,8 +5794,8 @@ const ks = {
5779
5794
  key: 2,
5780
5795
  class: "w-table__row w-table__pagination-wrap"
5781
5796
  }, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
5782
- function Js(e, t, l, a, r, i) {
5783
- 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");
5784
5799
  return s(), u("div", {
5785
5800
  class: f(["w-table-wrap", i.wrapClasses])
5786
5801
  }, [
@@ -5804,7 +5819,7 @@ function Js(e, t, l, a, r, i) {
5804
5819
  key: R,
5805
5820
  onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
5806
5821
  }, [
5807
- b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
5822
+ b.sortable !== !1 && b.align === "right" ? (s(), m(a, {
5808
5823
  key: 0,
5809
5824
  class: f(["w-table__header-sort", i.headerSortClasses(b)])
5810
5825
  }, {
@@ -5826,7 +5841,7 @@ function Js(e, t, l, a, r, i) {
5826
5841
  innerHTML: b.label || ""
5827
5842
  }, null, 8, Vs))
5828
5843
  ], 64)) : c("", !0),
5829
- b.sortable !== !1 && b.align !== "right" ? (s(), m(o, {
5844
+ b.sortable !== !1 && b.align !== "right" ? (s(), m(a, {
5830
5845
  key: 2,
5831
5846
  class: f(["w-table__header-sort", i.headerSortClasses(b)])
5832
5847
  }, {
@@ -5849,7 +5864,7 @@ function Js(e, t, l, a, r, i) {
5849
5864
  w("td", {
5850
5865
  colspan: l.headers.length
5851
5866
  }, [
5852
- I(n, { tile: "" })
5867
+ I(r, { tile: "" })
5853
5868
  ], 8, Rs)
5854
5869
  ])) : c("", !0)
5855
5870
  ]),
@@ -5861,7 +5876,7 @@ function Js(e, t, l, a, r, i) {
5861
5876
  w("td", {
5862
5877
  colspan: l.headers.length
5863
5878
  }, [
5864
- I(n, { tile: "" }),
5879
+ I(r, { tile: "" }),
5865
5880
  w("div", xs, [
5866
5881
  p(e.$slots, "loading", {}, () => [
5867
5882
  S("Loading...")
@@ -6122,7 +6137,7 @@ const ge = 15, Qs = {
6122
6137
  if (!this.activeSorting.length || this.sortFunction || this.fetch)
6123
6138
  return this.filteredItems;
6124
6139
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6125
- 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)));
6126
6141
  },
6127
6142
  paginatedItems() {
6128
6143
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6188,28 +6203,28 @@ const ge = 15, Qs = {
6188
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();
6189
6204
  },
6190
6205
  doSelectRow(e, t) {
6191
- 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;
6192
6207
  if (l) {
6193
- const r = this.expandedRowsByUid[e._uid] === void 0;
6194
- 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(
6195
6210
  "row-expand",
6196
6211
  {
6197
6212
  item: e,
6198
6213
  index: t,
6199
- expanded: r,
6214
+ expanded: n,
6200
6215
  expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
6201
6216
  }
6202
6217
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6203
- } else if (a) {
6204
- let r = !1;
6218
+ } else if (o) {
6219
+ let n = !1;
6205
6220
  const i = this.selectedRowsByUid[e._uid] === void 0;
6206
- 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(
6207
6222
  "row-select",
6208
6223
  {
6209
6224
  item: e,
6210
6225
  index: t,
6211
6226
  selected: i,
6212
- selectedRows: this.selectedRowsInternal.map((o) => this.filteredItems[o])
6227
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
6213
6228
  }
6214
6229
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
6215
6230
  }
@@ -6225,16 +6240,16 @@ const ge = 15, Qs = {
6225
6240
  e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
6226
6241
  },
6227
6242
  onResizerMouseMove(e) {
6228
- 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;
6229
6244
  this.colResizing.dragging = !0;
6230
- const o = e.pageX - t, n = r + i, d = r + o, h = i - o;
6231
- l.style.width = r + o + "px", a.style.width = i - o + "px";
6232
- 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;
6233
6248
  if (y) {
6234
6249
  const b = Math.max(l.offsetWidth, ge);
6235
- l.style.width = b + "px", a.style.width = n - b + "px";
6250
+ l.style.width = b + "px", o.style.width = r - b + "px";
6236
6251
  } else
6237
- 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");
6238
6253
  },
6239
6254
  onResizerMouseUp() {
6240
6255
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6246,18 +6261,18 @@ const ge = 15, Qs = {
6246
6261
  }, 0);
6247
6262
  },
6248
6263
  initPagination() {
6249
- var a, r, i;
6250
- 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 }];
6251
- t.find((o) => {
6252
- var n;
6253
- return ((n = o == null ? void 0 : o.value) != null ? n : o) === +e;
6254
- }) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((o) => {
6255
- 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;
6256
6271
  return {
6257
- label: ["string", "number"].includes(typeof o) ? o.toString() : o.label || o.value,
6258
- 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
6259
6274
  };
6260
- }), 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);
6261
6276
  const l = this.paginationConfig.itemsPerPageOptions.shift();
6262
6277
  this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
6263
6278
  itemsPerPage: e,
@@ -6274,13 +6289,13 @@ const ge = 15, Qs = {
6274
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();
6275
6290
  },
6276
6291
  async callApiFetch() {
6277
- 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;
6278
6293
  return await this.fetch({
6279
6294
  page: e,
6280
6295
  start: t,
6281
- end: l || a,
6282
- total: a,
6283
- itemsPerPage: r || a,
6296
+ end: l || o,
6297
+ total: o,
6298
+ itemsPerPage: n || o,
6284
6299
  sorting: this.activeSorting
6285
6300
  });
6286
6301
  }
@@ -6315,12 +6330,12 @@ const ge = 15, Qs = {
6315
6330
  }
6316
6331
  }
6317
6332
  }, Zs = /* @__PURE__ */ v(Qs, [["render", Js]]), ea = ["role", "aria-pressed", "tabindex"];
6318
- function ta(e, t, l, a, r, i) {
6333
+ function ta(e, t, l, o, n, i) {
6319
6334
  return s(), u("span", C({ class: "w-tag" }, W(e.$attrs, !0), {
6320
- onClick: t[1] || (t[1] = (o) => {
6335
+ onClick: t[1] || (t[1] = (a) => {
6321
6336
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6322
6337
  }),
6323
- onKeypress: t[2] || (t[2] = E((o) => {
6338
+ onKeypress: t[2] || (t[2] = E((a) => {
6324
6339
  e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6325
6340
  }, ["enter"])),
6326
6341
  class: i.classes,
@@ -6333,7 +6348,7 @@ function ta(e, t, l, a, r, i) {
6333
6348
  l.closable && l.modelValue ? (s(), u("i", {
6334
6349
  key: 0,
6335
6350
  class: "w-icon w-tag__closable wi-cross",
6336
- onClick: t[0] || (t[0] = M((o) => {
6351
+ onClick: t[0] || (t[0] = M((a) => {
6337
6352
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
6338
6353
  }, ["stop"])),
6339
6354
  role: "icon",
@@ -6391,14 +6406,14 @@ const la = {
6391
6406
  }
6392
6407
  }
6393
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"];
6394
- function ra(e, t, l, a, r, i) {
6395
- const o = $("w-icon");
6396
- 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 }, {
6397
6412
  valid: e.valid,
6398
- "onUpdate:valid": t[6] || (t[6] = (n) => e.valid = n),
6413
+ "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
6399
6414
  wrap: i.hasLabel && l.labelPosition !== "inside",
6400
- onReset: t[7] || (t[7] = (n) => {
6401
- 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", "");
6402
6417
  }),
6403
6418
  class: i.classes
6404
6419
  }), {
@@ -6417,12 +6432,12 @@ function ra(e, t, l, a, r, i) {
6417
6432
  w("div", {
6418
6433
  class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
6419
6434
  }, [
6420
- l.innerIconLeft ? (s(), m(o, {
6435
+ l.innerIconLeft ? (s(), m(a, {
6421
6436
  key: 0,
6422
6437
  class: "w-textarea__icon w-textarea__icon--inner-left",
6423
6438
  tag: "label",
6424
6439
  for: `w-textarea--${e._.uid}`,
6425
- 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))
6426
6441
  }, {
6427
6442
  default: g(() => [
6428
6443
  S(_(l.innerIconLeft), 1)
@@ -6432,11 +6447,11 @@ function ra(e, t, l, a, r, i) {
6432
6447
  N(w("textarea", C({
6433
6448
  class: "w-textarea__textarea",
6434
6449
  ref: "textarea",
6435
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.inputValue = n)
6450
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
6436
6451
  }, W(i.listeners, !0), {
6437
- onInput: t[2] || (t[2] = (...n) => i.onInput && i.onInput(...n)),
6438
- onFocus: t[3] || (t[3] = (...n) => i.onFocus && i.onFocus(...n)),
6439
- 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)),
6440
6455
  id: `w-textarea--${e._.uid}`,
6441
6456
  name: e.inputName,
6442
6457
  placeholder: l.placeholder || null,
@@ -6448,7 +6463,7 @@ function ra(e, t, l, a, r, i) {
6448
6463
  required: e.required || null,
6449
6464
  tabindex: e.tabindex || null
6450
6465
  }), null, 16, aa), [
6451
- [be, r.inputValue]
6466
+ [be, n.inputValue]
6452
6467
  ]),
6453
6468
  l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 1 }, [
6454
6469
  e.$slots.default || l.label ? (s(), u("label", {
@@ -6461,12 +6476,12 @@ function ra(e, t, l, a, r, i) {
6461
6476
  ])
6462
6477
  ], 10, oa)) : c("", !0)
6463
6478
  ], 64)) : c("", !0),
6464
- l.innerIconRight ? (s(), m(o, {
6479
+ l.innerIconRight ? (s(), m(a, {
6465
6480
  key: 2,
6466
6481
  class: "w-textarea__icon w-textarea__icon--inner-right",
6467
6482
  tag: "label",
6468
6483
  for: `w-textarea--${e._.uid}`,
6469
- 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))
6470
6485
  }, {
6471
6486
  default: g(() => [
6472
6487
  S(_(l.innerIconRight), 1)
@@ -6525,8 +6540,8 @@ const da = {
6525
6540
  },
6526
6541
  computed: {
6527
6542
  listeners() {
6528
- const { input: e, focus: t, blur: l, ...a } = this.$attrs;
6529
- return a;
6543
+ const { input: e, focus: t, blur: l, ...o } = this.$attrs;
6544
+ return o;
6530
6545
  },
6531
6546
  hasValue() {
6532
6547
  return this.inputValue || this.inputValue === 0;
@@ -6606,38 +6621,38 @@ const da = {
6606
6621
  }
6607
6622
  }
6608
6623
  }, ua = /* @__PURE__ */ v(da, [["render", ra]]), ha = ["innerHTML"], ca = ["innerHTML"];
6609
- function pa(e, t, l, a, r, i) {
6624
+ function pa(e, t, l, o, n, i) {
6610
6625
  return s(), u("ul", {
6611
6626
  class: f(["w-timeline", i.classes])
6612
6627
  }, [
6613
- (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", {
6614
6629
  class: "w-timeline-item",
6615
- key: n
6630
+ key: r
6616
6631
  }, [
6617
- (s(), m(V(o[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6618
- 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 }])
6619
6634
  }, {
6620
6635
  default: g(() => [
6621
- S(_(o[l.itemIconKey] || l.icon), 1)
6636
+ S(_(a[l.itemIconKey] || l.icon), 1)
6622
6637
  ]),
6623
6638
  _: 2
6624
6639
  }, 1032, ["class"])),
6625
- e.$slots[`item.${n + 1}`] ? p(e.$slots, `item.${n + 1}`, {
6640
+ e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
6626
6641
  key: 1,
6627
- item: o,
6628
- index: n + 1
6642
+ item: a,
6643
+ index: r + 1
6629
6644
  }) : p(e.$slots, "item", {
6630
6645
  key: 0,
6631
- item: o,
6632
- index: n + 1
6646
+ item: a,
6647
+ index: r + 1
6633
6648
  }, () => [
6634
6649
  w("div", {
6635
- class: f(["w-timeline-item__title", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }]),
6636
- 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]
6637
6652
  }, null, 10, ha),
6638
6653
  w("div", {
6639
6654
  class: "w-timeline-item__content",
6640
- innerHTML: o[l.itemContentKey]
6655
+ innerHTML: a[l.itemContentKey]
6641
6656
  }, null, 8, ca)
6642
6657
  ])
6643
6658
  ]))), 128))
@@ -6666,7 +6681,7 @@ const fa = {
6666
6681
  }
6667
6682
  }
6668
6683
  }, ga = /* @__PURE__ */ v(fa, [["render", pa]]);
6669
- function ma(e, t, l, a, r, i) {
6684
+ function ma(e, t, l, o, n, i) {
6670
6685
  return s(), u("div", {
6671
6686
  class: f(["w-toolbar", i.classes]),
6672
6687
  style: T(i.styles)
@@ -6724,7 +6739,7 @@ const ba = {
6724
6739
  }
6725
6740
  }
6726
6741
  }, ya = /* @__PURE__ */ v(ba, [["render", ma]]);
6727
- function wa(e, t, l, a, r, i) {
6742
+ function wa(e, t, l, o, n, i) {
6728
6743
  return s(), u(k, null, [
6729
6744
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
6730
6745
  I(P, {
@@ -6832,7 +6847,7 @@ const va = {
6832
6847
  }
6833
6848
  }
6834
6849
  }, ka = /* @__PURE__ */ v(va, [["render", wa]]);
6835
- function _a(e, t, l, a, r, i) {
6850
+ function _a(e, t, l, o, n, i) {
6836
6851
  return s(), m(P, C({ name: "bounce" }, e.$props), {
6837
6852
  default: g(() => [
6838
6853
  p(e.$slots, "default")
@@ -6847,7 +6862,7 @@ const Ca = {
6847
6862
  duration: { type: [Number, String] }
6848
6863
  }
6849
6864
  }, Sa = /* @__PURE__ */ v(Ca, [["render", _a]]);
6850
- function Ba(e, t, l, a, r, i) {
6865
+ function Ba(e, t, l, o, n, i) {
6851
6866
  return s(), m(P, {
6852
6867
  name: "expand",
6853
6868
  mode: "out-in",
@@ -6959,7 +6974,7 @@ const $a = {
6959
6974
  }
6960
6975
  }
6961
6976
  }, Va = /* @__PURE__ */ v($a, [["render", Ba]]);
6962
- function Ia(e, t, l, a, r, i) {
6977
+ function Ia(e, t, l, o, n, i) {
6963
6978
  return s(), m(P, C({ name: "fade" }, e.$props), {
6964
6979
  default: g(() => [
6965
6980
  p(e.$slots, "default")
@@ -6974,7 +6989,7 @@ const Ra = {
6974
6989
  duration: { type: [Number, String] }
6975
6990
  }
6976
6991
  }, Ta = /* @__PURE__ */ v(Ra, [["render", Ia]]);
6977
- function La(e, t, l, a, r, i) {
6992
+ function La(e, t, l, o, n, i) {
6978
6993
  return s(), m(P, C({ name: "scale" }, e.$props), {
6979
6994
  default: g(() => [
6980
6995
  p(e.$slots, "default")
@@ -6989,7 +7004,7 @@ const xa = {
6989
7004
  duration: { type: [Number, String] }
6990
7005
  }
6991
7006
  }, Pa = /* @__PURE__ */ v(xa, [["render", La]]);
6992
- function Oa(e, t, l, a, r, i) {
7007
+ function Oa(e, t, l, o, n, i) {
6993
7008
  return s(), m(P, C({ name: "scale-fade" }, e.$props), {
6994
7009
  default: g(() => [
6995
7010
  p(e.$slots, "default")
@@ -7004,7 +7019,7 @@ const za = {
7004
7019
  duration: { type: [Number, String] }
7005
7020
  }
7006
7021
  }, Ma = /* @__PURE__ */ v(za, [["render", Oa]]);
7007
- function Ea(e, t, l, a, r, i) {
7022
+ function Ea(e, t, l, o, n, i) {
7008
7023
  return s(), m(P, C({ name: i.transitionName }, e.$props), {
7009
7024
  default: g(() => [
7010
7025
  p(e.$slots, "default")
@@ -7031,7 +7046,7 @@ const Wa = {
7031
7046
  }
7032
7047
  }
7033
7048
  }, Aa = /* @__PURE__ */ v(Wa, [["render", Ea]]);
7034
- function Na(e, t, l, a, r, i) {
7049
+ function Na(e, t, l, o, n, i) {
7035
7050
  return s(), m(P, C({ name: i.transitionName }, e.$props), {
7036
7051
  default: g(() => [
7037
7052
  p(e.$slots, "default")
@@ -7058,7 +7073,7 @@ const Ka = {
7058
7073
  }
7059
7074
  }
7060
7075
  }, Ha = /* @__PURE__ */ v(Ka, [["render", Na]]);
7061
- function Da(e, t, l, a, r, i) {
7076
+ function Da(e, t, l, o, n, i) {
7062
7077
  return s(), m(P, C({ name: "twist" }, e.$props), {
7063
7078
  default: g(() => [
7064
7079
  p(e.$slots, "default")
@@ -7076,8 +7091,8 @@ const Fa = {
7076
7091
  key: 1,
7077
7092
  class: "ml1"
7078
7093
  };
7079
- function Xa(e, t, l, a, r, i) {
7080
- 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);
7081
7096
  return s(), u("ul", {
7082
7097
  class: f(["w-tree", i.classes])
7083
7098
  }, [
@@ -7091,7 +7106,7 @@ function Xa(e, t, l, a, r, i) {
7091
7106
  tabindex: i.getTreeItemTabindex(h)
7092
7107
  }), {
7093
7108
  default: g(() => [
7094
- (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, {
7095
7110
  key: 0,
7096
7111
  class: "w-tree__item-expand",
7097
7112
  onClick: M((B) => !l.disabled && !h.disabled && i.onLabelClick(h, B), ["stop"]),
@@ -7111,7 +7126,7 @@ function Xa(e, t, l, a, r, i) {
7111
7126
  }, () => {
7112
7127
  var B;
7113
7128
  return [
7114
- i.itemIcon(h) ? (s(), m(n, {
7129
+ i.itemIcon(h) ? (s(), m(r, {
7115
7130
  key: 0,
7116
7131
  class: "w-tree__item-icon",
7117
7132
  color: h.originalItem[l.itemIconColorKey] || l.iconColor
@@ -7212,24 +7227,24 @@ const Ya = {
7212
7227
  methods: {
7213
7228
  updateCurrentDepthTree(e, t = []) {
7214
7229
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
7215
- return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7216
- Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
7217
- var i, o;
7218
- 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 = {
7219
7234
  originalItem: l,
7220
- _uid: this.depth.toString() + (a + 1),
7235
+ _uid: this.depth.toString() + (o + 1),
7221
7236
  label: l[this.itemLabelKey],
7222
7237
  children: !!l.children,
7223
7238
  branch: l.branch,
7224
7239
  route: l[this.itemRouteKey],
7225
7240
  disabled: l[this.itemDisabledKey],
7226
- selected: ((i = t[a]) == null ? void 0 : i.selected) || !1,
7241
+ selected: ((i = t[o]) == null ? void 0 : i.selected) || !1,
7227
7242
  depth: this.depth,
7228
- 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]),
7229
7244
  parent: this.parent || null,
7230
7245
  path: []
7231
7246
  };
7232
- r.path = this.getTreeItemPath(r), this.currentDepthItems.push(r);
7247
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
7233
7248
  });
7234
7249
  },
7235
7250
  getTreeItemComponent(e) {
@@ -7255,13 +7270,13 @@ const Ya = {
7255
7270
  },
7256
7271
  onLabelClick(e, t) {
7257
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);
7258
- const a = this.emitPayload(e, t);
7259
- this.$emit("click", a), this.emitItemSelection(e, t);
7273
+ const o = this.emitPayload(e, t);
7274
+ this.$emit("click", o), this.emitItemSelection(e, t);
7260
7275
  },
7261
7276
  onLabelKeydown(e, t) {
7262
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))) {
7263
- 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;
7264
- [...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);
7265
7280
  }
7266
7281
  t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
7267
7282
  },