@vc-shell/framework 2.5.0-pr344.8af4333 → 2.5.0-pr345.356b508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
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";
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";
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
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";
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";
@@ -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 Ds from "../assets/9392bf1d591e1abb.svg";
16
- import Bs from "../assets/204eaf512fde2023.svg";
15
+ import Bs from "../assets/9392bf1d591e1abb.svg";
16
+ import Ds 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 Dr, useForm as Mo, useIsFormValid as Br, useIsFormDirty as Pr, Field as Tl, PublicFormContextKey as Vr } 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";
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 Do, 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 Bo, 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 Bo } from "./vendor-sortablejs-Bsvu-FKn.js";
91
+ import { S as Do } 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 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";
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";
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 = D([]), l = D([]), r = /* @__PURE__ */ new Map();
175
+ const a = /* @__PURE__ */ new Map(), t = B([]), l = B([]), r = /* @__PURE__ */ new Map();
176
176
  let i = 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);
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);
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 B = I.isNew;
184
+ let D = 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
- B = A.isNew, Object.assign(A, I), A.isNew = B;
188
+ D = A.isNew, Object.assign(A, I), A.isNew = D;
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 = B;
194
+ Object.assign(A, I), A.isNew = D;
195
195
  } else
196
196
  l.value.push({ ...I });
197
197
  const R = I.notifyType ? a.get(I.notifyType) : void 0;
