@vc-shell/framework 2.7.0-pr395.4103194 → 2.7.0-pr397.27ddc60

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.
Files changed (35) hide show
  1. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-e9TL407R.js → VcScheduler.vue_vue_type_script_setup_true_lang-BK3ha4gA.js} +1451 -1462
  2. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BK3ha4gA.js.map +1 -0
  3. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BzPg7VnG.js → VcScheduler.vue_vue_type_style_index_0_lang-BhXTPWKg.js} +764 -770
  4. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BhXTPWKg.js.map +1 -0
  5. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXccwYEq.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-aICyTuY8.js} +1 -1
  6. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXccwYEq.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-aICyTuY8.js.map} +1 -1
  7. package/dist/core/composables/useToolbar/index.d.ts +1 -1
  8. package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
  9. package/dist/core/services/toolbar-service.d.ts +1 -10
  10. package/dist/core/services/toolbar-service.d.ts.map +1 -1
  11. package/dist/dashboard/index.js +1 -1
  12. package/dist/framework.js +252 -253
  13. package/dist/framework.js.map +1 -1
  14. package/dist/index.css +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +1 -2
  18. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +1 -1
  19. package/dist/tsconfig.tsbuildinfo +1 -1
  20. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +1 -1
  21. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
  22. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +1 -1
  23. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
  24. package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts +1 -1
  25. package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts.map +1 -1
  26. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  27. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
  28. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
  29. package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts.map +1 -1
  30. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
  31. package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainer.vue.d.ts.map +1 -1
  32. package/dist/ui/index.js +2 -2
  33. package/package.json +4 -4
  34. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-e9TL407R.js.map +0 -1
  35. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BzPg7VnG.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { mergeProps as ae, inject as X, useId as tn, computed as O, ref as S, onBeforeUnmount as it, reactive as Qe, provide as Ot, getCurrentScope as nn, onScopeDispose as an, getCurrentInstance as je, onErrorCaptured as ln, nextTick as Ee, defineComponent as V, watch as Y, unref as r, openBlock as f, createElementBlock as h, normalizeClass as G, createBlock as D, createCommentVNode as w, renderSlot as B, createElementVNode as C, toDisplayString as M, Fragment as Ce, renderList as rt, normalizeStyle as Ve, resolveDynamicComponent as st, withCtx as L, withKeys as _, withModifiers as J, createVNode as R, shallowReactive as qe, watchEffect as nt, markRaw as at, createSlots as se, createTextVNode as ee, Transition as Pe, withDirectives as ut, vModelText as on, useAttrs as wt, vModelDynamic as rn, onMounted as He, onUnmounted as Lt, Teleport as sn, normalizeProps as Ne, guardReactiveProps as Ae } from "vue";
1
+ import { mergeProps as ae, inject as X, useId as tn, computed as O, ref as S, onBeforeUnmount as it, reactive as Qe, provide as Ot, getCurrentScope as nn, onScopeDispose as an, getCurrentInstance as je, onErrorCaptured as ln, nextTick as Ee, defineComponent as V, watch as Y, unref as r, openBlock as f, createElementBlock as y, normalizeClass as G, createBlock as D, createCommentVNode as w, renderSlot as B, createElementVNode as C, toDisplayString as M, Fragment as Ce, renderList as rt, normalizeStyle as Ve, resolveDynamicComponent as st, withCtx as L, withKeys as _, withModifiers as J, createVNode as R, shallowReactive as qe, watchEffect as nt, markRaw as at, createSlots as se, createTextVNode as ee, Transition as Pe, withDirectives as ut, vModelText as on, useAttrs as wt, vModelDynamic as rn, onMounted as He, onUnmounted as Lt, Teleport as sn, normalizeProps as Ne, guardReactiveProps as Ae } from "vue";
2
2
  import { c as pe, ak as un, R as cn, z as dn, w as fn, s as vn, I as gn, v as mn, t as pn, B as Ct, d as bn, i as yn, _ as W, T as Tt, a as Bt, Z as hn, C as In, u as kn, b as Sn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-TiaFg1wQ.js";
3
3
  import { defineRule as Te, Field as $n } from "vee-validate";
4
4
  import { a as ht } from "./vendor-vee-validate-rules-4oWUZPpG.js";
@@ -40,12 +40,12 @@ class ue extends Error {
40
40
  };
41
41
  }
42
42
  }
43
- class Pi extends ue {
43
+ class Vi extends ue {
44
44
  constructor(t, n) {
45
45
  super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
46
46
  }
47
47
  }
48
- class zi extends ue {
48
+ class Pi extends ue {
49
49
  constructor(t, n) {
50
50
  super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
51
51
  }
@@ -58,7 +58,7 @@ class qn extends ue {
58
58
  }), this.name = "InjectionError";
59
59
  }
60
60
  }
61
- class Fi extends ue {
61
+ class zi extends ue {
62
62
  constructor(t, n, a) {
63
63
  super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
64
64
  componentName: t,
@@ -66,7 +66,7 @@ class Fi extends ue {
66
66
  }), this.name = "RegistrationError";
67
67
  }
68
68
  }
