@vc-shell/framework 1.1.57 → 1.1.58

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.
package/dist/framework.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as eu from "vue-router";
2
2
  import { useRoute as Mo, RouterView as tu, useRouter as Lt } from "vue-router";
3
3
  import * as ou from "vue";
4
- import { defineComponent as H, computed as O, createElementBlock as S, openBlock as h, normalizeClass as q, createElementVNode as C, renderSlot as J, createCommentVNode as D, normalizeStyle as Ie, toDisplayString as x, unref as f, ref as T, watch as le, createBlock as j, mergeProps as fe, markRaw as Be, resolveDynamicComponent as Ne, createVNode as $, Transition as rt, withCtx as I, withDirectives as De, vShow as wt, shallowRef as He, inject as be, onMounted as Ue, Fragment as se, renderList as me, createSlots as Ee, createTextVNode as ee, onUnmounted as Dt, readonly as bn, getCurrentInstance as at, onErrorCaptured as nu, nextTick as Ye, provide as qe, onBeforeMount as Vs, onBeforeUnmount as It, reactive as Te, toValue as K, watchEffect as ei, useAttrs as su, resolveComponent as Z, Teleport as Kt, withModifiers as ce, toRef as Us, resolveDirective as Vo, vModelDynamic as ti, withKeys as $e, normalizeProps as Pt, guardReactiveProps as Ft, toRefs as Ze, vModelCheckbox as ru, isRef as yn, h as Q, createApp as iu, toRaw as lu, isVNode as js, warn as lo, shallowReactive as au, watchPostEffect as uu, useSlots as Yt, onUpdated as cu, toHandlers as un } from "vue";
4
+ import { defineComponent as H, computed as O, createElementBlock as S, openBlock as h, normalizeClass as q, createElementVNode as C, renderSlot as J, createCommentVNode as D, normalizeStyle as Ie, toDisplayString as x, unref as f, ref as T, watch as le, createBlock as j, mergeProps as fe, markRaw as Le, resolveDynamicComponent as Ne, createVNode as $, Transition as rt, withCtx as I, withDirectives as Be, vShow as wt, shallowRef as He, inject as be, onMounted as Ue, Fragment as se, renderList as me, createSlots as Ee, createTextVNode as ee, onUnmounted as Dt, readonly as bn, getCurrentInstance as at, onErrorCaptured as nu, nextTick as Ye, provide as qe, onBeforeMount as Vs, onBeforeUnmount as It, reactive as $e, toValue as K, watchEffect as ei, useAttrs as su, resolveComponent as Z, Teleport as Kt, withModifiers as ce, toRef as Us, resolveDirective as Vo, vModelDynamic as ti, withKeys as Te, normalizeProps as Pt, guardReactiveProps as Ft, toRefs as Ze, vModelCheckbox as ru, isRef as yn, h as Q, createApp as iu, toRaw as lu, isVNode as js, warn as lo, shallowReactive as au, watchPostEffect as uu, useSlots as Yt, onUpdated as cu, toHandlers as un } from "vue";
5
5
  import { l as du, I as wn } from "./vendor-iconify-vue-D4fihzvl.js";
6
6
  import { u as ho } from "./vendor-floating-ui-vue-CLOiVYP7.js";
7
7
  import { o as Uo, s as jo, f as xs, a as _n } from "./vendor-floating-ui-dom-CZkYGmv4.js";
