@vc-shell/framework 2.5.0-pr346.16b7d63 → 2.5.0-pr348.52b97ab

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-1gGJthvU.js → VcScheduler.vue_vue_type_script_setup_true_lang-BpQMYp61.js} +716 -701
  2. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BpQMYp61.js.map +1 -0
  3. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js → VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js} +448 -440
  4. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js.map +1 -0
  5. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-Ckjlhl5k.js} +63 -63
  6. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-Ckjlhl5k.js.map} +1 -1
  7. package/dist/dashboard/index.js +1 -1
  8. package/dist/framework.js +9 -9
  9. package/dist/shell/dashboard/draggable-dashboard/DraggableDashboard.vue.d.ts +5 -2
  10. package/dist/shell/dashboard/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
  11. package/dist/tsconfig.tsbuildinfo +1 -1
  12. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  13. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +9 -0
  14. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
  15. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +2 -0
  16. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts.map +1 -1
  17. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
  18. package/dist/ui/components/organisms/vc-auth-layout/vc-auth-layout.vue.d.ts.map +1 -1
  19. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  20. package/dist/ui/index.js +2 -2
  21. package/package.json +4 -4
  22. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-1gGJthvU.js.map +0 -1
  23. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { nextTick as Re, 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 I, 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 Mn, 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
- 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 Ln, t as In, n as qi, O as Ki, af as bo, M as Yi, U as Gn, E as ol, z as xn, w as ji, a3 as Xi, Z as ho, G as Qi, F as yo, s as Zi, a8 as Ji } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
3
- import { P as St, af as es, aR as ts, a as ls, X as Ve, H as il, l as Se, aP as wo, N as sl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as Vl, 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 Fl, 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 Ul, 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 gn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
4
- import { q as Ft, p as bn, o as ks, n as Ml, r as Es, m as Nn, 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";
1
+ import { nextTick as Re, 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 et, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as oo, provide as Be, createBlock as P, unref as n, withCtx as I, 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 Mn, useId as Pt, useSlots as ht, TransitionGroup as Un, toHandlers as Ml, 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
+ import { ab as zi, c as lt, x as Hi, d as uo, B as ol, 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 Ln, t as In, n as qi, O as Ki, af as bo, M as Yi, U as Gn, E as il, z as xn, w as ji, a3 as Xi, Z as ho, G as Qi, F as yo, s as Zi, a8 as Ji } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
3
+ import { P as St, af as es, aR as ts, a as ls, X as Ve, H as sl, l as Se, aP as wo, N as rl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as Vl, 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 Fl, 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 Ul, 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 gn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js";
4
+ import { q as Ft, p as bn, o as ks, n as Ll, r as Es, m as Nn, v as Tl, t as Oo, f as qn, w as Ss, _ as $s } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
5
5
  import { u as ze } from "./vendor-vue-i18n-LO-EJStU.js";
6
6
  import { s as zl, f as Kn, o as Yn, d as Rs } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
7
7
  import As from "../assets/d5f9664ebbfb104b.svg";
@@ -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 Ol, 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";
@@ -79,22 +79,22 @@ import { T as Qr } from "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
79
79
  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
- 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 Hl, i as oc } from "./vendor-vueuse-core-_wFDcFkI.js";
82
+ import { S as Il, N as Io, a as xl, M as ec, f as xo, G as tc, K as lc } from "./vendor-swiper-BgqGfw3Y.js";
83
+ import { h as No, d as Bo, o as nc, u as ac, a as Hl, 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
- import { v as rl, O as sc } from "./vendor-vueuse-components-B3XvEasa.js";
85
+ import { v as cl, O as sc } from "./vendor-vueuse-components-B3XvEasa.js";
86
86
  import { u as rc, j as cc } from "./vendor-vueuse-shared-CiuC98Kk.js";
87
87
  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 Wl, W as Ge, d as Dt, J as et, x as At, z as Gl, 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 Wl, W as Ge, d as Bt, J as tt, x as At, z as Gl, 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
- function xl(e) {
97
+ function nl(e) {
98
98
  Re(() => {
99
99
  const a = document.activeElement;
100
100
  if (!(!a || a === document.body || a === document.documentElement)) return;
@@ -175,38 +175,38 @@ function Oc() {
175
175
  }
176
176
  const Sa = lt("notification-store");
177
177
  function Mc(e) {
178
- const a = /* @__PURE__ */ new Map(), t = D([]), l = D([]), r = /* @__PURE__ */ new Map();
178
+ const a = /* @__PURE__ */ new Map(), t = B([]), l = B([]), r = /* @__PURE__ */ new Map();
179
179
  let i = 0;
180
- const o = D(null), c = Oc().handle, d = new zi(), u = y(() => t.value.filter((x) => x.isNew).length), v = y(() => u.value > 0);
180
+ const o = B(null), c = Oc().handle, d = new zi(), u = y(() => t.value.filter((x) => x.isNew).length), v = y(() => u.value > 0);
181
181
  function b(x, V) {
182
182
  a.set(x, V);
183
183
  }
184
184
  function p(x, V) {
185
185
  if (V?.broadcast && o.value && !o.value(x) || x.notifyType && $c.includes(x.notifyType))
186
186
  return;
187
- let B = x.isNew;
187
+ let D = x.isNew;
188
188
  const O = t.value.findIndex((A) => A.id === x.id);
189
189
  if (O !== -1) {
190
190
  const A = t.value[O];
191
- B = A.isNew, Object.assign(A, x), A.isNew = B;
191
+ D = A.isNew, Object.assign(A, x), A.isNew = D;
192
192
  } else
193
193
  t.value.push({ ...x });
194
194
  const M = l.value.findIndex((A) => A.id === x.id);
195
195
  if (M !== -1) {
196
196
  const A = l.value[M];
197
- Object.assign(A, x), A.isNew = B;
197
+ Object.assign(A, x), A.isNew = D;
198
198
  } else
199
199
  l.value.push({ ...x });
200
200
  const R = x.notifyType ? a.get(x.notifyType) : void 0;
201
- if (R && B && c(x, R), B && x.notifyType)
201
+ if (R && D && c(x, R), D && x.notifyType)
202
202
  for (const A of r.values())
203
203
  A.types.includes(x.notifyType) && (A.filter && !A.filter(x) || A.handler?.(x));
204
204
  }
205
205
  function m(x) {
206
206
  const V = t.value.find((O) => O.id === x.id);
207
207
  V && (V.isNew = !1);
208
- const B = l.value.find((O) => O.id === x.id);
209
- B && (B.isNew = !1);
208
+ const D = l.value.find((O) => O.id === x.id);
209
+ D && (D.isNew = !1);
210
210
  }
211
211
  async function h() {
212
212
  t.value.forEach((x) => {
@@ -222,8 +222,8 @@ function Mc(e) {
222
222
  }
223
223
  async function f(x = 10) {
224
224
  try {
225
- const V = { take: x }, B = await d.searchPushNotification(V);
226
- t.value = B.notifyEvents ?? [];
225
+ const V = { take: x }, D = await d.searchPushNotification(V);
226
+ t.value = D.notifyEvents ?? [];
227
227
  } catch (V) {
228
228
  throw Sa.error("loadHistory failed:", V), V;
229
229
  }
@@ -263,14 +263,14 @@ function Mc(e) {
263
263
  clearBroadcastFilter: T
264
264
  };
265
265
  }
266
- let hl = null;
266
+ let yl = null;
267
267
  function ql() {
268
268
  if (Tt()) {
269
269
  const e = Ce(Hi, null);
270
270
  if (e)
271
- return hl = e, e;
271
+ return yl = e, e;
272
272
  }
273
- return hl || (hl = Mc()), hl;
273
+ return yl || (yl = Mc()), yl;
274
274
  }
275
275
  function _S(e) {
276
276
  const a = /* @__PURE__ */ new Map();
@@ -367,16 +367,16 @@ function Ra(e) {
367
367
  if (e)
368
368
  return e.replace(/^\/+|\/+$/g, "") || void 0;
369
369
  }
370
- function Dc(e) {
370
+ function Bc(e) {
371
371
  const a = e.currentRoute.value.params;
372
372
  return Object.values(a).find((t) => typeof t == "string" && t) || "";
373
373
  }
374
- function Bc(e, a) {
374
+ function Dc(e, a) {
375
375
  let t = 0;
376
376
  function l(r) {
377
377
  if (t > 0) return;
378
378
  const i = a();
379
- i && e[r](Nc(Dc(e), i.blades.value));
379
+ i && e[r](Nc(Bc(e), i.blades.value));
380
380
  }
381
381
  return {
382
382
  push() {
@@ -396,7 +396,7 @@ function Bc(e, a) {
396
396
  };
397
397
  }
398
398
  function Ho(e, a) {
399
- const t = Bc(e, () => a);
399
+ const t = Dc(e, () => a);
400
400
  function l() {
401
401
  t.push();
402
402
  }
@@ -476,7 +476,7 @@ function Zn(e) {
476
476
  moreButtonWidth: r,
477
477
  calculationStrategy: i = "forward",
478
478
  initialItemWidth: o = 50
479
- } = 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);
479
+ } = 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);
480
480
  let h = null;
481
481
  const f = /* @__PURE__ */ new Set(), k = () => u.value ?? r, C = () => {
482
482
  if (!a.value) return;
@@ -519,7 +519,7 @@ function Zn(e) {
519
519
  E > 0 && d.value.set(_, E);
520
520
  }
521
521
  }), x();
522
- }, B = () => {
522
+ }, D = () => {
523
523
  const R = new Set(t.value.map(l));
524
524
  for (const A of d.value.keys())
525
525
  R.has(A) || d.value.delete(A);
@@ -558,11 +558,11 @@ function Zn(e) {
558
558
  }), oe(
559
559
  () => t.value.map(l).join("\0"),
560
560
  () => {
561
- B(), Re(() => {
561
+ D(), Re(() => {
562
562
  O();
563
563
  });
564
564
  }
565
- ), tt(() => {
565
+ ), et(() => {
566
566
  Re(() => {
567
567
  V(), O();
568
568
  });
@@ -582,11 +582,11 @@ function Zn(e) {
582
582
  };
583
583
  }
584
584
  function Yl(e = {}) {
585
- 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" });
585
+ 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" });
586
586
  function u() {
587
587
  i.value = !i.value;
588
588
  }
589
- return Do(l, () => {
589
+ return Bo(l, () => {
590
590
  l.value && (r.value = l.value.scrollHeight);
591
591
  }), {
592
592
  contentRef: l,
@@ -600,7 +600,7 @@ function Yl(e = {}) {
600
600
  }
601
601
  const zc = lt("use-table-sort");
602
602
  function RS(e) {
603
- const a = D(e?.initialProperty || null), t = D(e?.initialDirection || null), l = y({
603
+ const a = B(e?.initialProperty || null), t = B(e?.initialDirection || null), l = y({
604
604
  get: () => ({
605
605
  property: a.value,
606
606
  direction: t.value
@@ -638,7 +638,7 @@ function AS(e) {
638
638
  return a(f);
639
639
  const k = f[a];
640
640
  return typeof k == "string" ? k : void 0;
641
- }, l = D([]), r = D(!1), i = y(() => l.value.flatMap((f) => {
641
+ }, l = B([]), r = B(!1), i = y(() => l.value.flatMap((f) => {
642
642
  const k = t(f);
643
643
  return k ? [k] : [];
644
644
  })), o = y(() => l.value.length), c = y(() => l.value.length > 0), d = y(() => new Set(i.value));
@@ -681,7 +681,7 @@ function Wc(e) {
681
681
  if (e === -1) return "DESC";
682
682
  }
683
683
  function TS(e) {
684
- const a = e?.initialField, t = Hc(e?.initialDirection), l = D(a), r = D(t), i = y(() => {
684
+ const a = e?.initialField, t = Hc(e?.initialDirection), l = B(a), r = B(t), i = y(() => {
685
685
  const c = Wc(r.value);
686
686
  if (!(!l.value || !c))
687
687
  return `${l.value}:${c}`;
@@ -708,7 +708,7 @@ function TS(e) {
708
708
  }
709
709
  const Ta = lt("use-data-table-pagination");
710
710
  function OS(e) {
711
- 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));
711
+ 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));
712
712
  function o(b) {
713
713
  t.value = b, e.onPageChange?.({ page: b, skip: r.value });
714
714
  }
@@ -753,7 +753,7 @@ function OS(e) {
753
753
  });
754
754
  }
755
755
  function MS(e) {
756
- const a = D(e?.initial), t = e?.stateKey;
756
+ const a = B(e?.initial), t = e?.stateKey;
757
757
  if (t) {
758
758
  const l = Ce(Kl, void 0);
759
759
  if (l) {
@@ -800,14 +800,14 @@ function LS(e) {
800
800
  (!V || V !== h) && (V && V !== h && wn.warn(
801
801
  `Global component '${v}' already exists and is different. Overwriting with new blade component.`
802
802
  ), e.component(v, h));
803
- const B = {
803
+ const D = {
804
804
  component: h,
805
805
  route: f,
806
806
  isWorkspace: k,
807
807
  routable: C,
808
808
  permissions: S
809
809
  };
810
- x.set(v, B), a.value = x, f && t.set(l(f), v), f && T && es({
810
+ x.set(v, D), a.value = x, f && t.set(l(f), v), f && T && es({
811
811
  ...T,
812
812
  url: f,
813
813
  routeId: v,
@@ -871,22 +871,22 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
871
871
  },
872
872
  emits: ["close", "parentCall"],
873
873
  setup(e, { emit: a }) {
874
- const t = e, l = a, r = Yc(), 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);
875
- De(
876
- al,
874
+ const t = e, l = a, r = Yc(), 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);
875
+ Be(
876
+ ol,
877
877
  y(() => t.descriptor)
878
- ), De(
878
+ ), Be(
879
879
  Wn,
880
880
  y(() => ({
881
881
  maximized: o.value,
882
882
  breadcrumbs: v.value
883
883
  }))
884
- ), De(vo, o), De(fo, c), De(
884
+ ), Be(vo, o), Be(fo, c), Be(
885
885
  mo,
886
886
  y(() => t.backButton)
887
887
  );
888
888
  const b = Ut();
889
- De(
889
+ Be(
890
890
  Kl,
891
891
  b ? Fc({
892
892
  descriptor: y(() => t.descriptor),
@@ -953,7 +953,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
953
953
  },
954
954
  setup(e) {
955
955
  const a = e;
956
- De(ls, {
956
+ Be(ls, {
957
957
  size: Ie(a, "size"),
958
958
  attached: Ie(a, "attached")
959
959
  });
@@ -1058,12 +1058,12 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1058
1058
  },
1059
1059
  emits: ["update:modelValue", "item-click", "open", "close"],
1060
1060
  setup(e, { emit: a }) {
1061
- 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({
1061
+ 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({
1062
1062
  to: y(() => t.teleportTo)
1063
1063
  }), p = y(() => t.teleport ?? t.floating), m = y({
1064
1064
  get: () => t.modelValue,
1065
1065
  set: (Y) => l("update:modelValue", Y)
1066
- }), { x: h, y: f, resolvedPlacement: k, resolvedStrategy: C } = il(d, u, {
1066
+ }), { x: h, y: f, resolvedPlacement: k, resolvedStrategy: C } = sl(d, u, {
1067
1067
  placement: y(() => t.placement),
1068
1068
  strategy: y(() => t.floating ? "fixed" : "absolute"),
1069
1069
  offset: y(() => t.offset),
@@ -1081,7 +1081,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1081
1081
  left: `${h.value ?? 0}px`,
1082
1082
  zIndex: t.zIndex,
1083
1083
  width: "max-content"
1084
- } : {}), x = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), V = y(() => t.role === "listbox" ? "option" : "menuitem"), B = y(() => {
1084
+ } : {}), x = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), V = y(() => t.role === "listbox" ? "option" : "menuitem"), D = y(() => {
1085
1085
  if (!(v.value < 0 || v.value >= t.items.length))
1086
1086
  return R(v.value);
1087
1087
  }), O = [
@@ -1216,7 +1216,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1216
1216
  }),
1217
1217
  role: e.role,
1218
1218
  "aria-label": e.ariaLabel,
1219
- "aria-activedescendant": B.value,
1219
+ "aria-activedescendant": D.value,
1220
1220
  tabindex: "0",
1221
1221
  onKeydown: Z
1222
1222
  }, [
@@ -1256,7 +1256,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1256
1256
  ])
1257
1257
  ], 2)
1258
1258
  ], 46, lu)), [
1259
- [n(rl), O]
1259
+ [n(cl), O]
1260
1260
  ]) : L("", !0)
1261
1261
  ]),
1262
1262
  _: 3
@@ -1312,7 +1312,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1312
1312
  collapsed: { type: Boolean, default: !1 }
1313
1313
  },
1314
1314
  setup(e) {
1315
- const a = e, t = D(null), l = D(!1), r = Zn({
1315
+ const a = e, t = B(null), l = B(!1), r = Zn({
1316
1316
  containerRef: t,
1317
1317
  items: Ie(a, "items"),
1318
1318
  getItemKey: (b) => b.id,
@@ -1405,7 +1405,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1405
1405
  onBack: { type: Function }
1406
1406
  },
1407
1407
  setup(e) {
1408
- const a = e, t = D(), l = D(!1), r = () => {
1408
+ const a = e, t = B(), l = B(!1), r = () => {
1409
1409
  a.onBack();
1410
1410
  };
1411
1411
  nc(
@@ -1445,7 +1445,7 @@ const jc = ts, Xc = /* @__PURE__ */ Q({
1445
1445
  ]),
1446
1446
  _: 1
1447
1447
  }, 8, ["items"])), [
1448
- [n(rl), i]
1448
+ [n(cl), i]
1449
1449
  ]);
1450
1450
  }
1451
1451
  }), La = {
@@ -1527,7 +1527,7 @@ function Jn(e, a) {
1527
1527
  function Ql(e) {
1528
1528
  return e === void 0 ? !1 : bt(e) ? !!xe(e) : !!e;
1529
1529
  }
1530
- const pu = Ml.escape, gu = Ml.mod.backslash;
1530
+ const pu = Ll.escape, gu = Ll.mod.backslash;
1531
1531
  function bu(e) {
1532
1532
  return !!(e.mod || e.ctrl || e.meta || e.alt || e.shift);
1533
1533
  }
@@ -1583,16 +1583,16 @@ const wu = ["aria-label"], Cu = {
1583
1583
  __name: "vc-blade-navigation-new",
1584
1584
  setup(e) {
1585
1585
  const { t: a } = ze(), t = Ft(), l = zo(), r = Ut(), { syncUrlReplace: i } = Ho(r, t);
1586
- tt(() => {
1586
+ et(() => {
1587
1587
  t.blades.value.length !== 0 && Re(() => {
1588
1588
  i();
1589
1589
  });
1590
1590
  });
1591
- 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);
1592
- function f(B, O) {
1593
- return B.visible ? O >= v.value - h.value : !1;
1591
+ 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);
1592
+ function f(D, O) {
1593
+ return D.visible ? O >= v.value - h.value : !1;
1594
1594
  }
1595
- const { getToolbarItems: k } = wo(), { hasAccess: C } = sl(), S = hu({
1595
+ const { getToolbarItems: k } = wo(), { hasAccess: C } = rl(), S = hu({
1596
1596
  isMac: Es(),
1597
1597
  // Shortcuts act on the blade holding focus, not on whatever sits on top of
1598
1598
  // the stack (VCST-5680). Read live: focus moves without the stack changing.
@@ -1601,28 +1601,28 @@ const wu = ["aria-label"], Cu = {
1601
1601
  t.activeBlade.value,
1602
1602
  typeof document < "u" ? document.activeElement : null
1603
1603
  ),
1604
- getToolbarItems: (B) => k(B),
1604
+ getToolbarItems: (D) => k(D),
1605
1605
  isMobile: () => b.value,
1606
- isEnabled: (B) => C(B.permissions) && Jn(B.isVisible) && !Ql(B.disabled),
1607
- closeBlade: (B) => t.closeBlade(B),
1608
- toggleMaximized: (B) => t.toggleMaximized(B),
1606
+ isEnabled: (D) => C(D.permissions) && Jn(D.isVisible) && !Ql(D.disabled),
1607
+ closeBlade: (D) => t.closeBlade(D),
1608
+ toggleMaximized: (D) => t.toggleMaximized(D),
1609
1609
  isModalOpen: () => typeof document < "u" && document.querySelector('[aria-modal="true"]') !== null
1610
1610
  });
1611
1611
  ac(window, "keydown", S);
1612
- async function T(B) {
1613
- await t.closeBlade(B);
1612
+ async function T(D) {
1613
+ await t.closeBlade(D);
1614
1614
  }
1615
- async function x(B, O) {
1615
+ async function x(D, O) {
1616
1616
  try {
1617
- const M = await l.callParent(O, B.method, B.args);
1618
- B.callback?.(M);
1617
+ const M = await l.callParent(O, D.method, D.args);
1618
+ D.callback?.(M);
1619
1619
  } catch (M) {
1620
1620
  console.warn("[VcBladeNavigation] Parent call failed:", M);
1621
1621
  }
1622
1622
  }
1623
- function V(B) {
1624
- const O = o.value[B];
1625
- if (!(B <= 0 || !O))
1623
+ function V(D) {
1624
+ const O = o.value[D];
1625
+ if (!(D <= 0 || !O))
1626
1626
  return io(mu, {
1627
1627
  breadcrumbs: t.trailFor(O.id),
1628
1628
  onBack: async () => {
@@ -1630,7 +1630,7 @@ const wu = ["aria-label"], Cu = {
1630
1630
  }
1631
1631
  });
1632
1632
  }
1633
- return (B, O) => (s(), g("div", {
1633
+ return (D, O) => (s(), g("div", {
1634
1634
  class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
1635
1635
  role: "region",
1636
1636
  "aria-label": n(a)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
@@ -1668,7 +1668,7 @@ function Cn(e) {
1668
1668
  const Eu = { class: "vc-popup__center" }, Su = ["aria-label"], $u = { class: "vc-popup__content" }, Ru = {
1669
1669
  key: 0,
1670
1670
  class: "vc-popup__footer"
1671
- }, cl = /* @__PURE__ */ Q({
1671
+ }, ul = /* @__PURE__ */ Q({
1672
1672
  __name: "vc-popup",
1673
1673
  props: {
1674
1674
  modelValue: { type: Boolean, default: void 0 },
@@ -1683,7 +1683,7 @@ const Eu = { class: "vc-popup__center" }, Su = ["aria-label"], $u = { class: "vc
1683
1683
  },
1684
1684
  emits: ["close", "update:modelValue"],
1685
1685
  setup(e, { emit: a }) {
1686
- const t = e, l = a, i = `vc-popup-title-${Tt()?.uid ?? 0}`, { isMobile: o } = Ve(), c = D(null), d = {
1686
+ const t = e, l = a, i = `vc-popup-title-${Tt()?.uid ?? 0}`, { isMobile: o } = Ve(), c = B(null), d = {
1687
1687
  warning: { icon: "lucide-triangle-alert", className: "vc-popup__icon--warning" },
1688
1688
  error: { icon: "lucide-circle-alert", className: "vc-popup__icon--error" },
1689
1689
  success: { icon: "lucide-circle-check", className: "vc-popup__icon--success" },
@@ -1706,7 +1706,7 @@ const Eu = { class: "vc-popup__center" }, Su = ["aria-label"], $u = { class: "vc
1706
1706
  appear: "",
1707
1707
  show: v.value,
1708
1708
  as: "template",
1709
- onAfterLeave: V[0] || (V[0] = (B) => n(u)?.finalize())
1709
+ onAfterLeave: V[0] || (V[0] = (D) => n(u)?.finalize())
1710
1710
  }, {
1711
1711
  default: I(() => [
1712
1712
  $(n(yc), {
@@ -1851,7 +1851,7 @@ const Tu = /* @__PURE__ */ Q({
1851
1851
  emits: ["finalize"],
1852
1852
  setup(e, { emit: a }) {
1853
1853
  const t = e, l = a;
1854
- return De(qo, {
1854
+ return Be(qo, {
1855
1855
  closing: y(() => t.closing),
1856
1856
  finalize: () => l("finalize")
1857
1857
  }), (r, i) => H(r.$slots, "default");
@@ -1973,7 +1973,7 @@ function jo(e) {
1973
1973
  T !== void 0 && (clearTimeout(T), l.delete(S));
1974
1974
  }
1975
1975
  function b(S) {
1976
- xl(() => S?.isConnected ? S : _c());
1976
+ nl(() => S?.isConnected ? S : _c());
1977
1977
  }
1978
1978
  function p(S) {
1979
1979
  const T = o(S);
@@ -1989,43 +1989,43 @@ function jo(e) {
1989
1989
  l.set(T, V);
1990
1990
  }
1991
1991
  function m(S, T, x, 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(x, 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 x = Cn("warning");
2010
2010
  return x ? new Promise((V) => {
2011
- const B = C({
2011
+ const D = C({
2012
2012
  component: x,
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
  }) : (_n.error("Popup preset 'warning' not registered. Ensure shell popup plugin is installed."), Promise.resolve(!1));
2030
2030
  }
2031
2031
  function f(S, T) {
@@ -2078,7 +2078,7 @@ function Nu(e) {
2078
2078
  component: Mn(oo(e.component))
2079
2079
  };
2080
2080
  }
2081
- const Du = { class: "vc-blade-header__status-container" }, Bu = {
2081
+ const Bu = { class: "vc-blade-header__status-container" }, Du = {
2082
2082
  key: 1,
2083
2083
  class: "vc-blade-header__icon"
2084
2084
  }, Pu = {
@@ -2109,31 +2109,35 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2109
2109
  },
2110
2110
  emits: ["close", "expand", "collapse"],
2111
2111
  setup(e, { emit: a }) {
2112
- const t = e, l = a, { t: r } = ze(), { isMac: i } = Oo(), o = y(() => Nn(Ml.escape, i)), c = y(() => Nn(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(() => Nn(Ll.escape, i)), c = y(() => Nn(Ll.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 } = sl(m, h, {
2113
2113
  placement: "bottom-start",
2114
2114
  middleware: () => [zl()]
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
+ );
2121
2125
  function T() {
2122
- t.closable && (S(), l("expand"));
2126
+ t.closable && l("expand");
2123
2127
  }
2124
2128
  function x() {
2125
- t.closable && (S(), l("collapse"));
2129
+ t.closable && l("collapse");
2126
2130
  }
2127
2131
  function V() {
2128
2132
  t.closable && l("close");
2129
2133
  }
2130
- return (B, O) => (s(), g("div", {
2134
+ return (D, O) => (s(), g("div", {
2131
2135
  class: X(["vc-blade-header", {
2132
2136
  "vc-blade-header--mobile": n(v)
2133
2137
  }])
2134
2138
  }, [
2135
- H(B.$slots, "prepend"),
2136
- w("div", Du, [
2139
+ H(D.$slots, "prepend"),
2140
+ w("div", Bu, [
2137
2141
  !e.loading && typeof e.modified < "u" ? (s(), g("div", {
2138
2142
  key: 0,
2139
2143
  ref_key: "tooltipIconRef",
@@ -2152,10 +2156,10 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2152
2156
  ref: h,
2153
2157
  style: he(n(k)),
2154
2158
  class: "vc-blade-header__tooltip"
2155
- }, U(e.modified ? B.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.UNSAVED_CHANGES") : B.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.NO_CHANGES")), 5)) : L("", !0)
2159
+ }, U(e.modified ? D.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.UNSAVED_CHANGES") : D.$t("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.NO_CHANGES")), 5)) : L("", !0)
2156
2160
  ], 8, ["to"]))
2157
2161
  ], 34)) : L("", !0),
2158
- e.loading ? (s(), g("div", Bu, [
2162
+ e.loading ? (s(), g("div", Du, [
2159
2163
  $(n(we), {
2160
2164
  variant: "circle",
2161
2165
  width: 24,
@@ -2190,8 +2194,8 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2190
2194
  }, U(e.title), 11, Hu),
2191
2195
  e.subtitle ? (s(), g("div", Wu, U(e.subtitle), 1)) : L("", !0)
2192
2196
  ])),
2193
- !e.loading && B.$slots.actions ? (s(), g("div", Gu, [
2194
- H(B.$slots, "actions")
2197
+ !e.loading && D.$slots.actions ? (s(), g("div", Gu, [
2198
+ H(D.$slots, "actions")
2195
2199
  ])) : L("", !0)
2196
2200
  ]),
2197
2201
  !n(v) && e.closable ? (s(), g("div", {
@@ -2207,7 +2211,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2207
2211
  tooltip: I(() => [
2208
2212
  w("span", Ku, [
2209
2213
  fe(U(n(r)("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.RESTORE")) + " ", 1),
2210
- $(Al, {
2214
+ $(Tl, {
2211
2215
  parts: c.value.parts,
2212
2216
  separated: !n(i)
2213
2217
  }, null, 8, ["parts", "separated"])
@@ -2238,7 +2242,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2238
2242
  tooltip: I(() => [
2239
2243
  w("span", ju, [
2240
2244
  fe(U(n(r)("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.MAXIMIZE")) + " ", 1),
2241
- $(Al, {
2245
+ $(Tl, {
2242
2246
  parts: c.value.parts,
2243
2247
  separated: !n(i)
2244
2248
  }, null, 8, ["parts", "separated"])
@@ -2267,7 +2271,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2267
2271
  tooltip: I(() => [
2268
2272
  w("span", Qu, [
2269
2273
  fe(U(n(r)("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.CLOSE")) + " ", 1),
2270
- $(Al, {
2274
+ $(Tl, {
2271
2275
  parts: o.value.parts,
2272
2276
  separated: !n(i)
2273
2277
  }, null, 8, ["parts", "separated"])
@@ -2415,7 +2419,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2415
2419
  },
2416
2420
  emits: ["header:click", "state:collapsed"],
2417
2421
  setup(e, { emit: a }) {
2418
- const t = Qe(), l = e, r = a, i = `vc-card-body-${Pt()}`, o = D();
2422
+ const t = Qe(), l = e, r = a, i = `vc-card-body-${Pt()}`, o = B();
2419
2423
  function c() {
2420
2424
  l.isCollapsable && (o.value = !o.value, r("state:collapsed", o.value)), r("header:click");
2421
2425
  }
@@ -2494,7 +2498,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2494
2498
  ], 2)
2495
2499
  ], 2));
2496
2500
  }
2497
- }), NS = ud, DS = /* @__PURE__ */ Q({
2501
+ }), NS = ud, BS = /* @__PURE__ */ Q({
2498
2502
  __name: "vc-col",
2499
2503
  props: {
2500
2504
  size: { default: 1 }
@@ -2507,7 +2511,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2507
2511
  H(a.$slots, "default")
2508
2512
  ], 4));
2509
2513
  }
2510
- }), BS = os, dd = ["aria-busy"], vd = { class: "tw-sr-only" }, fd = /* @__PURE__ */ Q({
2514
+ }), DS = os, dd = ["aria-busy"], vd = { class: "tw-sr-only" }, fd = /* @__PURE__ */ Q({
2511
2515
  __name: "vc-loading",
2512
2516
  props: {
2513
2517
  active: { type: Boolean }
@@ -2695,7 +2699,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2695
2699
  ])) : L("", !0)
2696
2700
  ], 42, kd));
2697
2701
  }
2698
- }), Dl = Rd, Ad = ["role", "aria-label"], Td = { class: "vc-banner__body" }, Od = {
2702
+ }), Bl = Rd, Ad = ["role", "aria-label"], Td = { class: "vc-banner__body" }, Od = {
2699
2703
  key: 0,
2700
2704
  class: "vc-banner__title"
2701
2705
  }, Md = {
@@ -2794,7 +2798,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2794
2798
  w("span", xd, U(e.name), 1)
2795
2799
  ], 10, Id));
2796
2800
  }
2797
- }), Dd = ["aria-label"], Bd = ["aria-hidden"], Pd = ["disabled", "aria-label", "tabindex", "onClick"], Vd = { class: "vc-blade-toolbar-mobile__action-label" }, Fd = {
2801
+ }), Bd = ["aria-label"], Dd = ["aria-hidden"], Pd = ["disabled", "aria-label", "tabindex", "onClick"], Vd = { class: "vc-blade-toolbar-mobile__action-label" }, Fd = {
2798
2802
  class: "vc-blade-toolbar-mobile__action-icon",
2799
2803
  "aria-hidden": "true"
2800
2804
  }, Ud = ["aria-label"], zd = {
@@ -2806,7 +2810,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2806
2810
  items: {}
2807
2811
  },
2808
2812
  setup(e) {
2809
- const a = e, t = D(!1);
2813
+ const a = e, t = B(!1);
2810
2814
  function l(b) {
2811
2815
  return b.title ? bt(b.title) ? xe(b.title) ?? "" : String(b.title) : "";
2812
2816
  }
@@ -2870,7 +2874,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2870
2874
  }, null, 8, ["icon"])
2871
2875
  ])
2872
2876
  ], 12, Pd))), 128))
2873
- ], 10, Bd),
2877
+ ], 10, Dd),
2874
2878
  $(Fe, {
2875
2879
  name: "toolbar-mobile-fab",
2876
2880
  mode: "out-in"
@@ -2918,7 +2922,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2918
2922
  ]),
2919
2923
  _: 1
2920
2924
  })
2921
- ], 8, Dd));
2925
+ ], 8, Bd));
2922
2926
  }
2923
2927
  }), Kd = ["data-test-id", "aria-keyshortcuts"], Yd = ["data-test-id"], jd = /* @__PURE__ */ Q({
2924
2928
  inheritAttrs: !1,
@@ -2937,7 +2941,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2937
2941
  onClick: {}
2938
2942
  },
2939
2943
  setup(e) {
2940
- const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() => Ql(a.disabled)), i = y(() => ({
2944
+ const a = e, { isMac: t } = Oo(), l = B(!1), r = y(() => Ql(a.disabled)), i = y(() => ({
2941
2945
  "vc-blade-toolbar-base-button--disabled": r.value || l.value,
2942
2946
  "vc-blade-toolbar-base-button--with-separator-left": a.separator === "left",
2943
2947
  "vc-blade-toolbar-base-button--with-separator-right": a.separator === "right",
@@ -2960,7 +2964,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
2960
2964
  placement: "bottom"
2961
2965
  }, {
2962
2966
  tooltip: I(() => [
2963
- $(Al, {
2967
+ $(Tl, {
2964
2968
  parts: o.value.parts,
2965
2969
  separated: !n(t)
2966
2970
  }, null, 8, ["parts", "separated"])
@@ -3017,7 +3021,7 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
3017
3021
  isExpanded: { type: Boolean }
3018
3022
  },
3019
3023
  setup(e) {
3020
- const a = e, t = D(!1), l = D(null), { visibleItems: r, hiddenItems: i, showMoreButton: o, recalculate: c, updateObserver: d } = Zn({
3024
+ const a = e, t = B(!1), l = B(null), { visibleItems: r, hiddenItems: i, showMoreButton: o, recalculate: c, updateObserver: d } = Zn({
3021
3025
  containerRef: l,
3022
3026
  items: Ie(a, "items"),
3023
3027
  getItemKey: (v) => v.id ?? `toolbar_item_${a.items.indexOf(v)}`,
@@ -3081,9 +3085,9 @@ const Du = { class: "vc-blade-header__status-container" }, Bu = {
3081
3085
  }
3082
3086
  }), Jd = "prop_toolbar_item_";
3083
3087
  function ev(e) {
3084
- const { hasAccess: a } = sl(), { registerToolbarItem: t, unregisterToolbarItem: l, getToolbarItems: r, updateToolbarItem: i } = wo({
3088
+ const { hasAccess: a } = rl(), { registerToolbarItem: t, unregisterToolbarItem: l, getToolbarItems: r, updateToolbarItem: i } = wo({
3085
3089
  autoCleanup: !1
3086
- }), { id: o } = qn(), c = y(() => (o.value ?? is).toLowerCase()), { isMobile: d } = Ve(), u = /* @__PURE__ */ new Set(), v = D(c.value);
3090
+ }), { id: o } = qn(), c = y(() => (o.value ?? is).toLowerCase()), { isMobile: d } = Ve(), u = /* @__PURE__ */ new Set(), v = B(c.value);
3087
3091
  function b(f, k) {
3088
3092
  const C = v.value, S = f.id || `${Jd}${C}_${k}`;
3089
3093
  return {
@@ -3223,7 +3227,7 @@ const rv = ["role"], cv = { class: "vc-blade-status-banners__text" }, uv = ["tit
3223
3227
  }, pv = {
3224
3228
  key: 0,
3225
3229
  class: "vc-blade-status-banners__text"
3226
- }, gv = ["onClick"], bv = ["title", "onClick"], yl = "__system-error__", Na = "__system-modified__", hv = /* @__PURE__ */ Q({
3230
+ }, gv = ["onClick"], bv = ["title", "onClick"], wl = "__system-error__", Na = "__system-modified__", hv = /* @__PURE__ */ Q({
3227
3231
  __name: "BladeStatusBanners",
3228
3232
  props: {
3229
3233
  modified: { type: Boolean }
@@ -3233,15 +3237,15 @@ const rv = ["role"], cv = { class: "vc-blade-status-banners__text" }, uv = ["tit
3233
3237
  props: {
3234
3238
  renderFn: { type: Function, required: !0 }
3235
3239
  },
3236
- setup(B) {
3237
- return () => B.renderFn();
3240
+ setup(D) {
3241
+ return () => D.renderFn();
3238
3242
  }
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 } = sv(l), {
3243
+ }), t = e, l = Ce(ol, 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 } = sv(l), {
3240
3244
  contentRef: b,
3241
3245
  isExpanded: p,
3242
3246
  wrapperStyle: m,
3243
3247
  toggle: h
3244
- } = Yl(), f = D(!1), k = u;
3248
+ } = Yl(), f = B(!1), k = u;
3245
3249
  async function C() {
3246
3250
  await v() && (f.value = !0, setTimeout(() => {
3247
3251
  f.value = !1;
@@ -3249,34 +3253,34 @@ const rv = ["role"], cv = { class: "vc-blade-status-banners__text" }, uv = ["tit
3249
3253
  }
3250
3254
  oe(
3251
3255
  [c, d],
3252
- ([B]) => {
3256
+ ([D]) => {
3253
3257
  if (!r) return;
3254
- const O = r.value.findIndex((M) => M.id === yl);
3255
- B && O === -1 ? r.value.push({
3256
- id: yl,
3258
+ const O = r.value.findIndex((M) => M.id === wl);
3259
+ D && O === -1 ? r.value.push({
3260
+ id: wl,
3257
3261
  variant: "danger",
3258
3262
  message: d.value,
3259
3263
  dismissible: !0,
3260
3264
  _system: !0
3261
- }) : B && O !== -1 ? r.value[O] = {
3265
+ }) : D && O !== -1 ? r.value[O] = {
3262
3266
  ...r.value[O],
3263
3267
  message: d.value
3264
- } : !B && O !== -1 && r.value.splice(O, 1);
3268
+ } : !D && O !== -1 && r.value.splice(O, 1);
3265
3269
  },
3266
3270
  { immediate: !0 }
3267
3271
  ), oe(
3268
3272
  () => t.modified,
3269
- (B) => {
3273
+ (D) => {
3270
3274
  if (!r) return;
3271
3275
  const O = r.value.findIndex((M) => M.id === Na);
3272
- B && O === -1 ? r.value.push({
3276
+ D && O === -1 ? r.value.push({
3273
3277
  id: Na,
3274
3278
  variant: "warning",
3275
3279
  icon: "lucide-pencil",
3276
3280
  message: o("COMPONENTS.ORGANISMS.VC_BLADE.UNSAVED_CHANGES"),
3277
3281
  dismissible: !1,
3278
3282
  _system: !0
3279
- }) : !B && O !== -1 && r.value.splice(O, 1);
3283
+ }) : !D && O !== -1 && r.value.splice(O, 1);
3280
3284
  },
3281
3285
  { immediate: !0 }
3282
3286
  );
@@ -3285,19 +3289,19 @@ const rv = ["role"], cv = { class: "vc-blade-status-banners__text" }, uv = ["tit
3285
3289
  warning: 1,
3286
3290
  info: 2,
3287
3291
  success: 3
3288
- }, T = y(() => r ? [...r.value].sort((B, O) => (S[B.variant] ?? 9) - (S[O.variant] ?? 9)) : []);
3289
- function x(B) {
3292
+ }, T = y(() => r ? [...r.value].sort((D, O) => (S[D.variant] ?? 9) - (S[O.variant] ?? 9)) : []);
3293
+ function x(D) {
3290
3294
  return {
3291
3295
  danger: "lucide-circle-alert",
3292
3296
  warning: "lucide-triangle-alert",
3293
3297
  info: "lucide-info",
3294
3298
  success: "lucide-circle-check"
3295
- }[B] ?? "lucide-info";
3299
+ }[D] ?? "lucide-info";
3296
3300
  }
3297
- function V(B) {
3298
- r && (B.id === yl && l && i && i.clearBladeError(l.value.id), r.value = r.value.filter((O) => O.id !== B.id));
3301
+ function V(D) {
3302
+ r && (D.id === wl && l && i && i.clearBladeError(l.value.id), r.value = r.value.filter((O) => O.id !== D.id));
3299
3303
  }
3300
- return (B, O) => (s(), P(Un, { name: "banner-reveal" }, {
3304
+ return (D, O) => (s(), P(Un, { name: "banner-reveal" }, {
3301
3305
  default: I(() => [
3302
3306
  (s(!0), g(J, null, ve(T.value, (M) => (s(), g("div", {
3303
3307
  key: M.id,
@@ -3305,7 +3309,7 @@ const rv = ["role"], cv = { class: "vc-blade-status-banners__text" }, uv = ["tit
3305
3309
  role: M.variant === "danger" || M.variant === "warning" ? "alert" : "status"
3306
3310
  }, [
3307
3311
  O[1] || (O[1] = w("div", { class: "vc-blade-status-banners__accent" }, null, -1)),
3308
- M.id === yl ? (s(), g(J, { key: 0 }, [
3312
+ M.id === wl ? (s(), g(J, { key: 0 }, [
3309
3313
  w("div", {
3310
3314
  class: "vc-blade-status-banners__header vc-blade-status-banners__header--clickable",
3311
3315
  onClick: O[0] || (O[0] = //@ts-ignore
@@ -3397,14 +3401,14 @@ function wv() {
3397
3401
  throw yv.error("Widget service not found in current context. Injection chain:", Tt()), new Vl("WidgetService");
3398
3402
  return e;
3399
3403
  }
3400
- const Bl = /* @__PURE__ */ Q({
3404
+ const Dl = /* @__PURE__ */ Q({
3401
3405
  __name: "WidgetScope",
3402
3406
  props: {
3403
3407
  widgetId: {}
3404
3408
  },
3405
3409
  setup(e) {
3406
- const a = e, t = Ce(go), r = Ce(al, void 0)?.value.id ?? "";
3407
- return De(Gi, {
3410
+ const a = e, t = Ce(go), r = Ce(ol, void 0)?.value.id ?? "";
3411
+ return Be(Gi, {
3408
3412
  setTrigger: (o) => {
3409
3413
  t.updateWidget({ id: a.widgetId, bladeId: r, widget: { trigger: o } });
3410
3414
  }
@@ -3445,7 +3449,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3445
3449
  bladeId: {}
3446
3450
  },
3447
3451
  setup(e) {
3448
- const a = e, t = D(!1), { resolveBadge: l, resolveLoading: r, resolveDisabled: i, resolveTitle: o, handleHeadlessClick: c } = Qo(), d = y(() => a.widgets.slice(0, 3)), u = y(() => a.widgets.slice(3)), v = y(() => a.widgets.length > 3);
3452
+ 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);
3449
3453
  return (b, p) => (s(), g("div", Cv, [
3450
3454
  w("div", _v, [
3451
3455
  (s(!0), g(J, null, ve(d.value, (m) => (s(), g(J, {
@@ -3463,7 +3467,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3463
3467
  height: 10,
3464
3468
  class: "tw-mt-1"
3465
3469
  })
3466
- ])) : m.headless ? (s(), P(n(Dl), {
3470
+ ])) : m.headless ? (s(), P(n(Bl), {
3467
3471
  key: 1,
3468
3472
  icon: m.headless?.icon,
3469
3473
  title: n(o)(m),
@@ -3471,14 +3475,14 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3471
3475
  disabled: n(i)(m),
3472
3476
  "widget-id": m.id,
3473
3477
  onClick: (h) => n(c)(m)
3474
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3478
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3475
3479
  key: 2,
3476
3480
  "widget-id": m.id
3477
3481
  }, {
3478
3482
  default: I(() => [
3479
3483
  (s(), P(qe(m.component), Le({ ref_for: !0 }, m.props || {}, {
3480
3484
  "widget-id": m.id
3481
- }, Ol(m.events || {})), null, 16, ["widget-id"]))
3485
+ }, Ml(m.events || {})), null, 16, ["widget-id"]))
3482
3486
  ]),
3483
3487
  _: 2
3484
3488
  }, 1032, ["widget-id"]))
@@ -3506,7 +3510,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3506
3510
  variant: "block",
3507
3511
  width: "100%",
3508
3512
  height: 32
3509
- })) : m.headless ? (s(), P(n(Dl), {
3513
+ })) : m.headless ? (s(), P(n(Bl), {
3510
3514
  key: 1,
3511
3515
  class: "tw-w-full",
3512
3516
  icon: m.headless?.icon,
@@ -3518,7 +3522,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3518
3522
  onClick: (h) => {
3519
3523
  n(c)(m), t.value = !1;
3520
3524
  }
3521
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3525
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3522
3526
  key: 2,
3523
3527
  "widget-id": m.id
3524
3528
  }, {
@@ -3526,7 +3530,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3526
3530
  (s(), P(qe(m.component), Le({ class: "tw-w-full" }, m.props || {}, {
3527
3531
  horizontal: "",
3528
3532
  "widget-id": m.id
3529
- }, Ol(m.events || {}), {
3533
+ }, Ml(m.events || {}), {
3530
3534
  onClick: p[1] || (p[1] = (h) => t.value = !1)
3531
3535
  }), null, 16, ["widget-id"]))
3532
3536
  ]),
@@ -3605,7 +3609,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3605
3609
  ye.style.overflow = se.cachedOverflow, ye.style.paddingRight = se.cachedPaddingRight;
3606
3610
  }
3607
3611
  }
3608
- const c = e, d = t, u = ht(), v = D(null), b = D(!1), p = D(null), { teleportTarget: m } = Vt({
3612
+ const c = e, d = t, u = ht(), v = B(null), b = B(!1), p = B(null), { teleportTarget: m } = Vt({
3609
3613
  to: y(() => c.teleportTo)
3610
3614
  }), f = `vc-sidebar-title-${Math.round(Math.random() * 1e5)}`, k = {
3611
3615
  sm: "300px",
@@ -3617,7 +3621,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3617
3621
  md: "56dvh",
3618
3622
  lg: "72dvh",
3619
3623
  full: "100dvh"
3620
- }, S = y(() => typeof c.width == "number" ? `${c.width}px` : c.width), T = y(() => typeof c.height == "number" ? `${c.height}px` : c.height), x = 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 ? {
3624
+ }, S = y(() => typeof c.width == "number" ? `${c.width}px` : c.width), T = y(() => typeof c.height == "number" ? `${c.height}px` : c.height), x = 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 ? {
3621
3625
  height: T.value ?? C[c.size]
3622
3626
  } : {
3623
3627
  width: S.value ?? k[c.size]
@@ -3631,7 +3635,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3631
3635
  "vc-sidebar__panel--with-header": x.value,
3632
3636
  "vc-sidebar__panel--with-footer": V.value,
3633
3637
  "vc-sidebar__panel--inset": c.inset && !O.value,
3634
- "vc-sidebar__panel--draggable": c.draggable && B.value
3638
+ "vc-sidebar__panel--draggable": c.draggable && D.value
3635
3639
  }
3636
3640
  ]), E = y(() => c.ariaLabel || void 0), N = y(() => c.ariaLabel || !c.title ? void 0 : f);
3637
3641
  function F(se) {
@@ -3646,9 +3650,9 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3646
3650
  function Z() {
3647
3651
  c.closeOnOverlay && F("overlay");
3648
3652
  }
3649
- const de = D(0), Y = D(!1);
3653
+ const de = B(0), Y = B(!1);
3650
3654
  function q(se) {
3651
- !c.draggable || !B.value || (de.value = se.touches[0].clientY, Y.value = !0);
3655
+ !c.draggable || !D.value || (de.value = se.touches[0].clientY, Y.value = !0);
3652
3656
  }
3653
3657
  function ne(se) {
3654
3658
  if (!Y.value || !v.value) return;
@@ -3781,7 +3785,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3781
3785
  onTouchmove: ne,
3782
3786
  onTouchend: ee
3783
3787
  }, [
3784
- e.dragHandle && B.value ? (s(), g("div", Rv, [...ye[1] || (ye[1] = [
3788
+ e.dragHandle && D.value ? (s(), g("div", Rv, [...ye[1] || (ye[1] = [
3785
3789
  w("div", { class: "vc-sidebar__handle-bar" }, null, -1)
3786
3790
  ])])) : L("", !0),
3787
3791
  x.value ? H(se.$slots, "header", {
@@ -3827,21 +3831,21 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3827
3831
  ], 12, Sv)
3828
3832
  ], 8, ["to", "disabled"]));
3829
3833
  }
3830
- }), Dv = { class: "vc-widget-container-mobile" }, Bv = ["data-item-key"], Pv = { class: "vc-widget-container-mobile__overflow-list" }, Vv = /* @__PURE__ */ Q({
3834
+ }), Bv = { class: "vc-widget-container-mobile" }, Dv = ["data-item-key"], Pv = { class: "vc-widget-container-mobile__overflow-list" }, Vv = /* @__PURE__ */ Q({
3831
3835
  __name: "WidgetContainerMobile",
3832
3836
  props: {
3833
3837
  widgets: {},
3834
3838
  bladeId: {}
3835
3839
  },
3836
3840
  setup(e) {
3837
- const a = e, t = D(null), l = D(!1), r = y(() => a.widgets.length > 0), { resolveBadge: i, resolveLoading: o, resolveDisabled: c, resolveTitle: d, handleHeadlessClick: u } = Qo(), { visibleItems: v, showMoreButton: b, hiddenItems: p } = Zn({
3841
+ 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({
3838
3842
  containerRef: t,
3839
3843
  items: y(() => a.widgets),
3840
3844
  getItemKey: (m) => m.id ?? "",
3841
3845
  moreButtonWidth: 70,
3842
3846
  initialItemWidth: 80
3843
3847
  });
3844
- return (m, h) => Xe((s(), g("div", Dv, [
3848
+ return (m, h) => Xe((s(), g("div", Bv, [
3845
3849
  w("div", {
3846
3850
  ref_key: "containerRef",
3847
3851
  ref: t,
@@ -3866,7 +3870,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3866
3870
  height: 10,
3867
3871
  class: "tw-mt-1"
3868
3872
  })
3869
- ], 8, Bv)) : f.headless ? (s(), P(n(Dl), {
3873
+ ], 8, Dv)) : f.headless ? (s(), P(n(Bl), {
3870
3874
  key: 1,
3871
3875
  icon: f.headless?.icon,
3872
3876
  title: n(d)(f),
@@ -3875,7 +3879,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3875
3879
  "data-item-key": f.id,
3876
3880
  "widget-id": f.id,
3877
3881
  onClick: (k) => n(u)(f)
3878
- }, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Bl, {
3882
+ }, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Dl, {
3879
3883
  key: 2,
3880
3884
  "widget-id": f.id
3881
3885
  }, {
@@ -3883,7 +3887,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3883
3887
  (s(), P(qe(f.component), Le({ ref_for: !0 }, f.props || {}, {
3884
3888
  "data-item-key": f.id,
3885
3889
  "widget-id": f.id
3886
- }, Ol(f.events || {})), null, 16, ["data-item-key", "widget-id"]))
3890
+ }, Ml(f.events || {})), null, 16, ["data-item-key", "widget-id"]))
3887
3891
  ]),
3888
3892
  _: 2
3889
3893
  }, 1032, ["widget-id"]))
@@ -3917,7 +3921,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3917
3921
  variant: "block",
3918
3922
  width: "100%",
3919
3923
  height: 32
3920
- })) : f.headless ? (s(), P(n(Dl), {
3924
+ })) : f.headless ? (s(), P(n(Bl), {
3921
3925
  key: 1,
3922
3926
  class: "tw-w-full",
3923
3927
  icon: f.headless?.icon,
@@ -3929,7 +3933,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3929
3933
  onClick: (k) => {
3930
3934
  n(u)(f), l.value = !1;
3931
3935
  }
3932
- }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
3936
+ }, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
3933
3937
  key: 2,
3934
3938
  "widget-id": f.id
3935
3939
  }, {
@@ -3937,7 +3941,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3937
3941
  (s(), P(qe(f.component), Le({ class: "tw-w-full" }, { ref_for: !0 }, f.props || {}, {
3938
3942
  horizontal: "",
3939
3943
  "widget-id": f.id
3940
- }, Ol(f.events || {}), {
3944
+ }, Ml(f.events || {}), {
3941
3945
  onClick: h[1] || (h[1] = (k) => l.value = !1)
3942
3946
  }), null, 16, ["widget-id"]))
3943
3947
  ]),
@@ -3958,7 +3962,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3958
3962
  bladeId: {}
3959
3963
  },
3960
3964
  setup(e) {
3961
- const a = e, { isMobile: t } = Ve(), l = lt("widget-container"), r = y(() => a.bladeId.toLowerCase()), i = wv(), o = Ce(al, void 0), c = y(() => o?.value.name?.toLowerCase() ?? ""), d = /* @__PURE__ */ new Set();
3965
+ const a = e, { isMobile: t } = Ve(), l = lt("widget-container"), r = y(() => a.bladeId.toLowerCase()), i = wv(), o = Ce(ol, void 0), c = y(() => o?.value.name?.toLowerCase() ?? ""), d = /* @__PURE__ */ new Set();
3962
3966
  function u() {
3963
3967
  if (!c.value) return;
3964
3968
  i.getAllExternalWidgets().filter(
@@ -3989,7 +3993,7 @@ const Cv = { class: "vc-widget-container-desktop" }, _v = { class: "vc-widget-co
3989
3993
  }
3990
3994
  }), d.clear();
3991
3995
  }
3992
- tt(u), Rt(v);
3996
+ et(u), Rt(v);
3993
3997
  const b = y(() => i.getWidgets(r.value)), p = y(
3994
3998
  () => b.value.filter((m) => Jn(m.isVisible, o?.value))
3995
3999
  );
@@ -4045,7 +4049,7 @@ function Zo() {
4045
4049
  async function c(d) {
4046
4050
  if (!d) return "";
4047
4051
  const u = o(d);
4048
- return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/flags/al.svg": As, "../../assets/icons/flags/am.svg": Ts, "../../assets/icons/flags/az.svg": Os, "../../assets/icons/flags/ba.svg": Ms, "../../assets/icons/flags/bd.svg": Ls, "../../assets/icons/flags/bg.svg": Is, "../../assets/icons/flags/by.svg": xs, "../../assets/icons/flags/cn.svg": Ns, "../../assets/icons/flags/cz.svg": 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;
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": 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;
4049
4053
  }
4050
4054
  return {
4051
4055
  setLocale: l,
@@ -4068,7 +4072,7 @@ function zS() {
4068
4072
  if (e)
4069
4073
  return e;
4070
4074
  const a = Zo();
4071
- return De(Ln, a), a;
4075
+ return Be(Ln, a), a;
4072
4076
  }
4073
4077
  function ti() {
4074
4078
  if (!so())
@@ -4084,7 +4088,7 @@ function HS() {
4084
4088
  if (e)
4085
4089
  return e;
4086
4090
  const a = ss();
4087
- return De(In, a), ro() && zn(() => rs.dispose(a)), a;
4091
+ return Be(In, a), ro() && zn(() => rs.dispose(a)), a;
4088
4092
  }
4089
4093
  function Zl() {
4090
4094
  const e = Ce(In);
@@ -4122,7 +4126,7 @@ function jv(e) {
4122
4126
  return `${Kv}_${a}`;
4123
4127
  }
4124
4128
  function Xv() {
4125
- const e = Hl(jv(), !0), a = D(!1), t = D(!1), l = y(() => e.value || a.value);
4129
+ const e = Hl(jv(), !0), a = B(!1), t = B(!1), l = y(() => e.value || a.value);
4126
4130
  let r = null;
4127
4131
  const i = () => {
4128
4132
  e.value = !e.value;
@@ -4148,15 +4152,15 @@ function Xv() {
4148
4152
  }
4149
4153
  };
4150
4154
  }
4151
- const Dn = Symbol("SidebarState");
4155
+ const Bn = Symbol("SidebarState");
4152
4156
  function Qv() {
4153
- const e = Ce(Dn, null);
4157
+ const e = Ce(Bn, null);
4154
4158
  if (e) return e;
4155
4159
  const a = Xv();
4156
- return De(Dn, a), a;
4160
+ return Be(Bn, a), a;
4157
4161
  }
4158
4162
  function ea() {
4159
- const e = Ce(Dn);
4163
+ const e = Ce(Bn);
4160
4164
  if (!e)
4161
4165
  throw new Error("useSidebarState() requires provideSidebarState() in a parent component");
4162
4166
  return e;
@@ -4216,13 +4220,13 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4216
4220
  if (t.modified !== void 0) return t.modified;
4217
4221
  if (l)
4218
4222
  return l.isModified.value;
4219
- }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = D(!1);
4223
+ }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(ol, void 0), d = B(!1);
4220
4224
  oe([() => !!t.loading, () => c?.value.param], ([z, K], Z) => {
4221
4225
  Z?.length && K !== Z[1] && (d.value = !1), !z && Z?.[0] && (d.value = !0);
4222
4226
  });
4223
4227
  const u = y(() => !!t.loading && !d.value), v = y(() => !!t.loading && d.value);
4224
- De(Ki, u), ht();
4225
- const b = a, { isMobile: p, isDesktop: m } = Ve(), h = qn(), { id: f } = h, k = !!c, C = Ce(vo, void 0), S = Ce(Wn, void 0), T = y(() => k ? h.expanded.value : t.expanded), x = y(() => k ? h.closable.value : t.closable), V = Pi(), B = y(() => {
4228
+ Be(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), x = y(() => k ? h.closable.value : t.closable), V = Pi(), D = y(() => {
4226
4230
  const { class: z, style: K, onClose: Z, ...de } = V;
4227
4231
  return de;
4228
4232
  });
@@ -4239,14 +4243,14 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4239
4243
  Hn(() => {
4240
4244
  k && f.value && t.title && E(f.value, t.title);
4241
4245
  });
4242
- const N = D(null), F = D(null);
4246
+ const N = B(null), F = B(null);
4243
4247
  return oe(u, (z) => {
4244
4248
  const K = N.value;
4245
4249
  !z || !K || document.activeElement && K.contains(document.activeElement) && K.focus({ preventScroll: !0 });
4246
- }), tt(() => xl(() => N.value)), (z, K) => (s(), g("div", Le({
4250
+ }), et(() => nl(() => N.value)), (z, K) => (s(), g("div", Le({
4247
4251
  ref_key: "bladeRef",
4248
4252
  ref: N
4249
- }, B.value, {
4253
+ }, D.value, {
4250
4254
  class: ["vc-blade", [
4251
4255
  z.$attrs.class,
4252
4256
  {
@@ -4403,7 +4407,7 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4403
4407
  resolvedDisabled: b,
4404
4408
  ariaRequired: p,
4405
4409
  ariaDescribedBy: m
4406
- } = Ot(l), h = D(), f = D(!1);
4410
+ } = Ot(l), h = B(), f = B(!1);
4407
4411
  function k(C) {
4408
4412
  const S = C.target.value;
4409
4413
  i("update:modelValue", S);
@@ -4530,7 +4534,7 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4530
4534
  const a = Qe(), t = e, l = y(() => {
4531
4535
  const c = t.modelValue;
4532
4536
  return c == null || c === "" ? t.type === "date" || t.type === "date-ago" ? "N/A" : "" : t.type === "date" ? c instanceof Date ? c.toLocaleDateString() : String(c) : t.type === "date-ago" ? cs(c) || "N/A" : String(c);
4533
- }), r = D("lucide-copy");
4537
+ }), r = B("lucide-copy");
4534
4538
  function i() {
4535
4539
  navigator.clipboard?.writeText(String(t.modelValue ?? "")), r.value = "lucide-check", setTimeout(() => {
4536
4540
  r.value = "lucide-copy";
@@ -4717,7 +4721,7 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4717
4721
  },
4718
4722
  emits: ["update:modelValue"],
4719
4723
  setup(e, { emit: a }) {
4720
- const t = Qe(), l = e, r = a, i = D([]), o = y(() => (v) => i.value.includes(v));
4724
+ const t = Qe(), l = e, r = a, i = B([]), o = y(() => (v) => i.value.includes(v));
4721
4725
  function c(v, b) {
4722
4726
  b ? l.multiple ? i.value.push(v) : i.value = [v] : i.value = i.value.filter((p) => p !== v), d();
4723
4727
  }
@@ -4804,21 +4808,21 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4804
4808
  },
4805
4809
  emits: ["upload"],
4806
4810
  setup(e, { emit: a }) {
4807
- const t = Qe(), l = e, r = a, { t: i } = ze({ useScope: "global" }), { fieldId: o, errorId: c, resolvedDisabled: d, resolvedName: u, ariaRequired: v, groupContext: b } = Ot(l), p = n(l.rules) || "", m = D(!1), { isMobile: h } = Ve(), {
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 = B(!1), { isMobile: h } = Ve(), {
4808
4812
  errorMessage: f,
4809
4813
  handleChange: k,
4810
4814
  validate: C
4811
- } = Dr(`${l.name === "Gallery" ? o.value : l.name}`, p), S = y(() => l.errorMessage || f.value), T = y(() => {
4815
+ } = Br(`${l.name === "Gallery" ? o.value : l.name}`, p), S = y(() => l.errorMessage || f.value), T = y(() => {
4812
4816
  const A = /* @__PURE__ */ new Set();
4813
4817
  return b?.describedBy.value && b.describedBy.value.split(/\s+/).forEach((_) => A.add(_)), S.value && A.add(c.value), A.size ? Array.from(A).join(" ") : void 0;
4814
- }), x = D(null), V = async (A) => {
4818
+ }), x = B(null), V = async (A) => {
4815
4819
  if (d.value) return;
4816
4820
  if (await k(A.target), (await C()).valid) {
4817
4821
  const N = A.target.files;
4818
4822
  N && N.length && r("upload", N);
4819
4823
  }
4820
4824
  };
4821
- function B() {
4825
+ function D() {
4822
4826
  d.value || x.value && (x.value.value = "", x.value.click());
4823
4827
  }
4824
4828
  function O(A) {
@@ -4867,10 +4871,10 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4867
4871
  onDragenter: _[3] || (_[3] = ue(() => {
4868
4872
  }, ["stop", "prevent"])),
4869
4873
  onDragleave: ue(R, ["stop", "prevent"]),
4870
- onClick: B,
4874
+ onClick: D,
4871
4875
  onKeydown: [
4872
- Ae(B, ["enter"]),
4873
- Ae(ue(B, ["prevent"]), ["space"])
4876
+ Ae(D, ["enter"]),
4877
+ Ae(ue(D, ["prevent"]), ["space"])
4874
4878
  ]
4875
4879
  }, [
4876
4880
  e.loading ? (s(), g("div", Tf, [
@@ -4930,7 +4934,7 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4930
4934
  })
4931
4935
  ], 2));
4932
4936
  }
4933
- }), Df = ["disabled", "aria-pressed", "aria-label"], Ue = /* @__PURE__ */ Q({
4937
+ }), Bf = ["disabled", "aria-pressed", "aria-label"], Ue = /* @__PURE__ */ Q({
4934
4938
  __name: "vc-editor-button",
4935
4939
  props: {
4936
4940
  icon: {},
@@ -4954,16 +4958,16 @@ const sf = cc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
4954
4958
  "use-container": !1,
4955
4959
  "aria-hidden": "true"
4956
4960
  }, null, 8, ["icon"])
4957
- ], 10, Df));
4961
+ ], 10, Bf));
4958
4962
  }
4959
4963
  });
4960
- function Da(e) {
4964
+ function Ba(e) {
4961
4965
  return "options" in e;
4962
4966
  }
4963
- function wl(e) {
4967
+ function Cl(e) {
4964
4968
  return !("options" in e);
4965
4969
  }
4966
- const Bf = {
4970
+ const Df = {
4967
4971
  key: 2,
4968
4972
  class: "vc-editor-dropdown"
4969
4973
  }, Pf = ["disabled", "aria-label"], Vf = ["value"], Ff = /* @__PURE__ */ Q({
@@ -4974,29 +4978,29 @@ const Bf = {
4974
4978
  disabled: { type: Boolean }
4975
4979
  },
4976
4980
  setup(e) {
4977
- const a = e, t = y(() => wl(a.customButton) && a.customButton.isActive ? a.customButton.isActive(a.editor) : !1), l = y(() => a.customButton.isDisabled ? a.customButton.isDisabled(a.editor) : !1);
4981
+ const a = e, t = y(() => Cl(a.customButton) && a.customButton.isActive ? a.customButton.isActive(a.editor) : !1), l = y(() => a.customButton.isDisabled ? a.customButton.isDisabled(a.editor) : !1);
4978
4982
  function r() {
4979
- wl(a.customButton) && a.customButton.action(a.editor);
4983
+ Cl(a.customButton) && a.customButton.action(a.editor);
4980
4984
  }
4981
4985
  function i(o) {
4982
4986
  const c = o.target;
4983
- if (Da(a.customButton)) {
4987
+ if (Ba(a.customButton)) {
4984
4988
  const d = a.customButton.options.find((u) => u.value === c.value);
4985
4989
  d && d.action(a.editor, c.value);
4986
4990
  }
4987
4991
  }
4988
- return (o, c) => n(wl)(e.customButton) && e.customButton.component ? (s(), P(qe(e.customButton.component), Le({
4992
+ return (o, c) => n(Cl)(e.customButton) && e.customButton.component ? (s(), P(qe(e.customButton.component), Le({
4989
4993
  key: 0,
4990
4994
  editor: e.editor,
4991
4995
  disabled: e.disabled || l.value
4992
- }, e.customButton.componentProps || {}), null, 16, ["editor", "disabled"])) : n(wl)(e.customButton) ? (s(), P(Ue, {
4996
+ }, e.customButton.componentProps || {}), null, 16, ["editor", "disabled"])) : n(Cl)(e.customButton) ? (s(), P(Ue, {
4993
4997
  key: 1,
4994
4998
  icon: e.customButton.icon,
4995
4999
  "aria-label": e.customButton.label,
4996
5000
  active: t.value,
4997
5001
  disabled: e.disabled || l.value,
4998
5002
  onAction: r
4999
- }, null, 8, ["icon", "aria-label", "active", "disabled"])) : n(Da)(e.customButton) ? (s(), g("div", Bf, [
5003
+ }, null, 8, ["icon", "aria-label", "active", "disabled"])) : n(Ba)(e.customButton) ? (s(), g("div", Df, [
5000
5004
  w("select", {
5001
5005
  disabled: e.disabled || l.value,
5002
5006
  "aria-label": e.customButton.label,
@@ -5019,7 +5023,7 @@ const Bf = {
5019
5023
  disabled: { type: Boolean }
5020
5024
  },
5021
5025
  setup(e) {
5022
- const a = e, t = D(!1), l = D(null), r = [8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 36, 48, 72], i = y(() => {
5026
+ 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(() => {
5023
5027
  const b = a.editor.getAttributes("textStyle");
5024
5028
  return b.fontSize ? parseInt(b.fontSize.replace("px", "")) : null;
5025
5029
  });
@@ -5038,7 +5042,7 @@ const Bf = {
5038
5042
  function v(b) {
5039
5043
  b.target.closest(".vc-editor-font-selector") || u();
5040
5044
  }
5041
- return tt(() => {
5045
+ return et(() => {
5042
5046
  document.addEventListener("click", v);
5043
5047
  }), Rt(() => {
5044
5048
  document.removeEventListener("click", v);
@@ -5311,7 +5315,7 @@ const Bf = {
5311
5315
  },
5312
5316
  emits: ["update:modelValue", "upload-image"],
5313
5317
  setup(e, { emit: a }) {
5314
- const t = Qe(), l = e, r = a, { errorId: i, invalid: o, ariaDescribedBy: c } = Ot(l), d = D(!1), u = D(!1), v = D(null), b = D("markdown"), p = y(() => l.toolbar ? l.toolbar : [
5318
+ 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 : [
5315
5319
  "bold",
5316
5320
  "italic",
5317
5321
  "underline",
@@ -5403,7 +5407,7 @@ const Bf = {
5403
5407
  return [...F.filter((Z) => !z.has(Z.name)), ...l.extensions];
5404
5408
  }
5405
5409
  return F;
5406
- }), C = D(l.modelValue || "");
5410
+ }), C = B(l.modelValue || "");
5407
5411
  oe(
5408
5412
  () => l.modelValue,
5409
5413
  (F) => {
@@ -5467,11 +5471,11 @@ const Bf = {
5467
5471
  FORBID_TAGS: ["script", "object", "embed", "form", "input"],
5468
5472
  FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur"]
5469
5473
  });
5470
- }), T = D("editor"), x = y(() => T.value);
5474
+ }), T = B("editor"), x = y(() => T.value);
5471
5475
  function V() {
5472
5476
  T.value = T.value === "preview" ? "editor" : "preview";
5473
5477
  }
5474
- function B() {
5478
+ function D() {
5475
5479
  T.value = T.value === "source" ? "editor" : "source";
5476
5480
  }
5477
5481
  function O() {
@@ -5628,7 +5632,7 @@ const Bf = {
5628
5632
  "aria-label": F.$t("COMPONENTS.MOLECULES.VC_EDITOR.VIEW.SOURCE"),
5629
5633
  active: x.value === "source",
5630
5634
  disabled: e.disabled,
5631
- onAction: B
5635
+ onAction: D
5632
5636
  }, null, 8, ["aria-label", "active", "disabled"]),
5633
5637
  $(Ue, {
5634
5638
  icon: u.value ? "lucide-shrink" : "lucide-expand",
@@ -5717,7 +5721,7 @@ const Bf = {
5717
5721
  key: 0,
5718
5722
  class: "vc-notification__content",
5719
5723
  tabindex: "0"
5720
- }, vm = { key: 1 }, fm = ["aria-label"], Ba = 200, mm = 45, ZS = /* @__PURE__ */ Q({
5724
+ }, vm = { key: 1 }, fm = ["aria-label"], Da = 200, mm = 45, ZS = /* @__PURE__ */ Q({
5721
5725
  __name: "vc-toast",
5722
5726
  props: {
5723
5727
  content: { type: [String, Object, Function] },
@@ -5742,11 +5746,11 @@ const Bf = {
5742
5746
  success: { icon: "lucide-check-circle", color: "var(--notification-success)" },
5743
5747
  error: { icon: "lucide-alert-circle", color: "var(--notification-error)" },
5744
5748
  warning: { icon: "lucide-alert-triangle", color: "var(--notification-warning)" }
5745
- }, { timeout: i } = Fi(l), o = D(null), c = D(!1), d = D(!1), u = y(() => (l.position || "top-center").startsWith("top") ? "top" : "bottom"), v = y(() => (l.toastIndex ?? 0) === 0), b = y(() => (l.toastIndex ?? 0) < (l.visibleToasts ?? 3)), p = D(null);
5749
+ }, { 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);
5746
5750
  function m() {
5747
5751
  d.value || (d.value = !0, p.value?.clear(), setTimeout(() => {
5748
5752
  t("close", l.notificationId);
5749
- }, Ba));
5753
+ }, Da));
5750
5754
  }
5751
5755
  oe(
5752
5756
  () => l.dismissing,
@@ -5760,7 +5764,7 @@ const Bf = {
5760
5764
  },
5761
5765
  { immediate: !0 }
5762
5766
  );
5763
- const h = D(null);
5767
+ const h = B(null);
5764
5768
  function f() {
5765
5769
  if (o.value && l.notificationId !== void 0 && !d.value) {
5766
5770
  const _ = o.value, E = _.style.height;
@@ -5769,7 +5773,7 @@ const Bf = {
5769
5773
  _.style.height = E, l.onReportHeight?.(l.notificationId, N);
5770
5774
  }
5771
5775
  }
5772
- tt(() => {
5776
+ et(() => {
5773
5777
  requestAnimationFrame(() => {
5774
5778
  requestAnimationFrame(() => {
5775
5779
  c.value = !0, f();
@@ -5801,15 +5805,15 @@ const Bf = {
5801
5805
  function S() {
5802
5806
  l.timeout && l.pauseOnHover !== !1 && p.value?.resume();
5803
5807
  }
5804
- const T = D(0), x = D(0), V = D(!1), B = D(!1), O = D(0);
5808
+ const T = B(0), x = B(0), V = B(!1), D = B(!1), O = B(0);
5805
5809
  function M(_) {
5806
- if (d.value || B.value || _.target?.closest(".vc-notification__dismiss-button")) return;
5810
+ if (d.value || D.value || _.target?.closest(".vc-notification__dismiss-button")) return;
5807
5811
  T.value = _.clientX, x.value = _.clientY, O.value = Date.now(), V.value = !1;
5808
5812
  const E = o.value;
5809
5813
  E && E.setPointerCapture(_.pointerId);
5810
5814
  }
5811
5815
  function R(_) {
5812
- if (d.value || B.value || T.value === 0 && x.value === 0) return;
5816
+ if (d.value || D.value || T.value === 0 && x.value === 0) return;
5813
5817
  const E = _.clientX - T.value, N = _.clientY - x.value;
5814
5818
  if (!V.value)
5815
5819
  if (Math.abs(E) > 1 && Math.abs(E) > Math.abs(N))
@@ -5829,9 +5833,9 @@ const Bf = {
5829
5833
  }
5830
5834
  const N = parseFloat(o.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), F = Date.now() - O.value, z = Math.abs(N) / F;
5831
5835
  if (Math.abs(N) >= mm || z > 0.11) {
5832
- d.value = !0, p.value?.clear(), B.value = !0;
5836
+ d.value = !0, p.value?.clear(), D.value = !0;
5833
5837
  const K = N > 0 ? 1 : -1;
5834
- o.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Ba);
5838
+ o.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Da);
5835
5839
  } else
5836
5840
  o.value?.style.setProperty("--swipe-amount-x", "0px"), p.value?.resume();
5837
5841
  V.value = !1, T.value = 0, x.value = 0;
@@ -5848,7 +5852,7 @@ const Bf = {
5848
5852
  "data-expanded": e.expanded ?? !0,
5849
5853
  "data-visible": b.value,
5850
5854
  "data-swiping": V.value,
5851
- "data-swiped-out": B.value,
5855
+ "data-swiped-out": D.value,
5852
5856
  role: e.type === "error" ? "alert" : "status",
5853
5857
  onMouseenter: C,
5854
5858
  onMouseleave: S,
@@ -5895,7 +5899,7 @@ const Bf = {
5895
5899
  },
5896
5900
  emits: ["itemClick"],
5897
5901
  setup(e, { emit: a }) {
5898
- const t = e, l = a, { isMobile: r } = Ve(), i = D(t.currentPage);
5902
+ const t = e, l = a, { isMobile: r } = Ve(), i = B(t.currentPage);
5899
5903
  oe(
5900
5904
  () => t.currentPage,
5901
5905
  (u) => {
@@ -6081,7 +6085,7 @@ const Bf = {
6081
6085
  }), Im = {
6082
6086
  key: 0,
6083
6087
  class: "vc-slider vc-slider--skeleton"
6084
- }, xm = ["aria-label"], Nm = { class: "vc-slider__prev tw-left-0" }, Dm = ["aria-label"], Bm = { class: "vc-slider__next tw-right-0" }, Pm = ["aria-label"], Vm = /* @__PURE__ */ Q({
6088
+ }, xm = ["aria-label"], Nm = { class: "vc-slider__prev tw-left-0" }, Bm = ["aria-label"], Dm = { class: "vc-slider__next tw-right-0" }, Pm = ["aria-label"], Vm = /* @__PURE__ */ Q({
6085
6089
  __name: "vc-slider",
6086
6090
  props: {
6087
6091
  slides: { default: () => [] },
@@ -6108,7 +6112,7 @@ const Bf = {
6108
6112
  role: "region",
6109
6113
  "aria-label": e.ariaLabel || "Content carousel"
6110
6114
  }, [
6111
- $(n(Ll), {
6115
+ $(n(Il), {
6112
6116
  class: X(["vc-slider__swiper", {
6113
6117
  "vc-slider__swiper_overflow-visible": e.overflow,
6114
6118
  "vc-slider__swiper_navigation": e.navigation
@@ -6121,7 +6125,7 @@ const Bf = {
6121
6125
  "observe-parents": !0
6122
6126
  }, {
6123
6127
  default: I(() => [
6124
- (s(!0), g(J, null, ve(e.slides, (o, c) => (s(), P(n(Il), { key: c }, {
6128
+ (s(!0), g(J, null, ve(e.slides, (o, c) => (s(), P(n(xl), { key: c }, {
6125
6129
  default: I(() => [
6126
6130
  H(r.$slots, "default", { slide: o })
6127
6131
  ]),
@@ -6142,10 +6146,10 @@ const Bf = {
6142
6146
  icon: "lucide-chevron-left",
6143
6147
  "aria-hidden": "true"
6144
6148
  })
6145
- ], 8, Dm)
6149
+ ], 8, Bm)
6146
6150
  ])
6147
6151
  ]),
6148
- w("div", Bm, [
6152
+ w("div", Dm, [
6149
6153
  H(r.$slots, "nextBtn", {}, () => [
6150
6154
  w("button", {
6151
6155
  type: "button",
@@ -6199,7 +6203,7 @@ const Bf = {
6199
6203
  },
6200
6204
  emits: ["remove", "toggleDropdown", "inputSubmit", "inputChange", "keyDown", "focus", "blur", "clearAll", "openColorPicker", "setColorPickerRef", "colorChange"],
6201
6205
  setup(e, { expose: a, emit: t }) {
6202
- const l = t, r = D(null);
6206
+ const l = t, r = B(null);
6203
6207
  function i(o) {
6204
6208
  l("inputSubmit", o), l("blur");
6205
6209
  }
@@ -6346,7 +6350,7 @@ const Bf = {
6346
6350
  },
6347
6351
  emits: ["select", "search", "clickOutside"],
6348
6352
  setup(e, { expose: a, emit: t }) {
6349
- const l = e, r = t, i = D(null), o = D(null), c = D(null), { teleportTarget: d } = Vt(), u = D(!1), v = D(!1);
6353
+ const l = e, r = t, i = B(null), o = B(null), c = B(null), { teleportTarget: d } = Vt(), u = B(!1), v = B(!1);
6350
6354
  let b = null;
6351
6355
  function p() {
6352
6356
  const k = c.value;
@@ -6470,7 +6474,7 @@ const Bf = {
6470
6474
  })
6471
6475
  ], 34)
6472
6476
  ], 44, ep)), [
6473
- [n(rl), [() => r("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
6477
+ [n(cl), [() => r("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
6474
6478
  ]) : L("", !0)
6475
6479
  ]),
6476
6480
  _: 3
@@ -6511,7 +6515,7 @@ function ip(e) {
6511
6515
  };
6512
6516
  }
6513
6517
  function sp(e) {
6514
- const a = D();
6518
+ const a = B();
6515
6519
  function t(r) {
6516
6520
  const i = r.target.value;
6517
6521
  if (i === "" || i === void 0 || i === null)
@@ -6537,7 +6541,7 @@ function sp(e) {
6537
6541
  };
6538
6542
  }
6539
6543
  function rp(e) {
6540
- const a = D(/* @__PURE__ */ new Map());
6544
+ const a = B(/* @__PURE__ */ new Map());
6541
6545
  function t(i, o) {
6542
6546
  i ? a.value.set(o, i) : a.value.delete(o);
6543
6547
  }
@@ -6562,7 +6566,7 @@ function rp(e) {
6562
6566
  };
6563
6567
  }
6564
6568
  function cp(e) {
6565
- const a = D(!1), t = D(!1), l = D(null), r = D(null), i = D(null);
6569
+ const a = B(!1), t = B(!1), l = B(null), r = B(null), i = B(null);
6566
6570
  function o() {
6567
6571
  return {
6568
6572
  name: "sameWidth",
@@ -6575,7 +6579,7 @@ function cp(e) {
6575
6579
  }
6576
6580
  };
6577
6581
  }
6578
- const c = il(l, r, {
6582
+ const c = sl(l, r, {
6579
6583
  placement: "bottom",
6580
6584
  middleware: y(() => [
6581
6585
  Kn({ fallbackPlacements: ["top", "bottom"] }),
@@ -6665,7 +6669,7 @@ const dp = {
6665
6669
  },
6666
6670
  emits: ["update:model-value", "close", "search"],
6667
6671
  setup(e, { emit: a }) {
6668
- const t = e, l = a, r = Qe(), { fieldId: i, labelId: o, errorId: c, hintId: d, invalid: u, resolvedDisabled: v, ariaRequired: b, ariaDescribedBy: p } = Ot(t), m = y(() => `${i.value}-listbox`), h = D(null), f = D(null), { isDictionaryMode: k, htmlInputType: C } = op({
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 = B(null), f = B(null), { isDictionaryMode: k, htmlInputType: C } = op({
6669
6673
  multivalue: () => t.multivalue ?? !1,
6670
6674
  type: () => t.type
6671
6675
  }), { formatValue: S, removeAtIndex: T, clearAll: x, addItem: V } = ip({
@@ -6675,7 +6679,7 @@ const dp = {
6675
6679
  emit: {
6676
6680
  updateModelValue: (G) => l("update:model-value", G)
6677
6681
  }
6678
- }), { inputValue: B, onInputSubmit: O, onKeyDown: M } = sp({
6682
+ }), { inputValue: D, onInputSubmit: O, onKeyDown: M } = sp({
6679
6683
  type: () => t.type,
6680
6684
  optionLabel: () => t.optionLabel,
6681
6685
  addItem: V
@@ -6766,7 +6770,7 @@ const dp = {
6766
6770
  loading: e.loading,
6767
6771
  clearable: e.clearable,
6768
6772
  "option-value": e.optionValue,
6769
- "input-value": n(B),
6773
+ "input-value": n(D),
6770
6774
  "format-value": n(S),
6771
6775
  "is-opened": n(N),
6772
6776
  "label-id": e.label ? n(o) : void 0,
@@ -6776,7 +6780,7 @@ const dp = {
6776
6780
  onRemove: n(T),
6777
6781
  onToggleDropdown: n(Y),
6778
6782
  onInputSubmit: n(O),
6779
- onInputChange: ke[0] || (ke[0] = (W) => B.value = W),
6783
+ onInputChange: ke[0] || (ke[0] = (W) => D.value = W),
6780
6784
  onKeyDown: n(M),
6781
6785
  onFocus: ke[1] || (ke[1] = (W) => F.value = !0),
6782
6786
  onBlur: ke[2] || (ke[2] = (W) => F.value = !1),
@@ -6982,7 +6986,7 @@ const dp = {
6982
6986
  if (a.hint)
6983
6987
  return r.value;
6984
6988
  }), d = y(() => a.label ? l.value : a.ariaLabelledby);
6985
- return De(fs, {
6989
+ return Be(fs, {
6986
6990
  name: Ie(a, "name"),
6987
6991
  disabled: y(() => !!a.disabled),
6988
6992
  invalid: o,
@@ -7186,7 +7190,7 @@ const dp = {
7186
7190
  resolvedName: d,
7187
7191
  ariaRequired: u,
7188
7192
  ariaDescribedBy: v
7189
- } = Ot(t), b = Qe(), p = D(null), m = y({
7193
+ } = Ot(t), b = Qe(), p = B(null), m = y({
7190
7194
  get() {
7191
7195
  return t.modelValue;
7192
7196
  },
@@ -7203,7 +7207,7 @@ const dp = {
7203
7207
  p.value && (p.value.indeterminate = f);
7204
7208
  },
7205
7209
  { immediate: !0 }
7206
- ), tt(() => {
7210
+ ), et(() => {
7207
7211
  p.value && t.indeterminate && (p.value.indeterminate = t.indeterminate);
7208
7212
  }), (f, k) => n(b) ? (s(), g("div", Sp, [
7209
7213
  $(n(we), {
@@ -7400,7 +7404,7 @@ const dp = {
7400
7404
  }), Np = {
7401
7405
  key: 0,
7402
7406
  class: "vc-switch vc-switch--skeleton"
7403
- }, Dp = { class: "vc-switch__track-wrapper" }, Bp = { class: "vc-switch__track-label" }, Pp = ["id", "checked", "disabled", "aria-label", "aria-checked", "aria-invalid", "aria-required", "aria-describedby"], Vp = { key: 0 }, Fp = { key: 1 }, oi = /* @__PURE__ */ Q({
7407
+ }, Bp = { class: "vc-switch__track-wrapper" }, Dp = { class: "vc-switch__track-label" }, Pp = ["id", "checked", "disabled", "aria-label", "aria-checked", "aria-invalid", "aria-required", "aria-describedby"], Vp = { key: 0 }, Fp = { key: 1 }, oi = /* @__PURE__ */ Q({
7404
7408
  __name: "vc-switch",
7405
7409
  props: {
7406
7410
  modelValue: { type: Boolean },
@@ -7473,8 +7477,8 @@ const dp = {
7473
7477
  key: "0"
7474
7478
  } : void 0
7475
7479
  ]), 1032, ["html-for", "required", "error"])) : L("", !0),
7476
- w("div", Dp, [
7477
- w("label", Bp, [
7480
+ w("div", Bp, [
7481
+ w("label", Dp, [
7478
7482
  w("input", {
7479
7483
  id: n(r),
7480
7484
  type: "checkbox",
@@ -7527,7 +7531,7 @@ const dp = {
7527
7531
  })
7528
7532
  ], 2));
7529
7533
  }
7530
- }), Cl = /* @__PURE__ */ new WeakMap(), Up = ["role", "aria-label"], zp = {
7534
+ }), _l = /* @__PURE__ */ new WeakMap(), Up = ["inert", "role", "aria-label"], zp = {
7531
7535
  key: 0,
7532
7536
  class: "vc-popover__header"
7533
7537
  }, Hp = { class: "vc-popover__title" }, Wp = ["aria-label"], Gp = ["tabindex"], qp = {
@@ -7548,14 +7552,15 @@ const dp = {
7548
7552
  closeOnClickOutside: { type: Boolean, default: !0 },
7549
7553
  closeOnEscape: { type: Boolean, default: !0 },
7550
7554
  role: {},
7551
- ariaLabel: {}
7555
+ ariaLabel: {},
7556
+ inert: { type: Boolean }
7552
7557
  },
7553
7558
  emits: ["update:show"],
7554
7559
  setup(e, { expose: a, emit: t }) {
7555
- const l = e, r = t, { teleportTarget: i } = Vt(), o = D(null), c = D(null), d = y(() => l.anchorRef ?? null), u = y(() => {
7560
+ const l = e, r = t, { teleportTarget: i } = Vt(), o = B(null), c = B(null), d = y(() => l.anchorRef ?? null), u = y(() => {
7556
7561
  const C = l.anchorRef;
7557
7562
  return C ? C instanceof Element ? C : C.contextElement ?? null : null;
7558
- }), { floatingStyle: v } = il(d, o, {
7563
+ }), { floatingStyle: v } = sl(d, o, {
7559
7564
  strategy: "fixed",
7560
7565
  placement: y(() => l.placement),
7561
7566
  middleware: y(() => [
@@ -7578,16 +7583,16 @@ const dp = {
7578
7583
  r("update:show", !1);
7579
7584
  }, m = () => {
7580
7585
  const C = o.value;
7581
- C && (Cl.set(C, u.value), c.value = C);
7586
+ C && (_l.set(C, u.value), c.value = C);
7582
7587
  }, h = () => {
7583
- c.value && (Cl.delete(c.value), c.value = null);
7588
+ c.value && (_l.delete(c.value), c.value = null);
7584
7589
  }, f = (C) => {
7585
7590
  const S = C.target;
7586
7591
  if (o.value?.contains(S) || u.value?.contains(S))
7587
7592
  return;
7588
7593
  const T = S.closest?.(".vc-popover");
7589
7594
  if (T && o.value && T !== o.value) {
7590
- const V = Cl.get(T);
7595
+ const V = _l.get(T);
7591
7596
  if (!!(V && o.value.contains(V)))
7592
7597
  return;
7593
7598
  }
@@ -7608,7 +7613,7 @@ const dp = {
7608
7613
  },
7609
7614
  { immediate: !0 }
7610
7615
  ), oe(u, (C) => {
7611
- c.value && Cl.set(c.value, C);
7616
+ c.value && _l.set(c.value, C);
7612
7617
  }), He(() => {
7613
7618
  h(), document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", k);
7614
7619
  }), a({ close: p }), (C, S) => (s(), P(gt, { to: n(i) }, [
@@ -7619,6 +7624,7 @@ const dp = {
7619
7624
  ref_key: "floatingRef",
7620
7625
  ref: o,
7621
7626
  class: "vc-popover",
7627
+ inert: e.inert || void 0,
7622
7628
  style: he([n(v), b.value]),
7623
7629
  role: e.role,
7624
7630
  "aria-label": e.ariaLabel,
@@ -7674,7 +7680,7 @@ const dp = {
7674
7680
  },
7675
7681
  setup(e) {
7676
7682
  const a = e;
7677
- De(
7683
+ Be(
7678
7684
  la,
7679
7685
  y(() => a.expanded)
7680
7686
  );
@@ -7907,7 +7913,7 @@ const dp = {
7907
7913
  }
7908
7914
  }), vg = eg, Pa = ii, fg = dg;
7909
7915
  function mg(e) {
7910
- const a = D(!1), t = D(!1);
7916
+ const a = B(!1), t = B(!1);
7911
7917
  function l() {
7912
7918
  a.value = !0, t.value = !1;
7913
7919
  }
@@ -7939,7 +7945,7 @@ const pg = {
7939
7945
  },
7940
7946
  emits: ["preview", "edit", "remove"],
7941
7947
  setup(e) {
7942
- const a = e, { t } = ze({ useScope: "global" }), { isMobile: l } = Ve(), r = y(() => _o(a.src, a.thumbnailSize) ?? a.src), i = D(!1), o = y(() => i.value ? a.src : r.value), c = mg(Ie(() => o.value)), d = D(!1);
7948
+ 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 = mg(Ie(() => o.value)), d = B(!1);
7943
7949
  oe(
7944
7950
  () => [a.src, a.thumbnailSize],
7945
7951
  () => {
@@ -8035,7 +8041,7 @@ const pg = {
8035
8041
  ])
8036
8042
  ])
8037
8043
  ], 2)), [
8038
- [n(rl), b]
8044
+ [n(cl), b]
8039
8045
  ]);
8040
8046
  }
8041
8047
  }), Sg = { class: "vc-language-selector" }, $g = ["disabled", "aria-expanded"], Rg = ["src", "alt"], Ag = {
@@ -8059,7 +8065,7 @@ const pg = {
8059
8065
  },
8060
8066
  emits: ["update:modelValue"],
8061
8067
  setup(e, { emit: a }) {
8062
- const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = D(!1), o = y(() => t.options.find((u) => u.value === t.modelValue)), c = () => {
8068
+ const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = B(!1), o = y(() => t.options.find((u) => u.value === t.modelValue)), c = () => {
8063
8069
  t.disabled || (i.value = !i.value);
8064
8070
  }, d = (u) => {
8065
8071
  i.value = !1, l("update:modelValue", u.value);
@@ -8134,10 +8140,10 @@ const pg = {
8134
8140
  }), Lg = { class: "sidebar-header__logo-container" }, Ig = { class: "sidebar-header__logo" }, xg = ["src"], Ng = {
8135
8141
  key: 0,
8136
8142
  class: "sidebar-header__accent sidebar-header__accent--logo"
8137
- }, Dg = {
8143
+ }, Bg = {
8138
8144
  key: 0,
8139
8145
  class: "sidebar-header__blade-title"
8140
- }, Bg = {
8146
+ }, Dg = {
8141
8147
  key: 0,
8142
8148
  class: "sidebar-header__toolbar"
8143
8149
  }, Pg = ["aria-label"], Vg = { class: "sidebar-header__notification-bell-wrap" }, Fg = {
@@ -8164,7 +8170,7 @@ const pg = {
8164
8170
  },
8165
8171
  emits: ["logo:click", "toggle-menu", "toggle-notifications"],
8166
8172
  setup(e) {
8167
- const a = Ce(bo, D(!1));
8173
+ const a = Ce(bo, B(!1));
8168
8174
  return (t, l) => e.isVisible ? (s(), g("div", {
8169
8175
  key: 0,
8170
8176
  class: X(["sidebar-header", {
@@ -8182,9 +8188,9 @@ const pg = {
8182
8188
  }, null, 10, xg),
8183
8189
  n(a) && !e.expanded && !e.isMobile ? (s(), g("div", Ng)) : L("", !0)
8184
8190
  ]),
8185
- e.isMobile && e.showMobileTitle ? (s(), g("p", Dg, U(e.mobileTitle), 1)) : L("", !0)
8191
+ e.isMobile && e.showMobileTitle ? (s(), g("p", Bg, U(e.mobileTitle), 1)) : L("", !0)
8186
8192
  ]),
8187
- e.expanded && !e.isMobile ? (s(), g("div", Bg, [
8193
+ e.expanded && !e.isMobile ? (s(), g("div", Dg, [
8188
8194
  w("button", {
8189
8195
  class: "sidebar-header__notification-bell",
8190
8196
  "aria-label": t.$t("COMPONENTS.ORGANISMS.VC_APP.NOTIFICATIONS"),
@@ -8261,7 +8267,7 @@ function a$(e) {
8261
8267
  return r === l || r.startsWith(l + "/");
8262
8268
  }) };
8263
8269
  }
8264
- const Gg = 3, Bn = /* @__PURE__ */ Q({
8270
+ const Gg = 3, Dn = /* @__PURE__ */ Q({
8265
8271
  __name: "VcAppMenu",
8266
8272
  props: {
8267
8273
  expanded: { type: Boolean, default: !0 },
@@ -8269,26 +8275,26 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8269
8275
  },
8270
8276
  emits: ["item:click"],
8271
8277
  setup(e, { emit: a }) {
8272
- const t = e, l = a, r = zt(), { t: i } = ze(), { menuItems: o, menuBadges: c } = ko(), { hasAccess: d } = sl(), u = Ce(Yi, D(!0)), v = [92, 70, 104], b = (B) => v[(B - 1) % v.length], p = y(() => !u.value && !t.searchQuery?.trim()), m = (B) => d(B.permissions), h = (B) => (B.children ?? []).filter((O) => m(O)), f = y(() => o.value.filter((B) => m(B) ? B.children?.length ? h(B).length > 0 : !0 : !1)), k = y(() => {
8273
- const B = t.searchQuery?.toLowerCase().trim();
8274
- return B ? f.value.map((O) => {
8278
+ const t = e, l = a, r = zt(), { t: i } = ze(), { menuItems: o, menuBadges: c } = ko(), { hasAccess: d } = rl(), 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(() => {
8279
+ const D = t.searchQuery?.toLowerCase().trim();
8280
+ return D ? f.value.map((O) => {
8275
8281
  const M = h(O);
8276
8282
  if (!M.length)
8277
- return i(O.title).toLowerCase().includes(B) ? O : null;
8278
- if (i(O.title).toLowerCase().includes(B)) return O;
8279
- const R = M.filter((A) => i(A.title).toLowerCase().includes(B));
8283
+ return i(O.title).toLowerCase().includes(D) ? O : null;
8284
+ if (i(O.title).toLowerCase().includes(D)) return O;
8285
+ const R = M.filter((A) => i(A.title).toLowerCase().includes(D));
8280
8286
  return R.length ? { ...O, children: R } : null;
8281
8287
  }).filter(Boolean) : f.value;
8282
- }), C = (B) => B.groupId ?? String(B.id ?? B.routeId ?? B.title), S = (B) => {
8283
- l("item:click", B);
8284
- }, T = (B) => {
8285
- if (!B) return !1;
8288
+ }), C = (D) => D.groupId ?? String(D.id ?? D.routeId ?? D.title), S = (D) => {
8289
+ l("item:click", D);
8290
+ }, T = (D) => {
8291
+ if (!D) return !1;
8286
8292
  const O = ci(r);
8287
- return O === B || O.startsWith(B + "/");
8293
+ return O === D || O.startsWith(D + "/");
8288
8294
  };
8289
- function x(B) {
8295
+ function x(D) {
8290
8296
  let O;
8291
- typeof B == "object" && !bt(B) && "content" in B ? O = B : O = { content: B };
8297
+ typeof D == "object" && !bt(D) && "content" in D ? O = D : O = { content: D };
8292
8298
  let M;
8293
8299
  typeof O.content == "function" ? M = O.content() : bt(O.content) ? M = n(O.content) : M = O.content;
8294
8300
  let R = M;
@@ -8307,21 +8313,21 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8307
8313
  };
8308
8314
  }
8309
8315
  const V = y(() => {
8310
- const B = /* @__PURE__ */ new Map(), O = (M) => {
8316
+ const D = /* @__PURE__ */ new Map(), O = (M) => {
8311
8317
  const R = M.routeId ?? M.groupId;
8312
8318
  if (!R) return;
8313
8319
  let A = M.badge;
8314
8320
  if (!A && M.routeId && (A = c.value.get(M.routeId)), !A && M.groupId && (A = c.value.get(M.groupId)), !A) return;
8315
8321
  const _ = x(A);
8316
- _ && B.set(R, _);
8322
+ _ && D.set(R, _);
8317
8323
  };
8318
8324
  for (const M of o.value)
8319
8325
  if (O(M), M.children)
8320
8326
  for (const R of M.children)
8321
8327
  O(R);
8322
- return B;
8328
+ return D;
8323
8329
  });
8324
- return (B, O) => k.value.length || p.value ? (s(), P(n(vg), {
8330
+ return (D, O) => k.value.length || p.value ? (s(), P(n(vg), {
8325
8331
  key: 0,
8326
8332
  expanded: e.expanded,
8327
8333
  class: X(["vc-app-menu", { "vc-app-menu--collapsed": !e.expanded }])
@@ -8335,7 +8341,7 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8335
8341
  "data-test-id": M.routeId,
8336
8342
  "group-id": C(M),
8337
8343
  icon: M.groupIcon || M.icon,
8338
- title: B.$t(M.title),
8344
+ title: D.$t(M.title),
8339
8345
  badge: V.value.get(M.routeId ?? M.groupId ?? "")
8340
8346
  }, {
8341
8347
  default: I(() => [
@@ -8343,7 +8349,7 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8343
8349
  key: R.routeId || R.url || R.id || R.title,
8344
8350
  "data-test-id": R.routeId,
8345
8351
  icon: R.icon,
8346
- title: B.$t(R.title),
8352
+ title: D.$t(R.title),
8347
8353
  badge: V.value.get(R.routeId ?? R.groupId ?? ""),
8348
8354
  active: T(R.url),
8349
8355
  nested: "",
@@ -8355,7 +8361,7 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8355
8361
  key: 1,
8356
8362
  "data-test-id": M.routeId,
8357
8363
  icon: M.groupIcon || M.icon,
8358
- title: B.$t(M.title),
8364
+ title: D.$t(M.title),
8359
8365
  badge: V.value.get(M.routeId ?? M.groupId ?? ""),
8360
8366
  active: T(M.url),
8361
8367
  onClick: (R) => S(M)
@@ -8481,11 +8487,11 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8481
8487
  disabled: { type: Boolean }
8482
8488
  },
8483
8489
  setup(e) {
8484
- const a = D(!1), t = D(null), { isPinned: l, isExpanded: r } = ea(), { isMobile: i, isDesktop: o } = Ve();
8490
+ const a = B(!1), t = B(null), { isPinned: l, isExpanded: r } = ea(), { isMobile: i, isDesktop: o } = Ve();
8485
8491
  function c() {
8486
8492
  a.value = !1;
8487
8493
  }
8488
- De(Gn, c);
8494
+ Be(Gn, c);
8489
8495
  function d() {
8490
8496
  a.value = !a.value;
8491
8497
  }
@@ -8556,8 +8562,8 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8556
8562
  },
8557
8563
  emits: ["item:click"],
8558
8564
  setup(e, { emit: a }) {
8559
- const t = e, l = a, r = Ce(ol, !1), i = D(null), o = D("");
8560
- tt(() => {
8565
+ const t = e, l = a, r = Ce(il, !1), i = B(null), o = B("");
8566
+ et(() => {
8561
8567
  Re(() => i.value?.updateScrollState());
8562
8568
  }), oe(
8563
8569
  () => t.expanded,
@@ -8593,7 +8599,7 @@ const Gg = 3, Bn = /* @__PURE__ */ Q({
8593
8599
  onItemClick: c,
8594
8600
  searchQuery: o.value
8595
8601
  }, () => [
8596
- $(Bn, {
8602
+ $(Dn, {
8597
8603
  expanded: e.expanded,
8598
8604
  "search-query": o.value,
8599
8605
  "onItem:click": c
@@ -8676,7 +8682,7 @@ function en() {
8676
8682
  };
8677
8683
  }
8678
8684
  function cb(e) {
8679
- const { hasAccess: a } = sl(), t = D(""), l = y(() => (t.value ?? "").trim().toLowerCase()), r = y(() => l.value.length > 0), i = y(() => e.appsList.value.filter((u) => a(u.permission))), o = y(() => e.showApplications.value ? r.value ? i.value.filter((u) => [u.title, u.description, u.id, u.relativeUrl].filter(Boolean).join(" ").toLowerCase().includes(l.value)) : i.value : []), c = y(() => r.value ? e.widgets.value.filter((u) => [d(u), u.id, ...u.searchTerms ?? []].join(" ").toLowerCase().includes(l.value)) : e.widgets.value);
8685
+ const { hasAccess: a } = rl(), 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);
8680
8686
  function d(u) {
8681
8687
  return u.title || ub(u.id);
8682
8688
  }
@@ -8728,7 +8734,7 @@ const Va = /* @__PURE__ */ Q({
8728
8734
  }, xb = {
8729
8735
  key: 0,
8730
8736
  class: "app-hub-content__flyout app-hub-content__flyout--mobile"
8731
- }, Nb = { class: "app-hub-content__flyout-header" }, Db = { class: "app-hub-content__flyout-title" }, Bb = { class: "app-hub-content__flyout-body" }, Fa = 120, _l = 120, Pb = 80, Vb = 120, Pn = /* @__PURE__ */ Q({
8737
+ }, Nb = { class: "app-hub-content__flyout-header" }, Bb = { class: "app-hub-content__flyout-title" }, Db = { class: "app-hub-content__flyout-body" }, Fa = 120, kl = 120, Pb = 80, Vb = 120, Pn = /* @__PURE__ */ Q({
8732
8738
  __name: "AppHubContent",
8733
8739
  props: {
8734
8740
  appsList: {},
@@ -8737,12 +8743,12 @@ const Va = /* @__PURE__ */ Q({
8737
8743
  },
8738
8744
  emits: ["switch-app"],
8739
8745
  setup(e, { emit: a }) {
8740
- const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = D(null), c = D(null), { items: d } = Zl(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = en(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: k } = cb({
8746
+ const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = B(null), c = B(null), { items: d } = Zl(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = en(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: k } = cb({
8741
8747
  appsList: Ie(t, "appsList"),
8742
8748
  widgets: d,
8743
8749
  showApplications: Ie(t, "showApplications"),
8744
8750
  mobile: Ie(t, "mobile")
8745
- }), C = D(_l), S = D(_l), T = y(() => !i.value && h.value.length > Fa), x = y(() => f.value.length > Fa), V = y(() => T.value ? h.value.slice(0, C.value) : h.value), B = y(() => x.value ? f.value.slice(0, S.value) : f.value);
8751
+ }), C = B(kl), S = B(kl), T = y(() => !i.value && h.value.length > Fa), x = y(() => f.value.length > Fa), V = y(() => T.value ? h.value.slice(0, C.value) : h.value), D = y(() => x.value ? f.value.slice(0, S.value) : f.value);
8746
8752
  oe(
8747
8753
  () => d.value.map((q) => q.id),
8748
8754
  () => {
@@ -8751,13 +8757,13 @@ const Va = /* @__PURE__ */ Q({
8751
8757
  ), oe(
8752
8758
  [() => h.value.length, T],
8753
8759
  ([q, ne]) => {
8754
- C.value = ne ? Math.min(q, _l) : q, Re(() => Z(o.value));
8760
+ C.value = ne ? Math.min(q, kl) : q, Re(() => Z(o.value));
8755
8761
  },
8756
8762
  { immediate: !0 }
8757
8763
  ), oe(
8758
8764
  [() => f.value.length, x],
8759
8765
  ([q, ne]) => {
8760
- S.value = ne ? Math.min(q, _l) : q, Re(() => Z(c.value));
8766
+ S.value = ne ? Math.min(q, kl) : q, Re(() => Z(c.value));
8761
8767
  },
8762
8768
  { immediate: !0 }
8763
8769
  ), oe(
@@ -8927,7 +8933,7 @@ const Va = /* @__PURE__ */ Q({
8927
8933
  }, {
8928
8934
  default: I(() => [
8929
8935
  n(f).length ? (s(), g("div", Rb, [
8930
- (s(!0), g(J, null, ve(B.value, (ee) => (s(), g("button", {
8936
+ (s(!0), g(J, null, ve(D.value, (ee) => (s(), g("button", {
8931
8937
  key: ee.id,
8932
8938
  type: "button",
8933
8939
  "data-widget-id": ee.id,
@@ -8958,14 +8964,14 @@ const Va = /* @__PURE__ */ Q({
8958
8964
  default: I(() => [
8959
8965
  e.mobile && n(b) && n(u)?.component ? (s(), g("div", xb, [
8960
8966
  w("div", Nb, [
8961
- w("span", Db, U(n(k)(n(u))), 1),
8967
+ w("span", Bb, U(n(k)(n(u))), 1),
8962
8968
  $(n(Se), {
8963
8969
  icon: "lucide-x",
8964
8970
  text: "",
8965
8971
  onClick: n(v)
8966
8972
  }, null, 8, ["onClick"])
8967
8973
  ]),
8968
- w("div", Bb, [
8974
+ w("div", Db, [
8969
8975
  $(Va, { mobile: "" })
8970
8976
  ])
8971
8977
  ])) : L("", !0)
@@ -8980,7 +8986,8 @@ const Va = /* @__PURE__ */ Q({
8980
8986
  show: { type: Boolean },
8981
8987
  anchorRef: { default: null },
8982
8988
  appsList: {},
8983
- showApplications: { type: Boolean, default: !0 }
8989
+ showApplications: { type: Boolean, default: !0 },
8990
+ inert: { type: Boolean }
8984
8991
  },
8985
8992
  emits: ["update:show", "switch-app"],
8986
8993
  setup(e, { emit: a }) {
@@ -9007,7 +9014,8 @@ const Va = /* @__PURE__ */ Q({
9007
9014
  width: "560px",
9008
9015
  "max-width": "calc(100vw - 24px)",
9009
9016
  "max-height": 9999,
9010
- "content-scrollable": !1
9017
+ "content-scrollable": !1,
9018
+ inert: e.inert
9011
9019
  }, {
9012
9020
  default: I(() => [
9013
9021
  $(Pn, {
@@ -9025,7 +9033,7 @@ const Va = /* @__PURE__ */ Q({
9025
9033
  ]), 1032, ["apps-list", "show-applications"])
9026
9034
  ]),
9027
9035
  _: 3
9028
- }, 8, ["show", "anchor-ref"]));
9036
+ }, 8, ["show", "anchor-ref", "inert"]));
9029
9037
  }
9030
9038
  }), Ub = { class: "vc-notification-template__content" }, zb = { class: "vc-notification-template__time" }, Hb = {
9031
9039
  key: 0,
@@ -9094,7 +9102,7 @@ const Va = /* @__PURE__ */ Q({
9094
9102
  if (c)
9095
9103
  return r.registry.get(c)?.template;
9096
9104
  });
9097
- De(
9105
+ Be(
9098
9106
  Sc,
9099
9107
  y(() => t.notification)
9100
9108
  );
@@ -9177,7 +9185,7 @@ const Va = /* @__PURE__ */ Q({
9177
9185
  },
9178
9186
  emits: ["logo:click", "item:click", "switch-app"],
9179
9187
  setup(e, { emit: a }) {
9180
- const t = a, l = ea(), r = Ce(ol, !1), i = zt(), o = D(null), c = D(!1), d = D(null), u = y(() => !r);
9188
+ const t = a, l = ea(), r = Ce(il, !1), i = zt(), o = B(null), c = B(!1), d = B(null), u = y(() => !r);
9181
9189
  oe(
9182
9190
  () => i.fullPath,
9183
9191
  () => {
@@ -9273,6 +9281,7 @@ const Va = /* @__PURE__ */ Q({
9273
9281
  ], 2)
9274
9282
  ], 10, Zb),
9275
9283
  $(Fb, {
9284
+ inert: e.inertNavigation,
9276
9285
  show: n(l).isMenuOpen.value,
9277
9286
  "anchor-ref": o.value,
9278
9287
  "apps-list": e.appsList,
@@ -9290,10 +9299,11 @@ const Va = /* @__PURE__ */ Q({
9290
9299
  ]),
9291
9300
  key: "0"
9292
9301
  } : void 0
9293
- ]), 1032, ["show", "anchor-ref", "apps-list", "show-applications"]),
9302
+ ]), 1032, ["inert", "show", "anchor-ref", "apps-list", "show-applications"]),
9294
9303
  $(n(ct), {
9295
9304
  show: c.value,
9296
9305
  "onUpdate:show": f[2] || (f[2] = (k) => c.value = k),
9306
+ inert: e.inertNavigation,
9297
9307
  "anchor-ref": d.value,
9298
9308
  placement: "right-start",
9299
9309
  width: "320px",
@@ -9303,12 +9313,12 @@ const Va = /* @__PURE__ */ Q({
9303
9313
  $(n(fi))
9304
9314
  ]),
9305
9315
  _: 1
9306
- }, 8, ["show", "anchor-ref"])
9316
+ }, 8, ["show", "inert", "anchor-ref"])
9307
9317
  ], 64));
9308
9318
  }
9309
9319
  });
9310
9320
  function eh() {
9311
- const e = D([]), a = y(() => e.value), t = (o) => {
9321
+ const e = B([]), a = y(() => e.value), t = (o) => {
9312
9322
  const c = e.value.findIndex((d) => d.id === o.id);
9313
9323
  c >= 0 ? e.value[c] = o : e.value.push(o);
9314
9324
  }, l = (o) => {
@@ -9330,7 +9340,7 @@ function lh() {
9330
9340
  if (e)
9331
9341
  return e;
9332
9342
  const a = eh();
9333
- return De(xn, a), ro() && zn(() => {
9343
+ return Be(xn, a), ro() && zn(() => {
9334
9344
  }), a;
9335
9345
  }
9336
9346
  function mi() {
@@ -9446,7 +9456,7 @@ const ah = {
9446
9456
  },
9447
9457
  emits: ["update:is-opened"],
9448
9458
  setup(e, { emit: a }) {
9449
- const t = e, l = a, r = Ce(ol, !1), { isMobile: i, isDesktop: o } = Ve(), c = ht(), d = y(() => !r && (o.value || !!c.widgets)), u = y(() => i.value ? Ht : "div"), v = y(() => i.value ? {
9459
+ const t = e, l = a, r = Ce(il, !1), { isMobile: i, isDesktop: o } = Ve(), c = ht(), d = y(() => !r && (o.value || !!c.widgets)), u = y(() => i.value ? Ht : "div"), v = y(() => i.value ? {
9450
9460
  modelValue: t.isOpened,
9451
9461
  position: "left",
9452
9462
  closeButton: !1,
@@ -9547,11 +9557,11 @@ const ah = {
9547
9557
  },
9548
9558
  emits: ["item:click", "switch-app", "logo:click"],
9549
9559
  setup(e, { emit: a }) {
9550
- const t = e, l = a, r = D(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Zl(), v = y(
9560
+ const t = e, l = a, r = B(""), i = ea(), o = Ce(il, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Zl(), v = y(
9551
9561
  () => u.value.some((Y) => Y.badge === void 0 ? !1 : typeof Y.badge == "function" ? Y.badge() : !!Y.badge)
9552
- ), b = y(() => u.value.length > 0 || !t.disableAppHub && t.appsList.length > 0), p = y(() => b.value && !t.disableMenu), m = D(dt), h = D(!1), f = D(0), k = D(null), C = D("idle");
9562
+ ), 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");
9553
9563
  let S = 0, T = 0, x = 0, V = 0;
9554
- const B = y(() => {
9564
+ const D = y(() => {
9555
9565
  const Y = m.value * -50, q = k.value?.clientWidth ?? 0;
9556
9566
  if (h.value && q > 0) {
9557
9567
  const ne = f.value / q * 50;
@@ -9741,7 +9751,7 @@ const ah = {
9741
9751
  }, [
9742
9752
  w("div", {
9743
9753
  class: "mobile-layout__slider",
9744
- style: he(B.value)
9754
+ style: he(D.value)
9745
9755
  }, [
9746
9756
  w("div", Ch, [
9747
9757
  e.showSearch ? (s(), g("div", _h, [
@@ -9761,7 +9771,7 @@ const ah = {
9761
9771
  onItemClick: Z,
9762
9772
  searchQuery: r.value
9763
9773
  }, () => [
9764
- $(Bn, {
9774
+ $(Dn, {
9765
9775
  expanded: !0,
9766
9776
  "search-query": r.value,
9767
9777
  "onItem:click": Z
@@ -9828,7 +9838,7 @@ const ah = {
9828
9838
  onItemClick: Z,
9829
9839
  searchQuery: r.value
9830
9840
  }, () => [
9831
- $(Bn, {
9841
+ $(Dn, {
9832
9842
  expanded: !0,
9833
9843
  "search-query": r.value,
9834
9844
  "onItem:click": Z
@@ -9864,10 +9874,10 @@ function Ih() {
9864
9874
  };
9865
9875
  l(t.value), oe(t, l);
9866
9876
  }
9867
- const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__title" }, Dh = {
9877
+ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__title" }, Bh = {
9868
9878
  key: 0,
9869
9879
  class: "vc-menu-item__value"
9870
- }, Bh = { class: "tw-p-1" }, tn = /* @__PURE__ */ Q({
9880
+ }, Dh = { class: "tw-p-1" }, tn = /* @__PURE__ */ Q({
9871
9881
  __name: "settings-menu-item",
9872
9882
  props: {
9873
9883
  title: {},
@@ -9883,13 +9893,13 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
9883
9893
  },
9884
9894
  emits: ["trigger:click", "trigger:hover"],
9885
9895
  setup(e, { expose: a, emit: t }) {
9886
- const l = e, r = t, i = ht(), o = y(() => !i.trigger), c = y(() => o.value ? "button" : "div"), { isMobile: d } = Ve(), u = y(() => !!i.submenu), v = D(!1), { contentRef: b, wrapperStyle: p, isExpanded: m } = Yl();
9896
+ 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 } = Yl();
9887
9897
  oe(v, (k) => {
9888
9898
  m.value !== k && (m.value = k);
9889
9899
  }), oe(d, () => {
9890
9900
  v.value = !1;
9891
9901
  });
9892
- const h = D(null), f = () => {
9902
+ const h = B(null), f = () => {
9893
9903
  l.disabled || l.triggerAction === "none" || (u.value && (v.value = !v.value), r("trigger:click"));
9894
9904
  };
9895
9905
  return a({ triggerRef: h }), (k, C) => (s(), g("div", {
@@ -9929,7 +9939,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
9929
9939
  w("span", Nh, U(e.title), 1)
9930
9940
  ]),
9931
9941
  H(k.$slots, "additional", {}, () => [
9932
- e.value ? (s(), g("span", Dh, U(e.value), 1)) : L("", !0)
9942
+ e.value ? (s(), g("span", Bh, U(e.value), 1)) : L("", !0)
9933
9943
  ]),
9934
9944
  e.showChevron || u.value ? (s(), P(n(le), {
9935
9945
  key: 0,
@@ -9965,7 +9975,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
9965
9975
  "max-width": "260px"
9966
9976
  }, {
9967
9977
  default: I(() => [
9968
- w("div", Bh, [
9978
+ w("div", Dh, [
9969
9979
  H(k.$slots, "submenu")
9970
9980
  ])
9971
9981
  ]),
@@ -10037,7 +10047,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10037
10047
  setup(e, { emit: a }) {
10038
10048
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } = Fl();
10039
10049
  Mo({ validateOnMount: !1 });
10040
- const u = Br(), v = Pr(), b = Ut(), p = vt({
10050
+ const u = Dr(), v = Pr(), b = Ut(), p = vt({
10041
10051
  isValid: !1,
10042
10052
  errors: [],
10043
10053
  currentPassword: "",
@@ -10056,7 +10066,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10056
10066
  (p.password || p.confirmPassword) && (p.errors = (await c(p.password)).errors ?? [], p.confirmPassword !== p.password && p.errors.push({ code: "Repeat-password" }), p.confirmPassword === p.currentPassword && p.password === p.currentPassword && p.errors.push({ code: "Equal-passwords" }), p.isValid = p.errors.length == 0);
10057
10067
  });
10058
10068
  }
10059
- return (C, S) => (s(), P(n(cl), {
10069
+ return (C, S) => (s(), P(n(ul), {
10060
10070
  title: n(r)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
10061
10071
  "is-mobile-fullscreen": "",
10062
10072
  onClose: h
@@ -10085,7 +10095,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10085
10095
  _: 1
10086
10096
  })
10087
10097
  ])) : L("", !0),
10088
- $(n(Tl), {
10098
+ $(n(Ol), {
10089
10099
  label: n(r)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
10090
10100
  name: "current",
10091
10101
  rules: "required|min:6",
@@ -10096,7 +10106,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10096
10106
  ref: "passwordField",
10097
10107
  modelValue: p.currentPassword,
10098
10108
  "onUpdate:modelValue": [
10099
- S[0] || (S[0] = (B) => p.currentPassword = B),
10109
+ S[0] || (S[0] = (D) => p.currentPassword = D),
10100
10110
  k
10101
10111
  ],
10102
10112
  class: "tw-mb-4 tw-mt-1 tw-shrink-0",
@@ -10111,7 +10121,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10111
10121
  ]),
10112
10122
  _: 1
10113
10123
  }, 8, ["label", "model-value"]),
10114
- $(n(Tl), {
10124
+ $(n(Ol), {
10115
10125
  label: n(r)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
10116
10126
  name: "new_pass",
10117
10127
  rules: "required|min:6",
@@ -10122,7 +10132,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10122
10132
  ref: "newPasswordField",
10123
10133
  modelValue: p.password,
10124
10134
  "onUpdate:modelValue": [
10125
- S[1] || (S[1] = (B) => p.password = B),
10135
+ S[1] || (S[1] = (D) => p.password = D),
10126
10136
  k
10127
10137
  ],
10128
10138
  class: "tw-mb-4 tw-mt-1 tw-shrink-0",
@@ -10137,7 +10147,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10137
10147
  ]),
10138
10148
  _: 1
10139
10149
  }, 8, ["label", "model-value"]),
10140
- $(n(Tl), {
10150
+ $(n(Ol), {
10141
10151
  label: n(r)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
10142
10152
  name: "confirm_pass",
10143
10153
  rules: "required|min:6",
@@ -10148,7 +10158,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10148
10158
  ref: "confirmPasswordField",
10149
10159
  modelValue: p.confirmPassword,
10150
10160
  "onUpdate:modelValue": [
10151
- S[2] || (S[2] = (B) => p.confirmPassword = B),
10161
+ S[2] || (S[2] = (D) => p.confirmPassword = D),
10152
10162
  k
10153
10163
  ],
10154
10164
  class: "tw-mb-4 tw-shrink-0",
@@ -10236,7 +10246,7 @@ const xh = { class: "vc-menu-item__content" }, Nh = { class: "vc-menu-item__titl
10236
10246
  });
10237
10247
  function jh(e) {
10238
10248
  const a = Ce(ji), t = lh();
10239
- hs(), De(ol, e.isEmbedded), e.isEmbedded && Ih(), e.internalRoutes && De(Xi, e.internalRoutes), e.dynamicModules !== void 0 && De(ho, e.dynamicModules), e.aiAgentConfig?.url && Ss({
10249
+ hs(), Be(il, e.isEmbedded), e.isEmbedded && Ih(), e.internalRoutes && Be(Xi, e.internalRoutes), e.dynamicModules !== void 0 && Be(ho, e.dynamicModules), e.aiAgentConfig?.url && Ss({
10240
10250
  config: e.aiAgentConfig,
10241
10251
  addGlobalToolbarButton: e.aiAgentAddGlobalToolbarButton ?? !0,
10242
10252
  isEmbedded: e.isEmbedded
@@ -10260,7 +10270,7 @@ function Xh(e) {
10260
10270
  component: Vh,
10261
10271
  group: "preferences",
10262
10272
  order: 20
10263
- }), e.registerSettingsMenuItem({ id: "change-password", component: Kh, group: "account", order: 30 }), e.registerSettingsMenuItem({ id: "logout", component: Yh, group: "account", order: 100 }), De(bo, a.hasUnread);
10273
+ }), e.registerSettingsMenuItem({ id: "change-password", component: Kh, group: "account", order: 30 }), e.registerSettingsMenuItem({ id: "logout", component: Yh, group: "account", order: 100 }), Be(bo, a.hasUnread);
10264
10274
  }
10265
10275
  const Qh = lt("useShellNavigation");
10266
10276
  function Zh() {
@@ -10282,7 +10292,7 @@ function Zh() {
10282
10292
  }
10283
10293
  const Jh = lt("use-app-hub");
10284
10294
  function ey() {
10285
- const { hasAccess: e } = sl(), a = D([]);
10295
+ const { hasAccess: e } = rl(), a = B([]);
10286
10296
  async function t() {
10287
10297
  return new Qi();
10288
10298
  }
@@ -10306,7 +10316,7 @@ function ey() {
10306
10316
  };
10307
10317
  }
10308
10318
  function ty(e) {
10309
- const a = D(!1), t = D(!1), { isAuthenticated: l } = Fl(), { loadHistory: r } = ql(), { appsList: i, switchApp: o, getApps: c } = ey();
10319
+ const a = B(!1), t = B(!1), { isAuthenticated: l } = Fl(), { loadHistory: r } = ql(), { appsList: i, switchApp: o, getApps: c } = ey();
10310
10320
  return oe(
10311
10321
  [() => e.isReady, l],
10312
10322
  async ([d, u]) => {
@@ -10338,28 +10348,28 @@ const ly = { class: "vc-app__main-content" }, o$ = /* @__PURE__ */ Q({
10338
10348
  () => i?.blades.value.some((_) => i.isMaximized(_.id)) ?? !1
10339
10349
  );
10340
10350
  lt("vc-app").debug("Init vc-app");
10341
- const d = zt(), u = d.query.EmbeddedMode === "true", v = D(null);
10351
+ const d = zt(), u = d.query.EmbeddedMode === "true", v = B(null);
10342
10352
  oe(
10343
10353
  () => d.fullPath,
10344
- () => xl(() => v.value)
10354
+ () => nl(() => v.value)
10345
10355
  ), oe(
10346
10356
  v,
10347
10357
  (_) => {
10348
- _ && xl(() => _);
10358
+ _ && nl(() => _);
10349
10359
  },
10350
10360
  { flush: "post" }
10351
10361
  );
10352
- const b = D();
10353
- De(yo, b);
10362
+ const b = B();
10363
+ Be(yo, b);
10354
10364
  const p = Qv();
10355
10365
  ys();
10356
- const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: k } = ty(a), { handleMenuItemClick: C, openRoot: S } = Zh(), T = Ce(Zi), x = Ce(ho, void 0), V = Ce("aiAgentConfig", void 0), B = Ce("aiAgentAddGlobalToolbarButton", !0), O = Ce(Ji, D(!1));
10366
+ const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: k } = ty(a), { handleMenuItemClick: C, openRoot: S } = Zh(), T = Ce(Zi), x = Ce(ho, void 0), V = Ce("aiAgentConfig", void 0), D = Ce("aiAgentAddGlobalToolbarButton", !0), O = Ce(Ji, B(!1));
10357
10367
  jh({
10358
10368
  isEmbedded: u,
10359
10369
  internalRoutes: T,
10360
10370
  dynamicModules: x,
10361
10371
  aiAgentConfig: V,
10362
- aiAgentAddGlobalToolbarButton: B
10372
+ aiAgentAddGlobalToolbarButton: D
10363
10373
  }), oe(O, (_) => {
10364
10374
  _ && St.error(
10365
10375
  "Unable to load application modules. Please check your connection and try refreshing the page.",
@@ -10667,38 +10677,43 @@ const ny = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, s$
10667
10677
  logoAlt: { default: "Logo" }
10668
10678
  },
10669
10679
  setup(e) {
10670
- const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = D(!1), i = D(!1);
10680
+ const a = B(null);
10681
+ et(() => nl(() => a.value));
10682
+ const t = e, r = Ut().currentRoute.value.meta?.appVersion, i = B(!1), o = B(!1);
10671
10683
  oe(
10672
- () => a.background,
10673
- (c) => {
10674
- if (i.value = !1, !c) return;
10675
- const d = new Image();
10676
- d.onload = () => {
10677
- i.value = !0;
10678
- }, d.src = c;
10684
+ () => t.background,
10685
+ (d) => {
10686
+ if (o.value = !1, !d) return;
10687
+ const u = new Image();
10688
+ u.onload = () => {
10689
+ o.value = !0;
10690
+ }, u.src = d;
10679
10691
  },
10680
10692
  { immediate: !0 }
10681
10693
  );
10682
- const o = y(() => {
10683
- if (a.background)
10694
+ const c = y(() => {
10695
+ if (t.background)
10684
10696
  return {
10685
- background: i.value ? `url(${a.background}) center / cover no-repeat` : void 0,
10686
- backgroundColor: a.bgColor || void 0
10697
+ background: o.value ? `url(${t.background}) center / cover no-repeat` : void 0,
10698
+ backgroundColor: t.bgColor || void 0
10687
10699
  };
10688
- if (a.bgColor)
10689
- return { backgroundColor: a.bgColor };
10700
+ if (t.bgColor)
10701
+ return { backgroundColor: t.bgColor };
10690
10702
  });
10691
- return (c, d) => (s(), g("main", {
10703
+ return (d, u) => (s(), g("main", {
10704
+ ref_key: "rootRef",
10705
+ ref: a,
10692
10706
  class: "vc-auth-layout",
10693
- style: he(o.value)
10707
+ tabindex: "-1",
10708
+ style: he(c.value)
10694
10709
  }, [
10695
10710
  w("div", uy, [
10696
10711
  e.logo ? (s(), g("img", {
10697
10712
  key: 0,
10698
10713
  src: e.logo,
10699
10714
  alt: e.logoAlt,
10700
- class: X(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded": r.value }]),
10701
- onLoad: d[0] || (d[0] = (u) => r.value = !0)
10715
+ class: X(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded": i.value }]),
10716
+ onLoad: u[0] || (u[0] = (v) => i.value = !0)
10702
10717
  }, null, 42, dy)) : L("", !0)
10703
10718
  ]),
10704
10719
  w("div", vy, [
@@ -10707,13 +10722,13 @@ const ny = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, s$
10707
10722
  e.subtitle ? (s(), g("p", py, U(e.subtitle), 1)) : L("", !0)
10708
10723
  ])) : L("", !0),
10709
10724
  w("div", gy, [
10710
- H(c.$slots, "default")
10725
+ H(d.$slots, "default")
10711
10726
  ])
10712
10727
  ]),
10713
- c.$slots.footer ? (s(), g("div", by, [
10714
- H(c.$slots, "footer")
10728
+ d.$slots.footer ? (s(), g("div", by, [
10729
+ H(d.$slots, "footer")
10715
10730
  ])) : L("", !0),
10716
- n(l) ? (s(), g("div", hy, U(n(l)), 1)) : L("", !0)
10731
+ n(r) ? (s(), g("div", hy, U(n(r)), 1)) : L("", !0)
10717
10732
  ], 4));
10718
10733
  }
10719
10734
  });
@@ -10762,7 +10777,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
10762
10777
  },
10763
10778
  emits: ["update:model-value"],
10764
10779
  setup(e, { emit: a }) {
10765
- const t = e, l = a, { te: r, t: i } = ze({ useScope: "global" }), o = D([]), c = D(!1), d = D([]), u = D(t.property), v = D(t.modelValue), b = D([]), p = D(!1), m = D();
10780
+ 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();
10766
10781
  oe(
10767
10782
  () => t.property,
10768
10783
  (O) => {
@@ -10831,7 +10846,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
10831
10846
  });
10832
10847
  }
10833
10848
  });
10834
- tt(async () => {
10849
+ et(async () => {
10835
10850
  await T(), await x(), d.value = o.value;
10836
10851
  });
10837
10852
  function S(O) {
@@ -10877,10 +10892,10 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
10877
10892
  async function V(O) {
10878
10893
  T(O);
10879
10894
  }
10880
- async function B() {
10895
+ async function D() {
10881
10896
  d.value.length && (o.value = d.value);
10882
10897
  }
10883
- return (O, M) => (s(), P(n(Tl), {
10898
+ return (O, M) => (s(), P(n(Ol), {
10884
10899
  key: f.value.key,
10885
10900
  label: f.value.displayName,
10886
10901
  name: f.value.name,
@@ -10905,7 +10920,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
10905
10920
  "current-language": e.currentLanguage,
10906
10921
  loading: c.value,
10907
10922
  onSearch: V,
10908
- onClose: B
10923
+ onClose: D
10909
10924
  }), 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, {
10910
10925
  modelValue: C.value,
10911
10926
  "onUpdate:modelValue": M[1] || (M[1] = (_) => C.value = _),
@@ -10935,7 +10950,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
10935
10950
  multivalue: f.value.multivalue,
10936
10951
  loading: c.value,
10937
10952
  onSearch: V,
10938
- onClose: B
10953
+ onClose: D
10939
10954
  }), 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, {
10940
10955
  modelValue: C.value,
10941
10956
  "onUpdate:modelValue": M[3] || (M[3] = (_) => C.value = _),
@@ -11092,7 +11107,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11092
11107
  multivalue: f.value.multivalue,
11093
11108
  loading: c.value,
11094
11109
  onSearch: V,
11095
- onClose: B
11110
+ onClose: D
11096
11111
  }), {
11097
11112
  "selected-item": I((_) => [
11098
11113
  w("div", Cy, [
@@ -11138,7 +11153,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11138
11153
  "current-language": e.currentLanguage,
11139
11154
  loading: c.value,
11140
11155
  onSearch: V,
11141
- onClose: B
11156
+ onClose: D
11142
11157
  }), {
11143
11158
  "selected-item": I((_) => [
11144
11159
  w("div", ky, [
@@ -11233,7 +11248,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11233
11248
  },
11234
11249
  emits: ["swiper-init", "swiper-resize", "slides-updated", "sortable-container"],
11235
11250
  setup(e, { emit: a }) {
11236
- const { t } = ze({ useScope: "global" }), l = e, r = a, i = [Io, ec, xo, tc], o = D(), c = D(), d = D();
11251
+ const { t } = ze({ useScope: "global" }), l = e, r = a, i = [Io, ec, xo, tc], o = B(), c = B(), d = B();
11237
11252
  function u(m) {
11238
11253
  d.value = m, o.value && c.value && (m.params.navigation = {
11239
11254
  ...m.params.navigation,
@@ -11265,7 +11280,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11265
11280
  }), p = m;
11266
11281
  }
11267
11282
  ), (m, h) => (s(), g("div", Sy, [
11268
- $(n(Ll), {
11283
+ $(n(Il), {
11269
11284
  modules: i,
11270
11285
  "slides-per-view": "auto",
11271
11286
  "space-between": e.gap,
@@ -11280,7 +11295,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11280
11295
  onSlidesUpdated: b
11281
11296
  }, {
11282
11297
  default: I(() => [
11283
- (s(!0), g(J, null, ve(e.images, (f, k) => (s(), P(n(Il), {
11298
+ (s(!0), g(J, null, ve(e.images, (f, k) => (s(), P(n(xl), {
11284
11299
  key: `img_${f.id || k}`,
11285
11300
  class: "vc-gallery-filmstrip__slide"
11286
11301
  }, {
@@ -11327,10 +11342,10 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11327
11342
  ])
11328
11343
  ]));
11329
11344
  }
11330
- }), Oy = { class: "vc-gallery-preview__header" }, My = ["title"], Ly = ["title"], Iy = { class: "vc-gallery-preview__body" }, xy = { class: "vc-gallery-preview__stage" }, Ny = ["src", "alt"], Dy = {
11345
+ }), Oy = { class: "vc-gallery-preview__header" }, My = ["title"], Ly = ["title"], Iy = { class: "vc-gallery-preview__body" }, xy = { class: "vc-gallery-preview__stage" }, Ny = ["src", "alt"], By = {
11331
11346
  key: 0,
11332
11347
  class: "vc-gallery-preview__filmstrip"
11333
- }, By = ["onClick"], Py = ["src", "alt", "onError"], Vy = { class: "vc-gallery-preview__counter" }, Fy = /* @__PURE__ */ Q({
11348
+ }, Dy = ["onClick"], Py = ["src", "alt", "onError"], Vy = { class: "vc-gallery-preview__counter" }, Fy = /* @__PURE__ */ Q({
11334
11349
  __name: "vc-gallery-preview",
11335
11350
  props: {
11336
11351
  images: { default: () => [] },
@@ -11338,7 +11353,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11338
11353
  },
11339
11354
  emits: ["close"],
11340
11355
  setup(e, { emit: a }) {
11341
- const t = a, l = e, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Ve(), o = D(l.index), c = D(!1), d = [lc], u = [xo], v = D(), b = D(), p = y(() => l.images[o.value]);
11356
+ 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]);
11342
11357
  oe(
11343
11358
  () => l.index,
11344
11359
  (O) => {
@@ -11380,12 +11395,12 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11380
11395
  function V(O) {
11381
11396
  O.key === "Escape" && (O.preventDefault(), t("close"));
11382
11397
  }
11383
- const B = oc(document.body);
11384
- return tt(() => {
11385
- window.addEventListener("keydown", V), B.value = !0;
11398
+ const D = oc(document.body);
11399
+ return et(() => {
11400
+ window.addEventListener("keydown", V), D.value = !0;
11386
11401
  }), He(() => {
11387
- window.removeEventListener("keydown", V), B.value = !1;
11388
- }), (O, M) => p.value ? (s(), P(n(cl), {
11402
+ window.removeEventListener("keydown", V), D.value = !1;
11403
+ }), (O, M) => p.value ? (s(), P(n(ul), {
11389
11404
  key: 0,
11390
11405
  "is-mobile-fullscreen": "",
11391
11406
  "is-fullscreen": "",
@@ -11421,7 +11436,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11421
11436
  content: I(() => [
11422
11437
  w("div", Iy, [
11423
11438
  w("div", xy, [
11424
- $(n(Ll), {
11439
+ $(n(Il), {
11425
11440
  modules: d,
11426
11441
  "initial-slide": o.value,
11427
11442
  "space-between": 0,
@@ -11433,7 +11448,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11433
11448
  onSlideChange: f
11434
11449
  }, {
11435
11450
  default: I(() => [
11436
- (s(!0), g(J, null, ve(e.images, (R, A) => (s(), P(n(Il), {
11451
+ (s(!0), g(J, null, ve(e.images, (R, A) => (s(), P(n(xl), {
11437
11452
  key: A,
11438
11453
  class: "vc-gallery-preview__slide"
11439
11454
  }, {
@@ -11475,8 +11490,8 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11475
11490
  ])) : L("", !0)
11476
11491
  ], 64))
11477
11492
  ]),
11478
- e.images.length > 1 ? (s(), g("div", Dy, [
11479
- $(n(Ll), {
11493
+ e.images.length > 1 ? (s(), g("div", By, [
11494
+ $(n(Il), {
11480
11495
  modules: u,
11481
11496
  "slides-per-view": "auto",
11482
11497
  "space-between": 6,
@@ -11487,7 +11502,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11487
11502
  onSwiper: h
11488
11503
  }, {
11489
11504
  default: I(() => [
11490
- (s(!0), g(J, null, ve(e.images, (R, A) => (s(), P(n(Il), {
11505
+ (s(!0), g(J, null, ve(e.images, (R, A) => (s(), P(n(xl), {
11491
11506
  key: A,
11492
11507
  class: "vc-gallery-preview__thumb-slide"
11493
11508
  }, {
@@ -11504,7 +11519,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11504
11519
  class: "vc-gallery-preview__thumb-img",
11505
11520
  onError: (_) => T(_, R.url)
11506
11521
  }, null, 40, Py)
11507
- ], 10, By)
11522
+ ], 10, Dy)
11508
11523
  ]),
11509
11524
  _: 2
11510
11525
  }, 1024))), 128))
@@ -11520,7 +11535,7 @@ const wy = ["onClick", "onKeydown"], Cy = { class: "tw-flex tw-items-center tw-g
11520
11535
  }
11521
11536
  });
11522
11537
  function pi(e) {
11523
- const a = D(0), { open: t } = jo(
11538
+ const a = B(0), { open: t } = jo(
11524
11539
  y(() => ({
11525
11540
  component: Fy,
11526
11541
  props: {
@@ -11594,7 +11609,7 @@ const Uy = { class: "vc-image-upload" }, zy = {
11594
11609
  }
11595
11610
  });
11596
11611
  function Wy(e, a) {
11597
- const t = D(), l = D(!1), r = D(), i = y(() => xe(a.disabled) || xe(e).length <= 1);
11612
+ const t = B(), l = B(!1), r = B(), i = y(() => xe(a.disabled) || xe(e).length <= 1);
11598
11613
  let o = null, c = null, d = 0;
11599
11614
  function u(h) {
11600
11615
  d = h.clientX;
@@ -11613,7 +11628,7 @@ function Wy(e, a) {
11613
11628
  document.removeEventListener("pointermove", u, !0), c && (clearInterval(c), c = null);
11614
11629
  }
11615
11630
  function p(h) {
11616
- m(), o = Bo.create(h, {
11631
+ m(), o = Do.create(h, {
11617
11632
  handle: ".vc-gallery-item__drag-handle",
11618
11633
  animation: 250,
11619
11634
  ghostClass: "vc-gallery__item--ghost",
@@ -11685,7 +11700,7 @@ function Ky(e, a) {
11685
11700
  return { onUpload: t };
11686
11701
  }
11687
11702
  function Yy(e) {
11688
- const a = D(!1), t = D(!0), l = D();
11703
+ const a = B(!1), t = B(!0), l = B();
11689
11704
  function r() {
11690
11705
  a.value = !a.value;
11691
11706
  }
@@ -11764,7 +11779,7 @@ const jy = {
11764
11779
  setup(e, { emit: a }) {
11765
11780
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Ve(), o = Qe(), c = y(() => t.variant === "file-upload"), d = y(
11766
11781
  () => t.customText ? { text: t.customText.dragHere, link: t.customText.browse } : void 0
11767
- ), u = D([]);
11782
+ ), u = B([]);
11768
11783
  oe(
11769
11784
  () => t.images,
11770
11785
  (A) => {
@@ -11802,7 +11817,7 @@ const jy = {
11802
11817
  onUpload: (A, _) => l("upload", A, _)
11803
11818
  }), h = pi(u), f = { sm: "128x128", md: "216x216", lg: "348x348" }, k = y(() => t.thumbnailSize ?? f[t.size]), C = Yy({
11804
11819
  imageCount: y(() => u.value.length)
11805
- }), S = D();
11820
+ }), S = B();
11806
11821
  function T() {
11807
11822
  S.value?.click();
11808
11823
  }
@@ -11810,16 +11825,16 @@ const jy = {
11810
11825
  const _ = A.target;
11811
11826
  _.files && _.files.length && (m.onUpload(_.files), _.value = "");
11812
11827
  }
11813
- const V = D(!1);
11814
- let B = 0;
11828
+ const V = B(!1);
11829
+ let D = 0;
11815
11830
  function O(A) {
11816
- A.dataTransfer?.types.includes("Files") && (B++, V.value = !0);
11831
+ A.dataTransfer?.types.includes("Files") && (D++, V.value = !0);
11817
11832
  }
11818
11833
  function M(A) {
11819
- A.dataTransfer?.types.includes("Files") && (B--, B <= 0 && (V.value = !1, B = 0));
11834
+ A.dataTransfer?.types.includes("Files") && (D--, D <= 0 && (V.value = !1, D = 0));
11820
11835
  }
11821
11836
  function R(A) {
11822
- V.value = !1, B = 0;
11837
+ V.value = !1, D = 0;
11823
11838
  const _ = A.dataTransfer?.files;
11824
11839
  _ && _.length && m.onUpload(_);
11825
11840
  }
@@ -12052,7 +12067,7 @@ const jy = {
12052
12067
  },
12053
12068
  variant: y(() => a.variant)
12054
12069
  };
12055
- return De(Ul, i), (o, c) => (s(), g("div", {
12070
+ return Be(Ul, i), (o, c) => (s(), g("div", {
12056
12071
  role: "table",
12057
12072
  class: X(["vc-table-composition", e.variant && `vc-table-composition--${e.variant}`])
12058
12073
  }, [
@@ -12129,7 +12144,7 @@ const uw = /* @__PURE__ */ So(sw, [["render", cw]]), dw = ["data-items-count"],
12129
12144
  const t = e, l = a, r = Ce(Ul, null), i = Ce(
12130
12145
  $o,
12131
12146
  y(() => 0)
12132
- ), o = Ce(Ro, D(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12147
+ ), o = Ce(Ro, B(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12133
12148
  l("click", m);
12134
12149
  }, v = (m) => {
12135
12150
  c.value && l("space-press", m);
@@ -12250,7 +12265,7 @@ const uw = /* @__PURE__ */ So(sw, [["render", cw]]), dw = ["data-items-count"],
12250
12265
  flex: t.width ? `0 0 ${t.width}` : "1 1 0px"
12251
12266
  })), o = (h) => {
12252
12267
  t.sortable && l("sort", h);
12253
- }, c = D(!1), d = (h) => {
12268
+ }, c = B(!1), d = (h) => {
12254
12269
  c.value = !0, l("resizeStart", t.columnId, h);
12255
12270
  const f = () => {
12256
12271
  c.value = !1, document.removeEventListener("mouseup", f);
@@ -12415,7 +12430,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12415
12430
  ])) : L("", !0)
12416
12431
  ]));
12417
12432
  }
12418
- }), xw = { class: "vc-column-switcher-panel__content" }, Nw = { class: "vc-column-switcher-panel__label" }, Dw = /* @__PURE__ */ Q({
12433
+ }), xw = { class: "vc-column-switcher-panel__content" }, Nw = { class: "vc-column-switcher-panel__label" }, Bw = /* @__PURE__ */ Q({
12419
12434
  __name: "TableColumnSwitcher",
12420
12435
  props: {
12421
12436
  columns: {},
@@ -12483,7 +12498,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12483
12498
  _: 1
12484
12499
  }, 8, ["show", "anchor-ref", "title"]));
12485
12500
  }
12486
- }), Bw = ["title", "aria-expanded", "onKeydown"], Pw = ["tabindex", "aria-disabled", "onClick", "onKeydown"], Vw = { class: "vc-table-row-actions__dropdown-text" }, Fw = /* @__PURE__ */ Q({
12501
+ }), Dw = ["title", "aria-expanded", "onKeydown"], Pw = ["tabindex", "aria-disabled", "onClick", "onKeydown"], Vw = { class: "vc-table-row-actions__dropdown-text" }, Fw = /* @__PURE__ */ Q({
12487
12502
  __name: "TableRowActions",
12488
12503
  props: {
12489
12504
  actions: {},
@@ -12495,7 +12510,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12495
12510
  },
12496
12511
  emits: ["action"],
12497
12512
  setup(e, { emit: a }) {
12498
- const t = e, l = a, r = Ce(Ul, 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, {
12513
+ const t = e, l = a, r = Ce(Ul, 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 } = sl(c, d, {
12499
12514
  placement: "bottom-end",
12500
12515
  middleware: () => [Yn(4), Kn(), zl({ padding: 8 })]
12501
12516
  });
@@ -12514,7 +12529,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12514
12529
  Re(() => {
12515
12530
  d.value?.querySelectorAll('[role="menuitem"]:not([aria-disabled])')?.[0]?.focus();
12516
12531
  });
12517
- }, B = async () => {
12532
+ }, D = async () => {
12518
12533
  i.value || (i.value = !0, await Re(), o.value = !0), V();
12519
12534
  }, O = (E) => {
12520
12535
  const N = Array.from(
@@ -12592,7 +12607,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12592
12607
  "aria-haspopup": "menu",
12593
12608
  "aria-expanded": i.value,
12594
12609
  onClick: ue(S, ["stop", "prevent"]),
12595
- onKeydown: Ae(ue(B, ["prevent"]), ["down"]),
12610
+ onKeydown: Ae(ue(D, ["prevent"]), ["down"]),
12596
12611
  onMousedown: N[0] || (N[0] = ue(() => {
12597
12612
  }, ["stop"]))
12598
12613
  }, [
@@ -12600,7 +12615,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12600
12615
  icon: "lucide-ellipsis-vertical",
12601
12616
  size: "s"
12602
12617
  })
12603
- ], 40, Bw),
12618
+ ], 40, Dw),
12604
12619
  (s(), P(gt, { to: n(v) }, [
12605
12620
  o.value ? (s(), g("div", {
12606
12621
  key: 0,
@@ -12655,7 +12670,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12655
12670
  [_t, m.value || b.value || i.value]
12656
12671
  ]);
12657
12672
  }
12658
- }), nl = /* @__PURE__ */ Q({
12673
+ }), al = /* @__PURE__ */ Q({
12659
12674
  __name: "TableCheckbox",
12660
12675
  props: {
12661
12676
  modelValue: { type: Boolean },
@@ -12781,7 +12796,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12781
12796
  setup(e, { expose: a, emit: t }) {
12782
12797
  const l = t;
12783
12798
  ht();
12784
- const r = D(null), i = D(!1), o = (u) => {
12799
+ const r = B(null), i = B(!1), o = (u) => {
12785
12800
  l("update:modelValue", u ?? "");
12786
12801
  }, c = () => {
12787
12802
  i.value = !i.value, l("filterToggle", i.value);
@@ -12936,7 +12951,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12936
12951
  },
12937
12952
  emits: ["apply", "clear"],
12938
12953
  setup(e, { emit: a }) {
12939
- const t = e, l = a, r = D(null), i = D(null), o = D(null), c = D(null), d = D(!1), u = D(null), v = D(""), b = D(""), p = () => {
12954
+ 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 = () => {
12940
12955
  if (t.filterType === "dateRange" && t.modelValue && typeof t.modelValue == "object" && !Array.isArray(t.modelValue)) {
12941
12956
  const N = t.modelValue;
12942
12957
  v.value = N.start ?? "", b.value = N.end ?? "", u.value = null;
@@ -12951,7 +12966,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12951
12966
  }, k = y(() => {
12952
12967
  const N = t.modelValue;
12953
12968
  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;
12954
- }), C = D({}), S = () => {
12969
+ }), C = B({}), S = () => {
12955
12970
  if (!r.value || !i.value) return;
12956
12971
  const N = r.value.getBoundingClientRect(), F = i.value.getBoundingClientRect();
12957
12972
  let z = N.bottom + 4, K = N.left;
@@ -12983,7 +12998,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12983
12998
  if (F.length === 0) return;
12984
12999
  const z = F[0], K = F[F.length - 1];
12985
13000
  N.shiftKey && document.activeElement === z ? (N.preventDefault(), K.focus()) : !N.shiftKey && document.activeElement === K && (N.preventDefault(), z.focus());
12986
- }, B = () => {
13001
+ }, D = () => {
12987
13002
  const N = {};
12988
13003
  if (t.filterType === "dateRange" && t.rangeFields)
12989
13004
  v.value && (N[t.rangeFields[0]] = v.value), b.value && (N[t.rangeFields[1]] = b.value);
@@ -12993,7 +13008,7 @@ const Aw = /* @__PURE__ */ So(Sw, [["render", Rw]]), Tw = { class: "vc-table-com
12993
13008
  }
12994
13009
  return N;
12995
13010
  }, O = () => {
12996
- l("apply", B()), x();
13011
+ l("apply", D()), x();
12997
13012
  }, M = () => {
12998
13013
  u.value = null, v.value = "", b.value = "", l("clear"), x();
12999
13014
  }, R = (N) => {
@@ -13211,7 +13226,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13211
13226
  for (const M of t.filters)
13212
13227
  O[M.id] = i(M.filter);
13213
13228
  return O;
13214
- }), v = (O) => u.value[O] || "none", b = D({}), p = () => {
13229
+ }), v = (O) => u.value[O] || "none", b = B({}), p = () => {
13215
13230
  const O = {};
13216
13231
  for (const M of t.filters)
13217
13232
  O[M.id] = t.modelValue[M.id] ?? null;
@@ -13287,7 +13302,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13287
13302
  }, V = () => {
13288
13303
  const O = T();
13289
13304
  l("update:modelValue", { ...b.value }), l("apply", O), x();
13290
- }, B = () => {
13305
+ }, D = () => {
13291
13306
  const O = {};
13292
13307
  for (const M of t.filters)
13293
13308
  O[M.id] = null;
@@ -13310,7 +13325,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13310
13325
  $(n(Se), {
13311
13326
  variant: "outline",
13312
13327
  size: "sm",
13313
- onClick: B
13328
+ onClick: D
13314
13329
  }, {
13315
13330
  default: I(() => [
13316
13331
  fe(U(O.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
@@ -13395,7 +13410,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13395
13410
  $(n(Se), {
13396
13411
  variant: "outline",
13397
13412
  size: "sm",
13398
- onClick: B
13413
+ onClick: D
13399
13414
  }, {
13400
13415
  default: I(() => [
13401
13416
  fe(U(O.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
@@ -13496,10 +13511,10 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13496
13511
  ])
13497
13512
  ]));
13498
13513
  }
13499
- }), D0 = {
13514
+ }), B0 = {
13500
13515
  key: 2,
13501
13516
  class: "vc-cell-renderer__row-reorder-placeholder"
13502
- }, B0 = {
13517
+ }, D0 = {
13503
13518
  key: 3,
13504
13519
  class: "vc-cell-renderer__row-editor"
13505
13520
  }, P0 = {
@@ -13550,7 +13565,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13550
13565
  !t.column.slots.editor && (t.isCellEditing || t.isRowEditing && t.column.props.editable) && i();
13551
13566
  };
13552
13567
  return (C, S) => e.column.props.selectionMode ? (s(), g(J, { key: 0 }, [
13553
- e.column.props.selectionMode === "multiple" ? (s(), P(nl, {
13568
+ e.column.props.selectionMode === "multiple" ? (s(), P(al, {
13554
13569
  key: 0,
13555
13570
  "model-value": e.isSelected,
13556
13571
  disabled: !e.isSelectable,
@@ -13582,7 +13597,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13582
13597
  ]),
13583
13598
  _: 1
13584
13599
  }, 8, ["aria-label", "aria-expanded", "data-is-expanded"])) : L("", !0)
13585
- ], 64)) : e.column.props.rowReorder ? (s(), g("div", D0)) : e.column.props.rowEditor ? (s(), g("div", B0, [
13600
+ ], 64)) : e.column.props.rowReorder ? (s(), g("div", B0)) : e.column.props.rowEditor ? (s(), g("div", D0, [
13586
13601
  e.isRowEditing ? (s(), g(J, { key: 0 }, [
13587
13602
  $(n(Se), {
13588
13603
  variant: "success",
@@ -13778,7 +13793,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13778
13793
  }, ["stop"]))
13779
13794
  }, {
13780
13795
  default: I(() => [
13781
- e.selectionMode === "multiple" ? (s(), P(nl, {
13796
+ e.selectionMode === "multiple" ? (s(), P(al, {
13782
13797
  key: 0,
13783
13798
  "model-value": e.isSelected,
13784
13799
  disabled: !e.isSelectable,
@@ -13802,7 +13817,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13802
13817
  "cell-class": V.props.bodyClass,
13803
13818
  "line-clamp": V.props.lineClamp,
13804
13819
  style: he(e.getCellStyle(V.props)),
13805
- onClick: (B) => C(V)
13820
+ onClick: (D) => C(V)
13806
13821
  }, {
13807
13822
  default: I(() => [
13808
13823
  $(V0, {
@@ -13824,9 +13839,9 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13824
13839
  onRowEdit: b,
13825
13840
  onRowSave: p,
13826
13841
  onRowCancel: m,
13827
- onEditComplete: (B) => h(V.props.field || V.props.id, B),
13828
- onEditCancel: (B) => f(V.props.field || V.props.id),
13829
- onCellValueChange: (B) => k(V.props.field || V.props.id, B)
13842
+ onEditComplete: (D) => h(V.props.field || V.props.id, D),
13843
+ onEditCancel: (D) => f(V.props.field || V.props.id),
13844
+ onCellValueChange: (D) => k(V.props.field || V.props.id, D)
13830
13845
  }, 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"])
13831
13846
  ]),
13832
13847
  _: 2
@@ -13965,7 +13980,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
13965
13980
  for (const E of l.groupedData)
13966
13981
  _.set(E.key, E.count);
13967
13982
  return _;
13968
- }), d = (_) => l.getItemGroupKey?.(_) ?? "", u = (_) => _ === 0 || d(o.value[_]) !== d(o.value[_ - 1]), v = (_) => _ === o.value.length - 1 || d(o.value[_]) !== d(o.value[_ + 1]), b = (_, E) => l.groupingEnabled ? l.getGlobalIndex(_) : E, p = (_, E) => r("group-toggle", _, E), m = (_, E, N) => r("row-click", _, E, N), h = (_) => r("row-mouseenter", _), f = () => r("row-mouseleave"), k = (_) => r("selection-change", _), C = (_, E, N) => r("expand-toggle", _, E, N), S = (_, E) => r("row-edit", _, E), T = (_, E) => r("row-save", _, E), x = (_, 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);
13983
+ }), 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), x = (_, 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);
13969
13984
  return a({ listEl: A }), (_, E) => (s(), g("div", {
13970
13985
  class: "vc-data-table__body",
13971
13986
  role: e.items.length ? "rowgroup" : "presentation",
@@ -14021,7 +14036,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14021
14036
  onRowSave: () => T(N, b(N, F)),
14022
14037
  onRowCancel: () => x(N, b(N, F)),
14023
14038
  onEditComplete: (z, K) => V(N, z, b(N, F), K),
14024
- onEditCancel: (z) => B(N, z, b(N, F)),
14039
+ onEditCancel: (z) => D(N, z, b(N, F)),
14025
14040
  onCellValueChange: (z, K) => O(z, b(N, F), K),
14026
14041
  onCellClick: (z) => M(N, z.props.field || z.props.id, b(N, F), z),
14027
14042
  onGroupToggle: (z) => p(d(N), z)
@@ -14063,11 +14078,11 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14063
14078
  isEditing: { type: Boolean }
14064
14079
  },
14065
14080
  setup(e) {
14066
- const a = e, t = D(null), l = D(!1), r = () => {
14081
+ const a = e, t = B(null), l = B(!1), r = () => {
14067
14082
  const i = t.value;
14068
14083
  l.value = !!i && i.scrollWidth > i.clientWidth;
14069
14084
  };
14070
- return Do(t, r), oe(
14085
+ return Bo(t, r), oe(
14071
14086
  () => [a.title, a.required, a.isEditing],
14072
14087
  () => requestAnimationFrame(r)
14073
14088
  ), (i, o) => (s(), P(n(pt), {
@@ -14126,7 +14141,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14126
14141
  },
14127
14142
  emits: ["select-all", "sort", "resize-start", "reorder-start", "reorder-over", "reorder-drop", "filter-apply", "filter-clear", "column-switcher-click"],
14128
14143
  setup(e, { expose: a, emit: t }) {
14129
- const l = t, r = D(null);
14144
+ const l = t, r = B(null);
14130
14145
  a({
14131
14146
  /** The column switcher action element (for dropdown anchor positioning) */
14132
14147
  columnSwitcherEl: y(() => r.value)
@@ -14161,7 +14176,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14161
14176
  class: "vc-data-table__selection-cell"
14162
14177
  }, {
14163
14178
  default: I(() => [
14164
- e.selectionMode === "multiple" ? (s(), P(nl, {
14179
+ e.selectionMode === "multiple" ? (s(), P(al, {
14165
14180
  key: 0,
14166
14181
  "model-value": e.allSelected,
14167
14182
  indeterminate: e.someSelected,
@@ -14193,7 +14208,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14193
14208
  }, {
14194
14209
  default: I(() => [
14195
14210
  f.props.selectionMode ? (s(), g(J, { key: 0 }, [
14196
- f.props.selectionMode === "multiple" ? (s(), P(nl, {
14211
+ f.props.selectionMode === "multiple" ? (s(), P(al, {
14197
14212
  key: 0,
14198
14213
  "model-value": e.allSelected,
14199
14214
  indeterminate: e.someSelected,
@@ -14231,7 +14246,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14231
14246
  updateStartDate: T,
14232
14247
  endDate: x,
14233
14248
  updateEndDate: V,
14234
- applyFilter: B,
14249
+ applyFilter: D,
14235
14250
  clearFilter: O
14236
14251
  }) => [
14237
14252
  $(n(ll), {
@@ -14244,7 +14259,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14244
14259
  updateStartDate: T,
14245
14260
  endDate: x,
14246
14261
  updateEndDate: V,
14247
- applyFilter: B,
14262
+ applyFilter: D,
14248
14263
  clearFilter: O
14249
14264
  }
14250
14265
  }, null, 8, ["slot-fn", "scope"])
@@ -14309,7 +14324,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14309
14324
  _: 1
14310
14325
  }));
14311
14326
  }
14312
- }), kl = /* @__PURE__ */ Q({
14327
+ }), El = /* @__PURE__ */ Q({
14313
14328
  __name: "MobileCellRenderer",
14314
14329
  props: {
14315
14330
  config: {},
@@ -14415,7 +14430,7 @@ const h0 = { class: "vc-global-filters-panel__content" }, y0 = { class: "vc-glob
14415
14430
  }
14416
14431
  }), yi = Symbol();
14417
14432
  function u1() {
14418
- const e = D(null);
14433
+ const e = B(null);
14419
14434
  function a(l) {
14420
14435
  e.value = l;
14421
14436
  }
@@ -14423,7 +14438,7 @@ function u1() {
14423
14438
  activeSwipeId: e,
14424
14439
  setActiveSwipe: a
14425
14440
  };
14426
- return De(yi, t), t;
14441
+ return Be(yi, t), t;
14427
14442
  }
14428
14443
  function d1() {
14429
14444
  const e = Ce(yi);
@@ -14475,7 +14490,7 @@ const v1 = {
14475
14490
  function i(re, ie) {
14476
14491
  l("cell-value-change", re.field || re.id, ie.value);
14477
14492
  }
14478
- const o = D(null), c = D(null), d = D(!1), u = D(null);
14493
+ const o = B(null), c = B(null), d = B(!1), u = B(null);
14479
14494
  function v() {
14480
14495
  !t.selectionMode || p.value !== 0 || h.value || (d.value = !0, u.value = setTimeout(() => {
14481
14496
  d.value && l("select", t.item, t.index), d.value = !1;
@@ -14484,7 +14499,7 @@ const v1 = {
14484
14499
  function b() {
14485
14500
  u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
14486
14501
  }
14487
- const p = D(0), m = D(0), h = D(!1), f = D(!1), k = D(null), C = D(0), S = D(0), T = D(0), x = D(0), V = D(0), B = D(0), O = D(null), { activeSwipeId: M, setActiveSwipe: R } = d1(), 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(() => {
14502
+ 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), x = B(0), V = B(0), D = B(0), O = B(null), { activeSwipeId: M, setActiveSwipe: R } = d1(), 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(() => {
14488
14503
  const re = E.value.length;
14489
14504
  return Math.min(re, re > 2 ? 3 : 2) * 70;
14490
14505
  });
@@ -14505,7 +14520,7 @@ const v1 = {
14505
14520
  function de(re) {
14506
14521
  if (h.value || E.value.length === 0) return;
14507
14522
  const ie = re.touches[0];
14508
- C.value = ie.clientX, S.value = ie.clientY, T.value = p.value, x.value = 0, V.value = Date.now(), B.value = ie.clientX, O.value = null, R(String(A.value));
14523
+ C.value = ie.clientX, S.value = ie.clientY, T.value = p.value, x.value = 0, V.value = Date.now(), D.value = ie.clientX, O.value = null, R(String(A.value));
14509
14524
  }
14510
14525
  function Y(re) {
14511
14526
  if (h.value || E.value.length === 0 || M.value !== String(A.value)) return;
@@ -14521,7 +14536,7 @@ const v1 = {
14521
14536
  return;
14522
14537
  re.preventDefault();
14523
14538
  const ye = Date.now(), Ee = ye - V.value;
14524
- Ee > 0 && (x.value = (te - B.value) / Ee), V.value = ye, B.value = te;
14539
+ Ee > 0 && (x.value = (te - D.value) / Ee), V.value = ye, D.value = te;
14525
14540
  let $e = T.value + me;
14526
14541
  if ($e < -K.value) {
14527
14542
  const We = $e + K.value;
@@ -14573,7 +14588,7 @@ const v1 = {
14573
14588
  function ae(re) {
14574
14589
  l("action", re, t.item, t.index);
14575
14590
  }
14576
- return tt(() => {
14591
+ return et(() => {
14577
14592
  c.value && (c.value.addEventListener("touchstart", de, { passive: !0 }), c.value.addEventListener("touchmove", Y, { passive: !1 }), c.value.addEventListener("touchend", q, { passive: !0 }));
14578
14593
  }), He(() => {
14579
14594
  c.value && (c.value.removeEventListener("touchstart", de), c.value.removeEventListener("touchmove", Y), c.value.removeEventListener("touchend", q)), k.value !== null && cancelAnimationFrame(k.value), u.value && clearTimeout(u.value);
@@ -14658,7 +14673,7 @@ const v1 = {
14658
14673
  }])
14659
14674
  }, [
14660
14675
  e.layout.image ? (s(), g("div", v1, [
14661
- $(kl, {
14676
+ $(El, {
14662
14677
  config: e.layout.image,
14663
14678
  item: e.item,
14664
14679
  index: e.index,
@@ -14670,7 +14685,7 @@ const v1 = {
14670
14685
  ])) : L("", !0),
14671
14686
  w("div", f1, [
14672
14687
  e.layout.title ? (s(), g("div", m1, [
14673
- $(kl, {
14688
+ $(El, {
14674
14689
  config: e.layout.title,
14675
14690
  item: e.item,
14676
14691
  index: e.index,
@@ -14692,7 +14707,7 @@ const v1 = {
14692
14707
  w("span", {
14693
14708
  class: X(["vc-data-table-mobile-card__field-value", { "vc-data-table-mobile-card__field-value--editing": e.isInlineEditing }])
14694
14709
  }, [
14695
- $(kl, {
14710
+ $(El, {
14696
14711
  config: te,
14697
14712
  item: e.item,
14698
14713
  index: e.index,
@@ -14705,7 +14720,7 @@ const v1 = {
14705
14720
  ], 2))), 128))
14706
14721
  ], 2)) : L("", !0),
14707
14722
  e.layout.statuses.length > 0 ? (s(), g("div", g1, [
14708
- (s(!0), g(J, null, ve(e.layout.statuses, (te) => (s(), P(kl, {
14723
+ (s(!0), g(J, null, ve(e.layout.statuses, (te) => (s(), P(El, {
14709
14724
  key: te.id,
14710
14725
  config: te,
14711
14726
  item: e.item,
@@ -14784,7 +14799,7 @@ const v1 = {
14784
14799
  onAction: ae
14785
14800
  }, null, 8, ["open", "title", "actions", "cancel-label"])
14786
14801
  ], 34)), [
14787
- [n(rl), ne]
14802
+ [n(cl), ne]
14788
14803
  ]);
14789
14804
  }
14790
14805
  }), tl = ["top-left", "top-right", "bottom-left", "bottom-right"], wi = 4, S1 = /* @__PURE__ */ new Set(["status", "status-icon"]), $1 = /* @__PURE__ */ new Set(["text", "link", "html"]);
@@ -14804,7 +14819,7 @@ function R1(e, a) {
14804
14819
  return "field";
14805
14820
  }
14806
14821
  }
14807
- function El(e, a, t = !1) {
14822
+ function Sl(e, a, t = !1) {
14808
14823
  return {
14809
14824
  id: e.props.id,
14810
14825
  field: e.props.field,
@@ -14826,12 +14841,12 @@ function T1(e) {
14826
14841
  if (t.length === 0)
14827
14842
  return a;
14828
14843
  const l = t.find((d) => d.props.type === "image"), r = t.filter((d) => S1.has(d.props.type ?? "")), i = t.filter((d) => d !== l && !r.includes(d)), o = i.find((d) => $1.has(d.props.type ?? "")) ?? i[0];
14829
- o && a.push(El(o, "top-left", !0)), l && a.push(El(l, "image"));
14844
+ o && a.push(Sl(o, "top-left", !0)), l && a.push(Sl(l, "image"));
14830
14845
  for (const d of r)
14831
- a.push(El(d, "status"));
14846
+ a.push(Sl(d, "status"));
14832
14847
  const c = i.filter((d) => d !== o).slice(0, wi);
14833
14848
  for (let d = 0; d < c.length; d++)
14834
- a.push(El(c[d], tl[d]));
14849
+ a.push(Sl(c[d], tl[d]));
14835
14850
  return a;
14836
14851
  }
14837
14852
  function O1(e) {
@@ -14898,7 +14913,7 @@ function O1(e) {
14898
14913
  mobileVisibleColumns: t
14899
14914
  };
14900
14915
  }
14901
- const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc-pull-to-refresh__text" }, I1 = 0.08, x1 = 0.7, N1 = 1, $n = 60, D1 = /* @__PURE__ */ Q({
14916
+ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc-pull-to-refresh__text" }, I1 = 0.08, x1 = 0.7, N1 = 1, $n = 60, B1 = /* @__PURE__ */ Q({
14902
14917
  __name: "PullToRefresh",
14903
14918
  props: {
14904
14919
  enabled: { type: Boolean, default: !0 },
@@ -14910,13 +14925,13 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
14910
14925
  },
14911
14926
  emits: ["refresh"],
14912
14927
  setup(e, { expose: a, emit: t }) {
14913
- const l = e, { t: r } = ze({ useScope: "global" }), i = t, { isMobile: o } = Ve(), c = D(null), d = D(0), u = D(!1), v = D(!1), b = D(!1), p = D(null), m = D(0), h = D(0), f = D(0), k = D(0), C = y(() => l.enabled && o.value && !l.refreshing), S = y(() => l.refreshing ? "lucide-refresh-cw" : "lucide-arrow-down"), T = y(() => ({
14928
+ 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(() => ({
14914
14929
  "vc-pull-to-refresh__icon--rotate": v.value && !l.refreshing,
14915
14930
  "vc-pull-to-refresh__icon--spin": l.refreshing
14916
14931
  })), x = 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(() => ({
14917
14932
  transform: `translateY(${Math.min(d.value, $n + 20) - $n}px)`,
14918
14933
  opacity: Math.min(d.value / l.threshold, 1)
14919
- })), B = y(() => ({
14934
+ })), D = y(() => ({
14920
14935
  transform: `translateY(${d.value}px)`
14921
14936
  }));
14922
14937
  function O() {
@@ -14998,13 +15013,13 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
14998
15013
  ], 4),
14999
15014
  w("div", {
15000
15015
  class: "vc-pull-to-refresh__content",
15001
- style: he(B.value)
15016
+ style: he(D.value)
15002
15017
  }, [
15003
15018
  H(E.$slots, "default")
15004
15019
  ], 4)
15005
15020
  ], 544));
15006
15021
  }
15007
- }), B1 = { class: "vc-data-table-mobile-view" }, P1 = {
15022
+ }), D1 = { class: "vc-data-table-mobile-view" }, P1 = {
15008
15023
  key: 0,
15009
15024
  class: "vc-data-table-mobile-view__empty"
15010
15025
  }, V1 = { class: "vc-data-table-mobile-view__empty-content" }, F1 = { class: "vc-data-table-mobile-view__empty-text" }, U1 = /* @__PURE__ */ Q({
@@ -15058,8 +15073,8 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15058
15073
  icon: V.icon || "lucide-ellipsis",
15059
15074
  type: m(V.variant),
15060
15075
  disabled: V.disabled,
15061
- clickHandler: (B, O) => {
15062
- V.clickHandler?.(B, O);
15076
+ clickHandler: (D, O) => {
15077
+ V.clickHandler?.(D, O);
15063
15078
  }
15064
15079
  })) : [];
15065
15080
  }
@@ -15084,12 +15099,12 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15084
15099
  function k(T, x, V) {
15085
15100
  r("action", T, x, V);
15086
15101
  }
15087
- const C = D(null), S = y(() => C.value ?? void 0);
15102
+ const C = B(null), S = y(() => C.value ?? void 0);
15088
15103
  return a({
15089
15104
  hasMobileColumns: c,
15090
15105
  mobileLayout: o,
15091
15106
  listEl: S
15092
- }), (T, x) => (s(), P(D1, {
15107
+ }), (T, x) => (s(), P(B1, {
15093
15108
  enabled: e.pullToRefresh,
15094
15109
  refreshing: e.loading,
15095
15110
  "pull-text": e.pullToRefreshText?.pull,
@@ -15098,7 +15113,7 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15098
15113
  onRefresh: x[0] || (x[0] = (V) => r("refresh"))
15099
15114
  }, {
15100
15115
  default: I(() => [
15101
- w("div", B1, [
15116
+ w("div", D1, [
15102
15117
  !e.loading && e.items.length === 0 ? (s(), g("div", P1, [
15103
15118
  H(T.$slots, "empty", {}, () => [
15104
15119
  w("div", V1, [
@@ -15126,10 +15141,10 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15126
15141
  ref: C,
15127
15142
  class: "vc-data-table-mobile-view__list"
15128
15143
  }, [
15129
- (s(!0), g(J, null, ve(e.items, (V, B) => (s(), P(E1, {
15130
- key: b(V, B),
15144
+ (s(!0), g(J, null, ve(e.items, (V, D) => (s(), P(E1, {
15145
+ key: b(V, D),
15131
15146
  item: V,
15132
- index: B,
15147
+ index: D,
15133
15148
  reorderable: e.reorderable,
15134
15149
  layout: n(o),
15135
15150
  "is-selected": u(V),
@@ -15142,7 +15157,7 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15142
15157
  "action-sheet-title": e.actionSheetTitle,
15143
15158
  "cancel-label": e.cancelLabel,
15144
15159
  "is-inline-editing": e.isInlineEditing,
15145
- "is-new-row": e.newRowIndices?.has(B),
15160
+ "is-new-row": e.newRowIndices?.has(D),
15146
15161
  expandable: e.canExpandRow(V),
15147
15162
  "is-expanded": e.isRowExpanded(V),
15148
15163
  "expanded-icon": e.expandedIcon,
@@ -15150,7 +15165,7 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15150
15165
  onClick: h,
15151
15166
  onSelect: f,
15152
15167
  onAction: k,
15153
- onCellValueChange: (O, M) => r("cell-value-change", O, B, M),
15168
+ onCellValueChange: (O, M) => r("cell-value-change", O, D, M),
15154
15169
  onExpandToggle: (O, M, R) => r("expand-toggle", O, M, R)
15155
15170
  }, Ne({ _: 2 }, [
15156
15171
  T.$slots.expansion ? {
@@ -15158,7 +15173,7 @@ const M1 = { class: "vc-pull-to-refresh__indicator-content" }, L1 = { class: "vc
15158
15173
  fn: I(() => [
15159
15174
  H(T.$slots, "expansion", {
15160
15175
  data: V,
15161
- index: B
15176
+ index: D
15162
15177
  })
15163
15178
  ]),
15164
15179
  key: "0"
@@ -15267,7 +15282,7 @@ function Xa(e, a, t, l) {
15267
15282
  r[e[h].id] = i[h];
15268
15283
  return { widths: r, fillerWidth: p };
15269
15284
  }
15270
- function Sl(e, a) {
15285
+ function $l(e, a) {
15271
15286
  if (e == null || e === "")
15272
15287
  return { type: "auto", desiredPx: null };
15273
15288
  if (typeof e == "number")
@@ -15324,7 +15339,7 @@ function Y1(e) {
15324
15339
  onResizeStart: c,
15325
15340
  onResizeEnd: d,
15326
15341
  containerEl: u
15327
- } = e, v = D(!1);
15342
+ } = e, v = B(!1);
15328
15343
  let b = 0, p = 0, m = {}, h = "", f = [];
15329
15344
  const k = (z) => {
15330
15345
  const K = {};
@@ -15341,12 +15356,12 @@ function Y1(e) {
15341
15356
  const K = C(), Z = K.indexOf(z);
15342
15357
  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);
15343
15358
  }, T = (z) => {
15344
- !v.value || !h || B(z);
15359
+ !v.value || !h || D(z);
15345
15360
  }, x = () => {
15346
15361
  v.value = !1, h = "", m = {}, f = [];
15347
15362
  }, V = (z, K) => {
15348
15363
  S(z) && (b = K.pageX, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", O), document.addEventListener("mouseup", M));
15349
- }, B = (z) => {
15364
+ }, D = (z) => {
15350
15365
  const K = r();
15351
15366
  if (K <= 0) return;
15352
15367
  const Z = C();
@@ -15435,7 +15450,7 @@ function Y1(e) {
15435
15450
  };
15436
15451
  }
15437
15452
  function j1(e) {
15438
- const { columnState: a, onReorderEnd: t } = e, l = D(!1);
15453
+ const { columnState: a, onReorderEnd: t } = e, l = B(!1);
15439
15454
  let r = null, i = null;
15440
15455
  const o = (p, m) => {
15441
15456
  if (!m.dataTransfer) return;
@@ -15453,8 +15468,8 @@ function j1(e) {
15453
15468
  if (!h) return;
15454
15469
  const f = h.getAttribute("data-column-id");
15455
15470
  if (!f || f === r) return;
15456
- const k = h.getBoundingClientRect(), C = k.left + k.width / 2, S = p.clientX, T = a.value.order, x = T.indexOf(r), V = T.indexOf(f), B = x > V, O = x < V;
15457
- if ((B && S < C || O && S > C) && x !== -1 && V !== -1 && x !== V) {
15471
+ const k = h.getBoundingClientRect(), C = k.left + k.width / 2, S = p.clientX, T = a.value.order, x = T.indexOf(r), V = T.indexOf(f), D = x > V, O = x < V;
15472
+ if ((D && S < C || O && S > C) && x !== -1 && V !== -1 && x !== V) {
15458
15473
  const R = [...T], [A] = R.splice(x, 1);
15459
15474
  R.splice(V, 0, A), a.value = { ...a.value, order: R };
15460
15475
  }
@@ -15488,13 +15503,13 @@ function j1(e) {
15488
15503
  };
15489
15504
  }
15490
15505
  function X1(e, a, t) {
15491
- const l = D([...a.value]), r = D(!1), i = D(!1);
15506
+ const l = B([...a.value]), r = B(!1), i = B(!1);
15492
15507
  let o = null;
15493
15508
  function c() {
15494
15509
  o && (o.destroy(), o = null);
15495
15510
  }
15496
15511
  function d(u) {
15497
- c(), o = Bo.create(u, {
15512
+ c(), o = Do.create(u, {
15498
15513
  handle: t.handle,
15499
15514
  animation: 200,
15500
15515
  forceFallback: !0,
@@ -15551,11 +15566,11 @@ function An(e) {
15551
15566
  }
15552
15567
  }
15553
15568
  function Q1(e) {
15554
- const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: i } = e, o = D(!1);
15569
+ const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: i } = e, o = B(!1);
15555
15570
  let c = [];
15556
15571
  const d = Ce(Vr, void 0), u = d ? void 0 : Mo(), v = d ?? u, { meta: b, setFieldValue: p, errors: m, validate: h } = v, f = () => {
15557
15572
  u && u.resetForm();
15558
- }, k = D(/* @__PURE__ */ new Map()), C = D(/* @__PURE__ */ new Set()), S = (K) => {
15573
+ }, k = B(/* @__PURE__ */ new Map()), C = B(/* @__PURE__ */ new Set()), S = (K) => {
15559
15574
  if (C.value.has(K)) {
15560
15575
  const Z = new Set(C.value);
15561
15576
  Z.delete(K), C.value = Z;
@@ -15564,7 +15579,7 @@ function Q1(e) {
15564
15579
  c = a.value.map((K) => An(K)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !0;
15565
15580
  }, V = () => {
15566
15581
  a.value.splice(0, a.value.length, ...c.map((K) => An(K))), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1, i?.();
15567
- }, B = async () => {
15582
+ }, D = async () => {
15568
15583
  const { valid: K } = await h();
15569
15584
  K && (r && await r(_.value), c = a.value.map((Z) => An(Z)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1);
15570
15585
  }, O = (K, Z, de) => {
@@ -15594,7 +15609,7 @@ function Q1(e) {
15594
15609
  isEditing: o,
15595
15610
  startEditing: x,
15596
15611
  cancelEditing: V,
15597
- saveChanges: B,
15612
+ saveChanges: D,
15598
15613
  updateCell: O,
15599
15614
  getCellValue: M,
15600
15615
  isCellDirty: R,
@@ -15651,7 +15666,7 @@ function m$(e) {
15651
15666
  lazy: o = !1,
15652
15667
  onScroll: c,
15653
15668
  onLazyLoad: d
15654
- } = e, u = D(0), v = D(0), b = D(!1);
15669
+ } = e, u = B(0), v = B(0), b = B(!1);
15655
15670
  let p = null, m = { start: -1, end: -1 };
15656
15671
  const h = y(() => {
15657
15672
  const M = r, R = a.value.length;
@@ -15687,15 +15702,15 @@ function m$(e) {
15687
15702
  if (!l.value) return;
15688
15703
  const R = k.value - v.value;
15689
15704
  l.value.scrollTo({ top: Math.max(0, R), behavior: M });
15690
- }, B = () => {
15705
+ }, D = () => {
15691
15706
  l.value && (v.value = l.value.clientHeight, u.value = l.value.scrollTop);
15692
15707
  }, O = () => {
15693
- B();
15708
+ D();
15694
15709
  };
15695
15710
  return oe(
15696
15711
  l,
15697
15712
  (M) => {
15698
- M && B();
15713
+ M && D();
15699
15714
  },
15700
15715
  { immediate: !0 }
15701
15716
  ), oe(
@@ -15703,8 +15718,8 @@ function m$(e) {
15703
15718
  (M, R) => {
15704
15719
  R > 0 && M !== R && (m = { start: -1, end: -1 });
15705
15720
  }
15706
- ), tt(() => {
15707
- B(), window.addEventListener("resize", O);
15721
+ ), et(() => {
15722
+ D(), window.addEventListener("resize", O);
15708
15723
  }), He(() => {
15709
15724
  window.removeEventListener("resize", O), p && clearTimeout(p);
15710
15725
  }), {
@@ -15725,62 +15740,62 @@ function Z1(e) {
15725
15740
  const {
15726
15741
  items: a,
15727
15742
  groupRowsBy: t,
15728
- rowGroupMode: l = D("subheader"),
15729
- expandableRowGroups: r = D(!1),
15743
+ rowGroupMode: l = B("subheader"),
15744
+ expandableRowGroups: r = B(!1),
15730
15745
  expandedRowGroups: i,
15731
15746
  onExpandedRowGroupsChange: o,
15732
15747
  onRowGroupExpand: c,
15733
15748
  onRowGroupCollapse: d
15734
- } = e, u = D([]);
15749
+ } = e, u = B([]);
15735
15750
  oe(
15736
15751
  () => i?.value,
15737
- (B) => {
15738
- B !== void 0 && (u.value = [...B]);
15752
+ (D) => {
15753
+ D !== void 0 && (u.value = [...D]);
15739
15754
  },
15740
15755
  { immediate: !0 }
15741
15756
  );
15742
- const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (B) => {
15757
+ const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (D) => {
15743
15758
  if (!b.value) return "";
15744
- const O = jn(B, b.value);
15759
+ const O = jn(D, b.value);
15745
15760
  return String(O ?? "undefined");
15746
15761
  }, m = y(() => {
15747
15762
  if (!v.value || !b.value)
15748
15763
  return null;
15749
- const B = /* @__PURE__ */ new Map();
15764
+ const D = /* @__PURE__ */ new Map();
15750
15765
  for (const O of a.value) {
15751
15766
  const M = p(O);
15752
- B.has(M) || B.set(M, []), B.get(M).push(O);
15767
+ D.has(M) || D.set(M, []), D.get(M).push(O);
15753
15768
  }
15754
- return B;
15769
+ return D;
15755
15770
  }), h = y(() => {
15756
15771
  if (!m.value)
15757
15772
  return [];
15758
- const B = [];
15773
+ const D = [];
15759
15774
  return m.value.forEach((O, M) => {
15760
- B.push({
15775
+ D.push({
15761
15776
  key: M,
15762
15777
  items: O,
15763
15778
  firstItem: O[0],
15764
15779
  count: O.length
15765
15780
  });
15766
- }), B;
15767
- }), f = (B) => r?.value ? u.value.includes(B) : !0, k = (B, O) => {
15781
+ }), D;
15782
+ }), f = (D) => r?.value ? u.value.includes(D) : !0, k = (D, O) => {
15768
15783
  if (!r?.value)
15769
15784
  return;
15770
- f(B) ? (u.value = u.value.filter((R) => R !== B), d?.({ data: B, originalEvent: O })) : (u.value = [...u.value, B], c?.({ data: B, originalEvent: O })), o?.(u.value);
15771
- }, C = (B) => {
15772
- !r?.value || f(B) || (u.value = [...u.value, B], o?.(u.value));
15773
- }, S = (B) => {
15774
- !r?.value || !f(B) || (u.value = u.value.filter((O) => O !== B), o?.(u.value));
15785
+ 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);
15786
+ }, C = (D) => {
15787
+ !r?.value || f(D) || (u.value = [...u.value, D], o?.(u.value));
15788
+ }, S = (D) => {
15789
+ !r?.value || !f(D) || (u.value = u.value.filter((O) => O !== D), o?.(u.value));
15775
15790
  }, T = () => {
15776
15791
  if (!r?.value || !m.value)
15777
15792
  return;
15778
- const B = [];
15779
- m.value.forEach((O, M) => B.push(M)), u.value = B, o?.(u.value);
15793
+ const D = [];
15794
+ m.value.forEach((O, M) => D.push(M)), u.value = D, o?.(u.value);
15780
15795
  }, x = () => {
15781
15796
  r?.value && (u.value = [], o?.(u.value));
15782
- }, V = y(() => !v.value || !r?.value ? a.value : a.value.filter((B) => {
15783
- const O = p(B);
15797
+ }, V = y(() => !v.value || !r?.value ? a.value : a.value.filter((D) => {
15798
+ const O = p(D);
15784
15799
  return f(O);
15785
15800
  }));
15786
15801
  return {
@@ -15799,7 +15814,7 @@ function Z1(e) {
15799
15814
  };
15800
15815
  }
15801
15816
  function J1(e = {}) {
15802
- const a = D({}), t = (p) => !!(p == null || p === "" || Array.isArray(p) && p.length === 0), l = (p, m) => {
15817
+ const a = B({}), t = (p) => !!(p == null || p === "" || Array.isArray(p) && p.length === 0), l = (p, m) => {
15803
15818
  a.value = {
15804
15819
  ...a.value,
15805
15820
  [p]: m
@@ -15852,7 +15867,7 @@ function J1(e = {}) {
15852
15867
  };
15853
15868
  }
15854
15869
  function eC(e) {
15855
- const { sortField: a, sortOrder: t, sortMode: l, multiSortMeta: r, removableSort: i, onSort: o } = e, c = D(a.value), d = D(t.value ?? 0), u = D([...r.value || []]);
15870
+ 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 || []]);
15856
15871
  oe(
15857
15872
  () => [a.value, t.value, r.value],
15858
15873
  ([k, C, S]) => {
@@ -15918,7 +15933,7 @@ function Za(e) {
15918
15933
  }
15919
15934
  }
15920
15935
  function tC(e) {
15921
- const { editMode: a, editingRows: t, getItemKey: l } = e, r = D(null), i = D({}), o = D([]), c = D(/* @__PURE__ */ new Map());
15936
+ const { editMode: a, editingRows: t, getItemKey: l } = e, r = B(null), i = B({}), o = B([]), c = B(/* @__PURE__ */ new Map());
15922
15937
  return oe(
15923
15938
  () => t?.value,
15924
15939
  (C) => {
@@ -15949,7 +15964,7 @@ function tC(e) {
15949
15964
  completeCellEdit: (C, S, T, x) => {
15950
15965
  if (a.value !== "cell")
15951
15966
  return { data: C, field: S, newValue: x, index: T };
15952
- const V = i.value[T], B = V?.data;
15967
+ const V = i.value[T], D = V?.data;
15953
15968
  if (r.value = null, V) {
15954
15969
  const M = V.fields.filter((R) => R !== S);
15955
15970
  if (M.length === 0) {
@@ -15961,7 +15976,7 @@ function tC(e) {
15961
15976
  [T]: { ...V, fields: M }
15962
15977
  };
15963
15978
  }
15964
- const O = B ? B[S] : x;
15979
+ const O = D ? D[S] : x;
15965
15980
  return { data: C, field: S, newValue: O, index: T };
15966
15981
  },
15967
15982
  cancelCellEdit: (C, S, T) => {
@@ -15970,10 +15985,10 @@ function tC(e) {
15970
15985
  r.value = null;
15971
15986
  const x = i.value[T];
15972
15987
  if (x) {
15973
- const V = x.fields.filter((B) => B !== S);
15988
+ const V = x.fields.filter((D) => D !== S);
15974
15989
  if (V.length === 0) {
15975
- const B = { ...i.value };
15976
- delete B[T], i.value = B;
15990
+ const D = { ...i.value };
15991
+ delete D[T], i.value = D;
15977
15992
  } else
15978
15993
  i.value = {
15979
15994
  ...i.value,
@@ -16016,7 +16031,7 @@ function tC(e) {
16016
16031
  };
16017
16032
  }
16018
16033
  function lC(e) {
16019
- const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = D([]);
16034
+ const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = B([]);
16020
16035
  oe(
16021
16036
  () => a?.value,
16022
16037
  (m) => {
@@ -16064,7 +16079,7 @@ function nC(e) {
16064
16079
  selectAllActive: c,
16065
16080
  selectAllEnabled: d,
16066
16081
  onSelectAllChange: u
16067
- } = e, v = D([]), b = D(!1);
16082
+ } = e, v = B([]), b = B(!1);
16068
16083
  oe(
16069
16084
  () => t?.value,
16070
16085
  (E) => {
@@ -16102,7 +16117,7 @@ function nC(e) {
16102
16117
  data: E,
16103
16118
  originalEvent: N || new Event("unselect")
16104
16119
  };
16105
- }, B = (E, N) => {
16120
+ }, D = (E, N) => {
16106
16121
  if (!T(E))
16107
16122
  return null;
16108
16123
  const F = S(E), z = N instanceof Event ? N : new Event("change");
@@ -16142,7 +16157,7 @@ function nC(e) {
16142
16157
  selectionInfo: C,
16143
16158
  isSelected: S,
16144
16159
  canSelect: T,
16145
- handleRowSelectionChange: B,
16160
+ handleRowSelectionChange: D,
16146
16161
  handleSelectAllChange: O,
16147
16162
  selectItem: x,
16148
16163
  unselectItem: V,
@@ -16179,14 +16194,14 @@ const yt = {
16179
16194
  rowEditor: 100
16180
16195
  };
16181
16196
  function oC(e) {
16182
- const { visibleColumns: a, resizableColumns: t = !0, reorderableColumns: l = !1, fitMode: r = "gap" } = e, i = D({ order: [], specs: {} }), o = D({ widths: {}, fillerWidth: 0 }), c = /* @__PURE__ */ new Map(), d = (E) => nt(E) ? !1 : t, u = (E) => nt(E) ? !1 : l, v = (E) => {
16197
+ 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) => {
16183
16198
  if (E.selectionMode) return `${yt.selection}px`;
16184
16199
  if (E.rowReorder) return `${yt.rowReorder}px`;
16185
16200
  if (E.expander) return `${yt.expander}px`;
16186
16201
  if (E.rowEditor) return `${yt.rowEditor}px`;
16187
16202
  const N = o.value.widths[E.id];
16188
16203
  if (N !== void 0 && N > 0) return `${N}px`;
16189
- const F = Sl(E.width, 0);
16204
+ const F = $l(E.width, 0);
16190
16205
  if (F.type === "px") return `${F.desiredPx}px`;
16191
16206
  if (F.type === "percent" && typeof E.width == "string") return E.width.trim();
16192
16207
  }, b = (E) => {
@@ -16227,7 +16242,7 @@ function oC(e) {
16227
16242
  return N.length > 0 && N[N.length - 1].props.id === E.id;
16228
16243
  }, T = y(() => a.value.length);
16229
16244
  function x(E, N, F) {
16230
- const z = Sl(E.minWidth, N), K = Sl(E.maxWidth, N);
16245
+ const z = $l(E.minWidth, N), K = $l(E.maxWidth, N);
16231
16246
  return {
16232
16247
  weight: F,
16233
16248
  minPx: z.desiredPx ?? aa,
@@ -16239,7 +16254,7 @@ function oC(e) {
16239
16254
  if (N.length === 0) return;
16240
16255
  const F = N.map((q) => ({
16241
16256
  id: q.props.id,
16242
- parsed: Sl(q.props.width, E)
16257
+ parsed: $l(q.props.width, E)
16243
16258
  })), z = K1(F, E), K = [...i.value.order], Z = new Set(K);
16244
16259
  for (const q of N)
16245
16260
  Z.has(q.props.id) || K.push(q.props.id);
@@ -16251,15 +16266,15 @@ function oC(e) {
16251
16266
  }
16252
16267
  Y && (i.value = { order: K, specs: de });
16253
16268
  }
16254
- let B = !1;
16269
+ let D = !1;
16255
16270
  const O = () => {
16256
- B = !0;
16271
+ D = !0;
16257
16272
  }, M = () => {
16258
- i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, B = !1, R();
16273
+ i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, D = !1, R();
16259
16274
  }, R = () => {
16260
16275
  const E = e.getAvailableWidth();
16261
16276
  if (E <= 0) return;
16262
- B || V(E);
16277
+ D || V(E);
16263
16278
  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] }));
16264
16279
  F.length !== 0 && (o.value = z1({ availableWidth: E, columns: F, mode: r }));
16265
16280
  };
@@ -16308,7 +16323,7 @@ function oC(e) {
16308
16323
  recompute: R,
16309
16324
  resetFromProps: M,
16310
16325
  markSizingCustomized: O,
16311
- isSizingCustomized: () => B,
16326
+ isSizingCustomized: () => D,
16312
16327
  orderedVisibleColumns: C,
16313
16328
  totalColumns: T,
16314
16329
  isSpecialColumn: nt,
@@ -16460,12 +16475,12 @@ function cC(e) {
16460
16475
  v--;
16461
16476
  });
16462
16477
  }
16463
- function B() {
16478
+ function D() {
16464
16479
  return !(v > 0 || !a.value || k || o && o() <= 0);
16465
16480
  }
16466
16481
  function O() {
16467
- B() && (b != null && clearTimeout(b), b = setTimeout(() => {
16468
- b = void 0, B() && S();
16482
+ D() && (b != null && clearTimeout(b), b = setTimeout(() => {
16483
+ b = void 0, D() && S();
16469
16484
  }, iC));
16470
16485
  }
16471
16486
  return oe(i ? [l, r, i] : [l, r], O, { deep: !0 }), He(() => {
@@ -16527,11 +16542,11 @@ function dC(e) {
16527
16542
  expandedRows: Ie(a, "expandedRows"),
16528
16543
  getItemKey: d,
16529
16544
  isRowExpandable: (j) => a.isRowExpandable ? a.isRowExpandable(j) : !0
16530
- }), x = D([]);
16545
+ }), x = B([]);
16531
16546
  oe(
16532
16547
  () => T.internalExpandedRows.value,
16533
16548
  (j) => {
16534
- const ge = j.map((Be) => d(Be, 0)), pe = x.value.join(","), Oe = ge.join(",");
16549
+ const ge = j.map((De) => d(De, 0)), pe = x.value.join(","), Oe = ge.join(",");
16535
16550
  pe !== Oe && (x.value = ge, t("update:expandedRows", j));
16536
16551
  },
16537
16552
  { deep: !0, immediate: !0 }
@@ -16539,7 +16554,7 @@ function dC(e) {
16539
16554
  const V = (j) => {
16540
16555
  const ge = d(j, 0);
16541
16556
  return x.value.includes(ge);
16542
- }, B = (j) => T.canExpand(j), O = Z1({
16557
+ }, D = (j) => T.canExpand(j), O = Z1({
16543
16558
  items: Ie(a, "items"),
16544
16559
  groupRowsBy: Ie(a, "groupRowsBy"),
16545
16560
  rowGroupMode: Ie(a, "rowGroupMode"),
@@ -16577,7 +16592,7 @@ function dC(e) {
16577
16592
  reorderableColumns: a.reorderableColumns ?? !0,
16578
16593
  fitMode: a.fitMode ?? "gap",
16579
16594
  getAvailableWidth: _
16580
- }), N = D(/* @__PURE__ */ new Set());
16595
+ }), N = B(/* @__PURE__ */ new Set());
16581
16596
  oe(
16582
16597
  () => c.value.map((j) => j.props.id).join(","),
16583
16598
  () => {
@@ -16615,19 +16630,19 @@ function dC(e) {
16615
16630
  N,
16616
16631
  (j, ge) => {
16617
16632
  const pe = new Set(i.value), Oe = new Set(o.value);
16618
- let Be = !1, ot = !1;
16633
+ let De = !1, ot = !1;
16619
16634
  for (const Je of j)
16620
- (!ge || !ge.has(Je)) && !pe.has(Je) && !Oe.has(Je) && (pe.add(Je), Be = !0);
16635
+ (!ge || !ge.has(Je)) && !pe.has(Je) && !Oe.has(Je) && (pe.add(Je), De = !0);
16621
16636
  if (ge) {
16622
16637
  const Je = new Set(r.value.map((it) => it.props.id));
16623
16638
  for (const it of ge)
16624
- !j.has(it) && Je.has(it) && (pe.delete(it) && (Be = !0), Oe.delete(it) && (ot = !0));
16639
+ !j.has(it) && Je.has(it) && (pe.delete(it) && (De = !0), Oe.delete(it) && (ot = !0));
16625
16640
  }
16626
- Be && (i.value = pe), ot && (o.value = Oe);
16641
+ De && (i.value = pe), ot && (o.value = Oe);
16627
16642
  },
16628
16643
  { immediate: !0 }
16629
16644
  );
16630
- const Z = y(() => l.value.find((j) => j.props.rowReorder === !0) || null), de = y(() => a.reorderableRows || Z.value !== null), Y = y(() => de.value), q = D(), { reorderedItems: ne, pendingReorder: ee } = X1(q, Ie(a, "items"), {
16645
+ 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 } = X1(q, Ie(a, "items"), {
16631
16646
  disabled: y(() => !de.value),
16632
16647
  handle: uC,
16633
16648
  onReorder: (j) => t("row-reorder", j)
@@ -16647,20 +16662,20 @@ function dC(e) {
16647
16662
  }
16648
16663
  }
16649
16664
  return ae.value[ge] ?? null;
16650
- }, Mt = D(null), Lt = () => {
16665
+ }, Mt = B(null), Lt = () => {
16651
16666
  const j = me();
16652
16667
  Mt.value && Object.assign(j, Mt.value), t("filter", { filters: j, filteredValue: a.items });
16653
16668
  }, ln = (j, ge) => {
16654
16669
  const pe = $e(j), Oe = Ee(j);
16655
16670
  if (pe === "dateRange") {
16656
- const Be = at(j);
16657
- if (Be) {
16658
- const ot = ge[Be[0]], Je = ge[Be[1]];
16659
- ie(Be, { start: ot, end: Je });
16671
+ const De = at(j);
16672
+ if (De) {
16673
+ const ot = ge[De[0]], Je = ge[De[1]];
16674
+ ie(De, { start: ot, end: Je });
16660
16675
  }
16661
16676
  } else {
16662
- const Be = ge[Oe];
16663
- re(Oe, Be);
16677
+ const De = ge[Oe];
16678
+ re(Oe, De);
16664
16679
  }
16665
16680
  Lt();
16666
16681
  }, nn = (j) => {
@@ -16668,13 +16683,13 @@ function dC(e) {
16668
16683
  if ($e(j) === "dateRange") {
16669
16684
  const Oe = at(j);
16670
16685
  if (Oe) {
16671
- const Be = `__range__${Oe[0]}__${Oe[1]}`;
16672
- te(Be);
16686
+ const De = `__range__${Oe[0]}__${Oe[1]}`;
16687
+ te(De);
16673
16688
  }
16674
16689
  } else
16675
16690
  te(ge);
16676
16691
  Lt();
16677
- }, ul = y(() => ee.value && de.value ? [...ne.value] : a.items ?? []), an = (j) => ul.value.indexOf(j), on = y(() => E.orderedVisibleColumns.value.filter(
16692
+ }, dl = y(() => ee.value && de.value ? [...ne.value] : a.items ?? []), an = (j) => dl.value.indexOf(j), on = y(() => E.orderedVisibleColumns.value.filter(
16678
16693
  (j) => j != null && j.props != null && j.props.id != null
16679
16694
  )), { handleResizeStart: sn } = Y1({
16680
16695
  columnState: E.columnState,
@@ -16698,7 +16713,7 @@ function dC(e) {
16698
16713
  onReorderEnd: () => t("column-reorder", { columns: [] })
16699
16714
  }), qt = (j, ge) => {
16700
16715
  C.handleSort(E.getSortField(j), ge);
16701
- }, dl = (j) => {
16716
+ }, vl = (j) => {
16702
16717
  const ge = k.handleSelectAllChange(j);
16703
16718
  t(j ? "row-select-all" : "row-unselect-all", ge), t("update:selectAll", j);
16704
16719
  }, It = (j, ge) => {
@@ -16709,7 +16724,7 @@ function dC(e) {
16709
16724
  // Row selection facade (hides raw useTableSelectionV2 + emit handlers)
16710
16725
  selection: aC(k, {
16711
16726
  onRowSelect: It,
16712
- onSelectAll: dl
16727
+ onSelectAll: vl
16713
16728
  }),
16714
16729
  // Sub-composable instances
16715
16730
  sort: C,
@@ -16749,7 +16764,7 @@ function dC(e) {
16749
16764
  showRowDragHandle: Y,
16750
16765
  rowReorderListRef: q,
16751
16766
  // Derived computeds
16752
- displayItems: ul,
16767
+ displayItems: dl,
16753
16768
  getGlobalIndex: an,
16754
16769
  effectiveSelectionMode: p,
16755
16770
  selectionColumn: v,
@@ -16764,15 +16779,15 @@ function dC(e) {
16764
16779
  isInlineEditing: R,
16765
16780
  // Expansion helper
16766
16781
  isRowExpanded: V,
16767
- canExpand: B,
16782
+ canExpand: D,
16768
16783
  expandedKeysArray: x,
16769
16784
  // Data-discovered IDs stable ref
16770
16785
  dataDiscoveredIds: N,
16771
16786
  // Event handlers (selection handlers are on the `selection` facade)
16772
16787
  handleSort: qt,
16773
16788
  handleRowClick: (j, ge, pe) => {
16774
- const Oe = d(j, ge), Be = a.activeItemId != null && Oe === String(a.activeItemId);
16775
- t("update:activeItemId", Be ? void 0 : Oe), t("row-click", { data: j, index: ge, originalEvent: pe });
16789
+ const Oe = d(j, ge), De = a.activeItemId != null && Oe === String(a.activeItemId);
16790
+ t("update:activeItemId", De ? void 0 : Oe), t("row-click", { data: j, index: ge, originalEvent: pe });
16776
16791
  const ot = pe.target, Je = ot.tagName === "INPUT" && ot.getAttribute("type") === "checkbox";
16777
16792
  p.value === "single" && !Je && It(j, pe);
16778
16793
  },
@@ -16799,7 +16814,7 @@ function dC(e) {
16799
16814
  t("row-remove", pe), ge || M.removeRow(j);
16800
16815
  },
16801
16816
  handleColumnVisibilityChange: (j) => {
16802
- const ge = new Set(j), pe = F.value.map((Ke) => Ke.id), Oe = F.value.filter((Ke) => Ke.defaultVisible === !1).map((Ke) => Ke.id), Be = new Set(pe), ot = new Set(Oe), Je = new Set([...i.value].filter((Ke) => !Be.has(Ke))), it = new Set([...o.value].filter((Ke) => !ot.has(Ke)));
16817
+ 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)));
16803
16818
  for (const Ke of pe)
16804
16819
  ge.has(Ke) || Je.add(Ke);
16805
16820
  for (const Ke of Oe)
@@ -16811,13 +16826,13 @@ function dC(e) {
16811
16826
  },
16812
16827
  handleCellClick: (j, ge, pe, Oe) => {
16813
16828
  if (a.editMode === "cell" && (Oe.slots.editor || Oe.props.editable) && !S.isCellEditing(pe, ge)) {
16814
- const Be = S.startCellEdit(j, ge, pe);
16815
- t("cell-edit-init", Be);
16829
+ const De = S.startCellEdit(j, ge, pe);
16830
+ t("cell-edit-init", De);
16816
16831
  }
16817
16832
  },
16818
16833
  handleCellEditComplete: (j, ge, pe, Oe) => {
16819
- const Be = S.completeCellEdit(j, ge, pe, Oe);
16820
- t("cell-edit-complete", { data: j, field: ge, newValue: Be.newValue, index: pe }), M.isEditing.value && M.updateCell(pe, ge, Oe);
16834
+ const De = S.completeCellEdit(j, ge, pe, Oe);
16835
+ t("cell-edit-complete", { data: j, field: ge, newValue: De.newValue, index: pe }), M.isEditing.value && M.updateCell(pe, ge, Oe);
16821
16836
  },
16822
16837
  handleCellEditCancel: (j, ge, pe) => {
16823
16838
  S.cancelCellEdit(j, ge, pe), t("cell-edit-cancel", { data: j, field: ge, index: pe });
@@ -16829,8 +16844,8 @@ function dC(e) {
16829
16844
  }
16830
16845
  },
16831
16846
  handleExpandToggle: (j, ge, pe) => {
16832
- const Oe = T.isRowExpanded(j, ge), Be = T.toggleRowExpansion(j, ge, pe);
16833
- Be && t(Oe ? "row-collapse" : "row-expand", Be);
16847
+ const Oe = T.isRowExpanded(j, ge), De = T.toggleRowExpansion(j, ge, pe);
16848
+ De && t(Oe ? "row-collapse" : "row-expand", De);
16834
16849
  },
16835
16850
  handleStartRowEdit: (j, ge) => {
16836
16851
  const pe = S.startRowEdit(j, ge);
@@ -17029,7 +17044,7 @@ const p$ = {
17029
17044
  () => v.value ? l.notFoundState?.actionLabel : l.emptyState?.actionLabel
17030
17045
  ), f = y(
17031
17046
  () => v.value ? l.notFoundState?.actionHandler : l.emptyState?.actionHandler
17032
- ), k = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = D(!1);
17047
+ ), k = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = B(!1);
17033
17048
  oe(
17034
17049
  () => l.items,
17035
17050
  (ce) => {
@@ -17046,7 +17061,7 @@ const p$ = {
17046
17061
  return `${Me}–${Ye} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${be}`;
17047
17062
  }
17048
17063
  return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${ce.currentPage} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${ce.pages}`;
17049
- }), { isMobile: V } = Ve(), B = y(() => V.value), O = ht(), M = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
17064
+ }), { isMobile: V } = Ve(), D = y(() => V.value), O = ht(), M = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
17050
17065
  "sortable",
17051
17066
  "editable",
17052
17067
  "visible",
@@ -17071,11 +17086,11 @@ const p$ = {
17071
17086
  const be = [], _e = (Me) => {
17072
17087
  const Ye = Me.type;
17073
17088
  if (Ye && (Ye.name === "VcColumn" || Ye.__name === "VcColumn")) {
17074
- const ut = Me.props || {}, bl = A(ut);
17075
- bl.id && be.push({
17089
+ const ut = Me.props || {}, hl = A(ut);
17090
+ hl.id && be.push({
17076
17091
  instance: null,
17077
17092
  // Not needed for slot-based approach
17078
- props: bl,
17093
+ props: hl,
17079
17094
  slots: Me.children || {}
17080
17095
  });
17081
17096
  }
@@ -17083,8 +17098,8 @@ const p$ = {
17083
17098
  };
17084
17099
  return ce.forEach(_e), be;
17085
17100
  }, E = new vC();
17086
- De(Cs, E);
17087
- const N = D(0);
17101
+ Be(Cs, E);
17102
+ const N = B(0);
17088
17103
  E.onUpdate(() => {
17089
17104
  N.value++;
17090
17105
  });
@@ -17092,7 +17107,7 @@ const p$ = {
17092
17107
  N.value;
17093
17108
  const ce = _();
17094
17109
  return ce.length > 0 ? ce : E.getColumns();
17095
- }), z = D(/* @__PURE__ */ new Set()), K = D(/* @__PURE__ */ new Set()), Z = y(() => {
17110
+ }), z = B(/* @__PURE__ */ new Set()), K = B(/* @__PURE__ */ new Set()), Z = y(() => {
17096
17111
  const ce = l.columnSwitcher;
17097
17112
  if (!ce || ce === "defined") return [];
17098
17113
  const be = l.items;
@@ -17103,14 +17118,14 @@ const p$ = {
17103
17118
  props: {
17104
17119
  id: ut,
17105
17120
  field: ut,
17106
- title: ut.replace(/([A-Z])/g, " $1").replace(/^./, (bl) => bl.toUpperCase())
17121
+ title: ut.replace(/([A-Z])/g, " $1").replace(/^./, (hl) => hl.toUpperCase())
17107
17122
  },
17108
17123
  slots: {}
17109
17124
  }));
17110
17125
  }), de = y(() => {
17111
17126
  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));
17112
17127
  return [...be, ..._e];
17113
- }), Y = (ce, be) => ce[l.dataKey]?.toString() || `row-${be}`, q = D(null), ne = D(null), ee = D(null), {
17128
+ }), Y = (ce, be) => ce[l.dataKey]?.toString() || `row-${be}`, q = B(null), ne = B(null), ee = B(null), {
17114
17129
  // Sub-composable instances
17115
17130
  selection: G,
17116
17131
  sort: ke,
@@ -17136,7 +17151,7 @@ const p$ = {
17136
17151
  // Resize / reorder
17137
17152
  handleResizeStart: ln,
17138
17153
  isColumnReordering: nn,
17139
- handleColumnDragStart: ul,
17154
+ handleColumnDragStart: dl,
17140
17155
  handleColumnDragOver: an,
17141
17156
  handleColumnDrop: on,
17142
17157
  // Row reorder state
@@ -17147,14 +17162,14 @@ const p$ = {
17147
17162
  effectiveSelectionMode: Et,
17148
17163
  hasSelectionColumn: Gt,
17149
17164
  isSelectionViaColumn: qt,
17150
- isRowReorderEnabled: dl,
17165
+ isRowReorderEnabled: vl,
17151
17166
  showRowDragHandle: It,
17152
17167
  hasExpanderColumn: cn,
17153
17168
  computedVariant: ia,
17154
17169
  switcherColumns: sa,
17155
17170
  switcherVisibleColumnIds: ra,
17156
- safeColumns: vl,
17157
- isInlineEditing: fl,
17171
+ safeColumns: fl,
17172
+ isInlineEditing: ml,
17158
17173
  // Expansion helper
17159
17174
  isRowExpanded: un,
17160
17175
  canExpand: dn,
@@ -17173,7 +17188,7 @@ const p$ = {
17173
17188
  handleStartRowEdit: ge,
17174
17189
  handleSaveRowEdit: pe,
17175
17190
  handleCancelRowEdit: Oe,
17176
- handleRowAction: Be,
17191
+ handleRowAction: De,
17177
17192
  handleMobileRowClick: ot,
17178
17193
  handleMobileRowSelect: Je,
17179
17194
  handleMobileRowAction: it
@@ -17187,16 +17202,16 @@ const p$ = {
17187
17202
  dataDiscoveredColumns: Z,
17188
17203
  getItemKey: Y,
17189
17204
  tableContainerRef: ne
17190
- }), Ke = D(null), ba = D(null);
17205
+ }), Ke = B(null), ba = B(null);
17191
17206
  Hn(() => {
17192
- sn.value = B.value ? ba.value?.listEl : Ke.value?.listEl;
17193
- }), De(
17207
+ sn.value = D.value ? ba.value?.listEl : Ke.value?.listEl;
17208
+ }), Be(
17194
17209
  $o,
17195
17210
  y(() => ie.engineOutput.value.fillerWidth)
17196
- ), De(Ro, nn);
17211
+ ), Be(Ro, nn);
17197
17212
  const ha = (ce) => {
17198
17213
  r("pagination-click", ce);
17199
- }, Yt = D(l.searchValue ?? "");
17214
+ }, Yt = B(l.searchValue ?? "");
17200
17215
  let jt = null;
17201
17216
  const $i = (ce) => {
17202
17217
  Yt.value = ce, r("update:searchValue", ce), jt && clearTimeout(jt), jt = setTimeout(() => {
@@ -17215,7 +17230,7 @@ const p$ = {
17215
17230
  be.scrollHeight - be.scrollTop - be.clientHeight < _e && r("load-more");
17216
17231
  }, fn = y(() => l.addRow?.enabled === !0), ya = y(() => l.addRow?.position ?? "footer"), mn = y(() => l.addRow?.label ?? "Add row"), pn = y(() => l.addRow?.icon ?? "lucide-plus"), Ai = (ce) => {
17217
17232
  }, Ti = () => {
17218
- }, ml = D(!1), pl = D({}), wa = D(null), Oi = y(() => {
17233
+ }, pl = B(!1), gl = B({}), wa = B(null), Oi = y(() => {
17219
17234
  const ce = wa.value;
17220
17235
  return ce ? {
17221
17236
  getBoundingClientRect: () => ce.$el?.getBoundingClientRect() ?? new DOMRect(),
@@ -17223,7 +17238,7 @@ const p$ = {
17223
17238
  return ce.$el;
17224
17239
  }
17225
17240
  } : null;
17226
- }), Xt = D(!1), Ca = D(null), Mi = y(() => {
17241
+ }), Xt = B(!1), Ca = B(null), Mi = y(() => {
17227
17242
  const ce = Ca.value;
17228
17243
  return ce ? {
17229
17244
  getBoundingClientRect: () => (ce.columnSwitcherEl ?? null)?.getBoundingClientRect() ?? new DOMRect(),
@@ -17233,7 +17248,7 @@ const p$ = {
17233
17248
  } : null;
17234
17249
  }), Li = y(() => {
17235
17250
  let ce = 0;
17236
- for (const be of Object.values(pl.value))
17251
+ for (const be of Object.values(gl.value))
17237
17252
  if (!(be == null || be === "") && !(Array.isArray(be) && be.length === 0)) {
17238
17253
  if (typeof be == "object" && !Array.isArray(be)) {
17239
17254
  const _e = be;
@@ -17246,11 +17261,11 @@ const p$ = {
17246
17261
  }), Ii = (ce) => {
17247
17262
  Lt.value = ce, Mt();
17248
17263
  }, xi = () => {
17249
- Lt.value = null, pl.value = {}, Mt();
17264
+ Lt.value = null, gl.value = {}, Mt();
17250
17265
  }, Ni = (ce, be) => ({
17251
17266
  item: ce,
17252
17267
  index: be,
17253
- columns: vl.value,
17268
+ columns: fl.value,
17254
17269
  // Selection
17255
17270
  isSelected: G.isSelected(ce),
17256
17271
  isActive: l.activeItemId != null && Y(ce, be) === String(l.activeItemId),
@@ -17258,7 +17273,7 @@ const p$ = {
17258
17273
  selectionMode: Et.value,
17259
17274
  showSelectionCell: Gt.value && !qt.value,
17260
17275
  // Reorder
17261
- reorderable: dl.value,
17276
+ reorderable: vl.value,
17262
17277
  showDragHandle: It.value,
17263
17278
  // Expansion
17264
17279
  expandable: cn.value && dn(ce),
@@ -17268,7 +17283,7 @@ const p$ = {
17268
17283
  // Editing
17269
17284
  editingRowData: W.getEditingRowData(ce, be),
17270
17285
  isRowEditing: W.isRowEditing(ce),
17271
- isInlineEditing: fl.value,
17286
+ isInlineEditing: ml.value,
17272
17287
  isCellEditing: W.isCellEditing,
17273
17288
  // Actions
17274
17289
  hasActions: !!l.rowActions,
@@ -17279,11 +17294,11 @@ const p$ = {
17279
17294
  getCellStyle: ie.getCellStyle,
17280
17295
  // Custom class
17281
17296
  rowClass: l.rowClass?.(ce)
17282
- }), { width: gl } = No(ee), Di = y(() => {
17283
- if (!l.pagination || gl.value === 0) return 5;
17284
- const ce = gl.value - Ja, be = Math.floor((ce - 2 * Tn) / Tn);
17297
+ }), { width: bl } = No(ee), Bi = y(() => {
17298
+ if (!l.pagination || bl.value === 0) return 5;
17299
+ const ce = bl.value - Ja, be = Math.floor((ce - 2 * Tn) / Tn);
17285
17300
  return be >= 7 ? 5 : be >= 3 ? be : 0;
17286
- }), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * Tn);
17301
+ }), Di = y(() => !l.pagination || bl.value === 0 ? !0 : bl.value - Ja >= 5 * Tn);
17287
17302
  return a({
17288
17303
  // Selection API (public keys unchanged; sourced from the selection facade)
17289
17304
  selectAll: G.selectAll,
@@ -17330,7 +17345,7 @@ const p$ = {
17330
17345
  ref_key: "globalFiltersButtonRef",
17331
17346
  ref: wa,
17332
17347
  "active-count": Li.value,
17333
- onClick: be[0] || (be[0] = (_e) => ml.value = !ml.value)
17348
+ onClick: be[0] || (be[0] = (_e) => pl.value = !pl.value)
17334
17349
  }, null, 8, ["active-count"])) : L("", !0),
17335
17350
  H(ce.$slots, "search-header-actions")
17336
17351
  ]),
@@ -17339,15 +17354,15 @@ const p$ = {
17339
17354
  e.globalFilters?.length ? (s(), P(n(I0), {
17340
17355
  key: 2,
17341
17356
  filters: e.globalFilters,
17342
- "model-value": pl.value,
17343
- show: ml.value,
17357
+ "model-value": gl.value,
17358
+ show: pl.value,
17344
17359
  "anchor-ref": Oi.value,
17345
- "onUpdate:modelValue": be[1] || (be[1] = (_e) => pl.value = _e),
17346
- "onUpdate:show": be[2] || (be[2] = (_e) => ml.value = _e),
17360
+ "onUpdate:modelValue": be[1] || (be[1] = (_e) => gl.value = _e),
17361
+ "onUpdate:show": be[2] || (be[2] = (_e) => pl.value = _e),
17347
17362
  onApply: Ii,
17348
17363
  onClear: xi
17349
17364
  }, null, 8, ["filters", "model-value", "show", "anchor-ref"])) : L("", !0),
17350
- e.columnSwitcher ? (s(), P(n(Dw), {
17365
+ e.columnSwitcher ? (s(), P(n(Bw), {
17351
17366
  key: 3,
17352
17367
  columns: n(sa),
17353
17368
  "visible-columns": n(ra),
@@ -17380,9 +17395,9 @@ const p$ = {
17380
17395
  onCancel: n(G).clear
17381
17396
  }, null, 8, ["selection-count", "total-count", "all-selected", "show-select-all-prompt", "onSelectAll", "onCancel"])) : L("", !0)
17382
17397
  ]),
17383
- B.value ? (s(), g("div", pC, [
17398
+ D.value ? (s(), g("div", pC, [
17384
17399
  n(Et) === "multiple" && (n(G).isPartiallySelected.value || n(G).isAllSelected.value) ? (s(), g("div", gC, [
17385
- $(n(nl), {
17400
+ $(n(al), {
17386
17401
  "model-value": n(G).isAllSelected.value,
17387
17402
  indeterminate: n(G).isPartiallySelected.value && !n(G).isAllSelected.value,
17388
17403
  onChange: n(G).onSelectAll
@@ -17393,7 +17408,7 @@ const p$ = {
17393
17408
  ref_key: "mobileViewRef",
17394
17409
  ref: ba,
17395
17410
  items: n(Wt),
17396
- reorderable: n(dl),
17411
+ reorderable: n(vl),
17397
17412
  columns: de.value,
17398
17413
  selection: n(G).selected.value,
17399
17414
  "selection-mode": n(Et),
@@ -17403,7 +17418,7 @@ const p$ = {
17403
17418
  "data-key": e.dataKey,
17404
17419
  "pull-to-refresh": e.pullToRefresh,
17405
17420
  "pull-to-refresh-text": e.pullToRefreshText,
17406
- "is-inline-editing": n(fl),
17421
+ "is-inline-editing": n(ml),
17407
17422
  "new-row-indices": n(re).newRowIndices.value,
17408
17423
  "can-expand-row": (_e) => n(cn) && n(dn)(_e),
17409
17424
  "is-row-expanded": n(un),
@@ -17457,7 +17472,7 @@ const p$ = {
17457
17472
  $(n(a1), {
17458
17473
  ref_key: "dataTableHeaderRef",
17459
17474
  ref: Ca,
17460
- columns: n(vl),
17475
+ columns: n(fl),
17461
17476
  "show-drag-handle": n(It),
17462
17477
  "show-selection-cell": n(Gt) && !n(qt),
17463
17478
  "selection-mode": n(Et),
@@ -17479,14 +17494,14 @@ const p$ = {
17479
17494
  "is-filter-multiple": n($e),
17480
17495
  "get-range-fields": n(We),
17481
17496
  "get-filter-value": n(st),
17482
- "is-editing": n(fl),
17497
+ "is-editing": n(ml),
17483
17498
  "show-column-switcher": !!e.columnSwitcher,
17484
17499
  "column-switcher-active": Xt.value,
17485
17500
  "actions-position": e.rowActionsPosition,
17486
17501
  onSelectAll: n(G).onSelectAll,
17487
17502
  onSort: n(ca),
17488
17503
  onResizeStart: n(ln),
17489
- onReorderStart: n(ul),
17504
+ onReorderStart: n(dl),
17490
17505
  onReorderOver: n(an),
17491
17506
  onReorderDrop: be[5] || (be[5] = (_e, Me) => n(on)(Me)),
17492
17507
  onFilterApply: n(at),
@@ -17499,7 +17514,7 @@ const p$ = {
17499
17514
  items: n(Wt),
17500
17515
  loading: e.loading || n(S),
17501
17516
  "skeleton-rows": l.skeletonRows,
17502
- columns: n(vl),
17517
+ columns: n(fl),
17503
17518
  "get-column-width": n(ie).getEffectiveColumnWidth,
17504
17519
  "get-cell-style": n(ie).getCellStyle,
17505
17520
  "show-selection-cell": n(Gt) && !n(qt),
@@ -17541,7 +17556,7 @@ const p$ = {
17541
17556
  mode: e.rowActionsMode,
17542
17557
  position: e.rowActionsPosition,
17543
17558
  "max-quick-actions": e.maxQuickActions,
17544
- onAction: (Ye) => n(Be)(Ye, _e, Me)
17559
+ onAction: (Ye) => n(De)(Ye, _e, Me)
17545
17560
  }, null, 8, ["actions", "row-index", "mode", "position", "max-quick-actions", "onAction"])) : L("", !0)
17546
17561
  ]),
17547
17562
  expansion: I(({ data: _e, index: Me }) => [
@@ -17619,8 +17634,8 @@ const p$ = {
17619
17634
  pages: l.pagination.pages,
17620
17635
  "current-page": l.pagination.currentPage,
17621
17636
  variant: l.pagination.variant,
17622
- "max-pages": Di.value,
17623
- "show-first-last": Bi.value,
17637
+ "max-pages": Bi.value,
17638
+ "show-first-last": Di.value,
17624
17639
  onItemClick: ha
17625
17640
  }, null, 8, ["pages", "current-page", "variant", "max-pages", "show-first-last"])
17626
17641
  ])
@@ -17671,7 +17686,7 @@ const p$ = {
17671
17686
  },
17672
17687
  emits: ["paginationClick", "selectionChanged", "search:change", "headerClick", "itemClick", "scroll:ptr", "row:reorder", "select:all", "onEditComplete", "onAddNewRow", "onCellBlur"],
17673
17688
  setup(e, { emit: a }) {
17674
- const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = D(t.selectionItems ?? []), o = D(!1), c = D(null), d = y(() => {
17689
+ const t = e, l = a, { t: r } = ze({ useScope: "global" }), i = B(t.selectionItems ?? []), o = B(!1), c = B(null), d = y(() => {
17675
17690
  const G = c.value;
17676
17691
  return G ? {
17677
17692
  getBoundingClientRect: () => G.$el?.getBoundingClientRect() ?? new DOMRect(),
@@ -17691,7 +17706,7 @@ const p$ = {
17691
17706
  const v = y(() => t.sort?.split(":")[0] || void 0), b = y(() => {
17692
17707
  const G = t.sort?.split(":")[1];
17693
17708
  return G === "ASC" ? 1 : G === "DESC" ? -1 : 0;
17694
- }), p = D(), m = y(() => t.multiselect ? "multiple" : void 0), h = y(
17709
+ }), p = B(), m = y(() => t.multiselect ? "multiple" : void 0), h = y(
17695
17710
  () => t.disableItemCheckbox ? (G) => !t.disableItemCheckbox(G) : void 0
17696
17711
  ), f = y(() => {
17697
17712
  if (!(!t.enableItemActions || !t.itemActionBuilder))
@@ -17730,7 +17745,7 @@ const p$ = {
17730
17745
  label: t.addNewRowButton.title,
17731
17746
  position: "footer"
17732
17747
  };
17733
- }), B = y(() => t.editing ? "inline" : void 0), O = y(() => t.header !== !1), M = y(() => t.columnSelector === "auto" ? "auto" : t.columnSelector === "defined" ? "defined" : t.columnSelector ? "auto" : !1);
17748
+ }), 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);
17734
17749
  function R(G) {
17735
17750
  if (G)
17736
17751
  return G === "date-time" ? "datetime" : G;
@@ -17810,7 +17825,7 @@ const p$ = {
17810
17825
  "state-key": t.stateKey,
17811
17826
  "pull-to-refresh": t.pullToReload,
17812
17827
  "column-switcher": M.value,
17813
- "edit-mode": B.value,
17828
+ "edit-mode": D.value,
17814
17829
  "show-all-columns": e.expanded,
17815
17830
  "select-all": t.selectAll,
17816
17831
  "total-count": t.totalCount,
@@ -18133,7 +18148,7 @@ const p$ = {
18133
18148
  ])), 64))
18134
18149
  ], 8, $C));
18135
18150
  }
18136
- }), IC = ["aria-label"], xC = { class: "vc-scheduler__day-badge" }, NC = { class: "vc-scheduler__day-content" }, DC = /* @__PURE__ */ Q({
18151
+ }), IC = ["aria-label"], xC = { class: "vc-scheduler__day-badge" }, NC = { class: "vc-scheduler__day-content" }, BC = /* @__PURE__ */ Q({
18137
18152
  __name: "MonthDayCell",
18138
18153
  props: {
18139
18154
  date: {},
@@ -18179,14 +18194,14 @@ const p$ = {
18179
18194
  "#475569"
18180
18195
  // slate
18181
18196
  ];
18182
- function BC(e) {
18197
+ function DC(e) {
18183
18198
  let a = 5381;
18184
18199
  for (let t = 0; t < e.length; t++)
18185
18200
  a = (a << 5) + a + e.charCodeAt(t) >>> 0;
18186
18201
  return a;
18187
18202
  }
18188
- function Bt(e) {
18189
- return e ? eo[BC(e) % eo.length] : "var(--primary-500)";
18203
+ function Dt(e) {
18204
+ return e ? eo[DC(e) % eo.length] : "var(--primary-500)";
18190
18205
  }
18191
18206
  const On = "#ffffff", Ci = "#18181b";
18192
18207
  function _i(e) {
@@ -18242,11 +18257,11 @@ const VC = ["aria-label", "onKeydown"], FC = {
18242
18257
  },
18243
18258
  emits: ["select", "move-start", "resize-start"],
18244
18259
  setup(e, { emit: a }) {
18245
- const t = e, l = a, r = D(null);
18260
+ const t = e, l = a, r = B(null);
18246
18261
  function i() {
18247
18262
  l("select", r.value?.getBoundingClientRect() ?? null);
18248
18263
  }
18249
- const o = y(() => !!(t.event.recurrenceId || t.event.recurrence)), c = y(() => t.event.color ?? Bt(t.event.title)), d = y(() => t.event.end.getTime() < Date.now()), u = y(
18264
+ 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(
18250
18265
  () => d.value ? Vn(c.value, !0) : { background: c.value, color: `var(--vc-scheduler-event-ink, ${Ei(c.value)})` }
18251
18266
  ), v = y(() => {
18252
18267
  const { title: b, start: p, end: m } = t.event, h = Te(p, "PP"), f = Te(new Date(m.getTime() - 1), "PP");
@@ -18314,7 +18329,7 @@ const VC = ["aria-label", "onKeydown"], FC = {
18314
18329
  style: he({ "--scheduler-month-max-lanes": l.value })
18315
18330
  }, [
18316
18331
  w("div", GC, [
18317
- (s(!0), g(J, null, ve(e.days, (c, d) => (s(), P(DC, {
18332
+ (s(!0), g(J, null, ve(e.days, (c, d) => (s(), P(BC, {
18318
18333
  key: d,
18319
18334
  date: c.date,
18320
18335
  "in-month": c.inMonth,
@@ -18380,7 +18395,7 @@ const VC = ["aria-label", "onKeydown"], FC = {
18380
18395
  setup(e, { emit: a }) {
18381
18396
  const t = e, l = a, r = y(() => t.date ? Te(t.date, "PPP") : ""), i = y(
18382
18397
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
18383
- ), o = D(null);
18398
+ ), o = B(null);
18384
18399
  let c = null;
18385
18400
  const d = () => Re(() => o.value?.querySelector("button")?.focus());
18386
18401
  return oe(
@@ -18464,7 +18479,7 @@ function n_(e) {
18464
18479
  return "";
18465
18480
  }
18466
18481
  }
18467
- const $l = (e) => new Date(
18482
+ const Rl = (e) => new Date(
18468
18483
  Date.UTC(
18469
18484
  e.getFullYear(),
18470
18485
  e.getMonth(),
@@ -18490,9 +18505,9 @@ function o_(e, a) {
18490
18505
  const o = [...r], c = /* @__PURE__ */ new Set();
18491
18506
  for (const u of t) {
18492
18507
  const v = Qn(u.recurrence.startsWith("RRULE:") ? u.recurrence : `RRULE:${u.recurrence}`, {
18493
- dtstart: $l(u.start)
18494
- }), b = v.origOptions.until, p = b ? new je({ ...v.origOptions, until: $l(b) }) : v, m = u.end.getTime() - u.start.getTime(), h = new Set((u.exceptionDates ?? []).map(Jt)), f = i.get(u.id), k = $l(new Date(a.start.getTime() - m));
18495
- for (const C of p.between(k, $l(a.end), !0)) {
18508
+ dtstart: Rl(u.start)
18509
+ }), b = v.origOptions.until, p = b ? new je({ ...v.origOptions, until: Rl(b) }) : v, m = u.end.getTime() - u.start.getTime(), h = new Set((u.exceptionDates ?? []).map(Jt)), f = i.get(u.id), k = Rl(new Date(a.start.getTime() - m));
18510
+ for (const C of p.between(k, Rl(a.end), !0)) {
18496
18511
  const S = a_(C), T = Jt(S);
18497
18512
  if (h.has(T)) continue;
18498
18513
  const x = f?.get(T);
@@ -18544,7 +18559,7 @@ const i_ = { class: "vc-scheduler__qi-title" }, s_ = ["aria-label", "onClick"],
18544
18559
  setup(e, { emit: a }) {
18545
18560
  const t = e, l = a, r = y(
18546
18561
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
18547
- ), i = y(() => t.event ? t.event.color ?? Bt(t.event.title) : ""), o = y(() => ({
18562
+ ), i = y(() => t.event ? t.event.color ?? Dt(t.event.title) : ""), o = y(() => ({
18548
18563
  background: `color-mix(in srgb, ${i.value} 14%, var(--additional-50, #fff))`,
18549
18564
  color: "var(--neutrals-900)"
18550
18565
  })), c = y(() => ({ background: i.value })), d = y(() => {
@@ -18679,7 +18694,7 @@ function b_(e) {
18679
18694
  const r = [[], [], [], [], [], []], i = Ge(e.monthRange.value.start);
18680
18695
  for (const o of e.events.value) {
18681
18696
  if (!a(o)) continue;
18682
- const c = Dt(Ge(o.start), i), d = Dt(Ge(new Date(o.end.getTime() - 1)), i);
18697
+ const c = Bt(Ge(o.start), i), d = Bt(Ge(new Date(o.end.getTime() - 1)), i);
18683
18698
  for (let u = 0; u < 6; u++) {
18684
18699
  const v = u * 7, b = v + 6, p = Math.max(c, v), m = Math.min(d, b);
18685
18700
  p > m || r[u].push({
@@ -18712,7 +18727,7 @@ function h_(e) {
18712
18727
  });
18713
18728
  }
18714
18729
  function y_(e) {
18715
- const a = e.maxLanes ?? D(3), t = y(() => e.weekSegments.value.map(h_)), l = y(
18730
+ const a = e.maxLanes ?? B(3), t = y(() => e.weekSegments.value.map(h_)), l = y(
18716
18731
  () => t.value.map((i) => i.filter((o) => o.lane < a.value))
18717
18732
  ), r = y(
18718
18733
  () => t.value.map((i) => {
@@ -18755,7 +18770,7 @@ function Si(e) {
18755
18770
  return { click: i, cancel: o };
18756
18771
  }
18757
18772
  function C_(e) {
18758
- const a = D(null);
18773
+ const a = B(null);
18759
18774
  let t = null, l = null, r = null;
18760
18775
  const i = (h, f) => {
18761
18776
  const k = e.dayFromPoint(h, f);
@@ -18769,14 +18784,14 @@ function C_(e) {
18769
18784
  function u(h) {
18770
18785
  if (!e.editable.value) return;
18771
18786
  const f = Ge(h);
18772
- t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end: et(f, 1) };
18787
+ t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end: tt(f, 1) };
18773
18788
  }
18774
18789
  function v(h, f) {
18775
18790
  if (!t || !a.value) return;
18776
18791
  const k = e.dayFromPoint(h, f);
18777
18792
  if (!k) return;
18778
18793
  if (t.kind === "create") {
18779
- const T = Ge(k).getTime(), x = Math.min(r, T), V = et(new Date(Math.max(r, T)), 1);
18794
+ const T = Ge(k).getTime(), x = Math.min(r, T), V = tt(new Date(Math.max(r, T)), 1);
18780
18795
  a.value = { id: "__new__", start: new Date(x), end: V };
18781
18796
  return;
18782
18797
  }
@@ -18830,12 +18845,12 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18830
18845
  },
18831
18846
  emits: ["event-click", "create-intent", "event-update", "edit-intent", "event-delete"],
18832
18847
  setup(e, { emit: a }) {
18833
- const t = e, l = a, r = D(null), i = y(() => {
18848
+ const t = e, l = a, r = B(null), i = y(() => {
18834
18849
  const te = t.firstDayOfWeek % 7, me = At(Gl(t.focusedDate), { weekStartsOn: te });
18835
- return { start: me, end: et(me, 42) };
18850
+ return { start: me, end: tt(me, 42) };
18836
18851
  }), o = y(
18837
18852
  () => Array.from({ length: 42 }, (te, me) => {
18838
- const se = et(i.value.start, me);
18853
+ const se = tt(i.value.start, me);
18839
18854
  return {
18840
18855
  date: se,
18841
18856
  inMonth: Vo(se, t.focusedDate),
@@ -18844,7 +18859,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18844
18859
  };
18845
18860
  })
18846
18861
  ), c = y(
18847
- () => Array.from({ length: 7 }, (te, me) => Te(et(i.value.start, me), "EEEEEE"))
18862
+ () => Array.from({ length: 7 }, (te, me) => Te(tt(i.value.start, me), "EEEEEE"))
18848
18863
  );
18849
18864
  function d(te, me) {
18850
18865
  const se = r.value;
@@ -18852,7 +18867,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18852
18867
  const ye = se.getBoundingClientRect();
18853
18868
  if (ye.width <= 0 || ye.height <= 0) return null;
18854
18869
  const Ee = Math.floor((te - ye.left) / ye.width * 7), $e = Math.floor((me - ye.top) / ye.height * 6);
18855
- return Ee < 0 || Ee > 6 || $e < 0 || $e > 5 ? null : et(i.value.start, $e * 7 + Ee);
18870
+ return Ee < 0 || Ee > 6 || $e < 0 || $e > 5 ? null : tt(i.value.start, $e * 7 + Ee);
18856
18871
  }
18857
18872
  const u = C_({
18858
18873
  editable: Ie(t, "editable"),
@@ -18873,7 +18888,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18873
18888
  laidOut: p.laidOut.value[me] ?? [],
18874
18889
  overflow: p.overflowByDay.value[me] ?? []
18875
18890
  }))
18876
- ), h = D(null);
18891
+ ), h = B(null);
18877
18892
  function f(te) {
18878
18893
  return t.events.find((me) => me.id === te);
18879
18894
  }
@@ -18889,13 +18904,13 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18889
18904
  function S(te) {
18890
18905
  return b.timedByDay.value.get(Te(te, "yyyy-MM-dd")) ?? [];
18891
18906
  }
18892
- let T = null, x = null, V = null, B = !1;
18907
+ let T = null, x = null, V = null, D = !1;
18893
18908
  const O = /* @__PURE__ */ new Map(), M = Si({
18894
18909
  onIntent: (te, me) => {
18895
18910
  const se = O.get(me);
18896
18911
  if (O.delete(me), !se) return;
18897
18912
  const ye = Ge(se.date);
18898
- l("create-intent", { start: ye, end: et(ye, 1), allDay: !0, anchorRect: se.rect, kind: te });
18913
+ l("create-intent", { start: ye, end: tt(ye, 1), allDay: !0, anchorRect: se.rect, kind: te });
18899
18914
  }
18900
18915
  });
18901
18916
  function R(te, me) {
@@ -18905,17 +18920,17 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18905
18920
  t.editable && (T = "resize", u.beginResize(te, me, se.clientX, se.clientY), F());
18906
18921
  }
18907
18922
  function _(te, me) {
18908
- t.editable && (T = "create", x = te, V = me.currentTarget?.getBoundingClientRect() ?? null, B = !1, u.beginCreate(te), F());
18923
+ t.editable && (T = "create", x = te, V = me.currentTarget?.getBoundingClientRect() ?? null, D = !1, u.beginCreate(te), F());
18909
18924
  }
18910
18925
  function E(te) {
18911
- if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && x && !B)) {
18926
+ if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && x && !D)) {
18912
18927
  const me = d(te.clientX, te.clientY);
18913
- me && !Wl(me, x) && (B = !0);
18928
+ me && !Wl(me, x) && (D = !0);
18914
18929
  }
18915
18930
  }
18916
18931
  function N() {
18917
18932
  if (T === "create") {
18918
- if (B) {
18933
+ if (D) {
18919
18934
  M.cancel(), O.clear();
18920
18935
  const te = u.pending.value;
18921
18936
  te && l("create-intent", { start: te.start, end: te.end, allDay: !0, anchorRect: V, kind: "drag" });
@@ -18923,7 +18938,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18923
18938
  const te = Te(x, "yyyy-MM-dd");
18924
18939
  O.set(te, { date: x, rect: V }), M.click(te);
18925
18940
  }
18926
- u.cancel(), x = null, V = null, B = !1;
18941
+ u.cancel(), x = null, V = null, D = !1;
18927
18942
  } else
18928
18943
  u.commit();
18929
18944
  T = null, z();
@@ -18937,7 +18952,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18937
18952
  Rt(() => {
18938
18953
  z(), M.cancel(), O.clear();
18939
18954
  });
18940
- const K = D(!1), Z = D(null), de = D(null);
18955
+ const K = B(!1), Z = B(null), de = B(null);
18941
18956
  function Y(te, me) {
18942
18957
  Z.value = te, de.value = me, K.value = !0;
18943
18958
  }
@@ -18953,7 +18968,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
18953
18968
  function ne(te, me = null) {
18954
18969
  h.value = te.id, l("event-click", te), K.value = !1, t.quickInfo && Re(() => W(te, me ?? de.value));
18955
18970
  }
18956
- const ee = D(!1), G = D(null), ke = D(null);
18971
+ const ee = B(!1), G = B(null), ke = B(null);
18957
18972
  function W(te, me) {
18958
18973
  G.value = te, ke.value = me, ee.value = !0;
18959
18974
  }
@@ -19013,7 +19028,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19013
19028
  }, [
19014
19029
  w("span", {
19015
19030
  class: "vc-scheduler__timed-chip-dot",
19016
- style: he({ background: $e.color ?? n(Bt)($e.title) })
19031
+ style: he({ background: $e.color ?? n(Dt)($e.title) })
19017
19032
  }, null, 4),
19018
19033
  w("span", $_, U(n(Te)($e.start, "HH:mm")) + " " + U($e.title), 1),
19019
19034
  $e.recurrenceId || $e.recurrence ? (s(), g("span", R_, "↻")) : L("", !0)
@@ -19064,7 +19079,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19064
19079
  }, I_ = {
19065
19080
  key: 1,
19066
19081
  class: "vc-scheduler__agenda-list"
19067
- }, x_ = { class: "vc-scheduler__agenda-dow" }, N_ = { class: "vc-scheduler__agenda-date" }, D_ = { class: "vc-scheduler__agenda-events" }, B_ = ["onClick"], P_ = { class: "vc-scheduler__agenda-time" }, V_ = { class: "vc-scheduler__agenda-title" }, F_ = {
19082
+ }, x_ = { class: "vc-scheduler__agenda-dow" }, N_ = { class: "vc-scheduler__agenda-date" }, B_ = { class: "vc-scheduler__agenda-events" }, D_ = ["onClick"], P_ = { class: "vc-scheduler__agenda-time" }, V_ = { class: "vc-scheduler__agenda-title" }, F_ = {
19068
19083
  key: 0,
19069
19084
  class: "vc-scheduler__agenda-span"
19070
19085
  }, U_ = {
@@ -19084,8 +19099,8 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19084
19099
  setup(e, { emit: a }) {
19085
19100
  const { t } = ze(), l = e, r = a, i = (m) => m.allDay !== void 0 ? m.allDay : m.end.getTime() - m.start.getTime() >= 864e5, o = y(() => {
19086
19101
  const m = Gl(l.focusedDate), h = mc(l.focusedDate), f = [];
19087
- for (let k = Ge(m); k <= h; k = et(k, 1)) {
19088
- const C = k.getTime(), S = et(k, 1).getTime(), T = l.events.filter((x) => x.start.getTime() < S && x.end.getTime() > C).sort((x, V) => Number(i(V)) - Number(i(x)) || x.start.getTime() - V.start.getTime());
19102
+ for (let k = Ge(m); k <= h; k = tt(k, 1)) {
19103
+ const C = k.getTime(), S = tt(k, 1).getTime(), T = l.events.filter((x) => x.start.getTime() < S && x.end.getTime() > C).sort((x, V) => Number(i(V)) - Number(i(x)) || x.start.getTime() - V.start.getTime());
19089
19104
  T.length && f.push({ key: Te(k, "yyyy-MM-dd"), date: new Date(k), isToday: Xn(k), events: T });
19090
19105
  }
19091
19106
  return f;
@@ -19094,12 +19109,12 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19094
19109
  return i(m) ? t("VC_SCHEDULER.ALL_DAY") : Wl(m.start, m.end) ? Te(m.start, "p") : Te(m.start, "MMM d, p");
19095
19110
  }
19096
19111
  function d(m, h) {
19097
- const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Dt(k, f) + 1;
19112
+ const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Bt(k, f) + 1;
19098
19113
  if (C <= 1) return "";
19099
- const S = Dt(Ge(h), f) + 1;
19114
+ const S = Bt(Ge(h), f) + 1;
19100
19115
  return t("VC_SCHEDULER.DAY_N_OF_M", { n: S, total: C });
19101
19116
  }
19102
- const u = D(!1), v = D(null), b = D(null);
19117
+ const u = B(!1), v = B(null), b = B(null);
19103
19118
  function p(m, h) {
19104
19119
  r("event-click", m), l.quickInfo && (v.value = m, b.value = h.currentTarget?.getBoundingClientRect() ?? null, u.value = !0);
19105
19120
  }
@@ -19115,7 +19130,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19115
19130
  w("span", x_, U(n(Te)(f.date, "EEE")), 1),
19116
19131
  w("span", N_, U(n(Te)(f.date, "d MMM")), 1)
19117
19132
  ], 2),
19118
- w("ul", D_, [
19133
+ w("ul", B_, [
19119
19134
  (s(!0), g(J, null, ve(f.events, (k) => (s(), g("li", {
19120
19135
  key: k.id
19121
19136
  }, [
@@ -19126,7 +19141,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19126
19141
  }, [
19127
19142
  w("span", {
19128
19143
  class: "vc-scheduler__agenda-dot",
19129
- style: he({ background: k.color ?? n(Bt)(k.title) })
19144
+ style: he({ background: k.color ?? n(Dt)(k.title) })
19130
19145
  }, null, 4),
19131
19146
  w("span", P_, U(c(k)), 1),
19132
19147
  w("span", V_, [
@@ -19136,7 +19151,7 @@ const __ = { class: "vc-scheduler__month" }, k_ = {
19136
19151
  ]),
19137
19152
  d(k, f.date) ? (s(), g("span", F_, U(d(k, f.date)), 1)) : L("", !0),
19138
19153
  k.recurrenceId || k.recurrence ? (s(), g("span", U_, "↻")) : L("", !0)
19139
- ], 8, B_)
19154
+ ], 8, D_)
19140
19155
  ]))), 128))
19141
19156
  ])
19142
19157
  ]))), 128))
@@ -19187,7 +19202,7 @@ function W_(e) {
19187
19202
  function G_(e) {
19188
19203
  const a = y(() => Math.max(1, e.dayCount.value)), t = y(() => Math.max(1, e.endHour.value - e.startHour.value)), l = y(() => t.value * e.hourHeight.value), r = y(() => {
19189
19204
  const p = Ge(e.rangeStart.value);
19190
- return Array.from({ length: a.value }, (m, h) => et(p, h));
19205
+ return Array.from({ length: a.value }, (m, h) => tt(p, h));
19191
19206
  }), i = y(
19192
19207
  () => r.value.map((p, m) => ({
19193
19208
  date: p,
@@ -19216,10 +19231,10 @@ function G_(e) {
19216
19231
  endMs: Math.min(V.end.getTime(), T)
19217
19232
  }));
19218
19233
  return W_(x).map((V) => {
19219
- const B = (V.startMs - S) / no * m, O = Math.max((V.endMs - V.startMs) / no * m, H_);
19234
+ const D = (V.startMs - S) / no * m, O = Math.max((V.endMs - V.startMs) / no * m, H_);
19220
19235
  return {
19221
19236
  event: V.event,
19222
- top: B,
19237
+ top: D,
19223
19238
  height: O,
19224
19239
  leftPct: V.lane / V.laneCount * 100,
19225
19240
  widthPct: 100 / V.laneCount,
@@ -19230,7 +19245,7 @@ function G_(e) {
19230
19245
  }), u = y(() => d.value.some((p) => p.length > 0)), v = y(() => {
19231
19246
  if (!r.value.length) return [];
19232
19247
  const p = Ge(r.value[0]), m = r.value.length - 1, h = c(), f = e.events.value.filter(Fn).map((C) => {
19233
- const S = Dt(Ge(C.start), p), T = Dt(Ge(new Date(C.end.getTime() - 1)), p), x = Math.max(S, 0), V = Math.min(T, m);
19248
+ const S = Bt(Ge(C.start), p), T = Bt(Ge(new Date(C.end.getTime() - 1)), p), x = Math.max(S, 0), V = Math.min(T, m);
19234
19249
  return {
19235
19250
  event: C,
19236
19251
  startCol: x,
@@ -19319,7 +19334,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19319
19334
  return `${R.title}: ${Te(R.start, "PPp")} – ${Te(R.end, "PPp")}`;
19320
19335
  }
19321
19336
  function p(R) {
19322
- const A = R.event.color ?? Bt(R.event.title);
19337
+ const A = R.event.color ?? Dt(R.event.title);
19323
19338
  return {
19324
19339
  top: `${R.top}px`,
19325
19340
  height: `${R.height}px`,
@@ -19329,7 +19344,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19329
19344
  };
19330
19345
  }
19331
19346
  function m(R) {
19332
- const A = R.event.color ?? Bt(R.event.title);
19347
+ const A = R.event.color ?? Dt(R.event.title);
19333
19348
  return {
19334
19349
  top: `${R.row * ao + 2}px`,
19335
19350
  left: `calc(${R.startCol / v.dayCount.value * 100}% + 1px)`,
@@ -19337,16 +19352,16 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19337
19352
  ...Vn(A, R.past)
19338
19353
  };
19339
19354
  }
19340
- const h = D(null);
19341
- tt(() => {
19355
+ const h = B(null);
19356
+ et(() => {
19342
19357
  const R = h.value;
19343
19358
  if (!R) return;
19344
19359
  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);
19345
19360
  R.scrollTop = Math.max(0, _ - Nt / 2);
19346
19361
  });
19347
- const f = D(Date.now());
19362
+ const f = B(Date.now());
19348
19363
  let k;
19349
- tt(() => {
19364
+ et(() => {
19350
19365
  k = setInterval(() => f.value = Date.now(), 6e4);
19351
19366
  }), Rt(() => {
19352
19367
  k && clearInterval(k);
@@ -19372,9 +19387,9 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19372
19387
  Rt(() => {
19373
19388
  T.cancel(), S.clear();
19374
19389
  });
19375
- const V = D(!1), B = D(null), O = D(null);
19390
+ const V = B(!1), D = B(null), O = B(null);
19376
19391
  function M(R, A) {
19377
- l("event-click", R), t.quickInfo && (B.value = R, O.value = A.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19392
+ l("event-click", R), t.quickInfo && (D.value = R, O.value = A.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19378
19393
  }
19379
19394
  return (R, A) => (s(), g("div", q_, [
19380
19395
  w("div", K_, [
@@ -19483,9 +19498,9 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19483
19498
  ])) : L("", !0),
19484
19499
  $(oa, {
19485
19500
  open: V.value,
19486
- event: B.value,
19501
+ event: D.value,
19487
19502
  "anchor-rect": O.value,
19488
- "can-edit": t.editable && !!B.value && t.isEventEditable(B.value),
19503
+ "can-edit": t.editable && !!D.value && t.isEventEditable(D.value),
19489
19504
  onClose: A[0] || (A[0] = (_) => V.value = !1),
19490
19505
  onEdit: A[1] || (A[1] = (_) => l("edit-intent", _)),
19491
19506
  onDelete: A[2] || (A[2] = (_) => l("event-delete", _))
@@ -19509,7 +19524,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19509
19524
  },
19510
19525
  emits: ["save", "more", "close"],
19511
19526
  setup(e, { emit: a }) {
19512
- const t = e, l = a, r = D(t.draft.title), i = D(null), o = y(
19527
+ const t = e, l = a, r = B(t.draft.title), i = B(null), o = y(
19513
19528
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
19514
19529
  ), c = y(() => r.value.trim().length > 0);
19515
19530
  oe(
@@ -19589,7 +19604,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19589
19604
  }, bk = { class: "vc-scheduler__editor-row" }, hk = { class: "vc-scheduler__recur-unit" }, yk = {
19590
19605
  key: 0,
19591
19606
  class: "vc-scheduler__recur-weekly"
19592
- }, wk = { class: "vc-scheduler__recur-caption" }, Ck = { class: "vc-scheduler__recur-weekdays" }, _k = ["aria-pressed", "aria-label", "onClick"], kk = { class: "vc-scheduler__editor-row" }, Ek = { class: "vc-scheduler__editor-footer" }, Rl = "default", Sk = /* @__PURE__ */ Q({
19607
+ }, wk = { class: "vc-scheduler__recur-caption" }, Ck = { class: "vc-scheduler__recur-weekdays" }, _k = ["aria-pressed", "aria-label", "onClick"], kk = { class: "vc-scheduler__editor-row" }, Ek = { class: "vc-scheduler__editor-footer" }, Al = "default", Sk = /* @__PURE__ */ Q({
19593
19608
  __name: "SchedulerEventEditor",
19594
19609
  props: {
19595
19610
  open: { type: Boolean },
@@ -19602,7 +19617,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19602
19617
  setup(e, { emit: a }) {
19603
19618
  const { t } = ze(), l = y(() => {
19604
19619
  const A = [
19605
- { value: Rl, label: t("VC_SCHEDULER.COLOR_DEFAULT") },
19620
+ { value: Al, label: t("VC_SCHEDULER.COLOR_DEFAULT") },
19606
19621
  { value: "#3b82f6", label: t("VC_SCHEDULER.COLOR_BLUE") },
19607
19622
  { value: "#22c55e", label: t("VC_SCHEDULER.COLOR_GREEN") },
19608
19623
  { value: "#f59e0b", label: t("VC_SCHEDULER.COLOR_AMBER") },
@@ -19636,7 +19651,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19636
19651
  ]), b = y(() => {
19637
19652
  const A = At(/* @__PURE__ */ new Date(), { weekStartsOn: 0 });
19638
19653
  return Array.from({ length: 7 }, (_, E) => {
19639
- const N = et(A, E);
19654
+ const N = tt(A, E);
19640
19655
  return { value: E, label: Te(N, "EEEEE"), fullLabel: Te(N, "EEEE") };
19641
19656
  });
19642
19657
  }), p = y(() => {
@@ -19686,7 +19701,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19686
19701
  function V(A) {
19687
19702
  !o.recurrence || o.recurrence.end.type !== "until" || !A || (o.recurrence.end.until = A);
19688
19703
  }
19689
- function B(A) {
19704
+ function D(A) {
19690
19705
  if (!o.recurrence || o.recurrence.end.type !== "count") return;
19691
19706
  const _ = Math.trunc(Number(A));
19692
19707
  o.recurrence.end.count = Number.isFinite(_) && _ >= 1 ? _ : 1;
@@ -19700,7 +19715,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19700
19715
  function R(A) {
19701
19716
  A || i("close");
19702
19717
  }
19703
- return (A, _) => (s(), P(n(cl), {
19718
+ return (A, _) => (s(), P(n(ul), {
19704
19719
  "model-value": e.open,
19705
19720
  title: A.$t(e.mode === "edit" ? "VC_SCHEDULER.EDIT_EVENT" : "VC_SCHEDULER.NEW_EVENT"),
19706
19721
  "modal-width": "tw-max-w-lg",
@@ -19738,20 +19753,20 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19738
19753
  ]),
19739
19754
  e.allowColor ? (s(), P(n(Ct), {
19740
19755
  key: 0,
19741
- "model-value": o.color ?? Rl,
19756
+ "model-value": o.color ?? Al,
19742
19757
  label: A.$t("VC_SCHEDULER.COLOR"),
19743
19758
  options: l.value,
19744
19759
  "option-value": "value",
19745
19760
  "option-label": "label",
19746
19761
  "data-test": "editor-color",
19747
- "onUpdate:modelValue": _[4] || (_[4] = (E) => o.color = E && E !== Rl ? E : void 0)
19762
+ "onUpdate:modelValue": _[4] || (_[4] = (E) => o.color = E && E !== Al ? E : void 0)
19748
19763
  }, {
19749
19764
  option: I(({ opt: E }) => [
19750
19765
  w("span", pk, [
19751
19766
  w("span", {
19752
19767
  class: "vc-scheduler__color-dot",
19753
19768
  style: he({
19754
- background: E.value === Rl ? "var(--primary-500)" : E.value
19769
+ background: E.value === Al ? "var(--primary-500)" : E.value
19755
19770
  })
19756
19771
  }, null, 4),
19757
19772
  fe(" " + U(E.label), 1)
@@ -19823,7 +19838,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19823
19838
  label: A.$t("VC_SCHEDULER.REPEAT_END_COUNT"),
19824
19839
  class: "vc-scheduler__editor-field",
19825
19840
  "data-test": "recur-end-count",
19826
- "onUpdate:modelValue": _[9] || (_[9] = (E) => B(E))
19841
+ "onUpdate:modelValue": _[9] || (_[9] = (E) => D(E))
19827
19842
  }, null, 8, ["model-value", "label"])) : L("", !0)
19828
19843
  ])
19829
19844
  ])) : L("", !0)
@@ -19882,7 +19897,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19882
19897
  function l(r) {
19883
19898
  r || t("close");
19884
19899
  }
19885
- return (r, i) => (s(), P(n(cl), {
19900
+ return (r, i) => (s(), P(n(ul), {
19886
19901
  "model-value": e.open,
19887
19902
  title: r.$t("VC_SCHEDULER.RECUR_SCOPE_TITLE"),
19888
19903
  "modal-width": "tw-max-w-sm",
@@ -19943,7 +19958,7 @@ const q_ = { class: "vc-scheduler__tg" }, K_ = { class: "vc-scheduler__tg-head"
19943
19958
  function l(r) {
19944
19959
  r || t("close");
19945
19960
  }
19946
- return (r, i) => (s(), P(n(cl), {
19961
+ return (r, i) => (s(), P(n(ul), {
19947
19962
  "model-value": e.open,
19948
19963
  title: e.title,
19949
19964
  "modal-width": "tw-max-w-sm",
@@ -20001,7 +20016,7 @@ function Lk(e) {
20001
20016
  const u = e.date.value;
20002
20017
  switch (e.view.value) {
20003
20018
  case "timeline-day":
20004
- return et(u, d);
20019
+ return tt(u, d);
20005
20020
  case "timeline-week":
20006
20021
  return gc(u, d);
20007
20022
  default:
@@ -20060,7 +20075,7 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20060
20075
  }
20061
20076
  function p() {
20062
20077
  const W = Ge(Z.value);
20063
- b({ start: W, end: et(W, 1), allDay: !0, anchorRect: null, kind: "double" });
20078
+ b({ start: W, end: tt(W, 1), allDay: !0, anchorRect: null, kind: "double" });
20064
20079
  }
20065
20080
  function m(W) {
20066
20081
  if (t.editorMode === "emit") {
@@ -20158,7 +20173,7 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20158
20173
  function V() {
20159
20174
  u.open = !1, u.event = null;
20160
20175
  }
20161
- function B({ title: W }) {
20176
+ function D({ title: W }) {
20162
20177
  if (d.draft) {
20163
20178
  const { start: ae, end: re, allDay: ie, color: te } = d.draft;
20164
20179
  l("event-create", { start: ae, end: re, allDay: ie, title: W, color: te });
@@ -20231,12 +20246,12 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20231
20246
  month: "VC_SCHEDULER.MONTH",
20232
20247
  "timeline-day": "VC_SCHEDULER.TIMELINE_DAY",
20233
20248
  "timeline-week": "VC_SCHEDULER.TIMELINE_WEEK"
20234
- }, N = y(() => t.views.map((W) => ({ value: W, label: i(E[W]) }))), F = D(t.view ?? t.views[0] ?? "month"), z = y({
20249
+ }, N = y(() => t.views.map((W) => ({ value: W, label: i(E[W]) }))), F = B(t.view ?? t.views[0] ?? "month"), z = y({
20235
20250
  get: () => t.view ?? F.value,
20236
20251
  set: (W) => {
20237
20252
  F.value = W, l("update:view", W);
20238
20253
  }
20239
- }), K = D(t.date ?? /* @__PURE__ */ new Date()), Z = y({
20254
+ }), K = B(t.date ?? /* @__PURE__ */ new Date()), Z = y({
20240
20255
  get: () => t.date ?? K.value,
20241
20256
  set: (W) => {
20242
20257
  K.value = W, l("update:date", W);
@@ -20250,7 +20265,7 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20250
20265
  if (z.value === "timeline-week")
20251
20266
  return { start: At(W, { weekStartsOn: ae }), end: Uo(W, { weekStartsOn: ae }) };
20252
20267
  const re = At(Gl(W), { weekStartsOn: ae });
20253
- return { start: re, end: et(re, 42) };
20268
+ return { start: re, end: tt(re, 42) };
20254
20269
  }), q = y(() => o_(t.events, Y.value)), ne = y(() => t.loading && q.value.length === 0), ee = y(() => z.value === "month" ? r.value ? "agenda" : "month" : "timeline"), G = Lk({
20255
20270
  date: Z,
20256
20271
  view: z,
@@ -20259,7 +20274,7 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20259
20274
  Z.value = W;
20260
20275
  }
20261
20276
  }), ke = (W) => t.isEventEditable ? t.isEventEditable(W) : !0;
20262
- return De(Ik, {
20277
+ return Be(Ik, {
20263
20278
  focusedDate: Z,
20264
20279
  view: z,
20265
20280
  editable: Ie(t, "editable"),
@@ -20373,7 +20388,7 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20373
20388
  open: d.open,
20374
20389
  anchorRect: d.anchorRect,
20375
20390
  draft: d.draft ?? o,
20376
- save: B,
20391
+ save: D,
20377
20392
  more: O,
20378
20393
  close: M
20379
20394
  }, () => [
@@ -20381,7 +20396,7 @@ const Ik = Symbol("VcSchedulerCalendarContext"), xk = ["aria-busy"], h$ = /* @__
20381
20396
  open: d.open,
20382
20397
  "anchor-rect": d.anchorRect,
20383
20398
  draft: d.draft ?? o,
20384
- onSave: B,
20399
+ onSave: D,
20385
20400
  onMore: O,
20386
20401
  onClose: M
20387
20402
  }, null, 8, ["open", "anchor-rect", "draft"])
@@ -20439,8 +20454,8 @@ export {
20439
20454
  NS as I,
20440
20455
  Jl as J,
20441
20456
  l$ as K,
20442
- DS as L,
20443
- BS as M,
20457
+ BS as L,
20458
+ DS as M,
20444
20459
  yC as N,
20445
20460
  jl as O,
20446
20461
  Xl as P,
@@ -20456,7 +20471,7 @@ export {
20456
20471
  d$ as Z,
20457
20472
  $S as _,
20458
20473
  iw as a,
20459
- Bc as a$,
20474
+ Dc as a$,
20460
20475
  Hy as a0,
20461
20476
  ai as a1,
20462
20477
  n$ as a2,
@@ -20495,7 +20510,7 @@ export {
20495
20510
  Yc as aZ,
20496
20511
  _S as a_,
20497
20512
  ct as aa,
20498
- cl as ab,
20513
+ ul as ab,
20499
20514
  PS as ac,
20500
20515
  ta as ad,
20501
20516
  t$ as ae,
@@ -20509,7 +20524,7 @@ export {
20509
20524
  yf as am,
20510
20525
  ZS as an,
20511
20526
  FS as ao,
20512
- Dl as ap,
20527
+ Bl as ap,
20513
20528
  p$ as aq,
20514
20529
  ci as ar,
20515
20530
  Zn as as,
@@ -20546,7 +20561,7 @@ export {
20546
20561
  Wv as ba,
20547
20562
  kS as bb,
20548
20563
  Gc as bc,
20549
- Dc as bd,
20564
+ Bc as bd,
20550
20565
  jo as be,
20551
20566
  Zo as bf,
20552
20567
  LS as bg,
@@ -20566,12 +20581,12 @@ export {
20566
20581
  of as bu,
20567
20582
  lf as bv,
20568
20583
  _c as bw,
20569
- xl as bx,
20584
+ nl as bx,
20570
20585
  kc as by,
20571
20586
  ES as bz,
20572
20587
  Pl as c,
20573
- nl as d,
20574
- Dw as e,
20588
+ al as d,
20589
+ Bw as e,
20575
20590
  gi as f,
20576
20591
  a0 as g,
20577
20592
  Ka as h,
@@ -20588,7 +20603,7 @@ export {
20588
20603
  Ga as s,
20589
20604
  r$ as t,
20590
20605
  Jb as u,
20591
- Bn as v,
20606
+ Dn as v,
20592
20607
  fh as w,
20593
20608
  Mh as x,
20594
20609
  rb as y,