@aeria-ui/ui 0.0.76 → 0.0.77

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,7 +1,7 @@
1
- import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as O, inject as _e, computed as G, createElementVNode as C, mergeProps as Q, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, Teleport as Je, onMounted as bt, watch as ue, createVNode as F, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as De, popScopeId as Qe, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ve, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
1
+ import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as O, inject as _e, computed as G, createElementVNode as C, mergeProps as Q, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Je, onMounted as bt, watch as ue, createVNode as F, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as De, popScopeId as Qe, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as L, useI18n as Lt } from "@aeria-ui/i18n";
3
3
  import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Ht, convertFromSearchQuery as Dt, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
4
- import { arraysIntersect as Vt, deepClone as ke, getReferenceProperty as me, convertConditionToQuery as Gt, freshItem as Wt, isRequired as Kt, evaluateCondition as Ye, deepMerge as Me } from "@aeriajs/common";
4
+ import { arraysIntersect as Vt, deepClone as Ve, getReferenceProperty as me, convertConditionToQuery as Gt, freshItem as Wt, isRequired as Kt, evaluateCondition as Ye, deepMerge as Me } from "@aeriajs/common";
5
5
  import { useStore as ie, getStoreId as Fe, useParentStore as Ie, STORE_ID as Ue, getGlobalStateManager as Pe } from "@aeria-ui/state-management";
6
6
  import { useRouter as Ae } from "vue-router";
7
7
  const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
