@aeria-ui/ui 0.0.78 → 0.0.79

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, 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";
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 Q, unref as e, renderSlot as C, inject as _e, computed as W, createElementVNode as I, mergeProps as G, 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 Ve, 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 Ce, 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 = {
@@ -33,12 +33,12 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
33
33
  onClick: (d) => 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
- W(" " + k(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
36
+ Q(" " + k(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
37
37
  ], 8, Xt)), [
38
38
  [i]
39
39
  ]),
40
40
  r.value === c ? (t(), s("div", Jt, [
41
- O(n.$slots, c, {}, void 0, !0)
41
+ C(n.$slots, c, {}, void 0, !0)
42
42
  ])) : y("", !0)
43
43
  ]))), 128))
44
44
  ], 2);
@@ -50,7 +50,7 @@ const K = (u, r) => {
50
50
  for (const [n, a] of r)
51
51
  l[n] = a;
52
52
  return l;
53
- }, Ul = /* @__PURE__ */ K(Zt, [["__scopeId", "data-v-3ea933d4"]]), Pt = /* @__PURE__ */ E({
53
+ }, Fl = /* @__PURE__ */ K(Zt, [["__scopeId", "data-v-3ea933d4"]]), Pt = /* @__PURE__ */ E({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
@@ -64,7 +64,7 @@ const K = (u, r) => {
64
64
  ${r.alt && "badge--alt"}
65
65
  `)
66
66
  }, [
67
- O(r.$slots, "default", {}, void 0, !0)
67
+ C(r.$slots, "default", {}, void 0, !0)
68
68
  ], 2));
69
69
  }
70
70
  });
@@ -85,7 +85,7 @@ const $e = /* @__PURE__ */ K(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @_
85
85
  `),
86
86
  onClick: a
87
87
  }, [
88
- O(i.$slots, "default", {}, void 0, !0)
88
+ C(i.$slots, "default", {}, void 0, !0)
89
89
  ], 2));
90
90
  }
91
91
  });
@@ -104,7 +104,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
104
104
  active: { type: Boolean }
105
105
  },
106
106
  setup(u) {
107
- const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = G(() => {
107
+ const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = W(() => {
108
108
  var a;
109
109
  return (a = r.icon) != null && a.includes(":") ? r.icon : `regular:${r.icon}`;
110
110
  });
@@ -116,14 +116,14 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
116
116
  ${a.$slots.default ? "icon--centered" : "icon--standalone"}
117
117
  `)
118
118
  }, [
119
- C("div", {
119
+ I("div", {
120
120
  class: X(`
121
121
  icon__icon
122
122
  ${a.size && `icon__icon--${a.size}`}
123
123
  ${a.iconRight && "icon__icon--right"}
124
124
  `)
125
125
  }, [
126
- (t(), s("svg", Q({
126
+ (t(), s("svg", G({
127
127
  width: "24",
128
128
  height: "24",
129
129
  viewBox: "0 0 256 256",
@@ -131,13 +131,13 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
131
131
  }, {
132
132
  ...a.fill ? { fill: a.fill } : {}
133
133
  }), [
134
- C("use", {
134
+ I("use", {
135
135
  href: `/assets/icons.svg#${n.value}`
136
136
  }, null, 8, xt)
137
137
  ], 16))
138
138
  ], 2),
139
139
  a.$slots.default ? (t(), s("div", en, [
140
- O(a.$slots, "default", {}, void 0, !0)
140
+ C(a.$slots, "default", {}, void 0, !0)
141
141
  ])) : y("", !0)
142
142
  ], 2));
143
143
  }
@@ -169,7 +169,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
169
169
  },
170
170
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
171
171
  setup(u, { emit: r }) {
172
- 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 = W(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), d = () => {
173
173
  n("update:modelValue", !1), n("close");
174
174
  }, h = () => {
175
175
  n("overlayClick");
@@ -210,10 +210,10 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
210
210
  ${o.outerHeader && "panel__header--outer"}
211
211
  `)
212
212
  }, [
213
- C("div", nn, [
214
- o.$slots.header ? O(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (t(), s("div", on, k(o.title), 1)) : y("", !0),
213
+ I("div", nn, [
214
+ o.$slots.header ? C(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (t(), s("div", on, k(o.title), 1)) : y("", !0),
215
215
  o.$slots.extra ? (t(), s("div", an, [
216
- O(o.$slots, "extra", {}, void 0, !0)
216
+ C(o.$slots, "extra", {}, void 0, !0)
217
217
  ])) : y("", !0)
218
218
  ]),
219
219
  o.collapsible && i.value ? x((t(), $(Z, {
@@ -248,7 +248,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
248
248
  ${o.fill || "panel__body--padded"}
249
249
  `)
250
250
  }, [
251
- O(o.$slots, "default", {}, void 0, !0)
251
+ C(o.$slots, "default", {}, void 0, !0)
252
252
  ], 2)), [
253
253
  [b, o.loading]
254
254
  ]),
@@ -260,7 +260,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
260
260
  ${e(_) || "panel__footer--shadowed"}
261
261
  `)
262
262
  }, [
263
- O(o.$slots, "footer", {}, void 0, !0)
263
+ C(o.$slots, "footer", {}, void 0, !0)
264
264
  ], 2)) : y("", !0)
265
265
  ]),
266
266
  _: 3
@@ -315,13 +315,13 @@ const Be = /* @__PURE__ */ K(ln, [["__scopeId", "data-v-73b47cf0"]]), sn = { cla
315
315
  icon: a.icon
316
316
  }, {
317
317
  default: v(() => [
318
- C("div", sn, [
319
- O(a.$slots, "default", {}, void 0, !0)
318
+ I("div", sn, [
319
+ C(a.$slots, "default", {}, void 0, !0)
320
320
  ])
321
321
  ]),
322
322
  _: 3
323
323
  }, 8, ["icon"])) : (t(), s("div", rn, [
324
- O(a.$slots, "default", {}, void 0, !0)
324
+ C(a.$slots, "default", {}, void 0, !0)
325
325
  ]))
326
326
  ]),
327
327
  _: 3
@@ -342,18 +342,18 @@ const re = /* @__PURE__ */ K(un, [["__scopeId", "data-v-c328251b"]]), cn = { cla
342
342
  ${r.horizontal && "card--horizontal"}
343
343
  `)
