@vc-shell/framework 2.6.0-pr373.b28bcd1 → 2.6.0-pr373.c782854

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/ai-agent/index.js +2 -2
  2. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-C_7LORbD.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CmsM1ooA.js} +138 -138
  3. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CmsM1ooA.js.map +1 -0
  4. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-BKmeSat7.js → VcScheduler.vue_vue_type_script_setup_true_lang-CmKZGfx9.js} +244 -244
  5. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-CmKZGfx9.js.map +1 -0
  6. package/dist/chunks/{index-Cz_CaRfA.js → index-_JlFbcuN.js} +1 -1
  7. package/dist/chunks/{index-Cz_CaRfA.js.map → index-_JlFbcuN.js.map} +1 -1
  8. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
  9. package/dist/framework.js +9 -9
  10. package/dist/tsconfig.tsbuildinfo +1 -1
  11. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  12. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
  13. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  14. package/dist/ui/components/organisms/vc-data-table/types.d.ts +1 -1
  15. package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
  16. package/dist/ui/components/{organisms/vc-blade/_internal/BladeHeaderControls.vue.d.ts → shared/header-controls/header-controls.vue.d.ts} +1 -1
  17. package/dist/ui/components/shared/header-controls/header-controls.vue.d.ts.map +1 -0
  18. package/dist/ui/components/shared/header-controls/index.d.ts +2 -0
  19. package/dist/ui/components/shared/header-controls/index.d.ts.map +1 -0
  20. package/dist/ui/components/shared/shortcut-kbd/index.d.ts +2 -0
  21. package/dist/ui/components/shared/shortcut-kbd/index.d.ts.map +1 -0
  22. package/dist/ui/components/{organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts → shared/shortcut-kbd/shortcut-kbd.vue.d.ts} +1 -1
  23. package/dist/ui/components/shared/shortcut-kbd/shortcut-kbd.vue.d.ts.map +1 -0
  24. package/dist/ui/components/shared/shortcut-tooltip/index.d.ts +2 -0
  25. package/dist/ui/components/shared/shortcut-tooltip/index.d.ts.map +1 -0
  26. package/dist/ui/components/{organisms/vc-blade/_internal/toolbar/ShortcutTooltip.vue.d.ts → shared/shortcut-tooltip/shortcut-tooltip.vue.d.ts} +2 -2
  27. package/dist/ui/components/shared/shortcut-tooltip/shortcut-tooltip.vue.d.ts.map +1 -0
  28. package/dist/ui/index.js +1 -1
  29. package/package.json +4 -4
  30. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-C_7LORbD.js.map +0 -1
  31. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BKmeSat7.js.map +0 -1
  32. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeaderControls.vue.d.ts.map +0 -1
  33. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +0 -1
  34. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutTooltip.vue.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { nextTick as Re, ref as B, computed as y, getCurrentInstance as Ot, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as m, createElementVNode as w, watch as oe, onMounted as tt, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as lo, provide as De, createBlock as N, unref as n, withCtx as I, withDirectives as Xe, resolveDynamicComponent as qe, vShow as Ct, createCommentVNode as M, toRef as Ie, normalizeClass as X, renderSlot as H, toDisplayString as U, Teleport as gt, createVNode as T, Transition as Ve, normalizeStyle as he, Fragment as J, renderList as de, createTextVNode as ve, mergeProps as Le, withModifiers as fe, isRef as pt, h as no, withKeys as Me, createSlots as Be, markRaw as Tn, useId as Pt, useSlots as bt, TransitionGroup as Pn, toHandlers as Ol, onUnmounted as kt, hasInjectionContext as ao, getCurrentScope as oo, onScopeDispose as Vn, useAttrs as Di, watchEffect as Fn, vModelText as Ni, toRefs as Pi, normalizeProps as ft, guardReactiveProps as mt, vModelCheckbox as Vi, toRaw as io } from "vue";
2
2
  import { ab as Fi, c as lt, x as Ui, d as so, B as al, Q as Un, P as ro, e as co, K as uo, _ as le, u as Vt, A as zi, b as vo, W as fo, h as Hi, L as On, t as Ln, n as Wi, O as Gi, a as ol, af as mo, M as qi, U as zn, E as il, z as Mn, w as Ki, a3 as Yi, Z as go, G as ji, F as po, s as Xi, a8 as Qi } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
3
3
  import { P as $t, af as Zi, aR as Ji, a as es, X as Fe, H as sl, l as Se, aP as bo, N as rl, am as ts, an as ls, x as we, F as Ze, M as ns, t as rt, a8 as as, T as Nl, Q as yt, a0 as os, aS as is, I as _t, V as Qe, ap as ss, u as rs, aT as cs, ak as ho, aU as us, aV as ds, au as yo, aN as wo, O as Pl, aO as vs, q as Pe, v as Rt, E as Co, p as fs, Y as ms, y as gs, az as ps, C as bs, w as wt, s as hs, aW as Vl, K as ko, aX as _o, aY as Eo, aZ as ll, a_ as So, a$ as ys, A as $o, n as ws, o as mn } from "./VcScheduler.vue_vue_type_style_index_0_lang-Cjmi5lAM.js";
4
- import { q as Ft, p as gn, o as Cs, n as Ro, r as ks, v as _s, w as Es, f as Hn, x as Ss, _ as $s } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-C_7LORbD.js";
4
+ import { q as Ft, p as gn, o as Cs, n as Ro, r as ks, v as _s, w as Es, f as Hn, x as Ss, _ as $s } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CmsM1ooA.js";
5
5
  import { s as Fl, f as Wn, o as Gn, d as Rs } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
6
6
  import { u as ze } from "./vendor-vue-i18n-LO-EJStU.js";
7
7
  import As from "../assets/d5f9664ebbfb104b.svg";
@@ -1164,13 +1164,13 @@ const Xc = Ji, Qc = /* @__PURE__ */ Q({
1164
1164
  }
1165
1165
  }
1166
1166
  }