@@ -30,7 +30,7 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
30
30
  }, [
31
31
  x((t(), s("div", {
32
32
  class: "accordion__header",
33
- onClick: (d) => r.value === c ? r.value = null : r.value = c
33
+ onClick: (p) => r.value === c ? r.value = null : r.value = c
34
34
  }, [
35
35
  n.enumerate ? (t(), s("span", Yt, k(_ + 1) + ". ", 1)) : y("", !0),
36
36
  W(" " + k(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
@@ -97,10 +97,11 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
97
97
  props: {
98
98
  icon: {},
99
99
  size: {},
100
+ fill: {},
100
101
  medium: { type: Boolean },
101
- reactive: { type: [Boolean, null] },
102
+ reactive: { type: Boolean },
102
103
  iconRight: { type: Boolean },
103
- fill: {}
104
+ active: { type: Boolean }
104
105
  },
105
106
  setup(u) {
106
107
  const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = G(() => {
@@ -111,6 +112,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
111
112
  class: X(`
112
113
  icon
113
114
  ${e(l) && "icon--reactive"}
115
+ ${a.active && "icon--active"}
114
116
  ${a.$slots.default ? "icon--centered" : "icon--standalone"}
115
117
  `)
116
118
  }, [
@@ -140,7 +142,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
140
142
  ], 2));
141
143
  }
142
144
  });
143
- const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { class: "panel__header-left" }, on = { key: 1 }, an = {
145
+ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { class: "panel__header-left" }, on = { key: 1 }, an = {
144
146
  key: 2,
145
147
  style: { "margin-left": "auto" }
146
148
  }, ln = /* @__PURE__ */ E({
@@ -167,11 +169,11 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
167
169
  },
168
170
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
169
171
  setup(u, { emit: r }) {
170
- const l = u, n = r, a = G(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), d = () => {
172
+ const l = u, n = r, a = G(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), p = () => {
171
173
  n("update:modelValue", !1), n("close");
172
174
  }, h = () => {
173
175
  n("overlayClick");
174
- }, p = (o) => {
176
+ }, d = (o) => {
175
177
  n("update:collapsed", o), i.value = o;
176
178
  };
177
179
  return (o, m) => {
@@ -218,21 +220,21 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
218
220
  key: 0,
219
221
  reactive: "",
220
222
  icon: "plus",
221
- onClick: m[0] || (m[0] = (j) => p(!i.value))
223
+ onClick: m[0] || (m[0] = (j) => d(!i.value))
222
224
  }, null, 512)), [
223
225
  [A]
224
226
  ]) : o.collapsible && !i.value ? x((t(), $(Z, {
225
227
  key: 1,
226
228
  reactive: "",
227
229
  icon: "minus",
228
- onClick: m[1] || (m[1] = (j) => p(!i.value))
230
+ onClick: m[1] || (m[1] = (j) => d(!i.value))
229
231
  }, null, 512)), [
230
232
  [A]
231
233
  ]) : o.closeHint ? x((t(), $(Z, {
232
234
  key: 2,
233
235
  reactive: "",
234
236
  icon: "x",
235
- onClick: d
237
+ onClick: p
236
238
  }, null, 512)), [
237
239
  [A]
238
240
  ]) : y("", !0)
@@ -369,21 +371,21 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
369
371
  },
370
372
  emits: ["actionClick"],
371
373
  setup(u, { emit: r }) {
372
- It((d) => ({
373
- "0cfe51de": _.value.x,
374
- "0cfe51df": _.value.y
374
+ It((p) => ({
375
+ e0bbcfc0: _.value.x,
376
+ e0bbcfbe: _.value.y
375
377
  }));
376
- const l = r, n = J(null), a = J(!1), i = (d) => d == null ? void 0 : d.filter((h) => {
378
+ const l = r, n = J(null), a = J(!1), i = (p) => p == null ? void 0 : p.filter((h) => {
377
379
  if (h.roles) {
378
- const p = ie("user");
379
- return Vt(h.roles, p.currentUser.roles);
380
+ const d = ie("user");
381
+ return Vt(h.roles, d.currentUser.roles);
380
382
  }
381
383
  return !0;
382
- }), c = (d, h) => {
383
- const p = ke(h);
384
- d.click(p), l("actionClick", {
385
- action: d,
386
- subject: p
384
+ }), c = (p, h) => {
385
+ const d = Ve(h);
386
+ p.click(d), l("actionClick", {
387
+ action: p,
388
+ subject: d
387
389
  }), a.value = !1;
388
390
  }, _ = G(() => {
389
391
  if (!n.value)
@@ -391,17 +393,17 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
391
393
  x: 0,
392
394
  y: 0
393
395
  };
394
- const d = n.value.getBoundingClientRect().top, h = n.value.getBoundingClientRect().left, p = n.value.offsetHeight;
396
+ const p = n.value.getBoundingClientRect().top, h = n.value.getBoundingClientRect().left, d = n.value.offsetHeight;
395
397
  return {
396
398
  _: a.value,
397
399
  x: Math.floor(h) + "px",
398
- y: Math.floor(d + p) + "px"
400
+ y: Math.floor(p + d) + "px"
399
401
  };
400
402
  });
401
- return (d, h) => {
402
- const p = oe("overlay");
403
+ return (p, h) => {
404
+ const d = oe("overlay");
403
405
  return t(), s(N, null, [
404
- Object.keys(d.$slots).some((o) => o !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
406
+ Object.keys(p.$slots).some((o) => o !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
405
407
  key: 0,
406
408
  ref_key: "contextmenu",
407
409
  ref: n,
@@ -411,7 +413,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
411
413
  class: "contextmenu__trigger",
412
414
  onClick: h[0] || (h[0] = (o) => a.value = !0)
413
415
  }, [
414
- O(d.$slots, "default", {}, void 0, !0)
416
+ O(p.$slots, "default", de(ge({
417
+ visible: a.value
418
+ })), void 0, !0)
415
419
  ])
416
420
  ], 512)) : y("", !0),
417
421
  a.value ? (t(), $(Je, {
@@ -428,33 +432,33 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
428
432
  }, {
429
433
  default: v(() => [
430
434
  C("div", vn, [
431
- d.$slots.header ? (t(), s("div", yn, [
432
- O(d.$slots, "header", {}, void 0, !0)
435
+ p.$slots.header ? (t(), s("div", yn, [
436
+ O(p.$slots, "header", {}, void 0, !0)
433
437
  ])) : y("", !0),
434
- Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (t(), s("div", {
438
+ Object.keys(p.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (t(), s("div", {
435
439
  key: 1,
436
440
  class: "content__section",
437
441
  onClick: h[1] || (h[1] = (o) => a.value = !1)
438
442
  }, [
439
- (t(!0), s(N, null, D(Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, m) => (t(), $(ve, {
443
+ (t(!0), s(N, null, D(Object.keys(p.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, m) => (t(), $(ve, {
440
444
  key: `slot-${m}`,
441
445
  class: "content__item content__item--reactive"
442
446
  }, {
443
447
  default: v(() => [
444
- O(d.$slots, o, {}, void 0, !0)
448
+ O(p.$slots, o, {}, void 0, !0)
445
449
  ]),
446
450
  _: 2
447
451
  }, 1024))), 128))
448
452
  ])) : y("", !0),
449
- d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
453
+ p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
450
454
  key: 2,
451
455
  class: "content__section",
452
456
  onClick: h[2] || (h[2] = (o) => a.value = !1)
453
457
  }, [
454
- (t(!0), s(N, null, D(i(d.actions), (o, m) => (t(), $(ve, {
458
+ (t(!0), s(N, null, D(i(p.actions), (o, m) => (t(), $(ve, {
455
459
  key: `action-${m}`,
456
460
  class: "content__item content__item--reactive",
457
- onClick: (A) => c(o, d.subject)
461
+ onClick: (A) => c(o, p.subject)
458
462
  }, {
459
463
  default: v(() => [
460
464
  o.icon ? (t(), $(Z, {
@@ -470,13 +474,13 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
470
474
  _: 2
471
475
  }, 1032, ["onClick"]))), 128))
472
476
  ])) : y("", !0),
473
- d.$slots.extra ? (t(), s("div", {
477
+ p.$slots.extra ? (t(), s("div", {
474
478
  key: 3,
475
479
  class: "content__section",
476
480
  onClick: h[3] || (h[3] = (o) => a.value = !1)
477
481
  }, [
478
482
  C("div", hn, [
479
- d.$slots.extra ? O(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
483
+ p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
480
484
  ])
481
485
  ])) : y("", !0)
482
486
  ])
@@ -484,9 +488,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
484
488
  _: 3
485
489
  }, 8, ["modelValue"])), [
486
490
  [
487
- p,
491
+ d,
488
492
  {
489
- layer: d.overlayLayer,
493
+ layer: p.overlayLayer,
490
494
  click: () => {
491
495
  a.value = !1;
492
496
  }
@@ -500,7 +504,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
500
504
  };
501
505
  }
502
506
  });
503
- const Ce = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-66a4ee79"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
507
+ const Ce = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-c28b8435"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
504
508
  __name: "aeria-info",
505
509
  props: {
506
510
  where: { default: "top" }
@@ -554,9 +558,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
554
558
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
555
559
  setup(u, { emit: r }) {
556
560
  var B;
557
- const l = u, n = r, a = l.property || {}, i = "icon" in a || "inputType" in a && a.inputType === "search", c = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), d = !c && (l.readOnly || a.readOnly), h = (R) => (n("clipboardCopy", R), navigator.clipboard.writeText(R)), p = _e("inputVariant", l.variant) || "normal", o = {
561
+ const l = u, n = r, a = l.property || {}, i = "icon" in a || "inputType" in a && a.inputType === "search", c = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !c && (l.readOnly || a.readOnly), h = (R) => (n("clipboardCopy", R), navigator.clipboard.writeText(R)), d = _e("inputVariant", l.variant) || "normal", o = {
558
562
  name: l.propertyName,
559
- readonly: d,
563
+ readonly: p,
560
564
  type: (() => {
561
565
  if ("type" in a)
562
566
  switch (a.type) {
@@ -648,7 +652,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
648
652
  key: 2,
649
653
  class: X(`
650
654
  input__container
651
- input__container--${e(p)}
655
+ input__container--${e(d)}
652
656
  `)
653
657
  }, [
654
658
  x(C("textarea", {
@@ -657,7 +661,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
657
661
  value: R.modelValue,
658
662
  class: X(`
659
663
  input__textarea
660
- input__input--${e(p)}
664
+ input__input--${e(d)}
661
665
  `),
662
666
  onInput: P
663
667
  }, null, 42, In), [
@@ -667,7 +671,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
667
671
  key: 3,
668
672
  class: X(`
669
673
  input__container
670
- input__container--${e(p)}
674
+ input__container--${e(d)}
671
675
  `)
672
676
  }, [
673
677
  x(C("input", Q(o, {
@@ -675,9 +679,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
675
679
  "data-component": "input",
676
680
  class: `
677
681
  input__input
678
- input__input--${e(p)}
682
+ input__input--${e(d)}
679
683
  ${e(i) && "input__input--icon"}
680
- ${e(d) && "input__input--readOnly"}
684
+ ${e(p) && "input__input--readOnly"}
681
685
  `,
682
686
  onInput: P,
683
687
  onChange: Y[0] || (Y[0] = (V) => n("change", V))
@@ -689,10 +693,10 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
689
693
  icon: e(a).icon || "magnifying-glass",
690
694
  class: X(`
691
695
  input__icon
692
- input__icon--${e(p)}
696
+ input__icon--${e(d)}
693
697
  `)
694
698
  }, null, 8, ["icon", "class"])) : y("", !0),
695
- e(d) ? (t(), s("div", Bn, [
699
+ e(p) ? (t(), s("div", Bn, [
696
700
  F(kn, null, {
697
701
  text: v(() => [
698
702
  W("Copiar")
@@ -732,13 +736,13 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
732
736
  },
733
737
  emits: ["update:modelValue", "change"],
734
738
  setup(u, { emit: r }) {
735
- const l = u, n = r, a = J(null), i = l.property, c = (p) => {
736
- l.booleanRef && (_.value = p), n("update:modelValue", (p == null ? void 0 : p._id) || p), n("change", (p == null ? void 0 : p._id) || p);
739
+ const l = u, n = r, a = J(null), i = l.property, c = (d) => {
740
+ l.booleanRef && (_.value = d), n("update:modelValue", (d == null ? void 0 : d._id) || d), n("change", (d == null ? void 0 : d._id) || d);
737
741
  }, _ = l.booleanRef ? (() => {
738
- const p = J(l.modelValue);
742
+ const d = J(l.modelValue);
739
743
  return G({
740
744
  get: () => {
741
- switch (p.value) {
745
+ switch (d.value) {
742
746
  case "true":
743
747
  return !0;
744
748
  case "false":
@@ -748,20 +752,20 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
748
752
  }
749
753
  },
750
754
  set: (m) => {
751
- p.value = m;
755
+ d.value = m;
752
756
  }
753
757
  });
754
758
  })() : G({
755
759
  get: () => l.modelValue,
756
760
  set: c
757
- }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, h = G(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
758
- return l.multiple && ue(() => l.modelValue, (p) => {
761
+ }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, h = G(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
762
+ return l.multiple && ue(() => l.modelValue, (d) => {
759
763
  var m;
760
764
  if (!a.value)
761
765
  return;
762
766
  const o = a.value.querySelector('option[data-selected="true"]');
763
- o && o.removeAttribute("data-selected"), (m = a.value.querySelector(`option[value="${p}"]`)) == null || m.setAttribute("data-selected", "true");
764
- }), (p, o) => (t(), s("select", Q({
767
+ o && o.removeAttribute("data-selected"), (m = a.value.querySelector(`option[value="${d}"]`)) == null || m.setAttribute("data-selected", "true");
768
+ }), (d, o) => (t(), s("select", Q({
765
769
  ref_key: "select",
766
770
  ref: a,
767
771
  value: e(_)
@@ -771,7 +775,7 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
771
775
  class: {
772
776
  select: !0,
773
777
  "select--multiple": !!h.value,
774
- "select--outline": !p.noOutline
778
+ "select--outline": !d.noOutline
775
779
  },
776
780
  onChange: o[0] || (o[0] = (m) => c(m.target.value))
777
781
  }), [
@@ -785,10 +789,10 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
785
789
  return t(), s("option", {
786
790
  key: m,
787
791
  value: m,
788
- "data-selected": d(m)
792
+ "data-selected": p(m)
789
793
  }, k((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, jn);
790
794
  }), 128)),
791
- O(p.$slots, "default", {}, void 0, !0)
795
+ O(d.$slots, "default", {}, void 0, !0)
792
796
  ], 16, Sn));
793
797
  }
794
798
  });
@@ -809,7 +813,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
809
813
  set: (h) => {
810
814
  l.pagination.limit = Number(h);
811
815
  }
812
- }), c = J(a.value ? a.value + 1 : 1), _ = G(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
816
+ }), c = J(a.value ? a.value + 1 : 1), _ = G(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (h) => {
813
817
  a.value = h === "previous" ? a.value - 1 : a.value + 1;
814
818
  };
815
819
  return ue([
@@ -820,10 +824,10 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
820
824
  offset: a.value * i.value,
821
825
  limit: i.value
822
826
  });
823
- }), (h, p) => (t(), s("div", Ln, [
827
+ }), (h, d) => (t(), s("div", Ln, [
824
828
  F(Ge, {
825
829
  modelValue: i.value,
826
- "onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o),
830
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => i.value = o),
827
831
  property: {
828
832
  enum: [],
829
833
  icon: "list"
@@ -840,7 +844,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
840
844
  }, 8, ["modelValue"]),
841
845
  C("div", Mn, [
842
846
  F(ve, {
843
- onClick: p[1] || (p[1] = (o) => a.value = 0)
847
+ onClick: d[1] || (d[1] = (o) => a.value = 0)
844
848
  }, {
845
849
  default: v(() => [
846
850
  F(Z, {
@@ -852,7 +856,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
852
856
  }),
853
857
  F(ve, {
854
858
  disabled: a.value === 0,
855
- onClick: p[2] || (p[2] = (o) => d("previous"))
859
+ onClick: d[2] || (d[2] = (o) => p("previous"))
856
860
  }, {
857
861
  default: v(() => [
858
862
  F(Z, {
@@ -866,12 +870,12 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
866
870
  (t(), $(Oe, {
867
871
  key: a.value,
868
872
  modelValue: c.value,
869
- "onUpdate:modelValue": p[3] || (p[3] = (o) => c.value = o),
873
+ "onUpdate:modelValue": d[3] || (d[3] = (o) => c.value = o),
870
874
  property: {
871
875
  type: "number",
872
876
  minimum: 1
873
877
  },
874
- onChange: p[4] || (p[4] = (o) => {
878
+ onChange: d[4] || (d[4] = (o) => {
875
879
  a.value = c.value === 0 ? 0 : c.value - 1;
876
880
  })
877
881
  }, null, 8, ["modelValue"])),
@@ -879,7 +883,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
879
883
  ]),
880
884
  F(ve, {
881
885
  disabled: a.value === _.value - 1,
882
- onClick: p[5] || (p[5] = (o) => d("next"))
886
+ onClick: d[5] || (d[5] = (o) => p("next"))
883
887
  }, {
884
888
  default: v(() => [
885
889
  F(Z, {
@@ -890,7 +894,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
890
894
  _: 1
891
895
  }, 8, ["disabled"]),
892
896
  F(ve, {
893
- onClick: p[6] || (p[6] = (o) => a.value = _.value - 1)
897
+ onClick: d[6] || (d[6] = (o) => a.value = _.value - 1)
894
898
  }, {
895
899
  default: v(() => [
896
900
  F(Z, {
@@ -929,19 +933,19 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
929
933
  return "checkbox";
930
934
  }
931
935
  return "radio";
932
- })(), c = r, _ = l.value || !1, d = G({
936
+ })(), c = r, _ = l.value || !1, p = G({
933
937
  get: () => {
934
- var p;
938
+ var d;
935
939
  if (n) {
936
940
  if ("type" in n && n.type === "boolean")
937
941
  return !!l.value;
938
942
  if ("items" in n)
939
- return (p = l.modelValue) == null ? void 0 : p.includes(l.value);
943
+ return (d = l.modelValue) == null ? void 0 : d.includes(l.value);
940
944
  }
941
945
  return l.modelValue === l.value;
942
946
  },
943
947
  set: () => {
944
- var p;
948
+ var d;
945
949
  if (!a) {
946
950
  if (n) {
947
951
  if ("type" in n && n.type === "boolean") {
@@ -949,7 +953,7 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
949
953
  return;
950
954
  }
951
955
  if ("items" in n) {
952
- if ((p = l.modelValue) != null && p.includes(_)) {
956
+ if ((d = l.modelValue) != null && d.includes(_)) {
953
957
  c("update:modelValue", l.modelValue.filter((o) => o !== _));
954
958
  return;
955
959
  }
@@ -960,10 +964,10 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
960
964
  c("update:modelValue", l.value);
961
965
  }
962
966
  }
963
- }), h = (p) => {
964
- a && p.preventDefault();
967
+ }), h = (d) => {
968
+ a && d.preventDefault();
965
969
  };
966
- return (p, o) => {
970
+ return (d, o) => {
967
971
  var A, b;
968
972
  const m = oe("clickable");
969
973
  return x((t(), s("label", {
@@ -973,26 +977,26 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
973
977
  `)
974
978
  }, [
975
979
  x(C("input", Q({
976
- "onUpdate:modelValue": o[0] || (o[0] = (S) => d.value = S)
980
+ "onUpdate:modelValue": o[0] || (o[0] = (S) => p.value = S)
977
981
  }, {
978
982
  type: e(i),
979
983
  readOnly: e(a),
980
- checked: d.value
984
+ checked: p.value
981
985
  }, {
982
986
  class: "checkbox__input",
983
987
  onClick: h
984
988
  }), null, 16), [
985
- [At, d.value]
989
+ [At, p.value]
986
990
  ]),
987
991
  C("div", En, [
988
992
  C("div", null, [
989
- p.$slots.description ? O(p.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
993
+ d.$slots.description ? O(d.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
990
994
  key: 1,
991
995
  innerHTML: (A = e(n)) != null && A.translate ? e(L)(e(_)) : e(_)
992
- }, null, 8, Hn)) : O(p.$slots, "default", { key: 2 }, void 0, !0)
996
+ }, null, 8, Hn)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
993
997
  ]),
994
998
  C("div", Dn, [
995
- p.$slots.hint ? O(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
999
+ d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
996
1000
  key: 1,
997
1001
  innerHTML: e(n).hint
998
1002
  }, null, 8, Qn)) : y("", !0)
@@ -1028,7 +1032,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1028
1032
  "update:modelValue",
1029
1033
  "items" in l.property ? [] : ""
1030
1034
  );
1031
- }), (_, d) => (t(), s("div", {
1035
+ }), (_, p) => (t(), s("div", {
1032
1036
  class: "options",
1033
1037
  style: be(`
1034
1038
  --columns: ${_.columns};
@@ -1069,8 +1073,8 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1069
1073
  const l = u, n = r, a = l.property, i = l.readOnly || (a == null ? void 0 : a.readOnly), c = () => {
1070
1074
  i || (n("change", !l.modelValue), n("update:modelValue", !l.modelValue));
1071
1075
  };
1072
- return (_, d) => {
1073
- var p;
1076
+ return (_, p) => {
1077
+ var d;
1074
1078
  const h = oe("clickable");
1075
1079
  return t(), s("div", Pn, [
1076
1080
  x((t(), s("a", {
@@ -1093,7 +1097,7 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1093
1097
  blocked: e(i)
1094
1098
  }]
1095
1099
  ]),
1096
- _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", xn, k(((p = e(a)) == null ? void 0 : p.description) || _.propertyName), 1))
1100
+ _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", xn, k(((d = e(a)) == null ? void 0 : d.description) || _.propertyName), 1))
1097
1101
  ]);
1098
1102
  };
1099
1103
  }
@@ -1153,7 +1157,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1153
1157
  max-height: 60vh;
1154
1158
  object-fit: contain;
1155
1159
  `,
1156
- onClick: i[0] || (i[0] = (d) => n.value = !0)
1160
+ onClick: i[0] || (i[0] = (p) => n.value = !0)
1157
1161
  }, null, 8, lo),
1158
1162
  (_ = a.meta) != null && _.owner ? (t(), s("div", so, " Criado por " + k(a.meta.owner.name) + " em " + k(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1159
1163
  ])), [
@@ -1228,13 +1232,13 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1228
1232
  const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = G(() => {
1229
1233
  var b;
1230
1234
  return c.value ? URL.createObjectURL(c.value) : (b = l.modelValue) == null ? void 0 : b.link;
1231
- }), d = G(() => {
1235
+ }), p = G(() => {
1232
1236
  var b, S, j;
1233
1237
  return /^image\//.test((b = l.modelValue) == null ? void 0 : b.type) && !((S = c.value) != null && S.type) || /^image\//.test((j = c.value) == null ? void 0 : j.type);
1234
1238
  }), h = (b) => new Promise((S) => {
1235
1239
  const j = new FileReader();
1236
1240
  j.onload = () => S(j.result), j.readAsArrayBuffer(b);
1237
- }), p = () => {
1241
+ }), d = () => {
1238
1242
  l.modelValue.tempId && n("update:modelValue", null), c.value = null;
1239
1243
  }, o = async (b) => {
1240
1244
  c.value = b.target.files[0];
@@ -1265,7 +1269,7 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1265
1269
  var j, P, B, R, Y, w;
1266
1270
  return t(), s("div", mo, [
1267
1271
  c.value || (j = b.modelValue) != null && j._id ? (t(), s("div", fo, [
1268
- d.value ? (t(), $(He, {
1272
+ p.value ? (t(), $(He, {
1269
1273
  key: 0,
1270
1274
  modelValue: _.value,
1271
1275
  "onUpdate:modelValue": S[0] || (S[0] = (te) => _.value = te),
@@ -1291,7 +1295,7 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1291
1295
  c.value ? (t(), s("div", bo, [
1292
1296
  F(re, {
1293
1297
  small: "",
1294
- onClick: ze(p, ["prevent"])
1298
+ onClick: ze(d, ["prevent"])
1295
1299
  }, {
1296
1300
  default: v(() => [
1297
1301
  W(k(e(L)("action.clear", { capitalize: !0 })), 1)
@@ -1355,12 +1359,12 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1355
1359
  },
1356
1360
  emits: ["update:modelValue", "change"],
1357
1361
  setup(u, { emit: r }) {
1358
- const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), d = G(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1359
- if (d.value)
1362
+ const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), p = G(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1363
+ if (p.value)
1360
1364
  return;
1361
1365
  const m = (b) => b.filter((S) => !!(S != null && S._id)), A = "items" in i ? m(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : n.modelValue;
1362
1366
  Array.isArray(A) ? a("update:modelValue", A.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
1363
- }, p = async (m) => {
1367
+ }, d = async (m) => {
1364
1368
  if (c.purge && (m != null && m.purge)) {
1365
1369
  const { _id: b } = n.item;
1366
1370
  await _.$actions.remove({
@@ -1385,14 +1389,14 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1385
1389
  });
1386
1390
  return;
1387
1391
  }
1388
- return d.value ? p() : h();
1392
+ return p.value ? d() : h();
1389
1393
  };
1390
1394
  return (m, A) => {
1391
1395
  const b = oe("clickable");
1392
1396
  return x((t(), s("div", {
1393
1397
  class: X({
1394
1398
  item: !0,
1395
- "item--selected": d.value
1399
+ "item--selected": p.value
1396
1400
  }),
1397
1401
  onClick: o
1398
1402
  }, [
@@ -1431,16 +1435,16 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1431
1435
  },
1432
1436
  emits: ["update:modelValue", "change", "update:panel"],
1433
1437
  setup(u, { emit: r }) {
1434
- const l = u, n = me(l.property), a = l.panel !== void 0 ? G(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, h = n.indexes;
1438
+ const l = u, n = me(l.property), a = l.panel !== void 0 ? G(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), p = _ ? Ie() : null, h = n.indexes;
1435
1439
  ye(Ue, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1436
- const p = J(l.modelValue), o = J({
1440
+ const d = J(l.modelValue), o = J({
1437
1441
  data: [],
1438
1442
  pagination: {}
1439
1443
  }), m = G(() => o.value.data), A = G(() => o.value.pagination), b = J(0), S = J(h[0]), j = J(!1), P = J({}), B = () => {
1440
1444
  const z = {};
1441
1445
  if (_) {
1442
1446
  const U = e(_);
1443
- z[U] = d;
1447
+ z[U] = p;
1444
1448
  }
1445
1449
  return n.constraints ? Gt(n.constraints, z) : {};
1446
1450
  }, R = () => {
@@ -1500,9 +1504,9 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1500
1504
  l.selectOnly && w();
1501
1505
  });
1502
1506
  const ne = (z) => {
1503
- p.value = z, l.selectOnly || i("update:modelValue", z);
1507
+ d.value = z, l.selectOnly || i("update:modelValue", z);
1504
1508
  }, se = () => {
1505
- ae(), i("update:modelValue", p.value);
1509
+ ae(), i("update:modelValue", d.value);
1506
1510
  };
1507
1511
  return (z, U) => {
1508
1512
  const f = oe("clickable");
@@ -1577,8 +1581,8 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1577
1581
  property: z.property
1578
1582
  }, {
1579
1583
  key: `matching-${g._id}`,
1580
- modelValue: p.value,
1581
- "onUpdate:modelValue": U[3] || (U[3] = (I) => p.value = I)
1584
+ modelValue: d.value,
1585
+ "onUpdate:modelValue": U[3] || (U[3] = (I) => d.value = I)
1582
1586
  }), null, 16, ["modelValue"]))), 128))
1583
1587
  ]),
1584
1588
  _: 1
@@ -1672,7 +1676,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1672
1676
  u ?? (u = []);
1673
1677
  const n = "items" in r ? r.items : r;
1674
1678
  if ("$ref" in n) {
1675
- const a = ie(n.$ref, l), i = ke(a.$freshItem);
1679
+ const a = ie(n.$ref, l), i = Ve(a.$freshItem);
1676
1680
  return u.push(i);
1677
1681
  }
1678
1682
  return "properties" in n ? u.push(Wt(n)) : "type" in n && n.type === "boolean" ? u.push({}) : u.push(null);
@@ -1723,11 +1727,11 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1723
1727
  $t(() => {
1724
1728
  n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
1725
1729
  });
1726
- const i = n.property && me(n.property), c = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), d = c ? ie(e(c)) : null;
1730
+ const i = n.property && me(n.property), c = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), p = c ? ie(e(c)) : null;
1727
1731
  !c && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1728
1732
  collection prop, some features may not work as intended`);
1729
- const h = J(!1), p = G(() => {
1730
- const f = (() => !n.form && n.property ? "properties" in n.property ? n.property.properties : d == null ? void 0 : d.properties : n.form)();
1733
+ const h = J(!1), d = G(() => {
1734
+ const f = (() => !n.form && n.property ? "properties" in n.property ? n.property.properties : void 0 : n.form)();
1731
1735
  if (!f)
1732
1736
  return;
1733
1737
  const M = {};
@@ -1744,19 +1748,19 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1744
1748
  f.created_at || (M.created_at = H), f.created_at || (M.updated_at = H);
1745
1749
  }
1746
1750
  return Object.assign(M, f), M;
1747
- }), o = G(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1751
+ }), o = G(() => n.layout || (p == null ? void 0 : p.description.formLayout)), m = (f) => {
1748
1752
  const M = _e(f, n[f]);
1749
1753
  return n[f] && ye(f, n[f]), M;
1750
- }, A = G(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, j = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1754
+ }, A = G(() => n.validationErrors !== null ? n.validationErrors : p == null ? void 0 : p.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, j = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1751
1755
  c && ye(Ue, c), ye("searchOnly", n.searchOnly);
1752
- const R = (f) => p.value ? Object.entries(p.value).filter(([M, H]) => !H.noForm && f([
1756
+ const R = (f) => d.value ? Object.entries(d.value).filter(([M, H]) => !H.noForm && f([
1753
1757
  M,
1754
1758
  H
1755
1759
  ])) : null, Y = (f, M) => {
1756
1760
  var g;
1757
1761
  if (n.searchOnly || !c || n.includeId && f === "_id" || n.includeTimestamps && M.isTimestamp)
1758
1762
  return !0;
1759
- const H = n.property && "properties" in n.property ? n.property.form : (g = d == null ? void 0 : d.description) == null ? void 0 : g.form;
1763
+ const H = n.property && "properties" in n.property ? n.property.form : (g = p == null ? void 0 : p.description) == null ? void 0 : g.form;
1760
1764
  return !H || H.includes(f);
1761
1765
  }, w = R(([f, M]) => Y(f, M)), te = qe(), V = {}, T = (f, M) => {
1762
1766
  var q, fe, we, Se;
@@ -1768,7 +1772,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1768
1772
  n.modelValue,
1769
1773
  g.if
1770
1774
  );
1771
- Te.satisfied || (V[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? ke(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1775
+ Te.satisfied || (V[f] && (p ? n.modelValue[f] = typeof p.$freshItem[f] == "object" ? Ve(p.$freshItem[f]) : p.$freshItem[f] : n.modelValue[f] = [
1772
1776
  void 0,
1773
1777
  null
1774
1778
  ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), H.push("display: none;")), V[f] = Te.satisfied;
@@ -1786,11 +1790,11 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1786
1790
  padding: 1rem 0;
1787
1791
  margin: 1rem 0;
1788
1792
  `)), H.join("");
1789
- }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = G(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), ne = G(() => n.form ? Ft(
1793
+ }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = G(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : p == null ? void 0 : p.description.required), ne = G(() => n.form ? Ft(
1790
1794
  n.modelValue,
1791
1795
  n.form,
1792
1796
  le.value,
1793
- d == null ? void 0 : d.description
1797
+ p == null ? void 0 : p.description
1794
1798
  ) : !0), se = (f, M) => {
1795
1799
  var H;
1796
1800
  return (H = A.value) != null && H[f] && (typeof A.value[f].index != "number" || A.value[f].index === M) ? A.value[f].errors : null;
@@ -1833,8 +1837,9 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1833
1837
  key: 1,
1834
1838
  ref_for: !0
1835
1839
  }, {
1836
- propery: q,
1837
- properyName: I,
1840
+ readOnly: e(_),
1841
+ property: q,
1842
+ propertyName: I,
1838
1843
  modelValue: f.modelValue
1839
1844
  }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[f.layout.fields[I].component.name] ? (t(), $(he(e(S)[f.layout.fields[I].component.name]), Q({
1840
1845
  key: 2,
@@ -1973,7 +1978,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1973
1978
  ]),
1974
1979
  f.$slots.after ? O(f.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1975
1980
  f.$slots.footer ? (t(), s("div", oa, [
1976
- O(f.$slots, "footer", pe(Ve({
1981
+ O(f.$slots, "footer", de(ge({
1977
1982
  isInsertReady: ne.value
1978
1983
  })), void 0, !0)
1979
1984
  ])) : y("", !0)
@@ -1981,7 +1986,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1981
1986
  };
1982
1987
  }
1983
1988
  });
1984
- const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @__PURE__ */ E({
1989
+ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-cd01186c"]]), la = /* @__PURE__ */ E({
1985
1990
  __name: "aeria-filter-panel",
1986
1991
  emits: ["update:modelValue"],
1987
1992
  setup(u, { emit: r }) {
@@ -1990,24 +1995,24 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
1990
1995
  const _ = Object.assign({
1991
1996
  query: {}
1992
1997
  }, a.currentRoute.value);
1993
- for (const d of Object.keys(_.query))
1994
- d.startsWith(`${i}.`) && delete _.query[d];
1998
+ for (const p of Object.keys(_.query))
1999
+ p.startsWith(`${i}.`) && delete _.query[p];
1995
2000
  a.currentRoute.value.query = {}, a.push(Me(_, {
1996
2001
  query: Et(n)
1997
2002
  }));
1998
2003
  };
1999
- return (_, d) => (t(), $(Be, {
2004
+ return (_, p) => (t(), $(Be, {
2000
2005
  "close-hint": "",
2001
2006
  "fixed-right": "",
2002
2007
  title: _.t("filter_by", { capitalize: !0 }),
2003
- onClose: d[2] || (d[2] = (h) => l("update:modelValue", !1)),
2004
- onOverlayClick: d[3] || (d[3] = (h) => l("update:modelValue", !1))
2008
+ onClose: p[2] || (p[2] = (h) => l("update:modelValue", !1)),
2009
+ onOverlayClick: p[3] || (p[3] = (h) => l("update:modelValue", !1))
2005
2010
  }, {
2006
2011
  footer: v(() => [
2007
2012
  e(n).filtersCount > 0 ? (t(), $(re, {
2008
2013
  key: 0,
2009
2014
  variant: "transparent",
2010
- onClick: d[1] || (d[1] = (h) => {
2015
+ onClick: p[1] || (p[1] = (h) => {
2011
2016
  e(n).$actions.clearFilters(), c(), l("update:modelValue", !1);
2012
2017
  })
2013
2018
  }, {
@@ -2037,7 +2042,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2037
2042
  default: v(() => [
2038
2043
  F(We, Q({
2039
2044
  modelValue: e(n).filters,
2040
- "onUpdate:modelValue": d[0] || (d[0] = (h) => e(n).filters = h)
2045
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => e(n).filters = h)
2041
2046
  }, {
2042
2047
  searchOnly: !0,
2043
2048
  form: e(n).availableFilters,
@@ -2061,16 +2066,16 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2061
2066
  const l = u, n = r, a = ie("meta"), i = ie(l.collection || a.view.collection), c = _e("individualActions", []), _ = async () => {
2062
2067
  const { error: o } = await i.$actions.deepInsert();
2063
2068
  o || n("update:modelValue", !1);
2064
- }, { t: d } = Lt(), h = () => {
2069
+ }, { t: p } = Lt(), h = () => {
2065
2070
  a.$actions.ask({
2066
2071
  action: () => {
2067
2072
  i.$actions.clearItem(), i.validationErrors = {}, n("cancel");
2068
2073
  },
2069
- body: d("prompt.close_panel")
2074
+ body: p("prompt.close_panel")
2070
2075
  });
2071
- }, p = () => a.$actions.spawnToast({
2076
+ }, d = () => a.$actions.spawnToast({
2072
2077
  icon: "info",
2073
- text: d("copied_to_clipboard")
2078
+ text: p("copied_to_clipboard")
2074
2079
  });
2075
2080
  return ue(() => i.item._id, (o) => {
2076
2081
  o === null && n("update:modelValue", !1);
@@ -2083,16 +2088,20 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2083
2088
  extra: v(() => [
2084
2089
  F(Ce, Q({
2085
2090
  subject: e(i).item,
2086
- actions: e(c).filter(({ action: b }) => b !== "ui:spawnEdit")
2091
+ actions: e(c).filter(({ action: b }) => b !== "ui:spawnEdit"),
2092
+ overlayLayer: 60
2087
2093
  }, {
2088
2094
  onActionClick: m[2] || (m[2] = (b) => n("update:modelValue", !1))
2089
2095
  }), {
2090
- default: v(() => [
2096
+ default: v(({
2097
+ visible: b
2098
+ }) => [
2091
2099
  e(i).item._id ? x((t(), $(Z, {
2092
2100
  key: 0,
2093
2101
  reactive: "",
2102
+ active: b,
2094
2103
  icon: "dots-three"
2095
- }, null, 512)), [
2104
+ }, null, 8, ["active"])), [
2096
2105
  [A]
2097
2106
  ]) : y("", !0)
2098
2107
  ]),
@@ -2112,13 +2121,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2112
2121
  layout: e(i).description.formLayout || {}
2113
2122
  }, {
2114
2123
  focus: "",
2115
- onClipboardCopy: p,
2124
+ onClipboardCopy: d,
2116
2125
  onAdd: m[1] || (m[1] = (b) => b.preventDefault())
2117
2126
  }), ce({ _: 2 }, [
2118
2127
  D(Object.keys(o.$slots).filter((b) => b.startsWith("field-")), (b) => ({
2119
2128
  name: b,
2120
2129
  fn: v((S) => [
2121
- O(o.$slots, b, pe(Ve(S)))
2130
+ O(o.$slots, b, de(ge(S)))
2122
2131
  ])
2123
2132
  }))
2124
2133
  ]), 1040, ["modelValue"])
@@ -2140,7 +2149,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2140
2149
  onClick: h
2141
2150
  }, {
2142
2151
  default: v(() => [
2143
- W(k(e(d)("action.cancel", { capitalize: !0 })), 1)
2152
+ W(k(e(p)("action.cancel", { capitalize: !0 })), 1)
2144
2153
  ]),
2145
2154
  _: 1
2146
2155
  }),
@@ -2151,7 +2160,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2151
2160
  onClick: _
2152
2161
  }, {
2153
2162
  default: v(() => [
2154
- W(k(e(d)("action.insert", { capitalize: !0 })), 1)
2163
+ W(k(e(p)("action.insert", { capitalize: !0 })), 1)
2155
2164
  ]),
2156
2165
  _: 1
2157
2166
  }, 8, ["disabled", "loading"])
@@ -2190,7 +2199,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2190
2199
  }, {
2191
2200
  immediate: !0
2192
2201
  });
2193
- }, ra = (u) => (De("data-v-2a6c7067"), u = u(), Qe(), u), ua = {
2202
+ }, ra = (u) => (De("data-v-7fdb061d"), u = u(), Qe(), u), ua = {
2194
2203
  key: 0,
2195
2204
  class: "table aeria-surface"
2196
2205
  }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["checked"], ma = {
@@ -2227,13 +2236,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2227
2236
  const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = G({
2228
2237
  get: () => c == null ? void 0 : c.selected,
2229
2238
  set: (m) => c == null ? void 0 : c.$actions.selectManyItems(m, !0)
2230
- }), d = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
2239
+ }), p = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
2231
2240
  var A;
2232
2241
  return !a.value.xl || !((A = l.layout) != null && A.actions) || !l.actions ? [] : l.actions.filter((b) => {
2233
2242
  const S = l.layout.actions[b.action];
2234
- return d(S, m);
2243
+ return p(S, m);
2235
2244
  });
2236
- }, p = (m) => {
2245
+ }, d = (m) => {
2237
2246
  var A;
2238
2247
  return l.actions ? !a.value.xl || !((A = l.layout) != null && A.actions) ? l.actions : l.actions.filter((b) => {
2239
2248
  const S = l.layout.actions[b.action];
@@ -2242,7 +2251,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2242
2251
  if (!Vt(b.roles, j.currentUser.roles))
2243
2252
  return !1;
2244
2253
  }
2245
- return !d(S, m);
2254
+ return !p(S, m);
2246
2255
  }) : [];
2247
2256
  }, o = (m, A) => {
2248
2257
  var j, P;
@@ -2388,18 +2397,21 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2388
2397
  ]),
2389
2398
  _: 2
2390
2399
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2391
- p(B).length > 0 ? (t(), $(Ce, Q({
2400
+ d(B).length > 0 ? (t(), $(Ce, Q({
2392
2401
  key: 0,
2393
2402
  ref_for: !0
2394
2403
  }, {
2395
2404
  subject: B,
2396
- actions: p(B)
2405
+ actions: d(B)
2397
2406
  }), {
2398
- default: v(() => [
2407
+ default: v(({
2408
+ visible: w
2409
+ }) => [
2399
2410
  x(F(Z, {
2400
2411
  reactive: "",
2412
+ active: w,
2401
2413
  icon: "dots-three"
2402
- }, null, 512), [
2414
+ }, null, 8, ["active"]), [
2403
2415
  [b]
2404
2416
  ])
2405
2417
  ]),
@@ -2409,7 +2421,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2409
2421
  ])) : (Y = m.actions) != null && Y.length ? (t(), s("td", Ma, [
2410
2422
  C("div", {
2411
2423
  class: "table__mobile-actions-grid",
2412
- style: be(`grid-template-columns: repeat(${h(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
2424
+ style: be(`grid-template-columns: repeat(${h(B).length + (d(B).length ? 1 : 0)}, 1fr);`)
2413
2425
  }, [
2414
2426
  (t(!0), s(N, null, D(h(B), (w) => (t(), $(ve, {
2415
2427
  key: `action-${w.action}`,
@@ -2428,12 +2440,12 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2428
2440
  ]),
2429
2441
  _: 2
2430
2442
  }, 1032, ["onClick"]))), 128)),
2431
- p(B).length > 0 ? (t(), $(Ce, Q({
2443
+ d(B).length > 0 ? (t(), $(Ce, Q({
2432
2444
  key: 0,
2433
2445
  ref_for: !0
2434
2446
  }, {
2435
2447
  subject: B,
2436
- actions: p(B)
2448
+ actions: d(B)
2437
2449
  }), {
2438
2450
  default: v(() => [
2439
2451
  F(Z, {
@@ -2458,7 +2470,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @_
2458
2470
  };
2459
2471
  }
2460
2472
  });
2461
- const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @__PURE__ */ E({
2473
+ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-7fdb061d"]]), Qa = /* @__PURE__ */ E({
2462
2474
  __name: "aeria-tabular",
2463
2475
  props: {
2464
2476
  individualActions: {},
@@ -2484,8 +2496,8 @@ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @_
2484
2496
  }), ce({ _: 2 }, [
2485
2497
  D(Object.keys(i.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2486
2498
  name: _,
2487
- fn: v((d) => [
2488
- O(i.$slots, _, pe(Ve(d)))
2499
+ fn: v((p) => [
2500
+ O(i.$slots, _, de(ge(p)))
2489
2501
  ])
2490
2502
  }))
2491
2503
  ]), 1040)) : y("", !0)
@@ -2526,28 +2538,31 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2526
2538
  list: i.componentName === "list"
2527
2539
  }, {
2528
2540
  default: v(() => [
2529
- (t(!0), s(N, null, D(e(n).items, (d) => (t(), $(fn, {
2530
- key: d,
2531
- inactive: !!(e(l).active && !d[e(l).active]),
2541
+ (t(!0), s(N, null, D(e(n).items, (p) => (t(), $(fn, {
2542
+ key: p,
2543
+ inactive: !!(e(l).active && !p[e(l).active]),
2532
2544
  horizontal: i.componentName === "list"
2533
2545
  }, ce({
2534
2546
  footer: v(() => [
2535
- e(l).title ? (t(), s("div", Ka, k(d[e(l).title]), 1)) : y("", !0),
2536
- e(l).information ? (t(), s("div", Xa, k(d[e(l).information]), 1)) : y("", !0)
2547
+ e(l).title ? (t(), s("div", Ka, k(p[e(l).title]), 1)) : y("", !0),
2548
+ e(l).information ? (t(), s("div", Xa, k(p[e(l).information]), 1)) : y("", !0)
2537
2549
  ]),
2538
2550
  actions: v(() => [
2539
2551
  i.individualActions.length > 0 ? (t(), $(Ce, Q({
2540
2552
  key: 0,
2541
2553
  ref_for: !0
2542
2554
  }, {
2543
- subject: d,
2555
+ subject: p,
2544
2556
  actions: i.individualActions
2545
2557
  }), {
2546
- default: v(() => [
2558
+ default: v(({
2559
+ visible: h
2560
+ }) => [
2547
2561
  x(F(Z, {
2548
2562
  reactive: "",
2563
+ active: h,
2549
2564
  icon: "dots-three-vertical"
2550
- }, null, 512), [
2565
+ }, null, 8, ["active"]), [
2551
2566
  [_]
2552
2567
  ])
2553
2568
  ]),
@@ -2560,18 +2575,18 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2560
2575
  F(He, {
2561
2576
  alt: "Item picture",
2562
2577
  expandable: "",
2563
- url: (h = a(d[e(l).picture])) == null ? void 0 : h.link,
2564
- meta: a(d[e(l).picture])
2578
+ url: (h = a(p[e(l).picture])) == null ? void 0 : h.link,
2579
+ meta: a(p[e(l).picture])
2565
2580
  }, null, 8, ["url", "meta"])
2566
2581
  ];
2567
2582
  }),
2568
2583
  _: 2
2569
2584
  }, [
2570
- e(l).badge && Array.isArray(d[e(l).badge]) ? {
2585
+ e(l).badge && Array.isArray(p[e(l).badge]) ? {
2571
2586
  name: "badge",
2572
2587
  fn: v(() => [
2573
- (t(!0), s(N, null, D(d[e(l).badge], (h) => (t(), $($e, {
2574
- key: `${d._id}-${h}`,
2588
+ (t(!0), s(N, null, D(p[e(l).badge], (h) => (t(), $($e, {
2589
+ key: `${p._id}-${h}`,
2575
2590
  large: ""
2576
2591
  }, {
2577
2592
  default: v(() => [
@@ -2586,7 +2601,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2586
2601
  fn: v(() => [
2587
2602
  F($e, null, {
2588
2603
  default: v(() => [
2589
- W(k(e(l).translateBadge ? e(L)(d[e(l).badge]) : d[e(l).badge]), 1)
2604
+ W(k(e(l).translateBadge ? e(L)(p[e(l).badge]) : p[e(l).badge]), 1)
2590
2605
  ]),
2591
2606
  _: 2
2592
2607
  }, 1024)
@@ -2600,13 +2615,13 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2600
2615
  };
2601
2616
  }
2602
2617
  });
2603
- const vt = /* @__PURE__ */ K(Ya, [["__scopeId", "data-v-113dd7db"]]), Ja = (u) => ({
2618
+ const vt = /* @__PURE__ */ K(Ya, [["__scopeId", "data-v-ccbced12"]]), Ja = (u) => ({
2604
2619
  tabular: Qa,
2605
2620
  grid: vt,
2606
2621
  list: vt
2607
- })[u], de = J(!1);
2622
+ })[u], pe = J(!1);
2608
2623
  J(!1);
2609
- const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2624
+ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2610
2625
  key: 2,
2611
2626
  class: "crud__controls"
2612
2627
  }, Na = {
@@ -2633,10 +2648,10 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2633
2648
  setup(u, { emit: r }) {
2634
2649
  const l = u, n = r, a = Ae(), i = kt({
2635
2650
  delay: 600
2636
- }), c = ie("meta"), _ = qe(), { reachedEnd: d, detach: h } = Ze(null, {
2651
+ }), c = ie("meta"), _ = qe(), { reachedEnd: p, detach: h } = Ze(null, {
2637
2652
  antecipate: 600
2638
- }), p = !_.value.md || l.scrollPagination;
2639
- p && ue(d, (V) => {
2653
+ }), d = !_.value.md || l.scrollPagination;
2654
+ d && ue(p, (V) => {
2640
2655
  V && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, j());
2641
2656
  });
2642
2657
  const o = ie(l.collection);
@@ -2686,14 +2701,14 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2686
2701
  query: {
2687
2702
  search: V || void 0
2688
2703
  }
2689
- })), V ? (o.filters = Object.assign(ke(o.freshFilters), {
2704
+ })), V ? (o.filters = Object.assign(Ve(o.freshFilters), {
2690
2705
  $text: {
2691
2706
  $search: `"${V}"`,
2692
2707
  $caseSensitive: !1
2693
2708
  }
2694
2709
  }), j({
2695
2710
  offset: 0
2696
- })) : (o.filters = ke(o.freshFilters), b.value = 0, j())));
2711
+ })) : (o.filters = Ve(o.freshFilters), b.value = 0, j())));
2697
2712
  ue(() => o.textQuery, (V) => {
2698
2713
  R(V);
2699
2714
  });
@@ -2704,7 +2719,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2704
2719
  o.$actions.clearFilters(), o.textQuery = "", h();
2705
2720
  }), ue(() => yt.value, async (V) => {
2706
2721
  var le;
2707
- const T = ke(V);
2722
+ const T = Ve(V);
2708
2723
  let ae;
2709
2724
  if (T)
2710
2725
  if ((T.name === "spawnEdit" || T.name === "duplicate") && (ae = o.$actions.get({
@@ -2714,9 +2729,9 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2714
2729
  })), T.name === "spawnAdd")
2715
2730
  o.$actions.clearItem(), (le = T.params) != null && le.item && (o.$actions.setItem(T.params.item), Object.keys(T.params.item).forEach((ne) => {
2716
2731
  delete o.referenceItem[ne];
2717
- })), de.value = "add";
2732
+ })), pe.value = "add";
2718
2733
  else if (T.name === "spawnEdit")
2719
- o.$actions.setItem(T.params), de.value = "edit";
2734
+ o.$actions.setItem(T.params), pe.value = "edit";
2720
2735
  else if (T.name === "duplicate") {
2721
2736
  await ae;
2722
2737
  const ne = Object.entries(o.item).reduce((se, [z, U]) => {
@@ -2745,12 +2760,12 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2745
2760
  [z]: U
2746
2761
  };
2747
2762
  }, {});
2748
- o.$actions.setItem(ne), delete o.item._id, o.referenceItem = {}, de.value = "duplicate";
2763
+ o.$actions.setItem(ne), delete o.item._id, o.referenceItem = {}, pe.value = "duplicate";
2749
2764
  } else
2750
2765
  n("uiEvent", T);
2751
2766
  }, {
2752
2767
  deep: !0
2753
- }), ue(() => de, ({ value: V }) => {
2768
+ }), ue(() => pe, ({ value: V }) => {
2754
2769
  V === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2755
2770
  });
2756
2771
  const w = G(() => o.individualActions.map((V) => ({
@@ -2761,21 +2776,21 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2761
2776
  var ne, se, z, U, f, M, H;
2762
2777
  const ae = oe("clickable"), le = oe("loading");
2763
2778
  return t(), s(N, null, [
2764
- e(ge) ? (t(), $(la, {
2779
+ e(ke) ? (t(), $(la, {
2765
2780
  key: e(o).$id,
2766
- modelValue: e(ge),
2767
- "onUpdate:modelValue": T[0] || (T[0] = (g) => _t(ge) ? ge.value = g : null)
2781
+ modelValue: e(ke),
2782
+ "onUpdate:modelValue": T[0] || (T[0] = (g) => _t(ke) ? ke.value = g : null)
2768
2783
  }, null, 8, ["modelValue"])) : y("", !0),
2769
- e(de) ? (t(), $(sa, {
2784
+ e(pe) ? (t(), $(sa, {
2770
2785
  key: 1,
2771
- modelValue: e(de),
2772
- "onUpdate:modelValue": T[1] || (T[1] = (g) => _t(de) ? de.value = g : null),
2786
+ modelValue: e(pe),
2787
+ "onUpdate:modelValue": T[1] || (T[1] = (g) => _t(pe) ? pe.value = g : null),
2773
2788
  "fixed-right": "",
2774
- onCancel: T[2] || (T[2] = (g) => de.value = !1)
2789
+ onCancel: T[2] || (T[2] = (g) => pe.value = !1)
2775
2790
  }, ce({
2776
2791
  header: v(() => [
2777
2792
  C("span", null, k((() => {
2778
- switch (e(de)) {
2793
+ switch (e(pe)) {
2779
2794
  case "add":
2780
2795
  return e(L)("action.add", { capitalize: !0 });
2781
2796
  case "duplicate":
@@ -2792,7 +2807,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2792
2807
  D(Object.keys(V.$slots).filter((g) => g.startsWith("field-")), (g) => ({
2793
2808
  name: g,
2794
2809
  fn: v((I) => [
2795
- O(V.$slots, g, pe(Ve(I)), void 0, !0)
2810
+ O(V.$slots, g, de(ge(I)), void 0, !0)
2796
2811
  ])
2797
2812
  }))
2798
2813
  ]), 1032, ["modelValue"])) : y("", !0),
@@ -2834,7 +2849,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2834
2849
  fn: v(() => [
2835
2850
  x((t(), $(Z, {
2836
2851
  icon: "funnel",
2837
- onClick: T[4] || (T[4] = (g) => ge.value = !0)
2852
+ onClick: T[4] || (T[4] = (g) => ke.value = !0)
2838
2853
  }, {
2839
2854
  default: v(() => [
2840
2855
  W(k(e(L)("filters", { capitalize: !0 })), 1)
@@ -2891,7 +2906,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2891
2906
  key: 1,
2892
2907
  variant: "alt",
2893
2908
  icon: "funnel",
2894
- onClick: T[6] || (T[6] = (g) => ge.value = !0)
2909
+ onClick: T[6] || (T[6] = (g) => ke.value = !0)
2895
2910
  }, {
2896
2911
  default: v(() => [
2897
2912
  tl,
@@ -2920,7 +2935,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2920
2935
  ])) : y("", !0),
2921
2936
  x((t(), s("div", null, [
2922
2937
  e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || V.$slots.empty) ? (t(), s("div", nl, [
2923
- e(B) ? (t(), $(he(e(B)), pe(Q({ key: 0 }, {
2938
+ e(B) ? (t(), $(he(e(B)), de(Q({ key: 0 }, {
2924
2939
  collection: e(o).$id
2925
2940
  })), {
2926
2941
  default: v(() => [
@@ -2938,10 +2953,10 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2938
2953
  })) : y("", !0)
2939
2954
  ]),
2940
2955
  _: 1
2941
- }, 16)) : O(V.$slots, "empty", pe(Q({ key: 1 }, {
2956
+ }, 16)) : O(V.$slots, "empty", de(Q({ key: 1 }, {
2942
2957
  collection: e(o).$id
2943
2958
  })), void 0, !0)
2944
- ])) : V.$slots.component ? O(V.$slots, "component", pe(Q({ key: 1 }, {
2959
+ ])) : V.$slots.component ? O(V.$slots, "component", de(Q({ key: 1 }, {
2945
2960
  store: e(o)
2946
2961
  })), void 0, !0) : (t(), $(he(e(Ja)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), Q({ key: 2 }, {
2947
2962
  individualActions: w.value,
@@ -2953,7 +2968,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2953
2968
  D(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
2954
2969
  name: g,
2955
2970
  fn: v((I) => [
2956
- O(V.$slots, g, pe(Ve(I)), void 0, !0)
2971
+ O(V.$slots, g, de(ge(I)), void 0, !0)
2957
2972
  ])
2958
2973
  })),
2959
2974
  V.$slots.tfoot ? {
@@ -2965,7 +2980,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2965
2980
  } : void 0
2966
2981
  ]), 1040, ["component-name"]))
2967
2982
  ])), [
2968
- [le, (!e(p) || b.value === ht) && e(o).loading.getAll]
2983
+ [le, (!e(d) || b.value === ht) && e(o).loading.getAll]
2969
2984
  ]),
2970
2985
  !e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", ol, [
2971
2986
  F(Un, {
@@ -3116,7 +3131,7 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3116
3131
  ]),
3117
3132
  _: 1
3118
3133
  }, 16, ["modelValue"]),
3119
- e(r).prompt.visible ? (t(), $(il, pe(Q({ key: 0 }, e(r).prompt)), {
3134
+ e(r).prompt.visible ? (t(), $(il, de(Q({ key: 0 }, e(r).prompt)), {
3120
3135
  default: v(() => [
3121
3136
  W(k(e(r).prompt.body), 1)
3122
3137
  ]),
@@ -3189,28 +3204,29 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3189
3204
  }
3190
3205
  }));
3191
3206
  };
3192
- return (_, d) => {
3207
+ return (_, p) => {
3193
3208
  const h = oe("clickable");
3194
3209
  return t(), s("div", bl, [
3195
3210
  e(a).md && !_.dropdown ? (t(), s("div", $l, [
3196
3211
  _.$slots.default ? (t(), s("div", gl, [
3197
3212
  O(_.$slots, "default", {}, void 0, !0)
3198
3213
  ])) : y("", !0),
3199
- (t(!0), s(N, null, D(Object.keys(_.$slots).filter((p) => p !== "default"), (p, o) => (t(), s("div", {
3200
- key: p,
3214
+ (t(!0), s(N, null, D(Object.keys(_.$slots).filter((d) => d !== "default"), (d, o) => (t(), s("div", {
3215
+ key: d,
3201
3216
  class: X({
3202
3217
  tabs__tab: !0,
3203
- "tabs__tab--current": p === i.value || !i.value && o === 0
3218
+ "tabs__tab--current": d === i.value || !i.value && o === 0
3204
3219
  }),
3205
- onClick: (m) => c(p)
3220
+ onClick: (m) => c(d)
3206
3221
  }, [
3207
- O(_.$slots, p, {}, void 0, !0)
3222
+ O(_.$slots, d, {}, void 0, !0)
3208
3223
  ], 10, kl))), 128))
3209
3224
  ])) : (t(), s("div", Vl, [
3210
3225
  F(Ce, null, ce({
3211
- default: v(() => [
3226
+ default: v(({ visible: d }) => [
3212
3227
  x((t(), $(Z, {
3213
3228
  "icon-right": "",
3229
+ active: d,
3214
3230
  icon: "caret-down",
3215
3231
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
3216
3232
  class: "tabs__context-menu-icon"
@@ -3218,20 +3234,20 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3218
3234
  default: v(() => [
3219
3235
  O(_.$slots, i.value, {}, void 0, !0)
3220
3236
  ]),
3221
- _: 3
3222
- })), [
3237
+ _: 2
3238
+ }, 1032, ["active"])), [
3223
3239
  [h]
3224
3240
  ])
3225
3241
  ]),
3226
3242
  _: 2
3227
3243
  }, [
3228
- D(Object.keys(_.$slots).filter((p) => p !== "default"), (p) => ({
3229
- name: p,
3244
+ D(Object.keys(_.$slots).filter((d) => d !== "default"), (d) => ({
3245
+ name: d,
3230
3246
  fn: v(() => [
3231
3247
  C("div", {
3232
- onClick: (o) => c(p)
3248
+ onClick: (o) => c(d)
3233
3249
  }, [
3234
- O(_.$slots, p, {}, void 0, !0)
3250
+ O(_.$slots, d, {}, void 0, !0)
3235
3251
  ], 8, Cl)
3236
3252
  ])
3237
3253
  }))
@@ -3241,7 +3257,7 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3241
3257
  };
3242
3258
  }
3243
3259
  });
3244
- const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3260
+ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-a20914ab"]]), Al = E({
3245
3261
  props: {
3246
3262
  initialValue: String,
3247
3263
  promise: Promise
@@ -3258,38 +3274,38 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3258
3274
  collection: {}
3259
3275
  },
3260
3276
  setup(u) {
3261
- const r = u, n = Ae().currentRoute, a = Pe(), i = G(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, d) => {
3262
- const { error: h, result: p } = await d.$functions[_.badgeFunction]({
3277
+ const r = u, n = Ae().currentRoute, a = Pe(), i = G(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, p) => {
3278
+ const { error: h, result: d } = await p.$functions[_.badgeFunction]({
3263
3279
  filters: _.filters
3264
3280
  });
3265
- return h ? 0 : p;
3281
+ return h ? 0 : d;
3266
3282
  };
3267
- return (_, d) => i.value && i.value.description.filtersPresets ? (t(), $(Il, {
3283
+ return (_, p) => i.value && i.value.description.filtersPresets ? (t(), $(Il, {
3268
3284
  key: 0,
3269
3285
  dropdown: "",
3270
3286
  query: "section"
3271
3287
  }, ce({ _: 2 }, [
3272
- D(Object.entries(i.value.description.filtersPresets), ([h, p]) => ({
3288
+ D(Object.entries(i.value.description.filtersPresets), ([h, d]) => ({
3273
3289
  name: h,
3274
3290
  fn: v(() => [
3275
3291
  C("div", {
3276
3292
  class: "topbar__preset",
3277
- onClick: (o) => e(Ot)(p, i.value)
3293
+ onClick: (o) => e(Ot)(d, i.value)
3278
3294
  }, [
3279
- p.icon ? (t(), $(Z, {
3295
+ d.icon ? (t(), $(Z, {
3280
3296
  key: 0,
3281
- icon: p.icon
3297
+ icon: d.icon
3282
3298
  }, {
3283
3299
  default: v(() => [
3284
- W(k(p.label || e(L)(h, { plural: !0 })), 1)
3300
+ W(k(d.label || e(L)(h, { plural: !0 })), 1)
3285
3301
  ]),
3286
3302
  _: 2
3287
- }, 1032, ["icon"])) : (t(), s("div", wl, k(p.label || e(L)(h, { plural: !0 })), 1)),
3288
- p.badgeFunction ? (t(), $($e, { key: 2 }, {
3303
+ }, 1032, ["icon"])) : (t(), s("div", wl, k(d.label || e(L)(h, { plural: !0 })), 1)),
3304
+ d.badgeFunction ? (t(), $($e, { key: 2 }, {
3289
3305
  default: v(() => [
3290
3306
  F(e(Al), {
3291
3307
  "initial-value": "0",
3292
- promise: c(p, i.value)
3308
+ promise: c(d, i.value)
3293
3309
  }, null, 8, ["promise"])
3294
3310
  ]),
3295
3311
  _: 2
@@ -3334,7 +3350,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3334
3350
  }, {
3335
3351
  after: v(() => [
3336
3352
  C("div", null, k(n.value || "Senhas conferem"), 1),
3337
- O(a.$slots, "default", pe(Ve({ passwordError: n.value })))
3353
+ O(a.$slots, "default", de(ge({ passwordError: n.value })))
3338
3354
  ]),
3339
3355
  _: 3
3340
3356
  }, 8, ["model-value"]));
@@ -3357,7 +3373,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3357
3373
  {
3358
3374
  path: "signin",
3359
3375
  name: "/user/signin",
3360
- component: () => import("./signin-1c13c187.js"),
3376
+ component: () => import("./signin-7de447b5.js"),
3361
3377
  meta: {
3362
3378
  title: "Autenticação"
3363
3379
  }
@@ -3365,7 +3381,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3365
3381
  {
3366
3382
  path: "signup",
3367
3383
  name: "/user/signup",
3368
- component: () => import("./signup-88cb845a.js"),
3384
+ component: () => import("./signup-8433191a.js"),
3369
3385
  meta: {
3370
3386
  title: "Registro"
3371
3387
  }
@@ -3373,7 +3389,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3373
3389
  {
3374
3390
  path: "activation",
3375
3391
  name: "/user/activation",
3376
- component: () => import("./activation-e4385201.js"),
3392
+ component: () => import("./activation-5547695f.js"),
3377
3393
  meta: {
3378
3394
  title: "Ativação"
3379
3395
  }
@@ -3395,7 +3411,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3395
3411
  name: "/dashboard/crud",
3396
3412
  props: !0,
3397
3413
  components: {
3398
- default: () => import("./index-f44785a1.js"),
3414
+ default: () => import("./index-2d387874.js"),
3399
3415
  topbar: () => Promise.resolve().then(() => jl)
3400
3416
  },
3401
3417
  meta: {
@@ -3407,7 +3423,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3407
3423
  name: "/dashboard/crud/:id",
3408
3424
  props: !0,
3409
3425
  components: {
3410
- default: () => import("./_id_-fe065dc0.js")
3426
+ default: () => import("./_id_-590c2642.js")
3411
3427
  },
3412
3428
  meta: {
3413
3429
  title: "%viewTitle%"
@@ -3425,7 +3441,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3425
3441
  children: [
3426
3442
  {
3427
3443
  path: "profile",
3428
- component: () => import("./index-a64e672c.js"),
3444
+ component: () => import("./index-2bf9ad84.js"),
3429
3445
  meta: {
3430
3446
  title: "Meu perfil",
3431
3447
  icon: "user-square"
@@ -3434,7 +3450,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3434
3450
  {
3435
3451
  path: "changepass",
3436
3452
  name: "/dashboard/user/changepass",
3437
- component: () => import("./index-afccd6d2.js"),
3453
+ component: () => import("./index-f57af56f.js"),
3438
3454
  meta: {
3439
3455
  title: "Mudar senha",
3440
3456
  icon: "lock"