@aeria-ui/ui 0.0.92 → 0.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, ref as Y, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as G, withDirectives as Z, toDisplayString as V, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as E, createElementVNode as A, mergeProps as U, createBlock as k, withCtx as v, resolveDynamicComponent as be, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as he, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
1
+ import { defineComponent as F, ref as Y, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as G, withDirectives as Z, toDisplayString as V, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as E, createElementVNode as A, mergeProps as U, createBlock as k, withCtx as v, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
3
3
  import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
4
4
  import { useStore as ie, getStoreId as Me, useParentStore as Ie, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
@@ -254,7 +254,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
254
254
  setup(c, { emit: r }) {
255
255
  const l = c, t = r, o = E(() => l.floating || l.float), u = Y(l.collapsed), i = Y(null), { reachedEnd: _ } = Pe(i), p = () => {
256
256
  t("update:modelValue", !1), t("close");
257
- }, h = () => {
257
+ }, b = () => {
258
258
  t("overlayClick");
259
259
  }, d = (a) => {
260
260
  t("update:collapsed", a), u.value = a;
@@ -268,7 +268,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
268
268
  ${a.fixedRight && "panel--fixed"}
269
269
  `)
270
270
  }, [
271
- (n(), k(be(
271
+ (n(), k(he(
272
272
  o.value ? "dialog" : "div"
273
273
  ), {
274
274
  "data-component": "panel",
@@ -352,7 +352,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
352
352
  [T, {
353
353
  condition: a.overlay || a.fixedRight || o.value,
354
354
  invisible: a.invisibleOverlay,
355
- click: h,
355
+ click: b,
356
356
  layer: a.overlayLayer || (o.value ? 60 : a.fixedRight ? 50 : 0)
357
357
  }]
358
358
  ]) : y("", !0);
@@ -362,7 +362,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
362
362
  const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { class: "content__body" }, yn = {
363
363
  key: 0,
364
364
  class: "content__section"
365
- }, bn = { class: "content__item" }, hn = /* @__PURE__ */ F({
365
+ }, hn = { class: "content__item" }, bn = /* @__PURE__ */ F({
366
366
  __name: "aeria-context-menu",
367
367
  props: {
368
368
  actions: {},
@@ -375,14 +375,14 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
375
375
  "036683e2": _.value.x,
376
376
  "036683e0": _.value.y
377
377
  }));
378
- const l = r, t = Y(null), o = Y(!1), u = (p) => p == null ? void 0 : p.filter((h) => {
379
- if (h.roles) {
378
+ const l = r, t = Y(null), o = Y(!1), u = (p) => p == null ? void 0 : p.filter((b) => {
379
+ if (b.roles) {
380
380
  const d = ie("user");
381
- return gt(h.roles, d.currentUser.roles);
381
+ return gt(b.roles, d.currentUser.roles);
382
382
  }
383
383
  return !0;
384
- }), i = (p, h) => {
385
- const d = h && Ce(h);
384
+ }), i = (p, b) => {
385
+ const d = b && Ce(b);
386
386
  p.click && p.click(d), l("actionClick", {
387
387
  action: p,
388
388
  subject: d
@@ -393,14 +393,14 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
393
393
  x: 0,
394
394
  y: 0
395
395
  };
396
- const p = t.value.getBoundingClientRect().top, h = t.value.getBoundingClientRect().left, d = t.value.offsetHeight;
396
+ const p = t.value.getBoundingClientRect().top, b = t.value.getBoundingClientRect().left, d = t.value.offsetHeight;
397
397
  return {
398
398
  _: o.value,
399
- x: Math.floor(h) + "px",
399
+ x: Math.floor(b) + "px",
400
400
  y: Math.floor(p + d) + "px"
401
401
  };
402
402
  });
403
- return (p, h) => {
403
+ return (p, b) => {
404
404
  const d = te("overlay");
405
405
  return n(), s(N, null, [
406
406
  Object.keys(p.$slots).some((a) => a !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), s("div", {
@@ -411,7 +411,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
411
411
  }, [
412
412
  A("a", {
413
413
  class: "contextmenu__trigger",
414
- onClick: h[0] || (h[0] = (a) => o.value = !0)
414
+ onClick: b[0] || (b[0] = (a) => o.value = !0)
415
415
  }, [
416
416
  O(p.$slots, "default", de(ge({
417
417
  visible: o.value
@@ -424,7 +424,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
424
424
  }, [
425
425
  Z((n(), k(Be, {
426
426
  modelValue: o.value,
427
- "onUpdate:modelValue": h[4] || (h[4] = (a) => o.value = a),
427
+ "onUpdate:modelValue": b[4] || (b[4] = (a) => o.value = a),
428
428
  fill: "",
429
429
  bordered: "",
430
430
  class: "content",
@@ -438,7 +438,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
438
438
  Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)).length > 0 ? (n(), s("div", {
439
439
  key: 1,
440
440
  class: "content__section",
441
- onClick: h[1] || (h[1] = (a) => o.value = !1)
441
+ onClick: b[1] || (b[1] = (a) => o.value = !1)
442
442
  }, [
443
443
  (n(!0), s(N, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, B) => (n(), k(ve, {
444
444
  key: `slot-${B}`,
@@ -453,7 +453,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
453
453
  p.actions !== void 0 && p.actions.length > 0 ? (n(), s("div", {
454
454
  key: 2,
455
455
  class: "content__section",
456
- onClick: h[2] || (h[2] = (a) => o.value = !1)
456
+ onClick: b[2] || (b[2] = (a) => o.value = !1)
457
457
  }, [
458
458
  (n(!0), s(N, null, G(u(p.actions), (a, B) => (n(), k(ve, {
459
459
  key: `action-${B}`,
@@ -477,9 +477,9 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
477
477
  p.$slots.extra ? (n(), s("div", {
478
478
  key: 3,
479
479
  class: "content__section",
480
- onClick: h[3] || (h[3] = (a) => o.value = !1)
480
+ onClick: b[3] || (b[3] = (a) => o.value = !1)
481
481
  }, [
482
- A("div", bn, [
482
+ A("div", hn, [
483
483
  p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
484
484
  ])
485
485
  ])) : y("", !0)
@@ -504,7 +504,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
504
504
  };
505
505
  }
506
506
  });
507
- const Oe = /* @__PURE__ */ W(hn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ F({
507
+ const Oe = /* @__PURE__ */ W(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ F({
508
508
  __name: "aeria-info",
509
509
  props: {
510
510
  where: { default: "top" }
@@ -558,7 +558,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
558
558
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
559
559
  setup(c, { emit: r }) {
560
560
  var ee;
561
- const l = c, t = r, o = l.property || {}, u = "icon" in o || "inputType" in o && o.inputType === "search", i = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !i && (l.readOnly || o.readOnly), h = (b) => (t("clipboardCopy", b), navigator.clipboard.writeText(b)), d = _e("inputVariant", l.variant) || "normal", a = Object.assign(Object.assign({}, l), {
561
+ const l = c, t = r, o = l.property || {}, u = "icon" in o || "inputType" in o && o.inputType === "search", i = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !i && (l.readOnly || o.readOnly), b = (h) => (t("clipboardCopy", h), navigator.clipboard.writeText(h)), d = _e("inputVariant", l.variant) || "normal", a = Object.assign(Object.assign({}, l), {
562
562
  name: l.propertyName,
563
563
  readonly: p,
564
564
  type: (() => {
@@ -584,15 +584,15 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
584
584
  "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"), Xe(() => {
585
585
  l.modelValue !== null && C(l.modelValue);
586
586
  });
587
- const B = (b) => {
587
+ const B = (h) => {
588
588
  try {
589
- if (!(b instanceof Date))
590
- return b;
589
+ if (!(h instanceof Date))
590
+ return h;
591
591
  switch (a.type) {
592
592
  case "date":
593
- return b.toISOString().slice(0, 10);
593
+ return h.toISOString().slice(0, 10);
594
594
  case "datetime-local":
595
- return b.toISOString().slice(0, 19);
595
+ return h.toISOString().slice(0, 19);
596
596
  default:
597
597
  throw new Error();
598
598
  }
@@ -600,61 +600,61 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
600
600
  return "";
601
601
  }
602
602
  }, f = Y(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
603
- ue(() => l.modelValue, (b) => {
603
+ ue(() => l.modelValue, (h) => {
604
604
  f.value = (() => {
605
605
  if ($)
606
- return b ? $.enmask(String(b), void 0, {
606
+ return h ? $.enmask(String(h), void 0, {
607
607
  defaultValue: !0
608
608
  }) : "";
609
609
  switch (a.type) {
610
610
  case "date":
611
611
  case "datetime-local":
612
- return B(b);
612
+ return B(h);
613
613
  }
614
- switch (b) {
614
+ switch (h) {
615
615
  case null:
616
616
  case void 0:
617
617
  return "";
618
618
  default:
619
- return b;
619
+ return h;
620
620
  }
621
621
  })();
622
622
  }, {
623
623
  immediate: !0
624
624
  });
625
- const T = (b) => {
625
+ const T = (h) => {
626
626
  var H;
627
627
  return typeof f.value == "string" && ((H = l.property) == null ? void 0 : H.type) === "string" && $ !== null ? (f.value = $.enmask(f.value, void 0, {
628
628
  defaultValue: !0
629
- }), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : b;
630
- }, C = (b) => {
629
+ }), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : h;
630
+ }, C = (h) => {
631
631
  const H = (() => {
632
- if (!b || typeof b != "string")
633
- return b;
632
+ if (!h || typeof h != "string")
633
+ return h;
634
634
  switch (a.type) {
635
635
  case "number":
636
636
  case "integer":
637
- return Number(b);
637
+ return Number(h);
638
638
  case "date":
639
639
  case "date-time":
640
- return new Date(b);
640
+ return new Date(h);
641
641
  default:
642
- return T(b);
642
+ return T(h);
643
643
  }
644
644
  })();
645
645
  t("input", H), t("update:modelValue", H);
646
- }, x = (b) => {
647
- const H = b.target.value;
646
+ }, x = (h) => {
647
+ const H = h.target.value;
648
648
  f.value = H, C(H);
649
649
  };
650
- return (b, H) => {
650
+ return (h, H) => {
651
651
  const le = te("focus"), S = te("clickable");
652
652
  return n(), s("label", Vn, [
653
653
  e(_) ? y("", !0) : (n(), s("div", Cn, [
654
- b.$slots.default ? O(b.$slots, "default", { key: 0 }, void 0, !0) : O(b.$slots, "description", { key: 1 }, void 0, !0)
654
+ h.$slots.default ? O(h.$slots, "default", { key: 0 }, void 0, !0) : O(h.$slots, "description", { key: 1 }, void 0, !0)
655
655
  ])),
656
- b.$slots.hint ? (n(), s("div", On, [
657
- O(b.$slots, "hint", {}, void 0, !0)
656
+ h.$slots.hint ? (n(), s("div", On, [
657
+ O(h.$slots, "hint", {}, void 0, !0)
658
658
  ])) : y("", !0),
659
659
  "element" in e(o) && e(o).element === "textarea" ? (n(), s("div", {
660
660
  key: 2,
@@ -667,7 +667,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
667
667
  Z(A("textarea", {
668
668
  placeholder: e(a).placeholder,
669
669
  readonly: e(a).readonly,
670
- value: b.modelValue,
670
+ value: h.modelValue,
671
671
  class: X(`
672
672
  input__textarea
673
673
  input__input--${e(d)}
@@ -714,7 +714,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
714
714
  Z(z(J, {
715
715
  reactive: "",
716
716
  icon: "clipboard",
717
- onClick: H[1] || (H[1] = ze((g) => h(String(b.modelValue || "")), ["prevent"]))
717
+ onClick: H[1] || (H[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
718
718
  }, null, 512), [
719
719
  [S]
720
720
  ])
@@ -767,7 +767,7 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
767
767
  })() : E({
768
768
  get: () => l.modelValue,
769
769
  set: i
770
- }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, h = E(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
770
+ }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = E(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
771
771
  return l.multiple && ue(() => l.modelValue, (d) => {
772
772
  var B;
773
773
  if (!o.value)
@@ -779,14 +779,14 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
779
779
  "read-only": "",
780
780
  "model-value": e(_)
781
781
  }, null, 8, ["model-value"])) : (n(), s("select", U({ key: 0 }, {
782
- size: h.value,
782
+ size: b.value,
783
783
  value: e(_)
784
784
  }, {
785
785
  ref_key: "select",
786
786
  ref: o,
787
787
  class: {
788
788
  select: !0,
789
- "select--multiple": !!h.value,
789
+ "select--multiple": !!b.value,
790
790
  "select--outline": !d.noOutline
791
791
  },
792
792
  onChange: a[0] || (a[0] = (B) => i(B.target.value))
@@ -821,26 +821,26 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
821
821
  setup(c, { emit: r }) {
822
822
  const l = c, t = r, o = E({
823
823
  get: () => Math.floor(l.pagination.offset / l.pagination.limit),
824
- set: (h) => {
825
- l.pagination.offset = h * l.pagination.limit;
824
+ set: (b) => {
825
+ l.pagination.offset = b * l.pagination.limit;
826
826
  }
827
827
  }), u = E({
828
828
  get: () => l.pagination.limit,
829
- set: (h) => {
830
- l.pagination.limit = Number(h);
829
+ set: (b) => {
830
+ l.pagination.limit = Number(b);
831
831
  }
832
- }), i = Y(o.value ? o.value + 1 : 1), _ = E(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (h) => {
833
- o.value = h === "previous" ? o.value - 1 : o.value + 1;
832
+ }), i = Y(o.value ? o.value + 1 : 1), _ = E(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
833
+ o.value = b === "previous" ? o.value - 1 : o.value + 1;
834
834
  };
835
835
  return ue([
836
836
  o,
837
837
  u
838
- ], ([h]) => {
839
- i.value = h + 1, t("paginate", {
838
+ ], ([b]) => {
839
+ i.value = b + 1, t("paginate", {
840
840
  offset: o.value * u.value,
841
841
  limit: u.value
842
842
  });
843
- }), (h, d) => (n(), s("div", Rn, [
843
+ }), (b, d) => (n(), s("div", Rn, [
844
844
  A("div", Ln, [
845
845
  z(ve, {
846
846
  disabled: o.value === 0,
@@ -896,7 +896,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
896
896
  _: 1
897
897
  }, 8, ["modelValue"])
898
898
  ]),
899
- h.noSummary ? y("", !0) : (n(), s("div", qn, [
899
+ b.noSummary ? y("", !0) : (n(), s("div", qn, [
900
900
  Q(V(e(R)("Page")) + " ", 1),
901
901
  (n(), k(ke, {
902
902
  key: o.value,
@@ -972,7 +972,7 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
972
972
  i("update:modelValue", l.value);
973
973
  }
974
974
  }
975
- }), h = (d) => {
975
+ }), b = (d) => {
976
976
  o && d.preventDefault();
977
977
  };
978
978
  return (d, a) => {
@@ -992,7 +992,7 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
992
992
  checked: p.value
993
993
  }, {
994
994
  class: "checkbox__input",
995
- onClick: h
995
+ onClick: b
996
996
  }), null, 16), [
997
997
  [At, p.value]
998
998
  ]),
@@ -1042,17 +1042,17 @@ const Wn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1042
1042
  );
1043
1043
  }), (_, p) => (n(), s("div", {
1044
1044
  class: "options",
1045
- style: he(`
1045
+ style: be(`
1046
1046
  --columns: ${_.columns};
1047
1047
  grid-template-columns: repeat(var(--columns), 1fr);
1048
1048
  `)
1049
1049
  }, [
1050
- (n(!0), s(N, null, G(e(u), (h) => (n(), s("div", {
1051
- key: `option-${h}`,
1050
+ (n(!0), s(N, null, G(e(u), (b) => (n(), s("div", {
1051
+ key: `option-${b}`,
1052
1052
  class: "options__checkbox"
1053
1053
  }, [
1054
1054
  z(Wn, U({ ref_for: !0 }, {
1055
- value: h,
1055
+ value: b,
1056
1056
  readOnly: e(o),
1057
1057
  property: _.property
1058
1058
  }, {
@@ -1083,7 +1083,7 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
1083
1083
  };
1084
1084
  return (_, p) => {
1085
1085
  var d;
1086
- const h = te("clickable");
1086
+ const b = te("clickable");
1087
1087
  return n(), s("div", Zn, [
1088
1088
  Z((n(), s("a", {
1089
1089
  class: X(`
@@ -1101,7 +1101,7 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
1101
1101
  `)
1102
1102
  }, null, 2)
1103
1103
  ], 2)), [
1104
- [h, {
1104
+ [b, {
1105
1105
  blocked: e(u)
1106
1106
  }]
1107
1107
  ]),
@@ -1184,7 +1184,7 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1184
1184
  ${o.bordered && "picture__image--bordered"}
1185
1185
  ${o.expandable && "picture__image--expandable"}
1186
1186
  `),
1187
- style: he(`
1187
+ style: be(`
1188
1188
  object-fit: ${o.objectFit || "cover"};
1189
1189
  width: ${o.width || "100%"};
1190
1190
  height: ${o.height || "100%"};
@@ -1200,7 +1200,7 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1200
1200
  xmlns: "http://www.w3.org/2000/svg",
1201
1201
  viewBox: "0 0 200 200",
1202
1202
  preserveAspectRatio: "none",
1203
- style: he(`
1203
+ style: be(`
1204
1204
  object-fit: ${o.objectFit || "cover"};
1205
1205
  width: ${o.width || "100%"};
1206
1206
  height: ${o.height || "100%"};
@@ -1216,10 +1216,10 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1216
1216
  const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { class: "file" }, mo = { key: 0 }, fo = ["href"], vo = {
1217
1217
  key: 1,
1218
1218
  class: "file__actions"
1219
- }, yo = ["accept"], bo = {
1219
+ }, yo = ["accept"], ho = {
1220
1220
  key: 0,
1221
1221
  class: "file__buttons"
1222
- }, ho = {
1222
+ }, bo = {
1223
1223
  key: 1,
1224
1224
  class: "file__buttons"
1225
1225
  }, $o = /* @__PURE__ */ F({
@@ -1243,14 +1243,14 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1243
1243
  }), p = E(() => {
1244
1244
  var $, T, C;
1245
1245
  return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((C = i.value) == null ? void 0 : C.type);
1246
- }), h = ($) => new Promise((T) => {
1246
+ }), b = ($) => new Promise((T) => {
1247
1247
  const C = new FileReader();
1248
1248
  C.onload = () => T(C.result), C.readAsArrayBuffer($);
1249
1249
  }), d = () => {
1250
1250
  l.modelValue.tempId && t("update:modelValue", null), i.value = null;
1251
1251
  }, a = async ($) => {
1252
1252
  i.value = $.target.files[0];
1253
- const T = i.value, C = await h(T);
1253
+ const T = i.value, C = await b(T);
1254
1254
  if (u) {
1255
1255
  const { data: { error: x, result: ee } } = await Et(`${kt}/${u.$id}/upload?name=${T.name}`, C, {
1256
1256
  params: {
@@ -1274,7 +1274,7 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1274
1274
  t("update:modelValue", null);
1275
1275
  };
1276
1276
  return ($, T) => {
1277
- var C, x, ee, b, H, le;
1277
+ var C, x, ee, h, H, le;
1278
1278
  return n(), s("div", _o, [
1279
1279
  i.value || (C = $.modelValue) != null && C._id ? (n(), s("div", mo, [
1280
1280
  p.value ? (n(), k(He, {
@@ -1297,10 +1297,10 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1297
1297
  A("input", {
1298
1298
  ref: "file",
1299
1299
  type: "file",
1300
- accept: (H = (b = $.property) == null ? void 0 : b.accept) == null ? void 0 : H.join(","),
1300
+ accept: (H = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : H.join(","),
1301
1301
  onChange: a
1302
1302
  }, null, 40, yo),
1303
- i.value ? (n(), s("div", bo, [
1303
+ i.value ? (n(), s("div", ho, [
1304
1304
  z(re, {
1305
1305
  small: "",
1306
1306
  onClick: ze(d, ["prevent"])
@@ -1310,7 +1310,7 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1310
1310
  ]),
1311
1311
  _: 1
1312
1312
  })
1313
- ])) : (le = $.modelValue) != null && le._id ? (n(), s("div", ho, [
1313
+ ])) : (le = $.modelValue) != null && le._id ? (n(), s("div", bo, [
1314
1314
  z(re, {
1315
1315
  small: "",
1316
1316
  onClick: ze(B, ["prevent"])
@@ -1367,7 +1367,7 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1367
1367
  },
1368
1368
  emits: ["update:modelValue", "change"],
1369
1369
  setup(c, { emit: r }) {
1370
- const l = Ae(), t = c, o = r, u = t.property, i = me(u), _ = Ie(), p = E(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), h = () => {
1370
+ const l = Ae(), t = c, o = r, u = t.property, i = me(u), _ = Ie(), p = E(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
1371
1371
  if (p.value)
1372
1372
  return;
1373
1373
  const B = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? B(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
@@ -1393,7 +1393,7 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1393
1393
  });
1394
1394
  return;
1395
1395
  }
1396
- return p.value ? d() : h();
1396
+ return p.value ? d() : b();
1397
1397
  };
1398
1398
  return (B, f) => {
1399
1399
  const $ = te("clickable");
@@ -1439,7 +1439,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1439
1439
  },
1440
1440
  emits: ["update:modelValue", "change", "update:panel"],
1441
1441
  setup(c, { emit: r }) {
1442
- const l = c, t = me(l.property), o = l.panel !== void 0 ? E(() => l.panel) : Y(!1), u = r, i = ie(me(l.property).$ref), _ = Me(), p = _ ? Ie() : null, h = t.indexes;
1442
+ const l = c, t = me(l.property), o = l.panel !== void 0 ? E(() => l.panel) : Y(!1), u = r, i = ie(me(l.property).$ref), _ = Me(), p = _ ? Ie() : null, b = t.indexes;
1443
1443
  ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1444
1444
  const d = Y(l.modelValue), a = Y({
1445
1445
  data: [],
@@ -1453,7 +1453,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1453
1453
  return t.constraints ? zt(t.constraints, M) : {};
1454
1454
  }, ee = () => {
1455
1455
  B.value.length < f.value.recordsTotal && ($.value += 1, H());
1456
- }, b = async () => C.value.length === 0 ? i.$actions.custom("getAll", {
1456
+ }, h = async () => C.value.length === 0 ? i.$actions.custom("getAll", {
1457
1457
  limit: Ee,
1458
1458
  offset: $.value * Ee,
1459
1459
  filters: x()
@@ -1462,7 +1462,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1462
1462
  offset: $.value * Ee,
1463
1463
  filters: {
1464
1464
  $text: {
1465
- $search: C.value,
1465
+ $search: `"${C.value}"`,
1466
1466
  $caseSensitive: !1
1467
1467
  },
1468
1468
  ...x()
@@ -1470,7 +1470,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1470
1470
  }), H = async () => {
1471
1471
  if (i.loading.getAll)
1472
1472
  return;
1473
- const { error: M, result: D } = await b();
1473
+ const { error: M, result: D } = await h();
1474
1474
  if (M) {
1475
1475
  ie("meta").$actions.spawnToast({
1476
1476
  text: "Request failed",
@@ -1550,7 +1550,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1550
1550
  default: v(() => [
1551
1551
  (n(!0), s(N, null, G(B.value, (L) => (n(), k(Ge, U({ ref_for: !0 }, {
1552
1552
  item: L,
1553
- indexes: e(h),
1553
+ indexes: e(b),
1554
1554
  property: M.property
1555
1555
  }, {
1556
1556
  key: `matching-${L._id}`,
@@ -1577,7 +1577,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1577
1577
  "items" in M.property ? (n(), s("div", Ro, [
1578
1578
  (n(!0), s(N, null, G(M.modelValue, (m) => (n(), k(Ge, U({ ref_for: !0 }, {
1579
1579
  item: m,
1580
- indexes: e(h),
1580
+ indexes: e(b),
1581
1581
  property: M.property,
1582
1582
  readOnly: M.readOnly,
1583
1583
  modelValue: M.modelValue
@@ -1587,7 +1587,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1587
1587
  }), null, 16))), 128))
1588
1588
  ])) : (ae = M.modelValue) != null && ae._id ? (n(), k(Ge, U({ key: 1 }, {
1589
1589
  item: M.modelValue,
1590
- indexes: e(h),
1590
+ indexes: e(b),
1591
1591
  property: e(t),
1592
1592
  readOnly: M.readOnly,
1593
1593
  modelValue: M.modelValue
@@ -1619,7 +1619,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1619
1619
  };
1620
1620
  }
1621
1621
  });
1622
- const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r) => {
1622
+ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r) => {
1623
1623
  const l = "items" in c ? c.items : c, t = {
1624
1624
  options: Yn,
1625
1625
  select: Ne,
@@ -1703,7 +1703,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1703
1703
  const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ? ie(e(i)) : null;
1704
1704
  !i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1705
1705
  collection prop, some features may not work as intended`);
1706
- const h = Y(!1), d = E(() => {
1706
+ const b = Y(!1), d = E(() => {
1707
1707
  const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
1708
1708
  if (!m)
1709
1709
  return;
@@ -1726,7 +1726,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1726
1726
  return t[m] && ye(m, t[m]), L;
1727
1727
  }, f = E(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = B("formComponents") || {}, T = B("propertyComponents") || {}, C = B("omitFormHeader"), x = B("omitInputLabels"), ee = B("innerInputLabel");
1728
1728
  i && ye(Fe, i), ye("searchOnly", t.searchOnly);
1729
- const b = (m) => d.value ? Object.entries(d.value).filter(([L, K]) => !K.noForm && m([
1729
+ const h = (m) => d.value ? Object.entries(d.value).filter(([L, K]) => !K.noForm && m([
1730
1730
  L,
1731
1731
  K
1732
1732
  ])) : null, H = (m, L) => {
@@ -1735,7 +1735,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1735
1735
  return !0;
1736
1736
  const K = t.property && "properties" in t.property ? t.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
1737
1737
  return !K || K.includes(m);
1738
- }, le = b(([m, L]) => H(m, L)), S = Ue(), g = {}, j = (m, L) => {
1738
+ }, le = h(([m, L]) => H(m, L)), S = Ue(), g = {}, j = (m, L) => {
1739
1739
  var q, fe, we, Se;
1740
1740
  const K = [], w = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Se = (we = a.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1741
1741
  if (!L)
@@ -1772,14 +1772,14 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1772
1772
  var K;
1773
1773
  return (K = f.value) != null && K[m] && (typeof f.value[m].index != "number" || f.value[m].index === L) ? f.value[m].errors : null;
1774
1774
  }, se = (m) => {
1775
- if (!(_ || m.readOnly) && !t.parentPropertyName && !t.parentCollection && !h.value)
1776
- return h.value = !0, !0;
1775
+ if (!(_ || m.readOnly) && !t.parentPropertyName && !t.parentCollection && !b.value)
1776
+ return b.value = !0, !0;
1777
1777
  };
1778
1778
  return (m, L) => {
1779
1779
  const K = te("clickable"), w = te("focus");
1780
1780
  return n(), s("form", {
1781
1781
  class: "form",
1782
- style: he(`row-gap: ${e(C) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1782
+ style: be(`row-gap: ${e(C) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1783
1783
  }, [
1784
1784
  m.$slots.header && !e(C) ? (n(), s("header", Fo, [
1785
1785
  O(m.$slots, "header", {}, void 0, !0)
@@ -1790,7 +1790,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1790
1790
  var fe, we, Se, Te, xe, et, tt, nt, ot, at, lt, st, it;
1791
1791
  return n(), s("div", {
1792
1792
  key: `field-${I}`,
1793
- style: he(j(I, q)),
1793
+ style: be(j(I, q)),
1794
1794
  class: "form__field"
1795
1795
  }, [
1796
1796
  (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(x) && !e(ee) ? (n(), s("label", Eo, [
@@ -1814,7 +1814,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1814
1814
  property: q,
1815
1815
  propertyName: I,
1816
1816
  modelValue: m.modelValue
1817
- }), void 0, !0) : (Se = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(be(e(T)[m.layout.fields[I].component.name]), U({
1817
+ }), void 0, !0) : (Se = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(he(e(T)[m.layout.fields[I].component.name]), U({
1818
1818
  key: 2,
1819
1819
  modelValue: m.modelValue[I],
1820
1820
  "onUpdate:modelValue": (P) => m.modelValue[I] = P,
@@ -1892,7 +1892,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1892
1892
  class: "form__array-item"
1893
1893
  }, [
1894
1894
  A("div", Jo, [
1895
- (n(), k(be(e(vt)(q, e($))), U({
1895
+ (n(), k(he(e(vt)(q, e($))), U({
1896
1896
  modelValue: m.modelValue[I][je],
1897
1897
  "onUpdate:modelValue": (Re) => m.modelValue[I][je] = Re,
1898
1898
  ref_for: !0
@@ -1921,7 +1921,7 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-eb6f23dc"]]), vt = (c, r
1921
1921
  ]);
1922
1922
  }), 128))
1923
1923
  ])
1924
- ])) : m.modelValue ? Z((n(), k(be(e(vt)(q, e($))), U({
1924
+ ])) : m.modelValue ? Z((n(), k(he(e(vt)(q, e($))), U({
1925
1925
  key: 6,
1926
1926
  modelValue: m.modelValue[I],
1927
1927
  "onUpdate:modelValue": (P) => m.modelValue[I] = P,
@@ -1978,14 +1978,14 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
1978
1978
  "close-hint": "",
1979
1979
  "fixed-right": "",
1980
1980
  title: _.t("filter_by", { capitalize: !0 }),
1981
- onClose: p[2] || (p[2] = (h) => l("update:modelValue", !1)),
1982
- onOverlayClick: p[3] || (p[3] = (h) => l("update:modelValue", !1))
1981
+ onClose: p[2] || (p[2] = (b) => l("update:modelValue", !1)),
1982
+ onOverlayClick: p[3] || (p[3] = (b) => l("update:modelValue", !1))
1983
1983
  }, {
1984
1984
  footer: v(() => [
1985
1985
  e(t).filtersCount > 0 ? (n(), k(re, {
1986
1986
  key: 0,
1987
1987
  variant: "transparent",
1988
- onClick: p[1] || (p[1] = (h) => {
1988
+ onClick: p[1] || (p[1] = (b) => {
1989
1989
  e(t).$actions.clearFilters(), i(), l("update:modelValue", !1);
1990
1990
  })
1991
1991
  }, {
@@ -2015,7 +2015,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2015
2015
  default: v(() => [
2016
2016
  z(De, U({
2017
2017
  modelValue: e(t).filters,
2018
- "onUpdate:modelValue": p[0] || (p[0] = (h) => e(t).filters = h)
2018
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
2019
2019
  }, {
2020
2020
  searchOnly: !0,
2021
2021
  form: e(t).availableFilters,
@@ -2042,7 +2042,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2042
2042
  Xe(() => {
2043
2043
  l.modelValue && i.$actions.setItem(l.modelValue);
2044
2044
  });
2045
- const p = E(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), h = async () => {
2045
+ const p = E(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
2046
2046
  const { error: f, result: $ } = await i.$actions.deepInsert();
2047
2047
  f || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), i.$actions.clearItem());
2048
2048
  }, { t: d } = Lt(), a = () => {
@@ -2137,7 +2137,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2137
2137
  large: "",
2138
2138
  disabled: !e(i).isInsertReady || e(i).loading.get,
2139
2139
  loading: e(i).loading.insert,
2140
- onClick: h
2140
+ onClick: b
2141
2141
  }, {
2142
2142
  default: v(() => [
2143
2143
  Q(V(e(d)("action.insert", { capitalize: !0 })), 1)
@@ -2191,7 +2191,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2191
2191
  }, ya = {
2192
2192
  key: 1,
2193
2193
  class: "table__cell-container"
2194
- }, ba = { class: "table__cell-grid" }, ha = { key: 0 }, $a = { key: 1 }, ga = { key: 0 }, ka = ["href"], Va = { key: 3 }, Ca = { key: 1 }, Oa = { key: 2 }, Ia = { key: 0 }, Aa = { key: 1 }, Ba = { key: 2 }, wa = {
2194
+ }, ha = { class: "table__cell-grid" }, ba = { key: 0 }, $a = { key: 1 }, ga = { key: 0 }, ka = ["href"], Va = { key: 3 }, Ca = { key: 1 }, Oa = { key: 2 }, Ia = { key: 0 }, Aa = { key: 1 }, Ba = { key: 2 }, wa = {
2195
2195
  key: 1,
2196
2196
  class: "no-print"
2197
2197
  }, Sa = { class: "table__cell-actions" }, Ta = {
@@ -2212,11 +2212,11 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2212
2212
  const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? ie(typeof u == "string" ? u : u.value) : null, _ = E({
2213
2213
  get: () => i == null ? void 0 : i.selected,
2214
2214
  set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
2215
- }), p = E(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), h = (f, $) => f != null && f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
2215
+ }), p = E(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f != null && f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
2216
2216
  var $;
2217
2217
  return !o.value.xl || !(($ = l.layout) != null && $.actions) || !l.actions ? [] : l.actions.filter((T) => {
2218
2218
  const C = l.layout.actions[T.action];
2219
- return h(C, f);
2219
+ return b(C, f);
2220
2220
  });
2221
2221
  }, a = (f) => {
2222
2222
  var $;
@@ -2227,7 +2227,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2227
2227
  if (!gt(T.roles, x.currentUser.roles))
2228
2228
  return !1;
2229
2229
  }
2230
- return !h(C, f);
2230
+ return !b(C, f);
2231
2231
  }) : [];
2232
2232
  }, B = (f, $) => {
2233
2233
  var x, ee;
@@ -2249,30 +2249,30 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2249
2249
  A("input", {
2250
2250
  type: "checkbox",
2251
2251
  checked: e(i).selected.length > 0 && e(i).selected.length === e(i).itemsCount,
2252
- onChange: $[0] || ($[0] = (b) => e(i).$actions.selectAllItems(b.target.checked))
2252
+ onChange: $[0] || ($[0] = (h) => e(i).$actions.selectAllItems(h.target.checked))
2253
2253
  }, null, 40, ra)
2254
2254
  ])) : y("", !0),
2255
- (n(!0), s(N, null, G(Object.entries(f.columns), ([b, H], le) => (n(), s("th", {
2255
+ (n(!0), s(N, null, G(Object.entries(f.columns), ([h, H], le) => (n(), s("th", {
2256
2256
  key: `header-${le}`,
2257
2257
  class: "table__header"
2258
- }, V(H.description || e(R)(b)), 1))), 128)),
2258
+ }, V(H.description || e(R)(h)), 1))), 128)),
2259
2259
  (C = f.actions) != null && C.length ? (n(), s("th", ua)) : y("", !0)
2260
2260
  ])
2261
2261
  ])),
2262
2262
  f.$slots.tbody ? (n(), s("tbody", ca, [
2263
2263
  O(f.$slots, "tbody", {}, void 0, !0)
2264
2264
  ])) : (n(), s("tbody", da, [
2265
- (n(!0), s(N, null, G(f.rows, (b) => {
2265
+ (n(!0), s(N, null, G(f.rows, (h) => {
2266
2266
  var H, le;
2267
2267
  return n(), s("tr", {
2268
- key: b._id,
2269
- onClick: (S) => t("itemClick", b)
2268
+ key: h._id,
2269
+ onClick: (S) => t("itemClick", h)
2270
2270
  }, [
2271
2271
  e(i) && f.checkbox && e(o).md ? (n(), s("td", _a, [
2272
2272
  Z(A("input", {
2273
2273
  "onUpdate:modelValue": $[1] || ($[1] = (S) => _.value = S),
2274
2274
  type: "checkbox",
2275
- value: b._id
2275
+ value: h._id
2276
2276
  }, null, 8, ma), [
2277
2277
  [Bt, _.value]
2278
2278
  ])
@@ -2280,7 +2280,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2280
2280
  (n(!0), s(N, null, G(Object.entries(f.columns), ([S, g], j) => {
2281
2281
  var ne, oe, M;
2282
2282
  return n(), s("td", {
2283
- key: `column-${b._id}-${j}`
2283
+ key: `column-${h._id}-${j}`
2284
2284
  }, [
2285
2285
  A("div", fa, V(g.description || e(R)(S)), 1),
2286
2286
  `row-${S}` in f.$slots ? (n(), s("div", va, [
@@ -2288,12 +2288,12 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2288
2288
  store: e(i),
2289
2289
  column: S,
2290
2290
  property: g,
2291
- row: b
2291
+ row: h
2292
2292
  }), void 0, !0)
2293
2293
  ])) : (n(), s("div", ya, [
2294
- A("div", ba, [
2295
- "type" in g && g.type === "boolean" ? (n(), s("div", ha, [
2296
- b[S] ? (n(), k(J, {
2294
+ A("div", ha, [
2295
+ "type" in g && g.type === "boolean" ? (n(), s("div", ba, [
2296
+ h[S] ? (n(), k(J, {
2297
2297
  key: 0,
2298
2298
  icon: "check",
2299
2299
  "icon-classes": "aeria-blueish"
@@ -2313,41 +2313,41 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2313
2313
  _: 1
2314
2314
  }))
2315
2315
  ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", $a, [
2316
- b[S] ? (n(), s("div", ga, [
2317
- "items" in g && b[S][0] && /^image/.test(b[S][0].type) ? (n(), k(He, {
2316
+ h[S] ? (n(), s("div", ga, [
2317
+ "items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(He, {
2318
2318
  key: 0,
2319
- modelValue: b[S][0].link,
2320
- "onUpdate:modelValue": (D) => b[S][0].link = D,
2319
+ modelValue: h[S][0].link,
2320
+ "onUpdate:modelValue": (D) => h[S][0].link = D,
2321
2321
  expandable: "",
2322
- meta: b[S][0],
2322
+ meta: h[S][0],
2323
2323
  alt: "Row image",
2324
2324
  class: "table__picture"
2325
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(b[S].type) ? (n(), k(He, {
2325
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(He, {
2326
2326
  key: 1,
2327
- modelValue: b[S].link,
2328
- "onUpdate:modelValue": (D) => b[S].link = D,
2327
+ modelValue: h[S].link,
2328
+ "onUpdate:modelValue": (D) => h[S].link = D,
2329
2329
  expandable: "",
2330
- meta: b[S],
2330
+ meta: h[S],
2331
2331
  alt: "Row image",
2332
2332
  class: "table__picture"
2333
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : b[S].link ? (n(), s("a", {
2333
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[S].link ? (n(), s("a", {
2334
2334
  key: 2,
2335
- href: b[S].link,
2335
+ href: h[S].link,
2336
2336
  style: { "font-size": "10pt" }
2337
- }, V(b[S].filename), 9, ka)) : (n(), s("div", Va, " - "))
2337
+ }, V(h[S].filename), 9, ka)) : (n(), s("div", Va, " - "))
2338
2338
  ])) : (n(), s("div", Ca, " - "))
2339
2339
  ])) : (n(), s("div", Oa, [
2340
2340
  e(i) ? (n(), s("span", Ia, V(e(i).$actions.formatValue({
2341
- value: b[S],
2341
+ value: h[S],
2342
2342
  key: S,
2343
2343
  property: g
2344
- })), 1)) : (n(), s("span", Aa, V(Array.isArray(b[S]) ? b[S].filter((D) => !!D).join(", ") : [void 0, null].includes(b[S]) ? "-" : b[S]), 1)),
2344
+ })), 1)) : (n(), s("span", Aa, V(Array.isArray(h[S]) ? h[S].filter((D) => !!D).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
2345
2345
  ((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div", Ba, [
2346
2346
  (n(!0), s(N, null, G(e(me)(g).indexes.slice(1, 2), (D, se) => (n(), s("div", {
2347
2347
  key: `subvalue-${se}`,
2348
2348
  class: "table__cell-subvalue"
2349
2349
  }, V(e(i).$actions.formatValue({
2350
- value: b[S],
2350
+ value: h[S],
2351
2351
  key: S,
2352
2352
  property: g,
2353
2353
  index: D
@@ -2360,25 +2360,25 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2360
2360
  }), 128)),
2361
2361
  (H = f.actions) != null && H.length && e(o).md ? (n(), s("td", wa, [
2362
2362
  A("div", Sa, [
2363
- (n(!0), s(N, null, G(d(b), (S) => (n(), k(re, {
2363
+ (n(!0), s(N, null, G(d(h), (S) => (n(), k(re, {
2364
2364
  key: `action-${S.action}`,
2365
2365
  small: "",
2366
2366
  variant: "alt",
2367
2367
  icon: S.icon,
2368
- style: he(B(b, S)),
2369
- onClick: (g) => S.click(b)
2368
+ style: be(B(h, S)),
2369
+ onClick: (g) => S.click(h)
2370
2370
  }, {
2371
2371
  default: v(() => [
2372
2372
  Q(V(e(R)(S.label)), 1)
2373
2373
  ]),
2374
2374
  _: 2
2375
2375
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2376
- a(b).length > 0 ? (n(), k(Oe, U({
2376
+ a(h).length > 0 ? (n(), k(Oe, U({
2377
2377
  key: 0,
2378
2378
  ref_for: !0
2379
2379
  }, {
2380
- subject: b,
2381
- actions: a(b)
2380
+ subject: h,
2381
+ actions: a(h)
2382
2382
  }), {
2383
2383
  default: v(({
2384
2384
  visible: S
@@ -2397,12 +2397,12 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2397
2397
  ])) : (le = f.actions) != null && le.length ? (n(), s("td", Ta, [
2398
2398
  A("div", {
2399
2399
  class: "table__mobile-actions-grid",
2400
- style: he(`grid-template-columns: repeat(${d(b).length + (a(b).length ? 1 : 0)}, 1fr);`)
2400
+ style: be(`grid-template-columns: repeat(${d(h).length + (a(h).length ? 1 : 0)}, 1fr);`)
2401
2401
  }, [
2402
- (n(!0), s(N, null, G(d(b), (S) => (n(), k(ve, {
2402
+ (n(!0), s(N, null, G(d(h), (S) => (n(), k(ve, {
2403
2403
  key: `action-${S.action}`,
2404
2404
  class: "table__mobile-actions-button",
2405
- onClick: (g) => S.click(b)
2405
+ onClick: (g) => S.click(h)
2406
2406
  }, {
2407
2407
  default: v(() => [
2408
2408
  z(J, {
@@ -2416,12 +2416,12 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2416
2416
  ]),
2417
2417
  _: 2
2418
2418
  }, 1032, ["onClick"]))), 128)),
2419
- a(b).length > 0 ? (n(), k(Oe, U({
2419
+ a(h).length > 0 ? (n(), k(Oe, U({
2420
2420
  key: 0,
2421
2421
  ref_for: !0
2422
2422
  }, {
2423
- subject: b,
2424
- actions: a(b)
2423
+ subject: h,
2424
+ actions: a(h)
2425
2425
  }), {
2426
2426
  default: v(() => [
2427
2427
  z(J, {
@@ -2434,7 +2434,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2434
2434
  ], 4)
2435
2435
  ])) : y("", !0),
2436
2436
  A("div", {
2437
- id: `dropdown-${b._id}`
2437
+ id: `dropdown-${h._id}`
2438
2438
  }, null, 8, ja)
2439
2439
  ], 8, pa);
2440
2440
  }), 128))
@@ -2538,11 +2538,11 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2538
2538
  actions: u.individualActions
2539
2539
  }), {
2540
2540
  default: v(({
2541
- visible: h
2541
+ visible: b
2542
2542
  }) => [
2543
2543
  Z(z(J, {
2544
2544
  reactive: "",
2545
- active: h,
2545
+ active: b,
2546
2546
  icon: "dots-three-vertical"
2547
2547
  }, null, 8, ["active"]), [
2548
2548
  [_]
@@ -2552,12 +2552,12 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2552
2552
  }, 1040)) : y("", !0)
2553
2553
  ]),
2554
2554
  default: v(() => {
2555
- var h;
2555
+ var b;
2556
2556
  return [
2557
2557
  z(He, {
2558
2558
  alt: "Item picture",
2559
2559
  expandable: "",
2560
- url: (h = o(p[e(l).picture])) == null ? void 0 : h.link,
2560
+ url: (b = o(p[e(l).picture])) == null ? void 0 : b.link,
2561
2561
  meta: o(p[e(l).picture])
2562
2562
  }, null, 8, ["url", "meta"])
2563
2563
  ];
@@ -2567,12 +2567,12 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2567
2567
  e(l).badge && Array.isArray(p[e(l).badge]) ? {
2568
2568
  name: "badge",
2569
2569
  fn: v(() => [
2570
- (n(!0), s(N, null, G(p[e(l).badge], (h) => (n(), k($e, {
2571
- key: `${p._id}-${h}`,
2570
+ (n(!0), s(N, null, G(p[e(l).badge], (b) => (n(), k($e, {
2571
+ key: `${p._id}-${b}`,
2572
2572
  large: ""
2573
2573
  }, {
2574
2574
  default: v(() => [
2575
- Q(V(e(l).translateBadge ? e(R)(h) : h), 1)
2575
+ Q(V(e(l).translateBadge ? e(R)(b) : b), 1)
2576
2576
  ]),
2577
2577
  _: 2
2578
2578
  }, 1024))), 128))
@@ -2603,7 +2603,7 @@ const yt = /* @__PURE__ */ W(Qa, [["__scopeId", "data-v-ccbced12"]]), Ga = (c) =
2603
2603
  list: yt
2604
2604
  })[c], pe = Y(!1);
2605
2605
  Y(!1);
2606
- const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8263c"), c = c(), Je(), c), Ka = {
2606
+ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8263c"), c = c(), Je(), c), Ka = {
2607
2607
  key: 2,
2608
2608
  class: "crud__controls"
2609
2609
  }, Xa = {
@@ -2612,7 +2612,7 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2612
2612
  }, Ya = { class: "crud__actions" }, Ja = { class: "crud__context-badge" }, Za = /* @__PURE__ */ Wa(() => /* @__PURE__ */ A("div", null, "Filtros", -1)), Pa = { key: 0 }, Na = {
2613
2613
  key: 3,
2614
2614
  class: "crud__pagination"
2615
- }, ht = 30, xa = /* @__PURE__ */ F({
2615
+ }, bt = 30, xa = /* @__PURE__ */ F({
2616
2616
  __name: "aeria-crud",
2617
2617
  props: {
2618
2618
  collection: {},
@@ -2630,18 +2630,18 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2630
2630
  setup(c, { emit: r }) {
2631
2631
  const l = c, t = r, o = Ae(), u = Vt({
2632
2632
  delay: 600
2633
- }), i = ie("meta"), _ = Ue(), { reachedEnd: p, detach: h } = Pe(null, {
2633
+ }), i = ie("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2634
2634
  antecipate: 600
2635
2635
  }), d = !_.value.md || l.scrollPagination;
2636
2636
  d && ue(p, (g) => {
2637
- g && a.pagination.recordsTotal > a.items.length && $.value < ht && ($.value += 1, C());
2637
+ g && a.pagination.recordsTotal > a.items.length && $.value < bt && ($.value += 1, C());
2638
2638
  });
2639
2639
  const a = ie(l.collection);
2640
2640
  oa(a, {
2641
2641
  persistInQuery: !l.noQueryPersistence
2642
2642
  });
2643
2643
  const B = Ze(), f = l.action ? e(l.action) : Gt(a, o, B);
2644
- Le.value = f[0], bt.value = f[1];
2644
+ Le.value = f[0], ht.value = f[1];
2645
2645
  const $ = Y(0), T = Y(!1), C = async (g) => {
2646
2646
  a.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
2647
2647
  const j = {
@@ -2679,7 +2679,7 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2679
2679
  immediate: !0,
2680
2680
  flush: "post"
2681
2681
  });
2682
- const [b] = u((g) => (o.push(qe(o.currentRoute.value, {
2682
+ const [h] = u((g) => (o.push(qe(o.currentRoute.value, {
2683
2683
  query: {
2684
2684
  search: g || void 0
2685
2685
  }
@@ -2692,14 +2692,14 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2692
2692
  offset: 0
2693
2693
  })) : (a.filters = Ce(a.freshFilters), $.value = 0, C())));
2694
2694
  ue(() => a.textQuery, (g) => {
2695
- b(g);
2695
+ h(g);
2696
2696
  });
2697
2697
  const H = (g) => {
2698
2698
  g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
2699
2699
  };
2700
2700
  wt(() => {
2701
- a.$actions.clearFilters(), a.textQuery = "", h();
2702
- }), ue(() => bt.value, async (g) => {
2701
+ a.$actions.clearFilters(), a.textQuery = "", b();
2702
+ }), ue(() => ht.value, async (g) => {
2703
2703
  var oe;
2704
2704
  const j = Ce(g);
2705
2705
  let ne;
@@ -2917,7 +2917,7 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2917
2917
  ])) : y("", !0),
2918
2918
  Z((n(), s("div", null, [
2919
2919
  e(a).itemsCount === 0 && !e(a).loading.getAll && T.value && (e(ee) || g.$slots.empty) ? (n(), s("div", Pa, [
2920
- e(ee) ? (n(), k(be(e(ee)), de(U({ key: 0 }, {
2920
+ e(ee) ? (n(), k(he(e(ee)), de(U({ key: 0 }, {
2921
2921
  collection: e(a).$id
2922
2922
  })), {
2923
2923
  default: v(() => [
@@ -2941,7 +2941,7 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2941
2941
  })), void 0, !0)
2942
2942
  ])) : g.$slots.component ? O(g.$slots, "component", de(U({ key: 1 }, {
2943
2943
  store: e(a)
2944
- })), void 0, !0) : (n(), k(be(e(Ga)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), U({ key: 2 }, {
2944
+ })), void 0, !0) : (n(), k(he(e(Ga)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), U({ key: 2 }, {
2945
2945
  individualActions: le.value,
2946
2946
  layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(a).layout.options,
2947
2947
  componentProps: g.componentProps
@@ -2963,7 +2963,7 @@ const Ve = Y(!1), Le = Y((...c) => null), bt = Y(), Wa = (c) => (Ye("data-v-ece8
2963
2963
  } : void 0
2964
2964
  ]), 1040, ["component-name"]))
2965
2965
  ])), [
2966
- [oe, (!e(d) || $.value === ht) && e(a).loading.getAll]
2966
+ [oe, (!e(d) || $.value === bt) && e(a).loading.getAll]
2967
2967
  ]),
2968
2968
  !e(a).loading.getAll && e(a).itemsCount > 0 ? (n(), s("div", Na, [
2969
2969
  z(Fn, {
@@ -2994,7 +2994,7 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
2994
2994
  footer: v(() => [
2995
2995
  A("div", {
2996
2996
  class: "prompt__options",
2997
- style: he(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
2997
+ style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
2998
2998
  }, [
2999
2999
  (n(!0), s(N, null, G(Object.entries(t.options), ([u, i], _) => (n(), k(ve, {
3000
3000
  key: `option-${_}`,
@@ -3080,7 +3080,7 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3080
3080
  default: v(() => [
3081
3081
  z(u, null, {
3082
3082
  default: v(({ Component: i }) => [
3083
- (n(), k(be(i), null, ce({ _: 2 }, [
3083
+ (n(), k(he(i), null, ce({ _: 2 }, [
3084
3084
  G(Object.keys(t.$slots), (_) => ({
3085
3085
  name: _,
3086
3086
  fn: v(() => [
@@ -3110,7 +3110,7 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3110
3110
  style: { "white-space": "pre-wrap" },
3111
3111
  innerHTML: e(r).modal.body
3112
3112
  }, null, 8, il)) : y("", !0),
3113
- e(r).modal.component ? (n(), k(be(e(r).modal.component), { key: 1 })) : y("", !0)
3113
+ e(r).modal.component ? (n(), k(he(e(r).modal.component), { key: 1 })) : y("", !0)
3114
3114
  ]),
3115
3115
  _: 1
3116
3116
  }, 16, ["modelValue"]),
@@ -3154,10 +3154,10 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3154
3154
  }, vl = {
3155
3155
  key: 0,
3156
3156
  class: "tabs__tab tabs__tab--info"
3157
- }, yl = ["onClick"], bl = {
3157
+ }, yl = ["onClick"], hl = {
3158
3158
  key: 1,
3159
3159
  class: "tabs__context-menu"
3160
- }, hl = ["onClick"], $l = /* @__PURE__ */ F({
3160
+ }, bl = ["onClick"], $l = /* @__PURE__ */ F({
3161
3161
  __name: "aeria-tabs",
3162
3162
  props: {
3163
3163
  query: {},
@@ -3188,7 +3188,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3188
3188
  }));
3189
3189
  };
3190
3190
  return (_, p) => {
3191
- const h = te("clickable");
3191
+ const b = te("clickable");
3192
3192
  return n(), s("div", ml, [
3193
3193
  e(o).md && !_.dropdown ? (n(), s("div", fl, [
3194
3194
  _.$slots.default ? (n(), s("div", vl, [
@@ -3204,7 +3204,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3204
3204
  }, [
3205
3205
  O(_.$slots, d, {}, void 0, !0)
3206
3206
  ], 10, yl))), 128))
3207
- ])) : (n(), s("div", bl, [
3207
+ ])) : (n(), s("div", hl, [
3208
3208
  z(Oe, null, ce({
3209
3209
  default: v(({ visible: d }) => [
3210
3210
  Z((n(), k(J, {
@@ -3219,7 +3219,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3219
3219
  ]),
3220
3220
  _: 2
3221
3221
  }, 1032, ["active"])), [
3222
- [h]
3222
+ [b]
3223
3223
  ])
3224
3224
  ]),
3225
3225
  _: 2
@@ -3231,7 +3231,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3231
3231
  onClick: (a) => i(d)
3232
3232
  }, [
3233
3233
  O(_.$slots, d, {}, void 0, !0)
3234
- ], 8, hl)
3234
+ ], 8, bl)
3235
3235
  ])
3236
3236
  }))
3237
3237
  ]), 1024)
@@ -3258,18 +3258,18 @@ const gl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-a20914ab"]]), kl = F({
3258
3258
  },
3259
3259
  setup(c) {
3260
3260
  const r = c, t = Ae().currentRoute, o = Ze(), u = E(() => r.collection ? Qe(r.collection, o) : typeof t.value.meta.collection == "string" ? Qe(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Qe(t.value.params.collection, o) : null), i = async (_, p) => {
3261
- const { error: h, result: d } = await p.$functions[_.badgeFunction]({
3261
+ const { error: b, result: d } = await p.$functions[_.badgeFunction]({
3262
3262
  filters: _.filters
3263
3263
  });
3264
- return h ? 0 : d;
3264
+ return b ? 0 : d;
3265
3265
  };
3266
3266
  return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(gl, {
3267
3267
  key: 0,
3268
3268
  dropdown: "",
3269
3269
  query: "section"
3270
3270
  }, ce({ _: 2 }, [
3271
- G(Object.entries(u.value.description.filtersPresets), ([h, d]) => ({
3272
- name: h,
3271
+ G(Object.entries(u.value.description.filtersPresets), ([b, d]) => ({
3272
+ name: b,
3273
3273
  fn: v(() => [
3274
3274
  A("div", {
3275
3275
  class: "topbar__preset",
@@ -3280,10 +3280,10 @@ const gl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-a20914ab"]]), kl = F({
3280
3280
  icon: d.icon
3281
3281
  }, {
3282
3282
  default: v(() => [
3283
- Q(V(d.label || e(R)(h, { plural: !0 })), 1)
3283
+ Q(V(d.label || e(R)(b, { plural: !0 })), 1)
3284
3284
  ]),
3285
3285
  _: 2
3286
- }, 1032, ["icon"])) : (n(), s("div", Cl, V(d.label || e(R)(h, { plural: !0 })), 1)),
3286
+ }, 1032, ["icon"])) : (n(), s("div", Cl, V(d.label || e(R)(b, { plural: !0 })), 1)),
3287
3287
  d.badgeFunction ? (n(), k($e, { key: 2 }, {
3288
3288
  default: v(() => [
3289
3289
  z(e(kl), {
@@ -3356,7 +3356,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3356
3356
  {
3357
3357
  path: "signin",
3358
3358
  name: "/user/signin",
3359
- component: () => import("./signin-8fd6cc94.js"),
3359
+ component: () => import("./signin-684a2b37.js"),
3360
3360
  meta: {
3361
3361
  title: "Autenticação"
3362
3362
  }
@@ -3364,7 +3364,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3364
3364
  {
3365
3365
  path: "signup",
3366
3366
  name: "/user/signup",
3367
- component: () => import("./signup-a793fa3c.js"),
3367
+ component: () => import("./signup-509c4eeb.js"),
3368
3368
  meta: {
3369
3369
  title: "Registro"
3370
3370
  }
@@ -3372,7 +3372,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3372
3372
  {
3373
3373
  path: "activation",
3374
3374
  name: "/user/activation",
3375
- component: () => import("./activation-51e66af1.js"),
3375
+ component: () => import("./activation-f7b703c9.js"),
3376
3376
  meta: {
3377
3377
  title: "Ativação"
3378
3378
  }
@@ -3394,7 +3394,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3394
3394
  name: "/dashboard/:collection",
3395
3395
  props: !0,
3396
3396
  components: {
3397
- default: () => import("./index-69eae275.js"),
3397
+ default: () => import("./index-8de82e26.js"),
3398
3398
  topbar: () => Promise.resolve().then(() => Al)
3399
3399
  },
3400
3400
  meta: {
@@ -3406,7 +3406,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3406
3406
  name: "/dashboard/:collection/:id",
3407
3407
  props: !0,
3408
3408
  components: {
3409
- default: () => import("./_id_-da396fb7.js")
3409
+ default: () => import("./_id_-3933cd2c.js")
3410
3410
  },
3411
3411
  meta: {
3412
3412
  title: "%viewTitle%"
@@ -3424,7 +3424,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3424
3424
  children: [
3425
3425
  {
3426
3426
  path: "profile",
3427
- component: () => import("./index-176919c2.js"),
3427
+ component: () => import("./index-834aa033.js"),
3428
3428
  meta: {
3429
3429
  title: "Meu perfil",
3430
3430
  icon: "user-square"
@@ -3433,7 +3433,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3433
3433
  {
3434
3434
  path: "changepass",
3435
3435
  name: "/dashboard/user/changepass",
3436
- component: () => import("./index-02a0dba2.js"),
3436
+ component: () => import("./index-64c42dec.js"),
3437
3437
  meta: {
3438
3438
  title: "Mudar senha",
3439
3439
  icon: "lock"