@anzusystems/common-admin 1.47.0-beta.349 → 1.47.0-beta.350

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { defineComponent as we, createBlock as Q, openBlock as U, withCtx as L, createVNode as N, createElementBlock as he, createCommentVNode as be, renderSlot as _e, normalizeClass as nt, toDisplayString as ye, createElementVNode as $e, isProxy as Cr, toRaw as Zn, isRef as Ra, unref as Z, computed as V, Fragment as at, normalizeStyle as Dr, createTextVNode as Oe, shallowRef as ao, watch as Ie, ref as P, reactive as jt, inject as ee, createSlots as _t, withDirectives as Yn, onMounted as Pa, withModifiers as Ee, onUnmounted as kr, TransitionGroup as Er, mergeProps as it, isVNode as Tr, mergeModels as wt, useModel as Ut, useTemplateRef as Mt, nextTick as ze, withKeys as ka, vModelText as oo, getCurrentInstance as Jn, resolveDynamicComponent as Ar, renderList as Un, toValue as ro, toRef as xr, onBeforeUnmount as Ir, resolveComponent as Vn, provide as lo } from "vue";
1
+ import { defineComponent as we, createBlock as Q, openBlock as U, withCtx as L, createVNode as N, createElementBlock as he, createCommentVNode as be, renderSlot as _e, normalizeClass as nt, toDisplayString as ye, createElementVNode as $e, isProxy as Cr, toRaw as Zn, isRef as Ra, unref as Z, computed as V, Fragment as at, normalizeStyle as Dr, createTextVNode as Oe, shallowRef as ao, watch as Te, ref as P, reactive as jt, inject as ee, createSlots as _t, withDirectives as Yn, onMounted as Pa, withModifiers as Ee, onUnmounted as kr, TransitionGroup as Er, mergeProps as it, isVNode as Tr, mergeModels as wt, useModel as Ut, useTemplateRef as Mt, nextTick as ze, withKeys as ka, vModelText as oo, getCurrentInstance as Jn, resolveDynamicComponent as Ar, renderList as Un, toValue as ro, toRef as xr, onBeforeUnmount as Ir, resolveComponent as Vn, provide as lo } from "vue";
2
2
  import { useI18n as Ne, createI18n as Mr } from "vue-i18n";
3
- import { useEventBus as Ge, tryOnBeforeUnmount as _r, watchDebounced as Na, useResizeObserver as $r, watchThrottled as Fr, defaultDocument as Or, tryOnMounted as Br, tryOnScopeDispose as Rr, unrefElement as Pr } from "@vueuse/core";
3
+ import { useEventBus as Ge, tryOnBeforeUnmount as _r, watchDebounced as Na, useResizeObserver as $r, watchThrottled as Fr, defaultDocument as Or, unrefElement as Br, tryOnMounted as Rr, tryOnScopeDispose as Pr } from "@vueuse/core";
4
4
  import { VAutocomplete as Qn } from "vuetify/components/VAutocomplete";
5
5
  import { VChip as ea } from "vuetify/components/VChip";
6
6
  import { VListItem as Vt, VList as Ro, VListItemTitle as Nr } from "vuetify/components/VList";
