@vc-shell/framework 2.5.0-pr329.6ed4c22 → 2.5.0-pr330.c913940

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { nextTick as $e, ref as B, computed as y, getCurrentInstance as Tt, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as et, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as oo, provide as De, createBlock as P, unref as n, withCtx as x, withDirectives as Xe, resolveDynamicComponent as qe, vShow as _t, createCommentVNode as L, toRef as Ie, normalizeClass as X, renderSlot as z, toDisplayString as F, Teleport as gt, createVNode as A, Transition as Fe, normalizeStyle as he, Fragment as Z, renderList as de, createTextVNode as ve, mergeProps as Le, withModifiers as ue, isRef as bt, h as io, withKeys as Ae, createSlots as Ne, markRaw as On, useId as Bt, useSlots as ht, TransitionGroup as Un, toHandlers as Ol, onUnmounted as Rt, hasInjectionContext as so, getCurrentScope as ro, onScopeDispose as zn, useAttrs as Pi, watchEffect as Hn, vModelText as Vi, toRefs as Fi, normalizeProps as ft, guardReactiveProps as mt, vModelCheckbox as Ui, toRaw as co } from "vue";
1
+ import { nextTick as $e, ref as B, computed as y, getCurrentInstance as Tt, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as g, createElementVNode as w, watch as se, onMounted as tt, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as oo, provide as De, createBlock as P, unref as n, withCtx as x, withDirectives as Xe, resolveDynamicComponent as qe, vShow as _t, createCommentVNode as L, toRef as Ie, normalizeClass as X, renderSlot as z, toDisplayString as F, Teleport as gt, createVNode as A, Transition as Fe, normalizeStyle as he, Fragment as Z, renderList as de, createTextVNode as ve, mergeProps as Le, withModifiers as ue, isRef as bt, h as io, withKeys as Ae, createSlots as Ne, markRaw as On, useId as Bt, useSlots as ht, TransitionGroup as Un, toHandlers as Ol, onUnmounted as Rt, hasInjectionContext as so, getCurrentScope as ro, onScopeDispose as zn, useAttrs as Pi, watchEffect as Hn, vModelText as Vi, toRefs as Fi, normalizeProps as ft, guardReactiveProps as mt, vModelCheckbox as Ui, toRaw as co } from "vue";
2
2
  import { ab as zi, c as lt, x as Hi, d as uo, B as al, Q as Wn, P as vo, e as fo, K as mo, _ as le, u as Pt, A as Wi, a as pt, b as po, W as go, h as Gi, L as Mn, t as Ln, n as qi, O as Ki, af as bo, M as Yi, U as Gn, E as ol, z as In, w as ji, a3 as Xi, Z as ho, G as Qi, F as yo, s as Zi, a8 as Ji } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