198
- if (R && B && c(I, R), B && I.notifyType)
198
+ if (R && D && c(I, R), D && 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 B = l.value.find((O) => O.id === I.id);
206
- B && (B.isNew = !1);
205
+ const D = l.value.find((O) => O.id === I.id);
206
+ D && (D.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 }, B = await d.searchPushNotification(V);
223
- t.value = B.notifyEvents ?? [];
222
+ const V = { take: I }, D = await d.searchPushNotification(V);
223
+ t.value = D.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 Dc(e, a) {
371
+ function Bc(e, a) {
372
372
  let t = 0;
373
373
  function l(r) {
374
374
  if (t > 0) return;
@@ -393,7 +393,7 @@ function Dc(e, a) {
393
393
  };
394
394
  }
395
395
  function Ho(e, a) {
396
- const t = Dc(e, () => a);
396
+ const t = Bc(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 Bc = 150;
405
+ const Dc = 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
- }, Bc));
430
+ }, Dc));
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 = D(/* @__PURE__ */ new Map()), u = D(null), v = D(0), b = D([]), p = D([]), m = y(() => p.value.length > 0);
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);
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
- }, B = () => {
519
+ }, D = () => {
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
- B(), $e(() => {
558
+ D(), $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 = 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" });
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" });
583
583
  function u() {
584
584
  i.value = !i.value;
585
585
  }
586
- return Do(l, () => {
586
+ return Bo(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 = D(e?.initialProperty || null), t = D(e?.initialDirection || null), l = y({
600
+ const a = B(e?.initialProperty || null), t = B(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 = D([]), r = D(!1), i = y(() => l.value.flatMap((f) => {
638
+ }, l = B([]), r = B(!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 = D(a), r = D(t), i = y(() => {
681
+ const a = e?.initialField, t = zc(e?.initialDirection), l = B(a), r = B(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 = D(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 = B(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 = D(e?.initial), t = e?.stateKey;
753
+ const a = B(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 B = {
800
+ const D = {
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, B), a.value = I, f && t.set(l(f), v), f && T && es({
807
+ I.set(v, D), 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 = D([]), d = D(), u = y(() => r.getBladeComponent(t.descriptor.name)), v = y(() => i.trailFor?.(t.descriptor.id) ?? t.breadcrumbs);
872
- De(
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(
873
873
  al,
874
874
  y(() => t.descriptor)
875
- ), De(
875
+ ), Be(
876
876
  Wn,
877
877
  y(() => ({
878
878
  maximized: o.value,
879
879
  breadcrumbs: v.value
880
880
  }))
881
- ), De(vo, o), De(fo, c), De(
881
+ ), Be(vo, o), Be(fo, c), Be(
882
882
  mo,
883
883
  y(() => t.backButton)
884
884
  );
885
885
  const b = Ut();
886
- De(
886
+ Be(
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
- De(ls, {
953
+ Be(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 = D(null), u = D(null), v = D(-1), { teleportTarget: b } = Vt({
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({
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"), B = y(() => {
1081
+ } : {}), I = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), V = y(() => t.role === "listbox" ? "option" : "menuitem"), D = 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": B.value,
1216
+ "aria-activedescendant": D.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 = D(null), l = D(!1), r = Zn({
1312
+ const a = e, t = B(null), l = B(!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 = D(), l = D(!1), r = () => {
1405
+ const a = e, t = B(), l = B(!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((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;
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;
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: (B) => k(B),
1601
+ getToolbarItems: (D) => k(D),
1602
1602
  isMobile: () => b.value,
1603
- isEnabled: (B) => C(B.permissions) && Jn(B.isVisible) && !Xl(B.disabled),
1604
- closeBlade: (B) => t.closeBlade(B),
1605
- toggleMaximized: (B) => t.toggleMaximized(B),
1603
+ isEnabled: (D) => C(D.permissions) && Jn(D.isVisible) && !Xl(D.disabled),
1604
+ closeBlade: (D) => t.closeBlade(D),
1605
+ toggleMaximized: (D) => t.toggleMaximized(D),
1606
1606
  isModalOpen: () => typeof document < "u" && document.querySelector('[aria-modal="true"]') !== null
1607
1607
  });
1608
1608
  ac(window, "keydown", S);
1609
- async function T(B) {
1610
- await t.closeBlade(B);
1609
+ async function T(D) {
1610
+ await t.closeBlade(D);
1611
1611
  }
1612
- async function I(B, O) {
1612
+ async function I(D, O) {
1613
1613
  try {
1614
- const M = await l.callParent(O, B.method, B.args);
1615
- B.callback?.(M);
1614
+ const M = await l.callParent(O, D.method, D.args);
1615
+ D.callback?.(M);
1616
1616
  } catch (M) {
1617
1617
  console.warn("[VcBladeNavigation] Parent call failed:", M);
1618
1618
  }
1619
1619
  }
1620
- function V(B) {
1621
- const O = o.value[B];
1622
- if (!(B <= 0 || !O))
1620
+ function V(D) {
1621
+ const O = o.value[D];
1622
+ if (!(D <= 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 (B, O) => (s(), g("div", {
1630
+ return (D, 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 = D(null), d = {
1683
+ const t = e, l = a, i = `vc-popup-title-${Tt()?.uid ?? 0}`, { isMobile: o } = Ve(), c = B(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] = (B) => n(u)?.finalize())
1706
+ onAfterLeave: V[0] || (V[0] = (D) => 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 De(qo, {
1851
+ return Be(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 B = C({
1992
+ const D = C({
1993
1993
  component: S,
1994
1994
  props: {
1995
1995
  title: T
1996
1996
  },
1997
1997
  emits: {
1998
1998
  onClose() {
1999
- p(B);
1999
+ p(D);
2000
2000
  }
2001
2001
  },
2002
2002
  slots: {
2003
2003
  default: xa(I, V)
2004
2004
  }
2005
2005
  });
2006
- return c(B), B;
2006
+ return c(D), D;
2007
2007
  }
2008
2008
  function h(S, T) {
2009
2009
  const I = wn("warning");
2010
2010
  return I ? new Promise((V) => {
2011
- const B = C({
2011
+ const D = 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(B);
2018
+ V(!1), p(D);
2019
2019
  },
2020
2020
  onConfirm() {
2021
- V(!0), p(B);
2021
+ V(!0), p(D);
2022
2022
  }
2023
2023
  },
2024
2024
  slots: {
2025
2025
  default: xa(S, T)
2026
2026
  }
2027
2027
  });
2028
- c(B);
2028
+ c(D);
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" }, Du = {
2081
+ const Nu = { class: "vc-blade-header__status-container" }, Bu = {
2082
2082
  key: 1,
2083
2083
  class: "vc-blade-header__icon"
2084
- }, Bu = {
2084
+ }, Du = {
2085
2085
  key: 2,
2086
2086
  class: "vc-blade-header__icon"
2087
2087
  }, Pu = { class: "vc-blade-header__wrapper" }, Vu = {
@@ -2109,34 +2109,30 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
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 = D(!1), m = D(null), h = D(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 = B(!1), m = B(null), h = B(null), { teleportTarget: f } = Vt(), { floatingStyle: k } = il(m, h, {
2113
2113
  placement: "bottom-start",
2114
2114
  middleware: () => [Ul()]
2115
- }), C = D(null);
2115
+ }), C = B(null);
2116
2116
  function S() {
2117
2117
  C.value?.contains(document.activeElement) && requestAnimationFrame(() => {
2118
2118
  C.value?.querySelector("[data-blade-expand-control]")?.focus();
2119
2119
  });
2120
2120
  }
2121
- oe(
2122
- () => b?.value?.maximized,
2123
- () => S()
2124
- );
2125
2121
  function T() {
2126
- t.closable && l("expand");
2122
+ t.closable && (S(), l("expand"));
2127
2123
  }
2128
2124
  function I() {
2129
- t.closable && l("collapse");
2125
+ t.closable && (S(), l("collapse"));
2130
2126
  }
2131
2127
  function V() {
2132
2128
  t.closable && l("close");
2133
2129
  }
2134
- return (B, O) => (s(), g("div", {
2130
+ return (D, O) => (s(), g("div", {
2135
2131
  class: X(["vc-blade-header", {
2136
2132
  "vc-blade-header--mobile": n(v)
2137
2133
  }])
2138
2134
  }, [
2139
- H(B.$slots, "prepend"),
2135
+ H(D.$slots, "prepend"),
2140
2136
  w("div", Nu, [
2141
2137
  !e.loading && typeof e.modified < "u" ? (s(), g("div", {
2142
2138
  key: 0,
@@ -2156,16 +2152,16 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2156
2152
  ref: h,
2157
2153
  style: he(n(k)),
2158
2154
  class: "vc-blade-header__tooltip"
2159
- }, U(e.modified ? B.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.UNSAVED_CHANGES") : B.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.NO_CHANGES")), 5)) : L("", !0)
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)
2160
2156
  ], 8, ["to"]))
2161
2157
  ], 34)) : L("", !0),
2162
- e.loading ? (s(), g("div", Du, [
2158
+ e.loading ? (s(), g("div", Bu, [
2163
2159
  $(n(we), {
2164
2160
  variant: "circle",
2165
2161
  width: 24,
2166
2162
  height: 24
2167
2163
  })
2168
- ])) : e.icon ? (s(), g("div", Bu, [
2164
+ ])) : e.icon ? (s(), g("div", Du, [
2169
2165
  $(n(le), {
2170
2166
  icon: e.icon,
2171
2167
  size: "xxl"
@@ -2194,8 +2190,8 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2194
2190
  }, U(e.title), 11, zu),
2195
2191
  e.subtitle ? (s(), g("div", Hu, U(e.subtitle), 1)) : L("", !0)
2196
2192
  ])),
2197
- !e.loading && B.$slots.actions ? (s(), g("div", Wu, [
2198
- H(B.$slots, "actions")
2193
+ !e.loading && D.$slots.actions ? (s(), g("div", Wu, [
2194
+ H(D.$slots, "actions")
2199
2195
  ])) : L("", !0)
2200
2196
  ]),
2201
2197
  !n(v) && e.closable ? (s(), g("div", {
@@ -2419,7 +2415,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2419
2415
  },
2420
2416
  emits: ["header:click", "state:collapsed"],
2421
2417
  setup(e, { emit: a }) {
2422
- const t = Qe(), l = e, r = a, i = `vc-card-body-${Pt()}`, o = D();
2418
+ const t = Qe(), l = e, r = a, i = `vc-card-body-${Pt()}`, o = B();
2423
2419
  function c() {
2424
2420
  l.isCollapsable && (o.value = !o.value, r("state:collapsed", o.value)), r("header:click");
2425
2421
  }
@@ -2511,7 +2507,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2511
2507
  H(a.$slots, "default")
2512
2508
  ], 4));
2513
2509
  }
2514
- }), DS = os, ud = ["aria-busy"], dd = { class: "tw-sr-only" }, vd = /* @__PURE__ */ Q({
2510
+ }), BS = os, ud = ["aria-busy"], dd = { class: "tw-sr-only" }, vd = /* @__PURE__ */ Q({
2515
2511
  __name: "vc-loading",
2516
2512
  props: {
2517
2513
  active: { type: Boolean }
@@ -2556,7 +2552,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2556
2552
  }, null, 4)
2557
2553
  ], 10, md));
2558
2554
  }
2559
- }), BS = pd, gd = { class: "vc-row" }, PS = /* @__PURE__ */ Q({
2555
+ }), DS = pd, gd = { class: "vc-row" }, PS = /* @__PURE__ */ Q({
2560
2556
  __name: "vc-row",
2561
2557
  setup(e) {
2562
2558
  return (a, t) => (s(), g("div", gd, [
@@ -2798,7 +2794,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2798
2794
  w("span", Id, U(e.name), 1)
2799
2795
  ], 10, Ld));
2800
2796
  }
2801
- }), Nd = ["aria-label"], Dd = ["aria-hidden"], Bd = ["disabled", "aria-label", "tabindex", "onClick"], Pd = { class: "vc-blade-toolbar-mobile__action-label" }, Vd = {
2797
+ }), Nd = ["aria-label"], Bd = ["aria-hidden"], Dd = ["disabled", "aria-label", "tabindex", "onClick"], Pd = { class: "vc-blade-toolbar-mobile__action-label" }, Vd = {
2802
2798
  class: "vc-blade-toolbar-mobile__action-icon",
2803
2799
  "aria-hidden": "true"
2804
2800
  }, Fd = ["aria-label"], Ud = {
@@ -2810,7 +2806,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2810
2806
  items: {}
2811
2807
  },
2812
2808
  setup(e) {
2813
- const a = e, t = D(!1);
2809
+ const a = e, t = B(!1);
2814
2810
  function l(b) {
2815
2811
  return b.title ? bt(b.title) ? xe(b.title) ?? "" : String(b.title) : "";
2816
2812
  }
@@ -2873,8 +2869,8 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2873
2869
  size: "s"
2874
2870
  }, null, 8, ["icon"])
2875
2871
  ])
2876
- ], 12, Bd))), 128))
2877
- ], 10, Dd),
2872
+ ], 12, Dd))), 128))
2873
+ ], 10, Bd),
2878
2874
  $(Fe, {
2879
2875
  name: "toolbar-mobile-fab",
2880
2876
  mode: "out-in"
@@ -2941,7 +2937,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
2941
2937
  onClick: {}
2942
2938
  },
2943
2939
  setup(e) {
2944
- const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() => Xl(a.disabled)), i = y(() => ({
2940
+ const a = e, { isMac: t } = Oo(), l = B(!1), r = y(() => Xl(a.disabled)), i = y(() => ({
2945
2941
  "vc-blade-toolbar-base-button--disabled": r.value || l.value,
2946
2942
  "vc-blade-toolbar-base-button--with-separator-left": a.separator === "left",
2947
2943
  "vc-blade-toolbar-base-button--with-separator-right": a.separator === "right",
@@ -3021,7 +3017,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
3021
3017
  isExpanded: { type: Boolean }
3022
3018
  },
3023
3019
  setup(e) {
3024
- const a = e, t = D(!1), l = D(null), { visibleItems: r, hiddenItems: i, showMoreButton: o, recalculate: c, updateObserver: d } = Zn({
3020
+ const a = e, t = B(!1), l = B(null), { visibleItems: r, hiddenItems: i, showMoreButton: o, recalculate: c, updateObserver: d } = Zn({
3025
3021
  containerRef: l,
3026
3022
  items: Ie(a, "items"),
3027
3023
  getItemKey: (v) => v.id ?? `toolbar_item_${a.items.indexOf(v)}`,
@@ -3087,7 +3083,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
3087
3083
  function Jd(e) {
3088
3084
  const { hasAccess: a } = sl(), { registerToolbarItem: t, unregisterToolbarItem: l, getToolbarItems: r, updateToolbarItem: i } = wo({
3089
3085
  autoCleanup: !1
3090
- }), { id: o } = qn(), c = y(() => (o.value ?? is).toLowerCase()), { isMobile: d } = Ve(), u = /* @__PURE__ */ new Set(), v = D(c.value);
3086
+ }), { id: o } = qn(), c = y(() => (o.value ?? is).toLowerCase()), { isMobile: d } = Ve(), u = /* @__PURE__ */ new Set(), v = B(c.value);
3091
3087
  function b(f, k) {
3092
3088
  const C = v.value, S = f.id || `${Zd}${C}_${k}`;
3093
3089
  return {
@@ -3237,15 +3233,15 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
3237
3233
  props: {
3238
3234
  renderFn: { type: Function, required: !0 }
3239
3235
  },
3240
- setup(B) {
3241
- return () => B.renderFn();
3236
+ setup(D) {
3237
+ return () => D.renderFn();
3242
3238
  }
3243
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), {
3244
3240
  contentRef: b,
3245
3241
  isExpanded: p,
3246
3242
  wrapperStyle: m,
3247
3243
  toggle: h
3248
- } = Kl(), f = D(!1), k = u;
3244
+ } = Kl(), f = B(!1), k = u;
3249
3245
  async function C() {
3250
3246
  await v() && (f.value = !0, setTimeout(() => {
3251
3247
  f.value = !1;
@@ -3253,34 +3249,34 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
3253
3249
  }
3254
3250
  oe(
3255
3251
  [c, d],
3256
- ([B]) => {
3252
+ ([D]) => {
3257
3253
  if (!r) return;
3258
3254
  const O = r.value.findIndex((M) => M.id === yl);
3259
- B && O === -1 ? r.value.push({
3255
+ D && O === -1 ? r.value.push({
3260
3256
  id: yl,
3261
3257
  variant: "danger",
3262
3258
  message: d.value,
3263
3259
  dismissible: !0,
3264
3260
  _system: !0
3265
- }) : B && O !== -1 ? r.value[O] = {
3261
+ }) : D && O !== -1 ? r.value[O] = {
3266
3262
  ...r.value[O],
3267
3263
  message: d.value
3268
- } : !B && O !== -1 && r.value.splice(O, 1);
3264
+ } : !D && O !== -1 && r.value.splice(O, 1);
3269
3265
  },
3270
3266
  { immediate: !0 }
3271
3267
  ), oe(
3272
3268
  () => t.modified,
3273
- (B) => {
3269
+ (D) => {
3274
3270
  if (!r) return;
3275
3271
  const O = r.value.findIndex((M) => M.id === Na);
3276
- B && O === -1 ? r.value.push({
3272
+ D && O === -1 ? r.value.push({
3277
3273
  id: Na,
3278
3274
  variant: "warning",
3279
3275
  icon: "lucide-pencil",
3280
3276
  message: o("COMPONENTS.ORGANISMS.VC_BLADE.UNSAVED_CHANGES"),
3281
3277
  dismissible: !1,
3282
3278
  _system: !0
3283
- }) : !B && O !== -1 && r.value.splice(O, 1);
3279
+ }) : !D && O !== -1 && r.value.splice(O, 1);
3284
3280
  },
3285
3281
  { immediate: !0 }
3286
3282
  );
@@ -3289,19 +3285,19 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
3289
3285
  warning: 1,
3290
3286
  info: 2,
3291
3287
  success: 3
3292
- }, T = y(() => r ? [...r.value].sort((B, O) => (S[B.variant] ?? 9) - (S[O.variant] ?? 9)) : []);
3293
- function I(B) {
3288
+ }, T = y(() => r ? [...r.value].sort((D, O) => (S[D.variant] ?? 9) - (S[O.variant] ?? 9)) : []);
3289
+ function I(D) {
3294
3290
  return {
3295
3291
  danger: "lucide-circle-alert",
3296
3292
  warning: "lucide-triangle-alert",
3297
3293
  info: "lucide-info",
3298
3294
  success: "lucide-circle-check"
3299
- }[B] ?? "lucide-info";
3295
+ }[D] ?? "lucide-info";
3300
3296
  }
3301
- function V(B) {
3302
- r && (B.id === yl && l && i && i.clearBladeError(l.value.id), r.value = r.value.filter((O) => O.id !== B.id));
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));
3303
3299
  }
3304
- return (B, O) => (s(), P(Un, { name: "banner-reveal" }, {
3300
+ return (D, O) => (s(), P(Un, { name: "banner-reveal" }, {
3305
3301
  default: x(() => [
3306
3302
  (s(!0), g(J, null, ve(T.value, (M) => (s(), g("div", {
3307
3303
  key: M.id,
@@ -3401,14 +3397,14 @@ function yv() {
3401
3397
  throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new Pl("WidgetService");
3402
3398
  return e;
3403
3399
  }
3404
- const Dl = /* @__PURE__ */ Q({
3400
+ const Bl = /* @__PURE__ */ Q({
3405
3401
  __name: "WidgetScope",
3406
3402
  props: {
3407
3403
  widgetId: {}
3408
3404
  },
3409
3405
  setup(e) {
3410
3406
  const a = e, t = Ce(go), r = Ce(al, void 0)?.value.id ?? "";
3411
- return De(Gi, {
3407
+ return Be(Gi, {
3412
3408
  setTrigger: (o) => {
3413
3409
  t.updateWidget({ id: a.widgetId, bladeId: r, widget: { trigger: o } });
3414
3410
  }
@@ -3449,7 +3445,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3449
3445
  bladeId: {}
3450
3446
  },
3451
3447
  setup(e) {
3452
- 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);
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);
3453
3449
  return (b, p) => (s(), g("div", wv, [
3454
3450
  w("div", Cv, [
3455
3451
  (s(!0), g(J, null, ve(d.value, (m) => (s(), g(J, {
@@ -3475,7 +3471,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3475
3471
  disabled: n(i)(m),
3476
3472
  "widget-id": m.id,
3477
3473
  onClick: (h) => n(c)(m)
3478
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3474
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3479
3475
  key: 2,
3480
3476
  "widget-id": m.id
3481
3477
  }, {
@@ -3522,7 +3518,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3522
3518
  onClick: (h) => {
3523
3519
  n(c)(m), t.value = !1;
3524
3520
  }
3525
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3521
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3526
3522
  key: 2,
3527
3523
  "widget-id": m.id
3528
3524
  }, {
@@ -3609,7 +3605,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3609
3605
  ye.style.overflow = se.cachedOverflow, ye.style.paddingRight = se.cachedPaddingRight;
3610
3606
  }
3611
3607
  }
3612
- const c = e, d = t, u = ht(), v = D(null), b = D(!1), p = D(null), { teleportTarget: m } = Vt({
3608
+ const c = e, d = t, u = ht(), v = B(null), b = B(!1), p = B(null), { teleportTarget: m } = Vt({
3613
3609
  to: y(() => c.teleportTo)
3614
3610
  }), f = `vc-sidebar-title-${Math.round(Math.random() * 1e5)}`, k = {
3615
3611
  sm: "300px",
@@ -3621,7 +3617,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3621
3617
  md: "56dvh",
3622
3618
  lg: "72dvh",
3623
3619
  full: "100dvh"
3624
- }, 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 ? {
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 ? {
3625
3621
  height: T.value ?? C[c.size]
3626
3622
  } : {
3627
3623
  width: S.value ?? k[c.size]
@@ -3635,7 +3631,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3635
3631
  "vc-sidebar__panel--with-header": I.value,
3636
3632
  "vc-sidebar__panel--with-footer": V.value,
3637
3633
  "vc-sidebar__panel--inset": c.inset && !O.value,
3638
- "vc-sidebar__panel--draggable": c.draggable && B.value
3634
+ "vc-sidebar__panel--draggable": c.draggable && D.value
3639
3635
  }
3640
3636
  ]), E = y(() => c.ariaLabel || void 0), N = y(() => c.ariaLabel || !c.title ? void 0 : f);
3641
3637
  function F(se) {
@@ -3650,9 +3646,9 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3650
3646
  function Z() {
3651
3647
  c.closeOnOverlay && F("overlay");
3652
3648
  }
3653
- const de = D(0), Y = D(!1);
3649
+ const de = B(0), Y = B(!1);
3654
3650
  function q(se) {
3655
- !c.draggable || !B.value || (de.value = se.touches[0].clientY, Y.value = !0);
3651
+ !c.draggable || !D.value || (de.value = se.touches[0].clientY, Y.value = !0);
3656
3652
  }
3657
3653
  function ne(se) {
3658
3654
  if (!Y.value || !v.value) return;
@@ -3785,7 +3781,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3785
3781
  onTouchmove: ne,
3786
3782
  onTouchend: ee
3787
3783
  }, [
3788
- e.dragHandle && B.value ? (s(), g("div", $v, [...ye[1] || (ye[1] = [
3784
+ e.dragHandle && D.value ? (s(), g("div", $v, [...ye[1] || (ye[1] = [
3789
3785
  w("div", { class: "vc-sidebar__handle-bar" }, null, -1)
3790
3786
  ])])) : L("", !0),
3791
3787
  I.value ? H(se.$slots, "header", {
@@ -3831,14 +3827,14 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3831
3827
  ], 12, Ev)
3832
3828
  ], 8, ["to", "disabled"]));
3833
3829
  }
3834
- }), Nv = { class: "vc-widget-container-mobile" }, Dv = ["data-item-key"], Bv = { class: "vc-widget-container-mobile__overflow-list" }, Pv = /* @__PURE__ */ Q({
3830
+ }), Nv = { class: "vc-widget-container-mobile" }, Bv = ["data-item-key"], Dv = { class: "vc-widget-container-mobile__overflow-list" }, Pv = /* @__PURE__ */ Q({
3835
3831
  __name: "WidgetContainerMobile",
3836
3832
  props: {
3837
3833
  widgets: {},
3838
3834
  bladeId: {}
3839
3835
  },
3840
3836
  setup(e) {
3841
- 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({
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({
3842
3838
  containerRef: t,
3843
3839
  items: y(() => a.widgets),
3844
3840
  getItemKey: (m) => m.id ?? "",
@@ -3870,7 +3866,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3870
3866
  height: 10,
3871
3867
  class: "tw-mt-1"
3872
3868
  })
3873
- ], 8, Dv)) : f.headless ? (s(), P(n(Nl), {
3869
+ ], 8, Bv)) : f.headless ? (s(), P(n(Nl), {
3874
3870
  key: 1,
3875
3871
  icon: f.headless?.icon,
3876
3872
  title: n(d)(f),
@@ -3879,7 +3875,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3879
3875
  "data-item-key": f.id,
3880
3876
  "widget-id": f.id,
3881
3877
  onClick: (k) => n(u)(f)
3882
- }, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Dl, {
3878
+ }, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Bl, {
3883
3879
  key: 2,
3884
3880
  "widget-id": f.id
3885
3881
  }, {
@@ -3912,7 +3908,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3912
3908
  "onUpdate:modelValue": h[2] || (h[2] = (f) => l.value = f)
3913
3909
  }, {
3914
3910
  default: x(() => [
3915
- w("div", Bv, [
3911
+ w("div", Dv, [
3916
3912
  (s(!0), g(J, null, ve(n(p), (f) => (s(), g(J, {
3917
3913
  key: f.id
3918
3914
  }, [
@@ -3933,7 +3929,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3933
3929
  onClick: (k) => {
3934
3930
  n(u)(f), l.value = !1;
3935
3931
  }
3936
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3932
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3937
3933
  key: 2,
3938
3934
  "widget-id": f.id
3939
3935
  }, {
@@ -4049,7 +4045,7 @@ function Zo() {
4049
4045
  async function c(d) {
4050
4046
  if (!d) return "";
4051
4047
  const u = o(d);
4052
- 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;
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;
4053
4049
  }
4054
4050
  return {
4055
4051
  setLocale: l,
@@ -4072,7 +4068,7 @@ function US() {
4072
4068
  if (e)
4073
4069
  return e;
4074
4070
  const a = Zo();
4075
- return De(Mn, a), a;
4071
+ return Be(Mn, a), a;
4076
4072
  }
4077
4073
  function ti() {
4078
4074
  if (!so())
@@ -4088,7 +4084,7 @@ function zS() {
4088
4084
  if (e)
4089
4085
  return e;
4090
4086
  const a = ss();
4091
- return De(Ln, a), ro() && zn(() => rs.dispose(a)), a;
4087
+ return Be(Ln, a), ro() && zn(() => rs.dispose(a)), a;
4092
4088
  }
4093
4089
  function Ql() {
4094
4090
  const e = Ce(Ln);
@@ -4126,7 +4122,7 @@ function Yv(e) {
4126
4122
  return `${qv}_${a}`;
4127
4123
  }
4128
4124
  function jv() {
4129
- const e = zl(Yv(), !0), a = D(!1), t = D(!1), l = y(() => e.value || a.value);
4125
+ const e = zl(Yv(), !0), a = B(!1), t = B(!1), l = y(() => e.value || a.value);
4130
4126
  let r = null;
4131
4127
  const i = () => {
4132
4128
  e.value = !e.value;
@@ -4152,15 +4148,15 @@ function jv() {
4152
4148
  }
4153
4149
  };
4154
4150
  }
4155
- const Dn = Symbol("SidebarState");
4151
+ const Bn = Symbol("SidebarState");
4156
4152
  function Xv() {
4157
- const e = Ce(Dn, null);
4153
+ const e = Ce(Bn, null);
4158
4154
  if (e) return e;
4159
4155
  const a = jv();
4160
- return De(Dn, a), a;
4156
+ return Be(Bn, a), a;
4161
4157
  }
4162
4158
  function ea() {
4163
- const e = Ce(Dn);
4159
+ const e = Ce(Bn);
4164
4160
  if (!e)
4165
4161
  throw new Error("useSidebarState() requires provideSidebarState() in a parent component");
4166
4162
  return e;
@@ -4220,13 +4216,13 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4220
4216
  if (t.modified !== void 0) return t.modified;
4221
4217
  if (l)
4222
4218
  return l.isModified.value;
4223
- }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = D(!1);
4219
+ }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = B(!1);
4224
4220
  oe([() => !!t.loading, () => c?.value.param], ([z, K], Z) => {
4225
4221
  Z?.length && K !== Z[1] && (d.value = !1), !z && Z?.[0] && (d.value = !0);
4226
4222
  });
4227
4223
  const u = y(() => !!t.loading && !d.value), v = y(() => !!t.loading && d.value);
4228
- De(Ki, u), ht();
4229
- 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(() => {
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(() => {
4230
4226
  const { class: z, style: K, onClose: Z, ...de } = V;
4231
4227
  return de;
4232
4228
  });
@@ -4243,14 +4239,14 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4243
4239
  Hn(() => {
4244
4240
  k && f.value && t.title && E(f.value, t.title);
4245
4241
  });
4246
- const N = D(null), F = D(null);
4242
+ const N = B(null), F = B(null);
4247
4243
  return oe(u, (z) => {
4248
4244
  const K = N.value;
4249
4245
  !z || !K || document.activeElement && K.contains(document.activeElement) && K.focus({ preventScroll: !0 });
4250
4246
  }), tt(() => Nn(() => N.value)), (z, K) => (s(), g("div", Le({
4251
4247
  ref_key: "bladeRef",
4252
4248
  ref: N
4253
- }, B.value, {
4249
+ }, D.value, {
4254
4250
  class: ["vc-blade", [
4255
4251
  z.$attrs.class,
4256
4252
  {
@@ -4407,7 +4403,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4407
4403
  resolvedDisabled: b,
4408
4404
  ariaRequired: p,
4409
4405
  ariaDescribedBy: m
4410
- } = Ot(l), h = D(), f = D(!1);
4406
+ } = Ot(l), h = B(), f = B(!1);
4411
4407
  function k(C) {
4412
4408
  const S = C.target.value;
4413
4409
  i("update:modelValue", S);
@@ -4534,7 +4530,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4534
4530
  const a = Qe(), t = e, l = y(() => {
4535
4531
  const c = t.modelValue;
4536
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);
4537
- }), r = D("lucide-copy");
4533
+ }), r = B("lucide-copy");
4538
4534
  function i() {
4539
4535
  navigator.clipboard?.writeText(String(t.modelValue ?? "")), r.value = "lucide-check", setTimeout(() => {
4540
4536
  r.value = "lucide-copy";
@@ -4721,7 +4717,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4721
4717
  },
4722
4718
  emits: ["update:modelValue"],
4723
4719
  setup(e, { emit: a }) {
4724
- const t = Qe(), l = e, r = a, i = D([]), o = y(() => (v) => i.value.includes(v));
4720
+ const t = Qe(), l = e, r = a, i = B([]), o = y(() => (v) => i.value.includes(v));
4725
4721
  function c(v, b) {
4726
4722
  b ? l.multiple ? i.value.push(v) : i.value = [v] : i.value = i.value.filter((p) => p !== v), d();
4727
4723
  }
@@ -4808,21 +4804,21 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4808
4804
  },
4809
4805
  emits: ["upload"],
4810
4806
  setup(e, { emit: a }) {
4811
- 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(), {
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(), {
4812
4808
  errorMessage: f,
4813
4809
  handleChange: k,
4814
4810
  validate: C
4815
- } = Dr(`${l.name === "Gallery" ? o.value : l.name}`, p), S = y(() => l.errorMessage || f.value), T = y(() => {
4811
+ } = Br(`${l.name === "Gallery" ? o.value : l.name}`, p), S = y(() => l.errorMessage || f.value), T = y(() => {
4816
4812
  const A = /* @__PURE__ */ new Set();
4817
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;
4818
- }), I = D(null), V = async (A) => {
4814
+ }), I = B(null), V = async (A) => {
4819
4815
  if (d.value) return;
4820
4816
  if (await k(A.target), (await C()).valid) {
4821
4817
  const N = A.target.files;
4822
4818
  N && N.length && r("upload", N);
4823
4819
  }
4824
4820
  };
4825
- function B() {
4821
+ function D() {
4826
4822
  d.value || I.value && (I.value.value = "", I.value.click());
4827
4823
  }
4828
4824
  function O(A) {
@@ -4871,10 +4867,10 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4871
4867
  onDragenter: _[3] || (_[3] = ue(() => {
4872
4868
  }, ["stop", "prevent"])),
4873
4869
  onDragleave: ue(R, ["stop", "prevent"]),
4874
- onClick: B,
4870
+ onClick: D,
4875
4871
  onKeydown: [
4876
- Ae(B, ["enter"]),
4877
- Ae(ue(B, ["prevent"]), ["space"])
4872
+ Ae(D, ["enter"]),
4873
+ Ae(ue(D, ["prevent"]), ["space"])
4878
4874
  ]
4879
4875
  }, [
4880
4876
  e.loading ? (s(), g("div", Af, [
@@ -4961,16 +4957,16 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
4961
4957
  ], 10, Nf));
4962
4958
  }
4963
4959
  });
4964
- function Da(e) {
4960
+ function Ba(e) {
4965
4961
  return "options" in e;
4966
4962
  }
4967
4963
  function wl(e) {
4968
4964
  return !("options" in e);
4969
4965
  }
4970
- const Df = {
4966
+ const Bf = {
4971
4967
  key: 2,
4972
4968
  class: "vc-editor-dropdown"
4973
- }, Bf = ["disabled", "aria-label"], Pf = ["value"], Vf = /* @__PURE__ */ Q({
4969
+ }, Df = ["disabled", "aria-label"], Pf = ["value"], Vf = /* @__PURE__ */ Q({
4974
4970
  __name: "vc-editor-custom-button",
4975
4971
  props: {
4976
4972
  editor: {},
@@ -4984,7 +4980,7 @@ const Df = {
4984
4980
  }
4985
4981
  function i(o) {
4986
4982
  const c = o.target;
4987
- if (Da(a.customButton)) {
4983
+ if (Ba(a.customButton)) {
4988
4984
  const d = a.customButton.options.find((u) => u.value === c.value);
4989
4985
  d && d.action(a.editor, c.value);
4990
4986
  }
@@ -5000,7 +4996,7 @@ const Df = {
5000
4996
  active: t.value,
5001
4997
  disabled: e.disabled || l.value,
5002
4998
  onAction: r
5003
- }, null, 8, ["icon", "aria-label", "active", "disabled"])) : n(Da)(e.customButton) ? (s(), g("div", Df, [
4999
+ }, null, 8, ["icon", "aria-label", "active", "disabled"])) : n(Ba)(e.customButton) ? (s(), g("div", Bf, [
5004
5000
  w("select", {
5005
5001
  disabled: e.disabled || l.value,
5006
5002
  "aria-label": e.customButton.label,
@@ -5010,7 +5006,7 @@ const Df = {
5010
5006
  key: d.value,
5011
5007
  value: d.value
5012
5008
  }, U(d.label), 9, Pf))), 128))
5013
- ], 40, Bf)
5009
+ ], 40, Df)
5014
5010
  ])) : L("", !0);
5015
5011
  }
5016
5012
  }), Ff = { class: "vc-editor-font-selector" }, Uf = { class: "vc-editor-font-selector__dropdown" }, zf = ["aria-label", "disabled"], Hf = {
@@ -5023,7 +5019,7 @@ const Df = {
5023
5019
  disabled: { type: Boolean }
5024
5020
  },
5025
5021
  setup(e) {
5026
- 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(() => {
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(() => {
5027
5023
  const b = a.editor.getAttributes("textStyle");
5028
5024
  return b.fontSize ? parseInt(b.fontSize.replace("px", "")) : null;
5029
5025
  });
@@ -5315,7 +5311,7 @@ const Df = {
5315
5311
  },
5316
5312
  emits: ["update:modelValue", "upload-image"],
5317
5313
  setup(e, { emit: a }) {
5318
- 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 : [
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 : [
5319
5315
  "bold",
5320
5316
  "italic",
5321
5317
  "underline",
@@ -5407,7 +5403,7 @@ const Df = {
5407
5403
  return [...F.filter((Z) => !z.has(Z.name)), ...l.extensions];
5408
5404
  }
5409
5405
  return F;
5410
- }), C = D(l.modelValue || "");
5406
+ }), C = B(l.modelValue || "");
5411
5407
  oe(
5412
5408
  () => l.modelValue,
5413
5409
  (F) => {
@@ -5471,11 +5467,11 @@ const Df = {
5471
5467
  FORBID_TAGS: ["script", "object", "embed", "form", "input"],
5472
5468
  FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur"]
5473
5469
  });
5474
- }), T = D("editor"), I = y(() => T.value);
5470
+ }), T = B("editor"), I = y(() => T.value);
5475
5471
  function V() {
5476
5472
  T.value = T.value === "preview" ? "editor" : "preview";
5477
5473
  }
5478
- function B() {
5474
+ function D() {
5479
5475
  T.value = T.value === "source" ? "editor" : "source";
5480
5476
  }
5481
5477
  function O() {
@@ -5632,7 +5628,7 @@ const Df = {
5632
5628
  "aria-label": F.$t("COMPONENTS.MOLECULES.VC_EDITOR.VIEW.SOURCE"),
5633
5629
  active: I.value === "source",
5634
5630
  disabled: e.disabled,
5635
- onAction: B
5631
+ onAction: D
5636
5632
  }, null, 8, ["aria-label", "active", "disabled"]),
5637
5633
  $(Ue, {
5638
5634
  icon: u.value ? "lucide-shrink" : "lucide-expand",
@@ -5721,7 +5717,7 @@ const Df = {
5721
5717
  key: 0,
5722
5718
  class: "vc-notification__content",
5723
5719
  tabindex: "0"
5724
- }, dm = { key: 1 }, vm = ["aria-label"], Ba = 200, fm = 45, QS = /* @__PURE__ */ Q({
5720
+ }, dm = { key: 1 }, vm = ["aria-label"], Da = 200, fm = 45, QS = /* @__PURE__ */ Q({
5725
5721
  __name: "vc-toast",
5726
5722
  props: {
5727
5723
  content: { type: [String, Object, Function] },
@@ -5746,11 +5742,11 @@ const Df = {
5746
5742
  success: { icon: "lucide-check-circle", color: "var(--notification-success)" },
5747
5743
  error: { icon: "lucide-alert-circle", color: "var(--notification-error)" },
5748
5744
  warning: { icon: "lucide-alert-triangle", color: "var(--notification-warning)" }
5749
- }, { 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);
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);
5750
5746
  function m() {
5751
5747
  d.value || (d.value = !0, p.value?.clear(), setTimeout(() => {
5752
5748
  t("close", l.notificationId);
5753
- }, Ba));
5749
+ }, Da));
5754
5750
  }
5755
5751
  oe(
5756
5752
  () => l.dismissing,
@@ -5764,7 +5760,7 @@ const Df = {
5764
5760
  },
5765
5761
  { immediate: !0 }
5766
5762
  );
5767
- const h = D(null);
5763
+ const h = B(null);
5768
5764
  function f() {
5769
5765
  if (o.value && l.notificationId !== void 0 && !d.value) {
5770
5766
  const _ = o.value, E = _.style.height;
@@ -5805,15 +5801,15 @@ const Df = {
5805
5801
  function S() {
5806
5802
  l.timeout && l.pauseOnHover !== !1 && p.value?.resume();
5807
5803
  }
5808
- const T = D(0), I = D(0), V = D(!1), B = D(!1), O = D(0);
5804
+ const T = B(0), I = B(0), V = B(!1), D = B(!1), O = B(0);
5809
5805
  function M(_) {
5810
- if (d.value || B.value || _.target?.closest(".vc-notification__dismiss-button")) return;
5806
+ if (d.value || D.value || _.target?.closest(".vc-notification__dismiss-button")) return;
5811
5807
  T.value = _.clientX, I.value = _.clientY, O.value = Date.now(), V.value = !1;
5812
5808
  const E = o.value;
5813
5809
  E && E.setPointerCapture(_.pointerId);
5814
5810
  }
5815
5811
  function R(_) {
5816
- if (d.value || B.value || T.value === 0 && I.value === 0) return;
5812
+ if (d.value || D.value || T.value === 0 && I.value === 0) return;
5817
5813
  const E = _.clientX - T.value, N = _.clientY - I.value;
5818
5814
  if (!V.value)
5819
5815
  if (Math.abs(E) > 1 && Math.abs(E) > Math.abs(N))
@@ -5833,9 +5829,9 @@ const Df = {
5833
5829
  }
5834
5830
  const N = parseFloat(o.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), F = Date.now() - O.value, z = Math.abs(N) / F;
5835
5831
  if (Math.abs(N) >= fm || z > 0.11) {
5836
- d.value = !0, p.value?.clear(), B.value = !0;
5832
+ d.value = !0, p.value?.clear(), D.value = !0;
5837
5833
  const K = N > 0 ? 1 : -1;
5838
- o.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Ba);
5834
+ o.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Da);
5839
5835
  } else
5840
5836
  o.value?.style.setProperty("--swipe-amount-x", "0px"), p.value?.resume();
5841
5837
  V.value = !1, T.value = 0, I.value = 0;
@@ -5852,7 +5848,7 @@ const Df = {
5852
5848
  "data-expanded": e.expanded ?? !0,
5853
5849
  "data-visible": b.value,
5854
5850
  "data-swiping": V.value,
5855
- "data-swiped-out": B.value,
5851
+ "data-swiped-out": D.value,
5856
5852
  role: e.type === "error" ? "alert" : "status",
5857
5853
  onMouseenter: C,
5858
5854
  onMouseleave: S,
@@ -5899,7 +5895,7 @@ const Df = {
5899
5895
  },
5900
5896
  emits: ["itemClick"],
5901
5897
  setup(e, { emit: a }) {
5902
- const t = e, l = a, { isMobile: r } = Ve(), i = D(t.currentPage);
5898
+ const t = e, l = a, { isMobile: r } = Ve(), i = B(t.currentPage);
5903
5899
  oe(
5904
5900
  () => t.currentPage,
5905
5901
  (u) => {
@@ -6085,7 +6081,7 @@ const Df = {
6085
6081
  }), Lm = {
6086
6082
  key: 0,
6087
6083
  class: "vc-slider vc-slider--skeleton"
6088
- }, 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({
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({
6089
6085
  __name: "vc-slider",
6090
6086
  props: {
6091
6087
  slides: { default: () => [] },
@@ -6149,7 +6145,7 @@ const Df = {
6149
6145
  ], 8, Nm)
6150
6146
  ])
6151
6147
  ]),
6152
- w("div", Dm, [
6148
+ w("div", Bm, [
6153
6149
  H(r.$slots, "nextBtn", {}, () => [
6154
6150
  w("button", {
6155
6151
  type: "button",
@@ -6160,7 +6156,7 @@ const Df = {
6160
6156
  icon: "lucide-chevron-right",
6161
6157
  "aria-hidden": "true"
6162
6158
  })
6163
- ], 8, Bm)
6159
+ ], 8, Dm)
6164
6160
  ])
6165
6161
  ])
6166
6162
  ], 512), [
@@ -6203,7 +6199,7 @@ const Df = {
6203
6199
  },
6204
6200
  emits: ["remove", "toggleDropdown", "inputSubmit", "inputChange", "keyDown", "focus", "blur", "clearAll", "openColorPicker", "setColorPickerRef", "colorChange"],
6205
6201
  setup(e, { expose: a, emit: t }) {
6206
- const l = t, r = D(null);
6202
+ const l = t, r = B(null);
6207
6203
  function i(o) {
6208
6204
  l("inputSubmit", o), l("blur");
6209
6205
  }
@@ -6350,7 +6346,7 @@ const Df = {
6350
6346
  },
6351
6347
  emits: ["select", "search", "clickOutside"],
6352
6348
  setup(e, { expose: a, emit: t }) {
6353
- const l = e, r = t, i = D(null), o = D(null), c = D(null), { teleportTarget: d } = Vt(), u = D(!1), v = D(!1);
6349
+ const l = e, r = t, i = B(null), o = B(null), c = B(null), { teleportTarget: d } = Vt(), u = B(!1), v = B(!1);
6354
6350
  let b = null;
6355
6351
  function p() {
6356
6352
  const k = c.value;
@@ -6515,7 +6511,7 @@ function op(e) {
6515
6511
  };
6516
6512
  }
6517
6513
  function ip(e) {
6518
- const a = D();
6514
+ const a = B();
6519
6515
  function t(r) {
6520
6516
  const i = r.target.value;
6521
6517
  if (i === "" || i === void 0 || i === null)
@@ -6541,7 +6537,7 @@ function ip(e) {
6541
6537
  };
6542
6538
  }
6543
6539
  function sp(e) {
6544
- const a = D(/* @__PURE__ */ new Map());
6540
+ const a = B(/* @__PURE__ */ new Map());
6545
6541
  function t(i, o) {
6546
6542
  i ? a.value.set(o, i) : a.value.delete(o);
6547
6543
  }
@@ -6566,7 +6562,7 @@ function sp(e) {
6566
6562
  };
6567
6563
  }
6568
6564
  function rp(e) {
6569
- const a = D(!1), t = D(!1), l = D(null), r = D(null), i = D(null);
6565
+ const a = B(!1), t = B(!1), l = B(null), r = B(null), i = B(null);
6570
6566
  function o() {
6571
6567
  return {
6572
6568
  name: "sameWidth",
@@ -6669,7 +6665,7 @@ const up = {
6669
6665
  },
6670
6666
  emits: ["update:model-value", "close", "search"],
6671
6667
  setup(e, { emit: a }) {
6672
- 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({
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({
6673
6669
  multivalue: () => t.multivalue ?? !1,
6674
6670
  type: () => t.type
6675
6671
  }), { formatValue: S, removeAtIndex: T, clearAll: I, addItem: V } = op({
@@ -6679,7 +6675,7 @@ const up = {
6679
6675
  emit: {
6680
6676
  updateModelValue: (G) => l("update:model-value", G)
6681
6677
  }
6682
- }), { inputValue: B, onInputSubmit: O, onKeyDown: M } = ip({
6678
+ }), { inputValue: D, onInputSubmit: O, onKeyDown: M } = ip({
6683
6679
  type: () => t.type,
6684
6680
  optionLabel: () => t.optionLabel,
6685
6681
  addItem: V
@@ -6770,7 +6766,7 @@ const up = {
6770
6766
  loading: e.loading,
6771
6767
  clearable: e.clearable,
6772
6768
  "option-value": e.optionValue,
6773
- "input-value": n(B),
6769
+ "input-value": n(D),
6774
6770
  "format-value": n(S),
6775
6771
  "is-opened": n(N),
6776
6772
  "label-id": e.label ? n(o) : void 0,
@@ -6780,7 +6776,7 @@ const up = {
6780
6776
  onRemove: n(T),
6781
6777
  onToggleDropdown: n(Y),
6782
6778
  onInputSubmit: n(O),
6783
- onInputChange: ke[0] || (ke[0] = (W) => B.value = W),
6779
+ onInputChange: ke[0] || (ke[0] = (W) => D.value = W),
6784
6780
  onKeyDown: n(M),
6785
6781
  onFocus: ke[1] || (ke[1] = (W) => F.value = !0),
6786
6782
  onBlur: ke[2] || (ke[2] = (W) => F.value = !1),
@@ -6986,7 +6982,7 @@ const up = {
6986
6982
  if (a.hint)
6987
6983
  return r.value;
6988
6984
  }), d = y(() => a.label ? l.value : a.ariaLabelledby);
6989
- return De(fs, {
6985
+ return Be(fs, {
6990
6986
  name: Ie(a, "name"),
6991
6987
  disabled: y(() => !!a.disabled),
6992
6988
  invalid: o,
@@ -7190,7 +7186,7 @@ const up = {
7190
7186
  resolvedName: d,
7191
7187
  ariaRequired: u,
7192
7188
  ariaDescribedBy: v
7193
- } = Ot(t), b = Qe(), p = D(null), m = y({
7189
+ } = Ot(t), b = Qe(), p = B(null), m = y({
7194
7190
  get() {
7195
7191
  return t.modelValue;
7196
7192
  },
@@ -7404,7 +7400,7 @@ const up = {
7404
7400
  }), xp = {
7405
7401
  key: 0,
7406
7402
  class: "vc-switch vc-switch--skeleton"
7407
- }, 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({
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({
7408
7404
  __name: "vc-switch",
7409
7405
  props: {
7410
7406
  modelValue: { type: Boolean },
@@ -7478,7 +7474,7 @@ const up = {
7478
7474
  } : void 0
7479
7475
  ]), 1032, ["html-for", "required", "error"])) : L("", !0),
7480
7476
  w("div", Np, [
7481
- w("label", Dp, [
7477
+ w("label", Bp, [
7482
7478
  w("input", {
7483
7479
  id: n(r),
7484
7480
  type: "checkbox",
@@ -7493,7 +7489,7 @@ const up = {
7493
7489
  "aria-describedby": n(v),
7494
7490
  tabindex: "0",
7495
7491
  onInput: h
7496
- }, null, 40, Bp),
7492
+ }, null, 40, Dp),
7497
7493
  k[0] || (k[0] = w("span", { class: "vc-switch__slider" }, null, -1))
7498
7494
  ])
7499
7495
  ]),
@@ -7531,7 +7527,7 @@ const up = {
7531
7527
  })
7532
7528
  ], 2));
7533
7529
  }
7534
- }), Cl = /* @__PURE__ */ new WeakMap(), Fp = ["role", "aria-label"], Up = {
7530
+ }), Cl = /* @__PURE__ */ new WeakMap(), Fp = ["inert", "role", "aria-label"], Up = {
7535
7531
  key: 0,
7536
7532
  class: "vc-popover__header"
7537
7533
  }, zp = { class: "vc-popover__title" }, Hp = ["aria-label"], Wp = ["tabindex"], Gp = {
@@ -7552,11 +7548,12 @@ const up = {
7552
7548
  closeOnClickOutside: { type: Boolean, default: !0 },
7553
7549
  closeOnEscape: { type: Boolean, default: !0 },
7554
7550
  role: {},
7555
- ariaLabel: {}
7551
+ ariaLabel: {},
7552
+ inert: { type: Boolean }
7556
7553
  },
7557
7554
  emits: ["update:show"],
7558
7555
  setup(e, { expose: a, emit: t }) {
7559
- const l = e, r = t, { teleportTarget: i } = Vt(), o = D(null), c = D(null), d = y(() => l.anchorRef ?? null), u = y(() => {
7556
+ const l = e, r = t, { teleportTarget: i } = Vt(), o = B(null), c = B(null), d = y(() => l.anchorRef ?? null), u = y(() => {
7560
7557
  const C = l.anchorRef;
7561
7558
  return C ? C instanceof Element ? C : C.contextElement ?? null : null;
7562
7559
  }), { floatingStyle: v } = il(d, o, {
@@ -7623,6 +7620,7 @@ const up = {
7623
7620
  ref_key: "floatingRef",
7624
7621
  ref: o,
7625
7622
  class: "vc-popover",
7623
+ inert: e.inert || void 0,
7626
7624
  style: he([n(v), b.value]),
7627
7625
  role: e.role,
7628
7626
  "aria-label": e.ariaLabel,
@@ -7678,7 +7676,7 @@ const up = {
7678
7676
  },
7679
7677
  setup(e) {
7680
7678
  const a = e;
7681
- De(
7679
+ Be(
7682
7680
  la,
7683
7681
  y(() => a.expanded)
7684
7682
  );
@@ -7911,7 +7909,7 @@ const up = {
7911
7909
  }
7912
7910
  }), dg = Jp, Pa = ii, vg = ug;
7913
7911
  function fg(e) {
7914
- const a = D(!1), t = D(!1);
7912
+ const a = B(!1), t = B(!1);
7915
7913
  function l() {
7916
7914
  a.value = !0, t.value = !1;
7917
7915
  }
@@ -7943,7 +7941,7 @@ const mg = {
7943
7941
  },
7944
7942
  emits: ["preview", "edit", "remove"],
7945
7943
  setup(e) {
7946
- 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);
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);
7947
7945
  oe(
7948
7946
  () => [a.src, a.thumbnailSize],
7949
7947
  () => {
@@ -8063,7 +8061,7 @@ const mg = {
8063
8061
  },
8064
8062
  emits: ["update:modelValue"],
8065
8063
  setup(e, { emit: a }) {
8066
- const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = D(!1), o = y(() => t.options.find((u) => u.value === t.modelValue)), c = () => {
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 = () => {
8067
8065
  t.disabled || (i.value = !i.value);
8068
8066
  }, d = (u) => {
8069
8067
  i.value = !1, l("update:modelValue", u.value);
@@ -8141,10 +8139,10 @@ const mg = {
8141
8139
  }, Ng = {
8142
8140
  key: 0,
8143
8141
  class: "sidebar-header__blade-title"
8144
- }, Dg = {
8142
+ }, Bg = {
8145
8143
  key: 0,
8146
8144
  class: "sidebar-header__toolbar"
8147
- }, Bg = ["aria-label"], Pg = { class: "sidebar-header__notification-bell-wrap" }, Vg = {
8145
+ }, Dg = ["aria-label"], Pg = { class: "sidebar-header__notification-bell-wrap" }, Vg = {
8148
8146
  key: 0,
8149
8147
  class: "sidebar-header__accent"
8150
8148
  }, Fg = {
@@ -8168,7 +8166,7 @@ const mg = {
8168
8166
  },
8169
8167
  emits: ["logo:click", "toggle-menu", "toggle-notifications"],
8170
8168
  setup(e) {
8171
- const a = Ce(bo, D(!1));
8169
+ const a = Ce(bo, B(!1));
8172
8170
  return (t, l) => e.isVisible ? (s(), g("div", {
8173
8171
  key: 0,
8174
8172
  class: X(["sidebar-header", {
@@ -8188,7 +8186,7 @@ const mg = {
8188
8186
  ]),
8189
8187
  e.isMobile && e.showMobileTitle ? (s(), g("p", Ng, U(e.mobileTitle), 1)) : L("", !0)
8190
8188
  ]),
8191
- e.expanded && !e.isMobile ? (s(), g("div", Dg, [
8189
+ e.expanded && !e.isMobile ? (s(), g("div", Bg, [
8192
8190
  w("button", {
8193
8191
  class: "sidebar-header__notification-bell",
8194
8192
  "aria-label": t.$t("COMPONENTS.ORGANISMS.VC_APP.NOTIFICATIONS"),
@@ -8214,7 +8212,7 @@ const mg = {
8214
8212
  }),
8215
8213
  n(a) && !e.isNotificationsOpen ? (s(), g("div", Vg)) : L("", !0)
8216
8214
  ])
8217
- ], 8, Bg),
8215
+ ], 8, Dg),
8218
8216
  t.$slots.actions ? (s(), g("div", Fg, [
8219
8217
  H(t.$slots, "actions")
8220
8218
  ])) : L("", !0),
@@ -8265,7 +8263,7 @@ function n$(e) {
8265
8263
  return r === l || r.startsWith(l + "/");
8266
8264
  }) };
8267
8265
  }
8268
- const Wg = 3, Bn = /* @__PURE__ */ Q({
8266
+ const Wg = 3, Dn = /* @__PURE__ */ Q({
8269
8267
  __name: "VcAppMenu",
8270
8268
  props: {
8271
8269
  expanded: { type: Boolean, default: !0 },
@@ -8273,26 +8271,26 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8273
8271
  },
8274
8272
  emits: ["item:click"],
8275
8273
  setup(e, { emit: a }) {
8276
- 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(() => {
8277
- const B = t.searchQuery?.toLowerCase().trim();
8278
- return B ? f.value.map((O) => {
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) => {
8279
8277
  const M = h(O);
8280
8278
  if (!M.length)
8281
- return i(O.title).toLowerCase().includes(B) ? O : null;
8282
- if (i(O.title).toLowerCase().includes(B)) return O;
8283
- const R = M.filter((A) => i(A.title).toLowerCase().includes(B));
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));
8284
8282
  return R.length ? { ...O, children: R } : null;
8285
8283
  }).filter(Boolean) : f.value;
8286
- }), C = (B) => B.groupId ?? String(B.id ?? B.routeId ?? B.title), S = (B) => {
8287
- l("item:click", B);
8288
- }, T = (B) => {
8289
- if (!B) return !1;
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;
8290
8288
  const O = ci(r);
8291
- return O === B || O.startsWith(B + "/");
8289
+ return O === D || O.startsWith(D + "/");
8292
8290
  };
8293
- function I(B) {
8291
+ function I(D) {
8294
8292
  let O;
8295
- typeof B == "object" && !bt(B) && "content" in B ? O = B : O = { content: B };
8293
+ typeof D == "object" && !bt(D) && "content" in D ? O = D : O = { content: D };
8296
8294
  let M;
8297
8295
  typeof O.content == "function" ? M = O.content() : bt(O.content) ? M = n(O.content) : M = O.content;
8298
8296
  let R = M;
@@ -8311,21 +8309,21 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8311
8309
  };
8312
8310
  }
8313
8311
  const V = y(() => {
8314
- const B = /* @__PURE__ */ new Map(), O = (M) => {
8312
+ const D = /* @__PURE__ */ new Map(), O = (M) => {
8315
8313
  const R = M.routeId ?? M.groupId;
8316
8314
  if (!R) return;
8317
8315
  let A = M.badge;
8318
8316
  if (!A && M.routeId && (A = c.value.get(M.routeId)), !A && M.groupId && (A = c.value.get(M.groupId)), !A) return;
8319
8317
  const _ = I(A);
8320
- _ && B.set(R, _);
8318
+ _ && D.set(R, _);
8321
8319
  };
8322
8320
  for (const M of o.value)
8323
8321
  if (O(M), M.children)
8324
8322
  for (const R of M.children)
8325
8323
  O(R);
8326
- return B;
8324
+ return D;
8327
8325
  });
8328
- return (B, O) => k.value.length || p.value ? (s(), P(n(dg), {
8326
+ return (D, O) => k.value.length || p.value ? (s(), P(n(dg), {
8329
8327
  key: 0,
8330
8328
  expanded: e.expanded,
8331
8329
  class: X(["vc-app-menu", { "vc-app-menu--collapsed": !e.expanded }])
@@ -8339,7 +8337,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8339
8337
  "data-test-id": M.routeId,
8340
8338
  "group-id": C(M),
8341
8339
  icon: M.groupIcon || M.icon,
8342
- title: B.$t(M.title),
8340
+ title: D.$t(M.title),
8343
8341
  badge: V.value.get(M.routeId ?? M.groupId ?? "")
8344
8342
  }, {
8345
8343
  default: x(() => [
@@ -8347,7 +8345,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8347
8345
  key: R.routeId || R.url || R.id || R.title,
8348
8346
  "data-test-id": R.routeId,
8349
8347
  icon: R.icon,
8350
- title: B.$t(R.title),
8348
+ title: D.$t(R.title),
8351
8349
  badge: V.value.get(R.routeId ?? R.groupId ?? ""),
8352
8350
  active: T(R.url),
8353
8351
  nested: "",
@@ -8359,7 +8357,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8359
8357
  key: 1,
8360
8358
  "data-test-id": M.routeId,
8361
8359
  icon: M.groupIcon || M.icon,
8362
- title: B.$t(M.title),
8360
+ title: D.$t(M.title),
8363
8361
  badge: V.value.get(M.routeId ?? M.groupId ?? ""),
8364
8362
  active: T(M.url),
8365
8363
  onClick: (R) => S(M)
@@ -8485,11 +8483,11 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8485
8483
  disabled: { type: Boolean }
8486
8484
  },
8487
8485
  setup(e) {
8488
- const a = D(!1), t = D(null), { isPinned: l, isExpanded: r } = ea(), { isMobile: i, isDesktop: o } = Ve();
8486
+ const a = B(!1), t = B(null), { isPinned: l, isExpanded: r } = ea(), { isMobile: i, isDesktop: o } = Ve();
8489
8487
  function c() {
8490
8488
  a.value = !1;
8491
8489
  }
8492
- De(Gn, c);
8490
+ Be(Gn, c);
8493
8491
  function d() {
8494
8492
  a.value = !a.value;
8495
8493
  }
@@ -8560,7 +8558,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8560
8558
  },
8561
8559
  emits: ["item:click"],
8562
8560
  setup(e, { emit: a }) {
8563
- const t = e, l = a, r = Ce(ol, !1), i = D(null), o = D("");
8561
+ const t = e, l = a, r = Ce(ol, !1), i = B(null), o = B("");
8564
8562
  tt(() => {
8565
8563
  $e(() => i.value?.updateScrollState());
8566
8564
  }), oe(
@@ -8597,7 +8595,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
8597
8595
  onItemClick: c,
8598
8596
  searchQuery: o.value
8599
8597
  }, () => [
8600
- $(Bn, {
8598
+ $(Dn, {
8601
8599
  expanded: e.expanded,
8602
8600
  "search-query": o.value,
8603
8601
  "onItem:click": c
@@ -8680,7 +8678,7 @@ function Jl() {
8680
8678
  };
8681
8679
  }
8682
8680
  function rb(e) {
8683
- 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);
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);
8684
8682
  function d(u) {
8685
8683
  return u.title || cb(u.id);
8686
8684
  }
@@ -8732,7 +8730,7 @@ const Va = /* @__PURE__ */ Q({
8732
8730
  }, Ib = {
8733
8731
  key: 0,
8734
8732
  class: "app-hub-content__flyout app-hub-content__flyout--mobile"
8735
- }, 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({
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({
8736
8734
  __name: "AppHubContent",
8737
8735
  props: {
8738
8736
  appsList: {},
@@ -8741,12 +8739,12 @@ const Va = /* @__PURE__ */ Q({
8741
8739
  },
8742
8740
  emits: ["switch-app"],
8743
8741
  setup(e, { emit: a }) {
8744
- 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({
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({
8745
8743
  appsList: Ie(t, "appsList"),
8746
8744
  widgets: d,
8747
8745
  showApplications: Ie(t, "showApplications"),
8748
8746
  mobile: Ie(t, "mobile")
8749
- }), 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);
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);
8750
8748
  oe(
8751
8749
  () => d.value.map((q) => q.id),
8752
8750
  () => {
@@ -8816,7 +8814,7 @@ const Va = /* @__PURE__ */ Q({
8816
8814
  }
8817
8815
  function z(q) {
8818
8816
  const ne = K(q.container);
8819
- !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)));
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)));
8820
8818
  }
8821
8819
  function K(q) {
8822
8820
  return q ? q.viewportRef?.value ?? null : null;
@@ -8931,7 +8929,7 @@ const Va = /* @__PURE__ */ Q({
8931
8929
  }, {
8932
8930
  default: x(() => [
8933
8931
  n(f).length ? (s(), g("div", $b, [
8934
- (s(!0), g(J, null, ve(B.value, (ee) => (s(), g("button", {
8932
+ (s(!0), g(J, null, ve(D.value, (ee) => (s(), g("button", {
8935
8933
  key: ee.id,
8936
8934
  type: "button",
8937
8935
  "data-widget-id": ee.id,
@@ -8969,7 +8967,7 @@ const Va = /* @__PURE__ */ Q({
8969
8967
  onClick: n(v)
8970
8968
  }, null, 8, ["onClick"])
8971
8969
  ]),
8972
- w("div", Db, [
8970
+ w("div", Bb, [
8973
8971
  $(Va, { mobile: "" })
8974
8972
  ])
8975
8973
  ])) : L("", !0)
@@ -8984,7 +8982,8 @@ const Va = /* @__PURE__ */ Q({
8984
8982
  show: { type: Boolean },
8985
8983
  anchorRef: { default: null },
8986
8984
  appsList: {},
8987
- showApplications: { type: Boolean, default: !0 }
8985
+ showApplications: { type: Boolean, default: !0 },
8986
+ inert: { type: Boolean }
8988
8987
  },
8989
8988
  emits: ["update:show", "switch-app"],
8990
8989
  setup(e, { emit: a }) {
@@ -9011,7 +9010,8 @@ const Va = /* @__PURE__ */ Q({
9011
9010
  width: "560px",
9012
9011
  "max-width": "calc(100vw - 24px)",
9013
9012
  "max-height": 9999,
9014
- "content-scrollable": !1
9013
+ "content-scrollable": !1,
9014
+ inert: e.inert
9015
9015
  }, {
9016
9016
  default: x(() => [
9017
9017
  $(Pn, {
@@ -9029,7 +9029,7 @@ const Va = /* @__PURE__ */ Q({
9029
9029
  ]), 1032, ["apps-list", "show-applications"])
9030
9030
  ]),
9031
9031
  _: 3
9032
- }, 8, ["show", "anchor-ref"]));
9032
+ }, 8, ["show", "anchor-ref", "inert"]));
9033
9033
  }
9034
9034
  }), Fb = { class: "vc-notification-template__content" }, Ub = { class: "vc-notification-template__time" }, zb = {
9035
9035
  key: 0,
@@ -9098,7 +9098,7 @@ const Va = /* @__PURE__ */ Q({
9098
9098
  if (c)
9099
9099
  return r.registry.get(c)?.template;
9100
9100
  });
9101
- De(
9101
+ Be(
9102
9102
  Ec,
9103
9103
  y(() => t.notification)
9104
9104
  );
@@ -9181,7 +9181,7 @@ const Va = /* @__PURE__ */ Q({
9181
9181
  },
9182
9182
  emits: ["logo:click", "item:click", "switch-app"],
9183
9183
  setup(e, { emit: a }) {
9184
- const t = a, l = ea(), r = Ce(ol, !1), i = zt(), o = D(null), c = D(!1), d = D(null), u = y(() => !r);
9184
+ const t = a, l = ea(), r = Ce(ol, !1), i = zt(), o = B(null), c = B(!1), d = B(null), u = y(() => !r);
9185
9185
  oe(
9186
9186
  () => i.fullPath,
9187
9187
  () => {
@@ -9277,6 +9277,7 @@ const Va = /* @__PURE__ */ Q({
9277
9277
  ], 2)
9278
9278
  ], 10, Qb),
9279
9279
  $(Vb, {
9280
+ inert: e.inertNavigation,
9280
9281
  show: n(l).isMenuOpen.value,
9281
9282
  "anchor-ref": o.value,
9282
9283
  "apps-list": e.appsList,
@@ -9294,10 +9295,11 @@ const Va = /* @__PURE__ */ Q({
9294
9295
  ]),
9295
9296
  key: "0"
9296
9297
  } : void 0
9297
- ]), 1032, ["show", "anchor-ref", "apps-list", "show-applications"]),
9298
+ ]), 1032, ["inert", "show", "anchor-ref", "apps-list", "show-applications"]),
9298
9299
  $(n(ct), {
9299
9300
  show: c.value,
9300
9301
  "onUpdate:show": f[2] || (f[2] = (k) => c.value = k),
9302
+ inert: e.inertNavigation,
9301
9303
  "anchor-ref": d.value,
9302
9304
  placement: "right-start",
9303
9305
  width: "320px",
@@ -9307,12 +9309,12 @@ const Va = /* @__PURE__ */ Q({
9307
9309
  $(n(fi))
9308
9310
  ]),
9309
9311
  _: 1
9310
- }, 8, ["show", "anchor-ref"])
9312
+ }, 8, ["show", "inert", "anchor-ref"])
9311
9313
  ], 64));
9312
9314
  }
9313
9315
  });
9314
9316
  function Jb() {
9315
- const e = D([]), a = y(() => e.value), t = (o) => {
9317
+ const e = B([]), a = y(() => e.value), t = (o) => {
9316
9318
  const c = e.value.findIndex((d) => d.id === o.id);
9317
9319
  c >= 0 ? e.value[c] = o : e.value.push(o);
9318
9320
  }, l = (o) => {
@@ -9334,7 +9336,7 @@ function th() {
9334
9336
  if (e)
9335
9337
  return e;
9336
9338
  const a = Jb();
9337
- return De(In, a), ro() && zn(() => {
9339
+ return Be(In, a), ro() && zn(() => {
9338
9340
  }), a;
9339
9341
  }
9340
9342
  function mi() {
@@ -9551,11 +9553,11 @@ const nh = {
9551
9553
  },
9552
9554
  emits: ["item:click", "switch-app", "logo:click"],
9553
9555
  setup(e, { emit: a }) {
9554
- const t = e, l = a, r = D(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Ql(), v = y(
9556
+ const t = e, l = a, r = B(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Ql(), v = y(
9555
9557
  () => u.value.some((Y) => Y.badge === void 0 ? !1 : typeof Y.badge == "function" ? Y.badge() : !!Y.badge)
9556
- ), 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");
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");
9557
9559
  let S = 0, T = 0, I = 0, V = 0;
9558
- const B = y(() => {
9560
+ const D = y(() => {
9559
9561
  const Y = m.value * -50, q = k.value?.clientWidth ?? 0;
9560
9562
  if (h.value && q > 0) {
9561
9563
  const ne = f.value / q * 50;
@@ -9745,7 +9747,7 @@ const nh = {
9745
9747
  }, [
9746
9748
  w("div", {
9747
9749
  class: "mobile-layout__slider",
9748
- style: he(B.value)
9750
+ style: he(D.value)
9749
9751
  }, [
9750
9752
  w("div", wh, [
9751
9753
  e.showSearch ? (s(), g("div", Ch, [
@@ -9765,7 +9767,7 @@ const nh = {
9765
9767
  onItemClick: Z,
9766
9768
  searchQuery: r.value
9767
9769
  }, () => [
9768
- $(Bn, {
9770
+ $(Dn, {
9769
9771
  expanded: !0,
9770
9772
  "search-query": r.value,
9771
9773
  "onItem:click": Z
@@ -9832,7 +9834,7 @@ const nh = {
9832
9834
  onItemClick: Z,
9833
9835
  searchQuery: r.value
9834
9836
  }, () => [
9835
- $(Bn, {
9837
+ $(Dn, {
9836
9838
  expanded: !0,
9837
9839
  "search-query": r.value,
9838
9840
  "onItem:click": Z
@@ -9871,7 +9873,7 @@ function Lh() {
9871
9873
  const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__title" }, Nh = {
9872
9874
  key: 0,
9873
9875
  class: "vc-menu-item__value"
9874
- }, Dh = { class: "tw-p-1" }, en = /* @__PURE__ */ Q({
9876
+ }, Bh = { class: "tw-p-1" }, en = /* @__PURE__ */ Q({
9875
9877
  __name: "settings-menu-item",
9876
9878
  props: {
9877
9879
  title: {},
@@ -9887,13 +9889,13 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
9887
9889
  },
9888
9890
  emits: ["trigger:click", "trigger:hover"],
9889
9891
  setup(e, { expose: a, emit: t }) {
9890
- 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();
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();
9891
9893
  oe(v, (k) => {
9892
9894
  m.value !== k && (m.value = k);
9893
9895
  }), oe(d, () => {
9894
9896
  v.value = !1;
9895
9897
  });
9896
- const h = D(null), f = () => {
9898
+ const h = B(null), f = () => {
9897
9899
  l.disabled || l.triggerAction === "none" || (u.value && (v.value = !v.value), r("trigger:click"));
9898
9900
  };
9899
9901
  return a({ triggerRef: h }), (k, C) => (s(), g("div", {
@@ -9969,7 +9971,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
9969
9971
  "max-width": "260px"
9970
9972
  }, {
9971
9973
  default: x(() => [
9972
- w("div", Dh, [
9974
+ w("div", Bh, [
9973
9975
  H(k.$slots, "submenu")
9974
9976
  ])
9975
9977
  ]),
@@ -9978,7 +9980,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
9978
9980
  H(k.$slots, "content")
9979
9981
  ], 2));
9980
9982
  }
9981
- }), Bh = /* @__PURE__ */ Q({
9983
+ }), Dh = /* @__PURE__ */ Q({
9982
9984
  __name: "language-selector",
9983
9985
  setup(e) {
9984
9986
  const { availableLocales: a, getLocaleMessage: t } = ze({ useScope: "global" }), { setLocale: l, currentLocale: r } = ti(), i = a.map((d) => ({
@@ -10006,7 +10008,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10006
10008
  _: 1
10007
10009
  }, 8, ["title", "value"]));
10008
10010
  }
10009
- }), Ph = Bh, Vh = /* @__PURE__ */ Q({
10011
+ }), Ph = Dh, Vh = /* @__PURE__ */ Q({
10010
10012
  __name: "theme-selector",
10011
10013
  setup(e) {
10012
10014
  const { currentThemeKey: a, currentLocalizedName: t, themes: l, setTheme: r } = gs(), i = (o) => {
@@ -10041,7 +10043,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10041
10043
  setup(e, { emit: a }) {
10042
10044
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } = Vl();
10043
10045
  Mo({ validateOnMount: !1 });
10044
- const u = Br(), v = Pr(), b = Ut(), p = vt({
10046
+ const u = Dr(), v = Pr(), b = Ut(), p = vt({
10045
10047
  isValid: !1,
10046
10048
  errors: [],
10047
10049
  currentPassword: "",
@@ -10100,7 +10102,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10100
10102
  ref: "passwordField",
10101
10103
  modelValue: p.currentPassword,
10102
10104
  "onUpdate:modelValue": [
10103
- S[0] || (S[0] = (B) => p.currentPassword = B),
10105
+ S[0] || (S[0] = (D) => p.currentPassword = D),
10104
10106
  k
10105
10107
  ],
10106
10108
  class: "tw-mb-4 tw-mt-1 tw-shrink-0",
@@ -10126,7 +10128,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10126
10128
  ref: "newPasswordField",
10127
10129
  modelValue: p.password,
10128
10130
  "onUpdate:modelValue": [
10129
- S[1] || (S[1] = (B) => p.password = B),
10131
+ S[1] || (S[1] = (D) => p.password = D),
10130
10132
  k
10131
10133
  ],
10132
10134
  class: "tw-mb-4 tw-mt-1 tw-shrink-0",
@@ -10152,7 +10154,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10152
10154
  ref: "confirmPasswordField",
10153
10155
  modelValue: p.confirmPassword,
10154
10156
  "onUpdate:modelValue": [
10155
- S[2] || (S[2] = (B) => p.confirmPassword = B),
10157
+ S[2] || (S[2] = (D) => p.confirmPassword = D),
10156
10158
  k
10157
10159
  ],
10158
10160
  class: "tw-mb-4 tw-shrink-0",
@@ -10240,7 +10242,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
10240
10242
  });
10241
10243
  function Yh(e) {
10242
10244
  const a = Ce(ji), t = th();
10243
- 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({
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({
10244
10246
  config: e.aiAgentConfig,
10245
10247
  addGlobalToolbarButton: e.aiAgentAddGlobalToolbarButton ?? !0,
10246
10248
  isEmbedded: e.isEmbedded
@@ -10264,7 +10266,7 @@ function jh(e) {
10264
10266
  component: Ph,
10265
10267
  group: "preferences",
10266
10268
  order: 20
10267
- }), 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);
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);
10268
10270
  }
10269
10271
  const Xh = lt("useShellNavigation");
10270
10272
  function Qh() {
@@ -10286,7 +10288,7 @@ function Qh() {
10286
10288
  }
10287
10289
  const Zh = lt("use-app-hub");
10288
10290
  function Jh() {
10289
- const { hasAccess: e } = sl(), a = D([]);
10291
+ const { hasAccess: e } = sl(), a = B([]);
10290
10292
  async function t() {
10291
10293
  return new Qi();
10292
10294
  }
@@ -10310,7 +10312,7 @@ function Jh() {
10310
10312
  };
10311
10313
  }
10312
10314
  function ey(e) {
10313
- const a = D(!1), t = D(!1), { isAuthenticated: l } = Vl(), { loadHistory: r } = Gl(), { appsList: i, switchApp: o, getApps: c } = Jh();
10315
+ const a = B(!1), t = B(!1), { isAuthenticated: l } = Vl(), { loadHistory: r } = Gl(), { appsList: i, switchApp: o, getApps: c } = Jh();
10314
10316
  return oe(
10315
10317
  [() => e.isReady, l],
10316
10318
  async ([d, u]) => {
@@ -10342,7 +10344,7 @@ const ty = { class: "vc-app__main-content" }, a$ = /* @__PURE__ */ Q({
10342
10344
  () => i?.blades.value.some((_) => i.isMaximized(_.id)) ?? !1
10343
10345
  );
10344
10346
  lt("vc-app").debug("Init vc-app");
10345
- const d = zt(), u = d.query.EmbeddedMode === "true", v = D(null);
10347
+ const d = zt(), u = d.query.EmbeddedMode === "true", v = B(null);
10346
10348
  oe(
10347
10349
  () => d.fullPath,
10348
10350
  () => Nn(() => v.value)
@@ -10353,17 +10355,17 @@ const ty = { class: "vc-app__main-content" }, a$ = /* @__PURE__ */ Q({
10353
10355
  },
10354
10356
  { flush: "post" }
10355
10357
  );
10356
- const b = D();
10357
- De(yo, b);
10358
+ const b = B();
10359
+ Be(yo, b);
10358
10360
  const p = Xv();
10359
10361
  ys();
10360
- 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));
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));
10361
10363
  Yh({
10362
10364
  isEmbedded: u,
10363
10365
  internalRoutes: T,
10364
10366
  dynamicModules: I,
10365
10367
  aiAgentConfig: V,
10366
- aiAgentAddGlobalToolbarButton: B
10368
+ aiAgentAddGlobalToolbarButton: D
10367
10369
  }), oe(O, (_) => {
10368
10370
  _ && St.error(
10369
10371
  "Unable to load application modules. Please check your connection and try refreshing the page.",
@@ -10671,7 +10673,7 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
10671
10673
  logoAlt: { default: "Logo" }
10672
10674
  },
10673
10675
  setup(e) {
10674
- const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = D(!1), i = D(!1);
10676
+ const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = B(!1), i = B(!1);
10675
10677
  oe(
10676
10678
  () => a.background,
10677
10679
  (c) => {
@@ -10766,7 +10768,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10766
10768
  },
10767
10769
  emits: ["update:model-value"],
10768
10770
  setup(e, { emit: a }) {
10769
- 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();
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();
10770
10772
  oe(
10771
10773
  () => t.property,
10772
10774
  (O) => {
@@ -10881,7 +10883,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10881
10883
  async function V(O) {
10882
10884
  T(O);
10883
10885
  }
10884
- async function B() {
10886
+ async function D() {
10885
10887
  d.value.length && (o.value = d.value);
10886
10888
  }
10887
10889
  return (O, M) => (s(), P(n(Tl), {
@@ -10909,7 +10911,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10909
10911
  "current-language": e.currentLanguage,
10910
10912
  loading: c.value,
10911
10913
  onSearch: V,
10912
- onClose: B
10914
+ onClose: D
10913
10915
  }), 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, {
10914
10916
  modelValue: C.value,
10915
10917
  "onUpdate:modelValue": M[1] || (M[1] = (_) => C.value = _),
@@ -10939,7 +10941,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
10939
10941
  multivalue: f.value.multivalue,
10940
10942
  loading: c.value,
10941
10943
  onSearch: V,
10942
- onClose: B
10944
+ onClose: D
10943
10945
  }), 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, {
10944
10946
  modelValue: C.value,
10945
10947
  "onUpdate:modelValue": M[3] || (M[3] = (_) => C.value = _),
@@ -11096,7 +11098,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11096
11098
  multivalue: f.value.multivalue,
11097
11099
  loading: c.value,
11098
11100
  onSearch: V,
11099
- onClose: B
11101
+ onClose: D
11100
11102
  }), {
11101
11103
  "selected-item": x((_) => [
11102
11104
  w("div", wy, [
@@ -11142,7 +11144,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11142
11144
  "current-language": e.currentLanguage,
11143
11145
  loading: c.value,
11144
11146
  onSearch: V,
11145
- onClose: B
11147
+ onClose: D
11146
11148
  }), {
11147
11149
  "selected-item": x((_) => [
11148
11150
  w("div", _y, [
@@ -11237,7 +11239,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11237
11239
  },
11238
11240
  emits: ["swiper-init", "swiper-resize", "slides-updated", "sortable-container"],
11239
11241
  setup(e, { emit: a }) {
11240
- const { t } = ze({ useScope: "global" }), l = e, r = a, i = [Io, ec, xo, tc], o = D(), c = D(), d = D();
11242
+ const { t } = ze({ useScope: "global" }), l = e, r = a, i = [Io, ec, xo, tc], o = B(), c = B(), d = B();
11241
11243
  function u(m) {
11242
11244
  d.value = m, o.value && c.value && (m.params.navigation = {
11243
11245
  ...m.params.navigation,
@@ -11334,7 +11336,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11334
11336
  }), 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 = {
11335
11337
  key: 0,
11336
11338
  class: "vc-gallery-preview__filmstrip"
11337
- }, Dy = ["onClick"], By = ["src", "alt", "onError"], Py = { class: "vc-gallery-preview__counter" }, Vy = /* @__PURE__ */ Q({
11339
+ }, By = ["onClick"], Dy = ["src", "alt", "onError"], Py = { class: "vc-gallery-preview__counter" }, Vy = /* @__PURE__ */ Q({
11338
11340
  __name: "vc-gallery-preview",
11339
11341
  props: {
11340
11342
  images: { default: () => [] },
@@ -11342,7 +11344,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11342
11344
  },
11343
11345
  emits: ["close"],
11344
11346
  setup(e, { emit: a }) {
11345
- 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]);
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]);
11346
11348
  oe(
11347
11349
  () => l.index,
11348
11350
  (O) => {
@@ -11384,11 +11386,11 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11384
11386
  function V(O) {
11385
11387
  O.key === "Escape" && (O.preventDefault(), t("close"));
11386
11388
  }
11387
- const B = oc(document.body);
11389
+ const D = oc(document.body);
11388
11390
  return tt(() => {
11389
- window.addEventListener("keydown", V), B.value = !0;
11391
+ window.addEventListener("keydown", V), D.value = !0;
11390
11392
  }), He(() => {
11391
- window.removeEventListener("keydown", V), B.value = !1;
11393
+ window.removeEventListener("keydown", V), D.value = !1;
11392
11394
  }), (O, M) => p.value ? (s(), P(n(cl), {
11393
11395
  key: 0,
11394
11396
  "is-mobile-fullscreen": "",
@@ -11507,8 +11509,8 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11507
11509
  loading: "lazy",
11508
11510
  class: "vc-gallery-preview__thumb-img",
11509
11511
  onError: (_) => T(_, R.url)
11510
- }, null, 40, By)
11511
- ], 10, Dy)
11512
+ }, null, 40, Dy)
11513
+ ], 10, By)
11512
11514
  ]),
11513
11515
  _: 2
11514
11516
  }, 1024))), 128))
@@ -11524,7 +11526,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
11524
11526
  }
11525
11527
  });
11526
11528
  function pi(e) {
11527
- const a = D(0), { open: t } = jo(
11529
+ const a = B(0), { open: t } = jo(
11528
11530
  y(() => ({
11529
11531
  component: Vy,
11530
11532
  props: {
@@ -11598,7 +11600,7 @@ const Fy = { class: "vc-image-upload" }, Uy = {
11598
11600
  }
11599
11601
  });
11600
11602
  function Hy(e, a) {
11601
- const t = D(), l = D(!1), r = D(), i = y(() => xe(a.disabled) || xe(e).length <= 1);
11603
+ const t = B(), l = B(!1), r = B(), i = y(() => xe(a.disabled) || xe(e).length <= 1);
11602
11604
  let o = null, c = null, d = 0;
11603
11605
  function u(h) {
11604
11606
  d = h.clientX;
@@ -11617,7 +11619,7 @@ function Hy(e, a) {
11617
11619
  document.removeEventListener("pointermove", u, !0), c && (clearInterval(c), c = null);
11618
11620
  }
11619
11621
  function p(h) {
11620
- m(), o = Bo.create(h, {
11622
+ m(), o = Do.create(h, {
11621
11623
  handle: ".vc-gallery-item__drag-handle",
11622
11624
  animation: 250,
11623
11625
  ghostClass: "vc-gallery__item--ghost",
@@ -11689,7 +11691,7 @@ function qy(e, a) {
11689
11691
  return { onUpload: t };
11690
11692
  }
11691
11693
  function Ky(e) {
11692
- const a = D(!1), t = D(!0), l = D();
11694
+ const a = B(!1), t = B(!0), l = B();
11693
11695
  function r() {
11694
11696
  a.value = !a.value;
11695
11697
  }
@@ -11768,7 +11770,7 @@ const Yy = {
11768
11770
  setup(e, { emit: a }) {
11769
11771
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Ve(), o = Qe(), c = y(() => t.variant === "file-upload"), d = y(
11770
11772
  () => t.customText ? { text: t.customText.dragHere, link: t.customText.browse } : void 0
11771
- ), u = D([]);
11773
+ ), u = B([]);
11772
11774
  oe(
11773
11775
  () => t.images,
11774
11776
  (A) => {
@@ -11806,7 +11808,7 @@ const Yy = {
11806
11808
  onUpload: (A, _) => l("upload", A, _)
11807
11809
  }), h = pi(u), f = { sm: "128x128", md: "216x216", lg: "348x348" }, k = y(() => t.thumbnailSize ?? f[t.size]), C = Ky({
11808
11810
  imageCount: y(() => u.value.length)
11809
- }), S = D();
11811
+ }), S = B();
11810
11812
  function T() {
11811
11813
  S.value?.click();
11812
11814
  }
@@ -11814,16 +11816,16 @@ const Yy = {
11814
11816
  const _ = A.target;
11815
11817
  _.files && _.files.length && (m.onUpload(_.files), _.value = "");
11816
11818
  }
11817
- const V = D(!1);
11818
- let B = 0;
11819
+ const V = B(!1);
11820
+ let D = 0;
11819
11821
  function O(A) {
11820
- A.dataTransfer?.types.includes("Files") && (B++, V.value = !0);
11822
+ A.dataTransfer?.types.includes("Files") && (D++, V.value = !0);
11821
11823
  }
11822
11824
  function M(A) {
11823
- A.dataTransfer?.types.includes("Files") && (B--, B <= 0 && (V.value = !1, B = 0));
11825
+ A.dataTransfer?.types.includes("Files") && (D--, D <= 0 && (V.value = !1, D = 0));
11824
11826
  }
11825
11827
  function R(A) {
11826
- V.value = !1, B = 0;
11828
+ V.value = !1, D = 0;
11827
11829
  const _ = A.dataTransfer?.files;
11828
11830
  _ && _.length && m.onUpload(_);
11829
11831
  }
@@ -12056,7 +12058,7 @@ const Yy = {
12056
12058
  },
12057
12059
  variant: y(() => a.variant)
12058
12060
  };
12059
- return De(Fl, i), (o, c) => (s(), g("div", {
12061
+ return Be(Fl, i), (o, c) => (s(), g("div", {
12060
12062
  role: "table",
12061
12063
  class: X(["vc-table-composition", e.variant && `vc-table-composition--${e.variant}`])
12062
12064
  }, [
@@ -12133,7 +12135,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
12133
12135
  const t = e, l = a, r = Ce(Fl, null), i = Ce(
12134
12136
  $o,
12135
12137
  y(() => 0)
12136
- ), o = Ce(Ro, D(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12138
+ ), o = Ce(Ro, B(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12137
12139
  l("click", m);
12138
12140
  }, v = (m) => {
12139
12141
  c.value && l("space-press", m);
@@ -12254,7 +12256,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
12254
12256
  flex: t.width ? `0 0 ${t.width}` : "1 1 0px"
12255
12257
  })), o = (h) => {
12256
12258
  t.sortable && l("sort", h);
12257
- }, c = D(!1), d = (h) => {
12259
+ }, c = B(!1), d = (h) => {
12258
12260
  c.value = !0, l("resizeStart", t.columnId, h);
12259
12261
  const f = () => {
12260
12262
  c.value = !1, document.removeEventListener("mouseup", f);
@@ -12326,7 +12328,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
12326
12328
  ])], 34)) : L("", !0)
12327
12329
  ], 46, hw));
12328
12330
  }
12329
- }), _w = ["data-column-id"], kw = 2, Bl = /* @__PURE__ */ Q({
12331
+ }), _w = ["data-column-id"], kw = 2, Dl = /* @__PURE__ */ Q({
12330
12332
  __name: "TableCell",
12331
12333
  props: {
12332
12334
  width: {},
@@ -12487,7 +12489,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12487
12489
  _: 1
12488
12490
  }, 8, ["show", "anchor-ref", "title"]));
12489
12491
  }
12490
- }), Dw = ["title", "aria-expanded", "onKeydown"], Bw = ["tabindex", "aria-disabled", "onClick", "onKeydown"], Pw = { class: "vc-table-row-actions__dropdown-text" }, Vw = /* @__PURE__ */ Q({
12492
+ }), Bw = ["title", "aria-expanded", "onKeydown"], Dw = ["tabindex", "aria-disabled", "onClick", "onKeydown"], Pw = { class: "vc-table-row-actions__dropdown-text" }, Vw = /* @__PURE__ */ Q({
12491
12493
  __name: "TableRowActions",
12492
12494
  props: {
12493
12495
  actions: {},
@@ -12499,7 +12501,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12499
12501
  },
12500
12502
  emits: ["action"],
12501
12503
  setup(e, { emit: a }) {
12502
- 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, {
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, {
12503
12505
  placement: "bottom-end",
12504
12506
  middleware: () => [Yn(4), Kn(), Ul({ padding: 8 })]
12505
12507
  });
@@ -12518,7 +12520,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12518
12520
  $e(() => {
12519
12521
  d.value?.querySelectorAll('[role="menuitem"]:not([aria-disabled])')?.[0]?.focus();
12520
12522
  });
12521
- }, B = async () => {
12523
+ }, D = async () => {
12522
12524
  i.value || (i.value = !0, await $e(), o.value = !0), V();
12523
12525
  }, O = (E) => {
12524
12526
  const N = Array.from(
@@ -12596,7 +12598,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12596
12598
  "aria-haspopup": "menu",
12597
12599
  "aria-expanded": i.value,
12598
12600
  onClick: ue(S, ["stop", "prevent"]),
12599
- onKeydown: Ae(ue(B, ["prevent"]), ["down"]),
12601
+ onKeydown: Ae(ue(D, ["prevent"]), ["down"]),
12600
12602
  onMousedown: N[0] || (N[0] = ue(() => {
12601
12603
  }, ["stop"]))
12602
12604
  }, [
@@ -12604,7 +12606,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12604
12606
  icon: "lucide-ellipsis-vertical",
12605
12607
  size: "s"
12606
12608
  })
12607
- ], 40, Dw),
12609
+ ], 40, Bw),
12608
12610
  (s(), P(gt, { to: n(v) }, [
12609
12611
  o.value ? (s(), g("div", {
12610
12612
  key: 0,
@@ -12648,7 +12650,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12648
12650
  class: "vc-table-row-actions__dropdown-icon"
12649
12651
  }, null, 8, ["icon"])) : L("", !0),
12650
12652
  w("span", Pw, U(F.title || F.name), 1)
12651
- ], 42, Bw))), 128))
12653
+ ], 42, Dw))), 128))
12652
12654
  ], 36)) : L("", !0)
12653
12655
  ]),
12654
12656
  _: 1
@@ -12785,7 +12787,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12785
12787
  setup(e, { expose: a, emit: t }) {
12786
12788
  const l = t;
12787
12789
  ht();
12788
- const r = D(null), i = D(!1), o = (u) => {
12790
+ const r = B(null), i = B(!1), o = (u) => {
12789
12791
  l("update:modelValue", u ?? "");
12790
12792
  }, c = () => {
12791
12793
  i.value = !i.value, l("filterToggle", i.value);
@@ -12940,7 +12942,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12940
12942
  },
12941
12943
  emits: ["apply", "clear"],
12942
12944
  setup(e, { emit: a }) {
12943
- 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 = () => {
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 = () => {
12944
12946
  if (t.filterType === "dateRange" && t.modelValue && typeof t.modelValue == "object" && !Array.isArray(t.modelValue)) {
12945
12947
  const N = t.modelValue;
12946
12948
  v.value = N.start ?? "", b.value = N.end ?? "", u.value = null;
@@ -12955,7 +12957,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12955
12957
  }, k = y(() => {
12956
12958
  const N = t.modelValue;
12957
12959
  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;
12958
- }), C = D({}), S = () => {
12960
+ }), C = B({}), S = () => {
12959
12961
  if (!r.value || !i.value) return;
12960
12962
  const N = r.value.getBoundingClientRect(), F = i.value.getBoundingClientRect();
12961
12963
  let z = N.bottom + 4, K = N.left;
@@ -12987,7 +12989,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12987
12989
  if (F.length === 0) return;
12988
12990
  const z = F[0], K = F[F.length - 1];
12989
12991
  N.shiftKey && document.activeElement === z ? (N.preventDefault(), K.focus()) : !N.shiftKey && document.activeElement === K && (N.preventDefault(), z.focus());
12990
- }, B = () => {
12992
+ }, D = () => {
12991
12993
  const N = {};
12992
12994
  if (t.filterType === "dateRange" && t.rangeFields)
12993
12995
  v.value && (N[t.rangeFields[0]] = v.value), b.value && (N[t.rangeFields[1]] = b.value);
@@ -12997,7 +12999,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
12997
12999
  }
12998
13000
  return N;
12999
13001
  }, O = () => {
13000
- l("apply", B()), I();
13002
+ l("apply", D()), I();
13001
13003
  }, M = () => {
13002
13004
  u.value = null, v.value = "", b.value = "", l("clear"), I();
13003
13005
  }, R = (N) => {
@@ -13215,7 +13217,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13215
13217
  for (const M of t.filters)
13216
13218
  O[M.id] = i(M.filter);
13217
13219
  return O;
13218
- }), v = (O) => u.value[O] || "none", b = D({}), p = () => {
13220
+ }), v = (O) => u.value[O] || "none", b = B({}), p = () => {
13219
13221
  const O = {};
13220
13222
  for (const M of t.filters)
13221
13223
  O[M.id] = t.modelValue[M.id] ?? null;
@@ -13291,7 +13293,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13291
13293
  }, V = () => {
13292
13294
  const O = T();
13293
13295
  l("update:modelValue", { ...b.value }), l("apply", O), I();
13294
- }, B = () => {
13296
+ }, D = () => {
13295
13297
  const O = {};
13296
13298
  for (const M of t.filters)
13297
13299
  O[M.id] = null;
@@ -13314,7 +13316,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13314
13316
  $(n(Se), {
13315
13317
  variant: "outline",
13316
13318
  size: "sm",
13317
- onClick: B
13319
+ onClick: D
13318
13320
  }, {
13319
13321
  default: x(() => [
13320
13322
  fe(U(O.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
@@ -13399,7 +13401,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13399
13401
  $(n(Se), {
13400
13402
  variant: "outline",
13401
13403
  size: "sm",
13402
- onClick: B
13404
+ onClick: D
13403
13405
  }, {
13404
13406
  default: x(() => [
13405
13407
  fe(U(O.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
@@ -13503,10 +13505,10 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13503
13505
  }), N0 = {
13504
13506
  key: 2,
13505
13507
  class: "vc-cell-renderer__row-reorder-placeholder"
13506
- }, D0 = {
13508
+ }, B0 = {
13507
13509
  key: 3,
13508
13510
  class: "vc-cell-renderer__row-editor"
13509
- }, B0 = {
13511
+ }, D0 = {
13510
13512
  key: 5,
13511
13513
  class: "vc-cell-renderer__body-slot"
13512
13514
  }, P0 = /* @__PURE__ */ Q({
@@ -13586,7 +13588,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13586
13588
  ]),
13587
13589
  _: 1
13588
13590
  }, 8, ["aria-label", "aria-expanded", "data-is-expanded"])) : L("", !0)
13589
- ], 64)) : e.column.props.rowReorder ? (s(), g("div", N0)) : e.column.props.rowEditor ? (s(), g("div", D0, [
13591
+ ], 64)) : e.column.props.rowReorder ? (s(), g("div", N0)) : e.column.props.rowEditor ? (s(), g("div", B0, [
13590
13592
  e.isRowEditing ? (s(), g(J, { key: 0 }, [
13591
13593
  $(n(Se), {
13592
13594
  variant: "success",
@@ -13636,7 +13638,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13636
13638
  editorCancelCallback: o
13637
13639
  }
13638
13640
  }, null, 8, ["slot-fn", "scope"])
13639
- ], 32)) : e.column.slots.body || e.column.slots.default ? (s(), g("div", B0, [
13641
+ ], 32)) : e.column.slots.body || e.column.slots.default ? (s(), g("div", D0, [
13640
13642
  $(n(ll), {
13641
13643
  "slot-fn": e.column.slots.body || e.column.slots.default,
13642
13644
  scope: {
@@ -13774,7 +13776,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13774
13776
  onMouseleave: c
13775
13777
  }, Ne({
13776
13778
  default: x(() => [
13777
- e.showSelectionCell ? (s(), P(Bl, {
13779
+ e.showSelectionCell ? (s(), P(Dl, {
13778
13780
  key: 0,
13779
13781
  class: "vc-data-table__selection-cell",
13780
13782
  "line-clamp": 0,
@@ -13798,7 +13800,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13798
13800
  ]),
13799
13801
  _: 1
13800
13802
  })) : L("", !0),
13801
- (s(!0), g(J, null, ve(e.columns, (V) => (s(), P(Bl, {
13803
+ (s(!0), g(J, null, ve(e.columns, (V) => (s(), P(Dl, {
13802
13804
  key: V.props.id,
13803
13805
  "column-id": V.props.id,
13804
13806
  width: e.getColumnWidth(V.props),
@@ -13806,7 +13808,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13806
13808
  "cell-class": V.props.bodyClass,
13807
13809
  "line-clamp": V.props.lineClamp,
13808
13810
  style: he(e.getCellStyle(V.props)),
13809
- onClick: (B) => C(V)
13811
+ onClick: (D) => C(V)
13810
13812
  }, {
13811
13813
  default: x(() => [
13812
13814
  $(P0, {
@@ -13828,9 +13830,9 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13828
13830
  onRowEdit: b,
13829
13831
  onRowSave: p,
13830
13832
  onRowCancel: m,
13831
- onEditComplete: (B) => h(V.props.field || V.props.id, B),
13832
- onEditCancel: (B) => f(V.props.field || V.props.id),
13833
- onCellValueChange: (B) => k(V.props.field || V.props.id, B)
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)
13834
13836
  }, 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"])
13835
13837
  ]),
13836
13838
  _: 2
@@ -13889,7 +13891,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13889
13891
  return (l, r) => (s(), g("div", q0, [
13890
13892
  e.columns.length > 0 ? (s(!0), g(J, { key: 0 }, ve(e.rows, (i) => (s(), P(na, { key: i }, {
13891
13893
  default: x(() => [
13892
- e.showSelectionCell ? (s(), P(Bl, {
13894
+ e.showSelectionCell ? (s(), P(Dl, {
13893
13895
  key: 0,
13894
13896
  class: "vc-data-table__selection-cell",
13895
13897
  "line-clamp": 0
@@ -13903,7 +13905,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13903
13905
  ]),
13904
13906
  _: 1
13905
13907
  })) : L("", !0),
13906
- (s(!0), g(J, null, ve(e.columns, (o) => (s(), P(Bl, {
13908
+ (s(!0), g(J, null, ve(e.columns, (o) => (s(), P(Dl, {
13907
13909
  key: o.props.id,
13908
13910
  width: e.getColumnWidth(o.props),
13909
13911
  style: he(e.getCellStyle(o.props)),
@@ -13969,7 +13971,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
13969
13971
  for (const E of l.groupedData)
13970
13972
  _.set(E.key, E.count);
13971
13973
  return _;
13972
- }), 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);
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);
13973
13975
  return a({ listEl: A }), (_, E) => (s(), g("div", {
13974
13976
  class: "vc-data-table__body",
13975
13977
  role: e.items.length ? "rowgroup" : "presentation",
@@ -14025,7 +14027,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14025
14027
  onRowSave: () => T(N, b(N, F)),
14026
14028
  onRowCancel: () => I(N, b(N, F)),
14027
14029
  onEditComplete: (z, K) => V(N, z, b(N, F), K),
14028
- onEditCancel: (z) => B(N, z, b(N, F)),
14030
+ onEditCancel: (z) => D(N, z, b(N, F)),
14029
14031
  onCellValueChange: (z, K) => O(z, b(N, F), K),
14030
14032
  onCellClick: (z) => M(N, z.props.field || z.props.id, b(N, F), z),
14031
14033
  onGroupToggle: (z) => p(d(N), z)
@@ -14067,11 +14069,11 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14067
14069
  isEditing: { type: Boolean }
14068
14070
  },
14069
14071
  setup(e) {
14070
- const a = e, t = D(null), l = D(!1), r = () => {
14072
+ const a = e, t = B(null), l = B(!1), r = () => {
14071
14073
  const i = t.value;
14072
14074
  l.value = !!i && i.scrollWidth > i.clientWidth;
14073
14075
  };
14074
- return Do(t, r), oe(
14076
+ return Bo(t, r), oe(
14075
14077
  () => [a.title, a.required, a.isEditing],
14076
14078
  () => requestAnimationFrame(r)
14077
14079
  ), (i, o) => (s(), P(n(pt), {
@@ -14130,7 +14132,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14130
14132
  },
14131
14133
  emits: ["select-all", "sort", "resize-start", "reorder-start", "reorder-over", "reorder-drop", "filter-apply", "filter-clear", "column-switcher-click"],
14132
14134
  setup(e, { expose: a, emit: t }) {
14133
- const l = t, r = D(null);
14135
+ const l = t, r = B(null);
14134
14136
  a({
14135
14137
  /** The column switcher action element (for dropdown anchor positioning) */
14136
14138
  columnSwitcherEl: y(() => r.value)
@@ -14235,7 +14237,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14235
14237
  updateStartDate: T,
14236
14238
  endDate: I,
14237
14239
  updateEndDate: V,
14238
- applyFilter: B,
14240
+ applyFilter: D,
14239
14241
  clearFilter: O
14240
14242
  }) => [
14241
14243
  $(n(ll), {
@@ -14248,7 +14250,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14248
14250
  updateStartDate: T,
14249
14251
  endDate: I,
14250
14252
  updateEndDate: V,
14251
- applyFilter: B,
14253
+ applyFilter: D,
14252
14254
  clearFilter: O
14253
14255
  }
14254
14256
  }, null, 8, ["slot-fn", "scope"])
@@ -14419,7 +14421,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
14419
14421
  }
14420
14422
  }), yi = Symbol();
14421
14423
  function c1() {
14422
- const e = D(null);
14424
+ const e = B(null);
14423
14425
  function a(l) {
14424
14426
  e.value = l;
14425
14427
  }
@@ -14427,7 +14429,7 @@ function c1() {
14427
14429
  activeSwipeId: e,
14428
14430
  setActiveSwipe: a
14429
14431
  };
14430
- return De(yi, t), t;
14432
+ return Be(yi, t), t;
14431
14433
  }
14432
14434
  function u1() {
14433
14435
  const e = Ce(yi);
@@ -14479,7 +14481,7 @@ const d1 = {
14479
14481
  function i(re, ie) {
14480
14482
  l("cell-value-change", re.field || re.id, ie.value);
14481
14483
  }
14482
- const o = D(null), c = D(null), d = D(!1), u = D(null);
14484
+ const o = B(null), c = B(null), d = B(!1), u = B(null);
14483
14485
  function v() {
14484
14486
  !t.selectionMode || p.value !== 0 || h.value || (d.value = !0, u.value = setTimeout(() => {
14485
14487
  d.value && l("select", t.item, t.index), d.value = !1;
@@ -14488,7 +14490,7 @@ const d1 = {
14488
14490
  function b() {
14489
14491
  u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
14490
14492
  }
14491
- 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(() => {
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(() => {
14492
14494
  const re = E.value.length;
14493
14495
  return Math.min(re, re > 2 ? 3 : 2) * 70;
14494
14496
  });
@@ -14509,7 +14511,7 @@ const d1 = {
14509
14511
  function de(re) {
14510
14512
  if (h.value || E.value.length === 0) return;
14511
14513
  const ie = re.touches[0];
14512
- 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));
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));
14513
14515
  }
14514
14516
  function Y(re) {
14515
14517
  if (h.value || E.value.length === 0 || M.value !== String(A.value)) return;
@@ -14525,7 +14527,7 @@ const d1 = {
14525
14527
  return;
14526
14528
  re.preventDefault();
14527
14529
  const ye = Date.now(), Ee = ye - V.value;
14528
- Ee > 0 && (I.value = (te - B.value) / Ee), V.value = ye, B.value = te;
14530
+ Ee > 0 && (I.value = (te - D.value) / Ee), V.value = ye, D.value = te;
14529
14531
  let Re = T.value + me;
14530
14532
  if (Re < -K.value) {
14531
14533
  const We = Re + K.value;
@@ -14914,13 +14916,13 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
14914
14916
  },
14915
14917
  emits: ["refresh"],
14916
14918
  setup(e, { expose: a, emit: t }) {
14917
- 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(() => ({
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(() => ({
14918
14920
  "vc-pull-to-refresh__icon--rotate": v.value && !l.refreshing,
14919
14921
  "vc-pull-to-refresh__icon--spin": l.refreshing
14920
14922
  })), 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(() => ({
14921
14923
  transform: `translateY(${Math.min(d.value, Sn + 20) - Sn}px)`,
14922
14924
  opacity: Math.min(d.value / l.threshold, 1)
14923
- })), B = y(() => ({
14925
+ })), D = y(() => ({
14924
14926
  transform: `translateY(${d.value}px)`
14925
14927
  }));
14926
14928
  function O() {
@@ -15002,13 +15004,13 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15002
15004
  ], 4),
15003
15005
  w("div", {
15004
15006
  class: "vc-pull-to-refresh__content",
15005
- style: he(B.value)
15007
+ style: he(D.value)
15006
15008
  }, [
15007
15009
  H(E.$slots, "default")
15008
15010
  ], 4)
15009
15011
  ], 544));
15010
15012
  }
15011
- }), D1 = { class: "vc-data-table-mobile-view" }, B1 = {
15013
+ }), B1 = { class: "vc-data-table-mobile-view" }, D1 = {
15012
15014
  key: 0,
15013
15015
  class: "vc-data-table-mobile-view__empty"
15014
15016
  }, P1 = { class: "vc-data-table-mobile-view__empty-content" }, V1 = { class: "vc-data-table-mobile-view__empty-text" }, F1 = /* @__PURE__ */ Q({
@@ -15062,8 +15064,8 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15062
15064
  icon: V.icon || "lucide-ellipsis",
15063
15065
  type: m(V.variant),
15064
15066
  disabled: V.disabled,
15065
- clickHandler: (B, O) => {
15066
- V.clickHandler?.(B, O);
15067
+ clickHandler: (D, O) => {
15068
+ V.clickHandler?.(D, O);
15067
15069
  }
15068
15070
  })) : [];
15069
15071
  }
@@ -15088,7 +15090,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15088
15090
  function k(T, I, V) {
15089
15091
  r("action", T, I, V);
15090
15092
  }
15091
- const C = D(null), S = y(() => C.value ?? void 0);
15093
+ const C = B(null), S = y(() => C.value ?? void 0);
15092
15094
  return a({
15093
15095
  hasMobileColumns: c,
15094
15096
  mobileLayout: o,
@@ -15102,8 +15104,8 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15102
15104
  onRefresh: I[0] || (I[0] = (V) => r("refresh"))
15103
15105
  }, {
15104
15106
  default: x(() => [
15105
- w("div", D1, [
15106
- !e.loading && e.items.length === 0 ? (s(), g("div", B1, [
15107
+ w("div", B1, [
15108
+ !e.loading && e.items.length === 0 ? (s(), g("div", D1, [
15107
15109
  H(T.$slots, "empty", {}, () => [
15108
15110
  w("div", P1, [
15109
15111
  $(n(le), {
@@ -15130,10 +15132,10 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15130
15132
  ref: C,
15131
15133
  class: "vc-data-table-mobile-view__list"
15132
15134
  }, [
15133
- (s(!0), g(J, null, ve(e.items, (V, B) => (s(), P(k1, {
15134
- key: b(V, B),
15135
+ (s(!0), g(J, null, ve(e.items, (V, D) => (s(), P(k1, {
15136
+ key: b(V, D),
15135
15137
  item: V,
15136
- index: B,
15138
+ index: D,
15137
15139
  reorderable: e.reorderable,
15138
15140
  layout: n(o),
15139
15141
  "is-selected": u(V),
@@ -15146,7 +15148,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15146
15148
  "action-sheet-title": e.actionSheetTitle,
15147
15149
  "cancel-label": e.cancelLabel,
15148
15150
  "is-inline-editing": e.isInlineEditing,
15149
- "is-new-row": e.newRowIndices?.has(B),
15151
+ "is-new-row": e.newRowIndices?.has(D),
15150
15152
  expandable: e.canExpandRow(V),
15151
15153
  "is-expanded": e.isRowExpanded(V),
15152
15154
  "expanded-icon": e.expandedIcon,
@@ -15154,7 +15156,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15154
15156
  onClick: h,
15155
15157
  onSelect: f,
15156
15158
  onAction: k,
15157
- onCellValueChange: (O, M) => r("cell-value-change", O, B, M),
15159
+ onCellValueChange: (O, M) => r("cell-value-change", O, D, M),
15158
15160
  onExpandToggle: (O, M, R) => r("expand-toggle", O, M, R)
15159
15161
  }, Ne({ _: 2 }, [
15160
15162
  T.$slots.expansion ? {
@@ -15162,7 +15164,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
15162
15164
  fn: x(() => [
15163
15165
  H(T.$slots, "expansion", {
15164
15166
  data: V,
15165
- index: B
15167
+ index: D
15166
15168
  })
15167
15169
  ]),
15168
15170
  key: "0"
@@ -15328,7 +15330,7 @@ function K1(e) {
15328
15330
  onResizeStart: c,
15329
15331
  onResizeEnd: d,
15330
15332
  containerEl: u
15331
- } = e, v = D(!1);
15333
+ } = e, v = B(!1);
15332
15334
  let b = 0, p = 0, m = {}, h = "", f = [];
15333
15335
  const k = (z) => {
15334
15336
  const K = {};
@@ -15345,12 +15347,12 @@ function K1(e) {
15345
15347
  const K = C(), Z = K.indexOf(z);
15346
15348
  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);
15347
15349
  }, T = (z) => {
15348
- !v.value || !h || B(z);
15350
+ !v.value || !h || D(z);
15349
15351
  }, I = () => {
15350
15352
  v.value = !1, h = "", m = {}, f = [];
15351
15353
  }, V = (z, K) => {
15352
15354
  S(z) && (b = K.pageX, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", O), document.addEventListener("mouseup", M));
15353
- }, B = (z) => {
15355
+ }, D = (z) => {
15354
15356
  const K = r();
15355
15357
  if (K <= 0) return;
15356
15358
  const Z = C();
@@ -15439,7 +15441,7 @@ function K1(e) {
15439
15441
  };
15440
15442
  }
15441
15443
  function Y1(e) {
15442
- const { columnState: a, onReorderEnd: t } = e, l = D(!1);
15444
+ const { columnState: a, onReorderEnd: t } = e, l = B(!1);
15443
15445
  let r = null, i = null;
15444
15446
  const o = (p, m) => {
15445
15447
  if (!m.dataTransfer) return;
@@ -15457,8 +15459,8 @@ function Y1(e) {
15457
15459
  if (!h) return;
15458
15460
  const f = h.getAttribute("data-column-id");
15459
15461
  if (!f || f === r) return;
15460
- 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;
15461
- if ((B && S < C || O && S > C) && I !== -1 && V !== -1 && I !== V) {
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) {
15462
15464
  const R = [...T], [A] = R.splice(I, 1);
15463
15465
  R.splice(V, 0, A), a.value = { ...a.value, order: R };
15464
15466
  }
@@ -15492,13 +15494,13 @@ function Y1(e) {
15492
15494
  };
15493
15495
  }
15494
15496
  function j1(e, a, t) {
15495
- const l = D([...a.value]), r = D(!1), i = D(!1);
15497
+ const l = B([...a.value]), r = B(!1), i = B(!1);
15496
15498
  let o = null;
15497
15499
  function c() {
15498
15500
  o && (o.destroy(), o = null);
15499
15501
  }
15500
15502
  function d(u) {
15501
- c(), o = Bo.create(u, {
15503
+ c(), o = Do.create(u, {
15502
15504
  handle: t.handle,
15503
15505
  animation: 200,
15504
15506
  forceFallback: !0,
@@ -15555,11 +15557,11 @@ function Rn(e) {
15555
15557
  }
15556
15558
  }
15557
15559
  function X1(e) {
15558
- const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: i } = e, o = D(!1);
15560
+ const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: i } = e, o = B(!1);
15559
15561
  let c = [];
15560
15562
  const d = Ce(Vr, void 0), u = d ? void 0 : Mo(), v = d ?? u, { meta: b, setFieldValue: p, errors: m, validate: h } = v, f = () => {
15561
15563
  u && u.resetForm();
15562
- }, k = D(/* @__PURE__ */ new Map()), C = D(/* @__PURE__ */ new Set()), S = (K) => {
15564
+ }, k = B(/* @__PURE__ */ new Map()), C = B(/* @__PURE__ */ new Set()), S = (K) => {
15563
15565
  if (C.value.has(K)) {
15564
15566
  const Z = new Set(C.value);
15565
15567
  Z.delete(K), C.value = Z;
@@ -15568,7 +15570,7 @@ function X1(e) {
15568
15570
  c = a.value.map((K) => Rn(K)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !0;
15569
15571
  }, V = () => {
15570
15572
  a.value.splice(0, a.value.length, ...c.map((K) => Rn(K))), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1, i?.();
15571
- }, B = async () => {
15573
+ }, D = async () => {
15572
15574
  const { valid: K } = await h();
15573
15575
  K && (r && await r(_.value), c = a.value.map((Z) => Rn(Z)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1);
15574
15576
  }, O = (K, Z, de) => {
@@ -15598,7 +15600,7 @@ function X1(e) {
15598
15600
  isEditing: o,
15599
15601
  startEditing: I,
15600
15602
  cancelEditing: V,
15601
- saveChanges: B,
15603
+ saveChanges: D,
15602
15604
  updateCell: O,
15603
15605
  getCellValue: M,
15604
15606
  isCellDirty: R,
@@ -15655,7 +15657,7 @@ function f$(e) {
15655
15657
  lazy: o = !1,
15656
15658
  onScroll: c,
15657
15659
  onLazyLoad: d
15658
- } = e, u = D(0), v = D(0), b = D(!1);
15660
+ } = e, u = B(0), v = B(0), b = B(!1);
15659
15661
  let p = null, m = { start: -1, end: -1 };
15660
15662
  const h = y(() => {
15661
15663
  const M = r, R = a.value.length;
@@ -15691,15 +15693,15 @@ function f$(e) {
15691
15693
  if (!l.value) return;
15692
15694
  const R = k.value - v.value;
15693
15695
  l.value.scrollTo({ top: Math.max(0, R), behavior: M });
15694
- }, B = () => {
15696
+ }, D = () => {
15695
15697
  l.value && (v.value = l.value.clientHeight, u.value = l.value.scrollTop);
15696
15698
  }, O = () => {
15697
- B();
15699
+ D();
15698
15700
  };
15699
15701
  return oe(
15700
15702
  l,
15701
15703
  (M) => {
15702
- M && B();
15704
+ M && D();
15703
15705
  },
15704
15706
  { immediate: !0 }
15705
15707
  ), oe(
@@ -15708,7 +15710,7 @@ function f$(e) {
15708
15710
  R > 0 && M !== R && (m = { start: -1, end: -1 });
15709
15711
  }
15710
15712
  ), tt(() => {
15711
- B(), window.addEventListener("resize", O);
15713
+ D(), window.addEventListener("resize", O);
15712
15714
  }), He(() => {
15713
15715
  window.removeEventListener("resize", O), p && clearTimeout(p);
15714
15716
  }), {
@@ -15729,62 +15731,62 @@ function Q1(e) {
15729
15731
  const {
15730
15732
  items: a,
15731
15733
  groupRowsBy: t,
15732
- rowGroupMode: l = D("subheader"),
15733
- expandableRowGroups: r = D(!1),
15734
+ rowGroupMode: l = B("subheader"),
15735
+ expandableRowGroups: r = B(!1),
15734
15736
  expandedRowGroups: i,
15735
15737
  onExpandedRowGroupsChange: o,
15736
15738
  onRowGroupExpand: c,
15737
15739
  onRowGroupCollapse: d
15738
- } = e, u = D([]);
15740
+ } = e, u = B([]);
15739
15741
  oe(
15740
15742
  () => i?.value,
15741
- (B) => {
15742
- B !== void 0 && (u.value = [...B]);
15743
+ (D) => {
15744
+ D !== void 0 && (u.value = [...D]);
15743
15745
  },
15744
15746
  { immediate: !0 }
15745
15747
  );
15746
- const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (B) => {
15748
+ const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (D) => {
15747
15749
  if (!b.value) return "";
15748
- const O = jn(B, b.value);
15750
+ const O = jn(D, b.value);
15749
15751
  return String(O ?? "undefined");
15750
15752
  }, m = y(() => {
15751
15753
  if (!v.value || !b.value)
15752
15754
  return null;
15753
- const B = /* @__PURE__ */ new Map();
15755
+ const D = /* @__PURE__ */ new Map();
15754
15756
  for (const O of a.value) {
15755
15757
  const M = p(O);
15756
- B.has(M) || B.set(M, []), B.get(M).push(O);
15758
+ D.has(M) || D.set(M, []), D.get(M).push(O);
15757
15759
  }
15758
- return B;
15760
+ return D;
15759
15761
  }), h = y(() => {
15760
15762
  if (!m.value)
15761
15763
  return [];
15762
- const B = [];
15764
+ const D = [];
15763
15765
  return m.value.forEach((O, M) => {
15764
- B.push({
15766
+ D.push({
15765
15767
  key: M,
15766
15768
  items: O,
15767
15769
  firstItem: O[0],
15768
15770
  count: O.length
15769
15771
  });
15770
- }), B;
15771
- }), f = (B) => r?.value ? u.value.includes(B) : !0, k = (B, O) => {
15772
+ }), D;
15773
+ }), f = (D) => r?.value ? u.value.includes(D) : !0, k = (D, O) => {
15772
15774
  if (!r?.value)
15773
15775
  return;
15774
- 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);
15775
- }, C = (B) => {
15776
- !r?.value || f(B) || (u.value = [...u.value, B], o?.(u.value));
15777
- }, S = (B) => {
15778
- !r?.value || !f(B) || (u.value = u.value.filter((O) => O !== B), o?.(u.value));
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));
15779
15781
  }, T = () => {
15780
15782
  if (!r?.value || !m.value)
15781
15783
  return;
15782
- const B = [];
15783
- m.value.forEach((O, M) => B.push(M)), u.value = B, o?.(u.value);
15784
+ const D = [];
15785
+ m.value.forEach((O, M) => D.push(M)), u.value = D, o?.(u.value);
15784
15786
  }, I = () => {
15785
15787
  r?.value && (u.value = [], o?.(u.value));
15786
- }, V = y(() => !v.value || !r?.value ? a.value : a.value.filter((B) => {
15787
- const O = p(B);
15788
+ }, V = y(() => !v.value || !r?.value ? a.value : a.value.filter((D) => {
15789
+ const O = p(D);
15788
15790
  return f(O);
15789
15791
  }));
15790
15792
  return {
@@ -15803,7 +15805,7 @@ function Q1(e) {
15803
15805
  };
15804
15806
  }
15805
15807
  function Z1(e = {}) {
15806
- const a = D({}), t = (p) => !!(p == null || p === "" || Array.isArray(p) && p.length === 0), l = (p, m) => {
15808
+ const a = B({}), t = (p) => !!(p == null || p === "" || Array.isArray(p) && p.length === 0), l = (p, m) => {
15807
15809
  a.value = {
15808
15810
  ...a.value,
15809
15811
  [p]: m
@@ -15856,7 +15858,7 @@ function Z1(e = {}) {
15856
15858
  };
15857
15859
  }
15858
15860
  function J1(e) {
15859
- 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 || []]);
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 || []]);
15860
15862
  oe(
15861
15863
  () => [a.value, t.value, r.value],
15862
15864
  ([k, C, S]) => {
@@ -15922,7 +15924,7 @@ function Za(e) {
15922
15924
  }
15923
15925
  }
15924
15926
  function eC(e) {
15925
- const { editMode: a, editingRows: t, getItemKey: l } = e, r = D(null), i = D({}), o = D([]), c = D(/* @__PURE__ */ new Map());
15927
+ const { editMode: a, editingRows: t, getItemKey: l } = e, r = B(null), i = B({}), o = B([]), c = B(/* @__PURE__ */ new Map());
15926
15928
  return oe(
15927
15929
  () => t?.value,
15928
15930
  (C) => {
@@ -15953,7 +15955,7 @@ function eC(e) {
15953
15955
  completeCellEdit: (C, S, T, I) => {
15954
15956
  if (a.value !== "cell")
15955
15957
  return { data: C, field: S, newValue: I, index: T };
15956
- const V = i.value[T], B = V?.data;
15958
+ const V = i.value[T], D = V?.data;
15957
15959
  if (r.value = null, V) {
15958
15960
  const M = V.fields.filter((R) => R !== S);
15959
15961
  if (M.length === 0) {
@@ -15965,7 +15967,7 @@ function eC(e) {
15965
15967
  [T]: { ...V, fields: M }
15966
15968
  };
15967
15969
  }
15968
- const O = B ? B[S] : I;
15970
+ const O = D ? D[S] : I;
15969
15971
  return { data: C, field: S, newValue: O, index: T };
15970
15972
  },
15971
15973
  cancelCellEdit: (C, S, T) => {
@@ -15974,10 +15976,10 @@ function eC(e) {
15974
15976
  r.value = null;
15975
15977
  const I = i.value[T];
15976
15978
  if (I) {
15977
- const V = I.fields.filter((B) => B !== S);
15979
+ const V = I.fields.filter((D) => D !== S);
15978
15980
  if (V.length === 0) {
15979
- const B = { ...i.value };
15980
- delete B[T], i.value = B;
15981
+ const D = { ...i.value };
15982
+ delete D[T], i.value = D;
15981
15983
  } else
15982
15984
  i.value = {
15983
15985
  ...i.value,
@@ -16020,7 +16022,7 @@ function eC(e) {
16020
16022
  };
16021
16023
  }
16022
16024
  function tC(e) {
16023
- const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = D([]);
16025
+ const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = B([]);
16024
16026
  oe(
16025
16027
  () => a?.value,
16026
16028
  (m) => {
@@ -16068,7 +16070,7 @@ function lC(e) {
16068
16070
  selectAllActive: c,
16069
16071
  selectAllEnabled: d,
16070
16072
  onSelectAllChange: u
16071
- } = e, v = D([]), b = D(!1);
16073
+ } = e, v = B([]), b = B(!1);
16072
16074
  oe(
16073
16075
  () => t?.value,
16074
16076
  (E) => {
@@ -16106,7 +16108,7 @@ function lC(e) {
16106
16108
  data: E,
16107
16109
  originalEvent: N || new Event("unselect")
16108
16110
  };
16109
- }, B = (E, N) => {
16111
+ }, D = (E, N) => {
16110
16112
  if (!T(E))
16111
16113
  return null;
16112
16114
  const F = S(E), z = N instanceof Event ? N : new Event("change");
@@ -16146,7 +16148,7 @@ function lC(e) {
16146
16148
  selectionInfo: C,
16147
16149
  isSelected: S,
16148
16150
  canSelect: T,
16149
- handleRowSelectionChange: B,
16151
+ handleRowSelectionChange: D,
16150
16152
  handleSelectAllChange: O,
16151
16153
  selectItem: I,
16152
16154
  unselectItem: V,
@@ -16183,7 +16185,7 @@ const yt = {
16183
16185
  rowEditor: 100
16184
16186
  };
16185
16187
  function aC(e) {
16186
- 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) => {
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) => {
16187
16189
  if (E.selectionMode) return `${yt.selection}px`;
16188
16190
  if (E.rowReorder) return `${yt.rowReorder}px`;
16189
16191
  if (E.expander) return `${yt.expander}px`;
@@ -16255,15 +16257,15 @@ function aC(e) {
16255
16257
  }
16256
16258
  Y && (i.value = { order: K, specs: de });
16257
16259
  }
16258
- let B = !1;
16260
+ let D = !1;
16259
16261
  const O = () => {
16260
- B = !0;
16262
+ D = !0;
16261
16263
  }, M = () => {
16262
- i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, B = !1, R();
16264
+ i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, D = !1, R();
16263
16265
  }, R = () => {
16264
16266
  const E = e.getAvailableWidth();
16265
16267
  if (E <= 0) return;
16266
- B || V(E);
16268
+ D || V(E);
16267
16269
  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] }));
16268
16270
  F.length !== 0 && (o.value = U1({ availableWidth: E, columns: F, mode: r }));
16269
16271
  };
@@ -16312,7 +16314,7 @@ function aC(e) {
16312
16314
  recompute: R,
16313
16315
  resetFromProps: M,
16314
16316
  markSizingCustomized: O,
16315
- isSizingCustomized: () => B,
16317
+ isSizingCustomized: () => D,
16316
16318
  orderedVisibleColumns: C,
16317
16319
  totalColumns: T,
16318
16320
  isSpecialColumn: nt,
@@ -16464,12 +16466,12 @@ function rC(e) {
16464
16466
  v--;
16465
16467
  });
16466
16468
  }
16467
- function B() {
16469
+ function D() {
16468
16470
  return !(v > 0 || !a.value || k || o && o() <= 0);
16469
16471
  }
16470
16472
  function O() {
16471
- B() && (b != null && clearTimeout(b), b = setTimeout(() => {
16472
- b = void 0, B() && S();
16473
+ D() && (b != null && clearTimeout(b), b = setTimeout(() => {
16474
+ b = void 0, D() && S();
16473
16475
  }, oC));
16474
16476
  }
16475
16477
  return oe(i ? [l, r, i] : [l, r], O, { deep: !0 }), He(() => {
@@ -16531,11 +16533,11 @@ function uC(e) {
16531
16533
  expandedRows: Ie(a, "expandedRows"),
16532
16534
  getItemKey: d,
16533
16535
  isRowExpandable: (j) => a.isRowExpandable ? a.isRowExpandable(j) : !0
16534
- }), I = D([]);
16536
+ }), I = B([]);
16535
16537
  oe(
16536
16538
  () => T.internalExpandedRows.value,
16537
16539
  (j) => {
16538
- const ge = j.map((Be) => d(Be, 0)), pe = I.value.join(","), Oe = ge.join(",");
16540
+ const ge = j.map((De) => d(De, 0)), pe = I.value.join(","), Oe = ge.join(",");
16539
16541
  pe !== Oe && (I.value = ge, t("update:expandedRows", j));
16540
16542
  },
16541
16543
  { deep: !0, immediate: !0 }
@@ -16543,7 +16545,7 @@ function uC(e) {
16543
16545
  const V = (j) => {
16544
16546
  const ge = d(j, 0);
16545
16547
  return I.value.includes(ge);
16546
- }, B = (j) => T.canExpand(j), O = Q1({
16548
+ }, D = (j) => T.canExpand(j), O = Q1({
16547
16549
  items: Ie(a, "items"),
16548
16550
  groupRowsBy: Ie(a, "groupRowsBy"),
16549
16551
  rowGroupMode: Ie(a, "rowGroupMode"),
@@ -16581,7 +16583,7 @@ function uC(e) {
16581
16583
  reorderableColumns: a.reorderableColumns ?? !0,
16582
16584
  fitMode: a.fitMode ?? "gap",
16583
16585
  getAvailableWidth: _
16584
- }), N = D(/* @__PURE__ */ new Set());
16586
+ }), N = B(/* @__PURE__ */ new Set());
16585
16587
  oe(
16586
16588
  () => c.value.map((j) => j.props.id).join(","),
16587
16589
  () => {
@@ -16619,19 +16621,19 @@ function uC(e) {
16619
16621
  N,
16620
16622
  (j, ge) => {
16621
16623
  const pe = new Set(i.value), Oe = new Set(o.value);
16622
- let Be = !1, ot = !1;
16624
+ let De = !1, ot = !1;
16623
16625
  for (const Je of j)
16624
- (!ge || !ge.has(Je)) && !pe.has(Je) && !Oe.has(Je) && (pe.add(Je), Be = !0);
16626
+ (!ge || !ge.has(Je)) && !pe.has(Je) && !Oe.has(Je) && (pe.add(Je), De = !0);
16625
16627
  if (ge) {
16626
16628
  const Je = new Set(r.value.map((it) => it.props.id));
16627
16629
  for (const it of ge)
16628
- !j.has(it) && Je.has(it) && (pe.delete(it) && (Be = !0), Oe.delete(it) && (ot = !0));
16630
+ !j.has(it) && Je.has(it) && (pe.delete(it) && (De = !0), Oe.delete(it) && (ot = !0));
16629
16631
  }
16630
- Be && (i.value = pe), ot && (o.value = Oe);
16632
+ De && (i.value = pe), ot && (o.value = Oe);
16631
16633
  },
16632
16634
  { immediate: !0 }
16633
16635
  );
16634
- 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"), {
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"), {
16635
16637
  disabled: y(() => !de.value),
16636
16638
  handle: cC,
16637
16639
  onReorder: (j) => t("row-reorder", j)
@@ -16651,20 +16653,20 @@ function uC(e) {
16651
16653
  }
16652
16654
  }
16653
16655
  return ae.value[ge] ?? null;
16654
- }, Mt = D(null), Lt = () => {
16656
+ }, Mt = B(null), Lt = () => {
16655
16657
  const j = me();
16656
16658
  Mt.value && Object.assign(j, Mt.value), t("filter", { filters: j, filteredValue: a.items });
16657
16659
  }, tn = (j, ge) => {
16658
16660
  const pe = Re(j), Oe = Ee(j);
16659
16661
  if (pe === "dateRange") {
16660
- const Be = at(j);
16661
- if (Be) {
16662
- const ot = ge[Be[0]], Je = ge[Be[1]];
16663
- ie(Be, { start: ot, end: Je });
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 });
16664
16666
  }
16665
16667
  } else {
16666
- const Be = ge[Oe];
16667
- re(Oe, Be);
16668
+ const De = ge[Oe];
16669
+ re(Oe, De);
16668
16670
  }
16669
16671
  Lt();
16670
16672
  }, ln = (j) => {
@@ -16672,8 +16674,8 @@ function uC(e) {
16672
16674
  if (Re(j) === "dateRange") {
16673
16675
  const Oe = at(j);
16674
16676
  if (Oe) {
16675
- const Be = `__range__${Oe[0]}__${Oe[1]}`;
16676
- te(Be);
16677
+ const De = `__range__${Oe[0]}__${Oe[1]}`;
16678
+ te(De);
16677
16679
  }
16678
16680
  } else
16679
16681
  te(ge);
@@ -16768,15 +16770,15 @@ function uC(e) {
16768
16770
  isInlineEditing: R,
16769
16771
  // Expansion helper
16770
16772
  isRowExpanded: V,
16771
- canExpand: B,
16773
+ canExpand: D,
16772
16774
  expandedKeysArray: I,
16773
16775
  // Data-discovered IDs stable ref
16774
16776
  dataDiscoveredIds: N,
16775
16777
  // Event handlers (selection handlers are on the `selection` facade)
16776
16778
  handleSort: qt,
16777
16779
  handleRowClick: (j, ge, pe) => {
16778
- const Oe = d(j, ge), Be = a.activeItemId != null && Oe === String(a.activeItemId);
16779
- t("update:activeItemId", Be ? void 0 : Oe), t("row-click", { data: j, index: ge, originalEvent: 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 });
16780
16782
  const ot = pe.target, Je = ot.tagName === "INPUT" && ot.getAttribute("type") === "checkbox";
16781
16783
  p.value === "single" && !Je && It(j, pe);
16782
16784
  },
@@ -16803,7 +16805,7 @@ function uC(e) {
16803
16805
  t("row-remove", pe), ge || M.removeRow(j);
16804
16806
  },
16805
16807
  handleColumnVisibilityChange: (j) => {
16806
- 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)));
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)));
16807
16809
  for (const Ke of pe)
16808
16810
  ge.has(Ke) || Je.add(Ke);
16809
16811
  for (const Ke of Oe)
@@ -16815,13 +16817,13 @@ function uC(e) {
16815
16817
  },
16816
16818
  handleCellClick: (j, ge, pe, Oe) => {
16817
16819
  if (a.editMode === "cell" && (Oe.slots.editor || Oe.props.editable) && !S.isCellEditing(pe, ge)) {
16818
- const Be = S.startCellEdit(j, ge, pe);
16819
- t("cell-edit-init", Be);
16820
+ const De = S.startCellEdit(j, ge, pe);
16821
+ t("cell-edit-init", De);
16820
16822
  }
16821
16823
  },
16822
16824
  handleCellEditComplete: (j, ge, pe, Oe) => {
16823
- const Be = S.completeCellEdit(j, ge, pe, Oe);
16824
- t("cell-edit-complete", { data: j, field: ge, newValue: Be.newValue, index: pe }), M.isEditing.value && M.updateCell(pe, ge, 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);
16825
16827
  },
16826
16828
  handleCellEditCancel: (j, ge, pe) => {
16827
16829
  S.cancelCellEdit(j, ge, pe), t("cell-edit-cancel", { data: j, field: ge, index: pe });
@@ -16833,8 +16835,8 @@ function uC(e) {
16833
16835
  }
16834
16836
  },
16835
16837
  handleExpandToggle: (j, ge, pe) => {
16836
- const Oe = T.isRowExpanded(j, ge), Be = T.toggleRowExpansion(j, ge, pe);
16837
- Be && t(Oe ? "row-collapse" : "row-expand", Be);
16838
+ const Oe = T.isRowExpanded(j, ge), De = T.toggleRowExpansion(j, ge, pe);
16839
+ De && t(Oe ? "row-collapse" : "row-expand", De);
16838
16840
  },
16839
16841
  handleStartRowEdit: (j, ge) => {
16840
16842
  const pe = S.startRowEdit(j, ge);
@@ -17033,7 +17035,7 @@ const m$ = {
17033
17035
  () => v.value ? l.notFoundState?.actionLabel : l.emptyState?.actionLabel
17034
17036
  ), f = y(
17035
17037
  () => v.value ? l.notFoundState?.actionHandler : l.emptyState?.actionHandler
17036
- ), k = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = D(!1);
17038
+ ), k = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = B(!1);
17037
17039
  oe(
17038
17040
  () => l.items,
17039
17041
  (ce) => {
@@ -17050,7 +17052,7 @@ const m$ = {
17050
17052
  return `${Me}–${Ye} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${be}`;
17051
17053
  }
17052
17054
  return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${ce.currentPage} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${ce.pages}`;
17053
- }), { isMobile: V } = Ve(), B = y(() => V.value), O = ht(), M = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
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([
17054
17056
  "sortable",
17055
17057
  "editable",
17056
17058
  "visible",
@@ -17087,8 +17089,8 @@ const m$ = {
17087
17089
  };
17088
17090
  return ce.forEach(_e), be;
17089
17091
  }, E = new dC();
17090
- De(Cs, E);
17091
- const N = D(0);
17092
+ Be(Cs, E);
17093
+ const N = B(0);
17092
17094
  E.onUpdate(() => {
17093
17095
  N.value++;
17094
17096
  });
@@ -17096,7 +17098,7 @@ const m$ = {
17096
17098
  N.value;
17097
17099
  const ce = _();
17098
17100
  return ce.length > 0 ? ce : E.getColumns();
17099
- }), z = D(/* @__PURE__ */ new Set()), K = D(/* @__PURE__ */ new Set()), Z = y(() => {
17101
+ }), z = B(/* @__PURE__ */ new Set()), K = B(/* @__PURE__ */ new Set()), Z = y(() => {
17100
17102
  const ce = l.columnSwitcher;
17101
17103
  if (!ce || ce === "defined") return [];
17102
17104
  const be = l.items;
@@ -17114,7 +17116,7 @@ const m$ = {
17114
17116
  }), de = y(() => {
17115
17117
  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));
17116
17118
  return [...be, ..._e];
17117
- }), Y = (ce, be) => ce[l.dataKey]?.toString() || `row-${be}`, q = D(null), ne = D(null), ee = D(null), {
17119
+ }), Y = (ce, be) => ce[l.dataKey]?.toString() || `row-${be}`, q = B(null), ne = B(null), ee = B(null), {
17118
17120
  // Sub-composable instances
17119
17121
  selection: G,
17120
17122
  sort: ke,
@@ -17177,7 +17179,7 @@ const m$ = {
17177
17179
  handleStartRowEdit: ge,
17178
17180
  handleSaveRowEdit: pe,
17179
17181
  handleCancelRowEdit: Oe,
17180
- handleRowAction: Be,
17182
+ handleRowAction: De,
17181
17183
  handleMobileRowClick: ot,
17182
17184
  handleMobileRowSelect: Je,
17183
17185
  handleMobileRowAction: it
@@ -17191,16 +17193,16 @@ const m$ = {
17191
17193
  dataDiscoveredColumns: Z,
17192
17194
  getItemKey: Y,
17193
17195
  tableContainerRef: ne
17194
- }), Ke = D(null), ba = D(null);
17196
+ }), Ke = B(null), ba = B(null);
17195
17197
  Hn(() => {
17196
- on.value = B.value ? ba.value?.listEl : Ke.value?.listEl;
17197
- }), De(
17198
+ on.value = D.value ? ba.value?.listEl : Ke.value?.listEl;
17199
+ }), Be(
17198
17200
  $o,
17199
17201
  y(() => ie.engineOutput.value.fillerWidth)
17200
- ), De(Ro, ln);
17202
+ ), Be(Ro, ln);
17201
17203
  const ha = (ce) => {
17202
17204
  r("pagination-click", ce);
17203
- }, Yt = D(l.searchValue ?? "");
17205
+ }, Yt = B(l.searchValue ?? "");
17204
17206
  let jt = null;
17205
17207
  const $i = (ce) => {
17206
17208
  Yt.value = ce, r("update:searchValue", ce), jt && clearTimeout(jt), jt = setTimeout(() => {
@@ -17219,7 +17221,7 @@ const m$ = {
17219
17221
  be.scrollHeight - be.scrollTop - be.clientHeight < _e && r("load-more");
17220
17222
  }, 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) => {
17221
17223
  }, Ti = () => {
17222
- }, ml = D(!1), pl = D({}), wa = D(null), Oi = y(() => {
17224
+ }, ml = B(!1), pl = B({}), wa = B(null), Oi = y(() => {
17223
17225
  const ce = wa.value;
17224
17226
  return ce ? {
17225
17227
  getBoundingClientRect: () => ce.$el?.getBoundingClientRect() ?? new DOMRect(),
@@ -17227,7 +17229,7 @@ const m$ = {
17227
17229
  return ce.$el;
17228
17230
  }
17229
17231
  } : null;
17230
- }), Xt = D(!1), Ca = D(null), Mi = y(() => {
17232
+ }), Xt = B(!1), Ca = B(null), Mi = y(() => {
17231
17233
  const ce = Ca.value;
17232
17234
  return ce ? {
17233
17235
  getBoundingClientRect: () => (ce.columnSwitcherEl ?? null)?.getBoundingClientRect() ?? new DOMRect(),
@@ -17283,11 +17285,11 @@ const m$ = {
17283
17285
  getCellStyle: ie.getCellStyle,
17284
17286
  // Custom class
17285
17287
  rowClass: l.rowClass?.(ce)
17286
- }), { width: gl } = No(ee), Di = y(() => {
17288
+ }), { width: gl } = No(ee), Bi = y(() => {
17287
17289
  if (!l.pagination || gl.value === 0) return 5;
17288
17290
  const ce = gl.value - Ja, be = Math.floor((ce - 2 * An) / An);
17289
17291
  return be >= 7 ? 5 : be >= 3 ? be : 0;
17290
- }), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * An);
17292
+ }), Di = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * An);
17291
17293
  return a({
17292
17294
  // Selection API (public keys unchanged; sourced from the selection facade)
17293
17295
  selectAll: G.selectAll,
@@ -17384,7 +17386,7 @@ const m$ = {
17384
17386
  onCancel: n(G).clear
17385
17387
  }, null, 8, ["selection-count", "total-count", "all-selected", "show-select-all-prompt", "onSelectAll", "onCancel"])) : L("", !0)
17386
17388
  ]),
17387
- B.value ? (s(), g("div", mC, [
17389
+ D.value ? (s(), g("div", mC, [
17388
17390
  n(Et) === "multiple" && (n(G).isPartiallySelected.value || n(G).isAllSelected.value) ? (s(), g("div", pC, [
17389
17391
  $(n(nl), {
17390
17392
  "model-value": n(G).isAllSelected.value,
@@ -17545,7 +17547,7 @@ const m$ = {
17545
17547
  mode: e.rowActionsMode,
17546
17548
  position: e.rowActionsPosition,
17547
17549
  "max-quick-actions": e.maxQuickActions,
17548
- onAction: (Ye) => n(Be)(Ye, _e, Me)
17550
+ onAction: (Ye) => n(De)(Ye, _e, Me)
17549
17551
  }, null, 8, ["actions", "row-index", "mode", "position", "max-quick-actions", "onAction"])) : L("", !0)
17550
17552
  ]),
17551
17553
  expansion: x(({ data: _e, index: Me }) => [
@@ -17623,8 +17625,8 @@ const m$ = {
17623
17625
  pages: l.pagination.pages,
17624
17626
  "current-page": l.pagination.currentPage,
17625
17627
  variant: l.pagination.variant,
17626
- "max-pages": Di.value,
17627
- "show-first-last": Bi.value,
17628
+ "max-pages": Bi.value,
17629
+ "show-first-last": Di.value,
17628
17630
  onItemClick: ha
17629
17631
  }, null, 8, ["pages", "current-page", "variant", "max-pages", "show-first-last"])
17630
17632
  ])
@@ -17675,7 +17677,7 @@ const m$ = {
17675
17677
  },
17676
17678
  emits: ["paginationClick", "selectionChanged", "search:change", "headerClick", "itemClick", "scroll:ptr", "row:reorder", "select:all", "onEditComplete", "onAddNewRow", "onCellBlur"],
17677
17679
  setup(e, { emit: a }) {
17678
- const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = D(t.selectionItems ?? []), o = D(!1), c = D(null), d = y(() => {
17680
+ const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = B(t.selectionItems ?? []), o = B(!1), c = B(null), d = y(() => {
17679
17681
  const G = c.value;
17680
17682
  return G ? {
17681
17683
  getBoundingClientRect: () => G.$el?.getBoundingClientRect() ?? new DOMRect(),
@@ -17695,7 +17697,7 @@ const m$ = {
17695
17697
  const v = y(() => t.sort?.split(":")[0] || void 0), b = y(() => {
17696
17698
  const G = t.sort?.split(":")[1];
17697
17699
  return G === "ASC" ? 1 : G === "DESC" ? -1 : 0;
17698
- }), p = D(), m = y(() => t.multiselect ? "multiple" : void 0), h = y(
17700
+ }), p = B(), m = y(() => t.multiselect ? "multiple" : void 0), h = y(
17699
17701
  () => t.disableItemCheckbox ? (G) => !t.disableItemCheckbox(G) : void 0
17700
17702
  ), f = y(() => {
17701
17703
  if (!(!t.enableItemActions || !t.itemActionBuilder))
@@ -17734,7 +17736,7 @@ const m$ = {
17734
17736
  label: t.addNewRowButton.title,
17735
17737
  position: "footer"
17736
17738
  };
17737
- }), 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);
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);
17738
17740
  function R(G) {
17739
17741
  if (G)
17740
17742
  return G === "date-time" ? "datetime" : G;
@@ -17814,7 +17816,7 @@ const m$ = {
17814
17816
  "state-key": t.stateKey,
17815
17817
  "pull-to-refresh": t.pullToReload,
17816
17818
  "column-switcher": M.value,
17817
- "edit-mode": B.value,
17819
+ "edit-mode": D.value,
17818
17820
  "show-all-columns": e.expanded,
17819
17821
  "select-all": t.selectAll,
17820
17822
  "total-count": t.totalCount,
@@ -18183,14 +18185,14 @@ const m$ = {
18183
18185
  "#475569"
18184
18186
  // slate
18185
18187
  ];
18186
- function DC(e) {
18188
+ function BC(e) {
18187
18189
  let a = 5381;
18188
18190
  for (let t = 0; t < e.length; t++)
18189
18191
  a = (a << 5) + a + e.charCodeAt(t) >>> 0;
18190
18192
  return a;
18191
18193
  }
18192
- function Bt(e) {
18193
- return e ? eo[DC(e) % eo.length] : "var(--primary-500)";
18194
+ function Dt(e) {
18195
+ return e ? eo[BC(e) % eo.length] : "var(--primary-500)";
18194
18196
  }
18195
18197
  const Tn = "#ffffff", Ci = "#18181b";
18196
18198
  function _i(e) {
@@ -18209,13 +18211,13 @@ function ki([e, a, t]) {
18209
18211
  };
18210
18212
  return 0.2126 * l(e) + 0.7152 * l(a) + 0.0722 * l(t);
18211
18213
  }
18212
- const to = (e, a) => (Math.max(e, a) + 0.05) / (Math.min(e, a) + 0.05), BC = ki(_i(Ci));
18214
+ const to = (e, a) => (Math.max(e, a) + 0.05) / (Math.min(e, a) + 0.05), DC = ki(_i(Ci));
18213
18215
  function Ei(e) {
18214
18216
  if (!e) return Tn;
18215
18217
  const a = _i(e);
18216
18218
  if (!a) return Tn;
18217
18219
  const t = ki(a);
18218
- return to(t, 1) >= to(t, BC) ? Tn : Ci;
18220
+ return to(t, 1) >= to(t, DC) ? Tn : Ci;
18219
18221
  }
18220
18222
  function Vn(e, a) {
18221
18223
  return a ? {
@@ -18246,11 +18248,11 @@ const PC = ["aria-label", "onKeydown"], VC = {
18246
18248
  },
18247
18249
  emits: ["select", "move-start", "resize-start"],
18248
18250
  setup(e, { emit: a }) {
18249
- const t = e, l = a, r = D(null);
18251
+ const t = e, l = a, r = B(null);
18250
18252
  function i() {
18251
18253
  l("select", r.value?.getBoundingClientRect() ?? null);
18252
18254
  }
18253
- 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(
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(
18254
18256
  () => d.value ? Vn(c.value, !0) : { background: c.value, color: `var(--vc-scheduler-event-ink, ${Ei(c.value)})` }
18255
18257
  ), v = y(() => {
18256
18258
  const { title: b, start: p, end: m } = t.event, h = Te(p, "PP"), f = Te(new Date(m.getTime() - 1), "PP");
@@ -18384,7 +18386,7 @@ const PC = ["aria-label", "onKeydown"], VC = {
18384
18386
  setup(e, { emit: a }) {
18385
18387
  const t = e, l = a, r = y(() => t.date ? Te(t.date, "PPP") : ""), i = y(
18386
18388
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
18387
- ), o = D(null);
18389
+ ), o = B(null);
18388
18390
  let c = null;
18389
18391
  const d = () => $e(() => o.value?.querySelector("button")?.focus());
18390
18392
  return oe(
@@ -18548,7 +18550,7 @@ const o_ = { class: "vc-scheduler__qi-title" }, i_ = ["aria-label", "onClick"],
18548
18550
  setup(e, { emit: a }) {
18549
18551
  const t = e, l = a, r = y(
18550
18552
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
18551
- ), i = y(() => t.event ? t.event.color ?? Bt(t.event.title) : ""), o = y(() => ({
18553
+ ), i = y(() => t.event ? t.event.color ?? Dt(t.event.title) : ""), o = y(() => ({
18552
18554
  background: `color-mix(in srgb, ${i.value} 14%, var(--additional-50, #fff))`,
18553
18555
  color: "var(--neutrals-900)"
18554
18556
  })), c = y(() => ({ background: i.value })), d = y(() => {
@@ -18683,7 +18685,7 @@ function g_(e) {
18683
18685
  const r = [[], [], [], [], [], []], i = Ge(e.monthRange.value.start);
18684
18686
  for (const o of e.events.value) {
18685
18687
  if (!a(o)) continue;
18686
- const c = Dt(Ge(o.start), i), d = Dt(Ge(new Date(o.end.getTime() - 1)), i);
18688
+ const c = Bt(Ge(o.start), i), d = Bt(Ge(new Date(o.end.getTime() - 1)), i);
18687
18689
  for (let u = 0; u < 6; u++) {
18688
18690
  const v = u * 7, b = v + 6, p = Math.max(c, v), m = Math.min(d, b);
18689
18691
  p > m || r[u].push({
@@ -18716,7 +18718,7 @@ function b_(e) {
18716
18718
  });
18717
18719
  }
18718
18720
  function h_(e) {
18719
- const a = e.maxLanes ?? D(3), t = y(() => e.weekSegments.value.map(b_)), l = y(
18721
+ const a = e.maxLanes ?? B(3), t = y(() => e.weekSegments.value.map(b_)), l = y(
18720
18722
  () => t.value.map((i) => i.filter((o) => o.lane < a.value))
18721
18723
  ), r = y(
18722
18724
  () => t.value.map((i) => {
@@ -18759,7 +18761,7 @@ function Si(e) {
18759
18761
  return { click: i, cancel: o };
18760
18762
  }
18761
18763
  function w_(e) {
18762
- const a = D(null);
18764
+ const a = B(null);
18763
18765
  let t = null, l = null, r = null;
18764
18766
  const i = (h, f) => {
18765
18767
  const k = e.dayFromPoint(h, f);
@@ -18834,7 +18836,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18834
18836
  },
18835
18837
  emits: ["event-click", "create-intent", "event-update", "edit-intent", "event-delete"],
18836
18838
  setup(e, { emit: a }) {
18837
- const t = e, l = a, r = D(null), i = y(() => {
18839
+ const t = e, l = a, r = B(null), i = y(() => {
18838
18840
  const te = t.firstDayOfWeek % 7, me = At(Wl(t.focusedDate), { weekStartsOn: te });
18839
18841
  return { start: me, end: et(me, 42) };
18840
18842
  }), o = y(
@@ -18877,7 +18879,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18877
18879
  laidOut: p.laidOut.value[me] ?? [],
18878
18880
  overflow: p.overflowByDay.value[me] ?? []
18879
18881
  }))
18880
- ), h = D(null);
18882
+ ), h = B(null);
18881
18883
  function f(te) {
18882
18884
  return t.events.find((me) => me.id === te);
18883
18885
  }
@@ -18893,7 +18895,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18893
18895
  function S(te) {
18894
18896
  return b.timedByDay.value.get(Te(te, "yyyy-MM-dd")) ?? [];
18895
18897
  }
18896
- let T = null, I = null, V = null, B = !1;
18898
+ let T = null, I = null, V = null, D = !1;
18897
18899
  const O = /* @__PURE__ */ new Map(), M = Si({
18898
18900
  onIntent: (te, me) => {
18899
18901
  const se = O.get(me);
@@ -18909,17 +18911,17 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18909
18911
  t.editable && (T = "resize", u.beginResize(te, me, se.clientX, se.clientY), F());
18910
18912
  }
18911
18913
  function _(te, me) {
18912
- t.editable && (T = "create", I = te, V = me.currentTarget?.getBoundingClientRect() ?? null, B = !1, u.beginCreate(te), F());
18914
+ t.editable && (T = "create", I = te, V = me.currentTarget?.getBoundingClientRect() ?? null, D = !1, u.beginCreate(te), F());
18913
18915
  }
18914
18916
  function E(te) {
18915
- if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && I && !B)) {
18917
+ if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && I && !D)) {
18916
18918
  const me = d(te.clientX, te.clientY);
18917
- me && !Hl(me, I) && (B = !0);
18919
+ me && !Hl(me, I) && (D = !0);
18918
18920
  }
18919
18921
  }
18920
18922
  function N() {
18921
18923
  if (T === "create") {
18922
- if (B) {
18924
+ if (D) {
18923
18925
  M.cancel(), O.clear();
18924
18926
  const te = u.pending.value;
18925
18927
  te && l("create-intent", { start: te.start, end: te.end, allDay: !0, anchorRect: V, kind: "drag" });
@@ -18927,7 +18929,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18927
18929
  const te = Te(I, "yyyy-MM-dd");
18928
18930
  O.set(te, { date: I, rect: V }), M.click(te);
18929
18931
  }
18930
- u.cancel(), I = null, V = null, B = !1;
18932
+ u.cancel(), I = null, V = null, D = !1;
18931
18933
  } else
18932
18934
  u.commit();
18933
18935
  T = null, z();
@@ -18941,7 +18943,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18941
18943
  Rt(() => {
18942
18944
  z(), M.cancel(), O.clear();
18943
18945
  });
18944
- const K = D(!1), Z = D(null), de = D(null);
18946
+ const K = B(!1), Z = B(null), de = B(null);
18945
18947
  function Y(te, me) {
18946
18948
  Z.value = te, de.value = me, K.value = !0;
18947
18949
  }
@@ -18957,7 +18959,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
18957
18959
  function ne(te, me = null) {
18958
18960
  h.value = te.id, l("event-click", te), K.value = !1, t.quickInfo && $e(() => W(te, me ?? de.value));
18959
18961
  }
18960
- const ee = D(!1), G = D(null), ke = D(null);
18962
+ const ee = B(!1), G = B(null), ke = B(null);
18961
18963
  function W(te, me) {
18962
18964
  G.value = te, ke.value = me, ee.value = !0;
18963
18965
  }
@@ -19017,7 +19019,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19017
19019
  }, [
19018
19020
  w("span", {
19019
19021
  class: "vc-scheduler__timed-chip-dot",
19020
- style: he({ background: Re.color ?? n(Bt)(Re.title) })
19022
+ style: he({ background: Re.color ?? n(Dt)(Re.title) })
19021
19023
  }, null, 4),
19022
19024
  w("span", S_, U(n(Te)(Re.start, "HH:mm")) + " " + U(Re.title), 1),
19023
19025
  Re.recurrenceId || Re.recurrence ? (s(), g("span", $_, "↻")) : L("", !0)
@@ -19068,7 +19070,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19068
19070
  }, L_ = {
19069
19071
  key: 1,
19070
19072
  class: "vc-scheduler__agenda-list"
19071
- }, 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_ = {
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_ = {
19072
19074
  key: 0,
19073
19075
  class: "vc-scheduler__agenda-span"
19074
19076
  }, F_ = {
@@ -19098,12 +19100,12 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19098
19100
  return i(m) ? t("VC_SCHEDULER.ALL_DAY") : Hl(m.start, m.end) ? Te(m.start, "p") : Te(m.start, "MMM d, p");
19099
19101
  }
19100
19102
  function d(m, h) {
19101
- const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Dt(k, f) + 1;
19103
+ const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Bt(k, f) + 1;
19102
19104
  if (C <= 1) return "";
19103
- const S = Dt(Ge(h), f) + 1;
19105
+ const S = Bt(Ge(h), f) + 1;
19104
19106
  return t("VC_SCHEDULER.DAY_N_OF_M", { n: S, total: C });
19105
19107
  }
19106
- const u = D(!1), v = D(null), b = D(null);
19108
+ const u = B(!1), v = B(null), b = B(null);
19107
19109
  function p(m, h) {
19108
19110
  r("event-click", m), l.quickInfo && (v.value = m, b.value = h.currentTarget?.getBoundingClientRect() ?? null, u.value = !0);
19109
19111
  }
@@ -19130,9 +19132,9 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19130
19132
  }, [
19131
19133
  w("span", {
19132
19134
  class: "vc-scheduler__agenda-dot",
19133
- style: he({ background: k.color ?? n(Bt)(k.title) })
19135
+ style: he({ background: k.color ?? n(Dt)(k.title) })
19134
19136
  }, null, 4),
19135
- w("span", B_, U(c(k)), 1),
19137
+ w("span", D_, U(c(k)), 1),
19136
19138
  w("span", P_, [
19137
19139
  H(m.$slots, "event", { event: k }, () => [
19138
19140
  fe(U(k.title), 1)
@@ -19140,7 +19142,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
19140
19142
  ]),
19141
19143
  d(k, f.date) ? (s(), g("span", V_, U(d(k, f.date)), 1)) : L("", !0),
19142
19144
  k.recurrenceId || k.recurrence ? (s(), g("span", F_, "↻")) : L("", !0)
19143
- ], 8, D_)
19145
+ ], 8, B_)
19144
19146
  ]))), 128))
19145
19147
  ])
19146
19148
  ]))), 128))
@@ -19220,10 +19222,10 @@ function W_(e) {
19220
19222
  endMs: Math.min(V.end.getTime(), T)
19221
19223
  }));
19222
19224
  return H_(I).map((V) => {
19223
- const B = (V.startMs - S) / no * m, O = Math.max((V.endMs - V.startMs) / no * m, z_);
19225
+ const D = (V.startMs - S) / no * m, O = Math.max((V.endMs - V.startMs) / no * m, z_);
19224
19226
  return {
19225
19227
  event: V.event,
19226
- top: B,
19228
+ top: D,
19227
19229
  height: O,
19228
19230
  leftPct: V.lane / V.laneCount * 100,
19229
19231
  widthPct: 100 / V.laneCount,
@@ -19234,7 +19236,7 @@ function W_(e) {
19234
19236
  }), u = y(() => d.value.some((p) => p.length > 0)), v = y(() => {
19235
19237
  if (!r.value.length) return [];
19236
19238
  const p = Ge(r.value[0]), m = r.value.length - 1, h = c(), f = e.events.value.filter(Fn).map((C) => {
19237
- 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);
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);
19238
19240
  return {
19239
19241
  event: C,
19240
19242
  startCol: I,
@@ -19323,7 +19325,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19323
19325
  return `${R.title}: ${Te(R.start, "PPp")} – ${Te(R.end, "PPp")}`;
19324
19326
  }
19325
19327
  function p(R) {
19326
- const A = R.event.color ?? Bt(R.event.title);
19328
+ const A = R.event.color ?? Dt(R.event.title);
19327
19329
  return {
19328
19330
  top: `${R.top}px`,
19329
19331
  height: `${R.height}px`,
@@ -19333,7 +19335,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19333
19335
  };
19334
19336
  }
19335
19337
  function m(R) {
19336
- const A = R.event.color ?? Bt(R.event.title);
19338
+ const A = R.event.color ?? Dt(R.event.title);
19337
19339
  return {
19338
19340
  top: `${R.row * ao + 2}px`,
19339
19341
  left: `calc(${R.startCol / v.dayCount.value * 100}% + 1px)`,
@@ -19341,14 +19343,14 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19341
19343
  ...Vn(A, R.past)
19342
19344
  };
19343
19345
  }
19344
- const h = D(null);
19346
+ const h = B(null);
19345
19347
  tt(() => {
19346
19348
  const R = h.value;
19347
19349
  if (!R) return;
19348
19350
  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);
19349
19351
  R.scrollTop = Math.max(0, _ - Nt / 2);
19350
19352
  });
19351
- const f = D(Date.now());
19353
+ const f = B(Date.now());
19352
19354
  let k;
19353
19355
  tt(() => {
19354
19356
  k = setInterval(() => f.value = Date.now(), 6e4);
@@ -19376,9 +19378,9 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19376
19378
  Rt(() => {
19377
19379
  T.cancel(), S.clear();
19378
19380
  });
19379
- const V = D(!1), B = D(null), O = D(null);
19381
+ const V = B(!1), D = B(null), O = B(null);
19380
19382
  function M(R, A) {
19381
- l("event-click", R), t.quickInfo && (B.value = R, O.value = A.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19383
+ l("event-click", R), t.quickInfo && (D.value = R, O.value = A.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19382
19384
  }
19383
19385
  return (R, A) => (s(), g("div", G_, [
19384
19386
  w("div", q_, [
@@ -19487,9 +19489,9 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19487
19489
  ])) : L("", !0),
19488
19490
  $(oa, {
19489
19491
  open: V.value,
19490
- event: B.value,
19492
+ event: D.value,
19491
19493
  "anchor-rect": O.value,
19492
- "can-edit": t.editable && !!B.value && t.isEventEditable(B.value),
19494
+ "can-edit": t.editable && !!D.value && t.isEventEditable(D.value),
19493
19495
  onClose: A[0] || (A[0] = (_) => V.value = !1),
19494
19496
  onEdit: A[1] || (A[1] = (_) => l("edit-intent", _)),
19495
19497
  onDelete: A[2] || (A[2] = (_) => l("event-delete", _))
@@ -19513,7 +19515,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19513
19515
  },
19514
19516
  emits: ["save", "more", "close"],
19515
19517
  setup(e, { emit: a }) {
19516
- const t = e, l = a, r = D(t.draft.title), i = D(null), o = y(
19518
+ const t = e, l = a, r = B(t.draft.title), i = B(null), o = y(
19517
19519
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
19518
19520
  ), c = y(() => r.value.trim().length > 0);
19519
19521
  oe(
@@ -19690,7 +19692,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19690
19692
  function V(A) {
19691
19693
  !o.recurrence || o.recurrence.end.type !== "until" || !A || (o.recurrence.end.until = A);
19692
19694
  }
19693
- function B(A) {
19695
+ function D(A) {
19694
19696
  if (!o.recurrence || o.recurrence.end.type !== "count") return;
19695
19697
  const _ = Math.trunc(Number(A));
19696
19698
  o.recurrence.end.count = Number.isFinite(_) && _ >= 1 ? _ : 1;
@@ -19827,7 +19829,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
19827
19829
  label: A.$t("VC_SCHEDULER.REPEAT_END_COUNT"),
19828
19830
  class: "vc-scheduler__editor-field",
19829
19831
  "data-test": "recur-end-count",
19830
- "onUpdate:modelValue": _[9] || (_[9] = (E) => B(E))
19832
+ "onUpdate:modelValue": _[9] || (_[9] = (E) => D(E))
19831
19833
  }, null, 8, ["model-value", "label"])) : L("", !0)
19832
19834
  ])
19833
19835
  ])) : L("", !0)
@@ -20162,7 +20164,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20162
20164
  function V() {
20163
20165
  u.open = !1, u.event = null;
20164
20166
  }
20165
- function B({ title: W }) {
20167
+ function D({ title: W }) {
20166
20168
  if (d.draft) {
20167
20169
  const { start: ae, end: re, allDay: ie, color: te } = d.draft;
20168
20170
  l("event-create", { start: ae, end: re, allDay: ie, title: W, color: te });
@@ -20235,12 +20237,12 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20235
20237
  month: "VC_SCHEDULER.MONTH",
20236
20238
  "timeline-day": "VC_SCHEDULER.TIMELINE_DAY",
20237
20239
  "timeline-week": "VC_SCHEDULER.TIMELINE_WEEK"
20238
- }, N = y(() => t.views.map((W) => ({ value: W, label: i(E[W]) }))), F = D(t.view ?? t.views[0] ?? "month"), z = y({
20240
+ }, N = y(() => t.views.map((W) => ({ value: W, label: i(E[W]) }))), F = B(t.view ?? t.views[0] ?? "month"), z = y({
20239
20241
  get: () => t.view ?? F.value,
20240
20242
  set: (W) => {
20241
20243
  F.value = W, l("update:view", W);
20242
20244
  }
20243
- }), K = D(t.date ?? /* @__PURE__ */ new Date()), Z = y({
20245
+ }), K = B(t.date ?? /* @__PURE__ */ new Date()), Z = y({
20244
20246
  get: () => t.date ?? K.value,
20245
20247
  set: (W) => {
20246
20248
  K.value = W, l("update:date", W);
@@ -20263,7 +20265,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20263
20265
  Z.value = W;
20264
20266
  }
20265
20267
  }), ke = (W) => t.isEventEditable ? t.isEventEditable(W) : !0;
20266
- return De(Lk, {
20268
+ return Be(Lk, {
20267
20269
  focusedDate: Z,
20268
20270
  view: z,
20269
20271
  editable: Ie(t, "editable"),
@@ -20377,7 +20379,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20377
20379
  open: d.open,
20378
20380
  anchorRect: d.anchorRect,
20379
20381
  draft: d.draft ?? o,
20380
- save: B,
20382
+ save: D,
20381
20383
  more: O,
20382
20384
  close: M
20383
20385
  }, () => [
@@ -20385,7 +20387,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
20385
20387
  open: d.open,
20386
20388
  "anchor-rect": d.anchorRect,
20387
20389
  draft: d.draft ?? o,
20388
- onSave: B,
20390
+ onSave: D,
20389
20391
  onMore: O,
20390
20392
  onClose: M
20391
20393
  }, null, 8, ["open", "anchor-rect", "draft"])
@@ -20444,7 +20446,7 @@ export {
20444
20446
  Zl as J,
20445
20447
  t$ as K,
20446
20448
  NS as L,
20447
- DS as M,
20449
+ BS as M,
20448
20450
  hC as N,
20449
20451
  Yl as O,
20450
20452
  jl as P,
@@ -20460,7 +20462,7 @@ export {
20460
20462
  u$ as Z,
20461
20463
  SS as _,
20462
20464
  ow as a,
20463
- Dc as a$,
20465
+ Bc as a$,
20464
20466
  zy as a0,
20465
20467
  ai as a1,
20466
20468
  l$ as a2,
@@ -20500,7 +20502,7 @@ export {
20500
20502
  CS as a_,
20501
20503
  ct as aa,
20502
20504
  cl as ab,
20503
- BS as ac,
20505
+ DS as ac,
20504
20506
  ta as ad,
20505
20507
  e$ as ae,
20506
20508
  ZS as af,
@@ -20572,7 +20574,7 @@ export {
20572
20574
  _c as bx,
20573
20575
  kS as by,
20574
20576
  Mc as bz,
20575
- Bl as c,
20577
+ Dl as c,
20576
20578
  nl as d,
20577
20579
  Nw as e,
20578
20580
  gi as f,
@@ -20591,7 +20593,7 @@ export {
20591
20593
  Ga as s,
20592
20594
  s$ as t,
20593
20595
  Zb as u,
20594
- Bn as v,
20596
+ Dn as v,
20595
20597
  vh as w,
20596
20598
  Oh as x,
20597
20599
  sb as y,