wave-ui 3.13.5 → 3.14.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,16 +1,12 @@
1
- var ke = Object.defineProperty;
2
- var ve = (e, t, i) => t in e ? ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var H = (e, t, i) => (ve(e, typeof t != "symbol" ? t + "" : t, i), i), ne = (e, t, i) => {
4
- if (!t.has(e))
5
- throw TypeError("Cannot " + i);
1
+ var _e = Object.defineProperty;
2
+ var de = (e) => {
3
+ throw TypeError(e);
6
4
  };
7
- var X = (e, t, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get(e)), Q = (e, t, i) => {
8
- if (t.has(e))
9
- throw TypeError("Cannot add the same private member more than once");
10
- t instanceof WeakSet ? t.add(e) : t.set(e, i);
11
- }, Z = (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 G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as Ce, createVNode as I, TransitionGroup as se, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as R, mergeProps as B, createElementVNode as y, createCommentVNode as p, createApp as Se, defineComponent as Be, inject as _e, withKeys as E, withModifiers as z, renderSlot as c, createTextVNode as S, toDisplayString as C, normalizeStyle as L, toHandlers as oe, Transition as O, resolveDynamicComponent as T, normalizeProps as te, resolveDirective as ge, withDirectives as W, createSlots as J, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
- const Ie = G({
5
+ var $e = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
+ var H = (e, t, i) => $e(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
7
+ var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
8
+ import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as g, Teleport as Ve, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ie, defineComponent as Te, inject as Le, withKeys as E, withModifiers as M, renderSlot as c, createTextVNode as S, toDisplayString as C, normalizeStyle as R, toHandlers as ne, Transition as P, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as Re, KeepAlive as xe } from "vue";
9
+ const Pe = Z({
14
10
  on: "#app",
15
11
  // Sets the Wave UI root node. If not found, will default to `body`.
16
12
  breakpoints: {
@@ -70,41 +66,82 @@ const Ie = G({
70
66
  },
71
67
  presets: {}
72
68
  // User presets for each component.
73
- }), ye = (e, t = Ie) => {
74
- if (!Object.keys(t).length)
75
- t = Object.assign(t, e);
69
+ }), Ce = (e, t = Pe) => {
70
+ if (!Object.keys(t).length) t = Object.assign(t, e);
76
71
  else
77
72
  for (const i in e) {
78
- const o = e[i];
79
- typeof o == "object" ? ye(e[i], t[i]) : t[i] = o;
73
+ const s = e[i];
74
+ typeof s == "object" && typeof t[i] == "object" ? Ce(e[i], t[i]) : t[i] = s;
80
75
  }
81
76
  return t;
82
- }, F = (e) => console.warn(`Wave UI: ${e}`), ee = (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) => {
77
+ }, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), Oe = (e) => {
83
78
  ["light", "dark"].forEach((t) => {
79
+ var s;
84
80
  const i = e.colors[t];
85
81
  i.shades = {};
86
- for (let o in i) {
87
- if (o === "shades")
88
- continue;
89
- o = { label: o, color: i[o].replace("#", "") };
90
- const n = o.color;
91
- n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
92
- for (let l = 1; l <= 3; l++) {
93
- const a = re(`#${o.color}`, l * 40), r = re(`#${o.color}`, -l * 40);
94
- i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
82
+ for (const n in i) {
83
+ if (n === "shades") continue;
84
+ const l = i[n], a = { label: n, color: (((s = i[n]) == null ? void 0 : s.color) ?? i[n]).replace("#", "") }, r = a.color;
85
+ r.length === 3 && (a.color = r[0] + "" + r[0] + r[1] + r[1] + r[2] + r[2]);
86
+ for (let d = 1; d <= 6; d++) {
87
+ const h = We(`#${a.color}`, d * ((l == null ? void 0 : l.lightIncrement) ?? 16) + ((l == null ? void 0 : l.lightOffset) ?? 0)), y = Ke(`#${a.color}`, d * ((l == null ? void 0 : l.darkIncrement) ?? 12.4) + ((l == null ? void 0 : l.darkOffset) ?? 0));
88
+ i.shades[`${a.label}-light${d}`] = h, i.shades[`${a.label}-dark${d}`] = y;
95
89
  }
96
90
  }
97
91
  });
98
- }, de = (e, t) => {
92
+ }, he = (e, t) => {
99
93
  const i = {
100
- ...t.reduce((o, n) => {
101
- o[n.label] = n.color;
94
+ ...t.reduce((s, n) => {
95
+ s[n.label] = n.color;
102
96
  const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
103
- return { ...o, ...l };
97
+ return { ...s, ...l };
104
98
  }, { ...e, ...e.shades })
105
99
  };
106
100
  return delete i.shades, i;
107
- }, ue = [
101
+ };
102
+ function G(e, t, i) {
103
+ return Math.min(Math.max(e, t), i);
104
+ }
105
+ function J(e) {
106
+ const t = e.toString(16);
107
+ return t.length === 1 && `0${t}` || t.length === 2 && t || F(`expected value from 0~255, got: ${e}`) || "";
108
+ }
109
+ function Me(e) {
110
+ return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
111
+ }
112
+ function ze(e) {
113
+ return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
114
+ }
115
+ function Ee(e) {
116
+ return `#${e.substring(1).split("").map((t) => `${t}${t}`).join("")}`;
117
+ }
118
+ function Ae(e) {
119
+ return Me(e) && e || ze(e) && Ee(e) || F(`expected color hex string, got '${e}'`) || "";
120
+ }
121
+ function ce(e) {
122
+ const t = Ae(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), n = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
123
+ return {
124
+ red: i,
125
+ green: s,
126
+ blue: n,
127
+ alpha: l,
128
+ hasAlpha: t.length === 9
129
+ };
130
+ }
131
+ function pe(e, t, i, s) {
132
+ return `#${J(e)}${J(t)}${J(i)}${s ? J(Math.floor(s * 255)) : ""}`;
133
+ }
134
+ function Se(e, t, i = 50) {
135
+ const s = ce(e), n = ce(t), l = G(i, 0, 100) / 100, a = 2 * l - 1, r = s.alpha - n.alpha, d = ((a * r === -1 ? a : (a + r) / (1 + a * r)) + 1) / 2, h = 1 - d, y = G(Math.round(s.red * d + n.red * h), 0, 255), B = G(Math.round(s.green * d + n.green * h), 0, 255), b = G(Math.round(s.blue * d + n.blue * h), 0, 255), I = s.alpha * l + n.alpha * (1 - l);
136
+ return s.hasAlpha || n.hasAlpha || I !== 1 ? pe(y, B, b, I) : pe(y, B, b);
137
+ }
138
+ function We(e, t = 15) {
139
+ return Se("#ffffff", e, t);
140
+ }
141
+ function Ke(e, t = 12.4) {
142
+ return Se("#000000", e, t);
143
+ }
144
+ const fe = [
108
145
  {
109
146
  label: "pink",
110
147
  color: "#e91e63",
@@ -451,45 +488,44 @@ const Ie = G({
451
488
  { label: "white", color: "#fff" },
452
489
  { label: "transparent", color: "transparent" },
453
490
  { label: "inherit", color: "inherit" }
454
- ], j = {
491
+ ], U = {
455
492
  cssScope: ".w-app",
456
493
  baseIncrement: 4
457
494
  };
458
- let ie = { keys: [], values: [] }, he = null;
459
- const Le = (e, t) => {
495
+ let se = { keys: [], values: [] }, me = null;
496
+ const Ne = (e, t) => {
497
+ var I;
460
498
  let i = "";
461
- const o = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: w } = j;
499
+ const s = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: y } = U;
462
500
  for (const V in h)
463
- i += `${w} .${V}--bg{background-color:var(--w-${V}-color)}${w} .${V}{color:var(--w-${V}-color)}`;
501
+ i += `${y} .${V}--bg{background-color:var(--w-${V}-color)}${y} .${V}{color:var(--w-${V}-color)}`;
464
502
  for (const V in d)
465
- i += `${w} .${V}--bg{background-color:${d[V]}}${w} .${V}{color:${d[V]}}`;
466
- const _ = { ...h, info: n, warning: l, success: a, error: r };
467
- for (const V in _)
468
- o[V] = _[V];
503
+ i += `${y} .${V}--bg{background-color:${d[V]}}${y} .${V}{color:${d[V]}}`;
504
+ const B = { ...h, info: n, warning: l, success: a, error: r };
505
+ for (const V in B) s[V] = ((I = B[V]) == null ? void 0 : I.color) ?? B[V];
469
506
  if (t)
470
- for (const V in d)
471
- o[V] = d[V];
507
+ for (const V in d) s[V] = d[V];
472
508
  let b = "";
473
- return Object.entries(o).forEach(([V, P]) => {
474
- b += `--w-${V}-color: ${P};`;
509
+ return Object.entries(s).forEach(([V, O]) => {
510
+ b += `--w-${V}-color: ${O};`;
475
511
  }), `:root{${b}}${i}`;
476
- }, Re = (e, t) => {
512
+ }, De = (e, t) => {
477
513
  let i = "";
478
- const { cssScope: o } = j;
514
+ const { cssScope: s } = U;
479
515
  return e.forEach(({ min: n, label: l }) => {
480
516
  if (l === "xs")
481
517
  for (let a = 0; a < t; a++)
482
- i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
518
+ i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
483
519
  else {
484
520
  i += `@media(min-width:${n}px){`;
485
521
  for (let a = 0; a < t; a++)
486
- i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
522
+ i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
487
523
  i += "}";
488
524
  }
489
525
  }), i;
490
- }, Pe = (e) => {
526
+ }, He = (e) => {
491
527
  let t = "";
492
- const { cssScope: i, baseIncrement: o } = j, n = [
528
+ const { cssScope: i, baseIncrement: s } = U, n = [
493
529
  "show{display:block}",
494
530
  "hide{display:none}",
495
531
  "d-flex{display:flex}",
@@ -526,64 +562,64 @@ const Le = (e, t) => {
526
562
  ], l = Array(12).fill();
527
563
  return e.forEach(({ label: a, min: r }) => {
528
564
  a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + // w-grid columns and gap.
529
- 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}}`);
565
+ 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) * s}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
530
566
  }), e.forEach(({ label: a, min: r, max: d }) => {
531
567
  t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + // w-grid columns and gap.
532
- l.map((h, w) => `.w-grid.${a}-columns${w + 1}{grid-template-columns:repeat(${w + 1},1fr);}`).join("") + l.map((h, w) => `.w-flex.${a}-gap${w + 1},.w-grid.${a}-gap${w + 1}{gap:${(w + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
568
+ 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) * s}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
533
569
  }), e.forEach(({ label: a, max: r }) => {
534
570
  a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
535
- 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}}`);
571
+ 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) * s}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
536
572
  }), t;
537
- }, ce = (e) => {
538
- const t = window.innerWidth, i = ie.values.slice(0);
573
+ }, ge = (e) => {
574
+ const t = window.innerWidth, i = se.values.slice(0);
539
575
  i.push(t), i.sort((n, l) => n - l);
540
- const o = ie.keys[i.indexOf(t)] || "xl";
541
- o !== he && (he = o, e.breakpoint = {
542
- name: o,
543
- xs: o === "xs",
544
- sm: o === "sm",
545
- md: o === "md",
546
- lg: o === "lg",
547
- xl: o === "xl",
576
+ const s = se.keys[i.indexOf(t)] || "xl";
577
+ s !== me && (me = s, e.breakpoint = {
578
+ name: s,
579
+ xs: s === "xs",
580
+ sm: s === "sm",
581
+ md: s === "md",
582
+ lg: s === "lg",
583
+ xl: s === "xl",
548
584
  width: t
549
585
  }), e.breakpoint.width = window.innerWidth;
550
- }, Oe = (e) => {
586
+ }, Fe = (e) => {
551
587
  const { config: t } = e;
552
- if (ie = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
588
+ if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
553
589
  const i = document.createElement("style");
554
- i.id = "wave-ui-styles", i.innerHTML = ze(t);
555
- const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
556
- o ? o.before(i) : document.head.appendChild(i);
590
+ i.id = "wave-ui-styles", i.innerHTML = Ue(t);
591
+ const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
592
+ s ? s.before(i) : document.head.appendChild(i);
557
593
  }
558
- ce(e), window.addEventListener("resize", () => ce(e));
559
- }, xe = (e, t) => {
594
+ ge(e), window.addEventListener("resize", () => ge(e));
595
+ }, je = (e, t, i) => {
560
596
  if (!document.getElementById("wave-ui-colors")) {
561
- const i = document.createElement("style");
562
- i.id = "wave-ui-colors", i.innerHTML = Le(e, t);
563
- const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
564
- o ? o.before(i) : document.head.appendChild(i);
597
+ const s = document.createElement("style");
598
+ s.id = "wave-ui-colors", s.innerHTML = Ne(e, t);
599
+ const n = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
600
+ n ? n.before(s) : document.head.appendChild(s);
565
601
  }
566
- }, ze = (e) => {
602
+ }, Ue = (e) => {
567
603
  const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
568
604
  const [, d = 0] = t[r - 1] || [];
569
605
  return { label: l, min: d ? d + 1 : 0, max: a };
570
- }), o = getComputedStyle(document.documentElement);
571
- j.cssScope = o.getPropertyValue("--w-css-scope"), j.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
606
+ }), s = getComputedStyle(document.documentElement);
607
+ U.cssScope = s.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
572
608
  let n = "";
573
- return n += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (n += Pe(i)), n;
574
- }, Me = ["innerHTML"];
575
- function Ee(e, t, i, o, n, l) {
609
+ return n += De(i, e.css.grid), e.css.breakpointLayoutClasses && (n += He(i)), n;
610
+ }, qe = ["innerHTML"];
611
+ function Xe(e, t, i, s, n, l) {
576
612
  const a = $("w-alert");
577
- return s(), g(Ce, { to: ".w-app" }, [
578
- I(se, {
613
+ return o(), g(Ve, { to: ".w-app" }, [
614
+ T(ae, {
579
615
  class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
580
616
  tag: "div",
581
617
  name: l.transition,
582
618
  appear: ""
583
619
  }, {
584
620
  default: m(() => [
585
- (s(!0), u(k, null, R(l.notifications, (r) => (s(), u(k, null, [
586
- r._value ? (s(), g(a, B({
621
+ (o(!0), u(k, null, x(l.notifications, (r) => (o(), u(k, null, [
622
+ r._value ? (o(), g(a, _({
587
623
  class: "white--bg",
588
624
  key: r._uid,
589
625
  modelValue: r._value,
@@ -592,9 +628,9 @@ function Ee(e, t, i, o, n, l) {
592
628
  ref_for: !0
593
629
  }, l.notifProps(r)), {
594
630
  default: m(() => [
595
- y("div", {
631
+ w("div", {
596
632
  innerHTML: r.message
597
- }, null, 8, Me)
633
+ }, null, 8, qe)
598
634
  ]),
599
635
  _: 2
600
636
  }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
@@ -606,10 +642,10 @@ function Ee(e, t, i, o, n, l) {
606
642
  }
607
643
  const v = (e, t) => {
608
644
  const i = e.__vccOpts || e;
609
- for (const [o, n] of t)
610
- i[o] = n;
645
+ for (const [s, n] of t)
646
+ i[s] = n;
611
647
  return i;
612
- }, Ae = {
648
+ }, Ye = {
613
649
  name: "w-notification-manager",
614
650
  computed: {
615
651
  conf() {
@@ -627,11 +663,11 @@ const v = (e, t) => {
627
663
  },
628
664
  methods: {
629
665
  notifProps(e) {
630
- const { _value: t, _uid: i, message: o, timeout: n, ...l } = e;
666
+ const { _value: t, _uid: i, message: s, timeout: n, ...l } = e;
631
667
  return l.dismiss && (l.dismiss = !0), l;
632
668
  }
633
669
  }
634
- }, We = /* @__PURE__ */ v(Ae, [["render", Ee]]);
670
+ }, Ge = /* @__PURE__ */ v(Ye, [["render", Xe]]);
635
671
  var D;
636
672
  const K = class K {
637
673
  constructor() {
@@ -640,28 +676,26 @@ const K = class K {
640
676
  H(this, "_uid");
641
677
  // A unique ID for each notification.
642
678
  H(this, "_notificationDefaults");
643
- if (X(K, D))
644
- return X(K, D);
679
+ if (Y(K, D)) return Y(K, D);
645
680
  this.notifications = [], this._uid = 0, this._notificationDefaults = {
646
681
  _uid: 0,
647
682
  _value: !0,
648
683
  message: "",
649
684
  timeout: 4e3,
650
685
  dismiss: !0
651
- }, Z(K, D, this);
686
+ }, ie(K, D, this);
652
687
  }
653
688
  notify(...t) {
654
689
  let i = {
655
690
  ...this._notificationDefaults,
656
691
  _uid: this._uid++
657
692
  };
658
- if (typeof t[0] == "object")
659
- i = { ...i, ...t[0] };
693
+ if (typeof t[0] == "object") i = { ...i, ...t[0] };
660
694
  else {
661
- const [o, n, l] = t;
695
+ const [s, n, l] = t;
662
696
  i = {
663
697
  ...i,
664
- message: o || "",
698
+ message: s || "",
665
699
  [n === void 0 ? "info" : n]: !0,
666
700
  timeout: l || l === 0 ? parseFloat(l) : 4e3
667
701
  };
@@ -672,29 +706,29 @@ const K = class K {
672
706
  this.notifications = this.notifications.filter((i) => i._uid !== t);
673
707
  }
674
708
  };
675
- D = new WeakMap(), Q(K, D, void 0);
676
- let le = K;
677
- const Ke = (e, t, i) => {
678
- const o = document.createElement("div");
679
- e.appendChild(o);
680
- const n = Se(Be({
681
- ...We,
709
+ D = new WeakMap(), te(K, D);
710
+ let oe = K;
711
+ const Je = (e, t, i) => {
712
+ const s = document.createElement("div");
713
+ e.appendChild(s);
714
+ const n = Ie(Te({
715
+ ...Ge,
682
716
  inject: ["$waveui"]
683
717
  })).provide("$waveui", i);
684
718
  for (const l in t) {
685
719
  const a = t[l];
686
720
  n.component(a.name, { ...a, inject: ["$waveui"] });
687
721
  }
688
- n.mount(o), o.remove();
722
+ n.mount(s), s.remove();
689
723
  };
690
- let pe = !1;
691
- const Ne = (e) => {
724
+ let be = !1;
725
+ const Qe = (e) => {
692
726
  const t = window.matchMedia("(prefers-color-scheme: dark)");
693
727
  e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
694
728
  e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
695
729
  });
696
- }, De = (e, t) => {
697
- var i, o;
730
+ }, Ze = (e, t) => {
731
+ var i, s;
698
732
  for (const n in t)
699
733
  if ((i = e.props) != null && i[n])
700
734
  e.props[n].default = t[n];
@@ -702,16 +736,16 @@ const Ne = (e) => {
702
736
  let l = !1;
703
737
  if (Array.isArray(e.mixins) && e.mixins.length) {
704
738
  for (const a of e.mixins)
705
- if ((o = a == null ? void 0 : a.props) != null && o[n]) {
739
+ if ((s = a == null ? void 0 : a.props) != null && s[n]) {
706
740
  a.props[n].default = t[n], l = !0;
707
741
  break;
708
742
  }
709
- l || F(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
743
+ l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
710
744
  continue;
711
745
  }
712
746
  }
713
747
  };
714
- var q;
748
+ var X;
715
749
  const N = class N {
716
750
  constructor(t, i = {}) {
717
751
  // Exposed as a global object and also `app.provide`d.
@@ -742,20 +776,19 @@ const N = class N {
742
776
  switchTheme(t, i = !1) {
743
777
  var n, l;
744
778
  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);
745
- const o = this.config.colors[this.theme];
746
- xe(o, this.config.css.colorShadeCssVariables), this.colors = de(o, ue);
779
+ const s = this.config.colors[this.theme];
780
+ je(s, this.config.css.colorShadeCssVariables), this.colors = he(s, fe);
747
781
  }
748
782
  });
749
- if (X(N, q))
750
- return;
751
- if (this.$waveui._notificationManager = new le(), i.theme || (i.theme = "light"), i.colors) {
783
+ if (Y(N, X)) return;
784
+ if (this.$waveui._notificationManager = new oe(), i.theme || (i.theme = "light"), i.colors) {
752
785
  const a = { ...i.colors };
753
786
  i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
754
787
  }
755
- let { components: o, ...n } = i;
756
- n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
757
- const l = G(this.$waveui);
758
- t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
788
+ let { components: s, ...n } = i;
789
+ n = this.$waveui.config = Ce(n), n.css.colorShades && Oe(n);
790
+ const l = Z(this.$waveui);
791
+ t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = he(n.colors[n.theme], fe));
759
792
  }
760
793
  static install(t, i = {}) {
761
794
  var n;
@@ -770,44 +803,44 @@ const N = class N {
770
803
  window.addEventListener("scroll", r);
771
804
  }
772
805
  });
773
- const { components: o = {} } = i || {};
774
- for (const l in o) {
775
- const a = o[l];
776
- (n = i.presets) != null && n[a.name] && De(a, i.presets[a.name]), t.component(a.name, a);
806
+ const { components: s = {} } = i || {};
807
+ for (const l in s) {
808
+ const a = s[l];
809
+ (n = i.presets) != null && n[a.name] && Ze(a, i.presets[a.name]), t.component(a.name, a);
777
810
  }
778
811
  t.mixin({
779
812
  // Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
780
813
  beforeMount() {
781
- if (!pe) {
782
- pe = !0;
783
- const l = _e("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
784
- r.classList.add("w-app"), a.theme === "auto" ? Ne(l) : l.switchTheme(a.theme, !0), Oe(l), Ke(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
814
+ if (!be) {
815
+ be = !0;
816
+ const l = Le("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
817
+ r.classList.add("w-app"), a.theme === "auto" ? Qe(l) : l.switchTheme(a.theme, !0), Fe(l), Je(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
785
818
  }
786
819
  }
787
- }), new N(t, i), Z(N, q, !0);
820
+ }), new N(t, i), ie(N, X, !0);
788
821
  }
789
822
  };
790
- q = new WeakMap(), Q(N, q, !1);
791
- let U = N;
792
- const He = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
793
- function qe(e, t, i, o, n, l) {
823
+ X = new WeakMap(), te(N, X, !1);
824
+ let q = N;
825
+ const et = ["aria-expanded"], tt = ["onClick", "onFocus", "onKeypress", "tabindex"], it = ["innerHTML"], lt = ["innerHTML"];
826
+ function st(e, t, i, s, n, l) {
794
827
  const a = $("w-button"), r = $("w-transition-expand");
795
- return s(), u("div", {
828
+ return o(), u("div", {
796
829
  class: f(["w-accordion", l.accordionClasses])
797
830
  }, [
798
- (s(!0), u(k, null, R(e.accordionItems, (d, h) => (s(), u("div", {
831
+ (o(!0), u(k, null, x(e.accordionItems, (d, h) => (o(), u("div", {
799
832
  class: f(["w-accordion__item", l.itemClasses(d)]),
800
833
  key: h,
801
834
  "aria-expanded": d._expanded ? "true" : "false"
802
835
  }, [
803
- y("div", {
836
+ w("div", {
804
837
  class: f(["w-accordion__item-title", i.titleClass]),
805
- onClick: (w) => !d._disabled && l.toggleItem(d, w),
806
- onFocus: (w) => e.$emit("focus", l.getOriginalItem(d)),
807
- onKeypress: E((w) => !d._disabled && l.toggleItem(d, w), ["enter"]),
838
+ onClick: (y) => !d._disabled && l.toggleItem(d, y),
839
+ onFocus: (y) => e.$emit("focus", l.getOriginalItem(d)),
840
+ onKeypress: E((y) => !d._disabled && l.toggleItem(d, y), ["enter"]),
808
841
  tabindex: !d._disabled && 0
809
842
  }, [
810
- i.expandIcon && !i.expandIconRight ? (s(), g(a, {
843
+ i.expandIcon && !i.expandIconRight ? (o(), g(a, {
811
844
  key: 0,
812
845
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
813
846
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -815,9 +848,9 @@ function qe(e, t, i, o, n, l) {
815
848
  disabled: d._disabled || null,
816
849
  tabindex: -1,
817
850
  text: "",
818
- onKeypress: t[0] || (t[0] = z(() => {
851
+ onKeypress: t[0] || (t[0] = M(() => {
819
852
  }, ["stop"])),
820
- onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
853
+ onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
821
854
  }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
822
855
  e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
823
856
  key: 1,
@@ -830,28 +863,28 @@ function qe(e, t, i, o, n, l) {
830
863
  expanded: d._expanded,
831
864
  index: h + 1
832
865
  }, () => [
833
- y("div", {
866
+ w("div", {
834
867
  class: "grow",
835
868
  innerHTML: d[i.itemTitleKey]
836
- }, null, 8, je)
869
+ }, null, 8, it)
837
870
  ]),
838
- i.expandIcon && i.expandIconRight ? (s(), g(a, {
871
+ i.expandIcon && i.expandIconRight ? (o(), g(a, {
839
872
  key: 3,
840
873
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
841
874
  icon: d._expanded && i.collapseIcon || i.expandIcon,
842
875
  text: "",
843
- onKeypress: t[1] || (t[1] = z(() => {
876
+ onKeypress: t[1] || (t[1] = M(() => {
844
877
  }, ["stop"])),
845
- onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
878
+ onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
846
879
  }, null, 8, ["icon", "onClick", "class"])) : p("", !0)
847
- ], 42, Fe),
848
- I(r, {
880
+ ], 42, tt),
881
+ T(r, {
849
882
  y: "",
850
- onAfterLeave: (w) => l.onEndOfCollapse(d),
883
+ onAfterLeave: (y) => l.onEndOfCollapse(d),
851
884
  duration: i.duration
852
885
  }, {
853
886
  default: m(() => [
854
- d._expanded ? (s(), u("div", {
887
+ d._expanded ? (o(), u("div", {
855
888
  key: 0,
856
889
  class: f(["w-accordion__item-content", i.contentClass])
857
890
  }, [
@@ -866,18 +899,18 @@ function qe(e, t, i, o, n, l) {
866
899
  expanded: d._expanded,
867
900
  index: h + 1
868
901
  }, () => [
869
- y("div", {
902
+ w("div", {
870
903
  innerHTML: d[i.itemContentKey]
871
- }, null, 8, Ue)
904
+ }, null, 8, lt)
872
905
  ])
873
906
  ], 2)) : p("", !0)
874
907
  ]),
875
908
  _: 2
876
909
  }, 1032, ["onAfterLeave", "duration"])
877
- ], 10, He))), 128))
910
+ ], 10, et))), 128))
878
911
  ], 2);
879
912
  }
880
- const Xe = {
913
+ const ot = {
881
914
  name: "w-accordion",
882
915
  props: {
883
916
  modelValue: { type: Array },
@@ -922,8 +955,8 @@ const Xe = {
922
955
  },
923
956
  methods: {
924
957
  toggleItem(e, t) {
925
- e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
926
- const i = this.accordionItems.map((o) => o._expanded || !1);
958
+ e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((s) => s._index !== e._index && (s._expanded = !1));
959
+ const i = this.accordionItems.map((s) => s._expanded || !1);
927
960
  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);
928
961
  },
929
962
  onEndOfCollapse(e) {
@@ -965,15 +998,15 @@ const Xe = {
965
998
  deep: !0
966
999
  }
967
1000
  }
968
- }, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
969
- function Je(e, t, i, o, n, l) {
1001
+ }, at = /* @__PURE__ */ v(ot, [["render", st]]), nt = { class: "w-alert__content" };
1002
+ function rt(e, t, i, s, n, l) {
970
1003
  const a = $("w-icon"), r = $("w-button");
971
- return n.show ? (s(), u("div", {
1004
+ return n.show ? (o(), u("div", {
972
1005
  key: 0,
973
1006
  class: f(["w-alert", l.classes])
974
1007
  }, [
975
- l.type || i.icon || i.dismiss ? (s(), u(k, { key: 0 }, [
976
- l.type || i.icon ? (s(), g(a, {
1008
+ l.type || i.icon || i.dismiss ? (o(), u(k, { key: 0 }, [
1009
+ l.type || i.icon ? (o(), g(a, {
977
1010
  key: 0,
978
1011
  class: "w-alert__icon mr2"
979
1012
  }, {
@@ -982,10 +1015,10 @@ function Je(e, t, i, o, n, l) {
982
1015
  ]),
983
1016
  _: 1
984
1017
  })) : p("", !0),
985
- y("div", Ge, [
1018
+ w("div", nt, [
986
1019
  c(e.$slots, "default")
987
1020
  ]),
988
- i.dismiss ? (s(), g(r, {
1021
+ i.dismiss ? (o(), g(r, {
989
1022
  key: 1,
990
1023
  class: "w-alert__dismiss",
991
1024
  onClick: t[0] || (t[0] = (d) => {
@@ -999,7 +1032,7 @@ function Je(e, t, i, o, n, l) {
999
1032
  ], 64)) : c(e.$slots, "default", { key: 1 })
1000
1033
  ], 2)) : p("", !0);
1001
1034
  }
1002
- const Qe = {
1035
+ const dt = {
1003
1036
  name: "w-alert",
1004
1037
  props: {
1005
1038
  modelValue: { default: !0 },
@@ -1082,24 +1115,24 @@ const Qe = {
1082
1115
  this.show = e;
1083
1116
  }
1084
1117
  }
1085
- }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = ["value"], st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
1086
- function nt(e, t, i, o, n, l) {
1118
+ }, ut = /* @__PURE__ */ v(dt, [["render", rt]]), ht = { class: "w-autocomplete__selection" }, ct = ["innerHTML"], pt = ["innerHTML"], ft = ["value"], mt = ["onClick"], gt = ["innerHTML"], bt = ["innerHTML"];
1119
+ function yt(e, t, i, s, n, l) {
1087
1120
  const a = $("w-button"), r = $("w-transition-slide-fade");
1088
- return s(), u("div", {
1121
+ return o(), u("div", {
1089
1122
  class: f(["w-autocomplete", l.classes]),
1090
1123
  onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
1091
- style: L(e.$attrs.style)
1124
+ style: R(e.$attrs.style)
1092
1125
  }, [
1093
- e.selection.length ? (s(!0), u(k, { key: 0 }, R(e.selection, (d, h) => (s(), u("div", et, [
1126
+ e.selection.length ? (o(!0), u(k, { key: 0 }, x(e.selection, (d, h) => (o(), u("div", ht, [
1094
1127
  c(e.$slots, "selection", {
1095
1128
  item: d,
1096
- unselect: (w) => l.unselectItem(w)
1129
+ unselect: (y) => l.unselectItem(y)
1097
1130
  }, () => [
1098
- y("span", {
1131
+ w("span", {
1099
1132
  innerHTML: d[i.itemLabelKey]
1100
- }, null, 8, tt),
1101
- I(a, {
1102
- onClick: z((w) => l.unselectItem(h), ["stop"]),
1133
+ }, null, 8, ct),
1134
+ T(a, {
1135
+ onClick: M((y) => l.unselectItem(h), ["stop"]),
1103
1136
  icon: "wi-cross",
1104
1137
  xs: "",
1105
1138
  text: "",
@@ -1107,19 +1140,19 @@ function nt(e, t, i, o, n, l) {
1107
1140
  }, null, 8, ["onClick"])
1108
1141
  ])
1109
1142
  ]))), 256)) : p("", !0),
1110
- !e.selection.length && !e.keywords && i.placeholder ? (s(), u("div", {
1143
+ !e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
1111
1144
  key: 1,
1112
1145
  class: "w-autocomplete__placeholder",
1113
1146
  innerHTML: i.placeholder
1114
- }, null, 8, it)) : p("", !0),
1115
- y("input", B({
1147
+ }, null, 8, pt)) : p("", !0),
1148
+ w("input", _({
1116
1149
  class: "w-autocomplete__input",
1117
1150
  ref: "input",
1118
1151
  value: e.keywords
1119
- }, oe(l.inputEventListeners, !0), l.inputAttrs), null, 16, lt),
1120
- I(r, null, {
1152
+ }, ne(l.inputEventListeners, !0), l.inputAttrs), null, 16, ft),
1153
+ T(r, null, {
1121
1154
  default: m(() => [
1122
- e.menuOpen ? (s(), u("ul", {
1155
+ e.menuOpen ? (o(), u("ul", {
1123
1156
  key: 0,
1124
1157
  class: "w-autocomplete__menu",
1125
1158
  ref: "menu",
@@ -1128,32 +1161,32 @@ function nt(e, t, i, o, n, l) {
1128
1161
  onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
1129
1162
  onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
1130
1163
  }, [
1131
- (s(!0), u(k, null, R(l.filteredItems, (d, h) => (s(), u("li", {
1164
+ (o(!0), u(k, null, x(l.filteredItems, (d, h) => (o(), u("li", {
1132
1165
  key: h,
1133
- onClick: z((w) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
1166
+ onClick: M((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
1134
1167
  class: f({ highlighted: e.highlightedItem === d.uid })
1135
1168
  }, [
1136
1169
  c(e.$slots, "item", {
1137
1170
  item: d,
1138
1171
  highlighted: e.highlightedItem === d.uid
1139
1172
  }, () => [
1140
- y("span", {
1173
+ w("span", {
1141
1174
  innerHTML: d[i.itemLabelKey]
1142
- }, null, 8, ot)
1175
+ }, null, 8, gt)
1143
1176
  ])
1144
- ], 10, st))), 128)),
1145
- l.filteredItems.length ? p("", !0) : (s(), u("li", {
1177
+ ], 10, mt))), 128)),
1178
+ l.filteredItems.length ? p("", !0) : (o(), u("li", {
1146
1179
  key: 0,
1147
1180
  class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
1148
1181
  }, [
1149
1182
  c(e.$slots, "no-match", {}, () => [
1150
- y("div", {
1183
+ w("div", {
1151
1184
  class: "caption",
1152
1185
  innerHTML: i.noMatch ?? "No match."
1153
- }, null, 8, at)
1186
+ }, null, 8, bt)
1154
1187
  ])
1155
1188
  ], 2)),
1156
- e.$slots["extra-item"] ? (s(), u("li", {
1189
+ e.$slots["extra-item"] ? (o(), u("li", {
1157
1190
  key: 1,
1158
1191
  class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
1159
1192
  onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
@@ -1166,7 +1199,7 @@ function nt(e, t, i, o, n, l) {
1166
1199
  })
1167
1200
  ], 6);
1168
1201
  }
1169
- const rt = {
1202
+ const wt = {
1170
1203
  name: "w-autocomplete",
1171
1204
  inheritAttrs: !1,
1172
1205
  // The attrs should only be added to the input not the wrapper.
@@ -1216,7 +1249,7 @@ const rt = {
1216
1249
  },
1217
1250
  filteredItems() {
1218
1251
  let e = this.optimizedItemsForSearch;
1219
- const t = (i) => !this.selection.find((o) => o.uid === i.uid);
1252
+ const t = (i) => !this.selection.find((s) => s.uid === i.uid);
1220
1253
  return this.keywords ? e = e.filter((i) => i.searchable.includes(this.normalizedKeywords) ? this.multiple && !this.allowDuplicates ? t(i) : !0 : !1) : this.multiple && !this.allowDuplicates && (e = e.filter(t)), e;
1221
1254
  },
1222
1255
  highlightedItemIndex() {
@@ -1295,26 +1328,23 @@ const rt = {
1295
1328
  onKeydown(e) {
1296
1329
  var i;
1297
1330
  const t = this.filteredItems.length + (this.$slots["extra-item"] ? 1 : 0);
1298
- if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9)
1299
- this.closeMenu();
1331
+ if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9) this.closeMenu();
1300
1332
  else if (e.keyCode === 8 && (!this.keywords || !e.target.selectionStart && !e.target.selectionEnd))
1301
1333
  this.unselectItem();
1302
1334
  else if (e.keyCode === 13)
1303
1335
  e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
1304
1336
  else if ([38, 40].includes(e.keyCode)) {
1305
1337
  e.preventDefault();
1306
- let o = this.highlightedItemIndex;
1307
- o === -1 ? o = e.keyCode === 38 ? t - 1 : 0 : o = (o + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && o === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[o]) == null ? void 0 : i.uid) || 0;
1338
+ let s = this.highlightedItemIndex;
1339
+ s === -1 ? s = e.keyCode === 38 ? t - 1 : 0 : s = (s + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && s === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[s]) == null ? void 0 : i.uid) || 0;
1308
1340
  const n = this.$refs.menu;
1309
1341
  if (n)
1310
- if (this.$slots["extra-item"] && o === t - 1)
1311
- n.scrollTop = n.scrollHeight;
1342
+ if (this.$slots["extra-item"] && s === t - 1) n.scrollTop = n.scrollHeight;
1312
1343
  else {
1313
- const { offsetHeight: l, offsetTop: a } = n.childNodes[o] || {};
1344
+ const { offsetHeight: l, offsetTop: a } = n.childNodes[s] || {};
1314
1345
  n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1315
1346
  }
1316
- } else
1317
- !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
1347
+ } else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
1318
1348
  },
1319
1349
  // On drag & drop of a text in the input field, don't paste if single selection and already selected.
1320
1350
  onDrop(e) {
@@ -1348,17 +1378,17 @@ const rt = {
1348
1378
  watch: {
1349
1379
  modelValue(e) {
1350
1380
  this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
1351
- this.selection.push(this.optimizedItemsForSearch.find((o) => o[this.itemValueKey] === +i));
1381
+ this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
1352
1382
  });
1353
1383
  }
1354
1384
  }
1355
- }, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = { class: "w-app" };
1356
- function ht(e, t, i, o, n, l) {
1357
- return s(), u("div", ut, [
1385
+ }, kt = /* @__PURE__ */ v(wt, [["render", yt]]), vt = { class: "w-app" };
1386
+ function Ct(e, t, i, s, n, l) {
1387
+ return o(), u("div", vt, [
1358
1388
  c(e.$slots, "default")
1359
1389
  ]);
1360
1390
  }
1361
- const ct = {
1391
+ const St = {
1362
1392
  name: "w-app",
1363
1393
  // Keep the props for the API documentation.
1364
1394
  props: {
@@ -1374,18 +1404,18 @@ const ct = {
1374
1404
  textCenter: { type: Boolean },
1375
1405
  textRight: { type: Boolean }
1376
1406
  }
1377
- }, pt = /* @__PURE__ */ v(ct, [["render", ht]]), ft = { class: "w-badge-wrap" };
1378
- function mt(e, t, i, o, n, l) {
1379
- return s(), u("div", ft, [
1407
+ }, Bt = /* @__PURE__ */ v(St, [["render", Ct]]), _t = { class: "w-badge-wrap" };
1408
+ function $t(e, t, i, s, n, l) {
1409
+ return o(), u("div", _t, [
1380
1410
  c(e.$slots, "default"),
1381
- I(O, {
1411
+ T(P, {
1382
1412
  name: `${i.transition}`
1383
1413
  }, {
1384
1414
  default: m(() => [
1385
- i.modelValue ? (s(), u("div", {
1415
+ i.modelValue ? (o(), u("div", {
1386
1416
  key: 0,
1387
1417
  class: f(["w-badge", l.classes]),
1388
- style: L(l.styles),
1418
+ style: R(l.styles),
1389
1419
  "aria-atomic": "true",
1390
1420
  "aria-label": "Badge",
1391
1421
  "aria-live": "polite",
@@ -1400,7 +1430,7 @@ function mt(e, t, i, o, n, l) {
1400
1430
  }, 8, ["name"])
1401
1431
  ]);
1402
1432
  }
1403
- const gt = {
1433
+ const Vt = {
1404
1434
  name: "w-badge",
1405
1435
  props: {
1406
1436
  modelValue: { default: !0 },
@@ -1463,19 +1493,19 @@ const gt = {
1463
1493
  return this.forcedSize && `font-size: ${this.forcedSize}`;
1464
1494
  }
1465
1495
  }
1466
- }, bt = /* @__PURE__ */ v(gt, [["render", mt]]), yt = ["innerHTML"];
1467
- function wt(e, t, i, o, n, l) {
1496
+ }, It = /* @__PURE__ */ v(Vt, [["render", $t]]), Tt = ["innerHTML"];
1497
+ function Lt(e, t, i, s, n, l) {
1468
1498
  const a = $("w-icon");
1469
- return s(), u("div", {
1499
+ return o(), u("div", {
1470
1500
  class: f(["w-breadcrumbs", l.classes])
1471
1501
  }, [
1472
- (s(!0), u(k, null, R(i.items, (r, d) => (s(), u(k, null, [
1473
- d && e.$slots.separator ? (s(), u("span", {
1502
+ (o(!0), u(k, null, x(i.items, (r, d) => (o(), u(k, null, [
1503
+ d && e.$slots.separator ? (o(), u("span", {
1474
1504
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1475
1505
  key: `${d}a`
1476
1506
  }, [
1477
1507
  c(e.$slots, "separator", { index: d })
1478
- ], 2)) : d ? (s(), g(a, {
1508
+ ], 2)) : d ? (o(), g(a, {
1479
1509
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1480
1510
  key: `${d}b`
1481
1511
  }, {
@@ -1484,8 +1514,8 @@ function wt(e, t, i, o, n, l) {
1484
1514
  ]),
1485
1515
  _: 2
1486
1516
  }, 1032, ["class"])) : p("", !0),
1487
- r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (s(), u(k, { key: 2 }, [
1488
- e.$slots.item ? (s(), g(T(l.hasRouter ? "router-link" : "a"), {
1517
+ r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(k, { key: 2 }, [
1518
+ e.$slots.item ? (o(), g(L(l.hasRouter ? "router-link" : "a"), {
1489
1519
  class: f(["w-breadcrumbs__item", i.color || null]),
1490
1520
  key: `${d}c`,
1491
1521
  to: l.hasRouter && r[i.itemRouteKey],
@@ -1499,7 +1529,7 @@ function wt(e, t, i, o, n, l) {
1499
1529
  })
1500
1530
  ]),
1501
1531
  _: 2
1502
- }, 1032, ["to", "href", "class"])) : (s(), g(T(l.hasRouter ? "router-link" : "a"), {
1532
+ }, 1032, ["to", "href", "class"])) : (o(), g(L(l.hasRouter ? "router-link" : "a"), {
1503
1533
  class: f(["w-breadcrumbs__item", i.color || null]),
1504
1534
  key: `${d}d`,
1505
1535
  to: l.hasRouter && r[i.itemRouteKey],
@@ -1511,14 +1541,14 @@ function wt(e, t, i, o, n, l) {
1511
1541
  item: r,
1512
1542
  index: d + 1,
1513
1543
  isLast: d === i.items.length - 1
1514
- }) : (s(), u("span", {
1544
+ }) : (o(), u("span", {
1515
1545
  key: `${d}f`,
1516
1546
  innerHTML: r[i.itemLabelKey]
1517
- }, null, 8, yt))
1547
+ }, null, 8, Tt))
1518
1548
  ], 64))), 256))
1519
1549
  ], 2);
1520
1550
  }
1521
- const kt = {
1551
+ const Rt = {
1522
1552
  name: "w-breadcrumbs",
1523
1553
  props: {
1524
1554
  items: { type: Array, required: !0 },
@@ -1549,11 +1579,11 @@ const kt = {
1549
1579
  };
1550
1580
  }
1551
1581
  }
1552
- }, vt = /* @__PURE__ */ v(kt, [["render", wt]]), Ct = {
1582
+ }, xt = /* @__PURE__ */ v(Rt, [["render", Lt]]), Pt = {
1553
1583
  key: 0,
1554
1584
  class: "w-button__loader"
1555
- }, St = /* @__PURE__ */ y("svg", { viewBox: "0 0 40 40" }, [
1556
- /* @__PURE__ */ y("circle", {
1585
+ }, Ot = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
1586
+ /* @__PURE__ */ w("circle", {
1557
1587
  cx: "20",
1558
1588
  cy: "20",
1559
1589
  r: "18",
@@ -1563,26 +1593,26 @@ const kt = {
1563
1593
  "stroke-linecap": "round"
1564
1594
  })
1565
1595
  ], -1);
1566
- function Bt(e, t, i, o, n, l) {
1596
+ function Mt(e, t, i, s, n, l) {
1567
1597
  const a = $("w-icon");
1568
- return s(), g(T(i.route ? "a" : "button"), B({
1598
+ return o(), g(L(!i.disabled && i.route ? "a" : "button"), _({
1569
1599
  class: ["w-button", l.classes],
1570
1600
  type: !i.route && i.type,
1571
- href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1601
+ href: !i.disabled && i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1572
1602
  disabled: !!i.disabled || null
1573
1603
  }, l.attrs, { style: l.styles }), {
1574
1604
  default: m(() => [
1575
- i.icon ? (s(), g(a, te(B({ key: 0 }, i.iconProps || {})), {
1605
+ i.icon ? (o(), g(a, le(_({ key: 0 }, i.iconProps || {})), {
1576
1606
  default: m(() => [
1577
1607
  S(C(i.icon), 1)
1578
1608
  ]),
1579
1609
  _: 1
1580
1610
  }, 16)) : c(e.$slots, "default", { key: 1 }),
1581
- I(O, { name: "scale-fade" }, {
1611
+ T(P, { name: "scale-fade" }, {
1582
1612
  default: m(() => [
1583
- i.loading ? (s(), u("div", Ct, [
1613
+ i.loading ? (o(), u("div", Pt, [
1584
1614
  c(e.$slots, "loading", {}, () => [
1585
- St
1615
+ Ot
1586
1616
  ])
1587
1617
  ])) : p("", !0)
1588
1618
  ]),
@@ -1592,7 +1622,7 @@ function Bt(e, t, i, o, n, l) {
1592
1622
  _: 3
1593
1623
  }, 16, ["type", "href", "class", "disabled", "style"]);
1594
1624
  }
1595
- const _t = {
1625
+ const zt = {
1596
1626
  // Fully handle the attrs and listeners manually for the case of a router link that has both a
1597
1627
  // route and onClick.
1598
1628
  inheritAttrs: !1,
@@ -1643,13 +1673,13 @@ const _t = {
1643
1673
  return this.hasRouter ? this.$router.resolve(this.route).href : this.route;
1644
1674
  },
1645
1675
  attrs() {
1646
- const e = {
1676
+ const e = this.route && this.hasRouter && !this.forceLink && !this.externalLink, t = (i) => {
1677
+ this.$attrs.onClick && this.$attrs.onClick(i), this.$router.push(this.route), i.stopPropagation(), i.preventDefault();
1678
+ };
1679
+ return {
1647
1680
  ...this.$attrs,
1648
- onClick: (t) => {
1649
- this.$attrs.onClick && this.$attrs.onClick(t), this.$router.push(this.route), t.stopPropagation(), t.preventDefault();
1650
- }
1681
+ onClick: !this.disabled && (e ? t : this.$attrs.onClick)
1651
1682
  };
1652
- return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? e : this.$attrs;
1653
1683
  },
1654
1684
  size() {
1655
1685
  return this.xs && "xs" || this.sm && "sm" || this.lg && "lg" || this.xl && "xl" || "md";
@@ -1693,12 +1723,12 @@ const _t = {
1693
1723
  };
1694
1724
  }
1695
1725
  }
1696
- }, $t = /* @__PURE__ */ v(_t, [["render", Bt]]), Vt = ["innerHTML"];
1697
- function It(e, t, i, o, n, l) {
1726
+ }, Et = /* @__PURE__ */ v(zt, [["render", Mt]]), At = ["innerHTML"];
1727
+ function Wt(e, t, i, s, n, l) {
1698
1728
  const a = $("button-partial");
1699
- return i.tooltip ? (s(), g(T("w-tooltip"), te(B({ key: 0 }, i.tooltipProps)), {
1729
+ return i.tooltip ? (o(), g(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
1700
1730
  activator: m(({ on: r }) => [
1701
- I(a, B(l.buttonProps, oe(r)), {
1731
+ T(a, _(l.buttonProps, ne(r)), {
1702
1732
  default: m(() => [
1703
1733
  c(e.$slots, "default")
1704
1734
  ]),
@@ -1706,10 +1736,10 @@ function It(e, t, i, o, n, l) {
1706
1736
  }, 1040)
1707
1737
  ]),
1708
1738
  default: m(() => [
1709
- y("div", { innerHTML: i.tooltip }, null, 8, Vt)
1739
+ w("div", { innerHTML: i.tooltip }, null, 8, At)
1710
1740
  ]),
1711
1741
  _: 3
1712
- }, 16)) : (s(), g(a, te(B({ key: 1 }, l.buttonProps)), {
1742
+ }, 16)) : (o(), g(a, le(_({ key: 1 }, l.buttonProps)), {
1713
1743
  loading: m(() => [
1714
1744
  c(e.$slots, "loading")
1715
1745
  ]),
@@ -1719,7 +1749,7 @@ function It(e, t, i, o, n, l) {
1719
1749
  _: 3
1720
1750
  }, 16));
1721
1751
  }
1722
- const Tt = {
1752
+ const Kt = {
1723
1753
  name: "w-button",
1724
1754
  inheritAttrs: !1,
1725
1755
  // The attrs are only bound to the button-partial, not the root.
@@ -1762,7 +1792,7 @@ const Tt = {
1762
1792
  lg: { type: Boolean },
1763
1793
  xl: { type: Boolean }
1764
1794
  },
1765
- components: { ButtonPartial: $t },
1795
+ components: { ButtonPartial: Et },
1766
1796
  emits: [],
1767
1797
  computed: {
1768
1798
  buttonProps() {
@@ -1770,23 +1800,23 @@ const Tt = {
1770
1800
  return { ...i, ...this.$attrs };
1771
1801
  }
1772
1802
  }
1773
- }, Lt = /* @__PURE__ */ v(Tt, [["render", It]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Rt = ["innerHTML"];
1774
- function Pt(e, t, i, o, n, l) {
1803
+ }, Nt = /* @__PURE__ */ v(Kt, [["render", Wt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Dt = ["innerHTML"];
1804
+ function Ht(e, t, i, s, n, l) {
1775
1805
  const a = $("w-image");
1776
- return s(), u("div", {
1806
+ return o(), u("div", {
1777
1807
  class: f(["w-card", l.classes])
1778
1808
  }, [
1779
- e.$slots.title ? (s(), u("div", {
1809
+ e.$slots.title ? (o(), u("div", {
1780
1810
  key: 0,
1781
1811
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
1782
1812
  }, [
1783
1813
  c(e.$slots, "title")
1784
- ], 2)) : i.title ? (s(), u("div", {
1814
+ ], 2)) : i.title ? (o(), u("div", {
1785
1815
  key: 1,
1786
1816
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1787
1817
  innerHTML: i.title
1788
- }, null, 10, Rt)) : p("", !0),
1789
- i.image ? (s(), g(a, B({
1818
+ }, null, 10, Dt)) : p("", !0),
1819
+ i.image ? (o(), g(a, _({
1790
1820
  key: 2,
1791
1821
  class: "w-card__image",
1792
1822
  src: i.image
@@ -1796,12 +1826,12 @@ function Pt(e, t, i, o, n, l) {
1796
1826
  ]),
1797
1827
  _: 3
1798
1828
  }, 16, ["src"])) : p("", !0),
1799
- y("div", {
1829
+ w("div", {
1800
1830
  class: f(["w-card__content", l.contentClasses])
1801
1831
  }, [
1802
1832
  c(e.$slots, "default")
1803
1833
  ], 2),
1804
- e.$slots.actions ? (s(), u("div", {
1834
+ e.$slots.actions ? (o(), u("div", {
1805
1835
  key: 3,
1806
1836
  class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
1807
1837
  }, [
@@ -1809,7 +1839,7 @@ function Pt(e, t, i, o, n, l) {
1809
1839
  ], 2)) : p("", !0)
1810
1840
  ], 2);
1811
1841
  }
1812
- const Ot = {
1842
+ const Ft = {
1813
1843
  name: "w-card",
1814
1844
  props: {
1815
1845
  color: { type: String },
@@ -1860,7 +1890,7 @@ const Ot = {
1860
1890
  };
1861
1891
  }
1862
1892
  }
1863
- }, xt = /* @__PURE__ */ v(Ot, [["render", Pt]]), M = {
1893
+ }, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]), z = {
1864
1894
  inject: {
1865
1895
  // Used in each form component to determine whether to use the w-form-element wrap or not.
1866
1896
  // So, if a form component is in a form, use the w-form-element wrap.
@@ -1907,13 +1937,13 @@ const Ot = {
1907
1937
  this.$refs.formEl.validate(this);
1908
1938
  }
1909
1939
  }
1910
- }, zt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Mt = ["for"], Et = ["for", "innerHTML"], At = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
1911
- /* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
1912
- ], -1), Wt = [
1913
- At
1914
- ], Kt = ["for"], Nt = ["for", "innerHTML"];
1915
- function Dt(e, t, i, o, n, l) {
1916
- return s(), g(T(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1940
+ }, Ut = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], qt = ["for"], Xt = ["for", "innerHTML"], Yt = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
1941
+ /* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
1942
+ ], -1), Gt = [
1943
+ Yt
1944
+ ], Jt = ["for"], Qt = ["for", "innerHTML"];
1945
+ function Zt(e, t, i, s, n, l) {
1946
+ return o(), g(L(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1917
1947
  valid: e.valid,
1918
1948
  "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1919
1949
  onReset: t[6] || (t[6] = (a) => {
@@ -1922,7 +1952,7 @@ function Dt(e, t, i, o, n, l) {
1922
1952
  class: l.classes
1923
1953
  }), {
1924
1954
  default: m(() => [
1925
- y("input", {
1955
+ w("input", {
1926
1956
  ref: "input",
1927
1957
  id: `w-checkbox--${e._.uid}`,
1928
1958
  type: "checkbox",
@@ -1937,9 +1967,9 @@ function Dt(e, t, i, o, n, l) {
1937
1967
  onKeypress: t[3] || (t[3] = E((...a) => l.onInput && l.onInput(...a), ["enter"])),
1938
1968
  "aria-checked": n.isChecked || "false",
1939
1969
  role: "checkbox"
1940
- }, null, 40, zt),
1941
- l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
1942
- e.$slots.default ? (s(), u("label", {
1970
+ }, null, 40, Ut),
1971
+ l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
1972
+ e.$slots.default ? (o(), u("label", {
1943
1973
  key: 0,
1944
1974
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1945
1975
  for: `w-checkbox--${e._.uid}`
@@ -1947,21 +1977,21 @@ function Dt(e, t, i, o, n, l) {
1947
1977
  c(e.$slots, "default", {}, () => [
1948
1978
  S(C(i.label), 1)
1949
1979
  ])
1950
- ], 10, Mt)) : i.label ? (s(), u("label", {
1980
+ ], 10, qt)) : i.label ? (o(), u("label", {
1951
1981
  key: 1,
1952
1982
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1953
1983
  for: `w-checkbox--${e._.uid}`,
1954
1984
  innerHTML: i.label
1955
- }, null, 10, Et)) : p("", !0)
1985
+ }, null, 10, Xt)) : p("", !0)
1956
1986
  ], 64)) : p("", !0),
1957
- y("div", {
1987
+ w("div", {
1958
1988
  class: f(["w-checkbox__input", this.color]),
1959
1989
  onClick: t[4] || (t[4] = (a) => {
1960
1990
  e.$refs.input.focus(), e.$refs.input.click();
1961
1991
  })
1962
- }, Wt, 2),
1963
- l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
1964
- e.$slots.default ? (s(), u("label", {
1992
+ }, Gt, 2),
1993
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
1994
+ e.$slots.default ? (o(), u("label", {
1965
1995
  key: 0,
1966
1996
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1967
1997
  for: `w-checkbox--${e._.uid}`
@@ -1969,20 +1999,20 @@ function Dt(e, t, i, o, n, l) {
1969
1999
  c(e.$slots, "default", {}, () => [
1970
2000
  S(C(i.label), 1)
1971
2001
  ])
1972
- ], 10, Kt)) : i.label ? (s(), u("label", {
2002
+ ], 10, Jt)) : i.label ? (o(), u("label", {
1973
2003
  key: 1,
1974
2004
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1975
2005
  for: `w-checkbox--${e._.uid}`,
1976
2006
  innerHTML: i.label
1977
- }, null, 10, Nt)) : p("", !0)
2007
+ }, null, 10, Qt)) : p("", !0)
1978
2008
  ], 64)) : p("", !0)
1979
2009
  ]),
1980
2010
  _: 3
1981
2011
  }, 16, ["valid", "class"]);
1982
2012
  }
1983
- const Ht = {
2013
+ const ei = {
1984
2014
  name: "w-checkbox",
1985
- mixins: [M],
2015
+ mixins: [z],
1986
2016
  inject: {
1987
2017
  wCheckboxes: { default: null }
1988
2018
  },
@@ -2047,10 +2077,10 @@ const Ht = {
2047
2077
  this.isChecked = e;
2048
2078
  }
2049
2079
  }
2050
- }, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]), jt = ["innerHTML"];
2051
- function Ut(e, t, i, o, n, l) {
2080
+ }, ti = /* @__PURE__ */ v(ei, [["render", Zt]]), ii = ["innerHTML"];
2081
+ function li(e, t, i, s, n, l) {
2052
2082
  const a = $("w-checkbox");
2053
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
2083
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
2054
2084
  valid: e.valid,
2055
2085
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
2056
2086
  onReset: l.reset,
@@ -2059,7 +2089,7 @@ function Ut(e, t, i, o, n, l) {
2059
2089
  class: l.classes
2060
2090
  }), {
2061
2091
  default: m(() => [
2062
- (s(!0), u(k, null, R(l.checkboxItems, (r, d) => (s(), g(a, B({
2092
+ (o(!0), u(k, null, x(l.checkboxItems, (r, d) => (o(), g(a, _({
2063
2093
  key: d,
2064
2094
  "model-value": r._isChecked,
2065
2095
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -2078,10 +2108,10 @@ function Ut(e, t, i, o, n, l) {
2078
2108
  checked: !!r._isChecked,
2079
2109
  index: d + 1,
2080
2110
  innerHTML: r.label
2081
- }) : r.label ? (s(), u("div", {
2111
+ }) : r.label ? (o(), u("div", {
2082
2112
  key: 1,
2083
2113
  innerHTML: r.label
2084
- }, null, 8, jt)) : p("", !0)
2114
+ }, null, 8, ii)) : p("", !0)
2085
2115
  ]),
2086
2116
  _: 2
2087
2117
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -2089,9 +2119,9 @@ function Ut(e, t, i, o, n, l) {
2089
2119
  _: 3
2090
2120
  }, 16, ["valid", "onReset", "column", "wrap", "class"]);
2091
2121
  }
2092
- const qt = {
2122
+ const si = {
2093
2123
  name: "w-checkboxes",
2094
- mixins: [M],
2124
+ mixins: [z],
2095
2125
  props: {
2096
2126
  items: { type: Array, required: !0 },
2097
2127
  // All the possible options.
@@ -2120,7 +2150,7 @@ const qt = {
2120
2150
  checkboxItems() {
2121
2151
  return (this.items || []).map((e, t) => {
2122
2152
  const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
2123
- return G({
2153
+ return Z({
2124
2154
  ...e,
2125
2155
  label: e[this.itemLabelKey],
2126
2156
  _index: t,
@@ -2144,7 +2174,7 @@ const qt = {
2144
2174
  },
2145
2175
  toggleCheck(e, t) {
2146
2176
  e._isChecked = t;
2147
- const i = this.checkboxItems.filter((o) => o._isChecked).map((o) => this.returnValues ? o.returnValue : o.value);
2177
+ const i = this.checkboxItems.filter((s) => s._isChecked).map((s) => this.returnValues ? s.returnValue : s.value);
2148
2178
  this.$emit("update:modelValue", i), this.$emit("input", i);
2149
2179
  },
2150
2180
  // Return the original item (so there is no `_index`, etc.).
@@ -2152,15 +2182,15 @@ const qt = {
2152
2182
  return this.items[e._index];
2153
2183
  }
2154
2184
  }
2155
- }, Xt = /* @__PURE__ */ v(qt, [["render", Ut]]);
2156
- function Yt(e, t, i, o, n, l) {
2157
- const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
2158
- return s(), g(d, B({
2185
+ }, oi = /* @__PURE__ */ v(si, [["render", li]]);
2186
+ function ai(e, t, i, s, n, l) {
2187
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ke("focus");
2188
+ return o(), g(d, _({
2159
2189
  modelValue: e.showPopup,
2160
- "onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
2190
+ "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
2161
2191
  }, l.wMenuProps), {
2162
- activator: m(({ on: w }) => [
2163
- I(a, B({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps }, oe(i.disablePrompt ? {} : { ...w })), {
2192
+ activator: m(({ on: y }) => [
2193
+ T(a, _({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps }, ne(i.disablePrompt ? {} : { ...y })), {
2164
2194
  default: m(() => [
2165
2195
  c(e.$slots, "default")
2166
2196
  ]),
@@ -2168,25 +2198,25 @@ function Yt(e, t, i, o, n, l) {
2168
2198
  }, 1040)
2169
2199
  ]),
2170
2200
  default: m(() => [
2171
- I(r, {
2201
+ T(r, {
2172
2202
  column: !i.inline,
2173
2203
  "align-center": ""
2174
2204
  }, {
2175
2205
  default: m(() => [
2176
- y("div", null, [
2206
+ w("div", null, [
2177
2207
  c(e.$slots, "question", {}, () => [
2178
2208
  S(C(i.question), 1)
2179
2209
  ])
2180
2210
  ]),
2181
- y("div", {
2211
+ w("div", {
2182
2212
  class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2183
2213
  }, [
2184
- i.cancel !== !1 ? (s(), g(a, B({
2214
+ i.cancel !== !1 ? (o(), g(a, _({
2185
2215
  key: 0,
2186
2216
  class: "mr2"
2187
2217
  }, l.cancelButtonProps, {
2188
2218
  "bg-color": (l.cancelButton || {}).bgColor || "error",
2189
- onKeyup: t[0] || (t[0] = E((w) => !i.persistent && l.onCancel(), ["escape"])),
2219
+ onKeyup: t[0] || (t[0] = E((y) => !i.persistent && l.onCancel(), ["escape"])),
2190
2220
  onClick: l.onCancel
2191
2221
  }), {
2192
2222
  default: m(() => [
@@ -2196,9 +2226,9 @@ function Yt(e, t, i, o, n, l) {
2196
2226
  ]),
2197
2227
  _: 3
2198
2228
  }, 16, ["bg-color", "onClick"])) : p("", !0),
2199
- W((s(), g(a, B(l.confirmButtonProps, {
2229
+ W((o(), g(a, _(l.confirmButtonProps, {
2200
2230
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2201
- onKeyup: t[1] || (t[1] = E((w) => !i.persistent && l.onCancel(), ["escape"])),
2231
+ onKeyup: t[1] || (t[1] = E((y) => !i.persistent && l.onCancel(), ["escape"])),
2202
2232
  onClick: l.onConfirm
2203
2233
  }), {
2204
2234
  default: m(() => [
@@ -2218,7 +2248,7 @@ function Yt(e, t, i, o, n, l) {
2218
2248
  _: 3
2219
2249
  }, 16, ["modelValue"]);
2220
2250
  }
2221
- const Gt = {
2251
+ const ni = {
2222
2252
  name: "w-confirm",
2223
2253
  inheritAttrs: !1,
2224
2254
  // The attrs are only bound to the button, not the w-menu.
@@ -2331,16 +2361,16 @@ const Gt = {
2331
2361
  this.$emit("confirm"), this.showPopup = !1;
2332
2362
  }
2333
2363
  }
2334
- }, Jt = /* @__PURE__ */ v(Gt, [["render", Yt]]);
2335
- function Qt(e, t, i, o, n, l) {
2336
- return s(), u("div", {
2364
+ }, ri = /* @__PURE__ */ v(ni, [["render", ai]]);
2365
+ function di(e, t, i, s, n, l) {
2366
+ return o(), u("div", {
2337
2367
  class: f(["w-date-picker", l.classes]),
2338
- style: L(l.styles)
2368
+ style: R(l.styles)
2339
2369
  }, [
2340
2370
  c(e.$slots, "default")
2341
2371
  ], 6);
2342
2372
  }
2343
- const Zt = {
2373
+ const ui = {
2344
2374
  name: "w-date-picker",
2345
2375
  props: {
2346
2376
  dark: { type: Boolean },
@@ -2358,10 +2388,10 @@ const Zt = {
2358
2388
  return !1;
2359
2389
  }
2360
2390
  }
2361
- }, ei = /* @__PURE__ */ v(Zt, [["render", Qt]]);
2362
- function ti(e, t, i, o, n, l) {
2391
+ }, hi = /* @__PURE__ */ v(ui, [["render", di]]);
2392
+ function ci(e, t, i, s, n, l) {
2363
2393
  const a = $("w-card"), r = $("w-overlay");
2364
- return s(), g(r, {
2394
+ return o(), g(r, {
2365
2395
  class: f(["w-dialog", l.classes]),
2366
2396
  "model-value": n.showWrapper,
2367
2397
  persistent: i.persistent,
@@ -2372,13 +2402,13 @@ function ti(e, t, i, o, n, l) {
2372
2402
  opacity: i.overlayOpacity
2373
2403
  }, {
2374
2404
  default: m(() => [
2375
- I(O, {
2405
+ T(P, {
2376
2406
  name: i.transition,
2377
2407
  appear: "",
2378
2408
  onAfterLeave: l.onBeforeClose
2379
2409
  }, {
2380
2410
  default: m(() => [
2381
- W(I(a, {
2411
+ W(T(a, {
2382
2412
  class: f(["w-dialog__content", i.dialogClass]),
2383
2413
  ref: "dialog",
2384
2414
  "no-border": "",
@@ -2387,8 +2417,8 @@ function ti(e, t, i, o, n, l) {
2387
2417
  "title-class": i.titleClass,
2388
2418
  "content-class": i.contentClass,
2389
2419
  title: i.title || void 0,
2390
- style: L(l.contentStyles)
2391
- }, J({
2420
+ style: R(l.contentStyles)
2421
+ }, ee({
2392
2422
  default: m(() => [
2393
2423
  c(e.$slots, "default")
2394
2424
  ]),
@@ -2409,7 +2439,7 @@ function ti(e, t, i, o, n, l) {
2409
2439
  key: "1"
2410
2440
  } : void 0
2411
2441
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2412
- [ae, n.showContent]
2442
+ [re, n.showContent]
2413
2443
  ])
2414
2444
  ]),
2415
2445
  _: 3
@@ -2418,7 +2448,7 @@ function ti(e, t, i, o, n, l) {
2418
2448
  _: 3
2419
2449
  }, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
2420
2450
  }
2421
- const ii = {
2451
+ const pi = {
2422
2452
  name: "w-dialog",
2423
2453
  props: {
2424
2454
  modelValue: { default: !0 },
@@ -2488,17 +2518,17 @@ const ii = {
2488
2518
  this.showWrapper = e, this.showContent = e;
2489
2519
  }
2490
2520
  }
2491
- }, li = /* @__PURE__ */ v(ii, [["render", ti]]), si = ["role", "aria-orientation"];
2492
- function oi(e, t, i, o, n, l) {
2493
- return s(), u("div", {
2521
+ }, fi = /* @__PURE__ */ v(pi, [["render", ci]]), mi = ["role", "aria-orientation"];
2522
+ function gi(e, t, i, s, n, l) {
2523
+ return o(), u("div", {
2494
2524
  class: f(["w-divider", l.classes]),
2495
2525
  role: e.$slots.default ? null : "presentation",
2496
2526
  "aria-orientation": i.vertical ? "vertical" : "horizontal"
2497
2527
  }, [
2498
2528
  c(e.$slots, "default")
2499
- ], 10, si);
2529
+ ], 10, mi);
2500
2530
  }
2501
- const ai = {
2531
+ const bi = {
2502
2532
  name: "w-divider",
2503
2533
  props: {
2504
2534
  vertical: { type: Boolean },
@@ -2518,20 +2548,20 @@ const ai = {
2518
2548
  };
2519
2549
  }
2520
2550
  }
2521
- }, ni = /* @__PURE__ */ v(ai, [["render", oi]]), ri = { class: "w-drawer-wrap__pushable" };
2522
- function di(e, t, i, o, n, l) {
2551
+ }, yi = /* @__PURE__ */ v(bi, [["render", gi]]), wi = { class: "w-drawer-wrap__pushable" };
2552
+ function ki(e, t, i, s, n, l) {
2523
2553
  const a = $("w-overlay");
2524
- return n.showWrapper || i.pushContent ? (s(), u("div", {
2554
+ return n.showWrapper || i.pushContent ? (o(), u("div", {
2525
2555
  key: 0,
2526
2556
  class: f(["w-drawer-wrap", l.wrapperClasses])
2527
2557
  }, [
2528
- i.pushContent ? (s(), u("div", {
2558
+ i.pushContent ? (o(), u("div", {
2529
2559
  key: 0,
2530
2560
  class: "w-drawer-wrap__track",
2531
- style: L(l.trackStyles)
2561
+ style: R(l.trackStyles)
2532
2562
  }, [
2533
- y("div", ri, [
2534
- i.noOverlay ? p("", !0) : (s(), g(a, {
2563
+ w("div", wi, [
2564
+ i.noOverlay ? p("", !0) : (o(), g(a, {
2535
2565
  key: 0,
2536
2566
  modelValue: n.showDrawer,
2537
2567
  "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
@@ -2543,17 +2573,17 @@ function di(e, t, i, o, n, l) {
2543
2573
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2544
2574
  c(e.$slots, "pushable")
2545
2575
  ]),
2546
- I(O, {
2576
+ T(P, {
2547
2577
  name: "fade",
2548
2578
  onBeforeLeave: l.onBeforeClose,
2549
2579
  onAfterLeave: l.onClose
2550
2580
  }, {
2551
2581
  default: m(() => [
2552
- n.showDrawer ? (s(), g(T(i.tag || "aside"), {
2582
+ n.showDrawer ? (o(), g(L(i.tag || "aside"), {
2553
2583
  key: 0,
2554
2584
  class: f(["w-drawer", l.drawerClasses]),
2555
2585
  ref: "drawer",
2556
- style: L(l.styles)
2586
+ style: R(l.styles)
2557
2587
  }, {
2558
2588
  default: m(() => [
2559
2589
  c(e.$slots, "default")
@@ -2563,8 +2593,8 @@ function di(e, t, i, o, n, l) {
2563
2593
  ]),
2564
2594
  _: 3
2565
2595
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2566
- ], 4)) : (s(), u(k, { key: 1 }, [
2567
- i.noOverlay ? p("", !0) : (s(), g(a, {
2596
+ ], 4)) : (o(), u(k, { key: 1 }, [
2597
+ i.noOverlay ? p("", !0) : (o(), g(a, {
2568
2598
  key: 0,
2569
2599
  modelValue: n.showDrawer,
2570
2600
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
@@ -2574,18 +2604,18 @@ function di(e, t, i, o, n, l) {
2574
2604
  "bg-color": i.overlayColor,
2575
2605
  opacity: i.overlayOpacity
2576
2606
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2577
- I(O, {
2607
+ T(P, {
2578
2608
  name: l.transitionName,
2579
2609
  appear: "",
2580
2610
  onBeforeLeave: l.onBeforeClose,
2581
2611
  onAfterLeave: l.onClose
2582
2612
  }, {
2583
2613
  default: m(() => [
2584
- n.showDrawer ? (s(), g(T(i.tag || "aside"), {
2614
+ n.showDrawer ? (o(), g(L(i.tag || "aside"), {
2585
2615
  key: 0,
2586
2616
  class: f(["w-drawer", l.drawerClasses]),
2587
2617
  ref: "drawer",
2588
- style: L(l.styles)
2618
+ style: R(l.styles)
2589
2619
  }, {
2590
2620
  default: m(() => [
2591
2621
  c(e.$slots, "default")
@@ -2598,7 +2628,7 @@ function di(e, t, i, o, n, l) {
2598
2628
  ], 64))
2599
2629
  ], 2)) : p("", !0);
2600
2630
  }
2601
- const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
2631
+ const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
2602
2632
  name: "w-drawer",
2603
2633
  props: {
2604
2634
  modelValue: { default: !0 },
@@ -2692,7 +2722,7 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
2692
2722
  return !this.showWrapper;
2693
2723
  },
2694
2724
  transitionName() {
2695
- return `slide-${ui[this.position]}`;
2725
+ return `slide-${vi[this.position]}`;
2696
2726
  }
2697
2727
  },
2698
2728
  methods: {
@@ -2711,9 +2741,9 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
2711
2741
  e && (this.showWrapper = !0), this.showDrawer = e;
2712
2742
  }
2713
2743
  }
2714
- }, ci = /* @__PURE__ */ v(hi, [["render", di]]);
2715
- function pi(e, t, i, o, n, l) {
2716
- return s(), g(T(i.tag), {
2744
+ }, Si = /* @__PURE__ */ v(Ci, [["render", ki]]);
2745
+ function Bi(e, t, i, s, n, l) {
2746
+ return o(), g(L(i.tag), {
2717
2747
  class: f(["w-flex", l.classes])
2718
2748
  }, {
2719
2749
  default: m(() => [
@@ -2722,7 +2752,7 @@ function pi(e, t, i, o, n, l) {
2722
2752
  _: 3
2723
2753
  }, 8, ["class"]);
2724
2754
  }
2725
- const fi = {
2755
+ const _i = {
2726
2756
  name: "w-flex",
2727
2757
  props: {
2728
2758
  tag: { type: String, default: "div" },
@@ -2769,9 +2799,9 @@ const fi = {
2769
2799
  };
2770
2800
  }
2771
2801
  }
2772
- }, mi = /* @__PURE__ */ v(fi, [["render", pi]]);
2773
- function gi(e, t, i, o, n, l) {
2774
- return s(), u("form", {
2802
+ }, $i = /* @__PURE__ */ v(_i, [["render", Bi]]);
2803
+ function Vi(e, t, i, s, n, l) {
2804
+ return o(), u("form", {
2775
2805
  class: f(["w-form", l.classes]),
2776
2806
  onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2777
2807
  onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
@@ -2780,12 +2810,11 @@ function gi(e, t, i, o, n, l) {
2780
2810
  c(e.$slots, "default")
2781
2811
  ], 34);
2782
2812
  }
2783
- const bi = async (e, t) => {
2813
+ const Ii = async (e, t) => {
2784
2814
  for (const i of e)
2785
- if (await t(i))
2786
- return !0;
2815
+ if (await t(i)) return !0;
2787
2816
  return !1;
2788
- }, yi = {
2817
+ }, Ti = {
2789
2818
  name: "w-form",
2790
2819
  props: {
2791
2820
  modelValue: {},
@@ -2854,8 +2883,8 @@ const bi = async (e, t) => {
2854
2883
  let t = 0;
2855
2884
  return await (async () => {
2856
2885
  var i;
2857
- for (const o of this.formElements)
2858
- !((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));
2886
+ for (const s of this.formElements)
2887
+ !((i = s.validators) != null && i.length) || s.disabled || s.readonly || (await this.checkElementValidators(s), t += ~~!s.Validation.isValid, s.$emit("update:valid", s.Validation.isValid));
2859
2888
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2860
2889
  },
2861
2890
  async validateElement(e) {
@@ -2865,8 +2894,8 @@ const bi = async (e, t) => {
2865
2894
  // message in the form element.
2866
2895
  async checkElementValidators(e) {
2867
2896
  let t = !1, i = "";
2868
- await bi(e.validators, async (o) => {
2869
- const n = await (typeof o == "function" && o(e.inputValue));
2897
+ await Ii(e.validators, async (s) => {
2898
+ const n = await (typeof s == "function" && s(e.inputValue));
2870
2899
  return t = typeof n != "string", i = t ? "" : n, !t;
2871
2900
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
2872
2901
  },
@@ -2877,7 +2906,7 @@ const bi = async (e, t) => {
2877
2906
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2878
2907
  },
2879
2908
  updateErrorsCount(e = null, t = !1) {
2880
- 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);
2909
+ this.errorsCount = e !== null ? e : this.formElements.reduce((i, s) => i + ~~(s.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);
2881
2910
  },
2882
2911
  onSubmit(e) {
2883
2912
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2891,20 +2920,20 @@ const bi = async (e, t) => {
2891
2920
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
2892
2921
  }
2893
2922
  }
2894
- }, wi = /* @__PURE__ */ v(yi, [["render", gi]]);
2895
- function ki(e, t, i, o, n, l) {
2923
+ }, Li = /* @__PURE__ */ v(Ti, [["render", Vi]]);
2924
+ function Ri(e, t, i, s, n, l) {
2896
2925
  const a = $("w-transition-expand");
2897
- return s(), u("div", {
2926
+ return o(), u("div", {
2898
2927
  class: f(l.classes)
2899
2928
  }, [
2900
- y("div", {
2929
+ w("div", {
2901
2930
  class: f(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
2902
2931
  }, [
2903
2932
  c(e.$slots, "default")
2904
2933
  ], 2),
2905
- I(a, { y: "" }, {
2934
+ T(a, { y: "" }, {
2906
2935
  default: m(() => [
2907
- e.Validation.message ? (s(), u("div", {
2936
+ e.Validation.message ? (o(), u("div", {
2908
2937
  key: 0,
2909
2938
  class: f(["w-form-el__error", l.formProps.validationColor])
2910
2939
  }, [
@@ -2919,7 +2948,7 @@ function ki(e, t, i, o, n, l) {
2919
2948
  })
2920
2949
  ], 2);
2921
2950
  }
2922
- const vi = {
2951
+ const xi = {
2923
2952
  name: "w-form-element",
2924
2953
  props: {
2925
2954
  valid: { required: !0 },
@@ -2979,8 +3008,7 @@ const vi = {
2979
3008
  },
2980
3009
  watch: {
2981
3010
  async inputValue() {
2982
- if (this.hasJustReset)
2983
- return this.hasJustReset = !1;
3011
+ if (this.hasJustReset) return this.hasJustReset = !1;
2984
3012
  !this.formProps.noKeyupValidation && this.validators && this.$emit("update:valid", await this.validateElement(this));
2985
3013
  },
2986
3014
  async isFocused(e) {
@@ -2993,9 +3021,9 @@ const vi = {
2993
3021
  beforeUnmount() {
2994
3022
  this.formUnregister && this.formUnregister(this);
2995
3023
  }
2996
- }, Ci = /* @__PURE__ */ v(vi, [["render", ki]]);
2997
- function Si(e, t, i, o, n, l) {
2998
- return s(), g(T(i.tag), {
3024
+ }, Pi = /* @__PURE__ */ v(xi, [["render", Ri]]);
3025
+ function Oi(e, t, i, s, n, l) {
3026
+ return o(), g(L(i.tag), {
2999
3027
  class: f(["w-grid", l.classes])
3000
3028
  }, {
3001
3029
  default: m(() => [
@@ -3004,7 +3032,7 @@ function Si(e, t, i, o, n, l) {
3004
3032
  _: 3
3005
3033
  }, 8, ["class"]);
3006
3034
  }
3007
- const Bi = {
3035
+ const Mi = {
3008
3036
  name: "w-grid",
3009
3037
  props: {
3010
3038
  tag: { type: String, default: "div" },
@@ -3040,31 +3068,31 @@ const Bi = {
3040
3068
  },
3041
3069
  classes() {
3042
3070
  let e = null;
3043
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [o, n]) => (i[`${o}-columns${n}`] = !0, i), {}));
3071
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, n]) => (i[`${s}-columns${n}`] = !0, i), {}));
3044
3072
  let t = null;
3045
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [o, n]) => (i[`${o}-gap${n}`] = !0, i), {})), {
3073
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, n]) => (i[`${s}-gap${n}`] = !0, i), {})), {
3046
3074
  ...e || { [`columns${this.columns}`]: this.columns },
3047
3075
  ...t || { [`gap${this.gap}`]: this.gap }
3048
3076
  };
3049
3077
  }
3050
3078
  }
3051
- }, _i = /* @__PURE__ */ v(Bi, [["render", Si]]);
3052
- function $i(e, t, i, o, n, l) {
3053
- return s(), g(T(i.tag || "i"), {
3079
+ }, zi = /* @__PURE__ */ v(Mi, [["render", Oi]]);
3080
+ function Ei(e, t, i, s, n, l) {
3081
+ return o(), g(L(i.tag || "i"), {
3054
3082
  class: f(["w-icon", l.classes]),
3055
3083
  role: "icon",
3056
3084
  "aria-hidden": "true",
3057
- style: L(l.readIcon() && l.styles)
3085
+ style: R(l.readIcon() && l.styles)
3058
3086
  }, {
3059
3087
  default: m(() => [
3060
- l.hasLigature ? (s(), u(k, { key: 0 }, [
3088
+ l.hasLigature ? (o(), u(k, { key: 0 }, [
3061
3089
  S(C(e.icon), 1)
3062
3090
  ], 64)) : p("", !0)
3063
3091
  ]),
3064
3092
  _: 1
3065
3093
  }, 8, ["class", "style"]);
3066
3094
  }
3067
- const Vi = {
3095
+ const Ai = {
3068
3096
  name: "w-icon",
3069
3097
  props: {
3070
3098
  tag: { type: String, default: "i" },
@@ -3133,39 +3161,39 @@ const Vi = {
3133
3161
  return this.fontName = t, this.icon = i, !0;
3134
3162
  }
3135
3163
  }
3136
- }, Ii = /* @__PURE__ */ v(Vi, [["render", $i]]), Ti = {
3164
+ }, Wi = /* @__PURE__ */ v(Ai, [["render", Ei]]), Ki = {
3137
3165
  key: 0,
3138
3166
  class: "w-image__loader"
3139
3167
  };
3140
- function Li(e, t, i, o, n, l) {
3168
+ function Ni(e, t, i, s, n, l) {
3141
3169
  const a = $("w-progress");
3142
- return s(), g(T(l.wrapperTag), {
3170
+ return o(), g(L(l.wrapperTag), {
3143
3171
  class: f(["w-image-wrap", l.wrapperClasses]),
3144
- style: L(l.wrapperStyles)
3172
+ style: R(l.wrapperStyles)
3145
3173
  }, {
3146
3174
  default: m(() => [
3147
- I(O, {
3175
+ T(P, {
3148
3176
  name: i.transition,
3149
3177
  appear: ""
3150
3178
  }, {
3151
3179
  default: m(() => [
3152
- n.loaded ? (s(), g(T(i.tag), {
3180
+ n.loaded ? (o(), g(L(i.tag), {
3153
3181
  key: 0,
3154
3182
  class: f(["w-image", l.imageClasses]),
3155
- style: L(l.imageStyles),
3183
+ style: R(l.imageStyles),
3156
3184
  src: i.tag === "img" ? n.imgSrc : null
3157
3185
  }, null, 8, ["class", "style", "src"])) : p("", !0)
3158
3186
  ]),
3159
3187
  _: 1
3160
3188
  }, 8, ["name"]),
3161
- !i.noSpinner && n.loading ? (s(), u("div", Ti, [
3162
- e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (s(), g(a, B({
3189
+ !i.noSpinner && n.loading ? (o(), u("div", Ki, [
3190
+ e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), g(a, _({
3163
3191
  key: 1,
3164
3192
  circle: "",
3165
3193
  indeterminate: ""
3166
3194
  }, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
3167
3195
  ])) : p("", !0),
3168
- e.$slots.default ? (s(), g(T(l.wrapperTag), {
3196
+ e.$slots.default ? (o(), g(L(l.wrapperTag), {
3169
3197
  key: 1,
3170
3198
  class: f(["w-image__content", i.contentClass])
3171
3199
  }, {
@@ -3178,7 +3206,7 @@ function Li(e, t, i, o, n, l) {
3178
3206
  _: 3
3179
3207
  }, 8, ["class", "style"]);
3180
3208
  }
3181
- const Ri = {
3209
+ const Di = {
3182
3210
  name: "w-image",
3183
3211
  props: {
3184
3212
  tag: { type: String, default: "span" },
@@ -3246,22 +3274,20 @@ const Ri = {
3246
3274
  if (!this.loading)
3247
3275
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
3248
3276
  const i = new Image();
3249
- 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) => {
3250
- this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
3277
+ i.onload = (s) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = s.target.width, this.imgHeight = s.target.height), this.imgComputedRatio = s.target.height / s.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(i)), i.onerror = (s) => {
3278
+ this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
3251
3279
  }, i.src = e ? this.fallback : this.src;
3252
3280
  });
3253
3281
  }
3254
3282
  },
3255
3283
  mounted() {
3256
- if (!this.src)
3257
- return F("The w-image component was used without src.");
3284
+ if (!this.src) return j("The w-image component was used without src.");
3258
3285
  if (this.lazy) {
3259
3286
  const e = new IntersectionObserver((t) => {
3260
3287
  t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
3261
3288
  }, this.intersectionConfig);
3262
3289
  e.observe(this.$el);
3263
- } else
3264
- this.loadImage();
3290
+ } else this.loadImage();
3265
3291
  },
3266
3292
  watch: {
3267
3293
  src() {
@@ -3274,13 +3300,13 @@ const Ri = {
3274
3300
  this.imgHeight = e;
3275
3301
  }
3276
3302
  }
3277
- }, Pi = /* @__PURE__ */ v(Ri, [["render", Li]]), Oi = ["name"], xi = ["for"], zi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], Ei = {
3303
+ }, Hi = /* @__PURE__ */ v(Di, [["render", Ni]]), Fi = ["name"], ji = ["for"], Ui = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], qi = ["id", "name", "multiple", "disabled", "data-progress"], Xi = {
3278
3304
  class: "w-input__no-file",
3279
3305
  key: "no-file"
3280
- }, Ai = ["for"], Wi = ["src"], Ki = ["for"];
3281
- function Ni(e, t, i, o, n, l) {
3306
+ }, Yi = ["for"], Gi = ["src"], Ji = ["for"];
3307
+ function Qi(e, t, i, s, n, l) {
3282
3308
  const a = $("w-icon"), r = $("w-progress");
3283
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3309
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3284
3310
  valid: e.valid,
3285
3311
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3286
3312
  onReset: t[11] || (t[11] = (d) => {
@@ -3291,16 +3317,16 @@ function Ni(e, t, i, o, n, l) {
3291
3317
  style: e.$attrs.style
3292
3318
  }), {
3293
3319
  default: m(() => [
3294
- i.type === "hidden" ? W((s(), u("input", {
3320
+ i.type === "hidden" ? W((o(), u("input", {
3295
3321
  key: 0,
3296
3322
  type: "hidden",
3297
3323
  name: e.name || null,
3298
3324
  "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3299
- }, null, 8, Oi)), [
3300
- [be, n.inputValue]
3301
- ]) : (s(), u(k, { key: 1 }, [
3302
- i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
3303
- e.$slots.default || i.label ? (s(), u("label", {
3325
+ }, null, 8, Fi)), [
3326
+ [ve, n.inputValue]
3327
+ ]) : (o(), u(k, { key: 1 }, [
3328
+ i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
3329
+ e.$slots.default || i.label ? (o(), u("label", {
3304
3330
  key: 0,
3305
3331
  class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
3306
3332
  for: `w-input--${e._.uid}`
@@ -3308,15 +3334,15 @@ function Ni(e, t, i, o, n, l) {
3308
3334
  c(e.$slots, "default", {}, () => [
3309
3335
  S(C(i.label), 1)
3310
3336
  ])
3311
- ], 10, xi)) : p("", !0)
3337
+ ], 10, ji)) : p("", !0)
3312
3338
  ], 64)) : p("", !0),
3313
- y("div", {
3339
+ w("div", {
3314
3340
  class: f(["w-input__input-wrap", l.inputWrapClasses])
3315
3341
  }, [
3316
3342
  c(e.$slots, "icon-left", {
3317
3343
  inputId: `w-input--${e._.uid}`
3318
3344
  }, () => [
3319
- i.innerIconLeft ? (s(), g(a, {
3345
+ i.innerIconLeft ? (o(), g(a, {
3320
3346
  key: 0,
3321
3347
  class: "w-input__icon w-input__icon--inner-left",
3322
3348
  tag: "label",
@@ -3329,7 +3355,7 @@ function Ni(e, t, i, o, n, l) {
3329
3355
  _: 1
3330
3356
  }, 8, ["for"])) : p("", !0)
3331
3357
  ]),
3332
- i.type !== "file" ? W((s(), u("input", B({
3358
+ i.type !== "file" ? W((o(), u("input", _({
3333
3359
  key: 0,
3334
3360
  class: "w-input__input",
3335
3361
  ref: "input",
@@ -3351,10 +3377,10 @@ function Ni(e, t, i, o, n, l) {
3351
3377
  disabled: e.isDisabled || null,
3352
3378
  required: e.required || null,
3353
3379
  tabindex: e.tabindex || null
3354
- }, l.attrs), null, 16, zi)), [
3355
- [$e, n.inputValue]
3356
- ]) : (s(), u(k, { key: 1 }, [
3357
- y("input", B({
3380
+ }, l.attrs), null, 16, Ui)), [
3381
+ [Re, n.inputValue]
3382
+ ]) : (o(), u(k, { key: 1 }, [
3383
+ w("input", _({
3358
3384
  ref: "input",
3359
3385
  id: `w-input--${e._.uid}`,
3360
3386
  type: "file",
@@ -3367,26 +3393,26 @@ function Ni(e, t, i, o, n, l) {
3367
3393
  disabled: e.isDisabled || null,
3368
3394
  "data-progress": l.overallFilesProgress
3369
3395
  /* Needed to emit the overallProgress. */
3370
- }), null, 16, Mi),
3371
- I(se, {
3396
+ }), null, 16, qi),
3397
+ T(ae, {
3372
3398
  class: "w-input__input w-input__input--file",
3373
3399
  tag: "label",
3374
3400
  name: "fade",
3375
3401
  for: `w-input--${e._.uid}`
3376
3402
  }, {
3377
3403
  default: m(() => [
3378
- !n.inputFiles.length && n.isFocused ? (s(), u("span", Ei, [
3404
+ !n.inputFiles.length && n.isFocused ? (o(), u("span", Xi, [
3379
3405
  c(e.$slots, "no-file", {}, () => [
3380
- e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
3406
+ e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
3381
3407
  S("No file")
3382
3408
  ], 64)) : p("", !0)
3383
3409
  ])
3384
3410
  ])) : p("", !0),
3385
- (s(!0), u(k, null, R(n.inputFiles, (d, h) => (s(), u("span", {
3411
+ (o(!0), u(k, null, x(n.inputFiles, (d, h) => (o(), u("span", {
3386
3412
  key: d.lastModified
3387
3413
  }, [
3388
3414
  S(C(h ? ", " : ""), 1),
3389
- (s(), u("span", {
3415
+ (o(), u("span", {
3390
3416
  class: "filename",
3391
3417
  key: `${h}b`
3392
3418
  }, C(d.base), 1)),
@@ -3396,8 +3422,8 @@ function Ni(e, t, i, o, n, l) {
3396
3422
  _: 3
3397
3423
  }, 8, ["for"])
3398
3424
  ], 64)),
3399
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 2 }, [
3400
- e.$slots.default || i.label ? (s(), u("label", {
3425
+ i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
3426
+ e.$slots.default || i.label ? (o(), u("label", {
3401
3427
  key: 0,
3402
3428
  class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
3403
3429
  }, [
@@ -3409,7 +3435,7 @@ function Ni(e, t, i, o, n, l) {
3409
3435
  c(e.$slots, "icon-right", {
3410
3436
  inputId: `w-input--${e._.uid}`
3411
3437
  }, () => [
3412
- i.innerIconRight ? (s(), g(a, {
3438
+ i.innerIconRight ? (o(), g(a, {
3413
3439
  key: 0,
3414
3440
  class: "w-input__icon w-input__icon--inner-right",
3415
3441
  tag: "label",
@@ -3422,7 +3448,7 @@ function Ni(e, t, i, o, n, l) {
3422
3448
  _: 1
3423
3449
  }, 8, ["for"])) : p("", !0)
3424
3450
  ]),
3425
- l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (s(), g(r, {
3451
+ l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
3426
3452
  key: 3,
3427
3453
  class: "fill-width",
3428
3454
  size: "2",
@@ -3430,28 +3456,28 @@ function Ni(e, t, i, o, n, l) {
3430
3456
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3431
3457
  }, null, 8, ["color", "model-value"])) : p("", !0)
3432
3458
  ], 2),
3433
- i.type === "file" && i.preview && n.inputFiles.length ? (s(), u("label", {
3459
+ i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
3434
3460
  key: 1,
3435
3461
  class: "d-flex",
3436
3462
  for: `w-input--${e._.uid}`
3437
3463
  }, [
3438
- (s(!0), u(k, null, R(n.inputFiles, (d, h) => (s(), u(k, null, [
3439
- d.progress < 100 ? (s(), u("i", {
3464
+ (o(!0), u(k, null, x(n.inputFiles, (d, h) => (o(), u(k, null, [
3465
+ d.progress < 100 ? (o(), u("i", {
3440
3466
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3441
3467
  key: `${h}a`
3442
- })) : d.preview ? (s(), u("img", {
3468
+ })) : d.preview ? (o(), u("img", {
3443
3469
  class: "w-input__file-preview",
3444
3470
  key: `${h}b`,
3445
3471
  src: d.preview,
3446
3472
  alt: ""
3447
- }, null, 8, Wi)) : (s(), u("i", {
3473
+ }, null, 8, Gi)) : (o(), u("i", {
3448
3474
  class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
3449
3475
  key: `${h}c`
3450
3476
  }, null, 2))
3451
3477
  ], 64))), 256))
3452
- ], 8, Ai)) : p("", !0),
3453
- i.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
3454
- e.$slots.default || i.label ? (s(), u("label", {
3478
+ ], 8, Yi)) : p("", !0),
3479
+ i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
3480
+ e.$slots.default || i.label ? (o(), u("label", {
3455
3481
  key: 0,
3456
3482
  class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
3457
3483
  for: `w-input--${e._.uid}`
@@ -3459,16 +3485,16 @@ function Ni(e, t, i, o, n, l) {
3459
3485
  c(e.$slots, "default", {}, () => [
3460
3486
  S(C(i.label), 1)
3461
3487
  ])
3462
- ], 10, Ki)) : p("", !0)
3488
+ ], 10, Ji)) : p("", !0)
3463
3489
  ], 64)) : p("", !0)
3464
3490
  ], 64))
3465
3491
  ]),
3466
3492
  _: 3
3467
3493
  }, 16, ["valid", "wrap", "class", "style"]);
3468
3494
  }
3469
- const Di = {
3495
+ const Zi = {
3470
3496
  name: "w-input",
3471
- mixins: [M],
3497
+ mixins: [z],
3472
3498
  inheritAttrs: !1,
3473
3499
  // The attrs should only be added to the input not the wrapper.
3474
3500
  props: {
@@ -3557,7 +3583,7 @@ const Di = {
3557
3583
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3558
3584
  },
3559
3585
  overallFilesProgress() {
3560
- const t = +this.inputFiles.reduce((i, o) => i + o.progress, 0) / this.inputFiles.length;
3586
+ const t = +this.inputFiles.reduce((i, s) => i + s.progress, 0) / this.inputFiles.length;
3561
3587
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : 0), t;
3562
3588
  },
3563
3589
  uploadInProgress() {
@@ -3615,9 +3641,9 @@ const Di = {
3615
3641
  // For file input.
3616
3642
  onFileChange(e) {
3617
3643
  this.inputFiles = [...e.target.files].map((i) => {
3618
- const [, o = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = G({
3644
+ const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Z({
3619
3645
  name: i.name,
3620
- base: o || l,
3646
+ base: s || l,
3621
3647
  extension: n,
3622
3648
  type: i.type,
3623
3649
  size: i.size,
@@ -3633,8 +3659,8 @@ const Di = {
3633
3659
  },
3634
3660
  // For file input.
3635
3661
  readFile(e, t) {
3636
- const i = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3637
- this.preview && !o && n ? i.addEventListener("load", (l) => {
3662
+ const i = new FileReader(), s = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3663
+ this.preview && !s && n ? i.addEventListener("load", (l) => {
3638
3664
  t.preview = l.target.result;
3639
3665
  }) : delete t.preview, i.addEventListener("progress", (l) => {
3640
3666
  l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
@@ -3651,17 +3677,17 @@ const Di = {
3651
3677
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
3652
3678
  }
3653
3679
  }
3654
- }, Hi = /* @__PURE__ */ v(Di, [["render", Ni]]);
3655
- function Fi(e, t, i, o, n, l) {
3680
+ }, el = /* @__PURE__ */ v(Zi, [["render", Qi]]);
3681
+ function tl(e, t, i, s, n, l) {
3656
3682
  const a = $("w-icon"), r = $("w-list", !0);
3657
- return s(), u("ul", {
3683
+ return o(), u("ul", {
3658
3684
  class: f(["w-list", l.classes])
3659
3685
  }, [
3660
- (s(!0), u(k, null, R(e.listItems, (d, h) => (s(), u("li", {
3686
+ (o(!0), u(k, null, x(e.listItems, (d, h) => (o(), u("li", {
3661
3687
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3662
3688
  key: h
3663
3689
  }, [
3664
- i.icon ? (s(), g(a, {
3690
+ i.icon ? (o(), g(a, {
3665
3691
  key: 0,
3666
3692
  class: "w-list__item-bullet"
3667
3693
  }, {
@@ -3670,7 +3696,7 @@ function Fi(e, t, i, o, n, l) {
3670
3696
  ]),
3671
3697
  _: 1
3672
3698
  })) : p("", !0),
3673
- e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
3699
+ e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), g(L(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), _({
3674
3700
  key: 1,
3675
3701
  class: "w-list__item-label",
3676
3702
  ref_for: !0
@@ -3696,41 +3722,41 @@ function Fi(e, t, i, o, n, l) {
3696
3722
  ])
3697
3723
  ]),
3698
3724
  _: 2
3699
- }, 1040)) : (s(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
3725
+ }, 1040)) : (o(), g(L(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), _({
3700
3726
  key: 2,
3701
3727
  class: "w-list__item-label",
3702
3728
  ref_for: !0
3703
3729
  }, l.liLabelProps(d, h, d._selected)), null, 16)),
3704
- (d.children || []).length ? (s(), g(r, B({
3730
+ (d.children || []).length ? (o(), g(r, _({
3705
3731
  key: 3,
3706
3732
  ref_for: !0
3707
3733
  }, e.$props, {
3708
3734
  items: d.children,
3709
3735
  depth: i.depth + 1,
3710
- "onUpdate:modelValue": t[0] || (t[0] = (w) => e.$emit("update:modelValue", w)),
3711
- onInput: t[1] || (t[1] = (w) => e.$emit("input", w)),
3712
- onItemClick: t[2] || (t[2] = (w) => e.$emit("item-click", w)),
3713
- onItemSelect: t[3] || (t[3] = (w) => e.$emit("item-select", w))
3714
- }), J({ _: 2 }, [
3736
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
3737
+ onInput: t[1] || (t[1] = (y) => e.$emit("input", y)),
3738
+ onItemClick: t[2] || (t[2] = (y) => e.$emit("item-click", y)),
3739
+ onItemSelect: t[3] || (t[3] = (y) => e.$emit("item-select", y))
3740
+ }), ee({ _: 2 }, [
3715
3741
  e.$slots.item ? {
3716
3742
  name: "item",
3717
- fn: m(({ item: w, index: _, selected: b }) => [
3743
+ fn: m(({ item: y, index: B, selected: b }) => [
3718
3744
  c(e.$slots, "item", {
3719
- item: l.cleanLi(w),
3720
- index: _,
3745
+ item: l.cleanLi(y),
3746
+ index: B,
3721
3747
  selected: b
3722
3748
  })
3723
3749
  ]),
3724
3750
  key: "0"
3725
3751
  } : {
3726
3752
  name: "default",
3727
- fn: m(({ item: w, index: _, selected: b }) => [
3753
+ fn: m(({ item: y, index: B, selected: b }) => [
3728
3754
  c(e.$slots, "default", {
3729
- item: l.cleanLi(w),
3730
- index: _,
3755
+ item: l.cleanLi(y),
3756
+ index: B,
3731
3757
  selected: b
3732
3758
  }, () => [
3733
- S(C(w[i.itemLabelKey]), 1)
3759
+ S(C(y[i.itemLabelKey]), 1)
3734
3760
  ])
3735
3761
  ]),
3736
3762
  key: "1"
@@ -3739,7 +3765,7 @@ function Fi(e, t, i, o, n, l) {
3739
3765
  ], 2))), 128))
3740
3766
  ], 2);
3741
3767
  }
3742
- const ji = {
3768
+ const il = {
3743
3769
  name: "w-list",
3744
3770
  props: {
3745
3771
  items: { type: [Array, Number], required: !0 },
@@ -3845,7 +3871,7 @@ const ji = {
3845
3871
  };
3846
3872
  },
3847
3873
  liLabelProps(e, t, i) {
3848
- const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3874
+ const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3849
3875
  if (!e.disabled) {
3850
3876
  const d = this.cleanLi(e);
3851
3877
  this.$emit("item-click", d), this.$emit("item-select", d);
@@ -3861,12 +3887,12 @@ const ji = {
3861
3887
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3862
3888
  role: "option"
3863
3889
  };
3864
- 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) => {
3890
+ return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, s || (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) => {
3865
3891
  const h = d.target.querySelector('input[type="checkbox"]');
3866
3892
  h && (h.focus(), h.click()), n();
3867
3893
  }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3868
3894
  d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3869
- }) : (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;
3895
+ }) : (r.href = e[this.itemRouteKey], r.onClick = n)), s || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), s || (r.innerHTML = e._label)), r;
3870
3896
  },
3871
3897
  // Convert the received items selection to array if it is a unique value.
3872
3898
  // Also accept objects if returnObject is true and convert to the object's value.
@@ -3878,9 +3904,8 @@ const ji = {
3878
3904
  // Emit the cleaned-up selection to the v-model.
3879
3905
  emitSelection() {
3880
3906
  const e = this.selectedItems.map((i) => {
3881
- if (!this.returnObject)
3882
- return i._value;
3883
- const { _value: o, _selected: n, ...l } = i;
3907
+ if (!this.returnObject) return i._value;
3908
+ const { _value: s, _selected: n, ...l } = i;
3884
3909
  return l;
3885
3910
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3886
3911
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3891,7 +3916,7 @@ const ji = {
3891
3916
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3892
3917
  },
3893
3918
  cleanLi(e) {
3894
- const { _index: t, _value: i, _label: o, _selected: n, _focused: l, ...a } = e;
3919
+ const { _index: t, _value: i, _label: s, _selected: n, _focused: l, ...a } = e;
3895
3920
  return a;
3896
3921
  },
3897
3922
  refreshListItems() {
@@ -3911,7 +3936,7 @@ const ji = {
3911
3936
  this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
3912
3937
  const t = this.checkSelection(e);
3913
3938
  this.listItems.forEach((i) => {
3914
- i._selected = t.find((o) => i._value === o) !== void 0;
3939
+ i._selected = t.find((s) => i._value === s) !== void 0;
3915
3940
  });
3916
3941
  }
3917
3942
  },
@@ -3934,7 +3959,7 @@ const ji = {
3934
3959
  }
3935
3960
  }
3936
3961
  }
3937
- }, Ui = /* @__PURE__ */ v(ji, [["render", Fi]]), we = {
3962
+ }, ll = /* @__PURE__ */ v(il, [["render", tl]]), Be = {
3938
3963
  props: {
3939
3964
  // Position.
3940
3965
  appendTo: { type: [String, Boolean, Object] },
@@ -3975,7 +4000,7 @@ const ji = {
3975
4000
  let e = ".w-app";
3976
4001
  typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
3977
4002
  let t = this.appendTo || e;
3978
- return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, F(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (F(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
4003
+ return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, j(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (j(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
3979
4004
  },
3980
4005
  // DOM element that will receive the tooltip/menu.
3981
4006
  // ! \ This computed uses the DOM - NO SSR (only trigger from beforeMount and later).
@@ -3984,8 +4009,7 @@ const ji = {
3984
4009
  },
3985
4010
  hasSeparateActivator() {
3986
4011
  var i;
3987
- if (this.$slots.activator)
3988
- return !1;
4012
+ if (this.$slots.activator) return !1;
3989
4013
  const e = typeof this.activator == "string", t = (((i = this.activator) == null ? void 0 : i.$el) || this.activator) instanceof HTMLElement;
3990
4014
  return e || t;
3991
4015
  },
@@ -4020,8 +4044,8 @@ const ji = {
4020
4044
  },
4021
4045
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4022
4046
  getActivatorCoordinates() {
4023
- const { top: e, left: t, width: i, height: o } = this.activatorEl.getBoundingClientRect();
4024
- let n = { top: e, left: t, width: i, height: o };
4047
+ const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
4048
+ let n = { top: e, left: t, width: i, height: s };
4025
4049
  if (!this.fixed) {
4026
4050
  const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4027
4051
  n = {
@@ -4034,9 +4058,8 @@ const ji = {
4034
4058
  },
4035
4059
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4036
4060
  computeDetachableCoords() {
4037
- let { top: e, left: t, width: i, height: o } = this.getActivatorCoordinates();
4038
- if (!this.detachableEl)
4039
- return;
4061
+ let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
4062
+ if (!this.detachableEl) return;
4040
4063
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
4041
4064
  const n = window.getComputedStyle(this.detachableEl, null);
4042
4065
  switch (this.position) {
@@ -4045,15 +4068,15 @@ const ji = {
4045
4068
  break;
4046
4069
  }
4047
4070
  case "bottom": {
4048
- e += o, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4071
+ e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4049
4072
  break;
4050
4073
  }
4051
4074
  case "left": {
4052
- t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
4075
+ t -= this.detachableEl.offsetWidth, this.alignBottom ? e += s - this.detachableEl.offsetHeight : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2);
4053
4076
  break;
4054
4077
  }
4055
4078
  case "right": {
4056
- t += i, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4079
+ t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4057
4080
  parseInt(n.getPropertyValue("margin-top")));
4058
4081
  break;
4059
4082
  }
@@ -4085,11 +4108,11 @@ const ji = {
4085
4108
  const e = typeof this.activator == "string";
4086
4109
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
4087
4110
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
4088
- const o = (n) => {
4111
+ const s = (n) => {
4089
4112
  var l;
4090
4113
  (e && ((l = n.target) != null && l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
4091
4114
  };
4092
- document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
4115
+ document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
4093
4116
  });
4094
4117
  }
4095
4118
  },
@@ -4113,16 +4136,16 @@ const ji = {
4113
4136
  }
4114
4137
  }
4115
4138
  };
4116
- function qi(e, t, i, o, n, l) {
4139
+ function sl(e, t, i, s, n, l) {
4117
4140
  const a = $("w-card"), r = $("w-overlay");
4118
- return s(), u(k, null, [
4141
+ return o(), u(k, null, [
4119
4142
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
4120
- I(O, {
4143
+ T(P, {
4121
4144
  name: l.transitionName,
4122
4145
  appear: ""
4123
4146
  }, {
4124
4147
  default: m(() => [
4125
- i.custom && e.detachableVisible ? (s(), u("div", B({
4148
+ i.custom && e.detachableVisible ? (o(), u("div", _({
4126
4149
  key: 0,
4127
4150
  class: "w-menu",
4128
4151
  ref: "detachable"
@@ -4134,7 +4157,7 @@ function qi(e, t, i, o, n, l) {
4134
4157
  style: l.styles
4135
4158
  }), [
4136
4159
  c(e.$slots, "default")
4137
- ], 16)) : e.detachableVisible ? (s(), g(a, B({
4160
+ ], 16)) : e.detachableVisible ? (o(), g(a, _({
4138
4161
  key: 1,
4139
4162
  class: "w-menu",
4140
4163
  ref: "detachable"
@@ -4149,7 +4172,7 @@ function qi(e, t, i, o, n, l) {
4149
4172
  "no-border": i.noBorder,
4150
4173
  class: l.classes,
4151
4174
  style: l.styles
4152
- }), J({
4175
+ }), ee({
4153
4176
  default: m(() => [
4154
4177
  c(e.$slots, "default")
4155
4178
  ]),
@@ -4173,7 +4196,7 @@ function qi(e, t, i, o, n, l) {
4173
4196
  ]),
4174
4197
  _: 3
4175
4198
  }, 8, ["name"]),
4176
- i.overlay ? (s(), g(r, B({
4199
+ i.overlay ? (o(), g(r, _({
4177
4200
  key: 0,
4178
4201
  ref: "overlay",
4179
4202
  "model-value": e.detachableVisible,
@@ -4185,9 +4208,9 @@ function qi(e, t, i, o, n, l) {
4185
4208
  }), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
4186
4209
  ], 64);
4187
4210
  }
4188
- const Xi = {
4211
+ const ol = {
4189
4212
  name: "w-menu",
4190
- mixins: [we],
4213
+ mixins: [Be],
4191
4214
  inheritAttrs: !1,
4192
4215
  // The attrs are only bound to the button-partial, not the root.
4193
4216
  props: {
@@ -4358,20 +4381,20 @@ const Xi = {
4358
4381
  }
4359
4382
  }
4360
4383
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
4361
- }, Yi = /* @__PURE__ */ v(Xi, [["render", qi]]);
4362
- function Gi(e, t, i, o, n, l) {
4384
+ }, al = /* @__PURE__ */ v(ol, [["render", sl]]);
4385
+ function nl(e, t, i, s, n, l) {
4363
4386
  const a = $("w-alert");
4364
- return s(), g(O, {
4387
+ return o(), g(P, {
4365
4388
  name: l.transitionName,
4366
4389
  appear: ""
4367
4390
  }, {
4368
4391
  default: m(() => [
4369
- n.show ? (s(), u("div", {
4392
+ n.show ? (o(), u("div", {
4370
4393
  key: 0,
4371
4394
  class: f(["w-notification", l.classes]),
4372
- style: L(l.styles)
4395
+ style: R(l.styles)
4373
4396
  }, [
4374
- I(a, B(l.alertProps, {
4397
+ T(a, _(l.alertProps, {
4375
4398
  class: l.alertClasses,
4376
4399
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
4377
4400
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
@@ -4387,7 +4410,7 @@ function Gi(e, t, i, o, n, l) {
4387
4410
  _: 3
4388
4411
  }, 8, ["name"]);
4389
4412
  }
4390
- const Ji = {
4413
+ const rl = {
4391
4414
  name: "w-notification",
4392
4415
  props: {
4393
4416
  // Notification props.
@@ -4510,34 +4533,34 @@ const Ji = {
4510
4533
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
4511
4534
  }
4512
4535
  }
4513
- }, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
4514
- function Zi(e, t, i, o, n, l) {
4515
- const a = ge("focus");
4516
- return s(), g(O, {
4536
+ }, dl = /* @__PURE__ */ v(rl, [["render", nl]]);
4537
+ function ul(e, t, i, s, n, l) {
4538
+ const a = ke("focus");
4539
+ return o(), g(P, {
4517
4540
  name: "fade",
4518
4541
  appear: "",
4519
4542
  onAfterLeave: l.onClose
4520
4543
  }, {
4521
4544
  default: m(() => [
4522
- i.modelValue ? W((s(), u("div", {
4545
+ i.modelValue ? W((o(), u("div", {
4523
4546
  key: 0,
4524
4547
  class: f(["w-overlay", l.classes]),
4525
4548
  ref: "overlay",
4526
- style: L(i.modelValue && l.styles || null),
4527
- onKeydown: t[0] || (t[0] = E(z((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
4549
+ style: R(i.modelValue && l.styles || null),
4550
+ onKeydown: t[0] || (t[0] = E(M((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
4528
4551
  onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
4529
4552
  tabindex: "0"
4530
4553
  }, [
4531
4554
  c(e.$slots, "default")
4532
4555
  ], 38)), [
4533
- [ae, e.showOverlay],
4556
+ [re, e.showOverlay],
4534
4557
  [a]
4535
4558
  ]) : p("", !0)
4536
4559
  ]),
4537
4560
  _: 3
4538
4561
  }, 8, ["onAfterLeave"]);
4539
4562
  }
4540
- const el = {
4563
+ const hl = {
4541
4564
  name: "w-overlay",
4542
4565
  props: {
4543
4566
  modelValue: {},
@@ -4595,26 +4618,26 @@ const el = {
4595
4618
  e && (this.showOverlay = !0);
4596
4619
  }
4597
4620
  }
4598
- }, tl = /* @__PURE__ */ v(el, [["render", Zi]]), il = { class: "w-parallax" };
4599
- function ll(e, t, i, o, n, l) {
4600
- return s(), u("div", il);
4621
+ }, cl = /* @__PURE__ */ v(hl, [["render", ul]]), pl = { class: "w-parallax" };
4622
+ function fl(e, t, i, s, n, l) {
4623
+ return o(), u("div", pl);
4601
4624
  }
4602
- const sl = {
4625
+ const ml = {
4603
4626
  name: "w-parallax",
4604
4627
  props: {},
4605
4628
  emits: [],
4606
4629
  data: () => ({})
4607
- }, ol = /* @__PURE__ */ v(sl, [["render", ll]]), al = ["viewBox"], nl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], rl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4608
- function dl(e, t, i, o, n, l) {
4609
- return s(), u("div", {
4630
+ }, gl = /* @__PURE__ */ v(ml, [["render", fl]]), bl = ["viewBox"], yl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], wl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4631
+ function kl(e, t, i, s, n, l) {
4632
+ return o(), u("div", {
4610
4633
  class: f(["w-progress", l.classes]),
4611
- style: L(l.styles)
4634
+ style: R(l.styles)
4612
4635
  }, [
4613
- i.circle ? (s(), u("svg", {
4636
+ i.circle ? (o(), u("svg", {
4614
4637
  key: 1,
4615
4638
  viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
4616
4639
  }, [
4617
- i.bgColor || this.progressValue > -1 ? (s(), u("circle", {
4640
+ i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
4618
4641
  key: 0,
4619
4642
  class: f(["bg", i.bgColor || null]),
4620
4643
  cx: l.circleCenter,
@@ -4623,8 +4646,8 @@ function dl(e, t, i, o, n, l) {
4623
4646
  fill: "transparent",
4624
4647
  "stroke-dasharray": e.circleCircumference,
4625
4648
  "stroke-width": i.stroke
4626
- }, null, 10, nl)) : p("", !0),
4627
- y("circle", {
4649
+ }, null, 10, yl)) : p("", !0),
4650
+ w("circle", {
4628
4651
  class: "w-progress__progress",
4629
4652
  cx: l.circleCenter,
4630
4653
  cy: l.circleCenter,
@@ -4633,14 +4656,14 @@ function dl(e, t, i, o, n, l) {
4633
4656
  "stroke-width": i.stroke,
4634
4657
  "stroke-linecap": i.roundCap && "round",
4635
4658
  "stroke-dasharray": e.circleCircumference,
4636
- style: L(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4637
- }, null, 12, rl)
4638
- ], 8, al)) : (s(), u("div", {
4659
+ style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4660
+ }, null, 12, wl)
4661
+ ], 8, bl)) : (o(), u("div", {
4639
4662
  key: 0,
4640
4663
  class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
4641
- style: L(`width: ${l.progressValue}%`)
4664
+ style: R(`width: ${l.progressValue}%`)
4642
4665
  }, null, 6)),
4643
- i.label || e.$slots.default ? (s(), u("div", {
4666
+ i.label || e.$slots.default ? (o(), u("div", {
4644
4667
  key: 2,
4645
4668
  class: f(["w-progress__label", i.labelColor || !1])
4646
4669
  }, [
@@ -4650,7 +4673,7 @@ function dl(e, t, i, o, n, l) {
4650
4673
  ], 2)) : p("", !0)
4651
4674
  ], 6);
4652
4675
  }
4653
- const Y = 40, ul = Y / 2, hl = Math.round(Y * 3.14 * 100) / 100, cl = {
4676
+ const Q = 40, vl = Q / 2, Cl = Math.round(Q * 3.14 * 100) / 100, Sl = {
4654
4677
  name: "w-progress",
4655
4678
  props: {
4656
4679
  modelValue: { type: [Number, String, Boolean], default: -1 },
@@ -4677,16 +4700,16 @@ const Y = 40, ul = Y / 2, hl = Math.round(Y * 3.14 * 100) / 100, cl = {
4677
4700
  },
4678
4701
  emits: [],
4679
4702
  data: () => ({
4680
- circleSize: Y,
4681
- circleRadius: ul,
4682
- circleCircumference: hl
4703
+ circleSize: Q,
4704
+ circleRadius: vl,
4705
+ circleCircumference: Cl
4683
4706
  }),
4684
4707
  computed: {
4685
4708
  progressValue() {
4686
4709
  return parseFloat(this.modelValue);
4687
4710
  },
4688
4711
  circleCenter() {
4689
- return Y + this.stroke;
4712
+ return Q + this.stroke;
4690
4713
  },
4691
4714
  forcedSize() {
4692
4715
  return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
@@ -4719,9 +4742,9 @@ const Y = 40, ul = Y / 2, hl = Math.round(Y * 3.14 * 100) / 100, cl = {
4719
4742
  };
4720
4743
  }
4721
4744
  }
4722
- }, pl = /* @__PURE__ */ v(cl, [["render", dl]]), fl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ml = ["for"], gl = ["for", "innerHTML"], bl = ["for"], yl = ["for", "innerHTML"];
4723
- function wl(e, t, i, o, n, l) {
4724
- return s(), g(T(e.formRegister && !l.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4745
+ }, Bl = /* @__PURE__ */ v(Sl, [["render", kl]]), _l = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], $l = ["for"], Vl = ["for", "innerHTML"], Il = ["for"], Tl = ["for", "innerHTML"];
4746
+ function Ll(e, t, i, s, n, l) {
4747
+ return o(), g(L(e.formRegister && !l.wRadios ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4725
4748
  valid: e.valid,
4726
4749
  "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4727
4750
  onReset: t[4] || (t[4] = (a) => {
@@ -4730,7 +4753,7 @@ function wl(e, t, i, o, n, l) {
4730
4753
  class: l.classes
4731
4754
  }), {
4732
4755
  default: m(() => [
4733
- y("input", {
4756
+ w("input", {
4734
4757
  ref: "input",
4735
4758
  id: `w-radio--${e._.uid}`,
4736
4759
  type: "radio",
@@ -4743,9 +4766,9 @@ function wl(e, t, i, o, n, l) {
4743
4766
  onChange: t[1] || (t[1] = (a) => l.onInput(a)),
4744
4767
  "aria-checked": e.inputValue || "false",
4745
4768
  role: "radio"
4746
- }, null, 40, fl),
4747
- l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
4748
- e.$slots.default ? (s(), u("label", {
4769
+ }, null, 40, _l),
4770
+ l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
4771
+ e.$slots.default ? (o(), u("label", {
4749
4772
  key: 0,
4750
4773
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4751
4774
  for: `w-radio--${e._.uid}`
@@ -4753,21 +4776,21 @@ function wl(e, t, i, o, n, l) {
4753
4776
  c(e.$slots, "default", {}, () => [
4754
4777
  S(C(i.label), 1)
4755
4778
  ])
4756
- ], 10, ml)) : i.label ? (s(), u("label", {
4779
+ ], 10, $l)) : i.label ? (o(), u("label", {
4757
4780
  key: 1,
4758
4781
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4759
4782
  for: `w-radio--${e._.uid}`,
4760
4783
  innerHTML: i.label
4761
- }, null, 10, gl)) : p("", !0)
4784
+ }, null, 10, Vl)) : p("", !0)
4762
4785
  ], 64)) : p("", !0),
4763
- y("div", {
4786
+ w("div", {
4764
4787
  class: f(["w-radio__input", this.color]),
4765
4788
  onClick: t[2] || (t[2] = (a) => {
4766
4789
  e.$refs.input.focus(), e.$refs.input.click();
4767
4790
  })
4768
4791
  }, null, 2),
4769
- l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
4770
- e.$slots.default ? (s(), u("label", {
4792
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
4793
+ e.$slots.default ? (o(), u("label", {
4771
4794
  key: 0,
4772
4795
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4773
4796
  for: `w-radio--${e._.uid}`
@@ -4775,20 +4798,20 @@ function wl(e, t, i, o, n, l) {
4775
4798
  c(e.$slots, "default", {}, () => [
4776
4799
  S(C(i.label), 1)
4777
4800
  ])
4778
- ], 10, bl)) : i.label ? (s(), u("label", {
4801
+ ], 10, Il)) : i.label ? (o(), u("label", {
4779
4802
  key: 1,
4780
4803
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4781
4804
  for: `w-radio--${e._.uid}`,
4782
4805
  innerHTML: i.label
4783
- }, null, 10, yl)) : p("", !0)
4806
+ }, null, 10, Tl)) : p("", !0)
4784
4807
  ], 64)) : p("", !0)
4785
4808
  ]),
4786
4809
  _: 3
4787
4810
  }, 16, ["valid", "class"]);
4788
4811
  }
4789
- const kl = {
4812
+ const Rl = {
4790
4813
  name: "w-radio",
4791
- mixins: [M],
4814
+ mixins: [z],
4792
4815
  inject: { wRadios: { default: null } },
4793
4816
  props: {
4794
4817
  modelValue: { default: !1 },
@@ -4851,10 +4874,10 @@ const kl = {
4851
4874
  this.toggleFromOutside();
4852
4875
  }
4853
4876
  }
4854
- }, vl = /* @__PURE__ */ v(kl, [["render", wl]]), Cl = ["innerHTML"];
4855
- function Sl(e, t, i, o, n, l) {
4877
+ }, xl = /* @__PURE__ */ v(Rl, [["render", Ll]]), Pl = ["innerHTML"];
4878
+ function Ol(e, t, i, s, n, l) {
4856
4879
  const a = $("w-radio");
4857
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4880
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4858
4881
  valid: e.valid,
4859
4882
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4860
4883
  onReset: t[2] || (t[2] = (r) => {
@@ -4865,7 +4888,7 @@ function Sl(e, t, i, o, n, l) {
4865
4888
  class: l.classes
4866
4889
  }), {
4867
4890
  default: m(() => [
4868
- (s(!0), u(k, null, R(l.radioItems, (r, d) => (s(), g(a, B({
4891
+ (o(!0), u(k, null, x(l.radioItems, (r, d) => (o(), g(a, _({
4869
4892
  key: d,
4870
4893
  "model-value": r.value === i.modelValue,
4871
4894
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -4884,10 +4907,10 @@ function Sl(e, t, i, o, n, l) {
4884
4907
  index: d + 1,
4885
4908
  checked: r.value === i.modelValue,
4886
4909
  innerHTML: r.label
4887
- }) : r.label ? (s(), u("div", {
4910
+ }) : r.label ? (o(), u("div", {
4888
4911
  key: 1,
4889
4912
  innerHTML: r.label
4890
- }, null, 8, Cl)) : p("", !0)
4913
+ }, null, 8, Pl)) : p("", !0)
4891
4914
  ]),
4892
4915
  _: 2
4893
4916
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -4895,9 +4918,9 @@ function Sl(e, t, i, o, n, l) {
4895
4918
  _: 3
4896
4919
  }, 16, ["valid", "column", "wrap", "class"]);
4897
4920
  }
4898
- const Bl = {
4921
+ const Ml = {
4899
4922
  name: "w-radios",
4900
- mixins: [M],
4923
+ mixins: [z],
4901
4924
  props: {
4902
4925
  items: { type: Array, required: !0 },
4903
4926
  // All the possible options.
@@ -4948,9 +4971,9 @@ const Bl = {
4948
4971
  return this.items[e._index];
4949
4972
  }
4950
4973
  }
4951
- }, _l = /* @__PURE__ */ v(Bl, [["render", Sl]]), $l = ["id", "name", "value"], Vl = ["disabled", "onMouseenter", "onClick", "tabindex"];
4952
- function Il(e, t, i, o, n, l) {
4953
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4974
+ }, zl = /* @__PURE__ */ v(Ml, [["render", Ol]]), El = ["id", "name", "value"], Al = ["disabled", "onMouseenter", "onClick", "tabindex"];
4975
+ function Wl(e, t, i, s, n, l) {
4976
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4954
4977
  valid: e.valid,
4955
4978
  "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4956
4979
  onReset: t[5] || (t[5] = (a) => {
@@ -4959,18 +4982,18 @@ function Il(e, t, i, o, n, l) {
4959
4982
  class: l.classes
4960
4983
  }), {
4961
4984
  default: m(() => [
4962
- y("input", {
4985
+ w("input", {
4963
4986
  id: e.inputName,
4964
4987
  name: e.inputName,
4965
4988
  type: "hidden",
4966
4989
  value: n.rating
4967
- }, null, 8, $l),
4968
- (s(!0), u(k, null, R(i.max, (a) => (s(), u(k, { key: a }, [
4990
+ }, null, 8, El),
4991
+ (o(!0), u(k, null, x(i.max, (a) => (o(), u(k, { key: a }, [
4969
4992
  e.$slots.item ? c(e.$slots, "item", {
4970
4993
  key: 0,
4971
4994
  index: a + 1
4972
4995
  }) : p("", !0),
4973
- y("button", {
4996
+ w("button", {
4974
4997
  class: f(["w-rating__button", l.buttonClasses(a)]),
4975
4998
  disabled: e.isDisabled || e.isReadonly,
4976
4999
  onMouseenter: (r) => n.hover = a,
@@ -4982,22 +5005,22 @@ function Il(e, t, i, o, n, l) {
4982
5005
  type: "button",
4983
5006
  tabindex: a === 1 ? 0 : -1
4984
5007
  }, [
4985
- a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
5008
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
4986
5009
  key: 0,
4987
5010
  class: f(["w-icon", `${i.icon} ${i.color}`]),
4988
5011
  role: "icon",
4989
5012
  "aria-hidden": "true",
4990
- style: L(l.halfStarStyle)
5013
+ style: R(l.halfStarStyle)
4991
5014
  }, null, 6)) : p("", !0)
4992
- ], 42, Vl)
5015
+ ], 42, Al)
4993
5016
  ], 64))), 128))
4994
5017
  ]),
4995
5018
  _: 3
4996
5019
  }, 16, ["valid", "class"]);
4997
5020
  }
4998
- const Tl = {
5021
+ const Kl = {
4999
5022
  name: "w-rating",
5000
- mixins: [M],
5023
+ mixins: [z],
5001
5024
  props: {
5002
5025
  modelValue: {},
5003
5026
  max: { type: [Number, String], default: 5 },
@@ -5089,10 +5112,10 @@ const Tl = {
5089
5112
  this.rating = parseFloat(e);
5090
5113
  }
5091
5114
  }
5092
- }, Ll = /* @__PURE__ */ v(Tl, [["render", Il]]);
5093
- function Rl(e, t, i, o, n, l) {
5094
- return s(), u(k, null, [
5095
- y("div", B({
5115
+ }, Nl = /* @__PURE__ */ v(Kl, [["render", Wl]]);
5116
+ function Dl(e, t, i, s, n, l) {
5117
+ return o(), u(k, null, [
5118
+ w("div", _({
5096
5119
  class: ["w-scrollable", l.scrollableClasses],
5097
5120
  ref: "scrollable",
5098
5121
  onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
@@ -5101,20 +5124,20 @@ function Rl(e, t, i, o, n, l) {
5101
5124
  }, e.$attrs, { style: l.scrollableStyles }), [
5102
5125
  c(e.$slots, "default")
5103
5126
  ], 16),
5104
- y("div", {
5127
+ w("div", {
5105
5128
  class: f(["w-scrollbar", l.scrollbarClasses]),
5106
5129
  ref: "track",
5107
5130
  onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
5108
5131
  }, [
5109
- y("div", {
5132
+ w("div", {
5110
5133
  class: "w-scrollbar__thumb",
5111
5134
  ref: "thumb",
5112
- style: L(l.thumbStyles)
5135
+ style: R(l.thumbStyles)
5113
5136
  }, null, 4)
5114
5137
  ], 34)
5115
5138
  ], 64);
5116
5139
  }
5117
- const Pl = {
5140
+ const Hl = {
5118
5141
  h: {
5119
5142
  direction: "horizontal",
5120
5143
  topOrLeft: "left",
@@ -5137,7 +5160,7 @@ const Pl = {
5137
5160
  deltaXorY: "deltaY",
5138
5161
  scrollTopOrLeft: "scrollTop"
5139
5162
  }
5140
- }, Ol = {
5163
+ }, Fl = {
5141
5164
  name: "w-scrollable",
5142
5165
  props: {
5143
5166
  color: { type: String, default: "primary" },
@@ -5157,11 +5180,11 @@ const Pl = {
5157
5180
  }),
5158
5181
  computed: {
5159
5182
  isHorizontal() {
5160
- var e, t, i, o;
5161
- return this.mounted ? (console.log("💂‍♂️", (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;
5183
+ var e, t, i, s;
5184
+ return this.mounted ? (console.log("💂‍♂️", (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) > ((s = this.$refs.scrollable) == null ? void 0 : s.offsetWidth)) : !1;
5162
5185
  },
5163
5186
  m() {
5164
- return Pl[this.isHorizontal ? "h" : "v"];
5187
+ return Hl[this.isHorizontal ? "h" : "v"];
5165
5188
  },
5166
5189
  scrollableClasses() {
5167
5190
  return {
@@ -5192,10 +5215,9 @@ const Pl = {
5192
5215
  },
5193
5216
  methods: {
5194
5217
  onTrackMouseDown(e) {
5195
- if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
5196
- return;
5197
- const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
5198
- 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 });
5218
+ if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
5219
+ const { top: t, left: i, width: s, height: n } = this.$refs.track.getBoundingClientRect();
5220
+ this.isHorizontal ? (this.$refs.track.width = s, 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 });
5199
5221
  },
5200
5222
  onDrag(e) {
5201
5223
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -5215,7 +5237,7 @@ const Pl = {
5215
5237
  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()));
5216
5238
  },
5217
5239
  computeScroll(e) {
5218
- const { top: t, left: i, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? o : n;
5240
+ const { top: t, left: i, width: s, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? s : n;
5219
5241
  this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
5220
5242
  },
5221
5243
  scroll() {
@@ -5231,13 +5253,13 @@ const Pl = {
5231
5253
  const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
5232
5254
  this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style.padding = 0, window.addEventListener("resize", this.onResize);
5233
5255
  }
5234
- }, xl = /* @__PURE__ */ v(Ol, [["render", Rl]]), zl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
5256
+ }, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = ["aria-expanded", "aria-owns", "aria-activedescendant"], ql = {
5235
5257
  key: 0,
5236
5258
  class: "w-select__selection-slot"
5237
- }, El = ["innerHTML"], Al = ["value", "name"];
5238
- function Wl(e, t, i, o, n, l) {
5259
+ }, Xl = ["innerHTML"], Yl = ["value", "name"];
5260
+ function Gl(e, t, i, s, n, l) {
5239
5261
  const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
5240
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
5262
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
5241
5263
  valid: e.valid,
5242
5264
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
5243
5265
  onReset: l.onReset,
@@ -5245,8 +5267,8 @@ function Wl(e, t, i, o, n, l) {
5245
5267
  class: l.classes
5246
5268
  }), {
5247
5269
  default: m(() => [
5248
- i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
5249
- e.$slots.default || i.label ? (s(), u("label", {
5270
+ i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
5271
+ e.$slots.default || i.label ? (o(), u("label", {
5250
5272
  key: 0,
5251
5273
  class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
5252
5274
  onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
@@ -5256,7 +5278,7 @@ function Wl(e, t, i, o, n, l) {
5256
5278
  ])
5257
5279
  ], 2)) : p("", !0)
5258
5280
  ], 64)) : p("", !0),
5259
- I(d, B({
5281
+ T(d, _({
5260
5282
  modelValue: e.showMenu,
5261
5283
  "onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
5262
5284
  onClose: l.closeMenu,
@@ -5268,7 +5290,7 @@ function Wl(e, t, i, o, n, l) {
5268
5290
  "min-width": "activator"
5269
5291
  }, i.menuProps || {}), {
5270
5292
  activator: m(() => [
5271
- y("div", {
5293
+ w("div", {
5272
5294
  class: f(["w-select__selection-wrap", l.inputWrapClasses]),
5273
5295
  onClick: t[6] || (t[6] = (h) => !e.isDisabled && !e.isReadonly && l.onInputFieldClick()),
5274
5296
  role: "button",
@@ -5278,7 +5300,7 @@ function Wl(e, t, i, o, n, l) {
5278
5300
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
5279
5301
  }, [
5280
5302
  c(e.$slots, "icon-left", {}, () => [
5281
- i.innerIconLeft ? (s(), g(a, {
5303
+ i.innerIconLeft ? (o(), g(a, {
5282
5304
  key: 0,
5283
5305
  class: "w-select__icon w-select__icon--inner-left",
5284
5306
  tag: "label",
@@ -5290,26 +5312,26 @@ function Wl(e, t, i, o, n, l) {
5290
5312
  _: 1
5291
5313
  })) : p("", !0)
5292
5314
  ]),
5293
- e.$slots.selection ? (s(), u("div", Ml, [
5315
+ e.$slots.selection ? (o(), u("div", ql, [
5294
5316
  c(e.$slots, "selection", {
5295
5317
  item: i.multiple ? e.inputValue : e.inputValue[0]
5296
5318
  })
5297
5319
  ])) : p("", !0),
5298
- y("div", B({
5320
+ w("div", _({
5299
5321
  class: "w-select__selection",
5300
5322
  ref: "selection-input",
5301
5323
  onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
5302
5324
  onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
5303
5325
  onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
5304
- }, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, El),
5305
- (s(!0), u(k, null, R(e.inputValue.length ? e.inputValue : [{}], (h, w) => (s(), u("input", {
5306
- key: w,
5326
+ }, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, Xl),
5327
+ (o(!0), u(k, null, x(e.inputValue.length ? e.inputValue : [{}], (h, y) => (o(), u("input", {
5328
+ key: y,
5307
5329
  type: "hidden",
5308
5330
  value: h.value === void 0 ? "" : h.value.toString(),
5309
5331
  name: e.inputName + (i.multiple ? "[]" : "")
5310
- }, null, 8, Al))), 128)),
5311
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 1 }, [
5312
- e.$slots.default || i.label ? (s(), u("label", {
5332
+ }, null, 8, Yl))), 128)),
5333
+ i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
5334
+ e.$slots.default || i.label ? (o(), u("label", {
5313
5335
  key: 0,
5314
5336
  class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
5315
5337
  }, [
@@ -5319,7 +5341,7 @@ function Wl(e, t, i, o, n, l) {
5319
5341
  ], 2)) : p("", !0)
5320
5342
  ], 64)) : p("", !0),
5321
5343
  c(e.$slots, "icon-right", {}, () => [
5322
- i.innerIconRight ? (s(), g(a, {
5344
+ i.innerIconRight ? (o(), g(a, {
5323
5345
  key: 0,
5324
5346
  class: "w-select__icon w-select__icon--inner-right",
5325
5347
  tag: "label",
@@ -5331,10 +5353,10 @@ function Wl(e, t, i, o, n, l) {
5331
5353
  _: 1
5332
5354
  })) : p("", !0)
5333
5355
  ])
5334
- ], 10, zl)
5356
+ ], 10, Ul)
5335
5357
  ]),
5336
5358
  default: m(() => [
5337
- I(r, {
5359
+ T(r, {
5338
5360
  ref: "w-list",
5339
5361
  "model-value": e.inputValue,
5340
5362
  "onUpdate:modelValue": l.onInput,
@@ -5353,24 +5375,24 @@ function Wl(e, t, i, o, n, l) {
5353
5375
  "item-color-key": i.itemColorKey,
5354
5376
  role: "listbox",
5355
5377
  tabindex: "-1"
5356
- }, J({ _: 2 }, [
5357
- R(i.items.length, (h) => ({
5378
+ }, ee({ _: 2 }, [
5379
+ x(i.items.length, (h) => ({
5358
5380
  name: `item.${h}`,
5359
- fn: m(({ item: w, selected: _, index: b }) => [
5360
- e.$slots[`item.${h}`] && e.$slots[`item.${h}`](w, _, b) ? c(e.$slots, `item.${h}`, {
5381
+ fn: m(({ item: y, selected: B, index: b }) => [
5382
+ e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, B, b) ? c(e.$slots, `item.${h}`, {
5361
5383
  key: 0,
5362
- item: w,
5363
- selected: _,
5384
+ item: y,
5385
+ selected: B,
5364
5386
  index: b
5365
5387
  }, () => [
5366
- S(C(w[i.itemLabelKey]), 1)
5388
+ S(C(y[i.itemLabelKey]), 1)
5367
5389
  ]) : c(e.$slots, "item", {
5368
5390
  key: 1,
5369
- item: w,
5370
- selected: _,
5391
+ item: y,
5392
+ selected: B,
5371
5393
  index: b
5372
5394
  }, () => [
5373
- S(C(w[i.itemLabelKey]), 1)
5395
+ S(C(y[i.itemLabelKey]), 1)
5374
5396
  ])
5375
5397
  ])
5376
5398
  }))
@@ -5378,8 +5400,8 @@ function Wl(e, t, i, o, n, l) {
5378
5400
  ]),
5379
5401
  _: 3
5380
5402
  }, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
5381
- i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
5382
- e.$slots.default || i.label ? (s(), u("label", {
5403
+ i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
5404
+ e.$slots.default || i.label ? (o(), u("label", {
5383
5405
  key: 0,
5384
5406
  class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
5385
5407
  onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
@@ -5393,9 +5415,9 @@ function Wl(e, t, i, o, n, l) {
5393
5415
  _: 3
5394
5416
  }, 16, ["valid", "onReset", "wrap", "class"]);
5395
5417
  }
5396
- const Kl = {
5418
+ const Jl = {
5397
5419
  name: "w-select",
5398
- mixins: [M],
5420
+ mixins: [z],
5399
5421
  props: {
5400
5422
  items: { type: Array, required: !0 },
5401
5423
  modelValue: {},
@@ -5526,23 +5548,19 @@ const Kl = {
5526
5548
  this.showMenu || (this.isFocused = !1, this.$emit("blur", e));
5527
5549
  },
5528
5550
  onKeydown(e) {
5529
- if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu)
5530
- this.closeMenu();
5531
- else if ([13, 32].includes(e.keyCode))
5532
- this.openMenu();
5551
+ if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu) this.closeMenu();
5552
+ else if ([13, 32].includes(e.keyCode)) this.openMenu();
5533
5553
  else if ([38, 40].includes(e.keyCode))
5534
- if (this.multiple)
5535
- this.openMenu();
5554
+ if (this.multiple) this.openMenu();
5536
5555
  else {
5537
5556
  let { index: t } = this.inputValue[0] || {};
5538
5557
  const i = this.selectItems;
5539
- if (t === void 0)
5540
- t = e.keyCode === 38 ? i.length - 1 : 0;
5558
+ if (t === void 0) t = e.keyCode === 38 ? i.length - 1 : 0;
5541
5559
  else {
5542
5560
  const n = e.keyCode === 38 ? -1 : 1;
5543
5561
  t = (t + i.length + n) % i.length;
5544
5562
  }
5545
- let o = !1;
5563
+ let s = !1;
5546
5564
  if (i[t].disabled) {
5547
5565
  const n = e.keyCode === 38 ? -1 : 1;
5548
5566
  let l = (t + n + i.length) % i.length;
@@ -5550,25 +5568,24 @@ const Kl = {
5550
5568
  let r = 0;
5551
5569
  for (; r < a && i[l].disabled; )
5552
5570
  l = (l + i.length + n) % i.length, r++;
5553
- r >= a && (o = !0), t = l;
5571
+ r >= a && (s = !0), t = l;
5554
5572
  }
5555
- o || this.onInput(i[t]);
5573
+ s || this.onInput(i[t]);
5556
5574
  }
5557
- else
5558
- e.key.length === 1 && this.focusItemOnQuickLookup(e);
5575
+ else e.key.length === 1 && this.focusItemOnQuickLookup(e);
5559
5576
  },
5560
5577
  onWListKeydown(e) {
5561
5578
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
5562
5579
  },
5563
5580
  focusItemOnQuickLookup(e) {
5564
- var o, n, l;
5581
+ var s, n, l;
5565
5582
  this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
5566
5583
  const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
5567
5584
  (a) => !a.disabled && a[this.itemLabelKey].match(t)
5568
5585
  ) + 1;
5569
5586
  if (i) {
5570
5587
  const a = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5571
- (l = (n = (o = this.$refs["w-list"]) == null ? void 0 : o.$el) == null ? void 0 : n.querySelector(a)) == null || l.focus();
5588
+ (l = (n = (s = this.$refs["w-list"]) == null ? void 0 : s.$el) == null ? void 0 : n.querySelector(a)) == null || l.focus();
5572
5589
  }
5573
5590
  },
5574
5591
  // The items are given by the w-list component.
@@ -5596,8 +5613,8 @@ const Kl = {
5596
5613
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
5597
5614
  const t = this.selectItems.map((i) => i.value);
5598
5615
  return e.map((i) => {
5599
- let o = i;
5600
- return i && typeof i == "object" && (o = i[this.itemValueKey] ?? i[this.itemLabelKey] ?? i), this.selectItems[t.indexOf(o)];
5616
+ let s = i;
5617
+ return i && typeof i == "object" && (s = i[this.itemValueKey] ?? i[this.itemLabelKey] ?? i), this.selectItems[t.indexOf(s)];
5601
5618
  }).filter((i) => i !== void 0);
5602
5619
  },
5603
5620
  // Open the dropdown selection list.
@@ -5628,12 +5645,12 @@ const Kl = {
5628
5645
  this.inputValue = this.checkSelection(this.modelValue);
5629
5646
  }
5630
5647
  }
5631
- }, Nl = /* @__PURE__ */ v(Kl, [["render", Wl]]), Dl = ["for"], Hl = ["for", "innerHTML"], Fl = { class: "w-slider__track-wrap" }, jl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ul = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], ql = ["for"], Xl = { key: 0 }, Yl = {
5648
+ }, Ql = /* @__PURE__ */ v(Jl, [["render", Gl]]), Zl = ["for"], es = ["for", "innerHTML"], ts = { class: "w-slider__track-wrap" }, is = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], ls = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], ss = ["for"], os = { key: 0 }, as = {
5632
5649
  key: 0,
5633
5650
  class: "w-slider__step-labels"
5634
- }, Gl = ["onClick"], Jl = ["for"], Ql = ["for", "innerHTML"];
5635
- function Zl(e, t, i, o, n, l) {
5636
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5651
+ }, ns = ["onClick"], rs = ["for"], ds = ["for", "innerHTML"];
5652
+ function us(e, t, i, s, n, l) {
5653
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5637
5654
  valid: e.valid,
5638
5655
  "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5639
5656
  onReset: t[9] || (t[9] = (a) => {
@@ -5643,20 +5660,20 @@ function Zl(e, t, i, o, n, l) {
5643
5660
  class: l.wrapperClasses
5644
5661
  }), {
5645
5662
  default: m(() => [
5646
- e.$slots["label-left"] ? (s(), u("label", {
5663
+ e.$slots["label-left"] ? (o(), u("label", {
5647
5664
  key: 0,
5648
5665
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5649
5666
  for: `button--${e._.uid}`
5650
5667
  }, [
5651
5668
  c(e.$slots, "label-left")
5652
- ], 10, Dl)) : i.labelLeft ? (s(), u("label", {
5669
+ ], 10, Zl)) : i.labelLeft ? (o(), u("label", {
5653
5670
  key: 1,
5654
5671
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5655
5672
  for: `button--${e._.uid}`,
5656
5673
  innerHTML: i.labelLeft
5657
- }, null, 10, Hl)) : p("", !0),
5658
- y("div", Fl, [
5659
- y("div", {
5674
+ }, null, 10, es)) : p("", !0),
5675
+ w("div", ts, [
5676
+ w("div", {
5660
5677
  class: f(["w-slider__track", l.trackClasses]),
5661
5678
  ref: "track",
5662
5679
  onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
@@ -5669,15 +5686,15 @@ function Zl(e, t, i, o, n, l) {
5669
5686
  "aria-readonly": e.isReadonly ? "true" : "false",
5670
5687
  "aria-orientation": "horizontal"
5671
5688
  }, [
5672
- y("div", {
5689
+ w("div", {
5673
5690
  class: f(["w-slider__range", l.rangeClasses]),
5674
- style: L(l.rangeStyles)
5691
+ style: R(l.rangeStyles)
5675
5692
  }, null, 6),
5676
- y("div", {
5693
+ w("div", {
5677
5694
  class: "w-slider__thumb",
5678
- style: L(l.thumbStyles)
5695
+ style: R(l.thumbStyles)
5679
5696
  }, [
5680
- y("button", {
5697
+ w("button", {
5681
5698
  class: f(["w-slider__thumb-button", [i.color]]),
5682
5699
  ref: "thumb",
5683
5700
  id: `button--${e._.uid}`,
@@ -5692,15 +5709,15 @@ function Zl(e, t, i, o, n, l) {
5692
5709
  t[1] || (t[1] = E((a) => l.onKeyDown(a, 1), ["right"]))
5693
5710
  ],
5694
5711
  onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5695
- onClick: t[3] || (t[3] = z(() => {
5712
+ onClick: t[3] || (t[3] = M(() => {
5696
5713
  }, ["prevent"]))
5697
- }, null, 42, Ul),
5698
- i.thumbLabel ? (s(), u("label", {
5714
+ }, null, 42, ls),
5715
+ i.thumbLabel ? (o(), u("label", {
5699
5716
  key: 0,
5700
5717
  class: f(["w-slider__thumb-label", l.thumbClasses]),
5701
5718
  for: `button--${e._.uid}`
5702
5719
  }, [
5703
- i.thumbLabel === "droplet" ? (s(), u("div", Xl, [
5720
+ i.thumbLabel === "droplet" ? (o(), u("div", os, [
5704
5721
  c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
5705
5722
  S(C(~~e.rangeValueScaled), 1)
5706
5723
  ])
@@ -5710,21 +5727,21 @@ function Zl(e, t, i, o, n, l) {
5710
5727
  }, () => [
5711
5728
  S(C(~~e.rangeValueScaled), 1)
5712
5729
  ])
5713
- ], 10, ql)) : p("", !0)
5730
+ ], 10, ss)) : p("", !0)
5714
5731
  ], 4)
5715
- ], 42, jl),
5716
- i.stepLabels && i.step ? (s(), u("div", Yl, [
5717
- y("div", {
5732
+ ], 42, is),
5733
+ i.stepLabels && i.step ? (o(), u("div", as, [
5734
+ w("div", {
5718
5735
  class: "w-slider__step-label",
5719
5736
  onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5720
5737
  }, C(this.minVal), 1),
5721
- (s(!0), u(k, null, R(~~l.numberOfSteps, (a) => (s(), u("div", {
5738
+ (o(!0), u(k, null, x(~~l.numberOfSteps, (a) => (o(), u("div", {
5722
5739
  class: "w-slider__step-label",
5723
5740
  key: a,
5724
5741
  onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5725
- style: L(`left: ${a * (100 / l.numberOfSteps)}%`)
5726
- }, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Gl))), 128)),
5727
- ~~l.numberOfSteps !== l.numberOfSteps ? (s(), u("div", {
5742
+ style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
5743
+ }, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, ns))), 128)),
5744
+ ~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
5728
5745
  key: 0,
5729
5746
  class: "w-slider__step-label",
5730
5747
  onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
@@ -5732,25 +5749,25 @@ function Zl(e, t, i, o, n, l) {
5732
5749
  }, C(this.maxVal), 1)) : p("", !0)
5733
5750
  ])) : p("", !0)
5734
5751
  ]),
5735
- e.$slots["label-right"] ? (s(), u("label", {
5752
+ e.$slots["label-right"] ? (o(), u("label", {
5736
5753
  key: 2,
5737
5754
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5738
5755
  for: `button--${e._.uid}`
5739
5756
  }, [
5740
5757
  c(e.$slots, "label-right")
5741
- ], 10, Jl)) : i.labelRight ? (s(), u("label", {
5758
+ ], 10, rs)) : i.labelRight ? (o(), u("label", {
5742
5759
  key: 3,
5743
5760
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5744
5761
  for: `button--${e._.uid}`,
5745
5762
  innerHTML: i.labelRight
5746
- }, null, 10, Ql)) : p("", !0)
5763
+ }, null, 10, ds)) : p("", !0)
5747
5764
  ]),
5748
5765
  _: 3
5749
5766
  }, 16, ["valid", "wrap", "class"]);
5750
5767
  }
5751
- const es = {
5768
+ const hs = {
5752
5769
  name: "w-slider",
5753
- mixins: [M],
5770
+ mixins: [z],
5754
5771
  props: {
5755
5772
  modelValue: { type: Number, default: 0 },
5756
5773
  color: { type: String, default: "primary" },
@@ -5848,8 +5865,7 @@ const es = {
5848
5865
  return Math.round((e / 100 * this.scaledRange + this.minVal) * 100) / 100;
5849
5866
  },
5850
5867
  onTrackMouseDown(e) {
5851
- if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
5852
- return;
5868
+ if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
5853
5869
  const { left: t, width: i } = this.track.el.getBoundingClientRect();
5854
5870
  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 });
5855
5871
  },
@@ -5886,17 +5902,17 @@ const es = {
5886
5902
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
5887
5903
  }
5888
5904
  }
5889
- }, ts = /* @__PURE__ */ v(es, [["render", Zl]]), is = { key: 0 };
5890
- function ls(e, t, i, o, n, l) {
5891
- return i.modelValue || i.modelValue === void 0 ? (s(), u("div", {
5905
+ }, cs = /* @__PURE__ */ v(hs, [["render", us]]), ps = { key: 0 };
5906
+ function fs(e, t, i, s, n, l) {
5907
+ return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
5892
5908
  key: 0,
5893
5909
  class: f(["w-spinner", l.classes]),
5894
- style: L(l.styles)
5910
+ style: R(l.styles)
5895
5911
  }, [
5896
- l.isThreeDots ? (s(), u("span", is)) : p("", !0)
5912
+ l.isThreeDots ? (o(), u("span", ps)) : p("", !0)
5897
5913
  ], 6)) : p("", !0);
5898
5914
  }
5899
- const ss = {
5915
+ const ms = {
5900
5916
  name: "w-spinner",
5901
5917
  props: {
5902
5918
  modelValue: {},
@@ -5934,13 +5950,13 @@ const ss = {
5934
5950
  };
5935
5951
  }
5936
5952
  }
5937
- }, os = /* @__PURE__ */ v(ss, [["render", ls]]);
5938
- function as(e, t, i, o, n, l) {
5939
- return s(), u("div", {
5953
+ }, gs = /* @__PURE__ */ v(ms, [["render", fs]]);
5954
+ function bs(e, t, i, s, n, l) {
5955
+ return o(), u("div", {
5940
5956
  class: f(["w-steps", l.classes])
5941
5957
  }, null, 2);
5942
5958
  }
5943
- const ns = {
5959
+ const ys = {
5944
5960
  name: "w-steps",
5945
5961
  props: {
5946
5962
  dark: { type: Boolean },
@@ -5956,16 +5972,16 @@ const ns = {
5956
5972
  };
5957
5973
  }
5958
5974
  }
5959
- }, rs = /* @__PURE__ */ v(ns, [["render", as]]), ds = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], us = ["for"], hs = {
5975
+ }, ws = /* @__PURE__ */ v(ys, [["render", bs]]), ks = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], vs = ["for"], Cs = {
5960
5976
  key: 0,
5961
5977
  class: "w-switch__track"
5962
- }, cs = {
5978
+ }, Ss = {
5963
5979
  key: 1,
5964
5980
  class: "w-switch__thumb"
5965
- }, ps = ["for"];
5966
- function fs(e, t, i, o, n, l) {
5981
+ }, Bs = ["for"];
5982
+ function _s(e, t, i, s, n, l) {
5967
5983
  const a = $("w-progress");
5968
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5984
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5969
5985
  valid: e.valid,
5970
5986
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5971
5987
  onReset: t[4] || (t[4] = (r) => {
@@ -5975,7 +5991,7 @@ function fs(e, t, i, o, n, l) {
5975
5991
  style: e.$attrs.style
5976
5992
  }), {
5977
5993
  default: m(() => [
5978
- y("input", B({
5994
+ w("input", _({
5979
5995
  ref: "input",
5980
5996
  id: `w-switch--${e._.uid}`,
5981
5997
  type: "checkbox",
@@ -5991,9 +6007,9 @@ function fs(e, t, i, o, n, l) {
5991
6007
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5992
6008
  "aria-checked": n.isOn || "false",
5993
6009
  role: "switch"
5994
- }), null, 16, ds),
5995
- l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
5996
- e.$slots.default || i.label ? (s(), u("label", {
6010
+ }), null, 16, ks),
6011
+ l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
6012
+ e.$slots.default || i.label ? (o(), u("label", {
5997
6013
  key: 0,
5998
6014
  class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
5999
6015
  for: `w-switch--${e._.uid}`
@@ -6001,27 +6017,27 @@ function fs(e, t, i, o, n, l) {
6001
6017
  c(e.$slots, "default", {}, () => [
6002
6018
  S(C(i.label), 1)
6003
6019
  ])
6004
- ], 10, us)) : p("", !0)
6020
+ ], 10, vs)) : p("", !0)
6005
6021
  ], 64)) : p("", !0),
6006
- y("div", {
6022
+ w("div", {
6007
6023
  class: f(["w-switch__input", l.inputClasses]),
6008
6024
  onClick: t[2] || (t[2] = (r) => {
6009
6025
  e.$refs.input.focus(), e.$refs.input.click();
6010
6026
  })
6011
6027
  }, [
6012
- e.$slots.track ? (s(), u("div", hs, [
6028
+ e.$slots.track ? (o(), u("div", Cs, [
6013
6029
  c(e.$slots, "track")
6014
6030
  ])) : p("", !0),
6015
- e.$slots.thumb || i.loading ? (s(), u("div", cs, [
6016
- i.loading ? (s(), g(a, B({
6031
+ e.$slots.thumb || i.loading ? (o(), u("div", Ss, [
6032
+ i.loading ? (o(), g(a, _({
6017
6033
  key: 0,
6018
6034
  circle: "",
6019
6035
  color: "inherit"
6020
6036
  }, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
6021
6037
  ])) : p("", !0)
6022
6038
  ], 2),
6023
- l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
6024
- e.$slots.default || i.label ? (s(), u("label", {
6039
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
6040
+ e.$slots.default || i.label ? (o(), u("label", {
6025
6041
  key: 0,
6026
6042
  class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
6027
6043
  for: `w-switch--${e._.uid}`
@@ -6029,15 +6045,15 @@ function fs(e, t, i, o, n, l) {
6029
6045
  c(e.$slots, "default", {}, () => [
6030
6046
  S(C(i.label), 1)
6031
6047
  ])
6032
- ], 10, ps)) : p("", !0)
6048
+ ], 10, Bs)) : p("", !0)
6033
6049
  ], 64)) : p("", !0)
6034
6050
  ]),
6035
6051
  _: 3
6036
6052
  }, 16, ["valid", "class", "style"]);
6037
6053
  }
6038
- const ms = {
6054
+ const $s = {
6039
6055
  name: "w-switch",
6040
- mixins: [M],
6056
+ mixins: [z],
6041
6057
  inheritAttrs: !1,
6042
6058
  // The attrs should only be added to the input not the wrapper.
6043
6059
  props: {
@@ -6111,33 +6127,33 @@ const ms = {
6111
6127
  this.isOn = e;
6112
6128
  }
6113
6129
  }
6114
- }, gs = /* @__PURE__ */ v(ms, [["render", fs]]), bs = { class: "w-tabs__content" };
6115
- function ys(e, t, i, o, n, l) {
6116
- return s(), u("div", bs, [
6130
+ }, Vs = /* @__PURE__ */ v($s, [["render", _s]]), Is = { class: "w-tabs__content" };
6131
+ function Ts(e, t, i, s, n, l) {
6132
+ return o(), u("div", Is, [
6117
6133
  c(e.$slots, "default", { item: i.item })
6118
6134
  ]);
6119
6135
  }
6120
- const ws = {
6136
+ const Ls = {
6121
6137
  name: "tab-content",
6122
6138
  // Keep-alive include/exclude mechanism is component-name-based.
6123
6139
  props: { item: Object }
6124
- }, ks = /* @__PURE__ */ v(ws, [["render", ys]]), vs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Cs = ["innerHTML"], Ss = {
6140
+ }, Rs = /* @__PURE__ */ v(Ls, [["render", Ts]]), xs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Ps = ["innerHTML"], Os = {
6125
6141
  key: 0,
6126
6142
  class: "w-tabs__bar-extra"
6127
- }, Bs = {
6143
+ }, Ms = {
6128
6144
  key: 0,
6129
6145
  class: "w-tabs__content-wrap"
6130
- }, _s = ["innerHTML"], $s = ["innerHTML"];
6131
- function Vs(e, t, i, o, n, l) {
6146
+ }, zs = ["innerHTML"], Es = ["innerHTML"];
6147
+ function As(e, t, i, s, n, l) {
6132
6148
  const a = $("tab-content");
6133
- return s(), u("div", {
6149
+ return o(), u("div", {
6134
6150
  class: f(["w-tabs", l.tabsClasses])
6135
6151
  }, [
6136
- y("div", {
6152
+ w("div", {
6137
6153
  class: f(["w-tabs__bar", l.tabsBarClasses]),
6138
6154
  ref: "tabs-bar"
6139
6155
  }, [
6140
- (s(!0), u(k, null, R(e.tabs, (r, d) => (s(), u("div", {
6156
+ (o(!0), u(k, null, x(e.tabs, (r, d) => (o(), u("div", {
6141
6157
  class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
6142
6158
  key: d,
6143
6159
  onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
@@ -6158,27 +6174,27 @@ function Vs(e, t, i, o, n, l) {
6158
6174
  index: d + 1,
6159
6175
  active: r._uid === e.activeTabUid
6160
6176
  }, () => [
6161
- y("div", {
6177
+ w("div", {
6162
6178
  innerHTML: r[i.itemTitleKey]
6163
- }, null, 8, Cs)
6179
+ }, null, 8, Ps)
6164
6180
  ])
6165
- ], 42, vs))), 128)),
6166
- e.$slots["tabs-bar-extra"] ? (s(), u("div", Ss, [
6181
+ ], 42, xs))), 128)),
6182
+ e.$slots["tabs-bar-extra"] ? (o(), u("div", Os, [
6167
6183
  c(e.$slots, "tabs-bar-extra")
6168
6184
  ])) : p("", !0),
6169
- !i.noSlider && !i.card ? (s(), u("div", {
6185
+ !i.noSlider && !i.card ? (o(), u("div", {
6170
6186
  key: 1,
6171
6187
  class: f(["w-tabs__slider", i.sliderColor]),
6172
- style: L(l.sliderStyles)
6188
+ style: R(l.sliderStyles)
6173
6189
  }, null, 6)) : p("", !0)
6174
6190
  ], 2),
6175
- e.tabs.length ? (s(), u("div", Bs, [
6176
- i.keepInDom ? (s(), g(se, {
6191
+ e.tabs.length ? (o(), u("div", Ms, [
6192
+ i.keepInDom ? (o(), g(ae, {
6177
6193
  key: 0,
6178
6194
  name: l.transitionName
6179
6195
  }, {
6180
6196
  default: m(() => [
6181
- (s(!0), u(k, null, R(e.tabs, (r, d) => W((s(), g(a, {
6197
+ (o(!0), u(k, null, x(e.tabs, (r, d) => W((o(), g(a, {
6182
6198
  key: r._uid,
6183
6199
  item: r,
6184
6200
  class: f(i.contentClass)
@@ -6195,34 +6211,34 @@ function Vs(e, t, i, o, n, l) {
6195
6211
  index: r._index + 1,
6196
6212
  active: r._index === l.activeTab._index
6197
6213
  }, () => [
6198
- r[i.itemContentKey] ? (s(), u("div", {
6214
+ r[i.itemContentKey] ? (o(), u("div", {
6199
6215
  key: 0,
6200
6216
  innerHTML: r[i.itemContentKey]
6201
- }, null, 8, _s)) : p("", !0)
6217
+ }, null, 8, zs)) : p("", !0)
6202
6218
  ])
6203
6219
  ]),
6204
6220
  _: 2
6205
6221
  }, 1032, ["item", "class"])), [
6206
- [ae, r._uid === l.activeTab._uid]
6222
+ [re, r._uid === l.activeTab._uid]
6207
6223
  ])), 128))
6208
6224
  ]),
6209
6225
  _: 3
6210
- }, 8, ["name"])) : (s(), g(O, {
6226
+ }, 8, ["name"])) : (o(), g(P, {
6211
6227
  key: 1,
6212
6228
  name: l.transitionName,
6213
6229
  mode: l.transitionMode
6214
6230
  }, {
6215
6231
  default: m(() => [
6216
- (s(), g(Ve, {
6232
+ (o(), g(xe, {
6217
6233
  exclude: i.keepAlive ? "" : "tab-content"
6218
6234
  }, [
6219
- (s(), g(a, {
6235
+ (o(), g(a, {
6220
6236
  key: e.activeTabUid,
6221
6237
  item: l.activeTab,
6222
6238
  class: f(i.contentClass)
6223
6239
  }, {
6224
6240
  default: m(({ item: r }) => [
6225
- r ? (s(), u(k, { key: 0 }, [
6241
+ r ? (o(), u(k, { key: 0 }, [
6226
6242
  e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
6227
6243
  key: 0,
6228
6244
  item: l.getOriginalItem(r),
@@ -6234,10 +6250,10 @@ function Vs(e, t, i, o, n, l) {
6234
6250
  index: r._index + 1,
6235
6251
  active: r._uid === e.activeTabUid
6236
6252
  }, () => [
6237
- r[i.itemContentKey] ? (s(), u("div", {
6253
+ r[i.itemContentKey] ? (o(), u("div", {
6238
6254
  key: 0,
6239
6255
  innerHTML: r[i.itemContentKey]
6240
- }, null, 8, $s)) : p("", !0)
6256
+ }, null, 8, Es)) : p("", !0)
6241
6257
  ])
6242
6258
  ], 64)) : p("", !0)
6243
6259
  ]),
@@ -6250,8 +6266,8 @@ function Vs(e, t, i, o, n, l) {
6250
6266
  ])) : p("", !0)
6251
6267
  ], 2);
6252
6268
  }
6253
- let fe = 0;
6254
- const Is = {
6269
+ let ye = 0;
6270
+ const Ws = {
6255
6271
  name: "w-tabs",
6256
6272
  props: {
6257
6273
  modelValue: { type: [Number, String] },
@@ -6277,7 +6293,7 @@ const Is = {
6277
6293
  keepAlive: { type: Boolean, default: !0 },
6278
6294
  keepInDom: { type: Boolean, default: !1 }
6279
6295
  },
6280
- components: { TabContent: ks },
6296
+ components: { TabContent: Rs },
6281
6297
  emits: ["input", "update:modelValue", "focus"],
6282
6298
  data: () => ({
6283
6299
  tabs: [],
@@ -6336,7 +6352,7 @@ const Is = {
6336
6352
  methods: {
6337
6353
  // Adding a tab in the list.
6338
6354
  addTab(e) {
6339
- (e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
6355
+ (e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++ye}`), this.tabs.push({
6340
6356
  _uid: e[this.itemIdKey] ?? e._uid,
6341
6357
  _index: this.tabs.length,
6342
6358
  ...e,
@@ -6345,7 +6361,7 @@ const Is = {
6345
6361
  },
6346
6362
  refreshTabs() {
6347
6363
  let e = this.items;
6348
- typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++fe}`), {
6364
+ typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++ye}`), {
6349
6365
  ...t,
6350
6366
  _uid: t[this.itemIdKey] ?? t._uid,
6351
6367
  _index: i,
@@ -6353,11 +6369,10 @@ const Is = {
6353
6369
  }));
6354
6370
  },
6355
6371
  reopenTheActiveTab() {
6356
- var t, i, o;
6357
- if (this.tabs.length === 1)
6358
- return this.openTab(this.tabs[0]._uid);
6372
+ var t, i, s;
6373
+ if (this.tabs.length === 1) return this.openTab(this.tabs[0]._uid);
6359
6374
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
6360
- 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);
6375
+ e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (s = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : s._uid), e && this.openTab(e);
6361
6376
  },
6362
6377
  onResize() {
6363
6378
  this.updateSlider(!1);
@@ -6385,16 +6400,16 @@ const Is = {
6385
6400
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
6386
6401
  }
6387
6402
  if (!this.fillBar && this.activeTabEl) {
6388
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
6389
- this.slider.left = `${t - n - parseInt(l) + o.scrollLeft}px`, this.slider.width = `${i}px`;
6403
+ const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: n } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
6404
+ this.slider.left = `${t - n - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
6390
6405
  } else
6391
6406
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
6392
6407
  },
6393
6408
  updateActiveTab(e) {
6394
6409
  var t, i;
6395
6410
  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(() => {
6396
- const o = this.$refs["tabs-bar"];
6397
- this.activeTabEl = o && o.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6411
+ const s = this.$refs["tabs-bar"];
6412
+ this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6398
6413
  }));
6399
6414
  },
6400
6415
  // Return the original item (so there is no `_index`, etc.).
@@ -6427,58 +6442,58 @@ const Is = {
6427
6442
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
6428
6443
  }
6429
6444
  }
6430
- }, Ts = /* @__PURE__ */ v(Is, [["render", Vs]]), Ls = { class: "w-table__scroll-wrap" }, Rs = { ref: "colgroup" }, Ps = ["width"], Os = { key: 0 }, xs = ["onClick"], zs = ["innerHTML"], Ms = {
6445
+ }, Ks = /* @__PURE__ */ v(Ws, [["render", As]]), Ns = { class: "w-table__scroll-wrap" }, Ds = { ref: "colgroup" }, Hs = ["width"], Fs = { key: 0 }, js = ["onClick"], Us = ["innerHTML"], qs = {
6431
6446
  key: 0,
6432
6447
  class: "w-table__progress-bar"
6433
- }, Es = ["colspan"], As = {
6448
+ }, Xs = ["colspan"], Ys = {
6434
6449
  key: 0,
6435
6450
  class: "w-table__progress-bar"
6436
- }, Ws = ["colspan"], Ks = { class: "w-table__loading-text" }, Ns = {
6451
+ }, Gs = ["colspan"], Js = { class: "w-table__loading-text" }, Qs = {
6437
6452
  key: 1,
6438
6453
  class: "no-data"
6439
- }, Ds = ["colspan"], Hs = ["onClick"], Fs = ["data-label"], js = ["data-label"], Us = ["innerHTML"], qs = {
6454
+ }, Zs = ["colspan"], eo = ["onClick"], to = ["data-label"], io = ["data-label"], lo = ["innerHTML"], so = {
6440
6455
  key: 2,
6441
6456
  class: "w-table__row w-table__row--expansion"
6442
- }, Xs = ["colspan"], Ys = { key: 0 }, Gs = {
6457
+ }, oo = ["colspan"], ao = { key: 0 }, no = {
6443
6458
  key: 3,
6444
6459
  class: "w-table__extra-row"
6445
- }, Js = {
6460
+ }, ro = {
6446
6461
  key: 1,
6447
6462
  class: "w-table__footer"
6448
- }, Qs = {
6463
+ }, uo = {
6449
6464
  key: 1,
6450
6465
  class: "w-table__row"
6451
- }, Zs = ["colspan"], eo = {
6466
+ }, ho = ["colspan"], co = {
6452
6467
  key: 0,
6453
6468
  class: "w-table__pagination w-pagination"
6454
- }, to = { class: "pages-wrap" }, io = { class: "w-pagination__results" };
6455
- function lo(e, t, i, o, n, l) {
6456
- const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), _ = $("w-button");
6457
- return s(), u("div", {
6469
+ }, po = { class: "pages-wrap" }, fo = { class: "w-pagination__results" };
6470
+ function mo(e, t, i, s, n, l) {
6471
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
6472
+ return o(), u("div", {
6458
6473
  class: f(["w-table w-table--wrap", l.classes])
6459
6474
  }, [
6460
- y("div", Ls, [
6461
- y("table", {
6475
+ w("div", Ns, [
6476
+ w("table", {
6462
6477
  class: "w-table__table",
6463
6478
  onMousedown: t[1] || (t[1] = (...b) => l.onMouseDown && l.onMouseDown(...b)),
6464
6479
  onMouseover: t[2] || (t[2] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
6465
6480
  onMouseout: t[3] || (t[3] = (...b) => l.onMouseOut && l.onMouseOut(...b))
6466
6481
  }, [
6467
- y("colgroup", Rs, [
6468
- (s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("col", {
6469
- class: f(["w-table__col", l.colClasses[V]]),
6470
- key: V,
6482
+ w("colgroup", Ds, [
6483
+ (o(!0), u(k, null, x(i.headers, (b, I) => (o(), u("col", {
6484
+ class: f(["w-table__col", l.colClasses[I]]),
6485
+ key: I,
6471
6486
  width: b.width || null
6472
- }, null, 10, Ps))), 128))
6487
+ }, null, 10, Hs))), 128))
6473
6488
  ], 512),
6474
- i.noHeaders ? p("", !0) : (s(), u("thead", Os, [
6475
- y("tr", null, [
6476
- (s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("th", {
6489
+ i.noHeaders ? p("", !0) : (o(), u("thead", Fs, [
6490
+ w("tr", null, [
6491
+ (o(!0), u(k, null, x(i.headers, (b, I) => (o(), u("th", {
6477
6492
  class: f(["w-table__header", l.headerClasses(b)]),
6478
- key: V,
6479
- onClick: (P) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
6493
+ key: I,
6494
+ onClick: (V) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
6480
6495
  }, [
6481
- b.sortable !== !1 && b.align === "right" ? (s(), g(a, {
6496
+ b.sortable !== !1 && b.align === "right" ? (o(), g(a, {
6482
6497
  key: 0,
6483
6498
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6484
6499
  }, {
@@ -6487,20 +6502,20 @@ function lo(e, t, i, o, n, l) {
6487
6502
  ]),
6488
6503
  _: 2
6489
6504
  }, 1032, ["class"])) : p("", !0),
6490
- b.label ? (s(), u(k, { key: 1 }, [
6505
+ b.label ? (o(), u(k, { key: 1 }, [
6491
6506
  e.$slots["header-label"] ? c(e.$slots, "header-label", {
6492
6507
  key: 0,
6493
6508
  header: b,
6494
6509
  label: b.label,
6495
- index: V + 1
6510
+ index: I + 1
6496
6511
  }, () => [
6497
6512
  S(C(b.label || ""), 1)
6498
- ]) : (s(), u("span", {
6513
+ ]) : (o(), u("span", {
6499
6514
  key: 1,
6500
6515
  innerHTML: b.label || ""
6501
- }, null, 8, zs))
6516
+ }, null, 8, Us))
6502
6517
  ], 64)) : p("", !0),
6503
- b.sortable !== !1 && b.align !== "right" ? (s(), g(a, {
6518
+ b.sortable !== !1 && b.align !== "right" ? (o(), g(a, {
6504
6519
  key: 2,
6505
6520
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6506
6521
  }, {
@@ -6509,145 +6524,145 @@ function lo(e, t, i, o, n, l) {
6509
6524
  ]),
6510
6525
  _: 2
6511
6526
  }, 1032, ["class"])) : p("", !0),
6512
- V < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6527
+ I < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6513
6528
  key: 3,
6514
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
6515
- onClick: t[0] || (t[0] = z(() => {
6529
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === I, "w-table__col-resizer--active": e.colResizing.columnIndex === I }]),
6530
+ onClick: t[0] || (t[0] = M(() => {
6516
6531
  }, ["stop"]))
6517
6532
  }, null, 2)) : p("", !0)
6518
- ], 10, xs))), 128))
6533
+ ], 10, js))), 128))
6519
6534
  ]),
6520
- I(d, null, {
6535
+ T(d, null, {
6521
6536
  default: m(() => [
6522
- i.loading === "header" ? (s(), u("tr", Ms, [
6523
- y("td", {
6537
+ i.loading === "header" ? (o(), u("tr", qs, [
6538
+ w("td", {
6524
6539
  colspan: i.headers.length
6525
6540
  }, [
6526
- I(r, { tile: "" })
6527
- ], 8, Es)
6541
+ T(r, { tile: "" })
6542
+ ], 8, Xs)
6528
6543
  ])) : p("", !0)
6529
6544
  ]),
6530
6545
  _: 1
6531
6546
  })
6532
6547
  ])),
6533
- y("tbody", null, [
6534
- i.loading === !0 ? (s(), u("tr", As, [
6535
- y("td", {
6548
+ w("tbody", null, [
6549
+ i.loading === !0 ? (o(), u("tr", Ys, [
6550
+ w("td", {
6536
6551
  colspan: i.headers.length
6537
6552
  }, [
6538
- I(r, { tile: "" }),
6539
- y("div", Ks, [
6553
+ T(r, { tile: "" }),
6554
+ w("div", Js, [
6540
6555
  c(e.$slots, "loading", {}, () => [
6541
6556
  S("Loading...")
6542
6557
  ])
6543
6558
  ])
6544
- ], 8, Ws)
6545
- ])) : l.tableItems.length ? p("", !0) : (s(), u("tr", Ns, [
6546
- y("td", {
6559
+ ], 8, Gs)
6560
+ ])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Qs, [
6561
+ w("td", {
6547
6562
  class: "w-table__cell text-center",
6548
6563
  colspan: i.headers.length
6549
6564
  }, [
6550
6565
  c(e.$slots, "no-data", {}, () => [
6551
6566
  S("No data to show.")
6552
6567
  ])
6553
- ], 8, Ds)
6568
+ ], 8, Zs)
6554
6569
  ])),
6555
- l.tableItems.length && i.loading !== !0 ? (s(!0), u(k, { key: 2 }, R(l.paginatedItems, (b, V) => (s(), u(k, { key: V }, [
6570
+ l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, x(l.paginatedItems, (b, I) => (o(), u(k, { key: I }, [
6556
6571
  e.$slots.item ? c(e.$slots, "item", {
6557
6572
  key: 0,
6558
6573
  item: b,
6559
- index: V + 1,
6560
- select: () => l.doSelectRow(b, V),
6574
+ index: I + 1,
6575
+ select: () => l.doSelectRow(b, I),
6561
6576
  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 }
6562
- }) : (s(), u("tr", {
6577
+ }) : (o(), u("tr", {
6563
6578
  key: 1,
6564
6579
  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 }]),
6565
- onClick: (P) => l.doSelectRow(b, V)
6580
+ onClick: (V) => l.doSelectRow(b, I)
6566
6581
  }, [
6567
- (s(!0), u(k, null, R(i.headers, (P, x) => (s(), u(k, null, [
6568
- e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${x + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
6569
- class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
6570
- key: `${x}-a`,
6571
- "data-label": P.label
6582
+ (o(!0), u(k, null, x(i.headers, (V, O) => (o(), u(k, null, [
6583
+ e.$slots[`item-cell.${V.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
6584
+ class: f(["w-table__cell", { [`text-${V.align || "left"}`]: !0, "w-table__cell--sticky": V.sticky }]),
6585
+ key: `${O}-a`,
6586
+ "data-label": V.label
6572
6587
  }, [
6573
- e.$slots[`item-cell.${P.key}`] ? c(e.$slots, `item-cell.${P.key}`, {
6588
+ e.$slots[`item-cell.${V.key}`] ? c(e.$slots, `item-cell.${V.key}`, {
6574
6589
  key: 0,
6575
- header: P,
6590
+ header: V,
6576
6591
  item: b,
6577
- label: b[P.key] || "",
6578
- index: V + 1
6579
- }) : e.$slots[`item-cell.${x + 1}`] ? c(e.$slots, `item-cell.${x + 1}`, {
6592
+ label: b[V.key] || "",
6593
+ index: I + 1
6594
+ }) : e.$slots[`item-cell.${O + 1}`] ? c(e.$slots, `item-cell.${O + 1}`, {
6580
6595
  key: 1,
6581
- header: P,
6596
+ header: V,
6582
6597
  item: b,
6583
- label: b[P.key] || "",
6584
- index: V + 1
6598
+ label: b[V.key] || "",
6599
+ index: I + 1
6585
6600
  }) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
6586
6601
  key: 2,
6587
- header: P,
6602
+ header: V,
6588
6603
  item: b,
6589
- label: b[P.key] || "",
6590
- index: V + 1
6604
+ label: b[V.key] || "",
6605
+ index: I + 1
6591
6606
  }) : p("", !0),
6592
- x < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6607
+ O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6593
6608
  key: 3,
6594
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === x, "w-table__col-resizer--active": e.colResizing.columnIndex === x }])
6609
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
6595
6610
  }, null, 2)) : p("", !0)
6596
- ], 10, Fs)) : (s(), u("td", {
6597
- class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
6598
- key: `${x}-b`,
6599
- "data-label": P.label
6611
+ ], 10, to)) : (o(), u("td", {
6612
+ class: f(["w-table__cell", { [`text-${V.align || "left"}`]: !0, "w-table__cell--sticky": V.sticky }]),
6613
+ key: `${O}-b`,
6614
+ "data-label": V.label
6600
6615
  }, [
6601
- y("div", {
6602
- innerHTML: b[P.key] || ""
6603
- }, null, 8, Us),
6604
- x < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6616
+ w("div", {
6617
+ innerHTML: b[V.key] || ""
6618
+ }, null, 8, lo),
6619
+ O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6605
6620
  key: 0,
6606
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === x, "w-table__col-resizer--active": e.colResizing.columnIndex === x }])
6621
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
6607
6622
  }, null, 2)) : p("", !0)
6608
- ], 10, js))
6623
+ ], 10, io))
6609
6624
  ], 64))), 256))
