@aeria-ui/ui 0.0.93 → 0.0.95

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,13 +1,13 @@
1
- import { defineComponent as F, ref as Y, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as G, withDirectives as Z, toDisplayString as V, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as E, createElementVNode as A, mergeProps as U, createBlock as k, withCtx as v, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
1
+ import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as x, renderList as G, withDirectives as P, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as H, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as v, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as wt, onUnmounted as Bt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
3
3
  import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
4
- import { useStore as ie, getStoreId as Me, useParentStore as Ie, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
5
- import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Ht, getObjectKey as Dt, convertToSearchQuery as Qt, useAction as Gt, convertFromSearchQuery as Wt, useParentCollectionStore as Qe, usePasswordPolicy as Kt } from "@aeria-ui/core";
6
- import { useRouter as Ae } from "vue-router";
7
- const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
4
+ import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
5
+ import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Ht, getObjectKey as Dt, convertToSearchQuery as Qt, useParentCollectionStore as Le, useCollectionStore as Gt, useAction as Wt, convertFromSearchQuery as Kt, usePasswordPolicy as Xt } from "@aeria-ui/core";
6
+ import { useRouter as Ie } from "vue-router";
7
+ const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
8
8
  key: 0,
9
9
  class: "accordion__content"
10
- }, Zt = /* @__PURE__ */ F({
10
+ }, Pt = /* @__PURE__ */ U({
11
11
  __name: "aeria-accordion",
12
12
  props: {
13
13
  enumerate: { type: Boolean },
@@ -15,7 +15,7 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
15
15
  headers: {}
16
16
  },
17
17
  setup(c) {
18
- const r = Y(null), l = (t) => typeof t == "string" ? t : t.title;
18
+ const r = J(null), l = (t) => typeof t == "string" ? t : t.title;
19
19
  return (t, o) => {
20
20
  const u = te("clickable");
21
21
  return n(), s("div", {
@@ -24,20 +24,20 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
24
24
  "accordion--padded": !t.noPadding
25
25
  })
26
26
  }, [
27
- (n(!0), s(N, null, G(Object.keys(t.$slots).filter((i) => i !== "default"), (i, _) => (n(), s("div", {
27
+ (n(!0), s(x, null, G(Object.keys(t.$slots).filter((i) => i !== "default"), (i, _) => (n(), s("div", {
28
28
  key: i,
29
29
  class: "accordion__slot"
30
30
  }, [
31
- Z((n(), s("div", {
31
+ P((n(), s("div", {
32
32
  class: "accordion__header",
33
33
  onClick: (p) => r.value === i ? r.value = null : r.value = i
34
34
  }, [
35
- t.enumerate ? (n(), s("span", Yt, V(_ + 1) + ". ", 1)) : y("", !0),
36
- Q(" " + V(t.headers[i] ? l(t.headers[i]) : e(R)(i)), 1)
37
- ], 8, Xt)), [
35
+ t.enumerate ? (n(), s("span", Jt, C(_ + 1) + ". ", 1)) : y("", !0),
36
+ Q(" " + C(t.headers[i] ? l(t.headers[i]) : e(R)(i)), 1)
37
+ ], 8, Yt)), [
38
38
  [u]
39
39
  ]),
40
- r.value === i ? (n(), s("div", Jt, [
40
+ r.value === i ? (n(), s("div", Zt, [
41
41
  O(t.$slots, i, {}, void 0, !0)
42
42
  ])) : y("", !0)
43
43
  ]))), 128))
@@ -50,7 +50,7 @@ const W = (c, r) => {
50
50
  for (const [t, o] of r)
51
51
  l[t] = o;
52
52
  return l;
53
- }, Ll = /* @__PURE__ */ W(Zt, [["__scopeId", "data-v-3ea933d4"]]), Pt = /* @__PURE__ */ F({
53
+ }, zl = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-3ea933d4"]]), Nt = /* @__PURE__ */ U({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
@@ -68,7 +68,7 @@ const W = (c, r) => {
68
68
  ], 2));
69
69
  }
70
70
  });
71
- const $e = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @__PURE__ */ F({
71
+ const $e = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-47f92648"]]), xt = /* @__PURE__ */ U({
72
72
  __name: "aeria-bare-button",
73
73
  props: {
74
74
  disabled: { type: Boolean }
@@ -89,10 +89,10 @@ const $e = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @_
89
89
  ], 2));
90
90
  }
91
91
  });
92
- const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["href"], en = {
92
+ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["href"], tn = {
93
93
  key: 0,
94
94
  "data-component": "icon-label"
95
- }, tn = /* @__PURE__ */ F({
95
+ }, nn = /* @__PURE__ */ U({
96
96
  __name: "aeria-icon",
97
97
  props: {
98
98
  icon: {},
@@ -104,7 +104,7 @@ const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
104
104
  active: { type: Boolean }
105
105
  },
106
106
  setup(c) {
107
- const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t = E(() => {
107
+ const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t = H(() => {
108
108
  var o;
109
109
  return (o = r.icon) != null && o.includes(":") ? r.icon : `regular:${r.icon}`;
110
110
  });
@@ -123,7 +123,7 @@ const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
123
123
  ${o.iconRight && "icon__icon--right"}
124
124
  `)
125
125
  }, [
126
- (n(), s("svg", U({
126
+ (n(), s("svg", E({
127
127
  width: "24",
128
128
  height: "24",
129
129
  viewBox: "0 0 256 256",
@@ -133,19 +133,19 @@ const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
133
133
  }), [
134
134
  A("use", {
135
135
  href: `/assets/icons.svg#${t.value}`
136
- }, null, 8, xt)
136
+ }, null, 8, en)
137
137
  ], 16))
138
138
  ], 2),
139
- o.$slots.default ? (n(), s("div", en, [
139
+ o.$slots.default ? (n(), s("div", tn, [
140
140
  O(o.$slots, "default", {}, void 0, !0)
141
141
  ])) : y("", !0)
142
142
  ], 2));
143
143
  }
144
144
  });
145
- const J = /* @__PURE__ */ W(tn, [["__scopeId", "data-v-6d36de33"]]), nn = { class: "button__content" }, on = {
145
+ const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { class: "button__content" }, an = {
146
146
  key: 1,
147
147
  class: "button__content"
148
- }, an = /* @__PURE__ */ F({
148
+ }, ln = /* @__PURE__ */ U({
149
149
  __name: "aeria-button",
150
150
  props: {
151
151
  size: {},
@@ -176,17 +176,17 @@ const J = /* @__PURE__ */ W(tn, [["__scopeId", "data-v-6d36de33"]]), nn = { clas
176
176
  disabled: o.disabled
177
177
  }, {
178
178
  default: v(() => [
179
- o.icon ? (n(), k(J, {
179
+ o.icon ? (n(), k(Z, {
180
180
  key: 0,
181
181
  icon: o.icon
182
182
  }, {
183
183
  default: v(() => [
184
- A("div", nn, [
184
+ A("div", on, [
185
185
  O(o.$slots, "default", {}, void 0, !0)
186
186
  ])
187
187
  ]),
188
188
  _: 3
189
- }, 8, ["icon"])) : (n(), s("div", on, [
189
+ }, 8, ["icon"])) : (n(), s("div", an, [
190
190
  O(o.$slots, "default", {}, void 0, !0)
191
191
  ]))
192
192
  ]),
@@ -194,7 +194,7 @@ const J = /* @__PURE__ */ W(tn, [["__scopeId", "data-v-6d36de33"]]), nn = { clas
194
194
  }, 8, ["class", "disabled"]));
195
195
  }
196
196
  });
197
- const re = /* @__PURE__ */ W(an, [["__scopeId", "data-v-c328251b"]]), ln = { class: "card__picture" }, sn = { class: "card__footer" }, rn = { class: "card__footer-upper" }, un = { class: "card__badge" }, cn = /* @__PURE__ */ F({
197
+ const ie = /* @__PURE__ */ W(ln, [["__scopeId", "data-v-c328251b"]]), sn = { class: "card__picture" }, rn = { class: "card__footer" }, un = { class: "card__footer-upper" }, cn = { class: "card__badge" }, dn = /* @__PURE__ */ U({
198
198
  __name: "aeria-card",
199
199
  props: {
200
200
  inactive: { type: Boolean },
@@ -208,27 +208,27 @@ const re = /* @__PURE__ */ W(an, [["__scopeId", "data-v-c328251b"]]), ln = { cla
208
208
  ${r.horizontal && "card--horizontal"}
209
209
  `)
210
210
  }, [
211
- A("div", ln, [
211
+ A("div", sn, [
212
212
  O(r.$slots, "default", {}, void 0, !0)
213
213
  ]),
214
- A("div", sn, [
215
- A("div", rn, [
214
+ A("div", rn, [
215
+ A("div", un, [
216
216
  A("div", null, [
217
217
  O(r.$slots, "footer", {}, void 0, !0)
218
218
  ]),
219
219
  r.$slots.actions ? O(r.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
220
220
  ]),
221
- A("div", un, [
221
+ A("div", cn, [
222
222
  O(r.$slots, "badge", {}, void 0, !0)
223
223
  ])
224
224
  ])
225
225
  ], 2));
226
226
  }
227
227
  });
228
- const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { class: "panel__header-left" }, _n = { key: 1 }, mn = {
228
+ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { class: "panel__header-left" }, mn = { key: 1 }, fn = {
229
229
  key: 2,
230
230
  style: { "margin-left": "auto" }
231
- }, fn = /* @__PURE__ */ F({
231
+ }, vn = /* @__PURE__ */ U({
232
232
  __name: "aeria-panel",
233
233
  props: {
234
234
  closeHint: { type: Boolean, default: !1 },
@@ -252,16 +252,16 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
252
252
  },
253
253
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
254
254
  setup(c, { emit: r }) {
255
- const l = c, t = r, o = E(() => l.floating || l.float), u = Y(l.collapsed), i = Y(null), { reachedEnd: _ } = Pe(i), p = () => {
255
+ const l = c, t = r, o = H(() => l.floating || l.float), u = J(l.collapsed), i = J(null), { reachedEnd: _ } = Pe(i), p = () => {
256
256
  t("update:modelValue", !1), t("close");
257
257
  }, b = () => {
258
258
  t("overlayClick");
259
259
  }, d = (a) => {
260
260
  t("update:collapsed", a), u.value = a;
261
261
  };
262
- return (a, B) => {
262
+ return (a, w) => {
263
263
  const f = te("clickable"), $ = te("loading"), T = te("overlay");
264
- return a.modelValue ? Z((n(), s("div", {
264
+ return a.modelValue ? P((n(), s("div", {
265
265
  key: 0,
266
266
  class: X(`
267
267
  panel
@@ -282,7 +282,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
282
282
  ${a.transparentMobile && "panel__content--transparent-mobile"}
283
283
  ${a.outerHeader && "panel__content--outer-header"}
284
284
  `),
285
- onClick: B[2] || (B[2] = (C) => C.stopPropagation())
285
+ onClick: w[2] || (w[2] = (V) => V.stopPropagation())
286
286
  }, {
287
287
  default: v(() => [
288
288
  a.$slots.header || a.title ? (n(), s("div", {
@@ -293,27 +293,27 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
293
293
  ${a.outerHeader && "panel__header--outer"}
294
294
  `)
295
295
  }, [
296
- A("div", pn, [
297
- a.$slots.header ? O(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div", _n, V(a.title), 1)) : y("", !0),
298
- a.$slots.extra ? (n(), s("div", mn, [
296
+ A("div", _n, [
297
+ a.$slots.header ? O(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div", mn, C(a.title), 1)) : y("", !0),
298
+ a.$slots.extra ? (n(), s("div", fn, [
299
299
  O(a.$slots, "extra", {}, void 0, !0)
300
300
  ])) : y("", !0)
301
301
  ]),
302
- a.collapsible && u.value ? Z((n(), k(J, {
302
+ a.collapsible && u.value ? P((n(), k(Z, {
303
303
  key: 0,
304
304
  reactive: "",
305
305
  icon: "plus",
306
- onClick: B[0] || (B[0] = (C) => d(!u.value))
306
+ onClick: w[0] || (w[0] = (V) => d(!u.value))
307
307
  }, null, 512)), [
308
308
  [f]
309
- ]) : a.collapsible && !u.value ? Z((n(), k(J, {
309
+ ]) : a.collapsible && !u.value ? P((n(), k(Z, {
310
310
  key: 1,
311
311
  reactive: "",
312
312
  icon: "minus",
313
- onClick: B[1] || (B[1] = (C) => d(!u.value))
313
+ onClick: w[1] || (w[1] = (V) => d(!u.value))
314
314
  }, null, 512)), [
315
315
  [f]
316
- ]) : a.closeHint ? Z((n(), k(J, {
316
+ ]) : a.closeHint ? P((n(), k(Z, {
317
317
  key: 2,
318
318
  reactive: "",
319
319
  icon: "x",
@@ -322,7 +322,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
322
322
  [f]
323
323
  ]) : y("", !0)
324
324
  ], 2)) : y("", !0),
325
- u.value ? y("", !0) : Z((n(), s("div", {
325
+ u.value ? y("", !0) : P((n(), s("div", {
326
326
  key: 1,
327
327
  ref_key: "body",
328
328
  ref: i,
@@ -359,10 +359,10 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
359
359
  };
360
360
  }
361
361
  });
362
- const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { class: "content__body" }, yn = {
362
+ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { class: "content__body" }, hn = {
363
363
  key: 0,
364
364
  class: "content__section"
365
- }, hn = { class: "content__item" }, bn = /* @__PURE__ */ F({
365
+ }, bn = { class: "content__item" }, $n = /* @__PURE__ */ U({
366
366
  __name: "aeria-context-menu",
367
367
  props: {
368
368
  actions: {},
@@ -375,9 +375,9 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
375
375
  "036683e2": _.value.x,
376
376
  "036683e0": _.value.y
377
377
  }));
378
- const l = r, t = Y(null), o = Y(!1), u = (p) => p == null ? void 0 : p.filter((b) => {
378
+ const l = r, t = J(null), o = J(!1), u = (p) => p == null ? void 0 : p.filter((b) => {
379
379
  if (b.roles) {
380
- const d = ie("user");
380
+ const d = re("user");
381
381
  return gt(b.roles, d.currentUser.roles);
382
382
  }
383
383
  return !0;
@@ -387,7 +387,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
387
387
  action: p,
388
388
  subject: d
389
389
  }), o.value = !1;
390
- }, _ = E(() => {
390
+ }, _ = H(() => {
391
391
  if (!t.value)
392
392
  return {
393
393
  x: 0,
@@ -402,7 +402,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
402
402
  });
403
403
  return (p, b) => {
404
404
  const d = te("overlay");
405
- return n(), s(N, null, [
405
+ return n(), s(x, null, [
406
406
  Object.keys(p.$slots).some((a) => a !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), s("div", {
407
407
  key: 0,
408
408
  ref_key: "contextmenu",
@@ -422,7 +422,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
422
422
  key: 1,
423
423
  to: "main"
424
424
  }, [
425
- Z((n(), k(Be, {
425
+ P((n(), k(Ae, {
426
426
  modelValue: o.value,
427
427
  "onUpdate:modelValue": b[4] || (b[4] = (a) => o.value = a),
428
428
  fill: "",
@@ -431,8 +431,8 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
431
431
  style: { "--panel-min-width": "0" }
432
432
  }, {
433
433
  default: v(() => [
434
- A("div", vn, [
435
- p.$slots.header ? (n(), s("div", yn, [
434
+ A("div", yn, [
435
+ p.$slots.header ? (n(), s("div", hn, [
436
436
  O(p.$slots, "header", {}, void 0, !0)
437
437
  ])) : y("", !0),
438
438
  Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)).length > 0 ? (n(), s("div", {
@@ -440,8 +440,8 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
440
440
  class: "content__section",
441
441
  onClick: b[1] || (b[1] = (a) => o.value = !1)
442
442
  }, [
443
- (n(!0), s(N, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, B) => (n(), k(ve, {
444
- key: `slot-${B}`,
443
+ (n(!0), s(x, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, w) => (n(), k(ve, {
444
+ key: `slot-${w}`,
445
445
  class: "content__item content__item--reactive"
446
446
  }, {
447
447
  default: v(() => [
@@ -455,18 +455,18 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
455
455
  class: "content__section",
456
456
  onClick: b[2] || (b[2] = (a) => o.value = !1)
457
457
  }, [
458
- (n(!0), s(N, null, G(u(p.actions), (a, B) => (n(), k(ve, {
459
- key: `action-${B}`,
458
+ (n(!0), s(x, null, G(u(p.actions), (a, w) => (n(), k(ve, {
459
+ key: `action-${w}`,
460
460
  class: "content__item content__item--reactive",
461
461
  onClick: (f) => i(a, p.subject)
462
462
  }, {
463
463
  default: v(() => [
464
- a.icon ? (n(), k(J, {
464
+ a.icon ? (n(), k(Z, {
465
465
  key: 0,
466
466
  icon: a.icon
467
467
  }, {
468
468
  default: v(() => [
469
- Q(V(a.translate ? e(R)(a.label, { capitalize: !0 }) : a.label), 1)
469
+ Q(C(a.translate ? e(R)(a.label, { capitalize: !0 }) : a.label), 1)
470
470
  ]),
471
471
  _: 2
472
472
  }, 1032, ["icon"])) : y("", !0)
@@ -479,7 +479,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
479
479
  class: "content__section",
480
480
  onClick: b[3] || (b[3] = (a) => o.value = !1)
481
481
  }, [
482
- A("div", hn, [
482
+ A("div", bn, [
483
483
  p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
484
484
  ])
485
485
  ])) : y("", !0)
@@ -504,13 +504,13 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
504
504
  };
505
505
  }
506
506
  });
507
- const Oe = /* @__PURE__ */ W(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ F({
507
+ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { class: "info__content" }, kn = /* @__PURE__ */ U({
508
508
  __name: "aeria-info",
509
509
  props: {
510
510
  where: { default: "top" }
511
511
  },
512
512
  setup(c) {
513
- const r = Ue(), l = Y(!1);
513
+ const r = Ue(), l = J(!1);
514
514
  return (t, o) => e(r).md ? (n(), s("div", {
515
515
  key: 0,
516
516
  class: "info",
@@ -523,7 +523,7 @@ const Oe = /* @__PURE__ */ W(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { cla
523
523
  info__bubble--${t.where}
524
524
  `)
525
525
  }, [
526
- A("div", $n, [
526
+ A("div", gn, [
527
527
  O(t.$slots, "text", {}, void 0, !0)
528
528
  ])
529
529
  ], 2)) : y("", !0),
@@ -535,16 +535,16 @@ const Oe = /* @__PURE__ */ W(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { cla
535
535
  ], 32)) : O(t.$slots, "default", { key: 1 }, void 0, !0);
536
536
  }
537
537
  });
538
- const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { class: "input" }, Cn = {
538
+ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { class: "input" }, On = {
539
539
  key: 0,
540
540
  class: "input__label"
541
- }, On = {
541
+ }, In = {
542
542
  key: 1,
543
543
  class: "input__hint"
544
- }, In = ["placeholder", "readonly", "value"], An = ["value"], Bn = {
544
+ }, An = ["placeholder", "readonly", "value"], wn = ["value"], Bn = {
545
545
  key: 1,
546
546
  class: "input__clipboard"
547
- }, wn = /* @__PURE__ */ F({
547
+ }, Sn = /* @__PURE__ */ U({
548
548
  __name: "aeria-input",
549
549
  props: {
550
550
  modelValue: {},
@@ -582,24 +582,29 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
582
582
  placeholder: _ ? o.description || l.propertyName : o.placeholder
583
583
  });
584
584
  "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"), Xe(() => {
585
- l.modelValue !== null && C(l.modelValue);
585
+ l.modelValue !== null && V(l.modelValue);
586
586
  });
587
- const B = (h) => {
587
+ const w = (h) => {
588
588
  try {
589
- if (!(h instanceof Date))
590
- return h;
589
+ let F;
590
+ if (h instanceof Date)
591
+ F = h;
592
+ else if (typeof h == "string")
593
+ F = new Date(h);
594
+ else
595
+ throw new Error();
591
596
  switch (a.type) {
592
597
  case "date":
593
- return h.toISOString().slice(0, 10);
598
+ return F.toISOString().slice(0, 10);
594
599
  case "datetime-local":
595
- return h.toISOString().slice(0, 19);
600
+ return F.toISOString().slice(0, 19);
596
601
  default:
597
602
  throw new Error();
598
603
  }
599
604
  } catch {
600
605
  return "";
601
606
  }
602
- }, f = Y(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
607
+ }, f = J(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
603
608
  ue(() => l.modelValue, (h) => {
604
609
  f.value = (() => {
605
610
  if ($)
@@ -609,7 +614,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
609
614
  switch (a.type) {
610
615
  case "date":
611
616
  case "datetime-local":
612
- return B(h);
617
+ return w(h);
613
618
  }
614
619
  switch (h) {
615
620
  case null:
@@ -623,12 +628,12 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
623
628
  immediate: !0
624
629
  });
625
630
  const T = (h) => {
626
- var H;
627
- return typeof f.value == "string" && ((H = l.property) == null ? void 0 : H.type) === "string" && $ !== null ? (f.value = $.enmask(f.value, void 0, {
631
+ var F;
632
+ return typeof f.value == "string" && ((F = l.property) == null ? void 0 : F.type) === "string" && $ !== null ? (f.value = $.enmask(f.value, void 0, {
628
633
  defaultValue: !0
629
634
  }), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : h;
630
- }, C = (h) => {
631
- const H = (() => {
635
+ }, V = (h) => {
636
+ const F = (() => {
632
637
  if (!h || typeof h != "string")
633
638
  return h;
634
639
  switch (a.type) {
@@ -642,18 +647,18 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
642
647
  return T(h);
643
648
  }
644
649
  })();
645
- t("input", H), t("update:modelValue", H);
646
- }, x = (h) => {
647
- const H = h.target.value;
648
- f.value = H, C(H);
650
+ t("input", F), t("update:modelValue", F);
651
+ }, Y = (h) => {
652
+ const F = h.target.value;
653
+ f.value = F, V(F);
649
654
  };
650
- return (h, H) => {
655
+ return (h, F) => {
651
656
  const le = te("focus"), S = te("clickable");
652
- return n(), s("label", Vn, [
653
- e(_) ? y("", !0) : (n(), s("div", Cn, [
657
+ return n(), s("label", Cn, [
658
+ e(_) ? y("", !0) : (n(), s("div", On, [
654
659
  h.$slots.default ? O(h.$slots, "default", { key: 0 }, void 0, !0) : O(h.$slots, "description", { key: 1 }, void 0, !0)
655
660
  ])),
656
- h.$slots.hint ? (n(), s("div", On, [
661
+ h.$slots.hint ? (n(), s("div", In, [
657
662
  O(h.$slots, "hint", {}, void 0, !0)
658
663
  ])) : y("", !0),
659
664
  "element" in e(o) && e(o).element === "textarea" ? (n(), s("div", {
@@ -664,7 +669,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
664
669
  input__container--${e(d)}
665
670
  `)
666
671
  }, [
667
- Z(A("textarea", {
672
+ P(A("textarea", {
668
673
  placeholder: e(a).placeholder,
669
674
  readonly: e(a).readonly,
670
675
  value: h.modelValue,
@@ -672,8 +677,8 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
672
677
  input__textarea
673
678
  input__input--${e(d)}
674
679
  `),
675
- onInput: x
676
- }, null, 42, In), [
680
+ onInput: Y
681
+ }, null, 42, An), [
677
682
  [le, e(o).focus]
678
683
  ])
679
684
  ], 2)) : (n(), s("div", {
@@ -683,7 +688,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
683
688
  input__container--${e(d)}
684
689
  `)
685
690
  }, [
686
- Z(A("input", U(e(a), {
691
+ P(A("input", E(e(a), {
687
692
  value: f.value,
688
693
  "data-component": "input",
689
694
  class: `
@@ -692,12 +697,12 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
692
697
  ${e(u) && "input__input--icon"}
693
698
  ${e(p) && "input__input--readOnly"}
694
699
  `,
695
- onInput: x,
696
- onChange: H[0] || (H[0] = (g) => t("change", g))
697
- }), null, 16, An), [
700
+ onInput: Y,
701
+ onChange: F[0] || (F[0] = (g) => t("change", g))
702
+ }), null, 16, wn), [
698
703
  [le, e(o).focus]
699
704
  ]),
700
- e(u) ? (n(), k(J, {
705
+ e(u) ? (n(), k(Z, {
701
706
  key: 0,
702
707
  icon: e(o).icon || "magnifying-glass",
703
708
  class: X(`
@@ -706,15 +711,15 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
706
711
  `)
707
712
  }, null, 8, ["icon", "class"])) : y("", !0),
708
713
  e(p) ? (n(), s("div", Bn, [
709
- z(kn, null, {
714
+ z(Vn, null, {
710
715
  text: v(() => [
711
716
  Q("Copiar")
712
717
  ]),
713
718
  default: v(() => [
714
- Z(z(J, {
719
+ P(z(Z, {
715
720
  reactive: "",
716
721
  icon: "clipboard",
717
- onClick: H[1] || (H[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
722
+ onClick: F[1] || (F[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
718
723
  }, null, 512), [
719
724
  [S]
720
725
  ])
@@ -727,10 +732,10 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
727
732
  };
728
733
  }
729
734
  });
730
- const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
735
+ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
731
736
  key: 1,
732
737
  value: ""
733
- }, Tn = ["value", "data-selected"], jn = /* @__PURE__ */ F({
738
+ }, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ U({
734
739
  __name: "aeria-select",
735
740
  props: {
736
741
  modelValue: {},
@@ -745,11 +750,11 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
745
750
  },
746
751
  emits: ["update:modelValue", "change"],
747
752
  setup(c, { emit: r }) {
748
- const l = c, t = r, o = Y(null), u = l.property, i = (d) => {
753
+ const l = c, t = r, o = J(null), u = l.property, i = (d) => {
749
754
  l.booleanRef && (_.value = d), t("update:modelValue", (d == null ? void 0 : d._id) || d), t("change", (d == null ? void 0 : d._id) || d);
750
755
  }, _ = l.booleanRef ? (() => {
751
- const d = Y(l.modelValue);
752
- return E({
756
+ const d = J(l.modelValue);
757
+ return H({
753
758
  get: () => {
754
759
  switch (d.value) {
755
760
  case "true":
@@ -760,25 +765,25 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
760
765
  return null;
761
766
  }
762
767
  },
763
- set: (B) => {
764
- d.value = B;
768
+ set: (w) => {
769
+ d.value = w;
765
770
  }
766
771
  });
767
- })() : E({
772
+ })() : H({
768
773
  get: () => l.modelValue,
769
774
  set: i
770
- }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = E(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
775
+ }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = H(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
771
776
  return l.multiple && ue(() => l.modelValue, (d) => {
772
- var B;
777
+ var w;
773
778
  if (!o.value)
774
779
  return;
775
780
  const a = o.value.querySelector('option[data-selected="true"]');
776
- a && a.removeAttribute("data-selected"), (B = o.value.querySelector(`option[value="${d}"]`)) == null || B.setAttribute("data-selected", "true");
781
+ a && a.removeAttribute("data-selected"), (w = o.value.querySelector(`option[value="${d}"]`)) == null || w.setAttribute("data-selected", "true");
777
782
  }), (d, a) => d.readOnly ? (n(), k(ke, {
778
783
  key: 1,
779
784
  "read-only": "",
780
785
  "model-value": e(_)
781
- }, null, 8, ["model-value"])) : (n(), s("select", U({ key: 0 }, {
786
+ }, null, 8, ["model-value"])) : (n(), s("select", E({ key: 0 }, {
782
787
  size: b.value,
783
788
  value: e(_)
784
789
  }, {
@@ -789,29 +794,29 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
789
794
  "select--multiple": !!b.value,
790
795
  "select--outline": !d.noOutline
791
796
  },
792
- onChange: a[0] || (a[0] = (B) => i(B.target.value))
797
+ onChange: a[0] || (a[0] = (w) => i(w.target.value))
793
798
  }), [
794
- e(u) && e(u).icon ? (n(), k(J, {
799
+ e(u) && e(u).icon ? (n(), k(Z, {
795
800
  key: 0,
796
801
  icon: e(u).icon
797
802
  }, null, 8, ["icon"])) : y("", !0),
798
- l.multiple ? y("", !0) : (n(), s("option", Sn, V(e(R)("none")), 1)),
799
- (n(!0), s(N, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (B) => {
803
+ l.multiple ? y("", !0) : (n(), s("option", Tn, C(e(R)("none")), 1)),
804
+ (n(!0), s(x, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (w) => {
800
805
  var f;
801
806
  return n(), s("option", {
802
- key: B,
803
- value: B,
804
- "data-selected": p(B)
805
- }, V((f = e(u)) != null && f.translate ? e(R)(B) : B), 9, Tn);
807
+ key: w,
808
+ value: w,
809
+ "data-selected": p(w)
810
+ }, C((f = e(u)) != null && f.translate ? e(R)(w) : w), 9, jn);
806
811
  }), 128)),
807
812
  O(d.$slots, "default", {}, void 0, !0)
808
813
  ], 16));
809
814
  }
810
815
  });
811
- const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { class: "pagination" }, Ln = { class: "pagination__arrows" }, zn = ["value"], qn = {
816
+ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { class: "pagination" }, zn = { class: "pagination__arrows" }, qn = ["value"], Mn = {
812
817
  key: 0,
813
818
  class: "pagination__summary"
814
- }, Mn = /* @__PURE__ */ F({
819
+ }, Fn = /* @__PURE__ */ U({
815
820
  __name: "aeria-pagination",
816
821
  props: {
817
822
  pagination: {},
@@ -819,17 +824,17 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
819
824
  },
820
825
  emits: ["paginate"],
821
826
  setup(c, { emit: r }) {
822
- const l = c, t = r, o = E({
827
+ const l = c, t = r, o = H({
823
828
  get: () => Math.floor(l.pagination.offset / l.pagination.limit),
824
829
  set: (b) => {
825
830
  l.pagination.offset = b * l.pagination.limit;
826
831
  }
827
- }), u = E({
832
+ }), u = H({
828
833
  get: () => l.pagination.limit,
829
834
  set: (b) => {
830
835
  l.pagination.limit = Number(b);
831
836
  }
832
- }), i = Y(o.value ? o.value + 1 : 1), _ = E(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
837
+ }), i = J(o.value ? o.value + 1 : 1), _ = H(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
833
838
  o.value = b === "previous" ? o.value - 1 : o.value + 1;
834
839
  };
835
840
  return ue([
@@ -840,14 +845,14 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
840
845
  offset: o.value * u.value,
841
846
  limit: u.value
842
847
  });
843
- }), (b, d) => (n(), s("div", Rn, [
844
- A("div", Ln, [
848
+ }), (b, d) => (n(), s("div", Ln, [
849
+ A("div", zn, [
845
850
  z(ve, {
846
851
  disabled: o.value === 0,
847
852
  onClick: d[0] || (d[0] = (a) => o.value = 0)
848
853
  }, {
849
854
  default: v(() => [
850
- z(J, { icon: "caret-double-left" })
855
+ z(Z, { icon: "caret-double-left" })
851
856
  ]),
852
857
  _: 1
853
858
  }, 8, ["disabled"]),
@@ -856,7 +861,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
856
861
  onClick: d[1] || (d[1] = (a) => p("previous"))
857
862
  }, {
858
863
  default: v(() => [
859
- z(J, { icon: "caret-left" })
864
+ z(Z, { icon: "caret-left" })
860
865
  ]),
861
866
  _: 1
862
867
  }, 8, ["disabled"]),
@@ -865,7 +870,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
865
870
  onClick: d[2] || (d[2] = (a) => p("next"))
866
871
  }, {
867
872
  default: v(() => [
868
- z(J, { icon: "caret-right" })
873
+ z(Z, { icon: "caret-right" })
869
874
  ]),
870
875
  _: 1
871
876
  }, 8, ["disabled"]),
@@ -874,7 +879,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
874
879
  onClick: d[3] || (d[3] = (a) => o.value = _.value - 1)
875
880
  }, {
876
881
  default: v(() => [
877
- z(J, { icon: "caret-double-right" })
882
+ z(Z, { icon: "caret-double-right" })
878
883
  ]),
879
884
  _: 1
880
885
  }, 8, ["disabled"]),
@@ -888,16 +893,16 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
888
893
  class: "pagination__control"
889
894
  }, {
890
895
  default: v(() => [
891
- (n(!0), s(N, null, G(e(Ut), (a) => (n(), s("option", {
896
+ (n(!0), s(x, null, G(e(Ut), (a) => (n(), s("option", {
892
897
  key: `limit-${a}`,
893
898
  value: a
894
- }, V(a), 9, zn))), 128))
899
+ }, C(a), 9, qn))), 128))
895
900
  ]),
896
901
  _: 1
897
902
  }, 8, ["modelValue"])
898
903
  ]),
899
- b.noSummary ? y("", !0) : (n(), s("div", qn, [
900
- Q(V(e(R)("Page")) + " ", 1),
904
+ b.noSummary ? y("", !0) : (n(), s("div", Mn, [
905
+ Q(C(e(R)("Page")) + " ", 1),
901
906
  (n(), k(ke, {
902
907
  key: o.value,
903
908
  modelValue: i.value,
@@ -911,15 +916,15 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
911
916
  o.value = i.value === 0 ? 0 : i.value - 1;
912
917
  })
913
918
  }, null, 8, ["modelValue"])),
914
- A("span", null, V(e(R)("of")) + " " + V(_.value), 1)
919
+ A("span", null, C(e(R)("of")) + " " + C(_.value), 1)
915
920
  ]))
916
921
  ]));
917
922
  }
918
923
  });
919
- const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { class: "checkbox__text" }, En = ["innerHTML"], Hn = { class: "checkbox__hint" }, Dn = ["innerHTML"], Qn = {
924
+ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
920
925
  inheritAttrs: !1
921
- }, Gn = /* @__PURE__ */ F({
922
- ...Qn,
926
+ }, Wn = /* @__PURE__ */ U({
927
+ ...Gn,
923
928
  __name: "aeria-checkbox",
924
929
  props: {
925
930
  modelValue: {},
@@ -941,7 +946,7 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
941
946
  return "checkbox";
942
947
  }
943
948
  return "radio";
944
- })(), i = r, _ = l.value || !1, p = E({
949
+ })(), i = r, _ = l.value || !1, p = H({
945
950
  get: () => {
946
951
  var d;
947
952
  if (t) {
@@ -977,14 +982,14 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
977
982
  };
978
983
  return (d, a) => {
979
984
  var f, $;
980
- const B = te("clickable");
981
- return Z((n(), s("label", {
985
+ const w = te("clickable");
986
+ return P((n(), s("label", {
982
987
  class: X(`
983
988
  checkbox
984
989
  ${e(o) && "checkbox--readOnly"}
985
990
  `)
986
991
  }, [
987
- Z(A("input", U({
992
+ P(A("input", E({
988
993
  "onUpdate:modelValue": a[0] || (a[0] = (T) => p.value = T)
989
994
  }, {
990
995
  type: e(u),
@@ -996,30 +1001,30 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
996
1001
  }), null, 16), [
997
1002
  [At, p.value]
998
1003
  ]),
999
- A("div", Un, [
1004
+ A("div", En, [
1000
1005
  A("div", null, [
1001
1006
  d.$slots.description ? O(d.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), s("div", {
1002
1007
  key: 1,
1003
1008
  innerHTML: (f = e(t)) != null && f.translate ? e(R)(e(_)) : e(_)
1004
- }, null, 8, En)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
1009
+ }, null, 8, Hn)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
1005
1010
  ]),
1006
- A("div", Hn, [
1011
+ A("div", Dn, [
1007
1012
  d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), s("div", {
1008
1013
  key: 1,
1009
1014
  innerHTML: e(t).hint
1010
- }, null, 8, Dn)) : y("", !0)
1015
+ }, null, 8, Qn)) : y("", !0)
1011
1016
  ])
1012
1017
  ])
1013
1018
  ], 2)), [
1014
- [B]
1019
+ [w]
1015
1020
  ]);
1016
1021
  };
1017
1022
  }
1018
1023
  });
1019
- const Wn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1024
+ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1020
1025
  inheritAttrs: !1
1021
- }, Xn = /* @__PURE__ */ F({
1022
- ...Kn,
1026
+ }, Yn = /* @__PURE__ */ U({
1027
+ ...Xn,
1023
1028
  __name: "aeria-options",
1024
1029
  props: {
1025
1030
  modelValue: {},
@@ -1047,11 +1052,11 @@ const Wn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1047
1052
  grid-template-columns: repeat(var(--columns), 1fr);
1048
1053
  `)
1049
1054
  }, [
1050
- (n(!0), s(N, null, G(e(u), (b) => (n(), s("div", {
1055
+ (n(!0), s(x, null, G(e(u), (b) => (n(), s("div", {
1051
1056
  key: `option-${b}`,
1052
1057
  class: "options__checkbox"
1053
1058
  }, [
1054
- z(Wn, U({ ref_for: !0 }, {
1059
+ z(Kn, E({ ref_for: !0 }, {
1055
1060
  value: b,
1056
1061
  readOnly: e(o),
1057
1062
  property: _.property
@@ -1063,10 +1068,10 @@ const Wn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1063
1068
  ], 4));
1064
1069
  }
1065
1070
  });
1066
- const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) => (Ye("data-v-0e3564b6"), c = c(), Je(), c), Zn = { class: "switch-wrapper" }, Pn = /* @__PURE__ */ Jn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), Nn = { key: 1 }, xn = {
1071
+ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) => (Ye("data-v-0e3564b6"), c = c(), Je(), c), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1067
1072
  inheritAttrs: !1
1068
- }, eo = /* @__PURE__ */ F({
1069
- ...xn,
1073
+ }, to = /* @__PURE__ */ U({
1074
+ ...eo,
1070
1075
  __name: "aeria-switch",
1071
1076
  props: {
1072
1077
  modelValue: {},
@@ -1084,8 +1089,8 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
1084
1089
  return (_, p) => {
1085
1090
  var d;
1086
1091
  const b = te("clickable");
1087
- return n(), s("div", Zn, [
1088
- Z((n(), s("a", {
1092
+ return n(), s("div", Pn, [
1093
+ P((n(), s("a", {
1089
1094
  class: X(`
1090
1095
  switch
1091
1096
  ${_.modelValue && "switch--active"}
@@ -1093,7 +1098,7 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
1093
1098
  `),
1094
1099
  onClick: ze(i, ["stop"])
1095
1100
  }, [
1096
- Pn,
1101
+ Nn,
1097
1102
  A("div", {
1098
1103
  class: X(`
1099
1104
  switch__dummy
@@ -1105,35 +1110,35 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
1105
1110
  blocked: e(u)
1106
1111
  }]
1107
1112
  ]),
1108
- _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", Nn, V(((d = e(o)) == null ? void 0 : d.description) || _.propertyName), 1))
1113
+ _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", xn, C(((d = e(o)) == null ? void 0 : d.description) || _.propertyName), 1))
1109
1114
  ]);
1110
1115
  };
1111
1116
  }
1112
1117
  });
1113
- const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (Ye("data-v-153a2e0f"), c = c(), Je(), c), no = { class: "picture" }, oo = {
1118
+ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (Ye("data-v-153a2e0f"), c = c(), Je(), c), oo = { class: "picture" }, ao = {
1114
1119
  key: 0,
1115
1120
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1116
- }, ao = ["src", "alt"], lo = {
1121
+ }, lo = ["src", "alt"], so = {
1117
1122
  key: 0,
1118
1123
  class: "picture__meta"
1119
- }, so = ["src"], io = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
1124
+ }, io = ["src"], ro = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
1120
1125
  x1: "0",
1121
1126
  y1: "0",
1122
1127
  x2: "200",
1123
1128
  y2: "200",
1124
1129
  stroke: "#000",
1125
1130
  "vector-effect": "non-scaling-stroke"
1126
- }, null, -1)), ro = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
1131
+ }, null, -1)), uo = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
1127
1132
  x1: "200",
1128
1133
  y1: "0",
1129
1134
  x2: "0",
1130
1135
  y2: "200",
1131
1136
  stroke: "#000",
1132
1137
  "vector-effect": "non-scaling-stroke"
1133
- }, null, -1)), uo = [
1134
- io,
1135
- ro
1136
- ], co = { key: 5 }, po = /* @__PURE__ */ F({
1138
+ }, null, -1)), co = [
1139
+ ro,
1140
+ uo
1141
+ ], po = { key: 5 }, _o = /* @__PURE__ */ U({
1137
1142
  __name: "aeria-picture",
1138
1143
  props: {
1139
1144
  url: {},
@@ -1148,16 +1153,16 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1148
1153
  meta: {}
1149
1154
  },
1150
1155
  setup(c) {
1151
- const r = c, l = E(() => r.fileId ? `${kt}/file/${r.fileId}/picture` : r.url || r.modelValue), t = Y(!1);
1156
+ const r = c, l = H(() => r.fileId ? `${kt}/file/${r.fileId}/picture` : r.url || r.modelValue), t = J(!1);
1152
1157
  return (o, u) => {
1153
1158
  var _;
1154
1159
  const i = te("overlay");
1155
- return n(), s("figure", no, [
1160
+ return n(), s("figure", oo, [
1156
1161
  l.value ? (n(), k(Ke, {
1157
1162
  key: 0,
1158
1163
  to: "main"
1159
1164
  }, [
1160
- t.value ? Z((n(), s("div", oo, [
1165
+ t.value ? P((n(), s("div", ao, [
1161
1166
  A("img", {
1162
1167
  src: l.value,
1163
1168
  alt: o.alt,
@@ -1166,8 +1171,8 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1166
1171
  object-fit: contain;
1167
1172
  `,
1168
1173
  onClick: u[0] || (u[0] = (p) => t.value = !0)
1169
- }, null, 8, ao),
1170
- (_ = o.meta) != null && _.owner ? (n(), s("div", lo, " Criado por " + V(o.meta.owner.name) + " em " + V(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1174
+ }, null, 8, lo),
1175
+ (_ = o.meta) != null && _.owner ? (n(), s("div", so, " Criado por " + C(o.meta.owner.name) + " em " + C(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1171
1176
  ])), [
1172
1177
  [i, {
1173
1178
  click: () => {
@@ -1192,7 +1197,7 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1192
1197
  onClick: u[1] || (u[1] = () => {
1193
1198
  o.expandable && (t.value = !0);
1194
1199
  })
1195
- }, null, 14, so)) : o.$slots.fallback ? O(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? O(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
1200
+ }, null, 14, io)) : o.$slots.fallback ? O(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? O(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
1196
1201
  key: 4,
1197
1202
  class: X(["picture__background", `
1198
1203
  ${o.bordered && "picture__image--bordered"}
@@ -1205,24 +1210,24 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1205
1210
  width: ${o.width || "100%"};
1206
1211
  height: ${o.height || "100%"};
1207
1212
  `)
1208
- }, uo, 6)),
1209
- o.$slots.caption ? (n(), s("figcaption", co, [
1213
+ }, co, 6)),
1214
+ o.$slots.caption ? (n(), s("figcaption", po, [
1210
1215
  O(o.$slots, "caption", {}, void 0, !0)
1211
1216
  ])) : y("", !0)
1212
1217
  ]);
1213
1218
  };
1214
1219
  }
1215
1220
  });
1216
- const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { class: "file" }, mo = { key: 0 }, fo = ["href"], vo = {
1221
+ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1217
1222
  key: 1,
1218
1223
  class: "file__actions"
1219
- }, yo = ["accept"], ho = {
1224
+ }, ho = ["accept"], bo = {
1220
1225
  key: 0,
1221
1226
  class: "file__buttons"
1222
- }, bo = {
1227
+ }, $o = {
1223
1228
  key: 1,
1224
1229
  class: "file__buttons"
1225
- }, $o = /* @__PURE__ */ F({
1230
+ }, go = /* @__PURE__ */ U({
1226
1231
  __name: "aeria-file",
1227
1232
  props: {
1228
1233
  modelValue: {},
@@ -1237,22 +1242,22 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1237
1242
  emits: ["update:content", "change", "update:modelValue"],
1238
1243
  setup(c, { emit: r }) {
1239
1244
  var f;
1240
- const l = c, t = r, u = Me() ? Ie() : null, i = Y(((f = l.modelValue) == null ? void 0 : f.file) || null), _ = E(() => {
1245
+ const l = c, t = r, u = Me() ? De() : null, i = J(((f = l.modelValue) == null ? void 0 : f.file) || null), _ = H(() => {
1241
1246
  var $;
1242
1247
  return i.value ? URL.createObjectURL(i.value) : ($ = l.modelValue) == null ? void 0 : $.link;
1243
- }), p = E(() => {
1244
- var $, T, C;
1245
- return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((C = i.value) == null ? void 0 : C.type);
1248
+ }), p = H(() => {
1249
+ var $, T, V;
1250
+ return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((V = i.value) == null ? void 0 : V.type);
1246
1251
  }), b = ($) => new Promise((T) => {
1247
- const C = new FileReader();
1248
- C.onload = () => T(C.result), C.readAsArrayBuffer($);
1252
+ const V = new FileReader();
1253
+ V.onload = () => T(V.result), V.readAsArrayBuffer($);
1249
1254
  }), d = () => {
1250
1255
  l.modelValue.tempId && t("update:modelValue", null), i.value = null;
1251
1256
  }, a = async ($) => {
1252
1257
  i.value = $.target.files[0];
1253
- const T = i.value, C = await b(T);
1258
+ const T = i.value, V = await b(T);
1254
1259
  if (u) {
1255
- const { data: { error: x, result: ee } } = await Et(`${kt}/${u.$id}/upload?name=${T.name}`, C, {
1260
+ const { data: { error: Y, result: ee } } = await Et(`${kt}/${u.$id}/upload?name=${T.name}`, V, {
1256
1261
  params: {
1257
1262
  method: "POST",
1258
1263
  headers: {
@@ -1261,7 +1266,7 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1261
1266
  }
1262
1267
  }
1263
1268
  });
1264
- if (x)
1269
+ if (Y)
1265
1270
  return;
1266
1271
  t("update:modelValue", {
1267
1272
  tempId: ee.tempId,
@@ -1269,14 +1274,14 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1269
1274
  });
1270
1275
  } else
1271
1276
  t("update:modelValue", T);
1272
- t("update:content", C), t("change", C);
1273
- }, B = async () => {
1277
+ t("update:content", V), t("change", V);
1278
+ }, w = async () => {
1274
1279
  t("update:modelValue", null);
1275
1280
  };
1276
1281
  return ($, T) => {
1277
- var C, x, ee, h, H, le;
1278
- return n(), s("div", _o, [
1279
- i.value || (C = $.modelValue) != null && C._id ? (n(), s("div", mo, [
1282
+ var V, Y, ee, h, F, le;
1283
+ return n(), s("div", mo, [
1284
+ i.value || (V = $.modelValue) != null && V._id ? (n(), s("div", fo, [
1280
1285
  p.value ? (n(), k(He, {
1281
1286
  key: 0,
1282
1287
  modelValue: _.value,
@@ -1285,38 +1290,38 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1285
1290
  expandable: $.readOnly,
1286
1291
  class: X(`
1287
1292
  file__image
1288
- ${!e(u) || ((x = $.modelValue) == null ? void 0 : x._id) || "file__image--unsent"}
1293
+ ${!e(u) || ((Y = $.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
1289
1294
  `)
1290
1295
  }, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
1291
1296
  (ee = $.modelValue) != null && ee._id ? (n(), s("a", {
1292
1297
  key: 1,
1293
1298
  href: $.modelValue.download_link
1294
- }, V($.modelValue.name), 9, fo)) : y("", !0)
1299
+ }, C($.modelValue.name), 9, vo)) : y("", !0)
1295
1300
  ])) : y("", !0),
1296
- $.readOnly ? y("", !0) : (n(), s("div", vo, [
1301
+ $.readOnly ? y("", !0) : (n(), s("div", yo, [
1297
1302
  A("input", {
1298
1303
  ref: "file",
1299
1304
  type: "file",
1300
- accept: (H = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : H.join(","),
1305
+ accept: (F = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : F.join(","),
1301
1306
  onChange: a
1302
- }, null, 40, yo),
1303
- i.value ? (n(), s("div", ho, [
1304
- z(re, {
1307
+ }, null, 40, ho),
1308
+ i.value ? (n(), s("div", bo, [
1309
+ z(ie, {
1305
1310
  small: "",
1306
1311
  onClick: ze(d, ["prevent"])
1307
1312
  }, {
1308
1313
  default: v(() => [
1309
- Q(V(e(R)("action.clear", { capitalize: !0 })), 1)
1314
+ Q(C(e(R)("action.clear", { capitalize: !0 })), 1)
1310
1315
  ]),
1311
1316
  _: 1
1312
1317
  })
1313
- ])) : (le = $.modelValue) != null && le._id ? (n(), s("div", bo, [
1314
- z(re, {
1318
+ ])) : (le = $.modelValue) != null && le._id ? (n(), s("div", $o, [
1319
+ z(ie, {
1315
1320
  small: "",
1316
- onClick: ze(B, ["prevent"])
1321
+ onClick: ze(w, ["prevent"])
1317
1322
  }, {
1318
1323
  default: v(() => [
1319
- Q(V(e(R)("action.remove", { capitalize: !0 })), 1)
1324
+ Q(C(e(R)("action.remove", { capitalize: !0 })), 1)
1320
1325
  ]),
1321
1326
  _: 1
1322
1327
  })
@@ -1326,22 +1331,22 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1326
1331
  };
1327
1332
  }
1328
1333
  });
1329
- const go = /* @__PURE__ */ W($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { class: "container" }, Vo = {
1334
+ const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { class: "container" }, Co = {
1330
1335
  key: 1,
1331
1336
  class: "container__footer"
1332
- }, Co = /* @__PURE__ */ F({
1337
+ }, Oo = /* @__PURE__ */ U({
1333
1338
  __name: "aeria-search-container",
1334
1339
  props: {
1335
1340
  observeScroll: { type: Boolean }
1336
1341
  },
1337
1342
  emits: ["endReached"],
1338
1343
  setup(c, { emit: r }) {
1339
- const l = c, t = r, o = Y(null), u = l.observeScroll ? Pe(o, {
1344
+ const l = c, t = r, o = J(null), u = l.observeScroll ? Pe(o, {
1340
1345
  antecipate: 100
1341
1346
  }).reachedEnd : null;
1342
1347
  return u !== null && ue(u, (i) => {
1343
1348
  i && t("endReached", i);
1344
- }), (i, _) => (n(), s("div", ko, [
1349
+ }), (i, _) => (n(), s("div", Vo, [
1345
1350
  i.$slots.default ? (n(), s("div", {
1346
1351
  key: 0,
1347
1352
  ref_key: "containerEl",
@@ -1350,13 +1355,13 @@ const go = /* @__PURE__ */ W($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { cla
1350
1355
  }, [
1351
1356
  O(i.$slots, "default", {}, void 0, !0)
1352
1357
  ], 512)) : y("", !0),
1353
- i.$slots.footer ? (n(), s("div", Vo, [
1358
+ i.$slots.footer ? (n(), s("div", Co, [
1354
1359
  O(i.$slots, "footer", {}, void 0, !0)
1355
1360
  ])) : y("", !0)
1356
1361
  ]));
1357
1362
  }
1358
1363
  });
1359
- const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { class: "item__values" }, Io = /* @__PURE__ */ F({
1364
+ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { class: "item__values" }, Ao = /* @__PURE__ */ U({
1360
1365
  __name: "aeria-search-item",
1361
1366
  props: {
1362
1367
  item: {},
@@ -1367,13 +1372,13 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1367
1372
  },
1368
1373
  emits: ["update:modelValue", "change"],
1369
1374
  setup(c, { emit: r }) {
1370
- const l = Ae(), t = c, o = r, u = t.property, i = me(u), _ = Ie(), p = E(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
1375
+ const l = Ie(), t = c, o = r, u = t.property, i = me(u), _ = De(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: w }) => t.item._id === w) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
1371
1376
  if (p.value)
1372
1377
  return;
1373
- const B = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? B(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1378
+ const w = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? w(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1374
1379
  Array.isArray(f) ? o("update:modelValue", f.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
1375
- }, d = async (B) => {
1376
- if (i.purge && (B != null && B.purge)) {
1380
+ }, d = async (w) => {
1381
+ if (i.purge && (w != null && w.purge)) {
1377
1382
  const { _id: $ } = t.item;
1378
1383
  await _.$actions.remove({
1379
1384
  filters: {
@@ -1382,7 +1387,7 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1382
1387
  });
1383
1388
  }
1384
1389
  const f = () => {
1385
- const $ = [...t.modelValue], T = $.findIndex((C) => C._id === t.item._id);
1390
+ const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], T = $.findIndex((V) => V._id === t.item._id);
1386
1391
  return $.splice(T, 1), $;
1387
1392
  };
1388
1393
  o("update:modelValue", "items" in u ? f() : null);
@@ -1395,23 +1400,23 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1395
1400
  }
1396
1401
  return p.value ? d() : b();
1397
1402
  };
1398
- return (B, f) => {
1403
+ return (w, f) => {
1399
1404
  const $ = te("clickable");
1400
- return Z((n(), s("div", {
1405
+ return P((n(), s("div", {
1401
1406
  class: X({
1402
1407
  item: !0,
1403
1408
  "item--selected": p.value
1404
1409
  }),
1405
1410
  onClick: a
1406
1411
  }, [
1407
- O(B.$slots, "default", {}, void 0, !0),
1408
- A("div", Oo, [
1409
- (n(!0), s(N, null, G(B.indexes, (T, C) => (n(), s("div", {
1410
- key: `index-${B.item._id}-${C}`,
1412
+ O(w.$slots, "default", {}, void 0, !0),
1413
+ A("div", Io, [
1414
+ (n(!0), s(x, null, G(w.indexes, (T, V) => (n(), s("div", {
1415
+ key: `index-${w.item._id}-${V}`,
1411
1416
  class: "item__value"
1412
- }, V(B.item[T]), 1))), 128))
1417
+ }, C(w.item[T]), 1))), 128))
1413
1418
  ]),
1414
- B.readOnly ? (n(), k(J, {
1419
+ w.readOnly ? (n(), k(Z, {
1415
1420
  key: 0,
1416
1421
  icon: "arrow-square-out",
1417
1422
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
@@ -1422,10 +1427,10 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1422
1427
  };
1423
1428
  }
1424
1429
  });
1425
- const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { class: "search__panel" }, Bo = { key: 1 }, wo = { key: 0 }, So = { key: 1 }, To = { class: "search__summary" }, jo = {
1430
+ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { class: "search__panel" }, Bo = { key: 1 }, So = { key: 0 }, To = { key: 1 }, jo = { class: "search__summary" }, Ro = {
1426
1431
  key: 1,
1427
1432
  class: "search"
1428
- }, Ro = { key: 0 }, Ee = 10, Lo = /* @__PURE__ */ F({
1433
+ }, Lo = { key: 0 }, Ee = 10, zo = /* @__PURE__ */ U({
1429
1434
  __name: "aeria-search",
1430
1435
  props: {
1431
1436
  modelValue: {},
@@ -1439,12 +1444,12 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1439
1444
  },
1440
1445
  emits: ["update:modelValue", "change", "update:panel"],
1441
1446
  setup(c, { emit: r }) {
1442
- const l = c, t = me(l.property), o = l.panel !== void 0 ? E(() => l.panel) : Y(!1), u = r, i = ie(me(l.property).$ref), _ = Me(), p = _ ? Ie() : null, b = t.indexes;
1447
+ const l = c, t = me(l.property), o = l.panel !== void 0 ? H(() => l.panel) : J(!1), u = r, i = re(me(l.property).$ref), _ = Me(), p = _ ? De() : null, b = t.indexes;
1443
1448
  ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1444
- const d = Y(l.modelValue), a = Y({
1449
+ const d = J(l.modelValue), a = J({
1445
1450
  data: [],
1446
1451
  pagination: {}
1447
- }), B = E(() => a.value.data), f = E(() => a.value.pagination), $ = Y(0), T = Y(!1), C = Y(""), x = () => {
1452
+ }), w = H(() => a.value.data), f = H(() => a.value.pagination), $ = J(0), T = J(!1), V = J(""), Y = () => {
1448
1453
  const M = {};
1449
1454
  if (_) {
1450
1455
  const D = e(_);
@@ -1452,27 +1457,27 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1452
1457
  }
1453
1458
  return t.constraints ? zt(t.constraints, M) : {};
1454
1459
  }, ee = () => {
1455
- B.value.length < f.value.recordsTotal && ($.value += 1, H());
1456
- }, h = async () => C.value.length === 0 ? i.$actions.custom("getAll", {
1460
+ w.value.length < f.value.recordsTotal && ($.value += 1, F());
1461
+ }, h = async () => V.value.length === 0 ? i.$actions.custom("getAll", {
1457
1462
  limit: Ee,
1458
1463
  offset: $.value * Ee,
1459
- filters: x()
1464
+ filters: Y()
1460
1465
  }) : i.$actions.custom("getAll", {
1461
1466
  limit: Ee,
1462
1467
  offset: $.value * Ee,
1463
1468
  filters: {
1464
1469
  $text: {
1465
- $search: `"${C.value}"`,
1470
+ $search: `"${V.value}"`,
1466
1471
  $caseSensitive: !1
1467
1472
  },
1468
- ...x()
1473
+ ...Y()
1469
1474
  }
1470
- }), H = async () => {
1475
+ }), F = async () => {
1471
1476
  if (i.loading.getAll)
1472
1477
  return;
1473
1478
  const { error: M, result: D } = await h();
1474
1479
  if (M) {
1475
- ie("meta").$actions.spawnToast({
1480
+ re("meta").$actions.spawnToast({
1476
1481
  text: "Request failed",
1477
1482
  icon: "warning"
1478
1483
  });
@@ -1482,18 +1487,18 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1482
1487
  }, [le] = Vt({
1483
1488
  delay: 800
1484
1489
  })(() => {
1485
- $.value = 0, H(), T.value = !1;
1490
+ $.value = 0, F(), T.value = !1;
1486
1491
  }), S = () => {
1487
1492
  T.value = !0, le();
1488
1493
  }, g = () => {
1489
- "effect" in o ? u("update:panel", !0) : o.value = !0, H();
1494
+ "effect" in o ? u("update:panel", !0) : o.value = !0, F();
1490
1495
  }, j = () => {
1491
1496
  $.value = 0, a.value.data.splice(0), "effect" in o ? u("update:panel", !1) : o.value = !1;
1492
1497
  };
1493
- ue(() => C.value.length, (M, D) => {
1494
- M && !D && H();
1498
+ ue(() => V.value.length, (M, D) => {
1499
+ M && !D && F();
1495
1500
  }), Xe(() => {
1496
- l.selectOnly && H();
1501
+ l.selectOnly && F();
1497
1502
  });
1498
1503
  const ne = (M) => {
1499
1504
  d.value = M, l.selectOnly || u("update:modelValue", M);
@@ -1507,7 +1512,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1507
1512
  key: 0,
1508
1513
  to: "main"
1509
1514
  }, [
1510
- z(Be, {
1515
+ z(Ae, {
1511
1516
  float: "",
1512
1517
  "close-hint": "",
1513
1518
  title: `${e(R)("action.select", { capitalize: !0 })} ${e(R)(M.propertyName)}`,
@@ -1518,12 +1523,12 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1518
1523
  onOverlayClick: j
1519
1524
  }, {
1520
1525
  footer: v(() => [
1521
- z(re, {
1526
+ z(ie, {
1522
1527
  large: "",
1523
1528
  onClick: oe
1524
1529
  }, {
1525
1530
  default: v(() => [
1526
- Q(V(e(R)("action.save", { capitalize: !0 })), 1)
1531
+ Q(C(e(R)("action.save", { capitalize: !0 })), 1)
1527
1532
  ]),
1528
1533
  _: 1
1529
1534
  })
@@ -1531,10 +1536,10 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1531
1536
  default: v(() => {
1532
1537
  var ae, m;
1533
1538
  return [
1534
- A("div", Ao, [
1535
- z(ke, U({
1536
- modelValue: C.value,
1537
- "onUpdate:modelValue": D[0] || (D[0] = (L) => C.value = L)
1539
+ A("div", wo, [
1540
+ z(ke, E({
1541
+ modelValue: V.value,
1542
+ "onUpdate:modelValue": D[0] || (D[0] = (L) => V.value = L)
1538
1543
  }, {
1539
1544
  property: {
1540
1545
  type: "string",
@@ -1542,13 +1547,13 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1542
1547
  inputType: "search"
1543
1548
  }
1544
1549
  }, { onInput: S }), null, 16, ["modelValue"]),
1545
- B.value.length ? (n(), k(ft, {
1550
+ w.value.length ? (n(), k(ft, {
1546
1551
  key: 0,
1547
1552
  "observe-scroll": "",
1548
1553
  onEndReached: ee
1549
1554
  }, {
1550
1555
  default: v(() => [
1551
- (n(!0), s(N, null, G(B.value, (L) => (n(), k(Ge, U({ ref_for: !0 }, {
1556
+ (n(!0), s(x, null, G(w.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
1552
1557
  item: L,
1553
1558
  indexes: e(b),
1554
1559
  property: M.property
@@ -1560,22 +1565,22 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1560
1565
  ]),
1561
1566
  _: 1
1562
1567
  })) : (n(), s("div", Bo, [
1563
- T.value ? (n(), s("div", wo, V(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(i).loading.getAll && Object.values(C.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), s("div", So, V(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1568
+ T.value ? (n(), s("div", So, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(i).loading.getAll && Object.values(V.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), s("div", To, C(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1564
1569
  ]))
1565
1570
  ]),
1566
- A("div", To, V(e(R)("showing", { capitalize: !0 })) + " " + V(B.value.length) + " " + V(e(R)("of")) + " " + V(f.value.recordsTotal), 1)
1571
+ A("div", jo, C(e(R)("showing", { capitalize: !0 })) + " " + C(w.value.length) + " " + C(e(R)("of")) + " " + C(f.value.recordsTotal), 1)
1567
1572
  ];
1568
1573
  }),
1569
1574
  _: 1
1570
1575
  }, 8, ["title", "model-value"])
1571
1576
  ])) : y("", !0),
1572
- M.selectOnly ? y("", !0) : (n(), s("div", jo, [
1577
+ M.selectOnly ? y("", !0) : (n(), s("div", Ro, [
1573
1578
  z(ft, null, ce({
1574
1579
  default: v(() => {
1575
1580
  var ae;
1576
1581
  return [
1577
- "items" in M.property ? (n(), s("div", Ro, [
1578
- (n(!0), s(N, null, G(M.modelValue, (m) => (n(), k(Ge, U({ ref_for: !0 }, {
1582
+ "items" in M.property ? (n(), s("div", Lo, [
1583
+ (n(!0), s(x, null, G(M.modelValue, (m) => (n(), k(Ge, E({ ref_for: !0 }, {
1579
1584
  item: m,
1580
1585
  indexes: e(b),
1581
1586
  property: M.property,
@@ -1585,7 +1590,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1585
1590
  key: `selected-${m._id}`,
1586
1591
  "onUpdate:modelValue": ne
1587
1592
  }), null, 16))), 128))
1588
- ])) : (ae = M.modelValue) != null && ae._id ? (n(), k(Ge, U({ key: 1 }, {
1593
+ ])) : (ae = M.modelValue) != null && ae._id ? (n(), k(Ge, E({ key: 1 }, {
1589
1594
  item: M.modelValue,
1590
1595
  indexes: e(b),
1591
1596
  property: e(t),
@@ -1599,12 +1604,12 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1599
1604
  M.readOnly ? void 0 : {
1600
1605
  name: "footer",
1601
1606
  fn: v(() => [
1602
- Z((n(), k(J, {
1607
+ P((n(), k(Z, {
1603
1608
  icon: "plus",
1604
1609
  onClick: g
1605
1610
  }, {
1606
1611
  default: v(() => [
1607
- Q(V(e(R)("action.select", { capitalize: !0 })), 1)
1612
+ Q(C(e(R)("action.select", { capitalize: !0 })), 1)
1608
1613
  ]),
1609
1614
  _: 1
1610
1615
  })), [
@@ -1619,15 +1624,15 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1619
1624
  };
1620
1625
  }
1621
1626
  });
1622
- const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r) => {
1627
+ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r) => {
1623
1628
  const l = "items" in c ? c.items : c, t = {
1624
- options: Yn,
1629
+ options: Jn,
1625
1630
  select: Ne,
1626
- switch: to,
1627
- file: go,
1628
- search: zo,
1631
+ switch: no,
1632
+ file: ko,
1633
+ search: qo,
1629
1634
  input: ke,
1630
- form: De
1635
+ form: Qe
1631
1636
  }, o = (() => {
1632
1637
  if ("type" in l) {
1633
1638
  if (l.type === "object")
@@ -1645,29 +1650,29 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1645
1650
  return u ? u.inline ? "form" : u.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in l ? "select" : "input";
1646
1651
  })();
1647
1652
  return r[o] ? r[o] : t[o];
1648
- }, qo = (c, r, l) => {
1653
+ }, Mo = (c, r, l) => {
1649
1654
  c ?? (c = []);
1650
1655
  const t = "items" in r ? r.items : r;
1651
1656
  if ("$ref" in t) {
1652
- const o = ie(t.$ref, l), u = Ce(o.$freshItem);
1657
+ const o = re(t.$ref, l), u = Ce(o.$freshItem);
1653
1658
  return c.push(u);
1654
1659
  }
1655
1660
  return "properties" in t ? c.push(qt(t)) : "type" in t && t.type === "boolean" ? c.push({}) : c.push(null);
1656
- }, Mo = (c, r) => {
1661
+ }, Fo = (c, r) => {
1657
1662
  c.splice(r, 1);
1658
- }, Fo = {
1663
+ }, Uo = {
1659
1664
  key: 0,
1660
1665
  class: "form__header"
1661
- }, Uo = { class: "form__fieldset" }, Eo = { key: 0 }, Ho = ["innerHTML"], Do = ["onInput"], Qo = { key: 4 }, Go = { value: "true" }, Wo = { value: "false" }, Ko = {
1666
+ }, Eo = { class: "form__fieldset" }, Ho = { key: 0 }, Do = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
1662
1667
  key: 5,
1663
1668
  style: { display: "grid", "row-gap": ".4rem" }
1664
- }, Xo = { key: 0 }, Yo = { class: "form__array" }, Jo = { style: { "flex-grow": "1" } }, Zo = {
1669
+ }, Yo = { key: 0 }, Jo = { class: "form__array" }, Zo = { style: { "flex-grow": "1" } }, Po = {
1665
1670
  key: 7,
1666
1671
  class: "form__validation-error"
1667
- }, Po = { key: 0 }, No = { key: 1 }, xo = {
1672
+ }, No = { key: 0 }, xo = { key: 1 }, ea = {
1668
1673
  key: 2,
1669
1674
  class: "form__footer"
1670
- }, ea = /* @__PURE__ */ F({
1675
+ }, ta = /* @__PURE__ */ U({
1671
1676
  __name: "aeria-form",
1672
1677
  props: {
1673
1678
  modelValue: {},
@@ -1700,10 +1705,10 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1700
1705
  $t(() => {
1701
1706
  t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
1702
1707
  });
1703
- const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ? ie(e(i)) : null;
1708
+ const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ? re(e(i)) : null;
1704
1709
  !i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1705
1710
  collection prop, some features may not work as intended`);
1706
- const b = Y(!1), d = E(() => {
1711
+ const b = J(!1), d = H(() => {
1707
1712
  const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
1708
1713
  if (!m)
1709
1714
  return;
@@ -1721,49 +1726,49 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1721
1726
  m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
1722
1727
  }
1723
1728
  return Object.assign(L, m), L;
1724
- }), a = E(() => t.layout || (p == null ? void 0 : p.description.formLayout)), B = (m) => {
1729
+ }), a = H(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
1725
1730
  const L = _e(m, t[m]);
1726
1731
  return t[m] && ye(m, t[m]), L;
1727
- }, f = E(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = B("formComponents") || {}, T = B("propertyComponents") || {}, C = B("omitFormHeader"), x = B("omitInputLabels"), ee = B("innerInputLabel");
1732
+ }, f = H(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, T = w("propertyComponents") || {}, V = w("omitFormHeader"), Y = w("omitInputLabels"), ee = w("innerInputLabel");
1728
1733
  i && ye(Fe, i), ye("searchOnly", t.searchOnly);
1729
1734
  const h = (m) => d.value ? Object.entries(d.value).filter(([L, K]) => !K.noForm && m([
1730
1735
  L,
1731
1736
  K
1732
- ])) : null, H = (m, L) => {
1733
- var w;
1737
+ ])) : null, F = (m, L) => {
1738
+ var B;
1734
1739
  if (t.searchOnly || !i || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
1735
1740
  return !0;
1736
- const K = t.property && "properties" in t.property ? t.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
1741
+ const K = t.property && "properties" in t.property ? t.property.form : (B = p == null ? void 0 : p.description) == null ? void 0 : B.form;
1737
1742
  return !K || K.includes(m);
1738
- }, le = h(([m, L]) => H(m, L)), S = Ue(), g = {}, j = (m, L) => {
1739
- var q, fe, we, Se;
1740
- const K = [], w = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Se = (we = a.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1743
+ }, le = h(([m, L]) => F(m, L)), S = Ue(), g = {}, j = (m, L) => {
1744
+ var q, fe, we, Be;
1745
+ const K = [], B = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Be = (we = a.value) == null ? void 0 : we.fields) == null ? void 0 : Be.$default);
1741
1746
  if (!L)
1742
1747
  return;
1743
- if (w != null && w.if && !t.searchOnly) {
1744
- const Te = We(
1748
+ if (B != null && B.if && !t.searchOnly) {
1749
+ const Se = We(
1745
1750
  t.modelValue,
1746
- w.if
1751
+ B.if
1747
1752
  );
1748
- Te.satisfied || (g[m] && (p ? t.modelValue[m] = typeof p.$freshItem[m] == "object" ? Ce(p.$freshItem[m]) : p.$freshItem[m] : t.modelValue[m] = [
1753
+ Se.satisfied || (g[m] && (p ? t.modelValue[m] = typeof p.$freshItem[m] == "object" ? Ce(p.$freshItem[m]) : p.$freshItem[m] : t.modelValue[m] = [
1749
1754
  void 0,
1750
1755
  null
1751
- ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Te.satisfied;
1756
+ ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
1752
1757
  }
1753
- const I = S.value.md && (w == null ? void 0 : w.span) || 6;
1758
+ const I = S.value.md && (B == null ? void 0 : B.span) || 6;
1754
1759
  return K.push(`
1755
1760
  --field-span: ${I};
1756
1761
  grid-column: span var(--field-span) / span var(--field-span);
1757
- `), w && (w.verticalSpacing && K.push(`
1758
- --vertical-spacing: ${w.verticalSpacing};
1762
+ `), B && (B.verticalSpacing && K.push(`
1763
+ --vertical-spacing: ${B.verticalSpacing};
1759
1764
  padding: var(--vertical-spacing) 0;
1760
- `), w.separator && K.push(`
1765
+ `), B.separator && K.push(`
1761
1766
  border-top: 1px solid var(--theme-border-color);
1762
1767
  border-width: 1px 0 1px 0;
1763
1768
  padding: 1rem 0;
1764
1769
  margin: 1rem 0;
1765
1770
  `)), K.join("");
1766
- }, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = E(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = E(() => t.form ? Ht(
1771
+ }, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = H(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = H(() => t.form ? Ht(
1767
1772
  t.modelValue,
1768
1773
  t.form,
1769
1774
  oe.value,
@@ -1776,37 +1781,37 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1776
1781
  return b.value = !0, !0;
1777
1782
  };
1778
1783
  return (m, L) => {
1779
- const K = te("clickable"), w = te("focus");
1784
+ const K = te("clickable"), B = te("focus");
1780
1785
  return n(), s("form", {
1781
1786
  class: "form",
1782
- style: be(`row-gap: ${e(C) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1787
+ style: be(`row-gap: ${e(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1783
1788
  }, [
1784
- m.$slots.header && !e(C) ? (n(), s("header", Fo, [
1789
+ m.$slots.header && !e(V) ? (n(), s("header", Uo, [
1785
1790
  O(m.$slots, "header", {}, void 0, !0)
1786
1791
  ])) : y("", !0),
1787
1792
  O(m.$slots, "default", {}, void 0, !0),
1788
- A("fieldset", Uo, [
1789
- (n(!0), s(N, null, G(e(le), ([I, q]) => {
1790
- var fe, we, Se, Te, xe, et, tt, nt, ot, at, lt, st, it;
1793
+ A("fieldset", Eo, [
1794
+ (n(!0), s(x, null, G(e(le), ([I, q]) => {
1795
+ var fe, we, Be, Se, xe, et, tt, nt, ot, at, lt, st, it;
1791
1796
  return n(), s("div", {
1792
1797
  key: `field-${I}`,
1793
1798
  style: be(j(I, q)),
1794
1799
  class: "form__field"
1795
1800
  }, [
1796
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(x) && !e(ee) ? (n(), s("label", Eo, [
1801
+ (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), s("label", Ho, [
1797
1802
  A("div", {
1798
1803
  class: X({
1799
1804
  "form__field-label": !0,
1800
1805
  "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1801
1806
  "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!oe.value || e(Mt)(I, oe.value, m.modelValue))
1802
1807
  })
1803
- }, V(q.description || e(R)(I)), 3),
1808
+ }, C(q.description || e(R)(I)), 3),
1804
1809
  q.hint ? (n(), s("div", {
1805
1810
  key: 0,
1806
1811
  innerHTML: q.hint
1807
- }, null, 8, Ho)) : y("", !0)
1812
+ }, null, 8, Do)) : y("", !0)
1808
1813
  ])) : y("", !0),
1809
- m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`, U({
1814
+ m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`, E({
1810
1815
  key: 1,
1811
1816
  ref_for: !0
1812
1817
  }, {
@@ -1814,10 +1819,10 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1814
1819
  property: q,
1815
1820
  propertyName: I,
1816
1821
  modelValue: m.modelValue
1817
- }), void 0, !0) : (Se = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(he(e(T)[m.layout.fields[I].component.name]), U({
1822
+ }), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(he(e(T)[m.layout.fields[I].component.name]), E({
1818
1823
  key: 2,
1819
1824
  modelValue: m.modelValue[I],
1820
- "onUpdate:modelValue": (P) => m.modelValue[I] = P,
1825
+ "onUpdate:modelValue": (N) => m.modelValue[I] = N,
1821
1826
  ref_for: !0
1822
1827
  }, {
1823
1828
  readOnly: e(_),
@@ -1825,76 +1830,76 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1825
1830
  propertyName: I,
1826
1831
  ...m.layout.fields[I].component.props || {}
1827
1832
  }, {
1828
- onInput: (P) => o("input", I),
1829
- onChange: L[0] || (L[0] = (P) => o("change", P))
1833
+ onInput: (N) => o("input", I),
1834
+ onChange: L[0] || (L[0] = (N) => o("change", N))
1830
1835
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(), s("div", {
1831
1836
  key: 3,
1832
1837
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1833
- onInput: (P) => o("input", I),
1834
- onChange: L[1] || (L[1] = (P) => o("change", P))
1838
+ onInput: (N) => o("input", I),
1839
+ onChange: L[1] || (L[1] = (N) => o("change", N))
1835
1840
  }, [
1836
- z(ke, U({
1841
+ z(ke, E({
1837
1842
  modelValue: m.modelValue[I].$gte,
1838
- "onUpdate:modelValue": (P) => m.modelValue[I].$gte = P,
1843
+ "onUpdate:modelValue": (N) => m.modelValue[I].$gte = N,
1839
1844
  ref_for: !0
1840
1845
  }, {
1841
1846
  property: q,
1842
1847
  propertyName: I
1843
1848
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1844
- z(ke, U({
1849
+ z(ke, E({
1845
1850
  modelValue: m.modelValue[I].$lte,
1846
- "onUpdate:modelValue": (P) => m.modelValue[I].$lte = P,
1851
+ "onUpdate:modelValue": (N) => m.modelValue[I].$lte = N,
1847
1852
  ref_for: !0
1848
1853
  }, {
1849
1854
  property: q,
1850
1855
  propertyName: I
1851
1856
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1852
- ], 40, Do)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), s("div", Qo, [
1853
- z(Ne, U({ ref_for: !0 }, {
1857
+ ], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), s("div", Go, [
1858
+ z(Ne, E({ ref_for: !0 }, {
1854
1859
  property: q,
1855
1860
  propertyName: I
1856
1861
  }, {
1857
1862
  "boolean-ref": "",
1858
1863
  "model-value": m.modelValue[I],
1859
- onChange: L[2] || (L[2] = (P) => o("change", P)),
1860
- "onUpdate:modelValue": (P) => {
1861
- m.modelValue[I] = P == "true" ? !0 : P == "false" ? !1 : null;
1864
+ onChange: L[2] || (L[2] = (N) => o("change", N)),
1865
+ "onUpdate:modelValue": (N) => {
1866
+ m.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
1862
1867
  }
1863
1868
  }), {
1864
1869
  default: v(() => [
1865
- A("option", Go, V(e(R)("yes")), 1),
1866
- A("option", Wo, V(e(R)("no")), 1)
1870
+ A("option", Wo, C(e(R)("yes")), 1),
1871
+ A("option", Ko, C(e(R)("no")), 1)
1867
1872
  ]),
1868
1873
  _: 2
1869
1874
  }, 1040, ["model-value", "onUpdate:modelValue"])
1870
- ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), s("div", Ko, [
1871
- e(_) ? y("", !0) : (n(), s("div", Xo, [
1872
- z(re, {
1875
+ ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), s("div", Xo, [
1876
+ e(_) ? y("", !0) : (n(), s("div", Yo, [
1877
+ z(ie, {
1873
1878
  small: "",
1874
1879
  variant: "alt",
1875
1880
  icon: "plus",
1876
- disabled: !("inline" in q.items && q.items.inline) && (((Te = m.modelValue[I]) == null ? void 0 : Te.length) >= q.maxItems || ne((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
1877
- onClick: ze((P) => {
1878
- m.modelValue[I] || (m.modelValue[I] = []), e(qo)(m.modelValue[I], q, e(l));
1881
+ disabled: !("inline" in q.items && q.items.inline) && (((Se = m.modelValue[I]) == null ? void 0 : Se.length) >= q.maxItems || ne((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
1882
+ onClick: ze((N) => {
1883
+ m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(l));
1879
1884
  }, ["prevent"])
1880
1885
  }, {
1881
1886
  default: v(() => [
1882
- Q(V(e(R)("action.add", { capitalize: !0 })), 1)
1887
+ Q(C(e(R)("action.add", { capitalize: !0 })), 1)
1883
1888
  ]),
1884
1889
  _: 2
1885
1890
  }, 1032, ["disabled", "onClick"])
1886
1891
  ])),
1887
- A("div", Yo, [
1888
- (n(!0), s(N, null, G(m.modelValue[I], (P, je) => {
1892
+ A("div", Jo, [
1893
+ (n(!0), s(x, null, G(m.modelValue[I], (N, Te) => {
1889
1894
  var rt, ut, ct, dt, pt, _t;
1890
1895
  return n(), s("div", {
1891
- key: `rep-${I}-${e(Dt)(P, je)}`,
1896
+ key: `rep-${I}-${e(Dt)(N, Te)}`,
1892
1897
  class: "form__array-item"
1893
1898
  }, [
1894
- A("div", Jo, [
1895
- (n(), k(he(e(vt)(q, e($))), U({
1896
- modelValue: m.modelValue[I][je],
1897
- "onUpdate:modelValue": (Re) => m.modelValue[I][je] = Re,
1899
+ A("div", Zo, [
1900
+ (n(), k(he(e(vt)(q, e($))), E({
1901
+ modelValue: m.modelValue[I][Te],
1902
+ "onUpdate:modelValue": (je) => m.modelValue[I][Te] = je,
1898
1903
  ref_for: !0
1899
1904
  }, {
1900
1905
  readOnly: e(_),
@@ -1903,28 +1908,28 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1903
1908
  parentCollection: e(i),
1904
1909
  parentPropertyName: m.parentPropertyName,
1905
1910
  columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
1906
- validationErrors: D(I, je),
1911
+ validationErrors: D(I, Te),
1907
1912
  ...q.componentProps || {}
1908
1913
  }, {
1909
- onInput: (Re) => o("input", I),
1910
- onChange: L[3] || (L[3] = (Re) => o("change", Re))
1914
+ onInput: (je) => o("input", I),
1915
+ onChange: L[3] || (L[3] = (je) => o("change", je))
1911
1916
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1912
1917
  ]),
1913
- e(_) ? y("", !0) : Z((n(), k(J, {
1918
+ e(_) ? y("", !0) : P((n(), k(Z, {
1914
1919
  key: 0,
1915
1920
  reactive: "",
1916
1921
  icon: "trash",
1917
- onClick: (Re) => e(Mo)(m.modelValue[I], je)
1922
+ onClick: (je) => e(Fo)(m.modelValue[I], Te)
1918
1923
  }, null, 8, ["onClick"])), [
1919
1924
  [K]
1920
1925
  ])
1921
1926
  ]);
1922
1927
  }), 128))
1923
1928
  ])
1924
- ])) : m.modelValue ? Z((n(), k(he(e(vt)(q, e($))), U({
1929
+ ])) : m.modelValue ? P((n(), k(he(e(vt)(q, e($))), E({
1925
1930
  key: 6,
1926
1931
  modelValue: m.modelValue[I],
1927
- "onUpdate:modelValue": (P) => m.modelValue[I] = P,
1932
+ "onUpdate:modelValue": (N) => m.modelValue[I] = N,
1928
1933
  ref_for: !0
1929
1934
  }, {
1930
1935
  readOnly: e(_),
@@ -1936,21 +1941,21 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1936
1941
  ...q.componentProps || {},
1937
1942
  validationErrors: D(I)
1938
1943
  }, {
1939
- onInput: (P) => o("input", I),
1940
- onChange: L[4] || (L[4] = (P) => o("change", P)),
1941
- onClipboardCopy: L[5] || (L[5] = (P) => o("clipboardCopy", P))
1944
+ onInput: (N) => o("input", I),
1945
+ onChange: L[4] || (L[4] = (N) => o("change", N)),
1946
+ onClipboardCopy: L[5] || (L[5] = (N) => o("clipboardCopy", N))
1942
1947
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1943
- [w, se(q)]
1948
+ [B, se(q)]
1944
1949
  ]) : y("", !0),
1945
- (it = f.value) != null && it[I] ? (n(), s("div", Zo, [
1946
- f.value[I].type ? (n(), s("span", Po, V(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
1947
- f.value[I].detail ? (n(), s("span", No, V(e(R)(f.value[I].detail)), 1)) : y("", !0)
1950
+ (it = f.value) != null && it[I] ? (n(), s("div", Po, [
1951
+ f.value[I].type ? (n(), s("span", No, C(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
1952
+ f.value[I].detail ? (n(), s("span", xo, C(e(R)(f.value[I].detail)), 1)) : y("", !0)
1948
1953
  ])) : y("", !0)
1949
1954
  ], 4);
1950
1955
  }), 128))
1951
1956
  ]),
1952
1957
  m.$slots.after ? O(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1953
- m.$slots.footer ? (n(), s("div", xo, [
1958
+ m.$slots.footer ? (n(), s("div", ea, [
1954
1959
  O(m.$slots, "footer", de(ge({
1955
1960
  isInsertReady: M.value
1956
1961
  })), void 0, !0)
@@ -1959,11 +1964,11 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1959
1964
  };
1960
1965
  }
1961
1966
  });
1962
- const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @__PURE__ */ F({
1967
+ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @__PURE__ */ U({
1963
1968
  __name: "aeria-filter-panel",
1964
1969
  emits: ["update:modelValue"],
1965
1970
  setup(c, { emit: r }) {
1966
- const l = r, t = Ie(), o = Ae(), u = e(_e(Fe)), i = () => {
1971
+ const l = r, t = De(), o = Ie(), u = e(_e(Fe)), i = () => {
1967
1972
  t.pagination.offset = 0, t.$actions.filter(), l("update:modelValue", !1);
1968
1973
  const _ = Object.assign({
1969
1974
  query: {}
@@ -1974,7 +1979,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
1974
1979
  query: Qt(t)
1975
1980
  }));
1976
1981
  };
1977
- return (_, p) => (n(), k(Be, {
1982
+ return (_, p) => (n(), k(Ae, {
1978
1983
  "close-hint": "",
1979
1984
  "fixed-right": "",
1980
1985
  title: _.t("filter_by", { capitalize: !0 }),
@@ -1982,7 +1987,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
1982
1987
  onOverlayClick: p[3] || (p[3] = (b) => l("update:modelValue", !1))
1983
1988
  }, {
1984
1989
  footer: v(() => [
1985
- e(t).filtersCount > 0 ? (n(), k(re, {
1990
+ e(t).filtersCount > 0 ? (n(), k(ie, {
1986
1991
  key: 0,
1987
1992
  variant: "transparent",
1988
1993
  onClick: p[1] || (p[1] = (b) => {
@@ -1990,30 +1995,30 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
1990
1995
  })
1991
1996
  }, {
1992
1997
  default: v(() => [
1993
- Q(V(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1998
+ Q(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1994
1999
  z($e, null, {
1995
2000
  default: v(() => [
1996
- Q(V(e(t).filtersCount), 1)
2001
+ Q(C(e(t).filtersCount), 1)
1997
2002
  ]),
1998
2003
  _: 1
1999
2004
  })
2000
2005
  ]),
2001
2006
  _: 1
2002
2007
  })) : y("", !0),
2003
- z(re, {
2008
+ z(ie, {
2004
2009
  large: "",
2005
2010
  icon: "funnel",
2006
2011
  disabled: !e(t).hasActiveFilters,
2007
2012
  onClick: i
2008
2013
  }, {
2009
2014
  default: v(() => [
2010
- Q(V(_.t("action.filter", { capitalize: !0 })), 1)
2015
+ Q(C(_.t("action.filter", { capitalize: !0 })), 1)
2011
2016
  ]),
2012
2017
  _: 1
2013
2018
  }, 8, ["disabled"])
2014
2019
  ]),
2015
2020
  default: v(() => [
2016
- z(De, U({
2021
+ z(Qe, E({
2017
2022
  modelValue: e(t).filters,
2018
2023
  "onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
2019
2024
  }, {
@@ -2025,7 +2030,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2025
2030
  _: 1
2026
2031
  }, 8, ["title"]));
2027
2032
  }
2028
- }), na = /* @__PURE__ */ F({
2033
+ }), oa = /* @__PURE__ */ U({
2029
2034
  __name: "aeria-insert-panel",
2030
2035
  props: {
2031
2036
  collection: {},
@@ -2038,11 +2043,11 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2038
2043
  },
2039
2044
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2040
2045
  setup(c, { emit: r }) {
2041
- const l = c, t = r, o = ie("meta"), u = l.collection || o.view.collection, i = ie(u), _ = _e("individualActions", []);
2046
+ const l = c, t = r, o = re("meta"), u = l.collection || o.view.collection, i = re(u), _ = _e("individualActions", []);
2042
2047
  Xe(() => {
2043
2048
  l.modelValue && i.$actions.setItem(l.modelValue);
2044
2049
  });
2045
- const p = E(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
2050
+ const p = H(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
2046
2051
  const { error: f, result: $ } = await i.$actions.deepInsert();
2047
2052
  f || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), i.$actions.clearItem());
2048
2053
  }, { t: d } = Lt(), a = () => {
@@ -2052,7 +2057,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2052
2057
  },
2053
2058
  body: d("prompt.close_panel")
2054
2059
  });
2055
- }, B = () => o.$actions.spawnToast({
2060
+ }, w = () => o.$actions.spawnToast({
2056
2061
  icon: "info",
2057
2062
  text: d("copied_to_clipboard")
2058
2063
  });
@@ -2060,26 +2065,26 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2060
2065
  f === null && t("update:visible", !1);
2061
2066
  }), (f, $) => {
2062
2067
  const T = te("clickable");
2063
- return n(), k(Be, {
2068
+ return n(), k(Ae, {
2064
2069
  "model-value": f.visible,
2065
2070
  loading: e(i).loading.get,
2066
2071
  onOverlayClick: a
2067
2072
  }, ce({
2068
2073
  extra: v(() => [
2069
- z(Oe, U({
2074
+ z(Oe, E({
2070
2075
  subject: e(i).item,
2071
- actions: e(_).filter(({ action: C }) => C !== "spawnEdit"),
2076
+ actions: e(_).filter(({ action: V }) => V !== "spawnEdit"),
2072
2077
  overlayLayer: 60
2073
2078
  }, {
2074
- onActionClick: $[2] || ($[2] = (C) => t("update:visible", !1))
2079
+ onActionClick: $[2] || ($[2] = (V) => t("update:visible", !1))
2075
2080
  }), {
2076
2081
  default: v(({
2077
- visible: C
2082
+ visible: V
2078
2083
  }) => [
2079
- e(i).item._id ? Z((n(), k(J, {
2084
+ e(i).item._id ? P((n(), k(Z, {
2080
2085
  key: 0,
2081
2086
  reactive: "",
2082
- active: C,
2087
+ active: V,
2083
2088
  icon: "dots-three"
2084
2089
  }, null, 8, ["active"])), [
2085
2090
  [T]
@@ -2089,9 +2094,9 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2089
2094
  }, 16)
2090
2095
  ]),
2091
2096
  default: v(() => [
2092
- z(De, U({
2097
+ z(Qe, E({
2093
2098
  modelValue: e(i).item,
2094
- "onUpdate:modelValue": $[0] || ($[0] = (C) => e(i).item = C)
2099
+ "onUpdate:modelValue": $[0] || ($[0] = (V) => e(i).item = V)
2095
2100
  }, {
2096
2101
  collection: e(u),
2097
2102
  readOnly: f.readOnly,
@@ -2101,13 +2106,13 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2101
2106
  layout: e(i).description.formLayout || {}
2102
2107
  }, {
2103
2108
  focus: "",
2104
- onClipboardCopy: B,
2105
- onAdd: $[1] || ($[1] = (C) => C.preventDefault())
2109
+ onClipboardCopy: w,
2110
+ onAdd: $[1] || ($[1] = (V) => V.preventDefault())
2106
2111
  }), ce({ _: 2 }, [
2107
- G(Object.keys(f.$slots).filter((C) => C.startsWith("field-")), (C) => ({
2108
- name: C,
2109
- fn: v((x) => [
2110
- O(f.$slots, C, de(ge(x)))
2112
+ G(Object.keys(f.$slots).filter((V) => V.startsWith("field-")), (V) => ({
2113
+ name: V,
2114
+ fn: v((Y) => [
2115
+ O(f.$slots, V, de(ge(Y)))
2111
2116
  ])
2112
2117
  }))
2113
2118
  ]), 1040, ["modelValue"])
@@ -2124,23 +2129,23 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2124
2129
  f.readOnly ? void 0 : {
2125
2130
  name: "footer",
2126
2131
  fn: v(() => [
2127
- z(re, {
2132
+ z(ie, {
2128
2133
  variant: "transparent",
2129
2134
  onClick: a
2130
2135
  }, {
2131
2136
  default: v(() => [
2132
- Q(V(e(d)("action.cancel", { capitalize: !0 })), 1)
2137
+ Q(C(e(d)("action.cancel", { capitalize: !0 })), 1)
2133
2138
  ]),
2134
2139
  _: 1
2135
2140
  }),
2136
- z(re, {
2141
+ z(ie, {
2137
2142
  large: "",
2138
2143
  disabled: !e(i).isInsertReady || e(i).loading.get,
2139
2144
  loading: e(i).loading.insert,
2140
2145
  onClick: b
2141
2146
  }, {
2142
2147
  default: v(() => [
2143
- Q(V(e(d)("action.insert", { capitalize: !0 })), 1)
2148
+ Q(C(e(d)("action.insert", { capitalize: !0 })), 1)
2144
2149
  ]),
2145
2150
  _: 1
2146
2151
  }, 8, ["disabled", "loading"])
@@ -2158,10 +2163,10 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2158
2163
  }
2159
2164
  r.filtersPreset = c.filters || {}, r.preferredTableProperties = c.table ? Array.from(c.table) : [], r.pagination.offset = 0;
2160
2165
  }
2161
- }, oa = (c, r = {
2166
+ }, aa = (c, r = {
2162
2167
  persistInQuery: !0
2163
2168
  }) => {
2164
- const t = Ae().currentRoute;
2169
+ const t = Ie().currentRoute;
2165
2170
  return ue(() => t.value.query.section, (o) => {
2166
2171
  if (c) {
2167
2172
  if (c.description.filtersPresets) {
@@ -2179,25 +2184,25 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2179
2184
  }, {
2180
2185
  immediate: !0
2181
2186
  });
2182
- }, aa = {
2187
+ }, la = {
2183
2188
  key: 0,
2184
2189
  class: "table aeria-surface"
2185
- }, la = { key: 0 }, sa = { key: 1 }, ia = { key: 0 }, ra = ["checked"], ua = {
2190
+ }, sa = { key: 0 }, ia = { key: 1 }, ra = { key: 0 }, ua = ["checked"], ca = {
2186
2191
  key: 1,
2187
2192
  style: { "text-align": "right" }
2188
- }, ca = { key: 2 }, da = { key: 3 }, pa = ["onClick"], _a = { key: 0 }, ma = ["value"], fa = { class: "table__cell-mobile-label" }, va = {
2193
+ }, da = { key: 2 }, pa = { key: 3 }, _a = ["onClick"], ma = { key: 0 }, fa = ["value"], va = { class: "table__cell-mobile-label" }, ya = {
2189
2194
  key: 0,
2190
2195
  class: "table__cell-container"
2191
- }, ya = {
2196
+ }, ha = {
2192
2197
  key: 1,
2193
2198
  class: "table__cell-container"
2194
- }, ha = { class: "table__cell-grid" }, ba = { key: 0 }, $a = { key: 1 }, ga = { key: 0 }, ka = ["href"], Va = { key: 3 }, Ca = { key: 1 }, Oa = { key: 2 }, Ia = { key: 0 }, Aa = { key: 1 }, Ba = { key: 2 }, wa = {
2199
+ }, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 }, wa = { key: 1 }, Ba = { key: 2 }, Sa = {
2195
2200
  key: 1,
2196
2201
  class: "no-print"
2197
- }, Sa = { class: "table__cell-actions" }, Ta = {
2202
+ }, Ta = { class: "table__cell-actions" }, ja = {
2198
2203
  key: 2,
2199
2204
  class: "no-print table__mobile-actions"
2200
- }, ja = ["id"], Ra = { key: 1 }, La = ["colspan"], za = { class: "table__empty" }, qa = /* @__PURE__ */ F({
2205
+ }, Ra = ["id"], La = { key: 1 }, za = ["colspan"], qa = { class: "table__empty" }, Ma = /* @__PURE__ */ U({
2201
2206
  __name: "aeria-table",
2202
2207
  props: {
2203
2208
  columns: {},
@@ -2209,111 +2214,115 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2209
2214
  },
2210
2215
  emits: ["itemClick"],
2211
2216
  setup(c, { emit: r }) {
2212
- const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? ie(typeof u == "string" ? u : u.value) : null, _ = E({
2217
+ const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? re(typeof u == "string" ? u : u.value) : null, _ = H({
2213
2218
  get: () => i == null ? void 0 : i.selected,
2214
2219
  set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
2215
- }), p = E(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f != null && f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
2216
- var $;
2217
- return !o.value.xl || !(($ = l.layout) != null && $.actions) || !l.actions ? [] : l.actions.filter((T) => {
2218
- const C = l.layout.actions[T.action];
2219
- return b(C, f);
2220
+ }), p = H(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
2221
+ var T;
2222
+ const $ = (T = l.layout) == null ? void 0 : T.actions;
2223
+ return !o.value.xl || !$ || !l.actions ? [] : l.actions.filter((V) => {
2224
+ const Y = $[V.action];
2225
+ return Y && b(Y, f);
2220
2226
  });
2221
2227
  }, a = (f) => {
2222
- var $;
2223
- return l.actions ? !o.value.xl || !(($ = l.layout) != null && $.actions) ? l.actions : l.actions.filter((T) => {
2224
- const C = l.layout.actions[T.action];
2225
- if (T.roles) {
2226
- const x = ie("user");
2227
- if (!gt(T.roles, x.currentUser.roles))
2228
+ var T;
2229
+ if (!l.actions)
2230
+ return [];
2231
+ const $ = (T = l.layout) == null ? void 0 : T.actions;
2232
+ return !o.value.xl || !$ ? l.actions : l.actions.filter((V) => {
2233
+ const Y = $[V.action];
2234
+ if (V.roles) {
2235
+ const ee = re("user");
2236
+ if (!gt(V.roles, ee.currentUser.roles))
2228
2237
  return !1;
2229
2238
  }
2230
- return !b(C, f);
2231
- }) : [];
2232
- }, B = (f, $) => {
2233
- var x, ee;
2234
- const T = [], C = (ee = (x = l.layout) == null ? void 0 : x.actions) == null ? void 0 : ee[$.action];
2235
- return C != null && C.if && (We(
2239
+ return !Y || !b(Y, f);
2240
+ });
2241
+ }, w = (f, $) => {
2242
+ var Y, ee;
2243
+ const T = [], V = (ee = (Y = l.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
2244
+ return V != null && V.if && (We(
2236
2245
  f,
2237
- C.if
2246
+ V.if
2238
2247
  ).satisfied || T.push("display: none;")), T.join("");
2239
2248
  };
2240
2249
  return (f, $) => {
2241
- var C, x, ee;
2250
+ var V, Y, ee;
2242
2251
  const T = te("clickable");
2243
- return p.value > 0 || f.$slots.thead ? (n(), s("table", aa, [
2244
- f.$slots.thead ? (n(), s("thead", la, [
2252
+ return p.value > 0 || f.$slots.thead ? (n(), s("table", la, [
2253
+ f.$slots.thead ? (n(), s("thead", sa, [
2245
2254
  O(f.$slots, "thead", {}, void 0, !0)
2246
- ])) : (n(), s("thead", sa, [
2255
+ ])) : (n(), s("thead", ia, [
2247
2256
  A("tr", null, [
2248
- f.checkbox && e(i) && e(o).md ? (n(), s("th", ia, [
2257
+ f.checkbox && e(i) && e(o).md ? (n(), s("th", ra, [
2249
2258
  A("input", {
2250
2259
  type: "checkbox",
2251
2260
  checked: e(i).selected.length > 0 && e(i).selected.length === e(i).itemsCount,
2252
2261
  onChange: $[0] || ($[0] = (h) => e(i).$actions.selectAllItems(h.target.checked))
2253
- }, null, 40, ra)
2262
+ }, null, 40, ua)
2254
2263
  ])) : y("", !0),
2255
- (n(!0), s(N, null, G(Object.entries(f.columns), ([h, H], le) => (n(), s("th", {
2264
+ (n(!0), s(x, null, G(Object.entries(f.columns), ([h, F], le) => (n(), s("th", {
2256
2265
  key: `header-${le}`,
2257
2266
  class: "table__header"
2258
- }, V(H.description || e(R)(h)), 1))), 128)),
2259
- (C = f.actions) != null && C.length ? (n(), s("th", ua)) : y("", !0)
2267
+ }, C(F.description || e(R)(h)), 1))), 128)),
2268
+ (V = f.actions) != null && V.length ? (n(), s("th", ca)) : y("", !0)
2260
2269
  ])
2261
2270
  ])),
2262
- f.$slots.tbody ? (n(), s("tbody", ca, [
2271
+ f.$slots.tbody ? (n(), s("tbody", da, [
2263
2272
  O(f.$slots, "tbody", {}, void 0, !0)
2264
- ])) : (n(), s("tbody", da, [
2265
- (n(!0), s(N, null, G(f.rows, (h) => {
2266
- var H, le;
2273
+ ])) : (n(), s("tbody", pa, [
2274
+ (n(!0), s(x, null, G(f.rows, (h) => {
2275
+ var F, le;
2267
2276
  return n(), s("tr", {
2268
2277
  key: h._id,
2269
2278
  onClick: (S) => t("itemClick", h)
2270
2279
  }, [
2271
- e(i) && f.checkbox && e(o).md ? (n(), s("td", _a, [
2272
- Z(A("input", {
2280
+ e(i) && f.checkbox && e(o).md ? (n(), s("td", ma, [
2281
+ P(A("input", {
2273
2282
  "onUpdate:modelValue": $[1] || ($[1] = (S) => _.value = S),
2274
2283
  type: "checkbox",
2275
2284
  value: h._id
2276
- }, null, 8, ma), [
2277
- [Bt, _.value]
2285
+ }, null, 8, fa), [
2286
+ [wt, _.value]
2278
2287
  ])
2279
2288
  ])) : y("", !0),
2280
- (n(!0), s(N, null, G(Object.entries(f.columns), ([S, g], j) => {
2289
+ (n(!0), s(x, null, G(Object.entries(f.columns), ([S, g], j) => {
2281
2290
  var ne, oe, M;
2282
2291
  return n(), s("td", {
2283
2292
  key: `column-${h._id}-${j}`
2284
2293
  }, [
2285
- A("div", fa, V(g.description || e(R)(S)), 1),
2286
- `row-${S}` in f.$slots ? (n(), s("div", va, [
2287
- O(f.$slots, `row-${S}`, U({ ref_for: !0 }, {
2294
+ A("div", va, C(g.description || e(R)(S)), 1),
2295
+ `row-${S}` in f.$slots ? (n(), s("div", ya, [
2296
+ O(f.$slots, `row-${S}`, E({ ref_for: !0 }, {
2288
2297
  store: e(i),
2289
2298
  column: S,
2290
2299
  property: g,
2291
2300
  row: h
2292
2301
  }), void 0, !0)
2293
- ])) : (n(), s("div", ya, [
2294
- A("div", ha, [
2295
- "type" in g && g.type === "boolean" ? (n(), s("div", ba, [
2296
- h[S] ? (n(), k(J, {
2302
+ ])) : (n(), s("div", ha, [
2303
+ A("div", ba, [
2304
+ "type" in g && g.type === "boolean" ? (n(), s("div", $a, [
2305
+ h[S] ? (n(), k(Z, {
2297
2306
  key: 0,
2298
2307
  icon: "check",
2299
2308
  "icon-classes": "aeria-blueish"
2300
2309
  }, {
2301
2310
  default: v(() => [
2302
- Q(V(e(R)("yes")), 1)
2311
+ Q(C(e(R)("yes")), 1)
2303
2312
  ]),
2304
2313
  _: 1
2305
- })) : (n(), k(J, {
2314
+ })) : (n(), k(Z, {
2306
2315
  key: 1,
2307
2316
  icon: "x",
2308
2317
  "icon-classes": "aeria-redish"
2309
2318
  }, {
2310
2319
  default: v(() => [
2311
- Q(V(e(R)("no")), 1)
2320
+ Q(C(e(R)("no")), 1)
2312
2321
  ]),
2313
2322
  _: 1
2314
2323
  }))
2315
- ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", $a, [
2316
- h[S] ? (n(), s("div", ga, [
2324
+ ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", ga, [
2325
+ h[S] ? (n(), s("div", ka, [
2317
2326
  "items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(He, {
2318
2327
  key: 0,
2319
2328
  modelValue: h[S][0].link,
@@ -2334,19 +2343,19 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2334
2343
  key: 2,
2335
2344
  href: h[S].link,
2336
2345
  style: { "font-size": "10pt" }
2337
- }, V(h[S].filename), 9, ka)) : (n(), s("div", Va, " - "))
2338
- ])) : (n(), s("div", Ca, " - "))
2339
- ])) : (n(), s("div", Oa, [
2340
- e(i) ? (n(), s("span", Ia, V(e(i).$actions.formatValue({
2346
+ }, C(h[S].filename), 9, Va)) : (n(), s("div", Ca, " - "))
2347
+ ])) : (n(), s("div", Oa, " - "))
2348
+ ])) : (n(), s("div", Ia, [
2349
+ e(i) ? (n(), s("span", Aa, C(e(i).$actions.formatValue({
2341
2350
  value: h[S],
2342
2351
  key: S,
2343
2352
  property: g
2344
- })), 1)) : (n(), s("span", Aa, V(Array.isArray(h[S]) ? h[S].filter((D) => !!D).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
2353
+ })), 1)) : (n(), s("span", wa, C(Array.isArray(h[S]) ? h[S].filter((D) => !!D).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
2345
2354
  ((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div", Ba, [
2346
- (n(!0), s(N, null, G(e(me)(g).indexes.slice(1, 2), (D, se) => (n(), s("div", {
2355
+ (n(!0), s(x, null, G(e(me)(g).indexes.slice(1, 2), (D, se) => (n(), s("div", {
2347
2356
  key: `subvalue-${se}`,
2348
2357
  class: "table__cell-subvalue"
2349
- }, V(e(i).$actions.formatValue({
2358
+ }, C(e(i).$actions.formatValue({
2350
2359
  value: h[S],
2351
2360
  key: S,
2352
2361
  property: g,
@@ -2358,22 +2367,22 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2358
2367
  ]))
2359
2368
  ]);
2360
2369
  }), 128)),
2361
- (H = f.actions) != null && H.length && e(o).md ? (n(), s("td", wa, [
2362
- A("div", Sa, [
2363
- (n(!0), s(N, null, G(d(h), (S) => (n(), k(re, {
2370
+ (F = f.actions) != null && F.length && e(o).md ? (n(), s("td", Sa, [
2371
+ A("div", Ta, [
2372
+ (n(!0), s(x, null, G(d(h), (S) => (n(), k(ie, {
2364
2373
  key: `action-${S.action}`,
2365
2374
  small: "",
2366
2375
  variant: "alt",
2367
2376
  icon: S.icon,
2368
- style: be(B(h, S)),
2377
+ style: be(w(h, S)),
2369
2378
  onClick: (g) => S.click(h)
2370
2379
  }, {
2371
2380
  default: v(() => [
2372
- Q(V(e(R)(S.label)), 1)
2381
+ Q(C(e(R)(S.label)), 1)
2373
2382
  ]),
2374
2383
  _: 2
2375
2384
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2376
- a(h).length > 0 ? (n(), k(Oe, U({
2385
+ a(h).length > 0 ? (n(), k(Oe, E({
2377
2386
  key: 0,
2378
2387
  ref_for: !0
2379
2388
  }, {
@@ -2383,7 +2392,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2383
2392
  default: v(({
2384
2393
  visible: S
2385
2394
  }) => [
2386
- Z(z(J, {
2395
+ P(z(Z, {
2387
2396
  reactive: "",
2388
2397
  active: S,
2389
2398
  icon: "dots-three"
@@ -2394,29 +2403,29 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2394
2403
  _: 2
2395
2404
  }, 1040)) : y("", !0)
2396
2405
  ])
2397
- ])) : (le = f.actions) != null && le.length ? (n(), s("td", Ta, [
2406
+ ])) : (le = f.actions) != null && le.length ? (n(), s("td", ja, [
2398
2407
  A("div", {
2399
2408
  class: "table__mobile-actions-grid",
2400
2409
  style: be(`grid-template-columns: repeat(${d(h).length + (a(h).length ? 1 : 0)}, 1fr);`)
2401
2410
  }, [
2402
- (n(!0), s(N, null, G(d(h), (S) => (n(), k(ve, {
2411
+ (n(!0), s(x, null, G(d(h), (S) => (n(), k(ve, {
2403
2412
  key: `action-${S.action}`,
2404
2413
  class: "table__mobile-actions-button",
2405
2414
  onClick: (g) => S.click(h)
2406
2415
  }, {
2407
2416
  default: v(() => [
2408
- z(J, {
2417
+ z(Z, {
2409
2418
  icon: S.icon || "gear"
2410
2419
  }, {
2411
2420
  default: v(() => [
2412
- Q(V(e(R)(S.label)), 1)
2421
+ Q(C(e(R)(S.label)), 1)
2413
2422
  ]),
2414
2423
  _: 2
2415
2424
  }, 1032, ["icon"])
2416
2425
  ]),
2417
2426
  _: 2
2418
2427
  }, 1032, ["onClick"]))), 128)),
2419
- a(h).length > 0 ? (n(), k(Oe, U({
2428
+ a(h).length > 0 ? (n(), k(Oe, E({
2420
2429
  key: 0,
2421
2430
  ref_for: !0
2422
2431
  }, {
@@ -2424,7 +2433,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2424
2433
  actions: a(h)
2425
2434
  }), {
2426
2435
  default: v(() => [
2427
- z(J, {
2436
+ z(Z, {
2428
2437
  icon: "dots-three",
2429
2438
  class: "table__mobile-actions-button"
2430
2439
  })
@@ -2435,24 +2444,24 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
2435
2444
  ])) : y("", !0),
2436
2445
  A("div", {
2437
2446
  id: `dropdown-${h._id}`
2438
- }, null, 8, ja)
2439
- ], 8, pa);
2447
+ }, null, 8, Ra)
2448
+ ], 8, _a);
2440
2449
  }), 128))
2441
2450
  ])),
2442
2451
  A("tfoot", null, [
2443
- f.$slots.tfoot ? O(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((x = f.rows) != null && x.length) && !((ee = e(i)) != null && ee.loading.getAll) ? (n(), s("tr", Ra, [
2452
+ f.$slots.tfoot ? O(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((Y = f.rows) != null && Y.length) && !((ee = e(i)) != null && ee.loading.getAll) ? (n(), s("tr", La, [
2444
2453
  A("td", {
2445
2454
  colspan: p.value + 1
2446
2455
  }, [
2447
- A("div", za, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2448
- ], 8, La)
2456
+ A("div", qa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2457
+ ], 8, za)
2449
2458
  ])) : y("", !0)
2450
2459
  ])
2451
2460
  ])) : y("", !0);
2452
2461
  };
2453
2462
  }
2454
2463
  });
2455
- const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @__PURE__ */ F({
2464
+ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @__PURE__ */ U({
2456
2465
  __name: "aeria-tabular",
2457
2466
  props: {
2458
2467
  individualActions: {},
@@ -2460,7 +2469,7 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
2460
2469
  componentProps: {}
2461
2470
  },
2462
2471
  setup(c) {
2463
- const r = c, l = Ie(), t = Me(), o = E(() => {
2472
+ const r = c, l = Le(), t = Me(), o = H(() => {
2464
2473
  const u = {
2465
2474
  collection: t,
2466
2475
  checkbox: l.hasSelectionActions,
@@ -2473,7 +2482,7 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
2473
2482
  });
2474
2483
  return (u, i) => (n(), s("div", null, [
2475
2484
  u.$slots.inner ? O(u.$slots, "inner", { key: 0 }) : y("", !0),
2476
- e(l).properties ? (n(), k(Ma, U({ key: 1 }, o.value, {
2485
+ e(l).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
2477
2486
  key: e(l).$id
2478
2487
  }), ce({ _: 2 }, [
2479
2488
  G(Object.keys(u.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
@@ -2485,7 +2494,7 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
2485
2494
  ]), 1040)) : y("", !0)
2486
2495
  ]));
2487
2496
  }
2488
- }), Ua = /* @__PURE__ */ F({
2497
+ }), Ea = /* @__PURE__ */ U({
2489
2498
  __name: "aeria-grid",
2490
2499
  props: {
2491
2500
  list: { type: Boolean }
@@ -2501,10 +2510,10 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
2501
2510
  ], 2));
2502
2511
  }
2503
2512
  });
2504
- const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key: 0 }, Da = {
2513
+ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key: 0 }, Qa = {
2505
2514
  key: 1,
2506
2515
  class: "card__information"
2507
- }, Qa = /* @__PURE__ */ F({
2516
+ }, Ga = /* @__PURE__ */ U({
2508
2517
  __name: "aeria-grid",
2509
2518
  props: {
2510
2519
  individualActions: {},
@@ -2513,24 +2522,24 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2513
2522
  componentName: {}
2514
2523
  },
2515
2524
  setup(c) {
2516
- const l = c.layoutOptions, t = Ie(), o = (u) => Array.isArray(u) ? u[0] : u;
2525
+ const l = c.layoutOptions, t = Le(), o = (u) => Array.isArray(u) ? u[0] : u;
2517
2526
  return (u, i) => {
2518
2527
  const _ = te("clickable");
2519
- return n(), k(Ea, {
2528
+ return n(), k(Ha, {
2520
2529
  list: u.componentName === "list"
2521
2530
  }, {
2522
2531
  default: v(() => [
2523
- (n(!0), s(N, null, G(e(t).items, (p) => (n(), k(dn, {
2532
+ (n(!0), s(x, null, G(e(t).items, (p) => (n(), k(pn, {
2524
2533
  key: p,
2525
2534
  inactive: !!(e(l).active && !p[e(l).active]),
2526
2535
  horizontal: u.componentName === "list"
2527
2536
  }, ce({
2528
2537
  footer: v(() => [
2529
- e(l).title ? (n(), s("div", Ha, V(p[e(l).title]), 1)) : y("", !0),
2530
- e(l).information ? (n(), s("div", Da, V(p[e(l).information]), 1)) : y("", !0)
2538
+ e(l).title ? (n(), s("div", Da, C(p[e(l).title]), 1)) : y("", !0),
2539
+ e(l).information ? (n(), s("div", Qa, C(p[e(l).information]), 1)) : y("", !0)
2531
2540
  ]),
2532
2541
  actions: v(() => [
2533
- u.individualActions.length > 0 ? (n(), k(Oe, U({
2542
+ u.individualActions.length > 0 ? (n(), k(Oe, E({
2534
2543
  key: 0,
2535
2544
  ref_for: !0
2536
2545
  }, {
@@ -2540,7 +2549,7 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2540
2549
  default: v(({
2541
2550
  visible: b
2542
2551
  }) => [
2543
- Z(z(J, {
2552
+ P(z(Z, {
2544
2553
  reactive: "",
2545
2554
  active: b,
2546
2555
  icon: "dots-three-vertical"
@@ -2567,12 +2576,12 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2567
2576
  e(l).badge && Array.isArray(p[e(l).badge]) ? {
2568
2577
  name: "badge",
2569
2578
  fn: v(() => [
2570
- (n(!0), s(N, null, G(p[e(l).badge], (b) => (n(), k($e, {
2579
+ (n(!0), s(x, null, G(p[e(l).badge], (b) => (n(), k($e, {
2571
2580
  key: `${p._id}-${b}`,
2572
2581
  large: ""
2573
2582
  }, {
2574
2583
  default: v(() => [
2575
- Q(V(e(l).translateBadge ? e(R)(b) : b), 1)
2584
+ Q(C(e(l).translateBadge ? e(R)(b) : b), 1)
2576
2585
  ]),
2577
2586
  _: 2
2578
2587
  }, 1024))), 128))
@@ -2583,7 +2592,7 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2583
2592
  fn: v(() => [
2584
2593
  z($e, null, {
2585
2594
  default: v(() => [
2586
- Q(V(e(l).translateBadge ? e(R)(p[e(l).badge]) : p[e(l).badge]), 1)
2595
+ Q(C(e(l).translateBadge ? e(R)(p[e(l).badge]) : p[e(l).badge]), 1)
2587
2596
  ]),
2588
2597
  _: 2
2589
2598
  }, 1024)
@@ -2597,22 +2606,22 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2597
2606
  };
2598
2607
  }
2599
2608
  });
2600
- const yt = /* @__PURE__ */ W(Qa, [["__scopeId", "data-v-ccbced12"]]), Ga = (c) => ({
2601
- tabular: Fa,
2609
+ const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (c) => ({
2610
+ tabular: Ua,
2602
2611
  grid: yt,
2603
2612
  list: yt
2604
- })[c], pe = Y(!1);
2605
- Y(!1);
2606
- const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8263c"), c = c(), Je(), c), Ka = {
2613
+ })[c], pe = J(!1);
2614
+ J(!1);
2615
+ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d5684d74"), c = c(), Je(), c), Xa = {
2607
2616
  key: 2,
2608
2617
  class: "crud__controls"
2609
- }, Xa = {
2618
+ }, Ya = {
2610
2619
  key: 0,
2611
2620
  class: "crud__search"
2612
- }, Ya = { class: "crud__actions" }, Ja = { class: "crud__context-badge" }, Za = /* @__PURE__ */ Wa(() => /* @__PURE__ */ A("div", null, "Filtros", -1)), Pa = { key: 0 }, Na = {
2621
+ }, Ja = { class: "crud__actions" }, Za = { class: "crud__context-badge" }, Pa = /* @__PURE__ */ Ka(() => /* @__PURE__ */ A("div", null, "Filtros", -1)), Na = { key: 0 }, xa = {
2613
2622
  key: 3,
2614
2623
  class: "crud__pagination"
2615
- }, bt = 30, xa = /* @__PURE__ */ F({
2624
+ }, bt = 30, el = /* @__PURE__ */ U({
2616
2625
  __name: "aeria-crud",
2617
2626
  props: {
2618
2627
  collection: {},
@@ -2628,21 +2637,21 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2628
2637
  },
2629
2638
  emits: ["uiEvent"],
2630
2639
  setup(c, { emit: r }) {
2631
- const l = c, t = r, o = Ae(), u = Vt({
2640
+ const l = c, t = r, o = Ie(), u = Vt({
2632
2641
  delay: 600
2633
- }), i = ie("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2642
+ }), i = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2634
2643
  antecipate: 600
2635
2644
  }), d = !_.value.md || l.scrollPagination;
2636
2645
  d && ue(p, (g) => {
2637
- g && a.pagination.recordsTotal > a.items.length && $.value < bt && ($.value += 1, C());
2646
+ g && a.pagination.recordsTotal > a.items.length && $.value < bt && ($.value += 1, V());
2638
2647
  });
2639
- const a = ie(l.collection);
2640
- oa(a, {
2648
+ const a = Gt(l.collection);
2649
+ aa(a, {
2641
2650
  persistInQuery: !l.noQueryPersistence
2642
2651
  });
2643
- const B = Ze(), f = l.action ? e(l.action) : Gt(a, o, B);
2644
- Le.value = f[0], ht.value = f[1];
2645
- const $ = Y(0), T = Y(!1), C = async (g) => {
2652
+ const w = Ze(), f = l.action ? e(l.action) : Wt(a, o, w);
2653
+ Re.value = f[0], ht.value = f[1];
2654
+ const $ = J(0), T = J(!1), V = async (g) => {
2646
2655
  a.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
2647
2656
  const j = {
2648
2657
  filters: a.activeFilters,
@@ -2656,13 +2665,13 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2656
2665
  return;
2657
2666
  const { data: M, pagination: D } = oe;
2658
2667
  a.pagination.recordsCount = D.recordsCount, a.pagination.recordsTotal = D.recordsTotal, $.value === 0 && a.items.splice(0), a.items.push(...M), a.loading.getAll = !1, T.value = !0;
2659
- }, x = async (g) => {
2668
+ }, Y = async (g) => {
2660
2669
  o.push(qe(o.currentRoute.value, {
2661
2670
  query: {
2662
2671
  offset: g.offset,
2663
2672
  limit: g.limit
2664
2673
  }
2665
- })), a.pagination.offset = g.offset, a.pagination.limit = g.limit, C();
2674
+ })), a.pagination.offset = g.offset, a.pagination.limit = g.limit, V();
2666
2675
  }, ee = _e("noResultsComponent", null);
2667
2676
  ue(() => [
2668
2677
  o.currentRoute.value.path,
@@ -2672,8 +2681,8 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2672
2681
  return;
2673
2682
  const ne = o.currentRoute.value;
2674
2683
  if (i.view.title = l.collection, i.view.collection = l.collection, !l.noFetch && (!ne.query._popstate || a.itemsCount === 0)) {
2675
- const oe = Wt(a, ne);
2676
- Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await C();
2684
+ const oe = Kt(a, ne);
2685
+ Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await V();
2677
2686
  }
2678
2687
  }, {
2679
2688
  immediate: !0,
@@ -2688,16 +2697,16 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2688
2697
  $search: `"${g}"`,
2689
2698
  $caseSensitive: !1
2690
2699
  }
2691
- }), C({
2700
+ }), V({
2692
2701
  offset: 0
2693
- })) : (a.filters = Ce(a.freshFilters), $.value = 0, C())));
2702
+ })) : (a.filters = Ce(a.freshFilters), $.value = 0, V())));
2694
2703
  ue(() => a.textQuery, (g) => {
2695
2704
  h(g);
2696
2705
  });
2697
- const H = (g) => {
2706
+ const F = (g) => {
2698
2707
  g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
2699
2708
  };
2700
- wt(() => {
2709
+ Bt(() => {
2701
2710
  a.$actions.clearFilters(), a.textQuery = "", b();
2702
2711
  }), ue(() => ht.value, async (g) => {
2703
2712
  var oe;
@@ -2726,12 +2735,12 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2726
2735
  if (m.readOnly)
2727
2736
  return D;
2728
2737
  const L = (K) => {
2729
- const w = me(m);
2730
- if (!w)
2738
+ const B = me(m);
2739
+ if (!B)
2731
2740
  return K;
2732
- if (w.$ref === "file")
2741
+ if (B.$ref === "file")
2733
2742
  return {};
2734
- if (w.inline && K) {
2743
+ if (B.inline && K) {
2735
2744
  const { _id: I, ...q } = K;
2736
2745
  return q;
2737
2746
  }
@@ -2750,28 +2759,28 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2750
2759
  }), ue(() => pe, ({ value: g }) => {
2751
2760
  g === !1 && (i.view.collection = l.collection, a.$actions.clearItem());
2752
2761
  });
2753
- const le = E(() => a.individualActions.map((g) => ({
2754
- click: Le.value(g),
2762
+ const le = H(() => a.individualActions.map((g) => ({
2763
+ click: Re.value(g),
2755
2764
  ...g
2756
- }))), S = E(() => a.actions.filter((g) => !g.button));
2757
- return ye(Fe, E(() => l.collection)), ye("individualActions", le), (g, j) => {
2765
+ }))), S = H(() => a.actions.filter((g) => !g.button));
2766
+ return ye(Fe, H(() => l.collection)), ye("individualActions", le), (g, j) => {
2758
2767
  var M, D, se, ae, m, L, K;
2759
2768
  const ne = te("clickable"), oe = te("loading");
2760
- return n(), s(N, null, [
2761
- e(Ve) ? (n(), k(ta, {
2769
+ return n(), s(x, null, [
2770
+ e(Ve) ? (n(), k(na, {
2762
2771
  key: e(a).$id,
2763
2772
  modelValue: e(Ve),
2764
- "onUpdate:modelValue": j[0] || (j[0] = (w) => mt(Ve) ? Ve.value = w : null)
2773
+ "onUpdate:modelValue": j[0] || (j[0] = (B) => mt(Ve) ? Ve.value = B : null)
2765
2774
  }, null, 8, ["modelValue"])) : y("", !0),
2766
- e(pe) ? (n(), k(na, {
2775
+ e(pe) ? (n(), k(oa, {
2767
2776
  key: 1,
2768
2777
  visible: e(pe),
2769
- "onUpdate:visible": j[1] || (j[1] = (w) => mt(pe) ? pe.value = w : null),
2778
+ "onUpdate:visible": j[1] || (j[1] = (B) => mt(pe) ? pe.value = B : null),
2770
2779
  "fixed-right": "",
2771
- onCancel: j[2] || (j[2] = (w) => pe.value = !1)
2780
+ onCancel: j[2] || (j[2] = (B) => pe.value = !1)
2772
2781
  }, ce({
2773
2782
  header: v(() => [
2774
- A("span", null, V((() => {
2783
+ A("span", null, C((() => {
2775
2784
  switch (e(pe)) {
2776
2785
  case "add":
2777
2786
  return e(R)("action.add", { capitalize: !0 });
@@ -2782,22 +2791,22 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2782
2791
  return e(R)("action.edit", { capitalize: !0 });
2783
2792
  }
2784
2793
  })()), 1),
2785
- A("span", null, " " + V(e(R)(e(i).view.collection)), 1)
2794
+ A("span", null, " " + C(e(R)(e(i).view.collection)), 1)
2786
2795
  ]),
2787
2796
  _: 2
2788
2797
  }, [
2789
- G(Object.keys(g.$slots).filter((w) => w.startsWith("field-")), (w) => ({
2790
- name: w,
2798
+ G(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2799
+ name: B,
2791
2800
  fn: v((I) => [
2792
- O(g.$slots, w, de(ge(I)), void 0, !0)
2801
+ O(g.$slots, B, de(ge(I)), void 0, !0)
2793
2802
  ])
2794
2803
  }))
2795
2804
  ]), 1032, ["visible"])) : y("", !0),
2796
- !g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((D = e(a).description.layout) == null ? void 0 : D.name) !== "tabular") ? (n(), s("div", Ka, [
2797
- e(a).description.search ? (n(), s("div", Xa, [
2798
- z(ke, U({
2805
+ !g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((D = e(a).description.layout) == null ? void 0 : D.name) !== "tabular") ? (n(), s("div", Xa, [
2806
+ e(a).description.search ? (n(), s("div", Ya, [
2807
+ z(ke, E({
2799
2808
  modelValue: e(a).textQuery,
2800
- "onUpdate:modelValue": j[3] || (j[3] = (w) => e(a).textQuery = w)
2809
+ "onUpdate:modelValue": j[3] || (j[3] = (B) => e(a).textQuery = B)
2801
2810
  }, {
2802
2811
  property: {
2803
2812
  type: "string",
@@ -2806,17 +2815,17 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2806
2815
  }
2807
2816
  }), null, 16, ["modelValue"])
2808
2817
  ])) : y("", !0),
2809
- A("div", Ya, [
2818
+ A("div", Ja, [
2810
2819
  S.value.length > 0 || !g.noLayoutToggle && e(a).description.layout && ((se = e(a).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
2811
2820
  default: v(() => [
2812
- z(re, {
2821
+ z(ie, {
2813
2822
  variant: "alt",
2814
2823
  icon: "sliders"
2815
2824
  }, {
2816
2825
  default: v(() => [
2817
2826
  e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2818
2827
  default: v(() => [
2819
- Q(V(e(a).filtersCount), 1)
2828
+ Q(C(e(a).filtersCount), 1)
2820
2829
  ]),
2821
2830
  _: 1
2822
2831
  })) : y("", !0)
@@ -2829,21 +2838,21 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2829
2838
  Object.keys(e(a).availableFilters).length > 0 ? {
2830
2839
  name: "filter",
2831
2840
  fn: v(() => [
2832
- Z((n(), k(J, {
2841
+ P((n(), k(Z, {
2833
2842
  icon: "funnel",
2834
- onClick: j[4] || (j[4] = (w) => Ve.value = !0)
2843
+ onClick: j[4] || (j[4] = (B) => Ve.value = !0)
2835
2844
  }, {
2836
2845
  default: v(() => [
2837
- Q(V(e(R)("filters", { capitalize: !0 })), 1)
2846
+ Q(C(e(R)("filters", { capitalize: !0 })), 1)
2838
2847
  ]),
2839
2848
  _: 1
2840
2849
  })), [
2841
2850
  [ne]
2842
2851
  ]),
2843
- A("div", Ja, [
2852
+ A("div", Za, [
2844
2853
  e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2845
2854
  default: v(() => [
2846
- Q(V(e(a).filtersCount), 1)
2855
+ Q(C(e(a).filtersCount), 1)
2847
2856
  ]),
2848
2857
  _: 1
2849
2858
  })) : y("", !0)
@@ -2854,12 +2863,12 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2854
2863
  !g.noLayoutToggle && e(a).description.layout && ((ae = e(a).description.layout) == null ? void 0 : ae.name) !== "tabular" ? {
2855
2864
  name: "layout-toggle",
2856
2865
  fn: v(() => [
2857
- Z((n(), k(J, {
2866
+ P((n(), k(Z, {
2858
2867
  icon: "table",
2859
- onClick: j[5] || (j[5] = (w) => H(e(a)))
2868
+ onClick: j[5] || (j[5] = (B) => F(e(a)))
2860
2869
  }, {
2861
2870
  default: v(() => [
2862
- Q(V(e(R)("change_layout", { capitalize: !0 })), 1)
2871
+ Q(C(e(R)("change_layout", { capitalize: !0 })), 1)
2863
2872
  ]),
2864
2873
  _: 1
2865
2874
  })), [
@@ -2868,90 +2877,90 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2868
2877
  ]),
2869
2878
  key: "1"
2870
2879
  } : void 0,
2871
- G(S.value, (w, I) => ({
2880
+ G(S.value, (B, I) => ({
2872
2881
  name: `action-${I}`,
2873
2882
  fn: v(() => [
2874
- w ? (n(), k(J, {
2883
+ B ? (n(), k(Z, {
2875
2884
  key: 0,
2876
- icon: w.icon || "gear",
2877
- disabled: e(a).selected.length === 0 && "selection" in w && w.selection,
2878
- onClick: (q) => e(Le)(w)({ _id: e(a).selected.map((fe) => fe._id) })
2885
+ icon: B.icon || "gear",
2886
+ disabled: e(a).selected.length === 0 && "selection" in B && B.selection,
2887
+ onClick: (q) => e(Re)(B)({ _id: e(a).selected.map((fe) => fe._id) })
2879
2888
  }, {
2880
2889
  default: v(() => [
2881
- Q(V(e(R)(w.label, { capitalize: !0 })), 1)
2890
+ Q(C(e(R)(B.label, { capitalize: !0 })), 1)
2882
2891
  ]),
2883
2892
  _: 2
2884
2893
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
2885
2894
  ])
2886
2895
  }))
2887
- ]), 1024)) : Object.keys(e(a).availableFilters).length > 0 ? (n(), k(re, {
2896
+ ]), 1024)) : Object.keys(e(a).availableFilters).length > 0 ? (n(), k(ie, {
2888
2897
  key: 1,
2889
2898
  variant: "alt",
2890
2899
  icon: "funnel",
2891
- onClick: j[6] || (j[6] = (w) => Ve.value = !0)
2900
+ onClick: j[6] || (j[6] = (B) => Ve.value = !0)
2892
2901
  }, {
2893
2902
  default: v(() => [
2894
- Za,
2903
+ Pa,
2895
2904
  e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2896
2905
  default: v(() => [
2897
- Q(V(e(a).filtersCount), 1)
2906
+ Q(C(e(a).filtersCount), 1)
2898
2907
  ]),
2899
2908
  _: 1
2900
2909
  })) : y("", !0)
2901
2910
  ]),
2902
2911
  _: 1
2903
2912
  })) : y("", !0),
2904
- (n(!0), s(N, null, G(e(a).actions.filter((w) => w.button), (w, I) => (n(), k(re, {
2913
+ (n(!0), s(x, null, G(e(a).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
2905
2914
  key: `action-${I}`,
2906
- icon: w.icon,
2907
- disabled: e(a).selected.length === 0 && "selection" in w && w.selection,
2908
- onClick: (q) => e(Le)(w)({ _id: e(a).selected.map((fe) => fe._id) })
2915
+ icon: B.icon,
2916
+ disabled: e(a).selected.length === 0 && "selection" in B && B.selection,
2917
+ onClick: (q) => e(Re)(B)({ _id: e(a).selected.map((fe) => fe._id) })
2909
2918
  }, {
2910
2919
  default: v(() => [
2911
- Q(V(e(R)(w.label, { capitalize: !0 })), 1)
2920
+ Q(C(e(R)(B.label, { capitalize: !0 })), 1)
2912
2921
  ]),
2913
2922
  _: 2
2914
2923
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2915
2924
  g.$slots.actions ? O(g.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2916
2925
  ])
2917
2926
  ])) : y("", !0),
2918
- Z((n(), s("div", null, [
2919
- e(a).itemsCount === 0 && !e(a).loading.getAll && T.value && (e(ee) || g.$slots.empty) ? (n(), s("div", Pa, [
2920
- e(ee) ? (n(), k(he(e(ee)), de(U({ key: 0 }, {
2927
+ P((n(), s("div", null, [
2928
+ e(a).itemsCount === 0 && !e(a).loading.getAll && T.value && (e(ee) || g.$slots.empty) ? (n(), s("div", Na, [
2929
+ e(ee) ? (n(), k(he(e(ee)), de(E({ key: 0 }, {
2921
2930
  collection: e(a).$id
2922
2931
  })), {
2923
2932
  default: v(() => [
2924
- e(a).filtersCount === 0 && e(a).description.actions && "spawnAdd" in e(a).description.actions ? (n(), k(re, {
2933
+ e(a).filtersCount === 0 && e(a).description.actions && "spawnAdd" in e(a).description.actions ? (n(), k(ie, {
2925
2934
  key: 0,
2926
2935
  icon: "plus",
2927
- onClick: j[7] || (j[7] = (w) => e(Le)({
2936
+ onClick: j[7] || (j[7] = (B) => e(Re)({
2928
2937
  action: "spawnAdd",
2929
2938
  event: "spawnAdd"
2930
2939
  })())
2931
2940
  }, {
2932
2941
  default: v(() => [
2933
- Q(V(e(R)("add_first_item", { capitalize: !0 })), 1)
2942
+ Q(C(e(R)("add_first_item", { capitalize: !0 })), 1)
2934
2943
  ]),
2935
2944
  _: 1
2936
2945
  })) : y("", !0)
2937
2946
  ]),
2938
2947
  _: 1
2939
- }, 16)) : O(g.$slots, "empty", de(U({ key: 1 }, {
2948
+ }, 16)) : O(g.$slots, "empty", de(E({ key: 1 }, {
2940
2949
  collection: e(a).$id
2941
2950
  })), void 0, !0)
2942
- ])) : g.$slots.component ? O(g.$slots, "component", de(U({ key: 1 }, {
2951
+ ])) : g.$slots.component ? O(g.$slots, "component", de(E({ key: 1 }, {
2943
2952
  store: e(a)
2944
- })), void 0, !0) : (n(), k(he(e(Ga)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), U({ key: 2 }, {
2953
+ })), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), E({ key: 2 }, {
2945
2954
  individualActions: le.value,
2946
2955
  layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(a).layout.options,
2947
2956
  componentProps: g.componentProps
2948
2957
  }, {
2949
2958
  "component-name": ((K = g.layout) == null ? void 0 : K.name) || e(a).$currentLayout
2950
2959
  }), ce({ _: 2 }, [
2951
- G(Object.keys(g.$slots).filter((w) => w.startsWith("row-")), (w) => ({
2952
- name: w,
2960
+ G(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2961
+ name: B,
2953
2962
  fn: v((I) => [
2954
- O(g.$slots, w, de(ge(I)), void 0, !0)
2963
+ O(g.$slots, B, de(ge(I)), void 0, !0)
2955
2964
  ])
2956
2965
  })),
2957
2966
  g.$slots.tfoot ? {
@@ -2965,27 +2974,27 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
2965
2974
  ])), [
2966
2975
  [oe, (!e(d) || $.value === bt) && e(a).loading.getAll]
2967
2976
  ]),
2968
- !e(a).loading.getAll && e(a).itemsCount > 0 ? (n(), s("div", Na, [
2969
- z(Fn, {
2977
+ !e(a).loading.getAll && e(a).itemsCount > 0 ? (n(), s("div", xa, [
2978
+ z(Un, {
2970
2979
  pagination: e(a).pagination,
2971
- onPaginate: x
2980
+ onPaginate: Y
2972
2981
  }, null, 8, ["pagination"])
2973
2982
  ])) : y("", !0)
2974
2983
  ], 64);
2975
2984
  };
2976
2985
  }
2977
2986
  });
2978
- const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { class: "prompt" }, tl = /* @__PURE__ */ F({
2987
+ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { class: "prompt" }, nl = /* @__PURE__ */ U({
2979
2988
  __name: "aeria-prompt",
2980
2989
  props: {
2981
2990
  title: {},
2982
2991
  options: {}
2983
2992
  },
2984
2993
  setup(c) {
2985
- const r = ie("meta"), l = (t, o) => {
2994
+ const r = re("meta"), l = (t, o) => {
2986
2995
  r.$actions.fulfillPrompt(t, o);
2987
2996
  };
2988
- return (t, o) => (n(), k(Be, {
2997
+ return (t, o) => (n(), k(Ae, {
2989
2998
  float: "",
2990
2999
  "fill-footer": "",
2991
3000
  "close-hint": !1,
@@ -2996,7 +3005,7 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
2996
3005
  class: "prompt__options",
2997
3006
  style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
2998
3007
  }, [
2999
- (n(!0), s(N, null, G(Object.entries(t.options), ([u, i], _) => (n(), k(ve, {
3008
+ (n(!0), s(x, null, G(Object.entries(t.options), ([u, i], _) => (n(), k(ve, {
3000
3009
  key: `option-${_}`,
3001
3010
  class: X(`
3002
3011
  prompt__option
@@ -3005,14 +3014,14 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
3005
3014
  onClick: (p) => i.click ? i.click(u, i) : l(u, i)
3006
3015
  }, {
3007
3016
  default: v(() => [
3008
- Q(V(i.title), 1)
3017
+ Q(C(i.title), 1)
3009
3018
  ]),
3010
3019
  _: 2
3011
3020
  }, 1032, ["class", "onClick"]))), 128))
3012
3021
  ], 4)
3013
3022
  ]),
3014
3023
  default: v(() => [
3015
- A("div", el, [
3024
+ A("div", tl, [
3016
3025
  O(t.$slots, "default", {}, void 0, !0)
3017
3026
  ])
3018
3027
  ]),
@@ -3021,14 +3030,14 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
3021
3030
  t.title ? {
3022
3031
  name: "title",
3023
3032
  fn: v(() => [
3024
- Q(V(t.title), 1)
3033
+ Q(C(t.title), 1)
3025
3034
  ]),
3026
3035
  key: "0"
3027
3036
  } : void 0
3028
3037
  ]), 1024));
3029
3038
  }
3030
3039
  });
3031
- const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { class: "toast__content" }, al = { class: "toast__time" }, ll = /* @__PURE__ */ F({
3040
+ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { class: "toast__content" }, ll = { class: "toast__time" }, sl = /* @__PURE__ */ U({
3032
3041
  __name: "aeria-toast",
3033
3042
  props: {
3034
3043
  idx: {},
@@ -3037,10 +3046,10 @@ const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { cla
3037
3046
  icon: {}
3038
3047
  },
3039
3048
  setup(c) {
3040
- const r = ie("meta");
3049
+ const r = re("meta");
3041
3050
  return (l, t) => {
3042
3051
  const o = te("clickable");
3043
- return Z((n(), s("div", {
3052
+ return P((n(), s("div", {
3044
3053
  class: X({
3045
3054
  toast: !0,
3046
3055
  "toast--animate": e(r).toasts[0].itr === l.itr
@@ -3048,13 +3057,13 @@ const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { cla
3048
3057
  onAnimationend: t[0] || (t[0] = (u) => e(r).$actions.popToast()),
3049
3058
  onClick: t[1] || (t[1] = (u) => e(r).$actions.popToast(l.itr))
3050
3059
  }, [
3051
- z(J, U(
3060
+ z(Z, E(
3052
3061
  l.icon ? { icon: l.icon } : { icon: "warning-circle" },
3053
3062
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3054
3063
  ), null, 16),
3055
- A("div", ol, [
3064
+ A("div", al, [
3056
3065
  O(l.$slots, "default", {}, void 0, !0),
3057
- A("div", al, V(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3066
+ A("div", ll, C(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3058
3067
  ])
3059
3068
  ], 34)), [
3060
3069
  [o]
@@ -3062,10 +3071,10 @@ const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { cla
3062
3071
  };
3063
3072
  }
3064
3073
  });
3065
- const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["innerHTML"], rl = { class: "main__toasts" }, ul = ["innerHTML"], cl = /* @__PURE__ */ F({
3074
+ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
3066
3075
  __name: "aeria-main",
3067
3076
  setup(c) {
3068
- const r = ie("meta"), l = E(() => r.themeOverride || r.theme);
3077
+ const r = re("meta"), l = H(() => r.themeOverride || r.theme);
3069
3078
  return (t, o) => {
3070
3079
  const u = St("router-view");
3071
3080
  return n(), s("main", {
@@ -3095,7 +3104,7 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3095
3104
  _: 3
3096
3105
  })),
3097
3106
  O(t.$slots, "default", {}, void 0, !0),
3098
- z(Be, U({
3107
+ z(Ae, E({
3099
3108
  modelValue: e(r).modal.visible,
3100
3109
  "onUpdate:modelValue": o[0] || (o[0] = (i) => e(r).modal.visible = i),
3101
3110
  float: "",
@@ -3109,25 +3118,25 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3109
3118
  key: 0,
3110
3119
  style: { "white-space": "pre-wrap" },
3111
3120
  innerHTML: e(r).modal.body
3112
- }, null, 8, il)) : y("", !0),
3121
+ }, null, 8, rl)) : y("", !0),
3113
3122
  e(r).modal.component ? (n(), k(he(e(r).modal.component), { key: 1 })) : y("", !0)
3114
3123
  ]),
3115
3124
  _: 1
3116
3125
  }, 16, ["modelValue"]),
3117
- e(r).prompt.visible ? (n(), k(nl, de(U({ key: 0 }, e(r).prompt)), {
3126
+ e(r).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(r).prompt)), {
3118
3127
  default: v(() => [
3119
- Q(V(e(r).prompt.body), 1)
3128
+ Q(C(e(r).prompt.body), 1)
3120
3129
  ]),
3121
3130
  _: 1
3122
3131
  }, 16)) : y("", !0),
3123
- A("div", rl, [
3124
- (n(!0), s(N, null, G(e(r).toasts, (i) => (n(), k(sl, U({ ref_for: !0 }, i, {
3132
+ A("div", ul, [
3133
+ (n(!0), s(x, null, G(e(r).toasts, (i) => (n(), k(il, E({ ref_for: !0 }, i, {
3125
3134
  key: `toast-${i.itr}`
3126
3135
  }), {
3127
3136
  default: v(() => [
3128
3137
  A("div", {
3129
3138
  innerHTML: e(R)(i.text)
3130
- }, null, 8, ul)
3139
+ }, null, 8, cl)
3131
3140
  ]),
3132
3141
  _: 2
3133
3142
  }, 1040))), 128))
@@ -3136,11 +3145,11 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
3136
3145
  };
3137
3146
  }
3138
3147
  });
3139
- const ql = /* @__PURE__ */ W(cl, [["__scopeId", "data-v-1166be3d"]]);
3140
- const dl = {}, pl = { class: "menu" };
3141
- function _l(c, r) {
3142
- return n(), s("menu", pl, [
3143
- (n(!0), s(N, null, G(Object.keys(c.$slots), (l) => (n(), s("div", {
3148
+ const Ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1166be3d"]]);
3149
+ const pl = {}, _l = { class: "menu" };
3150
+ function ml(c, r) {
3151
+ return n(), s("menu", _l, [
3152
+ (n(!0), s(x, null, G(Object.keys(c.$slots), (l) => (n(), s("div", {
3144
3153
  key: l,
3145
3154
  class: "menu__entry"
3146
3155
  }, [
@@ -3148,16 +3157,16 @@ function _l(c, r) {
3148
3157
  ]))), 128))
3149
3158
  ]);
3150
3159
  }
3151
- const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb"]]), ml = { class: "tabs" }, fl = {
3160
+ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb"]]), fl = { class: "tabs" }, vl = {
3152
3161
  key: 0,
3153
3162
  class: "tabs__horizontal"
3154
- }, vl = {
3163
+ }, yl = {
3155
3164
  key: 0,
3156
3165
  class: "tabs__tab tabs__tab--info"
3157
- }, yl = ["onClick"], hl = {
3166
+ }, hl = ["onClick"], bl = {
3158
3167
  key: 1,
3159
3168
  class: "tabs__context-menu"
3160
- }, bl = ["onClick"], $l = /* @__PURE__ */ F({
3169
+ }, $l = ["onClick"], gl = /* @__PURE__ */ U({
3161
3170
  __name: "aeria-tabs",
3162
3171
  props: {
3163
3172
  query: {},
@@ -3165,7 +3174,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3165
3174
  dropdown: { type: Boolean }
3166
3175
  },
3167
3176
  setup(c) {
3168
- const r = c, l = jt(), t = Ae(), o = Ue(), u = E(() => {
3177
+ const r = c, l = jt(), t = Ie(), o = Ue(), u = H(() => {
3169
3178
  if (r.query) {
3170
3179
  const _ = t.currentRoute.value.query[r.query];
3171
3180
  if (_)
@@ -3189,25 +3198,25 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3189
3198
  };
3190
3199
  return (_, p) => {
3191
3200
  const b = te("clickable");
3192
- return n(), s("div", ml, [
3193
- e(o).md && !_.dropdown ? (n(), s("div", fl, [
3194
- _.$slots.default ? (n(), s("div", vl, [
3201
+ return n(), s("div", fl, [
3202
+ e(o).md && !_.dropdown ? (n(), s("div", vl, [
3203
+ _.$slots.default ? (n(), s("div", yl, [
3195
3204
  O(_.$slots, "default", {}, void 0, !0)
3196
3205
  ])) : y("", !0),
3197
- (n(!0), s(N, null, G(Object.keys(_.$slots).filter((d) => d !== "default"), (d, a) => (n(), s("div", {
3206
+ (n(!0), s(x, null, G(Object.keys(_.$slots).filter((d) => d !== "default"), (d, a) => (n(), s("div", {
3198
3207
  key: d,
3199
3208
  class: X({
3200
3209
  tabs__tab: !0,
3201
3210
  "tabs__tab--current": d === u.value || !u.value && a === 0
3202
3211
  }),
3203
- onClick: (B) => i(d)
3212
+ onClick: (w) => i(d)
3204
3213
  }, [
3205
3214
  O(_.$slots, d, {}, void 0, !0)
3206
- ], 10, yl))), 128))
3207
- ])) : (n(), s("div", hl, [
3215
+ ], 10, hl))), 128))
3216
+ ])) : (n(), s("div", bl, [
3208
3217
  z(Oe, null, ce({
3209
3218
  default: v(({ visible: d }) => [
3210
- Z((n(), k(J, {
3219
+ P((n(), k(Z, {
3211
3220
  "icon-right": "",
3212
3221
  active: d,
3213
3222
  icon: "caret-down",
@@ -3231,7 +3240,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3231
3240
  onClick: (a) => i(d)
3232
3241
  }, [
3233
3242
  O(_.$slots, d, {}, void 0, !0)
3234
- ], 8, bl)
3243
+ ], 8, $l)
3235
3244
  ])
3236
3245
  }))
3237
3246
  ]), 1024)
@@ -3240,30 +3249,30 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
3240
3249
  };
3241
3250
  }
3242
3251
  });
3243
- const gl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-a20914ab"]]), kl = F({
3252
+ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
3244
3253
  props: {
3245
3254
  initialValue: String,
3246
3255
  promise: Promise
3247
3256
  },
3248
3257
  setup(c) {
3249
- const r = Y(c.initialValue);
3258
+ const r = J(c.initialValue);
3250
3259
  return c.promise instanceof Promise && c.promise.then((l) => {
3251
3260
  r.value = l;
3252
3261
  }), () => Rt("div", r.value);
3253
3262
  }
3254
- }), Vl = ["onClick"], Cl = { key: 1 }, Ol = /* @__PURE__ */ F({
3263
+ }), Cl = ["onClick"], Ol = { key: 1 }, Il = /* @__PURE__ */ U({
3255
3264
  __name: "aeria-crud-topbar",
3256
3265
  props: {
3257
3266
  collection: {}
3258
3267
  },
3259
3268
  setup(c) {
3260
- const r = c, t = Ae().currentRoute, o = Ze(), u = E(() => r.collection ? Qe(r.collection, o) : typeof t.value.meta.collection == "string" ? Qe(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Qe(t.value.params.collection, o) : null), i = async (_, p) => {
3269
+ const r = c, t = Ie().currentRoute, o = Ze(), u = H(() => r.collection ? Le(r.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), i = async (_, p) => {
3261
3270
  const { error: b, result: d } = await p.$functions[_.badgeFunction]({
3262
3271
  filters: _.filters
3263
3272
  });
3264
3273
  return b ? 0 : d;
3265
3274
  };
3266
- return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(gl, {
3275
+ return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(kl, {
3267
3276
  key: 0,
3268
3277
  dropdown: "",
3269
3278
  query: "section"
@@ -3275,34 +3284,34 @@ const gl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-a20914ab"]]), kl = F({
3275
3284
  class: "topbar__preset",
3276
3285
  onClick: (a) => e(Ot)(d, u.value)
3277
3286
  }, [
3278
- d.icon ? (n(), k(J, {
3287
+ d.icon ? (n(), k(Z, {
3279
3288
  key: 0,
3280
3289
  icon: d.icon
3281
3290
  }, {
3282
3291
  default: v(() => [
3283
- Q(V(d.label || e(R)(b, { plural: !0 })), 1)
3292
+ Q(C(d.label || e(R)(b, { plural: !0 })), 1)
3284
3293
  ]),
3285
3294
  _: 2
3286
- }, 1032, ["icon"])) : (n(), s("div", Cl, V(d.label || e(R)(b, { plural: !0 })), 1)),
3295
+ }, 1032, ["icon"])) : (n(), s("div", Ol, C(d.label || e(R)(b, { plural: !0 })), 1)),
3287
3296
  d.badgeFunction ? (n(), k($e, { key: 2 }, {
3288
3297
  default: v(() => [
3289
- z(e(kl), {
3298
+ z(e(Vl), {
3290
3299
  "initial-value": "0",
3291
- promise: i(d, u.value)
3300
+ promise: async () => String(i(d, u.value))
3292
3301
  }, null, 8, ["promise"])
3293
3302
  ]),
3294
3303
  _: 2
3295
3304
  }, 1024)) : y("", !0)
3296
- ], 8, Vl)
3305
+ ], 8, Cl)
3297
3306
  ])
3298
3307
  }))
3299
3308
  ]), 1024)) : y("", !0);
3300
3309
  }
3301
3310
  });
3302
- const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3311
+ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3303
3312
  __proto__: null,
3304
- default: Il
3305
- }, Symbol.toStringTag, { value: "Module" })), Fl = /* @__PURE__ */ F({
3313
+ default: Al
3314
+ }, Symbol.toStringTag, { value: "Module" })), Ul = /* @__PURE__ */ U({
3306
3315
  __name: "aeria-password-form",
3307
3316
  props: {
3308
3317
  modelValue: {}
@@ -3311,11 +3320,11 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3311
3320
  setup(c) {
3312
3321
  const r = c;
3313
3322
  ye(Fe, null);
3314
- const l = Kt(), t = E(() => l(
3323
+ const l = Xt(), t = H(() => l(
3315
3324
  r.modelValue.password,
3316
3325
  r.modelValue.confirmation
3317
3326
  ));
3318
- return (o, u) => (n(), k(De, {
3327
+ return (o, u) => (n(), k(Qe, {
3319
3328
  form: {
3320
3329
  password: {
3321
3330
  type: "string",
@@ -3332,13 +3341,13 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3332
3341
  "onUpdate:modelValue": u[0] || (u[0] = (i) => o.$emit("update:modelValue", i))
3333
3342
  }, {
3334
3343
  after: v(() => [
3335
- A("div", null, V(t.value || "Senhas conferem"), 1),
3344
+ A("div", null, C(t.value || "Senhas conferem"), 1),
3336
3345
  O(o.$slots, "default", de(ge({ passwordError: t.value })))
3337
3346
  ]),
3338
3347
  _: 3
3339
3348
  }, 8, ["model-value"]));
3340
3349
  }
3341
- }), Ul = (c, r = []) => ({
3350
+ }), El = (c, r = []) => ({
3342
3351
  path: "/user",
3343
3352
  name: "/builtin:user",
3344
3353
  component: c,
@@ -3356,7 +3365,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3356
3365
  {
3357
3366
  path: "signin",
3358
3367
  name: "/user/signin",
3359
- component: () => import("./signin-684a2b37.js"),
3368
+ component: () => import("./signin-cc8074a5.js"),
3360
3369
  meta: {
3361
3370
  title: "Autenticação"
3362
3371
  }
@@ -3364,7 +3373,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3364
3373
  {
3365
3374
  path: "signup",
3366
3375
  name: "/user/signup",
3367
- component: () => import("./signup-509c4eeb.js"),
3376
+ component: () => import("./signup-aa8ebb88.js"),
3368
3377
  meta: {
3369
3378
  title: "Registro"
3370
3379
  }
@@ -3372,13 +3381,13 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3372
3381
  {
3373
3382
  path: "activation",
3374
3383
  name: "/user/activation",
3375
- component: () => import("./activation-f7b703c9.js"),
3384
+ component: () => import("./activation-21234686.js"),
3376
3385
  meta: {
3377
3386
  title: "Ativação"
3378
3387
  }
3379
3388
  }
3380
3389
  ])
3381
- }), El = (c, r = []) => ({
3390
+ }), Hl = (c, r = []) => ({
3382
3391
  path: "/dashboard",
3383
3392
  name: "/builtin:dashboard",
3384
3393
  component: c,
@@ -3394,8 +3403,8 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3394
3403
  name: "/dashboard/:collection",
3395
3404
  props: !0,
3396
3405
  components: {
3397
- default: () => import("./index-8de82e26.js"),
3398
- topbar: () => Promise.resolve().then(() => Al)
3406
+ default: () => import("./index-c6c46429.js"),
3407
+ topbar: () => Promise.resolve().then(() => wl)
3399
3408
  },
3400
3409
  meta: {
3401
3410
  title: "%viewTitle%"
@@ -3406,7 +3415,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3406
3415
  name: "/dashboard/:collection/:id",
3407
3416
  props: !0,
3408
3417
  components: {
3409
- default: () => import("./_id_-3933cd2c.js")
3418
+ default: () => import("./_id_-e62f8939.js")
3410
3419
  },
3411
3420
  meta: {
3412
3421
  title: "%viewTitle%"
@@ -3424,7 +3433,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3424
3433
  children: [
3425
3434
  {
3426
3435
  path: "profile",
3427
- component: () => import("./index-834aa033.js"),
3436
+ component: () => import("./index-1395aded.js"),
3428
3437
  meta: {
3429
3438
  title: "Meu perfil",
3430
3439
  icon: "user-square"
@@ -3433,7 +3442,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3433
3442
  {
3434
3443
  path: "changepass",
3435
3444
  name: "/dashboard/user/changepass",
3436
- component: () => import("./index-64c42dec.js"),
3445
+ component: () => import("./index-d838adbc.js"),
3437
3446
  meta: {
3438
3447
  title: "Mudar senha",
3439
3448
  icon: "lock"
@@ -3444,39 +3453,39 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
3444
3453
  ])
3445
3454
  });
3446
3455
  export {
3447
- De as A,
3448
- to as B,
3449
- kl as C,
3450
- nl as D,
3451
- sl as E,
3452
- Il as F,
3453
- Ul as G,
3454
- El as H,
3455
- Fl as _,
3456
- re as a,
3457
- J as b,
3458
- Wn as c,
3459
- zl as d,
3460
- na as e,
3456
+ Qe as A,
3457
+ no as B,
3458
+ Vl as C,
3459
+ ol as D,
3460
+ il as E,
3461
+ Al as F,
3462
+ El as G,
3463
+ Hl as H,
3464
+ Ul as _,
3465
+ ie as a,
3466
+ Z as b,
3467
+ Kn as c,
3468
+ ql as d,
3469
+ oa as e,
3461
3470
  He as f,
3462
- Ml as g,
3463
- Be as h,
3471
+ Fl as g,
3472
+ Ae as h,
3464
3473
  W as i,
3465
- Ll as j,
3474
+ zl as j,
3466
3475
  $e as k,
3467
3476
  ve as l,
3468
- dn as m,
3477
+ pn as m,
3469
3478
  Oe as n,
3470
- Ea as o,
3471
- ta as p,
3472
- kn as q,
3473
- ql as r,
3474
- Fn as s,
3475
- Ma as t,
3476
- gl as u,
3477
- go as v,
3479
+ Ha as o,
3480
+ na as p,
3481
+ Vn as q,
3482
+ Ml as r,
3483
+ Un as s,
3484
+ Fa as t,
3485
+ kl as u,
3486
+ ko as v,
3478
3487
  ke as w,
3479
- Yn as x,
3480
- zo as y,
3488
+ Jn as x,
3489
+ qo as y,
3481
3490
  Ne as z
3482
3491
  };