@aeria-ui/ui 0.0.65 → 0.0.67

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,9 +1,9 @@
1
- import { defineComponent as U, ref as J, resolveDirective as ne, openBlock as o, createElementBlock as i, normalizeClass as K, Fragment as P, renderList as D, withDirectives as N, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as I, inject as ve, computed as Q, createElementVNode as V, mergeProps as H, createBlock as g, resolveDynamicComponent as he, withCtx as f, useCssVars as Ct, Teleport as Xe, onMounted as vt, watch as ue, createVNode as z, vModelDynamic as Ot, onBeforeMount as yt, normalizeStyle as $e, withModifiers as qe, pushScopeId as Ee, popScopeId as De, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ve, vModelCheckbox as It, onUnmounted as At, isRef as ct, resolveComponent as Bt, Suspense as wt, useSlots as St, h as jt } from "vue";
1
+ import { defineComponent as U, ref as J, resolveDirective as ne, openBlock as o, createElementBlock as i, normalizeClass as K, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as I, inject as ve, computed as Q, createElementVNode as V, mergeProps as H, createBlock as g, resolveDynamicComponent as he, withCtx as f, useCssVars as Ct, Teleport as Xe, onMounted as vt, watch as ue, createVNode as z, vModelDynamic as Ot, onBeforeMount as yt, normalizeStyle as $e, withModifiers as qe, pushScopeId as Ee, popScopeId as De, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ce, vModelCheckbox as It, onUnmounted as At, isRef as ct, resolveComponent as Bt, Suspense as wt, useSlots as St, h as jt } from "vue";
2
2
  import { t as M, useI18n as Tt } from "@aeria-ui/i18n";
3
3
  import { useScrollObserver as Ye, useBreakpoints as ze, useMask as Lt, PAGINATION_PER_PAGE_DEFAULTS as Rt, API_URL as ht, request as zt, useDebounce as $t, isDocumentComplete as Mt, getObjectKey as Ft, convertToSearchQuery as qt, useAction as Ut, convertFromSearchQuery as Et, usePasswordPolicy as Dt } from "@aeria-ui/core";
4
- import { arraysIntersect as bt, getReferenceProperty as _e, convertConditionToQuery as Ht, deepClone as Re, freshItem as Qt, isRequired as Gt, evaluateCondition as Ke } from "@aeriajs/common";
4
+ import { arraysIntersect as bt, deepClone as Ve, getReferenceProperty as _e, convertConditionToQuery as Ht, freshItem as Qt, isRequired as Gt, evaluateCondition as Ke } from "@aeriajs/common";
5
5
  import { useStore as ie, getStoreId as Me, useParentStore as ge, STORE_ID as He, getGlobalStateManager as gt } from "@aeria-ui/state-management";
6
- import { useRouter as Ie } from "vue-router";
6
+ import { useRouter as Ae } from "vue-router";
7
7
  const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
8
8
  key: 0,
9
9
  class: "accordion__content"
@@ -24,11 +24,11 @@ const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
24
24
  "accordion--padded": !t.noPadding
25
25
  })
