@vc-shell/framework 2.5.0-pr345.356b508 → 2.5.0-pr347.0afabd1

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 (19) hide show
  1. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-hu8ZIEZa.js → VcScheduler.vue_vue_type_script_setup_true_lang-Bz7sJCuE.js} +519 -525
  2. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Bz7sJCuE.js.map +1 -0
  3. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js → VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js} +448 -440
  4. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js.map +1 -0
  5. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-gTovzepO.js} +1 -1
  6. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-gTovzepO.js.map} +1 -1
  7. package/dist/dashboard/index.js +1 -1
  8. package/dist/framework.js +9 -9
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  11. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +0 -9
  12. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
  13. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +0 -2
  14. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts.map +1 -1
  15. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
  16. package/dist/ui/index.js +2 -2
  17. package/package.json +4 -4
  18. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-hu8ZIEZa.js.map +0 -1
  19. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { nextTick as $e, ref as B, computed as y, getCurrentInstance as Tt, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as tt, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as oo, provide as Be, createBlock as P, unref as n, withCtx as x, withDirectives as Xe, resolveDynamicComponent as qe, vShow as _t, createCommentVNode as L, toRef as Ie, normalizeClass as X, renderSlot as H, toDisplayString as U, Teleport as gt, createVNode as $, Transition as Fe, normalizeStyle as he, Fragment as J, renderList as ve, createTextVNode as fe, mergeProps as Le, withModifiers as ue, isRef as bt, h as io, withKeys as Ae, createSlots as Ne, markRaw as On, useId as Pt, useSlots as ht, TransitionGroup as Un, toHandlers as Ol, onUnmounted as Rt, hasInjectionContext as so, getCurrentScope as ro, onScopeDispose as zn, useAttrs as Pi, watchEffect as Hn, vModelText as Vi, toRefs as Fi, normalizeProps as ft, guardReactiveProps as mt, vModelCheckbox as Ui, toRaw as co } from "vue";
1
+ import { nextTick as $e, ref as D, computed as y, getCurrentInstance as Tt, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as tt, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as oo, provide as De, createBlock as P, unref as n, withCtx as x, withDirectives as Xe, resolveDynamicComponent as qe, vShow as _t, createCommentVNode as L, toRef as Ie, normalizeClass as X, renderSlot as H, toDisplayString as U, Teleport as gt, createVNode as $, Transition as Fe, normalizeStyle as he, Fragment as J, renderList as ve, createTextVNode as fe, mergeProps as Le, withModifiers as ue, isRef as bt, h as io, withKeys as Ae, createSlots as Ne, markRaw as On, useId as Pt, useSlots as ht, TransitionGroup as Un, toHandlers as Ol, onUnmounted as Rt, hasInjectionContext as so, getCurrentScope as ro, onScopeDispose as zn, useAttrs as Pi, watchEffect as Hn, vModelText as Vi, toRefs as Fi, normalizeProps as ft, guardReactiveProps as mt, vModelCheckbox as Ui, toRaw as co } from "vue";
2
2
  import { ab as zi, c as lt, x as Hi, d as uo, B as al, Q as Wn, P as vo, e as fo, K as mo, _ as le, u as Vt, A as Wi, a as pt, b as po, W as go, h as Gi, L as Mn, t as Ln, n as qi, O as Ki, af as bo, M as Yi, U as Gn, E as ol, z as In, w as ji, a3 as Xi, Z as ho, G as Qi, F as yo, s as Zi, a8 as Ji } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