@@ -56,7 +56,7 @@ const ll = { class: "text-high-emphasis" }, Qt = /* @__PURE__ */ we({
56
56
  }), T = (e) => typeof e > "u", ve = (e) => !T(e), G = (e) => e === null, Ht = (e) => typeof e == "number", Fe = (e) => typeof e == "string", ue = (e) => Array.isArray(e), Sc = (e) => typeof e == "function", st = (e) => typeof e == "boolean", wc = (e) => Fe(e) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e), Cc = (e) => {
57
57
  const n = parseFloat(e);
58
58
  return !isNaN(e) && (n | 0) === n;
59
- }, gn = (e) => typeof e == "object" && !ue(e) && !G(e), un = (e) => gn(e) ? Object.keys(e).length === 0 : !1, Aa = (e) => ue(e) && e.length === 0, Vo = (e) => G(e) || T(e) || e === "" || e === 0 || Aa(e) || un(e), xe = (e) => {
59
+ }, gn = (e) => typeof e == "object" && !ue(e) && !G(e), un = (e) => gn(e) ? Object.keys(e).length === 0 : !1, Aa = (e) => ue(e) && e.length === 0, Vo = (e) => G(e) || T(e) || e === "" || e === 0 || Aa(e) || un(e), Ie = (e) => {
60
60
  if (typeof structuredClone == "function")
61
61
  try {
62
62
  return Cr(e) ? structuredClone(Zn(e)) : Ra(e) ? structuredClone(Z(e)) : structuredClone(e);
@@ -169,7 +169,7 @@ const ll = { class: "text-high-emphasis" }, Qt = /* @__PURE__ */ we({
169
169
  if (n.isModerator && (i = o("common.collab.moderator") + ": "), l.value)
170
170
  return l.value.person.fullName.length ? i + l.value.person.fullName : i + l.value.email.split("@")[0];
171
171
  });
172
- return Ie(
172
+ return Te(
173
173
  l,
174
174
  async (i) => {
175
175
  a.value || T(i) || !i._loaded || (t.value = i, a.value = !0);
@@ -353,18 +353,18 @@ function _l() {
353
353
  };
354
354
  }
355
355
  function aa(e, n, t = !1) {
356
- const { collabOptions: a } = zt(), { currentUserId: r } = _l(), { collabSocket: o, collabFieldLocksState: l, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ml(), u = Dl(), m = P(), c = P(), b = El(), p = P(), E = P(), v = jo(), f = P(), d = P(), h = (O, M) => {
356
+ const { collabOptions: a } = zt(), { currentUserId: r } = _l(), { collabSocket: o, collabFieldLocksState: l, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ml(), u = Dl(), m = P(), c = P(), g = El(), p = P(), E = P(), h = jo(), f = P(), d = P(), v = (O, M) => {
357
357
  O.room !== e || O.field !== n || T(M) || T(c.value) || c.value(M);
358
358
  }, C = (O, M) => {
359
359
  O.room !== e || O.field !== n || T(M) || T(E.value) || E.value(M);
360
360
  }, x = (O) => {
361
361
  O.room === e && ve(d.value) && d.value();
362
362
  }, I = (O) => {
363
- c.value = O, m.value = u.on(h);
364
- }, g = (O) => {
365
- E.value = O, p.value = b.on(C);
363
+ c.value = O, m.value = u.on(v);
364
+ }, b = (O) => {
365
+ E.value = O, p.value = g.on(C);
366
366
  }, _ = (O) => {
367
- d.value = O, f.value = v.on(
367
+ d.value = O, f.value = h.on(
368
368
  x
369
369
  );
370
370
  };
@@ -382,7 +382,7 @@ function aa(e, n, t = !1) {
382
382
  });
383
383
  return {
384
384
  addCollabFieldDataChangeListener: I,
385
- addCollabFieldLockStatusListener: g,
385
+ addCollabFieldLockStatusListener: b,
386
386
  addCollabGatheringBufferDataListener: _,
387
387
  acquireCollabFieldLock: (O = {}) => {
388
388
  if (!a.value.enabled || T(o.value)) return;
@@ -390,7 +390,7 @@ function aa(e, n, t = !1) {
390
390
  M && M.status === sa.Inactive || o.value?.timeout(1e3).emit("acquireFieldLock", e, n, O, (A, w) => {
391
391
  const y = { field: n, room: e };
392
392
  if (A || co(w))
393
- return void b.emit(
393
+ return void g.emit(
394
394
  y,
395
395
  Tn(an.Acquire, on.Failure)
396
396
  );
@@ -399,7 +399,7 @@ function aa(e, n, t = !1) {
399
399
  const S = new Map(w.locks ? Object.entries(w.locks) : []);
400
400
  for (const [D, F] of S.entries())
401
401
  l.get(e)?.set(D, F);
402
- return void b.emit(
402
+ return void g.emit(
403
403
  y,
404
404
  Tn(an.Acquire, on.Success)
405
405
  );
@@ -416,7 +416,7 @@ function aa(e, n, t = !1) {
416
416
  o.value?.timeout(1e3).emit("releaseFieldLock", e, n, O, M, (w, y) => {
417
417
  const S = { field: n, room: e };
418
418
  if (w || co(y))
419
- return void b.emit(
419
+ return void g.emit(
420
420
  S,
421
421
  Tn(an.Release, on.Failure)
422
422
  );
@@ -424,7 +424,7 @@ function aa(e, n, t = !1) {
424
424
  if (l.has(e) || l.set(e, /* @__PURE__ */ new Map()), y.locks)
425
425
  for (const D of Object.keys(y.locks))
426
426
  l.get(e)?.delete(D);
427
- return void b.emit(
427
+ return void g.emit(
428
428
  S,
429
429
  Tn(an.Release, on.Success)
430
430
  );
@@ -470,18 +470,18 @@ const $l = {
470
470
  },
471
471
  emits: ["update:modelValue", "click:append", "blur", "focus"],
472
472
  setup(e, { expose: n, emit: t }) {
473
- const a = e, r = t, o = P(null), { collabOptions: l } = zt(), s = P((I, g) => {
473
+ const a = e, r = t, o = P(null), { collabOptions: l } = zt(), s = P((I, b) => {
474
474
  }), i = P((I) => {
475
475
  }), u = P(null);
476
476
  if (l.value.enabled && ve(a.collab)) {
477
477
  const {
478
478
  releaseCollabFieldLock: I,
479
- acquireCollabFieldLock: g,
479
+ acquireCollabFieldLock: b,
480
480
  addCollabFieldLockStatusListener: _,
481
481
  addCollabGatheringBufferDataListener: B,
482
482
  lockedByUser: k
483
483
  } = aa(a.collab.room, a.collab.field);
484
- s.value = I, i.value = g, Ie(
484
+ s.value = I, i.value = b, Te(
485
485
  k,
486
486
  ($) => {
487
487
  u.value = $;
@@ -493,30 +493,30 @@ const $l = {
493
493
  o.value?.blur();
494
494
  });
495
495
  }
496
- const { t: m } = Ne(), c = ee(Va, void 0), b = ee(Ha, void 0), p = (I) => {
496
+ const { t: m } = Ne(), c = ee(Va, void 0), g = ee(Ha, void 0), p = (I) => {
497
497
  r("update:modelValue", I);
498
498
  }, E = () => {
499
499
  r("blur", a.modelValue), a.v?.$touch(), s.value(a.modelValue);
500
- }, v = () => {
500
+ }, h = () => {
501
501
  r("focus", a.modelValue), i.value();
502
502
  }, f = V(() => ve(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? [a.v.$errors.map((I) => I.$message).join(" ")] : []), d = V(() => {
503
503
  if (ve(a.label)) return a.label;
504
- if (T(c) || T(b) || T(a.v?.$path)) return "";
504
+ if (T(c) || T(g) || T(a.v?.$path)) return "";
505
505
  const { end: I } = hn(a.v?.$path, ".");
506
- return m(c + "." + b + ".model." + I);
507
- }), h = V(() => ve(a.required) ? a.required : !!(a.v?.required && a.v?.required.$params.type === "required")), C = V(() => ve(a.disabled) ? a.disabled : !!u.value);
506
+ return m(c + "." + g + ".model." + I);
507
+ }), v = V(() => ve(a.required) ? a.required : !!(a.v?.required && a.v?.required.$params.type === "required")), C = V(() => ve(a.disabled) ? a.disabled : !!u.value);
508
508
  return n({
509
509
  focus: () => {
510
510
  o.value?.focus();
511
511
  }
512
- }), (I, g) => (U(), Q(ta, {
512
+ }), (I, b) => (U(), Q(ta, {
513
513
  ref_key: "textFieldRef",
514
514
  ref: o,
515
515
  "prepend-icon": e.prependIcon,
516
516
  "data-cy": e.dataCy,
517
517
  "error-messages": f.value,
518
518
  "model-value": e.modelValue,
519
- required: h.value,
519
+ required: v.value,
520
520
  type: e.type,
521
521
  step: e.step,
522
522
  "append-icon": e.appendIcon,
@@ -526,16 +526,16 @@ const $l = {
526
526
  "persistent-placeholder": e.persistentPlaceholder,
527
527
  trim: "",
528
528
  autocomplete: "off",
529
- "onClick:append": g[0] || (g[0] = (_) => r("click:append", _)),
529
+ "onClick:append": b[0] || (b[0] = (_) => r("click:append", _)),
530
530
  onBlur: E,
531
- onFocus: v,
532
- "onUpdate:modelValue": g[1] || (g[1] = (_) => p(_))
531
+ onFocus: h,
532
+ "onUpdate:modelValue": b[1] || (b[1] = (_) => p(_))
533
533
  }, _t({ _: 2 }, [
534
534
  e.hideLabel ? void 0 : {
535
535
  name: "label",
536
536
  fn: L(() => [
537
537
  Oe(ye(d.value), 1),
538
- h.value ? (U(), he("span", $l)) : be("", !0)
538
+ v.value ? (U(), he("span", $l)) : be("", !0)
539
539
  ]),
540
540
  key: "0"
541
541
  },
@@ -609,13 +609,13 @@ function Jc(e, n, t = void 0, a = void 0, r = !1, o = void 0, l = void 0, s = vo
609
609
  if (o)
610
610
  for (const d of Object.keys(c))
611
611
  d in o && (c[d] = o[d]);
612
- const b = e.map((d) => {
613
- const h = { ...Bl, ...d };
614
- return T(h.title) && (T(h.title) && Ol.includes(h.key) ? h.title = m("common.model.tracking." + h.key) : T(h.title) && t && a ? h.title = m(t + "." + a + ".model." + h.key) : h.title = ""), h;
612
+ const g = e.map((d) => {
613
+ const v = { ...Bl, ...d };
614
+ return T(v.title) && (T(v.title) && Ol.includes(v.key) ? v.title = m("common.model.tracking." + v.key) : T(v.title) && t && a ? v.title = m(t + "." + a + ".model." + v.key) : v.title = ""), v;
615
615
  }), p = V(() => {
616
616
  const d = [];
617
- return s && d.push({ key: "data-table-expand", sortable: !1 }), b.forEach((h) => {
618
- n.value.includes(h.key) || d.push(h);
617
+ return s && d.push({ key: "data-table-expand", sortable: !1 }), g.forEach((v) => {
618
+ n.value.includes(v.key) || d.push(v);
619
619
  }), r || d.push({ key: "actions", sortable: !1, fixed: !0 }), d;
620
620
  }), E = (d) => {
621
621
  if (!d) {
@@ -623,21 +623,21 @@ function Jc(e, n, t = void 0, a = void 0, r = !1, o = void 0, l = void 0, s = vo
623
623
  return;
624
624
  }
625
625
  c.sortBy = d.key, c.descending = d.order === mt.Desc;
626
- }, v = () => {
626
+ }, h = () => {
627
627
  if (!i || !localStorage) return;
628
628
  const d = localStorage.getItem(i);
629
629
  if (!d) return;
630
- const h = JSON.parse(d);
631
- gn(h) && ue(h.hidden) && (n.value = h.hidden);
630
+ const v = JSON.parse(d);
631
+ gn(v) && ue(v.hidden) && (n.value = v.hidden);
632
632
  }, f = (d) => {
633
633
  !i || !localStorage || localStorage.setItem(i, JSON.stringify({ hidden: d }));
634
634
  };
635
635
  return Pa(() => {
636
- v();
637
- }), Ie(n, (d) => {
636
+ h();
637
+ }), Te(n, (d) => {
638
638
  f(d);
639
639
  }), {
640
- columnsAll: b,
640
+ columnsAll: g,
641
641
  columnsVisible: p,
642
642
  columnsHidden: n,
643
643
  updateSortBy: E,
@@ -890,12 +890,12 @@ const An = {
890
890
  };
891
891
  return $ && (M[$] = "0px"), k && (k === "center" ? M.left = `calc(50% - ${+R / 2}${O})` : M[k] = "0px"), M;
892
892
  }), m = V(() => l.value ? {
893
- onEnter: g,
893
+ onEnter: b,
894
894
  onLeave: _,
895
895
  onAfterLeave: B
896
896
  } : {}), c = (k) => {
897
- n("click", k), e.closeOnClick && h(k);
898
- }, b = (k) => {
897
+ n("click", k), e.closeOnClick && v(k);
898
+ }, g = (k) => {
899
899
  var $;
900
900
  e.pauseOnHover && (($ = k.timer) == null || $.stop());
901
901
  }, p = (k) => {
@@ -925,7 +925,7 @@ const An = {
925
925
  data: y,
926
926
  duplicates: 0
927
927
  };
928
- $ >= 0 && (D.timer = Vl(() => h(D), D.length));
928
+ $ >= 0 && (D.timer = Vl(() => v(D), D.length));
929
929
  const F = "bottom" in u.value, H = e.reverse ? !F : F;
930
930
  let X = -1;
931
931
  const re = s.value.find((de) => de.title === k.title && de.text === k.text);
@@ -933,24 +933,24 @@ const An = {
933
933
  re.duplicates++;
934
934
  return;
935
935
  }
936
- H ? (r.value.push(D), n("start", D), s.value.length > e.max && (X = 0)) : (r.value.unshift(D), n("start", D), s.value.length > e.max && (X = s.value.length - 1)), X !== -1 && h(s.value[X]);
937
- }, v = (k) => {
936
+ H ? (r.value.push(D), n("start", D), s.value.length > e.max && (X = 0)) : (r.value.unshift(D), n("start", D), s.value.length > e.max && (X = s.value.length - 1)), X !== -1 && v(s.value[X]);
937
+ }, h = (k) => {
938
938
  C(k);
939
939
  }, f = (k) => ["vue-notification-template", e.classes, k.type || ""], d = (k) => l.value ? void 0 : {
940
940
  transition: `all ${k.speed}ms`
941
- }, h = (k) => {
941
+ }, v = (k) => {
942
942
  var $;
943
943
  ($ = k.timer) == null || $.stop(), k.state = An.DESTROYED, B(), n("destroy", k);
944
944
  }, C = (k) => {
945
945
  const $ = r.value.find((R) => R.id === k);
946
- $ && h($);
946
+ $ && v($);
947
947
  }, x = () => {
948
- s.value.forEach(h);
948
+ s.value.forEach(v);
949
949
  }, I = (k, $) => {
950
950
  var R;
951
951
  const O = (R = e.animation) == null ? void 0 : R[k];
952
952
  return typeof O == "function" ? O($) : O;
953
- }, g = (k, $) => {
953
+ }, b = (k, $) => {
954
954
  const R = I("enter", k);
955
955
  o(k, R, {
956
956
  duration: e.speed,
@@ -967,9 +967,9 @@ const An = {
967
967
  r.value = r.value.filter((k) => k.state !== An.DESTROYED);
968
968
  }
969
969
  return Pa(() => {
970
- Nt.on("add", E), Nt.on("close", v);
970
+ Nt.on("add", E), Nt.on("close", h);
971
971
  }), kr(() => {
972
- Nt.off("add", E), Nt.off("close", v);
972
+ Nt.off("add", E), Nt.off("close", h);
973
973
  }), () => {
974
974
  let k;
975
975
  return N("div", {
@@ -984,12 +984,12 @@ const An = {
984
984
  class: "vue-notification-wrapper",
985
985
  style: d($),
986
986
  "data-id": $.id,
987
- onMouseenter: () => b($),
987
+ onMouseenter: () => g($),
988
988
  onMouseleave: () => p($)
989
989
  }, [t.body ? t.body({
990
990
  item: $,
991
991
  class: [e.classes, $.type],
992
- close: () => h($)
992
+ close: () => v($)
993
993
  }) : N("div", {
994
994
  class: f($),
995
995
  onClick: () => c($)
@@ -1100,8 +1100,8 @@ function oa() {
1100
1100
  type: "success"
1101
1101
  });
1102
1102
  }, n = (f, d = Qe) => {
1103
- const { t: h } = De.global;
1104
- e(h(f), d);
1103
+ const { t: v } = De.global;
1104
+ e(v(f), d);
1105
1105
  }, t = (f, d = Qe) => {
1106
1106
  Ze({
1107
1107
  group: "alerts",
@@ -1110,8 +1110,8 @@ function oa() {
1110
1110
  type: "error"
1111
1111
  });
1112
1112
  }, a = (f, d = Qe) => {
1113
- const { t: h } = De.global;
1114
- t(h(f), d);
1113
+ const { t: v } = De.global;
1114
+ t(v(f), d);
1115
1115
  }, r = (f, d = Qe) => {
1116
1116
  Ze({
1117
1117
  group: "alerts",
@@ -1120,8 +1120,8 @@ function oa() {
1120
1120
  type: "info"
1121
1121
  });
1122
1122
  }, o = (f, d = Qe) => {
1123
- const { t: h } = De.global;
1124
- r(h(f), d);
1123
+ const { t: v } = De.global;
1124
+ r(v(f), d);
1125
1125
  }, l = (f, d = Qe) => {
1126
1126
  Ze({
1127
1127
  group: "alerts",
@@ -1130,8 +1130,8 @@ function oa() {
1130
1130
  type: "warning"
1131
1131
  });
1132
1132
  }, s = (f, d = Qe) => {
1133
- const { t: h } = De.global;
1134
- l(h(f), d);
1133
+ const { t: v } = De.global;
1134
+ l(v(f), d);
1135
1135
  }, i = (f = Qe) => {
1136
1136
  const { t: d } = De.global;
1137
1137
  Ze({
@@ -1141,22 +1141,22 @@ function oa() {
1141
1141
  type: "error"
1142
1142
  });
1143
1143
  }, u = (f, d = Qe) => {
1144
- const { t: h } = De.global;
1144
+ const { t: v } = De.global;
1145
1145
  Ze({
1146
1146
  group: "alerts",
1147
- text: h("common.alert.recordWas." + f),
1147
+ text: v("common.alert.recordWas." + f),
1148
1148
  duration: d * 1e3,
1149
1149
  type: "success"
1150
1150
  });
1151
- }, m = (f, d = -1, h = !1) => {
1151
+ }, m = (f, d = -1, v = !1) => {
1152
1152
  const { t: C, te: x } = De.global, I = [C("common.alert.fixApiValidationErrors")];
1153
- for (let g = 0; g < f.length; g++) {
1153
+ for (let b = 0; b < f.length; b++) {
1154
1154
  let _ = "";
1155
- h ? _ += f[g].field : x(f[g].field) ? _ += C(f[g].field) : f[g].field.includes("[") ? _ += v(f[g].field) : _ += f[g].field.split(".").at(-1);
1155
+ v ? _ += f[b].field : x(f[b].field) ? _ += C(f[b].field) : f[b].field.includes("[") ? _ += h(f[b].field) : _ += f[b].field.split(".").at(-1);
1156
1156
  const B = /* @__PURE__ */ new Set();
1157
- for (let k = 0; k < f[g].errors.length; k++) {
1158
- if (x("error.apiValidation." + f[g].errors[k])) {
1159
- B.add(C("error.apiValidation." + f[g].errors[k]));
1157
+ for (let k = 0; k < f[b].errors.length; k++) {
1158
+ if (x("error.apiValidation." + f[b].errors[k])) {
1159
+ B.add(C("error.apiValidation." + f[b].errors[k]));
1160
1160
  continue;
1161
1161
  }
1162
1162
  B.add(C("error.apiValidation.noTranslation"));
@@ -1170,15 +1170,15 @@ function oa() {
1170
1170
  type: "error"
1171
1171
  });
1172
1172
  }, c = (f, d = -1) => {
1173
- const { t: h, te: C } = De.global;
1174
- let x = h("error.apiForbiddenOperation.noTranslation");
1175
- C("error.apiForbiddenOperation." + f) && (x = h("error.apiForbiddenOperation." + f)), Ze({
1173
+ const { t: v, te: C } = De.global;
1174
+ let x = v("error.apiForbiddenOperation.noTranslation");
1175
+ C("error.apiForbiddenOperation." + f) && (x = v("error.apiForbiddenOperation." + f)), Ze({
1176
1176
  group: "alerts",
1177
1177
  text: x,
1178
1178
  duration: d * 1e3,
1179
1179
  type: "error"
1180
1180
  });
1181
- }, b = (f = -1) => {
1181
+ }, g = (f = -1) => {
1182
1182
  const { t: d } = De.global;
1183
1183
  Ze({
1184
1184
  group: "alerts",
@@ -1194,9 +1194,9 @@ function oa() {
1194
1194
  duration: f * 1e3,
1195
1195
  type: "error"
1196
1196
  });
1197
- }, E = (f, d = -1) => Ql(f) ? (p(d), !0) : Go(f) ? (m(f.fields, d), !0) : ii(f) ? (a("error.apiDependencyExists.message", d), !0) : oi(f) ? (c(f.detail, d), !0) : ui(f) ? (a("error.apiTimedOut.message", d), !0) : ci(f) || Wl(f) || ja(f) ? (b(d), !0) : !1, v = (f) => {
1198
- const { t: d } = De.global, h = f.split("["), C = h[0].trim(), x = h[1].split("]"), I = x[0], g = x[1] ?? "";
1199
- return d(C) + "[" + I + "]: " + d(C.slice(0, -1) + g);
1197
+ }, E = (f, d = -1) => Ql(f) ? (p(d), !0) : Go(f) ? (m(f.fields, d), !0) : ii(f) ? (a("error.apiDependencyExists.message", d), !0) : oi(f) ? (c(f.detail, d), !0) : ui(f) ? (a("error.apiTimedOut.message", d), !0) : ci(f) || Wl(f) || ja(f) ? (g(d), !0) : !1, h = (f) => {
1198
+ const { t: d } = De.global, v = f.split("["), C = v[0].trim(), x = v[1].split("]"), I = x[0], b = x[1] ?? "";
1199
+ return d(C) + "[" + I + "]: " + d(C.slice(0, -1) + b);
1200
1200
  };
1201
1201
  return {
1202
1202
  showSuccess: e,
@@ -1211,7 +1211,7 @@ function oa() {
1211
1211
  showRecordWas: u,
1212
1212
  showApiValidationError: m,
1213
1213
  showApiForbiddenOperationError: c,
1214
- showUnknownError: b,
1214
+ showUnknownError: g,
1215
1215
  showForbiddenError: p,
1216
1216
  showErrorsDefault: E
1217
1217
  };
@@ -1231,7 +1231,7 @@ function mi() {
1231
1231
  (function(t, a) {
1232
1232
  e.exports = a();
1233
1233
  })(fi, (function() {
1234
- var t = 1e3, a = 6e4, r = 36e5, o = "millisecond", l = "second", s = "minute", i = "hour", u = "day", m = "week", c = "month", b = "quarter", p = "year", E = "date", v = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, d = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, h = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
1234
+ var t = 1e3, a = 6e4, r = 36e5, o = "millisecond", l = "second", s = "minute", i = "hour", u = "day", m = "week", c = "month", g = "quarter", p = "year", E = "date", h = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, d = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
1235
1235
  var w = ["th", "st", "nd", "rd"], y = A % 100;
1236
1236
  return "[" + A + (w[(y - 20) % 10] || w[y] || w[0]) + "]";
1237
1237
  } }, C = function(A, w, y) {
@@ -1247,11 +1247,11 @@ function mi() {
1247
1247
  }, a: function(A) {
1248
1248
  return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
1249
1249
  }, p: function(A) {
1250
- return { M: c, y: p, w: m, d: u, D: E, h: i, m: s, s: l, ms: o, Q: b }[A] || String(A || "").toLowerCase().replace(/s$/, "");
1250
+ return { M: c, y: p, w: m, d: u, D: E, h: i, m: s, s: l, ms: o, Q: g }[A] || String(A || "").toLowerCase().replace(/s$/, "");
1251
1251
  }, u: function(A) {
1252
1252
  return A === void 0;
1253
- } }, I = "en", g = {};
1254
- g[I] = h;
1253
+ } }, I = "en", b = {};
1254
+ b[I] = v;
1255
1255
  var _ = "$isDayjsObject", B = function(A) {
1256
1256
  return A instanceof O || !(!A || !A[_]);
1257
1257
  }, k = function A(w, y, S) {
@@ -1259,12 +1259,12 @@ function mi() {
1259
1259
  if (!w) return I;
1260
1260
  if (typeof w == "string") {
1261
1261
  var F = w.toLowerCase();
1262
- g[F] && (D = F), y && (g[F] = y, D = F);
1262
+ b[F] && (D = F), y && (b[F] = y, D = F);
1263
1263
  var H = w.split("-");
1264
1264
  if (!D && H.length > 1) return A(H[0]);
1265
1265
  } else {
1266
1266
  var X = w.name;
1267
- g[X] = w, D = X;
1267
+ b[X] = w, D = X;
1268
1268
  }
1269
1269
  return !S && D && (I = D), D || !S && I;
1270
1270
  }, $ = function(A, w) {
@@ -1301,7 +1301,7 @@ function mi() {
1301
1301
  }, w.$utils = function() {
1302
1302
  return R;
1303
1303
  }, w.isValid = function() {
1304
- return this.$d.toString() !== v;
1304
+ return this.$d.toString() !== h;
1305
1305
  }, w.isSame = function(y, S) {
1306
1306
  var D = $(y);
1307
1307
  return this.startOf(S) <= D && D <= this.endOf(S);
@@ -1372,7 +1372,7 @@ function mi() {
1372
1372
  return this.add(-1 * y, S);
1373
1373
  }, w.format = function(y) {
1374
1374
  var S = this, D = this.$locale();
1375
- if (!this.isValid()) return D.invalidDate || v;
1375
+ if (!this.isValid()) return D.invalidDate || h;
1376
1376
  var F = y || "YYYY-MM-DDTHH:mm:ssZ", H = R.z(this), X = this.$H, re = this.$m, de = this.$M, Ce = D.weekdays, Se = D.months, z = D.meridiem, te = function(me, K, J, le) {
1377
1377
  return me && (me[K] || me(S, F)) || J[K].slice(0, le);
1378
1378
  }, q = function(me) {
@@ -1449,7 +1449,7 @@ function mi() {
1449
1449
  case c:
1450
1450
  F = Se();
1451
1451
  break;
1452
- case b:
1452
+ case g:
1453
1453
  F = Se() / 3;
1454
1454
  break;
1455
1455
  case m:
@@ -1474,7 +1474,7 @@ function mi() {
1474
1474
  }, w.daysInMonth = function() {
1475
1475
  return this.endOf(c).$D;
1476
1476
  }, w.$locale = function() {
1477
- return g[this.$L];
1477
+ return b[this.$L];
1478
1478
  }, w.locale = function(y, S) {
1479
1479
  if (!y) return this.$L;
1480
1480
  var D = this.clone(), F = k(y, S, !0);
@@ -1499,7 +1499,7 @@ function mi() {
1499
1499
  return A.$i || (A(w, O, $), A.$i = !0), $;
1500
1500
  }, $.locale = k, $.isDayjs = B, $.unix = function(A) {
1501
1501
  return $(1e3 * A);
1502
- }, $.en = g[I], $.Ls = g, $.p = {}, $;
1502
+ }, $.en = b[I], $.Ls = b, $.p = {}, $;
1503
1503
  }));
1504
1504
  })($n)), $n.exports;
1505
1505
  }
@@ -1514,51 +1514,51 @@ function vi() {
1514
1514
  var t = "minute", a = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
1515
1515
  return function(o, l, s) {
1516
1516
  var i = l.prototype;
1517
- s.utc = function(v) {
1518
- var f = { date: v, utc: !0, args: arguments };
1517
+ s.utc = function(h) {
1518
+ var f = { date: h, utc: !0, args: arguments };
1519
1519
  return new l(f);
1520
- }, i.utc = function(v) {
1520
+ }, i.utc = function(h) {
1521
1521
  var f = s(this.toDate(), { locale: this.$L, utc: !0 });
1522
- return v ? f.add(this.utcOffset(), t) : f;
1522
+ return h ? f.add(this.utcOffset(), t) : f;
1523
1523
  }, i.local = function() {
1524
1524
  return s(this.toDate(), { locale: this.$L, utc: !1 });
1525
1525
  };
1526
1526
  var u = i.parse;
1527
- i.parse = function(v) {
1528
- v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), u.call(this, v);
1527
+ i.parse = function(h) {
1528
+ h.utc && (this.$u = !0), this.$utils().u(h.$offset) || (this.$offset = h.$offset), u.call(this, h);
1529
1529
  };
1530
1530
  var m = i.init;
1531
1531
  i.init = function() {
1532
1532
  if (this.$u) {
1533
- var v = this.$d;
1534
- this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
1533
+ var h = this.$d;
1534
+ this.$y = h.getUTCFullYear(), this.$M = h.getUTCMonth(), this.$D = h.getUTCDate(), this.$W = h.getUTCDay(), this.$H = h.getUTCHours(), this.$m = h.getUTCMinutes(), this.$s = h.getUTCSeconds(), this.$ms = h.getUTCMilliseconds();
1535
1535
  } else m.call(this);
1536
1536
  };
1537
1537
  var c = i.utcOffset;
1538
- i.utcOffset = function(v, f) {
1538
+ i.utcOffset = function(h, f) {
1539
1539
  var d = this.$utils().u;
1540
- if (d(v)) return this.$u ? 0 : d(this.$offset) ? c.call(this) : this.$offset;
1541
- if (typeof v == "string" && (v = (function(I) {
1540
+ if (d(h)) return this.$u ? 0 : d(this.$offset) ? c.call(this) : this.$offset;
1541
+ if (typeof h == "string" && (h = (function(I) {
1542
1542
  I === void 0 && (I = "");
1543
- var g = I.match(a);
1544
- if (!g) return null;
1545
- var _ = ("" + g[0]).match(r) || ["-", 0, 0], B = _[0], k = 60 * +_[1] + +_[2];
1543
+ var b = I.match(a);
1544
+ if (!b) return null;
1545
+ var _ = ("" + b[0]).match(r) || ["-", 0, 0], B = _[0], k = 60 * +_[1] + +_[2];
1546
1546
  return k === 0 ? 0 : B === "+" ? k : -k;
1547
- })(v), v === null)) return this;
1548
- var h = Math.abs(v) <= 16 ? 60 * v : v;
1549
- if (h === 0) return this.utc(f);
1547
+ })(h), h === null)) return this;
1548
+ var v = Math.abs(h) <= 16 ? 60 * h : h;
1549
+ if (v === 0) return this.utc(f);
1550
1550
  var C = this.clone();
1551
- if (f) return C.$offset = h, C.$u = !1, C;
1551
+ if (f) return C.$offset = v, C.$u = !1, C;
1552
1552
  var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1553
- return (C = this.local().add(h + x, t)).$offset = h, C.$x.$localOffset = x, C;
1553
+ return (C = this.local().add(v + x, t)).$offset = v, C.$x.$localOffset = x, C;
1554
1554
  };
1555
- var b = i.format;
1556
- i.format = function(v) {
1557
- var f = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1558
- return b.call(this, f);
1555
+ var g = i.format;
1556
+ i.format = function(h) {
1557
+ var f = h || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1558
+ return g.call(this, f);
1559
1559
  }, i.valueOf = function() {
1560
- var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1561
- return this.$d.valueOf() - 6e4 * v;
1560
+ var h = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1561
+ return this.$d.valueOf() - 6e4 * h;
1562
1562
  }, i.isUTC = function() {
1563
1563
  return !!this.$u;
1564
1564
  }, i.toISOString = function() {
@@ -1567,14 +1567,14 @@ function vi() {
1567
1567
  return this.toDate().toUTCString();
1568
1568
  };
1569
1569
  var p = i.toDate;
1570
- i.toDate = function(v) {
1571
- return v === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
1570
+ i.toDate = function(h) {
1571
+ return h === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
1572
1572
  };
1573
1573
  var E = i.diff;
1574
- i.diff = function(v, f, d) {
1575
- if (v && this.$u === v.$u) return E.call(this, v, f, d);
1576
- var h = this.local(), C = s(v).local();
1577
- return E.call(h, C, f, d);
1574
+ i.diff = function(h, f, d) {
1575
+ if (h && this.$u === h.$u) return E.call(this, h, f, d);
1576
+ var v = this.local(), C = s(h).local();
1577
+ return E.call(v, C, f, d);
1578
1578
  };
1579
1579
  };
1580
1580
  }));
@@ -1597,21 +1597,21 @@ function yi() {
1597
1597
  }, c = [/[+-]\d\d:?(\d\d)?|Z/, function(f) {
1598
1598
  (this.zone || (this.zone = {})).offset = (function(d) {
1599
1599
  if (!d || d === "Z") return 0;
1600
- var h = d.match(/([+-]|\d\d)/g), C = 60 * h[1] + (+h[2] || 0);
1601
- return C === 0 ? 0 : h[0] === "+" ? -C : C;
1600
+ var v = d.match(/([+-]|\d\d)/g), C = 60 * v[1] + (+v[2] || 0);
1601
+ return C === 0 ? 0 : v[0] === "+" ? -C : C;
1602
1602
  })(f);
1603
- }], b = function(f) {
1603
+ }], g = function(f) {
1604
1604
  var d = i[f];
1605
1605
  return d && (d.indexOf ? d : d.s.concat(d.f));
1606
1606
  }, p = function(f, d) {
1607
- var h, C = i.meridiem;
1607
+ var v, C = i.meridiem;
1608
1608
  if (C) {
1609
1609
  for (var x = 1; x <= 24; x += 1) if (f.indexOf(C(x, 0, d)) > -1) {
1610
- h = x > 12;
1610
+ v = x > 12;
1611
1611
  break;
1612
1612
  }
1613
- } else h = f === (d ? "pm" : "PM");
1614
- return h;
1613
+ } else v = f === (d ? "pm" : "PM");
1614
+ return v;
1615
1615
  }, E = { A: [s, function(f) {
1616
1616
  this.afternoon = p(f, !1);
1617
1617
  }], a: [s, function(f) {
@@ -1625,32 +1625,32 @@ function yi() {
1625
1625
  }], SSS: [/\d{3}/, function(f) {
1626
1626
  this.milliseconds = +f;
1627
1627
  }], s: [l, m("seconds")], ss: [l, m("seconds")], m: [l, m("minutes")], mm: [l, m("minutes")], H: [l, m("hours")], h: [l, m("hours")], HH: [l, m("hours")], hh: [l, m("hours")], D: [l, m("day")], DD: [o, m("day")], Do: [s, function(f) {
1628
- var d = i.ordinal, h = f.match(/\d+/);
1629
- if (this.day = h[0], d) for (var C = 1; C <= 31; C += 1) d(C).replace(/\[|\]/g, "") === f && (this.day = C);
1628
+ var d = i.ordinal, v = f.match(/\d+/);
1629
+ if (this.day = v[0], d) for (var C = 1; C <= 31; C += 1) d(C).replace(/\[|\]/g, "") === f && (this.day = C);
1630
1630
  }], w: [l, m("week")], ww: [o, m("week")], M: [l, m("month")], MM: [o, m("month")], MMM: [s, function(f) {
1631
- var d = b("months"), h = (b("monthsShort") || d.map((function(C) {
1631
+ var d = g("months"), v = (g("monthsShort") || d.map((function(C) {
1632
1632
  return C.slice(0, 3);
1633
1633
  }))).indexOf(f) + 1;
1634
- if (h < 1) throw new Error();
1635
- this.month = h % 12 || h;
1634
+ if (v < 1) throw new Error();
1635
+ this.month = v % 12 || v;
1636
1636
  }], MMMM: [s, function(f) {
1637
- var d = b("months").indexOf(f) + 1;
1637
+ var d = g("months").indexOf(f) + 1;
1638
1638
  if (d < 1) throw new Error();
1639
1639
  this.month = d % 12 || d;
1640
1640
  }], Y: [/[+-]?\d+/, m("year")], YY: [o, function(f) {
1641
1641
  this.year = u(f);
1642
1642
  }], YYYY: [/\d{4}/, m("year")], Z: c, ZZ: c };
1643
- function v(f) {
1644
- var d, h;
1645
- d = f, h = i && i.formats;
1643
+ function h(f) {
1644
+ var d, v;
1645
+ d = f, v = i && i.formats;
1646
1646
  for (var C = (f = d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function($, R, O) {
1647
1647
  var M = O && O.toUpperCase();
1648
- return R || h[O] || t[O] || h[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(A, w, y) {
1648
+ return R || v[O] || t[O] || v[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(A, w, y) {
1649
1649
  return w || y.slice(1);
1650
1650
  }));
1651
1651
  }))).match(a), x = C.length, I = 0; I < x; I += 1) {
1652
- var g = C[I], _ = E[g], B = _ && _[0], k = _ && _[1];
1653
- C[I] = k ? { regex: B, parser: k } : g.replace(/^\[|\]$/g, "");
1652
+ var b = C[I], _ = E[b], B = _ && _[0], k = _ && _[1];
1653
+ C[I] = k ? { regex: B, parser: k } : b.replace(/^\[|\]$/g, "");
1654
1654
  }
1655
1655
  return function($) {
1656
1656
  for (var R = {}, O = 0, M = 0; O < x; O += 1) {
@@ -1670,29 +1670,29 @@ function yi() {
1670
1670
  })(R), R;
1671
1671
  };
1672
1672
  }
1673
- return function(f, d, h) {
1674
- h.p.customParseFormat = !0, f && f.parseTwoDigitYear && (u = f.parseTwoDigitYear);
1673
+ return function(f, d, v) {
1674
+ v.p.customParseFormat = !0, f && f.parseTwoDigitYear && (u = f.parseTwoDigitYear);
1675
1675
  var C = d.prototype, x = C.parse;
1676
1676
  C.parse = function(I) {
1677
- var g = I.date, _ = I.utc, B = I.args;
1677
+ var b = I.date, _ = I.utc, B = I.args;
1678
1678
  this.$u = _;
1679
1679
  var k = B[1];
1680
1680
  if (typeof k == "string") {
1681
1681
  var $ = B[2] === !0, R = B[3] === !0, O = $ || R, M = B[2];
1682
- R && (M = B[2]), i = this.$locale(), !$ && M && (i = h.Ls[M]), this.$d = (function(S, D, F, H) {
1682
+ R && (M = B[2]), i = this.$locale(), !$ && M && (i = v.Ls[M]), this.$d = (function(S, D, F, H) {
1683
1683
  try {
1684
1684
  if (["x", "X"].indexOf(D) > -1) return new Date((D === "X" ? 1e3 : 1) * S);
1685
- var X = v(D)(S), re = X.year, de = X.month, Ce = X.day, Se = X.hours, z = X.minutes, te = X.seconds, q = X.milliseconds, W = X.zone, me = X.week, K = /* @__PURE__ */ new Date(), J = Ce || (re || de ? 1 : K.getDate()), le = re || K.getFullYear(), Te = 0;
1686
- re && !de || (Te = de > 0 ? de - 1 : K.getMonth());
1685
+ var X = h(D)(S), re = X.year, de = X.month, Ce = X.day, Se = X.hours, z = X.minutes, te = X.seconds, q = X.milliseconds, W = X.zone, me = X.week, K = /* @__PURE__ */ new Date(), J = Ce || (re || de ? 1 : K.getDate()), le = re || K.getFullYear(), Ae = 0;
1686
+ re && !de || (Ae = de > 0 ? de - 1 : K.getMonth());
1687
1687
  var Ft, j = Se || 0, se = z || 0, ge = te || 0, pe = q || 0;
1688
- return W ? new Date(Date.UTC(le, Te, J, j, se, ge, pe + 60 * W.offset * 1e3)) : F ? new Date(Date.UTC(le, Te, J, j, se, ge, pe)) : (Ft = new Date(le, Te, J, j, se, ge, pe), me && (Ft = H(Ft).week(me).toDate()), Ft);
1688
+ return W ? new Date(Date.UTC(le, Ae, J, j, se, ge, pe + 60 * W.offset * 1e3)) : F ? new Date(Date.UTC(le, Ae, J, j, se, ge, pe)) : (Ft = new Date(le, Ae, J, j, se, ge, pe), me && (Ft = H(Ft).week(me).toDate()), Ft);
1689
1689
  } catch {
1690
1690
  return /* @__PURE__ */ new Date("");
1691
1691
  }
1692
- })(g, k, _, h), this.init(), M && M !== !0 && (this.$L = this.locale(M).$L), O && g != this.format(k) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
1692
+ })(b, k, _, v), this.init(), M && M !== !0 && (this.$L = this.locale(M).$L), O && b != this.format(k) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
1693
1693
  } else if (k instanceof Array) for (var A = k.length, w = 1; w <= A; w += 1) {
1694
1694
  B[1] = k[w - 1];
1695
- var y = h.apply(this, B);
1695
+ var y = v.apply(this, B);
1696
1696
  if (y.isValid()) {
1697
1697
  this.$d = y.$d, this.$L = y.$L, this.init();
1698
1698
  break;
@@ -1993,65 +1993,65 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
1993
1993
  ), s = Mt("hoursRefInput"), i = Mt("minutesRefInput"), u = V({
1994
1994
  get: () => o.value,
1995
1995
  set: (I) => {
1996
- let g = String(I).replace(/[^0-9]/g, "");
1997
- if (g && parseInt(g) > 23) {
1996
+ let b = String(I).replace(/[^0-9]/g, "");
1997
+ if (b && parseInt(b) > 23) {
1998
1998
  o.value = "23", ze(() => i.value?.focus());
1999
1999
  return;
2000
2000
  }
2001
- g.length > 2 && (g = g.slice(0, 2)), o.value = g, g.length === 2 && ze(() => i.value?.focus());
2001
+ b.length > 2 && (b = b.slice(0, 2)), o.value = b, b.length === 2 && ze(() => i.value?.focus());
2002
2002
  }
2003
2003
  }), m = V({
2004
2004
  get: () => l.value,
2005
2005
  set: (I) => {
2006
- let g = String(I).replace(/[^0-9]/g, "");
2007
- if (g && parseInt(g) > 59) {
2006
+ let b = String(I).replace(/[^0-9]/g, "");
2007
+ if (b && parseInt(b) > 59) {
2008
2008
  l.value = "59", a("focusConfirm");
2009
2009
  return;
2010
2010
  }
2011
- g.length > 2 && (g = g.slice(0, 2)), l.value = g, g.length === 2 && a("focusConfirm");
2011
+ b.length > 2 && (b = b.slice(0, 2)), l.value = b, b.length === 2 && a("focusConfirm");
2012
2012
  }
2013
2013
  }), c = async (I) => {
2014
- const g = I.target;
2015
- await ze(), g?.select();
2016
- }, b = () => {
2014
+ const b = I.target;
2015
+ await ze(), b?.select();
2016
+ }, g = () => {
2017
2017
  const I = parseInt(o.value || "0");
2018
2018
  o.value = I >= 0 && I <= 23 ? String(I).padStart(2, "0") : "00";
2019
2019
  }, p = () => {
2020
2020
  const I = parseInt(l.value || "0");
2021
2021
  l.value = I >= 0 && I <= 59 ? String(I).padStart(2, "0") : "00";
2022
2022
  }, E = () => {
2023
- b(), a("onEnterKeyup");
2024
- }, v = () => {
2023
+ g(), a("onEnterKeyup");
2024
+ }, h = () => {
2025
2025
  p(), a("onEnterKeyup");
2026
2026
  }, f = () => {
2027
- const I = parseInt(o.value || "0"), g = isNaN(I) ? 1 : (I + 1) % 24;
2028
- o.value = String(g).padStart(2, "0");
2027
+ const I = parseInt(o.value || "0"), b = isNaN(I) ? 1 : (I + 1) % 24;
2028
+ o.value = String(b).padStart(2, "0");
2029
2029
  }, d = () => {
2030
- const I = parseInt(o.value || "0"), g = isNaN(I) ? 23 : (I - 1 + 24) % 24;
2031
- o.value = String(g).padStart(2, "0");
2032
- }, h = () => {
2033
- const I = parseInt(l.value || "0"), g = parseInt(o.value || "0");
2030
+ const I = parseInt(o.value || "0"), b = isNaN(I) ? 23 : (I - 1 + 24) % 24;
2031
+ o.value = String(b).padStart(2, "0");
2032
+ }, v = () => {
2033
+ const I = parseInt(l.value || "0"), b = parseInt(o.value || "0");
2034
2034
  if (isNaN(I)) {
2035
2035
  l.value = "01";
2036
2036
  return;
2037
2037
  }
2038
2038
  if (I === 59) {
2039
2039
  l.value = "00";
2040
- const _ = isNaN(g) ? 1 : (g + 1) % 24;
2040
+ const _ = isNaN(b) ? 1 : (b + 1) % 24;
2041
2041
  o.value = String(_).padStart(2, "0");
2042
2042
  } else {
2043
2043
  const _ = I + 1;
2044
2044
  l.value = String(_).padStart(2, "0");
2045
2045
  }
2046
2046
  }, C = () => {
2047
- const I = parseInt(l.value || "0"), g = parseInt(o.value || "0");
2047
+ const I = parseInt(l.value || "0"), b = parseInt(o.value || "0");
2048
2048
  if (isNaN(I)) {
2049
2049
  l.value = "59";
2050
2050
  return;
2051
2051
  }
2052
2052
  if (I === 0) {
2053
2053
  l.value = "59";
2054
- const _ = isNaN(g) ? 23 : (g - 1 + 24) % 24;
2054
+ const _ = isNaN(b) ? 23 : (b - 1 + 24) % 24;
2055
2055
  o.value = String(_).padStart(2, "0");
2056
2056
  } else {
2057
2057
  const _ = I - 1;
@@ -2060,18 +2060,18 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2060
2060
  }, x = () => {
2061
2061
  s.value?.focus();
2062
2062
  };
2063
- return Ie([o, l], ([I, g], [_, B]) => {
2064
- if (I === _ && g === B) return;
2065
- const k = parseInt(I ?? (r.value ? r.value.hours.toString() : "12")), $ = parseInt(g ?? (r.value ? r.value.minutes.toString() : "0"));
2063
+ return Te([o, l], ([I, b], [_, B]) => {
2064
+ if (I === _ && b === B) return;
2065
+ const k = parseInt(I ?? (r.value ? r.value.hours.toString() : "12")), $ = parseInt(b ?? (r.value ? r.value.minutes.toString() : "0"));
2066
2066
  k >= 0 && k <= 23 && $ >= 0 && $ <= 59 && (r.value = { hours: k, minutes: $ });
2067
2067
  }), n({
2068
2068
  focusHour: x
2069
- }), (I, g) => (U(), he("div", ts, [
2069
+ }), (I, b) => (U(), he("div", ts, [
2070
2070
  $e("div", ns, [
2071
2071
  Yn($e("input", {
2072
2072
  ref_key: "hoursRefInput",
2073
2073
  ref: s,
2074
- "onUpdate:modelValue": g[0] || (g[0] = (_) => u.value = _),
2074
+ "onUpdate:modelValue": b[0] || (b[0] = (_) => u.value = _),
2075
2075
  class: "a-datetime-picker-time__input a-datetime-picker-time__input--hours",
2076
2076
  type: "text",
2077
2077
  "aria-label": "Hour",
@@ -2079,7 +2079,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2079
2079
  min: "0",
2080
2080
  max: "23",
2081
2081
  onFocus: c,
2082
- onBlur: b,
2082
+ onBlur: g,
2083
2083
  onKeyup: ka(E, ["enter"])
2084
2084
  }, null, 544), [
2085
2085
  [oo, u.value]
@@ -2109,12 +2109,12 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2109
2109
  })
2110
2110
  ])
2111
2111
  ]),
2112
- g[2] || (g[2] = $e("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
2112
+ b[2] || (b[2] = $e("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
2113
2113
  $e("div", os, [
2114
2114
  Yn($e("input", {
2115
2115
  ref_key: "minutesRefInput",
2116
2116
  ref: i,
2117
- "onUpdate:modelValue": g[1] || (g[1] = (_) => m.value = _),
2117
+ "onUpdate:modelValue": b[1] || (b[1] = (_) => m.value = _),
2118
2118
  class: "a-datetime-picker-time__input a-datetime-picker-time__input--minutes",
2119
2119
  type: "text",
2120
2120
  "aria-label": "Minute",
@@ -2123,7 +2123,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2123
2123
  max: "59",
2124
2124
  onFocus: c,
2125
2125
  onBlur: p,
2126
- onKeyup: ka(v, ["enter"])
2126
+ onKeyup: ka(h, ["enter"])
2127
2127
  }, null, 544), [
2128
2128
  [oo, m.value]
2129
2129
  ]),
@@ -2132,7 +2132,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2132
2132
  tabindex: "-1",
2133
2133
  variant: "text",
2134
2134
  class: "a-datetime-picker-time__arrow-up",
2135
- onClick: h
2135
+ onClick: v
2136
2136
  }, {
2137
2137
  default: L(() => [
2138
2138
  N(Pe, { icon: "mdi-chevron-up" })
@@ -2179,16 +2179,16 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2179
2179
  setup(e, { emit: n }) {
2180
2180
  const t = e, a = n;
2181
2181
  ie.extend(Jo), ie.extend(Qo);
2182
- const r = P(!1), o = P(0), l = P(0), s = Mt("timePickerInstance"), i = Mt("inputInstance"), u = Mt("confirmRefButton"), m = P(""), c = P(null), b = P(null), p = P(null), { t: E } = Ne(), v = V(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: f } = Xa(), d = V(() => ({
2182
+ const r = P(!1), o = P(0), l = P(0), s = Mt("timePickerInstance"), i = Mt("inputInstance"), u = Mt("confirmRefButton"), m = P(""), c = P(null), g = P(null), p = P(null), { t: E } = Ne(), h = V(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: f } = Xa(), d = V(() => ({
2183
2183
  textFieldValue: {
2184
2184
  required: f(t.required)
2185
2185
  }
2186
- })), h = Hn(d, { textFieldValue: m }), C = V(() => t.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), x = (S) => {
2186
+ })), v = Hn(d, { textFieldValue: m }), C = V(() => t.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), x = (S) => {
2187
2187
  S !== t.modelValue && a("update:modelValue", S);
2188
2188
  }, I = (S) => {
2189
- G(S) || ((G(b.value) || S.hour() !== b.value.hours || S.minute() !== b.value.minutes) && (b.value = { hours: S.hour(), minutes: S.minute() }), (G(c.value) || S.year() !== c.value.getFullYear() || S.month() !== c.value.getMonth() || S.date() !== c.value.getDate()) && (c.value = S.toDate()));
2189
+ G(S) || ((G(g.value) || S.hour() !== g.value.hours || S.minute() !== g.value.minutes) && (g.value = { hours: S.hour(), minutes: S.minute() }), (G(c.value) || S.year() !== c.value.getFullYear() || S.month() !== c.value.getMonth() || S.date() !== c.value.getDate()) && (c.value = S.toDate()));
2190
2190
  };
2191
- Ie(
2191
+ Te(
2192
2192
  () => t.modelValue,
2193
2193
  (S, D) => {
2194
2194
  if (S !== D) {
@@ -2201,11 +2201,11 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2201
2201
  },
2202
2202
  { immediate: !0 }
2203
2203
  );
2204
- const g = (S, D) => G(S) ? D : D.set("date", S.getDate()).set("month", S.getMonth()).set("year", S.getFullYear()), _ = (S, D) => G(S) ? D : D.set("hour", S.hours).set("minute", S.minutes);
2205
- Ie([b, c], ([S, D]) => {
2204
+ const b = (S, D) => G(S) ? D : D.set("date", S.getDate()).set("month", S.getMonth()).set("year", S.getFullYear()), _ = (S, D) => G(S) ? D : D.set("hour", S.hours).set("minute", S.minutes);
2205
+ Te([g, c], ([S, D]) => {
2206
2206
  let F = null;
2207
- G(p.value) ? G(t.modelValue) ? t.lastMinuteMoment ? F = ie().hour(0).minute(0).second(59).millisecond(999) : F = ie().hour(0).minute(0).second(0).millisecond(0) : F = ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : F = p.value, F = _(S, F), F = g(D, F), !F.isSame(Zn(p.value)) && (p.value = F);
2208
- }), Ie(
2207
+ G(p.value) ? G(t.modelValue) ? t.lastMinuteMoment ? F = ie().hour(0).minute(0).second(59).millisecond(999) : F = ie().hour(0).minute(0).second(0).millisecond(0) : F = ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : F = p.value, F = _(S, F), F = b(D, F), !F.isSame(Zn(p.value)) && (p.value = F);
2208
+ }), Te(
2209
2209
  p,
2210
2210
  (S) => {
2211
2211
  if (G(S)) {
@@ -2216,7 +2216,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2216
2216
  m.value = S.format(C.value), I(S), x(D);
2217
2217
  },
2218
2218
  { immediate: !0 }
2219
- ), Ie(r, (S) => {
2219
+ ), Te(r, (S) => {
2220
2220
  if (S) {
2221
2221
  k(), G(p.value) && (G(t.defaultValue) || T(t.defaultValue)) && (t.lastMinuteMoment ? p.value = ie().second(59).millisecond(999) : p.value = ie().second(0).millisecond(0)), ze(() => {
2222
2222
  o.value++;
@@ -2225,7 +2225,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2225
2225
  }
2226
2226
  a("onClose");
2227
2227
  });
2228
- const B = V(() => ve(t.errorMessages) ? t.errorMessages : h.value.textFieldValue.$errors.length ? [h.value.textFieldValue.$errors.map((S) => S.$message).join(" ")] : []), k = () => {
2228
+ const B = V(() => ve(t.errorMessages) ? t.errorMessages : v.value.textFieldValue.$errors.length ? [v.value.textFieldValue.$errors.map((S) => S.$message).join(" ")] : []), k = () => {
2229
2229
  const S = m.value.replace(/[^\s\d.:]/g, "").trim();
2230
2230
  if (S.length === 0 && !t.required) {
2231
2231
  p.value = null, a("blur");
@@ -2238,13 +2238,13 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2238
2238
  const H = ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ");
2239
2239
  H.isValid() && (F = H.second());
2240
2240
  }
2241
- p.value = D.second(F), h.value.textFieldValue.$touch(), a("blur");
2241
+ p.value = D.second(F), v.value.textFieldValue.$touch(), a("blur");
2242
2242
  return;
2243
2243
  }
2244
- G(p.value) || (m.value = p.value.format(C.value)), h.value.textFieldValue.$touch(), a("blur");
2244
+ G(p.value) || (m.value = p.value.format(C.value)), v.value.textFieldValue.$touch(), a("blur");
2245
2245
  }, $ = () => {
2246
2246
  if (G(t.defaultValue) || T(t.defaultValue)) {
2247
- p.value = null, c.value = null, b.value = null, a("afterClear");
2247
+ p.value = null, c.value = null, g.value = null, a("afterClear");
2248
2248
  return;
2249
2249
  }
2250
2250
  p.value = ie(t.defaultValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ"), a("afterClear");
@@ -2270,7 +2270,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2270
2270
  "onUpdate:modelValue": D[3] || (D[3] = (F) => m.value = F),
2271
2271
  "error-messages": B.value,
2272
2272
  "persistent-placeholder": !0,
2273
- placeholder: v.value,
2273
+ placeholder: h.value,
2274
2274
  class: "a-datetime-picker",
2275
2275
  "hide-details": "auto",
2276
2276
  disabled: e.disabled,
@@ -2334,8 +2334,8 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2334
2334
  ref_key: "timePickerInstance",
2335
2335
  ref: s,
2336
2336
  key: l.value,
2337
- modelValue: b.value,
2338
- "onUpdate:modelValue": D[1] || (D[1] = (F) => b.value = F),
2337
+ modelValue: g.value,
2338
+ "onUpdate:modelValue": D[1] || (D[1] = (F) => g.value = F),
2339
2339
  onOnEnterKeyup: M,
2340
2340
  onFocusConfirm: A
2341
2341
  }, null, 8, ["modelValue"])),
@@ -2408,7 +2408,7 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2408
2408
  t.collab.room,
2409
2409
  t.collab.field
2410
2410
  );
2411
- l.value = _, s.value = B, i.value = k, Ie(
2411
+ l.value = _, s.value = B, i.value = k, Te(
2412
2412
  $,
2413
2413
  (R) => {
2414
2414
  u.value = R;
@@ -2416,21 +2416,21 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2416
2416
  { immediate: !0 }
2417
2417
  );
2418
2418
  }
2419
- const m = P(!1), c = P(!1), b = () => {
2419
+ const m = P(!1), c = P(!1), g = () => {
2420
2420
  m.value = !0, i.value();
2421
2421
  }, p = () => {
2422
2422
  l.value(t.modelValue), m.value = !0;
2423
- }, { t: E } = Ne(), v = ee(Va, void 0), f = ee(Ha, void 0), d = () => {
2423
+ }, { t: E } = Ne(), h = ee(Va, void 0), f = ee(Ha, void 0), d = () => {
2424
2424
  c.value = !1, a("blur", T(t.modelValue) ? null : t.modelValue), t.v?.$touch(), m.value === !1 && l.value(t.modelValue);
2425
- }, h = () => {
2425
+ }, v = () => {
2426
2426
  c.value = !0, a("focus", t.modelValue), i.value();
2427
2427
  }, C = V(() => ve(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? [t.v.$errors.map((_) => _.$message).join(" ")] : []), x = V(() => {
2428
2428
  if (ve(t.label)) return t.label;
2429
- if (T(v) || T(f) || T(t.v?.$path)) return "";
2429
+ if (T(h) || T(f) || T(t.v?.$path)) return "";
2430
2430
  const { end: _ } = hn(t.v?.$path, ".");
2431
- return E(v + "." + f + ".model." + _);
2432
- }), I = V(() => ve(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), g = V(() => ve(t.disabled) ? t.disabled : !!u.value);
2433
- return Ie(r, (_, B) => {
2431
+ return E(h + "." + f + ".model." + _);
2432
+ }), I = V(() => ve(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), b = V(() => ve(t.disabled) ? t.disabled : !!u.value);
2433
+ return Te(r, (_, B) => {
2434
2434
  _ !== B && o.value.enabled && (c.value || m.value) && s.value(_);
2435
2435
  }), (_, B) => (U(), Q(er, it({
2436
2436
  modelValue: r.value,
@@ -2438,13 +2438,13 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2438
2438
  "data-cy": e.dataCy,
2439
2439
  "error-messages": C.value,
2440
2440
  required: I.value,
2441
- disabled: g.value,
2441
+ disabled: b.value,
2442
2442
  label: x.value,
2443
2443
  clearable: e.clearable
2444
2444
  }, _.$attrs, {
2445
2445
  onBlur: d,
2446
- onFocus: h,
2447
- onOnOpen: b,
2446
+ onFocus: v,
2447
+ onOnOpen: g,
2448
2448
  onOnClose: p
2449
2449
  }), {
2450
2450
  "append-inner": L(() => [
@@ -2475,12 +2475,12 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2475
2475
  }), l = P(() => {
2476
2476
  }), s = P(null);
2477
2477
  if (r.value.enabled && ve(t.collab)) {
2478
- const { releaseCollabFieldLock: p, acquireCollabFieldLock: E, lockedByUser: v } = aa(
2478
+ const { releaseCollabFieldLock: p, acquireCollabFieldLock: E, lockedByUser: h } = aa(
2479
2479
  t.collab.room,
2480
2480
  t.collab.field
2481
2481
  );
2482
- o.value = p, l.value = E, Ie(
2483
- v,
2482
+ o.value = p, l.value = E, Te(
2483
+ h,
2484
2484
  (f) => {
2485
2485
  s.value = f;
2486
2486
  },
@@ -2497,14 +2497,14 @@ const ts = { class: "a-datetime-picker-time" }, ns = { class: "a-datetime-picker
2497
2497
  a("blur", t.modelValue), o.value(t.modelValue);
2498
2498
  }, c = () => {
2499
2499
  a("focus", t.modelValue), l.value();
2500
- }, b = V(() => ve(t.disabled) ? t.disabled : !!s.value);
2500
+ }, g = V(() => ve(t.disabled) ? t.disabled : !!s.value);
2501
2501
  return (p, E) => (U(), Q(tl, {
2502
2502
  "data-cy": e.dataCy,
2503
2503
  "model-value": e.modelValue,
2504
- disabled: b.value,
2504
+ disabled: g.value,
2505
2505
  onBlur: m,
2506
2506
  onFocus: c,
2507
- "onUpdate:modelValue": E[0] || (E[0] = (v) => u(v)),
2507
+ "onUpdate:modelValue": E[0] || (E[0] = (h) => u(h)),
2508
2508
  onClick: Ee(i, ["stop"])
2509
2509
  }, _t({ _: 2 }, [
2510
2510
  e.hideLabel ? void 0 : {
@@ -2541,14 +2541,14 @@ function ms(e) {
2541
2541
  return jt(
2542
2542
  e.reduce((n, t) => ({
2543
2543
  ...n,
2544
- [t.name]: xe(t.default)
2544
+ [t.name]: Ie(t.default)
2545
2545
  }), {})
2546
2546
  );
2547
2547
  }
2548
2548
  function ps(e, n, t) {
2549
2549
  const a = e.reduce(
2550
2550
  (l, s) => {
2551
- const i = s.name, u = xe(s.default);
2551
+ const i = s.name, u = Ie(s.default);
2552
2552
  return {
2553
2553
  ...l,
2554
2554
  [i]: {
@@ -2590,7 +2590,7 @@ function dt(e, n) {
2590
2590
  }
2591
2591
  function Dt() {
2592
2592
  const e = (o, l, s) => {
2593
- s.fields[o]?.clearable && (l[o] = xe(s.fields[o].default));
2593
+ s.fields[o]?.clearable && (l[o] = Ie(s.fields[o].default));
2594
2594
  }, n = (o, l) => {
2595
2595
  for (const s in l.fields)
2596
2596
  e(s, o, l);
@@ -2600,14 +2600,14 @@ function Dt() {
2600
2600
  if (c && c.length === 1)
2601
2601
  u.value.delete(o);
2602
2602
  else if (c) {
2603
- const b = c.findIndex((p) => p.value === l);
2604
- c.splice(b, 1);
2603
+ const g = c.findIndex((p) => p.value === l);
2604
+ c.splice(g, 1);
2605
2605
  }
2606
2606
  if (m.type === "timeInterval" && m.related)
2607
2607
  s[o] = m.default, s[m.related] = i.fields[m.related].default;
2608
2608
  else if (ue(s[o]) && s[o].length > 0) {
2609
- const b = s[o].findIndex((E) => E === l), p = [...Zn(s[o])];
2610
- p.splice(b, 1), s[o] = p;
2609
+ const g = s[o].findIndex((E) => E === l), p = [...Zn(s[o])];
2610
+ p.splice(g, 1), s[o] = p;
2611
2611
  } else (Fe(s[o]) || Ht(s[o]) || st(s[o])) && (s[o] = m.default);
2612
2612
  }, a = (o, l, s) => {
2613
2613
  for (const i of s.value.keys())
@@ -2634,56 +2634,56 @@ function tr(e, n, t = {}) {
2634
2634
  Fe(a.storeFiltersLocalStorage) ? o = a.storeFiltersLocalStorage : st(a.storeFiltersLocalStorage) && a.storeFiltersLocalStorage === !0 && Fe(n.general.system) && Fe(n.general.subject) && (o = "tableFilter_" + n.general.system + "_" + n.general.subject);
2635
2635
  const l = () => {
2636
2636
  const d = {};
2637
- for (const h in e)
2637
+ for (const v in e)
2638
2638
  try {
2639
- const C = h, x = e[C];
2640
- !T(x) && !G(x) && !Aa(x) && x !== n.fields[C].default && (d[h] = x);
2639
+ const C = v, x = e[C];
2640
+ !T(x) && !G(x) && !Aa(x) && x !== n.fields[C].default && (d[v] = x);
2641
2641
  } catch {
2642
2642
  }
2643
2643
  return d;
2644
- }, s = (d, h, C) => {
2644
+ }, s = (d, v, C) => {
2645
2645
  const x = new URLSearchParams();
2646
2646
  for (const I in d) {
2647
- const g = d[I];
2648
- T(g) || G(g) || ue(g) && Aa(g) || gn(g) && un(g) || Fe(g) && g.length === 0 || (ue(g) ? x.set(I, g.join(",")) : x.set(I, String(g)));
2647
+ const b = d[I];
2648
+ T(b) || G(b) || ue(b) && Aa(b) || gn(b) && un(b) || Fe(b) && b.length === 0 || (ue(b) ? x.set(I, b.join(",")) : x.set(I, String(b)));
2649
2649
  }
2650
- return C && h.value.sortBy && x.set(ma, `${h.value.sortBy.key},${h.value.sortBy.order}`), x.size === 0 ? "" : x.toString() + r;
2650
+ return C && v.value.sortBy && x.set(ma, `${v.value.sortBy.key},${v.value.sortBy.order}`), x.size === 0 ? "" : x.toString() + r;
2651
2651
  }, i = (d) => {
2652
2652
  if (!d) return null;
2653
2653
  if (d.startsWith("#") && (d = d.substring(1)), d.endsWith(r))
2654
2654
  d = d.slice(0, -1);
2655
2655
  else {
2656
- const g = d.lastIndexOf("&");
2657
- if (g !== -1)
2658
- d = d.substring(0, g);
2656
+ const b = d.lastIndexOf("&");
2657
+ if (b !== -1)
2658
+ d = d.substring(0, b);
2659
2659
  else
2660
2660
  return null;
2661
2661
  }
2662
- const h = new URLSearchParams(d), C = {};
2662
+ const v = new URLSearchParams(d), C = {};
2663
2663
  let x = null;
2664
- const I = h.get(ma);
2664
+ const I = v.get(ma);
2665
2665
  if (I) {
2666
- const [g, _] = I.split(",");
2667
- g && (_ === mt.Asc || _ === mt.Desc) && (x = { key: g, order: _ }), h.delete(ma);
2666
+ const [b, _] = I.split(",");
2667
+ b && (_ === mt.Asc || _ === mt.Desc) && (x = { key: b, order: _ }), v.delete(ma);
2668
2668
  }
2669
- for (const [g, _] of h.entries()) {
2670
- const B = n.fields[g];
2669
+ for (const [b, _] of v.entries()) {
2670
+ const B = n.fields[b];
2671
2671
  if (T(B)) {
2672
- console.error(`Filter config not found for ${g}`);
2672
+ console.error(`Filter config not found for ${b}`);
2673
2673
  continue;
2674
2674
  }
2675
2675
  if (B.multiple ?? !1) {
2676
2676
  const $ = _.split(","), R = $.every((O) => !isNaN(Number(O)));
2677
- C[g] = R ? $.map(Number) : $;
2677
+ C[b] = R ? $.map(Number) : $;
2678
2678
  } else
2679
- C[g] = _;
2679
+ C[b] = _;
2680
2680
  }
2681
2681
  return { filters: C, sortBy: x };
2682
2682
  }, u = (d) => {
2683
2683
  a.populateUrlParams !== !1 && (window.location.hash = d);
2684
2684
  }, m = () => {
2685
2685
  a.populateUrlParams !== !1 && (window.location.hash = "");
2686
- }, c = () => a.populateUrlParams === !1 ? null : i(window.location.hash), b = (d) => {
2686
+ }, c = () => a.populateUrlParams === !1 ? null : i(window.location.hash), g = (d) => {
2687
2687
  !o || !localStorage || localStorage.setItem(o, d);
2688
2688
  }, p = () => {
2689
2689
  if (!o || !localStorage) return null;
@@ -2691,13 +2691,13 @@ function tr(e, n, t = {}) {
2691
2691
  return !d || !Fe(d) ? null : i(d);
2692
2692
  };
2693
2693
  return {
2694
- loadStoredFilters: (d, h) => {
2694
+ loadStoredFilters: (d, v) => {
2695
2695
  let C = "hash", x = c();
2696
2696
  if (G(x) && (C = "localStorage", x = p()), G(x) || un(x.filters) && un(x.sortBy))
2697
- return h && h(), !1;
2697
+ return v && v(), !1;
2698
2698
  for (const I in e) {
2699
- const g = I;
2700
- let _ = x.filters[g];
2699
+ const b = I;
2700
+ let _ = x.filters[b];
2701
2701
  if (!T(_)) {
2702
2702
  if (Fe(_)) {
2703
2703
  const B = Ho(_);
@@ -2708,21 +2708,21 @@ function tr(e, n, t = {}) {
2708
2708
  G(k) || (_ = k);
2709
2709
  }
2710
2710
  }
2711
- e[g] = _;
2711
+ e[b] = _;
2712
2712
  }
2713
2713
  }
2714
2714
  if (C === "localStorage" && o && localStorage) {
2715
2715
  const I = localStorage.getItem(o);
2716
2716
  I && u(I);
2717
2717
  }
2718
- return d.value = { ...d.value, sortBy: x.sortBy }, h && h(), !0;
2718
+ return d.value = { ...d.value, sortBy: x.sortBy }, v && v(), !0;
2719
2719
  },
2720
- resetFilter: (d, h) => {
2721
- d.value = { ...d.value, page: 1 }, o && localStorage && localStorage.removeItem(o), m(), n.touched = !1, h && h();
2720
+ resetFilter: (d, v) => {
2721
+ d.value = { ...d.value, page: 1 }, o && localStorage && localStorage.removeItem(o), m(), n.touched = !1, v && v();
2722
2722
  },
2723
- submitFilter: (d, h) => {
2723
+ submitFilter: (d, v) => {
2724
2724
  const C = l(), x = s(C, d, !0);
2725
- u(x), b(x), d.value = { ...d.value, page: 1 }, n.touched = !1, h && h();
2725
+ u(x), g(x), d.value = { ...d.value, page: 1 }, n.touched = !1, v && v();
2726
2726
  },
2727
2727
  serializeFilters: s,
2728
2728
  deserializeFilters: i
@@ -2801,18 +2801,18 @@ function yd(e) {
2801
2801
  function vs() {
2802
2802
  const e = P([]), n = (c) => {
2803
2803
  i("limit", c);
2804
- }, t = (c, b) => {
2805
- i("offset", Math.max(0, (c - 1) * b));
2806
- }, a = (c, b) => {
2807
- !G(c) && c.length > 0 && i("order[" + c + "]", b ? mt.Desc : mt.Asc);
2808
- }, r = (c) => st(c) ? c ? "1" : "0" : c, o = (c, b, p) => {
2809
- Fe(p) && p.length === 0 || e.value.push("filter_" + c + "[" + b + "]=" + r(p));
2810
- }, l = (c, b, p, E, v, f) => {
2811
- let d = p[c], h = p[b];
2812
- if (G(d) && v && !f && (d = E.fields[c].default), G(h) && v && !f && (h = E.fields[c].default), Fe(d) && Fe(h))
2804
+ }, t = (c, g) => {
2805
+ i("offset", Math.max(0, (c - 1) * g));
2806
+ }, a = (c, g) => {
2807
+ !G(c) && c.length > 0 && i("order[" + c + "]", g ? mt.Desc : mt.Asc);
2808
+ }, r = (c) => st(c) ? c ? "1" : "0" : c, o = (c, g, p) => {
2809
+ Fe(p) && p.length === 0 || e.value.push("filter_" + c + "[" + g + "]=" + r(p));
2810
+ }, l = (c, g, p, E, h, f) => {
2811
+ let d = p[c], v = p[g];
2812
+ if (G(d) && h && !f && (d = E.fields[c].default), G(v) && h && !f && (v = E.fields[c].default), Fe(d) && Fe(v))
2813
2813
  return {
2814
2814
  from: d,
2815
- until: h
2815
+ until: v
2816
2816
  };
2817
2817
  const C = Ia(), x = wi(C);
2818
2818
  switch (d) {
@@ -2830,8 +2830,8 @@ function vs() {
2830
2830
  };
2831
2831
  }
2832
2832
  return null;
2833
- }, s = (c, b) => G(c) ? b.mandatory && !b.exclude && !T(b.default) ? ue(b.default) ? b.default.join(",") : b.default : null : Fe(c) ? c.length === 0 ? b.mandatory && !b.exclude && !T(b.default) && !G(b.default) ? encodeURIComponent(ue(b.default) ? b.default.join(",") : b.default) : null : encodeURIComponent(c) : ue(c) ? c.length === 0 ? b.mandatory && !b.exclude && ue(b.default) ? b.default.map((p) => Fe(p) ? encodeURIComponent(p) : p).join(",") : null : c.map((p) => Fe(p) ? encodeURIComponent(p) : p).join(",") : Ht(c) || st(c) ? c : null, i = (c, b) => {
2834
- e.value.push(c + "=" + b);
2833
+ }, s = (c, g) => G(c) ? g.mandatory && !g.exclude && !T(g.default) ? ue(g.default) ? g.default.join(",") : g.default : null : Fe(c) ? c.length === 0 ? g.mandatory && !g.exclude && !T(g.default) && !G(g.default) ? encodeURIComponent(ue(g.default) ? g.default.join(",") : g.default) : null : encodeURIComponent(c) : ue(c) ? c.length === 0 ? g.mandatory && !g.exclude && ue(g.default) ? g.default.map((p) => Fe(p) ? encodeURIComponent(p) : p).join(",") : null : c.map((p) => Fe(p) ? encodeURIComponent(p) : p).join(",") : Ht(c) || st(c) ? c : null, i = (c, g) => {
2834
+ e.value.push(c + "=" + g);
2835
2835
  };
2836
2836
  return {
2837
2837
  resolveTimeIntervalFilter: l,
@@ -2839,10 +2839,10 @@ function vs() {
2839
2839
  querySetOffset: t,
2840
2840
  querySetOrder: a,
2841
2841
  queryAddFilter: o,
2842
- querySetFilters: (c, b) => {
2843
- const p = b.general.simpleFilters;
2842
+ querySetFilters: (c, g) => {
2843
+ const p = g.general.simpleFilters;
2844
2844
  for (const E in c) {
2845
- const v = c[E], f = b.fields[E];
2845
+ const h = c[E], f = g.fields[E];
2846
2846
  if (T(f) || f.exclude)
2847
2847
  continue;
2848
2848
  const d = f.apiName || E;
@@ -2851,13 +2851,13 @@ function vs() {
2851
2851
  E,
2852
2852
  f.related,
2853
2853
  c,
2854
- b,
2854
+ g,
2855
2855
  f.mandatory,
2856
2856
  f.exclude
2857
2857
  );
2858
2858
  if (G(C))
2859
2859
  continue;
2860
- const I = b.fields[f.related].apiName || f.related;
2860
+ const I = g.fields[f.related].apiName || f.related;
2861
2861
  if (p) {
2862
2862
  i(d, C.from), i(I, C.until);
2863
2863
  continue;
@@ -2865,13 +2865,13 @@ function vs() {
2865
2865
  C.from && o("gte", d, C.from), C.until && o("lte", I, C.until);
2866
2866
  continue;
2867
2867
  }
2868
- const h = s(v, f);
2869
- if (!G(h)) {
2868
+ const v = s(h, f);
2869
+ if (!G(v)) {
2870
2870
  if (p) {
2871
- i(d, h);
2871
+ i(d, v);
2872
2872
  continue;
2873
2873
  }
2874
- o(f.variant, d, h);
2874
+ o(f.variant, d, v);
2875
2875
  }
2876
2876
  }
2877
2877
  },
@@ -2886,12 +2886,12 @@ const gs = (e) => gn(e) && Object.hasOwn(e, "totalCount"), bs = (e) => gn(e) &&
2886
2886
  }, Ss = (e, n, t, a = void 0, r = void 0, o = {}) => {
2887
2887
  let l = null;
2888
2888
  return {
2889
- executeFetch: async (u, m, c, b = void 0, p = void 0, E = !1) => {
2889
+ executeFetch: async (u, m, c, g = void 0, p = void 0, E = !1) => {
2890
2890
  l = new AbortController();
2891
2891
  try {
2892
- const v = c.general.elastic || E ? "/search" : "", f = ve(p) ? p : r, d = ve(b) ? b : a;
2892
+ const h = c.general.elastic || E ? "/search" : "", f = ve(p) ? p : r, d = ve(g) ? g : a;
2893
2893
  if (T(d)) throw new Error("Url template is undefined");
2894
- const h = (T(f) ? d : Cn(d, f)) + v + ys(u, m, c), C = await e().get(h, {
2894
+ const v = (T(f) ? d : Cn(d, f)) + h + ys(u, m, c), C = await e().get(v, {
2895
2895
  ...o,
2896
2896
  signal: l.signal
2897
2897
  });
@@ -2912,10 +2912,10 @@ const gs = (e) => gn(e) && Object.hasOwn(e, "totalCount"), bs = (e) => gn(e) &&
2912
2912
  if (C.status === Wt)
2913
2913
  return [];
2914
2914
  throw new ot();
2915
- } catch (v) {
2916
- if (v instanceof DOMException && v.name === "AbortError")
2915
+ } catch (h) {
2916
+ if (h instanceof DOMException && h.name === "AbortError")
2917
2917
  return [];
2918
- throw ja(v) ? v : bn(v) ? new Kt(v, v.config?.url) : yn(v) ? new Gt(v, n, t, v) : wn(v) ? new Jt(v, n, t, v) : Sn(v) ? new Zt(v, v) : Xo(v) ? new za(v) : $t.isAxiosError(v) ? (console.error("Axios error: " + b, v.cause), new Wa(v)) : (console.error("AnzuFatalError: ", v), new ot(v));
2918
+ throw ja(h) ? h : bn(h) ? new Kt(h, h.config?.url) : yn(h) ? new Gt(h, n, t, h) : wn(h) ? new Jt(h, n, t, h) : Sn(h) ? new Zt(h, h) : Xo(h) ? new za(h) : $t.isAxiosError(h) ? (console.error("Axios error: " + g, h.cause), new Wa(h)) : (console.error("AnzuFatalError: ", h), new ot(h));
2919
2919
  } finally {
2920
2920
  l = null;
2921
2921
  }
@@ -2985,15 +2985,15 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
2985
2985
  },
2986
2986
  set(f) {
2987
2987
  let d = null;
2988
- f?.value === 1 && (d = !0), f?.value === 0 && (d = !1), s[t.name] = d, v(), l.touched = !0, a("change");
2988
+ f?.value === 1 && (d = !0), f?.value === 0 && (d = !1), s[t.name] = d, h(), l.touched = !0, a("change");
2989
2989
  }
2990
- }), u = V(() => l.fields[t.name]), { t: m } = Ne(), c = V(() => u.value.titleT ? m(u.value.titleT) : void 0), b = V(() => [
2990
+ }), u = V(() => l.fields[t.name]), { t: m } = Ne(), c = V(() => u.value.titleT ? m(u.value.titleT) : void 0), g = V(() => [
2991
2991
  { value: -1, title: m(t.allT) },
2992
2992
  { value: 1, title: m(t.trueT) },
2993
2993
  { value: 0, title: m(t.falseT) }
2994
2994
  ]), { clearOne: p } = Dt(), E = () => {
2995
2995
  p(t.name, s, l), o.value.delete(t.name);
2996
- }, v = () => {
2996
+ }, h = () => {
2997
2997
  if (i.value.value === -1) {
2998
2998
  o.value.delete(t.name);
2999
2999
  return;
@@ -3002,10 +3002,10 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3002
3002
  };
3003
3003
  return (f, d) => (U(), Q(Lr, {
3004
3004
  modelValue: i.value,
3005
- "onUpdate:modelValue": d[0] || (d[0] = (h) => i.value = h),
3005
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => i.value = v),
3006
3006
  "data-cy": e.dataCy,
3007
3007
  label: c.value,
3008
- items: b.value,
3008
+ items: g.value,
3009
3009
  clearable: !u.value.mandatory && i.value.value !== -1,
3010
3010
  "return-object": "",
3011
3011
  "hide-details": "",
@@ -3034,9 +3034,9 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3034
3034
  set(f) {
3035
3035
  s[t.name] = f, l.touched = !0, a("change");
3036
3036
  }
3037
- }), u = V(() => l.fields[t.name]), { t: m } = Ne(), c = V(() => u.value.titleT ? m(u.value.titleT) : void 0), b = V(() => T(t.placeholder) ? u.value.variant === "startsWith" ? m("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? m("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? m("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: p } = Dt(), E = () => {
3037
+ }), u = V(() => l.fields[t.name]), { t: m } = Ne(), c = V(() => u.value.titleT ? m(u.value.titleT) : void 0), g = V(() => T(t.placeholder) ? u.value.variant === "startsWith" ? m("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? m("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? m("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: p } = Dt(), E = () => {
3038
3038
  p(t.name, s, l), o.value.delete(t.name);
3039
- }, v = () => {
3039
+ }, h = () => {
3040
3040
  if (Ht(i.value)) {
3041
3041
  o.value.set(t.name, [{ title: i.value + "", value: i.value }]);
3042
3042
  return;
@@ -3049,22 +3049,22 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3049
3049
  o.value.set(t.name, [{ title: i.value, value: i.value }]);
3050
3050
  }
3051
3051
  };
3052
- return Ie(
3052
+ return Te(
3053
3053
  () => s[t.name],
3054
3054
  (f, d) => {
3055
- f === d || st(f) || v();
3055
+ f === d || st(f) || h();
3056
3056
  },
3057
3057
  { immediate: !0 }
3058
3058
  ), (f, d) => (U(), Q(ta, {
3059
3059
  modelValue: i.value,
3060
- "onUpdate:modelValue": d[0] || (d[0] = (h) => i.value = h),
3060
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => i.value = v),
3061
3061
  label: c.value,
3062
- placeholder: b.value,
3062
+ placeholder: g.value,
3063
3063
  clearable: !u.value.mandatory,
3064
3064
  "data-cy": e.dataCy,
3065
3065
  "hide-details": "",
3066
3066
  autocomplete: "off",
3067
- onBlur: v,
3067
+ onBlur: h,
3068
3068
  "onClick:clear": Ee(E, ["stop"])
3069
3069
  }, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
3070
3070
  }
@@ -3089,20 +3089,20 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3089
3089
  const t = e, a = n, r = ee(kt), o = ee(ht), l = ee(rt), s = ee(ct), i = ee(Ja), u = ee(Za), m = Jn()?.type.__name;
3090
3090
  if (T(r) || T(o) || T(s) || T(l) || T(i) || T(u))
3091
3091
  throw new Error(`[${m}] Incorrect provide/inject config.`);
3092
- const c = t.filterByField, b = t.filterSortBy;
3092
+ const c = t.filterByField, g = t.filterSortBy;
3093
3093
  if (T(i.fields[c]) || T(u[c]))
3094
3094
  throw new Error(
3095
3095
  `[${m}] Incorrect filter inner config. FilterByField is '${c}' and available options are ${Object.keys(u).join(", ")}.`
3096
3096
  );
3097
- const p = V(() => l.fields[t.name]), E = P([]), v = P(""), f = P(!1), d = P(null), h = P(0), { t: C } = Ne(), x = () => {
3097
+ const p = V(() => l.fields[t.name]), E = P([]), h = P(""), f = P(!1), d = P(null), v = P(0), { t: C } = Ne(), x = () => {
3098
3098
  f.value = !1;
3099
- }, I = V(() => p.value.titleT ? C(p.value.titleT) : void 0), { pagination: g } = vn(G(b) ? null : b.key, b?.order), _ = P([]), B = P([]), k = P(!0), $ = P(!1), R = V(() => {
3099
+ }, I = V(() => p.value.titleT ? C(p.value.titleT) : void 0), { pagination: b } = vn(G(g) ? null : g.key, g?.order), _ = P([]), B = P([]), k = P(!0), $ = P(!1), R = V(() => {
3100
3100
  const K = /* @__PURE__ */ new Map(), J = (le) => {
3101
- le.forEach((Te) => {
3102
- K.set(Te.value, {
3103
- value: Te.value,
3104
- title: Te.title,
3105
- subtitle: Te.subtitle
3101
+ le.forEach((Ae) => {
3102
+ K.set(Ae.value, {
3103
+ value: Ae.value,
3104
+ title: Ae.title,
3105
+ subtitle: Ae.subtitle
3106
3106
  });
3107
3107
  });
3108
3108
  };
@@ -3110,7 +3110,7 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3110
3110
  }), O = P(!1), M = (K) => {
3111
3111
  B.value = [], E.value = ue(K) ? [] : null, d.value = ue(K) ? [] : null, me(E.value);
3112
3112
  }, A = (K) => {
3113
- const J = (le) => R.value.find((Te) => Te.value === le) ?? { title: `${le}`, value: le };
3113
+ const J = (le) => R.value.find((Ae) => Ae.value === le) ?? { title: `${le}`, value: le };
3114
3114
  return ue(K) ? K.map(J) : J(K);
3115
3115
  }, w = async (K) => {
3116
3116
  O.value = !0;
@@ -3130,8 +3130,8 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3130
3130
  }, { showErrorsDefault: y } = oa(), S = async (K, J) => {
3131
3131
  O.value = !0, u[c] = K;
3132
3132
  try {
3133
- const le = await t.fetchItems(g, u, i);
3134
- J === h.value && (_.value = le);
3133
+ const le = await t.fetchItems(b, u, i);
3134
+ J === v.value && (_.value = le);
3135
3135
  } catch (le) {
3136
3136
  y(le);
3137
3137
  } finally {
@@ -3141,8 +3141,8 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3141
3141
  if (!(t.prefetch === !1 || t.prefetch !== K) && !O.value && !$.value) {
3142
3142
  O.value = !0;
3143
3143
  try {
3144
- const J = await t.fetchItems(g, u, i);
3145
- h.value === 0 && (_.value = J), $.value = !0;
3144
+ const J = await t.fetchItems(b, u, i);
3145
+ v.value === 0 && (_.value = J), $.value = !0;
3146
3146
  } finally {
3147
3147
  O.value = !1;
3148
3148
  }
@@ -3155,26 +3155,26 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3155
3155
  if (!p.value.multiple && B.value[0])
3156
3156
  return B.value[0].title;
3157
3157
  }), re = (K) => {
3158
- !p.value.multiple && !f.value && K.length === 0 || X.value !== K && (v.value = K);
3158
+ !p.value.multiple && !f.value && K.length === 0 || X.value !== K && (h.value = K);
3159
3159
  }, { clearOne: de } = Dt(), Ce = () => {
3160
3160
  de(t.name, s, l), o.value.delete(t.name);
3161
3161
  }, Se = async () => {
3162
3162
  try {
3163
- _.value = await t.fetchItems(g, u, i);
3163
+ _.value = await t.fetchItems(b, u, i);
3164
3164
  } catch (K) {
3165
3165
  y(K);
3166
3166
  }
3167
3167
  Ce();
3168
3168
  };
3169
3169
  Na(
3170
- v,
3170
+ h,
3171
3171
  (K, J) => {
3172
3172
  if (K !== J && !(K.length > 0 && K.length < t.minSearchChars)) {
3173
3173
  if (K.length === 0 && t.prefetch === !1) {
3174
3174
  _.value = [];
3175
3175
  return;
3176
3176
  }
3177
- h.value++, S(K, h.value);
3177
+ v.value++, S(K, v.value);
3178
3178
  }
3179
3179
  },
3180
3180
  { debounce: Es }
@@ -3184,7 +3184,7 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3184
3184
  }, te = V(() => T(t.placeholder) ? p.value.variant === "startsWith" ? C("common.model.filterPlaceholder.startsWith") : p.value.variant === "eq" ? C("common.model.filterPlaceholder.eq") : p.value.variant === "search" ? C("common.model.filterPlaceholder.contains") : "" : t.placeholder), q = V(() => {
3185
3185
  if (O.value)
3186
3186
  return "$vuetify.loading";
3187
- if (_.value.length === 0 && v.value.length < t.minSearchChars)
3187
+ if (_.value.length === 0 && h.value.length < t.minSearchChars)
3188
3188
  return T(t.minSearchText) ? C("common.filter.filterMinChars", { min: t.minSearchChars }) : t.minSearchText;
3189
3189
  }), W = (K) => {
3190
3190
  l.touched = !0;
@@ -3204,13 +3204,13 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3204
3204
  }
3205
3205
  o.value.set(t.name, [{ title: K.title, value: K.value }]);
3206
3206
  };
3207
- return Ie(
3207
+ return Te(
3208
3208
  () => s[t.name],
3209
3209
  async (K, J) => {
3210
3210
  if (K === J || st(K)) return;
3211
3211
  const le = K;
3212
3212
  if (k.value && (k.value = !1, await z()), Vo(le)) {
3213
- M(le), T(J) || (h.value++, await S("", h.value));
3213
+ M(le), T(J) || (v.value++, await S("", v.value));
3214
3214
  return;
3215
3215
  }
3216
3216
  await w(le);
@@ -3240,22 +3240,22 @@ const Sd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
3240
3240
  onMouseenter: H,
3241
3241
  "onClick:clear": Se
3242
3242
  }, _t({
3243
- item: L(({ props: le, item: Te }) => [
3243
+ item: L(({ props: le, item: Ae }) => [
3244
3244
  N(Vt, it(le, {
3245
- title: Te.raw.title,
3246
- subtitle: Te.raw.subtitle
3245
+ title: Ae.raw.title,
3246
+ subtitle: Ae.raw.subtitle
3247
3247
  }), null, 16, ["title", "subtitle"])
3248
3248
  ]),
3249
- chip: L(({ props: le, item: Te }) => [
3249
+ chip: L(({ props: le, item: Ae }) => [
3250
3250
  N(ea, {
3251
3251
  closable: le.closable,
3252
3252
  size: "small",
3253
- text: `${Te.title} (${Te.raw.subtitle})`,
3254
- disabled: Te.props.disabled
3253
+ text: `${Ae.title} (${Ae.raw.subtitle})`,
3254
+ disabled: Ae.props.disabled
3255
3255
  }, {
3256
3256
  default: L(() => [
3257
- Oe(ye(Te.raw.title) + " ", 1),
3258
- Te.raw.subtitle ? (U(), he("span", ks, " (" + ye(Te.raw.subtitle) + ") ", 1)) : be("", !0)
3257
+ Oe(ye(Ae.raw.title) + " ", 1),
3258
+ Ae.raw.subtitle ? (U(), he("span", ks, " (" + ye(Ae.raw.subtitle) + ") ", 1)) : be("", !0)
3259
3259
  ]),
3260
3260
  _: 2
3261
3261
  }, 1032, ["closable", "text", "disabled"])
@@ -3312,24 +3312,24 @@ const Cd = /* @__PURE__ */ we({
3312
3312
  throw new Error(
3313
3313
  `[${m}] Incorrect filter inner config. FilterByField is '${t.filterByField}' and available options are ${Object.keys(u).join(", ")}.`
3314
3314
  );
3315
- const c = P([]), b = P(""), p = P(!1), E = P(void 0), v = P(0), { t: f } = Ne(), d = V(() => l.fields[t.name]), h = () => {
3315
+ const c = P([]), g = P(""), p = P(!1), E = P(void 0), h = P(0), { t: f } = Ne(), d = V(() => l.fields[t.name]), v = () => {
3316
3316
  p.value = !1;
3317
3317
  }, C = V(() => d.value.titleT ? f(d.value.titleT) : void 0), { pagination: x } = vn(
3318
3318
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
3319
3319
  G(t.filterSortBy) ? null : t.filterSortBy.key,
3320
3320
  t.filterSortBy?.order
3321
- ), I = P([]), g = P([]), _ = V(() => {
3321
+ ), I = P([]), b = P([]), _ = V(() => {
3322
3322
  const z = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
3323
- return g.value.forEach((q) => {
3324
- q.raw ? (z.set(q.raw[t.itemValue], q.raw[t.itemTitle]), te.set(q.raw[t.itemValue], xe(q.raw))) : (z.set(q[t.itemValue], q[t.itemTitle]), te.set(q[t.itemValue], xe(q)));
3323
+ return b.value.forEach((q) => {
3324
+ q.raw ? (z.set(q.raw[t.itemValue], q.raw[t.itemTitle]), te.set(q.raw[t.itemValue], Ie(q.raw))) : (z.set(q[t.itemValue], q[t.itemTitle]), te.set(q[t.itemValue], Ie(q)));
3325
3325
  }), I.value.forEach((q) => {
3326
- q.raw ? (z.set(q.raw[t.itemValue], q.raw[t.itemTitle]), te.set(q.raw[t.itemValue], xe(q.raw))) : (z.set(q[t.itemValue], q[t.itemTitle]), te.set(q[t.itemValue], xe(q)));
3326
+ q.raw ? (z.set(q.raw[t.itemValue], q.raw[t.itemTitle]), te.set(q.raw[t.itemValue], Ie(q.raw))) : (z.set(q[t.itemValue], q[t.itemTitle]), te.set(q[t.itemValue], Ie(q)));
3327
3327
  }), Array.from(z, ([q, W]) => ({ value: q, title: W, raw: te.get(q) }));
3328
3328
  }), B = P(!1), { showErrorsDefault: k } = oa(), $ = async (z, te) => {
3329
3329
  B.value = !0, u[t.filterByField] = z;
3330
3330
  try {
3331
3331
  const q = await t.fetchItemsMinimal(x, u, i);
3332
- te === v.value && (I.value = q);
3332
+ te === h.value && (I.value = q);
3333
3333
  } catch (q) {
3334
3334
  k(q);
3335
3335
  } finally {
@@ -3340,7 +3340,7 @@ const Cd = /* @__PURE__ */ we({
3340
3340
  return [].concat(te);
3341
3341
  }, O = async (z) => {
3342
3342
  let te = 1, q = [];
3343
- return ue(z) ? (te = z.length, q = R(z)) : q = R([z]), g.value = q, q.length === te;
3343
+ return ue(z) ? (te = z.length, q = R(z)) : q = R([z]), b.value = q, q.length === te;
3344
3344
  }, M = P(!1), A = () => {
3345
3345
  clearTimeout(E.value), E.value = void 0;
3346
3346
  }, w = async () => {
@@ -3348,7 +3348,7 @@ const Cd = /* @__PURE__ */ we({
3348
3348
  M.value = !0, B.value = !0;
3349
3349
  try {
3350
3350
  const z = await t.fetchItemsMinimal(x, u, i);
3351
- v.value === 0 && (I.value = z);
3351
+ h.value === 0 && (I.value = z);
3352
3352
  } catch (z) {
3353
3353
  k(z);
3354
3354
  } finally {
@@ -3360,10 +3360,10 @@ const Cd = /* @__PURE__ */ we({
3360
3360
  }, S = () => {
3361
3361
  t.prefetch === "focus" || t.prefetch === !1 || (A(), w());
3362
3362
  }, D = V(() => {
3363
- if (!d.value.multiple && g.value[0])
3364
- return g.value[0].title;
3363
+ if (!d.value.multiple && b.value[0])
3364
+ return b.value[0].title;
3365
3365
  }), F = (z) => {
3366
- !d.value.multiple && !p.value && z.length === 0 || D.value !== z && (b.value = z);
3366
+ !d.value.multiple && !p.value && z.length === 0 || D.value !== z && (g.value = z);
3367
3367
  }, H = (z) => {
3368
3368
  l.touched = !0;
3369
3369
  let te = null;
@@ -3391,25 +3391,25 @@ const Cd = /* @__PURE__ */ we({
3391
3391
  }
3392
3392
  o.value.set(t.name, [{ title: z.title, value: z.value }]);
3393
3393
  };
3394
- return Ie(
3394
+ return Te(
3395
3395
  () => s[t.name],
3396
3396
  async (z, te) => {
3397
3397
  if (z === te || st(z)) return;
3398
3398
  if (G(z) || T(z) || ue(z) && z.length === 0) {
3399
- if (g.value = [], d.value.multiple ? c.value = [] : c.value = null, Se(c.value), M.value === !0 || Ts(t.prefetch, ["hover", "focus", !1])) return;
3399
+ if (b.value = [], d.value.multiple ? c.value = [] : c.value = null, Se(c.value), M.value === !0 || Ts(t.prefetch, ["hover", "focus", !1])) return;
3400
3400
  E.value = setTimeout(() => {
3401
3401
  w();
3402
3402
  }, 3e3);
3403
3403
  return;
3404
3404
  }
3405
3405
  if (await O(z)) {
3406
- c.value = g.value.map((W) => ({ title: W.title, value: W.value })), Se(c.value);
3406
+ c.value = b.value.map((W) => ({ title: W.title, value: W.value })), Se(c.value);
3407
3407
  return;
3408
3408
  }
3409
3409
  if (ue(z)) {
3410
3410
  B.value = !0;
3411
3411
  try {
3412
- g.value = await t.fetchItemsMinimalByIds(z), c.value = g.value.map((W) => ({ title: W.title, value: W.value })), Se(c.value);
3412
+ b.value = await t.fetchItemsMinimalByIds(z), c.value = b.value.map((W) => ({ title: W.title, value: W.value })), Se(c.value);
3413
3413
  } catch (W) {
3414
3414
  k(W);
3415
3415
  } finally {
@@ -3419,7 +3419,7 @@ const Cd = /* @__PURE__ */ we({
3419
3419
  }
3420
3420
  B.value = !0;
3421
3421
  try {
3422
- g.value = await t.fetchItemsMinimalByIds([z]), c.value = g.value.map((W) => ({ title: W.title, value: W.value }))[0], Se(c.value);
3422
+ b.value = await t.fetchItemsMinimalByIds([z]), c.value = b.value.map((W) => ({ title: W.title, value: W.value }))[0], Se(c.value);
3423
3423
  } catch (W) {
3424
3424
  k(W);
3425
3425
  } finally {
@@ -3428,9 +3428,9 @@ const Cd = /* @__PURE__ */ we({
3428
3428
  },
3429
3429
  { immediate: !0 }
3430
3430
  ), Na(
3431
- b,
3431
+ g,
3432
3432
  (z, te) => {
3433
- z.length < t.searchMinChars || z !== te && (v.value++, $(z, v.value));
3433
+ z.length < t.searchMinChars || z !== te && (h.value++, $(z, h.value));
3434
3434
  },
3435
3435
  { debounce: 300 }
3436
3436
  ), (z, te) => (U(), Q(Qn, {
@@ -3451,7 +3451,7 @@ const Cd = /* @__PURE__ */ we({
3451
3451
  "return-object": "",
3452
3452
  autocomplete: "off",
3453
3453
  "onUpdate:search": F,
3454
- onBlur: h,
3454
+ onBlur: v,
3455
3455
  onFocus: y,
3456
3456
  onMouseenter: S,
3457
3457
  "onClick:clear": X
@@ -3504,37 +3504,37 @@ const Cd = /* @__PURE__ */ we({
3504
3504
  return s[t.name];
3505
3505
  },
3506
3506
  set(f) {
3507
- s[t.name] = f, v(f), l.touched = !0, a("change");
3507
+ s[t.name] = f, h(f), l.touched = !0, a("change");
3508
3508
  }
3509
- }), m = V(() => l.fields[t.name]), { t: c } = Ne(), b = V(() => m.value.titleT ? c(m.value.titleT) : void 0), { clearOne: p } = Dt(), E = () => {
3509
+ }), m = V(() => l.fields[t.name]), { t: c } = Ne(), g = V(() => m.value.titleT ? c(m.value.titleT) : void 0), { clearOne: p } = Dt(), E = () => {
3510
3510
  p(t.name, s, l), o.value.delete(t.name);
3511
- }, v = (f) => {
3511
+ }, h = (f) => {
3512
3512
  if (ue(f) && f.length === 0) return;
3513
3513
  if (ue(f)) {
3514
3514
  o.value.set(
3515
3515
  t.name,
3516
- f.map((h) => {
3517
- const C = t.items.find((x) => x.value === h);
3518
- return C ? { title: C.title, value: C.value } : { title: h, value: h };
3516
+ f.map((v) => {
3517
+ const C = t.items.find((x) => x.value === v);
3518
+ return C ? { title: C.title, value: C.value } : { title: v, value: v };
3519
3519
  })
3520
3520
  );
3521
3521
  return;
3522
3522
  }
3523
- const d = t.items.find((h) => h.value === f);
3523
+ const d = t.items.find((v) => v.value === f);
3524
3524
  d && o.value.set(t.name, [{ title: d.title, value: d.value }]);
3525
3525
  };
3526
- return Ie(
3526
+ return Te(
3527
3527
  () => s[t.name],
3528
3528
  (f, d) => {
3529
- f === d || st(f) || v(f);
3529
+ f === d || st(f) || h(f);
3530
3530
  },
3531
3531
  { immediate: !0 }
3532
3532
  ), (f, d) => (U(), Q(Qn, {
3533
3533
  modelValue: u.value,
3534
- "onUpdate:modelValue": d[0] || (d[0] = (h) => u.value = h),
3534
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => u.value = v),
3535
3535
  items: e.items,
3536
3536
  chips: m.value.multiple,
3537
- label: b.value,
3537
+ label: g.value,
3538
3538
  multiple: m.value.multiple,
3539
3539
  clearable: !m.value.mandatory,
3540
3540
  "data-cy": "filter-value",
@@ -3569,22 +3569,22 @@ const Cd = /* @__PURE__ */ we({
3569
3569
  get() {
3570
3570
  return s[t.name];
3571
3571
  },
3572
- set(v) {
3573
- s[t.name] = v, E(), l.touched = !0, a("change");
3572
+ set(h) {
3573
+ s[t.name] = h, E(), l.touched = !0, a("change");
3574
3574
  }
3575
- }), { t: u } = Ne(), m = V(() => l.fields[t.name]), c = V(() => m.value.titleT ? u(m.value.titleT) : void 0), { clearOne: b } = Dt(), p = () => {
3576
- b(t.name, s, l), o.value.delete(t.name);
3575
+ }), { t: u } = Ne(), m = V(() => l.fields[t.name]), c = V(() => m.value.titleT ? u(m.value.titleT) : void 0), { clearOne: g } = Dt(), p = () => {
3576
+ g(t.name, s, l), o.value.delete(t.name);
3577
3577
  }, E = () => {
3578
3578
  !Fe(i.value) || Fe(i.value) && i.value.length === 0 || o.value.set(t.name, [{ title: Di(i.value), value: i.value }]);
3579
3579
  };
3580
- return (v, f) => (U(), Q(er, it({
3580
+ return (h, f) => (U(), Q(er, it({
3581
3581
  modelValue: i.value,
3582
3582
  "onUpdate:modelValue": f[0] || (f[0] = (d) => i.value = d),
3583
3583
  "data-cy": e.dataCy,
3584
3584
  clearable: !m.value.mandatory,
3585
3585
  "default-value": m.value.default,
3586
3586
  label: c.value
3587
- }, v.$attrs, { onAfterClear: p }), null, 16, ["modelValue", "data-cy", "clearable", "default-value", "label"]));
3587
+ }, h.$attrs, { onAfterClear: p }), null, 16, ["modelValue", "data-cy", "clearable", "default-value", "label"]));
3588
3588
  }
3589
3589
  }), Is = /* @__PURE__ */ we({
3590
3590
  __name: "AFilterInteger",
@@ -3607,9 +3607,9 @@ const Cd = /* @__PURE__ */ we({
3607
3607
  set(f) {
3608
3608
  s[t.name] = f, l.touched = !0, a("change");
3609
3609
  }
3610
- }), u = V(() => l.fields[t.name]), { t: m } = Ne(), c = V(() => u.value.titleT ? m(u.value.titleT) : void 0), b = V(() => T(t.placeholder) ? u.value.variant === "startsWith" ? m("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? m("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? m("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: p } = Dt(), E = () => {
3610
+ }), u = V(() => l.fields[t.name]), { t: m } = Ne(), c = V(() => u.value.titleT ? m(u.value.titleT) : void 0), g = V(() => T(t.placeholder) ? u.value.variant === "startsWith" ? m("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? m("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? m("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: p } = Dt(), E = () => {
3611
3611
  p(t.name, s, l), o.value.delete(t.name);
3612
- }, v = () => {
3612
+ }, h = () => {
3613
3613
  if (Ht(i.value)) {
3614
3614
  o.value.set(t.name, [{ title: i.value + "", value: i.value }]);
3615
3615
  return;
@@ -3622,22 +3622,22 @@ const Cd = /* @__PURE__ */ we({
3622
3622
  o.value.set(t.name, [{ title: i.value, value: i.value }]);
3623
3623
  }
3624
3624
  };
3625
- return Ie(
3625
+ return Te(
3626
3626
  () => s[t.name],
3627
3627
  (f, d) => {
3628
- f === d || st(f) || v();
3628
+ f === d || st(f) || h();
3629
3629
  },
3630
3630
  { immediate: !0 }
3631
3631
  ), (f, d) => (U(), Q(ta, {
3632
3632
  modelValue: i.value,
3633
- "onUpdate:modelValue": d[0] || (d[0] = (h) => i.value = h),
3633
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => i.value = v),
3634
3634
  label: c.value,
3635
- placeholder: b.value,
3635
+ placeholder: g.value,
3636
3636
  clearable: !u.value.mandatory,
3637
3637
  "data-cy": e.dataCy,
3638
3638
  "hide-details": "",
3639
3639
  autocomplete: "off",
3640
- onBlur: v,
3640
+ onBlur: h,
3641
3641
  "onClick:clear": Ee(E, ["stop"])
3642
3642
  }, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
3643
3643
  }
@@ -3707,18 +3707,18 @@ const jn = {
3707
3707
  n.value = !1;
3708
3708
  const m = t(s.layoutType, s.systemResource), c = Date.now();
3709
3709
  if (!u) {
3710
- const h = e.value.get(m);
3711
- if (h)
3712
- return h.lastUsed = c, h.items;
3710
+ const v = e.value.get(m);
3711
+ if (v)
3712
+ return v.lastUsed = c, v.items;
3713
3713
  }
3714
- const { pagination: b } = vn("position", mt.Asc, {
3714
+ const { pagination: g } = vn("position", mt.Asc, {
3715
3715
  rowsPerPage: _a
3716
- }), { start: p, end: E } = hn(s.systemResource, "_"), { filterConfig: v, filterData: f } = Do(p, E);
3716
+ }), { start: p, end: E } = hn(s.systemResource, "_"), { filterConfig: h, filterData: f } = Do(p, E);
3717
3717
  f.configType = jn.FilterBookmark, f.layoutType = s.layoutType, f.systemResource = s.systemResource, f.user = s.user;
3718
3718
  let d = [];
3719
3719
  try {
3720
- const { executeFetch: h } = i();
3721
- d = await h(b, f, v), e.value.set(m, { lastUsed: c, items: d });
3720
+ const { executeFetch: v } = i();
3721
+ d = await v(g, f, h), e.value.set(m, { lastUsed: c, items: d });
3722
3722
  } catch {
3723
3723
  n.value = !0;
3724
3724
  }
@@ -3728,12 +3728,12 @@ const jn = {
3728
3728
  n.value = !1;
3729
3729
  const { pagination: u } = vn("position", mt.Asc, {
3730
3730
  rowsPerPage: _a + 1
3731
- }), { start: m, end: c } = hn(s.systemResource, "_"), { filterConfig: b, filterData: p } = Do(m, c);
3731
+ }), { start: m, end: c } = hn(s.systemResource, "_"), { filterConfig: g, filterData: p } = Do(m, c);
3732
3732
  p.configType = jn.FilterBookmark, p.layoutType = s.layoutType, p.systemResource = s.systemResource, p.user = s.user;
3733
3733
  let E = 1 / 0;
3734
3734
  try {
3735
- const { executeFetch: v } = i();
3736
- E = (await v(u, p, b)).length;
3735
+ const { executeFetch: h } = i();
3736
+ E = (await h(u, p, g)).length;
3737
3737
  } catch {
3738
3738
  n.value = !0;
3739
3739
  }
@@ -3753,12 +3753,12 @@ const jn = {
3753
3753
  }), en = (e, n, t, a, r = void 0, o = void 0, l = {}) => {
3754
3754
  let s = null;
3755
3755
  return {
3756
- executeRequest: async (m = void 0, c = void 0, b = void 0) => {
3756
+ executeRequest: async (m = void 0, c = void 0, g = void 0) => {
3757
3757
  s = new AbortController();
3758
3758
  try {
3759
- const p = { method: n }, E = ve(c) ? c : o, v = ve(m) ? m : r;
3760
- if (T(v)) throw new Error("Url template is undefined");
3761
- p.url = v, v !== "" && !T(E) && (p.url = Cn(v, E)), G(b) || (p.data = JSON.stringify(b));
3759
+ const p = { method: n }, E = ve(c) ? c : o, h = ve(m) ? m : r;
3760
+ if (T(h)) throw new Error("Url template is undefined");
3761
+ p.url = h, h !== "" && !T(E) && (p.url = Cn(h, E)), G(g) || (p.data = JSON.stringify(g));
3762
3762
  const f = await e().request({
3763
3763
  ...l,
3764
3764
  ...p,
@@ -3796,8 +3796,8 @@ function or(e, n, t = Os, a = ko) {
3796
3796
  return c(a, void 0, m);
3797
3797
  },
3798
3798
  updateUserAdminConfig: (m, c) => {
3799
- const { executeRequest: b } = en(e, "PUT", n, t);
3800
- return b(a + "/:id", { id: m }, c);
3799
+ const { executeRequest: g } = en(e, "PUT", n, t);
3800
+ return g(a + "/:id", { id: m }, c);
3801
3801
  },
3802
3802
  deleteUserAdminConfig: (m) => {
3803
3803
  const { executeRequest: c } = en(e, "DELETE", n, t);
@@ -3828,18 +3828,18 @@ const Bs = { key: 0 }, Rs = 32, Ps = /* @__PURE__ */ we({
3828
3828
  const t = e, a = n, r = Ut(e, "datatableHiddenColumns"), o = ee(rt), l = ee(ct), s = ee(nr), i = ee(ht);
3829
3829
  if (T(s) || T(o) || T(l) || T(i))
3830
3830
  throw new Error("Incorrect provide/inject config.");
3831
- const u = P(!1), m = Mt("toolbar"), c = P(300), b = P(1e3), p = ar(), { useFetchUserAdminConfigList: E } = or(t.client, t.system), v = t.system + "_" + t.subject, f = async (g = !1) => {
3831
+ const u = P(!1), m = Mt("toolbar"), c = P(300), g = P(1e3), p = ar(), { useFetchUserAdminConfigList: E } = or(t.client, t.system), h = t.system + "_" + t.subject, f = async (b = !1) => {
3832
3832
  u.value = !0, await p.getBookmarks(
3833
3833
  {
3834
3834
  user: t.userId,
3835
3835
  layoutType: It.Desktop,
3836
- systemResource: v
3836
+ systemResource: h
3837
3837
  },
3838
3838
  E,
3839
- g
3839
+ b
3840
3840
  ), u.value = !1;
3841
- }, { deserializeFilters: d } = tr(l, o), h = (g) => {
3842
- const _ = g.data;
3841
+ }, { deserializeFilters: d } = tr(l, o), v = (b) => {
3842
+ const _ = b.data;
3843
3843
  ve(_.datatableHiddenColumns) && ve(r.value) && (r.value = _.datatableHiddenColumns), ve(_.sortBy) && (s.value = { ...s.value, sortBy: { key: _.sortBy.key, order: _.sortBy.order } });
3844
3844
  const B = d(_.filter);
3845
3845
  if (!G(B)) {
@@ -3847,7 +3847,7 @@ const Bs = { key: 0 }, Rs = 32, Ps = /* @__PURE__ */ we({
3847
3847
  const $ = k;
3848
3848
  let R = B.filters[$];
3849
3849
  if (T(R) && o.fields[$]?.clearable) {
3850
- l[$] = xe(o.fields[$].default), i.value.delete($);
3850
+ l[$] = Ie(o.fields[$].default), i.value.delete($);
3851
3851
  continue;
3852
3852
  }
3853
3853
  if (Fe(R)) {
@@ -3863,45 +3863,45 @@ const Bs = { key: 0 }, Rs = 32, Ps = /* @__PURE__ */ we({
3863
3863
  }
3864
3864
  a("submit");
3865
3865
  }
3866
- }, C = async (g) => {
3866
+ }, C = async (b) => {
3867
3867
  const _ = m.value;
3868
3868
  if (G(_)) return;
3869
- b.value = 1e3, await ze();
3869
+ g.value = 1e3, await ze();
3870
3870
  let B = 0, k = 0;
3871
3871
  for (let $ = 0; $ < _.children.length; $++) {
3872
3872
  const O = _.children[$].offsetWidth;
3873
- if (B += O, B >= g - Rs)
3873
+ if (B += O, B >= b - Rs)
3874
3874
  break;
3875
3875
  k++;
3876
3876
  }
3877
- b.value = k;
3877
+ g.value = k;
3878
3878
  };
3879
- $r(m, (g) => {
3880
- g[0] && (c.value = g[0].contentRect.width);
3879
+ $r(m, (b) => {
3880
+ b[0] && (c.value = b[0].contentRect.width);
3881
3881
  }), Fr(
3882
3882
  c,
3883
- (g, _) => {
3884
- g !== _ && C(g);
3883
+ (b, _) => {
3884
+ b !== _ && C(b);
3885
3885
  },
3886
3886
  { throttle: 1e3 }
3887
3887
  );
3888
3888
  const x = V(() => {
3889
- const g = p.generateKey(It.Desktop, v);
3890
- return p.bookmarks.get(g)?.items ?? [];
3889
+ const b = p.generateKey(It.Desktop, h);
3890
+ return p.bookmarks.get(b)?.items ?? [];
3891
3891
  }), I = V(() => {
3892
- const g = b.value;
3892
+ const b = g.value;
3893
3893
  return {
3894
- visible: x.value.slice(0, g),
3895
- hidden: x.value.slice(g)
3894
+ visible: x.value.slice(0, b),
3895
+ hidden: x.value.slice(b)
3896
3896
  };
3897
3897
  });
3898
- return Ie([u, () => x.value.length], ([g]) => {
3899
- g === !0 || G(m.value) || (c.value = m.value.clientWidth, ze(() => {
3898
+ return Te([u, () => x.value.length], ([b]) => {
3899
+ b === !0 || G(m.value) || (c.value = m.value.clientWidth, ze(() => {
3900
3900
  C(c.value);
3901
3901
  }));
3902
3902
  }), Pa(() => {
3903
3903
  f();
3904
- }), (g, _) => (U(), he("div", {
3904
+ }), (b, _) => (U(), he("div", {
3905
3905
  ref: "toolbar",
3906
3906
  key: x.value.length,
3907
3907
  class: "w-100 d-flex overflow-hidden align-center mb-1"
@@ -3916,7 +3916,7 @@ const Bs = { key: 0 }, Rs = 32, Ps = /* @__PURE__ */ we({
3916
3916
  "prepend-icon": "mdi-bookmark-outline",
3917
3917
  size: "small",
3918
3918
  class: "mr-1 mb-1 bg-grey-lighten-4 text-grey-darken-3",
3919
- onClick: (k) => h(B)
3919
+ onClick: (k) => v(B)
3920
3920
  }, {
3921
3921
  default: L(() => [
3922
3922
  Oe(ye(B.customName), 1)
@@ -3942,7 +3942,7 @@ const Bs = { key: 0 }, Rs = 32, Ps = /* @__PURE__ */ we({
3942
3942
  default: L(() => [
3943
3943
  (U(!0), he(at, null, Un(I.value.hidden, (B) => (U(), Q(Vt, {
3944
3944
  key: B.id,
3945
- onClick: (k) => h(B)
3945
+ onClick: (k) => v(B)
3946
3946
  }, {
3947
3947
  default: L(() => [
3948
3948
  N(Nr, null, {
@@ -4123,14 +4123,14 @@ function Re(e, n, t, a, r) {
4123
4123
  if (e !== window && e.parentNode && e !== lt() ? (o = e.getBoundingClientRect(), l = o.top, s = o.left, i = o.bottom, u = o.right, m = o.height, c = o.width) : (l = 0, s = 0, i = window.innerHeight, u = window.innerWidth, m = window.innerHeight, c = window.innerWidth), (n || t) && e !== window && (r = r || e.parentNode, !vt))
4124
4124
  do
4125
4125
  if (r && r.getBoundingClientRect && (ne(r, "transform") !== "none" || t && ne(r, "position") !== "static")) {
4126
- var b = r.getBoundingClientRect();
4127
- l -= b.top + parseInt(ne(r, "border-top-width")), s -= b.left + parseInt(ne(r, "border-left-width")), i = l + o.height, u = s + o.width;
4126
+ var g = r.getBoundingClientRect();
4127
+ l -= g.top + parseInt(ne(r, "border-top-width")), s -= g.left + parseInt(ne(r, "border-left-width")), i = l + o.height, u = s + o.width;
4128
4128
  break;
4129
4129
  }
4130
4130
  while (r = r.parentNode);
4131
4131
  if (a && e !== window) {
4132
- var p = Yt(r || e), E = p && p.a, v = p && p.d;
4133
- p && (l /= v, s /= E, c /= E, m /= v, i = l + m, u = s + c);
4132
+ var p = Yt(r || e), E = p && p.a, h = p && p.d;
4133
+ p && (l /= h, s /= E, c /= E, m /= h, i = l + m, u = s + c);
4134
4134
  }
4135
4135
  return {
4136
4136
  top: l,
@@ -4286,9 +4286,9 @@ function js() {
4286
4286
  }
4287
4287
  var o = !1, l = 0;
4288
4288
  e.forEach(function(s) {
4289
- var i = 0, u = s.target, m = u.fromRect, c = Re(u), b = u.prevFromRect, p = u.prevToRect, E = s.rect, v = Yt(u, !0);
4290
- v && (c.top -= v.f, c.left -= v.e), u.toRect = c, u.thisAnimationDuration && pa(b, c) && !pa(m, c) && // Make sure animatingRect is on line between toRect & fromRect
4291
- (E.top - c.top) / (E.left - c.left) === (m.top - c.top) / (m.left - c.left) && (i = Ws(E, b, p, r.options)), pa(c, m) || (u.prevFromRect = m, u.prevToRect = c, i || (i = r.options.animation), r.animate(u, E, c, i)), i && (o = !0, l = Math.max(l, i), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
4289
+ var i = 0, u = s.target, m = u.fromRect, c = Re(u), g = u.prevFromRect, p = u.prevToRect, E = s.rect, h = Yt(u, !0);
4290
+ h && (c.top -= h.f, c.left -= h.e), u.toRect = c, u.thisAnimationDuration && pa(g, c) && !pa(m, c) && // Make sure animatingRect is on line between toRect & fromRect
4291
+ (E.top - c.top) / (E.left - c.left) === (m.top - c.top) / (m.left - c.left) && (i = Ws(E, g, p, r.options)), pa(c, m) || (u.prevFromRect = m, u.prevToRect = c, i || (i = r.options.animation), r.animate(u, E, c, i)), i && (o = !0, l = Math.max(l, i), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
4292
4292
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
4293
4293
  }, i), u.thisAnimationDuration = i);
4294
4294
  }), clearTimeout(n), o ? n = setTimeout(function() {
@@ -4365,17 +4365,17 @@ var Bt = [], ha = {
4365
4365
  }
4366
4366
  };
4367
4367
  function Ks(e) {
4368
- var n = e.sortable, t = e.rootEl, a = e.name, r = e.targetEl, o = e.cloneEl, l = e.toEl, s = e.fromEl, i = e.oldIndex, u = e.newIndex, m = e.oldDraggableIndex, c = e.newDraggableIndex, b = e.originalEvent, p = e.putSortable, E = e.extraEventProperties;
4368
+ var n = e.sortable, t = e.rootEl, a = e.name, r = e.targetEl, o = e.cloneEl, l = e.toEl, s = e.fromEl, i = e.oldIndex, u = e.newIndex, m = e.oldDraggableIndex, c = e.newDraggableIndex, g = e.originalEvent, p = e.putSortable, E = e.extraEventProperties;
4369
4369
  if (n = n || t && t[je], !!n) {
4370
- var v, f = n.options, d = "on" + a.charAt(0).toUpperCase() + a.substr(1);
4371
- window.CustomEvent && !vt && !kn ? v = new CustomEvent(a, {
4370
+ var h, f = n.options, d = "on" + a.charAt(0).toUpperCase() + a.substr(1);
4371
+ window.CustomEvent && !vt && !kn ? h = new CustomEvent(a, {
4372
4372
  bubbles: !0,
4373
4373
  cancelable: !0
4374
- }) : (v = document.createEvent("Event"), v.initEvent(a, !0, !0)), v.to = l || t, v.from = s || t, v.item = r || t, v.clone = o, v.oldIndex = i, v.newIndex = u, v.oldDraggableIndex = m, v.newDraggableIndex = c, v.originalEvent = b, v.pullMode = p ? p.lastPutMode : void 0;
4375
- var h = ut(ut({}, E), En.getEventProperties(a, n));
4376
- for (var C in h)
4377
- v[C] = h[C];
4378
- t && t.dispatchEvent(v), f[d] && f[d].call(n, v);
4374
+ }) : (h = document.createEvent("Event"), h.initEvent(a, !0, !0)), h.to = l || t, h.from = s || t, h.item = r || t, h.clone = o, h.oldIndex = i, h.newIndex = u, h.oldDraggableIndex = m, h.newDraggableIndex = c, h.originalEvent = g, h.pullMode = p ? p.lastPutMode : void 0;
4375
+ var v = ut(ut({}, E), En.getEventProperties(a, n));
4376
+ for (var C in v)
4377
+ h[C] = v[C];
4378
+ t && t.dispatchEvent(h), f[d] && f[d].call(n, h);
4379
4379
  }
4380
4380
  }
4381
4381
  var Gs = ["evt"], qe = function(n, t) {
@@ -4387,7 +4387,7 @@ var Gs = ["evt"], qe = function(n, t) {
4387
4387
  rootEl: ke,
4388
4388
  nextEl: At,
4389
4389
  lastDownEl: Rn,
4390
- cloneEl: Ae,
4390
+ cloneEl: xe,
4391
4391
  cloneHidden: bt,
4392
4392
  dragStarted: rn,
4393
4393
  putSortable: Ye,
@@ -4417,7 +4417,7 @@ var Gs = ["evt"], qe = function(n, t) {
4417
4417
  function He(e) {
4418
4418
  Ks(ut({
4419
4419
  putSortable: Ye,
4420
- cloneEl: Ae,
4420
+ cloneEl: xe,
4421
4421
  targetEl: Y,
4422
4422
  rootEl: ke,
4423
4423
  oldIndex: Lt,
@@ -4426,7 +4426,7 @@ function He(e) {
4426
4426
  newDraggableIndex: gt
4427
4427
  }, e));
4428
4428
  }
4429
- var Y, Me, oe, ke, At, Rn, Ae, bt, Lt, Ke, fn, gt, xn, Ye, Pt = !1, Wn = !1, Kn = [], Et, et, va, ga, Mo, _o, rn, Rt, mn, pn = !1, In = !1, Pn, Ve, ba = [], $a = !1, Gn = [], ia = typeof document < "u", Mn = Qa, $o = kn || vt ? "cssFloat" : "float", Xs = ia && !rr && !Qa && "draggable" in document.createElement("div"), mr = (function() {
4429
+ var Y, Me, oe, ke, At, Rn, xe, bt, Lt, Ke, fn, gt, xn, Ye, Pt = !1, Wn = !1, Kn = [], Et, et, va, ga, Mo, _o, rn, Rt, mn, pn = !1, In = !1, Pn, Ve, ba = [], $a = !1, Gn = [], ia = typeof document < "u", Mn = Qa, $o = kn || vt ? "cssFloat" : "float", Xs = ia && !rr && !Qa && "draggable" in document.createElement("div"), mr = (function() {
4430
4430
  if (ia) {
4431
4431
  if (vt)
4432
4432
  return !1;
@@ -4469,8 +4469,8 @@ var Y, Me, oe, ke, At, Rn, Ae, bt, Lt, Ke, fn, gt, xn, Ye, Pt = !1, Wn = !1, Kn
4469
4469
  return o;
4470
4470
  if (typeof o == "function")
4471
4471
  return t(o(s, i, u, m), l)(s, i, u, m);
4472
- var b = (l ? s : i).options.group.name;
4473
- return o === !0 || typeof o == "string" && o === b || o.join && o.indexOf(b) > -1;
4472
+ var g = (l ? s : i).options.group.name;
4473
+ return o === !0 || typeof o == "string" && o === g || o.join && o.indexOf(g) > -1;
4474
4474
  };
4475
4475
  }
4476
4476
  var a = {}, r = n.group;
@@ -4712,8 +4712,8 @@ ae.prototype = /** @lends Sortable.prototype */
4712
4712
  e: m,
4713
4713
  f: c
4714
4714
  };
4715
- var b = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
4716
- ne(oe, "webkitTransform", b), ne(oe, "mozTransform", b), ne(oe, "msTransform", b), ne(oe, "transform", b), va = m, ga = c, et = o;
4715
+ var g = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
4716
+ ne(oe, "webkitTransform", g), ne(oe, "mozTransform", g), ne(oe, "msTransform", g), ne(oe, "transform", g), va = m, ga = c, et = o;
4717
4717
  }
4718
4718
  n.cancelable && n.preventDefault();
4719
4719
  }
@@ -4737,8 +4737,8 @@ ae.prototype = /** @lends Sortable.prototype */
4737
4737
  this._onDrop();
4738
4738
  return;
4739
4739
  }
4740
- qe("setupClone", this), ae.eventCanceled || (Ae = dr(Y), Ae.removeAttribute("id"), Ae.draggable = !1, Ae.style["will-change"] = "", this._hideClone(), We(Ae, this.options.chosenClass, !1), ae.clone = Ae), a.cloneId = Nn(function() {
4741
- qe("clone", a), !ae.eventCanceled && (a.options.removeCloneOnHide || ke.insertBefore(Ae, Y), a._hideClone(), He({
4740
+ qe("setupClone", this), ae.eventCanceled || (xe = dr(Y), xe.removeAttribute("id"), xe.draggable = !1, xe.style["will-change"] = "", this._hideClone(), We(xe, this.options.chosenClass, !1), ae.clone = xe), a.cloneId = Nn(function() {
4741
+ qe("clone", a), !ae.eventCanceled && (a.options.removeCloneOnHide || ke.insertBefore(xe, Y), a._hideClone(), He({
4742
4742
  sortable: a,
4743
4743
  name: "clone"
4744
4744
  }));
@@ -4746,7 +4746,7 @@ ae.prototype = /** @lends Sortable.prototype */
4746
4746
  },
4747
4747
  // Returns true - if no further action is needed (either inserted or another condition)
4748
4748
  _onDragOver: function(n) {
4749
- var t = this.el, a = n.target, r, o, l, s = this.options, i = s.group, u = ae.active, m = xn === i, c = s.sort, b = Ye || u, p, E = this, v = !1;
4749
+ var t = this.el, a = n.target, r, o, l, s = this.options, i = s.group, u = ae.active, m = xn === i, c = s.sort, g = Ye || u, p, E = this, h = !1;
4750
4750
  if ($a) return;
4751
4751
  function f(D, F) {
4752
4752
  qe(D, E, ut({
@@ -4757,9 +4757,9 @@ ae.prototype = /** @lends Sortable.prototype */
4757
4757
  dragRect: r,
4758
4758
  targetRect: o,
4759
4759
  canSort: c,
4760
- fromSortable: b,
4760
+ fromSortable: g,
4761
4761
  target: a,
4762
- completed: h,
4762
+ completed: v,
4763
4763
  onMove: function(X, re) {
4764
4764
  return _n(ke, t, Y, r, X, Re(X), n, re);
4765
4765
  },
@@ -4767,14 +4767,14 @@ ae.prototype = /** @lends Sortable.prototype */
4767
4767
  }, F));
4768
4768
  }
4769
4769
  function d() {
4770
- f("dragOverAnimationCapture"), E.captureAnimationState(), E !== b && b.captureAnimationState();
4770
+ f("dragOverAnimationCapture"), E.captureAnimationState(), E !== g && g.captureAnimationState();
4771
4771
  }
4772
- function h(D) {
4772
+ function v(D) {
4773
4773
  return f("dragOverCompleted", {
4774
4774
  insertion: D
4775
- }), D && (m ? u._hideClone() : u._showClone(E), E !== b && (We(Y, Ye ? Ye.options.ghostClass : u.options.ghostClass, !1), We(Y, s.ghostClass, !0)), Ye !== E && E !== ae.active ? Ye = E : E === ae.active && Ye && (Ye = null), b === E && (E._ignoreWhileAnimating = a), E.animateAll(function() {
4775
+ }), D && (m ? u._hideClone() : u._showClone(E), E !== g && (We(Y, Ye ? Ye.options.ghostClass : u.options.ghostClass, !1), We(Y, s.ghostClass, !0)), Ye !== E && E !== ae.active ? Ye = E : E === ae.active && Ye && (Ye = null), g === E && (E._ignoreWhileAnimating = a), E.animateAll(function() {
4776
4776
  f("dragOverAnimationComplete"), E._ignoreWhileAnimating = null;
4777
- }), E !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (a === Y && !Y.animated || a === t && !a.animated) && (Rt = null), !s.dragoverBubble && !n.rootEl && a !== document && (Y.parentNode[je]._isOutsideThisEl(n.target), !D && Tt(n)), !s.dragoverBubble && n.stopPropagation && n.stopPropagation(), v = !0;
4777
+ }), E !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (a === Y && !Y.animated || a === t && !a.animated) && (Rt = null), !s.dragoverBubble && !n.rootEl && a !== document && (Y.parentNode[je]._isOutsideThisEl(n.target), !D && Tt(n)), !s.dragoverBubble && n.stopPropagation && n.stopPropagation(), h = !0;
4778
4778
  }
4779
4779
  function C() {
4780
4780
  Ke = Je(Y), gt = Je(Y, s.draggable), He({
@@ -4786,47 +4786,47 @@ ae.prototype = /** @lends Sortable.prototype */
4786
4786
  originalEvent: n
4787
4787
  });
4788
4788
  }
4789
- if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = tt(a, s.draggable, t, !0), f("dragOver"), ae.eventCanceled) return v;
4789
+ if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = tt(a, s.draggable, t, !0), f("dragOver"), ae.eventCanceled) return h;
4790
4790
  if (Y.contains(n.target) || a.animated && a.animatingX && a.animatingY || E._ignoreWhileAnimating === a)
4791
- return h(!1);
4791
+ return v(!1);
4792
4792
  if (Wn = !1, u && !s.disabled && (m ? c || (l = Me !== ke) : Ye === this || (this.lastPutMode = xn.checkPull(this, u, Y, n)) && i.checkPut(this, u, Y, n))) {
4793
- if (p = this._getDirection(n, a) === "vertical", r = Re(Y), f("dragOverValid"), ae.eventCanceled) return v;
4793
+ if (p = this._getDirection(n, a) === "vertical", r = Re(Y), f("dragOverValid"), ae.eventCanceled) return h;
4794
4794
  if (l)
4795
- return Me = ke, d(), this._hideClone(), f("revert"), ae.eventCanceled || (At ? ke.insertBefore(Y, At) : ke.appendChild(Y)), h(!0);
4795
+ return Me = ke, d(), this._hideClone(), f("revert"), ae.eventCanceled || (At ? ke.insertBefore(Y, At) : ke.appendChild(Y)), v(!0);
4796
4796
  var x = eo(t, s.draggable);
4797
4797
  if (!x || au(n, p, this) && !x.animated) {
4798
4798
  if (x === Y)
4799
- return h(!1);
4799
+ return v(!1);
4800
4800
  if (x && t === n.target && (a = x), a && (o = Re(a)), _n(ke, t, Y, r, a, o, n, !!a) !== !1)
4801
- return d(), x && x.nextSibling ? t.insertBefore(Y, x.nextSibling) : t.appendChild(Y), Me = t, C(), h(!0);
4801
+ return d(), x && x.nextSibling ? t.insertBefore(Y, x.nextSibling) : t.appendChild(Y), Me = t, C(), v(!0);
4802
4802
  } else if (x && nu(n, p, this)) {
4803
4803
  var I = qt(t, 0, s, !0);
4804
4804
  if (I === Y)
4805
- return h(!1);
4805
+ return v(!1);
4806
4806
  if (a = I, o = Re(a), _n(ke, t, Y, r, a, o, n, !1) !== !1)
4807
- return d(), t.insertBefore(Y, I), Me = t, C(), h(!0);
4807
+ return d(), t.insertBefore(Y, I), Me = t, C(), v(!0);
4808
4808
  } else if (a.parentNode === t) {
4809
4809
  o = Re(a);
4810
- var g = 0, _, B = Y.parentNode !== t, k = !Zs(Y.animated && Y.toRect || r, a.animated && a.toRect || o, p), $ = p ? "top" : "left", R = xo(a, "top", "top") || xo(Y, "top", "top"), O = R ? R.scrollTop : void 0;
4811
- Rt !== a && (_ = o[$], pn = !1, In = !k && s.invertSwap || B), g = ou(n, a, o, p, k ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, In, Rt === a);
4810
+ var b = 0, _, B = Y.parentNode !== t, k = !Zs(Y.animated && Y.toRect || r, a.animated && a.toRect || o, p), $ = p ? "top" : "left", R = xo(a, "top", "top") || xo(Y, "top", "top"), O = R ? R.scrollTop : void 0;
4811
+ Rt !== a && (_ = o[$], pn = !1, In = !k && s.invertSwap || B), b = ou(n, a, o, p, k ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, In, Rt === a);
4812
4812
  var M;
4813
- if (g !== 0) {
4813
+ if (b !== 0) {
4814
4814
  var A = Je(Y);
4815
4815
  do
4816
- A -= g, M = Me.children[A];
4816
+ A -= b, M = Me.children[A];
4817
4817
  while (M && (ne(M, "display") === "none" || M === oe));
4818
4818
  }
4819
- if (g === 0 || M === a)
4820
- return h(!1);
4821
- Rt = a, mn = g;
4819
+ if (b === 0 || M === a)
4820
+ return v(!1);
4821
+ Rt = a, mn = b;
4822
4822
  var w = a.nextElementSibling, y = !1;
4823
- y = g === 1;
4823
+ y = b === 1;
4824
4824
  var S = _n(ke, t, Y, r, a, o, n, y);
4825
4825
  if (S !== !1)
4826
- return (S === 1 || S === -1) && (y = S === 1), $a = !0, setTimeout(tu, 30), d(), y && !w ? t.appendChild(Y) : a.parentNode.insertBefore(Y, y ? w : a), R && cr(R, 0, O - R.scrollTop), Me = Y.parentNode, _ !== void 0 && !In && (Pn = Math.abs(_ - Re(a)[$])), C(), h(!0);
4826
+ return (S === 1 || S === -1) && (y = S === 1), $a = !0, setTimeout(tu, 30), d(), y && !w ? t.appendChild(Y) : a.parentNode.insertBefore(Y, y ? w : a), R && cr(R, 0, O - R.scrollTop), Me = Y.parentNode, _ !== void 0 && !In && (Pn = Math.abs(_ - Re(a)[$])), C(), v(!0);
4827
4827
  }
4828
4828
  if (t.contains(Y))
4829
- return h(!1);
4829
+ return v(!1);
4830
4830
  }
4831
4831
  return !1;
4832
4832
  },
@@ -4846,7 +4846,7 @@ ae.prototype = /** @lends Sortable.prototype */
4846
4846
  this._nulling();
4847
4847
  return;
4848
4848
  }
4849
- Pt = !1, In = !1, pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fa(this.cloneId), Fa(this._dragStartId), this.nativeDraggable && (ce(document, "drop", this), ce(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn && ne(document.body, "user-select", ""), ne(Y, "transform", ""), n && (rn && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), oe && oe.parentNode && oe.parentNode.removeChild(oe), (ke === Me || Ye && Ye.lastPutMode !== "clone") && Ae && Ae.parentNode && Ae.parentNode.removeChild(Ae), Y && (this.nativeDraggable && ce(Y, "dragend", this), ya(Y), Y.style["will-change"] = "", rn && !Pt && We(Y, Ye ? Ye.options.ghostClass : this.options.ghostClass, !1), We(Y, this.options.chosenClass, !1), He({
4849
+ Pt = !1, In = !1, pn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fa(this.cloneId), Fa(this._dragStartId), this.nativeDraggable && (ce(document, "drop", this), ce(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn && ne(document.body, "user-select", ""), ne(Y, "transform", ""), n && (rn && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), oe && oe.parentNode && oe.parentNode.removeChild(oe), (ke === Me || Ye && Ye.lastPutMode !== "clone") && xe && xe.parentNode && xe.parentNode.removeChild(xe), Y && (this.nativeDraggable && ce(Y, "dragend", this), ya(Y), Y.style["will-change"] = "", rn && !Pt && We(Y, Ye ? Ye.options.ghostClass : this.options.ghostClass, !1), We(Y, this.options.chosenClass, !1), He({
4850
4850
  sortable: this,
4851
4851
  name: "unchoose",
4852
4852
  toEl: Me,
@@ -4893,7 +4893,7 @@ ae.prototype = /** @lends Sortable.prototype */
4893
4893
  }), this.save()))), this._nulling();
4894
4894
  },
4895
4895
  _nulling: function() {
4896
- qe("nulling", this), ke = Y = Me = oe = At = Ae = Rn = bt = Et = et = rn = Ke = gt = Lt = fn = Rt = mn = Ye = xn = ae.dragged = ae.ghost = ae.clone = ae.active = null, Gn.forEach(function(n) {
4896
+ qe("nulling", this), ke = Y = Me = oe = At = xe = Rn = bt = Et = et = rn = Ke = gt = Lt = fn = Rt = mn = Ye = xn = ae.dragged = ae.ghost = ae.clone = ae.active = null, Gn.forEach(function(n) {
4897
4897
  n.checked = !0;
4898
4898
  }), Gn.length = va = ga = 0;
4899
4899
  },
@@ -4976,7 +4976,7 @@ ae.prototype = /** @lends Sortable.prototype */
4976
4976
  _hideClone: function() {
4977
4977
  if (!bt) {
4978
4978
  if (qe("hideClone", this), ae.eventCanceled) return;
4979
- ne(Ae, "display", "none"), this.options.removeCloneOnHide && Ae.parentNode && Ae.parentNode.removeChild(Ae), bt = !0;
4979
+ ne(xe, "display", "none"), this.options.removeCloneOnHide && xe.parentNode && xe.parentNode.removeChild(xe), bt = !0;
4980
4980
  }
4981
4981
  },
4982
4982
  _showClone: function(n) {
@@ -4986,7 +4986,7 @@ ae.prototype = /** @lends Sortable.prototype */
4986
4986
  }
4987
4987
  if (bt) {
4988
4988
  if (qe("showClone", this), ae.eventCanceled) return;
4989
- Y.parentNode == ke && !this.options.group.revertClone ? ke.insertBefore(Ae, Y) : At ? ke.insertBefore(Ae, At) : ke.appendChild(Ae), this.options.group.revertClone && this.animate(Y, Ae), ne(Ae, "display", ""), bt = !1;
4989
+ Y.parentNode == ke && !this.options.group.revertClone ? ke.insertBefore(xe, Y) : At ? ke.insertBefore(xe, At) : ke.appendChild(xe), this.options.group.revertClone && this.animate(Y, xe), ne(xe, "display", ""), bt = !1;
4990
4990
  }
4991
4991
  }
4992
4992
  };
@@ -5015,17 +5015,17 @@ function au(e, n, t) {
5015
5015
  return n ? e.clientX > r.right + o || e.clientY > a.bottom && e.clientX > a.left : e.clientY > r.bottom + o || e.clientX > a.right && e.clientY > a.top;
5016
5016
  }
5017
5017
  function ou(e, n, t, a, r, o, l, s) {
5018
- var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width, m = a ? t.top : t.left, c = a ? t.bottom : t.right, b = !1;
5018
+ var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width, m = a ? t.top : t.left, c = a ? t.bottom : t.right, g = !1;
5019
5019
  if (!l) {
5020
5020
  if (s && Pn < u * r) {
5021
5021
  if (!pn && (mn === 1 ? i > m + u * o / 2 : i < c - u * o / 2) && (pn = !0), pn)
5022
- b = !0;
5022
+ g = !0;
5023
5023
  else if (mn === 1 ? i < m + Pn : i > c - Pn)
5024
5024
  return -mn;
5025
5025
  } else if (i > m + u * (1 - r) / 2 && i < c - u * (1 - r) / 2)
5026
5026
  return ru(n);
5027
5027
  }
5028
- return b = b || l, b && (i < m + u * o / 2 || i > c - u * o / 2) ? i > m + u / 2 ? 1 : -1 : 0;
5028
+ return g = g || l, g && (i < m + u * o / 2 || i > c - u * o / 2) ? i > m + u / 2 ? 1 : -1 : 0;
5029
5029
  }
5030
5030
  function ru(e) {
5031
5031
  return Je(Y) < Je(e) ? 1 : -1;
@@ -5152,11 +5152,11 @@ var Ca = ur(function(e, n, t, a) {
5152
5152
  if (n.scroll) {
5153
5153
  var r = (e.touches ? e.touches[0] : e).clientX, o = (e.touches ? e.touches[0] : e).clientY, l = n.scrollSensitivity, s = n.scrollSpeed, i = lt(), u = !1, m;
5154
5154
  Oa !== t && (Oa = t, Ln(), ln = n.scroll, m = n.scrollFn, ln === !0 && (ln = yt(t, !0)));
5155
- var c = 0, b = ln;
5155
+ var c = 0, g = ln;
5156
5156
  do {
5157
- var p = b, E = Re(p), v = E.top, f = E.bottom, d = E.left, h = E.right, C = E.width, x = E.height, I = void 0, g = void 0, _ = p.scrollWidth, B = p.scrollHeight, k = ne(p), $ = p.scrollLeft, R = p.scrollTop;
5158
- p === i ? (I = C < _ && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), g = x < B && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (I = C < _ && (k.overflowX === "auto" || k.overflowX === "scroll"), g = x < B && (k.overflowY === "auto" || k.overflowY === "scroll"));
5159
- var O = I && (Math.abs(h - r) <= l && $ + C < _) - (Math.abs(d - r) <= l && !!$), M = g && (Math.abs(f - o) <= l && R + x < B) - (Math.abs(v - o) <= l && !!R);
5157
+ var p = g, E = Re(p), h = E.top, f = E.bottom, d = E.left, v = E.right, C = E.width, x = E.height, I = void 0, b = void 0, _ = p.scrollWidth, B = p.scrollHeight, k = ne(p), $ = p.scrollLeft, R = p.scrollTop;
5158
+ p === i ? (I = C < _ && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), b = x < B && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (I = C < _ && (k.overflowX === "auto" || k.overflowX === "scroll"), b = x < B && (k.overflowY === "auto" || k.overflowY === "scroll"));
5159
+ var O = I && (Math.abs(v - r) <= l && $ + C < _) - (Math.abs(d - r) <= l && !!$), M = b && (Math.abs(f - o) <= l && R + x < B) - (Math.abs(h - o) <= l && !!R);
5160
5160
  if (!Be[c])
5161
5161
  for (var A = 0; A <= c; A++)
5162
5162
  Be[A] || (Be[A] = {});
@@ -5167,7 +5167,7 @@ var Ca = ur(function(e, n, t, a) {
5167
5167
  }).bind({
5168
5168
  layer: c
5169
5169
  }), 24))), c++;
5170
- } while (n.bubbleScroll && b !== i && (b = yt(b, !1)));
5170
+ } while (n.bubbleScroll && g !== i && (g = yt(g, !1)));
5171
5171
  Ba = u;
5172
5172
  }
5173
5173
  }, 30), br = function(n) {
@@ -5217,24 +5217,38 @@ ae.mount(new su());
5217
5217
  ae.mount(no, to);
5218
5218
  function uu(e, n, t = {}) {
5219
5219
  let a;
5220
- const { document: r = Or, ...o } = t, l = { onUpdate: (m) => {
5221
- fu(n, m.oldIndex, m.newIndex, m);
5222
- } }, s = () => {
5223
- const m = typeof e == "string" ? r?.querySelector(e) : Pr(e);
5224
- !m || a !== void 0 || (a = new ae(m, {
5225
- ...l,
5226
- ...o
5227
- }));
5228
- }, i = () => {
5220
+ const { document: r = Or, watchElement: o = !1, ...l } = t, s = { onUpdate: (h) => {
5221
+ fu(n, h.oldIndex, h.newIndex, h);
5222
+ } }, i = V(() => typeof e == "string" ? r?.querySelector(e) : Br(e)), u = () => {
5229
5223
  a?.destroy(), a = void 0;
5230
- }, u = (m, c) => {
5231
- if (c !== void 0) a?.option(m, c);
5232
- else return a?.option(m);
5224
+ }, m = (h) => {
5225
+ !h || a !== void 0 || (a = new ae(h, {
5226
+ ...s,
5227
+ ...l
5228
+ }));
5229
+ }, c = () => {
5230
+ const h = i.value;
5231
+ h && m(h);
5232
+ }, g = (h, f) => {
5233
+ if (f !== void 0) a?.option(h, f);
5234
+ else return a?.option(h);
5233
5235
  };
5234
- return Br(s), Rr(i), {
5235
- stop: i,
5236
- start: s,
5237
- option: u
5236
+ let p;
5237
+ o && typeof e != "string" ? p = Te(i, (h) => {
5238
+ u(), h && m(h);
5239
+ }, {
5240
+ immediate: !0,
5241
+ flush: "post"
5242
+ }) : Rr(c);
5243
+ const E = () => {
5244
+ u();
5245
+ };
5246
+ return Pr(() => {
5247
+ p?.(), u();
5248
+ }), {
5249
+ stop: E,
5250
+ start: c,
5251
+ option: g
5238
5252
  };
5239
5253
  }
5240
5254
  function cu(e, n, t) {
@@ -5319,13 +5333,13 @@ function ku(e, n, t, a) {
5319
5333
  raw: M
5320
5334
  };
5321
5335
  }
5322
- const b = V(() => e.value.map((M, A) => c(M, A))), p = (M = void 0) => {
5336
+ const g = V(() => e.value.map((M, A) => c(M, A))), p = (M = void 0) => {
5323
5337
  u.value++, T(M) || a("update:modelValue", M), ze(() => {
5324
5338
  n();
5325
5339
  });
5326
5340
  }, E = (M) => {
5327
5341
  m.value.add(M);
5328
- }, v = (M) => {
5342
+ }, h = (M) => {
5329
5343
  m.value.delete(M);
5330
5344
  }, f = (M, A, w, y = []) => {
5331
5345
  const S = A > w ? w : A;
@@ -5337,51 +5351,51 @@ function ku(e, n, t, a) {
5337
5351
  });
5338
5352
  return y;
5339
5353
  }, d = (M, A) => {
5340
- const w = xe(e.value);
5354
+ const w = Ie(e.value);
5341
5355
  if (A >= 0 && A < w.length) {
5342
5356
  let y = [];
5343
5357
  const S = w.splice(M, 1)[0];
5344
5358
  return w.splice(A, 0, S), T(t.updatePosition) || (y = f(w, M, A)), p(), a("update:modelValue", w), y;
5345
5359
  }
5346
5360
  return [];
5347
- }, h = (M, A) => {
5361
+ }, v = (M, A) => {
5348
5362
  const w = A.findIndex((y) => y[t.keyField] === M);
5349
5363
  return w === -1 ? null : w;
5350
5364
  }, C = (M, A, w, y = null) => {
5351
- M.data = xe(A), G(w) || (M.data.position = w), G(y) || E(A.id);
5365
+ M.data = Ie(A), G(w) || (M.data.position = w), G(y) || E(A.id);
5352
5366
  }, x = (M, A, w = null, y = null) => {
5353
- const S = xe(e.value), D = h(M, S);
5367
+ const S = Ie(e.value), D = v(M, S);
5354
5368
  !G(D) && S[D] && (C(S[D], A, w, y), p(S));
5355
5369
  }, I = (M, A, w, y = null) => {
5356
- const S = xe(e.value);
5370
+ const S = Ie(e.value);
5357
5371
  S[M] && (C(S[M], A, w, y), p(S));
5358
- }, g = (M, A) => {
5359
- const w = xe(e.value);
5372
+ }, b = (M, A) => {
5373
+ const w = Ie(e.value);
5360
5374
  if (G(M) || M < 0)
5361
- return w.push(xe(A)), p(w), [];
5375
+ return w.push(Ie(A)), p(w), [];
5362
5376
  const y = [];
5363
5377
  return w[M] ? (w.splice(M + 1, 0, A), f(w, M + 1, M + 1, y), p(w), y) : [];
5364
5378
  }, _ = (M, A) => {
5365
- const w = xe(e.value);
5379
+ const w = Ie(e.value);
5366
5380
  if (G(M))
5367
- return w.push(xe(A)), p(w), [];
5368
- const y = h(M, w), S = [];
5381
+ return w.push(Ie(A)), p(w), [];
5382
+ const y = v(M, w), S = [];
5369
5383
  return !G(y) && w[y] ? (w.splice(y + 1, 0, A), f(w, y + 1, y + 1, S), p(w), S) : [];
5370
5384
  }, B = (M) => {
5371
- const A = xe(e.value), w = h(M, A), y = [];
5372
- return !G(w) && A[w] ? (A.splice(w, 1), f(A, w, w, y), v(M), p(A), y) : [];
5385
+ const A = Ie(e.value), w = v(M, A), y = [];
5386
+ return !G(w) && A[w] ? (A.splice(w, 1), f(A, w, w, y), h(M), p(A), y) : [];
5373
5387
  }, k = (M) => {
5374
- const A = xe(e.value), w = [];
5388
+ const A = Ie(e.value), w = [];
5375
5389
  if (A[M]) {
5376
5390
  const y = A[M][t.keyField];
5377
- return A.splice(M, 1), f(A, M, M, w), v(y), p(A), w;
5391
+ return A.splice(M, 1), f(A, M, M, w), h(y), p(A), w;
5378
5392
  }
5379
5393
  return [];
5380
5394
  }, $ = () => {
5381
5395
  l.value && i.value && (i.value.stop(), i.value = null);
5382
5396
  };
5383
5397
  return {
5384
- items: b,
5398
+ items: g,
5385
5399
  forceRerender: u,
5386
5400
  dirtyLocal: m,
5387
5401
  widgetEl: l,
@@ -5398,7 +5412,7 @@ function ku(e, n, t, a) {
5398
5412
  destroy: $,
5399
5413
  moveArrayElement: d,
5400
5414
  addAfterId: _,
5401
- addAfterIndex: g,
5415
+ addAfterIndex: b,
5402
5416
  removeById: B,
5403
5417
  removeByIndex: k,
5404
5418
  updateData: x,
@@ -5433,8 +5447,8 @@ const Eu = "a-sortable-", Tu = ["id"], Au = { key: 1 }, xu = { class: "a-sortabl
5433
5447
  const a = e, r = t, o = xr(() => a.modelValue), { t: l } = Ne(), s = (y) => {
5434
5448
  r("onAddAfter", y);
5435
5449
  }, i = (y) => {
5436
- if (h.value = y, a.disableDeleteDialog) {
5437
- g();
5450
+ if (v.value = y, a.disableDeleteDialog) {
5451
+ b();
5438
5452
  return;
5439
5453
  }
5440
5454
  C.value = !0;
@@ -5442,11 +5456,11 @@ const Eu = "a-sortable-", Tu = ["id"], Au = { key: 1 }, xu = { class: "a-sortabl
5442
5456
  r("onEdit", y);
5443
5457
  }, m = () => {
5444
5458
  if (a.modelValue.length > 0) {
5445
- r("onAddLast", xe(a.modelValue[a.modelValue.length - 1]));
5459
+ r("onAddLast", Ie(a.modelValue[a.modelValue.length - 1]));
5446
5460
  return;
5447
5461
  }
5448
5462
  r("onAddLast", null);
5449
- }, c = V(() => T(a.widgetIdentifierId) ? Eu + k.value : a.widgetIdentifierId), b = V(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), p = () => {
5463
+ }, c = V(() => T(a.widgetIdentifierId) ? Eu + k.value : a.widgetIdentifierId), g = V(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), p = () => {
5450
5464
  if (a.disableDraggable || !B.value) return;
5451
5465
  const y = B.value.querySelector("." + Bo);
5452
5466
  y && (_.value = uu(y, [], {
@@ -5465,14 +5479,14 @@ const Eu = "a-sortable-", Tu = ["id"], Au = { key: 1 }, xu = { class: "a-sortabl
5465
5479
  }));
5466
5480
  }, {
5467
5481
  items: E,
5468
- forceRerender: v,
5482
+ forceRerender: h,
5469
5483
  dirtyLocal: f,
5470
5484
  moveArrayElement: d,
5471
- itemToRemove: h,
5485
+ itemToRemove: v,
5472
5486
  removeDialog: C,
5473
5487
  destroy: x,
5474
5488
  refresh: I,
5475
- onRemoveDialogConfirm: g,
5489
+ onRemoveDialogConfirm: b,
5476
5490
  sortableInstance: _,
5477
5491
  widgetEl: B,
5478
5492
  randomUuid: k,
@@ -5487,12 +5501,12 @@ const Eu = "a-sortable-", Tu = ["id"], Au = { key: 1 }, xu = { class: "a-sortabl
5487
5501
  x();
5488
5502
  }), ze(() => {
5489
5503
  B.value = document.querySelector("#" + c.value), p();
5490
- }), Ie(
5504
+ }), Te(
5491
5505
  () => a.disableDraggable,
5492
5506
  async (y) => {
5493
5507
  x(), y === !1 && p();
5494
5508
  }
5495
- ), Ie(
5509
+ ), Te(
5496
5510
  () => a.dirty,
5497
5511
  (y) => {
5498
5512
  f.value = y;
@@ -5510,10 +5524,10 @@ const Eu = "a-sortable-", Tu = ["id"], Au = { key: 1 }, xu = { class: "a-sortabl
5510
5524
  return U(), he("div", null, [
5511
5525
  $e("div", {
5512
5526
  id: c.value,
5513
- class: nt(b.value)
5527
+ class: nt(g.value)
5514
5528
  }, [
5515
5529
  (U(), he("div", {
5516
- key: Z(v),
5530
+ key: Z(h),
5517
5531
  class: nt(Z(Bo))
5518
5532
  }, [
5519
5533
  (U(!0), he(at, null, Un(Z(E), (H, X) => (U(), he(at, {
@@ -5708,7 +5722,7 @@ const Eu = "a-sortable-", Tu = ["id"], Au = { key: 1 }, xu = { class: "a-sortabl
5708
5722
  _: 1
5709
5723
  }),
5710
5724
  N(F, {
5711
- onClick: Ee(Z(g), ["stop"])
5725
+ onClick: Ee(Z(b), ["stop"])
5712
5726
  }, {
5713
5727
  default: L(() => [
5714
5728
  Oe(ye(Z(l)("common.button.delete")), 1)
@@ -5775,17 +5789,17 @@ const Fu = {
5775
5789
  const t = e, a = n, r = ee(rt), o = ee(ct), l = ee(nr);
5776
5790
  if (T(l) || T(r) || T(o))
5777
5791
  throw new Error("Incorrect provide/inject config.");
5778
- const s = P("add"), i = P(""), u = P(!1), m = P(!1), c = P(!1), b = P(!1), p = P(!1), E = P([]), v = P(null), { required: f, maxLength: d } = Xa(), h = {
5792
+ const s = P("add"), i = P(""), u = P(!1), m = P(!1), c = P(!1), g = P(!1), p = P(!1), E = P([]), h = P(null), { required: f, maxLength: d } = Xa(), v = {
5779
5793
  customName: {
5780
5794
  required: f,
5781
5795
  maxLength: d(100)
5782
5796
  }
5783
- }, C = Hn(h, { customName: i }, { $stopPropagation: !0 }), x = {
5797
+ }, C = Hn(v, { customName: i }, { $stopPropagation: !0 }), x = {
5784
5798
  itemEdit: {
5785
5799
  required: f,
5786
5800
  maxLength: d(100)
5787
5801
  }
5788
- }, I = Hn(x, { itemEdit: v }, { $stopPropagation: !0 }), g = ar(), {
5802
+ }, I = Hn(x, { itemEdit: h }, { $stopPropagation: !0 }), b = ar(), {
5789
5803
  createUserAdminConfig: _,
5790
5804
  useFetchUserAdminConfigList: B,
5791
5805
  updateUserAdminConfigPositions: k,
@@ -5811,7 +5825,7 @@ const Fu = {
5811
5825
  sortBy: m.value && l.value.sortBy ? l.value.sortBy : void 0
5812
5826
  };
5813
5827
  try {
5814
- const W = await g.fetchBookmarksCount(
5828
+ const W = await b.fetchBookmarksCount(
5815
5829
  {
5816
5830
  user: t.user,
5817
5831
  layoutType: It.Desktop,
@@ -5825,8 +5839,8 @@ const Fu = {
5825
5839
  }
5826
5840
  q.position = W + 1;
5827
5841
  const me = await _(q);
5828
- g.addOne(
5829
- g.generateKey(It.Desktop, F),
5842
+ b.addOne(
5843
+ b.generateKey(It.Desktop, F),
5830
5844
  me
5831
5845
  ), a("onClose");
5832
5846
  } catch (W) {
@@ -5847,34 +5861,34 @@ const Fu = {
5847
5861
  H();
5848
5862
  } else s.value === "manage" && E.value.length > 0 && S();
5849
5863
  }, re = async (q) => {
5850
- b.value = !0;
5864
+ g.value = !0;
5851
5865
  try {
5852
5866
  await $(q.raw.id), await te(), z();
5853
5867
  } catch (W) {
5854
5868
  M(W);
5855
5869
  } finally {
5856
- b.value = !1;
5870
+ g.value = !1;
5857
5871
  }
5858
5872
  }, de = Mt("inputRef"), Ce = async (q) => {
5859
- v.value = { id: q.raw.id, customName: q.raw.customName }, await ze(), de.value?.focus();
5873
+ h.value = { id: q.raw.id, customName: q.raw.customName }, await ze(), de.value?.focus();
5860
5874
  }, Se = async (q) => {
5861
- if (G(v.value)) return;
5862
- b.value = !0;
5863
- const W = xe(q.raw);
5864
- W.customName = v.value.customName;
5875
+ if (G(h.value)) return;
5876
+ g.value = !0;
5877
+ const W = Ie(q.raw);
5878
+ W.customName = h.value.customName;
5865
5879
  try {
5866
5880
  z(), await R(W.id, W), await te();
5867
5881
  } catch (me) {
5868
5882
  M(me);
5869
5883
  } finally {
5870
- b.value = !1;
5884
+ g.value = !1;
5871
5885
  }
5872
5886
  }, z = () => {
5873
- v.value = null;
5887
+ h.value = null;
5874
5888
  }, te = async () => {
5875
- b.value = !0;
5889
+ g.value = !0;
5876
5890
  try {
5877
- E.value = await g.getBookmarks(
5891
+ E.value = await b.getBookmarks(
5878
5892
  {
5879
5893
  user: t.user,
5880
5894
  layoutType: It.Desktop,
@@ -5886,10 +5900,10 @@ const Fu = {
5886
5900
  } catch (q) {
5887
5901
  M(q);
5888
5902
  } finally {
5889
- b.value = !1;
5903
+ g.value = !1;
5890
5904
  }
5891
5905
  };
5892
- return Ie(s, () => {
5906
+ return Te(s, () => {
5893
5907
  p.value = !1, s.value === "manage" && te();
5894
5908
  }), (q, W) => {
5895
5909
  const me = Vn("ABtnTertiary"), K = Vn("ABtnPrimary");
@@ -5973,7 +5987,7 @@ const Fu = {
5973
5987
  _: 1
5974
5988
  })
5975
5989
  ])) : s.value === "manage" ? (U(), he("div", Ou, [
5976
- b.value ? (U(), he("div", Bu, [
5990
+ g.value ? (U(), he("div", Bu, [
5977
5991
  N(Uo, { indeterminate: "" })
5978
5992
  ])) : (U(), Q(_u, {
5979
5993
  key: 1,
@@ -5986,22 +6000,22 @@ const Fu = {
5986
6000
  onOnEdit: Ce
5987
6001
  }, _t({
5988
6002
  item: L(({ item: J }) => [
5989
- v.value && v.value.id === J.raw.id ? (U(), Q(po, {
6003
+ h.value && h.value.id === J.raw.id ? (U(), Q(po, {
5990
6004
  key: 0,
5991
6005
  ref_key: "inputRef",
5992
6006
  ref: de,
5993
- modelValue: v.value.customName,
5994
- "onUpdate:modelValue": W[5] || (W[5] = (le) => v.value.customName = le),
6007
+ modelValue: h.value.customName,
6008
+ "onUpdate:modelValue": W[5] || (W[5] = (le) => h.value.customName = le),
5995
6009
  "hide-details": "auto",
5996
6010
  v: Z(I)
5997
6011
  }, null, 8, ["modelValue", "v"])) : (U(), he("div", Ru, ye(J.raw.customName), 1))
5998
6012
  ]),
5999
6013
  _: 2
6000
6014
  }, [
6001
- Z(G)(v.value) ? void 0 : {
6015
+ Z(G)(h.value) ? void 0 : {
6002
6016
  name: "item-buttons",
6003
6017
  fn: L(({ item: J }) => [
6004
- v.value && v.value.id === J.raw.id ? (U(), he("div", Pu, [
6018
+ h.value && h.value.id === J.raw.id ? (U(), he("div", Pu, [
6005
6019
  N(Ue, {
6006
6020
  icon: "",
6007
6021
  size: "x-small",
@@ -6173,25 +6187,25 @@ const Fu = {
6173
6187
  u.value++, ze(() => {
6174
6188
  r("submit");
6175
6189
  });
6176
- }, { clearAll: b, clearAllFilterSelected: p } = Dt(), E = () => {
6190
+ }, { clearAll: g, clearAllFilterSelected: p } = Dt(), E = () => {
6177
6191
  ze(() => {
6178
6192
  u.value++, r("bookmarkLoadAfter");
6179
6193
  });
6180
- }, v = () => {
6181
- b(s, l), p(s, l, m), ze(() => {
6194
+ }, h = () => {
6195
+ g(s, l), p(s, l, m), ze(() => {
6182
6196
  u.value++, r("reset");
6183
6197
  });
6184
- }, f = V(() => l.touched), d = V(() => Object.entries(l.fields).filter(([, h]) => !h.render.skip).map(([h]) => h));
6198
+ }, f = V(() => l.touched), d = V(() => Object.entries(l.fields).filter(([, v]) => !v.render.skip).map(([v]) => v));
6185
6199
  return n({
6186
6200
  submit: c,
6187
- reset: v
6188
- }), (h, C) => (U(), Q(al, {
6201
+ reset: h
6202
+ }), (v, C) => (U(), Q(al, {
6189
6203
  name: e.formName,
6190
6204
  onSubmit: Ee(c, ["prevent"])
6191
6205
  }, {
6192
6206
  default: L(() => [
6193
6207
  $e("div", Yu, [
6194
- _e(h.$slots, "bookmarks", {}, () => [
6208
+ _e(v.$slots, "bookmarks", {}, () => [
6195
6209
  N(Ea, { dense: "" }, {
6196
6210
  default: L(() => [
6197
6211
  e.store && e.userId && Z(ve)(e.client) ? (U(), Q(Ta, { key: 0 }, {
@@ -6215,7 +6229,7 @@ const Fu = {
6215
6229
  _: 1
6216
6230
  })
6217
6231
  ]),
6218
- _e(h.$slots, "detail", {}, () => [
6232
+ _e(v.$slots, "detail", {}, () => [
6219
6233
  N(Ea, null, {
6220
6234
  default: L(() => [
6221
6235
  (U(!0), he(at, null, Un(d.value, (x) => (U(), Q(Ta, {
@@ -6227,7 +6241,7 @@ const Fu = {
6227
6241
  xl: Z(l).fields[x].render.xl || 12
6228
6242
  }, {
6229
6243
  default: L(() => [
6230
- _e(h.$slots, Z(As)(x), {
6244
+ _e(v.$slots, Z(As)(x), {
6231
6245
  itemConfig: Z(l).fields[x]
6232
6246
  }, () => [
6233
6247
  N(Ms, { name: x }, null, 8, ["name"])
@@ -6241,9 +6255,9 @@ const Fu = {
6241
6255
  ])
6242
6256
  ]),
6243
6257
  e.hideButtons ? be("", !0) : (U(), he("div", Vu, [
6244
- _e(h.$slots, "buttons", {}, () => [
6258
+ _e(v.$slots, "buttons", {}, () => [
6245
6259
  N(Ei, { touched: f.value }, null, 8, ["touched"]),
6246
- N(Ti, { onReset: v }),
6260
+ N(Ti, { onReset: h }),
6247
6261
  i.value.system && i.value.subject && e.userId && Z(ve)(e.client) ? (U(), Q(Lu, {
6248
6262
  key: 0,
6249
6263
  client: e.client,
@@ -6314,22 +6328,22 @@ const Fu = {
6314
6328
  );
6315
6329
  const m = Ut(e, "modelValue", {
6316
6330
  set(j) {
6317
- return ue(j) ? xe(j) : j;
6331
+ return ue(j) ? Ie(j) : j;
6318
6332
  }
6319
6333
  }), c = Ut(e, "selected", {
6320
6334
  set(j) {
6321
- return ue(j) ? xe(j) : j;
6335
+ return ue(j) ? Ie(j) : j;
6322
6336
  }
6323
- }), { collabOptions: b } = zt(), p = P((j) => {
6337
+ }), { collabOptions: g } = zt(), p = P((j) => {
6324
6338
  }), E = P((j) => {
6325
- }), v = P(() => {
6339
+ }), h = P(() => {
6326
6340
  }), f = P(null);
6327
- if (b.value.enabled && ve(a.collab)) {
6341
+ if (g.value.enabled && ve(a.collab)) {
6328
6342
  const { releaseCollabFieldLock: j, changeCollabFieldData: se, acquireCollabFieldLock: ge, lockedByUser: pe } = aa(
6329
6343
  a.collab.room,
6330
6344
  a.collab.field
6331
6345
  );
6332
- p.value = j, E.value = se, v.value = ge, Ie(
6346
+ p.value = j, E.value = se, h.value = ge, Te(
6333
6347
  pe,
6334
6348
  (Ot) => {
6335
6349
  f.value = Ot;
@@ -6337,13 +6351,13 @@ const Fu = {
6337
6351
  { immediate: !0 }
6338
6352
  );
6339
6353
  }
6340
- const d = P(""), h = P(!1), C = P(null), x = P(0), { t: I } = Ne(), g = ee(Va, void 0), _ = ee(Ha, void 0), B = () => {
6341
- h.value = !1, r("blur", m.value), a.v?.$touch(), p.value(m.value);
6354
+ const d = P(""), v = P(!1), C = P(null), x = P(0), { t: I } = Ne(), b = ee(Va, void 0), _ = ee(Ha, void 0), B = () => {
6355
+ v.value = !1, r("blur", m.value), a.v?.$touch(), p.value(m.value);
6342
6356
  }, k = V(() => ve(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? a.v.$errors.map((j) => j.$message) : []), $ = V(() => {
6343
6357
  if (ve(a.label)) return a.label;
6344
- if (T(g) || T(_) || T(a.v?.$path)) return "";
6358
+ if (T(b) || T(_) || T(a.v?.$path)) return "";
6345
6359
  const { end: j } = hn(a.v?.$path, ".");
6346
- return I(g + "." + _ + ".model." + j);
6360
+ return I(b + "." + _ + ".model." + j);
6347
6361
  }), R = V(() => ve(a.required) ? a.required : a.v?.required && a.v?.required.$params.type === "required"), O = V(() => ve(a.disabled) ? a.disabled : !!f.value), { pagination: M } = vn(G(u) ? null : u.key, u?.order), A = P([]), w = P([]), y = P(!0), S = P(!1), D = V(() => {
6348
6362
  const j = /* @__PURE__ */ new Map(), se = (ge) => {
6349
6363
  ge.forEach((pe) => {
@@ -6407,14 +6421,14 @@ const Fu = {
6407
6421
  }
6408
6422
  }
6409
6423
  }, q = async () => {
6410
- h.value = !0, v.value(), await te("focus", m.value), r("focus", m.value);
6424
+ v.value = !0, h.value(), await te("focus", m.value), r("focus", m.value);
6411
6425
  }, W = async () => {
6412
6426
  await te("hover", m.value);
6413
6427
  }, me = V(() => {
6414
6428
  if (!a.multiple && w.value[0])
6415
6429
  return w.value[0].title;
6416
6430
  }), K = (j) => {
6417
- !a.multiple && !h.value && j.length === 0 || me.value !== j && (d.value = j);
6431
+ !a.multiple && !v.value && j.length === 0 || me.value !== j && (d.value = j);
6418
6432
  }, J = async () => {
6419
6433
  try {
6420
6434
  A.value = await a.fetchItems(M, l, o);
@@ -6445,11 +6459,11 @@ const Fu = {
6445
6459
  }
6446
6460
  },
6447
6461
  { debounce: ju }
6448
- ), Ie(d, (j, se) => {
6462
+ ), Te(d, (j, se) => {
6449
6463
  j !== se && r("searchChange", j);
6450
6464
  });
6451
- const Te = (j) => {
6452
- const se = xe(j);
6465
+ const Ae = (j) => {
6466
+ const se = Ie(j);
6453
6467
  if (c.value = se, G(se) || T(se)) {
6454
6468
  m.value = null;
6455
6469
  return;
@@ -6465,11 +6479,11 @@ const Fu = {
6465
6479
  if (A.value.length === 0 && d.value.length < a.minSearchChars)
6466
6480
  return T(a.minSearchText) ? I("common.filter.filterMinChars", { min: a.minSearchChars }) : a.minSearchText;
6467
6481
  });
6468
- return Ie(
6482
+ return Te(
6469
6483
  m,
6470
6484
  async (j, se) => {
6471
6485
  if (j !== se) {
6472
- if (y.value && (y.value = !1, await te("mounted", j)), b.value.enabled && h.value && E.value(j), Vo(j)) {
6486
+ if (y.value && (y.value = !1, await te("mounted", j)), g.value.enabled && v.value && E.value(j), Vo(j)) {
6473
6487
  X(j);
6474
6488
  return;
6475
6489
  }
@@ -6497,7 +6511,7 @@ const Fu = {
6497
6511
  "hide-selected": e.closableChips,
6498
6512
  "closable-chips": e.closableChips && !H.value && !O.value && !e.readonly,
6499
6513
  "onUpdate:search": K,
6500
- "onUpdate:modelValue": Te,
6514
+ "onUpdate:modelValue": Ae,
6501
6515
  onBlur: B,
6502
6516
  onFocus: q,
6503
6517
  onMouseenter: W,
@@ -6731,7 +6745,7 @@ export {
6731
6745
  $u as cb,
6732
6746
  T as d,
6733
6747
  Ht as e,
6734
- xe as f,
6748
+ Ie as f,
6735
6749
  G as g,
6736
6750
  mt as h,
6737
6751
  ve as i,
@@ -6753,4 +6767,4 @@ export {
6753
6767
  Vo as y,
6754
6768
  il as z
6755
6769
  };
6756
- //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-B5wBPNIr.mjs.map
6770
+ //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-2d42rKPf.mjs.map