@aeria-ui/ui 0.0.133 → 0.0.134

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,10 +1,10 @@
1
- import { defineComponent as z, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as l, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as b, createTextVNode as D, unref as e, renderSlot as A, withModifiers as qe, inject as fe, computed as K, createElementVNode as B, mergeProps as E, createBlock as V, withCtx as y, resolveDynamicComponent as be, useCssVars as $t, normalizeProps as pe, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as ue, createVNode as L, vModelDynamic as gt, onBeforeMount as ft, normalizeStyle as $e, provide as he, createSlots as ce, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
2
- import { t as R, useI18n as Bt } from "@aeria-ui/i18n";
3
- import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as qt, useParentCollectionStore as je, useCollectionStore as Rt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
4
- import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as ct, evaluateCondition as Qe, deepMerge as Re } from "@aeriajs/common";
5
- import { useStore as re, getStoreId as Me, useParentStore as Ue, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
1
+ import { defineComponent as z, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as l, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as b, createTextVNode as D, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as K, createElementVNode as B, mergeProps as U, createBlock as V, withCtx as y, resolveDynamicComponent as be, useCssVars as gt, normalizeProps as pe, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as ue, createVNode as L, vModelDynamic as $t, onBeforeMount as ft, normalizeStyle as ge, provide as he, createSlots as ce, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
2
+ import { t as q, useI18n as Bt } from "@aeria-ui/i18n";
3
+ import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
4
+ import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as ct, evaluateCondition as Qe, deepMerge as qe } from "@aeriajs/common";
5
+ import { useStore as re, getStoreId as Me, useParentStore as Ee, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
6
6
  import { useRouter as Be } from "vue-router";
7
- import { convertConditionToQuery as Et, isDocumentComplete as Ut, getObjectKey as Ht } from "@aeria-ui/utils";
7
+ import { convertConditionToQuery as Ut, isDocumentComplete as Et, getObjectKey as Ht } from "@aeria-ui/utils";
8
8
  const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
9
9
  key: 0,
10
10
  class: "accordion__content"
@@ -34,7 +34,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
34
34
  onClick: (d) => r.value === u ? r.value = null : r.value = u
35
35
  }, [
36
36
  n.enumerate ? (t(), l("span", Qt, C(_ + 1) + ". ", 1)) : b("", !0),
37
- D(" " + C(n.headers[u] ? a(n.headers[u]) : e(R)(u)), 1)
37
+ D(" " + C(n.headers[u] ? a(n.headers[u]) : e(q)(u)), 1)
38
38
  ], 8, Dt)), [
39
39
  [c]
40
40
  ]),
@@ -84,7 +84,7 @@ const ke = /* @__PURE__ */ Q(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @_
84
84
  "barebutton",
85
85
  `barebutton--${c.disabled ? "disabled" : "enabled"}`
86
86
  ]),
87
- onClick: qe(o, ["prevent"])
87
+ onClick: Re(o, ["prevent"])
88
88
  }, [
89
89
  A(c.$slots, "default", {}, void 0, !0)
90
90
  ], 2));
@@ -124,7 +124,7 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
124
124
  { "icon__icon--right": c.iconRight }
125
125
  ])