3
3
  import { P as St, af as es, aR as ts, a as ls, X as Pe, H as il, l as Se, aP as wo, N as sl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as Pl, Q as wt, a0 as ss, aS as rs, I as Vt, V as Ze, ap as cs, u as us, aT as ds, ak as Co, aU as vs, aV as fs, au as _o, aN as ko, O as Vl, aO as ms, q as Ve, v as $t, E as Eo, p as ps, Y as gs, y as bs, az as hs, C as ys, w as Ct, s as ws, aW as Fl, K as So, aX as $o, aY as Ro, aZ as ll, a_ as Ao, a$ as Cs, A as To, n as _s, o as pn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
4
4
  import { q as Ft, p as gn, o as ks, n as Ml, r as Es, m as xn, v as Al, t as Oo, f as qn, w as Ss, _ as $s } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
@@ -91,7 +91,7 @@ import { e as vc, c as ka, g as jn } from "./vendor-lodash-es-D2n90GJy.js";
91
91
  import { S as Bo } from "./vendor-sortablejs-Bsvu-FKn.js";
92
92
  import "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
93
93
  import "./vendor-truncate-html-ChA1T5zy.js";
94
- import { h as Te, U as Po, V as Hl, W as Ge, d as Nt, J as tt, x as At, z as Wl, a as fc, X as Xn, Y as Vo, Z as mc, _ as pc, w as Fo, y as Uo, $ as gc, a0 as bc } from "./vendor-date-fns-C-55OMpS.js";
94
+ import { h as Te, U as Po, V as Hl, W as Ge, d as Nt, J as et, x as At, z as Wl, a as fc, X as Xn, Y as Vo, Z as mc, _ as pc, w as Fo, y as Uo, $ as gc, a0 as bc } from "./vendor-date-fns-C-55OMpS.js";
95
95
  import { r as Qn, R as je } from "./vendor-rrule-C4g_KGmu.js";
96
96
  import { S as hc, Y as yc, h as Ea, G as wc, V as Cc } from "./vendor-headlessui-vue-Cn-RMs4E.js";
97
97
  function Nn(e) {
@@ -545,21 +545,21 @@ function Zn(e) {
545
545
  }, D = rc(() => {
546
546
  a.value && (v.value = bn(a.value)), N();
547
547
  }, 50);
548
- return oe(c, () => {
548
+ return se(c, () => {
549
549
  D();
550
- }), oe(m, (T) => {
550
+ }), se(m, (T) => {
551
551
  T && $e(() => {
552
552
  const S = u.value;
553
553
  E(), u.value !== null && u.value !== S && N();
554
554
  });
555
- }), oe(
555
+ }), se(
556
556
  () => t.value.map(l).join("\0"),
557
557
  () => {
558
558
  R(), $e(() => {
559
559
  M();
560
560
  });
561
561
  }
562
- ), et(() => {
562
+ ), tt(() => {
563
563
  $e(() => {
564
564
  V(), M();
565
565
  });
@@ -691,7 +691,7 @@ function CS(e) {
691
691
  const [u, v] = d.sort.split(":");
692
692
  u && (l.value = u, r.value = v === "DESC" ? -1 : 1);
693
693
  }
694
- oe(i, (u) => c.write(e.stateKey, { sort: u }));
694
+ se(i, (u) => c.write(e.stateKey, { sort: u }));
695
695
  }
696
696
  }
697
697
  return {
@@ -720,7 +720,7 @@ function _S(e) {
720
720
  const b = Ce(ql, void 0);
721
721
  if (b) {
722
722
  const p = b.read(e.stateKey);
723
- p.page != null && (c(p.page), u = p.page), oe(
723
+ p.page != null && (c(p.page), u = p.page), se(
724
724
  () => t.value,
725
725
  (m) => b.write(e.stateKey, { page: m === 1 ? void 0 : m })
726
726
  );
@@ -755,7 +755,7 @@ function kS(e) {
755
755
  const l = Ce(ql, void 0);
756
756
  if (l) {
757
757
  const r = l.read(t);
758
- r.search !== void 0 && (a.value = r.search), oe(a, (i) => l.write(t, { search: i }));
758
+ r.search !== void 0 && (a.value = r.search), se(a, (i) => l.write(t, { search: i }));
759
759
  }
760
760
  }
761
761
  return { searchValue: a };
@@ -887,7 +887,7 @@ const Kc = ts, Yc = /* @__PURE__ */ Q({
887
887
  }) : void 0
888
888
  );
889
889
  const p = zo();
890
- oe(
890
+ se(
891
891
  d,
892
892
  (E) => {
893
893
  if (!E) return;
@@ -1157,13 +1157,13 @@ const Kc = ts, Yc = /* @__PURE__ */ Q({
1157
1157
  function me(j) {
1158
1158
  !t.closeOnEscape || !m.value || j.key !== "Escape" || (j.preventDefault(), I("escape"));
1159
1159
  }
1160
- return oe(
1160
+ return se(
1161
1161
  () => m.value,
1162
1162
  async (j) => {
1163
1163
  document.removeEventListener("keydown", me), j && (D(), t.closeOnEscape && document.addEventListener("keydown", me), t.autoFocusPanel && (await $e(), u.value?.focus()));
1164
1164
  },
1165
1165
  { immediate: !0 }
1166
- ), oe(
1166
+ ), se(
1167
1167
  () => t.items,
1168
1168
  () => {
1169
1169
  m.value && D();
@@ -1575,7 +1575,7 @@ const hu = ["aria-label"], yu = {
1575
1575
  __name: "vc-blade-navigation-new",
1576
1576
  setup(e) {
1577
1577
  const { t: a } = ze(), t = Ft(), l = zo(), r = Ut(), { syncUrlReplace: i } = Ho(r, t);
1578
- et(() => {
1578
+ tt(() => {
1579
1579
  t.blades.value.length !== 0 && $e(() => {
1580
1580
  i();
1581
1581
  });
@@ -1927,7 +1927,7 @@ function Lu() {
1927
1927
  function jo(e) {
1928
1928
  const { t: a } = ze({ useScope: "global" }), t = Lu(), l = /* @__PURE__ */ new WeakMap();
1929
1929
  let r;
1930
- e && (r = E(n(e))), oe(
1930
+ e && (r = E(n(e))), se(
1931
1931
  () => e ? n(e) : void 0,
1932
1932
  ($) => {
1933
1933
  $ && (r = E($));
@@ -2414,7 +2414,7 @@ const xu = { class: "vc-blade-header__status-container" }, Nu = {
2414
2414
  function c() {
2415
2415
  l.isCollapsable && (o.value = !o.value, r("state:collapsed", o.value)), r("header:click");
2416
2416
  }
2417
- return oe(
2417
+ return se(
2418
2418
  () => l.isCollapsed,
2419
2419
  (d) => {
2420
2420
  o.value = d;
@@ -3022,7 +3022,7 @@ const xu = { class: "vc-blade-header__status-container" }, Nu = {
3022
3022
  function u(v) {
3023
3023
  v.clickHandler?.(), t.value = !1;
3024
3024
  }
3025
- return oe(
3025
+ return se(
3026
3026
  () => a.isExpanded,
3027
3027
  () => {
3028
3028
  $e(() => {
@@ -3109,7 +3109,7 @@ function Zd(e) {
3109
3109
  const E = f.priority ?? 0;
3110
3110
  return (C.priority ?? 0) - E;
3111
3111
  }));
3112
- return oe(e, () => p(), { deep: !0, immediate: !0 }), oe(c, (f, C) => {
3112
+ return se(e, () => p(), { deep: !0, immediate: !0 }), se(c, (f, C) => {
3113
3113
  f !== C && (m(C), v.value = f, p());
3114
3114
  }), He(() => {
3115
3115
  m();
@@ -3242,7 +3242,7 @@ const iv = ["role"], sv = { class: "vc-blade-status-banners__text" }, rv = ["tit
3242
3242
  f.value = !1;
3243
3243
  }, 2e3));
3244
3244
  }
3245
- oe(
3245
+ se(
3246
3246
  [c, d],
3247
3247
  ([R]) => {
3248
3248
  if (!r) return;
@@ -3259,7 +3259,7 @@ const iv = ["role"], sv = { class: "vc-blade-status-banners__text" }, rv = ["tit
3259
3259
  } : !R && M !== -1 && r.value.splice(M, 1);
3260
3260
  },
3261
3261
  { immediate: !0 }
3262
- ), oe(
3262
+ ), se(
3263
3263
  () => t.modified,
3264
3264
  (R) => {
3265
3265
  if (!r) return;
@@ -3385,27 +3385,11 @@ const iv = ["role"], sv = { class: "vc-blade-status-banners__text" }, rv = ["tit
3385
3385
  _: 1
3386
3386
  }));
3387
3387
  }
3388
- });
3389
- function bv(e, a = () => {
3390
- }) {
3391
- const t = B(!1);
3392
- let l = !1;
3393
- function r() {
3394
- l = !0, e() || (t.value = !0);
3395
- }
3396
- return oe(
3397
- [e, a],
3398
- ([i, o], c) => {
3399
- c.length > 0 && o !== c[1] && (t.value = !1), !i && l && (t.value = !0);
3400
- },
3401
- { immediate: !0 }
3402
- ), et(() => void $e(r)), y(() => e() && !t.value);
3403
- }
3404
- const hv = lt("use-widgets");
3405
- function yv() {
3388
+ }), bv = lt("use-widgets");
3389
+ function hv() {
3406
3390
  const e = Ce(go);
3407
3391
  if (!e)
3408
- throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new Pl("WidgetService");
3392
+ throw bv.error("Widget service not found in current context. Injection chain:", Tt()), new Pl("WidgetService");
3409
3393
  return e;
3410
3394
  }
3411
3395
  const Dl = /* @__PURE__ */ Q({
@@ -3446,10 +3430,10 @@ function Qo() {
3446
3430
  }
3447
3431
  return { resolveBadge: a, resolveLoading: t, resolveDisabled: l, resolveTitle: r, handleHeadlessClick: i };
3448
3432
  }
3449
- const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-container-desktop__content" }, _v = {
3433
+ const yv = { class: "vc-widget-container-desktop" }, wv = { class: "vc-widget-container-desktop__content" }, Cv = {
3450
3434
  key: 0,
3451
3435
  class: "vc-widget-container-desktop__widget-skeleton"
3452
- }, kv = /* @__PURE__ */ Q({
3436
+ }, _v = /* @__PURE__ */ Q({
3453
3437
  __name: "WidgetContainerDesktop",
3454
3438
  props: {
3455
3439
  widgets: {},
@@ -3457,12 +3441,12 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3457
3441
  },
3458
3442
  setup(e) {
3459
3443
  const a = e, t = B(!1), { resolveBadge: l, resolveLoading: r, resolveDisabled: i, resolveTitle: o, handleHeadlessClick: c } = Qo(), d = y(() => a.widgets.slice(0, 3)), u = y(() => a.widgets.slice(3)), v = y(() => a.widgets.length > 3);
3460
- return (b, p) => (s(), g("div", wv, [
3461
- w("div", Cv, [
3444
+ return (b, p) => (s(), g("div", yv, [
3445
+ w("div", wv, [
3462
3446
  (s(!0), g(Z, null, de(d.value, (m) => (s(), g(Z, {
3463
3447
  key: m.id
3464
3448
  }, [
3465
- m.headless && n(r)(m) ? (s(), g("div", _v, [
3449
+ m.headless && n(r)(m) ? (s(), g("div", Cv, [
3466
3450
  A(n(we), {
3467
3451
  variant: "circle",
3468
3452
  width: 18,
@@ -3549,16 +3533,16 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3549
3533
  ])
3550
3534
  ]));
3551
3535
  }
3552
- }), Ev = ["aria-hidden", "inert"], Sv = ["aria-modal", "aria-label", "aria-labelledby"], $v = {
3536
+ }), kv = ["aria-hidden", "inert"], Ev = ["aria-modal", "aria-label", "aria-labelledby"], Sv = {
3553
3537
  key: 0,
3554
3538
  class: "vc-sidebar__handle"
3555
- }, Rv = { class: "vc-sidebar__header" }, Av = { class: "vc-sidebar__title-wrap" }, Tv = {
3539
+ }, $v = { class: "vc-sidebar__header" }, Rv = { class: "vc-sidebar__title-wrap" }, Av = {
3556
3540
  key: 1,
3557
3541
  class: "vc-sidebar__subtitle"
3558
- }, Ov = { class: "vc-sidebar__header-actions" }, Mv = ["aria-label"], Lv = { class: "vc-sidebar__content" }, Iv = {
3542
+ }, Tv = { class: "vc-sidebar__header-actions" }, Ov = ["aria-label"], Mv = { class: "vc-sidebar__content" }, Lv = {
3559
3543
  key: 2,
3560
3544
  class: "vc-sidebar__footer"
3561
- }, xv = 'a[href], area[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]', Ht = /* @__PURE__ */ Q({
3545
+ }, Iv = 'a[href], area[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]', Ht = /* @__PURE__ */ Q({
3562
3546
  __name: "vc-sidebar",
3563
3547
  props: {
3564
3548
  modelValue: { type: Boolean },
@@ -3594,26 +3578,26 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3594
3578
  function r() {
3595
3579
  if (typeof window > "u")
3596
3580
  return null;
3597
- const se = window;
3598
- return se[l] || (se[l] = { counter: 0, cachedOverflow: "", cachedPaddingRight: "" }), se[l];
3581
+ const ie = window;
3582
+ return ie[l] || (ie[l] = { counter: 0, cachedOverflow: "", cachedPaddingRight: "" }), ie[l];
3599
3583
  }
3600
3584
  function i() {
3601
- const se = r();
3602
- if (!(!se || typeof document > "u")) {
3603
- if (se.counter === 0) {
3585
+ const ie = r();
3586
+ if (!(!ie || typeof document > "u")) {
3587
+ if (ie.counter === 0) {
3604
3588
  const { body: ye, documentElement: Ee } = document;
3605
- se.cachedOverflow = ye.style.overflow, se.cachedPaddingRight = ye.style.paddingRight;
3589
+ ie.cachedOverflow = ye.style.overflow, ie.cachedPaddingRight = ye.style.paddingRight;
3606
3590
  const Re = window.innerWidth - Ee.clientWidth;
3607
3591
  ye.style.overflow = "hidden", Re > 0 && (ye.style.paddingRight = `${Re}px`);
3608
3592
  }
3609
- se.counter += 1;
3593
+ ie.counter += 1;
3610
3594
  }
3611
3595
  }
3612
3596
  function o() {
3613
- const se = r();
3614
- if (!(!se || typeof document > "u" || se.counter === 0) && (se.counter -= 1, se.counter === 0)) {
3597
+ const ie = r();
3598
+ if (!(!ie || typeof document > "u" || ie.counter === 0) && (ie.counter -= 1, ie.counter === 0)) {
3615
3599
  const { body: ye } = document;
3616
- ye.style.overflow = se.cachedOverflow, ye.style.paddingRight = se.cachedPaddingRight;
3600
+ ye.style.overflow = ie.cachedOverflow, ye.style.paddingRight = ie.cachedPaddingRight;
3617
3601
  }
3618
3602
  }
3619
3603
  const c = e, d = t, u = ht(), v = B(null), b = B(!1), p = B(null), { teleportTarget: m } = Pt({
@@ -3645,8 +3629,8 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3645
3629
  "vc-sidebar__panel--draggable": c.draggable && R.value
3646
3630
  }
3647
3631
  ]), _ = y(() => c.ariaLabel || void 0), I = y(() => c.ariaLabel || !c.title ? void 0 : f);
3648
- function U(se) {
3649
- d("update:modelValue", !1), d("close", se);
3632
+ function U(ie) {
3633
+ d("update:modelValue", !1), d("close", ie);
3650
3634
  }
3651
3635
  function q() {
3652
3636
  U("action");
@@ -3658,18 +3642,18 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3658
3642
  c.closeOnOverlay && U("overlay");
3659
3643
  }
3660
3644
  const me = B(0), j = B(!1);
3661
- function G(se) {
3662
- !c.draggable || !R.value || (me.value = se.touches[0].clientY, j.value = !0);
3645
+ function G(ie) {
3646
+ !c.draggable || !R.value || (me.value = ie.touches[0].clientY, j.value = !0);
3663
3647
  }
3664
- function ne(se) {
3648
+ function ne(ie) {
3665
3649
  if (!j.value || !v.value) return;
3666
- const ye = se.touches[0].clientY - me.value;
3650
+ const ye = ie.touches[0].clientY - me.value;
3667
3651
  ye > 0 && (v.value.style.transform = `translateY(${ye}px)`, v.value.style.transition = "none");
3668
3652
  }
3669
- function J(se) {
3653
+ function J(ie) {
3670
3654
  if (!j.value || !v.value) return;
3671
3655
  j.value = !1;
3672
- const ye = se.changedTouches[0].clientY - me.value, Ee = v.value.offsetHeight, Re = Ee * c.closeThreshold;
3656
+ const ye = ie.changedTouches[0].clientY - me.value, Ee = v.value.offsetHeight, Re = Ee * c.closeThreshold;
3673
3657
  ye > Re ? (v.value.style.transition = "transform 0.2s ease", v.value.style.transform = `translateY(${Ee}px)`, setTimeout(() => {
3674
3658
  U("action");
3675
3659
  }, 200)) : (v.value.style.transition = "transform 0.2s ease", v.value.style.transform = "", setTimeout(() => {
@@ -3677,10 +3661,10 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3677
3661
  }, 200));
3678
3662
  }
3679
3663
  function W() {
3680
- return v.value ? Array.from(v.value.querySelectorAll(xv)).filter((se) => {
3681
- if (se.hasAttribute("disabled") || se.getAttribute("aria-hidden") === "true")
3664
+ return v.value ? Array.from(v.value.querySelectorAll(Iv)).filter((ie) => {
3665
+ if (ie.hasAttribute("disabled") || ie.getAttribute("aria-hidden") === "true")
3682
3666
  return !1;
3683
- const ye = window.getComputedStyle(se);
3667
+ const ye = window.getComputedStyle(ie);
3684
3668
  return ye.display !== "none" && ye.visibility !== "hidden";
3685
3669
  }) : [];
3686
3670
  }
@@ -3688,44 +3672,44 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3688
3672
  function H() {
3689
3673
  if (ke) return;
3690
3674
  ke = !0;
3691
- const se = W()[0];
3692
- se ? se.focus() : v.value?.focus(), ke = !1;
3675
+ const ie = W()[0];
3676
+ ie ? ie.focus() : v.value?.focus(), ke = !1;
3693
3677
  }
3694
- function ae(se) {
3695
- ke || !c.modelValue || !c.trapFocus || !v.value || se.target instanceof Node && !v.value.contains(se.target) && H();
3678
+ function ae(ie) {
3679
+ ke || !c.modelValue || !c.trapFocus || !v.value || ie.target instanceof Node && !v.value.contains(ie.target) && H();
3696
3680
  }
3697
- function re(se) {
3681
+ function re(ie) {
3698
3682
  if (!c.modelValue)
3699
3683
  return;
3700
- if (se.key === "Escape") {
3701
- c.closeOnEscape && (se.preventDefault(), U("escape"));
3684
+ if (ie.key === "Escape") {
3685
+ c.closeOnEscape && (ie.preventDefault(), U("escape"));
3702
3686
  return;
3703
3687
  }
3704
- if (!c.trapFocus || se.key !== "Tab" || !v.value)
3688
+ if (!c.trapFocus || ie.key !== "Tab" || !v.value)
3705
3689
  return;
3706
3690
  const ye = W();
3707
3691
  if (!ye.length) {
3708
- se.preventDefault(), v.value.focus();
3692
+ ie.preventDefault(), v.value.focus();
3709
3693
  return;
3710
3694
  }
3711
3695
  const Ee = ye[0], Re = ye[ye.length - 1], We = document.activeElement;
3712
- if (se.shiftKey) {
3713
- (We === Ee || !We || !v.value.contains(We)) && (se.preventDefault(), Re.focus());
3696
+ if (ie.shiftKey) {
3697
+ (We === Ee || !We || !v.value.contains(We)) && (ie.preventDefault(), Re.focus());
3714
3698
  return;
3715
3699
  }
3716
- We === Re && (se.preventDefault(), Ee.focus());
3700
+ We === Re && (ie.preventDefault(), Ee.focus());
3717
3701
  }
3718
- function ie() {
3702
+ function oe() {
3719
3703
  if (!c.returnFocus || !p.value) {
3720
3704
  p.value = null;
3721
3705
  return;
3722
3706
  }
3723
- const se = p.value;
3707
+ const ie = p.value;
3724
3708
  p.value = null, $e(() => {
3725
3709
  try {
3726
- se.focus({ preventScroll: !0 });
3710
+ ie.focus({ preventScroll: !0 });
3727
3711
  } catch {
3728
- se.focus();
3712
+ ie.focus();
3729
3713
  }
3730
3714
  });
3731
3715
  }
@@ -3735,12 +3719,12 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3735
3719
  }));
3736
3720
  }
3737
3721
  function fe() {
3738
- !b.value || typeof document > "u" || (b.value = !1, document.removeEventListener("keydown", re), document.removeEventListener("focusin", ae), c.lockScroll && o(), ie());
3722
+ !b.value || typeof document > "u" || (b.value = !1, document.removeEventListener("keydown", re), document.removeEventListener("focusin", ae), c.lockScroll && o(), oe());
3739
3723
  }
3740
- return oe(
3724
+ return se(
3741
3725
  () => c.modelValue,
3742
- (se) => {
3743
- if (se) {
3726
+ (ie) => {
3727
+ if (ie) {
3744
3728
  $e(() => {
3745
3729
  v.value && (v.value.style.transform = "", v.value.style.transition = "");
3746
3730
  }), ee();
@@ -3754,7 +3738,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3754
3738
  }), a({
3755
3739
  close: q,
3756
3740
  open: K
3757
- }), (se, ye) => (s(), P(gt, {
3741
+ }), (ie, ye) => (s(), P(gt, {
3758
3742
  to: n(m),
3759
3743
  defer: "",
3760
3744
  disabled: !e.teleport
@@ -3792,24 +3776,24 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3792
3776
  onTouchmove: ne,
3793
3777
  onTouchend: J
3794
3778
  }, [
3795
- e.dragHandle && R.value ? (s(), g("div", $v, [...ye[1] || (ye[1] = [
3779
+ e.dragHandle && R.value ? (s(), g("div", Sv, [...ye[1] || (ye[1] = [
3796
3780
  w("div", { class: "vc-sidebar__handle-bar" }, null, -1)
3797
3781
  ])])) : L("", !0),
3798
- N.value ? z(se.$slots, "header", {
3782
+ N.value ? z(ie.$slots, "header", {
3799
3783
  key: 1,
3800
3784
  close: q
3801
3785
  }, () => [
3802
- w("div", Rv, [
3803
- w("div", Av, [
3786
+ w("div", $v, [
3787
+ w("div", Rv, [
3804
3788
  e.title ? (s(), g("h3", {
3805
3789
  key: 0,
3806
3790
  id: f,
3807
3791
  class: "vc-sidebar__title"
3808
3792
  }, F(e.title), 1)) : L("", !0),
3809
- e.subtitle ? (s(), g("p", Tv, F(e.subtitle), 1)) : L("", !0)
3793
+ e.subtitle ? (s(), g("p", Av, F(e.subtitle), 1)) : L("", !0)
3810
3794
  ]),
3811
- w("div", Ov, [
3812
- z(se.$slots, "actions", { close: q }),
3795
+ w("div", Tv, [
3796
+ z(ie.$slots, "actions", { close: q }),
3813
3797
  e.closeButton ? (s(), g("button", {
3814
3798
  key: 0,
3815
3799
  type: "button",
@@ -3821,24 +3805,24 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3821
3805
  icon: "lucide-x",
3822
3806
  size: "m"
3823
3807
  })
3824
- ], 8, Mv)) : L("", !0)
3808
+ ], 8, Ov)) : L("", !0)
3825
3809
  ])
3826
3810
  ])
3827
3811
  ]) : L("", !0),
3828
- w("div", Lv, [
3829
- z(se.$slots, "default")
3812
+ w("div", Mv, [
3813
+ z(ie.$slots, "default")
3830
3814
  ]),
3831
- se.$slots.footer ? (s(), g("div", Iv, [
3832
- z(se.$slots, "footer")
3815
+ ie.$slots.footer ? (s(), g("div", Lv, [
3816
+ z(ie.$slots, "footer")
3833
3817
  ])) : L("", !0)
3834
- ], 46, Sv)) : L("", !0)
3818
+ ], 46, Ev)) : L("", !0)
3835
3819
  ]),
3836
3820
  _: 3
3837
3821
  }, 8, ["name"])
3838
- ], 12, Ev)
3822
+ ], 12, kv)
3839
3823
  ], 8, ["to", "disabled"]));
3840
3824
  }
3841
- }), Nv = { class: "vc-widget-container-mobile" }, Dv = ["data-item-key"], Bv = { class: "vc-widget-container-mobile__overflow-list" }, Pv = /* @__PURE__ */ Q({
3825
+ }), xv = { class: "vc-widget-container-mobile" }, Nv = ["data-item-key"], Dv = { class: "vc-widget-container-mobile__overflow-list" }, Bv = /* @__PURE__ */ Q({
3842
3826
  __name: "WidgetContainerMobile",
3843
3827
  props: {
3844
3828
  widgets: {},
@@ -3852,7 +3836,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3852
3836
  moreButtonWidth: 70,
3853
3837
  initialItemWidth: 80
3854
3838
  });
3855
- return (m, h) => Xe((s(), g("div", Nv, [
3839
+ return (m, h) => Xe((s(), g("div", xv, [
3856
3840
  w("div", {
3857
3841
  ref_key: "containerRef",
3858
3842
  ref: t,
@@ -3877,7 +3861,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3877
3861
  height: 10,
3878
3862
  class: "tw-mt-1"
3879
3863
  })
3880
- ], 8, Dv)) : f.headless ? (s(), P(n(Nl), {
3864
+ ], 8, Nv)) : f.headless ? (s(), P(n(Nl), {
3881
3865
  key: 1,
3882
3866
  icon: f.headless?.icon,
3883
3867
  title: n(d)(f),
@@ -3919,7 +3903,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3919
3903
  "onUpdate:modelValue": h[2] || (h[2] = (f) => l.value = f)
3920
3904
  }, {
3921
3905
  default: x(() => [
3922
- w("div", Bv, [
3906
+ w("div", Dv, [
3923
3907
  (s(!0), g(Z, null, de(n(p), (f) => (s(), g(Z, {
3924
3908
  key: f.id
3925
3909
  }, [
@@ -3963,13 +3947,13 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
3963
3947
  [_t, r.value]
3964
3948
  ]);
3965
3949
  }
3966
- }), Vv = /* @__PURE__ */ Q({
3950
+ }), Pv = /* @__PURE__ */ Q({
3967
3951
  __name: "WidgetContainer",
3968
3952
  props: {
3969
3953
  bladeId: {}
3970
3954
  },
3971
3955
  setup(e) {
3972
- const a = e, { isMobile: t } = Pe(), l = lt("widget-container"), r = y(() => a.bladeId.toLowerCase()), i = yv(), o = Ce(al, void 0), c = y(() => o?.value.name?.toLowerCase() ?? ""), d = /* @__PURE__ */ new Set();
3956
+ const a = e, { isMobile: t } = Pe(), l = lt("widget-container"), r = y(() => a.bladeId.toLowerCase()), i = hv(), o = Ce(al, void 0), c = y(() => o?.value.name?.toLowerCase() ?? ""), d = /* @__PURE__ */ new Set();
3973
3957
  function u() {
3974
3958
  if (!c.value) return;
3975
3959
  i.getAllExternalWidgets().filter(
@@ -4000,15 +3984,15 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
4000
3984
  }
4001
3985
  }), d.clear();
4002
3986
  }
4003
- et(u), Rt(v);
3987
+ tt(u), Rt(v);
4004
3988
  const b = y(() => i.getWidgets(r.value)), p = y(
4005
3989
  () => b.value.filter((m) => Jn(m.isVisible, o?.value))
4006
3990
  );
4007
- return (m, h) => p.value.length > 0 && n(t) ? (s(), P(Pv, {
3991
+ return (m, h) => p.value.length > 0 && n(t) ? (s(), P(Bv, {
4008
3992
  key: 0,
4009
3993
  widgets: p.value,
4010
3994
  "blade-id": r.value
4011
- }, null, 8, ["widgets", "blade-id"])) : p.value.length > 0 ? (s(), P(kv, {
3995
+ }, null, 8, ["widgets", "blade-id"])) : p.value.length > 0 ? (s(), P(_v, {
4012
3996
  key: 1,
4013
3997
  widgets: p.value,
4014
3998
  "blade-id": r.value
@@ -4089,7 +4073,7 @@ function ti() {
4089
4073
  throw Jo.error("Language service not found"), new Pl("LanguageService");
4090
4074
  return e;
4091
4075
  }
4092
- const Fv = lt("use-app-bar-widget");
4076
+ const Vv = lt("use-app-bar-widget");
4093
4077
  function NS() {
4094
4078
  const e = Ce(Ln, null);
4095
4079
  if (e)
@@ -4100,23 +4084,23 @@ function NS() {
4100
4084
  function Ql() {
4101
4085
  const e = Ce(Ln);
4102
4086
  if (!e)
4103
- throw Fv.error("AppBarWidgetService not found"), new Pl("AppBarWidgetService");
4087
+ throw Vv.error("AppBarWidgetService not found"), new Pl("AppBarWidgetService");
4104
4088
  return e;
4105
4089
  }
4106
- const Uv = "VC_APP_MENU_EXPANDED", zv = 200;
4107
- function Hv(e) {
4090
+ const Fv = "VC_APP_MENU_EXPANDED", Uv = 200;
4091
+ function zv(e) {
4108
4092
  const a = e || window.location.pathname.split("/").filter(Boolean)[0] || "default";
4109
- return `${Uv}_${a}`;
4093
+ return `${Fv}_${a}`;
4110
4094
  }
4111
- function Wv() {
4112
- const e = zl(Hv(), !0), a = B(!1), t = B(!1), l = y(() => e.value || a.value);
4095
+ function Hv() {
4096
+ const e = zl(zv(), !0), a = B(!1), t = B(!1), l = y(() => e.value || a.value);
4113
4097
  let r = null;
4114
4098
  const i = () => {
4115
4099
  e.value = !e.value;
4116
4100
  }, o = (u) => {
4117
4101
  r && (clearTimeout(r), r = null), u ? r = setTimeout(() => {
4118
4102
  a.value !== u && (a.value = u);
4119
- }, zv) : u === !1 && (a.value = u);
4103
+ }, Uv) : u === !1 && (a.value = u);
4120
4104
  };
4121
4105
  return zn(() => {
4122
4106
  r && (clearTimeout(r), r = null);
@@ -4136,10 +4120,10 @@ function Wv() {
4136
4120
  };
4137
4121
  }
4138
4122
  const Dn = Symbol("SidebarState");
4139
- function Gv() {
4123
+ function Wv() {
4140
4124
  const e = Ce(Dn, null);
4141
4125
  if (e) return e;
4142
- const a = Wv();
4126
+ const a = Hv();
4143
4127
  return De(Dn, a), a;
4144
4128
  }
4145
4129
  function ea() {
@@ -4148,37 +4132,41 @@ function ea() {
4148
4132
  throw new Error("useSidebarState() requires provideSidebarState() in a parent component");
4149
4133
  return e;
4150
4134
  }
4151
- const qv = {
4135
+ const Gv = {
4152
4136
  prod: "Production",
4153
4137
  dev: "Development",
4154
4138
  test: "QA",
4155
4139
  staging: "UAT",
4156
4140
  demo: "Demo"
4157
- }, Kv = {
4141
+ }, qv = {
4158
4142
  prod: "danger",
4159
4143
  dev: "success",
4160
4144
  test: "warning",
4161
4145
  staging: "secondary",
4162
4146
  demo: "info"
4163
- }, Yv = ["prod"], jv = "neutral";
4164
- function Xv(e) {
4147
+ }, Kv = ["prod"], Yv = "neutral";
4148
+ function jv(e) {
4165
4149
  const a = (e || "").toLowerCase();
4166
4150
  return a.includes("prod") ? "prod" : a.includes("localhost") || /\b\d{1,3}(\.\d{1,3}){3}\b/.test(a) || a.includes("dev") ? "dev" : a.includes("qa") || a.includes("test") ? "test" : a.includes("stage") || a.includes("staging") || a.includes("uat") ? "staging" : a.includes("demo") ? "demo" : "default";
4167
4151
  }
4168
- function Qv(e, a = "") {
4169
- const t = Xv(e), l = qv[t] ?? a, r = Yv.includes(t) || !l, i = Kv[t] ?? jv;
4152
+ function Xv(e, a = "") {
4153
+ const t = jv(e), l = Gv[t] ?? a, r = Kv.includes(t) || !l, i = qv[t] ?? Yv;
4170
4154
  return { environmentName: l, isIgnored: r, color: i };
4171
4155
  }
4172
- function Zv() {
4156
+ function Qv() {
4173
4157
  return `${typeof window < "u" ? window.location.hostname : ""} `.trim();
4174
4158
  }
4175
- function Jv() {
4159
+ function Zv() {
4176
4160
  const e = typeof window < "u" ? window.location.hostname : "";
4177
- return Qv(Zv(), e);
4161
+ return Xv(Qv(), e);
4178
4162
  }
4179
- const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4163
+ const Jv = cc(Zv), ef = ["aria-busy", "aria-labelledby", "aria-label"], tf = {
4180
4164
  key: 1,
4181
4165
  class: "vc-blade__breadcrumbs"
4166
+ }, lf = {
4167
+ key: 2,
4168
+ class: "vc-blade__busy",
4169
+ "aria-hidden": "true"
4182
4170
  }, DS = /* @__PURE__ */ Q({
4183
4171
  inheritAttrs: !1,
4184
4172
  __name: "vc-blade",
@@ -4191,7 +4179,8 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4191
4179
  closable: { type: Boolean, default: !0 },
4192
4180
  toolbarItems: { default: () => [] },
4193
4181
  modified: { type: Boolean, default: void 0 },
4194
- loading: { type: Boolean }
4182
+ loading: { type: Boolean },
4183
+ busy: { type: Boolean }
4195
4184
  },
4196
4185
  emits: ["close", "expand", "collapse"],
4197
4186
  setup(e, { emit: a }) {
@@ -4199,10 +4188,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4199
4188
  if (t.modified !== void 0) return t.modified;
4200
4189
  if (l)
4201
4190
  return l.isModified.value;
4202
- }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = bv(
4203
- () => !!t.loading,
4204
- () => c?.value.param
4205
- );
4191
+ }), o = `blade-title-${Tt()?.uid ?? 0}`, c = Ce(al, void 0), d = y(() => !!t.loading);
4206
4192
  De(Ki, d), ht();
4207
4193
  const u = a, { isMobile: v, isDesktop: b } = Pe(), p = qn(), { id: m } = p, h = !!c, f = Ce(vo, void 0), C = Ce(Wn, void 0), E = y(() => h ? p.expanded.value : t.expanded), $ = y(() => h ? p.closable.value : t.closable), O = Pi(), N = y(() => {
4208
4194
  const { class: I, style: U, onClose: q, ...K } = O;
@@ -4222,7 +4208,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4222
4208
  h && m.value && t.title && S(m.value, t.title);
4223
4209
  });
4224
4210
  const k = B(null), _ = B(null);
4225
- return et(() => Nn(() => k.value)), (I, U) => (s(), g("div", Le({
4211
+ return tt(() => Nn(() => k.value)), (I, U) => (s(), g("div", Le({
4226
4212
  ref_key: "bladeRef",
4227
4213
  ref: k
4228
4214
  }, N.value, {
@@ -4237,9 +4223,9 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4237
4223
  role: "region",
4238
4224
  tabindex: "-1",
4239
4225
  style: { width: typeof e.width == "number" ? `${e.width}px` : e.width },
4240
- "aria-busy": t.loading || void 0,
4241
- "aria-labelledby": t.title && !n(d) ? o : void 0,
4242
- "aria-label": !t.title || n(d) ? I.$t("COMPONENTS.ORGANISMS.VC_BLADE.PANEL") : void 0
4226
+ "aria-busy": t.loading || t.busy || void 0,
4227
+ "aria-labelledby": t.title && !d.value ? o : void 0,
4228
+ "aria-label": !t.title || d.value ? I.$t("COMPONENTS.ORGANISMS.VC_BLADE.PANEL") : void 0
4243
4229
  }), [
4244
4230
  n(v) && n(T).length === 1 && !I.$slots.actions ? L("", !0) : (s(), P(Xu, {
4245
4231
  key: 0,
@@ -4250,7 +4236,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4250
4236
  subtitle: e.subtitle,
4251
4237
  modified: r.value,
4252
4238
  "title-id": o,
4253
- loading: n(d),
4239
+ loading: d.value,
4254
4240
  onClose: V,
4255
4241
  onExpand: R,
4256
4242
  onCollapse: M
@@ -4260,7 +4246,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4260
4246
  key: 0,
4261
4247
  class: "vc-blade__back-button"
4262
4248
  })) : L("", !0),
4263
- !n(d) && n(C)?.breadcrumbs?.length && n(b) ? (s(), g("div", lf, [
4249
+ !d.value && n(C)?.breadcrumbs?.length && n(b) ? (s(), g("div", tf, [
4264
4250
  A(n(Wo), {
4265
4251
  items: n(C)?.breadcrumbs,
4266
4252
  collapsed: ""
@@ -4291,7 +4277,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4291
4277
  key: "0"
4292
4278
  } : void 0
4293
4279
  ]), 1032, ["closable", "icon", "title", "subtitle", "modified", "loading"])),
4294
- n(d) ? L("", !0) : (s(), P(gv, {
4280
+ d.value ? L("", !0) : (s(), P(gv, {
4295
4281
  key: 1,
4296
4282
  modified: r.value
4297
4283
  }, null, 8, ["modified"])),
@@ -4299,10 +4285,10 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4299
4285
  "data-test-id": "blade-toolbar",
4300
4286
  class: "vc-blade__toolbar",
4301
4287
  items: e.toolbarItems,
4302
- loading: n(d)
4288
+ loading: d.value
4303
4289
  }, {
4304
4290
  "widgets-container": x(() => [
4305
- A(Vv, { "blade-id": n(m) }, null, 8, ["blade-id"])
4291
+ A(Pv, { "blade-id": n(m) }, null, 8, ["blade-id"])
4306
4292
  ]),
4307
4293
  _: 1
4308
4294
  }, 8, ["items", "loading"]),
@@ -4324,8 +4310,9 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4324
4310
  z(I.$slots, "default")
4325
4311
  ], 2)
4326
4312
  ], 2)
4327
- ], 512)
4328
- ], 16, tf));
4313
+ ], 512),
4314
+ e.busy ? (s(), g("div", lf)) : L("", !0)
4315
+ ], 16, ef));
4329
4316
  }
4330
4317
  }), nf = ["aria-label", "aria-labelledby"], af = /* @__PURE__ */ Q({
4331
4318
  __name: "vc-form",
@@ -4627,7 +4614,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4627
4614
  function p() {
4628
4615
  d.value = !d.value, l("toggle", d.value), l("update:isExpanded", d.value);
4629
4616
  }
4630
- return oe(
4617
+ return se(
4631
4618
  () => t.isExpanded,
4632
4619
  (m) => {
4633
4620
  d.value = m;
@@ -4705,7 +4692,7 @@ const ef = cc(Jv), tf = ["aria-busy", "aria-labelledby", "aria-label"], lf = {
4705
4692
  function u() {
4706
4693
  l.modelValue !== void 0 && l.modelValue !== null ? Array.isArray(l.modelValue) ? i.value = [...l.modelValue] : i.value = [l.modelValue] : i.value = [];
4707
4694
  }
4708
- return oe(
4695
+ return se(
4709
4696
  () => l.modelValue,
4710
4697
  () => {
4711
4698
  u();
@@ -5016,7 +5003,7 @@ const Of = {
5016
5003
  function v(b) {
5017
5004
  b.target.closest(".vc-editor-font-selector") || u();
5018
5005
  }
5019
- return et(() => {
5006
+ return tt(() => {
5020
5007
  document.addEventListener("click", v);
5021
5008
  }), Rt(() => {
5022
5009
  document.removeEventListener("click", v);
@@ -5382,7 +5369,7 @@ const Of = {
5382
5369
  }
5383
5370
  return S;
5384
5371
  }), h = B(l.modelValue || "");
5385
- oe(
5372
+ se(
5386
5373
  () => l.modelValue,
5387
5374
  (S) => {
5388
5375
  if (d.value = p(S || ""), d.value === "html")
@@ -5482,13 +5469,13 @@ const Of = {
5482
5469
  i.value = !1;
5483
5470
  }
5484
5471
  });
5485
- oe(
5472
+ se(
5486
5473
  () => l.modelValue,
5487
5474
  (S) => {
5488
5475
  if (!R.value) return;
5489
5476
  ((d.value === "html" ? R.value.getHTML() : R.value.storage.markdown?.getMarkdown?.() ?? R.value.getHTML()) || "").trimEnd() !== (S || "").trimEnd() && (V = !0, R.value.commands.setContent(S || ""), V = !1);
5490
5477
  }
5491
- ), oe(
5478
+ ), se(
5492
5479
  () => l.disabled,
5493
5480
  (S) => {
5494
5481
  R.value?.setEditable(!S);
@@ -5717,12 +5704,12 @@ const Of = {
5717
5704
  t("close", l.notificationId);
5718
5705
  }, Ba));
5719
5706
  }
5720
- oe(
5707
+ se(
5721
5708
  () => l.dismissing,
5722
5709
  (k) => {
5723
5710
  k && m();
5724
5711
  }
5725
- ), oe(
5712
+ ), se(
5726
5713
  i,
5727
5714
  (k) => {
5728
5715
  k && (p.value = C(() => m(), l.timeout), p.value.start());
@@ -5738,7 +5725,7 @@ const Of = {
5738
5725
  k.style.height = _, l.onReportHeight?.(l.notificationId, I);
5739
5726
  }
5740
5727
  }
5741
- et(() => {
5728
+ tt(() => {
5742
5729
  requestAnimationFrame(() => {
5743
5730
  requestAnimationFrame(() => {
5744
5731
  c.value = !0, f();
@@ -5865,7 +5852,7 @@ const Of = {
5865
5852
  emits: ["itemClick"],
5866
5853
  setup(e, { emit: a }) {
5867
5854
  const t = e, l = a, { isMobile: r } = Pe(), i = B(t.currentPage);
5868
- oe(
5855
+ se(
5869
5856
  () => t.currentPage,
5870
5857
  (u) => {
5871
5858
  i.value = u;
@@ -6348,12 +6335,12 @@ const Of = {
6348
6335
  C.preventDefault(), E.scrollTop += C.deltaY;
6349
6336
  p();
6350
6337
  }
6351
- return oe(
6338
+ return se(
6352
6339
  () => l.isOpened,
6353
6340
  (C) => {
6354
6341
  C ? $e(p) : (h(), u.value = !1, v.value = !1);
6355
6342
  }
6356
- ), oe(
6343
+ ), se(
6357
6344
  () => l.availableOptions.length,
6358
6345
  () => {
6359
6346
  l.isOpened && $e(p);
@@ -6557,7 +6544,7 @@ function lp(e) {
6557
6544
  left: `${c.x.value ?? 0}px`,
6558
6545
  width: c.middlewareData.value.sameWidth?.width
6559
6546
  }));
6560
- oe(
6547
+ se(
6561
6548
  () => c.isPositioned.value,
6562
6549
  (m) => {
6563
6550
  m && c.update();
@@ -7166,13 +7153,13 @@ const ap = {
7166
7153
  const f = t.modelValue;
7167
7154
  return Array.isArray(f) ? f.includes(t.value) : f === t.trueValue;
7168
7155
  });
7169
- return oe(
7156
+ return se(
7170
7157
  () => t.indeterminate,
7171
7158
  (f) => {
7172
7159
  p.value && (p.value.indeterminate = f);
7173
7160
  },
7174
7161
  { immediate: !0 }
7175
- ), et(() => {
7162
+ ), tt(() => {
7176
7163
  p.value && t.indeterminate && (p.value.indeterminate = t.indeterminate);
7177
7164
  }), (f, C) => n(b) ? (s(), g("div", hp, [
7178
7165
  A(n(we), {
@@ -7570,13 +7557,13 @@ const ap = {
7570
7557
  }, C = (E) => {
7571
7558
  E.key === "Escape" && l.show && (E.preventDefault(), p());
7572
7559
  };
7573
- return oe(
7560
+ return se(
7574
7561
  () => l.show,
7575
7562
  (E) => {
7576
7563
  E ? ($e(m), l.closeOnClickOutside && document.addEventListener("pointerdown", f), l.closeOnEscape && document.addEventListener("keydown", C)) : (h(), document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", C));
7577
7564
  },
7578
7565
  { immediate: !0 }
7579
- ), oe(u, (E) => {
7566
+ ), se(u, (E) => {
7580
7567
  c.value && Cl.set(c.value, E);
7581
7568
  }), He(() => {
7582
7569
  h(), document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", C);
@@ -7883,7 +7870,7 @@ function sg(e) {
7883
7870
  function r() {
7884
7871
  t.value = !0, a.value = !1;
7885
7872
  }
7886
- return oe(
7873
+ return se(
7887
7874
  () => xe(e),
7888
7875
  () => {
7889
7876
  a.value = !1, t.value = !1;
@@ -7909,7 +7896,7 @@ const rg = {
7909
7896
  emits: ["preview", "edit", "remove"],
7910
7897
  setup(e) {
7911
7898
  const a = e, { t } = ze({ useScope: "global" }), { isMobile: l } = Pe(), r = y(() => _o(a.src, a.thumbnailSize) ?? a.src), i = B(!1), o = y(() => i.value ? a.src : r.value), c = sg(Ie(() => o.value)), d = B(!1);
7912
- oe(
7899
+ se(
7913
7900
  () => [a.src, a.thumbnailSize],
7914
7901
  () => {
7915
7902
  i.value = !1;
@@ -8526,9 +8513,9 @@ const Pg = 3, Bn = /* @__PURE__ */ Q({
8526
8513
  emits: ["item:click"],
8527
8514
  setup(e, { emit: a }) {
8528
8515
  const t = e, l = a, r = Ce(ol, !1), i = B(null), o = B("");
8529
- et(() => {
8516
+ tt(() => {
8530
8517
  $e(() => i.value?.updateScrollState());
8531
- }), oe(
8518
+ }), se(
8532
8519
  () => t.expanded,
8533
8520
  (d) => {
8534
8521
  d || (o.value = "");
@@ -8712,30 +8699,30 @@ const Va = /* @__PURE__ */ Q({
8712
8699
  showApplications: Ie(t, "showApplications"),
8713
8700
  mobile: Ie(t, "mobile")
8714
8701
  }), E = B(_l), $ = B(_l), O = y(() => !i.value && h.value.length > Fa), N = y(() => f.value.length > Fa), V = y(() => O.value ? h.value.slice(0, E.value) : h.value), R = y(() => N.value ? f.value.slice(0, $.value) : f.value);
8715
- oe(
8702
+ se(
8716
8703
  () => d.value.map((G) => G.id),
8717
8704
  () => {
8718
8705
  b.value && !u.value && v();
8719
8706
  }
8720
- ), oe(
8707
+ ), se(
8721
8708
  [() => h.value.length, O],
8722
8709
  ([G, ne]) => {
8723
8710
  E.value = ne ? Math.min(G, _l) : G, $e(() => te(o.value));
8724
8711
  },
8725
8712
  { immediate: !0 }
8726
- ), oe(
8713
+ ), se(
8727
8714
  [() => f.value.length, N],
8728
8715
  ([G, ne]) => {
8729
8716
  $.value = ne ? Math.min(G, _l) : G, $e(() => te(c.value));
8730
8717
  },
8731
8718
  { immediate: !0 }
8732
- ), oe(
8719
+ ), se(
8733
8720
  () => K(o.value),
8734
8721
  (G, ne) => {
8735
8722
  ne?.removeEventListener("scroll", _), G?.addEventListener("scroll", _, { passive: !0 });
8736
8723
  },
8737
8724
  { immediate: !0 }
8738
- ), oe(
8725
+ ), se(
8739
8726
  () => K(c.value),
8740
8727
  (G, ne) => {
8741
8728
  ne?.removeEventListener("scroll", I), G?.addEventListener("scroll", I, { passive: !0 });
@@ -8959,7 +8946,7 @@ const Va = /* @__PURE__ */ Q({
8959
8946
  l("update:show", c);
8960
8947
  }
8961
8948
  });
8962
- oe(
8949
+ se(
8963
8950
  () => t.show,
8964
8951
  (c) => {
8965
8952
  c || r();
@@ -9147,7 +9134,7 @@ const Va = /* @__PURE__ */ Q({
9147
9134
  emits: ["logo:click", "item:click", "switch-app"],
9148
9135
  setup(e, { emit: a }) {
9149
9136
  const t = a, l = ea(), r = Ce(ol, !1), i = zt(), o = B(null), c = B(!1), d = B(null), u = y(() => !r);
9150
- oe(
9137
+ se(
9151
9138
  () => i.fullPath,
9152
9139
  () => {
9153
9140
  l.isMenuOpen.value && l.closeMenu(), c.value = !1;
@@ -9317,7 +9304,7 @@ function Xb() {
9317
9304
  isAnyItemVisible: o,
9318
9305
  closeItem: c
9319
9306
  } = vi(e, a);
9320
- return oe(
9307
+ return se(
9321
9308
  () => e.value,
9322
9309
  (d) => {
9323
9310
  if (a.value && !d.some((v) => v.id === a.value)) {
@@ -9360,7 +9347,7 @@ const Qb = {
9360
9347
  function b(p) {
9361
9348
  return p.badge === void 0 ? !1 : !!xe(p.badge);
9362
9349
  }
9363
- return oe([() => d.fullPath, () => a.isSidebarMode], () => {
9350
+ return se([() => d.fullPath, () => a.isSidebarMode], () => {
9364
9351
  o();
9365
9352
  }), (p, m) => n(t) ? (s(), g("div", Qb, [
9366
9353
  (s(!0), g(Z, null, de(n(l), (h) => (s(), g("div", {
@@ -9607,21 +9594,21 @@ const Qb = {
9607
9594
  }
9608
9595
  T();
9609
9596
  }
9610
- oe(
9597
+ se(
9611
9598
  () => i.isMenuOpen.value,
9612
9599
  (j) => {
9613
9600
  j || (D(dt), r.value = "");
9614
9601
  }
9615
- ), oe(b, (j) => {
9602
+ ), se(b, (j) => {
9616
9603
  j || D(dt);
9617
- }), oe(p, (j) => {
9604
+ }), se(p, (j) => {
9618
9605
  j || D(dt);
9619
9606
  });
9620
9607
  const q = y(() => c.value.length <= 1), K = y(() => {
9621
9608
  const j = d.value?.title, G = c.value[c.value.length - 1]?.title;
9622
9609
  return j ?? G ?? "";
9623
9610
  });
9624
- oe(q, (j) => {
9611
+ se(q, (j) => {
9625
9612
  !j && i.isMenuOpen.value && i.closeMenu();
9626
9613
  });
9627
9614
  const te = (j) => {
@@ -9831,7 +9818,7 @@ function $h() {
9831
9818
  const { setLocale: e, currentLocale: a } = ti(), t = zl(Sh, ""), l = (r) => {
9832
9819
  r && r !== a.value && e(r);
9833
9820
  };
9834
- l(t.value), oe(t, l);
9821
+ l(t.value), se(t, l);
9835
9822
  }
9836
9823
  const Rh = { class: "vc-menu-item__content" }, Ah = { class: "vc-menu-item__title" }, Th = {
9837
9824
  key: 0,
@@ -9853,9 +9840,9 @@ const Rh = { class: "vc-menu-item__content" }, Ah = { class: "vc-menu-item__titl
9853
9840
  emits: ["trigger:click", "trigger:hover"],
9854
9841
  setup(e, { expose: a, emit: t }) {
9855
9842
  const l = e, r = t, i = ht(), o = y(() => !i.trigger), c = y(() => o.value ? "button" : "div"), { isMobile: d } = Pe(), u = y(() => !!i.submenu), v = B(!1), { contentRef: b, wrapperStyle: p, isExpanded: m } = Kl();
9856
- oe(v, (C) => {
9843
+ se(v, (C) => {
9857
9844
  m.value !== C && (m.value = C);
9858
- }), oe(d, () => {
9845
+ }), se(d, () => {
9859
9846
  v.value = !1;
9860
9847
  });
9861
9848
  const h = B(null), f = () => {
@@ -10276,7 +10263,7 @@ function Kh() {
10276
10263
  }
10277
10264
  function Yh(e) {
10278
10265
  const a = B(!1), t = B(!1), { isAuthenticated: l } = Vl(), { loadHistory: r } = Gl(), { appsList: i, switchApp: o, getApps: c } = Kh();
10279
- return oe(
10266
+ return se(
10280
10267
  [() => e.isReady, l],
10281
10268
  async ([d, u]) => {
10282
10269
  a.value = d, !t.value && d && u && (t.value = !0, await r(), await c());
@@ -10308,10 +10295,10 @@ const jh = { class: "vc-app__main-content" }, YS = /* @__PURE__ */ Q({
10308
10295
  );
10309
10296
  lt("vc-app").debug("Init vc-app");
10310
10297
  const d = zt(), u = d.query.EmbeddedMode === "true", v = B(null);
10311
- oe(
10298
+ se(
10312
10299
  () => d.fullPath,
10313
10300
  () => Nn(() => v.value)
10314
- ), oe(
10301
+ ), se(
10315
10302
  v,
10316
10303
  (k) => {
10317
10304
  k && Nn(() => k);
@@ -10320,7 +10307,7 @@ const jh = { class: "vc-app__main-content" }, YS = /* @__PURE__ */ Q({
10320
10307
  );
10321
10308
  const b = B();
10322
10309
  De(yo, b);
10323
- const p = Gv();
10310
+ const p = Wv();
10324
10311
  ys();
10325
10312
  const { isAppReady: m, isAuthenticated: h, appsList: f, switchApp: C } = Yh(a), { handleMenuItemClick: E, openRoot: $ } = Gh(), O = Ce(Zi), N = Ce(ho, void 0), V = Ce("aiAgentConfig", void 0), R = Ce("aiAgentAddGlobalToolbarButton", !0), M = Ce(Ji, B(!1));
10326
10313
  zh({
@@ -10329,13 +10316,13 @@ const jh = { class: "vc-app__main-content" }, YS = /* @__PURE__ */ Q({
10329
10316
  dynamicModules: N,
10330
10317
  aiAgentConfig: V,
10331
10318
  aiAgentAddGlobalToolbarButton: R
10332
- }), oe(M, (k) => {
10319
+ }), se(M, (k) => {
10333
10320
  k && St.error(
10334
10321
  "Unable to load application modules. Please check your connection and try refreshing the page.",
10335
10322
  { timeout: 1e4 }
10336
10323
  );
10337
10324
  });
10338
- const { environmentName: D, isIgnored: T, color: S } = ef();
10325
+ const { environmentName: D, isIgnored: T, color: S } = Jv();
10339
10326
  return (k, _) => n(m) ? (s(), g("div", {
10340
10327
  key: 1,
10341
10328
  ref_key: "appRootRef",
@@ -10637,7 +10624,7 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
10637
10624
  },
10638
10625
  setup(e) {
10639
10626
  const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = B(!1), i = B(!1);
10640
- oe(
10627
+ se(
10641
10628
  () => a.background,
10642
10629
  (c) => {
10643
10630
  if (i.value = !1, !c) return;
@@ -10709,7 +10696,7 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
10709
10696
  emits: ["update:model-value"],
10710
10697
  setup(e, { emit: a }) {
10711
10698
  const t = e, l = a, { te: r, t: i } = ze({ useScope: "global" }), o = B([]), c = B(!1), d = B([]), u = B(t.property), v = B(t.modelValue), b = B([]), p = B(!1), m = B();
10712
- oe(
10699
+ se(
10713
10700
  () => t.property,
10714
10701
  (R) => {
10715
10702
  u.value = ka(R);
@@ -10718,7 +10705,7 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
10718
10705
  deep: !0,
10719
10706
  immediate: !0
10720
10707
  }
10721
- ), oe(
10708
+ ), se(
10722
10709
  () => t.modelValue,
10723
10710
  (R) => {
10724
10711
  v.value = ka(R);
@@ -10777,7 +10764,7 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
10777
10764
  });
10778
10765
  }
10779
10766
  });
10780
- et(async () => {
10767
+ tt(async () => {
10781
10768
  await $(), await O(), d.value = o.value;
10782
10769
  });
10783
10770
  function E(R) {
@@ -11181,17 +11168,17 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
11181
11168
  function b(m) {
11182
11169
  r("slides-updated", m);
11183
11170
  }
11184
- oe(
11171
+ se(
11185
11172
  () => l.expanded,
11186
11173
  (m) => {
11187
11174
  const h = d.value;
11188
11175
  h && (h.allowTouchMove = !m, m ? h.mousewheel?.disable() : (h.mousewheel?.enable(), h.slideTo(0, 0)), $e(() => h.update()));
11189
11176
  }
11190
- ), oe(Ie(l, "loading"), (m) => {
11177
+ ), se(Ie(l, "loading"), (m) => {
11191
11178
  d.value && (m ? d.value.disable() : d.value.enable());
11192
11179
  });
11193
11180
  let p = l.images.length;
11194
- return oe(
11181
+ return se(
11195
11182
  () => l.images.length,
11196
11183
  (m) => {
11197
11184
  m > p && d.value && !l.expanded && $e(() => {
@@ -11273,7 +11260,7 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
11273
11260
  emits: ["close"],
11274
11261
  setup(e, { emit: a }) {
11275
11262
  const t = a, l = e, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Pe(), o = B(l.index), c = B(!1), d = [lc], u = [xo], v = B(), b = B(), p = y(() => l.images[o.value]);
11276
- oe(
11263
+ se(
11277
11264
  () => l.index,
11278
11265
  (M) => {
11279
11266
  o.value = M, v.value?.slideTo(M);
@@ -11315,7 +11302,7 @@ const Xh = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, XS
11315
11302
  M.key === "Escape" && (M.preventDefault(), t("close"));
11316
11303
  }
11317
11304
  const R = oc(document.body);
11318
- return et(() => {
11305
+ return tt(() => {
11319
11306
  window.addEventListener("keydown", V), R.value = !0;
11320
11307
  }), He(() => {
11321
11308
  window.removeEventListener("keydown", V), R.value = !1;
@@ -11578,9 +11565,9 @@ function Dy(e, a) {
11578
11565
  function m() {
11579
11566
  o && (o.destroy(), o = null);
11580
11567
  }
11581
- return oe(t, (h) => {
11568
+ return se(t, (h) => {
11582
11569
  h ? p(h) : m();
11583
- }), oe(i, (h) => {
11570
+ }), se(i, (h) => {
11584
11571
  o && o.option("disabled", h);
11585
11572
  }), He(() => {
11586
11573
  b(), m();
@@ -11632,7 +11619,7 @@ function Fy(e) {
11632
11619
  function c(d) {
11633
11620
  i(d);
11634
11621
  }
11635
- return oe(e.imageCount, () => {
11622
+ return se(e.imageCount, () => {
11636
11623
  l.value ? $e(() => {
11637
11624
  l.value.update(), i(l.value);
11638
11625
  }) : t.value = !0;
@@ -11699,7 +11686,7 @@ const Uy = {
11699
11686
  const t = e, l = a, { t: r } = ze({ useScope: "global" }), { isMobile: i } = Pe(), o = Qe(), c = y(() => t.variant === "file-upload"), d = y(
11700
11687
  () => t.customText ? { text: t.customText.dragHere, link: t.customText.browse } : void 0
11701
11688
  ), u = B([]);
11702
- oe(
11689
+ se(
11703
11690
  () => t.images,
11704
11691
  (S) => {
11705
11692
  u.value = [...S ?? []];
@@ -12433,7 +12420,7 @@ const ww = /* @__PURE__ */ So(bw, [["render", yw]]), Cw = { class: "vc-table-com
12433
12420
  placement: "bottom-end",
12434
12421
  middleware: () => [Yn(4), Kn(), Ul({ padding: 8 })]
12435
12422
  });
12436
- oe(b, (_) => {
12423
+ se(b, (_) => {
12437
12424
  !_ && !m.value && !i.value && (o.value = !1, i.value = !1);
12438
12425
  });
12439
12426
  const $ = async () => {
@@ -12474,7 +12461,7 @@ const ww = /* @__PURE__ */ So(bw, [["render", yw]]), Cw = { class: "vc-table-com
12474
12461
  }, k = () => {
12475
12462
  !T || typeof document > "u" || (document.removeEventListener("keydown", D), T = !1);
12476
12463
  };
12477
- return oe(i, (_) => {
12464
+ return se(i, (_) => {
12478
12465
  _ ? S() : k();
12479
12466
  }), He(() => {
12480
12467
  k();
@@ -12941,7 +12928,7 @@ const ww = /* @__PURE__ */ So(bw, [["render", yw]]), Cw = { class: "vc-table-com
12941
12928
  }, _ = () => {
12942
12929
  !S || typeof window > "u" || typeof document > "u" || (document.removeEventListener("click", T), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0), S = !1);
12943
12930
  };
12944
- return oe(d, (I) => {
12931
+ return se(d, (I) => {
12945
12932
  I ? (p(), k(), $e(() => {
12946
12933
  $();
12947
12934
  })) : _();
@@ -13151,13 +13138,13 @@ const u0 = { class: "vc-global-filters-panel__content" }, d0 = { class: "vc-glob
13151
13138
  M[D.id] = t.modelValue[D.id] ?? null;
13152
13139
  b.value = M;
13153
13140
  };
13154
- oe(
13141
+ se(
13155
13142
  () => t.modelValue,
13156
13143
  () => {
13157
13144
  t.show || p();
13158
13145
  },
13159
13146
  { deep: !0 }
13160
- ), oe(
13147
+ ), se(
13161
13148
  () => t.show,
13162
13149
  (M) => {
13163
13150
  M && p();
@@ -14001,7 +13988,7 @@ const u0 = { class: "vc-global-filters-panel__content" }, d0 = { class: "vc-glob
14001
13988
  const i = t.value;
14002
13989
  l.value = !!i && i.scrollWidth > i.clientWidth;
14003
13990
  };
14004
- return Do(t, r), oe(
13991
+ return Do(t, r), se(
14005
13992
  () => [a.title, a.required, a.isEditing],
14006
13993
  () => requestAnimationFrame(r)
14007
13994
  ), (i, o) => (s(), P(n(pt), {
@@ -14406,8 +14393,8 @@ const a1 = {
14406
14393
  function r(re) {
14407
14394
  l("expand-toggle", t.item, t.index, re);
14408
14395
  }
14409
- function i(re, ie) {
14410
- l("cell-value-change", re.field || re.id, ie.value);
14396
+ function i(re, oe) {
14397
+ l("cell-value-change", re.field || re.id, oe.value);
14411
14398
  }
14412
14399
  const o = B(null), c = B(null), d = B(!1), u = B(null);
14413
14400
  function v() {
@@ -14422,15 +14409,15 @@ const a1 = {
14422
14409
  const re = _.value.length;
14423
14410
  return Math.min(re, re > 2 ? 3 : 2) * 70;
14424
14411
  });
14425
- function te(re, ie = 300) {
14412
+ function te(re, oe = 300) {
14426
14413
  C.value !== null && cancelAnimationFrame(C.value);
14427
14414
  const ee = p.value, fe = performance.now();
14428
- let se = N.value, ye = ee;
14415
+ let ie = N.value, ye = ee;
14429
14416
  h.value = !0;
14430
14417
  function Ee(Re) {
14431
- if (Re - fe < ie) {
14432
- const st = (re - ye) * f1, at = se * m1, kt = (st - at) / p1;
14433
- se += kt, ye += se, p.value = ye, m.value = Math.abs(p.value), C.value = requestAnimationFrame(Ee);
14418
+ if (Re - fe < oe) {
14419
+ const st = (re - ye) * f1, at = ie * m1, kt = (st - at) / p1;
14420
+ ie += kt, ye += ie, p.value = ye, m.value = Math.abs(p.value), C.value = requestAnimationFrame(Ee);
14434
14421
  } else
14435
14422
  p.value = re, m.value = Math.abs(re), h.value = !1, C.value = null;
14436
14423
  }
@@ -14438,14 +14425,14 @@ const a1 = {
14438
14425
  }
14439
14426
  function me(re) {
14440
14427
  if (h.value || _.value.length === 0) return;
14441
- const ie = re.touches[0];
14442
- E.value = ie.clientX, $.value = ie.clientY, O.value = p.value, N.value = 0, V.value = Date.now(), R.value = ie.clientX, M.value = null, T(String(S.value));
14428
+ const oe = re.touches[0];
14429
+ E.value = oe.clientX, $.value = oe.clientY, O.value = p.value, N.value = 0, V.value = Date.now(), R.value = oe.clientX, M.value = null, T(String(S.value));
14443
14430
  }
14444
14431
  function j(re) {
14445
14432
  if (h.value || _.value.length === 0 || D.value !== String(S.value)) return;
14446
- const ie = re.touches[0], ee = ie.clientX, fe = ee - E.value, se = ie.clientY - $.value;
14433
+ const oe = re.touches[0], ee = oe.clientX, fe = ee - E.value, ie = oe.clientY - $.value;
14447
14434
  if (M.value === null) {
14448
- const We = Math.abs(fe), st = Math.abs(se);
14435
+ const We = Math.abs(fe), st = Math.abs(ie);
14449
14436
  if (We >= ja || st >= ja)
14450
14437
  M.value = We > st ? "horizontal" : "vertical";
14451
14438
  else
@@ -14466,15 +14453,15 @@ const a1 = {
14466
14453
  function G() {
14467
14454
  const re = M.value === "vertical" || M.value === null;
14468
14455
  if (M.value = null, re || h.value || _.value.length === 0 || D.value !== String(S.value)) return;
14469
- const ie = Math.abs(N.value), ee = N.value < 0 ? -1 : 1;
14470
- if (ie > 0.5)
14456
+ const oe = Math.abs(N.value), ee = N.value < 0 ? -1 : 1;
14457
+ if (oe > 0.5)
14471
14458
  ee < 0 ? te(-K.value) : te(0);
14472
14459
  else {
14473
14460
  const fe = K.value * 0.4;
14474
14461
  Math.abs(p.value) > fe ? te(-K.value) : te(0);
14475
14462
  }
14476
14463
  }
14477
- oe(
14464
+ se(
14478
14465
  D,
14479
14466
  (re) => {
14480
14467
  (!re || re !== String(S.value)) && p.value !== 0 && te(0);
@@ -14507,11 +14494,11 @@ const a1 = {
14507
14494
  function ae(re) {
14508
14495
  l("action", re, t.item, t.index);
14509
14496
  }
14510
- return et(() => {
14497
+ return tt(() => {
14511
14498
  c.value && (c.value.addEventListener("touchstart", me, { passive: !0 }), c.value.addEventListener("touchmove", j, { passive: !1 }), c.value.addEventListener("touchend", G, { passive: !0 }));
14512
14499
  }), He(() => {
14513
14500
  c.value && (c.value.removeEventListener("touchstart", me), c.value.removeEventListener("touchmove", j), c.value.removeEventListener("touchend", G)), C.value !== null && cancelAnimationFrame(C.value), u.value && clearTimeout(u.value);
14514
- }), (re, ie) => Xe((s(), g("div", {
14501
+ }), (re, oe) => Xe((s(), g("div", {
14515
14502
  ref_key: "containerRef",
14516
14503
  ref: o,
14517
14504
  class: X(["vc-data-table-mobile-card", {
@@ -14521,7 +14508,7 @@ const a1 = {
14521
14508
  "vc-data-table-mobile-card--reorderable": e.reorderable
14522
14509
  }]),
14523
14510
  onClick: J,
14524
- onContextmenu: ie[9] || (ie[9] = ue(() => {
14511
+ onContextmenu: oe[9] || (oe[9] = ue(() => {
14525
14512
  }, ["prevent"])),
14526
14513
  onTouchstartPassive: v,
14527
14514
  onTouchend: b,
@@ -14537,11 +14524,11 @@ const a1 = {
14537
14524
  e.reorderable ? (s(), g("div", {
14538
14525
  key: 0,
14539
14526
  class: "vc-data-table-mobile-card__drag-handle",
14540
- onClick: ie[0] || (ie[0] = ue(() => {
14527
+ onClick: oe[0] || (oe[0] = ue(() => {
14541
14528
  }, ["stop"])),
14542
- onTouchstart: ie[1] || (ie[1] = ue(() => {
14529
+ onTouchstart: oe[1] || (oe[1] = ue(() => {
14543
14530
  }, ["stop"]))
14544
- }, [...ie[10] || (ie[10] = [
14531
+ }, [...oe[10] || (oe[10] = [
14545
14532
  w("svg", {
14546
14533
  xmlns: "http://www.w3.org/2000/svg",
14547
14534
  width: "16",
@@ -14599,7 +14586,7 @@ const a1 = {
14599
14586
  "is-inline-editing": e.isInlineEditing,
14600
14587
  "unique-field-name": `${e.layout.image.field || e.layout.image.id}_${e.index}`,
14601
14588
  "validate-on-mount": e.isNewRow && e.layout.image.column.props.editable,
14602
- onUpdate: ie[2] || (ie[2] = (ee) => i(e.layout.image, ee))
14589
+ onUpdate: oe[2] || (oe[2] = (ee) => i(e.layout.image, ee))
14603
14590
  }, null, 8, ["config", "item", "index", "is-inline-editing", "unique-field-name", "validate-on-mount"])
14604
14591
  ])) : L("", !0),
14605
14592
  w("div", o1, [
@@ -14611,7 +14598,7 @@ const a1 = {
14611
14598
  "is-inline-editing": e.isInlineEditing,
14612
14599
  "unique-field-name": `${e.layout.title.field || e.layout.title.id}_${e.index}`,
14613
14600
  "validate-on-mount": e.isNewRow && e.layout.title.column.props.editable,
14614
- onUpdate: ie[3] || (ie[3] = (ee) => i(e.layout.title, ee))
14601
+ onUpdate: oe[3] || (oe[3] = (ee) => i(e.layout.title, ee))
14615
14602
  }, null, 8, ["config", "item", "index", "is-inline-editing", "unique-field-name", "validate-on-mount"])
14616
14603
  ])) : L("", !0),
14617
14604
  e.layout.fields.length > 0 ? (s(), g("div", {
@@ -14658,7 +14645,7 @@ const a1 = {
14658
14645
  "aria-expanded": e.isExpanded,
14659
14646
  "aria-label": e.expandLabel,
14660
14647
  onClick: ue(r, ["stop"]),
14661
- onTouchstart: ie[4] || (ie[4] = ue(() => {
14648
+ onTouchstart: oe[4] || (oe[4] = ue(() => {
14662
14649
  }, ["stop"]))
14663
14650
  }, [
14664
14651
  A(n(le), {
@@ -14670,9 +14657,9 @@ const a1 = {
14670
14657
  e.expandable && e.isExpanded ? (s(), g("div", {
14671
14658
  key: 2,
14672
14659
  class: "vc-data-table-mobile-card__expansion",
14673
- onClick: ie[5] || (ie[5] = ue(() => {
14660
+ onClick: oe[5] || (oe[5] = ue(() => {
14674
14661
  }, ["stop"])),
14675
- onTouchstart: ie[6] || (ie[6] = ue(() => {
14662
+ onTouchstart: oe[6] || (oe[6] = ue(() => {
14676
14663
  }, ["stop"]))
14677
14664
  }, [
14678
14665
  z(re.$slots, "expansion")
@@ -14682,7 +14669,7 @@ const a1 = {
14682
14669
  key: 0,
14683
14670
  class: "vc-data-table-mobile-card__actions",
14684
14671
  style: he({ width: `${m.value}px` }),
14685
- onTouchstart: ie[7] || (ie[7] = ue(() => {
14672
+ onTouchstart: oe[7] || (oe[7] = ue(() => {
14686
14673
  }, ["stop"]))
14687
14674
  }, [
14688
14675
  I.value ? (s(), g("button", {
@@ -14714,7 +14701,7 @@ const a1 = {
14714
14701
  title: e.actionSheetTitle,
14715
14702
  actions: q.value,
14716
14703
  "cancel-label": e.cancelLabel,
14717
- onClose: ie[8] || (ie[8] = (ee) => f.value = !1),
14704
+ onClose: oe[8] || (oe[8] = (ee) => f.value = !1),
14718
14705
  onAction: ae
14719
14706
  }, null, 8, ["open", "title", "actions", "cancel-label"])
14720
14707
  ], 34)), [
@@ -14899,7 +14886,7 @@ const k1 = { class: "vc-pull-to-refresh__indicator-content" }, E1 = { class: "vc
14899
14886
  function k() {
14900
14887
  u.value && (u.value = !1, v.value && !l.refreshing ? (i("refresh"), D(Sn)) : D(0), v.value = !1);
14901
14888
  }
14902
- return oe(
14889
+ return se(
14903
14890
  () => l.refreshing,
14904
14891
  (_, I) => {
14905
14892
  I && !_ && D(0);
@@ -15286,14 +15273,14 @@ function F1(e) {
15286
15273
  const te = E();
15287
15274
  if (te.length === 0 || !te.includes(h)) return;
15288
15275
  const me = {};
15289
- for (const ie of te)
15290
- m[ie] && (me[ie] = m[ie].weight * K);
15276
+ for (const oe of te)
15277
+ m[oe] && (me[oe] = m[oe].weight * K);
15291
15278
  let j = 0;
15292
- for (const ie of f) {
15293
- const ee = m[ie]?.minPx ?? i;
15294
- j += Math.max(0, me[ie] - ee);
15279
+ for (const oe of f) {
15280
+ const ee = m[oe]?.minPx ?? i;
15281
+ j += Math.max(0, me[oe] - ee);
15295
15282
  }
15296
- const G = te.reduce((ie, ee) => ie + (me[ee] ?? 0), 0), ne = Math.max(0, K - G);
15283
+ const G = te.reduce((oe, ee) => oe + (me[ee] ?? 0), 0), ne = Math.max(0, K - G);
15297
15284
  j += ne;
15298
15285
  const J = m[h]?.minPx ?? i, W = Math.max(0, me[h] - J), ke = Math.max(-W, Math.min(q, j));
15299
15286
  if (Math.abs(ke) < 0.5) return;
@@ -15301,22 +15288,22 @@ function F1(e) {
15301
15288
  if (H[h] = me[h] + ke, f.length > 0) {
15302
15289
  for (const fe of f)
15303
15290
  H[fe] = me[fe];
15304
- let ie = ke;
15291
+ let oe = ke;
15305
15292
  const ee = [...f];
15306
- for (; Math.abs(ie) > 0.5 && ee.length > 0; ) {
15307
- const fe = ie / ee.length, se = [];
15293
+ for (; Math.abs(oe) > 0.5 && ee.length > 0; ) {
15294
+ const fe = oe / ee.length, ie = [];
15308
15295
  let ye = 0;
15309
15296
  for (const Ee of ee) {
15310
15297
  const Re = m[Ee]?.minPx ?? i, We = H[Ee], st = We - fe, at = Math.max(Re, st), kt = We - at;
15311
- ye += kt, H[Ee] = at, (at > Re || fe < 0) && se.push(Ee);
15298
+ ye += kt, H[Ee] = at, (at > Re || fe < 0) && ie.push(Ee);
15312
15299
  }
15313
- if (ie -= ye, Math.abs(ye) < 0.5) break;
15314
- ee.length = 0, ee.push(...se);
15300
+ if (oe -= ye, Math.abs(ye) < 0.5) break;
15301
+ ee.length = 0, ee.push(...ie);
15315
15302
  }
15316
15303
  }
15317
- const ae = C(m), re = te.filter((ie) => !!ae[ie]);
15318
- for (const ie of re)
15319
- ae[ie] && H[ie] !== void 0 && (ae[ie].weight = H[ie] / K);
15304
+ const ae = C(m), re = te.filter((oe) => !!ae[oe]);
15305
+ for (const oe of re)
15306
+ ae[oe] && H[oe] !== void 0 && (ae[oe].weight = H[oe] / K);
15320
15307
  a.value = { ...a.value, specs: ae }, l();
15321
15308
  }, M = (q) => {
15322
15309
  if (!v.value || !h) return;
@@ -15350,7 +15337,7 @@ function F1(e) {
15350
15337
  }
15351
15338
  }), S.observe(u.value));
15352
15339
  };
15353
- return u && oe(
15340
+ return u && se(
15354
15341
  u,
15355
15342
  (q) => {
15356
15343
  S?.disconnect(), q && U();
@@ -15454,15 +15441,15 @@ function z1(e, a, t) {
15454
15441
  }
15455
15442
  });
15456
15443
  }
15457
- return oe(
15444
+ return se(
15458
15445
  e,
15459
15446
  (u) => {
15460
15447
  u ? d(u) : c();
15461
15448
  },
15462
15449
  { immediate: !0 }
15463
- ), oe(t.disabled, (u) => {
15450
+ ), se(t.disabled, (u) => {
15464
15451
  o && o.option("disabled", u);
15465
- }), oe(
15452
+ }), se(
15466
15453
  a,
15467
15454
  (u) => {
15468
15455
  r.value || (l.value = [...u], i.value = !1);
@@ -15626,18 +15613,18 @@ function n$(e) {
15626
15613
  }, M = () => {
15627
15614
  R();
15628
15615
  };
15629
- return oe(
15616
+ return se(
15630
15617
  l,
15631
15618
  (D) => {
15632
15619
  D && R();
15633
15620
  },
15634
15621
  { immediate: !0 }
15635
- ), oe(
15622
+ ), se(
15636
15623
  () => a.value.length,
15637
15624
  (D, T) => {
15638
15625
  T > 0 && D !== T && (m = { start: -1, end: -1 });
15639
15626
  }
15640
- ), et(() => {
15627
+ ), tt(() => {
15641
15628
  R(), window.addEventListener("resize", M);
15642
15629
  }), He(() => {
15643
15630
  window.removeEventListener("resize", M), p && clearTimeout(p);
@@ -15666,7 +15653,7 @@ function W1(e) {
15666
15653
  onRowGroupExpand: c,
15667
15654
  onRowGroupCollapse: d
15668
15655
  } = e, u = B([]);
15669
- oe(
15656
+ se(
15670
15657
  () => i?.value,
15671
15658
  (R) => {
15672
15659
  R !== void 0 && (u.value = [...R]);
@@ -15787,7 +15774,7 @@ function G1(e = {}) {
15787
15774
  }
15788
15775
  function q1(e) {
15789
15776
  const { sortField: a, sortOrder: t, sortMode: l, multiSortMeta: r, removableSort: i, onSort: o } = e, c = B(a.value), d = B(t.value ?? 0), u = B([...r.value || []]);
15790
- oe(
15777
+ se(
15791
15778
  () => [a.value, t.value, r.value],
15792
15779
  ([C, E, $]) => {
15793
15780
  c.value = C, d.value = E ?? 0, u.value = [...$ || []];
@@ -15853,7 +15840,7 @@ function Za(e) {
15853
15840
  }
15854
15841
  function K1(e) {
15855
15842
  const { editMode: a, editingRows: t, getItemKey: l } = e, r = B(null), i = B({}), o = B([]), c = B(/* @__PURE__ */ new Map());
15856
- return oe(
15843
+ return se(
15857
15844
  () => t?.value,
15858
15845
  (E) => {
15859
15846
  E !== void 0 && (o.value = [...E]);
@@ -15951,7 +15938,7 @@ function K1(e) {
15951
15938
  }
15952
15939
  function Y1(e) {
15953
15940
  const { expandedRows: a, getItemKey: t, isRowExpandable: l } = e, r = B([]);
15954
- oe(
15941
+ se(
15955
15942
  () => a?.value,
15956
15943
  (m) => {
15957
15944
  m !== void 0 && (r.value = [...m]);
@@ -15999,13 +15986,13 @@ function j1(e) {
15999
15986
  selectAllEnabled: d,
16000
15987
  onSelectAllChange: u
16001
15988
  } = e, v = B([]), b = B(!1);
16002
- oe(
15989
+ se(
16003
15990
  () => t?.value,
16004
15991
  (_) => {
16005
15992
  _ !== void 0 && (v.value = Array.isArray(_) ? _ : [_]);
16006
15993
  },
16007
15994
  { immediate: !0 }
16008
- ), oe(
15995
+ ), se(
16009
15996
  () => c?.value,
16010
15997
  (_) => {
16011
15998
  _ !== void 0 && (b.value = _);
@@ -16061,7 +16048,7 @@ function j1(e) {
16061
16048
  isSelectAll: b.value,
16062
16049
  count: b.value ? o?.value ?? v.value.length : v.value.length
16063
16050
  });
16064
- return oe(
16051
+ return se(
16065
16052
  () => v.value.length,
16066
16053
  (_, I) => {
16067
16054
  b.value && _ < I && (b.value = !1, u?.(!1));
@@ -16198,7 +16185,7 @@ function Q1(e) {
16198
16185
  U.length !== 0 && (o.value = x1({ availableWidth: _, columns: U, mode: r }));
16199
16186
  };
16200
16187
  let S = /* @__PURE__ */ new Set(), k = !0;
16201
- return oe(
16188
+ return se(
16202
16189
  a,
16203
16190
  () => {
16204
16191
  const _ = a.value.filter((J) => !nt(J.props)), I = _.map((J) => J.props.id), U = new Set(I), q = new Set(i.value.order), K = I.filter((J) => !q.has(J)), te = k ? [] : I.filter((J) => q.has(J) && !S.has(J)), me = k ? [] : [...S].filter((J) => !U.has(J)), j = K.length > 0 || te.length > 0 || me.length > 0, G = i.value.order.length === 0, ne = e.getAvailableWidth();
@@ -16378,7 +16365,7 @@ function tC(e) {
16378
16365
  if (l.value.order.length > 0)
16379
16366
  V(l.value, C), C = null;
16380
16367
  else {
16381
- const T = oe(
16368
+ const T = se(
16382
16369
  l,
16383
16370
  (S) => {
16384
16371
  C && S.order.length !== 0 && (V(S, C), C = null, $e(() => {
@@ -16402,7 +16389,7 @@ function tC(e) {
16402
16389
  b = void 0, R() && $();
16403
16390
  }, Z1));
16404
16391
  }
16405
- return oe(i ? [l, r, i] : [l, r], M, { deep: !0 }), He(() => {
16392
+ return se(i ? [l, r, i] : [l, r], M, { deep: !0 }), He(() => {
16406
16393
  b != null && (clearTimeout(b), b = void 0, a.value && $());
16407
16394
  }), {
16408
16395
  saveState: $,
@@ -16436,7 +16423,7 @@ function nC(e) {
16436
16423
  t("update:selectAllActive", Y), t("select-all", { selected: Y });
16437
16424
  }
16438
16425
  });
16439
- oe(
16426
+ se(
16440
16427
  () => C.internalSelection.value,
16441
16428
  (Y) => {
16442
16429
  t("update:selection", p.value === "single" ? Y[0] : Y);
@@ -16462,7 +16449,7 @@ function nC(e) {
16462
16449
  getItemKey: d,
16463
16450
  isRowExpandable: (Y) => a.isRowExpandable ? a.isRowExpandable(Y) : !0
16464
16451
  }), N = B([]);
16465
- oe(
16452
+ se(
16466
16453
  () => O.internalExpandedRows.value,
16467
16454
  (Y) => {
16468
16455
  const ge = Y.map((Be) => d(Be, 0)), pe = N.value.join(","), Oe = ge.join(",");
@@ -16512,7 +16499,7 @@ function nC(e) {
16512
16499
  fitMode: a.fitMode ?? "gap",
16513
16500
  getAvailableWidth: k
16514
16501
  }), I = B(/* @__PURE__ */ new Set());
16515
- oe(
16502
+ se(
16516
16503
  () => c.value.map((Y) => Y.props.id).join(","),
16517
16504
  () => {
16518
16505
  I.value = new Set(c.value.map((Y) => Y.props.id));
@@ -16545,7 +16532,7 @@ function nC(e) {
16545
16532
  Y.userSized && _.markSizingCustomized(), t("state-restore", Y);
16546
16533
  }
16547
16534
  });
16548
- oe(
16535
+ se(
16549
16536
  I,
16550
16537
  (Y, ge) => {
16551
16538
  const pe = new Set(i.value), Oe = new Set(o.value);
@@ -16565,7 +16552,7 @@ function nC(e) {
16565
16552
  disabled: y(() => !me.value),
16566
16553
  handle: lC,
16567
16554
  onReorder: (Y) => t("row-reorder", Y)
16568
- }), W = y(() => l.value.find((Y) => Y.props.expander === !0) || null), ke = y(() => W.value !== null), H = hi(), { filterValues: ae, updateFilter: re, updateRangeFilter: ie, clearFilter: ee, buildPayload: fe, hasActiveFilters: se } = G1(
16555
+ }), W = y(() => l.value.find((Y) => Y.props.expander === !0) || null), ke = y(() => W.value !== null), H = hi(), { filterValues: ae, updateFilter: re, updateRangeFilter: oe, clearFilter: ee, buildPayload: fe, hasActiveFilters: ie } = G1(
16569
16556
  {
16570
16557
  onFilterChange: (Y) => {
16571
16558
  t("filter", { filters: Y, filteredValue: a.items });
@@ -16590,7 +16577,7 @@ function nC(e) {
16590
16577
  const Be = at(Y);
16591
16578
  if (Be) {
16592
16579
  const ot = ge[Be[0]], Je = ge[Be[1]];
16593
- ie(Be, { start: ot, end: Je });
16580
+ oe(Be, { start: ot, end: Je });
16594
16581
  }
16595
16582
  } else {
16596
16583
  const Be = ge[Oe];
@@ -16655,9 +16642,9 @@ function nC(e) {
16655
16642
  statePersistence: K,
16656
16643
  // Column filter helpers
16657
16644
  colFilter: H,
16658
- updateRangeFilter: ie,
16645
+ updateRangeFilter: oe,
16659
16646
  buildPayload: fe,
16660
- hasActiveFilters: se,
16647
+ hasActiveFilters: ie,
16661
16648
  // Column filter template helpers
16662
16649
  showColumnFilter: ye,
16663
16650
  getColumnFilterType: Re,
@@ -16964,7 +16951,7 @@ const a$ = {
16964
16951
  ), f = y(
16965
16952
  () => v.value ? l.notFoundState?.actionHandler : l.emptyState?.actionHandler
16966
16953
  ), C = y(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), E = B(!1);
16967
- oe(
16954
+ se(
16968
16955
  () => l.items,
16969
16956
  (ce) => {
16970
16957
  ce && ce.length > 0 && (E.value = !0);
@@ -17051,12 +17038,12 @@ const a$ = {
17051
17038
  editing: H,
17052
17039
  rowGrouping: ae,
17053
17040
  inlineEdit: re,
17054
- cols: ie,
17041
+ cols: oe,
17055
17042
  statePersistence: ee,
17056
17043
  // Column filter helpers
17057
17044
  hasActiveFilters: fe,
17058
17045
  // Column filter template helpers
17059
- showColumnFilter: se,
17046
+ showColumnFilter: ie,
17060
17047
  getColumnFilterType: ye,
17061
17048
  getColumnFilterOptions: Ee,
17062
17049
  isColumnFilterMultiple: Re,
@@ -17126,7 +17113,7 @@ const a$ = {
17126
17113
  on.value = R.value ? ba.value?.listEl : Ke.value?.listEl;
17127
17114
  }), De(
17128
17115
  $o,
17129
- y(() => ie.engineOutput.value.fillerWidth)
17116
+ y(() => oe.engineOutput.value.fillerWidth)
17130
17117
  ), De(Ro, ln);
17131
17118
  const ha = (ce) => {
17132
17119
  r("pagination-click", ce);
@@ -17137,7 +17124,7 @@ const a$ = {
17137
17124
  r("search", ce);
17138
17125
  }, l.searchDebounce ?? 300);
17139
17126
  };
17140
- oe(
17127
+ se(
17141
17128
  () => l.searchValue,
17142
17129
  (ce) => {
17143
17130
  ce !== void 0 && ce !== Yt.value && (Yt.value = ce);
@@ -17208,9 +17195,9 @@ const a$ = {
17208
17195
  hasActions: !!l.rowActions,
17209
17196
  actionsPosition: l.rowActionsPosition ?? "overlay",
17210
17197
  // Column helpers
17211
- getColumnWidth: ie.getEffectiveColumnWidth,
17212
- getCellAlign: ie.getCellAlign,
17213
- getCellStyle: ie.getCellStyle,
17198
+ getColumnWidth: oe.getEffectiveColumnWidth,
17199
+ getCellAlign: oe.getCellAlign,
17200
+ getCellStyle: oe.getCellStyle,
17214
17201
  // Custom class
17215
17202
  rowClass: l.rowClass?.(ce)
17216
17203
  }), { width: gl } = No(J), Di = y(() => {
@@ -17399,15 +17386,15 @@ const a$ = {
17399
17386
  "some-selected": n(W).isPartiallySelected.value,
17400
17387
  "get-sort-direction": n(ke).getSortDirection,
17401
17388
  "get-sort-index": n(ke).getSortIndex,
17402
- "get-column-width": n(ie).getEffectiveColumnWidth,
17403
- "get-header-align": n(ie).getHeaderAlign,
17404
- "get-header-style": n(ie).getHeaderStyle,
17405
- "is-column-resizable": n(ie).isColumnResizable,
17406
- "is-column-reorderable": n(ie).isColumnReorderable,
17407
- "is-last-resizable": n(ie).isLastResizableColumn,
17408
- "get-sort-field": n(ie).getSortField,
17409
- "set-header-ref": n(ie).setHeaderRef,
17410
- "show-filter": n(se),
17389
+ "get-column-width": n(oe).getEffectiveColumnWidth,
17390
+ "get-header-align": n(oe).getHeaderAlign,
17391
+ "get-header-style": n(oe).getHeaderStyle,
17392
+ "is-column-resizable": n(oe).isColumnResizable,
17393
+ "is-column-reorderable": n(oe).isColumnReorderable,
17394
+ "is-last-resizable": n(oe).isLastResizableColumn,
17395
+ "get-sort-field": n(oe).getSortField,
17396
+ "set-header-ref": n(oe).setHeaderRef,
17397
+ "show-filter": n(ie),
17411
17398
  "get-filter-type": n(ye),
17412
17399
  "get-filter-options": n(Ee),
17413
17400
  "is-filter-multiple": n(Re),
@@ -17434,8 +17421,8 @@ const a$ = {
17434
17421
  loading: e.loading || n($),
17435
17422
  "skeleton-rows": l.skeletonRows,
17436
17423
  columns: n(vl),
17437
- "get-column-width": n(ie).getEffectiveColumnWidth,
17438
- "get-cell-style": n(ie).getCellStyle,
17424
+ "get-column-width": n(oe).getEffectiveColumnWidth,
17425
+ "get-cell-style": n(oe).getCellStyle,
17439
17426
  "show-selection-cell": n(Gt) && !n(qt),
17440
17427
  "empty-icon": b.value,
17441
17428
  "empty-title": p.value,
@@ -17616,7 +17603,7 @@ const a$ = {
17616
17603
  }), u = () => {
17617
17604
  o.value = !1;
17618
17605
  };
17619
- oe(
17606
+ se(
17620
17607
  () => t.selectionItems,
17621
17608
  (W) => {
17622
17609
  W && (i.value = [...W]);
@@ -18317,7 +18304,7 @@ const MC = ["aria-label", "onKeydown"], LC = {
18317
18304
  ), o = B(null);
18318
18305
  let c = null;
18319
18306
  const d = () => $e(() => o.value?.querySelector("button")?.focus());
18320
- return oe(
18307
+ return se(
18321
18308
  () => t.open,
18322
18309
  (u) => {
18323
18310
  if (u) {
@@ -18703,14 +18690,14 @@ function f_(e) {
18703
18690
  function u(h) {
18704
18691
  if (!e.editable.value) return;
18705
18692
  const f = Ge(h);
18706
- t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end: tt(f, 1) };
18693
+ t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end: et(f, 1) };
18707
18694
  }
18708
18695
  function v(h, f) {
18709
18696
  if (!t || !a.value) return;
18710
18697
  const C = e.dayFromPoint(h, f);
18711
18698
  if (!C) return;
18712
18699
  if (t.kind === "create") {
18713
- const O = Ge(C).getTime(), N = Math.min(r, O), V = tt(new Date(Math.max(r, O)), 1);
18700
+ const O = Ge(C).getTime(), N = Math.min(r, O), V = et(new Date(Math.max(r, O)), 1);
18714
18701
  a.value = { id: "__new__", start: new Date(N), end: V };
18715
18702
  return;
18716
18703
  }
@@ -18766,27 +18753,27 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18766
18753
  setup(e, { emit: a }) {
18767
18754
  const t = e, l = a, r = B(null), i = y(() => {
18768
18755
  const ee = t.firstDayOfWeek % 7, fe = At(Wl(t.focusedDate), { weekStartsOn: ee });
18769
- return { start: fe, end: tt(fe, 42) };
18756
+ return { start: fe, end: et(fe, 42) };
18770
18757
  }), o = y(
18771
18758
  () => Array.from({ length: 42 }, (ee, fe) => {
18772
- const se = tt(i.value.start, fe);
18759
+ const ie = et(i.value.start, fe);
18773
18760
  return {
18774
- date: se,
18775
- inMonth: Vo(se, t.focusedDate),
18776
- isToday: Xn(se),
18777
- isWeekend: [0, 6].includes(fc(se))
18761
+ date: ie,
18762
+ inMonth: Vo(ie, t.focusedDate),
18763
+ isToday: Xn(ie),
18764
+ isWeekend: [0, 6].includes(fc(ie))
18778
18765
  };
18779
18766
  })
18780
18767
  ), c = y(
18781
- () => Array.from({ length: 7 }, (ee, fe) => Te(tt(i.value.start, fe), "EEEEEE"))
18768
+ () => Array.from({ length: 7 }, (ee, fe) => Te(et(i.value.start, fe), "EEEEEE"))
18782
18769
  );
18783
18770
  function d(ee, fe) {
18784
- const se = r.value;
18785
- if (!se) return null;
18786
- const ye = se.getBoundingClientRect();
18771
+ const ie = r.value;
18772
+ if (!ie) return null;
18773
+ const ye = ie.getBoundingClientRect();
18787
18774
  if (ye.width <= 0 || ye.height <= 0) return null;
18788
18775
  const Ee = Math.floor((ee - ye.left) / ye.width * 7), Re = Math.floor((fe - ye.top) / ye.height * 6);
18789
- return Ee < 0 || Ee > 6 || Re < 0 || Re > 5 ? null : tt(i.value.start, Re * 7 + Ee);
18776
+ return Ee < 0 || Ee > 6 || Re < 0 || Re > 5 ? null : et(i.value.start, Re * 7 + Ee);
18790
18777
  }
18791
18778
  const u = f_({
18792
18779
  editable: Ie(t, "editable"),
@@ -18813,12 +18800,12 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18813
18800
  }
18814
18801
  function C(ee, fe = null) {
18815
18802
  h.value = ee;
18816
- const se = f(ee);
18817
- se && (l("event-click", se), t.quickInfo && H(se, fe));
18803
+ const ie = f(ee);
18804
+ ie && (l("event-click", ie), t.quickInfo && H(ie, fe));
18818
18805
  }
18819
18806
  function E(ee, fe) {
18820
- const se = fe.currentTarget?.getBoundingClientRect() ?? null;
18821
- C(ee, se);
18807
+ const ie = fe.currentTarget?.getBoundingClientRect() ?? null;
18808
+ C(ee, ie);
18822
18809
  }
18823
18810
  function $(ee) {
18824
18811
  return b.timedByDay.value.get(Te(ee, "yyyy-MM-dd")) ?? [];
@@ -18826,17 +18813,17 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18826
18813
  let O = null, N = null, V = null, R = !1;
18827
18814
  const M = /* @__PURE__ */ new Map(), D = Si({
18828
18815
  onIntent: (ee, fe) => {
18829
- const se = M.get(fe);
18830
- if (M.delete(fe), !se) return;
18831
- const ye = Ge(se.date);
18832
- l("create-intent", { start: ye, end: tt(ye, 1), allDay: !0, anchorRect: se.rect, kind: ee });
18816
+ const ie = M.get(fe);
18817
+ if (M.delete(fe), !ie) return;
18818
+ const ye = Ge(ie.date);
18819
+ l("create-intent", { start: ye, end: et(ye, 1), allDay: !0, anchorRect: ie.rect, kind: ee });
18833
18820
  }
18834
18821
  });
18835
18822
  function T(ee, fe) {
18836
18823
  t.editable && (O = "move", u.beginMove(ee, fe.clientX, fe.clientY), U());
18837
18824
  }
18838
- function S(ee, fe, se) {
18839
- t.editable && (O = "resize", u.beginResize(ee, fe, se.clientX, se.clientY), U());
18825
+ function S(ee, fe, ie) {
18826
+ t.editable && (O = "resize", u.beginResize(ee, fe, ie.clientX, ie.clientY), U());
18840
18827
  }
18841
18828
  function k(ee, fe) {
18842
18829
  t.editable && (O = "create", N = ee, V = fe.currentTarget?.getBoundingClientRect() ?? null, R = !1, u.beginCreate(ee), U());
@@ -18880,8 +18867,8 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18880
18867
  const ee = Ge(te.value).getTime();
18881
18868
  return v.value.filter((fe) => {
18882
18869
  if (!b.isAllDay(fe)) return !1;
18883
- const se = Ge(fe.start).getTime(), ye = Ge(new Date(fe.end.getTime() - 1)).getTime();
18884
- return se <= ee && ee <= ye;
18870
+ const ie = Ge(fe.start).getTime(), ye = Ge(new Date(fe.end.getTime() - 1)).getTime();
18871
+ return ie <= ee && ee <= ye;
18885
18872
  });
18886
18873
  });
18887
18874
  function ne(ee, fe = null) {
@@ -18897,17 +18884,17 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18897
18884
  function re(ee) {
18898
18885
  l("edit-intent", ee);
18899
18886
  }
18900
- function ie(ee) {
18887
+ function oe(ee) {
18901
18888
  l("event-delete", ee);
18902
18889
  }
18903
18890
  return (ee, fe) => (s(), g("div", m_, [
18904
18891
  w("div", p_, [
18905
18892
  w("div", g_, [
18906
- (s(!0), g(Z, null, de(c.value, (se, ye) => (s(), g("div", {
18893
+ (s(!0), g(Z, null, de(c.value, (ie, ye) => (s(), g("div", {
18907
18894
  key: ye,
18908
18895
  class: "vc-scheduler__weekday",
18909
18896
  role: "columnheader"
18910
- }, F(se), 1))), 128))
18897
+ }, F(ie), 1))), 128))
18911
18898
  ]),
18912
18899
  w("div", {
18913
18900
  ref_key: "gridRef",
@@ -18916,11 +18903,11 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18916
18903
  role: "rowgroup",
18917
18904
  tabindex: "0"
18918
18905
  }, [
18919
- (s(!0), g(Z, null, de(m.value, (se, ye) => (s(), P(FC, {
18906
+ (s(!0), g(Z, null, de(m.value, (ie, ye) => (s(), P(FC, {
18920
18907
  key: ye,
18921
- days: se.days,
18922
- "laid-out": se.laidOut,
18923
- overflow: se.overflow,
18908
+ days: ie.days,
18909
+ "laid-out": ie.laidOut,
18910
+ overflow: ie.overflow,
18924
18911
  "timed-by-day": n(b).timedByDay.value,
18925
18912
  "selected-id": h.value,
18926
18913
  editable: t.editable,
@@ -18966,10 +18953,10 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18966
18953
  "anchor-rect": me.value,
18967
18954
  events: G.value,
18968
18955
  onEventClick: ne,
18969
- onClose: fe[6] || (fe[6] = (se) => K.value = !1)
18956
+ onClose: fe[6] || (fe[6] = (ie) => K.value = !1)
18970
18957
  }, {
18971
- event: x(({ event: se }) => [
18972
- z(ee.$slots, "event", { event: se })
18958
+ event: x(({ event: ie }) => [
18959
+ z(ee.$slots, "event", { event: ie })
18973
18960
  ]),
18974
18961
  _: 3
18975
18962
  }, 8, ["open", "date", "anchor-rect", "events"]),
@@ -18980,11 +18967,11 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
18980
18967
  "can-edit": t.editable && !!W.value && t.isEventEditable(W.value),
18981
18968
  onClose: ae,
18982
18969
  onEdit: re,
18983
- onDelete: ie
18970
+ onDelete: oe
18984
18971
  }, {
18985
- "event-popover": x(({ event: se, close: ye }) => [
18972
+ "event-popover": x(({ event: ie, close: ye }) => [
18986
18973
  z(ee.$slots, "event-popover", {
18987
- event: se,
18974
+ event: ie,
18988
18975
  close: ye
18989
18976
  })
18990
18977
  ]),
@@ -19018,8 +19005,8 @@ const m_ = { class: "vc-scheduler__month" }, p_ = {
19018
19005
  setup(e, { emit: a }) {
19019
19006
  const { t } = ze(), l = e, r = a, i = (m) => m.allDay !== void 0 ? m.allDay : m.end.getTime() - m.start.getTime() >= 864e5, o = y(() => {
19020
19007
  const m = Wl(l.focusedDate), h = mc(l.focusedDate), f = [];
19021
- for (let C = Ge(m); C <= h; C = tt(C, 1)) {
19022
- const E = C.getTime(), $ = tt(C, 1).getTime(), O = l.events.filter((N) => N.start.getTime() < $ && N.end.getTime() > E).sort((N, V) => Number(i(V)) - Number(i(N)) || N.start.getTime() - V.start.getTime());
19008
+ for (let C = Ge(m); C <= h; C = et(C, 1)) {
19009
+ const E = C.getTime(), $ = et(C, 1).getTime(), O = l.events.filter((N) => N.start.getTime() < $ && N.end.getTime() > E).sort((N, V) => Number(i(V)) - Number(i(N)) || N.start.getTime() - V.start.getTime());
19023
19010
  O.length && f.push({ key: Te(C, "yyyy-MM-dd"), date: new Date(C), isToday: Xn(C), events: O });
19024
19011
  }
19025
19012
  return f;
@@ -19121,7 +19108,7 @@ function D_(e) {
19121
19108
  function B_(e) {
19122
19109
  const a = y(() => Math.max(1, e.dayCount.value)), t = y(() => Math.max(1, e.endHour.value - e.startHour.value)), l = y(() => t.value * e.hourHeight.value), r = y(() => {
19123
19110
  const p = Ge(e.rangeStart.value);
19124
- return Array.from({ length: a.value }, (m, h) => tt(p, h));
19111
+ return Array.from({ length: a.value }, (m, h) => et(p, h));
19125
19112
  }), i = y(
19126
19113
  () => r.value.map((p, m) => ({
19127
19114
  date: p,
@@ -19272,7 +19259,7 @@ const P_ = { class: "vc-scheduler__tg" }, V_ = { class: "vc-scheduler__tg-head"
19272
19259
  };
19273
19260
  }
19274
19261
  const h = B(null);
19275
- et(() => {
19262
+ tt(() => {
19276
19263
  const T = h.value;
19277
19264
  if (!T) return;
19278
19265
  const k = v.timedByColumn.value.flat().reduce((_, I) => _ === null ? I.top : Math.min(_, I.top), null) ?? Math.max(0, (8 - o.value) * xt);
@@ -19280,7 +19267,7 @@ const P_ = { class: "vc-scheduler__tg" }, V_ = { class: "vc-scheduler__tg-head"
19280
19267
  });
19281
19268
  const f = B(Date.now());
19282
19269
  let C;
19283
- et(() => {
19270
+ tt(() => {
19284
19271
  C = setInterval(() => f.value = Date.now(), 6e4);
19285
19272
  }), Rt(() => {
19286
19273
  C && clearInterval(C);
@@ -19446,12 +19433,12 @@ const P_ = { class: "vc-scheduler__tg" }, V_ = { class: "vc-scheduler__tg-head"
19446
19433
  const t = e, l = a, r = B(t.draft.title), i = B(null), o = y(
19447
19434
  () => t.anchorRect ? { getBoundingClientRect: () => t.anchorRect } : null
19448
19435
  ), c = y(() => r.value.trim().length > 0);
19449
- oe(
19436
+ se(
19450
19437
  () => t.draft,
19451
19438
  (b) => {
19452
19439
  r.value = b.title;
19453
19440
  }
19454
- ), oe(
19441
+ ), se(
19455
19442
  () => t.open,
19456
19443
  (b) => {
19457
19444
  b && (r.value = t.draft.title, $e(() => {
@@ -19550,7 +19537,7 @@ const P_ = { class: "vc-scheduler__tg" }, V_ = { class: "vc-scheduler__tg-head"
19550
19537
  ], k = o.color;
19551
19538
  return k && !S.some((_) => _.value === k) && S.push({ value: k, label: t("VC_SCHEDULER.COLOR_CUSTOM") }), S;
19552
19539
  }), r = e, i = a, o = vt({ ...r.draft });
19553
- oe(
19540
+ se(
19554
19541
  () => r.draft,
19555
19542
  (S) => {
19556
19543
  const k = o;
@@ -19570,7 +19557,7 @@ const P_ = { class: "vc-scheduler__tg" }, V_ = { class: "vc-scheduler__tg-head"
19570
19557
  ]), b = y(() => {
19571
19558
  const S = At(/* @__PURE__ */ new Date(), { weekStartsOn: 0 });
19572
19559
  return Array.from({ length: 7 }, (k, _) => {
19573
- const I = tt(S, _);
19560
+ const I = et(S, _);
19574
19561
  return { value: _, label: Te(I, "EEEEE"), fullLabel: Te(I, "EEEE") };
19575
19562
  });
19576
19563
  }), p = y(() => {
@@ -19935,7 +19922,7 @@ function Ek(e) {
19935
19922
  const u = e.date.value;
19936
19923
  switch (e.view.value) {
19937
19924
  case "timeline-day":
19938
- return tt(u, d);
19925
+ return et(u, d);
19939
19926
  case "timeline-week":
19940
19927
  return gc(u, d);
19941
19928
  default:
@@ -19994,7 +19981,7 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
19994
19981
  }
19995
19982
  function p() {
19996
19983
  const H = Ge(te.value);
19997
- b({ start: H, end: tt(H, 1), allDay: !0, anchorRect: null, kind: "double" });
19984
+ b({ start: H, end: et(H, 1), allDay: !0, anchorRect: null, kind: "double" });
19998
19985
  }
19999
19986
  function m(H) {
20000
19987
  if (t.editorMode === "emit") {
@@ -20051,26 +20038,26 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
20051
20038
  function N(H) {
20052
20039
  const ae = u.event, re = u.action;
20053
20040
  if (u.open = !1, u.event = null, !ae?.recurrenceId || !ae.originalStart) return;
20054
- const ie = E(ae.recurrenceId);
20055
- if (!ie) return;
20041
+ const oe = E(ae.recurrenceId);
20042
+ if (!oe) return;
20056
20043
  if (re === "delete") {
20057
20044
  if (H === "all") {
20058
- l("event-delete", { id: ie.id });
20045
+ l("event-delete", { id: oe.id });
20059
20046
  return;
20060
20047
  }
20061
- O(ie, ae.originalStart);
20048
+ O(oe, ae.originalStart);
20062
20049
  return;
20063
20050
  }
20064
20051
  if (H === "all") {
20065
20052
  c.draft = {
20066
- id: ie.id,
20067
- title: ie.title,
20068
- start: ie.start,
20069
- end: ie.end,
20070
- allDay: !!ie.allDay,
20071
- color: ie.color,
20072
- recurrence: ie.recurrence ? YC(ie.recurrence, ie.start) : null
20073
- }, c.mode = "edit", c.recurrenceEdit = { scope: "all", recurrenceId: ie.id, originalStart: ae.originalStart }, c.allowRecurrence = !0, c.open = !0;
20053
+ id: oe.id,
20054
+ title: oe.title,
20055
+ start: oe.start,
20056
+ end: oe.end,
20057
+ allDay: !!oe.allDay,
20058
+ color: oe.color,
20059
+ recurrence: oe.recurrence ? YC(oe.recurrence, oe.start) : null
20060
+ }, c.mode = "edit", c.recurrenceEdit = { scope: "all", recurrenceId: oe.id, originalStart: ae.originalStart }, c.allowRecurrence = !0, c.open = !0;
20074
20061
  return;
20075
20062
  }
20076
20063
  const ee = $(ae.recurrenceId, ae.originalStart);
@@ -20094,8 +20081,8 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
20094
20081
  }
20095
20082
  function R({ title: H }) {
20096
20083
  if (d.draft) {
20097
- const { start: ae, end: re, allDay: ie, color: ee } = d.draft;
20098
- l("event-create", { start: ae, end: re, allDay: ie, title: H, color: ee });
20084
+ const { start: ae, end: re, allDay: oe, color: ee } = d.draft;
20085
+ l("event-create", { start: ae, end: re, allDay: oe, title: H, color: ee });
20099
20086
  }
20100
20087
  d.open = !1;
20101
20088
  }
@@ -20184,7 +20171,7 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
20184
20171
  if (q.value === "timeline-week")
20185
20172
  return { start: At(H, { weekStartsOn: ae }), end: Uo(H, { weekStartsOn: ae }) };
20186
20173
  const re = At(Wl(H), { weekStartsOn: ae });
20187
- return { start: re, end: tt(re, 42) };
20174
+ return { start: re, end: et(re, 42) };
20188
20175
  }), G = y(() => QC(t.events, j.value)), ne = y(() => t.loading && G.value.length === 0), J = y(() => q.value === "month" ? r.value ? "agenda" : "month" : "timeline"), W = Ek({
20189
20176
  date: te,
20190
20177
  view: q,
@@ -20238,10 +20225,10 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
20238
20225
  event: x(({ event: re }) => [
20239
20226
  z(H.$slots, "event", { event: re })
20240
20227
  ]),
20241
- "event-popover": x(({ event: re, close: ie }) => [
20228
+ "event-popover": x(({ event: re, close: oe }) => [
20242
20229
  z(H.$slots, "event-popover", {
20243
20230
  event: re,
20244
- close: ie
20231
+ close: oe
20245
20232
  })
20246
20233
  ]),
20247
20234
  empty: x(() => [
@@ -20265,10 +20252,10 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
20265
20252
  event: x(({ event: re }) => [
20266
20253
  z(H.$slots, "event", { event: re })
20267
20254
  ]),
20268
- "event-popover": x(({ event: re, close: ie }) => [
20255
+ "event-popover": x(({ event: re, close: oe }) => [
20269
20256
  z(H.$slots, "event-popover", {
20270
20257
  event: re,
20271
- close: ie
20258
+ close: oe
20272
20259
  })
20273
20260
  ]),
20274
20261
  _: 3
@@ -20291,10 +20278,10 @@ const Sk = Symbol("VcSchedulerCalendarContext"), $k = ["aria-busy"], s$ = /* @__
20291
20278
  event: x(({ event: re }) => [
20292
20279
  z(H.$slots, "event", { event: re })
20293
20280
  ]),
20294
- "event-popover": x(({ event: re, close: ie }) => [
20281
+ "event-popover": x(({ event: re, close: oe }) => [
20295
20282
  z(H.$slots, "event-popover", {
20296
20283
  event: re,
20297
- close: ie
20284
+ close: oe
20298
20285
  })
20299
20286
  ]),
20300
20287
  empty: x(() => [
@@ -20478,8 +20465,8 @@ export {
20478
20465
  di as bi,
20479
20466
  wu as bj,
20480
20467
  Yc as bk,
20481
- Jv as bl,
20482
- Xv as bm,
20468
+ Zv as bl,
20469
+ jv as bm,
20483
20470
  Nn as bn,
20484
20471
  _c as bo,
20485
20472
  gS as bp,
@@ -20487,12 +20474,12 @@ export {
20487
20474
  La as br,
20488
20475
  NS as bs,
20489
20476
  xS as bt,
20490
- Gv as bu,
20491
- Qv as bv,
20492
- Hv as bw,
20477
+ Wv as bu,
20478
+ Xv as bv,
20479
+ zv as bw,
20493
20480
  Ql as bx,
20494
20481
  zo as by,
20495
- ef as bz,
20482
+ Jv as bz,
20496
20483
  Bl as c,
20497
20484
  nl as d,
20498
20485
  Aw as e,