wave-ui 3.13.6 → 3.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var ve = Object.defineProperty;
2
- var ne = (e) => {
1
+ var _e = Object.defineProperty;
2
+ var de = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ce = (e, t, i) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
- var H = (e, t, i) => Ce(e, typeof t != "symbol" ? t + "" : t, i), re = (e, t, i) => t.has(e) || ne("Cannot " + i);
7
- var X = (e, t, i) => (re(e, t, "read from private field"), i ? i.call(e) : t.get(e)), Q = (e, t, i) => t.has(e) ? ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), Z = (e, t, i, o) => (re(e, t, "write to private field"), o ? o.call(e, i) : t.set(e, i), i);
8
- import { reactive as G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as Se, 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 Be, defineComponent as _e, 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 be, withDirectives as W, createSlots as J, vShow as ae, vModelText as ye, vModelDynamic as Ve, KeepAlive as Ie } from "vue";
9
- const Te = 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({
10
10
  on: "#app",
11
11
  // Sets the Wave UI root node. If not found, will default to `body`.
12
12
  breakpoints: {
@@ -66,39 +66,82 @@ const Te = G({
66
66
  },
67
67
  presets: {}
68
68
  // User presets for each component.
69
- }), we = (e, t = Te) => {
69
+ }), Ce = (e, t = Pe) => {
70
70
  if (!Object.keys(t).length) t = Object.assign(t, e);
71
71
  else
72
72
  for (const i in e) {
73
- const o = e[i];
74
- typeof o == "object" ? we(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;
75
75
  }
76
76
  return t;
77
- }, F = (e) => console.warn(`Wave UI: ${e}`), ee = (e) => console.error(`Wave UI: ${e}`), de = (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(""), Le = (e) => {
77
+ }, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), Oe = (e) => {
78
78
  ["light", "dark"].forEach((t) => {
79
+ var s;
79
80
  const i = e.colors[t];
80
81
  i.shades = {};
81
- for (let o in i) {
82
- if (o === "shades") continue;
83
- o = { label: o, color: i[o].replace("#", "") };
84
- const n = o.color;
85
- n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
86
- for (let l = 1; l <= 3; l++) {
87
- const a = de(`#${o.color}`, l * 40), r = de(`#${o.color}`, -l * 40);
88
- 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;
89
89
  }
90
90
  }
91
91
  });
92
- }, ue = (e, t) => {
92
+ }, he = (e, t) => {
93
93
  const i = {
94
- ...t.reduce((o, n) => {
95
- o[n.label] = n.color;
94
+ ...t.reduce((s, n) => {
95
+ s[n.label] = n.color;
96
96
  const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
97
- return { ...o, ...l };
97
+ return { ...s, ...l };
98
98
  }, { ...e, ...e.shades })
99
99
  };
100
100
  return delete i.shades, i;
101
- }, he = [
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 = [
102
145
  {
103
146
  label: "pink",
104
147
  color: "#e91e63",
@@ -445,43 +488,44 @@ const Te = G({
445
488
  { label: "white", color: "#fff" },
446
489
  { label: "transparent", color: "transparent" },
447
490
  { label: "inherit", color: "inherit" }
448
- ], j = {
491
+ ], U = {
449
492
  cssScope: ".w-app",
450
493
  baseIncrement: 4
451
494
  };
452
- let ie = { keys: [], values: [] }, ce = null;
453
- const Re = (e, t) => {
495
+ let se = { keys: [], values: [] }, me = null;
496
+ const Ne = (e, t) => {
497
+ var I;
454
498
  let i = "";
455
- 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;
456
500
  for (const V in h)
457
- 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)}`;
458
502
  for (const V in d)
459
- i += `${w} .${V}--bg{background-color:${d[V]}}${w} .${V}{color:${d[V]}}`;
460
- const _ = { ...h, info: n, warning: l, success: a, error: r };
461
- for (const V in _) 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];
462
506
  if (t)
463
- for (const V in d) o[V] = d[V];
507
+ for (const V in d) s[V] = d[V];
464
508
  let b = "";
465
- return Object.entries(o).forEach(([V, P]) => {
466
- b += `--w-${V}-color: ${P};`;
509
+ return Object.entries(s).forEach(([V, O]) => {
510
+ b += `--w-${V}-color: ${O};`;
467
511
  }), `:root{${b}}${i}`;
468
- }, Pe = (e, t) => {
512
+ }, De = (e, t) => {
469
513
  let i = "";
470
- const { cssScope: o } = j;
514
+ const { cssScope: s } = U;
471
515
  return e.forEach(({ min: n, label: l }) => {
472
516
  if (l === "xs")
473
517
  for (let a = 0; a < t; a++)
474
- 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))}%;}`;
475
519
  else {
476
520
  i += `@media(min-width:${n}px){`;
477
521
  for (let a = 0; a < t; a++)
478
- 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))}%;}`;
479
523
  i += "}";
480
524
  }
481
525
  }), i;
482
- }, Oe = (e) => {
526
+ }, He = (e) => {
483
527
  let t = "";
484
- const { cssScope: i, baseIncrement: o } = j, n = [
528
+ const { cssScope: i, baseIncrement: s } = U, n = [
485
529
  "show{display:block}",
486
530
  "hide{display:none}",
487
531
  "d-flex{display:flex}",
@@ -518,64 +562,64 @@ const Re = (e, t) => {
518
562
  ], l = Array(12).fill();
519
563
  return e.forEach(({ label: a, min: r }) => {
520
564
  a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + // w-grid columns and gap.
521
- 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}}`);
522
566
  }), e.forEach(({ label: a, min: r, max: d }) => {
523
567
  t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + // w-grid columns and gap.
524
- 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}}`;
525
569
  }), e.forEach(({ label: a, max: r }) => {
526
570
  a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
527
- 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}}`);
528
572
  }), t;
529
- }, pe = (e) => {
530
- const t = window.innerWidth, i = ie.values.slice(0);
573
+ }, ge = (e) => {
574
+ const t = window.innerWidth, i = se.values.slice(0);
531
575
  i.push(t), i.sort((n, l) => n - l);
532
- const o = ie.keys[i.indexOf(t)] || "xl";
533
- o !== ce && (ce = o, e.breakpoint = {
534
- name: o,
535
- xs: o === "xs",
536
- sm: o === "sm",
537
- md: o === "md",
538
- lg: o === "lg",
539
- 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",
540
584
  width: t
541
585
  }), e.breakpoint.width = window.innerWidth;
542
- }, xe = (e) => {
586
+ }, Fe = (e) => {
543
587
  const { config: t } = e;
544
- 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")) {
545
589
  const i = document.createElement("style");
546
- i.id = "wave-ui-styles", i.innerHTML = Me(t);
547
- const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
548
- 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);
549
593
  }
550
- pe(e), window.addEventListener("resize", () => pe(e));
551
- }, ze = (e, t) => {
594
+ ge(e), window.addEventListener("resize", () => ge(e));
595
+ }, je = (e, t, i) => {
552
596
  if (!document.getElementById("wave-ui-colors")) {
553
- const i = document.createElement("style");
554
- i.id = "wave-ui-colors", i.innerHTML = Re(e, t);
555
- const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
556
- 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);
557
601
  }
558
- }, Me = (e) => {
602
+ }, Ue = (e) => {
559
603
  const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
560
604
  const [, d = 0] = t[r - 1] || [];
561
605
  return { label: l, min: d ? d + 1 : 0, max: a };
562
- }), o = getComputedStyle(document.documentElement);
563
- 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"));
564
608
  let n = "";