69
- class Ki extends ue {
69
+ class Fi extends ue {
70
70
  constructor(t, n, a) {
71
71
  super(t, "BLADE_ERROR", {
72
72
  bladeId: n,
@@ -74,7 +74,7 @@ class Ki extends ue {
74
74
  }), this.name = "BladeError";
75
75
  }
76
76
  }
77
- class Ui extends ue {
77
+ class Ki extends ue {
78
78
  constructor(t, n, a) {
79
79
  super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
80
80
  moduleId: t,
@@ -85,7 +85,7 @@ class Ui extends ue {
85
85
  function Wn(e) {
86
86
  return e instanceof ue;
87
87
  }
88
- function qi(e, t = "UNKNOWN_ERROR") {
88
+ function Ui(e, t = "UNKNOWN_ERROR") {
89
89
  return Wn(e) ? e : e instanceof Error ? new ue(e.message, t, {
90
90
  originalError: e.name,
91
91
  stack: e.stack
@@ -239,7 +239,7 @@ function ta(e, t) {
239
239
  const l = n + 1 + o, s = e.slice(0, l), u = e.slice(l);
240
240
  return `${s}_${t}${u}`;
241
241
  }
242
- function Wi(e) {
242
+ function qi(e) {
243
243
  return e <= 64 ? "64x64" : e <= 128 ? "128x128" : e <= 168 ? "168x168" : e <= 216 ? "216x216" : e <= 348 ? "348x348" : "lg";
244
244
  }
245
245
  function na(e) {
@@ -256,7 +256,7 @@ function na(e) {
256
256
  }
257
257
  };
258
258
  }
259
- function ji() {
259
+ function Wi() {
260
260
  const e = /* @__PURE__ */ new Map();
261
261
  return {
262
262
  register(t, n) {
@@ -402,7 +402,7 @@ const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
402
402
  setNotificationBackend: la
403
403
  }, Symbol.toStringTag, { value: "Module" })), ia = Symbol("vc-input-group-context");
404
404
  function Ge(e) {
405
- const t = X(ia, null), n = tn(), a = O(() => `vc-field-${n}`), i = O(() => `${a.value}-label`), o = O(() => `${a.value}-error`), l = O(() => `${a.value}-hint`), s = O(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = O(() => !!e.disabled || !!t?.disabled.value), v = O(() => t?.name.value || e.name), b = O(() => e.required ? !0 : void 0), g = O(() => {
405
+ const t = X(ia, null), n = tn(), a = O(() => `vc-field-${n}`), i = O(() => `${a.value}-label`), o = O(() => `${a.value}-error`), l = O(() => `${a.value}-hint`), s = O(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = O(() => !!e.disabled || !!t?.disabled.value), g = O(() => t?.name.value || e.name), b = O(() => e.required ? !0 : void 0), v = O(() => {
406
406
  const d = /* @__PURE__ */ new Set();
407
407
  return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(o.value), e.hint && d.add(l.value), d.size ? Array.from(d).join(" ") : void 0;
408
408
  });
@@ -413,9 +413,9 @@ function Ge(e) {
413
413
  hintId: l,
414
414
  invalid: s,
415
415
  resolvedDisabled: u,
416
- resolvedName: v,
416
+ resolvedName: g,
417
417
  ariaRequired: b,
418
- ariaDescribedBy: g,
418
+ ariaDescribedBy: v,
419
419
  groupContext: t
420
420
  };
421
421
  }
@@ -427,21 +427,21 @@ function ra(e, t = {}) {
427
427
  const { speed: n = 2 } = t, a = S(!1), i = S(!1);
428
428
  let o = null;
429
429
  function l() {
430
- const v = e.value;
431
- if (!v) {
430
+ const g = e.value;
431
+ if (!g) {
432
432
  a.value = !1, i.value = !1;
433
433
  return;
434
434
  }
435
- a.value = v.scrollTop > 0, i.value = !Dt(v);
435
+ a.value = g.scrollTop > 0, i.value = !Dt(g);
436
436
  }
437
- function s(v) {
437
+ function s(g) {
438
438
  u();
439
439
  const b = e.value;
440
440
  if (!b) return;
441
- function g() {
442
- b && (b.scrollTop += v === "up" ? -n : n, l(), o = requestAnimationFrame(g));
441
+ function v() {
442
+ b && (b.scrollTop += g === "up" ? -n : n, l(), o = requestAnimationFrame(v));
443
443
  }
444
- o = requestAnimationFrame(g);
444
+ o = requestAnimationFrame(v);
445
445
  }
446
446
  function u() {
447
447
  o !== null && (cancelAnimationFrame(o), o = null);
@@ -466,16 +466,16 @@ const sa = (e, [t, n]) => {
466
466
  if (!e?.files || !e.files?.length)
467
467
  return !0;
468
468
  const a = (l, s, u) => {
469
- const v = window.URL || window.webkitURL;
469
+ const g = window.URL || window.webkitURL;
470
470
  return new Promise((b) => {
471
- const g = new Image(), d = v.createObjectURL(l);
472
- g.onerror = () => {
473
- v.revokeObjectURL(d), b(!1);
474
- }, g.onload = () => {
475
- v.revokeObjectURL(d);
476
- const c = g.width >= Number(s) && g.height >= Number(u);
471
+ const v = new Image(), d = g.createObjectURL(l);
472
+ v.onerror = () => {
473
+ g.revokeObjectURL(d), b(!1);
474
+ }, v.onload = () => {
475
+ g.revokeObjectURL(d);
476
+ const c = v.width >= Number(s) && v.height >= Number(u);
477
477
  b(c ? !0 : Oe.global.t("messages.min_dimensions.error", { width: s, height: u }));
478
- }, g.src = d;
478
+ }, v.src = d;
479
479
  });
480
480
  }, i = [], o = e.files;
481
481
  for (let l = 0; l < o.length; l++) {
@@ -513,11 +513,11 @@ function Be(e) {
513
513
  const t = pe(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
514
514
  function i(d) {
515
515
  const c = e.getKey(d);
516
- n.set(c, d), a.size > 0 && b((m) => {
516
+ n.set(c, d), a.size > 0 && b((p) => {
517
517
  try {
518
- e.registerIntoService(m, d);
519
- } catch (y) {
520
- t.warn(`Failed to live-register item (key=${c}):`, y);
518
+ e.registerIntoService(p, d);
519
+ } catch (I) {
520
+ t.warn(`Failed to live-register item (key=${c}):`, I);
521
521
  }
522
522
  });
523
523
  }
@@ -525,34 +525,34 @@ function Be(e) {
525
525
  n.delete(d), e.unregisterFromService && a.size > 0 && a.forEach((c) => {
526
526
  try {
527
527
  e.unregisterFromService(c, d);
528
- } catch (m) {
529
- t.warn(`Failed to live-unregister item (id=${d}):`, m);
528
+ } catch (p) {
529
+ t.warn(`Failed to live-unregister item (id=${d}):`, p);
530
530
  }
531
531
  });
532
532
  }
533
533
  function l(d) {
534
- for (const [c, m] of n)
535
- d(m) && n.delete(c);
534
+ for (const [c, p] of n)
535
+ d(p) && n.delete(c);
536
536
  }
537
537
  function s() {
538
538
  return Array.from(n.values());
539
539
  }
540
540
  function u(d) {
541
- a.add(d), n.forEach((c, m) => {
541
+ a.add(d), n.forEach((c, p) => {
542
542
  try {
543
543
  e.registerIntoService(d, c);
544
- } catch (y) {
545
- t.warn(`Failed to replay item (key=${m}):`, y);
544
+ } catch (I) {
545
+ t.warn(`Failed to replay item (key=${p}):`, I);
546
546
  }
547
547
  });
548
548
  }
549
- function v(d) {
549
+ function g(d) {
550
550
  a.delete(d);
551
551
  }
552
552
  function b(d) {
553
553
  a.forEach((c) => d(c));
554
554
  }
555
- function g() {
555
+ function v() {
556
556
  return a.values().next().value;
557
557
  }
558
558
  return {
@@ -561,9 +561,9 @@ function Be(e) {
561
561
  removePreregistered: l,
562
562
  getPreregistered: s,
563
563
  replayInto: u,
564
- dispose: v,
564
+ dispose: g,
565
565
  broadcast: b,
566
- getFirstInstance: g,
566
+ getFirstInstance: v,
567
567
  get instanceCount() {
568
568
  return a.size;
569
569
  }
@@ -583,27 +583,27 @@ function Pt(e) {
583
583
  a.set(d, c - 1);
584
584
  }
585
585
  function l(d, c) {
586
- const m = c.toLowerCase();
587
- t[m] || (t[m] = []);
588
- const y = t[m].find((p) => p.id === d.id);
589
- if (y) {
590
- Object.assign(y, d, { bladeId: m });
586
+ const p = c.toLowerCase();
587
+ t[p] || (t[p] = []);
588
+ const I = t[p].find((m) => m.id === d.id);
589
+ if (I) {
590
+ Object.assign(I, d, { bladeId: p });
591
591
  return;
592
592
  }
593
- const T = { ...d, bladeId: m };
594
- t[m].push(T), n.push(e.createRegistration(m, T)), i(d.id);
593
+ const T = { ...d, bladeId: p };
594
+ t[p].push(T), n.push(e.createRegistration(p, T)), i(d.id);
595
595
  }
596
596
  function s(d, c) {
597
- const m = c.toLowerCase(), y = t[m];
598
- if (y) {
599
- const p = y.findIndex(($) => $.id === d);
600
- if (p !== -1) {
601
- const [$] = y.splice(p, 1);
597
+ const p = c.toLowerCase(), I = t[p];
598
+ if (I) {
599
+ const m = I.findIndex(($) => $.id === d);
600
+ if (m !== -1) {
601
+ const [$] = I.splice(m, 1);
602
602
  $ && o($.id);
603
603
  }
604
604
  }
605
605
  const T = n.findIndex(
606
- (p) => e.getRegistrationBladeId(p) === m && e.getRegistrationItemId(p) === d
606
+ (m) => e.getRegistrationBladeId(m) === p && e.getRegistrationItemId(m) === d
607
607
  );
608
608
  T !== -1 && n.splice(T, 1);
609
609
  }
@@ -611,17 +611,17 @@ function Pt(e) {
611
611
  const c = d ? d.toLowerCase() : "";
612
612
  return [...t[c] || []];
613
613
  }
614
- function v(d) {
615
- const c = d.toLowerCase(), m = t[c];
616
- m && (m.forEach((T) => o(T.id)), delete t[c]), n.map((T, p) => e.getRegistrationBladeId(T) === c ? p : -1).filter((T) => T !== -1).reverse().forEach((T) => {
614
+ function g(d) {
615
+ const c = d.toLowerCase(), p = t[c];
616
+ p && (p.forEach((T) => o(T.id)), delete t[c]), n.map((T, m) => e.getRegistrationBladeId(T) === c ? m : -1).filter((T) => T !== -1).reverse().forEach((T) => {
617
617
  n.splice(T, 1);
618
618
  });
619
619
  }
620
- function b(d, c, m) {
621
- const y = c.toLowerCase(), T = t[y]?.find((p) => p.id === d);
622
- T && Object.assign(T, m, { bladeId: y });
620
+ function b(d, c, p) {
621
+ const I = c.toLowerCase(), T = t[I]?.find((m) => m.id === d);
622
+ T && Object.assign(T, p, { bladeId: I });
623
623
  }
624
- function g(d) {
624
+ function v(d) {
625
625
  return a.has(d);
626
626
  }
627
627
  return {
@@ -630,9 +630,9 @@ function Pt(e) {
630
630
  register: l,
631
631
  unregister: s,
632
632
  get: u,
633
- clear: v,
633
+ clear: g,
634
634
  update: b,
635
- isRegistered: g
635
+ isRegistered: v
636
636
  };
637
637
  }
638
638
  function va(e) {
@@ -670,27 +670,27 @@ const Fe = S(/* @__PURE__ */ new Map()), me = Be({
670
670
  getKey: We,
671
671
  registerIntoService: (e, t) => e.addMenuItem(t)
672
672
  });
673
- function Hi(e) {
673
+ function ji(e) {
674
674
  me.preregister(e);
675
675
  }
676
- function Gi(e) {
676
+ function Hi(e) {
677
677
  me.removePreregistered((t) => dt(t, e)), me.broadcast((t) => t.removeMenuItem(e));
678
678
  }
679
- function Yi(e, t) {
679
+ function Gi(e, t) {
680
680
  Fe.value.set(e, t), me.broadcast((n) => {
681
681
  n.menuBadges.value.set(e, t);
682
682
  });
683
683
  }
684
- function Ji(e) {
684
+ function Yi(e) {
685
685
  const t = me.getFirstInstance();
686
686
  return t ? t.menuBadges.value.get(e) : Fe.value.get(e);
687
687
  }
688
- function Xi(e) {
688
+ function Ji(e) {
689
689
  Fe.value.delete(e), me.broadcast((t) => {
690
690
  t.menuBadges.value.delete(e);
691
691
  });
692
692
  }
693
- function Zi() {
693
+ function Xi() {
694
694
  return me.getFirstInstance()?.menuBadges ?? Fe;
695
695
  }
696
696
  const ot = 1 / 0, ga = 1 / 0;
@@ -782,8 +782,8 @@ function Ye(e) {
782
782
  const u = X(t, null);
783
783
  if (u)
784
784
  return u;
785
- const v = n();
786
- return Ot(t, v), nn() && an(() => a.dispose(v)), v;
785
+ const g = n();
786
+ return Ot(t, g), nn() && an(() => a.dispose(g)), g;
787
787
  }
788
788
  function s() {
789
789
  const u = X(t, null);
@@ -803,10 +803,10 @@ const ka = pe("use-menu-service"), Ft = Ye({
803
803
  name: "MenuService",
804
804
  onMissing: () => ka.error("Menu service not found in current context. Injection chain:", je())
805
805
  });
806
- function Qi() {
806
+ function Zi() {
807
807
  return Ft.provide();
808
808
  }
809
- function _i() {
809
+ function Qi() {
810
810
  return Ft.use();
811
811
  }
812
812
  function Je() {
@@ -825,13 +825,13 @@ function Ea() {
825
825
  const i = n?.appName ? `[${n.appName}] ` : "", o = (u) => `${i}${u.name}`;
826
826
  function l(u) {
827
827
  if (!e) return;
828
- const v = o(u);
829
- e.context.telemetryTrace.traceID = wn(), e.context.telemetryTrace.name = u.name, e.startTrackPage(v);
828
+ const g = o(u);
829
+ e.context.telemetryTrace.traceID = wn(), e.context.telemetryTrace.name = u.name, e.startTrackPage(g);
830
830
  }
831
831
  function s(u) {
832
832
  if (!e) return;
833
- const v = o(u), b = location.protocol + "//" + location.host + u.fullPath;
834
- e.stopTrackPage(v, b, {
833
+ const g = o(u), b = location.protocol + "//" + location.host + u.fullPath;
834
+ e.stopTrackPage(g, b, {
835
835
  userId: t.value?.id ?? "",
836
836
  userName: t.value?.userName ?? ""
837
837
  });
@@ -872,7 +872,7 @@ function wa(e) {
872
872
  };
873
873
  }
874
874
  const Ue = /* @__PURE__ */ new WeakMap();
875
- function er(e, t, n) {
875
+ function _i(e, t, n) {
876
876
  Ue.set(e, { timerId: t, notifId: n });
877
877
  }
878
878
  function La(e) {
@@ -885,7 +885,7 @@ function La(e) {
885
885
  }
886
886
  return !1;
887
887
  }
888
- const tr = V({
888
+ const er = V({
889
889
  name: "ErrorInterceptor",
890
890
  props: {
891
891
  capture: {
@@ -942,36 +942,36 @@ const tr = V({
942
942
  }, a = e, i = we(), o = t, l = X(Ca, null), s = O(() => {
943
943
  const c = l?.size?.value ?? a.size;
944
944
  return n[c] ?? c;
945
- }), u = S(null), v = O(() => a.disabled || a.loading), b = S(!1);
946
- Y(v, (c) => {
945
+ }), u = S(null), g = O(() => a.disabled || a.loading), b = S(!1);
946
+ Y(g, (c) => {
947
947
  b.value = c && u.value === document.activeElement;
948
948
  });
949
- const g = O(() => [
949
+ const v = O(() => [
950
950
  "vc-button",
951
951
  {
952
952
  [`vc-button-${a.variant}`]: a.variant,
953
953
  [`vc-button--${s.value}`]: s.value,
954
954
  "vc-button--selected": a.selected,
955
955
  "vc-button--text": a.text,
956
- "vc-button--disabled": v.value,
956
+ "vc-button--disabled": g.value,
957
957
  "vc-button--loading": a.loading
958
958
  }
959
959
  ]);
960
960
  function d(c) {
961
- c.preventDefault(), !v.value && o("click", c);
961
+ c.preventDefault(), !g.value && o("click", c);
962
962
  }
963
- return (c, m) => r(i) ? w("", !0) : (f(), h("button", {
963
+ return (c, p) => r(i) ? w("", !0) : (f(), y("button", {
964
964
  key: 0,
965
965
  ref_key: "buttonRef",
966
966
  ref: u,
967
- class: G(g.value),
967
+ class: G(v.value),
968
968
  type: e.type,
969
- disabled: v.value && !b.value,
969
+ disabled: g.value && !b.value,
970
970
  "aria-disabled": b.value || void 0,
971
971
  "aria-label": e.ariaLabel,
972
972
  "aria-busy": e.loading || void 0,
973
973
  "aria-pressed": e.selected || void 0,
974
- onBlur: m[0] || (m[0] = (y) => b.value = !1),
974
+ onBlur: p[0] || (p[0] = (I) => b.value = !1),
975
975
  onClick: d
976
976
  }, [
977
977
  e.loading ? (f(), D(r(W), {
@@ -985,7 +985,7 @@ const tr = V({
985
985
  icon: e.icon,
986
986
  size: e.iconSize
987
987
  }, null, 8, ["class", "icon", "size"])) : w("", !0),
988
- c.$slots.default ? (f(), h("span", Ba, [
988
+ c.$slots.default ? (f(), y("span", Ba, [
989
989
  B(c.$slots, "default")
990
990
  ])) : w("", !0)
991
991
  ], 42, Ta));
@@ -995,16 +995,13 @@ const tr = V({
995
995
  getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
996
996
  registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
997
997
  });
998
- function xa(e, t) {
998
+ function tr(e, t) {
999
999
  const n = t.toLowerCase();
1000
1000
  ft.preregister({
1001
1001
  bladeId: n,
1002
1002
  toolbarItem: e
1003
1003
  });
1004
1004
  }
1005
- function nr({ targetBlades: e, ...t }) {
1006
- e.forEach((n) => xa(t, n));
1007
- }
1008
1005
  function Kt() {
1009
1006
  const e = Pt({
1010
1007
  createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
@@ -1014,21 +1011,19 @@ function Kt() {
1014
1011
  e.register(s, u);
1015
1012
  }, n = (s, u) => {
1016
1013
  e.unregister(s, u);
1017
- }, a = (s, u) => {
1018
- const v = s ? s.toLowerCase() : "", b = u?.toLowerCase(), g = [...e.get(v)], d = new Set(g.map((m) => m.id)), c = (m) => {
1019
- m.forEach((y) => {
1020
- d.has(y.id) || (d.add(y.id), g.push(y));
1021
- });
1022
- };
1023
- return b && b !== v && c(e.get(b)), c(e.get("*")), g;
1014
+ }, a = (s) => {
1015
+ const u = s ? s.toLowerCase() : "", g = e.get(u), b = e.get("*"), v = [...g], d = new Set(v.map((c) => c.id));
1016
+ return b.forEach((c) => {
1017
+ d.has(c.id) || v.push(c);
1018
+ }), [...v];
1024
1019
  }, i = (s) => {
1025
1020
  e.clear(s);
1026
1021
  }, o = ({
1027
1022
  id: s,
1028
1023
  bladeId: u,
1029
- toolbarItem: v
1024
+ toolbarItem: g
1030
1025
  }) => {
1031
- e.update(s, u, v);
1026
+ e.update(s, u, g);
1032
1027
  }, l = {
1033
1028
  registerToolbarItem: t,
1034
1029
  unregisterToolbarItem: n,
@@ -1040,45 +1035,45 @@ function Kt() {
1040
1035
  };
1041
1036
  return ft.replayInto(l), l;
1042
1037
  }
1043
- const Ma = "fallback-blade-id";
1038
+ const xa = "fallback-blade-id";
1044
1039
  let et = null;
1045
- const Na = Ye({
1040
+ const Ma = Ye({
1046
1041
  key: Tt,
1047
1042
  create: Kt,
1048
1043
  bus: ft,
1049
1044
  name: "ToolbarService"
1050
1045
  });
1051
- function ar() {
1052
- return Na.provide();
1046
+ function nr() {
1047
+ return Ma.provide();
1053
1048
  }
1054
- function lr(e = {}) {
1049
+ function ar(e = {}) {
1055
1050
  const { autoCleanup: t = !0 } = e, n = X(Tt, null);
1056
1051
  !n && !et && (et = Kt());
1057
1052
  const a = n || et;
1058
1053
  if (!a)
1059
1054
  throw new Error("Toolbar service is not available");
1060
- const i = X(Ct, void 0), o = O(() => i?.value?.id ?? Ma), l = (c) => c ?? o.value, s = (c, m) => {
1061
- a.registerToolbarItem(c, l(m));
1062
- }, u = (c, m) => {
1063
- a.unregisterToolbarItem(c, l(m));
1064
- }, v = (c, m, y) => {
1065
- a.updateToolbarItem({ id: c, bladeId: l(y), toolbarItem: m });
1066
- }, b = (c, m) => a.getToolbarItems(l(c), m), g = (c) => {
1055
+ const i = X(Ct, void 0), o = O(() => i?.value?.id ?? xa), l = (c) => c ?? o.value, s = (c, p) => {
1056
+ a.registerToolbarItem(c, l(p));
1057
+ }, u = (c, p) => {
1058
+ a.unregisterToolbarItem(c, l(p));
1059
+ }, g = (c, p, I) => {
1060
+ a.updateToolbarItem({ id: c, bladeId: l(I), toolbarItem: p });
1061
+ }, b = (c) => a.getToolbarItems(l(c)), v = (c) => {
1067
1062
  a.clearBladeToolbarItems(l(c));
1068
1063
  };
1069
1064
  return je() && t && it(() => {
1070
- g();
1065
+ v();
1071
1066
  }), {
1072
1067
  registerToolbarItem: s,
1073
1068
  unregisterToolbarItem: u,
1074
- updateToolbarItem: v,
1069
+ updateToolbarItem: g,
1075
1070
  getToolbarItems: b,
1076
- clearBladeToolbarItems: g,
1071
+ clearBladeToolbarItems: v,
1077
1072
  isToolbarItemRegistered: a.isToolbarItemRegistered,
1078
1073
  registeredToolbarItems: a.registeredToolbarItems
1079
1074
  };
1080
1075
  }
1081
- const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa = { class: "tw-sr-only" }, oe = /* @__PURE__ */ V({
1076
+ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va = { class: "tw-sr-only" }, oe = /* @__PURE__ */ V({
1082
1077
  __name: "vc-skeleton",
1083
1078
  props: {
1084
1079
  variant: { default: "text" },
@@ -1097,7 +1092,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1097
1092
  if (i !== void 0)
1098
1093
  return typeof i == "number" ? `${i}px` : i;
1099
1094
  }
1100
- return (i, o) => e.variant === "text" ? (f(), h("div", {
1095
+ return (i, o) => e.variant === "text" ? (f(), y("div", {
1101
1096
  key: 0,
1102
1097
  class: G(["vc-skeleton", {
1103
1098
  "vc-skeleton--animated": e.animated
@@ -1106,8 +1101,8 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1106
1101
  "aria-busy": "true",
1107
1102
  "aria-label": e.ariaLabel
1108
1103
  }, [
1109
- C("span", Da, M(e.ariaLabel), 1),
1110
- (f(!0), h(Ce, null, rt(e.rows, (l) => (f(), h("div", {
1104
+ C("span", Aa, M(e.ariaLabel), 1),
1105
+ (f(!0), y(Ce, null, rt(e.rows, (l) => (f(), y("div", {
1111
1106
  key: l,
1112
1107
  class: "vc-skeleton__row",
1113
1108
  style: Ve({
@@ -1115,7 +1110,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1115
1110
  }),
1116
1111
  "aria-hidden": "true"
1117
1112
  }, null, 4))), 128))
1118
- ], 10, Aa)) : (f(), h("div", {
1113
+ ], 10, Na)) : (f(), y("div", {
1119
1114
  key: 1,
1120
1115
  class: G(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
1121
1116
  style: Ve({
@@ -1126,10 +1121,10 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1126
1121
  "aria-busy": "true",
1127
1122
  "aria-label": e.ariaLabel
1128
1123
  }, [
1129
- C("span", Pa, M(e.ariaLabel), 1)
1130
- ], 14, Va));
1124
+ C("span", Va, M(e.ariaLabel), 1)
1125
+ ], 14, Da));
1131
1126
  }
1132
- }), or = /* @__PURE__ */ V({
1127
+ }), lr = /* @__PURE__ */ V({
1133
1128
  __name: "vc-container",
1134
1129
  props: {
1135
1130
  shadow: { type: Boolean },
@@ -1149,7 +1144,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1149
1144
  }), t({
1150
1145
  scrollTop: l,
1151
1146
  component: i
1152
- }), (u, v) => (f(), D(st(e.ariaLabel ? "section" : "div"), {
1147
+ }), (u, g) => (f(), D(st(e.ariaLabel ? "section" : "div"), {
1153
1148
  class: G([
1154
1149
  "vc-container",
1155
1150
  {
@@ -1173,14 +1168,14 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1173
1168
  _: 3
1174
1169
  }, 8, ["class", "aria-label"]));
1175
1170
  }
1176
- }), za = ["id", "role"], Fa = /* @__PURE__ */ V({
1171
+ }), Pa = ["id", "role"], za = /* @__PURE__ */ V({
1177
1172
  __name: "vc-hint",
1178
1173
  props: {
1179
1174
  id: {},
1180
1175
  error: { type: Boolean }
1181
1176
  },
1182
1177
  setup(e) {
1183
- return (t, n) => (f(), h("div", {
1178
+ return (t, n) => (f(), y("div", {
1184
1179
  id: e.id,
1185
1180
  class: G(["vc-hint", {
1186
1181
  "vc-hint--error": e.error
@@ -1188,13 +1183,13 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1188
1183
  role: e.error ? "alert" : void 0
1189
1184
  }, [
1190
1185
  B(t.$slots, "default")
1191
- ], 10, za));
1186
+ ], 10, Pa));
1192
1187
  }
1193
- }), be = Fa, Ka = ["role", "tabindex", "aria-label", "onKeydown"], Ua = {
1188
+ }), be = za, Fa = ["role", "tabindex", "aria-label", "onKeydown"], Ka = {
1194
1189
  key: 0,
1195
1190
  class: "vc-image__placeholder",
1196
1191
  "aria-hidden": "true"
1197
- }, qa = /* @__PURE__ */ V({
1192
+ }, Ua = /* @__PURE__ */ V({
1198
1193
  __name: "vc-image",
1199
1194
  props: {
1200
1195
  aspect: { default: "1x1" },
@@ -1211,16 +1206,16 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1211
1206
  emits: ["click"],
1212
1207
  setup(e, { emit: t }) {
1213
1208
  const n = pe("vc-image"), a = e, i = t;
1214
- function o(g) {
1215
- if (!g) return g;
1209
+ function o(v) {
1210
+ if (!v) return v;
1216
1211
  try {
1217
- const d = new URL(g);
1212
+ const d = new URL(v);
1218
1213
  if (d.protocol === "http:" && window.location.protocol === "https:")
1219
1214
  return d.protocol = "https:", d.href;
1220
1215
  } catch {
1221
- n.warn("Invalid URL:", g);
1216
+ n.warn("Invalid URL:", v);
1222
1217
  }
1223
- return g;
1218
+ return v;
1224
1219
  }
1225
1220
  const l = O(() => ta(a.src, a.thumbnailSize) ?? a.src), s = S(!1), u = O(() => s.value ? a.src : l.value);
1226
1221
  Y(
@@ -1230,25 +1225,25 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1230
1225
  }
1231
1226
  ), Y(
1232
1227
  u,
1233
- (g) => {
1234
- if (!g || !a.thumbnailSize || s.value || g === a.src) return;
1228
+ (v) => {
1229
+ if (!v || !a.thumbnailSize || s.value || v === a.src) return;
1235
1230
  const d = new Image();
1236
- d.src = o(g), d.onerror = () => {
1231
+ d.src = o(v), d.onerror = () => {
1237
1232
  s.value = !0;
1238
1233
  };
1239
1234
  },
1240
1235
  { immediate: !0 }
1241
1236
  );
1242
- const v = O(() => {
1237
+ const g = O(() => {
1243
1238
  if (u.value) {
1244
- const g = o(u.value);
1245
- return `background: url(${CSS.escape(g)}) center / ${a.background} no-repeat`;
1239
+ const v = o(u.value);
1240
+ return `background: url(${CSS.escape(v)}) center / ${a.background} no-repeat`;
1246
1241
  }
1247
1242
  });
1248
1243
  function b() {
1249
1244
  a.clickable && i("click");
1250
1245
  }
1251
- return (g, d) => (f(), h("div", {
1246
+ return (v, d) => (f(), y("div", {
1252
1247
  class: G(["vc-image", [`vc-image_${e.size}`]])
1253
1248
  }, [
1254
1249
  C("div", {
@@ -1261,33 +1256,33 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1261
1256
  "vc-image__container--clickable": e.clickable
1262
1257
  }
1263
1258
  ]),
1264
- style: Ve(v.value),
1259
+ style: Ve(g.value),
1265
1260
  role: e.clickable ? "button" : e.src && e.alt ? "img" : void 0,
1266
1261
  tabindex: e.clickable ? 0 : void 0,
1267
- "aria-label": e.alt || (e.clickable ? g.$t("COMPONENTS.ATOMS.VC_IMAGE.LABEL") : void 0),
1262
+ "aria-label": e.alt || (e.clickable ? v.$t("COMPONENTS.ATOMS.VC_IMAGE.LABEL") : void 0),
1268
1263
  onClick: b,
1269
1264
  onKeydown: [
1270
1265
  _(J(b, ["prevent"]), ["enter"]),
1271
1266
  _(J(b, ["prevent"]), ["space"])
1272
1267
  ]
1273
1268
  }, [
1274
- e.src ? w("", !0) : (f(), h("div", Ua, [
1269
+ e.src ? w("", !0) : (f(), y("div", Ka, [
1275
1270
  R(r(W), {
1276
1271
  icon: e.emptyIcon,
1277
1272
  size: "xl"
1278
1273
  }, null, 8, ["icon"])
1279
1274
  ]))
1280
- ], 46, Ka)
1275
+ ], 46, Fa)
1281
1276
  ], 2));
1282
1277
  }
1283
- }), Wa = { class: "vc-label__text" }, ja = { class: "vc-label__content" }, Ha = {
1278
+ }), qa = { class: "vc-label__text" }, Wa = { class: "vc-label__content" }, ja = {
1284
1279
  key: 0,
1285
1280
  class: "vc-label__required",
1286
1281
  "aria-hidden": "true"
1287
- }, Ga = {
1282
+ }, Ha = {
1288
1283
  key: 0,
1289
1284
  class: "vc-label__tooltip"
1290
- }, Ya = {
1285
+ }, Ga = {
1291
1286
  key: 1,
1292
1287
  class: "vc-label__language"
1293
1288
  }, Xe = /* @__PURE__ */ V({
@@ -1308,13 +1303,13 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1308
1303
  for: e.htmlFor || void 0
1309
1304
  }, {
1310
1305
  default: L(() => [
1311
- C("div", Wa, [
1312
- C("span", ja, [
1306
+ C("div", qa, [
1307
+ C("span", Wa, [
1313
1308
  B(t.$slots, "default")
1314
1309
  ]),
1315
- e.required ? (f(), h("span", Ha, "*")) : w("", !0)
1310
+ e.required ? (f(), y("span", ja, "*")) : w("", !0)
1316
1311
  ]),
1317
- t.$slots.tooltip ? (f(), h("span", Ga, [
1312
+ t.$slots.tooltip ? (f(), y("span", Ha, [
1318
1313
  R(r(Bt), { placement: "top-start" }, {
1319
1314
  tooltip: L(() => [
1320
1315
  B(t.$slots, "tooltip")
@@ -1329,12 +1324,12 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1329
1324
  _: 3
1330
1325
  })
1331
1326
  ])) : w("", !0),
1332
- e.multilanguage ? (f(), h("div", Ya, M(e.currentLanguage), 1)) : w("", !0)
1327
+ e.multilanguage ? (f(), y("div", Ga, M(e.currentLanguage), 1)) : w("", !0)
1333
1328
  ]),
1334
1329
  _: 3
1335
1330
  }, 8, ["class", "for"]));
1336
1331
  }
1337
- }), Ja = ["disabled", "aria-disabled"], Xa = { class: "vc-link__text" }, Za = /* @__PURE__ */ V({
1332
+ }), Ya = ["disabled", "aria-disabled"], Ja = { class: "vc-link__text" }, Xa = /* @__PURE__ */ V({
1338
1333
  __name: "vc-link",
1339
1334
  props: {
1340
1335
  active: { type: Boolean },
@@ -1347,7 +1342,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1347
1342
  function i() {
1348
1343
  n.disabled || a("click");
1349
1344
  }
1350
- return (o, l) => (f(), h("button", {
1345
+ return (o, l) => (f(), y("button", {
1351
1346
  type: "button",
1352
1347
  class: G(["vc-link", {
1353
1348
  "vc-link--active": e.active,
@@ -1357,12 +1352,12 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1357
1352
  "aria-disabled": e.disabled,
1358
1353
  onClick: i
1359
1354
  }, [
1360
- C("span", Xa, [
1355
+ C("span", Ja, [
1361
1356
  B(o.$slots, "default")
1362
1357
  ])
1363
- ], 10, Ja));
1358
+ ], 10, Ya));
1364
1359
  }
1365
- }), Qa = Za, _a = ["aria-label"], el = { class: "vc-status__content" }, tl = /* @__PURE__ */ V({
1360
+ }), Za = Xa, Qa = ["aria-label"], _a = { class: "vc-status__content" }, el = /* @__PURE__ */ V({
1366
1361
  __name: "vc-status",
1367
1362
  props: {
1368
1363
  variant: { default: "info" },
@@ -1370,7 +1365,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1370
1365
  dot: { type: Boolean, default: !1 }
1371
1366
  },
1372
1367
  setup(e) {
1373
- return (t, n) => (f(), h("div", {
1368
+ return (t, n) => (f(), y("div", {
1374
1369
  class: G(["vc-status", [
1375
1370
  `vc-status--${e.variant}`,
1376
1371
  {
@@ -1381,18 +1376,18 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1381
1376
  role: "status",
1382
1377
  "aria-label": e.dot ? e.variant : void 0
1383
1378
  }, [
1384
- C("div", el, [
1379
+ C("div", _a, [
1385
1380
  B(t.$slots, "default")
1386
1381
  ])
1387
- ], 10, _a));
1382
+ ], 10, Qa));
1388
1383
  }
1389
- }), nl = ["aria-label"], al = /* @__PURE__ */ V({
1384
+ }), tl = ["aria-label"], nl = /* @__PURE__ */ V({
1390
1385
  __name: "vc-status-icon",
1391
1386
  props: {
1392
1387
  status: { type: Boolean }
1393
1388
  },
1394
1389
  setup(e) {
1395
- return (t, n) => (f(), h("div", {
1390
+ return (t, n) => (f(), y("div", {
1396
1391
  class: "vc-status-icon",
1397
1392
  role: "img",
1398
1393
  "aria-label": e.status ? "Active" : "Inactive"
@@ -1408,9 +1403,9 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1408
1403
  class: "vc-status-icon__icon vc-status-icon__icon--inactive",
1409
1404
  "aria-hidden": "true"
1410
1405
  }))
1411
- ], 8, nl));
1406
+ ], 8, tl));
1412
1407
  }
1413
- }), ll = ["aria-label"], St = 40, ol = /* @__PURE__ */ V({
1408
+ }), al = ["aria-label"], St = 40, ll = /* @__PURE__ */ V({
1414
1409
  __name: "vc-scrollable-container",
1415
1410
  props: {
1416
1411
  speed: { default: void 0 }
@@ -1418,22 +1413,22 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1418
1413
  setup(e, { expose: t }) {
1419
1414
  const n = e, a = S(null), i = {};
1420
1415
  n.speed !== void 0 && (i.speed = n.speed);
1421
- const { canScrollUp: o, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } = ra(
1416
+ const { canScrollUp: o, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: g } = ra(
1422
1417
  a,
1423
1418
  i
1424
1419
  );
1425
- function b(g) {
1420
+ function b(v) {
1426
1421
  if (!a.value) return;
1427
- const d = g === "up" ? -St : St;
1422
+ const d = v === "up" ? -St : St;
1428
1423
  a.value.scrollBy({ top: d, behavior: "smooth" });
1429
1424
  }
1430
1425
  return t({
1431
1426
  viewportRef: a,
1432
- updateScrollState: v
1433
- }), (g, d) => (f(), h("div", {
1427
+ updateScrollState: g
1428
+ }), (v, d) => (f(), y("div", {
1434
1429
  class: "vc-scrollable-container",
1435
1430
  role: "region",
1436
- "aria-label": g.$t("COMPONENTS.ATOMS.VC_SCROLLABLE_CONTAINER.LABEL")
1431
+ "aria-label": v.$t("COMPONENTS.ATOMS.VC_SCROLLABLE_CONTAINER.LABEL")
1437
1432
  }, [
1438
1433
  C("div", {
1439
1434
  class: G(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(o) }]),
@@ -1442,7 +1437,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1442
1437
  onPointerleave: d[1] || (d[1] = //@ts-ignore
1443
1438
  (...c) => r(u) && r(u)(...c))
1444
1439
  }, [
1445
- B(g.$slots, "arrow-up", {}, () => [
1440
+ B(v.$slots, "arrow-up", {}, () => [
1446
1441
  R(r(W), {
1447
1442
  icon: "lucide-chevron-up",
1448
1443
  size: "xs"
@@ -1455,13 +1450,13 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1455
1450
  class: "vc-scrollable-container__viewport",
1456
1451
  tabindex: "0",
1457
1452
  onScroll: d[2] || (d[2] = //@ts-ignore
1458
- (...c) => r(v) && r(v)(...c)),
1453
+ (...c) => r(g) && r(g)(...c)),
1459
1454
  onKeydown: [
1460
1455
  d[3] || (d[3] = _(J((c) => b("up"), ["prevent"]), ["up"])),
1461
1456
  d[4] || (d[4] = _(J((c) => b("down"), ["prevent"]), ["down"]))
1462
1457
  ]
1463
1458
  }, [
1464
- B(g.$slots, "default")
1459
+ B(v.$slots, "default")
1465
1460
  ], 544),
1466
1461
  C("div", {
1467
1462
  class: G(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(l) }]),
@@ -1470,36 +1465,36 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
1470
1465
  onPointerleave: d[6] || (d[6] = //@ts-ignore
1471
1466
  (...c) => r(u) && r(u)(...c))
1472
1467
  }, [
1473
- B(g.$slots, "arrow-down", {}, () => [
1468
+ B(v.$slots, "arrow-down", {}, () => [
1474
1469
  R(r(W), {
1475
1470
  icon: "lucide-chevron-down",
1476
1471
  size: "xs"
1477
1472
  })
1478
1473
  ])
1479
1474
  ], 34)
1480
- ], 8, ll));
1475
+ ], 8, al));
1481
1476
  }
1482
1477
  }), vt = qe(/* @__PURE__ */ new Map());
1483
- function il(e) {
1478
+ function ol(e) {
1484
1479
  return e?.map((t) => t.toLowerCase());
1485
1480
  }
1486
- function ir(e) {
1481
+ function or(e) {
1487
1482
  vt.set(e.id, {
1488
1483
  ...e,
1489
- targetBlades: il(e.targetBlades)
1484
+ targetBlades: ol(e.targetBlades)
1490
1485
  });
1491
1486
  }
1492
- function rl(e) {
1487
+ function il(e) {
1493
1488
  const t = e.toLowerCase();
1494
1489
  return Array.from(vt.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
1495
1490
  }
1496
- function sl() {
1491
+ function rl() {
1497
1492
  return Array.from(vt.values()).map((e) => ({
1498
1493
  ...e,
1499
1494
  targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
1500
1495
  }));
1501
1496
  }
1502
- function ul(e) {
1497
+ function sl(e) {
1503
1498
  return On(e);
1504
1499
  }
1505
1500
  const Ut = Be({
@@ -1507,14 +1502,14 @@ const Ut = Be({
1507
1502
  getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
1508
1503
  registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
1509
1504
  });
1510
- function rr(e, t) {
1505
+ function ir(e, t) {
1511
1506
  const n = t.toLowerCase();
1512
1507
  Ut.preregister({
1513
1508
  bladeId: n,
1514
1509
  widget: e
1515
1510
  });
1516
1511
  }
1517
- function sr() {
1512
+ function rr() {
1518
1513
  const e = Pt({
1519
1514
  createRegistration: (a, i) => ({ bladeId: a, widget: i }),
1520
1515
  getRegistrationBladeId: (a) => a.bladeId,
@@ -1524,29 +1519,29 @@ function sr() {
1524
1519
  unregisterWidget: (a, i) => e.unregister(a, i),
1525
1520
  getWidgets: (a) => e.get(a),
1526
1521
  updateWidget: ({ id: a, bladeId: i, widget: o }) => e.update(a, i, o),
1527
- getExternalWidgetsForBlade: (a) => rl(a.toLowerCase()),
1528
- getAllExternalWidgets: sl,
1529
- cloneWidget: ul
1522
+ getExternalWidgetsForBlade: (a) => il(a.toLowerCase()),
1523
+ getAllExternalWidgets: rl,
1524
+ cloneWidget: sl
1530
1525
  };
1531
1526
  return Ut.replayInto(n), n;
1532
1527
  }
1533
- const cl = pe("use-theme"), ke = S([
1528
+ const ul = pe("use-theme"), ke = S([
1534
1529
  { key: "light", localizationKey: "CORE.THEMES.LIGHT" },
1535
1530
  { key: "dark", localizationKey: "CORE.THEMES.DARK" }
1536
- ]), ur = Rn(() => {
1531
+ ]), sr = Rn(() => {
1537
1532
  const { t: e } = Oe.global;
1538
- function t(v) {
1539
- (Array.isArray(v) ? v : [v]).forEach((b) => {
1540
- ke.value.some((g) => g.key === b.key) || ke.value.push(b);
1533
+ function t(g) {
1534
+ (Array.isArray(g) ? g : [g]).forEach((b) => {
1535
+ ke.value.some((v) => v.key === b.key) || ke.value.push(b);
1541
1536
  });
1542
1537
  }
1543
- function n(v) {
1544
- (Array.isArray(v) ? v : [v]).forEach((b) => {
1545
- const g = ke.value.findIndex((d) => d.key === b);
1546
- g >= 0 && ke.value.splice(g, 1);
1538
+ function n(g) {
1539
+ (Array.isArray(g) ? g : [g]).forEach((b) => {
1540
+ const v = ke.value.findIndex((d) => d.key === b);
1541
+ v >= 0 && ke.value.splice(v, 1);
1547
1542
  });
1548
1543
  }
1549
- const a = O(() => ke.value.map((v) => v.key)), i = Ln({
1544
+ const a = O(() => ke.value.map((g) => g.key)), i = Ln({
1550
1545
  attribute: "data-theme",
1551
1546
  emitAuto: !0,
1552
1547
  initialValue: "light",
@@ -1554,7 +1549,7 @@ const cl = pe("use-theme"), ke = S([
1554
1549
  modes: {
1555
1550
  // Dynamically build modes from registered theme keys
1556
1551
  ...a.value.reduce(
1557
- (v, b) => (v[b] = b, v),
1552
+ (g, b) => (g[b] = b, g),
1558
1553
  {}
1559
1554
  )
1560
1555
  }
@@ -1562,18 +1557,18 @@ const cl = pe("use-theme"), ke = S([
1562
1557
  nt(() => {
1563
1558
  o.value && (i.value = o.value);
1564
1559
  });
1565
- function s(v) {
1566
- a.value.includes(v) ? o.value = v : cl.warn(`Attempted to set an unregistered theme: ${v}`);
1560
+ function s(g) {
1561
+ a.value.includes(g) ? o.value = g : ul.warn(`Attempted to set an unregistered theme: ${g}`);
1567
1562
  }
1568
1563
  const u = O(() => {
1569
- const v = ke.value.find((b) => b.key === o.value);
1570
- return v ? v.localizationKey ? e(v.localizationKey) : _e(v.key) : o.value ? _e(o.value) : "";
1564
+ const g = ke.value.find((b) => b.key === o.value);
1565
+ return g ? g.localizationKey ? e(g.localizationKey) : _e(g.key) : o.value ? _e(o.value) : "";
1571
1566
  });
1572
1567
  return {
1573
1568
  themes: O(
1574
- () => ke.value.map((v) => ({
1575
- key: v.key,
1576
- name: v.localizationKey ? e(v.localizationKey) : _e(v.key)
1569
+ () => ke.value.map((g) => ({
1570
+ key: g.key,
1571
+ name: g.localizationKey ? e(g.localizationKey) : _e(g.key)
1577
1572
  }))
1578
1573
  ),
1579
1574
  currentThemeKey: o,
@@ -1588,15 +1583,15 @@ const cl = pe("use-theme"), ke = S([
1588
1583
  getKey: (e) => e.id,
1589
1584
  registerIntoService: (e, t) => e.registerWidget(t)
1590
1585
  });
1591
- function cr(e) {
1586
+ function ur(e) {
1592
1587
  gt.preregister(e);
1593
1588
  }
1594
- const dl = () => ({
1589
+ const cl = () => ({
1595
1590
  widgets: qe(/* @__PURE__ */ new Map()),
1596
1591
  layout: qe(/* @__PURE__ */ new Map())
1597
1592
  });
1598
- function fl(e = {}) {
1599
- const t = dl(), n = e.hasAccess ?? (() => !0), s = {
1593
+ function dl(e = {}) {
1594
+ const t = cl(), n = e.hasAccess ?? (() => !0), s = {
1600
1595
  registerWidget: (u) => {
1601
1596
  if (t.widgets.has(u.id))
1602
1597
  throw new Error(`Widget with id ${u.id} already registered`);
@@ -1613,10 +1608,10 @@ function fl(e = {}) {
1613
1608
  position: u.position ? { ...u.position } : void 0,
1614
1609
  props: u.props ? { ...u.props } : void 0
1615
1610
  })),
1616
- updateWidgetPosition: (u, v) => {
1611
+ updateWidgetPosition: (u, g) => {
1617
1612
  if (!t.widgets.has(u))
1618
1613
  throw new Error(`Widget with id ${u} not found`);
1619
- t.layout.set(u, { ...v });
1614
+ t.layout.set(u, { ...g });
1620
1615
  },
1621
1616
  getLayout: () => new Map(t.layout)
1622
1617
  };
@@ -1634,16 +1629,16 @@ const $t = pe("use-dashboard"), qt = Ye({
1634
1629
  } catch (t) {
1635
1630
  $t.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
1636
1631
  }
1637
- return fl({
1632
+ return dl({
1638
1633
  hasAccess: e
1639
1634
  });
1640
1635
  },
1641
1636
  onMissing: () => $t.error("Dashboard service not found")
1642
1637
  });
1643
- function dr() {
1638
+ function cr() {
1644
1639
  return qt.provide();
1645
1640
  }
1646
- function fr() {
1641
+ function dr() {
1647
1642
  return qt.use();
1648
1643
  }
1649
1644
  const Wt = Be({
@@ -1652,10 +1647,10 @@ const Wt = Be({
1652
1647
  registerIntoService: (e, t) => e.register(t),
1653
1648
  unregisterFromService: (e, t) => e.unregister(t)
1654
1649
  });
1655
- function vr(e) {
1650
+ function fr(e) {
1656
1651
  Wt.preregister(e);
1657
1652
  }
1658
- function gr() {
1653
+ function vr() {
1659
1654
  return zt({
1660
1655
  bus: Wt,
1661
1656
  createItem: (e, t) => ({
@@ -1679,10 +1674,10 @@ const mt = Be({
1679
1674
  registerIntoService: (e, t) => e.register(t),
1680
1675
  unregisterFromService: (e, t) => e.unregister(t)
1681
1676
  });
1682
- function mr(e) {
1677
+ function gr(e) {
1683
1678
  mt.preregister(e);
1684
1679
  }
1685
- function vl() {
1680
+ function fl() {
1686
1681
  return zt({
1687
1682
  bus: mt,
1688
1683
  createItem: (e, t) => ({
@@ -1695,26 +1690,26 @@ function vl() {
1695
1690
  getId: (e) => e.id || ""
1696
1691
  });
1697
1692
  }
1698
- const gl = pe("use-settings-menu"), jt = Ye({
1693
+ const vl = pe("use-settings-menu"), jt = Ye({
1699
1694
  key: In,
1700
- create: vl,
1695
+ create: fl,
1701
1696
  bus: mt,
1702
1697
  name: "SettingsMenuService",
1703
- onMissing: () => gl.error("Settings menu service not found")
1698
+ onMissing: () => vl.error("Settings menu service not found")
1704
1699
  });
1705
- function pr() {
1700
+ function mr() {
1706
1701
  return jt.provide();
1707
1702
  }
1708
- function br() {
1703
+ function pr() {
1709
1704
  return jt.use();
1710
1705
  }
1711
- const ml = {
1706
+ const gl = {
1712
1707
  key: 0,
1713
1708
  class: "vc-date-picker vc-date-picker--skeleton"
1714
- }, pl = { class: "vc-date-picker__field-container" }, bl = { class: "vc-date-picker__field" }, yl = ["aria-label"], hl = {
1709
+ }, ml = { class: "vc-date-picker__field-container" }, pl = { class: "vc-date-picker__field" }, bl = ["aria-label"], yl = {
1715
1710
  key: 0,
1716
1711
  class: "vc-date-picker__loading"
1717
- }, Il = { key: 0 }, kl = { key: 1 }, j = "COMPONENTS.MOLECULES.VC_DATE_PICKER.ARIA", Sl = /* @__PURE__ */ V({
1712
+ }, hl = { key: 0 }, Il = { key: 1 }, j = "COMPONENTS.MOLECULES.VC_DATE_PICKER.ARIA", kl = /* @__PURE__ */ V({
1718
1713
  __name: "vc-date-picker",
1719
1714
  props: {
1720
1715
  modelValue: {},
@@ -1739,7 +1734,7 @@ const ml = {
1739
1734
  },
1740
1735
  emits: ["update:modelValue", "blur", "focus"],
1741
1736
  setup(e, { emit: t }) {
1742
- const n = e, a = t, i = we(), { t: o } = ye({ useScope: "global" }), { isMobile: l, isDesktop: s } = Je(), { labelId: u, errorId: v, hintId: b, invalid: g, resolvedDisabled: d, ariaRequired: c, ariaDescribedBy: m } = Ge(n), y = S(!1), T = window.navigator.language, p = S(n.modelValue), $ = S(null), P = O(() => n.type === "date" && "9999-12-31" || void 0), U = (() => {
1737
+ const n = e, a = t, i = we(), { t: o } = ye({ useScope: "global" }), { isMobile: l, isDesktop: s } = Je(), { labelId: u, errorId: g, hintId: b, invalid: v, resolvedDisabled: d, ariaRequired: c, ariaDescribedBy: p } = Ge(n), I = S(!1), T = window.navigator.language, m = S(n.modelValue), $ = S(null), P = O(() => n.type === "date" && "9999-12-31" || void 0), U = (() => {
1743
1738
  const k = new Intl.DateTimeFormat(T, { hour: "numeric" }).format();
1744
1739
  return Number.isInteger(Number(k));
1745
1740
  })(), ne = O(() => {
@@ -1807,13 +1802,13 @@ const ml = {
1807
1802
  Y(
1808
1803
  () => n.modelValue,
1809
1804
  (k) => {
1810
- p.value !== k && (p.value = k);
1805
+ m.value !== k && (m.value = k);
1811
1806
  }
1812
- ), Y(p, (k, E) => {
1807
+ ), Y(m, (k, E) => {
1813
1808
  k !== E && k !== n.modelValue && ($.value = null, a("update:modelValue", k));
1814
1809
  });
1815
1810
  function fe() {
1816
- p.value = null, a("update:modelValue", null);
1811
+ m.value = null, a("update:modelValue", null);
1817
1812
  }
1818
1813
  function ie(k) {
1819
1814
  $.value = k;
@@ -1822,12 +1817,12 @@ const ml = {
1822
1817
  $.value = null;
1823
1818
  }
1824
1819
  function H(k) {
1825
- $.value != null && (p.value = [$.value, null], $.value = null), y.value = !1, a("blur", k);
1820
+ $.value != null && (m.value = [$.value, null], $.value = null), I.value = !1, a("blur", k);
1826
1821
  }
1827
1822
  function A() {
1828
- y.value = !0, a("focus");
1823
+ I.value = !0, a("focus");
1829
1824
  }
1830
- return (k, E) => r(i) ? (f(), h("div", ml, [
1825
+ return (k, E) => r(i) ? (f(), y("div", gl, [
1831
1826
  e.label ? (f(), D(r(oe), {
1832
1827
  key: 0,
1833
1828
  variant: "block",
@@ -1839,13 +1834,13 @@ const ml = {
1839
1834
  width: "100%",
1840
1835
  height: 36
1841
1836
  })
1842
- ])) : (f(), h("div", {
1837
+ ])) : (f(), y("div", {
1843
1838
  key: 1,
1844
1839
  class: G(["vc-date-picker", [
1845
1840
  {
1846
- "vc-date-picker--error": r(g),
1841
+ "vc-date-picker--error": r(v),
1847
1842
  "vc-date-picker--disabled": r(d),
1848
- "vc-date-picker--focused": y.value
1843
+ "vc-date-picker--focused": I.value
1849
1844
  }
1850
1845
  ]])
1851
1846
  }, [
@@ -1856,7 +1851,7 @@ const ml = {
1856
1851
  required: e.required,
1857
1852
  multilanguage: e.multilanguage,
1858
1853
  "current-language": e.currentLanguage,
1859
- error: r(g)
1854
+ error: r(v)
1860
1855
  }, se({
1861
1856
  default: L(() => [
1862
1857
  C("span", null, M(e.label), 1)
@@ -1877,11 +1872,11 @@ const ml = {
1877
1872
  "vc-date-picker__field-wrapper--small": e.size === "small"
1878
1873
  }])
1879
1874
  }, [
1880
- C("div", pl, [
1881
- C("div", bl, [
1875
+ C("div", ml, [
1876
+ C("div", pl, [
1882
1877
  R(r(Mn), ae({
1883
- modelValue: p.value,
1884
- "onUpdate:modelValue": E[0] || (E[0] = (K) => p.value = K),
1878
+ modelValue: m.value,
1879
+ "onUpdate:modelValue": E[0] || (E[0] = (K) => m.value = K),
1885
1880
  placeholder: e.placeholder || (e.type === "datetime-local" ? k.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : k.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
1886
1881
  disabled: r(d),
1887
1882
  name: e.name,
@@ -1900,9 +1895,9 @@ const ml = {
1900
1895
  }, Z.value, {
1901
1896
  "aria-labels": Q.value,
1902
1897
  teleport: r(s) ? "body" : void 0,
1903
- "aria-invalid": r(g) || void 0,
1898
+ "aria-invalid": r(v) || void 0,
1904
1899
  "aria-required": r(c),
1905
- "aria-describedby": r(m),
1900
+ "aria-describedby": r(p),
1906
1901
  "aria-labelledby": e.label ? r(u) : void 0,
1907
1902
  class: "vc-date-picker__input",
1908
1903
  tabindex: "0",
@@ -1913,7 +1908,7 @@ const ml = {
1913
1908
  onTooltipOpen: A,
1914
1909
  onTooltipClose: H
1915
1910
  }), null, 16, ["modelValue", "placeholder", "disabled", "name", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "aria-labels", "teleport", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"]),
1916
- e.clearable && p.value && !e.disabled ? (f(), h("button", {
1911
+ e.clearable && m.value && !e.disabled ? (f(), y("button", {
1917
1912
  key: 0,
1918
1913
  type: "button",
1919
1914
  class: "vc-date-picker__clear",
@@ -1924,9 +1919,9 @@ const ml = {
1924
1919
  size: "xs",
1925
1920
  icon: "lucide-x"
1926
1921
  })
1927
- ], 8, yl)) : w("", !0)
1922
+ ], 8, bl)) : w("", !0)
1928
1923
  ]),
1929
- e.loading ? (f(), h("div", hl, [
1924
+ e.loading ? (f(), y("div", yl, [
1930
1925
  R(r(W), {
1931
1926
  icon: "lucide-loader-2",
1932
1927
  class: "vc-date-picker__loading-icon",
@@ -1940,9 +1935,9 @@ const ml = {
1940
1935
  mode: "out-in"
1941
1936
  }, {
1942
1937
  default: L(() => [
1943
- r(g) && e.errorMessage ? (f(), h("div", Il, [
1938
+ r(v) && e.errorMessage ? (f(), y("div", hl, [
1944
1939
  R(r(be), {
1945
- id: r(v),
1940
+ id: r(g),
1946
1941
  class: "vc-date-picker__hint-error",
1947
1942
  error: !0
1948
1943
  }, {
@@ -1951,7 +1946,7 @@ const ml = {
1951
1946
  ]),
1952
1947
  _: 1
1953
1948
  }, 8, ["id"])
1954
- ])) : (f(), h("div", kl, [
1949
+ ])) : (f(), y("div", Il, [
1955
1950
  e.hint ? (f(), D(r(be), {
1956
1951
  key: 0,
1957
1952
  id: r(b),
@@ -1968,13 +1963,13 @@ const ml = {
1968
1963
  })
1969
1964
  ], 2));
1970
1965
  }
1971
- }), $l = {
1966
+ }), Sl = {
1972
1967
  key: 0,
1973
1968
  class: "vc-color-input vc-color-input--skeleton"
1974
- }, El = { class: "vc-color-input__field-container" }, Ol = { class: "vc-color-input__field" }, wl = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Ll = { class: "vc-color-input__color-container" }, Cl = ["aria-label"], Tl = ["value"], Bl = ["aria-label"], Rl = {
1969
+ }, $l = { class: "vc-color-input__field-container" }, El = { class: "vc-color-input__field" }, Ol = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], wl = { class: "vc-color-input__color-container" }, Ll = ["aria-label"], Cl = ["value"], Tl = ["aria-label"], Bl = {
1975
1970
  key: 0,
1976
1971
  class: "vc-color-input__loading"
1977
- }, xl = { key: 0 }, Ml = { key: 1 }, Nl = /* @__PURE__ */ V({
1972
+ }, Rl = { key: 0 }, xl = { key: 1 }, Ml = /* @__PURE__ */ V({
1978
1973
  __name: "vc-color-input",
1979
1974
  props: {
1980
1975
  modelValue: {},
@@ -2001,12 +1996,12 @@ const ml = {
2001
1996
  fieldId: l,
2002
1997
  labelId: s,
2003
1998
  errorId: u,
2004
- hintId: v,
1999
+ hintId: g,
2005
2000
  invalid: b,
2006
- resolvedDisabled: g,
2001
+ resolvedDisabled: v,
2007
2002
  ariaRequired: d,
2008
2003
  ariaDescribedBy: c
2009
- } = Ge(i), m = S(!1), y = S(!1), T = S(), p = S(), $ = S(i.modelValue ?? ""), P = S("");
2004
+ } = Ge(i), p = S(!1), I = S(!1), T = S(), m = S(), $ = S(i.modelValue ?? ""), P = S("");
2010
2005
  function U(F) {
2011
2006
  if (!F || typeof F != "string") {
2012
2007
  P.value = "";
@@ -2023,17 +2018,17 @@ const ml = {
2023
2018
  Y(
2024
2019
  () => i.modelValue,
2025
2020
  (F) => {
2026
- y.value || (y.value = !0, $.value = F ?? "", Ee(() => {
2027
- U(F ?? ""), y.value = !1;
2021
+ I.value || (I.value = !0, $.value = F ?? "", Ee(() => {
2022
+ U(F ?? ""), I.value = !1;
2028
2023
  }));
2029
2024
  },
2030
2025
  { immediate: !0 }
2031
2026
  ), Y(P, (F) => {
2032
- F && p.value && (p.value.value = F);
2027
+ F && m.value && (m.value.value = F);
2033
2028
  });
2034
2029
  function ne() {
2035
- y.value || (y.value = !0, o("update:modelValue", $.value || null), Ee(() => {
2036
- U($.value), y.value = !1;
2030
+ I.value || (I.value = !0, o("update:modelValue", $.value || null), Ee(() => {
2031
+ U($.value), I.value = !1;
2037
2032
  }));
2038
2033
  }
2039
2034
  function Z(F) {
@@ -2044,21 +2039,21 @@ const ml = {
2044
2039
  }
2045
2040
  }
2046
2041
  function le() {
2047
- p.value?.click();
2042
+ m.value?.click();
2048
2043
  }
2049
2044
  function Q() {
2050
2045
  $.value = "", P.value = "", o("update:modelValue", null);
2051
2046
  }
2052
2047
  function ce(F) {
2053
- m.value = !1, o("blur", F);
2048
+ p.value = !1, o("blur", F);
2054
2049
  }
2055
2050
  function fe() {
2056
- m.value = !0, o("focus");
2051
+ p.value = !0, o("focus");
2057
2052
  }
2058
2053
  function ie() {
2059
2054
  T.value?.focus();
2060
2055
  }
2061
- return t({ focus: ie }), (F, H) => r(a) ? (f(), h("div", $l, [
2056
+ return t({ focus: ie }), (F, H) => r(a) ? (f(), y("div", Sl, [
2062
2057
  e.label ? (f(), D(r(oe), {
2063
2058
  key: 0,
2064
2059
  variant: "block",
@@ -2070,13 +2065,13 @@ const ml = {
2070
2065
  width: "100%",
2071
2066
  height: 36
2072
2067
  })
2073
- ])) : (f(), h("div", {
2068
+ ])) : (f(), y("div", {
2074
2069
  key: 1,
2075
2070
  class: G(["vc-color-input", [
2076
2071
  {
2077
2072
  "vc-color-input--error": r(b),
2078
- "vc-color-input--disabled": r(g),
2079
- "vc-color-input--focused": m.value
2073
+ "vc-color-input--disabled": r(v),
2074
+ "vc-color-input--focused": p.value
2080
2075
  }
2081
2076
  ]])
2082
2077
  }, [
@@ -2109,8 +2104,8 @@ const ml = {
2109
2104
  "vc-color-input__field-wrapper--small": e.size === "small"
2110
2105
  }])
2111
2106
  }, [
2112
- C("div", El, [
2113
- C("div", Ol, [
2107
+ C("div", $l, [
2108
+ C("div", El, [
2114
2109
  ut(C("input", {
2115
2110
  id: r(l),
2116
2111
  ref_key: "inputRef",
@@ -2118,7 +2113,7 @@ const ml = {
2118
2113
  "onUpdate:modelValue": H[0] || (H[0] = (A) => $.value = A),
2119
2114
  placeholder: e.placeholder,
2120
2115
  type: "text",
2121
- disabled: r(g),
2116
+ disabled: r(v),
2122
2117
  name: e.name,
2123
2118
  autofocus: e.autofocus,
2124
2119
  "aria-invalid": r(b) || void 0,
@@ -2131,29 +2126,29 @@ const ml = {
2131
2126
  onBlur: ce,
2132
2127
  onFocus: fe,
2133
2128
  onInput: ne
2134
- }, null, 40, wl), [
2129
+ }, null, 40, Ol), [
2135
2130
  [on, $.value]
2136
2131
  ]),
2137
- C("div", Ll, [
2132
+ C("div", wl, [
2138
2133
  C("button", {
2139
2134
  type: "button",
2140
2135
  class: "vc-color-input__color-square",
2141
2136
  style: Ve({ backgroundColor: P.value || "#ffffff" }),
2142
2137
  "aria-label": `Pick color${P.value ? ": " + P.value : ""}`,
2143
2138
  onClick: le
2144
- }, null, 12, Cl),
2139
+ }, null, 12, Ll),
2145
2140
  C("input", {
2146
2141
  ref_key: "colorPickerRef",
2147
- ref: p,
2142
+ ref: m,
2148
2143
  type: "color",
2149
2144
  value: P.value,
2150
2145
  class: "vc-color-input__color-picker-hidden",
2151
2146
  tabindex: "-1",
2152
2147
  "aria-hidden": "true",
2153
2148
  onChange: Z
2154
- }, null, 40, Tl)
2149
+ }, null, 40, Cl)
2155
2150
  ]),
2156
- e.clearable && $.value && !e.disabled ? (f(), h("button", {
2151
+ e.clearable && $.value && !e.disabled ? (f(), y("button", {
2157
2152
  key: 0,
2158
2153
  type: "button",
2159
2154
  class: "vc-color-input__clear",
@@ -2164,9 +2159,9 @@ const ml = {
2164
2159
  size: "xs",
2165
2160
  icon: "lucide-x"
2166
2161
  })
2167
- ], 8, Bl)) : w("", !0)
2162
+ ], 8, Tl)) : w("", !0)
2168
2163
  ]),
2169
- e.loading ? (f(), h("div", Rl, [
2164
+ e.loading ? (f(), y("div", Bl, [
2170
2165
  R(r(W), {
2171
2166
  icon: "lucide-loader-2",
2172
2167
  class: "vc-color-input__loading-icon",
@@ -2180,7 +2175,7 @@ const ml = {
2180
2175
  mode: "out-in"
2181
2176
  }, {
2182
2177
  default: L(() => [
2183
- r(b) && e.errorMessage ? (f(), h("div", xl, [
2178
+ r(b) && e.errorMessage ? (f(), y("div", Rl, [
2184
2179
  R(r(be), {
2185
2180
  id: r(u),
2186
2181
  class: "vc-color-input__hint-error",
@@ -2191,10 +2186,10 @@ const ml = {
2191
2186
  ]),
2192
2187
  _: 1
2193
2188
  }, 8, ["id"])
2194
- ])) : (f(), h("div", Ml, [
2189
+ ])) : (f(), y("div", xl, [
2195
2190
  e.hint ? (f(), D(r(be), {
2196
2191
  key: 0,
2197
- id: r(v),
2192
+ id: r(g),
2198
2193
  class: "vc-color-input__desc"
2199
2194
  }, {
2200
2195
  default: L(() => [
@@ -2208,28 +2203,28 @@ const ml = {
2208
2203
  })
2209
2204
  ], 2));
2210
2205
  }
2211
- }), Al = { class: "vc-input__container" }, Dl = {
2206
+ }), Nl = { class: "vc-input__container" }, Al = {
2212
2207
  key: 0,
2213
2208
  class: "vc-input__prepend"
2214
- }, Vl = { class: "vc-input__field-container" }, Pl = {
2209
+ }, Dl = { class: "vc-input__field-container" }, Vl = {
2215
2210
  key: 0,
2216
2211
  class: "vc-input__prepend-inner"
2217
- }, zl = { class: "vc-input__field" }, Fl = {
2212
+ }, Pl = { class: "vc-input__field" }, zl = {
2218
2213
  key: 0,
2219
2214
  class: "vc-input__prefix"
2220
- }, Kl = ["id", "step", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Ul = {
2215
+ }, Fl = ["id", "step", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Kl = {
2221
2216
  key: 1,
2222
2217
  class: "vc-input__suffix"
2223
- }, ql = ["aria-label"], Wl = ["aria-label"], jl = {
2218
+ }, Ul = ["aria-label"], ql = ["aria-label"], Wl = {
2224
2219
  key: 1,
2225
2220
  class: "vc-input__append-inner"
2226
- }, Hl = {
2221
+ }, jl = {
2227
2222
  key: 2,
2228
2223
  class: "vc-input__loading"
2229
- }, Gl = {
2224
+ }, Hl = {
2230
2225
  key: 1,
2231
2226
  class: "vc-input__append"
2232
- }, Yl = { key: 0 }, Jl = { key: 1 }, pt = /* @__PURE__ */ V({
2227
+ }, Gl = { key: 0 }, Yl = { key: 1 }, pt = /* @__PURE__ */ V({
2233
2228
  inheritAttrs: !1,
2234
2229
  __name: "vc-input",
2235
2230
  props: {
@@ -2262,59 +2257,59 @@ const ml = {
2262
2257
  emits: ["update:modelValue", "blur", "focus"],
2263
2258
  setup(e, { emit: t }) {
2264
2259
  const n = e, a = wt(), i = /* @__PURE__ */ new Set(["min", "max", "minlength", "pattern", "inputmode"]), o = O(
2265
- () => Object.fromEntries(Object.entries(a).filter(([I]) => i.has(I.toLowerCase())))
2260
+ () => Object.fromEntries(Object.entries(a).filter(([h]) => i.has(h.toLowerCase())))
2266
2261
  ), l = O(() => {
2267
- const { class: I, ...x } = a;
2262
+ const { class: h, ...x } = a;
2268
2263
  return Object.fromEntries(Object.entries(x).filter(([q]) => !i.has(q.toLowerCase())));
2269
2264
  }), s = t, u = we(), {
2270
- fieldId: v,
2265
+ fieldId: g,
2271
2266
  labelId: b,
2272
- errorId: g,
2267
+ errorId: v,
2273
2268
  hintId: d,
2274
2269
  invalid: c,
2275
- resolvedDisabled: m,
2276
- resolvedName: y,
2270
+ resolvedDisabled: p,
2271
+ resolvedName: I,
2277
2272
  ariaRequired: T,
2278
- ariaDescribedBy: p
2273
+ ariaDescribedBy: m
2279
2274
  } = Ge(n);
2280
2275
  let $, P;
2281
2276
  const U = S(), ne = S(), Z = S(r(n.type)), le = S(!1), Q = S(), ce = O({
2282
2277
  get() {
2283
2278
  return Z.value === "integer" ? "number" : Z.value;
2284
2279
  },
2285
- set(I) {
2286
- Z.value = I;
2280
+ set(h) {
2281
+ Z.value = h;
2287
2282
  }
2288
2283
  }), fe = O(() => r(n.modelValue)), ie = O({
2289
2284
  get() {
2290
2285
  return (n.type === "integer" || n.type === "number") && isNaN(U.value) ? "" : U.value;
2291
2286
  },
2292
- set(I) {
2293
- (n.type === "number" || n.type === "integer") && I < 0 ? U.value = Math.abs(I) : U.value = I, H(U.value);
2287
+ set(h) {
2288
+ (n.type === "number" || n.type === "integer") && h < 0 ? U.value = Math.abs(h) : U.value = h, H(U.value);
2294
2289
  }
2295
2290
  });
2296
2291
  Y(
2297
2292
  fe,
2298
- (I) => {
2299
- n.type === "number" && I !== null ? Q.value = parseFloat(I) : n.type === "integer" && I !== null ? Q.value = Math.trunc(I) : Q.value = I, U.value !== Q.value && (U.value = Q.value);
2293
+ (h) => {
2294
+ n.type === "number" && h !== null ? Q.value = parseFloat(h) : n.type === "integer" && h !== null ? Q.value = Math.trunc(h) : Q.value = h, U.value !== Q.value && (U.value = Q.value);
2300
2295
  },
2301
2296
  { immediate: !0 }
2302
2297
  );
2303
- function F(I) {
2304
- const x = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], q = I.key;
2305
- if ((n.type === "number" || n.type === "integer") && (q === "-" || q === "e" || q === "+") && I.preventDefault(), n.type === "integer" && !/^\d$/.test(q) && !x.includes(q)) {
2306
- I.preventDefault();
2298
+ function F(h) {
2299
+ const x = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], q = h.key;
2300
+ if ((n.type === "number" || n.type === "integer") && (q === "-" || q === "e" || q === "+") && h.preventDefault(), n.type === "integer" && !/^\d$/.test(q) && !x.includes(q)) {
2301
+ h.preventDefault();
2307
2302
  return;
2308
2303
  }
2309
2304
  }
2310
- function H(I) {
2311
- A(I);
2305
+ function H(h) {
2306
+ A(h);
2312
2307
  }
2313
- function A(I) {
2308
+ function A(h) {
2314
2309
  P = () => {
2315
- if (Q.value !== I) {
2310
+ if (Q.value !== h) {
2316
2311
  let x;
2317
- n.type === "number" && I !== null && I !== void 0 ? x = I !== "" ? parseFloat(I) : null : n.type === "integer" && I !== null && I !== void 0 ? x = I !== "" ? Math.trunc(parseInt(I)) : null : x = I, s("update:modelValue", x);
2312
+ n.type === "number" && h !== null && h !== void 0 ? x = h !== "" ? parseFloat(h) : null : n.type === "integer" && h !== null && h !== void 0 ? x = h !== "" ? Math.trunc(parseInt(h)) : null : x = h, s("update:modelValue", x);
2318
2313
  }
2319
2314
  P = void 0;
2320
2315
  }, n.debounce !== void 0 ? (clearTimeout($), $ = setTimeout(P, +n.debounce)) : P();
@@ -2322,8 +2317,8 @@ const ml = {
2322
2317
  function k() {
2323
2318
  U.value = null, s("update:modelValue", null);
2324
2319
  }
2325
- function E(I) {
2326
- le.value = !1, s("blur", I);
2320
+ function E(h) {
2321
+ le.value = !1, s("blur", h);
2327
2322
  }
2328
2323
  function K() {
2329
2324
  ne.value?.focus();
@@ -2331,8 +2326,8 @@ const ml = {
2331
2326
  function z() {
2332
2327
  le.value = !0, s("focus");
2333
2328
  }
2334
- return (I, x) => r(u) ? (f(), h("div", ae({ key: 0 }, l.value, {
2335
- class: ["vc-input vc-input--skeleton", I.$attrs.class]
2329
+ return (h, x) => r(u) ? (f(), y("div", ae({ key: 0 }, l.value, {
2330
+ class: ["vc-input vc-input--skeleton", h.$attrs.class]
2336
2331
  }), [
2337
2332
  e.label ? (f(), D(r(oe), {
2338
2333
  key: 0,
@@ -2345,7 +2340,7 @@ const ml = {
2345
2340
  width: "100%",
2346
2341
  height: 36
2347
2342
  })
2348
- ], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), D(r(Sl), ae({ key: 1 }, r(a), {
2343
+ ], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), D(r(kl), ae({ key: 1 }, r(a), {
2349
2344
  "model-value": e.modelValue,
2350
2345
  type: e.type,
2351
2346
  "date-picker-options": e.datePickerOptions,
@@ -2368,7 +2363,7 @@ const ml = {
2368
2363
  "onUpdate:modelValue": x[0] || (x[0] = (q) => s("update:modelValue", q ?? null)),
2369
2364
  onBlur: x[1] || (x[1] = (q) => s("blur", q)),
2370
2365
  onFocus: x[2] || (x[2] = (q) => s("focus"))
2371
- }), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), D(r(Nl), ae({ key: 2 }, r(a), {
2366
+ }), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), D(r(Ml), ae({ key: 2 }, r(a), {
2372
2367
  "model-value": e.modelValue ?? null,
2373
2368
  label: e.label,
2374
2369
  placeholder: e.placeholder,
@@ -2389,14 +2384,14 @@ const ml = {
2389
2384
  "onUpdate:modelValue": x[3] || (x[3] = (q) => s("update:modelValue", q)),
2390
2385
  onBlur: x[4] || (x[4] = (q) => s("blur", q)),
2391
2386
  onFocus: x[5] || (x[5] = (q) => s("focus"))
2392
- }), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(), h("div", ae({ key: 3 }, l.value, {
2387
+ }), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(), y("div", ae({ key: 3 }, l.value, {
2393
2388
  class: ["vc-input", [
2394
- I.$attrs.class,
2389
+ h.$attrs.class,
2395
2390
  `vc-input--${e.type}`,
2396
2391
  {
2397
2392
  "vc-input--clearable": e.clearable,
2398
2393
  "vc-input--error": r(c),
2399
- "vc-input--disabled": r(m),
2394
+ "vc-input--disabled": r(p),
2400
2395
  "vc-input--focused": le.value
2401
2396
  }
2402
2397
  ]]
@@ -2404,7 +2399,7 @@ const ml = {
2404
2399
  e.label ? (f(), D(r(Xe), {
2405
2400
  key: 0,
2406
2401
  id: r(b),
2407
- "html-for": r(v),
2402
+ "html-for": r(g),
2408
2403
  class: "vc-input__label",
2409
2404
  required: e.required,
2410
2405
  multilanguage: e.multilanguage,
@@ -2424,9 +2419,9 @@ const ml = {
2424
2419
  key: "0"
2425
2420
  } : void 0
2426
2421
  ]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
2427
- C("div", Al, [
2428
- I.$slots.prepend ? (f(), h("div", Dl, [
2429
- B(I.$slots, "prepend", { focus: K })
2422
+ C("div", Nl, [
2423
+ h.$slots.prepend ? (f(), y("div", Al, [
2424
+ B(h.$slots, "prepend", { focus: K })
2430
2425
  ])) : w("", !0),
2431
2426
  C("div", {
2432
2427
  class: G(["vc-input__field-wrapper", {
@@ -2434,21 +2429,21 @@ const ml = {
2434
2429
  "vc-input__field-wrapper--small": e.size === "small"
2435
2430
  }])
2436
2431
  }, [
2437
- C("div", Vl, [
2438
- I.$slots["prepend-inner"] ? (f(), h("div", Pl, [
2439
- B(I.$slots, "prepend-inner", { focus: K })
2432
+ C("div", Dl, [
2433
+ h.$slots["prepend-inner"] ? (f(), y("div", Vl, [
2434
+ B(h.$slots, "prepend-inner", { focus: K })
2440
2435
  ])) : w("", !0),
2441
- C("div", zl, [
2442
- e.prefix ? (f(), h("div", Fl, M(e.prefix), 1)) : w("", !0),
2443
- B(I.$slots, "control", {
2444
- editable: r(m),
2436
+ C("div", Pl, [
2437
+ e.prefix ? (f(), y("div", zl, M(e.prefix), 1)) : w("", !0),
2438
+ B(h.$slots, "control", {
2439
+ editable: r(p),
2445
2440
  focused: e.autofocus,
2446
2441
  modelValue: ie.value,
2447
2442
  emitValue: A,
2448
2443
  placeholder: e.placeholder
2449
2444
  }, () => [
2450
2445
  ut(C("input", ae({
2451
- id: r(v),
2446
+ id: r(g),
2452
2447
  ref_key: "inputRef",
2453
2448
  ref: ne,
2454
2449
  "onUpdate:modelValue": x[6] || (x[6] = (q) => ie.value = q)
@@ -2456,14 +2451,14 @@ const ml = {
2456
2451
  step: e.step,
2457
2452
  placeholder: e.placeholder,
2458
2453
  type: ce.value,
2459
- disabled: r(m),
2460
- name: r(y),
2454
+ disabled: r(p),
2455
+ name: r(I),
2461
2456
  maxlength: e.maxlength,
2462
2457
  autofocus: e.autofocus,
2463
2458
  autocomplete: e.autocomplete,
2464
2459
  "aria-invalid": r(c) || void 0,
2465
2460
  "aria-required": r(T),
2466
- "aria-describedby": r(p),
2461
+ "aria-describedby": r(m),
2467
2462
  "aria-labelledby": e.label ? r(b) : void 0,
2468
2463
  "aria-label": e.label ? void 0 : e.ariaLabel,
2469
2464
  class: "vc-input__input",
@@ -2471,40 +2466,40 @@ const ml = {
2471
2466
  onKeydown: F,
2472
2467
  onBlur: E,
2473
2468
  onFocus: z
2474
- }), null, 16, Kl), [
2469
+ }), null, 16, Fl), [
2475
2470
  [rn, ie.value]
2476
2471
  ])
2477
2472
  ]),
2478
- e.suffix ? (f(), h("div", Ul, M(e.suffix), 1)) : w("", !0),
2479
- e.clearable && Q.value && !r(m) && e.type !== "password" ? (f(), h("button", {
2473
+ e.suffix ? (f(), y("div", Kl, M(e.suffix), 1)) : w("", !0),
2474
+ e.clearable && Q.value && !r(p) && e.type !== "password" ? (f(), y("button", {
2480
2475
  key: 2,
2481
2476
  type: "button",
2482
2477
  class: "vc-input__clear",
2483
- "aria-label": I.$t("COMPONENTS.CONTROLS.CLEAR"),
2478
+ "aria-label": h.$t("COMPONENTS.CONTROLS.CLEAR"),
2484
2479
  onClick: k
2485
2480
  }, [
2486
2481
  R(r(W), {
2487
2482
  size: "xs",
2488
2483
  icon: "lucide-x"
2489
2484
  })
2490
- ], 8, ql)) : w("", !0),
2491
- e.type === "password" ? (f(), h("button", {
2485
+ ], 8, Ul)) : w("", !0),
2486
+ e.type === "password" ? (f(), y("button", {
2492
2487
  key: 3,
2493
2488
  type: "button",
2494
2489
  class: "vc-input__showhide",
2495
- "aria-label": Z.value === "password" ? I.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : I.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
2490
+ "aria-label": Z.value === "password" ? h.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : h.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
2496
2491
  onClick: x[7] || (x[7] = (q) => Z.value = Z.value === "password" ? "text" : "password")
2497
2492
  }, [
2498
2493
  R(r(W), {
2499
2494
  size: "s",
2500
2495
  icon: Z.value === "password" ? "lucide-eye-off" : "lucide-eye"
2501
2496
  }, null, 8, ["icon"])
2502
- ], 8, Wl)) : w("", !0)
2497
+ ], 8, ql)) : w("", !0)
2503
2498
  ]),
2504
- I.$slots["append-inner"] ? (f(), h("div", jl, [
2505
- B(I.$slots, "append-inner", { focus: K })
2499
+ h.$slots["append-inner"] ? (f(), y("div", Wl, [
2500
+ B(h.$slots, "append-inner", { focus: K })
2506
2501
  ])) : w("", !0),
2507
- e.loading ? (f(), h("div", Hl, [
2502
+ e.loading ? (f(), y("div", jl, [
2508
2503
  R(r(W), {
2509
2504
  icon: "lucide-loader-2",
2510
2505
  class: "vc-input__loading-icon",
@@ -2513,8 +2508,8 @@ const ml = {
2513
2508
  ])) : w("", !0)
2514
2509
  ])
2515
2510
  ], 2),
2516
- I.$slots.append ? (f(), h("div", Gl, [
2517
- B(I.$slots, "append", { focus: K })
2511
+ h.$slots.append ? (f(), y("div", Hl, [
2512
+ B(h.$slots, "append", { focus: K })
2518
2513
  ])) : w("", !0)
2519
2514
  ]),
2520
2515
  R(Pe, {
@@ -2522,10 +2517,10 @@ const ml = {
2522
2517
  mode: "out-in"
2523
2518
  }, {
2524
2519
  default: L(() => [
2525
- r(c) && e.errorMessage ? (f(), h("div", Yl, [
2526
- B(I.$slots, "error", {}, () => [
2520
+ r(c) && e.errorMessage ? (f(), y("div", Gl, [
2521
+ B(h.$slots, "error", {}, () => [
2527
2522
  R(r(be), {
2528
- id: r(g),
2523
+ id: r(v),
2529
2524
  class: "vc-input__hint-error",
2530
2525
  error: !0
2531
2526
  }, {
@@ -2535,8 +2530,8 @@ const ml = {
2535
2530
  _: 1
2536
2531
  }, 8, ["id"])
2537
2532
  ])
2538
- ])) : (f(), h("div", Jl, [
2539
- B(I.$slots, "hint", {}, () => [
2533
+ ])) : (f(), y("div", Yl, [
2534
+ B(h.$slots, "hint", {}, () => [
2540
2535
  e.hint ? (f(), D(r(be), {
2541
2536
  key: 0,
2542
2537
  id: r(d),
@@ -2554,7 +2549,7 @@ const ml = {
2554
2549
  })
2555
2550
  ], 16));
2556
2551
  }
2557
- }), yr = xn.create({
2552
+ }), br = xn.create({
2558
2553
  name: "fontSize",
2559
2554
  addOptions() {
2560
2555
  return {
@@ -2584,115 +2579,115 @@ const ml = {
2584
2579
  };
2585
2580
  }
2586
2581
  });
2587
- function Xl(e = {}) {
2582
+ function Jl(e = {}) {
2588
2583
  const {
2589
2584
  containerSelector: t = '[role="menu"]',
2590
2585
  itemSelector: n = '[tabindex="0"]',
2591
2586
  onEnter: a,
2592
2587
  onEscape: i,
2593
2588
  loop: o = !0
2594
- } = e, l = S(null), s = S(-1), u = (p) => {
2595
- (s.value >= p.length || s.value < 0) && (s.value = p.length > 0 ? 0 : -1);
2596
- }, v = (p) => {
2589
+ } = e, l = S(null), s = S(-1), u = (m) => {
2590
+ (s.value >= m.length || s.value < 0) && (s.value = m.length > 0 ? 0 : -1);
2591
+ }, g = (m) => {
2597
2592
  if (!l.value) return;
2598
2593
  const $ = Array.from(l.value.querySelectorAll(n));
2599
2594
  if ($.length)
2600
- switch (u($), p.key) {
2595
+ switch (u($), m.key) {
2601
2596
  case "Tab":
2602
- b(p, $);
2597
+ b(m, $);
2603
2598
  break;
2604
2599
  case "ArrowDown":
2605
- p.preventDefault(), g($);
2600
+ m.preventDefault(), v($);
2606
2601
  break;
2607
2602
  case "ArrowUp":
2608
- p.preventDefault(), d($);
2603
+ m.preventDefault(), d($);
2609
2604
  break;
2610
2605
  case "Enter":
2611
2606
  case " ":
2612
2607
  if (s.value >= 0 && s.value < $.length) {
2613
2608
  const P = $[s.value];
2614
- P && (p.preventDefault(), a ? a(P) : typeof P.click == "function" && P.click());
2609
+ P && (m.preventDefault(), a ? a(P) : typeof P.click == "function" && P.click());
2615
2610
  }
2616
2611
  break;
2617
2612
  case "Escape":
2618
- i && (p.preventDefault(), p.stopPropagation(), i());
2613
+ i && (m.preventDefault(), m.stopPropagation(), i());
2619
2614
  break;
2620
2615
  }
2621
- }, b = (p, $) => {
2622
- p.shiftKey ? d($) : g($);
2623
- }, g = (p) => {
2624
- if (!p.length) return;
2625
- if (u(p), s.value < p.length - 1)
2616
+ }, b = (m, $) => {
2617
+ m.shiftKey ? d($) : v($);
2618
+ }, v = (m) => {
2619
+ if (!m.length) return;
2620
+ if (u(m), s.value < m.length - 1)
2626
2621
  s.value++;
2627
2622
  else if (o)
2628
2623
  s.value = 0;
2629
2624
  else
2630
2625
  return;
2631
- const $ = p[s.value];
2626
+ const $ = m[s.value];
2632
2627
  $ && typeof $.focus == "function" && $.focus();
2633
- }, d = (p) => {
2634
- if (!p.length) return;
2635
- if (u(p), s.value > 0)
2628
+ }, d = (m) => {
2629
+ if (!m.length) return;
2630
+ if (u(m), s.value > 0)
2636
2631
  s.value--;
2637
2632
  else if (o)
2638
- s.value = p.length - 1;
2633
+ s.value = m.length - 1;
2639
2634
  else
2640
2635
  return;
2641
- const $ = p[s.value];
2636
+ const $ = m[s.value];
2642
2637
  $ && typeof $.focus == "function" && $.focus();
2643
- }, c = (p) => {
2644
- if (!p.length) return;
2638
+ }, c = (m) => {
2639
+ if (!m.length) return;
2645
2640
  s.value = 0;
2646
- const $ = p[0];
2641
+ const $ = m[0];
2647
2642
  $ && typeof $.focus == "function" && $.focus();
2648
- }, m = (p) => {
2649
- if (!p.length) return;
2650
- s.value = p.length - 1;
2651
- const $ = p[p.length - 1];
2643
+ }, p = (m) => {
2644
+ if (!m.length) return;
2645
+ s.value = m.length - 1;
2646
+ const $ = m[m.length - 1];
2652
2647
  $ && typeof $.focus == "function" && $.focus();
2653
- }, y = (p) => {
2654
- l.value && l.value.removeEventListener("keydown", v), l.value = p, p.addEventListener("keydown", v);
2648
+ }, I = (m) => {
2649
+ l.value && l.value.removeEventListener("keydown", g), l.value = m, m.addEventListener("keydown", g);
2655
2650
  }, T = () => {
2656
- l.value && (l.value.removeEventListener("keydown", v), l.value = null);
2651
+ l.value && (l.value.removeEventListener("keydown", g), l.value = null);
2657
2652
  };
2658
2653
  return He(() => {
2659
2654
  if (typeof document < "u" && t) {
2660
- const p = document.querySelector(t);
2661
- p && y(p);
2655
+ const m = document.querySelector(t);
2656
+ m && I(m);
2662
2657
  }
2663
2658
  }), it(() => {
2664
2659
  T();
2665
2660
  }), {
2666
- initKeyboardNavigation: y,
2661
+ initKeyboardNavigation: I,
2667
2662
  cleanupKeyboardNavigation: T,
2668
2663
  focusNextElement: () => {
2669
2664
  if (l.value) {
2670
- const p = Array.from(l.value.querySelectorAll(n));
2671
- g(p);
2665
+ const m = Array.from(l.value.querySelectorAll(n));
2666
+ v(m);
2672
2667
  }
2673
2668
  },
2674
2669
  focusPreviousElement: () => {
2675
2670
  if (l.value) {
2676
- const p = Array.from(l.value.querySelectorAll(n));
2677
- d(p);
2671
+ const m = Array.from(l.value.querySelectorAll(n));
2672
+ d(m);
2678
2673
  }
2679
2674
  },
2680
2675
  focusFirstElement: () => {
2681
2676
  if (l.value) {
2682
- const p = Array.from(l.value.querySelectorAll(n));
2683
- c(p);
2677
+ const m = Array.from(l.value.querySelectorAll(n));
2678
+ c(m);
2684
2679
  }
2685
2680
  },
2686
2681
  focusLastElement: () => {
2687
2682
  if (l.value) {
2688
- const p = Array.from(l.value.querySelectorAll(n));
2689
- m(p);
2683
+ const m = Array.from(l.value.querySelectorAll(n));
2684
+ p(m);
2690
2685
  }
2691
2686
  },
2692
- setFocusedIndex: (p) => {
2687
+ setFocusedIndex: (m) => {
2693
2688
  if (l.value) {
2694
2689
  const $ = Array.from(l.value.querySelectorAll(n));
2695
- p >= 0 && p < $.length && (s.value = p);
2690
+ m >= 0 && m < $.length && (s.value = m);
2696
2691
  }
2697
2692
  },
2698
2693
  getFocusedIndex: () => s.value
@@ -2702,11 +2697,11 @@ function Et(e, t) {
2702
2697
  const n = e !== void 0 ? e : t;
2703
2698
  return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
2704
2699
  }
2705
- function Zl(e) {
2700
+ function Xl(e) {
2706
2701
  const t = O(() => Et(e.optionValue(), "id")), n = O(() => Et(e.optionLabel(), "title"));
2707
- function a(l, s, u, v) {
2708
- const b = (g) => De(t.value(g), l);
2709
- return u.find(b) || v.find(b) || s.find(b) || l;
2702
+ function a(l, s, u, g) {
2703
+ const b = (v) => De(t.value(v), l);
2704
+ return u.find(b) || g.find(b) || s.find(b) || l;
2710
2705
  }
2711
2706
  function i(l) {
2712
2707
  return n.value(l);
@@ -2722,7 +2717,7 @@ function Zl(e) {
2722
2717
  fieldValueIsFilled: o
2723
2718
  };
2724
2719
  }
2725
- function Ql() {
2720
+ function Zl() {
2726
2721
  const e = S(null), t = S(!1);
2727
2722
  let n = null, a = null;
2728
2723
  function i() {
@@ -2752,15 +2747,15 @@ function Ql() {
2752
2747
  ensureVisibility: o
2753
2748
  };
2754
2749
  }
2755
- function _l(e) {
2750
+ function Ql(e) {
2756
2751
  const t = S(!1), n = S(!1), a = S(null), i = S(null);
2757
2752
  function o() {
2758
2753
  return {
2759
2754
  name: "sameWidth",
2760
- fn({ rects: v }) {
2755
+ fn({ rects: g }) {
2761
2756
  return {
2762
2757
  data: {
2763
- width: e.outline() ? `${v.reference.width}px` : "max-content"
2758
+ width: e.outline() ? `${g.reference.width}px` : "max-content"
2764
2759
  }
2765
2760
  };
2766
2761
  }
@@ -2781,8 +2776,8 @@ function _l(e) {
2781
2776
  }));
2782
2777
  Y(
2783
2778
  () => l.isPositioned.value,
2784
- (v) => {
2785
- v && l.update();
2779
+ (g) => {
2780
+ g && l.update();
2786
2781
  }
2787
2782
  );
2788
2783
  function u() {
@@ -2798,9 +2793,9 @@ function _l(e) {
2798
2793
  toggleDropdown: u
2799
2794
  };
2800
2795
  }
2801
- function eo(e) {
2802
- const t = S([]), n = S(null), a = S(0), i = S(0), o = S(!1), l = S(!1), s = S(!1), u = S(!1), v = S(), b = S([]), g = S(!1), d = /* @__PURE__ */ new Map();
2803
- let c = !1, m = 0, y = 0, T = 0, p;
2796
+ function _l(e) {
2797
+ const t = S([]), n = S(null), a = S(0), i = S(0), o = S(!1), l = S(!1), s = S(!1), u = S(!1), g = S(), b = S([]), v = S(!1), d = /* @__PURE__ */ new Map();
2798
+ let c = !1, p = 0, I = 0, T = 0, m;
2804
2799
  const $ = O(() => n.value ?? t.value), P = O(() => n.value !== null ? !l.value && n.value.length < i.value : !o.value && t.value.length < a.value);
2805
2800
  function U(A) {
2806
2801
  for (const k of A) {
@@ -2809,7 +2804,7 @@ function eo(e) {
2809
2804
  }
2810
2805
  }
2811
2806
  function ne() {
2812
- n.value = null, u.value = !1, v.value = void 0, i.value = 0, y = 0, l.value = !1, T++, p && (clearTimeout(p), p = void 0);
2807
+ n.value = null, u.value = !1, g.value = void 0, i.value = 0, I = 0, l.value = !1, T++, m && (clearTimeout(m), m = void 0);
2813
2808
  }
2814
2809
  async function Z() {
2815
2810
  if (c)
@@ -2819,13 +2814,13 @@ function eo(e) {
2819
2814
  try {
2820
2815
  s.value = !0;
2821
2816
  const k = await A(void 0, 0), E = k?.results ?? [];
2822
- t.value = E, a.value = k?.totalCount ?? 0, m = E.length, o.value = E.length === 0 || m >= a.value, U(t.value), c = !0;
2817
+ t.value = E, a.value = k?.totalCount ?? 0, p = E.length, o.value = E.length === 0 || p >= a.value, U(t.value), c = !0;
2823
2818
  } catch (k) {
2824
- console.error("useSelectDataSource: error loading options", k), t.value = [], a.value = 0, m = 0, o.value = !0;
2819
+ console.error("useSelectDataSource: error loading options", k), t.value = [], a.value = 0, p = 0, o.value = !0;
2825
2820
  } finally {
2826
2821
  s.value = !1;
2827
2822
  }
2828
- else Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0, U(t.value), c = !0);
2823
+ else Array.isArray(A) && (t.value = [...A], a.value = t.value.length, p = t.value.length, o.value = !0, U(t.value), c = !0);
2829
2824
  }
2830
2825
  function le() {
2831
2826
  ne();
@@ -2836,15 +2831,15 @@ function eo(e) {
2836
2831
  const k = n.value !== null, E = T, K = n.value;
2837
2832
  try {
2838
2833
  s.value = !0;
2839
- const z = await A(v.value, k ? y : m);
2834
+ const z = await A(g.value, k ? I : p);
2840
2835
  if (k && (n.value !== K || E !== T)) return;
2841
- const I = z?.results ?? [];
2842
- if (k ? y += I.length : m += I.length, I.length === 0) {
2836
+ const h = z?.results ?? [];
2837
+ if (k ? I += h.length : p += h.length, h.length === 0) {
2843
2838
  k ? l.value = !0 : o.value = !0;
2844
2839
  return;
2845
2840
  }
2846
- const x = k ? n.value : t.value, q = new Set(x.map((Re) => String(e.getOptionValue.value(Re)))), ve = I.filter((Re) => !q.has(String(e.getOptionValue.value(Re))));
2847
- k ? (n.value = [...x, ...ve], i.value = z?.totalCount ?? i.value, y >= i.value && (l.value = !0)) : (t.value = [...x, ...ve], a.value = z?.totalCount ?? a.value, m >= a.value && (o.value = !0)), U(ve);
2841
+ const x = k ? n.value : t.value, q = new Set(x.map((Re) => String(e.getOptionValue.value(Re)))), ve = h.filter((Re) => !q.has(String(e.getOptionValue.value(Re))));
2842
+ k ? (n.value = [...x, ...ve], i.value = z?.totalCount ?? i.value, I >= i.value && (l.value = !0)) : (t.value = [...x, ...ve], a.value = z?.totalCount ?? a.value, p >= a.value && (o.value = !0)), U(ve);
2848
2843
  } catch (z) {
2849
2844
  console.error("useSelectDataSource: error loading more", z);
2850
2845
  } finally {
@@ -2852,7 +2847,7 @@ function eo(e) {
2852
2847
  }
2853
2848
  }
2854
2849
  async function ce(A) {
2855
- v.value = A;
2850
+ g.value = A;
2856
2851
  const k = e.options();
2857
2852
  if (typeof k == "function") {
2858
2853
  const E = ++T;
@@ -2861,10 +2856,10 @@ function eo(e) {
2861
2856
  const K = await k(A);
2862
2857
  if (E !== T) return;
2863
2858
  const z = K?.results ?? [];
2864
- n.value = z, i.value = K?.totalCount ?? 0, y = z.length, l.value = z.length === 0 || y >= i.value, U(z);
2859
+ n.value = z, i.value = K?.totalCount ?? 0, I = z.length, l.value = z.length === 0 || I >= i.value, U(z);
2865
2860
  } catch (K) {
2866
2861
  if (E !== T) return;
2867
- console.error("useSelectDataSource: error searching", K), n.value = [], i.value = 0, y = 0, l.value = !0;
2862
+ console.error("useSelectDataSource: error searching", K), n.value = [], i.value = 0, I = 0, l.value = !0;
2868
2863
  } finally {
2869
2864
  E === T && (u.value = !1);
2870
2865
  }
@@ -2873,13 +2868,13 @@ function eo(e) {
2873
2868
  const z = e.getOptionLabel.value(K);
2874
2869
  return String(z).toLowerCase().includes(A.toLowerCase());
2875
2870
  });
2876
- n.value = E, i.value = E.length, y = E.length, l.value = !0;
2871
+ n.value = E, i.value = E.length, I = E.length, l.value = !0;
2877
2872
  }
2878
2873
  }
2879
2874
  function fe(A) {
2880
2875
  if (!A?.target) return;
2881
2876
  const k = A.target.value, E = Number(e.debounce());
2882
- p && clearTimeout(p), E > 0 ? p = setTimeout(() => {
2877
+ m && clearTimeout(m), E > 0 ? m = setTimeout(() => {
2883
2878
  e.emit.search(k), ce(k);
2884
2879
  }, E) : (e.emit.search(k), ce(k));
2885
2880
  }
@@ -2888,38 +2883,38 @@ function eo(e) {
2888
2883
  }
2889
2884
  async function F(A) {
2890
2885
  if (A.length === 0) return [];
2891
- const E = A.filter((I) => !d.has(String(I))).filter((I) => {
2892
- const x = t.value.find((q) => De(e.getOptionValue.value(q), I));
2893
- return x ? (d.set(String(I), x), !1) : !0;
2886
+ const E = A.filter((h) => !d.has(String(h))).filter((h) => {
2887
+ const x = t.value.find((q) => De(e.getOptionValue.value(q), h));
2888
+ return x ? (d.set(String(h), x), !1) : !0;
2894
2889
  }), K = e.options();
2895
2890
  if (E.length > 0 && typeof K == "function") {
2896
2891
  try {
2897
- g.value = !0;
2892
+ v.value = !0;
2898
2893
  const x = await K(void 0, void 0, E);
2899
2894
  x?.results && U(x.results);
2900
2895
  } catch (x) {
2901
2896
  console.error("useSelectDataSource: error resolving", x);
2902
2897
  } finally {
2903
- g.value = !1;
2898
+ v.value = !1;
2904
2899
  }
2905
2900
  E.filter((x) => !d.has(String(x))).length > 0 && !c && await Z();
2906
2901
  } else if (E.length > 0 && Array.isArray(K))
2907
- for (const I of K) {
2908
- const x = String(e.getOptionValue.value(I));
2909
- E.includes(x) && d.set(x, I);
2902
+ for (const h of K) {
2903
+ const x = String(e.getOptionValue.value(h));
2904
+ E.includes(x) && d.set(x, h);
2910
2905
  }
2911
- const z = A.map((I) => d.get(String(I))).filter(Boolean);
2906
+ const z = A.map((h) => d.get(String(h))).filter(Boolean);
2912
2907
  return b.value = z, z;
2913
2908
  }
2914
2909
  async function H() {
2915
- t.value = [], a.value = 0, m = 0, o.value = !1, ne(), d.clear(), b.value = [], c = !1, await Z();
2910
+ t.value = [], a.value = 0, p = 0, o.value = !1, ne(), d.clear(), b.value = [], c = !1, await Z();
2916
2911
  }
2917
2912
  return Y(
2918
2913
  e.options,
2919
2914
  async () => {
2920
- t.value = [], a.value = 0, m = 0, o.value = !1, ne(), d.clear(), c = !1;
2915
+ t.value = [], a.value = 0, p = 0, o.value = !1, ne(), d.clear(), c = !1;
2921
2916
  const A = e.options();
2922
- if (Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0, U(t.value), c = !0, b.value.length === 0)) {
2917
+ if (Array.isArray(A) && (t.value = [...A], a.value = t.value.length, p = t.value.length, o.value = !0, U(t.value), c = !0, b.value.length === 0)) {
2923
2918
  const k = b.value;
2924
2919
  (k.length === 0 ? t.value.filter((K) => {
2925
2920
  const z = String(e.getOptionValue.value(K));
@@ -2933,9 +2928,9 @@ function eo(e) {
2933
2928
  loading: s,
2934
2929
  searchLoading: u,
2935
2930
  hasMore: P,
2936
- filterString: v,
2931
+ filterString: g,
2937
2932
  resolvedDefaults: b,
2938
- defaultOptionLoading: g,
2933
+ defaultOptionLoading: v,
2939
2934
  cachedItems: t,
2940
2935
  open: Z,
2941
2936
  close: le,
@@ -2946,77 +2941,77 @@ function eo(e) {
2946
2941
  refresh: H
2947
2942
  };
2948
2943
  }
2949
- function to(e) {
2944
+ function eo(e) {
2950
2945
  let t = [];
2951
2946
  const n = O(() => {
2952
- const g = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || g === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
2947
+ const v = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || v === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
2953
2948
  if (e.mapOptions() === !0 && Array.isArray(e.displayItems.value) === !0) {
2954
- const c = e.mapOptions() === !0 && t !== void 0 ? t : [], m = d.map((y) => {
2955
- const T = e.getOption(y, c, e.resolvedDefaults.value, e.displayItems.value);
2956
- if (T === y && e.cachedItems.value.length > 0) {
2957
- const p = e.getOption(y, c, e.resolvedDefaults.value, e.cachedItems.value);
2958
- if (p !== y) return p;
2949
+ const c = e.mapOptions() === !0 && t !== void 0 ? t : [], p = d.map((I) => {
2950
+ const T = e.getOption(I, c, e.resolvedDefaults.value, e.displayItems.value);
2951
+ if (T === I && e.cachedItems.value.length > 0) {
2952
+ const m = e.getOption(I, c, e.resolvedDefaults.value, e.cachedItems.value);
2953
+ if (m !== I) return m;
2959
2954
  }
2960
2955
  return T;
2961
2956
  });
2962
- return e.modelValue() === null && g === !0 ? m.filter((y) => y !== null) : m;
2957
+ return e.modelValue() === null && v === !0 ? p.filter((I) => I !== null) : p;
2963
2958
  }
2964
2959
  return d;
2965
2960
  });
2966
2961
  Y(
2967
2962
  n,
2968
- (g) => {
2969
- t = g;
2963
+ (v) => {
2964
+ t = v;
2970
2965
  },
2971
2966
  { immediate: !0 }
2972
2967
  );
2973
- const a = O(() => n.value.map((g) => e.getOptionValue.value(g)));
2974
- function i(g) {
2975
- const d = e.getOptionValue.value(g);
2968
+ const a = O(() => n.value.map((v) => e.getOptionValue.value(v)));
2969
+ function i(v) {
2970
+ const d = e.getOptionValue.value(v);
2976
2971
  return a.value.find((c) => De(c, d)) !== void 0;
2977
2972
  }
2978
2973
  const o = O(
2979
- () => n.value.map((g, d) => ({
2974
+ () => n.value.map((v, d) => ({
2980
2975
  index: d,
2981
- opt: g,
2976
+ opt: v,
2982
2977
  selected: !0,
2983
2978
  toggleOption: u,
2984
- removeAtIndex: v
2979
+ removeAtIndex: g
2985
2980
  }))
2986
- ), l = O(() => e.fieldValueIsFilled(n.value)), s = O(() => e.displayItems.value.map((g, d) => ({
2981
+ ), l = O(() => e.fieldValueIsFilled(n.value)), s = O(() => e.displayItems.value.map((v, d) => ({
2987
2982
  index: d,
2988
- opt: g,
2989
- selected: i(g) === !0,
2990
- label: e.getOptionLabel.value(g),
2983
+ opt: v,
2984
+ selected: i(v) === !0,
2985
+ label: e.getOptionLabel.value(v),
2991
2986
  toggleOption: u
2992
2987
  })));
2993
- function u(g) {
2994
- if (g === void 0)
2988
+ function u(v) {
2989
+ if (v === void 0)
2995
2990
  return;
2996
- const d = e.getOptionValue.value(g);
2991
+ const d = e.getOptionValue.value(v);
2997
2992
  if (e.multiple() !== !0) {
2998
- (n.value.length === 0 || De(e.getOptionValue.value(n.value[0]), d) !== !0) && e.emit.updateModelValue(e.emitValue() === !0 ? d : g), e.isOpened.value = !1, e.emit.close();
2993
+ (n.value.length === 0 || De(e.getOptionValue.value(n.value[0]), d) !== !0) && e.emit.updateModelValue(e.emitValue() === !0 ? d : v), e.isOpened.value = !1, e.emit.close();
2999
2994
  return;
3000
2995
  }
3001
2996
  if (n.value.length === 0) {
3002
- const y = e.emitValue() === !0 ? d : g;
3003
- e.emit.updateModelValue(e.multiple() === !0 ? [y] : y);
2997
+ const I = e.emitValue() === !0 ? d : v;
2998
+ e.emit.updateModelValue(e.multiple() === !0 ? [I] : I);
3004
2999
  return;
3005
3000
  }
3006
- const c = e.modelValue().slice(), m = a.value.findIndex((y) => De(y, d));
3007
- if (m > -1)
3008
- c.splice(m, 1);
3001
+ const c = e.modelValue().slice(), p = a.value.findIndex((I) => De(I, d));
3002
+ if (p > -1)
3003
+ c.splice(p, 1);
3009
3004
  else {
3010
- const y = e.emitValue() === !0 ? d : g;
3011
- c.push(y);
3005
+ const I = e.emitValue() === !0 ? d : v;
3006
+ c.push(I);
3012
3007
  }
3013
3008
  e.emit.updateModelValue(c), e.isOpened.value && e.popperUpdate();
3014
3009
  }
3015
- function v(g) {
3016
- if (g > -1 && g < n.value.length)
3010
+ function g(v) {
3011
+ if (v > -1 && v < n.value.length)
3017
3012
  if (e.multiple() === !0) {
3018
3013
  const d = e.modelValue().slice();
3019
- d.splice(g, 1), e.emit.updateModelValue(d);
3014
+ d.splice(v, 1), e.emit.updateModelValue(d);
3020
3015
  } else
3021
3016
  e.emit.updateModelValue(null);
3022
3017
  }
@@ -3034,45 +3029,45 @@ function to(e) {
3034
3029
  innerOptionsValue: a,
3035
3030
  optionScope: s,
3036
3031
  toggleOption: u,
3037
- removeAtIndex: v,
3032
+ removeAtIndex: g,
3038
3033
  isOptionSelected: i,
3039
3034
  onReset: b
3040
3035
  };
3041
3036
  }
3042
- const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }, lo = {
3037
+ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }, ao = {
3043
3038
  key: 0,
3044
3039
  class: "vc-select__prepend"
3045
- }, oo = { class: "vc-select__field" }, io = { class: "vc-select__field-inner" }, ro = { class: "vc-select__field-content" }, so = {
3040
+ }, lo = { class: "vc-select__field" }, oo = { class: "vc-select__field-inner" }, io = { class: "vc-select__field-content" }, ro = {
3046
3041
  key: 0,
3047
3042
  class: "vc-select__prepend-inner"
3048
- }, uo = { class: "vc-select__field-main" }, co = {
3043
+ }, so = { class: "vc-select__field-main" }, uo = {
3049
3044
  key: 0,
3050
3045
  class: "vc-select__prefix"
3051
- }, fo = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], vo = {
3046
+ }, co = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], fo = {
3052
3047
  key: 0,
3053
3048
  class: "vc-select__placeholder"
3054
- }, go = {
3049
+ }, vo = {
3055
3050
  key: 1,
3056
3051
  class: "vc-select__selected"
3057
- }, mo = { class: "vc-select__multiple-item" }, po = {
3052
+ }, go = { class: "vc-select__multiple-item" }, mo = {
3058
3053
  key: 0,
3059
3054
  class: "vc-select__loading"
3060
- }, bo = { key: 1 }, yo = ["aria-label", "onClick", "onKeydown"], ho = {
3055
+ }, po = { key: 1 }, bo = ["aria-label", "onClick", "onKeydown"], yo = {
3061
3056
  key: 0,
3062
3057
  class: "vc-select__loading"
3063
- }, Io = {
3058
+ }, ho = {
3064
3059
  key: 1,
3065
3060
  class: "vc-select__suffix"
3066
- }, ko = ["aria-label"], So = {
3061
+ }, Io = ["aria-label"], ko = {
3067
3062
  key: 1,
3068
3063
  class: "vc-select__append-inner"
3069
- }, $o = {
3064
+ }, So = {
3070
3065
  key: 2,
3071
3066
  class: "vc-select__loading-icon"
3072
- }, Eo = ["aria-label"], Oo = { class: "vc-select__chevron" }, wo = {
3067
+ }, $o = ["aria-label"], Eo = { class: "vc-select__chevron" }, Oo = {
3073
3068
  key: 1,
3074
3069
  class: "vc-select__append"
3075
- }, Lo = { class: "vc-select__hint-error" }, Co = { key: 0 }, To = { key: 1 }, Bo = /* @__PURE__ */ V({
3070
+ }, wo = { class: "vc-select__hint-error" }, Lo = { key: 0 }, Co = { key: 1 }, To = /* @__PURE__ */ V({
3076
3071
  __name: "SelectTrigger",
3077
3072
  props: {
3078
3073
  isOpened: { type: Boolean },
@@ -3107,7 +3102,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3107
3102
  const { t: n } = ye({ useScope: "global" }), a = S(null);
3108
3103
  return t({
3109
3104
  toggleRef: a
3110
- }), (i, o) => (f(), h("div", no, [
3105
+ }), (i, o) => (f(), y("div", to, [
3111
3106
  C("div", {
3112
3107
  ref_key: "toggleRef",
3113
3108
  ref: a,
@@ -3117,8 +3112,8 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3117
3112
  toggleHandler: e.toggleDropdown,
3118
3113
  isOpened: e.isOpened
3119
3114
  }, () => [
3120
- C("div", ao, [
3121
- i.$slots.prepend ? (f(), h("div", lo, [
3115
+ C("div", no, [
3116
+ i.$slots.prepend ? (f(), y("div", ao, [
3122
3117
  B(i.$slots, "prepend")
3123
3118
  ])) : w("", !0),
3124
3119
  C("div", {
@@ -3127,14 +3122,14 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3127
3122
  "vc-select__field-wrapper--small": e.size === "small"
3128
3123
  }])
3129
3124
  }, [
3130
- C("div", oo, [
3131
- C("div", io, [
3132
- C("div", ro, [
3133
- i.$slots["prepend-inner"] ? (f(), h("div", so, [
3125
+ C("div", lo, [
3126
+ C("div", oo, [
3127
+ C("div", io, [
3128
+ i.$slots["prepend-inner"] ? (f(), y("div", ro, [
3134
3129
  B(i.$slots, "prepend-inner")
3135
3130
  ])) : w("", !0),
3136
- C("div", uo, [
3137
- e.prefix ? (f(), h("div", co, M(e.prefix), 1)) : w("", !0),
3131
+ C("div", so, [
3132
+ e.prefix ? (f(), y("div", uo, M(e.prefix), 1)) : w("", !0),
3138
3133
  C("div", {
3139
3134
  "data-test-id": "dropdown-toggle",
3140
3135
  class: "vc-select__input",
@@ -3167,8 +3162,8 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3167
3162
  onFocus: o[3] || (o[3] = (l) => i.$emit("focus")),
3168
3163
  onBlur: o[4] || (o[4] = (l) => i.$emit("blur"))
3169
3164
  }, [
3170
- e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), h("div", go, [
3171
- (f(!0), h(Ce, null, rt(e.selectedScope, (l, s) => (f(), h("div", {
3165
+ e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), y("div", vo, [
3166
+ (f(!0), y(Ce, null, rt(e.selectedScope, (l, s) => (f(), y("div", {
3172
3167
  key: s,
3173
3168
  class: "vc-select__selected-item"
3174
3169
  }, [
@@ -3176,9 +3171,9 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3176
3171
  key: 0,
3177
3172
  ref_for: !0
3178
3173
  }, l), () => [
3179
- C("div", mo, [
3180
- e.loading ? (f(), h("span", po, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), h("span", bo, M(e.getOptionLabel(l.opt)), 1)),
3181
- e.disabled ? w("", !0) : (f(), h("button", {
3174
+ C("div", go, [
3175
+ e.loading ? (f(), y("span", mo, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), y("span", po, M(e.getOptionLabel(l.opt)), 1)),
3176
+ e.disabled ? w("", !0) : (f(), y("button", {
3182
3177
  key: 2,
3183
3178
  type: "button",
3184
3179
  class: "vc-select__chip-remove",
@@ -3192,10 +3187,10 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3192
3187
  icon: "lucide-x",
3193
3188
  size: "xs"
3194
3189
  })
3195
- ], 40, yo))
3190
+ ], 40, bo))
3196
3191
  ])
3197
- ]) : e.multiple ? w("", !0) : (f(), h(Ce, { key: 1 }, [
3198
- e.loading ? (f(), h("span", ho, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(i.$slots, "selected-item", ae({
3192
+ ]) : e.multiple ? w("", !0) : (f(), y(Ce, { key: 1 }, [
3193
+ e.loading ? (f(), y("span", yo, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(i.$slots, "selected-item", ae({
3199
3194
  key: 1,
3200
3195
  ref_for: !0
3201
3196
  }, l), () => [
@@ -3203,16 +3198,16 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3203
3198
  ])
3204
3199
  ], 64))
3205
3200
  ]))), 128))
3206
- ])) : w("", !0) : (f(), h("div", vo, [
3207
- e.placeholder ? (f(), h(Ce, { key: 0 }, [
3201
+ ])) : w("", !0) : (f(), y("div", fo, [
3202
+ e.placeholder ? (f(), y(Ce, { key: 0 }, [
3208
3203
  ee(M(e.placeholder), 1)
3209
- ], 64)) : (f(), h(Ce, { key: 1 }, [
3204
+ ], 64)) : (f(), y(Ce, { key: 1 }, [
3210
3205
  ee(M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
3211
3206
  ], 64))
3212
3207
  ]))
3213
- ], 40, fo),
3214
- e.suffix ? (f(), h("div", Io, M(e.suffix), 1)) : w("", !0),
3215
- e.clearable && e.hasValue && !e.disabled ? (f(), h("div", {
3208
+ ], 40, co),
3209
+ e.suffix ? (f(), y("div", ho, M(e.suffix), 1)) : w("", !0),
3210
+ e.clearable && e.hasValue && !e.disabled ? (f(), y("div", {
3216
3211
  key: 2,
3217
3212
  class: "vc-select__clear",
3218
3213
  role: "button",
@@ -3228,19 +3223,19 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3228
3223
  size: "xs",
3229
3224
  icon: "lucide-x"
3230
3225
  })
3231
- ], 40, ko)) : w("", !0)
3226
+ ], 40, Io)) : w("", !0)
3232
3227
  ]),
3233
- i.$slots["append-inner"] ? (f(), h("div", So, [
3228
+ i.$slots["append-inner"] ? (f(), y("div", ko, [
3234
3229
  B(i.$slots, "append-inner")
3235
3230
  ])) : w("", !0),
3236
- e.loading || e.listLoading || e.defaultOptionLoading ? (f(), h("div", $o, [
3231
+ e.loading || e.listLoading || e.defaultOptionLoading ? (f(), y("div", So, [
3237
3232
  R(r(W), {
3238
3233
  icon: "lucide-loader-2",
3239
3234
  class: "tw-animate-spin",
3240
3235
  size: "m"
3241
3236
  })
3242
3237
  ])) : w("", !0),
3243
- e.disabled ? w("", !0) : (f(), h("div", {
3238
+ e.disabled ? w("", !0) : (f(), y("div", {
3244
3239
  key: 3,
3245
3240
  class: "vc-select__chevron-container",
3246
3241
  role: "button",
@@ -3264,30 +3259,30 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3264
3259
  ), ["space"]))
3265
3260
  ]
3266
3261
  }, [
3267
- C("div", Oo, [
3262
+ C("div", Eo, [
3268
3263
  R(r(W), {
3269
3264
  size: "s",
3270
3265
  icon: "lucide-chevron-down"
3271
3266
  })
3272
3267
  ])
3273
- ], 40, Eo))
3268
+ ], 40, $o))
3274
3269
  ])
3275
3270
  ])
3276
3271
  ])
3277
3272
  ], 2),
3278
- i.$slots.append ? (f(), h("div", wo, [
3273
+ i.$slots.append ? (f(), y("div", Oo, [
3279
3274
  B(i.$slots, "append")
3280
3275
  ])) : w("", !0)
3281
3276
  ])
3282
3277
  ])
3283
3278
  ], 512),
3284
- C("div", Lo, [
3279
+ C("div", wo, [
3285
3280
  R(Pe, {
3286
3281
  name: "slide-up",
3287
3282
  mode: "out-in"
3288
3283
  }, {
3289
3284
  default: L(() => [
3290
- e.error && e.errorMessage ? (f(), h("div", Co, [
3285
+ e.error && e.errorMessage ? (f(), y("div", Lo, [
3291
3286
  B(i.$slots, "error", {}, () => [
3292
3287
  R(r(be), {
3293
3288
  id: e.errorId,
@@ -3300,7 +3295,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3300
3295
  _: 1
3301
3296
  }, 8, ["id"])
3302
3297
  ])
3303
- ])) : (f(), h("div", To, [
3298
+ ])) : (f(), y("div", Co, [
3304
3299
  B(i.$slots, "hint", {}, () => [
3305
3300
  e.hint ? (f(), D(r(be), {
3306
3301
  key: 0,
@@ -3320,16 +3315,16 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3320
3315
  ])
3321
3316
  ]));
3322
3317
  }
3323
- }), Ro = ["id", "aria-label"], xo = ["aria-label"], Mo = ["aria-selected", "data-index", "onClick", "onKeydown"], No = {
3318
+ }), Bo = ["id", "aria-label"], Ro = ["aria-label"], xo = ["aria-selected", "data-index", "onClick", "onKeydown"], Mo = {
3324
3319
  key: 0,
3325
3320
  class: "vc-select__check-icon"
3326
- }, Ao = {
3321
+ }, No = {
3327
3322
  key: 0,
3328
3323
  class: "vc-select__list-loading-indicator"
3329
- }, Do = { class: "tw-ms-1" }, Vo = {
3324
+ }, Ao = { class: "tw-ms-1" }, Do = {
3330
3325
  key: 1,
3331
3326
  class: "vc-select__no-options"
3332
- }, Po = { class: "vc-select__no-options-text" }, zo = /* @__PURE__ */ V({
3327
+ }, Vo = { class: "vc-select__no-options-text" }, Po = /* @__PURE__ */ V({
3333
3328
  __name: "SelectDropdown",
3334
3329
  props: {
3335
3330
  isOpened: { type: Boolean },
@@ -3345,36 +3340,36 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3345
3340
  },
3346
3341
  emits: ["input", "clickOutside"],
3347
3342
  setup(e, { expose: t, emit: n }) {
3348
- const a = e, i = n, { t: o } = ye({ useScope: "global" }), { teleportTarget: l } = Sn(), s = S(null), u = S(null), v = S(null), b = S(null), g = O(() => v.value?.viewportRef ?? null);
3343
+ const a = e, i = n, { t: o } = ye({ useScope: "global" }), { teleportTarget: l } = Sn(), s = S(null), u = S(null), g = S(null), b = S(null), v = O(() => g.value?.viewportRef ?? null);
3349
3344
  function d(c) {
3350
- const m = g.value;
3351
- if (!m) return;
3352
- if (m.contains(c.target)) {
3353
- const T = m.scrollTop <= 0 && c.deltaY < 0, p = Dt(m) && c.deltaY > 0;
3354
- (T || p) && c.preventDefault();
3345
+ const p = v.value;
3346
+ if (!p) return;
3347
+ if (p.contains(c.target)) {
3348
+ const T = p.scrollTop <= 0 && c.deltaY < 0, m = Dt(p) && c.deltaY > 0;
3349
+ (T || m) && c.preventDefault();
3355
3350
  } else
3356
- c.preventDefault(), m.scrollTop += c.deltaY;
3357
- v.value?.updateScrollState();
3351
+ c.preventDefault(), p.scrollTop += c.deltaY;
3352
+ g.value?.updateScrollState();
3358
3353
  }
3359
3354
  return Y(
3360
3355
  () => a.isOpened,
3361
3356
  (c) => {
3362
- c && Ee(() => v.value?.updateScrollState());
3357
+ c && Ee(() => g.value?.updateScrollState());
3363
3358
  }
3364
3359
  ), Y(
3365
3360
  () => a.optionScope.length,
3366
3361
  () => {
3367
- a.isOpened && Ee(() => v.value?.updateScrollState());
3362
+ a.isOpened && Ee(() => g.value?.updateScrollState());
3368
3363
  }
3369
3364
  ), t({
3370
3365
  dropdownElRef: s,
3371
3366
  searchInputRef: u,
3372
- viewportRef: g,
3367
+ viewportRef: v,
3373
3368
  loadMoreRef: b
3374
- }), (c, m) => (f(), D(sn, { to: r(l) }, [
3369
+ }), (c, p) => (f(), D(sn, { to: r(l) }, [
3375
3370
  R(Pe, { name: "select-dropdown" }, {
3376
3371
  default: L(() => [
3377
- e.isOpened ? ut((f(), h("div", {
3372
+ e.isOpened ? ut((f(), y("div", {
3378
3373
  key: 0,
3379
3374
  id: e.listboxId,
3380
3375
  ref_key: "dropdownElRef",
@@ -3386,7 +3381,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3386
3381
  style: Ve(e.dropdownStyle),
3387
3382
  onWheel: d
3388
3383
  }, [
3389
- e.searchable ? (f(), h("input", {
3384
+ e.searchable ? (f(), y("input", {
3390
3385
  key: 0,
3391
3386
  ref_key: "searchInputRef",
3392
3387
  ref: u,
@@ -3394,58 +3389,58 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3394
3389
  tabindex: "0",
3395
3390
  "aria-label": c.$t("COMPONENTS.CONTROLS.SEARCH_OPTIONS"),
3396
3391
  autocomplete: "off",
3397
- onInput: m[0] || (m[0] = (y) => i("input", y)),
3392
+ onInput: p[0] || (p[0] = (I) => i("input", I)),
3398
3393
  onKeydown: [
3399
- m[1] || (m[1] = _(J(() => {
3394
+ p[1] || (p[1] = _(J(() => {
3400
3395
  }, ["stop"]), ["space"])),
3401
- m[2] || (m[2] = _(J(() => {
3396
+ p[2] || (p[2] = _(J(() => {
3402
3397
  }, ["stop"]), ["enter"]))
3403
3398
  ]
3404
- }, null, 40, xo)) : w("", !0),
3405
- R(r(ol), {
3399
+ }, null, 40, Ro)) : w("", !0),
3400
+ R(r(ll), {
3406
3401
  ref_key: "scrollContainerRef",
3407
- ref: v,
3402
+ ref: g,
3408
3403
  class: "vc-select__scroll-container"
3409
3404
  }, {
3410
3405
  default: L(() => [
3411
- (f(!0), h(Ce, null, rt(e.optionScope, (y, T) => (f(), h("div", {
3406
+ (f(!0), y(Ce, null, rt(e.optionScope, (I, T) => (f(), y("div", {
3412
3407
  key: T,
3413
- class: G(["vc-select__option", { "vc-select__option--selected": y.selected }]),
3408
+ class: G(["vc-select__option", { "vc-select__option--selected": I.selected }]),
3414
3409
  "data-test-id": "option",
3415
3410
  role: "option",
3416
- "aria-selected": y.selected,
3411
+ "aria-selected": I.selected,
3417
3412
  tabindex: "0",
3418
3413
  "data-index": T,
3419
- onClick: (p) => y.toggleOption(y.opt),
3414
+ onClick: (m) => I.toggleOption(I.opt),
3420
3415
  onKeydown: [
3421
- _((p) => y.toggleOption(y.opt), ["enter"]),
3422
- _((p) => y.toggleOption(y.opt), ["space"])
3416
+ _((m) => I.toggleOption(I.opt), ["enter"]),
3417
+ _((m) => I.toggleOption(I.opt), ["space"])
3423
3418
  ]
3424
3419
  }, [
3425
- B(c.$slots, "option", ae({ ref_for: !0 }, y), () => [
3426
- ee(M(y.label), 1)
3420
+ B(c.$slots, "option", ae({ ref_for: !0 }, I), () => [
3421
+ ee(M(I.label), 1)
3427
3422
  ]),
3428
- y.selected ? (f(), h("span", No, [
3423
+ I.selected ? (f(), y("span", Mo, [
3429
3424
  R(r(W), {
3430
3425
  icon: "lucide-check",
3431
3426
  size: "xs"
3432
3427
  })
3433
3428
  ])) : w("", !0)
3434
- ], 42, Mo))), 128)),
3435
- e.listLoading ? (f(), h("div", Ao, [
3429
+ ], 42, xo))), 128)),
3430
+ e.listLoading ? (f(), y("div", No, [
3436
3431
  R(r(W), {
3437
3432
  icon: "lucide-loader-2",
3438
3433
  class: "tw-animate-spin",
3439
3434
  size: "m"
3440
3435
  }),
3441
- C("span", Do, M(e.optionsListLength > 0 ? r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
3436
+ C("span", Ao, M(e.optionsListLength > 0 ? r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
3442
3437
  ])) : w("", !0),
3443
- !e.listLoading && !e.optionsListLength ? (f(), h("div", Vo, [
3438
+ !e.listLoading && !e.optionsListLength ? (f(), y("div", Do, [
3444
3439
  B(c.$slots, "no-options", {}, () => [
3445
- C("span", Po, M(r(o)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
3440
+ C("span", Vo, M(r(o)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
3446
3441
  ])
3447
3442
  ])) : w("", !0),
3448
- e.hasNextPage && !e.listLoading ? (f(), h("span", {
3443
+ e.hasNextPage && !e.listLoading ? (f(), y("span", {
3449
3444
  key: 2,
3450
3445
  ref_key: "loadMoreRef",
3451
3446
  ref: b,
@@ -3454,7 +3449,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3454
3449
  ]),
3455
3450
  _: 3
3456
3451
  }, 512)
3457
- ], 44, Ro)), [
3452
+ ], 44, Bo)), [
3458
3453
  [r(zn), [() => i("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
3459
3454
  ]) : w("", !0)
3460
3455
  ]),
@@ -3462,7 +3457,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3462
3457
  })
3463
3458
  ], 8, ["to"]));
3464
3459
  }
3465
- }), Fo = ["innerHTML"], Ko = { class: "vc-select__field-container" }, Uo = /* @__PURE__ */ V({
3460
+ }), zo = ["innerHTML"], Fo = { class: "vc-select__field-container" }, Ko = /* @__PURE__ */ V({
3466
3461
  inheritAttrs: !1,
3467
3462
  __name: "vc-select",
3468
3463
  props: {
@@ -3501,18 +3496,18 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3501
3496
  return te;
3502
3497
  }), o = t, { t: l } = ye({ useScope: "global" }), s = we(), {
3503
3498
  fieldId: u,
3504
- labelId: v,
3499
+ labelId: g,
3505
3500
  errorId: b,
3506
- hintId: g,
3501
+ hintId: v,
3507
3502
  invalid: d,
3508
3503
  resolvedDisabled: c,
3509
- resolvedName: m,
3510
- ariaRequired: y,
3504
+ resolvedName: p,
3505
+ ariaRequired: I,
3511
3506
  ariaDescribedBy: T
3512
- } = Ge(n), p = O(() => `${u.value}-listbox`), $ = S(null), P = S(null), { selectRootRef: U, isSelectVisible: ne, ensureVisibility: Z } = Ql(), { getOptionValue: le, getOptionLabel: Q, getOption: ce, getEmittingOptionValue: fe, fieldValueIsFilled: ie } = Zl({
3507
+ } = Ge(n), m = O(() => `${u.value}-listbox`), $ = S(null), P = S(null), { selectRootRef: U, isSelectVisible: ne, ensureVisibility: Z } = Zl(), { getOptionValue: le, getOptionLabel: Q, getOption: ce, getEmittingOptionValue: fe, fieldValueIsFilled: ie } = Xl({
3513
3508
  optionValue: () => n.optionValue,
3514
3509
  optionLabel: () => n.optionLabel
3515
- }), { isOpened: F, isFocused: H, dropdownToggleRef: A, dropdownRef: k, popper: E, dropdownStyle: K, toggleDropdown: z } = _l({
3510
+ }), { isOpened: F, isFocused: H, dropdownToggleRef: A, dropdownRef: k, popper: E, dropdownStyle: K, toggleDropdown: z } = Ql({
3516
3511
  placement: n.placement,
3517
3512
  outline: () => n.outline,
3518
3513
  isSelectVisible: ne,
@@ -3525,7 +3520,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3525
3520
  }), nt(() => {
3526
3521
  k.value = P.value?.dropdownElRef ?? null;
3527
3522
  });
3528
- const I = eo({
3523
+ const h = _l({
3529
3524
  options: () => n.options,
3530
3525
  getOptionValue: le,
3531
3526
  getOptionLabel: Q,
@@ -3534,14 +3529,14 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3534
3529
  emit: {
3535
3530
  search: (N) => o("search", N)
3536
3531
  }
3537
- }), { selectedScope: x, hasValue: q, optionScope: ve, removeAtIndex: Re, onReset: Xt } = to({
3532
+ }), { selectedScope: x, hasValue: q, optionScope: ve, removeAtIndex: Re, onReset: Xt } = eo({
3538
3533
  modelValue: () => n.modelValue,
3539
3534
  multiple: () => n.multiple,
3540
3535
  emitValue: () => n.emitValue ?? !0,
3541
3536
  mapOptions: () => n.mapOptions ?? !0,
3542
- displayItems: I.displayItems,
3543
- resolvedDefaults: I.resolvedDefaults,
3544
- cachedItems: I.cachedItems,
3537
+ displayItems: h.displayItems,
3538
+ resolvedDefaults: h.resolvedDefaults,
3539
+ cachedItems: h.cachedItems,
3545
3540
  getOptionValue: le,
3546
3541
  getOptionLabel: Q,
3547
3542
  getOption: ce,
@@ -3556,14 +3551,14 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3556
3551
  Tn(
3557
3552
  Zt,
3558
3553
  ([{ isIntersecting: N }]) => {
3559
- N && I.hasMore.value && I.loadMore();
3554
+ N && h.hasMore.value && h.loadMore();
3560
3555
  },
3561
3556
  // The trigger is a 1px line at the end of the list. Asking for all of it to show never fires
3562
3557
  // under a fractional zoom, where the scrolled-to-end line sits a fraction past the viewport.
3563
3558
  // Any part showing is enough, and the margin starts the next page just before the end.
3564
3559
  { threshold: 0, rootMargin: "0px 0px 48px 0px", root: Qt }
3565
3560
  );
3566
- const Ze = Xl({
3561
+ const Ze = Jl({
3567
3562
  onEnter: (N) => {
3568
3563
  const te = parseInt(N.getAttribute("data-index") || "0", 10);
3569
3564
  ve.value && ve.value[te] && ve.value[te].toggleOption(ve.value[te].opt);
@@ -3578,7 +3573,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3578
3573
  F.value = !1, o("close");
3579
3574
  }
3580
3575
  return Y(F, async (N) => {
3581
- N ? (await I.open(), Ee(() => {
3576
+ N ? (await h.open(), Ee(() => {
3582
3577
  E.update();
3583
3578
  const te = P.value?.dropdownElRef, re = P.value?.searchInputRef;
3584
3579
  if (te)
@@ -3590,12 +3585,12 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3590
3585
  );
3591
3586
  xe ? xe.focus() : Ze.focusFirstElement();
3592
3587
  }
3593
- })) : (Ze.cleanupKeyboardNavigation(), I.close());
3588
+ })) : (Ze.cleanupKeyboardNavigation(), h.close());
3594
3589
  }), Y(
3595
3590
  () => n.modelValue,
3596
3591
  async (N) => {
3597
3592
  if (N == null || Array.isArray(N) && N.length === 0) {
3598
- I.resolvedDefaults.value = [];
3593
+ h.resolvedDefaults.value = [];
3599
3594
  return;
3600
3595
  }
3601
3596
  const te = n.emitValue ?? !0;
@@ -3603,12 +3598,12 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3603
3598
  const xe = Array.isArray(N) ? N : [N], yt = te ? xe : xe.filter((Me) => Me != null && typeof Me != "object");
3604
3599
  if (yt.length > 0) {
3605
3600
  const Me = yt.filter((en) => en != null).map(String);
3606
- Me.length > 0 && await I.resolve(Me);
3601
+ Me.length > 0 && await h.resolve(Me);
3607
3602
  }
3608
3603
  }
3609
3604
  },
3610
3605
  { immediate: !0 }
3611
- ), (N, te) => r(s) ? (f(), h("div", ae({ key: 0 }, i.value, {
3606
+ ), (N, te) => r(s) ? (f(), y("div", ae({ key: 0 }, i.value, {
3612
3607
  class: ["vc-select vc-select--skeleton", N.$attrs.class]
3613
3608
  }), [
3614
3609
  e.label ? (f(), D(r(oe), {
@@ -3622,7 +3617,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3622
3617
  width: "100%",
3623
3618
  height: 36
3624
3619
  })
3625
- ], 16)) : (f(), h("div", ae({
3620
+ ], 16)) : (f(), y("div", ae({
3626
3621
  key: 1,
3627
3622
  ref_key: "selectRootRef",
3628
3623
  ref: U
@@ -3641,7 +3636,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3641
3636
  }), [
3642
3637
  e.label ? (f(), D(r(Xe), {
3643
3638
  key: 0,
3644
- id: r(v),
3639
+ id: r(g),
3645
3640
  class: "vc-select__label",
3646
3641
  required: e.required,
3647
3642
  multilanguage: e.multilanguage,
@@ -3658,13 +3653,13 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3658
3653
  fn: L(() => [
3659
3654
  C("span", {
3660
3655
  innerHTML: r(Mt).sanitize(e.tooltip)
3661
- }, null, 8, Fo)
3656
+ }, null, 8, zo)
3662
3657
  ]),
3663
3658
  key: "0"
3664
3659
  } : void 0
3665
3660
  ]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
3666
- C("div", Ko, [
3667
- R(Bo, {
3661
+ C("div", Fo, [
3662
+ R(To, {
3668
3663
  ref_key: "selectTriggerRef",
3669
3664
  ref: $,
3670
3665
  "is-opened": r(F),
@@ -3681,15 +3676,15 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3681
3676
  error: r(d),
3682
3677
  "error-message": e.errorMessage,
3683
3678
  hint: e.hint,
3684
- "list-loading": r(I).loading.value || r(I).searchLoading.value,
3685
- "default-option-loading": r(I).defaultOptionLoading.value,
3686
- "listbox-id": p.value,
3687
- "label-id": r(v),
3679
+ "list-loading": r(h).loading.value || r(h).searchLoading.value,
3680
+ "default-option-loading": r(h).defaultOptionLoading.value,
3681
+ "listbox-id": m.value,
3682
+ "label-id": r(g),
3688
3683
  label: e.label,
3689
3684
  "aria-described-by": r(T),
3690
- "aria-required": r(y),
3685
+ "aria-required": r(I),
3691
3686
  "error-id": r(b),
3692
- "hint-id": r(g),
3687
+ "hint-id": r(v),
3693
3688
  "toggle-dropdown": r(z),
3694
3689
  "get-option-label": r(Q),
3695
3690
  "get-emitting-option-value": r(fe),
@@ -3755,20 +3750,20 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3755
3750
  key: "7"
3756
3751
  } : void 0
3757
3752
  ]), 1032, ["is-opened", "has-value", "selected-scope", "multiple", "loading", "disabled", "clearable", "placeholder", "prefix", "suffix", "size", "error", "error-message", "hint", "list-loading", "default-option-loading", "listbox-id", "label-id", "label", "aria-described-by", "aria-required", "error-id", "hint-id", "toggle-dropdown", "get-option-label", "get-emitting-option-value", "onReset", "onRemoveAtIndex"]),
3758
- R(zo, ae({
3753
+ R(Po, ae({
3759
3754
  ref_key: "selectDropdownRef",
3760
3755
  ref: P,
3761
3756
  "is-opened": r(F),
3762
- "listbox-id": p.value
3757
+ "listbox-id": m.value
3763
3758
  }, { ariaLabel: e.label || e.name }, {
3764
3759
  "dropdown-style": r(K),
3765
3760
  searchable: e.searchable,
3766
3761
  "option-scope": r(ve),
3767
- "list-loading": r(I).loading.value || r(I).searchLoading.value,
3768
- "options-list-length": r(I).displayItems.value.length,
3769
- "has-next-page": r(I).hasMore.value,
3762
+ "list-loading": r(h).loading.value || r(h).searchLoading.value,
3763
+ "options-list-length": r(h).displayItems.value.length,
3764
+ "has-next-page": r(h).hasMore.value,
3770
3765
  "dropdown-toggle-ref": $.value?.toggleRef ?? null,
3771
- onInput: r(I).onInput,
3766
+ onInput: r(h).onInput,
3772
3767
  onClickOutside: _t
3773
3768
  }), se({ _: 2 }, [
3774
3769
  N.$slots.option ? {
@@ -3789,10 +3784,10 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3789
3784
  ])
3790
3785
  ], 16));
3791
3786
  }
3792
- }), qo = {
3787
+ }), Uo = {
3793
3788
  key: 0,
3794
3789
  class: "vc-input-dropdown vc-input-dropdown--skeleton"
3795
- }, Wo = { class: "tw-flex tw-items-center" }, jo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], Ho = /* @__PURE__ */ V({
3790
+ }, qo = { class: "tw-flex tw-items-center" }, Wo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], jo = /* @__PURE__ */ V({
3796
3791
  __name: "vc-input-dropdown",
3797
3792
  props: {
3798
3793
  modelValue: {},
@@ -3826,7 +3821,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3826
3821
  emits: ["update:model-value", "update:option", "change", "blur"],
3827
3822
  setup(e) {
3828
3823
  const t = we();
3829
- return (n, a) => r(t) ? (f(), h("div", qo, [
3824
+ return (n, a) => r(t) ? (f(), y("div", Uo, [
3830
3825
  e.label ? (f(), D(r(oe), {
3831
3826
  key: 0,
3832
3827
  variant: "block",
@@ -3838,7 +3833,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3838
3833
  width: "100%",
3839
3834
  height: 36
3840
3835
  })
3841
- ])) : (f(), D(r(Uo), {
3836
+ ])) : (f(), D(r(Ko), {
3842
3837
  key: 1,
3843
3838
  class: "vc-input-dropdown",
3844
3839
  options: e.options,
@@ -3880,9 +3875,9 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3880
3875
  onBlur: a[1] || (a[1] = (l) => n.$emit("blur", l))
3881
3876
  }, se({
3882
3877
  "append-inner": L(() => [
3883
- C("div", Wo, [
3878
+ C("div", qo, [
3884
3879
  B(n.$slots, "button", { toggleHandler: i }, () => [
3885
- e.options && e.options.length ? (f(), h("button", {
3880
+ e.options && e.options.length ? (f(), y("button", {
3886
3881
  key: 0,
3887
3882
  type: "button",
3888
3883
  class: "vc-input-dropdown__toggle-button",
@@ -3895,7 +3890,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3895
3890
  _(J(i, ["stop", "prevent"]), ["enter"]),
3896
3891
  _(J(i, ["stop", "prevent"]), ["space"])
3897
3892
  ]
3898
- }, M(r(e.option)), 41, jo)) : w("", !0)
3893
+ }, M(r(e.option)), 41, Wo)) : w("", !0)
3899
3894
  ]),
3900
3895
  e.options && e.options.length ? (f(), D(r(Ra), {
3901
3896
  key: 0,
@@ -3944,10 +3939,10 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
3944
3939
  _: 3
3945
3940
  }, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "model-value", "tooltip", "multilanguage", "current-language"]));
3946
3941
  }
3947
- }), Go = {
3942
+ }), Ho = {
3948
3943
  key: 0,
3949
3944
  class: "vc-input-currency vc-input-currency--skeleton"
3950
- }, Yo = ["disabled", "placeholder", "aria-label"], Jo = /* @__PURE__ */ V({
3945
+ }, Go = ["disabled", "placeholder", "aria-label"], Yo = /* @__PURE__ */ V({
3951
3946
  __name: "vc-input-currency",
3952
3947
  props: {
3953
3948
  modelValue: {},
@@ -4009,26 +4004,26 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
4009
4004
  ), Y(s, (c) => {
4010
4005
  a("update:model-value", c);
4011
4006
  });
4012
- function v(c) {
4007
+ function g(c) {
4013
4008
  o.value && (o.value.value = c), s.value = typeof c == "number" ? c : c === null ? null : parseFloat(String(c)) || null, a("update:model-value", s.value);
4014
4009
  }
4015
4010
  function b(c) {
4016
4011
  a("blur", c);
4017
4012
  }
4018
- function g(c) {
4013
+ function v(c) {
4019
4014
  if ((c.key === "-" || c.key === "e") && c.preventDefault(), c.key !== "Tab") {
4020
4015
  if (c.key === "Enter") {
4021
4016
  c.target && c.target.blur();
4022
- const m = Array.from(document.querySelectorAll('[tabindex="0"]:not(:disabled)')), y = m.indexOf(c.target);
4023
- y >= 0 && y < m.length - 1 && m[y + 1].focus();
4017
+ const p = Array.from(document.querySelectorAll('[tabindex="0"]:not(:disabled)')), I = p.indexOf(c.target);
4018
+ I >= 0 && I < p.length - 1 && p[I + 1].focus();
4024
4019
  }
4025
4020
  }
4026
4021
  }
4027
4022
  function d(c) {
4028
- const m = c.clipboardData?.getData("text/plain");
4029
- typeof m < "u" && parseInt(m) < 0 && c.preventDefault();
4023
+ const p = c.clipboardData?.getData("text/plain");
4024
+ typeof p < "u" && parseInt(p) < 0 && c.preventDefault();
4030
4025
  }
4031
- return (c, m) => r(i) ? (f(), h("div", Go, [
4026
+ return (c, p) => r(i) ? (f(), y("div", Ho, [
4032
4027
  e.label ? (f(), D(r(oe), {
4033
4028
  key: 0,
4034
4029
  variant: "block",
@@ -4040,7 +4035,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
4040
4035
  width: "100%",
4041
4036
  height: 36
4042
4037
  })
4043
- ])) : (f(), D(r(Ho), {
4038
+ ])) : (f(), D(r(jo), {
4044
4039
  key: 1,
4045
4040
  class: "vc-input-currency",
4046
4041
  options: e.options,
@@ -4066,48 +4061,48 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
4066
4061
  "error-message": e.errorMessage,
4067
4062
  maxlength: e.maxlength,
4068
4063
  "input-type": "number",
4069
- "onUpdate:modelValue": v,
4070
- "onUpdate:option": m[0] || (m[0] = (y) => c.$emit("update:option", y)),
4064
+ "onUpdate:modelValue": g,
4065
+ "onUpdate:option": p[0] || (p[0] = (I) => c.$emit("update:option", I)),
4071
4066
  onBlur: b
4072
4067
  }, {
4073
- control: L(({ placeholder: y }) => [
4068
+ control: L(({ placeholder: I }) => [
4074
4069
  C("input", {
4075
4070
  ref_key: "inputRef",
4076
4071
  ref: o,
4077
4072
  type: "text",
4078
4073
  disabled: e.disabled,
4079
- placeholder: y,
4074
+ placeholder: I,
4080
4075
  "aria-label": e.label || void 0,
4081
4076
  class: "vc-input-currency__control",
4082
4077
  tabindex: "0",
4083
4078
  onBlur: b,
4084
- onKeydown: g,
4079
+ onKeydown: v,
4085
4080
  onPaste: d
4086
- }, null, 40, Yo)
4081
+ }, null, 40, Go)
4087
4082
  ]),
4088
4083
  _: 1
4089
4084
  }, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "option", "model-value", "tooltip", "placeholder", "hint", "clearable", "prefix", "suffix", "name", "loading", "autofocus", "error", "error-message", "maxlength"]));
4090
4085
  }
4091
- }), Ht = Symbol("VcAppBarState"), Xo = {
4086
+ }), Ht = Symbol("VcAppBarState"), Jo = {
4092
4087
  activeWidgetId: S(null),
4093
4088
  activeMobileActionId: S(null)
4094
4089
  };
4095
- function hr() {
4090
+ function yr() {
4096
4091
  const e = {
4097
4092
  activeWidgetId: S(null),
4098
4093
  activeMobileActionId: S(null)
4099
4094
  };
4100
4095
  return Ot(Ht, e), e;
4101
4096
  }
4102
- function Ir() {
4103
- return X(Ht, Xo);
4097
+ function hr() {
4098
+ return X(Ht, Jo);
4104
4099
  }
4105
- const kr = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), Sr = Symbol("FillerWidth"), $r = Symbol("IsColumnReordering"), Er = Symbol("MobileCellEdit"), Or = (e, t) => {
4100
+ const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), kr = Symbol("FillerWidth"), Sr = Symbol("IsColumnReordering"), $r = Symbol("MobileCellEdit"), Er = (e, t) => {
4106
4101
  const n = e.__vccOpts || e;
4107
4102
  for (const [a, i] of t)
4108
4103
  n[a] = i;
4109
4104
  return n;
4110
- }, wr = V({
4105
+ }, Or = V({
4111
4106
  name: "VcColumn",
4112
4107
  inheritAttrs: !1,
4113
4108
  props: {
@@ -4285,7 +4280,7 @@ const kr = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), Sr = Symbol("
4285
4280
  }
4286
4281
  },
4287
4282
  setup(e, { slots: t }) {
4288
- const n = X(Zo, null), a = je();
4283
+ const n = X(Xo, null), a = je();
4289
4284
  return He(() => {
4290
4285
  n && a && n.add({
4291
4286
  instance: a,
@@ -4311,7 +4306,7 @@ function Gt() {
4311
4306
  }
4312
4307
  };
4313
4308
  }
4314
- const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__ */ V({
4309
+ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__ */ V({
4315
4310
  __name: "CellEditableWrapper",
4316
4311
  props: {
4317
4312
  label: {},
@@ -4346,7 +4341,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4346
4341
  l ? {
4347
4342
  name: "tooltip",
4348
4343
  fn: L(() => [
4349
- C("div", Qo, M(l), 1)
4344
+ C("div", Zo, M(l), 1)
4350
4345
  ]),
4351
4346
  key: "0"
4352
4347
  } : void 0
@@ -4355,7 +4350,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4355
4350
  _: 3
4356
4351
  }, 8, ["label", "name", "model-value", "rules"]));
4357
4352
  }
4358
- }), _o = {
4353
+ }), Qo = {
4359
4354
  key: 1,
4360
4355
  class: "vc-table-cell-default"
4361
4356
  }, Yt = /* @__PURE__ */ V({
@@ -4383,16 +4378,16 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4383
4378
  rules: e.rules,
4384
4379
  "validate-on-mount": e.validateOnMount
4385
4380
  }, {
4386
- default: L(({ errors: v, errorMessage: b }) => [
4381
+ default: L(({ errors: g, errorMessage: b }) => [
4387
4382
  R(pt, {
4388
4383
  "model-value": e.value,
4389
4384
  class: "vc-table-cell-default__input",
4390
- error: v.length > 0,
4385
+ error: g.length > 0,
4391
4386
  "error-message": r(i) ? b : void 0,
4392
- "onUpdate:modelValue": u[0] || (u[0] = (g) => s.$emit("update", { field: e.fieldId || "", value: g })),
4393
- onBlur: (g) => l(v)
4387
+ "onUpdate:modelValue": u[0] || (u[0] = (v) => s.$emit("update", { field: e.fieldId || "", value: v })),
4388
+ onBlur: (v) => l(g)
4394
4389
  }, se({ _: 2 }, [
4395
- r(o) && v.length > 0 ? {
4390
+ r(o) && g.length > 0 ? {
4396
4391
  name: "append-inner",
4397
4392
  fn: L(() => [
4398
4393
  R(r(W), {
@@ -4405,15 +4400,15 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4405
4400
  ]), 1032, ["model-value", "error", "error-message", "onBlur"])
4406
4401
  ]),
4407
4402
  _: 1
4408
- }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), h("span", _o, M(e.value), 1));
4403
+ }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), y("span", Qo, M(e.value), 1));
4409
4404
  }
4410
- }), ei = {
4405
+ }), _o = {
4411
4406
  key: 1,
4412
4407
  class: "vc-table-cell-money"
4413
- }, ti = {
4408
+ }, ei = {
4414
4409
  key: 2,
4415
4410
  class: "vc-table-cell-money vc-table-cell-money--not-set"
4416
- }, ni = /* @__PURE__ */ V({
4411
+ }, ti = /* @__PURE__ */ V({
4417
4412
  __name: "CellMoney",
4418
4413
  props: {
4419
4414
  value: {},
@@ -4428,16 +4423,16 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4428
4423
  },
4429
4424
  emits: ["update", "blur"],
4430
4425
  setup(e, { emit: t }) {
4431
- const n = e, a = t, { t: i } = ye({ useScope: "global" }), o = window.navigator.language, { isMobile: l, isDesktop: s } = Je(), u = O(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), v = O(() => {
4432
- const g = Number(n.value);
4433
- return isNaN(g) ? String(n.value) : new Intl.NumberFormat(o, {
4426
+ const n = e, a = t, { t: i } = ye({ useScope: "global" }), o = window.navigator.language, { isMobile: l, isDesktop: s } = Je(), u = O(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), g = O(() => {
4427
+ const v = Number(n.value);
4428
+ return isNaN(v) ? String(n.value) : new Intl.NumberFormat(o, {
4434
4429
  style: "currency",
4435
4430
  currency: n.currency || "USD"
4436
- }).format(g);
4437
- }), b = (g) => {
4438
- g && g.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
4431
+ }).format(v);
4432
+ }), b = (v) => {
4433
+ v && v.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
4439
4434
  };
4440
- return (g, d) => e.editable ? (f(), D(bt, {
4435
+ return (v, d) => e.editable ? (f(), D(bt, {
4441
4436
  key: 0,
4442
4437
  label: e.label || "",
4443
4438
  "field-name": e.fieldName || "",
@@ -4445,17 +4440,17 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4445
4440
  rules: e.rules,
4446
4441
  "validate-on-mount": e.validateOnMount
4447
4442
  }, {
4448
- default: L(({ errors: c, errorMessage: m }) => [
4449
- R(Jo, {
4443
+ default: L(({ errors: c, errorMessage: p }) => [
4444
+ R(Yo, {
4450
4445
  "model-value": e.value,
4451
4446
  options: [],
4452
4447
  option: e.currency || "USD",
4453
4448
  "currency-display": "symbol",
4454
4449
  class: "vc-table-cell-money__input",
4455
4450
  error: c.length > 0,
4456
- "error-message": r(l) ? m : void 0,
4457
- "onUpdate:modelValue": d[0] || (d[0] = (y) => g.$emit("update", { field: e.fieldId || "", value: y })),
4458
- onBlur: (y) => b(c)
4451
+ "error-message": r(l) ? p : void 0,
4452
+ "onUpdate:modelValue": d[0] || (d[0] = (I) => v.$emit("update", { field: e.fieldId || "", value: I })),
4453
+ onBlur: (I) => b(c)
4459
4454
  }, se({ _: 2 }, [
4460
4455
  r(s) && c.length > 0 ? {
4461
4456
  name: "append-inner",
@@ -4470,15 +4465,15 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4470
4465
  ]), 1032, ["model-value", "option", "error", "error-message", "onBlur"])
4471
4466
  ]),
4472
4467
  _: 1
4473
- }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), h("span", ti, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), h("span", ei, M(v.value), 1));
4468
+ }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), y("span", ei, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", _o, M(g.value), 1));
4474
4469
  }
4475
- }), ai = {
4470
+ }), ni = {
4476
4471
  key: 1,
4477
4472
  class: "vc-table-cell-number"
4478
- }, li = {
4473
+ }, ai = {
4479
4474
  key: 2,
4480
4475
  class: "vc-table-cell-number vc-table-cell-number--not-set"
4481
- }, oi = /* @__PURE__ */ V({
4476
+ }, li = /* @__PURE__ */ V({
4482
4477
  __name: "CellNumber",
4483
4478
  props: {
4484
4479
  value: {},
@@ -4499,10 +4494,10 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4499
4494
  }), u = O(() => {
4500
4495
  const b = Number(n.value);
4501
4496
  return isNaN(b) ? String(n.value) : b.toFixed(0);
4502
- }), v = (b) => {
4497
+ }), g = (b) => {
4503
4498
  b && b.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
4504
4499
  };
4505
- return (b, g) => e.editable ? (f(), D(bt, {
4500
+ return (b, v) => e.editable ? (f(), D(bt, {
4506
4501
  key: 0,
4507
4502
  label: e.label || "",
4508
4503
  "field-name": e.fieldName || "",
@@ -4517,8 +4512,8 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4517
4512
  type: "number",
4518
4513
  error: d.length > 0,
4519
4514
  "error-message": r(o) ? c : void 0,
4520
- "onUpdate:modelValue": g[0] || (g[0] = (m) => b.$emit("update", { field: e.fieldId || "", value: m })),
4521
- onBlur: (m) => v(d)
4515
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => b.$emit("update", { field: e.fieldId || "", value: p })),
4516
+ onBlur: (p) => g(d)
4522
4517
  }, se({ _: 2 }, [
4523
4518
  r(l) && d.length > 0 ? {
4524
4519
  name: "append-inner",
@@ -4533,12 +4528,12 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4533
4528
  ]), 1032, ["model-value", "error", "error-message", "onBlur"])
4534
4529
  ]),
4535
4530
  _: 1
4536
- }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), h("span", li, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), h("span", ai, M(u.value), 1));
4531
+ }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), y("span", ai, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ni, M(u.value), 1));
4537
4532
  }
4538
- }), ii = {
4533
+ }), oi = {
4539
4534
  key: 0,
4540
4535
  class: "vc-table-cell-date"
4541
- }, ri = {
4536
+ }, ii = {
4542
4537
  key: 1,
4543
4538
  class: "vc-table-cell-date vc-table-cell-date--not-set"
4544
4539
  }, tt = /* @__PURE__ */ V({
@@ -4556,32 +4551,32 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4556
4551
  const o = t.value instanceof Date ? t.value : new Date(t.value), l = t.variant || "date";
4557
4552
  return l === "time" ? o.toLocaleTimeString(a) : l === "date-time" ? o.toLocaleString(a) : o.toLocaleDateString(a);
4558
4553
  });
4559
- return (o, l) => e.value ? (f(), h("span", ii, M(i.value), 1)) : (f(), h("span", ri, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4554
+ return (o, l) => e.value ? (f(), y("span", oi, M(i.value), 1)) : (f(), y("span", ii, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4560
4555
  }
4561
- }), si = ["title"], ui = {
4556
+ }), ri = ["title"], si = {
4562
4557
  key: 1,
4563
4558
  class: "vc-table-cell-date-ago vc-table-cell-date-ago--not-set"
4564
- }, ci = /* @__PURE__ */ V({
4559
+ }, ui = /* @__PURE__ */ V({
4565
4560
  __name: "CellDateAgo",
4566
4561
  props: {
4567
4562
  value: {}
4568
4563
  },
4569
4564
  setup(e) {
4570
4565
  const t = e, { t: n } = ye({ useScope: "global" }), a = window.navigator.language, i = O(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), o = O(() => t.value ? Xn(t.value) : "");
4571
- return (l, s) => e.value ? (f(), h("span", {
4566
+ return (l, s) => e.value ? (f(), y("span", {
4572
4567
  key: 0,
4573
4568
  class: "vc-table-cell-date-ago",
4574
4569
  title: i.value
4575
- }, M(o.value), 9, si)) : (f(), h("span", ui, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4570
+ }, M(o.value), 9, ri)) : (f(), y("span", si, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4576
4571
  }
4577
- }), di = /* @__PURE__ */ V({
4572
+ }), ci = /* @__PURE__ */ V({
4578
4573
  __name: "CellImage",
4579
4574
  props: {
4580
4575
  value: {},
4581
4576
  emptyIcon: {}
4582
4577
  },
4583
4578
  setup(e) {
4584
- return (t, n) => (f(), D(r(qa), {
4579
+ return (t, n) => (f(), D(r(Ua), {
4585
4580
  class: "vc-table-cell-image",
4586
4581
  bordered: !0,
4587
4582
  size: "s",
@@ -4592,46 +4587,46 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4592
4587
  "thumbnail-size": "sm"
4593
4588
  }, null, 8, ["src", "empty-icon"]));
4594
4589
  }
4595
- }), fi = /* @__PURE__ */ V({
4590
+ }), di = /* @__PURE__ */ V({
4596
4591
  __name: "CellStatus",
4597
4592
  props: {
4598
4593
  value: {}
4599
4594
  },
4600
4595
  setup(e) {
4601
- return (t, n) => (f(), D(r(tl), { class: "vc-table-cell-status" }, {
4596
+ return (t, n) => (f(), D(r(el), { class: "vc-table-cell-status" }, {
4602
4597
  default: L(() => [
4603
4598
  ee(M(e.value), 1)
4604
4599
  ]),
4605
4600
  _: 1
4606
4601
  }));
4607
4602
  }
4608
- }), vi = { class: "vc-table-cell-status-icon" }, gi = /* @__PURE__ */ V({
4603
+ }), fi = { class: "vc-table-cell-status-icon" }, vi = /* @__PURE__ */ V({
4609
4604
  __name: "CellStatusIcon",
4610
4605
  props: {
4611
4606
  value: {}
4612
4607
  },
4613
4608
  setup(e) {
4614
- return (t, n) => (f(), h("div", vi, [
4615
- typeof e.value == "boolean" ? (f(), D(r(al), {
4609
+ return (t, n) => (f(), y("div", fi, [
4610
+ typeof e.value == "boolean" ? (f(), D(r(nl), {
4616
4611
  key: 0,
4617
4612
  status: e.value
4618
4613
  }, null, 8, ["status"])) : w("", !0)
4619
4614
  ]));
4620
4615
  }
4621
- }), mi = /* @__PURE__ */ V({
4616
+ }), gi = /* @__PURE__ */ V({
4622
4617
  __name: "CellLink",
4623
4618
  props: {
4624
4619
  value: {}
4625
4620
  },
4626
4621
  setup(e) {
4627
- return (t, n) => (f(), D(r(Qa), { class: "vc-table-cell-link" }, {
4622
+ return (t, n) => (f(), D(r(Za), { class: "vc-table-cell-link" }, {
4628
4623
  default: L(() => [
4629
4624
  ee(M(e.value), 1)
4630
4625
  ]),
4631
4626
  _: 1
4632
4627
  }));
4633
4628
  }
4634
- }), pi = ["innerHTML"], bi = 500, yi = /* @__PURE__ */ V({
4629
+ }), mi = ["innerHTML"], pi = 500, bi = /* @__PURE__ */ V({
4635
4630
  __name: "CellHtml",
4636
4631
  props: {
4637
4632
  value: {},
@@ -4678,39 +4673,39 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
4678
4673
  FORBID_TAGS: ["script", "object", "embed", "form", "input"],
4679
4674
  FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur", "style"]
4680
4675
  });
4681
- if (n.size >= bi) {
4676
+ if (n.size >= pi) {
4682
4677
  const u = n.keys().next().value;
4683
4678
  u !== void 0 && n.delete(u);
4684
4679
  }
4685
4680
  return n.set(l, s), s;
4686
4681
  }
4687
4682
  const i = O(() => t.value ? a(String(t.value)) : ""), o = O(() => Un(i.value, t.maxLength || 30));
4688
- return (l, s) => (f(), h("div", {
4683
+ return (l, s) => (f(), y("div", {
4689
4684
  class: "vc-table-cell-html",
4690
4685
  innerHTML: o.value
4691
- }, null, 8, pi));
4686
+ }, null, 8, mi));
4692
4687
  }
4693
4688
  }), Jt = [
4694
4689
  { type: "text", component: Yt, config: { editable: !0 } },
4695
- { type: "number", component: oi, config: { editable: !0 } },
4696
- { type: "money", component: ni, config: { editable: !0 } },
4690
+ { type: "number", component: li, config: { editable: !0 } },
4691
+ { type: "money", component: ti, config: { editable: !0 } },
4697
4692
  { type: "date", component: tt, config: { editable: !1 } },
4698
4693
  { type: "time", component: tt, config: { editable: !1 } },
4699
4694
  { type: "datetime", component: tt, config: { editable: !1 } },
4700
- { type: "date-ago", component: ci, config: { editable: !1 } },
4701
- { type: "image", component: di, config: { editable: !1 } },
4702
- { type: "status", component: fi, config: { editable: !1 } },
4703
- { type: "status-icon", component: gi, config: { editable: !1 } },
4704
- { type: "link", component: mi, config: { editable: !1 } },
4705
- { type: "html", component: yi, config: { editable: !1 } }
4706
- ], Lr = Object.freeze(Jt.map((e) => e.type));
4707
- function hi() {
4695
+ { type: "date-ago", component: ui, config: { editable: !1 } },
4696
+ { type: "image", component: ci, config: { editable: !1 } },
4697
+ { type: "status", component: di, config: { editable: !1 } },
4698
+ { type: "status-icon", component: vi, config: { editable: !1 } },
4699
+ { type: "link", component: gi, config: { editable: !1 } },
4700
+ { type: "html", component: bi, config: { editable: !1 } }
4701
+ ], wr = Object.freeze(Jt.map((e) => e.type));
4702
+ function yi() {
4708
4703
  const { register: e, has: t } = Gt();
4709
4704
  for (const n of Jt)
4710
4705
  t(n.type) || e(n);
4711
4706
  }
4712
- hi();
4713
- const Cr = /* @__PURE__ */ V({
4707
+ yi();
4708
+ const Lr = /* @__PURE__ */ V({
4714
4709
  __name: "DynamicCellRenderer",
4715
4710
  props: {
4716
4711
  type: {},
@@ -4739,7 +4734,7 @@ const Cr = /* @__PURE__ */ V({
4739
4734
  onBlur: l[1] || (l[1] = (s) => o.$emit("blur", s))
4740
4735
  }), null, 16));
4741
4736
  }
4742
- }), Tr = V({
4737
+ }), Cr = V({
4743
4738
  name: "SlotProxy",
4744
4739
  props: {
4745
4740
  slotFn: { type: Function, required: !0 },
@@ -4748,130 +4743,129 @@ const Cr = /* @__PURE__ */ V({
4748
4743
  setup(e) {
4749
4744
  return () => e.slotFn(e.scope);
4750
4745
  }
4751
- }), Br = (e, t) => {
4746
+ }), Tr = (e, t) => {
4752
4747
  const n = t.arg ? parseInt(t.arg, 10) : 9e3, a = typeof t.value == "object" ? t.value : { blur: !0 };
4753
4748
  t.value ? (e.classList.add("v-loading"), a.size && e.setAttribute("data-loading-size", a.size), a.color && e.style.setProperty("--v-loading-spinner-color", a.color), a.blur === !1 && e.classList.add("v-loading--no-blur"), a.fullscreen && e.classList.add("v-loading--fullscreen"), e.style.setProperty("--v-loading-z-index", `${n}`)) : (e.classList.remove("v-loading", "v-loading--no-blur", "v-loading--fullscreen"), e.removeAttribute("data-loading-size"), e.style.removeProperty("--v-loading-z-index"), e.style.removeProperty("--v-loading-spinner-color"));
4754
4749
  };
4755
4750
  export {
4756
4751
  Kt as $,
4757
4752
  Dt as A,
4758
- Lr as B,
4759
- Br as C,
4760
- hr as D,
4761
- hi as E,
4762
- Ir as F,
4753
+ wr as B,
4754
+ Tr as C,
4755
+ yr as D,
4756
+ yi as E,
4757
+ hr as F,
4763
4758
  we as G,
4764
4759
  Gt as H,
4765
4760
  Ge as I,
4766
4761
  ra as J,
4767
- Or as K,
4768
- fr as L,
4769
- or as M,
4762
+ Er as K,
4763
+ dr as L,
4764
+ lr as M,
4770
4765
  aa as N,
4771
4766
  ct as O,
4772
4767
  de as P,
4773
4768
  Oe as Q,
4774
4769
  Ke as R,
4775
- er as S,
4770
+ _i as S,
4776
4771
  qn as T,
4777
4772
  lt as U,
4778
4773
  be as V,
4779
4774
  la as W,
4780
4775
  Je as X,
4781
- ur as Y,
4782
- sr as Z,
4776
+ sr as Y,
4777
+ rr as Z,
4783
4778
  tt as _,
4784
4779
  Ca as a,
4785
- Cr as a$,
4786
- gr as a0,
4780
+ $r as a$,
4781
+ vr as a0,
4787
4782
  Ia as a1,
4788
- vl as a2,
4783
+ fl as a2,
4789
4784
  Sa as a3,
4790
4785
  $a as a4,
4791
4786
  Ea as a5,
4792
- Ki as a6,
4787
+ Fi as a6,
4793
4788
  Ie as a7,
4794
- Ma as a8,
4789
+ xa as a8,
4795
4790
  ue as a9,
4796
- Qi as aA,
4797
- pr as aB,
4798
- ar as aC,
4799
- cr as aD,
4800
- nr as aE,
4801
- ir as aF,
4802
- xa as aG,
4803
- rr as aH,
4804
- Xi as aI,
4805
- Gi as aJ,
4806
- Jn as aK,
4807
- Nt as aL,
4808
- Yi as aM,
4809
- wa as aN,
4810
- _i as aO,
4811
- br as aP,
4812
- lr as aQ,
4813
- qi as aR,
4814
- tr as aS,
4815
- Wt as aT,
4816
- yr as aU,
4817
- Xl as aV,
4818
- ia as aW,
4791
+ Zi as aA,
4792
+ mr as aB,
4793
+ nr as aC,
4794
+ ur as aD,
4795
+ or as aE,
4796
+ tr as aF,
4797
+ ir as aG,
4798
+ Ji as aH,
4799
+ Hi as aI,
4800
+ Jn as aJ,
4801
+ Nt as aK,
4802
+ Gi as aL,
4803
+ wa as aM,
4804
+ Qi as aN,
4805
+ pr as aO,
4806
+ ar as aP,
4807
+ Ui as aQ,
4808
+ er as aR,
4809
+ Wt as aS,
4810
+ br as aT,
4811
+ Jl as aU,
4812
+ ia as aV,
4813
+ Ir as aW,
4819
4814
  kr as aX,
4820
4815
  Sr as aY,
4821
- $r as aZ,
4822
- Tr as a_,
4823
- Ui as aa,
4824
- Fi as ab,
4825
- zi as ac,
4826
- Pi as ad,
4827
- vr as ae,
4828
- Hi as af,
4829
- mr as ag,
4816
+ Cr as aZ,
4817
+ Lr as a_,
4818
+ Ki as aa,
4819
+ zi as ab,
4820
+ Pi as ac,
4821
+ Vi as ad,
4822
+ fr as ae,
4823
+ ji as af,
4824
+ gr as ag,
4830
4825
  da as ah,
4831
4826
  ca as ai,
4832
4827
  fa as aj,
4833
4828
  _n as ak,
4834
4829
  Yn as al,
4835
4830
  na as am,
4836
- ji as an,
4831
+ Wi as an,
4837
4832
  ua as ao,
4838
4833
  Xn as ap,
4839
4834
  Zn as aq,
4840
- Wi as ar,
4841
- Ji as as,
4842
- Zi as at,
4835
+ qi as ar,
4836
+ Yi as as,
4837
+ Xi as at,
4843
4838
  ta as au,
4844
4839
  Wn as av,
4845
4840
  ea as aw,
4846
4841
  sa as ax,
4847
4842
  It as ay,
4848
- dr as az,
4849
- ci as b,
4850
- Er as b0,
4851
- Zo as b1,
4852
- oa as b2,
4843
+ cr as az,
4844
+ ui as b,
4845
+ Xo as b0,
4846
+ oa as b1,
4853
4847
  Yt as c,
4854
4848
  bt as d,
4855
- yi as e,
4856
- di as f,
4857
- mi as g,
4858
- ni as h,
4859
- oi as i,
4860
- fi as j,
4861
- gi as k,
4849
+ bi as e,
4850
+ ci as f,
4851
+ gi as g,
4852
+ ti as h,
4853
+ li as i,
4854
+ di as j,
4855
+ vi as k,
4862
4856
  Ra as l,
4863
- Nl as m,
4864
- wr as n,
4865
- Sl as o,
4866
- qa as p,
4857
+ Ml as m,
4858
+ Or as n,
4859
+ kl as o,
4860
+ Ua as p,
4867
4861
  pt as q,
4868
- Jo as r,
4869
- Ho as s,
4862
+ Yo as r,
4863
+ jo as s,
4870
4864
  Xe as t,
4871
- Qa as u,
4872
- ol as v,
4873
- Uo as w,
4865
+ Za as u,
4866
+ ll as v,
4867
+ Ko as w,
4874
4868
  oe as x,
4875
- tl as y,
4876
- al as z
4869
+ el as y,
4870
+ nl as z
4877
4871
  };