3
- import { P as St, af as es, aR as ts, a as ls, X as Ve, H as il, l as Se, aP as wo, N as sl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as Pl, Q as wt, a0 as ss, aS as rs, I as Ot, V as Ze, ap as cs, u as us, aT as ds, ak as Co, aU as vs, aV as fs, au as _o, aN as ko, O as Vl, aO as ms, q as Pe, v as $t, E as Eo, p as ps, Y as gs, y as bs, az as hs, C as ys, w as Ct, s as ws, aW as Fl, K as So, aX as $o, aY as Ro, aZ as ll, a_ as Ao, a$ as Cs, A as To, n as _s, o as pn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
3
+ import { P as St, af as es, aR as ts, a as ls, X as Ve, H as il, l as Se, aP as wo, N as sl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as Pl, Q as wt, a0 as ss, aS as rs, I as Ot, V as Ze, ap as cs, u as us, aT as ds, ak as Co, aU as vs, aV as fs, au as _o, aN as ko, O as Vl, aO as ms, q as Pe, v as $t, E as Eo, p as ps, Y as gs, y as bs, az as hs, C as ys, w as Ct, s as ws, aW as Fl, K as So, aX as $o, aY as Ro, aZ as ll, a_ as Ao, a$ as Cs, A as To, n as _s, o as pn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js";
4
4
  import { q as Ft, p as gn, o as ks, n as Ml, r as Es, m as xn, v as Al, t as Oo, f as qn, w as Ss, _ as $s } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
5
5
  import { u as ze } from "./vendor-vue-i18n-LO-EJStU.js";
6
6
  import { s as Ul, f as Kn, o as Yn, d as Rs } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
@@ -12,8 +12,8 @@ import Ls from "../assets/1ea01de36eb5491b.svg";
12
12
  import Is from "../assets/d5a5b8630120073d.svg";
13
13
  import xs from "../assets/6798e4dd4add9b48.svg";
14
14
  import Ns from "../assets/2d4e6190eec72737.svg";
15
- import Bs from "../assets/9392bf1d591e1abb.svg";
16
- import Ds from "../assets/204eaf512fde2023.svg";
15
+ import Ds from "../assets/9392bf1d591e1abb.svg";
16
+ import Bs from "../assets/204eaf512fde2023.svg";
17
17
  import Ps from "../assets/0ba156439a339f2a.svg";
18
18
  import Vs from "../assets/2857c513073467da.svg";
19
19
  import Fs from "../assets/b645a4a2181b9dc1.svg";
@@ -66,7 +66,7 @@ import Lr from "../assets/d3f792f54ae4c307.svg";
66
66
  import Ir from "../assets/208f810a9321a327.svg";
67
67
  import xr from "../assets/72de3a63bc0b70dd.svg";
68
68
  import * as Nr from "vee-validate";
69
- import { useField as Br, useForm as Mo, useIsFormValid as Dr, useIsFormDirty as Pr, Field as Tl, PublicFormContextKey as Vr } from "vee-validate";
69
+ import { useField as Dr, useForm as Mo, useIsFormValid as Br, useIsFormDirty as Pr, Field as Tl, PublicFormContextKey as Vr } from "vee-validate";
70
70
  import { I as Fr } from "./vendor-iso-639-1-BEjYyfKo.js";
71
71
  import { u as Ur, E as _a } from "./vendor-tiptap-vue-3-BNAw8onj.js";
72
72
  import { S as zr } from "./vendor-tiptap-starter-kit-ny-AoaO_.js";
@@ -80,7 +80,7 @@ import { M as Zr } from "./vendor-tiptap-markdown-18K1hcU0.js";
80
80
  import { b as Jr } from "./vendor-js-beautify-D-6mWVv0.js";
81
81
  import { p as Lo } from "./vendor-dompurify-DpIUMBYC.js";
82
82
  import { S as Ll, N as Io, a as Il, M as ec, f as xo, G as tc, K as lc } from "./vendor-swiper-BgqGfw3Y.js";
83
- import { h as No, d as Bo, o as nc, u as ac, a as zl, i as oc } from "./vendor-vueuse-core-_wFDcFkI.js";
83
+ import { h as No, d as Do, o as nc, u as ac, a as zl, i as oc } from "./vendor-vueuse-core-_wFDcFkI.js";
84
84
  import { useRouter as Ut, RouterView as ic, useRoute as zt } from "vue-router";
85
85
  import { v as rl, O as sc } from "./vendor-vueuse-components-B3XvEasa.js";
86
86
  import { u as rc, j as cc } from "./vendor-vueuse-shared-CiuC98Kk.js";
@@ -88,10 +88,10 @@ import { l as uc, s as dc } from "./vendor-vee-validate-i18n-zT8NxX3R.js";
88
88
  import "./vendor-cypress-signalr-mock-itnm2wpA.js";
89
89
  import "./ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
90
90
  import { e as vc, c as ka, g as jn } from "./vendor-lodash-es-D2n90GJy.js";
91
- import { S as Do } from "./vendor-sortablejs-Bsvu-FKn.js";
91
+ import { S as Bo } from "./vendor-sortablejs-Bsvu-FKn.js";
92
92
  import "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
93
93
  import "./vendor-truncate-html-ChA1T5zy.js";
94
- import { h as Te, U as Po, V as Hl, W as Ge, d as Bt, J as et, x as At, z as Wl, a as fc, X as Xn, Y as Vo, Z as mc, _ as pc, w as Fo, y as Uo, $ as gc, a0 as bc } from "./vendor-date-fns-C-55OMpS.js";
94
+ import { h as Te, U as Po, V as Hl, W as Ge, d as Dt, J as et, x as At, z as Wl, a as fc, X as Xn, Y as Vo, Z as mc, _ as pc, w as Fo, y as Uo, $ as gc, a0 as bc } from "./vendor-date-fns-C-55OMpS.js";
95
95
  import { r as Qn, R as je } from "./vendor-rrule-C4g_KGmu.js";
96
96
  import { S as hc, Y as yc, h as Ea, G as wc, V as Cc } from "./vendor-headlessui-vue-Cn-RMs4E.js";
97
97
  function Nn(e) {
@@ -172,38 +172,38 @@ function Tc() {
172
172
  }
173
173
  const Sa = lt("notification-store");
174
174
  function Oc(e) {
175
- const a = /* @__PURE__ */ new Map(), t = B([]), l = B([]), r = /* @__PURE__ */ new Map();
175
+ const a = /* @__PURE__ */ new Map(), t = D([]), l = D([]), r = /* @__PURE__ */ new Map();
176
176
  let i = 0;
177
- const o = B(null), c = Tc().handle, d = new zi(), u = y(() => t.value.filter((I) => I.isNew).length), v = y(() => u.value > 0);
177
+ const o = D(null), c = Tc().handle, d = new zi(), u = y(() => t.value.filter((I) => I.isNew).length), v = y(() => u.value > 0);
178
178
  function b(I, V) {
179
179
  a.set(I, V);
180
180
  }
181
181
  function p(I, V) {
182
182
  if (V?.broadcast && o.value && !o.value(I) || I.notifyType && Sc.includes(I.notifyType))
183
183
  return;
184
- let D = I.isNew;
184
+ let B = I.isNew;
185
185
  const O = t.value.findIndex((A) => A.id === I.id);
186
186
  if (O !== -1) {
187
187
  const A = t.value[O];
188
- D = A.isNew, Object.assign(A, I), A.isNew = D;
188
+ B = A.isNew, Object.assign(A, I), A.isNew = B;
189
189
  } else
190
190
  t.value.push({ ...I });
191
191
  const M = l.value.findIndex((A) => A.id === I.id);
192
192
  if (M !== -1) {
193
193
  const A = l.value[M];
194
- Object.assign(A, I), A.isNew = D;
194
+ Object.assign(A, I), A.isNew = B;
195
195
  } else
196
196
  l.value.push({ ...I });
197
197
  const R = I.notifyType ? a.get(I.notifyType) : void 0;
198
- if (R && D && c(I, R), D && I.notifyType)
198
+ if (R && B && c(I, R), B && I.notifyType)
199
199
  for (const A of r.values())
200
200
  A.types.includes(I.notifyType) && (A.filter && !A.filter(I) || A.handler?.(I));
201
201
  }
202
202
  function m(I) {
203
203
  const V = t.value.find((O) => O.id === I.id);
204
204
  V && (V.isNew = !1);
205
- const D = l.value.find((O) => O.id === I.id);
206
- D && (D.isNew = !1);
205
+ const B = l.value.find((O) => O.id === I.id);
206
+ B && (B.isNew = !1);
207
207
  }
208
208
  async function h() {
209
209
  t.value.forEach((I) => {
@@ -219,8 +219,8 @@ function Oc(e) {
219
219
  }
220
220
  async function f(I = 10) {
221
221
  try {
222
- const V = { take: I }, D = await d.searchPushNotification(V);
223
- t.value = D.notifyEvents ?? [];
222
+ const V = { take: I }, B = await d.searchPushNotification(V);
223
+ t.value = B.notifyEvents ?? [];
224
224
  } catch (V) {
225
225
  throw Sa.error("loadHistory failed:", V), V;
226
226
  }
@@ -368,7 +368,7 @@ function Nc(e) {
368
368
  const a = e.currentRoute.value.params;
369
369
  return Object.values(a).find((t) => typeof t == "string" && t) || "";
370
370
  }
371
- function Bc(e, a) {
371
+ function Dc(e, a) {
372
372
  let t = 0;
373
373
  function l(r) {
374
374
  if (t > 0) return;
@@ -393,7 +393,7 @@ function Bc(e, a) {
393
393
  };
394
394
  }
395
395
  function Ho(e, a) {
396
- const t = Bc(e, () => a);
396
+ const t = Dc(e, () => a);
397
397
  function l() {
398
398
  t.push();
399
399
  }
@@ -402,7 +402,7 @@ function Ho(e, a) {
402
402
  }
403
403
  return { syncUrlPush: l, syncUrlReplace: r };
404
404
  }
405
- const Dc = 150;
405
+ const Bc = 150;
406
406
  function Pc(e) {
407
407
  if (e)
408
408
  return e.replace(/^\/+|\/+$/g, "") || void 0;
@@ -427,7 +427,7 @@ function Vc(e) {
427
427
  for (const [h, f] of i)
428
428
  l.updateBladeQuery(m, $a(h, f));
429
429
  i.clear(), r();
430
- }, Dc));
430
+ }, Bc));
431
431
  }
432
432
  return { read: d, write: u };
433
433
  }
@@ -473,7 +473,7 @@ function Zn(e) {
473
473
  moreButtonWidth: r,
474
474
  calculationStrategy: i = "forward",
475
475
  initialItemWidth: o = 50
476
- } = e, { width: c } = No(a), d = B(/* @__PURE__ */ new Map()), u = B(null), v = B(0), b = B([]), p = B([]), m = y(() => p.value.length > 0);
476
+ } = e, { width: c } = No(a), d = D(/* @__PURE__ */ new Map()), u = D(null), v = D(0), b = D([]), p = D([]), m = y(() => p.value.length > 0);
477
477
  let h = null;
478
478
  const f = /* @__PURE__ */ new Set(), k = () => u.value ?? r, C = () => {
479
479
  if (!a.value) return;
@@ -516,7 +516,7 @@ function Zn(e) {
516
516
  E > 0 && d.value.set(_, E);
517
517
  }
518
518
  }), I();
519
- }, D = () => {
519
+ }, B = () => {
520
520
  const R = new Set(t.value.map(l));
521
521
  for (const A of d.value.keys())
522
522
  R.has(A) || d.value.delete(A);
@@ -555,7 +555,7 @@ function Zn(e) {
555
555
  }), oe(
556
556
  () => t.value.map(l).join("\0"),
557
557
  () => {
558
- D(), $e(() => {
558
+ B(), $e(() => {
559
559
  O();
560
560
  });
561
561
  }
@@ -579,11 +579,11 @@ function Zn(e) {
579
579
  };
580
580
  }
581
581
  function Kl(e = {}) {
582
- const a = e.collapsedHeight ?? 0, t = e.maxExpandedHeight, l = B(), r = B(0), i = B(e.expanded ?? !1), o = y(() => r.value > a), c = y(() => t !== void 0 && r.value > t), d = y(() => i.value ? t !== void 0 && r.value > t ? { maxHeight: `${t}px` } : { maxHeight: `${r.value}px` } : { maxHeight: a > 0 ? `${a}px` : "0px" });
582
+ const a = e.collapsedHeight ?? 0, t = e.maxExpandedHeight, l = D(), r = D(0), i = D(e.expanded ?? !1), o = y(() => r.value > a), c = y(() => t !== void 0 && r.value > t), d = y(() => i.value ? t !== void 0 && r.value > t ? { maxHeight: `${t}px` } : { maxHeight: `${r.value}px` } : { maxHeight: a > 0 ? `${a}px` : "0px" });
583
583
  function u() {
584
584
  i.value = !i.value;
585
585
  }
586
- return Bo(l, () => {
586
+ return Do(l, () => {
587
587
  l.value && (r.value = l.value.scrollHeight);
588
588
  }), {
589
589
  contentRef: l,
@@ -597,7 +597,7 @@ function Kl(e = {}) {
597
597
  }
598
598
  const Uc = lt("use-table-sort");
599
599
  function $S(e) {
600
- const a = B(e?.initialProperty || null), t = B(e?.initialDirection || null), l = y({
600
+ const a = D(e?.initialProperty || null), t = D(e?.initialDirection || null), l = y({
601
601
  get: () => ({
602
602
  property: a.value,
603
603
  direction: t.value
@@ -635,7 +635,7 @@ function RS(e) {
635
635
  return a(f);
636
636
  const k = f[a];
637
637
  return typeof k == "string" ? k : void 0;
638
- }, l = B([]), r = B(!1), i = y(() => l.value.flatMap((f) => {
638
+ }, l = D([]), r = D(!1), i = y(() => l.value.flatMap((f) => {
639
639
  const k = t(f);
640
640
  return k ? [k] : [];
641
641
  })), o = y(() => l.value.length), c = y(() => l.value.length > 0), d = y(() => new Set(i.value));
@@ -678,7 +678,7 @@ function Hc(e) {
678
678
  if (e === -1) return "DESC";
679
679
  }
680
680
  function AS(e) {
681
- const a = e?.initialField, t = zc(e?.initialDirection), l = B(a), r = B(t), i = y(() => {
681
+ const a = e?.initialField, t = zc(e?.initialDirection), l = D(a), r = D(t), i = y(() => {
682
682
  const c = Hc(r.value);
683
683
  if (!(!l.value || !c))
684
684
  return `${l.value}:${c}`;
@@ -705,7 +705,7 @@ function AS(e) {
705
705
  }
706
706
  const Ta = lt("use-data-table-pagination");
707
707
  function TS(e) {
708
- const a = y(() => xe(e.pageSize) ?? 20), t = B(1), l = y(() => Math.ceil(xe(e.totalCount) / a.value) || 0), r = y(() => (t.value - 1) * a.value), i = y(() => xe(e.totalCount));
708
+ const a = y(() => xe(e.pageSize) ?? 20), t = D(1), l = y(() => Math.ceil(xe(e.totalCount) / a.value) || 0), r = y(() => (t.value - 1) * a.value), i = y(() => xe(e.totalCount));
709
709
  function o(b) {
710
710
  t.value = b, e.onPageChange?.({ page: b, skip: r.value });
711
711
  }
@@ -750,7 +750,7 @@ function TS(e) {
750
750
  });
751
751
  }
752
752
  function OS(e) {
753
- const a = B(e?.initial), t = e?.stateKey;
753
+ const a = D(e?.initial), t = e?.stateKey;
754
754
  if (t) {
755
755
  const l = Ce(ql, void 0);
756
756
  if (l) {
@@ -797,14 +797,14 @@ function MS(e) {
797
797
  (!V || V !== h) && (V && V !== h && yn.warn(
798
798
  `Global component '${v}' already exists and is different. Overwriting with new blade component.`
799
799
  ), e.component(v, h));
800
- const D = {
800
+ const B = {
801
801
  component: h,
802
802
  route: f,
803
803
  isWorkspace: k,
804
804
  routable: C,
805
805
  permissions: S
806
806
  };
807
- I.set(v, D), a.value = I, f && t.set(l(f), v), f && T && es({
807
+ I.set(v, B), a.value = I, f && t.set(l(f), v), f && T && es({
808
808
  ...T,
809
809
  url: f,
810
810
  routeId: v,
@@ -868,22 +868,22 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
868
868
  },
869
869
  emits: ["close", "parentCall"],
870
870
  setup(e, { emit: a }) {
871
- const t = e, l = a, r = Kc(), i = Ft(), o = i.getMaximizedRef(t.descriptor.id), c = B([]), d = B(), u = y(() => r.getBladeComponent(t.descriptor.name)), v = y(() => i.trailFor?.(t.descriptor.id) ?? t.breadcrumbs);
872
- Be(
871
+ const t = e, l = a, r = Kc(), i = Ft(), o = i.getMaximizedRef(t.descriptor.id), c = D([]), d = D(), u = y(() => r.getBladeComponent(t.descriptor.name)), v = y(() => i.trailFor?.(t.descriptor.id) ?? t.breadcrumbs);
872
+ De(
873
873
  al,
874
874
  y(() => t.descriptor)
875
- ), Be(
875
+ ), De(
876
876
  Wn,
877
877
  y(() => ({
878
878
  maximized: o.value,
879
879
  breadcrumbs: v.value
880
880
  }))
881
- ), Be(vo, o), Be(fo, c), Be(
881
+ ), De(vo, o), De(fo, c), De(
882
882
  mo,
883
883
  y(() => t.backButton)
884
884
  );
885
885
  const b = Ut();
886
- Be(
886
+ De(
887
887
  ql,
888
888
  b ? Vc({
889
889
  descriptor: y(() => t.descriptor),
@@ -950,7 +950,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
950
950
  },
951
951
  setup(e) {
952
952
  const a = e;
953
- Be(ls, {
953
+ De(ls, {
954
954
  size: Ie(a, "size"),
955
955
  attached: Ie(a, "attached")
956
956
  });
@@ -1055,7 +1055,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
1055
1055
  },
1056
1056
  emits: ["update:modelValue", "item-click", "open", "close"],
1057
1057
  setup(e, { emit: a }) {
1058
- const t = e, l = a, o = `vc-dropdown-${Tt()?.uid ?? Math.round(Math.random() * 1e4)}`, { isMobile: c } = Ve(), d = B(null), u = B(null), v = B(-1), { teleportTarget: b } = Vt({
1058
+ const t = e, l = a, o = `vc-dropdown-${Tt()?.uid ?? Math.round(Math.random() * 1e4)}`, { isMobile: c } = Ve(), d = D(null), u = D(null), v = D(-1), { teleportTarget: b } = Vt({
1059
1059
  to: y(() => t.teleportTo)
1060
1060
  }), p = y(() => t.teleport ?? t.floating), m = y({
1061
1061
  get: () => t.modelValue,
@@ -1078,7 +1078,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
1078
1078
  left: `${h.value ?? 0}px`,
1079
1079
  zIndex: t.zIndex,
1080
1080
  width: "max-content"
1081
- } : {}), I = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), V = y(() => t.role === "listbox" ? "option" : "menuitem"), D = y(() => {
1081
+ } : {}), I = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), V = y(() => t.role === "listbox" ? "option" : "menuitem"), B = y(() => {
1082
1082
  if (!(v.value < 0 || v.value >= t.items.length))
1083
1083
  return R(v.value);
1084
1084
  }), O = [
@@ -1213,7 +1213,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
1213
1213
  }),
1214
1214
  role: e.role,
1215
1215
  "aria-label": e.ariaLabel,
1216
- "aria-activedescendant": D.value,
1216
+ "aria-activedescendant": B.value,
1217
1217
  tabindex: "0",
1218
1218
  onKeydown: Z
1219
1219
  }, [
@@ -1309,7 +1309,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
1309
1309
  collapsed: { type: Boolean, default: !1 }
1310
1310
  },
1311
1311
  setup(e) {
1312
- const a = e, t = B(null), l = B(!1), r = Zn({
1312
+ const a = e, t = D(null), l = D(!1), r = Zn({
1313
1313
  containerRef: t,
1314
1314
  items: Ie(a, "items"),
1315
1315
  getItemKey: (b) => b.id,
@@ -1402,7 +1402,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
1402
1402
  onBack: { type: Function }
1403
1403
  },
1404
1404
  setup(e) {
1405
- const a = e, t = B(), l = B(!1), r = () => {
1405
+ const a = e, t = D(), l = D(!1), r = () => {
1406
1406
  a.onBack();
1407
1407
  };
1408
1408
  nc(
@@ -1585,9 +1585,9 @@ const yu = ["aria-label"], wu = {
1585
1585
  i();
1586
1586
  });
1587
1587
  });
1588
- const o = y(() => t.blades.value), c = y(() => t.activeBlade.value), d = y(() => o.value.find((D) => t.isMaximized(D.id))?.id), u = y(() => o.value.length > 0), v = y(() => o.value.filter((D) => D.visible).length), { isMobile: b } = Ve(), p = Ce(Wi, void 0), m = y(() => p?.isExpanded.value ?? !1), h = y(() => b.value || m.value ? 1 : 2);
1589
- function f(D, O) {
1590
- return D.visible ? O >= v.value - h.value : !1;
1588
+ const o = y(() => t.blades.value), c = y(() => t.activeBlade.value), d = y(() => o.value.find((B) => t.isMaximized(B.id))?.id), u = y(() => o.value.length > 0), v = y(() => o.value.filter((B) => B.visible).length), { isMobile: b } = Ve(), p = Ce(Wi, void 0), m = y(() => p?.isExpanded.value ?? !1), h = y(() => b.value || m.value ? 1 : 2);
1589
+ function f(B, O) {
1590
+ return B.visible ? O >= v.value - h.value : !1;
1591
1591
  }
1592
1592
  const { getToolbarItems: k } = wo(), { hasAccess: C } = sl(), S = bu({
1593
1593
  isMac: Es(),
@@ -1598,28 +1598,28 @@ const yu = ["aria-label"], wu = {
1598
1598
  t.activeBlade.value,
1599
1599
  typeof document < "u" ? document.activeElement : null
1600
1600
  ),
1601
- getToolbarItems: (D) => k(D),
1601
+ getToolbarItems: (B) => k(B),
1602
1602
  isMobile: () => b.value,
1603
- isEnabled: (D) => C(D.permissions) && Jn(D.isVisible) && !Xl(D.disabled),
1604
- closeBlade: (D) => t.closeBlade(D),
1605
- toggleMaximized: (D) => t.toggleMaximized(D),
1603
+ isEnabled: (B) => C(B.permissions) && Jn(B.isVisible) && !Xl(B.disabled),
1604
+ closeBlade: (B) => t.closeBlade(B),
1605
+ toggleMaximized: (B) => t.toggleMaximized(B),
1606
1606
  isModalOpen: () => typeof document < "u" && document.querySelector('[aria-modal="true"]') !== null
1607
1607
  });
1608
1608
  ac(window, "keydown", S);
1609
- async function T(D) {
1610
- await t.closeBlade(D);
1609
+ async function T(B) {
1610
+ await t.closeBlade(B);
1611
1611
  }
1612
- async function I(D, O) {
1612
+ async function I(B, O) {
1613
1613
  try {
1614
- const M = await l.callParent(O, D.method, D.args);
1615
- D.callback?.(M);
1614
+ const M = await l.callParent(O, B.method, B.args);
1615
+ B.callback?.(M);
1616
1616
  } catch (M) {
1617
1617
  console.warn("[VcBladeNavigation] Parent call failed:", M);
1618
1618
  }
1619
1619
  }
1620
- function V(D) {
1621
- const O = o.value[D];
1622
- if (!(D <= 0 || !O))
1620
+ function V(B) {
1621
+ const O = o.value[B];
1622
+ if (!(B <= 0 || !O))
1623
1623
  return io(fu, {
1624
1624
  breadcrumbs: t.trailFor(O.id),
1625
1625
  onBack: async () => {
@@ -1627,7 +1627,7 @@ const yu = ["aria-label"], wu = {
1627
1627
  }
1628
1628
  });
1629
1629
  }
1630
- return (D, O) => (s(), g("div", {
1630
+ return (B, O) => (s(), g("div", {
1631
1631
  class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
1632
1632
  role: "region",
1633
1633
  "aria-label": n(a)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
@@ -1680,7 +1680,7 @@ const ku = { class: "vc-popup__center" }, Eu = ["aria-label"], Su = { class: "vc
1680
1680
  },
1681
1681
  emits: ["close", "update:modelValue"],
1682
1682
  setup(e, { emit: a }) {
1683
- const t = e, l = a, i = `vc-popup-title-${Tt()?.uid ?? 0}`, { isMobile: o } = Ve(), c = B(null), d = {
1683
+ const t = e, l = a, i = `vc-popup-title-${Tt()?.uid ?? 0}`, { isMobile: o } = Ve(), c = D(null), d = {
1684
1684
  warning: { icon: "lucide-triangle-alert", className: "vc-popup__icon--warning" },
1685
1685
  error: { icon: "lucide-circle-alert", className: "vc-popup__icon--error" },
1686
1686
  success: { icon: "lucide-circle-check", className: "vc-popup__icon--success" },
@@ -1703,7 +1703,7 @@ const ku = { class: "vc-popup__center" }, Eu = ["aria-label"], Su = { class: "vc
1703
1703
  appear: "",
1704
1704
  show: v.value,
1705
1705
  as: "template",
1706
- onAfterLeave: V[0] || (V[0] = (D) => n(u)?.finalize())
1706
+ onAfterLeave: V[0] || (V[0] = (B) => n(u)?.finalize())
1707
1707
  }, {
1708
1708
  default: x(() => [
1709
1709
  $(n(yc), {
@@ -1848,7 +1848,7 @@ const Au = /* @__PURE__ */ Q({
1848
1848
  emits: ["finalize"],
1849
1849
  setup(e, { emit: a }) {
1850
1850
  const t = e, l = a;
1851
- return Be(qo, {
1851
+ return De(qo, {
1852
1852
  closing: y(() => t.closing),
1853
1853
  finalize: () => l("finalize")
1854
1854
  }), (r, i) => H(r.$slots, "default");
@@ -1989,43 +1989,43 @@ function jo(e) {
1989
1989
  l.set(T, V);
1990
1990
  }
1991
1991
  function m(S, T, I, V) {
1992
- const D = C({
1992
+ const B = C({
1993
1993
  component: S,
1994
1994
  props: {
1995
1995
  title: T
1996
1996
  },
1997
1997
  emits: {
1998
1998
  onClose() {
1999
- p(D);
1999
+ p(B);
2000
2000
  }
2001
2001
  },
2002
2002
  slots: {
2003
2003
  default: xa(I, V)
2004
2004
  }
2005
2005
  });
2006
- return c(D), D;
2006
+ return c(B), B;
2007
2007
  }
2008
2008
  function h(S, T) {
2009
2009
  const I = wn("warning");
2010
2010
  return I ? new Promise((V) => {
2011
- const D = C({
2011
+ const B = C({
2012
2012
  component: I,
2013
2013
  props: {
2014
2014
  title: a("COMPONENTS.ORGANISMS.VC_POPUP.TITLE.CONFIRMATION")
2015
2015
  },
2016
2016
  emits: {
2017
2017
  onClose() {
2018
- V(!1), p(D);
2018
+ V(!1), p(B);
2019
2019
  },
2020
2020
  onConfirm() {
2021
- V(!0), p(D);
2021
+ V(!0), p(B);
2022
2022
  }
2023
2023
  },
2024
2024
  slots: {
2025
2025
  default: xa(S, T)
2026
2026
  }
2027
2027
  });
2028
- c(D);
2028
+ c(B);
2029
2029
  }) : (Cn.error("Popup preset 'warning' not registered. Ensure shell popup plugin is installed."), Promise.resolve(!1));
2030
2030
  }
2031
2031
  function f(S, T) {
@@ -2078,10 +2078,10 @@ function xu(e) {
2078
2078
  component: On(oo(e.component))
2079
2079
  };
2080
2080
  }
2081
- const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2081
+ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2082
2082
  key: 1,
2083
2083
  class: "vc-blade-header__icon"
2084
- }, Du = {
2084
+ }, Bu = {
2085
2085
  key: 2,
2086
2086
  class: "vc-blade-header__icon"
2087
2087
  }, Pu = { class: "vc-blade-header__wrapper" }, Vu = {
@@ -2109,10 +2109,10 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2109
2109
  },
2110
2110
  emits: ["close", "expand", "collapse"],
2111
2111
  setup(e, { emit: a }) {
2112
- const t = e, l = a, { t: r } = ze(), { isMac: i } = Oo(), o = y(() => xn(Ml.escape, i)), c = y(() => xn(Ml.mod.backslash, i)), d = y(() => o.value.aria), u = y(() => c.value.aria), { isMobile: v } = Ve(), b = Ce(Wn, void 0), p = B(!1), m = B(null), h = B(null), { teleportTarget: f } = Vt(), { floatingStyle: k } = il(m, h, {
2112
+ const t = e, l = a, { t: r } = ze(), { isMac: i } = Oo(), o = y(() => xn(Ml.escape, i)), c = y(() => xn(Ml.mod.backslash, i)), d = y(() => o.value.aria), u = y(() => c.value.aria), { isMobile: v } = Ve(), b = Ce(Wn, void 0), p = D(!1), m = D(null), h = D(null), { teleportTarget: f } = Vt(), { floatingStyle: k } = il(m, h, {
2113
2113
  placement: "bottom-start",
2114
2114
  middleware: () => [Ul()]
2115
- }), C = B(null);
2115
+ }), C = D(null);
2116
2116
  function S() {
2117
2117
  C.value?.contains(document.activeElement) && requestAnimationFrame(() => {
2118
2118
  C.value?.querySelector("[data-blade-expand-control]")?.focus();
@@ -2127,12 +2127,12 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2127
2127
  function V() {
2128
2128
  t.closable && l("close");
2129
2129
  }
2130
- return (D, O) => (s(), g("div", {
2130
+ return (B, O) => (s(), g("div", {
2131
2131
  class: X(["vc-blade-header", {
2132
2132
  "vc-blade-header--mobile": n(v)
2133
2133
  }])
2134
2134
  }, [
2135
- H(D.$slots, "prepend"),
2135
+ H(B.$slots, "prepend"),
2136
2136
  w("div", Nu, [
2137
2137
  !e.loading && typeof e.modified < "u" ? (s(), g("div", {
2138
2138
  key: 0,
@@ -2152,16 +2152,16 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2152
2152
  ref: h,
2153
2153
  style: he(n(k)),
2154
2154
  class: "vc-blade-header__tooltip"
2155
- }, U(e.modified ? D.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.UNSAVED_CHANGES") : D.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.NO_CHANGES")), 5)) : L("", !0)
2155
+ }, U(e.modified ? B.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.UNSAVED_CHANGES") : B.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.NO_CHANGES")), 5)) : L("", !0)
2156
2156
  ], 8, ["to"]))
2157
2157
  ], 34)) : L("", !0),
2158
- e.loading ? (s(), g("div", Bu, [
2158
+ e.loading ? (s(), g("div", Du, [
2159
2159
  $(n(we), {
2160
2160
  variant: "circle",
2161
2161
  width: 24,
2162
2162
  height: 24
2163
2163
  })
2164
- ])) : e.icon ? (s(), g("div", Du, [
2164
+ ])) : e.icon ? (s(), g("div", Bu, [
2165
2165
  $(n(le), {
2166
2166
  icon: e.icon,
2167
2167
  size: "xxl"
@@ -2190,8 +2190,8 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2190
2190
  }, U(e.title), 11, zu),
2191
2191
  e.subtitle ? (s(), g("div", Hu, U(e.subtitle), 1)) : L("", !0)
2192
2192
  ])),
2193
- !e.loading && D.$slots.actions ? (s(), g("div", Wu, [
2194
- H(D.$slots, "actions")
2193
+ !e.loading && B.$slots.actions ? (s(), g("div", Wu, [
2194
+ H(B.$slots, "actions")
2195
2195
  ])) : L("", !0)
2196
2196
  ]),
2197
2197
  !n(v) && e.closable ? (s(), g("div", {
@@ -2415,7 +2415,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2415
2415
  },
2416
2416
  emits: ["header:click", "state:collapsed"],
2417
2417
  setup(e, { emit: a }) {
2418
- const t = Qe(), l = e, r = a, i = `vc-card-body-${Pt()}`, o = B();
2418
+ const t = Qe(), l = e, r = a, i = `vc-card-body-${Pt()}`, o = D();
2419
2419
  function c() {
2420
2420
  l.isCollapsable && (o.value = !o.value, r("state:collapsed", o.value)), r("header:click");
2421
2421
  }
@@ -2507,7 +2507,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2507
2507
  H(a.$slots, "default")
2508
2508
  ], 4));
2509
2509
  }
2510
- }), BS = os, ud = ["aria-busy"], dd = { class: "tw-sr-only" }, vd = /* @__PURE__ */ Q({
2510
+ }), DS = os, ud = ["aria-busy"], dd = { class: "tw-sr-only" }, vd = /* @__PURE__ */ Q({
2511
2511
  __name: "vc-loading",
2512
2512
  props: {
2513
2513
  active: { type: Boolean }
@@ -2552,7 +2552,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2552
2552
  }, null, 4)
2553
2553
  ], 10, md));
2554
2554
  }
2555
- }), DS = pd, gd = { class: "vc-row" }, PS = /* @__PURE__ */ Q({
2555
+ }), BS = pd, gd = { class: "vc-row" }, PS = /* @__PURE__ */ Q({
2556
2556
  __name: "vc-row",
2557
2557
  setup(e) {
2558
2558
  return (a, t) => (s(), g("div", gd, [
@@ -2794,7 +2794,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2794
2794
  w("span", Id, U(e.name), 1)
2795
2795
  ], 10, Ld));
2796
2796
  }
2797
- }), Nd = ["aria-label"], Bd = ["aria-hidden"], Dd = ["disabled", "aria-label", "tabindex", "onClick"], Pd = { class: "vc-blade-toolbar-mobile__action-label" }, Vd = {
2797
+ }), Nd = ["aria-label"], Dd = ["aria-hidden"], Bd = ["disabled", "aria-label", "tabindex", "onClick"], Pd = { class: "vc-blade-toolbar-mobile__action-label" }, Vd = {
2798
2798
  class: "vc-blade-toolbar-mobile__action-icon",
2799
2799
  "aria-hidden": "true"
2800
2800
  }, Fd = ["aria-label"], Ud = {
@@ -2806,7 +2806,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2806
2806
  items: {}
2807
2807
  },
2808
2808
  setup(e) {
2809
- const a = e, t = B(!1);
2809
+ const a = e, t = D(!1);
2810
2810
  function l(b) {
2811
2811
  return b.title ? bt(b.title) ? xe(b.title) ?? "" : String(b.title) : "";
2812
2812
  }
@@ -2869,8 +2869,8 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2869
2869
  size: "s"
2870
2870
  }, null, 8, ["icon"])
2871
2871
  ])
2872
- ], 12, Dd))), 128))
2873
- ], 10, Bd),
2872
+ ], 12, Bd))), 128))
2873
+ ], 10, Dd),
2874
2874
  $(Fe, {
2875
2875
  name: "toolbar-mobile-fab",
2876
2876
  mode: "out-in"
@@ -2937,7 +2937,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2937
2937
  onClick: {}
2938
2938
  },
2939
2939
  setup(e) {
2940
- const a = e, { isMac: t } = Oo(), l = B(!1), r = y(() => Xl(a.disabled)), i = y(() => ({
2940
+ const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() => Xl(a.disabled)), i = y(() => ({
2941
2941
  "vc-blade-toolbar-base-button--disabled": r.value || l.value,
2942
2942
  "vc-blade-toolbar-base-button--with-separator-left": a.separator === "left",
2943
2943
  "vc-blade-toolbar-base-button--with-separator-right": a.separator === "right",
@@ -3017,7 +3017,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
3017
3017
  isExpanded: { type: Boolean }
3018
3018
  },
3019
3019
  setup(e) {
3020
- const a = e, t = B(!1), l = B(null), { visibleItems: r, hiddenItems: i, showMoreButton: o, recalculate: c, updateObserver: d } = Zn({
3020
+ const a = e, t = D(!1), l = D(null), { visibleItems: r, hiddenItems: i, showMoreButton: o, recalculate: c, updateObserver: d } = Zn({
3021
3021
  containerRef: l,
3022
3022
  items: Ie(a, "items"),
3023
3023
  getItemKey: (v) => v.id ?? `toolbar_item_${a.items.indexOf(v)}`,
@@ -3083,7 +3083,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
3083
3083
  function Jd(e) {
3084
3084
  const { hasAccess: a } = sl(), { registerToolbarItem: t, unregisterToolbarItem: l, getToolbarItems: r, updateToolbarItem: i } = wo({
3085
3085
  autoCleanup: !1
3086
- }), { id: o } = qn(), c = y(() => (o.value ?? is).toLowerCase()), { isMobile: d } = Ve(), u = /* @__PURE__ */ new Set(), v = B(c.value);
3086
+ }), { id: o } = qn(), c = y(() => (o.value ?? is).toLowerCase()), { isMobile: d } = Ve(), u = /* @__PURE__ */ new Set(), v = D(c.value);
3087
3087
  function b(f, k) {
3088
3088
  const C = v.value, S = f.id || `${Zd}${C}_${k}`;
3089
3089
  return {
@@ -3233,15 +3233,15 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
3233
3233
  props: {
3234
3234
  renderFn: { type: Function, required: !0 }
3235
3235
  },
3236
- setup(D) {
3237
- return () => D.renderFn();
3236
+ setup(B) {
3237
+ return () => B.renderFn();
3238
3238
  }
3239
3239
  }), t = e, l = Ce(al, void 0), r = Ce(fo, void 0), i = Ce(po, void 0), { t: o } = ze({ useScope: "global" }), { hasError: c, shortErrorMessage: d, errorDetails: u, copyError: v } = iv(l), {
3240
3240
  contentRef: b,
3241
3241
  isExpanded: p,
3242
3242
  wrapperStyle: m,
3243
3243
  toggle: h
3244
- } = Kl(), f = B(!1), k = u;
3244
+ } = Kl(), f = D(!1), k = u;
3245
3245
  async function C() {
3246
3246
  await v() && (f.value = !0, setTimeout(() => {
3247
3247
  f.value = !1;
@@ -3249,34 +3249,34 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
3249
3249
  }
3250
3250
  oe(
3251
3251
  [c, d],
3252
- ([D]) => {
3252
+ ([B]) => {
3253
3253
  if (!r) return;
3254
3254
  const O = r.value.findIndex((M) => M.id === yl);
3255
- D && O === -1 ? r.value.push({
3255
+ B && O === -1 ? r.value.push({
3256
3256
  id: yl,
3257
3257
  variant: "danger",
3258
3258
  message: d.value,
3259
3259
  dismissible: !0,
3260
3260
  _system: !0
3261
- }) : D && O !== -1 ? r.value[O] = {
3261
+ }) : B && O !== -1 ? r.value[O] = {
3262
3262
  ...r.value[O],
3263
3263
  message: d.value
3264
- } : !D && O !== -1 && r.value.splice(O, 1);
3264
+ } : !B && O !== -1 && r.value.splice(O, 1);
3265
3265
  },
3266
3266
  { immediate: !0 }
3267
3267
  ), oe(
3268
3268
  () => t.modified,
3269
- (D) => {
3269
+ (B) => {
3270
3270
  if (!r) return;
3271
3271
  const O = r.value.findIndex((M) => M.id === Na);
3272
- D && O === -1 ? r.value.push({
3272
+ B && O === -1 ? r.value.push({
3273
3273
  id: Na,
3274
3274
  variant: "warning",
3275
3275
  icon: "lucide-pencil",
3276
3276
  message: o("COMPONENTS.ORGANISMS.VC_BLADE.UNSAVED_CHANGES"),
3277
3277
  dismissible: !1,
3278
3278
  _system: !0
3279
- }) : !D && O !== -1 && r.value.splice(O, 1);
3279
+ }) : !B && O !== -1 && r.value.splice(O, 1);
3280
3280
  },
3281
3281
  { immediate: !0 }
3282
3282
  );
@@ -3285,19 +3285,19 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
3285
3285
  warning: 1,
3286
3286
  info: 2,
3287
3287
  success: 3
3288
- }, T = y(() => r ? [...r.value].sort((D, O) => (S[D.variant] ?? 9) - (S[O.variant] ?? 9)) : []);
3289
- function I(D) {
3288
+ }, T = y(() => r ? [...r.value].sort((B, O) => (S[B.variant] ?? 9) - (S[O.variant] ?? 9)) : []);
3289
+ function I(B) {
3290
3290
  return {
3291
3291
  danger: "lucide-circle-alert",
3292
3292
  warning: "lucide-triangle-alert",
3293
3293
  info: "lucide-info",
3294
3294
  success: "lucide-circle-check"
3295
- }[D] ?? "lucide-info";
3295
+ }[B] ?? "lucide-info";
3296
3296
  }
3297
- function V(D) {
3298
- r && (D.id === yl && l && i && i.clearBladeError(l.value.id), r.value = r.value.filter((O) => O.id !== D.id));
3297
+ function V(B) {
3298
+ r && (B.id === yl && l && i && i.clearBladeError(l.value.id), r.value = r.value.filter((O) => O.id !== B.id));
3299
3299
  }
3300
- return (D, O) => (s(), P(Un, { name: "banner-reveal" }, {
3300
+ return (B, O) => (s(), P(Un, { name: "banner-reveal" }, {
3301
3301
  default: x(() => [
3302
3302
  (s(!0), g(J, null, ve(T.value, (M) => (s(), g("div", {
3303
3303
  key: M.id,
@@ -3397,14 +3397,14 @@ function yv() {
3397
3397
  throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new Pl("WidgetService");
3398
3398
  return e;
3399
3399
  }
3400
- const Bl = /* @__PURE__ */ Q({
3400
+ const Dl = /* @__PURE__ */ Q({
3401
3401
  __name: "WidgetScope",
3402
3402
  props: {
3403
3403
  widgetId: {}
3404
3404
  },
3405
3405
  setup(e) {
3406
3406
  const a = e, t = Ce(go), r = Ce(al, void 0)?.value.id ?? "";
3407
- return Be(Gi, {
3407
+ return De(Gi, {
3408
3408
  setTrigger: (o) => {
3409
3409
  t.updateWidget({ id: a.widgetId, bladeId: r, widget: { trigger: o } });
3410
3410
  }
@@ -3445,7 +3445,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3445
3445
  bladeId: {}
3446
3446
  },
3447
3447
  setup(e) {
3448
- const a = e, t = B(!1), { resolveBadge: l, resolveLoading: r, resolveDisabled: i, resolveTitle: o, handleHeadlessClick: c } = Qo(), d = y(() => a.widgets.slice(0, 3)), u = y(() => a.widgets.slice(3)), v = y(() => a.widgets.length > 3);
3448
+ const a = e, t = D(!1), { resolveBadge: l, resolveLoading: r, resolveDisabled: i, resolveTitle: o, handleHeadlessClick: c } = Qo(), d = y(() => a.widgets.slice(0, 3)), u = y(() => a.widgets.slice(3)), v = y(() => a.widgets.length > 3);
3449
3449
  return (b, p) => (s(), g("div", wv, [
3450
3450
  w("div", Cv, [
3451
3451
  (s(!0), g(J, null, ve(d.value, (m) => (s(), g(J, {
@@ -3471,7 +3471,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3471
3471
  disabled: n(i)(m),
3472
3472
  "widget-id": m.id,
3473
3473
  onClick: (h) => n(c)(m)
3474
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3474
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3475
3475
  key: 2,
3476
3476
  "widget-id": m.id
3477
3477
  }, {
@@ -3518,7 +3518,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3518
3518
  onClick: (h) => {
3519
3519
  n(c)(m), t.value = !1;
3520
3520
  }
3521
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3521
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3522
3522
  key: 2,
3523
3523
  "widget-id": m.id
3524
3524
  }, {
@@ -3605,7 +3605,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3605
3605
  ye.style.overflow = se.cachedOverflow, ye.style.paddingRight = se.cachedPaddingRight;
3606
3606
  }
3607
3607
  }
3608
- const c = e, d = t, u = ht(), v = B(null), b = B(!1), p = B(null), { teleportTarget: m } = Vt({
3608
+ const c = e, d = t, u = ht(), v = D(null), b = D(!1), p = D(null), { teleportTarget: m } = Vt({
3609
3609
  to: y(() => c.teleportTo)
3610
3610
  }), f = `vc-sidebar-title-${Math.round(Math.random() * 1e5)}`, k = {
3611
3611
  sm: "300px",
@@ -3617,7 +3617,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3617
3617
  md: "56dvh",
3618
3618
  lg: "72dvh",
3619
3619
  full: "100dvh"
3620
- }, S = y(() => typeof c.width == "number" ? `${c.width}px` : c.width), T = y(() => typeof c.height == "number" ? `${c.height}px` : c.height), I = y(() => !!c.title || c.closeButton || !!u.header), V = y(() => !!u.footer), D = y(() => c.position === "bottom"), O = y(() => c.size === "full"), M = y(() => c.position === "left" ? "vc-sidebar-panel-left" : c.position === "bottom" ? "vc-sidebar-panel-bottom" : "vc-sidebar-panel-right"), R = y(() => D.value ? {
3620
+ }, S = y(() => typeof c.width == "number" ? `${c.width}px` : c.width), T = y(() => typeof c.height == "number" ? `${c.height}px` : c.height), I = y(() => !!c.title || c.closeButton || !!u.header), V = y(() => !!u.footer), B = y(() => c.position === "bottom"), O = y(() => c.size === "full"), M = y(() => c.position === "left" ? "vc-sidebar-panel-left" : c.position === "bottom" ? "vc-sidebar-panel-bottom" : "vc-sidebar-panel-right"), R = y(() => B.value ? {
3621
3621
  height: T.value ?? C[c.size]
3622
3622
  } : {
3623
3623
  width: S.value ?? k[c.size]
@@ -3631,7 +3631,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3631
3631
  "vc-sidebar__panel--with-header": I.value,
3632
3632
  "vc-sidebar__panel--with-footer": V.value,
3633
3633
  "vc-sidebar__panel--inset": c.inset && !O.value,
3634
- "vc-sidebar__panel--draggable": c.draggable && D.value
3634
+ "vc-sidebar__panel--draggable": c.draggable && B.value
3635
3635
  }
3636
3636
  ]), E = y(() => c.ariaLabel || void 0), N = y(() => c.ariaLabel || !c.title ? void 0 : f);
3637
3637
  function F(se) {
@@ -3646,9 +3646,9 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3646
3646
  function Z() {
3647
3647
  c.closeOnOverlay && F("overlay");
3648
3648
  }
3649
- const de = B(0), Y = B(!1);
3649
+ const de = D(0), Y = D(!1);
3650
3650
  function q(se) {
3651
- !c.draggable || !D.value || (de.value = se.touches[0].clientY, Y.value = !0);
3651
+ !c.draggable || !B.value || (de.value = se.touches[0].clientY, Y.value = !0);
3652
3652
  }
3653
3653
  function ne(se) {
3654
3654
  if (!Y.value || !v.value) return;
@@ -3781,7 +3781,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3781
3781
  onTouchmove: ne,
3782
3782
  onTouchend: ee
3783
3783
  }, [
3784
- e.dragHandle && D.value ? (s(), g("div", $v, [...ye[1] || (ye[1] = [
3784
+ e.dragHandle && B.value ? (s(), g("div", $v, [...ye[1] || (ye[1] = [
3785
3785
  w("div", { class: "vc-sidebar__handle-bar" }, null, -1)
3786
3786
  ])])) : L("", !0),
3787
3787
  I.value ? H(se.$slots, "header", {
@@ -3827,14 +3827,14 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3827
3827
  ], 12, Ev)
3828
3828
  ], 8, ["to", "disabled"]));
3829
3829
  }
3830
- }), Nv = { class: "vc-widget-container-mobile" }, Bv = ["data-item-key"], Dv = { class: "vc-widget-container-mobile__overflow-list" }, Pv = /* @__PURE__ */ Q({
3830
+ }), Nv = { class: "vc-widget-container-mobile" }, Dv = ["data-item-key"], Bv = { class: "vc-widget-container-mobile__overflow-list" }, Pv = /* @__PURE__ */ Q({
3831
3831
  __name: "WidgetContainerMobile",
3832
3832
  props: {
3833
3833
  widgets: {},
3834
3834
  bladeId: {}
3835
3835
  },
3836
3836
  setup(e) {
3837
- const a = e, t = B(null), l = B(!1), r = y(() => a.widgets.length > 0), { resolveBadge: i, resolveLoading: o, resolveDisabled: c, resolveTitle: d, handleHeadlessClick: u } = Qo(), { visibleItems: v, showMoreButton: b, hiddenItems: p } = Zn({
3837
+ const a = e, t = D(null), l = D(!1), r = y(() => a.widgets.length > 0), { resolveBadge: i, resolveLoading: o, resolveDisabled: c, resolveTitle: d, handleHeadlessClick: u } = Qo(), { visibleItems: v, showMoreButton: b, hiddenItems: p } = Zn({
3838
3838
  containerRef: t,
3839
3839
  items: y(() => a.widgets),
3840
3840
  getItemKey: (m) => m.id ?? "",
@@ -3866,7 +3866,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3866
3866
  height: 10,
3867
3867
  class: "tw-mt-1"
3868
3868
  })
3869
- ], 8, Bv)) : f.headless ? (s(), P(n(Nl), {
3869
+ ], 8, Dv)) : f.headless ? (s(), P(n(Nl), {
3870
3870
  key: 1,
3871
3871
  icon: f.headless?.icon,
3872
3872
  title: n(d)(f),
@@ -3875,7 +3875,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3875
3875
  "data-item-key": f.id,
3876
3876
  "widget-id": f.id,
3877
3877
  onClick: (k) => n(u)(f)
3878
- }, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Bl, {
3878
+ }, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Dl, {
3879
3879
  key: 2,
3880
3880
  "widget-id": f.id
3881
3881
  }, {
@@ -3908,7 +3908,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3908
3908
  "onUpdate:modelValue": h[2] || (h[2] = (f) => l.value = f)
3909
3909
  }, {
3910
3910
  default: x(() => [
3911
- w("div", Dv, [
3911
+ w("div", Bv, [
3912
3912
  (s(!0), g(J, null, ve(n(p), (f) => (s(), g(J, {
3913
3913
  key: f.id
3914
3914
  }, [
@@ -3929,7 +3929,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3929
3929
  onClick: (k) => {
3930
3930
  n(u)(f), l.value = !1;
3931
3931
  }
3932
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3932
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3933
3933
  key: 2,
3934
3934
  "widget-id": f.id
3935
3935
  }, {
@@ -4045,7 +4045,7 @@ function Zo() {
4045
4045
  async function c(d) {
4046
4046
  if (!d) return "";
4047
4047
  const u = o(d);
4048
- return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/flags/al.svg": As, "../../assets/icons/flags/am.svg": Ts, "../../assets/icons/flags/az.svg": Os, "../../assets/icons/flags/ba.svg": Ms, "../../assets/icons/flags/bd.svg": Ls, "../../assets/icons/flags/bg.svg": Is, "../../assets/icons/flags/by.svg": xs, "../../assets/icons/flags/cn.svg": Ns, "../../assets/icons/flags/cz.svg": Bs, "../../assets/icons/flags/de.svg": Ds, "../../assets/icons/flags/dk.svg": Ps, "../../assets/icons/flags/ee.svg": Vs, "../../assets/icons/flags/es.svg": Fs, "../../assets/icons/flags/fi.svg": Us, "../../assets/icons/flags/fr.svg": zs, "../../assets/icons/flags/gb.svg": Hs, "../../assets/icons/flags/ge.svg": Ws, "../../assets/icons/flags/gr.svg": Gs, "../../assets/icons/flags/hr.svg": qs, "../../assets/icons/flags/hu.svg": Ks, "../../assets/icons/flags/id.svg": Ys, "../../assets/icons/flags/il.svg": js, "../../assets/icons/flags/in.svg": Xs, "../../assets/icons/flags/ir.svg": Qs, "../../assets/icons/flags/is.svg": Zs, "../../assets/icons/flags/it.svg": Js, "../../assets/icons/flags/jp.svg": er, "../../assets/icons/flags/kg.svg": tr, "../../assets/icons/flags/kh.svg": lr, "../../assets/icons/flags/kr.svg": nr, "../../assets/icons/flags/kz.svg": ar, "../../assets/icons/flags/lk.svg": or, "../../assets/icons/flags/lt.svg": ir, "../../assets/icons/flags/lv.svg": sr, "../../assets/icons/flags/mk.svg": rr, "../../assets/icons/flags/mn.svg": cr, "../../assets/icons/flags/my.svg": ur, "../../assets/icons/flags/ng.svg": dr, "../../assets/icons/flags/nl.svg": vr, "../../assets/icons/flags/no.svg": fr, "../../assets/icons/flags/np.svg": mr, "../../assets/icons/flags/ph.svg": pr, "../../assets/icons/flags/pk.svg": gr, "../../assets/icons/flags/pl.svg": br, "../../assets/icons/flags/pt.svg": hr, "../../assets/icons/flags/ro.svg": yr, "../../assets/icons/flags/rs.svg": wr, "../../assets/icons/flags/ru.svg": Cr, "../../assets/icons/flags/sa.svg": _r, "../../assets/icons/flags/se.svg": kr, "../../assets/icons/flags/si.svg": Er, "../../assets/icons/flags/sk.svg": Sr, "../../assets/icons/flags/th.svg": $r, "../../assets/icons/flags/tr.svg": Rr, "../../assets/icons/flags/tz.svg": Ar, "../../assets/icons/flags/ua.svg": Tr, "../../assets/icons/flags/us.svg": Or, "../../assets/icons/flags/uz.svg": Mr, "../../assets/icons/flags/vn.svg": Lr, "../../assets/icons/flags/xx.svg": Ir, "../../assets/icons/flags/za.svg": xr }))[`../../assets/icons/flags/${u}.svg`], import.meta.url).href;
4048
+ return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/flags/al.svg": As, "../../assets/icons/flags/am.svg": Ts, "../../assets/icons/flags/az.svg": Os, "../../assets/icons/flags/ba.svg": Ms, "../../assets/icons/flags/bd.svg": Ls, "../../assets/icons/flags/bg.svg": Is, "../../assets/icons/flags/by.svg": xs, "../../assets/icons/flags/cn.svg": Ns, "../../assets/icons/flags/cz.svg": Ds, "../../assets/icons/flags/de.svg": Bs, "../../assets/icons/flags/dk.svg": Ps, "../../assets/icons/flags/ee.svg": Vs, "../../assets/icons/flags/es.svg": Fs, "../../assets/icons/flags/fi.svg": Us, "../../assets/icons/flags/fr.svg": zs, "../../assets/icons/flags/gb.svg": Hs, "../../assets/icons/flags/ge.svg": Ws, "../../assets/icons/flags/gr.svg": Gs, "../../assets/icons/flags/hr.svg": qs, "../../assets/icons/flags/hu.svg": Ks, "../../assets/icons/flags/id.svg": Ys, "../../assets/icons/flags/il.svg": js, "../../assets/icons/flags/in.svg": Xs, "../../assets/icons/flags/ir.svg": Qs, "../../assets/icons/flags/is.svg": Zs, "../../assets/icons/flags/it.svg": Js, "../../assets/icons/flags/jp.svg": er, "../../assets/icons/flags/kg.svg": tr, "../../assets/icons/flags/kh.svg": lr, "../../assets/icons/flags/kr.svg": nr, "../../assets/icons/flags/kz.svg": ar, "../../assets/icons/flags/lk.svg": or, "../../assets/icons/flags/lt.svg": ir, "../../assets/icons/flags/lv.svg": sr, "../../assets/icons/flags/mk.svg": rr, "../../assets/icons/flags/mn.svg": cr, "../../assets/icons/flags/my.svg": ur, "../../assets/icons/flags/ng.svg": dr, "../../assets/icons/flags/nl.svg": vr, "../../assets/icons/flags/no.svg": fr, "../../assets/icons/flags/np.svg": mr, "../../assets/icons/flags/ph.svg": pr, "../../assets/icons/flags/pk.svg": gr, "../../assets/icons/flags/pl.svg": br, "../../assets/icons/flags/pt.svg": hr, "../../assets/icons/flags/ro.svg": yr, "../../assets/icons/flags/rs.svg": wr, "../../assets/icons/flags/ru.svg": Cr, "../../assets/icons/flags/sa.svg": _r, "../../assets/icons/flags/se.svg": kr, "../../assets/icons/flags/si.svg": Er, "../../assets/icons/flags/sk.svg": Sr, "../../assets/icons/flags/th.svg": $r, "../../assets/icons/flags/tr.svg": Rr, "../../assets/icons/flags/tz.svg": Ar, "../../assets/icons/flags/ua.svg": Tr, "../../assets/icons/flags/us.svg": Or, "../../assets/icons/flags/uz.svg": Mr, "../../assets/icons/flags/vn.svg": Lr, "../../assets/icons/flags/xx.svg": Ir, "../../assets/icons/flags/za.svg": xr }))[`../../assets/icons/flags/${u}.svg`], import.meta.url).href;
4049
4049
  }
4050
4050
  return {
4051
4051
  setLocale: l,
@@ -4068,7 +4068,7 @@ function US() {
4068
4068
  if (e)
4069
4069
  return e;
4070
4070
  const a = Zo();
4071
- return Be(Mn, a), a;
4071
+ return De(Mn, a), a;
4072
4072
  }
4073
4073
  function ti() {
4074
4074
  if (!so())
@@ -4084,7 +4084,7 @@ function zS() {
4084
4084
  if (e)
4085
4085
  return e;
4086
4086
  const a = ss();
4087
- return Be(Ln, a), ro() && zn(() => rs.dispose(a)), a;
4087
+ return De(Ln, a), ro() && zn(() => rs.dispose(a)), a;
4088
4088
  }
4089
4089
  function Ql() {
4090
4090
  const e = Ce(Ln);
@@ -4122,7 +4122,7 @@ function Yv(e) {
4122
4122
  return `${qv}_${a}`;
4123
4123
  }
4124
4124
  function jv() {
4125
- const e = zl(Yv(), !0), a = B(!1), t = B(!1), l = y(() => e.value || a.value);
4125
+ const e = zl(Yv(), !0), a = D(!1), t = D(!1), l = y(() => e.value || a.value);
4126
4126
  let r = null;
4127
4127
  const i = () => {
4128
4128
  e.value = !e.value;
@@ -4148,15 +4148,15 @@ function jv() {
4148
4148
  }
4149
4149
  };
4150
4150
  }
4151
- const Bn = Symbol("SidebarState");
4151
+ const Dn = Symbol("SidebarState");
4152
4152
  function Xv() {
4153
- const e = Ce(Bn, null);
4153
+ const e = Ce(Dn, null);
4154
4154
  if (e) return e;
4155
4155
  const a = jv();
4156
- return Be(Bn, a), a;
4156
+ return De(Dn, a), a;
4157
4157
  }
4158
4158
  function ea() {
4159
- const e = Ce(Bn);
4159
+ const e = Ce(Dn);
4160
4160
  if (!e)
4161
4161
  throw new Error("useSidebarState() requires provideSidebarState() in a parent component");
4162
4162
  return e;
@@ -4216,13 +4216,13 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4216
4216
  if (t.modified !== void 0) return t.modified;
4217
4217
  if (l)
4218
4218
  return l.isModified.value;
4219
- }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = B(!1);
4219
+ }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = D(!1);
4220
4220
  oe([() => !!t.loading, () => c?.value.param], ([z, K], Z) => {
4221
4221
  Z?.length && K !== Z[1] && (d.value = !1), !z && Z?.[0] && (d.value = !0);
4222
4222
  });
4223
4223
  const u = y(() => !!t.loading && !d.value), v = y(() => !!t.loading && d.value);
4224
- Be(Ki, u), ht();
4225
- const b = a, { isMobile: p, isDesktop: m } = Ve(), h = qn(), { id: f } = h, k = !!c, C = Ce(vo, void 0), S = Ce(Wn, void 0), T = y(() => k ? h.expanded.value : t.expanded), I = y(() => k ? h.closable.value : t.closable), V = Pi(), D = y(() => {
4224
+ De(Ki, u), ht();
4225
+ const b = a, { isMobile: p, isDesktop: m } = Ve(), h = qn(), { id: f } = h, k = !!c, C = Ce(vo, void 0), S = Ce(Wn, void 0), T = y(() => k ? h.expanded.value : t.expanded), I = y(() => k ? h.closable.value : t.closable), V = Pi(), B = y(() => {
4226
4226
  const { class: z, style: K, onClose: Z, ...de } = V;
4227
4227
  return de;
4228
4228
  });
@@ -4239,14 +4239,14 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4239
4239
  Hn(() => {
4240
4240
  k && f.value && t.title && E(f.value, t.title);
4241
4241
  });
4242
- const N = B(null), F = B(null);
4242
+ const N = D(null), F = D(null);
4243
4243
  return oe(u, (z) => {
4244
4244
  const K = N.value;
4245
4245
  !z || !K || document.activeElement && K.contains(document.activeElement) && K.focus({ preventScroll: !0 });
4246
4246
  }), tt(() => Nn(() => N.value)), (z, K) => (s(), g("div", Le({
4247
4247
  ref_key: "bladeRef",
4248
4248
  ref: N
4249
- }, D.value, {
4249
+ }, B.value, {
4250
4250
  class: ["vc-blade", [
4251
4251
  z.$attrs.class,
4252
4252
  {
@@ -4403,7 +4403,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4403
4403
  resolvedDisabled: b,
4404
4404
  ariaRequired: p,
4405
4405
  ariaDescribedBy: m
4406
- } = Ot(l), h = B(), f = B(!1);
4406
+ } = Ot(l), h = D(), f = D(!1);
4407
4407
  function k(C) {
4408
4408
  const S = C.target.value;
4409
4409
  i("update:modelValue", S);
@@ -4530,7 +4530,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4530
4530
  const a = Qe(), t = e, l = y(() => {
4531
4531
  const c = t.modelValue;
4532
4532
  return c == null || c === "" ? t.type === "date" || t.type === "date-ago" ? "N/A" : "" : t.type === "date" ? c instanceof Date ? c.toLocaleDateString() : String(c) : t.type === "date-ago" ? cs(c) || "N/A" : String(c);
4533
- }), r = B("lucide-copy");
4533
+ }), r = D("lucide-copy");
4534
4534
  function i() {
4535
4535
  navigator.clipboard?.writeText(String(t.modelValue ?? "")), r.value = "lucide-check", setTimeout(() => {
4536
4536
  r.value = "lucide-copy";
@@ -4717,7 +4717,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4717
4717
  },
4718
4718
  emits: ["update:modelValue"],
4719
4719
  setup(e, { emit: a }) {
4720
- const t = Qe(), l = e, r = a, i = B([]), o = y(() => (v) => i.value.includes(v));
4720
+ const t = Qe(), l = e, r = a, i = D([]), o = y(() => (v) => i.value.includes(v));
4721
4721
  function c(v, b) {
4722
4722
  b ? l.multiple ? i.value.push(v) : i.value = [v] : i.value = i.value.filter((p) => p !== v), d();
4723
4723
  }
@@ -4804,21 +4804,21 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4804
4804
  },
4805
4805
  emits: ["upload"],
4806
4806
  setup(e, { emit: a }) {
4807
- const t = Qe(), l = e, r = a, { t: i } = ze({ useScope: "global" }), { fieldId: o, errorId: c, resolvedDisabled: d, resolvedName: u, ariaRequired: v, groupContext: b } = Ot(l), p = n(l.rules) || "", m = B(!1), { isMobile: h } = Ve(), {
4807
+ const t = Qe(), l = e, r = a, { t: i } = ze({ useScope: "global" }), { fieldId: o, errorId: c, resolvedDisabled: d, resolvedName: u, ariaRequired: v, groupContext: b } = Ot(l), p = n(l.rules) || "", m = D(!1), { isMobile: h } = Ve(), {
4808
4808
  errorMessage: f,
4809
4809
  handleChange: k,
4810
4810
  validate: C
4811
- } = Br(`${l.name === "Gallery" ? o.value : l.name}`, p), S = y(() => l.errorMessage || f.value), T = y(() => {
4811
+ } = Dr(`${l.name === "Gallery" ? o.value : l.name}`, p), S = y(() => l.errorMessage || f.value), T = y(() => {
4812
4812
  const A = /* @__PURE__ */ new Set();
4813
4813
  return b?.describedBy.value && b.describedBy.value.split(/\s+/).forEach((_) => A.add(_)), S.value && A.add(c.value), A.size ? Array.from(A).join(" ") : void 0;
4814
- }), I = B(null), V = async (A) => {
4814
+ }), I = D(null), V = async (A) => {
4815
4815
  if (d.value) return;
4816
4816
  if (await k(A.target), (await C()).valid) {
4817
4817
  const N = A.target.files;
4818
4818
  N && N.length && r("upload", N);
4819
4819
  }
4820
4820
  };
4821
- function D() {
4821
+ function B() {
4822
4822
  d.value || I.value && (I.value.value = "", I.value.click());
4823
4823
  }
4824
4824
  function O(A) {
@@ -4867,10 +4867,10 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4867
4867
  onDragenter: _[3] || (_[3] = ue(() => {
4868
4868
  }, ["stop", "prevent"])),
4869
4869
  onDragleave: ue(R, ["stop", "prevent"]),
4870
- onClick: D,
4870
+ onClick: B,
4871
4871
  onKeydown: [
4872
- Ae(D, ["enter"]),
4873
- Ae(ue(D, ["prevent"]), ["space"])
4872
+ Ae(B, ["enter"]),
4873
+ Ae(ue(B, ["prevent"]), ["space"])
4874
4874
  ]
4875
4875
  }, [
4876
4876
  e.loading ? (s(), g("div", Af, [
@@ -4957,16 +4957,16 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4957
4957
  ], 10, Nf));
4958
4958
  }
4959
4959
  });
4960
- function Ba(e) {
4960
+ function Da(e) {
4961
4961
  return "options" in e;
4962
4962
  }
4963
4963
  function wl(e) {
4964
4964
  return !("options" in e);
4965
4965
  }
4966
- const Bf = {
4966
+ const Df = {
4967
4967
  key: 2,
4968
4968
  class: "vc-editor-dropdown"
4969
- }, Df = ["disabled", "aria-label"], Pf = ["value"], Vf = /* @__PURE__ */ Q({
4969
+ }, Bf = ["disabled", "aria-label"], Pf = ["value"], Vf = /* @__PURE__ */ Q({
4970
4970
  __name: "vc-editor-custom-button",
4971
4971
  props: {
4972
4972
  editor: {},
@@ -4980,7 +4980,7 @@ const Bf = {
4980
4980
  }
4981
4981
  function i(o) {
4982
4982
  const c = o.target;
4983
- if (Ba(a.customButton)) {
4983
+ if (Da(a.customButton)) {
4984
4984
  const d = a.customButton.options.find((u) => u.value === c.value);
4985
4985
  d && d.action(a.editor, c.value);
4986
4986
  }
@@ -4996,7 +4996,7 @@ const Bf = {
4996
4996
  active: t.value,
4997
4997
  disabled: e.disabled || l.value,
4998
4998
  onAction: r
4999
- }, null, 8, ["icon", "aria-label", "active", "disabled"])) : n(Ba)(e.customButton) ? (s(), g("div", Bf, [
4999
+ }, null, 8, ["icon", "aria-label", "active", "disabled"])) : n(Da)(e.customButton) ? (s(), g("div", Df, [
5000
5000
  w("select", {
5001
5001
  disabled: e.disabled || l.value,
5002
5002
  "aria-label": e.customButton.label,
@@ -5006,7 +5006,7 @@ const Bf = {
5006
5006
  key: d.value,
5007
5007
  value: d.value
5008
5008
  }, U(d.label), 9, Pf))), 128))
5009
- ], 40, Df)
5009
+ ], 40, Bf)
5010
5010
  ])) : L("", !0);
5011
5011
  }
5012
5012
  }), Ff = { class: "vc-editor-font-selector" }, Uf = { class: "vc-editor-font-selector__dropdown" }, zf = ["aria-label", "disabled"], Hf = {
@@ -5019,7 +5019,7 @@ const Bf = {
5019
5019
  disabled: { type: Boolean }
5020
5020
  },
5021
5021
  setup(e) {
5022
- const a = e, t = B(!1), l = B(null), r = [8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 36, 48, 72], i = y(() => {
5022
+ const a = e, t = D(!1), l = D(null), r = [8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 36, 48, 72], i = y(() => {
5023
5023
  const b = a.editor.getAttributes("textStyle");
5024
5024
  return b.fontSize ? parseInt(b.fontSize.replace("px", "")) : null;
5025
5025
  });
@@ -5311,7 +5311,7 @@ const Bf = {
5311
5311
  },
5312
5312
  emits: ["update:modelValue", "upload-image"],
5313
5313
  setup(e, { emit: a }) {
5314
- const t = Qe(), l = e, r = a, { errorId: i, invalid: o, ariaDescribedBy: c } = Ot(l), d = B(!1), u = B(!1), v = B(null), b = B("markdown"), p = y(() => l.toolbar ? l.toolbar : [
5314
+ const t = Qe(), l = e, r = a, { errorId: i, invalid: o, ariaDescribedBy: c } = Ot(l), d = D(!1), u = D(!1), v = D(null), b = D("markdown"), p = y(() => l.toolbar ? l.toolbar : [
5315
5315
  "bold",
5316
5316
  "italic",
5317
5317
  "underline",
@@ -5403,7 +5403,7 @@ const Bf = {
5403
5403
  return [...F.filter((Z) => !z.has(Z.name)), ...l.extensions];
5404
5404
  }
5405
5405
  return F;
5406
- }), C = B(l.modelValue || "");
5406
+ }), C = D(l.modelValue || "");
5407
5407
  oe(
5408
5408
  () => l.modelValue,
5409
5409
  (F) => {
@@ -5467,11 +5467,11 @@ const Bf = {
5467
5467
  FORBID_TAGS: ["script", "object", "embed", "form", "input"],
5468
5468
  FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur"]
5469
5469
  });
5470
- }), T = B("editor"), I = y(() => T.value);
5470
+ }), T = D("editor"), I = y(() => T.value);
5471
5471
  function V() {
5472
5472
  T.value = T.value === "preview" ? "editor" : "preview";
5473
5473
  }
5474
- function D() {
5474
+ function B() {
5475
5475
  T.value = T.value === "source" ? "editor" : "source";
5476
5476
  }
5477
5477
  function O() {
@@ -5628,7 +5628,7 @@ const Bf = {
5628
5628
  "aria-label": F.$t("COMPONENTS.MOLECULES.VC_EDITOR.VIEW.SOURCE"),
5629
5629
  active: I.value === "source",
5630
5630
  disabled: e.disabled,
5631
- onAction: D
5631
+ onAction: B
5632
5632
  }, null, 8, ["aria-label", "active", "disabled"]),
5633
5633
  $(Ue, {
5634
5634
  icon: u.value ? "lucide-shrink" : "lucide-expand",
@@ -5717,7 +5717,7 @@ const Bf = {
5717
5717
  key: 0,
5718
5718
  class: "vc-notification__content",
5719
5719
  tabindex: "0"
5720
- }, dm = { key: 1 }, vm = ["aria-label"], Da = 200, fm = 45, QS = /* @__PURE__ */ Q({
5720
+ }, dm = { key: 1 }, vm = ["aria-label"], Ba = 200, fm = 45, QS = /* @__PURE__ */ Q({
5721
5721
  __name: "vc-toast",
5722
5722
  props: {
5723
5723
  content: { type: [String, Object, Function] },
@@ -5742,11 +5742,11 @@ const Bf = {
5742
5742
  success: { icon: "lucide-check-circle", color: "var(--notification-success)" },
5743
5743
  error: { icon: "lucide-alert-circle", color: "var(--notification-error)" },
5744
5744
  warning: { icon: "lucide-alert-triangle", color: "var(--notification-warning)" }
5745
- }, { timeout: i } = Fi(l), o = B(null), c = B(!1), d = B(!1), u = y(() => (l.position || "top-center").startsWith("top") ? "top" : "bottom"), v = y(() => (l.toastIndex ?? 0) === 0), b = y(() => (l.toastIndex ?? 0) < (l.visibleToasts ?? 3)), p = B(null);
5745
+ }, { timeout: i } = Fi(l), o = D(null), c = D(!1), d = D(!1), u = y(() => (l.position || "top-center").startsWith("top") ? "top" : "bottom"), v = y(() => (l.toastIndex ?? 0) === 0), b = y(() => (l.toastIndex ?? 0) < (l.visibleToasts ?? 3)), p = D(null);
5746
5746
  function m() {
5747
5747
  d.value || (d.value = !0, p.value?.clear(), setTimeout(() => {
5748
5748
  t("close", l.notificationId);
5749
- }, Da));
5749
+ }, Ba));
5750
5750
  }
5751
5751
  oe(
5752
5752
  () => l.dismissing,
@@ -5760,7 +5760,7 @@ const Bf = {
5760
5760
  },
5761
5761
  { immediate: !0 }
5762
5762
  );
5763
- const h = B(null);
5763
+ const h = D(null);
5764
5764
  function f() {
5765
5765
  if (o.value && l.notificationId !== void 0 && !d.value) {
5766
5766
  const _ = o.value, E = _.style.height;
@@ -5801,15 +5801,15 @@ const Bf = {
5801
5801
  function S() {
5802
5802
  l.timeout && l.pauseOnHover !== !1 && p.value?.resume();
5803
5803
  }
5804
- const T = B(0), I = B(0), V = B(!1), D = B(!1), O = B(0);
5804
+ const T = D(0), I = D(0), V = D(!1), B = D(!1), O = D(0);
5805
5805
  function M(_) {
5806
- if (d.value || D.value || _.target?.closest(".vc-notification__dismiss-button")) return;
5806
+ if (d.value || B.value || _.target?.closest(".vc-notification__dismiss-button")) return;
5807
5807
  T.value = _.clientX, I.value = _.clientY, O.value = Date.now(), V.value = !1;
5808
5808
  const E = o.value;
5809
5809
  E && E.setPointerCapture(_.pointerId);
5810
5810
  }
5811
5811
  function R(_) {
5812
- if (d.value || D.value || T.value === 0 && I.value === 0) return;
5812
+ if (d.value || B.value || T.value === 0 && I.value === 0) return;
5813
5813
  const E = _.clientX - T.value, N = _.clientY - I.value;
5814
5814
  if (!V.value)
5815
5815
  if (Math.abs(E) > 1 && Math.abs(E) > Math.abs(N))
@@ -5829,9 +5829,9 @@ const Bf = {
5829
5829
  }
5830
5830
  const N = parseFloat(o.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), F = Date.now() - O.value, z = Math.abs(N) / F;
5831
5831
  if (Math.abs(N) >= fm || z > 0.11) {
5832
- d.value = !0, p.value?.clear(), D.value = !0;
5832
+ d.value = !0, p.value?.clear(), B.value = !0;
5833
5833
  const K = N > 0 ? 1 : -1;
5834
- o.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Da);
5834
+ o.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Ba);
5835
5835
  } else
5836
5836
  o.value?.style.setProperty("--swipe-amount-x", "0px"), p.value?.resume();
5837
5837
  V.value = !1, T.value = 0, I.value = 0;
@@ -5848,7 +5848,7 @@ const Bf = {
5848
5848
  "data-expanded": e.expanded ?? !0,
5849
5849
  "data-visible": b.value,
5850
5850
  "data-swiping": V.value,
5851
- "data-swiped-out": D.value,
5851
+ "data-swiped-out": B.value,
5852
5852
  role: e.type === "error" ? "alert" : "status",
5853
5853
  onMouseenter: C,
5854
5854
  onMouseleave: S,
@@ -5895,7 +5895,7 @@ const Bf = {
5895
5895
  },
5896
5896
  emits: ["itemClick"],
5897
5897
  setup(e, { emit: a }) {
5898
- const t = e, l = a, { isMobile: r } = Ve(), i = B(t.currentPage);
5898
+ const t = e, l = a, { isMobile: r } = Ve(), i = D(t.currentPage);
5899
5899
  oe(
5900
5900
  () => t.currentPage,
5901
5901
  (u) => {
@@ -6081,7 +6081,7 @@ const Bf = {
6081
6081
  }), Lm = {
6082
6082
  key: 0,
6083
6083
  class: "vc-slider vc-slider--skeleton"
6084
- }, Im = ["aria-label"], xm = { class: "vc-slider__prev tw-left-0" }, Nm = ["aria-label"], Bm = { class: "vc-slider__next tw-right-0" }, Dm = ["aria-label"], Pm = /* @__PURE__ */ Q({
6084
+ }, Im = ["aria-label"], xm = { class: "vc-slider__prev tw-left-0" }, Nm = ["aria-label"], Dm = { class: "vc-slider__next tw-right-0" }, Bm = ["aria-label"], Pm = /* @__PURE__ */ Q({
6085
6085
  __name: "vc-slider",
6086
6086
  props: {
6087
6087
  slides: { default: () => [] },
@@ -6145,7 +6145,7 @@ const Bf = {
6145
6145
  ], 8, Nm)
6146
6146
  ])
6147
6147
  ]),
6148
- w("div", Bm, [
6148
+ w("div", Dm, [
6149
6149
  H(r.$slots, "nextBtn", {}, () => [
6150
6150
  w("button", {
6151
6151
  type: "button",
@@ -6156,7 +6156,7 @@ const Bf = {
6156
6156
  icon: "lucide-chevron-right",
6157
6157
  "aria-hidden": "true"
6158
6158
  })
6159
- ], 8, Dm)
6159
+ ], 8, Bm)
6160
6160
  ])
6161
6161
  ])
6162
6162
  ], 512), [
@@ -6199,7 +6199,7 @@ const Bf = {
6199
6199
  },
6200
6200
  emits: ["remove", "toggleDropdown", "inputSubmit", "inputChange", "keyDown", "focus", "blur", "clearAll", "openColorPicker", "setColorPickerRef", "colorChange"],
6201
6201
  setup(e, { expose: a, emit: t }) {
6202
- const l = t, r = B(null);
6202
+ const l = t, r = D(null);
6203
6203
  function i(o) {
6204
6204
  l("inputSubmit", o), l("blur");
6205
6205
  }
@@ -6346,7 +6346,7 @@ const Bf = {
6346
6346
  },
6347
6347
  emits: ["select", "search", "clickOutside"],
6348
6348
  setup(e, { expose: a, emit: t }) {
6349
- const l = e, r = t, i = B(null), o = B(null), c = B(null), { teleportTarget: d } = Vt(), u = B(!1), v = B(!1);
6349
+ const l = e, r = t, i = D(null), o = D(null), c = D(null), { teleportTarget: d } = Vt(), u = D(!1), v = D(!1);
6350
6350
  let b = null;
6351
6351
  function p() {
6352
6352
  const k = c.value;
@@ -6511,7 +6511,7 @@ function op(e) {
6511
6511
  };
6512
6512
  }
6513
6513
  function ip(e) {
6514
- const a = B();
6514
+ const a = D();
6515
6515
  function t(r) {
6516
6516
  const i = r.target.value;
6517
6517
  if (i === "" || i === void 0 || i === null)
@@ -6537,7 +6537,7 @@ function ip(e) {
6537
6537
  };
6538
6538
  }
6539
6539
  function sp(e) {
6540
- const a = B(/* @__PURE__ */ new Map());
6540
+ const a = D(/* @__PURE__ */ new Map());
6541
6541
  function t(i, o) {
6542
6542
  i ? a.value.set(o, i) : a.value.delete(o);
6543
6543
  }
@@ -6562,7 +6562,7 @@ function sp(e) {
6562
6562
  };
6563
6563
  }
6564
6564
  function rp(e) {
6565
- const a = B(!1), t = B(!1), l = B(null), r = B(null), i = B(null);
6565
+ const a = D(!1), t = D(!1), l = D(null), r = D(null), i = D(null);
6566
6566
  function o() {
6567
6567
  return {
6568
6568
  name: "sameWidth",
@@ -6665,7 +6665,7 @@ const up = {
6665
6665
  },
6666
6666
  emits: ["update:model-value", "close", "search"],
6667
6667
  setup(e, { emit: a }) {
6668
- const t = e, l = a, r = Qe(), { fieldId: i, labelId: o, errorId: c, hintId: d, invalid: u, resolvedDisabled: v, ariaRequired: b, ariaDescribedBy: p } = Ot(t), m = y(() => `${i.value}-listbox`), h = B(null), f = B(null), { isDictionaryMode: k, htmlInputType: C } = ap({
6668
+ const t = e, l = a, r = Qe(), { fieldId: i, labelId: o, errorId: c, hintId: d, invalid: u, resolvedDisabled: v, ariaRequired: b, ariaDescribedBy: p } = Ot(t), m = y(() => `${i.value}-listbox`), h = D(null), f = D(null), { isDictionaryMode: k, htmlInputType: C } = ap({
6669
6669
  multivalue: () => t.multivalue ?? !1,
6670
6670
  type: () => t.type
6671
6671
  }), { formatValue: S, removeAtIndex: T, clearAll: I, addItem: V } = op({
@@ -6675,7 +6675,7 @@ const up = {
6675
6675
  emit: {
6676
6676
  updateModelValue: (G) => l("update:model-value", G)
6677
6677
  }
6678
- }), { inputValue: D, onInputSubmit: O, onKeyDown: M } = ip({
6678
+ }), { inputValue: B, onInputSubmit: O, onKeyDown: M } = ip({
6679
6679
  type: () => t.type,
6680
6680
  optionLabel: () => t.optionLabel,
6681
6681
  addItem: V
@@ -6766,7 +6766,7 @@ const up = {
6766
6766
  loading: e.loading,
6767
6767
  clearable: e.clearable,
6768
6768
  "option-value": e.optionValue,
6769
- "input-value": n(D),
6769
+ "input-value": n(B),
6770
6770
  "format-value": n(S),
6771
6771
  "is-opened": n(N),
6772
6772
  "label-id": e.label ? n(o) : void 0,
@@ -6776,7 +6776,7 @@ const up = {
6776
6776
  onRemove: n(T),
6777
6777
  onToggleDropdown: n(Y),
6778
6778
  onInputSubmit: n(O),
6779
- onInputChange: ke[0] || (ke[0] = (W) => D.value = W),
6779
+ onInputChange: ke[0] || (ke[0] = (W) => B.value = W),
6780
6780
  onKeyDown: n(M),
6781
6781
  onFocus: ke[1] || (ke[1] = (W) => F.value = !0),
6782
6782
  onBlur: ke[2] || (ke[2] = (W) => F.value = !1),
@@ -6982,7 +6982,7 @@ const up = {
6982
6982
  if (a.hint)
6983
6983
  return r.value;
6984
6984
  }), d = y(() => a.label ? l.value : a.ariaLabelledby);
6985
- return Be(fs, {
6985
+ return De(fs, {
6986
6986
  name: Ie(a, "name"),
6987
6987
  disabled: y(() => !!a.disabled),
6988
6988
  invalid: o,
@@ -7186,7 +7186,7 @@ const up = {
7186
7186
  resolvedName: d,
7187
7187
  ariaRequired: u,
7188
7188
  ariaDescribedBy: v
7189
- } = Ot(t), b = Qe(), p = B(null), m = y({
7189
+ } = Ot(t), b = Qe(), p = D(null), m = y({
7190
7190
  get() {
7191
7191
  return t.modelValue;
7192
7192
  },
@@ -7400,7 +7400,7 @@ const up = {
7400
7400
  }), xp = {
7401
7401
  key: 0,
7402
7402
  class: "vc-switch vc-switch--skeleton"
7403
- }, Np = { class: "vc-switch__track-wrapper" }, Bp = { class: "vc-switch__track-label" }, Dp = ["id", "checked", "disabled", "aria-label", "aria-checked", "aria-invalid", "aria-required", "aria-describedby"], Pp = { key: 0 }, Vp = { key: 1 }, oi = /* @__PURE__ */ Q({
7403
+ }, Np = { class: "vc-switch__track-wrapper" }, Dp = { class: "vc-switch__track-label" }, Bp = ["id", "checked", "disabled", "aria-label", "aria-checked", "aria-invalid", "aria-required", "aria-describedby"], Pp = { key: 0 }, Vp = { key: 1 }, oi = /* @__PURE__ */ Q({
7404
7404
  __name: "vc-switch",
7405
7405
  props: {
7406
7406
  modelValue: { type: Boolean },
@@ -7474,7 +7474,7 @@ const up = {
7474
7474
  } : void 0
7475
7475
  ]), 1032, ["html-for", "required", "error"])) : L("", !0),
7476
7476
  w("div", Np, [
7477
- w("label", Bp, [
7477
+ w("label", Dp, [
7478
7478
  w("input", {
7479
7479
  id: n(r),
7480
7480
  type: "checkbox",
@@ -7489,7 +7489,7 @@ const up = {
7489
7489
  "aria-describedby": n(v),
7490
7490
  tabindex: "0",
7491
7491
  onInput: h
7492
- }, null, 40, Dp),
7492
+ }, null, 40, Bp),
7493
7493
  k[0] || (k[0] = w("span", { class: "vc-switch__slider" }, null, -1))
7494
7494
  ])
7495
7495
  ]),
@@ -7527,7 +7527,7 @@ const up = {
7527
7527
  })
7528
7528
  ], 2));
7529
7529
  }
7530
- }), Cl = /* @__PURE__ */ new WeakMap(), Fp = ["inert", "role", "aria-label"], Up = {
7530
+ }), Cl = /* @__PURE__ */ new WeakMap(), Fp = ["role", "aria-label"], Up = {
7531
7531
  key: 0,
7532
7532
  class: "vc-popover__header"
7533
7533
  }, zp = { class: "vc-popover__title" }, Hp = ["aria-label"], Wp = ["tabindex"], Gp = {
@@ -7548,12 +7548,11 @@ const up = {
7548
7548
  closeOnClickOutside: { type: Boolean, default: !0 },
7549
7549
  closeOnEscape: { type: Boolean, default: !0 },
7550
7550
  role: {},
7551
- ariaLabel: {},
7552
- inert: { type: Boolean }
7551
+ ariaLabel: {}
7553
7552
  },
7554
7553
  emits: ["update:show"],
7555
7554
  setup(e, { expose: a, emit: t }) {
7556
- const l = e, r = t, { teleportTarget: i } = Vt(), o = B(null), c = B(null), d = y(() => l.anchorRef ?? null), u = y(() => {
7555
+ const l = e, r = t, { teleportTarget: i } = Vt(), o = D(null), c = D(null), d = y(() => l.anchorRef ?? null), u = y(() => {
7557
7556
  const C = l.anchorRef;
7558
7557
  return C ? C instanceof Element ? C : C.contextElement ?? null : null;
7559
7558
  }), { floatingStyle: v } = il(d, o, {
@@ -7620,7 +7619,6 @@ const up = {
7620
7619
  ref_key: "floatingRef",
7621
7620
  ref: o,
7622
7621
  class: "vc-popover",
7623
- inert: e.inert || void 0,
7624
7622
  style: he([n(v), b.value]),
7625
7623
  role: e.role,
7626
7624
  "aria-label": e.ariaLabel,
@@ -7676,7 +7674,7 @@ const up = {
7676
7674
  },
7677
7675
  setup(e) {
7678
7676
  const a = e;
7679
- Be(
7677
+ De(
7680
7678
  la,
7681
7679
  y(() => a.expanded)
7682
7680
  );
@@ -7909,7 +7907,7 @@ const up = {
7909
7907
  }
7910
7908
  }), dg = Jp, Pa = ii, vg = ug;
7911
7909
  function fg(e) {
7912
- const a = B(!1), t = B(!1);
7910
+ const a = D(!1), t = D(!1);
7913
7911
  function l() {
7914
7912
  a.value = !0, t.value = !1;
7915
7913
  }
@@ -7941,7 +7939,7 @@ const mg = {
7941
7939
  },
7942
7940
  emits: ["preview", "edit", "remove"],
7943
7941
  setup(e) {
7944
- const a = e, { t } = ze({ useScope: "global" }), { isMobile: l } = Ve(), r = y(() => _o(a.src, a.thumbnailSize) ?? a.src), i = B(!1), o = y(() => i.value ? a.src : r.value), c = fg(Ie(() => o.value)), d = B(!1);
7942
+ const a = e, { t } = ze({ useScope: "global" }), { isMobile: l } = Ve(), r = y(() => _o(a.src, a.thumbnailSize) ?? a.src), i = D(!1), o = y(() => i.value ? a.src : r.value), c = fg(Ie(() => o.value)), d = D(!1);
7945
7943
  oe(
7946
7944
  () => [a.src, a.thumbnailSize],
7947
7945
  () => {
@@ -8061,7 +8059,7 @@ const mg = {
8061
8059
  },
8062
8060
  emits: ["update:modelValue"],
8063
8061
  setup(e, { emit: a }) {
8064
- const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = B(!1), o = y(() => t.options.find((u) => u.value === t.modelValue)), c = () => {
8062
+ const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = D(!1), o = y(() => t.options.find((u) => u.value === t.modelValue)), c = () => {
8065
8063
  t.disabled || (i.value = !i.value);
8066
8064
  }, d = (u) => {
8067
8065
  i.value = !1, l("update:modelValue", u.value);
@@ -8139,10 +8137,10 @@ const mg = {
8139
8137
  }, Ng = {
8140
8138
  key: 0,
8141
8139
  class: "sidebar-header__blade-title"
8142
- }, Bg = {
8140
+ }, Dg = {
8143
8141
  key: 0,
8144
8142
  class: "sidebar-header__toolbar"
8145
- }, Dg = ["aria-label"], Pg = { class: "sidebar-header__notification-bell-wrap" }, Vg = {
8143
+ }, Bg = ["aria-label"], Pg = { class: "sidebar-header__notification-bell-wrap" }, Vg = {
8146
8144
  key: 0,
8147
8145
  class: "sidebar-header__accent"
8148
8146
  }, Fg = {
@@ -8166,7 +8164,7 @@ const mg = {
8166
8164
  },
8167
8165
  emits: ["logo:click", "toggle-menu", "toggle-notifications"],
8168
8166
  setup(e) {
8169
- const a = Ce(bo, B(!1));
8167
+ const a = Ce(bo, D(!1));
8170
8168
  return (t, l) => e.isVisible ? (s(), g("div", {
8171
8169
  key: 0,
8172
8170
  class: X(["sidebar-header", {
@@ -8186,7 +8184,7 @@ const mg = {
8186
8184
  ]),
8187
8185
  e.isMobile && e.showMobileTitle ? (s(), g("p", Ng, U(e.mobileTitle), 1)) : L("", !0)
8188
8186
  ]),
8189
- e.expanded && !e.isMobile ? (s(), g("div", Bg, [
8187
+ e.expanded && !e.isMobile ? (s(), g("div", Dg, [
8190
8188
  w("button", {
8191
8189
  class: "sidebar-header__notification-bell",
8192
8190
  "aria-label": t.$t("COMPONENTS.ORGANISMS.VC_APP.NOTIFICATIONS"),
@@ -8212,7 +8210,7 @@ const mg = {
8212
8210
  }),
8213
8211
  n(a) && !e.isNotificationsOpen ? (s(), g("div", Vg)) : L("", !0)
8214
8212
  ])
8215
- ], 8, Dg),
8213
+ ], 8, Bg),
8216
8214
  t.$slots.actions ? (s(), g("div", Fg, [
8217
8215
  H(t.$slots, "actions")
8218
8216
  ])) : L("", !0),
@@ -8263,7 +8261,7 @@ function n$(e) {
8263
8261
  return r === l || r.startsWith(l + "/");
8264
8262
  }) };
8265
8263
  }
8266
- const Wg = 3, Dn = /* @__PURE__ */ Q({
8264
+ const Wg = 3, Bn = /* @__PURE__ */ Q({
8267
8265
  __name: "VcAppMenu",
8268
8266
  props: {
8269
8267
  expanded: { type: Boolean, default: !0 },
@@ -8271,26 +8269,26 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8271
8269
  },
8272
8270
  emits: ["item:click"],
8273
8271
  setup(e, { emit: a }) {
8274
- const t = e, l = a, r = zt(), { t: i } = ze(), { menuItems: o, menuBadges: c } = ko(), { hasAccess: d } = sl(), u = Ce(Yi, B(!0)), v = [92, 70, 104], b = (D) => v[(D - 1) % v.length], p = y(() => !u.value && !t.searchQuery?.trim()), m = (D) => d(D.permissions), h = (D) => (D.children ?? []).filter((O) => m(O)), f = y(() => o.value.filter((D) => m(D) ? D.children?.length ? h(D).length > 0 : !0 : !1)), k = y(() => {
8275
- const D = t.searchQuery?.toLowerCase().trim();
8276
- return D ? f.value.map((O) => {
8272
+ const t = e, l = a, r = zt(), { t: i } = ze(), { menuItems: o, menuBadges: c } = ko(), { hasAccess: d } = sl(), u = Ce(Yi, D(!0)), v = [92, 70, 104], b = (B) => v[(B - 1) % v.length], p = y(() => !u.value && !t.searchQuery?.trim()), m = (B) => d(B.permissions), h = (B) => (B.children ?? []).filter((O) => m(O)), f = y(() => o.value.filter((B) => m(B) ? B.children?.length ? h(B).length > 0 : !0 : !1)), k = y(() => {
8273
+ const B = t.searchQuery?.toLowerCase().trim();
8274
+ return B ? f.value.map((O) => {
8277
8275
  const M = h(O);
8278
8276
  if (!M.length)
8279
- return i(O.title).toLowerCase().includes(D) ? O : null;
8280
- if (i(O.title).toLowerCase().includes(D)) return O;
8281
- const R = M.filter((A) => i(A.title).toLowerCase().includes(D));
8277
+ return i(O.title).toLowerCase().includes(B) ? O : null;
8278
+ if (i(O.title).toLowerCase().includes(B)) return O;
8279
+ const R = M.filter((A) => i(A.title).toLowerCase().includes(B));
8282
8280
  return R.length ? { ...O, children: R } : null;
8283
8281
  }).filter(Boolean) : f.value;
8284
- }), C = (D) => D.groupId ?? String(D.id ?? D.routeId ?? D.title), S = (D) => {
8285
- l("item:click", D);
8286
- }, T = (D) => {
8287
- if (!D) return !1;
8282
+ }), C = (B) => B.groupId ?? String(B.id ?? B.routeId ?? B.title), S = (B) => {
8283
+ l("item:click", B);
8284
+ }, T = (B) => {
8285
+ if (!B) return !1;
8288
8286
  const O = ci(r);
8289
- return O === D || O.startsWith(D + "/");
8287
+ return O === B || O.startsWith(B + "/");
8290
8288
  };
8291
- function I(D) {
8289
+ function I(B) {
8292
8290
  let O;
8293
- typeof D == "object" && !bt(D) && "content" in D ? O = D : O = { content: D };
8291
+ typeof B == "object" && !bt(B) && "content" in B ? O = B : O = { content: B };
8294
8292
  let M;
8295
8293
  typeof O.content == "function" ? M = O.content() : bt(O.content) ? M = n(O.content) : M = O.content;
8296
8294
  let R = M;
@@ -8309,21 +8307,21 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8309
8307
  };
8310
8308
  }
8311
8309
  const V = y(() => {
8312
- const D = /* @__PURE__ */ new Map(), O = (M) => {
8310
+ const B = /* @__PURE__ */ new Map(), O = (M) => {
8313
8311
  const R = M.routeId ?? M.groupId;
8314
8312
  if (!R) return;
8315
8313
  let A = M.badge;
8316
8314
  if (!A && M.routeId && (A = c.value.get(M.routeId)), !A && M.groupId && (A = c.value.get(M.groupId)), !A) return;
8317
8315
  const _ = I(A);
8318
- _ && D.set(R, _);
8316
+ _ && B.set(R, _);
8319
8317
  };
8320
8318
  for (const M of o.value)
8321
8319
  if (O(M), M.children)
8322
8320
  for (const R of M.children)
8323
8321
  O(R);
8324
- return D;
8322
+ return B;
8325
8323
  });
8326
- return (D, O) => k.value.length || p.value ? (s(), P(n(dg), {
8324
+ return (B, O) => k.value.length || p.value ? (s(), P(n(dg), {
8327
8325
  key: 0,
8328
8326
  expanded: e.expanded,
8329
8327
  class: X(["vc-app-menu", { "vc-app-menu--collapsed": !e.expanded }])
@@ -8337,7 +8335,7 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8337
8335
  "data-test-id": M.routeId,
8338
8336
  "group-id": C(M),
8339
8337
  icon: M.groupIcon || M.icon,
8340
- title: D.$t(M.title),
8338
+ title: B.$t(M.title),
8341
8339
  badge: V.value.get(M.routeId ?? M.groupId ?? "")
8342
8340
  }, {
8343
8341
  default: x(() => [
@@ -8345,7 +8343,7 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8345
8343
  key: R.routeId || R.url || R.id || R.title,
8346
8344
  "data-test-id": R.routeId,
8347
8345
  icon: R.icon,
8348
- title: D.$t(R.title),
8346
+ title: B.$t(R.title),
8349
8347
  badge: V.value.get(R.routeId ?? R.groupId ?? ""),
8350
8348
  active: T(R.url),
8351
8349
  nested: "",
@@ -8357,7 +8355,7 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8357
8355
  key: 1,
8358
8356
  "data-test-id": M.routeId,
8359
8357
  icon: M.groupIcon || M.icon,
8360
- title: D.$t(M.title),
8358
+ title: B.$t(M.title),
8361
8359
  badge: V.value.get(M.routeId ?? M.groupId ?? ""),
8362
8360
  active: T(M.url),
8363
8361
  onClick: (R) => S(M)
@@ -8483,11 +8481,11 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8483
8481
  disabled: { type: Boolean }
8484
8482
  },
8485
8483
  setup(e) {
8486
- const a = B(!1), t = B(null), { isPinned: l, isExpanded: r } = ea(), { isMobile: i, isDesktop: o } = Ve();
8484
+ const a = D(!1), t = D(null), { isPinned: l, isExpanded: r } = ea(), { isMobile: i, isDesktop: o } = Ve();
8487
8485
  function c() {
8488
8486
  a.value = !1;
8489
8487
  }
8490
- Be(Gn, c);
8488
+ De(Gn, c);
8491
8489
  function d() {
8492
8490
  a.value = !a.value;
8493
8491
  }
@@ -8558,7 +8556,7 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8558
8556
  },
8559
8557
  emits: ["item:click"],
8560
8558
  setup(e, { emit: a }) {
8561
- const t = e, l = a, r = Ce(ol, !1), i = B(null), o = B("");
8559
+ const t = e, l = a, r = Ce(ol, !1), i = D(null), o = D("");
8562
8560
  tt(() => {
8563
8561
  $e(() => i.value?.updateScrollState());
8564
8562
  }), oe(
@@ -8595,7 +8593,7 @@ const Wg = 3, Dn = /* @__PURE__ */ Q({
8595
8593
  onItemClick: c,
8596
8594
  searchQuery: o.value
8597
8595
  }, () => [
8598
- $(Dn, {
8596
+ $(Bn, {
8599
8597
  expanded: e.expanded,
8600
8598
  "search-query": o.value,
8601
8599
  "onItem:click": c
@@ -8678,7 +8676,7 @@ function Jl() {
8678
8676
  };
8679
8677
  }
8680
8678
  function rb(e) {
8681
- const { hasAccess: a } = sl(), t = B(""), l = y(() => (t.value ?? "").trim().toLowerCase()), r = y(() => l.value.length > 0), i = y(() => e.appsList.value.filter((u) => a(u.permission))), o = y(() => e.showApplications.value ? r.value ? i.value.filter((u) => [u.title, u.description, u.id, u.relativeUrl].filter(Boolean).join(" ").toLowerCase().includes(l.value)) : i.value : []), c = y(() => r.value ? e.widgets.value.filter((u) => [d(u), u.id, ...u.searchTerms ?? []].join(" ").toLowerCase().includes(l.value)) : e.widgets.value);
8679
+ const { hasAccess: a } = sl(), t = D(""), l = y(() => (t.value ?? "").trim().toLowerCase()), r = y(() => l.value.length > 0), i = y(() => e.appsList.value.filter((u) => a(u.permission))), o = y(() => e.showApplications.value ? r.value ? i.value.filter((u) => [u.title, u.description, u.id, u.relativeUrl].filter(Boolean).join(" ").toLowerCase().includes(l.value)) : i.value : []), c = y(() => r.value ? e.widgets.value.filter((u) => [d(u), u.id, ...u.searchTerms ?? []].join(" ").toLowerCase().includes(l.value)) : e.widgets.value);
8682
8680
  function d(u) {
8683
8681
  return u.title || cb(u.id);
8684
8682
  }
@@ -8730,7 +8728,7 @@ const Va = /* @__PURE__ */ Q({
8730
8728
  }, Ib = {
8731
8729
  key: 0,
8732
8730
  class: "app-hub-content__flyout app-hub-content__flyout--mobile"
8733
- }, xb = { class: "app-hub-content__flyout-header" }, Nb = { class: "app-hub-content__flyout-title" }, Bb = { class: "app-hub-content__flyout-body" }, Fa = 120, _l = 120, Db = 80, Pb = 120, Pn = /* @__PURE__ */ Q({
8731
+ }, xb = { class: "app-hub-content__flyout-header" }, Nb = { class: "app-hub-content__flyout-title" }, Db = { class: "app-hub-content__flyout-body" }, Fa = 120, _l = 120, Bb = 80, Pb = 120, Pn = /* @__PURE__ */ Q({
8734
8732
  __name: "AppHubContent",
8735
8733
  props: {
8736
8734
  appsList: {},
@@ -8739,12 +8737,12 @@ const Va = /* @__PURE__ */ Q({
8739
8737
  },
8740
8738
  emits: ["switch-app"],
8741
8739
  setup(e, { emit: a }) {
8742
- const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = B(null), c = B(null), { items: d } = Ql(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = Jl(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: k } = rb({
8740
+ const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = D(null), c = D(null), { items: d } = Ql(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = Jl(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: k } = rb({
8743
8741
  appsList: Ie(t, "appsList"),
8744
8742
  widgets: d,
8745
8743
  showApplications: Ie(t, "showApplications"),
8746
8744
  mobile: Ie(t, "mobile")
8747
- }), C = B(_l), S = B(_l), T = y(() => !i.value && h.value.length > Fa), I = y(() => f.value.length > Fa), V = y(() => T.value ? h.value.slice(0, C.value) : h.value), D = y(() => I.value ? f.value.slice(0, S.value) : f.value);
8745
+ }), C = D(_l), S = D(_l), T = y(() => !i.value && h.value.length > Fa), I = y(() => f.value.length > Fa), V = y(() => T.value ? h.value.slice(0, C.value) : h.value), B = y(() => I.value ? f.value.slice(0, S.value) : f.value);
8748
8746
  oe(
8749
8747
  () => d.value.map((q) => q.id),
8750
8748
  () => {
@@ -8814,7 +8812,7 @@ const Va = /* @__PURE__ */ Q({
8814
8812
  }
8815
8813
  function z(q) {
8816
8814
  const ne = K(q.container);
8817
- !ne || q.renderLimit.value >= q.totalItems || ne.scrollHeight - ne.scrollTop - ne.clientHeight > Pb || (q.renderLimit.value = Math.min(q.renderLimit.value + Db, q.totalItems), $e(() => Z(q.container)));
8815
+ !ne || q.renderLimit.value >= q.totalItems || ne.scrollHeight - ne.scrollTop - ne.clientHeight > Pb || (q.renderLimit.value = Math.min(q.renderLimit.value + Bb, q.totalItems), $e(() => Z(q.container)));
8818
8816
  }
8819
8817
  function K(q) {
8820
8818
  return q ? q.viewportRef?.value ?? null : null;
@@ -8929,7 +8927,7 @@ const Va = /* @__PURE__ */ Q({
8929
8927
  }, {
8930
8928
  default: x(() => [
8931
8929
  n(f).length ? (s(), g("div", $b, [
8932
- (s(!0), g(J, null, ve(D.value, (ee) => (s(), g("button", {
8930
+ (s(!0), g(J, null, ve(B.value, (ee) => (s(), g("button", {
8933
8931
  key: ee.id,
8934
8932
  type: "button",
8935
8933
  "data-widget-id": ee.id,
@@ -8967,7 +8965,7 @@ const Va = /* @__PURE__ */ Q({
8967
8965
  onClick: n(v)
8968
8966
  }, null, 8, ["onClick"])
8969
8967
  ]),
8970
- w("div", Bb, [
8968
+ w("div", Db, [
8971
8969
  $(Va, { mobile: "" })
8972
8970
  ])
8973
8971
  ])) : L("", !0)
@@ -8982,8 +8980,7 @@ const Va = /* @__PURE__ */ Q({
8982
8980
  show: { type: Boolean },
8983
8981
  anchorRef: { default: null },
8984
8982
  appsList: {},
8985
- showApplications: { type: Boolean, default: !0 },
8986
- inert: { type: Boolean }
8983
+ showApplications: { type: Boolean, default: !0 }
8987
8984
  },
8988
8985
  emits: ["update:show", "switch-app"],
8989
8986
  setup(e, { emit: a }) {
@@ -9010,8 +9007,7 @@ const Va = /* @__PURE__ */ Q({
9010
9007
  width: "560px",
9011
9008
  "max-width": "calc(100vw - 24px)",
9012
9009
  "max-height": 9999,
9013
- "content-scrollable": !1,
9014
- inert: e.inert
9010
+ "content-scrollable": !1
9015
9011
  }, {
9016
9012
  default: x(() => [
9017
9013
  $(Pn, {
@@ -9029,7 +9025,7 @@ const Va = /* @__PURE__ */ Q({
9029
9025
  ]), 1032, ["apps-list", "show-applications"])
9030
9026
  ]),
9031
9027
  _: 3
9032
- }, 8, ["show", "anchor-ref", "inert"]));
9028
+ }, 8, ["show", "anchor-ref"]));
9033
9029
  }
9034
9030
  }), Fb = { class: "vc-notification-template__content" }, Ub = { class: "vc-notification-template__time" }, zb = {
9035
9031
  key: 0,
@@ -9098,7 +9094,7 @@ const Va = /* @__PURE__ */ Q({
9098
9094
  if (c)
9099
9095
  return r.registry.get(c)?.template;
9100
9096
  });
9101
- Be(
9097
+ De(
9102
9098
  Ec,
9103
9099
  y(() => t.notification)
9104
9100
  );
@@ -9181,7 +9177,7 @@ const Va = /* @__PURE__ */ Q({
9181
9177
  },
9182
9178
  emits: ["logo:click", "item:click", "switch-app"],
9183
9179
  setup(e, { emit: a }) {
9184
- const t = a, l = ea(), r = Ce(ol, !1), i = zt(), o = B(null), c = B(!1), d = B(null), u = y(() => !r);
9180
+ const t = a, l = ea(), r = Ce(ol, !1), i = zt(), o = D(null), c = D(!1), d = D(null), u = y(() => !r);
9185
9181
  oe(
9186
9182
  () => i.fullPath,
9187
9183
  () => {
@@ -9277,7 +9273,6 @@ const Va = /* @__PURE__ */ Q({
9277
9273
  ], 2)
9278
9274
  ], 10, Qb),
9279
9275
  $(Vb, {
9280
- inert: e.inertNavigation,
9281
9276
  show: n(l).isMenuOpen.value,
9282
9277
  "anchor-ref": o.value,
9283
9278
  "apps-list": e.appsList,
@@ -9295,11 +9290,10 @@ const Va = /* @__PURE__ */ Q({
9295
9290
  ]),
9296
9291
  key: "0"
9297
9292
  } : void 0
9298
- ]), 1032, ["inert", "show", "anchor-ref", "apps-list", "show-applications"]),
9293
+ ]), 1032, ["show", "anchor-ref", "apps-list", "show-applications"]),
9299
9294
  $(n(ct), {
9300
9295
  show: c.value,
9301
9296
  "onUpdate:show": f[2] || (f[2] = (k) => c.value = k),
9302
- inert: e.inertNavigation,
9303
9297
  "anchor-ref": d.value,
9304
9298
  placement: "right-start",
9305
9299
  width: "320px",
@@ -9309,12 +9303,12 @@ const Va = /* @__PURE__ */ Q({
9309
9303
  $(n(fi))
9310
9304
  ]),
9311
9305
  _: 1
9312
- }, 8, ["show", "inert", "anchor-ref"])
9306
+ }, 8, ["show", "anchor-ref"])
9313
9307
  ], 64));
9314
9308
  }
9315
9309
  });
9316
9310
  function Jb() {
9317
- const e = B([]), a = y(() => e.value), t = (o) => {
9311
+ const e = D([]), a = y(() => e.value), t = (o) => {
9318
9312
  const c = e.value.findIndex((d) => d.id === o.id);
9319
9313
  c >= 0 ? e.value[c] = o : e.value.push(o);
9320
9314
  }, l = (o) => {
@@ -9336,7 +9330,7 @@ function th() {
9336
9330
  if (e)
9337
9331
  return e;
9338
9332
  const a = Jb();
9339
- return Be(In, a), ro() && zn(() => {
9333
+ return De(In, a), ro() && zn(() => {
9340
9334
  }), a;
9341
9335
  }
9342
9336
  function mi() {
@@ -9553,11 +9547,11 @@ const nh = {
9553
9547
  },
9554
9548
  emits: ["item:click", "switch-app", "logo:click"],
9555
9549
  setup(e, { emit: a }) {
9556
- const t = e, l = a, r = B(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Ql(), v = y(
9550
+ const t = e, l = a, r = D(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Ql(), v = y(
9557
9551
  () => u.value.some((Y) => Y.badge === void 0 ? !1 : typeof Y.badge == "function" ? Y.badge() : !!Y.badge)
9558
- ), b = y(() => u.value.length > 0 || !t.disableAppHub && t.appsList.length > 0), p = y(() => b.value && !t.disableMenu), m = B(dt), h = B(!1), f = B(0), k = B(null), C = B("idle");
9552
+ ), b = y(() => u.value.length > 0 || !t.disableAppHub && t.appsList.length > 0), p = y(() => b.value && !t.disableMenu), m = D(dt), h = D(!1), f = D(0), k = D(null), C = D("idle");
9559
9553
  let S = 0, T = 0, I = 0, V = 0;
9560
- const D = y(() => {
9554
+ const B = y(() => {
9561
9555
  const Y = m.value * -50, q = k.value?.clientWidth ?? 0;
9562
9556
  if (h.value && q > 0) {
9563
9557
  const ne = f.value / q * 50;
@@ -9747,7 +9741,7 @@ const nh = {
9747
9741
  }, [
9748
9742
  w("div", {
9749
9743
  class: "mobile-layout__slider",
9750
- style: he(D.value)
9744
+ style: he(B.value)
9751
9745
  }, [
9752
9746
  w("div", wh, [
9753
9747
  e.showSearch ? (s(), g("div", Ch, [
@@ -9767,7 +9761,7 @@ const nh = {
9767
9761
  onItemClick: Z,
9768
9762
  searchQuery: r.value
9769
9763
  }, () => [
9770
- $(Dn, {
9764
+ $(Bn, {
9771
9765
  expanded: !0,
9772
9766
  "search-query": r.value,
9773
9767
  "onItem:click": Z
@@ -9834,7 +9828,7 @@ const nh = {
9834
9828
  onItemClick: Z,
9835
9829
  searchQuery: r.value
9836
9830
  }, () => [
9837
- $(Dn, {
9831
+ $(Bn, {
9838
9832
  expanded: !0,
9839
9833
  "search-query": r.value,
9840
9834
  "onItem:click": Z
@@ -9873,7 +9867,7 @@ function Lh() {
9873
9867
  const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__title" }, Nh = {
9874
9868
  key: 0,
9875
9869
  class: "vc-menu-item__value"
9876
- }, Bh = { class: "tw-p-1" }, en = /* @__PURE__ */ Q({
9870
+ }, Dh = { class: "tw-p-1" }, en = /* @__PURE__ */ Q({
9877
9871
  __name: "settings-menu-item",
9878
9872
  props: {
9879
9873
  title: {},
@@ -9889,13 +9883,13 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
9889
9883
  },
9890
9884
  emits: ["trigger:click", "trigger:hover"],
9891
9885
  setup(e, { expose: a, emit: t }) {
9892
- const l = e, r = t, i = ht(), o = y(() => !i.trigger), c = y(() => o.value ? "button" : "div"), { isMobile: d } = Ve(), u = y(() => !!i.submenu), v = B(!1), { contentRef: b, wrapperStyle: p, isExpanded: m } = Kl();
9886
+ const l = e, r = t, i = ht(), o = y(() => !i.trigger), c = y(() => o.value ? "button" : "div"), { isMobile: d } = Ve(), u = y(() => !!i.submenu), v = D(!1), { contentRef: b, wrapperStyle: p, isExpanded: m } = Kl();
9893
9887
  oe(v, (k) => {
9894
9888
  m.value !== k && (m.value = k);
9895
9889
  }), oe(d, () => {
9896
9890
  v.value = !1;
9897
9891
  });
9898
- const h = B(null), f = () => {
9892
+ const h = D(null), f = () => {
9899
9893
  l.disabled || l.triggerAction === "none" || (u.value && (v.value = !v.value), r("trigger:click"));
9900
9894
  };
9901
9895
  return a({ triggerRef: h }), (k, C) => (s(), g("div", {
@@ -9971,7 +9965,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
9971
9965
  "max-width": "260px"
9972
9966
  }, {
9973
9967
  default: x(() => [
9974
- w("div", Bh, [
9968
+ w("div", Dh, [
9975
9969
  H(k.$slots, "submenu")
9976
9970
  ])
9977
9971
  ]),
@@ -9980,7 +9974,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
9980
9974
  H(k.$slots, "content")
9981
9975
  ], 2));
9982
9976
  }
9983
- }), Dh = /* @__PURE__ */ Q({
9977
+ }), Bh = /* @__PURE__ */ Q({
9984
9978
  __name: "language-selector",
9985
9979
  setup(e) {
9986
9980
  const { availableLocales: a, getLocaleMessage: t } = ze({ useScope: "global" }), { setLocale: l, currentLocale: r } = ti(), i = a.map((d) => ({
@@ -10008,7 +10002,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10008
10002
  _: 1
10009
10003
  }, 8, ["title", "value"]));
10010
10004
  }
10011
- }), Ph = Dh, Vh = /* @__PURE__ */ Q({
10005
+ }), Ph = Bh, Vh = /* @__PURE__ */ Q({
10012
10006
  __name: "theme-selector",
10013
10007
  setup(e) {
10014
10008
  const { currentThemeKey: a, currentLocalizedName: t, themes: l, setTheme: r } = gs(), i = (o) => {
@@ -10043,7 +10037,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10043
10037
  setup(e, { emit: a }) {
10044
10038
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } = Vl();
10045
10039
  Mo({ validateOnMount: !1 });
10046
- const u = Dr(), v = Pr(), b = Ut(), p = vt({
10040
+ const u = Br(), v = Pr(), b = Ut(), p = vt({
10047
10041
  isValid: !1,
10048
10042
  errors: [],
10049
10043
  currentPassword: "",
@@ -10102,7 +10096,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10102
10096
  ref: "passwordField",
10103
10097
  modelValue: p.currentPassword,
10104
10098
  "onUpdate:modelValue": [
10105
- S[0] || (S[0] = (D) => p.currentPassword = D),
10099
+ S[0] || (S[0] = (B) => p.currentPassword = B),
10106
10100
  k
10107
10101
  ],
10108
10102
  class: "tw-mb-4 tw-mt-1 tw-shrink-0",
@@ -10128,7 +10122,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10128
10122
  ref: "newPasswordField",
10129
10123
  modelValue: p.password,
10130
10124
  "onUpdate:modelValue": [
10131
- S[1] || (S[1] = (D) => p.password = D),
10125
+ S[1] || (S[1] = (B) => p.password = B),
10132
10126
  k
10133
10127
  ],
10134
10128
  class: "tw-mb-4 tw-mt-1 tw-shrink-0",
@@ -10154,7 +10148,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10154
10148
  ref: "confirmPasswordField",
10155
10149
  modelValue: p.confirmPassword,
10156
10150
  "onUpdate:modelValue": [
10157
- S[2] || (S[2] = (D) => p.confirmPassword = D),
10151
+ S[2] || (S[2] = (B) => p.confirmPassword = B),
10158
10152
  k
10159
10153
  ],
10160
10154
  class: "tw-mb-4 tw-shrink-0",
@@ -10242,7 +10236,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10242
10236
  });
10243
10237
  function Yh(e) {
10244
10238
  const a = Ce(ji), t = th();
10245
- hs(), Be(ol, e.isEmbedded), e.isEmbedded && Lh(), e.internalRoutes && Be(Xi, e.internalRoutes), e.dynamicModules !== void 0 && Be(ho, e.dynamicModules), e.aiAgentConfig?.url && Ss({
10239
+ hs(), De(ol, e.isEmbedded), e.isEmbedded && Lh(), e.internalRoutes && De(Xi, e.internalRoutes), e.dynamicModules !== void 0 && De(ho, e.dynamicModules), e.aiAgentConfig?.url && Ss({
10246
10240
  config: e.aiAgentConfig,
10247
10241
  addGlobalToolbarButton: e.aiAgentAddGlobalToolbarButton ?? !0,
10248
10242
  isEmbedded: e.isEmbedded
@@ -10266,7 +10260,7 @@ function jh(e) {
10266
10260
  component: Ph,
10267
10261
  group: "preferences",
10268
10262
  order: 20
10269
- }), e.registerSettingsMenuItem({ id: "change-password", component: qh, group: "account", order: 30 }), e.registerSettingsMenuItem({ id: "logout", component: Kh, group: "account", order: 100 }), Be(bo, a.hasUnread);
10263
+ }), e.registerSettingsMenuItem({ id: "change-password", component: qh, group: "account", order: 30 }), e.registerSettingsMenuItem({ id: "logout", component: Kh, group: "account", order: 100 }), De(bo, a.hasUnread);
10270
10264
  }
10271
10265
  const Xh = lt("useShellNavigation");
10272
10266
  function Qh() {
@@ -10288,7 +10282,7 @@ function Qh() {
10288
10282
  }
10289
10283
  const Zh = lt("use-app-hub");
10290
10284
  function Jh() {
10291
- const { hasAccess: e } = sl(), a = B([]);
10285
+ const { hasAccess: e } = sl(), a = D([]);
10292
10286
  async function t() {
10293
10287
  return new Qi();
10294
10288
  }
@@ -10312,7 +10306,7 @@ function Jh() {
10312
10306
  };
10313
10307
  }
10314
10308
  function ey(e) {
10315
- const a = B(!1), t = B(!1), { isAuthenticated: l } = Vl(), { loadHistory: r } = Gl(), { appsList: i, switchApp: o, getApps: c } = Jh();
10309
+ const a = D(!1), t = D(!1), { isAuthenticated: l } = Vl(), { loadHistory: r } = Gl(), { appsList: i, switchApp: o, getApps: c } = Jh();
10316
10310
  return oe(
10317
10311
  [() => e.isReady, l],
10318
10312
  async ([d, u]) => {
@@ -10344,7 +10338,7 @@ const ty = { class: "vc-app__main-content" }, a$ = /* @__PURE__ */ Q({
10344
10338
  () => i?.blades.value.some((_) => i.isMaximized(_.id)) ?? !1
10345
10339
  );
10346
10340
  lt("vc-app").debug("Init vc-app");
10347
- const d = zt(), u = d.query.EmbeddedMode === "true", v = B(null);
10341
+ const d = zt(), u = d.query.EmbeddedMode === "true", v = D(null);
10348
10342
  oe(
10349
10343
  () => d.fullPath,
10350
10344
  () => Nn(() => v.value)
@@ -10355,17 +10349,17 @@ const ty = { class: "vc-app__main-content" }, a$ = /* @__PURE__ */ Q({
10355
10349
  },
10356
10350
  { flush: "post" }
10357
10351
  );
10358
- const b = B();
10359
- Be(yo, b);
10352
+ const b = D();
10353
+ De(yo, b);
10360
10354
  const p = Xv();
10361
10355
  ys();
10362
- const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: k } = ey(a), { handleMenuItemClick: C, openRoot: S } = Qh(), T = Ce(Zi), I = Ce(ho, void 0), V = Ce("aiAgentConfig", void 0), D = Ce("aiAgentAddGlobalToolbarButton", !0), O = Ce(Ji, B(!1));
10356
+ const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: k } = ey(a), { handleMenuItemClick: C, openRoot: S } = Qh(), T = Ce(Zi), I = Ce(ho, void 0), V = Ce("aiAgentConfig", void 0), B = Ce("aiAgentAddGlobalToolbarButton", !0), O = Ce(Ji, D(!1));
10363
10357
  Yh({
10364
10358
  isEmbedded: u,
10365
10359
  internalRoutes: T,
10366
10360
  dynamicModules: I,
10367
10361
  aiAgentConfig: V,
10368
- aiAgentAddGlobalToolbarButton: D
10362
+ aiAgentAddGlobalToolbarButton: B
10369
10363
  }), oe(O, (_) => {
10370
10364
  _ && St.error(
10371
10365
  "Unable to load application modules. Please check your connection and try refreshing the page.",
@@ -10673,7 +10667,7 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
10673
10667
  logoAlt: { default: "Logo" }
10674
10668
  },
10675
10669
  setup(e) {
10676
- const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = B(!1), i = B(!1);
10670
+ const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = D(!1), i = D(!1);
10677
10671
  oe(
10678
10672
  () => a.background,
10679
10673
  (c) => {
@@ -10768,7 +10762,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10768
10762
  },
10769
10763
  emits: ["update:model-value"],
10770
10764
  setup(e, { emit: a }) {
10771
- const t = e, l = a, { te: r, t: i } = ze({ useScope: "global" }), o = B([]), c = B(!1), d = B([]), u = B(t.property), v = B(t.modelValue), b = B([]), p = B(!1), m = B();
10765
+ const t = e, l = a, { te: r, t: i } = ze({ useScope: "global" }), o = D([]), c = D(!1), d = D([]), u = D(t.property), v = D(t.modelValue), b = D([]), p = D(!1), m = D();
10772
10766
  oe(
10773
10767
  () => t.property,
10774
10768
  (O) => {
@@ -10883,7 +10877,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10883
10877
  async function V(O) {
10884
10878
  T(O);
10885
10879
  }
10886
- async function D() {
10880
+ async function B() {
10887
10881
  d.value.length && (o.value = d.value);
10888
10882
  }
10889
10883
  return (O, M) => (s(), P(n(Tl), {
@@ -10911,7 +10905,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10911
10905
  "current-language": e.currentLanguage,
10912
10906
  loading: c.value,
10913
10907
  onSearch: V,
10914
- onClose: D
10908
+ onClose: B
10915
10909
  }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : k.value === "short-text-multivalue" ? (s(), P(n(xt), Le({ key: 1 }, O.$attrs, {
10916
10910
  modelValue: C.value,
10917
10911
  "onUpdate:modelValue": M[1] || (M[1] = (_) => C.value = _),
@@ -10941,7 +10935,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10941
10935
  multivalue: f.value.multivalue,
10942
10936
  loading: c.value,
10943
10937
  onSearch: V,
10944
- onClose: D
10938
+ onClose: B
10945
10939
  }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : k.value === "short-text" ? (s(), P(n(Pe), Le({ key: 3 }, O.$attrs, {
10946
10940
  modelValue: C.value,
10947
10941
  "onUpdate:modelValue": M[3] || (M[3] = (_) => C.value = _),
@@ -11098,7 +11092,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11098
11092
  multivalue: f.value.multivalue,
11099
11093
  loading: c.value,
11100
11094
  onSearch: V,
11101
- onClose: D
11095
+ onClose: B
11102
11096
  }), {
11103
11097
  "selected-item": x((_) => [
11104
11098
  w("div", wy, [
@@ -11144,7 +11138,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11144
11138
  "current-language": e.currentLanguage,
11145
11139
  loading: c.value,
11146
11140
  onSearch: V,
11147
- onClose: D
11141
+ onClose: B
11148
11142
  }), {
11149
11143
  "selected-item": x((_) => [
11150
11144
  w("div", _y, [
@@ -11239,7 +11233,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11239
11233
  },
11240
11234
  emits: ["swiper-init", "swiper-resize", "slides-updated", "sortable-container"],
11241
11235
  setup(e, { emit: a }) {
11242
- const { t } = ze({ useScope: "global" }), l = e, r = a, i = [Io, ec, xo, tc], o = B(), c = B(), d = B();
11236
+ const { t } = ze({ useScope: "global" }), l = e, r = a, i = [Io, ec, xo, tc], o = D(), c = D(), d = D();
11243
11237
  function u(m) {
11244
11238
  d.value = m, o.value && c.value && (m.params.navigation = {
11245
11239
  ...m.params.navigation,
@@ -11336,7 +11330,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11336
11330
  }), Ty = { class: "vc-gallery-preview__header" }, Oy = ["title"], My = ["title"], Ly = { class: "vc-gallery-preview__body" }, Iy = { class: "vc-gallery-preview__stage" }, xy = ["src", "alt"], Ny = {
11337
11331
  key: 0,
11338
11332
  class: "vc-gallery-preview__filmstrip"
11339
- }, By = ["onClick"], Dy = ["src", "alt", "onError"], Py = { class: "vc-gallery-preview__counter" }, Vy = /* @__PURE__ */ Q({
11333
+ }, Dy = ["onClick"], By = ["src", "alt", "onError"], Py = { class: "vc-gallery-preview__counter" }, Vy = /* @__PURE__ */ Q({
11340
11334
  __name: "vc-gallery-preview",
11341
11335
  props: {
11342
11336
  images: { default: () => [] },
@@ -11344,7 +11338,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11344
11338
  },
11345
11339
  emits: ["close"],
11346
11340
  setup(e, { emit: a }) {
11347
- const t = a, l = e, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Ve(), o = B(l.index), c = B(!1), d = [lc], u = [xo], v = B(), b = B(), p = y(() => l.images[o.value]);
11341
+ const t = a, l = e, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Ve(), o = D(l.index), c = D(!1), d = [lc], u = [xo], v = D(), b = D(), p = y(() => l.images[o.value]);
11348
11342
  oe(
11349
11343
  () => l.index,
11350
11344
  (O) => {
@@ -11386,11 +11380,11 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11386
11380
  function V(O) {
11387
11381
  O.key === "Escape" && (O.preventDefault(), t("close"));
11388
11382
  }
11389
- const D = oc(document.body);
11383
+ const B = oc(document.body);
11390
11384
  return tt(() => {
11391
- window.addEventListener("keydown", V), D.value = !0;
11385
+ window.addEventListener("keydown", V), B.value = !0;
11392
11386
  }), He(() => {
11393
- window.removeEventListener("keydown", V), D.value = !1;
11387
+ window.removeEventListener("keydown", V), B.value = !1;
11394
11388
  }), (O, M) => p.value ? (s(), P(n(cl), {
11395
11389
  key: 0,
11396
11390
  "is-mobile-fullscreen": "",
@@ -11509,8 +11503,8 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11509
11503
  loading: "lazy",
11510
11504
  class: "vc-gallery-preview__thumb-img",
11511
11505
  onError: (_) => T(_, R.url)
11512
- }, null, 40, Dy)
11513
- ], 10, By)
11506
+ }, null, 40, By)
11507
+ ], 10, Dy)
11514
11508
  ]),
11515
11509
  _: 2
11516
11510
  }, 1024))), 128))
@@ -11526,7 +11520,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11526
11520
  }
11527
11521
  });
11528
11522
  function pi(e) {
11529
- const a = B(0), { open: t } = jo(
11523
+ const a = D(0), { open: t } = jo(
11530
11524
  y(() => ({
11531
11525
  component: Vy,
11532
11526
  props: {
@@ -11600,7 +11594,7 @@ const Fy = { class: "vc-image-upload" }, Uy = {
11600
11594
  }
11601
11595
  });
11602
11596
  function Hy(e, a) {
11603
- const t = B(), l = B(!1), r = B(), i = y(() => xe(a.disabled) || xe(e).length <= 1);
11597
+ const t = D(), l = D(!1), r = D(), i = y(() => xe(a.disabled) || xe(e).length <= 1);
11604
11598
  let o = null, c = null, d = 0;
11605
11599
  function u(h) {
11606
11600
  d = h.clientX;
@@ -11619,7 +11613,7 @@ function Hy(e, a) {
11619
11613
  document.removeEventListener("pointermove", u, !0), c && (clearInterval(c), c = null);
11620
11614
  }
11621
11615
  function p(h) {
11622
- m(), o = Do.create(h, {
11616
+ m(), o = Bo.create(h, {
11623
11617
  handle: ".vc-gallery-item__drag-handle",
11624
11618
  animation: 250,
11625
11619
  ghostClass: "vc-gallery__item--ghost",
@@ -11691,7 +11685,7 @@ function qy(e, a) {
11691
11685
  return { onUpload: t };
11692
11686
  }
11693
11687
  function Ky(e) {
11694
- const a = B(!1), t = B(!0), l = B();
11688
+ const a = D(!1), t = D(!0), l = D();
11695
11689
  function r() {
11696
11690
  a.value = !a.value;
11697
11691
  }
@@ -11770,7 +11764,7 @@ const Yy = {
11770
11764
  setup(e, { emit: a }) {
11771
11765
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Ve(), o = Qe(), c = y(() => t.variant === "file-upload"), d = y(
11772
11766
  () => t.customText ? { text: t.customText.dragHere, link: t.customText.browse } : void 0
11773
- ), u = B([]);
11767
+ ), u = D([]);
11774
11768
  oe(
11775
11769
  () => t.images,
11776
11770
  (A) => {
@@ -11808,7 +11802,7 @@ const Yy = {
11808
11802
  onUpload: (A, _) => l("upload", A, _)
11809
11803
  }), h = pi(u), f = { sm: "128x128", md: "216x216", lg: "348x348" }, k = y(() => t.thumbnailSize ?? f[t.size]), C = Ky({
11810
11804
  imageCount: y(() => u.value.length)
11811
- }), S = B();
11805
+ }), S = D();
11812
11806
  function T() {
11813
11807
  S.value?.click();
11814
11808
  }
@@ -11816,16 +11810,16 @@ const Yy = {
11816
11810
  const _ = A.target;
11817
11811
  _.files && _.files.length && (m.onUpload(_.files), _.value = "");
11818
11812
  }
11819
- const V = B(!1);
11820
- let D = 0;
11813
+ const V = D(!1);
11814
+ let B = 0;
11821
11815
  function O(A) {
11822
- A.dataTransfer?.types.includes("Files") && (D++, V.value = !0);
11816
+ A.dataTransfer?.types.includes("Files") && (B++, V.value = !0);
11823
11817
  }
11824
11818
  function M(A) {
11825
- A.dataTransfer?.types.includes("Files") && (D--, D <= 0 && (V.value = !1, D = 0));
11819
+ A.dataTransfer?.types.includes("Files") && (B--, B <= 0 && (V.value = !1, B = 0));
11826
11820
  }
11827
11821
  function R(A) {
11828
- V.value = !1, D = 0;
11822
+ V.value = !1, B = 0;
11829
11823
  const _ = A.dataTransfer?.files;
11830
11824
  _ && _.length && m.onUpload(_);
11831
11825
  }
@@ -12058,7 +12052,7 @@ const Yy = {
12058
12052
  },
12059
12053
  variant: y(() => a.variant)
12060
12054
  };
12061
- return Be(Fl, i), (o, c) => (s(), g("div", {
12055
+ return De(Fl, i), (o, c) => (s(), g("div", {
12062
12056
  role: "table",
12063
12057
  class: X(["vc-table-composition", e.variant && `vc-table-composition--${e.variant}`])
12064
12058
  }, [
@@ -12135,7 +12129,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
12135
12129
  const t = e, l = a, r = Ce(Fl, null), i = Ce(
12136
12130
  $o,
12137
12131
  y(() => 0)
12138
- ), o = Ce(Ro, B(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12132
+ ), o = Ce(Ro, D(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12139
12133
  l("click", m);
12140
12134
  }, v = (m) => {
12141
12135
  c.value && l("space-press", m);
@@ -12256,7 +12250,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
12256
12250
  flex: t.width ? `0 0 ${t.width}` : "1 1 0px"
12257
12251
  })), o = (h) => {
12258
12252
  t.sortable && l("sort", h);
12259
- }, c = B(!1), d = (h) => {
12253
+ }, c = D(!1), d = (h) => {
12260
12254
  c.value = !0, l("resizeStart", t.columnId, h);
12261
12255
  const f = () => {
12262
12256
  c.value = !1, document.removeEventListener("mouseup", f);
@@ -12328,7 +12322,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
12328
12322
  ])], 34)) : L("", !0)
12329
12323
  ], 46, hw));
12330
12324
  }
12331
- }), _w = ["data-column-id"], kw = 2, Dl = /* @__PURE__ */ Q({
12325
+ }), _w = ["data-column-id"], kw = 2, Bl = /* @__PURE__ */ Q({
12332
12326
  __name: "TableCell",
12333
12327
  props: {
12334
12328
  width: {},
@@ -12489,7 +12483,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12489
12483
  _: 1
12490
12484
  }, 8, ["show", "anchor-ref", "title"]));
12491
12485
  }
12492
- }), Bw = ["title", "aria-expanded", "onKeydown"], Dw = ["tabindex", "aria-disabled", "onClick", "onKeydown"], Pw = { class: "vc-table-row-actions__dropdown-text" }, Vw = /* @__PURE__ */ Q({
12486
+ }), Dw = ["title", "aria-expanded", "onKeydown"], Bw = ["tabindex", "aria-disabled", "onClick", "onKeydown"], Pw = { class: "vc-table-row-actions__dropdown-text" }, Vw = /* @__PURE__ */ Q({
12493
12487
  __name: "TableRowActions",
12494
12488
  props: {
12495
12489
  actions: {},
@@ -12501,7 +12495,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12501
12495
  },
12502
12496
  emits: ["action"],
12503
12497
  setup(e, { emit: a }) {
12504
- const t = e, l = a, r = Ce(Fl, null), i = B(!1), o = B(!1), c = B(null), d = B(null), u = B(null), { teleportTarget: v } = Vt(), b = y(() => t.actions?.length ? t.position === "column" ? !0 : t.visible !== void 0 ? t.visible : r && t.rowIndex !== void 0 ? r.selectedRowIndex.value === t.rowIndex : !1 : !1), p = y(() => t.actions?.filter((E) => !E.hidden) || []), m = y(() => t.mode === "dropdown"), h = y(() => m.value ? [] : p.value.slice(0, t.maxQuickActions)), f = y(() => m.value ? p.value : p.value.slice(t.maxQuickActions)), k = y(() => m.value || f.value.length > 0), { floatingStyle: C } = il(c, d, {
12498
+ const t = e, l = a, r = Ce(Fl, null), i = D(!1), o = D(!1), c = D(null), d = D(null), u = D(null), { teleportTarget: v } = Vt(), b = y(() => t.actions?.length ? t.position === "column" ? !0 : t.visible !== void 0 ? t.visible : r && t.rowIndex !== void 0 ? r.selectedRowIndex.value === t.rowIndex : !1 : !1), p = y(() => t.actions?.filter((E) => !E.hidden) || []), m = y(() => t.mode === "dropdown"), h = y(() => m.value ? [] : p.value.slice(0, t.maxQuickActions)), f = y(() => m.value ? p.value : p.value.slice(t.maxQuickActions)), k = y(() => m.value || f.value.length > 0), { floatingStyle: C } = il(c, d, {
12505
12499
  placement: "bottom-end",
12506
12500
  middleware: () => [Yn(4), Kn(), Ul({ padding: 8 })]
12507
12501
  });
@@ -12520,7 +12514,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12520
12514
  $e(() => {
12521
12515
  d.value?.querySelectorAll('[role="menuitem"]:not([aria-disabled])')?.[0]?.focus();
12522
12516
  });
12523
- }, D = async () => {
12517
+ }, B = async () => {
12524
12518
  i.value || (i.value = !0, await $e(), o.value = !0), V();
12525
12519
  }, O = (E) => {
12526
12520
  const N = Array.from(
@@ -12598,7 +12592,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12598
12592
  "aria-haspopup": "menu",
12599
12593
  "aria-expanded": i.value,
12600
12594
  onClick: ue(S, ["stop", "prevent"]),
12601
- onKeydown: Ae(ue(D, ["prevent"]), ["down"]),
12595
+ onKeydown: Ae(ue(B, ["prevent"]), ["down"]),
12602
12596
  onMousedown: N[0] || (N[0] = ue(() => {
12603
12597
  }, ["stop"]))
12604
12598
  }, [
@@ -12606,7 +12600,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12606
12600
  icon: "lucide-ellipsis-vertical",
12607
12601
  size: "s"
12608
12602
  })
12609
- ], 40, Bw),
12603
+ ], 40, Dw),
12610
12604
  (s(), P(gt, { to: n(v) }, [
12611
12605
  o.value ? (s(), g("div", {
12612
12606
  key: 0,
@@ -12650,7 +12644,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12650
12644
  class: "vc-table-row-actions__dropdown-icon"
12651
12645
  }, null, 8, ["icon"])) : L("", !0),
12652
12646
  w("span", Pw, U(F.title || F.name), 1)
12653
- ], 42, Dw))), 128))
12647
+ ], 42, Bw))), 128))
12654
12648
  ], 36)) : L("", !0)
12655
12649
  ]),
12656
12650
  _: 1
@@ -12787,7 +12781,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12787
12781
  setup(e, { expose: a, emit: t }) {
12788
12782
  const l = t;
12789
12783
  ht();
12790
- const r = B(null), i = B(!1), o = (u) => {
12784
+ const r = D(null), i = D(!1), o = (u) => {
12791
12785
  l("update:modelValue", u ?? "");
12792
12786
  }, c = () => {
12793
12787
  i.value = !i.value, l("filterToggle", i.value);
@@ -12942,7 +12936,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12942
12936
  },
12943
12937
  emits: ["apply", "clear"],
12944
12938
  setup(e, { emit: a }) {
12945
- const t = e, l = a, r = B(null), i = B(null), o = B(null), c = B(null), d = B(!1), u = B(null), v = B(""), b = B(""), p = () => {
12939
+ const t = e, l = a, r = D(null), i = D(null), o = D(null), c = D(null), d = D(!1), u = D(null), v = D(""), b = D(""), p = () => {
12946
12940
  if (t.filterType === "dateRange" && t.modelValue && typeof t.modelValue == "object" && !Array.isArray(t.modelValue)) {
12947
12941
  const N = t.modelValue;
12948
12942
  v.value = N.start ?? "", b.value = N.end ?? "", u.value = null;
@@ -12957,7 +12951,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12957
12951
  }, k = y(() => {
12958
12952
  const N = t.modelValue;
12959
12953
  return N == null || N === "" || Array.isArray(N) && N.length === 0 ? !1 : typeof N == "object" && !Array.isArray(N) ? Object.values(N).some((F) => F != null && F !== "") : !0;
12960
- }), C = B({}), S = () => {
12954
+ }), C = D({}), S = () => {
12961
12955
  if (!r.value || !i.value) return;
12962
12956
  const N = r.value.getBoundingClientRect(), F = i.value.getBoundingClientRect();
12963
12957
  let z = N.bottom + 4, K = N.left;
@@ -12989,7 +12983,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12989
12983
  if (F.length === 0) return;
12990
12984
  const z = F[0], K = F[F.length - 1];
12991
12985
  N.shiftKey && document.activeElement === z ? (N.preventDefault(), K.focus()) : !N.shiftKey && document.activeElement === K && (N.preventDefault(), z.focus());
12992
- }, D = () => {
12986
+ }, B = () => {
12993
12987
  const N = {};
12994
12988
  if (t.filterType === "dateRange" && t.rangeFields)
12995
12989
  v.value && (N[t.rangeFields[0]] = v.value), b.value && (N[t.rangeFields[1]] = b.value);
@@ -12999,7 +12993,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12999
12993
  }
13000
12994
  return N;
13001
12995
  }, O = () => {
13002
- l("apply", D()), I();
12996
+ l("apply", B()), I();
13003
12997
  }, M = () => {
13004
12998
  u.value = null, v.value = "", b.value = "", l("clear"), I();
13005
12999
  }, R = (N) => {
@@ -13217,7 +13211,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13217
13211
  for (const M of t.filters)
13218
13212
  O[M.id] = i(M.filter);
13219
13213
  return O;
13220
- }), v = (O) => u.value[O] || "none", b = B({}), p = () => {
13214
+ }), v = (O) => u.value[O] || "none", b = D({}), p = () => {
13221
13215
  const O = {};
13222
13216
  for (const M of t.filters)
13223
13217
  O[M.id] = t.modelValue[M.id] ?? null;
@@ -13293,7 +13287,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13293
13287
  }, V = () => {
13294
13288
  const O = T();
13295
13289
  l("update:modelValue", { ...b.value }), l("apply", O), I();
13296
- }, D = () => {
13290
+ }, B = () => {
13297
13291
  const O = {};
13298
13292
  for (const M of t.filters)
13299
13293
  O[M.id] = null;
@@ -13316,7 +13310,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13316
13310
  $(n(Se), {
13317
13311
  variant: "outline",
13318
13312
  size: "sm",
13319
- onClick: D
13313
+ onClick: B
13320
13314
  }, {
13321
13315
  default: x(() => [
13322
13316
  fe(U(O.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
@@ -13401,7 +13395,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13401
13395
  $(n(Se), {
13402
13396
  variant: "outline",
13403
13397
  size: "sm",
13404
- onClick: D
13398
+ onClick: B
13405
13399
  }, {
13406
13400
  default: x(() => [
13407
13401
  fe(U(O.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
@@ -13505,10 +13499,10 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13505
13499
  }), N0 = {
13506
13500
  key: 2,
13507
13501
  class: "vc-cell-renderer__row-reorder-placeholder"
13508
- }, B0 = {
13502
+ }, D0 = {
13509
13503
  key: 3,
13510
13504
  class: "vc-cell-renderer__row-editor"
13511
- }, D0 = {
13505
+ }, B0 = {
13512
13506
  key: 5,
13513
13507
  class: "vc-cell-renderer__body-slot"
13514
13508
  }, P0 = /* @__PURE__ */ Q({
@@ -13588,7 +13582,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13588
13582
  ]),
13589
13583
  _: 1
13590
13584
  }, 8, ["aria-label", "aria-expanded", "data-is-expanded"])) : L("", !0)
13591
- ], 64)) : e.column.props.rowReorder ? (s(), g("div", N0)) : e.column.props.rowEditor ? (s(), g("div", B0, [
13585
+ ], 64)) : e.column.props.rowReorder ? (s(), g("div", N0)) : e.column.props.rowEditor ? (s(), g("div", D0, [
13592
13586
  e.isRowEditing ? (s(), g(J, { key: 0 }, [
13593
13587
  $(n(Se), {
13594
13588
  variant: "success",
@@ -13638,7 +13632,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13638
13632
  editorCancelCallback: o
13639
13633
  }
13640
13634
  }, null, 8, ["slot-fn", "scope"])
13641
- ], 32)) : e.column.slots.body || e.column.slots.default ? (s(), g("div", D0, [
13635
+ ], 32)) : e.column.slots.body || e.column.slots.default ? (s(), g("div", B0, [
13642
13636
  $(n(ll), {
13643
13637
  "slot-fn": e.column.slots.body || e.column.slots.default,
13644
13638
  scope: {
@@ -13776,7 +13770,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13776
13770
  onMouseleave: c
13777
13771
  }, Ne({
13778
13772
  default: x(() => [
13779
- e.showSelectionCell ? (s(), P(Dl, {
13773
+ e.showSelectionCell ? (s(), P(Bl, {
13780
13774
  key: 0,
13781
13775
  class: "vc-data-table__selection-cell",
13782
13776
  "line-clamp": 0,
@@ -13800,7 +13794,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13800
13794
  ]),
13801
13795
  _: 1
13802
13796
  })) : L("", !0),
13803
- (s(!0), g(J, null, ve(e.columns, (V) => (s(), P(Dl, {
13797
+ (s(!0), g(J, null, ve(e.columns, (V) => (s(), P(Bl, {
13804
13798
  key: V.props.id,
13805
13799
  "column-id": V.props.id,
13806
13800
  width: e.getColumnWidth(V.props),
@@ -13808,7 +13802,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13808
13802
  "cell-class": V.props.bodyClass,
13809
13803
  "line-clamp": V.props.lineClamp,
13810
13804
  style: he(e.getCellStyle(V.props)),
13811
- onClick: (D) => C(V)
13805
+ onClick: (B) => C(V)
13812
13806
  }, {
13813
13807
  default: x(() => [
13814
13808
  $(P0, {
@@ -13830,9 +13824,9 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13830
13824
  onRowEdit: b,
13831
13825
  onRowSave: p,
13832
13826
  onRowCancel: m,
13833
- onEditComplete: (D) => h(V.props.field || V.props.id, D),
13834
- onEditCancel: (D) => f(V.props.field || V.props.id),
13835
- onCellValueChange: (D) => k(V.props.field || V.props.id, D)
13827
+ onEditComplete: (B) => h(V.props.field || V.props.id, B),
13828
+ onEditCancel: (B) => f(V.props.field || V.props.id),
13829
+ onCellValueChange: (B) => k(V.props.field || V.props.id, B)
13836
13830
  }, null, 8, ["column", "item", "editing-row-data", "index", "is-cell-editing", "is-row-editing", "is-selected", "is-selectable", "is-expanded", "can-expand", "expanded-icon", "collapsed-icon", "is-new-row", "onEditComplete", "onEditCancel", "onCellValueChange"])
13837
13831
  ]),
13838
13832
  _: 2
@@ -13891,7 +13885,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13891
13885
  return (l, r) => (s(), g("div", q0, [
13892
13886
  e.columns.length > 0 ? (s(!0), g(J, { key: 0 }, ve(e.rows, (i) => (s(), P(na, { key: i }, {
13893
13887
  default: x(() => [
13894
- e.showSelectionCell ? (s(), P(Dl, {
13888
+ e.showSelectionCell ? (s(), P(Bl, {
13895
13889
  key: 0,
13896
13890
  class: "vc-data-table__selection-cell",
13897
13891
  "line-clamp": 0
@@ -13905,7 +13899,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13905
13899
  ]),
13906
13900
  _: 1
13907
13901
  })) : L("", !0),
13908
- (s(!0), g(J, null, ve(e.columns, (o) => (s(), P(Dl, {
13902
+ (s(!0), g(J, null, ve(e.columns, (o) => (s(), P(Bl, {
13909
13903
  key: o.props.id,
13910
13904
  width: e.getColumnWidth(o.props),
13911
13905
  style: he(e.getCellStyle(o.props)),
@@ -13971,7 +13965,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13971
13965
  for (const E of l.groupedData)
13972
13966
  _.set(E.key, E.count);
13973
13967
  return _;
13974
- }), d = (_) => l.getItemGroupKey?.(_) ?? "", u = (_) => _ === 0 || d(o.value[_]) !== d(o.value[_ - 1]), v = (_) => _ === o.value.length - 1 || d(o.value[_]) !== d(o.value[_ + 1]), b = (_, E) => l.groupingEnabled ? l.getGlobalIndex(_) : E, p = (_, E) => r("group-toggle", _, E), m = (_, E, N) => r("row-click", _, E, N), h = (_) => r("row-mouseenter", _), f = () => r("row-mouseleave"), k = (_) => r("selection-change", _), C = (_, E, N) => r("expand-toggle", _, E, N), S = (_, E) => r("row-edit", _, E), T = (_, E) => r("row-save", _, E), I = (_, E) => r("row-cancel", _, E), V = (_, E, N, F) => r("edit-complete", _, E, N, F), D = (_, E, N) => r("edit-cancel", _, E, N), O = (_, E, N) => r("cell-value-change", _, E, N), M = (_, E, N, F) => r("cell-click", _, E, N, F), R = B(null), A = y(() => R.value?.$el ?? void 0);
13968
+ }), d = (_) => l.getItemGroupKey?.(_) ?? "", u = (_) => _ === 0 || d(o.value[_]) !== d(o.value[_ - 1]), v = (_) => _ === o.value.length - 1 || d(o.value[_]) !== d(o.value[_ + 1]), b = (_, E) => l.groupingEnabled ? l.getGlobalIndex(_) : E, p = (_, E) => r("group-toggle", _, E), m = (_, E, N) => r("row-click", _, E, N), h = (_) => r("row-mouseenter", _), f = () => r("row-mouseleave"), k = (_) => r("selection-change", _), C = (_, E, N) => r("expand-toggle", _, E, N), S = (_, E) => r("row-edit", _, E), T = (_, E) => r("row-save", _, E), I = (_, E) => r("row-cancel", _, E), V = (_, E, N, F) => r("edit-complete", _, E, N, F), B = (_, E, N) => r("edit-cancel", _, E, N), O = (_, E, N) => r("cell-value-change", _, E, N), M = (_, E, N, F) => r("cell-click", _, E, N, F), R = D(null), A = y(() => R.value?.$el ?? void 0);
13975
13969
  return a({ listEl: A }), (_, E) => (s(), g("div", {
13976
13970
  class: "vc-data-table__body",
13977
13971
  role: e.items.length ? "rowgroup" : "presentation",
@@ -14027,7 +14021,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14027
14021
  onRowSave: () => T(N, b(N, F)),
14028
14022
  onRowCancel: () => I(N, b(N, F)),
14029
14023
  onEditComplete: (z, K) => V(N, z, b(N, F), K),
14030
- onEditCancel: (z) => D(N, z, b(N, F)),
14024
+ onEditCancel: (z) => B(N, z, b(N, F)),
14031
14025
  onCellValueChange: (z, K) => O(z, b(N, F), K),
14032
14026
  onCellClick: (z) => M(N, z.props.field || z.props.id, b(N, F), z),
14033
14027
  onGroupToggle: (z) => p(d(N), z)
@@ -14069,11 +14063,11 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14069
14063
  isEditing: { type: Boolean }
14070
14064
  },
14071
14065
  setup(e) {
14072
- const a = e, t = B(null), l = B(!1), r = () => {
14066
+ const a = e, t = D(null), l = D(!1), r = () => {
14073
14067
  const i = t.value;
14074
14068
  l.value = !!i && i.scrollWidth > i.clientWidth;
14075
14069
  };
14076
- return Bo(t, r), oe(
14070
+ return Do(t, r), oe(
14077
14071
  () => [a.title, a.required, a.isEditing],
14078
14072
  () => requestAnimationFrame(r)
14079
14073
  ), (i, o) => (s(), P(n(pt), {
@@ -14132,7 +14126,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14132
14126
  },
14133
14127
  emits: ["select-all", "sort", "resize-start", "reorder-start", "reorder-over", "reorder-drop", "filter-apply", "filter-clear", "column-switcher-click"],
14134
14128
  setup(e, { expose: a, emit: t }) {
14135
- const l = t, r = B(null);
14129
+ const l = t, r = D(null);
14136
14130
  a({
14137
14131
  /** The column switcher action element (for dropdown anchor positioning) */
14138
14132
  columnSwitcherEl: y(() => r.value)
@@ -14237,7 +14231,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14237
14231
  updateStartDate: T,
14238
14232
  endDate: I,
14239
14233
  updateEndDate: V,
14240
- applyFilter: D,
14234
+ applyFilter: B,
14241
14235
  clearFilter: O
14242
14236
  }) => [
14243
14237
  $(n(ll), {
@@ -14250,7 +14244,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14250
14244
  updateStartDate: T,
14251
14245
  endDate: I,
14252
14246
  updateEndDate: V,
14253
- applyFilter: D,
14247
+ applyFilter: B,
14254
14248
  clearFilter: O
14255
14249
  }
14256
14250
  }, null, 8, ["slot-fn", "scope"])
@@ -14421,7 +14415,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14421
14415
  }
14422
14416
  }), yi = Symbol();
14423
14417
  function c1() {
14424
- const e = B(null);
14418
+ const e = D(null);
14425
14419
  function a(l) {
14426
14420
  e.value = l;
14427
14421
  }
@@ -14429,7 +14423,7 @@ function c1() {
14429
14423
  activeSwipeId: e,
14430
14424
  setActiveSwipe: a
14431
14425
  };
14432
- return Be(yi, t), t;
14426
+ return De(yi, t), t;
14433
14427
  }
14434
14428
  function u1() {
14435
14429
  const e = Ce(yi);
@@ -14481,7 +14475,7 @@ const d1 = {
14481
14475
  function i(re, ie) {
14482
14476
  l("cell-value-change", re.field || re.id, ie.value);
14483
14477
  }
14484
- const o = B(null), c = B(null), d = B(!1), u = B(null);
14478
+ const o = D(null), c = D(null), d = D(!1), u = D(null);
14485
14479
  function v() {
14486
14480
  !t.selectionMode || p.value !== 0 || h.value || (d.value = !0, u.value = setTimeout(() => {
14487
14481
  d.value && l("select", t.item, t.index), d.value = !1;
@@ -14490,7 +14484,7 @@ const d1 = {
14490
14484
  function b() {
14491
14485
  u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
14492
14486
  }
14493
- const p = B(0), m = B(0), h = B(!1), f = B(!1), k = B(null), C = B(0), S = B(0), T = B(0), I = B(0), V = B(0), D = B(0), O = B(null), { activeSwipeId: M, setActiveSwipe: R } = u1(), A = y(() => t.item[t.dataKey] ?? `item-${t.index}`), _ = y(() => t.anySelected && t.selectionMode !== void 0), E = y(() => t.anySelected ? [] : t.actions ?? []), N = y(() => E.value.length > 2), F = y(() => E.value.slice(0, 2)), z = y(() => t.actions ?? []), K = y(() => {
14487
+ const p = D(0), m = D(0), h = D(!1), f = D(!1), k = D(null), C = D(0), S = D(0), T = D(0), I = D(0), V = D(0), B = D(0), O = D(null), { activeSwipeId: M, setActiveSwipe: R } = u1(), A = y(() => t.item[t.dataKey] ?? `item-${t.index}`), _ = y(() => t.anySelected && t.selectionMode !== void 0), E = y(() => t.anySelected ? [] : t.actions ?? []), N = y(() => E.value.length > 2), F = y(() => E.value.slice(0, 2)), z = y(() => t.actions ?? []), K = y(() => {
14494
14488
  const re = E.value.length;
14495
14489
  return Math.min(re, re > 2 ? 3 : 2) * 70;
14496
14490
  });
@@ -14511,7 +14505,7 @@ const d1 = {
14511
14505
  function de(re) {
14512
14506
  if (h.value || E.value.length === 0) return;
14513
14507
  const ie = re.touches[0];
14514
- C.value = ie.clientX, S.value = ie.clientY, T.value = p.value, I.value = 0, V.value = Date.now(), D.value = ie.clientX, O.value = null, R(String(A.value));
14508
+ C.value = ie.clientX, S.value = ie.clientY, T.value = p.value, I.value = 0, V.value = Date.now(), B.value = ie.clientX, O.value = null, R(String(A.value));
14515
14509
  }
14516
14510
  function Y(re) {
14517
14511
  if (h.value || E.value.length === 0 || M.value !== String(A.value)) return;
@@ -14527,7 +14521,7 @@ const d1 = {
14527
14521
  return;
14528
14522
  re.preventDefault();
14529
14523
  const ye = Date.now(), Ee = ye - V.value;
14530
- Ee > 0 && (I.value = (te - D.value) / Ee), V.value = ye, D.value = te;
14524
+ Ee > 0 && (I.value = (te - B.value) / Ee), V.value = ye, B.value = te;
14531
14525
  let Re = T.value + me;
14532
14526
  if (Re < -K.value) {
14533
14527
  const We = Re + K.value;
@@ -14916,13 +14910,13 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
14916
14910
  },
14917
14911
  emits: ["refresh"],
14918
14912
  setup(e, { expose: a, emit: t }) {
14919
- const l = e, { t: r } = ze({ useScope: "global" }), i = t, { isMobile: o } = Ve(), c = B(null), d = B(0), u = B(!1), v = B(!1), b = B(!1), p = B(null), m = B(0), h = B(0), f = B(0), k = B(0), C = y(() => l.enabled && o.value && !l.refreshing), S = y(() => l.refreshing ? "lucide-refresh-cw" : "lucide-arrow-down"), T = y(() => ({
14913
+ const l = e, { t: r } = ze({ useScope: "global" }), i = t, { isMobile: o } = Ve(), c = D(null), d = D(0), u = D(!1), v = D(!1), b = D(!1), p = D(null), m = D(0), h = D(0), f = D(0), k = D(0), C = y(() => l.enabled && o.value && !l.refreshing), S = y(() => l.refreshing ? "lucide-refresh-cw" : "lucide-arrow-down"), T = y(() => ({
14920
14914
  "vc-pull-to-refresh__icon--rotate": v.value && !l.refreshing,
14921
14915
  "vc-pull-to-refresh__icon--spin": l.refreshing
14922
14916
  })), I = y(() => l.refreshing ? l.refreshingText ?? r("COMPONENTS.ORGANISMS.VC_TABLE.REFRESHING") : v.value ? l.releaseText ?? r("COMPONENTS.ORGANISMS.VC_TABLE.RELEASE_TO_REFRESH") : l.pullText ?? r("COMPONENTS.ORGANISMS.VC_TABLE.PULL_TO_REFRESH")), V = y(() => ({
14923
14917
  transform: `translateY(${Math.min(d.value, Sn + 20) - Sn}px)`,
14924
14918
  opacity: Math.min(d.value / l.threshold, 1)
14925
- })), D = y(() => ({
14919
+ })), B = y(() => ({
14926
14920
  transform: `translateY(${d.value}px)`
14927
14921
  }));
14928
14922
  function O() {
@@ -15004,13 +14998,13 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15004
14998
  ], 4),
15005
14999
  w("div", {
15006
15000
  class: "vc-pull-to-refresh__content",
15007
- style: he(D.value)
15001
+ style: he(B.value)
15008
15002
  }, [
15009
15003
  H(E.$slots, "default")
15010
15004
  ], 4)
15011
15005
  ], 544));
15012
15006
  }
15013
- }), B1 = { class: "vc-data-table-mobile-view" }, D1 = {
15007
+ }), D1 = { class: "vc-data-table-mobile-view" }, B1 = {
15014
15008
  key: 0,
15015
15009
  class: "vc-data-table-mobile-view__empty"
15016
15010
  }, P1 = { class: "vc-data-table-mobile-view__empty-content" }, V1 = { class: "vc-data-table-mobile-view__empty-text" }, F1 = /* @__PURE__ */ Q({
@@ -15064,8 +15058,8 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15064
15058
  icon: V.icon || "lucide-ellipsis",
15065
15059
  type: m(V.variant),
15066
15060
  disabled: V.disabled,
15067
- clickHandler: (D, O) => {
15068
- V.clickHandler?.(D, O);
15061
+ clickHandler: (B, O) => {
15062
+ V.clickHandler?.(B, O);
15069
15063
  }
15070
15064
  })) : [];
15071
15065
  }
@@ -15090,7 +15084,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15090
15084
  function k(T, I, V) {
15091
15085
  r("action", T, I, V);
15092
15086
  }
15093
- const C = B(null), S = y(() => C.value ?? void 0);
15087
+ const C = D(null), S = y(() => C.value ?? void 0);
15094
15088
  return a({
15095
15089
  hasMobileColumns: c,
15096
15090
  mobileLayout: o,
@@ -15104,8 +15098,8 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15104
15098
  onRefresh: I[0] || (I[0] = (V) => r("refresh"))
15105
15099
  }, {
15106
15100
  default: x(() => [
15107
- w("div", B1, [
15108
- !e.loading && e.items.length === 0 ? (s(), g("div", D1, [
15101
+ w("div", D1, [
15102
+ !e.loading && e.items.length === 0 ? (s(), g("div", B1, [
15109
15103
  H(T.$slots, "empty", {}, () => [
15110
15104
  w("div", P1, [
15111
15105
  $(n(le), {
@@ -15132,10 +15126,10 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15132
15126
  ref: C,
15133
15127
  class: "vc-data-table-mobile-view__list"
15134
15128
  }, [
15135
- (s(!0), g(J, null, ve(e.items, (V, D) => (s(), P(k1, {
15136
- key: b(V, D),
15129
+ (s(!0), g(J, null, ve(e.items, (V, B) => (s(), P(k1, {
15130
+ key: b(V, B),
15137
15131
  item: V,
15138
- index: D,
15132
+ index: B,
15139
15133
  reorderable: e.reorderable,
15140
15134
  layout: n(o),
15141
15135
  "is-selected": u(V),
@@ -15148,7 +15142,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15148
15142
  "action-sheet-title": e.actionSheetTitle,
15149
15143
  "cancel-label": e.cancelLabel,
15150
15144
  "is-inline-editing": e.isInlineEditing,
15151
- "is-new-row": e.newRowIndices?.has(D),
15145
+ "is-new-row": e.newRowIndices?.has(B),
15152
15146
  expandable: e.canExpandRow(V),
15153
15147
  "is-expanded": e.isRowExpanded(V),
15154
15148
  "expanded-icon": e.expandedIcon,
@@ -15156,7 +15150,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15156
15150
  onClick: h,
15157
15151
  onSelect: f,
15158
15152
  onAction: k,
15159
- onCellValueChange: (O, M) => r("cell-value-change", O, D, M),
15153
+ onCellValueChange: (O, M) => r("cell-value-change", O, B, M),
15160
15154
  onExpandToggle: (O, M, R) => r("expand-toggle", O, M, R)
15161
15155
  }, Ne({ _: 2 }, [
15162
15156
  T.$slots.expansion ? {
@@ -15164,7 +15158,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15164
15158
  fn: x(() => [
15165
15159
  H(T.$slots, "expansion", {
15166
15160
  data: V,
15167
- index: D
15161
+ index: B
15168
15162
  })
15169
15163
  ]),
15170
15164
  key: "0"
@@ -15330,7 +15324,7 @@ function K1(e) {
15330
15324
  onResizeStart: c,
15331
15325
  onResizeEnd: d,
15332
15326
  containerEl: u
15333
- } = e, v = B(!1);
15327
+ } = e, v = D(!1);
15334
15328
  let b = 0, p = 0, m = {}, h = "", f = [];
15335
15329
  const k = (z) => {
15336
15330
  const K = {};
@@ -15347,12 +15341,12 @@ function K1(e) {
15347
15341
  const K = C(), Z = K.indexOf(z);
15348
15342
  return Z < 0 ? !1 : (h = z, m = k(a.value.specs), f = K.slice(Z + 1).filter((de) => !!m[de]), v.value = !0, c?.(), !0);
15349
15343
  }, T = (z) => {
15350
- !v.value || !h || D(z);
15344
+ !v.value || !h || B(z);
15351
15345
  }, I = () => {
15352
15346
  v.value = !1, h = "", m = {}, f = [];
15353
15347
  }, V = (z, K) => {
15354
15348
  S(z) && (b = K.pageX, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", O), document.addEventListener("mouseup", M));
15355
- }, D = (z) => {
15349
+ }, B = (z) => {
15356
15350
  const K = r();
15357
15351
  if (K <= 0) return;
15358
15352
  const Z = C();
@@ -15441,7 +15435,7 @@ function K1(e) {
15441
15435
  };
15442
15436
  }
15443
15437
  function Y1(e) {
15444
- const { columnState: a, onReorderEnd: t } = e, l = B(!1);
15438
+ const { columnState: a, onReorderEnd: t } = e, l = D(!1);
15445
15439
  let r = null, i = null;
15446
15440
  const o = (p, m) => {
15447
15441
  if (!m.dataTransfer) return;
@@ -15459,8 +15453,8 @@ function Y1(e) {
15459
15453
  if (!h) return;
15460
15454
  const f = h.getAttribute("data-column-id");
15461
15455
  if (!f || f === r) return;
15462
- const k = h.getBoundingClientRect(), C = k.left + k.width / 2, S = p.clientX, T = a.value.order, I = T.indexOf(r), V = T.indexOf(f), D = I > V, O = I < V;
15463
- if ((D && S < C || O && S > C) && I !== -1 && V !== -1 && I !== V) {
15456
+ const k = h.getBoundingClientRect(), C = k.left + k.width / 2, S = p.clientX, T = a.value.order, I = T.indexOf(r), V = T.indexOf(f), B = I > V, O = I < V;
15457
+ if ((B && S < C || O && S > C) && I !== -1 && V !== -1 && I !== V) {
15464
15458
  const R = [...T], [A] = R.splice(I, 1);
15465
15459
  R.splice(V, 0, A), a.value = { ...a.value, order: R };
15466
15460
  }
@@ -15494,13 +15488,13 @@ function Y1(e) {
15494
15488
  };
15495
15489
  }
15496
15490
  function j1(e, a, t) {
15497
- const l = B([...a.value]), r = B(!1), i = B(!1);
15491
+ const l = D([...a.value]), r = D(!1), i = D(!1);
15498
15492
  let o = null;
15499
15493
  function c() {
15500
15494
  o && (o.destroy(), o = null);
15501
15495
  }
15502
15496
  function d(u) {
15503
- c(), o = Do.create(u, {
15497
+ c(), o = Bo.create(u, {
15504
15498
  handle: t.handle,
15505
15499
  animation: 200,
15506
15500
  forceFallback: !0,
@@ -15557,11 +15551,11 @@ function Rn(e) {
15557
15551
  }
15558
15552
  }
15559
15553
  function X1(e) {
15560
- const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: i } = e, o = B(!1);
15554
+ const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: i } = e, o = D(!1);
15561
15555
  let c = [];
15562
15556
  const d = Ce(Vr, void 0), u = d ? void 0 : Mo(), v = d ?? u, { meta: b, setFieldValue: p, errors: m, validate: h } = v, f = () => {
15563
15557
  u && u.resetForm();
15564
- }, k = B(/* @__PURE__ */ new Map()), C = B(/* @__PURE__ */ new Set()), S = (K) => {
15558
+ }, k = D(/* @__PURE__ */ new Map()), C = D(/* @__PURE__ */ new Set()), S = (K) => {
15565
15559
  if (C.value.has(K)) {
15566
15560
  const Z = new Set(C.value);
15567
15561
  Z.delete(K), C.value = Z;
@@ -15570,7 +15564,7 @@ function X1(e) {
15570
15564
  c = a.value.map((K) => Rn(K)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !0;
15571
15565
  }, V = () => {
15572
15566
  a.value.splice(0, a.value.length, ...c.map((K) => Rn(K))), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1, i?.();
15573
- }, D = async () => {
15567
+ }, B = async () => {
15574
15568
  const { valid: K } = await h();
15575
15569
  K && (r && await r(_.value), c = a.value.map((Z) => Rn(Z)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1);
15576
15570
  }, O = (K, Z, de) => {
@@ -15600,7 +15594,7 @@ function X1(e) {
15600
15594
  isEditing: o,
15601
15595
  startEditing: I,
15602
15596
  cancelEditing: V,
15603
- saveChanges: D,
15597
+ saveChanges: B,
15604
15598
  updateCell: O,
15605
15599
  getCellValue: M,
15606
15600
  isCellDirty: R,
@@ -15657,7 +15651,7 @@ function f$(e) {
15657
15651
  lazy: o = !1,
15658
15652
  onScroll: c,
15659
15653
  onLazyLoad: d
15660
- } = e, u = B(0), v = B(0), b = B(!1);
15654
+ } = e, u = D(0), v = D(0), b = D(!1);
15661
15655
  let p = null, m = { start: -1, end: -1 };
15662
15656
  const h = y(() => {
15663
15657
  const M = r, R = a.value.length;
@@ -15693,15 +15687,15 @@ function f$(e) {
15693
15687
  if (!l.value) return;
15694
15688
  const R = k.value - v.value;
15695
15689
  l.value.scrollTo({ top: Math.max(0, R), behavior: M });
15696
- }, D = () => {
15690
+ }, B = () => {
15697
15691
  l.value && (v.value = l.value.clientHeight, u.value = l.value.scrollTop);
15698
15692
  }, O = () => {
15699
- D();
15693
+ B();
15700
15694
  };
15701
15695
  return oe(
15702
15696
  l,
15703
15697
  (M) => {
15704
- M && D();
15698
+ M && B();
15705
15699
  },
15706
15700
  { immediate: !0 }
15707
15701
  ), oe(
@@ -15710,7 +15704,7 @@ function f$(e) {
15710
15704
  R > 0 && M !== R && (m = { start: -1, end: -1 });
15711
15705
  }
15712
15706
  ), tt(() => {
15713
- D(), window.addEventListener("resize", O);
15707
+ B(), window.addEventListener("resize", O);
15714
15708
  }), He(() => {
15715
15709
  window.removeEventListener("resize", O), p && clearTimeout(p);
15716
15710
  }), {
@@ -15731,62 +15725,62 @@ function Q1(e) {
15731
15725
  const {
15732
15726
  items: a,
15733
15727
  groupRowsBy: t,
15734
- rowGroupMode: l = B("subheader"),
15735
- expandableRowGroups: r = B(!1),
15728
+ rowGroupMode: l = D("subheader"),
15729
+ expandableRowGroups: r = D(!1),
15736
15730
  expandedRowGroups: i,
15737
15731
  onExpandedRowGroupsChange: o,
15738
15732
  onRowGroupExpand: c,
15739
15733
  onRowGroupCollapse: d
15740
- } = e, u = B([]);
15734
+ } = e, u = D([]);
15741
15735
  oe(
15742
15736
  () => i?.value,
15743
- (D) => {
15744
- D !== void 0 && (u.value = [...D]);
15737
+ (B) => {
15738
+ B !== void 0 && (u.value = [...B]);
15745
15739
  },
15746
15740
  { immediate: !0 }
15747
15741
  );
15748
- const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (D) => {
15742
+ const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (B) => {
15749
15743
  if (!b.value) return "";
15750
- const O = jn(D, b.value);
15744
+ const O = jn(B, b.value);
15751
15745
  return String(O ?? "undefined");
15752
15746
  }, m = y(() => {
15753
15747
  if (!v.value || !b.value)
15754
15748
  return null;
15755
- const D = /* @__PURE__ */ new Map();
15749
+ const B = /* @__PURE__ */ new Map();
15756
15750
  for (const O of a.value) {
15757
15751
  const M = p(O);
15758
- D.has(M) || D.set(M, []), D.get(M).push(O);
15752
+ B.has(M) || B.set(M, []), B.get(M).push(O);
15759
15753
  }
15760
- return D;
15754
+ return B;
15761
15755
  }), h = y(() => {
15762
15756
  if (!m.value)
15763
15757
  return [];
15764
- const D = [];
15758
+ const B = [];
15765
15759
  return m.value.forEach((O, M) => {
15766
- D.push({
15760
+ B.push({
15767
15761
  key: M,
15768
15762
  items: O,
15769
15763
  firstItem: O[0],
15770
15764
  count: O.length
15771
15765
  });
15772
- }), D;
15773
- }), f = (D) => r?.value ? u.value.includes(D) : !0, k = (D, O) => {
15766
+ }), B;
15767
+ }), f = (B) => r?.value ? u.value.includes(B) : !0, k = (B, O) => {
15774
15768
  if (!r?.value)
15775
15769
  return;
15776
- f(D) ? (u.value = u.value.filter((R) => R !== D), d?.({ data: D, originalEvent: O })) : (u.value = [...u.value, D], c?.({ data: D, originalEvent: O })), o?.(u.value);
15777
- }, C = (D) => {
15778
- !r?.value || f(D) || (u.value = [...u.value, D], o?.(u.value));
15779
- }, S = (D) => {
15780
- !r?.value || !f(D) || (u.value = u.value.filter((O) => O !== D), o?.(u.value));
15770
+ f(B) ? (u.value = u.value.filter((R) => R !== B), d?.({ data: B, originalEvent: O })) : (u.value = [...u.value, B], c?.({ data: B, originalEvent: O })), o?.(u.value);
15771
+ }, C = (B) => {
15772
+ !r?.value || f(B) || (u.value = [...u.value, B], o?.(u.value));
15773
+ }, S = (B) => {
15774
+ !r?.value || !f(B) || (u.value = u.value.filter((O) => O !== B), o?.(u.value));
15781
15775
  }, T = () => {
15782
15776
  if (!r?.value || !m.value)
15783
15777
  return;
15784
- const D = [];
15785
- m.value.forEach((O, M) => D.push(M)), u.value = D, o?.(u.value);
15778
+ const B = [];
15779
+ m.value.forEach((O, M) => B.push(M)), u.value = B, o?.(u.value);
15786
15780
  }, I = () => {
15787
15781
  r?.value && (u.value = [], o?.(u.value));
15788
- }, V = y(() => !v.value || !r?.value ? a.value : a.value.filter((D) => {
15789
- const O = p(D);
15782
+ }, V = y(() => !v.value || !r?.value ? a.value : a.value.filter((B) => {
15783
+ const O = p(B);
15790
15784
  return f(O);
15791
15785
  }));
15792
15786
  return {
@@ -15805,7 +15799,7 @@ function Q1(e) {
15805
15799
  };
15806
15800
  }
15807
15801
  function Z1(e = {}) {
15808
- const a = B({}), t = (p) => !!(p == null || p === "" || Array.isArray(p) && p.length === 0), l = (p, m) => {
15802
+ const a = D({}), t = (p) => !!(p == null || p === "" || Array.isArray(p) && p.length === 0), l = (p, m) => {
15809
15803
  a.value = {
15810
15804
  ...a.value,
15811
15805
  [p]: m
@@ -15858,7 +15852,7 @@ function Z1(e = {}) {
15858
15852
  };
15859
15853
  }
15860
15854
  function J1(e) {
15861
- const { sortField: a, sortOrder: t, sortMode: l, multiSortMeta: r, removableSort: i, onSort: o } = e, c = B(a.value), d = B(t.value ?? 0), u = B([...r.value || []]);
15855
+ const { sortField: a, sortOrder: t, sortMode: l, multiSortMeta: r, removableSort: i, onSort: o } = e, c = D(a.value), d = D(t.value ?? 0), u = D([...r.value || []]);
15862
15856
  oe(
15863
15857
  () => [a.value, t.value, r.value],
15864
15858
  ([k, C, S]) => {
@@ -15924,7 +15918,7 @@ function Za(e) {
15924
15918
  }
15925
15919
  }
15926
15920
  function eC(e) {
15927
- const { editMode: a, editingRows: t, getItemKey: l } = e, r = B(null), i = B({}), o = B([]), c = B(/* @__PURE__ */ new Map());
15921
+ const { editMode: a, editingRows: t, getItemKey: l } = e, r = D(null), i = D({}), o = D([]), c = D(/* @__PURE__ */ new Map());
15928
15922
  return oe(
15929
15923
  () => t?.value,
15930
15924
  (C) => {
@@ -15955,7 +15949,7 @@ function eC(e) {
15955
15949
  completeCellEdit: (C, S, T, I) => {
15956
15950
  if (a.value !== "cell")
15957
15951
  return { data: C, field: S, newValue: I, index: T };
15958
- const V = i.value[T], D = V?.data;
15952
+ const V = i.value[T], B = V?.data;
15959
15953
  if (r.value = null, V) {
15960
15954
  const M = V.fields.filter((R) => R !== S);
15961
15955
  if (M.length === 0) {
@@ -15967,7 +15961,7 @@ function eC(e) {
15967
15961
  [T]: { ...V, fields: M }
15968
15962
  };
15969
15963
  }
15970
- const O = D ? D[S] : I;
15964
+ const O = B ? B[S] : I;
15971
15965
  return { data: C, field: S, newValue: O, index: T };
15972
15966
  },
15973
15967
  cancelCellEdit: (C, S, T) => {
@@ -15976,10 +15970,10 @@ function eC(e) {
15976
15970
  r.value = null;
15977
15971
  const I = i.value[T];
15978
15972
  if (I) {
15979
- const V = I.fields.filter((D) => D !== S);
15973
+ const V = I.fields.filter((B) => B !== S);
15980
15974
  if (V.length === 0) {
15981
- const D = { ...i.value };
15982
- delete D[T], i.value = D;
15975
+ const B = { ...i.value };
15976
+ delete B[T], i.value = B;
15983
15977
  } else
15984
15978
  i.value = {
15985
15979
  ...i.value,
@@ -16022,7 +16016,7 @@ function eC(e) {
16022
16016
  };
16023
16017
  }
16024
16018
  function tC(e) {
16025
- const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = B([]);
16019
+ const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = D([]);
16026
16020
  oe(
16027
16021
  () => a?.value,
16028
16022
  (m) => {
@@ -16070,7 +16064,7 @@ function lC(e) {
16070
16064
  selectAllActive: c,
16071
16065
  selectAllEnabled: d,
16072
16066
  onSelectAllChange: u
16073
- } = e, v = B([]), b = B(!1);
16067
+ } = e, v = D([]), b = D(!1);
16074
16068
  oe(
16075
16069
  () => t?.value,
16076
16070
  (E) => {
@@ -16108,7 +16102,7 @@ function lC(e) {
16108
16102
  data: E,
16109
16103
  originalEvent: N || new Event("unselect")
16110
16104
  };
16111
- }, D = (E, N) => {
16105
+ }, B = (E, N) => {
16112
16106
  if (!T(E))
16113
16107
  return null;
16114
16108
  const F = S(E), z = N instanceof Event ? N : new Event("change");
@@ -16148,7 +16142,7 @@ function lC(e) {
16148
16142
  selectionInfo: C,
16149
16143
  isSelected: S,
16150
16144
  canSelect: T,
16151
- handleRowSelectionChange: D,
16145
+ handleRowSelectionChange: B,
16152
16146
  handleSelectAllChange: O,
16153
16147
  selectItem: I,
16154
16148
  unselectItem: V,
@@ -16185,7 +16179,7 @@ const yt = {
16185
16179
  rowEditor: 100
16186
16180
  };
16187
16181
  function aC(e) {
16188
- const { visibleColumns: a, resizableColumns: t = !0, reorderableColumns: l = !1, fitMode: r = "gap" } = e, i = B({ order: [], specs: {} }), o = B({ widths: {}, fillerWidth: 0 }), c = /* @__PURE__ */ new Map(), d = (E) => nt(E) ? !1 : t, u = (E) => nt(E) ? !1 : l, v = (E) => {
16182
+ const { visibleColumns: a, resizableColumns: t = !0, reorderableColumns: l = !1, fitMode: r = "gap" } = e, i = D({ order: [], specs: {} }), o = D({ widths: {}, fillerWidth: 0 }), c = /* @__PURE__ */ new Map(), d = (E) => nt(E) ? !1 : t, u = (E) => nt(E) ? !1 : l, v = (E) => {
16189
16183
  if (E.selectionMode) return `${yt.selection}px`;
16190
16184
  if (E.rowReorder) return `${yt.rowReorder}px`;
16191
16185
  if (E.expander) return `${yt.expander}px`;
@@ -16257,15 +16251,15 @@ function aC(e) {
16257
16251
  }
16258
16252
  Y && (i.value = { order: K, specs: de });
16259
16253
  }
16260
- let D = !1;
16254
+ let B = !1;
16261
16255
  const O = () => {
16262
- D = !0;
16256
+ B = !0;
16263
16257
  }, M = () => {
16264
- i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, D = !1, R();
16258
+ i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, B = !1, R();
16265
16259
  }, R = () => {
16266
16260
  const E = e.getAvailableWidth();
16267
16261
  if (E <= 0) return;
16268
- D || V(E);
16262
+ B || V(E);
16269
16263
  const F = C.value.filter((z) => !nt(z.props)).map((z) => z.props.id).filter((z) => i.value.specs[z]).map((z) => ({ id: z, spec: i.value.specs[z] }));
16270
16264
  F.length !== 0 && (o.value = U1({ availableWidth: E, columns: F, mode: r }));
16271
16265
  };
@@ -16314,7 +16308,7 @@ function aC(e) {
16314
16308
  recompute: R,
16315
16309
  resetFromProps: M,
16316
16310
  markSizingCustomized: O,
16317
- isSizingCustomized: () => D,
16311
+ isSizingCustomized: () => B,
16318
16312
  orderedVisibleColumns: C,
16319
16313
  totalColumns: T,
16320
16314
  isSpecialColumn: nt,
@@ -16466,12 +16460,12 @@ function rC(e) {
16466
16460
  v--;
16467
16461
  });
16468
16462
  }
16469
- function D() {
16463
+ function B() {
16470
16464
  return !(v > 0 || !a.value || k || o && o() <= 0);
16471
16465
  }
16472
16466
  function O() {
16473
- D() && (b != null && clearTimeout(b), b = setTimeout(() => {
16474
- b = void 0, D() && S();
16467
+ B() && (b != null && clearTimeout(b), b = setTimeout(() => {
16468
+ b = void 0, B() && S();
16475
16469
  }, oC));
16476
16470
  }
16477
16471
  return oe(i ? [l, r, i] : [l, r], O, { deep: !0 }), He(() => {
@@ -16533,11 +16527,11 @@ function uC(e) {
16533
16527
  expandedRows: Ie(a, "expandedRows"),
16534
16528
  getItemKey: d,
16535
16529
  isRowExpandable: (j) => a.isRowExpandable ? a.isRowExpandable(j) : !0
16536
- }), I = B([]);
16530
+ }), I = D([]);
16537
16531
  oe(
16538
16532
  () => T.internalExpandedRows.value,
16539
16533
  (j) => {
16540
- const ge = j.map((De) => d(De, 0)), pe = I.value.join(","), Oe = ge.join(",");
16534
+ const ge = j.map((Be) => d(Be, 0)), pe = I.value.join(","), Oe = ge.join(",");
16541
16535
  pe !== Oe && (I.value = ge, t("update:expandedRows", j));
16542
16536
  },
16543
16537
  { deep: !0, immediate: !0 }
@@ -16545,7 +16539,7 @@ function uC(e) {
16545
16539
  const V = (j) => {
16546
16540
  const ge = d(j, 0);
16547
16541
  return I.value.includes(ge);
16548
- }, D = (j) => T.canExpand(j), O = Q1({
16542
+ }, B = (j) => T.canExpand(j), O = Q1({
16549
16543
  items: Ie(a, "items"),
16550
16544
  groupRowsBy: Ie(a, "groupRowsBy"),
16551
16545
  rowGroupMode: Ie(a, "rowGroupMode"),
@@ -16583,7 +16577,7 @@ function uC(e) {
16583
16577
  reorderableColumns: a.reorderableColumns ?? !0,
16584
16578
  fitMode: a.fitMode ?? "gap",
16585
16579
  getAvailableWidth: _
16586
- }), N = B(/* @__PURE__ */ new Set());
16580
+ }), N = D(/* @__PURE__ */ new Set());
16587
16581
  oe(
16588
16582
  () => c.value.map((j) => j.props.id).join(","),
16589
16583
  () => {
@@ -16621,19 +16615,19 @@ function uC(e) {
16621
16615
  N,
16622
16616
  (j, ge) => {
16623
16617
  const pe = new Set(i.value), Oe = new Set(o.value);
16624
- let De = !1, ot = !1;
16618
+ let Be = !1, ot = !1;
16625
16619
  for (const Je of j)
16626
- (!ge || !ge.has(Je)) && !pe.has(Je) && !Oe.has(Je) && (pe.add(Je), De = !0);
16620
+ (!ge || !ge.has(Je)) && !pe.has(Je) && !Oe.has(Je) && (pe.add(Je), Be = !0);
16627
16621
  if (ge) {
16628
16622
  const Je = new Set(r.value.map((it) => it.props.id));
16629
16623
  for (const it of ge)
16630
- !j.has(it) && Je.has(it) && (pe.delete(it) && (De = !0), Oe.delete(it) && (ot = !0));
16624
+ !j.has(it) && Je.has(it) && (pe.delete(it) && (Be = !0), Oe.delete(it) && (ot = !0));
16631
16625
  }
16632
- De && (i.value = pe), ot && (o.value = Oe);
16626
+ Be && (i.value = pe), ot && (o.value = Oe);
16633
16627
  },
16634
16628
  { immediate: !0 }
16635
16629
  );
16636
- const Z = y(() => l.value.find((j) => j.props.rowReorder === !0) || null), de = y(() => a.reorderableRows || Z.value !== null), Y = y(() => de.value), q = B(), { reorderedItems: ne, pendingReorder: ee } = j1(q, Ie(a, "items"), {
16630
+ const Z = y(() => l.value.find((j) => j.props.rowReorder === !0) || null), de = y(() => a.reorderableRows || Z.value !== null), Y = y(() => de.value), q = D(), { reorderedItems: ne, pendingReorder: ee } = j1(q, Ie(a, "items"), {
16637
16631
  disabled: y(() => !de.value),
16638
16632
  handle: cC,
16639
16633
  onReorder: (j) => t("row-reorder", j)
@@ -16653,20 +16647,20 @@ function uC(e) {
16653
16647
  }
16654
16648
  }
16655
16649
  return ae.value[ge] ?? null;
16656
- }, Mt = B(null), Lt = () => {
16650
+ }, Mt = D(null), Lt = () => {
16657
16651
  const j = me();
16658
16652
  Mt.value && Object.assign(j, Mt.value), t("filter", { filters: j, filteredValue: a.items });
16659
16653
  }, tn = (j, ge) => {
16660
16654
  const pe = Re(j), Oe = Ee(j);
16661
16655
  if (pe === "dateRange") {
16662
- const De = at(j);
16663
- if (De) {
16664
- const ot = ge[De[0]], Je = ge[De[1]];
16665
- ie(De, { start: ot, end: Je });
16656
+ const Be = at(j);
16657
+ if (Be) {
16658
+ const ot = ge[Be[0]], Je = ge[Be[1]];
16659
+ ie(Be, { start: ot, end: Je });
16666
16660
  }
16667
16661
  } else {
16668
- const De = ge[Oe];
16669
- re(Oe, De);
16662
+ const Be = ge[Oe];
16663
+ re(Oe, Be);
16670
16664
  }
16671
16665
  Lt();
16672
16666
  }, ln = (j) => {
@@ -16674,8 +16668,8 @@ function uC(e) {
16674
16668
  if (Re(j) === "dateRange") {
16675
16669
  const Oe = at(j);
16676
16670
  if (Oe) {
16677
- const De = `__range__${Oe[0]}__${Oe[1]}`;
16678
- te(De);
16671
+ const Be = `__range__${Oe[0]}__${Oe[1]}`;
16672
+ te(Be);
16679
16673
  }
16680
16674
  } else
16681
16675
  te(ge);
@@ -16770,15 +16764,15 @@ function uC(e) {
16770
16764
  isInlineEditing: R,
16771
16765
  // Expansion helper
16772
16766
  isRowExpanded: V,
16773
- canExpand: D,
16767
+ canExpand: B,
16774
16768
  expandedKeysArray: I,
16775
16769
  // Data-discovered IDs stable ref
16776
16770
  dataDiscoveredIds: N,
16777
16771
  // Event handlers (selection handlers are on the `selection` facade)
16778
16772
  handleSort: qt,
16779
16773
  handleRowClick: (j, ge, pe) => {
16780
- const Oe = d(j, ge), De = a.activeItemId != null && Oe === String(a.activeItemId);
16781
- t("update:activeItemId", De ? void 0 : Oe), t("row-click", { data: j, index: ge, originalEvent: pe });
16774
+ const Oe = d(j, ge), Be = a.activeItemId != null && Oe === String(a.activeItemId);
16775
+ t("update:activeItemId", Be ? void 0 : Oe), t("row-click", { data: j, index: ge, originalEvent: pe });
16782
16776
  const ot = pe.target, Je = ot.tagName === "INPUT" && ot.getAttribute("type") === "checkbox";
16783
16777
  p.value === "single" && !Je && It(j, pe);
16784
16778
  },
@@ -16805,7 +16799,7 @@ function uC(e) {
16805
16799
  t("row-remove", pe), ge || M.removeRow(j);
16806
16800
  },
16807
16801
  handleColumnVisibilityChange: (j) => {
16808
- const ge = new Set(j), pe = F.value.map((Ke) => Ke.id), Oe = F.value.filter((Ke) => Ke.defaultVisible === !1).map((Ke) => Ke.id), De = new Set(pe), ot = new Set(Oe), Je = new Set([...i.value].filter((Ke) => !De.has(Ke))), it = new Set([...o.value].filter((Ke) => !ot.has(Ke)));
16802
+ const ge = new Set(j), pe = F.value.map((Ke) => Ke.id), Oe = F.value.filter((Ke) => Ke.defaultVisible === !1).map((Ke) => Ke.id), Be = new Set(pe), ot = new Set(Oe), Je = new Set([...i.value].filter((Ke) => !Be.has(Ke))), it = new Set([...o.value].filter((Ke) => !ot.has(Ke)));
16809
16803
  for (const Ke of pe)
16810
16804
  ge.has(Ke) || Je.add(Ke);
16811
16805
  for (const Ke of Oe)
@@ -16817,13 +16811,13 @@ function uC(e) {
16817
16811
  },
16818
16812
  handleCellClick: (j, ge, pe, Oe) => {
16819
16813
  if (a.editMode === "cell" && (Oe.slots.editor || Oe.props.editable) && !S.isCellEditing(pe, ge)) {
16820
- const De = S.startCellEdit(j, ge, pe);
16821
- t("cell-edit-init", De);
16814
+ const Be = S.startCellEdit(j, ge, pe);
16815
+ t("cell-edit-init", Be);
16822
16816
  }
16823
16817
  },
16824
16818
  handleCellEditComplete: (j, ge, pe, Oe) => {
16825
- const De = S.completeCellEdit(j, ge, pe, Oe);
16826
- t("cell-edit-complete", { data: j, field: ge, newValue: De.newValue, index: pe }), M.isEditing.value && M.updateCell(pe, ge, Oe);
16819
+ const Be = S.completeCellEdit(j, ge, pe, Oe);
16820
+ t("cell-edit-complete", { data: j, field: ge, newValue: Be.newValue, index: pe }), M.isEditing.value && M.updateCell(pe, ge, Oe);
16827
16821
  },
16828
16822
  handleCellEditCancel: (j, ge, pe) => {
16829
16823
  S.cancelCellEdit(j, ge, pe), t("cell-edit-cancel", { data: j, field: ge, index: pe });
@@ -16835,8 +16829,8 @@ function uC(e) {
16835
16829
  }
16836
16830
  },
16837
16831
  handleExpandToggle: (j, ge, pe) => {
16838
- const Oe = T.isRowExpanded(j, ge), De = T.toggleRowExpansion(j, ge, pe);
16839
- De && t(Oe ? "row-collapse" : "row-expand", De);
16832
+ const Oe = T.isRowExpanded(j, ge), Be = T.toggleRowExpansion(j, ge, pe);
16833
+ Be && t(Oe ? "row-collapse" : "row-expand", Be);
16840
16834
  },
16841
16835
  handleStartRowEdit: (j, ge) => {
16842
16836
  const pe = S.startRowEdit(j, ge);
@@ -17035,7 +17029,7 @@ const m$ = {
17035
17029
  () => v.value ? l.notFoundState?.actionLabel : l.emptyState?.actionLabel
17036
17030
  ), f = y(
17037
17031
  () => v.value ? l.notFoundState?.actionHandler : l.emptyState?.actionHandler
17038
- ), k = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = B(!1);
17032
+ ), k = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = D(!1);
17039
17033
  oe(
17040
17034
  () => l.items,
17041
17035
  (ce) => {
@@ -17052,7 +17046,7 @@ const m$ = {
17052
17046
  return `${Me}–${Ye} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${be}`;
17053
17047
  }
17054
17048
  return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${ce.currentPage} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${ce.pages}`;
17055
- }), { isMobile: V } = Ve(), D = y(() => V.value), O = ht(), M = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
17049
+ }), { isMobile: V } = Ve(), B = y(() => V.value), O = ht(), M = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
17056
17050
  "sortable",
17057
17051
  "editable",
17058
17052
  "visible",
@@ -17089,8 +17083,8 @@ const m$ = {
17089
17083
  };
17090
17084
  return ce.forEach(_e), be;
17091
17085
  }, E = new dC();
17092
- Be(Cs, E);
17093
- const N = B(0);
17086
+ De(Cs, E);
17087
+ const N = D(0);
17094
17088
  E.onUpdate(() => {
17095
17089
  N.value++;
17096
17090
  });
@@ -17098,7 +17092,7 @@ const m$ = {
17098
17092
  N.value;
17099
17093
  const ce = _();
17100
17094
  return ce.length > 0 ? ce : E.getColumns();
17101
- }), z = B(/* @__PURE__ */ new Set()), K = B(/* @__PURE__ */ new Set()), Z = y(() => {
17095
+ }), z = D(/* @__PURE__ */ new Set()), K = D(/* @__PURE__ */ new Set()), Z = y(() => {
17102
17096
  const ce = l.columnSwitcher;
17103
17097
  if (!ce || ce === "defined") return [];
17104
17098
  const be = l.items;
@@ -17116,7 +17110,7 @@ const m$ = {
17116
17110
  }), de = y(() => {
17117
17111
  const be = F.value.filter((Me) => Me.props.visible === !1 || z.value.size > 0 && z.value.has(Me.props.id) ? !1 : l.showAllColumns ? !0 : !!Me.props.alwaysVisible), _e = Z.value.filter((Me) => !z.value.has(Me.props.id));
17118
17112
  return [...be, ..._e];
17119
- }), Y = (ce, be) => ce[l.dataKey]?.toString() || `row-${be}`, q = B(null), ne = B(null), ee = B(null), {
17113
+ }), Y = (ce, be) => ce[l.dataKey]?.toString() || `row-${be}`, q = D(null), ne = D(null), ee = D(null), {
17120
17114
  // Sub-composable instances
17121
17115
  selection: G,
17122
17116
  sort: ke,
@@ -17179,7 +17173,7 @@ const m$ = {
17179
17173
  handleStartRowEdit: ge,
17180
17174
  handleSaveRowEdit: pe,
17181
17175
  handleCancelRowEdit: Oe,
17182
- handleRowAction: De,
17176
+ handleRowAction: Be,
17183
17177
  handleMobileRowClick: ot,
17184
17178
  handleMobileRowSelect: Je,
17185
17179
  handleMobileRowAction: it
@@ -17193,16 +17187,16 @@ const m$ = {
17193
17187
  dataDiscoveredColumns: Z,
17194
17188
  getItemKey: Y,
17195
17189
  tableContainerRef: ne
17196
- }), Ke = B(null), ba = B(null);
17190
+ }), Ke = D(null), ba = D(null);
17197
17191
  Hn(() => {
17198
- on.value = D.value ? ba.value?.listEl : Ke.value?.listEl;
17199
- }), Be(
17192
+ on.value = B.value ? ba.value?.listEl : Ke.value?.listEl;
17193
+ }), De(
17200
17194
  $o,
17201
17195
  y(() => ie.engineOutput.value.fillerWidth)
17202
- ), Be(Ro, ln);
17196
+ ), De(Ro, ln);
17203
17197
  const ha = (ce) => {
17204
17198
  r("pagination-click", ce);
17205
- }, Yt = B(l.searchValue ?? "");
17199
+ }, Yt = D(l.searchValue ?? "");
17206
17200
  let jt = null;
17207
17201
  const $i = (ce) => {
17208
17202
  Yt.value = ce, r("update:searchValue", ce), jt && clearTimeout(jt), jt = setTimeout(() => {
@@ -17221,7 +17215,7 @@ const m$ = {
17221
17215
  be.scrollHeight - be.scrollTop - be.clientHeight < _e && r("load-more");
17222
17216
  }, vn = y(() => l.addRow?.enabled === !0), ya = y(() => l.addRow?.position ?? "footer"), fn = y(() => l.addRow?.label ?? "Add row"), mn = y(() => l.addRow?.icon ?? "lucide-plus"), Ai = (ce) => {
17223
17217
  }, Ti = () => {
17224
- }, ml = B(!1), pl = B({}), wa = B(null), Oi = y(() => {
17218
+ }, ml = D(!1), pl = D({}), wa = D(null), Oi = y(() => {
17225
17219
  const ce = wa.value;
17226
17220
  return ce ? {
17227
17221
  getBoundingClientRect: () => ce.$el?.getBoundingClientRect() ?? new DOMRect(),
@@ -17229,7 +17223,7 @@ const m$ = {
17229
17223
  return ce.$el;
17230
17224
  }
17231
17225
  } : null;
17232
- }), Xt = B(!1), Ca = B(null), Mi = y(() => {
17226
+ }), Xt = D(!1), Ca = D(null), Mi = y(() => {
17233
17227
  const ce = Ca.value;
17234
17228
  return ce ? {
17235
17229
  getBoundingClientRect: () => (ce.columnSwitcherEl ?? null)?.getBoundingClientRect() ?? new DOMRect(),
@@ -17285,11 +17279,11 @@ const m$ = {
17285
17279
  getCellStyle: ie.getCellStyle,
17286
17280
  // Custom class
17287
17281
  rowClass: l.rowClass?.(ce)
17288
- }), { width: gl } = No(ee), Bi = y(() => {
17282
+ }), { width: gl } = No(ee), Di = y(() => {
17289
17283
  if (!l.pagination || gl.value === 0) return 5;
17290
17284
  const ce = gl.value - Ja, be = Math.floor((ce - 2 * An) / An);
17291
17285
  return be >= 7 ? 5 : be >= 3 ? be : 0;
17292
- }), Di = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * An);
17286
+ }), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * An);
17293
17287
  return a({
17294
17288
  // Selection API (public keys unchanged; sourced from the selection facade)
17295
17289
  selectAll: G.selectAll,
@@ -17386,7 +17380,7 @@ const m$ = {
17386
17380
  onCancel: n(G).clear
17387
17381
  }, null, 8, ["selection-count", "total-count", "all-selected", "show-select-all-prompt", "onSelectAll", "onCancel"])) : L("", !0)
17388
17382
  ]),
17389
- D.value ? (s(), g("div", mC, [
17383
+ B.value ? (s(), g("div", mC, [
17390
17384
  n(Et) === "multiple" && (n(G).isPartiallySelected.value || n(G).isAllSelected.value) ? (s(), g("div", pC, [
17391
17385
  $(n(nl), {
17392
17386
  "model-value": n(G).isAllSelected.value,
@@ -17547,7 +17541,7 @@ const m$ = {
17547
17541
  mode: e.rowActionsMode,
17548
17542
  position: e.rowActionsPosition,
17549
17543
  "max-quick-actions": e.maxQuickActions,
17550
- onAction: (Ye) => n(De)(Ye, _e, Me)
17544
+ onAction: (Ye) => n(Be)(Ye, _e, Me)
17551
17545
  }, null, 8, ["actions", "row-index", "mode", "position", "max-quick-actions", "onAction"])) : L("", !0)
17552
17546
  ]),
17553
17547
  expansion: x(({ data: _e, index: Me }) => [
@@ -17625,8 +17619,8 @@ const m$ = {
17625
17619
  pages: l.pagination.pages,
17626
17620
  "current-page": l.pagination.currentPage,
17627
17621
  variant: l.pagination.variant,
17628
- "max-pages": Bi.value,
17629
- "show-first-last": Di.value,
17622
+ "max-pages": Di.value,
17623
+ "show-first-last": Bi.value,
17630
17624
  onItemClick: ha
17631
17625
  }, null, 8, ["pages", "current-page", "variant", "max-pages", "show-first-last"])
17632
17626
  ])
@@ -17677,7 +17671,7 @@ const m$ = {
17677
17671
  },
17678
17672
  emits: ["paginationClick", "selectionChanged", "search:change", "headerClick", "itemClick", "scroll:ptr", "row:reorder", "select:all", "onEditComplete", "onAddNewRow", "onCellBlur"],
17679
17673
  setup(e, { emit: a }) {
17680
- const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = B(t.selectionItems ?? []), o = B(!1), c = B(null), d = y(() => {
17674
+ const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = D(t.selectionItems ?? []), o = D(!1), c = D(null), d = y(() => {
17681
17675
  const G = c.value;
17682
17676
  return G ? {
17683
17677
  getBoundingClientRect: () => G.$el?.getBoundingClientRect() ?? new DOMRect(),
@@ -17697,7 +17691,7 @@ const m$ = {
17697
17691
  const v = y(() => t.sort?.split(":")[0] || void 0), b = y(() => {
17698
17692
  const G = t.sort?.split(":")[1];
17699
17693
  return G === "ASC" ? 1 : G === "DESC" ? -1 : 0;
17700
- }), p = B(), m = y(() => t.multiselect ? "multiple" : void 0), h = y(
17694
+ }), p = D(), m = y(() => t.multiselect ? "multiple" : void 0), h = y(
17701
17695
  () => t.disableItemCheckbox ? (G) => !t.disableItemCheckbox(G) : void 0
17702
17696
  ), f = y(() => {
17703
17697
  if (!(!t.enableItemActions || !t.itemActionBuilder))
@@ -17736,7 +17730,7 @@ const m$ = {
17736
17730
  label: t.addNewRowButton.title,
17737
17731
  position: "footer"
17738
17732
  };
17739
- }), D = y(() => t.editing ? "inline" : void 0), O = y(() => t.header !== !1), M = y(() => t.columnSelector === "auto" ? "auto" : t.columnSelector === "defined" ? "defined" : t.columnSelector ? "auto" : !1);
17733
+ }), B = y(() => t.editing ? "inline" : void 0), O = y(() => t.header !== !1), M = y(() => t.columnSelector === "auto" ? "auto" : t.columnSelector === "defined" ? "defined" : t.columnSelector ? "auto" : !1);
17740
17734
  function R(G) {
17741
17735
  if (G)
17742
17736
  return G === "date-time" ? "datetime" : G;
@@ -17816,7 +17810,7 @@ const m$ = {
17816
17810
  "state-key": t.stateKey,
17817
17811
  "pull-to-refresh": t.pullToReload,
17818
17812
  "column-switcher": M.value,
17819
- "edit-mode": D.value,
17813
+ "edit-mode": B.value,
17820
17814
  "show-all-columns": e.expanded,
17821
17815
  "select-all": t.selectAll,
17822
17816
  "total-count": t.totalCount,
@@ -18185,14 +18179,14 @@ const m$ = {
18185
18179
  "#475569"
18186
18180
  // slate
18187
18181
  ];
18188
- function BC(e) {
18182
+ function DC(e) {
18189
18183
  let a = 5381;
18190
18184
  for (let t = 0; t < e.length; t++)
18191
18185
  a = (a << 5) + a + e.charCodeAt(t) >>> 0;
18192
18186
  return a;
18193
18187
  }
18194
- function Dt(e) {
18195
- return e ? eo[BC(e) % eo.length] : "var(--primary-500)";
18188
+ function Bt(e) {
18189
+ return e ? eo[DC(e) % eo.length] : "var(--primary-500)";
18196
18190
  }
18197
18191
  const Tn = "#ffffff", Ci = "#18181b";
18198
18192
  function _i(e) {
@@ -18211,13 +18205,13 @@ function ki([e, a, t]) {
18211
18205
  };
18212
18206
  return 0.2126 * l(e) + 0.7152 * l(a) + 0.0722 * l(t);
18213
18207
  }
18214
- const to = (e, a) => (Math.max(e, a) + 0.05) / (Math.min(e, a) + 0.05), DC = ki(_i(Ci));
18208
+ const to = (e, a) => (Math.max(e, a) + 0.05) / (Math.min(e, a) + 0.05), BC = ki(_i(Ci));
18215
18209
  function Ei(e) {
18216
18210
  if (!e) return Tn;
18217
18211
  const a = _i(e);
18218
18212
  if (!a) return Tn;
18219
18213
  const t = ki(a);
18220
- return to(t, 1) >= to(t, DC) ? Tn : Ci;
18214
+ return to(t, 1) >= to(t, BC) ? Tn : Ci;
18221
18215
  }
18222
18216
  function Vn(e, a) {
18223
18217
  return a ? {
@@ -18248,11 +18242,11 @@ const PC = ["aria-label", "onKeydown"], VC = {
18248
18242
  },
18249
18243
  emits: ["select", "move-start", "resize-start"],
18250
18244
  setup(e, { emit: a }) {
18251
- const t = e, l = a, r = B(null);
18245
+ const t = e, l = a, r = D(null);
18252
18246
  function i() {
18253
18247
  l("select", r.value?.getBoundingClientRect() ?? null);
18254
18248
  }
18255
- const o = y(() => !!(t.event.recurrenceId || t.event.recurrence)), c = y(() => t.event.color ?? Dt(t.event.title)), d = y(() => t.event.end.getTime() < Date.now()), u = y(
18249
+ const o = y(() => !!(t.event.recurrenceId || t.event.recurrence)), c = y(() => t.event.color ?? Bt(t.event.title)), d = y(() => t.event.end.getTime() < Date.now()), u = y(
18256
18250
  () => d.value ? Vn(c.value, !0) : { background: c.value, color: `var(--vc-scheduler-event-ink, ${Ei(c.value)})` }
18257
18251
  ), v = y(() => {
18258
18252
  const { title: b, start: p, end: m } = t.event, h = Te(p, "PP"), f = Te(new Date(m.getTime() - 1), "PP");
@@ -18386,7 +18380,7 @@ const PC = ["aria-label", "onKeydown"], VC = {
18386
18380
  setup(e, { emit: a }) {
18387
18381
  const t = e, l = a, r = y(() => t.date ? Te(t.date, "PPP") : ""), i = y(
18388
18382
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
18389
- ), o = B(null);
18383
+ ), o = D(null);
18390
18384
  let c = null;
18391
18385
  const d = () => $e(() => o.value?.querySelector("button")?.focus());
18392
18386
  return oe(
@@ -18550,7 +18544,7 @@ const o_ = { class: "vc-scheduler__qi-title" }, i_ = ["aria-label", "onClick"],
18550
18544
  setup(e, { emit: a }) {
18551
18545
  const t = e, l = a, r = y(
18552
18546
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
18553
- ), i = y(() => t.event ? t.event.color ?? Dt(t.event.title) : ""), o = y(() => ({
18547
+ ), i = y(() => t.event ? t.event.color ?? Bt(t.event.title) : ""), o = y(() => ({
18554
18548
  background: `color-mix(in srgb, ${i.value} 14%, var(--additional-50, #fff))`,
18555
18549
  color: "var(--neutrals-900)"
18556
18550
  })), c = y(() => ({ background: i.value })), d = y(() => {
@@ -18685,7 +18679,7 @@ function g_(e) {
18685
18679
  const r = [[], [], [], [], [], []], i = Ge(e.monthRange.value.start);
18686
18680
  for (const o of e.events.value) {
18687
18681
  if (!a(o)) continue;
18688
- const c = Bt(Ge(o.start), i), d = Bt(Ge(new Date(o.end.getTime() - 1)), i);
18682
+ const c = Dt(Ge(o.start), i), d = Dt(Ge(new Date(o.end.getTime() - 1)), i);
18689
18683
  for (let u = 0; u < 6; u++) {
18690
18684
  const v = u * 7, b = v + 6, p = Math.max(c, v), m = Math.min(d, b);
18691
18685
  p > m || r[u].push({
@@ -18718,7 +18712,7 @@ function b_(e) {
18718
18712
  });
18719
18713
  }
18720
18714
  function h_(e) {
18721
- const a = e.maxLanes ?? B(3), t = y(() => e.weekSegments.value.map(b_)), l = y(
18715
+ const a = e.maxLanes ?? D(3), t = y(() => e.weekSegments.value.map(b_)), l = y(
18722
18716
  () => t.value.map((i) => i.filter((o) => o.lane < a.value))
18723
18717
  ), r = y(
18724
18718
  () => t.value.map((i) => {
@@ -18761,7 +18755,7 @@ function Si(e) {
18761
18755
  return { click: i, cancel: o };
18762
18756
  }
18763
18757
  function w_(e) {
18764
- const a = B(null);
18758
+ const a = D(null);
18765
18759
  let t = null, l = null, r = null;
18766
18760
  const i = (h, f) => {
18767
18761
  const k = e.dayFromPoint(h, f);
@@ -18836,7 +18830,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18836
18830
  },
18837
18831
  emits: ["event-click", "create-intent", "event-update", "edit-intent", "event-delete"],
18838
18832
  setup(e, { emit: a }) {
18839
- const t = e, l = a, r = B(null), i = y(() => {
18833
+ const t = e, l = a, r = D(null), i = y(() => {
18840
18834
  const te = t.firstDayOfWeek % 7, me = At(Wl(t.focusedDate), { weekStartsOn: te });
18841
18835
  return { start: me, end: et(me, 42) };
18842
18836
  }), o = y(
@@ -18879,7 +18873,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18879
18873
  laidOut: p.laidOut.value[me] ?? [],
18880
18874
  overflow: p.overflowByDay.value[me] ?? []
18881
18875
  }))
18882
- ), h = B(null);
18876
+ ), h = D(null);
18883
18877
  function f(te) {
18884
18878
  return t.events.find((me) => me.id === te);
18885
18879
  }
@@ -18895,7 +18889,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18895
18889
  function S(te) {
18896
18890
  return b.timedByDay.value.get(Te(te, "yyyy-MM-dd")) ?? [];
18897
18891
  }
18898
- let T = null, I = null, V = null, D = !1;
18892
+ let T = null, I = null, V = null, B = !1;
18899
18893
  const O = /* @__PURE__ */ new Map(), M = Si({
18900
18894
  onIntent: (te, me) => {
18901
18895
  const se = O.get(me);
@@ -18911,17 +18905,17 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18911
18905
  t.editable && (T = "resize", u.beginResize(te, me, se.clientX, se.clientY), F());
18912
18906
  }
18913
18907
  function _(te, me) {
18914
- t.editable && (T = "create", I = te, V = me.currentTarget?.getBoundingClientRect() ?? null, D = !1, u.beginCreate(te), F());
18908
+ t.editable && (T = "create", I = te, V = me.currentTarget?.getBoundingClientRect() ?? null, B = !1, u.beginCreate(te), F());
18915
18909
  }
18916
18910
  function E(te) {
18917
- if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && I && !D)) {
18911
+ if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && I && !B)) {
18918
18912
  const me = d(te.clientX, te.clientY);
18919
- me && !Hl(me, I) && (D = !0);
18913
+ me && !Hl(me, I) && (B = !0);
18920
18914
  }
18921
18915
  }
18922
18916
  function N() {
18923
18917
  if (T === "create") {
18924
- if (D) {
18918
+ if (B) {
18925
18919
  M.cancel(), O.clear();
18926
18920
  const te = u.pending.value;
18927
18921
  te && l("create-intent", { start: te.start, end: te.end, allDay: !0, anchorRect: V, kind: "drag" });
@@ -18929,7 +18923,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18929
18923
  const te = Te(I, "yyyy-MM-dd");
18930
18924
  O.set(te, { date: I, rect: V }), M.click(te);
18931
18925
  }
18932
- u.cancel(), I = null, V = null, D = !1;
18926
+ u.cancel(), I = null, V = null, B = !1;
18933
18927
  } else
18934
18928
  u.commit();
18935
18929
  T = null, z();
@@ -18943,7 +18937,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18943
18937
  Rt(() => {
18944
18938
  z(), M.cancel(), O.clear();
18945
18939
  });
18946
- const K = B(!1), Z = B(null), de = B(null);
18940
+ const K = D(!1), Z = D(null), de = D(null);
18947
18941
  function Y(te, me) {
18948
18942
  Z.value = te, de.value = me, K.value = !0;
18949
18943
  }
@@ -18959,7 +18953,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18959
18953
  function ne(te, me = null) {
18960
18954
  h.value = te.id, l("event-click", te), K.value = !1, t.quickInfo && $e(() => W(te, me ?? de.value));
18961
18955
  }
18962
- const ee = B(!1), G = B(null), ke = B(null);
18956
+ const ee = D(!1), G = D(null), ke = D(null);
18963
18957
  function W(te, me) {
18964
18958
  G.value = te, ke.value = me, ee.value = !0;
18965
18959
  }
@@ -19019,7 +19013,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19019
19013
  }, [
19020
19014
  w("span", {
19021
19015
  class: "vc-scheduler__timed-chip-dot",
19022
- style: he({ background: Re.color ?? n(Dt)(Re.title) })
19016
+ style: he({ background: Re.color ?? n(Bt)(Re.title) })
19023
19017
  }, null, 4),
19024
19018
  w("span", S_, U(n(Te)(Re.start, "HH:mm")) + " " + U(Re.title), 1),
19025
19019
  Re.recurrenceId || Re.recurrence ? (s(), g("span", $_, "↻")) : L("", !0)
@@ -19070,7 +19064,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19070
19064
  }, L_ = {
19071
19065
  key: 1,
19072
19066
  class: "vc-scheduler__agenda-list"
19073
- }, I_ = { class: "vc-scheduler__agenda-dow" }, x_ = { class: "vc-scheduler__agenda-date" }, N_ = { class: "vc-scheduler__agenda-events" }, B_ = ["onClick"], D_ = { class: "vc-scheduler__agenda-time" }, P_ = { class: "vc-scheduler__agenda-title" }, V_ = {
19067
+ }, I_ = { class: "vc-scheduler__agenda-dow" }, x_ = { class: "vc-scheduler__agenda-date" }, N_ = { class: "vc-scheduler__agenda-events" }, D_ = ["onClick"], B_ = { class: "vc-scheduler__agenda-time" }, P_ = { class: "vc-scheduler__agenda-title" }, V_ = {
19074
19068
  key: 0,
19075
19069
  class: "vc-scheduler__agenda-span"
19076
19070
  }, F_ = {
@@ -19100,12 +19094,12 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19100
19094
  return i(m) ? t("VC_SCHEDULER.ALL_DAY") : Hl(m.start, m.end) ? Te(m.start, "p") : Te(m.start, "MMM d, p");
19101
19095
  }
19102
19096
  function d(m, h) {
19103
- const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Bt(k, f) + 1;
19097
+ const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Dt(k, f) + 1;
19104
19098
  if (C <= 1) return "";
19105
- const S = Bt(Ge(h), f) + 1;
19099
+ const S = Dt(Ge(h), f) + 1;
19106
19100
  return t("VC_SCHEDULER.DAY_N_OF_M", { n: S, total: C });
19107
19101
  }
19108
- const u = B(!1), v = B(null), b = B(null);
19102
+ const u = D(!1), v = D(null), b = D(null);
19109
19103
  function p(m, h) {
19110
19104
  r("event-click", m), l.quickInfo && (v.value = m, b.value = h.currentTarget?.getBoundingClientRect() ?? null, u.value = !0);
19111
19105
  }
@@ -19132,9 +19126,9 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19132
19126
  }, [
19133
19127
  w("span", {
19134
19128
  class: "vc-scheduler__agenda-dot",
19135
- style: he({ background: k.color ?? n(Dt)(k.title) })
19129
+ style: he({ background: k.color ?? n(Bt)(k.title) })
19136
19130
  }, null, 4),
19137
- w("span", D_, U(c(k)), 1),
19131
+ w("span", B_, U(c(k)), 1),
19138
19132
  w("span", P_, [
19139
19133
  H(m.$slots, "event", { event: k }, () => [
19140
19134
  fe(U(k.title), 1)
@@ -19142,7 +19136,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19142
19136
  ]),
19143
19137
  d(k, f.date) ? (s(), g("span", V_, U(d(k, f.date)), 1)) : L("", !0),
19144
19138
  k.recurrenceId || k.recurrence ? (s(), g("span", F_, "↻")) : L("", !0)
19145
- ], 8, B_)
19139
+ ], 8, D_)
19146
19140
  ]))), 128))
19147
19141
  ])
19148
19142
  ]))), 128))
@@ -19222,10 +19216,10 @@ function W_(e) {
19222
19216
  endMs: Math.min(V.end.getTime(), T)
19223
19217
  }));
19224
19218
  return H_(I).map((V) => {
19225
- const D = (V.startMs - S) / no * m, O = Math.max((V.endMs - V.startMs) / no * m, z_);
19219
+ const B = (V.startMs - S) / no * m, O = Math.max((V.endMs - V.startMs) / no * m, z_);
19226
19220
  return {
19227
19221
  event: V.event,
19228
- top: D,
19222
+ top: B,
19229
19223
  height: O,
19230
19224
  leftPct: V.lane / V.laneCount * 100,
19231
19225
  widthPct: 100 / V.laneCount,
@@ -19236,7 +19230,7 @@ function W_(e) {
19236
19230
  }), u = y(() => d.value.some((p) => p.length > 0)), v = y(() => {
19237
19231
  if (!r.value.length) return [];
19238
19232
  const p = Ge(r.value[0]), m = r.value.length - 1, h = c(), f = e.events.value.filter(Fn).map((C) => {
19239
- const S = Bt(Ge(C.start), p), T = Bt(Ge(new Date(C.end.getTime() - 1)), p), I = Math.max(S, 0), V = Math.min(T, m);
19233
+ const S = Dt(Ge(C.start), p), T = Dt(Ge(new Date(C.end.getTime() - 1)), p), I = Math.max(S, 0), V = Math.min(T, m);
19240
19234
  return {
19241
19235
  event: C,
19242
19236
  startCol: I,
@@ -19325,7 +19319,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19325
19319
  return `${R.title}: ${Te(R.start, "PPp")} – ${Te(R.end, "PPp")}`;
19326
19320
  }
19327
19321
  function p(R) {
19328
- const A = R.event.color ?? Dt(R.event.title);
19322
+ const A = R.event.color ?? Bt(R.event.title);
19329
19323
  return {
19330
19324
  top: `${R.top}px`,
19331
19325
  height: `${R.height}px`,
@@ -19335,7 +19329,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19335
19329
  };
19336
19330
  }
19337
19331
  function m(R) {
19338
- const A = R.event.color ?? Dt(R.event.title);
19332
+ const A = R.event.color ?? Bt(R.event.title);
19339
19333
  return {
19340
19334
  top: `${R.row * ao + 2}px`,
19341
19335
  left: `calc(${R.startCol / v.dayCount.value * 100}% + 1px)`,
@@ -19343,14 +19337,14 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19343
19337
  ...Vn(A, R.past)
19344
19338
  };
19345
19339
  }
19346
- const h = B(null);
19340
+ const h = D(null);
19347
19341
  tt(() => {
19348
19342
  const R = h.value;
19349
19343
  if (!R) return;
19350
19344
  const _ = v.timedByColumn.value.flat().reduce((E, N) => E === null ? N.top : Math.min(E, N.top), null) ?? Math.max(0, (8 - o.value) * Nt);
19351
19345
  R.scrollTop = Math.max(0, _ - Nt / 2);
19352
19346
  });
19353
- const f = B(Date.now());
19347
+ const f = D(Date.now());
19354
19348
  let k;
19355
19349
  tt(() => {
19356
19350
  k = setInterval(() => f.value = Date.now(), 6e4);
@@ -19378,9 +19372,9 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19378
19372
  Rt(() => {
19379
19373
  T.cancel(), S.clear();
19380
19374
  });
19381
- const V = B(!1), D = B(null), O = B(null);
19375
+ const V = D(!1), B = D(null), O = D(null);
19382
19376
  function M(R, A) {
19383
- l("event-click", R), t.quickInfo && (D.value = R, O.value = A.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19377
+ l("event-click", R), t.quickInfo && (B.value = R, O.value = A.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19384
19378
  }
19385
19379
  return (R, A) => (s(), g("div", G_, [
19386
19380
  w("div", q_, [
@@ -19489,9 +19483,9 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19489
19483
  ])) : L("", !0),
19490
19484
  $(oa, {
19491
19485
  open: V.value,
19492
- event: D.value,
19486
+ event: B.value,
19493
19487
  "anchor-rect": O.value,
19494
- "can-edit": t.editable && !!D.value && t.isEventEditable(D.value),
19488
+ "can-edit": t.editable && !!B.value && t.isEventEditable(B.value),
19495
19489
  onClose: A[0] || (A[0] = (_) => V.value = !1),
19496
19490
  onEdit: A[1] || (A[1] = (_) => l("edit-intent", _)),
19497
19491
  onDelete: A[2] || (A[2] = (_) => l("event-delete", _))
@@ -19515,7 +19509,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19515
19509
  },
19516
19510
  emits: ["save", "more", "close"],
19517
19511
  setup(e, { emit: a }) {
19518
- const t = e, l = a, r = B(t.draft.title), i = B(null), o = y(
19512
+ const t = e, l = a, r = D(t.draft.title), i = D(null), o = y(
19519
19513
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
19520
19514
  ), c = y(() => r.value.trim().length > 0);
19521
19515
  oe(
@@ -19692,7 +19686,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19692
19686
  function V(A) {
19693
19687
  !o.recurrence || o.recurrence.end.type !== "until" || !A || (o.recurrence.end.until = A);
19694
19688
  }
19695
- function D(A) {
19689
+ function B(A) {
19696
19690
  if (!o.recurrence || o.recurrence.end.type !== "count") return;
19697
19691
  const _ = Math.trunc(Number(A));
19698
19692
  o.recurrence.end.count = Number.isFinite(_) && _ >= 1 ? _ : 1;
@@ -19829,7 +19823,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19829
19823
  label: A.$t("VC_SCHEDULER.REPEAT_END_COUNT"),
19830
19824
  class: "vc-scheduler__editor-field",
19831
19825
  "data-test": "recur-end-count",
19832
- "onUpdate:modelValue": _[9] || (_[9] = (E) => D(E))
19826
+ "onUpdate:modelValue": _[9] || (_[9] = (E) => B(E))
19833
19827
  }, null, 8, ["model-value", "label"])) : L("", !0)
19834
19828
  ])
19835
19829
  ])) : L("", !0)
@@ -20164,7 +20158,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20164
20158
  function V() {
20165
20159
  u.open = !1, u.event = null;
20166
20160
  }
20167
- function D({ title: W }) {
20161
+ function B({ title: W }) {
20168
20162
  if (d.draft) {
20169
20163
  const { start: ae, end: re, allDay: ie, color: te } = d.draft;
20170
20164
  l("event-create", { start: ae, end: re, allDay: ie, title: W, color: te });
@@ -20237,12 +20231,12 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20237
20231
  month: "VC_SCHEDULER.MONTH",
20238
20232
  "timeline-day": "VC_SCHEDULER.TIMELINE_DAY",
20239
20233
  "timeline-week": "VC_SCHEDULER.TIMELINE_WEEK"
20240
- }, N = y(() => t.views.map((W) => ({ value: W, label: i(E[W]) }))), F = B(t.view ?? t.views[0] ?? "month"), z = y({
20234
+ }, N = y(() => t.views.map((W) => ({ value: W, label: i(E[W]) }))), F = D(t.view ?? t.views[0] ?? "month"), z = y({
20241
20235
  get: () => t.view ?? F.value,
20242
20236
  set: (W) => {
20243
20237
  F.value = W, l("update:view", W);
20244
20238
  }
20245
- }), K = B(t.date ?? /* @__PURE__ */ new Date()), Z = y({
20239
+ }), K = D(t.date ?? /* @__PURE__ */ new Date()), Z = y({
20246
20240
  get: () => t.date ?? K.value,
20247
20241
  set: (W) => {
20248
20242
  K.value = W, l("update:date", W);
@@ -20265,7 +20259,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20265
20259
  Z.value = W;
20266
20260
  }
20267
20261
  }), ke = (W) => t.isEventEditable ? t.isEventEditable(W) : !0;
20268
- return Be(Lk, {
20262
+ return De(Lk, {
20269
20263
  focusedDate: Z,
20270
20264
  view: z,
20271
20265
  editable: Ie(t, "editable"),
@@ -20379,7 +20373,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20379
20373
  open: d.open,
20380
20374
  anchorRect: d.anchorRect,
20381
20375
  draft: d.draft ?? o,
20382
- save: D,
20376
+ save: B,
20383
20377
  more: O,
20384
20378
  close: M
20385
20379
  }, () => [
@@ -20387,7 +20381,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20387
20381
  open: d.open,
20388
20382
  "anchor-rect": d.anchorRect,
20389
20383
  draft: d.draft ?? o,
20390
- onSave: D,
20384
+ onSave: B,
20391
20385
  onMore: O,
20392
20386
  onClose: M
20393
20387
  }, null, 8, ["open", "anchor-rect", "draft"])
@@ -20446,7 +20440,7 @@ export {
20446
20440
  Zl as J,
20447
20441
  t$ as K,
20448
20442
  NS as L,
20449
- BS as M,
20443
+ DS as M,
20450
20444
  hC as N,
20451
20445
  Yl as O,
20452
20446
  jl as P,
@@ -20462,7 +20456,7 @@ export {
20462
20456
  u$ as Z,
20463
20457
  SS as _,
20464
20458
  ow as a,
20465
- Bc as a$,
20459
+ Dc as a$,
20466
20460
  zy as a0,
20467
20461
  ai as a1,
20468
20462
  l$ as a2,
@@ -20502,7 +20496,7 @@ export {
20502
20496
  CS as a_,
20503
20497
  ct as aa,
20504
20498
  cl as ab,
20505
- DS as ac,
20499
+ BS as ac,
20506
20500
  ta as ad,
20507
20501
  e$ as ae,
20508
20502
  ZS as af,
@@ -20574,7 +20568,7 @@ export {
20574
20568
  _c as bx,
20575
20569
  kS as by,
20576
20570
  Mc as bz,
20577
- Dl as c,
20571
+ Bl as c,
20578
20572
  nl as d,
20579
20573
  Nw as e,
20580
20574
  gi as f,
@@ -20593,7 +20587,7 @@ export {
20593
20587
  Ga as s,
20594
20588
  s$ as t,
20595
20589
  Zb as u,
20596
- Dn as v,
20590
+ Bn as v,
20597
20591
  vh as w,
20598
20592
  Oh as x,
20599
20593
  sb as y,