wave-ui 3.6.2 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  var ve = Object.defineProperty;
2
- var ke = (e, t, l) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var D = (e, t, l) => (ke(e, typeof t != "symbol" ? t + "" : t, l), l), ne = (e, t, l) => {
2
+ var ke = (e, t, i) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var D = (e, t, i) => (ke(e, typeof t != "symbol" ? t + "" : t, i), i), ne = (e, t, i) => {
4
4
  if (!t.has(e))
5
- throw TypeError("Cannot " + l);
5
+ throw TypeError("Cannot " + i);
6
6
  };
7
- var Y = (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, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get(e)), ee = (e, t, i) => {
8
8
  if (t.has(e))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
- t instanceof WeakSet ? t.add(e) : t.set(e, 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
- 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 W, withModifiers as E, renderSlot as p, toHandlers as z, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as me, withDirectives as N, createSlots as Z, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
10
+ t instanceof WeakSet ? t.add(e) : t.set(e, i);
11
+ }, te = (e, t, i, o) => (ne(e, t, "write to private field"), o ? o.call(e, i) : t.set(e, i), i);
12
+ import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as g, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as m, 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 W, withModifiers as E, renderSlot as p, toHandlers as z, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as V, normalizeProps as le, resolveDirective as ge, 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",
15
15
  breakpoints: {
@@ -55,36 +55,36 @@ const Ie = Q({
55
55
  if (!Object.keys(t).length)
56
56
  t = Object.assign(t, e);
57
57
  else
58
- for (const l in e) {
59
- const o = e[l];
60
- typeof o == "object" ? ye(e[l], t[l]) : t[l] = o;
58
+ for (const i in e) {
59
+ const o = e[i];
60
+ typeof o == "object" ? ye(e[i], t[i]) : t[i] = o;
61
61
  }
62
62
  return t;
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(""), Te = (e) => {
63
+ }, U = (e) => console.warn(`Wave UI: ${e}`), ie = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((i) => (i = +`0x${i}` + t, (i < 0 ? 0 : i > 255 ? 255 : i).toString(16).padStart(2, 0))).join(""), Te = (e) => {
64
64
  ["light", "dark"].forEach((t) => {
65
- const l = e.colors[t];
66
- l.shades = {};
67
- for (let o in l) {
65
+ const i = e.colors[t];
66
+ i.shades = {};
67
+ for (let o in i) {
68
68
  if (o === "shades")
69
69
  continue;
70
- o = { label: o, color: l[o].replace("#", "") };
70
+ o = { label: o, color: i[o].replace("#", "") };
71
71
  const n = o.color;
72
72
  n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
73
- for (let i = 1; i <= 3; i++) {
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;
73
+ for (let l = 1; l <= 3; l++) {
74
+ const a = re(`#${o.color}`, l * 40), r = re(`#${o.color}`, -l * 40);
75
+ i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
76
76
  }
77
77
  }
78
78
  });
79
79
  }, de = (e, t) => {
80
- const l = {
80
+ const i = {
81
81
  ...t.reduce((o, n) => {
82
82
  o[n.label] = n.color;
83
- const i = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
84
- return { ...o, ...i };
83
+ const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
84
+ return { ...o, ...l };
85
85
  }, { ...e, ...e.shades })
86
86
  };
87
- return delete l.shades, l;
87
+ return delete i.shades, i;
88
88
  }, ue = [
89
89
  {
90
90
  label: "pink",
@@ -439,35 +439,35 @@ const Ie = Q({
439
439
  let se = { keys: [], values: [] }, he = null;
440
440
  const Re = (e) => {
441
441
  let t = "";
442
- const l = {}, { info: o, warning: n, success: i, error: a, shades: r, ...d } = e, { cssScope: h } = q;
442
+ const i = {}, { info: o, warning: n, success: l, error: a, shades: r, ...d } = e, { cssScope: h } = q;
443
443
  for (const b in d)
444
444
  t += `${h} .${b}--bg{background-color:var(--w-${b}-color)}${h} .${b}{color:var(--w-${b}-color)}`;
445
445
  for (const b in r)
446
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 };
447
+ const y = { ...d, info: o, warning: n, success: l, error: a };
448
448
  for (const b in y)
449
- l[b] = y[b];
449
+ i[b] = y[b];
450
450
  let B = "";
451
- return Object.entries(l).forEach(([b, T]) => {
451
+ return Object.entries(i).forEach(([b, T]) => {
452
452
  B += `--w-${b}-color: ${T};`;
453
453
  }), `:root{${B}}${t}`;
454
454
  }, Le = (e, t) => {
455
- let l = "";
455
+ let i = "";
456
456
  const { cssScope: o } = q;
457
- return e.forEach(({ min: n, label: i }) => {
458
- if (i === "xs")
457
+ return e.forEach(({ min: n, label: l }) => {
458
+ if (l === "xs")
459
459
  for (let a = 0; a < t; a++)
460
- l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
460
+ i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
461
461
  else {
462
- l += `@media(min-width:${n}px){`;
462
+ i += `@media(min-width:${n}px){`;
463
463
  for (let a = 0; a < t; a++)
464
- l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
465
- l += "}";
464
+ i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
465
+ i += "}";
466
466
  }
467
- }), l;
467
+ }), i;
468
468
  }, xe = (e) => {
469
469
  let t = "";
470
- const { cssScope: l, baseIncrement: o } = q, n = [
470
+ const { cssScope: i, baseIncrement: o } = q, n = [
471
471
  "show{display:block}",
472
472
  "hide{display:none}",
473
473
  "d-flex{display:flex}",
@@ -501,18 +501,18 @@ const Re = (e) => {
501
501
  "justify-space-between{justify-content:space-between}",
502
502
  "justify-space-around{justify-content:space-around}",
503
503
  "justify-space-evenly{justify-content:space-evenly}"
504
- ], i = Array(12).fill();
504
+ ], l = Array(12).fill();
505
505
  return e.forEach(({ label: a, min: r }) => {
506
- 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
+ a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
507
507
  }), e.forEach(({ label: a, min: r, max: d }) => {
508
- 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
+ t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + l.map((h, y) => `.w-grid.${a}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + l.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}}`;
509
509
  }), e.forEach(({ label: a, max: r }) => {
510
- 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}}`);
510
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
511
511
  }), t;
512
512
  }, ce = (e) => {
513
- const t = window.innerWidth, l = se.values.slice(0);
514
- l.push(t), l.sort((n, i) => n - i);
515
- const o = se.keys[l.indexOf(t)] || "xl";
513
+ const t = window.innerWidth, i = se.values.slice(0);
514
+ i.push(t), i.sort((n, l) => n - l);
515
+ const o = se.keys[i.indexOf(t)] || "xl";
516
516
  o !== he && (he = o, e.breakpoint = {
517
517
  name: o,
518
518
  xs: o === "xs",
@@ -525,47 +525,47 @@ const Re = (e) => {
525
525
  }, Oe = (e) => {
526
526
  const { config: t } = e;
527
527
  if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
528
- const l = document.createElement("style");
529
- l.id = "wave-ui-styles", l.innerHTML = ze(t);
528
+ const i = document.createElement("style");
529
+ i.id = "wave-ui-styles", i.innerHTML = ze(t);
530
530
  const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
531
- o ? o.before(l) : document.head.appendChild(l);
531
+ o ? o.before(i) : document.head.appendChild(i);
532
532
  }
533
533
  ce(e), window.addEventListener("resize", () => ce(e));
534
534
  }, Pe = (e) => {
535
535
  if (!document.getElementById("wave-ui-colors")) {
536
536
  const t = document.createElement("style");
537
537
  t.id = "wave-ui-colors", t.innerHTML = Re(e);
538
- const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
539
- l ? l.before(t) : document.head.appendChild(t);
538
+ const i = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
539
+ i ? i.before(t) : document.head.appendChild(t);
540
540
  }
541
541
  }, ze = (e) => {
542
- const t = Object.entries(e.breakpoints), l = t.map(([i, a], r) => {
542
+ const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
543
543
  const [, d = 0] = t[r - 1] || [];
544
- return { label: i, min: d ? d + 1 : 0, max: a };
544
+ return { label: l, min: d ? d + 1 : 0, max: a };
545
545
  }), o = getComputedStyle(document.documentElement);
546
546
  q.cssScope = o.getPropertyValue("--w-css-scope"), q.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
547
547
  let n = "";
548
- return n += Le(l, e.css.grid), e.css.breakpointLayoutClasses && (n += xe(l)), n;
548
+ return n += Le(i, e.css.grid), e.css.breakpointLayoutClasses && (n += xe(i)), n;
549
549
  }, Me = ["innerHTML"];
550
- function Ee(e, t, l, o, n, i) {
550
+ function Ee(e, t, i, o, n, l) {
551
551
  const a = $("w-alert");
552
- return s(), m(_e, { to: ".w-app" }, [
552
+ return s(), g(_e, { to: ".w-app" }, [
553
553
  I(ae, {
554
- class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
554
+ class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
555
555
  tag: "div",
556
- name: i.transition,
556
+ name: l.transition,
557
557
  appear: ""
558
558
  }, {
559
- default: g(() => [
560
- (s(!0), u(k, null, L(i.notifications, (r) => (s(), u(k, null, [
561
- r._value ? (s(), m(a, C({
559
+ default: m(() => [
560
+ (s(!0), u(k, null, L(l.notifications, (r) => (s(), u(k, null, [
561
+ r._value ? (s(), g(a, C({
562
562
  class: "white--bg",
563
563
  key: r._uid,
564
564
  modelValue: r._value,
565
565
  "onUpdate:modelValue": (d) => r._value = d,
566
566
  onClose: r.dismiss
567
- }, i.notifProps(r)), {
568
- default: g(() => [
567
+ }, l.notifProps(r)), {
568
+ default: m(() => [
569
569
  w("div", {
570
570
  innerHTML: r.message
571
571
  }, null, 8, Me)
@@ -579,10 +579,10 @@ function Ee(e, t, l, o, n, i) {
579
579
  ]);
580
580
  }
581
581
  const v = (e, t) => {
582
- const l = e.__vccOpts || e;
582
+ const i = e.__vccOpts || e;
583
583
  for (const [o, n] of t)
584
- l[o] = n;
585
- return l;
584
+ i[o] = n;
585
+ return i;
586
586
  }, We = {
587
587
  name: "w-notification-manager",
588
588
  computed: {
@@ -599,8 +599,8 @@ const v = (e, t) => {
599
599
  },
600
600
  methods: {
601
601
  notifProps(e) {
602
- const { _value: t, _uid: l, message: o, timeout: n, ...i } = e;
603
- return i.dismiss && (i.dismiss = !0), i;
602
+ const { _value: t, _uid: i, message: o, timeout: n, ...l } = e;
603
+ return l.dismiss && (l.dismiss = !0), l;
604
604
  }
605
605
  }
606
606
  }, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
@@ -621,38 +621,38 @@ const F = class {
621
621
  }, te(F, H, this);
622
622
  }
623
623
  notify(...t) {
624
- let l = {
624
+ let i = {
625
625
  ...this._notificationDefaults,
626
626
  _uid: this._uid++
627
627
  };
628
628
  if (typeof t[0] == "object")
629
- l = { ...l, ...t[0] };
629
+ i = { ...i, ...t[0] };
630
630
  else {
631
- const [o, n, i] = t;
632
- l = {
633
- ...l,
631
+ const [o, n, l] = t;
632
+ i = {
633
+ ...i,
634
634
  message: o || "",
635
635
  [n === void 0 ? "info" : n]: !0,
636
- timeout: i || i === 0 ? parseFloat(i) : 4e3
636
+ timeout: l || l === 0 ? parseFloat(l) : 4e3
637
637
  };
638
638
  }
639
- l.dismiss && (l.dismiss = () => this.dismiss(l._uid)), this.notifications.push(l), ~~l.timeout !== 0 && setTimeout(() => this.dismiss(l._uid), l.timeout);
639
+ i.dismiss && (i.dismiss = () => this.dismiss(i._uid)), this.notifications.push(i), ~~i.timeout !== 0 && setTimeout(() => this.dismiss(i._uid), i.timeout);
640
640
  }
641
641
  dismiss(t) {
642
- this.notifications = this.notifications.filter((l) => l._uid !== t);
642
+ this.notifications = this.notifications.filter((i) => i._uid !== t);
643
643
  }
644
644
  };
645
645
  let G = F;
646
646
  H = new WeakMap(), ee(G, H, void 0);
647
- const Ne = (e, t, l) => {
647
+ const Ne = (e, t, i) => {
648
648
  const o = document.createElement("div");
649
649
  e.appendChild(o);
650
650
  const n = Ce(Se({
651
651
  ...Ae,
652
652
  inject: ["$waveui"]
653
- })).provide("$waveui", l);
654
- for (const i in t) {
655
- const a = t[i];
653
+ })).provide("$waveui", i);
654
+ for (const l in t) {
655
+ const a = t[l];
656
656
  n.component(a.name, { ...a, inject: ["$waveui"] });
657
657
  }
658
658
  n.mount(o), o.remove();
@@ -660,30 +660,30 @@ const Ne = (e, t, l) => {
660
660
  let pe = !1;
661
661
  const Ke = (e) => {
662
662
  const t = window.matchMedia("(prefers-color-scheme: dark)");
663
- e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (l) => {
664
- e.preferredTheme = l.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
663
+ e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
664
+ e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
665
665
  });
666
666
  }, He = (e, t) => {
667
- var l, o;
667
+ var i, o;
668
668
  for (const n in t)
669
- if ((l = e.props) != null && l[n])
669
+ if ((i = e.props) != null && i[n])
670
670
  e.props[n].default = t[n];
671
671
  else {
672
- let i = !1;
672
+ let l = !1;
673
673
  if (Array.isArray(e.mixins) && e.mixins.length) {
674
674
  for (const a of e.mixins)
675
675
  if ((o = a == null ? void 0 : a.props) != null && o[n]) {
676
- a.props[n].default = t[n], i = !0;
676
+ a.props[n].default = t[n], l = !0;
677
677
  break;
678
678
  }
679
- i || U(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
679
+ l || U(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
680
680
  continue;
681
681
  }
682
682
  }
683
683
  };
684
684
  var X;
685
685
  const j = class {
686
- constructor(t, l = {}) {
686
+ constructor(t, i = {}) {
687
687
  D(this, "$waveui", {
688
688
  breakpoint: {
689
689
  name: "",
@@ -702,9 +702,9 @@ const j = class {
702
702
  notify(...t) {
703
703
  this._notificationManager.notify(...t);
704
704
  },
705
- switchTheme(t, l = !1) {
706
- var n, i;
707
- 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);
705
+ switchTheme(t, i = !1) {
706
+ var n, l;
707
+ this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || l.call(n);
708
708
  const o = this.config.colors[this.theme];
709
709
  Pe(o), this.colors = de(o, ue);
710
710
  }
@@ -713,124 +713,124 @@ const j = class {
713
713
  console.warn("Wave UI is already instantiated.");
714
714
  return;
715
715
  }
716
- if (this.$waveui._notificationManager = new G(), l.theme || (l.theme = "light"), l.colors) {
717
- const a = { ...l.colors };
718
- l.colors.light || (l.colors.light = a), l.colors.dark || (l.colors.dark = a), l.colors = { light: l.colors.light, dark: l.colors.dark };
716
+ if (this.$waveui._notificationManager = new G(), i.theme || (i.theme = "light"), i.colors) {
717
+ const a = { ...i.colors };
718
+ i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
719
719
  }
720
- let { components: o, ...n } = l;
720
+ let { components: o, ...n } = i;
721
721
  n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
722
- const i = Q(this.$waveui);
723
- t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
722
+ const l = Q(this.$waveui);
723
+ t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
724
724
  }
725
- static install(t, l = {}) {
725
+ static install(t, i = {}) {
726
726
  var n;
727
727
  t.directive("focus", {
728
- mounted: (i) => setTimeout(() => i.focus(), 0)
728
+ mounted: (l) => setTimeout(() => l.focus(), 0)
729
729
  }), t.directive("scroll", {
730
- mounted: (i, a) => {
730
+ mounted: (l, a) => {
731
731
  const r = (d) => {
732
- a.value(d, i) && window.removeEventListener("scroll", r);
732
+ a.value(d, l) && window.removeEventListener("scroll", r);
733
733
  };
734
734
  window.addEventListener("scroll", r);
735
735
  }
736
736
  });
737
- const { components: o = {} } = l || {};
738
- for (const i in o) {
739
- const a = o[i];
740
- (n = l.presets) != null && n[a.name] && He(a, l.presets[a.name]), t.component(a.name, a);
737
+ const { components: o = {} } = i || {};
738
+ for (const l in o) {
739
+ const a = o[l];
740
+ (n = i.presets) != null && n[a.name] && He(a, i.presets[a.name]), t.component(a.name, a);
741
741
  }
742
742
  t.mixin({
743
743
  beforeMount() {
744
744
  if (!pe) {
745
745
  pe = !0;
746
- const i = Be("$waveui"), { config: a } = i, r = document.querySelector(a.on) || document.body;
747
- r.classList.add("w-app"), a.theme === "auto" ? Ke(i) : i.switchTheme(a.theme, !0), Oe(i), Ne(r, o, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
746
+ const l = Be("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
747
+ r.classList.add("w-app"), a.theme === "auto" ? Ke(l) : l.switchTheme(a.theme, !0), Oe(l), Ne(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
748
748
  }
749
749
  }
750
- }), new j(t, l), te(j, X, !0);
750
+ }), new j(t, i), te(j, X, !0);
751
751
  }
752
752
  };
753
753
  let K = j;
754
754
  X = new WeakMap(), ee(K, X, !1);
755
755
  const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
756
- function qe(e, t, l, o, n, i) {
756
+ function qe(e, t, i, o, n, l) {
757
757
  const a = $("w-button"), r = $("w-transition-expand");
758
758
  return s(), u("div", {
759
- class: f(["w-accordion", i.accordionClasses])
759
+ class: f(["w-accordion", l.accordionClasses])
760
760
  }, [
761
761
  (s(!0), u(k, null, L(e.accordionItems, (d, h) => (s(), u("div", {
762
- class: f(["w-accordion__item", i.itemClasses(d)]),
762
+ class: f(["w-accordion__item", l.itemClasses(d)]),
763
763
  key: h,
764
764
  "aria-expanded": d._expanded ? "true" : "false"
765
765
  }, [
766
766
  w("div", {
767
- class: f(["w-accordion__item-title", l.titleClass]),
768
- onClick: (y) => !d._disabled && i.toggleItem(d, y),
769
- onFocus: (y) => e.$emit("focus", i.getOriginalItem(d)),
770
- onKeypress: W((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
767
+ class: f(["w-accordion__item-title", i.titleClass]),
768
+ onClick: (y) => !d._disabled && l.toggleItem(d, y),
769
+ onFocus: (y) => e.$emit("focus", l.getOriginalItem(d)),
770
+ onKeypress: W((y) => !d._disabled && l.toggleItem(d, y), ["enter"]),
771
771
  tabindex: !d._disabled && 0
772
772
  }, [
773
- l.expandIcon && !l.expandIconRight ? (s(), m(a, {
773
+ i.expandIcon && !i.expandIconRight ? (s(), g(a, {
774
774
  key: 0,
775
- class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
776
- icon: d._expanded && l.collapseIcon || l.expandIcon,
777
- "icon-props": l.expandIconProps,
775
+ class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
776
+ icon: d._expanded && i.collapseIcon || i.expandIcon,
777
+ "icon-props": i.expandIconProps,
778
778
  disabled: d._disabled || null,
779
779
  tabindex: -1,
780
780
  text: "",
781
781
  onKeypress: t[0] || (t[0] = E(() => {
782
782
  }, ["stop"])),
783
- onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
783
+ onClick: E((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
784
784
  }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : c("", !0),
785
785
  e.$slots[`item-title.${d.id || h + 1}`] ? p(e.$slots, `item-title.${d.id || h + 1}`, {
786
786
  key: 1,
787
- item: i.getOriginalItem(d),
787
+ item: l.getOriginalItem(d),
788
788
  expanded: d._expanded,
789
789
  index: h + 1
790
790
  }) : p(e.$slots, "item-title", {
791
791
  key: 2,
792
- item: i.getOriginalItem(d),
792
+ item: l.getOriginalItem(d),
793
793
  expanded: d._expanded,
794
794
  index: h + 1
795
795
  }, () => [
796
796
  w("div", {
797
797
  class: "grow",
798
- innerHTML: d[l.itemTitleKey]
798
+ innerHTML: d[i.itemTitleKey]
799
799
  }, null, 8, je)
800
800
  ]),
801
- l.expandIcon && l.expandIconRight ? (s(), m(a, {
801
+ i.expandIcon && i.expandIconRight ? (s(), g(a, {
802
802
  key: 3,
803
- class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
804
- icon: d._expanded && l.collapseIcon || l.expandIcon,
803
+ class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
804
+ icon: d._expanded && i.collapseIcon || i.expandIcon,
805
805
  text: "",
806
806
  onKeypress: t[1] || (t[1] = E(() => {
807
807
  }, ["stop"])),
808
- onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
808
+ onClick: E((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
809
809
  }, null, 8, ["icon", "onClick", "class"])) : c("", !0)
810
810
  ], 42, Fe),
811
811
  I(r, {
812
812
  y: "",
813
- onAfterLeave: (y) => i.onEndOfCollapse(d),
814
- duration: l.duration
813
+ onAfterLeave: (y) => l.onEndOfCollapse(d),
814
+ duration: i.duration
815
815
  }, {
816
- default: g(() => [
816
+ default: m(() => [
817
817
  d._expanded ? (s(), u("div", {
818
818
  key: 0,
819
- class: f(["w-accordion__item-content", l.contentClass])
819
+ class: f(["w-accordion__item-content", i.contentClass])
820
820
  }, [
821
821
  e.$slots[`item-content.${d.id || h + 1}`] ? p(e.$slots, `item-content.${d.id || h + 1}`, {
822
822
  key: 0,
823
- item: i.getOriginalItem(d),
823
+ item: l.getOriginalItem(d),
824
824
  expanded: d._expanded,
825
825
  index: h + 1
826
826
  }) : p(e.$slots, "item-content", {
827
827
  key: 1,
828
- item: i.getOriginalItem(d),
828
+ item: l.getOriginalItem(d),
829
829
  expanded: d._expanded,
830
830
  index: h + 1
831
831
  }, () => [
832
832
  w("div", {
833
- innerHTML: d[l.itemContentKey]
833
+ innerHTML: d[i.itemContentKey]
834
834
  }, null, 8, Ue)
835
835
  ])
836
836
  ], 2)) : c("", !0)
@@ -885,8 +885,8 @@ const Xe = {
885
885
  methods: {
886
886
  toggleItem(e, t) {
887
887
  e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
888
- const l = this.accordionItems.map((o) => o._expanded || !1);
889
- 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);
888
+ const i = this.accordionItems.map((o) => o._expanded || !1);
889
+ this.$emit("update:modelValue", i), this.$emit("input", i), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
890
890
  },
891
891
  onEndOfCollapse(e) {
892
892
  this.$emit("item-collapsed", { item: e, expanded: e._expanded });
@@ -904,10 +904,10 @@ const Xe = {
904
904
  },
905
905
  updateItems() {
906
906
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
907
- this.accordionItems = e.map((t, l) => ({
907
+ this.accordionItems = e.map((t, i) => ({
908
908
  ...t,
909
- _index: l,
910
- _expanded: this.modelValue && this.modelValue[l],
909
+ _index: i,
910
+ _expanded: this.modelValue && this.modelValue[i],
911
911
  _disabled: !!t.disabled
912
912
  }));
913
913
  }
@@ -927,26 +927,26 @@ const Xe = {
927
927
  }
928
928
  }
929
929
  }, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
930
- function Je(e, t, l, o, n, i) {
930
+ function Je(e, t, i, o, n, l) {
931
931
  const a = $("w-icon"), r = $("w-button");
932
932
  return n.show ? (s(), u("div", C({
933
933
  key: 0,
934
934
  class: "w-alert"
935
- }, z(e.$attrs, !0), { class: i.classes }), [
936
- i.type || l.icon || l.dismiss ? (s(), u(k, { key: 0 }, [
937
- i.type || l.icon ? (s(), m(a, {
935
+ }, z(e.$attrs, !0), { class: l.classes }), [
936
+ l.type || i.icon || i.dismiss ? (s(), u(k, { key: 0 }, [
937
+ l.type || i.icon ? (s(), g(a, {
938
938
  key: 0,
939
939
  class: "w-alert__icon mr2"
940
940
  }, {
941
- default: g(() => [
942
- S(_(i.type ? i.typeIcon : l.icon), 1)
941
+ default: m(() => [
942
+ S(_(l.type ? l.typeIcon : i.icon), 1)
943
943
  ]),
944
944
  _: 1
945
945
  })) : c("", !0),
946
946
  w("div", Ge, [
947
947
  p(e.$slots, "default")
948
948
  ]),
949
- l.dismiss ? (s(), m(r, {
949
+ i.dismiss ? (s(), g(r, {
950
950
  key: 1,
951
951
  class: "w-alert__dismiss",
952
952
  onClick: t[0] || (t[0] = (d) => {
@@ -1040,12 +1040,12 @@ const Qe = {
1040
1040
  }
1041
1041
  }
1042
1042
  }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-app" };
1043
- function tt(e, t, l, o, n, i) {
1043
+ function tt(e, t, i, o, n, l) {
1044
1044
  return s(), u("div", et, [
1045
1045
  p(e.$slots, "default")
1046
1046
  ]);
1047
1047
  }
1048
- const lt = {
1048
+ const it = {
1049
1049
  name: "w-app",
1050
1050
  props: {
1051
1051
  block: { type: Boolean },
@@ -1060,25 +1060,25 @@ const lt = {
1060
1060
  textCenter: { type: Boolean },
1061
1061
  textRight: { type: Boolean }
1062
1062
  }
1063
- }, it = /* @__PURE__ */ v(lt, [["render", tt]]);
1064
- function st(e, t, l, o, n, i) {
1063
+ }, lt = /* @__PURE__ */ v(it, [["render", tt]]);
1064
+ function st(e, t, i, o, n, l) {
1065
1065
  return s(), u("div", C({ class: "w-badge-wrap" }, z(e.$attrs, !0)), [
1066
1066
  p(e.$slots, "default"),
1067
1067
  I(O, {
1068
- name: `${l.transition}`
1068
+ name: `${i.transition}`
1069
1069
  }, {
1070
- default: g(() => [
1071
- l.modelValue ? (s(), u("div", {
1070
+ default: m(() => [
1071
+ i.modelValue ? (s(), u("div", {
1072
1072
  key: 0,
1073
- class: f(["w-badge", i.classes]),
1074
- style: R(i.styles),
1073
+ class: f(["w-badge", l.classes]),
1074
+ style: R(l.styles),
1075
1075
  "aria-atomic": "true",
1076
1076
  "aria-label": "Badge",
1077
1077
  "aria-live": "polite",
1078
1078
  role: "status"
1079
1079
  }, [
1080
- l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
1081
- S(_(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
1080
+ i.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
1081
+ S(_(i.modelValue === !0 ? "" : i.modelValue || ""), 1)
1082
1082
  ])
1083
1083
  ], 6)) : c("", !0)
1084
1084
  ]),
@@ -1150,56 +1150,56 @@ const at = {
1150
1150
  }
1151
1151
  }
1152
1152
  }, ot = /* @__PURE__ */ v(at, [["render", st]]), nt = ["innerHTML"];
1153
- function rt(e, t, l, o, n, i) {
1153
+ function rt(e, t, i, o, n, l) {
1154
1154
  const a = $("w-icon");
1155
1155
  return s(), u("div", {
1156
- class: f(["w-breadcrumbs", i.classes])
1156
+ class: f(["w-breadcrumbs", l.classes])
1157
1157
  }, [
1158
- (s(!0), u(k, null, L(l.items, (r, d) => (s(), u(k, null, [
1158
+ (s(!0), u(k, null, L(i.items, (r, d) => (s(), u(k, null, [
1159
1159
  d && e.$slots.separator ? (s(), u("span", {
1160
- class: f(["w-breadcrumbs__separator", l.separatorColor]),
1160
+ class: f(["w-breadcrumbs__separator", i.separatorColor]),
1161
1161
  key: `${d}a`
1162
1162
  }, [
1163
1163
  p(e.$slots, "separator", { index: d })
1164
- ], 2)) : d ? (s(), m(a, {
1165
- class: f(["w-breadcrumbs__separator", l.separatorColor]),
1164
+ ], 2)) : d ? (s(), g(a, {
1165
+ class: f(["w-breadcrumbs__separator", i.separatorColor]),
1166
1166
  key: `${d}b`
1167
1167
  }, {
1168
- default: g(() => [
1169
- S(_(l.icon), 1)
1168
+ default: m(() => [
1169
+ S(_(i.icon), 1)
1170
1170
  ]),
1171
1171
  _: 2
1172
1172
  }, 1032, ["class"])) : c("", !0),
1173
- r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(k, { key: 2 }, [
1174
- e.$slots.item ? (s(), m(V(i.hasRouter ? "router-link" : "a"), {
1175
- class: f(["w-breadcrumbs__item", l.color || null]),
1173
+ r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (s(), u(k, { key: 2 }, [
1174
+ e.$slots.item ? (s(), g(V(l.hasRouter ? "router-link" : "a"), {
1175
+ class: f(["w-breadcrumbs__item", i.color || null]),
1176
1176
  key: `${d}c`,
1177
- to: i.hasRouter && r[l.itemRouteKey],
1178
- href: r[l.itemRouteKey]
1177
+ to: l.hasRouter && r[i.itemRouteKey],
1178
+ href: r[i.itemRouteKey]
1179
1179
  }, {
1180
- default: g(() => [
1180
+ default: m(() => [
1181
1181
  p(e.$slots, "item", {
1182
1182
  item: r,
1183
1183
  index: d + 1,
1184
- isLast: d === l.items.length - 1
1184
+ isLast: d === i.items.length - 1
1185
1185
  })
1186
1186
  ]),
1187
1187
  _: 2
1188
- }, 1032, ["to", "href", "class"])) : (s(), m(V(i.hasRouter ? "router-link" : "a"), {
1189
- class: f(["w-breadcrumbs__item", l.color || null]),
1188
+ }, 1032, ["to", "href", "class"])) : (s(), g(V(l.hasRouter ? "router-link" : "a"), {
1189
+ class: f(["w-breadcrumbs__item", i.color || null]),
1190
1190
  key: `${d}d`,
1191
- to: i.hasRouter && r[l.itemRouteKey],
1192
- href: r[l.itemRouteKey],
1193
- innerHTML: r[l.itemLabelKey]
1191
+ to: l.hasRouter && r[i.itemRouteKey],
1192
+ href: r[i.itemRouteKey],
1193
+ innerHTML: r[i.itemLabelKey]
1194
1194
  }, null, 8, ["to", "href", "innerHTML", "class"]))
1195
1195
  ], 64)) : e.$slots.item ? p(e.$slots, "item", {
1196
1196
  key: `${d}e`,
1197
1197
  item: r,
1198
1198
  index: d + 1,
1199
- isLast: d === l.items.length - 1
1199
+ isLast: d === i.items.length - 1
1200
1200
  }) : (s(), u("span", {
1201
1201
  key: `${d}f`,
1202
- innerHTML: r[l.itemLabelKey]
1202
+ innerHTML: r[i.itemLabelKey]
1203
1203
  }, null, 8, nt))
1204
1204
  ], 64))), 256))
1205
1205
  ], 2);
@@ -1248,24 +1248,24 @@ const dt = {
1248
1248
  "stroke-linecap": "round"
1249
1249
  })
1250
1250
  ], -1);
1251
- function pt(e, t, l, o, n, i) {
1251
+ function pt(e, t, i, o, n, l) {
1252
1252
  const a = $("w-icon");
1253
- return s(), m(V(l.route ? "a" : "button"), C({
1254
- class: ["w-button", i.classes],
1255
- type: !l.route && l.type,
1256
- href: l.route && (i.externalLink ? l.route : i.resolvedRoute) || null,
1257
- disabled: !!l.disabled || null
1258
- }, z(i.listeners), { style: i.styles }), {
1259
- default: g(() => [
1260
- l.icon ? (s(), m(a, ie(C({ key: 0 }, l.iconProps || {})), {
1261
- default: g(() => [
1262
- S(_(l.icon), 1)
1253
+ return s(), g(V(i.route ? "a" : "button"), C({
1254
+ class: ["w-button", l.classes],
1255
+ type: !i.route && i.type,
1256
+ href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1257
+ disabled: !!i.disabled || null
1258
+ }, z(l.listeners), { style: l.styles }), {
1259
+ default: m(() => [
1260
+ i.icon ? (s(), g(a, le(C({ key: 0 }, i.iconProps || {})), {
1261
+ default: m(() => [
1262
+ S(_(i.icon), 1)
1263
1263
  ]),
1264
1264
  _: 1
1265
1265
  }, 16)) : p(e.$slots, "default", { key: 1 }),
1266
1266
  I(O, { name: "scale-fade" }, {
1267
- default: g(() => [
1268
- l.loading ? (s(), u("div", ht, [
1267
+ default: m(() => [
1268
+ i.loading ? (s(), u("div", ht, [
1269
1269
  p(e.$slots, "loading", {}, () => [
1270
1270
  ct
1271
1271
  ])
@@ -1367,27 +1367,27 @@ const ft = {
1367
1367
  };
1368
1368
  }
1369
1369
  }
1370
- }, gt = /* @__PURE__ */ v(ft, [["render", pt]]), mt = ["innerHTML"];
1371
- function bt(e, t, l, o, n, i) {
1370
+ }, mt = /* @__PURE__ */ v(ft, [["render", pt]]), gt = ["innerHTML"];
1371
+ function bt(e, t, i, o, n, l) {
1372
1372
  const a = $("button-partial");
1373
- return l.tooltip ? (s(), m(V("w-tooltip"), ie(C({ key: 0 }, l.tooltipProps || {})), {
1374
- activator: g(({ on: r }) => [
1375
- I(a, C(i.buttonProps, z(r)), {
1376
- default: g(() => [
1373
+ return i.tooltip ? (s(), g(V("w-tooltip"), le(C({ key: 0 }, i.tooltipProps || {})), {
1374
+ activator: m(({ on: r }) => [
1375
+ I(a, C(l.buttonProps, z(r)), {
1376
+ default: m(() => [
1377
1377
  p(e.$slots, "default")
1378
1378
  ]),
1379
1379
  _: 2
1380
1380
  }, 1040)
1381
1381
  ]),
1382
- default: g(() => [
1383
- w("div", { innerHTML: l.tooltip }, null, 8, mt)
1382
+ default: m(() => [
1383
+ w("div", { innerHTML: i.tooltip }, null, 8, gt)
1384
1384
  ]),
1385
1385
  _: 3
1386
- }, 16)) : (s(), m(a, ie(C({ key: 1 }, i.buttonProps)), {
1387
- loading: g(() => [
1386
+ }, 16)) : (s(), g(a, le(C({ key: 1 }, l.buttonProps)), {
1387
+ loading: m(() => [
1388
1388
  p(e.$slots, "loading")
1389
1389
  ]),
1390
- default: g(() => [
1390
+ default: m(() => [
1391
1391
  p(e.$slots, "default")
1392
1392
  ]),
1393
1393
  _: 3
@@ -1429,48 +1429,48 @@ const yt = {
1429
1429
  lg: { type: Boolean },
1430
1430
  xl: { type: Boolean }
1431
1431
  },
1432
- components: { ButtonPartial: gt },
1432
+ components: { ButtonPartial: mt },
1433
1433
  emits: [],
1434
1434
  computed: {
1435
1435
  buttonProps() {
1436
- const { tooltip: e, tooltipProps: t, ...l } = this.$props;
1437
- return { ...l, ...this.$attrs };
1436
+ const { tooltip: e, tooltipProps: t, ...i } = this.$props;
1437
+ return { ...i, ...this.$attrs };
1438
1438
  }
1439
1439
  }
1440
1440
  }, wt = /* @__PURE__ */ v(yt, [["render", bt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), vt = ["innerHTML"];
1441
- function kt(e, t, l, o, n, i) {
1441
+ function kt(e, t, i, o, n, l) {
1442
1442
  const a = $("w-image");
1443
1443
  return s(), u("div", {
1444
- class: f(["w-card", i.classes])
1444
+ class: f(["w-card", l.classes])
1445
1445
  }, [
1446
1446
  e.$slots.title ? (s(), u("div", {
1447
1447
  key: 0,
1448
- class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }])
1448
+ class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
1449
1449
  }, [
1450
1450
  p(e.$slots, "title")
1451
- ], 2)) : l.title ? (s(), u("div", {
1451
+ ], 2)) : i.title ? (s(), u("div", {
1452
1452
  key: 1,
1453
- class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }]),
1454
- innerHTML: l.title
1453
+ class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1454
+ innerHTML: i.title
1455
1455
  }, null, 10, vt)) : c("", !0),
1456
- l.image ? (s(), m(a, C({
1456
+ i.image ? (s(), g(a, C({
1457
1457
  key: 2,
1458
1458
  class: "w-card__image",
1459
- src: l.image
1460
- }, i.imgProps), {
1461
- default: g(() => [
1459
+ src: i.image
1460
+ }, l.imgProps), {
1461
+ default: m(() => [
1462
1462
  p(e.$slots, "image-content")
1463
1463
  ]),
1464
1464
  _: 3
1465
1465
  }, 16, ["src"])) : c("", !0),
1466
1466
  w("div", {
1467
- class: f(["w-card__content", i.contentClasses])
1467
+ class: f(["w-card__content", l.contentClasses])
1468
1468
  }, [
1469
1469
  p(e.$slots, "default")
1470
1470
  ], 2),
1471
1471
  e.$slots.actions ? (s(), u("div", {
1472
1472
  key: 3,
1473
- class: f(["w-card__actions", { "w-card__actions--has-toolbar": i.actionsHasToolbar }])
1473
+ class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
1474
1474
  }, [
1475
1475
  p(e.$slots, "actions")
1476
1476
  ], 2)) : c("", !0)
@@ -1573,16 +1573,16 @@ const _t = {
1573
1573
  ], -1), It = [
1574
1574
  Vt
1575
1575
  ], Tt = ["for"], Rt = ["for", "innerHTML"];
1576
- function Lt(e, t, l, o, n, i) {
1577
- 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 }, {
1576
+ function Lt(e, t, i, o, n, l) {
1577
+ return s(), g(V(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1578
1578
  valid: e.valid,
1579
1579
  "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1580
1580
  onReset: t[6] || (t[6] = (a) => {
1581
1581
  e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
1582
1582
  }),
1583
- class: i.classes
1583
+ class: l.classes
1584
1584
  }), {
1585
- default: g(() => [
1585
+ default: m(() => [
1586
1586
  w("input", {
1587
1587
  ref: "input",
1588
1588
  id: `w-checkbox--${e._.uid}`,
@@ -1594,25 +1594,25 @@ function Lt(e, t, l, o, n, i) {
1594
1594
  tabindex: e.tabindex || null,
1595
1595
  onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
1596
1596
  onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
1597
- onChange: t[2] || (t[2] = (a) => i.onInput()),
1598
- onKeypress: t[3] || (t[3] = W((...a) => i.onInput && i.onInput(...a), ["enter"])),
1597
+ onChange: t[2] || (t[2] = (a) => l.onInput()),
1598
+ onKeypress: t[3] || (t[3] = W((...a) => l.onInput && l.onInput(...a), ["enter"])),
1599
1599
  "aria-checked": n.isChecked || "false",
1600
1600
  role: "checkbox"
1601
1601
  }, null, 40, St),
1602
- i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
1602
+ l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
1603
1603
  e.$slots.default ? (s(), u("label", {
1604
1604
  key: 0,
1605
1605
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1606
1606
  for: `w-checkbox--${e._.uid}`
1607
1607
  }, [
1608
1608
  p(e.$slots, "default", {}, () => [
1609
- S(_(l.label), 1)
1609
+ S(_(i.label), 1)
1610
1610
  ])
1611
- ], 10, Bt)) : l.label ? (s(), u("label", {
1611
+ ], 10, Bt)) : i.label ? (s(), u("label", {
1612
1612
  key: 1,
1613
1613
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1614
1614
  for: `w-checkbox--${e._.uid}`,
1615
- innerHTML: l.label
1615
+ innerHTML: i.label
1616
1616
  }, null, 10, $t)) : c("", !0)
1617
1617
  ], 64)) : c("", !0),
1618
1618
  w("div", {
@@ -1621,20 +1621,20 @@ function Lt(e, t, l, o, n, i) {
1621
1621
  e.$refs.input.focus(), e.$refs.input.click();
1622
1622
  })
1623
1623
  }, It, 2),
1624
- i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
1624
+ l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
1625
1625
  e.$slots.default ? (s(), u("label", {
1626
1626
  key: 0,
1627
1627
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1628
1628
  for: `w-checkbox--${e._.uid}`
1629
1629
  }, [
1630
1630
  p(e.$slots, "default", {}, () => [
1631
- S(_(l.label), 1)
1631
+ S(_(i.label), 1)
1632
1632
  ])
1633
- ], 10, Tt)) : l.label ? (s(), u("label", {
1633
+ ], 10, Tt)) : i.label ? (s(), u("label", {
1634
1634
  key: 1,
1635
1635
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1636
1636
  for: `w-checkbox--${e._.uid}`,
1637
- innerHTML: l.label
1637
+ innerHTML: i.label
1638
1638
  }, null, 10, Rt)) : c("", !0)
1639
1639
  ], 64)) : c("", !0)
1640
1640
  ]),
@@ -1691,7 +1691,9 @@ const xt = {
1691
1691
  },
1692
1692
  methods: {
1693
1693
  onInput() {
1694
- this.isChecked = !this.isChecked, this.$emit("update:modelValue", this.isChecked), this.$emit("input", this.isChecked), this.noRipple || (this.isChecked ? (this.ripple.start = !0, this.ripple.timeout = setTimeout(() => {
1694
+ this.isChecked = !this.isChecked;
1695
+ const e = this.isChecked && this.returnValue !== void 0 ? this.returnValue : this.isChecked;
1696
+ this.$emit("update:modelValue", e), this.$emit("input", e), this.noRipple || (this.isChecked ? (this.ripple.start = !0, this.ripple.timeout = setTimeout(() => {
1695
1697
  this.ripple.start = !1, this.ripple.end = !0, setTimeout(() => this.ripple.end = !1, 100);
1696
1698
  }, 700)) : (this.ripple.start = !1, clearTimeout(this.ripple.timeout)));
1697
1699
  }
@@ -1702,32 +1704,32 @@ const xt = {
1702
1704
  }
1703
1705
  }
1704
1706
  }, Ot = /* @__PURE__ */ v(xt, [["render", Lt]]), Pt = ["innerHTML"];
1705
- function zt(e, t, l, o, n, i) {
1707
+ function zt(e, t, i, o, n, l) {
1706
1708
  const a = $("w-checkbox");
1707
- 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 }, {
1709
+ return s(), g(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
1708
1710
  valid: e.valid,
1709
1711
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
1710
- onReset: i.reset,
1711
- column: !l.inline,
1712
- wrap: l.inline,
1713
- class: i.classes
1712
+ onReset: l.reset,
1713
+ column: !i.inline,
1714
+ wrap: i.inline,
1715
+ class: l.classes
1714
1716
  }), {
1715
- default: g(() => [
1716
- (s(!0), u(k, null, L(i.checkboxItems, (r, d) => (s(), m(a, C({
1717
+ default: m(() => [
1718
+ (s(!0), u(k, null, L(l.checkboxItems, (r, d) => (s(), g(a, C({
1717
1719
  key: d,
1718
1720
  "model-value": r._isChecked,
1719
- "onUpdate:modelValue": (h) => i.toggleCheck(r, h),
1721
+ "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
1720
1722
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
1721
1723
  name: `${e.inputName}[]`
1722
- }, { label: r.label, color: r.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
1724
+ }, { label: r.label, color: r.color, labelOnLeft: i.labelOnLeft, labelColor: i.labelColor, round: i.round }, {
1723
1725
  disabled: e.isDisabled || null,
1724
1726
  readonly: e.isReadonly || null,
1725
- class: { mt1: !l.inline && d }
1727
+ class: { mt1: !i.inline && d }
1726
1728
  }), {
1727
- default: g(() => [
1729
+ default: m(() => [
1728
1730
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
1729
1731
  key: 0,
1730
- item: i.getOriginalItem(r),
1732
+ item: l.getOriginalItem(r),
1731
1733
  checked: !!r._isChecked,
1732
1734
  index: d + 1,
1733
1735
  innerHTML: r.label
@@ -1748,6 +1750,7 @@ const Mt = {
1748
1750
  props: {
1749
1751
  items: { type: Array, required: !0 },
1750
1752
  modelValue: { type: Array },
1753
+ returnValues: { type: Boolean },
1751
1754
  labelOnLeft: { type: Boolean },
1752
1755
  itemLabelKey: { type: String, default: "label" },
1753
1756
  itemValueKey: { type: String, default: "value" },
@@ -1764,14 +1767,14 @@ const Mt = {
1764
1767
  computed: {
1765
1768
  checkboxItems() {
1766
1769
  return (this.items || []).map((e, t) => {
1767
- const l = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
1770
+ const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
1768
1771
  return Q({
1769
1772
  ...e,
1770
1773
  label: e[this.itemLabelKey],
1771
1774
  _index: t,
1772
- value: l,
1775
+ value: i,
1773
1776
  color: e[this.itemColorKey] || this.color,
1774
- _isChecked: this.modelValue && this.modelValue.includes(l)
1777
+ _isChecked: this.modelValue && this.modelValue.includes(i)
1775
1778
  });
1776
1779
  });
1777
1780
  },
@@ -1788,65 +1791,65 @@ const Mt = {
1788
1791
  },
1789
1792
  toggleCheck(e, t) {
1790
1793
  e._isChecked = t;
1791
- const l = this.checkboxItems.filter((o) => o._isChecked).map((o) => o.value);
1792
- this.$emit("update:modelValue", l), this.$emit("input", l);
1794
+ const i = this.checkboxItems.filter((o) => o._isChecked).map((o) => this.returnValues ? o.returnValue : o.value);
1795
+ this.$emit("update:modelValue", i), this.$emit("input", i);
1793
1796
  },
1794
1797
  getOriginalItem(e) {
1795
1798
  return this.items[e._index];
1796
1799
  }
1797
1800
  }
1798
1801
  }, Et = /* @__PURE__ */ v(Mt, [["render", zt]]);
1799
- function Wt(e, t, l, o, n, i) {
1800
- const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = me("focus");
1801
- return s(), m(d, C({
1802
+ function Wt(e, t, i, o, n, l) {
1803
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
1804
+ return s(), g(d, C({
1802
1805
  modelValue: e.showPopup,
1803
1806
  "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
1804
- }, i.wMenuProps), {
1805
- activator: g(({ on: y }) => [
1806
- I(a, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
1807
- default: g(() => [
1807
+ }, l.wMenuProps), {
1808
+ activator: m(({ on: y }) => [
1809
+ I(a, C({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : y }), {
1810
+ default: m(() => [
1808
1811
  p(e.$slots, "default")
1809
1812
  ]),
1810
1813
  _: 2
1811
1814
  }, 1040)
1812
1815
  ]),
1813
- default: g(() => [
1816
+ default: m(() => [
1814
1817
  I(r, {
1815
- column: !l.inline,
1818
+ column: !i.inline,
1816
1819
  "align-center": ""
1817
1820
  }, {
1818
- default: g(() => [
1821
+ default: m(() => [
1819
1822
  w("div", null, [
1820
1823
  p(e.$slots, "question", {}, () => [
1821
- S(_(l.question), 1)
1824
+ S(_(i.question), 1)
1822
1825
  ])
1823
1826
  ]),
1824
1827
  w("div", {
1825
- class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
1828
+ class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
1826
1829
  }, [
1827
- l.cancel !== !1 ? (s(), m(a, C({
1830
+ i.cancel !== !1 ? (s(), g(a, C({
1828
1831
  key: 0,
1829
1832
  class: "mr2"
1830
- }, i.cancelButtonProps, {
1831
- "bg-color": (i.cancelButton || {}).bgColor || "error",
1832
- onKeyup: t[0] || (t[0] = W((y) => !l.persistent && i.onCancel(), ["escape"])),
1833
- onClick: i.onCancel
1833
+ }, l.cancelButtonProps, {
1834
+ "bg-color": (l.cancelButton || {}).bgColor || "error",
1835
+ onKeyup: t[0] || (t[0] = W((y) => !i.persistent && l.onCancel(), ["escape"])),
1836
+ onClick: l.onCancel
1834
1837
  }), {
1835
- default: g(() => [
1838
+ default: m(() => [
1836
1839
  p(e.$slots, "cancel", {}, () => [
1837
- S(_(i.cancelButton.label), 1)
1840
+ S(_(l.cancelButton.label), 1)
1838
1841
  ])
1839
1842
  ]),
1840
1843
  _: 3
1841
1844
  }, 16, ["bg-color", "onClick"])) : c("", !0),
1842
- N((s(), m(a, C(i.confirmButtonProps, {
1843
- "bg-color": (i.confirmButton || {}).bgColor || "success",
1844
- onKeyup: t[1] || (t[1] = W((y) => !l.persistent && i.onCancel(), ["escape"])),
1845
- onClick: i.onConfirm
1845
+ N((s(), g(a, C(l.confirmButtonProps, {
1846
+ "bg-color": (l.confirmButton || {}).bgColor || "success",
1847
+ onKeyup: t[1] || (t[1] = W((y) => !i.persistent && l.onCancel(), ["escape"])),
1848
+ onClick: l.onConfirm
1846
1849
  }), {
1847
- default: g(() => [
1850
+ default: m(() => [
1848
1851
  p(e.$slots, "confirm", {}, () => [
1849
- S(_(i.confirmButton.label), 1)
1852
+ S(_(l.confirmButton.label), 1)
1850
1853
  ])
1851
1854
  ]),
1852
1855
  _: 3
@@ -1955,10 +1958,10 @@ const At = {
1955
1958
  }
1956
1959
  }
1957
1960
  }, Nt = /* @__PURE__ */ v(At, [["render", Wt]]);
1958
- function Kt(e, t, l, o, n, i) {
1961
+ function Kt(e, t, i, o, n, l) {
1959
1962
  return s(), u("div", {
1960
- class: f(["w-date-picker", i.classes]),
1961
- style: R(i.styles)
1963
+ class: f(["w-date-picker", l.classes]),
1964
+ style: R(l.styles)
1962
1965
  }, [
1963
1966
  p(e.$slots, "default")
1964
1967
  ], 6);
@@ -1982,51 +1985,51 @@ const Ht = {
1982
1985
  }
1983
1986
  }
1984
1987
  }, Dt = /* @__PURE__ */ v(Ht, [["render", Kt]]);
1985
- function Ft(e, t, l, o, n, i) {
1988
+ function Ft(e, t, i, o, n, l) {
1986
1989
  const a = $("w-card"), r = $("w-overlay");
1987
- return s(), m(r, {
1988
- class: f(["w-dialog", i.classes]),
1990
+ return s(), g(r, {
1991
+ class: f(["w-dialog", l.classes]),
1989
1992
  "model-value": n.showWrapper,
1990
- persistent: l.persistent,
1991
- "persistent-no-animation": l.persistentNoAnimation,
1992
- onClick: i.onOutsideClick,
1993
- onClose: i.onClose,
1994
- "bg-color": l.overlayColor,
1995
- opacity: l.overlayOpacity
1993
+ persistent: i.persistent,
1994
+ "persistent-no-animation": i.persistentNoAnimation,
1995
+ onClick: l.onOutsideClick,
1996
+ onClose: l.onClose,
1997
+ "bg-color": i.overlayColor,
1998
+ opacity: i.overlayOpacity
1996
1999
  }, {
1997
- default: g(() => [
2000
+ default: m(() => [
1998
2001
  I(O, {
1999
- name: l.transition,
2002
+ name: i.transition,
2000
2003
  appear: "",
2001
- onAfterLeave: i.onBeforeClose
2004
+ onAfterLeave: l.onBeforeClose
2002
2005
  }, {
2003
- default: g(() => [
2006
+ default: m(() => [
2004
2007
  N(I(a, {
2005
- class: f(["w-dialog__content", l.dialogClass]),
2008
+ class: f(["w-dialog__content", i.dialogClass]),
2006
2009
  ref: "dialog",
2007
2010
  "no-border": "",
2008
- color: l.color,
2009
- "bg-color": l.bgColor,
2010
- "title-class": l.titleClass,
2011
- "content-class": l.contentClass,
2012
- title: l.title || void 0,
2013
- style: R(i.contentStyles)
2011
+ color: i.color,
2012
+ "bg-color": i.bgColor,
2013
+ "title-class": i.titleClass,
2014
+ "content-class": i.contentClass,
2015
+ title: i.title || void 0,
2016
+ style: R(l.contentStyles)
2014
2017
  }, Z({
2015
- default: g(() => [
2018
+ default: m(() => [
2016
2019
  p(e.$slots, "default")
2017
2020
  ]),
2018
2021
  _: 2
2019
2022
  }, [
2020
2023
  e.$slots.title ? {
2021
2024
  name: "title",
2022
- fn: g(() => [
2025
+ fn: m(() => [
2023
2026
  p(e.$slots, "title")
2024
2027
  ]),
2025
2028
  key: "0"
2026
2029
  } : void 0,
2027
2030
  e.$slots.actions ? {
2028
2031
  name: "actions",
2029
- fn: g(() => [
2032
+ fn: m(() => [
2030
2033
  p(e.$slots, "actions")
2031
2034
  ]),
2032
2035
  key: "1"
@@ -2109,11 +2112,11 @@ const jt = {
2109
2112
  }
2110
2113
  }
2111
2114
  }, Ut = /* @__PURE__ */ v(jt, [["render", Ft]]), qt = ["role", "aria-orientation"];
2112
- function Xt(e, t, l, o, n, i) {
2115
+ function Xt(e, t, i, o, n, l) {
2113
2116
  return s(), u("div", {
2114
- class: f(["w-divider", i.classes]),
2117
+ class: f(["w-divider", l.classes]),
2115
2118
  role: e.$slots.default ? null : "presentation",
2116
- "aria-orientation": l.vertical ? "vertical" : "horizontal"
2119
+ "aria-orientation": i.vertical ? "vertical" : "horizontal"
2117
2120
  }, [
2118
2121
  p(e.$slots, "default")
2119
2122
  ], 10, qt);
@@ -2139,43 +2142,43 @@ const Yt = {
2139
2142
  }
2140
2143
  }
2141
2144
  }, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]), Jt = { class: "w-drawer-wrap__pushable" };
2142
- function Qt(e, t, l, o, n, i) {
2145
+ function Qt(e, t, i, o, n, l) {
2143
2146
  const a = $("w-overlay");
2144
- return n.showWrapper || l.pushContent ? (s(), u("div", {
2147
+ return n.showWrapper || i.pushContent ? (s(), u("div", {
2145
2148
  key: 0,
2146
- class: f(["w-drawer-wrap", i.wrapperClasses])
2149
+ class: f(["w-drawer-wrap", l.wrapperClasses])
2147
2150
  }, [
2148
- l.pushContent ? (s(), u("div", {
2151
+ i.pushContent ? (s(), u("div", {
2149
2152
  key: 0,
2150
2153
  class: "w-drawer-wrap__track",
2151
- style: R(i.trackStyles)
2154
+ style: R(l.trackStyles)
2152
2155
  }, [
2153
2156
  w("div", Jt, [
2154
- l.noOverlay ? c("", !0) : (s(), m(a, {
2157
+ i.noOverlay ? c("", !0) : (s(), g(a, {
2155
2158
  key: 0,
2156
2159
  modelValue: n.showDrawer,
2157
2160
  "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2158
- onClick: i.onOutsideClick,
2159
- persistent: l.persistent,
2161
+ onClick: l.onOutsideClick,
2162
+ persistent: i.persistent,
2160
2163
  "persistent-no-animation": "",
2161
- "bg-color": l.overlayColor || "transparent",
2162
- opacity: l.overlayOpacity
2164
+ "bg-color": i.overlayColor || "transparent",
2165
+ opacity: i.overlayOpacity
2163
2166
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2164
2167
  p(e.$slots, "pushable")
2165
2168
  ]),
2166
2169
  I(O, {
2167
2170
  name: "fade",
2168
- onBeforeLeave: i.onBeforeClose,
2169
- onAfterLeave: i.onClose
2171
+ onBeforeLeave: l.onBeforeClose,
2172
+ onAfterLeave: l.onClose
2170
2173
  }, {
2171
- default: g(() => [
2172
- n.showDrawer ? (s(), m(V(l.tag || "aside"), {
2174
+ default: m(() => [
2175
+ n.showDrawer ? (s(), g(V(i.tag || "aside"), {
2173
2176
  key: 0,
2174
- class: f(["w-drawer", i.drawerClasses]),
2177
+ class: f(["w-drawer", l.drawerClasses]),
2175
2178
  ref: "drawer",
2176
- style: R(i.styles)
2179
+ style: R(l.styles)
2177
2180
  }, {
2178
- default: g(() => [
2181
+ default: m(() => [
2179
2182
  p(e.$slots, "default")
2180
2183
  ]),
2181
2184
  _: 3
@@ -2184,30 +2187,30 @@ function Qt(e, t, l, o, n, i) {
2184
2187
  _: 3
2185
2188
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2186
2189
  ], 4)) : (s(), u(k, { key: 1 }, [
2187
- l.noOverlay ? c("", !0) : (s(), m(a, {
2190
+ i.noOverlay ? c("", !0) : (s(), g(a, {
2188
2191
  key: 0,
2189
2192
  modelValue: n.showDrawer,
2190
2193
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2191
- onClick: i.onOutsideClick,
2192
- persistent: l.persistent,
2194
+ onClick: l.onOutsideClick,
2195
+ persistent: i.persistent,
2193
2196
  "persistent-no-animation": "",
2194
- "bg-color": l.overlayColor,
2195
- opacity: l.overlayOpacity
2197
+ "bg-color": i.overlayColor,
2198
+ opacity: i.overlayOpacity
2196
2199
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2197
2200
  I(O, {
2198
- name: i.transitionName,
2201
+ name: l.transitionName,
2199
2202
  appear: "",
2200
- onBeforeLeave: i.onBeforeClose,
2201
- onAfterLeave: i.onClose
2203
+ onBeforeLeave: l.onBeforeClose,
2204
+ onAfterLeave: l.onClose
2202
2205
  }, {
2203
- default: g(() => [
2204
- n.showDrawer ? (s(), m(V(l.tag || "aside"), {
2206
+ default: m(() => [
2207
+ n.showDrawer ? (s(), g(V(i.tag || "aside"), {
2205
2208
  key: 0,
2206
- class: f(["w-drawer", i.drawerClasses]),
2209
+ class: f(["w-drawer", l.drawerClasses]),
2207
2210
  ref: "drawer",
2208
- style: R(i.styles)
2211
+ style: R(l.styles)
2209
2212
  }, {
2210
- default: g(() => [
2213
+ default: m(() => [
2211
2214
  p(e.$slots, "default")
2212
2215
  ]),
2213
2216
  _: 3
@@ -2218,7 +2221,7 @@ function Qt(e, t, l, o, n, i) {
2218
2221
  ], 64))
2219
2222
  ], 2)) : c("", !0);
2220
2223
  }
2221
- const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2224
+ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, ei = {
2222
2225
  name: "w-drawer",
2223
2226
  props: {
2224
2227
  modelValue: { default: !0 },
@@ -2323,18 +2326,18 @@ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
2323
2326
  e && (this.showWrapper = !0), this.showDrawer = e;
2324
2327
  }
2325
2328
  }
2326
- }, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
2327
- function ll(e, t, l, o, n, i) {
2328
- return s(), m(V(l.tag), {
2329
- class: f(["w-flex", i.classes])
2329
+ }, ti = /* @__PURE__ */ v(ei, [["render", Qt]]);
2330
+ function ii(e, t, i, o, n, l) {
2331
+ return s(), g(V(i.tag), {
2332
+ class: f(["w-flex", l.classes])
2330
2333
  }, {
2331
- default: g(() => [
2334
+ default: m(() => [
2332
2335
  p(e.$slots, "default")
2333
2336
  ]),
2334
2337
  _: 3
2335
2338
  }, 8, ["class"]);
2336
2339
  }
2337
- const il = {
2340
+ const li = {
2338
2341
  name: "w-flex",
2339
2342
  props: {
2340
2343
  tag: { type: String, default: "div" },
@@ -2381,23 +2384,23 @@ const il = {
2381
2384
  };
2382
2385
  }
2383
2386
  }
2384
- }, sl = /* @__PURE__ */ v(il, [["render", ll]]);
2385
- function al(e, t, l, o, n, i) {
2387
+ }, si = /* @__PURE__ */ v(li, [["render", ii]]);
2388
+ function ai(e, t, i, o, n, l) {
2386
2389
  return s(), u("form", {
2387
- class: f(["w-form", i.classes]),
2388
- onSubmit: t[0] || (t[0] = (...a) => i.onSubmit && i.onSubmit(...a)),
2389
- onReset: t[1] || (t[1] = (...a) => i.reset && i.reset(...a)),
2390
+ class: f(["w-form", l.classes]),
2391
+ onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2392
+ onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
2390
2393
  novalidate: ""
2391
2394
  }, [
2392
2395
  p(e.$slots, "default")
2393
2396
  ], 34);
2394
2397
  }
2395
- const ol = async (e, t) => {
2396
- for (const l of e)
2397
- if (await t(l))
2398
+ const oi = async (e, t) => {
2399
+ for (const i of e)
2400
+ if (await t(i))
2398
2401
  return !0;
2399
2402
  return !1;
2400
- }, nl = {
2403
+ }, ni = {
2401
2404
  name: "w-form",
2402
2405
  props: {
2403
2406
  modelValue: {},
@@ -2454,26 +2457,26 @@ const ol = async (e, t) => {
2454
2457
  this.$emit("before-validate", { e, errorsCount: this.errorsCount });
2455
2458
  let t = 0;
2456
2459
  return await (async () => {
2457
- var l;
2460
+ var i;
2458
2461
  for (const o of this.formElements)
2459
- !((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));
2462
+ !((i = o.validators) != null && i.length) || o.disabled || o.readonly || (await this.checkElementValidators(o), t += ~~!o.Validation.isValid, o.$emit("update:valid", o.Validation.isValid));
2460
2463
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2461
2464
  },
2462
2465
  async validateElement(e) {
2463
2466
  return await this.checkElementValidators(e), this.updateErrorsCount(), e.Validation.isValid;
2464
2467
  },
2465
2468
  async checkElementValidators(e) {
2466
- let t = !1, l = "";
2467
- await ol(e.validators, async (o) => {
2469
+ let t = !1, i = "";
2470
+ await oi(e.validators, async (o) => {
2468
2471
  const n = await (typeof o == "function" && o(e.inputValue));
2469
- return t = typeof n != "string", l = t ? "" : n, !t;
2470
- }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
2472
+ return t = typeof n != "string", i = t ? "" : n, !t;
2473
+ }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
2471
2474
  },
2472
2475
  reset(e) {
2473
2476
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2474
2477
  },
2475
2478
  updateErrorsCount(e = null, t = !1) {
2476
- 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);
2479
+ this.errorsCount = e !== null ? e : this.formElements.reduce((i, o) => i + ~~(o.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
2477
2480
  },
2478
2481
  onSubmit(e) {
2479
2482
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2487,22 +2490,22 @@ const ol = async (e, t) => {
2487
2490
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
2488
2491
  }
2489
2492
  }
2490
- }, rl = /* @__PURE__ */ v(nl, [["render", al]]);
2491
- function dl(e, t, l, o, n, i) {
2493
+ }, ri = /* @__PURE__ */ v(ni, [["render", ai]]);
2494
+ function di(e, t, i, o, n, l) {
2492
2495
  const a = $("w-transition-expand");
2493
2496
  return s(), u("div", {
2494
- class: f(i.classes)
2497
+ class: f(l.classes)
2495
2498
  }, [
2496
2499
  w("div", {
2497
- class: f(["w-flex grow", [l.column ? "column" : "align-center", l.wrap ? "wrap" : ""]])
2500
+ class: f(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
2498
2501
  }, [
2499
2502
  p(e.$slots, "default")
2500
2503
  ], 2),
2501
2504
  I(a, { y: "" }, {
2502
- default: g(() => [
2505
+ default: m(() => [
2503
2506
  e.Validation.message ? (s(), u("div", {
2504
2507
  key: 0,
2505
- class: f(["w-form-el__error", i.formProps.validationColor])
2508
+ class: f(["w-form-el__error", l.formProps.validationColor])
2506
2509
  }, [
2507
2510
  p(e.$slots, "error-message", {
2508
2511
  message: e.Validation.message
@@ -2515,7 +2518,7 @@ function dl(e, t, l, o, n, i) {
2515
2518
  })
2516
2519
  ], 2);
2517
2520
  }
2518
- const ul = {
2521
+ const ui = {
2519
2522
  name: "w-form-element",
2520
2523
  props: {
2521
2524
  valid: { required: !0 },
@@ -2581,18 +2584,18 @@ const ul = {
2581
2584
  beforeUnmount() {
2582
2585
  this.formUnregister && this.formUnregister(this);
2583
2586
  }
2584
- }, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
2585
- function cl(e, t, l, o, n, i) {
2586
- return s(), m(V(l.tag), {
2587
- class: f(["w-grid", i.classes])
2587
+ }, hi = /* @__PURE__ */ v(ui, [["render", di]]);
2588
+ function ci(e, t, i, o, n, l) {
2589
+ return s(), g(V(i.tag), {
2590
+ class: f(["w-grid", l.classes])
2588
2591
  }, {
2589
- default: g(() => [
2592
+ default: m(() => [
2590
2593
  p(e.$slots, "default")
2591
2594
  ]),
2592
2595
  _: 3
2593
2596
  }, 8, ["class"]);
2594
2597
  }
2595
- const pl = {
2598
+ const pi = {
2596
2599
  name: "w-grid",
2597
2600
  props: {
2598
2601
  tag: { type: String, default: "div" },
@@ -2608,7 +2611,7 @@ const pl = {
2608
2611
  break;
2609
2612
  case "number":
2610
2613
  case "string":
2611
- e = Object.keys(e).reduce((t, l) => t[l] = ~~this.columns, {});
2614
+ e = Object.keys(e).reduce((t, i) => t[i] = ~~this.columns, {});
2612
2615
  break;
2613
2616
  }
2614
2617
  return e;
@@ -2621,38 +2624,38 @@ const pl = {
2621
2624
  break;
2622
2625
  case "number":
2623
2626
  case "string":
2624
- e = Object.keys(e).reduce((t, l) => t[l] = ~~this.gap, {});
2627
+ e = Object.keys(e).reduce((t, i) => t[i] = ~~this.gap, {});
2625
2628
  break;
2626
2629
  }
2627
2630
  return e;
2628
2631
  },
2629
2632
  classes() {
2630
2633
  let e = null;
2631
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [o, n]) => (l[`${o}-columns${n}`] = !0, l), {}));
2634
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [o, n]) => (i[`${o}-columns${n}`] = !0, i), {}));
2632
2635
  let t = null;
2633
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [o, n]) => (l[`${o}-gap${n}`] = !0, l), {})), {
2636
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [o, n]) => (i[`${o}-gap${n}`] = !0, i), {})), {
2634
2637
  ...e || { [`columns${this.columns}`]: this.columns },
2635
2638
  ...t || { [`gap${this.gap}`]: this.gap }
2636
2639
  };
2637
2640
  }
2638
2641
  }
2639
- }, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
2640
- function gl(e, t, l, o, n, i) {
2641
- return s(), m(V(l.tag || "i"), C({ class: "w-icon" }, z(e.$attrs), {
2642
- class: i.classes,
2642
+ }, fi = /* @__PURE__ */ v(pi, [["render", ci]]);
2643
+ function mi(e, t, i, o, n, l) {
2644
+ return s(), g(V(i.tag || "i"), C({ class: "w-icon" }, z(e.$attrs), {
2645
+ class: l.classes,
2643
2646
  role: "icon",
2644
2647
  "aria-hidden": "true",
2645
- style: i.readIcon() && i.styles
2648
+ style: l.readIcon() && l.styles
2646
2649
  }), {
2647
- default: g(() => [
2648
- i.hasLigature ? (s(), u(k, { key: 0 }, [
2650
+ default: m(() => [
2651
+ l.hasLigature ? (s(), u(k, { key: 0 }, [
2649
2652
  S(_(e.icon), 1)
2650
2653
  ], 64)) : c("", !0)
2651
2654
  ]),
2652
2655
  _: 1
2653
2656
  }, 16, ["class", "style"]);
2654
2657
  }
2655
- const ml = {
2658
+ const gi = {
2656
2659
  name: "w-icon",
2657
2660
  props: {
2658
2661
  tag: { type: String, default: "i" },
@@ -2717,47 +2720,47 @@ const ml = {
2717
2720
  },
2718
2721
  methods: {
2719
2722
  readIcon() {
2720
- const { default: e } = this.$slots, [t = "", l = ""] = typeof e == "function" && e()[0].children.trim().split(" ") || [];
2721
- return this.fontName = t, this.icon = l, !0;
2723
+ const { default: e } = this.$slots, [t = "", i = ""] = typeof e == "function" && e()[0].children.trim().split(" ") || [];
2724
+ return this.fontName = t, this.icon = i, !0;
2722
2725
  }
2723
2726
  }
2724
- }, bl = /* @__PURE__ */ v(ml, [["render", gl]]), yl = {
2727
+ }, bi = /* @__PURE__ */ v(gi, [["render", mi]]), yi = {
2725
2728
  key: 0,
2726
2729
  class: "w-image__loader"
2727
2730
  };
2728
- function wl(e, t, l, o, n, i) {
2731
+ function wi(e, t, i, o, n, l) {
2729
2732
  const a = $("w-progress");
2730
- return s(), m(V(i.wrapperTag), {
2731
- class: f(["w-image-wrap", i.wrapperClasses]),
2732
- style: R(i.wrapperStyles)
2733
+ return s(), g(V(l.wrapperTag), {
2734
+ class: f(["w-image-wrap", l.wrapperClasses]),
2735
+ style: R(l.wrapperStyles)
2733
2736
  }, {
2734
- default: g(() => [
2737
+ default: m(() => [
2735
2738
  I(O, {
2736
- name: l.transition,
2739
+ name: i.transition,
2737
2740
  appear: ""
2738
2741
  }, {
2739
- default: g(() => [
2740
- n.loaded ? (s(), m(V(l.tag), {
2742
+ default: m(() => [
2743
+ n.loaded ? (s(), g(V(i.tag), {
2741
2744
  key: 0,
2742
- class: f(["w-image", i.imageClasses]),
2743
- style: R(i.imageStyles),
2744
- src: l.tag === "img" ? n.imgSrc : null
2745
+ class: f(["w-image", l.imageClasses]),
2746
+ style: R(l.imageStyles),
2747
+ src: i.tag === "img" ? n.imgSrc : null
2745
2748
  }, null, 8, ["class", "style", "src"])) : c("", !0)
2746
2749
  ]),
2747
2750
  _: 1
2748
2751
  }, 8, ["name"]),
2749
- !l.noSpinner && n.loading ? (s(), u("div", yl, [
2750
- e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), m(a, C({
2752
+ !i.noSpinner && n.loading ? (s(), u("div", yi, [
2753
+ e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), g(a, C({
2751
2754
  key: 1,
2752
2755
  circle: "",
2753
2756
  indeterminate: ""
2754
- }, l.spinnerColor ? { color: l.spinnerColor } : {}), null, 16))
2757
+ }, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
2755
2758
  ])) : c("", !0),
2756
- e.$slots.default ? (s(), m(V(i.wrapperTag), {
2759
+ e.$slots.default ? (s(), g(V(l.wrapperTag), {
2757
2760
  key: 1,
2758
- class: f(["w-image__content", l.contentClass])
2761
+ class: f(["w-image__content", i.contentClass])
2759
2762
  }, {
2760
- default: g(() => [
2763
+ default: m(() => [
2761
2764
  p(e.$slots, "default")
2762
2765
  ]),
2763
2766
  _: 3
@@ -2766,7 +2769,7 @@ function wl(e, t, l, o, n, i) {
2766
2769
  _: 3
2767
2770
  }, 8, ["class", "style"]);
2768
2771
  }
2769
- const vl = {
2772
+ const vi = {
2770
2773
  name: "w-image",
2771
2774
  props: {
2772
2775
  tag: { type: String, default: "span" },
@@ -2833,10 +2836,10 @@ const vl = {
2833
2836
  loadImage(e = !1) {
2834
2837
  if (!this.loading)
2835
2838
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
2836
- const l = new Image();
2837
- 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) => {
2839
+ const i = new Image();
2840
+ i.onload = (o) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = o.target.width, this.imgHeight = o.target.height), this.imgComputedRatio = o.target.height / o.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(i)), i.onerror = (o) => {
2838
2841
  this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
2839
- }, l.src = e ? this.fallback : this.src;
2842
+ }, i.src = e ? this.fallback : this.src;
2840
2843
  });
2841
2844
  }
2842
2845
  },
@@ -2862,80 +2865,80 @@ const vl = {
2862
2865
  this.imgHeight = e;
2863
2866
  }
2864
2867
  }
2865
- }, 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 = {
2868
+ }, ki = /* @__PURE__ */ v(vi, [["render", wi]]), _i = ["name"], Ci = ["for"], Si = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bi = ["id", "name", "multiple", "disabled", "data-progress"], $i = {
2866
2869
  class: "w-input__no-file",
2867
2870
  key: "no-file"
2868
- }, Vl = ["for"], Il = ["for"], Tl = ["src"], Rl = ["for"];
2869
- function Ll(e, t, l, o, n, i) {
2871
+ }, Vi = ["for"], Ii = ["for"], Ti = ["src"], Ri = ["for"];
2872
+ function Li(e, t, i, o, n, l) {
2870
2873
  const a = $("w-icon"), r = $("w-progress");
2871
- 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 }, {
2874
+ return s(), g(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 }, {
2872
2875
  valid: e.valid,
2873
2876
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
2874
2877
  onReset: t[11] || (t[11] = (d) => {
2875
2878
  e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
2876
2879
  }),
2877
- wrap: i.hasLabel && l.labelPosition !== "inside",
2878
- class: i.classes
2880
+ wrap: l.hasLabel && i.labelPosition !== "inside",
2881
+ class: l.classes
2879
2882
  }), {
2880
- default: g(() => [
2881
- l.type === "hidden" ? N((s(), u("input", {
2883
+ default: m(() => [
2884
+ i.type === "hidden" ? N((s(), u("input", {
2882
2885
  key: 0,
2883
2886
  type: "hidden",
2884
2887
  name: e.name || null,
2885
2888
  "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
2886
- }, null, 8, _l)), [
2889
+ }, null, 8, _i)), [
2887
2890
  [be, n.inputValue]
2888
2891
  ]) : (s(), u(k, { key: 1 }, [
2889
- l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
2890
- e.$slots.default || l.label ? (s(), u("label", {
2892
+ i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
2893
+ e.$slots.default || i.label ? (s(), u("label", {
2891
2894
  key: 0,
2892
2895
  class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
2893
2896
  for: `w-input--${e._.uid}`
2894
2897
  }, [
2895
2898
  p(e.$slots, "default", {}, () => [
2896
- S(_(l.label), 1)
2899
+ S(_(i.label), 1)
2897
2900
  ])
2898
- ], 10, Cl)) : c("", !0)
2901
+ ], 10, Ci)) : c("", !0)
2899
2902
  ], 64)) : c("", !0),
2900
2903
  w("div", {
2901
- class: f(["w-input__input-wrap", i.inputWrapClasses])
2904
+ class: f(["w-input__input-wrap", l.inputWrapClasses])
2902
2905
  }, [
2903
- l.innerIconLeft ? (s(), m(a, {
2906
+ i.innerIconLeft ? (s(), g(a, {
2904
2907
  key: 0,
2905
2908
  class: "w-input__icon w-input__icon--inner-left",
2906
2909
  tag: "label",
2907
2910
  for: `w-input--${e._.uid}`,
2908
2911
  onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
2909
2912
  }, {
2910
- default: g(() => [
2911
- S(_(l.innerIconLeft), 1)
2913
+ default: m(() => [
2914
+ S(_(i.innerIconLeft), 1)
2912
2915
  ]),
2913
2916
  _: 1
2914
2917
  }, 8, ["for"])) : c("", !0),
2915
- l.type !== "file" ? N((s(), u("input", C({
2918
+ i.type !== "file" ? N((s(), u("input", C({
2916
2919
  key: 1,
2917
2920
  class: "w-input__input",
2918
2921
  ref: "input",
2919
2922
  "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
2920
- }, z(i.listeners, !0), {
2921
- onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
2922
- onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
2923
- onBlur: t[5] || (t[5] = (...d) => i.onBlur && i.onBlur(...d)),
2923
+ }, z(l.listeners, !0), {
2924
+ onInput: t[3] || (t[3] = (...d) => l.onInput && l.onInput(...d)),
2925
+ onFocus: t[4] || (t[4] = (...d) => l.onFocus && l.onFocus(...d)),
2926
+ onBlur: t[5] || (t[5] = (...d) => l.onBlur && l.onBlur(...d)),
2924
2927
  id: `w-input--${e._.uid}`,
2925
- type: l.type,
2928
+ type: i.type,
2926
2929
  name: e.inputName,
2927
- placeholder: l.placeholder || null,
2928
- step: l.step || null,
2929
- min: l.min || null,
2930
- max: l.max || null,
2931
- minlength: l.minlength || null,
2932
- maxlength: l.maxlength || null,
2930
+ placeholder: i.placeholder || null,
2931
+ step: i.step || null,
2932
+ min: i.min || null,
2933
+ max: i.max || null,
2934
+ minlength: i.minlength || null,
2935
+ maxlength: i.maxlength || null,
2933
2936
  readonly: e.isReadonly || null,
2934
2937
  "aria-readonly": e.isReadonly ? "true" : "false",
2935
2938
  disabled: e.isDisabled || null,
2936
2939
  required: e.required || null,
2937
2940
  tabindex: e.tabindex || null
2938
- }, i.attrs), null, 16, Sl)), [
2941
+ }, l.attrs), null, 16, Si)), [
2939
2942
  [$e, n.inputValue]
2940
2943
  ]) : (s(), u(k, { key: 2 }, [
2941
2944
  w("input", C({
@@ -2943,22 +2946,22 @@ function Ll(e, t, l, o, n, i) {
2943
2946
  id: `w-input--${e._.uid}`,
2944
2947
  type: "file",
2945
2948
  name: e.name || null,
2946
- onFocus: t[6] || (t[6] = (...d) => i.onFocus && i.onFocus(...d)),
2947
- onBlur: t[7] || (t[7] = (...d) => i.onBlur && i.onBlur(...d)),
2948
- onChange: t[8] || (t[8] = (...d) => i.onFileChange && i.onFileChange(...d)),
2949
- multiple: l.multiple || null
2950
- }, i.attrs, {
2949
+ onFocus: t[6] || (t[6] = (...d) => l.onFocus && l.onFocus(...d)),
2950
+ onBlur: t[7] || (t[7] = (...d) => l.onBlur && l.onBlur(...d)),
2951
+ onChange: t[8] || (t[8] = (...d) => l.onFileChange && l.onFileChange(...d)),
2952
+ multiple: i.multiple || null
2953
+ }, l.attrs, {
2951
2954
  disabled: e.isDisabled || null,
2952
- "data-progress": i.overallFilesProgress
2953
- }), null, 16, Bl),
2955
+ "data-progress": l.overallFilesProgress
2956
+ }), null, 16, Bi),
2954
2957
  I(ae, {
2955
2958
  class: "w-input__input w-input__input--file",
2956
2959
  tag: "label",
2957
2960
  name: "fade",
2958
2961
  for: `w-input--${e._.uid}`
2959
2962
  }, {
2960
- default: g(() => [
2961
- !n.inputFiles.length && n.isFocused ? (s(), u("span", $l, [
2963
+ default: m(() => [
2964
+ !n.inputFiles.length && n.isFocused ? (s(), u("span", $i, [
2962
2965
  p(e.$slots, "no-file", {}, () => [
2963
2966
  e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
2964
2967
  S("No file")
@@ -2979,38 +2982,38 @@ function Ll(e, t, l, o, n, i) {
2979
2982
  _: 3
2980
2983
  }, 8, ["for"])
2981
2984
  ], 64)),
2982
- l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 3 }, [
2983
- e.$slots.default || l.label ? (s(), u("label", {
2985
+ i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 3 }, [
2986
+ e.$slots.default || i.label ? (s(), u("label", {
2984
2987
  key: 0,
2985
2988
  class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses]),
2986
2989
  for: `w-input--${e._.uid}`
2987
2990
  }, [
2988
2991
  p(e.$slots, "default", {}, () => [
2989
- S(_(l.label), 1)
2992
+ S(_(i.label), 1)
2990
2993
  ])
2991
- ], 10, Vl)) : c("", !0)
2994
+ ], 10, Vi)) : c("", !0)
2992
2995
  ], 64)) : c("", !0),
2993
- l.innerIconRight ? (s(), m(a, {
2996
+ i.innerIconRight ? (s(), g(a, {
2994
2997
  key: 4,
2995
2998
  class: "w-input__icon w-input__icon--inner-right",
2996
2999
  tag: "label",
2997
3000
  for: `w-input--${e._.uid}`,
2998
3001
  onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
2999
3002
  }, {
3000
- default: g(() => [
3001
- S(_(l.innerIconRight), 1)
3003
+ default: m(() => [
3004
+ S(_(i.innerIconRight), 1)
3002
3005
  ]),
3003
3006
  _: 1
3004
3007
  }, 8, ["for"])) : c("", !0),
3005
- i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), m(r, {
3008
+ l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (s(), g(r, {
3006
3009
  key: 5,
3007
3010
  class: "fill-width",
3008
3011
  size: "2",
3009
- color: l.progressColor || l.color,
3010
- "model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
3012
+ color: i.progressColor || i.color,
3013
+ "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3011
3014
  }, null, 8, ["color", "model-value"])) : c("", !0)
3012
3015
  ], 2),
3013
- l.type === "file" && l.preview && n.inputFiles.length ? (s(), u("label", {
3016
+ i.type === "file" && i.preview && n.inputFiles.length ? (s(), u("label", {
3014
3017
  key: 1,
3015
3018
  class: "d-flex",
3016
3019
  for: `w-input--${e._.uid}`
@@ -3024,29 +3027,29 @@ function Ll(e, t, l, o, n, i) {
3024
3027
  key: `${h}b`,
3025
3028
  src: d.preview,
3026
3029
  alt: ""
3027
- }, null, 8, Tl)) : (s(), u("i", {
3028
- class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
3030
+ }, null, 8, Ti)) : (s(), u("i", {
3031
+ class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
3029
3032
  key: `${h}c`
3030
3033
  }, null, 2))
3031
3034
  ], 64))), 256))
3032
- ], 8, Il)) : c("", !0),
3033
- l.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
3034
- e.$slots.default || l.label ? (s(), u("label", {
3035
+ ], 8, Ii)) : c("", !0),
3036
+ i.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
3037
+ e.$slots.default || i.label ? (s(), u("label", {
3035
3038
  key: 0,
3036
3039
  class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
3037
3040
  for: `w-input--${e._.uid}`
3038
3041
  }, [
3039
3042
  p(e.$slots, "default", {}, () => [
3040
- S(_(l.label), 1)
3043
+ S(_(i.label), 1)
3041
3044
  ])
3042
- ], 10, Rl)) : c("", !0)
3045
+ ], 10, Ri)) : c("", !0)
3043
3046
  ], 64)) : c("", !0)
3044
3047
  ], 64))
3045
3048
  ]),
3046
3049
  _: 3
3047
3050
  }, 16, ["valid", "wrap", "class"]);
3048
3051
  }
3049
- const xl = {
3052
+ const xi = {
3050
3053
  name: "w-input",
3051
3054
  mixins: [M],
3052
3055
  props: {
@@ -3096,7 +3099,7 @@ const xl = {
3096
3099
  return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
3097
3100
  },
3098
3101
  listeners() {
3099
- const { input: e, focus: t, blur: l, ...o } = this.$attrs;
3102
+ const { input: e, focus: t, blur: i, ...o } = this.$attrs;
3100
3103
  return o;
3101
3104
  },
3102
3105
  hasValue() {
@@ -3126,7 +3129,7 @@ const xl = {
3126
3129
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3127
3130
  },
3128
3131
  overallFilesProgress() {
3129
- const t = +this.inputFiles.reduce((l, o) => l + o.progress, 0) / this.inputFiles.length;
3132
+ const t = +this.inputFiles.reduce((i, o) => i + o.progress, 0) / this.inputFiles.length;
3130
3133
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
3131
3134
  },
3132
3135
  uploadInProgress() {
@@ -3179,30 +3182,30 @@ const xl = {
3179
3182
  this.isFocused = !1, this.$emit("blur", e);
3180
3183
  },
3181
3184
  onFileChange(e) {
3182
- this.inputFiles = [...e.target.files].map((l) => {
3183
- const [, o = "", n = "", i = ""] = l.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
3184
- name: l.name,
3185
- base: o || i,
3185
+ this.inputFiles = [...e.target.files].map((i) => {
3186
+ const [, o = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
3187
+ name: i.name,
3188
+ base: o || l,
3186
3189
  extension: n,
3187
- type: l.type,
3188
- size: l.size,
3189
- lastModified: l.lastModified,
3190
+ type: i.type,
3191
+ size: i.size,
3192
+ lastModified: i.lastModified,
3190
3193
  preview: null,
3191
3194
  progress: 0,
3192
- file: l
3195
+ file: i
3193
3196
  });
3194
- return this.readFile(l, a), a;
3197
+ return this.readFile(i, a), a;
3195
3198
  });
3196
3199
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3197
3200
  this.$emit("update:modelValue", t), this.$emit("input", t);
3198
3201
  },
3199
3202
  readFile(e, t) {
3200
- const l = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3201
- this.preview && !o && n ? l.addEventListener("load", (i) => {
3202
- t.preview = i.target.result;
3203
- }) : delete t.preview, l.addEventListener("progress", (i) => {
3204
- i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
3205
- }), l.readAsDataURL(e);
3203
+ const i = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3204
+ this.preview && !o && n ? i.addEventListener("load", (l) => {
3205
+ t.preview = l.target.result;
3206
+ }) : delete t.preview, i.addEventListener("progress", (l) => {
3207
+ l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
3208
+ }), i.readAsDataURL(e);
3206
3209
  }
3207
3210
  },
3208
3211
  mounted() {
@@ -3215,43 +3218,43 @@ const xl = {
3215
3218
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
3216
3219
  }
3217
3220
  }
3218
- }, Ol = /* @__PURE__ */ v(xl, [["render", Ll]]);
3219
- function Pl(e, t, l, o, n, i) {
3221
+ }, Oi = /* @__PURE__ */ v(xi, [["render", Li]]);
3222
+ function Pi(e, t, i, o, n, l) {
3220
3223
  const a = $("w-icon"), r = $("w-list", !0);
3221
3224
  return s(), u("ul", {
3222
- class: f(["w-list", i.classes])
3225
+ class: f(["w-list", l.classes])
3223
3226
  }, [
3224
3227
  (s(!0), u(k, null, L(e.listItems, (d, h) => (s(), u("li", {
3225
3228
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3226
3229
  key: h
3227
3230
  }, [
3228
- l.icon ? (s(), m(a, {
3231
+ i.icon ? (s(), g(a, {
3229
3232
  key: 0,
3230
3233
  class: "w-list__item-bullet"
3231
3234
  }, {
3232
- default: g(() => [
3233
- S(_(l.icon), 1)
3235
+ default: m(() => [
3236
+ S(_(i.icon), 1)
3234
3237
  ]),
3235
3238
  _: 1
3236
3239
  })) : c("", !0),
3237
- e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), m(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3240
+ e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), g(V(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
3238
3241
  key: 1,
3239
3242
  class: "w-list__item-label"
3240
- }, i.liLabelProps(d, h, d._selected)), {
3241
- default: g(() => [
3243
+ }, l.liLabelProps(d, h, d._selected)), {
3244
+ default: m(() => [
3242
3245
  e.$slots[`item.${h + 1}`] ? p(e.$slots, `item.${h + 1}`, {
3243
3246
  key: 0,
3244
- item: i.cleanLi(d),
3247
+ item: l.cleanLi(d),
3245
3248
  index: h + 1,
3246
3249
  selected: d._selected
3247
3250
  }) : e.$slots.item ? p(e.$slots, "item", {
3248
3251
  key: 1,
3249
- item: i.cleanLi(d),
3252
+ item: l.cleanLi(d),
3250
3253
  index: h + 1,
3251
3254
  selected: d._selected
3252
3255
  }) : p(e.$slots, "default", {
3253
3256
  key: 2,
3254
- item: i.cleanLi(d),
3257
+ item: l.cleanLi(d),
3255
3258
  index: h + 1,
3256
3259
  selected: d._selected
3257
3260
  }, () => [
@@ -3259,13 +3262,13 @@ function Pl(e, t, l, o, n, i) {
3259
3262
  ])
3260
3263
  ]),
3261
3264
  _: 2
3262
- }, 1040)) : (s(), m(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
3265
+ }, 1040)) : (s(), g(V(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
3263
3266
  key: 2,
3264
3267
  class: "w-list__item-label"
3265
- }, i.liLabelProps(d, h, d._selected)), null, 16)),
3266
- (d.children || []).length ? (s(), m(r, C({ key: 3 }, e.$props, {
3268
+ }, l.liLabelProps(d, h, d._selected)), null, 16)),
3269
+ (d.children || []).length ? (s(), g(r, C({ key: 3 }, e.$props, {
3267
3270
  items: d.children,
3268
- depth: l.depth + 1,
3271
+ depth: i.depth + 1,
3269
3272
  "onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
3270
3273
  onInput: t[1] || (t[1] = (y) => e.$emit("input", y)),
3271
3274
  onItemClick: t[2] || (t[2] = (y) => e.$emit("item-click", y)),
@@ -3273,9 +3276,9 @@ function Pl(e, t, l, o, n, i) {
3273
3276
  }), Z({ _: 2 }, [
3274
3277
  e.$slots.item ? {
3275
3278
  name: "item",
3276
- fn: g(({ item: y, index: B, selected: b }) => [
3279
+ fn: m(({ item: y, index: B, selected: b }) => [
3277
3280
  p(e.$slots, "item", {
3278
- item: i.cleanLi(y),
3281
+ item: l.cleanLi(y),
3279
3282
  index: B,
3280
3283
  selected: b
3281
3284
  })
@@ -3283,13 +3286,13 @@ function Pl(e, t, l, o, n, i) {
3283
3286
  key: "0"
3284
3287
  } : {
3285
3288
  name: "default",
3286
- fn: g(({ item: y, index: B, selected: b }) => [
3289
+ fn: m(({ item: y, index: B, selected: b }) => [
3287
3290
  p(e.$slots, "default", {
3288
- item: i.cleanLi(y),
3291
+ item: l.cleanLi(y),
3289
3292
  index: B,
3290
3293
  selected: b
3291
3294
  }, () => [
3292
- S(_(y[l.itemLabelKey]), 1)
3295
+ S(_(y[i.itemLabelKey]), 1)
3293
3296
  ])
3294
3297
  ]),
3295
3298
  key: "1"
@@ -3298,7 +3301,7 @@ function Pl(e, t, l, o, n, i) {
3298
3301
  ], 2))), 128))
3299
3302
  ], 2);
3300
3303
  }
3301
- const zl = {
3304
+ const zi = {
3302
3305
  name: "w-list",
3303
3306
  props: {
3304
3307
  items: { type: [Array, Number], required: !0 },
@@ -3367,7 +3370,7 @@ const zl = {
3367
3370
  return e && typeof e == "object" ? e[this.itemValueKey] !== void 0 ? e[this.itemValueKey] : e[this.itemLabelKey] !== void 0 ? e[this.itemLabelKey] : e.index : e;
3368
3371
  },
3369
3372
  selectItem(e, t) {
3370
- e._selected && !this.multiple && this.noUnselect || (e._selected = t !== void 0 ? t : !e._selected, e._selected && !this.isMultipleSelect && this.listItems.forEach((l) => l._index !== e._index && (l._selected = !1)), this.emitSelection());
3373
+ e._selected && !this.multiple && this.noUnselect || (e._selected = t !== void 0 ? t : !e._selected, e._selected && !this.isMultipleSelect && this.listItems.forEach((i) => i._index !== e._index && (i._selected = !1)), this.emitSelection());
3371
3374
  },
3372
3375
  liLabelClasses(e) {
3373
3376
  return {
@@ -3381,67 +3384,67 @@ const zl = {
3381
3384
  [e[this.itemClassKey] || this.itemClass]: e[this.itemClassKey] || this.itemClass
3382
3385
  };
3383
3386
  },
3384
- liLabelProps(e, t, l) {
3387
+ liLabelProps(e, t, i) {
3385
3388
  const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3386
3389
  if (!e.disabled) {
3387
3390
  const d = this.cleanLi(e);
3388
3391
  this.$emit("item-click", d), this.$emit("item-select", d);
3389
3392
  }
3390
- }, i = this.isSelectable && ((d) => {
3393
+ }, l = this.isSelectable && ((d) => {
3391
3394
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3392
3395
  }), a = this.isSelectable && ((d) => {
3393
3396
  !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));
3394
3397
  }), r = {
3395
3398
  class: this.liLabelClasses(e),
3396
3399
  tabindex: e.disabled || this.checklist ? null : "0",
3397
- "aria-selected": l ? "true" : "false",
3400
+ "aria-selected": i ? "true" : "false",
3398
3401
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3399
3402
  role: "option"
3400
3403
  };
3401
3404
  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) => {
3402
3405
  const h = d.target.querySelector('input[type="checkbox"]');
3403
3406
  h && (h.focus(), h.click()), n();
3404
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = i, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3407
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3405
3408
  d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3406
- }) : (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;
3409
+ }) : (r.href = e[this.itemRouteKey], r.onClick = n)), o || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), o || (r.innerHTML = e._label)), r;
3407
3410
  },
3408
3411
  checkSelection(e) {
3409
3412
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
3410
3413
  },
3411
3414
  emitSelection() {
3412
- const e = this.selectedItems.map((l) => {
3415
+ const e = this.selectedItems.map((i) => {
3413
3416
  if (!this.returnObject)
3414
- return l._value;
3415
- const { _value: o, _selected: n, ...i } = l;
3416
- return i;
3417
+ return i._value;
3418
+ const { _value: o, _selected: n, ...l } = i;
3419
+ return l;
3417
3420
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3418
3421
  this.$emit("update:modelValue", t), this.$emit("input", t);
3419
3422
  },
3420
3423
  focusPrevNextItem(e, t = !0) {
3421
3424
  e = this.enabledItemsIndexes[this.enabledItemsIndexes.indexOf(e) + (t ? 1 : -1)];
3422
- const l = t ? 0 : this.enabledItemsIndexes.length - 1;
3423
- e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3425
+ const i = t ? 0 : this.enabledItemsIndexes.length - 1;
3426
+ e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3424
3427
  },
3425
3428
  cleanLi(e) {
3426
- const { _index: t, _value: l, _label: o, _selected: n, _focused: i, ...a } = e;
3429
+ const { _index: t, _value: i, _label: o, _selected: n, _focused: l, ...a } = e;
3427
3430
  return a;
3428
3431
  },
3429
3432
  refreshListItems() {
3430
3433
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
3431
- this.listItems = e.map((t, l) => ({
3434
+ this.listItems = e.map((t, i) => ({
3432
3435
  ...t,
3433
- _index: l,
3434
- _value: t[this.itemValueKey] === void 0 ? t[this.itemLabelKey] || l : t[this.itemValueKey],
3436
+ _index: i,
3437
+ _value: t[this.itemValueKey] === void 0 ? t[this.itemLabelKey] || i : t[this.itemValueKey],
3435
3438
  _selected: t._selected || !1,
3436
3439
  _label: t[this.itemLabelKey] || "",
3437
3440
  _focused: !1
3438
3441
  }));
3439
3442
  },
3440
3443
  applySelectionOnItems(e) {
3441
- this.isMultipleSelect || this.listItems.forEach((l) => l._selected = !1);
3444
+ this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
3442
3445
  const t = this.checkSelection(e);
3443
- this.listItems.forEach((l) => {
3444
- l._selected = t.find((o) => l._value === o) !== void 0;
3446
+ this.listItems.forEach((i) => {
3447
+ i._selected = t.find((o) => i._value === o) !== void 0;
3445
3448
  });
3446
3449
  }
3447
3450
  },
@@ -3458,13 +3461,13 @@ const zl = {
3458
3461
  multiple(e) {
3459
3462
  if (!e) {
3460
3463
  let t = null;
3461
- this.listItems.forEach((l) => {
3462
- l._selected && !t ? t = l : l._selected && (l._selected = !1);
3464
+ this.listItems.forEach((i) => {
3465
+ i._selected && !t ? t = i : i._selected && (i._selected = !1);
3463
3466
  }), this.emitSelection();
3464
3467
  }
3465
3468
  }
3466
3469
  }
3467
- }, Ml = /* @__PURE__ */ v(zl, [["render", Pl]]), we = {
3470
+ }, Mi = /* @__PURE__ */ v(zi, [["render", Pi]]), we = {
3468
3471
  props: {
3469
3472
  appendTo: { type: [String, Boolean, Object] },
3470
3473
  fixed: { type: Boolean },
@@ -3498,10 +3501,10 @@ const zl = {
3498
3501
  return this.appendToTarget;
3499
3502
  },
3500
3503
  hasSeparateActivator() {
3501
- var l;
3504
+ var i;
3502
3505
  if (this.$slots.activator)
3503
3506
  return !1;
3504
- const e = typeof this.activator == "string", t = (((l = this.activator) == null ? void 0 : l.$el) || this.activator) instanceof HTMLElement;
3507
+ const e = typeof this.activator == "string", t = (((i = this.activator) == null ? void 0 : i.$el) || this.activator) instanceof HTMLElement;
3505
3508
  return e || t;
3506
3509
  },
3507
3510
  activatorEl: {
@@ -3533,31 +3536,31 @@ const zl = {
3533
3536
  }, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize));
3534
3537
  },
3535
3538
  getActivatorCoordinates() {
3536
- const { top: e, left: t, width: l, height: o } = this.activatorEl.getBoundingClientRect();
3537
- let n = { top: e, left: t, width: l, height: o };
3539
+ const { top: e, left: t, width: i, height: o } = this.activatorEl.getBoundingClientRect();
3540
+ let n = { top: e, left: t, width: i, height: o };
3538
3541
  if (!this.fixed) {
3539
- const { top: i, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3542
+ const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3540
3543
  n = {
3541
3544
  ...n,
3542
- top: e - i + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
3545
+ top: e - l + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
3543
3546
  left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
3544
3547
  };
3545
3548
  }
3546
3549
  return n;
3547
3550
  },
3548
3551
  computeDetachableCoords() {
3549
- let { top: e, left: t, width: l, height: o } = this.getActivatorCoordinates();
3552
+ let { top: e, left: t, width: i, height: o } = this.getActivatorCoordinates();
3550
3553
  if (!this.detachableEl)
3551
3554
  return;
3552
3555
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
3553
3556
  const n = window.getComputedStyle(this.detachableEl, null);
3554
3557
  switch (this.position) {
3555
3558
  case "top": {
3556
- 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);
3559
+ e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
3557
3560
  break;
3558
3561
  }
3559
3562
  case "bottom": {
3560
- e += o, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
3563
+ e += o, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
3561
3564
  break;
3562
3565
  }
3563
3566
  case "left": {
@@ -3565,7 +3568,7 @@ const zl = {
3565
3568
  break;
3566
3569
  }
3567
3570
  case "right": {
3568
- 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")));
3571
+ t += i, 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")));
3569
3572
  break;
3570
3573
  }
3571
3574
  }
@@ -3590,11 +3593,11 @@ const zl = {
3590
3593
  },
3591
3594
  bindActivatorEvents() {
3592
3595
  const e = typeof this.activator == "string";
3593
- Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
3596
+ Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
3594
3597
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3595
3598
  const o = (n) => {
3596
- var i;
3597
- (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);
3599
+ var l;
3600
+ (e && ((l = n.target) == null ? void 0 : l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
3598
3601
  };
3599
3602
  document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
3600
3603
  });
@@ -3620,58 +3623,58 @@ const zl = {
3620
3623
  }
3621
3624
  }
3622
3625
  };
3623
- function El(e, t, l, o, n, i) {
3626
+ function Ei(e, t, i, o, n, l) {
3624
3627
  const a = $("w-card"), r = $("w-overlay");
3625
3628
  return s(), u(k, null, [
3626
- p(e.$slots, "activator", { on: i.activatorEventHandlers }),
3629
+ p(e.$slots, "activator", { on: l.activatorEventHandlers }),
3627
3630
  I(O, {
3628
- name: i.transitionName,
3631
+ name: l.transitionName,
3629
3632
  appear: ""
3630
3633
  }, {
3631
- default: g(() => [
3632
- l.custom && e.detachableVisible ? (s(), u("div", C({
3634
+ default: m(() => [
3635
+ i.custom && e.detachableVisible ? (s(), u("div", C({
3633
3636
  key: 0,
3634
3637
  class: "w-menu",
3635
3638
  ref: "detachable"
3636
3639
  }, e.$attrs, {
3637
- onClick: t[0] || (t[0] = (d) => l.hideOnMenuClick && i.close(!0)),
3638
- onMouseenter: t[1] || (t[1] = (d) => l.showOnHover && (e.hoveringMenu = !0)),
3639
- onMouseleave: t[2] || (t[2] = (d) => l.showOnHover && (e.hoveringMenu = !1, i.close())),
3640
- class: i.classes,
3641
- style: i.styles
3640
+ onClick: t[0] || (t[0] = (d) => i.hideOnMenuClick && l.close(!0)),
3641
+ onMouseenter: t[1] || (t[1] = (d) => i.showOnHover && (e.hoveringMenu = !0)),
3642
+ onMouseleave: t[2] || (t[2] = (d) => i.showOnHover && (e.hoveringMenu = !1, l.close())),
3643
+ class: l.classes,
3644
+ style: l.styles
3642
3645
  }), [
3643
3646
  p(e.$slots, "default")
3644
- ], 16)) : e.detachableVisible ? (s(), m(a, C({
3647
+ ], 16)) : e.detachableVisible ? (s(), g(a, C({
3645
3648
  key: 1,
3646
3649
  class: "w-menu",
3647
3650
  ref: "detachable"
3648
3651
  }, e.$attrs, {
3649
- onClick: t[3] || (t[3] = (d) => l.hideOnMenuClick && i.close(!0)),
3650
- onMouseenter: t[4] || (t[4] = (d) => l.showOnHover && (e.hoveringMenu = !0)),
3651
- onMouseleave: t[5] || (t[5] = (d) => l.showOnHover && (e.hoveringMenu = !1, i.close())),
3652
- tile: l.tile,
3653
- "title-class": i.titleClasses,
3654
- "content-class": i.contentClasses,
3655
- shadow: l.shadow,
3656
- "no-border": l.noBorder,
3657
- class: i.classes,
3658
- style: i.styles
3652
+ onClick: t[3] || (t[3] = (d) => i.hideOnMenuClick && l.close(!0)),
3653
+ onMouseenter: t[4] || (t[4] = (d) => i.showOnHover && (e.hoveringMenu = !0)),
3654
+ onMouseleave: t[5] || (t[5] = (d) => i.showOnHover && (e.hoveringMenu = !1, l.close())),
3655
+ tile: i.tile,
3656
+ "title-class": l.titleClasses,
3657
+ "content-class": l.contentClasses,
3658
+ shadow: i.shadow,
3659
+ "no-border": i.noBorder,
3660
+ class: l.classes,
3661
+ style: l.styles
3659
3662
  }), Z({
3660
- default: g(() => [
3663
+ default: m(() => [
3661
3664
  p(e.$slots, "default")
3662
3665
  ]),
3663
3666
  _: 2
3664
3667
  }, [
3665
3668
  e.$slots.title ? {
3666
3669
  name: "title",
3667
- fn: g(() => [
3670
+ fn: m(() => [
3668
3671
  p(e.$slots, "title")
3669
3672
  ]),
3670
3673
  key: "0"
3671
3674
  } : void 0,
3672
3675
  e.$slots.actions ? {
3673
3676
  name: "actions",
3674
- fn: g(() => [
3677
+ fn: m(() => [
3675
3678
  p(e.$slots, "actions")
3676
3679
  ]),
3677
3680
  key: "1"
@@ -3680,19 +3683,19 @@ function El(e, t, l, o, n, i) {
3680
3683
  ]),
3681
3684
  _: 3
3682
3685
  }, 8, ["name"]),
3683
- l.overlay ? (s(), m(r, C({
3686
+ i.overlay ? (s(), g(r, C({
3684
3687
  key: 0,
3685
3688
  ref: "overlay",
3686
3689
  "model-value": e.detachableVisible,
3687
- persistent: l.persistent,
3688
- class: i.overlayClasses
3689
- }, l.overlayProps, {
3690
+ persistent: i.persistent,
3691
+ class: l.overlayClasses
3692
+ }, i.overlayProps, {
3690
3693
  "z-index": (e.zIndex || 200) - 1,
3691
3694
  "onUpdate:modelValue": t[6] || (t[6] = (d) => e.detachableVisible = !1)
3692
3695
  }), null, 16, ["model-value", "persistent", "class", "z-index"])) : c("", !0)
3693
3696
  ], 64);
3694
3697
  }
3695
- const Wl = {
3698
+ const Wi = {
3696
3699
  name: "w-menu",
3697
3700
  mixins: [we],
3698
3701
  inheritAttrs: !1,
@@ -3713,6 +3716,7 @@ const Wl = {
3713
3716
  contentClass: { type: [String, Object, Array] },
3714
3717
  arrow: { type: Boolean },
3715
3718
  minWidth: { type: [Number, String] },
3719
+ maxWidth: { type: [Number, String] },
3716
3720
  overlay: { type: Boolean },
3717
3721
  overlayClass: { type: [String, Object, Array] },
3718
3722
  overlayProps: { type: Object },
@@ -3749,6 +3753,9 @@ const Wl = {
3749
3753
  menuMinWidth() {
3750
3754
  return this.minWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.minWidth) ? this.minWidth : this.minWidth ? `${this.minWidth}px` : 0;
3751
3755
  },
3756
+ menuMaxWidth() {
3757
+ return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
3758
+ },
3752
3759
  menuClasses() {
3753
3760
  return A(this.menuClass);
3754
3761
  },
@@ -3787,6 +3794,7 @@ const Wl = {
3787
3794
  top: this.detachableCoords.top && `${~~this.detachableCoords.top}px` || null,
3788
3795
  left: this.detachableCoords.left && `${~~this.detachableCoords.left}px` || null,
3789
3796
  minWidth: this.minWidth && this.menuMinWidth || null,
3797
+ maxWidth: this.maxWidth && this.menuMaxWidth || null,
3790
3798
  "--w-menu-bg-color": this.arrow && (this.$waveui.colors[this.bgColor] || "rgb(var(--w-base-bg-color-rgb))")
3791
3799
  };
3792
3800
  },
@@ -3815,26 +3823,26 @@ const Wl = {
3815
3823
  this.openTimeout = clearTimeout(this.openTimeout), this.detachableVisible && (this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize)));
3816
3824
  }
3817
3825
  }
3818
- }, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
3819
- function Nl(e, t, l, o, n, i) {
3826
+ }, Ai = /* @__PURE__ */ v(Wi, [["render", Ei]]);
3827
+ function Ni(e, t, i, o, n, l) {
3820
3828
  const a = $("w-alert");
3821
- return s(), m(O, {
3822
- name: i.transitionName,
3829
+ return s(), g(O, {
3830
+ name: l.transitionName,
3823
3831
  appear: ""
3824
3832
  }, {
3825
- default: g(() => [
3833
+ default: m(() => [
3826
3834
  n.show ? (s(), u("div", {
3827
3835
  key: 0,
3828
- class: f(["w-notification", i.classes]),
3829
- style: R(i.styles)
3836
+ class: f(["w-notification", l.classes]),
3837
+ style: R(l.styles)
3830
3838
  }, [
3831
- I(a, C(i.alertProps, {
3832
- class: i.alertClasses,
3839
+ I(a, C(l.alertProps, {
3840
+ class: l.alertClasses,
3833
3841
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
3834
3842
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
3835
3843
  })
3836
3844
  }), {
3837
- default: g(() => [
3845
+ default: m(() => [
3838
3846
  p(e.$slots, "default")
3839
3847
  ]),
3840
3848
  _: 3
@@ -3844,7 +3852,7 @@ function Nl(e, t, l, o, n, i) {
3844
3852
  _: 3
3845
3853
  }, 8, ["name"]);
3846
3854
  }
3847
- const Kl = {
3855
+ const Ki = {
3848
3856
  name: "w-notification",
3849
3857
  props: {
3850
3858
  modelValue: { default: !0 },
@@ -3964,22 +3972,22 @@ const Kl = {
3964
3972
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
3965
3973
  }
3966
3974
  }
3967
- }, Hl = /* @__PURE__ */ v(Kl, [["render", Nl]]);
3968
- function Dl(e, t, l, o, n, i) {
3969
- const a = me("focus");
3970
- return s(), m(O, {
3975
+ }, Hi = /* @__PURE__ */ v(Ki, [["render", Ni]]);
3976
+ function Di(e, t, i, o, n, l) {
3977
+ const a = ge("focus");
3978
+ return s(), g(O, {
3971
3979
  name: "fade",
3972
3980
  appear: "",
3973
- onAfterLeave: i.onClose
3981
+ onAfterLeave: l.onClose
3974
3982
  }, {
3975
- default: g(() => [
3976
- l.modelValue ? N((s(), u("div", {
3983
+ default: m(() => [
3984
+ i.modelValue ? N((s(), u("div", {
3977
3985
  key: 0,
3978
- class: f(["w-overlay", i.classes]),
3986
+ class: f(["w-overlay", l.classes]),
3979
3987
  ref: "overlay",
3980
- style: R(l.modelValue && i.styles || null),
3981
- onKeydown: t[0] || (t[0] = W(E((...r) => i.onClick && i.onClick(...r), ["stop"]), ["escape"])),
3982
- onClick: t[1] || (t[1] = (...r) => i.onClick && i.onClick(...r)),
3988
+ style: R(i.modelValue && l.styles || null),
3989
+ onKeydown: t[0] || (t[0] = W(E((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
3990
+ onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
3983
3991
  tabindex: "0"
3984
3992
  }, [
3985
3993
  p(e.$slots, "default")
@@ -3991,7 +3999,7 @@ function Dl(e, t, l, o, n, i) {
3991
3999
  _: 3
3992
4000
  }, 8, ["onAfterLeave"]);
3993
4001
  }
3994
- const Fl = {
4002
+ const Fi = {
3995
4003
  name: "w-overlay",
3996
4004
  props: {
3997
4005
  modelValue: {},
@@ -4045,62 +4053,62 @@ const Fl = {
4045
4053
  e && (this.showOverlay = !0);
4046
4054
  }
4047
4055
  }
4048
- }, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = { class: "w-parallax" };
4049
- function ql(e, t, l, o, n, i) {
4050
- return s(), u("div", Ul);
4056
+ }, ji = /* @__PURE__ */ v(Fi, [["render", Di]]), Ui = { class: "w-parallax" };
4057
+ function qi(e, t, i, o, n, l) {
4058
+ return s(), u("div", Ui);
4051
4059
  }
4052
- const Xl = {
4060
+ const Xi = {
4053
4061
  name: "w-parallax",
4054
4062
  props: {},
4055
4063
  emits: [],
4056
4064
  data: () => ({})
4057
- }, 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"];
4058
- function Zl(e, t, l, o, n, i) {
4065
+ }, Yi = /* @__PURE__ */ v(Xi, [["render", qi]]), Gi = ["viewBox"], Ji = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Qi = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4066
+ function Zi(e, t, i, o, n, l) {
4059
4067
  return s(), u("div", {
4060
- class: f(["w-progress", i.classes]),
4061
- style: R(i.styles)
4068
+ class: f(["w-progress", l.classes]),
4069
+ style: R(l.styles)
4062
4070
  }, [
4063
- l.circle ? (s(), u("svg", {
4071
+ i.circle ? (s(), u("svg", {
4064
4072
  key: 1,
4065
- viewBox: `${i.circleCenter / 2} ${i.circleCenter / 2} ${i.circleCenter} ${i.circleCenter}`
4073
+ viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
4066
4074
  }, [
4067
- l.bgColor || this.progressValue > -1 ? (s(), u("circle", {
4075
+ i.bgColor || this.progressValue > -1 ? (s(), u("circle", {
4068
4076
  key: 0,
4069
- class: f(["bg", l.bgColor || null]),
4070
- cx: i.circleCenter,
4071
- cy: i.circleCenter,
4077
+ class: f(["bg", i.bgColor || null]),
4078
+ cx: l.circleCenter,
4079
+ cy: l.circleCenter,
4072
4080
  r: e.circleRadius,
4073
4081
  fill: "transparent",
4074
4082
  "stroke-dasharray": e.circleCircumference,
4075
- "stroke-width": l.stroke
4076
- }, null, 10, Jl)) : c("", !0),
4083
+ "stroke-width": i.stroke
4084
+ }, null, 10, Ji)) : c("", !0),
4077
4085
  w("circle", {
4078
4086
  class: "w-progress__progress",
4079
- cx: i.circleCenter,
4080
- cy: i.circleCenter,
4087
+ cx: l.circleCenter,
4088
+ cy: l.circleCenter,
4081
4089
  r: e.circleRadius,
4082
4090
  fill: "transparent",
4083
- "stroke-width": l.stroke,
4084
- "stroke-linecap": l.roundCap && "round",
4091
+ "stroke-width": i.stroke,
4092
+ "stroke-linecap": i.roundCap && "round",
4085
4093
  "stroke-dasharray": e.circleCircumference,
4086
- style: R(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
4087
- }, null, 12, Ql)
4088
- ], 8, Gl)) : (s(), u("div", {
4094
+ style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4095
+ }, null, 12, Qi)
4096
+ ], 8, Gi)) : (s(), u("div", {
4089
4097
  key: 0,
4090
- class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
4091
- style: R(`width: ${i.progressValue}%`)
4098
+ class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
4099
+ style: R(`width: ${l.progressValue}%`)
4092
4100
  }, null, 6)),
4093
- l.label || e.$slots.default ? (s(), u("div", {
4101
+ i.label || e.$slots.default ? (s(), u("div", {
4094
4102
  key: 2,
4095
- class: f(["w-progress__label", l.labelColor || !1])
4103
+ class: f(["w-progress__label", i.labelColor || !1])
4096
4104
  }, [
4097
4105
  p(e.$slots, "default", {}, () => [
4098
- S(_(Math.round(i.progressValue)) + _(l.circle ? "" : "%"), 1)
4106
+ S(_(Math.round(l.progressValue)) + _(i.circle ? "" : "%"), 1)
4099
4107
  ])
4100
4108
  ], 2)) : c("", !0)
4101
4109
  ], 6);
4102
4110
  }
4103
- const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4111
+ const J = 40, el = J / 2, tl = Math.round(J * 3.14 * 100) / 100, il = {
4104
4112
  name: "w-progress",
4105
4113
  props: {
4106
4114
  modelValue: { type: [Number, String, Boolean], default: -1 },
@@ -4126,8 +4134,8 @@ const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4126
4134
  emits: [],
4127
4135
  data: () => ({
4128
4136
  circleSize: J,
4129
- circleRadius: ei,
4130
- circleCircumference: ti
4137
+ circleRadius: el,
4138
+ circleCircumference: tl
4131
4139
  }),
4132
4140
  computed: {
4133
4141
  progressValue() {
@@ -4166,17 +4174,17 @@ const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4166
4174
  };
4167
4175
  }
4168
4176
  }
4169
- }, 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"];
4170
- function di(e, t, l, o, n, i) {
4171
- 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 }, {
4177
+ }, ll = /* @__PURE__ */ v(il, [["render", Zi]]), sl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], al = ["for"], ol = ["for", "innerHTML"], nl = ["for"], rl = ["for", "innerHTML"];
4178
+ function dl(e, t, i, o, n, l) {
4179
+ return s(), g(V(e.formRegister && !l.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4172
4180
  valid: e.valid,
4173
4181
  "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4174
4182
  onReset: t[4] || (t[4] = (a) => {
4175
4183
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4176
4184
  }),
4177
- class: i.classes
4185
+ class: l.classes
4178
4186
  }), {
4179
- default: g(() => [
4187
+ default: m(() => [
4180
4188
  w("input", {
4181
4189
  ref: "input",
4182
4190
  id: `w-radio--${e._.uid}`,
@@ -4187,25 +4195,25 @@ function di(e, t, l, o, n, i) {
4187
4195
  required: e.required || null,
4188
4196
  tabindex: e.tabindex || null,
4189
4197
  onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4190
- onChange: t[1] || (t[1] = (a) => i.onInput(a)),
4198
+ onChange: t[1] || (t[1] = (a) => l.onInput(a)),
4191
4199
  "aria-checked": e.inputValue || "false",
4192
4200
  role: "radio"
4193
- }, null, 40, si),
4194
- i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
4201
+ }, null, 40, sl),
4202
+ l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
4195
4203
  e.$slots.default ? (s(), u("label", {
4196
4204
  key: 0,
4197
4205
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4198
4206
  for: `w-radio--${e._.uid}`
4199
4207
  }, [
4200
4208
  p(e.$slots, "default", {}, () => [
4201
- S(_(l.label), 1)
4209
+ S(_(i.label), 1)
4202
4210
  ])
4203
- ], 10, ai)) : l.label ? (s(), u("label", {
4211
+ ], 10, al)) : i.label ? (s(), u("label", {
4204
4212
  key: 1,
4205
4213
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4206
4214
  for: `w-radio--${e._.uid}`,
4207
- innerHTML: l.label
4208
- }, null, 10, oi)) : c("", !0)
4215
+ innerHTML: i.label
4216
+ }, null, 10, ol)) : c("", !0)
4209
4217
  ], 64)) : c("", !0),
4210
4218
  w("div", {
4211
4219
  class: f(["w-radio__input", this.color]),
@@ -4213,27 +4221,27 @@ function di(e, t, l, o, n, i) {
4213
4221
  e.$refs.input.focus(), e.$refs.input.click();
4214
4222
  })
4215
4223
  }, null, 2),
4216
- i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
4224
+ l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
4217
4225
  e.$slots.default ? (s(), u("label", {
4218
4226
  key: 0,
4219
4227
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4220
4228
  for: `w-radio--${e._.uid}`
4221
4229
  }, [
4222
4230
  p(e.$slots, "default", {}, () => [
4223
- S(_(l.label), 1)
4231
+ S(_(i.label), 1)
4224
4232
  ])
4225
- ], 10, ni)) : l.label ? (s(), u("label", {
4233
+ ], 10, nl)) : i.label ? (s(), u("label", {
4226
4234
  key: 1,
4227
4235
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4228
4236
  for: `w-radio--${e._.uid}`,
4229
- innerHTML: l.label
4230
- }, null, 10, ri)) : c("", !0)
4237
+ innerHTML: i.label
4238
+ }, null, 10, rl)) : c("", !0)
4231
4239
  ], 64)) : c("", !0)
4232
4240
  ]),
4233
4241
  _: 3
4234
4242
  }, 16, ["valid", "class"]);
4235
4243
  }
4236
- const ui = {
4244
+ const ul = {
4237
4245
  name: "w-radio",
4238
4246
  mixins: [M],
4239
4247
  inject: { wRadios: { default: null } },
@@ -4293,42 +4301,42 @@ const ui = {
4293
4301
  this.toggleFromOutside();
4294
4302
  }
4295
4303
  }
4296
- }, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
4297
- function pi(e, t, l, o, n, i) {
4304
+ }, hl = /* @__PURE__ */ v(ul, [["render", dl]]), cl = ["innerHTML"];
4305
+ function pl(e, t, i, o, n, l) {
4298
4306
  const a = $("w-radio");
4299
- return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4307
+ return s(), g(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4300
4308
  valid: e.valid,
4301
4309
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4302
4310
  onReset: t[2] || (t[2] = (r) => {
4303
4311
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4304
4312
  }),
4305
- column: !l.inline,
4306
- wrap: l.inline,
4307
- class: i.classes
4313
+ column: !i.inline,
4314
+ wrap: i.inline,
4315
+ class: l.classes
4308
4316
  }), {
4309
- default: g(() => [
4310
- (s(!0), u(k, null, L(i.radioItems, (r, d) => (s(), m(a, C({
4317
+ default: m(() => [
4318
+ (s(!0), u(k, null, L(l.radioItems, (r, d) => (s(), g(a, C({
4311
4319
  key: d,
4312
- "model-value": r.value === l.modelValue,
4313
- "onUpdate:modelValue": (h) => i.onInput(r),
4320
+ "model-value": r.value === i.modelValue,
4321
+ "onUpdate:modelValue": (h) => l.onInput(r),
4314
4322
  onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
4315
4323
  name: e.inputName
4316
- }, { label: r.label, color: r.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
4324
+ }, { label: r.label, color: r.color, labelOnLeft: i.labelOnLeft, labelColor: i.labelColor }, {
4317
4325
  disabled: e.isDisabled || null,
4318
4326
  readonly: e.isReadonly || null,
4319
- class: { mt1: !l.inline && d }
4327
+ class: { mt1: !i.inline && d }
4320
4328
  }), {
4321
- default: g(() => [
4329
+ default: m(() => [
4322
4330
  e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4323
4331
  key: 0,
4324
- item: i.getOriginalItem(r),
4332
+ item: l.getOriginalItem(r),
4325
4333
  index: d + 1,
4326
- checked: r.value === l.modelValue,
4334
+ checked: r.value === i.modelValue,
4327
4335
  innerHTML: r.label
4328
4336
  }) : r.label ? (s(), u("div", {
4329
4337
  key: 1,
4330
4338
  innerHTML: r.label
4331
- }, null, 8, ci)) : c("", !0)
4339
+ }, null, 8, cl)) : c("", !0)
4332
4340
  ]),
4333
4341
  _: 2
4334
4342
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -4336,7 +4344,7 @@ function pi(e, t, l, o, n, i) {
4336
4344
  _: 3
4337
4345
  }, 16, ["valid", "column", "wrap", "class"]);
4338
4346
  }
4339
- const fi = {
4347
+ const fl = {
4340
4348
  name: "w-radios",
4341
4349
  mixins: [M],
4342
4350
  props: {
@@ -4382,54 +4390,54 @@ const fi = {
4382
4390
  return this.items[e._index];
4383
4391
  }
4384
4392
  }
4385
- }, gi = /* @__PURE__ */ v(fi, [["render", pi]]), mi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
4386
- function yi(e, t, l, o, n, i) {
4387
- 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 }, {
4393
+ }, ml = /* @__PURE__ */ v(fl, [["render", pl]]), gl = ["id", "name", "value"], bl = ["disabled", "onMouseenter", "onClick", "tabindex"];
4394
+ function yl(e, t, i, o, n, l) {
4395
+ return s(), g(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4388
4396
  valid: e.valid,
4389
4397
  "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4390
4398
  onReset: t[5] || (t[5] = (a) => {
4391
4399
  e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
4392
4400
  }),
4393
- class: i.classes
4401
+ class: l.classes
4394
4402
  }), {
4395
- default: g(() => [
4403
+ default: m(() => [
4396
4404
  w("input", {
4397
4405
  id: e.inputName,
4398
4406
  name: e.inputName,
4399
4407
  type: "hidden",
4400
4408
  value: n.rating
4401
- }, null, 8, mi),
4402
- (s(!0), u(k, null, L(l.max, (a) => (s(), u(k, { key: a }, [
4409
+ }, null, 8, gl),
4410
+ (s(!0), u(k, null, L(i.max, (a) => (s(), u(k, { key: a }, [
4403
4411
  e.$slots.item ? p(e.$slots, "item", {
4404
4412
  key: 0,
4405
4413
  index: a + 1
4406
4414
  }) : c("", !0),
4407
4415
  w("button", {
4408
- class: f(["w-rating__button", i.buttonClasses(a)]),
4416
+ class: f(["w-rating__button", l.buttonClasses(a)]),
4409
4417
  disabled: e.isDisabled || e.isReadonly,
4410
4418
  onMouseenter: (r) => n.hover = a,
4411
4419
  onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
4412
- onClick: (r) => i.onButtonClick(a),
4413
- onFocus: t[1] || (t[1] = (...r) => i.onFocus && i.onFocus(...r)),
4414
- onBlur: t[2] || (t[2] = (...r) => i.onBlur && i.onBlur(...r)),
4415
- onKeydown: t[3] || (t[3] = (...r) => i.onKeydown && i.onKeydown(...r)),
4420
+ onClick: (r) => l.onButtonClick(a),
4421
+ onFocus: t[1] || (t[1] = (...r) => l.onFocus && l.onFocus(...r)),
4422
+ onBlur: t[2] || (t[2] = (...r) => l.onBlur && l.onBlur(...r)),
4423
+ onKeydown: t[3] || (t[3] = (...r) => l.onKeydown && l.onKeydown(...r)),
4416
4424
  type: "button",
4417
4425
  tabindex: a === 1 ? 0 : -1
4418
4426
  }, [
4419
4427
  a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4420
4428
  key: 0,
4421
- class: f(["w-icon", `${l.icon} ${l.color}`]),
4429
+ class: f(["w-icon", `${i.icon} ${i.color}`]),
4422
4430
  role: "icon",
4423
4431
  "aria-hidden": "true",
4424
- style: R(i.halfStarStyle)
4432
+ style: R(l.halfStarStyle)
4425
4433
  }, null, 6)) : c("", !0)
4426
- ], 42, bi)
4434
+ ], 42, bl)
4427
4435
  ], 64))), 128))
4428
4436
  ]),
4429
4437
  _: 3
4430
4438
  }, 16, ["valid", "class"]);
4431
4439
  }
4432
- const wi = {
4440
+ const wl = {
4433
4441
  name: "w-rating",
4434
4442
  mixins: [M],
4435
4443
  props: {
@@ -4503,14 +4511,14 @@ const wi = {
4503
4511
  }
4504
4512
  },
4505
4513
  buttonClasses(e) {
4506
- const t = e - 1 === ~~this.rating && this.rating - ~~this.rating, l = this.hover >= e || !t && this.hover === 0 && this.rating >= e;
4514
+ const t = e - 1 === ~~this.rating && this.rating - ~~this.rating, i = this.hover >= e || !t && this.hover === 0 && this.rating >= e;
4507
4515
  return {
4508
- "w-rating__button--on": l,
4516
+ "w-rating__button--on": i,
4509
4517
  "w-rating__button--half": t,
4510
4518
  [this.icon]: !0,
4511
4519
  [`size--${this.size}`]: !0,
4512
- [this.color]: l,
4513
- [this.bgColor]: this.bgColor && !l
4520
+ [this.color]: i,
4521
+ [this.bgColor]: this.bgColor && !i
4514
4522
  };
4515
4523
  }
4516
4524
  },
@@ -4519,32 +4527,32 @@ const wi = {
4519
4527
  this.rating = parseFloat(e);
4520
4528
  }
4521
4529
  }
4522
- }, vi = /* @__PURE__ */ v(wi, [["render", yi]]);
4523
- function ki(e, t, l, o, n, i) {
4530
+ }, vl = /* @__PURE__ */ v(wl, [["render", yl]]);
4531
+ function kl(e, t, i, o, n, l) {
4524
4532
  return s(), u(k, null, [
4525
4533
  w("div", C({
4526
- class: ["w-scrollable", i.scrollableClasses],
4534
+ class: ["w-scrollable", l.scrollableClasses],
4527
4535
  ref: "scrollable",
4528
- onMouseenter: t[0] || (t[0] = (...a) => i.onMouseEnter && i.onMouseEnter(...a)),
4529
- onMouseleave: t[1] || (t[1] = (...a) => i.onMouseLeave && i.onMouseLeave(...a)),
4530
- onMousewheel: t[2] || (t[2] = (...a) => i.onMouseWheel && i.onMouseWheel(...a))
4531
- }, e.$attrs, { style: i.scrollableStyles }), [
4536
+ onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
4537
+ onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
4538
+ onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
4539
+ }, e.$attrs, { style: l.scrollableStyles }), [
4532
4540
  p(e.$slots, "default")
4533
4541
  ], 16),
4534
4542
  w("div", {
4535
- class: f(["w-scrollbar", i.scrollbarClasses]),
4543
+ class: f(["w-scrollbar", l.scrollbarClasses]),
4536
4544
  ref: "track",
4537
- onMousedown: t[3] || (t[3] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a))
4545
+ onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
4538
4546
  }, [
4539
4547
  w("div", {
4540
4548
  class: "w-scrollbar__thumb",
4541
4549
  ref: "thumb",
4542
- style: R(i.thumbStyles)
4550
+ style: R(l.thumbStyles)
4543
4551
  }, null, 4)
4544
4552
  ], 34)
4545
4553
  ], 64);
4546
4554
  }
4547
- const _i = {
4555
+ const _l = {
4548
4556
  h: {
4549
4557
  horizOrVert: "horizontal",
4550
4558
  topOrLeft: "left",
@@ -4567,7 +4575,7 @@ const _i = {
4567
4575
  deltaXorY: "deltaY",
4568
4576
  scrollTopOrLeft: "scrollTop"
4569
4577
  }
4570
- }, Ci = {
4578
+ }, Cl = {
4571
4579
  name: "w-scrollable",
4572
4580
  props: {
4573
4581
  color: { type: String, default: "primary" },
@@ -4587,11 +4595,11 @@ const _i = {
4587
4595
  }),
4588
4596
  computed: {
4589
4597
  isHorizontal() {
4590
- var e, t, l, o;
4591
- 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;
4598
+ var e, t, i, o;
4599
+ 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 || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((o = this.$refs.scrollable) == null ? void 0 : o.offsetWidth)) : !1;
4592
4600
  },
4593
4601
  m() {
4594
- return _i[this.isHorizontal ? "h" : "v"];
4602
+ return _l[this.isHorizontal ? "h" : "v"];
4595
4603
  },
4596
4604
  scrollableClasses() {
4597
4605
  return {
@@ -4604,8 +4612,8 @@ const _i = {
4604
4612
  };
4605
4613
  },
4606
4614
  thumbSizePercent() {
4607
- var t, l;
4608
- return this.mounted ? (console.log("\u{1F612}", this[this.m.widthOrHeight], this.$refs.scrollable[[this.m.offsetWidthOrHeight]]), ((t = this[this.m.widthOrHeight]) != null ? t : this.$refs.scrollable[[this.m.offsetWidthOrHeight]]) * 100 / ((l = this.$refs.scrollable) == null ? void 0 : l[this.m.scrollWidthOrHeight]) || 0) : 0;
4615
+ var t, i;
4616
+ return this.mounted ? (console.log("\u{1F612}", this[this.m.widthOrHeight], this.$refs.scrollable[[this.m.offsetWidthOrHeight]]), ((t = this[this.m.widthOrHeight]) != null ? t : this.$refs.scrollable[[this.m.offsetWidthOrHeight]]) * 100 / ((i = this.$refs.scrollable) == null ? void 0 : i[this.m.scrollWidthOrHeight]) || 0) : 0;
4609
4617
  },
4610
4618
  scrollableStyles() {
4611
4619
  return {
@@ -4624,8 +4632,8 @@ const _i = {
4624
4632
  onTrackMouseDown(e) {
4625
4633
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
4626
4634
  return;
4627
- const { top: t, left: l, width: o, height: n } = this.$refs.track.getBoundingClientRect();
4628
- 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 });
4635
+ const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
4636
+ this.isHorizontal ? (this.$refs.track.width = o, this.$refs.track.left = i) : (this.$refs.track.height = n, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
4629
4637
  },
4630
4638
  onDrag(e) {
4631
4639
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -4643,8 +4651,8 @@ const _i = {
4643
4651
  !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());
4644
4652
  },
4645
4653
  computeScroll(e) {
4646
- const { top: t, left: l, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), i = this.isHorizontal ? l : t, a = this.isHorizontal ? o : n;
4647
- this.scrollValuePercent = Math.max(0, Math.min((e - i) / a * 100, 100));
4654
+ const { top: t, left: i, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? o : n;
4655
+ this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
4648
4656
  },
4649
4657
  scroll() {
4650
4658
  var e;
@@ -4659,149 +4667,149 @@ const _i = {
4659
4667
  const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
4660
4668
  this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style[this.m.maxWidthOrHeight] = `${this[this.m.widthOrHeight]}px`;
4661
4669
  }
4662
- }, Si = /* @__PURE__ */ v(Ci, [["render", ki]]), Bi = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
4670
+ }, Sl = /* @__PURE__ */ v(Cl, [["render", kl]]), Bl = ["for"], $l = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vl = {
4663
4671
  key: 1,
4664
4672
  class: "w-select__selection-slot"
4665
- }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ti = ["value", "name"], Ri = ["for"], Li = ["for"];
4666
- function xi(e, t, l, o, n, i) {
4673
+ }, Il = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Tl = ["value", "name"], Rl = ["for"], Ll = ["for"];
4674
+ function xl(e, t, i, o, n, l) {
4667
4675
  const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
4668
- 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 }, {
4676
+ return s(), g(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
4669
4677
  valid: e.valid,
4670
4678
  "onUpdate:valid": t[10] || (t[10] = (h) => e.valid = h),
4671
- onReset: i.onReset,
4672
- wrap: i.hasLabel && l.labelPosition !== "inside",
4673
- class: i.classes
4679
+ onReset: l.onReset,
4680
+ wrap: l.hasLabel && i.labelPosition !== "inside",
4681
+ class: l.classes
4674
4682
  }), {
4675
- default: g(() => [
4676
- l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
4677
- e.$slots.default || l.label ? (s(), u("label", {
4683
+ default: m(() => [
4684
+ i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
4685
+ e.$slots.default || i.label ? (s(), u("label", {
4678
4686
  key: 0,
4679
4687
  class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
4680
4688
  for: `w-select--${e._.uid}`
4681
4689
  }, [
4682
4690
  p(e.$slots, "default", {}, () => [
4683
- S(_(l.label), 1)
4691
+ S(_(i.label), 1)
4684
4692
  ])
4685
- ], 10, Bi)) : c("", !0)
4693
+ ], 10, Bl)) : c("", !0)
4686
4694
  ], 64)) : c("", !0),
4687
4695
  I(d, C({
4688
4696
  modelValue: e.showMenu,
4689
4697
  "onUpdate:modelValue": t[9] || (t[9] = (h) => e.showMenu = h),
4690
- onClose: i.closeMenu,
4691
- "menu-class": `w-select__menu ${l.menuClass || ""}`,
4698
+ onClose: l.closeMenu,
4699
+ "menu-class": `w-select__menu ${i.menuClass || ""}`,
4692
4700
  transition: "slide-fade-down",
4693
- "append-to": (l.menuProps || {}).appendTo !== void 0 ? (l.menuProps || {}).appendTo : void 0,
4701
+ "append-to": (i.menuProps || {}).appendTo !== void 0 ? (i.menuProps || {}).appendTo : void 0,
4694
4702
  "align-left": "",
4695
4703
  custom: "",
4696
4704
  "min-width": "activator"
4697
- }, l.menuProps || {}), {
4698
- activator: g(({ on: h }) => [
4705
+ }, i.menuProps || {}), {
4706
+ activator: m(({ on: h }) => [
4699
4707
  w("div", C({ class: "w-select__selection-wrap" }, z(h, !0), {
4700
- onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && i.onInputFieldClick()),
4708
+ onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && l.onInputFieldClick()),
4701
4709
  role: "button",
4702
4710
  "aria-haspopup": "listbox",
4703
4711
  "aria-expanded": e.showMenu ? "true" : "false",
4704
4712
  "aria-owns": `w-select-menu--${e._.uid}`,
4705
4713
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`,
4706
- class: i.inputWrapClasses
4714
+ class: l.inputWrapClasses
4707
4715
  }), [
4708
- l.innerIconLeft ? (s(), m(a, {
4716
+ i.innerIconLeft ? (s(), g(a, {
4709
4717
  key: 0,
4710
4718
  class: "w-select__icon w-select__icon--inner-left",
4711
4719
  tag: "label",
4712
4720
  onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
4713
4721
  }, {
4714
- default: g(() => [
4715
- S(_(l.innerIconLeft), 1)
4722
+ default: m(() => [
4723
+ S(_(i.innerIconLeft), 1)
4716
4724
  ]),
4717
4725
  _: 1
4718
4726
  })) : c("", !0),
4719
- e.$slots.selection ? (s(), u("div", Vi, [
4727
+ e.$slots.selection ? (s(), u("div", Vl, [
4720
4728
  p(e.$slots, "selection", {
4721
- item: l.multiple ? e.inputValue : e.inputValue[0]
4729
+ item: i.multiple ? e.inputValue : e.inputValue[0]
4722
4730
  })
4723
4731
  ])) : c("", !0),
4724
4732
  w("div", {
4725
- class: f(["w-select__selection", { "w-select__selection--placeholder": !e.$slots.selection && !i.selectionString && l.placeholder }]),
4733
+ class: f(["w-select__selection", { "w-select__selection--placeholder": !e.$slots.selection && !l.selectionString && i.placeholder }]),
4726
4734
  ref: "selection-input",
4727
4735
  contenteditable: e.isDisabled || e.isReadonly ? "false" : "true",
4728
- onFocus: t[1] || (t[1] = (y) => !e.isDisabled && !e.isReadonly && i.onFocus(y)),
4729
- onBlur: t[2] || (t[2] = (...y) => i.onBlur && i.onBlur(...y)),
4730
- onKeydown: t[3] || (t[3] = (y) => !e.isDisabled && !e.isReadonly && i.onKeydown(y)),
4736
+ onFocus: t[1] || (t[1] = (y) => !e.isDisabled && !e.isReadonly && l.onFocus(y)),
4737
+ onBlur: t[2] || (t[2] = (...y) => l.onBlur && l.onBlur(...y)),
4738
+ onKeydown: t[3] || (t[3] = (y) => !e.isDisabled && !e.isReadonly && l.onKeydown(y)),
4731
4739
  id: `w-select--${e._.uid}`,
4732
4740
  disabled: e.isDisabled || null,
4733
4741
  readonly: "",
4734
4742
  "aria-readonly": "true",
4735
4743
  tabindex: e.tabindex || null,
4736
- innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
4737
- }, null, 42, Ii),
4744
+ innerHTML: e.$slots.selection ? "" : l.selectionString || i.placeholder
4745
+ }, null, 42, Il),
4738
4746
  (s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y, B) => (s(), u("input", {
4739
4747
  key: B,
4740
4748
  type: "hidden",
4741
4749
  value: y.value === void 0 ? "" : y.value.toString(),
4742
- name: e.inputName + (l.multiple ? "[]" : "")
4743
- }, null, 8, Ti))), 128)),
4744
- l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
4745
- e.$slots.default || l.label ? (s(), u("label", {
4750
+ name: e.inputName + (i.multiple ? "[]" : "")
4751
+ }, null, 8, Tl))), 128)),
4752
+ i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 2 }, [
4753
+ e.$slots.default || i.label ? (s(), u("label", {
4746
4754
  key: 0,
4747
4755
  class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses]),
4748
4756
  for: `w-select--${e._.uid}`
4749
4757
  }, [
4750
4758
  p(e.$slots, "default", {}, () => [
4751
- S(_(l.label), 1)
4759
+ S(_(i.label), 1)
4752
4760
  ])
4753
- ], 10, Ri)) : c("", !0)
4761
+ ], 10, Rl)) : c("", !0)
4754
4762
  ], 64)) : c("", !0),
4755
- l.innerIconRight ? (s(), m(a, {
4763
+ i.innerIconRight ? (s(), g(a, {
4756
4764
  key: 3,
4757
4765
  class: "w-select__icon w-select__icon--inner-right",
4758
4766
  tag: "label",
4759
4767
  onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
4760
4768
  }, {
4761
- default: g(() => [
4762
- S(_(l.innerIconRight), 1)
4769
+ default: m(() => [
4770
+ S(_(i.innerIconRight), 1)
4763
4771
  ]),
4764
4772
  _: 1
4765
4773
  })) : c("", !0)
4766
- ], 16, $i)
4774
+ ], 16, $l)
4767
4775
  ]),
4768
- default: g(() => [
4776
+ default: m(() => [
4769
4777
  I(r, {
4770
4778
  ref: "w-list",
4771
4779
  "model-value": e.inputValue,
4772
- "onUpdate:modelValue": i.onInput,
4780
+ "onUpdate:modelValue": l.onInput,
4773
4781
  onItemClick: t[6] || (t[6] = (h) => e.$emit("item-click", h)),
4774
- onItemSelect: i.onListItemSelect,
4775
- "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu()),
4782
+ onItemSelect: l.onListItemSelect,
4783
+ "onKeydown:enter": t[7] || (t[7] = (h) => i.noUnselect && !i.multiple && l.closeMenu()),
4776
4784
  "onKeydown:escape": t[8] || (t[8] = (h) => e.showMenu && (this.showMenu = !1)),
4777
- items: i.selectItems,
4778
- multiple: l.multiple,
4785
+ items: l.selectItems,
4786
+ multiple: i.multiple,
4779
4787
  "arrows-navigation": "",
4780
4788
  "return-object": "",
4781
4789
  "add-ids": `w-select-menu--${e._.uid}`,
4782
- "no-unselect": l.noUnselect,
4783
- "selection-color": l.selectionColor,
4784
- "item-color-key": l.itemColorKey,
4790
+ "no-unselect": i.noUnselect,
4791
+ "selection-color": i.selectionColor,
4792
+ "item-color-key": i.itemColorKey,
4785
4793
  role: "listbox",
4786
4794
  tabindex: "-1"
4787
4795
  }, Z({ _: 2 }, [
4788
- L(l.items.length, (h) => ({
4796
+ L(i.items.length, (h) => ({
4789
4797
  name: `item.${h}`,
4790
- fn: g(({ item: y, selected: B, index: b }) => [
4798
+ fn: m(({ item: y, selected: B, index: b }) => [
4791
4799
  e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, B, b) ? p(e.$slots, `item.${h}`, {
4792
4800
  key: 0,
4793
4801
  item: y,
4794
4802
  selected: B,
4795
4803
  index: b
4796
4804
  }, () => [
4797
- S(_(y[l.itemLabelKey]), 1)
4805
+ S(_(y[i.itemLabelKey]), 1)
4798
4806
  ]) : p(e.$slots, "item", {
4799
4807
  key: 1,
4800
4808
  item: y,
4801
4809
  selected: B,
4802
4810
  index: b
4803
4811
  }, () => [
4804
- S(_(y[l.itemLabelKey]), 1)
4812
+ S(_(y[i.itemLabelKey]), 1)
4805
4813
  ])
4806
4814
  ])
4807
4815
  }))
@@ -4809,22 +4817,22 @@ function xi(e, t, l, o, n, i) {
4809
4817
  ]),
4810
4818
  _: 3
4811
4819
  }, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
4812
- l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
4813
- e.$slots.default || l.label ? (s(), u("label", {
4820
+ i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
4821
+ e.$slots.default || i.label ? (s(), u("label", {
4814
4822
  key: 0,
4815
4823
  class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
4816
4824
  for: `w-select--${e._.uid}`
4817
4825
  }, [
4818
4826
  p(e.$slots, "default", {}, () => [
4819
- S(_(l.label), 1)
4827
+ S(_(i.label), 1)
4820
4828
  ])
4821
- ], 10, Li)) : c("", !0)
4829
+ ], 10, Ll)) : c("", !0)
4822
4830
  ], 64)) : c("", !0)
4823
4831
  ]),
4824
4832
  _: 3
4825
4833
  }, 16, ["valid", "onReset", "wrap", "class"]);
4826
4834
  }
4827
- const Oi = {
4835
+ const Ol = {
4828
4836
  name: "w-select",
4829
4837
  mixins: [M],
4830
4838
  props: {
@@ -4868,8 +4876,8 @@ const Oi = {
4868
4876
  computed: {
4869
4877
  selectItems() {
4870
4878
  return this.items.map((e, t) => {
4871
- const l = { ...e };
4872
- return l.value = l[this.itemValueKey] === void 0 ? l[this.itemLabelKey] || t : l[this.itemValueKey], l.index = t, l;
4879
+ const i = { ...e };
4880
+ return i.value = i[this.itemValueKey] === void 0 ? i[this.itemLabelKey] || t : i[this.itemValueKey], i.index = t, i;
4873
4881
  });
4874
4882
  },
4875
4883
  hasValue() {
@@ -4938,18 +4946,18 @@ const Oi = {
4938
4946
  this.openMenu();
4939
4947
  else {
4940
4948
  let { index: t } = this.inputValue[0] || {};
4941
- const l = this.selectItems;
4949
+ const i = this.selectItems;
4942
4950
  if (t === void 0)
4943
- t = e.keyCode === 38 ? l.length - 1 : 0;
4951
+ t = e.keyCode === 38 ? i.length - 1 : 0;
4944
4952
  else {
4945
4953
  const o = e.keyCode === 38 ? -1 : 1;
4946
- t = (t + l.length + o) % l.length;
4954
+ t = (t + i.length + o) % i.length;
4947
4955
  }
4948
- this.onInput(l[t]);
4956
+ this.onInput(i[t]);
4949
4957
  }
4950
4958
  },
4951
4959
  onInput(e) {
4952
- this.inputValue = e === null ? [] : this.multiple ? e : [e], e = this.inputValue.map((l) => this.returnObject ? this.items[l.index] : l.value);
4960
+ this.inputValue = e === null ? [] : this.multiple ? e : [e], e = this.inputValue.map((i) => this.returnObject ? this.items[i.index] : i.value);
4953
4961
  const t = this.multiple ? e : e[0];
4954
4962
  this.$emit("update:modelValue", t), this.$emit("input", t);
4955
4963
  },
@@ -4966,11 +4974,11 @@ const Oi = {
4966
4974
  },
4967
4975
  checkSelection(e) {
4968
4976
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
4969
- const t = this.selectItems.map((l) => l.value);
4970
- return e.map((l) => {
4971
- let o = l;
4972
- 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)];
4973
- }).filter((l) => l !== void 0);
4977
+ const t = this.selectItems.map((i) => i.value);
4978
+ return e.map((i) => {
4979
+ let o = i;
4980
+ return i && typeof i == "object" && (o = i[this.itemValueKey] !== void 0 ? i[this.itemValueKey] : i[this.itemLabelKey] !== void 0 ? i[this.itemLabelKey] : i), this.selectItems[t.indexOf(o)];
4981
+ }).filter((i) => i !== void 0);
4974
4982
  },
4975
4983
  openMenu() {
4976
4984
  this.showMenu = !0, setTimeout(() => {
@@ -4995,57 +5003,57 @@ const Oi = {
4995
5003
  this.inputValue = this.checkSelection(this.modelValue);
4996
5004
  }
4997
5005
  }
4998
- }, Pi = /* @__PURE__ */ v(Oi, [["render", xi]]), zi = ["for"], Mi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Wi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ai = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ni = ["for"], Ki = { key: 0 }, Hi = {
5006
+ }, Pl = /* @__PURE__ */ v(Ol, [["render", xl]]), zl = ["for"], Ml = ["for", "innerHTML"], El = { class: "w-slider__track-wrap" }, Wl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Al = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Nl = ["for"], Kl = { key: 0 }, Hl = {
4999
5007
  key: 0,
5000
5008
  class: "w-slider__step-labels"
5001
- }, Di = ["onClick"], Fi = ["for"], ji = ["for", "innerHTML"];
5002
- function Ui(e, t, l, o, n, i) {
5003
- 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 }, {
5009
+ }, Dl = ["onClick"], Fl = ["for"], jl = ["for", "innerHTML"];
5010
+ function Ul(e, t, i, o, n, l) {
5011
+ return s(), g(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5004
5012
  valid: e.valid,
5005
5013
  "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5006
5014
  onReset: t[9] || (t[9] = (a) => {
5007
- e.rangeValuePercent = 0, i.updateRangeValueScaled();
5015
+ e.rangeValuePercent = 0, l.updateRangeValueScaled();
5008
5016
  }),
5009
5017
  wrap: e.formRegister || null,
5010
- class: i.wrapperClasses
5018
+ class: l.wrapperClasses
5011
5019
  }), {
5012
- default: g(() => [
5020
+ default: m(() => [
5013
5021
  e.$slots["label-left"] ? (s(), u("label", {
5014
5022
  key: 0,
5015
5023
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5016
5024
  for: `button--${e._.uid}`
5017
5025
  }, [
5018
5026
  p(e.$slots, "label-left")
5019
- ], 10, zi)) : l.labelLeft ? (s(), u("label", {
5027
+ ], 10, zl)) : i.labelLeft ? (s(), u("label", {
5020
5028
  key: 1,
5021
5029
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5022
5030
  for: `button--${e._.uid}`,
5023
- innerHTML: l.labelLeft
5024
- }, null, 10, Mi)) : c("", !0),
5025
- w("div", Ei, [
5031
+ innerHTML: i.labelLeft
5032
+ }, null, 10, Ml)) : c("", !0),
5033
+ w("div", El, [
5026
5034
  w("div", {
5027
- class: f(["w-slider__track", i.trackClasses]),
5035
+ class: f(["w-slider__track", l.trackClasses]),
5028
5036
  ref: "track",
5029
- onMousedown: t[4] || (t[4] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
5030
- onTouchstart: t[5] || (t[5] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
5037
+ onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5038
+ onTouchstart: t[5] || (t[5] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5031
5039
  role: "slider",
5032
5040
  "aria-label": "Slider",
5033
- "aria-valuemin": i.minVal,
5034
- "aria-valuemax": i.maxVal,
5041
+ "aria-valuemin": l.minVal,
5042
+ "aria-valuemax": l.maxVal,
5035
5043
  "aria-valuenow": e.rangeValueScaled,
5036
5044
  "aria-readonly": e.isReadonly ? "true" : "false",
5037
5045
  "aria-orientation": "horizontal"
5038
5046
  }, [
5039
5047
  w("div", {
5040
- class: f(["w-slider__range", i.rangeClasses]),
5041
- style: R(i.rangeStyles)
5048
+ class: f(["w-slider__range", l.rangeClasses]),
5049
+ style: R(l.rangeStyles)
5042
5050
  }, null, 6),
5043
5051
  w("div", {
5044
5052
  class: "w-slider__thumb",
5045
- style: R(i.thumbStyles)
5053
+ style: R(l.thumbStyles)
5046
5054
  }, [
5047
5055
  w("button", {
5048
- class: f(["w-slider__thumb-button", [l.color]]),
5056
+ class: f(["w-slider__thumb-button", [i.color]]),
5049
5057
  ref: "thumb",
5050
5058
  id: `button--${e._.uid}`,
5051
5059
  name: e.inputName,
@@ -5055,19 +5063,19 @@ function Ui(e, t, l, o, n, i) {
5055
5063
  "aria-readonly": e.isReadonly ? "true" : "false",
5056
5064
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5057
5065
  onKeydown: [
5058
- t[0] || (t[0] = W((a) => i.onKeyDown(a, -1), ["left"])),
5059
- t[1] || (t[1] = W((a) => i.onKeyDown(a, 1), ["right"]))
5066
+ t[0] || (t[0] = W((a) => l.onKeyDown(a, -1), ["left"])),
5067
+ t[1] || (t[1] = W((a) => l.onKeyDown(a, 1), ["right"]))
5060
5068
  ],
5061
5069
  onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5062
5070
  onClick: t[3] || (t[3] = E(() => {
5063
5071
  }, ["prevent"]))
5064
- }, null, 42, Ai),
5065
- l.thumbLabel ? (s(), u("label", {
5072
+ }, null, 42, Al),
5073
+ i.thumbLabel ? (s(), u("label", {
5066
5074
  key: 0,
5067
- class: f(["w-slider__thumb-label", i.thumbClasses]),
5075
+ class: f(["w-slider__thumb-label", l.thumbClasses]),
5068
5076
  for: `button--${e._.uid}`
5069
5077
  }, [
5070
- l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
5078
+ i.thumbLabel === "droplet" ? (s(), u("div", Kl, [
5071
5079
  p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
5072
5080
  S(_(~~e.rangeValueScaled), 1)
5073
5081
  ])
@@ -5077,24 +5085,24 @@ function Ui(e, t, l, o, n, i) {
5077
5085
  }, () => [
5078
5086
  S(_(~~e.rangeValueScaled), 1)
5079
5087
  ])
5080
- ], 10, Ni)) : c("", !0)
5088
+ ], 10, Nl)) : c("", !0)
5081
5089
  ], 4)
5082
- ], 42, Wi),
5083
- l.stepLabels && l.step ? (s(), u("div", Hi, [
5090
+ ], 42, Wl),
5091
+ i.stepLabels && i.step ? (s(), u("div", Hl, [
5084
5092
  w("div", {
5085
5093
  class: "w-slider__step-label",
5086
- onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
5094
+ onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5087
5095
  }, _(this.minVal), 1),
5088
- (s(!0), u(k, null, L(~~i.numberOfSteps, (a) => (s(), u("div", {
5096
+ (s(!0), u(k, null, L(~~l.numberOfSteps, (a) => (s(), u("div", {
5089
5097
  class: "w-slider__step-label",
5090
5098
  key: a,
5091
- onClick: (r) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
5092
- style: R(`left: ${a * (100 / i.numberOfSteps)}%`)
5093
- }, _(i.percentToScaled(a * (100 / i.numberOfSteps))), 13, Di))), 128)),
5094
- ~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
5099
+ onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5100
+ style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
5101
+ }, _(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Dl))), 128)),
5102
+ ~~l.numberOfSteps !== l.numberOfSteps ? (s(), u("div", {
5095
5103
  key: 0,
5096
5104
  class: "w-slider__step-label",
5097
- onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
5105
+ onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
5098
5106
  style: { left: "100%" }
5099
5107
  }, _(this.maxVal), 1)) : c("", !0)
5100
5108
  ])) : c("", !0)
@@ -5105,17 +5113,17 @@ function Ui(e, t, l, o, n, i) {
5105
5113
  for: `button--${e._.uid}`
5106
5114
  }, [
5107
5115
  p(e.$slots, "label-right")
5108
- ], 10, Fi)) : l.labelRight ? (s(), u("label", {
5116
+ ], 10, Fl)) : i.labelRight ? (s(), u("label", {
5109
5117
  key: 3,
5110
5118
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5111
5119
  for: `button--${e._.uid}`,
5112
- innerHTML: l.labelRight
5113
- }, null, 10, ji)) : c("", !0)
5120
+ innerHTML: i.labelRight
5121
+ }, null, 10, jl)) : c("", !0)
5114
5122
  ]),
5115
5123
  _: 3
5116
5124
  }, 16, ["valid", "wrap", "class"]);
5117
5125
  }
5118
- const qi = {
5126
+ const ql = {
5119
5127
  name: "w-slider",
5120
5128
  mixins: [M],
5121
5129
  props: {
@@ -5213,8 +5221,8 @@ const qi = {
5213
5221
  onTrackMouseDown(e) {
5214
5222
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
5215
5223
  return;
5216
- const { left: t, width: l } = this.track.el.getBoundingClientRect();
5217
- this.track.width = l, this.track.left = t, this.dragging = !0, this.updateRange(e.type === "touchstart" ? e.touches[0].clientX : e.clientX), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
5224
+ const { left: t, width: i } = this.track.el.getBoundingClientRect();
5225
+ this.track.width = i, this.track.left = t, this.dragging = !0, this.updateRange(e.type === "touchstart" ? e.touches[0].clientX : e.clientX), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
5218
5226
  },
5219
5227
  onDrag(e) {
5220
5228
  this.updateRange(e.type === "touchmove" ? e.touches[0].clientX : e.clientX);
@@ -5249,17 +5257,17 @@ const qi = {
5249
5257
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
5250
5258
  }
5251
5259
  }
5252
- }, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]), Yi = { key: 0 };
5253
- function Gi(e, t, l, o, n, i) {
5254
- return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
5260
+ }, Xl = /* @__PURE__ */ v(ql, [["render", Ul]]), Yl = { key: 0 };
5261
+ function Gl(e, t, i, o, n, l) {
5262
+ return i.modelValue || i.modelValue === void 0 ? (s(), u("div", {
5255
5263
  key: 0,
5256
- class: f(["w-spinner", i.classes]),
5257
- style: R(i.styles)
5264
+ class: f(["w-spinner", l.classes]),
5265
+ style: R(l.styles)
5258
5266
  }, [
5259
- i.isThreeDots ? (s(), u("span", Yi)) : c("", !0)
5267
+ l.isThreeDots ? (s(), u("span", Yl)) : c("", !0)
5260
5268
  ], 6)) : c("", !0);
5261
5269
  }
5262
- const Ji = {
5270
+ const Jl = {
5263
5271
  name: "w-spinner",
5264
5272
  props: {
5265
5273
  modelValue: {},
@@ -5297,10 +5305,10 @@ const Ji = {
5297
5305
  };
5298
5306
  }
5299
5307
  }
5300
- }, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
5301
- function Zi(e, t, l, o, n, i) {
5308
+ }, Ql = /* @__PURE__ */ v(Jl, [["render", Gl]]);
5309
+ function Zl(e, t, i, o, n, l) {
5302
5310
  return s(), u("div", {
5303
- class: f(["w-steps", i.classes])
5311
+ class: f(["w-steps", l.classes])
5304
5312
  }, null, 2);
5305
5313
  }
5306
5314
  const es = {
@@ -5319,24 +5327,24 @@ const es = {
5319
5327
  };
5320
5328
  }
5321
5329
  }
5322
- }, ts = /* @__PURE__ */ v(es, [["render", Zi]]), ls = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], is = ["for"], ss = {
5330
+ }, ts = /* @__PURE__ */ v(es, [["render", Zl]]), is = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], ls = ["for"], ss = {
5323
5331
  key: 0,
5324
5332
  class: "w-switch__track"
5325
5333
  }, as = {
5326
5334
  key: 1,
5327
5335
  class: "w-switch__thumb"
5328
5336
  }, os = ["for"];
5329
- function ns(e, t, l, o, n, i) {
5337
+ function ns(e, t, i, o, n, l) {
5330
5338
  const a = $("w-progress");
5331
- 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 }, {
5339
+ return s(), g(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5332
5340
  valid: e.valid,
5333
5341
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5334
5342
  onReset: t[4] || (t[4] = (r) => {
5335
5343
  e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
5336
5344
  }),
5337
- class: i.classes
5345
+ class: l.classes
5338
5346
  }), {
5339
- default: g(() => [
5347
+ default: m(() => [
5340
5348
  w("input", {
5341
5349
  ref: "input",
5342
5350
  id: `w-switch--${e._.uid}`,
@@ -5348,47 +5356,47 @@ function ns(e, t, l, o, n, i) {
5348
5356
  "aria-readonly": e.isReadonly ? "true" : "false",
5349
5357
  required: e.required || null,
5350
5358
  tabindex: e.tabindex || null,
5351
- onChange: t[0] || (t[0] = (r) => i.onInput()),
5359
+ onChange: t[0] || (t[0] = (r) => l.onInput()),
5352
5360
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5353
5361
  "aria-checked": n.isOn || "false",
5354
5362
  role: "switch"
5355
- }, null, 40, ls),
5356
- i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
5357
- e.$slots.default || l.label ? (s(), u("label", {
5363
+ }, null, 40, is),
5364
+ l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
5365
+ e.$slots.default || i.label ? (s(), u("label", {
5358
5366
  key: 0,
5359
5367
  class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
5360
5368
  for: `w-switch--${e._.uid}`
5361
5369
  }, [
5362
5370
  p(e.$slots, "default", {}, () => [
5363
- S(_(l.label), 1)
5371
+ S(_(i.label), 1)
5364
5372
  ])
5365
- ], 10, is)) : c("", !0)
5373
+ ], 10, ls)) : c("", !0)
5366
5374
  ], 64)) : c("", !0),
5367
5375
  w("div", C({
5368
5376
  class: "w-switch__input",
5369
5377
  onClick: t[2] || (t[2] = (r) => {
5370
5378
  e.$refs.input.focus(), e.$refs.input.click();
5371
5379
  })
5372
- }, z(e.$attrs, !0), { class: i.inputClasses }), [
5380
+ }, z(e.$attrs, !0), { class: l.inputClasses }), [
5373
5381
  e.$slots.track ? (s(), u("div", ss, [
5374
5382
  p(e.$slots, "track")
5375
5383
  ])) : c("", !0),
5376
- e.$slots.thumb || l.loading ? (s(), u("div", as, [
5377
- l.loading ? (s(), m(a, C({
5384
+ e.$slots.thumb || i.loading ? (s(), u("div", as, [
5385
+ i.loading ? (s(), g(a, C({
5378
5386
  key: 0,
5379
5387
  circle: "",
5380
5388
  color: "inherit"
5381
- }, typeof l.loading == "number" && { "model-value": l.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
5389
+ }, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
5382
5390
  ])) : c("", !0)
5383
5391
  ], 16),
5384
- i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
5385
- e.$slots.default || l.label ? (s(), u("label", {
5392
+ l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
5393
+ e.$slots.default || i.label ? (s(), u("label", {
5386
5394
  key: 0,
5387
5395
  class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
5388
5396
  for: `w-switch--${e._.uid}`
5389
5397
  }, [
5390
5398
  p(e.$slots, "default", {}, () => [
5391
- S(_(l.label), 1)
5399
+ S(_(i.label), 1)
5392
5400
  ])
5393
5401
  ], 10, os)) : c("", !0)
5394
5402
  ], 64)) : c("", !0)
@@ -5462,130 +5470,130 @@ const rs = {
5462
5470
  }
5463
5471
  }
5464
5472
  }, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
5465
- function hs(e, t, l, o, n, i) {
5473
+ function hs(e, t, i, o, n, l) {
5466
5474
  return s(), u("div", us, [
5467
- p(e.$slots, "default", { item: l.item })
5475
+ p(e.$slots, "default", { item: i.item })
5468
5476
  ]);
5469
5477
  }
5470
5478
  const cs = {
5471
5479
  name: "tab-content",
5472
5480
  props: { item: Object }
5473
- }, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], gs = ["innerHTML"], ms = {
5481
+ }, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], ms = ["innerHTML"], gs = {
5474
5482
  key: 0,
5475
5483
  class: "w-tabs__bar-extra"
5476
5484
  }, bs = {
5477
5485
  key: 0,
5478
5486
  class: "w-tabs__content-wrap"
5479
5487
  }, ys = ["innerHTML"], ws = ["innerHTML"];
5480
- function vs(e, t, l, o, n, i) {
5488
+ function vs(e, t, i, o, n, l) {
5481
5489
  const a = $("tab-content");
5482
5490
  return s(), u("div", {
5483
- class: f(["w-tabs", i.tabsClasses])
5491
+ class: f(["w-tabs", l.tabsClasses])
5484
5492
  }, [
5485
5493
  w("div", {
5486
- class: f(["w-tabs__bar", i.tabsBarClasses]),
5494
+ class: f(["w-tabs__bar", l.tabsBarClasses]),
5487
5495
  ref: "tabs-bar"
5488
5496
  }, [
5489
5497
  (s(!0), u(k, null, L(e.tabs, (r, d) => (s(), u("div", {
5490
- class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
5498
+ class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
5491
5499
  key: d,
5492
- onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && i.openTab(r._uid),
5493
- onFocus: (h) => e.$emit("focus", i.getOriginalItem(r)),
5500
+ onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
5501
+ onFocus: (h) => e.$emit("focus", l.getOriginalItem(r)),
5494
5502
  tabindex: !r._disabled && 0,
5495
- onKeypress: W((h) => !r._disabled && i.openTab(r._uid), ["enter"]),
5503
+ onKeypress: W((h) => !r._disabled && l.openTab(r._uid), ["enter"]),
5496
5504
  "aria-selected": r._uid === e.activeTabUid ? "true" : "false",
5497
5505
  role: "tab"
5498
5506
  }, [
5499
5507
  e.$slots[`item-title.${r.id || d + 1}`] ? p(e.$slots, `item-title.${r.id || d + 1}`, {
5500
5508
  key: 0,
5501
- item: i.getOriginalItem(r),
5509
+ item: l.getOriginalItem(r),
5502
5510
  index: d + 1,
5503
5511
  active: r._uid === e.activeTabUid
5504
5512
  }) : p(e.$slots, "item-title", {
5505
5513
  key: 1,
5506
- item: i.getOriginalItem(r),
5514
+ item: l.getOriginalItem(r),
5507
5515
  index: d + 1,
5508
5516
  active: r._uid === e.activeTabUid
5509
5517
  }, () => [
5510
5518
  w("div", {
5511
- innerHTML: r[l.itemTitleKey]
5512
- }, null, 8, gs)
5519
+ innerHTML: r[i.itemTitleKey]
5520
+ }, null, 8, ms)
5513
5521
  ])
5514
5522
  ], 42, fs))), 128)),
5515
- e.$slots["tabs-bar-extra"] ? (s(), u("div", ms, [
5523
+ e.$slots["tabs-bar-extra"] ? (s(), u("div", gs, [
5516
5524
  p(e.$slots, "tabs-bar-extra")
5517
5525
  ])) : c("", !0),
5518
- !l.noSlider && !l.card ? (s(), u("div", {
5526
+ !i.noSlider && !i.card ? (s(), u("div", {
5519
5527
  key: 1,
5520
- class: f(["w-tabs__slider", l.sliderColor]),
5521
- style: R(i.sliderStyles)
5528
+ class: f(["w-tabs__slider", i.sliderColor]),
5529
+ style: R(l.sliderStyles)
5522
5530
  }, null, 6)) : c("", !0)
5523
5531
  ], 2),
5524
5532
  e.tabs.length ? (s(), u("div", bs, [
5525
- l.keepInDom ? (s(), m(ae, {
5533
+ i.keepInDom ? (s(), g(ae, {
5526
5534
  key: 0,
5527
- name: i.transitionName
5535
+ name: l.transitionName
5528
5536
  }, {
5529
- default: g(() => [
5530
- (s(!0), u(k, null, L(e.tabs, (r, d) => N((s(), m(a, {
5537
+ default: m(() => [
5538
+ (s(!0), u(k, null, L(e.tabs, (r, d) => N((s(), g(a, {
5531
5539
  key: r._uid,
5532
5540
  item: r,
5533
- class: f(l.contentClass)
5541
+ class: f(i.contentClass)
5534
5542
  }, {
5535
- default: g(() => [
5543
+ default: m(() => [
5536
5544
  e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5537
5545
  key: 0,
5538
- item: i.getOriginalItem(r),
5546
+ item: l.getOriginalItem(r),
5539
5547
  index: r._index + 1,
5540
- active: r._index === i.activeTab._index
5548
+ active: r._index === l.activeTab._index
5541
5549
  }) : p(e.$slots, "item-content", {
5542
5550
  key: 1,
5543
- item: i.getOriginalItem(r),
5551
+ item: l.getOriginalItem(r),
5544
5552
  index: r._index + 1,
5545
- active: r._index === i.activeTab._index
5553
+ active: r._index === l.activeTab._index
5546
5554
  }, () => [
5547
- r[l.itemContentKey] ? (s(), u("div", {
5555
+ r[i.itemContentKey] ? (s(), u("div", {
5548
5556
  key: 0,
5549
- innerHTML: r[l.itemContentKey]
5557
+ innerHTML: r[i.itemContentKey]
5550
5558
  }, null, 8, ys)) : c("", !0)
5551
5559
  ])
5552
5560
  ]),
5553
5561
  _: 2
5554
5562
  }, 1032, ["item", "class"])), [
5555
- [oe, r._uid === i.activeTab._uid]
5563
+ [oe, r._uid === l.activeTab._uid]
5556
5564
  ])), 128))
5557
5565
  ]),
5558
5566
  _: 3
5559
- }, 8, ["name"])) : (s(), m(O, {
5567
+ }, 8, ["name"])) : (s(), g(O, {
5560
5568
  key: 1,
5561
- name: i.transitionName,
5562
- mode: i.transitionMode
5569
+ name: l.transitionName,
5570
+ mode: l.transitionMode
5563
5571
  }, {
5564
- default: g(() => [
5565
- (s(), m(Ve, {
5566
- exclude: l.keepAlive ? "" : "tab-content"
5572
+ default: m(() => [
5573
+ (s(), g(Ve, {
5574
+ exclude: i.keepAlive ? "" : "tab-content"
5567
5575
  }, [
5568
- (s(), m(a, {
5576
+ (s(), g(a, {
5569
5577
  key: e.activeTabUid,
5570
- item: i.activeTab,
5571
- class: f(l.contentClass)
5578
+ item: l.activeTab,
5579
+ class: f(i.contentClass)
5572
5580
  }, {
5573
- default: g(({ item: r }) => [
5581
+ default: m(({ item: r }) => [
5574
5582
  r ? (s(), u(k, { key: 0 }, [
5575
5583
  e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5576
5584
  key: 0,
5577
- item: i.getOriginalItem(r),
5585
+ item: l.getOriginalItem(r),
5578
5586
  index: r._index + 1,
5579
5587
  active: r._uid === e.activeTabUid
5580
5588
  }) : p(e.$slots, "item-content", {
5581
5589
  key: 1,
5582
- item: i.getOriginalItem(r),
5590
+ item: l.getOriginalItem(r),
5583
5591
  index: r._index + 1,
5584
5592
  active: r._uid === e.activeTabUid
5585
5593
  }, () => [
5586
- r[l.itemContentKey] ? (s(), u("div", {
5594
+ r[i.itemContentKey] ? (s(), u("div", {
5587
5595
  key: 0,
5588
- innerHTML: r[l.itemContentKey]
5596
+ innerHTML: r[i.itemContentKey]
5589
5597
  }, null, 8, ws)) : c("", !0)
5590
5598
  ])
5591
5599
  ], 64)) : c("", !0)
@@ -5682,8 +5690,8 @@ const ks = {
5682
5690
  },
5683
5691
  methods: {
5684
5692
  addTab(e) {
5685
- var t, l, o;
5686
- (l = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && l || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
5693
+ var t, i, o;
5694
+ (i = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && i || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
5687
5695
  _uid: (o = e[this.itemIdKey]) != null ? o : e._uid,
5688
5696
  _index: this.tabs.length,
5689
5697
  ...e,
@@ -5692,22 +5700,22 @@ const ks = {
5692
5700
  },
5693
5701
  refreshTabs() {
5694
5702
  let e = this.items;
5695
- typeof e == "number" && (e = Array(e).fill().map((t, l) => this.tabs[l] || {})), this.tabs = e.map((t, l) => {
5696
- var o, n, i;
5703
+ typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => {
5704
+ var o, n, l;
5697
5705
  return (n = (o = t[this.itemIdKey]) != null ? o : t._uid) != null && n || (t._uid = +`${this._.uid}${++fe}`), {
5698
5706
  ...t,
5699
- _uid: (i = t[this.itemIdKey]) != null ? i : t._uid,
5700
- _index: l,
5707
+ _uid: (l = t[this.itemIdKey]) != null ? l : t._uid,
5708
+ _index: i,
5701
5709
  _disabled: !!t.disabled
5702
5710
  };
5703
5711
  });
5704
5712
  },
5705
5713
  reopenTheActiveTab() {
5706
- var t, l, o;
5714
+ var t, i, o;
5707
5715
  if (this.tabs.length === 1)
5708
5716
  return this.openTab(this.tabs[0]._uid);
5709
5717
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
5710
- 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);
5718
+ e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (o = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : o._uid), e && this.openTab(e);
5711
5719
  },
5712
5720
  onResize() {
5713
5721
  this.updateSlider(!1);
@@ -5733,14 +5741,14 @@ const ks = {
5733
5741
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
5734
5742
  }
5735
5743
  if (!this.fillBar && this.activeTabEl) {
5736
- const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(o);
5737
- this.slider.left = `${t - n - parseInt(i) + o.scrollLeft}px`, this.slider.width = `${l}px`;
5744
+ const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
5745
+ this.slider.left = `${t - n - parseInt(l) + o.scrollLeft}px`, this.slider.width = `${i}px`;
5738
5746
  } else
5739
5747
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
5740
5748
  },
5741
5749
  updateActiveTab(e) {
5742
- var t, l;
5743
- 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(() => {
5750
+ var t, i;
5751
+ typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), (t = this.tabs[e]) != null && t._uid && (this.openTab((i = this.tabs[e]) == null ? void 0 : i._uid), this.$nextTick(() => {
5744
5752
  const o = this.$refs["tabs-bar"];
5745
5753
  this.activeTabEl = o && o.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5746
5754
  }));
@@ -5800,36 +5808,36 @@ const ks = {
5800
5808
  key: 2,
5801
5809
  class: "w-table__row w-table__pagination-wrap"
5802
5810
  }, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
5803
- function Js(e, t, l, o, n, i) {
5811
+ function Js(e, t, i, o, n, l) {
5804
5812
  const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
5805
5813
  return s(), u("div", {
5806
- class: f(["w-table-wrap", i.wrapClasses])
5814
+ class: f(["w-table-wrap", l.wrapClasses])
5807
5815
  }, [
5808
5816
  w("table", {
5809
- class: f(["w-table", i.classes]),
5810
- onMousedown: t[5] || (t[5] = (...b) => i.onMouseDown && i.onMouseDown(...b)),
5811
- onMouseover: t[6] || (t[6] = (...b) => i.onMouseOver && i.onMouseOver(...b)),
5812
- onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
5817
+ class: f(["w-table", l.classes]),
5818
+ onMousedown: t[5] || (t[5] = (...b) => l.onMouseDown && l.onMouseDown(...b)),
5819
+ onMouseover: t[6] || (t[6] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
5820
+ onMouseout: t[7] || (t[7] = (...b) => l.onMouseOut && l.onMouseOut(...b))
5813
5821
  }, [
5814
5822
  w("colgroup", Cs, [
5815
- (s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("col", {
5816
- class: f(["w-table__col", i.colClasses[T]]),
5823
+ (s(!0), u(k, null, L(i.headers, (b, T) => (s(), u("col", {
5824
+ class: f(["w-table__col", l.colClasses[T]]),
5817
5825
  key: T,
5818
5826
  width: b.width || null
5819
5827
  }, null, 10, Ss))), 128))
5820
5828
  ], 512),
5821
- l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
5829
+ i.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
5822
5830
  w("tr", null, [
5823
- (s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("th", {
5824
- class: f(["w-table__header", i.headerClasses(b)]),
5831
+ (s(!0), u(k, null, L(i.headers, (b, T) => (s(), u("th", {
5832
+ class: f(["w-table__header", l.headerClasses(b)]),
5825
5833
  key: T,
5826
- onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
5834
+ onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
5827
5835
  }, [
5828
- b.sortable !== !1 && b.align === "right" ? (s(), m(a, {
5836
+ b.sortable !== !1 && b.align === "right" ? (s(), g(a, {
5829
5837
  key: 0,
5830
- class: f(["w-table__header-sort", i.headerSortClasses(b)])
5838
+ class: f(["w-table__header-sort", l.headerSortClasses(b)])
5831
5839
  }, {
5832
- default: g(() => [
5840
+ default: m(() => [
5833
5841
  S("wi-arrow-down")
5834
5842
  ]),
5835
5843
  _: 2
@@ -5847,16 +5855,16 @@ function Js(e, t, l, o, n, i) {
5847
5855
  innerHTML: b.label || ""
5848
5856
  }, null, 8, Vs))
5849
5857
  ], 64)) : c("", !0),
5850
- b.sortable !== !1 && b.align !== "right" ? (s(), m(a, {
5858
+ b.sortable !== !1 && b.align !== "right" ? (s(), g(a, {
5851
5859
  key: 2,
5852
- class: f(["w-table__header-sort", i.headerSortClasses(b)])
5860
+ class: f(["w-table__header-sort", l.headerSortClasses(b)])
5853
5861
  }, {
5854
- default: g(() => [
5862
+ default: m(() => [
5855
5863
  S("wi-arrow-down")
5856
5864
  ]),
5857
5865
  _: 2
5858
5866
  }, 1032, ["class"])) : c("", !0),
5859
- T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5867
+ T < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
5860
5868
  key: 3,
5861
5869
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
5862
5870
  onClick: t[0] || (t[0] = E(() => {
@@ -5865,10 +5873,10 @@ function Js(e, t, l, o, n, i) {
5865
5873
  ], 10, $s))), 128))
5866
5874
  ]),
5867
5875
  I(d, null, {
5868
- default: g(() => [
5869
- l.loading === "header" ? (s(), u("tr", Is, [
5876
+ default: m(() => [
5877
+ i.loading === "header" ? (s(), u("tr", Is, [
5870
5878
  w("td", {
5871
- colspan: l.headers.length
5879
+ colspan: i.headers.length
5872
5880
  }, [
5873
5881
  I(r, { tile: "" })
5874
5882
  ], 8, Ts)
@@ -5878,9 +5886,9 @@ function Js(e, t, l, o, n, i) {
5878
5886
  })
5879
5887
  ])),
5880
5888
  w("tbody", null, [
5881
- l.loading === !0 ? (s(), u("tr", Rs, [
5889
+ i.loading === !0 ? (s(), u("tr", Rs, [
5882
5890
  w("td", {
5883
- colspan: l.headers.length
5891
+ colspan: i.headers.length
5884
5892
  }, [
5885
5893
  I(r, { tile: "" }),
5886
5894
  w("div", xs, [
@@ -5889,29 +5897,29 @@ function Js(e, t, l, o, n, i) {
5889
5897
  ])
5890
5898
  ])
5891
5899
  ], 8, Ls)
5892
- ])) : i.tableItems.length ? c("", !0) : (s(), u("tr", Os, [
5900
+ ])) : l.tableItems.length ? c("", !0) : (s(), u("tr", Os, [
5893
5901
  w("td", {
5894
5902
  class: "w-table__cell text-center",
5895
- colspan: l.headers.length
5903
+ colspan: i.headers.length
5896
5904
  }, [
5897
5905
  p(e.$slots, "no-data", {}, () => [
5898
5906
  S("No data to show.")
5899
5907
  ])
5900
5908
  ], 8, Ps)
5901
5909
  ])),
5902
- i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, T) => (s(), u(k, { key: T }, [
5910
+ l.tableItems.length && i.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(l.paginatedItems, (b, T) => (s(), u(k, { key: T }, [
5903
5911
  e.$slots.item ? p(e.$slots, "item", {
5904
5912
  key: 0,
5905
5913
  item: b,
5906
5914
  index: T + 1,
5907
- select: () => i.doSelectRow(b, T),
5908
- classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }
5915
+ select: () => l.doSelectRow(b, T),
5916
+ classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }
5909
5917
  }) : (s(), u("tr", {
5910
5918
  key: 1,
5911
- class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }]),
5912
- onClick: (x) => i.doSelectRow(b, T)
5919
+ class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }]),
5920
+ onClick: (x) => l.doSelectRow(b, T)
5913
5921
  }, [
5914
- (s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
5922
+ (s(!0), u(k, null, L(i.headers, (x, P) => (s(), u(k, null, [
5915
5923
  e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
5916
5924
  class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
5917
5925
  key: `${P}-a`,
@@ -5936,7 +5944,7 @@ function Js(e, t, l, o, n, i) {
5936
5944
  label: b[x.key] || "",
5937
5945
  index: T + 1
5938
5946
  }) : c("", !0),
5939
- P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5947
+ P < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
5940
5948
  key: 3,
5941
5949
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
5942
5950
  }, null, 2)) : c("", !0)
@@ -5948,27 +5956,27 @@ function Js(e, t, l, o, n, i) {
5948
5956
  w("div", {
5949
5957
  innerHTML: b[x.key] || ""
5950
5958
  }, null, 8, Ws),
5951
- P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5959
+ P < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
5952
5960
  key: 0,
5953
5961
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
5954
5962
  }, null, 2)) : c("", !0)
5955
5963
  ], 10, Es))
5956
5964
  ], 64))), 256))
5957
5965
  ], 10, zs)),
5958
- i.expandedRowsByUid[b._uid] ? (s(), u("tr", As, [
5966
+ l.expandedRowsByUid[b._uid] ? (s(), u("tr", As, [
5959
5967
  w("td", {
5960
5968
  class: "w-table__cell",
5961
- colspan: l.headers.length
5969
+ colspan: i.headers.length
5962
5970
  }, [
5963
5971
  I(h, { y: "" }, {
5964
- default: g(() => [
5965
- i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
5972
+ default: m(() => [
5973
+ l.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
5966
5974
  p(e.$slots, "row-expansion", {
5967
5975
  item: b,
5968
5976
  index: T + 1
5969
5977
  })
5970
5978
  ])) : c("", !0),
5971
- T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5979
+ T < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
5972
5980
  key: 1,
5973
5981
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
5974
5982
  }, null, 2)) : c("", !0)
@@ -5982,31 +5990,31 @@ function Js(e, t, l, o, n, i) {
5982
5990
  p(e.$slots, "extra-row")
5983
5991
  ])) : c("", !0)
5984
5992
  ]),
5985
- e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot", Ds, [
5993
+ e.$slots.footer || e.$slots["footer-row"] || i.pagination ? (s(), u("tfoot", Ds, [
5986
5994
  e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Fs, [
5987
5995
  w("td", {
5988
5996
  class: "w-table__cell",
5989
- colspan: l.headers.length
5997
+ colspan: i.headers.length
5990
5998
  }, [
5991
5999
  p(e.$slots, "footer")
5992
6000
  ], 8, js)
5993
6001
  ])) : c("", !0),
5994
- l.pagination && e.paginationConfig ? (s(), u("tr", Us, [
6002
+ i.pagination && e.paginationConfig ? (s(), u("tr", Us, [
5995
6003
  w("td", {
5996
6004
  class: "w-table__cell",
5997
- colspan: l.headers.length
6005
+ colspan: i.headers.length
5998
6006
  }, [
5999
6007
  w("div", Xs, [
6000
6008
  p(e.$slots, "pagination", {
6001
6009
  range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
6002
6010
  total: e.paginationConfig.total
6003
6011
  }, () => [
6004
- e.paginationConfig.itemsPerPageOptions ? (s(), m(y, {
6012
+ e.paginationConfig.itemsPerPageOptions ? (s(), g(y, {
6005
6013
  key: 0,
6006
6014
  class: "w-pagination__items-per-page",
6007
6015
  modelValue: e.paginationConfig.itemsPerPage,
6008
6016
  "onUpdate:modelValue": t[1] || (t[1] = (b) => e.paginationConfig.itemsPerPage = b),
6009
- onInput: t[2] || (t[2] = (b) => i.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
6017
+ onInput: t[2] || (t[2] = (b) => l.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
6010
6018
  items: e.paginationConfig.itemsPerPageOptions,
6011
6019
  "label-position": "left",
6012
6020
  label: "Items per page",
@@ -6015,27 +6023,27 @@ function Js(e, t, l, o, n, i) {
6015
6023
  w("div", Ys, [
6016
6024
  I(B, {
6017
6025
  class: "w-pagination__arrow w-pagination__arrow--prev",
6018
- onClick: t[3] || (t[3] = (b) => i.goToPage("-1")),
6026
+ onClick: t[3] || (t[3] = (b) => l.goToPage("-1")),
6019
6027
  disabled: e.paginationConfig.page <= 1,
6020
6028
  icon: "wi-chevron-left",
6021
6029
  text: "",
6022
6030
  lg: ""
6023
6031
  }, null, 8, ["disabled"]),
6024
- (s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
6032
+ (s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), g(B, {
6025
6033
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6026
6034
  key: b,
6027
- onClick: (T) => b !== e.paginationConfig.page && i.goToPage(b),
6035
+ onClick: (T) => b !== e.paginationConfig.page && l.goToPage(b),
6028
6036
  round: "",
6029
6037
  lg: ""
6030
6038
  }, {
6031
- default: g(() => [
6039
+ default: m(() => [
6032
6040
  S(_(b), 1)
6033
6041
  ]),
6034
6042
  _: 2
6035
6043
  }, 1032, ["onClick", "class"]))), 128)),
6036
6044
  I(B, {
6037
6045
  class: "w-pagination__arrow w-pagination__arrow--next",
6038
- onClick: t[4] || (t[4] = (b) => i.goToPage("+1")),
6046
+ onClick: t[4] || (t[4] = (b) => l.goToPage("+1")),
6039
6047
  disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
6040
6048
  icon: "wi-chevron-right",
6041
6049
  text: "",
@@ -6051,7 +6059,7 @@ function Js(e, t, l, o, n, i) {
6051
6059
  ], 34)
6052
6060
  ], 2);
6053
6061
  }
6054
- const ge = 15, Qs = {
6062
+ const me = 15, Qs = {
6055
6063
  name: "w-table",
6056
6064
  props: {
6057
6065
  items: { type: Array, required: !0 },
@@ -6066,13 +6074,13 @@ const ge = 15, Qs = {
6066
6074
  filter: { type: Function },
6067
6075
  fetch: { type: Function },
6068
6076
  expandableRows: {
6069
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || le(
6077
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ie(
6070
6078
  `Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6071
6079
  ), !0)
6072
6080
  },
6073
6081
  expandedRows: { type: Array },
6074
6082
  selectableRows: {
6075
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || le(
6083
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ie(
6076
6084
  `Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6077
6085
  ), !0)
6078
6086
  },
@@ -6086,7 +6094,7 @@ const ge = 15, Qs = {
6086
6094
  validator: (e) => {
6087
6095
  if (e) {
6088
6096
  if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
6089
- return le(
6097
+ return ie(
6090
6098
  "Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
6091
6099
  ), !1;
6092
6100
  } else
@@ -6132,8 +6140,8 @@ const ge = 15, Qs = {
6132
6140
  computed: {
6133
6141
  tableItems() {
6134
6142
  return this.items.map((e, t) => {
6135
- var l;
6136
- return e._uid = (l = e[this.uidKey]) != null ? l : t, e;
6143
+ var i;
6144
+ return e._uid = (i = e[this.uidKey]) != null ? i : t, e;
6137
6145
  });
6138
6146
  },
6139
6147
  filteredItems() {
@@ -6143,7 +6151,7 @@ const ge = 15, Qs = {
6143
6151
  if (!this.activeSorting.length || this.sortFunction || this.fetch)
6144
6152
  return this.filteredItems;
6145
6153
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6146
- 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)));
6154
+ return [...this.filteredItems].sort((i, o) => (i = i[e], o = o[e], !isNaN(i) && !isNaN(o) && (i = parseFloat(i), o = parseFloat(o)), (i > o ? 1 : -1) * (t ? -1 : 1)));
6147
6155
  },
6148
6156
  paginatedItems() {
6149
6157
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6209,27 +6217,27 @@ const ge = 15, Qs = {
6209
6217
  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();
6210
6218
  },
6211
6219
  doSelectRow(e, t) {
6212
- const l = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6213
- if (l) {
6220
+ const i = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6221
+ if (i) {
6214
6222
  const n = this.expandedRowsByUid[e._uid] === void 0;
6215
- 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(
6223
+ n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
6216
6224
  "row-expand",
6217
6225
  {
6218
6226
  item: e,
6219
6227
  index: t,
6220
6228
  expanded: n,
6221
- expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
6229
+ expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
6222
6230
  }
6223
6231
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6224
6232
  } else if (o) {
6225
6233
  let n = !1;
6226
- const i = this.selectedRowsByUid[e._uid] === void 0;
6227
- 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(
6234
+ const l = this.selectedRowsByUid[e._uid] === void 0;
6235
+ l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), n = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((a) => a !== e._uid), n = !0), n && (this.$emit(
6228
6236
  "row-select",
6229
6237
  {
6230
6238
  item: e,
6231
6239
  index: t,
6232
- selected: i,
6240
+ selected: l,
6233
6241
  selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
6234
6242
  }
6235
6243
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
@@ -6246,29 +6254,29 @@ const ge = 15, Qs = {
6246
6254
  e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
6247
6255
  },
6248
6256
  onResizerMouseMove(e) {
6249
- const { startCursorX: t, columnEl: l, nextColumnEl: o, colWidth: n, nextColWidth: i } = this.colResizing;
6257
+ const { startCursorX: t, columnEl: i, nextColumnEl: o, colWidth: n, nextColWidth: l } = this.colResizing;
6250
6258
  this.colResizing.dragging = !0;
6251
- const a = e.pageX - t, r = n + i, d = n + a, h = i - a;
6252
- l.style.width = n + a + "px", o.style.width = i - a + "px";
6253
- const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ge, B = a > 0 && o.offsetWidth > h;
6259
+ const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
6260
+ i.style.width = n + a + "px", o.style.width = l - a + "px";
6261
+ const y = a < 0 && i.offsetWidth > d || i.offsetWidth <= me, B = a > 0 && o.offsetWidth > h;
6254
6262
  if (y) {
6255
- const b = Math.max(l.offsetWidth, ge);
6256
- l.style.width = b + "px", o.style.width = r - b + "px";
6263
+ const b = Math.max(i.offsetWidth, me);
6264
+ i.style.width = b + "px", o.style.width = r - b + "px";
6257
6265
  } else
6258
- B && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6266
+ B && (i.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6259
6267
  },
6260
6268
  onResizerMouseUp() {
6261
6269
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
6262
6270
  const e = [...this.$refs.colgroup.childNodes].map((t) => {
6263
- var l;
6264
- return ((l = t.style) == null ? void 0 : l.width) || t.offsetWidth;
6271
+ var i;
6272
+ return ((i = t.style) == null ? void 0 : i.width) || t.offsetWidth;
6265
6273
  });
6266
6274
  this.$emit("column-resize", { index: this.colResizing.columnIndex, widths: e }), this.colResizing.dragging = !1, this.colResizing.columnIndex = null, this.colResizing.startCursorX = null, this.colResizing.columnEl = null, this.colResizing.nextColumnEl = null, this.colResizing.colWidth = null, this.colResizing.nextColWidth = null;
6267
6275
  }, 0);
6268
6276
  },
6269
6277
  initPagination() {
6270
- var o, n, i;
6271
- 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 }];
6278
+ var o, n, l;
6279
+ const e = (n = (o = this.pagination) == null ? void 0 : o.itemsPerPage) != null ? n : 20, t = ((l = this.pagination) == null ? void 0 : l.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6272
6280
  t.find((a) => {
6273
6281
  var r;
6274
6282
  return ((r = a == null ? void 0 : a.value) != null ? r : a) === +e;
@@ -6279,27 +6287,27 @@ const ge = 15, Qs = {
6279
6287
  value: ["string", "number"].includes(typeof a) ? ~~a : (r = a.value) != null ? r : a.label
6280
6288
  };
6281
6289
  }), this.paginationConfig.itemsPerPageOptions.sort((a, r) => a.value < r.value ? -1 : 1);
6282
- const l = this.paginationConfig.itemsPerPageOptions.shift();
6283
- this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
6290
+ const i = this.paginationConfig.itemsPerPageOptions.shift();
6291
+ this.paginationConfig.itemsPerPageOptions.push(i), this.updatePaginationConfig({
6284
6292
  itemsPerPage: e,
6285
6293
  page: this.pagination.page || 1,
6286
6294
  total: this.pagination.total || this.items.length
6287
6295
  });
6288
6296
  },
6289
- updatePaginationConfig({ itemsPerPage: e, page: t, total: l }) {
6290
- l && (this.paginationConfig.total = l), e !== void 0 && (this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = 1, { page: t } = this.paginationConfig, l = this.paginationConfig.total, this.paginationConfig.start = 1, this.paginationConfig.end = l >= e * t ? e * t : l % (e * t), this.paginationConfig.pagesCount = Math.ceil(l / e)), t && this.goToPage(t);
6297
+ updatePaginationConfig({ itemsPerPage: e, page: t, total: i }) {
6298
+ i && (this.paginationConfig.total = i), e !== void 0 && (this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = 1, { page: t } = this.paginationConfig, i = this.paginationConfig.total, this.paginationConfig.start = 1, this.paginationConfig.end = i >= e * t ? e * t : i % (e * t), this.paginationConfig.pagesCount = Math.ceil(i / e)), t && this.goToPage(t);
6291
6299
  },
6292
6300
  async goToPage(e) {
6293
6301
  ["-1", "+1"].includes(e) ? this.paginationConfig.page += +e : this.paginationConfig.page = e;
6294
- const { itemsPerPage: t, total: l } = this.paginationConfig;
6295
- 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();
6302
+ const { itemsPerPage: t, total: i } = this.paginationConfig;
6303
+ 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 || i), typeof this.fetch == "function" && await this.callApiFetch();
6296
6304
  },
6297
6305
  async callApiFetch() {
6298
- const { page: e, start: t, end: l, total: o, itemsPerPage: n } = this.paginationConfig;
6306
+ const { page: e, start: t, end: i, total: o, itemsPerPage: n } = this.paginationConfig;
6299
6307
  return await this.fetch({
6300
6308
  page: e,
6301
6309
  start: t,
6302
- end: l || o,
6310
+ end: i || o,
6303
6311
  total: o,
6304
6312
  itemsPerPage: n || o,
6305
6313
  sorting: this.activeSorting
@@ -6336,22 +6344,22 @@ const ge = 15, Qs = {
6336
6344
  }
6337
6345
  }
6338
6346
  }, Zs = /* @__PURE__ */ v(Qs, [["render", Js]]), ea = ["role", "aria-pressed", "tabindex"];
6339
- function ta(e, t, l, o, n, i) {
6347
+ function ta(e, t, i, o, n, l) {
6340
6348
  return s(), u("span", C({ class: "w-tag" }, z(e.$attrs, !0), {
6341
6349
  onClick: t[1] || (t[1] = (a) => {
6342
- e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6350
+ e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
6343
6351
  }),
6344
6352
  onKeypress: t[2] || (t[2] = W((a) => {
6345
- e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
6353
+ e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
6346
6354
  }, ["enter"])),
6347
- class: i.classes,
6348
- role: l.modelValue !== -1 && "button",
6349
- "aria-pressed": l.modelValue !== -1 && (l.modelValue ? "true" : "false"),
6350
- tabindex: l.modelValue !== -1 && 0,
6351
- style: i.styles
6355
+ class: l.classes,
6356
+ role: i.modelValue !== -1 && "button",
6357
+ "aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
6358
+ tabindex: i.modelValue !== -1 && 0,
6359
+ style: l.styles
6352
6360
  }), [
6353
6361
  p(e.$slots, "default"),
6354
- l.closable && l.modelValue ? (s(), u("i", {
6362
+ i.closable && i.modelValue ? (s(), u("i", {
6355
6363
  key: 0,
6356
6364
  class: "w-icon w-tag__closable wi-cross",
6357
6365
  onClick: t[0] || (t[0] = E((a) => {
@@ -6362,7 +6370,7 @@ function ta(e, t, l, o, n, i) {
6362
6370
  })) : c("", !0)
6363
6371
  ], 16, ea);
6364
6372
  }
6365
- const la = {
6373
+ const ia = {
6366
6374
  name: "w-tag",
6367
6375
  props: {
6368
6376
  modelValue: { type: [Boolean, Number], default: -1 },
@@ -6411,42 +6419,42 @@ const la = {
6411
6419
  };
6412
6420
  }
6413
6421
  }
6414
- }, ia = /* @__PURE__ */ v(la, [["render", ta]]), sa = ["for"], aa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], oa = ["for"], na = ["for"];
6415
- function ra(e, t, l, o, n, i) {
6422
+ }, la = /* @__PURE__ */ v(ia, [["render", ta]]), sa = ["for"], aa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], oa = ["for"], na = ["for"];
6423
+ function ra(e, t, i, o, n, l) {
6416
6424
  const a = $("w-icon");
6417
- 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 }, {
6425
+ return s(), g(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 }, {
6418
6426
  valid: e.valid,
6419
6427
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
6420
- wrap: i.hasLabel && l.labelPosition !== "inside",
6428
+ wrap: l.hasLabel && i.labelPosition !== "inside",
6421
6429
  onReset: t[7] || (t[7] = (r) => {
6422
6430
  e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
6423
6431
  }),
6424
- class: i.classes
6432
+ class: l.classes
6425
6433
  }), {
6426
- default: g(() => [
6427
- l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
6428
- e.$slots.default || l.label ? (s(), u("label", {
6434
+ default: m(() => [
6435
+ i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
6436
+ e.$slots.default || i.label ? (s(), u("label", {
6429
6437
  key: 0,
6430
6438
  class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
6431
6439
  for: `w-textarea--${e._.uid}`
6432
6440
  }, [
6433
6441
  p(e.$slots, "default", {}, () => [
6434
- S(_(l.label), 1)
6442
+ S(_(i.label), 1)
6435
6443
  ])
6436
6444
  ], 10, sa)) : c("", !0)
6437
6445
  ], 64)) : c("", !0),
6438
6446
  w("div", {
6439
- class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
6447
+ class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
6440
6448
  }, [
6441
- l.innerIconLeft ? (s(), m(a, {
6449
+ i.innerIconLeft ? (s(), g(a, {
6442
6450
  key: 0,
6443
6451
  class: "w-textarea__icon w-textarea__icon--inner-left",
6444
6452
  tag: "label",
6445
6453
  for: `w-textarea--${e._.uid}`,
6446
6454
  onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
6447
6455
  }, {
6448
- default: g(() => [
6449
- S(_(l.innerIconLeft), 1)
6456
+ default: m(() => [
6457
+ S(_(i.innerIconLeft), 1)
6450
6458
  ]),
6451
6459
  _: 1
6452
6460
  }, 8, ["for"])) : c("", !0),
@@ -6454,15 +6462,15 @@ function ra(e, t, l, o, n, i) {
6454
6462
  class: "w-textarea__textarea",
6455
6463
  ref: "textarea",
6456
6464
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
6457
- }, z(i.listeners, !0), {
6458
- onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
6459
- onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
6460
- onBlur: t[4] || (t[4] = (...r) => i.onBlur && i.onBlur(...r)),
6465
+ }, z(l.listeners, !0), {
6466
+ onInput: t[2] || (t[2] = (...r) => l.onInput && l.onInput(...r)),
6467
+ onFocus: t[3] || (t[3] = (...r) => l.onFocus && l.onFocus(...r)),
6468
+ onBlur: t[4] || (t[4] = (...r) => l.onBlur && l.onBlur(...r)),
6461
6469
  id: `w-textarea--${e._.uid}`,
6462
6470
  name: e.inputName,
6463
- placeholder: l.placeholder || null,
6464
- rows: l.rows || null,
6465
- cols: l.cols || null,
6471
+ placeholder: i.placeholder || null,
6472
+ rows: i.rows || null,
6473
+ cols: i.cols || null,
6466
6474
  readonly: e.isReadonly || null,
6467
6475
  "aria-readonly": e.isReadonly ? "true" : "false",
6468
6476
  disabled: e.isDisabled || null,
@@ -6471,38 +6479,38 @@ function ra(e, t, l, o, n, i) {
6471
6479
  }), null, 16, aa), [
6472
6480
  [be, n.inputValue]
6473
6481
  ]),
6474
- l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 1 }, [
6475
- e.$slots.default || l.label ? (s(), u("label", {
6482
+ i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 1 }, [
6483
+ e.$slots.default || i.label ? (s(), u("label", {
6476
6484
  key: 0,
6477
6485
  class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses]),
6478
6486
  for: `w-textarea--${e._.uid}`
6479
6487
  }, [
6480
6488
  p(e.$slots, "default", {}, () => [
6481
- S(_(l.label), 1)
6489
+ S(_(i.label), 1)
6482
6490
  ])
6483
6491
  ], 10, oa)) : c("", !0)
6484
6492
  ], 64)) : c("", !0),
6485
- l.innerIconRight ? (s(), m(a, {
6493
+ i.innerIconRight ? (s(), g(a, {
6486
6494
  key: 2,
6487
6495
  class: "w-textarea__icon w-textarea__icon--inner-right",
6488
6496
  tag: "label",
6489
6497
  for: `w-textarea--${e._.uid}`,
6490
6498
  onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
6491
6499
  }, {
6492
- default: g(() => [
6493
- S(_(l.innerIconRight), 1)
6500
+ default: m(() => [
6501
+ S(_(i.innerIconRight), 1)
6494
6502
  ]),
6495
6503
  _: 1
6496
6504
  }, 8, ["for"])) : c("", !0)
6497
6505
  ], 2),
6498
- l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
6499
- e.$slots.default || l.label ? (s(), u("label", {
6506
+ i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
6507
+ e.$slots.default || i.label ? (s(), u("label", {
6500
6508
  key: 0,
6501
6509
  class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
6502
6510
  for: `w-textarea--${e._.uid}`
6503
6511
  }, [
6504
6512
  p(e.$slots, "default", {}, () => [
6505
- S(_(l.label), 1)
6513
+ S(_(i.label), 1)
6506
6514
  ])
6507
6515
  ], 10, na)) : c("", !0)
6508
6516
  ], 64)) : c("", !0)
@@ -6546,7 +6554,7 @@ const da = {
6546
6554
  },
6547
6555
  computed: {
6548
6556
  listeners() {
6549
- const { input: e, focus: t, blur: l, ...o } = this.$attrs;
6557
+ const { input: e, focus: t, blur: i, ...o } = this.$attrs;
6550
6558
  return o;
6551
6559
  },
6552
6560
  hasValue() {
@@ -6627,19 +6635,19 @@ const da = {
6627
6635
  }
6628
6636
  }
6629
6637
  }, ua = /* @__PURE__ */ v(da, [["render", ra]]), ha = ["innerHTML"], ca = ["innerHTML"];
6630
- function pa(e, t, l, o, n, i) {
6638
+ function pa(e, t, i, o, n, l) {
6631
6639
  return s(), u("ul", {
6632
- class: f(["w-timeline", i.classes])
6640
+ class: f(["w-timeline", l.classes])
6633
6641
  }, [
6634
- (s(!0), u(k, null, L(l.items, (a, r) => (s(), u("li", {
6642
+ (s(!0), u(k, null, L(i.items, (a, r) => (s(), u("li", {
6635
6643
  class: "w-timeline-item",
6636
6644
  key: r
6637
6645
  }, [
6638
- (s(), m(V(a[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
6639
- class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
6646
+ (s(), g(V(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
6647
+ class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
6640
6648
  }, {
6641
- default: g(() => [
6642
- S(_(a[l.itemIconKey] || l.icon), 1)
6649
+ default: m(() => [
6650
+ S(_(a[i.itemIconKey] || i.icon), 1)
6643
6651
  ]),
6644
6652
  _: 2
6645
6653
  }, 1032, ["class"])),
@@ -6653,12 +6661,12 @@ function pa(e, t, l, o, n, i) {
6653
6661
  index: r + 1
6654
6662
  }, () => [
6655
6663
  w("div", {
6656
- class: f(["w-timeline-item__title", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }]),
6657
- innerHTML: a[l.itemTitleKey]
6664
+ class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
6665
+ innerHTML: a[i.itemTitleKey]
6658
6666
  }, null, 10, ha),
6659
6667
  w("div", {
6660
6668
  class: "w-timeline-item__content",
6661
- innerHTML: a[l.itemContentKey]
6669
+ innerHTML: a[i.itemContentKey]
6662
6670
  }, null, 8, ca)
6663
6671
  ])
6664
6672
  ]))), 128))
@@ -6686,11 +6694,11 @@ const fa = {
6686
6694
  };
6687
6695
  }
6688
6696
  }
6689
- }, ga = /* @__PURE__ */ v(fa, [["render", pa]]);
6690
- function ma(e, t, l, o, n, i) {
6697
+ }, ma = /* @__PURE__ */ v(fa, [["render", pa]]);
6698
+ function ga(e, t, i, o, n, l) {
6691
6699
  return s(), u("div", {
6692
- class: f(["w-toolbar", i.classes]),
6693
- style: R(i.styles)
6700
+ class: f(["w-toolbar", l.classes]),
6701
+ style: R(l.styles)
6694
6702
  }, [
6695
6703
  p(e.$slots, "default")
6696
6704
  ], 6);
@@ -6744,20 +6752,20 @@ const ba = {
6744
6752
  };
6745
6753
  }
6746
6754
  }
6747
- }, ya = /* @__PURE__ */ v(ba, [["render", ma]]);
6748
- function wa(e, t, l, o, n, i) {
6755
+ }, ya = /* @__PURE__ */ v(ba, [["render", ga]]);
6756
+ function wa(e, t, i, o, n, l) {
6749
6757
  return s(), u(k, null, [
6750
- p(e.$slots, "activator", { on: i.activatorEventHandlers }),
6758
+ p(e.$slots, "activator", { on: l.activatorEventHandlers }),
6751
6759
  I(O, {
6752
- name: i.transitionName,
6760
+ name: l.transitionName,
6753
6761
  appear: ""
6754
6762
  }, {
6755
- default: g(() => [
6763
+ default: m(() => [
6756
6764
  e.detachableVisible ? (s(), u("div", {
6757
- class: f(["w-tooltip", i.classes]),
6765
+ class: f(["w-tooltip", l.classes]),
6758
6766
  ref: "detachable",
6759
6767
  key: e._.uid,
6760
- style: R(i.styles)
6768
+ style: R(l.styles)
6761
6769
  }, [
6762
6770
  p(e.$slots, "default")
6763
6771
  ], 6)) : c("", !0)
@@ -6847,10 +6855,10 @@ const va = {
6847
6855
  return !this.showOnClick && !t ? e = {
6848
6856
  focus: this.open,
6849
6857
  blur: this.close,
6850
- mouseenter: (l) => {
6851
- this.hoveringActivator = !0, this.open(l);
6858
+ mouseenter: (i) => {
6859
+ this.hoveringActivator = !0, this.open(i);
6852
6860
  },
6853
- mouseleave: (l) => {
6861
+ mouseleave: (i) => {
6854
6862
  this.hoveringActivator = !1, this.close();
6855
6863
  }
6856
6864
  } : (this.enableTouch || this.showOnClick) && (e = { click: this.toggle }), e;
@@ -6866,9 +6874,9 @@ const va = {
6866
6874
  }
6867
6875
  }
6868
6876
  }, ka = /* @__PURE__ */ v(va, [["render", wa]]);
6869
- function _a(e, t, l, o, n, i) {
6870
- return s(), m(O, C({ name: "bounce" }, e.$props), {
6871
- default: g(() => [
6877
+ function _a(e, t, i, o, n, l) {
6878
+ return s(), g(O, C({ name: "bounce" }, e.$props), {
6879
+ default: m(() => [
6872
6880
  p(e.$slots, "default")
6873
6881
  ]),
6874
6882
  _: 3
@@ -6881,22 +6889,22 @@ const Ca = {
6881
6889
  duration: { type: [Number, String] }
6882
6890
  }
6883
6891
  }, Sa = /* @__PURE__ */ v(Ca, [["render", _a]]);
6884
- function Ba(e, t, l, o, n, i) {
6885
- return s(), m(O, {
6892
+ function Ba(e, t, i, o, n, l) {
6893
+ return s(), g(O, {
6886
6894
  name: "expand",
6887
6895
  mode: "out-in",
6888
6896
  css: !1,
6889
- onBeforeAppear: i.beforeAppear,
6890
- onAppear: i.appear,
6891
- onAfterAppear: i.afterAppear,
6892
- onBeforeEnter: i.beforeEnter,
6893
- onEnter: i.enter,
6894
- onAfterEnter: i.afterEnter,
6895
- onBeforeLeave: i.beforeLeave,
6896
- onLeave: i.leave,
6897
- onAfterLeave: i.afterLeave
6897
+ onBeforeAppear: l.beforeAppear,
6898
+ onAppear: l.appear,
6899
+ onAfterAppear: l.afterAppear,
6900
+ onBeforeEnter: l.beforeEnter,
6901
+ onEnter: l.enter,
6902
+ onAfterEnter: l.afterEnter,
6903
+ onBeforeLeave: l.beforeLeave,
6904
+ onLeave: l.leave,
6905
+ onAfterLeave: l.afterLeave
6898
6906
  }, {
6899
- default: g(() => [
6907
+ default: m(() => [
6900
6908
  p(e.$slots, "default")
6901
6909
  ]),
6902
6910
  _: 3
@@ -6993,9 +7001,9 @@ const $a = {
6993
7001
  }
6994
7002
  }
6995
7003
  }, Va = /* @__PURE__ */ v($a, [["render", Ba]]);
6996
- function Ia(e, t, l, o, n, i) {
6997
- return s(), m(O, C({ name: "fade" }, e.$props), {
6998
- default: g(() => [
7004
+ function Ia(e, t, i, o, n, l) {
7005
+ return s(), g(O, C({ name: "fade" }, e.$props), {
7006
+ default: m(() => [
6999
7007
  p(e.$slots, "default")
7000
7008
  ]),
7001
7009
  _: 3
@@ -7008,9 +7016,9 @@ const Ta = {
7008
7016
  duration: { type: [Number, String] }
7009
7017
  }
7010
7018
  }, Ra = /* @__PURE__ */ v(Ta, [["render", Ia]]);
7011
- function La(e, t, l, o, n, i) {
7012
- return s(), m(O, C({ name: "scale" }, e.$props), {
7013
- default: g(() => [
7019
+ function La(e, t, i, o, n, l) {
7020
+ return s(), g(O, C({ name: "scale" }, e.$props), {
7021
+ default: m(() => [
7014
7022
  p(e.$slots, "default")
7015
7023
  ]),
7016
7024
  _: 3
@@ -7023,9 +7031,9 @@ const xa = {
7023
7031
  duration: { type: [Number, String] }
7024
7032
  }
7025
7033
  }, Oa = /* @__PURE__ */ v(xa, [["render", La]]);
7026
- function Pa(e, t, l, o, n, i) {
7027
- return s(), m(O, C({ name: "scale-fade" }, e.$props), {
7028
- default: g(() => [
7034
+ function Pa(e, t, i, o, n, l) {
7035
+ return s(), g(O, C({ name: "scale-fade" }, e.$props), {
7036
+ default: m(() => [
7029
7037
  p(e.$slots, "default")
7030
7038
  ]),
7031
7039
  _: 3
@@ -7038,9 +7046,9 @@ const za = {
7038
7046
  duration: { type: [Number, String] }
7039
7047
  }
7040
7048
  }, Ma = /* @__PURE__ */ v(za, [["render", Pa]]);
7041
- function Ea(e, t, l, o, n, i) {
7042
- return s(), m(O, C({ name: i.transitionName }, e.$props), {
7043
- default: g(() => [
7049
+ function Ea(e, t, i, o, n, l) {
7050
+ return s(), g(O, C({ name: l.transitionName }, e.$props), {
7051
+ default: m(() => [
7044
7052
  p(e.$slots, "default")
7045
7053
  ]),
7046
7054
  _: 3
@@ -7065,9 +7073,9 @@ const Wa = {
7065
7073
  }
7066
7074
  }
7067
7075
  }, Aa = /* @__PURE__ */ v(Wa, [["render", Ea]]);
7068
- function Na(e, t, l, o, n, i) {
7069
- return s(), m(O, C({ name: i.transitionName }, e.$props), {
7070
- default: g(() => [
7076
+ function Na(e, t, i, o, n, l) {
7077
+ return s(), g(O, C({ name: l.transitionName }, e.$props), {
7078
+ default: m(() => [
7071
7079
  p(e.$slots, "default")
7072
7080
  ]),
7073
7081
  _: 3
@@ -7092,9 +7100,9 @@ const Ka = {
7092
7100
  }
7093
7101
  }
7094
7102
  }, Ha = /* @__PURE__ */ v(Ka, [["render", Na]]);
7095
- function Da(e, t, l, o, n, i) {
7096
- return s(), m(O, C({ name: "twist" }, e.$props), {
7097
- default: g(() => [
7103
+ function Da(e, t, i, o, n, l) {
7104
+ return s(), g(O, C({ name: "twist" }, e.$props), {
7105
+ default: m(() => [
7098
7106
  p(e.$slots, "default")
7099
7107
  ]),
7100
7108
  _: 3
@@ -7110,68 +7118,68 @@ const Fa = {
7110
7118
  key: 1,
7111
7119
  class: "ml1"
7112
7120
  };
7113
- function Xa(e, t, l, o, n, i) {
7121
+ function Xa(e, t, i, o, n, l) {
7114
7122
  const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7115
7123
  return s(), u("ul", {
7116
- class: f(["w-tree", i.classes])
7124
+ class: f(["w-tree", l.classes])
7117
7125
  }, [
7118
7126
  (s(!0), u(k, null, L(e.currentDepthItems, (h, y) => (s(), u("li", {
7119
- class: f(["w-tree__item", i.itemClasses(h)]),
7127
+ class: f(["w-tree__item", l.itemClasses(h)]),
7120
7128
  key: y
7121
7129
  }, [
7122
- (s(), m(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7123
- onClick: (B) => !l.disabled && !h.disabled && i.onLabelClick(h, B),
7124
- onKeydown: (B) => !l.disabled && !h.disabled && i.onLabelKeydown(h, B),
7125
- tabindex: i.getTreeItemTabindex(h)
7130
+ (s(), g(V(l.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7131
+ onClick: (B) => !i.disabled && !h.disabled && l.onLabelClick(h, B),
7132
+ onKeydown: (B) => !i.disabled && !h.disabled && l.onLabelKeydown(h, B),
7133
+ tabindex: l.getTreeItemTabindex(h)
7126
7134
  }), {
7127
- default: g(() => [
7128
- (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(a, {
7135
+ default: m(() => [
7136
+ (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (s(), g(a, {
7129
7137
  key: 0,
7130
7138
  class: "w-tree__item-expand",
7131
- onClick: E((B) => !l.disabled && !h.disabled && i.onLabelClick(h, B), ["stop"]),
7139
+ onClick: E((B) => !i.disabled && !h.disabled && l.onLabelClick(h, B), ["stop"]),
7132
7140
  color: "inherit",
7133
- icon: h.open && l.expandOpenIcon || l.expandIcon,
7141
+ icon: h.open && i.expandOpenIcon || i.expandIcon,
7134
7142
  "icon-props": { rotate90a: !h.open },
7135
7143
  tabindex: -1,
7136
- disabled: l.disabled || h.disabled,
7144
+ disabled: i.disabled || h.disabled,
7137
7145
  text: "",
7138
7146
  sm: ""
7139
7147
  }, null, 8, ["onClick", "icon", "icon-props", "disabled"])) : c("", !0),
7140
7148
  p(e.$slots, "item", {
7141
7149
  item: h.originalItem,
7142
- depth: l.depth,
7150
+ depth: i.depth,
7143
7151
  path: h.path,
7144
7152
  open: h.open
7145
7153
  }, () => {
7146
7154
  var B;
7147
7155
  return [
7148
- i.itemIcon(h) ? (s(), m(r, {
7156
+ l.itemIcon(h) ? (s(), g(r, {
7149
7157
  key: 0,
7150
7158
  class: "w-tree__item-icon",
7151
- color: h.originalItem[l.itemIconColorKey] || l.iconColor
7159
+ color: h.originalItem[i.itemIconColorKey] || i.iconColor
7152
7160
  }, {
7153
- default: g(() => [
7154
- S(_(i.itemIcon(h)), 1)
7161
+ default: m(() => [
7162
+ S(_(l.itemIcon(h)), 1)
7155
7163
  ]),
7156
7164
  _: 2
7157
7165
  }, 1032, ["color"])) : c("", !0),
7158
7166
  w("span", {
7159
7167
  innerHTML: h.label
7160
7168
  }, null, 8, Ua),
7161
- l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : c("", !0)
7169
+ i.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : c("", !0)
7162
7170
  ];
7163
7171
  })
7164
7172
  ]),
7165
7173
  _: 2
7166
7174
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
7167
- (s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
7168
- y: !l.noTransition || null,
7169
- onAfterEnter: (B) => e.$emit("open", i.emitPayload(h)),
7170
- onAfterLeave: (B) => e.$emit("close", i.emitPayload(h))
7175
+ (s(), g(V(i.noTransition ? "div" : "w-transition-expand"), {
7176
+ y: !i.noTransition || null,
7177
+ onAfterEnter: (B) => e.$emit("open", l.emitPayload(h)),
7178
+ onAfterLeave: (B) => e.$emit("close", l.emitPayload(h))
7171
7179
  }, {
7172
- default: g(() => [
7173
- h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
7174
- depth: l.depth + 1,
7180
+ default: m(() => [
7181
+ h.children && h.open ? (s(), g(d, C({ key: 0 }, e.$props, {
7182
+ depth: i.depth + 1,
7175
7183
  data: h.originalItem.children,
7176
7184
  parent: h,
7177
7185
  onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
@@ -7182,7 +7190,7 @@ function Xa(e, t, l, o, n, i) {
7182
7190
  onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
7183
7191
  "onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
7184
7192
  }), {
7185
- item: g(({ item: B, depth: b, path: T, open: x }) => [
7193
+ item: m(({ item: B, depth: b, path: T, open: x }) => [
7186
7194
  p(e.$slots, "item", {
7187
7195
  item: B,
7188
7196
  depth: b,
@@ -7247,19 +7255,19 @@ const Ya = {
7247
7255
  updateCurrentDepthTree(e, t = []) {
7248
7256
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
7249
7257
  return U(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7250
- Array.isArray(e) || (e = [e]), e.forEach((l, o) => {
7251
- var i, a;
7258
+ Array.isArray(e) || (e = [e]), e.forEach((i, o) => {
7259
+ var l, a;
7252
7260
  const n = {
7253
- originalItem: l,
7261
+ originalItem: i,
7254
7262
  _uid: this.depth.toString() + (o + 1),
7255
- label: l[this.itemLabelKey],
7256
- children: !!l.children,
7257
- branch: l.branch,
7258
- route: l[this.itemRouteKey],
7259
- disabled: l[this.itemDisabledKey],
7260
- selected: ((i = t[o]) == null ? void 0 : i.selected) || !1,
7263
+ label: i[this.itemLabelKey],
7264
+ children: !!i.children,
7265
+ branch: i.branch,
7266
+ route: i[this.itemRouteKey],
7267
+ disabled: i[this.itemDisabledKey],
7268
+ selected: ((l = t[o]) == null ? void 0 : l.selected) || !1,
7261
7269
  depth: this.depth,
7262
- open: !!(((a = t[o]) == null ? void 0 : a.open) || this.expandAll || l[this.itemOpenKey]),
7270
+ open: !!(((a = t[o]) == null ? void 0 : a.open) || this.expandAll || i[this.itemOpenKey]),
7263
7271
  parent: this.parent || null,
7264
7272
  path: []
7265
7273
  };
@@ -7274,9 +7282,9 @@ const Ya = {
7274
7282
  },
7275
7283
  getTreeItemPath(e) {
7276
7284
  const t = [e];
7277
- let l = e.parent;
7278
- for (; l; )
7279
- t.push(l), l = l.parent;
7285
+ let i = e.parent;
7286
+ for (; i; )
7287
+ t.push(i), i = i.parent;
7280
7288
  return t.reverse(), t;
7281
7289
  },
7282
7290
  getTreeItemPathForOutput(e) {
@@ -7284,8 +7292,8 @@ const Ya = {
7284
7292
  },
7285
7293
  expandDepth(e, t) {
7286
7294
  typeof t == "boolean" ? e.open = t : e.open = !e.open;
7287
- const l = this.emitPayload(e);
7288
- return this.$emit(e.open ? "before-open" : "before-close", l), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", l), !0;
7295
+ const i = this.emitPayload(e);
7296
+ return this.$emit(e.open ? "before-open" : "before-close", i), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", i), !0;
7289
7297
  },
7290
7298
  onLabelClick(e, t) {
7291
7299
  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);
@@ -7294,22 +7302,22 @@ const Ya = {
7294
7302
  },
7295
7303
  onLabelKeydown(e, t) {
7296
7304
  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))) {
7297
- 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;
7298
- [...o].some((a, r) => a.isSameNode(n) ? (o[r + i] && o[r + i].focus(), !0) : !1);
7305
+ const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.which === 38 ? -1 : 1;
7306
+ [...o].some((a, r) => a.isSameNode(n) ? (o[r + l] && o[r + l].focus(), !0) : !1);
7299
7307
  }
7300
7308
  t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
7301
7309
  },
7302
7310
  emitItemSelection(e, t) {
7303
- const l = this.emitPayload(e, t);
7304
- this.$emit("update:model-value", l), this.selectable && this.$emit("select", l);
7311
+ const i = this.emitPayload(e, t);
7312
+ this.$emit("update:model-value", i), this.selectable && this.$emit("select", i);
7305
7313
  },
7306
7314
  emitPayload(e, t) {
7307
- const l = {
7315
+ const i = {
7308
7316
  item: e.originalItem,
7309
7317
  depth: this.depth,
7310
7318
  path: this.getTreeItemPathForOutput(e)
7311
7319
  };
7312
- return t && (l.e = t), (e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.selectable && (l.selected = e.selected), l;
7320
+ return t && (i.e = t), (e.children || e.branch && !this.unexpandableEmpty) && (i.open = e.open), this.selectable && (i.selected = e.selected), i;
7313
7321
  },
7314
7322
  getPreviousSibling(e, t) {
7315
7323
  for (; t && (e = e.previousElementSibling); )
@@ -7356,7 +7364,7 @@ const Ya = {
7356
7364
  __proto__: null,
7357
7365
  WAccordion: Ye,
7358
7366
  WAlert: Ze,
7359
- WApp: it,
7367
+ WApp: lt,
7360
7368
  WBadge: ot,
7361
7369
  WBreadcrumbs: ut,
7362
7370
  WButton: wt,
@@ -7367,34 +7375,34 @@ const Ya = {
7367
7375
  WDatePicker: Dt,
7368
7376
  WDialog: Ut,
7369
7377
  WDivider: Gt,
7370
- WDrawer: tl,
7371
- WFlex: sl,
7372
- WForm: rl,
7373
- WFormElement: hl,
7374
- WGrid: fl,
7375
- WIcon: bl,
7376
- WImage: kl,
7377
- WInput: Ol,
7378
- WList: Ml,
7379
- WMenu: Al,
7380
- WNotification: Hl,
7381
- WOverlay: jl,
7382
- WParallax: Yl,
7383
- WProgress: ii,
7384
- WRadio: hi,
7385
- WRadios: gi,
7386
- WRating: vi,
7387
- WScrollable: Si,
7388
- WSelect: Pi,
7389
- WSlider: Xi,
7390
- WSpinner: Qi,
7378
+ WDrawer: ti,
7379
+ WFlex: si,
7380
+ WForm: ri,
7381
+ WFormElement: hi,
7382
+ WGrid: fi,
7383
+ WIcon: bi,
7384
+ WImage: ki,
7385
+ WInput: Oi,
7386
+ WList: Mi,
7387
+ WMenu: Ai,
7388
+ WNotification: Hi,
7389
+ WOverlay: ji,
7390
+ WParallax: Yi,
7391
+ WProgress: ll,
7392
+ WRadio: hl,
7393
+ WRadios: ml,
7394
+ WRating: vl,
7395
+ WScrollable: Sl,
7396
+ WSelect: Pl,
7397
+ WSlider: Xl,
7398
+ WSpinner: Ql,
7391
7399
  WSteps: ts,
7392
7400
  WSwitch: ds,
7393
7401
  WTabs: _s,
7394
7402
  WTable: Zs,
7395
- WTag: ia,
7403
+ WTag: la,
7396
7404
  WTextarea: ua,
7397
- WTimeline: ga,
7405
+ WTimeline: ma,
7398
7406
  WToolbar: ya,
7399
7407
  WTooltip: ka,
7400
7408
  WTransitionBounce: Sa,