6610
- ], 10, Hs)),
6611
- l.expandedRowsByUid[b._uid] ? (s(), u("tr", qs, [
6612
- y("td", {
6625
+ ], 10, eo)),
6626
+ l.expandedRowsByUid[b._uid] ? (o(), u("tr", so, [
6627
+ w("td", {
6613
6628
  class: "w-table__cell",
6614
6629
  colspan: i.headers.length
6615
6630
  }, [
6616
- I(h, { y: "" }, {
6631
+ T(h, { y: "" }, {
6617
6632
  default: m(() => [
6618
- l.expandedRowsByUid[b._uid] ? (s(), u("div", Ys, [
6633
+ l.expandedRowsByUid[b._uid] ? (o(), u("div", ao, [
6619
6634
  c(e.$slots, "row-expansion", {
6620
6635
  item: b,
6621
- index: V + 1
6636
+ index: I + 1
6622
6637
  })
6623
6638
  ])) : p("", !0),
6624
- V < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6639
+ I < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6625
6640
  key: 1,
6626
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
6641
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === I, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
6627
6642
  }, null, 2)) : p("", !0)
6628
6643
  ]),
6629
6644
  _: 2
6630
6645
  }, 1024)
6631
- ], 8, Xs)
6646
+ ], 8, oo)
6632
6647
  ])) : p("", !0)
6633
6648
  ], 64))), 128)) : p("", !0),