126
126
  }, [
127
- (t(), l("svg", E({
127
+ (t(), l("svg", U({
128
128
  width: "24",
129
129
  height: "24",
130
130
  viewBox: "0 0 256 256",
@@ -256,11 +256,11 @@ const ln = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-ebda18bd"]]), sn = { cla
256
256
  n("update:modelValue", !1), n("close");
257
257
  }, d = () => {
258
258
  n("overlayClick");
259
- }, $ = (i) => {
259
+ }, g = (i) => {
260
260
  n("update:collapsed", i), o.value = i;
261
261
  };
262
262
  return (i, v) => {
263
- const k = ne("clickable"), f = ne("loading"), I = ne("overlay");
263
+ const $ = ne("clickable"), f = ne("loading"), I = ne("overlay");
264
264
  return i.modelValue ? J((t(), l("div", {
265
265
  key: 0,
266
266
  class: W([
@@ -303,23 +303,23 @@ const ln = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-ebda18bd"]]), sn = { cla
303
303
  key: 0,
304
304
  reactive: "",
305
305
  icon: "plus",
306
- onClick: v[0] || (v[0] = (s) => $(!o.value))
306
+ onClick: v[0] || (v[0] = (s) => g(!o.value))
307
307
  }, null, 512)), [
308
- [k]
308
+ [$]
309
309
  ]) : i.collapsible && !o.value ? J((t(), V(Y, {
310
310
  key: 1,
311
311
  reactive: "",
312
312
  icon: "minus",
313
- onClick: v[1] || (v[1] = (s) => $(!o.value))
313
+ onClick: v[1] || (v[1] = (s) => g(!o.value))
314
314
  }, null, 512)), [
315
- [k]
315
+ [$]
316
316
  ]) : i.closeHint ? J((t(), V(Y, {
317
317
  key: 2,
318
318
  reactive: "",
319
319
  icon: "x",
320
320
  onClick: _
321
321
  }, null, 512)), [
322
- [k]
322
+ [$]
323
323
  ]) : b("", !0)
324
324
  ], 2)) : b("", !0),
325
325
  o.value ? b("", !0) : J((t(), l("div", {
@@ -372,18 +372,18 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
372
372
  },
373
373
  emits: ["actionClick"],
374
374
  setup(p, { emit: r }) {
375
- $t((d) => ({
375
+ gt((d) => ({
376
376
  "4fd17073": _.value.x,
377
377
  "4fd17074": _.value.y
378
378
  }));
379
- const a = r, n = ee(null), o = ee(!1), c = (d) => d == null ? void 0 : d.filter(($) => {
380
- if ($.roles) {
379
+ const a = r, n = ee(null), o = ee(!1), c = (d) => d == null ? void 0 : d.filter((g) => {
380
+ if (g.roles) {
381
381
  const i = re("user");
382
- return bt($.roles, i.currentUser.roles);
382
+ return bt(g.roles, i.currentUser.roles);
383
383
  }
384
384
  return !0;
385
- }), u = (d, $) => {
386
- const i = $ && Ae($);
385
+ }), u = (d, g) => {
386
+ const i = g && Ae(g);
387
387
  d.click && d.click(i), a("actionClick", {
388
388
  action: d,
389
389
  subject: i
@@ -394,14 +394,14 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
394
394
  x: 0,
395
395
  y: 0
396
396
  };
397
- const d = n.value.getBoundingClientRect().top, $ = n.value.getBoundingClientRect().left, i = n.value.offsetHeight;
397
+ const d = n.value.getBoundingClientRect().top, g = n.value.getBoundingClientRect().left, i = n.value.offsetHeight;
398
398
  return {
399
399
  _: o.value,
400
- x: Math.floor($) + "px",
400
+ x: Math.floor(g) + "px",
401
401
  y: Math.floor(d + i) + "px"
402
402
  };
403
403
  });
404
- return (d, $) => {
404
+ return (d, g) => {
405
405
  const i = ne("overlay");
406
406
  return t(), l(P, null, [
407
407
  Object.keys(d.$slots).some((v) => v !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
@@ -412,7 +412,7 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
412
412
  }, [
413
413
  B("a", {
414
414
  class: "contextmenu__trigger",
415
- onClick: $[0] || ($[0] = (v) => o.value = !0)
415
+ onClick: g[0] || (g[0] = (v) => o.value = !0)
416
416
  }, [
417
417
  A(d.$slots, "default", pe(Ve({
418
418
  visible: o.value
@@ -425,7 +425,7 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
425
425
  }, [
426
426
  J((t(), V(Se, {
427
427
  modelValue: o.value,
428
- "onUpdate:modelValue": $[4] || ($[4] = (v) => o.value = v),
428
+ "onUpdate:modelValue": g[4] || (g[4] = (v) => o.value = v),
429
429
  fill: "",
430
430
  bordered: "",
431
431
  class: "content",
@@ -439,10 +439,10 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
439
439
  Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), l("div", {
440
440
  key: 1,
441
441
  class: "content__section",
442
- onClick: $[1] || ($[1] = (v) => o.value = !1)
442
+ onClick: g[1] || (g[1] = (v) => o.value = !1)
443
443
  }, [
444
- (t(!0), l(P, null, H(Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, k) => (t(), V(ye, {
445
- key: `slot-${k}`,
444
+ (t(!0), l(P, null, H(Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, $) => (t(), V(ye, {
445
+ key: `slot-${$}`,
446
446
  class: "content__item content__item--reactive"
447
447
  }, {
448
448
  default: y(() => [
@@ -454,10 +454,10 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
454
454
  d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
455
455
  key: 2,
456
456
  class: "content__section",
457
- onClick: $[2] || ($[2] = (v) => o.value = !1)
457
+ onClick: g[2] || (g[2] = (v) => o.value = !1)
458
458
  }, [
459
- (t(!0), l(P, null, H(c(d.actions), (v, k) => (t(), V(ye, {
460
- key: `action-${k}`,
459
+ (t(!0), l(P, null, H(c(d.actions), (v, $) => (t(), V(ye, {
460
+ key: `action-${$}`,
461
461
  class: "content__item content__item--reactive",
462
462
  onClick: (f) => u(v, d.subject)
463
463
  }, {
@@ -467,7 +467,7 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
467
467
  icon: v.icon
468
468
  }, {
469
469
  default: y(() => [
470
- D(C(v.translate ? e(R)(v.label, { capitalize: !0 }) : v.label), 1)
470
+ D(C(v.translate ? e(q)(v.label, { capitalize: !0 }) : v.label), 1)
471
471
  ]),
472
472
  _: 2
473
473
  }, 1032, ["icon"])) : b("", !0)
@@ -478,7 +478,7 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
478
478
  d.$slots.extra ? (t(), l("div", {
479
479
  key: 3,
480
480
  class: "content__section",
481
- onClick: $[3] || ($[3] = (v) => o.value = !1)
481
+ onClick: g[3] || (g[3] = (v) => o.value = !1)
482
482
  }, [
483
483
  B("div", _n, [
484
484
  d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : b("", !0)
@@ -539,10 +539,10 @@ const Ie = /* @__PURE__ */ Q(mn, [["__scopeId", "data-v-3fa3b32f"]]), fn = { cla
539
539
  const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { class: "input" }, hn = {
540
540
  key: 0,
541
541
  class: "input__label"
542
- }, $n = {
542
+ }, gn = {
543
543
  key: 1,
544
544
  class: "input__hint"
545
- }, gn = ["placeholder", "readonly", "value"], kn = ["value"], Vn = {
545
+ }, $n = ["placeholder", "readonly", "value"], kn = ["value"], Vn = {
546
546
  key: 1,
547
547
  class: "input__clipboard"
548
548
  }, Cn = /* @__PURE__ */ z({
@@ -560,7 +560,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
560
560
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
561
561
  setup(p, { emit: r }) {
562
562
  var Z;
563
- const a = p, n = r, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", u = fe("searchOnly", !1), _ = fe("innerInputLabel", !1), d = !u && (a.readOnly || o.readOnly), $ = (h) => (n("clipboardCopy", h), navigator.clipboard.writeText(h)), i = fe("inputVariant", a.variant) || "normal", v = Object.assign(Object.assign({}, a), {
563
+ const a = p, n = r, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", u = fe("searchOnly", !1), _ = fe("innerInputLabel", !1), d = !u && (a.readOnly || o.readOnly), g = (h) => (n("clipboardCopy", h), navigator.clipboard.writeText(h)), i = fe("inputVariant", a.variant) || "normal", v = Object.assign(Object.assign({}, a), {
564
564
  name: a.propertyName,
565
565
  readonly: d,
566
566
  type: (() => {
@@ -586,7 +586,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
586
586
  "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (v.min = o.minimum), o.exclusiveMinimum && (v.min = o.exclusiveMinimum + 1), o.maximum && (v.max = o.maximum), o.exclusiveMaximum && (v.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (v.type = !u && o.format === "date-time" ? "datetime-local" : "date"), v.minlength = o.minLength, v.maxlength = o.maxLength)), v.type === "text" && u && (v.type = "search"), We(() => {
587
587
  a.modelValue !== null && M(a.modelValue);
588
588
  });
589
- const k = (h) => {
589
+ const $ = (h) => {
590
590
  if (typeof h == "string")
591
591
  return h;
592
592
  if (!(h instanceof Date))
@@ -609,7 +609,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
609
609
  switch (v.type) {
610
610
  case "date":
611
611
  case "datetime-local":
612
- return k(h);
612
+ return $(h);
613
613
  }
614
614
  switch (h) {
615
615
  case null:
@@ -643,7 +643,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
643
643
  }
644
644
  })();
645
645
  n("input", G), n("update:modelValue", G);
646
- }, U = (h) => {
646
+ }, E = (h) => {
647
647
  const G = h.target.value;
648
648
  f.value = G, M(G);
649
649
  };
@@ -653,7 +653,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
653
653
  e(_) ? b("", !0) : (t(), l("div", hn, [
654
654
  h.$slots.default ? A(h.$slots, "default", { key: 0 }, void 0, !0) : A(h.$slots, "description", { key: 1 }, void 0, !0)
655
655
  ])),
656
- h.$slots.hint ? (t(), l("div", $n, [
656
+ h.$slots.hint ? (t(), l("div", gn, [
657
657
  A(h.$slots, "hint", {}, void 0, !0)
658
658
  ])) : b("", !0),
659
659
  "element" in e(o) && e(o).element === "textarea" ? (t(), l("div", {
@@ -672,8 +672,8 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
672
672
  "input__textarea",
673
673
  `input__input--${e(i)}`
674
674
  ]),
675
- onInput: U
676
- }, null, 42, gn), [
675
+ onInput: E
676
+ }, null, 42, $n), [
677
677
  [oe, e(o).focus]
678
678
  ])
679
679
  ], 2)) : (t(), l("div", {
@@ -683,7 +683,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
683
683
  `input__container--${e(i)}`
684
684
  ])
685
685
  }, [
686
- J(B("input", E(e(v), {
686
+ J(B("input", U(e(v), {
687
687
  value: f.value,
688
688
  "data-component": "input",
689
689
  class: [
@@ -692,7 +692,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
692
692
  { "input__input--icon": e(c) },
693
693
  { "input__input--readOnly": e(d) }
694
694
  ],
695
- onInput: U,
695
+ onInput: E,
696
696
  onChange: G[0] || (G[0] = (te) => n("change", te))
697
697
  }), null, 16, kn), [
698
698
  [oe, e(o).focus]
@@ -714,7 +714,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
714
714
  J(L(Y, {
715
715
  reactive: "",
716
716
  icon: "clipboard",
717
- onClick: G[1] || (G[1] = qe((te) => $(String(h.modelValue || "")), ["prevent"]))
717
+ onClick: G[1] || (G[1] = Re((te) => g(String(h.modelValue || "")), ["prevent"]))
718
718
  }, null, 512), [
719
719
  [w]
720
720
  ])
@@ -750,42 +750,42 @@ const Ce = /* @__PURE__ */ Q(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
750
750
  n("update:modelValue", i), n("change", i);
751
751
  }, _ = (i) => {
752
752
  i === "" || i === null ? u(null) : a.booleanRef ? u(i === "true") : u(i);
753
- }, d = (i) => Array.isArray(a.modelValue) ? a.modelValue.includes(i) : a.modelValue === i, $ = K(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
753
+ }, d = (i) => Array.isArray(a.modelValue) ? a.modelValue.includes(i) : a.modelValue === i, g = K(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
754
754
  return a.multiple && ue(() => a.modelValue, (i) => {
755
- var k;
755
+ var $;
756
756
  if (!o.value)
757
757
  return;
758
758
  const v = o.value.querySelector('option[data-selected="true"]');
759
- v && v.removeAttribute("data-selected"), (k = o.value.querySelector(`option[value="${i}"]`)) == null || k.setAttribute("data-selected", "true");
759
+ v && v.removeAttribute("data-selected"), ($ = o.value.querySelector(`option[value="${i}"]`)) == null || $.setAttribute("data-selected", "true");
760
760
  }), (i, v) => i.readOnly ? (t(), V(Ce, {
761
761
  key: 1,
762
762
  "read-only": "",
763
763
  "model-value": i.modelValue
764
- }, null, 8, ["model-value"])) : (t(), l("select", E({ key: 0 }, {
765
- size: $.value,
764
+ }, null, 8, ["model-value"])) : (t(), l("select", U({ key: 0 }, {
765
+ size: g.value,
766
766
  value: i.modelValue
767
767
  }, {
768
768
  ref_key: "select",
769
769
  ref: o,
770
770
  class: {
771
771
  select: !0,
772
- "select--multiple": !!$.value,
772
+ "select--multiple": !!g.value,
773
773
  "select--outline": !i.noOutline
774
774
  },
775
- onChange: v[0] || (v[0] = (k) => _(k.target.value))
775
+ onChange: v[0] || (v[0] = ($) => _($.target.value))
776
776
  }), [
777
777
  e(c) && e(c).icon ? (t(), V(Y, {
778
778
  key: 0,
779
779
  icon: e(c).icon
780
780
  }, null, 8, ["icon"])) : b("", !0),
781
- !a.multiple && !i.required ? (t(), l("option", On, C(e(R)("none")), 1)) : b("", !0),
782
- (t(!0), l(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], (k) => {
781
+ !a.multiple && !i.required ? (t(), l("option", On, C(e(q)("none")), 1)) : b("", !0),
782
+ (t(!0), l(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], ($) => {
783
783
  var f;
784
784
  return t(), l("option", {
785
- key: String(k),
786
- value: k,
787
- "data-selected": d(k)
788
- }, C((f = e(c)) != null && f.translate ? e(R)(k) : k), 9, An);
785
+ key: String($),
786
+ value: $,
787
+ "data-selected": d($)
788
+ }, C((f = e(c)) != null && f.translate ? e(q)($) : $), 9, An);
789
789
  }), 128)),
790
790
  A(i.$slots, "default", {}, void 0, !0)
791
791
  ], 16));
@@ -804,26 +804,26 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-50bbcc3b"]]), Bn = { cla
804
804
  setup(p, { emit: r }) {
805
805
  const a = p, n = r, o = K({
806
806
  get: () => Math.floor(a.pagination.offset / a.pagination.limit),
807
- set: ($) => {
808
- a.pagination.offset = $ * a.pagination.limit;
807
+ set: (g) => {
808
+ a.pagination.offset = g * a.pagination.limit;
809
809
  }
810
810
  }), c = K({
811
811
  get: () => a.pagination.limit,
812
- set: ($) => {
813
- a.pagination.limit = Number($);
812
+ set: (g) => {
813
+ a.pagination.limit = Number(g);
814
814
  }
815
- }), u = ee(o.value ? o.value + 1 : 1), _ = K(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), d = ($) => {
816
- o.value = $ === "previous" ? o.value - 1 : o.value + 1;
815
+ }), u = ee(o.value ? o.value + 1 : 1), _ = K(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), d = (g) => {
816
+ o.value = g === "previous" ? o.value - 1 : o.value + 1;
817
817
  };
818
818
  return ue([
819
819
  o,
820
820
  c
821
- ], ([$]) => {
822
- u.value = $ + 1, n("paginate", {
821
+ ], ([g]) => {
822
+ u.value = g + 1, n("paginate", {
823
823
  offset: o.value * c.value,
824
824
  limit: c.value
825
825
  });
826
- }), ($, i) => (t(), l("div", Bn, [
826
+ }), (g, i) => (t(), l("div", Bn, [
827
827
  B("div", Sn, [
828
828
  L(ye, {
829
829
  disabled: o.value === 0,
@@ -879,8 +879,8 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-50bbcc3b"]]), Bn = { cla
879
879
  _: 1
880
880
  }, 8, ["modelValue"])
881
881
  ]),
882
- $.noSummary ? b("", !0) : (t(), l("div", Tn, [
883
- D(C(e(R)("Page")) + " ", 1),
882
+ g.noSummary ? b("", !0) : (t(), l("div", Tn, [
883
+ D(C(e(q)("Page")) + " ", 1),
884
884
  (t(), V(Ce, {
885
885
  key: o.value,
886
886
  modelValue: u.value,
@@ -894,14 +894,14 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-50bbcc3b"]]), Bn = { cla
894
894
  o.value = u.value === 0 ? 0 : u.value - 1;
895
895
  })
896
896
  }, null, 8, ["modelValue"])),
897
- B("span", null, C(e(R)("of")) + " " + C(_.value), 1)
897
+ B("span", null, C(e(q)("of")) + " " + C(_.value), 1)
898
898
  ]))
899
899
  ]));
900
900
  }
901
901
  });
902
- const qn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Rn = { class: "checkbox__text" }, Ln = ["innerHTML"], Mn = { class: "checkbox__hint" }, zn = ["innerHTML"], Fn = {
902
+ const Rn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), qn = { class: "checkbox__text" }, Ln = ["innerHTML"], Mn = { class: "checkbox__hint" }, zn = ["innerHTML"], Fn = {
903
903
  inheritAttrs: !1
904
- }, En = /* @__PURE__ */ z({
904
+ }, Un = /* @__PURE__ */ z({
905
905
  ...Fn,
906
906
  __name: "aeria-checkbox",
907
907
  props: {
@@ -956,19 +956,19 @@ const qn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
956
956
  u("update:modelValue", a.value);
957
957
  }
958
958
  }
959
- }), $ = (i) => {
959
+ }), g = (i) => {
960
960
  o && i.preventDefault();
961
961
  };
962
962
  return (i, v) => {
963
963
  var f, I;
964
- const k = ne("clickable");
964
+ const $ = ne("clickable");
965
965
  return J((t(), l("label", {
966
966
  class: W([
967
967
  "checkbox",
968
968
  { "checkbox--readOnly": e(o) }
969
969
  ])
970
970
  }, [
971
- J(B("input", E({
971
+ J(B("input", U({
972
972
  "onUpdate:modelValue": v[0] || (v[0] = (s) => d.value = s)
973
973
  }, {
974
974
  type: e(c),
@@ -976,15 +976,15 @@ const qn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
976
976
  checked: d.value
977
977
  }, {
978
978
  class: "checkbox__input",
979
- onClick: $
979
+ onClick: g
980
980
  }), null, 16), [
981
- [gt, d.value]
981
+ [$t, d.value]
982
982
  ]),
983
- B("div", Rn, [
983
+ B("div", qn, [
984
984
  B("div", null, [
985
985
  i.$slots.description ? A(i.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), l("div", {
986
986
  key: 1,
987
- innerHTML: (f = e(n)) != null && f.translate ? e(R)(e(_)) : e(_)
987
+ innerHTML: (f = e(n)) != null && f.translate ? e(q)(e(_)) : e(_)
988
988
  }, null, 8, Ln)) : A(i.$slots, "default", { key: 2 }, void 0, !0)
989
989
  ]),
990
990
  B("div", Mn, [
@@ -995,12 +995,12 @@ const qn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
995
995
  ])
996
996
  ])
997
997
  ], 2)), [
998
- [k]
998
+ [$]
999
999
  ]);
1000
1000
  };
1001
1001
  }
1002
1002
  });
1003
- const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1003
+ const En = /* @__PURE__ */ Q(Un, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1004
1004
  inheritAttrs: !1
1005
1005
  }, Dn = /* @__PURE__ */ z({
1006
1006
  ...Hn,
@@ -1027,17 +1027,17 @@ const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1027
1027
  );
1028
1028
  }), (_, d) => (t(), l("div", {
1029
1029
  class: "options",
1030
- style: $e(`
1030
+ style: ge(`
1031
1031
  --columns: ${_.columns};
1032
1032
  grid-template-columns: repeat(var(--columns), 1fr);
1033
1033
  `)
1034
1034
  }, [
1035
- (t(!0), l(P, null, H(e(c), ($) => (t(), l("div", {
1036
- key: `option-${$}`,
1035
+ (t(!0), l(P, null, H(e(c), (g) => (t(), l("div", {
1036
+ key: `option-${g}`,
1037
1037
  class: "options__checkbox"
1038
1038
  }, [
1039
- L(Un, E({ ref_for: !0 }, {
1040
- value: $,
1039
+ L(En, U({ ref_for: !0 }, {
1040
+ value: g,
1041
1041
  readOnly: e(o),
1042
1042
  property: _.property
1043
1043
  }, {
@@ -1069,7 +1069,7 @@ const Qn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
1069
1069
  };
1070
1070
  return (_, d) => {
1071
1071
  var i;
1072
- const $ = ne("clickable");
1072
+ const g = ne("clickable");
1073
1073
  return t(), l("div", Gn, [
1074
1074
  J((t(), l("a", {
1075
1075
  class: W([
@@ -1077,7 +1077,7 @@ const Qn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
1077
1077
  { "switch--active": _.modelValue },
1078
1078
  { "switch--readOnly": e(c) }
1079
1079
  ]),
1080
- onClick: qe(u, ["stop"])
1080
+ onClick: Re(u, ["stop"])
1081
1081
  }, [
1082
1082
  d[0] || (d[0] = B("div", { class: "switch__slider" }, null, -1)),
1083
1083
  B("div", {
@@ -1087,7 +1087,7 @@ const Qn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
1087
1087
  ])
1088
1088
  }, null, 2)
1089
1089
  ], 2)), [
1090
- [$, {
1090
+ [g, {
1091
1091
  blocked: e(c)
1092
1092
  }]
1093
1093
  ]),
@@ -1151,7 +1151,7 @@ const Xn = /* @__PURE__ */ Q(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
1151
1151
  { "picture__image--bordered": o.bordered },
1152
1152
  { "picture__image--expandable": o.expandable }
1153
1153
  ]),
1154
- style: $e(`
1154
+ style: ge(`
1155
1155
  object-fit: ${o.objectFit || "cover"};
1156
1156
  width: ${o.width || "100%"};
1157
1157
  height: ${o.height || "100%"};
@@ -1167,7 +1167,7 @@ const Xn = /* @__PURE__ */ Q(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
1167
1167
  xmlns: "http://www.w3.org/2000/svg",
1168
1168
  viewBox: "0 0 200 200",
1169
1169
  preserveAspectRatio: "none",
1170
- style: $e(`
1170
+ style: ge(`
1171
1171
  object-fit: ${o.objectFit || "cover"};
1172
1172
  width: ${o.width || "100%"};
1173
1173
  height: ${o.height || "100%"};
@@ -1197,7 +1197,7 @@ const Xn = /* @__PURE__ */ Q(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
1197
1197
  };
1198
1198
  }
1199
1199
  });
1200
- const Ee = /* @__PURE__ */ Q(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { class: "item" }, oo = { class: "item__presentation" }, ao = {
1200
+ const Ue = /* @__PURE__ */ Q(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { class: "item" }, oo = { class: "item__presentation" }, ao = {
1201
1201
  key: 1,
1202
1202
  class: "item__name"
1203
1203
  }, lo = { class: "item__size" }, so = /* @__PURE__ */ z({
@@ -1217,7 +1217,7 @@ const Ee = /* @__PURE__ */ Q(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { cla
1217
1217
  ][c]}`;
1218
1218
  };
1219
1219
  return (o, c) => (t(), l("div", no, [
1220
- "_id" in e(a) && e(a).type.startsWith("image/") ? (t(), V(Ee, {
1220
+ "_id" in e(a) && e(a).type.startsWith("image/") ? (t(), V(Ue, {
1221
1221
  key: 0,
1222
1222
  bordered: "",
1223
1223
  expandable: "",
@@ -1265,21 +1265,21 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1265
1265
  },
1266
1266
  emits: ["update:content", "change", "update:modelValue"],
1267
1267
  setup(p, { emit: r }) {
1268
- const a = p, n = a.property && me(a.property), o = r, u = Me() ? Ue() : null, _ = a.multiple || a.property && "type" in a.property && a.property.type === "array", d = K(() => {
1268
+ const a = p, n = a.property && me(a.property), o = r, u = Me() ? Ee() : null, _ = a.multiple || a.property && "type" in a.property && a.property.type === "array", d = K(() => {
1269
1269
  if (a.modelValue)
1270
1270
  return Array.isArray(a.modelValue) ? a.modelValue : [a.modelValue];
1271
- }), $ = (k) => new Promise((f) => {
1271
+ }), g = ($) => new Promise((f) => {
1272
1272
  const I = new FileReader();
1273
- I.onload = () => f(I.result), I.readAsArrayBuffer(k);
1274
- }), i = async (k) => {
1275
- const f = k.target.files;
1273
+ I.onload = () => f(I.result), I.readAsArrayBuffer($);
1274
+ }), i = async ($) => {
1275
+ const f = $.target.files;
1276
1276
  if (!f)
1277
1277
  return;
1278
1278
  const I = [];
1279
1279
  for (const s of f) {
1280
- const M = await $(s);
1280
+ const M = await g(s);
1281
1281
  if (u) {
1282
- const { data: { error: U, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${s.name}`, M, {
1282
+ const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${s.name}`, M, {
1283
1283
  params: {
1284
1284
  method: "POST",
1285
1285
  headers: {
@@ -1288,7 +1288,7 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1288
1288
  }
1289
1289
  }
1290
1290
  });
1291
- if (U)
1291
+ if (E)
1292
1292
  return;
1293
1293
  I.unshift({
1294
1294
  tempId: Z.tempId,
@@ -1300,17 +1300,17 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1300
1300
  });
1301
1301
  }
1302
1302
  _ ? o("update:modelValue", Array.isArray(a.modelValue) ? I.concat(a.modelValue) : I) : o("update:modelValue", I[0]), o("update:content", I), o("change", I);
1303
- }, v = async (k) => {
1303
+ }, v = async ($) => {
1304
1304
  if (!a.modelValue)
1305
1305
  throw new Error();
1306
- const f = Array.isArray(a.modelValue) ? a.modelValue.filter((I, s) => s !== k) : [];
1306
+ const f = Array.isArray(a.modelValue) ? a.modelValue.filter((I, s) => s !== $) : [];
1307
1307
  _ ? o("update:modelValue", f) : o("update:modelValue", null), o("update:content", f), o("change", f);
1308
1308
  };
1309
- return (k, f) => {
1309
+ return ($, f) => {
1310
1310
  var s, M;
1311
1311
  const I = ne("clickable");
1312
1312
  return t(), l("div", ro, [
1313
- k.readOnly ? b("", !0) : (t(), l("input", {
1313
+ $.readOnly ? b("", !0) : (t(), l("input", {
1314
1314
  key: 0,
1315
1315
  ref: "file",
1316
1316
  type: "file",
@@ -1319,12 +1319,12 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1319
1319
  onChange: i
1320
1320
  }, null, 40, uo)),
1321
1321
  d.value && d.value.length > 0 ? (t(), l("div", co, [
1322
- (t(!0), l(P, null, H(d.value, (U, Z) => (t(), V(io, {
1323
- key: "_id" in U ? String(U._id) : U.file.name,
1324
- "model-value": U
1322
+ (t(!0), l(P, null, H(d.value, (E, Z) => (t(), V(io, {
1323
+ key: "_id" in E ? String(E._id) : E.file.name,
1324
+ "model-value": E
1325
1325
  }, {
1326
1326
  default: y(() => [
1327
- k.readOnly ? b("", !0) : J((t(), V(Y, {
1327
+ $.readOnly ? b("", !0) : J((t(), V(Y, {
1328
1328
  key: 0,
1329
1329
  reactive: "",
1330
1330
  icon: "trash",
@@ -1381,14 +1381,14 @@ const dt = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
1381
1381
  },
1382
1382
  emits: ["update:modelValue", "change"],
1383
1383
  setup(p, { emit: r }) {
1384
- const a = Be(), n = p, o = r, c = n.property, u = me(c), _ = Ue(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: k }) => n.item._id === k) : n.modelValue._id === n.item._id : !1), $ = () => {
1384
+ const a = Be(), n = p, o = r, c = n.property, u = me(c), _ = Ee(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: $ }) => n.item._id === $) : n.modelValue._id === n.item._id : !1), g = () => {
1385
1385
  if (d.value)
1386
1386
  return;
1387
- const k = (I) => I.filter((s) => !!s._id);
1387
+ const $ = (I) => I.filter((s) => !!s._id);
1388
1388
  let f;
1389
- "items" in c ? n.modelValue ? f = k(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : f = [] : f = n.modelValue, Array.isArray(f) ? o("update:modelValue", f.concat([n.item])) : o("update:modelValue", n.item), o("change", n.item);
1390
- }, i = async (k) => {
1391
- if (u.purge && (k != null && k.purge)) {
1389
+ "items" in c ? n.modelValue ? f = $(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : f = [] : f = n.modelValue, Array.isArray(f) ? o("update:modelValue", f.concat([n.item])) : o("update:modelValue", n.item), o("change", n.item);
1390
+ }, i = async ($) => {
1391
+ if (u.purge && ($ != null && $.purge)) {
1392
1392
  const { _id: I } = n.item;
1393
1393
  await _.$actions.remove({
1394
1394
  filters: {
@@ -1408,9 +1408,9 @@ const dt = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
1408
1408
  });
1409
1409
  return;
1410
1410
  }
1411
- return d.value ? i() : $();
1411
+ return d.value ? i() : g();
1412
1412
  };
1413
- return (k, f) => {
1413
+ return ($, f) => {
1414
1414
  const I = ne("clickable");
1415
1415
  return J((t(), l("div", {
1416
1416
  class: W({
@@ -1419,14 +1419,14 @@ const dt = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
1419
1419
  }),
1420
1420
  onClick: v
1421
1421
  }, [
1422
- A(k.$slots, "default", {}, void 0, !0),
1422
+ A($.$slots, "default", {}, void 0, !0),
1423
1423
  B("div", yo, [
1424
- (t(!0), l(P, null, H(k.indexes, (s, M) => (t(), l("div", {
1425
- key: `index-${k.item._id}-${M}`,
1424
+ (t(!0), l(P, null, H($.indexes, (s, M) => (t(), l("div", {
1425
+ key: `index-${$.item._id}-${M}`,
1426
1426
  class: "item__value"
1427
- }, C(k.item[s]), 1))), 128))
1427
+ }, C($.item[s]), 1))), 128))
1428
1428
  ]),
1429
- k.readOnly ? (t(), V(Y, {
1429
+ $.readOnly ? (t(), V(Y, {
1430
1430
  key: 0,
1431
1431
  icon: "arrow-square-out",
1432
1432
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
@@ -1437,7 +1437,7 @@ const dt = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
1437
1437
  };
1438
1438
  }
1439
1439
  });
1440
- const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { class: "search__panel" }, $o = { key: 1 }, go = { key: 0 }, ko = { key: 1 }, Vo = { class: "search__summary" }, Co = {
1440
+ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { class: "search__panel" }, go = { key: 1 }, $o = { key: 0 }, ko = { key: 1 }, Vo = { class: "search__summary" }, Co = {
1441
1441
  key: 1,
1442
1442
  class: "search"
1443
1443
  }, Oo = { key: 0 }, Fe = 10, Ao = /* @__PURE__ */ z({
@@ -1455,21 +1455,21 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1455
1455
  },
1456
1456
  emits: ["update:modelValue", "change", "update:panel"],
1457
1457
  setup(p, { emit: r }) {
1458
- const a = p, n = re("meta"), o = me(a.property), c = a.panel !== void 0 ? K(() => a.panel) : ee(!1), u = r, _ = re(me(a.property).$ref), d = Me(), $ = d ? Ue() : null, i = o.indexes;
1458
+ const a = p, n = re("meta"), o = me(a.property), c = a.panel !== void 0 ? K(() => a.panel) : ee(!1), u = r, _ = re(me(a.property).$ref), d = Me(), g = d ? Ee() : null, i = o.indexes;
1459
1459
  he(ze, me(a.property).$ref), he("innerInputLabel", !0), he("omitInputLabels", !0);
1460
- const v = ee(a.modelValue), k = ee({
1460
+ const v = ee(a.modelValue), $ = ee({
1461
1461
  data: [],
1462
1462
  pagination: {}
1463
- }), f = K(() => k.value.data), I = K(() => k.value.pagination), s = ee(0), M = ee(!1), U = ee(""), Z = () => {
1464
- const g = {};
1463
+ }), f = K(() => $.value.data), I = K(() => $.value.pagination), s = ee(0), M = ee(!1), E = ee(""), Z = () => {
1464
+ const k = {};
1465
1465
  if (d) {
1466
1466
  const N = e(d);
1467
- g[N] = $;
1467
+ k[N] = g;
1468
1468
  }
1469
- return o.constraints ? Et(o.constraints, g) : {};
1469
+ return o.constraints ? Ut(o.constraints, k) : {};
1470
1470
  }, h = () => {
1471
1471
  f.value.length < I.value.recordsTotal && (s.value += 1, oe());
1472
- }, G = async () => U.value.length === 0 ? _.$actions.custom("getAll", {
1472
+ }, G = async () => E.value.length === 0 ? _.$actions.custom("getAll", {
1473
1473
  limit: Fe,
1474
1474
  offset: s.value * Fe,
1475
1475
  filters: Z()
@@ -1478,7 +1478,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1478
1478
  offset: s.value * Fe,
1479
1479
  filters: {
1480
1480
  $text: {
1481
- $search: `"${U.value}"`,
1481
+ $search: `"${E.value}"`,
1482
1482
  $caseSensitive: !1
1483
1483
  },
1484
1484
  ...Z()
@@ -1486,37 +1486,37 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1486
1486
  }), oe = async () => {
1487
1487
  if (_.loading.getAll)
1488
1488
  return;
1489
- const { error: g, result: N } = await G();
1490
- if (g) {
1489
+ const { error: k, result: N } = await G();
1490
+ if (k) {
1491
1491
  n.$actions.spawnToast({
1492
1492
  text: "Request failed",
1493
1493
  icon: "warning"
1494
1494
  });
1495
1495
  return;
1496
1496
  }
1497
- k.value.pagination = N.pagination, s.value === 0 && k.value.data.splice(0), k.value.data.push(...N.data);
1497
+ $.value.pagination = N.pagination, s.value === 0 && $.value.data.splice(0), $.value.data.push(...N.data);
1498
1498
  }, [w] = yt({
1499
1499
  delay: 800
1500
1500
  })(() => {
1501
1501
  s.value = 0, oe(), M.value = !1;
1502
1502
  }), te = () => {
1503
1503
  M.value = !0, w();
1504
- }, ge = () => {
1504
+ }, $e = () => {
1505
1505
  "effect" in c ? u("update:panel", !0) : c.value = !0, oe();
1506
1506
  }, de = () => {
1507
- s.value = 0, k.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
1507
+ s.value = 0, $.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
1508
1508
  };
1509
- ue(() => U.value.length, (g, N) => {
1510
- g && !N && oe();
1509
+ ue(() => E.value.length, (k, N) => {
1510
+ k && !N && oe();
1511
1511
  }), We(() => {
1512
1512
  a.selectOnly && oe();
1513
1513
  });
1514
- const ae = (g) => {
1515
- v.value = g, a.selectOnly || u("update:modelValue", g);
1514
+ const ae = (k) => {
1515
+ v.value = k, a.selectOnly || u("update:modelValue", k);
1516
1516
  }, O = () => {
1517
1517
  de(), u("update:modelValue", v.value);
1518
1518
  };
1519
- return (g, N) => {
1519
+ return (k, N) => {
1520
1520
  const le = ne("clickable");
1521
1521
  return t(), l("div", null, [
1522
1522
  e(c) ? (t(), V(Ge, {
@@ -1526,7 +1526,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1526
1526
  L(Se, {
1527
1527
  float: "",
1528
1528
  "close-hint": "",
1529
- title: `${e(R)("action.select", { capitalize: !0 })} ${e(R)(g.propertyName)}`,
1529
+ title: `${e(q)("action.select", { capitalize: !0 })} ${e(q)(k.propertyName)}`,
1530
1530
  "overlay-layer": 65,
1531
1531
  "model-value": e(c),
1532
1532
  style: { "--panel-max-width": "36rem" },
@@ -1539,7 +1539,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1539
1539
  onClick: O
1540
1540
  }, {
1541
1541
  default: y(() => [
1542
- D(C(e(R)("action.save", { capitalize: !0 })), 1)
1542
+ D(C(e(q)("action.save", { capitalize: !0 })), 1)
1543
1543
  ]),
1544
1544
  _: 1
1545
1545
  })
@@ -1548,9 +1548,9 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1548
1548
  var m, T;
1549
1549
  return [
1550
1550
  B("div", ho, [
1551
- L(Ce, E({
1552
- modelValue: U.value,
1553
- "onUpdate:modelValue": N[0] || (N[0] = (F) => U.value = F)
1551
+ L(Ce, U({
1552
+ modelValue: E.value,
1553
+ "onUpdate:modelValue": N[0] || (N[0] = (F) => E.value = F)
1554
1554
  }, {
1555
1555
  property: {
1556
1556
  type: "string",
@@ -1564,10 +1564,10 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1564
1564
  onEndReached: h
1565
1565
  }, {
1566
1566
  default: y(() => [
1567
- (t(!0), l(P, null, H(f.value, (F) => (t(), V(De, E({ ref_for: !0 }, {
1567
+ (t(!0), l(P, null, H(f.value, (F) => (t(), V(De, U({ ref_for: !0 }, {
1568
1568
  item: F,
1569
1569
  indexes: e(i),
1570
- property: g.property
1570
+ property: k.property
1571
1571
  }, {
1572
1572
  key: `matching-${F._id}`,
1573
1573
  modelValue: v.value,
@@ -1575,52 +1575,52 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1575
1575
  }), null, 16, ["modelValue"]))), 128))
1576
1576
  ]),
1577
1577
  _: 1
1578
- })) : (t(), l("div", $o, [
1579
- M.value ? (t(), l("div", go, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(U.value).filter((F) => !!F).length > 0 && !("items" in g.property && ((m = g.modelValue) != null && m.length) || !Array.isArray(g.modelValue) && ((T = g.modelValue) != null && T._id)) ? (t(), l("div", ko, C(e(R)("no_results", { capitalize: !0 })), 1)) : b("", !0)
1578
+ })) : (t(), l("div", go, [
1579
+ M.value ? (t(), l("div", $o, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(E.value).filter((F) => !!F).length > 0 && !("items" in k.property && ((m = k.modelValue) != null && m.length) || !Array.isArray(k.modelValue) && ((T = k.modelValue) != null && T._id)) ? (t(), l("div", ko, C(e(q)("no_results", { capitalize: !0 })), 1)) : b("", !0)
1580
1580
  ]))
1581
1581
  ]),
1582
- B("div", Vo, C(e(R)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(R)("of")) + " " + C(I.value.recordsTotal), 1)
1582
+ B("div", Vo, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(I.value.recordsTotal), 1)
1583
1583
  ];
1584
1584
  }),
1585
1585
  _: 1
1586
1586
  }, 8, ["title", "model-value"])
1587
1587
  ])) : b("", !0),
1588
- g.selectOnly ? b("", !0) : (t(), l("div", Co, [
1588
+ k.selectOnly ? b("", !0) : (t(), l("div", Co, [
1589
1589
  L(dt, null, ce({
1590
1590
  default: y(() => {
1591
1591
  var m;
1592
1592
  return [
1593
- "items" in g.property ? (t(), l("div", Oo, [
1594
- (t(!0), l(P, null, H(g.modelValue, (T) => (t(), V(De, E({ ref_for: !0 }, {
1593
+ "items" in k.property ? (t(), l("div", Oo, [
1594
+ (t(!0), l(P, null, H(k.modelValue, (T) => (t(), V(De, U({ ref_for: !0 }, {
1595
1595
  item: T,
1596
1596
  indexes: e(i),
1597
- property: g.property,
1598
- readOnly: g.readOnly,
1599
- modelValue: g.modelValue
1597
+ property: k.property,
1598
+ readOnly: k.readOnly,
1599
+ modelValue: k.modelValue
1600
1600
  }, {
1601
1601
  key: `selected-${T._id}`,
1602
1602
  "onUpdate:modelValue": ae
1603
1603
  }), null, 16))), 128))
1604
- ])) : (m = g.modelValue) != null && m._id ? (t(), V(De, E({ key: 1 }, {
1605
- item: g.modelValue,
1604
+ ])) : (m = k.modelValue) != null && m._id ? (t(), V(De, U({ key: 1 }, {
1605
+ item: k.modelValue,
1606
1606
  indexes: e(i),
1607
1607
  property: e(o),
1608
- readOnly: g.readOnly,
1609
- modelValue: g.modelValue
1608
+ readOnly: k.readOnly,
1609
+ modelValue: k.modelValue
1610
1610
  }, { "onUpdate:modelValue": ae }), null, 16)) : b("", !0)
1611
1611
  ];
1612
1612
  }),
1613
1613
  _: 2
1614
1614
  }, [
1615
- g.readOnly ? void 0 : {
1615
+ k.readOnly ? void 0 : {
1616
1616
  name: "footer",
1617
1617
  fn: y(() => [
1618
1618
  J((t(), V(Y, {
1619
1619
  icon: "plus",
1620
- onClick: ge
1620
+ onClick: $e
1621
1621
  }, {
1622
1622
  default: y(() => [
1623
- D(C(e(R)("action.select", { capitalize: !0 })), 1)
1623
+ D(C(e(q)("action.select", { capitalize: !0 })), 1)
1624
1624
  ]),
1625
1625
  _: 1
1626
1626
  })), [
@@ -1674,10 +1674,10 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1674
1674
  }, wo = {
1675
1675
  key: 0,
1676
1676
  class: "form__header"
1677
- }, To = { class: "form__fieldset" }, jo = { key: 0 }, qo = ["innerHTML"], Ro = ["onInput"], Lo = { key: 4 }, Mo = { value: "true" }, zo = { value: "false" }, Fo = {
1677
+ }, To = { class: "form__fieldset" }, jo = { key: 0 }, Ro = ["innerHTML"], qo = ["onInput"], Lo = { key: 4 }, Mo = { value: "true" }, zo = { value: "false" }, Fo = {
1678
1678
  key: 5,
1679
1679
  style: { display: "grid", "row-gap": ".4rem" }
1680
- }, Eo = { key: 0 }, Uo = {
1680
+ }, Uo = { key: 0 }, Eo = {
1681
1681
  key: 1,
1682
1682
  class: "form__array"
1683
1683
  }, Ho = {
@@ -1721,7 +1721,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1721
1721
  });
1722
1722
  const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(), _ = n.readOnly || ((le = n.property) == null ? void 0 : le.readOnly), d = u ? re(e(u)) : null;
1723
1723
  !u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
1724
- const $ = ee(!1), i = K(() => {
1724
+ const g = ee(!1), i = K(() => {
1725
1725
  const m = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
1726
1726
  if (!m)
1727
1727
  return;
@@ -1739,10 +1739,10 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1739
1739
  m.created_at || (T.created_at = F), m.created_at || (T.updated_at = F);
1740
1740
  }
1741
1741
  return Object.assign(T, m), T;
1742
- }), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), k = (m) => {
1742
+ }), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), $ = (m) => {
1743
1743
  const T = fe(m, n[m]);
1744
1744
  return n[m] && he(m, n[m]), T;
1745
- }, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = k("formComponents") || {}, s = k("propertyComponents") || {}, M = k("omitFormHeader"), U = k("omitInputLabels"), Z = k("innerInputLabel");
1745
+ }, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = $("formComponents") || {}, s = $("propertyComponents") || {}, M = $("omitFormHeader"), E = $("omitInputLabels"), Z = $("innerInputLabel");
1746
1746
  u && he(ze, u), he("searchOnly", n.searchOnly);
1747
1747
  const h = (m) => i.value ? Object.entries(i.value).filter(([T, F]) => !F.noForm && m([
1748
1748
  T,
@@ -1753,9 +1753,9 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1753
1753
  return !0;
1754
1754
  const F = n.property && "properties" in n.property ? n.property.form : (X = d == null ? void 0 : d.description) == null ? void 0 : X.form;
1755
1755
  return !F || F.includes(m);
1756
- }, oe = h(([m, T]) => G(m, T)), w = Le(), te = {}, ge = (m, T) => {
1757
- var q, ie, j, se;
1758
- const F = [], X = ((ie = (q = v.value) == null ? void 0 : q.fields) == null ? void 0 : ie[m]) || ((se = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
1756
+ }, oe = h(([m, T]) => G(m, T)), w = Le(), te = {}, $e = (m, T) => {
1757
+ var R, ie, j, se;
1758
+ const F = [], X = ((ie = (R = v.value) == null ? void 0 : R.fields) == null ? void 0 : ie[m]) || ((se = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
1759
1759
  if (!T)
1760
1760
  return;
1761
1761
  if (X != null && X.if && !n.searchOnly) {
@@ -1781,99 +1781,99 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1781
1781
  padding: 1rem 0;
1782
1782
  margin: 1rem 0;
1783
1783
  `)), F.join("");
1784
- }, de = (m) => m === null || m instanceof Object && !Object.keys(m).length, ae = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Ut(
1784
+ }, de = (m) => m === null || m instanceof Object && !Object.keys(m).length, ae = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Et(
1785
1785
  n.modelValue,
1786
1786
  n.form,
1787
1787
  ae.value,
1788
1788
  d == null ? void 0 : d.description
1789
- ) : !0), g = (m, T) => {
1789
+ ) : !0), k = (m, T) => {
1790
1790
  var F;
1791
1791
  return (F = f.value) != null && F[m] && (typeof f.value[m].index != "number" || f.value[m].index === T) ? f.value[m].errors : null;
1792
1792
  }, N = (m) => {
1793
- if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !$.value)
1794
- return $.value = !0, !0;
1793
+ if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !g.value)
1794
+ return g.value = !0, !0;
1795
1795
  };
1796
1796
  return (m, T) => {
1797
1797
  const F = ne("clickable"), X = ne("focus");
1798
1798
  return t(), l("form", {
1799
1799
  class: "form",
1800
- style: $e(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1800
+ style: ge(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1801
1801
  }, [
1802
1802
  m.$slots.header && !e(M) ? (t(), l("header", wo, [
1803
1803
  A(m.$slots, "header", {}, void 0, !0)
1804
1804
  ])) : b("", !0),
1805
1805
  A(m.$slots, "default", {}, void 0, !0),
1806
1806
  B("fieldset", To, [
1807
- (t(!0), l(P, null, H(e(oe), ([S, q]) => {
1807
+ (t(!0), l(P, null, H(e(oe), ([S, R]) => {
1808
1808
  var ie, j, se, ve, Oe, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1809
1809
  return t(), l("div", {
1810
1810
  key: `field-${S}`,
1811
- style: $e(ge(S, q)),
1811
+ style: ge($e(S, R)),
1812
1812
  class: W({
1813
1813
  form__field: !0,
1814
- "form__field--form": "properties" in q
1814
+ "form__field--form": "properties" in R
1815
1815
  })
1816
1816
  }, [
1817
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(U) && !e(Z) ? (t(), l("label", jo, [
1817
+ (!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(E) && !e(Z) ? (t(), l("label", jo, [
1818
1818
  B("div", {
1819
1819
  class: W({
1820
1820
  "form__field-label": !0,
1821
- "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1821
+ "form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
1822
1822
  "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!ae.value || e(ct)(S, ae.value, m.modelValue))
1823
1823
  })
1824
- }, C(q.description || e(R)(S)), 3),
1825
- q.hint ? (t(), l("div", {
1824
+ }, C(R.description || e(q)(S)), 3),
1825
+ R.hint ? (t(), l("div", {
1826
1826
  key: 0,
1827
- innerHTML: q.hint
1828
- }, null, 8, qo)) : b("", !0)
1827
+ innerHTML: R.hint
1828
+ }, null, 8, Ro)) : b("", !0)
1829
1829
  ])) : b("", !0),
1830
- m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, E({
1830
+ m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, U({
1831
1831
  key: 1,
1832
1832
  ref_for: !0
1833
1833
  }, {
1834
1834
  readOnly: e(_),
1835
- property: q,
1835
+ property: R,
1836
1836
  propertyName: S,
1837
1837
  modelValue: m.modelValue
1838
- }), void 0, !0) : (se = (j = (ie = m.layout) == null ? void 0 : ie.fields) == null ? void 0 : j[S]) != null && se.component && e(s)[m.layout.fields[S].component.name] ? (t(), V(be(e(s)[m.layout.fields[S].component.name]), E({
1838
+ }), void 0, !0) : (se = (j = (ie = m.layout) == null ? void 0 : ie.fields) == null ? void 0 : j[S]) != null && se.component && e(s)[m.layout.fields[S].component.name] ? (t(), V(be(e(s)[m.layout.fields[S].component.name]), U({
1839
1839
  key: 2,
1840
1840
  modelValue: m.modelValue[S],
1841
1841
  "onUpdate:modelValue": (x) => m.modelValue[S] = x,
1842
1842
  ref_for: !0
1843
1843
  }, {
1844
1844
  readOnly: e(_),
1845
- property: q,
1845
+ property: R,
1846
1846
  propertyName: S,
1847
1847
  required: !m.searchOnly && (!ae.value || e(ct)(S, ae.value, m.modelValue)),
1848
1848
  ...m.layout.fields[S].component.props || {}
1849
1849
  }, {
1850
1850
  onInput: (x) => o("input", S),
1851
1851
  onChange: T[0] || (T[0] = (x) => o("change", x))
1852
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (t(), l("div", {
1852
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && m.searchOnly ? (t(), l("div", {
1853
1853
  key: 3,
1854
1854
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1855
1855
  onInput: (x) => o("input", S),
1856
1856
  onChange: T[1] || (T[1] = (x) => o("change", x))
1857
1857
  }, [
1858
- L(Ce, E({
1858
+ L(Ce, U({
1859
1859
  modelValue: m.modelValue[S].$gte,
1860
1860
  "onUpdate:modelValue": (x) => m.modelValue[S].$gte = x,
1861
1861
  ref_for: !0
1862
1862
  }, {
1863
- property: q,
1863
+ property: R,
1864
1864
  propertyName: S
1865
1865
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1866
- L(Ce, E({
1866
+ L(Ce, U({
1867
1867
  modelValue: m.modelValue[S].$lte,
1868
1868
  "onUpdate:modelValue": (x) => m.modelValue[S].$lte = x,
1869
1869
  ref_for: !0
1870
1870
  }, {
1871
- property: q,
1871
+ property: R,
1872
1872
  propertyName: S
1873
1873
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1874
- ], 40, Ro)) : "type" in q && q.type === "boolean" && m.searchOnly ? (t(), l("div", Lo, [
1875
- L(Xe, E({ ref_for: !0 }, {
1876
- property: q,
1874
+ ], 40, qo)) : "type" in R && R.type === "boolean" && m.searchOnly ? (t(), l("div", Lo, [
1875
+ L(Xe, U({ ref_for: !0 }, {
1876
+ property: R,
1877
1877
  propertyName: S
1878
1878
  }, {
1879
1879
  "boolean-ref": "",
@@ -1884,29 +1884,29 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1884
1884
  }
1885
1885
  }), {
1886
1886
  default: y(() => [
1887
- B("option", Mo, C(e(R)("yes")), 1),
1888
- B("option", zo, C(e(R)("no")), 1)
1887
+ B("option", Mo, C(e(q)("yes")), 1),
1888
+ B("option", zo, C(e(q)("no")), 1)
1889
1889
  ]),
1890
1890
  _: 2
1891
1891
  }, 1040, ["model-value", "onUpdate:modelValue"])
1892
- ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline) ? (t(), l("div", Fo, [
1893
- e(_) ? b("", !0) : (t(), l("div", Eo, [
1892
+ ])) : m.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", Fo, [
1893
+ e(_) ? b("", !0) : (t(), l("div", Uo, [
1894
1894
  L(_e, {
1895
1895
  small: "",
1896
1896
  variant: "alt",
1897
1897
  icon: "plus",
1898
- disabled: !("inline" in q.items && q.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= q.maxItems || de((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
1899
- onClick: qe((x) => {
1900
- m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], q, e(a));
1898
+ disabled: !("inline" in R.items && R.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || de((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
1899
+ onClick: Re((x) => {
1900
+ m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], R, e(a));
1901
1901
  }, ["prevent"])
1902
1902
  }, {
1903
1903
  default: y(() => [
1904
- D(C(e(R)("action.add", { capitalize: !0 })), 1)
1904
+ D(C(e(q)("action.add", { capitalize: !0 })), 1)
1905
1905
  ]),
1906
1906
  _: 2
1907
1907
  }, 1032, ["disabled", "onClick"])
1908
1908
  ])),
1909
- ((Ze = m.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), l("div", Uo, [
1909
+ ((Ze = m.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), l("div", Eo, [
1910
1910
  (t(!0), l(P, null, H(m.modelValue[S], (x, we) => {
1911
1911
  var at, lt, st, it, rt, ut;
1912
1912
  return t(), l("div", {
@@ -1917,28 +1917,28 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1917
1917
  key: 0,
1918
1918
  icon: "trash",
1919
1919
  class: "form__array-remove",
1920
- onClick: qe((Te) => e(So)(m.modelValue[S], we), ["prevent"])
1920
+ onClick: Re((Te) => e(So)(m.modelValue[S], we), ["prevent"])
1921
1921
  }, {
1922
1922
  default: y(() => [
1923
- D(C(e(R)("action.remove", { capitalize: !0 })), 1)
1923
+ D(C(e(q)("action.remove", { capitalize: !0 })), 1)
1924
1924
  ]),
1925
1925
  _: 2
1926
1926
  }, 1032, ["onClick"])), [
1927
1927
  [F]
1928
1928
  ]),
1929
- (t(), V(be(e(pt)(q, e(I))), E({
1929
+ (t(), V(be(e(pt)(R, e(I))), U({
1930
1930
  modelValue: m.modelValue[S][we],
1931
1931
  "onUpdate:modelValue": (Te) => m.modelValue[S][we] = Te,
1932
1932
  ref_for: !0
1933
1933
  }, {
1934
1934
  readOnly: e(_),
1935
- property: q.items,
1935
+ property: R.items,
1936
1936
  propertyName: S,
1937
1937
  parentCollection: e(u),
1938
1938
  parentPropertyName: m.parentPropertyName,
1939
1939
  columns: ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[S]) == 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),
1940
- validationErrors: g(S, we),
1941
- ...q.componentProps || {}
1940
+ validationErrors: k(S, we),
1941
+ ...R.componentProps || {}
1942
1942
  }, {
1943
1943
  onInput: (Te) => o("input", S),
1944
1944
  onChange: T[3] || (T[3] = (Te) => o("change", Te))
@@ -1946,30 +1946,30 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1946
1946
  ]);
1947
1947
  }), 128))
1948
1948
  ])) : b("", !0)
1949
- ])) : m.modelValue ? J((t(), V(be(e(pt)(q, e(I))), E({
1949
+ ])) : m.modelValue ? J((t(), V(be(e(pt)(R, e(I))), U({
1950
1950
  key: 6,
1951
1951
  modelValue: m.modelValue[S],
1952
1952
  "onUpdate:modelValue": (x) => m.modelValue[S] = x,
1953
1953
  ref_for: !0
1954
1954
  }, {
1955
1955
  readOnly: e(_),
1956
- property: q,
1956
+ property: R,
1957
1957
  propertyName: S,
1958
1958
  parentPropertyName: m.parentPropertyName,
1959
1959
  parentCollection: e(u),
1960
1960
  columns: ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[S]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = m.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
1961
- ...q.componentProps || {},
1962
- validationErrors: g(S)
1961
+ ...R.componentProps || {},
1962
+ validationErrors: k(S)
1963
1963
  }, {
1964
1964
  onInput: (x) => o("input", S),
1965
1965
  onChange: T[4] || (T[4] = (x) => o("change", x)),
1966
1966
  onClipboardCopy: T[5] || (T[5] = (x) => o("clipboardCopy", x))
1967
1967
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1968
- [X, N(q)]
1968
+ [X, N(R)]
1969
1969
  ]) : b("", !0),
1970
1970
  (ot = f.value) != null && ot[S] ? (t(), l("div", Ho, [
1971
- f.value[S].type ? (t(), l("span", Do, C(e(R)(`validation_error.${f.value[S].type}`)), 1)) : b("", !0),
1972
- f.value[S].detail ? (t(), l("span", Qo, C(e(R)(f.value[S].detail)), 1)) : b("", !0)
1971
+ f.value[S].type ? (t(), l("span", Do, C(e(q)(`validation_error.${f.value[S].type}`)), 1)) : b("", !0),
1972
+ f.value[S].detail ? (t(), l("span", Qo, C(e(q)(f.value[S].detail)), 1)) : b("", !0)
1973
1973
  ])) : b("", !0)
1974
1974
  ], 6);
1975
1975
  }), 128))
@@ -1988,28 +1988,28 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
1988
1988
  __name: "aeria-filter-panel",
1989
1989
  emits: ["update:modelValue"],
1990
1990
  setup(p, { emit: r }) {
1991
- const a = r, n = Ue(), o = Be(), c = e(fe(ze)), u = () => {
1991
+ const a = r, n = Ee(), o = Be(), c = e(fe(ze)), u = () => {
1992
1992
  if (n.pagination.offset = 0, n.$actions.filter(), a("update:modelValue", !1), "query" in o.currentRoute && o.currentRoute.query && typeof o.currentRoute.query == "object") {
1993
1993
  const _ = o.currentRoute.query;
1994
1994
  for (const d of Object.keys(_))
1995
1995
  d.startsWith(`${c}.`) && delete _[d];
1996
1996
  }
1997
- o.push(Re(o.currentRoute, {
1998
- query: qt(n)
1997
+ o.push(qe(o.currentRoute, {
1998
+ query: Rt(n)
1999
1999
  }));
2000
2000
  };
2001
2001
  return (_, d) => (t(), V(Se, {
2002
2002
  "close-hint": "",
2003
2003
  "fixed-right": "",
2004
2004
  title: _.t("filter_by", { capitalize: !0 }),
2005
- onClose: d[2] || (d[2] = ($) => a("update:modelValue", !1)),
2006
- onOverlayClick: d[3] || (d[3] = ($) => a("update:modelValue", !1))
2005
+ onClose: d[2] || (d[2] = (g) => a("update:modelValue", !1)),
2006
+ onOverlayClick: d[3] || (d[3] = (g) => a("update:modelValue", !1))
2007
2007
  }, {
2008
2008
  footer: y(() => [
2009
2009
  e(n).filtersCount > 0 ? (t(), V(_e, {
2010
2010
  key: 0,
2011
2011
  variant: "transparent",
2012
- onClick: d[1] || (d[1] = ($) => {
2012
+ onClick: d[1] || (d[1] = (g) => {
2013
2013
  e(n).$actions.clearFilters(), u(), a("update:modelValue", !1);
2014
2014
  })
2015
2015
  }, {
@@ -2037,9 +2037,9 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2037
2037
  }, 8, ["disabled"])
2038
2038
  ]),
2039
2039
  default: y(() => [
2040
- L(He, E({
2040
+ L(He, U({
2041
2041
  modelValue: e(n).filters,
2042
- "onUpdate:modelValue": d[0] || (d[0] = ($) => e(n).filters = $)
2042
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => e(n).filters = g)
2043
2043
  }, {
2044
2044
  searchOnly: !0,
2045
2045
  form: e(n).availableFilters,
@@ -2056,6 +2056,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2056
2056
  collection: {},
2057
2057
  form: {},
2058
2058
  float: { type: Boolean },
2059
+ fixedRight: { type: Boolean },
2059
2060
  visible: { default: !0 },
2060
2061
  modelValue: {},
2061
2062
  readOnly: { type: Boolean },
@@ -2069,32 +2070,33 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2069
2070
  a.modelValue && u.$actions.setItem(a.modelValue);
2070
2071
  });
2071
2072
  const _ = K(() => a.form ? u.$actions.useProperties(a.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
2072
- const { error: k, result: f } = await u.$actions.deepInsert();
2073
- k || (n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem());
2074
- }, { t: $ } = Bt(), i = () => {
2073
+ const { error: $, result: f } = await u.$actions.deepInsert();
2074
+ $ || (n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem());
2075
+ }, { t: g } = Bt(), i = () => {
2075
2076
  o.$actions.ask({
2076
2077
  action: () => {
2077
2078
  u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
2078
2079
  },
2079
- body: $("prompt.close_panel")
2080
+ body: g("prompt.close_panel")
2080
2081
  });
2081
2082
  }, v = () => o.$actions.spawnToast({
2082
2083
  icon: "info",
2083
- text: $("copied_to_clipboard")
2084
+ text: g("copied_to_clipboard")
2084
2085
  });
2085
- return ue(() => u.item._id, (k) => {
2086
- k === null && n("update:visible", !1);
2087
- }), (k, f) => {
2086
+ return ue(() => u.item._id, ($) => {
2087
+ $ === null && n("update:visible", !1);
2088
+ }), ($, f) => {
2088
2089
  const I = ne("clickable");
2089
- return t(), V(Se, E({
2090
- modelValue: k.visible,
2090
+ return t(), V(Se, U({
2091
+ modelValue: $.visible,
2091
2092
  loading: e(u).loading.get,
2092
- float: k.float
2093
+ float: $.float,
2094
+ fixedRight: $.fixedRight
2093
2095
  }, { onOverlayClick: i }), ce({
2094
2096
  extra: y(() => [
2095
- k.individualActions ? (t(), V(Ie, E({ key: 0 }, {
2097
+ $.individualActions ? (t(), V(Ie, U({ key: 0 }, {
2096
2098
  subject: e(u).item,
2097
- actions: k.individualActions.filter(({ action: s }) => s !== "spawnEdit"),
2099
+ actions: $.individualActions.filter(({ action: s }) => s !== "spawnEdit"),
2098
2100
  overlayLayer: 60
2099
2101
  }, {
2100
2102
  onActionClick: f[2] || (f[2] = (s) => n("update:visible", !1))
@@ -2115,14 +2117,14 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2115
2117
  }, 16)) : b("", !0)
2116
2118
  ]),
2117
2119
  default: y(() => [
2118
- L(He, E({
2120
+ L(He, U({
2119
2121
  modelValue: e(u).item,
2120
2122
  "onUpdate:modelValue": f[0] || (f[0] = (s) => e(u).item = s)
2121
2123
  }, {
2122
2124
  collection: e(c),
2123
- readOnly: k.readOnly,
2124
- includeId: k.includeId,
2125
- includeTimestamps: k.includeTimestamps,
2125
+ readOnly: $.readOnly,
2126
+ includeId: $.includeId,
2127
+ includeTimestamps: $.includeTimestamps,
2126
2128
  form: _.value,
2127
2129
  layout: e(u).description.formLayout || {}
2128
2130
  }, {
@@ -2130,33 +2132,33 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2130
2132
  onClipboardCopy: v,
2131
2133
  onAdd: f[1] || (f[1] = (s) => s.preventDefault())
2132
2134
  }), ce({ _: 2 }, [
2133
- H(Object.keys(k.$slots).filter((s) => s.startsWith("field-")), (s) => ({
2135
+ H(Object.keys($.$slots).filter((s) => s.startsWith("field-")), (s) => ({
2134
2136
  name: s,
2135
2137
  fn: y((M) => [
2136
- A(k.$slots, s, pe(Ve(M)))
2138
+ A($.$slots, s, pe(Ve(M)))
2137
2139
  ])
2138
2140
  }))
2139
2141
  ]), 1040, ["modelValue"])
2140
2142
  ]),
2141
2143
  _: 2
2142
2144
  }, [
2143
- k.$slots.header ? {
2145
+ $.$slots.header ? {
2144
2146
  name: "header",
2145
2147
  fn: y(() => [
2146
- A(k.$slots, "header")
2148
+ A($.$slots, "header")
2147
2149
  ]),
2148
2150
  key: "0"
2149
2151
  } : void 0,
2150
- k.readOnly ? void 0 : {
2152
+ $.readOnly ? void 0 : {
2151
2153
  name: "footer",
2152
2154
  fn: y(() => [
2153
- k.float ? (t(), V(_e, {
2155
+ $.float || $.fixedRight ? (t(), V(_e, {
2154
2156
  key: 0,
2155
2157
  variant: "transparent",
2156
2158
  onClick: i
2157
2159
  }, {
2158
2160
  default: y(() => [
2159
- D(C(e($)("action.cancel", { capitalize: !0 })), 1)
2161
+ D(C(e(g)("action.cancel", { capitalize: !0 })), 1)
2160
2162
  ]),
2161
2163
  _: 1
2162
2164
  })) : b("", !0),
@@ -2167,7 +2169,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2167
2169
  onClick: d
2168
2170
  }, {
2169
2171
  default: y(() => [
2170
- D(C(e($)("action.insert", { capitalize: !0 })), 1)
2172
+ D(C(e(g)("action.insert", { capitalize: !0 })), 1)
2171
2173
  ]),
2172
2174
  _: 1
2173
2175
  }, 8, ["disabled", "loading"])
@@ -2218,10 +2220,10 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2218
2220
  }, ra = {
2219
2221
  key: 1,
2220
2222
  class: "table__cell-container"
2221
- }, ua = { class: "table__cell-grid" }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["href"], ma = { key: 3 }, fa = { key: 1 }, va = { key: 2 }, ya = { key: 0 }, ba = { key: 1 }, ha = { key: 2 }, $a = {
2223
+ }, ua = { class: "table__cell-grid" }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["href"], ma = { key: 3 }, fa = { key: 1 }, va = { key: 2 }, ya = { key: 0 }, ba = { key: 1 }, ha = { key: 2 }, ga = {
2222
2224
  key: 1,
2223
2225
  class: "no-print"
2224
- }, ga = { class: "table__cell-actions" }, ka = {
2226
+ }, $a = { class: "table__cell-actions" }, ka = {
2225
2227
  key: 2,
2226
2228
  class: "no-print table__mobile-actions"
2227
2229
  }, Va = ["id"], Ca = { key: 1 }, Oa = ["colspan"], Aa = { class: "table__empty" }, Ia = /* @__PURE__ */ z({
@@ -2239,12 +2241,12 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2239
2241
  const a = p, n = r, o = Le(), c = a.collection || Me(), u = c ? re(typeof c == "string" ? c : c.value) : null, _ = K({
2240
2242
  get: () => u == null ? void 0 : u.selected,
2241
2243
  set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
2242
- }), d = K(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), $ = (f, I) => f.button ? typeof f.button == "object" ? Qe(I, f.button).satisfied : f.button : !1, i = (f) => {
2244
+ }), d = K(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), g = (f, I) => f.button ? typeof f.button == "object" ? Qe(I, f.button).satisfied : f.button : !1, i = (f) => {
2243
2245
  var s;
2244
2246
  const I = (s = a.layout) == null ? void 0 : s.actions;
2245
2247
  return !o.value.xl || !I || !a.actions ? [] : a.actions.filter((M) => {
2246
- const U = I[M.action];
2247
- return U && $(U, f);
2248
+ const E = I[M.action];
2249
+ return E && g(E, f);
2248
2250
  });
2249
2251
  }, v = (f) => {
2250
2252
  var s;
@@ -2252,24 +2254,24 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2252
2254
  return [];
2253
2255
  const I = (s = a.layout) == null ? void 0 : s.actions;
2254
2256
  return !o.value.xl || !I ? a.actions : a.actions.filter((M) => {
2255
- const U = I[M.action];
2257
+ const E = I[M.action];
2256
2258
  if (M.roles) {
2257
2259
  const Z = re("user");
2258
2260
  if (!bt(M.roles, Z.currentUser.roles))
2259
2261
  return !1;
2260
2262
  }
2261
- return !U || !$(U, f);
2263
+ return !E || !g(E, f);
2262
2264
  });
2263
- }, k = (f, I) => {
2264
- var U, Z;
2265
- const s = [], M = (Z = (U = a.layout) == null ? void 0 : U.actions) == null ? void 0 : Z[I.action];
2265
+ }, $ = (f, I) => {
2266
+ var E, Z;
2267
+ const s = [], M = (Z = (E = a.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[I.action];
2266
2268
  return M != null && M.if && (Qe(
2267
2269
  f,
2268
2270
  M.if
2269
2271
  ).satisfied || s.push("display: none;")), s.join("");
2270
2272
  };
2271
2273
  return (f, I) => {
2272
- var M, U, Z;
2274
+ var M, E, Z;
2273
2275
  const s = ne("clickable");
2274
2276
  return d.value > 0 || f.$slots.thead ? (t(), l("table", Jo, [
2275
2277
  f.$slots.thead ? (t(), l("thead", Zo, [
@@ -2286,7 +2288,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2286
2288
  (t(!0), l(P, null, H(Object.entries(f.columns), ([h, G], oe) => (t(), l("th", {
2287
2289
  key: `header-${oe}`,
2288
2290
  class: "table__header"
2289
- }, C(G.description || e(R)(h)), 1))), 128)),
2291
+ }, C(G.description || e(q)(h)), 1))), 128)),
2290
2292
  (M = f.actions) != null && M.length ? (t(), l("th", ea)) : b("", !0)
2291
2293
  ])
2292
2294
  ])),
@@ -2308,14 +2310,14 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2308
2310
  [kt, _.value]
2309
2311
  ])
2310
2312
  ])) : b("", !0),
2311
- (t(!0), l(P, null, H(Object.entries(f.columns), ([w, te], ge) => {
2313
+ (t(!0), l(P, null, H(Object.entries(f.columns), ([w, te], $e) => {
2312
2314
  var de, ae, O;
2313
2315
  return t(), l("td", {
2314
- key: `column-${h._id}-${ge}`
2316
+ key: `column-${h._id}-${$e}`
2315
2317
  }, [
2316
- B("div", sa, C(te.description || e(R)(w)), 1),
2318
+ B("div", sa, C(te.description || e(q)(w)), 1),
2317
2319
  `row-${w}` in f.$slots ? (t(), l("div", ia, [
2318
- A(f.$slots, `row-${w}`, E({ ref_for: !0 }, {
2320
+ A(f.$slots, `row-${w}`, U({ ref_for: !0 }, {
2319
2321
  store: e(u),
2320
2322
  column: w,
2321
2323
  property: te,
@@ -2330,7 +2332,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2330
2332
  "icon-classes": "aeria-blueish"
2331
2333
  }, {
2332
2334
  default: y(() => [
2333
- D(C(e(R)("yes")), 1)
2335
+ D(C(e(q)("yes")), 1)
2334
2336
  ]),
2335
2337
  _: 1
2336
2338
  })) : (t(), V(Y, {
@@ -2339,24 +2341,24 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2339
2341
  "icon-classes": "aeria-redish"
2340
2342
  }, {
2341
2343
  default: y(() => [
2342
- D(C(e(R)("no")), 1)
2344
+ D(C(e(q)("no")), 1)
2343
2345
  ]),
2344
2346
  _: 1
2345
2347
  }))
2346
2348
  ])) : ((de = e(me)(te)) == null ? void 0 : de.$ref) === "file" ? (t(), l("div", da, [
2347
2349
  h[w] ? (t(), l("div", pa, [
2348
- "items" in te && h[w][0] && /^image/.test(h[w][0].type) ? (t(), V(Ee, {
2350
+ "items" in te && h[w][0] && /^image/.test(h[w][0].type) ? (t(), V(Ue, {
2349
2351
  key: 0,
2350
2352
  modelValue: h[w][0].link,
2351
- "onUpdate:modelValue": (g) => h[w][0].link = g,
2353
+ "onUpdate:modelValue": (k) => h[w][0].link = k,
2352
2354
  expandable: "",
2353
2355
  meta: h[w][0],
2354
2356
  alt: "Row image",
2355
2357
  class: "table__picture"
2356
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[w].type) ? (t(), V(Ee, {
2358
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[w].type) ? (t(), V(Ue, {
2357
2359
  key: 1,
2358
2360
  modelValue: h[w].link,
2359
- "onUpdate:modelValue": (g) => h[w].link = g,
2361
+ "onUpdate:modelValue": (k) => h[w].link = k,
2360
2362
  expandable: "",
2361
2363
  meta: h[w],
2362
2364
  alt: "Row image",
@@ -2372,16 +2374,16 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2372
2374
  value: h[w],
2373
2375
  key: w,
2374
2376
  property: te
2375
- })), 1)) : (t(), l("span", ba, C(Array.isArray(h[w]) ? h[w].filter((g) => !!g).join(", ") : [void 0, null].includes(h[w]) ? "-" : h[w]), 1)),
2377
+ })), 1)) : (t(), l("span", ba, C(Array.isArray(h[w]) ? h[w].filter((k) => !!k).join(", ") : [void 0, null].includes(h[w]) ? "-" : h[w]), 1)),
2376
2378
  ((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(), l("div", ha, [
2377
- (t(!0), l(P, null, H(e(me)(te).indexes.slice(1, 2), (g, N) => (t(), l("div", {
2379
+ (t(!0), l(P, null, H(e(me)(te).indexes.slice(1, 2), (k, N) => (t(), l("div", {
2378
2380
  key: `subvalue-${N}`,
2379
2381
  class: "table__cell-subvalue"
2380
2382
  }, C(e(u).$actions.formatValue({
2381
2383
  value: h[w],
2382
2384
  key: w,
2383
2385
  property: te,
2384
- index: g
2386
+ index: k
2385
2387
  })), 1))), 128))
2386
2388
  ])) : b("", !0)
2387
2389
  ]))
@@ -2389,22 +2391,22 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2389
2391
  ]))
2390
2392
  ]);
2391
2393
  }), 128)),
2392
- (G = f.actions) != null && G.length && e(o).md ? (t(), l("td", $a, [
2393
- B("div", ga, [
2394
+ (G = f.actions) != null && G.length && e(o).md ? (t(), l("td", ga, [
2395
+ B("div", $a, [
2394
2396
  (t(!0), l(P, null, H(i(h), (w) => (t(), V(_e, {
2395
2397
  key: `action-${w.action}`,
2396
2398
  small: "",
2397
2399
  variant: "alt",
2398
2400
  icon: w.icon,
2399
- style: $e(k(h, w)),
2401
+ style: ge($(h, w)),
2400
2402
  onClick: (te) => w.click(h)
2401
2403
  }, {
2402
2404
  default: y(() => [
2403
- D(C(e(R)(w.label)), 1)
2405
+ D(C(e(q)(w.label)), 1)
2404
2406
  ]),
2405
2407
  _: 2
2406
2408
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2407
- v(h).length > 0 ? (t(), V(Ie, E({
2409
+ v(h).length > 0 ? (t(), V(Ie, U({
2408
2410
  key: 0,
2409
2411
  ref_for: !0
2410
2412
  }, {
@@ -2428,7 +2430,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2428
2430
  ])) : (oe = f.actions) != null && oe.length ? (t(), l("td", ka, [
2429
2431
  B("div", {
2430
2432
  class: "table__mobile-actions-grid",
2431
- style: $e(`grid-template-columns: repeat(${i(h).length + (v(h).length ? 1 : 0)}, 1fr);`)
2433
+ style: ge(`grid-template-columns: repeat(${i(h).length + (v(h).length ? 1 : 0)}, 1fr);`)
2432
2434
  }, [
2433
2435
  (t(!0), l(P, null, H(i(h), (w) => (t(), V(ye, {
2434
2436
  key: `action-${w.action}`,
@@ -2440,14 +2442,14 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2440
2442
  icon: w.icon || "gear"
2441
2443
  }, {
2442
2444
  default: y(() => [
2443
- D(C(e(R)(w.label)), 1)
2445
+ D(C(e(q)(w.label)), 1)
2444
2446
  ]),
2445
2447
  _: 2
2446
2448
  }, 1032, ["icon"])
2447
2449
  ]),
2448
2450
  _: 2
2449
2451
  }, 1032, ["onClick"]))), 128)),
2450
- v(h).length > 0 ? (t(), V(Ie, E({
2452
+ v(h).length > 0 ? (t(), V(Ie, U({
2451
2453
  key: 0,
2452
2454
  ref_for: !0
2453
2455
  }, {
@@ -2471,11 +2473,11 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2471
2473
  }), 128))
2472
2474
  ])),
2473
2475
  B("tfoot", null, [
2474
- f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((U = f.rows) != null && U.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Ca, [
2476
+ f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Ca, [
2475
2477
  B("td", {
2476
2478
  colspan: d.value + 1
2477
2479
  }, [
2478
- B("div", Aa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2480
+ B("div", Aa, C(e(q)("no_results", { capitalize: !0 })) + ". ", 1)
2479
2481
  ], 8, Oa)
2480
2482
  ])) : b("", !0)
2481
2483
  ])
@@ -2504,7 +2506,7 @@ const Ba = /* @__PURE__ */ Q(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
2504
2506
  });
2505
2507
  return (c, u) => (t(), l("div", null, [
2506
2508
  c.$slots.inner ? A(c.$slots, "inner", { key: 0 }) : b("", !0),
2507
- e(a).properties ? (t(), V(Ba, E({ key: 1 }, o.value, {
2509
+ e(a).properties ? (t(), V(Ba, U({ key: 1 }, o.value, {
2508
2510
  key: e(a).$id
2509
2511
  }), ce({ _: 2 }, [
2510
2512
  H(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
@@ -2532,10 +2534,10 @@ const Ba = /* @__PURE__ */ Q(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
2532
2534
  ], 2));
2533
2535
  }
2534
2536
  });
2535
- const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key: 0 }, qa = {
2537
+ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key: 0 }, Ra = {
2536
2538
  key: 1,
2537
2539
  class: "card__information"
2538
- }, Ra = /* @__PURE__ */ z({
2540
+ }, qa = /* @__PURE__ */ z({
2539
2541
  __name: "aeria-grid",
2540
2542
  props: {
2541
2543
  individualActions: {},
@@ -2558,12 +2560,12 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2558
2560
  }, ce({
2559
2561
  footer: y(() => [
2560
2562
  e(a).title ? (t(), l("div", ja, C(d[e(a).title]), 1)) : b("", !0),
2561
- e(a).information ? (t(), l("div", qa, C(d[e(a).information]), 1)) : b("", !0)
2563
+ e(a).information ? (t(), l("div", Ra, C(d[e(a).information]), 1)) : b("", !0)
2562
2564
  ]),
2563
2565
  actions: y(() => {
2564
- var $;
2566
+ var g;
2565
2567
  return [
2566
- ($ = c.individualActions) != null && $.length ? (t(), V(Ie, E({
2568
+ (g = c.individualActions) != null && g.length ? (t(), V(Ie, U({
2567
2569
  key: 0,
2568
2570
  ref_for: !0
2569
2571
  }, {
@@ -2586,12 +2588,12 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2586
2588
  ];
2587
2589
  }),
2588
2590
  default: y(() => {
2589
- var $;
2591
+ var g;
2590
2592
  return [
2591
- L(Ee, {
2593
+ L(Ue, {
2592
2594
  alt: "Item picture",
2593
2595
  expandable: "",
2594
- url: ($ = o(d[e(a).picture])) == null ? void 0 : $.link,
2596
+ url: (g = o(d[e(a).picture])) == null ? void 0 : g.link,
2595
2597
  meta: o(d[e(a).picture])
2596
2598
  }, null, 8, ["url", "meta"])
2597
2599
  ];
@@ -2601,12 +2603,12 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2601
2603
  e(a).badge && Array.isArray(d[e(a).badge]) ? {
2602
2604
  name: "badge",
2603
2605
  fn: y(() => [
2604
- (t(!0), l(P, null, H(d[e(a).badge], ($) => (t(), V(ke, {
2605
- key: `${d._id}-${$}`,
2606
+ (t(!0), l(P, null, H(d[e(a).badge], (g) => (t(), V(ke, {
2607
+ key: `${d._id}-${g}`,
2606
2608
  large: ""
2607
2609
  }, {
2608
2610
  default: y(() => [
2609
- D(C(e(a).translateBadge ? e(R)($) : $), 1)
2611
+ D(C(e(a).translateBadge ? e(q)(g) : g), 1)
2610
2612
  ]),
2611
2613
  _: 2
2612
2614
  }, 1024))), 128))
@@ -2617,7 +2619,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2617
2619
  fn: y(() => [
2618
2620
  L(ke, null, {
2619
2621
  default: y(() => [
2620
- D(C(e(a).translateBadge ? e(R)(d[e(a).badge]) : d[e(a).badge]), 1)
2622
+ D(C(e(a).translateBadge ? e(q)(d[e(a).badge]) : d[e(a).badge]), 1)
2621
2623
  ]),
2622
2624
  _: 2
2623
2625
  }, 1024)
@@ -2631,7 +2633,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2631
2633
  };
2632
2634
  }
2633
2635
  });
2634
- const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) => ({
2636
+ const _t = /* @__PURE__ */ Q(qa, [["__scopeId", "data-v-11c581da"]]), La = (p) => ({
2635
2637
  tabular: Sa,
2636
2638
  grid: _t,
2637
2639
  list: _t
@@ -2641,7 +2643,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2641
2643
  }, za = {
2642
2644
  key: 0,
2643
2645
  class: "crud__search"
2644
- }, Fa = { class: "crud__actions" }, Ea = { class: "crud__context-badge" }, Ua = { key: 0 }, Ha = {
2646
+ }, Fa = { class: "crud__actions" }, Ua = { class: "crud__context-badge" }, Ea = { key: 0 }, Ha = {
2645
2647
  key: 3,
2646
2648
  class: "crud__pagination"
2647
2649
  }, mt = 30, Da = /* @__PURE__ */ z({
@@ -2660,36 +2662,36 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2660
2662
  },
2661
2663
  emits: ["uiEvent"],
2662
2664
  setup(p, { emit: r }) {
2663
- const a = ee(!1), n = ee(!1), o = ee((...O) => null), c = ee(), u = p, _ = r, d = Be(), $ = yt({
2665
+ const a = ee(!1), n = ee(!1), o = ee((...O) => null), c = ee(), u = p, _ = r, d = Be(), g = yt({
2664
2666
  delay: 600
2665
- }), i = re("meta"), v = Le(), { reachedEnd: k, detach: f } = Ye(null, {
2667
+ }), i = re("meta"), v = Le(), { reachedEnd: $, detach: f } = Ye(null, {
2666
2668
  antecipate: 600
2667
2669
  }), I = !v.value.md || u.scrollPagination;
2668
- I && ue(k, (O) => {
2670
+ I && ue($, (O) => {
2669
2671
  O && s.pagination.recordsTotal > s.items.length && Z.value < mt && (Z.value += 1, G());
2670
2672
  });
2671
- const s = Rt(u.collection);
2673
+ const s = qt(u.collection);
2672
2674
  Xo(s, {
2673
2675
  persistInQuery: !u.noQueryPersistence
2674
2676
  });
2675
- const M = Ke(), U = u.action ? e(u.action) : Lt(s, d, M);
2676
- o.value = U[0], c.value = U[1];
2677
+ const M = Ke(), E = u.action ? e(u.action) : Lt(s, d, M);
2678
+ o.value = E[0], c.value = E[1];
2677
2679
  const Z = ee(0), h = ee(!1), G = async (O) => {
2678
2680
  s.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || s.$filters), Object.assign(s.activeFilters, s.filtersPreset);
2679
- const g = {
2681
+ const k = {
2680
2682
  filters: s.activeFilters,
2681
2683
  limit: s.pagination.limit,
2682
2684
  offset: s.pagination.offset,
2683
2685
  project: s.preferredTableProperties.length > 0 ? s.preferredTableProperties : s.description.table || Object.keys(s.properties)
2684
2686
  };
2685
- Z.value > 0 && (g.limit = 15, g.offset = Z.value * g.limit), s.description.tableMeta && (g.project = g.project.concat(s.description.tableMeta)), O && Object.assign(g, O), s.loading.getAll = !0;
2686
- const { error: N, result: le } = await s.$actions.retrieveItems(g);
2687
+ Z.value > 0 && (k.limit = 15, k.offset = Z.value * k.limit), s.description.tableMeta && (k.project = k.project.concat(s.description.tableMeta)), O && Object.assign(k, O), s.loading.getAll = !0;
2688
+ const { error: N, result: le } = await s.$actions.retrieveItems(k);
2687
2689
  if (N)
2688
2690
  return;
2689
2691
  const { data: m, pagination: T } = le;
2690
2692
  s.pagination.recordsCount = T.recordsCount, s.pagination.recordsTotal = T.recordsTotal, Z.value === 0 && s.items.splice(0), s.items.push(...m), s.loading.getAll = !1, h.value = !0;
2691
2693
  }, oe = async (O) => {
2692
- d.push(Re(d.currentRoute.value, {
2694
+ d.push(qe(d.currentRoute.value, {
2693
2695
  query: {
2694
2696
  offset: O.offset,
2695
2697
  limit: O.limit
@@ -2699,8 +2701,8 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2699
2701
  ue(() => [
2700
2702
  d.currentRoute.value.path,
2701
2703
  d.currentRoute.value.query.section
2702
- ], async (O, g) => {
2703
- if (g && g[0] === O[0] && g[1] === O[1])
2704
+ ], async (O, k) => {
2705
+ if (k && k[0] === O[0] && k[1] === O[1])
2704
2706
  return;
2705
2707
  const N = d.currentRoute.value;
2706
2708
  if (i.view.title = u.collection, !u.noFetch && (!N.query._popstate || s.itemsCount === 0)) {
@@ -2711,7 +2713,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2711
2713
  immediate: !0,
2712
2714
  flush: "post"
2713
2715
  });
2714
- const [te] = $((O) => (d.push(Re(d.currentRoute.value, {
2716
+ const [te] = g((O) => (d.push(qe(d.currentRoute.value, {
2715
2717
  query: {
2716
2718
  search: O || void 0
2717
2719
  }
@@ -2726,27 +2728,27 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2726
2728
  ue(() => s.textQuery, (O) => {
2727
2729
  te(O);
2728
2730
  });
2729
- const ge = (O) => {
2731
+ const $e = (O) => {
2730
2732
  O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
2731
2733
  };
2732
2734
  Vt(() => {
2733
2735
  s.$actions.clearFilters(), s.textQuery = "", f();
2734
2736
  }), ue(() => c.value, async (O) => {
2735
2737
  var le;
2736
- const g = Ae(O);
2738
+ const k = Ae(O);
2737
2739
  let N;
2738
- if (g)
2739
- if ((g.name === "spawnEdit" || g.name === "duplicate") && (N = s.$actions.get({
2740
+ if (k)
2741
+ if ((k.name === "spawnEdit" || k.name === "duplicate") && (N = s.$actions.get({
2740
2742
  filters: {
2741
- _id: g.params._id
2743
+ _id: k.params._id
2742
2744
  }
2743
- })), g.name === "spawnAdd")
2744
- s.$actions.clearItem(), (le = g.params) != null && le.item && (s.$actions.setItem(g.params.item), Object.keys(g.params.item).forEach((m) => {
2745
+ })), k.name === "spawnAdd")
2746
+ s.$actions.clearItem(), (le = k.params) != null && le.item && (s.$actions.setItem(k.params.item), Object.keys(k.params.item).forEach((m) => {
2745
2747
  delete s.referenceItem[m];
2746
2748
  })), a.value = "add";
2747
- else if (g.name === "spawnEdit")
2748
- s.$actions.setItem(g.params), a.value = "edit";
2749
- else if (g.name === "duplicate") {
2749
+ else if (k.name === "spawnEdit")
2750
+ s.$actions.setItem(k.params), a.value = "edit";
2751
+ else if (k.name === "duplicate") {
2750
2752
  await N;
2751
2753
  const m = Object.entries(s.item).reduce((T, [F, X]) => {
2752
2754
  if (!(F in s.properties))
@@ -2757,7 +2759,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2757
2759
  const S = s.properties[F];
2758
2760
  if (S.readOnly)
2759
2761
  return T;
2760
- const q = (ie) => {
2762
+ const R = (ie) => {
2761
2763
  const j = me(S);
2762
2764
  if (!j)
2763
2765
  return ie;
@@ -2769,14 +2771,14 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2769
2771
  }
2770
2772
  return ie;
2771
2773
  };
2772
- return X = Array.isArray(X) ? X.map(q) : q(X), {
2774
+ return X = Array.isArray(X) ? X.map(R) : R(X), {
2773
2775
  ...T,
2774
2776
  [F]: X
2775
2777
  };
2776
2778
  }, {});
2777
2779
  s.$actions.setItem(m), delete s.item._id, s.referenceItem = {}, a.value = "duplicate";
2778
2780
  } else
2779
- _("uiEvent", g);
2781
+ _("uiEvent", k);
2780
2782
  }, {
2781
2783
  deep: !0
2782
2784
  }), ue(() => a, ({ value: O }) => {
@@ -2789,37 +2791,39 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2789
2791
  ...O
2790
2792
  }));
2791
2793
  }), ae = K(() => s.actions.filter((O) => !O.button));
2792
- return he(ze, K(() => u.collection)), (O, g) => {
2793
- var m, T, F, X, S, q, ie;
2794
+ return he(ze, K(() => u.collection)), (O, k) => {
2795
+ var m, T, F, X, S, R, ie;
2794
2796
  const N = ne("clickable"), le = ne("loading");
2795
2797
  return t(), l(P, null, [
2796
2798
  n.value ? (t(), V(Yo, {
2797
2799
  key: e(s).$id,
2798
2800
  modelValue: n.value,
2799
- "onUpdate:modelValue": g[0] || (g[0] = (j) => n.value = j)
2801
+ "onUpdate:modelValue": k[0] || (k[0] = (j) => n.value = j)
2800
2802
  }, null, 8, ["modelValue"])) : b("", !0),
2801
- a.value ? (t(), V(Ko, {
2803
+ a.value ? (t(), V(Ko, U({
2802
2804
  key: 1,
2803
2805
  visible: a.value,
2804
- "onUpdate:visible": g[1] || (g[1] = (j) => a.value = j),
2805
- "fixed-right": "",
2806
+ "onUpdate:visible": k[1] || (k[1] = (j) => a.value = j),
2807
+ "fixed-right": ""
2808
+ }, {
2806
2809
  collection: O.collection,
2807
- "individual-actions": de.value,
2808
- onCancel: g[2] || (g[2] = (j) => a.value = !1)
2809
- }, ce({
2810
+ individualActions: de.value
2811
+ }, {
2812
+ onCancel: k[2] || (k[2] = (j) => a.value = !1)
2813
+ }), ce({
2810
2814
  header: y(() => [
2811
2815
  B("span", null, C((() => {
2812
2816
  switch (a.value) {
2813
2817
  case "add":
2814
- return e(R)("action.add", { capitalize: !0 });
2818
+ return e(q)("action.add", { capitalize: !0 });
2815
2819
  case "duplicate":
2816
- return e(R)("action.duplicate", { capitalize: !0 });
2820
+ return e(q)("action.duplicate", { capitalize: !0 });
2817
2821
  case "edit":
2818
2822
  default:
2819
- return e(R)("action.edit", { capitalize: !0 });
2823
+ return e(q)("action.edit", { capitalize: !0 });
2820
2824
  }
2821
2825
  })()), 1),
2822
- B("span", null, " " + C(e(R)(O.collection)), 1)
2826
+ B("span", null, " " + C(e(q)(O.collection)), 1)
2823
2827
  ]),
2824
2828
  _: 2
2825
2829
  }, [
@@ -2829,12 +2833,12 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2829
2833
  A(O.$slots, j, pe(Ve(se)), void 0, !0)
2830
2834
  ])
2831
2835
  }))
2832
- ]), 1032, ["visible", "collection", "individual-actions"])) : b("", !0),
2836
+ ]), 1040, ["visible"])) : b("", !0),
2833
2837
  !O.noActions && (e(s).description.search || Object.keys(e(s).availableFilters).length > 0 || ((m = e(s)) == null ? void 0 : m.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && e(s).description.layout && ((T = e(s).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), l("div", Ma, [
2834
2838
  e(s).description.search ? (t(), l("div", za, [
2835
- L(Ce, E({
2839
+ L(Ce, U({
2836
2840
  modelValue: e(s).textQuery,
2837
- "onUpdate:modelValue": g[3] || (g[3] = (j) => e(s).textQuery = j)
2841
+ "onUpdate:modelValue": k[3] || (k[3] = (j) => e(s).textQuery = j)
2838
2842
  }, {
2839
2843
  property: {
2840
2844
  type: "string",
@@ -2868,16 +2872,16 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2868
2872
  fn: y(() => [
2869
2873
  J((t(), V(Y, {
2870
2874
  icon: "funnel",
2871
- onClick: g[4] || (g[4] = (j) => n.value = !0)
2875
+ onClick: k[4] || (k[4] = (j) => n.value = !0)
2872
2876
  }, {
2873
2877
  default: y(() => [
2874
- D(C(e(R)("filters", { capitalize: !0 })), 1)
2878
+ D(C(e(q)("filters", { capitalize: !0 })), 1)
2875
2879
  ]),
2876
2880
  _: 1
2877
2881
  })), [
2878
2882
  [N]
2879
2883
  ]),
2880
- B("div", Ea, [
2884
+ B("div", Ua, [
2881
2885
  e(s).filtersCount ? (t(), V(ke, { key: 0 }, {
2882
2886
  default: y(() => [
2883
2887
  D(C(e(s).filtersCount), 1)
@@ -2893,10 +2897,10 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2893
2897
  fn: y(() => [
2894
2898
  J((t(), V(Y, {
2895
2899
  icon: "table",
2896
- onClick: g[5] || (g[5] = (j) => ge(e(s)))
2900
+ onClick: k[5] || (k[5] = (j) => $e(e(s)))
2897
2901
  }, {
2898
2902
  default: y(() => [
2899
- D(C(e(R)("change_layout", { capitalize: !0 })), 1)
2903
+ D(C(e(q)("change_layout", { capitalize: !0 })), 1)
2900
2904
  ]),
2901
2905
  _: 1
2902
2906
  })), [
@@ -2915,7 +2919,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2915
2919
  onClick: (ve) => o.value(j)({ _id: e(s).selected.map((Oe) => Oe._id) })
2916
2920
  }, {
2917
2921
  default: y(() => [
2918
- D(C(e(R)(j.label, { capitalize: !0 })), 1)
2922
+ D(C(e(q)(j.label, { capitalize: !0 })), 1)
2919
2923
  ]),
2920
2924
  _: 2
2921
2925
  }, 1032, ["icon", "disabled", "onClick"])) : b("", !0)
@@ -2925,10 +2929,10 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2925
2929
  key: 1,
2926
2930
  variant: "alt",
2927
2931
  icon: "funnel",
2928
- onClick: g[6] || (g[6] = (j) => n.value = !0)
2932
+ onClick: k[6] || (k[6] = (j) => n.value = !0)
2929
2933
  }, {
2930
2934
  default: y(() => [
2931
- g[8] || (g[8] = B("div", null, "Filtros", -1)),
2935
+ k[8] || (k[8] = B("div", null, "Filtros", -1)),
2932
2936
  e(s).filtersCount ? (t(), V(ke, { key: 0 }, {
2933
2937
  default: y(() => [
2934
2938
  D(C(e(s).filtersCount), 1)
@@ -2945,7 +2949,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2945
2949
  onClick: (ve) => o.value(j)({ _id: e(s).selected.map((Oe) => Oe._id) })
2946
2950
  }, {
2947
2951
  default: y(() => [
2948
- D(C(e(R)(j.label, { capitalize: !0 })), 1)
2952
+ D(C(e(q)(j.label, { capitalize: !0 })), 1)
2949
2953
  ]),
2950
2954
  _: 2
2951
2955
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
@@ -2953,34 +2957,34 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2953
2957
  ])
2954
2958
  ])) : b("", !0),
2955
2959
  J((t(), l("div", null, [
2956
- e(s).itemsCount === 0 && !e(s).loading.getAll && h.value && (e(w) || O.$slots.empty) ? (t(), l("div", Ua, [
2957
- e(w) ? (t(), V(be(e(w)), pe(E({ key: 0 }, {
2960
+ e(s).itemsCount === 0 && !e(s).loading.getAll && h.value && (e(w) || O.$slots.empty) ? (t(), l("div", Ea, [
2961
+ e(w) ? (t(), V(be(e(w)), pe(U({ key: 0 }, {
2958
2962
  collection: e(s).$id
2959
2963
  })), {
2960
2964
  default: y(() => [
2961
2965
  e(s).filtersCount === 0 && e(s).description.actions && "spawnAdd" in e(s).description.actions ? (t(), V(_e, {
2962
2966
  key: 0,
2963
2967
  icon: "plus",
2964
- onClick: g[7] || (g[7] = (j) => o.value({
2968
+ onClick: k[7] || (k[7] = (j) => o.value({
2965
2969
  action: "spawnAdd",
2966
2970
  event: "spawnAdd"
2967
2971
  })())
2968
2972
  }, {
2969
2973
  default: y(() => [
2970
- D(C(e(R)("add_first_item", { capitalize: !0 })), 1)
2974
+ D(C(e(q)("add_first_item", { capitalize: !0 })), 1)
2971
2975
  ]),
2972
2976
  _: 1
2973
2977
  })) : b("", !0)
2974
2978
  ]),
2975
2979
  _: 1
2976
- }, 16)) : A(O.$slots, "empty", pe(E({ key: 1 }, {
2980
+ }, 16)) : A(O.$slots, "empty", pe(U({ key: 1 }, {
2977
2981
  collection: e(s).$id
2978
2982
  })), void 0, !0)
2979
- ])) : O.$slots.component ? A(O.$slots, "component", pe(E({ key: 1 }, {
2983
+ ])) : O.$slots.component ? A(O.$slots, "component", pe(U({ key: 1 }, {
2980
2984
  store: e(s)
2981
- })), void 0, !0) : (t(), V(be(e(La)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), E({ key: 2 }, {
2985
+ })), void 0, !0) : (t(), V(be(e(La)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), U({ key: 2 }, {
2982
2986
  individualActions: de.value,
2983
- layoutOptions: ((q = O.layout) == null ? void 0 : q.options) || e(s).layout.options,
2987
+ layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(s).layout.options,
2984
2988
  componentProps: O.componentProps
2985
2989
  }, {
2986
2990
  "component-name": ((ie = O.layout) == null ? void 0 : ie.name) || e(s).$currentLayout
@@ -3003,7 +3007,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
3003
3007
  [le, (!e(I) || Z.value === mt) && e(s).loading.getAll]
3004
3008
  ]),
3005
3009
  !e(I) && !O.noControls && !e(s).loading.getAll && e(s).itemsCount > 0 ? (t(), l("div", Ha, [
3006
- L(qn, {
3010
+ L(Rn, {
3007
3011
  pagination: e(s).pagination,
3008
3012
  onPaginate: oe
3009
3013
  }, null, 8, ["pagination"])
@@ -3012,7 +3016,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
3012
3016
  };
3013
3017
  }
3014
3018
  });
3015
- const Ol = /* @__PURE__ */ Q(Da, [["__scopeId", "data-v-147880c3"]]), Qa = { class: "prompt" }, Ga = /* @__PURE__ */ z({
3019
+ const Ol = /* @__PURE__ */ Q(Da, [["__scopeId", "data-v-51ba9d5b"]]), Qa = { class: "prompt" }, Ga = /* @__PURE__ */ z({
3016
3020
  __name: "aeria-prompt",
3017
3021
  props: {
3018
3022
  title: {},
@@ -3031,7 +3035,7 @@ const Ol = /* @__PURE__ */ Q(Da, [["__scopeId", "data-v-147880c3"]]), Qa = { cla
3031
3035
  footer: y(() => [
3032
3036
  B("div", {
3033
3037
  class: "prompt__options",
3034
- style: $e(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
3038
+ style: ge(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
3035
3039
  }, [
3036
3040
  (t(!0), l(P, null, H(Object.entries(n.options), ([c, u], _) => (t(), V(ye, {
3037
3041
  key: `option-${_}`,
@@ -3085,7 +3089,7 @@ const Wa = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { cla
3085
3089
  onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
3086
3090
  onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(a.itr))
3087
3091
  }, [
3088
- L(Y, E(
3092
+ L(Y, U(
3089
3093
  a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3090
3094
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3091
3095
  ), null, 16),
@@ -3132,7 +3136,7 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3132
3136
  _: 3
3133
3137
  })),
3134
3138
  A(n.$slots, "default", {}, void 0, !0),
3135
- L(Se, E({
3139
+ L(Se, U({
3136
3140
  modelValue: e(r).modal.visible,
3137
3141
  "onUpdate:modelValue": o[0] || (o[0] = (u) => e(r).modal.visible = u),
3138
3142
  float: "",
@@ -3151,19 +3155,19 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3151
3155
  ]),
3152
3156
  _: 1
3153
3157
  }, 16, ["modelValue"]),
3154
- e(r).prompt.visible ? (t(), V(Wa, pe(E({ key: 0 }, e(r).prompt)), {
3158
+ e(r).prompt.visible ? (t(), V(Wa, pe(U({ key: 0 }, e(r).prompt)), {
3155
3159
  default: y(() => [
3156
3160
  D(C(e(r).prompt.body), 1)
3157
3161
  ]),
3158
3162
  _: 1
3159
3163
  }, 16)) : b("", !0),
3160
3164
  B("div", Pa, [
3161
- (t(!0), l(P, null, H(e(r).toasts, (u) => (t(), V(Ja, E({ ref_for: !0 }, u, {
3165
+ (t(!0), l(P, null, H(e(r).toasts, (u) => (t(), V(Ja, U({ ref_for: !0 }, u, {
3162
3166
  key: `toast-${u.itr}`
3163
3167
  }), {
3164
3168
  default: y(() => [
3165
3169
  B("div", {
3166
- innerHTML: e(R)(u.text)
3170
+ innerHTML: e(q)(u.text)
3167
3171
  }, null, 8, Na)
3168
3172
  ]),
3169
3173
  _: 2
@@ -3214,18 +3218,18 @@ const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
3214
3218
  }
3215
3219
  return Object.keys(a)[0];
3216
3220
  }), u = (_) => {
3217
- r.query && n.push(Re(n.currentRoute.value, {
3221
+ r.query && n.push(qe(n.currentRoute.value, {
3218
3222
  query: {
3219
3223
  [r.query]: _
3220
3224
  }
3221
- })), r.param && n.push(Re(n.currentRoute.value, {
3225
+ })), r.param && n.push(qe(n.currentRoute.value, {
3222
3226
  params: {
3223
3227
  [r.param]: _
3224
3228
  }
3225
3229
  }));
3226
3230
  };
3227
3231
  return (_, d) => {
3228
- const $ = ne("clickable");
3232
+ const g = ne("clickable");
3229
3233
  return t(), l("div", ol, [
3230
3234
  e(o).md && !_.dropdown ? (t(), l("div", al, [
3231
3235
  _.$slots.default ? (t(), l("div", ll, [
@@ -3237,7 +3241,7 @@ const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
3237
3241
  tabs__tab: !0,
3238
3242
  "tabs__tab--current": i === c.value || !c.value && v === 0
3239
3243
  }),
3240
- onClick: (k) => u(i)
3244
+ onClick: ($) => u(i)
3241
3245
  }, [
3242
3246
  A(_.$slots, i, {}, void 0, !0)
3243
3247
  ], 10, sl))), 128))
@@ -3256,7 +3260,7 @@ const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
3256
3260
  ]),
3257
3261
  _: 2
3258
3262
  }, 1032, ["active"])), [
3259
- [$]
3263
+ [g]
3260
3264
  ])
3261
3265
  ]),
3262
3266
  _: 2
@@ -3295,18 +3299,18 @@ const cl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
3295
3299
  },
3296
3300
  setup(p) {
3297
3301
  const r = p, n = Be().currentRoute, o = Ke(), c = K(() => r.collection ? je(r.collection, o) : typeof n.value.meta.collection == "string" ? je(n.value.meta.collection, o) : typeof n.value.params.collection == "string" ? je(n.value.params.collection, o) : null), u = async (_, d) => {
3298
- const { error: $, result: i } = await d.$functions[_.badgeFunction]({
3302
+ const { error: g, result: i } = await d.$functions[_.badgeFunction]({
3299
3303
  filters: _.filters
3300
3304
  });
3301
- return $ ? 0 : i;
3305
+ return g ? 0 : i;
3302
3306
  };
3303
3307
  return (_, d) => c.value && c.value.description.filtersPresets ? (t(), V(cl, {
3304
3308
  key: 0,
3305
3309
  dropdown: "",
3306
3310
  query: "section"
3307
3311
  }, ce({ _: 2 }, [
3308
- H(Object.entries(c.value.description.filtersPresets), ([$, i]) => ({
3309
- name: $,
3312
+ H(Object.entries(c.value.description.filtersPresets), ([g, i]) => ({
3313
+ name: g,
3310
3314
  fn: y(() => [
3311
3315
  B("div", {
3312
3316
  class: "topbar__preset",
@@ -3317,10 +3321,10 @@ const cl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
3317
3321
  icon: i.icon
3318
3322
  }, {
3319
3323
  default: y(() => [
3320
- D(C(i.label || e(R)($, { plural: !0 })), 1)
3324
+ D(C(i.label || e(q)(g, { plural: !0 })), 1)
3321
3325
  ]),
3322
3326
  _: 2
3323
- }, 1032, ["icon"])) : (t(), l("div", _l, C(i.label || e(R)($, { plural: !0 })), 1)),
3327
+ }, 1032, ["icon"])) : (t(), l("div", _l, C(i.label || e(q)(g, { plural: !0 })), 1)),
3324
3328
  i.badgeFunction ? (t(), V(ke, { key: 2 }, {
3325
3329
  default: y(() => [
3326
3330
  L(e(dl), {
@@ -3393,25 +3397,25 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3393
3397
  {
3394
3398
  path: "signin",
3395
3399
  name: "/user/signin",
3396
- component: () => import("./signin-4e6cf45d.js"),
3400
+ component: () => import("./signin-26a139e5.js"),
3397
3401
  meta: {
3398
- title: "Autenticação"
3402
+ title: "Sign in"
3399
3403
  }
3400
3404
  },
3401
3405
  {
3402
3406
  path: "signup",
3403
3407
  name: "/user/signup",
3404
- component: () => import("./signup-2725cba2.js"),
3408
+ component: () => import("./signup-ed2fe38c.js"),
3405
3409
  meta: {
3406
- title: "Registro"
3410
+ title: "Sign up"
3407
3411
  }
3408
3412
  },
3409
3413
  {
3410
3414
  path: "activation",
3411
3415
  name: "/user/activation",
3412
- component: () => import("./activation-0305ef50.js"),
3416
+ component: () => import("./activation-1cfc1c9a.js"),
3413
3417
  meta: {
3414
- title: "Ativação"
3418
+ title: "Activate user"
3415
3419
  }
3416
3420
  }
3417
3421
  ])
@@ -3431,7 +3435,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3431
3435
  name: "/dashboard/:collection",
3432
3436
  props: !0,
3433
3437
  components: {
3434
- default: () => import("./index-b172110d.js"),
3438
+ default: () => import("./index-98351a08.js"),
3435
3439
  topbar: () => Promise.resolve().then(() => vl)
3436
3440
  },
3437
3441
  meta: {
@@ -3443,7 +3447,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3443
3447
  name: "/dashboard/:collection/:id",
3444
3448
  props: !0,
3445
3449
  components: {
3446
- default: () => import("./_id_-2095a2d8.js")
3450
+ default: () => import("./_id_-69ab5436.js")
3447
3451
  },
3448
3452
  meta: {
3449
3453
  title: "%viewTitle%"
@@ -3461,18 +3465,18 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3461
3465
  children: [
3462
3466
  {
3463
3467
  path: "profile",
3464
- component: () => import("./index-e90638e8.js"),
3468
+ component: () => import("./index-ec0d5969.js"),
3465
3469
  meta: {
3466
- title: "Meu perfil",
3470
+ title: "User profile",
3467
3471
  icon: "user-square"
3468
3472
  }
3469
3473
  },
3470
3474
  {
3471
3475
  path: "changepass",
3472
3476
  name: "/dashboard/user/changepass",
3473
- component: () => import("./index-a6e389ed.js"),
3477
+ component: () => import("./index-62726b0a.js"),
3474
3478
  meta: {
3475
- title: "Mudar senha",
3479
+ title: "Change password",
3476
3480
  icon: "lock"
3477
3481
  }
3478
3482
  }
@@ -3492,10 +3496,10 @@ export {
3492
3496
  Bl as _,
3493
3497
  _e as a,
3494
3498
  Y as b,
3495
- Un as c,
3499
+ En as c,
3496
3500
  Ol as d,
3497
3501
  Ko as e,
3498
- Ee as f,
3502
+ Ue as f,
3499
3503
  Il as g,
3500
3504
  Se as h,
3501
3505
  Q as i,
@@ -3508,7 +3512,7 @@ export {
3508
3512
  Yo as p,
3509
3513
  yn as q,
3510
3514
  Al as r,
3511
- qn as s,
3515
+ Rn as s,
3512
3516
  Ba as t,
3513
3517
  cl as u,
3514
3518
  _o as v,