1167
- function re(K) {
1167
+ function ce(K) {
1168
1168
  !t.closeOnEscape || !f.value || K.key !== "Escape" || (K.preventDefault(), _("escape"));
1169
1169
  }
1170
1170
  return oe(
1171
1171
  () => f.value,
1172
1172
  async (K) => {
1173
- document.removeEventListener("keydown", re), K && (P(), t.closeOnEscape && document.addEventListener("keydown", re), t.autoFocusPanel && (await Re(), u.value?.focus()));
1173
+ document.removeEventListener("keydown", ce), K && (P(), t.closeOnEscape && document.addEventListener("keydown", ce), t.autoFocusPanel && (await Re(), u.value?.focus()));
1174
1174
  },
1175
1175
  { immediate: !0 }
1176
1176
  ), oe(
@@ -1180,7 +1180,7 @@ const Xc = Ji, Qc = /* @__PURE__ */ Q({
1180
1180
  },
1181
1181
  { deep: !0 }
1182
1182
  ), He(() => {
1183
- document.removeEventListener("keydown", re);
1183
+ document.removeEventListener("keydown", ce);
1184
1184
  }), (K, W) => (s(), m("div", lu, [
1185
1185
  K.$slots.trigger ? (s(), m("div", {
1186
1186
  key: 0,
@@ -2191,7 +2191,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Pu = {
2191
2191
  H(h.$slots, "actions")
2192
2192
  ])) : M("", !0)
2193
2193
  ]),
2194
- !n(r) && e.closable ? (s(), N(_s, {
2194
+ !n(r) && e.closable ? (s(), N(n(_s), {
2195
2195
  key: 3,
2196
2196
  maximized: !!n(i)?.maximized,
2197
2197
  onExpand: b,
@@ -2859,7 +2859,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Pu = {
2859
2859
  }
2860
2860
  }
2861
2861
  }
2862
- return (u, v) => e.shortcut ? (s(), N(Es, {
2862
+ return (u, v) => e.shortcut ? (s(), N(n(Es), {
2863
2863
  key: 0,
2864
2864
  shortcut: e.shortcut
2865
2865
  }, {
@@ -3546,19 +3546,19 @@ const pv = { class: "vc-widget-container-desktop" }, bv = { class: "vc-widget-co
3546
3546
  function Z() {
3547
3547
  c.closeOnOverlay && x("overlay");
3548
3548
  }
3549
- const re = B(0), K = B(!1);
3549
+ const ce = B(0), K = B(!1);
3550
3550
  function W(se) {
3551
- !c.draggable || !D.value || (re.value = se.touches[0].clientY, K.value = !0);
3551
+ !c.draggable || !D.value || (ce.value = se.touches[0].clientY, K.value = !0);
3552
3552
  }
3553
3553
  function ne(se) {
3554
3554
  if (!K.value || !v.value) return;
3555
- const ye = se.touches[0].clientY - re.value;
3555
+ const ye = se.touches[0].clientY - ce.value;
3556
3556
  ye > 0 && (v.value.style.transform = `translateY(${ye}px)`, v.value.style.transition = "none");
3557
3557
  }
3558
3558
  function ee(se) {
3559
3559
  if (!K.value || !v.value) return;
3560
3560
  K.value = !1;
3561
- const ye = se.changedTouches[0].clientY - re.value, Ee = v.value.offsetHeight, $e = Ee * c.closeThreshold;
3561
+ const ye = se.changedTouches[0].clientY - ce.value, Ee = v.value.offsetHeight, $e = Ee * c.closeThreshold;
3562
3562
  ye > $e ? (v.value.style.transition = "transform 0.2s ease", v.value.style.transform = `translateY(${Ee}px)`, setTimeout(() => {
3563
3563
  x("action");
3564
3564
  }, 200)) : (v.value.style.transition = "transform 0.2s ease", v.value.style.transform = "", setTimeout(() => {
@@ -3583,7 +3583,7 @@ const pv = { class: "vc-widget-container-desktop" }, bv = { class: "vc-widget-co
3583
3583
  function ae(se) {
3584
3584
  _e || !c.modelValue || !c.trapFocus || !v.value || se.target instanceof Node && !v.value.contains(se.target) && G();
3585
3585
  }
3586
- function ce(se) {
3586
+ function ue(se) {
3587
3587
  if (!c.modelValue)
3588
3588
  return;
3589
3589
  if (se.key === "Escape") {
@@ -3619,12 +3619,12 @@ const pv = { class: "vc-widget-container-desktop" }, bv = { class: "vc-widget-co
3619
3619
  });
3620
3620
  }
3621
3621
  function te() {
3622
- b.value || typeof document > "u" || (b.value = !0, p.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", ce), document.addEventListener("focusin", ae), c.lockScroll && i(), c.autoFocus && Re(() => {
3622
+ b.value || typeof document > "u" || (b.value = !0, p.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", ue), document.addEventListener("focusin", ae), c.lockScroll && i(), c.autoFocus && Re(() => {
3623
3623
  G();
3624
3624
  }));
3625
3625
  }
3626
3626
  function me() {
3627
- !b.value || typeof document > "u" || (b.value = !1, document.removeEventListener("keydown", ce), document.removeEventListener("focusin", ae), c.lockScroll && o(), ie());
3627
+ !b.value || typeof document > "u" || (b.value = !1, document.removeEventListener("keydown", ue), document.removeEventListener("focusin", ae), c.lockScroll && o(), ie());
3628
3628
  }
3629
3629
  return oe(
3630
3630
  () => c.modelValue,
@@ -4121,15 +4121,15 @@ const tf = cc(ef), lf = ["aria-busy", "aria-labelledby", "aria-label"], nf = {
4121
4121
  const v = () => {
4122
4122
  u !== void 0 && (cancelAnimationFrame(u), u = void 0);
4123
4123
  };
4124
- oe([() => !!t.loading, () => c?.value.param], ([Z, re], K) => {
4125
- K?.length && re !== K[1] && (v(), d.value = !1), !(Z || !K?.[0]) && (v(), u = requestAnimationFrame(() => {
4124
+ oe([() => !!t.loading, () => c?.value.param], ([Z, ce], K) => {
4125
+ K?.length && ce !== K[1] && (v(), d.value = !1), !(Z || !K?.[0]) && (v(), u = requestAnimationFrame(() => {
4126
4126
  u = void 0, t.loading || (d.value = !0);
4127
4127
  }));
4128
4128
  }), kt(v);
4129
4129
  const b = y(() => !!t.loading && !d.value), p = y(() => !!t.loading && d.value);
4130
4130
  De(Gi, b), bt();
4131
4131
  const f = a, { isMobile: h, isDesktop: g } = Fe(), S = Hn(), { id: C } = S, E = !!c, A = Ce(ro, void 0), L = Ce(Un, void 0), F = y(() => E ? S.expanded.value : t.expanded), D = y(() => E ? S.closable.value : t.closable), V = Di(), P = y(() => {
4132
- const { class: Z, style: re, onClose: K, ...W } = V;
4132
+ const { class: Z, style: ce, onClose: K, ...W } = V;
4133
4133
  return W;
4134
4134
  });
4135
4135
  function $() {
@@ -4147,15 +4147,15 @@ const tf = cc(ef), lf = ["aria-busy", "aria-labelledby", "aria-label"], nf = {
4147
4147
  });
4148
4148
  const z = B(null), Y = B(null);
4149
4149
  return oe(b, (Z) => {
4150
- const re = z.value;
4151
- !Z || !re || document.activeElement && re.contains(document.activeElement) && re.focus({ preventScroll: !0 });
4150
+ const ce = z.value;
4151
+ !Z || !ce || document.activeElement && ce.contains(document.activeElement) && ce.focus({ preventScroll: !0 });
4152
4152
  }), tt(() => At(() => z.value)), oe(
4153
4153
  () => L?.value?.maximized,
4154
4154
  () => At(() => z.value)
4155
4155
  ), oe(
4156
4156
  () => !!t.loading,
4157
4157
  () => At(() => z.value)
4158
- ), (Z, re) => (s(), m("div", Le({
4158
+ ), (Z, ce) => (s(), m("div", Le({
4159
4159
  ref_key: "bladeRef",
4160
4160
  ref: z
4161
4161
  }, P.value, {
@@ -5271,14 +5271,14 @@ const Mf = {
5271
5271
  /^>/m
5272
5272
  // Blockquotes
5273
5273
  ];
5274
- let Z = 0, re = 0;
5274
+ let Z = 0, ce = 0;
5275
5275
  return z.forEach((K) => {
5276
5276
  const W = x.match(K);
5277
5277
  W && (Z += W.length);
5278
5278
  }), Y.forEach((K) => {
5279
5279
  const W = x.match(K);
5280
- W && (re += W.length);
5281
- }), Z > re * 2 ? "html" : "markdown";
5280
+ W && (ce += W.length);
5281
+ }), Z > ce * 2 ? "html" : "markdown";
5282
5282
  }
5283
5283
  const S = y(() => {
5284
5284
  const x = [
@@ -5455,7 +5455,7 @@ const Mf = {
5455
5455
  const z = x.target;
5456
5456
  if (!z.files?.length || !l.assetsFolder) return;
5457
5457
  const Y = Array.from(z.files), Z = new FormData();
5458
- Y.forEach((re) => Z.append("image", re));
5458
+ Y.forEach((ce) => Z.append("image", ce));
5459
5459
  try {
5460
5460
  (await (await fetch(`/api/assets?folderUrl=/${l.assetsFolder}`, {
5461
5461
  method: "POST",
@@ -5463,8 +5463,8 @@ const Mf = {
5463
5463
  })).json()).forEach((W) => {
5464
5464
  W.url && O.value?.chain().focus().setImage({ src: W.url }).run();
5465
5465
  });
5466
- } catch (re) {
5467
- console.error("Image upload failed:", re);
5466
+ } catch (ce) {
5467
+ console.error("Image upload failed:", ce);
5468
5468
  }
5469
5469
  }
5470
5470
  return (x, z) => n(t) ? (s(), m("div", qf, [
@@ -5698,13 +5698,13 @@ const Mf = {
5698
5698
  function Z() {
5699
5699
  x = Date.now(), window.clearTimeout(_), _ = window.setTimeout(R, z);
5700
5700
  }
5701
- function re() {
5701
+ function ce() {
5702
5702
  z = k, Z();
5703
5703
  }
5704
5704
  function K() {
5705
5705
  window.clearTimeout(_);
5706
5706
  }
5707
- return { pause: Y, resume: Z, start: re, clear: K };
5707
+ return { pause: Y, resume: Z, start: ce, clear: K };
5708
5708
  }
5709
5709
  He(() => {
5710
5710
  p.value?.clear(), h.value?.disconnect();
@@ -6626,7 +6626,7 @@ const sg = {
6626
6626
  options: () => t.options,
6627
6627
  modelValue: () => t.modelValue,
6628
6628
  optionValue: () => t.optionValue
6629
- }), { isOpened: _, isFocused: x, dropdownToggleRef: z, dropdownRef: Y, searchRef: Z, dropdownStyle: re, toggleDropdown: K, closeDropdown: W } = og({
6629
+ }), { isOpened: _, isFocused: x, dropdownToggleRef: z, dropdownRef: Y, searchRef: Z, dropdownStyle: ce, toggleDropdown: K, closeDropdown: W } = og({
6630
6630
  disabled: () => t.disabled ?? !1,
6631
6631
  onItemSelect: (q) => {
6632
6632
  k.value[q] && ne(k.value[q]);
@@ -6750,7 +6750,7 @@ const sg = {
6750
6750
  ref_key: "dropdownComponentRef",
6751
6751
  ref: g,
6752
6752
  "is-opened": n(_),
6753
- "dropdown-style": n(re),
6753
+ "dropdown-style": n(ce),
6754
6754
  "available-options": n(k),
6755
6755
  "option-label": e.optionLabel
6756
6756
  }, { ariaLabel: e.label || e.name }, {
@@ -8762,7 +8762,7 @@ const Da = /* @__PURE__ */ Q({
8762
8762
  return;
8763
8763
  W.updateScrollState?.();
8764
8764
  }
8765
- function re(W) {
8765
+ function ce(W) {
8766
8766
  return u.value?.id === W;
8767
8767
  }
8768
8768
  function K(W) {
@@ -8871,7 +8871,7 @@ const Da = /* @__PURE__ */ Q({
8871
8871
  key: ee.id,
8872
8872
  type: "button",
8873
8873
  "data-widget-id": ee.id,
8874
- class: X(["app-hub-content__item app-hub-content__item--widget", { "app-hub-content__item--active": re(ee.id) }]),
8874
+ class: X(["app-hub-content__item app-hub-content__item--widget", { "app-hub-content__item--active": ce(ee.id) }]),
8875
8875
  onClick: (q) => x(ee)
8876
8876
  }, [
8877
8877
  w("div", Sb, [
@@ -9597,7 +9597,7 @@ const th = {
9597
9597
  });
9598
9598
  const Z = (K) => {
9599
9599
  r.value = "", i.closeMenu(), l("item:click", K);
9600
- }, re = (K) => {
9600
+ }, ce = (K) => {
9601
9601
  i.closeMenu(), l("switch-app", K);
9602
9602
  };
9603
9603
  return (K, W) => (s(), m(J, null, [
@@ -9716,7 +9716,7 @@ const th = {
9716
9716
  "apps-list": t.appsList,
9717
9717
  "show-applications": !t.disableAppHub,
9718
9718
  mobile: "",
9719
- onSwitchApp: re
9719
+ onSwitchApp: ce
9720
9720
  }, Be({ _: 2 }, [
9721
9721
  K.$slots["app-hub"] && !t.disableAppHub ? {
9722
9722
  name: "applications",
@@ -9737,7 +9737,7 @@ const th = {
9737
9737
  "apps-list": t.appsList,
9738
9738
  "show-applications": !t.disableAppHub,
9739
9739
  mobile: "",
9740
- onSwitchApp: re
9740
+ onSwitchApp: ce
9741
9741
  }, Be({ _: 2 }, [
9742
9742
  K.$slots["app-hub"] && !t.disableAppHub ? {
9743
9743
  name: "applications",
@@ -14430,11 +14430,11 @@ const c1 = {
14430
14430
  emits: ["click", "select", "action", "cell-value-change", "expand-toggle"],
14431
14431
  setup(e, { emit: a }) {
14432
14432
  const t = e, l = a;
14433
- function r(ce) {
14434
- l("expand-toggle", t.item, t.index, ce);
14433
+ function r(ue) {
14434
+ l("expand-toggle", t.item, t.index, ue);
14435
14435
  }
14436
- function i(ce, ie) {
14437
- l("cell-value-change", ce.field || ce.id, ie.value);
14436
+ function i(ue, ie) {
14437
+ l("cell-value-change", ue.field || ue.id, ie.value);
14438
14438
  }
14439
14439
  const o = B(null), c = B(null), d = B(!1), u = B(null);
14440
14440
  function v() {
@@ -14446,31 +14446,31 @@ const c1 = {
14446
14446
  u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
14447
14447
  }
14448
14448
  const p = B(0), f = B(0), h = B(!1), g = B(!1), S = B(null), C = B(0), E = B(0), A = B(0), L = B(0), F = B(0), D = B(0), V = B(null), { activeSwipeId: P, setActiveSwipe: $ } = r1(), O = y(() => t.item[t.dataKey] ?? `item-${t.index}`), R = y(() => t.anySelected && t.selectionMode !== void 0), k = y(() => t.anySelected ? [] : t.actions ?? []), _ = y(() => k.value.length > 2), x = y(() => k.value.slice(0, 2)), z = y(() => t.actions ?? []), Y = y(() => {
14449
- const ce = k.value.length;
14450
- return Math.min(ce, ce > 2 ? 3 : 2) * 70;
14449
+ const ue = k.value.length;
14450
+ return Math.min(ue, ue > 2 ? 3 : 2) * 70;
14451
14451
  });
14452
- function Z(ce, ie = 300) {
14452
+ function Z(ue, ie = 300) {
14453
14453
  S.value !== null && cancelAnimationFrame(S.value);
14454
14454
  const te = p.value, me = performance.now();
14455
14455
  let se = L.value, ye = te;
14456
14456
  h.value = !0;
14457
14457
  function Ee($e) {
14458
14458
  if ($e - me < ie) {
14459
- const st = (ce - ye) * h1, at = se * y1, Et = (st - at) / w1;
14459
+ const st = (ue - ye) * h1, at = se * y1, Et = (st - at) / w1;
14460
14460
  se += Et, ye += se, p.value = ye, f.value = Math.abs(p.value), S.value = requestAnimationFrame(Ee);
14461
14461
  } else
14462
- p.value = ce, f.value = Math.abs(ce), h.value = !1, S.value = null;
14462
+ p.value = ue, f.value = Math.abs(ue), h.value = !1, S.value = null;
14463
14463
  }
14464
14464
  S.value = requestAnimationFrame(Ee);
14465
14465
  }
14466
- function re(ce) {
14466
+ function ce(ue) {
14467
14467
  if (h.value || k.value.length === 0) return;
14468
- const ie = ce.touches[0];
14468
+ const ie = ue.touches[0];
14469
14469
  C.value = ie.clientX, E.value = ie.clientY, A.value = p.value, L.value = 0, F.value = Date.now(), D.value = ie.clientX, V.value = null, $(String(O.value));
14470
14470
  }
14471
- function K(ce) {
14471
+ function K(ue) {
14472
14472
  if (h.value || k.value.length === 0 || P.value !== String(O.value)) return;
14473
- const ie = ce.touches[0], te = ie.clientX, me = te - C.value, se = ie.clientY - E.value;
14473
+ const ie = ue.touches[0], te = ie.clientX, me = te - C.value, se = ie.clientY - E.value;
14474
14474
  if (V.value === null) {
14475
14475
  const We = Math.abs(me), st = Math.abs(se);
14476
14476
  if (We >= qa || st >= qa)
@@ -14480,7 +14480,7 @@ const c1 = {
14480
14480
  }
14481
14481
  if (V.value === "vertical")
14482
14482
  return;
14483
- ce.preventDefault();
14483
+ ue.preventDefault();
14484
14484
  const ye = Date.now(), Ee = ye - F.value;
14485
14485
  Ee > 0 && (L.value = (te - D.value) / Ee), F.value = ye, D.value = te;
14486
14486
  let $e = A.value + me;
@@ -14491,8 +14491,8 @@ const c1 = {
14491
14491
  $e > 0 && ($e = 0), p.value = $e, f.value = Math.abs($e);
14492
14492
  }
14493
14493
  function W() {
14494
- const ce = V.value === "vertical" || V.value === null;
14495
- if (V.value = null, ce || h.value || k.value.length === 0 || P.value !== String(O.value)) return;
14494
+ const ue = V.value === "vertical" || V.value === null;
14495
+ if (V.value = null, ue || h.value || k.value.length === 0 || P.value !== String(O.value)) return;
14496
14496
  const ie = Math.abs(L.value), te = L.value < 0 ? -1 : 1;
14497
14497
  if (ie > 0.5)
14498
14498
  te < 0 ? Z(-Y.value) : Z(0);
@@ -14503,8 +14503,8 @@ const c1 = {
14503
14503
  }
14504
14504
  oe(
14505
14505
  P,
14506
- (ce) => {
14507
- (!ce || ce !== String(O.value)) && p.value !== 0 && Z(0);
14506
+ (ue) => {
14507
+ (!ue || ue !== String(O.value)) && p.value !== 0 && Z(0);
14508
14508
  },
14509
14509
  { immediate: !0 }
14510
14510
  );
@@ -14525,20 +14525,20 @@ const c1 = {
14525
14525
  function q() {
14526
14526
  l("select", t.item, t.index);
14527
14527
  }
14528
- function _e(ce) {
14529
- ce.disabled || (ne(), l("action", ce, t.item, t.index));
14528
+ function _e(ue) {
14529
+ ue.disabled || (ne(), l("action", ue, t.item, t.index));
14530
14530
  }
14531
14531
  function G() {
14532
14532
  ne(), g.value = !0;
14533
14533
  }
14534
- function ae(ce) {
14535
- l("action", ce, t.item, t.index);
14534
+ function ae(ue) {
14535
+ l("action", ue, t.item, t.index);
14536
14536
  }
14537
14537
  return tt(() => {
14538
- c.value && (c.value.addEventListener("touchstart", re, { passive: !0 }), c.value.addEventListener("touchmove", K, { passive: !1 }), c.value.addEventListener("touchend", W, { passive: !0 }));
14538
+ c.value && (c.value.addEventListener("touchstart", ce, { passive: !0 }), c.value.addEventListener("touchmove", K, { passive: !1 }), c.value.addEventListener("touchend", W, { passive: !0 }));
14539
14539
  }), He(() => {
14540
- c.value && (c.value.removeEventListener("touchstart", re), c.value.removeEventListener("touchmove", K), c.value.removeEventListener("touchend", W)), S.value !== null && cancelAnimationFrame(S.value), u.value && clearTimeout(u.value);
14541
- }), (ce, ie) => Xe((s(), m("div", {
14540
+ c.value && (c.value.removeEventListener("touchstart", ce), c.value.removeEventListener("touchmove", K), c.value.removeEventListener("touchend", W)), S.value !== null && cancelAnimationFrame(S.value), u.value && clearTimeout(u.value);
14541
+ }), (ue, ie) => Xe((s(), m("div", {
14542
14542
  ref_key: "containerRef",
14543
14543
  ref: o,
14544
14544
  class: X(["vc-data-table-mobile-card", {
@@ -14702,7 +14702,7 @@ const c1 = {
14702
14702
  onTouchstart: ie[6] || (ie[6] = fe(() => {
14703
14703
  }, ["stop"]))
14704
14704
  }, [
14705
- H(ce.$slots, "expansion")
14705
+ H(ue.$slots, "expansion")
14706
14706
  ], 32)) : M("", !0)
14707
14707
  ], 4),
14708
14708
  k.value.length > 0 ? (s(), m("div", {
@@ -14895,14 +14895,14 @@ const A1 = { class: "vc-pull-to-refresh__indicator-content" }, T1 = { class: "vc
14895
14895
  const x = d.value, z = performance.now();
14896
14896
  let Y = h.value, Z = x;
14897
14897
  b.value = !0;
14898
- function re(K) {
14898
+ function ce(K) {
14899
14899
  if (K - z < _) {
14900
14900
  const ne = (k - Z) * O1, ee = Y * L1, q = (ne - ee) / M1;
14901
- Y += q, Z += Y, d.value = Math.max(0, Z), p.value = requestAnimationFrame(re);
14901
+ Y += q, Z += Y, d.value = Math.max(0, Z), p.value = requestAnimationFrame(ce);
14902
14902
  } else
14903
14903
  d.value = k, b.value = !1, p.value = null;
14904
14904
  }
14905
- p.value = requestAnimationFrame(re);
14905
+ p.value = requestAnimationFrame(ce);
14906
14906
  }
14907
14907
  function $(k) {
14908
14908
  if (!C.value || b.value || !V()) return;
@@ -14918,8 +14918,8 @@ const A1 = { class: "vc-pull-to-refresh__indicator-content" }, T1 = { class: "vc
14918
14918
  }
14919
14919
  const Y = Date.now(), Z = Y - g.value;
14920
14920
  Z > 0 && (h.value = (x - S.value) / Z), g.value = Y, S.value = x;
14921
- const re = Math.max(0.4, 1 - z / 300);
14922
- let K = z * re;
14921
+ const ce = Math.max(0.4, 1 - z / 300);
14922
+ let K = z * ce;
14923
14923
  const W = l.threshold * 2.5;
14924
14924
  K = Math.min(K, W), d.value = K, v.value = K >= l.threshold;
14925
14925
  }
@@ -15288,8 +15288,8 @@ function G1(e) {
15288
15288
  let b = 0, p = 0, f = {}, h = "", g = [];
15289
15289
  const S = (z) => {
15290
15290
  const Y = {};
15291
- for (const [Z, re] of Object.entries(z))
15292
- Y[Z] = { ...re };
15291
+ for (const [Z, ce] of Object.entries(z))
15292
+ Y[Z] = { ...ce };
15293
15293
  return Y;
15294
15294
  }, C = () => {
15295
15295
  const z = o?.() ?? [];
@@ -15299,7 +15299,7 @@ function G1(e) {
15299
15299
  return Y.size === 0 ? a.value.order.filter((Z) => !!a.value.specs[Z]) : a.value.order.filter((Z) => Y.has(Z) && !!a.value.specs[Z]);
15300
15300
  }, E = (z) => {
15301
15301
  const Y = C(), Z = Y.indexOf(z);
15302
- return Z < 0 ? !1 : (h = z, f = S(a.value.specs), g = Y.slice(Z + 1).filter((re) => !!f[re]), v.value = !0, c?.(), !0);
15302
+ return Z < 0 ? !1 : (h = z, f = S(a.value.specs), g = Y.slice(Z + 1).filter((ce) => !!f[ce]), v.value = !0, c?.(), !0);
15303
15303
  }, A = (z) => {
15304
15304
  !v.value || !h || D(z);
15305
15305
  }, L = () => {
@@ -15311,22 +15311,22 @@ function G1(e) {
15311
15311
  if (Y <= 0) return;
15312
15312
  const Z = C();
15313
15313
  if (Z.length === 0 || !Z.includes(h)) return;
15314
- const re = {};
15314
+ const ce = {};
15315
15315
  for (const ie of Z)
15316
- f[ie] && (re[ie] = f[ie].weight * Y);
15316
+ f[ie] && (ce[ie] = f[ie].weight * Y);
15317
15317
  let K = 0;
15318
15318
  for (const ie of g) {
15319
15319
  const te = f[ie]?.minPx ?? i;
15320
- K += Math.max(0, re[ie] - te);
15320
+ K += Math.max(0, ce[ie] - te);
15321
15321
  }
15322
- const W = Z.reduce((ie, te) => ie + (re[te] ?? 0), 0), ne = Math.max(0, Y - W);
15322
+ const W = Z.reduce((ie, te) => ie + (ce[te] ?? 0), 0), ne = Math.max(0, Y - W);
15323
15323
  K += ne;
15324
- const ee = f[h]?.minPx ?? i, q = Math.max(0, re[h] - ee), _e = Math.max(-q, Math.min(z, K));
15324
+ const ee = f[h]?.minPx ?? i, q = Math.max(0, ce[h] - ee), _e = Math.max(-q, Math.min(z, K));
15325
15325
  if (Math.abs(_e) < 0.5) return;
15326
- const G = { ...re };
15327
- if (G[h] = re[h] + _e, g.length > 0) {
15326
+ const G = { ...ce };
15327
+ if (G[h] = ce[h] + _e, g.length > 0) {
15328
15328
  for (const me of g)
15329
- G[me] = re[me];
15329
+ G[me] = ce[me];
15330
15330
  let ie = _e;
15331
15331
  const te = [...g];
15332
15332
  for (; Math.abs(ie) > 0.5 && te.length > 0; ) {
@@ -15340,8 +15340,8 @@ function G1(e) {
15340
15340
  te.length = 0, te.push(...se);
15341
15341
  }
15342
15342
  }
15343
- const ae = S(f), ce = Z.filter((ie) => !!ae[ie]);
15344
- for (const ie of ce)
15343
+ const ae = S(f), ue = Z.filter((ie) => !!ae[ie]);
15344
+ for (const ie of ue)
15345
15345
  ae[ie] && G[ie] !== void 0 && (ae[ie].weight = G[ie] / Y);
15346
15346
  a.value = { ...a.value, specs: ae }, l();
15347
15347
  }, V = (z) => {
@@ -15356,8 +15356,8 @@ function G1(e) {
15356
15356
  resizable: !0,
15357
15357
  columnId: z,
15358
15358
  isLastResizable: Y === a.value.order.length - 1,
15359
- onResizeStart: (Z, re) => {
15360
- Z && F(Z, re);
15359
+ onResizeStart: (Z, ce) => {
15360
+ Z && F(Z, ce);
15361
15361
  }
15362
15362
  });
15363
15363
  let O = null, R = !1, k = 0;
@@ -15527,25 +15527,25 @@ function Y1(e) {
15527
15527
  }, D = async () => {
15528
15528
  const { valid: Y } = await h();
15529
15529
  Y && (r && await r(R.value), c = a.value.map((Z) => $n(Z)), g(), S.value = /* @__PURE__ */ new Map(), o.value = !1);
15530
- }, V = (Y, Z, re) => {
15530
+ }, V = (Y, Z, ce) => {
15531
15531
  if (Y < 0 || Y >= a.value.length) return;
15532
15532
  const K = A(Y, Z), W = a.value[Y];
15533
- W[Z] = re;
15533
+ W[Z] = ce;
15534
15534
  const ne = new Map(S.value);
15535
- ne.set(K, re), S.value = ne, p(K, re), l?.(Y, Z, re, W);
15535
+ ne.set(K, ce), S.value = ne, p(K, ce), l?.(Y, Z, ce, W);
15536
15536
  }, P = (Y, Z) => {
15537
15537
  if (!(Y < 0 || Y >= a.value.length))
15538
15538
  return a.value[Y][Z];
15539
15539
  }, $ = (Y, Z) => S.value.has(A(Y, Z)), O = y(() => b.value.valid), R = y(() => {
15540
15540
  const Y = [];
15541
- for (const [Z, re] of S.value.entries()) {
15541
+ for (const [Z, ce] of S.value.entries()) {
15542
15542
  const [K, W] = Z.split(":"), ne = parseInt(K, 10), ee = c[ne]?.[W];
15543
- ee !== re && Y.push({
15543
+ ee !== ce && Y.push({
15544
15544
  rowIndex: ne,
15545
15545
  row: a.value[ne],
15546
15546
  field: W,
15547
15547
  oldValue: ee,
15548
- newValue: re
15548
+ newValue: ce
15549
15549
  });
15550
15550
  }
15551
15551
  return Y;
@@ -15565,8 +15565,8 @@ function Y1(e) {
15565
15565
  addRow: (Y) => {
15566
15566
  const Z = Y ?? {};
15567
15567
  a.value.push(Z);
15568
- const re = a.value.length - 1, K = new Set(C.value);
15569
- K.add(re), C.value = K;
15568
+ const ce = a.value.length - 1, K = new Set(C.value);
15569
+ K.add(ce), C.value = K;
15570
15570
  },
15571
15571
  removeRow: (Y) => {
15572
15572
  if (Y < 0 || Y >= a.value.length) return;
@@ -15579,18 +15579,18 @@ function Y1(e) {
15579
15579
  Z.set(A(_e, ee), W);
15580
15580
  }
15581
15581
  S.value = Z;
15582
- const re = /* @__PURE__ */ new Set();
15582
+ const ce = /* @__PURE__ */ new Set();
15583
15583
  for (const K of C.value)
15584
- K !== Y && re.add(K > Y ? K - 1 : K);
15585
- C.value = re;
15584
+ K !== Y && ce.add(K > Y ? K - 1 : K);
15585
+ C.value = ce;
15586
15586
  },
15587
- getCellEditProps: (Y, Z, re) => ({
15587
+ getCellEditProps: (Y, Z, ce) => ({
15588
15588
  editable: o.value,
15589
15589
  fieldId: Z,
15590
15590
  fieldName: `${Z}_${Y}`,
15591
15591
  label: Z,
15592
15592
  rowIndex: Y,
15593
- rules: re,
15593
+ rules: ce,
15594
15594
  onUpdate: (K) => {
15595
15595
  V(Y, K.field, K.value);
15596
15596
  },
@@ -16179,8 +16179,8 @@ function lC(e) {
16179
16179
  );
16180
16180
  if (!l || i.value.order.length === 0)
16181
16181
  return k;
16182
- const _ = new Map(i.value.order.map((W, ne) => [W, ne])), x = k.filter((W) => nt(W.props)), z = k.filter((W) => !nt(W.props)).sort((W, ne) => (_.get(W.props.id) ?? 0) - (_.get(ne.props.id) ?? 0)), Y = x.filter((W) => W.props.selectionMode), Z = x.filter((W) => W.props.expander), re = x.filter((W) => W.props.rowReorder), K = x.filter((W) => W.props.rowEditor);
16183
- return [...Y, ...Z, ...re, ...z, ...K];
16182
+ const _ = new Map(i.value.order.map((W, ne) => [W, ne])), x = k.filter((W) => nt(W.props)), z = k.filter((W) => !nt(W.props)).sort((W, ne) => (_.get(W.props.id) ?? 0) - (_.get(ne.props.id) ?? 0)), Y = x.filter((W) => W.props.selectionMode), Z = x.filter((W) => W.props.expander), ce = x.filter((W) => W.props.rowReorder), K = x.filter((W) => W.props.rowEditor);
16183
+ return [...Y, ...Z, ...ce, ...z, ...K];
16184
16184
  }), E = (k) => {
16185
16185
  if (!d(k)) return !1;
16186
16186
  const _ = C.value.filter((x) => d(x.props));
@@ -16203,13 +16203,13 @@ function lC(e) {
16203
16203
  })), z = W1(x, k), Y = [...i.value.order], Z = new Set(Y);
16204
16204
  for (const W of _)
16205
16205
  Z.has(W.props.id) || Y.push(W.props.id);
16206
- const re = { ...i.value.specs };
16206
+ const ce = { ...i.value.specs };
16207
16207
  let K = Y.length !== i.value.order.length;
16208
16208
  for (const W of _) {
16209
- const ne = z[W.props.id] ?? 1 / _.length, ee = L(W.props, k, ne), q = re[W.props.id];
16210
- (!q || Math.abs(q.weight - ee.weight) > 1e-9 || q.minPx !== ee.minPx || q.maxPx !== ee.maxPx) && (re[W.props.id] = ee, K = !0);
16209
+ const ne = z[W.props.id] ?? 1 / _.length, ee = L(W.props, k, ne), q = ce[W.props.id];
16210
+ (!q || Math.abs(q.weight - ee.weight) > 1e-9 || q.minPx !== ee.minPx || q.maxPx !== ee.maxPx) && (ce[W.props.id] = ee, K = !0);
16211
16211
  }
16212
- K && (i.value = { order: Y, specs: re });
16212
+ K && (i.value = { order: Y, specs: ce });
16213
16213
  }
16214
16214
  let D = !1;
16215
16215
  const V = () => {
@@ -16227,14 +16227,14 @@ function lC(e) {
16227
16227
  return oe(
16228
16228
  a,
16229
16229
  () => {
16230
- const k = a.value.filter((ee) => !nt(ee.props)), _ = k.map((ee) => ee.props.id), x = new Set(_), z = new Set(i.value.order), Y = _.filter((ee) => !z.has(ee)), Z = R ? [] : _.filter((ee) => z.has(ee) && !O.has(ee)), re = R ? [] : [...O].filter((ee) => !x.has(ee)), K = Y.length > 0 || Z.length > 0 || re.length > 0, W = i.value.order.length === 0, ne = e.getAvailableWidth();
16230
+ const k = a.value.filter((ee) => !nt(ee.props)), _ = k.map((ee) => ee.props.id), x = new Set(_), z = new Set(i.value.order), Y = _.filter((ee) => !z.has(ee)), Z = R ? [] : _.filter((ee) => z.has(ee) && !O.has(ee)), ce = R ? [] : [...O].filter((ee) => !x.has(ee)), K = Y.length > 0 || Z.length > 0 || ce.length > 0, W = i.value.order.length === 0, ne = e.getAvailableWidth();
16231
16231
  if (W || Y.length > 0)
16232
16232
  if (W && ne > 0)
16233
16233
  F(ne);
16234
16234
  else {
16235
16235
  const ee = { ...i.value };
16236
16236
  ee.order = [...ee.order], ee.specs = { ...ee.specs };
16237
- const q = _.filter((ae) => ee.specs[ae] && !Y.includes(ae)), _e = q.length > 0 ? q.reduce((ae, ce) => ae + ee.specs[ce].weight, 0) / q.length : 1 / _.length;
16237
+ const q = _.filter((ae) => ee.specs[ae] && !Y.includes(ae)), _e = q.length > 0 ? q.reduce((ae, ue) => ae + ee.specs[ue].weight, 0) / q.length : 1 / _.length;
16238
16238
  for (const ae of k)
16239
16239
  z.has(ae.props.id) || (ee.order.push(ae.props.id), ee.specs[ae.props.id] = L(ae.props, ne, _e));
16240
16240
  const G = _.filter((ae) => ee.specs[ae]);
@@ -16250,7 +16250,7 @@ function lC(e) {
16250
16250
  ee.specs,
16251
16251
  _.filter((G) => ee.specs[G])
16252
16252
  ), i.value = ee;
16253
- } else if (re.length > 0) {
16253
+ } else if (ce.length > 0) {
16254
16254
  const ee = { ...i.value };
16255
16255
  ee.specs = { ...ee.specs }, Sn(
16256
16256
  ee.specs,
@@ -16587,11 +16587,11 @@ function rC(e) {
16587
16587
  },
16588
16588
  { immediate: !0 }
16589
16589
  );
16590
- const Z = y(() => l.value.find((j) => j.props.rowReorder === !0) || null), re = y(() => a.reorderableRows || Z.value !== null), K = y(() => re.value), W = B(), { reorderedItems: ne, pendingReorder: ee } = K1(W, Ie(a, "items"), {
16591
- disabled: y(() => !re.value),
16590
+ const Z = y(() => l.value.find((j) => j.props.rowReorder === !0) || null), ce = y(() => a.reorderableRows || Z.value !== null), K = y(() => ce.value), W = B(), { reorderedItems: ne, pendingReorder: ee } = K1(W, Ie(a, "items"), {
16591
+ disabled: y(() => !ce.value),
16592
16592
  handle: sC,
16593
16593
  onReorder: (j) => t("row-reorder", j)
16594
- }), q = y(() => l.value.find((j) => j.props.expander === !0) || null), _e = y(() => q.value !== null), G = gi(), { filterValues: ae, updateFilter: ce, updateRangeFilter: ie, clearFilter: te, buildPayload: me, hasActiveFilters: se } = X1(
16594
+ }), q = y(() => l.value.find((j) => j.props.expander === !0) || null), _e = y(() => q.value !== null), G = gi(), { filterValues: ae, updateFilter: ue, updateRangeFilter: ie, clearFilter: te, buildPayload: me, hasActiveFilters: se } = X1(
16595
16595
  {
16596
16596
  onFilterChange: (j) => {
16597
16597
  t("filter", { filters: j, filteredValue: a.items });
@@ -16620,7 +16620,7 @@ function rC(e) {
16620
16620
  }
16621
16621
  } else {
16622
16622
  const Ne = pe[Te];
16623
- ce(Te, Ne);
16623
+ ue(Te, Ne);
16624
16624
  }
16625
16625
  Mt();
16626
16626
  }, tn = (j) => {
@@ -16634,7 +16634,7 @@ function rC(e) {
16634
16634
  } else
16635
16635
  te(pe);
16636
16636
  Mt();
16637
- }, dl = y(() => ee.value && re.value ? [...ne.value] : a.items ?? []), ln = (j) => dl.value.indexOf(j), nn = y(() => k.orderedVisibleColumns.value.filter(
16637
+ }, dl = y(() => ee.value && ce.value ? [...ne.value] : a.items ?? []), ln = (j) => dl.value.indexOf(j), nn = y(() => k.orderedVisibleColumns.value.filter(
16638
16638
  (j) => j != null && j.props != null && j.props.id != null
16639
16639
  )), { handleResizeStart: an } = G1({
16640
16640
  columnState: k.columnState,
@@ -16705,7 +16705,7 @@ function rC(e) {
16705
16705
  // Row reorder
16706
16706
  reorderedItems: ne,
16707
16707
  pendingReorder: ee,
16708
- isRowReorderEnabled: re,
16708
+ isRowReorderEnabled: ce,
16709
16709
  showRowDragHandle: K,
16710
16710
  rowReorderListRef: W,
16711
16711
  // Derived computeds
@@ -16992,21 +16992,21 @@ const v$ = {
16992
16992
  ), S = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = B(!1);
16993
16993
  oe(
16994
16994
  () => l.items,
16995
- (ue) => {
16996
- ue && ue.length > 0 && (C.value = !0);
16995
+ (re) => {
16996
+ re && re.length > 0 && (C.value = !0);
16997
16997
  },
16998
16998
  { immediate: !0 }
16999
16999
  );
17000
17000
  const E = Ze(), A = y(() => (l.loading || E.value) && !C.value), L = y(() => {
17001
- const ue = l.pagination;
17002
- if (!ue) return "";
17001
+ const re = l.pagination;
17002
+ if (!re) return "";
17003
17003
  const be = l.totalCount;
17004
- if (be != null && ue.pages > 0) {
17005
- const ke = Math.ceil(be / ue.pages), Oe = (ue.currentPage - 1) * ke + 1, Ye = Math.min(Oe + l.items.length - 1, be);
17004
+ if (be != null && re.pages > 0) {
17005
+ const ke = re.pageSize ?? Math.ceil(be / re.pages), Oe = (re.currentPage - 1) * ke + 1, Ye = Math.min(Oe + l.items.length - 1, be);
17006
17006
  return `${Oe}–${Ye} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${be}`;
17007
17007
  }
17008
- return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${ue.currentPage} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${ue.pages}`;
17009
- }), { isMobile: F } = Fe(), D = y(() => F.value), V = bt(), P = (ue) => ue.replace(/-([a-z])/g, (be, ke) => ke.toUpperCase()), $ = /* @__PURE__ */ new Set([
17008
+ return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${re.currentPage} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${re.pages}`;
17009
+ }), { isMobile: F } = Fe(), D = y(() => F.value), V = bt(), P = (re) => re.replace(/-([a-z])/g, (be, ke) => ke.toUpperCase()), $ = /* @__PURE__ */ new Set([
17010
17010
  "sortable",
17011
17011
  "editable",
17012
17012
  "visible",
@@ -17017,17 +17017,17 @@ const v$ = {
17017
17017
  "rowReorder",
17018
17018
  "expander",
17019
17019
  "mobileVisible"
17020
- ]), O = (ue) => {
17020
+ ]), O = (re) => {
17021
17021
  const be = {};
17022
- for (const ke of Object.keys(ue)) {
17022
+ for (const ke of Object.keys(re)) {
17023
17023
  const Oe = P(ke);
17024
- let Ye = ue[ke];
17024
+ let Ye = re[ke];
17025
17025
  $.has(Oe) && Ye === "" && (Ye = !0), be[Oe] = Ye;
17026
17026
  }
17027
17027
  return be;
17028
17028
  }, R = () => {
17029
- const ue = V.default?.();
17030
- if (!ue) return [];
17029
+ const re = V.default?.();
17030
+ if (!re) return [];
17031
17031
  const be = [], ke = (Oe) => {
17032
17032
  const Ye = Oe.type;
17033
17033
  if (Ye && (Ye.name === "VcColumn" || Ye.__name === "VcColumn")) {
@@ -17041,7 +17041,7 @@ const v$ = {
17041
17041
  }
17042
17042
  Array.isArray(Oe.children) && Oe.children.forEach(ke);
17043
17043
  };
17044
- return ue.forEach(ke), be;
17044
+ return re.forEach(ke), be;
17045
17045
  }, k = new cC();
17046
17046
  De(ys, k);
17047
17047
  const _ = B(0);
@@ -17050,11 +17050,11 @@ const v$ = {
17050
17050
  });
17051
17051
  const x = y(() => {
17052
17052
  _.value;
17053
- const ue = R();
17054
- return ue.length > 0 ? ue : k.getColumns();
17053
+ const re = R();
17054
+ return re.length > 0 ? re : k.getColumns();
17055
17055
  }), z = B(/* @__PURE__ */ new Set()), Y = B(/* @__PURE__ */ new Set()), Z = y(() => {
17056
- const ue = l.columnSwitcher;
17057
- if (!ue || ue === "defined") return [];
17056
+ const re = l.columnSwitcher;
17057
+ if (!re || re === "defined") return [];
17058
17058
  const be = l.items;
17059
17059
  if (!be || be.length === 0) return [];
17060
17060
  const ke = new Set(x.value.map((ut) => ut.props.id)), Oe = be[0];
@@ -17067,16 +17067,16 @@ const v$ = {
17067
17067
  },
17068
17068
  slots: {}
17069
17069
  }));
17070
- }), re = y(() => {
17070
+ }), ce = y(() => {
17071
17071
  const be = x.value.filter((Oe) => Oe.props.visible === !1 || z.value.size > 0 && z.value.has(Oe.props.id) ? !1 : l.showAllColumns ? !0 : !!Oe.props.alwaysVisible), ke = Z.value.filter((Oe) => !z.value.has(Oe.props.id));
17072
17072
  return [...be, ...ke];
17073
- }), K = (ue, be) => ue[l.dataKey]?.toString() || `row-${be}`, W = B(null), ne = B(null), ee = B(null), {
17073
+ }), K = (re, be) => re[l.dataKey]?.toString() || `row-${be}`, W = B(null), ne = B(null), ee = B(null), {
17074
17074
  // Sub-composable instances
17075
17075
  selection: q,
17076
17076
  sort: _e,
17077
17077
  editing: G,
17078
17078
  rowGrouping: ae,
17079
- inlineEdit: ce,
17079
+ inlineEdit: ue,
17080
17080
  cols: ie,
17081
17081
  statePersistence: te,
17082
17082
  // Column filter helpers
@@ -17140,7 +17140,7 @@ const v$ = {
17140
17140
  } = rC({
17141
17141
  props: l,
17142
17142
  emit: r,
17143
- visibleColumns: re,
17143
+ visibleColumns: ce,
17144
17144
  declaredColumns: x,
17145
17145
  hiddenColumnIds: z,
17146
17146
  shownDataDiscoveredColumnIds: Y,
@@ -17154,80 +17154,80 @@ const v$ = {
17154
17154
  _o,
17155
17155
  y(() => ie.engineOutput.value.fillerWidth)
17156
17156
  ), De(Eo, tn);
17157
- const ga = (ue) => {
17158
- r("pagination-click", ue);
17157
+ const ga = (re) => {
17158
+ r("pagination-click", re);
17159
17159
  }, Yt = B(l.searchValue ?? "");
17160
17160
  let jt = null;
17161
- const Ei = (ue) => {
17162
- Yt.value = ue, r("update:searchValue", ue), jt && clearTimeout(jt), jt = setTimeout(() => {
17163
- r("search", ue);
17161
+ const Ei = (re) => {
17162
+ Yt.value = re, r("update:searchValue", re), jt && clearTimeout(jt), jt = setTimeout(() => {
17163
+ r("search", re);
17164
17164
  }, l.searchDebounce ?? 300);
17165
17165
  };
17166
17166
  oe(
17167
17167
  () => l.searchValue,
17168
- (ue) => {
17169
- ue !== void 0 && ue !== Yt.value && (Yt.value = ue);
17168
+ (re) => {
17169
+ re !== void 0 && re !== Yt.value && (Yt.value = re);
17170
17170
  }
17171
17171
  );
17172
- const Si = (ue) => {
17172
+ const Si = (re) => {
17173
17173
  if (!l.infiniteScroll || l.loading) return;
17174
- const be = ue.target, ke = l.infiniteScrollDistance ?? 100;
17174
+ const be = re.target, ke = l.infiniteScrollDistance ?? 100;
17175
17175
  be.scrollHeight - be.scrollTop - be.clientHeight < ke && r("load-more");
17176
- }, dn = y(() => l.addRow?.enabled === !0), pa = y(() => l.addRow?.position ?? "footer"), vn = y(() => l.addRow?.label ?? "Add row"), fn = y(() => l.addRow?.icon ?? "lucide-plus"), $i = (ue) => {
17176
+ }, dn = y(() => l.addRow?.enabled === !0), pa = y(() => l.addRow?.position ?? "footer"), vn = y(() => l.addRow?.label ?? "Add row"), fn = y(() => l.addRow?.icon ?? "lucide-plus"), $i = (re) => {
17177
17177
  }, Ri = () => {
17178
17178
  }, gl = B(!1), pl = B({}), ba = B(null), Ai = y(() => {
17179
- const ue = ba.value;
17180
- return ue ? {
17181
- getBoundingClientRect: () => ue.$el?.getBoundingClientRect() ?? new DOMRect(),
17179
+ const re = ba.value;
17180
+ return re ? {
17181
+ getBoundingClientRect: () => re.$el?.getBoundingClientRect() ?? new DOMRect(),
17182
17182
  get contextElement() {
17183
- return ue.$el;
17183
+ return re.$el;
17184
17184
  }
17185
17185
  } : null;
17186
17186
  }), Xt = B(!1), ha = B(null), Ti = y(() => {
17187
- const ue = ha.value;
17188
- return ue ? {
17189
- getBoundingClientRect: () => (ue.columnSwitcherEl ?? null)?.getBoundingClientRect() ?? new DOMRect(),
17187
+ const re = ha.value;
17188
+ return re ? {
17189
+ getBoundingClientRect: () => (re.columnSwitcherEl ?? null)?.getBoundingClientRect() ?? new DOMRect(),
17190
17190
  get contextElement() {
17191
- return ue.columnSwitcherEl ?? void 0;
17191
+ return re.columnSwitcherEl ?? void 0;
17192
17192
  }
17193
17193
  } : null;
17194
17194
  }), Oi = y(() => {
17195
- let ue = 0;
17195
+ let re = 0;
17196
17196
  for (const be of Object.values(pl.value))
17197
17197
  if (!(be == null || be === "") && !(Array.isArray(be) && be.length === 0)) {
17198
17198
  if (typeof be == "object" && !Array.isArray(be)) {
17199
17199
  const ke = be;
17200
- (ke.start || ke.end) && ue++;
17200
+ (ke.start || ke.end) && re++;
17201
17201
  continue;
17202
17202
  }
17203
- ue++;
17203
+ re++;
17204
17204
  }
17205
- return ue;
17206
- }), Li = (ue) => {
17207
- Mt.value = ue, Lt();
17205
+ return re;
17206
+ }), Li = (re) => {
17207
+ Mt.value = re, Lt();
17208
17208
  }, Mi = () => {
17209
17209
  Mt.value = null, pl.value = {}, Lt();
17210
- }, Ii = (ue, be) => ({
17211
- item: ue,
17210
+ }, Ii = (re, be) => ({
17211
+ item: re,
17212
17212
  index: be,
17213
17213
  columns: fl.value,
17214
17214
  // Selection
17215
- isSelected: q.isSelected(ue),
17216
- isActive: l.activeItemId != null && K(ue, be) === String(l.activeItemId),
17217
- isSelectable: q.canSelect(ue),
17215
+ isSelected: q.isSelected(re),
17216
+ isActive: l.activeItemId != null && K(re, be) === String(l.activeItemId),
17217
+ isSelectable: q.canSelect(re),
17218
17218
  selectionMode: St.value,
17219
17219
  showSelectionCell: Gt.value && !qt.value,
17220
17220
  // Reorder
17221
17221
  reorderable: vl.value,
17222
17222
  showDragHandle: It.value,
17223
17223
  // Expansion
17224
- expandable: sn.value && cn(ue),
17225
- isExpanded: rn(ue),
17224
+ expandable: sn.value && cn(re),
17225
+ isExpanded: rn(re),
17226
17226
  expandedIcon: l.expandedRowIcon,
17227
17227
  collapsedIcon: l.collapsedRowIcon,
17228
17228
  // Editing
17229
- editingRowData: G.getEditingRowData(ue, be),
17230
- isRowEditing: G.isRowEditing(ue),
17229
+ editingRowData: G.getEditingRowData(re, be),
17230
+ isRowEditing: G.isRowEditing(re),
17231
17231
  isInlineEditing: ml.value,
17232
17232
  isCellEditing: G.isCellEditing,
17233
17233
  // Actions
@@ -17238,10 +17238,10 @@ const v$ = {
17238
17238
  getCellAlign: ie.getCellAlign,
17239
17239
  getCellStyle: ie.getCellStyle,
17240
17240
  // Custom class
17241
- rowClass: l.rowClass?.(ue)
17241
+ rowClass: l.rowClass?.(re)
17242
17242
  }), { width: bl } = Mo(ee), xi = y(() => {
17243
17243
  if (!l.pagination || bl.value === 0) return 5;
17244
- const ue = bl.value - Xa, be = Math.floor((ue - 2 * Rn) / Rn);
17244
+ const re = bl.value - Xa, be = Math.floor((re - 2 * Rn) / Rn);
17245
17245
  return be >= 7 ? 5 : be >= 3 ? be : 0;
17246
17246
  }), Bi = y(() => !l.pagination || bl.value === 0 ? !0 : bl.value - Xa >= 5 * Rn);
17247
17247
  return a({
@@ -17256,28 +17256,28 @@ const v$ = {
17256
17256
  addRow: Kt,
17257
17257
  removeRow: ra,
17258
17258
  // Inline editing API
17259
- startEditing: ce.startEditing,
17260
- cancelEditing: ce.cancelEditing,
17261
- saveChanges: ce.saveChanges,
17262
- isEditing: ce.isEditing,
17263
- isValid: ce.isValid,
17264
- isDirty: ce.isDirty,
17265
- pendingChanges: ce.pendingChanges,
17259
+ startEditing: ue.startEditing,
17260
+ cancelEditing: ue.cancelEditing,
17261
+ saveChanges: ue.saveChanges,
17262
+ isEditing: ue.isEditing,
17263
+ isValid: ue.isValid,
17264
+ isDirty: ue.isDirty,
17265
+ pendingChanges: ue.pendingChanges,
17266
17266
  // State persistence API
17267
17267
  clearState: te.clearState,
17268
17268
  saveState: te.saveState
17269
17269
  }), He(() => {
17270
17270
  k.clear(), jt && clearTimeout(jt);
17271
- }), (ue, be) => Xe((s(), m("div", {
17271
+ }), (re, be) => Xe((s(), m("div", {
17272
17272
  ref_key: "tableRootRef",
17273
17273
  ref: W,
17274
17274
  class: "vc-data-table",
17275
17275
  "aria-busy": e.loading || n(E) || void 0
17276
17276
  }, [
17277
- ue.$slots.header ? (s(), m("div", dC, [
17278
- H(ue.$slots, "header")
17277
+ re.$slots.header ? (s(), m("div", dC, [
17278
+ H(re.$slots, "header")
17279
17279
  ])) : M("", !0),
17280
- e.searchable || e.globalFilters?.length || ue.$slots["search-header-actions"] ? (s(), N(n(Xw), {
17280
+ e.searchable || e.globalFilters?.length || re.$slots["search-header-actions"] ? (s(), N(n(Xw), {
17281
17281
  key: 1,
17282
17282
  searchable: e.searchable,
17283
17283
  "model-value": Yt.value,
@@ -17292,7 +17292,7 @@ const v$ = {
17292
17292
  "active-count": Oi.value,
17293
17293
  onClick: be[0] || (be[0] = (ke) => gl.value = !gl.value)
17294
17294
  }, null, 8, ["active-count"])) : M("", !0),
17295
- H(ue.$slots, "search-header-actions")
17295
+ H(re.$slots, "search-header-actions")
17296
17296
  ]),
17297
17297
  _: 3
17298
17298
  }, 8, ["searchable", "model-value", "placeholder"])) : M("", !0),
@@ -17323,7 +17323,7 @@ const v$ = {
17323
17323
  icon: fn.value,
17324
17324
  onAdd: be[4] || (be[4] = (ke) => n(Kt)())
17325
17325
  }, null, 8, ["label", "icon"])) : M("", !0),
17326
- H(ue.$slots, "selection-banner", {
17326
+ H(re.$slots, "selection-banner", {
17327
17327
  count: n(q).selected.value.length,
17328
17328
  totalCount: l.totalCount,
17329
17329
  isSelectAll: n(q).isSelectAllAcrossPages.value,
@@ -17347,14 +17347,14 @@ const v$ = {
17347
17347
  indeterminate: n(q).isPartiallySelected.value && !n(q).isAllSelected.value,
17348
17348
  onChange: n(q).onSelectAll
17349
17349
  }, null, 8, ["model-value", "indeterminate", "onChange"]),
17350
- w("span", mC, U(ue.$t("COMPONENTS.ORGANISMS.VC_TABLE.SELECTED", "Selected")) + ": " + U(n(q).selected.value.length), 1)
17350
+ w("span", mC, U(re.$t("COMPONENTS.ORGANISMS.VC_TABLE.SELECTED", "Selected")) + ": " + U(n(q).selected.value.length), 1)
17351
17351
  ])) : M("", !0),
17352
17352
  T(n(P1), {
17353
17353
  ref_key: "mobileViewRef",
17354
17354
  ref: ma,
17355
17355
  items: n(Wt),
17356
17356
  reorderable: n(vl),
17357
- columns: re.value,
17357
+ columns: ce.value,
17358
17358
  selection: n(q).selected.value,
17359
17359
  "selection-mode": n(St),
17360
17360
  "is-row-selectable": l.isRowSelectable,
@@ -17364,11 +17364,11 @@ const v$ = {
17364
17364
  "pull-to-refresh": e.pullToRefresh,
17365
17365
  "pull-to-refresh-text": e.pullToRefreshText,
17366
17366
  "is-inline-editing": n(ml),
17367
- "new-row-indices": n(ce).newRowIndices.value,
17367
+ "new-row-indices": n(ue).newRowIndices.value,
17368
17368
  "can-expand-row": (ke) => n(sn) && n(cn)(ke),
17369
17369
  "is-row-expanded": n(rn),
17370
17370
  "expanded-icon": e.expandedRowIcon,
17371
- "expand-label": ue.$t("COMPONENTS.ORGANISMS.VC_TABLE.EXPAND_ROW"),
17371
+ "expand-label": re.$t("COMPONENTS.ORGANISMS.VC_TABLE.EXPAND_ROW"),
17372
17372
  onClick: n(ot),
17373
17373
  onSelect: n(Je),
17374
17374
  onAction: n(it),
@@ -17377,7 +17377,7 @@ const v$ = {
17377
17377
  onExpandToggle: be[12] || (be[12] = (ke, Oe, Ye) => n(j)(ke, Oe, Ye))
17378
17378
  }, Be({
17379
17379
  empty: I(() => [
17380
- v.value && ue.$slots["not-found"] ? H(ue.$slots, "not-found", { key: 0 }) : ue.$slots.empty ? H(ue.$slots, "empty", { key: 1 }) : (s(), N(n(fi), {
17380
+ v.value && re.$slots["not-found"] ? H(re.$slots, "not-found", { key: 0 }) : re.$slots.empty ? H(re.$slots, "empty", { key: 1 }) : (s(), N(n(fi), {
17381
17381
  key: 2,
17382
17382
  icon: b.value,
17383
17383
  title: p.value,
@@ -17388,10 +17388,10 @@ const v$ = {
17388
17388
  ]),
17389
17389
  _: 2
17390
17390
  }, [
17391
- ue.$slots.expansion ? {
17391
+ re.$slots.expansion ? {
17392
17392
  name: "expansion",
17393
17393
  fn: I(({ data: ke, index: Oe }) => [
17394
- H(ue.$slots, "expansion", {
17394
+ H(re.$slots, "expansion", {
17395
17395
  data: ke,
17396
17396
  index: Oe
17397
17397
  })
@@ -17476,7 +17476,7 @@ const v$ = {
17476
17476
  "get-item-group-key": n(ae).getItemGroupKey,
17477
17477
  "get-global-index": n(on),
17478
17478
  "get-item-key": K,
17479
- "new-row-indices": n(ce).newRowIndices.value,
17479
+ "new-row-indices": n(ue).newRowIndices.value,
17480
17480
  "get-row-props": Ii,
17481
17481
  onScroll: Si,
17482
17482
  onGroupToggle: be[7] || (be[7] = (ke, Oe) => n(ae).toggleGroupExpansion(ke, Oe)),
@@ -17505,41 +17505,41 @@ const v$ = {
17505
17505
  }, null, 8, ["actions", "row-index", "mode", "position", "max-quick-actions", "onAction"])) : M("", !0)
17506
17506
  ]),
17507
17507
  expansion: I(({ data: ke, index: Oe }) => [
17508
- H(ue.$slots, "expansion", {
17508
+ H(re.$slots, "expansion", {
17509
17509
  data: ke,
17510
17510
  index: Oe
17511
17511
  })
17512
17512
  ]),
17513
17513
  _: 2
17514
17514
  }, [
17515
- ue.$slots["not-found"] || ue.$slots.empty ? {
17515
+ re.$slots["not-found"] || re.$slots.empty ? {
17516
17516
  name: "empty",
17517
17517
  fn: I(() => [
17518
- v.value && ue.$slots["not-found"] ? H(ue.$slots, "not-found", { key: 0 }) : H(ue.$slots, "empty", { key: 1 })
17518
+ v.value && re.$slots["not-found"] ? H(re.$slots, "not-found", { key: 0 }) : H(re.$slots, "empty", { key: 1 })
17519
17519
  ]),
17520
17520
  key: "0"
17521
17521
  } : void 0,
17522
- ue.$slots.loading ? {
17522
+ re.$slots.loading ? {
17523
17523
  name: "loading",
17524
17524
  fn: I(() => [
17525
- H(ue.$slots, "loading")
17525
+ H(re.$slots, "loading")
17526
17526
  ]),
17527
17527
  key: "1"
17528
17528
  } : void 0,
17529
- ue.$slots.groupheader ? {
17529
+ re.$slots.groupheader ? {
17530
17530
  name: "groupheader",
17531
17531
  fn: I(({ data: ke, index: Oe }) => [
17532
- H(ue.$slots, "groupheader", {
17532
+ H(re.$slots, "groupheader", {
17533
17533
  data: ke,
17534
17534
  index: Oe
17535
17535
  })
17536
17536
  ]),
17537
17537
  key: "2"
17538
17538
  } : void 0,
17539
- ue.$slots.groupfooter ? {
17539
+ re.$slots.groupfooter ? {
17540
17540
  name: "groupfooter",
17541
17541
  fn: I(({ data: ke, index: Oe }) => [
17542
- H(ue.$slots, "groupfooter", {
17542
+ H(re.$slots, "groupfooter", {
17543
17543
  data: ke,
17544
17544
  index: Oe
17545
17545
  })
@@ -17547,9 +17547,9 @@ const v$ = {
17547
17547
  key: "3"
17548
17548
  } : void 0
17549
17549
  ]), 1032, ["items", "loading", "skeleton-rows", "columns", "get-column-width", "get-cell-style", "show-selection-cell", "empty-icon", "empty-title", "empty-description", "empty-action-label", "empty-action-handler", "loading-text", "grouping-enabled", "grouped-data", "expandable-row-groups", "is-group-expanded", "get-item-group-key", "get-global-index", "new-row-indices", "get-row-props", "onRowClick", "onSelectionChange", "onRowEdit", "onRowSave", "onRowCancel", "onEditComplete", "onEditCancel", "onCellValueChange", "onCellClick"]),
17550
- ue.$slots.footer && e.items && e.items.length ? (s(), N(n(Sw), { key: 0 }, {
17550
+ re.$slots.footer && e.items && e.items.length ? (s(), N(n(Sw), { key: 0 }, {
17551
17551
  default: I(() => [
17552
- H(ue.$slots, "footer")
17552
+ H(re.$slots, "footer")
17553
17553
  ]),
17554
17554
  _: 3
17555
17555
  })) : M("", !0),
@@ -17570,7 +17570,7 @@ const v$ = {
17570
17570
  class: "vc-data-table__pagination"
17571
17571
  }, [
17572
17572
  w("span", gC, U(L.value), 1),
17573
- H(ue.$slots, "pagination", {
17573
+ H(re.$slots, "pagination", {
17574
17574
  pages: l.pagination.pages,
17575
17575
  currentPage: l.pagination.currentPage,
17576
17576
  onPageClick: ga
@@ -17585,7 +17585,7 @@ const v$ = {
17585
17585
  }, null, 8, ["pages", "current-page", "variant", "max-pages", "show-first-last"])
17586
17586
  ])
17587
17587
  ], 512)) : M("", !0),
17588
- H(ue.$slots, "default")
17588
+ H(re.$slots, "default")
17589
17589
  ], 8, uC)), [
17590
17590
  [n($o), (e.loading || n(E)) && !A.value, "49"]
17591
17591
  ]);
@@ -17734,7 +17734,7 @@ const v$ = {
17734
17734
  function Z(q) {
17735
17735
  l("search:change", q || void 0);
17736
17736
  }
17737
- function re(q) {
17737
+ function ce(q) {
17738
17738
  l("row:reorder", q);
17739
17739
  }
17740
17740
  function K() {
@@ -17786,7 +17786,7 @@ const v$ = {
17786
17786
  onSort: _,
17787
17787
  "onUpdate:selection": x,
17788
17788
  onRowClick: z,
17789
- onRowReorder: re,
17789
+ onRowReorder: ce,
17790
17790
  onCellEditComplete: W,
17791
17791
  onPullRefresh: K,
17792
17792
  "onUpdate:selectAll": ne,
@@ -17816,11 +17816,11 @@ const v$ = {
17816
17816
  }, Be({ _: 2 }, [
17817
17817
  q.$slots[`item_${G.id}`] ? {
17818
17818
  name: "body",
17819
- fn: I(({ data: ae, index: ce }) => [
17819
+ fn: I(({ data: ae, index: ue }) => [
17820
17820
  H(q.$slots, `item_${G.id}`, {
17821
17821
  item: ae,
17822
17822
  cell: G,
17823
- index: ce
17823
+ index: ue
17824
17824
  })
17825
17825
  ]),
17826
17826
  key: "0"
@@ -18914,9 +18914,9 @@ const yk = { class: "vc-scheduler__month" }, wk = {
18914
18914
  kt(() => {
18915
18915
  z(), P.cancel(), V.clear();
18916
18916
  });
18917
- const Y = B(!1), Z = B(null), re = B(null);
18917
+ const Y = B(!1), Z = B(null), ce = B(null);
18918
18918
  function K(te, me) {
18919
- Z.value = te, re.value = me, Y.value = !0;
18919
+ Z.value = te, ce.value = me, Y.value = !0;
18920
18920
  }
18921
18921
  const W = y(() => {
18922
18922
  if (!Z.value) return [];
@@ -18928,7 +18928,7 @@ const yk = { class: "vc-scheduler__month" }, wk = {
18928
18928
  });
18929
18929
  });
18930
18930
  function ne(te, me = null) {
18931
- h.value = te.id, l("event-click", te), Y.value = !1, t.quickInfo && Re(() => G(te, me ?? re.value));
18931
+ h.value = te.id, l("event-click", te), Y.value = !1, t.quickInfo && Re(() => G(te, me ?? ce.value));
18932
18932
  }
18933
18933
  const ee = B(!1), q = B(null), _e = B(null);
18934
18934
  function G(te, me) {
@@ -18937,7 +18937,7 @@ const yk = { class: "vc-scheduler__month" }, wk = {
18937
18937
  function ae() {
18938
18938
  ee.value = !1;
18939
18939
  }
18940
- function ce(te) {
18940
+ function ue(te) {
18941
18941
  l("edit-intent", te);
18942
18942
  }
18943
18943
  function ie(te) {
@@ -19006,7 +19006,7 @@ const yk = { class: "vc-scheduler__month" }, wk = {
19006
19006
  T(KC, {
19007
19007
  open: Y.value,
19008
19008
  date: Z.value,
19009
- "anchor-rect": re.value,
19009
+ "anchor-rect": ce.value,
19010
19010
  events: W.value,
19011
19011
  onEventClick: ne,
19012
19012
  onClose: me[6] || (me[6] = (se) => Y.value = !1)
@@ -19022,7 +19022,7 @@ const yk = { class: "vc-scheduler__month" }, wk = {
19022
19022
  "anchor-rect": _e.value,
19023
19023
  "can-edit": t.editable && !!q.value && t.isEventEditable(q.value),
19024
19024
  onClose: ae,
19025
- onEdit: ce,
19025
+ onEdit: ue,
19026
19026
  onDelete: ie
19027
19027
  }, {
19028
19028
  "event-popover": I(({ event: se, close: ye }) => [
@@ -19343,8 +19343,8 @@ const Hk = { class: "vc-scheduler__tg" }, Wk = { class: "vc-scheduler__tg-head"
19343
19343
  if (!R || !k) return;
19344
19344
  const _ = R.getBoundingClientRect(), x = o.value + (O.clientY - _.top) / Bt, z = Math.min(Math.max(Math.floor(x), o.value), c.value - 1), Y = new Date(k);
19345
19345
  Y.setHours(z, 0, 0, 0);
19346
- const Z = new Date(Y.getTime() + 36e5), re = DOMRect.fromRect({ x: O.clientX, y: O.clientY, width: 1, height: Bt }), K = String(Y.getTime());
19347
- E.set(K, { start: Y, end: Z, rect: re }), A.click(K);
19346
+ const Z = new Date(Y.getTime() + 36e5), ce = DOMRect.fromRect({ x: O.clientX, y: O.clientY, width: 1, height: Bt }), K = String(Y.getTime());
19347
+ E.set(K, { start: Y, end: Z, rect: ce }), A.click(K);
19348
19348
  }
19349
19349
  kt(() => {
19350
19350
  A.cancel(), E.clear();
@@ -20060,7 +20060,7 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20060
20060
  }
20061
20061
  function h(G) {
20062
20062
  if (t.editorMode !== "emit") {
20063
- const ae = W.value.find((ce) => ce.id === G.id);
20063
+ const ae = W.value.find((ue) => ue.id === G.id);
20064
20064
  if (ae?.recurrenceId) {
20065
20065
  u.open = !0, u.action = "delete", u.event = ae;
20066
20066
  return;
@@ -20084,7 +20084,7 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20084
20084
  }
20085
20085
  function E(G, ae) {
20086
20086
  return t.events.find(
20087
- (ce) => ce.recurrenceId === G && ce.originalStart?.getTime() === ae.getTime()
20087
+ (ue) => ue.recurrenceId === G && ue.originalStart?.getTime() === ae.getTime()
20088
20088
  );
20089
20089
  }
20090
20090
  function A(G, ae) {
@@ -20094,15 +20094,15 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20094
20094
  end: G.end,
20095
20095
  exceptionDates: [...G.exceptionDates ?? [], ae]
20096
20096
  });
20097
- const ce = E(G.id, ae);
20098
- ce && l("event-delete", { id: ce.id });
20097
+ const ue = E(G.id, ae);
20098
+ ue && l("event-delete", { id: ue.id });
20099
20099
  }
20100
20100
  function L(G) {
20101
- const ae = u.event, ce = u.action;
20101
+ const ae = u.event, ue = u.action;
20102
20102
  if (u.open = !1, u.event = null, !ae?.recurrenceId || !ae.originalStart) return;
20103
20103
  const ie = C(ae.recurrenceId);
20104
20104
  if (!ie) return;
20105
- if (ce === "delete") {
20105
+ if (ue === "delete") {
20106
20106
  if (G === "all") {
20107
20107
  l("event-delete", { id: ie.id });
20108
20108
  return;
@@ -20143,8 +20143,8 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20143
20143
  }
20144
20144
  function D({ title: G }) {
20145
20145
  if (d.draft) {
20146
- const { start: ae, end: ce, allDay: ie, color: te } = d.draft;
20147
- l("event-create", { start: ae, end: ce, allDay: ie, title: G, color: te });
20146
+ const { start: ae, end: ue, allDay: ie, color: te } = d.draft;
20147
+ l("event-create", { start: ae, end: ue, allDay: ie, title: G, color: te });
20148
20148
  }
20149
20149
  d.open = !1;
20150
20150
  }
@@ -20168,7 +20168,7 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20168
20168
  recurrence: G.recurrence ? Ja(G.recurrence) : void 0
20169
20169
  });
20170
20170
  else {
20171
- const ce = {
20171
+ const ue = {
20172
20172
  start: G.start,
20173
20173
  end: G.end,
20174
20174
  title: G.title,
@@ -20177,7 +20177,7 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20177
20177
  recurrenceId: ae.recurrenceId,
20178
20178
  originalStart: ae.originalStart
20179
20179
  };
20180
- ae.overrideId ? l("event-update", { id: ae.overrideId, ...ce }) : l("event-create", ce);
20180
+ ae.overrideId ? l("event-update", { id: ae.overrideId, ...ue }) : l("event-create", ue);
20181
20181
  }
20182
20182
  c.recurrenceEdit = null, c.open = !1;
20183
20183
  return;
@@ -20201,8 +20201,8 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20201
20201
  function O(G) {
20202
20202
  const ae = c.recurrenceEdit;
20203
20203
  if (ae) {
20204
- const ce = C(ae.recurrenceId);
20205
- ce && (ae.scope === "all" ? l("event-delete", { id: ce.id }) : A(ce, ae.originalStart)), c.open = !1, c.recurrenceEdit = null;
20204
+ const ue = C(ae.recurrenceId);
20205
+ ue && (ae.scope === "all" ? l("event-delete", { id: ue.id }) : A(ue, ae.originalStart)), c.open = !1, c.recurrenceEdit = null;
20206
20206
  return;
20207
20207
  }
20208
20208
  l("event-delete", G), c.open = !1, c.recurrenceEdit = null;
@@ -20224,7 +20224,7 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20224
20224
  set: (G) => {
20225
20225
  Y.value = G, l("update:date", G);
20226
20226
  }
20227
- }), re = y(() => {
20227
+ }), ce = y(() => {
20228
20228
  const G = Z.value, ae = /* @__PURE__ */ new Date();
20229
20229
  return z.value === "timeline-day" ? zl(G, ae) : z.value === "timeline-week" ? bc(G, ae, { weekStartsOn: t.firstDayOfWeek % 7 }) : Do(G, ae);
20230
20230
  }), K = y(() => {
@@ -20232,8 +20232,8 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20232
20232
  if (z.value === "timeline-day") return { start: Ge(G), end: Bo(G) };
20233
20233
  if (z.value === "timeline-week")
20234
20234
  return { start: Tt(G, { weekStartsOn: ae }), end: Po(G, { weekStartsOn: ae }) };
20235
- const ce = Tt(Hl(G), { weekStartsOn: ae });
20236
- return { start: ce, end: et(ce, 42) };
20235
+ const ue = Tt(Hl(G), { weekStartsOn: ae });
20236
+ return { start: ue, end: et(ue, 42) };
20237
20237
  }), W = y(() => lk(t.events, K.value)), ne = y(() => t.loading && W.value.length === 0), ee = y(() => z.value === "month" ? r.value ? "agenda" : "month" : "timeline"), q = T_({
20238
20238
  date: Z,
20239
20239
  view: z,
@@ -20261,12 +20261,12 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20261
20261
  view: z.value,
20262
20262
  views: _.value,
20263
20263
  editable: e.editable,
20264
- current: re.value,
20264
+ current: ce.value,
20265
20265
  onPrev: n(q).goPrev,
20266
20266
  onNext: n(q).goNext,
20267
20267
  onToday: n(q).goToday,
20268
20268
  onCreate: p,
20269
- "onUpdate:view": ae[0] || (ae[0] = (ce) => z.value = ce)
20269
+ "onUpdate:view": ae[0] || (ae[0] = (ue) => z.value = ue)
20270
20270
  }, null, 8, ["title", "view", "views", "editable", "current", "onPrev", "onNext", "onToday"])
20271
20271
  ]),
20272
20272
  ne.value ? H(G.$slots, "loading", { key: 0 }, () => [
@@ -20279,17 +20279,17 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20279
20279
  editable: e.editable,
20280
20280
  "is-event-editable": _e,
20281
20281
  "quick-info": e.quickInfo,
20282
- onEventClick: ae[1] || (ae[1] = (ce) => l("event-click", ce)),
20282
+ onEventClick: ae[1] || (ae[1] = (ue) => l("event-click", ue)),
20283
20283
  onCreateIntent: b,
20284
20284
  onEditIntent: f,
20285
20285
  onEventDelete: h
20286
20286
  }, {
20287
- event: I(({ event: ce }) => [
20288
- H(G.$slots, "event", { event: ce })
20287
+ event: I(({ event: ue }) => [
20288
+ H(G.$slots, "event", { event: ue })
20289
20289
  ]),
20290
- "event-popover": I(({ event: ce, close: ie }) => [
20290
+ "event-popover": I(({ event: ue, close: ie }) => [
20291
20291
  H(G.$slots, "event-popover", {
20292
- event: ce,
20292
+ event: ue,
20293
20293
  close: ie
20294
20294
  })
20295
20295
  ]),
@@ -20305,18 +20305,18 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20305
20305
  editable: e.editable,
20306
20306
  "is-event-editable": _e,
20307
20307
  "quick-info": e.quickInfo,
20308
- onEventClick: ae[2] || (ae[2] = (ce) => l("event-click", ce)),
20308
+ onEventClick: ae[2] || (ae[2] = (ue) => l("event-click", ue)),
20309
20309
  onCreateIntent: b,
20310
- onEventUpdate: ae[3] || (ae[3] = (ce) => l("event-update", ce)),
20310
+ onEventUpdate: ae[3] || (ae[3] = (ue) => l("event-update", ue)),
20311
20311
  onEditIntent: f,
20312
20312
  onEventDelete: h
20313
20313
  }, {
20314
- event: I(({ event: ce }) => [
20315
- H(G.$slots, "event", { event: ce })
20314
+ event: I(({ event: ue }) => [
20315
+ H(G.$slots, "event", { event: ue })
20316
20316
  ]),
20317
- "event-popover": I(({ event: ce, close: ie }) => [
20317
+ "event-popover": I(({ event: ue, close: ie }) => [
20318
20318
  H(G.$slots, "event-popover", {
20319
- event: ce,
20319
+ event: ue,
20320
20320
  close: ie
20321
20321
  })
20322
20322
  ]),
@@ -20332,17 +20332,17 @@ const O_ = Symbol("VcSchedulerCalendarContext"), L_ = ["aria-busy"], g$ = /* @__
20332
20332
  mode: z.value === "timeline-week" ? "week" : "day",
20333
20333
  "day-start-hour": e.dayStartHour,
20334
20334
  "day-end-hour": e.dayEndHour,
20335
- onEventClick: ae[4] || (ae[4] = (ce) => l("event-click", ce)),
20335
+ onEventClick: ae[4] || (ae[4] = (ue) => l("event-click", ue)),
20336
20336
  onCreateIntent: b,
20337
20337
  onEditIntent: f,
20338
20338
  onEventDelete: h
20339
20339
  }, {
20340
- event: I(({ event: ce }) => [
20341
- H(G.$slots, "event", { event: ce })
20340
+ event: I(({ event: ue }) => [
20341
+ H(G.$slots, "event", { event: ue })
20342
20342
  ]),
20343
- "event-popover": I(({ event: ce, close: ie }) => [
20343
+ "event-popover": I(({ event: ue, close: ie }) => [
20344
20344
  H(G.$slots, "event-popover", {
20345
- event: ce,
20345
+ event: ue,
20346
20346
  close: ie
20347
20347
  })
20348
20348
  ]),