26
26
  }, [
27
- (o(!0), i(P, null, D(Object.keys(t.$slots).filter((u) => u !== "default"), (u, v) => (o(), i("div", {
27
+ (o(!0), i(N, null, D(Object.keys(t.$slots).filter((u) => u !== "default"), (u, v) => (o(), i("div", {
28
28
  key: u,
29
29
  class: "accordion__slot"
30
30
  }, [
31
- N((o(), i("div", {
31
+ x((o(), i("div", {
32
32
  class: "accordion__header",
33
33
  onClick: (c) => r.value === u ? r.value = null : r.value = u
34
34
  }, [
@@ -140,7 +140,7 @@ const fe = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-35bc81ae"]]), Pt = ["hre
140
140
  ], 2));
141
141
  }
142
142
  });
143
- const x = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { class: "panel__header-left" }, tn = { key: 1 }, nn = {
143
+ const Z = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { class: "panel__header-left" }, tn = { key: 1 }, nn = {
144
144
  key: 2,
145
145
  style: { "margin-left": "auto" }
146
146
  }, on = /* @__PURE__ */ U({
@@ -176,7 +176,7 @@ const x = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
176
176
  };
177
177
  return (n, _) => {
178
178
  const $ = ne("clickable"), b = ne("loading"), S = ne("overlay");
179
- return n.modelValue ? N((o(), i("div", {
179
+ return n.modelValue ? x((o(), i("div", {
180
180
  key: 0,
181
181
  class: K(`
182
182
  panel
@@ -214,21 +214,21 @@ const x = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
214
214
  I(n.$slots, "extra", {}, void 0, !0)
215
215
  ])) : y("", !0)
216
216
  ]),
217
- n.collapsible && s.value ? N((o(), g(x, {
217
+ n.collapsible && s.value ? x((o(), g(Z, {
218
218
  key: 0,
219
219
  reactive: "",
220
220
  icon: "plus",
221
221
  onClick: _[0] || (_[0] = (T) => p(!s.value))
222
222
  }, null, 512)), [
223
223
  [$]
224
- ]) : n.collapsible && !s.value ? N((o(), g(x, {
224
+ ]) : n.collapsible && !s.value ? x((o(), g(Z, {
225
225
  key: 1,
226
226
  reactive: "",
227
227
  icon: "minus",
228
228
  onClick: _[1] || (_[1] = (T) => p(!s.value))
229
229
  }, null, 512)), [
230
230
  [$]
231
- ]) : n.closeHint ? N((o(), g(x, {
231
+ ]) : n.closeHint ? x((o(), g(Z, {
232
232
  key: 2,
233
233
  reactive: "",
234
234
  icon: "x",
@@ -237,7 +237,7 @@ const x = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
237
237
  [$]
238
238
  ]) : y("", !0)
239
239
  ], 2)) : y("", !0),
240
- s.value ? y("", !0) : N((o(), i("div", {
240
+ s.value ? y("", !0) : x((o(), i("div", {
241
241
  key: 1,
242
242
  ref_key: "body",
243
243
  ref: u,
@@ -274,7 +274,7 @@ const x = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
274
274
  };
275
275
  }
276
276
  });
277
- const Ae = /* @__PURE__ */ X(on, [["__scopeId", "data-v-73b47cf0"]]), an = { class: "button__content" }, ln = {
277
+ const Be = /* @__PURE__ */ X(on, [["__scopeId", "data-v-73b47cf0"]]), an = { class: "button__content" }, ln = {
278
278
  key: 1,
279
279
  class: "button__content"
280
280
  }, sn = /* @__PURE__ */ U({
@@ -308,7 +308,7 @@ const Ae = /* @__PURE__ */ X(on, [["__scopeId", "data-v-73b47cf0"]]), an = { cla
308
308
  disabled: l.disabled
309
309
  }, {
310
310
  default: f(() => [
311
- l.icon ? (o(), g(x, {
311
+ l.icon ? (o(), g(Z, {
312
312
  key: 0,
313
313
  icon: l.icon
314
314
  }, {
@@ -370,8 +370,8 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
370
370
  emits: ["actionClick"],
371
371
  setup(d, { emit: r }) {
372
372
  Ct((c) => ({
373
- "21ea8da7": v.value.x,
374
- "21ea8da8": v.value.y
373
+ "0cfe51de": v.value.x,
374
+ "0cfe51df": v.value.y
375
375
  }));
376
376
  const a = r, t = J(null), l = J(!1), s = (c) => c == null ? void 0 : c.filter((h) => {
377
377
  if (h.roles) {
@@ -380,9 +380,10 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
380
380
  }
381
381
  return !0;
382
382
  }), u = (c, h) => {
383
- c.click(h), a("actionClick", {
383
+ const p = Ve(h);
384
+ c.click(p), a("actionClick", {
384
385
  action: c,
385
- subject: h
386
+ subject: p
386
387
  }), l.value = !1;
387
388
  }, v = Q(() => {
388
389
  if (!t.value)
@@ -399,7 +400,7 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
399
400
  });
400
401
  return (c, h) => {
401
402
  const p = ne("overlay");
402
- return o(), i(P, null, [
403
+ return o(), i(N, null, [
403
404
  Object.keys(c.$slots).some((n) => n !== "default") || c.actions !== void 0 && c.actions.length > 0 ? (o(), i("div", {
404
405
  key: 0,
405
406
  ref_key: "contextmenu",
@@ -417,7 +418,7 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
417
418
  key: 1,
418
419
  to: "main"
419
420
  }, [
420
- N((o(), g(Ae, {
421
+ x((o(), g(Be, {
421
422
  modelValue: l.value,
422
423
  "onUpdate:modelValue": h[4] || (h[4] = (n) => l.value = n),
423
424
  fill: "",
@@ -435,7 +436,7 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
435
436
  class: "content__section",
436
437
  onClick: h[1] || (h[1] = (n) => l.value = !1)
437
438
  }, [
438
- (o(!0), i(P, null, D(Object.keys(c.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, _) => (o(), g(fe, {
439
+ (o(!0), i(N, null, D(Object.keys(c.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, _) => (o(), g(fe, {
439
440
  key: `slot-${_}`,
440
441
  class: "content__item content__item--reactive"
441
442
  }, {
@@ -450,13 +451,13 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
450
451
  class: "content__section",
451
452
  onClick: h[2] || (h[2] = (n) => l.value = !1)
452
453
  }, [
453
- (o(!0), i(P, null, D(s(c.actions), (n, _) => (o(), g(fe, {
454
+ (o(!0), i(N, null, D(s(c.actions), (n, _) => (o(), g(fe, {
454
455
  key: `action-${_}`,
455
456
  class: "content__item content__item--reactive",
456
457
  onClick: ($) => u(n, c.subject)
457
458
  }, {
458
459
  default: f(() => [
459
- n.icon ? (o(), g(x, {
460
+ n.icon ? (o(), g(Z, {
460
461
  key: 0,
461
462
  icon: n.icon
462
463
  }, {
@@ -499,7 +500,7 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
499
500
  };
500
501
  }
501
502
  });
502
- const Ce = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-35e35d32"]]), hn = { class: "info__content" }, $n = /* @__PURE__ */ U({
503
+ const Oe = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-66a4ee79"]]), hn = { class: "info__content" }, $n = /* @__PURE__ */ U({
503
504
  __name: "aeria-info",
504
505
  props: {
505
506
  where: {}
@@ -610,7 +611,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
610
611
  }
611
612
  })();
612
613
  h("input", Y), h("update:modelValue", Y);
613
- }, Z = (F) => {
614
+ }, P = (F) => {
614
615
  const Y = F.target.value;
615
616
  $.value = Y, T(Y);
616
617
  };
@@ -634,7 +635,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
634
635
  input__container--${e(p)}
635
636
  `)
636
637
  }, [
637
- N(V("textarea", {
638
+ x(V("textarea", {
638
639
  placeholder: n.placeholder,
639
640
  readonly: n.readonly,
640
641
  value: F.modelValue,
@@ -642,7 +643,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
642
643
  input__textarea
643
644
  input__input--${e(p)}
644
645
  `),
645
- onInput: Z
646
+ onInput: P
646
647
  }, null, 42, Cn), [
647
648
  [w, e(t).focus]
648
649
  ])
@@ -653,7 +654,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
653
654
  input__container--${e(p)}
654
655
  `)
655
656
  }, [
656
- N(V("input", H(n, {
657
+ x(V("input", H(n, {
657
658
  value: $.value,
658
659
  "data-component": "input",
659
660
  class: `
@@ -662,12 +663,12 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
662
663
  ${e(l) && "input__input--icon"}
663
664
  ${e(v) && "input__input--readOnly"}
664
665
  `,
665
- onInput: Z,
666
+ onInput: P,
666
667
  onChange: Y[0] || (Y[0] = (C) => h("change", C))
667
668
  }), null, 16, On), [
668
669
  [w, e(t).focus]
669
670
  ]),
670
- e(l) ? (o(), g(x, {
671
+ e(l) ? (o(), g(Z, {
671
672
  key: 0,
672
673
  icon: e(t).icon || "magnifying-glass",
673
674
  class: K(`
@@ -681,7 +682,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
681
682
  W("Copiar")
682
683
  ]),
683
684
  default: f(() => [
684
- N(z(x, {
685
+ x(z(Z, {
685
686
  icon: "clipboard",
686
687
  onClick: Y[1] || (Y[1] = (C) => c(String(F.modelValue || "")))
687
688
  }, null, 512), [
@@ -696,7 +697,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
696
697
  };
697
698
  }
698
699
  });
699
- const Oe = /* @__PURE__ */ X(An, [["__scopeId", "data-v-fa830575"]]), Bn = ["value"], wn = {
700
+ const Ie = /* @__PURE__ */ X(An, [["__scopeId", "data-v-fa830575"]]), Bn = ["value"], wn = {
700
701
  key: 1,
701
702
  value: ""
702
703
  }, Sn = ["value", "data-selected"], jn = /* @__PURE__ */ U({
@@ -762,12 +763,12 @@ const Oe = /* @__PURE__ */ X(An, [["__scopeId", "data-v-fa830575"]]), Bn = ["val
762
763
  },
763
764
  onChange: n[0] || (n[0] = (_) => u(_.target.value))
764
765
  }), [
765
- e(s) && e(s).icon ? (o(), g(x, {
766
+ e(s) && e(s).icon ? (o(), g(Z, {
766
767
  key: 0,
767
768
  icon: e(s).icon
768
769
  }, null, 8, ["icon"])) : y("", !0),
769
770
  a.multiple ? y("", !0) : (o(), i("option", wn, k(e(M)("none")), 1)),
770
- (o(!0), i(P, null, D(e(s) && "enum" in e(s) ? e(s).enum : [], (_) => {
771
+ (o(!0), i(N, null, D(e(s) && "enum" in e(s) ? e(s).enum : [], (_) => {
771
772
  var $;
772
773
  return o(), i("option", {
773
774
  key: _,
@@ -819,7 +820,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
819
820
  class: "pagination__control"
820
821
  }, {
821
822
  default: f(() => [
822
- (o(!0), i(P, null, D(e(Rt), (n) => (o(), i("option", {
823
+ (o(!0), i(N, null, D(e(Rt), (n) => (o(), i("option", {
823
824
  key: `limit-${n}`,
824
825
  value: n
825
826
  }, k(n), 9, Ln))), 128))
@@ -831,7 +832,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
831
832
  onClick: p[1] || (p[1] = (n) => l.value = 0)
832
833
  }, {
833
834
  default: f(() => [
834
- z(x, {
835
+ z(Z, {
835
836
  reactive: "",
836
837
  icon: "caret-double-left"
837
838
  })
@@ -843,7 +844,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
843
844
  onClick: p[2] || (p[2] = (n) => c("previous"))
844
845
  }, {
845
846
  default: f(() => [
846
- z(x, {
847
+ z(Z, {
847
848
  reactive: "",
848
849
  icon: "caret-left"
849
850
  })
@@ -851,7 +852,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
851
852
  _: 1
852
853
  }, 8, ["disabled"]),
853
854
  V("div", zn, [
854
- (o(), g(Oe, {
855
+ (o(), g(Ie, {
855
856
  key: l.value,
856
857
  modelValue: u.value,
857
858
  "onUpdate:modelValue": p[3] || (p[3] = (n) => u.value = n),
@@ -870,7 +871,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
870
871
  onClick: p[5] || (p[5] = (n) => c("next"))
871
872
  }, {
872
873
  default: f(() => [
873
- z(x, {
874
+ z(Z, {
874
875
  reactive: "",
875
876
  icon: "caret-right"
876
877
  })
@@ -881,7 +882,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
881
882
  onClick: p[6] || (p[6] = (n) => l.value = v.value - 1)
882
883
  }, {
883
884
  default: f(() => [
884
- z(x, {
885
+ z(Z, {
885
886
  reactive: "",
886
887
  icon: "caret-double-right"
887
888
  })
@@ -954,13 +955,13 @@ const Fn = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-41aa1ffc"]]), qn = { cla
954
955
  return (p, n) => {
955
956
  var $, b;
956
957
  const _ = ne("clickable");
957
- return N((o(), i("label", {
958
+ return x((o(), i("label", {
958
959
  class: K(`
959
960
  checkbox
960
961
  ${e(l) && "checkbox--readOnly"}
961
962
  `)
962
963
  }, [
963
- N(V("input", H({
964
+ x(V("input", H({
964
965
  "onUpdate:modelValue": n[0] || (n[0] = (S) => c.value = S)
965
966
  }, {
966
967
  type: e(s),
@@ -1023,7 +1024,7 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-db5fafae"]]), Wn = {
1023
1024
  grid-template-columns: repeat(var(--columns), 1fr);
1024
1025
  `)
1025
1026
  }, [
1026
- (o(!0), i(P, null, D(e(s), (h) => (o(), i("div", {
1027
+ (o(!0), i(N, null, D(e(s), (h) => (o(), i("div", {
1027
1028
  key: `option-${h}`,
1028
1029
  class: "options__checkbox"
1029
1030
  }, [
@@ -1061,7 +1062,7 @@ const Xn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-39b61318"]]), Yn = (d) =
1061
1062
  var p;
1062
1063
  const h = ne("clickable");
1063
1064
  return o(), i("div", Jn, [
1064
- N((o(), i("a", {
1065
+ x((o(), i("a", {
1065
1066
  class: K(`
1066
1067
  switch
1067
1068
  ${v.modelValue && "switch--active"}
@@ -1133,7 +1134,7 @@ const eo = /* @__PURE__ */ X(xn, [["__scopeId", "data-v-220b2101"]]), kt = (d) =
1133
1134
  key: 0,
1134
1135
  to: "main"
1135
1136
  }, [
1136
- t.value ? N((o(), i("div", no, [
1137
+ t.value ? x((o(), i("div", no, [
1137
1138
  V("img", {
1138
1139
  src: a.value,
1139
1140
  alt: l.alt,
@@ -1228,7 +1229,7 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
1228
1229
  u.value = b.target.files[0];
1229
1230
  const S = u.value, T = await h(S);
1230
1231
  if (s) {
1231
- const { data: { error: Z, result: B } } = await zt(`${ht}/${s.$id}/upload?name=${S.name}`, T, {
1232
+ const { data: { error: P, result: B } } = await zt(`${ht}/${s.$id}/upload?name=${S.name}`, T, {
1232
1233
  params: {
1233
1234
  method: "POST",
1234
1235
  headers: {
@@ -1237,7 +1238,7 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
1237
1238
  }
1238
1239
  }
1239
1240
  });
1240
- if (Z)
1241
+ if (P)
1241
1242
  return;
1242
1243
  t("update:modelValue", {
1243
1244
  tempId: B.tempId,
@@ -1250,7 +1251,7 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
1250
1251
  t("update:modelValue", null);
1251
1252
  };
1252
1253
  return (b, S) => {
1253
- var T, Z, B, F, Y, w;
1254
+ var T, P, B, F, Y, w;
1254
1255
  return o(), i("div", po, [
1255
1256
  u.value || (T = b.modelValue) != null && T._id ? (o(), i("div", _o, [
1256
1257
  c.value ? (o(), g(Ue, {
@@ -1261,7 +1262,7 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
1261
1262
  expandable: b.readOnly,
1262
1263
  class: K(`
1263
1264
  file__image
1264
- ${!e(s) || ((Z = b.modelValue) == null ? void 0 : Z._id) || "file__image--unsent"}
1265
+ ${!e(s) || ((P = b.modelValue) == null ? void 0 : P._id) || "file__image--unsent"}
1265
1266
  `)
1266
1267
  }, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
1267
1268
  (B = b.modelValue) != null && B._id ? (o(), i("a", {
@@ -1343,14 +1344,11 @@ const dt = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-c86e2d2a"]]), Co = { cla
1343
1344
  },
1344
1345
  emits: ["update:modelValue", "change"],
1345
1346
  setup(d, { emit: r }) {
1346
- const a = Ie(), t = d, l = r, s = t.property, u = _e(s), v = ge(), c = Q(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), h = () => {
1347
+ const a = Ae(), t = d, l = r, s = t.property, u = _e(s), v = ge(), c = Q(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), h = () => {
1347
1348
  if (c.value)
1348
1349
  return;
1349
1350
  const _ = (b) => b.filter((S) => !!(S != null && S._id)), $ = "items" in s ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1350
- l("update:modelValue", Array.isArray($) ? [
1351
- ...$,
1352
- t.item
1353
- ] : t.item), l("change", t.item);
1351
+ Array.isArray($) ? l("update:modelValue", $.concat([t.item])) : l("update:modelValue", t.item), l("change", t.item);
1354
1352
  }, p = async (_) => {
1355
1353
  if (u.purge && (_ != null && _.purge)) {
1356
1354
  const { _id: b } = t.item;
@@ -1380,7 +1378,7 @@ const dt = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-c86e2d2a"]]), Co = { cla
1380
1378
  };
1381
1379
  return (_, $) => {
1382
1380
  const b = ne("clickable");
1383
- return N((o(), i("div", {
1381
+ return x((o(), i("div", {
1384
1382
  class: K({
1385
1383
  item: !0,
1386
1384
  "item--selected": c.value
@@ -1389,18 +1387,23 @@ const dt = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-c86e2d2a"]]), Co = { cla
1389
1387
  }, [
1390
1388
  I(_.$slots, "default", {}, void 0, !0),
1391
1389
  V("div", Co, [
1392
- (o(!0), i(P, null, D(_.indexes, (S, T) => (o(), i("div", {
1390
+ (o(!0), i(N, null, D(_.indexes, (S, T) => (o(), i("div", {
1393
1391
  key: `index-${_.item._id}-${T}`,
1394
1392
  class: "item__value"
1395
1393
  }, k(_.item[S]), 1))), 128))
1396
- ])
1394
+ ]),
1395
+ _.readOnly ? (o(), g(Z, {
1396
+ key: 0,
1397
+ icon: "arrow-square-out",
1398
+ style: { "--icon-color": "var(--theme-brand-color-contrast)" }
1399
+ })) : y("", !0)
1397
1400
  ], 2)), [
1398
1401
  [b]
1399
1402
  ]);
1400
1403
  };
1401
1404
  }
1402
1405
  });
1403
- const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Bo = ["value"], wo = { style: { flex: "1" } }, So = { key: 1 }, jo = { key: 0 }, To = { key: 1 }, Lo = { class: "search__summary" }, Ro = {
1406
+ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-5e6ec702"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Bo = ["value"], wo = { style: { flex: "1" } }, So = { key: 1 }, jo = { key: 0 }, To = { key: 1 }, Lo = { class: "search__summary" }, Ro = {
1404
1407
  key: 1,
1405
1408
  class: "search"
1406
1409
  }, zo = { key: 0 }, Fe = 10, Mo = /* @__PURE__ */ U({
@@ -1422,7 +1425,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1422
1425
  const p = J(a.modelValue), n = J({
1423
1426
  data: [],
1424
1427
  pagination: {}
1425
- }), _ = Q(() => n.value.data), $ = Q(() => n.value.pagination), b = J(0), S = J(h[0]), T = J(!1), Z = J({}), B = () => {
1428
+ }), _ = Q(() => n.value.data), $ = Q(() => n.value.pagination), b = J(0), S = J(h[0]), T = J(!1), P = J({}), B = () => {
1426
1429
  const L = {};
1427
1430
  if (v) {
1428
1431
  const R = e(v);
@@ -1432,7 +1435,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1432
1435
  }, F = () => {
1433
1436
  _.value.length < $.value.recordsTotal && (b.value += 1, w());
1434
1437
  }, Y = async () => {
1435
- if (Object.values(Z.value).every((R) => !(String(R).length > 0)))
1438
+ if (Object.values(P.value).every((R) => !(String(R).length > 0)))
1436
1439
  return u.$actions.custom("getAll", {
1437
1440
  limit: Fe,
1438
1441
  offset: b.value * Fe,
@@ -1440,10 +1443,10 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1440
1443
  });
1441
1444
  const L = h.filter((R) => {
1442
1445
  var m;
1443
- return ((m = Z.value[R]) == null ? void 0 : m.length) > 0;
1446
+ return ((m = P.value[R]) == null ? void 0 : m.length) > 0;
1444
1447
  }).map((R) => ({
1445
1448
  [R]: {
1446
- $regex: Z.value[R].trim().replace("(", "\\(").replace(")", "\\)"),
1449
+ $regex: P.value[R].trim().replace("(", "\\(").replace(")", "\\)"),
1447
1450
  $options: "i"
1448
1451
  }
1449
1452
  }));
@@ -1479,7 +1482,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1479
1482
  "effect" in l ? s("update:panel", !0) : l.value = !0, w();
1480
1483
  }, oe = () => {
1481
1484
  b.value = 0, n.value.data.splice(0), "effect" in l ? s("update:panel", !1) : l.value = !1;
1482
- }, ae = Q(() => !Object.values(Z.value).some((L) => !!L));
1485
+ }, ae = Q(() => !Object.values(P.value).some((L) => !!L));
1483
1486
  ue(ae, (L, R) => {
1484
1487
  L && !R && w();
1485
1488
  }), vt(() => {
@@ -1497,7 +1500,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1497
1500
  key: 0,
1498
1501
  to: "main"
1499
1502
  }, [
1500
- z(Ae, {
1503
+ z(Be, {
1501
1504
  float: "",
1502
1505
  "close-hint": "",
1503
1506
  title: `${e(M)("action.select", { capitalize: !0 })} ${e(M)(L.propertyName)}`,
@@ -1527,10 +1530,10 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1527
1530
  key: 0,
1528
1531
  modelValue: S.value,
1529
1532
  "onUpdate:modelValue": R[0] || (R[0] = (O) => S.value = O),
1530
- onChange: R[1] || (R[1] = (O) => Z.value = {})
1533
+ onChange: R[1] || (R[1] = (O) => P.value = {})
1531
1534
  }, {
1532
1535
  default: f(() => [
1533
- (o(!0), i(P, null, D(e(h), (O) => (o(), i("option", {
1536
+ (o(!0), i(N, null, D(e(h), (O) => (o(), i("option", {
1534
1537
  key: `searchfield-${O}`,
1535
1538
  value: O
1536
1539
  }, k(e(M)(O)), 9, Bo))), 128))
@@ -1538,10 +1541,10 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1538
1541
  _: 1
1539
1542
  }, 8, ["modelValue"])) : y("", !0),
1540
1543
  V("div", wo, [
1541
- (o(), g(Oe, {
1544
+ (o(), g(Ie, {
1542
1545
  key: `field-${S.value}`,
1543
- modelValue: Z.value[S.value],
1544
- "onUpdate:modelValue": R[2] || (R[2] = (O) => Z.value[S.value] = O),
1546
+ modelValue: P.value[S.value],
1547
+ "onUpdate:modelValue": R[2] || (R[2] = (O) => P.value[S.value] = O),
1545
1548
  property: {
1546
1549
  ...e(u).properties[S.value],
1547
1550
  inputType: "search"
@@ -1556,7 +1559,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1556
1559
  onEndReached: F
1557
1560
  }, {
1558
1561
  default: f(() => [
1559
- (o(!0), i(P, null, D(_.value, (O) => (o(), g(We, H({ ref_for: !0 }, {
1562
+ (o(!0), i(N, null, D(_.value, (O) => (o(), g(We, H({ ref_for: !0 }, {
1560
1563
  item: O,
1561
1564
  indexes: e(h),
1562
1565
  property: L.property
@@ -1568,7 +1571,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1568
1571
  ]),
1569
1572
  _: 1
1570
1573
  })) : (o(), i("div", So, [
1571
- T.value ? (o(), i("div", jo, k(e(M)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(Z.value).filter((O) => !!O).length > 0 && !("items" in L.property && ((E = L.modelValue) != null && E.length) || !Array.isArray(L.modelValue) && ((G = L.modelValue) != null && G._id)) ? (o(), i("div", To, k(e(M)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1574
+ T.value ? (o(), i("div", jo, k(e(M)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(P.value).filter((O) => !!O).length > 0 && !("items" in L.property && ((E = L.modelValue) != null && E.length) || !Array.isArray(L.modelValue) && ((G = L.modelValue) != null && G._id)) ? (o(), i("div", To, k(e(M)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1572
1575
  ]))
1573
1576
  ]),
1574
1577
  V("div", Lo, k(e(M)("showing", { capitalize: !0 })) + " " + k(_.value.length) + " " + k(e(M)("of")) + " " + k($.value.recordsTotal), 1)
@@ -1583,7 +1586,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1583
1586
  var E;
1584
1587
  return [
1585
1588
  "items" in L.property ? (o(), i("div", zo, [
1586
- (o(!0), i(P, null, D(L.modelValue, (G) => (o(), g(We, H({ ref_for: !0 }, {
1589
+ (o(!0), i(N, null, D(L.modelValue, (G) => (o(), g(We, H({ ref_for: !0 }, {
1587
1590
  item: G,
1588
1591
  indexes: e(h),
1589
1592
  property: L.property,
@@ -1597,6 +1600,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1597
1600
  item: L.modelValue,
1598
1601
  indexes: e(h),
1599
1602
  property: e(t),
1603
+ readOnly: L.readOnly,
1600
1604
  modelValue: L.modelValue
1601
1605
  }, { "onUpdate:modelValue": se }), null, 16)) : y("", !0)
1602
1606
  ];
@@ -1606,7 +1610,7 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1606
1610
  L.readOnly ? void 0 : {
1607
1611
  name: "footer",
1608
1612
  fn: f(() => [
1609
- N((o(), g(x, {
1613
+ x((o(), g(Z, {
1610
1614
  icon: "plus",
1611
1615
  onClick: j
1612
1616
  }, {
@@ -1626,14 +1630,14 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-e14c02a3"]]), Io = { cla
1626
1630
  };
1627
1631
  }
1628
1632
  });
1629
- const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r) => {
1633
+ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r) => {
1630
1634
  const a = "items" in d ? d.items : d, t = {
1631
1635
  options: Xn,
1632
1636
  select: Qe,
1633
1637
  switch: eo,
1634
1638
  file: bo,
1635
1639
  search: Fo,
1636
- input: Oe,
1640
+ input: Ie,
1637
1641
  form: Ge
1638
1642
  }, l = (() => {
1639
1643
  if ("type" in a) {
@@ -1656,7 +1660,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1656
1660
  d ?? (d = []);
1657
1661
  const t = "items" in r ? r.items : r;
1658
1662
  if ("$ref" in t) {
1659
- const l = ie(t.$ref, a), s = Re(l.$freshItem);
1663
+ const l = ie(t.$ref, a), s = Ve(l.$freshItem);
1660
1664
  return d.push(s);
1661
1665
  }
1662
1666
  return "properties" in t ? d.push(Qt(t)) : "type" in t && t.type === "boolean" ? d.push({}) : d.push(null);
@@ -1711,7 +1715,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1711
1715
  const h = J(!1), p = Q(() => !t.form && t.property ? "properties" in t.property ? t.property.properties : c == null ? void 0 : c.properties : t.form), n = Q(() => t.layout || (c == null ? void 0 : c.description.formLayout)), _ = (m) => {
1712
1716
  const E = ve(m, t[m]);
1713
1717
  return t[m] && ye(m, t[m]), E;
1714
- }, $ = Q(() => t.validationErrors !== null ? t.validationErrors : c == null ? void 0 : c.validationErrors), b = _("formComponents") || {}, S = _("propertyComponents") || {}, T = _("omitFormHeader"), Z = _("omitInputLabels"), B = _("innerInputLabel");
1718
+ }, $ = Q(() => t.validationErrors !== null ? t.validationErrors : c == null ? void 0 : c.validationErrors), b = _("formComponents") || {}, S = _("propertyComponents") || {}, T = _("omitFormHeader"), P = _("omitInputLabels"), B = _("innerInputLabel");
1715
1719
  u && ye(He, u), ye("searchOnly", t.searchOnly);
1716
1720
  const F = (m) => p.value ? Object.entries(p.value).filter(([E, G]) => !G.noForm && m([
1717
1721
  E,
@@ -1723,19 +1727,19 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1723
1727
  const E = t.property && "properties" in t.property ? t.property.form : (G = c == null ? void 0 : c.description) == null ? void 0 : G.form;
1724
1728
  return !E || E.includes(m);
1725
1729
  }, w = F(([m]) => Y(m)), te = ze(), C = {}, j = (m, E) => {
1726
- var q, me, Be, we;
1727
- const G = [], O = ((me = (q = n.value) == null ? void 0 : q.fields) == null ? void 0 : me[m]) || ((we = (Be = n.value) == null ? void 0 : Be.fields) == null ? void 0 : we.$default);
1730
+ var q, me, we, Se;
1731
+ const G = [], O = ((me = (q = n.value) == null ? void 0 : q.fields) == null ? void 0 : me[m]) || ((Se = (we = n.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1728
1732
  if (!E)
1729
1733
  return;
1730
1734
  if (O != null && O.if && !t.searchOnly) {
1731
- const Se = Ke(
1735
+ const je = Ke(
1732
1736
  t.modelValue,
1733
1737
  O.if
1734
1738
  );
1735
- Se.satisfied || (C[m] && (c ? t.modelValue[m] = typeof c.$freshItem[m] == "object" ? Re(c.$freshItem[m]) : c.$freshItem[m] : t.modelValue[m] = [
1739
+ je.satisfied || (C[m] && (c ? t.modelValue[m] = typeof c.$freshItem[m] == "object" ? Ve(c.$freshItem[m]) : c.$freshItem[m] : t.modelValue[m] = [
1736
1740
  void 0,
1737
1741
  null
1738
- ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), G.push("display: none;")), C[m] = Se.satisfied;
1742
+ ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), G.push("display: none;")), C[m] = je.satisfied;
1739
1743
  }
1740
1744
  const A = te.value.md && (O == null ? void 0 : O.span) || 6;
1741
1745
  return G.push(`
@@ -1773,14 +1777,14 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1773
1777
  ])) : y("", !0),
1774
1778
  I(m.$slots, "default", {}, void 0, !0),
1775
1779
  V("fieldset", Do, [
1776
- (o(!0), i(P, null, D(e(w), ([A, q]) => {
1777
- var me, Be, we, Se, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1780
+ (o(!0), i(N, null, D(e(w), ([A, q]) => {
1781
+ var me, we, Se, je, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1778
1782
  return o(), i("div", {
1779
1783
  key: `field-${A}`,
1780
1784
  style: $e(j(A, q)),
1781
1785
  class: "form__field"
1782
1786
  }, [
1783
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Z) && !e(B) ? (o(), i("label", Ho, [
1787
+ (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(P) && !e(B) ? (o(), i("label", Ho, [
1784
1788
  V("div", {
1785
1789
  class: K({
1786
1790
  "form__field-label": !0,
@@ -1800,7 +1804,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1800
1804
  propery: q,
1801
1805
  properyName: A,
1802
1806
  modelValue: m.modelValue
1803
- }), void 0, !0) : (we = (Be = (me = m.layout) == null ? void 0 : me.fields) == null ? void 0 : Be[A]) != null && we.component && e(S)[m.layout.fields[A].component.name] ? (o(), g(he(e(S)[m.layout.fields[A].component.name]), H({
1807
+ }), void 0, !0) : (Se = (we = (me = m.layout) == null ? void 0 : me.fields) == null ? void 0 : we[A]) != null && Se.component && e(S)[m.layout.fields[A].component.name] ? (o(), g(he(e(S)[m.layout.fields[A].component.name]), H({
1804
1808
  key: 2,
1805
1809
  modelValue: m.modelValue[A],
1806
1810
  "onUpdate:modelValue": (ee) => m.modelValue[A] = ee,
@@ -1819,7 +1823,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1819
1823
  onInput: (ee) => l("input", A),
1820
1824
  onChange: E[1] || (E[1] = (ee) => l("change", ee))
1821
1825
  }, [
1822
- z(Oe, H({
1826
+ z(Ie, H({
1823
1827
  modelValue: m.modelValue[A].$gte,
1824
1828
  "onUpdate:modelValue": (ee) => m.modelValue[A].$gte = ee,
1825
1829
  ref_for: !0
@@ -1827,7 +1831,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1827
1831
  property: q,
1828
1832
  propertyName: A
1829
1833
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1830
- z(Oe, H({
1834
+ z(Ie, H({
1831
1835
  modelValue: m.modelValue[A].$lte,
1832
1836
  "onUpdate:modelValue": (ee) => m.modelValue[A].$lte = ee,
1833
1837
  ref_for: !0
@@ -1859,7 +1863,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1859
1863
  small: "",
1860
1864
  variant: "alt",
1861
1865
  icon: "plus",
1862
- disabled: !("inline" in q.items && q.items.inline) && (((Se = m.modelValue[A]) == null ? void 0 : Se.length) >= q.maxItems || oe((Ze = m.modelValue[A]) == null ? void 0 : Ze[((Je = m.modelValue[A]) == null ? void 0 : Je.length) - 1])),
1866
+ disabled: !("inline" in q.items && q.items.inline) && (((je = m.modelValue[A]) == null ? void 0 : je.length) >= q.maxItems || oe((Ze = m.modelValue[A]) == null ? void 0 : Ze[((Je = m.modelValue[A]) == null ? void 0 : Je.length) - 1])),
1863
1867
  onClick: qe((ee) => {
1864
1868
  m.modelValue[A] || (m.modelValue[A] = []), e(qo)(m.modelValue[A], q, e(a));
1865
1869
  }, ["prevent"])
@@ -1871,16 +1875,16 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1871
1875
  }, 1032, ["disabled", "onClick"])
1872
1876
  ]),
1873
1877
  V("div", Jo, [
1874
- (o(!0), i(P, null, D(m.modelValue[A], (ee, je) => {
1878
+ (o(!0), i(N, null, D(m.modelValue[A], (ee, Te) => {
1875
1879
  var at, lt, st, it, rt, ut;
1876
1880
  return o(), i("div", {
1877
- key: `rep-${A}-${e(Ft)(ee, je)}`,
1881
+ key: `rep-${A}-${e(Ft)(ee, Te)}`,
1878
1882
  class: "form__array-item"
1879
1883
  }, [
1880
1884
  V("div", Zo, [
1881
1885
  (o(), g(he(e(pt)(q, e(b))), H({
1882
- modelValue: m.modelValue[A][je],
1883
- "onUpdate:modelValue": (Te) => m.modelValue[A][je] = Te,
1886
+ modelValue: m.modelValue[A][Te],
1887
+ "onUpdate:modelValue": (Le) => m.modelValue[A][Te] = Le,
1884
1888
  ref_for: !0
1885
1889
  }, {
1886
1890
  readOnly: e(v),
@@ -1889,24 +1893,24 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1889
1893
  parentCollection: e(u),
1890
1894
  parentPropertyName: m.parentPropertyName,
1891
1895
  columns: ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[A]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = m.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
1892
- validationErrors: le(A, je),
1896
+ validationErrors: le(A, Te),
1893
1897
  ...q.componentProps || {}
1894
1898
  }, {
1895
- onInput: (Te) => l("input", A),
1896
- onChange: E[3] || (E[3] = (Te) => l("change", Te))
1899
+ onInput: (Le) => l("input", A),
1900
+ onChange: E[3] || (E[3] = (Le) => l("change", Le))
1897
1901
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1898
1902
  ]),
1899
- N(z(x, {
1903
+ x(z(Z, {
1900
1904
  reactive: "",
1901
1905
  icon: "trash",
1902
- onClick: (Te) => e(Uo)(m.modelValue[A], je)
1906
+ onClick: (Le) => e(Uo)(m.modelValue[A], Te)
1903
1907
  }, null, 8, ["onClick"]), [
1904
1908
  [G]
1905
1909
  ])
1906
1910
  ]);
1907
1911
  }), 128))
1908
1912
  ])
1909
- ])) : m.modelValue ? N((o(), g(he(e(pt)(q, e(b))), H({
1913
+ ])) : m.modelValue ? x((o(), g(he(e(pt)(q, e(b))), H({
1910
1914
  key: 6,
1911
1915
  modelValue: m.modelValue[A],
1912
1916
  "onUpdate:modelValue": (ee) => m.modelValue[A] = ee,
@@ -1935,7 +1939,7 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-5fd0bcfa"]]), pt = (d, r
1935
1939
  ]),
1936
1940
  m.$slots.after ? I(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1937
1941
  m.$slots.footer ? (o(), i("div", ea, [
1938
- I(m.$slots, "footer", pe(Ve({
1942
+ I(m.$slots, "footer", pe(Ce({
1939
1943
  isInsertReady: se.value
1940
1944
  })), void 0, !0)
1941
1945
  ])) : y("", !0)
@@ -1947,12 +1951,12 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
1947
1951
  __name: "aeria-filter-panel",
1948
1952
  emits: ["update:modelValue"],
1949
1953
  setup(d, { emit: r }) {
1950
- const a = r, t = ge(), l = Ie(), s = () => {
1954
+ const a = r, t = ge(), l = Ae(), s = () => {
1951
1955
  t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1), l.push({
1952
1956
  query: qt(t)
1953
1957
  });
1954
1958
  };
1955
- return (u, v) => (o(), g(Ae, {
1959
+ return (u, v) => (o(), g(Be, {
1956
1960
  "close-hint": "",
1957
1961
  "fixed-right": "",
1958
1962
  title: u.t("filter_by", { capitalize: !0 }),
@@ -2027,19 +2031,19 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2027
2031
  p === null && t("update:modelValue", !1);
2028
2032
  }), (p, n) => {
2029
2033
  const _ = ne("clickable");
2030
- return o(), g(Ae, {
2034
+ return o(), g(Be, {
2031
2035
  loading: e(s).loading.get,
2032
2036
  onOverlayClick: h
2033
2037
  }, ce({
2034
2038
  extra: f(() => [
2035
- z(Ce, H({
2039
+ z(Oe, H({
2036
2040
  subject: e(s).item,
2037
- actions: e(u).filter(({ action: $ }) => $ !== "ui/spawnEdit")
2041
+ actions: e(u).filter(({ action: $ }) => $ !== "ui:spawnEdit")
2038
2042
  }, {
2039
2043
  onActionClick: n[2] || (n[2] = ($) => t("update:modelValue", !1))
2040
2044
  }), {
2041
2045
  default: f(() => [
2042
- e(s).item._id ? N((o(), g(x, {
2046
+ e(s).item._id ? x((o(), g(Z, {
2043
2047
  key: 0,
2044
2048
  reactive: "",
2045
2049
  icon: "dots-three"
@@ -2066,7 +2070,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2066
2070
  D(Object.keys(p.$slots).filter(($) => $.startsWith("field-")), ($) => ({
2067
2071
  name: $,
2068
2072
  fn: f((b) => [
2069
- I(p.$slots, $, pe(Ve(b)))
2073
+ I(p.$slots, $, pe(Ce(b)))
2070
2074
  ])
2071
2075
  }))
2072
2076
  ]), 1040, ["modelValue"])
@@ -2120,7 +2124,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2120
2124
  }, aa = (d, r = {
2121
2125
  persistInQuery: !0
2122
2126
  }) => {
2123
- const t = Ie().currentRoute;
2127
+ const t = Ae().currentRoute;
2124
2128
  return ue(() => t.value.query.section, (l) => {
2125
2129
  if (d) {
2126
2130
  if (d.description.filtersPresets) {
@@ -2193,15 +2197,15 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2193
2197
  return !c(S, _);
2194
2198
  }) : [];
2195
2199
  }, n = (_, $) => {
2196
- var T, Z;
2197
- const b = [], S = (Z = (T = a.layout) == null ? void 0 : T.actions) == null ? void 0 : Z[$.action];
2200
+ var T, P;
2201
+ const b = [], S = (P = (T = a.layout) == null ? void 0 : T.actions) == null ? void 0 : P[$.action];
2198
2202
  return S != null && S.if && (Ke(
2199
2203
  _,
2200
2204
  S.if
2201
2205
  ).satisfied || b.push("display: none;")), b.join("");
2202
2206
  };
2203
2207
  return (_, $) => {
2204
- var S, T, Z;
2208
+ var S, T, P;
2205
2209
  const b = ne("clickable");
2206
2210
  return _.columns && Object.keys(_.columns).length > 0 || _.$slots.thead ? (o(), i("table", sa, [
2207
2211
  _.$slots.thead ? (o(), i("thead", ia, [
@@ -2215,7 +2219,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2215
2219
  onChange: $[0] || ($[0] = (B) => e(u).$actions.selectAllItems(B.target.checked))
2216
2220
  }, null, 40, ca)
2217
2221
  ])) : y("", !0),
2218
- (o(!0), i(P, null, D(Object.entries(_.columns), ([B, F], Y) => (o(), i("th", {
2222
+ (o(!0), i(N, null, D(Object.entries(_.columns), ([B, F], Y) => (o(), i("th", {
2219
2223
  key: `header-${Y}`,
2220
2224
  class: "table__header"
2221
2225
  }, k(F.description || e(M)(B)), 1))), 128)),
@@ -2225,14 +2229,14 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2225
2229
  _.$slots.tbody ? (o(), i("tbody", pa, [
2226
2230
  I(_.$slots, "tbody", {}, void 0, !0)
2227
2231
  ])) : (o(), i("tbody", _a, [
2228
- (o(!0), i(P, null, D(_.rows, (B) => {
2232
+ (o(!0), i(N, null, D(_.rows, (B) => {
2229
2233
  var F, Y;
2230
2234
  return o(), i("tr", {
2231
2235
  key: B._id,
2232
2236
  onClick: (w) => t("itemClick", B)
2233
2237
  }, [
2234
2238
  e(u) && _.checkbox && e(l).md ? (o(), i("td", fa, [
2235
- N(V("input", {
2239
+ x(V("input", {
2236
2240
  "onUpdate:modelValue": $[1] || ($[1] = (w) => v.value = w),
2237
2241
  type: "checkbox",
2238
2242
  value: B._id
@@ -2240,7 +2244,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2240
2244
  [It, v.value]
2241
2245
  ])
2242
2246
  ])) : y("", !0),
2243
- (o(!0), i(P, null, D(Object.entries(_.columns), ([w, te], C) => {
2247
+ (o(!0), i(N, null, D(Object.entries(_.columns), ([w, te], C) => {
2244
2248
  var j, oe, ae, se, le, L;
2245
2249
  return o(), i("td", {
2246
2250
  key: `column-${B._id}-${C}`
@@ -2256,7 +2260,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2256
2260
  ])) : (o(), i("div", $a, [
2257
2261
  V("div", ba, [
2258
2262
  "type" in te && te.type === "boolean" ? (o(), i("div", ga, [
2259
- B[w] ? (o(), g(x, {
2263
+ B[w] ? (o(), g(Z, {
2260
2264
  key: 0,
2261
2265
  icon: "check",
2262
2266
  "icon-classes": "aeria-blueish"
@@ -2265,7 +2269,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2265
2269
  W(k(e(M)("yes")), 1)
2266
2270
  ]),
2267
2271
  _: 1
2268
- })) : (o(), g(x, {
2272
+ })) : (o(), g(Z, {
2269
2273
  key: 1,
2270
2274
  icon: "x",
2271
2275
  "icon-classes": "aeria-redish"
@@ -2304,7 +2308,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2304
2308
  property: te
2305
2309
  })), 1)) : (o(), i("span", Aa, k(Array.isArray(B[w]) ? B[w].filter((R) => !!R).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2306
2310
  ((L = (le = e(_e)(te)) == null ? void 0 : le.indexes) == null ? void 0 : L.length) > 1 ? (o(), i("div", Ba, [
2307
- (o(!0), i(P, null, D(e(_e)(te).indexes.slice(1, 2), (R, m) => (o(), i("div", {
2311
+ (o(!0), i(N, null, D(e(_e)(te).indexes.slice(1, 2), (R, m) => (o(), i("div", {
2308
2312
  key: `subvalue-${m}`,
2309
2313
  class: "table__cell-subvalue"
2310
2314
  }, k(e(u).$actions.formatValue({
@@ -2321,7 +2325,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2321
2325
  }), 128)),
2322
2326
  (F = _.actions) != null && F.length && e(l).md ? (o(), i("td", wa, [
2323
2327
  V("div", Sa, [
2324
- (o(!0), i(P, null, D(h(B), (w) => (o(), g(re, {
2328
+ (o(!0), i(N, null, D(h(B), (w) => (o(), g(re, {
2325
2329
  key: `action-${w.action}`,
2326
2330
  small: "",
2327
2331
  variant: "transparent",
@@ -2334,7 +2338,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2334
2338
  ]),
2335
2339
  _: 2
2336
2340
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2337
- p(B).length > 0 ? (o(), g(Ce, H({
2341
+ p(B).length > 0 ? (o(), g(Oe, H({
2338
2342
  key: 0,
2339
2343
  ref_for: !0
2340
2344
  }, {
@@ -2342,7 +2346,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2342
2346
  actions: p(B)
2343
2347
  }), {
2344
2348
  default: f(() => [
2345
- N(z(x, {
2349
+ x(z(Z, {
2346
2350
  reactive: "",
2347
2351
  icon: "dots-three"
2348
2352
  }, null, 512), [
@@ -2357,13 +2361,13 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2357
2361
  class: "table__mobile-actions-grid",
2358
2362
  style: $e(`grid-template-columns: repeat(${h(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
2359
2363
  }, [
2360
- (o(!0), i(P, null, D(h(B), (w) => (o(), g(fe, {
2364
+ (o(!0), i(N, null, D(h(B), (w) => (o(), g(fe, {
2361
2365
  key: `action-${w.action}`,
2362
2366
  class: "table__mobile-actions-button",
2363
2367
  onClick: (te) => w.click(B)
2364
2368
  }, {
2365
2369
  default: f(() => [
2366
- z(x, {
2370
+ z(Z, {
2367
2371
  icon: w.icon || "gear"
2368
2372
  }, {
2369
2373
  default: f(() => [
@@ -2374,7 +2378,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2374
2378
  ]),
2375
2379
  _: 2
2376
2380
  }, 1032, ["onClick"]))), 128)),
2377
- p(B).length > 0 ? (o(), g(Ce, H({
2381
+ p(B).length > 0 ? (o(), g(Oe, H({
2378
2382
  key: 0,
2379
2383
  ref_for: !0
2380
2384
  }, {
@@ -2382,7 +2386,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2382
2386
  actions: p(B)
2383
2387
  }), {
2384
2388
  default: f(() => [
2385
- z(x, {
2389
+ z(Z, {
2386
2390
  icon: "dots-three",
2387
2391
  class: "table__mobile-actions-button"
2388
2392
  })
@@ -2398,7 +2402,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
2398
2402
  }), 128))
2399
2403
  ])),
2400
2404
  V("tfoot", null, [
2401
- _.$slots.tfoot ? I(_.$slots, "tfoot", { key: 0 }, void 0, !0) : _.columns && !((T = _.rows) != null && T.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (o(), i("tr", La, za)) : y("", !0)
2405
+ _.$slots.tfoot ? I(_.$slots, "tfoot", { key: 0 }, void 0, !0) : _.columns && !((T = _.rows) != null && T.length) && !((P = e(u)) != null && P.loading.getAll) ? (o(), i("tr", La, za)) : y("", !0)
2402
2406
  ])
2403
2407
  ])) : y("", !0);
2404
2408
  };
@@ -2431,7 +2435,7 @@ const Fa = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-7f75c4c2"]]), qa = /* @_
2431
2435
  D(Object.keys(s.$slots).filter((v) => !["inner"].includes(v)), (v) => ({
2432
2436
  name: v,
2433
2437
  fn: f((c) => [
2434
- I(s.$slots, v, pe(Ve(c)))
2438
+ I(s.$slots, v, pe(Ce(c)))
2435
2439
  ])
2436
2440
  }))
2437
2441
  ]), 1040)) : y("", !0)
@@ -2472,7 +2476,7 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2472
2476
  list: s.componentName === "list"
2473
2477
  }, {
2474
2478
  default: f(() => [
2475
- (o(!0), i(P, null, D(e(t).items, (c) => (o(), g(_n, {
2479
+ (o(!0), i(N, null, D(e(t).items, (c) => (o(), g(_n, {
2476
2480
  key: c,
2477
2481
  inactive: !!(e(a).active && !c[e(a).active]),
2478
2482
  horizontal: s.componentName === "list"
@@ -2482,7 +2486,7 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2482
2486
  e(a).information ? (o(), i("div", Ha, k(c[e(a).information]), 1)) : y("", !0)
2483
2487
  ]),
2484
2488
  actions: f(() => [
2485
- s.individualActions.length > 0 ? (o(), g(Ce, H({
2489
+ s.individualActions.length > 0 ? (o(), g(Oe, H({
2486
2490
  key: 0,
2487
2491
  ref_for: !0
2488
2492
  }, {
@@ -2490,7 +2494,7 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2490
2494
  actions: s.individualActions
2491
2495
  }), {
2492
2496
  default: f(() => [
2493
- N(z(x, {
2497
+ x(z(Z, {
2494
2498
  reactive: "",
2495
2499
  icon: "dots-three-vertical"
2496
2500
  }, null, 512), [
@@ -2516,7 +2520,7 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2516
2520
  e(a).badge && Array.isArray(c[e(a).badge]) ? {
2517
2521
  name: "badge",
2518
2522
  fn: f(() => [
2519
- (o(!0), i(P, null, D(c[e(a).badge], (h) => (o(), g(be, {
2523
+ (o(!0), i(N, null, D(c[e(a).badge], (h) => (o(), g(be, {
2520
2524
  key: `${c._id}-${h}`,
2521
2525
  large: ""
2522
2526
  }, {
@@ -2552,7 +2556,7 @@ const _t = /* @__PURE__ */ X(Qa, [["__scopeId", "data-v-113dd7db"]]), Ga = (d) =
2552
2556
  list: _t
2553
2557
  })[d], de = J(!1);
2554
2558
  J(!1);
2555
- const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f942d7a"), d = d(), De(), d), Ka = {
2559
+ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642eb69"), d = d(), De(), d), Ka = {
2556
2560
  key: 2,
2557
2561
  class: "crud__controls"
2558
2562
  }, Xa = {
@@ -2577,7 +2581,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2577
2581
  },
2578
2582
  emits: ["uiEvent"],
2579
2583
  setup(d, { emit: r }) {
2580
- const a = d, t = r, l = Ie(), s = $t({
2584
+ const a = d, t = r, l = Ae(), s = $t({
2581
2585
  delay: 600
2582
2586
  }), u = ie("meta"), v = ze(), { reachedEnd: c, detach: h } = Ye(null, {
2583
2587
  antecipate: 600
@@ -2590,7 +2594,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2590
2594
  persistInQuery: !a.noQueryPersistence
2591
2595
  });
2592
2596
  const _ = gt(), $ = a.action ? e(a.action) : Ut(n, l, _);
2593
- Le.value = $[0], mt.value = $[1];
2597
+ Re.value = $[0], mt.value = $[1];
2594
2598
  const b = J(0), S = J(!1), T = async (C) => {
2595
2599
  n.activeFilters = Object.assign({}, (C == null ? void 0 : C.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
2596
2600
  const j = {
@@ -2605,7 +2609,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2605
2609
  return;
2606
2610
  const { data: se, pagination: le } = ae;
2607
2611
  n.pagination.recordsCount = le.recordsCount, n.pagination.recordsTotal = le.recordsTotal, b.value === 0 && n.items.splice(0), n.items.push(...se), n.loading.getAll = !1, S.value = !0;
2608
- }, Z = async (C) => {
2612
+ }, P = async (C) => {
2609
2613
  l.push({
2610
2614
  query: {
2611
2615
  ...l.currentRoute.value.query,
@@ -2633,14 +2637,14 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2633
2637
  query: {
2634
2638
  search: C || void 0
2635
2639
  }
2636
- }), C ? (n.filters = Object.assign(Re(n.freshFilters), {
2640
+ }), C ? (n.filters = Object.assign(Ve(n.freshFilters), {
2637
2641
  $text: {
2638
2642
  $search: `"${C}"`,
2639
2643
  $caseSensitive: !1
2640
2644
  }
2641
2645
  }), T({
2642
2646
  offset: 0
2643
- })) : (n.filters = Re(n.freshFilters), b.value = 0, T())));
2647
+ })) : (n.filters = Ve(n.freshFilters), b.value = 0, T())));
2644
2648
  ue(() => n.textQuery, (C) => {
2645
2649
  F(C);
2646
2650
  });
@@ -2651,7 +2655,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2651
2655
  n.$actions.clearFilters(), n.textQuery = "", h();
2652
2656
  }), ue(() => mt.value, async (C) => {
2653
2657
  var ae;
2654
- const j = Re(C);
2658
+ const j = Ve(C);
2655
2659
  let oe;
2656
2660
  if (j)
2657
2661
  if ((j.name === "spawnEdit" || j.name === "duplicate") && (oe = n.$actions.get({
@@ -2697,17 +2701,17 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2697
2701
  t("uiEvent", j);
2698
2702
  }, {
2699
2703
  deep: !0
2700
- }), ue(() => de, (C) => {
2701
- C.value === !1 && (u.view.collection = a.collection, n.$actions.clearItem());
2704
+ }), ue(() => de, ({ value: C }) => {
2705
+ C === !1 && (u.view.collection = a.collection, n.$actions.clearItem());
2702
2706
  });
2703
2707
  const w = Q(() => n.individualActions.map((C) => ({
2704
- click: Le.value(C),
2708
+ click: Re.value(C),
2705
2709
  ...C
2706
2710
  }))), te = Q(() => n.actions.filter((C) => !C.button));
2707
2711
  return ye(He, Q(() => a.collection)), ye("individualActions", w), (C, j) => {
2708
2712
  var se, le, L, R, m, E, G;
2709
2713
  const oe = ne("clickable"), ae = ne("loading");
2710
- return o(), i(P, null, [
2714
+ return o(), i(N, null, [
2711
2715
  e(ke) ? (o(), g(na, {
2712
2716
  key: e(n).$id,
2713
2717
  modelValue: e(ke),
@@ -2739,13 +2743,13 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2739
2743
  D(Object.keys(C.$slots).filter((O) => O.startsWith("field-")), (O) => ({
2740
2744
  name: O,
2741
2745
  fn: f((A) => [
2742
- I(C.$slots, O, pe(Ve(A)), void 0, !0)
2746
+ I(C.$slots, O, pe(Ce(A)), void 0, !0)
2743
2747
  ])
2744
2748
  }))
2745
2749
  ]), 1032, ["modelValue"])) : y("", !0),
2746
2750
  !C.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((se = e(n)) == null ? void 0 : se.actions.length) > 0 || C.$slots.actions || !C.noLayoutToggle && e(n).description.layout && ((le = e(n).description.layout) == null ? void 0 : le.name) !== "tabular") ? (o(), i("div", Ka, [
2747
2751
  e(n).description.search ? (o(), i("div", Xa, [
2748
- z(Oe, H({
2752
+ z(Ie, H({
2749
2753
  modelValue: e(n).textQuery,
2750
2754
  "onUpdate:modelValue": j[3] || (j[3] = (O) => e(n).textQuery = O)
2751
2755
  }, {
@@ -2757,7 +2761,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2757
2761
  }), null, 16, ["modelValue"])
2758
2762
  ])) : y("", !0),
2759
2763
  V("div", Ya, [
2760
- te.value.length > 0 || !C.noLayoutToggle && e(n).description.layout && ((L = e(n).description.layout) == null ? void 0 : L.name) !== "tabular" ? (o(), g(Ce, { key: 0 }, ce({
2764
+ te.value.length > 0 || !C.noLayoutToggle && e(n).description.layout && ((L = e(n).description.layout) == null ? void 0 : L.name) !== "tabular" ? (o(), g(Oe, { key: 0 }, ce({
2761
2765
  default: f(() => [
2762
2766
  z(re, {
2763
2767
  variant: "alt",
@@ -2779,7 +2783,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2779
2783
  Object.keys(e(n).availableFilters).length > 0 ? {
2780
2784
  name: "filter",
2781
2785
  fn: f(() => [
2782
- N((o(), g(x, {
2786
+ x((o(), g(Z, {
2783
2787
  icon: "funnel",
2784
2788
  onClick: j[4] || (j[4] = (O) => ke.value = !0)
2785
2789
  }, {
@@ -2804,7 +2808,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2804
2808
  !C.noLayoutToggle && e(n).description.layout && ((R = e(n).description.layout) == null ? void 0 : R.name) !== "tabular" ? {
2805
2809
  name: "layout-toggle",
2806
2810
  fn: f(() => [
2807
- N((o(), g(x, {
2811
+ x((o(), g(Z, {
2808
2812
  icon: "table",
2809
2813
  onClick: j[5] || (j[5] = (O) => Y(e(n)))
2810
2814
  }, {
@@ -2821,11 +2825,11 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2821
2825
  D(te.value, (O, A) => ({
2822
2826
  name: `action-${A}`,
2823
2827
  fn: f(() => [
2824
- O ? (o(), g(x, {
2828
+ O ? (o(), g(Z, {
2825
2829
  key: 0,
2826
2830
  icon: O.icon || "gear",
2827
2831
  disabled: e(n).selected.length === 0 && O.selection,
2828
- onClick: (q) => e(Le)(O)({ _id: e(n).selected.map((me) => me._id) })
2832
+ onClick: (q) => e(Re)(O)({ _id: e(n).selected.map((me) => me._id) })
2829
2833
  }, {
2830
2834
  default: f(() => [
2831
2835
  W(k(e(M)(O.label, { capitalize: !0 })), 1)
@@ -2851,11 +2855,11 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2851
2855
  ]),
2852
2856
  _: 1
2853
2857
  })) : y("", !0),
2854
- (o(!0), i(P, null, D(e(n).actions.filter((O) => O.button), (O, A) => (o(), g(re, {
2858
+ (o(!0), i(N, null, D(e(n).actions.filter((O) => O.button), (O, A) => (o(), g(re, {
2855
2859
  key: `action-${A}`,
2856
2860
  icon: O.icon,
2857
2861
  disabled: e(n).selected.length === 0 && O.selection,
2858
- onClick: (q) => e(Le)(O)({ _id: e(n).selected.map((me) => me._id) })
2862
+ onClick: (q) => e(Re)(O)({ _id: e(n).selected.map((me) => me._id) })
2859
2863
  }, {
2860
2864
  default: f(() => [
2861
2865
  W(k(e(M)(O.label, { capitalize: !0 })), 1)
@@ -2865,7 +2869,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2865
2869
  C.$slots.actions ? I(C.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2866
2870
  ])
2867
2871
  ])) : y("", !0),
2868
- N((o(), i("div", null, [
2872
+ x((o(), i("div", null, [
2869
2873
  e(n).itemsCount === 0 && !e(n).loading.getAll && S.value && (e(B) || C.$slots.empty) ? (o(), i("div", Pa, [
2870
2874
  e(B) ? (o(), g(he(e(B)), pe(H({ key: 0 }, {
2871
2875
  collection: e(n).$id
@@ -2874,7 +2878,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2874
2878
  e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), g(re, {
2875
2879
  key: 0,
2876
2880
  icon: "plus",
2877
- onClick: j[7] || (j[7] = (O) => e(Le)({
2881
+ onClick: j[7] || (j[7] = (O) => e(Re)({
2878
2882
  action: "ui:spawnAdd"
2879
2883
  })())
2880
2884
  }, {
@@ -2900,7 +2904,7 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2900
2904
  D(Object.keys(C.$slots).filter((O) => O.startsWith("row-")), (O) => ({
2901
2905
  name: O,
2902
2906
  fn: f((A) => [
2903
- I(C.$slots, O, pe(Ve(A)), void 0, !0)
2907
+ I(C.$slots, O, pe(Ce(A)), void 0, !0)
2904
2908
  ])
2905
2909
  })),
2906
2910
  C.$slots.tfoot ? {
@@ -2917,14 +2921,14 @@ const ke = J(!1), Le = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2f94
2917
2921
  !e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), i("div", Na, [
2918
2922
  z(Fn, {
2919
2923
  pagination: e(n).pagination,
2920
- onPaginate: Z
2924
+ onPaginate: P
2921
2925
  }, null, 8, ["pagination"])
2922
2926
  ])) : y("", !0)
2923
2927
  ], 64);
2924
2928
  };
2925
2929
  }
2926
2930
  });
2927
- const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2f942d7a"]]), el = { class: "prompt" }, tl = /* @__PURE__ */ U({
2931
+ const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2642eb69"]]), el = { class: "prompt" }, tl = /* @__PURE__ */ U({
2928
2932
  __name: "aeria-prompt",
2929
2933
  props: {
2930
2934
  title: {},
@@ -2934,7 +2938,7 @@ const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2f942d7a"]]), el = { cla
2934
2938
  const r = ie("meta"), a = (t) => {
2935
2939
  r.$actions.fulfillPrompt(t);
2936
2940
  };
2937
- return (t, l) => (o(), g(Ae, {
2941
+ return (t, l) => (o(), g(Be, {
2938
2942
  float: "",
2939
2943
  "fill-footer": "",
2940
2944
  "close-hint": !1,
@@ -2945,7 +2949,7 @@ const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2f942d7a"]]), el = { cla
2945
2949
  class: "prompt__actions",
2946
2950
  style: $e(`grid-template-columns: repeat(${t.actions.length}, 1fr)`)
2947
2951
  }, [
2948
- (o(!0), i(P, null, D(t.actions, (s, u) => (o(), g(fe, {
2952
+ (o(!0), i(N, null, D(t.actions, (s, u) => (o(), g(fe, {
2949
2953
  key: `action-${u}`,
2950
2954
  class: K(`
2951
2955
  prompt__action
@@ -2989,7 +2993,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-5443f297"]]), ol = { cla
2989
2993
  const r = ie("meta");
2990
2994
  return (a, t) => {
2991
2995
  const l = ne("clickable");
2992
- return N((o(), i("div", {
2996
+ return x((o(), i("div", {
2993
2997
  class: K({
2994
2998
  toast: !0,
2995
2999
  "toast--animate": e(r).toasts[0].itr === a.itr
@@ -2997,7 +3001,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-5443f297"]]), ol = { cla
2997
3001
  onAnimationend: t[0] || (t[0] = (s) => e(r).$actions.popToast()),
2998
3002
  onClick: t[1] || (t[1] = (s) => e(r).$actions.popToast(a.itr))
2999
3003
  }, [
3000
- z(x, H(
3004
+ z(Z, H(
3001
3005
  a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3002
3006
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3003
3007
  ), null, 16),
@@ -3044,7 +3048,7 @@ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3044
3048
  _: 3
3045
3049
  })),
3046
3050
  I(t.$slots, "default", {}, void 0, !0),
3047
- z(Ae, H({
3051
+ z(Be, H({
3048
3052
  modelValue: e(r).modal.visible,
3049
3053
  "onUpdate:modelValue": l[0] || (l[0] = (u) => e(r).modal.visible = u),
3050
3054
  float: "",
@@ -3070,7 +3074,7 @@ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3070
3074
  _: 1
3071
3075
  }, 16)) : y("", !0),
3072
3076
  V("div", rl, [
3073
- (o(!0), i(P, null, D(e(r).toasts, (u) => (o(), g(sl, H({ ref_for: !0 }, u, {
3077
+ (o(!0), i(N, null, D(e(r).toasts, (u) => (o(), g(sl, H({ ref_for: !0 }, u, {
3074
3078
  key: `toast-${u.itr}`
3075
3079
  }), {
3076
3080
  default: f(() => [
@@ -3089,7 +3093,7 @@ const Ml = /* @__PURE__ */ X(cl, [["__scopeId", "data-v-1166be3d"]]);
3089
3093
  const dl = {}, pl = { class: "menu" };
3090
3094
  function _l(d, r) {
3091
3095
  return o(), i("menu", pl, [
3092
- (o(!0), i(P, null, D(Object.keys(d.$slots), (a) => (o(), i("div", {
3096
+ (o(!0), i(N, null, D(Object.keys(d.$slots), (a) => (o(), i("div", {
3093
3097
  key: a,
3094
3098
  class: "menu__entry"
3095
3099
  }, [
@@ -3114,7 +3118,7 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3114
3118
  dropdown: { type: Boolean }
3115
3119
  },
3116
3120
  setup(d) {
3117
- const r = d, a = St(), t = Ie(), l = ze(), s = "query" in r && r.query ? "query" : "params", u = Q(() => {
3121
+ const r = d, a = St(), t = Ae(), l = ze(), s = "query" in r && r.query ? "query" : "params", u = Q(() => {
3118
3122
  const c = t.currentRoute.value[s][r.query || r.param];
3119
3123
  return c || Object.keys(a)[0];
3120
3124
  }), v = (c) => {
@@ -3140,7 +3144,7 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3140
3144
  c.$slots.default ? (o(), i("div", vl, [
3141
3145
  I(c.$slots, "default", {}, void 0, !0)
3142
3146
  ])) : y("", !0),
3143
- (o(!0), i(P, null, D(Object.keys(c.$slots).filter((n) => n !== "default"), (n, _) => (o(), i("div", {
3147
+ (o(!0), i(N, null, D(Object.keys(c.$slots).filter((n) => n !== "default"), (n, _) => (o(), i("div", {
3144
3148
  key: n,
3145
3149
  class: K({
3146
3150
  tabs__tab: !0,
@@ -3151,9 +3155,9 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3151
3155
  I(c.$slots, n, {}, void 0, !0)
3152
3156
  ], 10, yl))), 128))
3153
3157
  ])) : (o(), i("div", hl, [
3154
- z(Ce, null, ce({
3158
+ z(Oe, null, ce({
3155
3159
  default: f(() => [
3156
- N((o(), g(x, {
3160
+ x((o(), g(Z, {
3157
3161
  "icon-right": "",
3158
3162
  icon: "caret-down",
3159
3163
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
@@ -3202,7 +3206,7 @@ const gl = /* @__PURE__ */ X(bl, [["__scopeId", "data-v-4dd516ec"]]), kl = U({
3202
3206
  collection: {}
3203
3207
  },
3204
3208
  setup(d) {
3205
- const r = d, t = Ie().currentRoute, l = Q(() => {
3209
+ const r = d, t = Ae().currentRoute, l = Q(() => {
3206
3210
  try {
3207
3211
  const s = r.collection ? r.collection : t.value.meta.collection || t.value.params.collection;
3208
3212
  return ge(s);
@@ -3222,7 +3226,7 @@ const gl = /* @__PURE__ */ X(bl, [["__scopeId", "data-v-4dd516ec"]]), kl = U({
3222
3226
  class: "topbar__preset",
3223
3227
  onClick: (h) => e(Vt)(c, l.value)
3224
3228
  }, [
3225
- c.icon ? (o(), g(x, {
3229
+ c.icon ? (o(), g(Z, {
3226
3230
  key: 0,
3227
3231
  icon: c.icon
3228
3232
  }, {
@@ -3280,7 +3284,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3280
3284
  }, {
3281
3285
  after: f(() => [
3282
3286
  V("div", null, k(t.value || "Senhas conferem"), 1),
3283
- I(l.$slots, "default", pe(Ve({ passwordError: t.value })))
3287
+ I(l.$slots, "default", pe(Ce({ passwordError: t.value })))
3284
3288
  ]),
3285
3289
  _: 3
3286
3290
  }, 8, ["model-value"]));
@@ -3303,7 +3307,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3303
3307
  {
3304
3308
  path: "signin",
3305
3309
  name: "/user/signin",
3306
- component: () => import("./signin-78854e9e.js"),
3310
+ component: () => import("./signin-7bd62da0.js"),
3307
3311
  meta: {
3308
3312
  title: "Autenticação"
3309
3313
  }
@@ -3311,7 +3315,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3311
3315
  {
3312
3316
  path: "signup",
3313
3317
  name: "/user/signup",
3314
- component: () => import("./signup-42edefc2.js"),
3318
+ component: () => import("./signup-fb1eeb42.js"),
3315
3319
  meta: {
3316
3320
  title: "Registro"
3317
3321
  }
@@ -3319,7 +3323,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3319
3323
  {
3320
3324
  path: "activation",
3321
3325
  name: "/user/activation",
3322
- component: () => import("./activation-d3f6dc73.js"),
3326
+ component: () => import("./activation-edc27260.js"),
3323
3327
  meta: {
3324
3328
  title: "Ativação"
3325
3329
  }
@@ -3341,7 +3345,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3341
3345
  name: "/dashboard/crud",
3342
3346
  props: !0,
3343
3347
  components: {
3344
- default: () => import("./index-38b13e16.js"),
3348
+ default: () => import("./index-755a181d.js"),
3345
3349
  topbar: () => Promise.resolve().then(() => Al)
3346
3350
  },
3347
3351
  meta: {
@@ -3353,7 +3357,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3353
3357
  name: "/dashboard/crud/:id",
3354
3358
  props: !0,
3355
3359
  components: {
3356
- default: () => import("./_id_-149df831.js")
3360
+ default: () => import("./_id_-91cf1771.js")
3357
3361
  },
3358
3362
  meta: {
3359
3363
  title: "%viewTitle%"
@@ -3371,7 +3375,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3371
3375
  children: [
3372
3376
  {
3373
3377
  path: "profile",
3374
- component: () => import("./index-1bbeba72.js"),
3378
+ component: () => import("./index-daf763f4.js"),
3375
3379
  meta: {
3376
3380
  title: "Meu perfil",
3377
3381
  icon: "user-square"
@@ -3380,7 +3384,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
3380
3384
  {
3381
3385
  path: "changepass",
3382
3386
  name: "/dashboard/user/changepass",
3383
- component: () => import("./index-87c76c28.js"),
3387
+ component: () => import("./index-e0172528.js"),
3384
3388
  meta: {
3385
3389
  title: "Mudar senha",
3386
3390
  icon: "lock"
@@ -3400,19 +3404,19 @@ export {
3400
3404
  El as G,
3401
3405
  ql as _,
3402
3406
  re as a,
3403
- x as b,
3407
+ Z as b,
3404
3408
  Gn as c,
3405
3409
  zl as d,
3406
3410
  oa as e,
3407
3411
  Ue as f,
3408
3412
  Fl as g,
3409
- Ae as h,
3413
+ Be as h,
3410
3414
  X as i,
3411
3415
  Rl as j,
3412
3416
  be as k,
3413
3417
  fe as l,
3414
3418
  _n as m,
3415
- Ce as n,
3419
+ Oe as n,
3416
3420
  Ea as o,
3417
3421
  bn as p,
3418
3422
  Ml as q,
@@ -3420,7 +3424,7 @@ export {
3420
3424
  Fa as s,
3421
3425
  gl as t,
3422
3426
  bo as u,
3423
- Oe as v,
3427
+ Ie as v,
3424
3428
  Xn as w,
3425
3429
  Fo as x,
3426
3430
  Qe as y,