@vc-shell/framework 2.5.0-pr314.ce6b912 → 2.5.0-pr315.e9a6975

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { nextTick as Re, ref as B, computed as y, getCurrentInstance as Lt, inject as Ce, defineComponent as Y, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as tt, onBeforeUnmount as We, toValue as Ne, reactive as mt, shallowRef as Yn, provide as Be, createBlock as D, unref as a, withCtx as M, withDirectives as Xe, resolveDynamicComponent as qe, vShow as kt, createCommentVNode as L, toRef as Ie, normalizeClass as Q, renderSlot as z, toDisplayString as F, Teleport as bt, createVNode as T, Transition as Ue, normalizeStyle as he, Fragment as J, renderList as ve, createTextVNode as de, mergeProps as Le, withModifiers as ue, isRef as ht, h as go, withKeys as $e, createSlots as xe, markRaw as Dn, useId as Pt, useSlots as yt, TransitionGroup as jn, toHandlers as Ll, onUnmounted as Ot, hasInjectionContext as bo, getCurrentScope as ho, onScopeDispose as Xn, useAttrs as Zi, watchEffect as Qn, vModelText as es, toRefs as ts, normalizeProps as pt, guardReactiveProps as gt, vModelCheckbox as ls, toRaw as yo } from "vue";
1
+ import { nextTick as Re, ref as B, computed as y, getCurrentInstance as Lt, inject as Ce, defineComponent as Y, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as tt, onBeforeUnmount as We, toValue as Ne, reactive as mt, shallowRef as Yn, provide as Be, createBlock as D, unref as a, withCtx as M, withDirectives as Xe, resolveDynamicComponent as qe, vShow as kt, createCommentVNode as L, toRef as xe, normalizeClass as Q, renderSlot as z, toDisplayString as F, Teleport as bt, createVNode as T, Transition as Ue, normalizeStyle as he, Fragment as J, renderList as ve, createTextVNode as de, mergeProps as Le, withModifiers as ue, isRef as ht, h as go, withKeys as $e, createSlots as Ie, markRaw as Dn, useId as Pt, useSlots as yt, TransitionGroup as jn, toHandlers as Ll, onUnmounted as Ot, hasInjectionContext as bo, getCurrentScope as ho, onScopeDispose as Xn, useAttrs as Zi, watchEffect as Qn, vModelText as es, toRefs as ts, normalizeProps as pt, guardReactiveProps as gt, vModelCheckbox as ls, toRaw as yo } from "vue";
2
2
  import { aa as ns, c as Ze, N as as, d as wo, B as sl, P as Jn, O as Co, e as _o, J as ko, _ as le, u as Vt, A as os, a as st, b as Eo, W as So, h as is, L as Pn, t as Vn, n as ss, K as rs, ae as $o, M as cs, R as Zn, E as rl, y as Fn, w as us, a2 as ds, Y as Ro, F as vs, D as To, s as fs, a7 as ms } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-CZdY18Hq.js";