6634
- e.$slots["extra-row"] ? (s(), u("div", Gs, [
6649
+ e.$slots["extra-row"] ? (o(), u("div", no, [
6635
6650
  c(e.$slots, "extra-row")
6636
6651
  ])) : p("", !0)
6637
6652
  ]),
6638
- e.$slots.footer || e.$slots["footer-row"] ? (s(), u("tfoot", Js, [
6639
- e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Qs, [
6640
- y("td", {
6653
+ e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot", ro, [
6654
+ e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", uo, [
6655
+ w("td", {
6641
6656
  class: "w-table__cell",
6642
6657
  colspan: i.headers.length
6643
6658
  }, [
6644
6659
  c(e.$slots, "footer")
6645
- ], 8, Zs)
6660
+ ], 8, ho)
6646
6661
  ])) : p("", !0)
6647
6662
  ])) : p("", !0)
6648
6663
  ], 32)
6649
6664
  ]),
6650
- i.pagination && e.paginationConfig ? (s(), u("div", eo, [
6665
+ i.pagination && e.paginationConfig ? (o(), u("div", co, [
6651
6666
  c(e.$slots, "pagination", {
6652
6667
  range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
6653
6668
  total: e.paginationConfig.total,
@@ -6655,7 +6670,7 @@ function lo(e, t, i, o, n, l) {
6655
6670
  page: e.paginationConfig.page,
6656
6671
  goToPage: l.goToPage
6657
6672
  }, () => [
6658
- e.paginationConfig.itemsPerPageOptions ? (s(), g(w, {
6673
+ e.paginationConfig.itemsPerPageOptions ? (o(), g(y, {
6659
6674
  key: 0,
6660
6675
  class: "w-pagination__items-per-page",
6661
6676
  modelValue: e.paginationConfig.itemsPerPage,
@@ -6666,8 +6681,8 @@ function lo(e, t, i, o, n, l) {
6666
6681
  label: "Items per page",
6667
6682
  "label-color": "inherit"
6668
6683
  }, null, 8, ["modelValue", "items"])) : p("", !0),
6669
- y("div", to, [
6670
- I(_, {
6684
+ w("div", po, [
6685
+ T(B, {
6671
6686
  class: "w-pagination__arrow w-pagination__arrow--prev",
6672
6687
  onClick: t[6] || (t[6] = (b) => l.goToPage("-1")),
6673
6688
  disabled: e.paginationConfig.page <= 1,
@@ -6675,11 +6690,11 @@ function lo(e, t, i, o, n, l) {
6675
6690
  text: "",
6676
6691
  lg: ""
6677
6692
  }, null, 8, ["disabled"]),
6678
- e.paginationConfig.pagesCount > 7 ? (s(!0), u(k, { key: 0 }, R(e.paginationConfig.pagesCount, (b) => (s(), u(k, { key: b }, [
6679
- [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (s(), g(_, {
6693
+ e.paginationConfig.pagesCount > 7 ? (o(!0), u(k, { key: 0 }, x(e.paginationConfig.pagesCount, (b) => (o(), u(k, { key: b }, [
6694
+ [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (o(), g(B, {
6680
6695
  key: 0,
6681
6696
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6682
- onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
6697
+ onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
6683
6698
  round: "",
6684
6699
  lg: ""
6685
6700
  }, {
@@ -6687,10 +6702,10 @@ function lo(e, t, i, o, n, l) {
6687
6702
  S(C(b), 1)
6688
6703
  ]),
6689
6704
  _: 2
6690
- }, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (s(), g(_, {
6705
+ }, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (o(), g(B, {
6691
6706
  key: 1,
6692
6707
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6693
- onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
6708
+ onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
6694
6709
  round: "",
6695
6710
  lg: ""
6696
6711
  }, {
@@ -6699,10 +6714,10 @@ function lo(e, t, i, o, n, l) {
6699
6714
  ]),
6700
6715
  _: 2
6701
6716
  }, 1032, ["onClick", "class"])) : p("", !0)
6702
- ], 64))), 128)) : (s(!0), u(k, { key: 1 }, R(e.paginationConfig.pagesCount, (b) => (s(), g(_, {
6717
+ ], 64))), 128)) : (o(!0), u(k, { key: 1 }, x(e.paginationConfig.pagesCount, (b) => (o(), g(B, {
6703
6718
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6704
6719
  key: b,
6705
- onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
6720
+ onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
6706
6721
  round: "",
6707
6722
  lg: ""
6708
6723
  }, {
@@ -6711,7 +6726,7 @@ function lo(e, t, i, o, n, l) {
6711
6726
  ]),
6712
6727
  _: 2
6713
6728
  }, 1032, ["onClick", "class"]))), 128)),
6714
- I(_, {
6729
+ T(B, {
6715
6730
  class: "w-pagination__arrow w-pagination__arrow--next",
6716
6731
  onClick: t[7] || (t[7] = (b) => l.goToPage("+1")),
6717
6732
  disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
@@ -6720,12 +6735,12 @@ function lo(e, t, i, o, n, l) {
6720
6735
  lg: ""
6721
6736
  }, null, 8, ["disabled"])
6722
6737
  ]),
6723
- y("span", io, C(e.paginationConfig.start) + "-" + C(e.paginationConfig.end || e.paginationConfig.total) + " of " + C(e.paginationConfig.total), 1)
6738
+ w("span", fo, C(e.paginationConfig.start) + "-" + C(e.paginationConfig.end || e.paginationConfig.total) + " of " + C(e.paginationConfig.total), 1)
6724
6739
  ])
6725
6740
  ])) : p("", !0)
6726
6741
  ], 2);
6727
6742
  }
6728
- const me = 15, so = {
6743
+ const we = 15, go = {
6729
6744
  name: "w-table",
6730
6745
  props: {
6731
6746
  items: { type: Array, required: !0 },
@@ -6742,14 +6757,14 @@ const me = 15, so = {
6742
6757
  filter: { type: Function },
6743
6758
  fetch: { type: Function },
6744
6759
  expandableRows: {
6745
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ee(
6760
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || F(
6746
6761
  `Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6747
6762
  ), !0)
6748
6763
  },
6749
6764
  // Allow providing the expanded rows and keeping it in sync via .sync in Vue 2 or v-model:expandedRows in Vue 3.
6750
6765
  expandedRows: { type: Array },
6751
6766
  selectableRows: {
6752
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ee(
6767
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || F(
6753
6768
  `Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6754
6769
  ), !0)
6755
6770
  },
@@ -6772,11 +6787,10 @@ const me = 15, so = {
6772
6787
  validator: (e) => {
6773
6788
  if (e) {
6774
6789
  if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
6775
- return ee(
6790
+ return F(
6776
6791
  "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 }."
6777
6792
  ), !1;
6778
- } else
6779
- return !0;
6793
+ } else return !0;
6780
6794
  return !0;
6781
6795
  }
6782
6796
  },
@@ -6828,10 +6842,9 @@ const me = 15, so = {
6828
6842
  return typeof this.filter == "function" ? this.tableItems.filter(this.filter) : this.tableItems;
6829
6843
  },
6830
6844
  sortedItems() {
6831
- if (!this.activeSorting.length || this.sortFunction || this.fetch)
6832
- return this.filteredItems;
6845
+ if (!this.activeSorting.length || this.sortFunction || this.fetch) return this.filteredItems;
6833
6846
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6834
- 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)));
6847
+ return [...this.filteredItems].sort((i, s) => (i = i[e], s = s[e], !isNaN(i) && !isNaN(s) && (i = parseFloat(i), s = parseFloat(s)), (i > s ? 1 : -1) * (t ? -1 : 1)));
6835
6848
  },
6836
6849
  paginatedItems() {
6837
6850
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6896,7 +6909,7 @@ const me = 15, so = {
6896
6909
  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();
6897
6910
  },
6898
6911
  doSelectRow(e, t) {
6899
- const i = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6912
+ const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
6900
6913
  if (i) {
6901
6914
  const n = this.expandedRowsByUid[e._uid] === void 0;
6902
6915
  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(
@@ -6908,7 +6921,7 @@ const me = 15, so = {
6908
6921
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
6909
6922
  }
6910
6923
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6911
- } else if (o) {
6924
+ } else if (s) {
6912
6925
  let n = !1;
6913
6926
  const l = this.selectedRowsByUid[e._uid] === void 0;
6914
6927
  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(
@@ -6946,16 +6959,15 @@ const me = 15, so = {
6946
6959
  * (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
6947
6960
  */
6948
6961
  onResizerMouseMove(e) {
6949
- const { startCursorX: t, columnEl: i, nextColumnEl: o, colWidth: n, nextColWidth: l } = this.colResizing;
6962
+ const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: n, nextColWidth: l } = this.colResizing;
6950
6963
  this.colResizing.dragging = !0;
6951
6964
  const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
6952
- i.style.width = n + a + "px", o.style.width = l - a + "px";
6953
- const w = a < 0 && i.offsetWidth > d || i.offsetWidth <= me, _ = a > 0 && o.offsetWidth > h;
6954
- if (w) {
6955
- const b = Math.max(i.offsetWidth, me);
6956
- i.style.width = b + "px", o.style.width = r - b + "px";
6957
- } else
6958
- _ && (i.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6965
+ i.style.width = n + a + "px", s.style.width = l - a + "px";
6966
+ const y = a < 0 && i.offsetWidth > d || i.offsetWidth <= we, B = a > 0 && s.offsetWidth > h;
6967
+ if (y) {
6968
+ const b = Math.max(i.offsetWidth, we);
6969
+ i.style.width = b + "px", s.style.width = r - b + "px";
6970
+ } else B && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
6959
6971
  },
6960
6972
  onResizerMouseUp() {
6961
6973
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6967,8 +6979,8 @@ const me = 15, so = {
6967
6979
  }, 0);
6968
6980
  },
6969
6981
  initPagination() {
6970
- var o, n;
6971
- const e = ((o = this.pagination) == null ? void 0 : o.itemsPerPage) ?? 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6982
+ var s, n;
6983
+ const e = ((s = this.pagination) == null ? void 0 : s.itemsPerPage) ?? 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6972
6984
  t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
6973
6985
  label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
6974
6986
  value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
@@ -6997,8 +7009,8 @@ const me = 15, so = {
6997
7009
  updatePaginationConfig({ itemsPerPage: e, page: t, total: i }) {
6998
7010
  if (i && (this.paginationConfig.total = i), e !== void 0) {
6999
7011
  this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = t || this.paginationConfig.page || 1, t = this.paginationConfig.page, i = this.paginationConfig.total;
7000
- const o = e * t;
7001
- this.paginationConfig.start = 1, this.paginationConfig.end = i >= o ? o : i % o, this.paginationConfig.pagesCount = Math.ceil(i / e);
7012
+ const s = e * t;
7013
+ this.paginationConfig.start = 1, this.paginationConfig.end = i >= s ? s : i % s, this.paginationConfig.pagesCount = Math.ceil(i / e);
7002
7014
  }
7003
7015
  t && this.goToPage(t);
7004
7016
  },
@@ -7017,13 +7029,13 @@ const me = 15, so = {
7017
7029
  * While waiting for the call to resolve, nothing in the table will change.
7018
7030
  */
7019
7031
  async callApiFetch() {
7020
- const { page: e, start: t, end: i, total: o, itemsPerPage: n } = this.paginationConfig;
7032
+ const { page: e, start: t, end: i, total: s, itemsPerPage: n } = this.paginationConfig;
7021
7033
  return await this.fetch({
7022
7034
  page: e,
7023
7035
  start: t,
7024
- end: i || o,
7025
- total: o,
7026
- itemsPerPage: n || o,
7036
+ end: i || s,
7037
+ total: s,
7038
+ itemsPerPage: n || s,
7027
7039
  sorting: this.activeSorting
7028
7040
  });
7029
7041
  }
@@ -7057,9 +7069,9 @@ const me = 15, so = {
7057
7069
  this.updatePaginationConfig({ total: e });
7058
7070
  }
7059
7071
  }
7060
- }, oo = /* @__PURE__ */ v(so, [["render", lo]]), ao = ["role", "aria-pressed", "tabindex"];
7061
- function no(e, t, i, o, n, l) {
7062
- return s(), u("span", {
7072
+ }, bo = /* @__PURE__ */ v(go, [["render", mo]]), yo = ["role", "aria-pressed", "tabindex"];
7073
+ function wo(e, t, i, s, n, l) {
7074
+ return o(), u("span", {
7063
7075
  class: f(["w-tag", l.classes]),
7064
7076
  onClick: t[1] || (t[1] = (a) => {
7065
7077
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
@@ -7070,21 +7082,21 @@ function no(e, t, i, o, n, l) {
7070
7082
  role: i.modelValue !== -1 && "button",
7071
7083
  "aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
7072
7084
  tabindex: i.modelValue !== -1 && 0,
7073
- style: L(l.styles)
7085
+ style: R(l.styles)
7074
7086
  }, [
7075
7087
  c(e.$slots, "default"),
7076
- i.closable && i.modelValue ? (s(), u("i", {
7088
+ i.closable && i.modelValue ? (o(), u("i", {
7077
7089
  key: 0,
7078
7090
  class: "w-icon w-tag__closable wi-cross",
7079
- onClick: t[0] || (t[0] = z((a) => {
7091
+ onClick: t[0] || (t[0] = M((a) => {
7080
7092
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7081
7093
  }, ["stop"])),
7082
7094
  role: "icon",
7083
7095
  "aria-hidden": "true"
7084
7096
  })) : p("", !0)
7085
- ], 46, ao);
7097
+ ], 46, yo);
7086
7098
  }
7087
- const ro = {
7099
+ const ko = {
7088
7100
  name: "w-tag",
7089
7101
  props: {
7090
7102
  modelValue: { type: [Boolean, Number], default: -1 },
@@ -7133,10 +7145,10 @@ const ro = {
7133
7145
  };
7134
7146
  }
7135
7147
  }
7136
- }, uo = /* @__PURE__ */ v(ro, [["render", no]]), ho = ["for"], co = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], po = ["for"];
7137
- function fo(e, t, i, o, n, l) {
7148
+ }, vo = /* @__PURE__ */ v(ko, [["render", wo]]), Co = ["for"], So = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bo = ["for"];
7149
+ function _o(e, t, i, s, n, l) {
7138
7150
  const a = $("w-icon");
7139
- return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
7151
+ return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
7140
7152
  valid: e.valid,
7141
7153
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
7142
7154
  wrap: l.hasLabel && i.labelPosition !== "inside",
@@ -7147,8 +7159,8 @@ function fo(e, t, i, o, n, l) {
7147
7159
  style: e.$attrs.style
7148
7160
  }), {
7149
7161
  default: m(() => [
7150
- i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
7151
- e.$slots.default || i.label ? (s(), u("label", {
7162
+ i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
7163
+ e.$slots.default || i.label ? (o(), u("label", {
7152
7164
  key: 0,
7153
7165
  class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
7154
7166
  for: `w-textarea--${e._.uid}`
@@ -7156,15 +7168,15 @@ function fo(e, t, i, o, n, l) {
7156
7168
  c(e.$slots, "default", {}, () => [
7157
7169
  S(C(i.label), 1)
7158
7170
  ])
7159
- ], 10, ho)) : p("", !0)
7171
+ ], 10, Co)) : p("", !0)
7160
7172
  ], 64)) : p("", !0),
7161
- y("div", {
7173
+ w("div", {
7162
7174
  class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
7163
7175
  }, [
7164
7176
  c(e.$slots, "icon-left", {
7165
7177
  inputId: `w-textarea--${e._.uid}`
7166
7178
  }, () => [
7167
- i.innerIconLeft ? (s(), g(a, {
7179
+ i.innerIconLeft ? (o(), g(a, {
7168
7180
  key: 0,
7169
7181
  class: "w-textarea__icon w-textarea__icon--inner-left",
7170
7182
  tag: "label",
@@ -7177,7 +7189,7 @@ function fo(e, t, i, o, n, l) {
7177
7189
  _: 1
7178
7190
  }, 8, ["for"])) : p("", !0)
7179
7191
  ]),
7180
- W(y("textarea", B({
7192
+ W(w("textarea", _({
7181
7193
  class: "w-textarea__textarea",
7182
7194
  ref: "textarea",
7183
7195
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
@@ -7195,11 +7207,11 @@ function fo(e, t, i, o, n, l) {
7195
7207
  disabled: e.isDisabled || null,
7196
7208
  required: e.required || null,
7197
7209
  tabindex: e.tabindex || null
7198
- }), null, 16, co), [
7199
- [be, n.inputValue]
7210
+ }), null, 16, So), [
7211
+ [ve, n.inputValue]
7200
7212
  ]),
7201
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 0 }, [
7202
- e.$slots.default || i.label ? (s(), u("label", {
7213
+ i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 0 }, [
7214
+ e.$slots.default || i.label ? (o(), u("label", {
7203
7215
  key: 0,
7204
7216
  class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
7205
7217
  }, [
@@ -7211,7 +7223,7 @@ function fo(e, t, i, o, n, l) {
7211
7223
  c(e.$slots, "icon-right", {
7212
7224
  inputId: `w-textarea--${e._.uid}`
7213
7225
  }, () => [
7214
- i.innerIconRight ? (s(), g(a, {
7226
+ i.innerIconRight ? (o(), g(a, {
7215
7227
  key: 0,
7216
7228
  class: "w-textarea__icon w-textarea__icon--inner-right",
7217
7229
  tag: "label",
@@ -7225,8 +7237,8 @@ function fo(e, t, i, o, n, l) {
7225
7237
  }, 8, ["for"])) : p("", !0)
7226
7238
  ])
7227
7239
  ], 2),
7228
- i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
7229
- e.$slots.default || i.label ? (s(), u("label", {
7240
+ i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
7241
+ e.$slots.default || i.label ? (o(), u("label", {
7230
7242
  key: 0,
7231
7243
  class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
7232
7244
  for: `w-textarea--${e._.uid}`
@@ -7234,15 +7246,15 @@ function fo(e, t, i, o, n, l) {
7234
7246
  c(e.$slots, "default", {}, () => [
7235
7247
  S(C(i.label), 1)
7236
7248
  ])
7237
- ], 10, po)) : p("", !0)
7249
+ ], 10, Bo)) : p("", !0)
7238
7250
  ], 64)) : p("", !0)
7239
7251
  ]),
7240
7252
  _: 3
7241
7253
  }, 16, ["valid", "wrap", "class", "style"]);
7242
7254
  }
7243
- const mo = {
7255
+ const $o = {
7244
7256
  name: "w-textarea",
7245
- mixins: [M],
7257
+ mixins: [z],
7246
7258
  inheritAttrs: !1,
7247
7259
  // The attrs should only be added to the textarea not the wrapper.
7248
7260
  props: {
@@ -7366,16 +7378,16 @@ const mo = {
7366
7378
  e ? this.getLineHeight() : this.height = null;
7367
7379
  }
7368
7380
  }
7369
- }, go = /* @__PURE__ */ v(mo, [["render", fo]]), bo = ["innerHTML"], yo = ["innerHTML"];
7370
- function wo(e, t, i, o, n, l) {
7371
- return s(), u("ul", {
7381
+ }, Vo = /* @__PURE__ */ v($o, [["render", _o]]), Io = ["innerHTML"], To = ["innerHTML"];
7382
+ function Lo(e, t, i, s, n, l) {
7383
+ return o(), u("ul", {
7372
7384
  class: f(["w-timeline", l.classes])
7373
7385
  }, [
7374
- (s(!0), u(k, null, R(i.items, (a, r) => (s(), u("li", {
7386
+ (o(!0), u(k, null, x(i.items, (a, r) => (o(), u("li", {
7375
7387
  class: "w-timeline-item",
7376
7388
  key: r
7377
7389
  }, [
7378
- (s(), g(T(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7390
+ (o(), g(L(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7379
7391
  class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
7380
7392
  }, {
7381
7393
  default: m(() => [
@@ -7392,19 +7404,19 @@ function wo(e, t, i, o, n, l) {
7392
7404
  item: a,
7393
7405
  index: r + 1
7394
7406
  }, () => [
7395
- y("div", {
7407
+ w("div", {
7396
7408
  class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
7397
7409
  innerHTML: a[i.itemTitleKey]
7398
- }, null, 10, bo),
7399
- y("div", {
7410
+ }, null, 10, Io),
7411
+ w("div", {
7400
7412
  class: "w-timeline-item__content",
7401
7413
  innerHTML: a[i.itemContentKey]
7402
- }, null, 8, yo)
7414
+ }, null, 8, To)
7403
7415
  ])
7404
7416
  ]))), 128))
7405
7417
  ], 2);
7406
7418
  }
7407
- const ko = {
7419
+ const Ro = {
7408
7420
  name: "w-timeline",
7409
7421
  props: {
7410
7422
  items: { type: [Array, Number], required: !0 },
@@ -7426,16 +7438,16 @@ const ko = {
7426
7438
  };
7427
7439
  }
7428
7440
  }
7429
- }, vo = /* @__PURE__ */ v(ko, [["render", wo]]);
7430
- function Co(e, t, i, o, n, l) {
7431
- return s(), u("div", {
7441
+ }, xo = /* @__PURE__ */ v(Ro, [["render", Lo]]);
7442
+ function Po(e, t, i, s, n, l) {
7443
+ return o(), u("div", {
7432
7444
  class: f(["w-toolbar", l.classes]),
7433
- style: L(l.styles)
7445
+ style: R(l.styles)
7434
7446
  }, [
7435
7447
  c(e.$slots, "default")
7436
7448
  ], 6);
7437
7449
  }
7438
- const So = {
7450
+ const Oo = {
7439
7451
  name: "w-toolbar",
7440
7452
  props: {
7441
7453
  color: { type: String },
@@ -7486,20 +7498,20 @@ const So = {
7486
7498
  };
7487
7499
  }
7488
7500
  }
7489
- }, Bo = /* @__PURE__ */ v(So, [["render", Co]]);
7490
- function _o(e, t, i, o, n, l) {
7491
- return s(), u(k, null, [
7501
+ }, Mo = /* @__PURE__ */ v(Oo, [["render", Po]]);
7502
+ function zo(e, t, i, s, n, l) {
7503
+ return o(), u(k, null, [
7492
7504
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
7493
- I(O, {
7505
+ T(P, {
7494
7506
  name: l.transitionName,
7495
7507
  appear: ""
7496
7508
  }, {
7497
7509
  default: m(() => [
7498
- e.detachableVisible ? (s(), u("div", {
7510
+ e.detachableVisible ? (o(), u("div", {
7499
7511
  class: f(["w-tooltip", l.classes]),
7500
7512
  ref: "detachable",
7501
7513
  key: e._.uid,
7502
- style: L(l.styles)
7514
+ style: R(l.styles)
7503
7515
  }, [
7504
7516
  c(e.$slots, "default")
7505
7517
  ], 6)) : p("", !0)
@@ -7508,9 +7520,9 @@ function _o(e, t, i, o, n, l) {
7508
7520
  }, 8, ["name"])
7509
7521
  ], 64);
7510
7522
  }
7511
- const $o = {
7523
+ const Eo = {
7512
7524
  name: "w-tooltip",
7513
- mixins: [we],
7525
+ mixins: [Be],
7514
7526
  props: {
7515
7527
  modelValue: {},
7516
7528
  showOnClick: { type: Boolean },
@@ -7644,24 +7656,24 @@ const $o = {
7644
7656
  }
7645
7657
  }
7646
7658
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7647
- }, Vo = /* @__PURE__ */ v($o, [["render", _o]]);
7648
- function Io(e, t, i, o, n, l) {
7649
- return s(), g(O, B({ name: "bounce" }, e.$props), {
7659
+ }, Ao = /* @__PURE__ */ v(Eo, [["render", zo]]);
7660
+ function Wo(e, t, i, s, n, l) {
7661
+ return o(), g(P, _({ name: "bounce" }, e.$props), {
7650
7662
  default: m(() => [
7651
7663
  c(e.$slots, "default")
7652
7664
  ]),
7653
7665
  _: 3
7654
7666
  }, 16);
7655
7667
  }
7656
- const To = {
7668
+ const Ko = {
7657
7669
  name: "w-transition-bounce",
7658
7670
  props: {
7659
7671
  appear: { type: Boolean },
7660
7672
  duration: { type: [Number, String] }
7661
7673
  }
7662
- }, Lo = /* @__PURE__ */ v(To, [["render", Io]]);
7663
- function Ro(e, t, i, o, n, l) {
7664
- return s(), g(O, {
7674
+ }, No = /* @__PURE__ */ v(Ko, [["render", Wo]]);
7675
+ function Do(e, t, i, s, n, l) {
7676
+ return o(), g(P, {
7665
7677
  name: "expand",
7666
7678
  mode: "out-in",
7667
7679
  css: !1,
@@ -7681,7 +7693,7 @@ function Ro(e, t, i, o, n, l) {
7681
7693
  _: 3
7682
7694
  }, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
7683
7695
  }
7684
- const Po = {
7696
+ const Ho = {
7685
7697
  name: "w-transition-expand",
7686
7698
  props: {
7687
7699
  x: { type: Boolean },
@@ -7771,61 +7783,61 @@ const Po = {
7771
7783
  this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = t.getPropertyValue("marginLeft"), this.el.marginRight = t.getPropertyValue("marginRight"), this.el.paddingLeft = t.getPropertyValue("paddingLeft"), this.el.paddingRight = t.getPropertyValue("paddingRight"), this.el.borderLeftWidth = t.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = t.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = t.getPropertyValue("marginTop"), this.el.marginBottom = t.getPropertyValue("marginBottom"), this.el.paddingTop = t.getPropertyValue("paddingTop"), this.el.paddingBottom = t.getPropertyValue("paddingBottom"), this.el.borderTopWidth = t.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = t.getPropertyValue("borderBottomWidth")), this.el.savedState = !0;
7772
7784
  }
7773
7785
  }
7774
- }, Oo = /* @__PURE__ */ v(Po, [["render", Ro]]);
7775
- function xo(e, t, i, o, n, l) {
7776
- return s(), g(O, B({ name: "fade" }, e.$props), {
7786
+ }, Fo = /* @__PURE__ */ v(Ho, [["render", Do]]);
7787
+ function jo(e, t, i, s, n, l) {
7788
+ return o(), g(P, _({ name: "fade" }, e.$props), {
7777
7789
  default: m(() => [
7778
7790
  c(e.$slots, "default")
7779
7791
  ]),
7780
7792
  _: 3
7781
7793
  }, 16);
7782
7794
  }
7783
- const zo = {
7795
+ const Uo = {
7784
7796
  name: "w-transition-fade",
7785
7797
  props: {
7786
7798
  appear: { type: Boolean },
7787
7799
  duration: { type: [Number, String] }
7788
7800
  }
7789
- }, Mo = /* @__PURE__ */ v(zo, [["render", xo]]);
7790
- function Eo(e, t, i, o, n, l) {
7791
- return s(), g(O, B({ name: "scale" }, e.$props), {
7801
+ }, qo = /* @__PURE__ */ v(Uo, [["render", jo]]);
7802
+ function Xo(e, t, i, s, n, l) {
7803
+ return o(), g(P, _({ name: "scale" }, e.$props), {
7792
7804
  default: m(() => [
7793
7805
  c(e.$slots, "default")
7794
7806
  ]),
7795
7807
  _: 3
7796
7808
  }, 16);
7797
7809
  }
7798
- const Ao = {
7810
+ const Yo = {
7799
7811
  name: "w-transition-scale",
7800
7812
  props: {
7801
7813
  appear: { type: Boolean },
7802
7814
  duration: { type: [Number, String] }
7803
7815
  }
7804
- }, Wo = /* @__PURE__ */ v(Ao, [["render", Eo]]);
7805
- function Ko(e, t, i, o, n, l) {
7806
- return s(), g(O, B({ name: "scale-fade" }, e.$props), {
7816
+ }, Go = /* @__PURE__ */ v(Yo, [["render", Xo]]);
7817
+ function Jo(e, t, i, s, n, l) {
7818
+ return o(), g(P, _({ name: "scale-fade" }, e.$props), {
7807
7819
  default: m(() => [
7808
7820
  c(e.$slots, "default")
7809
7821
  ]),
7810
7822
  _: 3
7811
7823
  }, 16);
7812
7824
  }
7813
- const No = {
7825
+ const Qo = {
7814
7826
  name: "w-transition-scale-fade",
7815
7827
  props: {
7816
7828
  appear: { type: Boolean },
7817
7829
  duration: { type: [Number, String] }
7818
7830
  }
7819
- }, Do = /* @__PURE__ */ v(No, [["render", Ko]]);
7820
- function Ho(e, t, i, o, n, l) {
7821
- return s(), g(O, B({ name: l.transitionName }, e.$props), {
7831
+ }, Zo = /* @__PURE__ */ v(Qo, [["render", Jo]]);
7832
+ function ea(e, t, i, s, n, l) {
7833
+ return o(), g(P, _({ name: l.transitionName }, e.$props), {
7822
7834
  default: m(() => [
7823
7835
  c(e.$slots, "default")
7824
7836
  ]),
7825
7837
  _: 3
7826
7838
  }, 16, ["name"]);
7827
7839
  }
7828
- const Fo = {
7840
+ const ta = {
7829
7841
  name: "w-transition-slide",
7830
7842
  props: {
7831
7843
  appear: { type: Boolean },
@@ -7843,16 +7855,16 @@ const Fo = {
7843
7855
  return `slide-${this.direction}`;
7844
7856
  }
7845
7857
  }
7846
- }, jo = /* @__PURE__ */ v(Fo, [["render", Ho]]);
7847
- function Uo(e, t, i, o, n, l) {
7848
- return s(), g(O, B({ name: l.transitionName }, e.$props), {
7858
+ }, ia = /* @__PURE__ */ v(ta, [["render", ea]]);
7859
+ function la(e, t, i, s, n, l) {
7860
+ return o(), g(P, _({ name: l.transitionName }, e.$props), {
7849
7861
  default: m(() => [
7850
7862
  c(e.$slots, "default")
7851
7863
  ]),
7852
7864
  _: 3
7853
7865
  }, 16, ["name"]);
7854
7866
  }
7855
- const qo = {
7867
+ const sa = {
7856
7868
  name: "w-transition-slide-fade",
7857
7869
  props: {
7858
7870
  appear: { type: Boolean },
@@ -7870,47 +7882,47 @@ const qo = {
7870
7882
  return `slide-fade-${this.direction}`;
7871
7883
  }
7872
7884
  }
7873
- }, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
7874
- function Yo(e, t, i, o, n, l) {
7875
- return s(), g(O, B({ name: "twist" }, e.$props), {
7885
+ }, oa = /* @__PURE__ */ v(sa, [["render", la]]);
7886
+ function aa(e, t, i, s, n, l) {
7887
+ return o(), g(P, _({ name: "twist" }, e.$props), {
7876
7888
  default: m(() => [
7877
7889
  c(e.$slots, "default")
7878
7890
  ]),
7879
7891
  _: 3
7880
7892
  }, 16);
7881
7893
  }
7882
- const Go = {
7894
+ const na = {
7883
7895
  name: "w-transition-twist",
7884
7896
  props: {
7885
7897
  appear: { type: Boolean },
7886
7898
  duration: { type: [Number, String] }
7887
7899
  }
7888
- }, Jo = /* @__PURE__ */ v(Go, [["render", Yo]]), Qo = ["innerHTML"], Zo = {
7900
+ }, ra = /* @__PURE__ */ v(na, [["render", aa]]), da = ["innerHTML"], ua = {
7889
7901
  key: 1,
7890
7902
  class: "ml1"
7891
7903
  };
7892
- function ea(e, t, i, o, n, l) {
7904
+ function ha(e, t, i, s, n, l) {
7893
7905
  const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7894
- return s(), u("ul", {
7906
+ return o(), u("ul", {
7895
7907
  class: f(["w-tree", l.classes])
7896
7908
  }, [
7897
- (s(!0), u(k, null, R(e.currentDepthItems, (h, w) => (s(), u("li", {
7909
+ (o(!0), u(k, null, x(e.currentDepthItems, (h, y) => (o(), u("li", {
7898
7910
  class: f(["w-tree__item", l.itemClasses(h)]),
7899
- key: w
7911
+ key: y
7900
7912
  }, [
7901
- (s(), g(T(l.getTreeItemComponent(h)), B({
7913
+ (o(), g(L(l.getTreeItemComponent(h)), _({
7902
7914
  class: "w-tree__item-label",
7903
7915
  ref_for: !0
7904
7916
  }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7905
- onClick: (_) => !i.disabled && !h.disabled && l.onLabelClick(h, _),
7906
- onKeydown: (_) => !i.disabled && !h.disabled && l.onLabelKeydown(h, _),
7917
+ onClick: (B) => !i.disabled && !h.disabled && l.onLabelClick(h, B),
7918
+ onKeydown: (B) => !i.disabled && !h.disabled && l.onLabelKeydown(h, B),
7907
7919
  tabindex: l.getTreeItemTabindex(h)
7908
7920
  }), {
7909
7921
  default: m(() => [
7910
- (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (s(), g(a, {
7922
+ (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), g(a, {
7911
7923
  key: 0,
7912
7924
  class: "w-tree__item-expand",
7913
- onClick: z((_) => !i.disabled && !h.disabled && l.onLabelClick(h, _), ["stop"]),
7925
+ onClick: M((B) => !i.disabled && !h.disabled && l.onLabelClick(h, B), ["stop"]),
7914
7926
  color: "inherit",
7915
7927
  icon: h.open && i.expandOpenIcon || i.expandIcon,
7916
7928
  "icon-props": { rotate90a: !h.open },
@@ -7925,9 +7937,9 @@ function ea(e, t, i, o, n, l) {
7925
7937
  path: h.path,
7926
7938
  open: h.open
7927
7939
  }, () => {
7928
- var _;
7940
+ var B;
7929
7941
  return [
7930
- l.itemIcon(h) ? (s(), g(r, {
7942
+ l.itemIcon(h) ? (o(), g(r, {
7931
7943
  key: 0,
7932
7944
  class: "w-tree__item-icon",
7933
7945
  color: h.originalItem[i.itemIconColorKey] || i.iconColor
@@ -7937,42 +7949,42 @@ function ea(e, t, i, o, n, l) {
7937
7949
  ]),
7938
7950
  _: 2
7939
7951
  }, 1032, ["color"])) : p("", !0),
7940
- y("span", {
7952
+ w("span", {
7941
7953
  innerHTML: h.label
7942
- }, null, 8, Qo),
7943
- i.counts && (h.children || h.branch) ? (s(), u("span", Zo, "(" + C(((_ = h.originalItem.children) == null ? void 0 : _.length) || 0) + ")", 1)) : p("", !0)
7954
+ }, null, 8, da),
7955
+ i.counts && (h.children || h.branch) ? (o(), u("span", ua, "(" + C(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : p("", !0)
7944
7956
  ];
7945
7957
  })
7946
7958
  ]),
7947
7959
  _: 2
7948
7960
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
7949
- (s(), g(T(i.noTransition ? "div" : "w-transition-expand"), {
7961
+ (o(), g(L(i.noTransition ? "div" : "w-transition-expand"), {
7950
7962
  y: !i.noTransition || null,
7951
- onAfterEnter: (_) => e.$emit("open", l.emitPayload(h)),
7952
- onAfterLeave: (_) => e.$emit("close", l.emitPayload(h))
7963
+ onAfterEnter: (B) => e.$emit("open", l.emitPayload(h)),
7964
+ onAfterLeave: (B) => e.$emit("close", l.emitPayload(h))
7953
7965
  }, {
7954
7966
  default: m(() => [
7955
- h.children && h.open ? (s(), g(d, B({
7967
+ h.children && h.open ? (o(), g(d, _({
7956
7968
  key: 0,
7957
7969
  ref_for: !0
7958
7970
  }, e.$props, {
7959
7971
  depth: i.depth + 1,
7960
7972
  data: h.originalItem.children,
7961
7973
  parent: h,
7962
- onBeforeOpen: t[0] || (t[0] = (_) => e.$emit("before-open", _)),
7963
- onOpen: t[1] || (t[1] = (_) => e.$emit("open", _)),
7964
- onBeforeClose: t[2] || (t[2] = (_) => e.$emit("before-close", _)),
7965
- onClose: t[3] || (t[3] = (_) => e.$emit("close", _)),
7966
- onClick: t[4] || (t[4] = (_) => e.$emit("click", _)),
7967
- onSelect: t[5] || (t[5] = (_) => e.$emit("select", _)),
7968
- "onUpdate:modelValue": t[6] || (t[6] = (_) => e.$emit("update:model-value", _))
7974
+ onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
7975
+ onOpen: t[1] || (t[1] = (B) => e.$emit("open", B)),
7976
+ onBeforeClose: t[2] || (t[2] = (B) => e.$emit("before-close", B)),
7977
+ onClose: t[3] || (t[3] = (B) => e.$emit("close", B)),
7978
+ onClick: t[4] || (t[4] = (B) => e.$emit("click", B)),
7979
+ onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
7980
+ "onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
7969
7981
  }), {
7970
- item: m(({ item: _, depth: b, path: V, open: P }) => [
7982
+ item: m(({ item: B, depth: b, path: I, open: V }) => [
7971
7983
  c(e.$slots, "item", {
7972
- item: _,
7984
+ item: B,
7973
7985
  depth: b,
7974
- path: V,
7975
- open: P
7986
+ path: I,
7987
+ open: V
7976
7988
  })
7977
7989
  ]),
7978
7990
  _: 2
@@ -7983,7 +7995,7 @@ function ea(e, t, i, o, n, l) {
7983
7995
  ], 2))), 128))
7984
7996
  ], 2);
7985
7997
  }
7986
- const ta = {
7998
+ const ca = {
7987
7999
  name: "w-tree",
7988
8000
  props: {
7989
8001
  modelValue: { type: [Object, Array] },
@@ -8044,22 +8056,22 @@ const ta = {
8044
8056
  // From data watcher, retain the oldItems open state.
8045
8057
  updateCurrentDepthTree(e, t = []) {
8046
8058
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
8047
- return F(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8048
- Array.isArray(e) || (e = [e]), e.forEach((i, o) => {
8059
+ return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8060
+ Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
8049
8061
  var l, a;
8050
8062
  const n = {
8051
8063
  originalItem: i,
8052
8064
  // Store the original item to return it on event emits.
8053
- _uid: this.depth.toString() + (o + 1),
8065
+ _uid: this.depth.toString() + (s + 1),
8054
8066
  label: i[this.itemLabelKey],
8055
8067
  children: !!i.children,
8056
8068
  // The children tree remains available in originalItem.
8057
8069
  branch: i.branch,
8058
8070
  route: i[this.itemRouteKey],
8059
8071
  disabled: i[this.itemDisabledKey],
8060
- selected: ((l = t[o]) == null ? void 0 : l.selected) || !1,
8072
+ selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
8061
8073
  depth: this.depth,
8062
- open: !!((a = t[o]) != null && a.open || this.expandAll || i[this.itemOpenKey]),
8074
+ open: !!((a = t[s]) != null && a.open || this.expandAll || i[this.itemOpenKey]),
8063
8075
  parent: this.parent || null,
8064
8076
  path: []
8065
8077
  // Ancestors path from root to leaf including self.
@@ -8105,13 +8117,13 @@ const ta = {
8105
8117
  },
8106
8118
  onLabelClick(e, t) {
8107
8119
  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);
8108
- const o = this.emitPayload(e, t);
8109
- this.$emit("click", o), this.emitItemSelection(e, t);
8120
+ const s = this.emitPayload(e, t);
8121
+ this.$emit("click", s), this.emitItemSelection(e, t);
8110
8122
  },
8111
8123
  onLabelKeydown(e, t) {
8112
8124
  if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.keyCode) && ((e.children || e.branch) && ([13, 32].includes(t.keyCode) ? this.expandDepth(e) && t.preventDefault() : t.keyCode === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.keyCode === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.keyCode))) {
8113
- 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.keyCode === 38 ? -1 : 1;
8114
- [...o].some((a, r) => a.isSameNode(n) ? (o[r + l] && o[r + l].focus(), !0) : !1);
8125
+ const s = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.keyCode === 38 ? -1 : 1;
8126
+ [...s].some((a, r) => a.isSameNode(n) ? (s[r + l] && s[r + l].focus(), !0) : !1);
8115
8127
  }
8116
8128
  t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8117
8129
  },
@@ -8135,8 +8147,7 @@ const ta = {
8135
8147
  */
8136
8148
  getPreviousSibling(e, t) {
8137
8149
  for (; t && (e = e.previousElementSibling); )
8138
- if (e.matches(t))
8139
- return e;
8150
+ if (e.matches(t)) return e;
8140
8151
  return !1;
8141
8152
  },
8142
8153
  /**
@@ -8147,8 +8158,7 @@ const ta = {
8147
8158
  */
8148
8159
  getNextSibling(e, t) {
8149
8160
  for (; t && (e = e.nextElementSibling); )
8150
- if (e.matches(t))
8151
- return e;
8161
+ if (e.matches(t)) return e;
8152
8162
  return !1;
8153
8163
  },
8154
8164
  focusTreeItem(e) {
@@ -8183,63 +8193,63 @@ const ta = {
8183
8193
  unmounted() {
8184
8194
  this.dataPropUnwatch();
8185
8195
  }
8186
- }, ia = /* @__PURE__ */ v(ta, [["render", ea]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8196
+ }, pa = /* @__PURE__ */ v(ca, [["render", ha]]), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8187
8197
  __proto__: null,
8188
- WAccordion: Ye,
8189
- WAlert: Ze,
8190
- WApp: pt,
8191
- WAutocomplete: dt,
8192
- WBadge: bt,
8193
- WBreadcrumbs: vt,
8194
- WButton: Lt,
8195
- WCard: xt,
8196
- WCheckbox: Ft,
8197
- WCheckboxes: Xt,
8198
- WConfirm: Jt,
8199
- WDatePicker: ei,
8200
- WDialog: li,
8201
- WDivider: ni,
8202
- WDrawer: ci,
8203
- WFlex: mi,
8204
- WForm: wi,
8205
- WFormElement: Ci,
8206
- WGrid: _i,
8207
- WIcon: Ii,
8208
- WImage: Pi,
8209
- WInput: Hi,
8210
- WList: Ui,
8211
- WMenu: Yi,
8212
- WNotification: Qi,
8213
- WOverlay: tl,
8214
- WParallax: ol,
8215
- WProgress: pl,
8216
- WRadio: vl,
8217
- WRadios: _l,
8218
- WRating: Ll,
8219
- WScrollable: xl,
8220
- WSelect: Nl,
8221
- WSlider: ts,
8222
- WSpinner: os,
8223
- WSteps: rs,
8224
- WSwitch: gs,
8225
- WTable: oo,
8226
- WTabs: Ts,
8227
- WTag: uo,
8228
- WTextarea: go,
8229
- WTimeline: vo,
8230
- WToolbar: Bo,
8231
- WTooltip: Vo,
8232
- WTransitionBounce: Lo,
8233
- WTransitionExpand: Oo,
8234
- WTransitionFade: Mo,
8235
- WTransitionScale: Wo,
8236
- WTransitionScaleFade: Do,
8237
- WTransitionSlide: jo,
8238
- WTransitionSlideFade: Xo,
8239
- WTransitionTwist: Jo,
8240
- WTree: ia
8241
- }, Symbol.toStringTag, { value: "Module" })), sa = U.install;
8242
- U.install = (e, t = {}) => sa.call(U, e, { components: la, ...t });
8198
+ WAccordion: at,
8199
+ WAlert: ut,
8200
+ WApp: Bt,
8201
+ WAutocomplete: kt,
8202
+ WBadge: It,
8203
+ WBreadcrumbs: xt,
8204
+ WButton: Nt,
8205
+ WCard: jt,
8206
+ WCheckbox: ti,
8207
+ WCheckboxes: oi,
8208
+ WConfirm: ri,
8209
+ WDatePicker: hi,
8210
+ WDialog: fi,
8211
+ WDivider: yi,
8212
+ WDrawer: Si,
8213
+ WFlex: $i,
8214
+ WForm: Li,
8215
+ WFormElement: Pi,
8216
+ WGrid: zi,
8217
+ WIcon: Wi,
8218
+ WImage: Hi,
8219
+ WInput: el,
8220
+ WList: ll,
8221
+ WMenu: al,
8222
+ WNotification: dl,
8223
+ WOverlay: cl,
8224
+ WParallax: gl,
8225
+ WProgress: Bl,
8226
+ WRadio: xl,
8227
+ WRadios: zl,
8228
+ WRating: Nl,
8229
+ WScrollable: jl,
8230
+ WSelect: Ql,
8231
+ WSlider: cs,
8232
+ WSpinner: gs,
8233
+ WSteps: ws,
8234
+ WSwitch: Vs,
8235
+ WTable: bo,
8236
+ WTabs: Ks,
8237
+ WTag: vo,
8238
+ WTextarea: Vo,
8239
+ WTimeline: xo,
8240
+ WToolbar: Mo,
8241
+ WTooltip: Ao,
8242
+ WTransitionBounce: No,
8243
+ WTransitionExpand: Fo,
8244
+ WTransitionFade: qo,
8245
+ WTransitionScale: Go,
8246
+ WTransitionScaleFade: Zo,
8247
+ WTransitionSlide: ia,
8248
+ WTransitionSlideFade: oa,
8249
+ WTransitionTwist: ra,
8250
+ WTree: pa
8251
+ }, Symbol.toStringTag, { value: "Module" })), ma = q.install;
8252
+ q.install = (e, t = {}) => ma.call(q, e, { components: fa, ...t });
8243
8253
  export {
8244
- U as default
8254
+ q as default
8245
8255
  };