565
- return n += Pe(i, e.css.grid), e.css.breakpointLayoutClasses && (n += Oe(i)), n;
566
- }, Ee = ["innerHTML"];
567
- function Ae(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) {
568
612
  const a = $("w-alert");
569
- return s(), g(Se, { to: ".w-app" }, [
570
- I(se, {
613
+ return o(), g(Ve, { to: ".w-app" }, [
614
+ T(ae, {
571
615
  class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
572
616
  tag: "div",
573
617
  name: l.transition,
574
618
  appear: ""
575
619
  }, {
576
620
  default: m(() => [
577
- (s(!0), u(k, null, R(l.notifications, (r) => (s(), u(k, null, [
578
- 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, _({
579
623
  class: "white--bg",
580
624
  key: r._uid,
581
625
  modelValue: r._value,
@@ -584,9 +628,9 @@ function Ae(e, t, i, o, n, l) {
584
628
  ref_for: !0
585
629
  }, l.notifProps(r)), {
586
630
  default: m(() => [
587
- y("div", {
631
+ w("div", {
588
632
  innerHTML: r.message
589
- }, null, 8, Ee)
633
+ }, null, 8, qe)
590
634
  ]),
591
635
  _: 2
592
636
  }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
@@ -598,10 +642,10 @@ function Ae(e, t, i, o, n, l) {
598
642
  }
599
643
  const v = (e, t) => {
600
644
  const i = e.__vccOpts || e;
601
- for (const [o, n] of t)
602
- i[o] = n;
645
+ for (const [s, n] of t)
646
+ i[s] = n;
603
647
  return i;
604
- }, We = {
648
+ }, Ye = {
605
649
  name: "w-notification-manager",
606
650
  computed: {
607
651
  conf() {
@@ -619,11 +663,11 @@ const v = (e, t) => {
619
663
  },
620
664
  methods: {
621
665
  notifProps(e) {
622
- const { _value: t, _uid: i, message: o, timeout: n, ...l } = e;
666
+ const { _value: t, _uid: i, message: s, timeout: n, ...l } = e;
623
667
  return l.dismiss && (l.dismiss = !0), l;
624
668
  }
625
669
  }
626
- }, Ke = /* @__PURE__ */ v(We, [["render", Ae]]);
670
+ }, Ge = /* @__PURE__ */ v(Ye, [["render", Xe]]);
627
671
  var D;
628
672
  const K = class K {
629
673
  constructor() {
@@ -632,14 +676,14 @@ const K = class K {
632
676
  H(this, "_uid");
633
677
  // A unique ID for each notification.
634
678
  H(this, "_notificationDefaults");
635
- if (X(K, D)) return X(K, D);
679
+ if (Y(K, D)) return Y(K, D);
636
680
  this.notifications = [], this._uid = 0, this._notificationDefaults = {
637
681
  _uid: 0,
638
682
  _value: !0,
639
683
  message: "",
640
684
  timeout: 4e3,
641
685
  dismiss: !0
642
- }, Z(K, D, this);
686
+ }, ie(K, D, this);
643
687
  }
644
688
  notify(...t) {
645
689
  let i = {
@@ -648,10 +692,10 @@ const K = class K {
648
692
  };
649
693
  if (typeof t[0] == "object") i = { ...i, ...t[0] };
650
694
  else {
651
- const [o, n, l] = t;
695
+ const [s, n, l] = t;
652
696
  i = {
653
697
  ...i,
654
- message: o || "",
698
+ message: s || "",
655
699
  [n === void 0 ? "info" : n]: !0,
656
700
  timeout: l || l === 0 ? parseFloat(l) : 4e3
657
701
  };
@@ -662,29 +706,29 @@ const K = class K {
662
706
  this.notifications = this.notifications.filter((i) => i._uid !== t);
663
707
  }
664
708
  };
665
- D = new WeakMap(), Q(K, D);
666
- let le = K;
667
- const Ne = (e, t, i) => {
668
- const o = document.createElement("div");
669
- e.appendChild(o);
670
- const n = Be(_e({
671
- ...Ke,
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,
672
716
  inject: ["$waveui"]
673
717
  })).provide("$waveui", i);
674
718
  for (const l in t) {
675
719
  const a = t[l];
676
720
  n.component(a.name, { ...a, inject: ["$waveui"] });
677
721
  }
678
- n.mount(o), o.remove();
722
+ n.mount(s), s.remove();
679
723
  };
680
- let fe = !1;
681
- const De = (e) => {
724
+ let be = !1;
725
+ const Qe = (e) => {
682
726
  const t = window.matchMedia("(prefers-color-scheme: dark)");
683
727
  e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
684
728
  e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
685
729
  });
686
- }, He = (e, t) => {
687
- var i, o;
730
+ }, Ze = (e, t) => {
731
+ var i, s;
688
732
  for (const n in t)
689
733
  if ((i = e.props) != null && i[n])
690
734
  e.props[n].default = t[n];
@@ -692,16 +736,16 @@ const De = (e) => {
692
736
  let l = !1;
693
737
  if (Array.isArray(e.mixins) && e.mixins.length) {
694
738
  for (const a of e.mixins)
695
- if ((o = a == null ? void 0 : a.props) != null && o[n]) {
739
+ if ((s = a == null ? void 0 : a.props) != null && s[n]) {
696
740
  a.props[n].default = t[n], l = !0;
697
741
  break;
698
742
  }
699
- 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}\`.`);
700
744
  continue;
701
745
  }
702
746
  }
703
747
  };
704
- var q;
748
+ var X;
705
749
  const N = class N {
706
750
  constructor(t, i = {}) {
707
751
  // Exposed as a global object and also `app.provide`d.
@@ -732,19 +776,19 @@ const N = class N {
732
776
  switchTheme(t, i = !1) {
733
777
  var n, l;
734
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);
735
- const o = this.config.colors[this.theme];
736
- ze(o, this.config.css.colorShadeCssVariables), this.colors = ue(o, he);
779
+ const s = this.config.colors[this.theme];
780
+ je(s, this.config.css.colorShadeCssVariables), this.colors = he(s, fe);
737
781
  }
738
782
  });
739
- if (X(N, q)) return;
740
- 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) {
741
785
  const a = { ...i.colors };
742
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 };
743
787
  }
744
- let { components: o, ...n } = i;
745
- n = this.$waveui.config = we(n), n.css.colorShades && Le(n);
746
- const l = G(this.$waveui);
747
- t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = ue(n.colors[n.theme], he));
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));
748
792
  }
749
793
  static install(t, i = {}) {
750
794
  var n;
@@ -759,44 +803,44 @@ const N = class N {
759
803
  window.addEventListener("scroll", r);
760
804
  }
761
805
  });
762
- const { components: o = {} } = i || {};
763
- for (const l in o) {
764
- const a = o[l];
765
- (n = i.presets) != null && n[a.name] && He(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);
766
810
  }
767
811
  t.mixin({
768
812
  // Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
769
813
  beforeMount() {
770
- if (!fe) {
771
- fe = !0;
772
- const l = $e("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
773
- r.classList.add("w-app"), a.theme === "auto" ? De(l) : l.switchTheme(a.theme, !0), xe(l), Ne(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);
774
818
  }
775
819
  }
776
- }), new N(t, i), Z(N, q, !0);
820
+ }), new N(t, i), ie(N, X, !0);
777
821
  }
778
822
  };
779
- q = new WeakMap(), Q(N, q, !1);
780
- let U = N;
781
- const Fe = ["aria-expanded"], je = ["onClick", "onFocus", "onKeypress", "tabindex"], Ue = ["innerHTML"], qe = ["innerHTML"];
782
- function Xe(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) {
783
827
  const a = $("w-button"), r = $("w-transition-expand");
784
- return s(), u("div", {
828
+ return o(), u("div", {
785
829
  class: f(["w-accordion", l.accordionClasses])
786
830
  }, [
787
- (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", {
788
832
  class: f(["w-accordion__item", l.itemClasses(d)]),
789
833
  key: h,
790
834
  "aria-expanded": d._expanded ? "true" : "false"
791
835
  }, [
792
- y("div", {
836
+ w("div", {
793
837
  class: f(["w-accordion__item-title", i.titleClass]),
794
- onClick: (w) => !d._disabled && l.toggleItem(d, w),
795
- onFocus: (w) => e.$emit("focus", l.getOriginalItem(d)),
796
- 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"]),
797
841
  tabindex: !d._disabled && 0
798
842
  }, [
799
- i.expandIcon && !i.expandIconRight ? (s(), g(a, {
843
+ i.expandIcon && !i.expandIconRight ? (o(), g(a, {
800
844
  key: 0,
801
845
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
802
846
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -804,9 +848,9 @@ function Xe(e, t, i, o, n, l) {
804
848
  disabled: d._disabled || null,
805
849
  tabindex: -1,
806
850
  text: "",
807
- onKeypress: t[0] || (t[0] = z(() => {
851
+ onKeypress: t[0] || (t[0] = M(() => {
808
852
  }, ["stop"])),
809
- onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
853
+ onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
810
854
  }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
811
855
  e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
812
856
  key: 1,
@@ -819,28 +863,28 @@ function Xe(e, t, i, o, n, l) {
819
863
  expanded: d._expanded,
820
864
  index: h + 1
821
865
  }, () => [
822
- y("div", {
866
+ w("div", {
823
867
  class: "grow",
824
868
  innerHTML: d[i.itemTitleKey]
825
- }, null, 8, Ue)
869
+ }, null, 8, it)
826
870
  ]),
827
- i.expandIcon && i.expandIconRight ? (s(), g(a, {
871
+ i.expandIcon && i.expandIconRight ? (o(), g(a, {
828
872
  key: 3,
829
873
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
830
874
  icon: d._expanded && i.collapseIcon || i.expandIcon,
831
875
  text: "",
832
- onKeypress: t[1] || (t[1] = z(() => {
876
+ onKeypress: t[1] || (t[1] = M(() => {
833
877
  }, ["stop"])),
834
- onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
878
+ onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
835
879
  }, null, 8, ["icon", "onClick", "class"])) : p("", !0)
836
- ], 42, je),
837
- I(r, {
880
+ ], 42, tt),
881
+ T(r, {
838
882
  y: "",
839
- onAfterLeave: (w) => l.onEndOfCollapse(d),
883
+ onAfterLeave: (y) => l.onEndOfCollapse(d),
840
884
  duration: i.duration
841
885
  }, {
842
886
  default: m(() => [
843
- d._expanded ? (s(), u("div", {
887
+ d._expanded ? (o(), u("div", {
844
888
  key: 0,
845
889
  class: f(["w-accordion__item-content", i.contentClass])
846
890
  }, [
@@ -855,18 +899,18 @@ function Xe(e, t, i, o, n, l) {
855
899
  expanded: d._expanded,
856
900
  index: h + 1
857
901
  }, () => [
858
- y("div", {
902
+ w("div", {
859
903
  innerHTML: d[i.itemContentKey]
860
- }, null, 8, qe)
904
+ }, null, 8, lt)
861
905
  ])
862
906
  ], 2)) : p("", !0)
863
907
  ]),
864
908
  _: 2
865
909
  }, 1032, ["onAfterLeave", "duration"])
866
- ], 10, Fe))), 128))
910
+ ], 10, et))), 128))
867
911
  ], 2);
868
912
  }
869
- const Ye = {
913
+ const ot = {
870
914
  name: "w-accordion",
871
915
  props: {
872
916
  modelValue: { type: Array },
@@ -911,8 +955,8 @@ const Ye = {
911
955
  },
912
956
  methods: {
913
957
  toggleItem(e, t) {
914
- e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
915
- 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);
916
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);
917
961
  },
918
962
  onEndOfCollapse(e) {
@@ -954,15 +998,15 @@ const Ye = {
954
998
  deep: !0
955
999
  }
956
1000
  }
957
- }, Ge = /* @__PURE__ */ v(Ye, [["render", Xe]]), Je = { class: "w-alert__content" };
958
- function Qe(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) {
959
1003
  const a = $("w-icon"), r = $("w-button");
960
- return n.show ? (s(), u("div", {
1004
+ return n.show ? (o(), u("div", {
961
1005
  key: 0,
962
1006
  class: f(["w-alert", l.classes])
963
1007
  }, [
964
- l.type || i.icon || i.dismiss ? (s(), u(k, { key: 0 }, [
965
- 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, {
966
1010
  key: 0,
967
1011
  class: "w-alert__icon mr2"
968
1012
  }, {
@@ -971,10 +1015,10 @@ function Qe(e, t, i, o, n, l) {
971
1015
  ]),
972
1016
  _: 1
973
1017
  })) : p("", !0),
974
- y("div", Je, [
1018
+ w("div", nt, [
975
1019
  c(e.$slots, "default")
976
1020
  ]),
977
- i.dismiss ? (s(), g(r, {
1021
+ i.dismiss ? (o(), g(r, {
978
1022
  key: 1,
979
1023
  class: "w-alert__dismiss",
980
1024
  onClick: t[0] || (t[0] = (d) => {
@@ -988,7 +1032,7 @@ function Qe(e, t, i, o, n, l) {
988
1032
  ], 64)) : c(e.$slots, "default", { key: 1 })
989
1033
  ], 2)) : p("", !0);
990
1034
  }
991
- const Ze = {
1035
+ const dt = {
992
1036
  name: "w-alert",
993
1037
  props: {
994
1038
  modelValue: { default: !0 },
@@ -1071,24 +1115,24 @@ const Ze = {
1071
1115
  this.show = e;
1072
1116
  }
1073
1117
  }
1074
- }, et = /* @__PURE__ */ v(Ze, [["render", Qe]]), tt = { class: "w-autocomplete__selection" }, it = ["innerHTML"], lt = ["innerHTML"], st = ["value"], ot = ["onClick"], at = ["innerHTML"], nt = ["innerHTML"];
1075
- function rt(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) {
1076
1120
  const a = $("w-button"), r = $("w-transition-slide-fade");
1077
- return s(), u("div", {
1121
+ return o(), u("div", {
1078
1122
  class: f(["w-autocomplete", l.classes]),
1079
1123
  onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
1080
- style: L(e.$attrs.style)
1124
+ style: R(e.$attrs.style)
1081
1125
  }, [
1082
- e.selection.length ? (s(!0), u(k, { key: 0 }, R(e.selection, (d, h) => (s(), u("div", tt, [
1126
+ e.selection.length ? (o(!0), u(k, { key: 0 }, x(e.selection, (d, h) => (o(), u("div", ht, [
1083
1127
  c(e.$slots, "selection", {
1084
1128
  item: d,
1085
- unselect: (w) => l.unselectItem(w)
1129
+ unselect: (y) => l.unselectItem(y)
1086
1130
  }, () => [
1087
- y("span", {
1131
+ w("span", {
1088
1132
  innerHTML: d[i.itemLabelKey]
1089
- }, null, 8, it),
1090
- I(a, {
1091
- onClick: z((w) => l.unselectItem(h), ["stop"]),
1133
+ }, null, 8, ct),
1134
+ T(a, {
1135
+ onClick: M((y) => l.unselectItem(h), ["stop"]),
1092
1136
  icon: "wi-cross",
1093
1137
  xs: "",
1094
1138
  text: "",
@@ -1096,19 +1140,19 @@ function rt(e, t, i, o, n, l) {
1096
1140
  }, null, 8, ["onClick"])
1097
1141
  ])
1098
1142
  ]))), 256)) : p("", !0),
1099
- !e.selection.length && !e.keywords && i.placeholder ? (s(), u("div", {
1143
+ !e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
1100
1144
  key: 1,
1101
1145
  class: "w-autocomplete__placeholder",
1102
1146
  innerHTML: i.placeholder
1103
- }, null, 8, lt)) : p("", !0),
1104
- y("input", B({
1147
+ }, null, 8, pt)) : p("", !0),
1148
+ w("input", _({
1105
1149
  class: "w-autocomplete__input",
1106
1150
  ref: "input",
1107
1151
  value: e.keywords
1108
- }, oe(l.inputEventListeners, !0), l.inputAttrs), null, 16, st),
1109
- I(r, null, {
1152
+ }, ne(l.inputEventListeners, !0), l.inputAttrs), null, 16, ft),
1153
+ T(r, null, {
1110
1154
  default: m(() => [
1111
- e.menuOpen ? (s(), u("ul", {
1155
+ e.menuOpen ? (o(), u("ul", {
1112
1156
  key: 0,
1113
1157
  class: "w-autocomplete__menu",
1114
1158
  ref: "menu",
@@ -1117,32 +1161,32 @@ function rt(e, t, i, o, n, l) {
1117
1161
  onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
1118
1162
  onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
1119
1163
  }, [
1120
- (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", {
1121
1165
  key: h,
1122
- 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"]),
1123
1167
  class: f({ highlighted: e.highlightedItem === d.uid })
1124
1168
  }, [
1125
1169
  c(e.$slots, "item", {
1126
1170
  item: d,
1127
1171
  highlighted: e.highlightedItem === d.uid
1128
1172
  }, () => [
1129
- y("span", {
1173
+ w("span", {
1130
1174
  innerHTML: d[i.itemLabelKey]
1131
- }, null, 8, at)
1175
+ }, null, 8, gt)
1132
1176
  ])
1133
- ], 10, ot))), 128)),
1134
- l.filteredItems.length ? p("", !0) : (s(), u("li", {
1177
+ ], 10, mt))), 128)),
1178
+ l.filteredItems.length ? p("", !0) : (o(), u("li", {
1135
1179
  key: 0,
1136
1180
  class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
1137
1181
  }, [
1138
1182
  c(e.$slots, "no-match", {}, () => [
1139
- y("div", {
1183
+ w("div", {
1140
1184
  class: "caption",
1141
1185
  innerHTML: i.noMatch ?? "No match."
1142
- }, null, 8, nt)
1186
+ }, null, 8, bt)
1143
1187
  ])
1144
1188
  ], 2)),
1145
- e.$slots["extra-item"] ? (s(), u("li", {
1189
+ e.$slots["extra-item"] ? (o(), u("li", {
1146
1190
  key: 1,
1147
1191
  class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
1148
1192
  onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
@@ -1155,7 +1199,7 @@ function rt(e, t, i, o, n, l) {
1155
1199
  })
1156
1200
  ], 6);
1157
1201
  }
1158
- const dt = {
1202
+ const wt = {
1159
1203
  name: "w-autocomplete",
1160
1204
  inheritAttrs: !1,
1161
1205
  // The attrs should only be added to the input not the wrapper.
@@ -1205,7 +1249,7 @@ const dt = {
1205
1249
  },
1206
1250
  filteredItems() {
1207
1251
  let e = this.optimizedItemsForSearch;
1208
- const t = (i) => !this.selection.find((o) => o.uid === i.uid);
1252
+ const t = (i) => !this.selection.find((s) => s.uid === i.uid);
1209
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;
1210
1254
  },
1211
1255
  highlightedItemIndex() {
@@ -1291,13 +1335,13 @@ const dt = {
1291
1335
  e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
1292
1336
  else if ([38, 40].includes(e.keyCode)) {
1293
1337
  e.preventDefault();
1294
- let o = this.highlightedItemIndex;
1295
- 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;
1296
1340
  const n = this.$refs.menu;
1297
1341
  if (n)
1298
- if (this.$slots["extra-item"] && o === t - 1) n.scrollTop = n.scrollHeight;
1342
+ if (this.$slots["extra-item"] && s === t - 1) n.scrollTop = n.scrollHeight;
1299
1343
  else {
1300
- const { offsetHeight: l, offsetTop: a } = n.childNodes[o] || {};
1344
+ const { offsetHeight: l, offsetTop: a } = n.childNodes[s] || {};
1301
1345
  n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1302
1346
  }
1303
1347
  } else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
@@ -1334,17 +1378,17 @@ const dt = {
1334
1378
  watch: {
1335
1379
  modelValue(e) {
1336
1380
  this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
1337
- this.selection.push(this.optimizedItemsForSearch.find((o) => o[this.itemValueKey] === +i));
1381
+ this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
1338
1382
  });
1339
1383
  }
1340
1384
  }
1341
- }, ut = /* @__PURE__ */ v(dt, [["render", rt]]), ht = { class: "w-app" };
1342
- function ct(e, t, i, o, n, l) {
1343
- return s(), u("div", ht, [
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, [
1344
1388
  c(e.$slots, "default")
1345
1389
  ]);
1346
1390
  }
1347
- const pt = {
1391
+ const St = {
1348
1392
  name: "w-app",
1349
1393
  // Keep the props for the API documentation.
1350
1394
  props: {
@@ -1360,18 +1404,18 @@ const pt = {
1360
1404
  textCenter: { type: Boolean },
1361
1405
  textRight: { type: Boolean }
1362
1406
  }
1363
- }, ft = /* @__PURE__ */ v(pt, [["render", ct]]), mt = { class: "w-badge-wrap" };
1364
- function gt(e, t, i, o, n, l) {
1365
- return s(), u("div", mt, [
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, [
1366
1410
  c(e.$slots, "default"),
1367
- I(O, {
1411
+ T(P, {
1368
1412
  name: `${i.transition}`
1369
1413
  }, {
1370
1414
  default: m(() => [
1371
- i.modelValue ? (s(), u("div", {
1415
+ i.modelValue ? (o(), u("div", {
1372
1416
  key: 0,
1373
1417
  class: f(["w-badge", l.classes]),
1374
- style: L(l.styles),
1418
+ style: R(l.styles),
1375
1419
  "aria-atomic": "true",
1376
1420
  "aria-label": "Badge",
1377
1421
  "aria-live": "polite",
@@ -1386,7 +1430,7 @@ function gt(e, t, i, o, n, l) {
1386
1430
  }, 8, ["name"])
1387
1431
  ]);
1388
1432
  }
1389
- const bt = {
1433
+ const Vt = {
1390
1434
  name: "w-badge",
1391
1435
  props: {
1392
1436
  modelValue: { default: !0 },
@@ -1449,19 +1493,19 @@ const bt = {
1449
1493
  return this.forcedSize && `font-size: ${this.forcedSize}`;
1450
1494
  }
1451
1495
  }
1452
- }, yt = /* @__PURE__ */ v(bt, [["render", gt]]), wt = ["innerHTML"];
1453
- function kt(e, t, i, o, n, l) {
1496
+ }, It = /* @__PURE__ */ v(Vt, [["render", $t]]), Tt = ["innerHTML"];
1497
+ function Lt(e, t, i, s, n, l) {
1454
1498
  const a = $("w-icon");
1455
- return s(), u("div", {
1499
+ return o(), u("div", {
1456
1500
  class: f(["w-breadcrumbs", l.classes])
1457
1501
  }, [
1458
- (s(!0), u(k, null, R(i.items, (r, d) => (s(), u(k, null, [
1459
- 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", {
1460
1504
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1461
1505
  key: `${d}a`
1462
1506
  }, [
1463
1507
  c(e.$slots, "separator", { index: d })
1464
- ], 2)) : d ? (s(), g(a, {
1508
+ ], 2)) : d ? (o(), g(a, {
1465
1509
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1466
1510
  key: `${d}b`
1467
1511
  }, {
@@ -1470,8 +1514,8 @@ function kt(e, t, i, o, n, l) {
1470
1514
  ]),
1471
1515
  _: 2
1472
1516
  }, 1032, ["class"])) : p("", !0),
1473
- r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (s(), u(k, { key: 2 }, [
1474
- 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"), {
1475
1519
  class: f(["w-breadcrumbs__item", i.color || null]),
1476
1520
  key: `${d}c`,
1477
1521
  to: l.hasRouter && r[i.itemRouteKey],
@@ -1485,7 +1529,7 @@ function kt(e, t, i, o, n, l) {
1485
1529
  })
1486
1530
  ]),
1487
1531
  _: 2
1488
- }, 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"), {
1489
1533
  class: f(["w-breadcrumbs__item", i.color || null]),
1490
1534
  key: `${d}d`,
1491
1535
  to: l.hasRouter && r[i.itemRouteKey],
@@ -1497,14 +1541,14 @@ function kt(e, t, i, o, n, l) {
1497
1541
  item: r,
1498
1542
  index: d + 1,
1499
1543
  isLast: d === i.items.length - 1
1500
- }) : (s(), u("span", {
1544
+ }) : (o(), u("span", {
1501
1545
  key: `${d}f`,
1502
1546
  innerHTML: r[i.itemLabelKey]
1503
- }, null, 8, wt))
1547
+ }, null, 8, Tt))
1504
1548
  ], 64))), 256))
1505
1549
  ], 2);
1506
1550
  }
1507
- const vt = {
1551
+ const Rt = {
1508
1552
  name: "w-breadcrumbs",
1509
1553
  props: {
1510
1554
  items: { type: Array, required: !0 },
@@ -1535,11 +1579,11 @@ const vt = {
1535
1579
  };
1536
1580
  }
1537
1581
  }
1538
- }, Ct = /* @__PURE__ */ v(vt, [["render", kt]]), St = {
1582
+ }, xt = /* @__PURE__ */ v(Rt, [["render", Lt]]), Pt = {
1539
1583
  key: 0,
1540
1584
  class: "w-button__loader"
1541
- }, Bt = /* @__PURE__ */ y("svg", { viewBox: "0 0 40 40" }, [
1542
- /* @__PURE__ */ y("circle", {
1585
+ }, Ot = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
1586
+ /* @__PURE__ */ w("circle", {
1543
1587
  cx: "20",
1544
1588
  cy: "20",
1545
1589
  r: "18",
@@ -1549,26 +1593,26 @@ const vt = {
1549
1593
  "stroke-linecap": "round"
1550
1594
  })
1551
1595
  ], -1);
1552
- function _t(e, t, i, o, n, l) {
1596
+ function Mt(e, t, i, s, n, l) {
1553
1597
  const a = $("w-icon");
1554
- return s(), g(T(i.route ? "a" : "button"), B({
1598
+ return o(), g(L(!i.disabled && i.route ? "a" : "button"), _({
1555
1599
  class: ["w-button", l.classes],
1556
1600
  type: !i.route && i.type,
1557
- href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1601
+ href: !i.disabled && i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1558
1602
  disabled: !!i.disabled || null
1559
1603
  }, l.attrs, { style: l.styles }), {
1560
1604
  default: m(() => [
1561
- i.icon ? (s(), g(a, te(B({ key: 0 }, i.iconProps || {})), {
1605
+ i.icon ? (o(), g(a, le(_({ key: 0 }, i.iconProps || {})), {
1562
1606
  default: m(() => [
1563
1607
  S(C(i.icon), 1)
1564
1608
  ]),
1565
1609
  _: 1
1566
1610
  }, 16)) : c(e.$slots, "default", { key: 1 }),
1567
- I(O, { name: "scale-fade" }, {
1611
+ T(P, { name: "scale-fade" }, {
1568
1612
  default: m(() => [
1569
- i.loading ? (s(), u("div", St, [
1613
+ i.loading ? (o(), u("div", Pt, [
1570
1614
  c(e.$slots, "loading", {}, () => [
1571
- Bt
1615
+ Ot
1572
1616
  ])
1573
1617
  ])) : p("", !0)
1574
1618
  ]),
@@ -1578,7 +1622,7 @@ function _t(e, t, i, o, n, l) {
1578
1622
  _: 3
1579
1623
  }, 16, ["type", "href", "class", "disabled", "style"]);
1580
1624
  }
1581
- const $t = {
1625
+ const zt = {
1582
1626
  // Fully handle the attrs and listeners manually for the case of a router link that has both a
1583
1627
  // route and onClick.
1584
1628
  inheritAttrs: !1,
@@ -1629,13 +1673,13 @@ const $t = {
1629
1673
  return this.hasRouter ? this.$router.resolve(this.route).href : this.route;
1630
1674
  },
1631
1675
  attrs() {
1632
- 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 {
1633
1680
  ...this.$attrs,
1634
- onClick: (t) => {
1635
- this.$attrs.onClick && this.$attrs.onClick(t), this.$router.push(this.route), t.stopPropagation(), t.preventDefault();
1636
- }
1681
+ onClick: !this.disabled && (e ? t : this.$attrs.onClick)
1637
1682
  };
1638
- return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? e : this.$attrs;
1639
1683
  },
1640
1684
  size() {
1641
1685
  return this.xs && "xs" || this.sm && "sm" || this.lg && "lg" || this.xl && "xl" || "md";
@@ -1679,12 +1723,12 @@ const $t = {
1679
1723
  };
1680
1724
  }
1681
1725
  }
1682
- }, Vt = /* @__PURE__ */ v($t, [["render", _t]]), It = ["innerHTML"];
1683
- function Tt(e, t, i, o, n, l) {
1726
+ }, Et = /* @__PURE__ */ v(zt, [["render", Mt]]), At = ["innerHTML"];
1727
+ function Wt(e, t, i, s, n, l) {
1684
1728
  const a = $("button-partial");
1685
- 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)), {
1686
1730
  activator: m(({ on: r }) => [
1687
- I(a, B(l.buttonProps, oe(r)), {
1731
+ T(a, _(l.buttonProps, ne(r)), {
1688
1732
  default: m(() => [
1689
1733
  c(e.$slots, "default")
1690
1734
  ]),
@@ -1692,10 +1736,10 @@ function Tt(e, t, i, o, n, l) {
1692
1736
  }, 1040)
1693
1737
  ]),
1694
1738
  default: m(() => [
1695
- y("div", { innerHTML: i.tooltip }, null, 8, It)
1739
+ w("div", { innerHTML: i.tooltip }, null, 8, At)
1696
1740
  ]),
1697
1741
  _: 3
1698
- }, 16)) : (s(), g(a, te(B({ key: 1 }, l.buttonProps)), {
1742
+ }, 16)) : (o(), g(a, le(_({ key: 1 }, l.buttonProps)), {
1699
1743
  loading: m(() => [
1700
1744
  c(e.$slots, "loading")
1701
1745
  ]),
@@ -1705,7 +1749,7 @@ function Tt(e, t, i, o, n, l) {
1705
1749
  _: 3
1706
1750
  }, 16));
1707
1751
  }
1708
- const Lt = {
1752
+ const Kt = {
1709
1753
  name: "w-button",
1710
1754
  inheritAttrs: !1,
1711
1755
  // The attrs are only bound to the button-partial, not the root.
@@ -1748,7 +1792,7 @@ const Lt = {
1748
1792
  lg: { type: Boolean },
1749
1793
  xl: { type: Boolean }
1750
1794
  },
1751
- components: { ButtonPartial: Vt },
1795
+ components: { ButtonPartial: Et },
1752
1796
  emits: [],
1753
1797
  computed: {
1754
1798
  buttonProps() {
@@ -1756,23 +1800,23 @@ const Lt = {
1756
1800
  return { ...i, ...this.$attrs };
1757
1801
  }
1758
1802
  }
1759
- }, Rt = /* @__PURE__ */ v(Lt, [["render", Tt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Pt = ["innerHTML"];
1760
- function Ot(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) {
1761
1805
  const a = $("w-image");
1762
- return s(), u("div", {
1806
+ return o(), u("div", {
1763
1807
  class: f(["w-card", l.classes])
1764
1808
  }, [
1765
- e.$slots.title ? (s(), u("div", {
1809
+ e.$slots.title ? (o(), u("div", {
1766
1810
  key: 0,
1767
1811
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
1768
1812
  }, [
1769
1813
  c(e.$slots, "title")
1770
- ], 2)) : i.title ? (s(), u("div", {
1814
+ ], 2)) : i.title ? (o(), u("div", {
1771
1815
  key: 1,
1772
1816
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1773
1817
  innerHTML: i.title
1774
- }, null, 10, Pt)) : p("", !0),
1775
- i.image ? (s(), g(a, B({
1818
+ }, null, 10, Dt)) : p("", !0),
1819
+ i.image ? (o(), g(a, _({
1776
1820
  key: 2,
1777
1821
  class: "w-card__image",
1778
1822
  src: i.image
@@ -1782,12 +1826,12 @@ function Ot(e, t, i, o, n, l) {
1782
1826
  ]),
1783
1827
  _: 3
1784
1828
  }, 16, ["src"])) : p("", !0),
1785
- y("div", {
1829
+ w("div", {
1786
1830
  class: f(["w-card__content", l.contentClasses])
1787
1831
  }, [
1788
1832
  c(e.$slots, "default")
1789
1833
  ], 2),
1790
- e.$slots.actions ? (s(), u("div", {
1834
+ e.$slots.actions ? (o(), u("div", {
1791
1835
  key: 3,
1792
1836
  class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
1793
1837
  }, [
@@ -1795,7 +1839,7 @@ function Ot(e, t, i, o, n, l) {
1795
1839
  ], 2)) : p("", !0)
1796
1840
  ], 2);
1797
1841
  }
1798
- const xt = {
1842
+ const Ft = {
1799
1843
  name: "w-card",
1800
1844
  props: {
1801
1845
  color: { type: String },
@@ -1846,7 +1890,7 @@ const xt = {
1846
1890
  };
1847
1891
  }
1848
1892
  }
1849
- }, zt = /* @__PURE__ */ v(xt, [["render", Ot]]), M = {
1893
+ }, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]), z = {
1850
1894
  inject: {
1851
1895
  // Used in each form component to determine whether to use the w-form-element wrap or not.
1852
1896
  // So, if a form component is in a form, use the w-form-element wrap.
@@ -1893,13 +1937,13 @@ const xt = {
1893
1937
  this.$refs.formEl.validate(this);
1894
1938
  }
1895
1939
  }
1896
- }, Mt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Et = ["for"], At = ["for", "innerHTML"], Wt = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
1897
- /* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
1898
- ], -1), Kt = [
1899
- Wt
1900
- ], Nt = ["for"], Dt = ["for", "innerHTML"];
1901
- function Ht(e, t, i, o, n, l) {
1902
- 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 }, {
1903
1947
  valid: e.valid,
1904
1948
  "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1905
1949
  onReset: t[6] || (t[6] = (a) => {
@@ -1908,7 +1952,7 @@ function Ht(e, t, i, o, n, l) {
1908
1952
  class: l.classes
1909
1953
  }), {
1910
1954
  default: m(() => [
1911
- y("input", {
1955
+ w("input", {
1912
1956
  ref: "input",
1913
1957
  id: `w-checkbox--${e._.uid}`,
1914
1958
  type: "checkbox",
@@ -1923,9 +1967,9 @@ function Ht(e, t, i, o, n, l) {
1923
1967
  onKeypress: t[3] || (t[3] = E((...a) => l.onInput && l.onInput(...a), ["enter"])),
1924
1968
  "aria-checked": n.isChecked || "false",
1925
1969
  role: "checkbox"
1926
- }, null, 40, Mt),
1927
- l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
1928
- 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", {
1929
1973
  key: 0,
1930
1974
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1931
1975
  for: `w-checkbox--${e._.uid}`
@@ -1933,21 +1977,21 @@ function Ht(e, t, i, o, n, l) {
1933
1977
  c(e.$slots, "default", {}, () => [
1934
1978
  S(C(i.label), 1)
1935
1979
  ])
1936
- ], 10, Et)) : i.label ? (s(), u("label", {
1980
+ ], 10, qt)) : i.label ? (o(), u("label", {
1937
1981
  key: 1,
1938
1982
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1939
1983
  for: `w-checkbox--${e._.uid}`,
1940
1984
  innerHTML: i.label
1941
- }, null, 10, At)) : p("", !0)
1985
+ }, null, 10, Xt)) : p("", !0)
1942
1986
  ], 64)) : p("", !0),
1943
- y("div", {
1987
+ w("div", {
1944
1988
  class: f(["w-checkbox__input", this.color]),
1945
1989
  onClick: t[4] || (t[4] = (a) => {
1946
1990
  e.$refs.input.focus(), e.$refs.input.click();
1947
1991
  })
1948
- }, Kt, 2),
1949
- l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
1950
- 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", {
1951
1995
  key: 0,
1952
1996
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1953
1997
  for: `w-checkbox--${e._.uid}`
@@ -1955,20 +1999,20 @@ function Ht(e, t, i, o, n, l) {
1955
1999
  c(e.$slots, "default", {}, () => [
1956
2000
  S(C(i.label), 1)
1957
2001
  ])
1958
- ], 10, Nt)) : i.label ? (s(), u("label", {
2002
+ ], 10, Jt)) : i.label ? (o(), u("label", {
1959
2003
  key: 1,
1960
2004
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1961
2005
  for: `w-checkbox--${e._.uid}`,
1962
2006
  innerHTML: i.label
1963
- }, null, 10, Dt)) : p("", !0)
2007
+ }, null, 10, Qt)) : p("", !0)
1964
2008
  ], 64)) : p("", !0)
1965
2009
  ]),
1966
2010
  _: 3
1967
2011
  }, 16, ["valid", "class"]);
1968
2012
  }
1969
- const Ft = {
2013
+ const ei = {
1970
2014
  name: "w-checkbox",
1971
- mixins: [M],
2015
+ mixins: [z],
1972
2016
  inject: {
1973
2017
  wCheckboxes: { default: null }
1974
2018
  },
@@ -2033,10 +2077,10 @@ const Ft = {
2033
2077
  this.isChecked = e;
2034
2078
  }
2035
2079
  }
2036
- }, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]), Ut = ["innerHTML"];
2037
- function qt(e, t, i, o, n, l) {
2080
+ }, ti = /* @__PURE__ */ v(ei, [["render", Zt]]), ii = ["innerHTML"];
2081
+ function li(e, t, i, s, n, l) {
2038
2082
  const a = $("w-checkbox");
2039
- 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 }, {
2040
2084
  valid: e.valid,
2041
2085
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
2042
2086
  onReset: l.reset,
@@ -2045,7 +2089,7 @@ function qt(e, t, i, o, n, l) {
2045
2089
  class: l.classes
2046
2090
  }), {
2047
2091
  default: m(() => [
2048
- (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, _({
2049
2093
  key: d,
2050
2094
  "model-value": r._isChecked,
2051
2095
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -2064,10 +2108,10 @@ function qt(e, t, i, o, n, l) {
2064
2108
  checked: !!r._isChecked,
2065
2109
  index: d + 1,
2066
2110
  innerHTML: r.label
2067
- }) : r.label ? (s(), u("div", {
2111
+ }) : r.label ? (o(), u("div", {
2068
2112
  key: 1,
2069
2113
  innerHTML: r.label
2070
- }, null, 8, Ut)) : p("", !0)
2114
+ }, null, 8, ii)) : p("", !0)
2071
2115
  ]),
2072
2116
  _: 2
2073
2117
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -2075,9 +2119,9 @@ function qt(e, t, i, o, n, l) {
2075
2119
  _: 3
2076
2120
  }, 16, ["valid", "onReset", "column", "wrap", "class"]);
2077
2121
  }
2078
- const Xt = {
2122
+ const si = {
2079
2123
  name: "w-checkboxes",
2080
- mixins: [M],
2124
+ mixins: [z],
2081
2125
  props: {
2082
2126
  items: { type: Array, required: !0 },
2083
2127
  // All the possible options.
@@ -2106,7 +2150,7 @@ const Xt = {
2106
2150
  checkboxItems() {
2107
2151
  return (this.items || []).map((e, t) => {
2108
2152
  const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
2109
- return G({
2153
+ return Z({
2110
2154
  ...e,
2111
2155
  label: e[this.itemLabelKey],
2112
2156
  _index: t,
@@ -2130,7 +2174,7 @@ const Xt = {
2130
2174
  },
2131
2175
  toggleCheck(e, t) {
2132
2176
  e._isChecked = t;
2133
- 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);
2134
2178
  this.$emit("update:modelValue", i), this.$emit("input", i);
2135
2179
  },
2136
2180
  // Return the original item (so there is no `_index`, etc.).
@@ -2138,15 +2182,15 @@ const Xt = {
2138
2182
  return this.items[e._index];
2139
2183
  }
2140
2184
  }
2141
- }, Yt = /* @__PURE__ */ v(Xt, [["render", qt]]);
2142
- function Gt(e, t, i, o, n, l) {
2143
- const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = be("focus");
2144
- 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, _({
2145
2189
  modelValue: e.showPopup,
2146
- "onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
2190
+ "onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
2147
2191
  }, l.wMenuProps), {
2148
- activator: m(({ on: w }) => [
2149
- 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 })), {
2150
2194
  default: m(() => [
2151
2195
  c(e.$slots, "default")
2152
2196
  ]),
@@ -2154,25 +2198,25 @@ function Gt(e, t, i, o, n, l) {
2154
2198
  }, 1040)
2155
2199
  ]),
2156
2200
  default: m(() => [
2157
- I(r, {
2201
+ T(r, {
2158
2202
  column: !i.inline,
2159
2203
  "align-center": ""
2160
2204
  }, {
2161
2205
  default: m(() => [
2162
- y("div", null, [
2206
+ w("div", null, [
2163
2207
  c(e.$slots, "question", {}, () => [
2164
2208
  S(C(i.question), 1)
2165
2209
  ])
2166
2210
  ]),
2167
- y("div", {
2211
+ w("div", {
2168
2212
  class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2169
2213
  }, [
2170
- i.cancel !== !1 ? (s(), g(a, B({
2214
+ i.cancel !== !1 ? (o(), g(a, _({
2171
2215
  key: 0,
2172
2216
  class: "mr2"
2173
2217
  }, l.cancelButtonProps, {
2174
2218
  "bg-color": (l.cancelButton || {}).bgColor || "error",
2175
- 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"])),
2176
2220
  onClick: l.onCancel
2177
2221
  }), {
2178
2222
  default: m(() => [
@@ -2182,9 +2226,9 @@ function Gt(e, t, i, o, n, l) {
2182
2226
  ]),
2183
2227
  _: 3
2184
2228
  }, 16, ["bg-color", "onClick"])) : p("", !0),
2185
- W((s(), g(a, B(l.confirmButtonProps, {
2229
+ W((o(), g(a, _(l.confirmButtonProps, {
2186
2230
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2187
- 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"])),
2188
2232
  onClick: l.onConfirm
2189
2233
  }), {
2190
2234
  default: m(() => [
@@ -2204,7 +2248,7 @@ function Gt(e, t, i, o, n, l) {
2204
2248
  _: 3
2205
2249
  }, 16, ["modelValue"]);
2206
2250
  }
2207
- const Jt = {
2251
+ const ni = {
2208
2252
  name: "w-confirm",
2209
2253
  inheritAttrs: !1,
2210
2254
  // The attrs are only bound to the button, not the w-menu.
@@ -2317,16 +2361,16 @@ const Jt = {
2317
2361
  this.$emit("confirm"), this.showPopup = !1;
2318
2362
  }
2319
2363
  }
2320
- }, Qt = /* @__PURE__ */ v(Jt, [["render", Gt]]);
2321
- function Zt(e, t, i, o, n, l) {
2322
- 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", {
2323
2367
  class: f(["w-date-picker", l.classes]),
2324
- style: L(l.styles)
2368
+ style: R(l.styles)
2325
2369
  }, [
2326
2370
  c(e.$slots, "default")
2327
2371
  ], 6);
2328
2372
  }
2329
- const ei = {
2373
+ const ui = {
2330
2374
  name: "w-date-picker",
2331
2375
  props: {
2332
2376
  dark: { type: Boolean },
@@ -2344,10 +2388,10 @@ const ei = {
2344
2388
  return !1;
2345
2389
  }
2346
2390
  }
2347
- }, ti = /* @__PURE__ */ v(ei, [["render", Zt]]);
2348
- function ii(e, t, i, o, n, l) {
2391
+ }, hi = /* @__PURE__ */ v(ui, [["render", di]]);
2392
+ function ci(e, t, i, s, n, l) {
2349
2393
  const a = $("w-card"), r = $("w-overlay");
2350
- return s(), g(r, {
2394
+ return o(), g(r, {
2351
2395
  class: f(["w-dialog", l.classes]),
2352
2396
  "model-value": n.showWrapper,
2353
2397
  persistent: i.persistent,
@@ -2358,13 +2402,13 @@ function ii(e, t, i, o, n, l) {
2358
2402
  opacity: i.overlayOpacity
2359
2403
  }, {
2360
2404
  default: m(() => [
2361
- I(O, {
2405
+ T(P, {
2362
2406
  name: i.transition,
2363
2407
  appear: "",
2364
2408
  onAfterLeave: l.onBeforeClose
2365
2409
  }, {
2366
2410
  default: m(() => [
2367
- W(I(a, {
2411
+ W(T(a, {
2368
2412
  class: f(["w-dialog__content", i.dialogClass]),
2369
2413
  ref: "dialog",
2370
2414
  "no-border": "",
@@ -2373,8 +2417,8 @@ function ii(e, t, i, o, n, l) {
2373
2417
  "title-class": i.titleClass,
2374
2418
  "content-class": i.contentClass,
2375
2419
  title: i.title || void 0,
2376
- style: L(l.contentStyles)
2377
- }, J({
2420
+ style: R(l.contentStyles)
2421
+ }, ee({
2378
2422
  default: m(() => [
2379
2423
  c(e.$slots, "default")
2380
2424
  ]),
@@ -2395,7 +2439,7 @@ function ii(e, t, i, o, n, l) {
2395
2439
  key: "1"
2396
2440
  } : void 0
2397
2441
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2398
- [ae, n.showContent]
2442
+ [re, n.showContent]
2399
2443
  ])
2400
2444
  ]),
2401
2445
  _: 3
@@ -2404,7 +2448,7 @@ function ii(e, t, i, o, n, l) {
2404
2448
  _: 3
2405
2449
  }, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
2406
2450
  }
2407
- const li = {
2451
+ const pi = {
2408
2452
  name: "w-dialog",
2409
2453
  props: {
2410
2454
  modelValue: { default: !0 },
@@ -2474,17 +2518,17 @@ const li = {
2474
2518
  this.showWrapper = e, this.showContent = e;
2475
2519
  }
2476
2520
  }
2477
- }, si = /* @__PURE__ */ v(li, [["render", ii]]), oi = ["role", "aria-orientation"];
2478
- function ai(e, t, i, o, n, l) {
2479
- 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", {
2480
2524
  class: f(["w-divider", l.classes]),
2481
2525
  role: e.$slots.default ? null : "presentation",
2482
2526
  "aria-orientation": i.vertical ? "vertical" : "horizontal"
2483
2527
  }, [
2484
2528
  c(e.$slots, "default")
2485
- ], 10, oi);
2529
+ ], 10, mi);
2486
2530
  }
2487
- const ni = {
2531
+ const bi = {
2488
2532
  name: "w-divider",
2489
2533
  props: {
2490
2534
  vertical: { type: Boolean },
@@ -2504,20 +2548,20 @@ const ni = {
2504
2548
  };
2505
2549
  }
2506
2550
  }
2507
- }, ri = /* @__PURE__ */ v(ni, [["render", ai]]), di = { class: "w-drawer-wrap__pushable" };
2508
- function ui(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) {
2509
2553
  const a = $("w-overlay");
2510
- return n.showWrapper || i.pushContent ? (s(), u("div", {
2554
+ return n.showWrapper || i.pushContent ? (o(), u("div", {
2511
2555
  key: 0,
2512
2556
  class: f(["w-drawer-wrap", l.wrapperClasses])
2513
2557
  }, [
2514
- i.pushContent ? (s(), u("div", {
2558
+ i.pushContent ? (o(), u("div", {
2515
2559
  key: 0,
2516
2560
  class: "w-drawer-wrap__track",
2517
- style: L(l.trackStyles)
2561
+ style: R(l.trackStyles)
2518
2562
  }, [
2519
- y("div", di, [
2520
- i.noOverlay ? p("", !0) : (s(), g(a, {
2563
+ w("div", wi, [
2564
+ i.noOverlay ? p("", !0) : (o(), g(a, {
2521
2565
  key: 0,
2522
2566
  modelValue: n.showDrawer,
2523
2567
  "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
@@ -2529,17 +2573,17 @@ function ui(e, t, i, o, n, l) {
2529
2573
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2530
2574
  c(e.$slots, "pushable")
2531
2575
  ]),
2532
- I(O, {
2576
+ T(P, {
2533
2577
  name: "fade",
2534
2578
  onBeforeLeave: l.onBeforeClose,
2535
2579
  onAfterLeave: l.onClose
2536
2580
  }, {
2537
2581
  default: m(() => [
2538
- n.showDrawer ? (s(), g(T(i.tag || "aside"), {
2582
+ n.showDrawer ? (o(), g(L(i.tag || "aside"), {
2539
2583
  key: 0,
2540
2584
  class: f(["w-drawer", l.drawerClasses]),
2541
2585
  ref: "drawer",
2542
- style: L(l.styles)
2586
+ style: R(l.styles)
2543
2587
  }, {
2544
2588
  default: m(() => [
2545
2589
  c(e.$slots, "default")
@@ -2549,8 +2593,8 @@ function ui(e, t, i, o, n, l) {
2549
2593
  ]),
2550
2594
  _: 3
2551
2595
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2552
- ], 4)) : (s(), u(k, { key: 1 }, [
2553
- i.noOverlay ? p("", !0) : (s(), g(a, {
2596
+ ], 4)) : (o(), u(k, { key: 1 }, [
2597
+ i.noOverlay ? p("", !0) : (o(), g(a, {
2554
2598
  key: 0,
2555
2599
  modelValue: n.showDrawer,
2556
2600
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
@@ -2560,18 +2604,18 @@ function ui(e, t, i, o, n, l) {
2560
2604
  "bg-color": i.overlayColor,
2561
2605
  opacity: i.overlayOpacity
2562
2606
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2563
- I(O, {
2607
+ T(P, {
2564
2608
  name: l.transitionName,
2565
2609
  appear: "",
2566
2610
  onBeforeLeave: l.onBeforeClose,
2567
2611
  onAfterLeave: l.onClose
2568
2612
  }, {
2569
2613
  default: m(() => [
2570
- n.showDrawer ? (s(), g(T(i.tag || "aside"), {
2614
+ n.showDrawer ? (o(), g(L(i.tag || "aside"), {
2571
2615
  key: 0,
2572
2616
  class: f(["w-drawer", l.drawerClasses]),
2573
2617
  ref: "drawer",
2574
- style: L(l.styles)
2618
+ style: R(l.styles)
2575
2619
  }, {
2576
2620
  default: m(() => [
2577
2621
  c(e.$slots, "default")
@@ -2584,7 +2628,7 @@ function ui(e, t, i, o, n, l) {
2584
2628
  ], 64))
2585
2629
  ], 2)) : p("", !0);
2586
2630
  }
2587
- const hi = { left: "right", right: "left", top: "down", bottom: "up" }, ci = {
2631
+ const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
2588
2632
  name: "w-drawer",
2589
2633
  props: {
2590
2634
  modelValue: { default: !0 },
@@ -2678,7 +2722,7 @@ const hi = { left: "right", right: "left", top: "down", bottom: "up" }, ci = {
2678
2722
  return !this.showWrapper;
2679
2723
  },
2680
2724
  transitionName() {
2681
- return `slide-${hi[this.position]}`;
2725
+ return `slide-${vi[this.position]}`;
2682
2726
  }
2683
2727
  },
2684
2728
  methods: {
@@ -2697,9 +2741,9 @@ const hi = { left: "right", right: "left", top: "down", bottom: "up" }, ci = {
2697
2741
  e && (this.showWrapper = !0), this.showDrawer = e;
2698
2742
  }
2699
2743
  }
2700
- }, pi = /* @__PURE__ */ v(ci, [["render", ui]]);
2701
- function fi(e, t, i, o, n, l) {
2702
- 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), {
2703
2747
  class: f(["w-flex", l.classes])
2704
2748
  }, {
2705
2749
  default: m(() => [
@@ -2708,7 +2752,7 @@ function fi(e, t, i, o, n, l) {
2708
2752
  _: 3
2709
2753
  }, 8, ["class"]);
2710
2754
  }
2711
- const mi = {
2755
+ const _i = {
2712
2756
  name: "w-flex",
2713
2757
  props: {
2714
2758
  tag: { type: String, default: "div" },
@@ -2755,9 +2799,9 @@ const mi = {
2755
2799
  };
2756
2800
  }
2757
2801
  }
2758
- }, gi = /* @__PURE__ */ v(mi, [["render", fi]]);
2759
- function bi(e, t, i, o, n, l) {
2760
- 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", {
2761
2805
  class: f(["w-form", l.classes]),
2762
2806
  onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2763
2807
  onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
@@ -2766,11 +2810,11 @@ function bi(e, t, i, o, n, l) {
2766
2810
  c(e.$slots, "default")
2767
2811
  ], 34);
2768
2812
  }
2769
- const yi = async (e, t) => {
2813
+ const Ii = async (e, t) => {
2770
2814
  for (const i of e)
2771
2815
  if (await t(i)) return !0;
2772
2816
  return !1;
2773
- }, wi = {
2817
+ }, Ti = {
2774
2818
  name: "w-form",
2775
2819
  props: {
2776
2820
  modelValue: {},
@@ -2839,8 +2883,8 @@ const yi = async (e, t) => {
2839
2883
  let t = 0;
2840
2884
  return await (async () => {
2841
2885
  var i;
2842
- for (const o of this.formElements)
2843
- !((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));
2844
2888
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2845
2889
  },
2846
2890
  async validateElement(e) {
@@ -2850,8 +2894,8 @@ const yi = async (e, t) => {
2850
2894
  // message in the form element.
2851
2895
  async checkElementValidators(e) {
2852
2896
  let t = !1, i = "";
2853
- await yi(e.validators, async (o) => {
2854
- 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));
2855
2899
  return t = typeof n != "string", i = t ? "" : n, !t;
2856
2900
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
2857
2901
  },
@@ -2862,7 +2906,7 @@ const yi = async (e, t) => {
2862
2906
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2863
2907
  },
2864
2908
  updateErrorsCount(e = null, t = !1) {
2865
- 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);
2866
2910
  },
2867
2911
  onSubmit(e) {
2868
2912
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2876,20 +2920,20 @@ const yi = async (e, t) => {
2876
2920
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
2877
2921
  }
2878
2922
  }
2879
- }, ki = /* @__PURE__ */ v(wi, [["render", bi]]);
2880
- function vi(e, t, i, o, n, l) {
2923
+ }, Li = /* @__PURE__ */ v(Ti, [["render", Vi]]);
2924
+ function Ri(e, t, i, s, n, l) {
2881
2925
  const a = $("w-transition-expand");
2882
- return s(), u("div", {
2926
+ return o(), u("div", {
2883
2927
  class: f(l.classes)
2884
2928
  }, [
2885
- y("div", {
2929
+ w("div", {
2886
2930
  class: f(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
2887
2931
  }, [
2888
2932
  c(e.$slots, "default")
2889
2933
  ], 2),
2890
- I(a, { y: "" }, {
2934
+ T(a, { y: "" }, {
2891
2935
  default: m(() => [
2892
- e.Validation.message ? (s(), u("div", {
2936
+ e.Validation.message ? (o(), u("div", {
2893
2937
  key: 0,
2894
2938
  class: f(["w-form-el__error", l.formProps.validationColor])
2895
2939
  }, [
@@ -2904,7 +2948,7 @@ function vi(e, t, i, o, n, l) {
2904
2948
  })
2905
2949
  ], 2);
2906
2950
  }
2907
- const Ci = {
2951
+ const xi = {
2908
2952
  name: "w-form-element",
2909
2953
  props: {
2910
2954
  valid: { required: !0 },
@@ -2977,9 +3021,9 @@ const Ci = {
2977
3021
  beforeUnmount() {
2978
3022
  this.formUnregister && this.formUnregister(this);
2979
3023
  }
2980
- }, Si = /* @__PURE__ */ v(Ci, [["render", vi]]);
2981
- function Bi(e, t, i, o, n, l) {
2982
- 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), {
2983
3027
  class: f(["w-grid", l.classes])
2984
3028
  }, {
2985
3029
  default: m(() => [
@@ -2988,7 +3032,7 @@ function Bi(e, t, i, o, n, l) {
2988
3032
  _: 3
2989
3033
  }, 8, ["class"]);
2990
3034
  }
2991
- const _i = {
3035
+ const Mi = {
2992
3036
  name: "w-grid",
2993
3037
  props: {
2994
3038
  tag: { type: String, default: "div" },
@@ -3024,31 +3068,31 @@ const _i = {
3024
3068
  },
3025
3069
  classes() {
3026
3070
  let e = null;
3027
- 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), {}));
3028
3072
  let t = null;
3029
- 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), {})), {
3030
3074
  ...e || { [`columns${this.columns}`]: this.columns },
3031
3075
  ...t || { [`gap${this.gap}`]: this.gap }
3032
3076
  };
3033
3077
  }
3034
3078
  }
3035
- }, $i = /* @__PURE__ */ v(_i, [["render", Bi]]);
3036
- function Vi(e, t, i, o, n, l) {
3037
- 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"), {
3038
3082
  class: f(["w-icon", l.classes]),
3039
3083
  role: "icon",
3040
3084
  "aria-hidden": "true",
3041
- style: L(l.readIcon() && l.styles)
3085
+ style: R(l.readIcon() && l.styles)
3042
3086
  }, {
3043
3087
  default: m(() => [
3044
- l.hasLigature ? (s(), u(k, { key: 0 }, [
3088
+ l.hasLigature ? (o(), u(k, { key: 0 }, [
3045
3089
  S(C(e.icon), 1)
3046
3090
  ], 64)) : p("", !0)
3047
3091
  ]),
3048
3092
  _: 1
3049
3093
  }, 8, ["class", "style"]);
3050
3094
  }
3051
- const Ii = {
3095
+ const Ai = {
3052
3096
  name: "w-icon",
3053
3097
  props: {
3054
3098
  tag: { type: String, default: "i" },
@@ -3117,39 +3161,39 @@ const Ii = {
3117
3161
  return this.fontName = t, this.icon = i, !0;
3118
3162
  }
3119
3163
  }
3120
- }, Ti = /* @__PURE__ */ v(Ii, [["render", Vi]]), Li = {
3164
+ }, Wi = /* @__PURE__ */ v(Ai, [["render", Ei]]), Ki = {
3121
3165
  key: 0,
3122
3166
  class: "w-image__loader"
3123
3167
  };
3124
- function Ri(e, t, i, o, n, l) {
3168
+ function Ni(e, t, i, s, n, l) {
3125
3169
  const a = $("w-progress");
3126
- return s(), g(T(l.wrapperTag), {
3170
+ return o(), g(L(l.wrapperTag), {
3127
3171
  class: f(["w-image-wrap", l.wrapperClasses]),
3128
- style: L(l.wrapperStyles)
3172
+ style: R(l.wrapperStyles)
3129
3173
  }, {
3130
3174
  default: m(() => [
3131
- I(O, {
3175
+ T(P, {
3132
3176
  name: i.transition,
3133
3177
  appear: ""
3134
3178
  }, {
3135
3179
  default: m(() => [
3136
- n.loaded ? (s(), g(T(i.tag), {
3180
+ n.loaded ? (o(), g(L(i.tag), {
3137
3181
  key: 0,
3138
3182
  class: f(["w-image", l.imageClasses]),
3139
- style: L(l.imageStyles),
3183
+ style: R(l.imageStyles),
3140
3184
  src: i.tag === "img" ? n.imgSrc : null
3141
3185
  }, null, 8, ["class", "style", "src"])) : p("", !0)
3142
3186
  ]),
3143
3187
  _: 1
3144
3188
  }, 8, ["name"]),
3145
- !i.noSpinner && n.loading ? (s(), u("div", Li, [
3146
- 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, _({
3147
3191
  key: 1,
3148
3192
  circle: "",
3149
3193
  indeterminate: ""
3150
3194
  }, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
3151
3195
  ])) : p("", !0),
3152
- e.$slots.default ? (s(), g(T(l.wrapperTag), {
3196
+ e.$slots.default ? (o(), g(L(l.wrapperTag), {
3153
3197
  key: 1,
3154
3198
  class: f(["w-image__content", i.contentClass])
3155
3199
  }, {
@@ -3162,7 +3206,7 @@ function Ri(e, t, i, o, n, l) {
3162
3206
  _: 3
3163
3207
  }, 8, ["class", "style"]);
3164
3208
  }
3165
- const Pi = {
3209
+ const Di = {
3166
3210
  name: "w-image",
3167
3211
  props: {
3168
3212
  tag: { type: String, default: "span" },
@@ -3230,14 +3274,14 @@ const Pi = {
3230
3274
  if (!this.loading)
3231
3275
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
3232
3276
  const i = new Image();
3233
- 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) => {
3234
- 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);
3235
3279
  }, i.src = e ? this.fallback : this.src;
3236
3280
  });
3237
3281
  }
3238
3282
  },
3239
3283
  mounted() {
3240
- if (!this.src) return F("The w-image component was used without src.");
3284
+ if (!this.src) return j("The w-image component was used without src.");
3241
3285
  if (this.lazy) {
3242
3286
  const e = new IntersectionObserver((t) => {
3243
3287
  t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
@@ -3256,13 +3300,13 @@ const Pi = {
3256
3300
  this.imgHeight = e;
3257
3301
  }
3258
3302
  }
3259
- }, Oi = /* @__PURE__ */ v(Pi, [["render", Ri]]), xi = ["name"], zi = ["for"], Mi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Ei = ["id", "name", "multiple", "disabled", "data-progress"], Ai = {
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 = {
3260
3304
  class: "w-input__no-file",
3261
3305
  key: "no-file"
3262
- }, Wi = ["for"], Ki = ["src"], Ni = ["for"];
3263
- function Di(e, t, i, o, n, l) {
3306
+ }, Yi = ["for"], Gi = ["src"], Ji = ["for"];
3307
+ function Qi(e, t, i, s, n, l) {
3264
3308
  const a = $("w-icon"), r = $("w-progress");
3265
- 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 }, {
3266
3310
  valid: e.valid,
3267
3311
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3268
3312
  onReset: t[11] || (t[11] = (d) => {
@@ -3273,16 +3317,16 @@ function Di(e, t, i, o, n, l) {
3273
3317
  style: e.$attrs.style
3274
3318
  }), {
3275
3319
  default: m(() => [
3276
- i.type === "hidden" ? W((s(), u("input", {
3320
+ i.type === "hidden" ? W((o(), u("input", {
3277
3321
  key: 0,
3278
3322
  type: "hidden",
3279
3323
  name: e.name || null,
3280
3324
  "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3281
- }, null, 8, xi)), [
3282
- [ye, n.inputValue]
3283
- ]) : (s(), u(k, { key: 1 }, [
3284
- i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
3285
- 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", {
3286
3330
  key: 0,
3287
3331
  class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
3288
3332
  for: `w-input--${e._.uid}`
@@ -3290,15 +3334,15 @@ function Di(e, t, i, o, n, l) {
3290
3334
  c(e.$slots, "default", {}, () => [
3291
3335
  S(C(i.label), 1)
3292
3336
  ])
3293
- ], 10, zi)) : p("", !0)
3337
+ ], 10, ji)) : p("", !0)
3294
3338
  ], 64)) : p("", !0),
3295
- y("div", {
3339
+ w("div", {
3296
3340
  class: f(["w-input__input-wrap", l.inputWrapClasses])
3297
3341
  }, [
3298
3342
  c(e.$slots, "icon-left", {
3299
3343
  inputId: `w-input--${e._.uid}`
3300
3344
  }, () => [
3301
- i.innerIconLeft ? (s(), g(a, {
3345
+ i.innerIconLeft ? (o(), g(a, {
3302
3346
  key: 0,
3303
3347
  class: "w-input__icon w-input__icon--inner-left",
3304
3348
  tag: "label",
@@ -3311,7 +3355,7 @@ function Di(e, t, i, o, n, l) {
3311
3355
  _: 1
3312
3356
  }, 8, ["for"])) : p("", !0)
3313
3357
  ]),
3314
- i.type !== "file" ? W((s(), u("input", B({
3358
+ i.type !== "file" ? W((o(), u("input", _({
3315
3359
  key: 0,
3316
3360
  class: "w-input__input",
3317
3361
  ref: "input",
@@ -3333,10 +3377,10 @@ function Di(e, t, i, o, n, l) {
3333
3377
  disabled: e.isDisabled || null,
3334
3378
  required: e.required || null,
3335
3379
  tabindex: e.tabindex || null
3336
- }, l.attrs), null, 16, Mi)), [
3337
- [Ve, n.inputValue]
3338
- ]) : (s(), u(k, { key: 1 }, [
3339
- y("input", B({
3380
+ }, l.attrs), null, 16, Ui)), [
3381
+ [Re, n.inputValue]
3382
+ ]) : (o(), u(k, { key: 1 }, [
3383
+ w("input", _({
3340
3384
  ref: "input",
3341
3385
  id: `w-input--${e._.uid}`,
3342
3386
  type: "file",
@@ -3349,26 +3393,26 @@ function Di(e, t, i, o, n, l) {
3349
3393
  disabled: e.isDisabled || null,
3350
3394
  "data-progress": l.overallFilesProgress
3351
3395
  /* Needed to emit the overallProgress. */
3352
- }), null, 16, Ei),
3353
- I(se, {
3396
+ }), null, 16, qi),
3397
+ T(ae, {
3354
3398
  class: "w-input__input w-input__input--file",
3355
3399
  tag: "label",
3356
3400
  name: "fade",
3357
3401
  for: `w-input--${e._.uid}`
3358
3402
  }, {
3359
3403
  default: m(() => [
3360
- !n.inputFiles.length && n.isFocused ? (s(), u("span", Ai, [
3404
+ !n.inputFiles.length && n.isFocused ? (o(), u("span", Xi, [
3361
3405
  c(e.$slots, "no-file", {}, () => [
3362
- e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
3406
+ e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
3363
3407
  S("No file")
3364
3408
  ], 64)) : p("", !0)
3365
3409
  ])
3366
3410
  ])) : p("", !0),
3367
- (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", {
3368
3412
  key: d.lastModified
3369
3413
  }, [
3370
3414
  S(C(h ? ", " : ""), 1),
3371
- (s(), u("span", {
3415
+ (o(), u("span", {
3372
3416
  class: "filename",
3373
3417
  key: `${h}b`
3374
3418
  }, C(d.base), 1)),
@@ -3378,8 +3422,8 @@ function Di(e, t, i, o, n, l) {
3378
3422
  _: 3
3379
3423
  }, 8, ["for"])
3380
3424
  ], 64)),
3381
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 2 }, [
3382
- 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", {
3383
3427
  key: 0,
3384
3428
  class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
3385
3429
  }, [
@@ -3391,7 +3435,7 @@ function Di(e, t, i, o, n, l) {
3391
3435
  c(e.$slots, "icon-right", {
3392
3436
  inputId: `w-input--${e._.uid}`
3393
3437
  }, () => [
3394
- i.innerIconRight ? (s(), g(a, {
3438
+ i.innerIconRight ? (o(), g(a, {
3395
3439
  key: 0,
3396
3440
  class: "w-input__icon w-input__icon--inner-right",
3397
3441
  tag: "label",
@@ -3404,7 +3448,7 @@ function Di(e, t, i, o, n, l) {
3404
3448
  _: 1
3405
3449
  }, 8, ["for"])) : p("", !0)
3406
3450
  ]),
3407
- l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (s(), g(r, {
3451
+ l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
3408
3452
  key: 3,
3409
3453
  class: "fill-width",
3410
3454
  size: "2",
@@ -3412,28 +3456,28 @@ function Di(e, t, i, o, n, l) {
3412
3456
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3413
3457
  }, null, 8, ["color", "model-value"])) : p("", !0)
3414
3458
  ], 2),
3415
- i.type === "file" && i.preview && n.inputFiles.length ? (s(), u("label", {
3459
+ i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
3416
3460
  key: 1,
3417
3461
  class: "d-flex",
3418
3462
  for: `w-input--${e._.uid}`
3419
3463
  }, [
3420
- (s(!0), u(k, null, R(n.inputFiles, (d, h) => (s(), u(k, null, [
3421
- 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", {
3422
3466
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3423
3467
  key: `${h}a`
3424
- })) : d.preview ? (s(), u("img", {
3468
+ })) : d.preview ? (o(), u("img", {
3425
3469
  class: "w-input__file-preview",
3426
3470
  key: `${h}b`,
3427
3471
  src: d.preview,
3428
3472
  alt: ""
3429
- }, null, 8, Ki)) : (s(), u("i", {
3473
+ }, null, 8, Gi)) : (o(), u("i", {
3430
3474
  class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
3431
3475
  key: `${h}c`
3432
3476
  }, null, 2))
3433
3477
  ], 64))), 256))
3434
- ], 8, Wi)) : p("", !0),
3435
- i.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
3436
- 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", {
3437
3481
  key: 0,
3438
3482
  class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
3439
3483
  for: `w-input--${e._.uid}`
@@ -3441,16 +3485,16 @@ function Di(e, t, i, o, n, l) {
3441
3485
  c(e.$slots, "default", {}, () => [
3442
3486
  S(C(i.label), 1)
3443
3487
  ])
3444
- ], 10, Ni)) : p("", !0)
3488
+ ], 10, Ji)) : p("", !0)
3445
3489
  ], 64)) : p("", !0)
3446
3490
  ], 64))
3447
3491
  ]),
3448
3492
  _: 3
3449
3493
  }, 16, ["valid", "wrap", "class", "style"]);
3450
3494
  }
3451
- const Hi = {
3495
+ const Zi = {
3452
3496
  name: "w-input",
3453
- mixins: [M],
3497
+ mixins: [z],
3454
3498
  inheritAttrs: !1,
3455
3499
  // The attrs should only be added to the input not the wrapper.
3456
3500
  props: {
@@ -3539,7 +3583,7 @@ const Hi = {
3539
3583
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3540
3584
  },
3541
3585
  overallFilesProgress() {
3542
- 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;
3543
3587
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : 0), t;
3544
3588
  },
3545
3589
  uploadInProgress() {
@@ -3597,9 +3641,9 @@ const Hi = {
3597
3641
  // For file input.
3598
3642
  onFileChange(e) {
3599
3643
  this.inputFiles = [...e.target.files].map((i) => {
3600
- const [, o = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = G({
3644
+ const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Z({
3601
3645
  name: i.name,
3602
- base: o || l,
3646
+ base: s || l,
3603
3647
  extension: n,
3604
3648
  type: i.type,
3605
3649
  size: i.size,
@@ -3615,8 +3659,8 @@ const Hi = {
3615
3659
  },
3616
3660
  // For file input.
3617
3661
  readFile(e, t) {
3618
- const i = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3619
- 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) => {
3620
3664
  t.preview = l.target.result;
3621
3665
  }) : delete t.preview, i.addEventListener("progress", (l) => {
3622
3666
  l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
@@ -3633,17 +3677,17 @@ const Hi = {
3633
3677
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
3634
3678
  }
3635
3679
  }
3636
- }, Fi = /* @__PURE__ */ v(Hi, [["render", Di]]);
3637
- function ji(e, t, i, o, n, l) {
3680
+ }, el = /* @__PURE__ */ v(Zi, [["render", Qi]]);
3681
+ function tl(e, t, i, s, n, l) {
3638
3682
  const a = $("w-icon"), r = $("w-list", !0);
3639
- return s(), u("ul", {
3683
+ return o(), u("ul", {
3640
3684
  class: f(["w-list", l.classes])
3641
3685
  }, [
3642
- (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", {
3643
3687
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3644
3688
  key: h
3645
3689
  }, [
3646
- i.icon ? (s(), g(a, {
3690
+ i.icon ? (o(), g(a, {
3647
3691
  key: 0,
3648
3692
  class: "w-list__item-bullet"
3649
3693
  }, {
@@ -3652,7 +3696,7 @@ function ji(e, t, i, o, n, l) {
3652
3696
  ]),
3653
3697
  _: 1
3654
3698
  })) : p("", !0),
3655
- 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"), _({
3656
3700
  key: 1,
3657
3701
  class: "w-list__item-label",
3658
3702
  ref_for: !0
@@ -3678,41 +3722,41 @@ function ji(e, t, i, o, n, l) {
3678
3722
  ])
3679
3723
  ]),
3680
3724
  _: 2
3681
- }, 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"), _({
3682
3726
  key: 2,
3683
3727
  class: "w-list__item-label",
3684
3728
  ref_for: !0
3685
3729
  }, l.liLabelProps(d, h, d._selected)), null, 16)),
3686
- (d.children || []).length ? (s(), g(r, B({
3730
+ (d.children || []).length ? (o(), g(r, _({
3687
3731
  key: 3,
3688
3732
  ref_for: !0
3689
3733
  }, e.$props, {
3690
3734
  items: d.children,
3691
3735
  depth: i.depth + 1,
3692
- "onUpdate:modelValue": t[0] || (t[0] = (w) => e.$emit("update:modelValue", w)),
3693
- onInput: t[1] || (t[1] = (w) => e.$emit("input", w)),
3694
- onItemClick: t[2] || (t[2] = (w) => e.$emit("item-click", w)),
3695
- onItemSelect: t[3] || (t[3] = (w) => e.$emit("item-select", w))
3696
- }), 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 }, [
3697
3741
  e.$slots.item ? {
3698
3742
  name: "item",
3699
- fn: m(({ item: w, index: _, selected: b }) => [
3743
+ fn: m(({ item: y, index: B, selected: b }) => [
3700
3744
  c(e.$slots, "item", {
3701
- item: l.cleanLi(w),
3702
- index: _,
3745
+ item: l.cleanLi(y),
3746
+ index: B,
3703
3747
  selected: b
3704
3748
  })
3705
3749
  ]),
3706
3750
  key: "0"
3707
3751
  } : {
3708
3752
  name: "default",
3709
- fn: m(({ item: w, index: _, selected: b }) => [
3753
+ fn: m(({ item: y, index: B, selected: b }) => [
3710
3754
  c(e.$slots, "default", {
3711
- item: l.cleanLi(w),
3712
- index: _,
3755
+ item: l.cleanLi(y),
3756
+ index: B,
3713
3757
  selected: b
3714
3758
  }, () => [
3715
- S(C(w[i.itemLabelKey]), 1)
3759
+ S(C(y[i.itemLabelKey]), 1)
3716
3760
  ])
3717
3761
  ]),
3718
3762
  key: "1"
@@ -3721,7 +3765,7 @@ function ji(e, t, i, o, n, l) {
3721
3765
  ], 2))), 128))
3722
3766
  ], 2);
3723
3767
  }
3724
- const Ui = {
3768
+ const il = {
3725
3769
  name: "w-list",
3726
3770
  props: {
3727
3771
  items: { type: [Array, Number], required: !0 },
@@ -3827,7 +3871,7 @@ const Ui = {
3827
3871
  };
3828
3872
  },
3829
3873
  liLabelProps(e, t, i) {
3830
- const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3874
+ const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3831
3875
  if (!e.disabled) {
3832
3876
  const d = this.cleanLi(e);
3833
3877
  this.$emit("item-click", d), this.$emit("item-select", d);
@@ -3843,12 +3887,12 @@ const Ui = {
3843
3887
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3844
3888
  role: "option"
3845
3889
  };
3846
- 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) => {
3847
3891
  const h = d.target.querySelector('input[type="checkbox"]');
3848
3892
  h && (h.focus(), h.click()), n();
3849
3893
  }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3850
3894
  d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3851
- }) : (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;
3852
3896
  },
3853
3897
  // Convert the received items selection to array if it is a unique value.
3854
3898
  // Also accept objects if returnObject is true and convert to the object's value.
@@ -3861,7 +3905,7 @@ const Ui = {
3861
3905
  emitSelection() {
3862
3906
  const e = this.selectedItems.map((i) => {
3863
3907
  if (!this.returnObject) return i._value;
3864
- const { _value: o, _selected: n, ...l } = i;
3908
+ const { _value: s, _selected: n, ...l } = i;
3865
3909
  return l;
3866
3910
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3867
3911
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3872,7 +3916,7 @@ const Ui = {
3872
3916
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3873
3917
  },
3874
3918
  cleanLi(e) {
3875
- 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;
3876
3920
  return a;
3877
3921
  },
3878
3922
  refreshListItems() {
@@ -3892,7 +3936,7 @@ const Ui = {
3892
3936
  this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
3893
3937
  const t = this.checkSelection(e);
3894
3938
  this.listItems.forEach((i) => {
3895
- i._selected = t.find((o) => i._value === o) !== void 0;
3939
+ i._selected = t.find((s) => i._value === s) !== void 0;
3896
3940
  });
3897
3941
  }
3898
3942
  },
@@ -3915,7 +3959,7 @@ const Ui = {
3915
3959
  }
3916
3960
  }
3917
3961
  }
3918
- }, qi = /* @__PURE__ */ v(Ui, [["render", ji]]), ke = {
3962
+ }, ll = /* @__PURE__ */ v(il, [["render", tl]]), Be = {
3919
3963
  props: {
3920
3964
  // Position.
3921
3965
  appendTo: { type: [String, Boolean, Object] },
@@ -3956,7 +4000,7 @@ const Ui = {
3956
4000
  let e = ".w-app";
3957
4001
  typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
3958
4002
  let t = this.appendTo || e;
3959
- 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;
3960
4004
  },
3961
4005
  // DOM element that will receive the tooltip/menu.
3962
4006
  // ! \ This computed uses the DOM - NO SSR (only trigger from beforeMount and later).
@@ -4000,8 +4044,8 @@ const Ui = {
4000
4044
  },
4001
4045
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4002
4046
  getActivatorCoordinates() {
4003
- const { top: e, left: t, width: i, height: o } = this.activatorEl.getBoundingClientRect();
4004
- 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 };
4005
4049
  if (!this.fixed) {
4006
4050
  const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4007
4051
  n = {
@@ -4014,7 +4058,7 @@ const Ui = {
4014
4058
  },
4015
4059
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4016
4060
  computeDetachableCoords() {
4017
- let { top: e, left: t, width: i, height: o } = this.getActivatorCoordinates();
4061
+ let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
4018
4062
  if (!this.detachableEl) return;
4019
4063
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
4020
4064
  const n = window.getComputedStyle(this.detachableEl, null);
@@ -4024,15 +4068,15 @@ const Ui = {
4024
4068
  break;
4025
4069
  }
4026
4070
  case "bottom": {
4027
- 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);
4028
4072
  break;
4029
4073
  }
4030
4074
  case "left": {
4031
- 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);
4032
4076
  break;
4033
4077
  }
4034
4078
  case "right": {
4035
- 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.
4036
4080
  parseInt(n.getPropertyValue("margin-top")));
4037
4081
  break;
4038
4082
  }
@@ -4064,11 +4108,11 @@ const Ui = {
4064
4108
  const e = typeof this.activator == "string";
4065
4109
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
4066
4110
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
4067
- const o = (n) => {
4111
+ const s = (n) => {
4068
4112
  var l;
4069
4113
  (e && ((l = n.target) != null && l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
4070
4114
  };
4071
- document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
4115
+ document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
4072
4116
  });
4073
4117
  }
4074
4118
  },
@@ -4092,16 +4136,16 @@ const Ui = {
4092
4136
  }
4093
4137
  }
4094
4138
  };
4095
- function Xi(e, t, i, o, n, l) {
4139
+ function sl(e, t, i, s, n, l) {
4096
4140
  const a = $("w-card"), r = $("w-overlay");
4097
- return s(), u(k, null, [
4141
+ return o(), u(k, null, [
4098
4142
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
4099
- I(O, {
4143
+ T(P, {
4100
4144
  name: l.transitionName,
4101
4145
  appear: ""
4102
4146
  }, {
4103
4147
  default: m(() => [
4104
- i.custom && e.detachableVisible ? (s(), u("div", B({
4148
+ i.custom && e.detachableVisible ? (o(), u("div", _({
4105
4149
  key: 0,
4106
4150
  class: "w-menu",
4107
4151
  ref: "detachable"
@@ -4113,7 +4157,7 @@ function Xi(e, t, i, o, n, l) {
4113
4157
  style: l.styles
4114
4158
  }), [
4115
4159
  c(e.$slots, "default")
4116
- ], 16)) : e.detachableVisible ? (s(), g(a, B({
4160
+ ], 16)) : e.detachableVisible ? (o(), g(a, _({
4117
4161
  key: 1,
4118
4162
  class: "w-menu",
4119
4163
  ref: "detachable"
@@ -4128,7 +4172,7 @@ function Xi(e, t, i, o, n, l) {
4128
4172
  "no-border": i.noBorder,
4129
4173
  class: l.classes,
4130
4174
  style: l.styles
4131
- }), J({
4175
+ }), ee({
4132
4176
  default: m(() => [
4133
4177
  c(e.$slots, "default")
4134
4178
  ]),
@@ -4152,7 +4196,7 @@ function Xi(e, t, i, o, n, l) {
4152
4196
  ]),
4153
4197
  _: 3
4154
4198
  }, 8, ["name"]),
4155
- i.overlay ? (s(), g(r, B({
4199
+ i.overlay ? (o(), g(r, _({
4156
4200
  key: 0,
4157
4201
  ref: "overlay",
4158
4202
  "model-value": e.detachableVisible,
@@ -4164,9 +4208,9 @@ function Xi(e, t, i, o, n, l) {
4164
4208
  }), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
4165
4209
  ], 64);
4166
4210
  }
4167
- const Yi = {
4211
+ const ol = {
4168
4212
  name: "w-menu",
4169
- mixins: [ke],
4213
+ mixins: [Be],
4170
4214
  inheritAttrs: !1,
4171
4215
  // The attrs are only bound to the button-partial, not the root.
4172
4216
  props: {
@@ -4337,20 +4381,20 @@ const Yi = {
4337
4381
  }
4338
4382
  }
4339
4383
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
4340
- }, Gi = /* @__PURE__ */ v(Yi, [["render", Xi]]);
4341
- function Ji(e, t, i, o, n, l) {
4384
+ }, al = /* @__PURE__ */ v(ol, [["render", sl]]);
4385
+ function nl(e, t, i, s, n, l) {
4342
4386
  const a = $("w-alert");
4343
- return s(), g(O, {
4387
+ return o(), g(P, {
4344
4388
  name: l.transitionName,
4345
4389
  appear: ""
4346
4390
  }, {
4347
4391
  default: m(() => [
4348
- n.show ? (s(), u("div", {
4392
+ n.show ? (o(), u("div", {
4349
4393
  key: 0,
4350
4394
  class: f(["w-notification", l.classes]),
4351
- style: L(l.styles)
4395
+ style: R(l.styles)
4352
4396
  }, [
4353
- I(a, B(l.alertProps, {
4397
+ T(a, _(l.alertProps, {
4354
4398
  class: l.alertClasses,
4355
4399
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
4356
4400
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
@@ -4366,7 +4410,7 @@ function Ji(e, t, i, o, n, l) {
4366
4410
  _: 3
4367
4411
  }, 8, ["name"]);
4368
4412
  }
4369
- const Qi = {
4413
+ const rl = {
4370
4414
  name: "w-notification",
4371
4415
  props: {
4372
4416
  // Notification props.
@@ -4489,34 +4533,34 @@ const Qi = {
4489
4533
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
4490
4534
  }
4491
4535
  }
4492
- }, Zi = /* @__PURE__ */ v(Qi, [["render", Ji]]);
4493
- function el(e, t, i, o, n, l) {
4494
- const a = be("focus");
4495
- 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, {
4496
4540
  name: "fade",
4497
4541
  appear: "",
4498
4542
  onAfterLeave: l.onClose
4499
4543
  }, {
4500
4544
  default: m(() => [
4501
- i.modelValue ? W((s(), u("div", {
4545
+ i.modelValue ? W((o(), u("div", {
4502
4546
  key: 0,
4503
4547
  class: f(["w-overlay", l.classes]),
4504
4548
  ref: "overlay",
4505
- style: L(i.modelValue && l.styles || null),
4506
- 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"])),
4507
4551
  onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
4508
4552
  tabindex: "0"
4509
4553
  }, [
4510
4554
  c(e.$slots, "default")
4511
4555
  ], 38)), [
4512
- [ae, e.showOverlay],
4556
+ [re, e.showOverlay],
4513
4557
  [a]
4514
4558
  ]) : p("", !0)
4515
4559
  ]),
4516
4560
  _: 3
4517
4561
  }, 8, ["onAfterLeave"]);
4518
4562
  }
4519
- const tl = {
4563
+ const hl = {
4520
4564
  name: "w-overlay",
4521
4565
  props: {
4522
4566
  modelValue: {},
@@ -4574,26 +4618,26 @@ const tl = {
4574
4618
  e && (this.showOverlay = !0);
4575
4619
  }
4576
4620
  }
4577
- }, il = /* @__PURE__ */ v(tl, [["render", el]]), ll = { class: "w-parallax" };
4578
- function sl(e, t, i, o, n, l) {
4579
- return s(), u("div", ll);
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);
4580
4624
  }
4581
- const ol = {
4625
+ const ml = {
4582
4626
  name: "w-parallax",
4583
4627
  props: {},
4584
4628
  emits: [],
4585
4629
  data: () => ({})
4586
- }, al = /* @__PURE__ */ v(ol, [["render", sl]]), nl = ["viewBox"], rl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], dl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4587
- function ul(e, t, i, o, n, l) {
4588
- 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", {
4589
4633
  class: f(["w-progress", l.classes]),
4590
- style: L(l.styles)
4634
+ style: R(l.styles)
4591
4635
  }, [
4592
- i.circle ? (s(), u("svg", {
4636
+ i.circle ? (o(), u("svg", {
4593
4637
  key: 1,
4594
4638
  viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
4595
4639
  }, [
4596
- i.bgColor || this.progressValue > -1 ? (s(), u("circle", {
4640
+ i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
4597
4641
  key: 0,
4598
4642
  class: f(["bg", i.bgColor || null]),
4599
4643
  cx: l.circleCenter,
@@ -4602,8 +4646,8 @@ function ul(e, t, i, o, n, l) {
4602
4646
  fill: "transparent",
4603
4647
  "stroke-dasharray": e.circleCircumference,
4604
4648
  "stroke-width": i.stroke
4605
- }, null, 10, rl)) : p("", !0),
4606
- y("circle", {
4649
+ }, null, 10, yl)) : p("", !0),
4650
+ w("circle", {
4607
4651
  class: "w-progress__progress",
4608
4652
  cx: l.circleCenter,
4609
4653
  cy: l.circleCenter,
@@ -4612,14 +4656,14 @@ function ul(e, t, i, o, n, l) {
4612
4656
  "stroke-width": i.stroke,
4613
4657
  "stroke-linecap": i.roundCap && "round",
4614
4658
  "stroke-dasharray": e.circleCircumference,
4615
- style: L(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4616
- }, null, 12, dl)
4617
- ], 8, nl)) : (s(), u("div", {
4659
+ style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4660
+ }, null, 12, wl)
4661
+ ], 8, bl)) : (o(), u("div", {
4618
4662
  key: 0,
4619
4663
  class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
4620
- style: L(`width: ${l.progressValue}%`)
4664
+ style: R(`width: ${l.progressValue}%`)
4621
4665
  }, null, 6)),
4622
- i.label || e.$slots.default ? (s(), u("div", {
4666
+ i.label || e.$slots.default ? (o(), u("div", {
4623
4667
  key: 2,
4624
4668
  class: f(["w-progress__label", i.labelColor || !1])
4625
4669
  }, [
@@ -4629,7 +4673,7 @@ function ul(e, t, i, o, n, l) {
4629
4673
  ], 2)) : p("", !0)
4630
4674
  ], 6);
4631
4675
  }
4632
- const Y = 40, hl = Y / 2, cl = Math.round(Y * 3.14 * 100) / 100, pl = {
4676
+ const Q = 40, vl = Q / 2, Cl = Math.round(Q * 3.14 * 100) / 100, Sl = {
4633
4677
  name: "w-progress",
4634
4678
  props: {
4635
4679
  modelValue: { type: [Number, String, Boolean], default: -1 },
@@ -4656,16 +4700,16 @@ const Y = 40, hl = Y / 2, cl = Math.round(Y * 3.14 * 100) / 100, pl = {
4656
4700
  },
4657
4701
  emits: [],
4658
4702
  data: () => ({
4659
- circleSize: Y,
4660
- circleRadius: hl,
4661
- circleCircumference: cl
4703
+ circleSize: Q,
4704
+ circleRadius: vl,
4705
+ circleCircumference: Cl
4662
4706
  }),
4663
4707
  computed: {
4664
4708
  progressValue() {
4665
4709
  return parseFloat(this.modelValue);
4666
4710
  },
4667
4711
  circleCenter() {
4668
- return Y + this.stroke;
4712
+ return Q + this.stroke;
4669
4713
  },
4670
4714
  forcedSize() {
4671
4715
  return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
@@ -4698,9 +4742,9 @@ const Y = 40, hl = Y / 2, cl = Math.round(Y * 3.14 * 100) / 100, pl = {
4698
4742
  };
4699
4743
  }
4700
4744
  }
4701
- }, fl = /* @__PURE__ */ v(pl, [["render", ul]]), ml = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], gl = ["for"], bl = ["for", "innerHTML"], yl = ["for"], wl = ["for", "innerHTML"];
4702
- function kl(e, t, i, o, n, l) {
4703
- 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 }, {
4704
4748
  valid: e.valid,
4705
4749
  "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4706
4750
  onReset: t[4] || (t[4] = (a) => {
@@ -4709,7 +4753,7 @@ function kl(e, t, i, o, n, l) {
4709
4753
  class: l.classes
4710
4754
  }), {
4711
4755
  default: m(() => [
4712
- y("input", {
4756
+ w("input", {
4713
4757
  ref: "input",
4714
4758
  id: `w-radio--${e._.uid}`,
4715
4759
  type: "radio",
@@ -4722,9 +4766,9 @@ function kl(e, t, i, o, n, l) {
4722
4766
  onChange: t[1] || (t[1] = (a) => l.onInput(a)),
4723
4767
  "aria-checked": e.inputValue || "false",
4724
4768
  role: "radio"
4725
- }, null, 40, ml),
4726
- l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
4727
- 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", {
4728
4772
  key: 0,
4729
4773
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4730
4774
  for: `w-radio--${e._.uid}`
@@ -4732,21 +4776,21 @@ function kl(e, t, i, o, n, l) {
4732
4776
  c(e.$slots, "default", {}, () => [
4733
4777
  S(C(i.label), 1)
4734
4778
  ])
4735
- ], 10, gl)) : i.label ? (s(), u("label", {
4779
+ ], 10, $l)) : i.label ? (o(), u("label", {
4736
4780
  key: 1,
4737
4781
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4738
4782
  for: `w-radio--${e._.uid}`,
4739
4783
  innerHTML: i.label
4740
- }, null, 10, bl)) : p("", !0)
4784
+ }, null, 10, Vl)) : p("", !0)
4741
4785
  ], 64)) : p("", !0),
4742
- y("div", {
4786
+ w("div", {
4743
4787
  class: f(["w-radio__input", this.color]),
4744
4788
  onClick: t[2] || (t[2] = (a) => {
4745
4789
  e.$refs.input.focus(), e.$refs.input.click();
4746
4790
  })
4747
4791
  }, null, 2),
4748
- l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
4749
- e.$slots.default ? (s(), u("label", {
4792
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
4793
+ e.$slots.default ? (o(), u("label", {
4750
4794
  key: 0,
4751
4795
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4752
4796
  for: `w-radio--${e._.uid}`
@@ -4754,20 +4798,20 @@ function kl(e, t, i, o, n, l) {
4754
4798
  c(e.$slots, "default", {}, () => [
4755
4799
  S(C(i.label), 1)
4756
4800
  ])
4757
- ], 10, yl)) : i.label ? (s(), u("label", {
4801
+ ], 10, Il)) : i.label ? (o(), u("label", {
4758
4802
  key: 1,
4759
4803
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4760
4804
  for: `w-radio--${e._.uid}`,
4761
4805
  innerHTML: i.label
4762
- }, null, 10, wl)) : p("", !0)
4806
+ }, null, 10, Tl)) : p("", !0)
4763
4807
  ], 64)) : p("", !0)
4764
4808
  ]),
4765
4809
  _: 3
4766
4810
  }, 16, ["valid", "class"]);
4767
4811
  }
4768
- const vl = {
4812
+ const Rl = {
4769
4813
  name: "w-radio",
4770
- mixins: [M],
4814
+ mixins: [z],
4771
4815
  inject: { wRadios: { default: null } },
4772
4816
  props: {
4773
4817
  modelValue: { default: !1 },
@@ -4830,10 +4874,10 @@ const vl = {
4830
4874
  this.toggleFromOutside();
4831
4875
  }
4832
4876
  }
4833
- }, Cl = /* @__PURE__ */ v(vl, [["render", kl]]), Sl = ["innerHTML"];
4834
- function Bl(e, t, i, o, n, l) {
4877
+ }, xl = /* @__PURE__ */ v(Rl, [["render", Ll]]), Pl = ["innerHTML"];
4878
+ function Ol(e, t, i, s, n, l) {
4835
4879
  const a = $("w-radio");
4836
- 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 }, {
4837
4881
  valid: e.valid,
4838
4882
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4839
4883
  onReset: t[2] || (t[2] = (r) => {
@@ -4844,7 +4888,7 @@ function Bl(e, t, i, o, n, l) {
4844
4888
  class: l.classes
4845
4889
  }), {
4846
4890
  default: m(() => [
4847
- (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, _({
4848
4892
  key: d,
4849
4893
  "model-value": r.value === i.modelValue,
4850
4894
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -4863,10 +4907,10 @@ function Bl(e, t, i, o, n, l) {
4863
4907
  index: d + 1,
4864
4908
  checked: r.value === i.modelValue,
4865
4909
  innerHTML: r.label
4866
- }) : r.label ? (s(), u("div", {
4910
+ }) : r.label ? (o(), u("div", {
4867
4911
  key: 1,
4868
4912
  innerHTML: r.label
4869
- }, null, 8, Sl)) : p("", !0)
4913
+ }, null, 8, Pl)) : p("", !0)
4870
4914
  ]),
4871
4915
  _: 2
4872
4916
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -4874,9 +4918,9 @@ function Bl(e, t, i, o, n, l) {
4874
4918
  _: 3
4875
4919
  }, 16, ["valid", "column", "wrap", "class"]);
4876
4920
  }
4877
- const _l = {
4921
+ const Ml = {
4878
4922
  name: "w-radios",
4879
- mixins: [M],
4923
+ mixins: [z],
4880
4924
  props: {
4881
4925
  items: { type: Array, required: !0 },
4882
4926
  // All the possible options.
@@ -4927,9 +4971,9 @@ const _l = {
4927
4971
  return this.items[e._index];
4928
4972
  }
4929
4973
  }
4930
- }, $l = /* @__PURE__ */ v(_l, [["render", Bl]]), Vl = ["id", "name", "value"], Il = ["disabled", "onMouseenter", "onClick", "tabindex"];
4931
- function Tl(e, t, i, o, n, l) {
4932
- 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 }, {
4933
4977
  valid: e.valid,
4934
4978
  "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4935
4979
  onReset: t[5] || (t[5] = (a) => {
@@ -4938,18 +4982,18 @@ function Tl(e, t, i, o, n, l) {
4938
4982
  class: l.classes
4939
4983
  }), {
4940
4984
  default: m(() => [
4941
- y("input", {
4985
+ w("input", {
4942
4986
  id: e.inputName,
4943
4987
  name: e.inputName,
4944
4988
  type: "hidden",
4945
4989
  value: n.rating
4946
- }, null, 8, Vl),
4947
- (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 }, [
4948
4992
  e.$slots.item ? c(e.$slots, "item", {
4949
4993
  key: 0,
4950
4994
  index: a + 1
4951
4995
  }) : p("", !0),
4952
- y("button", {
4996
+ w("button", {
4953
4997
  class: f(["w-rating__button", l.buttonClasses(a)]),
4954
4998
  disabled: e.isDisabled || e.isReadonly,
4955
4999
  onMouseenter: (r) => n.hover = a,
@@ -4961,22 +5005,22 @@ function Tl(e, t, i, o, n, l) {
4961
5005
  type: "button",
4962
5006
  tabindex: a === 1 ? 0 : -1
4963
5007
  }, [
4964
- a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
5008
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
4965
5009
  key: 0,
4966
5010
  class: f(["w-icon", `${i.icon} ${i.color}`]),
4967
5011
  role: "icon",
4968
5012
  "aria-hidden": "true",
4969
- style: L(l.halfStarStyle)
5013
+ style: R(l.halfStarStyle)
4970
5014
  }, null, 6)) : p("", !0)
4971
- ], 42, Il)
5015
+ ], 42, Al)
4972
5016
  ], 64))), 128))
4973
5017
  ]),
4974
5018
  _: 3
4975
5019
  }, 16, ["valid", "class"]);
4976
5020
  }
4977
- const Ll = {
5021
+ const Kl = {
4978
5022
  name: "w-rating",
4979
- mixins: [M],
5023
+ mixins: [z],
4980
5024
  props: {
4981
5025
  modelValue: {},
4982
5026
  max: { type: [Number, String], default: 5 },
@@ -5068,10 +5112,10 @@ const Ll = {
5068
5112
  this.rating = parseFloat(e);
5069
5113
  }
5070
5114
  }
5071
- }, Rl = /* @__PURE__ */ v(Ll, [["render", Tl]]);
5072
- function Pl(e, t, i, o, n, l) {
5073
- return s(), u(k, null, [
5074
- 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", _({
5075
5119
  class: ["w-scrollable", l.scrollableClasses],
5076
5120
  ref: "scrollable",
5077
5121
  onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
@@ -5080,20 +5124,20 @@ function Pl(e, t, i, o, n, l) {
5080
5124
  }, e.$attrs, { style: l.scrollableStyles }), [
5081
5125
  c(e.$slots, "default")
5082
5126
  ], 16),
5083
- y("div", {
5127
+ w("div", {
5084
5128
  class: f(["w-scrollbar", l.scrollbarClasses]),
5085
5129
  ref: "track",
5086
5130
  onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
5087
5131
  }, [
5088
- y("div", {
5132
+ w("div", {
5089
5133
  class: "w-scrollbar__thumb",
5090
5134
  ref: "thumb",
5091
- style: L(l.thumbStyles)
5135
+ style: R(l.thumbStyles)
5092
5136
  }, null, 4)
5093
5137
  ], 34)
5094
5138
  ], 64);
5095
5139
  }
5096
- const Ol = {
5140
+ const Hl = {
5097
5141
  h: {
5098
5142
  direction: "horizontal",
5099
5143
  topOrLeft: "left",
@@ -5116,7 +5160,7 @@ const Ol = {
5116
5160
  deltaXorY: "deltaY",
5117
5161
  scrollTopOrLeft: "scrollTop"
5118
5162
  }
5119
- }, xl = {
5163
+ }, Fl = {
5120
5164
  name: "w-scrollable",
5121
5165
  props: {
5122
5166
  color: { type: String, default: "primary" },
@@ -5136,11 +5180,11 @@ const Ol = {
5136
5180
  }),
5137
5181
  computed: {
5138
5182
  isHorizontal() {
5139
- var e, t, i, o;
5140
- 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;
5141
5185
  },
5142
5186
  m() {
5143
- return Ol[this.isHorizontal ? "h" : "v"];
5187
+ return Hl[this.isHorizontal ? "h" : "v"];
5144
5188
  },
5145
5189
  scrollableClasses() {
5146
5190
  return {
@@ -5172,8 +5216,8 @@ const Ol = {
5172
5216
  methods: {
5173
5217
  onTrackMouseDown(e) {
5174
5218
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
5175
- const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
5176
- 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 });
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 });
5177
5221
  },
5178
5222
  onDrag(e) {
5179
5223
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -5193,7 +5237,7 @@ const Ol = {
5193
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()));
5194
5238
  },
5195
5239
  computeScroll(e) {
5196
- 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;
5197
5241
  this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
5198
5242
  },
5199
5243
  scroll() {
@@ -5209,13 +5253,13 @@ const Ol = {
5209
5253
  const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
5210
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);
5211
5255
  }
5212
- }, zl = /* @__PURE__ */ v(xl, [["render", Pl]]), Ml = ["aria-expanded", "aria-owns", "aria-activedescendant"], El = {
5256
+ }, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = ["aria-expanded", "aria-owns", "aria-activedescendant"], ql = {
5213
5257
  key: 0,
5214
5258
  class: "w-select__selection-slot"
5215
- }, Al = ["innerHTML"], Wl = ["value", "name"];
5216
- function Kl(e, t, i, o, n, l) {
5259
+ }, Xl = ["innerHTML"], Yl = ["value", "name"];
5260
+ function Gl(e, t, i, s, n, l) {
5217
5261
  const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
5218
- 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 }, {
5219
5263
  valid: e.valid,
5220
5264
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
5221
5265
  onReset: l.onReset,
@@ -5223,8 +5267,8 @@ function Kl(e, t, i, o, n, l) {
5223
5267
  class: l.classes
5224
5268
  }), {
5225
5269
  default: m(() => [
5226
- i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
5227
- 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", {
5228
5272
  key: 0,
5229
5273
  class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
5230
5274
  onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
@@ -5234,7 +5278,7 @@ function Kl(e, t, i, o, n, l) {
5234
5278
  ])
5235
5279
  ], 2)) : p("", !0)
5236
5280
  ], 64)) : p("", !0),
5237
- I(d, B({
5281
+ T(d, _({
5238
5282
  modelValue: e.showMenu,
5239
5283
  "onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
5240
5284
  onClose: l.closeMenu,
@@ -5246,7 +5290,7 @@ function Kl(e, t, i, o, n, l) {
5246
5290
  "min-width": "activator"
5247
5291
  }, i.menuProps || {}), {
5248
5292
  activator: m(() => [
5249
- y("div", {
5293
+ w("div", {
5250
5294
  class: f(["w-select__selection-wrap", l.inputWrapClasses]),
5251
5295
  onClick: t[6] || (t[6] = (h) => !e.isDisabled && !e.isReadonly && l.onInputFieldClick()),
5252
5296
  role: "button",
@@ -5256,7 +5300,7 @@ function Kl(e, t, i, o, n, l) {
5256
5300
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
5257
5301
  }, [
5258
5302
  c(e.$slots, "icon-left", {}, () => [
5259
- i.innerIconLeft ? (s(), g(a, {
5303
+ i.innerIconLeft ? (o(), g(a, {
5260
5304
  key: 0,
5261
5305
  class: "w-select__icon w-select__icon--inner-left",
5262
5306
  tag: "label",
@@ -5268,26 +5312,26 @@ function Kl(e, t, i, o, n, l) {
5268
5312
  _: 1
5269
5313
  })) : p("", !0)
5270
5314
  ]),
5271
- e.$slots.selection ? (s(), u("div", El, [
5315
+ e.$slots.selection ? (o(), u("div", ql, [
5272
5316
  c(e.$slots, "selection", {
5273
5317
  item: i.multiple ? e.inputValue : e.inputValue[0]
5274
5318
  })
5275
5319
  ])) : p("", !0),
5276
- y("div", B({
5320
+ w("div", _({
5277
5321
  class: "w-select__selection",
5278
5322
  ref: "selection-input",
5279
5323
  onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
5280
5324
  onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
5281
5325
  onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
5282
- }, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, Al),
5283
- (s(!0), u(k, null, R(e.inputValue.length ? e.inputValue : [{}], (h, w) => (s(), u("input", {
5284
- 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,
5285
5329
  type: "hidden",
5286
5330
  value: h.value === void 0 ? "" : h.value.toString(),
5287
5331
  name: e.inputName + (i.multiple ? "[]" : "")
5288
- }, null, 8, Wl))), 128)),
5289
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 1 }, [
5290
- 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", {
5291
5335
  key: 0,
5292
5336
  class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
5293
5337
  }, [
@@ -5297,7 +5341,7 @@ function Kl(e, t, i, o, n, l) {
5297
5341
  ], 2)) : p("", !0)
5298
5342
  ], 64)) : p("", !0),
5299
5343
  c(e.$slots, "icon-right", {}, () => [
5300
- i.innerIconRight ? (s(), g(a, {
5344
+ i.innerIconRight ? (o(), g(a, {
5301
5345
  key: 0,
5302
5346
  class: "w-select__icon w-select__icon--inner-right",
5303
5347
  tag: "label",
@@ -5309,10 +5353,10 @@ function Kl(e, t, i, o, n, l) {
5309
5353
  _: 1
5310
5354
  })) : p("", !0)
5311
5355
  ])
5312
- ], 10, Ml)
5356
+ ], 10, Ul)
5313
5357
  ]),
5314
5358
  default: m(() => [
5315
- I(r, {
5359
+ T(r, {
5316
5360
  ref: "w-list",
5317
5361
  "model-value": e.inputValue,
5318
5362
  "onUpdate:modelValue": l.onInput,
@@ -5331,24 +5375,24 @@ function Kl(e, t, i, o, n, l) {
5331
5375
  "item-color-key": i.itemColorKey,
5332
5376
  role: "listbox",
5333
5377
  tabindex: "-1"
5334
- }, J({ _: 2 }, [
5335
- R(i.items.length, (h) => ({
5378
+ }, ee({ _: 2 }, [
5379
+ x(i.items.length, (h) => ({
5336
5380
  name: `item.${h}`,
5337
- fn: m(({ item: w, selected: _, index: b }) => [
5338
- 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}`, {
5339
5383
  key: 0,
5340
- item: w,
5341
- selected: _,
5384
+ item: y,
5385
+ selected: B,
5342
5386
  index: b
5343
5387
  }, () => [
5344
- S(C(w[i.itemLabelKey]), 1)
5388
+ S(C(y[i.itemLabelKey]), 1)
5345
5389
  ]) : c(e.$slots, "item", {
5346
5390
  key: 1,
5347
- item: w,
5348
- selected: _,
5391
+ item: y,
5392
+ selected: B,
5349
5393
  index: b
5350
5394
  }, () => [
5351
- S(C(w[i.itemLabelKey]), 1)
5395
+ S(C(y[i.itemLabelKey]), 1)
5352
5396
  ])
5353
5397
  ])
5354
5398
  }))
@@ -5356,8 +5400,8 @@ function Kl(e, t, i, o, n, l) {
5356
5400
  ]),
5357
5401
  _: 3
5358
5402
  }, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
5359
- i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
5360
- 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", {
5361
5405
  key: 0,
5362
5406
  class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
5363
5407
  onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
@@ -5371,9 +5415,9 @@ function Kl(e, t, i, o, n, l) {
5371
5415
  _: 3
5372
5416
  }, 16, ["valid", "onReset", "wrap", "class"]);
5373
5417
  }
5374
- const Nl = {
5418
+ const Jl = {
5375
5419
  name: "w-select",
5376
- mixins: [M],
5420
+ mixins: [z],
5377
5421
  props: {
5378
5422
  items: { type: Array, required: !0 },
5379
5423
  modelValue: {},
@@ -5516,7 +5560,7 @@ const Nl = {
5516
5560
  const n = e.keyCode === 38 ? -1 : 1;
5517
5561
  t = (t + i.length + n) % i.length;
5518
5562
  }
5519
- let o = !1;
5563
+ let s = !1;
5520
5564
  if (i[t].disabled) {
5521
5565
  const n = e.keyCode === 38 ? -1 : 1;
5522
5566
  let l = (t + n + i.length) % i.length;
@@ -5524,9 +5568,9 @@ const Nl = {
5524
5568
  let r = 0;
5525
5569
  for (; r < a && i[l].disabled; )
5526
5570
  l = (l + i.length + n) % i.length, r++;
5527
- r >= a && (o = !0), t = l;
5571
+ r >= a && (s = !0), t = l;
5528
5572
  }
5529
- o || this.onInput(i[t]);
5573
+ s || this.onInput(i[t]);
5530
5574
  }
5531
5575
  else e.key.length === 1 && this.focusItemOnQuickLookup(e);
5532
5576
  },
@@ -5534,14 +5578,14 @@ const Nl = {
5534
5578
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
5535
5579
  },
5536
5580
  focusItemOnQuickLookup(e) {
5537
- var o, n, l;
5581
+ var s, n, l;
5538
5582
  this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
5539
5583
  const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
5540
5584
  (a) => !a.disabled && a[this.itemLabelKey].match(t)
5541
5585
  ) + 1;
5542
5586
  if (i) {
5543
5587
  const a = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5544
- (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();
5545
5589
  }
5546
5590
  },
5547
5591
  // The items are given by the w-list component.
@@ -5569,8 +5613,8 @@ const Nl = {
5569
5613
  e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
5570
5614
  const t = this.selectItems.map((i) => i.value);
5571
5615
  return e.map((i) => {
5572
- let o = i;
5573
- 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)];
5574
5618
  }).filter((i) => i !== void 0);
5575
5619
  },
5576
5620
  // Open the dropdown selection list.
@@ -5601,12 +5645,12 @@ const Nl = {
5601
5645
  this.inputValue = this.checkSelection(this.modelValue);
5602
5646
  }
5603
5647
  }
5604
- }, Dl = /* @__PURE__ */ v(Nl, [["render", Kl]]), Hl = ["for"], Fl = ["for", "innerHTML"], jl = { class: "w-slider__track-wrap" }, Ul = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], ql = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Xl = ["for"], Yl = { key: 0 }, Gl = {
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 = {
5605
5649
  key: 0,
5606
5650
  class: "w-slider__step-labels"
5607
- }, Jl = ["onClick"], Ql = ["for"], Zl = ["for", "innerHTML"];
5608
- function es(e, t, i, o, n, l) {
5609
- 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 }, {
5610
5654
  valid: e.valid,
5611
5655
  "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5612
5656
  onReset: t[9] || (t[9] = (a) => {
@@ -5616,20 +5660,20 @@ function es(e, t, i, o, n, l) {
5616
5660
  class: l.wrapperClasses
5617
5661
  }), {
5618
5662
  default: m(() => [
5619
- e.$slots["label-left"] ? (s(), u("label", {
5663
+ e.$slots["label-left"] ? (o(), u("label", {
5620
5664
  key: 0,
5621
5665
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5622
5666
  for: `button--${e._.uid}`
5623
5667
  }, [
5624
5668
  c(e.$slots, "label-left")
5625
- ], 10, Hl)) : i.labelLeft ? (s(), u("label", {
5669
+ ], 10, Zl)) : i.labelLeft ? (o(), u("label", {
5626
5670
  key: 1,
5627
5671
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5628
5672
  for: `button--${e._.uid}`,
5629
5673
  innerHTML: i.labelLeft
5630
- }, null, 10, Fl)) : p("", !0),
5631
- y("div", jl, [
5632
- y("div", {
5674
+ }, null, 10, es)) : p("", !0),
5675
+ w("div", ts, [
5676
+ w("div", {
5633
5677
  class: f(["w-slider__track", l.trackClasses]),
5634
5678
  ref: "track",
5635
5679
  onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
@@ -5642,15 +5686,15 @@ function es(e, t, i, o, n, l) {
5642
5686
  "aria-readonly": e.isReadonly ? "true" : "false",
5643
5687
  "aria-orientation": "horizontal"
5644
5688
  }, [
5645
- y("div", {
5689
+ w("div", {
5646
5690
  class: f(["w-slider__range", l.rangeClasses]),
5647
- style: L(l.rangeStyles)
5691
+ style: R(l.rangeStyles)
5648
5692
  }, null, 6),
5649
- y("div", {
5693
+ w("div", {
5650
5694
  class: "w-slider__thumb",
5651
- style: L(l.thumbStyles)
5695
+ style: R(l.thumbStyles)
5652
5696
  }, [
5653
- y("button", {
5697
+ w("button", {
5654
5698
  class: f(["w-slider__thumb-button", [i.color]]),
5655
5699
  ref: "thumb",
5656
5700
  id: `button--${e._.uid}`,
@@ -5665,15 +5709,15 @@ function es(e, t, i, o, n, l) {
5665
5709
  t[1] || (t[1] = E((a) => l.onKeyDown(a, 1), ["right"]))
5666
5710
  ],
5667
5711
  onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5668
- onClick: t[3] || (t[3] = z(() => {
5712
+ onClick: t[3] || (t[3] = M(() => {
5669
5713
  }, ["prevent"]))
5670
- }, null, 42, ql),
5671
- i.thumbLabel ? (s(), u("label", {
5714
+ }, null, 42, ls),
5715
+ i.thumbLabel ? (o(), u("label", {
5672
5716
  key: 0,
5673
5717
  class: f(["w-slider__thumb-label", l.thumbClasses]),
5674
5718
  for: `button--${e._.uid}`
5675
5719
  }, [
5676
- i.thumbLabel === "droplet" ? (s(), u("div", Yl, [
5720
+ i.thumbLabel === "droplet" ? (o(), u("div", os, [
5677
5721
  c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
5678
5722
  S(C(~~e.rangeValueScaled), 1)
5679
5723
  ])
@@ -5683,21 +5727,21 @@ function es(e, t, i, o, n, l) {
5683
5727
  }, () => [
5684
5728
  S(C(~~e.rangeValueScaled), 1)
5685
5729
  ])
5686
- ], 10, Xl)) : p("", !0)
5730
+ ], 10, ss)) : p("", !0)
5687
5731
  ], 4)
5688
- ], 42, Ul),
5689
- i.stepLabels && i.step ? (s(), u("div", Gl, [
5690
- y("div", {
5732
+ ], 42, is),
5733
+ i.stepLabels && i.step ? (o(), u("div", as, [
5734
+ w("div", {
5691
5735
  class: "w-slider__step-label",
5692
5736
  onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5693
5737
  }, C(this.minVal), 1),
5694
- (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", {
5695
5739
  class: "w-slider__step-label",
5696
5740
  key: a,
5697
5741
  onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5698
- style: L(`left: ${a * (100 / l.numberOfSteps)}%`)
5699
- }, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Jl))), 128)),
5700
- ~~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", {
5701
5745
  key: 0,
5702
5746
  class: "w-slider__step-label",
5703
5747
  onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
@@ -5705,25 +5749,25 @@ function es(e, t, i, o, n, l) {
5705
5749
  }, C(this.maxVal), 1)) : p("", !0)
5706
5750
  ])) : p("", !0)
5707
5751
  ]),
5708
- e.$slots["label-right"] ? (s(), u("label", {
5752
+ e.$slots["label-right"] ? (o(), u("label", {
5709
5753
  key: 2,
5710
5754
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5711
5755
  for: `button--${e._.uid}`
5712
5756
  }, [
5713
5757
  c(e.$slots, "label-right")
5714
- ], 10, Ql)) : i.labelRight ? (s(), u("label", {
5758
+ ], 10, rs)) : i.labelRight ? (o(), u("label", {
5715
5759
  key: 3,
5716
5760
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5717
5761
  for: `button--${e._.uid}`,
5718
5762
  innerHTML: i.labelRight
5719
- }, null, 10, Zl)) : p("", !0)
5763
+ }, null, 10, ds)) : p("", !0)
5720
5764
  ]),
5721
5765
  _: 3
5722
5766
  }, 16, ["valid", "wrap", "class"]);
5723
5767
  }
5724
- const ts = {
5768
+ const hs = {
5725
5769
  name: "w-slider",
5726
- mixins: [M],
5770
+ mixins: [z],
5727
5771
  props: {
5728
5772
  modelValue: { type: Number, default: 0 },
5729
5773
  color: { type: String, default: "primary" },
@@ -5858,17 +5902,17 @@ const ts = {
5858
5902
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
5859
5903
  }
5860
5904
  }
5861
- }, is = /* @__PURE__ */ v(ts, [["render", es]]), ls = { key: 0 };
5862
- function ss(e, t, i, o, n, l) {
5863
- 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", {
5864
5908
  key: 0,
5865
5909
  class: f(["w-spinner", l.classes]),
5866
- style: L(l.styles)
5910
+ style: R(l.styles)
5867
5911
  }, [
5868
- l.isThreeDots ? (s(), u("span", ls)) : p("", !0)
5912
+ l.isThreeDots ? (o(), u("span", ps)) : p("", !0)
5869
5913
  ], 6)) : p("", !0);
5870
5914
  }
5871
- const os = {
5915
+ const ms = {
5872
5916
  name: "w-spinner",
5873
5917
  props: {
5874
5918
  modelValue: {},
@@ -5906,13 +5950,13 @@ const os = {
5906
5950
  };
5907
5951
  }
5908
5952
  }
5909
- }, as = /* @__PURE__ */ v(os, [["render", ss]]);
5910
- function ns(e, t, i, o, n, l) {
5911
- 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", {
5912
5956
  class: f(["w-steps", l.classes])
5913
5957
  }, null, 2);
5914
5958
  }
5915
- const rs = {
5959
+ const ys = {
5916
5960
  name: "w-steps",
5917
5961
  props: {
5918
5962
  dark: { type: Boolean },
@@ -5928,16 +5972,16 @@ const rs = {
5928
5972
  };
5929
5973
  }
5930
5974
  }
5931
- }, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], hs = ["for"], cs = {
5975
+ }, ws = /* @__PURE__ */ v(ys, [["render", bs]]), ks = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], vs = ["for"], Cs = {
5932
5976
  key: 0,
5933
5977
  class: "w-switch__track"
5934
- }, ps = {
5978
+ }, Ss = {
5935
5979
  key: 1,
5936
5980
  class: "w-switch__thumb"
5937
- }, fs = ["for"];
5938
- function ms(e, t, i, o, n, l) {
5981
+ }, Bs = ["for"];
5982
+ function _s(e, t, i, s, n, l) {
5939
5983
  const a = $("w-progress");
5940
- 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 }, {
5941
5985
  valid: e.valid,
5942
5986
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5943
5987
  onReset: t[4] || (t[4] = (r) => {
@@ -5947,7 +5991,7 @@ function ms(e, t, i, o, n, l) {
5947
5991
  style: e.$attrs.style
5948
5992
  }), {
5949
5993
  default: m(() => [
5950
- y("input", B({
5994
+ w("input", _({
5951
5995
  ref: "input",
5952
5996
  id: `w-switch--${e._.uid}`,
5953
5997
  type: "checkbox",
@@ -5963,9 +6007,9 @@ function ms(e, t, i, o, n, l) {
5963
6007
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5964
6008
  "aria-checked": n.isOn || "false",
5965
6009
  role: "switch"
5966
- }), null, 16, us),
5967
- l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
5968
- 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", {
5969
6013
  key: 0,
5970
6014
  class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
5971
6015
  for: `w-switch--${e._.uid}`
@@ -5973,27 +6017,27 @@ function ms(e, t, i, o, n, l) {
5973
6017
  c(e.$slots, "default", {}, () => [
5974
6018
  S(C(i.label), 1)
5975
6019
  ])
5976
- ], 10, hs)) : p("", !0)
6020
+ ], 10, vs)) : p("", !0)
5977
6021
  ], 64)) : p("", !0),
5978
- y("div", {
6022
+ w("div", {
5979
6023
  class: f(["w-switch__input", l.inputClasses]),
5980
6024
  onClick: t[2] || (t[2] = (r) => {
5981
6025
  e.$refs.input.focus(), e.$refs.input.click();
5982
6026
  })
5983
6027
  }, [
5984
- e.$slots.track ? (s(), u("div", cs, [
6028
+ e.$slots.track ? (o(), u("div", Cs, [
5985
6029
  c(e.$slots, "track")
5986
6030
  ])) : p("", !0),
5987
- e.$slots.thumb || i.loading ? (s(), u("div", ps, [
5988
- i.loading ? (s(), g(a, B({
6031
+ e.$slots.thumb || i.loading ? (o(), u("div", Ss, [
6032
+ i.loading ? (o(), g(a, _({
5989
6033
  key: 0,
5990
6034
  circle: "",
5991
6035
  color: "inherit"
5992
6036
  }, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
5993
6037
  ])) : p("", !0)
5994
6038
  ], 2),
5995
- l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
5996
- 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", {
5997
6041
  key: 0,
5998
6042
  class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
5999
6043
  for: `w-switch--${e._.uid}`
@@ -6001,15 +6045,15 @@ function ms(e, t, i, o, n, l) {
6001
6045
  c(e.$slots, "default", {}, () => [
6002
6046
  S(C(i.label), 1)
6003
6047
  ])
6004
- ], 10, fs)) : p("", !0)
6048
+ ], 10, Bs)) : p("", !0)
6005
6049
  ], 64)) : p("", !0)
6006
6050
  ]),
6007
6051
  _: 3
6008
6052
  }, 16, ["valid", "class", "style"]);
6009
6053
  }
6010
- const gs = {
6054
+ const $s = {
6011
6055
  name: "w-switch",
6012
- mixins: [M],
6056
+ mixins: [z],
6013
6057
  inheritAttrs: !1,
6014
6058
  // The attrs should only be added to the input not the wrapper.
6015
6059
  props: {
@@ -6083,33 +6127,33 @@ const gs = {
6083
6127
  this.isOn = e;
6084
6128
  }
6085
6129
  }
6086
- }, bs = /* @__PURE__ */ v(gs, [["render", ms]]), ys = { class: "w-tabs__content" };
6087
- function ws(e, t, i, o, n, l) {
6088
- return s(), u("div", ys, [
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, [
6089
6133
  c(e.$slots, "default", { item: i.item })
6090
6134
  ]);
6091
6135
  }
6092
- const ks = {
6136
+ const Ls = {
6093
6137
  name: "tab-content",
6094
6138
  // Keep-alive include/exclude mechanism is component-name-based.
6095
6139
  props: { item: Object }
6096
- }, vs = /* @__PURE__ */ v(ks, [["render", ws]]), Cs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Ss = ["innerHTML"], Bs = {
6140
+ }, Rs = /* @__PURE__ */ v(Ls, [["render", Ts]]), xs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Ps = ["innerHTML"], Os = {
6097
6141
  key: 0,
6098
6142
  class: "w-tabs__bar-extra"
6099
- }, _s = {
6143
+ }, Ms = {
6100
6144
  key: 0,
6101
6145
  class: "w-tabs__content-wrap"
6102
- }, $s = ["innerHTML"], Vs = ["innerHTML"];
6103
- function Is(e, t, i, o, n, l) {
6146
+ }, zs = ["innerHTML"], Es = ["innerHTML"];
6147
+ function As(e, t, i, s, n, l) {
6104
6148
  const a = $("tab-content");
6105
- return s(), u("div", {
6149
+ return o(), u("div", {
6106
6150
  class: f(["w-tabs", l.tabsClasses])
6107
6151
  }, [
6108
- y("div", {
6152
+ w("div", {
6109
6153
  class: f(["w-tabs__bar", l.tabsBarClasses]),
6110
6154
  ref: "tabs-bar"
6111
6155
  }, [
6112
- (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", {
6113
6157
  class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
6114
6158
  key: d,
6115
6159
  onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
@@ -6130,27 +6174,27 @@ function Is(e, t, i, o, n, l) {
6130
6174
  index: d + 1,
6131
6175
  active: r._uid === e.activeTabUid
6132
6176
  }, () => [
6133
- y("div", {
6177
+ w("div", {
6134
6178
  innerHTML: r[i.itemTitleKey]
6135
- }, null, 8, Ss)
6179
+ }, null, 8, Ps)
6136
6180
  ])
6137
- ], 42, Cs))), 128)),
6138
- e.$slots["tabs-bar-extra"] ? (s(), u("div", Bs, [
6181
+ ], 42, xs))), 128)),
6182
+ e.$slots["tabs-bar-extra"] ? (o(), u("div", Os, [
6139
6183
  c(e.$slots, "tabs-bar-extra")
6140
6184
  ])) : p("", !0),
6141
- !i.noSlider && !i.card ? (s(), u("div", {
6185
+ !i.noSlider && !i.card ? (o(), u("div", {
6142
6186
  key: 1,
6143
6187
  class: f(["w-tabs__slider", i.sliderColor]),
6144
- style: L(l.sliderStyles)
6188
+ style: R(l.sliderStyles)
6145
6189
  }, null, 6)) : p("", !0)
6146
6190
  ], 2),
6147
- e.tabs.length ? (s(), u("div", _s, [
6148
- i.keepInDom ? (s(), g(se, {
6191
+ e.tabs.length ? (o(), u("div", Ms, [
6192
+ i.keepInDom ? (o(), g(ae, {
6149
6193
  key: 0,
6150
6194
  name: l.transitionName
6151
6195
  }, {
6152
6196
  default: m(() => [
6153
- (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, {
6154
6198
  key: r._uid,
6155
6199
  item: r,
6156
6200
  class: f(i.contentClass)
@@ -6167,34 +6211,34 @@ function Is(e, t, i, o, n, l) {
6167
6211
  index: r._index + 1,
6168
6212
  active: r._index === l.activeTab._index
6169
6213
  }, () => [
6170
- r[i.itemContentKey] ? (s(), u("div", {
6214
+ r[i.itemContentKey] ? (o(), u("div", {
6171
6215
  key: 0,
6172
6216
  innerHTML: r[i.itemContentKey]
6173
- }, null, 8, $s)) : p("", !0)
6217
+ }, null, 8, zs)) : p("", !0)
6174
6218
  ])
6175
6219
  ]),
6176
6220
  _: 2
6177
6221
  }, 1032, ["item", "class"])), [
6178
- [ae, r._uid === l.activeTab._uid]
6222
+ [re, r._uid === l.activeTab._uid]
6179
6223
  ])), 128))
6180
6224
  ]),
6181
6225
  _: 3
6182
- }, 8, ["name"])) : (s(), g(O, {
6226
+ }, 8, ["name"])) : (o(), g(P, {
6183
6227
  key: 1,
6184
6228
  name: l.transitionName,
6185
6229
  mode: l.transitionMode
6186
6230
  }, {
6187
6231
  default: m(() => [
6188
- (s(), g(Ie, {
6232
+ (o(), g(xe, {
6189
6233
  exclude: i.keepAlive ? "" : "tab-content"
6190
6234
  }, [
6191
- (s(), g(a, {
6235
+ (o(), g(a, {
6192
6236
  key: e.activeTabUid,
6193
6237
  item: l.activeTab,
6194
6238
  class: f(i.contentClass)
6195
6239
  }, {
6196
6240
  default: m(({ item: r }) => [
6197
- r ? (s(), u(k, { key: 0 }, [
6241
+ r ? (o(), u(k, { key: 0 }, [
6198
6242
  e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
6199
6243
  key: 0,
6200
6244
  item: l.getOriginalItem(r),
@@ -6206,10 +6250,10 @@ function Is(e, t, i, o, n, l) {
6206
6250
  index: r._index + 1,
6207
6251
  active: r._uid === e.activeTabUid
6208
6252
  }, () => [
6209
- r[i.itemContentKey] ? (s(), u("div", {
6253
+ r[i.itemContentKey] ? (o(), u("div", {
6210
6254
  key: 0,
6211
6255
  innerHTML: r[i.itemContentKey]
6212
- }, null, 8, Vs)) : p("", !0)
6256
+ }, null, 8, Es)) : p("", !0)
6213
6257
  ])
6214
6258
  ], 64)) : p("", !0)
6215
6259
  ]),
@@ -6222,8 +6266,8 @@ function Is(e, t, i, o, n, l) {
6222
6266
  ])) : p("", !0)
6223
6267
  ], 2);
6224
6268
  }
6225
- let me = 0;
6226
- const Ts = {
6269
+ let ye = 0;
6270
+ const Ws = {
6227
6271
  name: "w-tabs",
6228
6272
  props: {
6229
6273
  modelValue: { type: [Number, String] },
@@ -6249,7 +6293,7 @@ const Ts = {
6249
6293
  keepAlive: { type: Boolean, default: !0 },
6250
6294
  keepInDom: { type: Boolean, default: !1 }
6251
6295
  },
6252
- components: { TabContent: vs },
6296
+ components: { TabContent: Rs },
6253
6297
  emits: ["input", "update:modelValue", "focus"],
6254
6298
  data: () => ({
6255
6299
  tabs: [],
@@ -6308,7 +6352,7 @@ const Ts = {
6308
6352
  methods: {
6309
6353
  // Adding a tab in the list.
6310
6354
  addTab(e) {
6311
- (e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++me}`), this.tabs.push({
6355
+ (e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++ye}`), this.tabs.push({
6312
6356
  _uid: e[this.itemIdKey] ?? e._uid,
6313
6357
  _index: this.tabs.length,
6314
6358
  ...e,
@@ -6317,7 +6361,7 @@ const Ts = {
6317
6361
  },
6318
6362
  refreshTabs() {
6319
6363
  let e = this.items;
6320
- 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}${++me}`), {
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}`), {
6321
6365
  ...t,
6322
6366
  _uid: t[this.itemIdKey] ?? t._uid,
6323
6367
  _index: i,
@@ -6325,10 +6369,10 @@ const Ts = {
6325
6369
  }));
6326
6370
  },
6327
6371
  reopenTheActiveTab() {
6328
- var t, i, o;
6372
+ var t, i, s;
6329
6373
  if (this.tabs.length === 1) return this.openTab(this.tabs[0]._uid);
6330
6374
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
6331
- 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);
6332
6376
  },
6333
6377
  onResize() {
6334
6378
  this.updateSlider(!1);
@@ -6356,16 +6400,16 @@ const Ts = {
6356
6400
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
6357
6401
  }
6358
6402
  if (!this.fillBar && this.activeTabEl) {
6359
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
6360
- 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`;
6361
6405
  } else
6362
6406
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
6363
6407
  },
6364
6408
  updateActiveTab(e) {
6365
6409
  var t, i;
6366
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(() => {
6367
- const o = this.$refs["tabs-bar"];
6368
- 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" });
6369
6413
  }));
6370
6414
  },
6371
6415
  // Return the original item (so there is no `_index`, etc.).
@@ -6398,58 +6442,58 @@ const Ts = {
6398
6442
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
6399
6443
  }
6400
6444
  }
6401
- }, Ls = /* @__PURE__ */ v(Ts, [["render", Is]]), Rs = { class: "w-table__scroll-wrap" }, Ps = { ref: "colgroup" }, Os = ["width"], xs = { key: 0 }, zs = ["onClick"], Ms = ["innerHTML"], Es = {
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 = {
6402
6446
  key: 0,
6403
6447
  class: "w-table__progress-bar"
6404
- }, As = ["colspan"], Ws = {
6448
+ }, Xs = ["colspan"], Ys = {
6405
6449
  key: 0,
6406
6450
  class: "w-table__progress-bar"
6407
- }, Ks = ["colspan"], Ns = { class: "w-table__loading-text" }, Ds = {
6451
+ }, Gs = ["colspan"], Js = { class: "w-table__loading-text" }, Qs = {
6408
6452
  key: 1,
6409
6453
  class: "no-data"
6410
- }, Hs = ["colspan"], Fs = ["onClick"], js = ["data-label"], Us = ["data-label"], qs = ["innerHTML"], Xs = {
6454
+ }, Zs = ["colspan"], eo = ["onClick"], to = ["data-label"], io = ["data-label"], lo = ["innerHTML"], so = {
6411
6455
  key: 2,
6412
6456
  class: "w-table__row w-table__row--expansion"
6413
- }, Ys = ["colspan"], Gs = { key: 0 }, Js = {
6457
+ }, oo = ["colspan"], ao = { key: 0 }, no = {
6414
6458
  key: 3,
6415
6459
  class: "w-table__extra-row"
6416
- }, Qs = {
6460
+ }, ro = {
6417
6461
  key: 1,
6418
6462
  class: "w-table__footer"
6419
- }, Zs = {
6463
+ }, uo = {
6420
6464
  key: 1,
6421
6465
  class: "w-table__row"
6422
- }, eo = ["colspan"], to = {
6466
+ }, ho = ["colspan"], co = {
6423
6467
  key: 0,
6424
6468
  class: "w-table__pagination w-pagination"
6425
- }, io = { class: "pages-wrap" }, lo = { class: "w-pagination__results" };
6426
- function so(e, t, i, o, n, l) {
6427
- const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), _ = $("w-button");
6428
- 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", {
6429
6473
  class: f(["w-table w-table--wrap", l.classes])
6430
6474
  }, [
6431
- y("div", Rs, [
6432
- y("table", {
6475
+ w("div", Ns, [
6476
+ w("table", {
6433
6477
  class: "w-table__table",
6434
6478
  onMousedown: t[1] || (t[1] = (...b) => l.onMouseDown && l.onMouseDown(...b)),
6435
6479
  onMouseover: t[2] || (t[2] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
6436
6480
  onMouseout: t[3] || (t[3] = (...b) => l.onMouseOut && l.onMouseOut(...b))
6437
6481
  }, [
6438
- y("colgroup", Ps, [
6439
- (s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("col", {
6440
- class: f(["w-table__col", l.colClasses[V]]),
6441
- 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,
6442
6486
  width: b.width || null
6443
- }, null, 10, Os))), 128))
6487
+ }, null, 10, Hs))), 128))
6444
6488
  ], 512),
6445
- i.noHeaders ? p("", !0) : (s(), u("thead", xs, [
6446
- y("tr", null, [
6447
- (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", {
6448
6492
  class: f(["w-table__header", l.headerClasses(b)]),
6449
- key: V,
6450
- 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)
6451
6495
  }, [
6452
- b.sortable !== !1 && b.align === "right" ? (s(), g(a, {
6496
+ b.sortable !== !1 && b.align === "right" ? (o(), g(a, {
6453
6497
  key: 0,
6454
6498
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6455
6499
  }, {
@@ -6458,20 +6502,20 @@ function so(e, t, i, o, n, l) {
6458
6502
  ]),
6459
6503
  _: 2
6460
6504
  }, 1032, ["class"])) : p("", !0),
6461
- b.label ? (s(), u(k, { key: 1 }, [
6505
+ b.label ? (o(), u(k, { key: 1 }, [
6462
6506
  e.$slots["header-label"] ? c(e.$slots, "header-label", {
6463
6507
  key: 0,
6464
6508
  header: b,
6465
6509
  label: b.label,
6466
- index: V + 1
6510
+ index: I + 1
6467
6511
  }, () => [
6468
6512
  S(C(b.label || ""), 1)
6469
- ]) : (s(), u("span", {
6513
+ ]) : (o(), u("span", {
6470
6514
  key: 1,
6471
6515
  innerHTML: b.label || ""
6472
- }, null, 8, Ms))
6516
+ }, null, 8, Us))
6473
6517
  ], 64)) : p("", !0),
6474
- b.sortable !== !1 && b.align !== "right" ? (s(), g(a, {
6518
+ b.sortable !== !1 && b.align !== "right" ? (o(), g(a, {
6475
6519
  key: 2,
6476
6520
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6477
6521
  }, {
@@ -6480,145 +6524,145 @@ function so(e, t, i, o, n, l) {
6480
6524
  ]),
6481
6525
  _: 2
6482
6526
  }, 1032, ["class"])) : p("", !0),
6483
- V < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6527
+ I < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6484
6528
  key: 3,
6485
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
6486
- 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(() => {
6487
6531
  }, ["stop"]))
6488
6532
  }, null, 2)) : p("", !0)
6489
- ], 10, zs))), 128))
6533
+ ], 10, js))), 128))
6490
6534
  ]),
6491
- I(d, null, {
6535
+ T(d, null, {
6492
6536
  default: m(() => [
6493
- i.loading === "header" ? (s(), u("tr", Es, [
6494
- y("td", {
6537
+ i.loading === "header" ? (o(), u("tr", qs, [
6538
+ w("td", {
6495
6539
  colspan: i.headers.length
6496
6540
  }, [
6497
- I(r, { tile: "" })
6498
- ], 8, As)
6541
+ T(r, { tile: "" })
6542
+ ], 8, Xs)
6499
6543
  ])) : p("", !0)
6500
6544
  ]),
6501
6545
  _: 1
6502
6546
  })
6503
6547
  ])),
6504
- y("tbody", null, [
6505
- i.loading === !0 ? (s(), u("tr", Ws, [
6506
- y("td", {
6548
+ w("tbody", null, [
6549
+ i.loading === !0 ? (o(), u("tr", Ys, [
6550
+ w("td", {
6507
6551
  colspan: i.headers.length
6508
6552
  }, [
6509
- I(r, { tile: "" }),
6510
- y("div", Ns, [
6553
+ T(r, { tile: "" }),
6554
+ w("div", Js, [
6511
6555
  c(e.$slots, "loading", {}, () => [
6512
6556
  S("Loading...")
6513
6557
  ])
6514
6558
  ])
6515
- ], 8, Ks)
6516
- ])) : l.tableItems.length ? p("", !0) : (s(), u("tr", Ds, [
6517
- y("td", {
6559
+ ], 8, Gs)
6560
+ ])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Qs, [
6561
+ w("td", {
6518
6562
  class: "w-table__cell text-center",
6519
6563
  colspan: i.headers.length
6520
6564
  }, [
6521
6565
  c(e.$slots, "no-data", {}, () => [
6522
6566
  S("No data to show.")
6523
6567
  ])
6524
- ], 8, Hs)
6568
+ ], 8, Zs)
6525
6569
  ])),
6526
- 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 }, [
6527
6571
  e.$slots.item ? c(e.$slots, "item", {
6528
6572
  key: 0,
6529
6573
  item: b,
6530
- index: V + 1,
6531
- select: () => l.doSelectRow(b, V),
6574
+ index: I + 1,
6575
+ select: () => l.doSelectRow(b, I),
6532
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 }
6533
- }) : (s(), u("tr", {
6577
+ }) : (o(), u("tr", {
6534
6578
  key: 1,
6535
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 }]),
6536
- onClick: (P) => l.doSelectRow(b, V)
6580
+ onClick: (V) => l.doSelectRow(b, I)
6537
6581
  }, [
6538
- (s(!0), u(k, null, R(i.headers, (P, x) => (s(), u(k, null, [
6539
- e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${x + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
6540
- class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
6541
- key: `${x}-a`,
6542
- "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
6543
6587
  }, [
6544
- 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}`, {
6545
6589
  key: 0,
6546
- header: P,
6590
+ header: V,
6547
6591
  item: b,
6548
- label: b[P.key] || "",
6549
- index: V + 1
6550
- }) : 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}`, {
6551
6595
  key: 1,
6552
- header: P,
6596
+ header: V,
6553
6597
  item: b,
6554
- label: b[P.key] || "",
6555
- index: V + 1
6598
+ label: b[V.key] || "",
6599
+ index: I + 1
6556
6600
  }) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
6557
6601
  key: 2,
6558
- header: P,
6602
+ header: V,
6559
6603
  item: b,
6560
- label: b[P.key] || "",
6561
- index: V + 1
6604
+ label: b[V.key] || "",
6605
+ index: I + 1
6562
6606
  }) : p("", !0),
6563
- x < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6607
+ O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6564
6608
  key: 3,
6565
- 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 }])
6566
6610
  }, null, 2)) : p("", !0)
6567
- ], 10, js)) : (s(), u("td", {
6568
- class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
6569
- key: `${x}-b`,
6570
- "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
6571
6615
  }, [
6572
- y("div", {
6573
- innerHTML: b[P.key] || ""
6574
- }, null, 8, qs),
6575
- 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", {
6576
6620
  key: 0,
6577
- 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 }])
6578
6622
  }, null, 2)) : p("", !0)
6579
- ], 10, Us))
6623
+ ], 10, io))
6580
6624
  ], 64))), 256))
6581
- ], 10, Fs)),
6582
- l.expandedRowsByUid[b._uid] ? (s(), u("tr", Xs, [
6583
- y("td", {
6625
+ ], 10, eo)),
6626
+ l.expandedRowsByUid[b._uid] ? (o(), u("tr", so, [
6627
+ w("td", {
6584
6628
  class: "w-table__cell",
6585
6629
  colspan: i.headers.length
6586
6630
  }, [
6587
- I(h, { y: "" }, {
6631
+ T(h, { y: "" }, {
6588
6632
  default: m(() => [
6589
- l.expandedRowsByUid[b._uid] ? (s(), u("div", Gs, [
6633
+ l.expandedRowsByUid[b._uid] ? (o(), u("div", ao, [
6590
6634
  c(e.$slots, "row-expansion", {
6591
6635
  item: b,
6592
- index: V + 1
6636
+ index: I + 1
6593
6637
  })
6594
6638
  ])) : p("", !0),
6595
- V < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6639
+ I < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6596
6640
  key: 1,
6597
- 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 }])
6598
6642
  }, null, 2)) : p("", !0)
6599
6643
  ]),
6600
6644
  _: 2
6601
6645
  }, 1024)
6602
- ], 8, Ys)
6646
+ ], 8, oo)
6603
6647
  ])) : p("", !0)
6604
6648
  ], 64))), 128)) : p("", !0),
6605
- e.$slots["extra-row"] ? (s(), u("div", Js, [
6649
+ e.$slots["extra-row"] ? (o(), u("div", no, [
6606
6650
  c(e.$slots, "extra-row")
6607
6651
  ])) : p("", !0)
6608
6652
  ]),
6609
- e.$slots.footer || e.$slots["footer-row"] ? (s(), u("tfoot", Qs, [
6610
- e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Zs, [
6611
- 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", {
6612
6656
  class: "w-table__cell",
6613
6657
  colspan: i.headers.length
6614
6658
  }, [
6615
6659
  c(e.$slots, "footer")
6616
- ], 8, eo)
6660
+ ], 8, ho)
6617
6661
  ])) : p("", !0)
6618
6662
  ])) : p("", !0)
6619
6663
  ], 32)
6620
6664
  ]),
6621
- i.pagination && e.paginationConfig ? (s(), u("div", to, [
6665
+ i.pagination && e.paginationConfig ? (o(), u("div", co, [
6622
6666
  c(e.$slots, "pagination", {
6623
6667
  range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
6624
6668
  total: e.paginationConfig.total,
@@ -6626,7 +6670,7 @@ function so(e, t, i, o, n, l) {
6626
6670
  page: e.paginationConfig.page,
6627
6671
  goToPage: l.goToPage
6628
6672
  }, () => [
6629
- e.paginationConfig.itemsPerPageOptions ? (s(), g(w, {
6673
+ e.paginationConfig.itemsPerPageOptions ? (o(), g(y, {
6630
6674
  key: 0,
6631
6675
  class: "w-pagination__items-per-page",
6632
6676
  modelValue: e.paginationConfig.itemsPerPage,
@@ -6637,8 +6681,8 @@ function so(e, t, i, o, n, l) {
6637
6681
  label: "Items per page",
6638
6682
  "label-color": "inherit"
6639
6683
  }, null, 8, ["modelValue", "items"])) : p("", !0),
6640
- y("div", io, [
6641
- I(_, {
6684
+ w("div", po, [
6685
+ T(B, {
6642
6686
  class: "w-pagination__arrow w-pagination__arrow--prev",
6643
6687
  onClick: t[6] || (t[6] = (b) => l.goToPage("-1")),
6644
6688
  disabled: e.paginationConfig.page <= 1,
@@ -6646,11 +6690,11 @@ function so(e, t, i, o, n, l) {
6646
6690
  text: "",
6647
6691
  lg: ""
6648
6692
  }, null, 8, ["disabled"]),
6649
- e.paginationConfig.pagesCount > 7 ? (s(!0), u(k, { key: 0 }, R(e.paginationConfig.pagesCount, (b) => (s(), u(k, { key: b }, [
6650
- [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, {
6651
6695
  key: 0,
6652
6696
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6653
- onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
6697
+ onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
6654
6698
  round: "",
6655
6699
  lg: ""
6656
6700
  }, {
@@ -6658,10 +6702,10 @@ function so(e, t, i, o, n, l) {
6658
6702
  S(C(b), 1)
6659
6703
  ]),
6660
6704
  _: 2
6661
- }, 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, {
6662
6706
  key: 1,
6663
6707
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6664
- onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
6708
+ onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
6665
6709
  round: "",
6666
6710
  lg: ""
6667
6711
  }, {
@@ -6670,10 +6714,10 @@ function so(e, t, i, o, n, l) {
6670
6714
  ]),
6671
6715
  _: 2
6672
6716
  }, 1032, ["onClick", "class"])) : p("", !0)
6673
- ], 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, {
6674
6718
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6675
6719
  key: b,
6676
- onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
6720
+ onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
6677
6721
  round: "",
6678
6722
  lg: ""
6679
6723
  }, {
@@ -6682,7 +6726,7 @@ function so(e, t, i, o, n, l) {
6682
6726
  ]),
6683
6727
  _: 2
6684
6728
  }, 1032, ["onClick", "class"]))), 128)),
6685
- I(_, {
6729
+ T(B, {
6686
6730
  class: "w-pagination__arrow w-pagination__arrow--next",
6687
6731
  onClick: t[7] || (t[7] = (b) => l.goToPage("+1")),
6688
6732
  disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
@@ -6691,12 +6735,12 @@ function so(e, t, i, o, n, l) {
6691
6735
  lg: ""
6692
6736
  }, null, 8, ["disabled"])
6693
6737
  ]),
6694
- y("span", lo, 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)
6695
6739
  ])
6696
6740
  ])) : p("", !0)
6697
6741
  ], 2);
6698
6742
  }
6699
- const ge = 15, oo = {
6743
+ const we = 15, go = {
6700
6744
  name: "w-table",
6701
6745
  props: {
6702
6746
  items: { type: Array, required: !0 },
@@ -6713,14 +6757,14 @@ const ge = 15, oo = {
6713
6757
  filter: { type: Function },
6714
6758
  fetch: { type: Function },
6715
6759
  expandableRows: {
6716
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ee(
6760
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || F(
6717
6761
  `Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6718
6762
  ), !0)
6719
6763
  },
6720
6764
  // Allow providing the expanded rows and keeping it in sync via .sync in Vue 2 or v-model:expandedRows in Vue 3.
6721
6765
  expandedRows: { type: Array },
6722
6766
  selectableRows: {
6723
- validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || ee(
6767
+ validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || F(
6724
6768
  `Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
6725
6769
  ), !0)
6726
6770
  },
@@ -6743,7 +6787,7 @@ const ge = 15, oo = {
6743
6787
  validator: (e) => {
6744
6788
  if (e) {
6745
6789
  if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
6746
- return ee(
6790
+ return F(
6747
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 }."
6748
6792
  ), !1;
6749
6793
  } else return !0;
@@ -6800,7 +6844,7 @@ const ge = 15, oo = {
6800
6844
  sortedItems() {
6801
6845
  if (!this.activeSorting.length || this.sortFunction || this.fetch) return this.filteredItems;
6802
6846
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6803
- 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)));
6804
6848
  },
6805
6849
  paginatedItems() {
6806
6850
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6865,7 +6909,7 @@ const ge = 15, oo = {
6865
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();
6866
6910
  },
6867
6911
  doSelectRow(e, t) {
6868
- 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;
6869
6913
  if (i) {
6870
6914
  const n = this.expandedRowsByUid[e._uid] === void 0;
6871
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(
@@ -6877,7 +6921,7 @@ const ge = 15, oo = {
6877
6921
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
6878
6922
  }
6879
6923
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6880
- } else if (o) {
6924
+ } else if (s) {
6881
6925
  let n = !1;
6882
6926
  const l = this.selectedRowsByUid[e._uid] === void 0;
6883
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(
@@ -6915,15 +6959,15 @@ const ge = 15, oo = {
6915
6959
  * (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
6916
6960
  */
6917
6961
  onResizerMouseMove(e) {
6918
- 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;
6919
6963
  this.colResizing.dragging = !0;
6920
6964
  const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
6921
- i.style.width = n + a + "px", o.style.width = l - a + "px";
6922
- const w = a < 0 && i.offsetWidth > d || i.offsetWidth <= ge, _ = a > 0 && o.offsetWidth > h;
6923
- if (w) {
6924
- const b = Math.max(i.offsetWidth, ge);
6925
- i.style.width = b + "px", o.style.width = r - b + "px";
6926
- } else _ && (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");
6927
6971
  },
6928
6972
  onResizerMouseUp() {
6929
6973
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6935,8 +6979,8 @@ const ge = 15, oo = {
6935
6979
  }, 0);
6936
6980
  },
6937
6981
  initPagination() {
6938
- var o, n;
6939
- 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 }];
6940
6984
  t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
6941
6985
  label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
6942
6986
  value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
@@ -6965,8 +7009,8 @@ const ge = 15, oo = {
6965
7009
  updatePaginationConfig({ itemsPerPage: e, page: t, total: i }) {
6966
7010
  if (i && (this.paginationConfig.total = i), e !== void 0) {
6967
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;
6968
- const o = e * t;
6969
- 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);
6970
7014
  }
6971
7015
  t && this.goToPage(t);
6972
7016
  },
@@ -6985,13 +7029,13 @@ const ge = 15, oo = {
6985
7029
  * While waiting for the call to resolve, nothing in the table will change.
6986
7030
  */
6987
7031
  async callApiFetch() {
6988
- 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;
6989
7033
  return await this.fetch({
6990
7034
  page: e,
6991
7035
  start: t,
6992
- end: i || o,
6993
- total: o,
6994
- itemsPerPage: n || o,
7036
+ end: i || s,
7037
+ total: s,
7038
+ itemsPerPage: n || s,
6995
7039
  sorting: this.activeSorting
6996
7040
  });
6997
7041
  }
@@ -7025,9 +7069,9 @@ const ge = 15, oo = {
7025
7069
  this.updatePaginationConfig({ total: e });
7026
7070
  }
7027
7071
  }
7028
- }, ao = /* @__PURE__ */ v(oo, [["render", so]]), no = ["role", "aria-pressed", "tabindex"];
7029
- function ro(e, t, i, o, n, l) {
7030
- 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", {
7031
7075
  class: f(["w-tag", l.classes]),
7032
7076
  onClick: t[1] || (t[1] = (a) => {
7033
7077
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
@@ -7038,21 +7082,21 @@ function ro(e, t, i, o, n, l) {
7038
7082
  role: i.modelValue !== -1 && "button",
7039
7083
  "aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
7040
7084
  tabindex: i.modelValue !== -1 && 0,
7041
- style: L(l.styles)
7085
+ style: R(l.styles)
7042
7086
  }, [
7043
7087
  c(e.$slots, "default"),
7044
- i.closable && i.modelValue ? (s(), u("i", {
7088
+ i.closable && i.modelValue ? (o(), u("i", {
7045
7089
  key: 0,
7046
7090
  class: "w-icon w-tag__closable wi-cross",
7047
- onClick: t[0] || (t[0] = z((a) => {
7091
+ onClick: t[0] || (t[0] = M((a) => {
7048
7092
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7049
7093
  }, ["stop"])),
7050
7094
  role: "icon",
7051
7095
  "aria-hidden": "true"
7052
7096
  })) : p("", !0)
7053
- ], 46, no);
7097
+ ], 46, yo);
7054
7098
  }
7055
- const uo = {
7099
+ const ko = {
7056
7100
  name: "w-tag",
7057
7101
  props: {
7058
7102
  modelValue: { type: [Boolean, Number], default: -1 },
@@ -7101,10 +7145,10 @@ const uo = {
7101
7145
  };
7102
7146
  }
7103
7147
  }
7104
- }, ho = /* @__PURE__ */ v(uo, [["render", ro]]), co = ["for"], po = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], fo = ["for"];
7105
- function mo(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) {
7106
7150
  const a = $("w-icon");
7107
- 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 }, {
7108
7152
  valid: e.valid,
7109
7153
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
7110
7154
  wrap: l.hasLabel && i.labelPosition !== "inside",
@@ -7115,8 +7159,8 @@ function mo(e, t, i, o, n, l) {
7115
7159
  style: e.$attrs.style
7116
7160
  }), {
7117
7161
  default: m(() => [
7118
- i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
7119
- 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", {
7120
7164
  key: 0,
7121
7165
  class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
7122
7166
  for: `w-textarea--${e._.uid}`
@@ -7124,15 +7168,15 @@ function mo(e, t, i, o, n, l) {
7124
7168
  c(e.$slots, "default", {}, () => [
7125
7169
  S(C(i.label), 1)
7126
7170
  ])
7127
- ], 10, co)) : p("", !0)
7171
+ ], 10, Co)) : p("", !0)
7128
7172
  ], 64)) : p("", !0),
7129
- y("div", {
7173
+ w("div", {
7130
7174
  class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
7131
7175
  }, [
7132
7176
  c(e.$slots, "icon-left", {
7133
7177
  inputId: `w-textarea--${e._.uid}`
7134
7178
  }, () => [
7135
- i.innerIconLeft ? (s(), g(a, {
7179
+ i.innerIconLeft ? (o(), g(a, {
7136
7180
  key: 0,
7137
7181
  class: "w-textarea__icon w-textarea__icon--inner-left",
7138
7182
  tag: "label",
@@ -7145,7 +7189,7 @@ function mo(e, t, i, o, n, l) {
7145
7189
  _: 1
7146
7190
  }, 8, ["for"])) : p("", !0)
7147
7191
  ]),
7148
- W(y("textarea", B({
7192
+ W(w("textarea", _({
7149
7193
  class: "w-textarea__textarea",
7150
7194
  ref: "textarea",
7151
7195
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
@@ -7163,11 +7207,11 @@ function mo(e, t, i, o, n, l) {
7163
7207
  disabled: e.isDisabled || null,
7164
7208
  required: e.required || null,
7165
7209
  tabindex: e.tabindex || null
7166
- }), null, 16, po), [
7167
- [ye, n.inputValue]
7210
+ }), null, 16, So), [
7211
+ [ve, n.inputValue]
7168
7212
  ]),
7169
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 0 }, [
7170
- 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", {
7171
7215
  key: 0,
7172
7216
  class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
7173
7217
  }, [
@@ -7179,7 +7223,7 @@ function mo(e, t, i, o, n, l) {
7179
7223
  c(e.$slots, "icon-right", {
7180
7224
  inputId: `w-textarea--${e._.uid}`
7181
7225
  }, () => [
7182
- i.innerIconRight ? (s(), g(a, {
7226
+ i.innerIconRight ? (o(), g(a, {
7183
7227
  key: 0,
7184
7228
  class: "w-textarea__icon w-textarea__icon--inner-right",
7185
7229
  tag: "label",
@@ -7193,8 +7237,8 @@ function mo(e, t, i, o, n, l) {
7193
7237
  }, 8, ["for"])) : p("", !0)
7194
7238
  ])
7195
7239
  ], 2),
7196
- i.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
7197
- 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", {
7198
7242
  key: 0,
7199
7243
  class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
7200
7244
  for: `w-textarea--${e._.uid}`
@@ -7202,15 +7246,15 @@ function mo(e, t, i, o, n, l) {
7202
7246
  c(e.$slots, "default", {}, () => [
7203
7247
  S(C(i.label), 1)
7204
7248
  ])
7205
- ], 10, fo)) : p("", !0)
7249
+ ], 10, Bo)) : p("", !0)
7206
7250
  ], 64)) : p("", !0)
7207
7251
  ]),
7208
7252
  _: 3
7209
7253
  }, 16, ["valid", "wrap", "class", "style"]);
7210
7254
  }
7211
- const go = {
7255
+ const $o = {
7212
7256
  name: "w-textarea",
7213
- mixins: [M],
7257
+ mixins: [z],
7214
7258
  inheritAttrs: !1,
7215
7259
  // The attrs should only be added to the textarea not the wrapper.
7216
7260
  props: {
@@ -7334,16 +7378,16 @@ const go = {
7334
7378
  e ? this.getLineHeight() : this.height = null;
7335
7379
  }
7336
7380
  }
7337
- }, bo = /* @__PURE__ */ v(go, [["render", mo]]), yo = ["innerHTML"], wo = ["innerHTML"];
7338
- function ko(e, t, i, o, n, l) {
7339
- 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", {
7340
7384
  class: f(["w-timeline", l.classes])
7341
7385
  }, [
7342
- (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", {
7343
7387
  class: "w-timeline-item",
7344
7388
  key: r
7345
7389
  }, [
7346
- (s(), g(T(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7390
+ (o(), g(L(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7347
7391
  class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
7348
7392
  }, {
7349
7393
  default: m(() => [
@@ -7360,19 +7404,19 @@ function ko(e, t, i, o, n, l) {
7360
7404
  item: a,
7361
7405
  index: r + 1
7362
7406
  }, () => [
7363
- y("div", {
7407
+ w("div", {
7364
7408
  class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
7365
7409
  innerHTML: a[i.itemTitleKey]
7366
- }, null, 10, yo),
7367
- y("div", {
7410
+ }, null, 10, Io),
7411
+ w("div", {
7368
7412
  class: "w-timeline-item__content",
7369
7413
  innerHTML: a[i.itemContentKey]
7370
- }, null, 8, wo)
7414
+ }, null, 8, To)
7371
7415
  ])
7372
7416
  ]))), 128))
7373
7417
  ], 2);
7374
7418
  }
7375
- const vo = {
7419
+ const Ro = {
7376
7420
  name: "w-timeline",
7377
7421
  props: {
7378
7422
  items: { type: [Array, Number], required: !0 },
@@ -7394,16 +7438,16 @@ const vo = {
7394
7438
  };
7395
7439
  }
7396
7440
  }
7397
- }, Co = /* @__PURE__ */ v(vo, [["render", ko]]);
7398
- function So(e, t, i, o, n, l) {
7399
- 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", {
7400
7444
  class: f(["w-toolbar", l.classes]),
7401
- style: L(l.styles)
7445
+ style: R(l.styles)
7402
7446
  }, [
7403
7447
  c(e.$slots, "default")
7404
7448
  ], 6);
7405
7449
  }
7406
- const Bo = {
7450
+ const Oo = {
7407
7451
  name: "w-toolbar",
7408
7452
  props: {
7409
7453
  color: { type: String },
@@ -7454,20 +7498,20 @@ const Bo = {
7454
7498
  };
7455
7499
  }
7456
7500
  }
7457
- }, _o = /* @__PURE__ */ v(Bo, [["render", So]]);
7458
- function $o(e, t, i, o, n, l) {
7459
- 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, [
7460
7504
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
7461
- I(O, {
7505
+ T(P, {
7462
7506
  name: l.transitionName,
7463
7507
  appear: ""
7464
7508
  }, {
7465
7509
  default: m(() => [
7466
- e.detachableVisible ? (s(), u("div", {
7510
+ e.detachableVisible ? (o(), u("div", {
7467
7511
  class: f(["w-tooltip", l.classes]),
7468
7512
  ref: "detachable",
7469
7513
  key: e._.uid,
7470
- style: L(l.styles)
7514
+ style: R(l.styles)
7471
7515
  }, [
7472
7516
  c(e.$slots, "default")
7473
7517
  ], 6)) : p("", !0)
@@ -7476,9 +7520,9 @@ function $o(e, t, i, o, n, l) {
7476
7520
  }, 8, ["name"])
7477
7521
  ], 64);
7478
7522
  }
7479
- const Vo = {
7523
+ const Eo = {
7480
7524
  name: "w-tooltip",
7481
- mixins: [ke],
7525
+ mixins: [Be],
7482
7526
  props: {
7483
7527
  modelValue: {},
7484
7528
  showOnClick: { type: Boolean },
@@ -7612,24 +7656,24 @@ const Vo = {
7612
7656
  }
7613
7657
  }
7614
7658
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7615
- }, Io = /* @__PURE__ */ v(Vo, [["render", $o]]);
7616
- function To(e, t, i, o, n, l) {
7617
- 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), {
7618
7662
  default: m(() => [
7619
7663
  c(e.$slots, "default")
7620
7664
  ]),
7621
7665
  _: 3
7622
7666
  }, 16);
7623
7667
  }
7624
- const Lo = {
7668
+ const Ko = {
7625
7669
  name: "w-transition-bounce",
7626
7670
  props: {
7627
7671
  appear: { type: Boolean },
7628
7672
  duration: { type: [Number, String] }
7629
7673
  }
7630
- }, Ro = /* @__PURE__ */ v(Lo, [["render", To]]);
7631
- function Po(e, t, i, o, n, l) {
7632
- 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, {
7633
7677
  name: "expand",
7634
7678
  mode: "out-in",
7635
7679
  css: !1,
@@ -7649,7 +7693,7 @@ function Po(e, t, i, o, n, l) {
7649
7693
  _: 3
7650
7694
  }, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
7651
7695
  }
7652
- const Oo = {
7696
+ const Ho = {
7653
7697
  name: "w-transition-expand",
7654
7698
  props: {
7655
7699
  x: { type: Boolean },
@@ -7739,61 +7783,61 @@ const Oo = {
7739
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;
7740
7784
  }
7741
7785
  }
7742
- }, xo = /* @__PURE__ */ v(Oo, [["render", Po]]);
7743
- function zo(e, t, i, o, n, l) {
7744
- 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), {
7745
7789
  default: m(() => [
7746
7790
  c(e.$slots, "default")
7747
7791
  ]),
7748
7792
  _: 3
7749
7793
  }, 16);
7750
7794
  }
7751
- const Mo = {
7795
+ const Uo = {
7752
7796
  name: "w-transition-fade",
7753
7797
  props: {
7754
7798
  appear: { type: Boolean },
7755
7799
  duration: { type: [Number, String] }
7756
7800
  }
7757
- }, Eo = /* @__PURE__ */ v(Mo, [["render", zo]]);
7758
- function Ao(e, t, i, o, n, l) {
7759
- 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), {
7760
7804
  default: m(() => [
7761
7805
  c(e.$slots, "default")
7762
7806
  ]),
7763
7807
  _: 3
7764
7808
  }, 16);
7765
7809
  }
7766
- const Wo = {
7810
+ const Yo = {
7767
7811
  name: "w-transition-scale",
7768
7812
  props: {
7769
7813
  appear: { type: Boolean },
7770
7814
  duration: { type: [Number, String] }
7771
7815
  }
7772
- }, Ko = /* @__PURE__ */ v(Wo, [["render", Ao]]);
7773
- function No(e, t, i, o, n, l) {
7774
- 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), {
7775
7819
  default: m(() => [
7776
7820
  c(e.$slots, "default")
7777
7821
  ]),
7778
7822
  _: 3
7779
7823
  }, 16);
7780
7824
  }
7781
- const Do = {
7825
+ const Qo = {
7782
7826
  name: "w-transition-scale-fade",
7783
7827
  props: {
7784
7828
  appear: { type: Boolean },
7785
7829
  duration: { type: [Number, String] }
7786
7830
  }
7787
- }, Ho = /* @__PURE__ */ v(Do, [["render", No]]);
7788
- function Fo(e, t, i, o, n, l) {
7789
- 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), {
7790
7834
  default: m(() => [
7791
7835
  c(e.$slots, "default")
7792
7836
  ]),
7793
7837
  _: 3
7794
7838
  }, 16, ["name"]);
7795
7839
  }
7796
- const jo = {
7840
+ const ta = {
7797
7841
  name: "w-transition-slide",
7798
7842
  props: {
7799
7843
  appear: { type: Boolean },
@@ -7811,16 +7855,16 @@ const jo = {
7811
7855
  return `slide-${this.direction}`;
7812
7856
  }
7813
7857
  }
7814
- }, Uo = /* @__PURE__ */ v(jo, [["render", Fo]]);
7815
- function qo(e, t, i, o, n, l) {
7816
- 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), {
7817
7861
  default: m(() => [
7818
7862
  c(e.$slots, "default")
7819
7863
  ]),
7820
7864
  _: 3
7821
7865
  }, 16, ["name"]);
7822
7866
  }
7823
- const Xo = {
7867
+ const sa = {
7824
7868
  name: "w-transition-slide-fade",
7825
7869
  props: {
7826
7870
  appear: { type: Boolean },
@@ -7838,47 +7882,47 @@ const Xo = {
7838
7882
  return `slide-fade-${this.direction}`;
7839
7883
  }
7840
7884
  }
7841
- }, Yo = /* @__PURE__ */ v(Xo, [["render", qo]]);
7842
- function Go(e, t, i, o, n, l) {
7843
- 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), {
7844
7888
  default: m(() => [
7845
7889
  c(e.$slots, "default")
7846
7890
  ]),
7847
7891
  _: 3
7848
7892
  }, 16);
7849
7893
  }
7850
- const Jo = {
7894
+ const na = {
7851
7895
  name: "w-transition-twist",
7852
7896
  props: {
7853
7897
  appear: { type: Boolean },
7854
7898
  duration: { type: [Number, String] }
7855
7899
  }
7856
- }, Qo = /* @__PURE__ */ v(Jo, [["render", Go]]), Zo = ["innerHTML"], ea = {
7900
+ }, ra = /* @__PURE__ */ v(na, [["render", aa]]), da = ["innerHTML"], ua = {
7857
7901
  key: 1,
7858
7902
  class: "ml1"
7859
7903
  };
7860
- function ta(e, t, i, o, n, l) {
7904
+ function ha(e, t, i, s, n, l) {
7861
7905
  const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7862
- return s(), u("ul", {
7906
+ return o(), u("ul", {
7863
7907
  class: f(["w-tree", l.classes])
7864
7908
  }, [
7865
- (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", {
7866
7910
  class: f(["w-tree__item", l.itemClasses(h)]),
7867
- key: w
7911
+ key: y
7868
7912
  }, [
7869
- (s(), g(T(l.getTreeItemComponent(h)), B({
7913
+ (o(), g(L(l.getTreeItemComponent(h)), _({
7870
7914
  class: "w-tree__item-label",
7871
7915
  ref_for: !0
7872
7916
  }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7873
- onClick: (_) => !i.disabled && !h.disabled && l.onLabelClick(h, _),
7874
- 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),
7875
7919
  tabindex: l.getTreeItemTabindex(h)
7876
7920
  }), {
7877
7921
  default: m(() => [
7878
- (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, {
7879
7923
  key: 0,
7880
7924
  class: "w-tree__item-expand",
7881
- onClick: z((_) => !i.disabled && !h.disabled && l.onLabelClick(h, _), ["stop"]),
7925
+ onClick: M((B) => !i.disabled && !h.disabled && l.onLabelClick(h, B), ["stop"]),
7882
7926
  color: "inherit",
7883
7927
  icon: h.open && i.expandOpenIcon || i.expandIcon,
7884
7928
  "icon-props": { rotate90a: !h.open },
@@ -7893,9 +7937,9 @@ function ta(e, t, i, o, n, l) {
7893
7937
  path: h.path,
7894
7938
  open: h.open
7895
7939
  }, () => {
7896
- var _;
7940
+ var B;
7897
7941
  return [
7898
- l.itemIcon(h) ? (s(), g(r, {
7942
+ l.itemIcon(h) ? (o(), g(r, {
7899
7943
  key: 0,
7900
7944
  class: "w-tree__item-icon",
7901
7945
  color: h.originalItem[i.itemIconColorKey] || i.iconColor
@@ -7905,42 +7949,42 @@ function ta(e, t, i, o, n, l) {
7905
7949
  ]),
7906
7950
  _: 2
7907
7951
  }, 1032, ["color"])) : p("", !0),
7908
- y("span", {
7952
+ w("span", {
7909
7953
  innerHTML: h.label
7910
- }, null, 8, Zo),
7911
- i.counts && (h.children || h.branch) ? (s(), u("span", ea, "(" + 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)
7912
7956
  ];
7913
7957
  })
7914
7958
  ]),
7915
7959
  _: 2
7916
7960
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
7917
- (s(), g(T(i.noTransition ? "div" : "w-transition-expand"), {
7961
+ (o(), g(L(i.noTransition ? "div" : "w-transition-expand"), {
7918
7962
  y: !i.noTransition || null,
7919
- onAfterEnter: (_) => e.$emit("open", l.emitPayload(h)),
7920
- 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))
7921
7965
  }, {
7922
7966
  default: m(() => [
7923
- h.children && h.open ? (s(), g(d, B({
7967
+ h.children && h.open ? (o(), g(d, _({
7924
7968
  key: 0,
7925
7969
  ref_for: !0
7926
7970
  }, e.$props, {
7927
7971
  depth: i.depth + 1,
7928
7972
  data: h.originalItem.children,
7929
7973
  parent: h,
7930
- onBeforeOpen: t[0] || (t[0] = (_) => e.$emit("before-open", _)),
7931
- onOpen: t[1] || (t[1] = (_) => e.$emit("open", _)),
7932
- onBeforeClose: t[2] || (t[2] = (_) => e.$emit("before-close", _)),
7933
- onClose: t[3] || (t[3] = (_) => e.$emit("close", _)),
7934
- onClick: t[4] || (t[4] = (_) => e.$emit("click", _)),
7935
- onSelect: t[5] || (t[5] = (_) => e.$emit("select", _)),
7936
- "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))
7937
7981
  }), {
7938
- item: m(({ item: _, depth: b, path: V, open: P }) => [
7982
+ item: m(({ item: B, depth: b, path: I, open: V }) => [
7939
7983
  c(e.$slots, "item", {
7940
- item: _,
7984
+ item: B,
7941
7985
  depth: b,
7942
- path: V,
7943
- open: P
7986
+ path: I,
7987
+ open: V
7944
7988
  })
7945
7989
  ]),
7946
7990
  _: 2
@@ -7951,7 +7995,7 @@ function ta(e, t, i, o, n, l) {
7951
7995
  ], 2))), 128))
7952
7996
  ], 2);
7953
7997
  }
7954
- const ia = {
7998
+ const ca = {
7955
7999
  name: "w-tree",
7956
8000
  props: {
7957
8001
  modelValue: { type: [Object, Array] },
@@ -8012,22 +8056,22 @@ const ia = {
8012
8056
  // From data watcher, retain the oldItems open state.
8013
8057
  updateCurrentDepthTree(e, t = []) {
8014
8058
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
8015
- return F(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
8016
- 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) => {
8017
8061
  var l, a;
8018
8062
  const n = {
8019
8063
  originalItem: i,
8020
8064
  // Store the original item to return it on event emits.
8021
- _uid: this.depth.toString() + (o + 1),
8065
+ _uid: this.depth.toString() + (s + 1),
8022
8066
  label: i[this.itemLabelKey],
8023
8067
  children: !!i.children,
8024
8068
  // The children tree remains available in originalItem.
8025
8069
  branch: i.branch,
8026
8070
  route: i[this.itemRouteKey],
8027
8071
  disabled: i[this.itemDisabledKey],
8028
- selected: ((l = t[o]) == null ? void 0 : l.selected) || !1,
8072
+ selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
8029
8073
  depth: this.depth,
8030
- 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]),
8031
8075
  parent: this.parent || null,
8032
8076
  path: []
8033
8077
  // Ancestors path from root to leaf including self.
@@ -8073,13 +8117,13 @@ const ia = {
8073
8117
  },
8074
8118
  onLabelClick(e, t) {
8075
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);
8076
- const o = this.emitPayload(e, t);
8077
- this.$emit("click", o), this.emitItemSelection(e, t);
8120
+ const s = this.emitPayload(e, t);
8121
+ this.$emit("click", s), this.emitItemSelection(e, t);
8078
8122
  },
8079
8123
  onLabelKeydown(e, t) {
8080
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))) {
8081
- 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;
8082
- [...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);
8083
8127
  }
8084
8128
  t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8085
8129
  },
@@ -8149,63 +8193,63 @@ const ia = {
8149
8193
  unmounted() {
8150
8194
  this.dataPropUnwatch();
8151
8195
  }
8152
- }, la = /* @__PURE__ */ v(ia, [["render", ta]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8196
+ }, pa = /* @__PURE__ */ v(ca, [["render", ha]]), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8153
8197
  __proto__: null,
8154
- WAccordion: Ge,
8155
- WAlert: et,
8156
- WApp: ft,
8157
- WAutocomplete: ut,
8158
- WBadge: yt,
8159
- WBreadcrumbs: Ct,
8160
- WButton: Rt,
8161
- WCard: zt,
8162
- WCheckbox: jt,
8163
- WCheckboxes: Yt,
8164
- WConfirm: Qt,
8165
- WDatePicker: ti,
8166
- WDialog: si,
8167
- WDivider: ri,
8168
- WDrawer: pi,
8169
- WFlex: gi,
8170
- WForm: ki,
8171
- WFormElement: Si,
8172
- WGrid: $i,
8173
- WIcon: Ti,
8174
- WImage: Oi,
8175
- WInput: Fi,
8176
- WList: qi,
8177
- WMenu: Gi,
8178
- WNotification: Zi,
8179
- WOverlay: il,
8180
- WParallax: al,
8181
- WProgress: fl,
8182
- WRadio: Cl,
8183
- WRadios: $l,
8184
- WRating: Rl,
8185
- WScrollable: zl,
8186
- WSelect: Dl,
8187
- WSlider: is,
8188
- WSpinner: as,
8189
- WSteps: ds,
8190
- WSwitch: bs,
8191
- WTable: ao,
8192
- WTabs: Ls,
8193
- WTag: ho,
8194
- WTextarea: bo,
8195
- WTimeline: Co,
8196
- WToolbar: _o,
8197
- WTooltip: Io,
8198
- WTransitionBounce: Ro,
8199
- WTransitionExpand: xo,
8200
- WTransitionFade: Eo,
8201
- WTransitionScale: Ko,
8202
- WTransitionScaleFade: Ho,
8203
- WTransitionSlide: Uo,
8204
- WTransitionSlideFade: Yo,
8205
- WTransitionTwist: Qo,
8206
- WTree: la
8207
- }, Symbol.toStringTag, { value: "Module" })), oa = U.install;
8208
- U.install = (e, t = {}) => oa.call(U, e, { components: sa, ...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 });
8209
8253
  export {
8210
- U as default
8254
+ q as default
8211
8255
  };