3
- import { w as Rt, Y as ps, as as gs, B as bs, D as De, m as cl, _ as Ee, aq as Ao, t as ul, a3 as hs, a4 as ys, j as we, k as Qe, s as ws, g as rt, Q as Cs, I as Fl, x as Ct, H as _s, at as ks, n as Ft, V as Je, au as Es, a2 as Oo, av as Ss, aw as $s, ao as Mo, v as Ul, ap as Rs, d as Fe, h as At, u as Lo, E as Ts, ac as As, p as Os, i as _t, f as Ms, ax as zl, q as Io, ay as xo, az as No, e as Ls, aA as Is, aB as ol, aC as xs, aD as Ns, l as Bo, b as Bs, c as Cn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BTg4PjTB.js";
4
- import { m as Do, w as Ut, v as _n, t as Ds, r as Il, x as Ps, q as Un, z as Ml, y as Po, g as ea, B as Vs, _ as Fs } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-9mBLzIi1.js";
3
+ import { w as Rt, Y as ps, as as gs, B as bs, D as De, m as cl, _ as Ee, aq as Ao, t as ul, a3 as hs, a4 as ys, j as we, k as Qe, s as ws, g as rt, Q as Cs, I as Fl, x as Ct, H as _s, at as ks, n as Ft, V as Je, au as Es, a2 as Oo, av as Ss, aw as $s, ao as Mo, v as Ul, ap as Rs, d as Fe, h as At, u as Lo, E as Ts, ac as As, p as Os, i as _t, f as Ms, ax as zl, q as xo, ay as Io, az as No, e as Ls, aA as xs, aB as ol, aC as Is, aD as Ns, l as Bo, b as Bs, c as Cn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BTg4PjTB.js";
4
+ import { m as Do, w as Ut, v as _n, t as Ds, r as xl, x as Ps, q as Un, z as Ml, y as Po, g as ea, B as Vs, _ as Fs } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-9mBLzIi1.js";
5
5
  import { u as Pe } from "./vendor-vue-i18n-LO-EJStU.js";
6
6
  import { s as Hl, f as ta, o as la, d as Us } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
7
7
  import zs from "../assets/d5f9664ebbfb104b.svg";
@@ -49,8 +49,8 @@ import Ar from "../assets/41275bcb979cb650.svg";
49
49
  import Or from "../assets/1de63eb118636cce.svg";
50
50
  import Mr from "../assets/e5adb5ae3a3698f6.svg";
51
51
  import Lr from "../assets/b5bb1e8fc975decd.svg";
52
- import Ir from "../assets/157b8721e0600ea8.svg";
53
- import xr from "../assets/a18404194e3f9047.svg";
52
+ import xr from "../assets/157b8721e0600ea8.svg";
53
+ import Ir from "../assets/a18404194e3f9047.svg";
54
54
  import Nr from "../assets/a2017fe7f0a26510.svg";
55
55
  import Br from "../assets/0f590f8a94577092.svg";
56
56
  import Dr from "../assets/259e6ad461a52ad7.svg";
@@ -79,7 +79,7 @@ import { T as dc } from "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
79
79
  import { M as vc } from "./vendor-tiptap-markdown-18K1hcU0.js";
80
80
  import { b as fc } from "./vendor-js-beautify-D-6mWVv0.js";
81
81
  import { p as na } from "./vendor-dompurify-DpIUMBYC.js";
82
- import { S as xl, N as Fo, a as Nl, M as mc, f as Uo, G as pc, K as gc } from "./vendor-swiper-BgqGfw3Y.js";
82
+ import { S as Il, N as Fo, a as Nl, M as mc, f as Uo, G as pc, K as gc } from "./vendor-swiper-BgqGfw3Y.js";
83
83
  import { h as zo, d as Ho, o as bc, u as hc, a as Wl, i as yc } from "./vendor-vueuse-core-BFa9je5E.js";
84
84
  import { useRouter as zt, RouterView as wc, useRoute as Ht } from "vue-router";
85
85
  import { v as dl, O as Cc } from "./vendor-vueuse-components-CoR2FSn3.js";
@@ -87,13 +87,13 @@ import { u as _c, k as kc, j as Ec } from "./vendor-vueuse-shared-kZH3-Km1.js";
87
87
  import { l as Sc, s as $c } 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
- import { e as Rc, c as Ia, g as aa } from "./vendor-lodash-es-D2n90GJy.js";
90
+ import { e as Rc, c as xa, g as aa } from "./vendor-lodash-es-D2n90GJy.js";
91
91
  import { S as Wo } from "./vendor-sortablejs-Bsvu-FKn.js";
92
92
  import "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
93
93
  import { t as Tc } from "./vendor-truncate-html-ChA1T5zy.js";
94
- import { S as Tt, h as Ae, T as Ac, U as Go, V as Gl, W as Ge, d as Bt, J as lt, x as Mt, z as ql, a as Oc, X as oa, Y as qo, Z as Mc, _ as Lc, w as Ko, y as Yo, $ as Ic, a0 as xc } from "./vendor-date-fns-C-55OMpS.js";
94
+ import { S as Tt, h as Ae, T as Ac, U as Go, V as Gl, W as Ge, d as Bt, J as lt, x as Mt, z as ql, a as Oc, X as oa, Y as qo, Z as Mc, _ as Lc, w as Ko, y as Yo, $ as xc, a0 as Ic } from "./vendor-date-fns-C-55OMpS.js";
95
95
  import { r as ia, R as je } from "./vendor-rrule-C4g_KGmu.js";
96
- import { S as Nc, Y as Bc, h as xa, G as Dc, V as Pc } from "./vendor-headlessui-vue-Cn-RMs4E.js";
96
+ import { S as Nc, Y as Bc, h as Ia, G as Dc, V as Pc } from "./vendor-headlessui-vue-Cn-RMs4E.js";
97
97
  function zn(e) {
98
98
  Re(() => {
99
99
  const n = document.activeElement;
@@ -265,9 +265,9 @@ function Jc(e) {
265
265
  if (V?.broadcast && i.value && !i.value(N) || N.notifyType && Kc.includes(N.notifyType))
266
266
  return;
267
267
  let O = N.isNew;
268
- const x = t.value.findIndex((E) => E.id === N.id);
269
- if (x !== -1) {
270
- const E = t.value[x];
268
+ const I = t.value.findIndex((E) => E.id === N.id);
269
+ if (I !== -1) {
270
+ const E = t.value[I];
271
271
  O = E.isNew, Object.assign(E, N), E.isNew = O;
272
272
  } else
273
273
  t.value.push({ ...N });
@@ -283,9 +283,9 @@ function Jc(e) {
283
283
  E.types.includes(N.notifyType) && (E.filter && !E.filter(N) || E.handler?.(N));
284
284
  }
285
285
  function m(N) {
286
- const V = t.value.find((x) => x.id === N.id);
286
+ const V = t.value.find((I) => I.id === N.id);
287
287
  V && (V.isNew = !1);
288
- const O = l.value.find((x) => x.id === N.id);
288
+ const O = l.value.find((I) => I.id === N.id);
289
289
  O && (O.isNew = !1);
290
290
  }
291
291
  async function h() {
@@ -500,12 +500,12 @@ function ra(e) {
500
500
  return d.value.get(E) || i;
501
501
  }, A = (R, E) => {
502
502
  let _ = 0;
503
- const k = [], I = [], U = v.value;
503
+ const k = [], x = [], U = v.value;
504
504
  for (const q of R) {
505
505
  const K = $(q), te = k.length > 0 ? U : 0;
506
- _ + te + K <= E ? (k.push(q), _ += te + K) : I.push(q);
506
+ _ + te + K <= E ? (k.push(q), _ += te + K) : x.push(q);
507
507
  }
508
- return { visible: k, hidden: I };
508
+ return { visible: k, hidden: x };
509
509
  }, N = () => {
510
510
  if (!n.value || !t.value.length) return;
511
511
  if (c.value <= 0) {
@@ -516,8 +516,8 @@ function ra(e) {
516
516
  const R = v.value, E = o === "reverse" ? [...t.value].reverse() : t.value;
517
517
  let _ = A(E, c.value);
518
518
  if (_.hidden.length > 0) {
519
- const k = C(), I = _.visible.length > 0 ? R : 0;
520
- _ = A(E, c.value - k - I);
519
+ const k = C(), x = _.visible.length > 0 ? R : 0;
520
+ _ = A(E, c.value - k - x);
521
521
  }
522
522
  o === "reverse" ? (b.value = _.visible.reverse(), p.value = _.hidden.reverse()) : (b.value = _.visible, p.value = _.hidden);
523
523
  }, V = () => {
@@ -533,16 +533,16 @@ function ra(e) {
533
533
  const R = new Set(t.value.map(l));
534
534
  for (const E of d.value.keys())
535
535
  R.has(E) || d.value.delete(E);
536
- }, x = () => {
536
+ }, I = () => {
537
537
  h || (h = new ResizeObserver((R) => {
538
538
  let E = !1;
539
539
  for (const _ of R) {
540
540
  const k = _.target;
541
541
  if (!k.isConnected) continue;
542
- const I = k.getAttribute("data-item-key");
543
- if (!I) continue;
542
+ const x = k.getAttribute("data-item-key");
543
+ if (!x) continue;
544
544
  const U = getComputedStyle(k), q = _.borderBoxSize?.[0]?.inlineSize, te = (q ?? k.offsetWidth) + parseFloat(U.marginLeft || "0") + parseFloat(U.marginRight || "0");
545
- te > 0 && d.value.get(I) !== te && (d.value.set(I, te), E = !0);
545
+ te > 0 && d.value.get(x) !== te && (d.value.set(x, te), E = !0);
546
546
  }
547
547
  E && N();
548
548
  })), Re(() => {
@@ -569,12 +569,12 @@ function ra(e) {
569
569
  () => t.value.map(l).join("\0"),
570
570
  () => {
571
571
  O(), Re(() => {
572
- x();
572
+ I();
573
573
  });
574
574
  }
575
575
  ), tt(() => {
576
576
  Re(() => {
577
- V(), x();
577
+ V(), I();
578
578
  });
579
579
  }), We(() => {
580
580
  h && (h.disconnect(), h = null), f.clear();
@@ -588,7 +588,7 @@ function ra(e) {
588
588
  });
589
589
  },
590
590
  // Export function for updating observer
591
- updateObserver: x
591
+ updateObserver: I
592
592
  };
593
593
  }
594
594
  function jl(e = {}) {
@@ -959,8 +959,8 @@ const vu = gs, fu = /* @__PURE__ */ Y({
959
959
  setup(e) {
960
960
  const n = e;
961
961
  Be(bs, {
962
- size: Ie(n, "size"),
963
- attached: Ie(n, "attached")
962
+ size: xe(n, "size"),
963
+ attached: xe(n, "attached")
964
964
  });
965
965
  const t = y(() => [
966
966
  "vc-button-group",
@@ -1089,9 +1089,9 @@ const vu = gs, fu = /* @__PURE__ */ Y({
1089
1089
  } : {}), N = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), V = y(() => t.role === "listbox" ? "option" : "menuitem"), O = y(() => {
1090
1090
  if (!(v.value < 0 || v.value >= t.items.length))
1091
1091
  return R(v.value);
1092
- }), x = [
1092
+ }), I = [
1093
1093
  () => {
1094
- t.closeOnClickOutside && I("outside");
1094
+ t.closeOnClickOutside && x("outside");
1095
1095
  },
1096
1096
  { ignore: [d] }
1097
1097
  ];
@@ -1113,16 +1113,16 @@ const vu = gs, fu = /* @__PURE__ */ Y({
1113
1113
  m.value || (m.value = !0, l("open"));
1114
1114
  }
1115
1115
  function k() {
1116
- I("action");
1116
+ x("action");
1117
1117
  }
1118
- function I(j) {
1118
+ function x(j) {
1119
1119
  m.value && (m.value = !1, l("close", j));
1120
1120
  }
1121
1121
  function U() {
1122
- m.value ? I("action") : _();
1122
+ m.value ? x("action") : _();
1123
1123
  }
1124
1124
  function q(j, G) {
1125
- v.value = G, l("item-click", j), t.closeOnSelect && I("action");
1125
+ v.value = G, l("item-click", j), t.closeOnSelect && x("action");
1126
1126
  }
1127
1127
  function K(j) {
1128
1128
  const G = t.items.length;
@@ -1162,13 +1162,13 @@ const vu = gs, fu = /* @__PURE__ */ Y({
1162
1162
  case "Escape": {
1163
1163
  if (!t.closeOnEscape)
1164
1164
  return;
1165
- j.preventDefault(), j.stopPropagation(), I("escape");
1165
+ j.preventDefault(), j.stopPropagation(), x("escape");
1166
1166
  break;
1167
1167
  }
1168
1168
  }
1169
1169
  }
1170
1170
  function me(j) {
1171
- !t.closeOnEscape || !m.value || j.key !== "Escape" || (j.preventDefault(), I("escape"));
1171
+ !t.closeOnEscape || !m.value || j.key !== "Escape" || (j.preventDefault(), x("escape"));
1172
1172
  }
1173
1173
  return oe(
1174
1174
  () => m.value,
@@ -1261,7 +1261,7 @@ const vu = gs, fu = /* @__PURE__ */ Y({
1261
1261
  ])
1262
1262
  ], 2)
1263
1263
  ], 46, yu)), [
1264
- [a(dl), x]
1264
+ [a(dl), I]
1265
1265
  ]) : L("", !0)
1266
1266
  ]),
1267
1267
  _: 3
@@ -1319,7 +1319,7 @@ const vu = gs, fu = /* @__PURE__ */ Y({
1319
1319
  setup(e) {
1320
1320
  const n = e, t = B(null), l = B(!1), r = ra({
1321
1321
  containerRef: t,
1322
- items: Ie(n, "items"),
1322
+ items: xe(n, "items"),
1323
1323
  getItemKey: (b) => b.id,
1324
1324
  moreButtonWidth: Au,
1325
1325
  calculationStrategy: "reverse",
@@ -1454,7 +1454,7 @@ const vu = gs, fu = /* @__PURE__ */ Y({
1454
1454
  ]);
1455
1455
  }
1456
1456
  }), Lu = Ze("use-breadcrumbs");
1457
- function Iu() {
1457
+ function xu() {
1458
1458
  const e = Yn([]);
1459
1459
  function n(r) {
1460
1460
  const o = e.value.findIndex((i) => i.id === r);
@@ -1565,7 +1565,7 @@ function ca(e, n) {
1565
1565
  function Jl(e) {
1566
1566
  return e === void 0 ? !1 : ht(e) ? !!Ne(e) : !!e;
1567
1567
  }
1568
- const xu = Il.escape, Nu = Il.mod.backslash;
1568
+ const Iu = xl.escape, Nu = xl.mod.backslash;
1569
1569
  function Bu(e) {
1570
1570
  return !!(e.mod || e.ctrl || e.meta || e.alt || e.shift);
1571
1571
  }
@@ -1595,7 +1595,7 @@ function Du(e) {
1595
1595
  return;
1596
1596
  }
1597
1597
  }
1598
- if (_n(xu, r, e.isMac)) {
1598
+ if (_n(Iu, r, e.isMac)) {
1599
1599
  if (!c) return;
1600
1600
  r.preventDefault(), await t(`${i}::__close__`, () => e.closeBlade(i));
1601
1601
  return;
@@ -1620,7 +1620,7 @@ const Vu = ["aria-label"], Fu = {
1620
1620
  }, Uu = /* @__PURE__ */ Y({
1621
1621
  __name: "vc-blade-navigation-new",
1622
1622
  setup(e) {
1623
- const { t: n } = Pe(), t = Ut(), l = Jo(), r = zt(), { breadcrumbs: o, push: i, remove: c } = Iu(), { syncUrlReplace: d } = Do(r, t);
1623
+ const { t: n } = Pe(), t = Ut(), l = Jo(), r = zt(), { breadcrumbs: o, push: i, remove: c } = xu(), { syncUrlReplace: d } = Do(r, t);
1624
1624
  tt(() => {
1625
1625
  t.blades.value.length !== 0 && Re(() => {
1626
1626
  d();
@@ -1652,9 +1652,9 @@ const Vu = ["aria-label"], Fu = {
1652
1652
  o.value.forEach((E) => E && c([E.id])), R.filter((E) => E.visible).forEach((E, _) => {
1653
1653
  i({
1654
1654
  id: _.toString(),
1655
- title: Ie({ title: E.name }, "title"),
1655
+ title: xe({ title: E.name }, "title"),
1656
1656
  clickHandler: async (k) => {
1657
- const I = parseInt(k), q = u.value.filter((K) => K.visible)[I + 1];
1657
+ const x = parseInt(k), q = u.value.filter((K) => K.visible)[x + 1];
1658
1658
  if (q) {
1659
1659
  const K = await t.closeBlade(q.id);
1660
1660
  return K || d(), !K;
@@ -1674,7 +1674,7 @@ const Vu = ["aria-label"], Fu = {
1674
1674
  async function O(R) {
1675
1675
  await t.closeBlade(R) || d();
1676
1676
  }
1677
- async function x(R, E) {
1677
+ async function I(R, E) {
1678
1678
  try {
1679
1679
  const _ = await l.callParent(E, R.method, R.args);
1680
1680
  R.callback?.(_);
@@ -1708,7 +1708,7 @@ const Vu = ["aria-label"], Fu = {
1708
1708
  "back-button": m.value > 1 ? P(k) : void 0,
1709
1709
  inert: b.value !== void 0 && _.id !== b.value,
1710
1710
  onClose: O,
1711
- onParentCall: x
1711
+ onParentCall: I
1712
1712
  }, null, 8, ["descriptor", "closable", "expanded", "visible", "breadcrumbs", "back-button", "inert"]))), 128))
1713
1713
  ])) : (s(), D(a(wc), { key: 0 }))
1714
1714
  ], 8, Vu));
@@ -1780,7 +1780,7 @@ const Hu = { class: "vc-popup__center" }, Wu = ["aria-label"], Gu = { class: "vc
1780
1780
  onKeydown: $e($, ["esc"])
1781
1781
  }, {
1782
1782
  default: M(() => [
1783
- T(a(xa), {
1783
+ T(a(Ia), {
1784
1784
  as: "template",
1785
1785
  enter: "vc-popup__transition-enter",
1786
1786
  "enter-from": "vc-popup__transition-enter-from",
@@ -1802,7 +1802,7 @@ const Hu = { class: "vc-popup__center" }, Wu = ["aria-label"], Gu = { class: "vc
1802
1802
  }])
1803
1803
  }, [
1804
1804
  w("div", Hu, [
1805
- T(a(xa), {
1805
+ T(a(Ia), {
1806
1806
  as: "template",
1807
1807
  enter: "vc-popup__dialog-enter",
1808
1808
  "enter-from": "vc-popup__dialog-enter-from",
@@ -1972,7 +1972,7 @@ const Yu = /* @__PURE__ */ Y({
1972
1972
  default: M(() => [
1973
1973
  (s(), D(qe(i.component), Le({ ref_for: !0 }, { ...i.props, ...i.emits }, {
1974
1974
  onClose: () => i.close?.()
1975
- }), xe({ _: 2 }, [
1975
+ }), Ie({ _: 2 }, [
1976
1976
  ve(i.slots, (d, u) => ({
1977
1977
  name: u,
1978
1978
  fn: M(() => [
@@ -2175,7 +2175,7 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
2175
2175
  },
2176
2176
  emits: ["close", "expand", "collapse"],
2177
2177
  setup(e, { emit: n }) {
2178
- const t = e, l = n, { t: r } = Pe(), { isMac: o } = Po(), i = y(() => Un(Il.escape, o)), c = y(() => Un(Il.mod.backslash, o)), d = y(() => i.value.aria), u = y(() => c.value.aria), { isMobile: v } = De(), b = Ce(Jn, void 0), p = B(!1), m = B(null), h = B(null), { teleportTarget: f } = Vt(), { floatingStyle: C } = cl(m, h, {
2178
+ const t = e, l = n, { t: r } = Pe(), { isMac: o } = Po(), i = y(() => Un(xl.escape, o)), c = y(() => Un(xl.mod.backslash, o)), d = y(() => i.value.aria), u = y(() => c.value.aria), { isMobile: v } = De(), b = Ce(Jn, void 0), p = B(!1), m = B(null), h = B(null), { teleportTarget: f } = Vt(), { floatingStyle: C } = cl(m, h, {
2179
2179
  placement: "bottom-start",
2180
2180
  middleware: () => [Hl()]
2181
2181
  }), S = B(null);
@@ -2193,7 +2193,7 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
2193
2193
  function V() {
2194
2194
  t.closable && l("close");
2195
2195
  }
2196
- return (O, x) => (s(), g("div", {
2196
+ return (O, I) => (s(), g("div", {
2197
2197
  class: Q(["vc-blade-header", {
2198
2198
  "vc-blade-header--mobile": a(v)
2199
2199
  }])
@@ -2208,8 +2208,8 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
2208
2208
  "vc-blade-header__status-not-edited": !e.modified,
2209
2209
  "vc-blade-header__status-edited": e.modified
2210
2210
  }, "vc-blade-header__status"]),
2211
- onMouseenter: x[0] || (x[0] = (P) => p.value = !0),
2212
- onMouseleave: x[1] || (x[1] = (P) => p.value = !1)
2211
+ onMouseenter: I[0] || (I[0] = (P) => p.value = !0),
2212
+ onMouseleave: I[1] || (I[1] = (P) => p.value = !1)
2213
2213
  }, [
2214
2214
  (s(), D(bt, { to: a(f) }, [
2215
2215
  p.value ? (s(), g("span", {
@@ -2663,7 +2663,7 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
2663
2663
  ], 46, Od)
2664
2664
  ], 2));
2665
2665
  }
2666
- }), Ld = ["disabled", "aria-disabled"], Id = { class: "vc-link__text" }, xd = /* @__PURE__ */ Y({
2666
+ }), Ld = ["disabled", "aria-disabled"], xd = { class: "vc-link__text" }, Id = /* @__PURE__ */ Y({
2667
2667
  __name: "vc-link",
2668
2668
  props: {
2669
2669
  active: { type: Boolean },
@@ -2686,12 +2686,12 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
2686
2686
  "aria-disabled": e.disabled,
2687
2687
  onClick: r
2688
2688
  }, [
2689
- w("span", Id, [
2689
+ w("span", xd, [
2690
2690
  z(o.$slots, "default")
2691
2691
  ])
2692
2692
  ], 10, Ld));
2693
2693
  }
2694
- }), si = xd, Nd = ["aria-busy"], Bd = { class: "tw-sr-only" }, Dd = /* @__PURE__ */ Y({
2694
+ }), si = Id, Nd = ["aria-busy"], Bd = { class: "tw-sr-only" }, Dd = /* @__PURE__ */ Y({
2695
2695
  __name: "vc-loading",
2696
2696
  props: {
2697
2697
  active: { type: Boolean }
@@ -2821,7 +2821,7 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
2821
2821
  e.label ? (s(), D(a(rt), {
2822
2822
  key: 0,
2823
2823
  class: "vc-video__label"
2824
- }, xe({
2824
+ }, Ie({
2825
2825
  default: M(() => [
2826
2826
  w("span", null, F(e.label), 1)
2827
2827
  ]),
@@ -3251,7 +3251,7 @@ const td = { class: "vc-blade-header__status-container" }, ld = {
3251
3251
  setup(e) {
3252
3252
  const n = e, t = B(!1), l = B(null), { visibleItems: r, hiddenItems: o, showMoreButton: i, recalculate: c, updateObserver: d } = ra({
3253
3253
  containerRef: l,
3254
- items: Ie(n, "items"),
3254
+ items: xe(n, "items"),
3255
3255
  getItemKey: (v) => v.id ?? `toolbar_item_${n.items.indexOf(v)}`,
3256
3256
  moreButtonWidth: 70,
3257
3257
  initialItemWidth: 60
@@ -3352,14 +3352,14 @@ function Tv(e) {
3352
3352
  m();
3353
3353
  }), { visibleItems: h };
3354
3354
  }
3355
- const Av = { class: "vc-blade-toolbar__content" }, Ov = { class: "vc-blade-toolbar-skeleton__buttons" }, Mv = { class: "vc-blade-toolbar-skeleton__widgets" }, Lv = { class: "vc-blade-toolbar__buttons" }, Iv = !0, xv = /* @__PURE__ */ Y({
3355
+ const Av = { class: "vc-blade-toolbar__content" }, Ov = { class: "vc-blade-toolbar-skeleton__buttons" }, Mv = { class: "vc-blade-toolbar-skeleton__widgets" }, Lv = { class: "vc-blade-toolbar__buttons" }, xv = !0, Iv = /* @__PURE__ */ Y({
3356
3356
  __name: "BladeToolbar",
3357
3357
  props: {
3358
3358
  items: { default: () => [] },
3359
3359
  loading: { type: Boolean }
3360
3360
  },
3361
3361
  setup(e) {
3362
- const n = e, { isMobile: t } = De(), { visibleItems: l } = Tv(Ie(n, "items"));
3362
+ const n = e, { isMobile: t } = De(), { visibleItems: l } = Tv(xe(n, "items"));
3363
3363
  return (r, o) => e.loading && a(t) ? L("", !0) : (s(), g("div", {
3364
3364
  key: 0,
3365
3365
  class: Q(["vc-blade-toolbar", {
@@ -3412,7 +3412,7 @@ const Av = { class: "vc-blade-toolbar__content" }, Ov = { class: "vc-blade-toolb
3412
3412
  }, null, 8, ["items"])) : (s(), D($v, {
3413
3413
  key: 1,
3414
3414
  items: a(l),
3415
- "is-expanded": Iv
3415
+ "is-expanded": xv
3416
3416
  }, null, 8, ["items"]))
3417
3417
  ]),
3418
3418
  r.$slots["widgets-container"] ? z(r.$slots, "widgets-container", { key: 0 }) : L("", !0)
@@ -3483,32 +3483,32 @@ const Bv = ["role"], Dv = { class: "vc-blade-status-banners__text" }, Pv = ["tit
3483
3483
  [c, d],
3484
3484
  ([O]) => {
3485
3485
  if (!r) return;
3486
- const x = r.value.findIndex((P) => P.id === _l);
3487
- O && x === -1 ? r.value.push({
3486
+ const I = r.value.findIndex((P) => P.id === _l);
3487
+ O && I === -1 ? r.value.push({
3488
3488
  id: _l,
3489
3489
  variant: "danger",
3490
3490
  message: d.value,
3491
3491
  dismissible: !0,
3492
3492
  _system: !0
3493
- }) : O && x !== -1 ? r.value[x] = {
3494
- ...r.value[x],
3493
+ }) : O && I !== -1 ? r.value[I] = {
3494
+ ...r.value[I],
3495
3495
  message: d.value
3496
- } : !O && x !== -1 && r.value.splice(x, 1);
3496
+ } : !O && I !== -1 && r.value.splice(I, 1);
3497
3497
  },
3498
3498
  { immediate: !0 }
3499
3499
  ), oe(
3500
3500
  () => t.modified,
3501
3501
  (O) => {
3502
3502
  if (!r) return;
3503
- const x = r.value.findIndex((P) => P.id === Wa);
3504
- O && x === -1 ? r.value.push({
3503
+ const I = r.value.findIndex((P) => P.id === Wa);
3504
+ O && I === -1 ? r.value.push({
3505
3505
  id: Wa,
3506
3506
  variant: "warning",
3507
3507
  icon: "lucide-pencil",
3508
3508
  message: i("COMPONENTS.ORGANISMS.VC_BLADE.UNSAVED_CHANGES"),
3509
3509
  dismissible: !1,
3510
3510
  _system: !0
3511
- }) : !O && x !== -1 && r.value.splice(x, 1);
3511
+ }) : !O && I !== -1 && r.value.splice(I, 1);
3512
3512
  },
3513
3513
  { immediate: !0 }
3514
3514
  );
@@ -3517,7 +3517,7 @@ const Bv = ["role"], Dv = { class: "vc-blade-status-banners__text" }, Pv = ["tit
3517
3517
  warning: 1,
3518
3518
  info: 2,
3519
3519
  success: 3
3520
- }, A = y(() => r ? [...r.value].sort((O, x) => ($[O.variant] ?? 9) - ($[x.variant] ?? 9)) : []);
3520
+ }, A = y(() => r ? [...r.value].sort((O, I) => ($[O.variant] ?? 9) - ($[I.variant] ?? 9)) : []);
3521
3521
  function N(O) {
3522
3522
  return {
3523
3523
  danger: "lucide-circle-alert",
@@ -3527,20 +3527,20 @@ const Bv = ["role"], Dv = { class: "vc-blade-status-banners__text" }, Pv = ["tit
3527
3527
  }[O] ?? "lucide-info";
3528
3528
  }
3529
3529
  function V(O) {
3530
- r && (O.id === _l && l && o && o.clearBladeError(l.value.id), r.value = r.value.filter((x) => x.id !== O.id));
3530
+ r && (O.id === _l && l && o && o.clearBladeError(l.value.id), r.value = r.value.filter((I) => I.id !== O.id));
3531
3531
  }
3532
- return (O, x) => (s(), D(jn, { name: "banner-reveal" }, {
3532
+ return (O, I) => (s(), D(jn, { name: "banner-reveal" }, {
3533
3533
  default: M(() => [
3534
3534
  (s(!0), g(J, null, ve(A.value, (P) => (s(), g("div", {
3535
3535
  key: P.id,
3536
3536
  class: Q(["vc-blade-status-banners__banner", `vc-blade-status-banners__banner--${P.variant}`]),
3537
3537
  role: P.variant === "danger" || P.variant === "warning" ? "alert" : "status"
3538
3538
  }, [
3539
- x[1] || (x[1] = w("div", { class: "vc-blade-status-banners__accent" }, null, -1)),
3539
+ I[1] || (I[1] = w("div", { class: "vc-blade-status-banners__accent" }, null, -1)),
3540
3540
  P.id === _l ? (s(), g(J, { key: 0 }, [
3541
3541
  w("div", {
3542
3542
  class: "vc-blade-status-banners__header vc-blade-status-banners__header--clickable",
3543
- onClick: x[0] || (x[0] = //@ts-ignore
3543
+ onClick: I[0] || (I[0] = //@ts-ignore
3544
3544
  (...R) => a(h) && a(h)(...R))
3545
3545
  }, [
3546
3546
  T(a(le), {
@@ -3861,7 +3861,7 @@ const Xv = { class: "vc-widget-container-desktop" }, Qv = { class: "vc-widget-co
3861
3861
  md: "56dvh",
3862
3862
  lg: "72dvh",
3863
3863
  full: "100dvh"
3864
- }, $ = y(() => typeof c.width == "number" ? `${c.width}px` : c.width), A = y(() => typeof c.height == "number" ? `${c.height}px` : c.height), N = y(() => !!c.title || c.closeButton || !!u.header), V = y(() => !!u.footer), O = y(() => c.position === "bottom"), x = y(() => c.size === "full"), P = y(() => c.position === "left" ? "vc-sidebar-panel-left" : c.position === "bottom" ? "vc-sidebar-panel-bottom" : "vc-sidebar-panel-right"), R = y(() => O.value ? {
3864
+ }, $ = y(() => typeof c.width == "number" ? `${c.width}px` : c.width), A = y(() => typeof c.height == "number" ? `${c.height}px` : c.height), N = y(() => !!c.title || c.closeButton || !!u.header), V = y(() => !!u.footer), O = y(() => c.position === "bottom"), I = y(() => c.size === "full"), P = y(() => c.position === "left" ? "vc-sidebar-panel-left" : c.position === "bottom" ? "vc-sidebar-panel-bottom" : "vc-sidebar-panel-right"), R = y(() => O.value ? {
3865
3865
  height: A.value ?? S[c.size]
3866
3866
  } : {
3867
3867
  width: $.value ?? C[c.size]
@@ -3874,10 +3874,10 @@ const Xv = { class: "vc-widget-container-desktop" }, Qv = { class: "vc-widget-co
3874
3874
  {
3875
3875
  "vc-sidebar__panel--with-header": N.value,
3876
3876
  "vc-sidebar__panel--with-footer": V.value,
3877
- "vc-sidebar__panel--inset": c.inset && !x.value,
3877
+ "vc-sidebar__panel--inset": c.inset && !I.value,
3878
3878
  "vc-sidebar__panel--draggable": c.draggable && O.value
3879
3879
  }
3880
- ]), k = y(() => c.ariaLabel || void 0), I = y(() => c.ariaLabel || !c.title ? void 0 : f);
3880
+ ]), k = y(() => c.ariaLabel || void 0), x = y(() => c.ariaLabel || !c.title ? void 0 : f);
3881
3881
  function U(ie) {
3882
3882
  d("update:modelValue", !1), d("close", ie);
3883
3883
  }
@@ -4019,7 +4019,7 @@ const Xv = { class: "vc-widget-container-desktop" }, Qv = { class: "vc-widget-co
4019
4019
  role: "dialog",
4020
4020
  "aria-modal": e.showOverlay,
4021
4021
  "aria-label": k.value,
4022
- "aria-labelledby": I.value,
4022
+ "aria-labelledby": x.value,
4023
4023
  tabindex: "-1",
4024
4024
  onTouchstart: G,
4025
4025
  onTouchmove: ae,
@@ -4289,7 +4289,7 @@ function ui() {
4289
4289
  async function c(d) {
4290
4290
  if (!d) return "";
4291
4291
  const u = i(d);
4292
- return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/flags/al.svg": zs, "../../assets/icons/flags/am.svg": Hs, "../../assets/icons/flags/az.svg": Ws, "../../assets/icons/flags/ba.svg": Gs, "../../assets/icons/flags/bd.svg": qs, "../../assets/icons/flags/bg.svg": Ks, "../../assets/icons/flags/by.svg": Ys, "../../assets/icons/flags/cn.svg": js, "../../assets/icons/flags/cz.svg": Xs, "../../assets/icons/flags/de.svg": Qs, "../../assets/icons/flags/dk.svg": Js, "../../assets/icons/flags/ee.svg": Zs, "../../assets/icons/flags/es.svg": er, "../../assets/icons/flags/fi.svg": tr, "../../assets/icons/flags/fr.svg": lr, "../../assets/icons/flags/gb.svg": nr, "../../assets/icons/flags/ge.svg": ar, "../../assets/icons/flags/gr.svg": or, "../../assets/icons/flags/hr.svg": ir, "../../assets/icons/flags/hu.svg": sr, "../../assets/icons/flags/id.svg": rr, "../../assets/icons/flags/il.svg": cr, "../../assets/icons/flags/in.svg": ur, "../../assets/icons/flags/ir.svg": dr, "../../assets/icons/flags/is.svg": vr, "../../assets/icons/flags/it.svg": fr, "../../assets/icons/flags/jp.svg": mr, "../../assets/icons/flags/kg.svg": pr, "../../assets/icons/flags/kh.svg": gr, "../../assets/icons/flags/kr.svg": br, "../../assets/icons/flags/kz.svg": hr, "../../assets/icons/flags/lk.svg": yr, "../../assets/icons/flags/lt.svg": wr, "../../assets/icons/flags/lv.svg": Cr, "../../assets/icons/flags/mk.svg": _r, "../../assets/icons/flags/mn.svg": kr, "../../assets/icons/flags/my.svg": Er, "../../assets/icons/flags/ng.svg": Sr, "../../assets/icons/flags/nl.svg": $r, "../../assets/icons/flags/no.svg": Rr, "../../assets/icons/flags/np.svg": Tr, "../../assets/icons/flags/ph.svg": Ar, "../../assets/icons/flags/pk.svg": Or, "../../assets/icons/flags/pl.svg": Mr, "../../assets/icons/flags/pt.svg": Lr, "../../assets/icons/flags/ro.svg": Ir, "../../assets/icons/flags/rs.svg": xr, "../../assets/icons/flags/ru.svg": Nr, "../../assets/icons/flags/sa.svg": Br, "../../assets/icons/flags/se.svg": Dr, "../../assets/icons/flags/si.svg": Pr, "../../assets/icons/flags/sk.svg": Vr, "../../assets/icons/flags/th.svg": Fr, "../../assets/icons/flags/tr.svg": Ur, "../../assets/icons/flags/tz.svg": zr, "../../assets/icons/flags/ua.svg": Hr, "../../assets/icons/flags/us.svg": Wr, "../../assets/icons/flags/uz.svg": Gr, "../../assets/icons/flags/vn.svg": qr, "../../assets/icons/flags/xx.svg": Kr, "../../assets/icons/flags/za.svg": Yr }))[`../../assets/icons/flags/${u}.svg`], import.meta.url).href;
4292
+ return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/flags/al.svg": zs, "../../assets/icons/flags/am.svg": Hs, "../../assets/icons/flags/az.svg": Ws, "../../assets/icons/flags/ba.svg": Gs, "../../assets/icons/flags/bd.svg": qs, "../../assets/icons/flags/bg.svg": Ks, "../../assets/icons/flags/by.svg": Ys, "../../assets/icons/flags/cn.svg": js, "../../assets/icons/flags/cz.svg": Xs, "../../assets/icons/flags/de.svg": Qs, "../../assets/icons/flags/dk.svg": Js, "../../assets/icons/flags/ee.svg": Zs, "../../assets/icons/flags/es.svg": er, "../../assets/icons/flags/fi.svg": tr, "../../assets/icons/flags/fr.svg": lr, "../../assets/icons/flags/gb.svg": nr, "../../assets/icons/flags/ge.svg": ar, "../../assets/icons/flags/gr.svg": or, "../../assets/icons/flags/hr.svg": ir, "../../assets/icons/flags/hu.svg": sr, "../../assets/icons/flags/id.svg": rr, "../../assets/icons/flags/il.svg": cr, "../../assets/icons/flags/in.svg": ur, "../../assets/icons/flags/ir.svg": dr, "../../assets/icons/flags/is.svg": vr, "../../assets/icons/flags/it.svg": fr, "../../assets/icons/flags/jp.svg": mr, "../../assets/icons/flags/kg.svg": pr, "../../assets/icons/flags/kh.svg": gr, "../../assets/icons/flags/kr.svg": br, "../../assets/icons/flags/kz.svg": hr, "../../assets/icons/flags/lk.svg": yr, "../../assets/icons/flags/lt.svg": wr, "../../assets/icons/flags/lv.svg": Cr, "../../assets/icons/flags/mk.svg": _r, "../../assets/icons/flags/mn.svg": kr, "../../assets/icons/flags/my.svg": Er, "../../assets/icons/flags/ng.svg": Sr, "../../assets/icons/flags/nl.svg": $r, "../../assets/icons/flags/no.svg": Rr, "../../assets/icons/flags/np.svg": Tr, "../../assets/icons/flags/ph.svg": Ar, "../../assets/icons/flags/pk.svg": Or, "../../assets/icons/flags/pl.svg": Mr, "../../assets/icons/flags/pt.svg": Lr, "../../assets/icons/flags/ro.svg": xr, "../../assets/icons/flags/rs.svg": Ir, "../../assets/icons/flags/ru.svg": Nr, "../../assets/icons/flags/sa.svg": Br, "../../assets/icons/flags/se.svg": Dr, "../../assets/icons/flags/si.svg": Pr, "../../assets/icons/flags/sk.svg": Vr, "../../assets/icons/flags/th.svg": Fr, "../../assets/icons/flags/tr.svg": Ur, "../../assets/icons/flags/tz.svg": zr, "../../assets/icons/flags/ua.svg": Hr, "../../assets/icons/flags/us.svg": Wr, "../../assets/icons/flags/uz.svg": Gr, "../../assets/icons/flags/vn.svg": qr, "../../assets/icons/flags/xx.svg": Kr, "../../assets/icons/flags/za.svg": Yr }))[`../../assets/icons/flags/${u}.svg`], import.meta.url).href;
4293
4293
  }
4294
4294
  return {
4295
4295
  setLocale: l,
@@ -4337,43 +4337,49 @@ function Zl() {
4337
4337
  return e;
4338
4338
  }
4339
4339
  const hf = "VC_APP_MENU_EXPANDED", yf = 200;
4340
- function wf(e) {
4341
- const n = e || window.location.pathname.split("/").filter(Boolean)[0] || "default";
4340
+ function wf() {
4341
+ const n = window.location.pathname.split("/").filter(Boolean)[0] || "default";
4342
4342
  return `${hf}_${n}`;
4343
4343
  }
4344
- function Cf() {
4345
- const e = Wl(wf(), !0), n = B(!1), t = B(!1), l = y(() => e.value || n.value);
4346
- let r = null;
4347
- const o = () => {
4344
+ const Cf = () => {
4345
+ const e = Wl(wf(), !0), n = B(!1);
4346
+ let t = null;
4347
+ const l = () => {
4348
4348
  e.value = !e.value;
4349
- }, i = (u) => {
4350
- r && (clearTimeout(r), r = null), u ? r = setTimeout(() => {
4351
- n.value !== u && (n.value = u);
4352
- }, yf) : u === !1 && (n.value = u);
4349
+ }, r = (i) => {
4350
+ t && clearTimeout(t), i ? t = setTimeout(() => {
4351
+ n.value !== i && (n.value = i);
4352
+ }, yf) : i === !1 && (n.value = i);
4353
4353
  };
4354
4354
  return Xn(() => {
4355
- r && (clearTimeout(r), r = null);
4355
+ t && (clearTimeout(t), t = null);
4356
4356
  }), {
4357
- isPinned: e,
4357
+ isExpanded: e,
4358
+ toggleExpanded: l,
4358
4359
  isHoverExpanded: n,
4359
- isMenuOpen: t,
4360
- isExpanded: l,
4361
- togglePin: o,
4362
- setHoverExpanded: i,
4360
+ toggleHoverExpanded: r
4361
+ };
4362
+ }, Hn = Symbol("SidebarState");
4363
+ function _f() {
4364
+ const e = Ce(Hn, null);
4365
+ if (e) return e;
4366
+ const { isExpanded: n, isHoverExpanded: t, toggleExpanded: l, toggleHoverExpanded: r } = Cf(), o = B(!1), i = y(() => n.value || t.value), v = {
4367
+ isPinned: n,
4368
+ isHoverExpanded: t,
4369
+ isMenuOpen: o,
4370
+ isExpanded: i,
4371
+ togglePin: l,
4372
+ setHoverExpanded: (b) => {
4373
+ r(b);
4374
+ },
4363
4375
  openMenu: () => {
4364
- t.value = !0;
4376
+ o.value = !0;
4365
4377
  },
4366
4378
  closeMenu: () => {
4367
- t.value = !1;
4379
+ o.value = !1;
4368
4380
  }
4369
4381
  };
4370
- }
4371
- const Hn = Symbol("SidebarState");
4372
- function _f() {
4373
- const e = Ce(Hn, null);
4374
- if (e) return e;
4375
- const n = Cf();
4376
- return Be(Hn, n), n;
4382
+ return Be(Hn, v), v;
4377
4383
  }
4378
4384
  function ua() {
4379
4385
  const e = Ce(Hn);
@@ -4409,10 +4415,10 @@ function Of() {
4409
4415
  const e = typeof window < "u" ? window.location.hostname : "";
4410
4416
  return Tf(Af(), e);
4411
4417
  }
4412
- const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4418
+ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], xf = {
4413
4419
  key: 1,
4414
4420
  class: "vc-blade__breadcrumbs"
4415
- }, I$ = /* @__PURE__ */ Y({
4421
+ }, x$ = /* @__PURE__ */ Y({
4416
4422
  inheritAttrs: !1,
4417
4423
  __name: "vc-blade",
4418
4424
  props: {
@@ -4438,7 +4444,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4438
4444
  );
4439
4445
  Be(rs, d), yt();
4440
4446
  const u = n, { isMobile: v, isDesktop: b } = De(), p = ea(), { id: m } = p, h = !!c, f = Ce(Co, void 0), C = Ce(Jn, void 0), S = y(() => h ? p.expanded.value : t.expanded), $ = y(() => h ? p.closable.value : t.closable), A = Zi(), N = y(() => {
4441
- const { class: I, style: U, onClose: q, ...K } = A;
4447
+ const { class: x, style: U, onClose: q, ...K } = A;
4442
4448
  return K;
4443
4449
  });
4444
4450
  function V() {
@@ -4447,7 +4453,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4447
4453
  function O() {
4448
4454
  f ? f.value = !0 : u("expand");
4449
4455
  }
4450
- function x() {
4456
+ function I() {
4451
4457
  f ? f.value = !1 : u("collapse");
4452
4458
  }
4453
4459
  const P = Ce(ko), { blades: R, setBladeTitle: E } = Ut();
@@ -4455,12 +4461,12 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4455
4461
  h && m.value && t.title && E(m.value, t.title);
4456
4462
  });
4457
4463
  const _ = B(null), k = B(null);
4458
- return tt(() => zn(() => _.value)), (I, U) => (s(), g("div", Le({
4464
+ return tt(() => zn(() => _.value)), (x, U) => (s(), g("div", Le({
4459
4465
  ref_key: "bladeRef",
4460
4466
  ref: _
4461
4467
  }, N.value, {
4462
4468
  class: ["vc-blade", [
4463
- I.$attrs.class,
4469
+ x.$attrs.class,
4464
4470
  {
4465
4471
  "vc-blade--mobile": a(v),
4466
4472
  "vc-blade--expanded": S.value,
@@ -4472,9 +4478,9 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4472
4478
  style: { width: typeof e.width == "number" ? `${e.width}px` : e.width },
4473
4479
  "aria-busy": t.loading || void 0,
4474
4480
  "aria-labelledby": t.title && !a(d) ? i : void 0,
4475
- "aria-label": !t.title || a(d) ? I.$t("COMPONENTS.ORGANISMS.VC_BLADE.PANEL") : void 0
4481
+ "aria-label": !t.title || a(d) ? x.$t("COMPONENTS.ORGANISMS.VC_BLADE.PANEL") : void 0
4476
4482
  }), [
4477
- a(v) && a(R).length === 1 && !I.$slots.actions ? L("", !0) : (s(), D(bd, {
4483
+ a(v) && a(R).length === 1 && !x.$slots.actions ? L("", !0) : (s(), D(bd, {
4478
4484
  key: 0,
4479
4485
  class: "vc-blade__header",
4480
4486
  closable: $.value,
@@ -4486,14 +4492,14 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4486
4492
  loading: a(d),
4487
4493
  onClose: V,
4488
4494
  onExpand: O,
4489
- onCollapse: x
4490
- }, xe({
4495
+ onCollapse: I
4496
+ }, Ie({
4491
4497
  prepend: M(() => [
4492
4498
  a(P) && a(v) ? (s(), D(qe(a(P)), {
4493
4499
  key: 0,
4494
4500
  class: "vc-blade__back-button"
4495
4501
  })) : L("", !0),
4496
- !a(d) && a(C)?.breadcrumbs?.length && a(b) ? (s(), g("div", If, [
4502
+ !a(d) && a(C)?.breadcrumbs?.length && a(b) ? (s(), g("div", xf, [
4497
4503
  T(a(Zo), {
4498
4504
  items: a(C)?.breadcrumbs,
4499
4505
  collapsed: ""
@@ -4503,7 +4509,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4503
4509
  text: "",
4504
4510
  icon: "lucide-ellipsis-vertical",
4505
4511
  "icon-size": "xl",
4506
- "aria-label": I.$t("COMPONENTS.MOLECULES.VC_BREADCRUMBS.SHOW_MORE"),
4512
+ "aria-label": x.$t("COMPONENTS.MOLECULES.VC_BREADCRUMBS.SHOW_MORE"),
4507
4513
  class: Q(["vc-blade__breadcrumbs-button", {
4508
4514
  "vc-blade__breadcrumbs-button--active": K
4509
4515
  }]),
@@ -4516,10 +4522,10 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4516
4522
  ]),
4517
4523
  _: 2
4518
4524
  }, [
4519
- I.$slots.actions ? {
4525
+ x.$slots.actions ? {
4520
4526
  name: "actions",
4521
4527
  fn: M(() => [
4522
- z(I.$slots, "actions")
4528
+ z(x.$slots, "actions")
4523
4529
  ]),
4524
4530
  key: "0"
4525
4531
  } : void 0
@@ -4528,7 +4534,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4528
4534
  key: 1,
4529
4535
  modified: r.value
4530
4536
  }, null, 8, ["modified"])),
4531
- T(xv, {
4537
+ T(Iv, {
4532
4538
  "data-test-id": "blade-toolbar",
4533
4539
  class: "vc-blade__toolbar",
4534
4540
  items: e.toolbarItems,
@@ -4554,13 +4560,13 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4554
4560
  "vc-blade__slot--mobile": a(v)
4555
4561
  }])
4556
4562
  }, [
4557
- z(I.$slots, "default")
4563
+ z(x.$slots, "default")
4558
4564
  ], 2)
4559
4565
  ], 2)
4560
4566
  ], 512)
4561
4567
  ], 16, Lf));
4562
4568
  }
4563
- }), xf = ["aria-label", "aria-labelledby"], Nf = /* @__PURE__ */ Y({
4569
+ }), If = ["aria-label", "aria-labelledby"], Nf = /* @__PURE__ */ Y({
4564
4570
  __name: "vc-form",
4565
4571
  props: {
4566
4572
  ariaLabel: {},
@@ -4581,7 +4587,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4581
4587
  z(r.$slots, "default", {}, () => [
4582
4588
  o[0] || (o[0] = de("vc-form", -1))
4583
4589
  ])
4584
- ], 40, xf));
4590
+ ], 40, If));
4585
4591
  }
4586
4592
  }), Bf = Nf, Df = {
4587
4593
  key: 0,
@@ -4650,7 +4656,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4650
4656
  multilanguage: e.multilanguage,
4651
4657
  "current-language": e.currentLanguage,
4652
4658
  error: a(v)
4653
- }, xe({
4659
+ }, Ie({
4654
4660
  default: M(() => [
4655
4661
  w("span", null, F(e.label), 1)
4656
4662
  ]),
@@ -4725,7 +4731,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4725
4731
  }), Hf = { class: "vc-field__content" }, Wf = ["href"], Gf = {
4726
4732
  key: 2,
4727
4733
  class: "vc-field__text"
4728
- }, x$ = /* @__PURE__ */ Y({
4734
+ }, I$ = /* @__PURE__ */ Y({
4729
4735
  __name: "vc-field",
4730
4736
  props: {
4731
4737
  label: {},
@@ -4786,7 +4792,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4786
4792
  class: Q(["vc-field__label", { "vc-field__label--empty": !e.label }]),
4787
4793
  style: he(e.orientation === "horizontal" ? { flex: `${e.aspectRatio[0]} 1 0%` } : void 0)
4788
4794
  }, [
4789
- e.label ? (s(), D(a(rt), { key: 0 }, xe({
4795
+ e.label ? (s(), D(a(rt), { key: 0 }, Ie({
4790
4796
  default: M(() => [
4791
4797
  w("span", null, F(e.label), 1)
4792
4798
  ]),
@@ -4968,7 +4974,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
4968
4974
  disabled: p.disabled,
4969
4975
  class: "vc-accordion__item",
4970
4976
  onToggle: (h) => c(p.id || m, h)
4971
- }, xe({
4977
+ }, Ie({
4972
4978
  default: M(() => [
4973
4979
  typeof p.content == "string" ? (s(), g(J, { key: 0 }, [
4974
4980
  de(F(p.content), 1)
@@ -5025,14 +5031,14 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
5025
5031
  }), N = B(null), V = async (E) => {
5026
5032
  if (d.value) return;
5027
5033
  if (await C(E.target), (await S()).valid) {
5028
- const I = E.target.files;
5029
- I && I.length && r("upload", I);
5034
+ const x = E.target.files;
5035
+ x && x.length && r("upload", x);
5030
5036
  }
5031
5037
  };
5032
5038
  function O() {
5033
5039
  d.value || N.value && (N.value.value = "", N.value.click());
5034
5040
  }
5035
- function x(E) {
5041
+ function I(E) {
5036
5042
  if (d.value) return;
5037
5043
  R();
5038
5044
  const _ = E.dataTransfer?.files;
@@ -5067,7 +5073,7 @@ const Mf = Ec(Of), Lf = ["aria-busy", "aria-labelledby", "aria-label"], If = {
5067
5073
  "aria-describedby": A.value,
5068
5074
  "aria-disabled": a(d) || void 0,
5069
5075
  "aria-required": a(v),
5070
- onDrop: ue(x, ["stop", "prevent"]),
5076
+ onDrop: ue(I, ["stop", "prevent"]),
5071
5077
  onDrag: _[0] || (_[0] = ue(() => {
5072
5078
  }, ["stop", "prevent"])),
5073
5079
  onDragstart: _[1] || (_[1] = ue(() => {
@@ -5568,14 +5574,14 @@ const im = {
5568
5574
  /^>/m
5569
5575
  // Blockquotes
5570
5576
  ];
5571
- let I = 0, U = 0;
5577
+ let x = 0, U = 0;
5572
5578
  return _.forEach((q) => {
5573
5579
  const K = E.match(q);
5574
- K && (I += K.length);
5580
+ K && (x += K.length);
5575
5581
  }), k.forEach((q) => {
5576
5582
  const K = E.match(q);
5577
5583
  K && (U += K.length);
5578
- }), I > U * 2 ? "html" : "markdown";
5584
+ }), x > U * 2 ? "html" : "markdown";
5579
5585
  }
5580
5586
  const m = y(() => {
5581
5587
  const E = [
@@ -5610,8 +5616,8 @@ const im = {
5610
5616
  })
5611
5617
  ];
5612
5618
  if (l.extensions && l.extensions.length > 0) {
5613
- const _ = new Set(l.extensions.map((I) => I.name).filter(Boolean));
5614
- return [...E.filter((I) => !_.has(I.name)), ...l.extensions];
5619
+ const _ = new Set(l.extensions.map((x) => x.name).filter(Boolean));
5620
+ return [...E.filter((x) => !_.has(x.name)), ...l.extensions];
5615
5621
  }
5616
5622
  return E;
5617
5623
  }), h = B(l.modelValue || "");
@@ -5729,7 +5735,7 @@ const im = {
5729
5735
  ), We(() => {
5730
5736
  O.value?.destroy();
5731
5737
  });
5732
- function x() {
5738
+ function I() {
5733
5739
  c.value?.click();
5734
5740
  }
5735
5741
  function P(E) {
@@ -5743,12 +5749,12 @@ const im = {
5743
5749
  async function R(E) {
5744
5750
  const _ = E.target;
5745
5751
  if (!_.files?.length || !l.assetsFolder) return;
5746
- const k = Array.from(_.files), I = new FormData();
5747
- k.forEach((U) => I.append("image", U));
5752
+ const k = Array.from(_.files), x = new FormData();
5753
+ k.forEach((U) => x.append("image", U));
5748
5754
  try {
5749
5755
  (await (await fetch(`/api/assets?folderUrl=/${l.assetsFolder}`, {
5750
5756
  method: "POST",
5751
- body: I
5757
+ body: x
5752
5758
  })).json()).forEach((K) => {
5753
5759
  K.url && O.value?.chain().focus().setImage({ src: K.url }).run();
5754
5760
  });
@@ -5788,7 +5794,7 @@ const im = {
5788
5794
  multilanguage: e.multilanguage,
5789
5795
  "current-language": e.currentLanguage,
5790
5796
  error: !!e.errorMessage
5791
- }, xe({
5797
+ }, Ie({
5792
5798
  default: M(() => [
5793
5799
  w("span", null, F(e.label), 1)
5794
5800
  ]),
@@ -5810,7 +5816,7 @@ const im = {
5810
5816
  "content-type": d.value,
5811
5817
  toolbar: u.value,
5812
5818
  "custom-buttons": l.customButtons || [],
5813
- onUploadImage: x
5819
+ onUploadImage: I
5814
5820
  }, null, 8, ["editor", "disabled", "content-type", "toolbar", "custom-buttons"])) : L("", !0),
5815
5821
  w("div", km, [
5816
5822
  T(ze, {
@@ -5915,7 +5921,7 @@ const im = {
5915
5921
  })
5916
5922
  ], 10, Cm));
5917
5923
  }
5918
- }), Lm = ["id", "data-mounted", "data-removed", "data-y-position", "data-front", "data-expanded", "data-visible", "data-swiping", "data-swiped-out", "role"], Im = { class: "vc-notification__content-wrapper" }, xm = {
5924
+ }), Lm = ["id", "data-mounted", "data-removed", "data-y-position", "data-front", "data-expanded", "data-visible", "data-swiping", "data-swiped-out", "role"], xm = { class: "vc-notification__content-wrapper" }, Im = {
5919
5925
  key: 0,
5920
5926
  class: "vc-notification__content",
5921
5927
  tabindex: "0"
@@ -5967,8 +5973,8 @@ const im = {
5967
5973
  if (i.value && l.notificationId !== void 0 && !d.value) {
5968
5974
  const _ = i.value, k = _.style.height;
5969
5975
  _.style.height = "auto";
5970
- const I = _.getBoundingClientRect().height;
5971
- _.style.height = k, l.onReportHeight?.(l.notificationId, I);
5976
+ const x = _.getBoundingClientRect().height;
5977
+ _.style.height = k, l.onReportHeight?.(l.notificationId, x);
5972
5978
  }
5973
5979
  }
5974
5980
  tt(() => {
@@ -5979,18 +5985,18 @@ const im = {
5979
5985
  }), i.value && (h.value = new ResizeObserver(() => f()), h.value.observe(i.value));
5980
5986
  });
5981
5987
  function C(_, k) {
5982
- let I, U, q = k;
5988
+ let x, U, q = k;
5983
5989
  function K() {
5984
- window.clearTimeout(I), q -= Date.now() - U;
5990
+ window.clearTimeout(x), q -= Date.now() - U;
5985
5991
  }
5986
5992
  function te() {
5987
- U = Date.now(), window.clearTimeout(I), I = window.setTimeout(_, q);
5993
+ U = Date.now(), window.clearTimeout(x), x = window.setTimeout(_, q);
5988
5994
  }
5989
5995
  function me() {
5990
5996
  q = k, te();
5991
5997
  }
5992
5998
  function j() {
5993
- window.clearTimeout(I);
5999
+ window.clearTimeout(x);
5994
6000
  }
5995
6001
  return { pause: K, resume: te, start: me, clear: j };
5996
6002
  }
@@ -6003,20 +6009,20 @@ const im = {
6003
6009
  function $() {
6004
6010
  l.timeout && l.pauseOnHover !== !1 && p.value?.resume();
6005
6011
  }
6006
- const A = B(0), N = B(0), V = B(!1), O = B(!1), x = B(0);
6012
+ const A = B(0), N = B(0), V = B(!1), O = B(!1), I = B(0);
6007
6013
  function P(_) {
6008
6014
  if (d.value || O.value || _.target?.closest(".vc-notification__dismiss-button")) return;
6009
- A.value = _.clientX, N.value = _.clientY, x.value = Date.now(), V.value = !1;
6015
+ A.value = _.clientX, N.value = _.clientY, I.value = Date.now(), V.value = !1;
6010
6016
  const k = i.value;
6011
6017
  k && k.setPointerCapture(_.pointerId);
6012
6018
  }
6013
6019
  function R(_) {
6014
6020
  if (d.value || O.value || A.value === 0 && N.value === 0) return;
6015
- const k = _.clientX - A.value, I = _.clientY - N.value;
6021
+ const k = _.clientX - A.value, x = _.clientY - N.value;
6016
6022
  if (!V.value)
6017
- if (Math.abs(k) > 1 && Math.abs(k) > Math.abs(I))
6023
+ if (Math.abs(k) > 1 && Math.abs(k) > Math.abs(x))
6018
6024
  V.value = !0, p.value?.pause();
6019
- else if (Math.abs(I) > 1) {
6025
+ else if (Math.abs(x) > 1) {
6020
6026
  A.value = 0, N.value = 0;
6021
6027
  return;
6022
6028
  } else
@@ -6029,10 +6035,10 @@ const im = {
6029
6035
  i.value?.style.setProperty("--swipe-amount-x", "0px"), A.value = 0, N.value = 0;
6030
6036
  return;
6031
6037
  }
6032
- const I = parseFloat(i.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), U = Date.now() - x.value, q = Math.abs(I) / U;
6033
- if (Math.abs(I) >= Dm || q > 0.11) {
6038
+ const x = parseFloat(i.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), U = Date.now() - I.value, q = Math.abs(x) / U;
6039
+ if (Math.abs(x) >= Dm || q > 0.11) {
6034
6040
  d.value = !0, p.value?.clear(), O.value = !0;
6035
- const K = I > 0 ? 1 : -1;
6041
+ const K = x > 0 ? 1 : -1;
6036
6042
  i.value?.style.setProperty("--swipe-amount-x", `${K * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), qa);
6037
6043
  } else
6038
6044
  i.value?.style.setProperty("--swipe-amount-x", "0px"), p.value?.resume();
@@ -6058,7 +6064,7 @@ const im = {
6058
6064
  onPointermove: R,
6059
6065
  onPointerup: E
6060
6066
  }, [
6061
- w("div", Im, [
6067
+ w("div", xm, [
6062
6068
  T(a(le), {
6063
6069
  icon: r[e.type ?? "default"]?.icon,
6064
6070
  style: he({ color: r[e.type ?? "default"]?.color }),
@@ -6066,7 +6072,7 @@ const im = {
6066
6072
  class: "vc-notification__icon",
6067
6073
  "aria-hidden": "true"
6068
6074
  }, null, 8, ["icon", "style"]),
6069
- typeof e.content == "string" ? (s(), g("div", xm, F(e.content), 1)) : (s(), g("div", Nm, [
6075
+ typeof e.content == "string" ? (s(), g("div", Im, F(e.content), 1)) : (s(), g("div", Nm, [
6070
6076
  (s(), D(qe(e.content)))
6071
6077
  ]))
6072
6078
  ]),
@@ -6236,7 +6242,7 @@ const im = {
6236
6242
  e.label ? (s(), D(a(rt), {
6237
6243
  key: 0,
6238
6244
  class: "vc-rating__label"
6239
- }, xe({
6245
+ }, Ie({
6240
6246
  default: M(() => [
6241
6247
  w("span", null, F(e.label), 1)
6242
6248
  ]),
@@ -6310,7 +6316,7 @@ const im = {
6310
6316
  role: "region",
6311
6317
  "aria-label": e.ariaLabel || "Content carousel"
6312
6318
  }, [
6313
- T(a(xl), {
6319
+ T(a(Il), {
6314
6320
  class: Q(["vc-slider__swiper", {
6315
6321
  "vc-slider__swiper_overflow-visible": e.overflow,
6316
6322
  "vc-slider__swiper_navigation": e.navigation
@@ -6831,7 +6837,7 @@ function Lp(e) {
6831
6837
  closeDropdown: b
6832
6838
  };
6833
6839
  }
6834
- function Ip(e) {
6840
+ function xp(e) {
6835
6841
  return {
6836
6842
  availableOptions: y(() => {
6837
6843
  const t = e.options(), l = e.modelValue(), r = e.optionValue();
@@ -6839,10 +6845,10 @@ function Ip(e) {
6839
6845
  })
6840
6846
  };
6841
6847
  }
6842
- const xp = {
6848
+ const Ip = {
6843
6849
  key: 0,
6844
6850
  class: "vc-multivalue vc-multivalue--skeleton"
6845
- }, Np = { key: 0 }, Bp = { key: 1 }, xt = /* @__PURE__ */ Y({
6851
+ }, Np = { key: 0 }, Bp = { key: 1 }, It = /* @__PURE__ */ Y({
6846
6852
  __name: "vc-multivalue",
6847
6853
  props: {
6848
6854
  placeholder: {},
@@ -6877,7 +6883,7 @@ const xp = {
6877
6883
  emit: {
6878
6884
  updateModelValue: (W) => l("update:model-value", W)
6879
6885
  }
6880
- }), { inputValue: O, onInputSubmit: x, onKeyDown: P } = Op({
6886
+ }), { inputValue: O, onInputSubmit: I, onKeyDown: P } = Op({
6881
6887
  type: () => t.type,
6882
6888
  optionLabel: () => t.optionLabel,
6883
6889
  addItem: V
@@ -6886,11 +6892,11 @@ const xp = {
6886
6892
  emit: {
6887
6893
  updateModelValue: (W) => l("update:model-value", W)
6888
6894
  }
6889
- }), { availableOptions: k } = Ip({
6895
+ }), { availableOptions: k } = xp({
6890
6896
  options: () => t.options,
6891
6897
  modelValue: () => t.modelValue,
6892
6898
  optionValue: () => t.optionValue
6893
- }), { isOpened: I, isFocused: U, dropdownToggleRef: q, dropdownRef: K, searchRef: te, dropdownStyle: me, toggleDropdown: j, closeDropdown: G } = Lp({
6899
+ }), { isOpened: x, isFocused: U, dropdownToggleRef: q, dropdownRef: K, searchRef: te, dropdownStyle: me, toggleDropdown: j, closeDropdown: G } = Lp({
6894
6900
  disabled: () => t.disabled ?? !1,
6895
6901
  onItemSelect: (W) => {
6896
6902
  k.value[W] && ae(k.value[W]);
@@ -6908,7 +6914,7 @@ const xp = {
6908
6914
  function Z(W) {
6909
6915
  l("search", W.target.value);
6910
6916
  }
6911
- return (W, ke) => a(r) ? (s(), g("div", xp, [
6917
+ return (W, ke) => a(r) ? (s(), g("div", Ip, [
6912
6918
  e.label ? (s(), D(a(we), {
6913
6919
  key: 0,
6914
6920
  variant: "block",
@@ -6925,7 +6931,7 @@ const xp = {
6925
6931
  class: Q(["vc-multivalue", [
6926
6932
  `vc-multivalue--${e.type}`,
6927
6933
  {
6928
- "vc-multivalue--opened": a(I),
6934
+ "vc-multivalue--opened": a(x),
6929
6935
  "vc-multivalue--error": a(u),
6930
6936
  "vc-multivalue--disabled": a(v),
6931
6937
  "vc-multivalue--focused": a(U),
@@ -6941,7 +6947,7 @@ const xp = {
6941
6947
  multilanguage: e.multilanguage,
6942
6948
  "current-language": e.currentLanguage,
6943
6949
  error: a(u)
6944
- }, xe({
6950
+ }, Ie({
6945
6951
  default: M(() => [
6946
6952
  w("span", null, F(e.label), 1)
6947
6953
  ]),
@@ -6970,14 +6976,14 @@ const xp = {
6970
6976
  "option-value": e.optionValue,
6971
6977
  "input-value": a(O),
6972
6978
  "format-value": a($),
6973
- "is-opened": a(I),
6979
+ "is-opened": a(x),
6974
6980
  "label-id": e.label ? a(i) : void 0,
6975
6981
  "listbox-id": m.value,
6976
6982
  "aria-described-by": a(p),
6977
6983
  "aria-required": a(b),
6978
6984
  onRemove: a(A),
6979
6985
  onToggleDropdown: a(j),
6980
- onInputSubmit: a(x),
6986
+ onInputSubmit: a(I),
6981
6987
  onInputChange: ke[0] || (ke[0] = (H) => O.value = H),
6982
6988
  onKeyDown: a(P),
6983
6989
  onFocus: ke[1] || (ke[1] = (H) => U.value = !0),
@@ -6986,7 +6992,7 @@ const xp = {
6986
6992
  onOpenColorPicker: a(E),
6987
6993
  onSetColorPickerRef: a(R),
6988
6994
  onColorChange: a(_)
6989
- }, xe({ _: 2 }, [
6995
+ }, Ie({ _: 2 }, [
6990
6996
  W.$slots["selected-item"] ? {
6991
6997
  name: "selected-item",
6992
6998
  fn: M((H) => [
@@ -7013,7 +7019,7 @@ const xp = {
7013
7019
  key: 1,
7014
7020
  ref_key: "dropdownComponentRef",
7015
7021
  ref: f,
7016
- "is-opened": a(I),
7022
+ "is-opened": a(x),
7017
7023
  "dropdown-style": a(me),
7018
7024
  "available-options": a(k),
7019
7025
  "option-label": e.optionLabel
@@ -7023,7 +7029,7 @@ const xp = {
7023
7029
  onSelect: ae,
7024
7030
  onSearch: Z,
7025
7031
  onClickOutside: a(G)
7026
- }), xe({ _: 2 }, [
7032
+ }), Ie({ _: 2 }, [
7027
7033
  W.$slots.option ? {
7028
7034
  name: "option",
7029
7035
  fn: M((H) => [
@@ -7185,7 +7191,7 @@ const xp = {
7185
7191
  return r.value;
7186
7192
  }), d = y(() => n.label ? l.value : n.ariaLabelledby);
7187
7193
  return Be($s, {
7188
- name: Ie(n, "name"),
7194
+ name: xe(n, "name"),
7189
7195
  disabled: y(() => !!n.disabled),
7190
7196
  invalid: i,
7191
7197
  describedBy: c
@@ -7213,7 +7219,7 @@ const xp = {
7213
7219
  T(a(rt), {
7214
7220
  required: e.required,
7215
7221
  error: i.value
7216
- }, xe({
7222
+ }, Ie({
7217
7223
  default: M(() => [
7218
7224
  w("span", null, F(e.label), 1)
7219
7225
  ]),
@@ -7433,7 +7439,7 @@ const xp = {
7433
7439
  class: "vc-checkbox__label",
7434
7440
  required: e.required,
7435
7441
  error: a(i)
7436
- }, xe({
7442
+ }, Ie({
7437
7443
  default: M(() => [
7438
7444
  w("span", null, F(e.label), 1)
7439
7445
  ]),
@@ -7661,7 +7667,7 @@ const xp = {
7661
7667
  class: "vc-switch__label",
7662
7668
  required: e.required,
7663
7669
  error: a(c)
7664
- }, xe({
7670
+ }, Ie({
7665
7671
  default: M(() => [
7666
7672
  w("span", null, F(e.label), 1)
7667
7673
  ]),
@@ -7971,7 +7977,7 @@ const xp = {
7971
7977
  return (i, c) => (s(), g("div", Eg, [
7972
7978
  T(a(st), {
7973
7979
  placement: l.value ? "bottom" : "right"
7974
- }, xe({
7980
+ }, Ie({
7975
7981
  default: M(() => [
7976
7982
  w("button", {
7977
7983
  type: "button",
@@ -8029,7 +8035,7 @@ const xp = {
8029
8035
  }), Og = ["aria-expanded"], Mg = {
8030
8036
  key: 0,
8031
8037
  class: "vc-menu-group__section-icon"
8032
- }, Lg = { class: "vc-menu-group__section-title" }, Ig = { class: "vc-menu-group__children" }, xg = /* @__PURE__ */ Y({
8038
+ }, Lg = { class: "vc-menu-group__section-title" }, xg = { class: "vc-menu-group__children" }, Ig = /* @__PURE__ */ Y({
8033
8039
  name: "VcMenuGroup",
8034
8040
  __name: "vc-menu-group",
8035
8041
  props: {
@@ -8101,13 +8107,13 @@ const xp = {
8101
8107
  "vc-menu-group__children-wrapper--collapsed": !r.value
8102
8108
  }])
8103
8109
  }, [
8104
- w("div", Ig, [
8110
+ w("div", xg, [
8105
8111
  z(u.$slots, "default")
8106
8112
  ])
8107
8113
  ], 2)
8108
8114
  ], 2));
8109
8115
  }
8110
- }), Ng = kg, Ka = hi, Bg = xg;
8116
+ }), Ng = kg, Ka = hi, Bg = Ig;
8111
8117
  function Dg(e) {
8112
8118
  const n = B(!1), t = B(!1);
8113
8119
  function l() {
@@ -8141,7 +8147,7 @@ const Pg = {
8141
8147
  },
8142
8148
  emits: ["preview", "edit", "remove"],
8143
8149
  setup(e) {
8144
- const n = e, { t } = Pe({ useScope: "global" }), { isMobile: l } = De(), r = y(() => sa(n.src, n.thumbnailSize) ?? n.src), o = B(!1), i = y(() => o.value ? n.src : r.value), c = Dg(Ie(() => i.value)), d = B(!1);
8150
+ const n = e, { t } = Pe({ useScope: "global" }), { isMobile: l } = De(), r = y(() => sa(n.src, n.thumbnailSize) ?? n.src), o = B(!1), i = y(() => o.value ? n.src : r.value), c = Dg(xe(() => i.value)), d = B(!1);
8145
8151
  oe(
8146
8152
  () => [n.src, n.thumbnailSize],
8147
8153
  () => {
@@ -8471,28 +8477,28 @@ const mb = 3, Wn = /* @__PURE__ */ Y({
8471
8477
  },
8472
8478
  emits: ["item:click"],
8473
8479
  setup(e, { emit: n }) {
8474
- const t = e, l = n, r = Ht(), { t: o } = Pe(), { menuItems: i, menuBadges: c } = Mo(), { hasAccess: d } = ul(), u = Ce(cs, B(!0)), v = [92, 70, 104], b = (O) => v[(O - 1) % v.length], p = y(() => !u.value && !t.searchQuery?.trim()), m = (O) => d(O.permissions), h = (O) => (O.children ?? []).filter((x) => m(x)), f = y(() => i.value.filter((O) => m(O) ? O.children?.length ? h(O).length > 0 : !0 : !1)), C = y(() => {
8480
+ const t = e, l = n, r = Ht(), { t: o } = Pe(), { menuItems: i, menuBadges: c } = Mo(), { hasAccess: d } = ul(), u = Ce(cs, B(!0)), v = [92, 70, 104], b = (O) => v[(O - 1) % v.length], p = y(() => !u.value && !t.searchQuery?.trim()), m = (O) => d(O.permissions), h = (O) => (O.children ?? []).filter((I) => m(I)), f = y(() => i.value.filter((O) => m(O) ? O.children?.length ? h(O).length > 0 : !0 : !1)), C = y(() => {
8475
8481
  const O = t.searchQuery?.toLowerCase().trim();
8476
- return O ? f.value.map((x) => {
8477
- const P = h(x);
8482
+ return O ? f.value.map((I) => {
8483
+ const P = h(I);
8478
8484
  if (!P.length)
8479
- return o(x.title).toLowerCase().includes(O) ? x : null;
8480
- if (o(x.title).toLowerCase().includes(O)) return x;
8485
+ return o(I.title).toLowerCase().includes(O) ? I : null;
8486
+ if (o(I.title).toLowerCase().includes(O)) return I;
8481
8487
  const R = P.filter((E) => o(E.title).toLowerCase().includes(O));
8482
- return R.length ? { ...x, children: R } : null;
8488
+ return R.length ? { ...I, children: R } : null;
8483
8489
  }).filter(Boolean) : f.value;
8484
8490
  }), S = (O) => O.groupId ?? String(O.id ?? O.routeId ?? O.title), $ = (O) => {
8485
8491
  l("item:click", O);
8486
8492
  }, A = (O) => {
8487
8493
  if (!O) return !1;
8488
- const x = Ci(r);
8489
- return x === O || x.startsWith(O + "/");
8494
+ const I = Ci(r);
8495
+ return I === O || I.startsWith(O + "/");
8490
8496
  };
8491
8497
  function N(O) {
8492
- let x;
8493
- typeof O == "object" && !ht(O) && "content" in O ? x = O : x = { content: O };
8498
+ let I;
8499
+ typeof O == "object" && !ht(O) && "content" in O ? I = O : I = { content: O };
8494
8500
  let P;
8495
- typeof x.content == "function" ? P = x.content() : ht(x.content) ? P = a(x.content) : P = x.content;
8501
+ typeof I.content == "function" ? P = I.content() : ht(I.content) ? P = a(I.content) : P = I.content;
8496
8502
  let R = P;
8497
8503
  if (typeof P == "number" && P > 99)
8498
8504
  R = "99+";
@@ -8500,16 +8506,16 @@ const mb = 3, Wn = /* @__PURE__ */ Y({
8500
8506
  const k = parseInt(P, 10);
8501
8507
  !isNaN(k) && k > 99 && (R = "99+");
8502
8508
  }
8503
- const E = x.isDot ?? !1;
8509
+ const E = I.isDot ?? !1;
8504
8510
  if (E || R != null && R !== "" && R !== 0)
8505
8511
  return {
8506
8512
  content: R,
8507
- variant: x.variant ?? "primary",
8513
+ variant: I.variant ?? "primary",
8508
8514
  isDot: E
8509
8515
  };
8510
8516
  }
8511
8517
  const V = y(() => {
8512
- const O = /* @__PURE__ */ new Map(), x = (P) => {
8518
+ const O = /* @__PURE__ */ new Map(), I = (P) => {
8513
8519
  const R = P.routeId ?? P.groupId;
8514
8520
  if (!R) return;
8515
8521
  let E = P.badge;
@@ -8518,12 +8524,12 @@ const mb = 3, Wn = /* @__PURE__ */ Y({
8518
8524
  _ && O.set(R, _);
8519
8525
  };
8520
8526
  for (const P of i.value)
8521
- if (x(P), P.children)
8527
+ if (I(P), P.children)
8522
8528
  for (const R of P.children)
8523
- x(R);
8529
+ I(R);
8524
8530
  return O;
8525
8531
  });
8526
- return (O, x) => C.value.length || p.value ? (s(), D(a(Ng), {
8532
+ return (O, I) => C.value.length || p.value ? (s(), D(a(Ng), {
8527
8533
  key: 0,
8528
8534
  expanded: e.expanded,
8529
8535
  class: Q(["vc-app-menu", { "vc-app-menu--collapsed": !e.expanded }])
@@ -8880,7 +8886,7 @@ function tn() {
8880
8886
  function Lb(e) {
8881
8887
  const { hasAccess: n } = ul(), t = B(""), l = y(() => (t.value ?? "").trim().toLowerCase()), r = y(() => l.value.length > 0), o = y(() => e.appsList.value.filter((u) => n(u.permission))), i = y(() => e.showApplications.value ? r.value ? o.value.filter((u) => [u.title, u.description, u.id, u.relativeUrl].filter(Boolean).join(" ").toLowerCase().includes(l.value)) : o.value : []), c = y(() => r.value ? e.widgets.value.filter((u) => [d(u), u.id, ...u.searchTerms ?? []].join(" ").toLowerCase().includes(l.value)) : e.widgets.value);
8882
8888
  function d(u) {
8883
- return u.title || Ib(u.id);
8889
+ return u.title || xb(u.id);
8884
8890
  }
8885
8891
  return {
8886
8892
  searchQuery: t,
@@ -8889,7 +8895,7 @@ function Lb(e) {
8889
8895
  getWidgetTitle: d
8890
8896
  };
8891
8897
  }
8892
- function Ib(e) {
8898
+ function xb(e) {
8893
8899
  return e ? e.replace(/[\-_]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (n) => n.toUpperCase()) : "";
8894
8900
  }
8895
8901
  const Ya = /* @__PURE__ */ Y({
@@ -8909,7 +8915,7 @@ const Ya = /* @__PURE__ */ Y({
8909
8915
  (s(), D(qe(a(n)?.component), Le(r.value, { onClose: a(t) }), null, 16, ["onClose"]))
8910
8916
  ], 2)) : L("", !0);
8911
8917
  }
8912
- }), xb = { class: "app-hub-content__search" }, Nb = {
8918
+ }), Ib = { class: "app-hub-content__search" }, Nb = {
8913
8919
  key: 0,
8914
8920
  class: "app-hub-content__section app-hub-content__section--apps"
8915
8921
  }, Bb = { class: "app-hub-content__section-header" }, Db = { class: "app-hub-content__section-title" }, Pb = {
@@ -8940,10 +8946,10 @@ const Ya = /* @__PURE__ */ Y({
8940
8946
  emits: ["switch-app"],
8941
8947
  setup(e, { emit: n }) {
8942
8948
  const t = e, l = n, r = yt(), o = y(() => typeof r.applications == "function"), i = B(null), c = B(null), { items: d } = Zl(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = tn(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: C } = Lb({
8943
- appsList: Ie(t, "appsList"),
8949
+ appsList: xe(t, "appsList"),
8944
8950
  widgets: d,
8945
- showApplications: Ie(t, "showApplications"),
8946
- mobile: Ie(t, "mobile")
8951
+ showApplications: xe(t, "showApplications"),
8952
+ mobile: xe(t, "mobile")
8947
8953
  }), S = B(Sl), $ = B(Sl), A = y(() => !o.value && h.value.length > ja), N = y(() => f.value.length > ja), V = y(() => A.value ? h.value.slice(0, S.value) : h.value), O = y(() => N.value ? f.value.slice(0, $.value) : f.value);
8948
8954
  oe(
8949
8955
  () => d.value.map((G) => G.id),
@@ -8971,13 +8977,13 @@ const Ya = /* @__PURE__ */ Y({
8971
8977
  ), oe(
8972
8978
  () => K(c.value),
8973
8979
  (G, ae) => {
8974
- ae?.removeEventListener("scroll", I), G?.addEventListener("scroll", I, { passive: !0 });
8980
+ ae?.removeEventListener("scroll", x), G?.addEventListener("scroll", x, { passive: !0 });
8975
8981
  },
8976
8982
  { immediate: !0 }
8977
8983
  ), We(() => {
8978
- K(i.value)?.removeEventListener("scroll", k), K(c.value)?.removeEventListener("scroll", I);
8984
+ K(i.value)?.removeEventListener("scroll", k), K(c.value)?.removeEventListener("scroll", x);
8979
8985
  });
8980
- function x(G) {
8986
+ function I(G) {
8981
8987
  return !G || G.startsWith("/") || G.startsWith("http://") || G.startsWith("https://") || G.startsWith("data:") ? G : `/${G}`;
8982
8988
  }
8983
8989
  function P(G) {
@@ -9002,7 +9008,7 @@ const Ya = /* @__PURE__ */ Y({
9002
9008
  renderLimit: S
9003
9009
  });
9004
9010
  }
9005
- function I() {
9011
+ function x() {
9006
9012
  N.value && q({
9007
9013
  container: c.value,
9008
9014
  totalItems: f.value.length,
@@ -9033,7 +9039,7 @@ const Ya = /* @__PURE__ */ Y({
9033
9039
  return (G, ae) => (s(), g("div", {
9034
9040
  class: Q(["app-hub-content", { "app-hub-content--mobile": e.mobile }])
9035
9041
  }, [
9036
- w("div", xb, [
9042
+ w("div", Ib, [
9037
9043
  T(a(Fe), {
9038
9044
  modelValue: a(m),
9039
9045
  "onUpdate:modelValue": ae[0] || (ae[0] = (Z) => ht(m) ? m.value = Z : null),
@@ -9077,7 +9083,7 @@ const Ya = /* @__PURE__ */ Y({
9077
9083
  }, [
9078
9084
  Z.iconUrl ? (s(), g("img", {
9079
9085
  key: 0,
9080
- src: x(Z.iconUrl),
9086
+ src: I(Z.iconUrl),
9081
9087
  alt: Z.title || Z.id || "app icon",
9082
9088
  class: "app-hub-content__item-icon app-hub-content__item-icon--tile"
9083
9089
  }, null, 8, Fb)) : (s(), D(a(le), {
@@ -9216,7 +9222,7 @@ const Ya = /* @__PURE__ */ Y({
9216
9222
  "apps-list": e.appsList,
9217
9223
  "show-applications": e.showApplications,
9218
9224
  onSwitchApp: i
9219
- }, xe({ _: 2 }, [
9225
+ }, Ie({ _: 2 }, [
9220
9226
  c.$slots.applications ? {
9221
9227
  name: "applications",
9222
9228
  fn: M((u) => [
@@ -9456,7 +9462,7 @@ const Ya = /* @__PURE__ */ Y({
9456
9462
  "show-search": e.showSearch,
9457
9463
  "search-placeholder": e.searchPlaceholder,
9458
9464
  "onItem:click": f[1] || (f[1] = (C) => h.$emit("item:click", C))
9459
- }, xe({ _: 2 }, [
9465
+ }, Ie({ _: 2 }, [
9460
9466
  h.$slots.menu ? {
9461
9467
  name: "menu",
9462
9468
  fn: M((C) => [
@@ -9481,7 +9487,7 @@ const Ya = /* @__PURE__ */ Y({
9481
9487
  "show-applications": !e.disableAppHub,
9482
9488
  "onUpdate:show": p,
9483
9489
  onSwitchApp: m
9484
- }, xe({ _: 2 }, [
9490
+ }, Ie({ _: 2 }, [
9485
9491
  h.$slots["app-hub"] && !e.disableAppHub ? {
9486
9492
  name: "applications",
9487
9493
  fn: M(({ appsList: C, switchApp: S }) => [
@@ -9636,7 +9642,7 @@ const Rh = {
9636
9642
  }, Lh = {
9637
9643
  key: 0,
9638
9644
  class: "menu-sidebar__content-main"
9639
- }, Ih = { class: "menu-sidebar__navmenu-container" }, xh = { class: "menu-sidebar__user" }, Nh = {
9645
+ }, xh = { class: "menu-sidebar__navmenu-container" }, Ih = { class: "menu-sidebar__user" }, Nh = {
9640
9646
  key: 2,
9641
9647
  class: "menu-sidebar__app-hub-wrapper"
9642
9648
  }, Bh = /* @__PURE__ */ Y({
@@ -9691,10 +9697,10 @@ const Rh = {
9691
9697
  z(b.$slots, "widgets-active-content")
9692
9698
  ])) : L("", !0),
9693
9699
  a(o) ? (s(), g(J, { key: 1 }, [
9694
- w("div", Ih, [
9700
+ w("div", xh, [
9695
9701
  z(b.$slots, "navmenu")
9696
9702
  ]),
9697
- w("div", xh, [
9703
+ w("div", Ih, [
9698
9704
  z(b.$slots, "user-dropdown")
9699
9705
  ])
9700
9706
  ], 64)) : (s(), g("div", Nh, [
@@ -9766,7 +9772,7 @@ const Rh = {
9766
9772
  transform: `translateX(${j}%)`,
9767
9773
  transition: Za
9768
9774
  };
9769
- }), x = y(() => {
9775
+ }), I = y(() => {
9770
9776
  const j = C.value?.clientWidth ?? 0, G = h.value && j > 0 ? -f.value / j : 0;
9771
9777
  return {
9772
9778
  transform: `translateX(${Math.max(0, Math.min(1, m.value + G)) * 100}%)`,
@@ -9802,7 +9808,7 @@ const Rh = {
9802
9808
  const G = j.touches[0];
9803
9809
  $ = G.clientX, A = G.clientY, N = G.clientX, V = Date.now(), f.value = 0, h.value = !1, S.value = "pending";
9804
9810
  }
9805
- function I(j) {
9811
+ function x(j) {
9806
9812
  if (!p.value || j.touches.length === 0 || S.value === "idle")
9807
9813
  return;
9808
9814
  const G = j.touches[0], ae = G.clientX - $, Z = G.clientY - A, W = Math.abs(ae), ke = Math.abs(Z);
@@ -9929,7 +9935,7 @@ const Rh = {
9929
9935
  ], 10, Uh),
9930
9936
  w("span", {
9931
9937
  class: "mobile-layout__tab-indicator",
9932
- style: he(x.value)
9938
+ style: he(I.value)
9933
9939
  }, null, 4)
9934
9940
  ]),
9935
9941
  w("div", {
@@ -9937,7 +9943,7 @@ const Rh = {
9937
9943
  ref: C,
9938
9944
  class: "mobile-layout__slider-viewport",
9939
9945
  onTouchstartPassive: k,
9940
- onTouchmove: I,
9946
+ onTouchmove: x,
9941
9947
  onTouchendPassive: U,
9942
9948
  onTouchcancelPassive: U
9943
9949
  }, [
@@ -9979,7 +9985,7 @@ const Rh = {
9979
9985
  "show-applications": !t.disableAppHub,
9980
9986
  mobile: "",
9981
9987
  onSwitchApp: me
9982
- }, xe({ _: 2 }, [
9988
+ }, Ie({ _: 2 }, [
9983
9989
  j.$slots["app-hub"] && !t.disableAppHub ? {
9984
9990
  name: "applications",
9985
9991
  fn: M(({ appsList: ae, switchApp: Z }) => [
@@ -10000,7 +10006,7 @@ const Rh = {
10000
10006
  "show-applications": !t.disableAppHub,
10001
10007
  mobile: "",
10002
10008
  onSwitchApp: me
10003
- }, xe({ _: 2 }, [
10009
+ }, Ie({ _: 2 }, [
10004
10010
  j.$slots["app-hub"] && !t.disableAppHub ? {
10005
10011
  name: "applications",
10006
10012
  fn: M(({ appsList: ae, switchApp: Z }) => [
@@ -10555,14 +10561,14 @@ const Sy = { class: "vc-app__main-content" }, G$ = /* @__PURE__ */ Y({
10555
10561
  Be(To, b);
10556
10562
  const p = _f();
10557
10563
  Os();
10558
- const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: C } = Ey(n), { handleMenuItemClick: S, openRoot: $ } = Cy(), A = Ce(fs), N = Ce(Ro, void 0), V = Ce("aiAgentConfig", void 0), O = Ce("aiAgentAddGlobalToolbarButton", !0), x = Ce(ms, B(!1));
10564
+ const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: C } = Ey(n), { handleMenuItemClick: S, openRoot: $ } = Cy(), A = Ce(fs), N = Ce(Ro, void 0), V = Ce("aiAgentConfig", void 0), O = Ce("aiAgentAddGlobalToolbarButton", !0), I = Ce(ms, B(!1));
10559
10565
  hy({
10560
10566
  isEmbedded: u,
10561
10567
  internalRoutes: A,
10562
10568
  dynamicModules: N,
10563
10569
  aiAgentConfig: V,
10564
10570
  aiAgentAddGlobalToolbarButton: O
10565
- }), oe(x, (_) => {
10571
+ }), oe(I, (_) => {
10566
10572
  _ && Rt.error(
10567
10573
  "Unable to load application modules. Please check your connection and try refreshing the page.",
10568
10574
  { timeout: 1e4 }
@@ -10606,12 +10612,12 @@ const Sy = { class: "vc-app__main-content" }, G$ = /* @__PURE__ */ Y({
10606
10612
  "onLogo:click": a($),
10607
10613
  "onItem:click": a(S),
10608
10614
  onSwitchApp: a(C)
10609
- }, xe({ _: 2 }, [
10615
+ }, Ie({ _: 2 }, [
10610
10616
  _.$slots["app-hub"] && !e.disableAppHub ? {
10611
10617
  name: "app-hub",
10612
- fn: M(({ appsList: I, switchApp: U }) => [
10618
+ fn: M(({ appsList: x, switchApp: U }) => [
10613
10619
  z(_.$slots, "app-hub", {
10614
- appsList: I,
10620
+ appsList: x,
10615
10621
  switchApp: U
10616
10622
  })
10617
10623
  ]),
@@ -10619,22 +10625,22 @@ const Sy = { class: "vc-app__main-content" }, G$ = /* @__PURE__ */ Y({
10619
10625
  } : void 0,
10620
10626
  _.$slots.menu ? {
10621
10627
  name: "menu",
10622
- fn: M((I) => [
10623
- z(_.$slots, "menu", pt(gt(I)))
10628
+ fn: M((x) => [
10629
+ z(_.$slots, "menu", pt(gt(x)))
10624
10630
  ]),
10625
10631
  key: "1"
10626
10632
  } : void 0,
10627
10633
  _.$slots["sidebar-header"] ? {
10628
10634
  name: "sidebar-header",
10629
- fn: M((I) => [
10630
- z(_.$slots, "sidebar-header", pt(gt(I)))
10635
+ fn: M((x) => [
10636
+ z(_.$slots, "sidebar-header", pt(gt(x)))
10631
10637
  ]),
10632
10638
  key: "2"
10633
10639
  } : void 0,
10634
10640
  _.$slots["sidebar-footer"] ? {
10635
10641
  name: "sidebar-footer",
10636
- fn: M((I) => [
10637
- z(_.$slots, "sidebar-footer", pt(gt(I)))
10642
+ fn: M((x) => [
10643
+ z(_.$slots, "sidebar-footer", pt(gt(x)))
10638
10644
  ]),
10639
10645
  key: "3"
10640
10646
  } : void 0
@@ -10745,7 +10751,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10745
10751
  offset: { crossAxis: 0, mainAxis: -10 },
10746
10752
  delay: 1e3,
10747
10753
  class: "tw-w-full"
10748
- }, xe({
10754
+ }, Ie({
10749
10755
  default: M(() => [
10750
10756
  w("button", {
10751
10757
  class: "app-bar-button__button",
@@ -10843,7 +10849,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10843
10849
  ]))), 128))
10844
10850
  ]));
10845
10851
  }
10846
- }), Iy = { class: "vc-auth-layout__logo-wrapper" }, xy = ["src", "alt"], Ny = { class: "vc-auth-layout__card" }, By = {
10852
+ }), xy = { class: "vc-auth-layout__logo-wrapper" }, Iy = ["src", "alt"], Ny = { class: "vc-auth-layout__card" }, By = {
10847
10853
  key: 0,
10848
10854
  class: "vc-auth-layout__header"
10849
10855
  }, Dy = {
@@ -10894,14 +10900,14 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10894
10900
  class: "vc-auth-layout",
10895
10901
  style: he(i.value)
10896
10902
  }, [
10897
- w("div", Iy, [
10903
+ w("div", xy, [
10898
10904
  e.logo ? (s(), g("img", {
10899
10905
  key: 0,
10900
10906
  src: e.logo,
10901
10907
  alt: e.logoAlt,
10902
10908
  class: Q(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded": r.value }]),
10903
10909
  onLoad: d[0] || (d[0] = (u) => r.value = !0)
10904
- }, null, 42, xy)) : L("", !0)
10910
+ }, null, 42, Iy)) : L("", !0)
10905
10911
  ]),
10906
10912
  w("div", Ny, [
10907
10913
  e.title || e.subtitle ? (s(), g("div", By, [
@@ -10945,7 +10951,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10945
10951
  oe(
10946
10952
  () => t.property,
10947
10953
  (O) => {
10948
- u.value = Ia(O);
10954
+ u.value = xa(O);
10949
10955
  },
10950
10956
  {
10951
10957
  deep: !0,
@@ -10954,7 +10960,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10954
10960
  ), oe(
10955
10961
  () => t.modelValue,
10956
10962
  (O) => {
10957
- v.value = Ia(O);
10963
+ v.value = xa(O);
10958
10964
  },
10959
10965
  {
10960
10966
  deep: !0,
@@ -10962,12 +10968,12 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10962
10968
  }
10963
10969
  );
10964
10970
  const h = y(() => {
10965
- const O = b.value.find((R) => R.id === m.value), x = O?.displaySymbol, P = O?.localizedSymbol.values[t.currentLanguage];
10966
- return P || x;
10971
+ const O = b.value.find((R) => R.id === m.value), I = O?.displaySymbol, P = O?.localizedSymbol.values[t.currentLanguage];
10972
+ return P || I;
10967
10973
  }), f = y(() => {
10968
10974
  const O = {};
10969
10975
  t.required && (O.required = !0), t.rules?.min && (O.min = Number(t.rules.min)), t.rules?.max && (O.max = Number(t.rules.max)), t.rules?.regex && (O.regex = new RegExp(t.rules.regex));
10970
- const x = t.displayNames?.find((E) => E.languageCode?.startsWith(t.currentLanguage))?.name || t.name, P = x && r(x.toUpperCase()) ? o(x.toUpperCase()) : x, R = t.multilanguage ? "value" : "alias";
10976
+ const I = t.displayNames?.find((E) => E.languageCode?.startsWith(t.currentLanguage))?.name || t.name, P = I && r(I.toUpperCase()) ? o(I.toUpperCase()) : I, R = t.multilanguage ? "value" : "alias";
10971
10977
  return {
10972
10978
  rules: O,
10973
10979
  valueType: t.valueType,
@@ -10994,19 +11000,19 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
10994
11000
  });
10995
11001
  return;
10996
11002
  }
10997
- let x;
11003
+ let I;
10998
11004
  if (f.value.valueType === "Color" && !f.value.dictionary && typeof O == "string")
10999
11005
  if (O.startsWith("#"))
11000
- x = O;
11006
+ I = O;
11001
11007
  else {
11002
11008
  const P = Oo(O);
11003
- P && (x = P);
11009
+ P && (I = P);
11004
11010
  }
11005
11011
  l("update:model-value", {
11006
11012
  value: O,
11007
11013
  dictionary: i.value,
11008
11014
  locale: t.currentLanguage,
11009
- colorCode: x
11015
+ colorCode: I
11010
11016
  });
11011
11017
  }
11012
11018
  });
@@ -11025,8 +11031,8 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11025
11031
  if (t.optionsGetter && u.value.dictionary && u.value.id)
11026
11032
  try {
11027
11033
  c.value = !0;
11028
- const x = await t.optionsGetter(u.value.id, O, t.currentLanguage);
11029
- x && (i.value = x);
11034
+ const I = await t.optionsGetter(u.value.id, O, t.currentLanguage);
11035
+ I && (i.value = I);
11030
11036
  } finally {
11031
11037
  c.value = !1;
11032
11038
  }
@@ -11041,9 +11047,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11041
11047
  );
11042
11048
  if (O) {
11043
11049
  b.value = O;
11044
- const x = u.value.values?.[0];
11045
- if (x?.unitOfMeasureId)
11046
- m.value = x.unitOfMeasureId;
11050
+ const I = u.value.values?.[0];
11051
+ if (I?.unitOfMeasureId)
11052
+ m.value = I.unitOfMeasureId;
11047
11053
  else {
11048
11054
  const P = b.value.find((R) => R.isDefault)?.id ?? b.value[0]?.id;
11049
11055
  m.value = P;
@@ -11059,7 +11065,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11059
11065
  async function V() {
11060
11066
  d.value.length && (i.value = d.value);
11061
11067
  }
11062
- return (O, x) => (s(), D(a(al), {
11068
+ return (O, I) => (s(), D(a(al), {
11063
11069
  key: f.value.key,
11064
11070
  label: f.value.displayName,
11065
11071
  name: f.value.name,
@@ -11069,7 +11075,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11069
11075
  default: M(({ errorMessage: P, errors: R }) => [
11070
11076
  f.value.valueType !== "Color" && f.value.dictionary && !f.value.multivalue ? (s(), D(a(_t), Le({ key: 0 }, O.$attrs, {
11071
11077
  modelValue: C.value,
11072
- "onUpdate:modelValue": x[0] || (x[0] = (E) => C.value = E),
11078
+ "onUpdate:modelValue": I[0] || (I[0] = (E) => C.value = E),
11073
11079
  error: !!R.length,
11074
11080
  "error-message": P,
11075
11081
  label: f.value.displayName,
@@ -11085,9 +11091,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11085
11091
  loading: c.value,
11086
11092
  onSearch: N,
11087
11093
  onClose: V
11088
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : f.value.valueType === "ShortText" && f.value.multivalue && !f.value.dictionary ? (s(), D(a(xt), Le({ key: 1 }, O.$attrs, {
11094
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : f.value.valueType === "ShortText" && f.value.multivalue && !f.value.dictionary ? (s(), D(a(It), Le({ key: 1 }, O.$attrs, {
11089
11095
  modelValue: C.value,
11090
- "onUpdate:modelValue": x[1] || (x[1] = (E) => C.value = E),
11096
+ "onUpdate:modelValue": I[1] || (I[1] = (E) => C.value = E),
11091
11097
  name: f.value.name,
11092
11098
  error: !!R.length,
11093
11099
  "error-message": P,
@@ -11097,9 +11103,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11097
11103
  disabled: e.disabled,
11098
11104
  multilanguage: e.multilanguage,
11099
11105
  "current-language": e.currentLanguage
11100
- }), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : f.value.valueType === "ShortText" && f.value.multivalue && f.value.dictionary ? (s(), D(a(xt), Le({ key: 2 }, O.$attrs, {
11106
+ }), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : f.value.valueType === "ShortText" && f.value.multivalue && f.value.dictionary ? (s(), D(a(It), Le({ key: 2 }, O.$attrs, {
11101
11107
  modelValue: C.value,
11102
- "onUpdate:modelValue": x[2] || (x[2] = (E) => C.value = E),
11108
+ "onUpdate:modelValue": I[2] || (I[2] = (E) => C.value = E),
11103
11109
  error: !!R.length,
11104
11110
  "error-message": P,
11105
11111
  label: f.value.displayName,
@@ -11117,7 +11123,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11117
11123
  onClose: V
11118
11124
  }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : f.value.valueType === "ShortText" ? (s(), D(a(Fe), Le({ key: 3 }, O.$attrs, {
11119
11125
  modelValue: C.value,
11120
- "onUpdate:modelValue": x[3] || (x[3] = (E) => C.value = E),
11126
+ "onUpdate:modelValue": I[3] || (I[3] = (E) => C.value = E),
11121
11127
  error: !!R.length,
11122
11128
  "error-message": P,
11123
11129
  label: f.value.displayName,
@@ -11127,9 +11133,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11127
11133
  disabled: e.disabled,
11128
11134
  "current-language": e.currentLanguage,
11129
11135
  loading: c.value
11130
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "current-language", "loading"])) : f.value.valueType === "Number" && f.value.multivalue ? (s(), D(a(xt), Le({ key: 4 }, O.$attrs, {
11136
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "current-language", "loading"])) : f.value.valueType === "Number" && f.value.multivalue ? (s(), D(a(It), Le({ key: 4 }, O.$attrs, {
11131
11137
  modelValue: C.value,
11132
- "onUpdate:modelValue": x[4] || (x[4] = (E) => C.value = E),
11138
+ "onUpdate:modelValue": I[4] || (I[4] = (E) => C.value = E),
11133
11139
  label: f.value.displayName,
11134
11140
  required: f.value.required,
11135
11141
  placeholder: O.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.ADD"),
@@ -11140,9 +11146,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11140
11146
  "option-label": "value",
11141
11147
  "option-value": "value",
11142
11148
  options: i.value
11143
- }), null, 16, ["modelValue", "label", "required", "placeholder", "disabled", "error", "error-message", "options"])) : f.value.valueType === "Integer" && f.value.multivalue ? (s(), D(a(xt), Le({ key: 5 }, O.$attrs, {
11149
+ }), null, 16, ["modelValue", "label", "required", "placeholder", "disabled", "error", "error-message", "options"])) : f.value.valueType === "Integer" && f.value.multivalue ? (s(), D(a(It), Le({ key: 5 }, O.$attrs, {
11144
11150
  modelValue: C.value,
11145
- "onUpdate:modelValue": x[5] || (x[5] = (E) => C.value = E),
11151
+ "onUpdate:modelValue": I[5] || (I[5] = (E) => C.value = E),
11146
11152
  label: f.value.displayName,
11147
11153
  required: f.value.required,
11148
11154
  placeholder: O.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.ADD"),
@@ -11155,7 +11161,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11155
11161
  options: i.value
11156
11162
  }), null, 16, ["modelValue", "label", "required", "placeholder", "disabled", "error", "error-message", "options"])) : f.value.valueType === "Number" ? (s(), D(a(Fe), Le({ key: 6 }, O.$attrs, {
11157
11163
  modelValue: C.value,
11158
- "onUpdate:modelValue": x[6] || (x[6] = (E) => C.value = E),
11164
+ "onUpdate:modelValue": I[6] || (I[6] = (E) => C.value = E),
11159
11165
  error: !!R.length,
11160
11166
  "error-message": P,
11161
11167
  label: f.value.displayName,
@@ -11167,7 +11173,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11167
11173
  loading: c.value
11168
11174
  }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : f.value.valueType === "Integer" ? (s(), D(a(Fe), Le({ key: 7 }, O.$attrs, {
11169
11175
  modelValue: C.value,
11170
- "onUpdate:modelValue": x[7] || (x[7] = (E) => C.value = E),
11176
+ "onUpdate:modelValue": I[7] || (I[7] = (E) => C.value = E),
11171
11177
  error: !!R.length,
11172
11178
  "error-message": P,
11173
11179
  label: f.value.displayName,
@@ -11180,7 +11186,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11180
11186
  loading: c.value
11181
11187
  }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : f.value.valueType === "DateTime" ? (s(), D(a(Fe), Le({ key: 8 }, O.$attrs, {
11182
11188
  modelValue: C.value,
11183
- "onUpdate:modelValue": x[8] || (x[8] = (E) => C.value = E),
11189
+ "onUpdate:modelValue": I[8] || (I[8] = (E) => C.value = E),
11184
11190
  error: !!R.length,
11185
11191
  "error-message": P,
11186
11192
  label: f.value.displayName,
@@ -11192,7 +11198,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11192
11198
  clearable: ""
11193
11199
  }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : f.value.valueType === "LongText" ? (s(), D(a(zf), Le({ key: 9 }, O.$attrs, {
11194
11200
  modelValue: C.value,
11195
- "onUpdate:modelValue": x[9] || (x[9] = (E) => C.value = E),
11201
+ "onUpdate:modelValue": I[9] || (I[9] = (E) => C.value = E),
11196
11202
  "error-message": P,
11197
11203
  label: f.value.displayName,
11198
11204
  required: f.value.required,
@@ -11201,7 +11207,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11201
11207
  "current-language": e.currentLanguage
11202
11208
  }), null, 16, ["modelValue", "error-message", "label", "required", "placeholder", "disabled", "current-language"])) : f.value.valueType === "Boolean" ? (s(), D(a(bi), Le({ key: 10 }, O.$attrs, {
11203
11209
  modelValue: C.value,
11204
- "onUpdate:modelValue": x[10] || (x[10] = (E) => C.value = E),
11210
+ "onUpdate:modelValue": I[10] || (I[10] = (E) => C.value = E),
11205
11211
  "error-message": P,
11206
11212
  required: f.value.required,
11207
11213
  disabled: e.disabled,
@@ -11209,10 +11215,10 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11209
11215
  label: f.value.displayName
11210
11216
  }), null, 16, ["modelValue", "error-message", "required", "disabled", "name", "label"])) : f.value.valueType === "Measure" ? (s(), D(a(Ms), Le({ key: 11 }, O.$attrs, {
11211
11217
  modelValue: C.value,
11212
- "onUpdate:modelValue": x[11] || (x[11] = (E) => C.value = E),
11218
+ "onUpdate:modelValue": I[11] || (I[11] = (E) => C.value = E),
11213
11219
  option: m.value,
11214
11220
  "onUpdate:option": [
11215
- x[12] || (x[12] = (E) => m.value = E),
11221
+ I[12] || (I[12] = (E) => m.value = E),
11216
11222
  S
11217
11223
  ],
11218
11224
  options: b.value,
@@ -11239,9 +11245,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11239
11245
  }, F(h.value), 41, zy)
11240
11246
  ]),
11241
11247
  _: 1
11242
- }, 16, ["modelValue", "option", "options", "loading", "multilanguage", "current-language", "label", "placeholder", "required", "disabled"])) : f.value.valueType === "Color" && f.value.multivalue && !f.value.dictionary ? (s(), D(a(xt), Le({ key: 12 }, O.$attrs, {
11248
+ }, 16, ["modelValue", "option", "options", "loading", "multilanguage", "current-language", "label", "placeholder", "required", "disabled"])) : f.value.valueType === "Color" && f.value.multivalue && !f.value.dictionary ? (s(), D(a(It), Le({ key: 12 }, O.$attrs, {
11243
11249
  modelValue: C.value,
11244
- "onUpdate:modelValue": x[13] || (x[13] = (E) => C.value = E),
11250
+ "onUpdate:modelValue": I[13] || (I[13] = (E) => C.value = E),
11245
11251
  type: "color",
11246
11252
  name: f.value.name,
11247
11253
  error: !!R.length,
@@ -11254,9 +11260,9 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11254
11260
  "current-language": e.currentLanguage,
11255
11261
  "option-label": "value",
11256
11262
  "option-value": "value"
11257
- }), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : f.value.valueType === "Color" && f.value.multivalue && f.value.dictionary ? (s(), D(a(xt), Le({ key: 13 }, O.$attrs, {
11263
+ }), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : f.value.valueType === "Color" && f.value.multivalue && f.value.dictionary ? (s(), D(a(It), Le({ key: 13 }, O.$attrs, {
11258
11264
  modelValue: C.value,
11259
- "onUpdate:modelValue": x[14] || (x[14] = (E) => C.value = E),
11265
+ "onUpdate:modelValue": I[14] || (I[14] = (E) => C.value = E),
11260
11266
  error: !!R.length,
11261
11267
  "error-message": P,
11262
11268
  label: f.value.displayName,
@@ -11294,7 +11300,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11294
11300
  _: 1
11295
11301
  }, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : f.value.valueType === "Color" && !f.value.multivalue && !f.value.dictionary ? (s(), D(a(Fe), Le({ key: 14 }, O.$attrs, {
11296
11302
  modelValue: C.value,
11297
- "onUpdate:modelValue": x[15] || (x[15] = (E) => C.value = E),
11303
+ "onUpdate:modelValue": I[15] || (I[15] = (E) => C.value = E),
11298
11304
  type: "color",
11299
11305
  label: f.value.displayName,
11300
11306
  error: !!R.length,
@@ -11302,7 +11308,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11302
11308
  placeholder: O.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.VALUE_TYPE.COLOR.NAME")
11303
11309
  }), null, 16, ["modelValue", "label", "error", "error-message", "placeholder"])) : f.value.valueType === "Color" && f.value.dictionary && !f.value.multivalue ? (s(), D(a(_t), Le({ key: 15 }, O.$attrs, {
11304
11310
  modelValue: C.value,
11305
- "onUpdate:modelValue": x[16] || (x[16] = (E) => C.value = E),
11311
+ "onUpdate:modelValue": I[16] || (I[16] = (E) => C.value = E),
11306
11312
  error: !!R.length,
11307
11313
  "error-message": P,
11308
11314
  label: f.value.displayName,
@@ -11420,7 +11426,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11420
11426
  const h = d.value;
11421
11427
  h && (h.allowTouchMove = !m, m ? h.mousewheel?.disable() : (h.mousewheel?.enable(), h.slideTo(0, 0)), Re(() => h.update()));
11422
11428
  }
11423
- ), oe(Ie(l, "loading"), (m) => {
11429
+ ), oe(xe(l, "loading"), (m) => {
11424
11430
  d.value && (m ? d.value.disable() : d.value.enable());
11425
11431
  });
11426
11432
  let p = l.images.length;
@@ -11432,7 +11438,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11432
11438
  }), p = m;
11433
11439
  }
11434
11440
  ), (m, h) => (s(), g("div", Ky, [
11435
- T(a(xl), {
11441
+ T(a(Il), {
11436
11442
  modules: o,
11437
11443
  "slides-per-view": "auto",
11438
11444
  "space-between": e.gap,
@@ -11508,21 +11514,21 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11508
11514
  const t = n, l = e, { t: r } = Pe({ useScope: "global" }), { isMobile: o } = De(), i = B(l.index), c = B(!1), d = [gc], u = [Uo], v = B(), b = B(), p = y(() => l.images[i.value]);
11509
11515
  oe(
11510
11516
  () => l.index,
11511
- (x) => {
11512
- i.value = x, v.value?.slideTo(x);
11517
+ (I) => {
11518
+ i.value = I, v.value?.slideTo(I);
11513
11519
  }
11514
11520
  );
11515
- function m(x) {
11516
- v.value = x;
11521
+ function m(I) {
11522
+ v.value = I;
11517
11523
  }
11518
- function h(x) {
11519
- b.value = x;
11524
+ function h(I) {
11525
+ b.value = I;
11520
11526
  }
11521
- function f(x) {
11522
- i.value = x.activeIndex, b.value?.slideTo(x.activeIndex);
11527
+ function f(I) {
11528
+ i.value = I.activeIndex, b.value?.slideTo(I.activeIndex);
11523
11529
  }
11524
- function C(x) {
11525
- v.value?.slideTo(x);
11530
+ function C(I) {
11531
+ v.value?.slideTo(I);
11526
11532
  }
11527
11533
  function S() {
11528
11534
  v.value?.slidePrev();
@@ -11530,13 +11536,13 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11530
11536
  function $() {
11531
11537
  v.value?.slideNext();
11532
11538
  }
11533
- function A(x, P) {
11539
+ function A(I, P) {
11534
11540
  if (!P) return;
11535
- const R = x.target;
11541
+ const R = I.target;
11536
11542
  R instanceof HTMLImageElement && (R.src = P);
11537
11543
  }
11538
11544
  async function N() {
11539
- const x = p.value?.url ?? "", P = x.charAt(0) === "/" ? `${location.origin}${x}` : x;
11545
+ const I = p.value?.url ?? "", P = I.charAt(0) === "/" ? `${location.origin}${I}` : I;
11540
11546
  try {
11541
11547
  await navigator.clipboard.writeText(P), c.value = !0, setTimeout(() => {
11542
11548
  c.value = !1;
@@ -11544,22 +11550,22 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11544
11550
  } catch {
11545
11551
  }
11546
11552
  }
11547
- function V(x) {
11548
- x.key === "Escape" && (x.preventDefault(), t("close"));
11553
+ function V(I) {
11554
+ I.key === "Escape" && (I.preventDefault(), t("close"));
11549
11555
  }
11550
11556
  const O = yc(document.body);
11551
11557
  return tt(() => {
11552
11558
  window.addEventListener("keydown", V), O.value = !0;
11553
11559
  }), We(() => {
11554
11560
  window.removeEventListener("keydown", V), O.value = !1;
11555
- }), (x, P) => p.value ? (s(), D(a(vl), {
11561
+ }), (I, P) => p.value ? (s(), D(a(vl), {
11556
11562
  key: 0,
11557
11563
  "is-mobile-fullscreen": "",
11558
11564
  "is-fullscreen": "",
11559
11565
  "modal-width": "vc-gallery-preview__modal",
11560
11566
  role: "dialog",
11561
11567
  "aria-modal": "true",
11562
- onClose: P[0] || (P[0] = (R) => x.$emit("close"))
11568
+ onClose: P[0] || (P[0] = (R) => I.$emit("close"))
11563
11569
  }, {
11564
11570
  header: M(() => [
11565
11571
  w("div", Jy, [
@@ -11588,7 +11594,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11588
11594
  content: M(() => [
11589
11595
  w("div", tw, [
11590
11596
  w("div", lw, [
11591
- T(a(xl), {
11597
+ T(a(Il), {
11592
11598
  modules: d,
11593
11599
  "initial-slide": i.value,
11594
11600
  "space-between": 0,
@@ -11643,7 +11649,7 @@ const $y = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, K$
11643
11649
  ], 64))
11644
11650
  ]),
11645
11651
  e.images.length > 1 ? (s(), g("div", aw, [
11646
- T(a(xl), {
11652
+ T(a(Il), {
11647
11653
  modules: u,
11648
11654
  "slides-per-view": "auto",
11649
11655
  "space-between": 6,
@@ -11956,12 +11962,12 @@ const bw = {
11956
11962
  onDragEdge: (E) => {
11957
11963
  const _ = S.swiperRef.value;
11958
11964
  if (!_) return;
11959
- const k = 40, I = _.getTranslate(), U = _.minTranslate(), q = _.maxTranslate();
11965
+ const k = 40, x = _.getTranslate(), U = _.minTranslate(), q = _.maxTranslate();
11960
11966
  if (E === 1) {
11961
- const K = Math.max(I - k, q);
11967
+ const K = Math.max(x - k, q);
11962
11968
  _.setTranslate(K), _.update();
11963
11969
  } else if (E === -1) {
11964
- const K = Math.min(I + k, U);
11970
+ const K = Math.min(x + k, U);
11965
11971
  _.setTranslate(K), _.update();
11966
11972
  }
11967
11973
  }
@@ -11979,7 +11985,7 @@ const bw = {
11979
11985
  }
11980
11986
  const V = B(!1);
11981
11987
  let O = 0;
11982
- function x(E) {
11988
+ function I(E) {
11983
11989
  E.dataTransfer?.types.includes("Files") && (O++, V.value = !0);
11984
11990
  }
11985
11991
  function P(E) {
@@ -12027,7 +12033,7 @@ const bw = {
12027
12033
  [`vc-gallery--${e.size}`]: !0
12028
12034
  }]),
12029
12035
  style: he({ "--gallery-gap": `${e.gap}px` }),
12030
- onDragenter: ue(x, ["prevent"]),
12036
+ onDragenter: ue(I, ["prevent"]),
12031
12037
  onDragleave: ue(P, ["prevent"]),
12032
12038
  onDragover: _[8] || (_[8] = ue(() => {
12033
12039
  }, ["prevent"])),
@@ -12090,12 +12096,12 @@ const bw = {
12090
12096
  a(p).galleryRef.value = k;
12091
12097
  })
12092
12098
  }, {
12093
- item: M(({ image: k, index: I }) => [
12099
+ item: M(({ image: k, index: x }) => [
12094
12100
  z(E.$slots, "item", {
12095
12101
  image: k,
12096
- index: I,
12102
+ index: x,
12097
12103
  actions: {
12098
- preview: () => a(h).openPreview(I),
12104
+ preview: () => a(h).openPreview(x),
12099
12105
  edit: () => l("edit", k),
12100
12106
  remove: () => l("remove", k)
12101
12107
  }
@@ -12107,7 +12113,7 @@ const bw = {
12107
12113
  "disable-drag": a(o) || a(p).disableDrag.value,
12108
12114
  "image-fit": e.imagefit,
12109
12115
  "thumbnail-size": C.value,
12110
- onPreview: (U) => a(h).openPreview(I),
12116
+ onPreview: (U) => a(h).openPreview(x),
12111
12117
  onEdit: _[2] || (_[2] = (U) => l("edit", U)),
12112
12118
  onRemove: _[3] || (_[3] = (U) => l("remove", U))
12113
12119
  }, null, 8, ["image", "readonly", "actions", "disable-drag", "image-fit", "thumbnail-size", "onPreview"])
@@ -12121,15 +12127,15 @@ const bw = {
12121
12127
  },
12122
12128
  class: "vc-gallery__grid"
12123
12129
  }, [
12124
- (s(!0), g(J, null, ve(u.value, (k, I) => (s(), g("div", {
12125
- key: `img_${k.id || I}`,
12130
+ (s(!0), g(J, null, ve(u.value, (k, x) => (s(), g("div", {
12131
+ key: `img_${k.id || x}`,
12126
12132
  class: "vc-gallery__item"
12127
12133
  }, [
12128
12134
  z(E.$slots, "item", {
12129
12135
  image: k,
12130
- index: I,
12136
+ index: x,
12131
12137
  actions: {
12132
- preview: () => a(h).openPreview(I),
12138
+ preview: () => a(h).openPreview(x),
12133
12139
  edit: () => l("edit", k),
12134
12140
  remove: () => l("remove", k)
12135
12141
  }
@@ -12141,7 +12147,7 @@ const bw = {
12141
12147
  "disable-drag": a(p).disableDrag.value,
12142
12148
  "image-fit": e.imagefit,
12143
12149
  "thumbnail-size": C.value,
12144
- onPreview: (U) => a(h).openPreview(I),
12150
+ onPreview: (U) => a(h).openPreview(x),
12145
12151
  onEdit: _[5] || (_[5] = (U) => l("edit", U)),
12146
12152
  onRemove: _[6] || (_[6] = (U) => l("remove", U))
12147
12153
  }, null, 8, ["image", "readonly", "actions", "disable-drag", "image-fit", "thumbnail-size", "onPreview"])
@@ -12235,7 +12241,7 @@ function Mw(e, n) {
12235
12241
  z(e.$slots, "default")
12236
12242
  ]);
12237
12243
  }
12238
- const Lw = /* @__PURE__ */ Io(Aw, [["render", Mw]]), Iw = ["data-items-count"], xw = {
12244
+ const Lw = /* @__PURE__ */ xo(Aw, [["render", Mw]]), xw = ["data-items-count"], Iw = {
12239
12245
  key: "__empty__",
12240
12246
  class: "vc-table-composition__body-state"
12241
12247
  }, Nw = { class: "vc-table-composition__empty" }, Bw = {
@@ -12257,7 +12263,7 @@ const Lw = /* @__PURE__ */ Io(Aw, [["render", Mw]]), Iw = ["data-items-count"],
12257
12263
  !e.loading && l.value ? z(r.$slots, "default", {
12258
12264
  key: 0,
12259
12265
  items: e.items
12260
- }) : !e.loading && !l.value ? (s(), g("div", xw, [
12266
+ }) : !e.loading && !l.value ? (s(), g("div", Iw, [
12261
12267
  z(r.$slots, "empty", {}, () => [
12262
12268
  w("div", Nw, [
12263
12269
  z(r.$slots, "empty-content", {}, () => [
@@ -12272,7 +12278,7 @@ const Lw = /* @__PURE__ */ Io(Aw, [["render", Mw]]), Iw = ["data-items-count"],
12272
12278
  ], -1))
12273
12279
  ])
12274
12280
  ]))
12275
- ], 8, Iw));
12281
+ ], 8, xw));
12276
12282
  }
12277
12283
  }), Dw = ["tabindex"], Pw = {
12278
12284
  key: 0,
@@ -12294,7 +12300,7 @@ const Lw = /* @__PURE__ */ Io(Aw, [["render", Mw]]), Iw = ["data-items-count"],
12294
12300
  emits: ["click", "hover", "leave", "space-press"],
12295
12301
  setup(e, { emit: n }) {
12296
12302
  const t = e, l = n, r = Ce(zl, null), o = Ce(
12297
- xo,
12303
+ Io,
12298
12304
  y(() => 0)
12299
12305
  ), i = Ce(No, B(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
12300
12306
  l("click", m);
@@ -12537,7 +12543,7 @@ function jw(e, n) {
12537
12543
  z(e.$slots, "default")
12538
12544
  ]);
12539
12545
  }
12540
- const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-composition__empty-state" }, Jw = { class: "vc-table-composition__empty-content" }, Zw = { class: "vc-table-composition__empty-title" }, e0 = {
12546
+ const Xw = /* @__PURE__ */ xo(Kw, [["render", jw]]), Qw = { class: "vc-table-composition__empty-state" }, Jw = { class: "vc-table-composition__empty-content" }, Zw = { class: "vc-table-composition__empty-title" }, e0 = {
12541
12547
  key: 0,
12542
12548
  class: "vc-table-composition__empty-description"
12543
12549
  }, t0 = {
@@ -12683,20 +12689,20 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
12683
12689
  });
12684
12690
  }, O = async () => {
12685
12691
  o.value || (o.value = !0, await Re(), i.value = !0), V();
12686
- }, x = (k) => {
12687
- const I = Array.from(
12692
+ }, I = (k) => {
12693
+ const x = Array.from(
12688
12694
  d.value?.querySelectorAll('[role="menuitem"]:not([aria-disabled])') || []
12689
12695
  );
12690
- if (!I.length) return;
12691
- const U = I.indexOf(document.activeElement);
12696
+ if (!x.length) return;
12697
+ const U = x.indexOf(document.activeElement);
12692
12698
  if (k.key === "ArrowDown") {
12693
12699
  k.preventDefault();
12694
- const q = U < I.length - 1 ? U + 1 : 0;
12695
- I[q]?.focus();
12700
+ const q = U < x.length - 1 ? U + 1 : 0;
12701
+ x[q]?.focus();
12696
12702
  } else if (k.key === "ArrowUp") {
12697
12703
  k.preventDefault();
12698
- const q = U > 0 ? U - 1 : I.length - 1;
12699
- I[q]?.focus();
12704
+ const q = U > 0 ? U - 1 : x.length - 1;
12705
+ x[q]?.focus();
12700
12706
  } else k.key === "Escape" ? (k.preventDefault(), A()) : k.key === "Tab" && A();
12701
12707
  }, P = (k) => {
12702
12708
  k.key === "Escape" && o.value && A();
@@ -12711,12 +12717,12 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
12711
12717
  k ? E() : _();
12712
12718
  }), We(() => {
12713
12719
  _();
12714
- }), (k, I) => Xe((s(), g("div", {
12720
+ }), (k, x) => Xe((s(), g("div", {
12715
12721
  class: Q(["vc-table-row-actions", {
12716
12722
  "vc-table-row-actions--dropdown-mode": m.value,
12717
12723
  "vc-table-row-actions--column": e.position === "column"
12718
12724
  }]),
12719
- onClick: I[3] || (I[3] = ue(() => {
12725
+ onClick: x[3] || (x[3] = ue(() => {
12720
12726
  }, ["stop"]))
12721
12727
  }, [
12722
12728
  m.value ? L("", !0) : (s(!0), g(J, { key: 0 }, ve(h.value, (U, q) => (s(), g("div", {
@@ -12747,7 +12753,7 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
12747
12753
  ref_key: "referenceRef",
12748
12754
  ref: c,
12749
12755
  class: "vc-table-row-actions__overflow",
12750
- onClick: I[2] || (I[2] = ue(() => {
12756
+ onClick: x[2] || (x[2] = ue(() => {
12751
12757
  }, ["stop"]))
12752
12758
  }, [
12753
12759
  w("button", {
@@ -12760,7 +12766,7 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
12760
12766
  "aria-expanded": o.value,
12761
12767
  onClick: ue($, ["stop", "prevent"]),
12762
12768
  onKeydown: $e(ue(O, ["prevent"]), ["down"]),
12763
- onMousedown: I[0] || (I[0] = ue(() => {
12769
+ onMousedown: x[0] || (x[0] = ue(() => {
12764
12770
  }, ["stop"]))
12765
12771
  }, [
12766
12772
  T(a(le), {
@@ -12785,9 +12791,9 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
12785
12791
  role: "menu",
12786
12792
  class: "vc-table-row-actions__dropdown",
12787
12793
  style: he(a(S)),
12788
- onClick: I[1] || (I[1] = ue(() => {
12794
+ onClick: x[1] || (x[1] = ue(() => {
12789
12795
  }, ["stop"])),
12790
- onKeydown: x
12796
+ onKeydown: I
12791
12797
  }, [
12792
12798
  (s(!0), g(J, null, ve(f.value, (U, q) => (s(), g("div", {
12793
12799
  key: q,
@@ -13090,7 +13096,7 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13090
13096
  }, M0 = {
13091
13097
  key: 2,
13092
13098
  class: "vc-column-filter__range"
13093
- }, L0 = { class: "vc-column-filter__range-field" }, I0 = { class: "vc-column-filter__range-label" }, x0 = { class: "vc-column-filter__range-field" }, N0 = { class: "vc-column-filter__range-label" }, B0 = { class: "vc-column-filter__actions" }, D0 = /* @__PURE__ */ Y({
13099
+ }, L0 = { class: "vc-column-filter__range-field" }, x0 = { class: "vc-column-filter__range-label" }, I0 = { class: "vc-column-filter__range-field" }, N0 = { class: "vc-column-filter__range-label" }, B0 = { class: "vc-column-filter__actions" }, D0 = /* @__PURE__ */ Y({
13094
13100
  __name: "ColumnFilter",
13095
13101
  props: {
13096
13102
  field: {},
@@ -13105,24 +13111,24 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13105
13111
  setup(e, { emit: n }) {
13106
13112
  const t = e, l = n, r = B(null), o = B(null), i = B(null), c = B(null), d = B(!1), u = B(null), v = B(""), b = B(""), p = () => {
13107
13113
  if (t.filterType === "dateRange" && t.modelValue && typeof t.modelValue == "object" && !Array.isArray(t.modelValue)) {
13108
- const I = t.modelValue;
13109
- v.value = I.start ?? "", b.value = I.end ?? "", u.value = null;
13114
+ const x = t.modelValue;
13115
+ v.value = x.start ?? "", b.value = x.end ?? "", u.value = null;
13110
13116
  } else
13111
13117
  u.value = t.modelValue ?? null, v.value = "", b.value = "";
13112
- }, m = (I) => {
13113
- u.value = I;
13114
- }, h = (I) => {
13115
- v.value = I;
13116
- }, f = (I) => {
13117
- b.value = I;
13118
+ }, m = (x) => {
13119
+ u.value = x;
13120
+ }, h = (x) => {
13121
+ v.value = x;
13122
+ }, f = (x) => {
13123
+ b.value = x;
13118
13124
  }, C = y(() => {
13119
- const I = t.modelValue;
13120
- return I == null || I === "" || Array.isArray(I) && I.length === 0 ? !1 : typeof I == "object" && !Array.isArray(I) ? Object.values(I).some((U) => U != null && U !== "") : !0;
13125
+ const x = t.modelValue;
13126
+ return x == null || x === "" || Array.isArray(x) && x.length === 0 ? !1 : typeof x == "object" && !Array.isArray(x) ? Object.values(x).some((U) => U != null && U !== "") : !0;
13121
13127
  }), S = B({}), $ = () => {
13122
13128
  if (!r.value || !o.value) return;
13123
- const I = r.value.getBoundingClientRect(), U = o.value.getBoundingClientRect();
13124
- let q = I.bottom + 4, K = I.left;
13125
- K + U.width > window.innerWidth && (K = window.innerWidth - U.width - 8), q + U.height > window.innerHeight && (q = I.top - U.height - 4), S.value = {
13129
+ const x = r.value.getBoundingClientRect(), U = o.value.getBoundingClientRect();
13130
+ let q = x.bottom + 4, K = x.left;
13131
+ K + U.width > window.innerWidth && (K = window.innerWidth - U.width - 8), q + U.height > window.innerHeight && (q = x.top - U.height - 4), S.value = {
13126
13132
  top: `${q}px`,
13127
13133
  left: `${K}px`
13128
13134
  };
@@ -13138,34 +13144,34 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13138
13144
  d.value = !1, Re(() => {
13139
13145
  c.value?.$el?.focus();
13140
13146
  });
13141
- }, V = (I) => {
13142
- if (I.key === "Escape") {
13147
+ }, V = (x) => {
13148
+ if (x.key === "Escape") {
13143
13149
  N();
13144
13150
  return;
13145
13151
  }
13146
- if (I.key !== "Tab" || !o.value) return;
13152
+ if (x.key !== "Tab" || !o.value) return;
13147
13153
  const U = o.value.querySelectorAll(
13148
13154
  'input, select, textarea, button, [tabindex]:not([tabindex="-1"])'
13149
13155
  );
13150
13156
  if (U.length === 0) return;
13151
13157
  const q = U[0], K = U[U.length - 1];
13152
- I.shiftKey && document.activeElement === q ? (I.preventDefault(), K.focus()) : !I.shiftKey && document.activeElement === K && (I.preventDefault(), q.focus());
13158
+ x.shiftKey && document.activeElement === q ? (x.preventDefault(), K.focus()) : !x.shiftKey && document.activeElement === K && (x.preventDefault(), q.focus());
13153
13159
  }, O = () => {
13154
- const I = {};
13160
+ const x = {};
13155
13161
  if (t.filterType === "dateRange" && t.rangeFields)
13156
- v.value && (I[t.rangeFields[0]] = v.value), b.value && (I[t.rangeFields[1]] = b.value);
13162
+ v.value && (x[t.rangeFields[0]] = v.value), b.value && (x[t.rangeFields[1]] = b.value);
13157
13163
  else {
13158
13164
  const U = u.value;
13159
- U != null && U !== "" && (Array.isArray(U) && U.length === 0 || (I[t.field] = U));
13165
+ U != null && U !== "" && (Array.isArray(U) && U.length === 0 || (x[t.field] = U));
13160
13166
  }
13161
- return I;
13162
- }, x = () => {
13167
+ return x;
13168
+ }, I = () => {
13163
13169
  l("apply", O()), N();
13164
13170
  }, P = () => {
13165
13171
  u.value = null, v.value = "", b.value = "", l("clear"), N();
13166
- }, R = (I) => {
13172
+ }, R = (x) => {
13167
13173
  if (!d.value) return;
13168
- const U = I.target;
13174
+ const U = x.target;
13169
13175
  r.value?.contains(U) || o.value?.contains(U) || U.closest(".vc-select__dropdown") || U.closest(".vc-select__option") || N();
13170
13176
  };
13171
13177
  let E = !1;
@@ -13174,13 +13180,13 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13174
13180
  }, k = () => {
13175
13181
  !E || typeof window > "u" || typeof document > "u" || (document.removeEventListener("click", R), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0), E = !1);
13176
13182
  };
13177
- return oe(d, (I) => {
13178
- I ? (p(), _(), Re(() => {
13183
+ return oe(d, (x) => {
13184
+ x ? (p(), _(), Re(() => {
13179
13185
  $();
13180
13186
  })) : k();
13181
13187
  }), We(() => {
13182
13188
  k();
13183
- }), (I, U) => (s(), g("div", {
13189
+ }), (x, U) => (s(), g("div", {
13184
13190
  ref_key: "filterRef",
13185
13191
  ref: r,
13186
13192
  class: "vc-column-filter"
@@ -13193,7 +13199,7 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13193
13199
  icon: "lucide-funnel",
13194
13200
  "icon-size": "xs",
13195
13201
  class: Q(["vc-column-filter__trigger", { "vc-column-filter__trigger--active": C.value }]),
13196
- "aria-label": I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TITLE"),
13202
+ "aria-label": x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TITLE"),
13197
13203
  "aria-expanded": d.value,
13198
13204
  "aria-haspopup": "dialog",
13199
13205
  onClick: A
@@ -13213,15 +13219,15 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13213
13219
  }, ["stop"])),
13214
13220
  onKeydown: V
13215
13221
  }, [
13216
- I.$slots.filter ? (s(), g("div", R0, [
13217
- z(I.$slots, "filter", {
13222
+ x.$slots.filter ? (s(), g("div", R0, [
13223
+ z(x.$slots, "filter", {
13218
13224
  value: u.value,
13219
13225
  updateValue: m,
13220
13226
  startDate: v.value,
13221
13227
  updateStartDate: h,
13222
13228
  endDate: b.value,
13223
13229
  updateEndDate: f,
13224
- applyFilter: x,
13230
+ applyFilter: I,
13225
13231
  clearFilter: P
13226
13232
  })
13227
13233
  ])) : (s(), g("div", T0, [
@@ -13234,7 +13240,7 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13234
13240
  size: "small",
13235
13241
  "onUpdate:modelValue": U[0] || (U[0] = (q) => m(q)),
13236
13242
  onKeydown: [
13237
- $e(x, ["enter"]),
13243
+ $e(I, ["enter"]),
13238
13244
  $e(N, ["escape"])
13239
13245
  ]
13240
13246
  }, null, 8, ["model-value", "placeholder"])
@@ -13253,7 +13259,7 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13253
13259
  }, null, 8, ["model-value", "options", "placeholder", "multiple"])
13254
13260
  ])) : e.filterType === "dateRange" ? (s(), g("div", M0, [
13255
13261
  w("div", L0, [
13256
- w("span", I0, F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
13262
+ w("span", x0, F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
13257
13263
  T(a(Fe), {
13258
13264
  "model-value": v.value,
13259
13265
  type: "date",
@@ -13261,8 +13267,8 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13261
13267
  "onUpdate:modelValue": U[2] || (U[2] = (q) => h(q))
13262
13268
  }, null, 8, ["model-value"])
13263
13269
  ]),
13264
- w("div", x0, [
13265
- w("span", N0, F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
13270
+ w("div", I0, [
13271
+ w("span", N0, F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
13266
13272
  T(a(Fe), {
13267
13273
  "model-value": b.value,
13268
13274
  type: "date",
@@ -13279,17 +13285,17 @@ const Xw = /* @__PURE__ */ Io(Kw, [["render", jw]]), Qw = { class: "vc-table-com
13279
13285
  onClick: P
13280
13286
  }, {
13281
13287
  default: M(() => [
13282
- de(F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
13288
+ de(F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
13283
13289
  ]),
13284
13290
  _: 1
13285
13291
  }),
13286
13292
  T(a(Ee), {
13287
13293
  variant: "primary",
13288
13294
  size: "sm",
13289
- onClick: x
13295
+ onClick: I
13290
13296
  }, {
13291
13297
  default: M(() => [
13292
- de(F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
13298
+ de(F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
13293
13299
  ]),
13294
13300
  _: 1
13295
13301
  })
@@ -13374,15 +13380,15 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13374
13380
  emits: ["update:modelValue", "update:show", "apply", "clear"],
13375
13381
  setup(e, { emit: n }) {
13376
13382
  const t = e, l = n, { isMobile: r } = De(), { getFilterType: o, getFilterOptions: i, isMultipleSelect: c, getRangeFields: d } = Oi(), u = y(() => {
13377
- const x = {};
13383
+ const I = {};
13378
13384
  for (const P of t.filters)
13379
- x[P.id] = o(P.filter);
13380
- return x;
13381
- }), v = (x) => u.value[x] || "none", b = B({}), p = () => {
13382
- const x = {};
13385
+ I[P.id] = o(P.filter);
13386
+ return I;
13387
+ }), v = (I) => u.value[I] || "none", b = B({}), p = () => {
13388
+ const I = {};
13383
13389
  for (const P of t.filters)
13384
- x[P.id] = t.modelValue[P.id] ?? null;
13385
- b.value = x;
13390
+ I[P.id] = t.modelValue[P.id] ?? null;
13391
+ b.value = I;
13386
13392
  };
13387
13393
  oe(
13388
13394
  () => t.modelValue,
@@ -13392,75 +13398,75 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13392
13398
  { deep: !0 }
13393
13399
  ), oe(
13394
13400
  () => t.show,
13395
- (x) => {
13396
- x && p();
13401
+ (I) => {
13402
+ I && p();
13397
13403
  }
13398
13404
  );
13399
- const m = (x, P) => {
13405
+ const m = (I, P) => {
13400
13406
  b.value = {
13401
13407
  ...b.value,
13402
- [x]: P
13408
+ [I]: P
13403
13409
  };
13404
- }, h = (x) => {
13405
- const P = b.value[x];
13410
+ }, h = (I) => {
13411
+ const P = b.value[I];
13406
13412
  return P && typeof P == "object" && "start" in P ? P.start ?? "" : "";
13407
- }, f = (x) => {
13408
- const P = b.value[x];
13413
+ }, f = (I) => {
13414
+ const P = b.value[I];
13409
13415
  return P && typeof P == "object" && "end" in P ? P.end ?? "" : "";
13410
- }, C = (x) => {
13411
- if (x == null) return;
13412
- if (x instanceof Date) {
13413
- if (Number.isNaN(x.getTime())) return;
13414
- const R = x.getFullYear(), E = String(x.getMonth() + 1).padStart(2, "0"), _ = String(x.getDate()).padStart(2, "0");
13416
+ }, C = (I) => {
13417
+ if (I == null) return;
13418
+ if (I instanceof Date) {
13419
+ if (Number.isNaN(I.getTime())) return;
13420
+ const R = I.getFullYear(), E = String(I.getMonth() + 1).padStart(2, "0"), _ = String(I.getDate()).padStart(2, "0");
13415
13421
  return `${R}-${E}-${_}`;
13416
13422
  }
13417
- const P = String(x);
13423
+ const P = String(I);
13418
13424
  return P === "" ? void 0 : P;
13419
- }, S = (x, P) => {
13420
- const R = b.value[x.id];
13425
+ }, S = (I, P) => {
13426
+ const R = b.value[I.id];
13421
13427
  b.value = {
13422
13428
  ...b.value,
13423
- [x.id]: {
13429
+ [I.id]: {
13424
13430
  start: C(P),
13425
13431
  end: R?.end
13426
13432
  }
13427
13433
  };
13428
- }, $ = (x, P) => {
13429
- const R = b.value[x.id];
13434
+ }, $ = (I, P) => {
13435
+ const R = b.value[I.id];
13430
13436
  b.value = {
13431
13437
  ...b.value,
13432
- [x.id]: {
13438
+ [I.id]: {
13433
13439
  start: R?.start,
13434
13440
  end: C(P)
13435
13441
  }
13436
13442
  };
13437
13443
  }, A = () => {
13438
- const x = {};
13444
+ const I = {};
13439
13445
  for (const P of t.filters) {
13440
13446
  const R = b.value[P.id];
13441
13447
  if (o(P.filter) === "dateRange") {
13442
13448
  const _ = d(P.filter), k = R;
13443
- _ && k && (k.start && (x[_[0]] = k.start), k.end && (x[_[1]] = k.end));
13449
+ _ && k && (k.start && (I[_[0]] = k.start), k.end && (I[_[1]] = k.end));
13444
13450
  } else if (R != null && R !== "") {
13445
13451
  if (Array.isArray(R) && R.length === 0)
13446
13452
  continue;
13447
13453
  const _ = typeof P.filter == "string" ? P.filter : P.id;
13448
- x[_] = R;
13454
+ I[_] = R;
13449
13455
  }
13450
13456
  }
13451
- return x;
13457
+ return I;
13452
13458
  }, N = () => {
13453
13459
  l("update:show", !1);
13454
13460
  }, V = () => {
13455
- const x = A();
13456
- l("update:modelValue", { ...b.value }), l("apply", x), N();
13461
+ const I = A();
13462
+ l("update:modelValue", { ...b.value }), l("apply", I), N();
13457
13463
  }, O = () => {
13458
- const x = {};
13464
+ const I = {};
13459
13465
  for (const P of t.filters)
13460
- x[P.id] = null;
13461
- b.value = x, l("update:modelValue", x), l("clear"), N();
13466
+ I[P.id] = null;
13467
+ b.value = I, l("update:modelValue", I), l("clear"), N();
13462
13468
  };
13463
- return (x, P) => a(r) ? (s(), D(a(Wt), {
13469
+ return (I, P) => a(r) ? (s(), D(a(Wt), {
13464
13470
  key: 1,
13465
13471
  "model-value": e.show,
13466
13472
  position: "bottom",
@@ -13469,7 +13475,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13469
13475
  "drag-handle": "",
13470
13476
  "close-button": !1,
13471
13477
  inset: !1,
13472
- title: x.$t("COMPONENTS.ORGANISMS.VC_TABLE.GLOBAL_FILTERS.TITLE"),
13478
+ title: I.$t("COMPONENTS.ORGANISMS.VC_TABLE.GLOBAL_FILTERS.TITLE"),
13473
13479
  "onUpdate:modelValue": P[1] || (P[1] = (R) => l("update:show", R))
13474
13480
  }, {
13475
13481
  footer: M(() => [
@@ -13480,7 +13486,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13480
13486
  onClick: O
13481
13487
  }, {
13482
13488
  default: M(() => [
13483
- de(F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
13489
+ de(F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
13484
13490
  ]),
13485
13491
  _: 1
13486
13492
  }),
@@ -13490,7 +13496,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13490
13496
  onClick: V
13491
13497
  }, {
13492
13498
  default: M(() => [
13493
- de(F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
13499
+ de(F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
13494
13500
  ]),
13495
13501
  _: 1
13496
13502
  })
@@ -13503,7 +13509,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13503
13509
  class: "vc-global-filters-panel__filter"
13504
13510
  }, [
13505
13511
  w("label", Y0, F(R.label), 1),
13506
- x.$slots[`filter-${R.id}`] ? z(x.$slots, `filter-${R.id}`, {
13512
+ I.$slots[`filter-${R.id}`] ? z(I.$slots, `filter-${R.id}`, {
13507
13513
  key: 0,
13508
13514
  value: b.value[R.id],
13509
13515
  updateValue: (E) => m(R.id, E)
@@ -13527,7 +13533,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13527
13533
  "onUpdate:modelValue": (E) => m(R.id, E)
13528
13534
  }, null, 8, ["model-value", "options", "placeholder", "multiple", "onUpdate:modelValue"])) : v(R.id) === "dateRange" ? (s(), g("div", j0, [
13529
13535
  w("div", X0, [
13530
- w("span", Q0, F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
13536
+ w("span", Q0, F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
13531
13537
  T(a(Fe), {
13532
13538
  "model-value": h(R.id),
13533
13539
  type: "date",
@@ -13536,7 +13542,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13536
13542
  }, null, 8, ["model-value", "onUpdate:modelValue"])
13537
13543
  ]),
13538
13544
  w("div", J0, [
13539
- w("span", Z0, F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
13545
+ w("span", Z0, F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
13540
13546
  T(a(Fe), {
13541
13547
  "model-value": f(R.id),
13542
13548
  type: "date",
@@ -13553,7 +13559,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13553
13559
  key: 0,
13554
13560
  show: e.show,
13555
13561
  "anchor-ref": e.anchorRef,
13556
- title: x.$t("COMPONENTS.ORGANISMS.VC_TABLE.GLOBAL_FILTERS.TITLE"),
13562
+ title: I.$t("COMPONENTS.ORGANISMS.VC_TABLE.GLOBAL_FILTERS.TITLE"),
13557
13563
  width: "280px",
13558
13564
  "max-width": "400px",
13559
13565
  "onUpdate:show": P[0] || (P[0] = (R) => l("update:show", R))
@@ -13565,7 +13571,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13565
13571
  onClick: O
13566
13572
  }, {
13567
13573
  default: M(() => [
13568
- de(F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
13574
+ de(F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
13569
13575
  ]),
13570
13576
  _: 1
13571
13577
  }),
@@ -13575,7 +13581,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13575
13581
  onClick: V
13576
13582
  }, {
13577
13583
  default: M(() => [
13578
- de(F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
13584
+ de(F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
13579
13585
  ]),
13580
13586
  _: 1
13581
13587
  })
@@ -13587,7 +13593,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13587
13593
  class: "vc-global-filters-panel__filter"
13588
13594
  }, [
13589
13595
  w("label", U0, F(R.label), 1),
13590
- x.$slots[`filter-${R.id}`] ? z(x.$slots, `filter-${R.id}`, {
13596
+ I.$slots[`filter-${R.id}`] ? z(I.$slots, `filter-${R.id}`, {
13591
13597
  key: 0,
13592
13598
  value: b.value[R.id],
13593
13599
  updateValue: (E) => m(R.id, E)
@@ -13611,7 +13617,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13611
13617
  "onUpdate:modelValue": (E) => m(R.id, E)
13612
13618
  }, null, 8, ["model-value", "options", "placeholder", "multiple", "onUpdate:modelValue"])) : v(R.id) === "dateRange" ? (s(), g("div", z0, [
13613
13619
  w("div", H0, [
13614
- w("span", W0, F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
13620
+ w("span", W0, F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
13615
13621
  T(a(Fe), {
13616
13622
  "model-value": h(R.id),
13617
13623
  type: "date",
@@ -13620,7 +13626,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13620
13626
  }, null, 8, ["model-value", "onUpdate:modelValue"])
13621
13627
  ]),
13622
13628
  w("div", G0, [
13623
- w("span", q0, F(x.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
13629
+ w("span", q0, F(I.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
13624
13630
  T(a(Fe), {
13625
13631
  "model-value": f(R.id),
13626
13632
  type: "date",
@@ -13686,7 +13692,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13686
13692
  rules: e.rules
13687
13693
  }, {
13688
13694
  default: M(({ errors: o, errorMessage: i }) => [
13689
- T(st, { placement: "bottom" }, xe({
13695
+ T(st, { placement: "bottom" }, Ie({
13690
13696
  default: M(() => [
13691
13697
  z(l.$slots, "default", {
13692
13698
  errors: o,
@@ -13743,7 +13749,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13743
13749
  "error-message": a(r) ? v : void 0,
13744
13750
  "onUpdate:modelValue": d[0] || (d[0] = (b) => c.$emit("update", { field: e.fieldId || "", value: b })),
13745
13751
  onBlur: (b) => i(u)
13746
- }, xe({ _: 2 }, [
13752
+ }, Ie({ _: 2 }, [
13747
13753
  a(o) && u.length > 0 ? {
13748
13754
  name: "append-inner",
13749
13755
  fn: M(() => [
@@ -13808,7 +13814,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13808
13814
  "error-message": a(i) ? h : void 0,
13809
13815
  "onUpdate:modelValue": p[0] || (p[0] = (f) => b.$emit("update", { field: e.fieldId || "", value: f })),
13810
13816
  onBlur: (f) => v(m)
13811
- }, xe({ _: 2 }, [
13817
+ }, Ie({ _: 2 }, [
13812
13818
  a(c) && m.length > 0 ? {
13813
13819
  name: "append-inner",
13814
13820
  fn: M(() => [
@@ -13871,7 +13877,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
13871
13877
  "error-message": a(o) ? m : void 0,
13872
13878
  "onUpdate:modelValue": b[0] || (b[0] = (h) => v.$emit("update", { field: e.fieldId || "", value: h })),
13873
13879
  onBlur: (h) => u(p)
13874
- }, xe({ _: 2 }, [
13880
+ }, Ie({ _: 2 }, [
13875
13881
  a(i) && p.length > 0 ? {
13876
13882
  name: "append-inner",
13877
13883
  fn: M(() => [
@@ -14060,7 +14066,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14060
14066
  },
14061
14067
  emits: ["update", "blur"],
14062
14068
  setup(e) {
14063
- const { register: n, has: t, get: l } = Is();
14069
+ const { register: n, has: t, get: l } = xs();
14064
14070
  t("text") || n({ type: "text", component: ao, config: { editable: !0 } }), t("number") || n({ type: "number", component: d1, config: { editable: !0 } }), t("money") || n({ type: "money", component: r1, config: { editable: !0 } }), t("date") || n({ type: "date", component: Mn, config: { editable: !1 } }), t("time") || n({ type: "time", component: Mn, config: { editable: !1 } }), t("datetime") || n({ type: "datetime", component: Mn, config: { editable: !1 } }), t("date-ago") || n({ type: "date-ago", component: g1, config: { editable: !1 } }), t("image") || n({ type: "image", component: b1, config: { editable: !1 } }), t("status") || n({ type: "status", component: h1, config: { editable: !1 } }), t("status-icon") || n({ type: "status-icon", component: w1, config: { editable: !1 } }), t("link") || n({ type: "link", component: C1, config: { editable: !1 } }), t("html") || n({ type: "html", component: E1, config: { editable: !1 } });
14065
14071
  const r = e, o = y(() => l(r.type)?.component || ao), i = y(() => {
14066
14072
  const d = l(r.type)?.config?.editable ?? !1, u = {
@@ -14239,7 +14245,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14239
14245
  }), A1 = { class: "vc-data-table__row-wrapper" }, O1 = { class: "vc-data-table__group-label" }, M1 = { class: "vc-data-table__group-count" }, L1 = {
14240
14246
  key: 2,
14241
14247
  class: "vc-data-table__expansion-row"
14242
- }, I1 = { class: "vc-data-table__expansion-content" }, x1 = {
14248
+ }, x1 = { class: "vc-data-table__expansion-content" }, I1 = {
14243
14249
  key: 3,
14244
14250
  class: "vc-data-table__group-footer"
14245
14251
  }, N1 = /* @__PURE__ */ Y({
@@ -14345,7 +14351,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14345
14351
  onSpacePress: o,
14346
14352
  onMouseenter: i,
14347
14353
  onMouseleave: c
14348
- }, xe({
14354
+ }, Ie({
14349
14355
  default: M(() => [
14350
14356
  e.showSelectionCell ? (s(), D(Vl, {
14351
14357
  key: 0,
@@ -14420,11 +14426,11 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14420
14426
  } : void 0
14421
14427
  ]), 1032, ["selected", "active", "reorderable", "show-drag-handle", "index", "actions-position", "class"])) : L("", !0),
14422
14428
  e.expandable && e.isExpanded && (!e.groupingEnabled || !e.expandableRowGroups || e.isGroupRowExpanded) ? (s(), g("div", L1, [
14423
- w("div", I1, [
14429
+ w("div", x1, [
14424
14430
  z(A.$slots, "expansion")
14425
14431
  ])
14426
14432
  ])) : L("", !0),
14427
- e.groupingEnabled && e.isLastInGroup && A.$slots.groupfooter && (!e.expandableRowGroups || e.isGroupRowExpanded) ? (s(), g("div", x1, [
14433
+ e.groupingEnabled && e.isLastInGroup && A.$slots.groupfooter && (!e.expandableRowGroups || e.isGroupRowExpanded) ? (s(), g("div", I1, [
14428
14434
  z(A.$slots, "groupfooter", {
14429
14435
  data: e.item,
14430
14436
  index: e.index
@@ -14542,11 +14548,11 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14542
14548
  for (const k of l.groupedData)
14543
14549
  _.set(k.key, k.count);
14544
14550
  return _;
14545
- }), d = (_) => l.getItemGroupKey?.(_) ?? "", u = (_) => _ === 0 || d(i.value[_]) !== d(i.value[_ - 1]), v = (_) => _ === i.value.length - 1 || d(i.value[_]) !== d(i.value[_ + 1]), b = (_, k) => l.groupingEnabled ? l.getGlobalIndex(_) : k, p = (_, k) => r("group-toggle", _, k), m = (_, k, I) => r("row-click", _, k, I), h = (_) => r("row-mouseenter", _), f = () => r("row-mouseleave"), C = (_) => r("selection-change", _), S = (_, k, I) => r("expand-toggle", _, k, I), $ = (_, k) => r("row-edit", _, k), A = (_, k) => r("row-save", _, k), N = (_, k) => r("row-cancel", _, k), V = (_, k, I, U) => r("edit-complete", _, k, I, U), O = (_, k, I) => r("edit-cancel", _, k, I), x = (_, k, I) => r("cell-value-change", _, k, I), P = (_, k, I, U) => r("cell-click", _, k, I, U), R = B(null), E = y(() => R.value?.$el ?? void 0);
14551
+ }), d = (_) => l.getItemGroupKey?.(_) ?? "", u = (_) => _ === 0 || d(i.value[_]) !== d(i.value[_ - 1]), v = (_) => _ === i.value.length - 1 || d(i.value[_]) !== d(i.value[_ + 1]), b = (_, k) => l.groupingEnabled ? l.getGlobalIndex(_) : k, p = (_, k) => r("group-toggle", _, k), m = (_, k, x) => r("row-click", _, k, x), h = (_) => r("row-mouseenter", _), f = () => r("row-mouseleave"), C = (_) => r("selection-change", _), S = (_, k, x) => r("expand-toggle", _, k, x), $ = (_, k) => r("row-edit", _, k), A = (_, k) => r("row-save", _, k), N = (_, k) => r("row-cancel", _, k), V = (_, k, x, U) => r("edit-complete", _, k, x, U), O = (_, k, x) => r("edit-cancel", _, k, x), I = (_, k, x) => r("cell-value-change", _, k, x), P = (_, k, x, U) => r("cell-click", _, k, x, U), R = B(null), E = y(() => R.value?.$el ?? void 0);
14546
14552
  return n({ listEl: E }), (_, k) => (s(), g("div", {
14547
14553
  class: "vc-data-table__body",
14548
14554
  role: e.items.length ? "rowgroup" : "presentation",
14549
- onScroll: k[0] || (k[0] = (I) => _.$emit("scroll", I))
14555
+ onScroll: k[0] || (k[0] = (x) => _.$emit("scroll", x))
14550
14556
  }, [
14551
14557
  e.items.length === 0 && !e.loading ? (s(), g("div", V1, [
14552
14558
  w("div", F1, [
@@ -14578,41 +14584,41 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14578
14584
  class: "vc-data-table__rows-container"
14579
14585
  }, {
14580
14586
  default: M(() => [
14581
- (s(!0), g(J, null, ve(i.value, (I, U) => (s(), D(N1, Le({
14582
- key: e.getItemKey(I, U)
14583
- }, { ref_for: !0 }, e.getRowProps(I, b(I, U)), {
14584
- "is-new-row": e.newRowIndices?.has(b(I, U)),
14587
+ (s(!0), g(J, null, ve(i.value, (x, U) => (s(), D(N1, Le({
14588
+ key: e.getItemKey(x, U)
14589
+ }, { ref_for: !0 }, e.getRowProps(x, b(x, U)), {
14590
+ "is-new-row": e.newRowIndices?.has(b(x, U)),
14585
14591
  "grouping-enabled": e.groupingEnabled,
14586
- "group-key": e.groupingEnabled ? d(I) : void 0,
14592
+ "group-key": e.groupingEnabled ? d(x) : void 0,
14587
14593
  "is-first-in-group": e.groupingEnabled ? u(U) : !1,
14588
14594
  "is-last-in-group": e.groupingEnabled ? v(U) : !1,
14589
- "group-count": e.groupingEnabled && u(U) ? c.value?.get(d(I)) ?? 0 : 0,
14595
+ "group-count": e.groupingEnabled && u(U) ? c.value?.get(d(x)) ?? 0 : 0,
14590
14596
  "expandable-row-groups": e.expandableRowGroups,
14591
- "is-group-row-expanded": e.groupingEnabled ? e.isGroupExpanded(d(I)) : !0,
14592
- onClick: (q) => m(I, b(I, U), q),
14597
+ "is-group-row-expanded": e.groupingEnabled ? e.isGroupExpanded(d(x)) : !0,
14598
+ onClick: (q) => m(x, b(x, U), q),
14593
14599
  onMouseenter: h,
14594
14600
  onMouseleave: f,
14595
- onSelectionChange: () => C(I),
14596
- onExpandToggle: (q) => S(I, b(I, U), q),
14597
- onRowEdit: () => $(I, b(I, U)),
14598
- onRowSave: () => A(I, b(I, U)),
14599
- onRowCancel: () => N(I, b(I, U)),
14600
- onEditComplete: (q, K) => V(I, q, b(I, U), K),
14601
- onEditCancel: (q) => O(I, q, b(I, U)),
14602
- onCellValueChange: (q, K) => x(q, b(I, U), K),
14603
- onCellClick: (q) => P(I, q.props.field || q.props.id, b(I, U), q),
14604
- onGroupToggle: (q) => p(d(I), q)
14601
+ onSelectionChange: () => C(x),
14602
+ onExpandToggle: (q) => S(x, b(x, U), q),
14603
+ onRowEdit: () => $(x, b(x, U)),
14604
+ onRowSave: () => A(x, b(x, U)),
14605
+ onRowCancel: () => N(x, b(x, U)),
14606
+ onEditComplete: (q, K) => V(x, q, b(x, U), K),
14607
+ onEditCancel: (q) => O(x, q, b(x, U)),
14608
+ onCellValueChange: (q, K) => I(q, b(x, U), K),
14609
+ onCellClick: (q) => P(x, q.props.field || q.props.id, b(x, U), q),
14610
+ onGroupToggle: (q) => p(d(x), q)
14605
14611
  }), {
14606
14612
  actions: M(() => [
14607
14613
  z(_.$slots, "row-actions", {
14608
- item: I,
14609
- index: b(I, U)
14614
+ item: x,
14615
+ index: b(x, U)
14610
14616
  })
14611
14617
  ]),
14612
14618
  expansion: M(() => [
14613
14619
  z(_.$slots, "expansion", {
14614
- data: I,
14615
- index: b(I, U)
14620
+ data: x,
14621
+ index: b(x, U)
14616
14622
  })
14617
14623
  ]),
14618
14624
  groupheader: M((q) => [
@@ -14731,7 +14737,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14731
14737
  variant: "header",
14732
14738
  "show-drag-handle": e.showDragHandle,
14733
14739
  "actions-position": e.actionsPosition
14734
- }, xe({
14740
+ }, Ie({
14735
14741
  default: M(() => [
14736
14742
  e.showSelectionCell ? (s(), D(lo, {
14737
14743
  key: 0,
@@ -14798,7 +14804,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14798
14804
  "model-value": e.getFilterValue(f),
14799
14805
  onApply: (C) => b(f, C),
14800
14806
  onClear: (C) => p(f)
14801
- }, xe({ _: 2 }, [
14807
+ }, Ie({ _: 2 }, [
14802
14808
  f.slots.filter ? {
14803
14809
  name: "filter",
14804
14810
  fn: M(({
@@ -14809,7 +14815,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14809
14815
  endDate: N,
14810
14816
  updateEndDate: V,
14811
14817
  applyFilter: O,
14812
- clearFilter: x
14818
+ clearFilter: I
14813
14819
  }) => [
14814
14820
  T(a(ol), {
14815
14821
  "slot-fn": f.slots.filter,
@@ -14822,7 +14828,7 @@ const F0 = { class: "vc-global-filters-panel__content" }, U0 = { class: "vc-glob
14822
14828
  endDate: N,
14823
14829
  updateEndDate: V,
14824
14830
  applyFilter: O,
14825
- clearFilter: x
14831
+ clearFilter: I
14826
14832
  }
14827
14833
  }, null, 8, ["slot-fn", "scope"])
14828
14834
  ]),
@@ -15061,7 +15067,7 @@ const tC = {
15061
15067
  function b() {
15062
15068
  u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
15063
15069
  }
15064
- const p = B(0), m = B(0), h = B(!1), f = B(!1), C = B(null), S = B(0), $ = B(0), A = B(0), N = B(0), V = B(0), O = B(0), x = B(null), { activeSwipeId: P, setActiveSwipe: R } = eC(), E = y(() => t.item[t.dataKey] ?? `item-${t.index}`), _ = y(() => t.anySelected && t.selectionMode !== void 0), k = y(() => t.anySelected ? [] : t.actions ?? []), I = y(() => k.value.length > 2), U = y(() => k.value.slice(0, 2)), q = y(() => t.actions ?? []), K = y(() => {
15070
+ const p = B(0), m = B(0), h = B(!1), f = B(!1), C = B(null), S = B(0), $ = B(0), A = B(0), N = B(0), V = B(0), O = B(0), I = B(null), { activeSwipeId: P, setActiveSwipe: R } = eC(), E = y(() => t.item[t.dataKey] ?? `item-${t.index}`), _ = y(() => t.anySelected && t.selectionMode !== void 0), k = y(() => t.anySelected ? [] : t.actions ?? []), x = y(() => k.value.length > 2), U = y(() => k.value.slice(0, 2)), q = y(() => t.actions ?? []), K = y(() => {
15065
15071
  const re = k.value.length;
15066
15072
  return Math.min(re, re > 2 ? 3 : 2) * 70;
15067
15073
  });
@@ -15082,19 +15088,19 @@ const tC = {
15082
15088
  function me(re) {
15083
15089
  if (h.value || k.value.length === 0) return;
15084
15090
  const se = re.touches[0];
15085
- S.value = se.clientX, $.value = se.clientY, A.value = p.value, N.value = 0, V.value = Date.now(), O.value = se.clientX, x.value = null, R(String(E.value));
15091
+ S.value = se.clientX, $.value = se.clientY, A.value = p.value, N.value = 0, V.value = Date.now(), O.value = se.clientX, I.value = null, R(String(E.value));
15086
15092
  }
15087
15093
  function j(re) {
15088
15094
  if (h.value || k.value.length === 0 || P.value !== String(E.value)) return;
15089
15095
  const se = re.touches[0], ee = se.clientX, fe = ee - S.value, ie = se.clientY - $.value;
15090
- if (x.value === null) {
15096
+ if (I.value === null) {
15091
15097
  const He = Math.abs(fe), nt = Math.abs(ie);
15092
15098
  if (He >= oo || nt >= oo)
15093
- x.value = He > nt ? "horizontal" : "vertical";
15099
+ I.value = He > nt ? "horizontal" : "vertical";
15094
15100
  else
15095
15101
  return;
15096
15102
  }
15097
- if (x.value === "vertical")
15103
+ if (I.value === "vertical")
15098
15104
  return;
15099
15105
  re.preventDefault();
15100
15106
  const ye = Date.now(), Se = ye - V.value;
@@ -15107,8 +15113,8 @@ const tC = {
15107
15113
  Te > 0 && (Te = 0), p.value = Te, m.value = Math.abs(Te);
15108
15114
  }
15109
15115
  function G() {
15110
- const re = x.value === "vertical" || x.value === null;
15111
- if (x.value = null, re || h.value || k.value.length === 0 || P.value !== String(E.value)) return;
15116
+ const re = I.value === "vertical" || I.value === null;
15117
+ if (I.value = null, re || h.value || k.value.length === 0 || P.value !== String(E.value)) return;
15112
15118
  const se = Math.abs(N.value), ee = N.value < 0 ? -1 : 1;
15113
15119
  if (se > 0.5)
15114
15120
  ee < 0 ? te(-K.value) : te(0);
@@ -15328,7 +15334,7 @@ const tC = {
15328
15334
  onTouchstart: se[7] || (se[7] = ue(() => {
15329
15335
  }, ["stop"]))
15330
15336
  }, [
15331
- I.value ? (s(), g("button", {
15337
+ x.value ? (s(), g("button", {
15332
15338
  key: 0,
15333
15339
  class: "vc-data-table-mobile-card__action vc-data-table-mobile-card__action--more",
15334
15340
  onClick: ue(H, ["stop"])
@@ -15364,7 +15370,7 @@ const tC = {
15364
15370
  [a(dl), ae]
15365
15371
  ]);
15366
15372
  }
15367
- }), nl = ["top-left", "top-right", "bottom-left", "bottom-right"], Ii = 4, mC = /* @__PURE__ */ new Set(["status", "status-icon"]), pC = /* @__PURE__ */ new Set(["text", "link", "html"]);
15373
+ }), nl = ["top-left", "top-right", "bottom-left", "bottom-right"], xi = 4, mC = /* @__PURE__ */ new Set(["status", "status-icon"]), pC = /* @__PURE__ */ new Set(["text", "link", "html"]);
15368
15374
  function gC(e, n) {
15369
15375
  switch (e) {
15370
15376
  case "image":
@@ -15406,7 +15412,7 @@ function hC(e) {
15406
15412
  i && n.push(Rl(i, "top-left", !0)), l && n.push(Rl(l, "image"));
15407
15413
  for (const d of r)
15408
15414
  n.push(Rl(d, "status"));
15409
- const c = o.filter((d) => d !== i).slice(0, Ii);
15415
+ const c = o.filter((d) => d !== i).slice(0, xi);
15410
15416
  for (let d = 0; d < c.length; d++)
15411
15417
  n.push(Rl(c[d], nl[d]));
15412
15418
  return n;
@@ -15466,7 +15472,7 @@ function yC(e) {
15466
15472
  position: h[f]
15467
15473
  });
15468
15474
  }
15469
- return o.fields = m.slice(0, Ii), o.fields.sort((f, C) => {
15475
+ return o.fields = m.slice(0, xi), o.fields.sort((f, C) => {
15470
15476
  const S = nl.indexOf(f.position), $ = nl.indexOf(C.position);
15471
15477
  return S - $;
15472
15478
  }), o;
@@ -15496,7 +15502,7 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15496
15502
  })), O = y(() => ({
15497
15503
  transform: `translateY(${d.value}px)`
15498
15504
  }));
15499
- function x() {
15505
+ function I() {
15500
15506
  if (!c.value) return !0;
15501
15507
  let k = c.value;
15502
15508
  for (; k; ) {
@@ -15506,13 +15512,13 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15506
15512
  }
15507
15513
  return !0;
15508
15514
  }
15509
- function P(k, I = 300) {
15515
+ function P(k, x = 300) {
15510
15516
  p.value !== null && cancelAnimationFrame(p.value);
15511
15517
  const U = d.value, q = performance.now();
15512
15518
  let K = h.value, te = U;
15513
15519
  b.value = !0;
15514
15520
  function me(j) {
15515
- if (j - q < I) {
15521
+ if (j - q < x) {
15516
15522
  const ae = (k - te) * _C, Z = K * kC, W = (ae - Z) / EC;
15517
15523
  K += W, te += K, d.value = Math.max(0, te), p.value = requestAnimationFrame(me);
15518
15524
  } else
@@ -15521,9 +15527,9 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15521
15527
  p.value = requestAnimationFrame(me);
15522
15528
  }
15523
15529
  function R(k) {
15524
- if (!S.value || b.value || !x()) return;
15525
- const I = k.touches[0];
15526
- m.value = I.clientY, h.value = 0, f.value = Date.now(), C.value = I.clientY, u.value = !0;
15530
+ if (!S.value || b.value || !I()) return;
15531
+ const x = k.touches[0];
15532
+ m.value = x.clientY, h.value = 0, f.value = Date.now(), C.value = x.clientY, u.value = !0;
15527
15533
  }
15528
15534
  function E(k) {
15529
15535
  if (!S.value || !u.value || b.value) return;
@@ -15544,8 +15550,8 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15544
15550
  }
15545
15551
  return oe(
15546
15552
  () => l.refreshing,
15547
- (k, I) => {
15548
- I && !k && P(0);
15553
+ (k, x) => {
15554
+ x && !k && P(0);
15549
15555
  }
15550
15556
  ), Ot(() => {
15551
15557
  p.value !== null && cancelAnimationFrame(p.value);
@@ -15553,7 +15559,7 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15553
15559
  pullDistance: d,
15554
15560
  canRelease: v,
15555
15561
  isPulling: u
15556
- }), (k, I) => (s(), g("div", {
15562
+ }), (k, x) => (s(), g("div", {
15557
15563
  ref_key: "containerRef",
15558
15564
  ref: c,
15559
15565
  class: "vc-pull-to-refresh",
@@ -15635,8 +15641,8 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15635
15641
  icon: V.icon || "lucide-ellipsis",
15636
15642
  type: m(V.variant),
15637
15643
  disabled: V.disabled,
15638
- clickHandler: (O, x) => {
15639
- V.clickHandler?.(O, x);
15644
+ clickHandler: (O, I) => {
15645
+ V.clickHandler?.(O, I);
15640
15646
  }
15641
15647
  })) : [];
15642
15648
  }
@@ -15727,9 +15733,9 @@ const wC = { class: "vc-pull-to-refresh__indicator-content" }, CC = { class: "vc
15727
15733
  onClick: h,
15728
15734
  onSelect: f,
15729
15735
  onAction: C,
15730
- onCellValueChange: (x, P) => r("cell-value-change", x, O, P),
15731
- onExpandToggle: (x, P, R) => r("expand-toggle", x, P, R)
15732
- }, xe({ _: 2 }, [
15736
+ onCellValueChange: (I, P) => r("cell-value-change", I, O, P),
15737
+ onExpandToggle: (I, P, R) => r("expand-toggle", I, P, R)
15738
+ }, Ie({ _: 2 }, [
15733
15739
  A.$slots.expansion ? {
15734
15740
  name: "expansion",
15735
15741
  fn: M(() => [
@@ -15761,7 +15767,7 @@ function MC(e) {
15761
15767
  }
15762
15768
  const r = t.map((c) => c.spec.weight * n), o = t.map((c, d) => Math.max(c.spec.minPx, Math.min(r[d], c.spec.maxPx)));
15763
15769
  let i = n - o.reduce((c, d) => c + d, 0);
15764
- return l === "gap" && i >= 0 ? io(t, o, i, n) : (i > 0 && (LC(t, o, i), i = n - o.reduce((c, d) => c + d, 0)), i < 0 && (IC(t, o, i), i = n - o.reduce((c, d) => c + d, 0)), i < -0.5 && (xC(t, o, n), i = 0), io(t, o, 0, n));
15770
+ return l === "gap" && i >= 0 ? io(t, o, i, n) : (i > 0 && (LC(t, o, i), i = n - o.reduce((c, d) => c + d, 0)), i < 0 && (xC(t, o, i), i = n - o.reduce((c, d) => c + d, 0)), i < -0.5 && (IC(t, o, n), i = 0), io(t, o, 0, n));
15765
15771
  }
15766
15772
  function LC(e, n, t) {
15767
15773
  let l = t;
@@ -15790,7 +15796,7 @@ function LC(e, n, t) {
15790
15796
  l -= u;
15791
15797
  }
15792
15798
  }
15793
- function IC(e, n, t) {
15799
+ function xC(e, n, t) {
15794
15800
  let l = Math.abs(t);
15795
15801
  const r = e.length;
15796
15802
  for (let o = 0; o < r && l > 0.5; o++) {
@@ -15809,7 +15815,7 @@ function IC(e, n, t) {
15809
15815
  l -= d;
15810
15816
  }
15811
15817
  }
15812
- function xC(e, n, t) {
15818
+ function IC(e, n, t) {
15813
15819
  console.warn(
15814
15820
  `[VcDataTable] Column width crisis: sum(minPx)=${e.reduce((r, o) => r + o.spec.minPx, 0)}px > availableWidth=${t}px. Columns will be squeezed below their minimum widths.`
15815
15821
  );
@@ -15879,7 +15885,7 @@ function BC(e, n) {
15879
15885
  d[u] = c > 0 ? r[u] / c : 1 / e.length;
15880
15886
  return d;
15881
15887
  }
15882
- function In(e, n) {
15888
+ function xn(e, n) {
15883
15889
  const t = n.reduce((l, r) => l + (e[r]?.weight ?? 0), 0);
15884
15890
  if (t <= 0) {
15885
15891
  const l = 1 / n.length;
@@ -15922,7 +15928,7 @@ function DC(e) {
15922
15928
  }, N = () => {
15923
15929
  v.value = !1, h = "", m = {}, f = [];
15924
15930
  }, V = (q, K) => {
15925
- $(q) && (b = K.pageX, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", x), document.addEventListener("mouseup", P));
15931
+ $(q) && (b = K.pageX, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", I), document.addEventListener("mouseup", P));
15926
15932
  }, O = (q) => {
15927
15933
  const K = r();
15928
15934
  if (K <= 0) return;
@@ -15961,14 +15967,14 @@ function DC(e) {
15961
15967
  for (const se of re)
15962
15968
  ne[se] && H[se] !== void 0 && (ne[se].weight = H[se] / K);
15963
15969
  n.value = { ...n.value, specs: ne }, l();
15964
- }, x = (q) => {
15970
+ }, I = (q) => {
15965
15971
  if (!v.value || !h) return;
15966
15972
  const K = q.pageX - b;
15967
15973
  p && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
15968
15974
  A(K), p = 0;
15969
15975
  });
15970
15976
  }, P = () => {
15971
- v.value && (p && (cancelAnimationFrame(p), p = 0), N(), document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", P), d?.());
15977
+ v.value && (p && (cancelAnimationFrame(p), p = 0), N(), document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", P), d?.());
15972
15978
  }, R = (q, K) => ({
15973
15979
  resizable: !0,
15974
15980
  columnId: q,
@@ -15978,7 +15984,7 @@ function DC(e) {
15978
15984
  }
15979
15985
  });
15980
15986
  let E = null, _ = !1, k = 0;
15981
- const I = () => {
15987
+ const x = () => {
15982
15988
  k || (k = requestAnimationFrame(() => {
15983
15989
  k = 0, v.value || l();
15984
15990
  }));
@@ -15989,7 +15995,7 @@ function DC(e) {
15989
15995
  _ = !0, l();
15990
15996
  return;
15991
15997
  }
15992
- I();
15998
+ x();
15993
15999
  }
15994
16000
  }), E.observe(u.value));
15995
16001
  };
@@ -16000,7 +16006,7 @@ function DC(e) {
16000
16006
  },
16001
16007
  { immediate: !0 }
16002
16008
  ), We(() => {
16003
- k && cancelAnimationFrame(k), E?.disconnect(), v.value && (p && cancelAnimationFrame(p), document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", P), document.body.style.cursor = "", document.body.style.userSelect = "", v.value = !1);
16009
+ k && cancelAnimationFrame(k), E?.disconnect(), v.value && (p && cancelAnimationFrame(p), document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", P), document.body.style.cursor = "", document.body.style.userSelect = "", v.value = !1);
16004
16010
  }), {
16005
16011
  isResizing: v,
16006
16012
  handleResizeStart: V,
@@ -16030,8 +16036,8 @@ function PC(e) {
16030
16036
  if (!h) return;
16031
16037
  const f = h.getAttribute("data-column-id");
16032
16038
  if (!f || f === r) return;
16033
- const C = h.getBoundingClientRect(), S = C.left + C.width / 2, $ = p.clientX, A = n.value.order, N = A.indexOf(r), V = A.indexOf(f), O = N > V, x = N < V;
16034
- if ((O && $ < S || x && $ > S) && N !== -1 && V !== -1 && N !== V) {
16039
+ const C = h.getBoundingClientRect(), S = C.left + C.width / 2, $ = p.clientX, A = n.value.order, N = A.indexOf(r), V = A.indexOf(f), O = N > V, I = N < V;
16040
+ if ((O && $ < S || I && $ > S) && N !== -1 && V !== -1 && N !== V) {
16035
16041
  const R = [...A], [E] = R.splice(N, 1);
16036
16042
  R.splice(V, 0, E), n.value = { ...n.value, order: R };
16037
16043
  }
@@ -16117,7 +16123,7 @@ function VC(e, n, t) {
16117
16123
  pendingReorder: o
16118
16124
  };
16119
16125
  }
16120
- function xn(e) {
16126
+ function In(e) {
16121
16127
  try {
16122
16128
  return structuredClone(yo(e));
16123
16129
  } catch {
@@ -16138,13 +16144,13 @@ function FC(e) {
16138
16144
  te.delete(K), S.value = te;
16139
16145
  }
16140
16146
  }, A = (K, te) => `${K}:${te}`, N = () => {
16141
- c = n.value.map((K) => xn(K)), f(), C.value = /* @__PURE__ */ new Map(), i.value = !0;
16147
+ c = n.value.map((K) => In(K)), f(), C.value = /* @__PURE__ */ new Map(), i.value = !0;
16142
16148
  }, V = () => {
16143
- n.value.splice(0, n.value.length, ...c.map((K) => xn(K))), f(), C.value = /* @__PURE__ */ new Map(), i.value = !1, o?.();
16149
+ n.value.splice(0, n.value.length, ...c.map((K) => In(K))), f(), C.value = /* @__PURE__ */ new Map(), i.value = !1, o?.();
16144
16150
  }, O = async () => {
16145
16151
  const { valid: K } = await h();
16146
- K && (r && await r(_.value), c = n.value.map((te) => xn(te)), f(), C.value = /* @__PURE__ */ new Map(), i.value = !1);
16147
- }, x = (K, te, me) => {
16152
+ K && (r && await r(_.value), c = n.value.map((te) => In(te)), f(), C.value = /* @__PURE__ */ new Map(), i.value = !1);
16153
+ }, I = (K, te, me) => {
16148
16154
  if (K < 0 || K >= n.value.length) return;
16149
16155
  const j = A(K, te), G = n.value[K];
16150
16156
  G[te] = me;
@@ -16172,7 +16178,7 @@ function FC(e) {
16172
16178
  startEditing: N,
16173
16179
  cancelEditing: V,
16174
16180
  saveChanges: O,
16175
- updateCell: x,
16181
+ updateCell: I,
16176
16182
  getCellValue: P,
16177
16183
  isCellDirty: R,
16178
16184
  isDirty: k,
@@ -16209,7 +16215,7 @@ function FC(e) {
16209
16215
  rowIndex: K,
16210
16216
  rules: me,
16211
16217
  onUpdate: (j) => {
16212
- x(K, j.field, j.value);
16218
+ I(K, j.field, j.value);
16213
16219
  },
16214
16220
  onBlur: (j) => {
16215
16221
  }
@@ -16234,8 +16240,8 @@ function eR(e) {
16234
16240
  const P = r, R = n.value.length;
16235
16241
  if (R === 0 || v.value === 0)
16236
16242
  return { start: 0, end: 0 };
16237
- const E = Math.floor(u.value / t), _ = Math.max(0, E - P), k = Math.ceil(v.value / t), I = Math.min(R, E + k + P * 2);
16238
- return { start: _, end: I };
16243
+ const E = Math.floor(u.value / t), _ = Math.max(0, E - P), k = Math.ceil(v.value / t), x = Math.min(R, E + k + P * 2);
16244
+ return { start: _, end: x };
16239
16245
  }), f = y(() => {
16240
16246
  const { start: P, end: R } = h.value;
16241
16247
  return n.value.slice(P, R).map((_, k) => ({
@@ -16266,7 +16272,7 @@ function eR(e) {
16266
16272
  l.value.scrollTo({ top: Math.max(0, R), behavior: P });
16267
16273
  }, O = () => {
16268
16274
  l.value && (v.value = l.value.clientHeight, u.value = l.value.scrollTop);
16269
- }, x = () => {
16275
+ }, I = () => {
16270
16276
  O();
16271
16277
  };
16272
16278
  return oe(
@@ -16281,9 +16287,9 @@ function eR(e) {
16281
16287
  R > 0 && P !== R && (m = { start: -1, end: -1 });
16282
16288
  }
16283
16289
  ), tt(() => {
16284
- O(), window.addEventListener("resize", x);
16290
+ O(), window.addEventListener("resize", I);
16285
16291
  }), We(() => {
16286
- window.removeEventListener("resize", x), p && clearTimeout(p);
16292
+ window.removeEventListener("resize", I), p && clearTimeout(p);
16287
16293
  }), {
16288
16294
  visibleItems: f,
16289
16295
  totalHeight: C,
@@ -16318,47 +16324,47 @@ function UC(e) {
16318
16324
  );
16319
16325
  const v = y(() => !!t.value), b = y(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), p = (O) => {
16320
16326
  if (!b.value) return "";
16321
- const x = aa(O, b.value);
16322
- return String(x ?? "undefined");
16327
+ const I = aa(O, b.value);
16328
+ return String(I ?? "undefined");
16323
16329
  }, m = y(() => {
16324
16330
  if (!v.value || !b.value)
16325
16331
  return null;
16326
16332
  const O = /* @__PURE__ */ new Map();
16327
- for (const x of n.value) {
16328
- const P = p(x);
16329
- O.has(P) || O.set(P, []), O.get(P).push(x);
16333
+ for (const I of n.value) {
16334
+ const P = p(I);
16335
+ O.has(P) || O.set(P, []), O.get(P).push(I);
16330
16336
  }
16331
16337
  return O;
16332
16338
  }), h = y(() => {
16333
16339
  if (!m.value)
16334
16340
  return [];
16335
16341
  const O = [];
16336
- return m.value.forEach((x, P) => {
16342
+ return m.value.forEach((I, P) => {
16337
16343
  O.push({
16338
16344
  key: P,
16339
- items: x,
16340
- firstItem: x[0],
16341
- count: x.length
16345
+ items: I,
16346
+ firstItem: I[0],
16347
+ count: I.length
16342
16348
  });
16343
16349
  }), O;
16344
- }), f = (O) => r?.value ? u.value.includes(O) : !0, C = (O, x) => {
16350
+ }), f = (O) => r?.value ? u.value.includes(O) : !0, C = (O, I) => {
16345
16351
  if (!r?.value)
16346
16352
  return;
16347
- f(O) ? (u.value = u.value.filter((R) => R !== O), d?.({ data: O, originalEvent: x })) : (u.value = [...u.value, O], c?.({ data: O, originalEvent: x })), i?.(u.value);
16353
+ f(O) ? (u.value = u.value.filter((R) => R !== O), d?.({ data: O, originalEvent: I })) : (u.value = [...u.value, O], c?.({ data: O, originalEvent: I })), i?.(u.value);
16348
16354
  }, S = (O) => {
16349
16355
  !r?.value || f(O) || (u.value = [...u.value, O], i?.(u.value));
16350
16356
  }, $ = (O) => {
16351
- !r?.value || !f(O) || (u.value = u.value.filter((x) => x !== O), i?.(u.value));
16357
+ !r?.value || !f(O) || (u.value = u.value.filter((I) => I !== O), i?.(u.value));
16352
16358
  }, A = () => {
16353
16359
  if (!r?.value || !m.value)
16354
16360
  return;
16355
16361
  const O = [];
16356
- m.value.forEach((x, P) => O.push(P)), u.value = O, i?.(u.value);
16362
+ m.value.forEach((I, P) => O.push(P)), u.value = O, i?.(u.value);
16357
16363
  }, N = () => {
16358
16364
  r?.value && (u.value = [], i?.(u.value));
16359
16365
  }, V = y(() => !v.value || !r?.value ? n.value : n.value.filter((O) => {
16360
- const x = p(O);
16361
- return f(x);
16366
+ const I = p(O);
16367
+ return f(I);
16362
16368
  }));
16363
16369
  return {
16364
16370
  groupedItems: m,
@@ -16538,8 +16544,8 @@ function WC(e) {
16538
16544
  [A]: { ...V, fields: P }
16539
16545
  };
16540
16546
  }
16541
- const x = O ? O[$] : N;
16542
- return { data: S, field: $, newValue: x, index: A };
16547
+ const I = O ? O[$] : N;
16548
+ return { data: S, field: $, newValue: I, index: A };
16543
16549
  },
16544
16550
  cancelCellEdit: (S, $, A) => {
16545
16551
  if (n.value !== "cell")
@@ -16657,35 +16663,35 @@ function qC(e) {
16657
16663
  );
16658
16664
  const p = y(() => new Set(v.value.map((k) => o(k, -1)))), m = y(() => r ? n.value.filter(r) : n.value), h = y(() => !n.value || n.value.length === 0 || m.value.length === 0 ? !1 : m.value.every((k) => $(k))), f = y(() => {
16659
16665
  if (!n.value || n.value.length === 0 || m.value.length === 0) return !1;
16660
- const k = m.value.filter((I) => $(I)).length;
16666
+ const k = m.value.filter((x) => $(x)).length;
16661
16667
  return k > 0 && k < m.value.length;
16662
16668
  }), C = y(() => !d?.value || !i?.value || b.value ? !1 : h.value && i.value > n.value.length), S = y(() => ({
16663
16669
  count: b.value ? i?.value ?? v.value.length : v.value.length,
16664
16670
  isSelectAll: b.value,
16665
16671
  totalCount: i?.value
16666
16672
  })), $ = (k) => {
16667
- const I = o(k, -1);
16668
- return p.value.has(I);
16669
- }, A = (k) => r ? r(k) : !0, N = (k, I) => {
16673
+ const x = o(k, -1);
16674
+ return p.value.has(x);
16675
+ }, A = (k) => r ? r(k) : !0, N = (k, x) => {
16670
16676
  if (!A(k)) return null;
16671
16677
  const U = l.value, q = o(k, -1);
16672
16678
  return U === "single" ? v.value = [k] : p.value.has(q) || (v.value = [...v.value, k]), {
16673
16679
  data: k,
16674
- originalEvent: I || new Event("select")
16680
+ originalEvent: x || new Event("select")
16675
16681
  };
16676
- }, V = (k, I) => {
16682
+ }, V = (k, x) => {
16677
16683
  const U = o(k, -1);
16678
16684
  return v.value = v.value.filter((q) => o(q, -1) !== U), {
16679
16685
  data: k,
16680
- originalEvent: I || new Event("unselect")
16686
+ originalEvent: x || new Event("unselect")
16681
16687
  };
16682
- }, O = (k, I) => {
16688
+ }, O = (k, x) => {
16683
16689
  if (!A(k))
16684
16690
  return null;
16685
- const U = $(k), q = I instanceof Event ? I : new Event("change");
16691
+ const U = $(k), q = x instanceof Event ? x : new Event("change");
16686
16692
  return U ? V(k, q) : N(k, q);
16687
- }, x = (k, I) => {
16688
- const U = I || new Event("change");
16693
+ }, I = (k, x) => {
16694
+ const U = x || new Event("change");
16689
16695
  return k ? (v.value = [...m.value], {
16690
16696
  data: m.value,
16691
16697
  originalEvent: U
@@ -16706,8 +16712,8 @@ function qC(e) {
16706
16712
  });
16707
16713
  return oe(
16708
16714
  () => v.value.length,
16709
- (k, I) => {
16710
- b.value && k < I && (b.value = !1, u?.(!1));
16715
+ (k, x) => {
16716
+ b.value && k < x && (b.value = !1, u?.(!1));
16711
16717
  }
16712
16718
  ), {
16713
16719
  internalSelection: v,
@@ -16720,7 +16726,7 @@ function qC(e) {
16720
16726
  isSelected: $,
16721
16727
  canSelect: A,
16722
16728
  handleRowSelectionChange: O,
16723
- handleSelectAllChange: x,
16729
+ handleSelectAllChange: I,
16724
16730
  selectItem: N,
16725
16731
  unselectItem: V,
16726
16732
  clearSelection: P,
@@ -16761,16 +16767,16 @@ function YC(e) {
16761
16767
  if (k.rowReorder) return `${wt.rowReorder}px`;
16762
16768
  if (k.expander) return `${wt.expander}px`;
16763
16769
  if (k.rowEditor) return `${wt.rowEditor}px`;
16764
- const I = i.value.widths[k.id];
16765
- if (I !== void 0 && I > 0) return `${I}px`;
16770
+ const x = i.value.widths[k.id];
16771
+ if (x !== void 0 && x > 0) return `${x}px`;
16766
16772
  const U = Tl(k.width, 0);
16767
16773
  if (U.type === "px") return `${U.desiredPx}px`;
16768
16774
  if (U.type === "percent" && typeof k.width == "string") return k.width.trim();
16769
16775
  }, b = (k) => {
16770
16776
  if (at(k)) return "center";
16771
- const I = k.headerAlign || k.align;
16772
- if (I)
16773
- return I === "start" ? "left" : I === "end" ? "right" : I;
16777
+ const x = k.headerAlign || k.align;
16778
+ if (x)
16779
+ return x === "start" ? "left" : x === "end" ? "right" : x;
16774
16780
  }, p = (k) => {
16775
16781
  if (at(k)) return "center";
16776
16782
  if (k.align)
@@ -16784,11 +16790,11 @@ function YC(e) {
16784
16790
  maxWidth: `${wt.selection}px`
16785
16791
  };
16786
16792
  if (k.rowReorder || k.expander) {
16787
- const I = k.rowReorder ? wt.rowReorder : wt.expander;
16788
- return { textAlign: "center", justifyContent: "center", minWidth: `${I}px`, maxWidth: `${I}px` };
16793
+ const x = k.rowReorder ? wt.rowReorder : wt.expander;
16794
+ return { textAlign: "center", justifyContent: "center", minWidth: `${x}px`, maxWidth: `${x}px` };
16789
16795
  }
16790
- }, h = (k) => m(k), f = (k) => k.sortField || k.field || k.id, C = (k, I) => {
16791
- const U = I && typeof I == "object" && "$el" in I ? I.$el : I;
16796
+ }, h = (k) => m(k), f = (k) => k.sortField || k.field || k.id, C = (k, x) => {
16797
+ const U = x && typeof x == "object" && "$el" in x ? x.$el : x;
16792
16798
  U ? c.set(k, U) : c.delete(k);
16793
16799
  }, S = y(() => {
16794
16800
  const k = n.value.filter(
@@ -16796,15 +16802,15 @@ function YC(e) {
16796
16802
  );
16797
16803
  if (!l || o.value.order.length === 0)
16798
16804
  return k;
16799
- const I = new Map(o.value.order.map((G, ae) => [G, ae])), U = k.filter((G) => at(G.props)), q = k.filter((G) => !at(G.props)).sort((G, ae) => (I.get(G.props.id) ?? 0) - (I.get(ae.props.id) ?? 0)), K = U.filter((G) => G.props.selectionMode), te = U.filter((G) => G.props.expander), me = U.filter((G) => G.props.rowReorder), j = U.filter((G) => G.props.rowEditor);
16805
+ const x = new Map(o.value.order.map((G, ae) => [G, ae])), U = k.filter((G) => at(G.props)), q = k.filter((G) => !at(G.props)).sort((G, ae) => (x.get(G.props.id) ?? 0) - (x.get(ae.props.id) ?? 0)), K = U.filter((G) => G.props.selectionMode), te = U.filter((G) => G.props.expander), me = U.filter((G) => G.props.rowReorder), j = U.filter((G) => G.props.rowEditor);
16800
16806
  return [...K, ...te, ...me, ...q, ...j];
16801
16807
  }), $ = (k) => {
16802
16808
  if (!d(k)) return !1;
16803
- const I = S.value.filter((U) => d(U.props));
16804
- return I.length > 0 && I[I.length - 1].props.id === k.id;
16809
+ const x = S.value.filter((U) => d(U.props));
16810
+ return x.length > 0 && x[x.length - 1].props.id === k.id;
16805
16811
  }, A = y(() => n.value.length);
16806
- function N(k, I, U) {
16807
- const q = Tl(k.minWidth, I), K = Tl(k.maxWidth, I);
16812
+ function N(k, x, U) {
16813
+ const q = Tl(k.minWidth, x), K = Tl(k.maxWidth, x);
16808
16814
  return {
16809
16815
  weight: U,
16810
16816
  minPx: q.desiredPx ?? pa,
@@ -16812,24 +16818,24 @@ function YC(e) {
16812
16818
  };
16813
16819
  }
16814
16820
  function V(k) {
16815
- const I = n.value.filter((G) => !at(G.props));
16816
- if (I.length === 0) return;
16817
- const U = I.map((G) => ({
16821
+ const x = n.value.filter((G) => !at(G.props));
16822
+ if (x.length === 0) return;
16823
+ const U = x.map((G) => ({
16818
16824
  id: G.props.id,
16819
16825
  parsed: Tl(G.props.width, k)
16820
16826
  })), q = BC(U, k), K = [...o.value.order], te = new Set(K);
16821
- for (const G of I)
16827
+ for (const G of x)
16822
16828
  te.has(G.props.id) || K.push(G.props.id);
16823
16829
  const me = { ...o.value.specs };
16824
16830
  let j = K.length !== o.value.order.length;
16825
- for (const G of I) {
16826
- const ae = q[G.props.id] ?? 1 / I.length, Z = N(G.props, k, ae), W = me[G.props.id];
16831
+ for (const G of x) {
16832
+ const ae = q[G.props.id] ?? 1 / x.length, Z = N(G.props, k, ae), W = me[G.props.id];
16827
16833
  (!W || Math.abs(W.weight - Z.weight) > 1e-9 || W.minPx !== Z.minPx || W.maxPx !== Z.maxPx) && (me[G.props.id] = Z, j = !0);
16828
16834
  }
16829
16835
  j && (o.value = { order: K, specs: me });
16830
16836
  }
16831
16837
  let O = !1;
16832
- const x = () => {
16838
+ const I = () => {
16833
16839
  O = !0;
16834
16840
  }, P = () => {
16835
16841
  o.value = { order: [], specs: {} }, i.value = { widths: {}, fillerWidth: 0 }, O = !1, R();
@@ -16844,34 +16850,34 @@ function YC(e) {
16844
16850
  return oe(
16845
16851
  n,
16846
16852
  () => {
16847
- const k = n.value.filter((Z) => !at(Z.props)), I = k.map((Z) => Z.props.id), U = new Set(I), q = new Set(o.value.order), K = I.filter((Z) => !q.has(Z)), te = _ ? [] : I.filter((Z) => q.has(Z) && !E.has(Z)), me = _ ? [] : [...E].filter((Z) => !U.has(Z)), j = K.length > 0 || te.length > 0 || me.length > 0, G = o.value.order.length === 0, ae = e.getAvailableWidth();
16853
+ const k = n.value.filter((Z) => !at(Z.props)), x = k.map((Z) => Z.props.id), U = new Set(x), q = new Set(o.value.order), K = x.filter((Z) => !q.has(Z)), te = _ ? [] : x.filter((Z) => q.has(Z) && !E.has(Z)), me = _ ? [] : [...E].filter((Z) => !U.has(Z)), j = K.length > 0 || te.length > 0 || me.length > 0, G = o.value.order.length === 0, ae = e.getAvailableWidth();
16848
16854
  if (G || K.length > 0)
16849
16855
  if (G && ae > 0)
16850
16856
  V(ae);
16851
16857
  else {
16852
16858
  const Z = { ...o.value };
16853
16859
  Z.order = [...Z.order], Z.specs = { ...Z.specs };
16854
- const W = I.filter((ne) => Z.specs[ne] && !K.includes(ne)), ke = W.length > 0 ? W.reduce((ne, re) => ne + Z.specs[re].weight, 0) / W.length : 1 / I.length;
16860
+ const W = x.filter((ne) => Z.specs[ne] && !K.includes(ne)), ke = W.length > 0 ? W.reduce((ne, re) => ne + Z.specs[re].weight, 0) / W.length : 1 / x.length;
16855
16861
  for (const ne of k)
16856
16862
  q.has(ne.props.id) || (Z.order.push(ne.props.id), Z.specs[ne.props.id] = N(ne.props, ae, ke));
16857
- const H = I.filter((ne) => Z.specs[ne]);
16858
- In(Z.specs, H), o.value = Z;
16863
+ const H = x.filter((ne) => Z.specs[ne]);
16864
+ xn(Z.specs, H), o.value = Z;
16859
16865
  }
16860
16866
  else if (te.length > 0) {
16861
16867
  const Z = { ...o.value };
16862
16868
  Z.specs = { ...Z.specs };
16863
- const W = I.filter((H) => Z.specs[H] && !te.includes(H)), ke = W.length > 0 ? W.reduce((H, ne) => H + Z.specs[ne].weight, 0) / W.length : 1 / I.length;
16869
+ const W = x.filter((H) => Z.specs[H] && !te.includes(H)), ke = W.length > 0 ? W.reduce((H, ne) => H + Z.specs[ne].weight, 0) / W.length : 1 / x.length;
16864
16870
  for (const H of te)
16865
16871
  Z.specs[H] && (Z.specs[H] = { ...Z.specs[H], weight: ke });
16866
- In(
16872
+ xn(
16867
16873
  Z.specs,
16868
- I.filter((H) => Z.specs[H])
16874
+ x.filter((H) => Z.specs[H])
16869
16875
  ), o.value = Z;
16870
16876
  } else if (me.length > 0) {
16871
16877
  const Z = { ...o.value };
16872
- Z.specs = { ...Z.specs }, In(
16878
+ Z.specs = { ...Z.specs }, xn(
16873
16879
  Z.specs,
16874
- I.filter((W) => Z.specs[W])
16880
+ x.filter((W) => Z.specs[W])
16875
16881
  ), o.value = Z;
16876
16882
  }
16877
16883
  E = U, _ = !1, j && R();
@@ -16884,7 +16890,7 @@ function YC(e) {
16884
16890
  setHeaderRef: C,
16885
16891
  recompute: R,
16886
16892
  resetFromProps: P,
16887
- markSizingCustomized: x,
16893
+ markSizingCustomized: I,
16888
16894
  isSizingCustomized: () => O,
16889
16895
  orderedVisibleColumns: S,
16890
16896
  totalColumns: A,
@@ -16955,12 +16961,12 @@ function JC(e) {
16955
16961
  try {
16956
16962
  const k = JSON.parse(_);
16957
16963
  if (typeof k != "object" || k === null) return null;
16958
- const I = k;
16959
- if (I.v === XC) {
16964
+ const x = k;
16965
+ if (x.v === XC) {
16960
16966
  const U = k;
16961
16967
  return !Array.isArray(U.order) || typeof U.weights != "object" || U.weights === null || U.hiddenColumnIds !== void 0 && !Array.isArray(U.hiddenColumnIds) || U.shownColumnIds !== void 0 && !Array.isArray(U.shownColumnIds) ? null : U;
16962
16968
  }
16963
- return I.v === 1 ? QC(k) : null;
16969
+ return x.v === 1 ? QC(k) : null;
16964
16970
  } catch {
16965
16971
  return null;
16966
16972
  }
@@ -17004,16 +17010,16 @@ function JC(e) {
17004
17010
  }
17005
17011
  function V(R, E) {
17006
17012
  v++;
17007
- const { weights: _, order: k } = E, I = [], U = {};
17013
+ const { weights: _, order: k } = E, x = [], U = {};
17008
17014
  for (const q of k)
17009
- _[q] !== void 0 && (I.push(q), U[q] = {
17015
+ _[q] !== void 0 && (x.push(q), U[q] = {
17010
17016
  weight: _[q],
17011
17017
  minPx: R.specs[q]?.minPx ?? 40,
17012
17018
  maxPx: R.specs[q]?.maxPx ?? 1 / 0
17013
17019
  });
17014
17020
  for (const q of R.order)
17015
- U[q] || (I.push(q), U[q] = R.specs[q] ?? { weight: 0, minPx: 40, maxPx: 1 / 0 });
17016
- l.value = { order: I, specs: U }, Re(() => {
17021
+ U[q] || (x.push(q), U[q] = R.specs[q] ?? { weight: 0, minPx: 40, maxPx: 1 / 0 });
17022
+ l.value = { order: x, specs: U }, Re(() => {
17017
17023
  v--;
17018
17024
  });
17019
17025
  }
@@ -17040,12 +17046,12 @@ function JC(e) {
17040
17046
  function O() {
17041
17047
  return !(v > 0 || !n.value || C || i && i() <= 0);
17042
17048
  }
17043
- function x() {
17049
+ function I() {
17044
17050
  O() && (b != null && clearTimeout(b), b = setTimeout(() => {
17045
17051
  b = void 0, O() && $();
17046
17052
  }, jC));
17047
17053
  }
17048
- return oe(o ? [l, r, o] : [l, r], x, { deep: !0 }), We(() => {
17054
+ return oe(o ? [l, r, o] : [l, r], I, { deep: !0 }), We(() => {
17049
17055
  b != null && (clearTimeout(b), b = void 0, n.value && $());
17050
17056
  }), {
17051
17057
  saveState: $,
@@ -17066,14 +17072,14 @@ function e_(e) {
17066
17072
  getItemKey: d,
17067
17073
  tableContainerRef: u
17068
17074
  } = e, v = y(() => l.value.find((X) => X.props.selectionMode !== void 0) || null), b = y(() => n.selectionMode !== void 0 || v.value !== null), p = y(() => n.selectionMode ? n.selectionMode : v.value?.props.selectionMode), m = y(() => v.value !== null), h = y(() => n.striped ? "striped" : n.bordered ? "bordered" : n.variant ?? "default"), f = y(() => n.selectAllActive !== void 0), C = qC({
17069
- items: Ie(n, "items"),
17070
- selection: Ie(n, "selection"),
17075
+ items: xe(n, "items"),
17076
+ selection: xe(n, "selection"),
17071
17077
  selectionMode: y(() => p.value),
17072
17078
  isRowSelectable: (X) => n.isRowSelectable ? n.isRowSelectable(X) : !0,
17073
17079
  dataKey: n.dataKey ?? "id",
17074
17080
  getItemKey: d,
17075
- totalCount: Ie(n, "totalCount"),
17076
- selectAllActive: Ie(n, "selectAllActive"),
17081
+ totalCount: xe(n, "totalCount"),
17082
+ selectAllActive: xe(n, "selectAllActive"),
17077
17083
  selectAllEnabled: f,
17078
17084
  onSelectAllChange: (X) => {
17079
17085
  t("update:selectAllActive", X), t("select-all", { selected: X });
@@ -17087,21 +17093,21 @@ function e_(e) {
17087
17093
  { deep: !0 }
17088
17094
  );
17089
17095
  const S = HC({
17090
- sortField: Ie(n, "sortField"),
17091
- sortOrder: Ie(n, "sortOrder"),
17092
- sortMode: Ie(n, "sortMode"),
17093
- multiSortMeta: Ie(n, "multiSortMeta"),
17094
- removableSort: Ie(n, "removableSort"),
17096
+ sortField: xe(n, "sortField"),
17097
+ sortOrder: xe(n, "sortOrder"),
17098
+ sortMode: xe(n, "sortMode"),
17099
+ multiSortMeta: xe(n, "multiSortMeta"),
17100
+ removableSort: xe(n, "removableSort"),
17095
17101
  onSort: (X) => {
17096
17102
  X.sortField !== void 0 && t("update:sortField", X.sortField), X.sortOrder !== void 0 && t("update:sortOrder", X.sortOrder), X.multiSortMeta !== void 0 && t("update:multiSortMeta", X.multiSortMeta), t("sort", X);
17097
17103
  }
17098
17104
  }), $ = WC({
17099
- editMode: Ie(n, "editMode"),
17100
- editingRows: Ie(n, "editingRows"),
17105
+ editMode: xe(n, "editMode"),
17106
+ editingRows: xe(n, "editingRows"),
17101
17107
  dataKey: n.dataKey ?? "id",
17102
17108
  getItemKey: d
17103
17109
  }), A = GC({
17104
- expandedRows: Ie(n, "expandedRows"),
17110
+ expandedRows: xe(n, "expandedRows"),
17105
17111
  getItemKey: d,
17106
17112
  isRowExpandable: (X) => n.isRowExpandable ? n.isRowExpandable(X) : !0
17107
17113
  }), N = B([]);
@@ -17116,17 +17122,17 @@ function e_(e) {
17116
17122
  const V = (X) => {
17117
17123
  const ge = d(X, 0);
17118
17124
  return N.value.includes(ge);
17119
- }, O = (X) => A.canExpand(X), x = UC({
17120
- items: Ie(n, "items"),
17121
- groupRowsBy: Ie(n, "groupRowsBy"),
17122
- rowGroupMode: Ie(n, "rowGroupMode"),
17123
- expandableRowGroups: Ie(n, "expandableRowGroups"),
17124
- expandedRowGroups: Ie(n, "expandedRowGroups"),
17125
+ }, O = (X) => A.canExpand(X), I = UC({
17126
+ items: xe(n, "items"),
17127
+ groupRowsBy: xe(n, "groupRowsBy"),
17128
+ rowGroupMode: xe(n, "rowGroupMode"),
17129
+ expandableRowGroups: xe(n, "expandableRowGroups"),
17130
+ expandedRowGroups: xe(n, "expandedRowGroups"),
17125
17131
  onExpandedRowGroupsChange: (X) => t("update:expandedRowGroups", X),
17126
17132
  onRowGroupExpand: (X) => t("rowgroup-expand", X),
17127
17133
  onRowGroupCollapse: (X) => t("rowgroup-collapse", X)
17128
17134
  }), P = FC({
17129
- items: Ie(n, "items"),
17135
+ items: xe(n, "items"),
17130
17136
  rules: n.validationRules,
17131
17137
  onSave: (X) => {
17132
17138
  t("edit-save", { changes: X });
@@ -17154,11 +17160,11 @@ function e_(e) {
17154
17160
  reorderableColumns: n.reorderableColumns ?? !0,
17155
17161
  fitMode: n.fitMode ?? "gap",
17156
17162
  getAvailableWidth: _
17157
- }), I = B(/* @__PURE__ */ new Set());
17163
+ }), x = B(/* @__PURE__ */ new Set());
17158
17164
  oe(
17159
17165
  () => c.value.map((X) => X.props.id).join(","),
17160
17166
  () => {
17161
- I.value = new Set(c.value.map((X) => X.props.id));
17167
+ x.value = new Set(c.value.map((X) => X.props.id));
17162
17168
  },
17163
17169
  { immediate: !0 }
17164
17170
  );
@@ -17176,7 +17182,7 @@ function e_(e) {
17176
17182
  }));
17177
17183
  return [...X, ...ge];
17178
17184
  }), q = y(() => U.value.filter((X) => X.visible).map((X) => X.id)), K = JC({
17179
- stateKey: Ie(n, "stateKey"),
17185
+ stateKey: xe(n, "stateKey"),
17180
17186
  stateStorage: y(() => n.stateStorage ?? "local"),
17181
17187
  columnState: k.columnState,
17182
17188
  hiddenColumnIds: o,
@@ -17189,7 +17195,7 @@ function e_(e) {
17189
17195
  }
17190
17196
  });
17191
17197
  oe(
17192
- I,
17198
+ x,
17193
17199
  (X, ge) => {
17194
17200
  const pe = new Set(o.value), Oe = new Set(i.value);
17195
17201
  let Ve = !1, ot = !1;
@@ -17204,7 +17210,7 @@ function e_(e) {
17204
17210
  },
17205
17211
  { immediate: !0 }
17206
17212
  );
17207
- const te = y(() => l.value.find((X) => X.props.rowReorder === !0) || null), me = y(() => n.reorderableRows || te.value !== null), j = y(() => me.value), G = B(), { reorderedItems: ae, pendingReorder: Z } = VC(G, Ie(n, "items"), {
17213
+ const te = y(() => l.value.find((X) => X.props.rowReorder === !0) || null), me = y(() => n.reorderableRows || te.value !== null), j = y(() => me.value), G = B(), { reorderedItems: ae, pendingReorder: Z } = VC(G, xe(n, "items"), {
17208
17214
  disabled: y(() => !me.value),
17209
17215
  handle: ZC,
17210
17216
  onReorder: (X) => t("row-reorder", X)
@@ -17221,10 +17227,10 @@ function e_(e) {
17221
17227
  onFilterChange: (X) => {
17222
17228
  t("filter", { filters: X, filteredValue: n.items });
17223
17229
  }
17224
- }), Te = (X) => H.hasFilter(X.props.filter), He = (X) => X.props.filterField || H.getFilterField(X.props.id, X.props.filter), nt = (X) => H.getFilterType(X.props.filter), ut = (X) => H.getFilterOptions(X.props.filter), Et = (X) => H.isMultipleSelect(X.props.filter), It = (X) => H.getRangeFields(X.props.filter), nn = (X) => {
17230
+ }), Te = (X) => H.hasFilter(X.props.filter), He = (X) => X.props.filterField || H.getFilterField(X.props.id, X.props.filter), nt = (X) => H.getFilterType(X.props.filter), ut = (X) => H.getFilterOptions(X.props.filter), Et = (X) => H.isMultipleSelect(X.props.filter), xt = (X) => H.getRangeFields(X.props.filter), nn = (X) => {
17225
17231
  const ge = He(X);
17226
17232
  if (nt(X) === "dateRange") {
17227
- const pe = It(X);
17233
+ const pe = xt(X);
17228
17234
  if (pe) {
17229
17235
  const Oe = `__range__${pe[0]}__${pe[1]}`;
17230
17236
  return ne.value[Oe] ?? null;
@@ -17237,7 +17243,7 @@ function e_(e) {
17237
17243
  }, an = (X, ge) => {
17238
17244
  const pe = nt(X), Oe = He(X);
17239
17245
  if (pe === "dateRange") {
17240
- const Ve = It(X);
17246
+ const Ve = xt(X);
17241
17247
  if (Ve) {
17242
17248
  const ot = ge[Ve[0]], et = ge[Ve[1]];
17243
17249
  se(Ve, { start: ot, end: et });
@@ -17250,7 +17256,7 @@ function e_(e) {
17250
17256
  }, fl = (X) => {
17251
17257
  const ge = He(X);
17252
17258
  if (nt(X) === "dateRange") {
17253
- const Oe = It(X);
17259
+ const Oe = xt(X);
17254
17260
  if (Oe) {
17255
17261
  const Ve = `__range__${Oe[0]}__${Oe[1]}`;
17256
17262
  ee(Ve);
@@ -17299,7 +17305,7 @@ function e_(e) {
17299
17305
  sort: S,
17300
17306
  editing: $,
17301
17307
  expansion: A,
17302
- rowGrouping: x,
17308
+ rowGrouping: I,
17303
17309
  inlineEdit: P,
17304
17310
  cols: k,
17305
17311
  statePersistence: K,
@@ -17318,7 +17324,7 @@ function e_(e) {
17318
17324
  getColumnFilterType: nt,
17319
17325
  getColumnFilterOptions: ut,
17320
17326
  isColumnFilterMultiple: Et,
17321
- getColumnRangeFields: It,
17327
+ getColumnRangeFields: xt,
17322
17328
  getColumnFilterValue: nn,
17323
17329
  handleColumnFilterApply: an,
17324
17330
  handleColumnFilterClear: fl,
@@ -17356,7 +17362,7 @@ function e_(e) {
17356
17362
  canExpand: O,
17357
17363
  expandedKeysArray: N,
17358
17364
  // Data-discovered IDs stable ref
17359
- dataDiscoveredIds: I,
17365
+ dataDiscoveredIds: x,
17360
17366
  // Event handlers (selection handlers are on the `selection` facade)
17361
17367
  handleSort: vn,
17362
17368
  handleRowClick: (X, ge, pe) => {
@@ -17396,7 +17402,7 @@ function e_(e) {
17396
17402
  o.value = et, i.value = it;
17397
17403
  },
17398
17404
  handleTableReset: () => {
17399
- K.resetState(), I.value.size > 0 && (o.value = new Set(I.value)), k.resetFromProps(), k.recompute();
17405
+ K.resetState(), x.value.size > 0 && (o.value = new Set(x.value)), k.resetFromProps(), k.recompute();
17400
17406
  },
17401
17407
  handleCellClick: (X, ge, pe, Oe) => {
17402
17408
  if (n.editMode === "cell" && (Oe.slots.editor || Oe.props.editable) && !$.isCellEditing(pe, ge)) {
@@ -17635,7 +17641,7 @@ const tR = {
17635
17641
  return `${Me}–${Ke} ${o("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${be}`;
17636
17642
  }
17637
17643
  return `${o("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${ce.currentPage} ${o("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${ce.pages}`;
17638
- }), { isMobile: V } = De(), O = y(() => V.value), x = yt(), P = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
17644
+ }), { isMobile: V } = De(), O = y(() => V.value), I = yt(), P = (ce) => ce.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), R = /* @__PURE__ */ new Set([
17639
17645
  "sortable",
17640
17646
  "editable",
17641
17647
  "visible",
@@ -17655,7 +17661,7 @@ const tR = {
17655
17661
  }
17656
17662
  return be;
17657
17663
  }, _ = () => {
17658
- const ce = x.default?.();
17664
+ const ce = I.default?.();
17659
17665
  if (!ce) return [];
17660
17666
  const be = [], _e = (Me) => {
17661
17667
  const Ke = Me.type;
@@ -17672,13 +17678,13 @@ const tR = {
17672
17678
  };
17673
17679
  return ce.forEach(_e), be;
17674
17680
  }, k = new t_();
17675
- Be(xs, k);
17676
- const I = B(0);
17681
+ Be(Is, k);
17682
+ const x = B(0);
17677
17683
  k.onUpdate(() => {
17678
- I.value++;
17684
+ x.value++;
17679
17685
  });
17680
17686
  const U = y(() => {
17681
- I.value;
17687
+ x.value;
17682
17688
  const ce = _();
17683
17689
  return ce.length > 0 ? ce : k.getColumns();
17684
17690
  }), q = B(/* @__PURE__ */ new Set()), K = B(/* @__PURE__ */ new Set()), te = y(() => {
@@ -17719,7 +17725,7 @@ const tR = {
17719
17725
  showColumnFilter: nt,
17720
17726
  getColumnFilterType: ut,
17721
17727
  getColumnFilterOptions: Et,
17722
- isColumnFilterMultiple: It,
17728
+ isColumnFilterMultiple: xt,
17723
17729
  getColumnRangeFields: nn,
17724
17730
  getColumnFilterValue: Gt,
17725
17731
  handleColumnFilterApply: qt,
@@ -17792,7 +17798,7 @@ const tR = {
17792
17798
  hasActiveFilters: Te,
17793
17799
  activeFilterCount: He
17794
17800
  }), Be(
17795
- xo,
17801
+ Io,
17796
17802
  y(() => se.engineOutput.value.fillerWidth)
17797
17803
  ), Be(No, sn);
17798
17804
  const Ta = (ce) => {
@@ -18016,7 +18022,7 @@ const tR = {
18016
18022
  onRefresh: be[10] || (be[10] = (_e) => r("pull-refresh")),
18017
18023
  onCellValueChange: be[11] || (be[11] = (_e, Me, Ke) => a(pe)(_e, Me, Ke)),
18018
18024
  onExpandToggle: be[12] || (be[12] = (_e, Me, Ke) => a(Oe)(_e, Me, Ke))
18019
- }, xe({
18025
+ }, Ie({
18020
18026
  empty: M(() => [
18021
18027
  v.value && ce.$slots["not-found"] ? z(ce.$slots, "not-found", { key: 0 }) : ce.$slots.empty ? z(ce.$slots, "empty", { key: 1 }) : (s(), D(a(Ti), {
18022
18028
  key: 2,
@@ -18077,7 +18083,7 @@ const tR = {
18077
18083
  "show-filter": a(nt),
18078
18084
  "get-filter-type": a(ut),
18079
18085
  "get-filter-options": a(Et),
18080
- "is-filter-multiple": a(It),
18086
+ "is-filter-multiple": a(xt),
18081
18087
  "get-range-fields": a(nn),
18082
18088
  "get-filter-value": a(Gt),
18083
18089
  "is-editing": a(gl),
@@ -18133,7 +18139,7 @@ const tR = {
18133
18139
  onEditCancel: a(ge),
18134
18140
  onCellValueChange: a(pe),
18135
18141
  onCellClick: a(Sa)
18136
- }, xe({
18142
+ }, Ie({
18137
18143
  "row-actions": M(({ item: _e, index: Me }) => [
18138
18144
  e.rowActions ? (s(), D(a(r0), {
18139
18145
  key: 0,
@@ -18331,7 +18337,7 @@ const tR = {
18331
18337
  label: t.addNewRowButton.title,
18332
18338
  position: "footer"
18333
18339
  };
18334
- }), O = y(() => t.editing ? "inline" : void 0), x = y(() => t.header !== !1), P = y(() => t.columnSelector === "auto" ? "auto" : t.columnSelector === "defined" ? "defined" : t.columnSelector ? "auto" : !1);
18340
+ }), O = y(() => t.editing ? "inline" : void 0), I = y(() => t.header !== !1), P = y(() => t.columnSelector === "auto" ? "auto" : t.columnSelector === "defined" ? "defined" : t.columnSelector ? "auto" : !1);
18335
18341
  function R(W) {
18336
18342
  if (W)
18337
18343
  return W === "date-time" ? "datetime" : W;
@@ -18350,7 +18356,7 @@ const tR = {
18350
18356
  if (W === "top-left" || W === "top-right" || W === "bottom-left" || W === "bottom-right")
18351
18357
  return W;
18352
18358
  }
18353
- function I(W) {
18359
+ function x(W) {
18354
18360
  W.sortField && (p.value = W.sortField);
18355
18361
  const ke = W.sortField ?? p.value ?? v.value;
18356
18362
  if (ke) {
@@ -18416,7 +18422,7 @@ const tR = {
18416
18422
  "select-all": t.selectAll,
18417
18423
  "total-count": t.totalCount,
18418
18424
  "total-label": t.totalLabel,
18419
- searchable: x.value,
18425
+ searchable: I.value,
18420
18426
  "search-value": t.searchValue,
18421
18427
  "search-placeholder": t.searchPlaceholder,
18422
18428
  pagination: C.value,
@@ -18424,7 +18430,7 @@ const tR = {
18424
18430
  variant: t.variant,
18425
18431
  "empty-state": $.value,
18426
18432
  "not-found-state": A.value,
18427
- onSort: I,
18433
+ onSort: x,
18428
18434
  "onUpdate:selection": U,
18429
18435
  onRowClick: q,
18430
18436
  onRowReorder: me,
@@ -18435,7 +18441,7 @@ const tR = {
18435
18441
  onSearch: te,
18436
18442
  "onUpdate:searchValue": te,
18437
18443
  onRowAdd: Z
18438
- }, xe({
18444
+ }, Ie({
18439
18445
  default: M(() => [
18440
18446
  (s(!0), g(J, null, ve(S.value, (H) => (s(), D(Bs, {
18441
18447
  id: H.id,
@@ -18454,7 +18460,7 @@ const tR = {
18454
18460
  "mobile-role": _(H.mobilePosition),
18455
18461
  "mobile-position": k(H.mobilePosition),
18456
18462
  "mobile-visible": H.mobileVisible
18457
- }, xe({ _: 2 }, [
18463
+ }, Ie({ _: 2 }, [
18458
18464
  W.$slots[`item_${H.id}`] ? {
18459
18465
  name: "body",
18460
18466
  fn: M(({ data: ne, index: re }) => [
@@ -18789,7 +18795,7 @@ function $_(e) {
18789
18795
  function Dt(e) {
18790
18796
  return e ? uo[$_(e) % uo.length] : "var(--primary-500)";
18791
18797
  }
18792
- const Bn = "#ffffff", xi = "#18181b";
18798
+ const Bn = "#ffffff", Ii = "#18181b";
18793
18799
  function Ni(e) {
18794
18800
  const n = e.trim(), t = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(n);
18795
18801
  if (t) {
@@ -18806,13 +18812,13 @@ function Bi([e, n, t]) {
18806
18812
  };
18807
18813
  return 0.2126 * l(e) + 0.7152 * l(n) + 0.0722 * l(t);
18808
18814
  }
18809
- const vo = (e, n) => (Math.max(e, n) + 0.05) / (Math.min(e, n) + 0.05), R_ = Bi(Ni(xi));
18815
+ const vo = (e, n) => (Math.max(e, n) + 0.05) / (Math.min(e, n) + 0.05), R_ = Bi(Ni(Ii));
18810
18816
  function Di(e) {
18811
18817
  if (!e) return Bn;
18812
18818
  const n = Ni(e);
18813
18819
  if (!n) return Bn;
18814
18820
  const t = Bi(n);
18815
- return vo(t, 1) >= vo(t, R_) ? Bn : xi;
18821
+ return vo(t, 1) >= vo(t, R_) ? Bn : Ii;
18816
18822
  }
18817
18823
  function qn(e, n) {
18818
18824
  return n ? {
@@ -18832,7 +18838,7 @@ const T_ = ["aria-label", "onKeydown"], A_ = {
18832
18838
  key: 2,
18833
18839
  class: "vc-scheduler__event-bar-arrow",
18834
18840
  "aria-hidden": "true"
18835
- }, I_ = /* @__PURE__ */ Y({
18841
+ }, x_ = /* @__PURE__ */ Y({
18836
18842
  __name: "MonthEventBar",
18837
18843
  props: {
18838
18844
  event: {},
@@ -18890,7 +18896,7 @@ const T_ = ["aria-label", "onKeydown"], A_ = {
18890
18896
  ], 64)) : L("", !0)
18891
18897
  ], 46, T_));
18892
18898
  }
18893
- }), x_ = {
18899
+ }), I_ = {
18894
18900
  class: "vc-scheduler__week-cells",
18895
18901
  role: "row"
18896
18902
  }, N_ = ["onClick"], B_ = {
@@ -18914,7 +18920,7 @@ const T_ = ["aria-label", "onKeydown"], A_ = {
18914
18920
  class: "vc-scheduler__week-row",
18915
18921
  style: he({ "--scheduler-month-max-lanes": l.value })
18916
18922
  }, [
18917
- w("div", x_, [
18923
+ w("div", I_, [
18918
18924
  (s(!0), g(J, null, ve(e.days, (c, d) => (s(), D(S_, {
18919
18925
  key: d,
18920
18926
  date: c.date,
@@ -18950,7 +18956,7 @@ const T_ = ["aria-label", "onKeydown"], A_ = {
18950
18956
  role: "gridcell",
18951
18957
  style: he({ gridColumn: `${c.segment.startCol + 1} / ${c.segment.endCol + 2}`, gridRow: c.lane + 1 })
18952
18958
  }, [
18953
- T(I_, {
18959
+ T(x_, {
18954
18960
  event: c.segment.event,
18955
18961
  "continues-left": c.segment.continuesLeft,
18956
18962
  "continues-right": c.segment.continuesRight,
@@ -19183,7 +19189,7 @@ const j_ = { class: "vc-scheduler__qi-title" }, X_ = ["aria-label", "onClick"],
19183
19189
  placement: "bottom-start",
19184
19190
  "content-scrollable": !1,
19185
19191
  "onUpdate:show": p
19186
- }, xe({
19192
+ }, Ie({
19187
19193
  header: M(({ close: S }) => [
19188
19194
  w("div", {
19189
19195
  class: "vc-scheduler__qi-header",
@@ -19456,7 +19462,7 @@ const dk = { class: "vc-scheduler__month" }, vk = {
19456
19462
  return Se < 0 || Se > 6 || Te < 0 || Te > 5 ? null : lt(o.value.start, Te * 7 + Se);
19457
19463
  }
19458
19464
  const u = uk({
19459
- editable: Ie(t, "editable"),
19465
+ editable: xe(t, "editable"),
19460
19466
  isEventEditable: (ee) => t.isEventEditable(ee),
19461
19467
  dayFromPoint: d,
19462
19468
  onUpdate: (ee) => l("event-update", ee),
@@ -19467,7 +19473,7 @@ const dk = { class: "vc-scheduler__month" }, vk = {
19467
19473
  }), v = y(() => t.events.map((ee) => u.effectiveEvent(ee))), b = ik({
19468
19474
  events: v,
19469
19475
  monthRange: o,
19470
- firstDayOfWeek: Ie(t, "firstDayOfWeek")
19476
+ firstDayOfWeek: xe(t, "firstDayOfWeek")
19471
19477
  }), p = rk({ weekSegments: b.weekSegments }), m = y(
19472
19478
  () => Array.from({ length: 6 }, (ee, fe) => ({
19473
19479
  days: i.value.slice(fe * 7, fe * 7 + 7),
@@ -19491,10 +19497,10 @@ const dk = { class: "vc-scheduler__month" }, vk = {
19491
19497
  return b.timedByDay.value.get(Ae(ee, "yyyy-MM-dd")) ?? [];
19492
19498
  }
19493
19499
  let A = null, N = null, V = null, O = !1;
19494
- const x = /* @__PURE__ */ new Map(), P = Pi({
19500
+ const I = /* @__PURE__ */ new Map(), P = Pi({
19495
19501
  onIntent: (ee, fe) => {
19496
- const ie = x.get(fe);
19497
- if (x.delete(fe), !ie) return;
19502
+ const ie = I.get(fe);
19503
+ if (I.delete(fe), !ie) return;
19498
19504
  const ye = Ge(ie.date);
19499
19505
  l("create-intent", { start: ye, end: lt(ye, 1), allDay: !0, anchorRect: ie.rect, kind: ee });
19500
19506
  }
@@ -19514,15 +19520,15 @@ const dk = { class: "vc-scheduler__month" }, vk = {
19514
19520
  fe && !Gl(fe, N) && (O = !0);
19515
19521
  }
19516
19522
  }
19517
- function I() {
19523
+ function x() {
19518
19524
  if (A === "create") {
19519
19525
  if (O) {
19520
- P.cancel(), x.clear();
19526
+ P.cancel(), I.clear();
19521
19527
  const ee = u.pending.value;
19522
19528
  ee && l("create-intent", { start: ee.start, end: ee.end, allDay: !0, anchorRect: V, kind: "drag" });
19523
19529
  } else if (N) {
19524
19530
  const ee = Ae(N, "yyyy-MM-dd");
19525
- x.set(ee, { date: N, rect: V }), P.click(ee);
19531
+ I.set(ee, { date: N, rect: V }), P.click(ee);
19526
19532
  }
19527
19533
  u.cancel(), N = null, V = null, O = !1;
19528
19534
  } else
@@ -19530,13 +19536,13 @@ const dk = { class: "vc-scheduler__month" }, vk = {
19530
19536
  A = null, q();
19531
19537
  }
19532
19538
  function U() {
19533
- window.addEventListener("pointermove", k), window.addEventListener("pointerup", I);
19539
+ window.addEventListener("pointermove", k), window.addEventListener("pointerup", x);
19534
19540
  }
19535
19541
  function q() {
19536
- window.removeEventListener("pointermove", k), window.removeEventListener("pointerup", I);
19542
+ window.removeEventListener("pointermove", k), window.removeEventListener("pointerup", x);
19537
19543
  }
19538
19544
  Ot(() => {
19539
- q(), P.cancel(), x.clear();
19545
+ q(), P.cancel(), I.clear();
19540
19546
  });
19541
19547
  const K = B(!1), te = B(null), me = B(null);
19542
19548
  function j(ee, fe) {
@@ -19768,7 +19774,7 @@ const dk = { class: "vc-scheduler__month" }, vk = {
19768
19774
  function Kn(e) {
19769
19775
  return e.allDay !== void 0 ? e.allDay : e.end.getTime() - e.start.getTime() >= 864e5;
19770
19776
  }
19771
- function Ik(e) {
19777
+ function xk(e) {
19772
19778
  const n = [...e].sort((c, d) => c.startMs - d.startMs || c.endMs - d.endMs), t = [];
19773
19779
  let l = [], r = -1 / 0;
19774
19780
  const o = () => {
@@ -19785,7 +19791,7 @@ function Ik(e) {
19785
19791
  }
19786
19792
  return o(), t;
19787
19793
  }
19788
- function xk(e) {
19794
+ function Ik(e) {
19789
19795
  const n = 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(() => {
19790
19796
  const p = Ge(e.rangeStart.value);
19791
19797
  return Array.from({ length: n.value }, (m, h) => lt(p, h));
@@ -19816,12 +19822,12 @@ function xk(e) {
19816
19822
  startMs: Math.max(V.start.getTime(), $),
19817
19823
  endMs: Math.min(V.end.getTime(), A)
19818
19824
  }));
19819
- return Ik(N).map((V) => {
19820
- const O = (V.startMs - $) / mo * m, x = Math.max((V.endMs - V.startMs) / mo * m, Lk);
19825
+ return xk(N).map((V) => {
19826
+ const O = (V.startMs - $) / mo * m, I = Math.max((V.endMs - V.startMs) / mo * m, Lk);
19821
19827
  return {
19822
19828
  event: V.event,
19823
19829
  top: O,
19824
- height: x,
19830
+ height: I,
19825
19831
  leftPct: V.lane / V.laneCount * 100,
19826
19832
  widthPct: 100 / V.laneCount,
19827
19833
  past: V.event.end.getTime() < h
@@ -19904,7 +19910,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
19904
19910
  return Mt(t.focusedDate, { weekStartsOn: R });
19905
19911
  }
19906
19912
  return Ge(t.focusedDate);
19907
- }), v = xk({
19913
+ }), v = Ik({
19908
19914
  events: r,
19909
19915
  rangeStart: u,
19910
19916
  dayCount: o,
@@ -19942,7 +19948,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
19942
19948
  tt(() => {
19943
19949
  const R = h.value;
19944
19950
  if (!R) return;
19945
- const _ = v.timedByColumn.value.flat().reduce((k, I) => k === null ? I.top : Math.min(k, I.top), null) ?? Math.max(0, (8 - i.value) * Nt);
19951
+ const _ = v.timedByColumn.value.flat().reduce((k, x) => k === null ? x.top : Math.min(k, x.top), null) ?? Math.max(0, (8 - i.value) * Nt);
19946
19952
  R.scrollTop = Math.max(0, _ - Nt / 2);
19947
19953
  });
19948
19954
  const f = B(Date.now());
@@ -19965,7 +19971,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
19965
19971
  if (!t.editable || E.target?.closest(".vc-scheduler__tg-event")) return;
19966
19972
  const _ = E.currentTarget, k = v.days.value[R];
19967
19973
  if (!_ || !k) return;
19968
- const I = _.getBoundingClientRect(), U = i.value + (E.clientY - I.top) / Nt, q = Math.min(Math.max(Math.floor(U), i.value), c.value - 1), K = new Date(k);
19974
+ const x = _.getBoundingClientRect(), U = i.value + (E.clientY - x.top) / Nt, q = Math.min(Math.max(Math.floor(U), i.value), c.value - 1), K = new Date(k);
19969
19975
  K.setHours(q, 0, 0, 0);
19970
19976
  const te = new Date(K.getTime() + 36e5), me = DOMRect.fromRect({ x: E.clientX, y: E.clientY, width: 1, height: Nt }), j = String(K.getTime());
19971
19977
  $.set(j, { start: K, end: te, rect: me }), A.click(j);
@@ -19973,9 +19979,9 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
19973
19979
  Ot(() => {
19974
19980
  A.cancel(), $.clear();
19975
19981
  });
19976
- const V = B(!1), O = B(null), x = B(null);
19982
+ const V = B(!1), O = B(null), I = B(null);
19977
19983
  function P(R, E) {
19978
- l("event-click", R), t.quickInfo && (O.value = R, x.value = E.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19984
+ l("event-click", R), t.quickInfo && (O.value = R, I.value = E.currentTarget?.getBoundingClientRect() ?? null, V.value = !0);
19979
19985
  }
19980
19986
  return (R, E) => (s(), g("div", Nk, [
19981
19987
  w("div", Bk, [
@@ -20061,7 +20067,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20061
20067
  class: Q(["vc-scheduler__tg-event", { "vc-scheduler__tg-event--past": k.past }]),
20062
20068
  style: he(p(k)),
20063
20069
  "aria-label": b(k.event),
20064
- onClick: ue((I) => P(k.event, I), ["stop"])
20070
+ onClick: ue((x) => P(k.event, x), ["stop"])
20065
20071
  }, [
20066
20072
  w("span", Kk, F(a(Ae)(k.event.start, "HH:mm")), 1),
20067
20073
  w("span", Yk, [
@@ -20085,7 +20091,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20085
20091
  T(ga, {
20086
20092
  open: V.value,
20087
20093
  event: O.value,
20088
- "anchor-rect": x.value,
20094
+ "anchor-rect": I.value,
20089
20095
  "can-edit": t.editable && !!O.value && t.isEventEditable(O.value),
20090
20096
  onClose: E[0] || (E[0] = (_) => V.value = !1),
20091
20097
  onEdit: E[1] || (E[1] = (_) => l("edit-intent", _)),
@@ -20237,8 +20243,8 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20237
20243
  ]), b = y(() => {
20238
20244
  const E = Mt(/* @__PURE__ */ new Date(), { weekStartsOn: 0 });
20239
20245
  return Array.from({ length: 7 }, (_, k) => {
20240
- const I = lt(E, k);
20241
- return { value: k, label: Ae(I, "EEEEE"), fullLabel: Ae(I, "EEEE") };
20246
+ const x = lt(E, k);
20247
+ return { value: k, label: Ae(x, "EEEEE"), fullLabel: Ae(x, "EEEE") };
20242
20248
  });
20243
20249
  }), p = y(() => {
20244
20250
  switch (i.recurrence?.freq) {
@@ -20274,7 +20280,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20274
20280
  function $(E) {
20275
20281
  if (!i.recurrence) return;
20276
20282
  const _ = i.recurrence.byWeekday ?? [];
20277
- i.recurrence.byWeekday = _.includes(E) ? _.filter((k) => k !== E) : [..._, E].sort((k, I) => k - I);
20283
+ i.recurrence.byWeekday = _.includes(E) ? _.filter((k) => k !== E) : [..._, E].sort((k, x) => k - x);
20278
20284
  }
20279
20285
  function A(E) {
20280
20286
  if (!i.recurrence) return;
@@ -20292,7 +20298,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20292
20298
  const _ = Math.trunc(Number(E));
20293
20299
  i.recurrence.end.count = Number.isFinite(_) && _ >= 1 ? _ : 1;
20294
20300
  }
20295
- function x() {
20301
+ function I() {
20296
20302
  d.value && (i.recurrence?.freq === "weekly" && !i.recurrence.byWeekday?.length && (i.recurrence.byWeekday = [i.start.getDay()]), o("save", { ...i }));
20297
20303
  }
20298
20304
  function P() {
@@ -20393,7 +20399,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20393
20399
  "aria-pressed": S(k.value),
20394
20400
  "aria-label": k.fullLabel,
20395
20401
  "data-test": "recur-weekday",
20396
- onClick: (I) => $(k.value)
20402
+ onClick: (x) => $(k.value)
20397
20403
  }, F(k.label), 11, dE))), 128))
20398
20404
  ])
20399
20405
  ])) : L("", !0),
@@ -20459,7 +20465,7 @@ const Nk = { class: "vc-scheduler__tg" }, Bk = { class: "vc-scheduler__tg-head"
20459
20465
  variant: "primary",
20460
20466
  "data-test": "editor-save",
20461
20467
  disabled: !d.value,
20462
- onClick: x
20468
+ onClick: I
20463
20469
  }, {
20464
20470
  default: M(() => [
20465
20471
  de(F(E.$t("VC_SCHEDULER.SAVE")), 1)
@@ -20604,7 +20610,7 @@ function CE(e) {
20604
20610
  case "timeline-day":
20605
20611
  return lt(u, d);
20606
20612
  case "timeline-week":
20607
- return Ic(u, d);
20613
+ return xc(u, d);
20608
20614
  default:
20609
20615
  return Ko(u, d);
20610
20616
  }
@@ -20766,7 +20772,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20766
20772
  }
20767
20773
  d.open = !1;
20768
20774
  }
20769
- function x(H) {
20775
+ function I(H) {
20770
20776
  d.draft && (c.draft = { ...d.draft, title: H.title }, c.mode = "create", c.recurrenceEdit = null, c.allowRecurrence = !0, c.open = !0), d.open = !1;
20771
20777
  }
20772
20778
  function P() {
@@ -20832,7 +20838,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20832
20838
  month: "VC_SCHEDULER.MONTH",
20833
20839
  "timeline-day": "VC_SCHEDULER.TIMELINE_DAY",
20834
20840
  "timeline-week": "VC_SCHEDULER.TIMELINE_WEEK"
20835
- }, I = y(() => t.views.map((H) => ({ value: H, label: o(k[H]) }))), U = B(t.view ?? t.views[0] ?? "month"), q = y({
20841
+ }, x = y(() => t.views.map((H) => ({ value: H, label: o(k[H]) }))), U = B(t.view ?? t.views[0] ?? "month"), q = y({
20836
20842
  get: () => t.view ?? U.value,
20837
20843
  set: (H) => {
20838
20844
  U.value = H, l("update:view", H);
@@ -20844,7 +20850,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20844
20850
  }
20845
20851
  }), me = y(() => {
20846
20852
  const H = te.value, ne = /* @__PURE__ */ new Date();
20847
- return q.value === "timeline-day" ? Gl(H, ne) : q.value === "timeline-week" ? xc(H, ne, { weekStartsOn: t.firstDayOfWeek % 7 }) : qo(H, ne);
20853
+ return q.value === "timeline-day" ? Gl(H, ne) : q.value === "timeline-week" ? Ic(H, ne, { weekStartsOn: t.firstDayOfWeek % 7 }) : qo(H, ne);
20848
20854
  }), j = y(() => {
20849
20855
  const H = te.value, ne = t.firstDayOfWeek % 7;
20850
20856
  if (q.value === "timeline-day") return { start: Ge(H), end: Go(H) };
@@ -20855,7 +20861,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20855
20861
  }), G = y(() => Y_(t.events, j.value)), ae = y(() => t.loading && G.value.length === 0), Z = y(() => q.value === "month" ? r.value ? "agenda" : "month" : "timeline"), W = CE({
20856
20862
  date: te,
20857
20863
  view: q,
20858
- firstDayOfWeek: Ie(t, "firstDayOfWeek"),
20864
+ firstDayOfWeek: xe(t, "firstDayOfWeek"),
20859
20865
  onDateChange: (H) => {
20860
20866
  te.value = H;
20861
20867
  }
@@ -20863,8 +20869,8 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20863
20869
  return Be(_E, {
20864
20870
  focusedDate: te,
20865
20871
  view: q,
20866
- editable: Ie(t, "editable"),
20867
- firstDayOfWeek: Ie(t, "firstDayOfWeek"),
20872
+ editable: xe(t, "editable"),
20873
+ firstDayOfWeek: xe(t, "firstDayOfWeek"),
20868
20874
  isEventEditable: ke
20869
20875
  }), (H, ne) => Xe((s(), g("div", {
20870
20876
  class: "vc-scheduler",
@@ -20877,7 +20883,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20877
20883
  T(m_, {
20878
20884
  title: a(W).title.value,
20879
20885
  view: q.value,
20880
- views: I.value,
20886
+ views: x.value,
20881
20887
  editable: e.editable,
20882
20888
  current: me.value,
20883
20889
  onPrev: a(W).goPrev,
@@ -20975,7 +20981,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20975
20981
  anchorRect: d.anchorRect,
20976
20982
  draft: d.draft ?? i,
20977
20983
  save: O,
20978
- more: x,
20984
+ more: I,
20979
20985
  close: P
20980
20986
  }, () => [
20981
20987
  T(eE, {
@@ -20983,7 +20989,7 @@ const _E = Symbol("VcSchedulerCalendarContext"), kE = ["aria-busy"], aR = /* @__
20983
20989
  "anchor-rect": d.anchorRect,
20984
20990
  draft: d.draft ?? i,
20985
20991
  onSave: O,
20986
- onMore: x,
20992
+ onMore: I,
20987
20993
  onClose: P
20988
20994
  }, null, 8, ["open", "anchor-rect", "draft"])
20989
20995
  ]),
@@ -21045,7 +21051,7 @@ export {
21045
21051
  j$ as N,
21046
21052
  oi as O,
21047
21053
  O$ as P,
21048
- I$ as Q,
21054
+ x$ as Q,
21049
21055
  Zo as R,
21050
21056
  nR as S,
21051
21057
  Xw as T,
@@ -21064,7 +21070,7 @@ export {
21064
21070
  X$ as a3,
21065
21071
  D$ as a4,
21066
21072
  cv as a5,
21067
- x$ as a6,
21073
+ I$ as a6,
21068
21074
  pi as a7,
21069
21075
  Bf as a8,
21070
21076
  Q$ as a9,
@@ -21106,7 +21112,7 @@ export {
21106
21112
  va as ai,
21107
21113
  Bg as aj,
21108
21114
  Ka as ak,
21109
- xt as al,
21115
+ It as al,
21110
21116
  Ym as am,
21111
21117
  ct as an,
21112
21118
  vl as ao,
@@ -21132,54 +21138,53 @@ export {
21132
21138
  Yl as b7,
21133
21139
  uu as b8,
21134
21140
  cu as b9,
21135
- zn as bA,
21136
- Wc as bB,
21137
- Qo as bC,
21138
- Hc as bD,
21139
- m$ as bE,
21140
- d$ as bF,
21141
- Zc as bG,
21142
- sa as bH,
21143
- Ua as bI,
21144
- L$ as bJ,
21145
- M$ as bK,
21146
- _f as bL,
21147
- Tf as bM,
21148
- zc as bN,
21149
- jo as bO,
21150
- wf as bP,
21151
- Zl as bQ,
21152
- Jo as bR,
21153
- Iu as bS,
21154
- Mf as bT,
21155
- fi as bU,
21156
- ua as bV,
21141
+ Wc as bA,
21142
+ Qo as bB,
21143
+ Hc as bC,
21144
+ m$ as bD,
21145
+ d$ as bE,
21146
+ Zc as bF,
21147
+ sa as bG,
21148
+ Ua as bH,
21149
+ L$ as bI,
21150
+ M$ as bJ,
21151
+ _f as bK,
21152
+ Tf as bL,
21153
+ zc as bM,
21154
+ jo as bN,
21155
+ Zl as bO,
21156
+ Jo as bP,
21157
+ xu as bQ,
21158
+ Mf as bR,
21159
+ fi as bS,
21160
+ Cf as bT,
21161
+ ua as bU,
21157
21162
  du as ba,
21158
21163
  v$ as bb,
21159
21164
  k$ as bc,
21160
21165
  ei as bd,
21161
21166
  _$ as be,
21162
- Cf as bf,
21163
- f$ as bg,
21164
- ai as bh,
21165
- ui as bi,
21166
- C$ as bj,
21167
- py as bk,
21168
- gy as bl,
21169
- vu as bm,
21170
- ry as bn,
21171
- by as bo,
21172
- Si as bp,
21173
- ph as bq,
21174
- _i as br,
21175
- ln as bs,
21176
- cy as bt,
21177
- ki as bu,
21178
- Uu as bv,
21179
- fu as bw,
21180
- Of as bx,
21181
- Uc as by,
21182
- Rf as bz,
21167
+ f$ as bf,
21168
+ ai as bg,
21169
+ ui as bh,
21170
+ C$ as bi,
21171
+ py as bj,
21172
+ gy as bk,
21173
+ vu as bl,
21174
+ ry as bm,
21175
+ by as bn,
21176
+ Si as bo,
21177
+ ph as bp,
21178
+ _i as bq,
21179
+ ln as br,
21180
+ cy as bs,
21181
+ ki as bt,
21182
+ Uu as bu,
21183
+ fu as bv,
21184
+ Of as bw,
21185
+ Uc as bx,
21186
+ Rf as by,
21187
+ zn as bz,
21183
21188
  ma as c,
21184
21189
  E1 as d,
21185
21190
  b1 as e,