wave-ui 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  var ve = Object.defineProperty;
2
2
  var ke = (e, t, i) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var D = (e, t, i) => (ke(e, typeof t != "symbol" ? t + "" : t, i), i), re = (e, t, i) => {
3
+ var D = (e, t, i) => (ke(e, typeof t != "symbol" ? t + "" : t, i), i), ne = (e, t, i) => {
4
4
  if (!t.has(e))
5
5
  throw TypeError("Cannot " + i);
6
6
  };
7
- var Y = (e, t, i) => (re(e, t, "read from private field"), i ? i.call(e) : t.get(e)), ee = (e, t, i) => {
7
+ var Y = (e, t, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get(e)), ee = (e, t, i) => {
8
8
  if (t.has(e))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  t instanceof WeakSet ? t.add(e) : t.set(e, i);
11
- }, te = (e, t, i, o) => (re(e, t, "write to private field"), o ? o.call(e, i) : t.set(e, i), i);
12
- import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as g, Teleport as _e, createVNode as V, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as v, renderList as R, mergeProps as C, createElementVNode as y, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as W, withModifiers as M, renderSlot as p, toHandlers as z, createTextVNode as S, toDisplayString as _, withDirectives as A, vModelText as ae, Transition as O, normalizeStyle as L, resolveDynamicComponent as I, normalizeProps as le, resolveDirective as be, createSlots as Z, vShow as ne, vModelDynamic as $e, KeepAlive as Ve } from "vue";
11
+ }, te = (e, t, i, s) => (ne(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
12
+ import { reactive as Q, resolveComponent as $, openBlock as o, createBlock as g, Teleport as _e, createVNode as V, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as y, createCommentVNode as p, createApp as Ce, defineComponent as Se, inject as Be, withKeys as W, withModifiers as M, renderSlot as c, toHandlers as z, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as I, normalizeProps as le, resolveDirective as ge, withDirectives as K, createSlots as Z, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
13
  const Ie = Q({
14
14
  on: "#app",
15
15
  breakpoints: {
@@ -56,36 +56,36 @@ const Ie = Q({
56
56
  t = Object.assign(t, e);
57
57
  else
58
58
  for (const i in e) {
59
- const o = e[i];
60
- typeof o == "object" ? ye(e[i], t[i]) : t[i] = o;
59
+ const s = e[i];
60
+ typeof s == "object" ? ye(e[i], t[i]) : t[i] = s;
61
61
  }
62
62
  return t;
63
- }, U = (e) => console.warn(`Wave UI: ${e}`), ie = (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(""), Te = (e) => {
63
+ }, U = (e) => console.warn(`Wave UI: ${e}`), ie = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((i) => (i = +`0x${i}` + t, (i < 0 ? 0 : i > 255 ? 255 : i).toString(16).padStart(2, 0))).join(""), Te = (e) => {
64
64
  ["light", "dark"].forEach((t) => {
65
65
  const i = e.colors[t];
66
66
  i.shades = {};
67
- for (let o in i) {
68
- if (o === "shades")
67
+ for (let s in i) {
68
+ if (s === "shades")
69
69
  continue;
70
- o = { label: o, color: i[o].replace("#", "") };
71
- const n = o.color;
72
- n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
70
+ s = { label: s, color: i[s].replace("#", "") };
71
+ const n = s.color;
72
+ n.length === 3 && (s.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
73
73
  for (let l = 1; l <= 3; l++) {
74
- const a = de(`#${o.color}`, l * 40), r = de(`#${o.color}`, -l * 40);
75
- i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
74
+ const a = re(`#${s.color}`, l * 40), r = re(`#${s.color}`, -l * 40);
75
+ i.shades[`${s.label}-light${l}`] = a, i.shades[`${s.label}-dark${l}`] = r;
76
76
  }
77
77
  }
78
78
  });
79
- }, ue = (e, t) => {
79
+ }, de = (e, t) => {
80
80
  const i = {
81
- ...t.reduce((o, n) => {
82
- o[n.label] = n.color;
81
+ ...t.reduce((s, n) => {
82
+ s[n.label] = n.color;
83
83
  const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
84
- return { ...o, ...l };
84
+ return { ...s, ...l };
85
85
  }, { ...e, ...e.shades })
86
86
  };
87
87
  return delete i.shades, i;
88
- }, he = [
88
+ }, ue = [
89
89
  {
90
90
  label: "pink",
91
91
  color: "#e91e63",
@@ -436,38 +436,38 @@ const Ie = Q({
436
436
  cssScope: ".w-app",
437
437
  baseIncrement: 4
438
438
  };
439
- let se = { keys: [], values: [] }, ce = null;
440
- const Re = (e) => {
439
+ let se = { keys: [], values: [] }, he = null;
440
+ const Le = (e) => {
441
441
  let t = "";
442
- const i = {}, { info: o, warning: n, success: l, error: a, shades: r, ...d } = e, { cssScope: h } = q;
442
+ const i = {}, { info: s, warning: n, success: l, error: a, shades: r, ...d } = e, { cssScope: h } = q;
443
443
  for (const b in d)
444
444
  t += `${h} .${b}--bg{background-color:var(--w-${b}-color)}${h} .${b}{color:var(--w-${b}-color)}`;
445
445
  for (const b in r)
446
446
  t += `${h} .${b}--bg{background-color:${r[b]}}${h} .${b}{color:${r[b]}}`;
447
- const k = { ...d, info: o, warning: n, success: l, error: a };
448
- for (const b in k)
449
- i[b] = k[b];
447
+ const w = { ...d, info: s, warning: n, success: l, error: a };
448
+ for (const b in w)
449
+ i[b] = w[b];
450
450
  let B = "";
451
451
  return Object.entries(i).forEach(([b, T]) => {
452
452
  B += `--w-${b}-color: ${T};`;
453
453
  }), `:root{${B}}${t}`;
454
- }, Le = (e, t) => {
454
+ }, Re = (e, t) => {
455
455
  let i = "";
456
- const { cssScope: o } = q;
456
+ const { cssScope: s } = q;
457
457
  return e.forEach(({ min: n, label: l }) => {
458
458
  if (l === "xs")
459
459
  for (let a = 0; a < t; a++)
460
- i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
460
+ i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
461
461
  else {
462
462
  i += `@media(min-width:${n}px){`;
463
463
  for (let a = 0; a < t; a++)
464
- i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
464
+ i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
465
465
  i += "}";
466
466
  }
467
467
  }), i;
468
468
  }, xe = (e) => {
469
469
  let t = "";
470
- const { cssScope: i, baseIncrement: o } = q, n = [
470
+ const { cssScope: i, baseIncrement: s } = q, n = [
471
471
  "show{display:block}",
472
472
  "hide{display:none}",
473
473
  "d-flex{display:flex}",
@@ -503,23 +503,23 @@ const Re = (e) => {
503
503
  "justify-space-evenly{justify-content:space-evenly}"
504
504
  ], l = Array(12).fill();
505
505
  return e.forEach(({ label: a, min: r }) => {
506
- a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
506
+ a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
507
507
  }), e.forEach(({ label: a, min: r, max: d }) => {
508
- t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + l.map((h, k) => `.w-grid.${a}-columns${k + 1}{grid-template-columns:repeat(${k + 1},1fr);}`).join("") + l.map((h, k) => `.w-flex.${a}-gap${k + 1},.w-grid.${a}-gap${k + 1}{gap:${(k + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
508
+ t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + l.map((h, 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) * s}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
509
509
  }), e.forEach(({ label: a, max: r }) => {
510
- a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
510
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
511
511
  }), t;
512
- }, pe = (e) => {
512
+ }, ce = (e) => {
513
513
  const t = window.innerWidth, i = se.values.slice(0);
514
514
  i.push(t), i.sort((n, l) => n - l);
515
- const o = se.keys[i.indexOf(t)] || "xl";
516
- o !== ce && (ce = o, e.breakpoint = {
517
- name: o,
518
- xs: o === "xs",
519
- sm: o === "sm",
520
- md: o === "md",
521
- lg: o === "lg",
522
- xl: o === "xl",
515
+ const s = se.keys[i.indexOf(t)] || "xl";
516
+ s !== he && (he = s, e.breakpoint = {
517
+ name: s,
518
+ xs: s === "xs",
519
+ sm: s === "sm",
520
+ md: s === "md",
521
+ lg: s === "lg",
522
+ xl: s === "xl",
523
523
  width: t
524
524
  }), e.breakpoint.width = window.innerWidth;
525
525
  }, Oe = (e) => {
@@ -527,14 +527,14 @@ const Re = (e) => {
527
527
  if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
528
528
  const i = document.createElement("style");
529
529
  i.id = "wave-ui-styles", i.innerHTML = Me(t);
530
- const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
531
- o ? o.before(i) : document.head.appendChild(i);
530
+ const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
531
+ s ? s.before(i) : document.head.appendChild(i);
532
532
  }
533
- pe(e), window.addEventListener("resize", () => pe(e));
533
+ ce(e), window.addEventListener("resize", () => ce(e));
534
534
  }, Pe = (e) => {
535
535
  if (!document.getElementById("wave-ui-colors")) {
536
536
  const t = document.createElement("style");
537
- t.id = "wave-ui-colors", t.innerHTML = Re(e);
537
+ t.id = "wave-ui-colors", t.innerHTML = Le(e);
538
538
  const i = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
539
539
  i ? i.before(t) : document.head.appendChild(t);
540
540
  }
@@ -542,14 +542,14 @@ const Re = (e) => {
542
542
  const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
543
543
  const [, d = 0] = t[r - 1] || [];
544
544
  return { label: l, min: d ? d + 1 : 0, max: a };
545
- }), o = getComputedStyle(document.documentElement);
546
- q.cssScope = o.getPropertyValue("--w-css-scope"), q.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
545
+ }), s = getComputedStyle(document.documentElement);
546
+ q.cssScope = s.getPropertyValue("--w-css-scope"), q.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
547
547
  let n = "";
548
- return n += Le(i, e.css.grid), e.css.breakpointLayoutClasses && (n += xe(i)), n;
548
+ return n += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (n += xe(i)), n;
549
549
  }, ze = ["innerHTML"];
550
- function Ee(e, t, i, o, n, l) {
550
+ function Ee(e, t, i, s, n, l) {
551
551
  const a = $("w-alert");
552
- return s(), g(_e, { to: ".w-app" }, [
552
+ return o(), g(_e, { to: ".w-app" }, [
553
553
  V(oe, {
554
554
  class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
555
555
  tag: "div",
@@ -557,8 +557,8 @@ function Ee(e, t, i, o, n, l) {
557
557
  appear: ""
558
558
  }, {
559
559
  default: m(() => [
560
- (s(!0), u(v, null, R(l.notifications, (r) => (s(), u(v, null, [
561
- r._value ? (s(), g(a, C({
560
+ (o(!0), u(k, null, L(l.notifications, (r) => (o(), u(k, null, [
561
+ r._value ? (o(), g(a, C({
562
562
  class: "white--bg",
563
563
  key: r._uid,
564
564
  modelValue: r._value,
@@ -571,17 +571,17 @@ function Ee(e, t, i, o, n, l) {
571
571
  }, null, 8, ze)
572
572
  ]),
573
573
  _: 2
574
- }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
574
+ }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
575
575
  ], 64))), 256))
576
576
  ]),
577
577
  _: 1
578
578
  }, 8, ["class", "name"])
579
579
  ]);
580
580
  }
581
- const w = (e, t) => {
581
+ const v = (e, t) => {
582
582
  const i = e.__vccOpts || e;
583
- for (const [o, n] of t)
584
- i[o] = n;
583
+ for (const [s, n] of t)
584
+ i[s] = n;
585
585
  return i;
586
586
  }, We = {
587
587
  name: "w-notification-manager",
@@ -599,11 +599,11 @@ const w = (e, t) => {
599
599
  },
600
600
  methods: {
601
601
  notifProps(e) {
602
- const { _value: t, _uid: i, message: o, timeout: n, ...l } = e;
602
+ const { _value: t, _uid: i, message: s, timeout: n, ...l } = e;
603
603
  return l.dismiss && (l.dismiss = !0), l;
604
604
  }
605
605
  }
606
- }, Ae = /* @__PURE__ */ w(We, [["render", Ee]]);
606
+ }, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
607
607
  var H;
608
608
  const F = class {
609
609
  constructor() {
@@ -628,10 +628,10 @@ const F = class {
628
628
  if (typeof t[0] == "object")
629
629
  i = { ...i, ...t[0] };
630
630
  else {
631
- const [o, n, l] = t;
631
+ const [s, n, l] = t;
632
632
  i = {
633
633
  ...i,
634
- message: o || "",
634
+ message: s || "",
635
635
  [n === void 0 ? "info" : n]: !0,
636
636
  timeout: l || l === 0 ? parseFloat(l) : 4e3
637
637
  };
@@ -645,8 +645,8 @@ const F = class {
645
645
  let G = F;
646
646
  H = new WeakMap(), ee(G, H, void 0);
647
647
  const Ke = (e, t, i) => {
648
- const o = document.createElement("div");
649
- e.appendChild(o);
648
+ const s = document.createElement("div");
649
+ e.appendChild(s);
650
650
  const n = Ce(Se({
651
651
  ...Ae,
652
652
  inject: ["$waveui"]
@@ -655,16 +655,16 @@ const Ke = (e, t, i) => {
655
655
  const a = t[l];
656
656
  n.component(a.name, { ...a, inject: ["$waveui"] });
657
657
  }
658
- n.mount(o), o.remove();
658
+ n.mount(s), s.remove();
659
659
  };
660
- let fe = !1;
660
+ let pe = !1;
661
661
  const Ne = (e) => {
662
662
  const t = window.matchMedia("(prefers-color-scheme: dark)");
663
663
  e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
664
664
  e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
665
665
  });
666
666
  }, He = (e, t) => {
667
- var i, o;
667
+ var i, s;
668
668
  for (const n in t)
669
669
  if ((i = e.props) != null && i[n])
670
670
  e.props[n].default = t[n];
@@ -672,7 +672,7 @@ const Ne = (e) => {
672
672
  let l = !1;
673
673
  if (Array.isArray(e.mixins) && e.mixins.length) {
674
674
  for (const a of e.mixins)
675
- if ((o = a == null ? void 0 : a.props) != null && o[n]) {
675
+ if ((s = a == null ? void 0 : a.props) != null && s[n]) {
676
676
  a.props[n].default = t[n], l = !0;
677
677
  break;
678
678
  }
@@ -705,8 +705,8 @@ const j = class {
705
705
  switchTheme(t, i = !1) {
706
706
  var n, l;
707
707
  this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || l.call(n);
708
- const o = this.config.colors[this.theme];
709
- Pe(o), this.colors = ue(o, he);
708
+ const s = this.config.colors[this.theme];
709
+ Pe(s), this.colors = de(s, ue);
710
710
  }
711
711
  });
712
712
  if (Y(j, X)) {
@@ -717,10 +717,10 @@ const j = class {
717
717
  const a = { ...i.colors };
718
718
  i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
719
719
  }
720
- let { components: o, ...n } = i;
720
+ let { components: s, ...n } = i;
721
721
  n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
722
722
  const l = Q(this.$waveui);
723
- t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = ue(n.colors[n.theme], he));
723
+ t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
724
724
  }
725
725
  static install(t, i = {}) {
726
726
  var n;
@@ -734,17 +734,17 @@ const j = class {
734
734
  window.addEventListener("scroll", r);
735
735
  }
736
736
  });
737
- const { components: o = {} } = i || {};
738
- for (const l in o) {
739
- const a = o[l];
737
+ const { components: s = {} } = i || {};
738
+ for (const l in s) {
739
+ const a = s[l];
740
740
  (n = i.presets) != null && n[a.name] && He(a, i.presets[a.name]), t.component(a.name, a);
741
741
  }
742
742
  t.mixin({
743
743
  beforeMount() {
744
- if (!fe) {
745
- fe = !0;
744
+ if (!pe) {
745
+ pe = !0;
746
746
  const l = Be("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
747
- r.classList.add("w-app"), a.theme === "auto" ? Ne(l) : l.switchTheme(a.theme, !0), Oe(l), Ke(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
747
+ r.classList.add("w-app"), a.theme === "auto" ? Ne(l) : l.switchTheme(a.theme, !0), Oe(l), Ke(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
748
748
  }
749
749
  }
750
750
  }), new j(t, i), te(j, X, !0);
@@ -753,24 +753,24 @@ const j = class {
753
753
  let N = j;
754
754
  X = new WeakMap(), ee(N, X, !1);
755
755
  const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
756
- function qe(e, t, i, o, n, l) {
756
+ function qe(e, t, i, s, n, l) {
757
757
  const a = $("w-button"), r = $("w-transition-expand");
758
- return s(), u("div", {
758
+ return o(), u("div", {
759
759
  class: f(["w-accordion", l.accordionClasses])
760
760
  }, [
761
- (s(!0), u(v, null, R(e.accordionItems, (d, h) => (s(), u("div", {
761
+ (o(!0), u(k, null, L(e.accordionItems, (d, h) => (o(), u("div", {
762
762
  class: f(["w-accordion__item", l.itemClasses(d)]),
763
763
  key: h,
764
764
  "aria-expanded": d._expanded ? "true" : "false"
765
765
  }, [
766
766
  y("div", {
767
767
  class: f(["w-accordion__item-title", i.titleClass]),
768
- onClick: (k) => !d._disabled && l.toggleItem(d, k),
769
- onFocus: (k) => e.$emit("focus", l.getOriginalItem(d)),
770
- onKeypress: W((k) => !d._disabled && l.toggleItem(d, k), ["enter"]),
768
+ onClick: (w) => !d._disabled && l.toggleItem(d, w),
769
+ onFocus: (w) => e.$emit("focus", l.getOriginalItem(d)),
770
+ onKeypress: W((w) => !d._disabled && l.toggleItem(d, w), ["enter"]),
771
771
  tabindex: !d._disabled && 0
772
772
  }, [
773
- i.expandIcon && !i.expandIconRight ? (s(), g(a, {
773
+ i.expandIcon && !i.expandIconRight ? (o(), g(a, {
774
774
  key: 0,
775
775
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
776
776
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -780,14 +780,14 @@ function qe(e, t, i, o, n, l) {
780
780
  text: "",
781
781
  onKeypress: t[0] || (t[0] = M(() => {
782
782
  }, ["stop"])),
783
- onClick: M((k) => !d._disabled && l.toggleItem(d, k), ["stop"])
784
- }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : c("", !0),
785
- e.$slots[`item-title.${d.id || h + 1}`] ? p(e.$slots, `item-title.${d.id || h + 1}`, {
783
+ onClick: M((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
784
+ }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
785
+ e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
786
786
  key: 1,
787
787
  item: l.getOriginalItem(d),
788
788
  expanded: d._expanded,
789
789
  index: h + 1
790
- }) : p(e.$slots, "item-title", {
790
+ }) : c(e.$slots, "item-title", {
791
791
  key: 2,
792
792
  item: l.getOriginalItem(d),
793
793
  expanded: d._expanded,
@@ -798,32 +798,32 @@ function qe(e, t, i, o, n, l) {
798
798
  innerHTML: d[i.itemTitleKey]
799
799
  }, null, 8, je)
800
800
  ]),
801
- i.expandIcon && i.expandIconRight ? (s(), g(a, {
801
+ i.expandIcon && i.expandIconRight ? (o(), g(a, {
802
802
  key: 3,
803
803
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
804
804
  icon: d._expanded && i.collapseIcon || i.expandIcon,
805
805
  text: "",
806
806
  onKeypress: t[1] || (t[1] = M(() => {
807
807
  }, ["stop"])),
808
- onClick: M((k) => !d._disabled && l.toggleItem(d, k), ["stop"])
809
- }, null, 8, ["icon", "onClick", "class"])) : c("", !0)
808
+ onClick: M((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
809
+ }, null, 8, ["icon", "onClick", "class"])) : p("", !0)
810
810
  ], 42, Fe),
811
811
  V(r, {
812
812
  y: "",
813
- onAfterLeave: (k) => l.onEndOfCollapse(d),
813
+ onAfterLeave: (w) => l.onEndOfCollapse(d),
814
814
  duration: i.duration
815
815
  }, {
816
816
  default: m(() => [
817
- d._expanded ? (s(), u("div", {
817
+ d._expanded ? (o(), u("div", {
818
818
  key: 0,
819
819
  class: f(["w-accordion__item-content", i.contentClass])
820
820
  }, [
821
- e.$slots[`item-content.${d.id || h + 1}`] ? p(e.$slots, `item-content.${d.id || h + 1}`, {
821
+ e.$slots[`item-content.${d.id || h + 1}`] ? c(e.$slots, `item-content.${d.id || h + 1}`, {
822
822
  key: 0,
823
823
  item: l.getOriginalItem(d),
824
824
  expanded: d._expanded,
825
825
  index: h + 1
826
- }) : p(e.$slots, "item-content", {
826
+ }) : c(e.$slots, "item-content", {
827
827
  key: 1,
828
828
  item: l.getOriginalItem(d),
829
829
  expanded: d._expanded,
@@ -833,7 +833,7 @@ function qe(e, t, i, o, n, l) {
833
833
  innerHTML: d[i.itemContentKey]
834
834
  }, null, 8, Ue)
835
835
  ])
836
- ], 2)) : c("", !0)
836
+ ], 2)) : p("", !0)
837
837
  ]),
838
838
  _: 2
839
839
  }, 1032, ["onAfterLeave", "duration"])
@@ -884,8 +884,8 @@ const Xe = {
884
884
  },
885
885
  methods: {
886
886
  toggleItem(e, t) {
887
- e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
888
- const i = this.accordionItems.map((o) => o._expanded || !1);
887
+ e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((s) => s._index !== e._index && (s._expanded = !1));
888
+ const i = this.accordionItems.map((s) => s._expanded || !1);
889
889
  this.$emit("update:modelValue", i), this.$emit("input", i), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
890
890
  },
891
891
  onEndOfCollapse(e) {
@@ -926,15 +926,15 @@ const Xe = {
926
926
  deep: !0
927
927
  }
928
928
  }
929
- }, Ye = /* @__PURE__ */ w(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
930
- function Je(e, t, i, o, n, l) {
929
+ }, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
930
+ function Je(e, t, i, s, n, l) {
931
931
  const a = $("w-icon"), r = $("w-button");
932
- return n.show ? (s(), u("div", C({
932
+ return n.show ? (o(), u("div", C({
933
933
  key: 0,
934
934
  class: "w-alert"
935
935
  }, z(e.$attrs, !0), { class: l.classes }), [
936
- l.type || i.icon || i.dismiss ? (s(), u(v, { key: 0 }, [
937
- l.type || i.icon ? (s(), g(a, {
936
+ l.type || i.icon || i.dismiss ? (o(), u(k, { key: 0 }, [
937
+ l.type || i.icon ? (o(), g(a, {
938
938
  key: 0,
939
939
  class: "w-alert__icon mr2"
940
940
  }, {
@@ -942,11 +942,11 @@ function Je(e, t, i, o, n, l) {
942
942
  S(_(l.type ? l.typeIcon : i.icon), 1)
943
943
  ]),
944
944
  _: 1
945
- })) : c("", !0),
945
+ })) : p("", !0),
946
946
  y("div", Ge, [
947
- p(e.$slots, "default")
947
+ c(e.$slots, "default")
948
948
  ]),
949
- i.dismiss ? (s(), g(r, {
949
+ i.dismiss ? (o(), g(r, {
950
950
  key: 1,
951
951
  class: "w-alert__dismiss",
952
952
  onClick: t[0] || (t[0] = (d) => {
@@ -956,9 +956,9 @@ function Je(e, t, i, o, n, l) {
956
956
  color: "inherit",
957
957
  sm: "",
958
958
  text: ""
959
- })) : c("", !0)
960
- ], 64)) : p(e.$slots, "default", { key: 1 })
961
- ], 16)) : c("", !0);
959
+ })) : p("", !0)
960
+ ], 64)) : c(e.$slots, "default", { key: 1 })
961
+ ], 16)) : p("", !0);
962
962
  }
963
963
  const Qe = {
964
964
  name: "w-alert",
@@ -1039,63 +1039,70 @@ const Qe = {
1039
1039
  this.show = e;
1040
1040
  }
1041
1041
  }
1042
- }, Ze = /* @__PURE__ */ w(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = {
1043
- key: 0,
1044
- class: "w-autocomplete__menu",
1045
- ref: "menu"
1046
- }, st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
1047
- function nt(e, t, i, o, n, l) {
1042
+ }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = ["value"], st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
1043
+ function nt(e, t, i, s, n, l) {
1048
1044
  const a = $("w-button"), r = $("w-transition-slide-fade");
1049
- return s(), u("div", {
1045
+ return o(), u("div", {
1050
1046
  class: f(["w-autocomplete", l.classes]),
1051
- onClick: t[6] || (t[6] = (...d) => l.onClick && l.onClick(...d))
1047
+ onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d))
1052
1048
  }, [
1053
- e.selection.length ? (s(!0), u(v, { key: 0 }, R(e.selection, (d, h) => (s(), u("div", et, [
1054
- y("span", {
1055
- innerHTML: d[i.itemLabelKey]
1056
- }, null, 8, tt),
1057
- V(a, {
1058
- onClick: M((k) => l.unselectItem(h), ["stop"]),
1059
- icon: "i-cross",
1060
- xs: "",
1061
- text: "",
1062
- color: "currentColor"
1063
- }, null, 8, ["onClick"])
1064
- ]))), 256)) : c("", !0),
1065
- !e.selection.length && !e.keywords && i.placeholder ? (s(), u("div", {
1049
+ e.selection.length ? (o(!0), u(k, { key: 0 }, L(e.selection, (d, h) => (o(), u("div", et, [
1050
+ c(e.$slots, "selection", {
1051
+ item: d,
1052
+ unselect: (w) => l.unselectItem(w)
1053
+ }, () => [
1054
+ y("span", {
1055
+ innerHTML: d[i.itemLabelKey]
1056
+ }, null, 8, tt),
1057
+ V(a, {
1058
+ onClick: M((w) => l.unselectItem(h), ["stop"]),
1059
+ icon: "wi-cross",
1060
+ xs: "",
1061
+ text: "",
1062
+ color: "currentColor"
1063
+ }, null, 8, ["onClick"])
1064
+ ])
1065
+ ]))), 256)) : p("", !0),
1066
+ !e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
1066
1067
  key: 1,
1067
1068
  class: "w-autocomplete__placeholder",
1068
1069
  innerHTML: i.placeholder
1069
- }, null, 8, it)) : c("", !0),
1070
- A(y("input", C({
1070
+ }, null, 8, it)) : p("", !0),
1071
+ y("input", C({
1071
1072
  class: "w-autocomplete__input",
1072
1073
  ref: "input",
1073
- "onUpdate:modelValue": t[0] || (t[0] = (d) => e.keywords = d),
1074
- onFocus: t[1] || (t[1] = (...d) => l.onFocus && l.onFocus(...d)),
1075
- onKeydown: t[2] || (t[2] = (...d) => l.onKeydown && l.onKeydown(...d)),
1076
- onDrop: t[3] || (t[3] = (...d) => l.onDrop && l.onDrop(...d)),
1077
- onCompositionstart: t[4] || (t[4] = (...d) => l.onCompositionStart && l.onCompositionStart(...d)),
1078
- onCompositionupdate: t[5] || (t[5] = (...d) => l.onCompositionUpdate && l.onCompositionUpdate(...d))
1079
- }, z(e.$listeners, !0)), null, 16), [
1080
- [ae, e.keywords]
1081
- ]),
1082
- V(r, { y: "" }, {
1074
+ value: e.keywords
1075
+ }, z(l.inputEventListeners, !0)), null, 16, lt),
1076
+ V(r, null, {
1083
1077
  default: m(() => [
1084
- e.menuOpen ? (s(), u("ul", lt, [
1085
- (s(!0), u(v, null, R(l.filteredItems, (d, h) => (s(), u("li", {
1078
+ e.menuOpen ? (o(), u("ul", {
1079
+ key: 0,
1080
+ class: "w-autocomplete__menu",
1081
+ ref: "menu",
1082
+ onMousedown: t[1] || (t[1] = (d) => e.menuIsBeingClicked = !0),
1083
+ onMouseup: t[2] || (t[2] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d)),
1084
+ onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
1085
+ onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
1086
+ }, [
1087
+ (o(!0), u(k, null, L(l.filteredItems, (d, h) => (o(), u("li", {
1086
1088
  key: h,
1087
- onClick: M((k) => l.selectItem(d), ["stop"]),
1089
+ onClick: M((w) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
1088
1090
  class: f({ highlighted: e.highlightedItem === d.uid })
1089
1091
  }, [
1090
- y("span", {
1091
- innerHTML: d[i.itemLabelKey]
1092
- }, null, 8, ot)
1092
+ c(e.$slots, "item", {
1093
+ item: d,
1094
+ highlighted: e.highlightedItem === d.uid
1095
+ }, () => [
1096
+ y("span", {
1097
+ innerHTML: d[i.itemLabelKey]
1098
+ }, null, 8, ot)
1099
+ ])
1093
1100
  ], 10, st))), 128)),
1094
- l.filteredItems.length ? c("", !0) : (s(), u("li", {
1101
+ l.filteredItems.length ? p("", !0) : (o(), u("li", {
1095
1102
  key: 0,
1096
1103
  class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
1097
1104
  }, [
1098
- p(e.$slots, "no-match", {}, () => {
1105
+ c(e.$slots, "no-match", {}, () => {
1099
1106
  var d;
1100
1107
  return [
1101
1108
  y("div", {
@@ -1104,8 +1111,15 @@ function nt(e, t, i, o, n, l) {
1104
1111
  }, null, 8, at)
1105
1112
  ];
1106
1113
  })
1107
- ], 2))
1108
- ], 512)) : c("", !0)
1114
+ ], 2)),
1115
+ e.$slots["extra-item"] ? (o(), u("li", {
1116
+ key: 1,
1117
+ class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
1118
+ onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
1119
+ }, [
1120
+ c(e.$slots, "extra-item")
1121
+ ], 2)) : p("", !0)
1122
+ ], 544)) : p("", !0)
1109
1123
  ]),
1110
1124
  _: 3
1111
1125
  })
@@ -1125,12 +1139,13 @@ const rt = {
1125
1139
  itemLabelKey: { type: String, default: "label" },
1126
1140
  itemSearchableKey: { type: String, default: "searchable" }
1127
1141
  },
1128
- emits: ["input"],
1142
+ emits: ["update:modelValue", "input", "focus", "blur", "keydown", "item-click", "item-select", "extra-item-select"],
1129
1143
  data: () => ({
1130
1144
  keywords: "",
1131
1145
  selection: [],
1132
1146
  menuOpen: !1,
1133
- highlightedItem: null
1147
+ highlightedItem: null,
1148
+ menuIsBeingClicked: !1
1134
1149
  }),
1135
1150
  computed: {
1136
1151
  normalizedKeywords() {
@@ -1148,15 +1163,38 @@ const rt = {
1148
1163
  },
1149
1164
  filteredItems() {
1150
1165
  let e = this.optimizedItemsForSearch;
1151
- const t = this.normalizedSelection.join(","), i = (o) => !t.includes(o.searchable);
1152
- return this.keywords ? e = e.filter((o) => o.searchable.includes(this.normalizedKeywords) ? this.multiple && !this.allowDuplicates ? i(o) : !0 : !1) : this.multiple && !this.allowDuplicates && (e = e.filter(i)), e;
1166
+ const t = this.normalizedSelection.join(","), i = (s) => !t.includes(s.searchable);
1167
+ return this.keywords ? e = e.filter((s) => s.searchable.includes(this.normalizedKeywords) ? this.multiple && !this.allowDuplicates ? i(s) : !0 : !1) : this.multiple && !this.allowDuplicates && (e = e.filter(i)), e;
1153
1168
  },
1154
1169
  highlightedItemIndex() {
1155
- return this.highlightedItem === null ? -1 : this.filteredItems.findIndex((e) => e.uid === this.highlightedItem);
1170
+ return this.highlightedItem === null ? -1 : this.highlightedItem === "extra-item" ? this.filteredItems.length : this.filteredItems.findIndex((e) => e.uid === this.highlightedItem);
1171
+ },
1172
+ inputEventListeners() {
1173
+ return {
1174
+ ...this.$attrs,
1175
+ input: (e) => {
1176
+ this.keywords = e.target.value;
1177
+ },
1178
+ focus: (e) => {
1179
+ this.menuIsBeingClicked || (this.onFocus(e), this.$emit("focus", e));
1180
+ },
1181
+ blur: (e) => {
1182
+ this.menuIsBeingClicked || this.$emit("blur", e);
1183
+ },
1184
+ keydown: (e) => {
1185
+ this.onKeydown(e), this.$emit("keydown", e);
1186
+ },
1187
+ drop: this.onDrop,
1188
+ compositionstart: this.onCompositionStart,
1189
+ compositionupdate: this.onCompositionUpdate
1190
+ };
1156
1191
  },
1157
1192
  classes() {
1158
1193
  return {
1159
- "w-autocomplete--open": this.menuOpen
1194
+ "w-autocomplete--open": this.menuOpen,
1195
+ "w-autocomplete--filled": this.selection.length,
1196
+ "w-autocomplete--has-keywords": this.keywords,
1197
+ "w-autocomplete--empty": !this.selection.length && !this.keywords
1160
1198
  };
1161
1199
  }
1162
1200
  },
@@ -1165,10 +1203,18 @@ const rt = {
1165
1203
  return e.toLowerCase().normalize("NFKD").replace(/\p{Diacritic}/gu, "").replace(/œ/g, "oe");
1166
1204
  },
1167
1205
  selectItem(e) {
1168
- this.multiple || (this.selection = []), this.selection.push(e), this.highlightedItem = e.uid, this.keywords = "", this.$emit("input", this.multiple ? this.selection.map((t) => t[this.itemValueKey]) : e[this.itemValueKey]), this.$refs.input.focus(), this.multiple || this.closeMenu();
1206
+ this.multiple || (this.selection = []), this.selection.push(e), this.highlightedItem = e.uid, this.keywords = "";
1207
+ const t = this.multiple ? this.selection.map((i) => i[this.itemValueKey]) : e[this.itemValueKey];
1208
+ this.$emit("item-select", e), this.$emit("update:modelValue", t), this.$emit("input", t), this.$refs.input.focus(), this.multiple || this.closeMenu();
1169
1209
  },
1170
1210
  unselectItem(e) {
1171
- this.selection.splice(e != null ? e : this.selection.length - 1, 1), this.highlightedItem = null, this.$emit("input", null), this.$refs.input.focus();
1211
+ this.selection.splice(e != null ? e : this.selection.length - 1, 1), this.highlightedItem = null, this.$emit("update:modelValue", null), this.$emit("input", null), this.$refs.input.focus();
1212
+ },
1213
+ selectExtraItem() {
1214
+ this.keywords = "", this.$emit("extra-item-select"), this.closeMenu();
1215
+ },
1216
+ setEndOfMenuClick() {
1217
+ setTimeout(() => this.menuIsBeingClicked = !1, 100);
1172
1218
  },
1173
1219
  onClick() {
1174
1220
  this.openOnKeydown || this.openMenu(), this.$refs.input.focus();
@@ -1178,20 +1224,25 @@ const rt = {
1178
1224
  },
1179
1225
  onKeydown(e) {
1180
1226
  var i;
1181
- const t = this.filteredItems.length;
1182
- if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 8 && (!this.keywords || !e.target.selectionStart && !e.target.selectionEnd))
1227
+ const t = this.filteredItems.length + (this.$slots["extra-item"] ? 1 : 0);
1228
+ if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9)
1229
+ this.closeMenu();
1230
+ else if (e.keyCode === 8 && (!this.keywords || !e.target.selectionStart && !e.target.selectionEnd))
1183
1231
  this.unselectItem();
1184
1232
  else if (e.keyCode === 13)
1185
- e.preventDefault(), this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
1233
+ e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
1186
1234
  else if ([38, 40].includes(e.keyCode)) {
1187
1235
  e.preventDefault();
1188
- let o = this.highlightedItemIndex;
1189
- o === -1 ? o = e.keyCode === 38 ? t - 1 : 0 : o = (o + (e.keyCode === 38 ? -1 : 1) + t) % t, this.highlightedItem = ((i = this.filteredItems[o]) == null ? void 0 : i.uid) || 0;
1236
+ let s = this.highlightedItemIndex;
1237
+ 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;
1190
1238
  const n = this.$refs.menu;
1191
- if (n) {
1192
- const { offsetHeight: l, offsetTop: a } = n.childNodes[o] || {};
1193
- n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1194
- }
1239
+ if (n)
1240
+ if (this.$slots["extra-item"] && s === t - 1)
1241
+ n.scrollTop = n.scrollHeight;
1242
+ else {
1243
+ const { offsetHeight: l, offsetTop: a } = n.childNodes[s] || {};
1244
+ n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1245
+ }
1195
1246
  } else
1196
1247
  !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
1197
1248
  },
@@ -1221,11 +1272,18 @@ const rt = {
1221
1272
  },
1222
1273
  beforeUnmount() {
1223
1274
  document.removeEventListener("click", this.onDocumentClick);
1275
+ },
1276
+ watch: {
1277
+ modelValue(e) {
1278
+ this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
1279
+ this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
1280
+ });
1281
+ }
1224
1282
  }
1225
- }, dt = /* @__PURE__ */ w(rt, [["render", nt]]), ut = { class: "w-app" };
1226
- function ht(e, t, i, o, n, l) {
1227
- return s(), u("div", ut, [
1228
- p(e.$slots, "default")
1283
+ }, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = { class: "w-app" };
1284
+ function ht(e, t, i, s, n, l) {
1285
+ return o(), u("div", ut, [
1286
+ c(e.$slots, "default")
1229
1287
  ]);
1230
1288
  }
1231
1289
  const ct = {
@@ -1243,27 +1301,27 @@ const ct = {
1243
1301
  textCenter: { type: Boolean },
1244
1302
  textRight: { type: Boolean }
1245
1303
  }
1246
- }, pt = /* @__PURE__ */ w(ct, [["render", ht]]);
1247
- function ft(e, t, i, o, n, l) {
1248
- return s(), u("div", C({ class: "w-badge-wrap" }, z(e.$attrs, !0)), [
1249
- p(e.$slots, "default"),
1304
+ }, pt = /* @__PURE__ */ v(ct, [["render", ht]]);
1305
+ function ft(e, t, i, s, n, l) {
1306
+ return o(), u("div", C({ class: "w-badge-wrap" }, z(e.$attrs, !0)), [
1307
+ c(e.$slots, "default"),
1250
1308
  V(O, {
1251
1309
  name: `${i.transition}`
1252
1310
  }, {
1253
1311
  default: m(() => [
1254
- i.modelValue ? (s(), u("div", {
1312
+ i.modelValue ? (o(), u("div", {
1255
1313
  key: 0,
1256
1314
  class: f(["w-badge", l.classes]),
1257
- style: L(l.styles),
1315
+ style: R(l.styles),
1258
1316
  "aria-atomic": "true",
1259
1317
  "aria-label": "Badge",
1260
1318
  "aria-live": "polite",
1261
1319
  role: "status"
1262
1320
  }, [
1263
- i.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
1321
+ i.dot ? p("", !0) : c(e.$slots, "badge", { key: 0 }, () => [
1264
1322
  S(_(i.modelValue === !0 ? "" : i.modelValue || ""), 1)
1265
1323
  ])
1266
- ], 6)) : c("", !0)
1324
+ ], 6)) : p("", !0)
1267
1325
  ]),
1268
1326
  _: 3
1269
1327
  }, 8, ["name"])
@@ -1332,19 +1390,19 @@ const mt = {
1332
1390
  return this.forcedSize && `font-size: ${this.forcedSize}`;
1333
1391
  }
1334
1392
  }
1335
- }, gt = /* @__PURE__ */ w(mt, [["render", ft]]), bt = ["innerHTML"];
1336
- function yt(e, t, i, o, n, l) {
1393
+ }, gt = /* @__PURE__ */ v(mt, [["render", ft]]), bt = ["innerHTML"];
1394
+ function yt(e, t, i, s, n, l) {
1337
1395
  const a = $("w-icon");
1338
- return s(), u("div", {
1396
+ return o(), u("div", {
1339
1397
  class: f(["w-breadcrumbs", l.classes])
1340
1398
  }, [
1341
- (s(!0), u(v, null, R(i.items, (r, d) => (s(), u(v, null, [
1342
- d && e.$slots.separator ? (s(), u("span", {
1399
+ (o(!0), u(k, null, L(i.items, (r, d) => (o(), u(k, null, [
1400
+ d && e.$slots.separator ? (o(), u("span", {
1343
1401
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1344
1402
  key: `${d}a`
1345
1403
  }, [
1346
- p(e.$slots, "separator", { index: d })
1347
- ], 2)) : d ? (s(), g(a, {
1404
+ c(e.$slots, "separator", { index: d })
1405
+ ], 2)) : d ? (o(), g(a, {
1348
1406
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1349
1407
  key: `${d}b`
1350
1408
  }, {
@@ -1352,35 +1410,35 @@ function yt(e, t, i, o, n, l) {
1352
1410
  S(_(i.icon), 1)
1353
1411
  ]),
1354
1412
  _: 2
1355
- }, 1032, ["class"])) : c("", !0),
1356
- r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (s(), u(v, { key: 2 }, [
1357
- e.$slots.item ? (s(), g(I(l.hasRouter ? "router-link" : "a"), {
1413
+ }, 1032, ["class"])) : p("", !0),
1414
+ r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(k, { key: 2 }, [
1415
+ e.$slots.item ? (o(), g(I(l.hasRouter ? "router-link" : "a"), {
1358
1416
  class: f(["w-breadcrumbs__item", i.color || null]),
1359
1417
  key: `${d}c`,
1360
1418
  to: l.hasRouter && r[i.itemRouteKey],
1361
1419
  href: r[i.itemRouteKey]
1362
1420
  }, {
1363
1421
  default: m(() => [
1364
- p(e.$slots, "item", {
1422
+ c(e.$slots, "item", {
1365
1423
  item: r,
1366
1424
  index: d + 1,
1367
1425
  isLast: d === i.items.length - 1
1368
1426
  })
1369
1427
  ]),
1370
1428
  _: 2
1371
- }, 1032, ["to", "href", "class"])) : (s(), g(I(l.hasRouter ? "router-link" : "a"), {
1429
+ }, 1032, ["to", "href", "class"])) : (o(), g(I(l.hasRouter ? "router-link" : "a"), {
1372
1430
  class: f(["w-breadcrumbs__item", i.color || null]),
1373
1431
  key: `${d}d`,
1374
1432
  to: l.hasRouter && r[i.itemRouteKey],
1375
1433
  href: r[i.itemRouteKey],
1376
1434
  innerHTML: r[i.itemLabelKey]
1377
1435
  }, null, 8, ["to", "href", "innerHTML", "class"]))
1378
- ], 64)) : e.$slots.item ? p(e.$slots, "item", {
1436
+ ], 64)) : e.$slots.item ? c(e.$slots, "item", {
1379
1437
  key: `${d}e`,
1380
1438
  item: r,
1381
1439
  index: d + 1,
1382
1440
  isLast: d === i.items.length - 1
1383
- }) : (s(), u("span", {
1441
+ }) : (o(), u("span", {
1384
1442
  key: `${d}f`,
1385
1443
  innerHTML: r[i.itemLabelKey]
1386
1444
  }, null, 8, bt))
@@ -1417,7 +1475,7 @@ const wt = {
1417
1475
  };
1418
1476
  }
1419
1477
  }
1420
- }, vt = /* @__PURE__ */ w(wt, [["render", yt]]), kt = {
1478
+ }, vt = /* @__PURE__ */ v(wt, [["render", yt]]), kt = {
1421
1479
  key: 0,
1422
1480
  class: "w-button__loader"
1423
1481
  }, _t = /* @__PURE__ */ y("svg", { viewBox: "0 0 40 40" }, [
@@ -1431,28 +1489,28 @@ const wt = {
1431
1489
  "stroke-linecap": "round"
1432
1490
  })
1433
1491
  ], -1);
1434
- function Ct(e, t, i, o, n, l) {
1492
+ function Ct(e, t, i, s, n, l) {
1435
1493
  const a = $("w-icon");
1436
- return s(), g(I(i.route ? "a" : "button"), C({
1494
+ return o(), g(I(i.route ? "a" : "button"), C({
1437
1495
  class: ["w-button", l.classes],
1438
1496
  type: !i.route && i.type,
1439
1497
  href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
1440
1498
  disabled: !!i.disabled || null
1441
1499
  }, z(l.listeners), { style: l.styles }), {
1442
1500
  default: m(() => [
1443
- i.icon ? (s(), g(a, le(C({ key: 0 }, i.iconProps || {})), {
1501
+ i.icon ? (o(), g(a, le(C({ key: 0 }, i.iconProps || {})), {
1444
1502
  default: m(() => [
1445
1503
  S(_(i.icon), 1)
1446
1504
  ]),
1447
1505
  _: 1
1448
- }, 16)) : p(e.$slots, "default", { key: 1 }),
1506
+ }, 16)) : c(e.$slots, "default", { key: 1 }),
1449
1507
  V(O, { name: "scale-fade" }, {
1450
1508
  default: m(() => [
1451
- i.loading ? (s(), u("div", kt, [
1452
- p(e.$slots, "loading", {}, () => [
1509
+ i.loading ? (o(), u("div", kt, [
1510
+ c(e.$slots, "loading", {}, () => [
1453
1511
  _t
1454
1512
  ])
1455
- ])) : c("", !0)
1513
+ ])) : p("", !0)
1456
1514
  ]),
1457
1515
  _: 3
1458
1516
  })
@@ -1550,14 +1608,14 @@ const St = {
1550
1608
  };
1551
1609
  }
1552
1610
  }
1553
- }, Bt = /* @__PURE__ */ w(St, [["render", Ct]]), $t = ["innerHTML"];
1554
- function Vt(e, t, i, o, n, l) {
1611
+ }, Bt = /* @__PURE__ */ v(St, [["render", Ct]]), $t = ["innerHTML"];
1612
+ function Vt(e, t, i, s, n, l) {
1555
1613
  const a = $("button-partial");
1556
- return i.tooltip ? (s(), g(I("w-tooltip"), le(C({ key: 0 }, i.tooltipProps || {})), {
1614
+ return i.tooltip ? (o(), g(I("w-tooltip"), le(C({ key: 0 }, i.tooltipProps || {})), {
1557
1615
  activator: m(({ on: r }) => [
1558
1616
  V(a, C(l.buttonProps, z(r)), {
1559
1617
  default: m(() => [
1560
- p(e.$slots, "default")
1618
+ c(e.$slots, "default")
1561
1619
  ]),
1562
1620
  _: 2
1563
1621
  }, 1040)
@@ -1566,12 +1624,12 @@ function Vt(e, t, i, o, n, l) {
1566
1624
  y("div", { innerHTML: i.tooltip }, null, 8, $t)
1567
1625
  ]),
1568
1626
  _: 3
1569
- }, 16)) : (s(), g(a, le(C({ key: 1 }, l.buttonProps)), {
1627
+ }, 16)) : (o(), g(a, le(C({ key: 1 }, l.buttonProps)), {
1570
1628
  loading: m(() => [
1571
- p(e.$slots, "loading")
1629
+ c(e.$slots, "loading")
1572
1630
  ]),
1573
1631
  default: m(() => [
1574
- p(e.$slots, "default")
1632
+ c(e.$slots, "default")
1575
1633
  ]),
1576
1634
  _: 3
1577
1635
  }, 16));
@@ -1620,43 +1678,43 @@ const It = {
1620
1678
  return { ...i, ...this.$attrs };
1621
1679
  }
1622
1680
  }
1623
- }, Tt = /* @__PURE__ */ w(It, [["render", Vt]]), K = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Rt = ["innerHTML"];
1624
- function Lt(e, t, i, o, n, l) {
1681
+ }, Tt = /* @__PURE__ */ v(It, [["render", Vt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Lt = ["innerHTML"];
1682
+ function Rt(e, t, i, s, n, l) {
1625
1683
  const a = $("w-image");
1626
- return s(), u("div", {
1684
+ return o(), u("div", {
1627
1685
  class: f(["w-card", l.classes])
1628
1686
  }, [
1629
- e.$slots.title ? (s(), u("div", {
1687
+ e.$slots.title ? (o(), u("div", {
1630
1688
  key: 0,
1631
1689
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
1632
1690
  }, [
1633
- p(e.$slots, "title")
1634
- ], 2)) : i.title ? (s(), u("div", {
1691
+ c(e.$slots, "title")
1692
+ ], 2)) : i.title ? (o(), u("div", {
1635
1693
  key: 1,
1636
1694
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1637
1695
  innerHTML: i.title
1638
- }, null, 10, Rt)) : c("", !0),
1639
- i.image ? (s(), g(a, C({
1696
+ }, null, 10, Lt)) : p("", !0),
1697
+ i.image ? (o(), g(a, C({
1640
1698
  key: 2,
1641
1699
  class: "w-card__image",
1642
1700
  src: i.image
1643
1701
  }, l.imgProps), {
1644
1702
  default: m(() => [
1645
- p(e.$slots, "image-content")
1703
+ c(e.$slots, "image-content")
1646
1704
  ]),
1647
1705
  _: 3
1648
- }, 16, ["src"])) : c("", !0),
1706
+ }, 16, ["src"])) : p("", !0),
1649
1707
  y("div", {
1650
1708
  class: f(["w-card__content", l.contentClasses])
1651
1709
  }, [
1652
- p(e.$slots, "default")
1710
+ c(e.$slots, "default")
1653
1711
  ], 2),
1654
- e.$slots.actions ? (s(), u("div", {
1712
+ e.$slots.actions ? (o(), u("div", {
1655
1713
  key: 3,
1656
1714
  class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
1657
1715
  }, [
1658
- p(e.$slots, "actions")
1659
- ], 2)) : c("", !0)
1716
+ c(e.$slots, "actions")
1717
+ ], 2)) : p("", !0)
1660
1718
  ], 2);
1661
1719
  }
1662
1720
  const xt = {
@@ -1678,10 +1736,10 @@ const xt = {
1678
1736
  emits: [],
1679
1737
  computed: {
1680
1738
  titleClasses() {
1681
- return K(this.titleClass);
1739
+ return A(this.titleClass);
1682
1740
  },
1683
1741
  contentClasses() {
1684
- return K(this.contentClass);
1742
+ return A(this.contentClass);
1685
1743
  },
1686
1744
  titleHasToolbar() {
1687
1745
  const { title: e } = this.$slots;
@@ -1710,7 +1768,7 @@ const xt = {
1710
1768
  };
1711
1769
  }
1712
1770
  }
1713
- }, Ot = /* @__PURE__ */ w(xt, [["render", Lt]]), E = {
1771
+ }, Ot = /* @__PURE__ */ v(xt, [["render", Rt]]), E = {
1714
1772
  inject: {
1715
1773
  formRegister: { default: null },
1716
1774
  formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
@@ -1756,8 +1814,8 @@ const xt = {
1756
1814
  ], -1), Wt = [
1757
1815
  Et
1758
1816
  ], At = ["for"], Kt = ["for", "innerHTML"];
1759
- function Nt(e, t, i, o, n, l) {
1760
- return s(), g(I(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1817
+ function Nt(e, t, i, s, n, l) {
1818
+ return o(), g(I(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1761
1819
  valid: e.valid,
1762
1820
  "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1763
1821
  onReset: t[6] || (t[6] = (a) => {
@@ -1782,44 +1840,44 @@ function Nt(e, t, i, o, n, l) {
1782
1840
  "aria-checked": n.isChecked || "false",
1783
1841
  role: "checkbox"
1784
1842
  }, null, 40, Pt),
1785
- l.hasLabel && i.labelOnLeft ? (s(), u(v, { key: 0 }, [
1786
- e.$slots.default ? (s(), u("label", {
1843
+ l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
1844
+ e.$slots.default ? (o(), u("label", {
1787
1845
  key: 0,
1788
1846
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1789
1847
  for: `w-checkbox--${e._.uid}`
1790
1848
  }, [
1791
- p(e.$slots, "default", {}, () => [
1849
+ c(e.$slots, "default", {}, () => [
1792
1850
  S(_(i.label), 1)
1793
1851
  ])
1794
- ], 10, Mt)) : i.label ? (s(), u("label", {
1852
+ ], 10, Mt)) : i.label ? (o(), u("label", {
1795
1853
  key: 1,
1796
1854
  class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
1797
1855
  for: `w-checkbox--${e._.uid}`,
1798
1856
  innerHTML: i.label
1799
- }, null, 10, zt)) : c("", !0)
1800
- ], 64)) : c("", !0),
1857
+ }, null, 10, zt)) : p("", !0)
1858
+ ], 64)) : p("", !0),
1801
1859
  y("div", {
1802
1860
  class: f(["w-checkbox__input", this.color]),
1803
1861
  onClick: t[4] || (t[4] = (a) => {
1804
1862
  e.$refs.input.focus(), e.$refs.input.click();
1805
1863
  })
1806
1864
  }, Wt, 2),
1807
- l.hasLabel && !i.labelOnLeft ? (s(), u(v, { key: 1 }, [
1808
- e.$slots.default ? (s(), u("label", {
1865
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
1866
+ e.$slots.default ? (o(), u("label", {
1809
1867
  key: 0,
1810
1868
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1811
1869
  for: `w-checkbox--${e._.uid}`
1812
1870
  }, [
1813
- p(e.$slots, "default", {}, () => [
1871
+ c(e.$slots, "default", {}, () => [
1814
1872
  S(_(i.label), 1)
1815
1873
  ])
1816
- ], 10, At)) : i.label ? (s(), u("label", {
1874
+ ], 10, At)) : i.label ? (o(), u("label", {
1817
1875
  key: 1,
1818
1876
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1819
1877
  for: `w-checkbox--${e._.uid}`,
1820
1878
  innerHTML: i.label
1821
- }, null, 10, Kt)) : c("", !0)
1822
- ], 64)) : c("", !0)
1879
+ }, null, 10, Kt)) : p("", !0)
1880
+ ], 64)) : p("", !0)
1823
1881
  ]),
1824
1882
  _: 3
1825
1883
  }, 16, ["valid", "class"]);
@@ -1886,10 +1944,10 @@ const Ht = {
1886
1944
  this.isChecked = e;
1887
1945
  }
1888
1946
  }
1889
- }, Dt = /* @__PURE__ */ w(Ht, [["render", Nt]]), Ft = ["innerHTML"];
1890
- function jt(e, t, i, o, n, l) {
1947
+ }, Dt = /* @__PURE__ */ v(Ht, [["render", Nt]]), Ft = ["innerHTML"];
1948
+ function jt(e, t, i, s, n, l) {
1891
1949
  const a = $("w-checkbox");
1892
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
1950
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
1893
1951
  valid: e.valid,
1894
1952
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
1895
1953
  onReset: l.reset,
@@ -1898,7 +1956,7 @@ function jt(e, t, i, o, n, l) {
1898
1956
  class: l.classes
1899
1957
  }), {
1900
1958
  default: m(() => [
1901
- (s(!0), u(v, null, R(l.checkboxItems, (r, d) => (s(), g(a, C({
1959
+ (o(!0), u(k, null, L(l.checkboxItems, (r, d) => (o(), g(a, C({
1902
1960
  key: d,
1903
1961
  "model-value": r._isChecked,
1904
1962
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -1910,16 +1968,16 @@ function jt(e, t, i, o, n, l) {
1910
1968
  class: { mt1: !i.inline && d }
1911
1969
  }), {
1912
1970
  default: m(() => [
1913
- e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
1971
+ e.$slots[`item.${d + 1}`] || e.$slots.item ? c(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
1914
1972
  key: 0,
1915
1973
  item: l.getOriginalItem(r),
1916
1974
  checked: !!r._isChecked,
1917
1975
  index: d + 1,
1918
1976
  innerHTML: r.label
1919
- }) : r.label ? (s(), u("div", {
1977
+ }) : r.label ? (o(), u("div", {
1920
1978
  key: 1,
1921
1979
  innerHTML: r.label
1922
- }, null, 8, Ft)) : c("", !0)
1980
+ }, null, 8, Ft)) : p("", !0)
1923
1981
  ]),
1924
1982
  _: 2
1925
1983
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -1974,24 +2032,24 @@ const Ut = {
1974
2032
  },
1975
2033
  toggleCheck(e, t) {
1976
2034
  e._isChecked = t;
1977
- const i = this.checkboxItems.filter((o) => o._isChecked).map((o) => this.returnValues ? o.returnValue : o.value);
2035
+ const i = this.checkboxItems.filter((s) => s._isChecked).map((s) => this.returnValues ? s.returnValue : s.value);
1978
2036
  this.$emit("update:modelValue", i), this.$emit("input", i);
1979
2037
  },
1980
2038
  getOriginalItem(e) {
1981
2039
  return this.items[e._index];
1982
2040
  }
1983
2041
  }
1984
- }, qt = /* @__PURE__ */ w(Ut, [["render", jt]]);
1985
- function Xt(e, t, i, o, n, l) {
1986
- const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = be("focus");
1987
- return s(), g(d, C({
2042
+ }, qt = /* @__PURE__ */ v(Ut, [["render", jt]]);
2043
+ function Xt(e, t, i, s, n, l) {
2044
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
2045
+ return o(), g(d, C({
1988
2046
  modelValue: e.showPopup,
1989
- "onUpdate:modelValue": t[2] || (t[2] = (k) => e.showPopup = k)
2047
+ "onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
1990
2048
  }, l.wMenuProps), {
1991
- activator: m(({ on: k }) => [
1992
- V(a, C({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : k }), {
2049
+ activator: m(({ on: w }) => [
2050
+ V(a, C({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : w }), {
1993
2051
  default: m(() => [
1994
- p(e.$slots, "default")
2052
+ c(e.$slots, "default")
1995
2053
  ]),
1996
2054
  _: 2
1997
2055
  }, 1040)
@@ -2003,35 +2061,35 @@ function Xt(e, t, i, o, n, l) {
2003
2061
  }, {
2004
2062
  default: m(() => [
2005
2063
  y("div", null, [
2006
- p(e.$slots, "question", {}, () => [
2064
+ c(e.$slots, "question", {}, () => [
2007
2065
  S(_(i.question), 1)
2008
2066
  ])
2009
2067
  ]),
2010
2068
  y("div", {
2011
2069
  class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2012
2070
  }, [
2013
- i.cancel !== !1 ? (s(), g(a, C({
2071
+ i.cancel !== !1 ? (o(), g(a, C({
2014
2072
  key: 0,
2015
2073
  class: "mr2"
2016
2074
  }, l.cancelButtonProps, {
2017
2075
  "bg-color": (l.cancelButton || {}).bgColor || "error",
2018
- onKeyup: t[0] || (t[0] = W((k) => !i.persistent && l.onCancel(), ["escape"])),
2076
+ onKeyup: t[0] || (t[0] = W((w) => !i.persistent && l.onCancel(), ["escape"])),
2019
2077
  onClick: l.onCancel
2020
2078
  }), {
2021
2079
  default: m(() => [
2022
- p(e.$slots, "cancel", {}, () => [
2080
+ c(e.$slots, "cancel", {}, () => [
2023
2081
  S(_(l.cancelButton.label), 1)
2024
2082
  ])
2025
2083
  ]),
2026
2084
  _: 3
2027
- }, 16, ["bg-color", "onClick"])) : c("", !0),
2028
- A((s(), g(a, C(l.confirmButtonProps, {
2085
+ }, 16, ["bg-color", "onClick"])) : p("", !0),
2086
+ K((o(), g(a, C(l.confirmButtonProps, {
2029
2087
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2030
- onKeyup: t[1] || (t[1] = W((k) => !i.persistent && l.onCancel(), ["escape"])),
2088
+ onKeyup: t[1] || (t[1] = W((w) => !i.persistent && l.onCancel(), ["escape"])),
2031
2089
  onClick: l.onConfirm
2032
2090
  }), {
2033
2091
  default: m(() => [
2034
- p(e.$slots, "confirm", {}, () => [
2092
+ c(e.$slots, "confirm", {}, () => [
2035
2093
  S(_(l.confirmButton.label), 1)
2036
2094
  ])
2037
2095
  ]),
@@ -2140,13 +2198,13 @@ const Yt = {
2140
2198
  this.$emit("confirm"), this.showPopup = !1;
2141
2199
  }
2142
2200
  }
2143
- }, Gt = /* @__PURE__ */ w(Yt, [["render", Xt]]);
2144
- function Jt(e, t, i, o, n, l) {
2145
- return s(), u("div", {
2201
+ }, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]);
2202
+ function Jt(e, t, i, s, n, l) {
2203
+ return o(), u("div", {
2146
2204
  class: f(["w-date-picker", l.classes]),
2147
- style: L(l.styles)
2205
+ style: R(l.styles)
2148
2206
  }, [
2149
- p(e.$slots, "default")
2207
+ c(e.$slots, "default")
2150
2208
  ], 6);
2151
2209
  }
2152
2210
  const Qt = {
@@ -2167,10 +2225,10 @@ const Qt = {
2167
2225
  return !1;
2168
2226
  }
2169
2227
  }
2170
- }, Zt = /* @__PURE__ */ w(Qt, [["render", Jt]]);
2171
- function ei(e, t, i, o, n, l) {
2228
+ }, Zt = /* @__PURE__ */ v(Qt, [["render", Jt]]);
2229
+ function ei(e, t, i, s, n, l) {
2172
2230
  const a = $("w-card"), r = $("w-overlay");
2173
- return s(), g(r, {
2231
+ return o(), g(r, {
2174
2232
  class: f(["w-dialog", l.classes]),
2175
2233
  "model-value": n.showWrapper,
2176
2234
  persistent: i.persistent,
@@ -2187,7 +2245,7 @@ function ei(e, t, i, o, n, l) {
2187
2245
  onAfterLeave: l.onBeforeClose
2188
2246
  }, {
2189
2247
  default: m(() => [
2190
- A(V(a, {
2248
+ K(V(a, {
2191
2249
  class: f(["w-dialog__content", i.dialogClass]),
2192
2250
  ref: "dialog",
2193
2251
  "no-border": "",
@@ -2196,29 +2254,29 @@ function ei(e, t, i, o, n, l) {
2196
2254
  "title-class": i.titleClass,
2197
2255
  "content-class": i.contentClass,
2198
2256
  title: i.title || void 0,
2199
- style: L(l.contentStyles)
2257
+ style: R(l.contentStyles)
2200
2258
  }, Z({
2201
2259
  default: m(() => [
2202
- p(e.$slots, "default")
2260
+ c(e.$slots, "default")
2203
2261
  ]),
2204
2262
  _: 2
2205
2263
  }, [
2206
2264
  e.$slots.title ? {
2207
2265
  name: "title",
2208
2266
  fn: m(() => [
2209
- p(e.$slots, "title")
2267
+ c(e.$slots, "title")
2210
2268
  ]),
2211
2269
  key: "0"
2212
2270
  } : void 0,
2213
2271
  e.$slots.actions ? {
2214
2272
  name: "actions",
2215
2273
  fn: m(() => [
2216
- p(e.$slots, "actions")
2274
+ c(e.$slots, "actions")
2217
2275
  ]),
2218
2276
  key: "1"
2219
2277
  } : void 0
2220
2278
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2221
- [ne, n.showContent]
2279
+ [ae, n.showContent]
2222
2280
  ])
2223
2281
  ]),
2224
2282
  _: 3
@@ -2294,14 +2352,14 @@ const ti = {
2294
2352
  this.showWrapper = e, this.showContent = e;
2295
2353
  }
2296
2354
  }
2297
- }, ii = /* @__PURE__ */ w(ti, [["render", ei]]), li = ["role", "aria-orientation"];
2298
- function si(e, t, i, o, n, l) {
2299
- return s(), u("div", {
2355
+ }, ii = /* @__PURE__ */ v(ti, [["render", ei]]), li = ["role", "aria-orientation"];
2356
+ function si(e, t, i, s, n, l) {
2357
+ return o(), u("div", {
2300
2358
  class: f(["w-divider", l.classes]),
2301
2359
  role: e.$slots.default ? null : "presentation",
2302
2360
  "aria-orientation": i.vertical ? "vertical" : "horizontal"
2303
2361
  }, [
2304
- p(e.$slots, "default")
2362
+ c(e.$slots, "default")
2305
2363
  ], 10, li);
2306
2364
  }
2307
2365
  const oi = {
@@ -2324,20 +2382,20 @@ const oi = {
2324
2382
  };
2325
2383
  }
2326
2384
  }
2327
- }, ai = /* @__PURE__ */ w(oi, [["render", si]]), ni = { class: "w-drawer-wrap__pushable" };
2328
- function ri(e, t, i, o, n, l) {
2385
+ }, ai = /* @__PURE__ */ v(oi, [["render", si]]), ni = { class: "w-drawer-wrap__pushable" };
2386
+ function ri(e, t, i, s, n, l) {
2329
2387
  const a = $("w-overlay");
2330
- return n.showWrapper || i.pushContent ? (s(), u("div", {
2388
+ return n.showWrapper || i.pushContent ? (o(), u("div", {
2331
2389
  key: 0,
2332
2390
  class: f(["w-drawer-wrap", l.wrapperClasses])
2333
2391
  }, [
2334
- i.pushContent ? (s(), u("div", {
2392
+ i.pushContent ? (o(), u("div", {
2335
2393
  key: 0,
2336
2394
  class: "w-drawer-wrap__track",
2337
- style: L(l.trackStyles)
2395
+ style: R(l.trackStyles)
2338
2396
  }, [
2339
2397
  y("div", ni, [
2340
- i.noOverlay ? c("", !0) : (s(), g(a, {
2398
+ i.noOverlay ? p("", !0) : (o(), g(a, {
2341
2399
  key: 0,
2342
2400
  modelValue: n.showDrawer,
2343
2401
  "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
@@ -2347,7 +2405,7 @@ function ri(e, t, i, o, n, l) {
2347
2405
  "bg-color": i.overlayColor || "transparent",
2348
2406
  opacity: i.overlayOpacity
2349
2407
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2350
- p(e.$slots, "pushable")
2408
+ c(e.$slots, "pushable")
2351
2409
  ]),
2352
2410
  V(O, {
2353
2411
  name: "fade",
@@ -2355,22 +2413,22 @@ function ri(e, t, i, o, n, l) {
2355
2413
  onAfterLeave: l.onClose
2356
2414
  }, {
2357
2415
  default: m(() => [
2358
- n.showDrawer ? (s(), g(I(i.tag || "aside"), {
2416
+ n.showDrawer ? (o(), g(I(i.tag || "aside"), {
2359
2417
  key: 0,
2360
2418
  class: f(["w-drawer", l.drawerClasses]),
2361
2419
  ref: "drawer",
2362
- style: L(l.styles)
2420
+ style: R(l.styles)
2363
2421
  }, {
2364
2422
  default: m(() => [
2365
- p(e.$slots, "default")
2423
+ c(e.$slots, "default")
2366
2424
  ]),
2367
2425
  _: 3
2368
- }, 8, ["class", "style"])) : c("", !0)
2426
+ }, 8, ["class", "style"])) : p("", !0)
2369
2427
  ]),
2370
2428
  _: 3
2371
2429
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2372
- ], 4)) : (s(), u(v, { key: 1 }, [
2373
- i.noOverlay ? c("", !0) : (s(), g(a, {
2430
+ ], 4)) : (o(), u(k, { key: 1 }, [
2431
+ i.noOverlay ? p("", !0) : (o(), g(a, {
2374
2432
  key: 0,
2375
2433
  modelValue: n.showDrawer,
2376
2434
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
@@ -2387,22 +2445,22 @@ function ri(e, t, i, o, n, l) {
2387
2445
  onAfterLeave: l.onClose
2388
2446
  }, {
2389
2447
  default: m(() => [
2390
- n.showDrawer ? (s(), g(I(i.tag || "aside"), {
2448
+ n.showDrawer ? (o(), g(I(i.tag || "aside"), {
2391
2449
  key: 0,
2392
2450
  class: f(["w-drawer", l.drawerClasses]),
2393
2451
  ref: "drawer",
2394
- style: L(l.styles)
2452
+ style: R(l.styles)
2395
2453
  }, {
2396
2454
  default: m(() => [
2397
- p(e.$slots, "default")
2455
+ c(e.$slots, "default")
2398
2456
  ]),
2399
2457
  _: 3
2400
- }, 8, ["class", "style"])) : c("", !0)
2458
+ }, 8, ["class", "style"])) : p("", !0)
2401
2459
  ]),
2402
2460
  _: 3
2403
2461
  }, 8, ["name", "onBeforeLeave", "onAfterLeave"])
2404
2462
  ], 64))
2405
- ], 2)) : c("", !0);
2463
+ ], 2)) : p("", !0);
2406
2464
  }
2407
2465
  const di = { left: "right", right: "left", top: "down", bottom: "up" }, ui = {
2408
2466
  name: "w-drawer",
@@ -2509,13 +2567,13 @@ const di = { left: "right", right: "left", top: "down", bottom: "up" }, ui = {
2509
2567
  e && (this.showWrapper = !0), this.showDrawer = e;
2510
2568
  }
2511
2569
  }
2512
- }, hi = /* @__PURE__ */ w(ui, [["render", ri]]);
2513
- function ci(e, t, i, o, n, l) {
2514
- return s(), g(I(i.tag), {
2570
+ }, hi = /* @__PURE__ */ v(ui, [["render", ri]]);
2571
+ function ci(e, t, i, s, n, l) {
2572
+ return o(), g(I(i.tag), {
2515
2573
  class: f(["w-flex", l.classes])
2516
2574
  }, {
2517
2575
  default: m(() => [
2518
- p(e.$slots, "default")
2576
+ c(e.$slots, "default")
2519
2577
  ]),
2520
2578
  _: 3
2521
2579
  }, 8, ["class"]);
@@ -2567,15 +2625,15 @@ const pi = {
2567
2625
  };
2568
2626
  }
2569
2627
  }
2570
- }, fi = /* @__PURE__ */ w(pi, [["render", ci]]);
2571
- function mi(e, t, i, o, n, l) {
2572
- return s(), u("form", {
2628
+ }, fi = /* @__PURE__ */ v(pi, [["render", ci]]);
2629
+ function mi(e, t, i, s, n, l) {
2630
+ return o(), u("form", {
2573
2631
  class: f(["w-form", l.classes]),
2574
2632
  onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2575
2633
  onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
2576
2634
  novalidate: ""
2577
2635
  }, [
2578
- p(e.$slots, "default")
2636
+ c(e.$slots, "default")
2579
2637
  ], 34);
2580
2638
  }
2581
2639
  const gi = async (e, t) => {
@@ -2641,8 +2699,8 @@ const gi = async (e, t) => {
2641
2699
  let t = 0;
2642
2700
  return await (async () => {
2643
2701
  var i;
2644
- for (const o of this.formElements)
2645
- !((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));
2702
+ for (const s of this.formElements)
2703
+ !((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));
2646
2704
  })(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
2647
2705
  },
2648
2706
  async validateElement(e) {
@@ -2650,8 +2708,8 @@ const gi = async (e, t) => {
2650
2708
  },
2651
2709
  async checkElementValidators(e) {
2652
2710
  let t = !1, i = "";
2653
- await gi(e.validators, async (o) => {
2654
- const n = await (typeof o == "function" && o(e.inputValue));
2711
+ await gi(e.validators, async (s) => {
2712
+ const n = await (typeof s == "function" && s(e.inputValue));
2655
2713
  return t = typeof n != "string", i = t ? "" : n, !t;
2656
2714
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
2657
2715
  },
@@ -2659,7 +2717,7 @@ const gi = async (e, t) => {
2659
2717
  this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
2660
2718
  },
2661
2719
  updateErrorsCount(e = null, t = !1) {
2662
- 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);
2720
+ 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);
2663
2721
  },
2664
2722
  onSubmit(e) {
2665
2723
  this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
@@ -2673,29 +2731,29 @@ const gi = async (e, t) => {
2673
2731
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
2674
2732
  }
2675
2733
  }
2676
- }, yi = /* @__PURE__ */ w(bi, [["render", mi]]);
2677
- function wi(e, t, i, o, n, l) {
2734
+ }, yi = /* @__PURE__ */ v(bi, [["render", mi]]);
2735
+ function wi(e, t, i, s, n, l) {
2678
2736
  const a = $("w-transition-expand");
2679
- return s(), u("div", {
2737
+ return o(), u("div", {
2680
2738
  class: f(l.classes)
2681
2739
  }, [
2682
2740
  y("div", {
2683
2741
  class: f(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
2684
2742
  }, [
2685
- p(e.$slots, "default")
2743
+ c(e.$slots, "default")
2686
2744
  ], 2),
2687
2745
  V(a, { y: "" }, {
2688
2746
  default: m(() => [
2689
- e.Validation.message ? (s(), u("div", {
2747
+ e.Validation.message ? (o(), u("div", {
2690
2748
  key: 0,
2691
2749
  class: f(["w-form-el__error", l.formProps.validationColor])
2692
2750
  }, [
2693
- p(e.$slots, "error-message", {
2751
+ c(e.$slots, "error-message", {
2694
2752
  message: e.Validation.message
2695
2753
  }, () => [
2696
2754
  S(_(e.Validation.message), 1)
2697
2755
  ])
2698
- ], 2)) : c("", !0)
2756
+ ], 2)) : p("", !0)
2699
2757
  ]),
2700
2758
  _: 3
2701
2759
  })
@@ -2767,13 +2825,13 @@ const vi = {
2767
2825
  beforeUnmount() {
2768
2826
  this.formUnregister && this.formUnregister(this);
2769
2827
  }
2770
- }, ki = /* @__PURE__ */ w(vi, [["render", wi]]);
2771
- function _i(e, t, i, o, n, l) {
2772
- return s(), g(I(i.tag), {
2828
+ }, ki = /* @__PURE__ */ v(vi, [["render", wi]]);
2829
+ function _i(e, t, i, s, n, l) {
2830
+ return o(), g(I(i.tag), {
2773
2831
  class: f(["w-grid", l.classes])
2774
2832
  }, {
2775
2833
  default: m(() => [
2776
- p(e.$slots, "default")
2834
+ c(e.$slots, "default")
2777
2835
  ]),
2778
2836
  _: 3
2779
2837
  }, 8, ["class"]);
@@ -2814,26 +2872,26 @@ const Ci = {
2814
2872
  },
2815
2873
  classes() {
2816
2874
  let e = null;
2817
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [o, n]) => (i[`${o}-columns${n}`] = !0, i), {}));
2875
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, n]) => (i[`${s}-columns${n}`] = !0, i), {}));
2818
2876
  let t = null;
2819
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [o, n]) => (i[`${o}-gap${n}`] = !0, i), {})), {
2877
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, n]) => (i[`${s}-gap${n}`] = !0, i), {})), {
2820
2878
  ...e || { [`columns${this.columns}`]: this.columns },
2821
2879
  ...t || { [`gap${this.gap}`]: this.gap }
2822
2880
  };
2823
2881
  }
2824
2882
  }
2825
- }, Si = /* @__PURE__ */ w(Ci, [["render", _i]]);
2826
- function Bi(e, t, i, o, n, l) {
2827
- return s(), g(I(i.tag || "i"), C({ class: "w-icon" }, z(e.$attrs), {
2883
+ }, Si = /* @__PURE__ */ v(Ci, [["render", _i]]);
2884
+ function Bi(e, t, i, s, n, l) {
2885
+ return o(), g(I(i.tag || "i"), C({ class: "w-icon" }, z(e.$attrs), {
2828
2886
  class: l.classes,
2829
2887
  role: "icon",
2830
2888
  "aria-hidden": "true",
2831
2889
  style: l.readIcon() && l.styles
2832
2890
  }), {
2833
2891
  default: m(() => [
2834
- l.hasLigature ? (s(), u(v, { key: 0 }, [
2892
+ l.hasLigature ? (o(), u(k, { key: 0 }, [
2835
2893
  S(_(e.icon), 1)
2836
- ], 64)) : c("", !0)
2894
+ ], 64)) : p("", !0)
2837
2895
  ]),
2838
2896
  _: 1
2839
2897
  }, 16, ["class", "style"]);
@@ -2907,15 +2965,15 @@ const $i = {
2907
2965
  return this.fontName = t, this.icon = i, !0;
2908
2966
  }
2909
2967
  }
2910
- }, Vi = /* @__PURE__ */ w($i, [["render", Bi]]), Ii = {
2968
+ }, Vi = /* @__PURE__ */ v($i, [["render", Bi]]), Ii = {
2911
2969
  key: 0,
2912
2970
  class: "w-image__loader"
2913
2971
  };
2914
- function Ti(e, t, i, o, n, l) {
2972
+ function Ti(e, t, i, s, n, l) {
2915
2973
  const a = $("w-progress");
2916
- return s(), g(I(l.wrapperTag), {
2974
+ return o(), g(I(l.wrapperTag), {
2917
2975
  class: f(["w-image-wrap", l.wrapperClasses]),
2918
- style: L(l.wrapperStyles)
2976
+ style: R(l.wrapperStyles)
2919
2977
  }, {
2920
2978
  default: m(() => [
2921
2979
  V(O, {
@@ -2923,36 +2981,36 @@ function Ti(e, t, i, o, n, l) {
2923
2981
  appear: ""
2924
2982
  }, {
2925
2983
  default: m(() => [
2926
- n.loaded ? (s(), g(I(i.tag), {
2984
+ n.loaded ? (o(), g(I(i.tag), {
2927
2985
  key: 0,
2928
2986
  class: f(["w-image", l.imageClasses]),
2929
- style: L(l.imageStyles),
2987
+ style: R(l.imageStyles),
2930
2988
  src: i.tag === "img" ? n.imgSrc : null
2931
- }, null, 8, ["class", "style", "src"])) : c("", !0)
2989
+ }, null, 8, ["class", "style", "src"])) : p("", !0)
2932
2990
  ]),
2933
2991
  _: 1
2934
2992
  }, 8, ["name"]),
2935
- !i.noSpinner && n.loading ? (s(), u("div", Ii, [
2936
- e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), g(a, C({
2993
+ !i.noSpinner && n.loading ? (o(), u("div", Ii, [
2994
+ e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), g(a, C({
2937
2995
  key: 1,
2938
2996
  circle: "",
2939
2997
  indeterminate: ""
2940
2998
  }, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
2941
- ])) : c("", !0),
2942
- e.$slots.default ? (s(), g(I(l.wrapperTag), {
2999
+ ])) : p("", !0),
3000
+ e.$slots.default ? (o(), g(I(l.wrapperTag), {
2943
3001
  key: 1,
2944
3002
  class: f(["w-image__content", i.contentClass])
2945
3003
  }, {
2946
3004
  default: m(() => [
2947
- p(e.$slots, "default")
3005
+ c(e.$slots, "default")
2948
3006
  ]),
2949
3007
  _: 3
2950
- }, 8, ["class"])) : c("", !0)
3008
+ }, 8, ["class"])) : p("", !0)
2951
3009
  ]),
2952
3010
  _: 3
2953
3011
  }, 8, ["class", "style"]);
2954
3012
  }
2955
- const Ri = {
3013
+ const Li = {
2956
3014
  name: "w-image",
2957
3015
  props: {
2958
3016
  tag: { type: String, default: "span" },
@@ -3020,8 +3078,8 @@ const Ri = {
3020
3078
  if (!this.loading)
3021
3079
  return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
3022
3080
  const i = new Image();
3023
- 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) => {
3024
- this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
3081
+ 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) => {
3082
+ this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
3025
3083
  }, i.src = e ? this.fallback : this.src;
3026
3084
  });
3027
3085
  }
@@ -3048,13 +3106,13 @@ const Ri = {
3048
3106
  this.imgHeight = e;
3049
3107
  }
3050
3108
  }
3051
- }, Li = /* @__PURE__ */ w(Ri, [["render", Ti]]), xi = ["name"], Oi = ["for"], Pi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], zi = {
3109
+ }, Ri = /* @__PURE__ */ v(Li, [["render", Ti]]), xi = ["name"], Oi = ["for"], Pi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], zi = {
3052
3110
  class: "w-input__no-file",
3053
3111
  key: "no-file"
3054
3112
  }, Ei = ["for"], Wi = ["src"], Ai = ["for"];
3055
- function Ki(e, t, i, o, n, l) {
3113
+ function Ki(e, t, i, s, n, l) {
3056
3114
  const a = $("w-icon"), r = $("w-progress");
3057
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3115
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3058
3116
  valid: e.valid,
3059
3117
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3060
3118
  onReset: t[11] || (t[11] = (d) => {
@@ -3064,32 +3122,32 @@ function Ki(e, t, i, o, n, l) {
3064
3122
  class: l.classes
3065
3123
  }), {
3066
3124
  default: m(() => [
3067
- i.type === "hidden" ? A((s(), u("input", {
3125
+ i.type === "hidden" ? K((o(), u("input", {
3068
3126
  key: 0,
3069
3127
  type: "hidden",
3070
3128
  name: e.name || null,
3071
3129
  "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3072
3130
  }, null, 8, xi)), [
3073
- [ae, n.inputValue]
3074
- ]) : (s(), u(v, { key: 1 }, [
3075
- i.labelPosition === "left" ? (s(), u(v, { key: 0 }, [
3076
- e.$slots.default || i.label ? (s(), u("label", {
3131
+ [be, n.inputValue]
3132
+ ]) : (o(), u(k, { key: 1 }, [
3133
+ i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
3134
+ e.$slots.default || i.label ? (o(), u("label", {
3077
3135
  key: 0,
3078
3136
  class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
3079
3137
  for: `w-input--${e._.uid}`
3080
3138
  }, [
3081
- p(e.$slots, "default", {}, () => [
3139
+ c(e.$slots, "default", {}, () => [
3082
3140
  S(_(i.label), 1)
3083
3141
  ])
3084
- ], 10, Oi)) : c("", !0)
3085
- ], 64)) : c("", !0),
3142
+ ], 10, Oi)) : p("", !0)
3143
+ ], 64)) : p("", !0),
3086
3144
  y("div", {
3087
3145
  class: f(["w-input__input-wrap", l.inputWrapClasses])
3088
3146
  }, [
3089
- p(e.$slots, "icon-left", {
3147
+ c(e.$slots, "icon-left", {
3090
3148
  inputId: `w-input--${e._.uid}`
3091
3149
  }, () => [
3092
- i.innerIconLeft ? (s(), g(a, {
3150
+ i.innerIconLeft ? (o(), g(a, {
3093
3151
  key: 0,
3094
3152
  class: "w-input__icon w-input__icon--inner-left",
3095
3153
  tag: "label",
@@ -3100,9 +3158,9 @@ function Ki(e, t, i, o, n, l) {
3100
3158
  S(_(i.innerIconLeft), 1)
3101
3159
  ]),
3102
3160
  _: 1
3103
- }, 8, ["for"])) : c("", !0)
3161
+ }, 8, ["for"])) : p("", !0)
3104
3162
  ]),
3105
- i.type !== "file" ? A((s(), u("input", C({
3163
+ i.type !== "file" ? K((o(), u("input", C({
3106
3164
  key: 0,
3107
3165
  class: "w-input__input",
3108
3166
  ref: "input",
@@ -3127,7 +3185,7 @@ function Ki(e, t, i, o, n, l) {
3127
3185
  tabindex: e.tabindex || null
3128
3186
  }, l.attrs), null, 16, Pi)), [
3129
3187
  [$e, n.inputValue]
3130
- ]) : (s(), u(v, { key: 1 }, [
3188
+ ]) : (o(), u(k, { key: 1 }, [
3131
3189
  y("input", C({
3132
3190
  ref: "input",
3133
3191
  id: `w-input--${e._.uid}`,
@@ -3148,18 +3206,18 @@ function Ki(e, t, i, o, n, l) {
3148
3206
  for: `w-input--${e._.uid}`
3149
3207
  }, {
3150
3208
  default: m(() => [
3151
- !n.inputFiles.length && n.isFocused ? (s(), u("span", zi, [
3152
- p(e.$slots, "no-file", {}, () => [
3153
- e.$slots["no-file"] === void 0 ? (s(), u(v, { key: 0 }, [
3209
+ !n.inputFiles.length && n.isFocused ? (o(), u("span", zi, [
3210
+ c(e.$slots, "no-file", {}, () => [
3211
+ e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
3154
3212
  S("No file")
3155
- ], 64)) : c("", !0)
3213
+ ], 64)) : p("", !0)
3156
3214
  ])
3157
- ])) : c("", !0),
3158
- (s(!0), u(v, null, R(n.inputFiles, (d, h) => (s(), u("span", {
3215
+ ])) : p("", !0),
3216
+ (o(!0), u(k, null, L(n.inputFiles, (d, h) => (o(), u("span", {
3159
3217
  key: d.lastModified
3160
3218
  }, [
3161
3219
  S(_(h ? ", " : ""), 1),
3162
- (s(), u("span", {
3220
+ (o(), u("span", {
3163
3221
  class: "filename",
3164
3222
  key: `${h}b`
3165
3223
  }, _(d.base), 1)),
@@ -3169,20 +3227,20 @@ function Ki(e, t, i, o, n, l) {
3169
3227
  _: 3
3170
3228
  }, 8, ["for"])
3171
3229
  ], 64)),
3172
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(v, { key: 2 }, [
3173
- e.$slots.default || i.label ? (s(), u("label", {
3230
+ i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
3231
+ e.$slots.default || i.label ? (o(), u("label", {
3174
3232
  key: 0,
3175
3233
  class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
3176
3234
  }, [
3177
- p(e.$slots, "default", {}, () => [
3235
+ c(e.$slots, "default", {}, () => [
3178
3236
  S(_(i.label), 1)
3179
3237
  ])
3180
- ], 2)) : c("", !0)
3181
- ], 64)) : c("", !0),
3182
- p(e.$slots, "icon-right", {
3238
+ ], 2)) : p("", !0)
3239
+ ], 64)) : p("", !0),
3240
+ c(e.$slots, "icon-right", {
3183
3241
  inputId: `w-input--${e._.uid}`
3184
3242
  }, () => [
3185
- i.innerIconRight ? (s(), g(a, {
3243
+ i.innerIconRight ? (o(), g(a, {
3186
3244
  key: 0,
3187
3245
  class: "w-input__icon w-input__icon--inner-right",
3188
3246
  tag: "label",
@@ -3193,47 +3251,47 @@ function Ki(e, t, i, o, n, l) {
3193
3251
  S(_(i.innerIconRight), 1)
3194
3252
  ]),
3195
3253
  _: 1
3196
- }, 8, ["for"])) : c("", !0)
3254
+ }, 8, ["for"])) : p("", !0)
3197
3255
  ]),
3198
- l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (s(), g(r, {
3256
+ l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
3199
3257
  key: 3,
3200
3258
  class: "fill-width",
3201
3259
  size: "2",
3202
3260
  color: i.progressColor || i.color,
3203
3261
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3204
- }, null, 8, ["color", "model-value"])) : c("", !0)
3262
+ }, null, 8, ["color", "model-value"])) : p("", !0)
3205
3263
  ], 2),
3206
- i.type === "file" && i.preview && n.inputFiles.length ? (s(), u("label", {
3264
+ i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
3207
3265
  key: 1,
3208
3266
  class: "d-flex",
3209
3267
  for: `w-input--${e._.uid}`
3210
3268
  }, [
3211
- (s(!0), u(v, null, R(n.inputFiles, (d, h) => (s(), u(v, null, [
3212
- d.progress < 100 ? (s(), u("i", {
3269
+ (o(!0), u(k, null, L(n.inputFiles, (d, h) => (o(), u(k, null, [
3270
+ d.progress < 100 ? (o(), u("i", {
3213
3271
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3214
3272
  key: `${h}a`
3215
- })) : d.preview ? (s(), u("img", {
3273
+ })) : d.preview ? (o(), u("img", {
3216
3274
  class: "w-input__file-preview",
3217
3275
  key: `${h}b`,
3218
3276
  src: d.preview,
3219
3277
  alt: ""
3220
- }, null, 8, Wi)) : (s(), u("i", {
3278
+ }, null, 8, Wi)) : (o(), u("i", {
3221
3279
  class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
3222
3280
  key: `${h}c`
3223
3281
  }, null, 2))
3224
3282
  ], 64))), 256))
3225
- ], 8, Ei)) : c("", !0),
3226
- i.labelPosition === "right" ? (s(), u(v, { key: 2 }, [
3227
- e.$slots.default || i.label ? (s(), u("label", {
3283
+ ], 8, Ei)) : p("", !0),
3284
+ i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
3285
+ e.$slots.default || i.label ? (o(), u("label", {
3228
3286
  key: 0,
3229
3287
  class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
3230
3288
  for: `w-input--${e._.uid}`
3231
3289
  }, [
3232
- p(e.$slots, "default", {}, () => [
3290
+ c(e.$slots, "default", {}, () => [
3233
3291
  S(_(i.label), 1)
3234
3292
  ])
3235
- ], 10, Ai)) : c("", !0)
3236
- ], 64)) : c("", !0)
3293
+ ], 10, Ai)) : p("", !0)
3294
+ ], 64)) : p("", !0)
3237
3295
  ], 64))
3238
3296
  ]),
3239
3297
  _: 3
@@ -3289,8 +3347,8 @@ const Ni = {
3289
3347
  return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
3290
3348
  },
3291
3349
  listeners() {
3292
- const { input: e, focus: t, blur: i, ...o } = this.$attrs;
3293
- return o;
3350
+ const { input: e, focus: t, blur: i, ...s } = this.$attrs;
3351
+ return s;
3294
3352
  },
3295
3353
  hasValue() {
3296
3354
  switch (this.type) {
@@ -3319,7 +3377,7 @@ const Ni = {
3319
3377
  return !this.staticLabel || !this.hasValue && !this.placeholder;
3320
3378
  },
3321
3379
  overallFilesProgress() {
3322
- const t = +this.inputFiles.reduce((i, o) => i + o.progress, 0) / this.inputFiles.length;
3380
+ const t = +this.inputFiles.reduce((i, s) => i + s.progress, 0) / this.inputFiles.length;
3323
3381
  return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
3324
3382
  },
3325
3383
  uploadInProgress() {
@@ -3373,9 +3431,9 @@ const Ni = {
3373
3431
  },
3374
3432
  onFileChange(e) {
3375
3433
  this.inputFiles = [...e.target.files].map((i) => {
3376
- const [, o = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
3434
+ const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
3377
3435
  name: i.name,
3378
- base: o || l,
3436
+ base: s || l,
3379
3437
  extension: n,
3380
3438
  type: i.type,
3381
3439
  size: i.size,
@@ -3390,8 +3448,8 @@ const Ni = {
3390
3448
  this.$emit("update:modelValue", t), this.$emit("input", t);
3391
3449
  },
3392
3450
  readFile(e, t) {
3393
- const i = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3394
- this.preview && !o && n ? i.addEventListener("load", (l) => {
3451
+ const i = new FileReader(), s = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3452
+ this.preview && !s && n ? i.addEventListener("load", (l) => {
3395
3453
  t.preview = l.target.result;
3396
3454
  }) : delete t.preview, i.addEventListener("progress", (l) => {
3397
3455
  l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
@@ -3408,17 +3466,17 @@ const Ni = {
3408
3466
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
3409
3467
  }
3410
3468
  }
3411
- }, Hi = /* @__PURE__ */ w(Ni, [["render", Ki]]);
3412
- function Di(e, t, i, o, n, l) {
3469
+ }, Hi = /* @__PURE__ */ v(Ni, [["render", Ki]]);
3470
+ function Di(e, t, i, s, n, l) {
3413
3471
  const a = $("w-icon"), r = $("w-list", !0);
3414
- return s(), u("ul", {
3472
+ return o(), u("ul", {
3415
3473
  class: f(["w-list", l.classes])
3416
3474
  }, [
3417
- (s(!0), u(v, null, R(e.listItems, (d, h) => (s(), u("li", {
3475
+ (o(!0), u(k, null, L(e.listItems, (d, h) => (o(), u("li", {
3418
3476
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3419
3477
  key: h
3420
3478
  }, [
3421
- i.icon ? (s(), g(a, {
3479
+ i.icon ? (o(), g(a, {
3422
3480
  key: 0,
3423
3481
  class: "w-list__item-bullet"
3424
3482
  }, {
@@ -3426,23 +3484,23 @@ function Di(e, t, i, o, n, l) {
3426
3484
  S(_(i.icon), 1)
3427
3485
  ]),
3428
3486
  _: 1
3429
- })) : c("", !0),
3430
- e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), g(I(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
3487
+ })) : p("", !0),
3488
+ e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), g(I(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
3431
3489
  key: 1,
3432
3490
  class: "w-list__item-label"
3433
3491
  }, l.liLabelProps(d, h, d._selected)), {
3434
3492
  default: m(() => [
3435
- e.$slots[`item.${h + 1}`] ? p(e.$slots, `item.${h + 1}`, {
3493
+ e.$slots[`item.${h + 1}`] ? c(e.$slots, `item.${h + 1}`, {
3436
3494
  key: 0,
3437
3495
  item: l.cleanLi(d),
3438
3496
  index: h + 1,
3439
3497
  selected: d._selected
3440
- }) : e.$slots.item ? p(e.$slots, "item", {
3498
+ }) : e.$slots.item ? c(e.$slots, "item", {
3441
3499
  key: 1,
3442
3500
  item: l.cleanLi(d),
3443
3501
  index: h + 1,
3444
3502
  selected: d._selected
3445
- }) : p(e.$slots, "default", {
3503
+ }) : c(e.$slots, "default", {
3446
3504
  key: 2,
3447
3505
  item: l.cleanLi(d),
3448
3506
  index: h + 1,
@@ -3452,23 +3510,23 @@ function Di(e, t, i, o, n, l) {
3452
3510
  ])
3453
3511
  ]),
3454
3512
  _: 2
3455
- }, 1040)) : (s(), g(I(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
3513
+ }, 1040)) : (o(), g(I(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
3456
3514
  key: 2,
3457
3515
  class: "w-list__item-label"
3458
3516
  }, l.liLabelProps(d, h, d._selected)), null, 16)),
3459
- (d.children || []).length ? (s(), g(r, C({ key: 3 }, e.$props, {
3517
+ (d.children || []).length ? (o(), g(r, C({ key: 3 }, e.$props, {
3460
3518
  items: d.children,
3461
3519
  depth: i.depth + 1,
3462
- "onUpdate:modelValue": t[0] || (t[0] = (k) => e.$emit("update:modelValue", k)),
3463
- onInput: t[1] || (t[1] = (k) => e.$emit("input", k)),
3464
- onItemClick: t[2] || (t[2] = (k) => e.$emit("item-click", k)),
3465
- onItemSelect: t[3] || (t[3] = (k) => e.$emit("item-select", k))
3520
+ "onUpdate:modelValue": t[0] || (t[0] = (w) => e.$emit("update:modelValue", w)),
3521
+ onInput: t[1] || (t[1] = (w) => e.$emit("input", w)),
3522
+ onItemClick: t[2] || (t[2] = (w) => e.$emit("item-click", w)),
3523
+ onItemSelect: t[3] || (t[3] = (w) => e.$emit("item-select", w))
3466
3524
  }), Z({ _: 2 }, [
3467
3525
  e.$slots.item ? {
3468
3526
  name: "item",
3469
- fn: m(({ item: k, index: B, selected: b }) => [
3470
- p(e.$slots, "item", {
3471
- item: l.cleanLi(k),
3527
+ fn: m(({ item: w, index: B, selected: b }) => [
3528
+ c(e.$slots, "item", {
3529
+ item: l.cleanLi(w),
3472
3530
  index: B,
3473
3531
  selected: b
3474
3532
  })
@@ -3476,18 +3534,18 @@ function Di(e, t, i, o, n, l) {
3476
3534
  key: "0"
3477
3535
  } : {
3478
3536
  name: "default",
3479
- fn: m(({ item: k, index: B, selected: b }) => [
3480
- p(e.$slots, "default", {
3481
- item: l.cleanLi(k),
3537
+ fn: m(({ item: w, index: B, selected: b }) => [
3538
+ c(e.$slots, "default", {
3539
+ item: l.cleanLi(w),
3482
3540
  index: B,
3483
3541
  selected: b
3484
3542
  }, () => [
3485
- S(_(k[i.itemLabelKey]), 1)
3543
+ S(_(w[i.itemLabelKey]), 1)
3486
3544
  ])
3487
3545
  ]),
3488
3546
  key: "1"
3489
3547
  }
3490
- ]), 1040, ["items", "depth"])) : c("", !0)
3548
+ ]), 1040, ["items", "depth"])) : p("", !0)
3491
3549
  ], 2))), 128))
3492
3550
  ], 2);
3493
3551
  }
@@ -3575,7 +3633,7 @@ const Fi = {
3575
3633
  };
3576
3634
  },
3577
3635
  liLabelProps(e, t, i) {
3578
- const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3636
+ const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3579
3637
  if (!e.disabled) {
3580
3638
  const d = this.cleanLi(e);
3581
3639
  this.$emit("item-click", d), this.$emit("item-select", d);
@@ -3591,12 +3649,12 @@ const Fi = {
3591
3649
  id: this.listId ? `${this.listId}_item-${t + 1}` : null,
3592
3650
  role: "option"
3593
3651
  };
3594
- 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) => {
3652
+ 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) => {
3595
3653
  const h = d.target.querySelector('input[type="checkbox"]');
3596
3654
  h && (h.focus(), h.click()), n();
3597
3655
  }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3598
3656
  d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3599
- }) : (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;
3657
+ }) : (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;
3600
3658
  },
3601
3659
  checkSelection(e) {
3602
3660
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
@@ -3605,7 +3663,7 @@ const Fi = {
3605
3663
  const e = this.selectedItems.map((i) => {
3606
3664
  if (!this.returnObject)
3607
3665
  return i._value;
3608
- const { _value: o, _selected: n, ...l } = i;
3666
+ const { _value: s, _selected: n, ...l } = i;
3609
3667
  return l;
3610
3668
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3611
3669
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3616,7 +3674,7 @@ const Fi = {
3616
3674
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3617
3675
  },
3618
3676
  cleanLi(e) {
3619
- const { _index: t, _value: i, _label: o, _selected: n, _focused: l, ...a } = e;
3677
+ const { _index: t, _value: i, _label: s, _selected: n, _focused: l, ...a } = e;
3620
3678
  return a;
3621
3679
  },
3622
3680
  refreshListItems() {
@@ -3634,7 +3692,7 @@ const Fi = {
3634
3692
  this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
3635
3693
  const t = this.checkSelection(e);
3636
3694
  this.listItems.forEach((i) => {
3637
- i._selected = t.find((o) => i._value === o) !== void 0;
3695
+ i._selected = t.find((s) => i._value === s) !== void 0;
3638
3696
  });
3639
3697
  }
3640
3698
  },
@@ -3657,7 +3715,7 @@ const Fi = {
3657
3715
  }
3658
3716
  }
3659
3717
  }
3660
- }, ji = /* @__PURE__ */ w(Fi, [["render", Di]]), we = {
3718
+ }, ji = /* @__PURE__ */ v(Fi, [["render", Di]]), we = {
3661
3719
  props: {
3662
3720
  appendTo: { type: [String, Boolean, Object] },
3663
3721
  fixed: { type: Boolean },
@@ -3726,8 +3784,8 @@ const Fi = {
3726
3784
  }, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize));
3727
3785
  },
3728
3786
  getActivatorCoordinates() {
3729
- const { top: e, left: t, width: i, height: o } = this.activatorEl.getBoundingClientRect();
3730
- let n = { top: e, left: t, width: i, height: o };
3787
+ const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
3788
+ let n = { top: e, left: t, width: i, height: s };
3731
3789
  if (!this.fixed) {
3732
3790
  const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
3733
3791
  n = {
@@ -3739,7 +3797,7 @@ const Fi = {
3739
3797
  return n;
3740
3798
  },
3741
3799
  computeDetachableCoords() {
3742
- let { top: e, left: t, width: i, height: o } = this.getActivatorCoordinates();
3800
+ let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
3743
3801
  if (!this.detachableEl)
3744
3802
  return;
3745
3803
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
@@ -3750,15 +3808,15 @@ const Fi = {
3750
3808
  break;
3751
3809
  }
3752
3810
  case "bottom": {
3753
- e += o, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
3811
+ e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
3754
3812
  break;
3755
3813
  }
3756
3814
  case "left": {
3757
- t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
3815
+ t -= this.detachableEl.offsetWidth, this.alignBottom ? e += s - this.detachableEl.offsetHeight : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2);
3758
3816
  break;
3759
3817
  }
3760
3818
  case "right": {
3761
- t += i, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top")));
3819
+ t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top")));
3762
3820
  break;
3763
3821
  }
3764
3822
  }
@@ -3785,11 +3843,11 @@ const Fi = {
3785
3843
  const e = typeof this.activator == "string";
3786
3844
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
3787
3845
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3788
- const o = (n) => {
3846
+ const s = (n) => {
3789
3847
  var l;
3790
3848
  (e && ((l = n.target) == null ? void 0 : l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
3791
3849
  };
3792
- document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
3850
+ document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
3793
3851
  });
3794
3852
  }
3795
3853
  },
@@ -3813,16 +3871,16 @@ const Fi = {
3813
3871
  }
3814
3872
  }
3815
3873
  };
3816
- function Ui(e, t, i, o, n, l) {
3874
+ function Ui(e, t, i, s, n, l) {
3817
3875
  const a = $("w-card"), r = $("w-overlay");
3818
- return s(), u(v, null, [
3819
- p(e.$slots, "activator", { on: l.activatorEventHandlers }),
3876
+ return o(), u(k, null, [
3877
+ c(e.$slots, "activator", { on: l.activatorEventHandlers }),
3820
3878
  V(O, {
3821
3879
  name: l.transitionName,
3822
3880
  appear: ""
3823
3881
  }, {
3824
3882
  default: m(() => [
3825
- i.custom && e.detachableVisible ? (s(), u("div", C({
3883
+ i.custom && e.detachableVisible ? (o(), u("div", C({
3826
3884
  key: 0,
3827
3885
  class: "w-menu",
3828
3886
  ref: "detachable"
@@ -3833,8 +3891,8 @@ function Ui(e, t, i, o, n, l) {
3833
3891
  class: l.classes,
3834
3892
  style: l.styles
3835
3893
  }), [
3836
- p(e.$slots, "default")
3837
- ], 16)) : e.detachableVisible ? (s(), g(a, C({
3894
+ c(e.$slots, "default")
3895
+ ], 16)) : e.detachableVisible ? (o(), g(a, C({
3838
3896
  key: 1,
3839
3897
  class: "w-menu",
3840
3898
  ref: "detachable"
@@ -3851,29 +3909,29 @@ function Ui(e, t, i, o, n, l) {
3851
3909
  style: l.styles
3852
3910
  }), Z({
3853
3911
  default: m(() => [
3854
- p(e.$slots, "default")
3912
+ c(e.$slots, "default")
3855
3913
  ]),
3856
3914
  _: 2
3857
3915
  }, [
3858
3916
  e.$slots.title ? {
3859
3917
  name: "title",
3860
3918
  fn: m(() => [
3861
- p(e.$slots, "title")
3919
+ c(e.$slots, "title")
3862
3920
  ]),
3863
3921
  key: "0"
3864
3922
  } : void 0,
3865
3923
  e.$slots.actions ? {
3866
3924
  name: "actions",
3867
3925
  fn: m(() => [
3868
- p(e.$slots, "actions")
3926
+ c(e.$slots, "actions")
3869
3927
  ]),
3870
3928
  key: "1"
3871
3929
  } : void 0
3872
- ]), 1040, ["tile", "title-class", "content-class", "shadow", "no-border", "class", "style"])) : c("", !0)
3930
+ ]), 1040, ["tile", "title-class", "content-class", "shadow", "no-border", "class", "style"])) : p("", !0)
3873
3931
  ]),
3874
3932
  _: 3
3875
3933
  }, 8, ["name"]),
3876
- i.overlay ? (s(), g(r, C({
3934
+ i.overlay ? (o(), g(r, C({
3877
3935
  key: 0,
3878
3936
  ref: "overlay",
3879
3937
  "model-value": e.detachableVisible,
@@ -3882,7 +3940,7 @@ function Ui(e, t, i, o, n, l) {
3882
3940
  }, i.overlayProps, {
3883
3941
  "z-index": (e.zIndex || 200) - 1,
3884
3942
  "onUpdate:modelValue": t[6] || (t[6] = (d) => e.detachableVisible = !1)
3885
- }), null, 16, ["model-value", "persistent", "class", "z-index"])) : c("", !0)
3943
+ }), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
3886
3944
  ], 64);
3887
3945
  }
3888
3946
  const qi = {
@@ -3947,17 +4005,17 @@ const qi = {
3947
4005
  return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
3948
4006
  },
3949
4007
  menuClasses() {
3950
- return K(this.menuClass);
4008
+ return A(this.menuClass);
3951
4009
  },
3952
4010
  titleClasses() {
3953
- return K(this.titleClass);
4011
+ return A(this.titleClass);
3954
4012
  },
3955
4013
  contentClasses() {
3956
- return K(this.contentClass);
4014
+ return A(this.contentClass);
3957
4015
  },
3958
4016
  overlayClasses() {
3959
4017
  return {
3960
- ...K(this.overlayClass),
4018
+ ...A(this.overlayClass),
3961
4019
  "w-overlay--no-pointer-event": this.showOnHover
3962
4020
  };
3963
4021
  },
@@ -4013,18 +4071,18 @@ const qi = {
4013
4071
  this.openTimeout = clearTimeout(this.openTimeout), this.detachableVisible && (this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize)));
4014
4072
  }
4015
4073
  }
4016
- }, Xi = /* @__PURE__ */ w(qi, [["render", Ui]]);
4017
- function Yi(e, t, i, o, n, l) {
4074
+ }, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]);
4075
+ function Yi(e, t, i, s, n, l) {
4018
4076
  const a = $("w-alert");
4019
- return s(), g(O, {
4077
+ return o(), g(O, {
4020
4078
  name: l.transitionName,
4021
4079
  appear: ""
4022
4080
  }, {
4023
4081
  default: m(() => [
4024
- n.show ? (s(), u("div", {
4082
+ n.show ? (o(), u("div", {
4025
4083
  key: 0,
4026
4084
  class: f(["w-notification", l.classes]),
4027
- style: L(l.styles)
4085
+ style: R(l.styles)
4028
4086
  }, [
4029
4087
  V(a, C(l.alertProps, {
4030
4088
  class: l.alertClasses,
@@ -4033,11 +4091,11 @@ function Yi(e, t, i, o, n, l) {
4033
4091
  })
4034
4092
  }), {
4035
4093
  default: m(() => [
4036
- p(e.$slots, "default")
4094
+ c(e.$slots, "default")
4037
4095
  ]),
4038
4096
  _: 3
4039
4097
  }, 16, ["class"])
4040
- ], 6)) : c("", !0)
4098
+ ], 6)) : p("", !0)
4041
4099
  ]),
4042
4100
  _: 3
4043
4101
  }, 8, ["name"]);
@@ -4162,29 +4220,29 @@ const Gi = {
4162
4220
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
4163
4221
  }
4164
4222
  }
4165
- }, Ji = /* @__PURE__ */ w(Gi, [["render", Yi]]);
4166
- function Qi(e, t, i, o, n, l) {
4167
- const a = be("focus");
4168
- return s(), g(O, {
4223
+ }, Ji = /* @__PURE__ */ v(Gi, [["render", Yi]]);
4224
+ function Qi(e, t, i, s, n, l) {
4225
+ const a = ge("focus");
4226
+ return o(), g(O, {
4169
4227
  name: "fade",
4170
4228
  appear: "",
4171
4229
  onAfterLeave: l.onClose
4172
4230
  }, {
4173
4231
  default: m(() => [
4174
- i.modelValue ? A((s(), u("div", {
4232
+ i.modelValue ? K((o(), u("div", {
4175
4233
  key: 0,
4176
4234
  class: f(["w-overlay", l.classes]),
4177
4235
  ref: "overlay",
4178
- style: L(i.modelValue && l.styles || null),
4236
+ style: R(i.modelValue && l.styles || null),
4179
4237
  onKeydown: t[0] || (t[0] = W(M((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
4180
4238
  onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
4181
4239
  tabindex: "0"
4182
4240
  }, [
4183
- p(e.$slots, "default")
4241
+ c(e.$slots, "default")
4184
4242
  ], 38)), [
4185
- [ne, e.showOverlay],
4243
+ [ae, e.showOverlay],
4186
4244
  [a]
4187
- ]) : c("", !0)
4245
+ ]) : p("", !0)
4188
4246
  ]),
4189
4247
  _: 3
4190
4248
  }, 8, ["onAfterLeave"]);
@@ -4243,26 +4301,26 @@ const Zi = {
4243
4301
  e && (this.showOverlay = !0);
4244
4302
  }
4245
4303
  }
4246
- }, el = /* @__PURE__ */ w(Zi, [["render", Qi]]), tl = { class: "w-parallax" };
4247
- function il(e, t, i, o, n, l) {
4248
- return s(), u("div", tl);
4304
+ }, el = /* @__PURE__ */ v(Zi, [["render", Qi]]), tl = { class: "w-parallax" };
4305
+ function il(e, t, i, s, n, l) {
4306
+ return o(), u("div", tl);
4249
4307
  }
4250
4308
  const ll = {
4251
4309
  name: "w-parallax",
4252
4310
  props: {},
4253
4311
  emits: [],
4254
4312
  data: () => ({})
4255
- }, sl = /* @__PURE__ */ w(ll, [["render", il]]), ol = ["viewBox"], al = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], nl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4256
- function rl(e, t, i, o, n, l) {
4257
- return s(), u("div", {
4313
+ }, sl = /* @__PURE__ */ v(ll, [["render", il]]), ol = ["viewBox"], al = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], nl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4314
+ function rl(e, t, i, s, n, l) {
4315
+ return o(), u("div", {
4258
4316
  class: f(["w-progress", l.classes]),
4259
- style: L(l.styles)
4317
+ style: R(l.styles)
4260
4318
  }, [
4261
- i.circle ? (s(), u("svg", {
4319
+ i.circle ? (o(), u("svg", {
4262
4320
  key: 1,
4263
4321
  viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
4264
4322
  }, [
4265
- i.bgColor || this.progressValue > -1 ? (s(), u("circle", {
4323
+ i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
4266
4324
  key: 0,
4267
4325
  class: f(["bg", i.bgColor || null]),
4268
4326
  cx: l.circleCenter,
@@ -4271,7 +4329,7 @@ function rl(e, t, i, o, n, l) {
4271
4329
  fill: "transparent",
4272
4330
  "stroke-dasharray": e.circleCircumference,
4273
4331
  "stroke-width": i.stroke
4274
- }, null, 10, al)) : c("", !0),
4332
+ }, null, 10, al)) : p("", !0),
4275
4333
  y("circle", {
4276
4334
  class: "w-progress__progress",
4277
4335
  cx: l.circleCenter,
@@ -4281,21 +4339,21 @@ function rl(e, t, i, o, n, l) {
4281
4339
  "stroke-width": i.stroke,
4282
4340
  "stroke-linecap": i.roundCap && "round",
4283
4341
  "stroke-dasharray": e.circleCircumference,
4284
- style: L(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4342
+ style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
4285
4343
  }, null, 12, nl)
4286
- ], 8, ol)) : (s(), u("div", {
4344
+ ], 8, ol)) : (o(), u("div", {
4287
4345
  key: 0,
4288
4346
  class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
4289
- style: L(`width: ${l.progressValue}%`)
4347
+ style: R(`width: ${l.progressValue}%`)
4290
4348
  }, null, 6)),
4291
- i.label || e.$slots.default ? (s(), u("div", {
4349
+ i.label || e.$slots.default ? (o(), u("div", {
4292
4350
  key: 2,
4293
4351
  class: f(["w-progress__label", i.labelColor || !1])
4294
4352
  }, [
4295
- p(e.$slots, "default", {}, () => [
4353
+ c(e.$slots, "default", {}, () => [
4296
4354
  S(_(Math.round(l.progressValue)) + _(i.circle ? "" : "%"), 1)
4297
4355
  ])
4298
- ], 2)) : c("", !0)
4356
+ ], 2)) : p("", !0)
4299
4357
  ], 6);
4300
4358
  }
4301
4359
  const J = 40, dl = J / 2, ul = Math.round(J * 3.14 * 100) / 100, hl = {
@@ -4364,9 +4422,9 @@ const J = 40, dl = J / 2, ul = Math.round(J * 3.14 * 100) / 100, hl = {
4364
4422
  };
4365
4423
  }
4366
4424
  }
4367
- }, cl = /* @__PURE__ */ w(hl, [["render", rl]]), pl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], fl = ["for"], ml = ["for", "innerHTML"], gl = ["for"], bl = ["for", "innerHTML"];
4368
- function yl(e, t, i, o, n, l) {
4369
- return s(), g(I(e.formRegister && !l.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4425
+ }, cl = /* @__PURE__ */ v(hl, [["render", rl]]), pl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], fl = ["for"], ml = ["for", "innerHTML"], gl = ["for"], bl = ["for", "innerHTML"];
4426
+ function yl(e, t, i, s, n, l) {
4427
+ return o(), g(I(e.formRegister && !l.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4370
4428
  valid: e.valid,
4371
4429
  "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4372
4430
  onReset: t[4] || (t[4] = (a) => {
@@ -4389,44 +4447,44 @@ function yl(e, t, i, o, n, l) {
4389
4447
  "aria-checked": e.inputValue || "false",
4390
4448
  role: "radio"
4391
4449
  }, null, 40, pl),
4392
- l.hasLabel && i.labelOnLeft ? (s(), u(v, { key: 0 }, [
4393
- e.$slots.default ? (s(), u("label", {
4450
+ l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
4451
+ e.$slots.default ? (o(), u("label", {
4394
4452
  key: 0,
4395
4453
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4396
4454
  for: `w-radio--${e._.uid}`
4397
4455
  }, [
4398
- p(e.$slots, "default", {}, () => [
4456
+ c(e.$slots, "default", {}, () => [
4399
4457
  S(_(i.label), 1)
4400
4458
  ])
4401
- ], 10, fl)) : i.label ? (s(), u("label", {
4459
+ ], 10, fl)) : i.label ? (o(), u("label", {
4402
4460
  key: 1,
4403
4461
  class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
4404
4462
  for: `w-radio--${e._.uid}`,
4405
4463
  innerHTML: i.label
4406
- }, null, 10, ml)) : c("", !0)
4407
- ], 64)) : c("", !0),
4464
+ }, null, 10, ml)) : p("", !0)
4465
+ ], 64)) : p("", !0),
4408
4466
  y("div", {
4409
4467
  class: f(["w-radio__input", this.color]),
4410
4468
  onClick: t[2] || (t[2] = (a) => {
4411
4469
  e.$refs.input.focus(), e.$refs.input.click();
4412
4470
  })
4413
4471
  }, null, 2),
4414
- l.hasLabel && !i.labelOnLeft ? (s(), u(v, { key: 1 }, [
4415
- e.$slots.default ? (s(), u("label", {
4472
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
4473
+ e.$slots.default ? (o(), u("label", {
4416
4474
  key: 0,
4417
4475
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4418
4476
  for: `w-radio--${e._.uid}`
4419
4477
  }, [
4420
- p(e.$slots, "default", {}, () => [
4478
+ c(e.$slots, "default", {}, () => [
4421
4479
  S(_(i.label), 1)
4422
4480
  ])
4423
- ], 10, gl)) : i.label ? (s(), u("label", {
4481
+ ], 10, gl)) : i.label ? (o(), u("label", {
4424
4482
  key: 1,
4425
4483
  class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
4426
4484
  for: `w-radio--${e._.uid}`,
4427
4485
  innerHTML: i.label
4428
- }, null, 10, bl)) : c("", !0)
4429
- ], 64)) : c("", !0)
4486
+ }, null, 10, bl)) : p("", !0)
4487
+ ], 64)) : p("", !0)
4430
4488
  ]),
4431
4489
  _: 3
4432
4490
  }, 16, ["valid", "class"]);
@@ -4491,10 +4549,10 @@ const wl = {
4491
4549
  this.toggleFromOutside();
4492
4550
  }
4493
4551
  }
4494
- }, vl = /* @__PURE__ */ w(wl, [["render", yl]]), kl = ["innerHTML"];
4495
- function _l(e, t, i, o, n, l) {
4552
+ }, vl = /* @__PURE__ */ v(wl, [["render", yl]]), kl = ["innerHTML"];
4553
+ function _l(e, t, i, s, n, l) {
4496
4554
  const a = $("w-radio");
4497
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4555
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4498
4556
  valid: e.valid,
4499
4557
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
4500
4558
  onReset: t[2] || (t[2] = (r) => {
@@ -4505,7 +4563,7 @@ function _l(e, t, i, o, n, l) {
4505
4563
  class: l.classes
4506
4564
  }), {
4507
4565
  default: m(() => [
4508
- (s(!0), u(v, null, R(l.radioItems, (r, d) => (s(), g(a, C({
4566
+ (o(!0), u(k, null, L(l.radioItems, (r, d) => (o(), g(a, C({
4509
4567
  key: d,
4510
4568
  "model-value": r.value === i.modelValue,
4511
4569
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -4517,16 +4575,16 @@ function _l(e, t, i, o, n, l) {
4517
4575
  class: { mt1: !i.inline && d }
4518
4576
  }), {
4519
4577
  default: m(() => [
4520
- e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4578
+ e.$slots[`item.${d + 1}`] || e.$slots.item ? c(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
4521
4579
  key: 0,
4522
4580
  item: l.getOriginalItem(r),
4523
4581
  index: d + 1,
4524
4582
  checked: r.value === i.modelValue,
4525
4583
  innerHTML: r.label
4526
- }) : r.label ? (s(), u("div", {
4584
+ }) : r.label ? (o(), u("div", {
4527
4585
  key: 1,
4528
4586
  innerHTML: r.label
4529
- }, null, 8, kl)) : c("", !0)
4587
+ }, null, 8, kl)) : p("", !0)
4530
4588
  ]),
4531
4589
  _: 2
4532
4590
  }, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
@@ -4580,9 +4638,9 @@ const Cl = {
4580
4638
  return this.items[e._index];
4581
4639
  }
4582
4640
  }
4583
- }, Sl = /* @__PURE__ */ w(Cl, [["render", _l]]), Bl = ["id", "name", "value"], $l = ["disabled", "onMouseenter", "onClick", "tabindex"];
4584
- function Vl(e, t, i, o, n, l) {
4585
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4641
+ }, Sl = /* @__PURE__ */ v(Cl, [["render", _l]]), Bl = ["id", "name", "value"], $l = ["disabled", "onMouseenter", "onClick", "tabindex"];
4642
+ function Vl(e, t, i, s, n, l) {
4643
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4586
4644
  valid: e.valid,
4587
4645
  "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4588
4646
  onReset: t[5] || (t[5] = (a) => {
@@ -4597,11 +4655,11 @@ function Vl(e, t, i, o, n, l) {
4597
4655
  type: "hidden",
4598
4656
  value: n.rating
4599
4657
  }, null, 8, Bl),
4600
- (s(!0), u(v, null, R(i.max, (a) => (s(), u(v, { key: a }, [
4601
- e.$slots.item ? p(e.$slots, "item", {
4658
+ (o(!0), u(k, null, L(i.max, (a) => (o(), u(k, { key: a }, [
4659
+ e.$slots.item ? c(e.$slots, "item", {
4602
4660
  key: 0,
4603
4661
  index: a + 1
4604
- }) : c("", !0),
4662
+ }) : p("", !0),
4605
4663
  y("button", {
4606
4664
  class: f(["w-rating__button", l.buttonClasses(a)]),
4607
4665
  disabled: e.isDisabled || e.isReadonly,
@@ -4614,13 +4672,13 @@ function Vl(e, t, i, o, n, l) {
4614
4672
  type: "button",
4615
4673
  tabindex: a === 1 ? 0 : -1
4616
4674
  }, [
4617
- a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4675
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
4618
4676
  key: 0,
4619
4677
  class: f(["w-icon", `${i.icon} ${i.color}`]),
4620
4678
  role: "icon",
4621
4679
  "aria-hidden": "true",
4622
- style: L(l.halfStarStyle)
4623
- }, null, 6)) : c("", !0)
4680
+ style: R(l.halfStarStyle)
4681
+ }, null, 6)) : p("", !0)
4624
4682
  ], 42, $l)
4625
4683
  ], 64))), 128))
4626
4684
  ]),
@@ -4717,9 +4775,9 @@ const Il = {
4717
4775
  this.rating = parseFloat(e);
4718
4776
  }
4719
4777
  }
4720
- }, Tl = /* @__PURE__ */ w(Il, [["render", Vl]]);
4721
- function Rl(e, t, i, o, n, l) {
4722
- return s(), u(v, null, [
4778
+ }, Tl = /* @__PURE__ */ v(Il, [["render", Vl]]);
4779
+ function Ll(e, t, i, s, n, l) {
4780
+ return o(), u(k, null, [
4723
4781
  y("div", C({
4724
4782
  class: ["w-scrollable", l.scrollableClasses],
4725
4783
  ref: "scrollable",
@@ -4727,7 +4785,7 @@ function Rl(e, t, i, o, n, l) {
4727
4785
  onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
4728
4786
  onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
4729
4787
  }, e.$attrs, { style: l.scrollableStyles }), [
4730
- p(e.$slots, "default")
4788
+ c(e.$slots, "default")
4731
4789
  ], 16),
4732
4790
  y("div", {
4733
4791
  class: f(["w-scrollbar", l.scrollbarClasses]),
@@ -4737,12 +4795,12 @@ function Rl(e, t, i, o, n, l) {
4737
4795
  y("div", {
4738
4796
  class: "w-scrollbar__thumb",
4739
4797
  ref: "thumb",
4740
- style: L(l.thumbStyles)
4798
+ style: R(l.thumbStyles)
4741
4799
  }, null, 4)
4742
4800
  ], 34)
4743
4801
  ], 64);
4744
4802
  }
4745
- const Ll = {
4803
+ const Rl = {
4746
4804
  h: {
4747
4805
  horizOrVert: "horizontal",
4748
4806
  topOrLeft: "left",
@@ -4785,11 +4843,11 @@ const Ll = {
4785
4843
  }),
4786
4844
  computed: {
4787
4845
  isHorizontal() {
4788
- var e, t, i, o;
4789
- return this.mounted ? (console.log("\u{1F482}\u200D\u2642\uFE0F", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((o = this.$refs.scrollable) == null ? void 0 : o.offsetWidth)) : !1;
4846
+ var e, t, i, s;
4847
+ return this.mounted ? (console.log("\u{1F482}\u200D\u2642\uFE0F", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((s = this.$refs.scrollable) == null ? void 0 : s.offsetWidth)) : !1;
4790
4848
  },
4791
4849
  m() {
4792
- return Ll[this.isHorizontal ? "h" : "v"];
4850
+ return Rl[this.isHorizontal ? "h" : "v"];
4793
4851
  },
4794
4852
  scrollableClasses() {
4795
4853
  return {
@@ -4822,8 +4880,8 @@ const Ll = {
4822
4880
  onTrackMouseDown(e) {
4823
4881
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
4824
4882
  return;
4825
- const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
4826
- 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 });
4883
+ const { top: t, left: i, width: s, height: n } = this.$refs.track.getBoundingClientRect();
4884
+ 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 });
4827
4885
  },
4828
4886
  onDrag(e) {
4829
4887
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -4841,7 +4899,7 @@ const Ll = {
4841
4899
  !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());
4842
4900
  },
4843
4901
  computeScroll(e) {
4844
- const { top: t, left: i, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? o : n;
4902
+ const { top: t, left: i, width: s, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? s : n;
4845
4903
  this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
4846
4904
  },
4847
4905
  scroll() {
@@ -4857,13 +4915,13 @@ const Ll = {
4857
4915
  const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
4858
4916
  this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style[this.m.maxWidthOrHeight] = `${this[this.m.widthOrHeight]}px`;
4859
4917
  }
4860
- }, Ol = /* @__PURE__ */ w(xl, [["render", Rl]]), Pl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
4918
+ }, Ol = /* @__PURE__ */ v(xl, [["render", Ll]]), Pl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
4861
4919
  key: 1,
4862
4920
  class: "w-select__selection-slot"
4863
4921
  }, zl = ["innerHTML"], El = ["value", "name"];
4864
- function Wl(e, t, i, o, n, l) {
4922
+ function Wl(e, t, i, s, n, l) {
4865
4923
  const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
4866
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
4924
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
4867
4925
  valid: e.valid,
4868
4926
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
4869
4927
  onReset: l.onReset,
@@ -4871,17 +4929,17 @@ function Wl(e, t, i, o, n, l) {
4871
4929
  class: l.classes
4872
4930
  }), {
4873
4931
  default: m(() => [
4874
- i.labelPosition === "left" ? (s(), u(v, { key: 0 }, [
4875
- e.$slots.default || i.label ? (s(), u("label", {
4932
+ i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
4933
+ e.$slots.default || i.label ? (o(), u("label", {
4876
4934
  key: 0,
4877
4935
  class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
4878
4936
  onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
4879
4937
  }, [
4880
- p(e.$slots, "default", {}, () => [
4938
+ c(e.$slots, "default", {}, () => [
4881
4939
  S(_(i.label), 1)
4882
4940
  ])
4883
- ], 2)) : c("", !0)
4884
- ], 64)) : c("", !0),
4941
+ ], 2)) : p("", !0)
4942
+ ], 64)) : p("", !0),
4885
4943
  V(d, C({
4886
4944
  modelValue: e.showMenu,
4887
4945
  "onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
@@ -4903,7 +4961,7 @@ function Wl(e, t, i, o, n, l) {
4903
4961
  "aria-owns": `w-select-menu--${e._.uid}`,
4904
4962
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
4905
4963
  }, [
4906
- i.innerIconLeft ? (s(), g(a, {
4964
+ i.innerIconLeft ? (o(), g(a, {
4907
4965
  key: 0,
4908
4966
  class: "w-select__icon w-select__icon--inner-left",
4909
4967
  tag: "label",
@@ -4913,12 +4971,12 @@ function Wl(e, t, i, o, n, l) {
4913
4971
  S(_(i.innerIconLeft), 1)
4914
4972
  ]),
4915
4973
  _: 1
4916
- })) : c("", !0),
4917
- e.$slots.selection ? (s(), u("div", Ml, [
4918
- p(e.$slots, "selection", {
4974
+ })) : p("", !0),
4975
+ e.$slots.selection ? (o(), u("div", Ml, [
4976
+ c(e.$slots, "selection", {
4919
4977
  item: i.multiple ? e.inputValue : e.inputValue[0]
4920
4978
  })
4921
- ])) : c("", !0),
4979
+ ])) : p("", !0),
4922
4980
  y("div", C({
4923
4981
  class: "w-select__selection",
4924
4982
  ref: "selection-input",
@@ -4926,23 +4984,23 @@ function Wl(e, t, i, o, n, l) {
4926
4984
  onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
4927
4985
  onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
4928
4986
  }, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, zl),
4929
- (s(!0), u(v, null, R(e.inputValue.length ? e.inputValue : [{}], (h, k) => (s(), u("input", {
4930
- key: k,
4987
+ (o(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (h, w) => (o(), u("input", {
4988
+ key: w,
4931
4989
  type: "hidden",
4932
4990
  value: h.value === void 0 ? "" : h.value.toString(),
4933
4991
  name: e.inputName + (i.multiple ? "[]" : "")
4934
4992
  }, null, 8, El))), 128)),
4935
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(v, { key: 2 }, [
4936
- e.$slots.default || i.label ? (s(), u("label", {
4993
+ i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
4994
+ e.$slots.default || i.label ? (o(), u("label", {
4937
4995
  key: 0,
4938
4996
  class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
4939
4997
  }, [
4940
- p(e.$slots, "default", {}, () => [
4998
+ c(e.$slots, "default", {}, () => [
4941
4999
  S(_(i.label), 1)
4942
5000
  ])
4943
- ], 2)) : c("", !0)
4944
- ], 64)) : c("", !0),
4945
- i.innerIconRight ? (s(), g(a, {
5001
+ ], 2)) : p("", !0)
5002
+ ], 64)) : p("", !0),
5003
+ i.innerIconRight ? (o(), g(a, {
4946
5004
  key: 3,
4947
5005
  class: "w-select__icon w-select__icon--inner-right",
4948
5006
  tag: "label",
@@ -4952,7 +5010,7 @@ function Wl(e, t, i, o, n, l) {
4952
5010
  S(_(i.innerIconRight), 1)
4953
5011
  ]),
4954
5012
  _: 1
4955
- })) : c("", !0)
5013
+ })) : p("", !0)
4956
5014
  ], 10, Pl)
4957
5015
  ]),
4958
5016
  default: m(() => [
@@ -4975,23 +5033,23 @@ function Wl(e, t, i, o, n, l) {
4975
5033
  role: "listbox",
4976
5034
  tabindex: "-1"
4977
5035
  }, Z({ _: 2 }, [
4978
- R(i.items.length, (h) => ({
5036
+ L(i.items.length, (h) => ({
4979
5037
  name: `item.${h}`,
4980
- fn: m(({ item: k, selected: B, index: b }) => [
4981
- e.$slots[`item.${h}`] && e.$slots[`item.${h}`](k, B, b) ? p(e.$slots, `item.${h}`, {
5038
+ fn: m(({ item: w, selected: B, index: b }) => [
5039
+ e.$slots[`item.${h}`] && e.$slots[`item.${h}`](w, B, b) ? c(e.$slots, `item.${h}`, {
4982
5040
  key: 0,
4983
- item: k,
5041
+ item: w,
4984
5042
  selected: B,
4985
5043
  index: b
4986
5044
  }, () => [
4987
- S(_(k[i.itemLabelKey]), 1)
4988
- ]) : p(e.$slots, "item", {
5045
+ S(_(w[i.itemLabelKey]), 1)
5046
+ ]) : c(e.$slots, "item", {
4989
5047
  key: 1,
4990
- item: k,
5048
+ item: w,
4991
5049
  selected: B,
4992
5050
  index: b
4993
5051
  }, () => [
4994
- S(_(k[i.itemLabelKey]), 1)
5052
+ S(_(w[i.itemLabelKey]), 1)
4995
5053
  ])
4996
5054
  ])
4997
5055
  }))
@@ -4999,17 +5057,17 @@ function Wl(e, t, i, o, n, l) {
4999
5057
  ]),
5000
5058
  _: 3
5001
5059
  }, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
5002
- i.labelPosition === "right" ? (s(), u(v, { key: 1 }, [
5003
- e.$slots.default || i.label ? (s(), u("label", {
5060
+ i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
5061
+ e.$slots.default || i.label ? (o(), u("label", {
5004
5062
  key: 0,
5005
5063
  class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
5006
5064
  onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
5007
5065
  }, [
5008
- p(e.$slots, "default", {}, () => [
5066
+ c(e.$slots, "default", {}, () => [
5009
5067
  S(_(i.label), 1)
5010
5068
  ])
5011
- ], 2)) : c("", !0)
5012
- ], 64)) : c("", !0)
5069
+ ], 2)) : p("", !0)
5070
+ ], 64)) : p("", !0)
5013
5071
  ]),
5014
5072
  _: 3
5015
5073
  }, 16, ["valid", "onReset", "wrap", "class"]);
@@ -5146,7 +5204,7 @@ const Al = {
5146
5204
  const n = e.keyCode === 38 ? -1 : 1;
5147
5205
  t = (t + i.length + n) % i.length;
5148
5206
  }
5149
- let o = !1;
5207
+ let s = !1;
5150
5208
  if (i[t].disabled) {
5151
5209
  const n = e.keyCode === 38 ? -1 : 1;
5152
5210
  let l = (t + n + i.length) % i.length;
@@ -5154,9 +5212,9 @@ const Al = {
5154
5212
  let r = 0;
5155
5213
  for (; r < a && i[l].disabled; )
5156
5214
  l = (l + i.length + n) % i.length, r++;
5157
- r >= a && (o = !0), t = l;
5215
+ r >= a && (s = !0), t = l;
5158
5216
  }
5159
- o || this.onInput(i[t]);
5217
+ s || this.onInput(i[t]);
5160
5218
  }
5161
5219
  },
5162
5220
  onInput(e) {
@@ -5180,8 +5238,8 @@ const Al = {
5180
5238
  const t = this.selectItems.map((i) => i.value);
5181
5239
  return e.map((i) => {
5182
5240
  var n, l;
5183
- let o = i;
5184
- return i && typeof i == "object" && (o = (l = (n = i[this.itemValueKey]) != null ? n : i[this.itemLabelKey]) != null ? l : i), this.selectItems[t.indexOf(o)];
5241
+ let s = i;
5242
+ return i && typeof i == "object" && (s = (l = (n = i[this.itemValueKey]) != null ? n : i[this.itemLabelKey]) != null ? l : i), this.selectItems[t.indexOf(s)];
5185
5243
  }).filter((i) => i !== void 0);
5186
5244
  },
5187
5245
  openMenu() {
@@ -5207,12 +5265,12 @@ const Al = {
5207
5265
  this.inputValue = this.checkSelection(this.modelValue);
5208
5266
  }
5209
5267
  }
5210
- }, Kl = /* @__PURE__ */ w(Al, [["render", Wl]]), Nl = ["for"], Hl = ["for", "innerHTML"], Dl = { class: "w-slider__track-wrap" }, Fl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], jl = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ul = ["for"], ql = { key: 0 }, Xl = {
5268
+ }, Kl = /* @__PURE__ */ v(Al, [["render", Wl]]), Nl = ["for"], Hl = ["for", "innerHTML"], Dl = { class: "w-slider__track-wrap" }, Fl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], jl = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ul = ["for"], ql = { key: 0 }, Xl = {
5211
5269
  key: 0,
5212
5270
  class: "w-slider__step-labels"
5213
5271
  }, Yl = ["onClick"], Gl = ["for"], Jl = ["for", "innerHTML"];
5214
- function Ql(e, t, i, o, n, l) {
5215
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5272
+ function Ql(e, t, i, s, n, l) {
5273
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5216
5274
  valid: e.valid,
5217
5275
  "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5218
5276
  onReset: t[9] || (t[9] = (a) => {
@@ -5222,18 +5280,18 @@ function Ql(e, t, i, o, n, l) {
5222
5280
  class: l.wrapperClasses
5223
5281
  }), {
5224
5282
  default: m(() => [
5225
- e.$slots["label-left"] ? (s(), u("label", {
5283
+ e.$slots["label-left"] ? (o(), u("label", {
5226
5284
  key: 0,
5227
5285
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5228
5286
  for: `button--${e._.uid}`
5229
5287
  }, [
5230
- p(e.$slots, "label-left")
5231
- ], 10, Nl)) : i.labelLeft ? (s(), u("label", {
5288
+ c(e.$slots, "label-left")
5289
+ ], 10, Nl)) : i.labelLeft ? (o(), u("label", {
5232
5290
  key: 1,
5233
5291
  class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
5234
5292
  for: `button--${e._.uid}`,
5235
5293
  innerHTML: i.labelLeft
5236
- }, null, 10, Hl)) : c("", !0),
5294
+ }, null, 10, Hl)) : p("", !0),
5237
5295
  y("div", Dl, [
5238
5296
  y("div", {
5239
5297
  class: f(["w-slider__track", l.trackClasses]),
@@ -5250,11 +5308,11 @@ function Ql(e, t, i, o, n, l) {
5250
5308
  }, [
5251
5309
  y("div", {
5252
5310
  class: f(["w-slider__range", l.rangeClasses]),
5253
- style: L(l.rangeStyles)
5311
+ style: R(l.rangeStyles)
5254
5312
  }, null, 6),
5255
5313
  y("div", {
5256
5314
  class: "w-slider__thumb",
5257
- style: L(l.thumbStyles)
5315
+ style: R(l.thumbStyles)
5258
5316
  }, [
5259
5317
  y("button", {
5260
5318
  class: f(["w-slider__thumb-button", [i.color]]),
@@ -5274,55 +5332,55 @@ function Ql(e, t, i, o, n, l) {
5274
5332
  onClick: t[3] || (t[3] = M(() => {
5275
5333
  }, ["prevent"]))
5276
5334
  }, null, 42, jl),
5277
- i.thumbLabel ? (s(), u("label", {
5335
+ i.thumbLabel ? (o(), u("label", {
5278
5336
  key: 0,
5279
5337
  class: f(["w-slider__thumb-label", l.thumbClasses]),
5280
5338
  for: `button--${e._.uid}`
5281
5339
  }, [
5282
- i.thumbLabel === "droplet" ? (s(), u("div", ql, [
5283
- p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
5340
+ i.thumbLabel === "droplet" ? (o(), u("div", ql, [
5341
+ c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
5284
5342
  S(_(~~e.rangeValueScaled), 1)
5285
5343
  ])
5286
- ])) : p(e.$slots, "label", {
5344
+ ])) : c(e.$slots, "label", {
5287
5345
  key: 1,
5288
5346
  value: e.rangeValueScaled
5289
5347
  }, () => [
5290
5348
  S(_(~~e.rangeValueScaled), 1)
5291
5349
  ])
5292
- ], 10, Ul)) : c("", !0)
5350
+ ], 10, Ul)) : p("", !0)
5293
5351
  ], 4)
5294
5352
  ], 42, Fl),
5295
- i.stepLabels && i.step ? (s(), u("div", Xl, [
5353
+ i.stepLabels && i.step ? (o(), u("div", Xl, [
5296
5354
  y("div", {
5297
5355
  class: "w-slider__step-label",
5298
5356
  onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5299
5357
  }, _(this.minVal), 1),
5300
- (s(!0), u(v, null, R(~~l.numberOfSteps, (a) => (s(), u("div", {
5358
+ (o(!0), u(k, null, L(~~l.numberOfSteps, (a) => (o(), u("div", {
5301
5359
  class: "w-slider__step-label",
5302
5360
  key: a,
5303
5361
  onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5304
- style: L(`left: ${a * (100 / l.numberOfSteps)}%`)
5362
+ style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
5305
5363
  }, _(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Yl))), 128)),
5306
- ~~l.numberOfSteps !== l.numberOfSteps ? (s(), u("div", {
5364
+ ~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
5307
5365
  key: 0,
5308
5366
  class: "w-slider__step-label",
5309
5367
  onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
5310
5368
  style: { left: "100%" }
5311
- }, _(this.maxVal), 1)) : c("", !0)
5312
- ])) : c("", !0)
5369
+ }, _(this.maxVal), 1)) : p("", !0)
5370
+ ])) : p("", !0)
5313
5371
  ]),
5314
- e.$slots["label-right"] ? (s(), u("label", {
5372
+ e.$slots["label-right"] ? (o(), u("label", {
5315
5373
  key: 2,
5316
5374
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5317
5375
  for: `button--${e._.uid}`
5318
5376
  }, [
5319
- p(e.$slots, "label-right")
5320
- ], 10, Gl)) : i.labelRight ? (s(), u("label", {
5377
+ c(e.$slots, "label-right")
5378
+ ], 10, Gl)) : i.labelRight ? (o(), u("label", {
5321
5379
  key: 3,
5322
5380
  class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
5323
5381
  for: `button--${e._.uid}`,
5324
5382
  innerHTML: i.labelRight
5325
- }, null, 10, Jl)) : c("", !0)
5383
+ }, null, 10, Jl)) : p("", !0)
5326
5384
  ]),
5327
5385
  _: 3
5328
5386
  }, 16, ["valid", "wrap", "class"]);
@@ -5461,15 +5519,15 @@ const Zl = {
5461
5519
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
5462
5520
  }
5463
5521
  }
5464
- }, es = /* @__PURE__ */ w(Zl, [["render", Ql]]), ts = { key: 0 };
5465
- function is(e, t, i, o, n, l) {
5466
- return i.modelValue || i.modelValue === void 0 ? (s(), u("div", {
5522
+ }, es = /* @__PURE__ */ v(Zl, [["render", Ql]]), ts = { key: 0 };
5523
+ function is(e, t, i, s, n, l) {
5524
+ return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
5467
5525
  key: 0,
5468
5526
  class: f(["w-spinner", l.classes]),
5469
- style: L(l.styles)
5527
+ style: R(l.styles)
5470
5528
  }, [
5471
- l.isThreeDots ? (s(), u("span", ts)) : c("", !0)
5472
- ], 6)) : c("", !0);
5529
+ l.isThreeDots ? (o(), u("span", ts)) : p("", !0)
5530
+ ], 6)) : p("", !0);
5473
5531
  }
5474
5532
  const ls = {
5475
5533
  name: "w-spinner",
@@ -5509,9 +5567,9 @@ const ls = {
5509
5567
  };
5510
5568
  }
5511
5569
  }
5512
- }, ss = /* @__PURE__ */ w(ls, [["render", is]]);
5513
- function os(e, t, i, o, n, l) {
5514
- return s(), u("div", {
5570
+ }, ss = /* @__PURE__ */ v(ls, [["render", is]]);
5571
+ function os(e, t, i, s, n, l) {
5572
+ return o(), u("div", {
5515
5573
  class: f(["w-steps", l.classes])
5516
5574
  }, null, 2);
5517
5575
  }
@@ -5531,16 +5589,16 @@ const as = {
5531
5589
  };
5532
5590
  }
5533
5591
  }
5534
- }, ns = /* @__PURE__ */ w(as, [["render", os]]), rs = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], ds = ["for"], us = {
5592
+ }, ns = /* @__PURE__ */ v(as, [["render", os]]), rs = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], ds = ["for"], us = {
5535
5593
  key: 0,
5536
5594
  class: "w-switch__track"
5537
5595
  }, hs = {
5538
5596
  key: 1,
5539
5597
  class: "w-switch__thumb"
5540
5598
  }, cs = ["for"];
5541
- function ps(e, t, i, o, n, l) {
5599
+ function ps(e, t, i, s, n, l) {
5542
5600
  const a = $("w-progress");
5543
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5601
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5544
5602
  valid: e.valid,
5545
5603
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5546
5604
  onReset: t[4] || (t[4] = (r) => {
@@ -5565,45 +5623,45 @@ function ps(e, t, i, o, n, l) {
5565
5623
  "aria-checked": n.isOn || "false",
5566
5624
  role: "switch"
5567
5625
  }, null, 40, rs),
5568
- l.hasLabel && i.labelOnLeft ? (s(), u(v, { key: 0 }, [
5569
- e.$slots.default || i.label ? (s(), u("label", {
5626
+ l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
5627
+ e.$slots.default || i.label ? (o(), u("label", {
5570
5628
  key: 0,
5571
5629
  class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
5572
5630
  for: `w-switch--${e._.uid}`
5573
5631
  }, [
5574
- p(e.$slots, "default", {}, () => [
5632
+ c(e.$slots, "default", {}, () => [
5575
5633
  S(_(i.label), 1)
5576
5634
  ])
5577
- ], 10, ds)) : c("", !0)
5578
- ], 64)) : c("", !0),
5635
+ ], 10, ds)) : p("", !0)
5636
+ ], 64)) : p("", !0),
5579
5637
  y("div", C({
5580
5638
  class: "w-switch__input",
5581
5639
  onClick: t[2] || (t[2] = (r) => {
5582
5640
  e.$refs.input.focus(), e.$refs.input.click();
5583
5641
  })
5584
5642
  }, z(e.$attrs, !0), { class: l.inputClasses }), [
5585
- e.$slots.track ? (s(), u("div", us, [
5586
- p(e.$slots, "track")
5587
- ])) : c("", !0),
5588
- e.$slots.thumb || i.loading ? (s(), u("div", hs, [
5589
- i.loading ? (s(), g(a, C({
5643
+ e.$slots.track ? (o(), u("div", us, [
5644
+ c(e.$slots, "track")
5645
+ ])) : p("", !0),
5646
+ e.$slots.thumb || i.loading ? (o(), u("div", hs, [
5647
+ i.loading ? (o(), g(a, C({
5590
5648
  key: 0,
5591
5649
  circle: "",
5592
5650
  color: "inherit"
5593
- }, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
5594
- ])) : c("", !0)
5651
+ }, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
5652
+ ])) : p("", !0)
5595
5653
  ], 16),
5596
- l.hasLabel && !i.labelOnLeft ? (s(), u(v, { key: 1 }, [
5597
- e.$slots.default || i.label ? (s(), u("label", {
5654
+ l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
5655
+ e.$slots.default || i.label ? (o(), u("label", {
5598
5656
  key: 0,
5599
5657
  class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
5600
5658
  for: `w-switch--${e._.uid}`
5601
5659
  }, [
5602
- p(e.$slots, "default", {}, () => [
5660
+ c(e.$slots, "default", {}, () => [
5603
5661
  S(_(i.label), 1)
5604
5662
  ])
5605
- ], 10, cs)) : c("", !0)
5606
- ], 64)) : c("", !0)
5663
+ ], 10, cs)) : p("", !0)
5664
+ ], 64)) : p("", !0)
5607
5665
  ]),
5608
5666
  _: 3
5609
5667
  }, 16, ["valid", "class"]);
@@ -5673,32 +5731,32 @@ const fs = {
5673
5731
  this.isOn = e;
5674
5732
  }
5675
5733
  }
5676
- }, ms = /* @__PURE__ */ w(fs, [["render", ps]]), gs = { class: "w-tabs__content" };
5677
- function bs(e, t, i, o, n, l) {
5678
- return s(), u("div", gs, [
5679
- p(e.$slots, "default", { item: i.item })
5734
+ }, ms = /* @__PURE__ */ v(fs, [["render", ps]]), gs = { class: "w-tabs__content" };
5735
+ function bs(e, t, i, s, n, l) {
5736
+ return o(), u("div", gs, [
5737
+ c(e.$slots, "default", { item: i.item })
5680
5738
  ]);
5681
5739
  }
5682
5740
  const ys = {
5683
5741
  name: "tab-content",
5684
5742
  props: { item: Object }
5685
- }, ws = /* @__PURE__ */ w(ys, [["render", bs]]), vs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], ks = ["innerHTML"], _s = {
5743
+ }, ws = /* @__PURE__ */ v(ys, [["render", bs]]), vs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], ks = ["innerHTML"], _s = {
5686
5744
  key: 0,
5687
5745
  class: "w-tabs__bar-extra"
5688
5746
  }, Cs = {
5689
5747
  key: 0,
5690
5748
  class: "w-tabs__content-wrap"
5691
5749
  }, Ss = ["innerHTML"], Bs = ["innerHTML"];
5692
- function $s(e, t, i, o, n, l) {
5750
+ function $s(e, t, i, s, n, l) {
5693
5751
  const a = $("tab-content");
5694
- return s(), u("div", {
5752
+ return o(), u("div", {
5695
5753
  class: f(["w-tabs", l.tabsClasses])
5696
5754
  }, [
5697
5755
  y("div", {
5698
5756
  class: f(["w-tabs__bar", l.tabsBarClasses]),
5699
5757
  ref: "tabs-bar"
5700
5758
  }, [
5701
- (s(!0), u(v, null, R(e.tabs, (r, d) => (s(), u("div", {
5759
+ (o(!0), u(k, null, L(e.tabs, (r, d) => (o(), u("div", {
5702
5760
  class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
5703
5761
  key: d,
5704
5762
  onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
@@ -5708,12 +5766,12 @@ function $s(e, t, i, o, n, l) {
5708
5766
  "aria-selected": r._uid === e.activeTabUid ? "true" : "false",
5709
5767
  role: "tab"
5710
5768
  }, [
5711
- e.$slots[`item-title.${r.id || d + 1}`] ? p(e.$slots, `item-title.${r.id || d + 1}`, {
5769
+ e.$slots[`item-title.${r.id || d + 1}`] ? c(e.$slots, `item-title.${r.id || d + 1}`, {
5712
5770
  key: 0,
5713
5771
  item: l.getOriginalItem(r),
5714
5772
  index: d + 1,
5715
5773
  active: r._uid === e.activeTabUid
5716
- }) : p(e.$slots, "item-title", {
5774
+ }) : c(e.$slots, "item-title", {
5717
5775
  key: 1,
5718
5776
  item: l.getOriginalItem(r),
5719
5777
  index: d + 1,
@@ -5724,83 +5782,83 @@ function $s(e, t, i, o, n, l) {
5724
5782
  }, null, 8, ks)
5725
5783
  ])
5726
5784
  ], 42, vs))), 128)),
5727
- e.$slots["tabs-bar-extra"] ? (s(), u("div", _s, [
5728
- p(e.$slots, "tabs-bar-extra")
5729
- ])) : c("", !0),
5730
- !i.noSlider && !i.card ? (s(), u("div", {
5785
+ e.$slots["tabs-bar-extra"] ? (o(), u("div", _s, [
5786
+ c(e.$slots, "tabs-bar-extra")
5787
+ ])) : p("", !0),
5788
+ !i.noSlider && !i.card ? (o(), u("div", {
5731
5789
  key: 1,
5732
5790
  class: f(["w-tabs__slider", i.sliderColor]),
5733
- style: L(l.sliderStyles)
5734
- }, null, 6)) : c("", !0)
5791
+ style: R(l.sliderStyles)
5792
+ }, null, 6)) : p("", !0)
5735
5793
  ], 2),
5736
- e.tabs.length ? (s(), u("div", Cs, [
5737
- i.keepInDom ? (s(), g(oe, {
5794
+ e.tabs.length ? (o(), u("div", Cs, [
5795
+ i.keepInDom ? (o(), g(oe, {
5738
5796
  key: 0,
5739
5797
  name: l.transitionName
5740
5798
  }, {
5741
5799
  default: m(() => [
5742
- (s(!0), u(v, null, R(e.tabs, (r, d) => A((s(), g(a, {
5800
+ (o(!0), u(k, null, L(e.tabs, (r, d) => K((o(), g(a, {
5743
5801
  key: r._uid,
5744
5802
  item: r,
5745
5803
  class: f(i.contentClass)
5746
5804
  }, {
5747
5805
  default: m(() => [
5748
- e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5806
+ e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
5749
5807
  key: 0,
5750
5808
  item: l.getOriginalItem(r),
5751
5809
  index: r._index + 1,
5752
5810
  active: r._index === l.activeTab._index
5753
- }) : p(e.$slots, "item-content", {
5811
+ }) : c(e.$slots, "item-content", {
5754
5812
  key: 1,
5755
5813
  item: l.getOriginalItem(r),
5756
5814
  index: r._index + 1,
5757
5815
  active: r._index === l.activeTab._index
5758
5816
  }, () => [
5759
- r[i.itemContentKey] ? (s(), u("div", {
5817
+ r[i.itemContentKey] ? (o(), u("div", {
5760
5818
  key: 0,
5761
5819
  innerHTML: r[i.itemContentKey]
5762
- }, null, 8, Ss)) : c("", !0)
5820
+ }, null, 8, Ss)) : p("", !0)
5763
5821
  ])
5764
5822
  ]),
5765
5823
  _: 2
5766
5824
  }, 1032, ["item", "class"])), [
5767
- [ne, r._uid === l.activeTab._uid]
5825
+ [ae, r._uid === l.activeTab._uid]
5768
5826
  ])), 128))
5769
5827
  ]),
5770
5828
  _: 3
5771
- }, 8, ["name"])) : (s(), g(O, {
5829
+ }, 8, ["name"])) : (o(), g(O, {
5772
5830
  key: 1,
5773
5831
  name: l.transitionName,
5774
5832
  mode: l.transitionMode
5775
5833
  }, {
5776
5834
  default: m(() => [
5777
- (s(), g(Ve, {
5835
+ (o(), g(Ve, {
5778
5836
  exclude: i.keepAlive ? "" : "tab-content"
5779
5837
  }, [
5780
- (s(), g(a, {
5838
+ (o(), g(a, {
5781
5839
  key: e.activeTabUid,
5782
5840
  item: l.activeTab,
5783
5841
  class: f(i.contentClass)
5784
5842
  }, {
5785
5843
  default: m(({ item: r }) => [
5786
- r ? (s(), u(v, { key: 0 }, [
5787
- e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
5844
+ r ? (o(), u(k, { key: 0 }, [
5845
+ e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
5788
5846
  key: 0,
5789
5847
  item: l.getOriginalItem(r),
5790
5848
  index: r._index + 1,
5791
5849
  active: r._uid === e.activeTabUid
5792
- }) : p(e.$slots, "item-content", {
5850
+ }) : c(e.$slots, "item-content", {
5793
5851
  key: 1,
5794
5852
  item: l.getOriginalItem(r),
5795
5853
  index: r._index + 1,
5796
5854
  active: r._uid === e.activeTabUid
5797
5855
  }, () => [
5798
- r[i.itemContentKey] ? (s(), u("div", {
5856
+ r[i.itemContentKey] ? (o(), u("div", {
5799
5857
  key: 0,
5800
5858
  innerHTML: r[i.itemContentKey]
5801
- }, null, 8, Bs)) : c("", !0)
5859
+ }, null, 8, Bs)) : p("", !0)
5802
5860
  ])
5803
- ], 64)) : c("", !0)
5861
+ ], 64)) : p("", !0)
5804
5862
  ]),
5805
5863
  _: 3
5806
5864
  }, 8, ["item", "class"]))
@@ -5808,10 +5866,10 @@ function $s(e, t, i, o, n, l) {
5808
5866
  ]),
5809
5867
  _: 3
5810
5868
  }, 8, ["name", "mode"]))
5811
- ])) : c("", !0)
5869
+ ])) : p("", !0)
5812
5870
  ], 2);
5813
5871
  }
5814
- let me = 0;
5872
+ let fe = 0;
5815
5873
  const Vs = {
5816
5874
  name: "w-tabs",
5817
5875
  props: {
@@ -5894,9 +5952,9 @@ const Vs = {
5894
5952
  },
5895
5953
  methods: {
5896
5954
  addTab(e) {
5897
- var t, i, o;
5898
- (i = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && i || (e._uid = +`${this._.uid}${++me}`), this.tabs.push({
5899
- _uid: (o = e[this.itemIdKey]) != null ? o : e._uid,
5955
+ var t, i, s;
5956
+ (i = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && i || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
5957
+ _uid: (s = e[this.itemIdKey]) != null ? s : e._uid,
5900
5958
  _index: this.tabs.length,
5901
5959
  ...e,
5902
5960
  _disabled: !!e.disabled
@@ -5905,8 +5963,8 @@ const Vs = {
5905
5963
  refreshTabs() {
5906
5964
  let e = this.items;
5907
5965
  typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => {
5908
- var o, n, l;
5909
- return (n = (o = t[this.itemIdKey]) != null ? o : t._uid) != null && n || (t._uid = +`${this._.uid}${++me}`), {
5966
+ var s, n, l;
5967
+ return (n = (s = t[this.itemIdKey]) != null ? s : t._uid) != null && n || (t._uid = +`${this._.uid}${++fe}`), {
5910
5968
  ...t,
5911
5969
  _uid: (l = t[this.itemIdKey]) != null ? l : t._uid,
5912
5970
  _index: i,
@@ -5915,11 +5973,11 @@ const Vs = {
5915
5973
  });
5916
5974
  },
5917
5975
  reopenTheActiveTab() {
5918
- var t, i, o;
5976
+ var t, i, s;
5919
5977
  if (this.tabs.length === 1)
5920
5978
  return this.openTab(this.tabs[0]._uid);
5921
5979
  let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
5922
- 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);
5980
+ 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);
5923
5981
  },
5924
5982
  onResize() {
5925
5983
  this.updateSlider(!1);
@@ -5945,16 +6003,16 @@ const Vs = {
5945
6003
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
5946
6004
  }
5947
6005
  if (!this.fillBar && this.activeTabEl) {
5948
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
5949
- this.slider.left = `${t - n - parseInt(l) + o.scrollLeft}px`, this.slider.width = `${i}px`;
6006
+ const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: n } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
6007
+ this.slider.left = `${t - n - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
5950
6008
  } else
5951
6009
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
5952
6010
  },
5953
6011
  updateActiveTab(e) {
5954
6012
  var t, i;
5955
6013
  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(() => {
5956
- const o = this.$refs["tabs-bar"];
5957
- this.activeTabEl = o && o.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6014
+ const s = this.$refs["tabs-bar"];
6015
+ this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5958
6016
  }));
5959
6017
  },
5960
6018
  getOriginalItem(e) {
@@ -5987,7 +6045,7 @@ const Vs = {
5987
6045
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
5988
6046
  }
5989
6047
  }
5990
- }, Is = /* @__PURE__ */ w(Vs, [["render", $s]]), Ts = { ref: "colgroup" }, Rs = ["width"], Ls = { key: 0 }, xs = ["onClick"], Os = ["innerHTML"], Ps = {
6048
+ }, Is = /* @__PURE__ */ v(Vs, [["render", $s]]), Ts = { ref: "colgroup" }, Ls = ["width"], Rs = { key: 0 }, xs = ["onClick"], Os = ["innerHTML"], Ps = {
5991
6049
  key: 0,
5992
6050
  class: "w-table__progress-bar"
5993
6051
  }, Ms = ["colspan"], zs = {
@@ -6012,9 +6070,9 @@ const Vs = {
6012
6070
  key: 2,
6013
6071
  class: "w-table__row w-table__pagination-wrap"
6014
6072
  }, Zs = ["colspan"], eo = { class: "w-table__pagination w-pagination" }, to = { class: "pages-wrap" }, io = { class: "w-pagination__results" };
6015
- function lo(e, t, i, o, n, l) {
6016
- const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), k = $("w-select"), B = $("w-button");
6017
- return s(), u("div", {
6073
+ function lo(e, t, i, s, n, l) {
6074
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), B = $("w-button");
6075
+ return o(), u("div", {
6018
6076
  class: f(["w-table-wrap", l.wrapClasses])
6019
6077
  }, [
6020
6078
  y("table", {
@@ -6024,20 +6082,20 @@ function lo(e, t, i, o, n, l) {
6024
6082
  onMouseout: t[7] || (t[7] = (...b) => l.onMouseOut && l.onMouseOut(...b))
6025
6083
  }, [
6026
6084
  y("colgroup", Ts, [
6027
- (s(!0), u(v, null, R(i.headers, (b, T) => (s(), u("col", {
6085
+ (o(!0), u(k, null, L(i.headers, (b, T) => (o(), u("col", {
6028
6086
  class: f(["w-table__col", l.colClasses[T]]),
6029
6087
  key: T,
6030
6088
  width: b.width || null
6031
- }, null, 10, Rs))), 128))
6089
+ }, null, 10, Ls))), 128))
6032
6090
  ], 512),
6033
- i.noHeaders ? c("", !0) : (s(), u("thead", Ls, [
6091
+ i.noHeaders ? p("", !0) : (o(), u("thead", Rs, [
6034
6092
  y("tr", null, [
6035
- (s(!0), u(v, null, R(i.headers, (b, T) => (s(), u("th", {
6093
+ (o(!0), u(k, null, L(i.headers, (b, T) => (o(), u("th", {
6036
6094
  class: f(["w-table__header", l.headerClasses(b)]),
6037
6095
  key: T,
6038
6096
  onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
6039
6097
  }, [
6040
- b.sortable !== !1 && b.align === "right" ? (s(), g(a, {
6098
+ b.sortable !== !1 && b.align === "right" ? (o(), g(a, {
6041
6099
  key: 0,
6042
6100
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6043
6101
  }, {
@@ -6045,21 +6103,21 @@ function lo(e, t, i, o, n, l) {
6045
6103
  S("wi-arrow-down")
6046
6104
  ]),
6047
6105
  _: 2
6048
- }, 1032, ["class"])) : c("", !0),
6049
- b.label ? (s(), u(v, { key: 1 }, [
6050
- e.$slots["header-label"] ? p(e.$slots, "header-label", {
6106
+ }, 1032, ["class"])) : p("", !0),
6107
+ b.label ? (o(), u(k, { key: 1 }, [
6108
+ e.$slots["header-label"] ? c(e.$slots, "header-label", {
6051
6109
  key: 0,
6052
6110
  header: b,
6053
6111
  label: b.label,
6054
6112
  index: T + 1
6055
6113
  }, () => [
6056
6114
  S(_(b.label || ""), 1)
6057
- ]) : (s(), u("span", {
6115
+ ]) : (o(), u("span", {
6058
6116
  key: 1,
6059
6117
  innerHTML: b.label || ""
6060
6118
  }, null, 8, Os))
6061
- ], 64)) : c("", !0),
6062
- b.sortable !== !1 && b.align !== "right" ? (s(), g(a, {
6119
+ ], 64)) : p("", !0),
6120
+ b.sortable !== !1 && b.align !== "right" ? (o(), g(a, {
6063
6121
  key: 2,
6064
6122
  class: f(["w-table__header-sort", l.headerSortClasses(b)])
6065
6123
  }, {
@@ -6067,92 +6125,92 @@ function lo(e, t, i, o, n, l) {
6067
6125
  S("wi-arrow-down")
6068
6126
  ]),
6069
6127
  _: 2
6070
- }, 1032, ["class"])) : c("", !0),
6071
- T < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6128
+ }, 1032, ["class"])) : p("", !0),
6129
+ T < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6072
6130
  key: 3,
6073
6131
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
6074
6132
  onClick: t[0] || (t[0] = M(() => {
6075
6133
  }, ["stop"]))
6076
- }, null, 2)) : c("", !0)
6134
+ }, null, 2)) : p("", !0)
6077
6135
  ], 10, xs))), 128))
6078
6136
  ]),
6079
6137
  V(d, null, {
6080
6138
  default: m(() => [
6081
- i.loading === "header" ? (s(), u("tr", Ps, [
6139
+ i.loading === "header" ? (o(), u("tr", Ps, [
6082
6140
  y("td", {
6083
6141
  colspan: i.headers.length
6084
6142
  }, [
6085
6143
  V(r, { tile: "" })
6086
6144
  ], 8, Ms)
6087
- ])) : c("", !0)
6145
+ ])) : p("", !0)
6088
6146
  ]),
6089
6147
  _: 1
6090
6148
  })
6091
6149
  ])),
6092
6150
  y("tbody", null, [
6093
- i.loading === !0 ? (s(), u("tr", zs, [
6151
+ i.loading === !0 ? (o(), u("tr", zs, [
6094
6152
  y("td", {
6095
6153
  colspan: i.headers.length
6096
6154
  }, [
6097
6155
  V(r, { tile: "" }),
6098
6156
  y("div", Ws, [
6099
- p(e.$slots, "loading", {}, () => [
6157
+ c(e.$slots, "loading", {}, () => [
6100
6158
  S("Loading...")
6101
6159
  ])
6102
6160
  ])
6103
6161
  ], 8, Es)
6104
- ])) : l.tableItems.length ? c("", !0) : (s(), u("tr", As, [
6162
+ ])) : l.tableItems.length ? p("", !0) : (o(), u("tr", As, [
6105
6163
  y("td", {
6106
6164
  class: "w-table__cell text-center",
6107
6165
  colspan: i.headers.length
6108
6166
  }, [
6109
- p(e.$slots, "no-data", {}, () => [
6167
+ c(e.$slots, "no-data", {}, () => [
6110
6168
  S("No data to show.")
6111
6169
  ])
6112
6170
  ], 8, Ks)
6113
6171
  ])),
6114
- l.tableItems.length && i.loading !== !0 ? (s(!0), u(v, { key: 2 }, R(l.paginatedItems, (b, T) => (s(), u(v, { key: T }, [
6115
- e.$slots.item ? p(e.$slots, "item", {
6172
+ l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, L(l.paginatedItems, (b, T) => (o(), u(k, { key: T }, [
6173
+ e.$slots.item ? c(e.$slots, "item", {
6116
6174
  key: 0,
6117
6175
  item: b,
6118
6176
  index: T + 1,
6119
6177
  select: () => l.doSelectRow(b, T),
6120
6178
  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 }
6121
- }) : (s(), u("tr", {
6179
+ }) : (o(), u("tr", {
6122
6180
  key: 1,
6123
6181
  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 }]),
6124
6182
  onClick: (x) => l.doSelectRow(b, T)
6125
6183
  }, [
6126
- (s(!0), u(v, null, R(i.headers, (x, P) => (s(), u(v, null, [
6127
- e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
6184
+ (o(!0), u(k, null, L(i.headers, (x, P) => (o(), u(k, null, [
6185
+ e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
6128
6186
  class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
6129
6187
  key: `${P}-a`,
6130
6188
  "data-label": x.label
6131
6189
  }, [
6132
- e.$slots[`item-cell.${x.key}`] ? p(e.$slots, `item-cell.${x.key}`, {
6190
+ e.$slots[`item-cell.${x.key}`] ? c(e.$slots, `item-cell.${x.key}`, {
6133
6191
  key: 0,
6134
6192
  header: x,
6135
6193
  item: b,
6136
6194
  label: b[x.key] || "",
6137
6195
  index: T + 1
6138
- }) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
6196
+ }) : e.$slots[`item-cell.${P + 1}`] ? c(e.$slots, `item-cell.${P + 1}`, {
6139
6197
  key: 1,
6140
6198
  header: x,
6141
6199
  item: b,
6142
6200
  label: b[x.key] || "",
6143
6201
  index: T + 1
6144
- }) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
6202
+ }) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
6145
6203
  key: 2,
6146
6204
  header: x,
6147
6205
  item: b,
6148
6206
  label: b[x.key] || "",
6149
6207
  index: T + 1
6150
- }) : c("", !0),
6151
- P < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6208
+ }) : p("", !0),
6209
+ P < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6152
6210
  key: 3,
6153
6211
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
6154
- }, null, 2)) : c("", !0)
6155
- ], 10, Hs)) : (s(), u("td", {
6212
+ }, null, 2)) : p("", !0)
6213
+ ], 10, Hs)) : (o(), u("td", {
6156
6214
  class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
6157
6215
  key: `${P}-b`,
6158
6216
  "data-label": x.label
@@ -6160,60 +6218,60 @@ function lo(e, t, i, o, n, l) {
6160
6218
  y("div", {
6161
6219
  innerHTML: b[x.key] || ""
6162
6220
  }, null, 8, Fs),
6163
- P < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6221
+ P < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6164
6222
  key: 0,
6165
6223
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
6166
- }, null, 2)) : c("", !0)
6224
+ }, null, 2)) : p("", !0)
6167
6225
  ], 10, Ds))
6168
6226
  ], 64))), 256))
6169
6227
  ], 10, Ns)),
6170
- l.expandedRowsByUid[b._uid] ? (s(), u("tr", js, [
6228
+ l.expandedRowsByUid[b._uid] ? (o(), u("tr", js, [
6171
6229
  y("td", {
6172
6230
  class: "w-table__cell",
6173
6231
  colspan: i.headers.length
6174
6232
  }, [
6175
6233
  V(h, { y: "" }, {
6176
6234
  default: m(() => [
6177
- l.expandedRowsByUid[b._uid] ? (s(), u("div", qs, [
6178
- p(e.$slots, "row-expansion", {
6235
+ l.expandedRowsByUid[b._uid] ? (o(), u("div", qs, [
6236
+ c(e.$slots, "row-expansion", {
6179
6237
  item: b,
6180
6238
  index: T + 1
6181
6239
  })
6182
- ])) : c("", !0),
6183
- T < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
6240
+ ])) : p("", !0),
6241
+ T < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6184
6242
  key: 1,
6185
6243
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
6186
- }, null, 2)) : c("", !0)
6244
+ }, null, 2)) : p("", !0)
6187
6245
  ]),
6188
6246
  _: 2
6189
6247
  }, 1024)
6190
6248
  ], 8, Us)
6191
- ])) : c("", !0)
6192
- ], 64))), 128)) : c("", !0),
6193
- e.$slots["extra-row"] ? (s(), u("div", Xs, [
6194
- p(e.$slots, "extra-row")
6195
- ])) : c("", !0)
6249
+ ])) : p("", !0)
6250
+ ], 64))), 128)) : p("", !0),
6251
+ e.$slots["extra-row"] ? (o(), u("div", Xs, [
6252
+ c(e.$slots, "extra-row")
6253
+ ])) : p("", !0)
6196
6254
  ]),
6197
- e.$slots.footer || e.$slots["footer-row"] || i.pagination ? (s(), u("tfoot", Ys, [
6198
- e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Gs, [
6255
+ e.$slots.footer || e.$slots["footer-row"] || i.pagination ? (o(), u("tfoot", Ys, [
6256
+ e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", Gs, [
6199
6257
  y("td", {
6200
6258
  class: "w-table__cell",
6201
6259
  colspan: i.headers.length
6202
6260
  }, [
6203
- p(e.$slots, "footer")
6261
+ c(e.$slots, "footer")
6204
6262
  ], 8, Js)
6205
- ])) : c("", !0),
6206
- i.pagination && e.paginationConfig ? (s(), u("tr", Qs, [
6263
+ ])) : p("", !0),
6264
+ i.pagination && e.paginationConfig ? (o(), u("tr", Qs, [
6207
6265
  y("td", {
6208
6266
  class: "w-table__cell",
6209
6267
  colspan: i.headers.length
6210
6268
  }, [
6211
6269
  y("div", eo, [
6212
- p(e.$slots, "pagination", {
6270
+ c(e.$slots, "pagination", {
6213
6271
  range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
6214
6272
  total: e.paginationConfig.total
6215
6273
  }, () => [
6216
- e.paginationConfig.itemsPerPageOptions ? (s(), g(k, {
6274
+ e.paginationConfig.itemsPerPageOptions ? (o(), g(w, {
6217
6275
  key: 0,
6218
6276
  class: "w-pagination__items-per-page",
6219
6277
  modelValue: e.paginationConfig.itemsPerPage,
@@ -6223,7 +6281,7 @@ function lo(e, t, i, o, n, l) {
6223
6281
  "label-position": "left",
6224
6282
  label: "Items per page",
6225
6283
  "label-color": "inherit"
6226
- }, null, 8, ["modelValue", "items"])) : c("", !0),
6284
+ }, null, 8, ["modelValue", "items"])) : p("", !0),
6227
6285
  y("div", to, [
6228
6286
  V(B, {
6229
6287
  class: "w-pagination__arrow w-pagination__arrow--prev",
@@ -6233,7 +6291,7 @@ function lo(e, t, i, o, n, l) {
6233
6291
  text: "",
6234
6292
  lg: ""
6235
6293
  }, null, 8, ["disabled"]),
6236
- (s(!0), u(v, null, R(e.paginationConfig.pagesCount, (b) => (s(), g(B, {
6294
+ (o(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (o(), g(B, {
6237
6295
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
6238
6296
  key: b,
6239
6297
  onClick: (T) => b !== e.paginationConfig.page && l.goToPage(b),
@@ -6258,12 +6316,12 @@ function lo(e, t, i, o, n, l) {
6258
6316
  ])
6259
6317
  ])
6260
6318
  ], 8, Zs)
6261
- ])) : c("", !0)
6262
- ])) : c("", !0)
6319
+ ])) : p("", !0)
6320
+ ])) : p("", !0)
6263
6321
  ], 34)
6264
6322
  ], 2);
6265
6323
  }
6266
- const ge = 15, so = {
6324
+ const me = 15, so = {
6267
6325
  name: "w-table",
6268
6326
  props: {
6269
6327
  items: { type: Array, required: !0 },
@@ -6355,7 +6413,7 @@ const ge = 15, so = {
6355
6413
  if (!this.activeSorting.length || this.sortFunction || this.fetch)
6356
6414
  return this.filteredItems;
6357
6415
  const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
6358
- 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)));
6416
+ 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)));
6359
6417
  },
6360
6418
  paginatedItems() {
6361
6419
  return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
@@ -6421,7 +6479,7 @@ const ge = 15, so = {
6421
6479
  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();
6422
6480
  },
6423
6481
  doSelectRow(e, t) {
6424
- const i = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6482
+ const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
6425
6483
  if (i) {
6426
6484
  const n = this.expandedRowsByUid[e._uid] === void 0;
6427
6485
  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(
@@ -6433,7 +6491,7 @@ const ge = 15, so = {
6433
6491
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
6434
6492
  }
6435
6493
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6436
- } else if (o) {
6494
+ } else if (s) {
6437
6495
  let n = !1;
6438
6496
  const l = this.selectedRowsByUid[e._uid] === void 0;
6439
6497
  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(
@@ -6458,16 +6516,16 @@ const ge = 15, so = {
6458
6516
  e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
6459
6517
  },
6460
6518
  onResizerMouseMove(e) {
6461
- const { startCursorX: t, columnEl: i, nextColumnEl: o, colWidth: n, nextColWidth: l } = this.colResizing;
6519
+ const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: n, nextColWidth: l } = this.colResizing;
6462
6520
  this.colResizing.dragging = !0;
6463
6521
  const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
6464
- i.style.width = n + a + "px", o.style.width = l - a + "px";
6465
- const k = a < 0 && i.offsetWidth > d || i.offsetWidth <= ge, B = a > 0 && o.offsetWidth > h;
6466
- if (k) {
6467
- const b = Math.max(i.offsetWidth, ge);
6468
- i.style.width = b + "px", o.style.width = r - b + "px";
6522
+ i.style.width = n + a + "px", s.style.width = l - a + "px";
6523
+ const w = a < 0 && i.offsetWidth > d || i.offsetWidth <= me, B = a > 0 && s.offsetWidth > h;
6524
+ if (w) {
6525
+ const b = Math.max(i.offsetWidth, me);
6526
+ i.style.width = b + "px", s.style.width = r - b + "px";
6469
6527
  } else
6470
- B && (i.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
6528
+ B && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
6471
6529
  },
6472
6530
  onResizerMouseUp() {
6473
6531
  document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
@@ -6479,8 +6537,8 @@ const ge = 15, so = {
6479
6537
  }, 0);
6480
6538
  },
6481
6539
  initPagination() {
6482
- var o, n, l;
6483
- const e = (n = (o = this.pagination) == null ? void 0 : o.itemsPerPage) != null ? n : 20, t = ((l = this.pagination) == null ? void 0 : l.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6540
+ var s, n, l;
6541
+ const e = (n = (s = this.pagination) == null ? void 0 : s.itemsPerPage) != null ? n : 20, t = ((l = this.pagination) == null ? void 0 : l.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6484
6542
  t.find((a) => {
6485
6543
  var r;
6486
6544
  return ((r = a == null ? void 0 : a.value) != null ? r : a) === +e;
@@ -6507,13 +6565,13 @@ const ge = 15, so = {
6507
6565
  this.paginationConfig.page = Math.max(1, this.paginationConfig.page), this.paginationConfig.start = t * (this.paginationConfig.page - 1) + 1, this.paginationConfig.end = this.paginationConfig.start - 1 + (t || i), typeof this.fetch == "function" && await this.callApiFetch();
6508
6566
  },
6509
6567
  async callApiFetch() {
6510
- const { page: e, start: t, end: i, total: o, itemsPerPage: n } = this.paginationConfig;
6568
+ const { page: e, start: t, end: i, total: s, itemsPerPage: n } = this.paginationConfig;
6511
6569
  return await this.fetch({
6512
6570
  page: e,
6513
6571
  start: t,
6514
- end: i || o,
6515
- total: o,
6516
- itemsPerPage: n || o,
6572
+ end: i || s,
6573
+ total: s,
6574
+ itemsPerPage: n || s,
6517
6575
  sorting: this.activeSorting
6518
6576
  });
6519
6577
  }
@@ -6547,9 +6605,9 @@ const ge = 15, so = {
6547
6605
  this.updatePaginationConfig({ total: e });
6548
6606
  }
6549
6607
  }
6550
- }, oo = /* @__PURE__ */ w(so, [["render", lo]]), ao = ["role", "aria-pressed", "tabindex"];
6551
- function no(e, t, i, o, n, l) {
6552
- return s(), u("span", C({ class: "w-tag" }, z(e.$attrs, !0), {
6608
+ }, oo = /* @__PURE__ */ v(so, [["render", lo]]), ao = ["role", "aria-pressed", "tabindex"];
6609
+ function no(e, t, i, s, n, l) {
6610
+ return o(), u("span", C({ class: "w-tag" }, z(e.$attrs, !0), {
6553
6611
  onClick: t[1] || (t[1] = (a) => {
6554
6612
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
6555
6613
  }),
@@ -6562,8 +6620,8 @@ function no(e, t, i, o, n, l) {
6562
6620
  tabindex: i.modelValue !== -1 && 0,
6563
6621
  style: l.styles
6564
6622
  }), [
6565
- p(e.$slots, "default"),
6566
- i.closable && i.modelValue ? (s(), u("i", {
6623
+ c(e.$slots, "default"),
6624
+ i.closable && i.modelValue ? (o(), u("i", {
6567
6625
  key: 0,
6568
6626
  class: "w-icon w-tag__closable wi-cross",
6569
6627
  onClick: t[0] || (t[0] = M((a) => {
@@ -6571,7 +6629,7 @@ function no(e, t, i, o, n, l) {
6571
6629
  }, ["stop"])),
6572
6630
  role: "icon",
6573
6631
  "aria-hidden": "true"
6574
- })) : c("", !0)
6632
+ })) : p("", !0)
6575
6633
  ], 16, ao);
6576
6634
  }
6577
6635
  const ro = {
@@ -6623,10 +6681,10 @@ const ro = {
6623
6681
  };
6624
6682
  }
6625
6683
  }
6626
- }, uo = /* @__PURE__ */ w(ro, [["render", no]]), ho = ["for"], co = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], po = ["for"];
6627
- function fo(e, t, i, o, n, l) {
6684
+ }, uo = /* @__PURE__ */ v(ro, [["render", no]]), ho = ["for"], co = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], po = ["for"];
6685
+ function fo(e, t, i, s, n, l) {
6628
6686
  const a = $("w-icon");
6629
- return s(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
6687
+ return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
6630
6688
  valid: e.valid,
6631
6689
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
6632
6690
  wrap: l.hasLabel && i.labelPosition !== "inside",
@@ -6636,21 +6694,21 @@ function fo(e, t, i, o, n, l) {
6636
6694
  class: l.classes
6637
6695
  }), {
6638
6696
  default: m(() => [
6639
- i.labelPosition === "left" ? (s(), u(v, { key: 0 }, [
6640
- e.$slots.default || i.label ? (s(), u("label", {
6697
+ i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
6698
+ e.$slots.default || i.label ? (o(), u("label", {
6641
6699
  key: 0,
6642
6700
  class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
6643
6701
  for: `w-textarea--${e._.uid}`
6644
6702
  }, [
6645
- p(e.$slots, "default", {}, () => [
6703
+ c(e.$slots, "default", {}, () => [
6646
6704
  S(_(i.label), 1)
6647
6705
  ])
6648
- ], 10, ho)) : c("", !0)
6649
- ], 64)) : c("", !0),
6706
+ ], 10, ho)) : p("", !0)
6707
+ ], 64)) : p("", !0),
6650
6708
  y("div", {
6651
6709
  class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
6652
6710
  }, [
6653
- i.innerIconLeft ? (s(), g(a, {
6711
+ i.innerIconLeft ? (o(), g(a, {
6654
6712
  key: 0,
6655
6713
  class: "w-textarea__icon w-textarea__icon--inner-left",
6656
6714
  tag: "label",
@@ -6661,8 +6719,8 @@ function fo(e, t, i, o, n, l) {
6661
6719
  S(_(i.innerIconLeft), 1)
6662
6720
  ]),
6663
6721
  _: 1
6664
- }, 8, ["for"])) : c("", !0),
6665
- A(y("textarea", C({
6722
+ }, 8, ["for"])) : p("", !0),
6723
+ K(y("textarea", C({
6666
6724
  class: "w-textarea__textarea",
6667
6725
  ref: "textarea",
6668
6726
  "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
@@ -6681,19 +6739,19 @@ function fo(e, t, i, o, n, l) {
6681
6739
  required: e.required || null,
6682
6740
  tabindex: e.tabindex || null
6683
6741
  }), null, 16, co), [
6684
- [ae, n.inputValue]
6742
+ [be, n.inputValue]
6685
6743
  ]),
6686
- i.labelPosition === "inside" && l.showLabelInside ? (s(), u(v, { key: 1 }, [
6687
- e.$slots.default || i.label ? (s(), u("label", {
6744
+ i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
6745
+ e.$slots.default || i.label ? (o(), u("label", {
6688
6746
  key: 0,
6689
6747
  class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
6690
6748
  }, [
6691
- p(e.$slots, "default", {}, () => [
6749
+ c(e.$slots, "default", {}, () => [
6692
6750
  S(_(i.label), 1)
6693
6751
  ])
6694
- ], 2)) : c("", !0)
6695
- ], 64)) : c("", !0),
6696
- i.innerIconRight ? (s(), g(a, {
6752
+ ], 2)) : p("", !0)
6753
+ ], 64)) : p("", !0),
6754
+ i.innerIconRight ? (o(), g(a, {
6697
6755
  key: 2,
6698
6756
  class: "w-textarea__icon w-textarea__icon--inner-right",
6699
6757
  tag: "label",
@@ -6704,19 +6762,19 @@ function fo(e, t, i, o, n, l) {
6704
6762
  S(_(i.innerIconRight), 1)
6705
6763
  ]),
6706
6764
  _: 1
6707
- }, 8, ["for"])) : c("", !0)
6765
+ }, 8, ["for"])) : p("", !0)
6708
6766
  ], 2),
6709
- i.labelPosition === "right" ? (s(), u(v, { key: 1 }, [
6710
- e.$slots.default || i.label ? (s(), u("label", {
6767
+ i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
6768
+ e.$slots.default || i.label ? (o(), u("label", {
6711
6769
  key: 0,
6712
6770
  class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
6713
6771
  for: `w-textarea--${e._.uid}`
6714
6772
  }, [
6715
- p(e.$slots, "default", {}, () => [
6773
+ c(e.$slots, "default", {}, () => [
6716
6774
  S(_(i.label), 1)
6717
6775
  ])
6718
- ], 10, po)) : c("", !0)
6719
- ], 64)) : c("", !0)
6776
+ ], 10, po)) : p("", !0)
6777
+ ], 64)) : p("", !0)
6720
6778
  ]),
6721
6779
  _: 3
6722
6780
  }, 16, ["valid", "wrap", "class"]);
@@ -6757,8 +6815,8 @@ const mo = {
6757
6815
  },
6758
6816
  computed: {
6759
6817
  listeners() {
6760
- const { input: e, focus: t, blur: i, ...o } = this.$attrs;
6761
- return o;
6818
+ const { input: e, focus: t, blur: i, ...s } = this.$attrs;
6819
+ return s;
6762
6820
  },
6763
6821
  hasValue() {
6764
6822
  return this.inputValue || this.inputValue === 0;
@@ -6837,16 +6895,16 @@ const mo = {
6837
6895
  e ? this.getLineHeight() : this.height = null;
6838
6896
  }
6839
6897
  }
6840
- }, go = /* @__PURE__ */ w(mo, [["render", fo]]), bo = ["innerHTML"], yo = ["innerHTML"];
6841
- function wo(e, t, i, o, n, l) {
6842
- return s(), u("ul", {
6898
+ }, go = /* @__PURE__ */ v(mo, [["render", fo]]), bo = ["innerHTML"], yo = ["innerHTML"];
6899
+ function wo(e, t, i, s, n, l) {
6900
+ return o(), u("ul", {
6843
6901
  class: f(["w-timeline", l.classes])
6844
6902
  }, [
6845
- (s(!0), u(v, null, R(i.items, (a, r) => (s(), u("li", {
6903
+ (o(!0), u(k, null, L(i.items, (a, r) => (o(), u("li", {
6846
6904
  class: "w-timeline-item",
6847
6905
  key: r
6848
6906
  }, [
6849
- (s(), g(I(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
6907
+ (o(), g(I(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
6850
6908
  class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
6851
6909
  }, {
6852
6910
  default: m(() => [
@@ -6854,11 +6912,11 @@ function wo(e, t, i, o, n, l) {
6854
6912
  ]),
6855
6913
  _: 2
6856
6914
  }, 1032, ["class"])),
6857
- e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
6915
+ e.$slots[`item.${r + 1}`] ? c(e.$slots, `item.${r + 1}`, {
6858
6916
  key: 1,
6859
6917
  item: a,
6860
6918
  index: r + 1
6861
- }) : p(e.$slots, "item", {
6919
+ }) : c(e.$slots, "item", {
6862
6920
  key: 0,
6863
6921
  item: a,
6864
6922
  index: r + 1
@@ -6897,13 +6955,13 @@ const vo = {
6897
6955
  };
6898
6956
  }
6899
6957
  }
6900
- }, ko = /* @__PURE__ */ w(vo, [["render", wo]]);
6901
- function _o(e, t, i, o, n, l) {
6902
- return s(), u("div", {
6958
+ }, ko = /* @__PURE__ */ v(vo, [["render", wo]]);
6959
+ function _o(e, t, i, s, n, l) {
6960
+ return o(), u("div", {
6903
6961
  class: f(["w-toolbar", l.classes]),
6904
- style: L(l.styles)
6962
+ style: R(l.styles)
6905
6963
  }, [
6906
- p(e.$slots, "default")
6964
+ c(e.$slots, "default")
6907
6965
  ], 6);
6908
6966
  }
6909
6967
  const Co = {
@@ -6955,23 +7013,23 @@ const Co = {
6955
7013
  };
6956
7014
  }
6957
7015
  }
6958
- }, So = /* @__PURE__ */ w(Co, [["render", _o]]);
6959
- function Bo(e, t, i, o, n, l) {
6960
- return s(), u(v, null, [
6961
- p(e.$slots, "activator", { on: l.activatorEventHandlers }),
7016
+ }, So = /* @__PURE__ */ v(Co, [["render", _o]]);
7017
+ function Bo(e, t, i, s, n, l) {
7018
+ return o(), u(k, null, [
7019
+ c(e.$slots, "activator", { on: l.activatorEventHandlers }),
6962
7020
  V(O, {
6963
7021
  name: l.transitionName,
6964
7022
  appear: ""
6965
7023
  }, {
6966
7024
  default: m(() => [
6967
- e.detachableVisible ? (s(), u("div", {
7025
+ e.detachableVisible ? (o(), u("div", {
6968
7026
  class: f(["w-tooltip", l.classes]),
6969
7027
  ref: "detachable",
6970
7028
  key: e._.uid,
6971
- style: L(l.styles)
7029
+ style: R(l.styles)
6972
7030
  }, [
6973
- p(e.$slots, "default")
6974
- ], 6)) : c("", !0)
7031
+ c(e.$slots, "default")
7032
+ ], 6)) : p("", !0)
6975
7033
  ]),
6976
7034
  _: 3
6977
7035
  }, 8, ["name"])
@@ -7016,7 +7074,7 @@ const $o = {
7016
7074
  }),
7017
7075
  computed: {
7018
7076
  tooltipClasses() {
7019
- return K(this.tooltipClass);
7077
+ return A(this.tooltipClass);
7020
7078
  },
7021
7079
  transitionName() {
7022
7080
  const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
@@ -7076,11 +7134,11 @@ const $o = {
7076
7134
  !this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
7077
7135
  }
7078
7136
  }
7079
- }, Vo = /* @__PURE__ */ w($o, [["render", Bo]]);
7080
- function Io(e, t, i, o, n, l) {
7081
- return s(), g(O, C({ name: "bounce" }, e.$props), {
7137
+ }, Vo = /* @__PURE__ */ v($o, [["render", Bo]]);
7138
+ function Io(e, t, i, s, n, l) {
7139
+ return o(), g(O, C({ name: "bounce" }, e.$props), {
7082
7140
  default: m(() => [
7083
- p(e.$slots, "default")
7141
+ c(e.$slots, "default")
7084
7142
  ]),
7085
7143
  _: 3
7086
7144
  }, 16);
@@ -7091,9 +7149,9 @@ const To = {
7091
7149
  appear: { type: Boolean },
7092
7150
  duration: { type: [Number, String] }
7093
7151
  }
7094
- }, Ro = /* @__PURE__ */ w(To, [["render", Io]]);
7095
- function Lo(e, t, i, o, n, l) {
7096
- return s(), g(O, {
7152
+ }, Lo = /* @__PURE__ */ v(To, [["render", Io]]);
7153
+ function Ro(e, t, i, s, n, l) {
7154
+ return o(), g(O, {
7097
7155
  name: "expand",
7098
7156
  mode: "out-in",
7099
7157
  css: !1,
@@ -7108,7 +7166,7 @@ function Lo(e, t, i, o, n, l) {
7108
7166
  onAfterLeave: l.afterLeave
7109
7167
  }, {
7110
7168
  default: m(() => [
7111
- p(e.$slots, "default")
7169
+ c(e.$slots, "default")
7112
7170
  ]),
7113
7171
  _: 3
7114
7172
  }, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
@@ -7203,11 +7261,11 @@ const xo = {
7203
7261
  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;
7204
7262
  }
7205
7263
  }
7206
- }, Oo = /* @__PURE__ */ w(xo, [["render", Lo]]);
7207
- function Po(e, t, i, o, n, l) {
7208
- return s(), g(O, C({ name: "fade" }, e.$props), {
7264
+ }, Oo = /* @__PURE__ */ v(xo, [["render", Ro]]);
7265
+ function Po(e, t, i, s, n, l) {
7266
+ return o(), g(O, C({ name: "fade" }, e.$props), {
7209
7267
  default: m(() => [
7210
- p(e.$slots, "default")
7268
+ c(e.$slots, "default")
7211
7269
  ]),
7212
7270
  _: 3
7213
7271
  }, 16);
@@ -7218,11 +7276,11 @@ const Mo = {
7218
7276
  appear: { type: Boolean },
7219
7277
  duration: { type: [Number, String] }
7220
7278
  }
7221
- }, zo = /* @__PURE__ */ w(Mo, [["render", Po]]);
7222
- function Eo(e, t, i, o, n, l) {
7223
- return s(), g(O, C({ name: "scale" }, e.$props), {
7279
+ }, zo = /* @__PURE__ */ v(Mo, [["render", Po]]);
7280
+ function Eo(e, t, i, s, n, l) {
7281
+ return o(), g(O, C({ name: "scale" }, e.$props), {
7224
7282
  default: m(() => [
7225
- p(e.$slots, "default")
7283
+ c(e.$slots, "default")
7226
7284
  ]),
7227
7285
  _: 3
7228
7286
  }, 16);
@@ -7233,11 +7291,11 @@ const Wo = {
7233
7291
  appear: { type: Boolean },
7234
7292
  duration: { type: [Number, String] }
7235
7293
  }
7236
- }, Ao = /* @__PURE__ */ w(Wo, [["render", Eo]]);
7237
- function Ko(e, t, i, o, n, l) {
7238
- return s(), g(O, C({ name: "scale-fade" }, e.$props), {
7294
+ }, Ao = /* @__PURE__ */ v(Wo, [["render", Eo]]);
7295
+ function Ko(e, t, i, s, n, l) {
7296
+ return o(), g(O, C({ name: "scale-fade" }, e.$props), {
7239
7297
  default: m(() => [
7240
- p(e.$slots, "default")
7298
+ c(e.$slots, "default")
7241
7299
  ]),
7242
7300
  _: 3
7243
7301
  }, 16);
@@ -7248,11 +7306,11 @@ const No = {
7248
7306
  appear: { type: Boolean },
7249
7307
  duration: { type: [Number, String] }
7250
7308
  }
7251
- }, Ho = /* @__PURE__ */ w(No, [["render", Ko]]);
7252
- function Do(e, t, i, o, n, l) {
7253
- return s(), g(O, C({ name: l.transitionName }, e.$props), {
7309
+ }, Ho = /* @__PURE__ */ v(No, [["render", Ko]]);
7310
+ function Do(e, t, i, s, n, l) {
7311
+ return o(), g(O, C({ name: l.transitionName }, e.$props), {
7254
7312
  default: m(() => [
7255
- p(e.$slots, "default")
7313
+ c(e.$slots, "default")
7256
7314
  ]),
7257
7315
  _: 3
7258
7316
  }, 16, ["name"]);
@@ -7275,11 +7333,11 @@ const Fo = {
7275
7333
  return `slide-${this.direction}`;
7276
7334
  }
7277
7335
  }
7278
- }, jo = /* @__PURE__ */ w(Fo, [["render", Do]]);
7279
- function Uo(e, t, i, o, n, l) {
7280
- return s(), g(O, C({ name: l.transitionName }, e.$props), {
7336
+ }, jo = /* @__PURE__ */ v(Fo, [["render", Do]]);
7337
+ function Uo(e, t, i, s, n, l) {
7338
+ return o(), g(O, C({ name: l.transitionName }, e.$props), {
7281
7339
  default: m(() => [
7282
- p(e.$slots, "default")
7340
+ c(e.$slots, "default")
7283
7341
  ]),
7284
7342
  _: 3
7285
7343
  }, 16, ["name"]);
@@ -7302,11 +7360,11 @@ const qo = {
7302
7360
  return `slide-fade-${this.direction}`;
7303
7361
  }
7304
7362
  }
7305
- }, Xo = /* @__PURE__ */ w(qo, [["render", Uo]]);
7306
- function Yo(e, t, i, o, n, l) {
7307
- return s(), g(O, C({ name: "twist" }, e.$props), {
7363
+ }, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
7364
+ function Yo(e, t, i, s, n, l) {
7365
+ return o(), g(O, C({ name: "twist" }, e.$props), {
7308
7366
  default: m(() => [
7309
- p(e.$slots, "default")
7367
+ c(e.$slots, "default")
7310
7368
  ]),
7311
7369
  _: 3
7312
7370
  }, 16);
@@ -7317,26 +7375,26 @@ const Go = {
7317
7375
  appear: { type: Boolean },
7318
7376
  duration: { type: [Number, String] }
7319
7377
  }
7320
- }, Jo = /* @__PURE__ */ w(Go, [["render", Yo]]), Qo = ["innerHTML"], Zo = {
7378
+ }, Jo = /* @__PURE__ */ v(Go, [["render", Yo]]), Qo = ["innerHTML"], Zo = {
7321
7379
  key: 1,
7322
7380
  class: "ml1"
7323
7381
  };
7324
- function ea(e, t, i, o, n, l) {
7382
+ function ea(e, t, i, s, n, l) {
7325
7383
  const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7326
- return s(), u("ul", {
7384
+ return o(), u("ul", {
7327
7385
  class: f(["w-tree", l.classes])
7328
7386
  }, [
7329
- (s(!0), u(v, null, R(e.currentDepthItems, (h, k) => (s(), u("li", {
7387
+ (o(!0), u(k, null, L(e.currentDepthItems, (h, w) => (o(), u("li", {
7330
7388
  class: f(["w-tree__item", l.itemClasses(h)]),
7331
- key: k
7389
+ key: w
7332
7390
  }, [
7333
- (s(), g(I(l.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7391
+ (o(), g(I(l.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
7334
7392
  onClick: (B) => !i.disabled && !h.disabled && l.onLabelClick(h, B),
7335
7393
  onKeydown: (B) => !i.disabled && !h.disabled && l.onLabelKeydown(h, B),
7336
7394
  tabindex: l.getTreeItemTabindex(h)
7337
7395
  }), {
7338
7396
  default: m(() => [
7339
- (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (s(), g(a, {
7397
+ (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), g(a, {
7340
7398
  key: 0,
7341
7399
  class: "w-tree__item-expand",
7342
7400
  onClick: M((B) => !i.disabled && !h.disabled && l.onLabelClick(h, B), ["stop"]),
@@ -7347,8 +7405,8 @@ function ea(e, t, i, o, n, l) {
7347
7405
  disabled: i.disabled || h.disabled,
7348
7406
  text: "",
7349
7407
  sm: ""
7350
- }, null, 8, ["onClick", "icon", "icon-props", "disabled"])) : c("", !0),
7351
- p(e.$slots, "item", {
7408
+ }, null, 8, ["onClick", "icon", "icon-props", "disabled"])) : p("", !0),
7409
+ c(e.$slots, "item", {
7352
7410
  item: h.originalItem,
7353
7411
  depth: i.depth,
7354
7412
  path: h.path,
@@ -7356,7 +7414,7 @@ function ea(e, t, i, o, n, l) {
7356
7414
  }, () => {
7357
7415
  var B;
7358
7416
  return [
7359
- l.itemIcon(h) ? (s(), g(r, {
7417
+ l.itemIcon(h) ? (o(), g(r, {
7360
7418
  key: 0,
7361
7419
  class: "w-tree__item-icon",
7362
7420
  color: h.originalItem[i.itemIconColorKey] || i.iconColor
@@ -7365,23 +7423,23 @@ function ea(e, t, i, o, n, l) {
7365
7423
  S(_(l.itemIcon(h)), 1)
7366
7424
  ]),
7367
7425
  _: 2
7368
- }, 1032, ["color"])) : c("", !0),
7426
+ }, 1032, ["color"])) : p("", !0),
7369
7427
  y("span", {
7370
7428
  innerHTML: h.label
7371
7429
  }, null, 8, Qo),
7372
- i.counts && (h.children || h.branch) ? (s(), u("span", Zo, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : c("", !0)
7430
+ i.counts && (h.children || h.branch) ? (o(), u("span", Zo, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : p("", !0)
7373
7431
  ];
7374
7432
  })
7375
7433
  ]),
7376
7434
  _: 2
7377
7435
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
7378
- (s(), g(I(i.noTransition ? "div" : "w-transition-expand"), {
7436
+ (o(), g(I(i.noTransition ? "div" : "w-transition-expand"), {
7379
7437
  y: !i.noTransition || null,
7380
7438
  onAfterEnter: (B) => e.$emit("open", l.emitPayload(h)),
7381
7439
  onAfterLeave: (B) => e.$emit("close", l.emitPayload(h))
7382
7440
  }, {
7383
7441
  default: m(() => [
7384
- h.children && h.open ? (s(), g(d, C({ key: 0 }, e.$props, {
7442
+ h.children && h.open ? (o(), g(d, C({ key: 0 }, e.$props, {
7385
7443
  depth: i.depth + 1,
7386
7444
  data: h.originalItem.children,
7387
7445
  parent: h,
@@ -7394,7 +7452,7 @@ function ea(e, t, i, o, n, l) {
7394
7452
  "onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
7395
7453
  }), {
7396
7454
  item: m(({ item: B, depth: b, path: T, open: x }) => [
7397
- p(e.$slots, "item", {
7455
+ c(e.$slots, "item", {
7398
7456
  item: B,
7399
7457
  depth: b,
7400
7458
  path: T,
@@ -7402,7 +7460,7 @@ function ea(e, t, i, o, n, l) {
7402
7460
  })
7403
7461
  ]),
7404
7462
  _: 2
7405
- }, 1040, ["depth", "data", "parent"])) : c("", !0)
7463
+ }, 1040, ["depth", "data", "parent"])) : p("", !0)
7406
7464
  ]),
7407
7465
  _: 2
7408
7466
  }, 1064, ["y", "onAfterEnter", "onAfterLeave"]))
@@ -7458,19 +7516,19 @@ const ta = {
7458
7516
  updateCurrentDepthTree(e, t = []) {
7459
7517
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
7460
7518
  return U(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7461
- Array.isArray(e) || (e = [e]), e.forEach((i, o) => {
7519
+ Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
7462
7520
  var l, a;
7463
7521
  const n = {
7464
7522
  originalItem: i,
7465
- _uid: this.depth.toString() + (o + 1),
7523
+ _uid: this.depth.toString() + (s + 1),
7466
7524
  label: i[this.itemLabelKey],
7467
7525
  children: !!i.children,
7468
7526
  branch: i.branch,
7469
7527
  route: i[this.itemRouteKey],
7470
7528
  disabled: i[this.itemDisabledKey],
7471
- selected: ((l = t[o]) == null ? void 0 : l.selected) || !1,
7529
+ selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
7472
7530
  depth: this.depth,
7473
- open: !!(((a = t[o]) == null ? void 0 : a.open) || this.expandAll || i[this.itemOpenKey]),
7531
+ open: !!(((a = t[s]) == null ? void 0 : a.open) || this.expandAll || i[this.itemOpenKey]),
7474
7532
  parent: this.parent || null,
7475
7533
  path: []
7476
7534
  };
@@ -7500,13 +7558,13 @@ const ta = {
7500
7558
  },
7501
7559
  onLabelClick(e, t) {
7502
7560
  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);
7503
- const o = this.emitPayload(e, t);
7504
- this.$emit("click", o), this.emitItemSelection(e, t);
7561
+ const s = this.emitPayload(e, t);
7562
+ this.$emit("click", s), this.emitItemSelection(e, t);
7505
7563
  },
7506
7564
  onLabelKeydown(e, t) {
7507
7565
  if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
7508
- const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.which === 38 ? -1 : 1;
7509
- [...o].some((a, r) => a.isSameNode(n) ? (o[r + l] && o[r + l].focus(), !0) : !1);
7566
+ 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.which === 38 ? -1 : 1;
7567
+ [...s].some((a, r) => a.isSameNode(n) ? (s[r + l] && s[r + l].focus(), !0) : !1);
7510
7568
  }
7511
7569
  t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
7512
7570
  },
@@ -7563,7 +7621,7 @@ const ta = {
7563
7621
  unmounted() {
7564
7622
  this.dataPropUnwatch();
7565
7623
  }
7566
- }, ia = /* @__PURE__ */ w(ta, [["render", ea]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7624
+ }, ia = /* @__PURE__ */ v(ta, [["render", ea]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7567
7625
  __proto__: null,
7568
7626
  WAccordion: Ye,
7569
7627
  WAlert: Ze,
@@ -7585,7 +7643,7 @@ const ta = {
7585
7643
  WFormElement: ki,
7586
7644
  WGrid: Si,
7587
7645
  WIcon: Vi,
7588
- WImage: Li,
7646
+ WImage: Ri,
7589
7647
  WInput: Hi,
7590
7648
  WList: ji,
7591
7649
  WMenu: Xi,
@@ -7609,7 +7667,7 @@ const ta = {
7609
7667
  WTimeline: ko,
7610
7668
  WToolbar: So,
7611
7669
  WTooltip: Vo,
7612
- WTransitionBounce: Ro,
7670
+ WTransitionBounce: Lo,
7613
7671
  WTransitionExpand: Oo,
7614
7672
  WTransitionFade: zo,
7615
7673
  WTransitionScale: Ao,