344
344
  }, [
345
- C("div", cn, [
346
- O(r.$slots, "default", {}, void 0, !0)
345
+ I("div", cn, [
346
+ C(r.$slots, "default", {}, void 0, !0)
347
347
  ]),
348
- C("div", dn, [
349
- C("div", pn, [
350
- C("div", null, [
351
- O(r.$slots, "footer", {}, void 0, !0)
348
+ I("div", dn, [
349
+ I("div", pn, [
350
+ I("div", null, [
351
+ C(r.$slots, "footer", {}, void 0, !0)
352
352
  ]),
353
- r.$slots.actions ? O(r.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
353
+ r.$slots.actions ? C(r.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
354
354
  ]),
355
- C("div", _n, [
356
- O(r.$slots, "badge", {}, void 0, !0)
355
+ I("div", _n, [
356
+ C(r.$slots, "badge", {}, void 0, !0)
357
357
  ])
358
358
  ])
359
359
  ], 2));
@@ -372,8 +372,8 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
372
372
  emits: ["actionClick"],
373
373
  setup(u, { emit: r }) {
374
374
  It((d) => ({
375
- e0bbcfc0: _.value.x,
376
- e0bbcfbe: _.value.y
375
+ "036683e2": _.value.x,
376
+ "036683e0": _.value.y
377
377
  }));
378
378
  const l = r, n = J(null), a = J(!1), i = (d) => d == null ? void 0 : d.filter((h) => {
379
379
  if (h.roles) {
@@ -382,12 +382,12 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
382
382
  }
383
383
  return !0;
384
384
  }), c = (d, h) => {
385
- const p = Ve(h);
386
- d.click(p), l("actionClick", {
385
+ const p = h && Ce(h);
386
+ d.click && d.click(p), l("actionClick", {
387
387
  action: d,
388
388
  subject: p
389
389
  }), a.value = !1;
390
- }, _ = G(() => {
390
+ }, _ = W(() => {
391
391
  if (!n.value)
392
392
  return {
393
393
  x: 0,
@@ -409,11 +409,11 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
409
409
  ref: n,
410
410
  class: "contextmenu"
411
411
  }, [
412
- C("a", {
412
+ I("a", {
413
413
  class: "contextmenu__trigger",
414
414
  onClick: h[0] || (h[0] = (o) => a.value = !0)
415
415
  }, [
416
- O(d.$slots, "default", de(ge({
416
+ C(d.$slots, "default", de(ge({
417
417
  visible: a.value
418
418
  })), void 0, !0)
419
419
  ])
@@ -431,9 +431,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
431
431
  style: { "--panel-min-width": "0" }
432
432
  }, {
433
433
  default: v(() => [
434
- C("div", vn, [
434
+ I("div", vn, [
435
435
  d.$slots.header ? (t(), s("div", yn, [
436
- O(d.$slots, "header", {}, void 0, !0)
436
+ C(d.$slots, "header", {}, void 0, !0)
437
437
  ])) : y("", !0),
438
438
  Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (t(), s("div", {
439
439
  key: 1,
@@ -445,7 +445,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
445
445
  class: "content__item content__item--reactive"
446
446
  }, {
447
447
  default: v(() => [
448
- O(d.$slots, o, {}, void 0, !0)
448
+ C(d.$slots, o, {}, void 0, !0)
449
449
  ]),
450
450
  _: 2
451
451
  }, 1024))), 128))
@@ -466,7 +466,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
466
466
  icon: o.icon
467
467
  }, {
468
468
  default: v(() => [
469
- W(k(o.translate ? e(L)(o.label, { capitalize: !0 }) : o.label), 1)
469
+ Q(k(o.translate ? e(L)(o.label, { capitalize: !0 }) : o.label), 1)
470
470
  ]),
471
471
  _: 2
472
472
  }, 1032, ["icon"])) : y("", !0)
@@ -479,8 +479,8 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
479
479
  class: "content__section",
480
480
  onClick: h[3] || (h[3] = (o) => a.value = !1)
481
481
  }, [
482
- C("div", hn, [
483
- d.$slots.extra ? O(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
482
+ I("div", hn, [
483
+ d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
484
484
  ])
485
485
  ])) : y("", !0)
486
486
  ])
@@ -504,7 +504,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
504
504
  };
505
505
  }
506
506
  });
507
- const Ce = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-c28b8435"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
507
+ const Oe = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
508
508
  __name: "aeria-info",
509
509
  props: {
510
510
  where: { default: "top" }
@@ -523,16 +523,16 @@ const Ce = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-c28b8435"]]), $n = { cla
523
523
  info__bubble--${n.where}
524
524
  `)
525
525
  }, [
526
- C("div", $n, [
527
- O(n.$slots, "text", {}, void 0, !0)
526
+ I("div", $n, [
527
+ C(n.$slots, "text", {}, void 0, !0)
528
528
  ])
529
529
  ], 2)) : y("", !0),
530
- C("div", {
530
+ I("div", {
531
531
  onMouseover: a[0] || (a[0] = (i) => l.value = !0)
532
532
  }, [
533
- O(n.$slots, "default", {}, void 0, !0)
533
+ C(n.$slots, "default", {}, void 0, !0)
534
534
  ], 32)
535
- ], 32)) : O(n.$slots, "default", { key: 1 }, void 0, !0);
535
+ ], 32)) : C(n.$slots, "default", { key: 1 }, void 0, !0);
536
536
  }
537
537
  });
538
538
  const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { class: "input" }, Cn = {
@@ -558,7 +558,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
558
558
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
559
559
  setup(u, { emit: r }) {
560
560
  var B;
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), 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), d = !c && (l.readOnly || a.readOnly), h = (R) => (n("clipboardCopy", R), navigator.clipboard.writeText(R)), p = _e("inputVariant", l.variant) || "normal", o = Object.assign(Object.assign({}, l), {
562
562
  name: l.propertyName,
563
563
  readonly: d,
564
564
  type: (() => {
@@ -580,7 +580,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
580
580
  }
581
581
  })(),
582
582
  placeholder: _ ? a.description || l.propertyName : a.placeholder
583
- };
583
+ });
584
584
  "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !c && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && c && (o.type = "search"), bt(() => {
585
585
  l.modelValue !== null && j(l.modelValue);
586
586
  });
@@ -643,10 +643,10 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
643
643
  const w = oe("focus"), te = oe("clickable");
644
644
  return t(), s("label", Vn, [
645
645
  e(_) ? y("", !0) : (t(), s("div", Cn, [
646
- R.$slots.default ? O(R.$slots, "default", { key: 0 }, void 0, !0) : O(R.$slots, "description", { key: 1 }, void 0, !0)
646
+ R.$slots.default ? C(R.$slots, "default", { key: 0 }, void 0, !0) : C(R.$slots, "description", { key: 1 }, void 0, !0)
647
647
  ])),
648
648
  R.$slots.hint ? (t(), s("div", On, [
649
- O(R.$slots, "hint", {}, void 0, !0)
649
+ C(R.$slots, "hint", {}, void 0, !0)
650
650
  ])) : y("", !0),
651
651
  "element" in e(a) && e(a).element === "textarea" ? (t(), s("div", {
652
652
  key: 2,
@@ -655,9 +655,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
655
655
  input__container--${e(p)}
656
656
  `)
657
657
  }, [
658
- x(C("textarea", {
659
- placeholder: o.placeholder,
660
- readonly: o.readonly,
658
+ x(I("textarea", {
659
+ placeholder: e(o).placeholder,
660
+ readonly: e(o).readonly,
661
661
  value: R.modelValue,
662
662
  class: X(`
663
663
  input__textarea
@@ -674,7 +674,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
674
674
  input__container--${e(p)}
675
675
  `)
676
676
  }, [
677
- x(C("input", Q(o, {
677
+ x(I("input", G(e(o), {
678
678
  value: A.value,
679
679
  "data-component": "input",
680
680
  class: `
@@ -699,7 +699,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
699
699
  e(d) ? (t(), s("div", Bn, [
700
700
  F(kn, null, {
701
701
  text: v(() => [
702
- W("Copiar")
702
+ Q("Copiar")
703
703
  ]),
704
704
  default: v(() => [
705
705
  x(F(Z, {
@@ -718,10 +718,10 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
718
718
  };
719
719
  }
720
720
  });
721
- const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["value"], Tn = {
721
+ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-865a7acf"]]), Sn = {
722
722
  key: 1,
723
723
  value: ""
724
- }, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ E({
724
+ }, Tn = ["value", "data-selected"], jn = /* @__PURE__ */ E({
725
725
  __name: "aeria-select",
726
726
  props: {
727
727
  modelValue: {},
@@ -740,7 +740,7 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
740
740
  l.booleanRef && (_.value = p), n("update:modelValue", (p == null ? void 0 : p._id) || p), n("change", (p == null ? void 0 : p._id) || p);
741
741
  }, _ = l.booleanRef ? (() => {
742
742
  const p = J(l.modelValue);
743
- return G({
743
+ return W({
744
744
  get: () => {
745
745
  switch (p.value) {
746
746
  case "true":
@@ -755,23 +755,26 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
755
755
  p.value = m;
756
756
  }
757
757
  });
758
- })() : G({
758
+ })() : W({
759
759
  get: () => l.modelValue,
760
760
  set: c
761
- }), 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);
761
+ }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, h = W(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
762
762
  return l.multiple && ue(() => l.modelValue, (p) => {
763
763
  var m;
764
764
  if (!a.value)
765
765
  return;
766
766
  const o = a.value.querySelector('option[data-selected="true"]');
767
767
  o && o.removeAttribute("data-selected"), (m = a.value.querySelector(`option[value="${p}"]`)) == null || m.setAttribute("data-selected", "true");
768
- }), (p, o) => (t(), s("select", Q({
769
- ref_key: "select",
770
- ref: a,
768
+ }), (p, o) => p.readOnly ? (t(), $(ke, {
769
+ key: 1,
770
+ "read-only": "",
771
+ "model-value": e(_)
772
+ }, null, 8, ["model-value"])) : (t(), s("select", G({ key: 0 }, {
773
+ size: h.value,
771
774
  value: e(_)
772
775
  }, {
773
- size: h.value
774
- }, {
776
+ ref_key: "select",
777
+ ref: a,
775
778
  class: {
776
779
  select: !0,
777
780
  "select--multiple": !!h.value,
@@ -783,37 +786,41 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["val
783
786
  key: 0,
784
787
  icon: e(i).icon
785
788
  }, null, 8, ["icon"])) : y("", !0),
786
- l.multiple ? y("", !0) : (t(), s("option", Tn, k(e(L)("none")), 1)),
789
+ l.multiple ? y("", !0) : (t(), s("option", Sn, k(e(L)("none")), 1)),
787
790
  (t(!0), s(N, null, D(e(i) && "enum" in e(i) ? e(i).enum : [], (m) => {
788
791
  var A;
789
792
  return t(), s("option", {
790
793
  key: m,
791
794
  value: m,
792
795
  "data-selected": d(m)
793
- }, k((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, jn);
796
+ }, k((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, Tn);
794
797
  }), 128)),
795
- O(p.$slots, "default", {}, void 0, !0)
796
- ], 16, Sn));
798
+ C(p.$slots, "default", {}, void 0, !0)
799
+ ], 16));
797
800
  }
798
801
  });
799
- const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { class: "pagination" }, zn = ["value"], Mn = { class: "pagination__control" }, qn = { class: "pagination__page-input" }, Fn = /* @__PURE__ */ E({
802
+ const Ge = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { class: "pagination" }, Ln = { class: "pagination__arrows" }, zn = ["value"], Mn = {
803
+ key: 0,
804
+ class: "pagination__summary"
805
+ }, qn = /* @__PURE__ */ E({
800
806
  __name: "aeria-pagination",
801
807
  props: {
802
- pagination: {}
808
+ pagination: {},
809
+ noSummary: { type: Boolean }
803
810
  },
804
811
  emits: ["paginate"],
805
812
  setup(u, { emit: r }) {
806
- const l = u, n = r, a = G({
813
+ const l = u, n = r, a = W({
807
814
  get: () => Math.floor(l.pagination.offset / l.pagination.limit),
808
815
  set: (h) => {
809
816
  l.pagination.offset = h * l.pagination.limit;
810
817
  }
811
- }), i = G({
818
+ }), i = W({
812
819
  get: () => l.pagination.limit,
813
820
  set: (h) => {
814
821
  l.pagination.limit = Number(h);
815
822
  }
816
- }), c = J(a.value ? a.value + 1 : 1), _ = G(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
823
+ }), c = J(a.value ? a.value + 1 : 1), _ = W(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
817
824
  a.value = h === "previous" ? a.value - 1 : a.value + 1;
818
825
  };
819
826
  return ue([
@@ -824,94 +831,86 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
824
831
  offset: a.value * i.value,
825
832
  limit: i.value
826
833
  });
827
- }), (h, p) => (t(), s("div", Ln, [
828
- F(Ge, {
829
- modelValue: i.value,
830
- "onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o),
831
- property: {
832
- enum: [],
833
- icon: "list"
834
- },
835
- class: "pagination__control"
836
- }, {
837
- default: v(() => [
838
- (t(!0), s(N, null, D(e(Mt), (o) => (t(), s("option", {
839
- key: `limit-${o}`,
840
- value: o
841
- }, k(o), 9, zn))), 128))
842
- ]),
843
- _: 1
844
- }, 8, ["modelValue"]),
845
- C("div", Mn, [
834
+ }), (h, p) => (t(), s("div", Rn, [
835
+ I("div", Ln, [
846
836
  F(ve, {
847
- onClick: p[1] || (p[1] = (o) => a.value = 0)
837
+ disabled: a.value === 0,
838
+ onClick: p[0] || (p[0] = (o) => a.value = 0)
848
839
  }, {
849
840
  default: v(() => [
850
- F(Z, {
851
- reactive: "",
852
- icon: "caret-double-left"
853
- })
841
+ F(Z, { icon: "caret-double-left" })
854
842
  ]),
855
843
  _: 1
856
- }),
844
+ }, 8, ["disabled"]),
857
845
  F(ve, {
858
846
  disabled: a.value === 0,
859
- onClick: p[2] || (p[2] = (o) => d("previous"))
847
+ onClick: p[1] || (p[1] = (o) => d("previous"))
860
848
  }, {
861
849
  default: v(() => [
862
- F(Z, {
863
- reactive: "",
864
- icon: "caret-left"
865
- })
850
+ F(Z, { icon: "caret-left" })
866
851
  ]),
867
852
  _: 1
868
853
  }, 8, ["disabled"]),
869
- C("div", qn, [
870
- (t(), $(Oe, {
871
- key: a.value,
872
- modelValue: c.value,
873
- "onUpdate:modelValue": p[3] || (p[3] = (o) => c.value = o),
874
- property: {
875
- type: "number",
876
- minimum: 1
877
- },
878
- onChange: p[4] || (p[4] = (o) => {
879
- a.value = c.value === 0 ? 0 : c.value - 1;
880
- })
881
- }, null, 8, ["modelValue"])),
882
- C("span", null, k(e(L)("of")) + " " + k(_.value), 1)
883
- ]),
884
854
  F(ve, {
885
855
  disabled: a.value === _.value - 1,
886
- onClick: p[5] || (p[5] = (o) => d("next"))
856
+ onClick: p[2] || (p[2] = (o) => d("next"))
887
857
  }, {
888
858
  default: v(() => [
889
- F(Z, {
890
- reactive: "",
891
- icon: "caret-right"
892
- })
859
+ F(Z, { icon: "caret-right" })
893
860
  ]),
894
861
  _: 1
895
862
  }, 8, ["disabled"]),
896
863
  F(ve, {
897
- onClick: p[6] || (p[6] = (o) => a.value = _.value - 1)
864
+ disabled: a.value === _.value - 1,
865
+ onClick: p[3] || (p[3] = (o) => a.value = _.value - 1)
898
866
  }, {
899
867
  default: v(() => [
900
- F(Z, {
901
- reactive: "",
902
- icon: "caret-double-right"
903
- })
868
+ F(Z, { icon: "caret-double-right" })
904
869
  ]),
905
870
  _: 1
906
- })
907
- ])
871
+ }, 8, ["disabled"]),
872
+ F(Ge, {
873
+ modelValue: i.value,
874
+ "onUpdate:modelValue": p[4] || (p[4] = (o) => i.value = o),
875
+ property: {
876
+ enum: [],
877
+ icon: "list"
878
+ },
879
+ class: "pagination__control"
880
+ }, {
881
+ default: v(() => [
882
+ (t(!0), s(N, null, D(e(Mt), (o) => (t(), s("option", {
883
+ key: `limit-${o}`,
884
+ value: o
885
+ }, k(o), 9, zn))), 128))
886
+ ]),
887
+ _: 1
888
+ }, 8, ["modelValue"])
889
+ ]),
890
+ h.noSummary ? y("", !0) : (t(), s("div", Mn, [
891
+ Q(k(e(L)("Page")) + " ", 1),
892
+ (t(), $(ke, {
893
+ key: a.value,
894
+ modelValue: c.value,
895
+ "onUpdate:modelValue": p[5] || (p[5] = (o) => c.value = o),
896
+ property: {
897
+ type: "number",
898
+ minimum: 1
899
+ },
900
+ style: { height: "100%" },
901
+ onChange: p[6] || (p[6] = (o) => {
902
+ a.value = c.value === 0 ? 0 : c.value - 1;
903
+ })
904
+ }, null, 8, ["modelValue"])),
905
+ I("span", null, k(e(L)("of")) + " " + k(_.value), 1)
906
+ ]))
908
907
  ]));
909
908
  }
910
909
  });
911
- const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
910
+ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { class: "checkbox__text" }, En = ["innerHTML"], Hn = { class: "checkbox__hint" }, Dn = ["innerHTML"], Qn = {
912
911
  inheritAttrs: !1
913
- }, Wn = /* @__PURE__ */ E({
914
- ...Gn,
912
+ }, Gn = /* @__PURE__ */ E({
913
+ ...Qn,
915
914
  __name: "aeria-checkbox",
916
915
  props: {
917
916
  modelValue: {},
@@ -933,7 +932,7 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
933
932
  return "checkbox";
934
933
  }
935
934
  return "radio";
936
- })(), c = r, _ = l.value || !1, d = G({
935
+ })(), c = r, _ = l.value || !1, d = W({
937
936
  get: () => {
938
937
  var p;
939
938
  if (n) {
@@ -976,7 +975,7 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
976
975
  ${e(a) && "checkbox--readOnly"}
977
976
  `)
978
977
  }, [
979
- x(C("input", Q({
978
+ x(I("input", G({
980
979
  "onUpdate:modelValue": o[0] || (o[0] = (S) => d.value = S)
981
980
  }, {
982
981
  type: e(i),
@@ -988,18 +987,18 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
988
987
  }), null, 16), [
989
988
  [At, d.value]
990
989
  ]),
991
- C("div", En, [
992
- C("div", null, [
993
- p.$slots.description ? O(p.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
990
+ I("div", Un, [
991
+ I("div", null, [
992
+ p.$slots.description ? C(p.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
994
993
  key: 1,
995
994
  innerHTML: (A = e(n)) != null && A.translate ? e(L)(e(_)) : e(_)
996
- }, null, 8, Hn)) : O(p.$slots, "default", { key: 2 }, void 0, !0)
995
+ }, null, 8, En)) : C(p.$slots, "default", { key: 2 }, void 0, !0)
997
996
  ]),
998
- C("div", Dn, [
999
- p.$slots.hint ? O(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
997
+ I("div", Hn, [
998
+ p.$slots.hint ? C(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
1000
999
  key: 1,
1001
1000
  innerHTML: e(n).hint
1002
- }, null, 8, Qn)) : y("", !0)
1001
+ }, null, 8, Dn)) : y("", !0)
1003
1002
  ])
1004
1003
  ])
1005
1004
  ], 2)), [
@@ -1008,10 +1007,10 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
1008
1007
  };
1009
1008
  }
1010
1009
  });
1011
- const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1010
+ const Wn = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1012
1011
  inheritAttrs: !1
1013
- }, Yn = /* @__PURE__ */ E({
1014
- ...Xn,
1012
+ }, Xn = /* @__PURE__ */ E({
1013
+ ...Kn,
1015
1014
  __name: "aeria-options",
1016
1015
  props: {
1017
1016
  modelValue: {},
@@ -1043,7 +1042,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1043
1042
  key: `option-${h}`,
1044
1043
  class: "options__checkbox"
1045
1044
  }, [
1046
- F(Kn, Q({ ref_for: !0 }, {
1045
+ F(Wn, G({ ref_for: !0 }, {
1047
1046
  value: h,
1048
1047
  readOnly: e(a),
1049
1048
  property: _.property
@@ -1055,10 +1054,10 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1055
1054
  ], 4));
1056
1055
  }
1057
1056
  });
1058
- const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) => (De("data-v-0e3564b6"), u = u(), Qe(), u), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ C("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1057
+ const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (u) => (De("data-v-0e3564b6"), u = u(), Qe(), u), Zn = { class: "switch-wrapper" }, Pn = /* @__PURE__ */ Jn(() => /* @__PURE__ */ I("div", { class: "switch__slider" }, null, -1)), Nn = { key: 1 }, xn = {
1059
1058
  inheritAttrs: !1
1060
- }, to = /* @__PURE__ */ E({
1061
- ...eo,
1059
+ }, eo = /* @__PURE__ */ E({
1060
+ ...xn,
1062
1061
  __name: "aeria-switch",
1063
1062
  props: {
1064
1063
  modelValue: {},
@@ -1076,7 +1075,7 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1076
1075
  return (_, d) => {
1077
1076
  var p;
1078
1077
  const h = oe("clickable");
1079
- return t(), s("div", Pn, [
1078
+ return t(), s("div", Zn, [
1080
1079
  x((t(), s("a", {
1081
1080
  class: X(`
1082
1081
  switch
@@ -1085,8 +1084,8 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1085
1084
  `),
1086
1085
  onClick: ze(c, ["stop"])
1087
1086
  }, [
1088
- Nn,
1089
- C("div", {
1087
+ Pn,
1088
+ I("div", {
1090
1089
  class: X(`
1091
1090
  switch__dummy
1092
1091
  ${!_.modelValue && "switch__dummy--flex"}
@@ -1097,35 +1096,35 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1097
1096
  blocked: e(i)
1098
1097
  }]
1099
1098
  ]),
1100
- _.$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))
1099
+ _.$slots.default ? C(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", Nn, k(((p = e(a)) == null ? void 0 : p.description) || _.propertyName), 1))
1101
1100
  ]);
1102
1101
  };
1103
1102
  }
1104
1103
  });
1105
- const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (De("data-v-153a2e0f"), u = u(), Qe(), u), oo = { class: "picture" }, ao = {
1104
+ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (De("data-v-153a2e0f"), u = u(), Qe(), u), no = { class: "picture" }, oo = {
1106
1105
  key: 0,
1107
1106
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1108
- }, lo = ["src", "alt"], so = {
1107
+ }, ao = ["src", "alt"], lo = {
1109
1108
  key: 0,
1110
1109
  class: "picture__meta"
1111
- }, io = ["src"], ro = /* @__PURE__ */ Ct(() => /* @__PURE__ */ C("line", {
1110
+ }, so = ["src"], io = /* @__PURE__ */ Ct(() => /* @__PURE__ */ I("line", {
1112
1111
  x1: "0",
1113
1112
  y1: "0",
1114
1113
  x2: "200",
1115
1114
  y2: "200",
1116
1115
  stroke: "#000",
1117
1116
  "vector-effect": "non-scaling-stroke"
1118
- }, null, -1)), uo = /* @__PURE__ */ Ct(() => /* @__PURE__ */ C("line", {
1117
+ }, null, -1)), ro = /* @__PURE__ */ Ct(() => /* @__PURE__ */ I("line", {
1119
1118
  x1: "200",
1120
1119
  y1: "0",
1121
1120
  x2: "0",
1122
1121
  y2: "200",
1123
1122
  stroke: "#000",
1124
1123
  "vector-effect": "non-scaling-stroke"
1125
- }, null, -1)), co = [
1126
- ro,
1127
- uo
1128
- ], po = { key: 5 }, _o = /* @__PURE__ */ E({
1124
+ }, null, -1)), uo = [
1125
+ io,
1126
+ ro
1127
+ ], co = { key: 5 }, po = /* @__PURE__ */ E({
1129
1128
  __name: "aeria-picture",
1130
1129
  props: {
1131
1130
  url: {},
@@ -1140,17 +1139,17 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1140
1139
  meta: {}
1141
1140
  },
1142
1141
  setup(u) {
1143
- const r = u, l = G(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1142
+ const r = u, l = W(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1144
1143
  return (a, i) => {
1145
1144
  var _;
1146
1145
  const c = oe("overlay");
1147
- return t(), s("figure", oo, [
1146
+ return t(), s("figure", no, [
1148
1147
  l.value ? (t(), $(Je, {
1149
1148
  key: 0,
1150
1149
  to: "main"
1151
1150
  }, [
1152
- n.value ? x((t(), s("div", ao, [
1153
- C("img", {
1151
+ n.value ? x((t(), s("div", oo, [
1152
+ I("img", {
1154
1153
  src: l.value,
1155
1154
  alt: a.alt,
1156
1155
  style: `
@@ -1158,8 +1157,8 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1158
1157
  object-fit: contain;
1159
1158
  `,
1160
1159
  onClick: i[0] || (i[0] = (d) => n.value = !0)
1161
- }, null, 8, lo),
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)
1160
+ }, null, 8, ao),
1161
+ (_ = a.meta) != null && _.owner ? (t(), s("div", lo, " Criado por " + k(a.meta.owner.name) + " em " + k(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1163
1162
  ])), [
1164
1163
  [c, {
1165
1164
  click: () => {
@@ -1184,7 +1183,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1184
1183
  onClick: i[1] || (i[1] = () => {
1185
1184
  a.expandable && (n.value = !0);
1186
1185
  })
1187
- }, null, 14, io)) : a.$slots.fallback ? O(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? O(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), s("svg", {
1186
+ }, null, 14, so)) : a.$slots.fallback ? C(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? C(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), s("svg", {
1188
1187
  key: 4,
1189
1188
  class: X(["picture__background", `
1190
1189
  ${a.bordered && "picture__image--bordered"}
@@ -1197,24 +1196,24 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1197
1196
  width: ${a.width || "100%"};
1198
1197
  height: ${a.height || "100%"};
1199
1198
  `)
1200
- }, co, 6)),
1201
- a.$slots.caption ? (t(), s("figcaption", po, [
1202
- O(a.$slots, "caption", {}, void 0, !0)
1199
+ }, uo, 6)),
1200
+ a.$slots.caption ? (t(), s("figcaption", co, [
1201
+ C(a.$slots, "caption", {}, void 0, !0)
1203
1202
  ])) : y("", !0)
1204
1203
  ]);
1205
1204
  };
1206
1205
  }
1207
1206
  });
1208
- const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1207
+ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { class: "file" }, mo = { key: 0 }, fo = ["href"], vo = {
1209
1208
  key: 1,
1210
1209
  class: "file__actions"
1211
- }, ho = ["accept"], bo = {
1210
+ }, yo = ["accept"], ho = {
1212
1211
  key: 0,
1213
1212
  class: "file__buttons"
1214
- }, $o = {
1213
+ }, bo = {
1215
1214
  key: 1,
1216
1215
  class: "file__buttons"
1217
- }, go = /* @__PURE__ */ E({
1216
+ }, $o = /* @__PURE__ */ E({
1218
1217
  __name: "aeria-file",
1219
1218
  props: {
1220
1219
  modelValue: {},
@@ -1229,10 +1228,10 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1229
1228
  emits: ["update:content", "change", "update:modelValue"],
1230
1229
  setup(u, { emit: r }) {
1231
1230
  var A;
1232
- const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = G(() => {
1231
+ const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = W(() => {
1233
1232
  var b;
1234
1233
  return c.value ? URL.createObjectURL(c.value) : (b = l.modelValue) == null ? void 0 : b.link;
1235
- }), d = G(() => {
1234
+ }), d = W(() => {
1236
1235
  var b, S, j;
1237
1236
  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);
1238
1237
  }), h = (b) => new Promise((S) => {
@@ -1267,8 +1266,8 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1267
1266
  };
1268
1267
  return (b, S) => {
1269
1268
  var j, P, B, R, Y, w;
1270
- return t(), s("div", mo, [
1271
- c.value || (j = b.modelValue) != null && j._id ? (t(), s("div", fo, [
1269
+ return t(), s("div", _o, [
1270
+ c.value || (j = b.modelValue) != null && j._id ? (t(), s("div", mo, [
1272
1271
  d.value ? (t(), $(He, {
1273
1272
  key: 0,
1274
1273
  modelValue: _.value,
@@ -1283,32 +1282,32 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1283
1282
  (B = b.modelValue) != null && B._id ? (t(), s("a", {
1284
1283
  key: 1,
1285
1284
  href: b.modelValue.download_link
1286
- }, k(b.modelValue.name), 9, vo)) : y("", !0)
1285
+ }, k(b.modelValue.name), 9, fo)) : y("", !0)
1287
1286
  ])) : y("", !0),
1288
- b.readOnly ? y("", !0) : (t(), s("div", yo, [
1289
- C("input", {
1287
+ b.readOnly ? y("", !0) : (t(), s("div", vo, [
1288
+ I("input", {
1290
1289
  ref: "file",
1291
1290
  type: "file",
1292
1291
  accept: (Y = (R = b.property) == null ? void 0 : R.accept) == null ? void 0 : Y.join(","),
1293
1292
  onChange: o
1294
- }, null, 40, ho),
1295
- c.value ? (t(), s("div", bo, [
1293
+ }, null, 40, yo),
1294
+ c.value ? (t(), s("div", ho, [
1296
1295
  F(re, {
1297
1296
  small: "",
1298
1297
  onClick: ze(p, ["prevent"])
1299
1298
  }, {
1300
1299
  default: v(() => [
1301
- W(k(e(L)("action.clear", { capitalize: !0 })), 1)
1300
+ Q(k(e(L)("action.clear", { capitalize: !0 })), 1)
1302
1301
  ]),
1303
1302
  _: 1
1304
1303
  })
1305
- ])) : (w = b.modelValue) != null && w._id ? (t(), s("div", $o, [
1304
+ ])) : (w = b.modelValue) != null && w._id ? (t(), s("div", bo, [
1306
1305
  F(re, {
1307
1306
  small: "",
1308
1307
  onClick: ze(m, ["prevent"])
1309
1308
  }, {
1310
1309
  default: v(() => [
1311
- W(k(e(L)("action.remove", { capitalize: !0 })), 1)
1310
+ Q(k(e(L)("action.remove", { capitalize: !0 })), 1)
1312
1311
  ]),
1313
1312
  _: 1
1314
1313
  })
@@ -1318,10 +1317,10 @@ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1318
1317
  };
1319
1318
  }
1320
1319
  });
1321
- const ko = /* @__PURE__ */ K(go, [["__scopeId", "data-v-e6cdde77"]]), Vo = { class: "container" }, Co = {
1320
+ const go = /* @__PURE__ */ K($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { class: "container" }, Vo = {
1322
1321
  key: 1,
1323
1322
  class: "container__footer"
1324
- }, Oo = /* @__PURE__ */ E({
1323
+ }, Co = /* @__PURE__ */ E({
1325
1324
  __name: "aeria-search-container",
1326
1325
  props: {
1327
1326
  observeScroll: { type: Boolean }
@@ -1333,22 +1332,22 @@ const ko = /* @__PURE__ */ K(go, [["__scopeId", "data-v-e6cdde77"]]), Vo = { cla
1333
1332
  }).reachedEnd : null;
1334
1333
  return i !== null && ue(i, (c) => {
1335
1334
  c && n("endReached", c);
1336
- }), (c, _) => (t(), s("div", Vo, [
1335
+ }), (c, _) => (t(), s("div", ko, [
1337
1336
  c.$slots.default ? (t(), s("div", {
1338
1337
  key: 0,
1339
1338
  ref_key: "containerEl",
1340
1339
  ref: a,
1341
1340
  class: "container__content"
1342
1341
  }, [
1343
- O(c.$slots, "default", {}, void 0, !0)
1342
+ C(c.$slots, "default", {}, void 0, !0)
1344
1343
  ], 512)) : y("", !0),
1345
- c.$slots.footer ? (t(), s("div", Co, [
1346
- O(c.$slots, "footer", {}, void 0, !0)
1344
+ c.$slots.footer ? (t(), s("div", Vo, [
1345
+ C(c.$slots, "footer", {}, void 0, !0)
1347
1346
  ])) : y("", !0)
1348
1347
  ]));
1349
1348
  }
1350
1349
  });
1351
- const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { class: "item__values" }, Ao = /* @__PURE__ */ E({
1350
+ const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { class: "item__values" }, Io = /* @__PURE__ */ E({
1352
1351
  __name: "aeria-search-item",
1353
1352
  props: {
1354
1353
  item: {},
@@ -1359,7 +1358,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1359
1358
  },
1360
1359
  emits: ["update:modelValue", "change"],
1361
1360
  setup(u, { emit: r }) {
1362
- 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 = () => {
1361
+ const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), d = W(() => 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
1362
  if (d.value)
1364
1363
  return;
1365
1364
  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;
@@ -1381,11 +1380,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1381
1380
  }, o = () => {
1382
1381
  if (n.readOnly) {
1383
1382
  l.push({
1384
- name: "/dashboard/crud/:id",
1385
- params: {
1386
- collection: c.$ref,
1387
- id: n.item._id
1388
- }
1383
+ path: `/dashboard/c/${c.$ref}/${n.item._id}`
1389
1384
  });
1390
1385
  return;
1391
1386
  }
@@ -1400,8 +1395,8 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1400
1395
  }),
1401
1396
  onClick: o
1402
1397
  }, [
1403
- O(m.$slots, "default", {}, void 0, !0),
1404
- C("div", Io, [
1398
+ C(m.$slots, "default", {}, void 0, !0),
1399
+ I("div", Oo, [
1405
1400
  (t(!0), s(N, null, D(m.indexes, (S, j) => (t(), s("div", {
1406
1401
  key: `index-${m.item._id}-${j}`,
1407
1402
  class: "item__value"
@@ -1418,10 +1413,10 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1418
1413
  };
1419
1414
  }
1420
1415
  });
1421
- const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { class: "search__panel" }, wo = { class: "search__input" }, So = ["value"], To = { style: { flex: "1" } }, jo = { key: 1 }, Ro = { key: 0 }, Lo = { key: 1 }, zo = { class: "search__summary" }, Mo = {
1416
+ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { class: "search__panel" }, Bo = { class: "search__input" }, wo = ["value"], So = { style: { flex: "1" } }, To = { key: 1 }, jo = { key: 0 }, Ro = { key: 1 }, Lo = { class: "search__summary" }, zo = {
1422
1417
  key: 1,
1423
1418
  class: "search"
1424
- }, qo = { key: 0 }, Ee = 10, Fo = /* @__PURE__ */ E({
1419
+ }, Mo = { key: 0 }, Ee = 10, qo = /* @__PURE__ */ E({
1425
1420
  __name: "aeria-search",
1426
1421
  props: {
1427
1422
  modelValue: {},
@@ -1435,12 +1430,12 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1435
1430
  },
1436
1431
  emits: ["update:modelValue", "change", "update:panel"],
1437
1432
  setup(u, { emit: r }) {
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(), d = _ ? Ie() : null, h = n.indexes;
1433
+ const l = u, n = me(l.property), a = l.panel !== void 0 ? W(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, h = n.indexes;
1439
1434
  ye(Ue, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1440
1435
  const p = J(l.modelValue), o = J({
1441
1436
  data: [],
1442
1437
  pagination: {}
1443
- }), m = G(() => o.value.data), A = G(() => o.value.pagination), b = J(0), S = J(h[0]), j = J(!1), P = J({}), B = () => {
1438
+ }), m = W(() => o.value.data), A = W(() => o.value.pagination), b = J(0), S = J(h[0]), j = J(!1), P = J({}), B = () => {
1444
1439
  const z = {};
1445
1440
  if (_) {
1446
1441
  const U = e(_);
@@ -1497,7 +1492,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1497
1492
  "effect" in a ? i("update:panel", !0) : a.value = !0, w();
1498
1493
  }, ae = () => {
1499
1494
  b.value = 0, o.value.data.splice(0), "effect" in a ? i("update:panel", !1) : a.value = !1;
1500
- }, le = G(() => !Object.values(P.value).some((z) => !!z));
1495
+ }, le = W(() => !Object.values(P.value).some((z) => !!z));
1501
1496
  ue(le, (z, U) => {
1502
1497
  z && !U && w();
1503
1498
  }), bt(() => {
@@ -1531,7 +1526,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1531
1526
  onClick: se
1532
1527
  }, {
1533
1528
  default: v(() => [
1534
- W(k(e(L)("action.save", { capitalize: !0 })), 1)
1529
+ Q(k(e(L)("action.save", { capitalize: !0 })), 1)
1535
1530
  ]),
1536
1531
  _: 1
1537
1532
  })
@@ -1539,8 +1534,8 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1539
1534
  default: v(() => {
1540
1535
  var M, H;
1541
1536
  return [
1542
- C("div", Bo, [
1543
- C("div", wo, [
1537
+ I("div", Ao, [
1538
+ I("div", Bo, [
1544
1539
  e(h).length > 1 ? (t(), $(Ge, {
1545
1540
  key: 0,
1546
1541
  modelValue: S.value,
@@ -1552,12 +1547,12 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1552
1547
  (t(!0), s(N, null, D(e(h), (g) => (t(), s("option", {
1553
1548
  key: `searchfield-${g}`,
1554
1549
  value: g
1555
- }, k(e(L)(g)), 9, So))), 128))
1550
+ }, k(e(L)(g)), 9, wo))), 128))
1556
1551
  ]),
1557
1552
  _: 1
1558
1553
  }, 8, ["modelValue"])) : y("", !0),
1559
- C("div", To, [
1560
- (t(), $(Oe, {
1554
+ I("div", So, [
1555
+ (t(), $(ke, {
1561
1556
  key: `field-${S.value}`,
1562
1557
  modelValue: P.value[S.value],
1563
1558
  "onUpdate:modelValue": U[2] || (U[2] = (g) => P.value[S.value] = g),
@@ -1575,34 +1570,34 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1575
1570
  onEndReached: R
1576
1571
  }, {
1577
1572
  default: v(() => [
1578
- (t(!0), s(N, null, D(m.value, (g) => (t(), $(Xe, Q({ ref_for: !0 }, {
1573
+ (t(!0), s(N, null, D(m.value, (g) => (t(), $(Xe, G({ ref_for: !0 }, {
1579
1574
  item: g,
1580
1575
  indexes: e(h),
1581
1576
  property: z.property
1582
1577
  }, {
1583
1578
  key: `matching-${g._id}`,
1584
1579
  modelValue: p.value,
1585
- "onUpdate:modelValue": U[3] || (U[3] = (I) => p.value = I)
1580
+ "onUpdate:modelValue": U[3] || (U[3] = (O) => p.value = O)
1586
1581
  }), null, 16, ["modelValue"]))), 128))
1587
1582
  ]),
1588
1583
  _: 1
1589
- })) : (t(), s("div", jo, [
1590
- j.value ? (t(), s("div", Ro, k(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((g) => !!g).length > 0 && !("items" in z.property && ((M = z.modelValue) != null && M.length) || !Array.isArray(z.modelValue) && ((H = z.modelValue) != null && H._id)) ? (t(), s("div", Lo, k(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1584
+ })) : (t(), s("div", To, [
1585
+ j.value ? (t(), s("div", jo, k(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((g) => !!g).length > 0 && !("items" in z.property && ((M = z.modelValue) != null && M.length) || !Array.isArray(z.modelValue) && ((H = z.modelValue) != null && H._id)) ? (t(), s("div", Ro, k(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1591
1586
  ]))
1592
1587
  ]),
1593
- C("div", zo, k(e(L)("showing", { capitalize: !0 })) + " " + k(m.value.length) + " " + k(e(L)("of")) + " " + k(A.value.recordsTotal), 1)
1588
+ I("div", Lo, k(e(L)("showing", { capitalize: !0 })) + " " + k(m.value.length) + " " + k(e(L)("of")) + " " + k(A.value.recordsTotal), 1)
1594
1589
  ];
1595
1590
  }),
1596
1591
  _: 1
1597
1592
  }, 8, ["title", "model-value"])
1598
1593
  ])) : y("", !0),
1599
- z.selectOnly ? y("", !0) : (t(), s("div", Mo, [
1594
+ z.selectOnly ? y("", !0) : (t(), s("div", zo, [
1600
1595
  F(mt, null, ce({
1601
1596
  default: v(() => {
1602
1597
  var M;
1603
1598
  return [
1604
- "items" in z.property ? (t(), s("div", qo, [
1605
- (t(!0), s(N, null, D(z.modelValue, (H) => (t(), $(Xe, Q({ ref_for: !0 }, {
1599
+ "items" in z.property ? (t(), s("div", Mo, [
1600
+ (t(!0), s(N, null, D(z.modelValue, (H) => (t(), $(Xe, G({ ref_for: !0 }, {
1606
1601
  item: H,
1607
1602
  indexes: e(h),
1608
1603
  property: z.property,
@@ -1612,7 +1607,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1612
1607
  key: `selected-${H._id}`,
1613
1608
  "onUpdate:modelValue": ne
1614
1609
  }), null, 16))), 128))
1615
- ])) : (M = z.modelValue) != null && M._id ? (t(), $(Xe, Q({ key: 1 }, {
1610
+ ])) : (M = z.modelValue) != null && M._id ? (t(), $(Xe, G({ key: 1 }, {
1616
1611
  item: z.modelValue,
1617
1612
  indexes: e(h),
1618
1613
  property: e(n),
@@ -1631,7 +1626,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1631
1626
  onClick: T
1632
1627
  }, {
1633
1628
  default: v(() => [
1634
- W(k(e(L)("action.select", { capitalize: !0 })), 1)
1629
+ Q(k(e(L)("action.select", { capitalize: !0 })), 1)
1635
1630
  ]),
1636
1631
  _: 1
1637
1632
  })), [
@@ -1646,14 +1641,14 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1646
1641
  };
1647
1642
  }
1648
1643
  });
1649
- const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r) => {
1644
+ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r) => {
1650
1645
  const l = "items" in u ? u.items : u, n = {
1651
- options: Jn,
1646
+ options: Yn,
1652
1647
  select: Ge,
1653
- switch: no,
1654
- file: ko,
1655
- search: Uo,
1656
- input: Oe,
1648
+ switch: to,
1649
+ file: go,
1650
+ search: Fo,
1651
+ input: ke,
1657
1652
  form: We
1658
1653
  }, a = (() => {
1659
1654
  if ("type" in l) {
@@ -1672,29 +1667,29 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1672
1667
  return i ? i.inline ? "form" : i.$ref === "file" ? "file" : "search" : "items" in u && u.uniqueItems ? "options" : "enum" in l ? "select" : "input";
1673
1668
  })();
1674
1669
  return r[a] ? r[a] : n[a];
1675
- }, Eo = (u, r, l) => {
1670
+ }, Uo = (u, r, l) => {
1676
1671
  u ?? (u = []);
1677
1672
  const n = "items" in r ? r.items : r;
1678
1673
  if ("$ref" in n) {
1679
- const a = ie(n.$ref, l), i = Ve(a.$freshItem);
1674
+ const a = ie(n.$ref, l), i = Ce(a.$freshItem);
1680
1675
  return u.push(i);
1681
1676
  }
1682
1677
  return "properties" in n ? u.push(Wt(n)) : "type" in n && n.type === "boolean" ? u.push({}) : u.push(null);
1683
- }, Ho = (u, r) => {
1678
+ }, Eo = (u, r) => {
1684
1679
  u.splice(r, 1);
1685
- }, Do = {
1680
+ }, Ho = {
1686
1681
  key: 0,
1687
1682
  class: "form__header"
1688
- }, Qo = { class: "form__fieldset" }, Go = { key: 0 }, Wo = ["innerHTML"], Ko = ["onInput"], Xo = { key: 4 }, Yo = { value: "true" }, Jo = { value: "false" }, Zo = {
1683
+ }, Do = { class: "form__fieldset" }, Qo = { key: 0 }, Go = ["innerHTML"], Wo = ["onInput"], Ko = { key: 4 }, Xo = { value: "true" }, Yo = { value: "false" }, Jo = {
1689
1684
  key: 5,
1690
1685
  style: { display: "grid", "row-gap": ".4rem" }
1691
- }, Po = { key: 0 }, No = { class: "form__array" }, xo = { style: { "flex-grow": "1" } }, ea = {
1686
+ }, Zo = { key: 0 }, Po = { class: "form__array" }, No = { style: { "flex-grow": "1" } }, xo = {
1692
1687
  key: 7,
1693
1688
  class: "form__validation-error"
1694
- }, ta = { key: 0 }, na = { key: 1 }, oa = {
1689
+ }, ea = { key: 0 }, ta = { key: 1 }, na = {
1695
1690
  key: 2,
1696
1691
  class: "form__footer"
1697
- }, aa = /* @__PURE__ */ E({
1692
+ }, oa = /* @__PURE__ */ E({
1698
1693
  __name: "aeria-form",
1699
1694
  props: {
1700
1695
  modelValue: {},
@@ -1730,7 +1725,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1730
1725
  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;
1731
1726
  !c && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1732
1727
  collection prop, some features may not work as intended`);
1733
- const h = J(!1), p = G(() => {
1728
+ const h = J(!1), p = W(() => {
1734
1729
  const f = (() => !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)();
1735
1730
  if (!f)
1736
1731
  return;
@@ -1748,10 +1743,10 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1748
1743
  f.created_at || (M.created_at = H), f.created_at || (M.updated_at = H);
1749
1744
  }
1750
1745
  return Object.assign(M, f), M;
1751
- }), o = G(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1746
+ }), o = W(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1752
1747
  const M = _e(f, n[f]);
1753
1748
  return n[f] && ye(f, n[f]), M;
1754
- }, 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");
1749
+ }, A = W(() => 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");
1755
1750
  c && ye(Ue, c), ye("searchOnly", n.searchOnly);
1756
1751
  const R = (f) => p.value ? Object.entries(p.value).filter(([M, H]) => !H.noForm && f([
1757
1752
  M,
@@ -1772,14 +1767,14 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1772
1767
  n.modelValue,
1773
1768
  g.if
1774
1769
  );
1775
- Te.satisfied || (V[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? Ve(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1770
+ Te.satisfied || (V[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? Ce(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1776
1771
  void 0,
1777
1772
  null
1778
1773
  ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), H.push("display: none;")), V[f] = Te.satisfied;
1779
1774
  }
1780
- const I = te.value.md && (g == null ? void 0 : g.span) || 6;
1775
+ const O = te.value.md && (g == null ? void 0 : g.span) || 6;
1781
1776
  return H.push(`
1782
- --field-span: ${I};
1777
+ --field-span: ${O};
1783
1778
  grid-column: span var(--field-span) / span var(--field-span);
1784
1779
  `), g && (g.verticalSpacing && H.push(`
1785
1780
  --vertical-spacing: ${g.verticalSpacing};
@@ -1790,7 +1785,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1790
1785
  padding: 1rem 0;
1791
1786
  margin: 1rem 0;
1792
1787
  `)), H.join("");
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 : d == null ? void 0 : d.description.required), ne = G(() => n.form ? Ft(
1788
+ }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = W(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), ne = W(() => n.form ? Ft(
1794
1789
  n.modelValue,
1795
1790
  n.form,
1796
1791
  le.value,
@@ -1808,132 +1803,132 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1808
1803
  class: "form",
1809
1804
  style: be(`row-gap: ${e(j) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1810
1805
  }, [
1811
- f.$slots.header && !e(j) ? (t(), s("header", Do, [
1812
- O(f.$slots, "header", {}, void 0, !0)
1806
+ f.$slots.header && !e(j) ? (t(), s("header", Ho, [
1807
+ C(f.$slots, "header", {}, void 0, !0)
1813
1808
  ])) : y("", !0),
1814
- O(f.$slots, "default", {}, void 0, !0),
1815
- C("fieldset", Qo, [
1816
- (t(!0), s(N, null, D(e(w), ([I, q]) => {
1809
+ C(f.$slots, "default", {}, void 0, !0),
1810
+ I("fieldset", Do, [
1811
+ (t(!0), s(N, null, D(e(w), ([O, q]) => {
1817
1812
  var fe, we, Se, Te, Ne, xe, et, tt, nt, ot, at, lt, st;
1818
1813
  return t(), s("div", {
1819
- key: `field-${I}`,
1820
- style: be(T(I, q)),
1814
+ key: `field-${O}`,
1815
+ style: be(T(O, q)),
1821
1816
  class: "form__field"
1822
1817
  }, [
1823
- (!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(B) ? (t(), s("label", Go, [
1824
- C("div", {
1818
+ (!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(B) ? (t(), s("label", Qo, [
1819
+ I("div", {
1825
1820
  class: X({
1826
1821
  "form__field-label": !0,
1827
1822
  "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1828
- "form__field-required-hint": f.highlightRequired && !e(_) && !f.searchOnly && (!le.value || e(Kt)(I, le.value, f.modelValue))
1823
+ "form__field-required-hint": f.highlightRequired && !e(_) && !f.searchOnly && (!le.value || e(Kt)(O, le.value, f.modelValue))
1829
1824
  })
1830
- }, k(q.description || e(L)(I)), 3),
1825
+ }, k(q.description || e(L)(O)), 3),
1831
1826
  q.hint ? (t(), s("div", {
1832
1827
  key: 0,
1833
1828
  innerHTML: q.hint
1834
- }, null, 8, Wo)) : y("", !0)
1829
+ }, null, 8, Go)) : y("", !0)
1835
1830
  ])) : y("", !0),
1836
- f.$slots[`field-${I}`] ? O(f.$slots, `field-${I}`, Q({
1831
+ f.$slots[`field-${O}`] ? C(f.$slots, `field-${O}`, G({
1837
1832
  key: 1,
1838
1833
  ref_for: !0
1839
1834
  }, {
1840
1835
  readOnly: e(_),
1841
1836
  property: q,
1842
- propertyName: I,
1837
+ propertyName: O,
1843
1838
  modelValue: f.modelValue
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({
1839
+ }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[O]) != null && Se.component && e(S)[f.layout.fields[O].component.name] ? (t(), $(he(e(S)[f.layout.fields[O].component.name]), G({
1845
1840
  key: 2,
1846
- modelValue: f.modelValue[I],
1847
- "onUpdate:modelValue": (ee) => f.modelValue[I] = ee,
1841
+ modelValue: f.modelValue[O],
1842
+ "onUpdate:modelValue": (ee) => f.modelValue[O] = ee,
1848
1843
  ref_for: !0
1849
1844
  }, {
1850
1845
  readOnly: e(_),
1851
1846
  property: q,
1852
- propertyName: I,
1853
- ...f.layout.fields[I].component.props || {}
1847
+ propertyName: O,
1848
+ ...f.layout.fields[O].component.props || {}
1854
1849
  }, {
1855
- onInput: (ee) => a("input", I),
1850
+ onInput: (ee) => a("input", O),
1856
1851
  onChange: M[0] || (M[0] = (ee) => a("change", ee))
1857
1852
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && f.searchOnly ? (t(), s("div", {
1858
1853
  key: 3,
1859
1854
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1860
- onInput: (ee) => a("input", I),
1855
+ onInput: (ee) => a("input", O),
1861
1856
  onChange: M[1] || (M[1] = (ee) => a("change", ee))
1862
1857
  }, [
1863
- F(Oe, Q({
1864
- modelValue: f.modelValue[I].$gte,
1865
- "onUpdate:modelValue": (ee) => f.modelValue[I].$gte = ee,
1858
+ F(ke, G({
1859
+ modelValue: f.modelValue[O].$gte,
1860
+ "onUpdate:modelValue": (ee) => f.modelValue[O].$gte = ee,
1866
1861
  ref_for: !0
1867
1862
  }, {
1868
1863
  property: q,
1869
- propertyName: I
1864
+ propertyName: O
1870
1865
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1871
- F(Oe, Q({
1872
- modelValue: f.modelValue[I].$lte,
1873
- "onUpdate:modelValue": (ee) => f.modelValue[I].$lte = ee,
1866
+ F(ke, G({
1867
+ modelValue: f.modelValue[O].$lte,
1868
+ "onUpdate:modelValue": (ee) => f.modelValue[O].$lte = ee,
1874
1869
  ref_for: !0
1875
1870
  }, {
1876
1871
  property: q,
1877
- propertyName: I
1872
+ propertyName: O
1878
1873
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1879
- ], 40, Ko)) : "type" in q && q.type === "boolean" && f.searchOnly ? (t(), s("div", Xo, [
1880
- F(Ge, Q({ ref_for: !0 }, {
1874
+ ], 40, Wo)) : "type" in q && q.type === "boolean" && f.searchOnly ? (t(), s("div", Ko, [
1875
+ F(Ge, G({ ref_for: !0 }, {
1881
1876
  property: q,
1882
- propertyName: I
1877
+ propertyName: O
1883
1878
  }, {
1884
1879
  "boolean-ref": "",
1885
- "model-value": f.modelValue[I],
1880
+ "model-value": f.modelValue[O],
1886
1881
  onChange: M[2] || (M[2] = (ee) => a("change", ee)),
1887
1882
  "onUpdate:modelValue": (ee) => {
1888
- f.modelValue[I] = ee == "true" ? !0 : ee == "false" ? !1 : null;
1883
+ f.modelValue[O] = ee == "true" ? !0 : ee == "false" ? !1 : null;
1889
1884
  }
1890
1885
  }), {
1891
1886
  default: v(() => [
1892
- C("option", Yo, k(e(L)("yes")), 1),
1893
- C("option", Jo, k(e(L)("no")), 1)
1887
+ I("option", Xo, k(e(L)("yes")), 1),
1888
+ I("option", Yo, k(e(L)("no")), 1)
1894
1889
  ]),
1895
1890
  _: 2
1896
1891
  }, 1040, ["model-value", "onUpdate:modelValue"])
1897
- ])) : f.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (t(), s("div", Zo, [
1898
- e(_) ? y("", !0) : (t(), s("div", Po, [
1892
+ ])) : f.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (t(), s("div", Jo, [
1893
+ e(_) ? y("", !0) : (t(), s("div", Zo, [
1899
1894
  F(re, {
1900
1895
  small: "",
1901
1896
  variant: "alt",
1902
1897
  icon: "plus",
1903
- disabled: !("inline" in q.items && q.items.inline) && (((Te = f.modelValue[I]) == null ? void 0 : Te.length) >= q.maxItems || ae((xe = f.modelValue[I]) == null ? void 0 : xe[((Ne = f.modelValue[I]) == null ? void 0 : Ne.length) - 1])),
1898
+ disabled: !("inline" in q.items && q.items.inline) && (((Te = f.modelValue[O]) == null ? void 0 : Te.length) >= q.maxItems || ae((xe = f.modelValue[O]) == null ? void 0 : xe[((Ne = f.modelValue[O]) == null ? void 0 : Ne.length) - 1])),
1904
1899
  onClick: ze((ee) => {
1905
- f.modelValue[I] || (f.modelValue[I] = []), e(Eo)(f.modelValue[I], q, e(l));
1900
+ f.modelValue[O] || (f.modelValue[O] = []), e(Uo)(f.modelValue[O], q, e(l));
1906
1901
  }, ["prevent"])
1907
1902
  }, {
1908
1903
  default: v(() => [
1909
- W(k(e(L)("action.add", { capitalize: !0 })), 1)
1904
+ Q(k(e(L)("action.add", { capitalize: !0 })), 1)
1910
1905
  ]),
1911
1906
  _: 2
1912
1907
  }, 1032, ["disabled", "onClick"])
1913
1908
  ])),
1914
- C("div", No, [
1915
- (t(!0), s(N, null, D(f.modelValue[I], (ee, je) => {
1909
+ I("div", Po, [
1910
+ (t(!0), s(N, null, D(f.modelValue[O], (ee, je) => {
1916
1911
  var it, rt, ut, ct, dt, pt;
1917
1912
  return t(), s("div", {
1918
- key: `rep-${I}-${e(Ut)(ee, je)}`,
1913
+ key: `rep-${O}-${e(Ut)(ee, je)}`,
1919
1914
  class: "form__array-item"
1920
1915
  }, [
1921
- C("div", xo, [
1922
- (t(), $(he(e(ft)(q, e(b))), Q({
1923
- modelValue: f.modelValue[I][je],
1924
- "onUpdate:modelValue": (Re) => f.modelValue[I][je] = Re,
1916
+ I("div", No, [
1917
+ (t(), $(he(e(ft)(q, e(b))), G({
1918
+ modelValue: f.modelValue[O][je],
1919
+ "onUpdate:modelValue": (Re) => f.modelValue[O][je] = Re,
1925
1920
  ref_for: !0
1926
1921
  }, {
1927
1922
  readOnly: e(_),
1928
1923
  property: q.items,
1929
- propertyName: I,
1924
+ propertyName: O,
1930
1925
  parentCollection: e(c),
1931
1926
  parentPropertyName: f.parentPropertyName,
1932
- columns: ((ut = (rt = (it = f.layout) == null ? void 0 : it.fields) == null ? void 0 : rt[I]) == null ? void 0 : ut.optionsColumns) || ((pt = (dt = (ct = f.layout) == null ? void 0 : ct.fields) == null ? void 0 : dt.$default) == null ? void 0 : pt.optionsColumns),
1933
- validationErrors: se(I, je),
1927
+ columns: ((ut = (rt = (it = f.layout) == null ? void 0 : it.fields) == null ? void 0 : rt[O]) == null ? void 0 : ut.optionsColumns) || ((pt = (dt = (ct = f.layout) == null ? void 0 : ct.fields) == null ? void 0 : dt.$default) == null ? void 0 : pt.optionsColumns),
1928
+ validationErrors: se(O, je),
1934
1929
  ...q.componentProps || {}
1935
1930
  }, {
1936
- onInput: (Re) => a("input", I),
1931
+ onInput: (Re) => a("input", O),
1937
1932
  onChange: M[3] || (M[3] = (Re) => a("change", Re))
1938
1933
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1939
1934
  ]),
@@ -1941,44 +1936,44 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1941
1936
  key: 0,
1942
1937
  reactive: "",
1943
1938
  icon: "trash",
1944
- onClick: (Re) => e(Ho)(f.modelValue[I], je)
1939
+ onClick: (Re) => e(Eo)(f.modelValue[O], je)
1945
1940
  }, null, 8, ["onClick"])), [
1946
1941
  [H]
1947
1942
  ])
1948
1943
  ]);
1949
1944
  }), 128))
1950
1945
  ])
1951
- ])) : f.modelValue ? x((t(), $(he(e(ft)(q, e(b))), Q({
1946
+ ])) : f.modelValue ? x((t(), $(he(e(ft)(q, e(b))), G({
1952
1947
  key: 6,
1953
- modelValue: f.modelValue[I],
1954
- "onUpdate:modelValue": (ee) => f.modelValue[I] = ee,
1948
+ modelValue: f.modelValue[O],
1949
+ "onUpdate:modelValue": (ee) => f.modelValue[O] = ee,
1955
1950
  ref_for: !0
1956
1951
  }, {
1957
1952
  readOnly: e(_),
1958
1953
  property: q,
1959
- propertyName: I,
1954
+ propertyName: O,
1960
1955
  parentPropertyName: f.parentPropertyName,
1961
1956
  parentCollection: e(c),
1962
- columns: ((nt = (tt = (et = f.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[I]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = f.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
1957
+ columns: ((nt = (tt = (et = f.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[O]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = f.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
1963
1958
  ...q.componentProps || {},
1964
- validationErrors: se(I)
1959
+ validationErrors: se(O)
1965
1960
  }, {
1966
- onInput: (ee) => a("input", I),
1961
+ onInput: (ee) => a("input", O),
1967
1962
  onChange: M[4] || (M[4] = (ee) => a("change", ee)),
1968
1963
  onClipboardCopy: M[5] || (M[5] = (ee) => a("clipboardCopy", ee))
1969
1964
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1970
1965
  [g, z(q)]
1971
1966
  ]) : y("", !0),
1972
- (st = A.value) != null && st[I] ? (t(), s("div", ea, [
1973
- A.value[I].type ? (t(), s("span", ta, k(e(L)(`validation_error.${A.value[I].type}`)), 1)) : y("", !0),
1974
- A.value[I].detail ? (t(), s("span", na, k(e(L)(A.value[I].detail)), 1)) : y("", !0)
1967
+ (st = A.value) != null && st[O] ? (t(), s("div", xo, [
1968
+ A.value[O].type ? (t(), s("span", ea, k(e(L)(`validation_error.${A.value[O].type}`)), 1)) : y("", !0),
1969
+ A.value[O].detail ? (t(), s("span", ta, k(e(L)(A.value[O].detail)), 1)) : y("", !0)
1975
1970
  ])) : y("", !0)
1976
1971
  ], 4);
1977
1972
  }), 128))
1978
1973
  ]),
1979
- f.$slots.after ? O(f.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1980
- f.$slots.footer ? (t(), s("div", oa, [
1981
- O(f.$slots, "footer", de(ge({
1974
+ f.$slots.after ? C(f.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1975
+ f.$slots.footer ? (t(), s("div", na, [
1976
+ C(f.$slots, "footer", de(ge({
1982
1977
  isInsertReady: ne.value
1983
1978
  })), void 0, !0)
1984
1979
  ])) : y("", !0)
@@ -1986,7 +1981,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1986
1981
  };
1987
1982
  }
1988
1983
  });
1989
- const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @__PURE__ */ E({
1984
+ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @__PURE__ */ E({
1990
1985
  __name: "aeria-filter-panel",
1991
1986
  emits: ["update:modelValue"],
1992
1987
  setup(u, { emit: r }) {
@@ -2017,10 +2012,10 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2017
2012
  })
2018
2013
  }, {
2019
2014
  default: v(() => [
2020
- W(k(_.t("action.clear", { capitalize: !0 })) + " ", 1),
2015
+ Q(k(_.t("action.clear", { capitalize: !0 })) + " ", 1),
2021
2016
  F($e, null, {
2022
2017
  default: v(() => [
2023
- W(k(e(n).filtersCount), 1)
2018
+ Q(k(e(n).filtersCount), 1)
2024
2019
  ]),
2025
2020
  _: 1
2026
2021
  })
@@ -2034,13 +2029,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2034
2029
  onClick: c
2035
2030
  }, {
2036
2031
  default: v(() => [
2037
- W(k(_.t("action.filter", { capitalize: !0 })), 1)
2032
+ Q(k(_.t("action.filter", { capitalize: !0 })), 1)
2038
2033
  ]),
2039
2034
  _: 1
2040
2035
  }, 8, ["disabled"])
2041
2036
  ]),
2042
2037
  default: v(() => [
2043
- F(We, Q({
2038
+ F(We, G({
2044
2039
  modelValue: e(n).filters,
2045
2040
  "onUpdate:modelValue": d[0] || (d[0] = (h) => e(n).filters = h)
2046
2041
  }, {
@@ -2052,7 +2047,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2052
2047
  _: 1
2053
2048
  }, 8, ["title"]));
2054
2049
  }
2055
- }), sa = /* @__PURE__ */ E({
2050
+ }), la = /* @__PURE__ */ E({
2056
2051
  __name: "aeria-insert-panel",
2057
2052
  props: {
2058
2053
  collection: {},
@@ -2086,7 +2081,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2086
2081
  onOverlayClick: h
2087
2082
  }, ce({
2088
2083
  extra: v(() => [
2089
- F(Ce, Q({
2084
+ F(Oe, G({
2090
2085
  subject: e(i).item,
2091
2086
  actions: e(c).filter(({ action: b }) => b !== "ui:spawnEdit"),
2092
2087
  overlayLayer: 60
@@ -2109,7 +2104,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2109
2104
  }, 16)
2110
2105
  ]),
2111
2106
  default: v(() => [
2112
- F(We, Q({
2107
+ F(We, G({
2113
2108
  modelValue: e(i).item,
2114
2109
  "onUpdate:modelValue": m[0] || (m[0] = (b) => e(i).item = b)
2115
2110
  }, {
@@ -2127,7 +2122,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2127
2122
  D(Object.keys(o.$slots).filter((b) => b.startsWith("field-")), (b) => ({
2128
2123
  name: b,
2129
2124
  fn: v((S) => [
2130
- O(o.$slots, b, de(ge(S)))
2125
+ C(o.$slots, b, de(ge(S)))
2131
2126
  ])
2132
2127
  }))
2133
2128
  ]), 1040, ["modelValue"])
@@ -2137,7 +2132,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2137
2132
  o.$slots.header ? {
2138
2133
  name: "header",
2139
2134
  fn: v(() => [
2140
- O(o.$slots, "header")
2135
+ C(o.$slots, "header")
2141
2136
  ]),
2142
2137
  key: "0"
2143
2138
  } : void 0,
@@ -2149,7 +2144,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2149
2144
  onClick: h
2150
2145
  }, {
2151
2146
  default: v(() => [
2152
- W(k(e(d)("action.cancel", { capitalize: !0 })), 1)
2147
+ Q(k(e(d)("action.cancel", { capitalize: !0 })), 1)
2153
2148
  ]),
2154
2149
  _: 1
2155
2150
  }),
@@ -2160,7 +2155,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2160
2155
  onClick: _
2161
2156
  }, {
2162
2157
  default: v(() => [
2163
- W(k(e(d)("action.insert", { capitalize: !0 })), 1)
2158
+ Q(k(e(d)("action.insert", { capitalize: !0 })), 1)
2164
2159
  ]),
2165
2160
  _: 1
2166
2161
  }, 8, ["disabled", "loading"])
@@ -2178,7 +2173,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2178
2173
  }
2179
2174
  r.filtersPreset = u.filters || {}, r.preferredTableProperties = u.table ? Array.from(u.table) : [], r.pagination.offset = 0;
2180
2175
  }
2181
- }, ia = (u, r = {
2176
+ }, sa = (u, r = {
2182
2177
  persistInQuery: !0
2183
2178
  }) => {
2184
2179
  const n = Ae().currentRoute;
@@ -2199,29 +2194,29 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2199
2194
  }, {
2200
2195
  immediate: !0
2201
2196
  });
2202
- }, ra = (u) => (De("data-v-7fdb061d"), u = u(), Qe(), u), ua = {
2197
+ }, ia = (u) => (De("data-v-7fdb061d"), u = u(), Qe(), u), ra = {
2203
2198
  key: 0,
2204
2199
  class: "table aeria-surface"
2205
- }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["checked"], ma = {
2200
+ }, ua = { key: 0 }, ca = { key: 1 }, da = { key: 0 }, pa = ["checked"], _a = {
2206
2201
  key: 1,
2207
2202
  style: { "text-align": "right" }
2208
- }, fa = { key: 2 }, va = { key: 3 }, ya = ["onClick"], ha = { key: 0 }, ba = ["value"], $a = { class: "table__cell-mobile-label" }, ga = {
2203
+ }, ma = { key: 2 }, fa = { key: 3 }, va = ["onClick"], ya = { key: 0 }, ha = ["value"], ba = { class: "table__cell-mobile-label" }, $a = {
2209
2204
  key: 0,
2210
2205
  class: "table__cell-container"
2211
- }, ka = {
2206
+ }, ga = {
2212
2207
  key: 1,
2213
2208
  class: "table__cell-container"
2214
- }, Va = { class: "table__cell-grid" }, Ca = { key: 0 }, Oa = { key: 1 }, Ia = { key: 0 }, Aa = ["href"], Ba = { key: 3 }, wa = { key: 1 }, Sa = { key: 2 }, Ta = { key: 0 }, ja = { key: 1 }, Ra = { key: 2 }, La = {
2209
+ }, ka = { class: "table__cell-grid" }, Va = { key: 0 }, Ca = { key: 1 }, Oa = { key: 0 }, Ia = ["href"], Aa = { key: 3 }, Ba = { key: 1 }, wa = { key: 2 }, Sa = { key: 0 }, Ta = { key: 1 }, ja = { key: 2 }, Ra = {
2215
2210
  key: 1,
2216
2211
  class: "no-print"
2217
- }, za = { class: "table__cell-actions" }, Ma = {
2212
+ }, La = { class: "table__cell-actions" }, za = {
2218
2213
  key: 2,
2219
2214
  class: "no-print table__mobile-actions"
2220
- }, qa = ["id"], Fa = { key: 1 }, Ua = /* @__PURE__ */ ra(() => /* @__PURE__ */ C("td", { colspan: 10 }, [
2221
- /* @__PURE__ */ C("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2222
- ], -1)), Ea = [
2223
- Ua
2224
- ], Ha = /* @__PURE__ */ E({
2215
+ }, Ma = ["id"], qa = { key: 1 }, Fa = /* @__PURE__ */ ia(() => /* @__PURE__ */ I("td", { colspan: 10 }, [
2216
+ /* @__PURE__ */ I("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2217
+ ], -1)), Ua = [
2218
+ Fa
2219
+ ], Ea = /* @__PURE__ */ E({
2225
2220
  __name: "aeria-table",
2226
2221
  props: {
2227
2222
  columns: {},
@@ -2233,7 +2228,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2233
2228
  },
2234
2229
  emits: ["itemClick"],
2235
2230
  setup(u, { emit: r }) {
2236
- const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = G({
2231
+ const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = W({
2237
2232
  get: () => c == null ? void 0 : c.selected,
2238
2233
  set: (m) => c == null ? void 0 : c.$actions.selectManyItems(m, !0)
2239
2234
  }), d = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
@@ -2264,40 +2259,40 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2264
2259
  return (m, A) => {
2265
2260
  var S, j, P;
2266
2261
  const b = oe("clickable");
2267
- return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (t(), s("table", ua, [
2268
- m.$slots.thead ? (t(), s("thead", ca, [
2269
- O(m.$slots, "thead", {}, void 0, !0)
2270
- ])) : (t(), s("thead", da, [
2271
- C("tr", null, [
2272
- m.checkbox && e(c) && e(a).md ? (t(), s("th", pa, [
2273
- C("input", {
2262
+ return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (t(), s("table", ra, [
2263
+ m.$slots.thead ? (t(), s("thead", ua, [
2264
+ C(m.$slots, "thead", {}, void 0, !0)
2265
+ ])) : (t(), s("thead", ca, [
2266
+ I("tr", null, [
2267
+ m.checkbox && e(c) && e(a).md ? (t(), s("th", da, [
2268
+ I("input", {
2274
2269
  type: "checkbox",
2275
2270
  checked: e(c).selected.length > 0 && e(c).selected.length === e(c).itemsCount,
2276
2271
  onChange: A[0] || (A[0] = (B) => e(c).$actions.selectAllItems(B.target.checked))
2277
- }, null, 40, _a)
2272
+ }, null, 40, pa)
2278
2273
  ])) : y("", !0),
2279
2274
  (t(!0), s(N, null, D(Object.entries(m.columns), ([B, R], Y) => (t(), s("th", {
2280
2275
  key: `header-${Y}`,
2281
2276
  class: "table__header"
2282
2277
  }, k(R.description || e(L)(B)), 1))), 128)),
2283
- (S = m.actions) != null && S.length ? (t(), s("th", ma)) : y("", !0)
2278
+ (S = m.actions) != null && S.length ? (t(), s("th", _a)) : y("", !0)
2284
2279
  ])
2285
2280
  ])),
2286
- m.$slots.tbody ? (t(), s("tbody", fa, [
2287
- O(m.$slots, "tbody", {}, void 0, !0)
2288
- ])) : (t(), s("tbody", va, [
2281
+ m.$slots.tbody ? (t(), s("tbody", ma, [
2282
+ C(m.$slots, "tbody", {}, void 0, !0)
2283
+ ])) : (t(), s("tbody", fa, [
2289
2284
  (t(!0), s(N, null, D(m.rows, (B) => {
2290
2285
  var R, Y;
2291
2286
  return t(), s("tr", {
2292
2287
  key: B._id,
2293
2288
  onClick: (w) => n("itemClick", B)
2294
2289
  }, [
2295
- e(c) && m.checkbox && e(a).md ? (t(), s("td", ha, [
2296
- x(C("input", {
2290
+ e(c) && m.checkbox && e(a).md ? (t(), s("td", ya, [
2291
+ x(I("input", {
2297
2292
  "onUpdate:modelValue": A[1] || (A[1] = (w) => _.value = w),
2298
2293
  type: "checkbox",
2299
2294
  value: B._id
2300
- }, null, 8, ba), [
2295
+ }, null, 8, ha), [
2301
2296
  [Bt, _.value]
2302
2297
  ])
2303
2298
  ])) : y("", !0),
@@ -2306,24 +2301,24 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2306
2301
  return t(), s("td", {
2307
2302
  key: `column-${B._id}-${V}`
2308
2303
  }, [
2309
- C("div", $a, k(te.description || e(L)(w)), 1),
2310
- `row-${w}` in m.$slots ? (t(), s("div", ga, [
2311
- O(m.$slots, `row-${w}`, Q({ ref_for: !0 }, {
2304
+ I("div", ba, k(te.description || e(L)(w)), 1),
2305
+ `row-${w}` in m.$slots ? (t(), s("div", $a, [
2306
+ C(m.$slots, `row-${w}`, G({ ref_for: !0 }, {
2312
2307
  store: e(c),
2313
2308
  column: w,
2314
2309
  property: te,
2315
2310
  row: B
2316
2311
  }), void 0, !0)
2317
- ])) : (t(), s("div", ka, [
2318
- C("div", Va, [
2319
- "type" in te && te.type === "boolean" ? (t(), s("div", Ca, [
2312
+ ])) : (t(), s("div", ga, [
2313
+ I("div", ka, [
2314
+ "type" in te && te.type === "boolean" ? (t(), s("div", Va, [
2320
2315
  B[w] ? (t(), $(Z, {
2321
2316
  key: 0,
2322
2317
  icon: "check",
2323
2318
  "icon-classes": "aeria-blueish"
2324
2319
  }, {
2325
2320
  default: v(() => [
2326
- W(k(e(L)("yes")), 1)
2321
+ Q(k(e(L)("yes")), 1)
2327
2322
  ]),
2328
2323
  _: 1
2329
2324
  })) : (t(), $(Z, {
@@ -2332,12 +2327,12 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2332
2327
  "icon-classes": "aeria-redish"
2333
2328
  }, {
2334
2329
  default: v(() => [
2335
- W(k(e(L)("no")), 1)
2330
+ Q(k(e(L)("no")), 1)
2336
2331
  ]),
2337
2332
  _: 1
2338
2333
  }))
2339
- ])) : ((T = e(me)(te)) == null ? void 0 : T.$ref) === "file" ? (t(), s("div", Oa, [
2340
- B[w] ? (t(), s("div", Ia, [
2334
+ ])) : ((T = e(me)(te)) == null ? void 0 : T.$ref) === "file" ? (t(), s("div", Ca, [
2335
+ B[w] ? (t(), s("div", Oa, [
2341
2336
  "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(He, {
2342
2337
  key: 0,
2343
2338
  modelValue: B[w][0].link,
@@ -2358,15 +2353,15 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2358
2353
  key: 2,
2359
2354
  href: B[w].link,
2360
2355
  style: { "font-size": "10pt" }
2361
- }, k(B[w].filename), 9, Aa)) : (t(), s("div", Ba, " - "))
2362
- ])) : (t(), s("div", wa, " - "))
2363
- ])) : (t(), s("div", Sa, [
2364
- e(c) ? (t(), s("span", Ta, k(e(c).$actions.formatValue({
2356
+ }, k(B[w].filename), 9, Ia)) : (t(), s("div", Aa, " - "))
2357
+ ])) : (t(), s("div", Ba, " - "))
2358
+ ])) : (t(), s("div", wa, [
2359
+ e(c) ? (t(), s("span", Sa, k(e(c).$actions.formatValue({
2365
2360
  value: B[w],
2366
2361
  key: w,
2367
2362
  property: te
2368
- })), 1)) : (t(), s("span", ja, k(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2369
- ((le = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : le.length) > 1 ? (t(), s("div", Ra, [
2363
+ })), 1)) : (t(), s("span", Ta, k(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2364
+ ((le = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : le.length) > 1 ? (t(), s("div", ja, [
2370
2365
  (t(!0), s(N, null, D(e(me)(te).indexes.slice(1, 2), (ne, se) => (t(), s("div", {
2371
2366
  key: `subvalue-${se}`,
2372
2367
  class: "table__cell-subvalue"
@@ -2382,8 +2377,8 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2382
2377
  ]))
2383
2378
  ]);
2384
2379
  }), 128)),
2385
- (R = m.actions) != null && R.length && e(a).md ? (t(), s("td", La, [
2386
- C("div", za, [
2380
+ (R = m.actions) != null && R.length && e(a).md ? (t(), s("td", Ra, [
2381
+ I("div", La, [
2387
2382
  (t(!0), s(N, null, D(h(B), (w) => (t(), $(re, {
2388
2383
  key: `action-${w.action}`,
2389
2384
  small: "",
@@ -2393,11 +2388,11 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2393
2388
  onClick: (te) => w.click(B)
2394
2389
  }, {
2395
2390
  default: v(() => [
2396
- W(k(e(L)(w.label)), 1)
2391
+ Q(k(e(L)(w.label)), 1)
2397
2392
  ]),
2398
2393
  _: 2
2399
2394
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2400
- p(B).length > 0 ? (t(), $(Ce, Q({
2395
+ p(B).length > 0 ? (t(), $(Oe, G({
2401
2396
  key: 0,
2402
2397
  ref_for: !0
2403
2398
  }, {
@@ -2418,8 +2413,8 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2418
2413
  _: 2
2419
2414
  }, 1040)) : y("", !0)
2420
2415
  ])
2421
- ])) : (Y = m.actions) != null && Y.length ? (t(), s("td", Ma, [
2422
- C("div", {
2416
+ ])) : (Y = m.actions) != null && Y.length ? (t(), s("td", za, [
2417
+ I("div", {
2423
2418
  class: "table__mobile-actions-grid",
2424
2419
  style: be(`grid-template-columns: repeat(${h(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
2425
2420
  }, [
@@ -2433,14 +2428,14 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2433
2428
  icon: w.icon || "gear"
2434
2429
  }, {
2435
2430
  default: v(() => [
2436
- W(k(e(L)(w.label)), 1)
2431
+ Q(k(e(L)(w.label)), 1)
2437
2432
  ]),
2438
2433
  _: 2
2439
2434
  }, 1032, ["icon"])
2440
2435
  ]),
2441
2436
  _: 2
2442
2437
  }, 1032, ["onClick"]))), 128)),
2443
- p(B).length > 0 ? (t(), $(Ce, Q({
2438
+ p(B).length > 0 ? (t(), $(Oe, G({
2444
2439
  key: 0,
2445
2440
  ref_for: !0
2446
2441
  }, {
@@ -2457,20 +2452,20 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-e02fe7fe"]]), la = /* @_
2457
2452
  }, 1040)) : y("", !0)
2458
2453
  ], 4)
2459
2454
  ])) : y("", !0),
2460
- C("div", {
2455
+ I("div", {
2461
2456
  id: `dropdown-${B._id}`
2462
- }, null, 8, qa)
2463
- ], 8, ya);
2457
+ }, null, 8, Ma)
2458
+ ], 8, va);
2464
2459
  }), 128))
2465
2460
  ])),
2466
- C("tfoot", null, [
2467
- m.$slots.tfoot ? O(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((j = m.rows) != null && j.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", Fa, Ea)) : y("", !0)
2461
+ I("tfoot", null, [
2462
+ m.$slots.tfoot ? C(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((j = m.rows) != null && j.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", qa, Ua)) : y("", !0)
2468
2463
  ])
2469
2464
  ])) : y("", !0);
2470
2465
  };
2471
2466
  }
2472
2467
  });
2473
- const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-7fdb061d"]]), Qa = /* @__PURE__ */ E({
2468
+ const Ha = /* @__PURE__ */ K(Ea, [["__scopeId", "data-v-7fdb061d"]]), Da = /* @__PURE__ */ E({
2474
2469
  __name: "aeria-tabular",
2475
2470
  props: {
2476
2471
  individualActions: {},
@@ -2478,7 +2473,7 @@ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-7fdb061d"]]), Qa = /* @_
2478
2473
  componentProps: {}
2479
2474
  },
2480
2475
  setup(u) {
2481
- const r = u, l = Ie(), n = Fe(), a = G(() => {
2476
+ const r = u, l = Ie(), n = Fe(), a = W(() => {
2482
2477
  const i = {
2483
2478
  collection: n,
2484
2479
  checkbox: l.hasSelectionActions,
@@ -2490,20 +2485,20 @@ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-7fdb061d"]]), Qa = /* @_
2490
2485
  return Object.assign(i, r.componentProps);
2491
2486
  });
2492
2487
  return (i, c) => (t(), s("div", null, [
2493
- i.$slots.inner ? O(i.$slots, "inner", { key: 0 }) : y("", !0),
2494
- e(l).properties ? (t(), $(Da, Q({ key: 1 }, a.value, {
2488
+ i.$slots.inner ? C(i.$slots, "inner", { key: 0 }) : y("", !0),
2489
+ e(l).properties ? (t(), $(Ha, G({ key: 1 }, a.value, {
2495
2490
  key: e(l).$id
2496
2491
  }), ce({ _: 2 }, [
2497
2492
  D(Object.keys(i.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2498
2493
  name: _,
2499
2494
  fn: v((d) => [
2500
- O(i.$slots, _, de(ge(d)))
2495
+ C(i.$slots, _, de(ge(d)))
2501
2496
  ])
2502
2497
  }))
2503
2498
  ]), 1040)) : y("", !0)
2504
2499
  ]));
2505
2500
  }
2506
- }), Ga = /* @__PURE__ */ E({
2501
+ }), Qa = /* @__PURE__ */ E({
2507
2502
  __name: "aeria-grid",
2508
2503
  props: {
2509
2504
  list: { type: Boolean }
@@ -2515,14 +2510,14 @@ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-7fdb061d"]]), Qa = /* @_
2515
2510
  ${r.list && "grid--list"}
2516
2511
  `)
2517
2512
  }, [
2518
- O(r.$slots, "default", {}, void 0, !0)
2513
+ C(r.$slots, "default", {}, void 0, !0)
2519
2514
  ], 2));
2520
2515
  }
2521
2516
  });
2522
- const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key: 0 }, Xa = {
2517
+ const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key: 0 }, Ka = {
2523
2518
  key: 1,
2524
2519
  class: "card__information"
2525
- }, Ya = /* @__PURE__ */ E({
2520
+ }, Xa = /* @__PURE__ */ E({
2526
2521
  __name: "aeria-grid",
2527
2522
  props: {
2528
2523
  individualActions: {},
@@ -2534,7 +2529,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2534
2529
  const l = u.layoutOptions, n = Ie(), a = (i) => Array.isArray(i) ? i[0] : i;
2535
2530
  return (i, c) => {
2536
2531
  const _ = oe("clickable");
2537
- return t(), $(Wa, {
2532
+ return t(), $(Ga, {
2538
2533
  list: i.componentName === "list"
2539
2534
  }, {
2540
2535
  default: v(() => [
@@ -2544,11 +2539,11 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2544
2539
  horizontal: i.componentName === "list"
2545
2540
  }, ce({
2546
2541
  footer: v(() => [
2547
- e(l).title ? (t(), s("div", Ka, k(d[e(l).title]), 1)) : y("", !0),
2548
- e(l).information ? (t(), s("div", Xa, k(d[e(l).information]), 1)) : y("", !0)
2542
+ e(l).title ? (t(), s("div", Wa, k(d[e(l).title]), 1)) : y("", !0),
2543
+ e(l).information ? (t(), s("div", Ka, k(d[e(l).information]), 1)) : y("", !0)
2549
2544
  ]),
2550
2545
  actions: v(() => [
2551
- i.individualActions.length > 0 ? (t(), $(Ce, Q({
2546
+ i.individualActions.length > 0 ? (t(), $(Oe, G({
2552
2547
  key: 0,
2553
2548
  ref_for: !0
2554
2549
  }, {
@@ -2590,7 +2585,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2590
2585
  large: ""
2591
2586
  }, {
2592
2587
  default: v(() => [
2593
- W(k(e(l).translateBadge ? e(L)(h) : h), 1)
2588
+ Q(k(e(l).translateBadge ? e(L)(h) : h), 1)
2594
2589
  ]),
2595
2590
  _: 2
2596
2591
  }, 1024))), 128))
@@ -2601,7 +2596,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2601
2596
  fn: v(() => [
2602
2597
  F($e, null, {
2603
2598
  default: v(() => [
2604
- W(k(e(l).translateBadge ? e(L)(d[e(l).badge]) : d[e(l).badge]), 1)
2599
+ Q(k(e(l).translateBadge ? e(L)(d[e(l).badge]) : d[e(l).badge]), 1)
2605
2600
  ]),
2606
2601
  _: 2
2607
2602
  }, 1024)
@@ -2615,22 +2610,22 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2615
2610
  };
2616
2611
  }
2617
2612
  });
2618
- const vt = /* @__PURE__ */ K(Ya, [["__scopeId", "data-v-ccbced12"]]), Ja = (u) => ({
2619
- tabular: Qa,
2613
+ const vt = /* @__PURE__ */ K(Xa, [["__scopeId", "data-v-ccbced12"]]), Ya = (u) => ({
2614
+ tabular: Da,
2620
2615
  grid: vt,
2621
2616
  list: vt
2622
2617
  })[u], pe = J(!1);
2623
2618
  J(!1);
2624
- const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2619
+ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Za = {
2625
2620
  key: 2,
2626
2621
  class: "crud__controls"
2627
- }, Na = {
2622
+ }, Pa = {
2628
2623
  key: 0,
2629
2624
  class: "crud__search"
2630
- }, xa = { class: "crud__actions" }, el = { class: "crud__context-badge" }, tl = /* @__PURE__ */ Za(() => /* @__PURE__ */ C("div", null, "Filtros", -1)), nl = { key: 0 }, ol = {
2625
+ }, Na = { class: "crud__actions" }, xa = { class: "crud__context-badge" }, el = /* @__PURE__ */ Ja(() => /* @__PURE__ */ I("div", null, "Filtros", -1)), tl = { key: 0 }, nl = {
2631
2626
  key: 3,
2632
2627
  class: "crud__pagination"
2633
- }, ht = 30, al = /* @__PURE__ */ E({
2628
+ }, ht = 30, ol = /* @__PURE__ */ E({
2634
2629
  __name: "aeria-crud",
2635
2630
  props: {
2636
2631
  collection: {},
@@ -2655,7 +2650,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2655
2650
  V && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, j());
2656
2651
  });
2657
2652
  const o = ie(l.collection);
2658
- ia(o, {
2653
+ sa(o, {
2659
2654
  persistInQuery: !l.noQueryPersistence
2660
2655
  });
2661
2656
  const m = Pe(), A = l.action ? e(l.action) : Ht(o, a, m);
@@ -2701,14 +2696,14 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2701
2696
  query: {
2702
2697
  search: V || void 0
2703
2698
  }
2704
- })), V ? (o.filters = Object.assign(Ve(o.freshFilters), {
2699
+ })), V ? (o.filters = Object.assign(Ce(o.freshFilters), {
2705
2700
  $text: {
2706
2701
  $search: `"${V}"`,
2707
2702
  $caseSensitive: !1
2708
2703
  }
2709
2704
  }), j({
2710
2705
  offset: 0
2711
- })) : (o.filters = Ve(o.freshFilters), b.value = 0, j())));
2706
+ })) : (o.filters = Ce(o.freshFilters), b.value = 0, j())));
2712
2707
  ue(() => o.textQuery, (V) => {
2713
2708
  R(V);
2714
2709
  });
@@ -2719,7 +2714,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2719
2714
  o.$actions.clearFilters(), o.textQuery = "", h();
2720
2715
  }), ue(() => yt.value, async (V) => {
2721
2716
  var le;
2722
- const T = Ve(V);
2717
+ const T = Ce(V);
2723
2718
  let ae;
2724
2719
  if (T)
2725
2720
  if ((T.name === "spawnEdit" || T.name === "duplicate") && (ae = o.$actions.get({
@@ -2750,7 +2745,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2750
2745
  if (g.$ref === "file")
2751
2746
  return {};
2752
2747
  if (g.inline && H) {
2753
- const { _id: I, ...q } = H;
2748
+ const { _id: O, ...q } = H;
2754
2749
  return q;
2755
2750
  }
2756
2751
  return H;
@@ -2768,20 +2763,20 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2768
2763
  }), ue(() => pe, ({ value: V }) => {
2769
2764
  V === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2770
2765
  });
2771
- const w = G(() => o.individualActions.map((V) => ({
2766
+ const w = W(() => o.individualActions.map((V) => ({
2772
2767
  click: Le.value(V),
2773
2768
  ...V
2774
- }))), te = G(() => o.actions.filter((V) => !V.button));
2775
- return ye(Ue, G(() => l.collection)), ye("individualActions", w), (V, T) => {
2769
+ }))), te = W(() => o.actions.filter((V) => !V.button));
2770
+ return ye(Ue, W(() => l.collection)), ye("individualActions", w), (V, T) => {
2776
2771
  var ne, se, z, U, f, M, H;
2777
2772
  const ae = oe("clickable"), le = oe("loading");
2778
2773
  return t(), s(N, null, [
2779
- e(ke) ? (t(), $(la, {
2774
+ e(Ve) ? (t(), $(aa, {
2780
2775
  key: e(o).$id,
2781
- modelValue: e(ke),
2782
- "onUpdate:modelValue": T[0] || (T[0] = (g) => _t(ke) ? ke.value = g : null)
2776
+ modelValue: e(Ve),
2777
+ "onUpdate:modelValue": T[0] || (T[0] = (g) => _t(Ve) ? Ve.value = g : null)
2783
2778
  }, null, 8, ["modelValue"])) : y("", !0),
2784
- e(pe) ? (t(), $(sa, {
2779
+ e(pe) ? (t(), $(la, {
2785
2780
  key: 1,
2786
2781
  modelValue: e(pe),
2787
2782
  "onUpdate:modelValue": T[1] || (T[1] = (g) => _t(pe) ? pe.value = g : null),
@@ -2789,7 +2784,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2789
2784
  onCancel: T[2] || (T[2] = (g) => pe.value = !1)
2790
2785
  }, ce({
2791
2786
  header: v(() => [
2792
- C("span", null, k((() => {
2787
+ I("span", null, k((() => {
2793
2788
  switch (e(pe)) {
2794
2789
  case "add":
2795
2790
  return e(L)("action.add", { capitalize: !0 });
@@ -2800,20 +2795,20 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2800
2795
  return e(L)("action.edit", { capitalize: !0 });
2801
2796
  }
2802
2797
  })()), 1),
2803
- C("span", null, " " + k(e(L)(e(c).view.collection)), 1)
2798
+ I("span", null, " " + k(e(L)(e(c).view.collection)), 1)
2804
2799
  ]),
2805
2800
  _: 2
2806
2801
  }, [
2807
2802
  D(Object.keys(V.$slots).filter((g) => g.startsWith("field-")), (g) => ({
2808
2803
  name: g,
2809
- fn: v((I) => [
2810
- O(V.$slots, g, de(ge(I)), void 0, !0)
2804
+ fn: v((O) => [
2805
+ C(V.$slots, g, de(ge(O)), void 0, !0)
2811
2806
  ])
2812
2807
  }))
2813
2808
  ]), 1032, ["modelValue"])) : y("", !0),
2814
- !V.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (t(), s("div", Pa, [
2815
- e(o).description.search ? (t(), s("div", Na, [
2816
- F(Oe, Q({
2809
+ !V.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (t(), s("div", Za, [
2810
+ e(o).description.search ? (t(), s("div", Pa, [
2811
+ F(ke, G({
2817
2812
  modelValue: e(o).textQuery,
2818
2813
  "onUpdate:modelValue": T[3] || (T[3] = (g) => e(o).textQuery = g)
2819
2814
  }, {
@@ -2824,8 +2819,8 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2824
2819
  }
2825
2820
  }), null, 16, ["modelValue"])
2826
2821
  ])) : y("", !0),
2827
- C("div", xa, [
2828
- te.value.length > 0 || !V.noLayoutToggle && e(o).description.layout && ((z = e(o).description.layout) == null ? void 0 : z.name) !== "tabular" ? (t(), $(Ce, { key: 0 }, ce({
2822
+ I("div", Na, [
2823
+ te.value.length > 0 || !V.noLayoutToggle && e(o).description.layout && ((z = e(o).description.layout) == null ? void 0 : z.name) !== "tabular" ? (t(), $(Oe, { key: 0 }, ce({
2829
2824
  default: v(() => [
2830
2825
  F(re, {
2831
2826
  variant: "alt",
@@ -2834,7 +2829,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2834
2829
  default: v(() => [
2835
2830
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2836
2831
  default: v(() => [
2837
- W(k(e(o).filtersCount), 1)
2832
+ Q(k(e(o).filtersCount), 1)
2838
2833
  ]),
2839
2834
  _: 1
2840
2835
  })) : y("", !0)
@@ -2849,19 +2844,19 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2849
2844
  fn: v(() => [
2850
2845
  x((t(), $(Z, {
2851
2846
  icon: "funnel",
2852
- onClick: T[4] || (T[4] = (g) => ke.value = !0)
2847
+ onClick: T[4] || (T[4] = (g) => Ve.value = !0)
2853
2848
  }, {
2854
2849
  default: v(() => [
2855
- W(k(e(L)("filters", { capitalize: !0 })), 1)
2850
+ Q(k(e(L)("filters", { capitalize: !0 })), 1)
2856
2851
  ]),
2857
2852
  _: 1
2858
2853
  })), [
2859
2854
  [ae]
2860
2855
  ]),
2861
- C("div", el, [
2856
+ I("div", xa, [
2862
2857
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2863
2858
  default: v(() => [
2864
- W(k(e(o).filtersCount), 1)
2859
+ Q(k(e(o).filtersCount), 1)
2865
2860
  ]),
2866
2861
  _: 1
2867
2862
  })) : y("", !0)
@@ -2877,7 +2872,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2877
2872
  onClick: T[5] || (T[5] = (g) => Y(e(o)))
2878
2873
  }, {
2879
2874
  default: v(() => [
2880
- W(k(e(L)("change_layout", { capitalize: !0 })), 1)
2875
+ Q(k(e(L)("change_layout", { capitalize: !0 })), 1)
2881
2876
  ]),
2882
2877
  _: 1
2883
2878
  })), [
@@ -2886,8 +2881,8 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2886
2881
  ]),
2887
2882
  key: "1"
2888
2883
  } : void 0,
2889
- D(te.value, (g, I) => ({
2890
- name: `action-${I}`,
2884
+ D(te.value, (g, O) => ({
2885
+ name: `action-${O}`,
2891
2886
  fn: v(() => [
2892
2887
  g ? (t(), $(Z, {
2893
2888
  key: 0,
@@ -2896,7 +2891,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2896
2891
  onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2897
2892
  }, {
2898
2893
  default: v(() => [
2899
- W(k(e(L)(g.label, { capitalize: !0 })), 1)
2894
+ Q(k(e(L)(g.label, { capitalize: !0 })), 1)
2900
2895
  ]),
2901
2896
  _: 2
2902
2897
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2906,36 +2901,36 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2906
2901
  key: 1,
2907
2902
  variant: "alt",
2908
2903
  icon: "funnel",
2909
- onClick: T[6] || (T[6] = (g) => ke.value = !0)
2904
+ onClick: T[6] || (T[6] = (g) => Ve.value = !0)
2910
2905
  }, {
2911
2906
  default: v(() => [
2912
- tl,
2907
+ el,
2913
2908
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2914
2909
  default: v(() => [
2915
- W(k(e(o).filtersCount), 1)
2910
+ Q(k(e(o).filtersCount), 1)
2916
2911
  ]),
2917
2912
  _: 1
2918
2913
  })) : y("", !0)
2919
2914
  ]),
2920
2915
  _: 1
2921
2916
  })) : y("", !0),
2922
- (t(!0), s(N, null, D(e(o).actions.filter((g) => g.button), (g, I) => (t(), $(re, {
2923
- key: `action-${I}`,
2917
+ (t(!0), s(N, null, D(e(o).actions.filter((g) => g.button), (g, O) => (t(), $(re, {
2918
+ key: `action-${O}`,
2924
2919
  icon: g.icon,
2925
2920
  disabled: e(o).selected.length === 0 && g.selection,
2926
2921
  onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2927
2922
  }, {
2928
2923
  default: v(() => [
2929
- W(k(e(L)(g.label, { capitalize: !0 })), 1)
2924
+ Q(k(e(L)(g.label, { capitalize: !0 })), 1)
2930
2925
  ]),
2931
2926
  _: 2
2932
2927
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2933
- V.$slots.actions ? O(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2928
+ V.$slots.actions ? C(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2934
2929
  ])
2935
2930
  ])) : y("", !0),
2936
2931
  x((t(), s("div", null, [
2937
- e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || V.$slots.empty) ? (t(), s("div", nl, [
2938
- e(B) ? (t(), $(he(e(B)), de(Q({ key: 0 }, {
2932
+ e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || V.$slots.empty) ? (t(), s("div", tl, [
2933
+ e(B) ? (t(), $(he(e(B)), de(G({ key: 0 }, {
2939
2934
  collection: e(o).$id
2940
2935
  })), {
2941
2936
  default: v(() => [
@@ -2947,18 +2942,18 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2947
2942
  })())
2948
2943
  }, {
2949
2944
  default: v(() => [
2950
- W(k(e(L)("add_first_item", { capitalize: !0 })), 1)
2945
+ Q(k(e(L)("add_first_item", { capitalize: !0 })), 1)
2951
2946
  ]),
2952
2947
  _: 1
2953
2948
  })) : y("", !0)
2954
2949
  ]),
2955
2950
  _: 1
2956
- }, 16)) : O(V.$slots, "empty", de(Q({ key: 1 }, {
2951
+ }, 16)) : C(V.$slots, "empty", de(G({ key: 1 }, {
2957
2952
  collection: e(o).$id
2958
2953
  })), void 0, !0)
2959
- ])) : V.$slots.component ? O(V.$slots, "component", de(Q({ key: 1 }, {
2954
+ ])) : V.$slots.component ? C(V.$slots, "component", de(G({ key: 1 }, {
2960
2955
  store: e(o)
2961
- })), void 0, !0) : (t(), $(he(e(Ja)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), Q({ key: 2 }, {
2956
+ })), void 0, !0) : (t(), $(he(e(Ya)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), G({ key: 2 }, {
2962
2957
  individualActions: w.value,
2963
2958
  layoutOptions: ((M = V.layout) == null ? void 0 : M.options) || e(o).layout.options,
2964
2959
  componentProps: V.componentProps
@@ -2967,14 +2962,14 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2967
2962
  }), ce({ _: 2 }, [
2968
2963
  D(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
2969
2964
  name: g,
2970
- fn: v((I) => [
2971
- O(V.$slots, g, de(ge(I)), void 0, !0)
2965
+ fn: v((O) => [
2966
+ C(V.$slots, g, de(ge(O)), void 0, !0)
2972
2967
  ])
2973
2968
  })),
2974
2969
  V.$slots.tfoot ? {
2975
2970
  name: "tfoot",
2976
2971
  fn: v(() => [
2977
- O(V.$slots, "tfoot", {}, void 0, !0)
2972
+ C(V.$slots, "tfoot", {}, void 0, !0)
2978
2973
  ]),
2979
2974
  key: "0"
2980
2975
  } : void 0
@@ -2982,8 +2977,8 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2982
2977
  ])), [
2983
2978
  [le, (!e(p) || b.value === ht) && e(o).loading.getAll]
2984
2979
  ]),
2985
- !e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", ol, [
2986
- F(Un, {
2980
+ !e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", nl, [
2981
+ F(Fn, {
2987
2982
  pagination: e(o).pagination,
2988
2983
  onPaginate: P
2989
2984
  }, null, 8, ["pagination"])
@@ -2992,7 +2987,7 @@ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21ee
2992
2987
  };
2993
2988
  }
2994
2989
  });
2995
- const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { class: "prompt" }, sl = /* @__PURE__ */ E({
2990
+ const Ul = /* @__PURE__ */ K(ol, [["__scopeId", "data-v-21eeb8fd"]]), al = { class: "prompt" }, ll = /* @__PURE__ */ E({
2996
2991
  __name: "aeria-prompt",
2997
2992
  props: {
2998
2993
  title: {},
@@ -3009,7 +3004,7 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
3009
3004
  style: { "--panel-min-width": "32rem" }
3010
3005
  }, ce({
3011
3006
  footer: v(() => [
3012
- C("div", {
3007
+ I("div", {
3013
3008
  class: "prompt__actions",
3014
3009
  style: be(`grid-template-columns: repeat(${n.actions.length}, 1fr)`)
3015
3010
  }, [
@@ -3022,15 +3017,15 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
3022
3017
  onClick: (_) => i.click ? i.click(i) : l(i)
3023
3018
  }, {
3024
3019
  default: v(() => [
3025
- W(k(i.title || i.name), 1)
3020
+ Q(k(i.title || i.name), 1)
3026
3021
  ]),
3027
3022
  _: 2
3028
3023
  }, 1032, ["class", "onClick"]))), 128))
3029
3024
  ], 4)
3030
3025
  ]),
3031
3026
  default: v(() => [
3032
- C("div", ll, [
3033
- O(n.$slots, "default", {}, void 0, !0)
3027
+ I("div", al, [
3028
+ C(n.$slots, "default", {}, void 0, !0)
3034
3029
  ])
3035
3030
  ]),
3036
3031
  _: 2
@@ -3038,14 +3033,14 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
3038
3033
  n.title ? {
3039
3034
  name: "title",
3040
3035
  fn: v(() => [
3041
- W(k(n.title), 1)
3036
+ Q(k(n.title), 1)
3042
3037
  ]),
3043
3038
  key: "0"
3044
3039
  } : void 0
3045
3040
  ]), 1024));
3046
3041
  }
3047
3042
  });
3048
- const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { class: "toast__content" }, ul = { class: "toast__time" }, cl = /* @__PURE__ */ E({
3043
+ const sl = /* @__PURE__ */ K(ll, [["__scopeId", "data-v-5443f297"]]), il = { class: "toast__content" }, rl = { class: "toast__time" }, ul = /* @__PURE__ */ E({
3049
3044
  __name: "aeria-toast",
3050
3045
  props: {
3051
3046
  idx: {},
@@ -3065,13 +3060,13 @@ const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { cla
3065
3060
  onAnimationend: n[0] || (n[0] = (i) => e(r).$actions.popToast()),
3066
3061
  onClick: n[1] || (n[1] = (i) => e(r).$actions.popToast(l.itr))
3067
3062
  }, [
3068
- F(Z, Q(
3063
+ F(Z, G(
3069
3064
  l.icon ? { icon: l.icon } : { icon: "warning-circle" },
3070
3065
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3071
3066
  ), null, 16),
3072
- C("div", rl, [
3073
- O(l.$slots, "default", {}, void 0, !0),
3074
- C("div", ul, k(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3067
+ I("div", il, [
3068
+ C(l.$slots, "default", {}, void 0, !0),
3069
+ I("div", rl, k(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3075
3070
  ])
3076
3071
  ], 34)), [
3077
3072
  [a]
@@ -3079,10 +3074,10 @@ const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { cla
3079
3074
  };
3080
3075
  }
3081
3076
  });
3082
- const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["innerHTML"], _l = { class: "main__toasts" }, ml = ["innerHTML"], fl = /* @__PURE__ */ E({
3077
+ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["innerHTML"], pl = { class: "main__toasts" }, _l = ["innerHTML"], ml = /* @__PURE__ */ E({
3083
3078
  __name: "aeria-main",
3084
3079
  setup(u) {
3085
- const r = ie("meta"), l = G(() => r.themeOverride || r.theme);
3080
+ const r = ie("meta"), l = W(() => r.themeOverride || r.theme);
3086
3081
  return (n, a) => {
3087
3082
  const i = St("router-view");
3088
3083
  return t(), s("main", {
@@ -3101,7 +3096,7 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3101
3096
  D(Object.keys(n.$slots), (_) => ({
3102
3097
  name: _,
3103
3098
  fn: v(() => [
3104
- O(n.$slots, _, {}, void 0, !0)
3099
+ C(n.$slots, _, {}, void 0, !0)
3105
3100
  ])
3106
3101
  }))
3107
3102
  ]), 1024))
@@ -3111,8 +3106,8 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3111
3106
  ]),
3112
3107
  _: 3
3113
3108
  })),
3114
- O(n.$slots, "default", {}, void 0, !0),
3115
- F(Be, Q({
3109
+ C(n.$slots, "default", {}, void 0, !0),
3110
+ F(Be, G({
3116
3111
  modelValue: e(r).modal.visible,
3117
3112
  "onUpdate:modelValue": a[0] || (a[0] = (c) => e(r).modal.visible = c),
3118
3113
  float: "",
@@ -3126,25 +3121,25 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3126
3121
  key: 0,
3127
3122
  style: { "white-space": "pre-wrap" },
3128
3123
  innerHTML: e(r).modal.body
3129
- }, null, 8, pl)) : y("", !0),
3124
+ }, null, 8, dl)) : y("", !0),
3130
3125
  e(r).modal.component ? (t(), $(he(e(r).modal.component), { key: 1 })) : y("", !0)
3131
3126
  ]),
3132
3127
  _: 1
3133
3128
  }, 16, ["modelValue"]),
3134
- e(r).prompt.visible ? (t(), $(il, de(Q({ key: 0 }, e(r).prompt)), {
3129
+ e(r).prompt.visible ? (t(), $(sl, de(G({ key: 0 }, e(r).prompt)), {
3135
3130
  default: v(() => [
3136
- W(k(e(r).prompt.body), 1)
3131
+ Q(k(e(r).prompt.body), 1)
3137
3132
  ]),
3138
3133
  _: 1
3139
3134
  }, 16)) : y("", !0),
3140
- C("div", _l, [
3141
- (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(dl, Q({ ref_for: !0 }, c, {
3135
+ I("div", pl, [
3136
+ (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(cl, G({ ref_for: !0 }, c, {
3142
3137
  key: `toast-${c.itr}`
3143
3138
  }), {
3144
3139
  default: v(() => [
3145
- C("div", {
3140
+ I("div", {
3146
3141
  innerHTML: e(L)(c.text)
3147
- }, null, 8, ml)
3142
+ }, null, 8, _l)
3148
3143
  ]),
3149
3144
  _: 2
3150
3145
  }, 1040))), 128))
@@ -3153,28 +3148,28 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3153
3148
  };
3154
3149
  }
3155
3150
  });
3156
- const Hl = /* @__PURE__ */ K(fl, [["__scopeId", "data-v-1166be3d"]]);
3157
- const vl = {}, yl = { class: "menu" };
3158
- function hl(u, r) {
3159
- return t(), s("menu", yl, [
3151
+ const El = /* @__PURE__ */ K(ml, [["__scopeId", "data-v-1166be3d"]]);
3152
+ const fl = {}, vl = { class: "menu" };
3153
+ function yl(u, r) {
3154
+ return t(), s("menu", vl, [
3160
3155
  (t(!0), s(N, null, D(Object.keys(u.$slots), (l) => (t(), s("div", {
3161
3156
  key: l,
3162
3157
  class: "menu__entry"
3163
3158
  }, [
3164
- O(u.$slots, l, {}, void 0, !0)
3159
+ C(u.$slots, l, {}, void 0, !0)
3165
3160
  ]))), 128))
3166
3161
  ]);
3167
3162
  }
3168
- const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb"]]), bl = { class: "tabs" }, $l = {
3163
+ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb"]]), hl = { class: "tabs" }, bl = {
3169
3164
  key: 0,
3170
3165
  class: "tabs__horizontal"
3171
- }, gl = {
3166
+ }, $l = {
3172
3167
  key: 0,
3173
3168
  class: "tabs__tab tabs__tab--info"
3174
- }, kl = ["onClick"], Vl = {
3169
+ }, gl = ["onClick"], kl = {
3175
3170
  key: 1,
3176
3171
  class: "tabs__context-menu"
3177
- }, Cl = ["onClick"], Ol = /* @__PURE__ */ E({
3172
+ }, Vl = ["onClick"], Cl = /* @__PURE__ */ E({
3178
3173
  __name: "aeria-tabs",
3179
3174
  props: {
3180
3175
  query: {},
@@ -3182,7 +3177,7 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3182
3177
  dropdown: { type: Boolean }
3183
3178
  },
3184
3179
  setup(u) {
3185
- const r = u, l = jt(), n = Ae(), a = qe(), i = G(() => {
3180
+ const r = u, l = jt(), n = Ae(), a = qe(), i = W(() => {
3186
3181
  if (r.query) {
3187
3182
  const _ = n.currentRoute.value.query[r.query];
3188
3183
  if (_)
@@ -3206,10 +3201,10 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3206
3201
  };
3207
3202
  return (_, d) => {
3208
3203
  const h = oe("clickable");
3209
- return t(), s("div", bl, [
3210
- e(a).md && !_.dropdown ? (t(), s("div", $l, [
3211
- _.$slots.default ? (t(), s("div", gl, [
3212
- O(_.$slots, "default", {}, void 0, !0)
3204
+ return t(), s("div", hl, [
3205
+ e(a).md && !_.dropdown ? (t(), s("div", bl, [
3206
+ _.$slots.default ? (t(), s("div", $l, [
3207
+ C(_.$slots, "default", {}, void 0, !0)
3213
3208
  ])) : y("", !0),
3214
3209
  (t(!0), s(N, null, D(Object.keys(_.$slots).filter((p) => p !== "default"), (p, o) => (t(), s("div", {
3215
3210
  key: p,
@@ -3219,10 +3214,10 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3219
3214
  }),
3220
3215
  onClick: (m) => c(p)
3221
3216
  }, [
3222
- O(_.$slots, p, {}, void 0, !0)
3223
- ], 10, kl))), 128))
3224
- ])) : (t(), s("div", Vl, [
3225
- F(Ce, null, ce({
3217
+ C(_.$slots, p, {}, void 0, !0)
3218
+ ], 10, gl))), 128))
3219
+ ])) : (t(), s("div", kl, [
3220
+ F(Oe, null, ce({
3226
3221
  default: v(({ visible: p }) => [
3227
3222
  x((t(), $(Z, {
3228
3223
  "icon-right": "",
@@ -3232,7 +3227,7 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3232
3227
  class: "tabs__context-menu-icon"
3233
3228
  }, {
3234
3229
  default: v(() => [
3235
- O(_.$slots, i.value, {}, void 0, !0)
3230
+ C(_.$slots, i.value, {}, void 0, !0)
3236
3231
  ]),
3237
3232
  _: 2
3238
3233
  }, 1032, ["active"])), [
@@ -3244,11 +3239,11 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3244
3239
  D(Object.keys(_.$slots).filter((p) => p !== "default"), (p) => ({
3245
3240
  name: p,
3246
3241
  fn: v(() => [
3247
- C("div", {
3242
+ I("div", {
3248
3243
  onClick: (o) => c(p)
3249
3244
  }, [
3250
- O(_.$slots, p, {}, void 0, !0)
3251
- ], 8, Cl)
3245
+ C(_.$slots, p, {}, void 0, !0)
3246
+ ], 8, Vl)
3252
3247
  ])
3253
3248
  }))
3254
3249
  ]), 1024)
@@ -3257,7 +3252,7 @@ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3257
3252
  };
3258
3253
  }
3259
3254
  });
3260
- const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-a20914ab"]]), Al = E({
3255
+ const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
3261
3256
  props: {
3262
3257
  initialValue: String,
3263
3258
  promise: Promise
@@ -3268,19 +3263,19 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-a20914ab"]]), Al = E({
3268
3263
  r.value = l;
3269
3264
  }), () => Rt("div", r.value);
3270
3265
  }
3271
- }), Bl = ["onClick"], wl = { key: 1 }, Sl = /* @__PURE__ */ E({
3266
+ }), Al = ["onClick"], Bl = { key: 1 }, wl = /* @__PURE__ */ E({
3272
3267
  __name: "aeria-crud-topbar",
3273
3268
  props: {
3274
3269
  collection: {}
3275
3270
  },
3276
3271
  setup(u) {
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 (_, d) => {
3272
+ const r = u, n = Ae().currentRoute, a = Pe(), i = W(() => 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) => {
3278
3273
  const { error: h, result: p } = await d.$functions[_.badgeFunction]({
3279
3274
  filters: _.filters
3280
3275
  });
3281
3276
  return h ? 0 : p;
3282
3277
  };
3283
- return (_, d) => i.value && i.value.description.filtersPresets ? (t(), $(Il, {
3278
+ return (_, d) => i.value && i.value.description.filtersPresets ? (t(), $(Ol, {
3284
3279
  key: 0,
3285
3280
  dropdown: "",
3286
3281
  query: "section"
@@ -3288,7 +3283,7 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-a20914ab"]]), Al = E({
3288
3283
  D(Object.entries(i.value.description.filtersPresets), ([h, p]) => ({
3289
3284
  name: h,
3290
3285
  fn: v(() => [
3291
- C("div", {
3286
+ I("div", {
3292
3287
  class: "topbar__preset",
3293
3288
  onClick: (o) => e(Ot)(p, i.value)
3294
3289
  }, [
@@ -3297,29 +3292,29 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-a20914ab"]]), Al = E({
3297
3292
  icon: p.icon
3298
3293
  }, {
3299
3294
  default: v(() => [
3300
- W(k(p.label || e(L)(h, { plural: !0 })), 1)
3295
+ Q(k(p.label || e(L)(h, { plural: !0 })), 1)
3301
3296
  ]),
3302
3297
  _: 2
3303
- }, 1032, ["icon"])) : (t(), s("div", wl, k(p.label || e(L)(h, { plural: !0 })), 1)),
3298
+ }, 1032, ["icon"])) : (t(), s("div", Bl, k(p.label || e(L)(h, { plural: !0 })), 1)),
3304
3299
  p.badgeFunction ? (t(), $($e, { key: 2 }, {
3305
3300
  default: v(() => [
3306
- F(e(Al), {
3301
+ F(e(Il), {
3307
3302
  "initial-value": "0",
3308
3303
  promise: c(p, i.value)
3309
3304
  }, null, 8, ["promise"])
3310
3305
  ]),
3311
3306
  _: 2
3312
3307
  }, 1024)) : y("", !0)
3313
- ], 8, Bl)
3308
+ ], 8, Al)
3314
3309
  ])
3315
3310
  }))
3316
3311
  ]), 1024)) : y("", !0);
3317
3312
  }
3318
3313
  });
3319
- const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3314
+ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3320
3315
  __proto__: null,
3321
- default: Tl
3322
- }, Symbol.toStringTag, { value: "Module" })), Ql = /* @__PURE__ */ E({
3316
+ default: Sl
3317
+ }, Symbol.toStringTag, { value: "Module" })), Dl = /* @__PURE__ */ E({
3323
3318
  __name: "aeria-password-form",
3324
3319
  props: {
3325
3320
  modelValue: {}
@@ -3328,7 +3323,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3328
3323
  setup(u) {
3329
3324
  const r = u;
3330
3325
  ye(Ue, null);
3331
- const l = Qt(), n = G(() => l(
3326
+ const l = Qt(), n = W(() => l(
3332
3327
  r.modelValue.password,
3333
3328
  r.modelValue.confirmation
3334
3329
  ));
@@ -3349,13 +3344,13 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3349
3344
  "onUpdate:modelValue": i[0] || (i[0] = (c) => a.$emit("update:modelValue", c))
3350
3345
  }, {
3351
3346
  after: v(() => [
3352
- C("div", null, k(n.value || "Senhas conferem"), 1),
3353
- O(a.$slots, "default", de(ge({ passwordError: n.value })))
3347
+ I("div", null, k(n.value || "Senhas conferem"), 1),
3348
+ C(a.$slots, "default", de(ge({ passwordError: n.value })))
3354
3349
  ]),
3355
3350
  _: 3
3356
3351
  }, 8, ["model-value"]));
3357
3352
  }
3358
- }), Gl = (u, r = []) => ({
3353
+ }), Ql = (u, r = []) => ({
3359
3354
  path: "/user",
3360
3355
  name: "/builtin:user",
3361
3356
  component: u,
@@ -3373,7 +3368,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3373
3368
  {
3374
3369
  path: "signin",
3375
3370
  name: "/user/signin",
3376
- component: () => import("./signin-1c63bf10.js"),
3371
+ component: () => import("./signin-e4cc7e0d.js"),
3377
3372
  meta: {
3378
3373
  title: "Autenticação"
3379
3374
  }
@@ -3381,7 +3376,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3381
3376
  {
3382
3377
  path: "signup",
3383
3378
  name: "/user/signup",
3384
- component: () => import("./signup-f04a94e8.js"),
3379
+ component: () => import("./signup-ba8245b7.js"),
3385
3380
  meta: {
3386
3381
  title: "Registro"
3387
3382
  }
@@ -3389,13 +3384,13 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3389
3384
  {
3390
3385
  path: "activation",
3391
3386
  name: "/user/activation",
3392
- component: () => import("./activation-bf41e363.js"),
3387
+ component: () => import("./activation-38221cce.js"),
3393
3388
  meta: {
3394
3389
  title: "Ativação"
3395
3390
  }
3396
3391
  }
3397
3392
  ])
3398
- }), Wl = (u, r = []) => ({
3393
+ }), Gl = (u, r = []) => ({
3399
3394
  path: "/dashboard",
3400
3395
  name: "/builtin:dashboard",
3401
3396
  component: u,
@@ -3408,11 +3403,11 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3408
3403
  children: r.concat([
3409
3404
  {
3410
3405
  path: "c/:collection",
3411
- name: "/dashboard/crud",
3406
+ name: "/dashboard/:collection",
3412
3407
  props: !0,
3413
3408
  components: {
3414
- default: () => import("./index-1e34d8bf.js"),
3415
- topbar: () => Promise.resolve().then(() => jl)
3409
+ default: () => import("./index-bddeb3df.js"),
3410
+ topbar: () => Promise.resolve().then(() => Tl)
3416
3411
  },
3417
3412
  meta: {
3418
3413
  title: "%viewTitle%"
@@ -3420,10 +3415,10 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3420
3415
  },
3421
3416
  {
3422
3417
  path: "c/:collection/:id/:section?",
3423
- name: "/dashboard/crud/:id",
3418
+ name: "/dashboard/:collection/:id",
3424
3419
  props: !0,
3425
3420
  components: {
3426
- default: () => import("./_id_-5a31d8c9.js")
3421
+ default: () => import("./_id_-6411f44c.js")
3427
3422
  },
3428
3423
  meta: {
3429
3424
  title: "%viewTitle%"
@@ -3441,7 +3436,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3441
3436
  children: [
3442
3437
  {
3443
3438
  path: "profile",
3444
- component: () => import("./index-9fb126a5.js"),
3439
+ component: () => import("./index-6dd891f3.js"),
3445
3440
  meta: {
3446
3441
  title: "Meu perfil",
3447
3442
  icon: "user-square"
@@ -3450,7 +3445,7 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3450
3445
  {
3451
3446
  path: "changepass",
3452
3447
  name: "/dashboard/user/changepass",
3453
- component: () => import("./index-0dcd2a5b.js"),
3448
+ component: () => import("./index-478f3f8b.js"),
3454
3449
  meta: {
3455
3450
  title: "Mudar senha",
3456
3451
  icon: "lock"
@@ -3462,37 +3457,37 @@ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @_
3462
3457
  });
3463
3458
  export {
3464
3459
  We as A,
3465
- Al as B,
3466
- il as C,
3467
- dl as D,
3468
- Tl as E,
3469
- Gl as F,
3470
- Wl as G,
3471
- Ql as _,
3460
+ Il as B,
3461
+ sl as C,
3462
+ cl as D,
3463
+ Sl as E,
3464
+ Ql as F,
3465
+ Gl as G,
3466
+ Dl as _,
3472
3467
  re as a,
3473
3468
  Z as b,
3474
- Kn as c,
3475
- El as d,
3476
- sa as e,
3469
+ Wn as c,
3470
+ Ul as d,
3471
+ la as e,
3477
3472
  He as f,
3478
- Dl as g,
3473
+ Hl as g,
3479
3474
  Be as h,
3480
3475
  K as i,
3481
- Ul as j,
3476
+ Fl as j,
3482
3477
  $e as k,
3483
3478
  ve as l,
3484
3479
  fn as m,
3485
- Ce as n,
3486
- Wa as o,
3480
+ Oe as n,
3481
+ Ga as o,
3487
3482
  kn as p,
3488
- Hl as q,
3489
- Un as r,
3490
- Da as s,
3491
- Il as t,
3492
- ko as u,
3493
- Oe as v,
3494
- Jn as w,
3495
- Uo as x,
3483
+ El as q,
3484
+ Fn as r,
3485
+ Ha as s,
3486
+ Ol as t,
3487
+ go as u,
3488
+ ke as v,
3489
+ Yn as w,
3490
+ Fo as x,
3496
3491
  Ge as y,
3497
- no as z
3492
+ to as z
3498
3493
  };