@@ -431,12 +431,12 @@ const Md = /* @__PURE__ */ H({
431
431
  default:
432
432
  return e.icon;
433
433
  }
434
- }), r = O(() => s.value === "material"), i = O(() => s.value === "bootstrap"), l = O(() => s.value === "lucide"), a = O(() => s.value === "fontawesome"), u = O(() => typeof e.icon != "string" ? !0 : ["fontawesome", "bootstrap"].includes(s.value) || s.value === "material" && e.icon.startsWith("material-") || s.value === "lucide" && e.icon.startsWith("lucide-") ? !1 : !!l.value), d = O(() => typeof e.icon != "string" ? Be(e.icon) : ["fontawesome", "bootstrap", "material"].includes(s.value) ? "i" : l.value ? typeof o.value == "string" ? o.value : String(o.value) : "i"), p = O(() => r.value ? Md : i.value ? Vd : l.value ? Ud : a.value ? jd : w.value ? zd : u.value ? d.value : "i"), c = O(() => e.customSize ? e.customSize : t[e.size]), m = O(() => {
434
+ }), r = O(() => s.value === "material"), i = O(() => s.value === "bootstrap"), l = O(() => s.value === "lucide"), a = O(() => s.value === "fontawesome"), u = O(() => typeof e.icon != "string" ? !0 : ["fontawesome", "bootstrap"].includes(s.value) || s.value === "material" && e.icon.startsWith("material-") || s.value === "lucide" && e.icon.startsWith("lucide-") ? !1 : !!l.value), d = O(() => typeof e.icon != "string" ? Le(e.icon) : ["fontawesome", "bootstrap", "material"].includes(s.value) ? "i" : l.value ? typeof o.value == "string" ? o.value : String(o.value) : "i"), p = O(() => r.value ? Md : i.value ? Vd : l.value ? Ud : a.value ? jd : w.value ? zd : u.value ? d.value : "i"), c = O(() => e.customSize ? e.customSize : t[e.size]), m = O(() => {
435
435
  const b = {};
436
436
  return e.customSize ? ((a.value || i.value || r.value) && (b.fontSize = `${e.customSize}px`), (u.value || l.value || w.value) && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`)) : (a.value || i.value || r.value || l.value) && (b.fontSize = "inherit"), b;
437
437
  }), _ = O(() => e.customSize ? {
438
438
  fontSize: `${e.customSize}px`
439
- } : {}), v = O(() => {
439
+ } : {}), g = O(() => {
440
440
  switch (s.value) {
441
441
  case "lucide":
442
442
  case "material":
@@ -445,7 +445,7 @@ const Md = /* @__PURE__ */ H({
445
445
  return { icon: o.value, size: e.size, variant: e.variant, customSize: e.customSize };
446
446
  case "svg":
447
447
  return {
448
- icon: g.value,
448
+ icon: v.value,
449
449
  size: e.size,
450
450
  variant: e.variant,
451
451
  strokeWidth: 1.5,
@@ -461,7 +461,7 @@ const Md = /* @__PURE__ */ H({
461
461
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
462
462
  };
463
463
  }
464
- }), w = O(() => s.value === "svg"), g = O(() => !w.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
464
+ }), w = O(() => s.value === "svg"), v = O(() => !w.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
465
465
  return (b, E) => b.useContainer ? (h(), S("div", fe({
466
466
  key: 0,
467
467
  class: ["vc-icon-container", `vc-icon-container_${b.size}`],
@@ -475,7 +475,7 @@ const Md = /* @__PURE__ */ H({
475
475
  !u.value && !r.value && !l.value && !i.value && !a.value ? b.icon.toLowerCase() : ""
476
476
  ],
477
477
  style: m.value
478
- }, v.value), null, 16, ["class", "style"]))
478
+ }, g.value), null, 16, ["class", "style"]))
479
479
  ], 16)) : (h(), j(Ne(p.value), fe({
480
480
  key: 1,
481
481
  class: [
@@ -485,7 +485,7 @@ const Md = /* @__PURE__ */ H({
485
485
  !u.value && !r.value && !l.value && !i.value && !a.value ? b.icon.toLowerCase() : ""
486
486
  ],
487
487
  style: m.value
488
- }, { ...v.value, ...b.$attrs }), null, 16, ["class", "style"]));
488
+ }, { ...g.value, ...b.$attrs }), null, 16, ["class", "style"]));
489
489
  }
490
490
  }), Fd = ["width", "height"], di = /* @__PURE__ */ H({
491
491
  __name: "MenuBurgerIcon",
@@ -622,7 +622,7 @@ const Md = /* @__PURE__ */ H({
622
622
  ])) : D("", !0),
623
623
  $(rt, { name: "fade" }, {
624
624
  default: I(() => [
625
- De(C("div", fe({
625
+ Be(C("div", fe({
626
626
  class: [{ "tw-flex": i.fill }, "vc-card__body"]
627
627
  }, i.$attrs), [
628
628
  J(i.$slots, "default")
@@ -658,10 +658,10 @@ const Md = /* @__PURE__ */ H({
658
658
  setup(n, { expose: e, emit: t }) {
659
659
  const s = n, o = t, r = T(), i = T(!1), l = T(60), a = He(0);
660
660
  let u = 0;
661
- const d = He(!1), p = He(!1), c = He(!1), m = be("isMobile"), _ = O(() => Math.max(0, Math.min(l.value, a.value))), v = O(() => a.value >= l.value && !d.value), w = () => {
661
+ const d = He(!1), p = He(!1), c = He(!1), m = be("isMobile"), _ = O(() => Math.max(0, Math.min(l.value, a.value))), g = O(() => a.value >= l.value && !d.value), w = () => {
662
662
  r.value && r.value.scroll(0, 0);
663
663
  };
664
- function g(U) {
664
+ function v(U) {
665
665
  !m.value || d.value || !s.usePtr || r.value && r.value.scrollTop > 0 || (c.value = !0, u = "clientY" in U ? U.clientY : U.touches[0].clientY);
666
666
  }
667
667
  function b(U) {
@@ -670,7 +670,7 @@ const Md = /* @__PURE__ */ H({
670
670
  r.value && r.value.scrollTop === 0 && (a.value = A - u);
671
671
  }
672
672
  function E() {
673
- d.value || (c.value = !1, v.value ? (a.value = 0, d.value = !0, o("scroll:ptr"), d.value = !1) : a.value = 0);
673
+ d.value || (c.value = !1, g.value ? (a.value = 0, d.value = !0, o("scroll:ptr"), d.value = !1) : a.value = 0);
674
674
  }
675
675
  function L(U) {
676
676
  o("scroll", U);
@@ -693,7 +693,7 @@ const Md = /* @__PURE__ */ H({
693
693
  "vc-container_nopadding": U.noPadding
694
694
  }
695
695
  ]),
696
- onTouchstart: g,
696
+ onTouchstart: v,
697
697
  onTouchmove: b,
698
698
  onTouchend: E
699
699
  }, [
@@ -706,10 +706,10 @@ const Md = /* @__PURE__ */ H({
706
706
  }, [
707
707
  C("div", Yd, [
708
708
  $(f(ie), {
709
- icon: v.value || p.value ? "material-arrow_upward" : "material-arrow_downward",
709
+ icon: g.value || p.value ? "material-arrow_upward" : "material-arrow_downward",
710
710
  class: "vc-container__overscroll-icon"
711
711
  }, null, 8, ["icon"]),
712
- v.value || p.value ? (h(), S("span", Zd, x(U.$t("COMPONENTS.ATOMS.VC_CONTAINER.REFRESHING")), 1)) : (h(), S("span", Xd, x(U.$t("COMPONENTS.ATOMS.VC_CONTAINER.PULL_TO_REFRESH")), 1))
712
+ g.value || p.value ? (h(), S("span", Zd, x(U.$t("COMPONENTS.ATOMS.VC_CONTAINER.REFRESHING")), 1)) : (h(), S("span", Xd, x(U.$t("COMPONENTS.ATOMS.VC_CONTAINER.PULL_TO_REFRESH")), 1))
713
713
  ])
714
714
  ], 6),
715
715
  C("div", {
@@ -5940,11 +5940,11 @@ const Mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5940
5940
  }, $t = T();
5941
5941
  function sr() {
5942
5942
  const n = T(!1), { storage: e, signOut: t } = nr(), s = new _i(), o = O(() => $t.value?.userName != null);
5943
- async function r(_, v) {
5943
+ async function r(_, g) {
5944
5944
  let w = !1;
5945
5945
  try {
5946
5946
  n.value = !0, w = await s.validatePasswordResetToken(_, {
5947
- token: v
5947
+ token: g
5948
5948
  });
5949
5949
  } catch {
5950
5950
  } finally {
@@ -5955,23 +5955,23 @@ function sr() {
5955
5955
  async function i(_) {
5956
5956
  return s.validatePassword(_);
5957
5957
  }
5958
- async function l(_, v, w) {
5958
+ async function l(_, g, w) {
5959
5959
  return s.resetPasswordByToken(_, {
5960
- newPassword: v,
5960
+ newPassword: g,
5961
5961
  token: w
5962
5962
  });
5963
5963
  }
5964
- async function a(_, v) {
5964
+ async function a(_, g) {
5965
5965
  console.debug("[@vc-shell/framework#_createInternalUserLogic:signIn] - Entry point");
5966
5966
  try {
5967
5967
  n.value = !0;
5968
- const w = await s.login(new Jn({ userName: _, password: v }));
5969
- return await s.getCurrentUser().then((g) => {
5970
- if (g)
5971
- return $t.value = g, w;
5968
+ const w = await s.login(new Jn({ userName: _, password: g }));
5969
+ return await s.getCurrentUser().then((v) => {
5970
+ if (v)
5971
+ return $t.value = v, w;
5972
5972
  throw { succeeded: !1 };
5973
- }).catch((g) => {
5974
- throw g;
5973
+ }).catch((v) => {
5974
+ throw v;
5975
5975
  });
5976
5976
  } catch (w) {
5977
5977
  return console.log(w), { succeeded: !1, error: w.message, status: w.status };
@@ -5996,23 +5996,23 @@ function sr() {
5996
5996
  async function p(_) {
5997
5997
  try {
5998
5998
  return n.value = !0, await s.requestPasswordReset(_), { succeeded: !0 };
5999
- } catch (v) {
6000
- return { succeeded: !1, error: v };
5999
+ } catch (g) {
6000
+ return { succeeded: !1, error: g };
6001
6001
  } finally {
6002
6002
  n.value = !1;
6003
6003
  }
6004
6004
  }
6005
- async function c(_, v) {
6005
+ async function c(_, g) {
6006
6006
  let w;
6007
6007
  try {
6008
6008
  n.value = !0;
6009
- const g = new Tn({
6009
+ const v = new Tn({
6010
6010
  oldPassword: _,
6011
- newPassword: v
6011
+ newPassword: g
6012
6012
  });
6013
- w = await s.changeCurrentUserPassword(g);
6014
- } catch (g) {
6015
- return { succeeded: !1, errors: [g.message] };
6013
+ w = await s.changeCurrentUserPassword(v);
6014
+ } catch (v) {
6015
+ return { succeeded: !1, errors: [v.message] };
6016
6016
  } finally {
6017
6017
  n.value = !1;
6018
6018
  }
@@ -6022,8 +6022,8 @@ function sr() {
6022
6022
  let _ = null;
6023
6023
  try {
6024
6024
  _ = await s.getLoginTypes();
6025
- } catch (v) {
6026
- throw console.error(v), v;
6025
+ } catch (g) {
6026
+ throw console.error(g), g;
6027
6027
  }
6028
6028
  return _;
6029
6029
  }
@@ -6325,7 +6325,7 @@ function zp() {
6325
6325
  loading: O(() => n.value)
6326
6326
  };
6327
6327
  }
6328
- const Le = Fu({
6328
+ const De = Fu({
6329
6329
  legacy: !1,
6330
6330
  globalInjection: !0,
6331
6331
  locale: "en",
@@ -6337,7 +6337,7 @@ function zi(n) {
6337
6337
  }
6338
6338
  const Rr = 1 / 0, Fp = 1 / 0, on = T([]), Nr = T([]);
6339
6339
  function Fi() {
6340
- const { t: n } = Le.global;
6340
+ const { t: n } = De.global;
6341
6341
  function e(c) {
6342
6342
  Nr.value.push(c), p();
6343
6343
  }
@@ -6347,16 +6347,16 @@ function Fi() {
6347
6347
  }
6348
6348
  const s = zs(
6349
6349
  (c, m) => {
6350
- const _ = c.findIndex((v) => xe(Eo(v, "title"), Eo(m, "title")));
6350
+ const _ = c.findIndex((g) => xe(Eo(g, "title"), Eo(m, "title")));
6351
6351
  _ > -1 ? c[_] = { ...m } : c.push({ ...m });
6352
6352
  }
6353
6353
  );
6354
6354
  function o(c, m) {
6355
- const _ = (v) => v.priority ?? Rr;
6355
+ const _ = (g) => g.priority ?? Rr;
6356
6356
  return _(c) - _(m);
6357
6357
  }
6358
6358
  function r(c, m) {
6359
- const _ = (v) => v.inGroupPriority ?? v.priority ?? Fp;
6359
+ const _ = (g) => g.inGroupPriority ?? g.priority ?? Fp;
6360
6360
  return _(c) - _(m);
6361
6361
  }
6362
6362
  function i(c) {
@@ -6368,8 +6368,8 @@ function Fi() {
6368
6368
  }
6369
6369
  function a(c, m) {
6370
6370
  if (!c.group && !c.groupConfig) return;
6371
- let _, v, w, g, b;
6372
- c.groupConfig ? (_ = c.groupConfig.id, v = c.groupConfig.title || _, w = c.groupConfig.icon, g = c.groupConfig.priority, b = c.groupConfig.permissions) : (_ = "group_" + i(c.group), v = c.group, w = c.groupIcon, g = c.priority);
6371
+ let _, g, w, v, b;
6372
+ c.groupConfig ? (_ = c.groupConfig.id, g = c.groupConfig.title || _, w = c.groupConfig.icon, v = c.groupConfig.priority, b = c.groupConfig.permissions) : (_ = "group_" + i(c.group), g = c.group, w = c.groupIcon, v = c.priority);
6373
6373
  const E = yu(m, (U) => U.groupId === _), L = {
6374
6374
  ...Eo(c, ["group", "groupIcon", "groupPriority", "groupConfig"]),
6375
6375
  title: l(c.title)
@@ -6380,9 +6380,9 @@ function Fi() {
6380
6380
  const U = {
6381
6381
  groupId: _,
6382
6382
  groupIcon: w ?? "",
6383
- title: l(v),
6383
+ title: l(g),
6384
6384
  children: [L],
6385
- priority: g ?? c.priority ?? Rr,
6385
+ priority: v ?? c.priority ?? Rr,
6386
6386
  permissions: b
6387
6387
  };
6388
6388
  s(m.value, U);
@@ -6527,14 +6527,14 @@ const Qi = (n) => {
6527
6527
  FALLBACK_BLADE_ID: Ot,
6528
6528
  languageToCountryMap: ks
6529
6529
  }, Symbol.toStringTag, { value: "Module" })), rs = Sn(() => {
6530
- const n = Le.global.locale.value, e = vo("VC_LANGUAGE_SETTINGS", ""), t = O(() => {
6530
+ const n = De.global.locale.value, e = vo("VC_LANGUAGE_SETTINGS", ""), t = O(() => {
6531
6531
  let a = n;
6532
- return Le.global.availableLocales.includes(e.value) && (a = e.value), a;
6532
+ return De.global.availableLocales.includes(e.value) && (a = e.value), a;
6533
6533
  });
6534
6534
  function s(a) {
6535
- Le.global.locale.value = a, ui.configure({
6535
+ De.global.locale.value = a, ui.configure({
6536
6536
  generateMessage: Ad(a, {
6537
- messages: Le.global.getLocaleMessage(a).messages
6537
+ messages: De.global.getLocaleMessage(a).messages
6538
6538
  })
6539
6539
  }), kd(a), e.value = a;
6540
6540
  }
@@ -6545,7 +6545,7 @@ const Qi = (n) => {
6545
6545
  }
6546
6546
  function r(a) {
6547
6547
  const u = a.replace(/([a-z]+)([A-Z]+)/g, "$1-$2").toLowerCase();
6548
- return Le.global.getLocaleMessage(u) ? u : "en";
6548
+ return De.global.getLocaleMessage(u) ? u : "en";
6549
6549
  }
6550
6550
  function i(a) {
6551
6551
  return ks[a.toLocaleLowerCase()] || ks[a.slice(0, 2)] || "xx";
@@ -6565,7 +6565,7 @@ const Qi = (n) => {
6565
6565
  };
6566
6566
  });
6567
6567
  function el() {
6568
- const n = Te({
6568
+ const n = $e({
6569
6569
  current: void 0,
6570
6570
  records: []
6571
6571
  });
@@ -6628,7 +6628,7 @@ function is() {
6628
6628
  };
6629
6629
  }
6630
6630
  const xt = T([{ key: "light", localizationKey: "CORE.THEMES.LIGHT" }]), ar = () => {
6631
- const { t: n } = Le.global;
6631
+ const { t: n } = De.global;
6632
6632
  function e(u) {
6633
6633
  (Array.isArray(u) ? u : [u]).forEach((d) => {
6634
6634
  xt.value.some((p) => p.key === d.key) || xt.value.push(d);
@@ -6695,82 +6695,85 @@ function Yp(n) {
6695
6695
  return Ve(n);
6696
6696
  }
6697
6697
  function ol() {
6698
- const n = Te({}), e = Te([]), t = T(), s = Te(/* @__PURE__ */ new Set()), o = (v, w) => {
6699
- const g = w.toLowerCase();
6700
- n[g] || (n[g] = []), n[g].findIndex((E) => E.id === v.id) === -1 && (n[g].push(Te(v)), e.push({ bladeId: g, widget: Te(v) }), s.add(v.id));
6701
- }, r = (v, w) => {
6702
- if (!v.config)
6703
- return v.props || {};
6704
- let g = {};
6705
- if (v.config.propsResolver)
6698
+ const n = $e({}), e = $e([]), t = T(), s = $e(/* @__PURE__ */ new Set()), o = (g, w) => {
6699
+ const v = w.toLowerCase();
6700
+ if (n[v] || (n[v] = []), n[v].findIndex((E) => E.id === g.id) === -1) {
6701
+ const E = Le(g);
6702
+ n[v].push(E), e.push({ bladeId: v, widget: E }), s.add(g.id);
6703
+ }
6704
+ }, r = (g, w) => {
6705
+ if (!g.config)
6706
+ return g.props || {};
6707
+ let v = {};
6708
+ if (g.config.propsResolver)
6706
6709
  try {
6707
- const b = v.config.propsResolver(w);
6708
- g = { ...v.props, ...b };
6710
+ const b = g.config.propsResolver(w);
6711
+ v = { ...g.props, ...b };
6709
6712
  } catch (b) {
6710
- console.error(`Error in propsResolver for widget '${v.id}':`, b), g = { ...v.props };
6713
+ console.error(`Error in propsResolver for widget '${g.id}':`, b), v = { ...g.props };
6711
6714
  }
6712
6715
  else {
6713
- g = { ...v.props };
6714
- const { requiredData: b = [], optionalData: E = [], fieldMapping: L = {} } = v.config;
6716
+ v = { ...g.props };
6717
+ const { requiredData: b = [], optionalData: E = [], fieldMapping: L = {} } = g.config;
6715
6718
  b.forEach((U) => {
6716
6719
  const A = L[U] || U;
6717
- w[A] !== void 0 ? g[U] = w[A] : console.warn(`Required data '${U}' not found in blade data for widget '${v.id}'`);
6720
+ w[A] !== void 0 ? v[U] = w[A] : console.warn(`Required data '${U}' not found in blade data for widget '${g.id}'`);
6718
6721
  }), E.forEach((U) => {
6719
6722
  const A = L[U] || U;
6720
- w[A] !== void 0 && (g[U] = w[A]);
6723
+ w[A] !== void 0 && (v[U] = w[A]);
6721
6724
  });
6722
6725
  }
6723
- return g;
6724
- }, i = ({ id: v, bladeId: w, widget: g }) => {
6726
+ return v;
6727
+ }, i = ({ id: g, bladeId: w, widget: v }) => {
6725
6728
  const b = w.toLowerCase();
6726
6729
  if (n[b]) {
6727
- const E = n[b].findIndex((L) => L.id === v);
6730
+ const E = n[b].findIndex((L) => L.id === g);
6728
6731
  if (E !== -1) {
6729
6732
  const L = n[b][E];
6730
- Object.assign(L, g);
6733
+ Object.assign(L, v);
6731
6734
  }
6732
6735
  }
6733
- }, l = (v, w) => {
6734
- const g = w.toLowerCase();
6735
- if (n[g]) {
6736
- const E = n[g].findIndex((L) => L.id === v);
6737
- E !== -1 && (n[g].splice(E, 1), s.delete(v));
6736
+ }, l = (g, w) => {
6737
+ const v = w.toLowerCase();
6738
+ if (n[v]) {
6739
+ const E = n[v].findIndex((L) => L.id === g);
6740
+ E !== -1 && (n[v].splice(E, 1), s.delete(g));
6738
6741
  }
6739
- const b = e.findIndex((E) => E.bladeId === g && E.widget.id === v);
6742
+ const b = e.findIndex((E) => E.bladeId === v && E.widget.id === g);
6740
6743
  b !== -1 && e.splice(b, 1);
6741
- }, a = (v) => {
6742
- const w = v ? v.toLowerCase() : "";
6744
+ }, a = (g) => {
6745
+ const w = g ? g.toLowerCase() : "";
6743
6746
  return n[w] || [];
6744
- }, u = (v) => {
6745
- const w = v.toLowerCase();
6747
+ }, u = (g) => {
6748
+ const w = g.toLowerCase();
6746
6749
  n[w] && (n[w].forEach((b) => {
6747
6750
  s.delete(b.id);
6748
6751
  }), delete n[w]), e.map((b, E) => b.bladeId === w ? E : -1).filter((b) => b !== -1).reverse().forEach((b) => {
6749
6752
  e.splice(b, 1);
6750
6753
  });
6751
6754
  }, d = ({
6752
- exposed: v,
6755
+ exposed: g,
6753
6756
  widgetId: w
6754
6757
  }) => {
6755
6758
  t.value = void 0, t.value = {
6756
- exposed: v,
6759
+ exposed: g,
6757
6760
  widgetId: w
6758
6761
  };
6759
6762
  }, p = () => {
6760
- const v = t.value?.exposed;
6761
- if (!v)
6763
+ const g = t.value?.exposed;
6764
+ if (!g)
6762
6765
  return;
6763
6766
  const w = t.value?.widgetId;
6764
6767
  if (w) {
6765
6768
  const b = e.find((E) => E.widget.id === w)?.widget?.updateFunctionName;
6766
- b && typeof v[b] == "function" ? v[b]() : console.warn(`Widget '${w}' does not have an exposed function named '${b}'.`);
6769
+ b && typeof g[b] == "function" ? g[b]() : console.warn(`Widget '${w}' does not have an exposed function named '${b}'.`);
6767
6770
  }
6768
- }, c = (v) => s.has(v), m = (v) => t.value?.widgetId === v, _ = (v) => qp(v.toLowerCase());
6769
- return tl.forEach((v) => {
6771
+ }, c = (g) => s.has(g), m = (g) => t.value?.widgetId === g, _ = (g) => qp(g.toLowerCase());
6772
+ return tl.forEach((g) => {
6770
6773
  try {
6771
- o(v.widget, v.bladeId);
6774
+ o(g.widget, g.bladeId);
6772
6775
  } catch (w) {
6773
- console.warn(`Failed to register preregistered widget ${v.widget.id}:`, w);
6776
+ console.warn(`Failed to register preregistered widget ${g.widget.id}:`, w);
6774
6777
  }
6775
6778
  }), {
6776
6779
  registerWidget: o,
@@ -6804,8 +6807,8 @@ function Zp(n) {
6804
6807
  Os.find((t) => t.id === n.id) || Os.push(n);
6805
6808
  }
6806
6809
  const Qp = () => ({
6807
- widgets: Te(/* @__PURE__ */ new Map()),
6808
- layout: Te(/* @__PURE__ */ new Map())
6810
+ widgets: $e(/* @__PURE__ */ new Map()),
6811
+ layout: $e(/* @__PURE__ */ new Map())
6809
6812
  });
6810
6813
  function ef() {
6811
6814
  const n = Qp(), { hasAccess: e } = Tt(), t = (i) => {
@@ -6946,9 +6949,9 @@ function al() {
6946
6949
  }
6947
6950
  const nf = [];
6948
6951
  function ul() {
6949
- const n = Te({}), e = Te([]), t = Te(/* @__PURE__ */ new Set()), s = (u, d) => {
6952
+ const n = $e({}), e = $e([]), t = $e(/* @__PURE__ */ new Set()), s = (u, d) => {
6950
6953
  const p = d.toLowerCase();
6951
- n[p] || (n[p] = []), n[p].findIndex((m) => m.id === u.id) === -1 && (n[p].push(Te(u)), e.push({ bladeId: p, toolbarItem: Te(u) }), t.add(u.id));
6954
+ n[p] || (n[p] = []), n[p].findIndex((m) => m.id === u.id) === -1 && (n[p].push($e(u)), e.push({ bladeId: p, toolbarItem: $e(u) }), t.add(u.id));
6952
6955
  }, o = ({
6953
6956
  id: u,
6954
6957
  bladeId: d,
@@ -7117,12 +7120,12 @@ const rf = (n, e, t, s) => {
7117
7120
  }
7118
7121
  function m(V, B, F) {
7119
7122
  const W = F.map((Y) => new t(Y));
7120
- wo(V) ? _(V, B, W) : g(V, B, W);
7123
+ wo(V) ? _(V, B, W) : v(V, B, W);
7121
7124
  }
7122
7125
  function _(V, B, F) {
7123
- Array.isArray(B) ? v(V, B, F) : w(V, B, F);
7126
+ Array.isArray(B) ? g(V, B, F) : w(V, B, F);
7124
7127
  }
7125
- function v(V, B, F) {
7128
+ function g(V, B, F) {
7126
7129
  V.values = B.flatMap((W) => {
7127
7130
  const Y = F.find((oe) => oe.id === W.valueId || oe.id === W.id);
7128
7131
  return Y?.localizedValues?.length ? Y.localizedValues.map(
@@ -7148,7 +7151,7 @@ const rf = (n, e, t, s) => {
7148
7151
  })
7149
7152
  ) : V.values = [];
7150
7153
  }
7151
- function g(V, B, F) {
7154
+ function v(V, B, F) {
7152
7155
  Array.isArray(B) ? b(
7153
7156
  V,
7154
7157
  B,
@@ -7575,7 +7578,7 @@ const rf = (n, e, t, s) => {
7575
7578
  to: "body",
7576
7579
  disabled: !a.floating
7577
7580
  }, [
7578
- a.opened ? De((h(), S("div", {
7581
+ a.opened ? Be((h(), S("div", {
7579
7582
  key: 0,
7580
7583
  ref_key: "floatingEl",
7581
7584
  ref: o,
@@ -7631,20 +7634,20 @@ function dr(n) {
7631
7634
  initialItemWidth: i = 50
7632
7635
  } = n, { width: l } = mu(e), a = T(/* @__PURE__ */ new Map()), u = T([]), d = T([]), p = O(() => d.value.length > 0);
7633
7636
  let c = null;
7634
- const m = (g) => {
7635
- const b = s(g);
7637
+ const m = (v) => {
7638
+ const b = s(v);
7636
7639
  return a.value.get(b) || i;
7637
7640
  }, _ = () => {
7638
7641
  if (!e.value || !t.value.length) return;
7639
- const g = l.value - (p.value ? o : 0);
7642
+ const v = l.value - (p.value ? o : 0);
7640
7643
  let b = 0;
7641
7644
  const E = [], L = [], U = r === "reverse" ? [...t.value].reverse() : t.value;
7642
7645
  for (const A of U) {
7643
7646
  const P = m(A);
7644
- b + P <= g ? (E.push(A), b += P) : L.push(A);
7647
+ b + P <= v ? (E.push(A), b += P) : L.push(A);
7645
7648
  }
7646
7649
  r === "reverse" ? (u.value = E.reverse(), d.value = L.reverse()) : (u.value = E, d.value = L);
7647
- }, v = () => {
7650
+ }, g = () => {
7648
7651
  if (!e.value) return;
7649
7652
  e.value.querySelectorAll("[data-item-key]").forEach((b) => {
7650
7653
  const E = b.getAttribute("data-item-key");
@@ -7654,9 +7657,9 @@ function dr(n) {
7654
7657
  }
7655
7658
  }), _();
7656
7659
  }, w = () => {
7657
- c && c.disconnect(), c = new ResizeObserver((g) => {
7660
+ c && c.disconnect(), c = new ResizeObserver((v) => {
7658
7661
  let b = !1;
7659
- g.forEach((E) => {
7662
+ v.forEach((E) => {
7660
7663
  const L = E.target, U = L.getAttribute("data-item-key");
7661
7664
  if (U) {
7662
7665
  const A = getComputedStyle(L), P = L.offsetWidth + parseFloat(A.marginLeft || "0") + parseFloat(A.marginRight || "0");
@@ -7667,7 +7670,7 @@ function dr(n) {
7667
7670
  if (!e.value) return;
7668
7671
  e.value.querySelectorAll("[data-item-key]").forEach((b) => {
7669
7672
  c?.observe(b);
7670
- }), v();
7673
+ }), g();
7671
7674
  });
7672
7675
  };
7673
7676
  return le(l, () => {
@@ -7682,7 +7685,7 @@ function dr(n) {
7682
7685
  { deep: !0 }
7683
7686
  ), Ue(() => {
7684
7687
  Ye(() => {
7685
- v(), w();
7688
+ g(), w();
7686
7689
  });
7687
7690
  }), It(() => {
7688
7691
  c && (c.disconnect(), c = null);
@@ -7692,7 +7695,7 @@ function dr(n) {
7692
7695
  showMoreButton: p,
7693
7696
  recalculate: () => {
7694
7697
  Ye(() => {
7695
- v(), _();
7698
+ g(), _();
7696
7699
  });
7697
7700
  },
7698
7701
  // Export function for updating observer
@@ -8142,15 +8145,15 @@ const Af = ["data-item-key"], kf = {
8142
8145
  FORBID_TAGS: ["script", "object", "embed", "form", "input"],
8143
8146
  FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur"]
8144
8147
  });
8145
- }), v = T("editor"), w = O(() => v.value);
8146
- function g() {
8147
- v.value = v.value === "preview" ? "editor" : "preview";
8148
+ }), g = T("editor"), w = O(() => g.value);
8149
+ function v() {
8150
+ g.value = g.value === "preview" ? "editor" : "preview";
8148
8151
  }
8149
8152
  function b() {
8150
- v.value = v.value === "source" ? "editor" : "source";
8153
+ g.value = g.value === "source" ? "editor" : "source";
8151
8154
  }
8152
8155
  function E() {
8153
- v.value = v.value === "split" ? "editor" : "split";
8156
+ g.value = g.value === "split" ? "editor" : "split";
8154
8157
  }
8155
8158
  const L = Hu({
8156
8159
  content: t.modelValue,
@@ -8252,7 +8255,7 @@ const Af = ["data-item-key"], kf = {
8252
8255
  icon: "lucide-eye",
8253
8256
  active: w.value === "preview",
8254
8257
  disabled: M.disabled,
8255
- onAction: g
8258
+ onAction: v
8256
8259
  }, null, 8, ["active", "disabled"]),
8257
8260
  $(Me, {
8258
8261
  icon: "lucide-columns-2",
@@ -8358,32 +8361,32 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8358
8361
  const t = n, s = e, { t: o } = ke({ useScope: "global" }), r = at(), i = f(t.rules) || "", l = T(!1), { errorMessage: a, handleChange: u, validate: d } = rc(
8359
8362
  `${t.name === "Gallery" ? r?.uid : t.name}`,
8360
8363
  i
8361
- ), p = T(null), c = async (g) => {
8362
- if (await u(g.target), (await d()).valid) {
8363
- const L = g.target.files;
8364
+ ), p = T(null), c = async (v) => {
8365
+ if (await u(v.target), (await d()).valid) {
8366
+ const L = v.target.files;
8364
8367
  L && L.length && s("upload", L);
8365
8368
  }
8366
8369
  };
8367
8370
  function m() {
8368
8371
  p.value && (p.value.value = "", p.value.click());
8369
8372
  }
8370
- function _(g) {
8373
+ function _(v) {
8371
8374
  w();
8372
- const b = g.dataTransfer?.files;
8375
+ const b = v.dataTransfer?.files;
8373
8376
  b && b.length && s("upload", b);
8374
8377
  }
8375
- function v() {
8378
+ function g() {
8376
8379
  l.value = !0;
8377
8380
  }
8378
8381
  function w() {
8379
8382
  l.value = !1;
8380
8383
  }
8381
- return (g, b) => {
8384
+ return (v, b) => {
8382
8385
  const E = Vo("loading");
8383
8386
  return h(), S("div", Ff, [
8384
- De((h(), S("div", {
8387
+ Be((h(), S("div", {
8385
8388
  class: q(["vc-file-upload__drop-zone", [
8386
- `vc-file-upload__drop-zone--${g.variant}`,
8389
+ `vc-file-upload__drop-zone--${v.variant}`,
8387
8390
  {
8388
8391
  "vc-file-upload__drop-zone--dragging": l.value
8389
8392
  }
@@ -8395,18 +8398,18 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8395
8398
  }, ["stop", "prevent"])),
8396
8399
  onDragend: b[2] || (b[2] = ce(() => {
8397
8400
  }, ["stop", "prevent"])),
8398
- onDragover: ce(v, ["stop", "prevent"]),
8401
+ onDragover: ce(g, ["stop", "prevent"]),
8399
8402
  onDragenter: b[3] || (b[3] = ce(() => {
8400
8403
  }, ["stop", "prevent"])),
8401
8404
  onDragleave: ce(w, ["stop", "prevent"])
8402
8405
  }, [
8403
8406
  $(f(ie), {
8404
8407
  class: "vc-file-upload__icon",
8405
- icon: g.icon,
8408
+ icon: v.icon,
8406
8409
  size: "xxl"
8407
8410
  }, null, 8, ["icon"]),
8408
8411
  C("div", Gf, [
8409
- C("span", null, x(g.customText?.dragHere || f(o)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.DRAG_HERE")), 1),
8412
+ C("span", null, x(v.customText?.dragHere || f(o)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.DRAG_HERE")), 1),
8410
8413
  b[4] || (b[4] = ee("   ")),
8411
8414
  b[5] || (b[5] = C("br", null, null, -1)),
8412
8415
  $(f(An), {
@@ -8414,7 +8417,7 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8414
8417
  onClick: m
8415
8418
  }, {
8416
8419
  default: I(() => [
8417
- ee(x(g.customText?.browse || f(o)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.BROWSE")), 1)
8420
+ ee(x(v.customText?.browse || f(o)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.BROWSE")), 1)
8418
8421
  ]),
8419
8422
  _: 1
8420
8423
  })
@@ -8424,15 +8427,15 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8424
8427
  ref: p,
8425
8428
  type: "file",
8426
8429
  hidden: "",
8427
- accept: g.accept,
8428
- multiple: g.multiple,
8429
- name: g.name,
8430
+ accept: v.accept,
8431
+ multiple: v.multiple,
8432
+ name: v.name,
8430
8433
  onChange: c
8431
8434
  }, null, 40, Wf)
8432
8435
  ], 34)), [
8433
- [E, g.loading]
8436
+ [E, v.loading]
8434
8437
  ]),
8435
- f(a) ? J(g.$slots, "error", { key: 0 }, () => [
8438
+ f(a) ? J(v.$slots, "error", { key: 0 }, () => [
8436
8439
  $(f(it), { class: "vc-file-upload__error" }, {
8437
8440
  default: I(() => [
8438
8441
  ee(x(f(a)), 1)
@@ -8509,18 +8512,18 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8509
8512
  set(y) {
8510
8513
  (t.type === "number" || t.type === "integer") && y < 0 ? i.value = Math.abs(y) : i.value = y, E(i.value);
8511
8514
  }
8512
- }), v = T();
8515
+ }), g = T();
8513
8516
  le(
8514
8517
  m,
8515
8518
  (y) => {
8516
- t.type === "number" && y !== null ? v.value = parseFloat(y) : t.type === "integer" && y !== null ? v.value = Math.trunc(y) : v.value = y, i.value !== v.value && (i.value = v.value);
8519
+ t.type === "number" && y !== null ? g.value = parseFloat(y) : t.type === "integer" && y !== null ? g.value = Math.trunc(y) : g.value = y, i.value !== g.value && (i.value = g.value);
8517
8520
  },
8518
8521
  { immediate: !0 }
8519
8522
  );
8520
8523
  const w = (() => {
8521
8524
  const y = new Intl.DateTimeFormat(a, { hour: "numeric" }).format();
8522
8525
  return Number.isInteger(Number(y));
8523
- })(), g = (y) => {
8526
+ })(), v = (y) => {
8524
8527
  const k = {
8525
8528
  year: "numeric",
8526
8529
  month: "numeric",
@@ -8542,7 +8545,7 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8542
8545
  }
8543
8546
  function L(y) {
8544
8547
  r = () => {
8545
- if (v.value !== y) {
8548
+ if (g.value !== y) {
8546
8549
  let k;
8547
8550
  t.type === "number" && y !== null && y !== void 0 ? k = y !== "" ? parseFloat(y) : null : t.type === "integer" && y !== null && y !== void 0 ? k = y !== "" ? Math.trunc(parseInt(y)) : null : k = y, s("update:modelValue", k);
8548
8551
  }
@@ -8628,7 +8631,7 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8628
8631
  "max-date": c.value,
8629
8632
  "time-picker-inline": "",
8630
8633
  "enable-time-picker": y.type === "datetime-local",
8631
- format: g,
8634
+ format: v,
8632
8635
  locale: f(a),
8633
8636
  "start-time": { hours: 0, minutes: 0 },
8634
8637
  clearable: !1,
@@ -8645,7 +8648,7 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8645
8648
  onClosed: A,
8646
8649
  onTooltipOpen: M,
8647
8650
  onTooltipClose: A
8648
- }), null, 16, ["modelValue", "placeholder", "disabled", "name", "maxlength", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "teleport"])) : De((h(), S("input", {
8651
+ }), null, 16, ["modelValue", "placeholder", "disabled", "name", "maxlength", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "teleport"])) : Be((h(), S("input", {
8649
8652
  key: 1,
8650
8653
  ref_key: "inputRef",
8651
8654
  ref: l,
@@ -8667,14 +8670,14 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8667
8670
  ])
8668
8671
  ]),
8669
8672
  y.suffix ? (h(), S("div", Qf, x(y.suffix), 1)) : D("", !0),
8670
- y.clearable && v.value && !y.disabled && y.type !== "password" ? (h(), S("div", {
8673
+ y.clearable && g.value && !y.disabled && y.type !== "password" ? (h(), S("div", {
8671
8674
  key: 2,
8672
8675
  class: "vc-input__clear",
8673
8676
  tabindex: "0",
8674
8677
  onClick: U,
8675
8678
  onKeydown: [
8676
- $e(U, ["enter"]),
8677
- $e(U, ["space"])
8679
+ Te(U, ["enter"]),
8680
+ Te(U, ["space"])
8678
8681
  ]
8679
8682
  }, [
8680
8683
  $(f(ie), {
@@ -8688,8 +8691,8 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8688
8691
  tabindex: "0",
8689
8692
  onClick: k[2] || (k[2] = (N) => u.value = "text"),
8690
8693
  onKeydown: [
8691
- k[3] || (k[3] = $e((N) => u.value = "text", ["enter"])),
8692
- k[4] || (k[4] = $e((N) => u.value = "text", ["space"]))
8694
+ k[3] || (k[3] = Te((N) => u.value = "text", ["enter"])),
8695
+ k[4] || (k[4] = Te((N) => u.value = "text", ["space"]))
8693
8696
  ]
8694
8697
  }, [
8695
8698
  $(f(ie), {
@@ -8703,8 +8706,8 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8703
8706
  tabindex: "0",
8704
8707
  onClick: k[5] || (k[5] = (N) => u.value = "password"),
8705
8708
  onKeydown: [
8706
- k[6] || (k[6] = $e((N) => u.value = "password", ["enter"])),
8707
- k[7] || (k[7] = $e((N) => u.value = "password", ["space"]))
8709
+ k[6] || (k[6] = Te((N) => u.value = "password", ["enter"])),
8710
+ k[7] || (k[7] = Te((N) => u.value = "password", ["space"]))
8708
8711
  ]
8709
8712
  }, [
8710
8713
  $(f(ie), {
@@ -8845,8 +8848,8 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
8845
8848
  tabindex: "0",
8846
8849
  onClick: ce(o, ["stop", "prevent"]),
8847
8850
  onKeydown: [
8848
- $e(ce(o, ["stop", "prevent"]), ["enter"]),
8849
- $e(ce(o, ["stop", "prevent"]), ["space"])
8851
+ Te(ce(o, ["stop", "prevent"]), ["enter"]),
8852
+ Te(ce(o, ["stop", "prevent"]), ["space"])
8850
8853
  ]
8851
8854
  }, x(f(e.option)), 41, im)) : D("", !0)
8852
8855
  ]),
@@ -9061,19 +9064,19 @@ const zf = /* @__PURE__ */ mi(jf, [["render", xf]]), pr = zf, Ff = { class: "vc-
9061
9064
  s.timeout && i.value?.start();
9062
9065
  });
9063
9066
  function a(p, c) {
9064
- let m, _, v = c;
9067
+ let m, _, g = c;
9065
9068
  function w() {
9066
- window.clearTimeout(m), v -= Date.now() - _;
9069
+ window.clearTimeout(m), g -= Date.now() - _;
9067
9070
  }
9068
- function g() {
9069
- _ = Date.now(), window.clearTimeout(m), m = window.setTimeout(p, v);
9071
+ function v() {
9072
+ _ = Date.now(), window.clearTimeout(m), m = window.setTimeout(p, g);
9070
9073
  }
9071
9074
  function b() {
9072
- v = c, g();
9075
+ g = c, v();
9073
9076
  }
9074
9077
  return {
9075
9078
  pause: w,
9076
- resume: g,
9079
+ resume: v,
9077
9080
  start: b
9078
9081
  };
9079
9082
  }
@@ -9257,108 +9260,108 @@ function gl(n = {}) {
9257
9260
  onEnter: s,
9258
9261
  onEscape: o,
9259
9262
  loop: r = !0
9260
- } = n, i = T(null), l = T(-1), a = (g) => {
9261
- (l.value >= g.length || l.value < 0) && (l.value = g.length > 0 ? 0 : -1);
9262
- }, u = (g) => {
9263
+ } = n, i = T(null), l = T(-1), a = (v) => {
9264
+ (l.value >= v.length || l.value < 0) && (l.value = v.length > 0 ? 0 : -1);
9265
+ }, u = (v) => {
9263
9266
  if (!i.value) return;
9264
9267
  const b = Array.from(i.value.querySelectorAll(t));
9265
9268
  if (b.length)
9266
- switch (a(b), g.key) {
9269
+ switch (a(b), v.key) {
9267
9270
  case "Tab":
9268
- d(g, b);
9271
+ d(v, b);
9269
9272
  break;
9270
9273
  case "ArrowDown":
9271
- g.preventDefault(), p(b);
9274
+ v.preventDefault(), p(b);
9272
9275
  break;
9273
9276
  case "ArrowUp":
9274
- g.preventDefault(), c(b);
9277
+ v.preventDefault(), c(b);
9275
9278
  break;
9276
9279
  case "Enter":
9277
9280
  case " ":
9278
9281
  if (l.value >= 0 && l.value < b.length) {
9279
9282
  const E = b[l.value];
9280
- E && (g.preventDefault(), s ? s(E) : typeof E.click == "function" && E.click());
9283
+ E && (v.preventDefault(), s ? s(E) : typeof E.click == "function" && E.click());
9281
9284
  }
9282
9285
  break;
9283
9286
  case "Escape":
9284
- o && (g.preventDefault(), o());
9287
+ o && (v.preventDefault(), o());
9285
9288
  break;
9286
9289
  }
9287
- }, d = (g, b) => {
9288
- g.shiftKey ? c(b) : p(b);
9289
- }, p = (g) => {
9290
- if (!g.length) return;
9291
- if (a(g), l.value < g.length - 1)
9290
+ }, d = (v, b) => {
9291
+ v.shiftKey ? c(b) : p(b);
9292
+ }, p = (v) => {
9293
+ if (!v.length) return;
9294
+ if (a(v), l.value < v.length - 1)
9292
9295
  l.value++;
9293
9296
  else if (r)
9294
9297
  l.value = 0;
9295
9298
  else
9296
9299
  return;
9297
- const b = g[l.value];
9300
+ const b = v[l.value];
9298
9301
  b && typeof b.focus == "function" && b.focus();
9299
- }, c = (g) => {
9300
- if (!g.length) return;
9301
- if (a(g), l.value > 0)
9302
+ }, c = (v) => {
9303
+ if (!v.length) return;
9304
+ if (a(v), l.value > 0)
9302
9305
  l.value--;
9303
9306
  else if (r)
9304
- l.value = g.length - 1;
9307
+ l.value = v.length - 1;
9305
9308
  else
9306
9309
  return;
9307
- const b = g[l.value];
9310
+ const b = v[l.value];
9308
9311
  b && typeof b.focus == "function" && b.focus();
9309
- }, m = (g) => {
9310
- if (!g.length) return;
9312
+ }, m = (v) => {
9313
+ if (!v.length) return;
9311
9314
  l.value = 0;
9312
- const b = g[0];
9315
+ const b = v[0];
9313
9316
  b && typeof b.focus == "function" && b.focus();
9314
- }, _ = (g) => {
9315
- if (!g.length) return;
9316
- l.value = g.length - 1;
9317
- const b = g[g.length - 1];
9317
+ }, _ = (v) => {
9318
+ if (!v.length) return;
9319
+ l.value = v.length - 1;
9320
+ const b = v[v.length - 1];
9318
9321
  b && typeof b.focus == "function" && b.focus();
9319
- }, v = (g) => {
9320
- i.value = g, g.addEventListener("keydown", u);
9322
+ }, g = (v) => {
9323
+ i.value = v, v.addEventListener("keydown", u);
9321
9324
  }, w = () => {
9322
9325
  i.value && (i.value.removeEventListener("keydown", u), i.value = null);
9323
9326
  };
9324
9327
  return Ue(() => {
9325
9328
  if (typeof document < "u" && e) {
9326
- const g = document.querySelector(e);
9327
- g && v(g);
9329
+ const v = document.querySelector(e);
9330
+ v && g(v);
9328
9331
  }
9329
9332
  }), It(() => {
9330
9333
  w();
9331
9334
  }), {
9332
- initKeyboardNavigation: v,
9335
+ initKeyboardNavigation: g,
9333
9336
  cleanupKeyboardNavigation: w,
9334
9337
  focusNextElement: () => {
9335
9338
  if (i.value) {
9336
- const g = Array.from(i.value.querySelectorAll(t));
9337
- p(g);
9339
+ const v = Array.from(i.value.querySelectorAll(t));
9340
+ p(v);
9338
9341
  }
9339
9342
  },
9340
9343
  focusPreviousElement: () => {
9341
9344
  if (i.value) {
9342
- const g = Array.from(i.value.querySelectorAll(t));
9343
- c(g);
9345
+ const v = Array.from(i.value.querySelectorAll(t));
9346
+ c(v);
9344
9347
  }
9345
9348
  },
9346
9349
  focusFirstElement: () => {
9347
9350
  if (i.value) {
9348
- const g = Array.from(i.value.querySelectorAll(t));
9349
- m(g);
9351
+ const v = Array.from(i.value.querySelectorAll(t));
9352
+ m(v);
9350
9353
  }
9351
9354
  },
9352
9355
  focusLastElement: () => {
9353
9356
  if (i.value) {
9354
- const g = Array.from(i.value.querySelectorAll(t));
9355
- _(g);
9357
+ const v = Array.from(i.value.querySelectorAll(t));
9358
+ _(v);
9356
9359
  }
9357
9360
  },
9358
- setFocusedIndex: (g) => {
9361
+ setFocusedIndex: (v) => {
9359
9362
  if (i.value) {
9360
9363
  const b = Array.from(i.value.querySelectorAll(t));
9361
- g >= 0 && g < b.length && (l.value = g);
9364
+ v >= 0 && v < b.length && (l.value = v);
9362
9365
  }
9363
9366
  },
9364
9367
  getFocusedIndex: () => l.value
@@ -9438,7 +9441,7 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9438
9441
  setup(n, { emit: e }) {
9439
9442
  const t = n, s = e, { t: o } = ke({ useScope: "global" });
9440
9443
  Ze(t);
9441
- const r = T(null), i = T(!1), l = T(!1), a = T(), u = T(), d = T(), p = T(), c = T(), m = T(!1), _ = T(!1), v = T(!1), w = T(), g = T([]), b = T([]), E = T([]), L = T();
9444
+ const r = T(null), i = T(!1), l = T(!1), a = T(), u = T(), d = T(), p = T(), c = T(), m = T(!1), _ = T(!1), g = T(!1), w = T(), v = T([]), b = T([]), E = T([]), L = T();
9442
9445
  let U, A, P, M = null;
9443
9446
  const y = O(() => Ce(t.optionValue, "id")), k = O(() => Ce(t.optionLabel, "title"));
9444
9447
  Ue(() => {
@@ -9474,13 +9477,13 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9474
9477
  async ([G, he]) => {
9475
9478
  let de = [];
9476
9479
  Array.isArray(G) ? de = t.emitValue ? G : G.map((We) => y.value(We)) : G != null && (de = [t.emitValue ? G : y.value(G)]);
9477
- const je = [...g.value.map((We) => y.value(We))].sort((We, tt) => String(We).localeCompare(String(tt))), Vt = [...de].sort((We, tt) => String(We).localeCompare(String(tt))), Ut = xe(je, Vt) && (de.length > 0 || g.value.length === 0);
9480
+ const je = [...v.value.map((We) => y.value(We))].sort((We, tt) => String(We).localeCompare(String(tt))), Vt = [...de].sort((We, tt) => String(We).localeCompare(String(tt))), Ut = xe(je, Vt) && (de.length > 0 || v.value.length === 0);
9478
9481
  if (!he) {
9479
- de.length === 0 && g.value.length > 0 && (g.value = []);
9482
+ de.length === 0 && v.value.length > 0 && (v.value = []);
9480
9483
  return;
9481
9484
  }
9482
9485
  if (de.length === 0) {
9483
- g.value.length > 0 && (g.value = []);
9486
+ v.value.length > 0 && (v.value = []);
9484
9487
  return;
9485
9488
  }
9486
9489
  if (!Ut)
@@ -9489,23 +9492,23 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9489
9492
  _.value = !0;
9490
9493
  const We = de.filter((oo) => oo != null);
9491
9494
  if (We.length === 0 && !(de.length === 1 && de[0] == null && t.mapOptions && !t.multiple)) {
9492
- g.value = [], _.value = !1;
9495
+ v.value = [], _.value = !1;
9493
9496
  return;
9494
9497
  }
9495
9498
  const tt = await t.options(void 0, void 0, We);
9496
9499
  if (typeof tt == "object" && !Array.isArray(tt) && "results" in tt && tt.results) {
9497
9500
  const oo = tt.results;
9498
- g.value = oo.filter(
9501
+ v.value = oo.filter(
9499
9502
  (ms) => de.some((te) => xe(y.value(ms), te))
9500
9503
  );
9501
9504
  } else
9502
- g.value = [];
9505
+ v.value = [];
9503
9506
  } catch (We) {
9504
- console.error("Error loading default options:", We), g.value = [];
9507
+ console.error("Error loading default options:", We), v.value = [];
9505
9508
  } finally {
9506
9509
  _.value = !1;
9507
9510
  }
9508
- else t.options && Array.isArray(t.options) && (g.value = t.options.filter(
9511
+ else t.options && Array.isArray(t.options) && (v.value = t.options.filter(
9509
9512
  (We) => de.some((tt) => xe(y.value(We), tt))
9510
9513
  ));
9511
9514
  },
@@ -9600,7 +9603,7 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9600
9603
  }
9601
9604
  function we(G, he) {
9602
9605
  const de = (Re) => xe(y.value(Re), G);
9603
- return g.value.find(de) || b.value.find(de) || he.find(de) || G;
9606
+ return v.value.find(de) || b.value.find(de) || he.find(de) || G;
9604
9607
  }
9605
9608
  function Pe(G) {
9606
9609
  return G != null && ("" + G).length > 0;
@@ -9735,7 +9738,7 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9735
9738
  "vc-select_disabled": G.disabled,
9736
9739
  "vc-select_has-hint-or-error": G.error || G.hint,
9737
9740
  "vc-select_no-outline": !G.outline,
9738
- "vc-select_focused": v.value
9741
+ "vc-select_focused": g.value
9739
9742
  }])
9740
9743
  }, [
9741
9744
  G.label ? (h(), j(f(ut), {
@@ -9793,11 +9796,11 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9793
9796
  tabindex: "0",
9794
9797
  onClick: ce(_e, ["stop"]),
9795
9798
  onKeydown: [
9796
- $e(ce(_e, ["stop"]), ["enter"]),
9797
- $e(ce(_e, ["stop"]), ["space"])
9799
+ Te(ce(_e, ["stop"]), ["enter"]),
9800
+ Te(ce(_e, ["stop"]), ["space"])
9798
9801
  ],
9799
- onFocus: he[0] || (he[0] = (de) => v.value = !0),
9800
- onBlur: he[1] || (he[1] = (de) => v.value = !1)
9802
+ onFocus: he[0] || (he[0] = (de) => g.value = !0),
9803
+ onBlur: he[1] || (he[1] = (de) => g.value = !1)
9801
9804
  }, [
9802
9805
  Y.value ? W.value && W.value.length && Y.value ? (h(), S("div", Dm, [
9803
9806
  (h(!0), S(se, null, me(W.value, (de, Re) => (h(), S("div", {
@@ -9842,8 +9845,8 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9842
9845
  tabindex: "0",
9843
9846
  onClick: Mt,
9844
9847
  onKeydown: [
9845
- $e(Mt, ["enter"]),
9846
- $e(Mt, ["space"])
9848
+ Te(Mt, ["enter"]),
9849
+ Te(Mt, ["space"])
9847
9850
  ]
9848
9851
  }, [
9849
9852
  $(f(ie), {
@@ -9868,8 +9871,8 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9868
9871
  tabindex: "0",
9869
9872
  onClick: ce(_e, ["stop"]),
9870
9873
  onKeydown: [
9871
- $e(ce(_e, ["stop"]), ["enter"]),
9872
- $e(ce(_e, ["stop"]), ["space"])
9874
+ Te(ce(_e, ["stop"]), ["enter"]),
9875
+ Te(ce(_e, ["stop"]), ["space"])
9873
9876
  ]
9874
9877
  }, [
9875
9878
  C("div", Gm, [
@@ -9925,7 +9928,7 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9925
9928
  ])
9926
9929
  ], 512),
9927
9930
  (h(), j(Kt, { to: "body" }, [
9928
- l.value ? De((h(), S("div", {
9931
+ l.value ? Be((h(), S("div", {
9929
9932
  key: 0,
9930
9933
  ref_key: "dropdownRef",
9931
9934
  ref: d,
@@ -9942,9 +9945,9 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9942
9945
  tabindex: "0",
9943
9946
  onInput: ve,
9944
9947
  onKeydown: [
9945
- he[2] || (he[2] = $e(ce(() => {
9948
+ he[2] || (he[2] = Te(ce(() => {
9946
9949
  }, ["stop"]), ["space"])),
9947
- he[3] || (he[3] = $e(ce(() => {
9950
+ he[3] || (he[3] = Te(ce(() => {
9948
9951
  }, ["stop"]), ["enter"]))
9949
9952
  ]
9950
9953
  }, null, 544)) : D("", !0),
@@ -9962,8 +9965,8 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
9962
9965
  "data-index": Re,
9963
9966
  onClick: (je) => de.toggleOption(de.opt),
9964
9967
  onKeydown: [
9965
- $e((je) => de.toggleOption(de.opt), ["enter"]),
9966
- $e((je) => de.toggleOption(de.opt), ["space"])
9968
+ Te((je) => de.toggleOption(de.opt), ["enter"]),
9969
+ Te((je) => de.toggleOption(de.opt), ["space"])
9967
9970
  ]
9968
9971
  }, [
9969
9972
  J(G.$slots, "option", fe({ ref_for: !0 }, de), () => [
@@ -10043,7 +10046,7 @@ const Em = ["innerHTML"], Cm = { class: "vc-select__field-container" }, Am = { c
10043
10046
  ]),
10044
10047
  _: 3
10045
10048
  }, 8, ["class", "space-between", "navigation", "slides-per-view"]),
10046
- De(C("div", null, [
10049
+ Be(C("div", null, [
10047
10050
  C("div", eh, [
10048
10051
  J(t.$slots, "prevBtn", {}, () => [
10049
10052
  C("button", th, [
@@ -10215,14 +10218,14 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10215
10218
  top: `${c.y.value ?? 0}px`,
10216
10219
  left: `${c.x.value ?? 0}px`,
10217
10220
  ...c.middlewareData.value.sameWidthChangeBorders
10218
- })), _ = O(() => t.options?.filter((N) => !t.modelValue?.find((z) => z[t.optionValue] === N[t.optionValue]))), v = O(() => (N) => t.type === "number" ? Number(N[t.optionLabel]).toFixed(3) : t.type === "integer" ? Math.trunc(+N[t.optionLabel]) : N[t.optionLabel]), w = O({
10221
+ })), _ = O(() => t.options?.filter((N) => !t.modelValue?.find((z) => z[t.optionValue] === N[t.optionValue]))), g = O(() => (N) => t.type === "number" ? Number(N[t.optionLabel]).toFixed(3) : t.type === "integer" ? Math.trunc(+N[t.optionLabel]) : N[t.optionLabel]), w = O({
10219
10222
  get() {
10220
10223
  return d.value === "integer" ? "number" : d.value;
10221
10224
  },
10222
10225
  set(N) {
10223
10226
  d.value = N;
10224
10227
  }
10225
- }), g = gl({
10228
+ }), v = gl({
10226
10229
  onEnter: (N) => {
10227
10230
  const z = parseInt(N.getAttribute("data-index") || "0", 10);
10228
10231
  _.value && _.value[z] && U(_.value[z]);
@@ -10275,11 +10278,11 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10275
10278
  }
10276
10279
  async function M() {
10277
10280
  t.disabled || (a.value ? y() : (a.value = !0, p.value = !0, Ye(() => {
10278
- r.value && (g.initKeyboardNavigation(r.value), l?.value?.focus());
10281
+ r.value && (v.initKeyboardNavigation(r.value), l?.value?.focus());
10279
10282
  })));
10280
10283
  }
10281
10284
  function y() {
10282
- a.value = !1, p.value = !1, g.cleanupKeyboardNavigation(), s("close");
10285
+ a.value = !1, p.value = !1, v.cleanupKeyboardNavigation(), s("close");
10283
10286
  }
10284
10287
  function k(N) {
10285
10288
  s("search", N.target.value);
@@ -10330,11 +10333,11 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10330
10333
  }, [
10331
10334
  oe ? (h(), S("div", fh, [
10332
10335
  J(N.$slots, "selected-item", {
10333
- value: v.value(oe),
10336
+ value: g.value(oe),
10334
10337
  item: oe,
10335
10338
  remove: () => A(ne)
10336
10339
  }, () => [
10337
- C("span", mh, x(v.value(oe)), 1)
10340
+ C("span", mh, x(g.value(oe)), 1)
10338
10341
  ]),
10339
10342
  N.disabled ? D("", !0) : (h(), j(B, {
10340
10343
  key: 0,
@@ -10346,8 +10349,8 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10346
10349
  "aria-label": "Delete item",
10347
10350
  onClick: (ye) => A(ne),
10348
10351
  onKeydown: [
10349
- $e((ye) => A(ne), ["enter"]),
10350
- $e((ye) => A(ne), ["space"])
10352
+ Te((ye) => A(ne), ["enter"]),
10353
+ Te((ye) => A(ne), ["space"])
10351
10354
  ]
10352
10355
  }, null, 8, ["onClick", "onKeydown"]))
10353
10356
  ])) : D("", !0)
@@ -10366,7 +10369,7 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10366
10369
  _: 1
10367
10370
  }, 8, ["disabled"]),
10368
10371
  (h(), j(Kt, { to: "body" }, [
10369
- a.value ? De((h(), S("div", {
10372
+ a.value ? Be((h(), S("div", {
10370
10373
  key: 0,
10371
10374
  ref_key: "dropdownRef",
10372
10375
  ref: r,
@@ -10394,8 +10397,8 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10394
10397
  "data-index": ne,
10395
10398
  onClick: (ye) => U(oe),
10396
10399
  onKeydown: [
10397
- $e((ye) => U(oe), ["enter"]),
10398
- $e((ye) => U(oe), ["space"])
10400
+ Te((ye) => U(oe), ["enter"]),
10401
+ Te((ye) => U(oe), ["space"])
10399
10402
  ]
10400
10403
  }, [
10401
10404
  J(N.$slots, "option", { item: oe }, () => [
@@ -10409,7 +10412,7 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10409
10412
  [f(Xt), [M, { ignore: [o.value] }]]
10410
10413
  ]) : D("", !0)
10411
10414
  ]))
10412
- ])) : De((h(), S("input", {
10415
+ ])) : Be((h(), S("input", {
10413
10416
  key: 1,
10414
10417
  "onUpdate:modelValue": z[0] || (z[0] = (oe) => u.value = oe),
10415
10418
  class: "vc-multivalue__field vc-multivalue__input",
@@ -10417,7 +10420,7 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10417
10420
  type: w.value,
10418
10421
  disabled: N.disabled,
10419
10422
  tabindex: "0",
10420
- onKeypress: $e(ce(L, ["stop", "prevent"]), ["enter"]),
10423
+ onKeypress: Te(ce(L, ["stop", "prevent"]), ["enter"]),
10421
10424
  onBlur: E,
10422
10425
  onKeydown: b,
10423
10426
  onFocus: z[1] || (z[1] = (oe) => p.value = !0)
@@ -10748,7 +10751,7 @@ const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10748
10751
  } : void 0
10749
10752
  ]), 1032, ["required", "error"])) : D("", !0),
10750
10753
  C("label", Uh, [
10751
- De(C("input", {
10754
+ Be(C("input", {
10752
10755
  ref_key: "checkboxRef",
10753
10756
  ref: o,
10754
10757
  "onUpdate:modelValue": a[0] || (a[0] = (u) => r.value = u),
@@ -10935,12 +10938,12 @@ function ev(n) {
10935
10938
  ).forEach((m) => {
10936
10939
  if (i.has(m.id))
10937
10940
  return;
10938
- const _ = s.cloneWidget(m), v = {
10941
+ const _ = s.cloneWidget(m), g = {
10939
10942
  ..._,
10940
10943
  props: s.resolveWidgetProps(_, K(t))
10941
10944
  };
10942
10945
  try {
10943
- s.registerWidget(v, r.value), i.add(m.id);
10946
+ s.registerWidget(g, r.value), i.add(m.id);
10944
10947
  } catch (w) {
10945
10948
  console.error(`Failed to register external widget '${m.id}':`, w);
10946
10949
  }
@@ -10987,7 +10990,7 @@ const Sl = () => {
10987
10990
  const n = be(Mr, null);
10988
10991
  if (n)
10989
10992
  return n;
10990
- const { isExpanded: e, toggleExpanded: t, isHoverExpanded: s, toggleHoverExpanded: o } = ds(), r = Te({
10993
+ const { isExpanded: e, toggleExpanded: t, isHoverExpanded: s, toggleHoverExpanded: o } = ds(), r = $e({
10991
10994
  isSidebarExpanded: e,
10992
10995
  isMenuOpen: !1,
10993
10996
  activeButtonId: null
@@ -11318,8 +11321,8 @@ function pv(n, { router: e, appName: t }, s = {}) {
11318
11321
  error: V
11319
11322
  };
11320
11323
  }
11321
- }), g = await Promise.all(w), b = new Map(
11322
- g.filter((y) => y.success).map((y) => [y.moduleId, y])
11324
+ }), v = await Promise.all(w), b = new Map(
11325
+ v.filter((y) => y.success).map((y) => [y.moduleId, y])
11323
11326
  );
11324
11327
  console.log("🔍 LoadResultsMap keys:", Array.from(b.keys()));
11325
11328
  const E = Array.from(b.keys()), L = () => typeof window < "u" && window.VcShellDynamicModules ? Object.keys(window.VcShellDynamicModules) : [], U = (y, k) => k.some(
@@ -11414,7 +11417,7 @@ function Qt(n, e) {
11414
11417
  `Component ${s} is already registered. It will be overwritten with the new component.`
11415
11418
  ), t.component(s, o);
11416
11419
  }), e && Object.entries(e).forEach(([s, o]) => {
11417
- Le.global.mergeLocaleMessage(s, o);
11420
+ De.global.mergeLocaleMessage(s, o);
11418
11421
  });
11419
11422
  }
11420
11423
  };
@@ -11450,7 +11453,7 @@ function ps(n, e, t, s) {
11450
11453
  route: d.url,
11451
11454
  isWorkspace: d.isWorkspace || !1
11452
11455
  });
11453
- const c = i.getRoutes().find((v) => v.meta?.root);
11456
+ const c = i.getRoutes().find((g) => g.meta?.root);
11454
11457
  if (!c)
11455
11458
  throw new Error("Main route not found. Make sure you have added `meta: {root: true}` to the main route.");
11456
11459
  const m = c.name, _ = Q(d, {
@@ -11495,7 +11498,7 @@ function ps(n, e, t, s) {
11495
11498
  }), s && Object.entries(s).forEach(([d, p]) => {
11496
11499
  o.component(d) && console.warn(`Component ${d} is already registered. It will be overwritten with the new component.`), o.component(d, p);
11497
11500
  }), e && Object.entries(e).forEach(([d, p]) => {
11498
- Le.global.mergeLocaleMessage(d, p);
11501
+ De.global.mergeLocaleMessage(d, p);
11499
11502
  });
11500
11503
  }
11501
11504
  };
@@ -11540,9 +11543,9 @@ const hv = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
11540
11543
  get() {
11541
11544
  return l.value.name?.split(".").shift();
11542
11545
  },
11543
- set(v) {
11546
+ set(g) {
11544
11547
  const w = l.value.name?.split(".").pop();
11545
- l.value.name = v + "." + w;
11548
+ l.value.name = g + "." + w;
11546
11549
  }
11547
11550
  }), d = O(() => !r.value || !o.value), p = T([
11548
11551
  {
@@ -11564,23 +11567,23 @@ const hv = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
11564
11567
  disabled: O(() => a.value)
11565
11568
  }
11566
11569
  ]), c = O(() => l.value?.typeId);
11567
- function m(v) {
11568
- v && (v.charAt(0) === "/" ? navigator.clipboard?.writeText(`${location.origin}${v}`) : navigator.clipboard?.writeText(v));
11570
+ function m(g) {
11571
+ g && (g.charAt(0) === "/" ? navigator.clipboard?.writeText(`${location.origin}${g}`) : navigator.clipboard?.writeText(g));
11569
11572
  }
11570
- function _(v) {
11571
- v && (location.href = v);
11573
+ function _(g) {
11574
+ g && (location.href = g);
11572
11575
  }
11573
- return (v, w) => {
11574
- const g = Z("VcIcon"), b = Z("VcLabel"), E = Z("VcHint"), L = Z("VcCol"), U = Z("VcLink"), A = Z("VcButton"), P = Z("VcRow");
11576
+ return (g, w) => {
11577
+ const v = Z("VcIcon"), b = Z("VcLabel"), E = Z("VcHint"), L = Z("VcCol"), U = Z("VcLink"), A = Z("VcButton"), P = Z("VcRow");
11575
11578
  return h(), j(f(Aa), {
11576
- title: v.options?.asset?.name,
11579
+ title: g.options?.asset?.name,
11577
11580
  subtitle: f(i)("ASSETS.PAGES.DETAILS.SUBTITLE"),
11578
- expanded: v.expanded,
11579
- closable: v.closable,
11581
+ expanded: g.expanded,
11582
+ closable: g.closable,
11580
11583
  "toolbar-items": p.value,
11581
- onClose: w[5] || (w[5] = (M) => v.$emit("close:blade")),
11582
- onExpand: w[6] || (w[6] = (M) => v.$emit("expand:blade")),
11583
- onCollapse: w[7] || (w[7] = (M) => v.$emit("collapse:blade"))
11584
+ onClose: w[5] || (w[5] = (M) => g.$emit("close:blade")),
11585
+ onExpand: w[6] || (w[6] = (M) => g.$emit("expand:blade")),
11586
+ onCollapse: w[7] || (w[7] = (M) => g.$emit("collapse:blade"))
11584
11587
  }, {
11585
11588
  default: I(() => [
11586
11589
  C("div", hv, [
@@ -11598,7 +11601,7 @@ const hv = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
11598
11601
  size: "xl",
11599
11602
  bordered: !0,
11600
11603
  class: "tw-shrink-0"
11601
- }, null, 8, ["src"])) : (h(), j(g, {
11604
+ }, null, 8, ["src"])) : (h(), j(v, {
11602
11605
  key: 1,
11603
11606
  icon: f(Ns)(l.value.name),
11604
11607
  class: "tw-text-[color:var(--assets-details-thumbnail-color)] tw-text-[128px] tw-shrink-0"
@@ -11822,7 +11825,7 @@ function Nl() {
11822
11825
  getInstanceByPosition: s
11823
11826
  };
11824
11827
  }
11825
- const zt = Te({ items: [] }), dt = {
11828
+ const zt = $e({ items: [] }), dt = {
11826
11829
  "top-center": T([]),
11827
11830
  "top-right": T([]),
11828
11831
  "top-left": T([]),
@@ -11831,7 +11834,7 @@ const zt = Te({ items: [] }), dt = {
11831
11834
  "bottom-left": T([])
11832
11835
  }, { clearContainer: kv, unmountComponent: Ov, saveInstance: Iv, getInstanceByPosition: jr } = Nl();
11833
11836
  function gr() {
11834
- const n = Te({
11837
+ const n = $e({
11835
11838
  timeout: 3e3,
11836
11839
  pauseOnHover: !0,
11837
11840
  limit: 3,
@@ -11955,7 +11958,7 @@ function gr() {
11955
11958
  if (a.updateId) {
11956
11959
  let u, d, p;
11957
11960
  if (Object.entries(dt).forEach(([c, m]) => {
11958
- const _ = m.value.find((v) => v.notificationId === a.notificationId);
11961
+ const _ = m.value.find((g) => g.notificationId === a.notificationId);
11959
11962
  _ && (u = _, d = m, p = c);
11960
11963
  }), u && d) {
11961
11964
  if (console.log(`Updating notification ${a.notificationId} in position ${p}`), a.position && a.position !== p) {
@@ -12229,13 +12232,13 @@ const Bl = (n, [e, t]) => {
12229
12232
  const p = new Image();
12230
12233
  p.onerror = () => d(!1), p.onload = () => {
12231
12234
  const c = p.width >= Number(l) && p.height >= Number(a);
12232
- d(c ? !0 : Le.global.t("messages.min_dimensions.error", { width: l, height: a }));
12235
+ d(c ? !0 : De.global.t("messages.min_dimensions.error", { width: l, height: a }));
12233
12236
  }, p.src = u.createObjectURL(i);
12234
12237
  });
12235
12238
  }, o = [], r = n.files;
12236
12239
  for (let i = 0; i < r.length; i++) {
12237
12240
  if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(r[i].name))
12238
- return Promise.resolve(Le.global.t("messages.min_dimensions.not_image_error"));
12241
+ return Promise.resolve(De.global.t("messages.min_dimensions.not_image_error"));
12239
12242
  o.push(r[i]);
12240
12243
  }
12241
12244
  return Promise.all(o.map((i) => s(i, e, t))).then((i) => {
@@ -12250,7 +12253,7 @@ const Ml = (n, [e]) => {
12250
12253
  const t = e * 1e3, s = (l) => l.size > t, o = [];
12251
12254
  for (let l = 0; l < n.files.length; l++)
12252
12255
  o.push(n.files[l]);
12253
- return o.map((l) => s(l)).find((l) => l === !0) ? Le.global.t("messages.file_weight", { size: e }) : !0;
12256
+ return o.map((l) => s(l)).find((l) => l === !0) ? De.global.t("messages.file_weight", { size: e }) : !0;
12254
12257
  };
12255
12258
  bo("fileWeight", Ml);
12256
12259
  const Vl = (n, [e], t, s) => {
@@ -12258,11 +12261,11 @@ const Vl = (n, [e], t, s) => {
12258
12261
  return !0;
12259
12262
  let o, r;
12260
12263
  return n instanceof Date && (o = n), e instanceof Date && (r = e), typeof n == "string" && (o = new Date(n)), typeof e == "string" && (r = new Date(e)), o?.getTime && o?.getTime() > 0 && r?.getTime && r?.getTime() > 0 && t(r.getTime(), o.getTime()) ? s : !0;
12261
- }, Ul = (n, [e]) => Vl(n, [e], (t, s) => t < s, Le.global.t("messages.before"));
12264
+ }, Ul = (n, [e]) => Vl(n, [e], (t, s) => t < s, De.global.t("messages.before"));
12262
12265
  bo("before", Ul);
12263
- const jl = (n, [e]) => Vl(n, [e], (t, s) => t > s, Le.global.t("messages.after"));
12266
+ const jl = (n, [e]) => Vl(n, [e], (t, s) => t > s, De.global.t("messages.after"));
12264
12267
  bo("after", jl);
12265
- const xl = (n) => Number.isSafeInteger(parseInt(n)) ? !0 : Le.global.t("messages.bigint");
12268
+ const xl = (n) => Number.isSafeInteger(parseInt(n)) ? !0 : De.global.t("messages.bigint");
12266
12269
  bo("bigint", xl);
12267
12270
  const { addNotification: zl } = Zt(), _o = T(), Fl = Symbol("updateSignalRCreator");
12268
12271
  function zr(n, e) {
@@ -12322,7 +12325,7 @@ const Gl = {
12322
12325
  createModule: Qt,
12323
12326
  extensionsHelperSymbol: vr,
12324
12327
  fileWeight: Ml,
12325
- i18n: Le,
12328
+ i18n: De,
12326
12329
  mindimensions: Bl,
12327
12330
  moment: pt,
12328
12331
  permissions: Wl,
@@ -12345,7 +12348,7 @@ function Hl() {
12345
12348
  }
12346
12349
  }
12347
12350
  function o(r) {
12348
- n(r.permission) ? r.relativeUrl && (window.location.href = window.location.origin + r.relativeUrl) : ze.error(Le.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), {
12351
+ n(r.permission) ? r.relativeUrl && (window.location.href = window.location.origin + r.relativeUrl) : ze.error(De.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), {
12349
12352
  timeout: 3e3
12350
12353
  });
12351
12354
  }
@@ -12479,7 +12482,7 @@ const xv = H({
12479
12482
  const r = () => {
12480
12483
  s.value = !1;
12481
12484
  };
12482
- return (i, l) => De((h(), j(dl, { items: i.breadcrumbs }, {
12485
+ return (i, l) => Be((h(), j(dl, { items: i.breadcrumbs }, {
12483
12486
  trigger: I(({ click: a }) => [
12484
12487
  $(f(Wu), {
12485
12488
  as: "button",
@@ -12532,8 +12535,8 @@ const xv = H({
12532
12535
  e.value?.reduce(
12533
12536
  (c, m, _) => {
12534
12537
  if (m.type.isBlade) {
12535
- const v = e.value.filter(
12536
- (g) => g.props.navigation.isVisible === !1 && g.props.navigation.idx < _
12538
+ const g = e.value.filter(
12539
+ (v) => v.props.navigation.isVisible === !1 && v.props.navigation.idx < _
12537
12540
  ).length, w = r.value.slice(0, _);
12538
12541
  c.push(
12539
12542
  Q(
@@ -12544,13 +12547,13 @@ const xv = H({
12544
12547
  },
12545
12548
  {
12546
12549
  default: ({
12547
- error: g,
12550
+ error: v,
12548
12551
  reset: b
12549
12552
  }) => {
12550
- const E = m.props.navigation, L = O(() => g || E.error?.value), U = () => {
12551
- g && b(), E.error?.value && o(E.idx);
12553
+ const E = m.props.navigation, L = O(() => v || E.error?.value), U = () => {
12554
+ v && b(), E.error?.value && o(E.idx);
12552
12555
  };
12553
- return De(
12556
+ return Be(
12554
12557
  Q(
12555
12558
  xv,
12556
12559
  {
@@ -12570,7 +12573,7 @@ const xv = H({
12570
12573
  {
12571
12574
  default: ({ Component: A }) => Q(A, {
12572
12575
  closable: _ >= 1,
12573
- expanded: _ - v === u.value - 1,
12576
+ expanded: _ - g === u.value - 1,
12574
12577
  "onClose:blade": () => {
12575
12578
  _ !== 0 && t(_);
12576
12579
  },
@@ -12689,7 +12692,7 @@ function Wv(n) {
12689
12692
  };
12690
12693
  }
12691
12694
  function Hv(n, e) {
12692
- const t = He(), s = Be(n.getRoutes());
12695
+ const t = He(), s = Le(n.getRoutes());
12693
12696
  function o() {
12694
12697
  const d = Object.values(e.params)?.[0] ?? "";
12695
12698
  t.value = "/" + d;
@@ -12705,8 +12708,8 @@ function Hv(n, e) {
12705
12708
  }
12706
12709
  if (c.length === 0)
12707
12710
  return { workspace: void 0, blade: void 0, param: void 0 };
12708
- const v = c[0], w = c[1], g = c[2];
12709
- return { workspace: v, blade: w, param: g };
12711
+ const g = c[0], w = c[1], v = c[2];
12712
+ return { workspace: g, blade: w, param: v };
12710
12713
  }
12711
12714
  function i(d) {
12712
12715
  return o(), "/" + (d.startsWith(t.value || "###") ? d.slice((t.value || "").length) : d).split("/").filter(Boolean).slice(0, 1).join("/");
@@ -12727,10 +12730,10 @@ function Hv(n, e) {
12727
12730
  let m = c.startsWith("/") ? c : "/" + c;
12728
12731
  if (m.endsWith("/") && m.length > 1 && (m = m.slice(0, -1)), p && p.type.url && p.type.url !== c) {
12729
12732
  let _ = p.type.url;
12730
- const v = p.props?.param;
12733
+ const g = p.props?.param;
12731
12734
  _.startsWith("/") || (_ = "/" + _);
12732
12735
  let w = m + _;
12733
- return v && (w += "/" + String(v)), w;
12736
+ return g && (w += "/" + String(g)), w;
12734
12737
  } else {
12735
12738
  const _ = p ? p.props?.param : d.props?.param;
12736
12739
  return _ ? m + "/" + String(_) : m;
@@ -12754,24 +12757,24 @@ function Hv(n, e) {
12754
12757
  };
12755
12758
  }
12756
12759
  function Jv(n, e, t, s, o, r, i, l, a) {
12757
- async function u({ blade: p, param: c, options: m }, _ = void 0, v = {}, w = !1) {
12758
- const g = o(p), b = Su({
12760
+ async function u({ blade: p, param: c, options: m }, _ = void 0, g = {}, w = !1) {
12761
+ const v = o(p), b = Su({
12759
12762
  param: c,
12760
12763
  options: m,
12761
12764
  navigation: { idx: 0 }
12762
- }), E = Q(g, b);
12765
+ }), E = Q(v, b);
12763
12766
  try {
12764
12767
  if (await t.removeBladesStartingFrom(0))
12765
12768
  return;
12766
12769
  if (E.type?.url)
12767
- if (r(g.permissions)) {
12770
+ if (r(v.permissions)) {
12768
12771
  if (t.blades.value.length > 0 && t.blades.value[0].type.url === E.type.url)
12769
12772
  return;
12770
12773
  t.setActiveWorkspaceBlade(E);
12771
12774
  const U = s.allRoutes.find((A) => A.path.endsWith(E.type?.url));
12772
12775
  return U && U.components && (U.components.default = E), n.push({
12773
12776
  name: U?.name,
12774
- params: { ...v, ...e.params },
12777
+ params: { ...g, ...e.params },
12775
12778
  query: _,
12776
12779
  replace: w
12777
12780
  });
@@ -12781,14 +12784,14 @@ function Jv(n, e, t, s, o, r, i, l, a) {
12781
12784
  });
12782
12785
  } catch (L) {
12783
12786
  console.error(L);
12784
- const U = g?.type?.name || (typeof p == "object" && "name" in p ? p.name : "Unknown");
12787
+ const U = v?.type?.name || (typeof p == "object" && "name" in p ? p.name : "Unknown");
12785
12788
  throw new Error(`Opening workspace '${U}' is prevented or failed.`);
12786
12789
  }
12787
12790
  }
12788
12791
  async function d(p, c = !1, m) {
12789
- const { blade: _, param: v, options: w, onOpen: g, onClose: b, replaceCurrentBlade: E = !1 } = p, L = o(_);
12792
+ const { blade: _, param: g, options: w, onOpen: v, onClose: b, replaceCurrentBlade: E = !1 } = p, L = o(_);
12790
12793
  if (c)
12791
- return u({ blade: L, param: v, options: w });
12794
+ return u({ blade: L, param: g, options: w });
12792
12795
  try {
12793
12796
  const U = m || t.activeWorkspace.value;
12794
12797
  if (!U)
@@ -12802,8 +12805,8 @@ function Jv(n, e, t, s, o, r, i, l, a) {
12802
12805
  L,
12803
12806
  Object.assign(
12804
12807
  {},
12805
- uo(() => ({ options: w, param: v })),
12806
- { navigation: { onOpen: g, onClose: b, idx: k + 1, isVisible: !0 } }
12808
+ uo(() => ({ options: w, param: g })),
12809
+ { navigation: { onOpen: v, onClose: b, idx: k + 1, isVisible: !0 } }
12807
12810
  )
12808
12811
  );
12809
12812
  y || (r(L.permissions) ? (E && k >= 0 && t.blades.value[k] && t.blades.value[k] && (t.blades.value[k].props.navigation.isVisible = !1), a.beforeEach({ name: N.type.name }), t.addBlade(N)) : i.error(l.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), {
@@ -12826,10 +12829,10 @@ function qv(n, e, t, s, o, r, i, l) {
12826
12829
  try {
12827
12830
  const p = n.getRoutes(), c = d.startsWith("/") ? d : `/${d}`, m = d.startsWith("/") ? d.substring(1) : d;
12828
12831
  for (const w of p) {
12829
- let g, b;
12832
+ let v, b;
12830
12833
  try {
12831
12834
  const L = n.resolve({ name: w.name || void 0, path: w.name ? void 0 : w.path });
12832
- L.matched.length > 0 && (g = L.matched[L.matched.length - 1]?.components?.default), b = g, g && js(g) && g.type && (b = g.type);
12835
+ L.matched.length > 0 && (v = L.matched[L.matched.length - 1]?.components?.default), b = v, v && js(v) && v.type && (b = v.type);
12833
12836
  } catch {
12834
12837
  continue;
12835
12838
  }
@@ -12840,12 +12843,12 @@ function qv(n, e, t, s, o, r, i, l) {
12840
12843
  const _ = [m];
12841
12844
  d && d !== "/" && d.includes("-") && _.push(d);
12842
12845
  for (const w of Pu(_.filter(Boolean))) {
12843
- const g = t.getBladeComponent(w);
12844
- if (g && g.isBlade && typeof g.url == "string" && (g.url.startsWith("/") ? g.url : `/${g.url}`) === c)
12845
- return g;
12846
+ const v = t.getBladeComponent(w);
12847
+ if (v && v.isBlade && typeof v.url == "string" && (v.url.startsWith("/") ? v.url : `/${v.url}`) === c)
12848
+ return v;
12846
12849
  }
12847
- const v = t.getBlade(c);
12848
- return v && v.component && v.component.isBlade && (v.component.url?.startsWith("/") ? v.component.url : `/${v.component.url}`) === c ? v.component : void 0;
12850
+ const g = t.getBlade(c);
12851
+ return g && g.component && g.component.isBlade && (g.component.url?.startsWith("/") ? g.component.url : `/${g.component.url}`) === c ? g.component : void 0;
12849
12852
  } catch (p) {
12850
12853
  console.error("Error in findBladeComponentByUrlSegment:", p instanceof Error ? p.message : String(p));
12851
12854
  return;
@@ -12871,24 +12874,24 @@ function qv(n, e, t, s, o, r, i, l) {
12871
12874
  const P = s.goToRoot();
12872
12875
  return typeof P == "object" && P.name && P.name === d.name ? void 0 : P;
12873
12876
  }
12874
- const _ = m.workspace, v = m.blade, w = m.param, g = a(_);
12875
- if (!_s(g))
12877
+ const _ = m.workspace, g = m.blade, w = m.param, v = a(_);
12878
+ if (!_s(v))
12876
12879
  return await r.removeBladesStartingFrom(0), r.clearActiveWorkspaceState(), s.goToRoot();
12877
- if (!g || !g.isWorkspace) {
12880
+ if (!v || !v.isWorkspace) {
12878
12881
  const P = s.goToRoot();
12879
12882
  return typeof P == "object" && P.name && P.name === d.name ? void 0 : P;
12880
12883
  }
12881
- if (!l(g.permissions))
12884
+ if (!l(v.permissions))
12882
12885
  return s.goToRoot();
12883
12886
  let b;
12884
- if (v) {
12885
- const P = a(v);
12886
- g && P && _s(P) && Object.prototype.hasOwnProperty.call(g, "moduleUid") && Object.prototype.hasOwnProperty.call(P, "moduleUid") && g.moduleUid === P.moduleUid ? b = w : b = void 0;
12887
+ if (g) {
12888
+ const P = a(g);
12889
+ v && P && _s(P) && Object.prototype.hasOwnProperty.call(v, "moduleUid") && Object.prototype.hasOwnProperty.call(P, "moduleUid") && v.moduleUid === P.moduleUid ? b = w : b = void 0;
12887
12890
  } else
12888
12891
  b = w;
12889
12892
  const E = await o.openWorkspace(
12890
12893
  {
12891
- blade: i(g),
12894
+ blade: i(v),
12892
12895
  param: b
12893
12896
  },
12894
12897
  d.query,
@@ -12897,7 +12900,7 @@ function qv(n, e, t, s, o, r, i, l) {
12897
12900
  );
12898
12901
  if (E && "redirectedFrom" in E)
12899
12902
  return;
12900
- let L = g, U = v;
12903
+ let L = v, U = g;
12901
12904
  if (U) {
12902
12905
  const P = a(U);
12903
12906
  _s(P) || (U = void 0), U && P && P.isBlade && !P.isWorkspace && l(P.permissions) && (await o.openBlade({
@@ -12971,7 +12974,7 @@ const Yv = Sn(() => {
12971
12974
  u,
12972
12975
  l,
12973
12976
  ze,
12974
- Le,
12977
+ De,
12975
12978
  i
12976
12979
  ), p = qv(
12977
12980
  t,
@@ -13003,10 +13006,10 @@ const Yv = Sn(() => {
13003
13006
  }
13004
13007
  const m = a.vnode.type.name?.toLowerCase();
13005
13008
  if (m && o.activeWorkspace.value && o.activeWorkspace.value.props.navigation?.idx === 0) {
13006
- const _ = Er(Ru(c, String), (w, g) => `${m}_${g}`), v = Nu(_, Lu);
13009
+ const _ = Er(Ru(c, String), (w, v) => `${m}_${v}`), g = Nu(_, Lu);
13007
13010
  t.options.history.replace(
13008
13011
  decodeURIComponent(
13009
- `${window.location.hash.substring(1).split("?")[0]}?${new URLSearchParams(v).toString()}`
13012
+ `${window.location.hash.substring(1).split("?")[0]}?${new URLSearchParams(g).toString()}`
13010
13013
  )
13011
13014
  );
13012
13015
  }
@@ -13018,10 +13021,10 @@ const Yv = Sn(() => {
13018
13021
  }
13019
13022
  const c = a.vnode.type.name?.toLowerCase();
13020
13023
  if (c && o.activeWorkspace.value && o.activeWorkspace.value.props.navigation?.idx === 0) {
13021
- const _ = Object.keys(n.query).filter((g) => g.startsWith(c)), v = Er(ii(n.query, _), (g, b) => b.replace(`${c}_`, "")), w = {};
13022
- for (const [g, b] of Object.entries(v)) {
13024
+ const _ = Object.keys(n.query).filter((v) => v.startsWith(c)), g = Er(ii(n.query, _), (v, b) => b.replace(`${c}_`, "")), w = {};
13025
+ for (const [v, b] of Object.entries(g)) {
13023
13026
  const E = Number(b);
13024
- w[g] = isNaN(E) ? b : E;
13027
+ w[v] = isNaN(E) ? b : E;
13025
13028
  }
13026
13029
  return w;
13027
13030
  }
@@ -13475,7 +13478,7 @@ function to(n) {
13475
13478
  );
13476
13479
  function o(p) {
13477
13480
  const c = Fr(), m = c?.popups?.findIndex(
13478
- (_) => Du(_, p, (v) => v.component)
13481
+ (_) => Du(_, p, (g) => g.component)
13479
13482
  );
13480
13483
  m !== -1 && c?.popups?.splice(m, 1);
13481
13484
  }
@@ -13547,7 +13550,7 @@ function to(n) {
13547
13550
  o(c), t.popups.push(c);
13548
13551
  }
13549
13552
  function d(p) {
13550
- return p && Te({
13553
+ return p && $e({
13551
13554
  ...ug(p),
13552
13555
  close: i,
13553
13556
  open: r
@@ -13563,12 +13566,12 @@ function to(n) {
13563
13566
  }
13564
13567
  function ug(n) {
13565
13568
  const e = typeof n.slots > "u" ? {} : Object.fromEntries(
13566
- Object.entries(n.slots).map(([t, s]) => typeof s == "string" ? [t, s] : [t, Be(s)])
13569
+ Object.entries(n.slots).map(([t, s]) => typeof s == "string" ? [t, s] : [t, Le(s)])
13567
13570
  );
13568
13571
  return {
13569
13572
  ...n,
13570
13573
  slots: e,
13571
- component: Be(He(n.component))
13574
+ component: Le(He(n.component))
13572
13575
  };
13573
13576
  }
13574
13577
  const cg = {
@@ -13584,7 +13587,7 @@ const cg = {
13584
13587
  setup(n, { emit: e }) {
13585
13588
  const t = n, s = e, { t: o } = ke({ useScope: "global" }), { changeUserPassword: r, loading: i, validatePassword: l, signOut: a } = ct();
13586
13589
  go({ validateOnMount: !1 });
13587
- const u = xo(), d = Cn(), p = Lt(), c = Te({
13590
+ const u = xo(), d = Cn(), p = Lt(), c = $e({
13588
13591
  isValid: !1,
13589
13592
  errors: [],
13590
13593
  currentPassword: "",
@@ -13594,16 +13597,16 @@ const cg = {
13594
13597
  async function _() {
13595
13598
  t.forced ? (await a(), await p.push("/login")) : s("close");
13596
13599
  }
13597
- async function v() {
13598
- const g = await r(c.currentPassword, c.password);
13599
- g?.succeeded ? t.forced ? await p.push("/") : s("close") : g?.errors && (c.errors = g?.errors, c.isValid = c.errors.length == 0);
13600
+ async function g() {
13601
+ const v = await r(c.currentPassword, c.password);
13602
+ v?.succeeded ? t.forced ? await p.push("/") : s("close") : v?.errors && (c.errors = v?.errors, c.isValid = c.errors.length == 0);
13600
13603
  }
13601
13604
  function w() {
13602
13605
  Ye(async () => {
13603
13606
  (c.password || c.confirmPassword) && (c.errors = (await l(c.password)).errors ?? [], c.confirmPassword !== c.password && c.errors.push({ code: "Repeat-password" }), c.confirmPassword === c.currentPassword && c.password === c.currentPassword && c.errors.push({ code: "Equal-passwords" }), c.isValid = c.errors.length == 0);
13604
13607
  });
13605
13608
  }
13606
- return (g, b) => {
13609
+ return (v, b) => {
13607
13610
  const E = Z("VcIcon"), L = Z("vc-status");
13608
13611
  return h(), j(f(eo), {
13609
13612
  title: f(o)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
@@ -13613,7 +13616,7 @@ const cg = {
13613
13616
  content: I(() => [
13614
13617
  $(f(pr), { class: "tw-flex tw-flex-col tw-flex-auto" }, {
13615
13618
  default: I(() => [
13616
- g.forced ? (h(), S("div", cg, [
13619
+ v.forced ? (h(), S("div", cg, [
13617
13620
  $(L, {
13618
13621
  extend: "",
13619
13622
  outline: !1,
@@ -13728,7 +13731,7 @@ const cg = {
13728
13731
  }),
13729
13732
  $(f(et), {
13730
13733
  disabled: f(i) || !c.isValid || m.value,
13731
- onClick: v
13734
+ onClick: g
13732
13735
  }, {
13733
13736
  default: I(() => [
13734
13737
  ee(x(f(o)("COMPONENTS.CHANGE_PASSWORD.SAVE")), 1)
@@ -13887,7 +13890,7 @@ const cg = {
13887
13890
  })),
13888
13891
  $(rt, { name: "opacity" }, {
13889
13892
  default: I(() => [
13890
- De(C("div", Eg, [
13893
+ Be(C("div", Eg, [
13891
13894
  C("div", Cg, x(o.name || f(t) && "fullName" in f(t) && f(t).fullName || f(t)?.userName), 1),
13892
13895
  C("div", Ag, x(o.role && o.$t(`SHELL.USER.ROLE.${o.role}`) || (f(t)?.isAdministrator ? o.$t("SHELL.USER.ROLE.ADMINISTRATOR") : "")), 1)
13893
13896
  ], 512), [
@@ -14346,8 +14349,8 @@ function Yg(n) {
14346
14349
  let c = 0;
14347
14350
  const m = Math.max(e.GRID_COLUMNS, e.dynamicRows.value);
14348
14351
  for (; c < m; ) {
14349
- for (const { dx: _, dy: v } of Kg) {
14350
- const w = d + _ * c, g = p + v * c, b = { x: w, y: g };
14352
+ for (const { dx: _, dy: g } of Kg) {
14353
+ const w = d + _ * c, v = p + g * c, b = { x: w, y: v };
14351
14354
  if (!e.hasCollision(i, b, l, a, i.id))
14352
14355
  return b;
14353
14356
  }
@@ -14374,8 +14377,8 @@ function Yg(n) {
14374
14377
  arrangeWidgetsInRows: (i, l, a) => {
14375
14378
  if (i.length === 0) return;
14376
14379
  const u = [...i].sort((m, _) => {
14377
- const v = m.size.width * m.size.height;
14378
- return _.size.width * _.size.height - v;
14380
+ const g = m.size.width * m.size.height;
14381
+ return _.size.width * _.size.height - g;
14379
14382
  });
14380
14383
  let d = 0, p = 0, c = 0;
14381
14384
  u.forEach((m) => {
@@ -14388,7 +14391,7 @@ function Yg(n) {
14388
14391
  if (i.length === 0) return !1;
14389
14392
  const a = i.filter((_) => _.position), u = i.filter((_) => !_.position);
14390
14393
  if (a.length === 0) return !1;
14391
- const d = [...a].sort((_, v) => !_.position || !v.position ? 0 : _.position.y !== v.position.y ? _.position.y - v.position.y : _.position.x - v.position.x);
14394
+ const d = [...a].sort((_, g) => !_.position || !g.position ? 0 : _.position.y !== g.position.y ? _.position.y - g.position.y : _.position.x - g.position.x);
14392
14395
  l.clear(), d.forEach((_) => {
14393
14396
  _.position && n(_.id, _.position);
14394
14397
  });
@@ -14397,24 +14400,24 @@ function Yg(n) {
14397
14400
  p = !1;
14398
14401
  for (const _ of d) {
14399
14402
  if (!_.position) continue;
14400
- const v = l.get(_.id);
14401
- if (v && e.hasCollision(_, v, i, l, _.id)) {
14403
+ const g = l.get(_.id);
14404
+ if (g && e.hasCollision(_, g, i, l, _.id)) {
14402
14405
  p = !0;
14403
14406
  const w = t(_, i, l);
14404
14407
  n(_.id, w);
14405
14408
  }
14406
14409
  }
14407
14410
  } while (p);
14408
- const c = e.createOccupiedCellsMap(i, l), m = [...u].sort((_, v) => {
14411
+ const c = e.createOccupiedCellsMap(i, l), m = [...u].sort((_, g) => {
14409
14412
  const w = _.size.width * _.size.height;
14410
- return v.size.width * v.size.height - w;
14413
+ return g.size.width * g.size.height - w;
14411
14414
  });
14412
14415
  for (const _ of m) {
14413
- const v = s(_, c, e.dynamicRows.value + e.ROWS_BUFFER);
14414
- n(_.id, v);
14415
- for (let w = v.x; w < v.x + _.size.width; w++)
14416
- for (let g = v.y; g < v.y + _.size.height; g++)
14417
- c.add(`${w},${g}`);
14416
+ const g = s(_, c, e.dynamicRows.value + e.ROWS_BUFFER);
14417
+ n(_.id, g);
14418
+ for (let w = g.x; w < g.x + _.size.width; w++)
14419
+ for (let v = g.y; v < g.y + _.size.height; v++)
14420
+ c.add(`${w},${v}`);
14418
14421
  }
14419
14422
  return !0;
14420
14423
  }
@@ -14490,8 +14493,8 @@ function tb() {
14490
14493
  const n = T(/* @__PURE__ */ new Map()), e = (i, l, a, u) => {
14491
14494
  if (Math.abs(l.y - u.y) > i.size.height + a.size.height || Math.abs(l.x - u.x) > i.size.width + a.size.width)
14492
14495
  return !1;
14493
- const c = l.x, m = l.x + i.size.width, _ = l.y, v = l.y + i.size.height, w = u.x, g = u.x + a.size.width, b = u.y, E = u.y + a.size.height;
14494
- return !(m <= w || c >= g || v <= b || _ >= E);
14496
+ const c = l.x, m = l.x + i.size.width, _ = l.y, g = l.y + i.size.height, w = u.x, v = u.x + a.size.width, b = u.y, E = u.y + a.size.height;
14497
+ return !(m <= w || c >= v || g <= b || _ >= E);
14495
14498
  };
14496
14499
  return {
14497
14500
  displacedWidgets: n,
@@ -14504,25 +14507,25 @@ function tb() {
14504
14507
  const d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
14505
14508
  for (const w of a) {
14506
14509
  if (w.id === i.id) continue;
14507
- const g = u.get(w.id);
14508
- g && e(i, l, w, g) && c.add(w.id);
14510
+ const v = u.get(w.id);
14511
+ v && e(i, l, w, v) && c.add(w.id);
14509
14512
  }
14510
14513
  if (c.size === 0) {
14511
14514
  n.value = d;
14512
14515
  return;
14513
14516
  }
14514
- const m = [...a].filter((w) => w.id !== i.id).sort((w, g) => {
14515
- const b = u.get(w.id), E = u.get(g.id);
14517
+ const m = [...a].filter((w) => w.id !== i.id).sort((w, v) => {
14518
+ const b = u.get(w.id), E = u.get(v.id);
14516
14519
  return !b || !E ? 0 : b.y === E.y ? b.x - E.x : b.y - E.y;
14517
- }), _ = /* @__PURE__ */ new Map(), v = (w, g) => {
14518
- const b = `${w.id}_${g.x}_${g.y}`;
14520
+ }), _ = /* @__PURE__ */ new Map(), g = (w, v) => {
14521
+ const b = `${w.id}_${v.x}_${v.y}`;
14519
14522
  if (_.has(b))
14520
14523
  return _.get(b);
14521
- let E = e(i, l, w, g);
14524
+ let E = e(i, l, w, v);
14522
14525
  if (!E)
14523
14526
  for (const [L, U] of d) {
14524
14527
  const A = a.find((P) => P.id === L);
14525
- if (A && e(w, g, A, U)) {
14528
+ if (A && e(w, v, A, U)) {
14526
14529
  E = !0;
14527
14530
  break;
14528
14531
  }
@@ -14531,19 +14534,19 @@ function tb() {
14531
14534
  };
14532
14535
  for (const w of m) {
14533
14536
  if (p.has(w.id)) continue;
14534
- const g = u.get(w.id);
14535
- if (!g || !c.has(w.id) && d.size === 0) continue;
14536
- if (v(w, g)) {
14537
- let L = Math.max(l.y + i.size.height, g.y + 1);
14537
+ const v = u.get(w.id);
14538
+ if (!v || !c.has(w.id) && d.size === 0) continue;
14539
+ if (g(w, v)) {
14540
+ let L = Math.max(l.y + i.size.height, v.y + 1);
14538
14541
  const U = 50;
14539
14542
  let A = 0;
14540
- for (; v(w, { x: g.x, y: L }) && A < U; )
14543
+ for (; g(w, { x: v.x, y: L }) && A < U; )
14541
14544
  L++, A++;
14542
- d.set(w.id, { x: g.x, y: L }), p.add(w.id);
14545
+ d.set(w.id, { x: v.x, y: L }), p.add(w.id);
14543
14546
  for (const P of m)
14544
14547
  if (P.id !== w.id && !p.has(P.id)) {
14545
14548
  const M = u.get(P.id);
14546
- M && e(w, { x: g.x, y: L }, P, M) && c.add(P.id);
14549
+ M && e(w, { x: v.x, y: L }, P, M) && c.add(P.id);
14547
14550
  }
14548
14551
  }
14549
14552
  }
@@ -14570,8 +14573,8 @@ function ob(n, e) {
14570
14573
  };
14571
14574
  },
14572
14575
  mouseToGridCoordinates: (u, d, p, c) => {
14573
- const m = u.clientX - d.left + c.left, _ = u.clientY - d.top + c.top, v = Math.round(m / p.cellWidth - s.value.x), w = Math.round(_ / p.cellHeight - s.value.y);
14574
- return { gridX: v, gridY: w };
14576
+ const m = u.clientX - d.left + c.left, _ = u.clientY - d.top + c.top, g = Math.round(m / p.cellWidth - s.value.x), w = Math.round(_ / p.cellHeight - s.value.y);
14577
+ return { gridX: g, gridY: w };
14575
14578
  },
14576
14579
  constrainToGrid: (u, d, p, c) => {
14577
14580
  u = Math.max(0, u), d = Math.max(0, d);
@@ -14586,7 +14589,7 @@ function ob(n, e) {
14586
14589
  }
14587
14590
  const Wr = 80;
14588
14591
  function nb(n, e) {
14589
- const t = ls(), s = O(() => t.getWidgets()), o = T(null), r = T(null), i = T(!1), { dragClone: l, createDragClone: a, updateDragClonePosition: u, removeDragClone: d } = Qg(), { initialPosition: p, isTouchDevice: c, getEventCoordinates: m, saveInitialPosition: _, hasMovedBeyondThreshold: v } = eb(), { displacedWidgets: w, updateDisplacedWidgets: g, isWidgetDisplaced: b, getDisplacedPosition: E } = tb(), {
14592
+ const t = ls(), s = O(() => t.getWidgets()), o = T(null), r = T(null), i = T(!1), { dragClone: l, createDragClone: a, updateDragClonePosition: u, removeDragClone: d } = Qg(), { initialPosition: p, isTouchDevice: c, getEventCoordinates: m, saveInitialPosition: _, hasMovedBeyondThreshold: g } = eb(), { displacedWidgets: w, updateDisplacedWidgets: v, isWidgetDisplaced: b, getDisplacedPosition: E } = tb(), {
14590
14593
  previewPosition: L,
14591
14594
  calculateDragOffset: U,
14592
14595
  mouseToGridCoordinates: A,
@@ -14620,7 +14623,7 @@ function nb(n, e) {
14620
14623
  x: _e.gridX,
14621
14624
  y: _e.gridY
14622
14625
  };
14623
- M(X), g(r.value, X, s.value, new Map(t.getLayout()));
14626
+ M(X), v(r.value, X, s.value, new Map(t.getLayout()));
14624
14627
  }
14625
14628
  });
14626
14629
  }, z = (ne) => {
@@ -14666,7 +14669,7 @@ function nb(n, e) {
14666
14669
  const ae = k(), re = (Je) => {
14667
14670
  if (we) return;
14668
14671
  const _e = m(Je);
14669
- v(_e, 3) && (we = !0, i.value = !0, r.value = ye, U(ne, Pe, ae), a(Ce), document.removeEventListener("mousemove", re), document.removeEventListener("touchmove", re), document.removeEventListener("mouseup", Se), document.removeEventListener("touchend", Se), c.value ? (document.addEventListener("touchmove", V, { passive: !1 }), document.addEventListener("touchend", F), document.addEventListener("touchcancel", F)) : (document.addEventListener("mousemove", z, { passive: !0 }), document.addEventListener("mouseup", B)));
14672
+ g(_e, 3) && (we = !0, i.value = !0, r.value = ye, U(ne, Pe, ae), a(Ce), document.removeEventListener("mousemove", re), document.removeEventListener("touchmove", re), document.removeEventListener("mouseup", Se), document.removeEventListener("touchend", Se), c.value ? (document.addEventListener("touchmove", V, { passive: !1 }), document.addEventListener("touchend", F), document.addEventListener("touchcancel", F)) : (document.addEventListener("mousemove", z, { passive: !0 }), document.addEventListener("mouseup", B)));
14670
14673
  }, Se = () => {
14671
14674
  we || (document.removeEventListener("mousemove", re), document.removeEventListener("touchmove", re), document.removeEventListener("mouseup", Se), document.removeEventListener("touchend", Se));
14672
14675
  };
@@ -14833,9 +14836,9 @@ const ab = /* @__PURE__ */ H({
14833
14836
  saveLayoutToLocalStorage: d,
14834
14837
  initializeWithBuiltInPositions: p
14835
14838
  } = Zg(), c = rb(i), m = () => c.calculateCellSize(t.value), _ = ib(m), {
14836
- draggedWidget: v,
14839
+ draggedWidget: g,
14837
14840
  previewPosition: w,
14838
- isDragging: g,
14841
+ isDragging: v,
14839
14842
  handleMouseDown: b,
14840
14843
  setGridContainer: E,
14841
14844
  isWidgetDisplaced: L,
@@ -14851,11 +14854,11 @@ const ab = /* @__PURE__ */ H({
14851
14854
  { deep: !0 }
14852
14855
  );
14853
14856
  const P = lb((B) => {
14854
- if (!B.length || g.value) return;
14857
+ if (!B.length || v.value) return;
14855
14858
  const F = t.value;
14856
14859
  F && c.handleContainerResize(F);
14857
14860
  }, { debounceMs: 300 }), M = (B) => {
14858
- const F = r.value.get(B.id), W = v.value?.id === B.id, Y = L(B.id) ? U(B.id) : void 0;
14861
+ const F = r.value.get(B.id), W = g.value?.id === B.id, Y = L(B.id) ? U(B.id) : void 0;
14859
14862
  return _.getWidgetStyles(B, F, W, Y);
14860
14863
  }, y = () => {
14861
14864
  a(o.value);
@@ -14885,22 +14888,22 @@ const ab = /* @__PURE__ */ H({
14885
14888
  ref: t,
14886
14889
  class: "vc-dashboard-grid__container"
14887
14890
  }, [
14888
- f(v) && f(w) ? (h(), S("div", {
14891
+ f(g) && f(w) ? (h(), S("div", {
14889
14892
  key: 0,
14890
14893
  class: q(["vc-dashboard-grid__position-preview", {
14891
- "is-animating": f(g)
14894
+ "is-animating": f(v)
14892
14895
  }]),
14893
- style: Ie(f(_).getPreviewStyles(f(v), f(w)))
14896
+ style: Ie(f(_).getPreviewStyles(f(g), f(w)))
14894
14897
  }, null, 6)) : D("", !0),
14895
14898
  (h(!0), S(se, null, me(f(o), (W) => (h(), j(ab, {
14896
14899
  key: W.id,
14897
14900
  widget: W,
14898
14901
  style: Ie(M(W)),
14899
- "is-dragging": f(v)?.id === W.id,
14902
+ "is-dragging": f(g)?.id === W.id,
14900
14903
  class: q({
14901
- "is-dragging": f(v)?.id === W.id,
14904
+ "is-dragging": f(g)?.id === W.id,
14902
14905
  "is-displaced": f(L)(W.id),
14903
- "is-animating": f(g) && (f(v)?.id === W.id || f(L)(W.id))
14906
+ "is-animating": f(v) && (f(g)?.id === W.id || f(L)(W.id))
14904
14907
  }),
14905
14908
  "data-id": W.id,
14906
14909
  onDrag: (Y) => f(b)(Y, W, Y.target)
@@ -14944,7 +14947,7 @@ const ab = /* @__PURE__ */ H({
14944
14947
  ])
14945
14948
  ]),
14946
14949
  C("div", vb, [
14947
- t.$isDesktop.value || !t.$slots["mobile-content"] ? De((h(), S("div", gb, [
14950
+ t.$isDesktop.value || !t.$slots["mobile-content"] ? Be((h(), S("div", gb, [
14948
14951
  J(t.$slots, "content")
14949
14952
  ])), [
14950
14953
  [r, t.loading]
@@ -15099,7 +15102,7 @@ const ab = /* @__PURE__ */ H({
15099
15102
  ), Ue(() => {
15100
15103
  o.value = t.options?.assets, u = Ve(t.options?.assets);
15101
15104
  });
15102
- async function v(y) {
15105
+ async function g(y) {
15103
15106
  if (t.options.assetsEditHandler && typeof t.options.assetsEditHandler == "function" && y.dragIndex !== y.dropIndex) {
15104
15107
  const k = y.value.map((N, z) => (N.sortOrder = z, N));
15105
15108
  o.value = await t.options.assetsEditHandler(k);
@@ -15108,7 +15111,7 @@ const ab = /* @__PURE__ */ H({
15108
15111
  function w() {
15109
15112
  a.value || (r.value = !0);
15110
15113
  }
15111
- function g() {
15114
+ function v() {
15112
15115
  a.value || (r.value = !1);
15113
15116
  }
15114
15117
  async function b(y) {
@@ -15191,10 +15194,10 @@ const ab = /* @__PURE__ */ H({
15191
15194
  onCollapse: k[2] || (k[2] = (oe) => y.$emit("collapse:blade"))
15192
15195
  }, {
15193
15196
  default: I(() => [
15194
- De((h(), S("div", {
15197
+ Be((h(), S("div", {
15195
15198
  class: "tw-relative tw-h-full tw-flex-1",
15196
15199
  onDragover: ce(w, ["prevent", "stop"]),
15197
- onDragleave: ce(g, ["prevent"]),
15200
+ onDragleave: ce(v, ["prevent"]),
15198
15201
  onDrop: ce(b, ["prevent", "stop"])
15199
15202
  }, [
15200
15203
  $(F, {
@@ -15210,7 +15213,7 @@ const ab = /* @__PURE__ */ H({
15210
15213
  multiselect: !a.value,
15211
15214
  class: "tw-h-full tw-w-full",
15212
15215
  onItemClick: A,
15213
- "onRow:reorder": v,
15216
+ "onRow:reorder": g,
15214
15217
  onSelectionChanged: P
15215
15218
  }, {
15216
15219
  empty: I(() => [
@@ -15346,123 +15349,123 @@ const ab = /* @__PURE__ */ H({
15346
15349
  classNames: a,
15347
15350
  ...u
15348
15351
  }), xb = ({ props: n, slots: e }) => ({
15349
- component: Be(yl),
15352
+ component: Le(yl),
15350
15353
  props: {
15351
15354
  ...Ke(n),
15352
15355
  ...n
15353
15356
  },
15354
15357
  slots: e
15355
15358
  }), aa = ({ props: n, slots: e }) => ({
15356
- component: Be(as),
15359
+ component: Le(as),
15357
15360
  props: {
15358
15361
  ...Ke(n),
15359
15362
  ...n
15360
15363
  },
15361
15364
  slots: e
15362
15365
  }), zb = ({ props: n, slots: e }) => ({
15363
- component: Be(hi),
15366
+ component: Le(hi),
15364
15367
  props: {
15365
15368
  ...Ke(n),
15366
15369
  ...n
15367
15370
  },
15368
15371
  slots: e
15369
15372
  }), ua = ({ props: n, slots: e }) => ({
15370
- component: Be(ot),
15373
+ component: Le(ot),
15371
15374
  props: {
15372
15375
  ...Ke(n),
15373
15376
  ...n
15374
15377
  },
15375
15378
  slots: e
15376
15379
  }), Fb = ({ props: n }) => ({
15377
- component: Be(us),
15380
+ component: Le(us),
15378
15381
  props: {
15379
15382
  ...Ke(n),
15380
15383
  ...n
15381
15384
  }
15382
15385
  }), Gb = ({ props: n }) => ({
15383
- component: Be(wl),
15386
+ component: Le(wl),
15384
15387
  props: {
15385
15388
  ...Ke(n),
15386
15389
  ...n
15387
15390
  }
15388
15391
  }), Wb = ({ props: n }) => ({
15389
- component: Be(lt),
15392
+ component: Le(lt),
15390
15393
  props: {
15391
15394
  ...Ke(n),
15392
15395
  ...n
15393
15396
  }
15394
15397
  }), Hb = ({ props: n }) => ({
15395
- component: Be(vi),
15398
+ component: Le(vi),
15396
15399
  props: {
15397
15400
  ...Ke(n),
15398
15401
  ...n
15399
15402
  }
15400
15403
  }), Jb = ({ props: n }) => ({
15401
- component: Be(fr),
15404
+ component: Le(fr),
15402
15405
  props: {
15403
15406
  ...Ke(n),
15404
15407
  ...n
15405
15408
  }
15406
15409
  }), qb = ({ props: n, slots: e }) => ({
15407
- component: Be(pi),
15410
+ component: Le(pi),
15408
15411
  props: {
15409
15412
  ...n,
15410
15413
  ...Ke(n)
15411
15414
  },
15412
15415
  slots: e
15413
15416
  }), Kb = ({ props: n }) => ({
15414
- component: Be(ka),
15417
+ component: Le(ka),
15415
15418
  props: {
15416
15419
  ...n,
15417
15420
  ...Ke(n)
15418
15421
  }
15419
15422
  }), Yb = ({ props: n }) => ({
15420
- component: Be(pl),
15423
+ component: Le(pl),
15421
15424
  props: {
15422
15425
  ...Ke(n),
15423
15426
  ...n
15424
15427
  }
15425
15428
  }), Xb = ({ props: n }) => ({
15426
- component: Be(Oa),
15429
+ component: Le(Oa),
15427
15430
  props: {
15428
15431
  ...Ke(n),
15429
15432
  ...n
15430
15433
  }
15431
15434
  }), ca = ({ props: n, slots: e }) => ({
15432
- component: Be(Xo),
15435
+ component: Le(Xo),
15433
15436
  props: {
15434
15437
  ...Ke(n),
15435
15438
  ...n
15436
15439
  },
15437
15440
  slots: e
15438
15441
  }), da = ({ props: n }) => ({
15439
- component: Be(_l),
15442
+ component: Le(_l),
15440
15443
  props: {
15441
15444
  ...Ke(n),
15442
15445
  ...n
15443
15446
  }
15444
15447
  }), Zb = ({ props: n, slots: e }) => ({
15445
- component: Be(et),
15448
+ component: Le(et),
15446
15449
  props: {
15447
15450
  ...Ke(n),
15448
15451
  ...n
15449
15452
  },
15450
15453
  slots: e
15451
15454
  }), pa = ({ props: n }) => ({
15452
- component: Be(mr),
15455
+ component: Le(mr),
15453
15456
  props: {
15454
15457
  ...Ke(n),
15455
15458
  ...n
15456
15459
  }
15457
15460
  }), Qb = ({ props: n, slots: e }) => ({
15458
- component: Be($a),
15461
+ component: Le($a),
15459
15462
  props: {
15460
15463
  ...Ke(n),
15461
15464
  ...n
15462
15465
  },
15463
15466
  slots: e
15464
15467
  }), ey = ({ props: n }) => ({
15465
- component: Be(vl),
15468
+ component: Le(vl),
15466
15469
  props: {
15467
15470
  ...Ke(n),
15468
15471
  ...n
@@ -15500,10 +15503,10 @@ const ab = /* @__PURE__ */ H({
15500
15503
  }
15501
15504
  if (y.component === "vc-input" && (M[y.field] = {
15502
15505
  fields: {
15503
- [y.field]: g(y)
15506
+ [y.field]: v(y)
15504
15507
  }
15505
15508
  }), y.component === "vc-switch") {
15506
- const k = y.data, N = f(n.scope)?.[k] ?? [], z = v(N, y);
15509
+ const k = y.data, N = f(n.scope)?.[k] ?? [], z = g(N, y);
15507
15510
  z && (M[y.field] = {
15508
15511
  fields: z
15509
15512
  });
@@ -15576,7 +15579,7 @@ const ab = /* @__PURE__ */ H({
15576
15579
  })
15577
15580
  };
15578
15581
  }
15579
- function v(A, P) {
15582
+ function g(A, P) {
15580
15583
  if (K(A) && K(A).length)
15581
15584
  return K(A).reduce(
15582
15585
  (M, y) => (M[y[P.optionValue]] = pa({
@@ -15609,7 +15612,7 @@ const ab = /* @__PURE__ */ H({
15609
15612
  {}
15610
15613
  );
15611
15614
  }
15612
- function g(A) {
15615
+ function v(A) {
15613
15616
  return ua({
15614
15617
  props: {
15615
15618
  type: "date",
@@ -15718,7 +15721,7 @@ const ab = /* @__PURE__ */ H({
15718
15721
  reset: U
15719
15722
  };
15720
15723
  }, fa = (n) => {
15721
- const e = Te({
15724
+ const e = $e({
15722
15725
  templateOverrideComponents: s(),
15723
15726
  mobileView: t("mobileTemplate"),
15724
15727
  notFound: t("notFoundTemplate"),
@@ -15837,7 +15840,7 @@ const ny = {
15837
15840
  },
15838
15841
  emits: ["parent:call", "close:blade", "collapse:blade", "expand:blade", "close:children"],
15839
15842
  setup(n, { expose: e, emit: t }) {
15840
- const s = n, { t: o } = ke({ useScope: "global" }), { showConfirmation: r } = to(), { debounce: i } = gi(), l = Yo(), a = t, u = O(() => s.model?.settings), d = O(() => u.value?.localizationPrefix.trim().toUpperCase()), p = O(() => o(u.value?.titleTemplate)), c = T(!1), m = T(), _ = He(), v = He(), w = He([]), g = T(), b = T(!1);
15843
+ const s = n, { t: o } = ke({ useScope: "global" }), { showConfirmation: r } = to(), { debounce: i } = gi(), l = Yo(), a = t, u = O(() => s.model?.settings), d = O(() => u.value?.localizationPrefix.trim().toUpperCase()), p = O(() => o(u.value?.titleTemplate)), c = T(!1), m = T(), _ = He(), g = He(), w = He([]), v = T(), b = T(!1);
15841
15844
  be(bt);
15842
15845
  const { setNavigationQuery: E, getNavigationQuery: L } = St(), U = s.composables && O(() => s.model?.content.find((te) => te.component === "vc-table")), A = U?.value?.columns?.map((te) => ({
15843
15846
  ...te,
@@ -15876,7 +15879,7 @@ const ny = {
15876
15879
  const te = K(B)?.tableConfigComputed;
15877
15880
  return te && "selectedIds" in te ? k.value?.filter((ge) => te.selectedIds?.includes(ge.id)) || [] : [];
15878
15881
  });
15879
- v.value = V.value.sort ?? "createdDate:DESC";
15882
+ g.value = V.value.sort ?? "createdDate:DESC";
15880
15883
  const Y = uo(() => K(B) ?? {}), oe = O(() => {
15881
15884
  if (U?.value?.filter?.disabled?.method) {
15882
15885
  const te = K(Y)?.[U?.value?.filter?.disabled.method];
@@ -15891,7 +15894,7 @@ const ny = {
15891
15894
  return Oe;
15892
15895
  }), Ce = s.composables && O(() => ({
15893
15896
  columns: ye(U?.value?.columns)
15894
- })), we = Te({
15897
+ })), we = $e({
15895
15898
  tableData: U,
15896
15899
  table: Ce
15897
15900
  }), {
@@ -15908,7 +15911,7 @@ const ny = {
15908
15911
  }), _e = T({
15909
15912
  load: M,
15910
15913
  remove: y,
15911
- items: O(() => g.value ?? []),
15914
+ items: O(() => v.value ?? []),
15912
15915
  loading: N,
15913
15916
  pagination: z,
15914
15917
  query: V,
@@ -15943,7 +15946,7 @@ const ny = {
15943
15946
  })) ?? [];
15944
15947
  Vs(async () => {
15945
15948
  s.composables && b.value && await M({
15946
- sort: v.value,
15949
+ sort: g.value,
15947
15950
  ...V.value,
15948
15951
  ...L()
15949
15952
  });
@@ -15961,13 +15964,13 @@ const ny = {
15961
15964
  _.value = f(te);
15962
15965
  },
15963
15966
  { immediate: !0 }
15964
- ), le(v, async (te) => {
15967
+ ), le(g, async (te) => {
15965
15968
  await M({ ...V.value, sort: te });
15966
15969
  }), le(k, (te) => {
15967
- g.value = te;
15970
+ v.value = te;
15968
15971
  });
15969
15972
  const ue = (te) => {
15970
- const ge = g.value?.[te.index];
15973
+ const ge = v.value?.[te.index];
15971
15974
  ge && (ge[te.event.field] = te.event.value);
15972
15975
  }, mt = async (te) => {
15973
15976
  const ge = U?.value?.columns?.find((Oe) => Oe.id === te.field);
@@ -16015,7 +16018,7 @@ const ny = {
16015
16018
  w.value = [], V.value.take && await M({
16016
16019
  ...V.value,
16017
16020
  skip: (z.value.currentPage - 1) * V.value.take,
16018
- sort: v.value
16021
+ sort: g.value
16019
16022
  });
16020
16023
  }, he = async (te) => {
16021
16024
  if (V.value.take) {
@@ -16035,17 +16038,17 @@ const ny = {
16035
16038
  }, de = (te) => {
16036
16039
  const ge = ["DESC", "ASC", ""];
16037
16040
  if (te.sortable)
16038
- if (v.value.split(":")[0] === te.id) {
16041
+ if (g.value.split(":")[0] === te.id) {
16039
16042
  const Oe = ge.findIndex((Fe) => {
16040
- const no = v.value.split(":")[1];
16043
+ const no = g.value.split(":")[1];
16041
16044
  return no ? Fe === no : Fe === "";
16042
16045
  });
16043
16046
  if (Oe !== -1) {
16044
16047
  const Fe = ge[(Oe + 1) % ge.length];
16045
- Fe === "" ? v.value = `${te.id}` : v.value = `${te.id}:${Fe}`;
16048
+ Fe === "" ? g.value = `${te.id}` : g.value = `${te.id}:${Fe}`;
16046
16049
  }
16047
16050
  } else
16048
- v.value = `${te.id}:${ge[0]}`;
16051
+ g.value = `${te.id}:${ge[0]}`;
16049
16052
  }, Re = i(async (te) => {
16050
16053
  m.value = te, await M({
16051
16054
  ...V.value,
@@ -16062,7 +16065,7 @@ const ny = {
16062
16065
  function Vt(te) {
16063
16066
  if (te.dragIndex !== te.dropIndex) {
16064
16067
  const ge = te.value.map((Oe, Fe) => (Oe.sortOrder = Fe, Oe));
16065
- g.value = ge;
16068
+ v.value = ge;
16066
16069
  }
16067
16070
  }
16068
16071
  async function Ut(te) {
@@ -16097,14 +16100,14 @@ const ny = {
16097
16100
  loading: N.value,
16098
16101
  columns: A ?? [],
16099
16102
  stateKey: P?.value ?? "",
16100
- items: g.value ?? [],
16103
+ items: v.value ?? [],
16101
16104
  multiselect: U?.value?.multiselect,
16102
16105
  header: U?.value?.header,
16103
16106
  itemActionBuilder: tt,
16104
16107
  editing: F.value,
16105
16108
  enableItemActions: !!U?.value?.actions,
16106
16109
  footer: U?.value?.footer,
16107
- sort: v.value,
16110
+ sort: g.value,
16108
16111
  pages: z.value?.pages,
16109
16112
  currentPage: z.value?.currentPage,
16110
16113
  searchValue: m.value,
@@ -16804,7 +16807,7 @@ const hy = {
16804
16807
  };
16805
16808
  function l(d) {
16806
16809
  s({
16807
- blade: Be($l),
16810
+ blade: Le($l),
16808
16811
  options: {
16809
16812
  asset: d,
16810
16813
  assetEditHandler: i.edit,
@@ -17345,7 +17348,7 @@ function Bo({
17345
17348
  updateFormData: i
17346
17349
  }) {
17347
17350
  if (!n) throw new Error("There is no controlSchema provided");
17348
- const { t: l } = Le.global, a = n.id, u = Ae("rules", n) && n.rules || void 0, d = Ae("placeholder", n) && n.placeholder || void 0, p = Ae("rules", n) && n.rules?.required, c = Ae("property", n) && n.property && gt(n.property, t), _ = (Ae("property", n) && n.property && s.scope && gt(n.property, s.scope)) ?? c ?? void 0, v = Ae("tooltip", n) && n.tooltip || void 0, w = Ae("multilanguage", n) && n.multilanguage, g = Ae("label", n) && n.label ? f(an(n.label, t)) : void 0, b = Ae("hint", n) && n.hint ? (s.scope && f(an(n.hint, s.scope))) ?? f(an(n.hint, t)) ?? void 0 : void 0, E = s.scope && Ae("disabled", s.scope) && s.scope.disabled || Ae("disabled", n) && n.disabled && Ry(n.disabled, s), L = (k) => {
17351
+ const { t: l } = De.global, a = n.id, u = Ae("rules", n) && n.rules || void 0, d = Ae("placeholder", n) && n.placeholder || void 0, p = Ae("rules", n) && n.rules?.required, c = Ae("property", n) && n.property && gt(n.property, t), _ = (Ae("property", n) && n.property && s.scope && gt(n.property, s.scope)) ?? c ?? void 0, g = Ae("tooltip", n) && n.tooltip || void 0, w = Ae("multilanguage", n) && n.multilanguage, v = Ae("label", n) && n.label ? f(an(n.label, t)) : void 0, b = Ae("hint", n) && n.hint ? (s.scope && f(an(n.hint, s.scope))) ?? f(an(n.hint, t)) ?? void 0 : void 0, E = s.scope && Ae("disabled", s.scope) && s.scope.disabled || Ae("disabled", n) && n.disabled && Ry(n.disabled, s), L = (k) => {
17349
17352
  if (Ae("onBlur", n) && n.onBlur) {
17350
17353
  const N = n.onBlur.method;
17351
17354
  N && s.scope?.[N] && typeof s.scope[N] == "function" && s.scope[N]({
@@ -17364,9 +17367,9 @@ function Bo({
17364
17367
  const N = n.update.method;
17365
17368
  Ae(N, s.scope) && typeof s.scope[N] == "function" && await s.scope[N](k, n.property, pe(t));
17366
17369
  }
17367
- }, A = Te({
17370
+ }, A = $e({
17368
17371
  key: `${e}`,
17369
- label: O(() => typeof g < "u" ? l(g) : void 0),
17372
+ label: O(() => typeof v < "u" ? l(v) : void 0),
17370
17373
  hint: O(() => typeof b < "u" ? l(b) : void 0),
17371
17374
  disabled: E,
17372
17375
  onBlur: L,
@@ -17376,7 +17379,7 @@ function Bo({
17376
17379
  required: p,
17377
17380
  modelValue: _,
17378
17381
  "onUpdate:modelValue": U,
17379
- tooltip: O(() => typeof v < "u" ? l(v) : void 0),
17382
+ tooltip: O(() => typeof g < "u" ? l(g) : void 0),
17380
17383
  multilanguage: w,
17381
17384
  "data-test-id": n.id,
17382
17385
  classNames: "horizontalSeparator" in n && n.horizontalSeparator ? "tw-border-b tw-border-solid tw-border-b-[var(--neutrals-200)] tw-mb-[5px] tw-pb-[21px]" : ""
@@ -17443,7 +17446,7 @@ const Ny = {
17443
17446
  props: Ny,
17444
17447
  emits: ["update:modelValue"],
17445
17448
  setup(n, e) {
17446
- const { currentLocale: t } = Ze(n), s = Te({}), { hasAccess: o } = Tt();
17449
+ const { currentLocale: t } = Ze(n), s = $e({}), { hasAccess: o } = Tt();
17447
17450
  le(
17448
17451
  () => n.modelValue,
17449
17452
  (i) => {
@@ -17494,7 +17497,7 @@ const Ny = {
17494
17497
  if (typeof s.composables?.[s.model?.settings?.composable ?? ""] > "u")
17495
17498
  throw new Error(`Composable ( ${s.model?.settings?.composable} ) is not defined`);
17496
17499
  const d = O(() => s.model?.settings);
17497
- let { loading: p, item: c, validationState: m, scope: _, load: v, remove: w, saveChanges: g, bladeTitle: b } = s.composables ? s.composables?.[s.model?.settings?.composable ?? ""]({ emit: o, props: s, mounted: oi() }) : {
17500
+ let { loading: p, item: c, validationState: m, scope: _, load: g, remove: w, saveChanges: v, bladeTitle: b } = s.composables ? s.composables?.[s.model?.settings?.composable ?? ""]({ emit: o, props: s, mounted: oi() }) : {
17498
17501
  loading: !0,
17499
17502
  item: void 0,
17500
17503
  validationState: void 0,
@@ -17506,12 +17509,12 @@ const Ny = {
17506
17509
  };
17507
17510
  if (s.mixinFn?.length) {
17508
17511
  const re = (s.mixinFn?.map(
17509
- (Se) => Se({ loading: p, item: c, validationState: m, scope: _, load: v, remove: w, saveChanges: g, bladeTitle: b })
17512
+ (Se) => Se({ loading: p, item: c, validationState: m, scope: _, load: g, remove: w, saveChanges: v, bladeTitle: b })
17510
17513
  )).reduce((Se, Je) => ({
17511
17514
  ...Se,
17512
17515
  ...Je
17513
17516
  }), {});
17514
- p = re.loading ?? p, c = re.item ?? c, m = re.validationState ?? m, _ = re.scope ?? _, v = re.load ?? v, w = re.remove ?? w, g = re.saveChanges ?? g, b = re.bladeTitle ?? b, a.value = !0;
17517
+ p = re.loading ?? p, c = re.item ?? c, m = re.validationState ?? m, _ = re.scope ?? _, g = re.load ?? g, w = re.remove ?? w, v = re.saveChanges ?? v, b = re.bladeTitle ?? b, a.value = !0;
17515
17518
  } else
17516
17519
  a.value = !0;
17517
17520
  const E = Yo(), { onBeforeClose: L } = St(), U = T(), A = T(!1), P = T(), M = O(() => !K("disabled" in K(_ || {}) && K(_ || {}).disabled)), y = uo(() => K(_) ?? {}), { moduleNotifications: k, markAsRead: N } = Zt(d.value?.pushNotificationType);
@@ -17543,16 +17546,16 @@ const Ny = {
17543
17546
  item: c,
17544
17547
  validationState: m,
17545
17548
  scope: _,
17546
- load: v,
17549
+ load: g,
17547
17550
  remove: w,
17548
- saveChanges: g,
17551
+ saveChanges: v,
17549
17552
  bladeTitle: b,
17550
17553
  settings: d
17551
17554
  }), W = O(() => {
17552
17555
  if (s.model && "status" in s.model.settings && s.model.settings.status) {
17553
17556
  if (!("component" in s.model.settings.status))
17554
17557
  throw new Error(`Component is required in status: ${s.model.settings.status}`);
17555
- return Te(Q(Z(s.model.settings.status.component), { context: F.value }));
17558
+ return $e(Q(Z(s.model.settings.status.component), { context: F.value }));
17556
17559
  }
17557
17560
  return null;
17558
17561
  }), Y = T();
@@ -17623,20 +17626,20 @@ const Ny = {
17623
17626
  };
17624
17627
  }
17625
17628
  return {};
17626
- }), ne = Te({
17629
+ }), ne = $e({
17627
17630
  status: W,
17628
17631
  backButton: O(() => {
17629
17632
  if (K(y)?.backButton)
17630
17633
  return K(y).backButton;
17631
17634
  })
17632
- }), ye = Te({
17635
+ }), ye = $e({
17633
17636
  multilanguage: oe.component
17634
17637
  }), Ce = (s.composables && ma({
17635
17638
  defaultToolbarSchema: d.value?.toolbar ?? [],
17636
17639
  defaultToolbarBindings: {
17637
17640
  saveChanges: {
17638
17641
  async clickHandler() {
17639
- c.value && (await g(c.value), m.value.resetValidationState(), o("parent:call", {
17642
+ c.value && (await v(c.value), m.value.resetValidationState(), o("parent:call", {
17640
17643
  method: "reload"
17641
17644
  }), o("parent:call", {
17642
17645
  method: "updateActiveWidgetCount"
@@ -17671,7 +17674,7 @@ const Ny = {
17671
17674
  X && E.registerWidget(
17672
17675
  {
17673
17676
  id: X,
17674
- component: Be(_e),
17677
+ component: Le(_e),
17675
17678
  props: {
17676
17679
  modelValue: F
17677
17680
  },
@@ -17693,7 +17696,7 @@ const Ny = {
17693
17696
  P.value?.updateActiveWidgetCount && typeof P.value?.updateActiveWidgetCount == "function" && await P.value.updateActiveWidgetCount();
17694
17697
  }
17695
17698
  async function Pe() {
17696
- await v({ id: f(s.param) }), await Ye(() => {
17699
+ await g({ id: f(s.param) }), await Ye(() => {
17697
17700
  A.value = !0;
17698
17701
  });
17699
17702
  }
@@ -17718,7 +17721,7 @@ const Ny = {
17718
17721
  validationState: m
17719
17722
  }), (ae, re) => {
17720
17723
  const Se = Z("VcForm"), Je = Z("VcContainer"), _e = Z("VcBlade"), X = Vo("loading");
17721
- return ae.composables ? D("", !0) : De((h(), j(_e, {
17724
+ return ae.composables ? D("", !0) : Be((h(), j(_e, {
17722
17725
  key: 0,
17723
17726
  expanded: ae.expanded,
17724
17727
  closable: ae.closable,
@@ -17798,8 +17801,8 @@ const Ny = {
17798
17801
  for (const c of u)
17799
17802
  if (Array.isArray(d)) {
17800
17803
  const m = [...d];
17801
- d = d.find((v) => Object.entries(v).some(([w, g]) => w === c || g === c));
17802
- const _ = m.findIndex((v) => v === d);
17804
+ d = d.find((g) => Object.entries(g).some(([w, v]) => w === c || v === c));
17805
+ const _ = m.findIndex((g) => g === d);
17803
17806
  p.push(_);
17804
17807
  } else
17805
17808
  d && (d = d[c], p.push(c));
@@ -17859,16 +17862,16 @@ const Wy = (n) => function() {
17859
17862
  }), a = T(), u = T(), d = T(!1), p = xo(), c = O(() => !d.value || !p.value), { loading: m, action: _ } = Rt(async (y) => {
17860
17863
  const k = await n.load(y);
17861
17864
  k && (a.value = k, a.value && P(a.value));
17862
- }), { loading: v, action: w } = Rt(async (y) => {
17865
+ }), { loading: g, action: w } = Rt(async (y) => {
17863
17866
  if (L.value.valid) {
17864
17867
  const k = await n.saveChanges?.(y);
17865
17868
  d.value = !1;
17866
17869
  const N = y?.id ?? k?.id;
17867
17870
  if (N && await _({ id: N }), k) return k;
17868
17871
  } else throw new Error("Form is not valid");
17869
- }), { loading: g, action: b } = Rt(async (y) => {
17872
+ }), { loading: v, action: b } = Rt(async (y) => {
17870
17873
  await n.remove?.(y);
17871
- }), E = Ko(m, v, g), L = O(
17874
+ }), E = Ko(m, g, v), L = O(
17872
17875
  () => ({
17873
17876
  /**
17874
17877
  * @deprecated `dirty` - use `modified` instead
@@ -18083,7 +18086,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18083
18086
  },
18084
18087
  setup(n) {
18085
18088
  go({ validateOnMount: !1 });
18086
- const e = n, { validateToken: t, validatePassword: s, resetPasswordByToken: o, signIn: r, loading: i } = ct(), l = Lt(), { t: a } = ke({ useScope: "global" }), u = xo(), d = Cn(), { uiSettings: p, loading: c } = ns(), m = Te({
18089
+ const e = n, { validateToken: t, validatePassword: s, resetPasswordByToken: o, signIn: r, loading: i } = ct(), l = Lt(), { t: a } = ke({ useScope: "global" }), u = xo(), d = Cn(), { uiSettings: p, loading: c } = ns(), m = $e({
18087
18090
  isValid: !1,
18088
18091
  tokenIsValid: !1,
18089
18092
  errors: [],
@@ -18093,7 +18096,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18093
18096
  Ue(async () => {
18094
18097
  m.tokenIsValid = await t(e.userId, e.token), m.tokenIsValid || m.errors.push("Invalid-token");
18095
18098
  });
18096
- const v = async () => {
18099
+ const g = async () => {
18097
18100
  if (m.tokenIsValid) {
18098
18101
  const b = (await s(m.password)).errors;
18099
18102
  m.errors = b?.map((E) => E.code), m.confirmPassword && m.confirmPassword !== m.password && m.errors.push("Repeat-password"), m.isValid = m.errors.length == 0 && !_.value;
@@ -18101,7 +18104,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18101
18104
  }, w = async () => {
18102
18105
  const b = await o(e.userId, m.password, e.token);
18103
18106
  b.succeeded ? (await r(e.userName, m.password)).succeeded && l.push("/") : m.errors = b.errors;
18104
- }, g = O(() => ({
18107
+ }, v = O(() => ({
18105
18108
  logo: c.value ? "" : p.value?.logo || e.logo
18106
18109
  }));
18107
18110
  return (b, E) => {
@@ -18112,7 +18115,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18112
18115
  active: ""
18113
18116
  })) : D("", !0),
18114
18117
  $(y, {
18115
- logo: g.value.logo,
18118
+ logo: v.value.logo,
18116
18119
  background: b.background,
18117
18120
  title: f(a)("INVITATION.TITLE")
18118
18121
  }, {
@@ -18139,7 +18142,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18139
18142
  "onUpdate:modelValue": [
18140
18143
  E[0] || (E[0] = (B) => m.password = B),
18141
18144
  (B) => {
18142
- z(B), v();
18145
+ z(B), g();
18143
18146
  }
18144
18147
  ],
18145
18148
  class: "vc-invite-page__input",
@@ -18167,7 +18170,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18167
18170
  "onUpdate:modelValue": [
18168
18171
  E[1] || (E[1] = (B) => m.confirmPassword = B),
18169
18172
  (B) => {
18170
- z(B), v();
18173
+ z(B), g();
18171
18174
  }
18172
18175
  ],
18173
18176
  class: "vc-invite-page__input--small",
@@ -18178,7 +18181,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18178
18181
  error: !!V.length,
18179
18182
  "error-message": N,
18180
18183
  required: "",
18181
- onKeyup: $e(w, ["enter"])
18184
+ onKeyup: Te(w, ["enter"])
18182
18185
  }), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
18183
18186
  ]),
18184
18187
  _: 1
@@ -18237,7 +18240,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18237
18240
  setup(n) {
18238
18241
  const e = n, t = Lt(), { validateField: s } = go({ validateOnMount: !1 }), { uiSettings: o, loading: r } = ns(), { t: i } = ke({ useScope: "global" });
18239
18242
  let l;
18240
- const a = T({ succeeded: !0 }), u = T({ succeeded: !0 }), d = T(!1), { signIn: p, loading: c, user: m } = ct(), { getProviders: _ } = nr(), v = T(!0), w = xo(), g = Cn(), b = T(!1), E = T();
18243
+ const a = T({ succeeded: !0 }), u = T({ succeeded: !0 }), d = T(!1), { signIn: p, loading: c, user: m } = ct(), { getProviders: _ } = nr(), g = T(!0), w = xo(), v = Cn(), b = T(!1), E = T();
18241
18244
  let L;
18242
18245
  const U = be(vr), A = O(
18243
18246
  () => U?.getOutboundExtensions("login-after-form") || []
@@ -18251,10 +18254,10 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18251
18254
  });
18252
18255
  const P = O(() => ({
18253
18256
  logo: r.value ? "" : o.value?.logo || e.logo
18254
- })), M = O(() => !g.value || !w.value), y = Te({
18257
+ })), M = O(() => !v.value || !w.value), y = $e({
18255
18258
  username: "",
18256
18259
  password: ""
18257
- }), k = Te({
18260
+ }), k = $e({
18258
18261
  loginOrEmail: ""
18259
18262
  }), N = async () => {
18260
18263
  if (w.value)
@@ -18273,7 +18276,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18273
18276
  b.value = !1;
18274
18277
  }
18275
18278
  }, V = () => {
18276
- v.value = !v.value, a.value.error = "", v.value && (d.value = !1, k.loginOrEmail = "", u.value.error = "");
18279
+ g.value = !g.value, a.value.error = "", g.value && (d.value = !1, k.loginOrEmail = "", u.value.error = "");
18277
18280
  };
18278
18281
  return console.debug("Init login-page"), (B, F) => {
18279
18282
  const W = Z("VcInput"), Y = Z("VcButton"), oe = Z("vc-button"), ne = Z("VcForm"), ye = Z("VcHint"), Ce = Z("VcLoginForm");
@@ -18284,7 +18287,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18284
18287
  class: "vc-login-page"
18285
18288
  }, {
18286
18289
  default: I(() => [
18287
- v.value ? (h(), S(se, { key: 0 }, [
18290
+ g.value ? (h(), S(se, { key: 0 }, [
18288
18291
  $(ne, {
18289
18292
  onSubmit: ce(N, ["prevent"])
18290
18293
  }, {
@@ -18334,7 +18337,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18334
18337
  required: "",
18335
18338
  error: !!ae.length,
18336
18339
  "error-message": we,
18337
- onKeyup: $e(N, ["enter"])
18340
+ onKeyup: Te(N, ["enter"])
18338
18341
  }, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
18339
18342
  ]),
18340
18343
  _: 1
@@ -18486,7 +18489,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18486
18489
  background: { default: "/assets/background.jpg" }
18487
18490
  },
18488
18491
  setup(n) {
18489
- const e = n, { validateToken: t, validatePassword: s, resetPasswordByToken: o, signIn: r, loading: i } = ct(), l = Lt(), { t: a } = ke({ useScope: "global" }), { validate: u } = go({ validateOnMount: !1 }), { uiSettings: d, loading: p } = ns(), c = Te({
18492
+ const e = n, { validateToken: t, validatePassword: s, resetPasswordByToken: o, signIn: r, loading: i } = ct(), l = Lt(), { t: a } = ke({ useScope: "global" }), { validate: u } = go({ validateOnMount: !1 }), { uiSettings: d, loading: p } = ns(), c = $e({
18490
18493
  isValid: !1,
18491
18494
  tokenIsValid: !1,
18492
18495
  errors: [],
@@ -18498,12 +18501,12 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18498
18501
  });
18499
18502
  const m = O(() => i.value || !c.password || !c.confirmPassword || !c.isValid && c.tokenIsValid), _ = async () => {
18500
18503
  if (c.tokenIsValid) {
18501
- const g = (await s(c.password)).errors;
18502
- c.errors = g?.map((b) => b.code), c.confirmPassword !== c.password && c.errors.push("Repeat-password"), c.isValid = c.errors.length == 0;
18504
+ const v = (await s(c.password)).errors;
18505
+ c.errors = v?.map((b) => b.code), c.confirmPassword !== c.password && c.errors.push("Repeat-password"), c.isValid = c.errors.length == 0;
18503
18506
  }
18504
- }, v = async () => {
18505
- const { valid: g } = await u();
18506
- if (g) {
18507
+ }, g = async () => {
18508
+ const { valid: v } = await u();
18509
+ if (v) {
18507
18510
  const b = await o(e.userId, c.password, e.token);
18508
18511
  if (b.succeeded) {
18509
18512
  const E = await r(e.userName, c.password);
@@ -18514,7 +18517,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18514
18517
  }, w = O(() => ({
18515
18518
  logo: p.value ? "" : d.value?.logo || e.logo
18516
18519
  }));
18517
- return (g, b) => {
18520
+ return (v, b) => {
18518
18521
  const E = Z("VcLoading"), L = Z("VcInput"), U = Z("vc-button"), A = Z("VcHint"), P = Z("VcForm"), M = Z("VcLoginForm");
18519
18522
  return h(), S("div", aw, [
18520
18523
  f(i) ? (h(), j(E, {
@@ -18523,7 +18526,7 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18523
18526
  })) : D("", !0),
18524
18527
  $(M, {
18525
18528
  logo: w.value.logo,
18526
- background: g.background,
18529
+ background: v.background,
18527
18530
  title: f(a)("PASSWORDRESET.TITLE"),
18528
18531
  class: "vc-reset-password-page__login-form"
18529
18532
  }, {
@@ -18582,17 +18585,17 @@ const Ky = { class: "vc-invite-page" }, Yy = { class: "vc-invite-page__button-co
18582
18585
  required: "",
18583
18586
  error: !!z.length,
18584
18587
  "error-message": k,
18585
- onKeyup: $e(v, ["enter"])
18588
+ onKeyup: Te(g, ["enter"])
18586
18589
  }), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
18587
18590
  ]),
18588
18591
  _: 1
18589
18592
  }, 8, ["label", "model-value"]),
18590
18593
  C("div", uw, [
18591
- g.$isDesktop.value ? (h(), S("span", cw)) : D("", !0),
18594
+ v.$isDesktop.value ? (h(), S("span", cw)) : D("", !0),
18592
18595
  $(U, {
18593
18596
  disabled: m.value,
18594
18597
  class: "vc-reset-password-page__submit-button",
18595
- onClick: v
18598
+ onClick: g
18596
18599
  }, {
18597
18600
  default: I(() => [
18598
18601
  ee(x(f(a)("PASSWORDRESET.SAVE_PASSWORD")), 1)
@@ -18892,7 +18895,7 @@ const $w = {
18892
18895
  expanded: u.expanded
18893
18896
  }, {
18894
18897
  default: I(() => [
18895
- De((h(), j(Ne(f(t)?.component), fe(f(t)?.props || {}, { onClose: a }), null, 16)), [
18898
+ Be((h(), j(Ne(f(t)?.component), fe(f(t)?.props || {}, { onClose: a }), null, 16)), [
18896
18899
  [f(Xt), [a, { ignore: [".app-bar-mobile-actions__button"] }]]
18897
18900
  ])
18898
18901
  ]),
@@ -19141,7 +19144,7 @@ const $w = {
19141
19144
  s(), e.value.isMenuOpen || a();
19142
19145
  }, _ = (b) => {
19143
19146
  b || (o(), a());
19144
- }, v = (b) => {
19147
+ }, g = (b) => {
19145
19148
  r(b);
19146
19149
  }, w = O(() => ({
19147
19150
  "vc-app-bar--mobile": d.value,
@@ -19149,7 +19152,7 @@ const $w = {
19149
19152
  "vc-app-bar--collapsed": !e.value.isSidebarExpanded && p.value,
19150
19153
  "vc-app-bar--hover-expanded": p.value && i.value,
19151
19154
  "vc-app-bar--hover-collapsed": p.value && !e.value.isSidebarExpanded && !i.value
19152
- })), g = O(() => ({
19155
+ })), v = O(() => ({
19153
19156
  "vc-app-bar__wrap--mobile-expanded": d.value && e.value.isSidebarExpanded,
19154
19157
  "vc-app-bar__wrap--desktop-collapsed": p.value && !e.value.isSidebarExpanded,
19155
19158
  "vc-app-bar__wrap--desktop-expanded": p.value && e.value.isSidebarExpanded,
@@ -19165,11 +19168,11 @@ const $w = {
19165
19168
  }, null, 2)) : D("", !0),
19166
19169
  C("div", {
19167
19170
  class: q(["vc-app-bar", w.value]),
19168
- onMouseenter: E[4] || (E[4] = (L) => b.$isDesktop.value && !f(e).isSidebarExpanded && v(!0)),
19169
- onMouseleave: E[5] || (E[5] = (L) => b.$isDesktop.value && !f(e).isSidebarExpanded && v(!1))
19171
+ onMouseenter: E[4] || (E[4] = (L) => b.$isDesktop.value && !f(e).isSidebarExpanded && g(!0)),
19172
+ onMouseleave: E[5] || (E[5] = (L) => b.$isDesktop.value && !f(e).isSidebarExpanded && g(!1))
19170
19173
  }, [
19171
19174
  C("div", {
19172
- class: q(["vc-app-bar__wrap", g.value])
19175
+ class: q(["vc-app-bar__wrap", v.value])
19173
19176
  }, [
19174
19177
  b.$isMobile.value ? D("", !0) : (h(), S("div", {
19175
19178
  key: 0,
@@ -19339,7 +19342,7 @@ const $w = {
19339
19342
  !p.expand && !p.icon ? (h(), S("div", Zw, x(d(p.title)), 1)) : D("", !0),
19340
19343
  $(rt, { name: "opacity" }, {
19341
19344
  default: I(() => [
19342
- De(C("div", Qw, [
19345
+ Be(C("div", Qw, [
19343
19346
  C("div", e0, x(p.title), 1),
19344
19347
  p.children?.length && p.expand ? (h(), S("div", t0, [
19345
19348
  $(f(ie), {
@@ -19367,36 +19370,36 @@ const $w = {
19367
19370
  }
19368
19371
  ]), 1024)
19369
19372
  ]),
19370
- De(C("div", {
19373
+ Be(C("div", {
19371
19374
  class: q(["vc-app-menu-link__child", {
19372
19375
  "vc-app-menu-link__child-collapsed": !p.expand
19373
19376
  }])
19374
19377
  }, [
19375
- (h(!0), S(se, null, me(p.children, (v, w) => (h(), j(m, { key: w }, Ee({
19378
+ (h(!0), S(se, null, me(p.children, (g, w) => (h(), j(m, { key: w }, Ee({
19376
19379
  default: I(() => [
19377
- p.$hasAccess(v.permissions) && v.url ? (h(), j(_, {
19380
+ p.$hasAccess(g.permissions) && g.url ? (h(), j(_, {
19378
19381
  key: 0,
19379
- to: v.url,
19382
+ to: g.url,
19380
19383
  custom: ""
19381
19384
  }, {
19382
19385
  default: I(() => [
19383
19386
  C("div", {
19384
19387
  class: "vc-app-menu-link__child-item-link",
19385
- "data-test-id": v.routeId,
19386
- onClick: (g) => p.$emit("onClick", v)
19388
+ "data-test-id": g.routeId,
19389
+ onClick: (v) => p.$emit("onClick", g)
19387
19390
  }, [
19388
19391
  (h(), S("div", {
19389
19392
  key: w,
19390
19393
  class: q([
19391
19394
  {
19392
- "vc-app-menu-link__child-item_active": u(v.url ?? ""),
19395
+ "vc-app-menu-link__child-item_active": u(g.url ?? ""),
19393
19396
  "vc-app-menu-link__child-item_collapsed": !p.expand,
19394
19397
  "vc-app-menu-link__child-item_expanded": p.expand
19395
19398
  },
19396
19399
  "vc-app-menu-link__child-item"
19397
19400
  ])
19398
19401
  }, [
19399
- v.icon ? (h(), S("div", {
19402
+ g.icon ? (h(), S("div", {
19400
19403
  key: 0,
19401
19404
  class: q(["vc-app-menu-link__icon vc-app-menu-link__icon--child", {
19402
19405
  "vc-app-menu-link__icon-collapsed": !p.expand
@@ -19404,18 +19407,18 @@ const $w = {
19404
19407
  }, [
19405
19408
  $(f(ie), {
19406
19409
  class: "vc-app-menu-link__icon-content",
19407
- icon: v.icon,
19410
+ icon: g.icon,
19408
19411
  size: "m"
19409
19412
  }, null, 8, ["icon"])
19410
19413
  ], 2)) : D("", !0),
19411
- !p.expand && !v.icon ? (h(), S("div", n0, x(d(v.title)), 1)) : D("", !0),
19414
+ !p.expand && !g.icon ? (h(), S("div", n0, x(d(g.title)), 1)) : D("", !0),
19412
19415
  $(rt, { name: "opacity" }, {
19413
19416
  default: I(() => [
19414
- De(C("p", {
19417
+ Be(C("p", {
19415
19418
  class: q(["vc-app-menu-link__child-item-title", {
19416
- "vc-app-menu-link__child-item-title--no-icon": !v.icon
19419
+ "vc-app-menu-link__child-item-title--no-icon": !g.icon
19417
19420
  }])
19418
- }, x(v.title), 3), [
19421
+ }, x(g.title), 3), [
19419
19422
  [wt, p.expand]
19420
19423
  ])
19421
19424
  ]),
@@ -19432,7 +19435,7 @@ const $w = {
19432
19435
  p.expand ? void 0 : {
19433
19436
  name: "tooltip",
19434
19437
  fn: I(() => [
19435
- ee(x(v.title), 1)
19438
+ ee(x(g.title), 1)
19436
19439
  ]),
19437
19440
  key: "0"
19438
19441
  }
@@ -19615,7 +19618,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
19615
19618
  setup(n, { emit: e }) {
19616
19619
  const t = n;
19617
19620
  console.debug("vc-app: Init vc-app");
19618
- const s = be("bladeRoutes"), o = be(As, void 0), r = T(t.isReady), i = Lt(), { openBlade: l, closeBlade: a, resolveBladeByName: u, blades: d, goToRoot: p } = St(), { appsList: c, switchApp: m, getApps: _ } = Hl(), { loadFromHistory: v, notifications: w } = Zt(), g = Mo(), { isAuthenticated: b } = ct(), E = i.getRoutes(), { register: L } = ll(), { register: U } = rl(), A = O(() => w.value.some((k) => k.isNew));
19621
+ const s = be("bladeRoutes"), o = be(As, void 0), r = T(t.isReady), i = Lt(), { openBlade: l, closeBlade: a, resolveBladeByName: u, blades: d, goToRoot: p } = St(), { appsList: c, switchApp: m, getApps: _ } = Hl(), { loadFromHistory: g, notifications: w } = Zt(), v = Mo(), { isAuthenticated: b } = ct(), E = i.getRoutes(), { register: L } = ll(), { register: U } = rl(), A = O(() => w.value.some((k) => k.isNew));
19619
19622
  ke({ useScope: "global" });
19620
19623
  const { register: P } = kw();
19621
19624
  L({
@@ -19657,7 +19660,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
19657
19660
  ) : console.error(`Blade component with routeId '${k.routeId}' not found.`);
19658
19661
  } else if (!k.routeId && k.url) {
19659
19662
  const N = E.find((z) => "/" + z.path.split("/").filter((V) => V !== "")[1] === k.url || z.path === k.url);
19660
- typeof N > "u" ? y() : i.push({ name: N?.name, params: g.params });
19663
+ typeof N > "u" ? y() : i.push({ name: N?.name, params: v.params });
19661
19664
  }
19662
19665
  }, y = async () => {
19663
19666
  await a(1) || i.push(p());
@@ -19665,7 +19668,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
19665
19668
  return Cu(
19666
19669
  () => t.isReady,
19667
19670
  async (k) => {
19668
- r.value = k, b.value && k && (await v(), await _());
19671
+ r.value = k, b.value && k && (await g(), await _());
19669
19672
  }
19670
19673
  ), le(b, (k) => {
19671
19674
  r.value = k;
@@ -19971,7 +19974,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
19971
19974
  ], 2),
19972
19975
  $(rt, { name: "fade" }, {
19973
19976
  default: I(() => [
19974
- De(C("div", {
19977
+ Be(C("div", {
19975
19978
  class: "vc-blade-toolbar-mobile__overlay",
19976
19979
  onClick: s
19977
19980
  }, null, 512), [
@@ -19982,7 +19985,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
19982
19985
  }),
19983
19986
  $(rt, { name: "menu" }, {
19984
19987
  default: I(() => [
19985
- De(C("div", A0, [
19988
+ Be(C("div", A0, [
19986
19989
  (h(!0), S(se, null, me(r.items.slice(1), (l) => (h(), j(Qr, fe({
19987
19990
  key: l.id
19988
19991
  }, { ref_for: !0 }, l, {
@@ -20111,11 +20114,11 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20111
20114
  ), d = O(() => (u.value?.id ?? Ot).toLowerCase()), p = be(
20112
20115
  "isMobile",
20113
20116
  O(() => !1)
20114
- ), c = Te(/* @__PURE__ */ new Map());
20115
- function m(g, b) {
20116
- const E = g.id || `${N0}${d.value}_${b}`;
20117
+ ), c = $e(/* @__PURE__ */ new Map());
20118
+ function m(v, b) {
20119
+ const E = v.id || `${N0}${d.value}_${b}`;
20117
20120
  return {
20118
- ...g,
20121
+ ...v,
20119
20122
  id: E,
20120
20123
  bladeId: d.value,
20121
20124
  priority: b * -1
@@ -20138,15 +20141,15 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20138
20141
  }
20139
20142
  });
20140
20143
  }
20141
- function v() {
20142
- for (const g of c.values())
20143
- i(g);
20144
+ function g() {
20145
+ for (const v of c.values())
20146
+ i(v);
20144
20147
  c.clear();
20145
20148
  }
20146
20149
  const w = O(() => l().filter(
20147
- (g) => o(g.permissions) && (typeof g.isVisible == "function" ? g.isVisible(u.value) : g.isVisible === void 0 || g.isVisible) && (p.value ? !g.disabled : !0)
20148
- ).sort((g, b) => {
20149
- const E = g.priority ?? 0;
20150
+ (v) => o(v.permissions) && (typeof v.isVisible == "function" ? v.isVisible(u.value) : v.isVisible === void 0 || v.isVisible) && (p.value ? !v.disabled : !0)
20151
+ ).sort((v, b) => {
20152
+ const E = v.priority ?? 0;
20150
20153
  return (b.priority ?? 0) - E;
20151
20154
  }));
20152
20155
  return le(
@@ -20156,10 +20159,10 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20156
20159
  },
20157
20160
  { deep: !0, immediate: !0 }
20158
20161
  ), It(() => {
20159
- v();
20160
- }), (g, b) => (h(), S("div", {
20162
+ g();
20163
+ }), (v, b) => (h(), S("div", {
20161
20164
  class: q(["vc-blade-toolbar", {
20162
- "vc-blade-toolbar--mobile": g.$isMobile.value
20165
+ "vc-blade-toolbar--mobile": v.$isMobile.value
20163
20166
  }])
20164
20167
  }, [
20165
20168
  C("div", R0, [
@@ -20167,7 +20170,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20167
20170
  items: w.value,
20168
20171
  "is-expanded": f(s)
20169
20172
  }, null, 8, ["items", "is-expanded"]),
20170
- f(t)["widgets-container"] ? J(g.$slots, "widgets-container", { key: 0 }) : D("", !0)
20173
+ f(t)["widgets-container"] ? J(v.$slots, "widgets-container", { key: 0 }) : D("", !0)
20171
20174
  ])
20172
20175
  ], 2));
20173
20176
  }
@@ -20236,7 +20239,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20236
20239
  }), u = () => {
20237
20240
  s.value = !s.value;
20238
20241
  };
20239
- return (d, p) => De((h(), S("div", V0, [
20242
+ return (d, p) => Be((h(), S("div", V0, [
20240
20243
  C("div", {
20241
20244
  ref_key: "containerRef",
20242
20245
  ref: t,
@@ -20364,7 +20367,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20364
20367
  p();
20365
20368
  };
20366
20369
  return (m, _) => {
20367
- const v = Z("VcBreadcrumbs");
20370
+ const g = Z("VcBreadcrumbs");
20368
20371
  return h(), S("div", {
20369
20372
  ref_key: "bladeRef",
20370
20373
  ref: i,
@@ -20396,16 +20399,16 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20396
20399
  class: "vc-blade__back-button"
20397
20400
  })) : D("", !0),
20398
20401
  f(t).breadcrumbs?.length && m.$isDesktop.value ? (h(), S("div", x0, [
20399
- $(v, {
20402
+ $(g, {
20400
20403
  items: f(t).breadcrumbs
20401
20404
  }, {
20402
- trigger: I(({ click: w, isActive: g }) => [
20405
+ trigger: I(({ click: w, isActive: v }) => [
20403
20406
  $(f(et), {
20404
20407
  text: "",
20405
20408
  icon: "lucide-ellipsis-vertical",
20406
20409
  "icon-size": "xl",
20407
20410
  class: q(["vc-blade__breadcrumbs-button", {
20408
- "vc-blade__breadcrumbs-button--active": g
20411
+ "vc-blade__breadcrumbs-button--active": v
20409
20412
  }]),
20410
20413
  onClick: w
20411
20414
  }, null, 8, ["class", "onClick"])
@@ -20526,7 +20529,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20526
20529
  const _ = O(() => {
20527
20530
  const A = p.value.find((y) => y.id === m.value), P = A?.displaySymbol, M = A?.localizedSymbol.values[t.currentLanguage];
20528
20531
  return M || P;
20529
- }), v = O(() => {
20532
+ }), g = O(() => {
20530
20533
  const A = {};
20531
20534
  t.required && (A.required = !0), t.rules?.min && (A.min = Number(t.rules.min)), t.rules?.max && (A.max = Number(t.rules.max)), t.rules?.regex && (A.regex = new RegExp(t.rules.regex));
20532
20535
  const P = t.displayNames?.find((k) => k.languageCode?.startsWith(t.currentLanguage))?.name || t.name, M = P && o(P.toUpperCase()) ? r(P.toUpperCase()) : P, y = t.multilanguage ? "value" : "alias";
@@ -20558,7 +20561,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20558
20561
  Ue(async () => {
20559
20562
  await b(), await E(), a.value = i.value;
20560
20563
  });
20561
- function g(A) {
20564
+ function v(A) {
20562
20565
  m.value = A, s("update:model-value", {
20563
20566
  value: w.value,
20564
20567
  unitOfMeasureId: A,
@@ -20607,24 +20610,24 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20607
20610
  return (A, P) => {
20608
20611
  const M = Z("VcMultivalue"), y = Z("VcInputDropdown");
20609
20612
  return h(), j(f(Qe), {
20610
- key: v.value.key,
20611
- label: v.value.displayName,
20612
- name: v.value.name,
20613
+ key: g.value.key,
20614
+ label: g.value.displayName,
20615
+ name: g.value.name,
20613
20616
  "model-value": w.value,
20614
- rules: v.value.rules
20617
+ rules: g.value.rules
20615
20618
  }, {
20616
20619
  default: I(({ errorMessage: k, errors: N }) => [
20617
- v.value.dictionary && !v.value.multivalue ? (h(), j(f(as), fe({ key: 0 }, A.$attrs, {
20620
+ g.value.dictionary && !g.value.multivalue ? (h(), j(f(as), fe({ key: 0 }, A.$attrs, {
20618
20621
  modelValue: w.value,
20619
20622
  "onUpdate:modelValue": P[0] || (P[0] = (z) => w.value = z),
20620
20623
  error: !!N.length,
20621
20624
  "error-message": k,
20622
- label: v.value.displayName,
20623
- required: v.value.required,
20624
- placeholder: v.value.placeholder,
20625
+ label: g.value.displayName,
20626
+ required: g.value.required,
20627
+ placeholder: g.value.placeholder,
20625
20628
  options: i.value,
20626
- "option-value": v.value.optionValue,
20627
- "option-label": v.value.optionLabel,
20629
+ "option-value": g.value.optionValue,
20630
+ "option-label": g.value.optionLabel,
20628
20631
  disabled: A.disabled,
20629
20632
  searchable: "",
20630
20633
  multilanguage: A.multilanguage,
@@ -20632,25 +20635,25 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20632
20635
  loading: l.value,
20633
20636
  onSearch: L,
20634
20637
  onClose: U
20635
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : v.value.valueType === "ShortText" && v.value.multivalue && !v.value.dictionary ? (h(), j(M, fe({ key: 1 }, A.$attrs, {
20638
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : g.value.valueType === "ShortText" && g.value.multivalue && !g.value.dictionary ? (h(), j(M, fe({ key: 1 }, A.$attrs, {
20636
20639
  modelValue: w.value,
20637
20640
  "onUpdate:modelValue": P[1] || (P[1] = (z) => w.value = z),
20638
- name: v.value.name,
20641
+ name: g.value.name,
20639
20642
  error: !!N.length,
20640
20643
  "error-message": k,
20641
- label: v.value.displayName,
20642
- required: v.value.required,
20644
+ label: g.value.displayName,
20645
+ required: g.value.required,
20643
20646
  placeholder: "Add value",
20644
20647
  disabled: A.disabled,
20645
20648
  multilanguage: A.multilanguage,
20646
20649
  "current-language": A.currentLanguage
20647
- }), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "disabled", "multilanguage", "current-language"])) : v.value.valueType === "ShortText" && v.value.multivalue && v.value.dictionary ? (h(), j(M, fe({ key: 2 }, A.$attrs, {
20650
+ }), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "disabled", "multilanguage", "current-language"])) : g.value.valueType === "ShortText" && g.value.multivalue && g.value.dictionary ? (h(), j(M, fe({ key: 2 }, A.$attrs, {
20648
20651
  modelValue: w.value,
20649
20652
  "onUpdate:modelValue": P[2] || (P[2] = (z) => w.value = z),
20650
20653
  error: !!N.length,
20651
20654
  "error-message": k,
20652
- label: v.value.displayName,
20653
- required: v.value.required,
20655
+ label: g.value.displayName,
20656
+ required: g.value.required,
20654
20657
  placeholder: "Add value",
20655
20658
  disabled: A.disabled,
20656
20659
  multilanguage: A.multilanguage,
@@ -20658,27 +20661,27 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20658
20661
  options: i.value,
20659
20662
  "option-label": A.multilanguage ? "value" : "alias",
20660
20663
  "option-value": A.multilanguage ? "value" : "alias",
20661
- multivalue: v.value.multivalue,
20664
+ multivalue: g.value.multivalue,
20662
20665
  loading: l.value,
20663
20666
  onSearch: L,
20664
20667
  onClose: U
20665
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : v.value.valueType === "ShortText" ? (h(), j(f(ot), fe({ key: 3 }, A.$attrs, {
20668
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : g.value.valueType === "ShortText" ? (h(), j(f(ot), fe({ key: 3 }, A.$attrs, {
20666
20669
  modelValue: w.value,
20667
20670
  "onUpdate:modelValue": P[3] || (P[3] = (z) => w.value = z),
20668
20671
  error: !!N.length,
20669
20672
  "error-message": k,
20670
- label: v.value.displayName,
20673
+ label: g.value.displayName,
20671
20674
  clearable: "",
20672
- required: v.value.required,
20673
- placeholder: v.value.displayName || "Add value",
20675
+ required: g.value.required,
20676
+ placeholder: g.value.displayName || "Add value",
20674
20677
  disabled: A.disabled,
20675
20678
  "current-language": A.currentLanguage,
20676
20679
  loading: l.value
20677
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "current-language", "loading"])) : v.value.valueType === "Number" && v.value.multivalue ? (h(), j(M, fe({ key: 4 }, A.$attrs, {
20680
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "current-language", "loading"])) : g.value.valueType === "Number" && g.value.multivalue ? (h(), j(M, fe({ key: 4 }, A.$attrs, {
20678
20681
  modelValue: w.value,
20679
20682
  "onUpdate:modelValue": P[4] || (P[4] = (z) => w.value = z),
20680
- label: v.value.displayName,
20681
- required: v.value.required,
20683
+ label: g.value.displayName,
20684
+ required: g.value.required,
20682
20685
  placeholder: "Add value",
20683
20686
  disabled: A.disabled,
20684
20687
  type: "number",
@@ -20687,11 +20690,11 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20687
20690
  "option-label": "value",
20688
20691
  "option-value": "value",
20689
20692
  options: i.value
20690
- }), null, 16, ["modelValue", "label", "required", "disabled", "error", "error-message", "options"])) : v.value.valueType === "Integer" && v.value.multivalue ? (h(), j(M, fe({ key: 5 }, A.$attrs, {
20693
+ }), null, 16, ["modelValue", "label", "required", "disabled", "error", "error-message", "options"])) : g.value.valueType === "Integer" && g.value.multivalue ? (h(), j(M, fe({ key: 5 }, A.$attrs, {
20691
20694
  modelValue: w.value,
20692
20695
  "onUpdate:modelValue": P[5] || (P[5] = (z) => w.value = z),
20693
- label: v.value.displayName,
20694
- required: v.value.required,
20696
+ label: g.value.displayName,
20697
+ required: g.value.required,
20695
20698
  placeholder: "Add value",
20696
20699
  disabled: A.disabled,
20697
20700
  type: "integer",
@@ -20700,67 +20703,67 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20700
20703
  "option-label": "value",
20701
20704
  "option-value": "value",
20702
20705
  options: i.value
20703
- }), null, 16, ["modelValue", "label", "required", "disabled", "error", "error-message", "options"])) : v.value.valueType === "Number" ? (h(), j(f(ot), fe({ key: 6 }, A.$attrs, {
20706
+ }), null, 16, ["modelValue", "label", "required", "disabled", "error", "error-message", "options"])) : g.value.valueType === "Number" ? (h(), j(f(ot), fe({ key: 6 }, A.$attrs, {
20704
20707
  modelValue: w.value,
20705
20708
  "onUpdate:modelValue": P[6] || (P[6] = (z) => w.value = z),
20706
20709
  error: !!N.length,
20707
20710
  "error-message": k,
20708
- label: v.value.displayName,
20711
+ label: g.value.displayName,
20709
20712
  clearable: "",
20710
20713
  type: "number",
20711
- required: v.value.required,
20712
- placeholder: v.value.placeholder,
20714
+ required: g.value.required,
20715
+ placeholder: g.value.placeholder,
20713
20716
  disabled: A.disabled,
20714
20717
  loading: l.value
20715
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : v.value.valueType === "Integer" ? (h(), j(f(ot), fe({ key: 7 }, A.$attrs, {
20718
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : g.value.valueType === "Integer" ? (h(), j(f(ot), fe({ key: 7 }, A.$attrs, {
20716
20719
  modelValue: w.value,
20717
20720
  "onUpdate:modelValue": P[7] || (P[7] = (z) => w.value = z),
20718
20721
  error: !!N.length,
20719
20722
  "error-message": k,
20720
- label: v.value.displayName,
20723
+ label: g.value.displayName,
20721
20724
  clearable: "",
20722
20725
  type: "integer",
20723
20726
  step: "1",
20724
- required: v.value.required,
20725
- placeholder: v.value.placeholder,
20727
+ required: g.value.required,
20728
+ placeholder: g.value.placeholder,
20726
20729
  disabled: A.disabled,
20727
20730
  loading: l.value
20728
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : v.value.valueType === "DateTime" ? (h(), j(f(ot), fe({ key: 8 }, A.$attrs, {
20731
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : g.value.valueType === "DateTime" ? (h(), j(f(ot), fe({ key: 8 }, A.$attrs, {
20729
20732
  modelValue: w.value,
20730
20733
  "onUpdate:modelValue": P[8] || (P[8] = (z) => w.value = z),
20731
20734
  error: !!N.length,
20732
20735
  "error-message": k,
20733
- label: v.value.displayName,
20736
+ label: g.value.displayName,
20734
20737
  type: "datetime-local",
20735
- required: v.value.required,
20736
- placeholder: v.value.placeholder,
20738
+ required: g.value.required,
20739
+ placeholder: g.value.placeholder,
20737
20740
  disabled: A.disabled,
20738
20741
  loading: l.value,
20739
20742
  clearable: ""
20740
- }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : v.value.valueType === "LongText" ? (h(), j(f(us), fe({ key: 9 }, A.$attrs, {
20743
+ }), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : g.value.valueType === "LongText" ? (h(), j(f(us), fe({ key: 9 }, A.$attrs, {
20741
20744
  modelValue: w.value,
20742
20745
  "onUpdate:modelValue": P[9] || (P[9] = (z) => w.value = z),
20743
20746
  "error-message": k,
20744
- label: v.value.displayName,
20745
- required: v.value.required,
20746
- placeholder: v.value.placeholder,
20747
+ label: g.value.displayName,
20748
+ required: g.value.required,
20749
+ placeholder: g.value.placeholder,
20747
20750
  disabled: A.disabled,
20748
20751
  "current-language": A.currentLanguage
20749
- }), null, 16, ["modelValue", "error-message", "label", "required", "placeholder", "disabled", "current-language"])) : v.value.valueType === "Boolean" ? (h(), j(f(mr), fe({ key: 10 }, A.$attrs, {
20752
+ }), null, 16, ["modelValue", "error-message", "label", "required", "placeholder", "disabled", "current-language"])) : g.value.valueType === "Boolean" ? (h(), j(f(mr), fe({ key: 10 }, A.$attrs, {
20750
20753
  modelValue: w.value,
20751
20754
  "onUpdate:modelValue": P[10] || (P[10] = (z) => w.value = z),
20752
20755
  "error-message": k,
20753
- required: v.value.required,
20756
+ required: g.value.required,
20754
20757
  disabled: A.disabled,
20755
- name: v.value.name,
20756
- label: v.value.displayName
20757
- }), null, 16, ["modelValue", "error-message", "required", "disabled", "name", "label"])) : v.value.valueType === "Measure" ? (h(), j(y, fe({ key: 11 }, A.$attrs, {
20758
+ name: g.value.name,
20759
+ label: g.value.displayName
20760
+ }), null, 16, ["modelValue", "error-message", "required", "disabled", "name", "label"])) : g.value.valueType === "Measure" ? (h(), j(y, fe({ key: 11 }, A.$attrs, {
20758
20761
  modelValue: w.value,
20759
20762
  "onUpdate:modelValue": P[11] || (P[11] = (z) => w.value = z),
20760
20763
  option: m.value,
20761
20764
  "onUpdate:option": [
20762
20765
  P[12] || (P[12] = (z) => m.value = z),
20763
- g
20766
+ v
20764
20767
  ],
20765
20768
  options: p.value,
20766
20769
  loading: c.value,
@@ -20769,9 +20772,9 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20769
20772
  "input-type": "number",
20770
20773
  multilanguage: A.multilanguage,
20771
20774
  "current-language": A.currentLanguage,
20772
- label: v.value.displayName,
20773
- placeholder: v.value.placeholder,
20774
- required: v.value.required,
20775
+ label: g.value.displayName,
20776
+ placeholder: g.value.placeholder,
20777
+ required: g.value.required,
20775
20778
  disabled: A.disabled
20776
20779
  }), {
20777
20780
  button: I((z) => [
@@ -20780,8 +20783,8 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20780
20783
  tabindex: "0",
20781
20784
  onClick: ce(z.toggleHandler, ["stop", "prevent"]),
20782
20785
  onKeydown: [
20783
- $e(ce(z.toggleHandler, ["stop", "prevent"]), ["enter"]),
20784
- $e(ce(z.toggleHandler, ["stop", "prevent"]), ["space"])
20786
+ Te(ce(z.toggleHandler, ["stop", "prevent"]), ["enter"]),
20787
+ Te(ce(z.toggleHandler, ["stop", "prevent"]), ["space"])
20785
20788
  ]
20786
20789
  }, x(_.value), 41, H0)
20787
20790
  ]),
@@ -20811,7 +20814,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20811
20814
  function s() {
20812
20815
  t.value = !1;
20813
20816
  }
20814
- return (o, r) => De((h(), S("div", {
20817
+ return (o, r) => Be((h(), S("div", {
20815
20818
  class: q(["vc-gallery-item", {
20816
20819
  "vc-gallery-item_readonly": o.readonly,
20817
20820
  "vc-gallery-item_hover": t.value
@@ -20994,7 +20997,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
20994
20997
  },
20995
20998
  emits: ["upload", "sort", "edit", "remove"],
20996
20999
  setup(n, { emit: e }) {
20997
- const t = n, s = e, { t: o } = ke({ useScope: "global" }), r = T(), i = T([]), l = T(), a = T(), u = T(), d = T(), p = T(), c = O(() => r.value), m = O(() => i.value.length <= 1), _ = T(!1), { open: v } = to(
21000
+ const t = n, s = e, { t: o } = ke({ useScope: "global" }), r = T(), i = T([]), l = T(), a = T(), u = T(), d = T(), p = T(), c = O(() => r.value), m = O(() => i.value.length <= 1), _ = T(!1), { open: g } = to(
20998
21001
  O(() => ({
20999
21002
  component: s_,
21000
21003
  props: {
@@ -21030,8 +21033,8 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
21030
21033
  V.items.add(B);
21031
21034
  }), s("upload", V.files, t.images[t.images.length - 1]?.sortOrder);
21032
21035
  }
21033
- }, g = (k) => {
21034
- r.value = k, v();
21036
+ }, v = (k) => {
21037
+ r.value = k, g();
21035
21038
  }, b = () => {
21036
21039
  const N = i.value.map((z, V) => (z.sortOrder = V, z));
21037
21040
  s("sort", N);
@@ -21110,7 +21113,7 @@ const p0 = { class: "vc-app__main-content" }, f0 = {
21110
21113
  readonly: k.disabled,
21111
21114
  actions: k.itemActions,
21112
21115
  "disable-drag": m.value,
21113
- onPreview: (B) => g(V),
21116
+ onPreview: (B) => v(V),
21114
21117
  onEdit: N[0] || (N[0] = (B) => k.$emit("edit", B)),
21115
21118
  onRemove: N[1] || (N[1] = (B) => k.$emit("remove", B)),
21116
21119
  onMousedown: E,
@@ -21223,11 +21226,11 @@ function g_(n) {
21223
21226
  return e.value && e.value.length ? r.value.length === e.value.length - (l.value.length !== e.value.length ? l.value.length : 0) : !1;
21224
21227
  },
21225
21228
  set(_) {
21226
- r.value = _ ? e.value.filter((v) => !l.value.includes(v)) : [], i.value = !1;
21229
+ r.value = _ ? e.value.filter((g) => !l.value.includes(g)) : [], i.value = !1;
21227
21230
  }
21228
21231
  }), u = O(() => r.value.length === e.value.length && (n.totalCount || 0) > e.value.length);
21229
21232
  function d(_) {
21230
- return r.value.some((v) => xe(v, _));
21233
+ return r.value.some((g) => xe(g, _));
21231
21234
  }
21232
21235
  function p() {
21233
21236
  i.value = !i.value, i.value || (r.value = []), o?.(i.value);
@@ -21235,21 +21238,21 @@ function g_(n) {
21235
21238
  function c(_) {
21236
21239
  if (l.value.includes(_))
21237
21240
  return;
21238
- const v = r.value.findIndex((w) => xe(w, _));
21239
- v !== -1 ? r.value = r.value.filter((w, g) => g !== v) : r.value = [...r.value, _];
21241
+ const g = r.value.findIndex((w) => xe(w, _));
21242
+ g !== -1 ? r.value = r.value.filter((w, v) => v !== g) : r.value = [...r.value, _];
21240
21243
  }
21241
21244
  async function m(_) {
21242
21245
  if (t && typeof t == "function") {
21243
- const v = [];
21246
+ const g = [];
21244
21247
  for (const w of _)
21245
- typeof w == "object" && await t(w) && v.push(w);
21246
- l.value = v;
21248
+ typeof w == "object" && await t(w) && g.push(w);
21249
+ l.value = g;
21247
21250
  }
21248
21251
  }
21249
21252
  return le(
21250
21253
  () => e.value,
21251
21254
  (_) => {
21252
- m(_), r.value = r.value.filter((v) => _.includes(v));
21255
+ m(_), r.value = r.value.filter((g) => _.includes(g));
21253
21256
  },
21254
21257
  { deep: !0, immediate: !0 }
21255
21258
  ), le(
@@ -21327,7 +21330,7 @@ function b_(n) {
21327
21330
  A.find((M) => M.id === P.id) || A.push(P);
21328
21331
  }), c(U, L, A), m(A), i.value = [...A], r.value = i.value, d();
21329
21332
  }
21330
- function v(b) {
21333
+ function g(b) {
21331
21334
  r.value.find((E) => E.id === b.id) || r.value.push(b), b && (r.value = r.value.map((E) => (E.id === b.id && (E = b), E))), d();
21332
21335
  }
21333
21336
  function w(b, E, L) {
@@ -21337,7 +21340,7 @@ function b_(n) {
21337
21340
  visible: typeof U.visible < "u" ? U.visible : L
21338
21341
  }));
21339
21342
  }
21340
- function g(b, E = []) {
21343
+ function v(b, E = []) {
21341
21344
  let L = [], U = [];
21342
21345
  if (b && b.length && (L = w(b, !0, !0)), t.value === "auto")
21343
21346
  E && E.length && (U = Object.keys(E[0]).map((P) => ({
@@ -21362,8 +21365,8 @@ function b_(n) {
21362
21365
  filteredCols: u,
21363
21366
  saveState: d,
21364
21367
  restoreState: _,
21365
- toggleColumn: v,
21366
- initializeColumns: g
21368
+ toggleColumn: g,
21369
+ initializeColumns: v
21367
21370
  };
21368
21371
  }
21369
21372
  function y_(n) {
@@ -21454,7 +21457,7 @@ const w_ = { class: "vc-table-cell" }, __ = {
21454
21457
  p.errors && p.errors.length > 0 || s("blur", { row: p.row, field: p.field });
21455
21458
  }
21456
21459
  return (p, c) => {
21457
- const m = Z("VcIcon"), _ = Z("VcImage"), v = Z("VcStatus"), w = Z("VcStatusIcon"), g = Z("VcLink");
21460
+ const m = Z("VcIcon"), _ = Z("VcImage"), g = Z("VcStatus"), w = Z("VcStatusIcon"), v = Z("VcLink");
21458
21461
  return h(), S("div", w_, [
21459
21462
  p.cell.type === "money" ? (h(), S(se, { key: 0 }, [
21460
21463
  !i.value && (typeof r.value > "u" || Number(r.value) === 0) ? (h(), S("div", __, x(p.$t("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : typeof Number(r.value) == "number" ? (h(), S("div", {
@@ -21534,7 +21537,7 @@ const w_ = { class: "vc-table-cell" }, __ = {
21534
21537
  src: r.value,
21535
21538
  "empty-icon": "emptyIcon" in p.cell && p.cell.emptyIcon || void 0,
21536
21539
  background: "contain"
21537
- }, null, 8, ["src", "empty-icon"])) : p.cell.type === "status" ? (h(), j(v, {
21540
+ }, null, 8, ["src", "empty-icon"])) : p.cell.type === "status" ? (h(), j(g, {
21538
21541
  key: 4,
21539
21542
  class: "vc-table-cell__status"
21540
21543
  }, {
@@ -21600,7 +21603,7 @@ const w_ = { class: "vc-table-cell" }, __ = {
21600
21603
  }, 8, ["label", "name", "model-value", "rules"])) : (h(), S(se, { key: 1 }, [
21601
21604
  ee(x(typeof Number(r.value) == "number" && Number(r.value) >= 0 ? Number(r.value).toFixed(0) : p.$t("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)
21602
21605
  ], 64))
21603
- ], 2)) : p.cell.type === "link" ? (h(), j(g, {
21606
+ ], 2)) : p.cell.type === "link" ? (h(), j(v, {
21604
21607
  key: 7,
21605
21608
  class: q(["vc-table-cell__link", p.cell.class])
21606
21609
  }, {
@@ -21756,10 +21759,10 @@ const F_ = {
21756
21759
  },
21757
21760
  emits: ["click", "select"],
21758
21761
  setup(n, { emit: e }) {
21759
- const t = n, s = e, { t: o } = ke({ useScope: "global" }), r = T(!1), i = T([]), l = T(null), a = T(null), u = O(() => t.selection && t.selection.length > 0), d = T(0), p = T(0), c = T(!1), m = T(null), { activeSwipeId: _, setActiveSwipe: v } = z_(), w = O(() => {
21760
- const F = g.value?.length ?? 0;
21762
+ const t = n, s = e, { t: o } = ke({ useScope: "global" }), r = T(!1), i = T([]), l = T(null), a = T(null), u = O(() => t.selection && t.selection.length > 0), d = T(0), p = T(0), c = T(!1), m = T(null), { activeSwipeId: _, setActiveSwipe: g } = z_(), w = O(() => {
21763
+ const F = v.value?.length ?? 0;
21761
21764
  return Math.min(F, F > 2 ? 3 : 2) * 70;
21762
- }), g = O(() => t.selection?.length === 0 && i.value || void 0), b = T(0), E = T(0), L = T(0), U = T(0), A = T(0);
21765
+ }), v = O(() => t.selection?.length === 0 && i.value || void 0), b = T(0), E = T(0), L = T(0), U = T(0), A = T(0);
21763
21766
  function P(F, W = 300) {
21764
21767
  m.value !== null && cancelAnimationFrame(m.value);
21765
21768
  const Y = d.value, oe = performance.now();
@@ -21785,7 +21788,7 @@ const F_ = {
21785
21788
  const W = t.items[t.index];
21786
21789
  if (typeof W == "string") return;
21787
21790
  const Y = F.touches[0];
21788
- b.value = Y.clientX, E.value = d.value, L.value = 0, U.value = Date.now(), A.value = Y.clientX, v(W.id);
21791
+ b.value = Y.clientX, E.value = d.value, L.value = 0, U.value = Date.now(), A.value = Y.clientX, g(W.id);
21789
21792
  }
21790
21793
  function y(F) {
21791
21794
  if (c.value) return;
@@ -21806,10 +21809,10 @@ const F_ = {
21806
21809
  if (typeof F == "string" || _.value !== F.id) return;
21807
21810
  const W = Math.abs(L.value), Y = L.value < 0 ? -1 : 1;
21808
21811
  if (W > 0.5)
21809
- Y < 0 && g.value && g.value.length ? P(-w.value) : P(0);
21812
+ Y < 0 && v.value && v.value.length ? P(-w.value) : P(0);
21810
21813
  else {
21811
21814
  const oe = w.value * 0.4;
21812
- Math.abs(d.value) > oe && g.value && g.value.length ? P(-w.value) : P(0);
21815
+ Math.abs(d.value) > oe && v.value && v.value.length ? P(-w.value) : P(0);
21813
21816
  }
21814
21817
  }
21815
21818
  le(
@@ -21824,7 +21827,7 @@ const F_ = {
21824
21827
  if (c.value) return;
21825
21828
  P(0);
21826
21829
  const F = t.items[t.index];
21827
- typeof F != "string" && _.value === F.id && v(null);
21830
+ typeof F != "string" && _.value === F.id && g(null);
21828
21831
  }
21829
21832
  function z() {
21830
21833
  i.value && i.value.length || t.actionBuilder && typeof t.actionBuilder == "function" && (i.value = t.actionBuilder(t.items[t.index]));
@@ -21841,7 +21844,7 @@ const F_ = {
21841
21844
  }
21842
21845
  return (F, W) => {
21843
21846
  const Y = Z("VcCheckbox"), oe = Z("VcIcon");
21844
- return De((h(), S("div", {
21847
+ return Be((h(), S("div", {
21845
21848
  ref_key: "container",
21846
21849
  ref: a,
21847
21850
  class: "vc-table-mobile",
@@ -21871,14 +21874,14 @@ const F_ = {
21871
21874
  }, [
21872
21875
  J(F.$slots, "default")
21873
21876
  ], 6),
21874
- g.value && g.value.length ? (h(), S("div", {
21877
+ v.value && v.value.length ? (h(), S("div", {
21875
21878
  key: 0,
21876
21879
  class: "vc-table-mobile__swipe-actions",
21877
21880
  style: Ie({ width: `${p.value}px` }),
21878
21881
  onTouchstart: W[2] || (W[2] = ce(() => {
21879
21882
  }, ["stop"]))
21880
21883
  }, [
21881
- g.value.length > 2 ? (h(), S("button", {
21884
+ v.value.length > 2 ? (h(), S("button", {
21882
21885
  key: 0,
21883
21886
  class: "vc-table-mobile__action vc-table-mobile__action_more-left",
21884
21887
  onClick: W[0] || (W[0] = ce(() => r.value = !0, ["stop"]))
@@ -21886,7 +21889,7 @@ const F_ = {
21886
21889
  $(oe, { icon: "material-pending" }),
21887
21890
  C("div", W_, x(F.$t("COMPONENTS.ORGANISMS.VC_TABLE.MORE")), 1)
21888
21891
  ])) : D("", !0),
21889
- (h(!0), S(se, null, me(g.value.slice(0, 2), (ne, ye) => (h(), S("button", {
21892
+ (h(!0), S(se, null, me(v.value.slice(0, 2), (ne, ye) => (h(), S("button", {
21890
21893
  key: `swipeAction-${ye}`,
21891
21894
  class: q(["vc-table-mobile__action", `vc-table-mobile__item-action_${ne.type}`]),
21892
21895
  onClick: ce(() => ne.clickHandler(F.items[F.index], F.index), ["stop"])
@@ -21961,11 +21964,11 @@ const F_ = {
21961
21964
  "bottom-left": 4,
21962
21965
  "bottom-right": 5
21963
21966
  }, r = ["status", "image", "top-left", "top-right"], i = ["bottom-left", "bottom-right"], l = (m) => {
21964
- const _ = m.filter((b) => b.type === "status" || b.type === "status-icon"), v = m.filter((b) => b.type === "image"), w = m.filter((b) => !_.includes(b) && !v.includes(b));
21965
- return [..._, ...v, ...w].slice(0, 5);
21967
+ const _ = m.filter((b) => b.type === "status" || b.type === "status-icon"), g = m.filter((b) => b.type === "image"), w = m.filter((b) => !_.includes(b) && !g.includes(b));
21968
+ return [..._, ...g, ...w].slice(0, 5);
21966
21969
  }, a = (m) => {
21967
- const _ = m.some((g) => g.type === "status" || g.type === "status-icon"), v = m.some((g) => g.type === "image");
21968
- if (_ || v)
21970
+ const _ = m.some((v) => v.type === "status" || v.type === "status-icon"), g = m.some((v) => v.type === "image");
21971
+ if (_ || g)
21969
21972
  return {
21970
21973
  firstRow: m.slice(0, 3),
21971
21974
  secondRow: m.slice(3)
@@ -21975,24 +21978,24 @@ const F_ = {
21975
21978
  firstRow: m.slice(0, w),
21976
21979
  secondRow: m.slice(w, 4)
21977
21980
  };
21978
- }, u = (m) => [...m].sort((_, v) => {
21979
- const w = _.mobilePosition, g = v.mobilePosition;
21980
- return (o[w] ?? 999) - (o[g] ?? 999);
21981
+ }, u = (m) => [...m].sort((_, g) => {
21982
+ const w = _.mobilePosition, v = g.mobilePosition;
21983
+ return (o[w] ?? 999) - (o[v] ?? 999);
21981
21984
  }), d = (m) => m.filter((_) => _.mobileVisible !== !1), p = O(() => {
21982
21985
  if (s.value) {
21983
- const v = t.columns.filter(
21986
+ const g = t.columns.filter(
21984
21987
  (w) => w.mobileVisible !== !1 && w.mobilePosition && r.includes(w.mobilePosition)
21985
21988
  );
21986
- return u(v);
21989
+ return u(g);
21987
21990
  }
21988
21991
  const m = d(t.columns), _ = l(m);
21989
21992
  return a(_).firstRow;
21990
21993
  }), c = O(() => {
21991
21994
  if (s.value) {
21992
- const v = t.columns.filter(
21995
+ const g = t.columns.filter(
21993
21996
  (w) => w.mobileVisible !== !1 && w.mobilePosition && i.includes(w.mobilePosition)
21994
21997
  );
21995
- return u(v);
21998
+ return u(g);
21996
21999
  }
21997
22000
  const m = d(t.columns), _ = l(m);
21998
22001
  return a(_).secondRow;
@@ -22004,46 +22007,46 @@ const F_ = {
22004
22007
  onContextmenu: _[5] || (_[5] = ce(() => {
22005
22008
  }, ["prevent"]))
22006
22009
  }, [
22007
- (h(!0), S(se, null, me(m.items, (v, w) => (h(), j(eS, {
22010
+ (h(!0), S(se, null, me(m.items, (g, w) => (h(), j(eS, {
22008
22011
  key: w,
22009
22012
  index: w,
22010
22013
  items: m.items,
22011
22014
  "action-builder": m.itemActionBuilder,
22012
22015
  "disabled-selection": m.disabledSelection,
22013
22016
  selection: m.selection,
22014
- "is-selected": m.isSelected(v),
22017
+ "is-selected": m.isSelected(g),
22015
22018
  onContextmenu: _[4] || (_[4] = ce(() => {
22016
22019
  }, ["prevent"])),
22017
- onClick: (g) => m.$emit("itemClick", v),
22018
- onSelect: (g) => m.multiselect ? m.rowCheckbox(v) : void 0
22020
+ onClick: (v) => m.$emit("itemClick", g),
22021
+ onSelect: (v) => m.multiselect ? m.rowCheckbox(g) : void 0
22019
22022
  }, {
22020
22023
  default: I(() => [
22021
- J(m.$slots, "mobile-item", { item: v }, () => [
22024
+ J(m.$slots, "mobile-item", { item: g }, () => [
22022
22025
  C("div", oS, [
22023
22026
  C("div", nS, [
22024
- (h(!0), S(se, null, me(p.value, (g) => (h(), S(se, {
22025
- key: g.id
22027
+ (h(!0), S(se, null, me(p.value, (v) => (h(), S(se, {
22028
+ key: v.id
22026
22029
  }, [
22027
- g.type === "status-icon" || g.type === "status" ? (h(), S("div", {
22030
+ v.type === "status-icon" || v.type === "status" ? (h(), S("div", {
22028
22031
  key: 0,
22029
22032
  class: q([
22030
22033
  "vc-table-mobile-view__cell",
22031
22034
  {
22032
- "vc-table-mobile-view__cell--status": g.type === "status",
22033
- "vc-table-mobile-view__cell--status-icon": g.type === "status-icon"
22035
+ "vc-table-mobile-view__cell--status": v.type === "status",
22036
+ "vc-table-mobile-view__cell--status-icon": v.type === "status-icon"
22034
22037
  },
22035
- g.class
22038
+ v.class
22036
22039
  ])
22037
22040
  }, [
22038
- J(m.$slots, `item_${g.id}`, {
22039
- item: v,
22040
- cell: g,
22041
+ J(m.$slots, `item_${v.id}`, {
22042
+ item: g,
22043
+ cell: v,
22041
22044
  index: w
22042
22045
  }, () => [
22043
- typeof v == "object" ? (h(), j(So, {
22044
- key: `mobile-view-cell-${w}-${g.id}`,
22045
- cell: g,
22046
- item: v,
22046
+ typeof g == "object" ? (h(), j(So, {
22047
+ key: `mobile-view-cell-${w}-${v.id}`,
22048
+ cell: v,
22049
+ item: g,
22047
22050
  index: w,
22048
22051
  onUpdate: (b) => m.$emit("onEditComplete", { event: b, index: w }),
22049
22052
  onBlur: _[0] || (_[0] = (b) => m.$emit("onCellBlur", b))
@@ -22051,22 +22054,22 @@ const F_ = {
22051
22054
  ])
22052
22055
  ], 2)) : D("", !0)
22053
22056
  ], 64))), 128)),
22054
- (h(!0), S(se, null, me(p.value, (g) => (h(), S(se, {
22055
- key: g.id
22057
+ (h(!0), S(se, null, me(p.value, (v) => (h(), S(se, {
22058
+ key: v.id
22056
22059
  }, [
22057
- g.type === "image" ? (h(), S("div", {
22060
+ v.type === "image" ? (h(), S("div", {
22058
22061
  key: 0,
22059
- class: q(["vc-table-mobile-view__cell", "vc-table-mobile-view__cell--image", g.class])
22062
+ class: q(["vc-table-mobile-view__cell", "vc-table-mobile-view__cell--image", v.class])
22060
22063
  }, [
22061
- J(m.$slots, `item_${g.id}`, {
22062
- item: v,
22063
- cell: g,
22064
+ J(m.$slots, `item_${v.id}`, {
22065
+ item: g,
22066
+ cell: v,
22064
22067
  index: w
22065
22068
  }, () => [
22066
- typeof v == "object" ? (h(), j(So, {
22067
- key: `mobile-view-cell-${w}-${g.id}`,
22068
- cell: g,
22069
- item: v,
22069
+ typeof g == "object" ? (h(), j(So, {
22070
+ key: `mobile-view-cell-${w}-${v.id}`,
22071
+ cell: v,
22072
+ item: g,
22070
22073
  index: w,
22071
22074
  onUpdate: (b) => m.$emit("onEditComplete", { event: b, index: w }),
22072
22075
  onBlur: _[1] || (_[1] = (b) => m.$emit("onCellBlur", b))
@@ -22076,26 +22079,26 @@ const F_ = {
22076
22079
  ], 64))), 128)),
22077
22080
  C("div", sS, [
22078
22081
  C("div", rS, [
22079
- (h(!0), S(se, null, me(p.value, (g) => (h(), S(se, {
22080
- key: g.id
22082
+ (h(!0), S(se, null, me(p.value, (v) => (h(), S(se, {
22083
+ key: v.id
22081
22084
  }, [
22082
- g.type !== "status-icon" && g.type !== "status" && g.type !== "image" ? (h(), S("div", {
22085
+ v.type !== "status-icon" && v.type !== "status" && v.type !== "image" ? (h(), S("div", {
22083
22086
  key: 0,
22084
22087
  class: q([
22085
22088
  "vc-table-mobile-view__cell",
22086
- `vc-table-mobile-view__cell--${g.type || "default"}`,
22087
- g.class
22089
+ `vc-table-mobile-view__cell--${v.type || "default"}`,
22090
+ v.class
22088
22091
  ])
22089
22092
  }, [
22090
- J(m.$slots, `item_${g.id}`, {
22091
- item: v,
22092
- cell: g,
22093
+ J(m.$slots, `item_${v.id}`, {
22094
+ item: g,
22095
+ cell: v,
22093
22096
  index: w
22094
22097
  }, () => [
22095
- typeof v == "object" ? (h(), j(So, {
22096
- key: `mobile-view-cell-${w}-${g.id}`,
22097
- cell: g,
22098
- item: v,
22098
+ typeof g == "object" ? (h(), j(So, {
22099
+ key: `mobile-view-cell-${w}-${v.id}`,
22100
+ cell: v,
22101
+ item: g,
22099
22102
  index: w,
22100
22103
  onUpdate: (b) => m.$emit("onEditComplete", { event: b, index: w }),
22101
22104
  onBlur: _[2] || (_[2] = (b) => m.$emit("onCellBlur", b))
@@ -22105,23 +22108,23 @@ const F_ = {
22105
22108
  ], 64))), 128))
22106
22109
  ]),
22107
22110
  C("div", iS, [
22108
- (h(!0), S(se, null, me(c.value, (g) => (h(), S("div", {
22109
- key: g.id,
22111
+ (h(!0), S(se, null, me(c.value, (v) => (h(), S("div", {
22112
+ key: v.id,
22110
22113
  class: q([
22111
22114
  "vc-table-mobile-view__cell",
22112
- `vc-table-mobile-view__cell--${g.type || "default"}`,
22113
- g.class
22115
+ `vc-table-mobile-view__cell--${v.type || "default"}`,
22116
+ v.class
22114
22117
  ])
22115
22118
  }, [
22116
- J(m.$slots, `item_${g.id}`, {
22117
- item: v,
22118
- cell: g,
22119
+ J(m.$slots, `item_${v.id}`, {
22120
+ item: g,
22121
+ cell: v,
22119
22122
  index: w
22120
22123
  }, () => [
22121
- typeof v == "object" ? (h(), j(So, {
22122
- key: `mobile-view-cell-${w}-${g.id}`,
22123
- cell: g,
22124
- item: v,
22124
+ typeof g == "object" ? (h(), j(So, {
22125
+ key: `mobile-view-cell-${w}-${v.id}`,
22126
+ cell: v,
22127
+ item: g,
22125
22128
  index: w,
22126
22129
  onUpdate: (b) => m.$emit("onEditComplete", { event: b, index: w }),
22127
22130
  onBlur: _[3] || (_[3] = (b) => m.$emit("onCellBlur", b))
@@ -22252,7 +22255,7 @@ function fS(n, e, t) {
22252
22255
  }
22253
22256
  }
22254
22257
  function c(E, L) {
22255
- if (s.value = L, o.value = E.target, document.addEventListener("dragend", g, { once: !0 }), E.dataTransfer) {
22258
+ if (s.value = L, o.value = E.target, document.addEventListener("dragend", v, { once: !0 }), E.dataTransfer) {
22256
22259
  E.dataTransfer.setData("text", "reorder"), E.dataTransfer.effectAllowed = "move";
22257
22260
  const U = document.createElement("div");
22258
22261
  U.style.display = "none", document.body.appendChild(U), E.dataTransfer.setDragImage(U, 0, 0), setTimeout(() => {
@@ -22288,7 +22291,7 @@ function fS(n, e, t) {
22288
22291
  function _(E) {
22289
22292
  E.preventDefault(), i.value && (i.value.style.display = "none");
22290
22293
  }
22291
- function v(E, L, U) {
22294
+ function g(E, L, U) {
22292
22295
  E && L !== U && (U >= E.length && (U %= E.length, L %= E.length), E.splice(U, 0, E.splice(L, 1)[0]));
22293
22296
  }
22294
22297
  function w(E, L) {
@@ -22307,9 +22310,9 @@ function fS(n, e, t) {
22307
22310
  }
22308
22311
  const A = n.value.indexOf(s.value), P = n.value.indexOf(L);
22309
22312
  let M = A !== P;
22310
- M && (P - A === 1 && r.value === -1 || P - A === -1 && r.value === 1) && (M = !1), M && (v(n.value, A, P), e()), b();
22313
+ M && (P - A === 1 && r.value === -1 || P - A === -1 && r.value === 1) && (M = !1), M && (g(n.value, A, P), e()), b();
22311
22314
  }
22312
- function g() {
22315
+ function v() {
22313
22316
  b();
22314
22317
  }
22315
22318
  function b() {
@@ -22331,47 +22334,47 @@ function fS(n, e, t) {
22331
22334
  function mS(n, e, t) {
22332
22335
  const s = T(), o = T(), r = T(), i = T(!1), l = T();
22333
22336
  let a = null, u = null;
22334
- function d(g) {
22335
- if (!g.getClientRects().length)
22337
+ function d(v) {
22338
+ if (!v.getClientRects().length)
22336
22339
  return { top: 0, left: 0 };
22337
- const b = g.getBoundingClientRect(), E = g.ownerDocument.defaultView;
22340
+ const b = v.getBoundingClientRect(), E = v.ownerDocument.defaultView;
22338
22341
  return {
22339
22342
  top: b.top + ((E && E.scrollY) ?? 0),
22340
22343
  left: b.left + ((E && E.scrollX) ?? 0)
22341
22344
  };
22342
22345
  }
22343
- function p(g, b) {
22346
+ function p(v, b) {
22344
22347
  const E = d(t.value).left;
22345
- s.value = b, i.value = !0, r.value = g.pageX - E + t.value.scrollLeft, c();
22348
+ s.value = b, i.value = !0, r.value = v.pageX - E + t.value.scrollLeft, c();
22346
22349
  }
22347
22350
  function c() {
22348
- a || (a = (g) => {
22349
- i.value && _(g);
22351
+ a || (a = (v) => {
22352
+ i.value && _(v);
22350
22353
  }, document.addEventListener("mousemove", a)), u || (u = () => {
22351
- i.value && (i.value = !1, v());
22354
+ i.value && (i.value = !1, g());
22352
22355
  }, document.addEventListener("mouseup", u));
22353
22356
  }
22354
22357
  function m() {
22355
22358
  a && (document.removeEventListener("mousemove", a), a = null), u && (document.removeEventListener("mouseup", u), u = null);
22356
22359
  }
22357
- function _(g) {
22360
+ function _(v) {
22358
22361
  if (i.value && l.value && t.value) {
22359
22362
  const b = d(t.value).left;
22360
22363
  l.value.style.top = "0px";
22361
- const E = g.pageX - b + t.value.scrollLeft;
22364
+ const E = v.pageX - b + t.value.scrollLeft;
22362
22365
  l.value.style.left = Math.min(E, t.value.offsetWidth - l.value.offsetWidth - 70) + "px", l.value.style.display = "block";
22363
22366
  }
22364
22367
  }
22365
- function v() {
22368
+ function g() {
22366
22369
  if (!l.value || !t.value || !s.value || r.value === void 0) return;
22367
- const g = l.value.offsetLeft - r.value, b = t.value.querySelector(`#${s.value.id}`);
22370
+ const v = l.value.offsetLeft - r.value, b = t.value.querySelector(`#${s.value.id}`);
22368
22371
  if (b) {
22369
- const E = b.offsetWidth, L = E + g, U = 15;
22370
- if (E + g > parseInt(U.toString(), 10))
22372
+ const E = b.offsetWidth, L = E + v, U = 15;
22373
+ if (E + v > parseInt(U.toString(), 10))
22371
22374
  if (o.value = n.value[n.value.indexOf(s.value) + 1], o.value) {
22372
22375
  const A = t.value.querySelector(`#${o.value.id}`);
22373
22376
  if (A) {
22374
- const P = A.offsetWidth - g;
22377
+ const P = A.offsetWidth - v;
22375
22378
  L > U && P > U && w(L, P);
22376
22379
  }
22377
22380
  } else
@@ -22379,13 +22382,13 @@ function mS(n, e, t) {
22379
22382
  l.value.style.display = "none", m(), e();
22380
22383
  }
22381
22384
  }
22382
- function w(g, b) {
22385
+ function w(v, b) {
22383
22386
  if (!t.value || !s.value) return;
22384
22387
  const E = n.value.findIndex((A) => A.id === s.value?.id), L = [];
22385
22388
  t.value.querySelectorAll(".vc-table-columns-header__cell").forEach((A) => L.push(A.offsetWidth)), n.value.forEach((A, P) => {
22386
22389
  A.width = L[P] + "px";
22387
22390
  }), L.forEach((A, P) => {
22388
- const M = P === E ? g : b && P === E + 1 ? b : A;
22391
+ const M = P === E ? v : b && P === E + 1 ? b : A;
22389
22392
  n.value[P].width = M + "px";
22390
22393
  });
22391
22394
  }
@@ -22447,56 +22450,56 @@ const hS = { class: "vc-table-columns-header__row" }, vS = {
22447
22450
  onColumnHeaderDragLeave: p,
22448
22451
  onColumnHeaderDrop: c
22449
22452
  } = fS(r, () => s("columnReorder"), i), { resizer: m, handleMouseDown: _ } = mS(r, () => s("columnResize"), i);
22450
- return (v, w) => (h(), S("div", {
22453
+ return (g, w) => (h(), S("div", {
22451
22454
  ref_key: "headerRef",
22452
22455
  ref: i,
22453
22456
  class: "vc-table-columns-header",
22454
- onMouseenter: w[7] || (w[7] = (g) => v.$emit("headerMouseOver", !0)),
22455
- onMouseleave: w[8] || (w[8] = (g) => v.$emit("headerMouseOver", !1))
22457
+ onMouseenter: w[7] || (w[7] = (v) => g.$emit("headerMouseOver", !0)),
22458
+ onMouseleave: w[8] || (w[8] = (v) => g.$emit("headerMouseOver", !1))
22456
22459
  }, [
22457
22460
  C("div", hS, [
22458
- v.multiselect && v.items && v.items.length ? (h(), S("div", vS, [
22461
+ g.multiselect && g.items && g.items.length ? (h(), S("div", vS, [
22459
22462
  C("div", gS, [
22460
22463
  $(f(Xo), {
22461
- "model-value": v.headerCheckbox,
22464
+ "model-value": g.headerCheckbox,
22462
22465
  size: "s",
22463
- indeterminate: v.selection && v.selection.length > 0 && v.selection.length !== v.items.length,
22464
- "onUpdate:modelValue": w[0] || (w[0] = (g) => v.$emit("update:headerCheckbox", g)),
22466
+ indeterminate: g.selection && g.selection.length > 0 && g.selection.length !== g.items.length,
22467
+ "onUpdate:modelValue": w[0] || (w[0] = (v) => g.$emit("update:headerCheckbox", v)),
22465
22468
  onClick: w[1] || (w[1] = ce(() => {
22466
22469
  }, ["stop"]))
22467
22470
  }, null, 8, ["model-value", "indeterminate"])
22468
22471
  ]),
22469
22472
  w[9] || (w[9] = C("div", { class: "vc-table-columns-header__checkbox-resizer" }, null, -1))
22470
22473
  ])) : D("", !0),
22471
- (h(!0), S(se, null, me(v.filteredCols, (g, b) => (h(), S("div", {
22472
- id: g.id,
22473
- key: g.id,
22474
+ (h(!0), S(se, null, me(g.filteredCols, (v, b) => (h(), S("div", {
22475
+ id: v.id,
22476
+ key: v.id,
22474
22477
  class: q(["vc-table-columns-header__cell", [
22475
22478
  {
22476
- "vc-table-columns-header__cell--sortable": g.sortable,
22477
- "vc-table-columns-header__cell--last": b === v.filteredCols.length - 1
22479
+ "vc-table-columns-header__cell--sortable": v.sortable,
22480
+ "vc-table-columns-header__cell--last": b === g.filteredCols.length - 1
22478
22481
  },
22479
- g.align ? o[g.align] : ""
22482
+ v.align ? o[v.align] : ""
22480
22483
  ]]),
22481
- style: Ie({ maxWidth: g.width, width: g.width }),
22482
- onMousedown: w[2] || (w[2] = (E) => v.reorderableColumns && f(a)(E)),
22483
- onDragstart: (E) => v.reorderableColumns && f(u)(E, g),
22484
- onDragover: w[3] || (w[3] = (E) => v.reorderableColumns && f(d)(E)),
22485
- onDragleave: w[4] || (w[4] = (E) => v.reorderableColumns && f(p)(E)),
22486
- onDrop: (E) => v.reorderableColumns && f(c)(E, g),
22487
- onClick: (E) => v.$emit("headerClick", g)
22484
+ style: Ie({ maxWidth: v.width, width: v.width }),
22485
+ onMousedown: w[2] || (w[2] = (E) => g.reorderableColumns && f(a)(E)),
22486
+ onDragstart: (E) => g.reorderableColumns && f(u)(E, v),
22487
+ onDragover: w[3] || (w[3] = (E) => g.reorderableColumns && f(d)(E)),
22488
+ onDragleave: w[4] || (w[4] = (E) => g.reorderableColumns && f(p)(E)),
22489
+ onDrop: (E) => g.reorderableColumns && f(c)(E, v),
22490
+ onClick: (E) => g.$emit("headerClick", v)
22488
22491
  }, [
22489
22492
  C("div", yS, [
22490
22493
  C("div", wS, [
22491
- v.editing && g.rules?.required ? (h(), S("span", _S, "*")) : D("", !0),
22492
- J(v.$slots, `header_${g.id}`, {}, () => [
22493
- ee(x(g.title), 1)
22494
+ g.editing && v.rules?.required ? (h(), S("span", _S, "*")) : D("", !0),
22495
+ J(g.$slots, `header_${v.id}`, {}, () => [
22496
+ ee(x(v.title), 1)
22494
22497
  ])
22495
22498
  ]),
22496
- v.sortField === g.id ? (h(), S("div", SS, [
22499
+ g.sortField === v.id ? (h(), S("div", SS, [
22497
22500
  $(f(ie), {
22498
22501
  size: "xs",
22499
- icon: `material-keyboard_arrow_${v.sortDirection === "DESC" ? "down" : "up"}`
22502
+ icon: `material-keyboard_arrow_${g.sortDirection === "DESC" ? "down" : "up"}`
22500
22503
  }, null, 8, ["icon"])
22501
22504
  ])) : (h(), S("div", ES, [
22502
22505
  $(f(ie), {
@@ -22509,20 +22512,20 @@ const hS = { class: "vc-table-columns-header__row" }, vS = {
22509
22512
  })
22510
22513
  ]))
22511
22514
  ]),
22512
- v.resizableColumns ? (h(), S("div", {
22515
+ g.resizableColumns ? (h(), S("div", {
22513
22516
  key: 0,
22514
22517
  class: q(["vc-table-columns-header__cell-resizer", {
22515
- "vc-table-columns-header__cell-resizer--cursor": v.resizableColumns
22518
+ "vc-table-columns-header__cell-resizer--cursor": g.resizableColumns
22516
22519
  }]),
22517
- onMousedown: ce((E) => v.resizableColumns && f(_)(E, g), ["stop"])
22520
+ onMousedown: ce((E) => g.resizableColumns && f(_)(E, v), ["stop"])
22518
22521
  }, null, 42, CS)) : D("", !0)
22519
22522
  ], 46, bS))), 128)),
22520
- v.isHeaderHover && v.expanded ? (h(), S("div", AS, [
22523
+ g.isHeaderHover && g.expanded ? (h(), S("div", AS, [
22521
22524
  $(pS, {
22522
- items: v.internalColumnsSorted,
22523
- "state-key": v.stateKey,
22524
- onChange: w[5] || (w[5] = (g) => v.$emit("toggleColumn", g)),
22525
- onOnActive: w[6] || (w[6] = (g) => v.$emit("columnSwitcher", g))
22525
+ items: g.internalColumnsSorted,
22526
+ "state-key": g.stateKey,
22527
+ onChange: w[5] || (w[5] = (v) => g.$emit("toggleColumn", v)),
22528
+ onOnActive: w[6] || (w[6] = (v) => g.$emit("columnSwitcher", v))
22526
22529
  }, null, 8, ["items", "state-key"])
22527
22530
  ])) : D("", !0)
22528
22531
  ]),
@@ -22780,25 +22783,25 @@ const hS = { class: "vc-table-columns-header__row" }, vS = {
22780
22783
  });
22781
22784
  function jS(n, e) {
22782
22785
  const t = O(() => n.value), s = T(), o = T(!1), r = T(), i = T(), l = T(null), a = T({ x: 0, y: 0 });
22783
- function u(w, g, b) {
22784
- w && g !== b && (b >= w.length && (b %= w.length, g %= w.length), w.splice(b, 0, w.splice(g, 1)[0]));
22786
+ function u(w, v, b) {
22787
+ w && v !== b && (b >= w.length && (b %= w.length, v %= w.length), w.splice(b, 0, w.splice(v, 1)[0]));
22785
22788
  }
22786
22789
  function d(w) {
22787
22790
  if (w.currentTarget instanceof HTMLElement) {
22788
- const g = w.currentTarget;
22789
- console.log("row", g);
22790
- const b = g.getBoundingClientRect();
22791
+ const v = w.currentTarget;
22792
+ console.log("row", v);
22793
+ const b = v.getBoundingClientRect();
22791
22794
  a.value = {
22792
22795
  x: w.clientX - b.left,
22793
22796
  y: w.clientY - b.top
22794
22797
  };
22795
- const E = g.cloneNode(!0);
22796
- E.style.width = `${g.offsetWidth}px`, E.style.height = `${g.offsetHeight}px`, E.style.position = "fixed", E.style.pointerEvents = "none", E.style.zIndex = "9999", E.style.opacity = "0.8", E.style.background = "var(--table-row-bg-odd)", E.style.display = "none", E.classList.add("vc-table-row__ghost-row"), document.body.appendChild(E), l.value = E, g.draggable = !0;
22798
+ const E = v.cloneNode(!0);
22799
+ E.style.width = `${v.offsetWidth}px`, E.style.height = `${v.offsetHeight}px`, E.style.position = "fixed", E.style.pointerEvents = "none", E.style.zIndex = "9999", E.style.opacity = "0.8", E.style.background = "var(--table-row-bg-odd)", E.style.display = "none", E.classList.add("vc-table-row__ghost-row"), document.body.appendChild(E), l.value = E, v.draggable = !0;
22797
22800
  }
22798
22801
  }
22799
- function p(w, g) {
22800
- console.log("onRowDragStart", w, g), o.value = !0;
22801
- const b = t.value.indexOf(g);
22802
+ function p(w, v) {
22803
+ console.log("onRowDragStart", w, v), o.value = !0;
22804
+ const b = t.value.indexOf(v);
22802
22805
  if (s.value = b, i.value = b, w.dataTransfer) {
22803
22806
  w.dataTransfer.setData("text", "row-reorder"), w.dataTransfer.effectAllowed = "move";
22804
22807
  const E = document.createElement("div");
@@ -22807,9 +22810,9 @@ function jS(n, e) {
22807
22810
  }, 0);
22808
22811
  }
22809
22812
  }
22810
- function c(w, g) {
22813
+ function c(w, v) {
22811
22814
  if (!o.value || s.value === void 0) return;
22812
- const b = t.value.indexOf(g);
22815
+ const b = t.value.indexOf(v);
22813
22816
  if (b === s.value) return;
22814
22817
  const E = w.currentTarget, L = E.closest(".vc-table-body");
22815
22818
  if (!L) {
@@ -22829,13 +22832,13 @@ function jS(n, e) {
22829
22832
  function _(w) {
22830
22833
  o.value = !1, s.value = void 0, i.value = void 0, r.value = void 0, w.currentTarget.draggable = !1, l.value && (document.body.removeChild(l.value), l.value = null);
22831
22834
  }
22832
- function v(w) {
22835
+ function g(w) {
22833
22836
  if (r.value !== void 0 && i.value !== void 0) {
22834
- const g = [...t.value];
22835
- u(g, i.value, r.value), e({
22837
+ const v = [...t.value];
22838
+ u(v, i.value, r.value), e({
22836
22839
  dragIndex: i.value,
22837
22840
  dropIndex: r.value,
22838
- value: g
22841
+ value: v
22839
22842
  });
22840
22843
  }
22841
22844
  m(w), _(w), w.preventDefault();
@@ -22847,7 +22850,7 @@ function jS(n, e) {
22847
22850
  onRowDragOver: c,
22848
22851
  onRowDragLeave: m,
22849
22852
  onRowDragEnd: _,
22850
- onRowDrop: v
22853
+ onRowDrop: g
22851
22854
  };
22852
22855
  }
22853
22856
  const xS = /* @__PURE__ */ H({
@@ -22889,13 +22892,13 @@ const xS = /* @__PURE__ */ H({
22889
22892
  emits: ["itemClick", "onEditComplete", "onCellBlur", "headerMouseOver", "columnSwitcher", "headerClick", "selectAll", "update:headerCheckbox", "columnReorder", "columnResize", "row:reorder", "showActions", "closeActions", "toggleColumn"],
22890
22893
  setup(n, { expose: e, emit: t }) {
22891
22894
  const s = n, o = t, { items: r } = Ze(s), i = Yt(), l = Object.keys(i), { draggedRow: a, onRowMouseDown: u, onRowDragStart: d, onRowDragOver: p, onRowDragLeave: c, onRowDragEnd: m, onRowDrop: _ } = jS(r, (A) => o("row:reorder", A));
22892
- function v(A) {
22895
+ function g(A) {
22893
22896
  o("headerMouseOver", A);
22894
22897
  }
22895
22898
  function w(A) {
22896
22899
  o("columnSwitcher", A);
22897
22900
  }
22898
- function g(A) {
22901
+ function v(A) {
22899
22902
  const P = { ...A };
22900
22903
  delete P.predefined, o("headerClick", P);
22901
22904
  }
@@ -22941,9 +22944,9 @@ const xS = /* @__PURE__ */ H({
22941
22944
  "state-key": A.stateKey,
22942
22945
  "internal-columns": A.internalColumns,
22943
22946
  "reorderable-columns": A.reorderableColumns,
22944
- onHeaderMouseOver: v,
22947
+ onHeaderMouseOver: g,
22945
22948
  onColumnSwitcher: w,
22946
- onHeaderClick: g,
22949
+ onHeaderClick: v,
22947
22950
  "onUpdate:headerCheckbox": P[0] || (P[0] = (M) => A.$emit("update:headerCheckbox", M)),
22948
22951
  onColumnReorder: P[1] || (P[1] = (M) => A.$emit("columnReorder")),
22949
22952
  onColumnResize: P[2] || (P[2] = (M) => A.$emit("columnResize")),
@@ -23214,7 +23217,7 @@ const xS = /* @__PURE__ */ H({
23214
23217
  }), It(() => {
23215
23218
  r.isSearchVisible.value[m.value] && r.closeSearch(m.value), u("global-search");
23216
23219
  });
23217
- const v = () => Q(
23220
+ const g = () => Q(
23218
23221
  qS,
23219
23222
  {
23220
23223
  searchValue: t.searchValue,
@@ -23229,11 +23232,11 @@ const xS = /* @__PURE__ */ H({
23229
23232
  } })
23230
23233
  } : void 0
23231
23234
  );
23232
- return (w, g) => (h(), j(rt, { name: "table-header" }, {
23235
+ return (w, v) => (h(), j(rt, { name: "table-header" }, {
23233
23236
  default: I(() => [
23234
23237
  c.value && p.value ? (h(), S("div", KS, [
23235
- J(w.$slots, "header", { header: v }, () => [
23236
- (h(), j(Ne(v)))
23238
+ J(w.$slots, "header", { header: g }, () => [
23239
+ (h(), j(Ne(g)))
23237
23240
  ])
23238
23241
  ])) : D("", !0)
23239
23242
  ]),
@@ -23399,8 +23402,8 @@ const xS = /* @__PURE__ */ H({
23399
23402
  },
23400
23403
  emits: ["paginationClick", "selectionChanged", "search:change", "headerClick", "itemClick", "scroll:ptr", "row:reorder", "select:all", "onEditComplete", "onAddNewRow", "onCellBlur"],
23401
23404
  setup(n, { emit: e }) {
23402
- const t = n, s = e, o = at(), { items: r, columns: i, stateKey: l, columnSelector: a, expanded: u, selectionItems: d, enableItemActions: p, itemActionBuilder: c } = Ze(t), m = T(), _ = T(), v = Yt(), w = Object.keys(v), {
23403
- selection: g,
23405
+ const t = n, s = e, o = at(), { items: r, columns: i, stateKey: l, columnSelector: a, expanded: u, selectionItems: d, enableItemActions: p, itemActionBuilder: c } = Ze(t), m = T(), _ = T(), g = Yt(), w = Object.keys(g), {
23406
+ selection: v,
23404
23407
  allSelected: b,
23405
23408
  disabledSelection: E,
23406
23409
  headerCheckbox: L,
@@ -23447,7 +23450,7 @@ const xS = /* @__PURE__ */ H({
23447
23450
  (X) => {
23448
23451
  if (X) {
23449
23452
  if (!X?.length) return;
23450
- g.value = li([], g.value, X);
23453
+ v.value = li([], v.value, X);
23451
23454
  }
23452
23455
  },
23453
23456
  {
@@ -23472,16 +23475,16 @@ const xS = /* @__PURE__ */ H({
23472
23475
  }
23473
23476
  return (X, ue) => {
23474
23477
  const mt = Vo("loading");
23475
- return De((h(), S("div", uE, [
23478
+ return Be((h(), S("div", uE, [
23476
23479
  $(nE, {
23477
23480
  multiselect: X.multiselect,
23478
- selection: f(g),
23481
+ selection: f(v),
23479
23482
  "all-selected": f(b),
23480
23483
  "total-count": X.totalCount,
23481
23484
  "header-checkbox": f(L),
23482
23485
  "select-all": X.selectAll,
23483
23486
  "show-selection-choice": f(U),
23484
- "onUpdate:selection": ue[0] || (ue[0] = (ve) => g.value = ve),
23487
+ "onUpdate:selection": ue[0] || (ue[0] = (ve) => v.value = ve),
23485
23488
  "onUpdate:allSelected": ue[1] || (ue[1] = (ve) => b.value = ve),
23486
23489
  "onUpdate:headerCheckbox": ue[2] || (ue[2] = (ve) => L.value = ve),
23487
23490
  "onSelect:all": f(P)
@@ -23516,7 +23519,7 @@ const xS = /* @__PURE__ */ H({
23516
23519
  ref: _,
23517
23520
  "no-padding": !0,
23518
23521
  class: "vc-table__scroll-container",
23519
- "use-ptr": f(g)?.length === 0 ? X.pullToReload : void 0,
23522
+ "use-ptr": f(v)?.length === 0 ? X.pullToReload : void 0,
23520
23523
  "onScroll:ptr": ue[13] || (ue[13] = (ve) => X.$emit("scroll:ptr"))
23521
23524
  }, {
23522
23525
  default: I(() => [
@@ -23527,7 +23530,7 @@ const xS = /* @__PURE__ */ H({
23527
23530
  "item-action-builder": f(c),
23528
23531
  multiselect: X.multiselect,
23529
23532
  "disabled-selection": f(E),
23530
- selection: f(g),
23533
+ selection: f(v),
23531
23534
  "is-selected": f(A),
23532
23535
  "row-checkbox": f(M),
23533
23536
  editing: X.editing,
@@ -23563,7 +23566,7 @@ const xS = /* @__PURE__ */ H({
23563
23566
  "select-all": X.selectAll,
23564
23567
  "show-selection-choice": f(U),
23565
23568
  "all-selected": f(b),
23566
- selection: f(g),
23569
+ selection: f(v),
23567
23570
  "is-selected": f(A),
23568
23571
  "disabled-selection": f(E),
23569
23572
  "columns-init": f(Y),
@@ -23801,12 +23804,12 @@ const bA = {
23801
23804
  ar().register([
23802
23805
  { key: "light", localizationKey: "core.themes.light" }
23803
23806
  // { key: "dark", localizationKey: "core.themes.dark" },
23804
- ]), window.fetch = bE(e.router), e.i18n?.locale && (Le.global.locale.value = e.i18n.locale), e.i18n?.fallbackLocale && (Le.global.fallbackLocale.value = e.i18n.fallbackLocale), n.use(Le);
23807
+ ]), window.fetch = bE(e.router), e.i18n?.locale && (De.global.locale.value = e.i18n.locale), e.i18n?.fallbackLocale && (De.global.fallbackLocale.value = e.i18n.fallbackLocale), n.use(De);
23805
23808
  const { resolveCamelCaseLocale: t } = rs();
23806
23809
  n.config.globalProperties.$mergeLocaleMessage = (i, l) => {
23807
- Le.global.mergeLocaleMessage(t(i), l);
23810
+ De.global.mergeLocaleMessage(t(i), l);
23808
23811
  }, Object.entries(CE).forEach(([i, l]) => {
23809
- Le.global.mergeLocaleMessage(t(i), l);
23812
+ De.global.mergeLocaleMessage(t(i), l);
23810
23813
  }), Object.entries(Pa).forEach(([i, l]) => {
23811
23814
  n.component(i, l);
23812
23815
  }), Object.entries(Ra).forEach(([i, l]) => {
@@ -23862,7 +23865,7 @@ const bA = {
23862
23865
  if (i.meta.permissions) {
23863
23866
  if (a(i.meta.permissions)) return !0;
23864
23867
  {
23865
- ze.error(Le.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), {
23868
+ ze.error(De.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), {
23866
23869
  timeout: 3e3
23867
23870
  });
23868
23871
  const u = r(i);
@@ -24088,7 +24091,7 @@ export {
24088
24091
  Ml as fileWeight,
24089
24092
  hn as generateId,
24090
24093
  Xl as getPopupPlugin,
24091
- Le as i18n,
24094
+ De as i18n,
24092
24095
  bl as kebabToCamel,
24093
24096
  cs as kebabToPascal,
24094
24097
  ks as languageToCountryMap,